@ckeditor/ckeditor5-track-changes 34.0.0 → 35.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/README.md +2 -2
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -0
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/ar.po +469 -0
- package/lang/translations/az.po +10 -0
- package/lang/translations/bg.po +397 -0
- package/lang/translations/bn.po +423 -0
- package/lang/translations/ca.po +397 -0
- package/lang/translations/cs.po +39 -27
- package/lang/translations/da.po +41 -31
- package/lang/translations/de.po +12 -2
- package/lang/translations/el.po +10 -0
- package/lang/translations/en-au.po +10 -0
- package/lang/translations/en.po +10 -0
- package/lang/translations/es.po +72 -44
- package/lang/translations/et.po +107 -97
- package/lang/translations/fi.po +397 -0
- package/lang/translations/fr.po +34 -6
- package/lang/translations/gl.po +10 -0
- package/lang/translations/he.po +433 -0
- package/lang/translations/hi.po +21 -11
- package/lang/translations/hr.po +11 -0
- package/lang/translations/hu.po +397 -0
- package/lang/translations/id.po +84 -75
- package/lang/translations/it.po +29 -1
- package/lang/translations/ja.po +379 -0
- package/lang/translations/ko.po +379 -0
- package/lang/translations/lt.po +433 -0
- package/lang/translations/lv.po +415 -0
- package/lang/translations/ms.po +379 -0
- package/lang/translations/nl.po +48 -38
- package/lang/translations/no.po +397 -0
- package/lang/translations/pl.po +25 -13
- package/lang/translations/pt-br.po +29 -1
- package/lang/translations/pt.po +415 -0
- package/lang/translations/ro.po +415 -0
- package/lang/translations/ru.po +435 -0
- package/lang/translations/sk.po +12 -0
- package/lang/translations/sr-latn.po +11 -0
- package/lang/translations/sr.po +62 -51
- package/lang/translations/sv.po +397 -0
- package/lang/translations/th.po +379 -0
- package/lang/translations/tk.po +10 -0
- package/lang/translations/tr.po +21 -11
- package/lang/translations/uk.po +433 -0
- package/lang/translations/vi.po +379 -0
- package/lang/translations/zh-cn.po +13 -4
- package/lang/translations/zh.po +73 -64
- package/package.json +5 -4
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +23 -0
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +23 -0
- package/src/integrations/image.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +23 -0
- package/src/integrations/table.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +23 -0
- package/src/utils/getrangesofblockgroups.js +23 -0
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x14c09d,PendingActions as _0x4f818a}from'ckeditor5/src/core';import{LiveRange as _0x31ce06}from'ckeditor5/src/engine';import{CKEditorError as _0x3af4d7,uid as _0x5bd5e5,priorities as _0x3a9017,EmitterMixin as _0x50e452,mix as _0x1aa60c}from'ckeditor5/src/utils';import{toWidget as _0xe7c3fd}from'ckeditor5/src/widget';import{Users as _0x2ad904}from'ckeditor5-collaboration/src/collaboration-core';import _0x16b873 from'./commands/trackchangescommand';import _0x59cb88 from'./commands/acceptsuggestioncommand';import _0x127336 from'./commands/discardsuggestioncommand';import _0x211d2b from'./commands/acceptallsuggestionscommand';import _0x36a34c from'./commands/acceptselectedsuggestionscommand';import _0x27c4a0 from'./commands/discardallsuggestionscommand';import _0x3132ce from'./commands/discardselectedsuggestionscommand';import _0xbeb2bd from'./suggestion';import _0xca1474 from'./suggestiondescriptionfactory';import _0x1df5d4 from'./integrations/alignment';import _0x274b63 from'./integrations/basicstyles';import _0xa7e484 from'./integrations/blockquote';import _0xd57dfa from'./integrations/codeblock';import _0x1b59bc from'./integrations/comments';import _0x507d00 from'./integrations/deletecommand';import _0x24b573 from'./integrations/entercommand';import _0x2af95d from'./integrations/font';import _0x28e121 from'./integrations/heading';import _0x3aef45 from'./integrations/highlight';import _0xf59e42 from'./integrations/horizontalline';import _0x5e6a0f from'./integrations/image';import _0x547f11 from'./integrations/indent';import _0x78178d from'./integrations/inputcommand';import _0x2016ea from'./integrations/link';import _0x59d97e from'./integrations/list';import _0x5df1d6 from'./integrations/mediaembed';import _0x419e48 from'./integrations/mention';import _0x261ffb from'./integrations/pagebreak';import tt from'./integrations/paragraph';import it from'./integrations/removeformat';import st from'./integrations/restrictededitingmode';import nt from'./integrations/shiftentercommand';import et from'./integrations/standardeditingmode';import ot from'./integrations/table';import rt from'./integrations/tablemergesplit';import at from'./integrations/tableheadings';import ct from'./integrations/tableclipboard';import ht from'./integrations/title';import ut from'./integrations/undo';import ft from'./utils/hashobject.js';export default class d extends _0x14c09d{static get['requires'](){return['CommentsRepository',_0x2ad904,_0x4f818a,_0x1df5d4,_0x274b63,_0xa7e484,_0xd57dfa,_0x1b59bc,_0x507d00,_0x24b573,_0x2af95d,_0x28e121,_0x3aef45,_0xf59e42,_0x5e6a0f,_0x547f11,_0x78178d,_0x2016ea,_0x59d97e,_0x5df1d6,_0x419e48,_0x261ffb,tt,it,st,nt,et,ot,rt,at,ct,ht,ut];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x9af9b1){function _0x28bd63(_0x1da4fc){return _0x1da4fc['map'](_0x950164=>String['fromCharCode'](_0x950164))['join']('');}super(_0x9af9b1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2f78f9,_0x1932f3,_0x3f2a45,_0x39e97b)=>{this['_model']['change'](()=>{for(const _0x4931c1 of[..._0x39e97b,..._0x3f2a45])this['_model']['markers']['has'](_0x4931c1)&&_0x9af9b1['editing']['reconvertMarker'](_0x4931c1);});}),this['_descriptionFactory']=new _0xca1474(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new gt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x9af9b1['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x28bd63([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x28bd63([0x34,0x30,0x34,0x34,0x30,0x38,0x32,0x34]);}['init'](){const _0x27d9ed=this['editor'];_0x27d9ed['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5de832=>{const {id:_0x7e2bde,type:_0x54f72a}=this['_splitMarkerName'](_0x5de832['markerName']),_0x3e8b20=['ck-suggestion-marker','ck-suggestion-marker-'+_0x54f72a];let _0x4bfd34=0xbb8;return this['activeMarkers']['includes'](_0x5de832['markerName'])&&(_0x3e8b20['push']('ck-suggestion-marker--active'),_0x4bfd34=0xbc2),'deletion'==_0x54f72a&&(_0x4bfd34+=0x5),{'classes':_0x3e8b20,'attributes':{'data-suggestion':_0x7e2bde},'priority':_0x4bfd34};}}),_0x27d9ed['conversion']['for']('dataDowncast')['add'](_0x312660=>{_0x312660['on']('addMarker:suggestion',(_0x22b2a9,_0x23f3c8,_0x14c0dd)=>{if(!_0x14c0dd['options']['showSuggestionHighlights'])return;const _0x5e477b=_0x23f3c8['item'];if(!_0x5e477b)return;const _0x3ccf63=_0x14c0dd['mapper']['toViewElement'](_0x5e477b);_0x27d9ed['model']['schema']['isObject'](_0x5e477b)&&_0x3ccf63&&!_0x3ccf63['getCustomProperty']('widget')&&_0x3ccf63['is']('containerElement')&&_0xe7c3fd(_0x3ccf63,_0x14c0dd['writer']);},{'priority':'high'});}),_0x27d9ed['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x18b600,_0x3ca317)=>{if(!_0x3ca317['options']['showSuggestionHighlights'])return null;const {type:_0x580d9d}=this['_splitMarkerName'](_0x18b600['markerName']);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x580d9d],'priority':0xbb8};}});const _0x1d7a93=({showActiveMarkers:_0xcf9080=!0x0}={})=>(_0x44f794,_0xd15f62,_0x3d2a10)=>{if(!_0xd15f62['item'])return;if(_0xd15f62['item']['is']('selection'))return void _0x3d2a10['consumable']['consume'](_0xd15f62['item'],_0x44f794['name']);const _0x4b75a8=_0x3d2a10['mapper']['toViewElement'](_0xd15f62['item']);if(!(_0xd15f62['item']['is']('element')&&_0x27d9ed['model']['schema']['isBlock'](_0xd15f62['item'])&&!_0x4b75a8['getCustomProperty']('addHighlight')))return;const {id:_0xe547af}=this['_splitMarkerName'](_0xd15f62['markerName']);_0x3d2a10['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4b75a8),_0x3d2a10['writer']['setAttribute']('data-suggestion',_0xe547af,_0x4b75a8),_0x3d2a10['mapper']['bindElementToMarker'](_0x4b75a8,_0xd15f62['markerName']),_0xcf9080&&(this['activeMarkers']['includes'](_0xd15f62['markerName'])?_0x3d2a10['writer']['addClass']('ck-suggestion-marker--active',_0x4b75a8):_0x3d2a10['writer']['removeClass']('ck-suggestion-marker--active',_0x4b75a8));for(const _0x16f35f of _0x27d9ed['model']['createRangeIn'](_0xd15f62['item'])['getItems']())_0x3d2a10['consumable']['consume'](_0x16f35f,_0x44f794['name']);_0x3d2a10['consumable']['consume'](_0xd15f62['item'],_0x44f794['name']);};_0x27d9ed['conversion']['for']('dataDowncast')['add'](_0x4b2ebb=>{_0x4b2ebb['on']('addMarker:suggestion:formatBlock',(_0x1deabf,_0x94a72f,_0x34acf7)=>{_0x34acf7['options']['showSuggestionHighlights']&&_0x1d7a93({'showActiveMarkers':!0x1})(_0x1deabf,_0x94a72f,_0x34acf7);},{'priority':'highest'});}),_0x27d9ed['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3fd72e,_0x371e64)=>_0x371e64['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3fd72e['substr']('suggestion'['length']+0x1)}}),_0x27d9ed['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x2c4604,{writer:_0x32fbbd})=>{let _0x47ee9e='suggestion:'+_0x2c4604['getAttribute']('suggestion-type')+':'+_0x2c4604['getAttribute']('id');return _0x2c4604['getAttribute']('marker-count')&&(_0x47ee9e+=':'+_0x2c4604['getAttribute']('marker-count')),_0x32fbbd['createElement']('$marker',{'data-name':_0x47ee9e});}}),_0x27d9ed['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x27d9ed['conversion']['for']('editingDowncast')['add'](_0x2461cb=>{_0x2461cb['on']('addMarker:suggestion:formatBlock',_0x1d7a93(),{'priority':'high'});}),_0x27d9ed['conversion']['for']('editingDowncast')['add'](_0x1b0422=>{_0x1b0422['on']('removeMarker:suggestion:formatBlock',(_0x27c232,_0x544501,_0x5e02e9)=>{const _0x449930=_0x5e02e9['mapper']['markerNameToElements'](_0x544501['markerName']);if(_0x449930)for(const _0x5f4dd1 of _0x449930)_0x5f4dd1['getCustomProperty']('addHighlight')||(_0x5e02e9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5f4dd1),_0x5e02e9['writer']['removeAttribute']('data-suggestion',_0x5f4dd1),_0x5e02e9['mapper']['unbindElementFromMarkerName'](_0x5f4dd1,_0x544501['markerName']));},{'priority':'high'});}),_0x27d9ed['model']['document']['registerPostFixer'](_0x2cb8a2=>{let _0xb3a186=!0x1;const _0x2460c2=Array['from'](_0x27d9ed['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x493d9d,data:_0x1a28ad}of _0x2460c2){const {group:_0x469ebf,type:_0x989201,id:_0x1b2cc0}=this['_splitMarkerName'](_0x493d9d);if('suggestion'!==_0x469ebf)continue;const _0xa39235=this['_suggestions']['get'](_0x1b2cc0);if(null!=_0x1a28ad['newRange']){'formatInline'==_0x989201&&(_0xb3a186=_0xb3a186||mt(_0x1a28ad['newRange'],_0x493d9d,_0x2cb8a2,_0x27d9ed['model']['schema']));if(_0x1a28ad['newRange']['isCollapsed']||'$graveyard'==_0x1a28ad['newRange']['root']['rootName']||'formatBlock'==_0x989201&&!kt(_0x1a28ad['newRange'])||'deletion'==_0x989201&&!(!dt(_0x546222=_0x1a28ad['newRange'])&&!function(_0x4471a3){return _0x4471a3['start']['parent']==_0x4471a3['end']['nodeBefore']&&_0x4471a3['start']['isAtEnd'];}(_0x546222)))_0x2cb8a2['removeMarker'](_0x493d9d),_0xb3a186=!0x0;else{if(!_0xa39235||!_0xa39235['isInContent'])continue;_0xb3a186=!!this['_joinWithAdjacentSuggestions'](_0xa39235)||_0xb3a186;}}}var _0x546222;return _0xb3a186;}),_0x27d9ed['model']['document']['registerPostFixer'](_0x4167ad=>{let _0x35d930=!0x1;for(const _0x95fee1 of _0x27d9ed['model']['document']['differ']['getChanges']()){if('insert'!=_0x95fee1['type'])continue;const _0x1fdcd0=_0x95fee1['position']['getShiftedBy'](_0x95fee1['length']);if(_0x1fdcd0['isAtEnd'])for(const _0x158920 of this['_suggestions']['values']()){if(_0x158920['isMultiRange']||!_0x158920['isInContent'])continue;if('formatBlock'!=_0x158920['type'])continue;const _0x511fbb=_0x158920['getFirstRange']();if(_0x511fbb['start']['parent']!=_0x511fbb['end']['parent']&&_0x511fbb['end']['isEqual'](_0x95fee1['position'])){const _0x26aefc=_0x27d9ed['model']['createRange'](_0x511fbb['start'],_0x1fdcd0);_0x4167ad['updateMarker'](_0x158920['getFirstMarker'](),{'range':_0x26aefc}),_0x35d930=!0x0;}}}return _0x35d930;}),_0x27d9ed['model']['markers']['on']('update:suggestion',(_0x35335d,_0x44ed2e,_0x18279d)=>{if(null==_0x18279d){const {id:_0x1d64d4}=this['_splitMarkerName'](_0x44ed2e['name']),_0x18672a=this['_suggestions']['get'](_0x1d64d4);_0x18672a&&_0x18672a['addMarkerName'](_0x44ed2e['name']);}}),_0x27d9ed['model']['document']['on']('change:data',()=>{const _0x51f23a=Array['from'](_0x27d9ed['model']['document']['differ']['getChangedMarkers']());_0x51f23a['sort']((_0x3893ef,_0x1fe697)=>{const _0x485166=_0x3893ef['data']['oldRange'],_0x286f6a=_0x1fe697['data']['oldRange'];return null===_0x485166&&null===_0x286f6a?0x0:null===_0x485166&&null!==_0x286f6a?-0x1:null!==_0x485166&&null===_0x286f6a?0x1:_0x485166['start']['isBefore'](_0x286f6a['start'])?-0x1:0x1;});const _0x470434=new Set();for(const {name:_0x2c4923,data:_0x5c7ab9}of _0x51f23a){const {group:_0xa176e9,id:_0x5207d7}=this['_splitMarkerName'](_0x2c4923);if('suggestion'===_0xa176e9&&(null===_0x5c7ab9['oldRange']&&this['_handleNewSuggestionMarker'](_0x2c4923),null===_0x5c7ab9['newRange'])){const _0x2639da=this['_suggestions']['get'](_0x5207d7);_0x2639da['isInContent']?_0x470434['add'](_0x2639da):this['_removeSuggestion'](_0x2639da);}}for(const {name:_0x19d4a3,data:_0x9d257e}of _0x51f23a){const {group:_0x2e9eb1,id:_0x318d05}=this['_splitMarkerName'](_0x19d4a3);if('suggestion'!==_0x2e9eb1)continue;const _0x1034af=this['_suggestions']['get'](_0x318d05);null!=_0x9d257e['newRange']&&null!=_0x9d257e['oldRange']&&(this['_refreshSuggestionsChain'](_0x1034af),_0x470434['add'](_0x1034af['head']));}for(const _0x42ce35 of _0x470434)this['fire']('suggestionChanged',_0x42ce35);_0x470434['clear']();}),_0x27d9ed['model']['on']('applyOperation',(_0x21e229,_0x3a3dbe)=>{const _0x44f352=_0x3a3dbe[0x0];if(!this['_suggestions']['size'])return;if(!_0x44f352['isDocumentOperation'])return;if(_0x44f352['batch']['isUndo']||!_0x44f352['batch']['isLocal'])return;let _0x267d44,_0x123281;switch(_0x44f352['type']){case'insert':_0x267d44=_0x27d9ed['model']['createPositionAt'](_0x44f352['position']),_0x123281=_0x267d44['getShiftedBy'](_0x44f352['howMany']);break;case'split':_0x267d44=_0x27d9ed['model']['createPositionAt'](_0x44f352['splitPosition']),_0x123281=_0x27d9ed['model']['createPositionAt'](_0x44f352['moveTargetPosition']);break;case'move':_0x267d44=_0x27d9ed['model']['createPositionAt'](_0x44f352['targetPosition']),_0x123281=_0x267d44['getShiftedBy'](_0x44f352['howMany']);break;default:return;}const _0x2040a4=_0x27d9ed['model']['createRange'](_0x267d44,_0x123281);_0x27d9ed['model']['change'](()=>{for(const {suggestion:_0x1bfaa6,meta:_0x4d97e1}of this['_findSuggestions'](_0x2040a4)){if(_0x1bfaa6['isMultiRange'])continue;if('formatInline'==_0x1bfaa6['type'])continue;const _0x3d1297=_0x1bfaa6['data']&&_0x1bfaa6['data']['multipleBlocks'];('formatBlock'!=_0x1bfaa6['type']||'split'==_0x44f352['type']&&!_0x3d1297)&&(_0x4d97e1['containsRangeInObject']||'insertion'==_0x1bfaa6['type']&&_0x4d97e1['isOwn']||_0x1bfaa6['getFirstRange']()['containsRange'](_0x2040a4)&&this['_breakSuggestionMarker'](_0x1bfaa6,_0x267d44,_0x123281));}});},{'priority':'lowest'}),_0x27d9ed['model']['on']('deleteContent',(_0x493640,_0x413341)=>{const _0x260aef=_0x413341[0x0],_0x5036ac=_0x413341[0x1];if(_0x5036ac&&_0x5036ac['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x260aef['isCollapsed'])return;const _0x3d8fd6=_0x27d9ed['model']['schema'],{start:_0x17908d,end:_0xd284ee}=_0x260aef['getFirstRange'](),_0x411c53=_0x17908d['nodeAfter']&&_0x3d8fd6['isObject'](_0x17908d['nodeAfter'])?null:_0x3d8fd6['getNearestSelectionRange'](_0x17908d,'forward'),_0x20c97e=_0xd284ee['nodeBefore']&&_0x3d8fd6['isObject'](_0xd284ee['nodeBefore'])?null:_0x3d8fd6['getNearestSelectionRange'](_0xd284ee,'backward'),_0x3390b6=_0x27d9ed['model']['createRange'](_0x411c53?_0x411c53['start']:_0x17908d,_0x20c97e?_0x20c97e['end']:_0xd284ee);_0x27d9ed['model']['change'](_0x280868=>{this['markDeletion'](_0x3390b6);const _0x42d365=_0x27d9ed['model']['schema']['getNearestSelectionRange'](_0x3390b6['start']);_0x260aef['is']('documentSelection')?_0x280868['setSelection'](_0x42d365):_0x260aef['setTo'](_0x42d365);}),_0x493640['stop']();},{'priority':_0x3a9017['normal']+0xa}),_0x27d9ed['model']['on']('insertContent',(_0x18d65f,_0x5a2aa9)=>{const _0x31573b=_0x5a2aa9[_0x5a2aa9['length']-0x1];_0x31573b&&_0x31573b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x27d9ed['model']['change'](()=>{let _0x2325ce=_0x27d9ed['model']['insertContent'](_0x5a2aa9[0x0],_0x5a2aa9[0x1],_0x5a2aa9[0x2],_0x5a2aa9[0x3],{'forceDefaultExecution':!0x0});if(!_0x2325ce)return;_0x18d65f['return']=_0x2325ce['clone']();const _0x326977=_0x2325ce['end']['nodeBefore'],_0x1f98b2=_0x27d9ed['model']['schema'];_0x326977&&_0x1f98b2['isBlock'](_0x326977)&&!_0x1f98b2['isObject'](_0x326977)&&(_0x2325ce=_0x27d9ed['model']['createRange'](_0x2325ce['start'],_0x27d9ed['model']['createPositionAt'](_0x326977,'end'))),this['markInsertion'](_0x2325ce);}),_0x18d65f['stop']());},{'priority':'high'}),this['trackChangesCommand']=new _0x16b873(_0x27d9ed,this['_enabledCommands']),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x285610=new _0x59cb88(_0x27d9ed,this['_suggestions']);_0x27d9ed['commands']['add']('acceptSuggestion',_0x285610),this['enableCommand']('acceptSuggestion');const _0x5a3431=new _0x127336(_0x27d9ed,this['_suggestions']);_0x27d9ed['commands']['add']('discardSuggestion',_0x5a3431),this['enableCommand']('discardSuggestion'),_0x27d9ed['commands']['add']('acceptAllSuggestions',new _0x211d2b(_0x27d9ed,_0x285610,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x27d9ed['commands']['add']('discardAllSuggestions',new _0x27c4a0(_0x27d9ed,_0x5a3431,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x27d9ed['commands']['add']('acceptSelectedSuggestions',new _0x36a34c(_0x27d9ed,_0x285610,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x27d9ed['commands']['add']('discardSelectedSuggestions',new _0x3132ce(_0x27d9ed,_0x5a3431,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ea0b6=_0x27d9ed['plugins']['get']('CommentsRepository');this['listenTo'](_0x1ea0b6,'addComment',(_0x48a700,{threadId:_0x401f29})=>{const _0x43118f=this['_suggestions']['get'](_0x401f29);_0x43118f&&_0x43118f['commentThread']&&0x1===_0x43118f['commentThread']['length']&&this['_updateSuggestionData'](_0x401f29,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ea0b6,'removeComment',(_0x3b2c9c,{threadId:_0xf4a985})=>{const _0x4e1732=this['_suggestions']['get'](_0xf4a985);_0x4e1732&&_0x4e1732['commentThread']&&!_0x4e1732['commentThread']['length']&&this['_updateSuggestionData'](_0xf4a985,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3139f8){if(this['_adapter'])throw new _0x3af4d7('track-changes-adapter-already-set',this);this['_adapter']=_0x3139f8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5b5df5=!0x1,toJSON:_0x199065=!0x1}={}){const _0x34585e=[];for(const _0x1e2295 of this['_suggestions']['values']())_0x5b5df5&&!_0x1e2295['isInContent']||_0x34585e['push'](_0x1e2295);return _0x199065?_0x34585e['map'](_0x23ff55=>_0x23ff55['toJSON']()):_0x34585e;}['getSuggestion'](_0x28f75c){const _0x20c3b0=this['_suggestions']['get'](_0x28f75c);if(!_0x20c3b0)throw new _0x3af4d7('track-changes-suggestion-not-found',this);return _0x20c3b0;}['hasSuggestion'](_0x521616){return this['_suggestions']['has'](_0x521616);}['addSuggestionData'](_0x42cbc5){const {id:_0x508fc,authorId:_0x3a935d}=_0x42cbc5,[_0x1d3071,_0x25e552]=_0x42cbc5['type']['split'](':'),_0x4ce9da=this['_suggestions']['get'](_0x508fc)||this['_createSuggestion'](_0x1d3071,_0x25e552,_0x508fc,_0x3a935d);switch(this['_addThreadToSuggestion'](_0x4ce9da),this['_checkSuggestionCorrectness'](_0x4ce9da,_0x1d3071,_0x25e552||null,_0x3a935d),_0x4ce9da['createdAt']=_0x42cbc5['createdAt'],_0x42cbc5['data']&&(_0x4ce9da['data']=_0x42cbc5['data']),_0x42cbc5['attributes']&&(_0x4ce9da['attributes']=_0x42cbc5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4ce9da['_saved']=!0x0),this['_suggestionState']['get'](_0x4ce9da)){case'notReady':this['_suggestionState']['set'](_0x4ce9da,'dataReady');break;case'markerReady':_0x4ce9da['isInContent']?(this['_suggestionState']['set'](_0x4ce9da,'ready'),this['fire']('suggestionLoaded',_0x4ce9da)):this['_suggestionState']['set'](_0x4ce9da,'removed');}return _0x4ce9da;}['acceptSuggestion'](_0x35d2d1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x314b01 of _0x35d2d1['getAllAdjacentSuggestions']())_0x314b01['accept']();});});}['discardSuggestion'](_0x4f5625){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa93ac7 of _0x4f5625['getAllAdjacentSuggestions']())_0xa93ac7['discard']();});});}['enableCommand'](_0x159075,_0x3de1fe){const _0x3420c7=this['editor']['commands']['get'](_0x159075);if(!_0x3420c7)throw new _0x3af4d7('track-changes-command-not-found',this,{'commandName':_0x159075});this['_enabledCommands']['add'](_0x3420c7),_0x3de1fe&&_0x3420c7['on']('execute',(_0x1131c2,_0x5ba66f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||_0x5ba66f['length']>0x0&&_0x5ba66f[_0x5ba66f['length']-0x1]&&_0x5ba66f[_0x5ba66f['length']-0x1]['forceDefaultExecution']||(_0x3de1fe((..._0x8b7ec6)=>_0x3420c7['execute'](..._0x8b7ec6,{'forceDefaultExecution':!0x0}),..._0x5ba66f),_0x1131c2['stop']()));},{'priority':'high'});}['forceDefaultExecution'](_0x131ca9){let _0x3427dc,_0x27f9ea;const _0x278fe4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3427dc=_0x131ca9();}catch(_0x2dfb7a){_0x27f9ea=_0x2dfb7a;}return _0x278fe4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x27f9ea&&_0x3af4d7['rethrowUnexpectedError'](_0x27f9ea,this),_0x3427dc;}['markInsertion'](_0xb1f315,_0x56499a=null,_0x3de86b={}){if(_0xb1f315['isCollapsed'])return null;const _0x47c906=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x14ceee,meta:_0x21607a}of this['_findSuggestions'](_0xb1f315,'insertion'))if(_0x21607a['isOwn']){if(!_0x21607a['isNextTo'])return _0x14ceee;if(_0x56499a==_0x14ceee['subType']){const _0x912f83=_0x14ceee['getFirstRange']();return _0x912f83['start']['isEqual'](_0xb1f315['end'])?this['_setSuggestionRange'](_0x14ceee,this['_model']['createRange'](_0xb1f315['start'],_0x912f83['end'])):this['_setSuggestionRange'](_0x14ceee,this['_model']['createRange'](_0x912f83['start'],_0xb1f315['end'])),_0x14ceee;}}const _0x4fb6f6=_0x5bd5e5(),_0x8cd5d2=_0x47c906['id'],_0x224a05=_0x56499a?'insertion:'+_0x56499a:'insertion',_0x594c4f=this['_setSuggestionData']({'id':_0x4fb6f6,'type':_0x224a05,'createdAt':new Date(),'authorId':_0x8cd5d2,'attributes':_0x3de86b});return this['_addSuggestionMarker'](_0x224a05,_0x4fb6f6,_0x8cd5d2,_0xb1f315),_0x594c4f;}['markMultiRangeInsertion'](_0x2a966e,_0x2705e4='multi',_0x3a596f={}){const _0x5e83c5=this['editor']['plugins']['get']('Users')['me'],_0x517883=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2705e4,'join');for(const _0x1aa7d8 of this['getSuggestions']())if(_0x1aa7d8['author']['id']==_0x5e83c5['id']&&'insertion'==_0x1aa7d8['type']&&_0x1aa7d8['subType']==_0x2705e4&&(_0x517883(_0x1aa7d8['getRanges'](),_0x2a966e)||_0x517883(_0x2a966e,_0x1aa7d8['getRanges']()))){for(const _0x5a2d65 of _0x2a966e)_0x1aa7d8['addRange'](_0x5a2d65);return _0x1aa7d8;}for(const _0x5c15a7 of _0x2a966e)for(const {suggestion:_0x533b76,meta:_0x1689ec}of this['_findSuggestions'](_0x5c15a7,'insertion')){if(!_0x1689ec['isOwn'])continue;let _0x5ad0f8=!0x0;for(const _0x16bdd1 of _0x533b76['getRanges']())for(const _0x3d1a6d of _0x2a966e)if(!_0x16bdd1['containsRange'](_0x3d1a6d)){_0x5ad0f8=!0x1;break;}if(_0x5ad0f8)return _0x533b76;}const _0x3fc35a=_0x5bd5e5(),_0x56ca40=_0x5e83c5['id'],_0x46ed2a='insertion:'+_0x2705e4,_0x3f152f=this['_setSuggestionData']({'id':_0x3fc35a,'type':_0x46ed2a,'createdAt':new Date(),'authorId':_0x56ca40,'attributes':_0x3a596f});for(const _0x33446e of _0x2a966e)this['_addSuggestionMarker'](_0x46ed2a,_0x3fc35a,_0x56ca40,_0x33446e,_0xbeb2bd['getMultiRangeId']());return _0x3f152f;}['markInlineFormat'](_0x574f1c,_0x1edb62,_0xa4ecca=null,_0x21710b={}){if(_0xa4ecca=_0xa4ecca||pt(_0x1edb62),_0x574f1c['isCollapsed'])return;const _0x14819d=this['editor']['plugins']['get']('Users')['me'],_0x1eb190=[];for(const {suggestion:_0x496148,meta:_0x3a698d}of this['_findSuggestions'](_0x574f1c,'insertion'))_0x3a698d['isOwn']&&!_0x3a698d['isInsideObject']&&_0x1eb190['push'](..._0x496148['getRanges']());const _0x220a96=function(_0x5c5452,_0x3010bc){const _0x56dad9=[];for(const _0x172042 of _0x3010bc){const _0xa7d340=_0x5c5452['getIntersection'](_0x172042);_0xa7d340&&_0x56dad9['push'](_0xa7d340);}return _0x56dad9;}(_0x574f1c,_0x1eb190),_0x3ae156=function(_0x2927a7,_0x1bc1ee){const _0x5d0c9a=[_0x2927a7];for(const _0x2714f4 of _0x1bc1ee){let _0x4adf33=0x0;for(;_0x4adf33<_0x5d0c9a['length'];){const _0x2f43c8=_0x5d0c9a[_0x4adf33]['getDifference'](_0x2714f4);_0x5d0c9a['splice'](_0x4adf33,0x1,..._0x2f43c8),_0x4adf33+=_0x2f43c8['length'];}}return _0x5d0c9a;}(_0x574f1c,_0x1eb190);_0x220a96['length']&&this['_model']['change'](()=>{for(const _0x236170 of _0x220a96){const _0x49d232=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa4ecca,'accept');this['forceDefaultExecution'](()=>_0x49d232([_0x236170],_0x1edb62,_0x21710b));}});for(const _0x4b3be5 of _0x3ae156){let _0xb158d6=null,_0x4aa448=_0x4b3be5['start'],_0x33c4f9=_0x4b3be5['end'];for(const {suggestion:_0x40e6da,meta:_0x3d2c31}of this['_findSuggestions'](_0x4b3be5,'formatInline')){if(!_0x3d2c31['isOwn'])continue;if(_0x40e6da['subType']!=_0xa4ecca)continue;const _0x2fca43=_0x40e6da['getFirstRange']();if(_0x2fca43['containsRange'](_0x4b3be5,!0x0))return;_0x4aa448=_0x4aa448['isBefore'](_0x2fca43['start'])?_0x4aa448:_0x2fca43['start'],_0x33c4f9=_0x33c4f9['isAfter'](_0x2fca43['end'])?_0x33c4f9:_0x2fca43['end'],_0xb158d6?_0x2fca43['start']['isBefore'](_0xb158d6['getFirstRange']()['start'])?(_0xb158d6['removeMarkers'](),_0xb158d6=_0x40e6da):_0x40e6da['removeMarkers']():_0xb158d6=_0x40e6da;}const _0x5d8f34=this['_model']['createRange'](_0x4aa448,_0x33c4f9);if(_0xb158d6)this['_setSuggestionRange'](_0xb158d6,_0x5d8f34);else{const _0x30ac39=_0x5bd5e5(),_0x4d11a9=_0x14819d['id'];this['_setSuggestionData']({'id':_0x30ac39,'type':'formatInline:'+_0xa4ecca,'data':_0x1edb62,'createdAt':new Date(),'authorId':_0x4d11a9,'attributes':_0x21710b}),this['_addSuggestionMarker']('formatInline:'+_0xa4ecca,_0x30ac39,_0x4d11a9,_0x5d8f34);}}}['markBlockFormat'](_0x5e26c9,_0x25b85b,_0x2243c6=[],_0x2d3292=null,_0x4255e1={}){_0x25b85b['formatGroupId']||(_0x25b85b['formatGroupId']=_0x25b85b['commandName']),_0x25b85b['multipleBlocks']=_0x5e26c9['is']('range'),_0x2d3292=_0x2d3292||pt(_0x25b85b);const _0x281f85=_0x2243c6['map'](_0x4272ee=>wt(_0x4272ee,this['_model'])),_0x18d908=_0x5e26c9['is']('range')?_0x5e26c9:wt(_0x5e26c9,this['_model']);_0x281f85['push'](_0x18d908);let _0x59bb2b=!0x0;for(const _0x61cc2c of _0x281f85)if(!this['_rangeIsInLocalUserInsertion'](_0x61cc2c)){_0x59bb2b=!0x1;break;}if(_0x59bb2b){const _0x427716=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d3292,'accept');return void this['forceDefaultExecution'](()=>_0x427716([_0x18d908],_0x25b85b,_0x4255e1));}let _0xf77f19=null,_0x242955=_0x18d908['start'],_0x1e0ce9=_0x18d908['end'];for(const {suggestion:_0x5ea50f,meta:_0x2a682e}of this['_findSuggestions'](_0x18d908,'formatBlock')){if(!_0x2a682e['isOwn']||_0x2a682e['isNextTo']||_0x2a682e['containsRangeInObject']||_0x2a682e['isInsideObject'])continue;if(_0x5ea50f['data']['formatGroupId']!=_0x25b85b['formatGroupId'])continue;const _0x384802=_0x5ea50f['getFirstRange']();if(_0x5ea50f['subType']==_0x2d3292){if(_0x384802['containsRange'](_0x18d908,!0x0))return;_0x242955=_0x242955['isBefore'](_0x384802['start'])?_0x242955:_0x384802['start'],_0x1e0ce9=_0x1e0ce9['isAfter'](_0x384802['end'])?_0x1e0ce9:_0x384802['end'],_0xf77f19?_0x384802['start']['isBefore'](_0xf77f19['getFirstRange']()['start'])?(_0xf77f19['removeMarkers'](),_0xf77f19=_0x5ea50f):_0x5ea50f['removeMarkers']():_0xf77f19=_0x5ea50f;}else{const _0x56b2ff=_0x18d908['getIntersection'](_0x384802);this['_cutOutSuggestionMarker'](_0x5ea50f,_0x56b2ff);}}const _0x4638b5=this['editor']['plugins']['get']('Users')['me'],_0xec0206=_0x5bd5e5(),_0x49d19b=_0x4638b5['id'];_0xf77f19?this['_setSuggestionRange'](_0xf77f19,this['_model']['createRange'](_0x242955,_0x1e0ce9)):(this['_setSuggestionData']({'id':_0xec0206,'type':'formatBlock:'+_0x2d3292,'data':_0x25b85b,'createdAt':new Date(),'authorId':_0x49d19b,'attributes':_0x4255e1}),this['_addSuggestionMarker']('formatBlock:'+_0x2d3292,_0xec0206,_0x49d19b,this['_model']['createRange'](_0x242955,_0x1e0ce9)));}['markMultiRangeBlockFormat'](_0x505a7f,_0x4b5b49,_0x5444c7=[],_0x4337a0=null,_0x1304ca={}){_0x4b5b49['formatGroupId']||(_0x4b5b49['formatGroupId']=_0x4b5b49['commandName']),_0x4b5b49['multipleBlocks']=!0x1,_0x4337a0=_0x4337a0||pt(_0x4b5b49);const _0x2d0183=_0x5444c7['map'](_0x561ec0=>wt(_0x561ec0,this['_model'])),_0x41f41d=_0x505a7f['map'](_0x446fb3=>wt(_0x446fb3,this['_model']));_0x2d0183['push'](..._0x41f41d);let _0x260173=!0x0;for(const _0x305b91 of _0x2d0183)if(!this['_rangeIsInLocalUserInsertion'](_0x305b91)){_0x260173=!0x1;break;}if(_0x260173){const _0x20fba7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4337a0,'accept');return void this['forceDefaultExecution'](()=>_0x20fba7(_0x41f41d,_0x4b5b49,_0x1304ca));}const _0x258a67=this['editor']['plugins']['get']('Users')['me'];for(const _0x18ba85 of this['getSuggestions']()){if(_0x18ba85['author']['id']!=_0x258a67['id'])continue;if('formatBlock'!=_0x18ba85['type']||_0x18ba85['data']['formatGroupId']!=_0x4b5b49['formatGroupId'])continue;const _0x2c15d5=_0x18ba85['subType']==_0x4337a0;for(let _0x13ff79=0x0;_0x13ff79<_0x41f41d['length'];_0x13ff79++){const _0x2227a9=_0x41f41d[_0x13ff79];for(const _0xfd19e0 of _0x18ba85['getMarkers']()){const _0x32e163=_0xfd19e0['getRange']();if(_0x2227a9['isEqual'](_0x32e163)){_0x2c15d5?(_0x41f41d['splice'](_0x13ff79,0x1),_0x13ff79--):_0x18ba85['removeMarker'](_0xfd19e0['name']);break;}}}}if(0x0==_0x41f41d['length'])return;const _0x3f5cf1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4337a0,'join');for(const _0x2577d4 of this['getSuggestions']())if(_0x2577d4['author']['id']==_0x258a67['id']&&'formatBlock'==_0x2577d4['type']&&_0x2577d4['data']['formatGroupId']==_0x4b5b49['formatGroupId']&&_0x2577d4['subType']==_0x4337a0&&(_0x3f5cf1(_0x2577d4['getRanges'](),_0x41f41d)||_0x3f5cf1(_0x41f41d,_0x2577d4['getRanges']()))){for(const _0x3f6101 of _0x41f41d)_0x2577d4['addRange'](_0x3f6101);return _0x2577d4;}const _0xac136b=_0x5bd5e5(),_0x15cd49=_0x258a67['id'],_0x499f6f='formatBlock:'+_0x4337a0,_0x4357d7=this['_setSuggestionData']({'id':_0xac136b,'type':_0x499f6f,'data':_0x4b5b49,'createdAt':new Date(),'authorId':_0x15cd49,'attributes':_0x1304ca});for(const _0x2a5405 of _0x41f41d)this['_addSuggestionMarker'](_0x499f6f,_0xac136b,_0x15cd49,_0x2a5405,_0xbeb2bd['getMultiRangeId']());return _0x4357d7;}['markDeletion'](_0x4244b7,_0x4b6f4a=null,_0x3a783e={}){if(_0x4244b7['isCollapsed'])return null;const _0x53e949=this['editor']['plugins']['get']('Users')['me'],_0x2f147e=new _0x31ce06(_0x4244b7['start'],_0x4244b7['end']);for(const {suggestion:_0x3e556b,meta:_0x30516b}of this['_findSuggestions'](_0x2f147e,'insertion'))if(_0x30516b['isOwn']&&!_0x30516b['isNextTo']){if(_0x3e556b['isMultiRange']){const _0x58239a=_0x3e556b['getRanges']()['filter'](_0x1fe050=>'$graveyard'!=_0x1fe050['root']['rootName']);_0x58239a['every'](_0xe619bb=>_0x2f147e['containsRange'](_0xe619bb,!0x0))&&_0x3e556b['discard']();if(_0x58239a['some'](_0x50057f=>_0x50057f['containsRange'](_0x2f147e,!0x0))){const _0x540f59=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b6f4a,'accept');return this['forceDefaultExecution'](()=>_0x540f59([_0x2f147e],null,_0x3a783e)),null;}}else{const _0x2b1ba7=_0x2f147e['getIntersection'](_0x3e556b['getFirstRange']());_0x3e556b['_onDiscard']([_0x2b1ba7],null,_0x3a783e);}}if(_0x2f147e['detach'](),_0x2f147e['isCollapsed']||'$graveyard'==_0x2f147e['root']['rootName'])return null;let _0x5c874c=null,_0x45fe25=_0x2f147e['start'],_0x1930a8=_0x2f147e['end'];for(const {suggestion:_0x200ee8,meta:_0x24eea4}of this['_findSuggestions'](_0x2f147e,'deletion'))if(_0x24eea4['isOwn']){if(_0x200ee8['isMultiRange']){let _0x1fea31=!0x0;for(const _0x1fdfd8 of _0x200ee8['getRanges']()){if(_0x1fdfd8['containsRange'](_0x2f147e,!0x0))return _0x200ee8;_0x2f147e['containsRange'](_0x1fdfd8)||(_0x1fea31=!0x1);}_0x1fea31&&_0x200ee8['discard']();}else{const _0x51ad67=_0x200ee8['getFirstRange']();if(_0x51ad67['containsRange'](_0x2f147e,!0x0))return _0x200ee8;_0x45fe25=_0x45fe25['isBefore'](_0x51ad67['start'])?_0x45fe25:_0x51ad67['start'],_0x1930a8=_0x1930a8['isAfter'](_0x51ad67['end'])?_0x1930a8:_0x51ad67['end'],_0x5c874c?_0x51ad67['start']['isBefore'](_0x5c874c['getFirstRange']()['start'])?(_0x5c874c['removeMarkers'](),_0x5c874c=_0x200ee8):_0x200ee8['removeMarkers']():_0x5c874c=_0x200ee8;}}if(_0x5c874c)return this['_setSuggestionRange'](_0x5c874c,this['_model']['createRange'](_0x45fe25,_0x1930a8)),_0x5c874c;{const _0x1e0816=_0x5bd5e5(),_0x1bd0fc=this['_model']['createRange'](_0x45fe25,_0x1930a8),_0x4e6e28=_0x53e949['id'],_0x14be4e=_0x4b6f4a?'deletion:'+_0x4b6f4a:'deletion',_0x1275ea=this['_setSuggestionData']({'id':_0x1e0816,'type':_0x14be4e,'createdAt':new Date(),'authorId':_0x4e6e28,'attributes':_0x3a783e});return this['_addSuggestionMarker'](_0x14be4e,_0x1e0816,_0x4e6e28,_0x1bd0fc),_0x1275ea;}}['markMultiRangeDeletion'](_0x2127f6,_0x5c6c52='multi',_0x37f01a={}){const _0xd1fbbf=this['editor']['plugins']['get']('Users')['me'],_0x4842c8=_0x2127f6['map'](_0x4e7dae=>new _0x31ce06(_0x4e7dae['start'],_0x4e7dae['end'])),_0x5270d2=new Set();for(const _0x17c47e of _0x4842c8)for(const {suggestion:_0x5a3bdc,meta:_0x1eadb6}of this['_findSuggestions'](_0x17c47e,'insertion'))_0x1eadb6['isOwn']&&!_0x1eadb6['isNextTo']&&_0x5270d2['add'](_0x5a3bdc);for(const _0x55f19c of _0x5270d2)if(_0x55f19c['isMultiRange']){const _0x5d831c=_0x55f19c['getRanges']();(!_0x55f19c['attributes']||!_0x55f19c['attributes']['skipNestingCheck'])&&(_0x5d831c['every'](_0x10ad66=>_0x4842c8['some'](_0x108ae6=>_0x108ae6['containsRange'](_0x10ad66,!0x0)))&&_0x55f19c['discard']());if(_0x4842c8['every'](_0x425e09=>_0x5d831c['some'](_0x3b4ad8=>_0x3b4ad8['containsRange'](_0x425e09,!0x0)))){const _0x32899d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c6c52,'accept');return this['forceDefaultExecution'](()=>_0x32899d(_0x2127f6,null,_0x37f01a)),null;}}else{const _0x47d5ae=_0x55f19c['getFirstRange']();_0x4842c8['some'](_0x4d95d4=>_0x4d95d4['containsRange'](_0x47d5ae,!0x0))&&_0x55f19c['discard']();if(_0x4842c8['every'](_0x4c0ef9=>_0x47d5ae['containsRange'](_0x4c0ef9,!0x0))){const _0x294465=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c6c52,'accept');return this['forceDefaultExecution'](()=>_0x294465(_0x4842c8,null,_0x37f01a)),null;}}const _0x2c41a8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c6c52,'join');let _0x2a58fc=null;for(const _0x4d3799 of this['getSuggestions']())if(_0x4d3799['author']['id']==_0xd1fbbf['id']&&_0x4d3799['isInContent']&&'deletion'==_0x4d3799['type']&&_0x4d3799['subType']==_0x5c6c52&&(_0x2c41a8(_0x4d3799['getRanges'](),_0x4842c8)||_0x2c41a8(_0x4842c8,_0x4d3799['getRanges']()))){if(_0x2a58fc){if(_0x4d3799['commentThread']&&_0x4d3799['commentThread']['length'])continue;for(const _0x59c0dd of _0x4d3799['getRanges']())_0x2a58fc['isIntersectingWithRange'](_0x59c0dd)||_0x2a58fc['addRange'](_0x59c0dd);_0x4d3799['removeMarkers']();}else{_0x2a58fc=_0x4d3799;for(const _0x100bc4 of _0x4842c8)_0x4d3799['isIntersectingWithRange'](_0x100bc4)||_0x4d3799['addRange'](_0x100bc4);}}if(_0x2a58fc)return _0x2a58fc;_0x5270d2['clear']();for(const _0x2ac1c8 of _0x4842c8)for(const {suggestion:_0x3e87c0,meta:_0x1d3102}of this['_findSuggestions'](_0x2ac1c8,'deletion'))_0x1d3102['isOwn']&&_0x5270d2['add'](_0x3e87c0);for(const _0x3afd8d of _0x5270d2){const _0x39449f=_0x3afd8d['getRanges']();if(!_0x37f01a||!_0x37f01a['skipNestingCheck']){if(_0x4842c8['every'](_0x3e919c=>_0x39449f['some'](_0x202686=>_0x202686['containsRange'](_0x3e919c,!0x0))))return _0x3afd8d;}(!_0x3afd8d['attributes']||!_0x3afd8d['attributes']['skipNestingCheck'])&&(_0x39449f['every'](_0x59fe36=>_0x4842c8['some'](_0x2f572e=>_0x2f572e['containsRange'](_0x59fe36,!0x0)))&&_0x3afd8d['discard']());}const _0x1c7dc3=_0x5bd5e5(),_0x3aa302=_0xd1fbbf['id'],_0x12a9d5='deletion:'+_0x5c6c52,_0x5a9d60=this['_setSuggestionData']({'id':_0x1c7dc3,'type':_0x12a9d5,'createdAt':new Date(),'authorId':_0x3aa302,'attributes':_0x37f01a});for(const _0x49e429 of _0x4842c8)_0x49e429['detach'](),_0x49e429['isCollapsed']||'$graveyard'==_0x49e429['root']['rootName']||this['_addSuggestionMarker'](_0x12a9d5,_0x1c7dc3,_0x3aa302,_0x49e429,_0xbeb2bd['getMultiRangeId']());return _0x5a9d60;}['_setSuggestionRange'](_0x143899,_0x46ab17){const _0x3a55bf=_0x143899['getFirstMarker']();this['_model']['change'](_0x72b55f=>{_0x72b55f['updateMarker'](_0x3a55bf,{'range':_0x46ab17});});}['_addThreadToSuggestion'](_0x141d83){const _0x4230cc=_0x141d83['id'],_0x37a2e1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4230cc)||this['_commentsRepository']['addCommentThread']({'channelId':_0x37a2e1,'threadId':_0x4230cc});const _0x4e6db7=this['_commentsRepository']['getCommentThread'](_0x4230cc);_0x4e6db7['unbind']('isRemovable'),_0x4e6db7['isRemovable']=!0x1,_0x141d83['commentThread']=_0x4e6db7;}['_checkSuggestionCorrectness'](_0x527bbc,_0x44d14e,_0x16a9d6,_0x20ba84){if(_0x527bbc['type']!=_0x44d14e||_0x527bbc['subType']!=_0x16a9d6||_0x527bbc['author']['id']!=_0x20ba84)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3af4d7('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3c8f99,_0x3dce3c){const _0x2b80e7=_0x3c8f99['getFirstRange']();if(_0x3dce3c['isEqual'](_0x2b80e7))_0x3c8f99['removeMarkers']();else{if(_0x2b80e7['containsRange'](_0x3dce3c)){const _0x51b2a9=this['_model']['createPositionAt'](_0x3dce3c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c8f99,this['_model']['createRange'](_0x2b80e7['start'],_0x51b2a9));const _0x402f2b=_0x5bd5e5(),_0x5b8fb1=_0x3c8f99['author']['id'],_0x1f805d=_0x3c8f99['type']+':'+_0x3c8f99['subType'];this['_setSuggestionData']({'id':_0x402f2b,'type':_0x1f805d,'createdAt':new Date(),'authorId':_0x5b8fb1,'data':_0x3c8f99['data'],'attributes':_0x3c8f99['attributes']});const _0x538eed=this['_model']['createPositionAt'](_0x3dce3c['end']['parent'],'after'),_0x400b26=this['_model']['createRange'](_0x538eed,_0x2b80e7['end']);this['_addSuggestionMarker'](_0x1f805d,_0x402f2b,_0x5b8fb1,_0x400b26);}else{if(_0x2b80e7['containsPosition'](_0x3dce3c['start'])){const _0x4fb0a2=this['_model']['createPositionAt'](_0x3dce3c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c8f99,this['_model']['createRange'](_0x2b80e7['start'],_0x4fb0a2));}else{const _0x4d898b=this['_model']['createPositionAt'](_0x3dce3c['end']['parent'],'after');this['_setSuggestionRange'](_0x3c8f99,this['_model']['createRange'](_0x4d898b,_0x2b80e7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x11cf37){for(const {suggestion:_0x1877d8,meta:_0x817ca9}of this['_findSuggestions'](_0x11cf37,'insertion')){if(!_0x817ca9['isOwn'])continue;const _0x1fb500=_0x1877d8['getRanges']();for(const _0x51ad07 of _0x1fb500)if(!_0x11cf37['getDifference'](_0x51ad07)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4e7e6a){const _0x29b434=this['editor']['plugins']['get']('Users')['getUser'](_0x4e7e6a);if(!_0x29b434)throw new _0x3af4d7('track-changes-user-not-found',this);return _0x29b434;}['_createSuggestion'](_0x4139da,_0x5bb773,_0xdbf4df,_0x37f4e5){const _0x1fc061=this['_getAuthorFromId'](_0x37f4e5),_0x39906d=this['_suggestionFactory']['buildSuggestion'](_0x4139da,_0x5bb773,_0xdbf4df,_0x1fc061,_0x133bb1=>this['_updateSuggestionData'](_0xdbf4df,{'attributes':_0x133bb1}));return this['listenTo'](_0x39906d,'accept',()=>{this['_updateSuggestionData'](_0xdbf4df,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x39906d,'discard',()=>{this['_updateSuggestionData'](_0xdbf4df,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xdbf4df,_0x39906d),this['_suggestionState']['set'](_0x39906d,'notReady'),_0x39906d;}['_splitMarkerName'](_0x560fe5){const _0x547c58=_0x560fe5['split'](':');return{'group':_0x547c58[0x0],'type':_0x547c58[0x1],'subType':_0x547c58['length']>=0x5?_0x547c58[0x2]:null,'id':_0x547c58['length']<0x5?_0x547c58[0x2]:_0x547c58[0x3],'authorId':_0x547c58['length']<0x5?_0x547c58[0x3]:_0x547c58[0x4],'markerCount':0x6==_0x547c58['length']?_0x547c58[0x5]:null};}['_breakSuggestionMarker'](_0x32f8f9,_0x4b64c7,_0x4449fc){const _0x332c41=_0x32f8f9['getFirstRange'](),_0x1a6770=_0x332c41['start'],_0xed8e12=_0x332c41['end'];this['_setSuggestionRange'](_0x32f8f9,this['_model']['createRange'](_0x1a6770,_0x4b64c7));const _0x567272=_0x5bd5e5(),_0x37ff1b=_0x32f8f9['author']['id'],_0x37cd26=_0x32f8f9['type']+(_0x32f8f9['subType']?':'+_0x32f8f9['subType']:'');this['_setSuggestionData']({'id':_0x567272,'type':_0x37cd26,'createdAt':new Date(),'authorId':_0x37ff1b,'originalSuggestionId':_0x32f8f9['id'],'data':_0x32f8f9['data']}),'formatBlock'==_0x32f8f9['type']&&(_0x4449fc=this['_model']['createPositionBefore'](_0x4449fc['parent'])),this['_addSuggestionMarker'](_0x37cd26,_0x567272,_0x37ff1b,this['_model']['createRange'](_0x4449fc,_0xed8e12));}['_findSuggestions'](_0x279887,_0x127fde=null){const _0x148612=[],_0x1e8f28=this['_model']['schema'],_0x69d08d=this['editor']['plugins']['get']('Users')['me'];for(const _0x1fc996 of this['getSuggestions']())if(_0x1fc996['isInContent']&&(!_0x127fde||_0x1fc996['type']==_0x127fde))for(const _0x35dd16 of _0x1fc996['getRanges']()){const _0x26481d=_0x279887['start']['isEqual'](_0x35dd16['end'])||_0x279887['end']['isEqual'](_0x35dd16['start']);if(_0x26481d||_0x279887['getIntersection'](_0x35dd16)){const _0xa94a6b=_0x279887['containsRange'](_0x35dd16)&<(_0x1e8f28,_0x35dd16['start'],_0x279887),_0x2c6d7f=_0x35dd16['containsRange'](_0x279887)&<(_0x1e8f28,_0x279887['start'],_0x35dd16);_0x148612['push']({'suggestion':_0x1fc996,'meta':{'isOwn':_0x69d08d==_0x1fc996['author'],'isNextTo':_0x26481d,'isInsideObject':_0xa94a6b,'containsRangeInObject':_0x2c6d7f}});break;}}return _0x148612;}['_addSuggestionMarker'](_0x86c9f3,_0x5eb937,_0x3b08bd,_0x5085df,_0xe1b3cc=null){this['_model']['change'](_0x1c7eaa=>{let _0x2c9410='suggestion:'+_0x86c9f3+':'+_0x5eb937+':'+_0x3b08bd;_0xe1b3cc&&(_0x2c9410=_0x2c9410+':'+_0xe1b3cc),_0x1c7eaa['addMarker'](_0x2c9410,{'range':_0x5085df,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3cec4b){const _0x555972=_0x3cec4b['previous'],_0x3c5aa1=_0x3cec4b['next'];_0x3cec4b['previous']=null,null!=_0x555972&&(_0x555972['next']=null),_0x3cec4b['next']=null,null!=_0x3c5aa1&&(_0x3c5aa1['previous']=null),'ready'==this['_suggestionState']['get'](_0x3cec4b)&&(this['_suggestionState']['set'](_0x3cec4b,'removed'),this['fire']('suggestionUnloaded',_0x3cec4b,_0x555972,_0x3c5aa1));}['_setSuggestionData'](_0x25975b){const _0x542ed4=_0x25975b['id'],_0x21c6d1=this['addSuggestionData'](_0x25975b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x50ba78=this['editor']['plugins']['get']('PendingActions'),_0x1289a2=_0x21c6d1['hasComments'],_0x4d1a4c=_0x21c6d1['subType']?_0x21c6d1['type']+':'+_0x21c6d1['subType']:_0x21c6d1['type'],t=this['editor']['locale']['t'],_0x2c37df=_0x50ba78['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'})),_0x254710={'id':_0x542ed4,'type':_0x4d1a4c,'hasComments':_0x1289a2,'data':_0x25975b['data']||null,'originalSuggestionId':_0x25975b['originalSuggestionId']||null,'attributes':_0x21c6d1['attributes']};this['_adapter']['addSuggestion'](_0x254710)['then'](_0x5121b6=>{_0x21c6d1['_saved']=!0x0,_0x50ba78['remove'](_0x2c37df),_0x5121b6&&_0x5121b6['createdAt']&&(this['_suggestions']['get'](_0x542ed4)['createdAt']=_0x5121b6['createdAt']);});}return _0x21c6d1;}['_updateSuggestionData'](_0x2351c2,_0x23b59f){const _0x34eb39=this['editor']['plugins']['get']('PendingActions'),_0x56644c=this['_suggestions']['get'](_0x2351c2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x56644c['_saved']){const t=this['editor']['locale']['t'],_0x1482db=_0x34eb39['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));this['_adapter']['updateSuggestion'](_0x2351c2,_0x23b59f)['then'](()=>{_0x34eb39['remove'](_0x1482db);});}else _0x56644c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2351c2,_0x23b59f);});}}['_getSuggestionData'](_0x4cbad8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3af4d7('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4cbad8);}['_handleNewSuggestionMarker'](_0x240389){const {id:_0x5c17fb,type:_0x19dfbf,subType:_0x1e041f,authorId:_0x8c6aba}=this['_splitMarkerName'](_0x240389),_0x2c778e=this['_suggestions']['get'](_0x5c17fb)||this['_createSuggestion'](_0x19dfbf,_0x1e041f,_0x5c17fb,_0x8c6aba);switch(this['_checkSuggestionCorrectness'](_0x2c778e,_0x19dfbf,_0x1e041f,_0x8c6aba),this['_suggestionState']['get'](_0x2c778e)){case'notReady':this['_getSuggestionData'](_0x5c17fb)['then'](_0x59b519=>{let _0x4ed2a9=Promise['resolve']();_0x59b519['hasComments']&&(_0x4ed2a9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5c17fb})),_0x4ed2a9['then'](()=>{this['addSuggestionData'](_0x59b519)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c778e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5c17fb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c778e,'ready'),this['fire']('suggestionLoaded',_0x2c778e);break;case'ready':this['fire']('suggestionChanged',_0x2c778e);}_0x2c778e['addMarkerName'](_0x240389),this['_refreshSuggestionsChain'](_0x2c778e);}['_refreshSuggestionsChain'](_0x27fec4){if(_0x27fec4['isMultiRange'])return;let _0x2d8bdf=!0x0,_0x43fc97=!0x0;for(const _0x35325e of this['getSuggestions']()){if(_0x35325e['isMultiRange'])continue;if(_0x35325e==_0x27fec4||!_0x35325e['isInContent'])continue;if(_0x35325e['author']['id']!=_0x27fec4['author']['id'])continue;const _0x28a224=this['_suggestionFactory']['getSuggestionCallback'](_0x27fec4['type'],_0x27fec4['subType'],'chain'),_0xe28724=this['_suggestionFactory']['getSuggestionCallback'](_0x35325e['type'],_0x35325e['subType'],'chain'),_0x5c5505=_0x28a224(_0x27fec4,_0x35325e),_0x189474=_0xe28724(_0x27fec4,_0x35325e);_0x5c5505&&_0x189474&&(_0x5c5505[0x1]['commentThread']&&_0x5c5505[0x1]['commentThread']['length']||(_0x5c5505[0x0]['next']=_0x5c5505[0x1],_0x5c5505[0x1]['previous']=_0x5c5505[0x0],_0x5c5505[0x0]==_0x27fec4?_0x43fc97=!0x1:_0x2d8bdf=!0x1));}_0x27fec4['previous']&&_0x2d8bdf&&(_0x27fec4['previous']['next']=null,_0x27fec4['previous']=null),_0x27fec4['next']&&_0x43fc97&&(_0x27fec4['next']['previous']=null,_0x27fec4['next']=null);}['_joinWithAdjacentSuggestions'](_0x110553){for(const _0x422430 of this['_suggestions']['values']()){if(_0x422430==_0x110553||!_0x422430['isInContent'])continue;if(_0x422430['type']!=_0x110553['type']||_0x422430['author']['id']!=_0x110553['author']['id']||_0x422430['subType']!=_0x110553['subType'])continue;const _0x3da12a=this['_suggestionFactory']['getSuggestionCallback'](_0x110553['type'],_0x110553['subType'],'join');if(_0x3da12a(_0x422430['getRanges'](),_0x110553['getRanges']())){if(_0x110553['commentThread']&&_0x110553['commentThread']['length'])continue;return this['_joinSuggestions'](_0x422430,_0x110553),!0x0;}if(_0x3da12a(_0x110553['getRanges'](),_0x422430['getRanges']())){if(_0x422430['commentThread']&&_0x422430['commentThread']['length'])continue;return this['_joinSuggestions'](_0x110553,_0x422430),!0x0;}}return!0x1;}['_joinSuggestions'](_0xb203da,_0x46c9ce){if(_0xb203da['isMultiRange'])for(const _0xab860c of _0x46c9ce['getRanges']())_0xb203da['addRange'](_0xab860c);else{const _0x362089=_0x46c9ce['getFirstRange']()['end'];this['_setSuggestionRange'](_0xb203da,this['_model']['createRange'](_0xb203da['getFirstRange']()['start'],_0x362089));}_0x46c9ce['removeMarkers']();}}_0x1aa60c(d,_0x50e452);class gt{constructor(_0x612052){this['_editor']=_0x612052,this['_model']=_0x612052['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x304fd5,_0x42241c,_0xbf8c17,_0x569098,_0x4f35a7){return new _0xbeb2bd(this['_model'],{'type':_0x304fd5,'subType':_0x42241c,'id':_0xbf8c17,'author':_0x569098,'onAttributesChange':_0x4f35a7,'onAccept':(..._0x43a293)=>this['getSuggestionCallback'](_0x304fd5,_0x42241c,'accept')(..._0x43a293),'onDiscard':(..._0x172fbb)=>this['getSuggestionCallback'](_0x304fd5,_0x42241c,'discard')(..._0x172fbb)});}['registerCustomCallback'](_0xec5a28,_0x5a8f81,_0xf17096,_0x462667){const _0x3436cf=_0xec5a28+':'+_0x5a8f81+':'+_0xf17096;this['_customCallbacks']['set'](_0x3436cf,_0x462667);}['getSuggestionCallback'](_0x496e7c,_0x562982,_0x468199){const _0x16de6b=_0x496e7c+':'+_0x562982+':'+_0x468199;return this['_customCallbacks']['get'](_0x16de6b)||this['_defaultCallbacks']['get'](_0x496e7c+':'+_0x468199);}['_registerDefaultCallbacks'](){const _0xd9dd=()=>{},_0x31ffe5=_0x1995b0=>{_0x1995b0['sort']((_0x536777,_0x26bee9)=>_0x536777['start']['isBefore'](_0x26bee9['start'])?0x1:-0x1),this['_model']['change'](_0x549050=>{for(const _0x44f2c9 of _0x1995b0){let _0xcb4574;_0xcb4574=_0x44f2c9['end']['isAtEnd']&&_0x44f2c9['end']['parent']==_0x44f2c9['start']['nodeAfter']?_0x549050['createSelection'](_0x44f2c9['start']['nodeAfter'],'on'):_0x549050['createSelection'](_0x44f2c9),this['_model']['deleteContent'](_0xcb4574,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4cdf05=(_0x573cf5,_0x46eeb5)=>{this['_model']['change'](_0x54af97=>{const {commandName:_0x45c392,commandParams:_0x66ed2b=[]}=_0x46eeb5,_0x15bb1d=_0x573cf5[0x0];if('$graveyard'==_0x15bb1d['root']['rootName'])return;const _0x33dd8f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1a76e7=>_0x31ce06['fromRange'](_0x1a76e7));dt(_0x15bb1d)?_0x54af97['setSelection'](this['_model']['createRange'](_0x15bb1d['end'])):_0x54af97['setSelection'](_0x15bb1d);for(const _0x44cab7 of this['_editor']['commands']['commands']())_0x44cab7['refresh']();_0x66ed2b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x45c392,..._0x66ed2b);const _0x45bf47=_0x33dd8f['filter'](_0x163587=>'$graveyard'!=_0x163587['root']['rootName']);_0x45bf47['length']>0x0&&_0x54af97['setSelection'](_0x45bf47);for(const _0x52cf37 of _0x33dd8f)_0x52cf37['detach']();});},_0xcce9c3=(_0x268bb4,_0xb7965f)=>0x1==_0x268bb4['length']&&0x1==_0xb7965f['length']&&_0x268bb4[0x0]['end']['isEqual'](_0xb7965f[0x0]['start']),_0x5a91f9=(_0x172cf8,_0x22d2db)=>yt(_0x172cf8,_0x22d2db,this['_model'])?[_0x172cf8,_0x22d2db]:yt(_0x22d2db,_0x172cf8,this['_model'])?[_0x22d2db,_0x172cf8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xd9dd),this['_defaultCallbacks']['set']('insertion:discard',_0x31ffe5),this['_defaultCallbacks']['set']('insertion:join',_0xcce9c3),this['_defaultCallbacks']['set']('insertion:chain',_0x5a91f9),this['_defaultCallbacks']['set']('deletion:accept',_0x31ffe5),this['_defaultCallbacks']['set']('deletion:discard',_0xd9dd),this['_defaultCallbacks']['set']('deletion:join',_0xcce9c3),this['_defaultCallbacks']['set']('deletion:chain',_0x5a91f9),this['_defaultCallbacks']['set']('formatInline:accept',_0x4cdf05),this['_defaultCallbacks']['set']('formatInline:discard',_0xd9dd),this['_defaultCallbacks']['set']('formatInline:join',_0xcce9c3),this['_defaultCallbacks']['set']('formatInline:chain',_0xd9dd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4cdf05),this['_defaultCallbacks']['set']('formatBlock:discard',_0xd9dd),this['_defaultCallbacks']['set']('formatBlock:join',_0xcce9c3),this['_defaultCallbacks']['set']('formatBlock:chain',_0xd9dd);}}function lt(_0x1e187b,_0x53f8c6,_0x3e5141){for(const _0x5b35e of _0x53f8c6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b35e['root']==_0x5b35e)return!0x1;if(!_0x3e5141['containsItem'](_0x5b35e))return!0x1;if(_0x1e187b['isObject'](_0x5b35e)||_0x1e187b['isLimit'](_0x5b35e))return!0x0;}}function dt(_0x3a4dc7){return _0x3a4dc7['end']['parent']==_0x3a4dc7['start']['nodeAfter']&&_0x3a4dc7['end']['isAtStart'];}function mt(_0x1ca862,_0x92404a,_0x21217e,_0x536629){const _0x5e38b0=_0x1f7777=>!_0x1f7777['item']['is']('textProxy')&&!_0x536629['isObject'](_0x1f7777['item']),_0x5e73b6=_0x1ca862['start']['getLastMatchingPosition'](_0x5e38b0),_0x5cde55=_0x1ca862['end']['getLastMatchingPosition'](_0x5e38b0,{'direction':'backward'});return(!_0x1ca862['start']['isEqual'](_0x5e73b6)||!_0x1ca862['end']['isEqual'](_0x5cde55))&&(_0x5e73b6['isBefore'](_0x5cde55)?_0x21217e['updateMarker'](_0x92404a,{'range':_0x21217e['createRange'](_0x5e73b6,_0x5cde55)}):_0x21217e['removeMarker'](_0x92404a),!0x0);}function pt(_0x3cdda5){return ft(_0x3cdda5);}function kt(_0x4c82bc){const _0x5d4d51=_0x4c82bc['start']['nodeAfter'];return _0x5d4d51&&_0x5d4d51['is']('element');}function wt(_0x35ca2c,_0x55d5ce){const _0x1e2ba7=_0x55d5ce['schema']['isObject'](_0x35ca2c)||_0x55d5ce['schema']['isSelectable'](_0x35ca2c);return _0x55d5ce['createRange'](_0x55d5ce['createPositionAt'](_0x35ca2c,'before'),_0x1e2ba7?_0x55d5ce['createPositionAfter'](_0x35ca2c):_0x55d5ce['createPositionAt'](_0x35ca2c,'end'));}function yt(_0x13358c,_0x182ee1,_0x19129b){const _0x365631=_0x13358c['getFirstRange'](),_0x4a833=_0x182ee1['getFirstRange']();if(_0x365631['end']['isEqual'](_0x4a833['start']))return!0x0;if(_0x13358c['type']!=_0x182ee1['type'])return!0x1;if(!_0x365631['end']['isTouching'](_0x4a833['start']))return!0x1;const _0xa0b025=_0x19129b['createRange'](_0x365631['end'],_0x4a833['start'])['getWalker']();for(const _0x440670 of _0xa0b025)if(['elementStart','elementEnd']['includes'](_0x440670['type'])&&_0x19129b['schema']['isLimit'](_0x440670['item']))return!0x1;return!0x0;}
|
|
23
|
+
const _0x4e50=['_adapter','markerReady','nodeAfter','highest','markInlineFormat','catch','isIntersectingWithRange','formatInline','refresh','ck-suggestion-marker-','schema','getMultiRangeId','change:activeMarkers','moveTargetPosition','markerName','pluginName','deletion','elementStart','createPositionAt','nodeBefore','enableReadOnlyMode','isLimit','every','collaboration.channelId','insert','change:_saved','createRange','length','multipleBlocks','elementEnd','_findSuggestions','formatInline:join','suggestionUnloaded','acceptSelectedSuggestions','consume','updateSuggestion','insertion','track-changes-suggestion-data-mismatch','move','open','hasSuggestion','commandName','ck-suggestion-marker--active','_defaultCallbacks','add','listenTo','then','rethrowUnexpectedError','trackChangesCommand','for','toViewElement','isUndo','_enabledCommands','_getSuggestionData','batch','addCommentThread','formatBlock:','isDocumentOperation','removeComment','_suggestionState','PendingActions','editing','filter','high','lowest','containsPosition','ck-suggestion-marker-formatBlock','getDifference','getRanges','markMultiRangeBlockFormat','isAfter','accept','_commentsRepository','getFirstMarker','ready','adapter','sort','discardAllSuggestions','locale','_descriptionFactory','_breakSuggestionMarker','deletion:','commands','acceptSuggestion','fromCharCode','isOwn','includes','removeClass','execute','value','suggestion','isRemovable','getAttribute','showSuggestionHighlights','multi','normal','_customCallbacks','_updateSuggestionData','markMultiRangeInsertion','CommentsRepository','suggestionLoaded','enableCommand','position','_setSuggestionData','markers','getUser','_registerDefaultCallbacks','getAllAdjacentSuggestions','TrackChangesEditing','next','_onDiscard','getSuggestions','getLastMatchingPosition','_removeSuggestion','discardSuggestion','notReady','removed','isAtEnd','document','stop','suggestionChanged','howMany','join','isBlock','createRangeIn','containsRangeInObject','formatInline:','fromRange','$graveyard','config','plugins','hasCommentThread','clone','getItems','$marker','formatBlock','root','insertContent','getWalker','isBefore','createdAt','unbindElementFromMarkerName','addSuggestion','commentThread','isEqual','newRange','element','elementToElement','_handleNewSuggestionMarker','getChangedMarkers','skipNestingCheck','isInContent','_setSuggestionRange','markDeletion','_checkSuggestionCorrectness','detach','name','discard','markBlockFormat','some','trackChanges','parent','removeMarker','before','selection','rootName','reconvertMarker','Users','subType','deleteContent','isSelectable','track-changes-adapter-already-set','dataDowncast','editor','getAncestors','_joinWithAdjacentSuggestions','_addThreadToSuggestion','PENDING_ACTION_SUGGESTION','fetchCommentThread','containsRange','setSelection','isNextTo','_getAuthorFromId','item','set','forceDefaultExecution','isInsideObject','getShiftedBy','after','data','getCommentThread','low','isLocal','writer','range','split','deletion:accept','get','conversion','getMarkers','ck-suggestion-marker','_editor','error-saving-suggestion-data-suggestion-discarded','formatInline:discard','editingDowncast','markInsertion','from','init','attributes','addClass','start','clear','insertion:chain','updateMarker','getIntersection','getSuggestion','end','markerToData','mapper','consumable','getRange','setTo','toJSON','documentSelection','values','addComment','insertion:discard','insertion:','update:suggestion','enqueueChange','stopListening','markerToHighlight','forward','marker-count','_suggestionFactory','differ','oldRange','resolve','getChanges','isTouching','has','model','registerPostFixer','bindElementToMarker','targetPosition','chain','acceptAllSuggestions','formatGroupId','dataReady','fire','deletion:chain','createElement','_createSuggestion','change','widget','_suggestions','removeMarkers','_splitMarkerName','_addSuggestionMarker','push','getCustomProperty','activeMarkers','author','addRange','_isForcedDefaultExecutionBlock','requires','_saved','hasComments','type','addHighlight','buildSuggestion','splice','substr','addMarker:suggestion','insertion:accept','isCollapsed','accepted','upcast','markerNameToElements','formatInline:accept','unbind','getSuggestionCallback','formatBlock:chain','getNearestSelectionRange','discardSelectedSuggestions','splitPosition','_joinSuggestions','_rangeIsInLocalUserInsertion','isMultiRange','addSuggestionData','getFirstRange','previous','options','formatInline:chain','isObject','map','_model'];(function(_0x5743e5,_0x4e50be){const _0x20845b=function(_0x5e5aa7){while(--_0x5e5aa7){_0x5743e5['push'](_0x5743e5['shift']());}};_0x20845b(++_0x4e50be);}(_0x4e50,0x1d2));const _0x2084=function(_0x5743e5,_0x4e50be){_0x5743e5=_0x5743e5-0x0;let _0x20845b=_0x4e50[_0x5743e5];return _0x20845b;};import{Plugin as _0x8ec1c4,PendingActions as _0x4e6bbe}from'ckeditor5/src/core';import{LiveRange as _0x184ebb}from'ckeditor5/src/engine';import{CKEditorError as _0xa2b4f8,uid as _0x495cdf,priorities as _0x2fc2f3,EmitterMixin as _0x5cb8bb,mix as _0x52747c,logWarning as _0x3155d4}from'ckeditor5/src/utils';import{toWidget as _0x402b96}from'ckeditor5/src/widget';import{Users as _0xe522a7}from'ckeditor5-collaboration/src/collaboration-core';import _0x4416c1 from'./commands/trackchangescommand';import _0x57bec2 from'./commands/acceptsuggestioncommand';import _0x2490be from'./commands/discardsuggestioncommand';import _0x51437a from'./commands/acceptallsuggestionscommand';import _0x37d9a2 from'./commands/acceptselectedsuggestionscommand';import _0x5a0ffd from'./commands/discardallsuggestionscommand';import _0x1498b2 from'./commands/discardselectedsuggestionscommand';import _0x4f381c from'./suggestion';import _0x326a3c from'./suggestiondescriptionfactory';import _0x14260a from'./integrations/alignment';import _0xb18c0 from'./integrations/basicstyles';import _0x47261e from'./integrations/blockquote';import _0xdcecb3 from'./integrations/ckbox';import _0x3b44a1 from'./integrations/codeblock';import _0x387bbd from'./integrations/comments';import _0x59e1fe from'./integrations/deletecommand';import _0x1e2300 from'./integrations/entercommand';import _0xf1da5d from'./integrations/font';import _0x19dfc9 from'./integrations/heading';import _0xb5bb84 from'./integrations/highlight';import _0x8a84b8 from'./integrations/horizontalline';import _0x37558a from'./integrations/htmlembed';import _0x4acfd4 from'./integrations/image';import _0x31613c from'./integrations/indent';import _0x4df52f from'./integrations/inputcommand';import _0xb8c452 from'./integrations/link';import _0x3eb14d from'./integrations/list';import _0x150391 from'./integrations/mediaembed';import _0x4fef32 from'./integrations/mention';import _0x4f1c46 from'./integrations/pagebreak';import _0x175997 from'./integrations/paragraph';import _0x3d6627 from'./integrations/removeformat';import _0xbc04ab from'./integrations/restrictededitingmode';import _0x25c690 from'./integrations/shiftentercommand';import _0x5c4d29 from'./integrations/standardeditingmode';import _0x128768 from'./integrations/style';import _0x5c5a42 from'./integrations/table';import _0x432f89 from'./integrations/tablemergesplit';import _0xb06e44 from'./integrations/tableheadings';import _0x36a464 from'./integrations/tableclipboard';import _0x1c4f12 from'./integrations/title';import _0x40f99d from'./integrations/undo';import _0x252d75 from'./utils/hashobject.js';import{getTranslation as _0x2d02e2}from'./utils/common-translations';export default class d extends _0x8ec1c4{static get[_0x2084('0x60')](){return[_0x2084('0xe3'),_0xe522a7,_0x4e6bbe,_0x14260a,_0xb18c0,_0x47261e,_0xdcecb3,_0x3b44a1,_0x387bbd,_0x59e1fe,_0x1e2300,_0xf1da5d,_0x19dfc9,_0xb5bb84,_0x8a84b8,_0x37558a,_0x4acfd4,_0x31613c,_0x4df52f,_0xb8c452,_0x3eb14d,_0x150391,_0x4fef32,_0x4f1c46,_0x175997,_0x3d6627,_0xbc04ab,_0x25c690,_0x5c4d29,_0x128768,_0x5c5a42,_0x432f89,_0xb06e44,_0x36a464,_0x1c4f12,_0x40f99d];}static get[_0x2084('0x8f')](){return _0x2084('0xec');}constructor(_0x2e317b){function _0x39bdc7(_0x19686c){return _0x19686c['map'](_0x524375=>String[_0x2084('0xd4')](_0x524375))[_0x2084('0xfa')]('');}super(_0x2e317b),this['set'](_0x2084('0x5c'),[]),this['on'](_0x2084('0x8c'),(_0x48358f,_0x471129,_0x2515da,_0xa073be)=>{this[_0x2084('0x7f')][_0x2084('0x54')](()=>{for(const _0xc52385 of[..._0xa073be,..._0x2515da])this[_0x2084('0x7f')][_0x2084('0xe8')][_0x2084('0x47')](_0xc52385)&&_0x2e317b[_0x2084('0xbd')][_0x2084('0x126')](_0xc52385);});}),this[_0x2084('0xcf')]=new _0x326a3c(this['editor'][_0x2084('0x48')][_0x2084('0x8a')],this[_0x2084('0x4')][_0x2084('0xce')]),this[_0x2084('0x80')]=null,this[_0x2084('0x41')]=new kt(this[_0x2084('0x4')]),this[_0x2084('0x56')]=new Map(),this[_0x2084('0xc8')]=_0x2e317b[_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0xe3')),this[_0x2084('0xb4')]=new Set(),this['_model']=this[_0x2084('0x4')][_0x2084('0x48')],this[_0x2084('0xbb')]=new WeakMap(),this[_0x2084('0x5f')]=!0x1,this[_0x39bdc7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x39bdc7([0x34,0x30,0x34,0x34,0x31,0x36,0x30,0x36]);}[_0x2084('0x26')](){const _0x479243=this[_0x2084('0x4')];_0x479243[_0x2084('0x1d')][_0x2084('0xb1')](_0x2084('0x23'))[_0x2084('0x3e')]({'model':_0x2084('0xda'),'view':_0xcc5c97=>{const {id:_0x3255bf,type:_0x50d112}=this['_splitMarkerName'](_0xcc5c97[_0x2084('0x8e')]),_0x24bee7=[_0x2084('0x1f'),'ck-suggestion-marker-'+_0x50d112];let _0x309fb1=0xbb8;return this[_0x2084('0x5c')][_0x2084('0xd6')](_0xcc5c97[_0x2084('0x8e')])&&(_0x24bee7[_0x2084('0x5a')](_0x2084('0xaa')),_0x309fb1=0xbc2),_0x2084('0x90')==_0x50d112&&(_0x309fb1+=0x5),{'classes':_0x24bee7,'attributes':{'data-suggestion':_0x3255bf},'priority':_0x309fb1};}}),_0x479243['conversion'][_0x2084('0xb1')](_0x2084('0x3'))[_0x2084('0xac')](_0x4936ae=>{_0x4936ae['on'](_0x2084('0x68'),(_0x3c2f34,_0xcb4342,_0x3093ed)=>{if(!_0x3093ed[_0x2084('0x7b')][_0x2084('0xdd')])return;const _0x1cc7f5=_0xcb4342[_0x2084('0xe')];if(!_0x1cc7f5)return;const _0x1f5d84=_0x3093ed[_0x2084('0x31')][_0x2084('0xb2')](_0x1cc7f5);_0x479243[_0x2084('0x48')][_0x2084('0x8a')][_0x2084('0x7d')](_0x1cc7f5)&&_0x1f5d84&&!_0x1f5d84[_0x2084('0x5b')](_0x2084('0x55'))&&_0x1f5d84['is']('containerElement')&&_0x402b96(_0x1f5d84,_0x3093ed[_0x2084('0x18')]);},{'priority':'high'});}),_0x479243['conversion'][_0x2084('0xb1')]('dataDowncast')['markerToHighlight']({'model':_0x2084('0xda'),'view':(_0x1ba0a5,_0x15d740)=>{if(!_0x15d740[_0x2084('0x7b')][_0x2084('0xdd')])return null;const {type:_0x13e6e0}=this[_0x2084('0x58')](_0x1ba0a5['markerName']);return{'classes':[_0x2084('0x1f'),_0x2084('0x89')+_0x13e6e0],'priority':0xbb8};}});const _0x1886fa=({showActiveMarkers:_0xddfd67=!0x0}={})=>(_0xa394ab,_0x48ad2d,_0x312ee3)=>{if(!_0x48ad2d[_0x2084('0xe')])return;if(_0x48ad2d[_0x2084('0xe')]['is'](_0x2084('0x124')))return void _0x312ee3[_0x2084('0x32')][_0x2084('0xa2')](_0x48ad2d[_0x2084('0xe')],_0xa394ab[_0x2084('0x11c')]);const _0x8f8709=_0x312ee3[_0x2084('0x31')][_0x2084('0xb2')](_0x48ad2d['item']);if(!(_0x48ad2d[_0x2084('0xe')]['is'](_0x2084('0x112'))&&_0x479243[_0x2084('0x48')]['schema'][_0x2084('0xfb')](_0x48ad2d[_0x2084('0xe')])&&!_0x8f8709[_0x2084('0x5b')](_0x2084('0x64'))))return;const {id:_0x4b1e5b}=this[_0x2084('0x58')](_0x48ad2d['markerName']);_0x312ee3['writer'][_0x2084('0x28')]([_0x2084('0x1f'),_0x2084('0xc2')],_0x8f8709),_0x312ee3[_0x2084('0x18')]['setAttribute']('data-suggestion',_0x4b1e5b,_0x8f8709),_0x312ee3[_0x2084('0x31')][_0x2084('0x4a')](_0x8f8709,_0x48ad2d[_0x2084('0x8e')]),_0xddfd67&&(this['activeMarkers'][_0x2084('0xd6')](_0x48ad2d['markerName'])?_0x312ee3[_0x2084('0x18')][_0x2084('0x28')](_0x2084('0xaa'),_0x8f8709):_0x312ee3[_0x2084('0x18')][_0x2084('0xd7')](_0x2084('0xaa'),_0x8f8709));for(const _0x1a6991 of _0x479243['model'][_0x2084('0xfc')](_0x48ad2d[_0x2084('0xe')])[_0x2084('0x105')]())_0x312ee3['consumable'][_0x2084('0xa2')](_0x1a6991,_0xa394ab[_0x2084('0x11c')]);_0x312ee3[_0x2084('0x32')][_0x2084('0xa2')](_0x48ad2d[_0x2084('0xe')],_0xa394ab[_0x2084('0x11c')]);};_0x479243[_0x2084('0x1d')][_0x2084('0xb1')](_0x2084('0x3'))[_0x2084('0xac')](_0x973023=>{_0x973023['on']('addMarker:suggestion:formatBlock',(_0x1354b8,_0x5297c0,_0x4485e8)=>{_0x4485e8['options']['showSuggestionHighlights']&&_0x1886fa({'showActiveMarkers':!0x1})(_0x1354b8,_0x5297c0,_0x4485e8);},{'priority':_0x2084('0x83')});}),_0x479243[_0x2084('0x1d')][_0x2084('0xb1')]('dataDowncast')[_0x2084('0x30')]({'model':'suggestion','view':(_0x2ad8da,_0x56e9e9)=>_0x56e9e9[_0x2084('0x7b')][_0x2084('0xdd')]?null:{'group':_0x2084('0xda'),'name':_0x2ad8da[_0x2084('0x67')](_0x2084('0xda')[_0x2084('0x9b')]+0x1)}}),_0x479243[_0x2084('0x1d')][_0x2084('0xb1')](_0x2084('0x6c'))[_0x2084('0x113')]({'view':{'name':_0x2084('0xda'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x433541,{writer:_0x88bba0})=>{let _0x46afc5='suggestion:'+_0x433541[_0x2084('0xdc')]('suggestion-type')+':'+_0x433541[_0x2084('0xdc')]('id');return _0x433541[_0x2084('0xdc')](_0x2084('0x40'))&&(_0x46afc5+=':'+_0x433541[_0x2084('0xdc')](_0x2084('0x40'))),_0x88bba0[_0x2084('0x52')](_0x2084('0x106'),{'data-name':_0x46afc5});}}),_0x479243[_0x2084('0x1d')]['for'](_0x2084('0x6c'))['dataToMarker']({'view':'suggestion'}),_0x479243[_0x2084('0x1d')]['for'](_0x2084('0x23'))['add'](_0x32274b=>{_0x32274b['on']('addMarker:suggestion:formatBlock',_0x1886fa(),{'priority':_0x2084('0xbf')});}),_0x479243[_0x2084('0x1d')][_0x2084('0xb1')](_0x2084('0x23'))[_0x2084('0xac')](_0x22da38=>{_0x22da38['on']('removeMarker:suggestion:formatBlock',(_0x261ece,_0x46a80b,_0x34bd34)=>{const _0x214526=_0x34bd34['mapper'][_0x2084('0x6d')](_0x46a80b[_0x2084('0x8e')]);if(_0x214526)for(const _0x1198f4 of _0x214526)_0x1198f4[_0x2084('0x5b')](_0x2084('0x64'))||(_0x34bd34[_0x2084('0x18')][_0x2084('0xd7')]([_0x2084('0x1f'),_0x2084('0xc2'),_0x2084('0xaa')],_0x1198f4),_0x34bd34[_0x2084('0x18')]['removeAttribute']('data-suggestion',_0x1198f4),_0x34bd34[_0x2084('0x31')][_0x2084('0x10d')](_0x1198f4,_0x46a80b['markerName']));},{'priority':_0x2084('0xbf')});}),_0x479243[_0x2084('0x48')]['document']['registerPostFixer'](_0x3b5575=>{let _0x474116=!0x1;const _0x54b809=Array[_0x2084('0x25')](_0x479243[_0x2084('0x48')][_0x2084('0xf6')][_0x2084('0x42')][_0x2084('0x115')]());for(const {name:_0x3e081d,data:_0x3a0a21}of _0x54b809){const {group:_0x5e5264,type:_0x4e3018,id:_0x479205}=this[_0x2084('0x58')](_0x3e081d);if(_0x2084('0xda')!==_0x5e5264)continue;const _0x18f232=this[_0x2084('0x56')][_0x2084('0x1c')](_0x479205);if(null!=_0x3a0a21['newRange']){'formatInline'==_0x4e3018&&(_0x474116=_0x474116||bt(_0x3a0a21[_0x2084('0x111')],_0x3e081d,_0x3b5575,_0x479243['model'][_0x2084('0x8a')]));if(_0x3a0a21[_0x2084('0x111')]['isCollapsed']||_0x2084('0x100')==_0x3a0a21[_0x2084('0x111')][_0x2084('0x108')][_0x2084('0x125')]||_0x2084('0x107')==_0x4e3018&&!It(_0x3a0a21[_0x2084('0x111')])||_0x2084('0x90')==_0x4e3018&&!(!yt(_0x1fefbb=_0x3a0a21[_0x2084('0x111')])&&!function(_0x41dff9){return _0x41dff9['start'][_0x2084('0x121')]==_0x41dff9['end']['nodeBefore']&&_0x41dff9['start'][_0x2084('0xf5')];}(_0x1fefbb)))_0x3b5575['removeMarker'](_0x3e081d),_0x474116=!0x0;else{if(!_0x18f232||!_0x18f232[_0x2084('0x117')])continue;_0x474116=!!this['_joinWithAdjacentSuggestions'](_0x18f232)||_0x474116;}}}var _0x1fefbb;return _0x474116;}),_0x479243[_0x2084('0x48')][_0x2084('0xf6')][_0x2084('0x49')](_0x428481=>{let _0x2db6da=!0x1;for(const _0x3f92f2 of _0x479243[_0x2084('0x48')]['document'][_0x2084('0x42')][_0x2084('0x45')]()){if(_0x2084('0x98')!=_0x3f92f2['type'])continue;const _0x5f2ea2=_0x3f92f2['position'][_0x2084('0x12')](_0x3f92f2[_0x2084('0x9b')]);if(_0x5f2ea2[_0x2084('0xf5')])for(const _0x3973b2 of this[_0x2084('0x56')]['values']()){if(_0x3973b2[_0x2084('0x77')]||!_0x3973b2[_0x2084('0x117')])continue;if('formatBlock'!=_0x3973b2['type'])continue;const _0x528ba9=_0x3973b2[_0x2084('0x79')]();if(_0x528ba9[_0x2084('0x29')][_0x2084('0x121')]!=_0x528ba9[_0x2084('0x2f')][_0x2084('0x121')]&&_0x528ba9[_0x2084('0x2f')][_0x2084('0x110')](_0x3f92f2[_0x2084('0xe6')])){const _0x3ff15a=_0x479243[_0x2084('0x48')][_0x2084('0x9a')](_0x528ba9['start'],_0x5f2ea2);_0x428481[_0x2084('0x2c')](_0x3973b2[_0x2084('0xc9')](),{'range':_0x3ff15a}),_0x2db6da=!0x0;}}}return _0x2db6da;}),_0x479243[_0x2084('0x48')]['markers']['on'](_0x2084('0x3b'),(_0x1cc3d2,_0x18f4a7,_0x1116a3)=>{if(null==_0x1116a3){const {id:_0x258d2e}=this[_0x2084('0x58')](_0x18f4a7[_0x2084('0x11c')]),_0x361a36=this[_0x2084('0x56')][_0x2084('0x1c')](_0x258d2e);_0x361a36&&_0x361a36['addMarkerName'](_0x18f4a7[_0x2084('0x11c')]);}}),_0x479243[_0x2084('0x48')][_0x2084('0xf6')]['on']('change:data',()=>{const _0x1b8e0e=Array[_0x2084('0x25')](_0x479243[_0x2084('0x48')][_0x2084('0xf6')][_0x2084('0x42')][_0x2084('0x115')]());_0x1b8e0e['sort']((_0x10f618,_0x5d4c55)=>{const _0x412636=_0x10f618[_0x2084('0x14')][_0x2084('0x43')],_0x34e213=_0x5d4c55['data']['oldRange'];return null===_0x412636&&null===_0x34e213?0x0:null===_0x412636&&null!==_0x34e213?-0x1:null!==_0x412636&&null===_0x34e213?0x1:_0x412636[_0x2084('0x29')][_0x2084('0x10b')](_0x34e213[_0x2084('0x29')])?-0x1:0x1;});const _0x2bae80=new Set();for(const {name:_0x465a4c,data:_0x575b71}of _0x1b8e0e){const {group:_0x5b0d73,id:_0x8835bc}=this[_0x2084('0x58')](_0x465a4c);if(_0x2084('0xda')===_0x5b0d73&&(null===_0x575b71[_0x2084('0x43')]&&this[_0x2084('0x114')](_0x465a4c),null===_0x575b71[_0x2084('0x111')])){const _0x4fbaff=this[_0x2084('0x56')][_0x2084('0x1c')](_0x8835bc);_0x4fbaff[_0x2084('0x117')]?_0x2bae80[_0x2084('0xac')](_0x4fbaff):this[_0x2084('0xf1')](_0x4fbaff);}}for(const {name:_0x5066b8,data:_0x46971a}of _0x1b8e0e){const {group:_0x54b31f,id:_0x2713a8}=this[_0x2084('0x58')](_0x5066b8);if(_0x2084('0xda')!==_0x54b31f)continue;const _0x501373=this[_0x2084('0x56')][_0x2084('0x1c')](_0x2713a8);null!=_0x46971a[_0x2084('0x111')]&&null!=_0x46971a[_0x2084('0x43')]&&(this['_refreshSuggestionsChain'](_0x501373),_0x2bae80['add'](_0x501373['head']));}for(const _0x12a22c of _0x2bae80)this[_0x2084('0x50')]('suggestionChanged',_0x12a22c);_0x2bae80[_0x2084('0x2a')]();}),_0x479243['model']['on']('applyOperation',(_0x2b21d3,_0x5ab137)=>{const _0x178d25=_0x5ab137[0x0];if(!this[_0x2084('0x56')]['size'])return;if(!_0x178d25[_0x2084('0xb9')])return;if(_0x178d25['batch'][_0x2084('0xb3')]||!_0x178d25[_0x2084('0xb6')][_0x2084('0x17')])return;let _0x1b9e4e,_0x421ca8;switch(_0x178d25[_0x2084('0x63')]){case _0x2084('0x98'):_0x1b9e4e=_0x479243[_0x2084('0x48')][_0x2084('0x92')](_0x178d25[_0x2084('0xe6')]),_0x421ca8=_0x1b9e4e[_0x2084('0x12')](_0x178d25[_0x2084('0xf9')]);break;case _0x2084('0x1a'):_0x1b9e4e=_0x479243[_0x2084('0x48')]['createPositionAt'](_0x178d25[_0x2084('0x74')]),_0x421ca8=_0x479243[_0x2084('0x48')][_0x2084('0x92')](_0x178d25[_0x2084('0x8d')]);break;case _0x2084('0xa6'):_0x1b9e4e=_0x479243[_0x2084('0x48')]['createPositionAt'](_0x178d25[_0x2084('0x4b')]),_0x421ca8=_0x1b9e4e['getShiftedBy'](_0x178d25[_0x2084('0xf9')]);break;default:return;}const _0x5f27b5=_0x479243['model'][_0x2084('0x9a')](_0x1b9e4e,_0x421ca8);_0x479243['model'][_0x2084('0x54')](()=>{for(const {suggestion:_0x8921e9,meta:_0x5449c9}of this[_0x2084('0x9e')](_0x5f27b5)){if(_0x8921e9[_0x2084('0x77')])continue;if(_0x2084('0x87')==_0x8921e9[_0x2084('0x63')])continue;const _0x5e7889=_0x8921e9[_0x2084('0x14')]&&_0x8921e9['data'][_0x2084('0x9c')];(_0x2084('0x107')!=_0x8921e9[_0x2084('0x63')]||_0x2084('0x1a')==_0x178d25['type']&&!_0x5e7889)&&(_0x5449c9['containsRangeInObject']||_0x2084('0xa4')==_0x8921e9[_0x2084('0x63')]&&_0x5449c9['isOwn']||_0x8921e9[_0x2084('0x79')]()[_0x2084('0xa')](_0x5f27b5)&&this[_0x2084('0xd0')](_0x8921e9,_0x1b9e4e,_0x421ca8));}});},{'priority':_0x2084('0xc0')}),_0x479243[_0x2084('0x48')]['on'](_0x2084('0x0'),(_0x47044b,_0x3ca549)=>{const _0xf200ac=_0x3ca549[0x0],_0x551d29=_0x3ca549[0x1];if(_0x551d29&&_0x551d29[_0x2084('0x10')])return;if(this[_0x2084('0x5f')])return;if(!this[_0x2084('0xb0')][_0x2084('0xd9')])return;if(_0xf200ac['isCollapsed'])return;const _0x4bad6d=_0x479243[_0x2084('0x48')]['schema'],{start:_0x177401,end:_0x199dfa}=_0xf200ac[_0x2084('0x79')](),_0x58fed3=_0x177401[_0x2084('0x82')]&&_0x4bad6d[_0x2084('0x7d')](_0x177401[_0x2084('0x82')])?null:_0x4bad6d[_0x2084('0x72')](_0x177401,_0x2084('0x3f')),_0x42496f=_0x199dfa['nodeBefore']&&_0x4bad6d['isObject'](_0x199dfa[_0x2084('0x93')])?null:_0x4bad6d[_0x2084('0x72')](_0x199dfa,'backward'),_0x29650a=_0x479243[_0x2084('0x48')][_0x2084('0x9a')](_0x58fed3?_0x58fed3['start']:_0x177401,_0x42496f?_0x42496f[_0x2084('0x2f')]:_0x199dfa);_0x479243[_0x2084('0x48')][_0x2084('0x54')](_0x3bb6b8=>{this[_0x2084('0x119')](_0x29650a);const _0x565f1f=_0x479243['model'][_0x2084('0x8a')]['getNearestSelectionRange'](_0x29650a['start']);_0xf200ac['is'](_0x2084('0x36'))?_0x3bb6b8[_0x2084('0xb')](_0x565f1f):_0xf200ac[_0x2084('0x34')](_0x565f1f);}),_0x47044b[_0x2084('0xf7')]();},{'priority':_0x2fc2f3[_0x2084('0xdf')]+0xa}),_0x479243[_0x2084('0x48')]['on']('insertContent',(_0x32e6d0,_0x556d36)=>{const _0x5775e5=_0x556d36[_0x556d36[_0x2084('0x9b')]-0x1];_0x5775e5&&_0x5775e5[_0x2084('0x10')]||this[_0x2084('0x5f')]||this[_0x2084('0xb0')]['value']&&(_0x479243[_0x2084('0x48')][_0x2084('0x54')](()=>{let _0x18343c=_0x479243[_0x2084('0x48')][_0x2084('0x109')](_0x556d36[0x0],_0x556d36[0x1],_0x556d36[0x2],_0x556d36[0x3],{'forceDefaultExecution':!0x0});if(!_0x18343c)return;_0x32e6d0['return']=_0x18343c[_0x2084('0x104')]();const _0x3470af=_0x18343c[_0x2084('0x2f')]['nodeBefore'],_0x428d57=_0x479243[_0x2084('0x48')][_0x2084('0x8a')];_0x3470af&&_0x428d57['isBlock'](_0x3470af)&&!_0x428d57[_0x2084('0x7d')](_0x3470af)&&(_0x18343c=_0x479243[_0x2084('0x48')][_0x2084('0x9a')](_0x18343c[_0x2084('0x29')],_0x479243[_0x2084('0x48')][_0x2084('0x92')](_0x3470af,_0x2084('0x2f')))),this[_0x2084('0x24')](_0x18343c);}),_0x32e6d0[_0x2084('0xf7')]());},{'priority':_0x2084('0xbf')}),this[_0x2084('0xb0')]=new _0x4416c1(_0x479243,this[_0x2084('0xb4')]),this[_0x2084('0x4')][_0x2084('0xd2')][_0x2084('0xac')](_0x2084('0x120'),this[_0x2084('0xb0')]),this[_0x2084('0xe5')](_0x2084('0x120'));const _0x4404be=new _0x57bec2(_0x479243,this[_0x2084('0x56')]);_0x479243['commands'][_0x2084('0xac')](_0x2084('0xd3'),_0x4404be),this[_0x2084('0xe5')](_0x2084('0xd3'));const _0x3a1348=new _0x2490be(_0x479243,this['_suggestions']);_0x479243[_0x2084('0xd2')][_0x2084('0xac')](_0x2084('0xf2'),_0x3a1348),this[_0x2084('0xe5')](_0x2084('0xf2')),_0x479243['commands'][_0x2084('0xac')](_0x2084('0x4d'),new _0x51437a(_0x479243,_0x4404be,this[_0x2084('0x56')])),this['enableCommand'](_0x2084('0x4d')),_0x479243[_0x2084('0xd2')][_0x2084('0xac')](_0x2084('0xcd'),new _0x5a0ffd(_0x479243,_0x3a1348,this['_suggestions'])),this[_0x2084('0xe5')](_0x2084('0xcd')),_0x479243['commands'][_0x2084('0xac')](_0x2084('0xa1'),new _0x37d9a2(_0x479243,_0x4404be,this['_suggestions'])),this[_0x2084('0xe5')](_0x2084('0xa1')),_0x479243['commands']['add'](_0x2084('0x73'),new _0x1498b2(_0x479243,_0x3a1348,this[_0x2084('0x56')])),this[_0x2084('0xe5')](_0x2084('0x73'));const _0x49e3ef=_0x479243['plugins'][_0x2084('0x1c')](_0x2084('0xe3'));this['listenTo'](_0x49e3ef,_0x2084('0x38'),(_0x3c796e,{threadId:_0x37810b})=>{const _0xb43203=this[_0x2084('0x56')]['get'](_0x37810b);_0xb43203&&_0xb43203[_0x2084('0x10f')]&&0x1===_0xb43203[_0x2084('0x10f')][_0x2084('0x9b')]&&this[_0x2084('0xe1')](_0x37810b,{'hasComments':!0x0});},{'priority':_0x2084('0x16')}),this[_0x2084('0xad')](_0x49e3ef,_0x2084('0xba'),(_0x28fbe7,{threadId:_0x3b2485})=>{const _0x5d0d60=this[_0x2084('0x56')][_0x2084('0x1c')](_0x3b2485);_0x5d0d60&&_0x5d0d60[_0x2084('0x10f')]&&!_0x5d0d60['commentThread'][_0x2084('0x9b')]&&this[_0x2084('0xe1')](_0x3b2485,{'hasComments':!0x1});},{'priority':'low'});}set[_0x2084('0xcb')](_0x43a951){if(this[_0x2084('0x80')])throw new _0xa2b4f8(_0x2084('0x2'),this);this[_0x2084('0x80')]=_0x43a951;}get[_0x2084('0xcb')](){return this['_adapter'];}[_0x2084('0xef')]({skipNotAttached:_0x5ce3c4=!0x1,toJSON:_0x112ee8=!0x1}={}){const _0x4d0419=[];for(const _0x43232e of this[_0x2084('0x56')][_0x2084('0x37')]())_0x5ce3c4&&!_0x43232e[_0x2084('0x117')]||_0x4d0419[_0x2084('0x5a')](_0x43232e);return _0x112ee8?_0x4d0419['map'](_0x201cda=>_0x201cda[_0x2084('0x35')]()):_0x4d0419;}[_0x2084('0x2e')](_0x3e08ef){const _0x238713=this[_0x2084('0x56')][_0x2084('0x1c')](_0x3e08ef);if(!_0x238713)throw new _0xa2b4f8('track-changes-suggestion-not-found',this);return _0x238713;}[_0x2084('0xa8')](_0xe050b7){return this[_0x2084('0x56')]['has'](_0xe050b7);}[_0x2084('0x78')](_0x30fe25){const {id:_0x37ef12,authorId:_0x3b1876}=_0x30fe25,[_0x141740,_0x4cb600]=_0x30fe25[_0x2084('0x63')]['split'](':'),_0xd1a9dc=this[_0x2084('0x56')][_0x2084('0x1c')](_0x37ef12)||this[_0x2084('0x53')](_0x141740,_0x4cb600,_0x37ef12,_0x3b1876);switch(this['_addThreadToSuggestion'](_0xd1a9dc),this['_checkSuggestionCorrectness'](_0xd1a9dc,_0x141740,_0x4cb600||null,_0x3b1876),_0xd1a9dc[_0x2084('0x10c')]=_0x30fe25[_0x2084('0x10c')],_0x30fe25[_0x2084('0x14')]&&(_0xd1a9dc['data']=_0x30fe25[_0x2084('0x14')]),_0x30fe25[_0x2084('0x27')]&&(_0xd1a9dc[_0x2084('0x27')]=_0x30fe25[_0x2084('0x27')]),this[_0x2084('0x80')]&&this[_0x2084('0x80')][_0x2084('0x10e')]||(_0xd1a9dc[_0x2084('0x61')]=!0x0),this[_0x2084('0xbb')]['get'](_0xd1a9dc)){case _0x2084('0xf3'):this[_0x2084('0xbb')]['set'](_0xd1a9dc,_0x2084('0x4f'));break;case _0x2084('0x81'):_0xd1a9dc['isInContent']?(this['_suggestionState'][_0x2084('0xf')](_0xd1a9dc,_0x2084('0xca')),this[_0x2084('0x50')](_0x2084('0xe4'),_0xd1a9dc)):this['_suggestionState'][_0x2084('0xf')](_0xd1a9dc,_0x2084('0xf4'));}return _0xd1a9dc;}[_0x2084('0xd3')](_0x27535b){this[_0x2084('0x10')](()=>{this[_0x2084('0x4')][_0x2084('0x48')][_0x2084('0x54')](()=>{for(const _0x2aaa1f of _0x27535b['getAllAdjacentSuggestions']())_0x2aaa1f[_0x2084('0xc7')]();});});}[_0x2084('0xf2')](_0x36c631){this[_0x2084('0x10')](()=>{this[_0x2084('0x4')][_0x2084('0x48')][_0x2084('0x54')](()=>{for(const _0xe8b86c of _0x36c631[_0x2084('0xeb')]())_0xe8b86c['discard']();});});}['enableCommand'](_0x2f4fea,_0x3baf8a){const _0x178e37=this[_0x2084('0x4')][_0x2084('0xd2')][_0x2084('0x1c')](_0x2f4fea);if(!_0x178e37)throw new _0xa2b4f8('track-changes-command-not-found',this,{'commandName':_0x2f4fea});this[_0x2084('0xb4')]['add'](_0x178e37),_0x3baf8a&&_0x178e37['on'](_0x2084('0xd8'),(_0x598432,_0x77ecd9)=>{this['trackChangesCommand']['value']&&(this[_0x2084('0x5f')]||_0x77ecd9[_0x2084('0x9b')]>0x0&&_0x77ecd9[_0x77ecd9[_0x2084('0x9b')]-0x1]&&_0x77ecd9[_0x77ecd9[_0x2084('0x9b')]-0x1][_0x2084('0x10')]||(_0x3baf8a((..._0xa6739d)=>_0x178e37[_0x2084('0xd8')](..._0xa6739d,{'forceDefaultExecution':!0x0}),..._0x77ecd9),_0x598432[_0x2084('0xf7')]()));},{'priority':_0x2084('0xbf')});}[_0x2084('0x10')](_0x1b563b){let _0x5c9f31,_0x417e8a;const _0x2a21ad=this[_0x2084('0x5f')];this[_0x2084('0x5f')]=!0x0;try{_0x5c9f31=_0x1b563b();}catch(_0x17eade){_0x417e8a=_0x17eade;}return _0x2a21ad||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x417e8a&&_0xa2b4f8[_0x2084('0xaf')](_0x417e8a,this),_0x5c9f31;}[_0x2084('0x24')](_0x1a48aa,_0x38f68f=null,_0xa328fa={}){if(_0x1a48aa['isCollapsed'])return null;const _0x39c544=this['editor'][_0x2084('0x102')]['get']('Users')['me'];for(const {suggestion:_0x187060,meta:_0x5b598b}of this['_findSuggestions'](_0x1a48aa,_0x2084('0xa4')))if(_0x5b598b[_0x2084('0xd5')]){if(!_0x5b598b[_0x2084('0xc')])return _0x187060;if(_0x38f68f==_0x187060[_0x2084('0x128')]){const _0x206853=_0x187060['getFirstRange']();return _0x206853[_0x2084('0x29')][_0x2084('0x110')](_0x1a48aa['end'])?this['_setSuggestionRange'](_0x187060,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x1a48aa[_0x2084('0x29')],_0x206853[_0x2084('0x2f')])):this[_0x2084('0x118')](_0x187060,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x206853[_0x2084('0x29')],_0x1a48aa[_0x2084('0x2f')])),_0x187060;}}const _0x2197f1=_0x495cdf(),_0x2193cb=_0x39c544['id'],_0x30a1f3=_0x38f68f?'insertion:'+_0x38f68f:'insertion',_0x4f0d7b=this[_0x2084('0xe7')]({'id':_0x2197f1,'type':_0x30a1f3,'createdAt':new Date(),'authorId':_0x2193cb,'attributes':_0xa328fa});return this[_0x2084('0x59')](_0x30a1f3,_0x2197f1,_0x2193cb,_0x1a48aa),_0x4f0d7b;}[_0x2084('0xe2')](_0xbdd866,_0x8b948c=_0x2084('0xde'),_0x441284={}){const _0x342195=this[_0x2084('0x4')][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'],_0x2c8392=this[_0x2084('0x41')][_0x2084('0x70')](_0x2084('0xa4'),_0x8b948c,'join');for(const _0x1716d6 of this['getSuggestions']())if(_0x1716d6[_0x2084('0x5d')]['id']==_0x342195['id']&&_0x2084('0xa4')==_0x1716d6['type']&&_0x1716d6[_0x2084('0x128')]==_0x8b948c&&(_0x2c8392(_0x1716d6['getRanges'](),_0xbdd866)||_0x2c8392(_0xbdd866,_0x1716d6[_0x2084('0xc4')]()))){for(const _0x54a9d2 of _0xbdd866)_0x1716d6[_0x2084('0x5e')](_0x54a9d2);return _0x1716d6;}for(const _0x3ee475 of _0xbdd866)for(const {suggestion:_0x3b2cf1,meta:_0x54a397}of this[_0x2084('0x9e')](_0x3ee475,_0x2084('0xa4'))){if(!_0x54a397[_0x2084('0xd5')])continue;let _0x5490dc=!0x0;for(const _0x4a4edf of _0x3b2cf1[_0x2084('0xc4')]())for(const _0xb05e7b of _0xbdd866)if(!_0x4a4edf['containsRange'](_0xb05e7b)){_0x5490dc=!0x1;break;}if(_0x5490dc)return _0x3b2cf1;}const _0x5012d3=_0x495cdf(),_0x4d3b7e=_0x342195['id'],_0x543fa8=_0x2084('0x3a')+_0x8b948c,_0x593c17=this[_0x2084('0xe7')]({'id':_0x5012d3,'type':_0x543fa8,'createdAt':new Date(),'authorId':_0x4d3b7e,'attributes':_0x441284});for(const _0x592df1 of _0xbdd866)this[_0x2084('0x59')](_0x543fa8,_0x5012d3,_0x4d3b7e,_0x592df1,_0x4f381c[_0x2084('0x8b')]());return _0x593c17;}[_0x2084('0x84')](_0x8d8577,_0x237f6b,_0x35b211=null,_0x134379={}){if(_0x35b211=_0x35b211||St(_0x237f6b),_0x8d8577[_0x2084('0x6a')])return;const _0x122799=this['editor'][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'],_0x448850=[];for(const {suggestion:_0xa48421,meta:_0x4cea36}of this[_0x2084('0x9e')](_0x8d8577,'insertion'))_0x4cea36[_0x2084('0xd5')]&&!_0x4cea36[_0x2084('0x11')]&&_0x448850[_0x2084('0x5a')](..._0xa48421[_0x2084('0xc4')]());const _0x1bfe2d=function(_0x3c4f30,_0x1d54a7){const _0x15ec96=[];for(const _0x2b8c4 of _0x1d54a7){const _0x246282=_0x3c4f30[_0x2084('0x2d')](_0x2b8c4);_0x246282&&_0x15ec96[_0x2084('0x5a')](_0x246282);}return _0x15ec96;}(_0x8d8577,_0x448850),_0x31c70f=function(_0xaa14e3,_0x269dc1){const _0x326768=[_0xaa14e3];for(const _0x5548db of _0x269dc1){let _0x33131f=0x0;for(;_0x33131f<_0x326768[_0x2084('0x9b')];){const _0x2d0d4f=_0x326768[_0x33131f][_0x2084('0xc3')](_0x5548db);_0x326768[_0x2084('0x66')](_0x33131f,0x1,..._0x2d0d4f),_0x33131f+=_0x2d0d4f['length'];}}return _0x326768;}(_0x8d8577,_0x448850);_0x1bfe2d['length']&&this[_0x2084('0x7f')][_0x2084('0x54')](()=>{for(const _0x30637c of _0x1bfe2d){const _0x1f8ac1=this[_0x2084('0x41')][_0x2084('0x70')](_0x2084('0x87'),_0x35b211,_0x2084('0xc7'));this[_0x2084('0x10')](()=>_0x1f8ac1([_0x30637c],_0x237f6b,_0x134379));}});for(const _0x912d5b of _0x31c70f){let _0x526ee5=null,_0x477bd7=_0x912d5b[_0x2084('0x29')],_0x9fe001=_0x912d5b[_0x2084('0x2f')];for(const {suggestion:_0x5decc1,meta:_0x16243d}of this['_findSuggestions'](_0x912d5b,_0x2084('0x87'))){if(!_0x16243d[_0x2084('0xd5')])continue;if(_0x5decc1[_0x2084('0x128')]!=_0x35b211)continue;const _0x44c3bb=_0x5decc1['getFirstRange']();if(_0x44c3bb['containsRange'](_0x912d5b,!0x0))return;_0x477bd7=_0x477bd7[_0x2084('0x10b')](_0x44c3bb['start'])?_0x477bd7:_0x44c3bb[_0x2084('0x29')],_0x9fe001=_0x9fe001['isAfter'](_0x44c3bb[_0x2084('0x2f')])?_0x9fe001:_0x44c3bb[_0x2084('0x2f')],_0x526ee5?_0x44c3bb[_0x2084('0x29')][_0x2084('0x10b')](_0x526ee5[_0x2084('0x79')]()[_0x2084('0x29')])?(_0x526ee5[_0x2084('0x57')](),_0x526ee5=_0x5decc1):_0x5decc1['removeMarkers']():_0x526ee5=_0x5decc1;}const _0xfca796=this[_0x2084('0x7f')][_0x2084('0x9a')](_0x477bd7,_0x9fe001);if(_0x526ee5)this[_0x2084('0x118')](_0x526ee5,_0xfca796);else{const _0x2b5bf1=_0x495cdf(),_0x46e024=_0x122799['id'];this[_0x2084('0xe7')]({'id':_0x2b5bf1,'type':_0x2084('0xfe')+_0x35b211,'data':_0x237f6b,'createdAt':new Date(),'authorId':_0x46e024,'attributes':_0x134379}),this[_0x2084('0x59')](_0x2084('0xfe')+_0x35b211,_0x2b5bf1,_0x46e024,_0xfca796);}}}[_0x2084('0x11e')](_0x257bf6,_0x54f65c,_0x36ed76=[],_0x41a5c0=null,_0x36fc5a={}){_0x54f65c['formatGroupId']||(_0x54f65c['formatGroupId']=_0x54f65c['commandName']),_0x54f65c[_0x2084('0x9c')]=_0x257bf6['is'](_0x2084('0x19')),_0x41a5c0=_0x41a5c0||St(_0x54f65c);const _0x5c87d4=_0x36ed76[_0x2084('0x7e')](_0x3d090c=>vt(_0x3d090c,this[_0x2084('0x7f')])),_0x178db4=_0x257bf6['is'](_0x2084('0x19'))?_0x257bf6:vt(_0x257bf6,this[_0x2084('0x7f')]);_0x5c87d4[_0x2084('0x5a')](_0x178db4);let _0x506ced=!0x0;for(const _0x43183c of _0x5c87d4)if(!this[_0x2084('0x76')](_0x43183c)){_0x506ced=!0x1;break;}if(_0x506ced){const _0x21486c=this['_suggestionFactory'][_0x2084('0x70')]('formatBlock',_0x41a5c0,_0x2084('0xc7'));return void this[_0x2084('0x10')](()=>_0x21486c([_0x178db4],_0x54f65c,_0x36fc5a));}let _0x506530=null,_0x192a14=_0x178db4['start'],_0x363474=_0x178db4[_0x2084('0x2f')];for(const {suggestion:_0x383786,meta:_0x54210a}of this[_0x2084('0x9e')](_0x178db4,_0x2084('0x107'))){if(!_0x54210a[_0x2084('0xd5')]||_0x54210a[_0x2084('0xc')]||_0x54210a[_0x2084('0xfd')]||_0x54210a['isInsideObject'])continue;if(_0x383786[_0x2084('0x14')][_0x2084('0x4e')]!=_0x54f65c[_0x2084('0x4e')])continue;const _0x48e39d=_0x383786[_0x2084('0x79')]();if(_0x383786[_0x2084('0x128')]==_0x41a5c0){if(_0x48e39d[_0x2084('0xa')](_0x178db4,!0x0))return;_0x192a14=_0x192a14[_0x2084('0x10b')](_0x48e39d[_0x2084('0x29')])?_0x192a14:_0x48e39d[_0x2084('0x29')],_0x363474=_0x363474[_0x2084('0xc6')](_0x48e39d[_0x2084('0x2f')])?_0x363474:_0x48e39d[_0x2084('0x2f')],_0x506530?_0x48e39d[_0x2084('0x29')][_0x2084('0x10b')](_0x506530['getFirstRange']()[_0x2084('0x29')])?(_0x506530[_0x2084('0x57')](),_0x506530=_0x383786):_0x383786[_0x2084('0x57')]():_0x506530=_0x383786;}else{const _0x44caf2=_0x178db4['getIntersection'](_0x48e39d);this['_cutOutSuggestionMarker'](_0x383786,_0x44caf2);}}const _0x338a71=this['editor'][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'],_0x4038a5=_0x495cdf(),_0x713ca7=_0x338a71['id'];_0x506530?this['_setSuggestionRange'](_0x506530,this[_0x2084('0x7f')]['createRange'](_0x192a14,_0x363474)):(this[_0x2084('0xe7')]({'id':_0x4038a5,'type':_0x2084('0xb8')+_0x41a5c0,'data':_0x54f65c,'createdAt':new Date(),'authorId':_0x713ca7,'attributes':_0x36fc5a}),this[_0x2084('0x59')]('formatBlock:'+_0x41a5c0,_0x4038a5,_0x713ca7,this[_0x2084('0x7f')]['createRange'](_0x192a14,_0x363474)));}[_0x2084('0xc5')](_0x59679a,_0x2615a5,_0xf6f607=[],_0x207978=null,_0x33dcb8={}){_0x2615a5[_0x2084('0x4e')]||(_0x2615a5['formatGroupId']=_0x2615a5[_0x2084('0xa9')]),_0x2615a5[_0x2084('0x9c')]=!0x1,_0x207978=_0x207978||St(_0x2615a5);const _0x58198f=_0xf6f607[_0x2084('0x7e')](_0x335ea2=>vt(_0x335ea2,this[_0x2084('0x7f')])),_0x50e252=_0x59679a['map'](_0x4fe802=>vt(_0x4fe802,this[_0x2084('0x7f')]));_0x58198f[_0x2084('0x5a')](..._0x50e252);let _0xe4022c=!0x0;for(const _0x2ce524 of _0x58198f)if(!this[_0x2084('0x76')](_0x2ce524)){_0xe4022c=!0x1;break;}if(_0xe4022c){const _0x263318=this[_0x2084('0x41')][_0x2084('0x70')]('formatBlock',_0x207978,'accept');return void this[_0x2084('0x10')](()=>_0x263318(_0x50e252,_0x2615a5,_0x33dcb8));}const _0x4d0459=this['editor'][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'];for(const _0x3e9e5d of this[_0x2084('0xef')]()){if(_0x3e9e5d[_0x2084('0x5d')]['id']!=_0x4d0459['id'])continue;if(_0x2084('0x107')!=_0x3e9e5d[_0x2084('0x63')]||_0x3e9e5d[_0x2084('0x14')][_0x2084('0x4e')]!=_0x2615a5[_0x2084('0x4e')])continue;const _0x1ab768=_0x3e9e5d[_0x2084('0x128')]==_0x207978;for(let _0x2b2edc=0x0;_0x2b2edc<_0x50e252[_0x2084('0x9b')];_0x2b2edc++){const _0x6b7efd=_0x50e252[_0x2b2edc];for(const _0x3c193c of _0x3e9e5d[_0x2084('0x1e')]()){const _0x23bc93=_0x3c193c[_0x2084('0x33')]();if(_0x6b7efd[_0x2084('0x110')](_0x23bc93)){_0x1ab768?(_0x50e252[_0x2084('0x66')](_0x2b2edc,0x1),_0x2b2edc--):_0x3e9e5d[_0x2084('0x122')](_0x3c193c[_0x2084('0x11c')]);break;}}}}if(0x0==_0x50e252[_0x2084('0x9b')])return;const _0x193b18=this[_0x2084('0x41')][_0x2084('0x70')](_0x2084('0x107'),_0x207978,_0x2084('0xfa'));for(const _0x40b445 of this[_0x2084('0xef')]())if(_0x40b445[_0x2084('0x5d')]['id']==_0x4d0459['id']&&_0x2084('0x107')==_0x40b445[_0x2084('0x63')]&&_0x40b445['data'][_0x2084('0x4e')]==_0x2615a5[_0x2084('0x4e')]&&_0x40b445[_0x2084('0x128')]==_0x207978&&(_0x193b18(_0x40b445[_0x2084('0xc4')](),_0x50e252)||_0x193b18(_0x50e252,_0x40b445[_0x2084('0xc4')]()))){for(const _0x554105 of _0x50e252)_0x40b445[_0x2084('0x5e')](_0x554105);return _0x40b445;}const _0x3afc1a=_0x495cdf(),_0x11e828=_0x4d0459['id'],_0x1e7b84='formatBlock:'+_0x207978,_0xdaa668=this[_0x2084('0xe7')]({'id':_0x3afc1a,'type':_0x1e7b84,'data':_0x2615a5,'createdAt':new Date(),'authorId':_0x11e828,'attributes':_0x33dcb8});for(const _0x136f97 of _0x50e252)this[_0x2084('0x59')](_0x1e7b84,_0x3afc1a,_0x11e828,_0x136f97,_0x4f381c['getMultiRangeId']());return _0xdaa668;}[_0x2084('0x119')](_0x2a66fb,_0x222552=null,_0x42636c={}){if(_0x2a66fb[_0x2084('0x6a')])return null;const _0x297ca1=this[_0x2084('0x4')][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'],_0x2f76c8=new _0x184ebb(_0x2a66fb[_0x2084('0x29')],_0x2a66fb[_0x2084('0x2f')]);for(const {suggestion:_0x839479,meta:_0x1df8fd}of this[_0x2084('0x9e')](_0x2f76c8,_0x2084('0xa4')))if(_0x1df8fd['isOwn']&&!_0x1df8fd['isNextTo']){if(_0x839479['isMultiRange']){const _0x432670=_0x839479['getRanges']()['filter'](_0x295aeb=>_0x2084('0x100')!=_0x295aeb[_0x2084('0x108')][_0x2084('0x125')]);_0x432670['every'](_0x4f8f60=>_0x2f76c8[_0x2084('0xa')](_0x4f8f60,!0x0))&&_0x839479[_0x2084('0x11d')]();if(_0x432670['some'](_0xfcb4bd=>_0xfcb4bd[_0x2084('0xa')](_0x2f76c8,!0x0))){const _0x28cc30=this[_0x2084('0x41')][_0x2084('0x70')](_0x2084('0x90'),_0x222552,_0x2084('0xc7'));return this['forceDefaultExecution'](()=>_0x28cc30([_0x2f76c8],null,_0x42636c)),null;}}else{const _0x3a1042=_0x2f76c8[_0x2084('0x2d')](_0x839479[_0x2084('0x79')]());_0x839479[_0x2084('0xee')]([_0x3a1042],null,_0x42636c);}}if(_0x2f76c8[_0x2084('0x11b')](),_0x2f76c8[_0x2084('0x6a')]||_0x2084('0x100')==_0x2f76c8[_0x2084('0x108')]['rootName'])return null;let _0x34df21=null,_0x12e1ce=_0x2f76c8['start'],_0x1d51e6=_0x2f76c8['end'];for(const {suggestion:_0x18817f,meta:_0x3048b9}of this[_0x2084('0x9e')](_0x2f76c8,'deletion'))if(_0x3048b9[_0x2084('0xd5')]){if(_0x18817f[_0x2084('0x77')]){let _0x4be513=!0x0;for(const _0x50f732 of _0x18817f[_0x2084('0xc4')]()){if(_0x50f732[_0x2084('0xa')](_0x2f76c8,!0x0))return _0x18817f;_0x2f76c8['containsRange'](_0x50f732)||(_0x4be513=!0x1);}_0x4be513&&_0x18817f[_0x2084('0x11d')]();}else{const _0x36e2c8=_0x18817f[_0x2084('0x79')]();if(_0x36e2c8[_0x2084('0xa')](_0x2f76c8,!0x0))return _0x18817f;_0x12e1ce=_0x12e1ce[_0x2084('0x10b')](_0x36e2c8[_0x2084('0x29')])?_0x12e1ce:_0x36e2c8['start'],_0x1d51e6=_0x1d51e6[_0x2084('0xc6')](_0x36e2c8[_0x2084('0x2f')])?_0x1d51e6:_0x36e2c8[_0x2084('0x2f')],_0x34df21?_0x36e2c8['start']['isBefore'](_0x34df21['getFirstRange']()[_0x2084('0x29')])?(_0x34df21[_0x2084('0x57')](),_0x34df21=_0x18817f):_0x18817f[_0x2084('0x57')]():_0x34df21=_0x18817f;}}if(_0x34df21)return this[_0x2084('0x118')](_0x34df21,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x12e1ce,_0x1d51e6)),_0x34df21;{const _0x314339=_0x495cdf(),_0x44feca=this[_0x2084('0x7f')][_0x2084('0x9a')](_0x12e1ce,_0x1d51e6),_0x2db455=_0x297ca1['id'],_0x3d2d9a=_0x222552?_0x2084('0xd1')+_0x222552:'deletion',_0x280afa=this[_0x2084('0xe7')]({'id':_0x314339,'type':_0x3d2d9a,'createdAt':new Date(),'authorId':_0x2db455,'attributes':_0x42636c});return this[_0x2084('0x59')](_0x3d2d9a,_0x314339,_0x2db455,_0x44feca),_0x280afa;}}['markMultiRangeDeletion'](_0x16e386,_0x31e183=_0x2084('0xde'),_0x211e40={}){const _0x366693=this['editor']['plugins']['get'](_0x2084('0x127'))['me'],_0x2f0948=_0x16e386[_0x2084('0x7e')](_0x441ba2=>new _0x184ebb(_0x441ba2[_0x2084('0x29')],_0x441ba2[_0x2084('0x2f')])),_0x3f44b6=new Set();for(const _0x2dbf13 of _0x2f0948)for(const {suggestion:_0x404a38,meta:_0x5eed7d}of this[_0x2084('0x9e')](_0x2dbf13,_0x2084('0xa4')))_0x5eed7d[_0x2084('0xd5')]&&!_0x5eed7d['isNextTo']&&_0x3f44b6[_0x2084('0xac')](_0x404a38);for(const _0x570b0c of _0x3f44b6)if(_0x570b0c[_0x2084('0x77')]){const _0xcd4413=_0x570b0c[_0x2084('0xc4')]();(!_0x570b0c[_0x2084('0x27')]||!_0x570b0c['attributes'][_0x2084('0x116')])&&(_0xcd4413[_0x2084('0x96')](_0xa2a456=>_0x2f0948['some'](_0x12f57a=>_0x12f57a['containsRange'](_0xa2a456,!0x0)))&&_0x570b0c[_0x2084('0x11d')]());if(_0x2f0948['every'](_0xd4c91e=>_0xcd4413[_0x2084('0x11f')](_0x34fa62=>_0x34fa62[_0x2084('0xa')](_0xd4c91e,!0x0)))){const _0x39355e=this['_suggestionFactory']['getSuggestionCallback'](_0x2084('0x90'),_0x31e183,'accept');return this[_0x2084('0x10')](()=>_0x39355e(_0x16e386,null,_0x211e40)),null;}}else{const _0x5b5ba9=_0x570b0c[_0x2084('0x79')]();_0x2f0948[_0x2084('0x11f')](_0x1a9c76=>_0x1a9c76[_0x2084('0xa')](_0x5b5ba9,!0x0))&&_0x570b0c[_0x2084('0x11d')]();if(_0x2f0948[_0x2084('0x96')](_0x2f9d50=>_0x5b5ba9[_0x2084('0xa')](_0x2f9d50,!0x0))){const _0x3dc839=this[_0x2084('0x41')]['getSuggestionCallback'](_0x2084('0x90'),_0x31e183,_0x2084('0xc7'));return this[_0x2084('0x10')](()=>_0x3dc839(_0x2f0948,null,_0x211e40)),null;}}const _0x232b1d=this[_0x2084('0x41')]['getSuggestionCallback'](_0x2084('0x90'),_0x31e183,_0x2084('0xfa'));let _0x1b9920=null;for(const _0x1fa923 of this['getSuggestions']())if(_0x1fa923[_0x2084('0x5d')]['id']==_0x366693['id']&&_0x1fa923[_0x2084('0x117')]&&_0x2084('0x90')==_0x1fa923[_0x2084('0x63')]&&_0x1fa923[_0x2084('0x128')]==_0x31e183&&(_0x232b1d(_0x1fa923['getRanges'](),_0x2f0948)||_0x232b1d(_0x2f0948,_0x1fa923[_0x2084('0xc4')]()))){if(_0x1b9920){if(_0x1fa923[_0x2084('0x10f')]&&_0x1fa923['commentThread'][_0x2084('0x9b')])continue;for(const _0x20b1f0 of _0x1fa923[_0x2084('0xc4')]())_0x1b9920['isIntersectingWithRange'](_0x20b1f0)||_0x1b9920[_0x2084('0x5e')](_0x20b1f0);_0x1fa923[_0x2084('0x57')]();}else{_0x1b9920=_0x1fa923;for(const _0x1a3a9f of _0x2f0948)_0x1fa923[_0x2084('0x86')](_0x1a3a9f)||_0x1fa923[_0x2084('0x5e')](_0x1a3a9f);}}if(_0x1b9920)return _0x1b9920;_0x3f44b6['clear']();for(const _0x289bd1 of _0x2f0948)for(const {suggestion:_0x57ef83,meta:_0x15c4e3}of this[_0x2084('0x9e')](_0x289bd1,_0x2084('0x90')))_0x15c4e3[_0x2084('0xd5')]&&_0x3f44b6[_0x2084('0xac')](_0x57ef83);for(const _0x4eb54d of _0x3f44b6){const _0x248b6a=_0x4eb54d[_0x2084('0xc4')]();if(!_0x211e40||!_0x211e40[_0x2084('0x116')]){if(_0x2f0948[_0x2084('0x96')](_0x2ef22f=>_0x248b6a['some'](_0x3c45fa=>_0x3c45fa[_0x2084('0xa')](_0x2ef22f,!0x0))))return _0x4eb54d;}(!_0x4eb54d['attributes']||!_0x4eb54d[_0x2084('0x27')][_0x2084('0x116')])&&(_0x248b6a[_0x2084('0x96')](_0x5855a5=>_0x2f0948['some'](_0x45c49f=>_0x45c49f[_0x2084('0xa')](_0x5855a5,!0x0)))&&_0x4eb54d[_0x2084('0x11d')]());}const _0x5903cc=_0x495cdf(),_0x56aa6d=_0x366693['id'],_0x8078a2=_0x2084('0xd1')+_0x31e183,_0xd82ded=this[_0x2084('0xe7')]({'id':_0x5903cc,'type':_0x8078a2,'createdAt':new Date(),'authorId':_0x56aa6d,'attributes':_0x211e40});for(const _0x854338 of _0x2f0948)_0x854338[_0x2084('0x11b')](),_0x854338[_0x2084('0x6a')]||_0x2084('0x100')==_0x854338[_0x2084('0x108')][_0x2084('0x125')]||this['_addSuggestionMarker'](_0x8078a2,_0x5903cc,_0x56aa6d,_0x854338,_0x4f381c['getMultiRangeId']());return _0xd82ded;}['_setSuggestionRange'](_0x73100e,_0x3b038e){const _0x11c5a8=_0x73100e[_0x2084('0xc9')]();this['_model'][_0x2084('0x54')](_0x2775b6=>{_0x2775b6[_0x2084('0x2c')](_0x11c5a8,{'range':_0x3b038e});});}[_0x2084('0x7')](_0x37cf8f){const _0x191c36=_0x37cf8f['id'],_0x1c4abb=this['editor'][_0x2084('0x101')][_0x2084('0x1c')](_0x2084('0x97'));this[_0x2084('0xc8')][_0x2084('0x103')](_0x191c36)||this[_0x2084('0xc8')][_0x2084('0xb7')]({'channelId':_0x1c4abb,'threadId':_0x191c36});const _0x43a9c4=this[_0x2084('0xc8')][_0x2084('0x15')](_0x191c36);_0x43a9c4[_0x2084('0x6f')](_0x2084('0xdb')),_0x43a9c4[_0x2084('0xdb')]=!0x1,_0x37cf8f['commentThread']=_0x43a9c4;}[_0x2084('0x11a')](_0x387a26,_0x3c93fb,_0x5b5ca3,_0x201e95){if(_0x387a26[_0x2084('0x63')]!=_0x3c93fb||_0x387a26[_0x2084('0x128')]!=_0x5b5ca3||_0x387a26[_0x2084('0x5d')]['id']!=_0x201e95)throw this[_0x2084('0x4')][_0x2084('0x94')]('track-changes-suggestion-data-mismatch'),new _0xa2b4f8(_0x2084('0xa5'),this);}['_cutOutSuggestionMarker'](_0xf03c30,_0x2a3d16){const _0x3f1b58=_0xf03c30['getFirstRange']();if(_0x2a3d16[_0x2084('0x110')](_0x3f1b58))_0xf03c30[_0x2084('0x57')]();else{if(_0x3f1b58[_0x2084('0xa')](_0x2a3d16)){const _0x40afe1=this['_model'][_0x2084('0x92')](_0x2a3d16[_0x2084('0x29')][_0x2084('0x93')],_0x2084('0x2f'));this['_setSuggestionRange'](_0xf03c30,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x3f1b58[_0x2084('0x29')],_0x40afe1));const _0x1afd2c=_0x495cdf(),_0x2ad0c0=_0xf03c30['author']['id'],_0x28ca2a=_0xf03c30[_0x2084('0x63')]+':'+_0xf03c30[_0x2084('0x128')];this[_0x2084('0xe7')]({'id':_0x1afd2c,'type':_0x28ca2a,'createdAt':new Date(),'authorId':_0x2ad0c0,'data':_0xf03c30[_0x2084('0x14')],'attributes':_0xf03c30[_0x2084('0x27')]});const _0x4928b9=this[_0x2084('0x7f')][_0x2084('0x92')](_0x2a3d16[_0x2084('0x2f')][_0x2084('0x121')],_0x2084('0x13')),_0x32398a=this[_0x2084('0x7f')][_0x2084('0x9a')](_0x4928b9,_0x3f1b58[_0x2084('0x2f')]);this[_0x2084('0x59')](_0x28ca2a,_0x1afd2c,_0x2ad0c0,_0x32398a);}else{if(_0x3f1b58[_0x2084('0xc1')](_0x2a3d16['start'])){const _0x202db4=this[_0x2084('0x7f')][_0x2084('0x92')](_0x2a3d16['start'][_0x2084('0x93')],_0x2084('0x2f'));this[_0x2084('0x118')](_0xf03c30,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x3f1b58[_0x2084('0x29')],_0x202db4));}else{const _0x4bb9a2=this[_0x2084('0x7f')][_0x2084('0x92')](_0x2a3d16[_0x2084('0x2f')][_0x2084('0x121')],_0x2084('0x13'));this['_setSuggestionRange'](_0xf03c30,this[_0x2084('0x7f')]['createRange'](_0x4bb9a2,_0x3f1b58[_0x2084('0x2f')]));}}}}['_rangeIsInLocalUserInsertion'](_0x1b2dd3){for(const {suggestion:_0xdce581,meta:_0x5eb71a}of this['_findSuggestions'](_0x1b2dd3,_0x2084('0xa4'))){if(!_0x5eb71a[_0x2084('0xd5')])continue;const _0x4c9b63=_0xdce581[_0x2084('0xc4')]();for(const _0x15f8df of _0x4c9b63)if(!_0x1b2dd3['getDifference'](_0x15f8df)[_0x2084('0x9b')])return!0x0;}return!0x1;}[_0x2084('0xd')](_0x3faff8){const _0x2c3e58=this['editor'][_0x2084('0x102')][_0x2084('0x1c')]('Users')[_0x2084('0xe9')](_0x3faff8);if(!_0x2c3e58)throw new _0xa2b4f8('track-changes-user-not-found',this);return _0x2c3e58;}[_0x2084('0x53')](_0x5d8a58,_0x1da302,_0x172d50,_0xefc119){const _0x3146c1=this['_getAuthorFromId'](_0xefc119),_0x4c8f45=this[_0x2084('0x41')][_0x2084('0x65')](_0x5d8a58,_0x1da302,_0x172d50,_0x3146c1,_0x26ec31=>this[_0x2084('0xe1')](_0x172d50,{'attributes':_0x26ec31}));return this[_0x2084('0xad')](_0x4c8f45,_0x2084('0xc7'),()=>{this[_0x2084('0xe1')](_0x172d50,{'state':_0x2084('0x6b')});},{'priority':'high'}),this[_0x2084('0xad')](_0x4c8f45,_0x2084('0x11d'),()=>{this[_0x2084('0xe1')](_0x172d50,{'state':'rejected'});},{'priority':_0x2084('0xbf')}),this[_0x2084('0x56')]['set'](_0x172d50,_0x4c8f45),this[_0x2084('0xbb')][_0x2084('0xf')](_0x4c8f45,_0x2084('0xf3')),_0x4c8f45;}[_0x2084('0x58')](_0x54ea4a){const _0x3639cd=_0x54ea4a[_0x2084('0x1a')](':');return{'group':_0x3639cd[0x0],'type':_0x3639cd[0x1],'subType':_0x3639cd['length']>=0x5?_0x3639cd[0x2]:null,'id':_0x3639cd['length']<0x5?_0x3639cd[0x2]:_0x3639cd[0x3],'authorId':_0x3639cd[_0x2084('0x9b')]<0x5?_0x3639cd[0x3]:_0x3639cd[0x4],'markerCount':0x6==_0x3639cd[_0x2084('0x9b')]?_0x3639cd[0x5]:null};}[_0x2084('0xd0')](_0x17a138,_0x319437,_0x4c88ec){const _0x5986a6=_0x17a138['getFirstRange'](),_0x5cb975=_0x5986a6['start'],_0x25e492=_0x5986a6[_0x2084('0x2f')];this[_0x2084('0x118')](_0x17a138,this['_model'][_0x2084('0x9a')](_0x5cb975,_0x319437));const _0xfe401=_0x495cdf(),_0x5f001a=_0x17a138[_0x2084('0x5d')]['id'],_0x54d083=_0x17a138[_0x2084('0x63')]+(_0x17a138[_0x2084('0x128')]?':'+_0x17a138[_0x2084('0x128')]:'');this[_0x2084('0xe7')]({'id':_0xfe401,'type':_0x54d083,'createdAt':new Date(),'authorId':_0x5f001a,'originalSuggestionId':_0x17a138['id'],'data':_0x17a138[_0x2084('0x14')]}),_0x2084('0x107')==_0x17a138[_0x2084('0x63')]&&(_0x4c88ec=this[_0x2084('0x7f')]['createPositionBefore'](_0x4c88ec[_0x2084('0x121')])),this[_0x2084('0x59')](_0x54d083,_0xfe401,_0x5f001a,this[_0x2084('0x7f')]['createRange'](_0x4c88ec,_0x25e492));}[_0x2084('0x9e')](_0x4a2bab,_0x22c248=null){const _0x48cfa6=[],_0x4666c8=this['_model'][_0x2084('0x8a')],_0x2fa578=this[_0x2084('0x4')][_0x2084('0x102')][_0x2084('0x1c')](_0x2084('0x127'))['me'];for(const _0x35b121 of this[_0x2084('0xef')]())if(_0x35b121[_0x2084('0x117')]&&(!_0x22c248||_0x35b121[_0x2084('0x63')]==_0x22c248))for(const _0x35cc80 of _0x35b121['getRanges']()){const _0x586fc3=_0x4a2bab['start'][_0x2084('0x110')](_0x35cc80[_0x2084('0x2f')])||_0x4a2bab['end'][_0x2084('0x110')](_0x35cc80[_0x2084('0x29')]);if(_0x586fc3||_0x4a2bab[_0x2084('0x2d')](_0x35cc80)){const _0x36ae6a=_0x4a2bab['containsRange'](_0x35cc80)&&wt(_0x4666c8,_0x35cc80['start'],_0x4a2bab),_0x2bce89=_0x35cc80[_0x2084('0xa')](_0x4a2bab)&&wt(_0x4666c8,_0x4a2bab[_0x2084('0x29')],_0x35cc80);_0x48cfa6[_0x2084('0x5a')]({'suggestion':_0x35b121,'meta':{'isOwn':_0x2fa578==_0x35b121['author'],'isNextTo':_0x586fc3,'isInsideObject':_0x36ae6a,'containsRangeInObject':_0x2bce89}});break;}}return _0x48cfa6;}[_0x2084('0x59')](_0xcd789d,_0x44a7db,_0x5405f0,_0xdffcdc,_0xfebdc4=null){this[_0x2084('0x7f')][_0x2084('0x54')](_0x320363=>{let _0x3d315b='suggestion:'+_0xcd789d+':'+_0x44a7db+':'+_0x5405f0;_0xfebdc4&&(_0x3d315b=_0x3d315b+':'+_0xfebdc4),_0x320363['addMarker'](_0x3d315b,{'range':_0xdffcdc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1b81dc){const _0x117d8c=_0x1b81dc[_0x2084('0x7a')],_0x339245=_0x1b81dc[_0x2084('0xed')];_0x1b81dc[_0x2084('0x7a')]=null,null!=_0x117d8c&&(_0x117d8c[_0x2084('0xed')]=null),_0x1b81dc[_0x2084('0xed')]=null,null!=_0x339245&&(_0x339245[_0x2084('0x7a')]=null),_0x2084('0xca')==this['_suggestionState']['get'](_0x1b81dc)&&(this['_suggestionState'][_0x2084('0xf')](_0x1b81dc,_0x2084('0xf4')),this[_0x2084('0x50')](_0x2084('0xa0'),_0x1b81dc,_0x117d8c,_0x339245));}[_0x2084('0xe7')](_0x874ae7){const _0x193e7f=_0x874ae7['id'],_0x5ef389=this['addSuggestionData'](_0x874ae7);if(this[_0x2084('0x80')]&&this['_adapter']['addSuggestion']){const _0x425929=this[_0x2084('0x4')][_0x2084('0x102')][_0x2084('0x1c')]('PendingActions'),_0x513334=_0x5ef389[_0x2084('0x62')],_0x5dd632=_0x5ef389[_0x2084('0x128')]?_0x5ef389['type']+':'+_0x5ef389['subType']:_0x5ef389[_0x2084('0x63')],_0x2395be=this[_0x2084('0x4')]['locale'],_0x30b0f2=_0x425929[_0x2084('0xac')](_0x2d02e2(_0x2395be,_0x2084('0x8'))),_0x4e308f={'id':_0x193e7f,'type':_0x5dd632,'hasComments':_0x513334,'data':_0x874ae7[_0x2084('0x14')]||null,'originalSuggestionId':_0x874ae7['originalSuggestionId']||null,'attributes':_0x5ef389['attributes']};this[_0x2084('0x80')][_0x2084('0x10e')](_0x4e308f)[_0x2084('0xae')](_0xa35ab3=>{_0x5ef389[_0x2084('0x61')]=!0x0,_0x425929['remove'](_0x30b0f2),_0xa35ab3&&_0xa35ab3[_0x2084('0x10c')]&&(this['_suggestions']['get'](_0x193e7f)[_0x2084('0x10c')]=_0xa35ab3[_0x2084('0x10c')]);})[_0x2084('0x85')](_0x30e1e8=>{throw _0x3155d4(_0x2084('0x21')),this[_0x2084('0x4')][_0x2084('0x48')][_0x2084('0x3c')]({'isUndoable':!0x1},()=>{_0x5ef389['discard']();}),_0x5ef389[_0x2084('0x3d')](),this[_0x2084('0x56')]['delete'](_0x5ef389['id']),this[_0x2084('0xbb')]['delete'](_0x5ef389),_0x30e1e8;});}return _0x5ef389;}[_0x2084('0xe1')](_0x2986eb,_0x7c1fcd){const _0x2e6344=this[_0x2084('0x4')][_0x2084('0x102')]['get'](_0x2084('0xbc')),_0x4c53cf=this[_0x2084('0x56')][_0x2084('0x1c')](_0x2986eb);if(this[_0x2084('0x80')]&&this[_0x2084('0x80')][_0x2084('0xa3')]){if(_0x4c53cf[_0x2084('0x61')]){const _0x4fe60c=_0x2e6344[_0x2084('0xac')](_0x2d02e2(this[_0x2084('0x4')][_0x2084('0xce')],'PENDING_ACTION_SUGGESTION'));this[_0x2084('0x80')][_0x2084('0xa3')](_0x2986eb,_0x7c1fcd)[_0x2084('0xae')](()=>{_0x2e6344['remove'](_0x4fe60c);});}else _0x4c53cf['on'](_0x2084('0x99'),()=>{this[_0x2084('0xe1')](_0x2986eb,_0x7c1fcd);});}}[_0x2084('0xb5')](_0x5f4b29){if(!this[_0x2084('0x80')]||!this['_adapter'][_0x2084('0x2e')])throw new _0xa2b4f8('track-changes-adapter-missing-getsuggestion',this);return this[_0x2084('0x80')]['getSuggestion'](_0x5f4b29);}[_0x2084('0x114')](_0x1cbb67){const {id:_0x4ec42d,type:_0x27a3ff,subType:_0x41a8d6,authorId:_0x275f52}=this['_splitMarkerName'](_0x1cbb67),_0x5ae62b=this[_0x2084('0x56')]['get'](_0x4ec42d)||this[_0x2084('0x53')](_0x27a3ff,_0x41a8d6,_0x4ec42d,_0x275f52);switch(this['_checkSuggestionCorrectness'](_0x5ae62b,_0x27a3ff,_0x41a8d6,_0x275f52),this[_0x2084('0xbb')][_0x2084('0x1c')](_0x5ae62b)){case _0x2084('0xf3'):this[_0x2084('0xb5')](_0x4ec42d)['then'](_0x1034b1=>{let _0x5a7d6d=Promise[_0x2084('0x44')]();_0x1034b1[_0x2084('0x62')]&&(_0x5a7d6d=this[_0x2084('0xc8')][_0x2084('0x9')]({'channelId':this['editor']['config']['get'](_0x2084('0x97')),'threadId':_0x4ec42d})),_0x5a7d6d[_0x2084('0xae')](()=>{this[_0x2084('0x78')](_0x1034b1)[_0x2084('0x61')]=!0x0;});}),this[_0x2084('0xbb')][_0x2084('0xf')](_0x5ae62b,_0x2084('0x81'));break;case _0x2084('0xf4'):this[_0x2084('0xe1')](_0x4ec42d,{'state':_0x2084('0xa7')});case _0x2084('0x4f'):this[_0x2084('0xbb')]['set'](_0x5ae62b,_0x2084('0xca')),this['fire'](_0x2084('0xe4'),_0x5ae62b);break;case _0x2084('0xca'):this[_0x2084('0x50')](_0x2084('0xf8'),_0x5ae62b);}_0x5ae62b['addMarkerName'](_0x1cbb67),this['_refreshSuggestionsChain'](_0x5ae62b);}['_refreshSuggestionsChain'](_0x59ef73){if(_0x59ef73[_0x2084('0x77')])return;let _0x57ea54=!0x0,_0x3c803b=!0x0;for(const _0x538d32 of this[_0x2084('0xef')]()){if(_0x538d32[_0x2084('0x77')])continue;if(_0x538d32==_0x59ef73||!_0x538d32[_0x2084('0x117')])continue;if(_0x538d32[_0x2084('0x5d')]['id']!=_0x59ef73[_0x2084('0x5d')]['id'])continue;const _0xc08ca4=this[_0x2084('0x41')][_0x2084('0x70')](_0x59ef73[_0x2084('0x63')],_0x59ef73[_0x2084('0x128')],_0x2084('0x4c')),_0xa81821=this[_0x2084('0x41')][_0x2084('0x70')](_0x538d32[_0x2084('0x63')],_0x538d32['subType'],_0x2084('0x4c')),_0x338ae8=_0xc08ca4(_0x59ef73,_0x538d32),_0x338280=_0xa81821(_0x59ef73,_0x538d32);_0x338ae8&&_0x338280&&(_0x338ae8[0x1][_0x2084('0x10f')]&&_0x338ae8[0x1][_0x2084('0x10f')][_0x2084('0x9b')]||(_0x338ae8[0x0][_0x2084('0xed')]=_0x338ae8[0x1],_0x338ae8[0x1][_0x2084('0x7a')]=_0x338ae8[0x0],_0x338ae8[0x0]==_0x59ef73?_0x3c803b=!0x1:_0x57ea54=!0x1));}_0x59ef73[_0x2084('0x7a')]&&_0x57ea54&&(_0x59ef73['previous'][_0x2084('0xed')]=null,_0x59ef73['previous']=null),_0x59ef73[_0x2084('0xed')]&&_0x3c803b&&(_0x59ef73[_0x2084('0xed')]['previous']=null,_0x59ef73[_0x2084('0xed')]=null);}[_0x2084('0x6')](_0x104d18){for(const _0x152b99 of this['_suggestions'][_0x2084('0x37')]()){if(_0x152b99==_0x104d18||!_0x152b99[_0x2084('0x117')])continue;if(_0x152b99[_0x2084('0x63')]!=_0x104d18[_0x2084('0x63')]||_0x152b99['author']['id']!=_0x104d18[_0x2084('0x5d')]['id']||_0x152b99[_0x2084('0x128')]!=_0x104d18[_0x2084('0x128')])continue;const _0x4d1a1c=this[_0x2084('0x41')][_0x2084('0x70')](_0x104d18[_0x2084('0x63')],_0x104d18[_0x2084('0x128')],_0x2084('0xfa'));if(_0x4d1a1c(_0x152b99[_0x2084('0xc4')](),_0x104d18[_0x2084('0xc4')]())){if(_0x104d18['commentThread']&&_0x104d18['commentThread'][_0x2084('0x9b')])continue;return this[_0x2084('0x75')](_0x152b99,_0x104d18),!0x0;}if(_0x4d1a1c(_0x104d18[_0x2084('0xc4')](),_0x152b99[_0x2084('0xc4')]())){if(_0x152b99[_0x2084('0x10f')]&&_0x152b99[_0x2084('0x10f')]['length'])continue;return this[_0x2084('0x75')](_0x104d18,_0x152b99),!0x0;}}return!0x1;}[_0x2084('0x75')](_0x1c7bba,_0x1643b7){if(_0x1c7bba['isMultiRange'])for(const _0x53486a of _0x1643b7[_0x2084('0xc4')]())_0x1c7bba[_0x2084('0x5e')](_0x53486a);else{const _0x43d86b=_0x1643b7[_0x2084('0x79')]()[_0x2084('0x2f')];this[_0x2084('0x118')](_0x1c7bba,this[_0x2084('0x7f')][_0x2084('0x9a')](_0x1c7bba[_0x2084('0x79')]()[_0x2084('0x29')],_0x43d86b));}_0x1643b7[_0x2084('0x57')]();}}_0x52747c(d,_0x5cb8bb);class kt{constructor(_0x688777){this[_0x2084('0x20')]=_0x688777,this['_model']=_0x688777['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this[_0x2084('0xea')]();}[_0x2084('0x65')](_0x3af404,_0x2db8a8,_0x4ae6a0,_0x288462,_0x2322cf){return new _0x4f381c(this[_0x2084('0x7f')],{'type':_0x3af404,'subType':_0x2db8a8,'id':_0x4ae6a0,'author':_0x288462,'onAttributesChange':_0x2322cf,'onAccept':(..._0x5ee66b)=>this[_0x2084('0x70')](_0x3af404,_0x2db8a8,_0x2084('0xc7'))(..._0x5ee66b),'onDiscard':(..._0x46ac17)=>this[_0x2084('0x70')](_0x3af404,_0x2db8a8,'discard')(..._0x46ac17)});}['registerCustomCallback'](_0x296857,_0x5bc991,_0x26537a,_0x5effd0){const _0x545427=_0x296857+':'+_0x5bc991+':'+_0x26537a;this[_0x2084('0xe0')][_0x2084('0xf')](_0x545427,_0x5effd0);}['getSuggestionCallback'](_0x409c26,_0x5347e1,_0x2e2543){const _0x28b647=_0x409c26+':'+_0x5347e1+':'+_0x2e2543;return this[_0x2084('0xe0')][_0x2084('0x1c')](_0x28b647)||this['_defaultCallbacks'][_0x2084('0x1c')](_0x409c26+':'+_0x2e2543);}[_0x2084('0xea')](){const _0x5c75b5=()=>{},_0x172fee=_0x6e1fe6=>{_0x6e1fe6[_0x2084('0xcc')]((_0x143407,_0x1d6cd0)=>_0x143407['start']['isBefore'](_0x1d6cd0[_0x2084('0x29')])?0x1:-0x1),this[_0x2084('0x7f')][_0x2084('0x54')](_0x30fbf7=>{for(const _0x5b94a0 of _0x6e1fe6){let _0xe53778;_0xe53778=_0x5b94a0[_0x2084('0x2f')][_0x2084('0xf5')]&&_0x5b94a0['end']['parent']==_0x5b94a0[_0x2084('0x29')][_0x2084('0x82')]?_0x30fbf7['createSelection'](_0x5b94a0['start']['nodeAfter'],'on'):_0x30fbf7['createSelection'](_0x5b94a0),this[_0x2084('0x7f')][_0x2084('0x0')](_0xe53778,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5449d1=(_0x2718a7,_0x2f48c9)=>{this[_0x2084('0x7f')]['change'](_0x2c9c62=>{const {commandName:_0x2d9ed9,commandParams:_0x59ad87=[]}=_0x2f48c9,_0x42a688=_0x2718a7[0x0];if(_0x2084('0x100')==_0x42a688[_0x2084('0x108')][_0x2084('0x125')])return;const _0x37dbcf=Array[_0x2084('0x25')](this[_0x2084('0x7f')][_0x2084('0xf6')][_0x2084('0x124')][_0x2084('0xc4')]())[_0x2084('0x7e')](_0x478315=>_0x184ebb[_0x2084('0xff')](_0x478315));yt(_0x42a688)?_0x2c9c62[_0x2084('0xb')](this[_0x2084('0x7f')]['createRange'](_0x42a688[_0x2084('0x2f')])):_0x2c9c62['setSelection'](_0x42a688);for(const _0x4823dc of this[_0x2084('0x20')]['commands'][_0x2084('0xd2')]())_0x4823dc[_0x2084('0x88')]();_0x59ad87['push']({'forceDefaultExecution':!0x0}),this['_editor'][_0x2084('0xd8')](_0x2d9ed9,..._0x59ad87);const _0x51a72f=_0x37dbcf[_0x2084('0xbe')](_0x3ae4f=>_0x2084('0x100')!=_0x3ae4f[_0x2084('0x108')]['rootName']);_0x51a72f[_0x2084('0x9b')]>0x0&&_0x2c9c62[_0x2084('0xb')](_0x51a72f);for(const _0x5b6fef of _0x37dbcf)_0x5b6fef['detach']();});},_0x1e7c3c=(_0xda6d49,_0x3501a3)=>0x1==_0xda6d49[_0x2084('0x9b')]&&0x1==_0x3501a3[_0x2084('0x9b')]&&_0xda6d49[0x0]['end'][_0x2084('0x110')](_0x3501a3[0x0][_0x2084('0x29')]),_0x13af01=(_0xa5776d,_0x57f5cc)=>Dt(_0xa5776d,_0x57f5cc,this[_0x2084('0x7f')])?[_0xa5776d,_0x57f5cc]:Dt(_0x57f5cc,_0xa5776d,this[_0x2084('0x7f')])?[_0x57f5cc,_0xa5776d]:null;this['_defaultCallbacks'][_0x2084('0xf')](_0x2084('0x69'),_0x5c75b5),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x39'),_0x172fee),this[_0x2084('0xab')][_0x2084('0xf')]('insertion:join',_0x1e7c3c),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x2b'),_0x13af01),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x1b'),_0x172fee),this[_0x2084('0xab')][_0x2084('0xf')]('deletion:discard',_0x5c75b5),this[_0x2084('0xab')][_0x2084('0xf')]('deletion:join',_0x1e7c3c),this[_0x2084('0xab')]['set'](_0x2084('0x51'),_0x13af01),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x6e'),_0x5449d1),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x22'),_0x5c75b5),this[_0x2084('0xab')]['set'](_0x2084('0x9f'),_0x1e7c3c),this[_0x2084('0xab')][_0x2084('0xf')](_0x2084('0x7c'),_0x5c75b5),this['_defaultCallbacks'][_0x2084('0xf')]('formatBlock:accept',_0x5449d1),this[_0x2084('0xab')]['set']('formatBlock:discard',_0x5c75b5),this[_0x2084('0xab')][_0x2084('0xf')]('formatBlock:join',_0x1e7c3c),this['_defaultCallbacks'][_0x2084('0xf')](_0x2084('0x71'),_0x5c75b5);}}function wt(_0x5a932d,_0x3ab733,_0x6b6d31){for(const _0x868932 of _0x3ab733['parent'][_0x2084('0x5')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x868932['root']==_0x868932)return!0x1;if(!_0x6b6d31['containsItem'](_0x868932))return!0x1;if(_0x5a932d[_0x2084('0x7d')](_0x868932)||_0x5a932d[_0x2084('0x95')](_0x868932))return!0x0;}}function yt(_0x2294b5){return _0x2294b5[_0x2084('0x2f')]['parent']==_0x2294b5[_0x2084('0x29')]['nodeAfter']&&_0x2294b5[_0x2084('0x2f')]['isAtStart'];}function bt(_0x5991e5,_0x55cc47,_0x175a03,_0x328cfe){const _0x585d3e=_0x1449a2=>!_0x1449a2['item']['is']('textProxy')&&!_0x328cfe['isObject'](_0x1449a2[_0x2084('0xe')]),_0x377a79=_0x5991e5[_0x2084('0x29')][_0x2084('0xf0')](_0x585d3e),_0x299e29=_0x5991e5[_0x2084('0x2f')][_0x2084('0xf0')](_0x585d3e,{'direction':'backward'});return(!_0x5991e5[_0x2084('0x29')]['isEqual'](_0x377a79)||!_0x5991e5[_0x2084('0x2f')][_0x2084('0x110')](_0x299e29))&&(_0x377a79['isBefore'](_0x299e29)?_0x175a03[_0x2084('0x2c')](_0x55cc47,{'range':_0x175a03['createRange'](_0x377a79,_0x299e29)}):_0x175a03['removeMarker'](_0x55cc47),!0x0);}function St(_0x468fbc){return _0x252d75(_0x468fbc);}function It(_0x883423){const _0x46ce64=_0x883423[_0x2084('0x29')][_0x2084('0x82')];return _0x46ce64&&_0x46ce64['is'](_0x2084('0x112'));}function vt(_0x4b1cf5,_0x4a994a){const _0x45d8fd=_0x4a994a[_0x2084('0x8a')][_0x2084('0x7d')](_0x4b1cf5)||_0x4a994a['schema'][_0x2084('0x1')](_0x4b1cf5);return _0x4a994a[_0x2084('0x9a')](_0x4a994a['createPositionAt'](_0x4b1cf5,_0x2084('0x123')),_0x45d8fd?_0x4a994a['createPositionAfter'](_0x4b1cf5):_0x4a994a[_0x2084('0x92')](_0x4b1cf5,_0x2084('0x2f')));}function Dt(_0x2c66e8,_0x48b6ac,_0x329231){const _0x3147b3=_0x2c66e8[_0x2084('0x79')](),_0x444f6b=_0x48b6ac[_0x2084('0x79')]();if(_0x3147b3[_0x2084('0x2f')][_0x2084('0x110')](_0x444f6b[_0x2084('0x29')]))return!0x0;if(_0x2c66e8[_0x2084('0x63')]!=_0x48b6ac['type'])return!0x1;if(!_0x3147b3[_0x2084('0x2f')][_0x2084('0x46')](_0x444f6b[_0x2084('0x29')]))return!0x1;const _0xed42ed=_0x329231[_0x2084('0x9a')](_0x3147b3['end'],_0x444f6b[_0x2084('0x29')])[_0x2084('0x10a')]();for(const _0x23b8e3 of _0xed42ed)if([_0x2084('0x91'),_0x2084('0x9d')]['includes'](_0x23b8e3[_0x2084('0x63')])&&_0x329231[_0x2084('0x8a')][_0x2084('0x95')](_0x23b8e3[_0x2084('0xe')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x5e89db}from'ckeditor5/src/core';import{Collection as Ct}from'ckeditor5/src/utils';import{Model as bt,SplitButtonView as Tt,createDropdown as At,addListToDropdown as xt}from'ckeditor5/src/ui';import{Users as _0x3b50b6,getDateTimeFormatter as Et,getMarkerDomElement as St}from'ckeditor5-collaboration/src/collaboration-core';import _0x3fab49 from'./trackchangesediting';import vt from'./ui/suggestioncontroller';import Nt from'./ui/view/suggestionthreadview';import It from'../theme/icons/track-changes.svg';import{debounce as Dt}from'lodash-es';export default class m extends _0x5e89db{static get['requires'](){return[_0x3fab49,_0x3b50b6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1228e6){super(_0x1228e6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_debouncedHandlers']=new Map();const _0x2f36bc=this['editor']['config'];_0x2f36bc['define']('trackChanges.SuggestionThreadView',Nt),_0x2f36bc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2f36bc['get']('trackChanges.disableComments');}['init'](){const _0x2c8a14=this['editor'],_0x37fb78=_0x2c8a14['plugins']['get'](_0x3fab49),_0xea2eab=_0x2c8a14['plugins']['get']('Annotations'),_0xb6310b=_0x2c8a14['plugins']['get']('EditorAnnotations'),_0x5a27f3=_0x2c8a14['plugins']['get']('CommentsRepository');_0x2c8a14['ui']['componentFactory']['add']('trackChanges',_0x301877=>this['_createUIButton'](_0x301877)),_0xb6310b['addSourceCollector'](()=>{const _0x2bde2b=[];for(const [_0x292087,_0x1d68a0]of Array['from'](this['_suggestionToController'])){const _0x1d83e6=_0x292087['getAllAdjacentSuggestions'](),_0x127d60=[];for(const _0x3e0c3e of _0x1d83e6){if(!_0x3e0c3e['isInContent'])continue;if(_0x3e0c3e['isMultiRange']){_0x127d60['push'](..._0x3e0c3e['getRanges']());continue;}const _0xa30520=_0x3e0c3e['getFirstRange']();if(_0x127d60['length']>0x0){const _0xddc0af=_0x127d60[0x0]['getJoined'](_0xa30520);if(_0xddc0af){_0x127d60[0x0]=_0xddc0af;continue;}}_0x127d60['push'](_0xa30520);}_0x2bde2b['push']([_0x1d68a0['view'],_0x127d60]);}return _0x2bde2b;}),this['listenTo'](_0x37fb78,'suggestionLoaded',(_0x45bc41,_0x8ad039)=>{let _0x3cab0b=!0x1;const _0x420916=Dt(_0x2b5334=>{_0x3cab0b||_0x2b5334?_0x3cab0b&&_0x2b5334&&(this['_destroyController'](_0x8ad039),_0xb6310b['refreshSelectedViews'](),_0x3cab0b=!0x1):(this['_initializeController'](_0x8ad039),_0xb6310b['refreshSelectedViews'](),_0x3cab0b=!0x0);},0xa);this['_debouncedHandlers']['set'](_0x8ad039,_0x420916),this['listenTo'](_0x8ad039,'change:previous',(_0x32203c,_0x499b6d,_0x245565,_0x356454)=>{_0x8ad039['isInContent']&&(null==_0x245565?(this['_updateController'](_0x356454['head']),_0x420916(!0x1)):(this['_updateController'](_0x245565['head']),_0x420916(!0x0)));}),null===_0x8ad039['previous']?_0x420916(!0x1):this['_updateController'](_0x8ad039['head']);}),this['listenTo'](_0x37fb78,'suggestionUnloaded',(_0x27d8d4,_0x371a13,_0x5cdcbb)=>{this['stopListening'](_0x371a13,'change:previous'),this['_debouncedHandlers']['get'](_0x371a13)['cancel'](),this['_debouncedHandlers']['delete'](_0x371a13);const _0xe7c268=_0x5cdcbb?_0x5cdcbb['head']:_0x371a13,_0x1c2284=this['_suggestionToController']['get'](_0xe7c268);null!==_0x5cdcbb&&this['_updateController'](_0xe7c268),null===_0x5cdcbb&&_0x1c2284&&this['_destroyController'](_0x371a13);}),this['listenTo'](_0x37fb78,'suggestionChanged',(_0x1e68ab,_0x5dc833)=>{this['_updateController'](_0x5dc833);}),this['listenTo'](_0xea2eab,'change:activeAnnotations',(_0x403884,_0x1cf42f,_0x604904)=>{const _0x206fd9=Array['from'](_0x604904,_0x5c5a03=>_0x5c5a03['innerView'])['filter'](_0x26090f=>this['_viewToController']['has'](_0x26090f)),_0x4027b7=[];for(const _0x20ea47 of _0x206fd9){const _0x47d662=this['_viewToController']['get'](_0x20ea47)['model']['getAllAdjacentSuggestions']();_0x4027b7['push'](..._0x47d662['reduce']((_0x1d8853,_0x8c610)=>[..._0x1d8853,..._0x8c610['getMarkerNames']()],[]));}_0x37fb78['activeMarkers']=_0x4027b7;}),this['listenTo'](_0x5a27f3,'addComment',(_0x2726fd,{threadId:_0x4dd89c,isFromAdapter:_0x4b4219})=>{if(_0x4b4219||!_0x37fb78['hasSuggestion'](_0x4dd89c))return;const _0x2a5da1=_0x37fb78['getSuggestion'](_0x4dd89c);this['_suggestionToController']['get'](_0x2a5da1)['view']['focus']();},{'priority':'lowest'});}['_createUIButton'](_0x52ca0e){const _0x5e6349=At(_0x52ca0e,Tt),_0x255450=this['editor']['commands']['get']('trackChanges'),{t:t}=this['editor'];_0x5e6349['buttonView']['set']({'tooltip':t('Track\x20changes'),'label':t('Track\x20changes'),'icon':It}),_0x5e6349['buttonView']['bind']('isOn')['to'](_0x255450,'value'),_0x5e6349['buttonView']['on']('execute',()=>_0x255450['execute']());const _0x4c5a83=new Ct(),_0x56c198=[{'type':'switchbutton','model':{'withText':!0x0,'label':t('Track\x20changes'),'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x17d5c3 of _0x56c198){const _0x17655c={'type':_0x17d5c3['type']};if(_0x17d5c3['model']){const _0x3feae1=new bt(_0x17d5c3['model']),_0x4a301a=this['editor']['commands']['get'](_0x3feae1['commandName']);_0x3feae1['bind']('isOn','isEnabled')['to'](_0x4a301a,'value','isEnabled'),_0x17655c['model']=_0x3feae1;}_0x4c5a83['add'](_0x17655c);}xt(_0x5e6349,_0x4c5a83);const _0xcde064=_0x56c198['filter'](_0x5d0124=>null!=_0x5d0124['model'])['map'](_0x590b9b=>this['editor']['commands']['get'](_0x590b9b['model']['commandName']));return _0x5e6349['buttonView']['actionView']['unbind']('isEnabled'),_0x5e6349['buttonView']['arrowView']['unbind']('isEnabled'),_0x5e6349['buttonView']['actionView']['bind']('isEnabled')['to'](_0x255450,'isEnabled'),_0x5e6349['buttonView']['arrowView']['bind']('isEnabled')['toMany'](_0xcde064,'isEnabled',(..._0x3b1e32)=>_0x3b1e32['some'](_0x50a738=>_0x50a738)),_0x5e6349['on']('execute',_0x3822d9=>this['editor']['execute'](_0x3822d9['source']['commandName'])),_0x5e6349;}['_initializeController'](_0xca7a5e){const _0x383f48=this['editor'],_0x47f409=_0x383f48['config'],_0x729e09=_0x383f48['plugins']['get']('Annotations'),_0x3d8a11=_0x383f48['plugins']['get']('CommentsRepository'),_0x48f11f=_0xca7a5e['getAllAdjacentSuggestions']()['filter'](_0x4fc217=>_0x4fc217['isInContent']),_0x3ba3a7=_0x383f48['plugins']['get'](_0x3b50b6)['me'],_0x29dde8=_0x383f48['commands']['get']('acceptSuggestion'),_0x5c072f=_0x383f48['commands']['get']('discardSuggestion'),_0x51a8a5=_0x47f409['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x449d90,CommentThreadInputView:_0x5bc04f}=_0x383f48['plugins']['get']('CommentsUI'),_0x3c8824=new _0x51a8a5(_0x383f48['locale'],_0xca7a5e,_0x3ba3a7,{'disableComments':this['_disableComments'],'editorConfig':_0x47f409['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x47f409['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x47f409['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x47f409['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':Et(_0x47f409['get']('locale')),'CommentView':_0x47f409['get']('comments')['CommentView'],'CommentsListView':_0x449d90,'CommentThreadInputView':_0x5bc04f}),_0x26144f=_0x3d8a11['createCommentThreadController'](_0xca7a5e['commentThread'],_0x3c8824),_0x4538e1=new vt(_0xca7a5e,_0x3c8824,_0x29dde8,_0x5c072f,_0x26144f);_0x3c8824['descriptionParts']=_0x383f48['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x48f11f),this['_suggestionToController']['set'](_0xca7a5e,_0x4538e1),this['_viewToController']['set'](_0x3c8824,_0x4538e1);const _0x3c9481=_0x729e09['createAnnotationView'](this['editor']['locale'],_0x3c8824);_0x3c9481['bind']('isDirty')['to'](_0x3c8824,'isDirty'),_0x3c9481['bind']('length')['to'](_0x3c8824),_0x3c9481['bind']('type')['to'](_0x3c8824,'type',_0x58086b=>'suggestion-'+_0x58086b);const _0x8ae2db=_0x729e09['createAnnotation']({'view':_0x3c9481,'target':()=>{const _0x23411c=_0x48f11f[0x0]['getFirstMarker']();if(!_0x23411c)return null;const _0x281cb1=_0x23411c['getRange']()['getContainedElement']();return _0x281cb1&&!_0x383f48['editing']['mapper']['toViewElement'](_0x281cb1)?null:St(_0x383f48['editing'],_0x23411c)||null;},'type':()=>'suggestion-'+_0x4538e1['view']['type']});_0x729e09['add'](_0x8ae2db);const _0x32aebd=_0x383f48['plugins']['get']('PendingActions');let _0x29b347;_0x3c8824['on']('change:isDirty',(_0x285c58,_0xe34fd7,_0x327154)=>{if(_0x327154){const t=this['editor']['locale']['t'];_0x29b347=_0x32aebd['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));}else _0x32aebd['remove'](_0x29b347),_0x29b347=null;});}['_destroyController'](_0x346ccf){const _0x2842ff=this['editor']['plugins']['get']('Annotations'),_0x47f700=this['_suggestionToController']['get'](_0x346ccf),_0x5e15e9=_0x47f700['view'],_0x435c00=_0x2842ff['getByInnerView'](_0x5e15e9);_0x435c00&&_0x2842ff['remove'](_0x435c00),this['_suggestionToController']['delete'](_0x346ccf),this['_viewToController']['delete'](_0x5e15e9),_0x47f700['destroy'](),_0x5e15e9['destroy']();}['_updateController'](_0x2b130a){if(!_0x2b130a['isInContent']||!this['_suggestionToController']['has'](_0x2b130a))return;const _0xe9c78a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e12e4=this['_suggestionToController']['get'](_0x2b130a),_0x5af5be=_0x2b130a['getAllAdjacentSuggestions']();_0x3e12e4['view']['descriptionParts']=_0xe9c78a['_descriptionFactory']['getDescriptions'](_0x5af5be);}['destroy'](){super['destroy']();for(const _0x5687ee of this['_suggestionToController']['keys']())this['_destroyController'](_0x5687ee);for(const _0x558e54 of this['_debouncedHandlers']['values']())_0x558e54['cancel']();this['_debouncedHandlers']['clear']();}}
|
|
23
|
+
const _0x1cda=['Discard\x20all\x20suggestions','execute','getSuggestion','button','PENDING_ACTION_SUGGESTION','separator','arrowView','comments.maxCommentCharsWhenCollapsed','listenTo','clear','_initializeController','commands','isMultiRange','locale','getFirstMarker','PendingActions','set','isDirty','filter','lowest','type','_disableComments','stopListening','suggestionUnloaded','getByInnerView','add','createAnnotation','map','acceptAllSuggestions','toMany','TrackChangesEditing','TrackChangesUI','trackChanges.disableComments','unbind','cancel','getRanges','refreshSelectedViews','getDescriptions','discardSelectedSuggestions','focus','values','model','editor','keys','Track\x20changes','_viewToController','CommentsRepository','createAnnotationView','getContainedElement','config','toViewElement','change:activeAnnotations','_debouncedHandlers','acceptSelectedSuggestions','acceptButton','init','bind','getMarkerNames','previous','define','EditorAnnotations','plugins','suggestion-','getAllAdjacentSuggestions','trackChanges','suggestionChanged','view','_createUIButton','addComment','push','get','getJoined','createCommentThreadController','_suggestionToController','discardButton','editing','remove','SuggestionThreadView','from','CommentView','discardSuggestion','componentFactory','source','requires','buttonView','switchbutton','reduce','_updateController','destroy','commandName','descriptionParts','actionView','Accept\x20all\x20suggestions','Annotations','_descriptionFactory','isEnabled','innerView','length','comments.editorConfig','Discard\x20all\x20selected\x20suggestions','isOn','delete','isInContent','pluginName','_destroyController','discardAllSuggestions','comments.maxCommentsWhenCollapsed','getFirstRange','comments.maxThreadTotalWeight','head','change:previous'];(function(_0x195f14,_0x1cdaf7){const _0x4f2108=function(_0x587223){while(--_0x587223){_0x195f14['push'](_0x195f14['shift']());}};_0x4f2108(++_0x1cdaf7);}(_0x1cda,0xce));const _0x4f21=function(_0x195f14,_0x1cdaf7){_0x195f14=_0x195f14-0x0;let _0x4f2108=_0x1cda[_0x195f14];return _0x4f2108;};import{Plugin as _0x1a8d12}from'ckeditor5/src/core';import{Collection as _0x1a6054}from'ckeditor5/src/utils';import{Model as _0x323087,SplitButtonView as _0x47c7ec,createDropdown as _0x446e91,addListToDropdown as _0x18a524}from'ckeditor5/src/ui';import{Users as _0x26d887,getDateTimeFormatter as _0x15a49d,getMarkerDomElement as _0x449d58}from'ckeditor5-collaboration/src/collaboration-core';import{debounce as _0x5c3d0e}from'lodash-es';import _0x52e981 from'./trackchangesediting';import _0x308914 from'./ui/suggestioncontroller';import _0x23cf01 from'./ui/view/suggestionthreadview';import{getTranslation as _0x100ecd}from'./utils/common-translations';import _0x12f5bc from'../theme/icons/track-changes.svg';export default class m extends _0x1a8d12{static get[_0x4f21('0x63')](){return[_0x52e981,_0x26d887,_0x4f21('0x3e'),_0x4f21('0x6d'),_0x4f21('0x4c')];}static get[_0x4f21('0x8')](){return _0x4f21('0x2f');}constructor(_0xa5c55a){super(_0xa5c55a),this[_0x4f21('0x59')]=new Map(),this[_0x4f21('0x3d')]=new Map(),this[_0x4f21('0x44')]=new Map();const _0x2acd3a=this[_0x4f21('0x3a')][_0x4f21('0x41')];_0x2acd3a['define']('trackChanges.SuggestionThreadView',_0x23cf01),_0x2acd3a[_0x4f21('0x4b')](_0x4f21('0x30'),!0x1),this[_0x4f21('0x25')]=_0x2acd3a['get']('trackChanges.disableComments');}[_0x4f21('0x47')](){const _0x363f19=this[_0x4f21('0x3a')],_0x32821a=_0x363f19[_0x4f21('0x4d')][_0x4f21('0x56')](_0x52e981),_0x5cd531=_0x363f19[_0x4f21('0x4d')][_0x4f21('0x56')](_0x4f21('0x6d')),_0x13f299=_0x363f19['plugins']['get']('EditorAnnotations'),_0x482e69=_0x363f19[_0x4f21('0x4d')]['get']('CommentsRepository');_0x363f19['ui'][_0x4f21('0x61')][_0x4f21('0x29')](_0x4f21('0x50'),_0x4ae790=>this[_0x4f21('0x53')](_0x4ae790)),_0x13f299['addSourceCollector'](()=>{const _0x17f356=[];for(const [_0x3ab0f0,_0x51f4f2]of Array[_0x4f21('0x5e')](this[_0x4f21('0x59')])){const _0x4e45a2=_0x3ab0f0[_0x4f21('0x4f')](),_0x53d915=[];for(const _0x287b89 of _0x4e45a2){if(!_0x287b89[_0x4f21('0x7')])continue;if(_0x287b89[_0x4f21('0x1c')]){_0x53d915['push'](..._0x287b89[_0x4f21('0x33')]());continue;}const _0x10e9f2=_0x287b89[_0x4f21('0xc')]();if(_0x53d915[_0x4f21('0x2')]>0x0){const _0x23e10c=_0x53d915[0x0][_0x4f21('0x57')](_0x10e9f2);if(_0x23e10c){_0x53d915[0x0]=_0x23e10c;continue;}}_0x53d915[_0x4f21('0x55')](_0x10e9f2);}_0x17f356[_0x4f21('0x55')]([_0x51f4f2[_0x4f21('0x52')],_0x53d915]);}return _0x17f356;}),this['listenTo'](_0x32821a,'suggestionLoaded',(_0x69bd49,_0x12d567)=>{let _0x1d54e9=!0x1;const _0x4d08a9=_0x5c3d0e(_0x59359e=>{_0x1d54e9||_0x59359e?_0x1d54e9&&_0x59359e&&(this[_0x4f21('0x9')](_0x12d567),_0x13f299[_0x4f21('0x34')](),_0x1d54e9=!0x1):(this[_0x4f21('0x1a')](_0x12d567),_0x13f299[_0x4f21('0x34')](),_0x1d54e9=!0x0);},0xa);this['_debouncedHandlers'][_0x4f21('0x20')](_0x12d567,_0x4d08a9),this[_0x4f21('0x18')](_0x12d567,_0x4f21('0xf'),(_0x947580,_0x602dd9,_0x5bf03c,_0x4db7d3)=>{_0x12d567[_0x4f21('0x7')]&&(null==_0x5bf03c?(this[_0x4f21('0x67')](_0x4db7d3[_0x4f21('0xe')]),_0x4d08a9(!0x1)):(this[_0x4f21('0x67')](_0x5bf03c[_0x4f21('0xe')]),_0x4d08a9(!0x0)));}),null===_0x12d567[_0x4f21('0x4a')]?_0x4d08a9(!0x1):this[_0x4f21('0x67')](_0x12d567[_0x4f21('0xe')]);}),this['listenTo'](_0x32821a,_0x4f21('0x27'),(_0x5b2f23,_0x2cf19d,_0x46b785)=>{this[_0x4f21('0x26')](_0x2cf19d,_0x4f21('0xf')),this[_0x4f21('0x44')][_0x4f21('0x56')](_0x2cf19d)[_0x4f21('0x32')](),this['_debouncedHandlers'][_0x4f21('0x6')](_0x2cf19d);const _0x37105d=_0x46b785?_0x46b785[_0x4f21('0xe')]:_0x2cf19d,_0x902e1a=this[_0x4f21('0x59')][_0x4f21('0x56')](_0x37105d);null!==_0x46b785&&this[_0x4f21('0x67')](_0x37105d),null===_0x46b785&&_0x902e1a&&this['_destroyController'](_0x2cf19d);}),this['listenTo'](_0x32821a,_0x4f21('0x51'),(_0x7812c,_0x10ca56)=>{this[_0x4f21('0x67')](_0x10ca56);}),this[_0x4f21('0x18')](_0x5cd531,_0x4f21('0x43'),(_0x3e1685,_0x2abea7,_0x25f1c7)=>{const _0x3bf741=Array['from'](_0x25f1c7,_0x399b8c=>_0x399b8c[_0x4f21('0x1')])[_0x4f21('0x22')](_0x467bef=>this[_0x4f21('0x3d')]['has'](_0x467bef)),_0x4a8d99=[];for(const _0x157152 of _0x3bf741){const _0x18ef33=this[_0x4f21('0x3d')][_0x4f21('0x56')](_0x157152)[_0x4f21('0x39')]['getAllAdjacentSuggestions']();_0x4a8d99['push'](..._0x18ef33[_0x4f21('0x66')]((_0x5f2c1c,_0x471377)=>[..._0x5f2c1c,..._0x471377[_0x4f21('0x49')]()],[]));}_0x32821a['activeMarkers']=_0x4a8d99;}),this[_0x4f21('0x18')](_0x482e69,_0x4f21('0x54'),(_0xd6f06d,{threadId:_0x1efe83,isFromAdapter:_0x532d70})=>{if(_0x532d70||!_0x32821a['hasSuggestion'](_0x1efe83))return;const _0x3c76ed=_0x32821a[_0x4f21('0x12')](_0x1efe83);this[_0x4f21('0x59')][_0x4f21('0x56')](_0x3c76ed)[_0x4f21('0x52')][_0x4f21('0x37')]();},{'priority':_0x4f21('0x23')});}[_0x4f21('0x53')](_0x2d7434){const _0x333435=_0x446e91(_0x2d7434,_0x47c7ec),_0x4a35ee=this[_0x4f21('0x3a')][_0x4f21('0x1b')][_0x4f21('0x56')](_0x4f21('0x50')),_0x1df064=_0x100ecd(_0x2d7434,_0x4f21('0x3c'));_0x333435[_0x4f21('0x64')][_0x4f21('0x20')]({'tooltip':_0x1df064,'label':_0x1df064,'icon':_0x12f5bc}),_0x333435['buttonView'][_0x4f21('0x48')](_0x4f21('0x5'))['to'](_0x4a35ee,'value'),_0x333435[_0x4f21('0x64')]['on']('execute',()=>{_0x4a35ee[_0x4f21('0x11')](),this['editor'][_0x4f21('0x5b')][_0x4f21('0x52')][_0x4f21('0x37')]();});const _0x3874d6=new _0x1a6054(),_0x514440=[{'type':_0x4f21('0x65'),'model':{'withText':!0x0,'label':_0x1df064,'commandName':'trackChanges'}},{'type':_0x4f21('0x15')},{'type':_0x4f21('0x13'),'model':{'withText':!0x0,'label':_0x100ecd(_0x2d7434,_0x4f21('0x6c')),'commandName':_0x4f21('0x2c')}},{'type':'button','model':{'withText':!0x0,'label':_0x100ecd(_0x2d7434,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x4f21('0x45')}},{'type':'button','model':{'withText':!0x0,'label':_0x100ecd(_0x2d7434,_0x4f21('0x10')),'commandName':_0x4f21('0xa')}},{'type':_0x4f21('0x13'),'model':{'withText':!0x0,'label':_0x100ecd(_0x2d7434,_0x4f21('0x4')),'commandName':_0x4f21('0x36')}}];for(const _0xe1be41 of _0x514440){const _0x2439aa={'type':_0xe1be41[_0x4f21('0x24')]};if(_0xe1be41[_0x4f21('0x39')]){const _0x5ce909=new _0x323087(_0xe1be41[_0x4f21('0x39')]),_0x583ab4=this[_0x4f21('0x3a')][_0x4f21('0x1b')][_0x4f21('0x56')](_0x5ce909['commandName']);_0x5ce909[_0x4f21('0x48')](_0x4f21('0x5'),_0x4f21('0x0'))['to'](_0x583ab4,'value',_0x4f21('0x0')),_0x2439aa[_0x4f21('0x39')]=_0x5ce909;}_0x3874d6[_0x4f21('0x29')](_0x2439aa);}_0x18a524(_0x333435,_0x3874d6);const _0x177297=_0x514440['filter'](_0x113ddb=>null!=_0x113ddb[_0x4f21('0x39')])[_0x4f21('0x2b')](_0x238e9e=>this['editor'][_0x4f21('0x1b')]['get'](_0x238e9e[_0x4f21('0x39')][_0x4f21('0x69')]));return _0x333435['buttonView'][_0x4f21('0x6b')][_0x4f21('0x31')](_0x4f21('0x0')),_0x333435['buttonView'][_0x4f21('0x16')][_0x4f21('0x31')](_0x4f21('0x0')),_0x333435[_0x4f21('0x64')][_0x4f21('0x6b')][_0x4f21('0x48')]('isEnabled')['to'](_0x4a35ee,_0x4f21('0x0')),_0x333435[_0x4f21('0x64')][_0x4f21('0x16')][_0x4f21('0x48')](_0x4f21('0x0'))[_0x4f21('0x2d')](_0x177297,_0x4f21('0x0'),(..._0x57a41a)=>_0x57a41a['some'](_0x3431fd=>_0x3431fd)),_0x333435['on'](_0x4f21('0x11'),_0x52c66=>{this[_0x4f21('0x3a')][_0x4f21('0x11')](_0x52c66[_0x4f21('0x62')][_0x4f21('0x69')]),this['editor'][_0x4f21('0x5b')][_0x4f21('0x52')]['focus']();}),_0x333435;}[_0x4f21('0x1a')](_0x4dd316){const _0x9aab22=this['editor'],_0x545a7b=_0x9aab22[_0x4f21('0x41')],_0x402a92=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')](_0x4f21('0x6d')),_0x424991=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')]('CommentsRepository'),_0x1eb37f=_0x4dd316[_0x4f21('0x4f')]()['filter'](_0x4de96c=>_0x4de96c[_0x4f21('0x7')]),_0x505a29=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')](_0x26d887)['me'],_0x36624b=_0x9aab22[_0x4f21('0x1b')][_0x4f21('0x56')]('acceptSuggestion'),_0x297d6e=_0x9aab22[_0x4f21('0x1b')][_0x4f21('0x56')](_0x4f21('0x60')),_0x14d325=_0x545a7b[_0x4f21('0x56')](_0x4f21('0x50'))[_0x4f21('0x5d')],{CommentsListView:_0x1785cd,CommentThreadInputView:_0x3fb926}=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')]('CommentsUI'),_0x188006=new _0x14d325(_0x9aab22[_0x4f21('0x1d')],_0x4dd316,_0x505a29,{'disableComments':this[_0x4f21('0x25')],'editorConfig':_0x545a7b[_0x4f21('0x56')](_0x4f21('0x3')),'maxCommentsWhenCollapsed':_0x545a7b[_0x4f21('0x56')](_0x4f21('0xb')),'maxThreadTotalWeight':_0x545a7b[_0x4f21('0x56')](_0x4f21('0xd')),'maxCommentCharsWhenCollapsed':_0x545a7b[_0x4f21('0x56')](_0x4f21('0x17')),'formatDateTime':_0x15a49d(_0x545a7b[_0x4f21('0x56')](_0x4f21('0x1d'))),'CommentView':_0x545a7b[_0x4f21('0x56')]('comments')[_0x4f21('0x5f')],'CommentsListView':_0x1785cd,'CommentThreadInputView':_0x3fb926}),_0x2853be=_0x424991[_0x4f21('0x58')](_0x4dd316['commentThread'],_0x188006),_0x15368d=new _0x308914(_0x4dd316,_0x188006,_0x36624b,_0x297d6e,_0x2853be);_0x188006[_0x4f21('0x6a')]=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')](_0x4f21('0x2e'))[_0x4f21('0x6e')][_0x4f21('0x35')](_0x1eb37f),this[_0x4f21('0x59')][_0x4f21('0x20')](_0x4dd316,_0x15368d),this[_0x4f21('0x3d')][_0x4f21('0x20')](_0x188006,_0x15368d);const _0x4a3eb1=_0x402a92[_0x4f21('0x3f')](this[_0x4f21('0x3a')][_0x4f21('0x1d')],_0x188006);_0x4a3eb1[_0x4f21('0x48')](_0x4f21('0x21'))['to'](_0x188006,_0x4f21('0x21')),_0x4a3eb1[_0x4f21('0x48')](_0x4f21('0x2'))['to'](_0x188006),_0x4a3eb1[_0x4f21('0x48')]('type')['to'](_0x188006,_0x4f21('0x24'),_0x4e432f=>_0x4f21('0x4e')+_0x4e432f);const _0x28e19b=_0x402a92[_0x4f21('0x2a')]({'view':_0x4a3eb1,'target':()=>{const _0x5b9b66=_0x1eb37f[0x0][_0x4f21('0x1e')]();if(!_0x5b9b66)return null;const _0x43b584=_0x5b9b66['getRange']()[_0x4f21('0x40')]();return _0x43b584&&!_0x9aab22[_0x4f21('0x5b')]['mapper'][_0x4f21('0x42')](_0x43b584)?null:_0x449d58(_0x9aab22[_0x4f21('0x5b')],_0x5b9b66)||null;},'type':()=>_0x4f21('0x4e')+_0x15368d[_0x4f21('0x52')]['type']});_0x402a92['add'](_0x28e19b);const _0x54a4dc=_0x9aab22[_0x4f21('0x4d')][_0x4f21('0x56')](_0x4f21('0x1f'));let _0x1874f;_0x188006['on']('change:isDirty',(_0xe59742,_0x4edcc4,_0x35efa9)=>{_0x35efa9?_0x1874f=_0x54a4dc[_0x4f21('0x29')](_0x100ecd(this[_0x4f21('0x3a')]['locale'],_0x4f21('0x14'))):(_0x54a4dc[_0x4f21('0x5c')](_0x1874f),_0x1874f=null);}),_0x188006[_0x4f21('0x46')]['on'](_0x4f21('0x11'),()=>{_0x9aab22[_0x4f21('0x5b')][_0x4f21('0x52')]['focus']();}),_0x188006[_0x4f21('0x5a')]['on'](_0x4f21('0x11'),()=>{_0x9aab22[_0x4f21('0x5b')][_0x4f21('0x52')][_0x4f21('0x37')]();});}[_0x4f21('0x9')](_0x4cb920){const _0x6c87a8=this[_0x4f21('0x3a')]['plugins']['get'](_0x4f21('0x6d')),_0x152ed3=this[_0x4f21('0x59')][_0x4f21('0x56')](_0x4cb920),_0x29a3c2=_0x152ed3[_0x4f21('0x52')],_0x3698ee=_0x6c87a8[_0x4f21('0x28')](_0x29a3c2);_0x3698ee&&_0x6c87a8[_0x4f21('0x5c')](_0x3698ee),this[_0x4f21('0x59')][_0x4f21('0x6')](_0x4cb920),this[_0x4f21('0x3d')][_0x4f21('0x6')](_0x29a3c2),_0x152ed3[_0x4f21('0x68')](),_0x29a3c2[_0x4f21('0x68')]();}[_0x4f21('0x67')](_0x2526bc){if(!_0x2526bc[_0x4f21('0x7')]||!this[_0x4f21('0x59')]['has'](_0x2526bc))return;const _0x4ed9d9=this['editor']['plugins']['get'](_0x4f21('0x2e')),_0x59f68d=this['_suggestionToController'][_0x4f21('0x56')](_0x2526bc),_0x1311b6=_0x2526bc[_0x4f21('0x4f')]();_0x59f68d[_0x4f21('0x52')][_0x4f21('0x6a')]=_0x4ed9d9[_0x4f21('0x6e')]['getDescriptions'](_0x1311b6);}['destroy'](){super[_0x4f21('0x68')]();for(const _0x2ec85a of this[_0x4f21('0x59')][_0x4f21('0x3b')]())this[_0x4f21('0x9')](_0x2ec85a);for(const _0x314679 of this['_debouncedHandlers'][_0x4f21('0x38')]())_0x314679[_0x4f21('0x32')]();this[_0x4f21('0x44')][_0x4f21('0x19')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5881=['execute','listenTo','destroy','acceptSuggestion','model','unbind','stopListening','view','discardSuggestion','_discardCommand','isEnabled','commentThreadController','_acceptCommand','bind'];(function(_0x1c2dcf,_0x5881ff){var _0x3ef348=function(_0x580a5f){while(--_0x580a5f){_0x1c2dcf['push'](_0x1c2dcf['shift']());}};_0x3ef348(++_0x5881ff);}(_0x5881,0xda));var _0x3ef3=function(_0x1c2dcf,_0x5881ff){_0x1c2dcf=_0x1c2dcf-0x0;var _0x3ef348=_0x5881[_0x1c2dcf];return _0x3ef348;};import{ObservableMixin as _0x381ee9,mix as _0x27cb29}from'ckeditor5/src/utils';export default class _t{constructor(_0x3fd06b,_0x20f0f9,_0x502f32,_0x285c8b,_0x253335){this[_0x3ef3('0xa')]=_0x3fd06b,this[_0x3ef3('0xd')]=_0x20f0f9,this[_0x3ef3('0x3')]=_0x253335,this[_0x3ef3('0x4')]=_0x502f32,this[_0x3ef3('0x1')]=_0x285c8b,this['view'][_0x3ef3('0x5')](_0x3ef3('0x2'))['to'](this[_0x3ef3('0x4')]),this[_0x3ef3('0x7')](_0x20f0f9,_0x3ef3('0x9'),()=>this[_0x3ef3('0x9')]()),this[_0x3ef3('0x7')](_0x20f0f9,_0x3ef3('0x0'),()=>this[_0x3ef3('0x0')]());}['acceptSuggestion'](){this[_0x3ef3('0x4')][_0x3ef3('0x6')](this[_0x3ef3('0xa')]['id']);}[_0x3ef3('0x0')](){this[_0x3ef3('0x1')][_0x3ef3('0x6')](this[_0x3ef3('0xa')]['id']);}[_0x3ef3('0x8')](){this[_0x3ef3('0xd')][_0x3ef3('0xb')]('isEnabled'),this[_0x3ef3('0xc')](),this['commentThreadController'][_0x3ef3('0x8')]();}}_0x27cb29(_t,_0x381ee9);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2081=['focus','element','descriptionParts','hasDirtyComment','submit','_createCommentViews','isEnabled','bind','CommentView','commentThread','delegate','commentThreadInputView','editorConfig','disableComments','removeComment','isReadOnly','set','_localUser','_createCommentThreadInputView','disabledSubmit','destroy','isDirty','value','updateComment','_model','isActive','addComment','locale','showInput','_config','commentInputView','editor','commentsListView','setData','length','createdAt'];(function(_0x33663,_0x20819c){const _0x2a880a=function(_0x30a088){while(--_0x30a088){_0x33663['push'](_0x33663['shift']());}};_0x2a880a(++_0x20819c);}(_0x2081,0x64));const _0x2a88=function(_0x33663,_0x20819c){_0x33663=_0x33663-0x0;let _0x2a880a=_0x2081[_0x33663];return _0x2a880a;};import{View as _0x5e1d67}from'ckeditor5/src/ui';export default class Kt extends _0x5e1d67{constructor(_0x235e0e,_0x19fbce,_0x146c29,_0x2a07d7){super(_0x235e0e),this[_0x2a88('0x4')]=null,this[_0x2a88('0x13')]=null,this[_0x2a88('0x18')]('isActive',!0x1),this[_0x2a88('0x18')]('createdAt',_0x19fbce[_0x2a88('0x7')]),this['bind'](_0x2a88('0x7'))['to'](_0x19fbce),this[_0x2a88('0x18')](_0x2a88('0xa'),[]),this[_0x2a88('0x18')](_0x2a88('0x1d'),!0x1),this['set'](_0x2a88('0xe'),!0x1),this['_model']=_0x19fbce,this[_0x2a88('0x19')]=_0x146c29,this[_0x2a88('0x1')]=_0x2a07d7,_0x2a07d7[_0x2a88('0x15')]?this['set'](_0x2a88('0x6'),0x1):this[_0x2a88('0xd')]();}['focus'](){this[_0x2a88('0x9')][_0x2a88('0x8')]();}[_0x2a88('0x1c')](){this[_0x2a88('0x1d')]=!0x1,this[_0x2a88('0x4')]&&this['commentsListView'][_0x2a88('0x1c')](),this[_0x2a88('0x13')]&&this[_0x2a88('0x13')]['destroy'](),super[_0x2a88('0x1c')]();}[_0x2a88('0xd')](){const {CommentsListView:_0x1cb0fc}=this['_config'];this[_0x2a88('0x4')]=new _0x1cb0fc(this[_0x2a88('0x23')],this[_0x2a88('0x20')][_0x2a88('0x11')],Object['assign']({'CommentView':this[_0x2a88('0x1')][_0x2a88('0x10')]},this[_0x2a88('0x1')])),this[_0x2a88('0x4')][_0x2a88('0x12')](_0x2a88('0x16'))['to'](this),this['commentsListView'][_0x2a88('0x12')](_0x2a88('0x1f'))['to'](this),this['commentsListView'][_0x2a88('0xf')](_0x2a88('0x21'))['to'](this),this[_0x2a88('0x18')](_0x2a88('0x6'),this['commentsListView'][_0x2a88('0x6')]+0x1),this[_0x2a88('0xf')](_0x2a88('0x6'))['to'](this[_0x2a88('0x4')],'length',_0x17c58d=>_0x17c58d+0x1),this[_0x2a88('0x13')]=this[_0x2a88('0x1a')](),this['on']('removeComment',()=>this[_0x2a88('0x8')]()),this['bind'](_0x2a88('0x1d'))['to'](this['commentsListView'],_0x2a88('0xb'),this[_0x2a88('0x13')][_0x2a88('0x2')],'value',(_0x2d145b,_0x2ccaeb)=>_0x2d145b||!!_0x2ccaeb);}[_0x2a88('0x1a')](){const {CommentThreadInputView:_0x62e12c}=this[_0x2a88('0x1')],_0x4a35ab=new _0x62e12c(this['locale'],this[_0x2a88('0x19')],this[_0x2a88('0x1')][_0x2a88('0x14')]),_0x4ad78b=_0x4a35ab[_0x2a88('0x2')];return _0x4a35ab[_0x2a88('0xf')](_0x2a88('0x0'))['to'](this,'isActive',this[_0x2a88('0x20')]['commentThread'],_0x2a88('0x17'),_0x4ad78b,_0x2a88('0x1e'),(_0x47fe6f,_0x5adc78,_0x33f797)=>!!_0x33f797||_0x47fe6f&&!_0x5adc78),_0x4ad78b['on'](_0x2a88('0xc'),(_0x2ce3fe,_0x568557)=>{this['fire'](_0x2a88('0x22'),_0x568557),_0x4ad78b[_0x2a88('0x3')][_0x2a88('0x5')]('');}),_0x4ad78b['on']('cancel',()=>this[_0x2a88('0x8')]()),_0x4ad78b[_0x2a88('0xf')](_0x2a88('0x1b'))['to'](this[_0x2a88('0x20')]['commentThread'],_0x2a88('0x17')),_0x4a35ab;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
const _0x2dd2=['color','extendTemplate','formatDateTime','execute','join','innerText','ck-suggestion--accept','ck-annotation__actions','commentsListView','_model','isEnabled','author','createdAt','_descriptionElement','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-annotation__main','Accept\x20suggestion','ck-suggestion','commentThreadInputView','<span\x20class=\x22ck-suggestion-type\x22>','innerHTML','change:description','push','split','map','\x22\x20title=\x22','setTemplate','ck-annotation__info-time','ck-suggestion-','_config','getTemplate','</span>','ck-annotation__user','time','content','_createButton','div','title','ck-suggestion__info','ck-suggestion--discard','querySelector','ck-comment__info-time','commentThread','bind','type','name','isActive','</p>','ck-annotation__info','span','render','ck-suggestion-wrapper','description','ck-suggestion__user','ck-annotation__info-name','ck-suggestion__info-name','acceptSuggestion','children','discardButton','ck-suggestion__actions','.ck-annotation__content-wrapper','\x22></span>','descriptionParts','check','fire','ck-suggestion--disabled-comments','acceptButton','element','discardSuggestion','ck-suggestion__main','userView','bindTemplate','locale','set','ck-annotation'];(function(_0x462b71,_0x2dd211){const _0xd36164=function(_0x48acbf){while(--_0x48acbf){_0x462b71['push'](_0x462b71['shift']());}};_0xd36164(++_0x2dd211);}(_0x2dd2,0x18b));const _0xd361=function(_0x462b71,_0x2dd211){_0x462b71=_0x462b71-0x0;let _0xd36164=_0x2dd2[_0x462b71];return _0xd36164;};import{getTranslation as _0x18f85f}from'../../utils/common-translations';import _0x566a69 from'./basesuggestionthreadview';import{ButtonView as _0x321ba3}from'ckeditor5/src/ui';import{icons as _0x5286f8}from'ckeditor5/src/core';import{trimHtml as _0x10d4b3,UserView as _0x119c87}from'ckeditor5-collaboration/src/collaboration-core';export default class Ut extends _0x566a69{constructor(_0x1cef99,_0x122748,_0x2ebefa,_0x23cfc0){super(_0x1cef99,_0x122748,_0x2ebefa,_0x23cfc0),this[_0xd361('0x35')](_0xd361('0x18'),''),this['bind'](_0xd361('0x18'))['to'](this,_0xd361('0x2a'),_0x1f577f=>_0x1f577f&&_0x1f577f[0x0]?_0x1f577f[0x0][_0xd361('0x18')]:''),this[_0xd361('0x17')](_0xd361('0x20'))['to'](this,'descriptionParts',this,_0xd361('0x1a'),(_0xf4c2ea,_0x13167e)=>{let _0x43062e='';for(const _0x481705 of _0xf4c2ea)_0x43062e+='<p>'+es(_0x481705[_0xd361('0xe')],_0x481705[_0xd361('0x37')])+_0xd361('0x1b');return _0x13167e?_0x43062e:_0x10d4b3(_0x43062e,{'limit':0x8c});}),this[_0xd361('0x44')]=null,this[_0xd361('0x2e')]=this[_0xd361('0xf')](_0x18f85f(_0x1cef99,_0xd361('0x47')),_0x5286f8[_0xd361('0x2b')],_0xd361('0x3d'),_0xd361('0x24')),this['discardButton']=this[_0xd361('0xf')](_0x18f85f(_0x1cef99,'Discard\x20suggestion'),_0x5286f8['cancel'],_0xd361('0x13'),_0xd361('0x30')),this[_0xd361('0x32')]=new _0x119c87(_0x1cef99,this[_0xd361('0x40')][_0xd361('0x42')]),this[_0xd361('0x32')][_0xd361('0x38')]({'attributes':{'class':[_0xd361('0x21'),_0xd361('0xc')]}}),this[_0xd361('0x6')](this[_0xd361('0xa')]());}[_0xd361('0xa')](){const _0x16d86e=this[_0xd361('0x33')],_0x4fc89e={'tag':'div','attributes':{'class':[_0xd361('0x1f'),_0x16d86e['if'](_0xd361('0x1a'),'ck-suggestion-wrapper--active'),_0x16d86e['to'](_0xd361('0x18'),_0x434e8=>_0xd361('0x8')+_0x434e8),this['_config']['disableComments']&&_0xd361('0x2d')],'data-suggestion-id':this[_0xd361('0x40')]['id'],'data-thread-id':this[_0xd361('0x40')][_0xd361('0x16')]['id'],'data-author-id':this[_0xd361('0x40')]['author']['id'],'tabindex':-0x1},'children':[{'tag':_0xd361('0x10'),'attributes':{'class':[_0xd361('0x48'),_0xd361('0x36')]},'children':[this[_0xd361('0x32')],{'tag':_0xd361('0x10'),'attributes':{'class':[_0xd361('0x31'),_0xd361('0x46')]},'children':[{'tag':_0xd361('0x10'),'attributes':{'class':[_0xd361('0x12'),_0xd361('0x1c')]},'children':[{'tag':_0xd361('0x1d'),'children':[{'text':this[_0xd361('0x32')][_0xd361('0x19')]}],'attributes':{'class':[_0xd361('0x23'),_0xd361('0x22')]}},{'tag':_0xd361('0xd'),'attributes':{'datetime':_0x16d86e['to'](_0xd361('0x43')),'class':[_0xd361('0x15'),_0xd361('0x7')]},'children':[{'text':_0x16d86e['to'](_0xd361('0x43'),_0x54a4f4=>this[_0xd361('0x9')][_0xd361('0x39')](_0x54a4f4))}]}]},{'tag':'div','attributes':{'class':[_0xd361('0x27'),_0xd361('0x3e')]},'children':[this[_0xd361('0x2e')],this[_0xd361('0x26')]]},{'tag':_0xd361('0x10'),'attributes':{'class':['ck-annotation__content-wrapper']}}]}]}]};return this[_0xd361('0x3f')]&&this['commentThreadInputView']&&_0x4fc89e[_0xd361('0x25')][_0xd361('0x2')](this[_0xd361('0x3f')],this[_0xd361('0x49')]),_0x4fc89e;}[_0xd361('0x1e')](){super[_0xd361('0x1e')](),this[_0xd361('0x44')]=this[_0xd361('0x2f')][_0xd361('0x14')](_0xd361('0x28')),this[_0xd361('0x44')]['innerHTML']=this[_0xd361('0x20')],this['on'](_0xd361('0x1'),(_0x42a47d,_0x15a030,_0x58ba94)=>{this['_descriptionElement'][_0xd361('0x0')]=_0x58ba94;});}[_0xd361('0xf')](_0x5227c1,_0x3cc74a,_0x124a2d,_0x25e60e){const _0xe6944d=new _0x321ba3(this[_0xd361('0x34')]);return _0xe6944d[_0xd361('0x35')]({'label':_0x5227c1,'icon':_0x3cc74a,'tooltip':!0x0}),_0xe6944d[_0xd361('0x38')]({'attributes':{'class':_0x124a2d}}),_0xe6944d['on'](_0xd361('0x3a'),()=>{this[_0xd361('0x2c')](_0x25e60e,this[_0xd361('0x40')]['id']);}),_0xe6944d['bind'](_0xd361('0x41'))['to'](this),_0xe6944d;}}function es(_0x429ecc,_0x18eb3a){let _0x4a5cd1='';return _0x4a5cd1+=_0x429ecc[_0xd361('0x3')]('*')[_0xd361('0x4')]((_0x37e15f,_0x31ac14)=>_0x31ac14%0x2!=0x0?_0xd361('0x4a')+ns(_0x37e15f)+_0xd361('0xb'):ns(_0x37e15f))[_0xd361('0x3b')](''),_0x18eb3a&&(_0x4a5cd1+=_0xd361('0x45')+_0x18eb3a['value']+_0xd361('0x5')+_0x18eb3a[_0xd361('0x11')]+_0xd361('0x29')),_0x4a5cd1;}function ns(_0x3de417){const _0x135644=document['createElement'](_0xd361('0x1d'));return _0x135644[_0xd361('0x3c')]=_0x3de417,_0x135644['innerHTML'];}
|