@ckeditor/ckeditor5-track-changes 35.2.0 → 35.2.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.
Files changed (59) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +4 -4
  3. package/src/commands/acceptallsuggestionscommand.js +1 -1
  4. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardallsuggestionscommand.js +1 -1
  7. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  8. package/src/commands/discardsuggestioncommand.js +1 -1
  9. package/src/commands/trackchangescommand.js +1 -1
  10. package/src/integrations/alignment.js +1 -1
  11. package/src/integrations/basicstyles.js +1 -1
  12. package/src/integrations/blockquote.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/font.js +1 -1
  19. package/src/integrations/heading.js +1 -1
  20. package/src/integrations/highlight.js +1 -1
  21. package/src/integrations/horizontalline.js +1 -1
  22. package/src/integrations/htmlembed.js +1 -1
  23. package/src/integrations/image.js +1 -1
  24. package/src/integrations/importword.js +1 -1
  25. package/src/integrations/indent.js +1 -1
  26. package/src/integrations/inputcommand.js +1 -1
  27. package/src/integrations/link.js +1 -1
  28. package/src/integrations/list.js +1 -1
  29. package/src/integrations/mediaembed.js +1 -1
  30. package/src/integrations/mention.js +1 -1
  31. package/src/integrations/pagebreak.js +1 -1
  32. package/src/integrations/paragraph.js +1 -1
  33. package/src/integrations/removeformat.js +1 -1
  34. package/src/integrations/restrictededitingmode.js +1 -1
  35. package/src/integrations/shiftentercommand.js +1 -1
  36. package/src/integrations/standardeditingmode.js +1 -1
  37. package/src/integrations/style.js +1 -1
  38. package/src/integrations/table.js +1 -1
  39. package/src/integrations/tableclipboard.js +1 -1
  40. package/src/integrations/tableheadings.js +1 -1
  41. package/src/integrations/tablemergesplit.js +1 -1
  42. package/src/integrations/title.js +1 -1
  43. package/src/integrations/undo.js +1 -1
  44. package/src/integrations/utils.js +1 -1
  45. package/src/suggestion.js +1 -1
  46. package/src/suggestiondescriptionfactory.js +1 -1
  47. package/src/trackchanges.js +1 -1
  48. package/src/trackchangesdata.js +1 -1
  49. package/src/trackchangesediting.js +1 -1
  50. package/src/trackchangesui.js +1 -1
  51. package/src/ui/suggestioncontroller.js +1 -1
  52. package/src/ui/view/basesuggestionthreadview.js +1 -1
  53. package/src/ui/view/suggestionthreadview.js +1 -1
  54. package/src/utils/common-translations.js +1 -1
  55. package/src/utils/getrangesofblockgroups.js +1 -1
  56. package/src/utils/getselectedsuggestions.js +1 -1
  57. package/src/utils/hashobject.js +1 -1
  58. package/src/utils/normalizedescription.js +1 -1
  59. package/src/utils/sortsuggestions.js +1 -1
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33d0=['onAttributesChange','filter','size','getMultiRangeId','removeMarkers','getMarkers','map','type','nodeBefore','addRange','onAccept','accept','author','getAllAdjacentSuggestions','get','_onDiscard','_onAttributesChange','nodeAfter','markers','_saved','next','hasComments','from','reduce','head','set','getRange','getFirstMarker','clear','toJSON','onDiscard','substr','suggestion:','removeMarker','data','isInContent','attributes','start','push','createdAt','discard','subType','_markerNames','getContainedElement','getItems','getMarkerNames','_model','add','_onAccept','isMultiRange','delete','isIntersecting','length','end','commentThread','getRanges','change','previous','decorate','addMarkerName'];(function(_0x5c09ae,_0x33d05d){const _0x1f76e1=function(_0x11bc4b){while(--_0x11bc4b){_0x5c09ae['push'](_0x5c09ae['shift']());}};_0x1f76e1(++_0x33d05d);}(_0x33d0,0x1e6));const _0x1f76=function(_0x5c09ae,_0x33d05d){_0x5c09ae=_0x5c09ae-0x0;let _0x1f76e1=_0x33d0[_0x5c09ae];return _0x1f76e1;};import{Element as _0x59bce1}from'ckeditor5/src/engine';import{ObservableMixin as _0xba55fc,mix as _0x24f273,uid as _0x8dd5c7}from'ckeditor5/src/utils';import{cloneDeep as _0x5973aa,isEqual as _0x14e8a7,set as _0x32294f,unset as _0x3bd18e}from'lodash-es';export default class o{constructor(_0x4ce0e0,_0x4811c1){this['id']=_0x4811c1['id'],this[_0x1f76('0x1')]=_0x4811c1[_0x1f76('0x1')],this['subType']=_0x4811c1[_0x1f76('0x23')]||null,this[_0x1f76('0x6')]=_0x4811c1['author'],this['externalAuthor']=_0x4811c1['externalAuthor'],this['data']=null,this[_0x1f76('0x28')]=_0x4ce0e0,this[_0x1f76('0x2a')]=_0x4811c1[_0x1f76('0x4')],this[_0x1f76('0x9')]=_0x4811c1[_0x1f76('0x18')],this[_0x1f76('0xa')]=_0x4811c1[_0x1f76('0x36')],this[_0x1f76('0x24')]=new Set(),this[_0x1f76('0x13')](_0x1f76('0x21'),null),this[_0x1f76('0x13')](_0x1f76('0x1e'),_0x4811c1[_0x1f76('0x1e')]||{}),this[_0x1f76('0x13')](_0x1f76('0x33'),null),this[_0x1f76('0x13')]('next',null),this[_0x1f76('0x13')](_0x1f76('0x30'),null),this[_0x1f76('0x13')](_0x1f76('0xd'),!0x1),this[_0x1f76('0x34')](_0x1f76('0x5')),this[_0x1f76('0x34')]('discard');}get['head'](){let _0x18ec00=this;for(;_0x18ec00['previous'];)_0x18ec00=_0x18ec00[_0x1f76('0x33')];return _0x18ec00;}get[_0x1f76('0xf')](){return!!this[_0x1f76('0x30')]&&this[_0x1f76('0x30')][_0x1f76('0x2e')]>0x0;}get[_0x1f76('0x2b')](){if(0x0==this['_markerNames'][_0x1f76('0x38')])return!0x1;return 0x6==Array[_0x1f76('0x10')](this[_0x1f76('0x24')])[0x0]['split'](':')['length'];}get[_0x1f76('0x1d')](){return null!==this[_0x1f76('0x15')]();}[_0x1f76('0x35')](_0x90ba48){this[_0x1f76('0x24')][_0x1f76('0x29')](_0x90ba48);}[_0x1f76('0x27')](){return Array[_0x1f76('0x10')](this[_0x1f76('0x24')]);}[_0x1f76('0x3b')](){return this[_0x1f76('0x27')]()[_0x1f76('0x0')](_0x1bc72e=>this[_0x1f76('0x28')][_0x1f76('0xc')][_0x1f76('0x8')](_0x1bc72e))[_0x1f76('0x37')](_0x5becb2=>_0x5becb2);}[_0x1f76('0x15')](){return this[_0x1f76('0x3b')]()[0x0]||null;}[_0x1f76('0x3a')](){this['_model']['change'](_0x22485d=>{for(const _0x1773b of this[_0x1f76('0x3b')]())_0x22485d[_0x1f76('0x1b')](_0x1773b);}),this['_markerNames'][_0x1f76('0x16')]();}[_0x1f76('0x1b')](_0x285b11){this[_0x1f76('0x28')]['change'](_0x5b9fbd=>{_0x5b9fbd[_0x1f76('0x1b')](_0x285b11);}),this[_0x1f76('0x24')][_0x1f76('0x2c')](_0x285b11);}[_0x1f76('0x3')](_0x278516){const _0x35471b=_0x1f76('0x1a')+this[_0x1f76('0x1')]+':'+this['subType']+':'+this['id']+':'+this[_0x1f76('0x6')]['id']+':'+o['getMultiRangeId']();this[_0x1f76('0x35')](_0x35471b),this[_0x1f76('0x28')][_0x1f76('0x32')](_0x2d8005=>{_0x2d8005['addMarker'](_0x35471b,{'range':_0x278516,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3d7414){for(const _0x22182e of this[_0x1f76('0x31')]())if(_0x22182e[_0x1f76('0x2d')](_0x3d7414))return!0x0;return!0x1;}[_0x1f76('0x31')](){return this[_0x1f76('0x3b')]()[_0x1f76('0x0')](_0x5bfdcd=>_0x5bfdcd[_0x1f76('0x14')]());}[_0x1f76('0x26')](){return this[_0x1f76('0x31')]()[_0x1f76('0x11')]((_0x595264,_0xa77b25)=>[..._0x595264,..._0xa77b25[_0x1f76('0x26')]()],[]);}['getFirstRange'](){return this[_0x1f76('0x15')]()[_0x1f76('0x14')]();}[_0x1f76('0x25')](){const _0x2336ac=this[_0x1f76('0x31')]();if(0x1!=_0x2336ac[_0x1f76('0x2e')])return null;const _0x3339ba=_0x2336ac[0x0],_0x367ca0=_0x3339ba[_0x1f76('0x1f')][_0x1f76('0xb')],_0x2ea147=_0x3339ba[_0x1f76('0x2f')][_0x1f76('0x2')];return _0x367ca0 instanceof _0x59bce1?_0x367ca0!=_0x2ea147?null:_0x367ca0:null;}[_0x1f76('0x5')](){this[_0x1f76('0x2a')](this[_0x1f76('0x31')](),this[_0x1f76('0x1c')],this[_0x1f76('0x1e')]),this['removeMarkers']();}[_0x1f76('0x22')](){this[_0x1f76('0x9')](this['getRanges'](),this[_0x1f76('0x1c')],this[_0x1f76('0x1e')]),this['removeMarkers']();}[_0x1f76('0x7')](){const _0x30401b=[];let _0x14ccf9=this[_0x1f76('0x12')];for(;_0x14ccf9;)_0x30401b[_0x1f76('0x20')](_0x14ccf9),_0x14ccf9=_0x14ccf9[_0x1f76('0xe')];return _0x30401b;}['setAttribute'](_0x22ab4c,_0x3b29f3){const _0x1d2d50=_0x5973aa(this[_0x1f76('0x1e')]);_0x32294f(_0x1d2d50,_0x22ab4c,_0x3b29f3),_0x14e8a7(_0x1d2d50,this[_0x1f76('0x1e')])||(this[_0x1f76('0x1e')]=_0x1d2d50,this['_onAttributesChange'](_0x1d2d50));}['removeAttribute'](_0x1447b8){const _0x382e17=_0x5973aa(this[_0x1f76('0x1e')]);_0x3bd18e(_0x382e17,_0x1447b8),_0x14e8a7(_0x382e17,this[_0x1f76('0x1e')])||(this[_0x1f76('0x1e')]=_0x382e17,this['_onAttributesChange'](this[_0x1f76('0x1e')]));}[_0x1f76('0x17')](){return{'id':this['id'],'type':this['subType']?this[_0x1f76('0x1')]+':'+this[_0x1f76('0x23')]:this['type'],'authorId':this[_0x1f76('0x6')]['id'],'createdAt':this[_0x1f76('0x21')],'hasComments':this['hasComments'],'data':this[_0x1f76('0x1c')],'attributes':this[_0x1f76('0x1e')]};}static[_0x1f76('0x39')](){return _0x8dd5c7()[_0x1f76('0x19')](0x1,0x5);}}_0x24f273(o,_0xba55fc);
23
+ const _0x3ceb=['author','clear','commentThread','nodeAfter','addMarker','onAccept','accept','type','getItems','head','length','_onDiscard','start','attributes','isInContent','getMarkerNames','_onAccept','getFirstMarker','getMarkers','_saved','_onAttributesChange','getAllAdjacentSuggestions','set','getRanges','split','push','filter','decorate','isIntersecting','getRange','end','getContainedElement','isIntersectingWithRange','size','subType','next','addMarkerName','getMultiRangeId','substr','_model','reduce','_markerNames','data','getFirstRange','from','nodeBefore','markers','map','previous','discard','isMultiRange','removeMarker','get','change','removeMarkers','toJSON','hasComments','removeAttribute'];(function(_0x18957d,_0x3ceb3d){const _0x4c8b56=function(_0x287675){while(--_0x287675){_0x18957d['push'](_0x18957d['shift']());}};_0x4c8b56(++_0x3ceb3d);}(_0x3ceb,0xcb));const _0x4c8b=function(_0x18957d,_0x3ceb3d){_0x18957d=_0x18957d-0x0;let _0x4c8b56=_0x3ceb[_0x18957d];return _0x4c8b56;};import{Element as _0x35b3df}from'ckeditor5/src/engine';import{ObservableMixin as _0x131e64,mix as _0x2e8f74,uid as _0x2cba40}from'ckeditor5/src/utils';import{cloneDeep as _0x357bcf,isEqual as _0x5305f2,set as _0x142d6c,unset as _0x3b3aa5}from'lodash-es';export default class o{constructor(_0x593ca9,_0x1365d0){this['id']=_0x1365d0['id'],this[_0x4c8b('0x24')]=_0x1365d0[_0x4c8b('0x24')],this[_0x4c8b('0x5')]=_0x1365d0[_0x4c8b('0x5')]||null,this[_0x4c8b('0x1d')]=_0x1365d0[_0x4c8b('0x1d')],this['externalAuthor']=_0x1365d0['externalAuthor'],this[_0x4c8b('0xd')]=null,this['_model']=_0x593ca9,this[_0x4c8b('0x2d')]=_0x1365d0[_0x4c8b('0x22')],this['_onDiscard']=_0x1365d0['onDiscard'],this[_0x4c8b('0x31')]=_0x1365d0['onAttributesChange'],this[_0x4c8b('0xc')]=new Set(),this[_0x4c8b('0x33')]('createdAt',null),this[_0x4c8b('0x33')](_0x4c8b('0x2a'),_0x1365d0[_0x4c8b('0x2a')]||{}),this[_0x4c8b('0x33')](_0x4c8b('0x13'),null),this[_0x4c8b('0x33')](_0x4c8b('0x6'),null),this[_0x4c8b('0x33')](_0x4c8b('0x1f'),null),this[_0x4c8b('0x33')](_0x4c8b('0x30'),!0x1),this[_0x4c8b('0x38')](_0x4c8b('0x23')),this[_0x4c8b('0x38')]('discard');}get[_0x4c8b('0x26')](){let _0xd27067=this;for(;_0xd27067[_0x4c8b('0x13')];)_0xd27067=_0xd27067['previous'];return _0xd27067;}get[_0x4c8b('0x1b')](){return!!this[_0x4c8b('0x1f')]&&this[_0x4c8b('0x1f')][_0x4c8b('0x27')]>0x0;}get[_0x4c8b('0x15')](){if(0x0==this[_0x4c8b('0xc')][_0x4c8b('0x4')])return!0x1;return 0x6==Array[_0x4c8b('0xf')](this[_0x4c8b('0xc')])[0x0][_0x4c8b('0x35')](':')[_0x4c8b('0x27')];}get[_0x4c8b('0x2b')](){return null!==this[_0x4c8b('0x2e')]();}[_0x4c8b('0x7')](_0x2e7383){this[_0x4c8b('0xc')]['add'](_0x2e7383);}[_0x4c8b('0x2c')](){return Array[_0x4c8b('0xf')](this[_0x4c8b('0xc')]);}['getMarkers'](){return this[_0x4c8b('0x2c')]()[_0x4c8b('0x12')](_0x416e2b=>this[_0x4c8b('0xa')][_0x4c8b('0x11')][_0x4c8b('0x17')](_0x416e2b))[_0x4c8b('0x37')](_0x1d4b46=>_0x1d4b46);}['getFirstMarker'](){return this[_0x4c8b('0x2f')]()[0x0]||null;}[_0x4c8b('0x19')](){this[_0x4c8b('0xa')]['change'](_0xcf604=>{for(const _0x13ac12 of this[_0x4c8b('0x2f')]())_0xcf604[_0x4c8b('0x16')](_0x13ac12);}),this['_markerNames'][_0x4c8b('0x1e')]();}[_0x4c8b('0x16')](_0x320d24){this[_0x4c8b('0xa')][_0x4c8b('0x18')](_0x2d528c=>{_0x2d528c[_0x4c8b('0x16')](_0x320d24);}),this[_0x4c8b('0xc')]['delete'](_0x320d24);}['addRange'](_0x4c4355){const _0x5e7335='suggestion:'+this[_0x4c8b('0x24')]+':'+this[_0x4c8b('0x5')]+':'+this['id']+':'+this[_0x4c8b('0x1d')]['id']+':'+o[_0x4c8b('0x8')]();this[_0x4c8b('0x7')](_0x5e7335),this[_0x4c8b('0xa')]['change'](_0x505086=>{_0x505086[_0x4c8b('0x21')](_0x5e7335,{'range':_0x4c4355,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4c8b('0x3')](_0x2bb845){for(const _0x3f5472 of this[_0x4c8b('0x34')]())if(_0x3f5472[_0x4c8b('0x39')](_0x2bb845))return!0x0;return!0x1;}[_0x4c8b('0x34')](){return this[_0x4c8b('0x2f')]()[_0x4c8b('0x12')](_0x1a264d=>_0x1a264d[_0x4c8b('0x0')]());}[_0x4c8b('0x25')](){return this[_0x4c8b('0x34')]()[_0x4c8b('0xb')]((_0x184797,_0x267bed)=>[..._0x184797,..._0x267bed[_0x4c8b('0x25')]()],[]);}[_0x4c8b('0xe')](){return this[_0x4c8b('0x2e')]()[_0x4c8b('0x0')]();}[_0x4c8b('0x2')](){const _0xf61b82=this['getRanges']();if(0x1!=_0xf61b82['length'])return null;const _0x3d8661=_0xf61b82[0x0],_0x3b4e15=_0x3d8661[_0x4c8b('0x29')][_0x4c8b('0x20')],_0x5e0f5e=_0x3d8661[_0x4c8b('0x1')][_0x4c8b('0x10')];return _0x3b4e15 instanceof _0x35b3df?_0x3b4e15!=_0x5e0f5e?null:_0x3b4e15:null;}[_0x4c8b('0x23')](){this[_0x4c8b('0x2d')](this[_0x4c8b('0x34')](),this[_0x4c8b('0xd')],this['attributes']),this['removeMarkers']();}[_0x4c8b('0x14')](){this[_0x4c8b('0x28')](this['getRanges'](),this[_0x4c8b('0xd')],this[_0x4c8b('0x2a')]),this[_0x4c8b('0x19')]();}[_0x4c8b('0x32')](){const _0x45d742=[];let _0x4ad1d6=this[_0x4c8b('0x26')];for(;_0x4ad1d6;)_0x45d742[_0x4c8b('0x36')](_0x4ad1d6),_0x4ad1d6=_0x4ad1d6[_0x4c8b('0x6')];return _0x45d742;}['setAttribute'](_0x458eeb,_0x187ed9){const _0x12c31a=_0x357bcf(this[_0x4c8b('0x2a')]);_0x142d6c(_0x12c31a,_0x458eeb,_0x187ed9),_0x5305f2(_0x12c31a,this['attributes'])||(this[_0x4c8b('0x2a')]=_0x12c31a,this[_0x4c8b('0x31')](_0x12c31a));}[_0x4c8b('0x1c')](_0x9d5f30){const _0x5809ca=_0x357bcf(this[_0x4c8b('0x2a')]);_0x3b3aa5(_0x5809ca,_0x9d5f30),_0x5305f2(_0x5809ca,this[_0x4c8b('0x2a')])||(this[_0x4c8b('0x2a')]=_0x5809ca,this['_onAttributesChange'](this['attributes']));}[_0x4c8b('0x1a')](){return{'id':this['id'],'type':this[_0x4c8b('0x5')]?this[_0x4c8b('0x24')]+':'+this['subType']:this['type'],'authorId':this['author']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this[_0x4c8b('0xd')],'attributes':this[_0x4c8b('0x2a')]};}static[_0x4c8b('0x8')](){return _0x2cba40()[_0x4c8b('0x9')](0x1,0x5);}}_0x2e8f74(o,_0x131e64);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12a3=['length','function','isEmpty','isObject','_addDescriptionItems','element','registerElementLabel','name','isEqual','indexOf','_customCallbacks','remove','Object','REPLACE_TEXT','*Remove:*\x20%0','getDescriptions','get','_resolveDescriptionItems','pop','skip','checkChild','getFirstRange','Container','*Split:*\x20%0','_locale','match','type','_schema','start','$text','deletion','quantity','$1\x20$2','getWalker','data','removeObject','*Insert:*\x20%0','textProxy','nextSibling','_itemLabels','insertion','addContainer','set','replace','*Merge:*\x20%0','getItemLabel','addObject','add','item','elementEnd','removeContainer','previousSibling','EmptyContainer','text','push','ELEMENT_SPACE'];(function(_0x179ad,_0x12a389){const _0x1a297b=function(_0x307f81){while(--_0x307f81){_0x179ad['push'](_0x179ad['shift']());}};_0x1a297b(++_0x12a389);}(_0x12a3,0x64));const _0x1a29=function(_0x179ad,_0x12a389){_0x179ad=_0x179ad-0x0;let _0x1a297b=_0x12a3[_0x179ad];return _0x1a297b;};import{getTranslation as _0x481a89}from'./utils/common-translations';export default class l{constructor(_0x209f01,_0x217d31){this[_0x1a29('0x16')]=[],this[_0x1a29('0x33')]=new Map(),this[_0x1a29('0x27')]=_0x209f01,this[_0x1a29('0x24')]=_0x217d31;}[_0x1a29('0x1b')](_0x43014b){const _0x5ef2a2=[];for(let _0x3ef025=0x0;_0x3ef025<_0x43014b[_0x1a29('0xc')];_0x3ef025++){const _0x187c3a=_0x43014b[_0x3ef025];if(!_0x187c3a['isInContent'])continue;let _0x47d282=!0x1;for(const _0x219d6c of this['_customCallbacks']){const _0x3ff5b8=_0x219d6c(_0x187c3a);if(_0x3ff5b8){_0x3ff5b8[_0x1a29('0x26')]&&_0x5ef2a2[_0x1a29('0xa')](_0x3ff5b8),_0x47d282=!0x0;break;}}if(!_0x47d282){this[_0x1a29('0x10')](_0x5ef2a2,_0x187c3a);const _0x1dd887=_0x43014b[_0x3ef025+0x1];if(_0x1dd887&&!_0x187c3a['getFirstRange']()['end'][_0x1a29('0x14')](_0x1dd887[_0x1a29('0x21')]()[_0x1a29('0x28')])){const _0x217cfb=_0x5ef2a2[_0x5ef2a2[_0x1a29('0xc')]-0x1],_0x219bd3='insertion'==_0x187c3a['type']?_0x1a29('0x3'):'remove';_0x217cfb&&_0x1a29('0x9')==_0x217cfb[_0x1a29('0x26')]&&(_0x217cfb[_0x219bd3]+='\x0a');}}}return this[_0x1a29('0x1d')](_0x5ef2a2);}['registerDescriptionCallback'](_0x51d80c){this[_0x1a29('0x16')][_0x1a29('0xa')](_0x51d80c);}[_0x1a29('0x12')](_0x234b85,_0x467095){this[_0x1a29('0x33')][_0x1a29('0x36')](_0x234b85,_0x467095);}[_0x1a29('0x1')](_0x5dab79,_0x21ef5a=0x1){const _0x472efd=this[_0x1a29('0x33')][_0x1a29('0x1c')](_0x5dab79)||_0x5dab79;return _0x1a29('0xd')==typeof _0x472efd?_0x472efd(_0x21ef5a):0x1!==_0x21ef5a?_0x21ef5a+'\x20'+_0x472efd+'s':''+_0x472efd;}[_0x1a29('0x10')](_0x39a0b7,_0xbda8e9){const _0x39eacd=_0xbda8e9[_0x1a29('0x21')]()[_0x1a29('0x2d')](),_0x5e6095=_0x1a29('0x34')==_0xbda8e9['type']?'add':'remove';for(const _0x421783 of _0x39eacd){const _0x4489cf=_0x421783[_0x1a29('0x4')],_0x38bdd2=_0x39a0b7[_0x39a0b7[_0x1a29('0xc')]-0x1];if(_0x4489cf['is'](_0x1a29('0x31')))_0x38bdd2&&_0x38bdd2['type'][_0x1a29('0x15')](_0x1a29('0x22'))>-0x1&&_0x39a0b7[_0x1a29('0x1e')](),_0x38bdd2&&'text'==_0x38bdd2[_0x1a29('0x26')]?_0x38bdd2[_0x5e6095]+=_0x4489cf[_0x1a29('0x2e')]:_0x39a0b7['push']({'type':_0x1a29('0x9'),'add':'add'==_0x5e6095?_0x4489cf[_0x1a29('0x2e')]:'','remove':_0x1a29('0x17')==_0x5e6095?_0x4489cf[_0x1a29('0x2e')]:''});else{if(this[_0x1a29('0x27')][_0x1a29('0xf')](_0x4489cf)){if(_0x38bdd2&&_0x38bdd2[_0x1a29('0x26')][_0x1a29('0x15')](_0x1a29('0x22'))>-0x1&&_0x39a0b7['pop'](),_0x1a29('0x5')==_0x421783[_0x1a29('0x26')])continue;_0x38bdd2&&_0x38bdd2[_0x1a29('0x26')]==_0x5e6095+_0x1a29('0x18')&&_0x38bdd2[_0x1a29('0x13')]==_0x4489cf[_0x1a29('0x13')]?_0x38bdd2[_0x1a29('0x2b')]++:_0x39a0b7[_0x1a29('0xa')]({'type':_0x5e6095+_0x1a29('0x18'),'name':_0x4489cf['name'],'quantity':0x1}),_0x39eacd[_0x1a29('0x1f')](_0x3b9a7e=>!(_0x1a29('0x5')==_0x3b9a7e['type']&&_0x3b9a7e[_0x1a29('0x4')]==_0x4489cf));}else{if(this[_0x1a29('0x27')][_0x1a29('0x20')](_0x4489cf,_0x1a29('0x29'))||_0x4489cf['is'](_0x1a29('0x11'),'softBreak')){if(_0x1a29('0x3')==_0x5e6095&&'elementStart'==_0x421783[_0x1a29('0x26')]||'remove'==_0x5e6095&&_0x1a29('0x5')==_0x421783[_0x1a29('0x26')])continue;if(_0x38bdd2&&-0x1==_0x38bdd2[_0x1a29('0x26')][_0x1a29('0x15')]('Container')){_0x1a29('0x9')==_0x38bdd2[_0x1a29('0x26')]&&(_0x38bdd2[_0x5e6095]+='\x0a');continue;}let _0x5708cf;if(_0x5708cf=_0x1a29('0x3')==_0x5e6095?_0x4489cf[_0x1a29('0x32')]&&!this[_0x1a29('0x27')][_0x1a29('0xf')](_0x4489cf['nextSibling'])?_0x4489cf['nextSibling']:null:_0x4489cf[_0x1a29('0x7')]&&!this[_0x1a29('0x27')][_0x1a29('0xf')](_0x4489cf['previousSibling'])?_0x4489cf[_0x1a29('0x7')]:null,_0x4489cf[_0x1a29('0xe')]||_0x5708cf&&_0x5708cf['isEmpty']){const _0x1d84d8=_0x5708cf&&_0x5708cf['isEmpty']?_0x5708cf[_0x1a29('0x13')]:_0x4489cf[_0x1a29('0x13')];_0x38bdd2&&_0x38bdd2[_0x1a29('0x26')]==_0x5e6095+'EmptyContainer'&&_0x38bdd2[_0x1a29('0x13')]==_0x1d84d8?_0x38bdd2[_0x1a29('0x2b')]++:_0x39a0b7[_0x1a29('0xa')]({'type':_0x5e6095+_0x1a29('0x8'),'name':_0x1d84d8,'quantity':0x1});}else _0x39a0b7[_0x1a29('0xa')]({'type':_0x5e6095+_0x1a29('0x22'),'name':_0x4489cf[_0x1a29('0x13')]});}}}}}[_0x1a29('0x1d')](_0x3bee44){const _0x225539=this[_0x1a29('0x24')],_0x53deac=[];for(const _0x338a1d of _0x3bee44){switch(_0x338a1d['type']){case _0x1a29('0x9'):if(_0x338a1d['add']=_0x338a1d[_0x1a29('0x3')][_0x1a29('0x37')](/(\S)\u000A+(\S)/g,_0x1a29('0x2c'))[_0x1a29('0x37')](/\u000A/g,''),_0x338a1d[_0x1a29('0x17')]=_0x338a1d[_0x1a29('0x17')][_0x1a29('0x37')](/(\S)\u000A+(\S)/g,_0x1a29('0x2c'))['replace'](/\u000A/g,''),''!=_0x338a1d[_0x1a29('0x3')]&&''!=_0x338a1d[_0x1a29('0x17')]){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x37'),'content':_0x481a89(_0x225539,_0x1a29('0x19'),['\x22'+_0x338a1d[_0x1a29('0x17')]+'\x22','\x22'+_0x338a1d[_0x1a29('0x3')]+'\x22'])});continue;}if(null!=_0x338a1d[_0x1a29('0x3')][_0x1a29('0x25')](/^ +$/)){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x34'),'content':_0x481a89(_0x225539,'*Insert:*\x20%0',_0x481a89(_0x225539,_0x1a29('0xb'),_0x338a1d[_0x1a29('0x3')][_0x1a29('0xc')]))});continue;}if(null!=_0x338a1d[_0x1a29('0x17')][_0x1a29('0x25')](/^ +$/)){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,_0x1a29('0x1a'),_0x481a89(_0x225539,_0x1a29('0xb'),_0x338a1d[_0x1a29('0x17')]['length']))});continue;}if(''!=_0x338a1d[_0x1a29('0x3')]){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x34'),'content':_0x481a89(_0x225539,_0x1a29('0x30'),'\x22'+_0x338a1d['add']+'\x22')});continue;}_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,'*Remove:*\x20%0','\x22'+_0x338a1d[_0x1a29('0x17')]+'\x22')});continue;case'addEmptyContainer':case _0x1a29('0x2'):_0x53deac['push']({'type':_0x1a29('0x34'),'content':_0x481a89(_0x225539,_0x1a29('0x30'),this[_0x1a29('0x1')](_0x338a1d[_0x1a29('0x13')],_0x338a1d[_0x1a29('0x2b')]))});continue;case'removeEmptyContainer':case _0x1a29('0x2f'):_0x53deac['push']({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,_0x1a29('0x1a'),this['getItemLabel'](_0x338a1d[_0x1a29('0x13')],_0x338a1d[_0x1a29('0x2b')]))});continue;case _0x1a29('0x35'):_0x53deac[_0x1a29('0xa')]({'type':'insertion','content':_0x481a89(_0x225539,_0x1a29('0x23'),this[_0x1a29('0x1')](_0x338a1d[_0x1a29('0x13')],_0x338a1d['quantity']))});continue;case _0x1a29('0x6'):_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,_0x1a29('0x0'),this[_0x1a29('0x1')](_0x338a1d[_0x1a29('0x13')],_0x338a1d['quantity']))});continue;}_0x53deac['push'](_0x338a1d);}return _0x53deac;}}
23
+ const _0x3eda=['insertion','registerElementLabel','data','_resolveDescriptionItems','*Remove:*\x20%0','_locale','softBreak','item','indexOf','isEqual','addObject','start','pop','isInContent','registerDescriptionCallback','removeObject','removeEmptyContainer','Container','nextSibling','isObject','ELEMENT_SPACE','text','elementEnd','length','deletion','_customCallbacks','removeContainer','_itemLabels','getDescriptions','*Insert:*\x20%0','getFirstRange','set','previousSibling','quantity','_schema','match','$1\x20$2','textProxy','add','remove','push','addEmptyContainer','elementStart','type','Object','*Split:*\x20%0','replace','addContainer','$text','_addDescriptionItems','function','name','end','isEmpty','getItemLabel'];(function(_0x20916c,_0x3eda56){const _0x44891b=function(_0x24426d){while(--_0x24426d){_0x20916c['push'](_0x20916c['shift']());}};_0x44891b(++_0x3eda56);}(_0x3eda,0xec));const _0x4489=function(_0x20916c,_0x3eda56){_0x20916c=_0x20916c-0x0;let _0x44891b=_0x3eda[_0x20916c];return _0x44891b;};import{getTranslation as _0x17a0b7}from'./utils/common-translations';export default class l{constructor(_0x2716a7,_0x1b0b2d){this['_customCallbacks']=[],this[_0x4489('0xb')]=new Map(),this[_0x4489('0x12')]=_0x2716a7,this[_0x4489('0x2c')]=_0x1b0b2d;}[_0x4489('0xc')](_0x4e39c1){const _0x432c3d=[];for(let _0x55459f=0x0;_0x55459f<_0x4e39c1[_0x4489('0x7')];_0x55459f++){const _0x1b8afd=_0x4e39c1[_0x55459f];if(!_0x1b8afd[_0x4489('0x34')])continue;let _0x48bb93=!0x1;for(const _0x1b731d of this[_0x4489('0x9')]){const _0x23fa7e=_0x1b731d(_0x1b8afd);if(_0x23fa7e){_0x23fa7e[_0x4489('0x1b')]&&_0x432c3d['push'](_0x23fa7e),_0x48bb93=!0x0;break;}}if(!_0x48bb93){this[_0x4489('0x21')](_0x432c3d,_0x1b8afd);const _0x33c38f=_0x4e39c1[_0x55459f+0x1];if(_0x33c38f&&!_0x1b8afd[_0x4489('0xe')]()[_0x4489('0x24')][_0x4489('0x30')](_0x33c38f[_0x4489('0xe')]()[_0x4489('0x32')])){const _0xa8552b=_0x432c3d[_0x432c3d['length']-0x1],_0x3c0ff3=_0x4489('0x27')==_0x1b8afd[_0x4489('0x1b')]?_0x4489('0x16'):_0x4489('0x17');_0xa8552b&&'text'==_0xa8552b[_0x4489('0x1b')]&&(_0xa8552b[_0x3c0ff3]+='\x0a');}}}return this[_0x4489('0x2a')](_0x432c3d);}[_0x4489('0x35')](_0x49f93f){this[_0x4489('0x9')][_0x4489('0x18')](_0x49f93f);}[_0x4489('0x28')](_0x31b191,_0xa28b35){this[_0x4489('0xb')][_0x4489('0xf')](_0x31b191,_0xa28b35);}[_0x4489('0x26')](_0x2667ff,_0x3be075=0x1){const _0x4d925a=this[_0x4489('0xb')]['get'](_0x2667ff)||_0x2667ff;return _0x4489('0x22')==typeof _0x4d925a?_0x4d925a(_0x3be075):0x1!==_0x3be075?_0x3be075+'\x20'+_0x4d925a+'s':''+_0x4d925a;}[_0x4489('0x21')](_0x5448e6,_0x16db9e){const _0x95c072=_0x16db9e[_0x4489('0xe')]()['getWalker'](),_0x277561=_0x4489('0x27')==_0x16db9e['type']?'add':_0x4489('0x17');for(const _0x12500b of _0x95c072){const _0x3bd28c=_0x12500b['item'],_0x410fed=_0x5448e6[_0x5448e6[_0x4489('0x7')]-0x1];if(_0x3bd28c['is'](_0x4489('0x15')))_0x410fed&&_0x410fed[_0x4489('0x1b')]['indexOf']('Container')>-0x1&&_0x5448e6[_0x4489('0x33')](),_0x410fed&&_0x4489('0x5')==_0x410fed[_0x4489('0x1b')]?_0x410fed[_0x277561]+=_0x3bd28c[_0x4489('0x29')]:_0x5448e6[_0x4489('0x18')]({'type':_0x4489('0x5'),'add':_0x4489('0x16')==_0x277561?_0x3bd28c[_0x4489('0x29')]:'','remove':_0x4489('0x17')==_0x277561?_0x3bd28c['data']:''});else{if(this['_schema'][_0x4489('0x3')](_0x3bd28c)){if(_0x410fed&&_0x410fed[_0x4489('0x1b')][_0x4489('0x2f')](_0x4489('0x1'))>-0x1&&_0x5448e6[_0x4489('0x33')](),_0x4489('0x6')==_0x12500b[_0x4489('0x1b')])continue;_0x410fed&&_0x410fed[_0x4489('0x1b')]==_0x277561+_0x4489('0x1c')&&_0x410fed[_0x4489('0x23')]==_0x3bd28c[_0x4489('0x23')]?_0x410fed[_0x4489('0x11')]++:_0x5448e6[_0x4489('0x18')]({'type':_0x277561+_0x4489('0x1c'),'name':_0x3bd28c['name'],'quantity':0x1}),_0x95c072['skip'](_0x40d0f2=>!('elementEnd'==_0x40d0f2[_0x4489('0x1b')]&&_0x40d0f2[_0x4489('0x2e')]==_0x3bd28c));}else{if(this['_schema']['checkChild'](_0x3bd28c,_0x4489('0x20'))||_0x3bd28c['is']('element',_0x4489('0x2d'))){if(_0x4489('0x16')==_0x277561&&_0x4489('0x1a')==_0x12500b['type']||_0x4489('0x17')==_0x277561&&'elementEnd'==_0x12500b[_0x4489('0x1b')])continue;if(_0x410fed&&-0x1==_0x410fed[_0x4489('0x1b')]['indexOf'](_0x4489('0x1'))){'text'==_0x410fed['type']&&(_0x410fed[_0x277561]+='\x0a');continue;}let _0x1a2e32;if(_0x1a2e32=_0x4489('0x16')==_0x277561?_0x3bd28c[_0x4489('0x2')]&&!this[_0x4489('0x12')]['isObject'](_0x3bd28c[_0x4489('0x2')])?_0x3bd28c[_0x4489('0x2')]:null:_0x3bd28c[_0x4489('0x10')]&&!this[_0x4489('0x12')][_0x4489('0x3')](_0x3bd28c[_0x4489('0x10')])?_0x3bd28c[_0x4489('0x10')]:null,_0x3bd28c[_0x4489('0x25')]||_0x1a2e32&&_0x1a2e32[_0x4489('0x25')]){const _0x27687f=_0x1a2e32&&_0x1a2e32['isEmpty']?_0x1a2e32[_0x4489('0x23')]:_0x3bd28c['name'];_0x410fed&&_0x410fed[_0x4489('0x1b')]==_0x277561+'EmptyContainer'&&_0x410fed['name']==_0x27687f?_0x410fed[_0x4489('0x11')]++:_0x5448e6['push']({'type':_0x277561+'EmptyContainer','name':_0x27687f,'quantity':0x1});}else _0x5448e6[_0x4489('0x18')]({'type':_0x277561+_0x4489('0x1'),'name':_0x3bd28c['name']});}}}}}[_0x4489('0x2a')](_0x53f08b){const _0x5cffb6=this[_0x4489('0x2c')],_0x20d486=[];for(const _0x474822 of _0x53f08b){switch(_0x474822[_0x4489('0x1b')]){case'text':if(_0x474822['add']=_0x474822[_0x4489('0x16')][_0x4489('0x1e')](/(\S)\u000A+(\S)/g,_0x4489('0x14'))['replace'](/\u000A/g,''),_0x474822['remove']=_0x474822[_0x4489('0x17')][_0x4489('0x1e')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x4489('0x1e')](/\u000A/g,''),''!=_0x474822[_0x4489('0x16')]&&''!=_0x474822[_0x4489('0x17')]){_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x1e'),'content':_0x17a0b7(_0x5cffb6,'REPLACE_TEXT',['\x22'+_0x474822[_0x4489('0x17')]+'\x22','\x22'+_0x474822[_0x4489('0x16')]+'\x22'])});continue;}if(null!=_0x474822[_0x4489('0x16')]['match'](/^ +$/)){_0x20d486['push']({'type':'insertion','content':_0x17a0b7(_0x5cffb6,'*Insert:*\x20%0',_0x17a0b7(_0x5cffb6,_0x4489('0x4'),_0x474822[_0x4489('0x16')][_0x4489('0x7')]))});continue;}if(null!=_0x474822[_0x4489('0x17')][_0x4489('0x13')](/^ +$/)){_0x20d486[_0x4489('0x18')]({'type':'deletion','content':_0x17a0b7(_0x5cffb6,_0x4489('0x2b'),_0x17a0b7(_0x5cffb6,_0x4489('0x4'),_0x474822[_0x4489('0x17')]['length']))});continue;}if(''!=_0x474822[_0x4489('0x16')]){_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x27'),'content':_0x17a0b7(_0x5cffb6,'*Insert:*\x20%0','\x22'+_0x474822[_0x4489('0x16')]+'\x22')});continue;}_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x8'),'content':_0x17a0b7(_0x5cffb6,_0x4489('0x2b'),'\x22'+_0x474822[_0x4489('0x17')]+'\x22')});continue;case _0x4489('0x19'):case _0x4489('0x31'):_0x20d486[_0x4489('0x18')]({'type':'insertion','content':_0x17a0b7(_0x5cffb6,_0x4489('0xd'),this[_0x4489('0x26')](_0x474822['name'],_0x474822[_0x4489('0x11')]))});continue;case _0x4489('0x0'):case _0x4489('0x36'):_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x8'),'content':_0x17a0b7(_0x5cffb6,_0x4489('0x2b'),this[_0x4489('0x26')](_0x474822[_0x4489('0x23')],_0x474822[_0x4489('0x11')]))});continue;case _0x4489('0x1f'):_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x27'),'content':_0x17a0b7(_0x5cffb6,_0x4489('0x1d'),this[_0x4489('0x26')](_0x474822[_0x4489('0x23')],_0x474822[_0x4489('0x11')]))});continue;case _0x4489('0xa'):_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x8'),'content':_0x17a0b7(_0x5cffb6,'*Merge:*\x20%0',this['getItemLabel'](_0x474822[_0x4489('0x23')],_0x474822['quantity']))});continue;}_0x20d486[_0x4489('0x18')](_0x474822);}return _0x20d486;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5b3f=['getSuggestion','getSuggestions','get','adapter','addSuggestionData','plugins','addSuggestion','editor'];(function(_0x5290c3,_0x5b3ff9){var _0x422991=function(_0x43d640){while(--_0x43d640){_0x5290c3['push'](_0x5290c3['shift']());}};_0x422991(++_0x5b3ff9);}(_0x5b3f,0x79));var _0x4229=function(_0x5290c3,_0x5b3ff9){_0x5290c3=_0x5290c3-0x0;var _0x422991=_0x5b3f[_0x5290c3];return _0x422991;};import{Plugin as _0x43b2a2}from'ckeditor5/src/core';import _0x16906c from'./trackchangesui';import _0x1acb2a from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0x43b2a2{static get['requires'](){return[_0x1acb2a,_0x16906c,'Comments'];}static get['pluginName'](){return'TrackChanges';}set[_0x4229('0x2')](_0x55311f){this[_0x4229('0x6')][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x2')]=_0x55311f;}get[_0x4229('0x2')](){return this[_0x4229('0x6')][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x2')];}[_0x4229('0x5')](_0x4d61cf){return this[_0x4229('0x6')][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x3')](_0x4d61cf);}[_0x4229('0x0')](_0x4b7d24){return this['editor'][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x0')](_0x4b7d24);}[_0x4229('0x7')](_0x7fc3e7){return this['editor'][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)['getSuggestion'](_0x7fc3e7);}}
23
+ var _0x54b1=['plugins','get','getSuggestions','addSuggestionData','editor','TrackChanges','pluginName','getSuggestion','adapter','addSuggestion'];(function(_0x256965,_0x54b157){var _0x34db0b=function(_0x526a54){while(--_0x526a54){_0x256965['push'](_0x256965['shift']());}};_0x34db0b(++_0x54b157);}(_0x54b1,0x101));var _0x34db=function(_0x256965,_0x54b157){_0x256965=_0x256965-0x0;var _0x34db0b=_0x54b1[_0x256965];return _0x34db0b;};import{Plugin as _0x12f294}from'ckeditor5/src/core';import _0x151fa1 from'./trackchangesui';import _0x4eae77 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0x12f294{static get['requires'](){return[_0x4eae77,_0x151fa1,'Comments'];}static get[_0x34db('0x9')](){return _0x34db('0x8');}set[_0x34db('0x1')](_0x17eff4){this[_0x34db('0x7')][_0x34db('0x3')][_0x34db('0x4')](_0x4eae77)[_0x34db('0x1')]=_0x17eff4;}get[_0x34db('0x1')](){return this['editor'][_0x34db('0x3')][_0x34db('0x4')](_0x4eae77)[_0x34db('0x1')];}[_0x34db('0x2')](_0x1dd4f8){return this[_0x34db('0x7')]['plugins'][_0x34db('0x4')](_0x4eae77)[_0x34db('0x6')](_0x1dd4f8);}['getSuggestions'](_0x94770f){return this[_0x34db('0x7')]['plugins'][_0x34db('0x4')](_0x4eae77)[_0x34db('0x5')](_0x94770f);}[_0x34db('0x0')](_0x1eb1b7){return this[_0x34db('0x7')]['plugins'][_0x34db('0x4')](_0x4eae77)[_0x34db('0x0')](_0x1eb1b7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4733=['trackChangesData.editorCreator','concat','editorCreator','discardAllSuggestions','createDocumentFragment','plugins','function','useAnonymousUser','every','users','string','toolbar','RealTimeCollaborativeComments','div','editor','names','TrackChangesDataGetter','destroy','create','addUser','createElement','includes','requires','from','data','name','document','add','filter','config','builtinPlugins','constructor','WordCount','find','RealTimeCollaborativeRevisionHistory','_adapter','pluginName','initialData','track-changes-data-invalid-editor-creator','execute','appendChild','end','RealTimeCollaborativeEditing','getUser','set','context','TrackChangesEditing','acceptAllSuggestions','define','map','model','getRootNames','init','trackChangesData','extraPlugins','CommentsRepository','Users','push','get','has'];(function(_0x490c54,_0x473359){const _0x324170=function(_0x5eef53){while(--_0x5eef53){_0x490c54['push'](_0x490c54['shift']());}};_0x324170(++_0x473359);}(_0x4733,0x197));const _0x3241=function(_0x490c54,_0x473359){_0x490c54=_0x490c54-0x0;let _0x324170=_0x4733[_0x490c54];return _0x324170;};import{Plugin as _0x5340a7}from'ckeditor5/src/core';import{CKEditorError as _0x4b9dfb}from'ckeditor5/src/utils';import _0x401f26 from'./trackchangesediting';const C=[_0x3241('0x32'),_0x3241('0x3a'),_0x3241('0x18')],k=[_0x3241('0x37'),_0x3241('0x19'),'RealTimeCollaborativeTrackChanges',_0x3241('0x2f'),'Autosave',_0x3241('0x2d')];export default class T extends _0x5340a7{static get[_0x3241('0x23')](){return[_0x401f26];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x28b474=this['editor'];if(_0x28b474[_0x3241('0x2a')][_0x3241('0x1')](_0x3241('0xd'),_0x9d44e8=>_0x28b474[_0x3241('0x2c')][_0x3241('0x1f')]('',_0x9d44e8)),_0x3241('0x13')!=typeof _0x28b474['config'][_0x3241('0xb')](_0x3241('0x6'))[_0x3241('0xf')])throw new _0x4b9dfb(_0x3241('0x33'));}['getDataWithAcceptedSuggestions'](_0x4b2c27){return v(this[_0x3241('0x1b')],!0x0,_0x4b2c27);}['getDataWithDiscardedSuggestions'](_0x48ccc9){return v(this[_0x3241('0x1b')],!0x1,_0x48ccc9);}}class D extends _0x5340a7{static get[_0x3241('0x31')](){return _0x3241('0x1d');}[_0x3241('0x5')](){this['result']=_0x3241('0x36'),this['editor'][_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x8'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this['editor']['plugins'][_0x3241('0xb')]('TrackChangesEditing')[_0x3241('0x30')]=null;}}async function v(_0x286e61,_0xb2631,_0x4c1150){const _0x2e33ee=function(_0x60b2a){const _0x40bdbb={};for(const _0x302e4f of _0x60b2a[_0x3241('0x2a')][_0x3241('0x1c')]())C['includes'](_0x302e4f)||(_0x40bdbb[_0x302e4f]=_0x60b2a[_0x3241('0x2a')][_0x3241('0xb')](_0x302e4f));const _0x2972bc=_0x60b2a['constructor'][_0x3241('0x2b')]||[],_0x3a4184=_0x40bdbb['extraPlugins']||[];delete _0x40bdbb[_0x3241('0x7')];const _0x428b74=_0x2972bc[_0x3241('0xe')](_0x40bdbb[_0x3241('0x12')])[_0x3241('0xe')](_0x3a4184)[_0x3241('0x2')](_0x4ff72e=>_0x3241('0x17')==typeof _0x4ff72e?_0x2972bc[_0x3241('0x2e')](_0x2acd7e=>_0x2acd7e[_0x3241('0x31')]==_0x4ff72e):_0x4ff72e),_0x2ac815=Array[_0x3241('0x24')](new Set(_0x428b74));return _0x40bdbb['plugins']=_0x2ac815[_0x3241('0x29')](_0x45aabb=>w(_0x45aabb,new Set())),_0x40bdbb[_0x3241('0x12')][_0x3241('0xa')](D),_0x40bdbb['plugins'][_0x3241('0xa')](_0x401f26),_0x40bdbb;}(_0x286e61),_0x40413b=document[_0x3241('0x11')](),_0x3c0443=_0x286e61[_0x3241('0x2a')][_0x3241('0xb')](_0x3241('0x6'))[_0x3241('0xf')],_0x1e8499=await _0x3c0443(_0x2e33ee,()=>function(_0x3d9fb0){const _0x1177fd=document[_0x3241('0x21')](_0x3241('0x1a'));return _0x3d9fb0[_0x3241('0x35')](_0x1177fd),_0x1177fd;}(_0x40413b));!function(_0x5a8efe,_0x5b15f0){const _0xf1489e=_0x5a8efe[_0x3241('0x3')][_0x3241('0x27')][_0x3241('0x4')]()['reduce']((_0x414b2f,_0x54c2a1)=>(_0x414b2f[_0x54c2a1]=_0x5a8efe[_0x3241('0x25')][_0x3241('0xb')]({'rootName':_0x54c2a1}),_0x414b2f),{}),_0x3eefd9=_0x5a8efe['plugins'][_0x3241('0xb')](_0x3241('0x9'))[_0x3241('0x16')][_0x3241('0x2')](_0x3545da=>({'id':_0x3545da['id']})),_0x694e8b=_0x5a8efe[_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x3b'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ae430=_0x5b15f0[_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x9')),_0x783264=_0x5b15f0[_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x3b'));for(const _0x92c269 of _0x3eefd9)_0x2ae430[_0x3241('0x38')](_0x92c269['id'])||_0x2ae430[_0x3241('0x20')](_0x92c269);_0x2ae430['me']||_0x2ae430[_0x3241('0x14')]();for(const _0x2304d0 of _0x694e8b)_0x783264['addSuggestionData'](_0x2304d0);_0x5b15f0[_0x3241('0x25')][_0x3241('0x39')](_0xf1489e);}(_0x286e61,_0x1e8499),_0x1e8499[_0x3241('0x34')](_0xb2631?_0x3241('0x0'):_0x3241('0x10'));const _0x2f3aca=_0x1e8499[_0x3241('0x25')][_0x3241('0xb')](_0x4c1150);return await _0x1e8499[_0x3241('0x1e')](),_0x2f3aca;}function w(_0x1c88e7,_0x473665){if(_0x473665[_0x3241('0xc')](_0x1c88e7))return!0x0;_0x473665[_0x3241('0x28')](_0x1c88e7);const _0x3a1a7b=_0x3241('0x13')==typeof _0x1c88e7?_0x1c88e7[_0x3241('0x31')]||_0x1c88e7[_0x3241('0x26')]:_0x1c88e7;return(!_0x3a1a7b||!k[_0x3241('0x22')](_0x3a1a7b))&&(!_0x1c88e7[_0x3241('0x23')]||_0x1c88e7[_0x3241('0x23')][_0x3241('0x15')](_0x3df3c4=>w(_0x3df3c4,_0x473665)));}
23
+ const _0x5c42=['RealTimeCollaborativeComments','context','end','trackChangesData','getDataWithDiscardedSuggestions','TrackChangesData','trackChangesData.editorCreator','from','every','model','createDocumentFragment','function','discardAllSuggestions','name','concat','RealTimeCollaborativeTrackChanges','includes','set','push','find','init','requires','addSuggestionData','data','users','destroy','getDataWithAcceptedSuggestions','extraPlugins','addUser','constructor','pluginName','get','createElement','getUser','document','editor','config','TrackChangesDataGetter','RealTimeCollaborativeRevisionHistory','_adapter','TrackChangesEditing','map','appendChild','builtinPlugins','getRootNames','reduce','editorCreator','useAnonymousUser','acceptAllSuggestions','filter','string','Users','plugins','Autosave'];(function(_0x4ce3b9,_0x5c4236){const _0x1e7270=function(_0x24b170){while(--_0x24b170){_0x4ce3b9['push'](_0x4ce3b9['shift']());}};_0x1e7270(++_0x5c4236);}(_0x5c42,0x1a7));const _0x1e72=function(_0x4ce3b9,_0x5c4236){_0x4ce3b9=_0x4ce3b9-0x0;let _0x1e7270=_0x5c42[_0x4ce3b9];return _0x1e7270;};import{Plugin as _0x21e819}from'ckeditor5/src/core';import{CKEditorError as _0x545630}from'ckeditor5/src/utils';import _0x4956b4 from'./trackchangesediting';const C=['initialData',_0x1e72('0xa'),'toolbar'],k=['RealTimeCollaborativeEditing',_0x1e72('0x9'),_0x1e72('0x18'),_0x1e72('0x2f'),_0x1e72('0x8'),'WordCount'];export default class T extends _0x21e819{static get[_0x1e72('0x1e')](){return[_0x4956b4];}static get['pluginName'](){return _0x1e72('0xe');}['init'](){const _0x528359=this[_0x1e72('0x2c')];if(_0x528359[_0x1e72('0x2d')]['define'](_0x1e72('0xf'),_0x5b1445=>_0x528359[_0x1e72('0x26')]['create']('',_0x5b1445)),'function'!=typeof _0x528359[_0x1e72('0x2d')]['get'](_0x1e72('0xc'))[_0x1e72('0x1')])throw new _0x545630('track-changes-data-invalid-editor-creator');}[_0x1e72('0x23')](_0x226b64){return v(this[_0x1e72('0x2c')],!0x0,_0x226b64);}[_0x1e72('0xd')](_0x5b2426){return v(this[_0x1e72('0x2c')],!0x1,_0x5b2426);}}class D extends _0x21e819{static get[_0x1e72('0x27')](){return _0x1e72('0x2e');}[_0x1e72('0x1d')](){this['result']=_0x1e72('0xb'),this['editor'][_0x1e72('0x7')]['get']('CommentsRepository')[_0x1e72('0x30')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x1e72('0x2c')][_0x1e72('0x7')][_0x1e72('0x28')]('TrackChangesEditing')[_0x1e72('0x30')]=null;}}async function v(_0x438b8b,_0x337335,_0x2a9a7a){const _0x5da518=function(_0x3b809e){const _0x2adf62={};for(const _0x2dffc3 of _0x3b809e[_0x1e72('0x2d')]['names']())C[_0x1e72('0x19')](_0x2dffc3)||(_0x2adf62[_0x2dffc3]=_0x3b809e[_0x1e72('0x2d')][_0x1e72('0x28')](_0x2dffc3));const _0x12b35f=_0x3b809e['constructor'][_0x1e72('0x34')]||[],_0x6125e8=_0x2adf62[_0x1e72('0x24')]||[];delete _0x2adf62[_0x1e72('0x24')];const _0x3c9be7=_0x12b35f['concat'](_0x2adf62['plugins'])[_0x1e72('0x17')](_0x6125e8)[_0x1e72('0x32')](_0x2a67df=>_0x1e72('0x5')==typeof _0x2a67df?_0x12b35f[_0x1e72('0x1c')](_0x32ce5f=>_0x32ce5f[_0x1e72('0x27')]==_0x2a67df):_0x2a67df),_0x1f29cb=Array[_0x1e72('0x10')](new Set(_0x3c9be7));return _0x2adf62[_0x1e72('0x7')]=_0x1f29cb[_0x1e72('0x4')](_0x225462=>w(_0x225462,new Set())),_0x2adf62[_0x1e72('0x7')][_0x1e72('0x1b')](D),_0x2adf62[_0x1e72('0x7')]['push'](_0x4956b4),_0x2adf62;}(_0x438b8b),_0x59ed15=document[_0x1e72('0x13')](),_0x5e805e=_0x438b8b['config']['get'](_0x1e72('0xc'))[_0x1e72('0x1')],_0x4d0046=await _0x5e805e(_0x5da518,()=>function(_0x5e42b9){const _0x2f6569=document[_0x1e72('0x29')]('div');return _0x5e42b9[_0x1e72('0x33')](_0x2f6569),_0x2f6569;}(_0x59ed15));!function(_0x30e4a2,_0x5409e8){const _0x561d07=_0x30e4a2[_0x1e72('0x12')][_0x1e72('0x2b')][_0x1e72('0x35')]()[_0x1e72('0x0')]((_0x5b6c47,_0x146502)=>(_0x5b6c47[_0x146502]=_0x30e4a2[_0x1e72('0x20')][_0x1e72('0x28')]({'rootName':_0x146502}),_0x5b6c47),{}),_0x465ad7=_0x30e4a2['plugins'][_0x1e72('0x28')](_0x1e72('0x6'))[_0x1e72('0x21')]['map'](_0x2dd04f=>({'id':_0x2dd04f['id']})),_0x35d5b5=_0x30e4a2[_0x1e72('0x7')]['get'](_0x1e72('0x31'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bb958=_0x5409e8[_0x1e72('0x7')][_0x1e72('0x28')](_0x1e72('0x6')),_0x6423ce=_0x5409e8[_0x1e72('0x7')][_0x1e72('0x28')]('TrackChangesEditing');for(const _0x40237f of _0x465ad7)_0x2bb958[_0x1e72('0x2a')](_0x40237f['id'])||_0x2bb958[_0x1e72('0x25')](_0x40237f);_0x2bb958['me']||_0x2bb958[_0x1e72('0x2')]();for(const _0x5df70b of _0x35d5b5)_0x6423ce[_0x1e72('0x1f')](_0x5df70b);_0x5409e8[_0x1e72('0x20')][_0x1e72('0x1a')](_0x561d07);}(_0x438b8b,_0x4d0046),_0x4d0046['execute'](_0x337335?_0x1e72('0x3'):_0x1e72('0x15'));const _0x35798c=_0x4d0046[_0x1e72('0x20')]['get'](_0x2a9a7a);return await _0x4d0046[_0x1e72('0x22')](),_0x35798c;}function w(_0x187f6c,_0x43cbb4){if(_0x43cbb4['has'](_0x187f6c))return!0x0;_0x43cbb4['add'](_0x187f6c);const _0x282583=_0x1e72('0x14')==typeof _0x187f6c?_0x187f6c[_0x1e72('0x27')]||_0x187f6c[_0x1e72('0x16')]:_0x187f6c;return(!_0x282583||!k[_0x1e72('0x19')](_0x282583))&&(!_0x187f6c[_0x1e72('0x1e')]||_0x187f6c['requires'][_0x1e72('0x11')](_0x124660=>w(_0x124660,_0x43cbb4)));}