@ckeditor/ckeditor5-track-changes 47.0.0-alpha.4 → 47.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/ai.d.ts +17 -0
- package/src/integrations/ai.js +23 -0
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/lineheight.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.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/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +2 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x138e14(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2757eb,_0x223b61){super(),this['id']=_0x223b61['id'],this['type']=_0x223b61['type'],this['subType']=_0x223b61['subType']||null,this['author']=_0x223b61['author'],this['creator']=_0x223b61['creator']||_0x223b61['author'],this['isExternal']=Boolean(_0x223b61['attributes']&&_0x223b61['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x223b61['originalSuggestionId']||null,this['_model']=_0x2757eb,this['_onAccept']=_0x223b61['onAccept'],this['_onDiscard']=_0x223b61['onDiscard'],this['_onAttributesChange']=_0x223b61['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x223b61['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x570862=this;for(;_0x570862['previous'];)_0x570862=_0x570862['previous'];return _0x570862;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x482528){this['_markerNames']['add'](_0x482528);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x305b1f=>this['_model']['markers']['get'](_0x305b1f))['filter'](_0x516e15=>_0x516e15);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1e324c=>{for(const _0xbd602a of this['getMarkers']())_0x1e324c['removeMarker'](_0xbd602a);}),this['_markerNames']['clear']();}['removeMarker'](_0x43227c){this['_model']['change'](_0xbe7a43=>{_0xbe7a43['removeMarker'](_0x43227c);}),this['_markerNames']['delete'](_0x43227c);}['addRange'](_0x51f36e){const _0x2c7e87='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x2c7e87),this['_model']['change'](_0x18d72f=>{_0x18d72f['addMarker'](_0x2c7e87,{'range':_0x51f36e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5d2087){for(const _0x3631ae of this['getRanges']())if(_0x3631ae['isIntersecting'](_0x5d2087))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x594559=>_0x594559['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2471e7,_0x43a77f)=>[..._0x2471e7,..._0x43a77f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x484dbe=this['getRanges']();if(0x1!=_0x484dbe['length'])return null;const _0x38ef93=_0x484dbe[0x0],_0x11cc34=_0x38ef93['start']['nodeAfter'],_0x53599d=_0x38ef93['end']['nodeBefore'];return _0x11cc34 instanceof _0x23a550?_0x11cc34!=_0x53599d?null:_0x11cc34:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x495d4b=[];let _0x2170eb=this['head'];for(;_0x2170eb;)_0x495d4b['push'](_0x2170eb),_0x2170eb=_0x2170eb['next'];return _0x495d4b;}['setAttribute'](_0x22719b,_0x339f8c){const _0x5f23d8=_0x567142(this['attributes']);_0x5523e3(_0x5f23d8,_0x22719b,_0x339f8c),_0x28590f(_0x5f23d8,this['attributes'])||(this['attributes']=_0x5f23d8,this['_onAttributesChange'](_0x5f23d8));}['removeAttribute'](_0x5f547a){const _0x4f53a5=_0x567142(this['attributes']);_0x4c8289(_0x4f53a5,_0x5f547a),_0x28590f(_0x4f53a5,this['attributes'])||(this['attributes']=_0x4f53a5,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x5b7b63()['substr'](0x1,0x5);}}function o(_0x21f839,_0x4323f7,_0x21113e){const _0x5cebc7=_0x21f839['t'],t=_0x21f839['t'];switch(_0x4323f7){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x21113e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x21113e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x21113e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x21113e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x21113e);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x21113e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x21113e);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21113e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x21113e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x21113e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x21113e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x21113e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x21113e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x21113e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x21113e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x21113e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x21113e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x21113e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x21113e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x21113e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x21113e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x21113e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x21113e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x21113e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x21113e);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x21113e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x21113e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x21113e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x21113e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x21113e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x21113e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x21113e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x21113e);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x21113e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x21113e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x21113e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x21113e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x21113e);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x21113e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x21113e);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x21113e);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x21113e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x21113e);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x21113e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x21113e);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x21113e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x21113e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x21113e);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x21113e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x21113e);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x5cebc7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x21113e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5cebc7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x21113e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x21113e);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x21113e);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x21113e);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x21113e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4323f7;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x591fd5,_0x33f694){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x591fd5,this['_locale']=_0x33f694;}['getDescriptions'](_0xe2d9f4){const _0x1a9be2=[],_0x309bad=new Set(),_0x3c5b24=new Set();for(let _0x47d98f=0x0;_0x47d98f<_0xe2d9f4['length'];_0x47d98f++){const _0x156198=_0xe2d9f4[_0x47d98f];if(!_0x156198['isInContent'])continue;const _0x4e2432=this['_handleCustomCallbackDescription'](_0x156198);if(_0x4e2432){if(null!=_0x156198['subType']){if(_0x309bad['has'](_0x156198['subType']))continue;_0x309bad['add'](_0x156198['subType']);}_0x1a9be2['push'](_0x4e2432);}else{if('attribute'==_0x156198['type']){const _0x18f48b=_0x156198['data']['key'];if(_0x3c5b24['has'](_0x18f48b))continue;_0x3c5b24['add'](_0x156198['data']['key']),_0x18f48b==m?this['_handleRenameSuggestionDescription'](_0x1a9be2,_0x156198):this['_handleAttributeSuggestionDescription'](_0x1a9be2,_0x156198);continue;}'insertion'!=_0x156198['type']&&'deletion'!=_0x156198['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1a9be2,_0x156198,_0xe2d9f4[_0x47d98f+0x1]);}}return this['_resolveDescriptionItems'](_0x1a9be2);}['registerDescriptionCallback'](_0x7c7a13){this['_customCallbacks']['push'](_0x7c7a13);}['registerElementLabel'](_0x24076e,_0x129287,_0x56359b=_0x5aa02d['normal']){'function'==typeof _0x24076e?_0x3f1d12(this['_itemLabelsCallbacks'],{'matchingCallback':_0x24076e,'label':_0x129287,'priority':_0x56359b}):this['_itemLabels']['set'](_0x24076e,_0x129287);}['registerAttributeLabel'](_0x41d054,_0x1e4aea){this['_attributeLabels']['set'](_0x41d054,_0x1e4aea);}['getItemLabel'](_0xaf59e9,_0x3d334d=0x1){let _0x1c8b06;for(const _0x5dd993 of this['_itemLabelsCallbacks'])if(_0x5dd993['matchingCallback'](_0xaf59e9)){_0x1c8b06=_0x5dd993['label'];break;}return _0x1c8b06||(_0x1c8b06=this['_itemLabels']['get'](_0xaf59e9['name'])),_0x1c8b06?_0x1c8b06(_0x3d334d):0x1!==_0x3d334d?_0x3d334d+'\x20'+_0xaf59e9['name']+'s':''+_0xaf59e9['name'];}['_addDescriptionItems'](_0x4909e5,_0x3cdb5b){const _0x121506=_0x3cdb5b['getFirstRange']()['getWalker'](),_0x288a1a='insertion'==_0x3cdb5b['type']?'add':'remove';for(const _0x433940 of _0x121506){const _0x28b2a5=_0x433940['item'],_0x1f1a01=_0x4909e5[_0x4909e5['length']-0x1];if(_0x28b2a5['is']('$textProxy'))_0x1f1a01&&_0x1f1a01['type']['indexOf']('Container')>-0x1&&_0x4909e5['pop'](),_0x1f1a01&&'text'==_0x1f1a01['type']?_0x1f1a01[_0x288a1a]+=_0x28b2a5['data']:_0x4909e5['push']({'type':'text','add':'add'==_0x288a1a?_0x28b2a5['data']:'','remove':'remove'==_0x288a1a?_0x28b2a5['data']:''});else{if(this['_schema']['isObject'](_0x28b2a5)){const _0x365887=_0x28b2a5;if(_0x1f1a01&&_0x1f1a01['type']['indexOf']('Container')>-0x1&&_0x4909e5['pop'](),'elementEnd'==_0x433940['type'])continue;_0x1f1a01&&_0x1f1a01['type']==_0x288a1a+'Object'&&_0x1f1a01['element']['name']==_0x365887['name']?_0x1f1a01['quantity']++:_0x4909e5['push']({'type':_0x288a1a+'Object','element':_0x365887,'quantity':0x1}),_0x121506['skip'](_0x52b9f6=>!('elementEnd'==_0x52b9f6['type']&&_0x52b9f6['item']==_0x28b2a5));}else{if(this['_schema']['checkChild'](_0x28b2a5,'$text')||_0x28b2a5['is']('element','softBreak')){const _0x56614f=_0x28b2a5;if('add'==_0x288a1a&&'elementStart'==_0x433940['type']||'remove'==_0x288a1a&&'elementEnd'==_0x433940['type'])continue;if(_0x1f1a01&&-0x1==_0x1f1a01['type']['indexOf']('Container')){'text'==_0x1f1a01['type']&&(_0x1f1a01[_0x288a1a]+='\x0a');continue;}let _0x558a90;if(_0x558a90='add'==_0x288a1a?_0x56614f['nextSibling']&&!this['_schema']['isObject'](_0x56614f['nextSibling'])?_0x56614f['nextSibling']:null:_0x56614f['previousSibling']&&!this['_schema']['isObject'](_0x56614f['previousSibling'])?_0x56614f['previousSibling']:null,_0x56614f['isEmpty']||_0x558a90&&_0x558a90['isEmpty']){const _0x58ed4e=_0x558a90&&_0x558a90['isEmpty']?_0x558a90:_0x56614f;_0x1f1a01&&_0x1f1a01['type']==_0x288a1a+'EmptyContainer'&&_0x1f1a01['element']['name']==_0x58ed4e['name']?_0x1f1a01['quantity']++:_0x4909e5['push']({'type':_0x288a1a+'EmptyContainer','element':_0x58ed4e,'quantity':0x1});}else _0x4909e5['push']({'type':_0x288a1a+'Container','element':_0x56614f});}}}}}['_resolveDescriptionItems'](_0x1e0b0a){const _0x2e9c1c=this['_locale'],_0x25e43e=[],_0x1d6a4c=[],_0x4af656=[];for(const _0x4c1d16 of _0x1e0b0a)switch(_0x4c1d16['type']){case'text':if(_0x4c1d16['add']=_0x4c1d16['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c1d16['remove']=_0x4c1d16['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c1d16['add']&&''!=_0x4c1d16['remove']){_0x25e43e['push']({'type':'replace','content':o(_0x2e9c1c,'REPLACE_TEXT',['\x22'+_0x4c1d16['remove']+'\x22','\x22'+_0x4c1d16['add']+'\x22'])});continue;}if(null!=_0x4c1d16['add']['match'](/^ +$/)){_0x25e43e['push']({'type':'insertion','content':o(_0x2e9c1c,'*Insert:*\x20%0',o(_0x2e9c1c,'ELEMENT_SPACE',_0x4c1d16['add']['length']))});continue;}if(null!=_0x4c1d16['remove']['match'](/^ +$/)){_0x25e43e['push']({'type':'deletion','content':o(_0x2e9c1c,'*Remove:*\x20%0',o(_0x2e9c1c,'ELEMENT_SPACE',_0x4c1d16['remove']['length']))});continue;}if(''!=_0x4c1d16['add']){_0x25e43e['push']({'type':'insertion','content':o(_0x2e9c1c,'*Insert:*\x20%0','\x22'+_0x4c1d16['add']+'\x22')});continue;}_0x25e43e['push']({'type':'deletion','content':o(_0x2e9c1c,'*Remove:*\x20%0','\x22'+_0x4c1d16['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x25e43e['push']({'type':'insertion','content':o(_0x2e9c1c,'*Insert:*\x20%0',this['getItemLabel'](_0x4c1d16['element'],_0x4c1d16['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x25e43e['push']({'type':'deletion','content':o(_0x2e9c1c,'*Remove:*\x20%0',this['getItemLabel'](_0x4c1d16['element'],_0x4c1d16['quantity']))});continue;case'addContainer':_0x25e43e['push']({'type':'insertion','content':o(_0x2e9c1c,'*Split:*\x20%0',this['getItemLabel'](_0x4c1d16['element'],_0x4c1d16['quantity']))});continue;case'removeContainer':_0x25e43e['push']({'type':'deletion','content':o(_0x2e9c1c,'*Merge:*\x20%0',this['getItemLabel'](_0x4c1d16['element'],_0x4c1d16['quantity']))});continue;case'addFormat':_0x1d6a4c['push'](_0x4c1d16['key']);continue;case'removeFormat':_0x4af656['push'](_0x4c1d16['key']);continue;default:_0x25e43e['push'](_0x4c1d16);}if(_0x1d6a4c['length']){const _0x37d294=_0x1d6a4c['map'](_0x2526c3=>this['_attributeLabels']['has'](_0x2526c3)?this['_attributeLabels']['get'](_0x2526c3):_0x2526c3)['join'](',\x20');_0x25e43e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x37d294)});}if(_0x4af656['length']){const _0x4be925=_0x4af656['map'](_0x2358b2=>this['_attributeLabels']['has'](_0x2358b2)?this['_attributeLabels']['get'](_0x2358b2):_0x2358b2)['join'](',\x20');_0x25e43e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4be925)});}return _0x25e43e;}['_handleCustomCallbackDescription'](_0x5e4a6d){for(const _0xd7f15e of this['_customCallbacks']){const _0x67a764=_0xd7f15e(_0x5e4a6d);if(_0x67a764&&'type'in _0x67a764)return _0x67a764;}}['_handleAttributeSuggestionDescription'](_0xa9034e,_0x56565f){const _0x32e6e9=_0x56565f['data'],_0x123391=void 0x0===_0x32e6e9['newValue']?'removeFormat':'addFormat';_0xa9034e['push']({'type':_0x123391,'key':_0x32e6e9['key']});}['_handleRenameSuggestionDescription'](_0xc0463a,_0x46eb67){_0xc0463a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46eb67['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xaeaeb8,_0x1549c2,_0x2f91a1){if(this['_addDescriptionItems'](_0xaeaeb8,_0x1549c2),_0x2f91a1&&_0x2f91a1['getFirstRange']()&&!_0x1549c2['getFirstRange']()['end']['isEqual'](_0x2f91a1['getFirstRange']()['start'])){const _0x30ce09=_0xaeaeb8[_0xaeaeb8['length']-0x1],_0x49790e='insertion'==_0x1549c2['type']?'add':'remove';_0x30ce09&&'text'==_0x30ce09['type']&&(_0x30ce09[_0x49790e]+='\x0a');}}}class V extends _0x44fd37{['afterInit'](){const _0x329fd8=this['editor'],_0x1d90d2=_0x329fd8['plugins']['get']('TrackChangesEditing');_0x329fd8['commands']['get']('showAIAssistant')&&_0x1d90d2['enableCommand']('showAIAssistant');}}class F extends _0x44fd37{['afterInit'](){const _0x2577a5=this['editor'],_0x121689=_0x2577a5['locale'];if(!_0x2577a5['plugins']['has']('AlignmentEditing'))return;const _0xcb720b=_0x2577a5['plugins']['get']('TrackChangesEditing');_0xcb720b['enableDefaultAttributesIntegration']('alignment'),_0xcb720b['registerBlockAttribute']('alignment'),_0xcb720b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x121689,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17b71b=this['editor'],_0x2cc419=_0x17b71b['locale'];_0x17b71b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8c7586=>{if('formatBlock'!=_0x8c7586['type'])return;const {data:_0x1513ad}=_0x8c7586;if(_0x1513ad&&'alignment'==_0x1513ad['commandName']){const _0x392caf=_0x1513ad['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2cc419,'*Format:*\x20%0',function(_0x5bfa7b){switch(_0x5bfa7b){case'left':return o(_0x2cc419,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2cc419,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2cc419,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2cc419,'FORMAT_JUSTIFY_TEXT');}}(_0x392caf))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x44fd37{['afterInit'](){const _0xa31fc6=this['editor'],_0x2c62a7=_0xa31fc6['plugins']['get']('TrackChangesEditing'),_0x5042bc=_0xa31fc6['locale'];for(const _0x5136ca of ti){if(!_0xa31fc6['plugins']['has'](_0x5136ca))continue;const _0x210ac9=_0x5136ca['slice'](0x0,-0x7)['toLowerCase'](),_0x2a6e5f='FORMAT_'+_0x210ac9['toUpperCase']();_0x2c62a7['enableDefaultAttributesIntegration'](_0x210ac9),_0x2c62a7['registerInlineAttribute'](_0x210ac9),_0x2c62a7['descriptionFactory']['registerAttributeLabel'](_0x210ac9,o(_0x5042bc,_0x2a6e5f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d6323=this['editor'],_0x1770a8=_0x5d6323['locale'],_0x2d7fab=_0x5d6323['plugins']['get']('TrackChangesEditing');function _0x3ca09a(_0x10359e,_0x1a8fa0){_0x2d7fab['descriptionFactory']['registerDescriptionCallback'](_0x48b634=>{if('formatInline'!=_0x48b634['type'])return;const {data:_0x58ecad}=_0x48b634;return _0x58ecad&&_0x58ecad['commandName']===_0x10359e?_0x58ecad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1770a8,'*Format:*\x20%0',_0x1a8fa0)}:{'type':'format','content':o(_0x1770a8,'*Remove\x20format:*\x20%0',_0x1a8fa0)}:void 0x0;});}_0x3ca09a('bold',o(_0x1770a8,'FORMAT_BOLD')),_0x3ca09a('italic',o(_0x1770a8,'FORMAT_ITALIC')),_0x3ca09a('underline',o(_0x1770a8,'FORMAT_UNDERLINE')),_0x3ca09a('code',o(_0x1770a8,'FORMAT_CODE')),_0x3ca09a('strikethrough',o(_0x1770a8,'FORMAT_STRIKETHROUGH')),_0x3ca09a('subscript',o(_0x1770a8,'FORMAT_SUBSCRIPT')),_0x3ca09a('superscript',o(_0x1770a8,'FORMAT_SUPERSCRIPT'));}}class L extends _0x44fd37{['afterInit'](){const _0x1e2c99=this['editor'],_0x1092dd=_0x1e2c99['locale'];if(!_0x1e2c99['plugins']['has']('BlockQuoteEditing'))return;const _0x32d82e=_0x1e2c99['plugins']['get']('TrackChangesEditing'),_0x4f6dba=this['editor']['commands']['get']('blockQuote');_0x32d82e['enableCommand']('blockQuote',(_0x13fcec,_0x48c28e={})=>{const _0x2de05d=this['editor']['model']['document']['selection'],_0x110e77=_0x48c28e&&void 0x0!==_0x48c28e['forceValue']?_0x48c28e['forceValue']:!_0x4f6dba['value'];let _0x22f92f=[];if(_0x110e77){const _0xd65e56=Array['from'](_0x2de05d['getSelectedBlocks']())['filter'](_0x4c798c=>oo(_0x4c798c)||function(_0x28422d,_0x2b4c28){const _0x122a15=_0x2b4c28['checkChild'](_0x28422d['parent'],'blockQuote'),_0x439956=_0x2b4c28['checkChild'](['$root','blockQuote'],_0x28422d);return _0x122a15&&_0x439956;}(_0x4c798c,this['editor']['model']['schema']));_0x22f92f=to(_0xd65e56,_0x1e2c99['model']);}else{const _0x22b952=Array['from'](_0x2de05d['getSelectedBlocks']())['filter'](_0x2e1b4c=>oo(_0x2e1b4c));_0x22f92f=to(_0x22b952,_0x1e2c99['model']);}_0x1e2c99['model']['change'](()=>{for(const _0x5c6333 of _0x22f92f)_0x32d82e['markBlockFormat'](_0x5c6333,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x110e77}]});});}),_0x32d82e['descriptionFactory']['registerDescriptionCallback'](_0x208ff3=>{const {data:_0x3ec4e6}=_0x208ff3;if(_0x3ec4e6&&'blockQuote'==_0x3ec4e6['commandName']){const _0x2b0507=o(_0x1092dd,'ELEMENT_BLOCK_QUOTE');return _0x3ec4e6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1092dd,'*Set\x20format:*\x20%0',_0x2b0507)}:{'type':'format','content':o(_0x1092dd,'*Remove\x20format:*\x20%0',_0x2b0507)};}});}}function oo(_0x4f34d3){return'blockQuote'==_0x4f34d3['parent']['name'];}class J extends _0x44fd37{['afterInit'](){const _0x5a607e=this['editor'],_0x47ecdd=_0x5a607e['locale'],_0x275930=_0x5a607e['plugins']['get']('TrackChangesEditing');_0x5a607e['plugins']['has']('BookmarkEditing')&&(_0x275930['enableCommand']('insertBookmark'),_0x275930['enableDefaultAttributesIntegration']('updateBookmark'),_0x275930['registerBlockAttribute']('bookmarkId'),_0x275930['descriptionFactory']['registerDescriptionCallback'](_0xd86d28=>{if('insertion'!=_0xd86d28['type']&&'deletion'!=_0xd86d28['type']&&'attribute'!=_0xd86d28['type'])return;const _0x2959b2=_0xd86d28['getContainedElement']();if(null==_0x2959b2)return;if(!_0x2959b2['is']('element','bookmark'))return;const _0x17ea14=_0x2959b2['getAttribute']('bookmarkId');if('insertion'==_0xd86d28['type'])return{'type':'insertion','content':o(_0x47ecdd,'*Insert:*\x20%0','\x22'+_0x17ea14+'\x22\x20'+o(_0x47ecdd,'ELEMENT_BOOKMARK'))};if('deletion'==_0xd86d28['type'])return{'type':'deletion','content':o(_0x47ecdd,'*Remove:*\x20%0','\x22'+_0x17ea14+'\x22\x20'+o(_0x47ecdd,'ELEMENT_BOOKMARK'))};const {data:_0x5cd854}=_0xd86d28;if(!_0x5cd854||'bookmarkId'!=_0x5cd854['key'])return;return{'type':'format','content':o(_0x47ecdd,'*Set\x20bookmark:*\x20%0','\x22'+_0x5cd854['newValue']+'\x22')};}));}}class K extends _0x44fd37{['afterInit'](){const _0x482224=this['editor'];_0x482224['plugins']['has']('CaseChange')&&(_0x482224['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x482224['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x482224['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x44fd37{['afterInit'](){const _0x175c84=this['editor'];_0x175c84['commands']['get']('ckbox')&&_0x175c84['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x44fd37{['afterInit'](){const _0x135d24=this['editor'];if(!_0x135d24['plugins']['has']('CodeBlock'))return;const _0x46f6d0=_0x135d24['plugins']['get']('TrackChangesEditing'),_0x150628=_0x135d24['locale'],_0x4e1e9c=_0x135d24['config']['get']('codeBlock')['languages'],_0x57bdc0=_0x135d24['commands']['get']('codeBlock');_0x46f6d0['enableCommand']('indentCodeBlock'),_0x46f6d0['enableCommand']('outdentCodeBlock'),_0x46f6d0['enableCommand']('codeBlock',(_0x214c5e,_0x1c327b={})=>{const _0x4b33b7=_0x135d24['model'],_0x2ac38b=_0x135d24['model']['document']['selection'],_0xc36d3f=_0x1c327b&&void 0x0!==_0x1c327b['forceValue']?_0x1c327b['forceValue']:!_0x57bdc0['value'];let _0x13f799;_0x1c327b['language']||(_0x1c327b['language']=_0x4e1e9c[0x0]['language']),_0x13f799=_0xc36d3f?Array['from'](_0x2ac38b['getSelectedBlocks']())['filter'](_0x21669a=>co(_0x21669a)||function(_0x3b1198,_0x4ce7da){if(_0x3b1198['is']('rootElement')||_0x4ce7da['isLimit'](_0x3b1198))return!0x1;return _0x4ce7da['checkChild'](_0x3b1198['parent'],'codeBlock');}(_0x21669a,_0x4b33b7['schema'])):Array['from'](_0x2ac38b['getSelectedBlocks']())['filter'](_0x40e31e=>co(_0x40e31e));const _0xd3814a=to(_0x13f799,_0x4b33b7);_0x4b33b7['change'](()=>{for(const _0x1aa9ce of _0xd3814a)_0x46f6d0['markBlockFormat'](_0x1aa9ce,{'commandName':'codeBlock','commandParams':[{..._0x1c327b,'forceValue':_0xc36d3f}],'formatGroupId':'blockName'});});}),(_0x46f6d0['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ee3ee=>o(_0x150628,'ELEMENT_CODE_BLOCK',_0x4ee3ee)),_0x46f6d0['descriptionFactory']['registerDescriptionCallback'](_0x17c1e0=>{if('formatBlock'!=_0x17c1e0['type'])return;const _0x117e82=_0x150628['t'],{data:_0x2ad5f8}=_0x17c1e0;if(!_0x2ad5f8||'codeBlock'!=_0x2ad5f8['commandName'])return;const _0x5d5895=_0x2ad5f8['commandParams'][0x0]['language'],_0x590adc=_0x117e82(_0x4e1e9c['find'](_0x2b2e2a=>_0x2b2e2a['language']===_0x5d5895)['label'])['toLowerCase']();return _0x2ad5f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x150628,'*Set\x20format:*\x20%0',o(_0x150628,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x590adc+')')}:{'type':'format','content':o(_0x150628,'*Remove\x20format:*\x20%0',o(_0x150628,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1b1462){return'codeBlock'==_0x1b1462['name'];}class q extends _0x44fd37{['afterInit'](){const _0x4b50f4=this['editor'];if(!_0x4b50f4['plugins']['has']('CommentsEditing'))return;_0x4b50f4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x56e4ac,_0x8ee079,_0x486bcf){const _0x28adc9=[];for(const _0x4e77c0 of _0x8ee079['getItems']())_0x4e77c0['hasAttribute'](_0x56e4ac)&&_0x28adc9['push'](_0x486bcf['createRangeOn'](_0x4e77c0));return _0x28adc9;}function Ge(_0x5035f4,_0x179020,{showActiveMarker:_0x3432ab=!0x0}={}){const _0x4bfe26=_0x5035f4['plugins']['get']('TrackChangesEditing');return(_0x984876,_0x1b03bc,_0x27a177)=>{if(!_0x27a177['consumable']['test'](_0x1b03bc['markerRange'],_0x984876['name']))return;const _0x1e2447=_0x1b03bc['markerRange']['getWalker'](),_0x20c41d=_0x1b03bc['markerRange']['start'],_0x4416cd=_0x5035f4['model']['schema'];let _0x25e39f=null,_0x56e1cb=null,_0x3f4a78=!0x1,_0x4545b0=!0x1;for(const _0x57a953 of _0x1e2447){const _0x513e2c=_0x57a953['item'];_0x3f4a78=_0x3f4a78||_0x4416cd['isContent'](_0x513e2c);const _0x22cafe=_0x27a177['mapper']['toViewElement'](_0x513e2c);if(_0x22cafe&&_0x22cafe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57a953['type']&&(_0x4416cd['isBlock'](_0x513e2c)&&!_0x4416cd['isLimit'](_0x513e2c)&&(_0x513e2c['nextSibling']||_0x20c41d['isAtEnd']?_0x25e39f&&_0x25e39f['parent']==_0x513e2c||(_0x25e39f=_0x513e2c,_0x1ad5bb(_0x57a953['previousPosition']),_0x4545b0=!0x0):_0x56e1cb=_0x56e1cb||_0x57a953['previousPosition']));}function _0x1ad5bb(_0xe3ec10){const {id:_0x1fff4f,authorId:_0x3288ed}=_0x4bfe26['_splitMarkerName'](_0x1b03bc['markerName']),_0x1d9259=_0x27a177['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x179020,'data-suggestion':_0x1fff4f,'data-author-id':_0x3288ed}),_0x25da56=_0x27a177['mapper']['toViewPosition'](_0xe3ec10);_0x3432ab&&_0x4bfe26['activeMarkers']['includes'](_0x1b03bc['markerName'])&&_0x27a177['writer']['addClass']('ck-suggestion-marker--active',_0x1d9259),_0x27a177['writer']['insert'](_0x25da56,_0x1d9259),_0x27a177['mapper']['bindElementToMarker'](_0x1d9259,_0x1b03bc['markerName']);}_0x3f4a78||_0x4545b0||!_0x56e1cb||_0x1ad5bb(_0x56e1cb);};}class z extends _0x44fd37{static get['requires'](){return[_0x142b68];}['init'](){const _0x547373=this['editor'],_0x39568d=_0x547373['plugins']['get']('TrackChangesEditing');_0x39568d['enableCommand']('delete');const _0x519996=_0x547373['commands']['get']('deleteForward');_0x39568d['enableCommand']('deleteForward',(_0x5c5b9e,_0x51a4eb={})=>{const _0x2a2a6f=_0x547373['model']['createSelection'](_0x547373['model']['document']['selection']);_0x2a2a6f['isCollapsed']&&_0x547373['model']['modifySelection'](_0x2a2a6f,{'direction':'forward','unit':_0x51a4eb['unit']});const _0x54b8e5=_0x2a2a6f['getFirstRange'](),_0x21c753=_0x39adac['fromRange'](_0x54b8e5);let _0x54f072;_0x5c5b9e(_0x51a4eb),_0x54f072='$graveyard'==_0x21c753['root']['rootName']?_0x547373['model']['createRange'](_0x54b8e5['start']):_0x547373['model']['createRange'](_0x21c753['start'],_0x21c753['end']),_0x21c753['detach'](),_0x547373['model']['enqueueChange'](_0x519996['buffer']['batch'],_0x134d7c=>{_0x519996['buffer']['lock'](),_0x134d7c['setSelection'](_0x134d7c['createRange'](_0x54f072['end'])),_0x519996['buffer']['unlock']();});}),_0x547373['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x547373,'merge'),{'priority':'high'}),_0x547373['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x54274c,_0x241906,_0x2eb4cc)=>{_0x2eb4cc['options']['showSuggestionHighlights']&&Ge(_0x547373,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x54274c,_0x241906,_0x2eb4cc);},{'priority':'high'}),_0x547373['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x219d2a,_0x1ac2f4,_0x5b0fb8)=>{const _0x5b96a4=_0x5b0fb8['mapper']['markerNameToElements'](_0x1ac2f4['markerName']);if(_0x5b96a4){for(const _0x4d2d95 of _0x5b96a4)_0x4d2d95['is']('uiElement')&&(_0x5b0fb8['mapper']['unbindElementFromMarkerName'](_0x4d2d95,_0x1ac2f4['markerName']),_0x5b0fb8['writer']['remove'](_0x4d2d95));}},{'priority':'high'});}}class Q extends _0x44fd37{['afterInit'](){const _0x595cc2=this['editor'];if(!_0x595cc2['plugins']['has']('ListEditing'))return;const _0x4831d2=_0x595cc2['locale'],_0x4a6c87=_0x595cc2['plugins']['get']('TrackChangesEditing'),_0x230823=_0x595cc2['plugins']['has']('TodoListEditing'),_0x4935a3=!!_0x595cc2['config']['get']('list.multiBlock');function _0x166e29(_0x5ab9d6){return{'type':'format','content':''+o(_0x4831d2,'*Set\x20format:*\x20%0',_0x5ab9d6)};}function _0x36e6f3(_0x585140){return{'type':'format','content':''+o(_0x4831d2,'*Remove\x20format:*\x20%0',_0x585140)};}_0x4a6c87['enableDefaultAttributesIntegration']('numberedList'),_0x4a6c87['enableDefaultAttributesIntegration']('bulletedList'),_0x4a6c87['enableDefaultAttributesIntegration']('customNumberedList'),_0x4a6c87['enableDefaultAttributesIntegration']('customBulletedList'),_0x4a6c87['enableDefaultAttributesIntegration']('indentList'),_0x4a6c87['enableDefaultAttributesIntegration']('outdentList'),_0x4a6c87['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4a6c87['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4a6c87['registerBlockAttribute']('listItemId'),_0x4a6c87['registerBlockAttribute']('listType'),_0x4a6c87['registerBlockAttribute']('listIndent'),_0x4935a3&&(_0x4a6c87['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4a6c87['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x230823&&(_0x4a6c87['enableDefaultAttributesIntegration']('todoList'),_0x4a6c87['enableDefaultAttributesIntegration']('checkTodoList'),_0x4a6c87['registerBlockAttribute']('todoListChecked'),_0x4a6c87['descriptionFactory']['registerDescriptionCallback'](_0x3dc6cb=>{const {data:_0x49a14c}=_0x3dc6cb;if(_0x49a14c&&'todoListChecked'==_0x49a14c['key'])return{'type':'format','content':_0x49a14c['newValue']?o(_0x4831d2,'*Check\x20item*'):o(_0x4831d2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31dfa2=>{if(_0x31dfa2['batch']['isUndo'])return!0x1;let _0x1e9b5c=!0x1;const _0x3fc6c6=_0x4a6c87['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fceb5=>'todoListChecked'===_0x4a6c87['_getAttributeKey'](_0x4fceb5));for(const _0x57a403 of _0x3fc6c6){'todo'!=_0x57a403['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4a6c87['_findSuggestions'](_0x57a403['getFirstRange'](),'attribute')['find'](_0x301d1a=>'listType'===_0x4a6c87['_getAttributeKey'](_0x301d1a['suggestion']))||(_0x31dfa2['removeMarker'](_0x57a403['getFirstMarker']()),_0x1e9b5c=!0x0));}return _0x1e9b5c;})),_0x4a6c87['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4831d2,'FORMAT_INDENT'));const _0x35ab2d={'type':'format','content':''};_0x4a6c87['descriptionFactory']['registerDescriptionCallback'](_0x25f1b4=>{const {data:_0x45c452}=_0x25f1b4;if(!_0x45c452||'listType'!=_0x45c452['key'])return;let _0x5a7d45=_0x25f1b4['head'];for(;_0x5a7d45;){if(_0x5a7d45['data']&&(('listStyle'==_0x5a7d45['data']['key']||'listMarkerStyle'==_0x5a7d45['data']['key'])&&(_0x5a7d45['data']['newValue']&&'default'!=_0x5a7d45['data']['newValue']||'default'!=_0x5a7d45['data']['oldValue']&&!_0x45c452['newValue'])||!_0x4935a3&&_0x5a7d45['data']['key']==m))return _0x35ab2d;_0x5a7d45=_0x5a7d45['next'];}if(null==_0x45c452['newValue'])switch(_0x45c452['oldValue']){case'bulleted':return _0x36e6f3(o(_0x4831d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36e6f3(o(_0x4831d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36e6f3(o(_0x4831d2,'ELEMENT_TODO_LIST'));}switch(_0x45c452['newValue']){case'bulleted':return _0x166e29(o(_0x4831d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x166e29(o(_0x4831d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x166e29(o(_0x4831d2,'ELEMENT_TODO_LIST'));}}),_0x4a6c87['descriptionFactory']['registerDescriptionCallback'](_0x3c8b5b=>{const {data:_0x392160}=_0x3c8b5b;if(_0x392160&&'listIndent'==_0x392160['key'])return null==_0x392160['newValue']||null==_0x392160['oldValue']&&0x0==_0x392160['newValue']?_0x35ab2d:void 0x0;}),_0x4a6c87['descriptionFactory']['registerDescriptionCallback'](_0x500cab=>{if('attribute'!=_0x500cab['type'])return;const {data:_0x44dadb}=_0x500cab;if(!_0x44dadb||'listItemId'!=_0x44dadb['key'])return;const _0x23b5fe=Be(_0x500cab);return'newValue'==_0x23b5fe?{'type':'format','content':o(_0x4831d2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x23b5fe?{'type':'format','content':o(_0x4831d2,'*Split:*\x20list\x20item')}:_0x35ab2d;}),_0x595cc2['model']['document']['registerPostFixer'](_0x3aa750=>this['listItemIdFixer'](_0x3aa750)),_0x595cc2['model']['document']['registerPostFixer'](_0x35ccd2=>this['noTrackChangesFixer'](_0x35ccd2)),_0x595cc2['model']['document']['on']('change:data',(_0x340a43,_0x144dbb)=>{if(_0x144dbb['isUndo']||!_0x144dbb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4c5e79){if(_0x4c5e79['batch']['isUndo']||!_0x4c5e79['batch']['isLocal'])return!0x1;let _0x7102cd=!0x1;const _0x295a0f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x409ca0=>_0x409ca0['data']&&'listItemId'==_0x409ca0['data']['key'])['filter'](_0x43ac20=>_0x43ac20['data']['newValue']&&_0x43ac20['data']['oldValue']);for(const _0x1f771c of _0x295a0f)Be(_0x1f771c)||(_0x4c5e79['removeMarker'](_0x1f771c['getFirstMarker']()),_0x7102cd=!0x0);return _0x7102cd;}['noTrackChangesFixer'](_0x195e3d){if(_0x195e3d['batch']['isUndo']||!_0x195e3d['batch']['isLocal'])return!0x1;const _0x46e56c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x46e56c['trackChangesCommand']['value'])return!0x1;let _0x5629a1=!0x1;const _0x1c0928=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x406020=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4a4f76=>'attribute'==_0x4a4f76['type'])['filter'](_0xb5a536=>_0x1c0928['includes'](_0xb5a536['attributeKey']));if(0x0==_0x406020['length'])return _0x5629a1;for(const _0x228fb7 of _0x406020){const _0x502946=_0x46e56c['_findSuggestions'](_0x228fb7['range'],'attribute')['filter'](_0x4c6db2=>!_0x4c6db2['meta']['isNextTo'])['map'](_0x5e8453=>_0x5e8453['suggestion'])['filter'](_0x270665=>{const _0x1fd462=_0x46e56c['_getAttributeKey'](_0x270665);return _0x1c0928['includes'](_0x1fd462);});if(_0x502946['length']){for(const _0x5ca01c of _0x502946)_0x195e3d['removeMarker'](_0x5ca01c['getFirstMarker']());_0x5629a1=!0x0;}}return _0x5629a1;}['assureChains'](){const _0x133a6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4023a3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2a418e;const _0x1dc634=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x549fab=>{if(_0x549fab['data']['oldRange']||!_0x549fab['data']['newRange'])return null;if(!_0x549fab['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x10ff5b}=_0x133a6f['_splitMarkerName'](_0x549fab['name']);if(!_0x133a6f['hasSuggestion'](_0x10ff5b))return null;const _0x23f570=_0x133a6f['getSuggestion'](_0x10ff5b);return _0x4023a3['includes'](_0x23f570['data']['key']);})['map'](_0x321501=>{const {id:_0x51f8cb}=_0x133a6f['_splitMarkerName'](_0x321501['name']),_0x172059=_0x133a6f['getSuggestion'](_0x51f8cb);return _0x2a418e=_0x172059['attributes']['groupId'],_0x172059['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1dc634['size'])return;const _0x5eb91c=_0x133a6f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c8d9f=>'attribute'==_0x3c8d9f['type']&&_0x3c8d9f['data']&&_0x4023a3['includes'](_0x3c8d9f['data']['key'])&&_0x3c8d9f['attributes']['groupId']!=_0x2a418e)['map'](_0xdcf56c=>({'listItem':_0xdcf56c['getFirstRange']()['start']['nodeAfter'],'groupId':_0xdcf56c['attributes']['groupId']})),_0x2e509b=new Set();for(const {groupId:_0x31f304,listItem:_0x20f865}of _0x5eb91c)_0x1dc634['has'](_0x20f865)&&_0x2e509b['add'](_0x31f304);for(const _0x4c3e4d of _0x133a6f['getSuggestions']())_0x2e509b['has'](_0x4c3e4d['attributes']['groupId'])&&_0x4c3e4d['setAttribute']('groupId',_0x2a418e);}['_supportLegacySuggestions'](){const _0x38d0e6=this['editor'],_0x11cccc=_0x38d0e6['locale'],_0x115f1f=_0x38d0e6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x115f1f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x514375,_0x27692f){const _0x5ce8ff=[];for(let _0x2a4e3e of _0x514375)_0x2a4e3e['start']['nodeAfter']===_0x2a4e3e['end']['parent']&&(_0x2a4e3e=_0x38d0e6['model']['createRange'](_0x38d0e6['model']['createPositionAt'](_0x2a4e3e['start']['nodeAfter'],0x0))),_0x5ce8ff['push'](_0x2a4e3e);_0x38d0e6['model']['change'](_0xd6558=>{const _0x477329=_0x38d0e6['model']['document']['selection'],_0x5dd274=Array['from'](_0x477329['getRanges']())['map'](_0x3acccb=>_0x39adac['fromRange'](_0x3acccb));_0xd6558['setSelection'](_0x5ce8ff),_0x38d0e6['commands']['get'](_0x27692f['commandName'])['refresh'](),_0x27692f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x38d0e6['execute'](_0x27692f['commandName'],..._0x27692f['commandParams']),_0xd6558['setSelection'](_0x5dd274);for(const _0x336e6a of _0x5dd274)_0x336e6a['detach']();});}),_0x115f1f['descriptionFactory']['registerElementLabel'](function(_0xa69017){const _0x3d0ac3=!_0x38d0e6['model']['schema']['isObject'](_0xa69017),_0x3bac12=_0xa69017['previousSibling'],_0x37d7f3=_0xa69017['nextSibling'],_0x13445f=_0xa69017['getAttribute']('listItemId'),_0x55adfb=!_0x3bac12||_0x3bac12['getAttribute']('listItemId')!==_0x13445f,_0x346301=!_0x37d7f3||_0x37d7f3['getAttribute']('listItemId')!==_0x13445f;return _0x3d0ac3&&Boolean(_0x13445f)&&_0x55adfb&&_0x346301;},_0x3cf062=>o(_0x11cccc,'ELEMENT_LIST_ITEM',_0x3cf062));}['_registerLegacyDescription'](){const _0x4fb819=this['editor'],_0x12d922=_0x4fb819['locale'];function _0x445a07(_0x13e41e){const _0x45633e=_0x4fb819['commands']['get']('bulletedList')['value'],_0x44cf79=_0x4fb819['commands']['get']('numberedList')['value'];return'numberedList'===_0x13e41e?_0x45633e:_0x44cf79;}_0x4fb819['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x45818e){if('formatBlock'!=_0x45818e['type'])return;const {data:_0x37f58e}=_0x45818e;if(!_0x37f58e)return;let _0x7014ec,_0x3a9659,_0x40bc58,_0x12a46f;switch(_0x37f58e['commandName']){case'bulletedList':_0x40bc58=_0x37f58e['commandParams'][0x0]['forceValue'],_0x12a46f=_0x445a07(_0x37f58e['commandName']),_0x7014ec=_0x40bc58?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x12a46f&&_0x4fb819['config']['get']('list.multiBlock')||(_0x7014ec='*Change\x20to:*\x20%0'),_0x3a9659={'type':'format','content':o(_0x12d922,_0x7014ec,o(_0x12d922,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x40bc58=_0x37f58e['commandParams'][0x0]['forceValue'],_0x12a46f=_0x445a07(_0x37f58e['commandName']),_0x7014ec=_0x40bc58?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x12a46f&&_0x4fb819['config']['get']('list.multiBlock')||(_0x7014ec='*Change\x20to:*\x20%0'),_0x3a9659={'type':'format','content':o(_0x12d922,_0x7014ec,o(_0x12d922,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x7014ec='*Indent:*\x20%0',_0x3a9659={'type':'format','content':o(_0x12d922,_0x7014ec,o(_0x12d922,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x7014ec=function(_0x2ce3a2){const _0x4bcdaa=_0x2ce3a2['getFirstRange']();let _0x404c7c=_0x4bcdaa['start']['nodeAfter'];for(;_0x404c7c&&_0x4bcdaa['containsItem'](_0x404c7c);){if(_0x404c7c['getAttribute']('listIndent')>0x0)return!0x1;_0x404c7c=_0x404c7c['nextSibling'];}return!0x0;}(_0x45818e)?o(_0x12d922,'*Format:*\x20remove\x20from\x20%0',o(_0x12d922,function(_0x583766){return'ELEMENT_'+_0x583766['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x45818e))):o(_0x12d922,'*Outdent:*\x20%0',o(_0x12d922,'ELEMENT_LIST_ITEM')),_0x3a9659={'type':'format','content':_0x7014ec};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x37f58e['multipleBlocks']&&(_0x7014ec='*Merge:*\x20%0',_0x3a9659={'type':'deletion','content':o(_0x12d922,_0x7014ec,o(_0x12d922,'ELEMENT_LIST_ITEM'))});}return _0x3a9659;});}}function Be(_0x22bb49){let _0x1aa56d=_0x22bb49['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1aa56d;){const _0x142d3a=_0x1aa56d['getAttribute']('listItemId');if(!_0x142d3a)return!0x1;if(_0x142d3a==_0x22bb49['data']['newValue'])return'newValue';if(_0x142d3a==_0x22bb49['data']['oldValue'])return'oldValue';_0x1aa56d=_0x1aa56d['previousSibling'];}return!0x1;}class X extends _0x44fd37{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x658f33=this['editor']['config']['get']('list.properties'),_0x883f64=this['editor']['plugins']['get']('TrackChangesEditing');_0x658f33['styles']&&(_0x883f64['enableDefaultAttributesIntegration']('listStyle'),_0x883f64['registerBlockAttribute']('listStyle')),_0x658f33['reversed']&&(_0x883f64['enableDefaultAttributesIntegration']('listReversed'),_0x883f64['registerBlockAttribute']('listReversed')),_0x658f33['startIndex']&&(_0x883f64['enableDefaultAttributesIntegration']('listStart'),_0x883f64['registerBlockAttribute']('listStart'));const _0x2a288b={'type':'format','content':''};_0x883f64['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4edee8=this['editor']['locale'];_0x883f64['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4edee8,'FORMAT_LIST_REVERSED')),_0x883f64['descriptionFactory']['registerDescriptionCallback'](_0x52406e=>{const {data:_0x33b180}=_0x52406e;if(_0x33b180&&'listReversed'==_0x33b180['key'])return null==_0x33b180['newValue']||0x0==_0x33b180['newValue']&&null==_0x33b180['oldValue']?_0x2a288b:void 0x0;}),_0x883f64['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4edee8,'FORMAT_LIST_START')),_0x883f64['descriptionFactory']['registerDescriptionCallback'](_0x4ec130=>{const {data:_0x91211a}=_0x4ec130;if(_0x91211a&&'listStart'==_0x91211a['key'])return null==_0x91211a['newValue']||0x1==_0x91211a['newValue']&&null==_0x91211a['oldValue']?_0x2a288b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x948145=>{if(_0x948145['batch']['isUndo'])return!0x1;let _0x4a51a3=!0x1;const _0x1ccaa0=_0x883f64['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x368030=>{const _0x2d3df4=_0x883f64['_getAttributeKey'](_0x368030);return'listStart'==_0x2d3df4||'listReversed'==_0x2d3df4;});for(const _0x37fe2c of _0x1ccaa0){const _0x579667=_0x37fe2c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x579667||'customNumbered'==_0x579667)continue;_0x883f64['_findSuggestions'](_0x37fe2c['getFirstRange'](),'attribute')['find'](_0x56afbf=>'listType'==_0x883f64['_getAttributeKey'](_0x56afbf['suggestion']))||(_0x948145['removeMarker'](_0x37fe2c['getFirstMarker']()),_0x4a51a3=!0x0);}return _0x4a51a3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4cb824){const _0x3db522=this['editor']['locale'],{data:_0x145486}=_0x4cb824,_0x274f6d={'type':'format','content':''};if(!_0x145486||'listStyle'!=_0x145486['key'])return;if(!_0x145486['oldValue'])return'default'==_0x145486['newValue']?_0x274f6d:{'type':'format','content':''+o(_0x3db522,'*Set\x20format:*\x20%0',o(_0x3db522,this['_getTranslationKeyForListStyle'](_0x145486['newValue'])))};if(!_0x145486['newValue']){if('default'==_0x145486['oldValue'])return _0x274f6d;let _0x5af25e=_0x4cb824['head'];for(;_0x5af25e;){if(_0x5af25e['data']&&'listType'==_0x5af25e['data']['key']&&_0x5af25e['data']['newValue'])return _0x274f6d;_0x5af25e=_0x5af25e['next'];}return{'type':'format','content':''+o(_0x3db522,'*Remove\x20format:*\x20%0',o(_0x3db522,this['_getTranslationKeyForListStyle'](_0x145486['oldValue'])))};}if('default'!=_0x145486['newValue'])return{'type':'format','content':''+o(_0x3db522,'*Set\x20format:*\x20%0',o(_0x3db522,this['_getTranslationKeyForListStyle'](_0x145486['newValue'])))};let _0x33a668=_0x4cb824['head'];for(;_0x33a668;){if(_0x33a668['data']&&'listType'==_0x33a668['data']['key']&&_0x33a668['data']['newValue']&&_0x33a668['data']['oldValue'])return _0x274f6d;_0x33a668=_0x33a668['next'];}return{'type':'format','content':o(_0x3db522,'*Set\x20format:*\x20%0',o(_0x3db522,'ELEMENT_'+_0x4cb824['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4aa1ac=this['editor'],_0xa476b9=_0x4aa1ac['locale'];_0x4aa1ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc763fc=>{if('formatBlock'!=_0xc763fc['type'])return;const {data:_0x3f6b4c}=_0xc763fc;if(!_0x3f6b4c)return;let _0x50b3ad,_0x50bce6;switch(_0x3f6b4c['commandName']){case'listStyle':_0x50b3ad='*Change\x20to:*\x20%0',_0x50bce6={'type':'format','content':o(_0xa476b9,_0x50b3ad,o(_0xa476b9,this['_getTranslationKeyForListStyle'](_0x3f6b4c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x50b3ad=_0x3f6b4c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x50bce6={'type':'format','content':o(_0xa476b9,_0x50b3ad)};break;case'listStart':_0x50b3ad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x50bce6={'type':'format','content':o(_0xa476b9,_0x50b3ad,_0x3f6b4c['commandParams'][0x0]['startIndex'])};}return _0x50bce6;});}['_getTranslationKeyForListStyle'](_0x38e824){return'ELEMENT_'+function(_0x3f93fe){if(Re['includes'](_0x3f93fe))return'bulleted';if(Fe['includes'](_0x3f93fe))return'numbered';return null;}(_0x38e824)['toUpperCase']()+'_LIST_'+_0x38e824['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x44fd37{['afterInit'](){const _0x2b171c=this['editor'];_0x2b171c['commands']['get']('emoji')&&_0x2b171c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x44fd37{static get['requires'](){return[_0xd9c1a];}['init'](){const _0x4a2cb3=this['editor'],_0x3fec8f=_0x4a2cb3['plugins']['get']('TrackChangesEditing'),_0x4a01fc=_0x4a2cb3['commands']['get']('enter');_0x3fec8f['enableCommand']('enter',()=>{_0x4a2cb3['model']['change'](_0x20a61a=>{const _0x1bd68f=_0x4a2cb3['model']['document']['selection'],_0x423a5f=_0x1bd68f['getFirstPosition'](),_0x59e93b=_0x39adac['fromRange'](_0x1bd68f['getFirstRange']());if(_0x4a01fc['enterBlock'](_0x20a61a)){const _0x4d4940=_0x4a2cb3['model']['createPositionAt'](_0x423a5f['parent']['nextSibling'],0x0),_0x3f3d19=_0x20a61a['createRange'](_0x423a5f,_0x4d4940);_0x3fec8f['markInsertion'](_0x3f3d19);}else _0x20a61a['setSelection'](_0x20a61a['createRange'](_0x59e93b['end']));_0x59e93b['detach'](),_0x4a01fc['fire']('afterExecute',{'writer':_0x20a61a});});}),_0x4a2cb3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x4a2cb3,'split'),{'priority':'high'}),_0x4a2cb3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5aa9a8,_0x5dd729,_0x6b558a)=>{const _0x4b9586=_0x6b558a['mapper']['markerNameToElements'](_0x5dd729['markerName']);if(_0x4b9586){for(const _0x43e552 of _0x4b9586)_0x43e552['hasClass']('ck-suggestion-marker-split')&&(_0x6b558a['mapper']['unbindElementFromMarkerName'](_0x43e552,_0x5dd729['markerName']),_0x6b558a['writer']['remove'](_0x43e552));}},{'priority':'high'}),_0x4a2cb3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x490bc7,_0x473da,_0x4b3712)=>{_0x4b3712['options']['showSuggestionHighlights']&&Ge(_0x4a2cb3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x490bc7,_0x473da,_0x4b3712);},{'priority':'high'});}}class tt extends _0x44fd37{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x11fcf6=this['editor']['plugins']['get']('TrackChangesEditing');_0x11fcf6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x11fcf6['enableCommand']('findNext'),_0x11fcf6['enableCommand']('findPrevious'),_0x11fcf6['enableCommand']('replace'),_0x11fcf6['enableCommand']('replaceAll');}['handleFindCommand'](_0x3c116e,_0x3d2144,_0x3e4d82={}){const _0x342ac9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3c116e(_0x33ca9c=>{let _0x5b9f6c=('string'==typeof _0x3d2144?_0x342ac9['findByTextCallback'](_0x3d2144,_0x3e4d82):_0x3d2144)(_0x33ca9c);Array['isArray'](_0x5b9f6c)&&(_0x5b9f6c={'results':_0x5b9f6c,'searchText':'string'==typeof _0x3d2144?_0x3d2144:''});const _0x4d7e96=_0x5b9f6c['results']['filter'](_0x2e3d20=>!0x1===this['_isInDeletionRange'](_0x2e3d20,_0x33ca9c['item']));return{..._0x5b9f6c,'results':_0x4d7e96};},_0x3e4d82);}['_isInDeletionRange'](_0x289a63,_0x4a84ce){const _0x5f4904=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a84ce,_0x289a63['start']),this['editor']['model']['createPositionAt'](_0x4a84ce,_0x289a63['end']));for(const _0x1f961d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5f4904['getIntersection'](_0x1f961d['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x44fd37{['afterInit'](){const _0x422ce5=this['editor']['locale'],_0x2db4b0=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3eca8a,commandName:_0x5c63fc}of eo)this['editor']['plugins']['has'](_0x3eca8a)&&(_0x2db4b0['enableDefaultAttributesIntegration'](_0x5c63fc),_0x2db4b0['registerInlineAttribute'](_0x5c63fc));_0x2db4b0['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x422ce5,'FORMAT_FONT_SIZE')),_0x2db4b0['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x422ce5,'FORMAT_FONT_FAMILY')),_0x2db4b0['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x422ce5,'FORMAT_FONT_COLOR')),_0x2db4b0['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x422ce5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x406ce7=this['editor'],_0x415217=_0x406ce7['locale'];_0x406ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x183dc1=>{const _0x2fc5c4=_0x415217['t'];if('formatInline'!=_0x183dc1['type'])return;const {data:_0x5075af}=_0x183dc1;if(null!=_0x5075af){if('fontSize'==_0x5075af['commandName']){const _0x3ad10a=_0x5075af['commandParams'][0x0]['value'];if(_0x3ad10a){const _0x4adf77=_0x2fc5c4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3054ea=>_0x3054ea['model']==_0x3ad10a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x415217,'*Set\x20font\x20size:*\x20%0',_0x4adf77)};}return{'type':'format','content':o(_0x415217,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5075af['commandName']){const _0x2a9467=_0x5075af['commandParams'][0x0]['value'];return _0x2a9467?{'type':'format','content':o(_0x415217,'*Set\x20font\x20family:*\x20%0',_0x2a9467)}:{'type':'format','content':o(_0x415217,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5075af['commandName']){const _0x2514d0=_0x5075af['commandParams'][0x0]['value'];if(_0x2514d0){const _0x52c252=_0xd4bd1a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x39608b=>_0x39608b['model']==_0x2514d0);let _0x139907=_0x2514d0,_0x3daa16='';return _0x52c252&&(_0x139907=_0x52c252['label'],_0x3daa16=_0x2fc5c4(_0x139907)['toLowerCase']()),{'type':'format','content':o(_0x415217,'*Set\x20font\x20color:*\x20%0',_0x3daa16)['trim'](),'color':{'value':_0x2514d0,'title':_0x3daa16||_0x139907}};}return{'type':'format','content':o(_0x415217,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5075af['commandName']){const _0x5bda85=_0x5075af['commandParams'][0x0]['value'];if(_0x5bda85){const _0x4565b3=_0xd4bd1a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x406972=>_0x406972['model']==_0x5bda85);let _0x516ac2=_0x5bda85,_0x4eb19f='';return _0x4565b3&&(_0x516ac2=_0x4565b3['label'],_0x4eb19f=_0x2fc5c4(_0x516ac2)['toLowerCase']()),{'type':'format','content':o(_0x415217,'*Set\x20font\x20background\x20color:*\x20%0',_0x4eb19f)['trim'](),'color':{'value':_0x5bda85,'title':_0x4eb19f||_0x516ac2}};}return{'type':'format','content':o(_0x415217,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x44fd37{['afterInit'](){const _0x48369c=this['editor'],_0x4d9928=_0x48369c['plugins']['get']('TrackChangesEditing'),_0x36bdd9=_0x48369c['commands']['get']('copyFormat'),_0x5ac63b=_0x48369c['commands']['get']('pasteFormat');_0x36bdd9&&_0x5ac63b&&(_0x4d9928['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d9928['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x552225=this['editor'],_0x1e134c=_0x552225['locale'];_0x552225['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26b7aa=>{if('formatBlock'!=_0x26b7aa['type']&&'formatInline'!=_0x26b7aa['type'])return;const {data:_0x27d183}=_0x26b7aa;if(_0x27d183&&'pasteFormat'===_0x27d183['commandName']){const _0x1a519f=[],_0x1fb11d=_0x27d183['commandParams'][0x0];for(const [_0x30abc8,_0x54b8e1]of Object['entries'](_0x1fb11d))_0x1a519f['push'](ro(_0x552225,_0x30abc8,_0x54b8e1));return _0x1a519f['length']?{'type':'format','content':o(_0x1e134c,'*Set\x20format\x20to:*\x20%0',_0x1a519f['join'](',\x20'))}:{'type':'format','content':o(_0x1e134c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x27c773,_0x564021,_0x46371b){const _0xb2d068=_0x27c773['locale']['t'],_0x89689=_0x564021['split'](/(?=[A-Z])/)['join']('\x20'),_0x55ff0a=_0xb2d068(_0x89689['charAt'](0x0)['toUpperCase']()+_0x89689['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x46371b)return _0x55ff0a;if('fontColor'===_0x564021||'fontBackgroundColor'===_0x564021){const _0x2179b2=_0xd4bd1a(_0x27c773['config']['get']('fontColor.colors'))['find'](_0x1a46d1=>_0x1a46d1['model']==_0x46371b);return _0x55ff0a+'\x20('+(_0x2179b2?_0xb2d068(_0x2179b2['label'])['toLowerCase']():_0x46371b)+')';}if('fontSize'===_0x564021&&isNaN(parseFloat(_0x46371b))){const _0x25e7d7=_0x27c773['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x27c773['config']['get']('fontSize.options'))['find'](_0x56260d=>_0x56260d['model']==_0x46371b);return _0x55ff0a+'\x20('+(_0x25e7d7?_0xb2d068(_0x25e7d7['title'])['toLowerCase']():_0x46371b)+')';}return _0x55ff0a+'\x20('+_0x46371b+')';}class nt extends _0x44fd37{['_headingOptions'];['afterInit'](){const _0x492282=this['editor'];if(!_0x492282['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x492282['config']['get']('heading.options');const _0x1a3371=_0x492282['locale'],_0x582f46=_0x492282['plugins']['get']('TrackChangesEditing');_0x582f46['enableDefaultAttributesIntegration']('heading');for(const _0x147331 of this['_headingOptions'])'paragraph'!=_0x147331['model']&&_0x582f46['descriptionFactory']['registerElementLabel'](_0x147331['model'],_0x31a35f=>{const _0x2c561a=this['_getHeadingLevel'](_0x147331['model']);return null!==_0x2c561a?_0xce369a(_0x31a35f,_0x2c561a):_0x9e70aa(_0x31a35f,_0x147331['title']);});function _0xce369a(_0xe123c8,_0x2d24be){return o(_0x1a3371,'ELEMENT_HEADING',[_0xe123c8,_0x2d24be]);}function _0x9e70aa(_0xe36af,_0x37f56b){return o(_0x1a3371,'ELEMENT_HEADING_CUSTOM',[_0xe36af,_0x37f56b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x457502=this['editor'],_0x1eb0ea=_0x457502['locale'];function _0x26dbcd(_0x2efd1b,_0x42c0f7){return o(_0x1eb0ea,'ELEMENT_HEADING_CUSTOM',[_0x2efd1b,_0x42c0f7]);}_0x457502['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ebaf4=>{if('formatBlock'!=_0x1ebaf4['type'])return;const {data:_0x1f3cda}=_0x1ebaf4;if(_0x1f3cda&&'heading'==_0x1f3cda['commandName']){const _0x58a634=_0x1f3cda['commandParams'][0x0]['value'],_0x3608c8=this['_getHeadingLevel'](_0x58a634);if(null!==_0x3608c8)return{'type':'format','content':o(_0x1eb0ea,'*Change\x20to:*\x20%0',(_0x24cc32=0x1,_0x180cf8=_0x3608c8,o(_0x1eb0ea,'ELEMENT_HEADING',[_0x24cc32,_0x180cf8])))};const _0x463bba=this['_headingOptions']['find'](_0x3d42df=>_0x3d42df['model']===_0x58a634)['title'];return{'type':'format','content':o(_0x1eb0ea,'*Change\x20to:*\x20%0',_0x26dbcd(0x1,_0x463bba))};}var _0x24cc32,_0x180cf8;});}['_getHeadingLevel'](_0x2f97d){const _0xabef98=_0x2f97d['match'](/^heading(\d+)/);if(_0xabef98)return _0xabef98[0x1];const _0x12f9c7=this['_headingOptions']?.['find'](_0x52d031=>_0x52d031['model']==_0x2f97d);if(_0x12f9c7&&_0x12f9c7['view']){const _0xa262ca=_0x12f9c7['view'],_0x1b8296=(_0xa262ca['name']??_0xa262ca)['match'](/^h(\d+)/);if(_0x1b8296)return _0x1b8296[0x1];}return null;}}class st extends _0x44fd37{['afterInit'](){const _0xd51d19=this['editor'];if(!_0xd51d19['plugins']['has']('HighlightEditing'))return;const _0x499f5b=_0xd51d19['plugins']['get']('TrackChangesEditing'),_0x4e09a3=_0xd51d19['locale'];_0x499f5b['enableDefaultAttributesIntegration']('highlight'),_0x499f5b['registerInlineAttribute']('highlight'),_0x499f5b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4e09a3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4308d3=this['editor'],_0x1bc314=_0x4308d3['locale'];_0x4308d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56c256=>{if('formatInline'!=_0x56c256['type'])return;const {data:_0x1fef6b}=_0x56c256;if(_0x1fef6b&&'highlight'==_0x1fef6b['commandName']){const _0x1368b9=_0x1bc314['t'],_0x1a6e5f=_0x1fef6b['commandParams'][0x0]['value'];if(_0x1a6e5f){const _0xce2524=_0x4308d3['config']['get']('highlight.options')['find'](_0x5724fd=>_0x5724fd['model']==_0x1a6e5f),_0x238a35=_0x1368b9(_0xce2524['title'])['toLowerCase']();return{'type':'format','content':o(_0x1bc314,'*Set\x20highlight:*\x20%0',_0x238a35),'color':{'value':_0xce2524['color'],'title':_0xce2524['title']}};}return{'type':'format','content':o(_0x1bc314,'*Remove\x20highlight*',o(_0x1bc314,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x44fd37{['afterInit'](){const _0x1a7ba1=this['editor'];if(!_0x1a7ba1['plugins']['has']('HorizontalLineEditing'))return;_0x1a7ba1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2f3166=_0x1a7ba1['plugins']['get']('TrackChangesEditing'),_0x124a60=_0x1a7ba1['locale'];_0x2f3166['descriptionFactory']['registerElementLabel']('horizontalLine',_0x327d4b=>o(_0x124a60,'ELEMENT_HORIZONTAL_LINE',_0x327d4b)),_0x1a7ba1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x19cbde,{writer:_0x1ce1c6,options:_0x583a32})=>{if(!_0x583a32['showSuggestionHighlights'])return null;const _0x4babc1=_0x1ce1c6['createContainerElement']('div'),_0x4dc380=_0x1ce1c6['createEmptyElement']('hr');return _0x1ce1c6['addClass']('ck-horizontal-line',_0x4babc1),_0x1ce1c6['insert'](_0x1ce1c6['createPositionAt'](_0x4babc1,0x0),_0x4dc380),_0x4babc1;},'converterPriority':'high'});}}class rt extends _0x44fd37{['afterInit'](){const _0x45d084=this['editor'];if(!_0x45d084['plugins']['has']('HtmlEmbed'))return;const _0x260317=_0x45d084['plugins']['get']('TrackChangesEditing'),_0x301592=_0x45d084['locale'];_0x260317['descriptionFactory']['registerElementLabel']('rawHtml',_0xb46648=>o(_0x301592,'ELEMENT_HTML_EMBED',_0xb46648)),_0x260317['enableDefaultAttributesIntegration']('htmlEmbed'),_0x260317['registerBlockAttribute']('value'),_0x260317['descriptionFactory']['registerDescriptionCallback'](_0x4a25e0=>{if('attribute'!=_0x4a25e0['type'])return;const {data:_0x107b56}=_0x4a25e0;if(_0x107b56&&'value'==_0x107b56['key']&&_0x4a25e0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x29dedd=o(_0x301592,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x301592,'*Change\x20%0\x20content*',_0x29dedd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x378339=this['editor'],_0x11b8ae=_0x378339['locale'];_0x378339['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2441be=>{if('formatBlock'!=_0x2441be['type'])return;const {data:_0x28c181}=_0x2441be;if(_0x28c181&&'htmlEmbed'==_0x28c181['commandName']){const _0x3af8cf=o(_0x11b8ae,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x11b8ae,'*Change\x20%0\x20content*',_0x3af8cf)};}});}}class at extends _0x44fd37{['afterInit'](){const _0x107420=this['editor'];if(!_0x107420['plugins']['has']('ImageEditing'))return;const _0x3d3894=_0x107420['plugins']['get']('TrackChangesEditing'),_0x4f5124=_0x107420['plugins']['get']('ImageUtils'),_0x4ffbb5=_0x107420['locale'];_0x3d3894['enableCommand']('insertImage'),_0x3d3894['descriptionFactory']['registerElementLabel']('imageBlock',_0x1b1341=>o(_0x4ffbb5,'ELEMENT_IMAGE',_0x1b1341)),_0x3d3894['descriptionFactory']['registerElementLabel']('imageInline',_0x4a7dfb=>o(_0x4ffbb5,'ELEMENT_INLINE_IMAGE',_0x4a7dfb)),_0x3d3894['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ffbb5,'ELEMENT_CAPTION')),_0x107420['plugins']['has']('ImageUploadEditing')&&_0x3d3894['enableCommand']('uploadImage'),_0x107420['plugins']['has']('ImageBlockEditing')&&_0x107420['plugins']['has']('ImageInlineEditing')&&(_0x3d3894['enableCommand']('imageTypeInline',(_0x100793,_0x2efd63)=>{const _0x54ce40=_0x4f5124['getClosestSelectedImageElement'](_0x107420['model']['document']['selection']);_0x107420['model']['change'](()=>{_0x3d3894['markBlockFormat'](_0x54ce40,{'commandName':'imageTypeInline','commandParams':[_0x2efd63]},[],'convertBlockImageToInline');});}),_0x3d3894['enableCommand']('imageTypeBlock',(_0x30b637,_0x3526ef)=>{_0x107420['model']['change'](_0x429435=>{let _0x5b1a01=_0x4f5124['getClosestSelectedImageElement'](_0x107420['model']['document']['selection']),_0x2d0a2a=_0x429435['createRangeOn'](_0x5b1a01);const _0x550cf6=_0x55add0['fromPosition'](_0x2d0a2a['start'],'toPrevious'),_0x298734=_0x55add0['fromPosition'](_0x2d0a2a['end'],'toNext');_0x3d3894['forceDefaultExecution'](()=>_0x30b637(_0x3526ef)),_0x5b1a01=_0x4f5124['getClosestSelectedImageElement'](_0x107420['model']['document']['selection']),_0x2d0a2a=_0x429435['createRangeOn'](_0x5b1a01);const _0x57df17=_0x429435['createRange'](_0x550cf6,_0x298734);_0x550cf6['detach'](),_0x298734['detach'](),_0x3d3894['markBlockFormat'](_0x5b1a01,{'commandName':'imageTypeInline','commandParams':[_0x3526ef]},[],'convertInlineImageToBlock'),_0x57df17['start']['isBefore'](_0x2d0a2a['start'])&&_0x3d3894['markInsertion'](_0x429435['createRange'](_0x57df17['start'],_0x2d0a2a['start']),'convertInlineImageToBlock'),_0x2d0a2a['end']['isBefore'](_0x57df17['end'])&&_0x3d3894['markInsertion'](_0x429435['createRange'](_0x2d0a2a['end'],_0x57df17['end']),'convertInlineImageToBlock');});}),_0x3d3894['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3d3894['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3d3894['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3d3894['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3d3894['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3d3894['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2b91a7])=>{const _0x3c5218=_0x3d3894['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x35b549=_0x2b91a7['start'],_0x518b54=_0x2b91a7['end'];const _0x1b399c=_0x107420['model']['schema']['getNearestSelectionRange'](_0x35b549,'backward'),_0x404fc8=_0x107420['model']['schema']['getNearestSelectionRange'](_0x518b54,'forward');_0x1b399c['isCollapsed']&&(_0x35b549=_0x1b399c['start']),_0x404fc8['isCollapsed']&&(_0x518b54=_0x404fc8['end']),_0x3c5218([_0x107420['model']['createRange'](_0x35b549,_0x518b54)]);}),_0x3d3894['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x36dad8),_0x3d3894['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x36dad8)),_0x107420['plugins']['has']('ImageCaptionEditing')&&(_0x3d3894['enableCommand']('toggleImageCaption',(_0x34befe,_0x4f7f8b)=>{const _0xf522b7=_0x107420['plugins']['get']('ImageCaptionUtils');let _0x398ac4=_0x4f5124['getClosestSelectedImageElement'](_0x107420['model']['document']['selection']),_0x103cae=_0xf522b7['getCaptionFromImageModelElement'](_0x398ac4);_0x107420['model']['change'](()=>{if(_0x103cae)return void _0x3d3894['markDeletion'](_0x107420['model']['createRangeOn'](_0x103cae));const _0x23c807=_0x4f5124['isBlockImage'](_0x398ac4);_0x34befe(_0x4f7f8b),_0x398ac4=_0x4f5124['getClosestSelectedImageElement'](_0x107420['model']['document']['selection']),_0x103cae=_0xf522b7['getCaptionFromImageModelElement'](_0x398ac4),_0x3d3894['markInsertion'](_0x107420['model']['createRangeOn'](_0x103cae),_0x23c807?null:'imageCaption');});}),_0x3d3894['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x36dad8));const _0x506bb9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x261d82(_0x480359,_0x492047){const _0x50bafb=_0x506bb9['findIndex'](({type:_0x509a87,subType:_0x1b2547})=>_0x480359['type']==_0x509a87&&_0x480359['subType']==_0x1b2547),_0x3ff80e=_0x506bb9['findIndex'](({type:_0x341fcf,subType:_0x3097d0})=>_0x492047['type']==_0x341fcf&&_0x492047['subType']==_0x3097d0);if(_0x50bafb<0x0||_0x3ff80e<0x0)return!0x1;const _0x205e89=_0x480359['getFirstRange'](),_0x2b8982=_0x492047['getFirstRange']();if((0x0==_0x50bafb||0x1==_0x50bafb)&&0x2==_0x3ff80e&&_0x205e89['isIntersecting'](_0x2b8982))return!0x0;if(0x2==_0x50bafb&&0x3==_0x3ff80e){const _0x587b63=_0x3d3894['_findSuggestions'](_0x205e89,'insertion')['filter'](({suggestion:_0x4851f3,meta:_0x24362d})=>_0x24362d['isOwn']&&'convertInlineImageToBlock'==_0x4851f3['subType']);if(_0x587b63['length']>0x1&&_0x2b8982['end']['isEqual'](_0x205e89['start']))return!0x0;if(0x1==_0x587b63['length']&&(_0x205e89['start']['isEqual'](_0x2b8982['end'])||_0x205e89['end']['isEqual'](_0x2b8982['start'])))return!0x0;}if(0x3==_0x50bafb&&0x3==_0x3ff80e&&_0x205e89['start']['isBefore'](_0x2b8982['start'])){const _0x596158=_0x205e89['end']['nodeAfter'],_0x473e3e=_0x2b8982['start']['nodeBefore'];return _0x4f5124['isBlockImage'](_0x596158)&&_0x596158===_0x473e3e;}return!0x1;}function _0x36dad8(_0x5cc40f,_0x41653e){return _0x261d82(_0x5cc40f,_0x41653e)?[_0x5cc40f,_0x41653e]:_0x261d82(_0x41653e,_0x5cc40f)?[_0x41653e,_0x5cc40f]:null;}_0x107420['plugins']['has']('ImageResize')&&(_0x3d3894['enableDefaultAttributesIntegration']('resizeImage'),_0x3d3894['registerBlockAttribute']('resizedWidth'),_0x3d3894['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ffbb5,'FORMAT_IMAGE_SIZE'))),_0x107420['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3d3894['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3d3894['registerBlockAttribute']('alt')),_0x107420['plugins']['has']('PictureEditing')&&(_0x3d3894['registerBlockAttribute']('sources'),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0xb81af8=>{if('attribute'!=_0xb81af8['type'])return;const {data:_0x2631e3}=_0xb81af8;return _0x2631e3&&'sources'==_0x2631e3['key']?{'type':'format','content':''}:void 0x0;})),_0x107420['plugins']['has']('ImageSizeAttributes')&&(_0x3d3894['registerBlockAttribute']('width'),_0x3d3894['registerBlockAttribute']('height'),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0x2dfcf0=>{if('attribute'!=_0x2dfcf0['type'])return;const {data:_0x4888e4}=_0x2dfcf0;return!_0x4888e4||'width'!=_0x4888e4['key']&&'height'!=_0x4888e4['key']?void 0x0:{'type':'format','content':''};})),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0x5cfcaa=>{if(!!_0x506bb9['find'](({type:_0x4af753,subType:_0x5d8d46})=>_0x5cfcaa['type']==_0x4af753&&_0x5cfcaa['subType']==_0x5d8d46))return _0x5cfcaa['previous']?{}:void 0x0;}),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0x546b77=>{if('insertion'==_0x546b77['type']||'deletion'==_0x546b77['type']){const _0x4f7149=_0x546b77['getContainedElement']();if(_0x4f7149&&_0x4f7149['is']('element','caption'))return{'type':'insertion'==_0x546b77['type']?'addObject':'removeObject','element':_0x4f7149,'quantity':0x1};}}),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0x6b54a=>'formatBlock'==_0x6b54a['type']&&'convertInlineImageToBlock'==_0x6b54a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x6b54a['type']&&'convertBlockImageToInline'==_0x6b54a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0x283ab8=>{if('attribute'!=_0x283ab8['type'])return;const {data:_0x456c1f}=_0x283ab8;if(!_0x456c1f||'alt'!=_0x456c1f['key'])return;const _0x44a147=_0x456c1f['newValue'];return _0x44a147?{'type':'format','content':o(_0x4ffbb5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44a147+'\x22')}:{'type':'format','content':o(_0x4ffbb5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf91d=this['editor'],_0x41422f=_0x3cf91d['locale'];_0x3cf91d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1033cc=>{if('formatBlock'!=_0x1033cc['type']&&'formatInline'!=_0x1033cc['type'])return;const {data:_0x3fb179}=_0x1033cc;if(_0x3fb179){if('imageTextAlternative'==_0x3fb179['commandName']){const _0x59817e=_0x3fb179['commandParams'][0x0]['newValue'];return _0x59817e?{'type':'format','content':o(_0x41422f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x59817e+'\x22')}:{'type':'format','content':o(_0x41422f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3fb179['commandName']){const _0x5c5615=_0x3fb179['commandParams'][0x0]['width'];return _0x5c5615?{'type':'format','content':o(_0x41422f,'*Set\x20image\x20width:*\x20%0',_0x5c5615)}:{'type':'format','content':o(_0x41422f,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x44fd37{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x122427=this['editor']['locale'],_0x489305=this['editor']['plugins']['get']('TrackChangesEditing');_0x489305['enableDefaultAttributesIntegration']('replaceImageSource'),_0x489305['registerBlockAttribute']('src'),_0x489305['descriptionFactory']['registerDescriptionCallback'](_0x3c6575=>{if('attribute'!=_0x3c6575['type'])return;const {data:_0x541a03}=_0x3c6575;return _0x541a03&&'src'==_0x541a03['key']?_0x541a03['newValue']&&_0x541a03['oldValue']?{'type':'format','content':o(_0x122427,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b8ebd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b8ebd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4b8ebd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b8ebd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4b8ebd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbdbe68=this['editor'],_0x47fe4b=_0xbdbe68['locale'];_0xbdbe68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4820db=>{if('formatBlock'!=_0x4820db['type']&&'formatInline'!=_0x4820db['type'])return;const {data:_0x3f83b4}=_0x4820db;if(!_0x3f83b4||'replaceImageSource'!=_0x3f83b4['commandName'])return;return{'type':'format','content':o(_0x47fe4b,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x44fd37{['afterInit'](){const _0x6eb365=this['editor'];if(!_0x6eb365['plugins']['has']('ImageStyleEditing'))return;const _0x460733=_0x6eb365['plugins']['get']('TrackChangesEditing'),_0x3af3b9=_0x6eb365['plugins']['get']('ImageUtils'),_0x2de8d8={};_0x460733['enableCommand']('imageStyle',(_0x584f81,_0x68cab)=>{const _0x45caff=_0x6eb365['plugins']['get']('Users')['me'],_0x5d5d13=_0x6eb365['commands']['get']('imageStyle');let _0x565071=_0x3af3b9['getClosestSelectedImageElement'](_0x6eb365['model']['document']['selection']),_0x57b969=_0x6eb365['model']['createRangeOn'](_0x565071),_0x30ba93=_0x5d5d13['value'];if(_0x30ba93==_0x68cab['value'])return;const _0x3c8c78={'commandName':'imageStyle','commandParams':[_0x68cab],'formatGroupId':_0x5b7b63()};_0x6eb365['model']['change'](()=>{if(_0x460733['getSuggestions']()['filter'](_0x3501d1=>_0x3501d1['isInContent']&&_0x45caff==_0x3501d1['author']&&('formatBlock'==_0x3501d1['type']||'formatInline'==_0x3501d1['type'])&&('imageStylePreApply'==_0x3501d1['subType']||'imageStylePostApply'==_0x3501d1['subType'])&&_0x3501d1['getFirstRange']()['isEqual'](_0x57b969))['forEach'](_0x232c47=>_0x460733['discardSuggestion'](_0x232c47['head'])),_0x565071=_0x3af3b9['getClosestSelectedImageElement'](_0x6eb365['model']['document']['selection']),_0x57b969=_0x6eb365['model']['createRangeOn'](_0x565071),_0x5d5d13['refresh'](),_0x6eb365['commands']['get']('imageTypeInline')['refresh'](),_0x6eb365['commands']['get']('imageTypeBlock')['refresh'](),_0x30ba93=_0x5d5d13['value'],_0x30ba93!=_0x68cab['value'])return _0x3af3b9['isInlineImage'](_0x565071)&&_0x5d5d13['shouldConvertImageType'](_0x68cab['value'],_0x565071)?(_0x584f81({..._0x68cab,'setImageSizes':!0x1}),_0x565071=_0x3af3b9['getClosestSelectedImageElement'](_0x6eb365['model']['document']['selection']),void _0x460733['markBlockFormat'](_0x565071,{..._0x3c8c78,'commandReversedParams':[{'value':_0x30ba93||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3af3b9['isBlockImage'](_0x565071)?_0x460733['markBlockFormat'](_0x565071,_0x3c8c78,[],'imageStylePostApply'):_0x460733['markInlineFormat'](_0x57b969,_0x3c8c78,'imageStylePostApply'));});});for(const _0x44fb3b of _0x6eb365['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2de8d8[_0x44fb3b['name']]=_0x44fb3b['title']['toLowerCase']();_0x460733['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x460733['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x460733['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x460733['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x34765e])=>{_0x3af3b9['setImageNaturalSizeAttributes'](_0x34765e['getContainedElement']());}),_0x460733['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1335ad,_0x301f72)=>{_0x460733['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1335ad,{'commandName':_0x301f72['commandName'],'commandParams':_0x301f72['commandReversedParams']});}),_0x460733['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5af2df,_0x4d599a){if(_0x3fd55b(_0x5af2df,_0x4d599a))return[_0x5af2df,_0x4d599a];if(_0x3fd55b(_0x4d599a,_0x5af2df))return[_0x4d599a,_0x5af2df];return null;});const _0x3355e9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3fd55b(_0x383437,_0x2fedff){const _0x1c7158=_0x3355e9['findIndex'](({type:_0x507ae1,subType:_0x1559b7})=>_0x383437['type']==_0x507ae1&&_0x383437['subType']==_0x1559b7),_0x208906=_0x3355e9['findIndex'](({type:_0x326691,subType:_0x56964b})=>_0x2fedff['type']==_0x326691&&_0x2fedff['subType']==_0x56964b);if(_0x1c7158<0x0||_0x208906<0x0)return!0x1;const _0x4b26df=_0x383437['getFirstRange'](),_0x22af90=_0x2fedff['getFirstRange']();if((0x0==_0x1c7158||0x1==_0x1c7158)&&0x2==_0x208906&&_0x4b26df['isIntersecting'](_0x22af90))return!0x0;if(0x2==_0x1c7158&&0x3==_0x208906){const _0x702937=_0x460733['_findSuggestions'](_0x4b26df,'insertion')['filter'](({suggestion:_0x404eed,meta:_0xa2bdc4})=>_0xa2bdc4['isOwn']&&'convertInlineImageToBlock'==_0x404eed['subType']);if(_0x702937['length']>0x1&&_0x22af90['end']['isEqual'](_0x4b26df['start']))return!0x0;if(0x1==_0x702937['length']&&(_0x4b26df['start']['isEqual'](_0x22af90['end'])||_0x4b26df['end']['isEqual'](_0x22af90['start'])))return!0x0;}if(0x3==_0x1c7158&&0x3==_0x208906&&_0x4b26df['start']['isBefore'](_0x22af90['start'])){const _0xf7ed69=_0x4b26df['end']['nodeAfter'],_0x3110dd=_0x22af90['start']['nodeBefore'];return _0x3af3b9['isBlockImage'](_0xf7ed69)&&_0xf7ed69===_0x3110dd;}return!0x1;}_0x6eb365['model']['document']['registerPostFixer'](()=>{let _0x2b1ad0=!0x1;const _0x3ba3de=Array['from'](_0x6eb365['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f5918,data:_0x5359ec}of _0x3ba3de){const {group:_0x5c57d1,type:_0x2d06ac,subType:_0x1b4d83,id:_0xf8fa76}=_0x460733['_splitMarkerName'](_0x3f5918);if('suggestion'==_0x5c57d1&&_0x460733['hasSuggestion'](_0xf8fa76)){if('formatBlock'==_0x2d06ac&&('imageStylePreApply'==_0x1b4d83||'imageStylePostApply'==_0x1b4d83)){const _0x233c49=_0x460733['getSuggestion'](_0xf8fa76);if(_0x5359ec['newRange']){const _0x3fb5d5=_0x233c49['getFirstRange']()['getContainedElement']();if(_0x3af3b9['isBlockImage'](_0x3fb5d5))continue;_0x460733['discardSuggestion'](_0x233c49),_0x2b1ad0=!0x0;}}if('insertion'==_0x2d06ac&&'imageCaption'==_0x1b4d83&&!_0x5359ec['newRange']){const _0xd327a1=_0x460733['getSuggestion'](_0xf8fa76);_0xd327a1['next']&&_0xd327a1['next']['isInContent']&&(_0x460733['discardSuggestion'](_0xd327a1['next']),_0x2b1ad0=!0x0);}}}return _0x2b1ad0;}),this['_registerLegacyDescription'](_0x2de8d8);}['_registerLegacyDescription'](_0x2899de){const _0x53330e=this['editor'],_0x7482a=_0x53330e['locale'];_0x53330e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55ee7f=>{if('formatBlock'!=_0x55ee7f['type']&&'formatInline'!=_0x55ee7f['type'])return;const {data:_0x21055a}=_0x55ee7f;if(!_0x21055a||'imageStyle'!=_0x21055a['commandName'])return;const _0x31d5e8=_0x21055a['commandParams'][0x0]['value'];return _0x33326f('side'===_0x31d5e8?o(_0x7482a,'FORMAT_SIDE_IMAGE'):_0x2899de[_0x31d5e8]||_0x31d5e8);function _0x33326f(_0x8e93dd){return{'type':'format','content':o(_0x7482a,'*Format:*\x20%0',_0x8e93dd)};}});}}class ft extends _0x44fd37{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x41ebb8){super(_0x41ebb8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x380676=this['editor'],_0x3fd575=_0x380676['commands']['get']('importWord'),_0x2cf897=_0x380676['commands']['get']('trackChanges');_0x3fd575&&(_0x3fd575['on']('execute',(_0x3aba9b,[,_0x4e2c01])=>{this['_trackChangesValueDuringImport']=_0x2cf897['value'],_0x4e2c01['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3fd575,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3fd575,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2cf897['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x380676['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x534994,_0x5cb2c5){const {suggestions:_0x4e95ab}=_0x5cb2c5,_0x2de1cd=this['editor']['commands']['get']('trackChanges'),_0x2f8977=_0x2de1cd['value'];this['_trackChangesValueDuringImport']!==_0x2f8977&&(_0x2de1cd['execute'](),this['_trackChangesExecuted']=!0x0),_0x4e95ab&&_0x4e95ab['forEach'](({id:_0x1c0434,type:_0x53eb06,author:_0x219a2e,created_at:_0x592155})=>{const _0x31c7bc={'id':_0x1c0434,'type':_0x53eb06,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x219a2e,'createdAt':_0x592155?new Date(_0x592155):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x31c7bc);});}}class ht extends _0x44fd37{['afterInit'](){const _0x504338=this['editor'],_0x5b9be5=_0x504338['plugins']['get']('TrackChangesEditing');if(_0x504338['plugins']['has']('IndentEditing')&&(_0x5b9be5['enableCommand']('indent'),_0x5b9be5['enableCommand']('outdent')),_0x504338['plugins']['has']('IndentBlock')){for(const _0x296d9f of['indentBlock','outdentBlock'])_0x5b9be5['enableDefaultAttributesIntegration'](_0x296d9f);}const _0x559958=_0x504338['locale'];_0x5b9be5['registerBlockAttribute']('blockIndent'),_0x5b9be5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x559958,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ac5ef=this['editor'],_0x36b4b0=_0x1ac5ef['locale'],_0x31cdbf=_0x1ac5ef['plugins']['get']('TrackChangesEditing');_0x31cdbf['descriptionFactory']['registerDescriptionCallback'](_0x24b567=>{if('formatBlock'!=_0x24b567['type'])return;const {data:_0x30a1dd}=_0x24b567;if(!_0x30a1dd)return;if('indentBlock'!=_0x30a1dd['commandName']&&'outdentBlock'!=_0x30a1dd['commandName'])return;const _0x324d57=_0x24b567['getItems']()[0x0],_0x2b8c2d=_0x31cdbf['descriptionFactory']['getItemLabel'](_0x324d57);return'indentBlock'==_0x30a1dd['commandName']?{'type':'format','content':o(_0x36b4b0,'*Indent:*\x20%0',_0x2b8c2d)}:'outdentBlock'==_0x30a1dd['commandName']?{'type':'format','content':o(_0x36b4b0,'*Outdent:*\x20%0',_0x2b8c2d)}:void 0x0;});}}class gt extends _0x44fd37{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x44fd37{['afterInit'](){const _0x4182a6=this['editor'];if(!_0x4182a6['plugins']['has']('LinkEditing'))return;const _0x3e1957=_0x4182a6['plugins']['get']('TrackChangesEditing'),_0x45469a=_0x4182a6['commands']['get']('link');_0x3e1957['enableDefaultAttributesIntegration']('link'),_0x3e1957['enableDefaultAttributesIntegration']('unlink'),_0x3e1957['registerInlineAttribute']('linkHref');for(const _0x52beb6 of _0x45469a['manualDecorators'])_0x3e1957['registerInlineAttribute'](_0x52beb6['id']),_0x3e1957['descriptionFactory']['registerAttributeLabel'](_0x52beb6['id'],'link\x20('+_0x52beb6['label']['toLowerCase']()+')');_0x3e1957['descriptionFactory']['registerDescriptionCallback'](_0x384a76=>{if('attribute'!=_0x384a76['type'])return;const {data:_0x27e876}=_0x384a76;if(!_0x27e876||'linkHref'!=_0x27e876['key'])return;const _0xca7a14=_0x27e876['newValue'],_0x55ee34=_0x4182a6['locale'];return{'type':'format','content':null==_0xca7a14?o(_0x55ee34,'*Remove\x20link*'):o(_0x55ee34,'*Set\x20link:*\x20%0','\x22'+_0xca7a14+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c7dea=this['editor'],_0x2a23ac=_0x1c7dea['locale'];_0x1c7dea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39fe52=>{if('formatInline'!=_0x39fe52['type'])return;const {data:_0x2e5af7}=_0x39fe52;if(_0x2e5af7){if('link'==_0x2e5af7['commandName']){const _0x42d31a=_0x2e5af7['commandParams'][0x0];return{'type':'format','content':o(_0x2a23ac,'*Set\x20link:*\x20%0','\x22'+_0x42d31a+'\x22')};}return'unlink'==_0x2e5af7['commandName']?{'type':'format','content':o(_0x2a23ac,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x44fd37{['afterInit'](){const _0x22223a=this['editor'],_0x8214a5=_0x22223a['locale'];if(!_0x22223a['plugins']['has']('LegacyListEditing'))return;const _0x280b8c=_0x22223a['plugins']['get']('TrackChangesEditing'),_0x15662b=_0x22223a['plugins']['has']('LegacyTodoListEditing');function _0x190929(_0x99dae5){return()=>{const _0x5902ae=_0x22223a['model']['document']['selection'],_0x4854a8=_0x22223a['commands']['get'](_0x99dae5);if(_0x4854a8['value'])return void _0x22223a['execute']('paragraph',{});const _0x4aafbe=_0x99dae5['slice'](0x0,-0x4),_0x48e8f9=function(_0x2005df,_0x21479e,_0x383cfc){let _0x3758c1=Array['from'](_0x2005df)['filter'](_0x4dee56=>function(_0x2429b4,_0x2569db){return _0x2569db['checkChild'](_0x2429b4['parent'],'listItem')&&!_0x2569db['isObject'](_0x2429b4);}(_0x4dee56,_0x383cfc));_0x3758c1=_0x3758c1['filter'](_0x568d8f=>!_0x568d8f['is']('element','listItem')||_0x568d8f['getAttribute']('listType')!=_0x21479e);const _0x29fdbb=new Set();for(const _0x1e4323 of _0x3758c1)_0x1e4323['is']('element','listItem')?_0x29fdbb['add'](Ne(_0x1e4323)):_0x29fdbb['add'](_0x1e4323);return Array['from'](_0x29fdbb);}(_0x5902ae['getSelectedBlocks'](),_0x4aafbe,_0x22223a['model']['schema']);_0x22223a['model']['change'](()=>{for(const _0x279fba of _0x48e8f9)_0x280b8c['markBlockFormat'](_0x279fba,{'commandName':_0x99dae5,'commandParams':[{'forceValue':!_0x4854a8['value']}],'formatGroupId':'blockName'},Se(_0x279fba));});};}function _0x39fbaa(_0x1c2513){return()=>{const _0x4d62e7=function(_0x311023){let _0x428451=Array['from'](_0x311023);const _0x5aedde=_0x428451['findIndex'](_0x3a4df0=>'listItem'!=_0x3a4df0['name']);return _0x5aedde>-0x1&&(_0x428451=_0x428451['slice'](0x0,_0x5aedde)),_0x428451;}(_0x22223a['model']['document']['selection']['getSelectedBlocks']()),_0x23b327=_0x22223a['model']['createRange'](_0x22223a['model']['createPositionAt'](_0x4d62e7[0x0],'before'),_0x22223a['model']['createPositionAt'](_0x4d62e7[_0x4d62e7['length']-0x1],'end'));_0x22223a['model']['change'](()=>{_0x280b8c['markBlockFormat'](_0x23b327,{'commandName':_0x1c2513,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c59ee){const _0x2d4b72=new Set();for(const _0x3d7332 of _0x3c59ee){let _0x529158=_0x3d7332['nextSibling'];for(;_0x529158&&_0x529158['getAttribute']('listIndent')>_0x3d7332['getAttribute']('listIndent');)_0x2d4b72['add'](_0x529158),_0x529158=_0x529158['nextSibling'];}return Array['from'](_0x2d4b72);}(_0x4d62e7));});};}_0x280b8c['enableCommand']('numberedList',_0x190929('numberedList')),_0x280b8c['enableCommand']('bulletedList',_0x190929('bulletedList')),_0x15662b&&_0x280b8c['enableCommand']('todoList',_0x190929('todoList')),_0x280b8c['enableCommand']('indentList',_0x39fbaa('indentList')),_0x280b8c['enableCommand']('outdentList',_0x39fbaa('outdentList')),_0x15662b&&_0x280b8c['enableCommand']('checkTodoList',()=>{const _0x5dfbbe=_0x22223a['commands']['get']('checkTodoList'),_0x37d533=Array['from'](_0x5dfbbe['_selectedElements']);_0x37d533['filter'](_0x115ae9=>_0x115ae9['getAttribute']('todoListChecked')!=_0x5dfbbe['value']),_0x22223a['model']['change'](()=>{for(const _0xbce34d of _0x37d533)_0x280b8c['markBlockFormat'](_0xbce34d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5dfbbe['value']}]});});}),_0x280b8c['descriptionFactory']['registerElementLabel']('listItem',_0x348fc0=>o(_0x8214a5,'ELEMENT_LIST_ITEM',_0x348fc0)),_0x280b8c['descriptionFactory']['registerDescriptionCallback'](_0x3a8eff=>{if('formatBlock'!=_0x3a8eff['type']&&'formatInline'!=_0x3a8eff['type'])return;const {data:_0x53bf45}=_0x3a8eff;if(_0x53bf45){if('numberedList'==_0x53bf45['commandName']||'bulletedList'==_0x53bf45['commandName']||'todoList'==_0x53bf45['commandName'])switch(_0x53bf45['commandName']['replace']('List','')){case'bulleted':return _0x3cad4a(o(_0x8214a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3cad4a(o(_0x8214a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3cad4a(o(_0x8214a5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x53bf45['commandName'])return{'type':'format','content':o(_0x8214a5,'*Indent:*\x20%0',o(_0x8214a5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x53bf45['commandName'])return{'type':'format','content':o(_0x8214a5,'*Outdent:*\x20%0',o(_0x8214a5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x53bf45['commandName'])return _0x53bf45['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8214a5,'*Check\x20item*')}:{'type':'format','content':o(_0x8214a5,'*Uncheck\x20item*')};}function _0x3cad4a(_0x217aff){return{'type':'format','content':o(_0x8214a5,'*Change\x20to:*\x20%0',_0x217aff)};}});}}function Ne(_0x2eecb5){const _0x1ad4b5=_0x2eecb5['getAttribute']('listIndent');if(0x0==_0x1ad4b5)return _0x2eecb5;let _0x1afbb2=_0x2eecb5;for(;_0x2eecb5['previousSibling']&&_0x2eecb5['previousSibling']['is']('element','listItem');){const _0x338a9c=_0x2eecb5['previousSibling']['getAttribute']('listIndent');if(_0x338a9c==_0x1ad4b5)_0x1afbb2=_0x2eecb5['previousSibling'];else{if(_0x338a9c<_0x1ad4b5)break;}_0x2eecb5=_0x2eecb5['previousSibling'];}return _0x1afbb2;}function Se(_0x34fa8e){const _0x5b3397=[];if(_0x34fa8e['is']('element','listItem')&&_0x34fa8e['getAttribute']('listIndent')>0x0){let _0x3e22df=_0x34fa8e['nextSibling'];for(;_0x3e22df&&'listItem'==_0x3e22df['name']&&_0x3e22df['getAttribute']('listIndent')==_0x34fa8e['getAttribute']('listIndent');)_0x5b3397['push'](_0x3e22df),_0x3e22df=_0x3e22df['nextSibling'];}return _0x5b3397;}class mt extends _0x44fd37{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x13e3dd=this['editor']['config']['get']('list.properties'),_0x4d2284=this['editor']['plugins']['get']('TrackChangesEditing');_0x13e3dd['styles']&&_0x4d2284['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x13e3dd['reversed']&&_0x4d2284['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x13e3dd['startIndex']&&_0x4d2284['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d2284['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x289164,_0x16825a={}){const _0x1b31d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b1967=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1b31d5['markMultiRangeBlockFormat'](_0x4b1967,{'commandName':'listStyle','commandParams':[{'type':_0x16825a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2cb221,_0x12812a={}){const _0x1f89a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4acd10=this['_getSuggestionBlocks'](_0xe2bb19=>_0xe2bb19['is']('element','listItem')&&'numbered'===_0xe2bb19['getAttribute']('listType'));if(_0x4acd10['length']<0x1)return;const _0x32304c=_0x4acd10['map'](_0x165f0e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x165f0e,'before'),this['editor']['model']['createPositionAt'](_0x165f0e,0x0)));this['editor']['model']['change'](()=>{_0x1f89a1['markMultiRangeBlockFormat'](_0x32304c,{'commandName':'listReversed','commandParams':[{'reversed':_0x12812a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x335bb5,_0x113042={}){const _0x4c4ed7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20f9b7=this['_getSuggestionBlocks'](_0x2a3241=>_0x2a3241['is']('element','listItem')&&'numbered'===_0x2a3241['getAttribute']('listType'));if(_0x20f9b7['length']<0x1)return;const _0x3f17a9=_0x20f9b7['map'](_0x339675=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x339675,'before'),this['editor']['model']['createPositionAt'](_0x339675,0x0)));this['editor']['model']['change'](()=>{_0x4c4ed7['markMultiRangeBlockFormat'](_0x3f17a9,{'commandName':'listStart','commandParams':[{'startIndex':_0x113042['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3eda08){if('formatBlock'!=_0x3eda08['type']&&'formatInline'!=_0x3eda08['type'])return;const _0x8c63a5=this['editor']['locale'],{data:_0xcd166e}=_0x3eda08;if(!_0xcd166e)return;let _0x14e616,_0x2ebb06;switch(_0xcd166e['commandName']){case'listStyle':_0x14e616='*Change\x20to:*\x20%0',_0x2ebb06={'type':'format','content':o(_0x8c63a5,_0x14e616,o(_0x8c63a5,this['_getTranslationKeyForListStyle'](_0xcd166e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14e616=_0xcd166e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ebb06={'type':'format','content':o(_0x8c63a5,_0x14e616)};break;case'listStart':_0x14e616='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ebb06={'type':'format','content':o(_0x8c63a5,_0x14e616,_0xcd166e['commandParams'][0x0]['startIndex'])};}return _0x2ebb06;}['_getSuggestionBlocksForListStyle'](){const _0x48c5ae=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f2c9c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2f2c9c[0x0]?.['is']('element','listItem')&&_0x2f2c9c['unshift'](..._0x48c5ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2f2c9c[_0x2f2c9c['length']-0x1]?.['is']('element','listItem')&&_0x2f2c9c['push'](..._0x48c5ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2f2c9c=[...new Set(_0x2f2c9c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2f2c9c=_0x2f2c9c['filter'](_0x355587=>_0x355587['is']('element','listItem'))),_0x2f2c9c;}['_getSuggestionBlocks'](_0x44efc6){const _0x1bc79c=this['editor']['plugins']['get']('LegacyListUtils');let _0x181814=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x44efc6)['map'](_0x22b7ff=>{const _0x57a5cb=this['editor']['model']['createPositionAt'](_0x22b7ff,0x0);return[..._0x1bc79c['getSiblingNodes'](_0x57a5cb,'backward'),..._0x1bc79c['getSiblingNodes'](_0x57a5cb,'forward')];})['flat']();return _0x181814=[...new Set(_0x181814)],_0x181814;}['_getTranslationKeyForListStyle'](_0x3eea50){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3eea50)||'default')['toUpperCase']()+'_LIST_'+_0x3eea50['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x44fd37{['afterInit'](){const _0x25a34f=this['editor'];if(!_0x25a34f['plugins']['has']('MediaEmbedEditing'))return;const _0x256cc2=_0x25a34f['plugins']['get']('TrackChangesEditing'),_0x3f02c3=_0x25a34f['locale'];_0x256cc2['enableCommand']('mediaEmbed'),_0x256cc2['descriptionFactory']['registerElementLabel']('media',_0x115f2b=>o(_0x3f02c3,'ELEMENT_MEDIA',_0x115f2b)),_0x25a34f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1703f8,{writer:_0x123359,options:_0x3ac71b})=>{if(_0x3ac71b['showSuggestionHighlights'])return _0x123359['createEmptyElement']('div');},'converterPriority':'high'}),_0x25a34f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x23ce42,_0x152d16,_0x1e152b)=>{_0x1e152b['options']['showSuggestionHighlights']&&_0x23ce42['stop']();},{'priority':'high'});}}class kt extends _0x44fd37{['afterInit'](){const _0x4c0fd3=this['editor'];_0x4c0fd3['plugins']['has']('MentionEditing')&&_0x4c0fd3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x44fd37{['afterInit'](){const _0x30f956=this['editor'];if(!_0x30f956['plugins']['has']('MergeFieldsEditing'))return;const _0x49ec0a=_0x30f956['plugins']['get']('TrackChangesEditing'),_0x43c08b=_0x30f956['locale'];_0x49ec0a['enableCommand']('insertMergeField'),_0x49ec0a['enableCommand']('insertMergeFieldBlock'),_0x49ec0a['enableCommand']('insertMergeFieldImage'),_0x49ec0a['descriptionFactory']['registerElementLabel']('mergeField',_0x3e9a63=>o(_0x43c08b,'ELEMENT_MERGE_FIELD',_0x3e9a63)),_0x49ec0a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3ba828=>o(_0x43c08b,'ELEMENT_MERGE_FIELD',_0x3ba828)),_0x49ec0a['descriptionFactory']['registerDescriptionCallback'](_0x5d7344=>{if('insertion'!=_0x5d7344['type']&&'deletion'!=_0x5d7344['type'])return;const _0x34eaed=_0x5d7344['getContainedElement']();if(null==_0x34eaed)return;const _0x3c9dd5=_0x30f956['plugins']['get']('MergeFieldsEditing');let _0x36a019;switch(_0x3c9dd5['getMergeFieldType'](_0x34eaed)){case null:return;case'image':{const _0x1e1c06=_0x3c9dd5['unwrapAffixes'](_0x34eaed['getAttribute']('src'));_0x36a019=_0x3c9dd5['getLabel'](_0x1e1c06)||_0x1e1c06;break;}default:{const _0x459cd7=_0x34eaed['getAttribute']('id');_0x36a019=_0x3c9dd5['getLabel'](_0x459cd7)||_0x459cd7;break;}}return'insertion'==_0x5d7344['type']?{'type':'insertion','content':o(_0x43c08b,'*Insert:*\x20%0','\x22'+_0x36a019+'\x22\x20'+o(_0x43c08b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x43c08b,'*Remove:*\x20%0','\x22'+_0x36a019+'\x22\x20'+o(_0x43c08b,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x44fd37{['afterInit'](){const _0x4bf79a=this['editor'],_0x5bfc98=_0x4bf79a['plugins']['get']('TrackChangesEditing');_0x4bf79a['plugins']['has']('MultiLevelList')&&(_0x5bfc98['enableDefaultAttributesIntegration']('multiLevelList'),_0x5bfc98['registerBlockAttribute']('listMarkerStyle'),_0x5bfc98['descriptionFactory']['registerDescriptionCallback'](_0xa25031=>this['handleDescriptions'](_0xa25031)));}['handleDescriptions'](_0x44cdd8){const _0x23a149=this['editor']['locale'],{data:_0x210366}=_0x44cdd8,_0xb06c6a={'type':'format','content':''};if(_0x210366&&'listMarkerStyle'==_0x210366['key']){if(!_0x210366['oldValue'])return{'type':'format','content':o(_0x23a149,'*Set\x20format:*\x20%0',o(_0x23a149,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x210366['newValue']+')'};if(!_0x210366['newValue']){let _0x3b5022=_0x44cdd8['head'];for(;_0x3b5022;){if(_0x3b5022['data']&&'listType'==_0x3b5022['data']['key']&&_0x3b5022['data']['newValue'])return _0xb06c6a;_0x3b5022=_0x3b5022['next'];}return{'type':'format','content':o(_0x23a149,'*Remove\x20format:*\x20%0',o(_0x23a149,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x210366['oldValue']+')'};}}}}class yt extends _0x44fd37{['afterInit'](){const _0x483f7d=this['editor'];if(!_0x483f7d['plugins']['has']('PageBreakEditing'))return;_0x483f7d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5ebbc3=_0x483f7d['plugins']['get']('TrackChangesEditing'),_0x423aaa=_0x483f7d['locale'];_0x5ebbc3['descriptionFactory']['registerElementLabel']('pageBreak',_0x143a0a=>o(_0x423aaa,'ELEMENT_PAGE_BREAK',_0x143a0a));}}class St extends _0x44fd37{['afterInit'](){const _0x1f9fc3=this['editor'];if(!_0x1f9fc3['plugins']['has']('Paragraph'))return;const _0x4d2b2d=_0x1f9fc3['locale'],_0x59206=_0x1f9fc3['plugins']['get']('TrackChangesEditing');_0x59206['descriptionFactory']['registerElementLabel']('paragraph',_0x300cfd=>o(_0x4d2b2d,'ELEMENT_PARAGRAPH',_0x300cfd)),_0x59206['enableDefaultAttributesIntegration']('paragraph'),_0x59206['enableCommand']('insertParagraph'),_0x1f9fc3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1f9fc3),{'priority':'highest'}),_0x1f9fc3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x51471c,_0x5b4539,_0x5c8d96)=>{_0x5c8d96['options']['showSuggestionHighlights']&&nr(_0x1f9fc3,{'showActiveMarker':!0x1})(_0x51471c,_0x5b4539,_0x5c8d96);},{'priority':'highest'});const _0x332fcb=_0x59206['descriptionFactory'];_0x332fcb['registerDescriptionCallback'](_0x3dcf70=>{if('insertion'!==_0x3dcf70['type'])return;const {start:_0x2606d7,end:_0x1273bf}=_0x3dcf70['getFirstRange']();if(!_0x2606d7['isTouching'](_0x1273bf)||!_0x2606d7['nodeAfter'])return;const _0x9d1cf1=_0x1f9fc3['model']['schema'],_0x5db719=_0x2606d7['nodeAfter'];return _0x9d1cf1['isBlock'](_0x5db719)&&!_0x9d1cf1['isLimit'](_0x5db719)&&_0x9d1cf1['checkChild'](_0x5db719,'$text')?{'type':'insertion','content':o(_0x4d2b2d,'*Insert:*\x20%0',_0x332fcb['getItemLabel'](_0x5db719,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e3a5a=this['editor'],_0x1578bf=_0x2e3a5a['locale'];_0x2e3a5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25227c=>{if('formatBlock'!=_0x25227c['type'])return;const {data:_0x3602de}=_0x25227c;return _0x3602de&&'paragraph'==_0x3602de['commandName']?{'type':'format','content':o(_0x1578bf,'*Change\x20to:*\x20%0',o(_0x1578bf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x473a62,{showActiveMarker:_0x148221=!0x0}={}){return(_0x383454,_0x180d3,_0x22d652)=>{const _0x2fc6aa=_0x473a62['plugins']['get']('TrackChangesEditing'),_0x1b1d17=_0x180d3['markerRange']['start'],_0x24fd7f=_0x180d3['markerRange']['end'],_0x310729=_0x473a62['model']['schema'];if(!_0x1b1d17['isTouching'](_0x24fd7f)||!_0x1b1d17['nodeAfter'])return;const _0x1d0ce4=_0x1b1d17['nodeAfter'];if(_0x310729['isBlock'](_0x1d0ce4)&&!_0x310729['isLimit'](_0x1d0ce4)&&_0x310729['checkChild'](_0x1d0ce4,'$text')){if(!_0x22d652['consumable']['consume'](_0x180d3['markerRange'],_0x383454['name']))return;const {id:_0x2157a8,authorId:_0x36e77a}=_0x2fc6aa['_splitMarkerName'](_0x180d3['markerName']),_0x1e1066=_0x22d652['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2157a8,'data-author-id':_0x36e77a}),_0x53eac3=_0x22d652['mapper']['toViewPosition'](_0x24fd7f);_0x148221&&_0x2fc6aa['activeMarkers']['includes'](_0x180d3['markerName'])&&_0x22d652['writer']['addClass']('ck-suggestion-marker--active',_0x1e1066),_0x22d652['writer']['insert'](_0x53eac3,_0x1e1066),_0x22d652['mapper']['bindElementToMarker'](_0x1e1066,_0x180d3['markerName']);}};}class jt extends _0x44fd37{['afterInit'](){const _0x15ae86=this['editor'];_0x15ae86['commands']['get']('replaceSource')&&_0x15ae86['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x44fd37{['afterInit'](){const _0x448ee9=this['editor'];if(!_0x448ee9['plugins']['has']('RemoveFormatEditing'))return;_0x448ee9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x70f4b2=this['editor'];_0x70f4b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b3897=>{if('formatBlock'!=_0x1b3897['type']&&'formatInline'!=_0x1b3897['type'])return;const {data:_0xd5a240}=_0x1b3897;return _0xd5a240&&'removeFormat'==_0xd5a240['commandName']?{'type':'format','content':o(_0x70f4b2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x44fd37{['afterInit'](){const _0x5aa747=this['editor'];if(!_0x5aa747['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1e1665=_0x5aa747['plugins']['get']('TrackChangesEditing');_0x1e1665['enableCommand']('goToPreviousRestrictedEditingException'),_0x1e1665['enableCommand']('goToNextRestrictedEditingException');const _0x3e0793=_0x5aa747['plugins']['get']('RestrictedEditingModeEditing');_0x3e0793['enableCommand']('trackChanges'),_0x3e0793['enableCommand']('acceptSuggestion'),_0x3e0793['enableCommand']('discardSuggestion'),_0x3e0793['enableCommand']('acceptAllSuggestions'),_0x3e0793['enableCommand']('discardAllSuggestions'),_0x3e0793['enableCommand']('acceptSelectedSuggestions'),_0x3e0793['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x44fd37{['afterInit'](){const _0x333e8c=this['editor'];if(!_0x333e8c['plugins']['has']('ShiftEnter'))return;const _0x1e9ac6=_0x333e8c['plugins']['get']('TrackChangesEditing');_0x1e9ac6['enableCommand']('shiftEnter'),_0x333e8c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x333e8c),{'priority':'high'}),_0x333e8c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x333e8c),{'priority':'high'}),_0x333e8c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x757329,_0x52b168,_0x352f57)=>{_0x352f57['options']['showSuggestionHighlights']&&Ee(_0x333e8c,{'showActiveMarker':!0x1})(_0x757329,_0x52b168,_0x352f57);}),_0x1e9ac6['descriptionFactory']['registerElementLabel']('softBreak',_0x51fb27=>o(_0x333e8c['locale'],'ELEMENT_LINE_BREAK',_0x51fb27));}}function Ee(_0x5785e8,{showActiveMarker:_0x47b7c3=!0x0}={}){return(_0x5f485f,_0xb0c204,_0x54c219)=>{const _0x181f7f=_0x5785e8['plugins']['get']('TrackChangesEditing');if(!_0x54c219['consumable']['test'](_0xb0c204['markerRange'],_0x5f485f['name']))return;const _0x58352f=_0x5785e8['model'];for(const _0x2145f6 of _0xb0c204['markerRange']['getItems']()){if(!_0x2145f6['is']('element','softBreak'))continue;const _0x2b4514='deletion'==_0xb0c204['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1e0efb,authorId:_0x4c20e2}=_0x181f7f['_splitMarkerName'](_0xb0c204['markerName']),_0x4b47d9=_0x54c219['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b4514,'data-suggestion':_0x1e0efb,'data-author-id':_0x4c20e2}),_0x36940c=_0x54c219['mapper']['toViewPosition'](_0x58352f['createPositionBefore'](_0x2145f6));_0x47b7c3&&_0x181f7f['activeMarkers']['includes'](_0xb0c204['markerName'])&&_0x54c219['writer']['addClass']('ck-suggestion-marker--active',_0x4b47d9),_0x54c219['writer']['insert'](_0x36940c,_0x4b47d9),_0x54c219['mapper']['bindElementToMarker'](_0x4b47d9,_0xb0c204['markerName']);}};}class vt extends _0x44fd37{['afterInit'](){const _0x143cd2=this['editor'],_0x3af8be=_0x143cd2['model'],_0x4d99e5=_0x143cd2['locale'];if(!_0x143cd2['plugins']['has']('StandardEditingModeEditing'))return;const _0x45a6a2=_0x143cd2['plugins']['get']('TrackChangesEditing'),_0x997608='restrictedEditingException',_0x258ad7=_0x143cd2['commands']['get'](_0x997608);_0x45a6a2['enableCommand'](_0x997608,(_0x5cddfb,_0xf9edf={})=>{const _0x58d48e=_0x3af8be['document']['selection'];if(_0x58d48e['isCollapsed'])return void _0x5cddfb(_0xf9edf);const _0x4ea7b0=void 0x0!==_0xf9edf['forceValue']?_0xf9edf['forceValue']:!_0x258ad7['value'];_0x3af8be['change'](()=>{const _0x6c2bbe=Array['from'](_0x58d48e['getRanges']());for(const _0x30dd5a of _0x6c2bbe){const _0x2fcbc3=_0x4ea7b0?[_0x30dd5a]:io(_0x997608,_0x30dd5a,_0x3af8be);for(const _0x206970 of _0x2fcbc3)_0x45a6a2['markInlineFormat'](_0x206970,{'commandName':_0x997608,'commandParams':[{'forceValue':_0x4ea7b0}]});}});}),_0x45a6a2['descriptionFactory']['registerDescriptionCallback'](_0x1da44f=>{if('formatBlock'!=_0x1da44f['type']&&'formatInline'!=_0x1da44f['type'])return;const {data:_0x5b200e}=_0x1da44f;return _0x5b200e&&_0x5b200e['commandName']==_0x997608?_0x5b200e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d99e5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4d99e5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x44fd37{['afterInit'](){const _0x503d7d=this['editor'];if(!_0x503d7d['plugins']['has']('Style')||!_0x503d7d['plugins']['has']('DataSchema'))return;const _0x2d113b=_0x503d7d['plugins']['get']('TrackChangesEditing'),_0x581ddd=_0x503d7d['locale'],_0x226590=_0x503d7d['config']['get']('style')||{},_0x4e084e=_0x503d7d['plugins']['get']('GeneralHtmlSupport'),_0x5e24c0=_0x503d7d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x503d7d['plugins']['get']('DataSchema'),_0x226590['definitions']);_0x2d113b['enableDefaultAttributesIntegration']('style');const _0x32f2e7=new Set();for(const _0x1ad778 of _0x5e24c0['block']){const _0xbd62e4=_0x4e084e['getGhsAttributeNameForElement'](_0x1ad778['element']);_0x32f2e7['add'](_0xbd62e4);}const _0x3da4a2=new Set();for(const _0x5aa392 of _0x5e24c0['inline']){const _0x2967a3=_0x4e084e['getGhsAttributeNameForElement'](_0x5aa392['element']);_0x3da4a2['add'](_0x2967a3);for(const _0x502446 of _0x5aa392['ghsAttributes'])_0x3da4a2['add'](_0x502446);}for(const _0xdb2b58 of _0x32f2e7)_0x2d113b['registerBlockAttribute'](_0xdb2b58),_0x2d113b['descriptionFactory']['registerAttributeLabel'](_0xdb2b58,o(_0x581ddd,'FORMAT_STYLE'));for(const _0x321edf of _0x3da4a2)_0x2d113b['registerInlineAttribute'](_0x321edf),_0x2d113b['descriptionFactory']['registerAttributeLabel'](_0x321edf,o(_0x581ddd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1eea36=this['editor'],_0x51be98=_0x1eea36['locale'];_0x1eea36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3610cf=>{if('formatBlock'!=_0x3610cf['type']&&'formatInline'!=_0x3610cf['type'])return;const {data:_0x2fb12a}=_0x3610cf;return _0x2fb12a&&'style'===_0x2fb12a['commandName']?_0x2fb12a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51be98,'*Set\x20format:*\x20%0',_0x2fb12a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x51be98,'*Remove\x20format:*\x20%0',_0x2fb12a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x44fd37{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x39b8e1){super(_0x39b8e1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x279976=this['editor'],_0x29edd2=_0x279976['model']['document']['selection'];if(!_0x279976['plugins']['has']('TableEditing'))return;const _0x661c5c=_0x279976['locale'],_0x43723b=_0x279976['plugins']['get']('TrackChangesEditing'),_0x1f0acf=_0x279976['plugins']['get']('TableUtils');_0x43723b['descriptionFactory']['registerElementLabel']('table',_0x903a0e=>o(_0x661c5c,'ELEMENT_TABLE',_0x903a0e)),this['_setupColumnsRowsFixing'](),_0x43723b['enableCommand']('insertTable'),_0x43723b['enableCommand']('selectTableRow'),_0x43723b['enableCommand']('selectTableColumn');for(const _0x464e29 of['insertTableRowAbove','insertTableRowBelow']){const _0x52a608=_0x279976['commands']['get'](_0x464e29);_0x43723b['enableCommand'](_0x464e29,_0x5b7cee=>{_0x279976['model']['change'](_0x5145d1=>{_0x5b7cee();const _0x2b8d1a='above'===_0x52a608['order'],_0x3cea43=_0x1f0acf['getSelectionAffectedTableCells'](_0x29edd2),_0x2f5bdb=_0x1f0acf['getRowIndexes'](_0x3cea43),_0x4532f5=_0x2b8d1a?_0x2f5bdb['first']-0x1:_0x2f5bdb['last']+0x1,_0x2697fd=_0x3cea43[0x0]['findAncestor']('table'),_0x2e0aff=_0x1f0acf['createTableWalker'](_0x2697fd,{'startRow':_0x4532f5,'endRow':_0x4532f5}),_0x37ae0d=Array['from'](_0x2e0aff)['map'](_0xf2b6b6=>_0x5145d1['createRangeOn'](_0xf2b6b6['cell']));_0x43723b['markMultiRangeInsertion'](_0x37ae0d,'tableRow');});});}for(const _0xc449dd of['insertTableColumnLeft','insertTableColumnRight']){const _0xcf69ad=_0x279976['commands']['get'](_0xc449dd);_0x43723b['enableCommand'](_0xc449dd,_0x314fd9=>{_0x279976['model']['change'](_0x3f2444=>{_0x314fd9();const _0x1e4aac='left'===_0xcf69ad['order'],_0xac5db9=_0x1f0acf['getSelectionAffectedTableCells'](_0x29edd2),_0x10465b=_0x1f0acf['getColumnIndexes'](_0xac5db9),_0x3ea0b3=_0x1e4aac?_0x10465b['first']-0x1:_0x10465b['last']+0x1,_0x1ebe6d=_0xac5db9[0x0]['findAncestor']('table'),_0x1e0e1e=_0x1f0acf['createTableWalker'](_0x1ebe6d,{'startRow':0x0,'column':_0x3ea0b3,'includeAllSlots':!0x1}),_0xab98cb=Array['from'](_0x1e0e1e)['map'](_0x332cd5=>_0x3f2444['createRangeOn'](_0x332cd5['cell']));_0x43723b['markMultiRangeInsertion'](_0xab98cb,'tableColumn');});});}for(const _0x28ed1a of['removeTableRow','removeTableColumn']){const _0x1c993d=_0x28ed1a['substr'](0xb),_0x257775=_0x1c993d['toLowerCase'](),_0x4daff6=_0x257775['substr'](0x0,0x3)+'span',_0x40e839='table'+_0x1c993d,_0x30ae68='min'+_0x1c993d,_0x2619ba='max'+_0x1c993d;_0x43723b['enableCommand'](_0x28ed1a,()=>{_0x279976['model']['change'](_0x5a30da=>{const _0x11f18e=_0x1f0acf['getSelectionAffectedTableCells'](_0x29edd2),_0x32a847=_0x11f18e[0x0]['findAncestor']('table');let _0xe45ef6;if('removeTableRow'==_0x28ed1a){const _0x4c5b7b=_0x1f0acf['getRowIndexes'](_0x11f18e);_0xe45ef6={'startRow':_0x4c5b7b['first'],'endRow':_0x4c5b7b['last'],'includeAllSlots':!0x0};}else{const _0x25dcbc=_0x1f0acf['getColumnIndexes'](_0x11f18e);_0xe45ef6={'startColumn':_0x25dcbc['first'],'endColumn':_0x25dcbc['last'],'includeAllSlots':!0x0};}const _0x3853f6=_0x1f0acf['createTableWalker'](_0x32a847,_0xe45ef6),_0x911ca7=Array['from'](_0x3853f6)['map'](({cell:_0x3c8486})=>_0x3c8486),_0x54f443=We(_0x911ca7['filter'](_0x699352=>_0x699352['hasAttribute'](_0x4daff6))),_0x7f6bcb=We(_0x911ca7['filter'](_0x4e22d8=>!_0x4e22d8['hasAttribute'](_0x4daff6)))['map'](_0x3ebbf4=>_0x5a30da['createRangeOn'](_0x3ebbf4)),_0x53809b=_0x43723b['markMultiRangeDeletion'](_0x7f6bcb,_0x40e839);if(_0x53809b&&('tableRow'==_0x53809b['subType']||'tableColumn'==_0x53809b['subType'])){const _0x300c17=this['_getSuggestionCoords'](_0x53809b);for(const _0x291ea3 of _0x54f443){const _0x5ee768=_0x5a30da['createRangeOn'](_0x291ea3),_0x3feaeb=_0x1f0acf['getCellLocation'](_0x291ea3),_0x399af7=_0x291ea3['getAttribute'](_0x4daff6)-0x1,_0x467ab3=_0x300c17[_0x30ae68],_0x1a2e58=_0x300c17[_0x2619ba];_0x467ab3<=_0x3feaeb[_0x257775]&&_0x3feaeb[_0x257775]+_0x399af7<=_0x1a2e58&&_0x53809b['addRange'](_0x5ee768);}}});});}function _0x34df77(_0x3d4c13){const _0x56d2fb=Array['from'](_0x29edd2['getRanges']())['map'](_0x4f0379=>_0x39adac['fromRange'](_0x4f0379));_0x279976['model']['change'](_0x18ffd1=>{const _0x72f883=_0x18ffd1['batch'];_0x3d4c13=_0x3d4c13['filter'](_0x53deaf=>'$graveyard'!=_0x53deaf['root']['rootName']),_0x18ffd1['setSelection'](_0x3d4c13),_0x279976['commands']['get']('removeTableRow')['refresh'](),_0x279976['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x279976['model']['enqueueChange'](()=>{_0x279976['model']['enqueueChange'](_0x72f883,_0x312490=>{const _0x5e9b3a=_0x56d2fb['filter'](_0x29c5bd=>'$graveyard'!=_0x29c5bd['root']['rootName']);_0x5e9b3a['length']>0x0&&_0x312490['setSelection'](_0x5e9b3a);for(const _0x3738c8 of _0x56d2fb)_0x3738c8['detach']();});});});}function _0x3d980b(_0x1e6697){_0x279976['model']['change'](_0x21c292=>{const _0x147934=Array['from'](_0x29edd2['getRanges']())['map'](_0x4ab701=>_0x39adac['fromRange'](_0x4ab701)),_0x19f552=[];for(const _0x3a972b of _0x1e6697)for(const _0x1c78e4 of _0x3a972b['getItems']({'shallow':!0x0}))_0x19f552['push'](_0x1c78e4);for(const _0x2eccaf of _0x19f552)'$graveyard'!=_0x2eccaf['root']['rootName']&&(_0x21c292['setSelection'](_0x21c292['createPositionAt'](_0x2eccaf,0x0)),_0x279976['commands']['get']('removeTableColumn')['refresh'](),_0x279976['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x100f94=_0x147934['filter'](_0x5dcd57=>'$graveyard'!=_0x5dcd57['root']['rootName']);_0x100f94['length']>0x0&&_0x21c292['setSelection'](_0x100f94);for(const _0x167de1 of _0x147934)_0x167de1['detach']();});}function _0x4fb48d(_0x97ff26,_0x36f81e){return _0x36f81e['every'](_0x390525=>_0x97ff26['some'](_0x17dd6d=>_0x17dd6d['end']['isEqual'](_0x390525['start'])||_0x390525['end']['isEqual'](_0x17dd6d['start'])));}function _0x2145d8(_0xd5a8ff,_0x2117aa){return!_0xd5a8ff['some'](_0x11b649=>_0x2117aa['some'](_0x28f3e3=>_0x11b649['isIntersecting'](_0x28f3e3)))&&_0xd5a8ff['some'](_0x400fc9=>_0x2117aa['some'](_0x139511=>_0x400fc9['end']['isTouching'](_0x139511['start'])));}_0x279976['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52b645,_0x12d209,_0x34b49a)=>{if(!_0x34b49a['options']['showSuggestionHighlights'])return;const _0x989002=_0x12d209['item'];if(!_0x989002||!_0x989002['is']('element','tableCell'))return;const _0x3d352b=_0x34b49a['mapper']['toViewElement'](_0x989002);if(_0x3d352b){const {id:_0x54bc50,authorId:_0x279e42}=_0x43723b['_splitMarkerName'](_0x12d209['markerName']);_0x3371bf(_0x3d352b,_0x34b49a['writer'],(_0x156693,_0x50c8c1,_0x324f41)=>{_0x324f41['addClass'](_0x264178(_0x50c8c1['classes']),_0x156693),_0x324f41['setAttribute']('data-suggestion-id',_0x54bc50,_0x156693),_0x324f41['setAttribute']('data-author-id',_0x279e42,_0x156693);},(_0x3a9954,_0x4a9d33,_0x12e09d)=>{_0x12e09d['removeClass'](_0x264178(_0x4a9d33['classes']),_0x3a9954),_0x12e09d['removeAttribute']('data-suggestion-id',_0x3a9954),_0x12e09d['removeAttribute']('data-author-id',_0x3a9954);});}},{'priority':'highest'}),_0x43723b['descriptionFactory']['registerDescriptionCallback'](_0x258526=>{if('insertion'!=_0x258526['type']&&'deletion'!=_0x258526['type'])return;const _0x824287=_0x258526['getContainedElement']();if(null!=_0x824287&&_0x824287['is']('element','table')){if('insertion'==_0x258526['type']){const _0x1b0704=_0x258526['getItems']()['filter'](_0x2f49b2=>_0x2f49b2['is']('$textProxy'))['map'](_0x438a83=>_0x438a83['data']);if(_0x1b0704['length'])return{'type':'insertion','content':o(_0x661c5c,'*Insert:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1b0704['join']('\x20')+'\x22'))};}if('deletion'==_0x258526['type']){const _0x41a1a6=_0x258526['getItems']()['filter'](_0x4e972c=>_0x4e972c['is']('$textProxy'))['map'](_0x2e0499=>_0x2e0499['data']);if(_0x41a1a6['length'])return{'type':'deletion','content':o(_0x661c5c,'*Remove:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41a1a6['join']('\x20')+'\x22'))};}}}),_0x43723b['descriptionFactory']['registerDescriptionCallback'](_0x5574dc=>{if('tableRow'==_0x5574dc['subType']){const _0x45e854=_0x5574dc['getItems']()['filter'](_0x4b4cf3=>_0x4b4cf3['is']('$textProxy'))['map'](_0xe786a8=>_0xe786a8['data']),_0x5c05e2=this['_getSuggestionCoords'](_0x5574dc),_0x106b0c=_0x5c05e2['maxRow']-_0x5c05e2['minRow']+0x1;if('insertion'==_0x5574dc['type'])return _0x45e854['length']?{'type':'insertion','content':o(_0x661c5c,'*Insert:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x106b0c,'\x22'+_0x45e854['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x661c5c,'*Insert:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_ROW',_0x106b0c))};if('deletion'==_0x5574dc['type'])return _0x45e854['length']?{'type':'deletion','content':o(_0x661c5c,'*Remove:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x106b0c,'\x22'+_0x45e854['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x661c5c,'*Remove:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_ROW',_0x106b0c))};}if('tableColumn'==_0x5574dc['subType']){const _0x4e5847=_0x5574dc['getItems']()['filter'](_0xde5509=>_0xde5509['is']('$textProxy'))['map'](_0x51426a=>_0x51426a['data']),_0x35c51b=this['_getSuggestionCoords'](_0x5574dc),_0x2b00f8=_0x35c51b['maxColumn']-_0x35c51b['minColumn']+0x1;if('insertion'==_0x5574dc['type'])return _0x4e5847['length']?{'type':'insertion','content':o(_0x661c5c,'*Insert:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b00f8,'\x22'+_0x4e5847['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x661c5c,'*Insert:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_COLUMN',_0x2b00f8))};if('deletion'==_0x5574dc['type'])return _0x4e5847['length']?{'type':'deletion','content':o(_0x661c5c,'*Remove:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b00f8,'\x22'+_0x4e5847['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x661c5c,'*Remove:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_COLUMN',_0x2b00f8))};}}),_0x43723b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x34df77),_0x43723b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x34df77),_0x43723b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d980b),_0x43723b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d980b),_0x43723b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4fb48d),_0x43723b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4fb48d),_0x43723b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2145d8),_0x43723b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2145d8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4e1ed2=this['editor'],_0x10a85a=_0x4e1ed2['model']['document']['selection'];return(_0x2ba98a,_0x16d6a8)=>{_0x4e1ed2['model']['change'](_0x3c16c2=>{const {commandName:_0x439ae5,commandParams:_0x3052ae}=_0x16d6a8;let _0x1fd6a5=_0x2ba98a[0x0]['end']['nodeBefore'];_0x3052ae&&_0x3052ae[0x0]&&!0x1===_0x3052ae[0x0]['forceValue']&&(_0x1fd6a5=_0x2ba98a[0x0]['start']['nodeAfter']);const _0x494614=_0x3c16c2['createRangeIn'](_0x1fd6a5);if('$graveyard'==_0x494614['root']['rootName'])return;const _0x25fd79=Array['from'](_0x10a85a['getRanges']())['map'](_0x576980=>_0x39adac['fromRange'](_0x576980));_0x3c16c2['setSelection'](_0x494614),_0x4e1ed2['commands']['get'](_0x439ae5)['refresh'](),_0x3052ae['push']({'forceDefaultExecution':!0x0}),_0x4e1ed2['execute'](_0x439ae5,..._0x3052ae);const _0x16feb0=_0x25fd79['filter'](_0x5b0433=>'$graveyard'!=_0x5b0433['root']['rootName']);_0x16feb0['length']>0x0&&_0x3c16c2['setSelection'](_0x16feb0);for(const _0x57670d of _0x25fd79)_0x57670d['detach']();});};}['_getCoordsForCells'](_0x4cad45){const _0x122c6a=this['editor']['plugins']['get']('TableUtils');let _0x245754=Number['MAX_SAFE_INTEGER'],_0x3e12f4=Number['MIN_SAFE_INTEGER'],_0x54e25f=Number['MAX_SAFE_INTEGER'],_0x47fa2c=Number['MIN_SAFE_INTEGER'];for(const _0x4dba51 of _0x4cad45){if('$graveyard'==_0x4dba51['root']['rootName'])continue;const {row:_0x12363b,column:_0x404095}=_0x122c6a['getCellLocation'](_0x4dba51),_0x5a3ac2=_0x4dba51['hasAttribute']('rowspan')?_0x4dba51['getAttribute']('rowspan')-0x1:0x0,_0x32dc75=_0x4dba51['hasAttribute']('colspan')?_0x4dba51['getAttribute']('colspan')-0x1:0x0;_0x245754=_0x12363b<_0x245754?_0x12363b:_0x245754,_0x3e12f4=_0x12363b+_0x5a3ac2>_0x3e12f4?_0x12363b+_0x5a3ac2:_0x3e12f4,_0x54e25f=_0x404095<_0x54e25f?_0x404095:_0x54e25f,_0x47fa2c=_0x404095+_0x32dc75>_0x47fa2c?_0x404095+_0x32dc75:_0x47fa2c;}return{'minRow':_0x245754,'maxRow':_0x3e12f4,'minColumn':_0x54e25f,'maxColumn':_0x47fa2c};}['_setupColumnsRowsFixing'](){const _0x2cec87=this['editor'],_0x174da8=_0x2cec87['plugins']['get']('TrackChangesEditing'),_0x131d1f=_0x2cec87['plugins']['get']('TableUtils');_0x2cec87['model']['document']['on']('change:data',()=>{const _0x39ec42=Array['from'](_0x2cec87['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3da692,data:_0x4f61b5}of _0x39ec42){const {group:_0x35e17c,id:_0x5e3234,subType:_0x14f197}=_0x174da8['_splitMarkerName'](_0x3da692);if('suggestion'!=_0x35e17c)continue;if(null!=_0x4f61b5['oldRange'])continue;const _0x370cdf=_0x174da8['getSuggestion'](_0x5e3234);this['_tablePostFixingSubtypes']['includes'](_0x14f197)&&this['_tableSuggestions']['add'](_0x370cdf);}},{'priority':'low'});const _0x50d20d=(_0x1a0463,_0x18d962)=>{let _0x4d5675=!0x1;const _0x1f185e=_0x18d962['createRangeOn'](_0x1a0463),_0x176e89=_0x1a0463['findAncestor']('table'),_0x420cb0=_0x131d1f['getCellLocation'](_0x1a0463);for(const _0x70e3f6 of this['_tableSuggestions']){const _0x19c16e=_0x70e3f6['subType'],_0x5e6c26=_0x19c16e['startsWith']('tablePaste'),_0x3394c9=_0x19c16e['substr'](_0x5e6c26?0xa:0x5),_0x786657=_0x3394c9['toLowerCase'](),_0x34fa62=_0x786657['substr'](0x0,0x3)+'span',_0x15ec28='min'+_0x3394c9,_0xcf2cdd='max'+_0x3394c9;if(!_0x70e3f6['isInContent'])continue;if(_0x176e89!=_0x70e3f6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x70e3f6['isIntersectingWithRange'](_0x1f185e))continue;const _0x524542=_0x1a0463['hasAttribute'](_0x34fa62)?_0x1a0463['getAttribute'](_0x34fa62)-0x1:0x0,_0x576c2b=this['_getSuggestionCoords'](_0x70e3f6),_0x4a2b00=_0x576c2b[_0x15ec28],_0x382d7d=_0x576c2b[_0xcf2cdd];_0x4a2b00<=_0x420cb0[_0x786657]&&_0x420cb0[_0x786657]+_0x524542<=_0x382d7d&&(_0x70e3f6['addRange'](_0x1f185e),_0x4d5675=!0x0);}return _0x4d5675;};_0x2cec87['model']['document']['registerPostFixer'](_0x60680a=>{let _0x252d7c=!0x1;for(const _0x1ba7aa of _0x2cec87['model']['document']['differ']['getChanges']())if('insert'==_0x1ba7aa['type']){if('tableRow'==_0x1ba7aa['name']){for(const _0x578a41 of _0x1ba7aa['position']['nodeAfter']['getChildren']())_0x252d7c=_0x252d7c||_0x50d20d(_0x578a41,_0x60680a);}else'tableCell'==_0x1ba7aa['name']&&(_0x252d7c=_0x252d7c||_0x50d20d(_0x1ba7aa['position']['nodeAfter'],_0x60680a));}return _0x252d7c;});}['_getSuggestionCoords'](_0x5db084){return this['_getCoordsForCells'](_0x5db084['getRanges']()['map'](_0x1610a2=>_0x1610a2['start']['nodeAfter']));}}function We(_0x12e73e){return Array['from'](new Set(_0x12e73e)['values']());}class Nt extends _0x44fd37{static get['requires'](){return[$t];}['afterInit'](){const _0x45e8c7=this['editor'],_0x364d25=_0x45e8c7['model']['document']['selection'],_0x1cfdf4=_0x45e8c7['locale'];if(!_0x45e8c7['plugins']['has']('TableEditing'))return;const _0x101eaf=_0x45e8c7['plugins']['get']('TrackChangesEditing'),_0x31ac9f=_0x45e8c7['plugins']['get']('TableUtils'),_0x554ffc=_0x45e8c7['plugins']['get']($t);_0x554ffc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x101eaf['enableCommand']('mergeTableCells',()=>{const _0x38995d=_0x31ac9f['getSelectionAffectedTableCells'](_0x45e8c7['model']['document']['selection']);_0x45e8c7['model']['change'](()=>{_0x101eaf['markMultiRangeBlockFormat'](_0x38995d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x45e8c7['commands']['get']('mergeTableCells')['on']('execute',(_0x27f2a8,_0x2bbd16)=>{_0x45e8c7['commands']['get']('trackChanges')['value']&&(_0x2bbd16['length']>0x0&&_0x2bbd16[_0x2bbd16['length']-0x1]&&_0x2bbd16[_0x2bbd16['length']-0x1]['forceDefaultExecution']||_0x101eaf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x27f2a8['stop']());},{'priority':'highest'});for(const _0x46800e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3883c5=_0x45e8c7['commands']['get'](_0x46800e);_0x101eaf['enableCommand'](_0x46800e,()=>{const _0x1ea54c=_0x45e8c7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f2413=>_0x4f2413['is']('element','tableCell')),_0x27e1d0=_0x3883c5['value'];_0x45e8c7['model']['change'](()=>{_0x101eaf['markMultiRangeBlockFormat']([_0x1ea54c,_0x27e1d0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x176f4f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5e5fd8=_0x45e8c7['commands']['get'](_0x176f4f);_0x101eaf['enableCommand'](_0x176f4f,()=>{const _0x405e44=_0x31ac9f['getSelectionAffectedTableCells'](_0x45e8c7['model']['document']['selection'])[0x0],_0x29e501=_0x405e44['findAncestor']('table'),{column:_0x455cf8,row:_0x111222}=_0x31ac9f['getCellLocation'](_0x405e44);let _0x1277bd=[];if('horizontally'==_0x5e5fd8['direction']){const _0x20a2f7=_0x31ac9f['createTableWalker'](_0x29e501,{'startRow':_0x111222,'endRow':_0x111222,'includeAllSlots':!0x0});_0x1277bd=Array['from'](_0x20a2f7)['map'](_0x48c1dd=>_0x48c1dd['cell']);}else{const _0x4a8936=_0x31ac9f['createTableWalker'](_0x29e501,{'column':_0x455cf8,'includeAllSlots':!0x0});_0x1277bd=Array['from'](_0x4a8936)['map'](_0x3f409e=>_0x3f409e['cell']);}_0x45e8c7['model']['change'](_0x5eddd3=>{_0x101eaf['markBlockFormat'](_0x5eddd3['createRangeOn'](_0x405e44),{'commandName':_0x176f4f,'commandParams':[]},_0x1277bd,_0x176f4f);});});}_0x101eaf['descriptionFactory']['registerDescriptionCallback'](_0xf3444a=>{if('formatBlock'!=_0xf3444a['type']&&'formatInline'!=_0xf3444a['type'])return;const {data:_0x2e19e1}=_0xf3444a;return _0x2e19e1&&'mergeTableCells'==_0x2e19e1['commandName']?{'type':'format','content':o(_0x1cfdf4,'*Merge\x20cells*')}:void 0x0;}),_0x101eaf['descriptionFactory']['registerDescriptionCallback'](_0x3f652a=>{if('formatBlock'!=_0x3f652a['type']&&'formatInline'!=_0x3f652a['type'])return;const {data:_0x18d74c}=_0x3f652a;return _0x18d74c?'splitTableCellVertically'==_0x18d74c['commandName']?{'type':'format','content':o(_0x1cfdf4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x18d74c['commandName']?{'type':'format','content':o(_0x1cfdf4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2daba9=_0x554ffc['_acceptFormatSuggestionCallbackFactory']();for(const _0x4dad80 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x101eaf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4dad80,'accept',_0x2daba9);for(const _0x533855 of['splitTableCellVertically','splitTableCellHorizontally'])_0x101eaf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x533855,'accept',_0x2daba9);_0x101eaf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1882d8=>{_0x45e8c7['model']['change'](_0x54705c=>{const _0x27223b=Array['from'](_0x364d25['getRanges']())['map'](_0x56b1b3=>_0x39adac['fromRange'](_0x56b1b3));_0x54705c['setSelection'](_0x1882d8),_0x45e8c7['commands']['get']('mergeTableCells')['refresh'](),_0x45e8c7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x561473=_0x27223b['filter'](_0x593bc2=>'$graveyard'!=_0x593bc2['root']['rootName']);_0x561473['length']>0x0&&_0x54705c['setSelection'](_0x561473);for(const _0x33d39a of _0x27223b)_0x33d39a['detach']();});});for(const _0x237b63 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a7d2e=_0x45e8c7['commands']['get'](_0x237b63);_0x2a7d2e['on']('set:isEnabled',(_0x46584f,_0x4e7a6d,_0x13c382)=>{if(_0x13c382){const _0x3649fd=_0x45e8c7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35d881=>_0x35d881['is']('element','tableCell'));this['_areMergableCells'](_0x2a7d2e['value'],_0x3649fd)||(_0x46584f['return']=!0x1,_0x46584f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1c6a04=this['editor']['commands']['get']('mergeTableCells'),_0x3420ab=this['editor']['plugins']['get']('TableUtils');if(!_0x1c6a04['isEnabled'])return!0x1;const _0x45365b=_0x3420ab['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3a5f8a of _0x45365b)for(const _0x3d7999 of _0x45365b)if(_0x3a5f8a!=_0x3d7999&&!this['_areMergableCells'](_0x3a5f8a,_0x3d7999))return!0x1;return!0x0;}['_areMergableCells'](_0xbeefc,_0x51bdbf){const _0x3d2fcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x457a38=this['editor']['model']['createRangeOn'](_0xbeefc),_0x3095a0=this['editor']['model']['createRangeOn'](_0x51bdbf),_0xb85aa8=new Set(),_0x747d0d=new Set();for(const _0x508007 of _0x3d2fcd['getSuggestions']())if(('insertion'==_0x508007['type']||'deletion'==_0x508007['type']||'mergeTableCells'==_0x508007['subType'])&&_0x508007['isInContent']){for(const _0x37e843 of _0x508007['getRanges']())_0x37e843['containsRange'](_0x457a38,!0x0)&&_0xb85aa8['add'](_0x508007['type']+':'+_0x508007['author']['id']),_0x37e843['containsRange'](_0x3095a0,!0x0)&&_0x747d0d['add'](_0x508007['type']+':'+_0x508007['author']['id']);}if(_0xb85aa8['size']!=_0x747d0d['size'])return!0x1;for(const _0x18e02a of _0xb85aa8)if(!_0x747d0d['has'](_0x18e02a))return!0x1;return!0x0;}}class Dt extends _0x44fd37{static get['requires'](){return[$t];}['afterInit'](){const _0x3a57bd=this['editor'];if(!_0x3a57bd['plugins']['has']('TableEditing'))return;const _0x111ef0=_0x3a57bd['locale'],_0x4c3d5d=_0x3a57bd['plugins']['get']('TrackChangesEditing');_0x4c3d5d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4c3d5d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4c3d5d['registerBlockAttribute']('headingRows'),_0x4c3d5d['registerBlockAttribute']('headingColumns'),_0x4c3d5d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x111ef0,'FORMAT_HEADER_ROW')),_0x4c3d5d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x111ef0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xfc4679=this['editor']['plugins']['get']('TrackChangesEditing'),_0x162acc=this['editor']['plugins']['get']('TableUtils'),_0x473405=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x3e5d34({showActiveMarker:_0x1db4b5=!0x0,setDataAttribute:_0x3838d6=!0x0}={}){return(_0x25619d,_0x7d38e1,_0x28436f)=>{const {type:_0x436a89,id:_0x12b4ea}=_0xfc4679['_splitMarkerName'](_0x7d38e1['markerName']);if(!_0xfc4679['hasSuggestion'](_0x12b4ea))return;const _0x31ad11=_0xfc4679['getSuggestion'](_0x12b4ea),_0x283327=_0x31ad11['data'];if('formatBlock'!=_0x31ad11['type']||!_0x283327||'setTableColumnHeader'!=_0x283327['commandName'])return;if(_0x7d38e1['item'])return void _0x25619d['stop']();if(!_0x28436f['consumable']['consume'](_0x7d38e1['markerRange'],_0x25619d['name']))return;const _0x5d0238=_0x7d38e1['markerRange']['start']['nodeAfter'],_0x11aabe=_0x7d38e1['markerRange']['end']['nodeBefore'],_0x3fe0e5=_0x5d0238['parent']['parent'],{column:_0x44360b}=_0x162acc['getCellLocation'](_0x5d0238),{column:_0xb97d36}=_0x162acc['getCellLocation'](_0x11aabe);for(let _0x168884=_0x44360b;_0x168884<=_0xb97d36;_0x168884++){const _0xb58496=_0x162acc['createTableWalker'](_0x3fe0e5,{'column':_0x168884,'includeAllSlots':!0x1});for(const _0x1a3602 of _0xb58496){const _0xb1d577=_0x1a3602['cell'],_0x5d6e54=_0x28436f['mapper']['toViewElement'](_0xb1d577);_0x28436f['writer']['addClass']('ck-suggestion-marker-'+_0x436a89,_0x5d6e54),_0x3838d6&&_0x28436f['writer']['setAttribute']('data-suggestion',_0x12b4ea,_0x5d6e54),_0x28436f['mapper']['bindElementToMarker'](_0x5d6e54,_0x7d38e1['markerName']),_0x1db4b5&&(_0xfc4679['activeMarkers']['includes'](_0x7d38e1['markerName'])?_0x28436f['writer']['addClass']('ck-suggestion-marker--active',_0x5d6e54):_0x28436f['writer']['removeClass']('ck-suggestion-marker--active',_0x5d6e54));}}};}_0xfc4679['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x473405),_0xfc4679['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x473405),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3e5d34(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d4012,_0x594417,_0x2ef0aa)=>{_0x2ef0aa['options']['showSuggestionHighlights']&&_0x3e5d34({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5d4012,_0x594417,_0x2ef0aa);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2ac67d,_0x14e345,_0x1d148a)=>{const {type:_0xe6f804,id:_0x80e08}=_0xfc4679['_splitMarkerName'](_0x14e345['markerName']);if(!_0xfc4679['hasSuggestion'](_0x80e08))return;const _0x582565=_0xfc4679['getSuggestion'](_0x80e08),_0xe107e5=_0x582565['data'];if('formatBlock'!=_0x582565['type']||!_0xe107e5||'setTableColumnHeader'!=_0xe107e5['commandName'])return;const _0x60ed5b=_0x1d148a['mapper']['markerNameToElements'](_0x14e345['markerName']);if(_0x60ed5b){for(const _0x4fc473 of _0x60ed5b)_0x1d148a['writer']['removeClass']('ck-suggestion-marker-'+_0xe6f804,_0x4fc473),_0x1d148a['writer']['removeClass']('ck-suggestion-marker--active',_0x4fc473),_0x1d148a['writer']['removeAttribute']('data-suggestion',_0x4fc473),_0x1d148a['mapper']['unbindElementFromMarkerName'](_0x4fc473,_0x14e345['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38bb9a=this['editor'],_0x38ac01=_0x38bb9a['locale'];function _0x1861fb(_0x1c40e5){return{'type':'format','content':o(_0x38ac01,'*Format:*\x20%0',_0x1c40e5)};}_0x38bb9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x385ca2=>{if('formatBlock'!=_0x385ca2['type'])return;const {data:_0x16a4e3}=_0x385ca2;if(_0x16a4e3){if('setTableRowHeader'==_0x16a4e3['commandName']){const _0x5168c9=_0x16a4e3['commandParams'][0x0]['forceValue'];return _0x1861fb(o(_0x38ac01,_0x5168c9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x16a4e3['commandName']){const _0x4b630f=_0x16a4e3['commandParams'][0x0]['forceValue'];return _0x1861fb(o(_0x38ac01,_0x4b630f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x44fd37{['afterInit'](){const _0xc0cfc3=this['editor'],_0x2bb31f=_0xc0cfc3['locale'],_0x54a47c=_0xc0cfc3['plugins']['get']('TrackChangesEditing');function _0x41d931(_0x51f775){return{'type':'format','content':''+o(_0x2bb31f,'*Set\x20table\x20type:*\x20%0',_0x51f775)};}_0xc0cfc3['plugins']['has']('TableLayout')&&(_0x54a47c['enableCommand']('insertTableLayout'),_0x54a47c['enableDefaultAttributesIntegration']('tableType'),_0x54a47c['registerBlockAttribute']('tableType'),_0x54a47c['descriptionFactory']['registerElementLabel'](_0x491f26=>_0x491f26['is']('element','table')&&'layout'===_0x491f26['getAttribute']('tableType'),_0x4f145c=>o(_0x2bb31f,'ELEMENT_LAYOUT_TABLE',_0x4f145c)),_0x54a47c['descriptionFactory']['registerDescriptionCallback'](_0x2ead75=>{const {data:_0x518f9d}=_0x2ead75;if(_0x518f9d&&'tableType'==_0x518f9d['key'])switch(_0x518f9d['newValue']){case'layout':return _0x41d931(o(_0x2bb31f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x41d931(o(_0x2bb31f,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Oe['map'](_0x53dece=>[_0x53dece,null]));class Bt extends _0x44fd37{static get['requires'](){return[$t];}['afterInit'](){const _0x356a59=this['editor'];if(!_0x356a59['plugins']['has']('TableClipboard'))return;const _0x5a6989=_0x356a59['plugins']['get']('TrackChangesEditing'),_0x4411c1=_0x356a59['plugins']['get']('TableUtils'),_0xb3a2be=_0x356a59['plugins']['get']($t),_0x27196c=_0x356a59['plugins']['get']('TableClipboard'),_0x18b7bb=_0x356a59['plugins']['get']('TableSelection'),_0x8e9c28=_0x356a59['plugins']['get'](_0xd7513a);_0xb3a2be['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x356a59['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x356a59['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x186e5b=null,_0x35ebce=!0x1;_0x8e9c28['on']('contentInsertion',(_0x12a0c8,_0x3ce3fb)=>{_0x35ebce='paste'===_0x3ce3fb['method'];}),_0x356a59['model']['on']('insertContent',(_0x477534,_0x23a710)=>{if(!_0x35ebce&&null===_0x18b7bb['getSelectedTableCells']())return;const [_0x50cb3c,_0x2f18c8]=_0x23a710,_0x10c92e=_0x23a710[_0x23a710['length']-0x1];_0x10c92e&&_0x10c92e['forceDefaultExecution']||_0x5a6989['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x24c032,_0x567c2f,_0x31c85d,_0x3ceb94,_0x22f668){if(_0x567c2f&&!_0x567c2f['is']('documentSelection'))return!0x1;const _0x1c7d8a=_0x22f668['getTableIfOnlyTableInContent'](_0x24c032,_0x31c85d);if(!_0x1c7d8a||!He(_0x1c7d8a,void 0x0,_0x3ceb94))return!0x1;const _0x40799f=_0x3ceb94['getSelectionAffectedTableCells'](_0x31c85d['document']['selection']);if(!_0x40799f['length'])return!0x1;const _0x3cf31b=_0x40799f[0x0]['findAncestor']('table'),_0xe3049e=_0x3ceb94['getRowIndexes'](_0x40799f),_0x42b342=_0x3ceb94['getColumnIndexes'](_0x40799f),_0x5b331a={'startRow':_0xe3049e['first'],'endRow':_0xe3049e['last'],'startColumn':_0x42b342['first'],'endColumn':_0x42b342['last']};return 0x1==_0x40799f['length']&&(_0x5b331a['endRow']+=_0x3ceb94['getRows'](_0x1c7d8a)-0x1,_0x5b331a['endColumn']+=_0x3ceb94['getColumns'](_0x1c7d8a)-0x1),He(_0x3cf31b,_0x5b331a,_0x3ceb94);}(_0x50cb3c,_0x2f18c8,_0x356a59['model'],_0x4411c1,_0x27196c)&&(_0x477534['stop'](),_0x186e5b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x356a59['model']['change'](()=>{_0x356a59['model']['insertContent'](_0x23a710[0x0],_0x23a710[0x1],_0x23a710[0x2],{'forceDefaultExecution':!0x0});const _0xcda94f=_0x5b7b63(),{rowInsertionRanges:_0x21f59c,columnInsertionRanges:_0x474bb9,insertionRanges:_0x44968f,deletionRanges:_0x322ea0,cells:_0x1adc61}=_0x186e5b;_0x21f59c['length']&&_0x5a6989['markMultiRangeInsertion'](_0x21f59c,'tablePasteRow',{'tablePasteChainId':_0xcda94f}),_0x474bb9['length']&&_0x5a6989['markMultiRangeInsertion'](_0x474bb9,'tablePasteColumn',{'tablePasteChainId':_0xcda94f}),_0x44968f['length']&&(_0x5a6989['markMultiRangeInsertion'](_0x44968f,'tablePaste',{'tablePasteChainId':_0xcda94f,'skipNestingCheck':!0x0}),_0x44968f['forEach'](_0x3d106a=>_0x3d106a['detach']?.())),_0x322ea0['length']&&(_0x5a6989['markMultiRangeDeletion'](_0x322ea0,'tablePaste',{'tablePasteChainId':_0xcda94f,'skipNestingCheck':!0x0}),_0x322ea0['forEach'](_0x5ebf7c=>_0x5ebf7c['detach']?.()));const _0x4bfc5c=_0x5a6989['markMultiRangeBlockFormat'](_0x1adc61['map'](({element:_0x1d634c})=>_0x1d634c),{'formatGroupId':_0x5b7b63()},[],'tablePasteCell',{'tablePasteChainId':_0xcda94f});if(_0x4bfc5c){const _0x52b6ed=_0x4bfc5c['getMarkers'](),_0x183461=[];for(const {element:_0x65af66,attributes:_0x376c8e}of _0x1adc61){if(!_0x376c8e)continue;const _0x32795e=_0x356a59['model']['createRangeOn'](_0x65af66),_0x294bbe=_0x52b6ed['find'](_0xe3aec8=>_0xe3aec8['getRange']()['isEqual'](_0x32795e));_0x294bbe&&_0x183461['push']([_0x294bbe['name'],_0x376c8e]);}_0x183461['length']&&_0x4bfc5c['setAttribute']('markerAttributes',Object['fromEntries'](_0x183461));}_0x186e5b=null;}));},{'priority':_0x5aa02d['high']+0xa}),_0x8e9c28['on']('contentInsertion',()=>{_0x35ebce=!0x1;},{'priority':'lowest'}),_0x356a59['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1482d9,_0x488c17)=>{const [_0x20cfd2,_0x44a7e2,,_0x33ffc5]=_0x488c17;if(!_0x186e5b)return;_0x1482d9['stop']();const _0x324334=_0x20cfd2['cell'],_0x516a26=_0x44a7e2,_0x5dab82=De(_0x324334),_0x3c22c3=De(_0x516a26);_0x1482d9['return']=_0x324334;let _0x2f4e66=null,_0x2cc083=null;if(_0x3c22c3||_0x5dab82){if(_0x5dab82&&!_0x3c22c3){_0x33ffc5['remove'](_0x324334['getChild'](0x0));for(const _0x51c82f of Array['from'](_0x516a26['getChildren']()))_0x33ffc5['insert'](_0x51c82f,_0x324334,'end');const _0x1b8f5f=_0x186e5b['rowInsertionIndexes']['includes'](_0x20cfd2['row']),_0x573d61=_0x186e5b['columnInsertionIndexes']['includes'](_0x20cfd2['column']);_0x1b8f5f||_0x573d61||(_0x2f4e66=_0x39adac['fromRange'](_0x33ffc5['createRangeIn'](_0x324334)));}else _0x3c22c3&&!_0x5dab82&&(_0x2cc083=_0x33ffc5['createRangeIn'](_0x324334));}else{const _0x40b1c0=_0x33ffc5['createElement']('tableCellSuggestion'),_0x422c6f=_0x33ffc5['createElement']('tableCellSuggestion');_0x33ffc5['wrap'](_0x33ffc5['createRangeIn'](_0x324334),_0x422c6f),_0x33ffc5['insert'](_0x40b1c0,_0x324334,0x0);for(const _0x5c0a8e of Array['from'](_0x516a26['getChildren']()))_0x33ffc5['insert'](_0x5c0a8e,_0x40b1c0,'end');_0x2f4e66=_0x39adac['fromRange'](_0x33ffc5['createRangeOn'](_0x40b1c0)),_0x2cc083=_0x39adac['fromRange'](_0x33ffc5['createRangeOn'](_0x422c6f));}const _0x4292fc=Array['from'](_0x516a26['getAttributes']())['filter'](([_0x272862])=>Oe['includes'](_0x272862));_0x186e5b['cells']['push']({'element':_0x324334,'attributes':_0x4292fc['length']?Object['fromEntries'](_0x4292fc):null}),_0x2f4e66&&_0x186e5b['insertionRanges']['push'](_0x2f4e66),_0x2cc083&&_0x186e5b['deletionRanges']['push'](_0x2cc083);},{'priority':'high'}),_0x4411c1['on']('insertColumns',(_0x22959c,_0x30d062)=>{const [_0x1c6723,_0x298c36={}]=_0x30d062;if(!_0x186e5b)return;const _0x12e52e=_0x298c36['at']||0x0,_0x2e39bd=_0x298c36['columns']||0x1;_0x186e5b['columnInsertionIndexes']=new Array(_0x2e39bd)['fill'](_0x12e52e)['map']((_0x36b659,_0x211dba)=>_0x36b659+_0x211dba);for(const {cell:_0x101e3d}of _0x4411c1['createTableWalker'](_0x1c6723,{'startColumn':_0x12e52e,'endColumn':_0x12e52e+_0x2e39bd-0x1}))_0x186e5b['columnInsertionRanges']['push'](_0x356a59['model']['createRangeOn'](_0x101e3d));},{'priority':'low'}),_0x4411c1['on']('insertRows',(_0x23f6e9,_0x5b36e0)=>{const [_0x57160a,_0x18812c={}]=_0x5b36e0;if(!_0x186e5b)return;const _0x512c06=_0x18812c['at']||0x0,_0x4bc33d=_0x18812c['rows']||0x1;_0x186e5b['rowInsertionIndexes']=new Array(_0x4bc33d)['fill'](_0x512c06)['map']((_0x16efe1,_0x4fdb50)=>_0x16efe1+_0x4fdb50);for(const {cell:_0x31855d}of _0x4411c1['createTableWalker'](_0x57160a,{'startRow':_0x512c06,'endRow':_0x512c06+_0x4bc33d-0x1}))_0x186e5b['rowInsertionRanges']['push'](_0x356a59['model']['createRangeOn'](_0x31855d));},{'priority':'low'}),_0x5a6989['descriptionFactory']['registerDescriptionCallback'](_0x474324=>{if(_0x474324['subType']&&_0x474324['subType']['startsWith']('tablePaste'))return _0x474324['previous']?{}:{'type':'insertion','content':o(_0x356a59['locale'],'*Replace\x20table\x20cells*')};});const _0x324d07=()=>!0x1;for(const _0x66afac of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a6989['_suggestionFactory']['registerCustomCallback']('insertion',_0x66afac,'join',_0x324d07),_0x5a6989['_suggestionFactory']['registerCustomCallback']('deletion',_0x66afac,'join',_0x324d07),_0x5a6989['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x66afac,'join',_0x324d07);_0x5a6989['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x324d07),_0x5a6989['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a3fe1,_0xc0ee8b,_0x58a720)=>{const _0x345317=_0x4a3fe1['map'](_0xb76537=>_0xb76537['getContainedElement']())['filter'](_0x113890=>_0x113890),_0x2893b7=new Map(_0x345317['map'](_0x42ca76=>[_0x42ca76,null]));if(_0x186e5b){for(const {element:_0xf67b35,attributes:_0x52d9fe}of _0x186e5b['cells'])_0x52d9fe&&_0x2893b7['set'](_0xf67b35,_0x52d9fe);}else{if(_0x58a720&&_0x58a720['markerAttributes'])for(const [_0x393e93,_0x29e7ec]of Object['entries'](_0x58a720['markerAttributes'])){const _0xfac6d2=_0x356a59['model']['markers']['get'](_0x393e93),_0x2dd06c=_0xfac6d2?_0xfac6d2['getRange']()['getContainedElement']():null;_0x2dd06c&&_0x2893b7['set'](_0x2dd06c,_0x29e7ec);}}_0x356a59['model']['change'](_0x3e6818=>{for(const [_0x713c83,_0x16b694]of _0x2893b7)_0x3e6818['setAttributes']({...Ue,..._0x16b694},_0x713c83);});});const _0x57f865=(_0x31f346,_0x381b12)=>{_0x5a6989['_suggestionFactory']['registerCustomCallback'](_0x31f346,'tablePaste',_0x381b12,(_0x2588e7,_0x2f74d8,_0x560c70)=>{_0x356a59['model']['change'](_0xa75988=>{const _0x4e75c2=[];for(const _0x1f620f of _0x2588e7){const _0x1ebe5f=_0x1f620f['start']['nodeAfter'];_0x1ebe5f['is']('element','tableCellSuggestion')&&_0x4e75c2['push'](_0x1ebe5f);}_0x5a6989['_suggestionFactory']['getSuggestionCallback'](_0x31f346,null,_0x381b12)(_0x2588e7,_0x2f74d8,_0x560c70);for(const _0x29b44c of _0x4e75c2)'$graveyard'!=_0x29b44c['root']['rootName']&&_0xa75988['unwrap'](_0x29b44c);});});};_0x57f865('insertion','accept'),_0x57f865('insertion','discard'),_0x57f865('deletion','accept'),_0x57f865('deletion','discard'),_0x5a6989['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x441882=>{const _0x2cb4f6=_0x441882['map'](_0x1d0f71=>_0x1d0f71['getContainedElement']()),_0x2b82b6=_0x2cb4f6[0x0]['findAncestor']('table'),{minRow:_0x17412c,maxRow:_0x32a2ec}=_0xb3a2be['_getCoordsForCells'](_0x2cb4f6);_0x4411c1['removeRows'](_0x2b82b6,{'at':_0x17412c,'rows':_0x32a2ec-_0x17412c+0x1});}),_0x5a6989['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x59abb6=>{const _0x150efd=_0x59abb6['map'](_0x4e1c9a=>_0x4e1c9a['getContainedElement']()),_0x2eba58=_0x150efd[0x0]['findAncestor']('table'),{minColumn:_0x503fba,maxColumn:_0x31cae0}=_0xb3a2be['_getCoordsForCells'](_0x150efd);_0x4411c1['removeColumns'](_0x2eba58,{'at':_0x503fba,'columns':_0x31cae0-_0x503fba+0x1});});const _0x3f2c38=(_0x1daa4c,_0x207b55)=>{if(!_0x207b55['subType']||!_0x207b55['subType']['startsWith']('tablePaste'))return;const _0x313c13=_0x207b55['attributes']['tablePasteChainId'],_0x44a560=_0x5a6989['getSuggestions']()['filter'](_0x4fca57=>_0x4fca57['isInContent']&&_0x4fca57['attributes']&&_0x4fca57['attributes']['tablePasteChainId']==_0x313c13);_0x44a560['length']&&_0x207b55['getAllAdjacentSuggestions']()['length']!=_0x44a560['length']&&_0x44a560['reduce']((_0xa32ca,_0x40bff0)=>(_0xa32ca['next']=_0x40bff0,_0x40bff0['previous']=_0xa32ca,_0x40bff0));};function _0x64d1cd(_0x53a60e,_0x1704f7=!0x0){const {id:_0x2a1e27,authorId:_0x58c751}=_0x5a6989['_splitMarkerName'](_0x53a60e['markerName']),_0x14b9f5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x453f97=_0x5a6989['activeMarkers']['includes'](_0x53a60e['markerName']);return _0x453f97&&_0x14b9f5['push']('ck-suggestion-marker--active'),{'classes':_0x14b9f5,'attributes':{'data-suggestion':_0x2a1e27,'data-author-id':_0x58c751},'priority':_0x453f97&&_0x1704f7?0xbc2:0xbb8};}_0x5a6989['on']('suggestionLoaded',_0x3f2c38,{'priority':'high'}),_0x5a6989['on']('suggestionUnloaded',_0x3f2c38,{'priority':'high'}),_0x356a59['model']['document']['registerPostFixer'](()=>{let _0x21822f=!0x1;const _0x48095a=Array['from'](_0x356a59['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1291a4,data:_0x318c63}of _0x48095a){const {group:_0x357c0a,type:_0x117678,id:_0x5ebde9}=_0x5a6989['_splitMarkerName'](_0x1291a4);if('suggestion'!=_0x357c0a||'deletion'!=_0x117678||_0x318c63['oldRange'])continue;if(!_0x5a6989['hasSuggestion'](_0x5ebde9))continue;const _0x553936=_0x5a6989['getSuggestion'](_0x5ebde9)['getRanges'](),_0x2b098c=_0x356a59['plugins']['get']('Users')['me'];for(const _0x292841 of _0x5a6989['getSuggestions']()){if(!_0x292841['isInContent']||_0x292841['author']!=_0x2b098c)continue;if('formatBlock'!=_0x292841['type']||'tablePasteCell'!=_0x292841['subType'])continue;if(_0x292841['getRanges']()['every'](_0xa02cd8=>_0x553936['some'](_0xc2862f=>_0xc2862f['containsRange'](_0xa02cd8,!0x0)))){for(const _0x4ca472 of _0x292841['getAllAdjacentSuggestions']())_0x4ca472['isInContent']&&(_0x4ca472['discard'](),_0x21822f=!0x0);}}}return _0x21822f;}),_0x356a59['model']['document']['registerPostFixer'](_0x16adb1=>{const _0xd13429=_0x356a59['commands']['get']('redo');if(!_0xd13429||!_0xd13429['_createdBatches']['has'](_0x16adb1['batch']))return!0x1;let _0x59638f=!0x1;const _0x4603cd=_0x356a59['plugins']['get']('Users')['me'],_0x270726=_0x356a59['model']['document']['differ']['getChanges'](),_0x3f6e54=Array['from'](_0x356a59['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xe9fb2a,data:_0x277aad})=>{const {group:_0x11ffc1,subType:_0x2ce517,authorId:_0xfa7bdc}=_0x5a6989['_splitMarkerName'](_0xe9fb2a);return'suggestion'==_0x11ffc1&&'tablePaste'==_0x2ce517&&_0xfa7bdc==_0x4603cd['id']&&!_0x277aad['oldRange'];});for(const _0x522fbb of _0x270726){if('insert'!=_0x522fbb['type']||'tableCellSuggestion'!=_0x522fbb['name']||0x1!=_0x522fbb['length'])continue;const _0x453387=_0x16adb1['createRange'](_0x522fbb['position'],_0x522fbb['position']['getShiftedBy'](0x1));if(!_0x3f6e54['find'](({data:_0x46e659})=>_0x46e659['newRange']['isEqual'](_0x453387))){for(const {name:_0xc6d3af,data:_0x7ce11f}of _0x3f6e54)if(_0x453387['containsRange'](_0x7ce11f['newRange'])){_0x16adb1['updateMarker'](_0xc6d3af,{'range':_0x453387}),_0x59638f=!0x0;break;}}}return _0x59638f;}),_0x356a59['model']['document']['registerPostFixer'](_0x321520=>{let _0x3c64c3=!0x1;const _0x3eb23a=_0x356a59['plugins']['get']('Users')['me'],_0xcc1ed5=_0x5a6989['getSuggestions']()['filter'](_0x109352=>_0x109352['isInContent']&&_0x109352['author']==_0x3eb23a),_0x369785=new Set(),_0x2dcc8b=new Set();for(const _0x250f00 of _0xcc1ed5)if('tablePaste'==_0x250f00['subType'])for(const _0x4baa0c of _0x250f00['getMarkers']()){const _0x150973=_0x4baa0c['getRange']()['getContainedElement']();if(_0x150973){if(_0x150973['is']('element','tableCellSuggestion')&&De(_0x150973)){_0x250f00['removeMarker'](_0x4baa0c['name']),_0x369785['add'](_0x150973),_0x3c64c3=!0x0;const _0x49764c=_0x150973['nextSibling'],_0x5e3e0a=_0x150973['previousSibling'],_0x256e32=_0x49764c&&_0x49764c['is']('element','tableCellSuggestion'),_0x2cf93a=_0x5e3e0a&&_0x5e3e0a['is']('element','tableCellSuggestion');_0x256e32&&!_0x369785['has'](_0x49764c)&&_0x2dcc8b['add'](_0x49764c),_0x2cf93a&&!_0x369785['has'](_0x5e3e0a)&&_0x2dcc8b['add'](_0x5e3e0a);}else _0x150973['is']('element','paragraph')&&_0x150973['isEmpty']&&(_0x250f00['removeMarker'](_0x4baa0c['name']),_0x3c64c3=!0x0);}}else{if('tablePasteCell'==_0x250f00['subType']){if(!_0x250f00['attributes']||!_0x250f00['attributes']['tablePasteChainId'])continue;const _0x374c84=_0x250f00['attributes']['markerAttributes'];if(_0x374c84&&Object['keys'](_0x374c84)['length'])continue;const _0x4fbead=_0x250f00['attributes']['tablePasteChainId'];let _0x109688=!0x0,_0x2d9284=!0x0;for(const _0x193edc of _0xcc1ed5)if(_0x193edc['subType']&&_0x193edc['subType']['startsWith']('tablePaste')){if(!_0x193edc['attributes']['tablePasteChainId']){_0x2d9284=!0x1;break;}if(_0x193edc['id']!=_0x250f00['id']&&_0x193edc['attributes']['tablePasteChainId']==_0x4fbead){_0x109688=!0x1;break;}}_0x2d9284&&_0x109688&&(_0x250f00['removeMarkers'](),_0x3c64c3=!0x0);}}for(const _0x19bb94 of _0x369785)_0x321520['remove'](_0x19bb94);for(const _0x3830da of _0x2dcc8b)_0x321520['unwrap'](_0x3830da);return _0x3c64c3;}),_0x356a59['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5796a7=>_0x64d1cd(_0x5796a7),'converterPriority':'high'}),_0x356a59['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x593aa2,_0xe2ec09)=>_0xe2ec09['options']['showSuggestionHighlights']?_0x64d1cd(_0x593aa2,!0x1):null,'converterPriority':'high'});const _0x4f2cc5=_0x356a59['editing']['view'];this['listenTo'](_0x4f2cc5['document'],'clipboardOutput',(_0x5dceac,_0x48183b)=>{const _0x4639bd=[];for(const _0x5c3507 of _0x4f2cc5['createRangeIn'](_0x48183b['content'])['getItems']())_0x5c3507['is']('element','suggestion-td')&&_0x4639bd['push'](_0x5c3507);_0x4f2cc5['change'](_0x51342a=>{for(const _0x7b89e7 of _0x4639bd)_0x51342a['move'](_0x51342a['createRangeIn'](_0x7b89e7),_0x51342a['createPositionBefore'](_0x7b89e7)),_0x51342a['remove'](_0x7b89e7);});});}}function De(_0x20d293){if(_0x20d293['isEmpty'])return!0x0;const _0x37e4fe=_0x20d293['getChild'](0x0);return _0x37e4fe['is']('element','paragraph')&&_0x37e4fe['isEmpty'];}function He(_0x457121,_0x486ab5={},_0x516c2a){for(const {isAnchor:_0xf3b28d,cellHeight:_0x3108c5,cellWidth:_0xfcb3c6}of _0x516c2a['createTableWalker'](_0x457121,{'includeAllSlots':!0x0,..._0x486ab5}))if(!_0xf3b28d||0x1!=_0x3108c5||0x1!=_0xfcb3c6)return!0x1;return!0x0;}class Tt extends _0x44fd37{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x28b8ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x28b8ca['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x28b8ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x28b8ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b8ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x28b8ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x28b8ca['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2c08ce,_0x2180a1){const _0x1417d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17c498=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4af8b9=_0x2180a1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x517711=_0x17c498['getColumnGroupElement'](_0x4af8b9);let _0x2e7ec7=_0x517711?_0x17c498['getTableColumnsWidths'](_0x517711):null,_0xa1f359=_0x4af8b9['getAttribute']('tableWidth')||null;const _0x3291fc=_0x2180a1['tableWidth']||_0xa1f359,_0x14090e=_0x2180a1['columnWidths']||_0x2e7ec7,_0x5b0fa9=this['editor']['plugins']['get']('Users')['me'];for(const _0x301677 of _0x1417d7['getSuggestions']()){const _0x7e4b70=_0x301677['getContainedElement']();if('resizeTable'===_0x301677['subType']&&_0x7e4b70===_0x4af8b9){_0x301677['author']!==_0x5b0fa9&&_0x301677['discard']();const _0x3fd9eb=_0x301677['data']['commandParams'];_0xa1f359=_0x3fd9eb[0x0]['tableWidth'],_0x2e7ec7=_0x3fd9eb[0x0]['columnWidths'];break;}}_0x2c08ce({'table':_0x4af8b9,'tableWidth':_0x3291fc,'columnWidths':_0x14090e}),_0x1417d7['markBlockFormat'](_0x4af8b9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa1f359,'columnWidths':_0x2e7ec7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x54f9c7){if('formatBlock'!=_0x54f9c7['type']&&'formatInline'!=_0x54f9c7['type'])return;const {data:_0x407cd6}=_0x54f9c7;if(_0x407cd6&&'resizeTable'===_0x407cd6['formatGroupId']){const _0x4d6f0f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4d6f0f)};}}}class Ot extends _0x44fd37{['afterInit'](){const _0x5d419b=this['editor'];_0x5d419b['plugins']['has']('Template')&&_0x5d419b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x44fd37{['afterInit'](){const _0x2c2812=this['editor'];if(!_0x2c2812['commands']['get']('insertTableOfContents'))return;_0x2c2812['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2e3e0a=_0x2c2812['plugins']['get']('TrackChangesEditing'),_0x5419bc=_0x2c2812['locale'];_0x2e3e0a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a499d=>o(_0x5419bc,'ELEMENT_TABLE_OF_CONTENTS',_0x2a499d));}}class Et extends _0x44fd37{['afterInit'](){const _0x14498c=this['editor'];if(!_0x14498c['plugins']['has']('Title'))return;const _0x71c03f=_0x14498c['plugins']['get']('TrackChangesEditing');_0x71c03f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x14498c['locale'],'ELEMENT_TITLE')),_0x14498c['model']['document']['registerPostFixer'](_0x47075c=>{let _0x5b990a=!0x1;const _0x2c7f38=Array['from'](_0x14498c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ba4cb,data:_0x398347}of _0x2c7f38){const {group:_0x273c2c}=_0x71c03f['_splitMarkerName'](_0x2ba4cb);if('suggestion'!==_0x273c2c||!_0x398347['newRange'])continue;const _0x516b3b=_0x398347['newRange'],_0x22118d=_0x516b3b['end']['nodeBefore'];if(!_0x22118d||!_0x22118d['is']('element','title-content'))continue;if(!_0x516b3b['start']['isTouching'](_0x516b3b['end']))continue;const _0xe40d7d=_0x14498c['model']['schema']['getNearestSelectionRange'](_0x516b3b['end'],'forward');if(_0xe40d7d&&_0xe40d7d['isCollapsed']){const _0x153de1=_0x47075c['createRange'](_0x516b3b['start'],_0xe40d7d['start']);_0x153de1['isEqual'](_0x516b3b)||(_0x47075c['updateMarker'](_0x2ba4cb,{'range':_0x153de1}),_0x5b990a=!0x0);}_0x5b990a||(_0x47075c['removeMarker'](_0x2ba4cb),_0x5b990a=!0x0);}return _0x5b990a;});}}class Rt extends _0x44fd37{['afterInit'](){const _0x1f2980=this['editor'],_0x59bcbb=_0x1f2980['plugins']['get']('TrackChangesEditing');_0x1f2980['plugins']['has']('Uploadcare')&&(_0x59bcbb['enableCommand']('uploadcare'),_0x1f2980['plugins']['has']('UploadcareImageEdit')&&(_0x59bcbb['enableCommand']('uploadcareImageEdit'),_0x59bcbb['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x59bcbb['registerBlockAttribute']('uploadcareImageId'),_0x59bcbb['descriptionFactory']['registerDescriptionCallback'](_0x3d90d1=>{if('attribute'!=_0x3d90d1['type'])return;const {data:_0x370338}=_0x3d90d1;return _0x370338&&'uploadcareImageId'==_0x370338['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x44fd37{['afterInit'](){const _0x93e032=this['editor'],_0x4a620b=_0x93e032['plugins']['get']('TrackChangesEditing');_0x93e032['plugins']['has']('UndoEditing')&&(_0x4a620b['enableCommand']('undo'),_0x4a620b['enableCommand']('redo'));}}class Vt extends _0x44fd37{static get['requires'](){return[$t];}['afterInit'](){const _0x392802=this['editor'];if(!_0x392802['plugins']['has']('TableCaptionEditing'))return;_0x392802['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x44fd37{['tableProperties'];['tableCellProperties'];constructor(_0x22a716){super(_0x22a716),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x534c65=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3f2aff of this['tableProperties'])_0x534c65['enableCommand'](_0x3f2aff,(_0x238cb6,_0x2148c8)=>{const _0x3ca097=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3f2aff,[_0x3ca097],this['tableProperties'],'tableProperties',_0x238cb6,_0x2148c8);});_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x534c65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x562dfa,_0x2b126f)=>this['handleDiscardAction'](this['tableProperties'],_0x562dfa,_0x2b126f)),_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4afbcc of this['tableCellProperties'])_0x534c65['enableCommand'](_0x4afbcc,(_0x31237f,_0x2d984a)=>{const _0x3ec3d0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4afbcc,_0x3ec3d0,this['tableCellProperties'],'tableCellProperties',_0x31237f,_0x2d984a);});_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x534c65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x465acd,_0x22f79c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x465acd,_0x22f79c)),_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x534c65['descriptionFactory']['registerDescriptionCallback'](_0x5d5071=>this['handleSuggestionDescription'](_0x5d5071)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x555d3a,_0x1ba3a1,_0x420324,_0x22db09,_0x36688e,_0x581748){const _0x3b76b5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x581748['batch'],()=>{for(const _0x2e9a83 of _0x1ba3a1){if(this['_getSuggestion'](_0x2e9a83,_0x22db09))_0x36688e(_0x581748);else{const _0x10d6a5={};for(const _0x426360 of _0x420324){const _0x27614e=_0x2e9a83['getAttribute'](_0x426360);void 0x0!==_0x27614e&&(_0x10d6a5[_0x426360]=_0x27614e);}_0x36688e(_0x581748),_0x3b76b5['markBlockFormat'](_0x2e9a83,{'commandParams':[_0x10d6a5]},[],_0x22db09);}}});}['handleDiscardAction'](_0x18b36a,_0x2ac23e,_0x38d677){const _0x298820=_0x2ac23e[0x0]['start']['nodeAfter'],_0x1047ae=_0x38d677['commandParams'][0x0];this['editor']['model']['change'](_0x20bede=>{for(const _0x2729f of _0x18b36a)void 0x0!==_0x1047ae[_0x2729f]?_0x20bede['setAttribute'](_0x2729f,_0x1047ae[_0x2729f],_0x298820):_0x20bede['removeAttribute'](_0x2729f,_0x298820);});}['handleSuggestionDescription'](_0x415bc4){if(_0x415bc4['data'])switch(_0x415bc4['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x486ae0,_0x1c3ad3){const _0x13938f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x37b57e of _0x13938f['getSuggestions']({'skipNotAttached':!0x0})){const _0x553dce=_0x37b57e['getContainedElement']();if(_0x37b57e['subType']===_0x1c3ad3&&_0x553dce===_0x486ae0)return _0x37b57e;}return null;}['_registerTablePropertiesAttributes'](){const _0x11a77b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35cd3f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x10981f of _0x35cd3f){const _0x900257=_0x10981f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x11a77b['registerBlockAttribute'](_0x10981f),_0x11a77b['descriptionFactory']['registerAttributeLabel'](_0x10981f,o(this['editor']['locale'],'FORMAT_'+_0x900257));}}}class Pt extends _0x44fd37{['afterInit'](){const _0x4c72a3=this['editor'];if(!_0x4c72a3['plugins']['has']('LineHeight'))return;const _0x3684de=_0x4c72a3['plugins']['get']('TrackChangesEditing'),_0x3b4a54=_0x4c72a3['locale'];_0x3684de['enableDefaultAttributesIntegration']('lineHeight'),_0x3684de['registerBlockAttribute']('lineHeight'),_0x3684de['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3b4a54,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x44fd37{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x42acd4,_0x49aa4c,_0x42d159,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16098c){super(_0x16098c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x153e6c,_0x5ca04d,_0x43f9cf,_0x1ff517)=>{this['_model']['change'](()=>{for(const _0x53c641 of[..._0x1ff517,..._0x43f9cf])this['_model']['markers']['has'](_0x53c641)&&_0x16098c['editing']['reconvertMarker'](_0x53c641);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x16098c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x16098c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x16098c['config']['get']('trackChanges.trackFormatChanges'),_0x16098c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x16098c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x16098c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x36684d=this['editor'],_0x573062=(_0x585bb9,_0x3e0cb5)=>{if('attribute'!=_0x585bb9)return'ck-suggestion-marker-'+_0x585bb9;const _0x258dd0=_0x3e0cb5['split']('|')[0x0];return this['_isBlockAttribute'](_0x258dd0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x36684d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x46d822=>{const {id:_0x494679,authorId:_0x128ebb,type:_0x1c60af,subType:_0x520cc1}=this['_splitMarkerName'](_0x46d822['markerName']),_0x2f032e=['ck-suggestion-marker',_0x573062(_0x1c60af,_0x520cc1)];let _0x3123f8=0xbb8;return this['activeMarkers']['includes'](_0x46d822['markerName'])&&(_0x2f032e['push']('ck-suggestion-marker--active'),_0x3123f8=0xbc2),'deletion'==_0x1c60af&&(_0x3123f8+=0x5),{'classes':_0x2f032e,'attributes':{'data-suggestion':_0x494679,'data-author-id':_0x128ebb},'priority':_0x3123f8};}}),_0x36684d['conversion']['for']('dataDowncast')['add'](_0x1cdc86=>{_0x1cdc86['on']('addMarker:suggestion',(_0xf83b66,_0x30907d,_0xf6a757)=>{if(!_0xf6a757['options']['showSuggestionHighlights'])return;const _0x479190=_0x30907d['item'];if(!_0x479190)return;const _0x3a91f1=_0xf6a757['mapper']['toViewElement'](_0x479190);_0x36684d['model']['schema']['isObject'](_0x479190)&&_0x3a91f1&&!_0x3a91f1['getCustomProperty']('widget')&&_0x3a91f1['is']('containerElement')&&_0x1caa32(_0x3a91f1,_0xf6a757['writer']);},{'priority':'high'});}),_0x36684d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2e6b00,_0x57d5c6)=>{if(!_0x57d5c6['options']['showSuggestionHighlights'])return null;const {id:_0x1de821,authorId:_0x270133,type:_0x22ca35,subType:_0x23c4d3}=this['_splitMarkerName'](_0x2e6b00['markerName']);return{'classes':['ck-suggestion-marker',_0x573062(_0x22ca35,_0x23c4d3)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1de821,'data-author-id':_0x270133}};}});const _0x3e697a=({showActiveMarkers:_0x5da308=!0x0,isAttributeSuggestion:_0xc0185e=!0x1}={})=>(_0x7dc328,_0xf4ac11,_0xe1cd4e)=>{if(!_0xf4ac11['item'])return;const {id:_0x4a5466,authorId:_0x497ffc,subType:_0x47ab5a}=this['_splitMarkerName'](_0xf4ac11['markerName']);if(_0xc0185e){const _0x1dc0bc=se(_0x47ab5a);if(!this['_isBlockAttribute'](_0x1dc0bc))return;}if(_0xf4ac11['item']['is']('selection'))return void _0xe1cd4e['consumable']['consume'](_0xf4ac11['item'],_0x7dc328['name']);const _0x350fb7=_0xe1cd4e['mapper']['toViewElement'](_0xf4ac11['item']);if(_0xf4ac11['item']['is']('element')&&_0x36684d['model']['schema']['isBlock'](_0xf4ac11['item'])&&!_0x350fb7['getCustomProperty']('addHighlight')){_0xe1cd4e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x350fb7),_0xe1cd4e['writer']['setAttribute']('data-suggestion',_0x4a5466,_0x350fb7),_0xe1cd4e['writer']['setAttribute']('data-author-id',_0x497ffc,_0x350fb7),_0xe1cd4e['mapper']['bindElementToMarker'](_0x350fb7,_0xf4ac11['markerName']),_0x5da308&&(this['activeMarkers']['includes'](_0xf4ac11['markerName'])?_0xe1cd4e['writer']['addClass']('ck-suggestion-marker--active',_0x350fb7):_0xe1cd4e['writer']['removeClass']('ck-suggestion-marker--active',_0x350fb7));for(const _0x437a9b of _0x36684d['model']['createRangeIn'](_0xf4ac11['item'])['getItems']())_0xe1cd4e['consumable']['consume'](_0x437a9b,_0x7dc328['name']);_0xe1cd4e['consumable']['consume'](_0xf4ac11['item'],_0x7dc328['name']);}};_0x36684d['conversion']['for']('dataDowncast')['add'](_0x22bf92=>{_0x22bf92['on']('addMarker:suggestion:formatBlock',(_0x131aa8,_0x588658,_0x2e1c49)=>{_0x2e1c49['options']['showSuggestionHighlights']&&_0x3e697a({'showActiveMarkers':!0x1})(_0x131aa8,_0x588658,_0x2e1c49);},{'priority':'highest'});}),_0x36684d['conversion']['for']('dataDowncast')['add'](_0x4d1636=>{_0x4d1636['on']('addMarker:suggestion:attribute',(_0x4bf044,_0x4c5b2e,_0x11858d)=>{_0x11858d['options']['showSuggestionHighlights']&&_0x3e697a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4bf044,_0x4c5b2e,_0x11858d);},{'priority':'highest'});}),_0x36684d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x25cbff,_0x48da5d)=>{if(_0x48da5d['options']['showSuggestionHighlights']){const {id:_0x33e8b2,authorId:_0x1375c6}=this['_splitMarkerName'](_0x25cbff);return _0x25cbff['includes'](':split')||_0x25cbff['includes'](':merge')?{'group':'suggestion','name':_0x25cbff['substr'](0xb),'attributes':{'data-suggestion':_0x33e8b2,'data-author-id':_0x1375c6}}:null;}return{'group':'suggestion','name':_0x25cbff['substr'](0xb)};}}),_0x36684d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x44ebc8,{writer:_0x452f6a})=>{let _0x57201a='suggestion:'+_0x44ebc8['getAttribute']('suggestion-type')+':'+_0x44ebc8['getAttribute']('id');return _0x44ebc8['getAttribute']('marker-count')&&(_0x57201a+=':'+_0x44ebc8['getAttribute']('marker-count')),_0x452f6a['createElement']('$marker',{'data-name':_0x57201a});}}),_0x36684d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x36684d['conversion']['for']('editingDowncast')['add'](_0x5f397d=>{_0x5f397d['on']('addMarker:suggestion:formatBlock',_0x3e697a(),{'priority':'high'});}),_0x36684d['conversion']['for']('editingDowncast')['add'](_0x45ca7c=>{_0x45ca7c['on']('addMarker:suggestion:attribute',_0x3e697a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x36684d['conversion']['for']('editingDowncast')['add'](_0x176f51=>{_0x176f51['on']('removeMarker:suggestion:formatBlock',(_0x33b483,_0x36bd7c,_0x3c2b92)=>{const _0x11b04b=_0x3c2b92['mapper']['markerNameToElements'](_0x36bd7c['markerName']);if(_0x11b04b){for(const _0x50a758 of _0x11b04b)_0x50a758['getCustomProperty']('addHighlight')||(_0x3c2b92['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x50a758),_0x3c2b92['writer']['removeAttribute']('data-suggestion',_0x50a758),_0x3c2b92['writer']['removeAttribute']('data-author-id',_0x50a758),_0x3c2b92['mapper']['unbindElementFromMarkerName'](_0x50a758,_0x36bd7c['markerName']));}},{'priority':'high'});}),_0x36684d['conversion']['for']('editingDowncast')['add'](_0x58f4c1=>{_0x58f4c1['on']('removeMarker:suggestion:attribute',(_0x19d576,_0x398191,_0x12ef26)=>{const _0x51d710=_0x12ef26['mapper']['markerNameToElements'](_0x398191['markerName']);if(!_0x51d710)return;const {subType:_0x4de5d7}=this['_splitMarkerName'](_0x398191['markerName']),_0x3fa157=se(_0x4de5d7);if(this['_isBlockAttribute'](_0x3fa157)){for(const _0xcc1973 of _0x51d710)_0xcc1973['getCustomProperty']('addHighlight')||(_0x12ef26['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xcc1973),_0x12ef26['writer']['removeAttribute']('data-suggestion',_0xcc1973),_0x12ef26['writer']['removeAttribute']('data-author-id',_0xcc1973),_0x12ef26['mapper']['unbindElementFromMarkerName'](_0xcc1973,_0x398191['markerName']));}},{'priority':'high'});}),_0x36684d['model']['document']['registerPostFixer'](_0x31fe03=>{let _0x5d1f9e=!0x1;const _0x28870e=Array['from'](_0x36684d['model']['document']['differ']['getChangedMarkers']()),_0x475faf=new Set();for(const {name:_0x4af8c0,data:_0x1e6ae6}of _0x28870e){const {group:_0x4bca58,type:_0x30c0ac,subType:_0x24084d,id:_0x2b635f}=this['_splitMarkerName'](_0x4af8c0);if('suggestion'!==_0x4bca58)continue;const _0x3772c8=_0x24084d?'suggestion:'+_0x30c0ac+':'+_0x24084d+':'+_0x2b635f:'suggestion:'+_0x30c0ac+':'+_0x2b635f,_0x1437ac=_0x36684d['model']['markers']['getMarkersGroup'](_0x3772c8),_0x2ec9c0=_0x36684d['model']['markers']['get'](_0x4af8c0),_0x57500e=this['_suggestions']['get'](_0x2b635f);if(null!=_0x1e6ae6['newRange']){'formatInline'==_0x30c0ac&&(_0x5d1f9e=_0x5d1f9e||Ht(_0x1e6ae6['newRange'],_0x4af8c0,_0x31fe03,_0x36684d['model']['schema']));const _0x198582='attribute'==_0x30c0ac&&this['_isBlockAttribute'](_0x24084d['split']('|')[0x0]),_0x1d6d99='attribute'==_0x30c0ac&&this['_isInlineAttribute'](_0x24084d['split']('|')[0x0]);if(_0x1e6ae6['newRange']['isCollapsed']||'$graveyard'==_0x1e6ae6['newRange']['root']['rootName']||'formatBlock'==_0x30c0ac&&!qt(_0x1e6ae6['newRange'])||_0x198582&&!qt(_0x1e6ae6['newRange'])||_0x1d6d99&&zt(_0x1e6ae6['newRange'])||'deletion'==_0x30c0ac&&zt(_0x1e6ae6['newRange'])||_0x2ec9c0&&Qt(_0x2ec9c0,_0x1437ac))_0x31fe03['removeMarker'](_0x4af8c0),_0x5d1f9e=!0x0;else{if(!_0x57500e||!_0x57500e['isInContent'])continue;if(_0x1e6ae6['newRange']&&_0x1e6ae6['oldRange']&&_0x1e6ae6['newRange']['isEqual'](_0x1e6ae6['oldRange']))continue;_0x475faf['add'](_0x57500e);}}}return _0x475faf['size']>0x0&&(_0x5d1f9e=!!this['_joinWithAdjacentSuggestions'](_0x475faf)||_0x5d1f9e),_0x5d1f9e;}),_0x36684d['model']['document']['registerPostFixer'](_0x94d091=>{let _0x1b214e=!0x1;for(const _0x4e024d of _0x36684d['model']['document']['differ']['getChanges']())if('insert'==_0x4e024d['type'])for(const _0x5701ef of this['_suggestions']['values']()){if(_0x5701ef['isMultiRange']||!_0x5701ef['isInContent'])continue;const _0x1f71f7='formatBlock'==_0x5701ef['type'],_0x2b82b2=this['_getAttributeKey'](_0x5701ef),_0x13140b=_0x2b82b2&&this['_isBlockAttribute'](_0x2b82b2);if(!_0x1f71f7&&!_0x13140b)continue;const _0x64016f=_0x5701ef['getFirstRange']();if(_0x64016f['start']['parent']!=_0x64016f['end']['parent']&&!_0x64016f['end']['isAtEnd']){const _0x11b322=_0x36684d['model']['createPositionAt'](_0x64016f['start']['nodeAfter'],'end'),_0x12a03b=_0x36684d['model']['createRange'](_0x64016f['start'],_0x11b322);_0x94d091['updateMarker'](_0x5701ef['getFirstMarker'](),{'range':_0x12a03b}),_0x1b214e=!0x0;}}return _0x1b214e;}),_0x36684d['model']['document']['registerPostFixer'](_0x3e3979=>this['_processAttributeChanges'](_0x3e3979)),_0x36684d['model']['document']['registerPostFixer'](_0x31fa8a=>!_0x31fa8a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x31fa8a)),_0x36684d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x36684d['model']['document']['on']('change:data',(_0x4fb238,_0x36fb6f)=>{if(!_0x36fb6f['isLocal']||_0x36fb6f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1cead2=_0x36684d['model']['document']['differ']['getChanges']();if(0x0==_0x1cead2['length'])return;const _0x21199d=[],_0x2c554e=_0x1cead2['filter'](_0x454d3b=>'attribute'==_0x454d3b['type']),_0x369e7e=_0x1cead2['filter'](_0x363f55=>'insert'==_0x363f55['type']&&'$text'!=_0x363f55['name']);for(const _0x387bd3 of _0x2c554e)this['_isRegisteredAttribute'](_0x387bd3['attributeKey'])&&_0x21199d['push']({'key':_0x387bd3['attributeKey'],'newValue':_0x387bd3['attributeNewValue'],'oldValue':_0x387bd3['attributeOldValue'],'range':Yt(_0x387bd3['range'],_0x36684d['model'])});for(const _0x19e73a of _0x369e7e){if('rename'!=_0x19e73a['action']&&'refresh'!=_0x19e73a['action'])continue;const _0x1ef3c7=Zt(_0x19e73a['position']['nodeAfter'],_0x36684d['model']),_0x2c5dc5=_0x19e73a['before'];'rename'==_0x19e73a['action']&&_0x21199d['push']({'key':m,'newValue':_0x19e73a['name'],'oldValue':_0x2c5dc5['name'],'range':_0x1ef3c7});for(const [_0x40119e,_0x25209e]of _0x2c5dc5['attributes']){if(!this['_isRegisteredAttribute'](_0x40119e))continue;const _0x1a9479=_0x19e73a['attributes']['get'](_0x40119e);_0x25209e!==_0x1a9479&&_0x21199d['push']({'key':_0x40119e,'newValue':_0x1a9479,'oldValue':_0x25209e,'range':_0x1ef3c7});}for(const [_0x7c3e69,_0xe7b467]of _0x19e73a['attributes'])this['_isRegisteredAttribute'](_0x7c3e69)&&(_0x2c5dc5['attributes']['has'](_0x7c3e69)||_0x21199d['push']({'key':_0x7c3e69,'newValue':_0xe7b467,'oldValue':null,'range':_0x1ef3c7}));}0x0!=_0x21199d['length']&&_0x36684d['model']['enqueueChange'](_0x36fb6f,_0x1c86b2=>{const _0x482533=_0x5b7b63();for(const {range:_0x4efe7c,key:_0x24726f,oldValue:_0x21ead4,newValue:_0x1425fb}of _0x21199d)this['markAttributeChange'](_0x4efe7c,_0x24726f,_0x21ead4,_0x1425fb,{'groupId':_0x482533});this['_reduceExistingSuggestions'](_0x1c86b2,_0x21199d);});},{'priority':'lowest'}),_0x36684d['model']['markers']['on']('update:suggestion',(_0x4122c0,_0x141086,_0x58369b)=>{if(null==_0x58369b){const {id:_0x5a587d}=this['_splitMarkerName'](_0x141086['name']),_0x877248=this['_suggestions']['get'](_0x5a587d);_0x877248&&_0x877248['addMarkerName'](_0x141086['name']);}}),_0x36684d['model']['document']['on']('change:data',()=>{const _0x49033f=Array['from'](_0x36684d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5eff56=>'suggestion'===this['_splitMarkerName'](_0x5eff56['name'])['group']);if(0x0===_0x49033f['length'])return;_0x49033f['sort']((_0x4194db,_0x552d23)=>{const _0x36fa3a=_0x4194db['data']['oldRange'],_0x31adf8=_0x552d23['data']['oldRange'];return null===_0x36fa3a&&null===_0x31adf8?0x0:null===_0x36fa3a&&null!==_0x31adf8?-0x1:null!==_0x36fa3a&&null===_0x31adf8?0x1:_0x36fa3a['start']['isBefore'](_0x31adf8['start'])?-0x1:0x1;});const _0x2463d1=new Set(),_0x18f5c8=new Set();for(const {name:_0x30bbc0,data:_0x48e17c}of _0x49033f){const {id:_0x3826fc}=this['_splitMarkerName'](_0x30bbc0);if(null===_0x48e17c['oldRange']){const _0x40c05f=this['_handleNewSuggestionMarker'](_0x30bbc0);_0x18f5c8['add'](_0x40c05f);}else{const _0x25e937=this['_suggestions']['get'](_0x3826fc);null!==_0x48e17c['newRange']||_0x25e937['isInContent']?(_0x2463d1['add'](_0x25e937['head']),_0x18f5c8['add'](_0x25e937)):this['_removeSuggestion'](_0x25e937);}}_0x18f5c8['size']>0x0&&this['_refreshSuggestionsChain'](_0x18f5c8);for(const _0xb5214f of _0x2463d1)this['fire']('suggestionChanged',_0xb5214f);}),_0x36684d['model']['on']('applyOperation',(_0x8e925b,_0x5d2f01)=>{const _0x2cb721=_0x5d2f01[0x0];if(!this['_suggestions']['size'])return;if(!_0x2cb721['isDocumentOperation'])return;if(_0x2cb721['batch']['isUndo']||!_0x2cb721['batch']['isLocal'])return;let _0xdb6470,_0x45d50f;switch(_0x2cb721['type']){case'insert':_0xdb6470=_0x36684d['model']['createPositionAt'](_0x2cb721['position']),_0x45d50f=_0xdb6470['getShiftedBy'](_0x2cb721['howMany']);break;case'split':_0xdb6470=_0x36684d['model']['createPositionAt'](_0x2cb721['splitPosition']),_0x45d50f=_0x36684d['model']['createPositionAt'](_0x2cb721['moveTargetPosition']);break;case'move':_0xdb6470=_0x36684d['model']['createPositionAt'](_0x2cb721['targetPosition']),_0x45d50f=_0xdb6470['getShiftedBy'](_0x2cb721['howMany']);break;default:return;}const _0x46130d=_0x36684d['model']['createRange'](_0xdb6470,_0x45d50f);_0x36684d['model']['change'](()=>{for(const {suggestion:_0x2b393c,meta:_0x4208a1}of this['_findSuggestions'](_0x46130d)){if(_0x2b393c['isMultiRange'])continue;if('formatInline'==_0x2b393c['type'])continue;const _0x5d5230=this['_getAttributeKey'](_0x2b393c);if(_0x5d5230&&this['_isBlockAttribute'](_0x5d5230)&&'split'!=_0x2cb721['type'])continue;const _0x1e8cbe=_0x2b393c['data']&&_0x2b393c['data']['multipleBlocks'];('formatBlock'!=_0x2b393c['type']||'split'==_0x2cb721['type']&&!_0x1e8cbe)&&(_0x4208a1['containsRangeInObject']||'insertion'==_0x2b393c['type']&&_0x4208a1['isOwn']||_0x2b393c['getFirstRange']()['containsRange'](_0x46130d)&&this['_breakSuggestionMarker'](_0x2b393c,_0xdb6470,_0x45d50f));}});},{'priority':'lowest'}),_0x36684d['model']['on']('deleteContent',(_0x175f67,_0x151512)=>{const _0x359c9d=_0x151512[0x0],_0xab39aa=_0x151512[0x1];if(_0xab39aa&&_0xab39aa['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x359c9d['isCollapsed'])return;const _0x2653d6=_0x36684d['model']['schema'],{start:_0x3aafdd,end:_0x52a5c2}=_0x359c9d['getFirstRange'](),_0x5cf8b7=_0x3aafdd['nodeAfter']&&_0x2653d6['isLimit'](_0x3aafdd['nodeAfter'])?null:_0x2653d6['getNearestSelectionRange'](_0x3aafdd,'forward'),_0x52637f=_0x52a5c2['nodeBefore']&&_0x2653d6['isLimit'](_0x52a5c2['nodeBefore'])?null:_0x2653d6['getNearestSelectionRange'](_0x52a5c2,'backward'),_0x4afc25=_0x36684d['model']['createRange'](_0x5cf8b7?_0x5cf8b7['start']:_0x3aafdd,_0x52637f?_0x52637f['end']:_0x52a5c2);_0x36684d['model']['change'](_0x18e32a=>{this['markDeletion'](_0x4afc25);const _0x5ec544=_0x36684d['model']['schema']['getNearestSelectionRange'](_0x4afc25['start']);_0x359c9d['is']('documentSelection')?_0x18e32a['setSelection'](_0x5ec544):_0x359c9d['setTo'](_0x5ec544);}),_0x175f67['stop']();},{'priority':_0x5aa02d['normal']+0xa}),_0x36684d['model']['on']('insertContent',(_0x6a7fc,_0x28bb20)=>{const _0x3920ef=_0x28bb20[_0x28bb20['length']-0x1];_0x3920ef&&_0x3920ef['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x36684d['model']['change'](()=>{let _0x53ac0b=_0x36684d['model']['insertContent'](_0x28bb20[0x0],_0x28bb20[0x1],_0x28bb20[0x2],{'forceDefaultExecution':!0x0});if(!_0x53ac0b)return;_0x6a7fc['return']=_0x53ac0b['clone']();const _0x5c5487=_0x53ac0b['end']['nodeBefore'],_0x1d7449=_0x36684d['model']['schema'];_0x5c5487&&_0x1d7449['isBlock'](_0x5c5487)&&!_0x1d7449['isObject'](_0x5c5487)&&(_0x53ac0b=_0x36684d['model']['createRange'](_0x53ac0b['start'],_0x36684d['model']['createPositionAt'](_0x5c5487,'end'))),this['markInsertion'](_0x53ac0b);}),_0x6a7fc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4e275d=new T(_0x36684d,this['_suggestions']);_0x36684d['commands']['add']('acceptSuggestion',_0x4e275d),this['enableCommand']('acceptSuggestion');const _0x59360=new O(_0x36684d,this['_suggestions']);_0x36684d['commands']['add']('discardSuggestion',_0x59360),this['enableCommand']('discardSuggestion'),_0x36684d['commands']['add']('acceptAllSuggestions',new x(_0x36684d,_0x4e275d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x36684d['commands']['add']('discardAllSuggestions',new x(_0x36684d,_0x59360,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x36684d['commands']['add']('acceptSelectedSuggestions',new E(_0x36684d,_0x4e275d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x36684d['commands']['add']('discardSelectedSuggestions',new E(_0x36684d,_0x59360,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x556507=_0x36684d['plugins']['get']('CommentsRepository');this['listenTo'](_0x556507,'addComment',(_0xd121d4,{threadId:_0x562f5c})=>{const _0x127ff7=this['_suggestions']['get'](_0x562f5c);_0x127ff7&&_0x127ff7['commentThread']&&0x1===_0x127ff7['commentThread']['length']&&this['_updateSuggestionData'](_0x562f5c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x556507,'removeComment',(_0xd7f527,{threadId:_0xd632af})=>{const _0x3a6d96=this['_suggestions']['get'](_0xd632af);_0x3a6d96&&_0x3a6d96['commentThread']&&!_0x3a6d96['commentThread']['length']&&this['_updateSuggestionData'](_0xd632af,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ec4d7){const _0x4240a7=_0x21d670([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x5c91d7=0x6b0f5e6f,_0x5f47e2=0x6b082ac7^_0x5c91d7,_0x54b479=window[_0x21d670([0x44,0x61,0x74,0x65])][_0x21d670([0x6e,0x6f,0x77])](),_0x25ecdb=_0x2ec4d7[_0x21d670([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53cb4c=new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ead7f=>{_0x25ecdb[_0x21d670([0x6f,0x6e,0x63,0x65])](_0x21d670([0x72,0x65,0x61,0x64,0x79]),_0x2ead7f);}),_0x5575c9={[_0x21d670([0x6b,0x74,0x79])]:_0x21d670([0x45,0x43]),[_0x21d670([0x75,0x73,0x65])]:_0x21d670([0x73,0x69,0x67]),[_0x21d670([0x63,0x72,0x76])]:_0x21d670([0x50,0x2d,0x32,0x35,0x36]),[_0x21d670([0x78])]:_0x21d670([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x21d670([0x79])]:_0x21d670([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x21d670([0x61,0x6c,0x67])]:_0x21d670([0x45,0x53,0x32,0x35,0x36])},_0x31554f=_0x25ecdb[_0x21d670([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21d670([0x67,0x65,0x74])](_0x21d670([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbb5caa(){let _0x30db01,_0xc64253=null,_0x21acc3=null;try{if(_0x31554f==_0x21d670([0x47,0x50,0x4c]))return _0x21d670([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30db01=_0x6655b1(),!_0x30db01)return _0x21d670([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30db01[_0x21d670([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21acc3=_0x7db6b4(_0x30db01[_0x21d670([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30db01[_0x21d670([0x6a,0x74,0x69])])),await _0x44d0a9()?_0x21fcfd()?_0x54cbd5()?_0x21d670([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46a3d7()?(_0x30db01[_0x21d670([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21d670([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc64253=_0x4b6636(_0x21d670([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30db01[_0x21d670([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21d670([0x74,0x72,0x69,0x61,0x6c])&&(_0xc64253=_0x4b6636(_0x21d670([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f6376()):_0x21d670([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21d670([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21d670([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21d670([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x54cbd5(){const _0x3929d1=[_0x21d670([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21d670([0x74,0x72,0x69,0x61,0x6c])][_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30db01[_0x21d670([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54b479/0x3e8:0xe10*_0x5f47e2;return _0x30db01[_0x21d670([0x65,0x78,0x70])]<_0x3929d1;}function _0x21fcfd(){const _0x10613f=_0x30db01[_0x21d670([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x10613f)return!0x1;if(_0x10613f[_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d670([0x2a])))return!0x0;if(_0x10613f[_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d670([0x54,0x43])))return!0x0;if(_0x10613f[_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d670([0x52,0x54,0x43]))){if(_0x1b1854())return!0x0;if(_0x362e23()||_0x35bb41())return!0x0;}return!0x1;}function _0x46a3d7(){const _0x11f4cf=_0x30db01[_0x21d670([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11f4cf||0x0==_0x11f4cf[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x229ad2}=new URL(window[_0x21d670([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11f4cf[_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x229ad2))return!0x0;const _0x1499b3=_0x229ad2[_0x21d670([0x73,0x70,0x6c,0x69,0x74])](_0x21d670([0x2e]));return _0x11f4cf[_0x21d670([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9dc89=>_0x9dc89[_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d670([0x2a])))[_0x21d670([0x6d,0x61,0x70])](_0x57f9ea=>_0x57f9ea[_0x21d670([0x73,0x70,0x6c,0x69,0x74])](_0x21d670([0x2e])))[_0x21d670([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f58dd=>_0x5f58dd[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1499b3[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21d670([0x6d,0x61,0x70])](_0xb46636=>Array(_0x1499b3[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb46636[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21d670([0x66,0x69,0x6c,0x6c])](_0xb46636[0x0]===_0x21d670([0x2a])?_0x21d670([0x2a]):'')[_0x21d670([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb46636))[_0x21d670([0x73,0x6f,0x6d,0x65])](_0x204c09=>_0x1499b3[_0x21d670([0x65,0x76,0x65,0x72,0x79])]((_0x28c807,_0x5b2500)=>_0x204c09[_0x5b2500]===_0x28c807||_0x204c09[_0x5b2500]===_0x21d670([0x2a])));}function _0x2f6376(){return _0xc64253&&_0x21acc3?new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2037d7,_0x294857)=>{_0xc64253[_0x21d670([0x74,0x68,0x65,0x6e])](_0x2037d7,_0x294857),_0x21acc3[_0x21d670([0x74,0x68,0x65,0x6e])](_0x4233bd=>{_0x4233bd!=_0x21d670([0x56,0x61,0x6c,0x69,0x64])&&_0x2037d7(_0x4233bd);},_0x294857);}):_0xc64253||_0x21acc3||_0x21d670([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7db6b4(_0x1462c9,_0xbcf7a4){return new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x436bea=>{if(_0x51112d())return _0x436bea(_0x21d670([0x56,0x61,0x6c,0x69,0x64]));_0x1853d1(),_0x25ecdb[_0x21d670([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21d670([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3410c4=!0x1;const _0x180abf=_0x5b7b63();function _0x381279(_0x5397ce){return!!_0x5397ce&&(typeof _0x5397ce===_0x21d670([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5397ce===_0x21d670([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5397ce[_0x21d670([0x74,0x68,0x65,0x6e])]===_0x21d670([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5397ce[_0x21d670([0x63,0x61,0x74,0x63,0x68])]===_0x21d670([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x210893(_0x3b1fca){_0x1707f5(_0x3b1fca)[_0x21d670([0x74,0x68,0x65,0x6e])](_0x2b4dfe=>{if(!_0x2b4dfe||_0x2b4dfe[_0x21d670([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21d670([0x6f,0x6b]))return _0x21d670([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11aa2e(_0x1acf14(_0x180abf+_0xbcf7a4))!=_0x2b4dfe[_0x21d670([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21d670([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21d670([0x56,0x61,0x6c,0x69,0x64]);})[_0x21d670([0x74,0x68,0x65,0x6e])](_0x3b77fd=>(_0x21cfc4(),_0x3b77fd),()=>{const _0x25ed1f=_0x413790();return null==_0x25ed1f?(_0x21cfc4(),_0x21d670([0x56,0x61,0x6c,0x69,0x64])):_0x21d670(_0x54b479-_0x25ed1f>(0x4f03da6f^_0x5c91d7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21d670([0x74,0x68,0x65,0x6e])](_0x436bea)[_0x21d670([0x63,0x61,0x74,0x63,0x68])](()=>{_0x436bea(_0x21d670([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xaa7fc3=0x6b39b0ef^_0x5c91d7;function _0x21cfc4(){const _0x5ea042=_0x21d670([0x6c,0x6c,0x63,0x74,0x2d])+_0x11aa2e(_0x1acf14(_0x1462c9)),_0x4edaf7=_0x5bf0ae(_0x11aa2e(window[_0x21d670([0x4d,0x61,0x74,0x68])][_0x21d670([0x63,0x65,0x69,0x6c])](_0x54b479/_0xaa7fc3)));window[_0x21d670([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21d670([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ea042,_0x4edaf7);}function _0x413790(){const _0x401b09=_0x21d670([0x6c,0x6c,0x63,0x74,0x2d])+_0x11aa2e(_0x1acf14(_0x1462c9)),_0x4c3adc=window[_0x21d670([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21d670([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x401b09);return _0x4c3adc?window[_0x21d670([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bf0ae(_0x4c3adc),0x10)*_0xaa7fc3:null;}function _0x1707f5(_0x27cf2d){return new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb0052d,_0x51e714)=>{_0x27cf2d[_0x21d670([0x74,0x68,0x65,0x6e])](_0xb0052d,_0x51e714),window[_0x21d670([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51e714,0x6b0e8aaf^_0x5c91d7);});}}_0x25ecdb[_0x21d670([0x6f,0x6e])](_0x21d670([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2797a7,_0x301554)=>{if(_0x301554[0x0]!=_0x1462c9)return _0x436bea(_0x21d670([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x301554[0x1]={..._0x301554[0x1],[_0x21d670([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x180abf};},{[_0x21d670([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21d670([0x68,0x69,0x67,0x68])}),_0x25ecdb[_0x21d670([0x6f,0x6e])](_0x21d670([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x597b17=>{_0x381279(_0x597b17[_0x21d670([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3410c4=!0x0,_0x210893(_0x597b17[_0x21d670([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21d670([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21d670([0x6c,0x6f,0x77])}),_0x53cb4c[_0x21d670([0x74,0x68,0x65,0x6e])](()=>{_0x3410c4||_0x436bea(_0x21d670([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51112d(){return _0x25ecdb[_0x21d670([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21d670([0x76,0x69,0x65,0x77])][_0x21d670([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21d670([0x61,0x75,0x74,0x6f]);}function _0x1853d1(){_0x25ecdb[_0x21d670([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21d670([0x76,0x69,0x65,0x77])][_0x21d670([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21d670([0x61,0x75,0x74,0x6f]);}}function _0x4b6636(_0x53142d){const _0x2c636e=[new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x491369=>setTimeout(_0x491369,0x6b0660a3^_0x5c91d7)),_0x53cb4c[_0x21d670([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4487f2=>{let _0x50b8cc=0x0;_0x25ecdb[_0x21d670([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d670([0x6f,0x6e])](_0x21d670([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e3467,_0xa36d35)=>{_0xa36d35[0x0][_0x21d670([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50b8cc++,_0x50b8cc==(0x6b0f5f97^_0x5c91d7)&&(_0x4487f2(),_0x3e3467[_0x21d670([0x6f,0x66,0x66])]());});}))];return window[_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21d670([0x72,0x61,0x63,0x65])](_0x2c636e)[_0x21d670([0x74,0x68,0x65,0x6e])](()=>_0x53142d);}async function _0x582a1a(){await _0x53cb4c,_0x25ecdb[_0x21d670([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d670([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f2b67,_0x25ecdb[_0x21d670([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d670([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f2b67,_0x25ecdb[_0x21d670([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21d670([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b1854(){return _0x3ef41e(_0x21d670([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x504f63(_0x21d670([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x21d670([0x73,0x74,0x61,0x74,0x65])]==_0x21d670([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x362e23(){return _0x3ef41e(_0x21d670([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x35bb41(){return _0x3ef41e(_0x21d670([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2306f2(_0x39718d){const _0x4733da=_0x43cbfd();_0x25ecdb[_0x4733da]=_0x21d670([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39718d,_0x39718d!=_0x21d670([0x56,0x61,0x6c,0x69,0x64])&&_0x582a1a();}function _0x43cbfd(){const _0x5b95d3=window[_0x21d670([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21d670([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21d670([0x6e,0x6f,0x77])]())[_0x21d670([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21d670([0x2e]),'');let _0x48a33f=_0x21d670([0x67]);for(let _0x16628d=0x0;_0x16628d<_0x5b95d3[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16628d+=0x2){let _0xb8b09e=window[_0x21d670([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b95d3[_0x21d670([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16628d,_0x16628d+0x2));_0xb8b09e>=_0x4240a7[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb8b09e-=_0x4240a7[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48a33f+=_0x4240a7[_0xb8b09e];}return _0x48a33f;}function _0x6655b1(){const _0x1024f3=_0x31554f[_0x21d670([0x73,0x70,0x6c,0x69,0x74])](_0x21d670([0x2e]));if(0x3!=_0x1024f3[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x346189(_0x1024f3[0x1]);function _0x346189(_0x1fe193){const _0x174443=_0x42b7c8(_0x1fe193);return _0x174443&&_0x48d659()?_0x174443:null;function _0x48d659(){const _0x4567f5=_0x174443[_0x21d670([0x6a,0x74,0x69])],_0x3fa048=window[_0x21d670([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4567f5[_0x21d670([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4567f5[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59568a={..._0x174443,[_0x21d670([0x6a,0x74,0x69])]:_0x4567f5[_0x21d670([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4567f5[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59568a[_0x21d670([0x76,0x63])],_0x1acf14(_0x59568a)==_0x3fa048;}}}async function _0x44d0a9(){let _0x2f984e=!0x0;try{const _0x8956fd=_0x31554f[_0x21d670([0x73,0x70,0x6c,0x69,0x74])](_0x21d670([0x2e])),[_0x3d0e67,_0x555527,_0x10150a]=_0x8956fd;return _0x2a9f30(_0x3d0e67),await _0x5bd56e(_0x3d0e67,_0x555527,_0x10150a),_0x2f984e;}catch{return!0x1;}function _0x2a9f30(_0x22bb05){const _0x1185b2=_0x42b7c8(_0x22bb05);_0x1185b2&&_0x1185b2[_0x21d670([0x61,0x6c,0x67])]==_0x21d670([0x45,0x53,0x32,0x35,0x36])||(_0x2f984e=!0x1);}async function _0x5bd56e(_0x59925e,_0xc8ba59,_0x15ee58){const _0x2a084e=window[_0x21d670([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21d670([0x66,0x72,0x6f,0x6d])](_0x14b4ac(_0x15ee58),_0x271b05=>_0x271b05[_0x21d670([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x626e59=new window[(_0x21d670([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21d670([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59925e+_0x21d670([0x2e])+_0xc8ba59),_0x30f9d8=window[_0x21d670([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21d670([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30f9d8)return;const _0x48dd8a=await _0x30f9d8[_0x21d670([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21d670([0x6a,0x77,0x6b]),_0x5575c9,{[_0x21d670([0x6e,0x61,0x6d,0x65])]:_0x21d670([0x45,0x43,0x44,0x53,0x41]),[_0x21d670([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21d670([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21d670([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30f9d8[_0x21d670([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21d670([0x6e,0x61,0x6d,0x65])]:_0x21d670([0x45,0x43,0x44,0x53,0x41]),[_0x21d670([0x68,0x61,0x73,0x68])]:{[_0x21d670([0x6e,0x61,0x6d,0x65])]:_0x21d670([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48dd8a,_0x2a084e,_0x626e59)||(_0x2f984e=!0x1);}}function _0x42b7c8(_0x4308f8){return _0x4308f8[_0x21d670([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21d670([0x65,0x79]))?JSON[_0x21d670([0x70,0x61,0x72,0x73,0x65])](_0x14b4ac(_0x4308f8)):null;}function _0x14b4ac(_0x3f09a6){return window[_0x21d670([0x61,0x74,0x6f,0x62])](_0x3f09a6[_0x21d670([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21d670([0x2b]))[_0x21d670([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21d670([0x2f])));}function _0x1acf14(_0x5b142f){let _0x105558=0x1505;function _0x1080b5(_0x55ce63){for(let _0x2d4f4b=0x0;_0x2d4f4b<_0x55ce63[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d4f4b++){const _0x6d346b=_0x55ce63[_0x21d670([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d4f4b);_0x105558=(_0x105558<<0x5)+_0x105558+_0x6d346b,_0x105558&=_0x105558;}}function _0x2b65f2(_0x11730e){Array[_0x21d670([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11730e)?_0x11730e[_0x21d670([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b65f2):_0x11730e&&typeof _0x11730e==_0x21d670([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21d670([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11730e)[_0x21d670([0x73,0x6f,0x72,0x74])]()[_0x21d670([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x462c47,_0x4743fb])=>{_0x1080b5(_0x462c47),_0x2b65f2(_0x4743fb);}):_0x1080b5(window[_0x21d670([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11730e));}return _0x2b65f2(_0x5b142f),_0x105558>>>0x0;}function _0x11aa2e(_0x17f57f){return _0x17f57f[_0x21d670([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21d670([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21d670([0x30]));}function _0x5bf0ae(_0x2d4f39){return _0x2d4f39[_0x21d670([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21d670([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21d670([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ef41e(_0x91c498){return _0x25ecdb[_0x21d670([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21d670([0x68,0x61,0x73])](_0x91c498);}function _0x504f63(_0x90565e){return _0x25ecdb[_0x21d670([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21d670([0x67,0x65,0x74])](_0x90565e);}function _0x3f2b67(){}function _0x21d670(_0x55a7c7){return _0x55a7c7['map'](_0x259f78=>String['fromCharCode'](_0x259f78))['join']('');}_0x2306f2(await _0xbb5caa());}(this);}set['adapter'](_0x39f95e){if(this['_adapter'])throw new _0xd89ffd('track-changes-adapter-already-set',this);this['_adapter']=_0x39f95e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5b6133=!0x1,toJSON:_0x7ca487=!0x1}={}){const _0x5c85a0=[];for(const _0x11ae81 of this['_suggestions']['values']())_0x5b6133&&!_0x11ae81['isInContent']||_0x5c85a0['push'](_0x11ae81);return _0x7ca487?_0x5c85a0['map'](_0x30c66c=>_0x30c66c['toJSON']()):_0x5c85a0;}['getSuggestion'](_0x3eb6f9){const _0x2231db=this['_suggestions']['get'](_0x3eb6f9);if(!_0x2231db)throw new _0xd89ffd('track-changes-suggestion-not-found',this);return _0x2231db;}['hasSuggestion'](_0x417415){return this['_suggestions']['has'](_0x417415);}['addSuggestionData'](_0x347e23){const {authorId:_0x475f58,id:_0x1288a3,originalSuggestionId:_0x1c5e12,attributes:_0x5c6ed3}=_0x347e23,[_0x1e2787,_0x16c76d]=_0x347e23['type']['split'](':'),_0x3ea7d4=this['_suggestions']['get'](_0x1288a3)||this['_createSuggestion'](_0x1e2787,_0x16c76d,_0x1288a3,_0x475f58,_0x5c6ed3,_0x1c5e12);if(this['_addThreadToSuggestion'](_0x3ea7d4),this['_checkSuggestionCorrectness'](_0x3ea7d4,_0x1e2787,_0x16c76d||null,_0x475f58),_0x3ea7d4['createdAt']=_0x347e23['createdAt'],_0x3ea7d4['_isDataLoaded']=!0x0,_0x5c6ed3&&_0x5c6ed3['@external']){const _0x48b67a=_0x5c6ed3['@external'],_0x2c8741=this['_getExternalAuthor'](_0x48b67a['authorName']);_0x3ea7d4['authoredAt']=_0x48b67a['createdAt'],_0x3ea7d4['author']=_0x2c8741,_0x3ea7d4['isExternal']=!0x0;}else _0x3ea7d4['authoredAt']=_0x347e23['createdAt'];switch(_0x347e23['data']&&(_0x3ea7d4['data']=_0x347e23['data']),_0x347e23['attributes']&&(_0x3ea7d4['attributes']=_0x347e23['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3ea7d4['_saved']=!0x0),this['_suggestionState']['get'](_0x3ea7d4)){case'notReady':this['_suggestionState']['set'](_0x3ea7d4,'dataReady');break;case'markerReady':_0x3ea7d4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3ea7d4])),this['_refreshSuggestionsChain'](new Set([_0x3ea7d4])),this['_suggestionState']['set'](_0x3ea7d4,'ready'),this['fire']('suggestionLoaded',_0x3ea7d4)):this['_suggestionState']['set'](_0x3ea7d4,'removed');}return _0x3ea7d4;}['acceptSuggestion'](_0x58a3a5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x28bcd7 of _0x58a3a5['getAllAdjacentSuggestions']())_0x28bcd7['accept']();});});}['discardSuggestion'](_0xee202a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c418b of _0xee202a['getAllAdjacentSuggestions']())_0x5c418b['discard']();});});}['enableCommand'](_0x50eb55,_0x11bddb){const _0x557382=this['editor']['commands']['get'](_0x50eb55);if(!_0x557382)throw new _0xd89ffd('track-changes-command-not-found',this,{'commandName':_0x50eb55});if(this['_enabledCommands']['has'](_0x557382))throw new _0xd89ffd('track-changes-enable-command-twice',this,{'commandName':_0x50eb55});this['_enabledCommands']['add'](_0x557382),_0x11bddb&&_0x557382['on']('execute',(_0x427afd,_0x3d9e21)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3d9e21['length']>0x0&&_0x3d9e21[_0x3d9e21['length']-0x1]&&_0x3d9e21[_0x3d9e21['length']-0x1]['forceDefaultExecution']?_0x3d9e21['pop']():(_0x427afd['return']=_0x11bddb((..._0x5a89fb)=>_0x557382['execute'](..._0x5a89fb,{'forceDefaultExecution':!0x0}),..._0x3d9e21),_0x427afd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x6bd433){let _0x2021eb,_0x159365;const _0x2e6419=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2021eb=_0x6bd433();}catch(_0x47f050){_0x159365=_0x47f050;}return _0x2e6419||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x159365&&_0xd89ffd['rethrowUnexpectedError'](_0x159365,this),_0x2021eb;}['markInsertion'](_0x1f94be,_0x44603b=null,_0x3678cb={}){if(_0x1f94be['isCollapsed'])return null;const _0x310e8e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3678cb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xc41603,meta:_0x753d15}of this['_findSuggestions'](_0x1f94be,'insertion'))if(_0x753d15['isOwn']){if(!_0x753d15['isNextTo']){if(_0x753d15['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0xc41603,_0x3678cb))continue;return _0xc41603;}if(ie(_0xc41603,_0x3678cb))return _0xc41603;this['_breakSuggestionMarker'](_0xc41603,_0x1f94be['start'],_0x1f94be['end']);break;}if(_0x44603b==_0xc41603['subType']&&ie(_0xc41603,_0x3678cb)){const _0x5bc4a1=_0xc41603['getFirstRange']();return _0x5bc4a1['start']['isEqual'](_0x1f94be['end'])?this['_setSuggestionRange'](_0xc41603,this['_model']['createRange'](_0x1f94be['start'],_0x5bc4a1['end'])):this['_setSuggestionRange'](_0xc41603,this['_model']['createRange'](_0x5bc4a1['start'],_0x1f94be['end'])),_0xc41603;}}const _0x315c0f=_0x5b7b63(),_0x3bbb2d=_0x310e8e['id'],_0x30dae4=_0x44603b?'insertion:'+_0x44603b:'insertion',_0x5ac619=this['_setSuggestionData']({'id':_0x315c0f,'type':_0x30dae4,'createdAt':new Date(),'authorId':_0x3bbb2d,'attributes':_0x3678cb});return this['_addSuggestionMarker'](_0x30dae4,_0x315c0f,_0x3bbb2d,_0x1f94be),_0x5ac619;}['markMultiRangeInsertion'](_0x1efabe,_0x441966='multi',_0x49dfd2={}){const _0x54eff3=this['editor']['plugins']['get']('Users')['me'],_0x3c1e1f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x441966,'join');this['_trackingSessionId']&&(_0x49dfd2['trackingSessionId']=this['_trackingSessionId']);for(const _0x12f9bf of this['getSuggestions']())if(_0x12f9bf['author']['id']==_0x54eff3['id']&&'insertion'==_0x12f9bf['type']&&_0x12f9bf['subType']==_0x441966&&ie(_0x12f9bf,_0x49dfd2)&&(_0x3c1e1f(_0x12f9bf['getRanges'](),_0x1efabe)||_0x3c1e1f(_0x1efabe,_0x12f9bf['getRanges']()))){for(const _0x4b84b3 of _0x1efabe)_0x12f9bf['addRange'](_0x4b84b3);return _0x12f9bf;}for(const {suggestion:_0x4e6f71,meta:_0x53b42a}of this['_findSuggestions'](_0x1efabe,'insertion')){if(!_0x53b42a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x53b42a['containsRangeInObject'])continue;if(!ie(_0x4e6f71,_0x49dfd2))continue;let _0x523b7d=!0x0;for(const _0x2ba87a of _0x4e6f71['getRanges']())for(const _0x323a93 of _0x1efabe)if(!_0x2ba87a['containsRange'](_0x323a93)){_0x523b7d=!0x1;break;}if(_0x523b7d)return _0x4e6f71;}const _0x3d46c8=_0x5b7b63(),_0x500793=_0x54eff3['id'],_0x5757be='insertion:'+_0x441966,_0x4bdb81=this['_setSuggestionData']({'id':_0x3d46c8,'type':_0x5757be,'createdAt':new Date(),'authorId':_0x500793,'attributes':_0x49dfd2});for(const _0x3bb5b5 of _0x1efabe)this['_addSuggestionMarker'](_0x5757be,_0x3d46c8,_0x500793,_0x3bb5b5,R['getMultiRangeId']());return _0x4bdb81;}['markInlineFormat'](_0x30217a,_0x4a1932,_0x546223=null,_0x2991c7={}){if(_0x546223=_0x546223||Wt(_0x4a1932),_0x30217a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2991c7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x42d000=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x546223,'accept');return this['forceDefaultExecution'](()=>_0x42d000([_0x30217a],_0x4a1932,_0x2991c7)),null;}const _0x4879df=this['editor']['plugins']['get']('Users')['me'],_0x390cd9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x237563,meta:_0x915d45}of this['_findSuggestions'](_0x30217a,'insertion'))_0x915d45['isOwn']&&!_0x915d45['isInsideObject']&&_0x390cd9['push'](..._0x237563['getRanges']());}const _0x338621=function(_0xba9cff,_0x381ab5){const _0x4c3e8a=[];for(const _0x3792df of _0x381ab5){const _0x365b29=_0xba9cff['getIntersection'](_0x3792df);_0x365b29&&_0x4c3e8a['push'](_0x365b29);}return _0x4c3e8a;}(_0x30217a,_0x390cd9),_0x5047c9=function(_0x23c7a2,_0x1cb345){const _0x192538=[_0x23c7a2];for(const _0x9b0425 of _0x1cb345){let _0x5a6ff2=0x0;for(;_0x5a6ff2<_0x192538['length'];){const _0x4d903c=_0x192538[_0x5a6ff2]['getDifference'](_0x9b0425);_0x192538['splice'](_0x5a6ff2,0x1,..._0x4d903c),_0x5a6ff2+=_0x4d903c['length'];}}return _0x192538;}(_0x30217a,_0x390cd9);_0x338621['length']&&this['_model']['change'](()=>{for(const _0x12e957 of _0x338621){const _0xe14b50=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x546223,'accept');this['forceDefaultExecution'](()=>_0xe14b50([_0x12e957],_0x4a1932,_0x2991c7));}});for(const _0x2f2f4c of _0x5047c9){let _0x3909ae=null,_0x3cb749=_0x2f2f4c['start'],_0x3be48d=_0x2f2f4c['end'];for(const {suggestion:_0x105785,meta:_0x12635c}of this['_findSuggestions'](_0x2f2f4c,'formatInline')){if(!_0x12635c['isOwn'])continue;if(_0x105785['subType']!=_0x546223)continue;if(!ie(_0x105785,_0x2991c7))continue;const _0x2809e9=_0x105785['getFirstRange']();if(_0x2809e9['containsRange'](_0x2f2f4c,!0x0))return null;_0x3cb749=_0x3cb749['isBefore'](_0x2809e9['start'])?_0x3cb749:_0x2809e9['start'],_0x3be48d=_0x3be48d['isAfter'](_0x2809e9['end'])?_0x3be48d:_0x2809e9['end'],_0x3909ae?_0x2809e9['start']['isBefore'](_0x3909ae['getFirstRange']()['start'])?(_0x3909ae['removeMarkers'](),_0x3909ae=_0x105785):_0x105785['removeMarkers']():_0x3909ae=_0x105785;}const _0x420abe=this['_model']['createRange'](_0x3cb749,_0x3be48d);if(_0x3909ae)this['_setSuggestionRange'](_0x3909ae,_0x420abe);else{const _0x5b2935=_0x5b7b63(),_0x29677f=_0x4879df['id'];this['_setSuggestionData']({'id':_0x5b2935,'type':'formatInline:'+_0x546223,'data':_0x4a1932,'createdAt':new Date(),'authorId':_0x29677f,'attributes':_0x2991c7}),this['_addSuggestionMarker']('formatInline:'+_0x546223,_0x5b2935,_0x29677f,_0x420abe);}}return null;}['markBlockFormat'](_0x5de5c8,_0x50a5d9,_0x5b7e05=[],_0x33609f=null,_0x2ef6ed={}){_0x50a5d9['formatGroupId']||(_0x50a5d9['formatGroupId']=_0x50a5d9['commandName']),_0x50a5d9['multipleBlocks']=_0x5de5c8['is']('range'),_0x33609f=_0x33609f||Wt(_0x50a5d9);const _0xbe88b0=_0x5b7e05['map'](_0x48ae1e=>Zt(_0x48ae1e,this['_model'])),_0x4fbe81=_0x5de5c8['is']('range')?_0x5de5c8:Zt(_0x5de5c8,this['_model']);if(this['_trackingSessionId']&&(_0x2ef6ed['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4511e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33609f,'accept');return this['forceDefaultExecution'](()=>_0x4511e9([_0x4fbe81],_0x50a5d9,_0x2ef6ed)),null;}_0xbe88b0['push'](_0x4fbe81);let _0x3ee76e=!0x0;for(const _0x25a0a5 of _0xbe88b0)if(!this['_rangeIsInLocalUserInsertion'](_0x25a0a5)){_0x3ee76e=!0x1;break;}if(_0x3ee76e&&'always'!==this['_trackFormatChanges']){const _0x1be726=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33609f,'accept');return this['forceDefaultExecution'](()=>_0x1be726([_0x4fbe81],_0x50a5d9,_0x2ef6ed)),null;}let _0x1519ec=null,_0x48369a=_0x4fbe81['start'],_0x5cbb01=_0x4fbe81['end'];for(const {suggestion:_0x32652c,meta:_0x21cd59}of this['_findSuggestions'](_0x4fbe81,'formatBlock')){if(!_0x21cd59['isOwn'])continue;if(_0x21cd59['isNextTo']||_0x21cd59['containsRangeInObject']||_0x21cd59['isInsideObject'])continue;if(_0x32652c['data']['formatGroupId']!=_0x50a5d9['formatGroupId'])continue;if(!ie(_0x32652c,_0x2ef6ed))continue;const _0x315c8b=_0x32652c['getFirstRange']();if(_0x32652c['subType']==_0x33609f){if(_0x315c8b['containsRange'](_0x4fbe81,!0x0))return null;_0x48369a=_0x48369a['isBefore'](_0x315c8b['start'])?_0x48369a:_0x315c8b['start'],_0x5cbb01=_0x5cbb01['isAfter'](_0x315c8b['end'])?_0x5cbb01:_0x315c8b['end'],_0x1519ec?_0x315c8b['start']['isBefore'](_0x1519ec['getFirstRange']()['start'])?(_0x1519ec['removeMarkers'](),_0x1519ec=_0x32652c):_0x32652c['removeMarkers']():_0x1519ec=_0x32652c;}else{const _0x227893=_0x4fbe81['getIntersection'](_0x315c8b);this['_cutOutSuggestionMarker'](_0x32652c,_0x227893);}}const _0x371381=this['editor']['plugins']['get']('Users')['me'],_0x46b054=_0x5b7b63(),_0x42290f=_0x371381['id'];if(_0x1519ec)return this['_setSuggestionRange'](_0x1519ec,this['_model']['createRange'](_0x48369a,_0x5cbb01)),_0x1519ec;{const _0x3227e6=this['_setSuggestionData']({'id':_0x46b054,'type':'formatBlock:'+_0x33609f,'data':_0x50a5d9,'createdAt':new Date(),'authorId':_0x42290f,'attributes':_0x2ef6ed});return this['_addSuggestionMarker']('formatBlock:'+_0x33609f,_0x46b054,_0x42290f,this['_model']['createRange'](_0x48369a,_0x5cbb01)),_0x3227e6;}}['markMultiRangeBlockFormat'](_0x30d379,_0x121224,_0x3d8137=[],_0x25b056=null,_0x37351b={}){_0x121224['formatGroupId']||(_0x121224['formatGroupId']=_0x121224['commandName']);const _0x791bcb=_0x30d379[0x0];_0x121224['multipleBlocks']=_0x791bcb['is']('range'),_0x25b056=_0x25b056||Wt(_0x121224);const _0x5abff4=_0x3d8137['map'](_0x4290b8=>Zt(_0x4290b8,this['_model'])),_0x297537=_0x791bcb['is']('range')?_0x30d379:_0x30d379['map'](_0x12f360=>Zt(_0x12f360,this['_model']));if(this['_trackingSessionId']&&(_0x37351b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x48aa8f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25b056,'accept');return this['forceDefaultExecution'](()=>_0x48aa8f(_0x297537,_0x121224,_0x37351b)),null;}_0x5abff4['push'](..._0x297537);let _0xa8d3ac=!0x0;for(const _0x5468f9 of _0x5abff4)if(!this['_rangeIsInLocalUserInsertion'](_0x5468f9)){_0xa8d3ac=!0x1;break;}if(_0xa8d3ac&&'always'!==this['_trackFormatChanges']){const _0x18913f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25b056,'accept');return this['forceDefaultExecution'](()=>_0x18913f(_0x297537,_0x121224,_0x37351b)),null;}const _0x44688d=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f8e66 of this['getSuggestions']()){const _0x18cda3=_0x1f8e66['data'];if(_0x1f8e66['author']['id']!=_0x44688d['id'])continue;if('formatBlock'!=_0x1f8e66['type']||_0x18cda3['formatGroupId']!=_0x121224['formatGroupId'])continue;if(!ie(_0x1f8e66,_0x37351b))continue;const _0x1702b6=_0x1f8e66['subType']==_0x25b056;for(let _0x4db284=0x0;_0x4db284<_0x297537['length'];_0x4db284++){const _0x44e866=_0x297537[_0x4db284];for(const _0x57cf50 of _0x1f8e66['getMarkers']()){const _0x109f87=_0x57cf50['getRange']();if(_0x44e866['isEqual'](_0x109f87)){_0x1702b6?(_0x297537['splice'](_0x4db284,0x1),_0x4db284--):_0x1f8e66['removeMarker'](_0x57cf50['name']);break;}}}}if(0x0==_0x297537['length'])return null;const _0x28f67f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25b056,'join');for(const _0x336f0f of this['getSuggestions']()){const _0x33f3c0=_0x336f0f['data'];if(_0x336f0f['author']['id']==_0x44688d['id']&&('formatBlock'==_0x336f0f['type']&&_0x33f3c0['formatGroupId']==_0x121224['formatGroupId']&&_0x336f0f['subType']==_0x25b056&&ie(_0x336f0f,_0x37351b)&&(_0x28f67f(_0x336f0f['getRanges'](),_0x297537)||_0x28f67f(_0x297537,_0x336f0f['getRanges']())))){for(const _0x276c52 of _0x297537)_0x336f0f['addRange'](_0x276c52);return _0x336f0f;}}const _0x3c111e=_0x5b7b63(),_0x2568e8=_0x44688d['id'],_0x563988='formatBlock:'+_0x25b056,_0x5a83f5=this['_setSuggestionData']({'id':_0x3c111e,'type':_0x563988,'data':_0x121224,'createdAt':new Date(),'authorId':_0x2568e8,'attributes':_0x37351b});for(const _0x3aa826 of _0x297537)this['_addSuggestionMarker'](_0x563988,_0x3c111e,_0x2568e8,_0x3aa826,R['getMultiRangeId']());return _0x5a83f5;}['markDeletion'](_0x2092df,_0x17cbab=null,_0x533aa1={}){if(_0x2092df['isCollapsed'])return null;const _0x57b402=this['editor']['plugins']['get']('Users')['me'],_0x279361=new _0x39adac(_0x2092df['start'],_0x2092df['end']);this['_trackingSessionId']&&(_0x533aa1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1330b8,meta:_0x294c35}of this['_findSuggestions'](_0x279361,'insertion'))if(_0x294c35['isOwn']&&!_0x294c35['isNextTo']){if(_0x1330b8['isMultiRange']){const _0x39effd=_0x1330b8['getRanges']()['filter'](_0x46da4b=>'$graveyard'!=_0x46da4b['root']['rootName']);_0x39effd['every'](_0x1849e2=>_0x279361['containsRange'](_0x1849e2,!0x0))&&_0x1330b8['discard']();if(_0x39effd['some'](_0x4e7fe1=>_0x4e7fe1['containsRange'](_0x279361,!0x0))){const _0x197d5d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17cbab,'accept');return this['forceDefaultExecution'](()=>_0x197d5d([_0x279361],null,_0x533aa1)),null;}}else{const _0x742b6d=_0x279361['getIntersection'](_0x1330b8['getFirstRange']());null!==_0x742b6d&&_0x1330b8['_onDiscard']([_0x742b6d],null,_0x533aa1);}}if(_0x279361['detach'](),_0x279361['isCollapsed']||'$graveyard'==_0x279361['root']['rootName'])return null;let _0x13a8f6=null,_0x931fac=_0x279361['start'],_0x43da1c=_0x279361['end'];const _0x261927=this['_findSuggestions'](_0x279361,'deletion');for(const {suggestion:_0x23acea,meta:_0x3eb30f}of _0x261927){const _0x295d7d=this['_model']['createRange'](_0x931fac,_0x43da1c);if(_0x3eb30f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3eb30f['containsRangeInObject']&&!_0x3eb30f['isInsideObject'])){if(_0x23acea['isMultiRange']){if(!ie(_0x23acea,_0x533aa1))continue;let _0x2e2ccf=!0x0;for(const _0x174aca of _0x23acea['getRanges']()){if(_0x174aca['containsRange'](_0x295d7d,!0x0))return _0x23acea;_0x295d7d['containsRange'](_0x174aca)||(_0x2e2ccf=!0x1);}_0x2e2ccf&&_0x23acea['discard']();}else{const _0xb29bad=_0x23acea['getFirstRange']();if(_0xb29bad['containsRange'](_0x295d7d,!0x0))return _0x23acea;if(!ie(_0x23acea,_0x533aa1)){_0x295d7d['containsRange'](_0xb29bad)?_0x23acea['removeMarkers']():_0xb29bad['containsPosition'](_0x931fac)?_0x931fac=_0xb29bad['end']:_0xb29bad['containsPosition'](_0x43da1c)&&(_0x43da1c=_0xb29bad['start']);continue;}_0x931fac=_0x931fac['isBefore'](_0xb29bad['start'])?_0x931fac:_0xb29bad['start'],_0x43da1c=_0x43da1c['isAfter'](_0xb29bad['end'])?_0x43da1c:_0xb29bad['end'],_0x533aa1=Object['assign']({},_0x23acea['attributes']),_0x13a8f6?_0xb29bad['start']['isBefore'](_0x13a8f6['getFirstRange']()['start'])?(_0x13a8f6['removeMarkers'](),_0x13a8f6=_0x23acea):_0x23acea['removeMarkers']():_0x13a8f6=_0x23acea;}}}if(_0x13a8f6)return this['_setSuggestionRange'](_0x13a8f6,this['_model']['createRange'](_0x931fac,_0x43da1c)),_0x13a8f6;{const _0x2ce538=_0x5b7b63(),_0x2cecf5=this['_model']['createRange'](_0x931fac,_0x43da1c),_0x5515b3=_0x57b402['id'],_0x28131a=_0x17cbab?'deletion:'+_0x17cbab:'deletion',_0x2d67f3=this['_setSuggestionData']({'id':_0x2ce538,'type':_0x28131a,'createdAt':new Date(),'authorId':_0x5515b3,'attributes':_0x533aa1});return this['_addSuggestionMarker'](_0x28131a,_0x2ce538,_0x5515b3,_0x2cecf5),_0x2d67f3;}}['markMultiRangeDeletion'](_0x40f381,_0x28b4aa='multi',_0x38e50d={}){const _0x20bfe4=this['editor']['plugins']['get']('Users')['me'],_0x207143=_0x40f381['map'](_0x352e1a=>new _0x39adac(_0x352e1a['start'],_0x352e1a['end'])),_0x4c17de=new Set();this['_trackingSessionId']&&(_0x38e50d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ac05c,meta:_0x18e9d2}of this['_findSuggestions'](_0x207143,'insertion'))_0x18e9d2['isOwn']&&!_0x18e9d2['isNextTo']&&_0x4c17de['add'](_0x3ac05c);for(const _0x51bfc6 of _0x4c17de)if(_0x51bfc6['isMultiRange']){const _0x103f76=_0x51bfc6['getRanges']();(!_0x51bfc6['attributes']||!_0x51bfc6['attributes']['skipNestingCheck'])&&(_0x103f76['every'](_0x57b087=>_0x207143['some'](_0x43fb59=>_0x43fb59['containsRange'](_0x57b087,!0x0)))&&_0x51bfc6['discard']());if(_0x207143['every'](_0x23874b=>_0x103f76['some'](_0x898dc2=>_0x898dc2['containsRange'](_0x23874b,!0x0)))){const _0x2054b4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b4aa,'accept');return this['forceDefaultExecution'](()=>_0x2054b4(_0x40f381,null,_0x38e50d)),null;}}else{const _0x10fccd=_0x51bfc6['getFirstRange']();_0x207143['some'](_0x3012d0=>_0x3012d0['containsRange'](_0x10fccd,!0x0))&&_0x51bfc6['discard']();if(_0x207143['every'](_0x1aece5=>_0x10fccd['containsRange'](_0x1aece5,!0x0))){const _0x1a9e5e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b4aa,'accept');return this['forceDefaultExecution'](()=>_0x1a9e5e(_0x207143,null,_0x38e50d)),null;}}const _0x29d757=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b4aa,'join');let _0x439627=null;for(const _0xf9bca7 of this['getSuggestions']())if(_0xf9bca7['author']['id']==_0x20bfe4['id']&&_0xf9bca7['isInContent']&&'deletion'==_0xf9bca7['type']&&_0xf9bca7['subType']==_0x28b4aa&&ie(_0xf9bca7,_0x38e50d)&&(_0x29d757(_0xf9bca7['getRanges'](),_0x207143)||_0x29d757(_0x207143,_0xf9bca7['getRanges']()))){if(_0x439627){if(_0xf9bca7['commentThread']&&_0xf9bca7['commentThread']['length'])continue;for(const _0x5b37ff of _0xf9bca7['getRanges']())_0x439627['isIntersectingWithRange'](_0x5b37ff)||_0x439627['addRange'](_0x5b37ff);_0xf9bca7['removeMarkers']();}else{_0x439627=_0xf9bca7;for(const _0x5f06f9 of _0x207143)_0xf9bca7['isIntersectingWithRange'](_0x5f06f9)||_0xf9bca7['addRange'](_0x5f06f9);}}if(_0x439627)return _0x439627;_0x4c17de['clear']();for(const {suggestion:_0xbe09c1,meta:_0x3acbc7}of this['_findSuggestions'](_0x207143,'deletion'))_0x3acbc7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3acbc7['containsRangeInObject']&&!_0x3acbc7['isInsideObject'])&&ie(_0xbe09c1,_0x38e50d)&&_0x4c17de['add'](_0xbe09c1);for(const _0x299971 of _0x4c17de){const _0x376d55=_0x299971['getRanges']();if(!_0x38e50d||!_0x38e50d['skipNestingCheck']){if(_0x207143['every'](_0x1e15e6=>_0x376d55['some'](_0x19b58a=>_0x19b58a['containsRange'](_0x1e15e6,!0x0))))return _0x299971;}(!_0x299971['attributes']||!_0x299971['attributes']['skipNestingCheck'])&&(_0x376d55['every'](_0x32f567=>_0x207143['some'](_0x3777f7=>_0x3777f7['containsRange'](_0x32f567,!0x0)))&&_0x299971['discard']());}const _0x318d35=_0x5b7b63(),_0xac4773=_0x20bfe4['id'],_0x2c1a32='deletion:'+_0x28b4aa,_0x227ef9=this['_setSuggestionData']({'id':_0x318d35,'type':_0x2c1a32,'createdAt':new Date(),'authorId':_0xac4773,'attributes':_0x38e50d});for(const _0x1bf658 of _0x207143)_0x1bf658['detach'](),_0x1bf658['isCollapsed']||'$graveyard'==_0x1bf658['root']['rootName']||this['_addSuggestionMarker'](_0x2c1a32,_0x318d35,_0xac4773,_0x1bf658,R['getMultiRangeId']());return _0x227ef9;}['markAttributeChange'](_0x1478fc,_0x4a441a,_0x578592,_0x28513f,_0x4369c2){if(_0x1478fc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3c9310=this['editor']['plugins']['get']('Users')['me']['id'],_0x377138=Array['from'](this['_suggestions']['values']())['filter'](_0x3fe734=>'attribute'==_0x3fe734['type']&&_0x3fe734['data']['key']==_0x4a441a&&_0x3fe734['isIntersectingWithRange'](_0x1478fc));if(this['_trackingSessionId']&&(_0x4369c2['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xfa3842=this['_findSuggestions'](_0x1478fc,'insertion')['filter'](({meta:_0x3c20d8})=>_0x3c20d8['isOwn']&&!_0x3c20d8['isInsideObject']&&!_0x3c20d8['isNextTo'])['map'](({suggestion:_0x390e58})=>_0x390e58);_0x377138['unshift'](..._0xfa3842);}const _0x143929=new Map([[_0x1478fc,_0x578592]]);for(const _0x3dcf28 of _0x377138){const _0x549e86='attribute'==_0x3dcf28['type']?_0x3dcf28['data']['oldValue']:void 0x0,_0x2fd053=_0x3dcf28['getFirstRange'](),_0x1d483a=Array['from'](_0x143929['keys']())['find'](_0x490183=>_0x490183['isIntersecting'](_0x2fd053));if(!_0x1d483a)continue;const _0x183aa4=_0x1d483a['getDifference'](_0x2fd053);this['_isBlockAttribute'](_0x4a441a)&&'insertion'==_0x3dcf28['type']&&0x0!=_0x183aa4['length']||(_0x143929['delete'](_0x1d483a),_0x183aa4['forEach'](_0x23f454=>{_0x143929['set'](_0x23f454,_0x578592);}),'insertion'!=_0x3dcf28['type']&&_0x549e86!=_0x28513f&&_0x143929['set'](_0x1d483a['getIntersection'](_0x2fd053),_0x549e86));}const _0x4a16b7=[];for(const [_0xfa0a21,_0x1cea40]of _0x143929){const _0x39de22=_0x5b7b63(),_0x1b80b1={'key':_0x4a441a,'oldValue':_0x1cea40,'newValue':_0x28513f};_0x4a441a['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x4a441a});const _0xc65b17=('attribute:'+(_0x4a441a+'|'+Wt({'newValue':_0x28513f})))['substring'](0x0,0x3c),_0x4b8e6c=this['_setSuggestionData']({'id':_0x39de22,'type':_0xc65b17,'data':_0x1b80b1,'createdAt':new Date(),'authorId':_0x3c9310,'attributes':_0x4369c2});_0x4a16b7['push'](_0x4b8e6c),this['_addSuggestionMarker'](_0xc65b17,_0x39de22,_0x3c9310,_0xfa0a21);}return _0x4a16b7;}['enableDefaultAttributesIntegration'](_0x57b2e6){this['enableCommand'](_0x57b2e6,(_0x29dee5,..._0x27006f)=>{this['recordAttributeChanges'](()=>{_0x29dee5(..._0x27006f);});});}['registerBlockAttribute'](_0x389d2b){this['_blockAttributeKeys']['add'](_0x389d2b);}['registerInlineAttribute'](_0x45bcc1){this['_inlineAttributeKeys']['add'](_0x45bcc1);}['startTrackingSession'](_0xd682b6){return this['_trackingSessionId']=void 0x0!==_0xd682b6?_0xd682b6:_0x5b7b63(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5b5f96){return'attribute'==_0x5b5f96['type']?se(_0x5b5f96['subType']):null;}['_applyOperationsAsSuggestions'](_0x337e61){if(0x0==_0x337e61['length'])return;const _0x4832a0=this['editor'],_0x434901=_0x4832a0['plugins']['get'](_0x42d159);let _0x3ed346=!0x0;for(const _0x294010 in _0x337e61[0x0]){const _0x3f4295=_0x337e61[0x0][_0x294010];if((_0x3f4295 instanceof _0x3376f5||_0x3f4295 instanceof _0x345d35)&&_0x3f4295['root']['is']('documentFragment')){_0x3ed346=!0x1;break;}}_0x4832a0['model']['change'](_0x5d7059=>{const _0x54780b=new Set();for(const _0x1af05d of _0x337e61)if(_0x1af05d['baseVersion']=_0x3ed346?_0x4832a0['model']['document']['version']:null,_0x1af05d['isDocumentOperation']=_0x3ed346,_0x434901['isMarkedRemoveOperation'](_0x1af05d)){const _0x42e76e=Xt(_0x1af05d['newRange'],_0x4832a0['model']);if(_0x3ed346)this['markDeletion'](_0x42e76e);else{const _0x5541aa='suggestion:deletion:id:authorId:'+_0x5b7b63();_0x42e76e['root']['markers']['set'](_0x5541aa,_0x42e76e);}}else switch(_0x1af05d['type']){case'rename':{const _0x4c7ac3=_0x1af05d['oldName'],_0x200c4d=_0x1af05d['newName'];if(_0x4c7ac3==_0x200c4d)break;_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d);const _0xf4a7c3='$elementName',_0x3fc302=_0x1af05d['position'],_0x55f5b8=_0x4832a0['model']['createRange'](_0x3fc302,_0x4832a0['model']['createPositionAt'](_0x3fc302['nodeAfter'],'end'));if(_0x3ed346)this['markAttributeChange'](_0x55f5b8,_0xf4a7c3,_0x4c7ac3,_0x200c4d,{'groupId':_0x5b7b63()});else{const _0x3946c9='suggestion:attribute:'+_0xf4a7c3+':id:authorId:'+_0x5b7b63();_0x55f5b8['root']['markers']['set'](_0x3946c9,_0x55f5b8);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xcedc79=_0x1af05d['oldValue'],_0x4719c0=_0x1af05d['newValue'];if(_0xcedc79==_0x4719c0)break;_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d);const _0x15324c=_0x1af05d['key'];if(!this['_isRegisteredAttribute'](_0x15324c))break;const _0x4288cc=Xt(_0x1af05d['range'],_0x4832a0['model']);if(_0x3ed346)this['markAttributeChange'](_0x4288cc,_0x15324c,_0xcedc79,_0x4719c0,{'groupId':_0x5b7b63()});else{const _0x4e5cd4='suggestion:attribute:'+_0x15324c+':id:authorId:'+_0x5b7b63();_0x4288cc['root']['markers']['set'](_0x4e5cd4,_0x4288cc);}break;}case'insert':{_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d);const _0x1828c8=_0x1af05d['position'],_0x4d713c=_0x1af05d['howMany'],_0x3d7670=Xt(_0x4832a0['model']['createRange'](_0x1828c8,_0x1828c8['getShiftedBy'](_0x4d713c)),_0x4832a0['model']);if(_0x3ed346)this['markInsertion'](_0x3d7670);else{const _0x1406d1='suggestion:insertion:id:authorId:'+_0x5b7b63();_0x3d7670['root']['markers']['set'](_0x1406d1,_0x3d7670);}break;}case'split':{_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d);const _0x11e773=_0x1af05d['splitPosition'],_0x5496bf=_0x1af05d['moveTargetPosition'],_0x38c899=_0x4832a0['model']['createRange'](_0x11e773,_0x5496bf);if(_0x3ed346)this['markInsertion'](_0x4832a0['model']['createRange'](_0x11e773,_0x5496bf));else{const _0x5a7b79='suggestion:insertion:id:authorId:'+_0x5b7b63();_0x38c899['root']['markers']['set'](_0x5a7b79,_0x38c899);}break;}case'move':if(_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d),!_0x3ed346){const _0x58224f=_0x1af05d['getMovedRangeStart'](),_0x24bc06=_0x1af05d['howMany'];for(let _0x47c00a=0x0;_0x47c00a<_0x24bc06;_0x47c00a++){const _0x42f936=_0x58224f['getShiftedBy'](_0x47c00a)['nodeAfter'];_0x54780b['add'](_0x42f936);}}break;case'remove':if(_0x3ed346)_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d);else{const _0x93d48d=_0x1af05d['sourcePosition'],_0x2353f2=_0x1af05d['howMany'],_0x54f203=new _0x75aadc(_0x93d48d,_0x2353f2);_0x5d7059['batch']['addOperation'](_0x54f203),_0x4832a0['model']['applyOperation'](_0x54f203);}}for(const _0x1a3610 of _0x54780b){const _0x4a9d6e=_0x4832a0['model']['createRangeOn'](_0x1a3610),_0x490a73='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x5b7b63();_0x4a9d6e['root']['markers']['set'](_0x490a73,Xt(_0x4a9d6e,_0x4832a0['model']));}});}['_setSuggestionRange'](_0x3d747e,_0xff74f1){const _0x3de334=_0x3d747e['getFirstMarker']();this['_model']['change'](_0x37746f=>{_0x37746f['updateMarker'](_0x3de334,{'range':_0xff74f1});});}['_addThreadToSuggestion'](_0x10994d){const _0x4a520d=_0x10994d['id'],_0x45ccad=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4a520d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x45ccad,'threadId':_0x4a520d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x551041=this['_commentsRepository']['getCommentThread'](_0x4a520d);_0x551041['unbind']('isRemovable'),_0x551041['isRemovable']=!0x1,_0x10994d['commentThread']=_0x551041;}['_checkSuggestionCorrectness'](_0x45732d,_0x3218e8,_0x47a046,_0x3c2592){if(_0x45732d['type']!=_0x3218e8||_0x45732d['subType']!=_0x47a046||_0x45732d['creator']['id']!=_0x3c2592)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xd89ffd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1798bd,_0x641dfc){const _0x4fbf64=_0x1798bd['getFirstRange']();if(_0x641dfc['isEqual'](_0x4fbf64))_0x1798bd['removeMarkers']();else{if(_0x4fbf64['containsRange'](_0x641dfc)){const _0x1a3aed=this['_model']['createPositionAt'](_0x641dfc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1798bd,this['_model']['createRange'](_0x4fbf64['start'],_0x1a3aed));const _0xa821ef=_0x5b7b63(),_0x5953f8=_0x1798bd['creator']['id'],_0x1fd159=_0x1798bd['type']+':'+_0x1798bd['subType'];this['_setSuggestionData']({'id':_0xa821ef,'type':_0x1fd159,'createdAt':new Date(),'authorId':_0x5953f8,'data':_0x1798bd['data'],'attributes':_0x1798bd['attributes']});const _0x434313=this['_model']['createPositionAt'](_0x641dfc['end']['parent'],'after'),_0x22437c=this['_model']['createRange'](_0x434313,_0x4fbf64['end']);this['_addSuggestionMarker'](_0x1fd159,_0xa821ef,_0x5953f8,_0x22437c);}else{if(_0x4fbf64['containsPosition'](_0x641dfc['start'])){const _0x2afa9b=this['_model']['createPositionAt'](_0x641dfc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1798bd,this['_model']['createRange'](_0x4fbf64['start'],_0x2afa9b));}else{const _0x153b50=this['_model']['createPositionAt'](_0x641dfc['end']['parent'],'after');this['_setSuggestionRange'](_0x1798bd,this['_model']['createRange'](_0x153b50,_0x4fbf64['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1d6f9a){for(const {suggestion:_0x369f5d,meta:_0x473b4e}of this['_findSuggestions'](_0x1d6f9a,'insertion')){if(!_0x473b4e['isOwn'])continue;const _0x585d82=_0x369f5d['getRanges']();for(const _0x24da16 of _0x585d82)if(!_0x1d6f9a['getDifference'](_0x24da16)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2b35e7){return this['editor']['plugins']['get']('Users')['getUser'](_0x2b35e7);}['_getExternalAuthor'](_0xc92e14){const _0x5db5f4=this['editor']['plugins']['get']('Users'),_0x441272=_0x3d5284('external:'+_0xc92e14),_0x24b1c5=_0x5db5f4['getUser'](_0x441272);return _0x24b1c5||_0x5db5f4['addUser']({'id':_0x441272,'name':_0xc92e14});}['_createSuggestion'](_0xd8fa8d,_0x11704d,_0x19d16c,_0x5763f9,_0x34e165,_0x44d412){const _0x6e2993=this['_getAuthorFromId'](_0x5763f9);if(!_0x6e2993)throw new _0xd89ffd('track-changes-user-not-found',this,{'authorId':_0x5763f9,'suggestionId':_0x19d16c});const _0x35b0f2=this['_suggestionFactory']['buildSuggestion'](_0xd8fa8d,_0x11704d,_0x19d16c,_0x6e2993,_0x34e165,_0x427700=>{this['_updateSuggestionData'](_0x19d16c,{'attributes':_0x427700});const _0x39e825=this['getSuggestion'](_0x19d16c);this['_joinWithAdjacentSuggestions'](new Set([_0x39e825])),this['_refreshSuggestionsChain'](new Set([_0x39e825]));},_0x44d412);return this['listenTo'](_0x35b0f2,'accept',()=>{this['_updateSuggestionData'](_0x19d16c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x35b0f2,'discard',()=>{this['_updateSuggestionData'](_0x19d16c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x19d16c,_0x35b0f2),this['_suggestionState']['set'](_0x35b0f2,'notReady'),_0x35b0f2;}['_splitMarkerName'](_0x22a279){const _0x469f59=_0x22a279['split'](':');return{'group':_0x469f59[0x0],'type':_0x469f59[0x1],'subType':_0x469f59['length']>=0x5?_0x469f59[0x2]:null,'id':_0x469f59['length']<0x5?_0x469f59[0x2]:_0x469f59[0x3],'authorId':_0x469f59['length']<0x5?_0x469f59[0x3]:_0x469f59[0x4],'markerCount':0x6==_0x469f59['length']?_0x469f59[0x5]:null};}['_breakSuggestionMarker'](_0x3bc7f8,_0x1343ec,_0x174fd2){const _0x40f5b1=_0x3bc7f8['getFirstRange'](),_0x743a6b=_0x40f5b1['start'],_0x20198c=_0x40f5b1['end'];this['_setSuggestionRange'](_0x3bc7f8,this['_model']['createRange'](_0x743a6b,_0x1343ec));const _0x296e03=_0x5b7b63(),_0x3b2395=_0x3bc7f8['creator']['id'],_0x18285a=_0x3bc7f8['type']+(_0x3bc7f8['subType']?':'+_0x3bc7f8['subType']:'');this['_setSuggestionData']({'id':_0x296e03,'type':_0x18285a,'createdAt':new Date(),'authorId':_0x3b2395,'originalSuggestionId':_0x3bc7f8['_originalSuggestionId']||_0x3bc7f8['id'],'attributes':_0x3bc7f8['attributes'],'data':_0x3bc7f8['data']});const _0x5d122c=this['_getAttributeKey'](_0x3bc7f8);('formatBlock'==_0x3bc7f8['type']||_0x5d122c&&this['_isBlockAttribute'](_0x5d122c))&&(_0x174fd2=this['_model']['createPositionBefore'](_0x174fd2['parent'])),this['_addSuggestionMarker'](_0x18285a,_0x296e03,_0x3b2395,this['_model']['createRange'](_0x174fd2,_0x20198c));}['_findSuggestions'](_0x1597f3,_0x2fcd3f=null){const _0x51431b=[],_0x22a529=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1597f3)||(_0x1597f3=[_0x1597f3]);for(const _0x347eb6 of this['getSuggestions']()){if(!_0x347eb6['isInContent'])continue;if(_0x2fcd3f&&_0x347eb6['type']!=_0x2fcd3f)continue;let _0xa4b4b4=!0x1;for(const _0x85ea79 of _0x347eb6['getRanges']()){for(const _0x528d9b of _0x1597f3){const _0x351aae=_0x528d9b['start']['isEqual'](_0x85ea79['end'])||_0x528d9b['end']['isEqual'](_0x85ea79['start']);if(_0x351aae||_0x528d9b['getIntersection'](_0x85ea79)){const _0x3f626c=_0x528d9b['containsRange'](_0x85ea79)&&Jt(this['_model']['schema'],_0x85ea79['start'],_0x528d9b),_0x122e98=_0x85ea79['containsRange'](_0x528d9b)&&Jt(this['_model']['schema'],_0x528d9b['start'],_0x85ea79);_0x51431b['push']({'suggestion':_0x347eb6,'meta':{'isOwn':_0x22a529==_0x347eb6['author'],'isNextTo':_0x351aae,'isInsideObject':_0x3f626c,'containsRangeInObject':_0x122e98}}),_0xa4b4b4=!0x0;break;}}if(_0xa4b4b4)break;}}return _0x51431b;}['_addSuggestionMarker'](_0x4254b2,_0x41680e,_0x11ba0e,_0x45533b,_0xed8df5){this['_model']['change'](_0x70b272=>{let _0x4abec4='suggestion:'+_0x4254b2+':'+_0x41680e+':'+_0x11ba0e;_0xed8df5&&(_0x4abec4=_0x4abec4+':'+_0xed8df5),_0x70b272['addMarker'](_0x4abec4,{'range':_0x45533b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x437cb0){const _0x77a24b=_0x437cb0['previous'],_0x33e10d=_0x437cb0['next'];_0x437cb0['previous']=null,_0x437cb0['next']=null,null!=_0x77a24b&&_0x77a24b['next']==_0x437cb0&&(_0x77a24b['next']=_0x33e10d),null!=_0x33e10d&&_0x33e10d['previous']==_0x437cb0&&(_0x33e10d['previous']=_0x77a24b),'ready'==this['_suggestionState']['get'](_0x437cb0)&&(this['_suggestionState']['set'](_0x437cb0,'removed'),this['fire']('suggestionUnloaded',_0x437cb0,_0x77a24b,_0x33e10d));}['_setSuggestionData'](_0x4f2aaa){const _0x56d580=_0x4f2aaa['id'],_0x4bb169=this['addSuggestionData'](_0x4f2aaa);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xcc7cd7=this['editor']['plugins']['get']('PendingActions'),_0x5a32a8=_0x4bb169['hasComments'],_0x34ef09=_0x4bb169['subType']?_0x4bb169['type']+':'+_0x4bb169['subType']:_0x4bb169['type'],_0x459ddb=this['editor']['locale'],_0x1f7a5d=_0xcc7cd7['add'](o(_0x459ddb,'PENDING_ACTION_SUGGESTION')),_0x51784b={'id':_0x56d580,'type':_0x34ef09,'hasComments':_0x5a32a8,'data':_0x4f2aaa['data']||null,'originalSuggestionId':_0x4f2aaa['originalSuggestionId']||null,'attributes':_0x4bb169['attributes']};this['_adapter']['addSuggestion'](_0x51784b)['then'](_0x38f2c8=>{_0x4bb169['_saved']=!0x0,_0xcc7cd7['remove'](_0x1f7a5d),_0x38f2c8&&_0x38f2c8['createdAt']&&(this['_suggestions']['get'](_0x56d580)['createdAt']=_0x38f2c8['createdAt']);})['catch'](_0x290c13=>{throw _0x3cddc9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4bb169['discard']();}),_0x4bb169['stopListening'](),this['_suggestions']['delete'](_0x4bb169['id']),this['_suggestionState']['delete'](_0x4bb169),_0x290c13;});}return _0x4bb169;}['_isBlockAttribute'](_0x4663eb){return this['_blockAttributeKeys']['has'](_0x4663eb);}['_isInlineAttribute'](_0x66e4cf){return this['_inlineAttributeKeys']['has'](_0x66e4cf);}['_updateSuggestionData'](_0x1fc2fd,_0x1bd28c){const _0x399846=this['editor']['plugins']['get']('PendingActions'),_0xa44093=this['getSuggestion'](_0x1fc2fd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa44093['_saved']){const _0x2baaf1=_0x399846['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1fc2fd,_0x1bd28c)['then'](()=>{_0x399846['remove'](_0x2baaf1);});}else _0xa44093['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1fc2fd,_0x1bd28c);});}}['_getSuggestionData'](_0x2bf50a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xd89ffd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2bf50a);}['_handleNewSuggestionMarker'](_0x58ffb6){const {id:_0x41488d,type:_0x49763f,subType:_0x5b3921,authorId:_0x2ffa9d}=this['_splitMarkerName'](_0x58ffb6),_0x3b6192=this['_suggestions']['get'](_0x41488d)||this['_createSuggestion'](_0x49763f,_0x5b3921,_0x41488d,_0x2ffa9d,{});switch(this['_checkSuggestionCorrectness'](_0x3b6192,_0x49763f,_0x5b3921,_0x2ffa9d),this['_suggestionState']['get'](_0x3b6192)){case'notReady':this['_getSuggestionData'](_0x41488d)['then'](_0x38e421=>{let _0x348d8a=Promise['resolve']();_0x38e421['hasComments']&&(_0x348d8a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x41488d})),_0x348d8a['then'](()=>{this['addSuggestionData'](_0x38e421)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3b6192,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x41488d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3b6192,'ready'),this['fire']('suggestionLoaded',_0x3b6192);break;case'ready':this['fire']('suggestionChanged',_0x3b6192);}return _0x3b6192['addMarkerName'](_0x58ffb6),_0x3b6192;}['_refreshSuggestionsChain'](_0x240397){const _0x189a37=Array['from'](_0x240397),_0x16df15=_0x189a37['filter'](_0x3f3e69=>'attribute'==_0x3f3e69['type']);this['_refreshAttributeSuggestionsChain'](_0x16df15);const _0x26a21a=_0x189a37['filter'](_0xd0ba0d=>!_0xd0ba0d['isMultiRange']&&'attribute'!=_0xd0ba0d['type']),_0x1bd98a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cccd9=>!_0x5cccd9['isMultiRange']&&'attribute'!=_0x5cccd9['type']),_0x3f7466=_0x1bd98a['filter'](_0x53aa49=>!_0x240397['has'](_0x53aa49)),_0x348e61=new Map(_0x1bd98a['map'](_0x5bd550=>[_0x5bd550,this['_suggestionFactory']['getSuggestionCallback'](_0x5bd550['type'],_0x5bd550['subType'],'chain')])),_0x58b25b=new Map(_0x1bd98a['map'](_0xc4f7d3=>[_0xc4f7d3,_0xc4f7d3['getFirstRange']()])),_0x419c62=new Set(),_0xca139c=new Set();for(let _0x3e0fb8=0x0;_0x3e0fb8<_0x26a21a['length'];_0x3e0fb8++)_0x13bb14(_0x26a21a[_0x3e0fb8],_0x26a21a,_0x3e0fb8+0x1);for(let _0xcce0f3=0x0;_0xcce0f3<_0x26a21a['length'];_0xcce0f3++)_0x13bb14(_0x26a21a[_0xcce0f3],_0x3f7466,0x0);const _0x360bd3=new Set();for(let _0x1d1aae=0x0;_0x1d1aae<_0x26a21a['length'];_0x1d1aae++){const _0x2c022b=_0x26a21a[_0x1d1aae];!_0xca139c['has'](_0x2c022b)&&_0x2c022b['previous']&&(_0x360bd3['add'](_0x2c022b['previous']),_0x2c022b['previous']['next']===_0x2c022b&&(_0x2c022b['previous']['next']=null),_0x2c022b['previous']=null),!_0x419c62['has'](_0x2c022b)&&_0x2c022b['next']&&(_0x360bd3['add'](_0x2c022b['next']),_0x2c022b['next']['previous']===_0x2c022b&&(_0x2c022b['next']['previous']=null),_0x2c022b['next']=null);}function _0x13bb14(_0x173dd5,_0xb24db1,_0x40fa48){for(let _0x3797b8=_0x40fa48;_0x3797b8<_0xb24db1['length'];_0x3797b8++){const _0x4efcf9=_0xc119aa(_0x173dd5,_0xb24db1[_0x3797b8]);_0x4efcf9&&(_0x4efcf9[0x0]['next']=_0x4efcf9[0x1],_0x4efcf9[0x1]['previous']=_0x4efcf9[0x0],_0x419c62['add'](_0x4efcf9[0x0]),_0xca139c['add'](_0x4efcf9[0x1]));}}function _0xc119aa(_0xc499e1,_0x21d6a4){if(_0xc499e1['author']['id']!==_0x21d6a4['author']['id'])return null;const _0xe19c91=_0x348e61['get'](_0xc499e1)(_0xc499e1,_0x21d6a4,_0x58b25b['get'](_0xc499e1),_0x58b25b['get'](_0x21d6a4));if(!_0xe19c91)return null;return _0x348e61['get'](_0x21d6a4)(_0xc499e1,_0x21d6a4,_0x58b25b['get'](_0xc499e1),_0x58b25b['get'](_0x21d6a4))?_0xe19c91[0x1]['commentThread']&&_0xe19c91[0x1]['commentThread']['length']?null:_0xe19c91:null;}_0x360bd3['size']&&this['_refreshSuggestionsChain'](_0x360bd3);}['_refreshAttributeSuggestionsChain'](_0x5ee9df){if(0x0==_0x5ee9df['length'])return;const _0xcd5682=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27286c=>'attribute'==_0x27286c['type']&&_0x27286c['_isDataLoaded']),_0x560329=[],_0x10ff80=new Map();for(const _0x869f78 of _0xcd5682){const _0x105fd2=_0x3d5284(_0x869f78['attributes']);_0x10ff80['has'](_0x105fd2)||(_0x10ff80['set'](_0x105fd2,_0x560329['length']),_0x560329['push']([]));const _0x49120c=_0x10ff80['get'](_0x105fd2);_0x560329[_0x49120c]['push'](_0x869f78);}!(function(){_0x560329['sort']((_0xd45d8d,_0x3ac442)=>{const _0x47a7a3=_0xd45d8d[0x0]['createdAt'],_0x28d3a0=_0x3ac442[0x0]['createdAt'];return _0x47a7a3==_0x28d3a0?_0xd45d8d[0x0]['attributes']['groupId']<_0x3ac442[0x0]['attributes']['groupId']?-0x1:0x1:_0x47a7a3<_0x28d3a0?-0x1:0x1;});for(const _0x25ad0d of _0x560329)_0x25ad0d['sort']((_0x5e64ae,_0x4ab2dd)=>_0x5e64ae['id']<_0x4ab2dd['id']?-0x1:0x1);}());for(let _0x4cb51d=0x0;_0x4cb51d<_0x560329['length'];_0x4cb51d++){if(0x0==_0x560329[_0x4cb51d]['length'])continue;const _0x31a71b=[];for(let _0x40aa96=_0x4cb51d+0x1;_0x40aa96<_0x560329['length'];_0x40aa96++)0x0!=_0x560329[_0x40aa96]['length']&&_0x30be84(_0x560329[_0x4cb51d],_0x560329[_0x40aa96])&&_0x31a71b['push'](_0x40aa96);for(const _0x16c237 of _0x31a71b)_0x560329[_0x4cb51d]=_0x560329[_0x4cb51d]['concat'](_0x560329[_0x16c237]),_0x560329[_0x16c237]=[];}for(const _0x16703b of _0x560329)for(let _0x12aa79=0x0;_0x12aa79<_0x16703b['length'];_0x12aa79++){const _0x191a86=_0x16703b[_0x12aa79+0x1]||null;_0x16703b[_0x12aa79]['next']!==_0x191a86&&(_0x16703b[_0x12aa79]['next']=_0x191a86);}for(const _0x148738 of _0x560329)for(let _0x2ba75f=0x0;_0x2ba75f<_0x148738['length'];_0x2ba75f++){const _0x4f0f83=_0x148738[_0x2ba75f-0x1]||null;_0x148738[_0x2ba75f]['previous']!==_0x4f0f83&&(_0x148738[_0x2ba75f]['previous']=_0x4f0f83);}function _0x30be84(_0x2c8839,_0x4aa4b6){if(_0x2c8839[0x0]['attributes']['groupId']!==_0x4aa4b6[0x0]['attributes']['groupId']&&_0x2c8839[0x0]['author']!==_0x4aa4b6[0x0]['author'])return!0x1;if(!function(_0x4940a6,_0xae9410){if(!_0x4940a6['hasComments']&&!_0xae9410['hasComments'])return!0x0;if(_0x4940a6['hasComments']&&_0xae9410['hasComments'])return!0x1;if(_0x4940a6['hasComments']&&_0xae9410['createdAt']<_0x4940a6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xae9410['hasComments']&&_0x4940a6['createdAt']<_0xae9410['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c8839[0x0],_0x4aa4b6[0x0]))return!0x1;const _0x4ac6f4=Gt(_0x2c8839[0x0]['attributes'],['groupId','trackingSessionId']),_0x1cd13e=Gt(_0x4aa4b6[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x28590f(_0x4ac6f4,_0x1cd13e))return!0x1;if(_0x2c8839[0x0]['attributes']['groupId']==_0x4aa4b6[0x0]['attributes']['groupId'])return!0x0;if(_0x2c8839[0x0]['attributes']['trackingSessionId']!==_0x4aa4b6[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2c8839['every'](_0x4e0de4=>_0x4aa4b6['some'](_0x49142d=>_0x4e0de4['getFirstRange']()['isEqual'](_0x49142d['getFirstRange']())))&&_0x4aa4b6['every'](_0x2eac07=>_0x2c8839['some'](_0x408c39=>_0x2eac07['getFirstRange']()['isEqual'](_0x408c39['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x521bf8){const _0x26c2f3=Array['from'](_0x521bf8),_0x1a11c7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2333be=_0x1a11c7['filter'](_0x2004f1=>!_0x521bf8['has'](_0x2004f1)),_0x3ff455=new Map(_0x26c2f3['map'](_0xc8566b=>[_0xc8566b,this['_suggestionFactory']['getSuggestionCallback'](_0xc8566b['type'],_0xc8566b['subType'],'join')])),_0x4072b1=new Map(_0x1a11c7['map'](_0x202ebb=>[_0x202ebb,_0x202ebb['getRanges']()]));for(let _0x55deeb=0x0;_0x55deeb<_0x26c2f3['length'];_0x55deeb++){if(_0x41204e(this,_0x26c2f3[_0x55deeb],_0x26c2f3,_0x55deeb+0x1))return!0x0;}for(let _0x5ebbfe=0x0;_0x5ebbfe<_0x26c2f3['length'];_0x5ebbfe++){if(_0x41204e(this,_0x26c2f3[_0x5ebbfe],_0x2333be,0x0))return!0x0;}return!0x1;function _0x41204e(_0x3576c5,_0x522fd3,_0x26d597,_0x581001){for(let _0x2c8735=_0x581001;_0x2c8735<_0x26d597['length'];_0x2c8735++){const _0x470a8f=_0x26d597[_0x2c8735];if(_0x470a8f['type']!==_0x522fd3['type']||_0x470a8f['author']['id']!==_0x522fd3['author']['id']||_0x470a8f['subType']!==_0x522fd3['subType'])continue;if(!ee(_0x522fd3,_0x470a8f))continue;if('attribute'==_0x522fd3['type']&&_0x522fd3['data']['oldValue']!=_0x470a8f['data']['oldValue'])continue;if('attribute'==_0x522fd3['type']&&_0x3576c5['_isBlockAttribute'](_0x522fd3['data']['key']))continue;if('formatBlock'==_0x522fd3['type']){const _0x28c056=_0x3576c5['editor']['model'],_0x126c8a=_0x522fd3['getContainedElement']();if(_0x126c8a&&(_0x28c056['schema']['isObject'](_0x126c8a)||_0x28c056['schema']['isLimit'](_0x126c8a)))continue;}const _0x1d1dcf=_0x3ff455['get'](_0x522fd3),_0x5e8c4b=_0x4072b1['get'](_0x522fd3),_0x1f57eb=_0x4072b1['get'](_0x470a8f),_0x34220b=_0x522fd3['commentThread']&&_0x522fd3['commentThread']['length'],_0x3652f2=_0x470a8f['commentThread']&&_0x470a8f['commentThread']['length'];if(!_0x34220b&&_0x1d1dcf(_0x1f57eb,_0x5e8c4b))return _0x3576c5['_joinSuggestions'](_0x470a8f,_0x522fd3),_0x4072b1['delete'](_0x522fd3),!0x0;if(!_0x3652f2&&_0x1d1dcf(_0x5e8c4b,_0x1f57eb))return _0x3576c5['_joinSuggestions'](_0x522fd3,_0x470a8f),_0x4072b1['delete'](_0x470a8f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4ed1ff,_0x49b722){if(_0x4ed1ff['isMultiRange']){for(const _0x5ca182 of _0x49b722['getRanges']())_0x4ed1ff['addRange'](_0x5ca182);}else{const _0x48a3e4=_0x49b722['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4ed1ff,this['_model']['createRange'](_0x4ed1ff['getFirstRange']()['start'],_0x48a3e4));}_0x49b722['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41e5aa,_0x337a84,_0x410deb){const _0x5ad04e=_0x41e5aa['startsWith']('format')||_0x41e5aa['startsWith']('attribute')?'FORMATTING':_0x41e5aa['toUpperCase']();return o(this['editor']['locale'],_0x337a84+'_'+_0x5ad04e+'_SUGGESTION_ANNOUNCEMENT',_0x410deb);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e72a7=this['editor'];if(!_0x4e72a7['ui'])return;const {ariaLiveAnnouncer:_0x45d03b}=_0x4e72a7['ui'];_0x200985(this['_model'],({left:_0x10f487,entered:_0x56e1c6})=>{for(const _0x3ed777 of _0x10f487){const {group:_0x74213,type:_0x39a3a5}=this['_splitMarkerName'](_0x3ed777['name']);if('suggestion'===_0x74213){_0x45d03b['announce'](this['_getMarkerAnnouncementText'](_0x39a3a5,'LEAVE'));break;}}for(const _0x3b8b62 of _0x56e1c6){const {group:_0x495787,type:_0x1414c4}=this['_splitMarkerName'](_0x3b8b62['name']);if('suggestion'===_0x495787){_0x45d03b['announce'](this['_getMarkerAnnouncementText'](_0x1414c4,'ENTER',_0x3456f1(_0x332c58)));break;}}});}['_processAttributeChanges'](_0x1ae065){if(this['_recordAttributeSuggestions'])return!0x1;const _0x289f4e=this['editor'],_0x2c8766=_0x289f4e['model']['document']['differ']['getChanges']();if(0x0==_0x2c8766['length'])return!0x1;const _0x3a6d2d=[],_0x4e0c86=_0x2c8766['filter'](_0x2d4eaf=>'attribute'==_0x2d4eaf['type']),_0x2c90c0=_0x2c8766['filter'](_0x1d3158=>'insert'==_0x1d3158['type']&&'$text'!=_0x1d3158['name']),_0x1cb872=_0x2c8766['filter'](_0x49678c=>'remove'==_0x49678c['type']&&'$text'!=_0x49678c['name']);for(const _0x46dbf3 of _0x4e0c86)_0x3a6d2d['push']({'key':_0x46dbf3['attributeKey'],'newValue':_0x46dbf3['attributeNewValue'],'oldValue':_0x46dbf3['attributeOldValue'],'range':Yt(_0x46dbf3['range'],_0x289f4e['model'])});for(const _0x1426be of _0x2c90c0){const _0x4a8d00=_0x1cb872['find'](_0x574521=>_0x574521['position']['isEqual'](_0x1426be['position']));_0x4a8d00&&_0x3a6d2d['push']({'key':m,'newValue':_0x1426be['name'],'oldValue':_0x4a8d00['name'],'range':_0x289f4e['model']['createRangeOn'](_0x1426be['position']['nodeAfter'])});}return 0x0!=_0x3a6d2d['length']&&this['_reduceExistingSuggestions'](_0x1ae065,_0x3a6d2d);}['_processAttributeSuggestions'](_0x452a9d){let _0x11eafb=!0x1;const _0x2b744f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2be0a7=>_0x2be0a7['data']['newRange']&&_0x2be0a7['name']['startsWith']('suggestion:attribute:'));for(const _0x37aea6 of _0x2b744f){const {subType:_0x1aab60,id:_0x183595}=this['_splitMarkerName'](_0x37aea6['name']),_0x5cd914=_0x1aab60['split']('|')[0x0];for(const _0x13e295 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x13e295['id']!=_0x183595&&'attribute'==_0x13e295['type']&&_0x13e295['data']&&_0x13e295['data']['key']==_0x5cd914&&_0x13e295['getFirstRange']()['isIntersecting'](_0x37aea6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x13e295,_0x37aea6['data']['newRange'],_0x452a9d),_0x11eafb=!0x0);}return _0x11eafb;}['recordAttributeChanges'](_0xb8d3e9){this['_recordAttributeSuggestions']=!0x0,_0xb8d3e9();}['_isRegisteredAttribute'](_0x5e15ea){const _0x6b6ec0=this['_isBlockAttribute'](_0x5e15ea),_0x655a0b=this['_isInlineAttribute'](_0x5e15ea);return _0x6b6ec0||_0x655a0b;}['_reduceExistingSuggestions'](_0x14fa7c,_0x878716){if(0x0==_0x878716['length'])return!0x1;let _0x13cf71=!0x1;for(const _0x5617b0 of _0x878716){const _0x31f028=this['_findSuggestions'](_0x5617b0['range'],'attribute')['filter'](_0x230bf3=>!_0x230bf3['meta']['isNextTo'])['map'](_0x47ce31=>_0x47ce31['suggestion']),_0x5365ab=_0x3d5284({'newValue':_0x5617b0['newValue']});_0x31f028['filter'](_0x3bab92=>{const [_0x31620c,_0x5dba17]=_0x3bab92['subType']['split']('|');return _0x31620c==_0x5617b0['key']&&_0x5dba17!=_0x5365ab;})['forEach'](_0x29dbd2=>{this['_reduceSuggestionAttributeRange'](_0x29dbd2,_0x5617b0['range'],_0x14fa7c),_0x13cf71=!0x0;});}return _0x13cf71;}['_reduceSuggestionAttributeRange'](_0x2ae828,_0x43206a,_0x4e2ddd){const _0x433d29=_0x2ae828['getFirstRange']()['getDifference'](_0x43206a);0x0!==_0x433d29['length']?0x1!==_0x433d29['length']?this['_breakSuggestionMarker'](_0x2ae828,_0x43206a['start'],_0x43206a['end']):this['_setSuggestionRange'](_0x2ae828,_0x433d29[0x0]):_0x4e2ddd['removeMarker'](_0x2ae828['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x43786d){this['_editor']=_0x43786d,this['_model']=_0x43786d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3db9f4,_0x206a2a,_0x1bb790,_0x27b11e,_0x53e5d3,_0x49d7bb,_0x1dc141){return new R(this['_model'],{'type':_0x3db9f4,'subType':_0x206a2a,'id':_0x1bb790,'originalSuggestionId':_0x1dc141,'author':_0x27b11e,'creator':_0x27b11e,'attributes':_0x53e5d3,'onAttributesChange':_0x49d7bb,'onAccept':(..._0x21c34d)=>this['getSuggestionCallback'](_0x3db9f4,_0x206a2a,'accept')(..._0x21c34d),'onDiscard':(..._0xf8c3de)=>this['getSuggestionCallback'](_0x3db9f4,_0x206a2a,'discard')(..._0xf8c3de)});}['registerCustomCallback'](_0x436c5f,_0x2d4ce3,_0x207c73,_0x187d1f){const _0x3fdf56=_0x436c5f+':'+_0x2d4ce3+':'+_0x207c73;this['_customCallbacks']['set'](_0x3fdf56,_0x187d1f);}['getSuggestionCallback'](_0x60354,_0x46217a,_0x11af3e){const _0x284966=_0x60354+':'+_0x46217a+':'+_0x11af3e;return this['_customCallbacks']['get'](_0x284966)||this['_defaultCallbacks']['get'](_0x60354+':'+_0x11af3e);}['_registerDefaultCallbacks'](){const _0x2b4cc8=()=>!0x1,_0x479da3=_0x4a60ea=>{_0x4a60ea['sort']((_0x37417e,_0x49e808)=>_0x37417e['start']['isBefore'](_0x49e808['start'])?0x1:-0x1),this['_model']['change'](_0x58b2c9=>{for(const _0x51fe39 of _0x4a60ea){let _0x7ae327;_0x7ae327=_0x51fe39['end']['isAtEnd']&&_0x51fe39['end']['parent']==_0x51fe39['start']['nodeAfter']?_0x58b2c9['createSelection'](_0x51fe39['start']['nodeAfter'],'on'):_0x58b2c9['createSelection'](_0x51fe39),this['_model']['deleteContent'](_0x7ae327,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x55512a=(_0x11914f,_0xab6b00)=>{_0xab6b00&&this['_model']['change'](_0x3dcff4=>{const {commandName:_0x575a60,commandParams:_0x7ba6de=[]}=_0xab6b00,_0x2c710a=_0x11914f['map'](_0x4b3349=>(Kt(_0x4b3349)&&(_0x4b3349=this['_model']['createRange'](_0x4b3349['end'])),_0x4b3349))['filter'](_0x2eecab=>'$graveyard'!==_0x2eecab['root']['rootName']);if(_0x2c710a['length']<0x1)return;const _0x390c27=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x45c407=>_0x39adac['fromRange'](_0x45c407));_0x3dcff4['setSelection'](_0x2c710a);for(const _0x58753a of this['_editor']['commands']['commands']())_0x58753a['refresh']();_0x7ba6de['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x575a60,..._0x7ba6de);const _0x5782c0=_0x390c27['filter'](_0x263a31=>'$graveyard'!=_0x263a31['root']['rootName']);_0x5782c0['length']>0x0&&_0x3dcff4['setSelection'](_0x5782c0);for(const _0x5da524 of _0x390c27)_0x5da524['detach']();});},_0x261f6f=(_0x5c641b,_0x4e54fa)=>0x1==_0x5c641b['length']&&0x1==_0x4e54fa['length']&&_0x5c641b[0x0]['end']['isEqual'](_0x4e54fa[0x0]['start']),_0x397b52=(_0x16930c,_0x56b86b,_0x59519c,_0x293803)=>te(_0x16930c,_0x56b86b,_0x59519c,_0x293803)?[_0x16930c,_0x56b86b]:te(_0x56b86b,_0x16930c,_0x293803,_0x59519c)?[_0x56b86b,_0x16930c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b4cc8),this['_defaultCallbacks']['set']('insertion:discard',_0x479da3),this['_defaultCallbacks']['set']('insertion:join',_0x261f6f),this['_defaultCallbacks']['set']('insertion:chain',_0x397b52),this['_defaultCallbacks']['set']('deletion:accept',_0x479da3),this['_defaultCallbacks']['set']('deletion:discard',_0x2b4cc8),this['_defaultCallbacks']['set']('deletion:join',_0x261f6f),this['_defaultCallbacks']['set']('deletion:chain',_0x397b52),this['_defaultCallbacks']['set']('formatInline:accept',_0x55512a),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b4cc8),this['_defaultCallbacks']['set']('formatInline:join',_0x261f6f),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b4cc8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x55512a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b4cc8),this['_defaultCallbacks']['set']('formatBlock:join',_0x261f6f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b4cc8),this['_defaultCallbacks']['set']('attribute:accept',_0x2b4cc8),this['_defaultCallbacks']['set']('attribute:discard',(_0x16a369,_0x1bbe06)=>{if(!_0x1bbe06)return;const _0x4ef29f=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x53dc71=>{if(_0x1bbe06['key']==m)for(const _0x230ef9 of _0x16a369){const _0x32efe9=_0x230ef9['start']['nodeAfter'],_0x19211b=_0x1bbe06['oldValue'];_0x53dc71['rename'](_0x32efe9,_0x19211b);}else{if(_0x4ef29f['_isBlockAttribute'](_0x1bbe06['key'])){for(const _0x26e3cd of _0x16a369)void 0x0!==_0x1bbe06['oldValue']?_0x53dc71['setAttribute'](_0x1bbe06['key'],_0x1bbe06['oldValue'],_0x26e3cd['start']['nodeAfter']):_0x53dc71['removeAttribute'](_0x1bbe06['key'],_0x26e3cd['start']['nodeAfter']);}else{for(const _0x14381d of _0x16a369)_0x1bbe06['oldValue']?_0x53dc71['setAttribute'](_0x1bbe06['key'],_0x1bbe06['oldValue'],_0x14381d):_0x53dc71['removeAttribute'](_0x1bbe06['key'],_0x14381d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x261f6f);}}function Jt(_0x18977d,_0x1a7010,_0x17cc7c){for(const _0x150d4e of _0x1a7010['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x150d4e['root']==_0x150d4e)return!0x1;if(!_0x17cc7c['containsItem'](_0x150d4e))return!0x1;if(_0x18977d['isObject'](_0x150d4e)||_0x18977d['isLimit'](_0x150d4e))return!0x0;}return!0x1;}function Kt(_0x3c277c){return _0x3c277c['end']['parent']==_0x3c277c['start']['nodeAfter']&&_0x3c277c['end']['isAtStart'];}function Ht(_0x29f4b9,_0xbc2efd,_0x51aec3,_0x5ef9b4){const _0x11b115=_0x6cb112=>!_0x6cb112['item']['is']('$textProxy')&&!_0x5ef9b4['isObject'](_0x6cb112['item']),_0xd35e60=_0x29f4b9['start']['getLastMatchingPosition'](_0x11b115),_0x443ee3=_0x29f4b9['end']['getLastMatchingPosition'](_0x11b115,{'direction':'backward'});return(!_0x29f4b9['start']['isEqual'](_0xd35e60)||!_0x29f4b9['end']['isEqual'](_0x443ee3))&&(_0xd35e60['isBefore'](_0x443ee3)?_0x51aec3['updateMarker'](_0xbc2efd,{'range':_0x51aec3['createRange'](_0xd35e60,_0x443ee3)}):_0x51aec3['removeMarker'](_0xbc2efd),!0x0);}function Wt(_0x48178f){return _0x3d5284(_0x48178f);}function qt(_0xea9b94){const _0x40ad94=_0xea9b94['start']['nodeAfter'];return _0x40ad94&&_0x40ad94['is']('element');}function zt(_0x493a8b){return Kt(_0x493a8b)||function(_0x633fc1){return _0x633fc1['start']['parent']==_0x633fc1['end']['nodeBefore']&&_0x633fc1['start']['isAtEnd'];}(_0x493a8b);}function Qt(_0x404e96,_0xc28cdb){try{const _0x1a2f31=_0x404e96['getRange']();for(const _0x21b5d1 of _0xc28cdb)if(_0x404e96!==_0x21b5d1&&_0x1a2f31&&_0x1a2f31['isIntersecting'](_0x21b5d1['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x5fe9c,_0x299dd0){const _0x58575f=_0x5fe9c['end']['nodeBefore'];if(_0x58575f&&_0x58575f['is']('element')&&_0x299dd0['schema']['isBlock'](_0x58575f)&&!_0x299dd0['schema']['isObject'](_0x58575f)){const _0x22c820=_0x299dd0['createPositionAt'](_0x58575f,'end');return _0x299dd0['createRange'](_0x5fe9c['start'],_0x22c820);}return _0x5fe9c;}function Yt(_0x4f6d1f,_0x401f80){return null==_0x4f6d1f['end']['nodeBefore']&&_0x4f6d1f['end']['parent']==_0x4f6d1f['start']['nodeAfter']?Zt(_0x4f6d1f['start']['nodeAfter'],_0x401f80):_0x4f6d1f;}function Zt(_0x43b4ba,_0x3c1df2){const _0x25c0f1=_0x3c1df2['schema']['isObject'](_0x43b4ba)||_0x3c1df2['schema']['isSelectable'](_0x43b4ba);return _0x3c1df2['createRange'](_0x3c1df2['createPositionAt'](_0x43b4ba,'before'),_0x25c0f1?_0x3c1df2['createPositionAfter'](_0x43b4ba):_0x3c1df2['createPositionAt'](_0x43b4ba,'end'));}function te(_0x7fc383,_0x181c76,_0x4cad6e,_0x10cfde){return!!ee(_0x7fc383,_0x181c76)&&_0x4cad6e['end']['isEqual'](_0x10cfde['start']);}function ee(_0x3d0cc2,_0x19a1c3){if(!_0x3d0cc2['_isDataLoaded']||!_0x19a1c3['_isDataLoaded'])return!0x1;const _0xae99e6=new Set(Object['keys'](_0x3d0cc2['attributes'])),_0x13b396=new Set(Object['keys'](_0x19a1c3['attributes']));if(_0xae99e6['delete']('groupId'),_0x13b396['delete']('groupId'),0x0==_0xae99e6['size']&&0x0==_0x13b396['size'])return!0x0;if(_0xae99e6['size']!=_0x13b396['size'])return!0x1;const _0x23325b={..._0x3d0cc2['attributes']},_0x385e37={..._0x19a1c3['attributes']};return delete _0x23325b['groupId'],delete _0x385e37['groupId'],JSON['stringify'](_0x23325b)==JSON['stringify'](_0x385e37);}function ie(_0x1403ae,_0x35db35){const _0x277c54=ne(_0x1403ae['attributes']),_0x32ce4f=ne(_0x35db35);if(!_0x1403ae['_isDataLoaded'])return!0x1;for(const _0x480b4a of Object['keys'](_0x32ce4f))if(!_0x28590f(_0x277c54[_0x480b4a],_0x32ce4f[_0x480b4a]))return!0x1;return!0x0;}function ne(_0x3d1e9e){const _0x254cde=Object['assign']({},_0x3d1e9e);return delete _0x254cde['skipNestingCheck'],delete _0x254cde['tablePasteChainId'],_0x254cde;}function se(_0x42e2ee){return _0x42e2ee['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x138e14(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a9dd2,_0x2de79a,_0x4a1d07,_0x5ebd55){super(),this['model']=_0x2de79a,this['view']=_0x4a1d07,this['commentThreadController']=_0x5ebd55,this['_editor']=_0x3a9dd2,this['_acceptCommand']=_0x3a9dd2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a9dd2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x28f129,_0x306a6a)=>_0x28f129||_0x306a6a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x58242a=>_0x58242a&&this['_editor']['model']['canEditAt'](_0x2de79a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x105955=>_0x105955&&this['_editor']['model']['canEditAt'](_0x2de79a['getRanges']())),this['_pendingAction']=null,_0x4a1d07['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4a1d07,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4a1d07,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4a1d07,'change:isDirty',()=>{_0x4a1d07['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x35117b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35117b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3eac6a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2a9c1c,_0x3dadcc,_0x352edf,_0x5c375f){super(_0x2a9c1c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4491ed(_0x2a9c1c,o(_0x2a9c1c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3dadcc['authoredAt']),this['bind']('authoredAt')['to'](_0x3dadcc),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x3dadcc,'authoredAt',this,'descriptionParts',(_0x573607,_0x4364e1,_0x438937)=>{const _0x5509ae=_0x438937['map'](_0x235fa9=>ls(_0x235fa9['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x573607-0x1,_0x3dadcc['author']['name'],_0x4364e1?_0x5c375f['formatDateTime'](_0x4364e1):'',new DOMParser()['parseFromString'](_0x5509ae,'text/html')['body']['textContent']]);}),this['focusables']=new _0x589a45(),this['focusTracker']=new _0x41869d(),this['keystrokes']=new _0x191f71(),this['focusCycler']=new _0x20a876({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2c2d57=>_0x2c2d57['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3dadcc,this['_localUser']=_0x352edf,this['_config']=_0x5c375f,_0x5c375f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1df716(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x275322}=this['_config'];this['commentsListView']=new _0x275322(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x150a97=>_0x150a97+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x52bfcf,_0x182161)=>_0x52bfcf||!!_0x182161);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xb8ede3}=this['_config'],_0x52b286=new _0xb8ede3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x445958=_0x52b286['commentInputView'];return _0x52b286['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x445958,'value',(_0x102d68,_0x19583f,_0x286c66)=>!!_0x286c66||_0x102d68&&!_0x19583f),_0x445958['on']('submit',(_0x55017f,_0xeb870a)=>{this['fire']('addComment',_0xeb870a),_0x445958['editor']['setData']('');}),_0x445958['on']('cancel',()=>this['focus']()),_0x445958['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x52b286;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1f836e,_0x317e23,_0x368d2b,_0xfc1c94){super(_0x1f836e,_0x317e23,_0x368d2b,_0xfc1c94),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x31158d=>_0x31158d&&_0x31158d[0x0]?_0x31158d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1565fd,_0x345d05)=>{let _0x46ed12='';for(const _0x15b5cf of _0x1565fd)_0x46ed12+='<p>'+ls(_0x15b5cf['content'],_0x15b5cf['color'])+'</p>';return _0x345d05?_0x46ed12:_0x2e8b36(_0x46ed12,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xfc1c94['SuggestionView'](_0x1f836e,_0x317e23,{'formatDateTime':_0xfc1c94['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x178f53=this['bindTemplate'],_0x2181ea=[this['suggestionView']];return this['commentsListView']&&_0x2181ea['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2181ea['push'](this['commentThreadInputView']),_0x2181ea['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x178f53['if']('isActive','ck-suggestion-wrapper--active'),_0x178f53['to']('type',_0x40d586=>'ck-suggestion-'+_0x40d586),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x178f53['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2181ea};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class Le extends _0x3eac6a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x39b454,_0x46eea2,_0x13982b){super(_0x39b454),this['_model']=_0x46eea2,this['_config']=_0x13982b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x46eea2),this['acceptButton']=this['_createButton'](o(_0x39b454,'Accept\x20suggestion'),_0x326a17,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x39b454,'Discard\x20suggestion'),_0x36578a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x27eb11(_0x39b454,_0x46eea2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x589a45([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x41869d(),this['keystrokes']=new _0x191f71(),this['focusCycler']=new _0x20a876({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x12f513=>_0x12f513['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2785c7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2785c7['innerHTML']=this['description'],this['on']('change:description',(_0x57cc07,_0x5bf3ef,_0x2addd3)=>{_0x2785c7['innerHTML']=_0x2addd3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1e52c9=this['bindTemplate'],_0x4ac9ca=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1e52c9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e52c9['to']('authoredAt',_0x966069=>this['_config']['formatDateTime'](_0x966069))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x4ac9ca['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x4ac9ca}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2bfe61,_0x48fdef,_0x550a6b,_0x23cafc,_0x2aae2f){const _0x11a569=new _0x166d5a(this['locale']);return _0x11a569['set']({'label':_0x2bfe61,'icon':_0x48fdef,'tooltip':!0x0,'tooltipPosition':_0x2aae2f}),_0x11a569['extendTemplate']({'attributes':{'class':_0x550a6b}}),_0x11a569['on']('execute',()=>{this['fire'](_0x23cafc,this['_model']['id']);}),_0x11a569;}['_setupKeyboardNavigation'](){const _0x1693d8=this['element'];this['keystrokes']['listenTo'](_0x1693d8);for(const _0x186b30 of this['focusables'])this['focusTracker']['add'](_0x186b30['element']),this['keystrokes']['listenTo'](_0x186b30['element']);this['keystrokes']['set']('enter',(_0x5b3069,_0x3a6852)=>{_0x1693d8===_0x5b3069['target']&&(this['focusCycler']['focusFirst'](),_0x3a6852());}),this['keystrokes']['set']('esc',(_0x22d866,_0x405a68)=>{_0x1693d8!==_0x22d866['target']&&(this['focus'](),_0x405a68());});}}class u extends _0x44fd37{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x42acd4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4120fa){super(_0x4120fa),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x50f94d=this['editor']['config'];_0x50f94d['define']('trackChanges.SuggestionThreadView',Te),_0x50f94d['define']('trackChanges.SuggestionView',Le),_0x50f94d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x50f94d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xee6960,_0x23cd96){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x13cb61,_0x5277a6]of this['_handleControllerBuffer']){const _0x3c3737=this['_suggestionToController']['has'](_0x13cb61);_0x3c3737||_0x5277a6?_0x3c3737&&_0x5277a6&&this['_destroyController'](_0x13cb61):this['_initializeController'](_0x13cb61);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xee6960,_0x23cd96);}['init'](){const _0x42ab07=this['editor'],_0x54f42e=_0x42ab07['plugins']['get']('TrackChangesEditing'),_0x5c4601=_0x42ab07['plugins']['get']('Annotations'),_0x2f5e46=_0x42ab07['plugins']['get']('EditorAnnotations'),_0x27e86e=_0x42ab07['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2f5e46['addSourceCollector'](()=>{const _0x5adc25=[];for(const [_0x1eb6fd,_0x561084]of Array['from'](this['_suggestionToController'])){const _0x48e648=_0x1eb6fd['getAllAdjacentSuggestions'](),_0x512ea6=[];for(const _0x46c750 of _0x48e648){if(!_0x46c750['isInContent'])continue;if(_0x46c750['isMultiRange']){_0x512ea6['push'](..._0x46c750['getRanges']());continue;}const _0xfd582c=_0x46c750['getFirstRange']();if(_0x512ea6['length']>0x0){const _0x12b775=_0x512ea6[0x0]['getJoined'](_0xfd582c);if(_0x12b775){_0x512ea6[0x0]=_0x12b775;continue;}}_0x512ea6['push'](_0xfd582c);}_0x5adc25['push']([_0x561084['view'],_0x512ea6]);}return _0x5adc25;}),this['listenTo'](_0x54f42e,'suggestionLoaded',(_0x1bc309,_0x28574c)=>{this['listenTo'](_0x28574c,'change:previous',(_0x43094e,_0x59b1e4,_0x5313a3,_0x5658de)=>{_0x28574c['isInContent']&&(null==_0x5313a3?(this['_updateController'](_0x5658de['head']),this['_handleSuggestionControllerDelayed'](_0x28574c,!0x1)):(this['_updateController'](_0x5313a3['head']),null==_0x5658de&&this['_handleSuggestionControllerDelayed'](_0x28574c,!0x0)));}),null!==_0x28574c['previous']?this['_updateController'](_0x28574c['head']):this['_handleSuggestionControllerDelayed'](_0x28574c,!0x1);}),this['listenTo'](_0x54f42e,'suggestionUnloaded',(_0x543b0d,_0x1f18ee,_0x341188)=>{this['stopListening'](_0x1f18ee,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1f18ee),this['_suggestionToController']['has'](_0x1f18ee)&&this['_destroyController'](_0x1f18ee),_0x341188&&this['_updateController'](_0x341188['head']);}),this['listenTo'](_0x54f42e,'suggestionChanged',(_0x3618c0,_0x51c320)=>{this['_updateController'](_0x51c320);}),this['listenTo'](_0x5c4601,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x27e86e,'addComment',(_0xb705b1,{threadId:_0x38b2bb,isFromAdapter:_0x399fff})=>{if(_0x399fff||!_0x54f42e['hasSuggestion'](_0x38b2bb))return;const _0x1d36c5=_0x54f42e['getSuggestion'](_0x38b2bb);this['_suggestionToController']['get'](_0x1d36c5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3917f8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d298d;for(const _0x545c19 in _0x3917f8){const _0x34b487=_0x545c19,_0x44b5e5=_0x3917f8[_0x34b487];if('trackChangesLicenseKeyValid'==_0x44b5e5||'trackChangesLicenseKeyInvalid'==_0x44b5e5||'trackChangesLicenseKeyExpired'==_0x44b5e5||'trackChangesLicenseKeyDomainLimit'==_0x44b5e5||'trackChangesLicenseKeyNotAllowed'==_0x44b5e5||'trackChangesLicenseKeyEvaluationLimit'==_0x44b5e5||'trackChangesLicenseKeyTrialLimit'==_0x44b5e5||'trackChangesLicenseKeyUsageLimit'==_0x44b5e5){delete _0x3917f8[_0x34b487],_0x5d298d=_0x44b5e5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5d298d&&_0x3917f8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5d298d&&_0x3917f8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5d298d&&_0x3917f8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5d298d&&_0x3917f8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5d298d&&_0x3917f8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5d298d&&_0x3917f8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5d298d&&_0x3917f8['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x465d58){const _0x49e569=this['_suggestionToController']['get'](_0x465d58);if(!_0x49e569)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x49e569['view'])||null;}['getSuggestionForAnnotation'](_0x49d046){const _0x4555e3=this['_viewToController']['get'](_0x49d046['innerView']);return _0x4555e3?_0x4555e3['model']:null;}['_refreshActiveMarkers'](){const _0x1e2ee3=this['editor']['plugins']['get']('Annotations'),_0x1be6d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f76a8=Array['from'](_0x1e2ee3['activeAnnotations'],_0x4e2341=>_0x4e2341['innerView'])['filter'](_0x391a6b=>this['_viewToController']['has'](_0x391a6b)),_0x20f7e8=[];for(const _0x1f4be7 of _0x2f76a8){const _0x57bda3=this['_viewToController']['get'](_0x1f4be7)['model']['getAllAdjacentSuggestions']();_0x20f7e8['push'](..._0x57bda3['reduce']((_0x102973,_0x15e208)=>[..._0x102973,..._0x15e208['getMarkerNames']()],[]));}_0x1be6d2['activeMarkers']=_0x20f7e8;}['_addUIComponentsToFactory'](){const _0x4cf6cd=this['editor'],_0x455316=_0x4cf6cd['locale'],_0x1931da=o(_0x455316,'Track\x20changes'),_0x4b6029=new _0x355574([{'type':'switchbutton','model':new _0x5caf39({'withText':!0x0,'isToggleable':!0x0,'label':_0x1931da,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5caf39({'withText':!0x0,'label':o(_0x455316,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5caf39({'withText':!0x0,'label':o(_0x455316,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5caf39({'withText':!0x0,'label':o(_0x455316,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5caf39({'withText':!0x0,'label':o(_0x455316,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4cf6cd['plugins']['has']('TrackChangesPreview')&&_0x4b6029['addMany']([{'type':'separator'},{'type':'button','model':new _0x5caf39({'withText':!0x0,'label':o(_0x455316,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3ce2c3 of _0x4b6029)if(ve(_0x3ce2c3)){const _0xd6f737=_0x4cf6cd['commands']['get'](_0x3ce2c3['model']['commandName']);_0x3ce2c3['model']['bind']('isOn','isEnabled')['to'](_0xd6f737,'value','isEnabled');}_0x4cf6cd['ui']['componentFactory']['add']('trackChanges',_0x82ba41=>this['_createToolbarButton'](_0x82ba41,_0x4b6029,_0x1931da)),_0x4cf6cd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x19791e=>this['_createMenuBarMenu'](_0x19791e,_0x4b6029,_0x1931da));}['_createToolbarButton'](_0x1b457c,_0x241605,_0x106871){const _0x37891a=_0x51d2fd(_0x1b457c,_0x2814af),_0x448031=this['editor']['commands']['get']('trackChanges');_0x37891a['buttonView']['set']({'tooltip':_0x106871,'label':_0x106871,'icon':_0x332e69}),_0x37891a['buttonView']['bind']('isOn')['to'](_0x448031,'value'),_0x37891a['buttonView']['on']('execute',()=>{_0x448031['execute'](),this['editor']['editing']['view']['focus']();}),_0x3835f2(_0x37891a,_0x241605,{'role':'menu'});const _0x9ce9ee=[];for(const _0x27cdd7 of _0x241605)ve(_0x27cdd7)&&_0x9ce9ee['push'](this['editor']['commands']['get'](_0x27cdd7['model']['commandName']));const _0x24fe87=_0x37891a['buttonView'];return _0x24fe87['actionView']['unbind']('isEnabled'),_0x24fe87['arrowView']['unbind']('isEnabled'),_0x24fe87['actionView']['bind']('isEnabled')['to'](_0x448031,'isEnabled'),_0x24fe87['arrowView']['bind']('isEnabled')['toMany'](_0x9ce9ee,'isEnabled',(..._0xe2a5ea)=>_0xe2a5ea['some'](_0xfec679=>_0xfec679)),_0x37891a['on']('execute',_0x4a7eba=>{this['editor']['execute'](_0x4a7eba['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x37891a;}['_createMenuBarMenu'](_0x28824a,_0x2ed6f9,_0x2135a9){const _0x5b462e=new _0x4c4b2c(_0x28824a),_0x5676a0=this['editor']['commands']['get']('trackChanges');_0x5b462e['buttonView']['set']({'label':_0x2135a9,'icon':_0x332e69});const _0x1e64a2=new _0x4488be(_0x28824a);for(const _0x295b8d of _0x2ed6f9){if('separator'==_0x295b8d['type']){_0x1e64a2['items']['add'](new _0x44126c(_0x28824a));continue;}const _0x240f41=new _0x1653c2(_0x28824a,_0x5b462e),_0x554662=new _0x501214(_0x28824a),_0x13251e=_0x295b8d['model'];_0x554662['bind'](...Object['keys'](_0x13251e))['to'](_0x13251e),_0x554662['delegate']('execute')['to'](_0x5b462e),_0x554662['on']('execute',()=>{this['editor']['execute'](_0x13251e['commandName']),this['editor']['editing']['view']['focus']();}),_0x240f41['children']['add'](_0x554662),_0x1e64a2['items']['add'](_0x240f41);}return _0x5b462e['bind']('isEnabled')['to'](_0x5676a0,'isEnabled'),_0x5b462e['panelView']['children']['add'](_0x1e64a2),_0x5b462e;}['_initializeController'](_0x4a0c90){const _0x3fb324=this['editor'],_0x2ae2b9=_0x3fb324['config'],_0x4b4612=_0x3fb324['plugins']['get']('Annotations'),_0x403205=_0x3fb324['plugins']['get']('CommentsRepository'),_0x19a1e8=_0x3fb324['plugins']['get']('EditorAnnotations'),_0x2f10d2=_0x3fb324['plugins']['get'](_0x42acd4)['me'],_0x3d0140=_0x2ae2b9['get']('trackChanges')['SuggestionThreadView'],_0x49c9e1=_0x2ae2b9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x19751d,CommentThreadInputView:_0x1a9148}=_0x3fb324['plugins']['get']('CommentsUI');let _0x50ae98,_0x5655aa,_0x5db7e7;this['_annotationViews']['has'](_0x4a0c90['id'])?(_0x5655aa=this['_annotationViews']['get'](_0x4a0c90['id']),_0x50ae98=_0x5655aa['mainView']):(_0x50ae98=new _0x3d0140(_0x3fb324['locale'],_0x4a0c90,_0x2f10d2,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2ae2b9['get']('comments.editorConfig'),'licenseKey':_0x2ae2b9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2ae2b9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2ae2b9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2ae2b9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x274625(_0x2ae2b9['get']('locale'),_0x3fb324['locale']),'CommentView':_0x2ae2b9['get']('comments')['CommentView'],'CommentsListView':_0x19751d,'CommentThreadInputView':_0x1a9148,'SuggestionView':_0x49c9e1}),_0x50ae98['suggestionView']['acceptButton']['on']('execute',()=>{_0x3fb324['editing']['view']['focus']();}),_0x50ae98['suggestionView']['discardButton']['on']('execute',()=>{_0x3fb324['editing']['view']['focus']();}),_0x5655aa=_0x4b4612['createAnnotationView'](this['editor']['locale'],_0x50ae98),_0x5655aa['bind']('isDirty')['to'](_0x50ae98,'isDirty'),_0x5655aa['bind']('length')['to'](_0x50ae98),_0x5655aa['bind']('type')['to'](_0x50ae98,'type',_0x3c8142=>'suggestion-'+_0x3c8142),_0x50ae98['on']('escape',()=>{_0x5db7e7['fire']('escape');}),this['_annotationViews']['set'](_0x4a0c90['id'],_0x5655aa));const _0x400ab7=_0x403205['createCommentThreadController'](_0x4a0c90['commentThread'],_0x50ae98),_0x4ccce8=new be(_0x3fb324,_0x4a0c90,_0x50ae98,_0x400ab7),_0x5478c5=_0x4a0c90['getAllAdjacentSuggestions']()['filter'](_0x3d072d=>_0x3d072d['isInContent']);_0x50ae98['descriptionParts']=_0x3fb324['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5478c5),this['_suggestionToController']['set'](_0x4a0c90,_0x4ccce8),this['_viewToController']['set'](_0x50ae98,_0x4ccce8);const _0x2dbaad=()=>{const _0x418d5f=[],_0x2f8d9b=_0x4a0c90['getAllAdjacentSuggestions']()['filter'](_0x5af2ff=>_0x5af2ff['isInContent']);for(const _0x12cd27 of _0x2f8d9b)_0x418d5f['push'](..._0x12cd27['getMarkers']());return _0x32e540(_0x3fb324['editing'],_0x418d5f);};_0x5db7e7=_0x4b4612['createAnnotation']({'view':_0x5655aa,'target':_0x2dbaad,'type':()=>'suggestion-'+_0x4ccce8['view']['type'],'isVisible':!!_0x2dbaad()}),_0x403205['_bindAnnotationToEditors'](_0x50ae98,_0x5db7e7),_0x4b4612['add'](_0x5db7e7),_0x19a1e8['registerAnnotation'](_0x5db7e7);}['_destroyController'](_0x5a37f7){const _0x92f2a9=this['editor']['plugins']['get']('CommentsRepository'),_0x5d106c=this['editor']['plugins']['get']('Annotations'),_0x5a98c3=this['_suggestionToController']['get'](_0x5a37f7),_0x177d51=_0x5a98c3['view'],_0xc98ae6=_0x5d106c['getByInnerView'](_0x177d51);_0x92f2a9['_unbindEditors'](_0x177d51),_0xc98ae6&&_0x5d106c['remove'](_0xc98ae6),this['_suggestionToController']['delete'](_0x5a37f7),this['_viewToController']['delete'](_0x177d51),_0x5a98c3['destroy']();}['_updateController'](_0x1489a4){if(!_0x1489a4['isInContent']||!this['_suggestionToController']['has'](_0x1489a4))return;const _0x48aeeb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f8df0=this['_suggestionToController']['get'](_0x1489a4),_0x326f68=_0x1489a4['getAllAdjacentSuggestions']();_0x1f8df0['view']['descriptionParts']=_0x48aeeb['descriptionFactory']['getDescriptions'](_0x326f68);}['destroy'](){for(const _0x5b7713 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5b7713);for(const _0x52a8e8 of this['_annotationViews']['values']())_0x52a8e8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x4be8d9){return'model'in _0x4be8d9;}class Ve extends _0x44fd37{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x15aedf){this['editor']['plugins']['get'](d)['adapter']=_0x15aedf;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x47eda3){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x47eda3);}['getSuggestions']({skipNotAttached:_0x589b21=!0x1,toJSON:_0x5827ca=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x589b21,'toJSON':_0x5827ca});}['getSuggestion'](_0x124561){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x124561);}}const p=['Pagination'];class ce extends _0x44fd37{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x118b72=this['editor'];if(_0x118b72['config']['define']('trackChangesData.editorCreator',_0x211c0f=>{const _0x3302b9=_0x118b72['model']['document']['getRootNames']()['reduce']((_0x3e2dbb,_0x90cb40)=>(_0x3e2dbb[_0x90cb40]='',_0x3e2dbb),{});return _0x118b72['constructor']['create'](_0x3302b9,_0x211c0f);}),'function'!=typeof _0x118b72['config']['get']('trackChangesData')['editorCreator'])throw new _0xd89ffd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x574c35){return P(this['editor'],!0x0,_0x574c35);}['getDataWithDiscardedSuggestions'](_0x1430c6){return P(this['editor'],!0x1,_0x1430c6);}}class ze extends _0x44fd37{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59e40d){function _0x538599(_0x3361e9){return _0x3361e9['map'](_0x819e2b=>String['fromCharCode'](_0x819e2b))['join']('');}super(_0x59e40d),this['result']='end',_0x59e40d[_0x538599([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x538599([0x76,0x69,0x65,0x77])][_0x538599([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x538599([0x61,0x75,0x74,0x6f]),_0x59e40d[_0x538599([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x538599([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x538599([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x538599([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x538599([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ke(_0x12f8d3){return void 0x0!==_0x12f8d3['getRootsAttributes'];}async function P(_0x5f154c,_0x30a25f,_0x585d40){const _0x5945c1=_0x18337b(_0x5f154c,p);_0x5945c1['plugins']['push'](d,ze),_0x5945c1['rootsAttributes']=Ke(_0x5f154c)?_0x5f154c['getRootsAttributes']():void 0x0;const _0x164d0d=document['createDocumentFragment'](),_0x3f93fd=_0x5f154c['config']['get']('trackChangesData')['editorCreator'],_0xa11fb=await _0x3f93fd(_0x5945c1,()=>function(_0x5d557e){const _0x2c70b1=document['createElement']('div');return _0x5d557e['appendChild'](_0x2c70b1),_0x2c70b1;}(_0x164d0d));!function(_0x530a56,_0x205adc){const _0x311b04=_0x530a56['model']['document']['getRootNames']()['reduce']((_0x4961bd,_0x4cf86c)=>(_0x4961bd[_0x4cf86c]=_0x530a56['data']['get']({'rootName':_0x4cf86c}),_0x4961bd),{}),_0x3c104f=_0x530a56['plugins']['get']('Users')['users']['map'](_0x4016e7=>({'id':_0x4016e7['id'],'name':_0x4016e7['name']})),_0x55c7de=_0x530a56['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x49873f=_0x530a56['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b0b4b=_0x205adc['plugins']['get']('Users'),_0x328cf6=_0x205adc['plugins']['get']('TrackChangesEditing'),_0x1948eb=_0x205adc['plugins']['get']('CommentsRepository');for(const _0xe3ef71 of _0x1948eb['getCommentThreads']())_0xe3ef71['remove']();for(const _0x3435ae of _0x3c104f)_0x3b0b4b['getUser'](_0x3435ae['id'])||_0x3b0b4b['addUser'](_0x3435ae);_0x3b0b4b['me']||_0x3b0b4b['useAnonymousUser']();for(const _0xd3ca84 of _0x49873f)_0x1948eb['addCommentThread'](_0xd3ca84);for(const _0x956a9d of _0x55c7de)_0x328cf6['addSuggestionData'](_0x956a9d);_0x205adc['data']['set'](_0x311b04);}(_0x5f154c,_0xa11fb),_0xa11fb['execute'](_0x30a25f?'acceptAllSuggestions':'discardAllSuggestions');const _0x4503be=Ke(_0xa11fb)?_0xa11fb['getFullData'](_0x585d40):_0xa11fb['data']['get'](_0x585d40);return await _0xa11fb['destroy'](),_0x4503be;}class _e extends _0x3eac6a{['options'];constructor(_0xf8a631,_0x89f4a1){super(_0xf8a631),this['options']=_0x89f4a1,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x29dda6,_0x687dbb){if(!this['element'])return;const _0x270539=[];for(const [_0x5908e4,_0x50cf20]of _0x29dda6){const _0x4ccf4d=document['createElement']('div');_0x4ccf4d['setAttribute']('data-ck-root-name',_0x5908e4),_0x4ccf4d['className']=_0x50cf20['classes']+'\x20ck-track-changes-preview__root-container',_0x4ccf4d['innerHTML']=_0x50cf20['content'],_0x270539['push'](_0x4ccf4d);}_0x687dbb(this['element'],_0x270539),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x38e29d{constructor(_0x1d2261){super(_0x1d2261),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x524411=this['editor'],_0xd9627e=_0x524411['locale'],_0x57f0b7=_0x524411['plugins']['get']('Dialog');let _0x4392e9;const _0x20655f=function(_0xfbb0ef){const _0x2f4ecf={};if('editables'in _0xfbb0ef['ui']['view']){for(const [_0x47eb4c,_0x28a0bd]of Object['entries'](_0xfbb0ef['ui']['view']['editables']))_0x2f4ecf[_0x47eb4c]=_0x28a0bd['element'];}else _0x2f4ecf[_0xfbb0ef['model']['document']['getRootNames']()[0x0]]=_0xfbb0ef['ui']['view']['editable']['element'];return _0x2f4ecf;}(_0x524411),_0x13e207=function(_0x336021){let _0x3e1910=0x0;for(const _0x23a604 of Object['values'](_0x336021))_0x3e1910=Math['max'](_0x3e1910,_0x23a604['getBoundingClientRect']()['width']);let _0x33efa3=0x0;for(const _0x584edd of Object['values'](_0x336021))_0x33efa3+=_0x584edd['getBoundingClientRect']()['height'];const _0x4eca9c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x37ee7a=Math['min'](_0x33efa3,_0x4eca9c);return{'width':_0x3e1910,'height':_0x37ee7a};}(_0x20655f);_0x57f0b7['show']({'id':'finalContentPreview','title':o(_0xd9627e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0xd9627e,{'dialogRects':_0x13e207}),'onHide':()=>{_0x4392e9['detachFromDom']();},'onShow':()=>{_0x524411['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3a8395=>{const _0x7e3bb5=this['_standarizeRootsData'](_0x3a8395,_0x524411,_0x20655f);_0x57f0b7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x7e3bb5,_0x524411['config']['get']('trackChanges.preview.renderFunction'));}),_0x4392e9=new _0x532d5a(_0xd9627e,[_0x57f0b7['view']]),_0x4392e9['attachToDom'](),_0x4392e9['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x524411['once']('destroy',()=>{_0x4392e9['detachFromDom']();});const _0x3961c5=_0x57f0b7['view']['headerView']['class'];_0x57f0b7['view']['headerView']['class']=_0x3961c5?_0x3961c5+'\x20ck-reset_all':'ck-reset_all',_0x57f0b7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x57f0b7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x562b6e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2a75f5=_0x562b6e['previewMode'],_0xb715e2={};if('$labels'===_0x2a75f5){for(const _0x385c8f of _0x562b6e['getMergeFieldsIds']())_0xb715e2[_0x385c8f]=_0x562b6e['getLabel'](_0x385c8f)||_0x385c8f;}else{const _0x3977ef='$defaultValues'===_0x2a75f5?_0x562b6e['getDefaultValues']():_0x562b6e['getDataSetValues'](_0x2a75f5,!0x0);for(const _0x26492b of Object['entries'](_0x3977ef)){const [_0x5e02d7,_0x38ee5e]=_0x26492b;_0xb715e2[_0x5e02d7]=null!==_0x38ee5e?_0x38ee5e:_0x562b6e['getLabel'](_0x5e02d7)||_0x5e02d7;}}return{'mergeFieldsData':_0xb715e2};}['_standarizeRootsData'](_0x3cae63,_0x361c69,_0x15dbab){let _0x574b09;if('string'==typeof _0x3cae63){const _0x148ea3=_0x361c69['model']['document']['getRootNames']()[0x0];_0x574b09={[_0x148ea3]:_0x3cae63};}else _0x574b09=_0x3cae63;const _0x4dbfa3=this['_fixMediaEmbeds'](_0x574b09,_0x361c69),_0x54f8fa=function(_0x4fec3b,_0x337cbf){for(const [_0x211496,_0x4f5c3c]of _0x4fec3b)_0x4f5c3c['classes']=_0x337cbf[_0x211496]['classList']['value']['replace']('ck-focused','');return _0x4fec3b;}(this['_sortRoots'](_0x361c69)['reduce']((_0x409c9b,_0x59bbe2)=>(_0x409c9b['push']([_0x59bbe2,{'content':_0x4dbfa3[_0x59bbe2],'classes':''}]),_0x409c9b),[]),_0x15dbab);return _0x54f8fa;}['_fixMediaEmbeds'](_0x197e54,_0x1c36c6){if(!_0x1c36c6['plugins']['has']('MediaEmbedEditing'))return _0x197e54;const _0x1d063d=_0x1c36c6['plugins']['get']('MediaEmbedEditing');for(const [_0x227ad0,_0x27b3df]of Object['entries'](_0x197e54)){const _0x2c60d6=document['createElement']('div');_0x2c60d6['innerHTML']=_0x27b3df,(_0x2c60d6['querySelectorAll']('figure.media')['forEach'](_0x5c91d5=>{const _0x2b5673=_0x5c91d5['querySelector']('oembed');if(_0x2b5673){const _0x4030ab=_0x2b5673['getAttribute']('url');if(_0x4030ab){const _0xbf2658=_0x1d063d['registry']['getMediaViewElement'](new _0x15b0fe(_0x1c36c6['editing']['view']['document']),_0x4030ab,{'elementName':'','renderForEditingView':!0x0}),_0x5a492b=document['createElement']('div');_0x5a492b['classList']['add']('ck-media__wrapper'),_0xbf2658['render'](_0x5a492b,_0x1c36c6['editing']['view']['domConverter']),_0x2b5673['replaceWith'](_0x5a492b);}}}),_0x197e54[_0x227ad0]=_0x2c60d6['innerHTML']);}return _0x197e54;}['_sortRoots'](_0xb4fa13){if(!function(_0x429fbd){return void 0x0!==_0x429fbd['getRootsAttributes'];}(_0xb4fa13))return _0xb4fa13['model']['document']['getRootNames']();const _0x4b8d80=[],_0x766eb8=new Map();for(const _0x1d26e5 of _0xb4fa13['model']['document']['getRootNames']()){const _0x27b562=_0xb4fa13['editing']['view']['getDomRoot'](_0x1d26e5)['getClientRects']()['item'](0x0);_0x4b8d80['push'](_0x1d26e5),_0x766eb8['set'](_0x1d26e5,_0x27b562);}return _0x4b8d80['sort']((_0x1a3959,_0xb14aa9)=>{const _0x5bd22d=_0x766eb8['get'](_0x1a3959),_0x187434=_0x766eb8['get'](_0xb14aa9);return _0x5bd22d['y']-_0x187434['y']||_0x5bd22d['x']-_0x187434['x'];}),_0x4b8d80;}}class Xe extends _0x44fd37{static get['requires'](){return[ce,_0x5076e4];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c7e1e){super(_0x5c7e1e),_0x5c7e1e['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x5c7e1e['config']['define']('trackChanges.preview.renderFunction',(_0x10f650,_0x1ded08)=>{for(const _0x355756 of _0x1ded08)_0x10f650['appendChild'](_0x355756);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x294915,Plugin as _0x1ac4a7,PendingActions as _0x4dc787}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x515288,ObservableMixin as _0x5100d7,uid as _0x668662,priorities as _0x48e2dc,insertToPriorityArray as _0x980704,toArray as _0x211a57,logWarning as _0x508cdd,getEnvKeystrokeText as _0x465b03,FocusTracker as _0x3b3986,KeystrokeHandler as _0x182121,Collection as _0x5ca53d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5e26cb,IconCancel as _0x19f008,IconTrackChanges as _0x5d5088}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x512aab,View as _0x1a95f3,ViewCollection as _0xc18b02,FocusCycler as _0x225e9e,UIModel as _0x1e1468,createDropdown as _0x45be79,SplitButtonView as _0x7670d3,addListToDropdown as _0x2d394f,MenuBarMenuView as _0x5e2c03,MenuBarMenuListView as _0x180c07,ListSeparatorView as _0x1f0330,MenuBarMenuListItemView as _0x5bdd5b,MenuBarMenuListItemButtonView as _0xbcb65,BodyCollection as _0x4fccb4,Dialog as _0x3f5aef}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x53c5da,DocumentCompare as _0x11ae4f,hashObject as _0x318d41,surroundingMarkersDetector as _0x154636,FOCUS_ANNOTATION_KEYSTROKE as _0x15f150,AriaDescriptionView as _0x367c93,setupThreadKeyboardNavigation as _0x466ce5,trimHtml as _0x461d21,UserView as _0x1a6119,LateFocusButtonView as _0x1c6c78,getDateTimeFormatter as _0x24eb5b,getAllMarkersDomElementsSorted as _0x203780,sanitizeEditorConfig as _0x1e1567}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x417559,ModelLiveRange as _0x2fe235,ModelLivePosition as _0x4f345c,ModelPosition as _0xda936f,ModelRange as _0x4a33f5,_DetachOperation as _0x5b3eaa,ViewDowncastWriter as _0x31158e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5dc99a,toWidget as _0x376b06}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1bbeb3,set as _0x1a9a6c,isEqual as _0x5cf543,unset as _0x68555b,omit as Lt}from'es-toolkit/compat';import{Delete as _0x99ba60,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2ee569}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2d7130}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x294915{['_enabledCommands'];constructor(_0x44fb99,_0x4a4063){super(_0x44fb99),this['_enabledCommands']=_0x4a4063,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x277fa4 of this['editor']['commands']['commands']())_0x277fa4['affectsData']&&!this['_enabledCommands']['has'](_0x277fa4)&&_0x277fa4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x27a5bc of this['editor']['commands']['commands']())_0x27a5bc['affectsData']&&!this['_enabledCommands']['has'](_0x27a5bc)&&_0x27a5bc['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x294915{['_suggestions'];constructor(_0xa0cae2,_0x15fb94){super(_0xa0cae2),this['_suggestions']=_0x15fb94,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3236e9){const _0x23bce0=this['_suggestions']['get'](_0x3236e9);if(!_0x23bce0)throw new _0x515288('track-changes-accept-suggestion-not-found',this);const _0xf35574=_0x23bce0['getRanges']();this['editor']['model']['canEditAt'](_0xf35574)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x23bce0);}}class O extends _0x294915{['_suggestions'];constructor(_0x3feff0,_0x16f86a){super(_0x3feff0),this['_suggestions']=_0x16f86a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x8c67bc){const _0x472b17=this['_suggestions']['get'](_0x8c67bc);if(!_0x472b17)throw new _0x515288('track-changes-discard-suggestion-not-found',this);const _0x3c98a1=_0x472b17['getRanges']();this['editor']['model']['canEditAt'](_0x3c98a1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x472b17);}}function ls(_0xd8bc33,_0x5b5824){let _0x2fbd39='';return _0x2fbd39+=_0xd8bc33['split']('*')['map']((_0x17fb20,_0x5108b2)=>_0x5108b2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x17fb20)+'</span>':tn(_0x17fb20))['join'](''),_0x5b5824&&(_0x2fbd39+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5b5824['value']+'\x22\x20title=\x22'+_0x5b5824['title']+'\x22></span>'),_0x2fbd39;}function tn(_0x51622a){const _0x4fb905=document['createElement']('span');return _0x4fb905['innerText']=_0x51622a,_0x4fb905['innerHTML'];}function ts(_0x2cd898){return _0x2cd898['sort']((_0x10c66b,_0x372f8b)=>'attribute'===_0x10c66b['type']&&'attribute'!==_0x372f8b['type']?-0x1:'attribute'!==_0x10c66b['type']&&'attribute'===_0x372f8b['type']?0x1:'deletion'==_0x10c66b['type']&&'deletion'!=_0x372f8b['type']?-0x1:'deletion'!=_0x10c66b['type']&&'deletion'==_0x372f8b['type']?0x1:0x0);}function to(_0x2b1b98,_0x10fffa){let _0xced7d,_0x15d863=0x0;const _0x5d5292=[],_0x491523=_0x10fffa['schema'];for(;_0x15d863<_0x2b1b98['length'];){const _0x3754d6=_0x2b1b98[_0x15d863],_0x226ce9=_0x2b1b98[_0x15d863+0x1];_0xced7d||(_0xced7d=_0x10fffa['createPositionBefore'](_0x3754d6)),nn(_0x10fffa,_0x3754d6,_0x226ce9)||(_0x5d5292['push'](_0x10fffa['createRange'](_0xced7d,_0x491523['isObject'](_0x3754d6)?_0x10fffa['createPositionAfter'](_0x3754d6):_0x10fffa['createPositionAt'](_0x3754d6,'end'))),_0xced7d=null),_0x15d863++;}return _0x5d5292;}function nn(_0x3ca709,_0x47adb4,_0x1d18e5){if(!_0x1d18e5)return!0x1;const _0x1eeacb=_0x3ca709['createPositionAfter'](_0x47adb4),_0x26a4c7=_0x3ca709['createPositionBefore'](_0x1d18e5);return _0x1eeacb['isTouching'](_0x26a4c7);}function rs(_0x456cb3,_0x5114f4,_0x32a291){for(;_0x32a291['length'];){const _0x1f7cce=_0x32a291['splice'](0x0,0x64);_0x456cb3['change'](()=>{for(const _0x38a8fa of _0x1f7cce)_0x38a8fa['isInContent']&&_0x5114f4['execute'](_0x38a8fa['id']);});}}class x extends _0x294915{['_command'];['_suggestions'];constructor(_0x28d235,_0x518565,_0x580aec){super(_0x28d235),this['_command']=_0x518565,this['_suggestions']=_0x580aec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d8067=Array['from'](this['_suggestions']['values']())['some'](_0x47209c=>_0x47209c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4d8067;}['execute'](){const _0x112c4f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4ed775 of _0x112c4f){const _0x42d8a4=_0x4ed775['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42d8a4))return;}rs(this['editor']['model'],this['_command'],_0x112c4f);}}class E extends _0x294915{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x25267d,_0x226d4b,_0x5e7823){super(_0x25267d),this['_command']=_0x226d4b,this['_suggestions']=_0x5e7823,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x52a8a9=this['editor']['model']['document']['selection'],_0x559c99=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x36d8a4,_0x405ab0){const _0x4575e5=Array['from'](_0x36d8a4['getRanges']()),_0x576765=new Set();for(const _0x540b3f of _0x405ab0)if(_0x540b3f['isInContent']){for(const _0x28b8c1 of _0x4575e5)for(const _0x854e1c of _0x540b3f['getRanges']())(_0x28b8c1['isIntersecting'](_0x854e1c)||_0x36d8a4['isCollapsed']&&!_0x540b3f['isMultiRange']&&_0x540b3f['next']&&_0x854e1c['end']['isTouching'](_0x28b8c1['start']))&&_0x576765['add'](_0x540b3f);}return _0x576765;}(_0x52a8a9,_0x559c99),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x31d263=ts(Array['from'](this['_selectedSuggestions']));for(const _0xaf3c4d of _0x31d263){const _0x398709=_0xaf3c4d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x398709))return;}rs(this['editor']['model'],this['_command'],_0x31d263);}}class R extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5100d7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4f0769,_0x4afb88){super(),this['id']=_0x4afb88['id'],this['type']=_0x4afb88['type'],this['subType']=_0x4afb88['subType']||null,this['author']=_0x4afb88['author'],this['creator']=_0x4afb88['creator']||_0x4afb88['author'],this['isExternal']=Boolean(_0x4afb88['attributes']&&_0x4afb88['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4afb88['originalSuggestionId']||null,this['_model']=_0x4f0769,this['_onAccept']=_0x4afb88['onAccept'],this['_onDiscard']=_0x4afb88['onDiscard'],this['_onAttributesChange']=_0x4afb88['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4afb88['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0xb5c3e=this;for(;_0xb5c3e['previous'];)_0xb5c3e=_0xb5c3e['previous'];return _0xb5c3e;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x287781){this['_markerNames']['add'](_0x287781);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44b3fd=>this['_model']['markers']['get'](_0x44b3fd))['filter'](_0x3dbd1c=>_0x3dbd1c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x524e91=>{for(const _0x50df30 of this['getMarkers']())_0x524e91['removeMarker'](_0x50df30);}),this['_markerNames']['clear']();}['removeMarker'](_0x5f2b3f){this['_model']['change'](_0xf4b16c=>{_0xf4b16c['removeMarker'](_0x5f2b3f);}),this['_markerNames']['delete'](_0x5f2b3f);}['addRange'](_0x2adb9f){const _0x3854eb='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x3854eb),this['_model']['change'](_0x2ba4b1=>{_0x2ba4b1['addMarker'](_0x3854eb,{'range':_0x2adb9f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x10ae84){for(const _0x1f6226 of this['getRanges']())if(_0x1f6226['isIntersecting'](_0x10ae84))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x30caf2=>_0x30caf2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5a01b7,_0x45f641)=>[..._0x5a01b7,..._0x45f641['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x651c6f=this['getRanges']();if(0x1!=_0x651c6f['length'])return null;const _0x272ebe=_0x651c6f[0x0],_0x48c4db=_0x272ebe['start']['nodeAfter'],_0x30c24b=_0x272ebe['end']['nodeBefore'];return _0x48c4db instanceof _0x417559?_0x48c4db!=_0x30c24b?null:_0x48c4db:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x2faa8f=[];let _0x4c9366=this['head'];for(;_0x4c9366;)_0x2faa8f['push'](_0x4c9366),_0x4c9366=_0x4c9366['next'];return _0x2faa8f;}['setAttribute'](_0x4b7f96,_0x30b5f0){const _0x3b04cf=_0x1bbeb3(this['attributes']);_0x1a9a6c(_0x3b04cf,_0x4b7f96,_0x30b5f0),_0x5cf543(_0x3b04cf,this['attributes'])||(this['attributes']=_0x3b04cf,this['_onAttributesChange'](_0x3b04cf));}['removeAttribute'](_0x16549e){const _0x185630=_0x1bbeb3(this['attributes']);_0x68555b(_0x185630,_0x16549e),_0x5cf543(_0x185630,this['attributes'])||(this['attributes']=_0x185630,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x668662()['substr'](0x1,0x5);}}function o(_0x285eaf,_0x2a5699,_0x4d82e4){const _0x447bf7=_0x285eaf['t'],t=_0x285eaf['t'];switch(_0x2a5699){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x4d82e4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4d82e4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4d82e4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4d82e4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4d82e4);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x4d82e4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4d82e4);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4d82e4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4d82e4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4d82e4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4d82e4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4d82e4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4d82e4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4d82e4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4d82e4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4d82e4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4d82e4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4d82e4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4d82e4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4d82e4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4d82e4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4d82e4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4d82e4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4d82e4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4d82e4);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x4d82e4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4d82e4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4d82e4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4d82e4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4d82e4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4d82e4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4d82e4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4d82e4);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x4d82e4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4d82e4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4d82e4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4d82e4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4d82e4);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4d82e4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4d82e4);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x4d82e4);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4d82e4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4d82e4);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x4d82e4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4d82e4);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x4d82e4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4d82e4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4d82e4);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x4d82e4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4d82e4);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x447bf7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4d82e4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x447bf7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4d82e4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4d82e4);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x4d82e4);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x4d82e4);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x4d82e4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2a5699;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x514e6b,_0x5f395a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x514e6b,this['_locale']=_0x5f395a;}['getDescriptions'](_0x1f24a6){const _0x1472c7=[],_0x2dd313=new Set(),_0x15c1f7=new Set();for(let _0x274e98=0x0;_0x274e98<_0x1f24a6['length'];_0x274e98++){const _0x426441=_0x1f24a6[_0x274e98];if(!_0x426441['isInContent'])continue;const _0x3d5c87=this['_handleCustomCallbackDescription'](_0x426441);if(_0x3d5c87){if(null!=_0x426441['subType']){if(_0x2dd313['has'](_0x426441['subType']))continue;_0x2dd313['add'](_0x426441['subType']);}_0x1472c7['push'](_0x3d5c87);}else{if('attribute'==_0x426441['type']){const _0x4eecd5=_0x426441['data']['key'];if(_0x15c1f7['has'](_0x4eecd5))continue;_0x15c1f7['add'](_0x426441['data']['key']),_0x4eecd5==m?this['_handleRenameSuggestionDescription'](_0x1472c7,_0x426441):this['_handleAttributeSuggestionDescription'](_0x1472c7,_0x426441);continue;}'insertion'!=_0x426441['type']&&'deletion'!=_0x426441['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1472c7,_0x426441,_0x1f24a6[_0x274e98+0x1]);}}return this['_resolveDescriptionItems'](_0x1472c7);}['registerDescriptionCallback'](_0x59004a){this['_customCallbacks']['push'](_0x59004a);}['registerElementLabel'](_0x1bcb26,_0x2e92ce,_0x71e2f4=_0x48e2dc['normal']){'function'==typeof _0x1bcb26?_0x980704(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1bcb26,'label':_0x2e92ce,'priority':_0x71e2f4}):this['_itemLabels']['set'](_0x1bcb26,_0x2e92ce);}['registerAttributeLabel'](_0x1bde0c,_0x2f6354){this['_attributeLabels']['set'](_0x1bde0c,_0x2f6354);}['getItemLabel'](_0x1d3367,_0x5eea73=0x1){let _0x4cef81;for(const _0x512c54 of this['_itemLabelsCallbacks'])if(_0x512c54['matchingCallback'](_0x1d3367)){_0x4cef81=_0x512c54['label'];break;}return _0x4cef81||(_0x4cef81=this['_itemLabels']['get'](_0x1d3367['name'])),_0x4cef81?_0x4cef81(_0x5eea73):0x1!==_0x5eea73?_0x5eea73+'\x20'+_0x1d3367['name']+'s':''+_0x1d3367['name'];}['_addDescriptionItems'](_0x3c679a,_0x2920ab){const _0x553aa4=_0x2920ab['getFirstRange']()['getWalker'](),_0x4889b6='insertion'==_0x2920ab['type']?'add':'remove';for(const _0x48b73f of _0x553aa4){const _0x2d51c6=_0x48b73f['item'],_0x50d55=_0x3c679a[_0x3c679a['length']-0x1];if(_0x2d51c6['is']('$textProxy'))_0x50d55&&_0x50d55['type']['indexOf']('Container')>-0x1&&_0x3c679a['pop'](),_0x50d55&&'text'==_0x50d55['type']?_0x50d55[_0x4889b6]+=_0x2d51c6['data']:_0x3c679a['push']({'type':'text','add':'add'==_0x4889b6?_0x2d51c6['data']:'','remove':'remove'==_0x4889b6?_0x2d51c6['data']:''});else{if(this['_schema']['isObject'](_0x2d51c6)){const _0xd11b53=_0x2d51c6;if(_0x50d55&&_0x50d55['type']['indexOf']('Container')>-0x1&&_0x3c679a['pop'](),'elementEnd'==_0x48b73f['type'])continue;_0x50d55&&_0x50d55['type']==_0x4889b6+'Object'&&_0x50d55['element']['name']==_0xd11b53['name']?_0x50d55['quantity']++:_0x3c679a['push']({'type':_0x4889b6+'Object','element':_0xd11b53,'quantity':0x1}),_0x553aa4['skip'](_0x417d03=>!('elementEnd'==_0x417d03['type']&&_0x417d03['item']==_0x2d51c6));}else{if(this['_schema']['checkChild'](_0x2d51c6,'$text')||_0x2d51c6['is']('element','softBreak')){const _0x28a6f6=_0x2d51c6;if('add'==_0x4889b6&&'elementStart'==_0x48b73f['type']||'remove'==_0x4889b6&&'elementEnd'==_0x48b73f['type'])continue;if(_0x50d55&&-0x1==_0x50d55['type']['indexOf']('Container')){'text'==_0x50d55['type']&&(_0x50d55[_0x4889b6]+='\x0a');continue;}let _0x34ba4c;if(_0x34ba4c='add'==_0x4889b6?_0x28a6f6['nextSibling']&&!this['_schema']['isObject'](_0x28a6f6['nextSibling'])?_0x28a6f6['nextSibling']:null:_0x28a6f6['previousSibling']&&!this['_schema']['isObject'](_0x28a6f6['previousSibling'])?_0x28a6f6['previousSibling']:null,_0x28a6f6['isEmpty']||_0x34ba4c&&_0x34ba4c['isEmpty']){const _0x19d7bc=_0x34ba4c&&_0x34ba4c['isEmpty']?_0x34ba4c:_0x28a6f6;_0x50d55&&_0x50d55['type']==_0x4889b6+'EmptyContainer'&&_0x50d55['element']['name']==_0x19d7bc['name']?_0x50d55['quantity']++:_0x3c679a['push']({'type':_0x4889b6+'EmptyContainer','element':_0x19d7bc,'quantity':0x1});}else _0x3c679a['push']({'type':_0x4889b6+'Container','element':_0x28a6f6});}}}}}['_resolveDescriptionItems'](_0x5675bc){const _0x224b41=this['_locale'],_0x4ea2f6=[],_0x2c1fa4=[],_0xbd5807=[];for(const _0x1e1dc9 of _0x5675bc)switch(_0x1e1dc9['type']){case'text':if(_0x1e1dc9['add']=_0x1e1dc9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1e1dc9['remove']=_0x1e1dc9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1e1dc9['add']&&''!=_0x1e1dc9['remove']){_0x4ea2f6['push']({'type':'replace','content':o(_0x224b41,'REPLACE_TEXT',['\x22'+_0x1e1dc9['remove']+'\x22','\x22'+_0x1e1dc9['add']+'\x22'])});continue;}if(null!=_0x1e1dc9['add']['match'](/^ +$/)){_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Insert:*\x20%0',o(_0x224b41,'ELEMENT_SPACE',_0x1e1dc9['add']['length']))});continue;}if(null!=_0x1e1dc9['remove']['match'](/^ +$/)){_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Remove:*\x20%0',o(_0x224b41,'ELEMENT_SPACE',_0x1e1dc9['remove']['length']))});continue;}if(''!=_0x1e1dc9['add']){_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Insert:*\x20%0','\x22'+_0x1e1dc9['add']+'\x22')});continue;}_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Remove:*\x20%0','\x22'+_0x1e1dc9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Insert:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Remove:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'addContainer':_0x4ea2f6['push']({'type':'insertion','content':o(_0x224b41,'*Split:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'removeContainer':_0x4ea2f6['push']({'type':'deletion','content':o(_0x224b41,'*Merge:*\x20%0',this['getItemLabel'](_0x1e1dc9['element'],_0x1e1dc9['quantity']))});continue;case'addFormat':_0x2c1fa4['push'](_0x1e1dc9['key']);continue;case'removeFormat':_0xbd5807['push'](_0x1e1dc9['key']);continue;default:_0x4ea2f6['push'](_0x1e1dc9);}if(_0x2c1fa4['length']){const _0x26b56c=_0x2c1fa4['map'](_0x53a2ee=>this['_attributeLabels']['has'](_0x53a2ee)?this['_attributeLabels']['get'](_0x53a2ee):_0x53a2ee)['join'](',\x20');_0x4ea2f6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x26b56c)});}if(_0xbd5807['length']){const _0x21d75c=_0xbd5807['map'](_0x29a90b=>this['_attributeLabels']['has'](_0x29a90b)?this['_attributeLabels']['get'](_0x29a90b):_0x29a90b)['join'](',\x20');_0x4ea2f6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x21d75c)});}return _0x4ea2f6;}['_handleCustomCallbackDescription'](_0x3fedd0){for(const _0x23d0fa of this['_customCallbacks']){const _0x592960=_0x23d0fa(_0x3fedd0);if(_0x592960&&'type'in _0x592960)return _0x592960;}}['_handleAttributeSuggestionDescription'](_0x14f651,_0x5e0fa2){const _0xa2e580=_0x5e0fa2['data'],_0x5ebf5b=void 0x0===_0xa2e580['newValue']?'removeFormat':'addFormat';_0x14f651['push']({'type':_0x5ebf5b,'key':_0xa2e580['key']});}['_handleRenameSuggestionDescription'](_0x139e10,_0x3baa5a){_0x139e10['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3baa5a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x59628c,_0x2c8790,_0x97bfbb){if(this['_addDescriptionItems'](_0x59628c,_0x2c8790),_0x97bfbb&&_0x97bfbb['getFirstRange']()&&!_0x2c8790['getFirstRange']()['end']['isEqual'](_0x97bfbb['getFirstRange']()['start'])){const _0x4ffe9d=_0x59628c[_0x59628c['length']-0x1],_0x50a53e='insertion'==_0x2c8790['type']?'add':'remove';_0x4ffe9d&&'text'==_0x4ffe9d['type']&&(_0x4ffe9d[_0x50a53e]+='\x0a');}}}class V extends _0x1ac4a7{['afterInit'](){const _0x46d901=this['editor'],_0x1559e1=_0x46d901['plugins']['get']('TrackChangesEditing');_0x46d901['commands']['get']('showAIAssistant')&&_0x1559e1['enableCommand']('showAIAssistant');}}class F extends _0x1ac4a7{['afterInit'](){const _0x509b53=this['editor'],_0x30055d=_0x509b53['plugins']['get']('TrackChangesEditing');_0x509b53['commands']['get']('toggleAi')&&_0x30055d['enableCommand']('toggleAi');}}class G extends _0x1ac4a7{['afterInit'](){const _0x16998a=this['editor'],_0x32b835=_0x16998a['locale'];if(!_0x16998a['plugins']['has']('AlignmentEditing'))return;const _0x3cb2e4=_0x16998a['plugins']['get']('TrackChangesEditing');_0x3cb2e4['enableDefaultAttributesIntegration']('alignment'),_0x3cb2e4['registerBlockAttribute']('alignment'),_0x3cb2e4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x32b835,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c88f9=this['editor'],_0x4e2196=_0x3c88f9['locale'];_0x3c88f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x388726=>{if('formatBlock'!=_0x388726['type'])return;const {data:_0x2689fb}=_0x388726;if(_0x2689fb&&'alignment'==_0x2689fb['commandName']){const _0x476f25=_0x2689fb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e2196,'*Format:*\x20%0',function(_0x1da8e3){switch(_0x1da8e3){case'left':return o(_0x4e2196,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e2196,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e2196,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e2196,'FORMAT_JUSTIFY_TEXT');}}(_0x476f25))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x1ac4a7{['afterInit'](){const _0x37f4be=this['editor'],_0x55c860=_0x37f4be['plugins']['get']('TrackChangesEditing'),_0x14b651=_0x37f4be['locale'];for(const _0x5d672e of ti){if(!_0x37f4be['plugins']['has'](_0x5d672e))continue;const _0x365028=_0x5d672e['slice'](0x0,-0x7)['toLowerCase'](),_0x380478='FORMAT_'+_0x365028['toUpperCase']();_0x55c860['enableDefaultAttributesIntegration'](_0x365028),_0x55c860['registerInlineAttribute'](_0x365028),_0x55c860['descriptionFactory']['registerAttributeLabel'](_0x365028,o(_0x14b651,_0x380478));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2394ac=this['editor'],_0x323b69=_0x2394ac['locale'],_0x1a4b7a=_0x2394ac['plugins']['get']('TrackChangesEditing');function _0x1eda43(_0x55ac4e,_0xe11597){_0x1a4b7a['descriptionFactory']['registerDescriptionCallback'](_0x2a95f9=>{if('formatInline'!=_0x2a95f9['type'])return;const {data:_0x2d0afb}=_0x2a95f9;return _0x2d0afb&&_0x2d0afb['commandName']===_0x55ac4e?_0x2d0afb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x323b69,'*Format:*\x20%0',_0xe11597)}:{'type':'format','content':o(_0x323b69,'*Remove\x20format:*\x20%0',_0xe11597)}:void 0x0;});}_0x1eda43('bold',o(_0x323b69,'FORMAT_BOLD')),_0x1eda43('italic',o(_0x323b69,'FORMAT_ITALIC')),_0x1eda43('underline',o(_0x323b69,'FORMAT_UNDERLINE')),_0x1eda43('code',o(_0x323b69,'FORMAT_CODE')),_0x1eda43('strikethrough',o(_0x323b69,'FORMAT_STRIKETHROUGH')),_0x1eda43('subscript',o(_0x323b69,'FORMAT_SUBSCRIPT')),_0x1eda43('superscript',o(_0x323b69,'FORMAT_SUPERSCRIPT'));}}class J extends _0x1ac4a7{['afterInit'](){const _0x167ca0=this['editor'],_0x2ec094=_0x167ca0['locale'];if(!_0x167ca0['plugins']['has']('BlockQuoteEditing'))return;const _0x3513ea=_0x167ca0['plugins']['get']('TrackChangesEditing'),_0x47f207=this['editor']['commands']['get']('blockQuote');_0x3513ea['enableCommand']('blockQuote',(_0x2d8a65,_0x1774d6={})=>{const _0x4bbd59=this['editor']['model']['document']['selection'],_0x18996d=_0x1774d6&&void 0x0!==_0x1774d6['forceValue']?_0x1774d6['forceValue']:!_0x47f207['value'];let _0x571c7b=[];if(_0x18996d){const _0x271e3c=Array['from'](_0x4bbd59['getSelectedBlocks']())['filter'](_0x1bc2ee=>oo(_0x1bc2ee)||function(_0x420a77,_0x31b226){const _0x1b4338=_0x31b226['checkChild'](_0x420a77['parent'],'blockQuote'),_0x48fe0e=_0x31b226['checkChild'](['$root','blockQuote'],_0x420a77);return _0x1b4338&&_0x48fe0e;}(_0x1bc2ee,this['editor']['model']['schema']));_0x571c7b=to(_0x271e3c,_0x167ca0['model']);}else{const _0x434241=Array['from'](_0x4bbd59['getSelectedBlocks']())['filter'](_0x30f0f6=>oo(_0x30f0f6));_0x571c7b=to(_0x434241,_0x167ca0['model']);}_0x167ca0['model']['change'](()=>{for(const _0x37249a of _0x571c7b)_0x3513ea['markBlockFormat'](_0x37249a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x18996d}]});});}),_0x3513ea['descriptionFactory']['registerDescriptionCallback'](_0x4daea9=>{const {data:_0x4b75a4}=_0x4daea9;if(_0x4b75a4&&'blockQuote'==_0x4b75a4['commandName']){const _0x1e7070=o(_0x2ec094,'ELEMENT_BLOCK_QUOTE');return _0x4b75a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ec094,'*Set\x20format:*\x20%0',_0x1e7070)}:{'type':'format','content':o(_0x2ec094,'*Remove\x20format:*\x20%0',_0x1e7070)};}});}}function oo(_0x3cb230){return'blockQuote'==_0x3cb230['parent']['name'];}class K extends _0x1ac4a7{['afterInit'](){const _0x43b573=this['editor'],_0x2920ce=_0x43b573['locale'],_0x3d1f04=_0x43b573['plugins']['get']('TrackChangesEditing');_0x43b573['plugins']['has']('BookmarkEditing')&&(_0x3d1f04['enableCommand']('insertBookmark'),_0x3d1f04['enableDefaultAttributesIntegration']('updateBookmark'),_0x3d1f04['registerBlockAttribute']('bookmarkId'),_0x3d1f04['descriptionFactory']['registerDescriptionCallback'](_0x3ef1bb=>{if('insertion'!=_0x3ef1bb['type']&&'deletion'!=_0x3ef1bb['type']&&'attribute'!=_0x3ef1bb['type'])return;const _0x3013b4=_0x3ef1bb['getContainedElement']();if(null==_0x3013b4)return;if(!_0x3013b4['is']('element','bookmark'))return;const _0x3a9839=_0x3013b4['getAttribute']('bookmarkId');if('insertion'==_0x3ef1bb['type'])return{'type':'insertion','content':o(_0x2920ce,'*Insert:*\x20%0','\x22'+_0x3a9839+'\x22\x20'+o(_0x2920ce,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3ef1bb['type'])return{'type':'deletion','content':o(_0x2920ce,'*Remove:*\x20%0','\x22'+_0x3a9839+'\x22\x20'+o(_0x2920ce,'ELEMENT_BOOKMARK'))};const {data:_0x24440b}=_0x3ef1bb;if(!_0x24440b||'bookmarkId'!=_0x24440b['key'])return;return{'type':'format','content':o(_0x2920ce,'*Set\x20bookmark:*\x20%0','\x22'+_0x24440b['newValue']+'\x22')};}));}}class H extends _0x1ac4a7{['afterInit'](){const _0x2ca29d=this['editor'];_0x2ca29d['plugins']['has']('CaseChange')&&(_0x2ca29d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2ca29d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2ca29d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x1ac4a7{['afterInit'](){const _0x18e1f7=this['editor'];_0x18e1f7['commands']['get']('ckbox')&&_0x18e1f7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x1ac4a7{['afterInit'](){const _0x1a1225=this['editor'];if(!_0x1a1225['plugins']['has']('CodeBlock'))return;const _0x1f3ad6=_0x1a1225['plugins']['get']('TrackChangesEditing'),_0x18d2b7=_0x1a1225['locale'],_0x1bdde3=_0x1a1225['config']['get']('codeBlock')['languages'],_0x12f063=_0x1a1225['commands']['get']('codeBlock');_0x1f3ad6['enableCommand']('indentCodeBlock'),_0x1f3ad6['enableCommand']('outdentCodeBlock'),_0x1f3ad6['enableCommand']('codeBlock',(_0xc0f0ae,_0x418e7c={})=>{const _0x5bcb96=_0x1a1225['model'],_0x4ea802=_0x1a1225['model']['document']['selection'],_0x2d3c5f=_0x418e7c&&void 0x0!==_0x418e7c['forceValue']?_0x418e7c['forceValue']:!_0x12f063['value'];let _0x54fffe;_0x418e7c['language']||(_0x418e7c['language']=_0x1bdde3[0x0]['language']),_0x54fffe=_0x2d3c5f?Array['from'](_0x4ea802['getSelectedBlocks']())['filter'](_0x149641=>co(_0x149641)||function(_0x336c5c,_0x3a8920){if(_0x336c5c['is']('rootElement')||_0x3a8920['isLimit'](_0x336c5c))return!0x1;return _0x3a8920['checkChild'](_0x336c5c['parent'],'codeBlock');}(_0x149641,_0x5bcb96['schema'])):Array['from'](_0x4ea802['getSelectedBlocks']())['filter'](_0x224d5b=>co(_0x224d5b));const _0x33e966=to(_0x54fffe,_0x5bcb96);_0x5bcb96['change'](()=>{for(const _0x322091 of _0x33e966)_0x1f3ad6['markBlockFormat'](_0x322091,{'commandName':'codeBlock','commandParams':[{..._0x418e7c,'forceValue':_0x2d3c5f}],'formatGroupId':'blockName'});});}),(_0x1f3ad6['descriptionFactory']['registerElementLabel']('codeBlock',_0x399883=>o(_0x18d2b7,'ELEMENT_CODE_BLOCK',_0x399883)),_0x1f3ad6['descriptionFactory']['registerDescriptionCallback'](_0x1a1ea9=>{if('formatBlock'!=_0x1a1ea9['type'])return;const _0x5d235c=_0x18d2b7['t'],{data:_0x118616}=_0x1a1ea9;if(!_0x118616||'codeBlock'!=_0x118616['commandName'])return;const _0x5ca45f=_0x118616['commandParams'][0x0]['language'],_0x512455=_0x5d235c(_0x1bdde3['find'](_0x27d964=>_0x27d964['language']===_0x5ca45f)['label'])['toLowerCase']();return _0x118616['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18d2b7,'*Set\x20format:*\x20%0',o(_0x18d2b7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x512455+')')}:{'type':'format','content':o(_0x18d2b7,'*Remove\x20format:*\x20%0',o(_0x18d2b7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x49462a){return'codeBlock'==_0x49462a['name'];}class z extends _0x1ac4a7{['afterInit'](){const _0x38be04=this['editor'];if(!_0x38be04['plugins']['has']('CommentsEditing'))return;_0x38be04['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4932fc,_0x1e116b,_0xb1e68c){const _0x27292c=[];for(const _0x4f4366 of _0x1e116b['getItems']())_0x4f4366['hasAttribute'](_0x4932fc)&&_0x27292c['push'](_0xb1e68c['createRangeOn'](_0x4f4366));return _0x27292c;}function Ge(_0x49a61e,_0x403060,{showActiveMarker:_0xcdf3f7=!0x0}={}){const _0x2e964a=_0x49a61e['plugins']['get']('TrackChangesEditing');return(_0x1aed0b,_0x136560,_0x14983d)=>{if(!_0x14983d['consumable']['test'](_0x136560['markerRange'],_0x1aed0b['name']))return;const _0x231c92=_0x136560['markerRange']['getWalker'](),_0x5b886b=_0x136560['markerRange']['start'],_0x3781b3=_0x49a61e['model']['schema'];let _0x4faeb3=null,_0x2800cf=null,_0x13fd53=!0x1,_0x16e578=!0x1;for(const _0x5df4a3 of _0x231c92){const _0x13ad89=_0x5df4a3['item'];_0x13fd53=_0x13fd53||_0x3781b3['isContent'](_0x13ad89);const _0x14afda=_0x14983d['mapper']['toViewElement'](_0x13ad89);if(_0x14afda&&_0x14afda['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5df4a3['type']&&(_0x3781b3['isBlock'](_0x13ad89)&&!_0x3781b3['isLimit'](_0x13ad89)&&(_0x13ad89['nextSibling']||_0x5b886b['isAtEnd']?_0x4faeb3&&_0x4faeb3['parent']==_0x13ad89||(_0x4faeb3=_0x13ad89,_0x74056f(_0x5df4a3['previousPosition']),_0x16e578=!0x0):_0x2800cf=_0x2800cf||_0x5df4a3['previousPosition']));}function _0x74056f(_0x3b901e){const {id:_0x2816d9,authorId:_0x198f13}=_0x2e964a['_splitMarkerName'](_0x136560['markerName']),_0xed4547=_0x14983d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x403060,'data-suggestion':_0x2816d9,'data-author-id':_0x198f13}),_0x14eaa1=_0x14983d['mapper']['toViewPosition'](_0x3b901e);_0xcdf3f7&&_0x2e964a['activeMarkers']['includes'](_0x136560['markerName'])&&_0x14983d['writer']['addClass']('ck-suggestion-marker--active',_0xed4547),_0x14983d['writer']['insert'](_0x14eaa1,_0xed4547),_0x14983d['mapper']['bindElementToMarker'](_0xed4547,_0x136560['markerName']);}_0x13fd53||_0x16e578||!_0x2800cf||_0x74056f(_0x2800cf);};}class Q extends _0x1ac4a7{static get['requires'](){return[_0x99ba60];}['init'](){const _0x45266d=this['editor'],_0x580715=_0x45266d['plugins']['get']('TrackChangesEditing');_0x580715['enableCommand']('delete');const _0x20e804=_0x45266d['commands']['get']('deleteForward');_0x580715['enableCommand']('deleteForward',(_0x45620b,_0x8b4d31={})=>{const _0x37c151=_0x45266d['model']['createSelection'](_0x45266d['model']['document']['selection']);_0x37c151['isCollapsed']&&_0x45266d['model']['modifySelection'](_0x37c151,{'direction':'forward','unit':_0x8b4d31['unit']});const _0x3ebe18=_0x37c151['getFirstRange'](),_0x1fdcb8=_0x2fe235['fromRange'](_0x3ebe18);let _0x2617d6;_0x45620b(_0x8b4d31),_0x2617d6='$graveyard'==_0x1fdcb8['root']['rootName']?_0x45266d['model']['createRange'](_0x3ebe18['start']):_0x45266d['model']['createRange'](_0x1fdcb8['start'],_0x1fdcb8['end']),_0x1fdcb8['detach'](),_0x45266d['model']['enqueueChange'](_0x20e804['buffer']['batch'],_0xc43cf8=>{_0x20e804['buffer']['lock'](),_0xc43cf8['setSelection'](_0xc43cf8['createRange'](_0x2617d6['end'])),_0x20e804['buffer']['unlock']();});}),_0x45266d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x45266d,'merge'),{'priority':'high'}),_0x45266d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x20f98f,_0x40ebbe,_0x413a91)=>{_0x413a91['options']['showSuggestionHighlights']&&Ge(_0x45266d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x20f98f,_0x40ebbe,_0x413a91);},{'priority':'high'}),_0x45266d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2e6eaa,_0x361fa9,_0x31f402)=>{const _0x36a493=_0x31f402['mapper']['markerNameToElements'](_0x361fa9['markerName']);if(_0x36a493){for(const _0x501c49 of _0x36a493)_0x501c49['is']('uiElement')&&(_0x31f402['mapper']['unbindElementFromMarkerName'](_0x501c49,_0x361fa9['markerName']),_0x31f402['writer']['remove'](_0x501c49));}},{'priority':'high'});}}class X extends _0x1ac4a7{['afterInit'](){const _0x10eba0=this['editor'];if(!_0x10eba0['plugins']['has']('ListEditing'))return;const _0xa8237d=_0x10eba0['locale'],_0x269079=_0x10eba0['plugins']['get']('TrackChangesEditing'),_0xbdcb9b=_0x10eba0['plugins']['has']('TodoListEditing'),_0x808812=!!_0x10eba0['config']['get']('list.multiBlock');function _0x148cf8(_0x437559){return{'type':'format','content':''+o(_0xa8237d,'*Set\x20format:*\x20%0',_0x437559)};}function _0x376c63(_0x3acf56){return{'type':'format','content':''+o(_0xa8237d,'*Remove\x20format:*\x20%0',_0x3acf56)};}_0x269079['enableDefaultAttributesIntegration']('numberedList'),_0x269079['enableDefaultAttributesIntegration']('bulletedList'),_0x269079['enableDefaultAttributesIntegration']('customNumberedList'),_0x269079['enableDefaultAttributesIntegration']('customBulletedList'),_0x269079['enableDefaultAttributesIntegration']('indentList'),_0x269079['enableDefaultAttributesIntegration']('outdentList'),_0x269079['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x269079['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x269079['registerBlockAttribute']('listItemId'),_0x269079['registerBlockAttribute']('listType'),_0x269079['registerBlockAttribute']('listIndent'),_0x808812&&(_0x269079['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x269079['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xbdcb9b&&(_0x269079['enableDefaultAttributesIntegration']('todoList'),_0x269079['enableDefaultAttributesIntegration']('checkTodoList'),_0x269079['registerBlockAttribute']('todoListChecked'),_0x269079['descriptionFactory']['registerDescriptionCallback'](_0x1d1f34=>{const {data:_0x47d184}=_0x1d1f34;if(_0x47d184&&'todoListChecked'==_0x47d184['key'])return{'type':'format','content':_0x47d184['newValue']?o(_0xa8237d,'*Check\x20item*'):o(_0xa8237d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x8ca2ca=>{if(_0x8ca2ca['batch']['isUndo'])return!0x1;let _0x1a1e35=!0x1;const _0x19c9d5=_0x269079['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19f6f6=>'todoListChecked'===_0x269079['_getAttributeKey'](_0x19f6f6));for(const _0x35aeb3 of _0x19c9d5){'todo'!=_0x35aeb3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x269079['_findSuggestions'](_0x35aeb3['getFirstRange'](),'attribute')['find'](_0x2ef4b8=>'listType'===_0x269079['_getAttributeKey'](_0x2ef4b8['suggestion']))||(_0x8ca2ca['removeMarker'](_0x35aeb3['getFirstMarker']()),_0x1a1e35=!0x0));}return _0x1a1e35;})),_0x269079['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xa8237d,'FORMAT_INDENT'));const _0x3ba21c={'type':'format','content':''};_0x269079['descriptionFactory']['registerDescriptionCallback'](_0x4192ce=>{const {data:_0x198d36}=_0x4192ce;if(!_0x198d36||'listType'!=_0x198d36['key'])return;let _0x293491=_0x4192ce['head'];for(;_0x293491;){if(_0x293491['data']&&(('listStyle'==_0x293491['data']['key']||'listMarkerStyle'==_0x293491['data']['key'])&&(_0x293491['data']['newValue']&&'default'!=_0x293491['data']['newValue']||'default'!=_0x293491['data']['oldValue']&&!_0x198d36['newValue'])||!_0x808812&&_0x293491['data']['key']==m))return _0x3ba21c;_0x293491=_0x293491['next'];}if(null==_0x198d36['newValue'])switch(_0x198d36['oldValue']){case'bulleted':return _0x376c63(o(_0xa8237d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x376c63(o(_0xa8237d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x376c63(o(_0xa8237d,'ELEMENT_TODO_LIST'));}switch(_0x198d36['newValue']){case'bulleted':return _0x148cf8(o(_0xa8237d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x148cf8(o(_0xa8237d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x148cf8(o(_0xa8237d,'ELEMENT_TODO_LIST'));}}),_0x269079['descriptionFactory']['registerDescriptionCallback'](_0xd4e3e4=>{const {data:_0x31ee4a}=_0xd4e3e4;if(_0x31ee4a&&'listIndent'==_0x31ee4a['key'])return null==_0x31ee4a['newValue']||null==_0x31ee4a['oldValue']&&0x0==_0x31ee4a['newValue']?_0x3ba21c:void 0x0;}),_0x269079['descriptionFactory']['registerDescriptionCallback'](_0x27eef9=>{if('attribute'!=_0x27eef9['type'])return;const {data:_0x1eeb8d}=_0x27eef9;if(!_0x1eeb8d||'listItemId'!=_0x1eeb8d['key'])return;const _0x4054bf=Be(_0x27eef9);return'newValue'==_0x4054bf?{'type':'format','content':o(_0xa8237d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4054bf?{'type':'format','content':o(_0xa8237d,'*Split:*\x20list\x20item')}:_0x3ba21c;}),_0x10eba0['model']['document']['registerPostFixer'](_0xff6032=>this['listItemIdFixer'](_0xff6032)),_0x10eba0['model']['document']['registerPostFixer'](_0x74e196=>this['noTrackChangesFixer'](_0x74e196)),_0x10eba0['model']['document']['on']('change:data',(_0x2fedcf,_0x42f2f3)=>{if(_0x42f2f3['isUndo']||!_0x42f2f3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x198696){if(_0x198696['batch']['isUndo']||!_0x198696['batch']['isLocal'])return!0x1;let _0x377f24=!0x1;const _0x5a0bb2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9119e1=>_0x9119e1['data']&&'listItemId'==_0x9119e1['data']['key'])['filter'](_0xca2033=>_0xca2033['data']['newValue']&&_0xca2033['data']['oldValue']);for(const _0x37af4c of _0x5a0bb2)Be(_0x37af4c)||(_0x198696['removeMarker'](_0x37af4c['getFirstMarker']()),_0x377f24=!0x0);return _0x377f24;}['noTrackChangesFixer'](_0x1bf6ca){if(_0x1bf6ca['batch']['isUndo']||!_0x1bf6ca['batch']['isLocal'])return!0x1;const _0x3d98b3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3d98b3['trackChangesCommand']['value'])return!0x1;let _0x136716=!0x1;const _0x24b711=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4b91d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4373fe=>'attribute'==_0x4373fe['type'])['filter'](_0x1bb4ac=>_0x24b711['includes'](_0x1bb4ac['attributeKey']));if(0x0==_0x4b91d1['length'])return _0x136716;for(const _0x2c49de of _0x4b91d1){const _0x4244b5=_0x3d98b3['_findSuggestions'](_0x2c49de['range'],'attribute')['filter'](_0x36cb1a=>!_0x36cb1a['meta']['isNextTo'])['map'](_0x13ed28=>_0x13ed28['suggestion'])['filter'](_0x92305c=>{const _0x717073=_0x3d98b3['_getAttributeKey'](_0x92305c);return _0x24b711['includes'](_0x717073);});if(_0x4244b5['length']){for(const _0x21ab0b of _0x4244b5)_0x1bf6ca['removeMarker'](_0x21ab0b['getFirstMarker']());_0x136716=!0x0;}}return _0x136716;}['assureChains'](){const _0x596159=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e28de=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32fd94;const _0x37b177=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3eef93=>{if(_0x3eef93['data']['oldRange']||!_0x3eef93['data']['newRange'])return null;if(!_0x3eef93['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3fbd7a}=_0x596159['_splitMarkerName'](_0x3eef93['name']);if(!_0x596159['hasSuggestion'](_0x3fbd7a))return null;const _0x39b956=_0x596159['getSuggestion'](_0x3fbd7a);return _0x3e28de['includes'](_0x39b956['data']['key']);})['map'](_0x28b3f7=>{const {id:_0x33a685}=_0x596159['_splitMarkerName'](_0x28b3f7['name']),_0x342c32=_0x596159['getSuggestion'](_0x33a685);return _0x32fd94=_0x342c32['attributes']['groupId'],_0x342c32['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x37b177['size'])return;const _0x4a4524=_0x596159['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf90122=>'attribute'==_0xf90122['type']&&_0xf90122['data']&&_0x3e28de['includes'](_0xf90122['data']['key'])&&_0xf90122['attributes']['groupId']!=_0x32fd94)['map'](_0x2ba8da=>({'listItem':_0x2ba8da['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2ba8da['attributes']['groupId']})),_0x454ac8=new Set();for(const {groupId:_0x5eac06,listItem:_0x1f3912}of _0x4a4524)_0x37b177['has'](_0x1f3912)&&_0x454ac8['add'](_0x5eac06);for(const _0x240c42 of _0x596159['getSuggestions']())_0x454ac8['has'](_0x240c42['attributes']['groupId'])&&_0x240c42['setAttribute']('groupId',_0x32fd94);}['_supportLegacySuggestions'](){const _0x74f80a=this['editor'],_0x60b008=_0x74f80a['locale'],_0x1a2d89=_0x74f80a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a2d89['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3e12c9,_0x7c66fb){const _0x4d9317=[];for(let _0x4e54d8 of _0x3e12c9)_0x4e54d8['start']['nodeAfter']===_0x4e54d8['end']['parent']&&(_0x4e54d8=_0x74f80a['model']['createRange'](_0x74f80a['model']['createPositionAt'](_0x4e54d8['start']['nodeAfter'],0x0))),_0x4d9317['push'](_0x4e54d8);_0x74f80a['model']['change'](_0x4f314e=>{const _0x3e69e1=_0x74f80a['model']['document']['selection'],_0x2cd0c5=Array['from'](_0x3e69e1['getRanges']())['map'](_0x39c7f7=>_0x2fe235['fromRange'](_0x39c7f7));_0x4f314e['setSelection'](_0x4d9317),_0x74f80a['commands']['get'](_0x7c66fb['commandName'])['refresh'](),_0x7c66fb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x74f80a['execute'](_0x7c66fb['commandName'],..._0x7c66fb['commandParams']),_0x4f314e['setSelection'](_0x2cd0c5);for(const _0x1c3337 of _0x2cd0c5)_0x1c3337['detach']();});}),_0x1a2d89['descriptionFactory']['registerElementLabel'](function(_0x59efa8){const _0x3539da=!_0x74f80a['model']['schema']['isObject'](_0x59efa8),_0x1decc1=_0x59efa8['previousSibling'],_0x28523f=_0x59efa8['nextSibling'],_0x44bc1d=_0x59efa8['getAttribute']('listItemId'),_0x5c1a6d=!_0x1decc1||_0x1decc1['getAttribute']('listItemId')!==_0x44bc1d,_0x3d17d1=!_0x28523f||_0x28523f['getAttribute']('listItemId')!==_0x44bc1d;return _0x3539da&&Boolean(_0x44bc1d)&&_0x5c1a6d&&_0x3d17d1;},_0x5b7427=>o(_0x60b008,'ELEMENT_LIST_ITEM',_0x5b7427));}['_registerLegacyDescription'](){const _0x2cde9c=this['editor'],_0x593e34=_0x2cde9c['locale'];function _0x2b9bfe(_0x5a480c){const _0x360371=_0x2cde9c['commands']['get']('bulletedList')['value'],_0x2e2a29=_0x2cde9c['commands']['get']('numberedList')['value'];return'numberedList'===_0x5a480c?_0x360371:_0x2e2a29;}_0x2cde9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x589f74){if('formatBlock'!=_0x589f74['type'])return;const {data:_0x507cbd}=_0x589f74;if(!_0x507cbd)return;let _0x46429f,_0x736b2e,_0x10954e,_0x1c8f16;switch(_0x507cbd['commandName']){case'bulletedList':_0x10954e=_0x507cbd['commandParams'][0x0]['forceValue'],_0x1c8f16=_0x2b9bfe(_0x507cbd['commandName']),_0x46429f=_0x10954e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c8f16&&_0x2cde9c['config']['get']('list.multiBlock')||(_0x46429f='*Change\x20to:*\x20%0'),_0x736b2e={'type':'format','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x10954e=_0x507cbd['commandParams'][0x0]['forceValue'],_0x1c8f16=_0x2b9bfe(_0x507cbd['commandName']),_0x46429f=_0x10954e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c8f16&&_0x2cde9c['config']['get']('list.multiBlock')||(_0x46429f='*Change\x20to:*\x20%0'),_0x736b2e={'type':'format','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x46429f='*Indent:*\x20%0',_0x736b2e={'type':'format','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x46429f=function(_0x2b8b68){const _0x47e0f5=_0x2b8b68['getFirstRange']();let _0x16ff01=_0x47e0f5['start']['nodeAfter'];for(;_0x16ff01&&_0x47e0f5['containsItem'](_0x16ff01);){if(_0x16ff01['getAttribute']('listIndent')>0x0)return!0x1;_0x16ff01=_0x16ff01['nextSibling'];}return!0x0;}(_0x589f74)?o(_0x593e34,'*Format:*\x20remove\x20from\x20%0',o(_0x593e34,function(_0x574fb2){return'ELEMENT_'+_0x574fb2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x589f74))):o(_0x593e34,'*Outdent:*\x20%0',o(_0x593e34,'ELEMENT_LIST_ITEM')),_0x736b2e={'type':'format','content':_0x46429f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x507cbd['multipleBlocks']&&(_0x46429f='*Merge:*\x20%0',_0x736b2e={'type':'deletion','content':o(_0x593e34,_0x46429f,o(_0x593e34,'ELEMENT_LIST_ITEM'))});}return _0x736b2e;});}}function Be(_0x2b2312){let _0x512044=_0x2b2312['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x512044;){const _0x396a2c=_0x512044['getAttribute']('listItemId');if(!_0x396a2c)return!0x1;if(_0x396a2c==_0x2b2312['data']['newValue'])return'newValue';if(_0x396a2c==_0x2b2312['data']['oldValue'])return'oldValue';_0x512044=_0x512044['previousSibling'];}return!0x1;}class Y extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2084cc=this['editor']['config']['get']('list.properties'),_0x58fbf7=this['editor']['plugins']['get']('TrackChangesEditing');_0x2084cc['styles']&&(_0x58fbf7['enableDefaultAttributesIntegration']('listStyle'),_0x58fbf7['registerBlockAttribute']('listStyle')),_0x2084cc['reversed']&&(_0x58fbf7['enableDefaultAttributesIntegration']('listReversed'),_0x58fbf7['registerBlockAttribute']('listReversed')),_0x2084cc['startIndex']&&(_0x58fbf7['enableDefaultAttributesIntegration']('listStart'),_0x58fbf7['registerBlockAttribute']('listStart'));const _0x216d71={'type':'format','content':''};_0x58fbf7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xe0f0dc=this['editor']['locale'];_0x58fbf7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xe0f0dc,'FORMAT_LIST_REVERSED')),_0x58fbf7['descriptionFactory']['registerDescriptionCallback'](_0x504caa=>{const {data:_0x4c02ba}=_0x504caa;if(_0x4c02ba&&'listReversed'==_0x4c02ba['key'])return null==_0x4c02ba['newValue']||0x0==_0x4c02ba['newValue']&&null==_0x4c02ba['oldValue']?_0x216d71:void 0x0;}),_0x58fbf7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xe0f0dc,'FORMAT_LIST_START')),_0x58fbf7['descriptionFactory']['registerDescriptionCallback'](_0x3f9f75=>{const {data:_0x3695ab}=_0x3f9f75;if(_0x3695ab&&'listStart'==_0x3695ab['key'])return null==_0x3695ab['newValue']||0x1==_0x3695ab['newValue']&&null==_0x3695ab['oldValue']?_0x216d71:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5511ed=>{if(_0x5511ed['batch']['isUndo'])return!0x1;let _0x25ff86=!0x1;const _0x587a98=_0x58fbf7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21bf69=>{const _0x13615a=_0x58fbf7['_getAttributeKey'](_0x21bf69);return'listStart'==_0x13615a||'listReversed'==_0x13615a;});for(const _0x166467 of _0x587a98){const _0x167a00=_0x166467['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x167a00||'customNumbered'==_0x167a00)continue;_0x58fbf7['_findSuggestions'](_0x166467['getFirstRange'](),'attribute')['find'](_0x367949=>'listType'==_0x58fbf7['_getAttributeKey'](_0x367949['suggestion']))||(_0x5511ed['removeMarker'](_0x166467['getFirstMarker']()),_0x25ff86=!0x0);}return _0x25ff86;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5e6cc8){const _0xf9f78e=this['editor']['locale'],{data:_0x3bf121}=_0x5e6cc8,_0x28c7f0={'type':'format','content':''};if(!_0x3bf121||'listStyle'!=_0x3bf121['key'])return;if(!_0x3bf121['oldValue'])return'default'==_0x3bf121['newValue']?_0x28c7f0:{'type':'format','content':''+o(_0xf9f78e,'*Set\x20format:*\x20%0',o(_0xf9f78e,this['_getTranslationKeyForListStyle'](_0x3bf121['newValue'])))};if(!_0x3bf121['newValue']){if('default'==_0x3bf121['oldValue'])return _0x28c7f0;let _0x15c2ab=_0x5e6cc8['head'];for(;_0x15c2ab;){if(_0x15c2ab['data']&&'listType'==_0x15c2ab['data']['key']&&_0x15c2ab['data']['newValue'])return _0x28c7f0;_0x15c2ab=_0x15c2ab['next'];}return{'type':'format','content':''+o(_0xf9f78e,'*Remove\x20format:*\x20%0',o(_0xf9f78e,this['_getTranslationKeyForListStyle'](_0x3bf121['oldValue'])))};}if('default'!=_0x3bf121['newValue'])return{'type':'format','content':''+o(_0xf9f78e,'*Set\x20format:*\x20%0',o(_0xf9f78e,this['_getTranslationKeyForListStyle'](_0x3bf121['newValue'])))};let _0xb75dbe=_0x5e6cc8['head'];for(;_0xb75dbe;){if(_0xb75dbe['data']&&'listType'==_0xb75dbe['data']['key']&&_0xb75dbe['data']['newValue']&&_0xb75dbe['data']['oldValue'])return _0x28c7f0;_0xb75dbe=_0xb75dbe['next'];}return{'type':'format','content':o(_0xf9f78e,'*Set\x20format:*\x20%0',o(_0xf9f78e,'ELEMENT_'+_0x5e6cc8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3580a5=this['editor'],_0x1219de=_0x3580a5['locale'];_0x3580a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30b928=>{if('formatBlock'!=_0x30b928['type'])return;const {data:_0x10377d}=_0x30b928;if(!_0x10377d)return;let _0xfd5ef4,_0x15aacb;switch(_0x10377d['commandName']){case'listStyle':_0xfd5ef4='*Change\x20to:*\x20%0',_0x15aacb={'type':'format','content':o(_0x1219de,_0xfd5ef4,o(_0x1219de,this['_getTranslationKeyForListStyle'](_0x10377d['commandParams'][0x0]['type'])))};break;case'listReversed':_0xfd5ef4=_0x10377d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x15aacb={'type':'format','content':o(_0x1219de,_0xfd5ef4)};break;case'listStart':_0xfd5ef4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x15aacb={'type':'format','content':o(_0x1219de,_0xfd5ef4,_0x10377d['commandParams'][0x0]['startIndex'])};}return _0x15aacb;});}['_getTranslationKeyForListStyle'](_0x348f11){return'ELEMENT_'+function(_0x901c39){if(Re['includes'](_0x901c39))return'bulleted';if(Ae['includes'](_0x901c39))return'numbered';return null;}(_0x348f11)['toUpperCase']()+'_LIST_'+_0x348f11['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Ae=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Z extends _0x1ac4a7{['afterInit'](){const _0x3b2f13=this['editor'];_0x3b2f13['commands']['get']('emoji')&&_0x3b2f13['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x1ac4a7{static get['requires'](){return[_0x2ee569];}['init'](){const _0xe1aa0=this['editor'],_0x51aaf1=_0xe1aa0['plugins']['get']('TrackChangesEditing'),_0x3fe3d6=_0xe1aa0['commands']['get']('enter');_0x51aaf1['enableCommand']('enter',()=>{_0xe1aa0['model']['change'](_0x1d309b=>{const _0x437063=_0xe1aa0['model']['document']['selection'],_0x4cea73=_0x437063['getFirstPosition'](),_0xdd6dc5=_0x2fe235['fromRange'](_0x437063['getFirstRange']());if(_0x3fe3d6['enterBlock'](_0x1d309b)){const _0x4dfb16=_0xe1aa0['model']['createPositionAt'](_0x4cea73['parent']['nextSibling'],0x0),_0x7a9791=_0x1d309b['createRange'](_0x4cea73,_0x4dfb16);_0x51aaf1['markInsertion'](_0x7a9791);}else _0x1d309b['setSelection'](_0x1d309b['createRange'](_0xdd6dc5['end']));_0xdd6dc5['detach'](),_0x3fe3d6['fire']('afterExecute',{'writer':_0x1d309b});});}),_0xe1aa0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0xe1aa0,'split'),{'priority':'high'}),_0xe1aa0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5611f8,_0x43ed05,_0xa57df7)=>{const _0x216449=_0xa57df7['mapper']['markerNameToElements'](_0x43ed05['markerName']);if(_0x216449){for(const _0x1730c1 of _0x216449)_0x1730c1['hasClass']('ck-suggestion-marker-split')&&(_0xa57df7['mapper']['unbindElementFromMarkerName'](_0x1730c1,_0x43ed05['markerName']),_0xa57df7['writer']['remove'](_0x1730c1));}},{'priority':'high'}),_0xe1aa0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e8fe0,_0xa198ff,_0x20a3f7)=>{_0x20a3f7['options']['showSuggestionHighlights']&&Ge(_0xe1aa0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4e8fe0,_0xa198ff,_0x20a3f7);},{'priority':'high'});}}class et extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1e49c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e49c5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1e49c5['enableCommand']('findNext'),_0x1e49c5['enableCommand']('findPrevious'),_0x1e49c5['enableCommand']('replace'),_0x1e49c5['enableCommand']('replaceAll');}['handleFindCommand'](_0x426708,_0x221859,_0x471bef={}){const _0x1346fd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x426708(_0x2a30f0=>{let _0x3421a6=('string'==typeof _0x221859?_0x1346fd['findByTextCallback'](_0x221859,_0x471bef):_0x221859)(_0x2a30f0);Array['isArray'](_0x3421a6)&&(_0x3421a6={'results':_0x3421a6,'searchText':'string'==typeof _0x221859?_0x221859:''});const _0x30c4ec=_0x3421a6['results']['filter'](_0x514dde=>!0x1===this['_isInDeletionRange'](_0x514dde,_0x2a30f0['item']));return{..._0x3421a6,'results':_0x30c4ec};},_0x471bef);}['_isInDeletionRange'](_0x5cacdf,_0x16be18){const _0x20a635=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x16be18,_0x5cacdf['start']),this['editor']['model']['createPositionAt'](_0x16be18,_0x5cacdf['end']));for(const _0x1928e6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x20a635['getIntersection'](_0x1928e6['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x1ac4a7{['afterInit'](){const _0x45aba1=this['editor']['locale'],_0x5d85b3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3e979f,commandName:_0x1a0bea}of eo)this['editor']['plugins']['has'](_0x3e979f)&&(_0x5d85b3['enableDefaultAttributesIntegration'](_0x1a0bea),_0x5d85b3['registerInlineAttribute'](_0x1a0bea));_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x45aba1,'FORMAT_FONT_SIZE')),_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x45aba1,'FORMAT_FONT_FAMILY')),_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x45aba1,'FORMAT_FONT_COLOR')),_0x5d85b3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x45aba1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9f62=this['editor'],_0x1625aa=_0x4d9f62['locale'];_0x4d9f62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a500a=>{const _0x4ab503=_0x1625aa['t'];if('formatInline'!=_0x2a500a['type'])return;const {data:_0x5cb4a1}=_0x2a500a;if(null!=_0x5cb4a1){if('fontSize'==_0x5cb4a1['commandName']){const _0x1f7d5d=_0x5cb4a1['commandParams'][0x0]['value'];if(_0x1f7d5d){const _0xaf801=_0x4ab503(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a8ace=>_0x1a8ace['model']==_0x1f7d5d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20size:*\x20%0',_0xaf801)};}return{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5cb4a1['commandName']){const _0x237935=_0x5cb4a1['commandParams'][0x0]['value'];return _0x237935?{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20family:*\x20%0',_0x237935)}:{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5cb4a1['commandName']){const _0x5a2019=_0x5cb4a1['commandParams'][0x0]['value'];if(_0x5a2019){const _0x2f0174=_0x512aab(this['editor']['config']['get']('fontColor.colors'))['find'](_0x24e7fd=>_0x24e7fd['model']==_0x5a2019);let _0x2d1a0f=_0x5a2019,_0x4c9ca1='';return _0x2f0174&&(_0x2d1a0f=_0x2f0174['label'],_0x4c9ca1=_0x4ab503(_0x2d1a0f)['toLowerCase']()),{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20color:*\x20%0',_0x4c9ca1)['trim'](),'color':{'value':_0x5a2019,'title':_0x4c9ca1||_0x2d1a0f}};}return{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5cb4a1['commandName']){const _0x9134db=_0x5cb4a1['commandParams'][0x0]['value'];if(_0x9134db){const _0x3a60ca=_0x512aab(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2daabe=>_0x2daabe['model']==_0x9134db);let _0x463432=_0x9134db,_0x567bcc='';return _0x3a60ca&&(_0x463432=_0x3a60ca['label'],_0x567bcc=_0x4ab503(_0x463432)['toLowerCase']()),{'type':'format','content':o(_0x1625aa,'*Set\x20font\x20background\x20color:*\x20%0',_0x567bcc)['trim'](),'color':{'value':_0x9134db,'title':_0x567bcc||_0x463432}};}return{'type':'format','content':o(_0x1625aa,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x1ac4a7{['afterInit'](){const _0x4b4a09=this['editor'],_0x30b054=_0x4b4a09['plugins']['get']('TrackChangesEditing'),_0xaab919=_0x4b4a09['commands']['get']('copyFormat'),_0x563e8f=_0x4b4a09['commands']['get']('pasteFormat');_0xaab919&&_0x563e8f&&(_0x30b054['enableDefaultAttributesIntegration']('pasteFormat'),_0x30b054['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5907ed=this['editor'],_0x158535=_0x5907ed['locale'];_0x5907ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32cc13=>{if('formatBlock'!=_0x32cc13['type']&&'formatInline'!=_0x32cc13['type'])return;const {data:_0x4ea44c}=_0x32cc13;if(_0x4ea44c&&'pasteFormat'===_0x4ea44c['commandName']){const _0x2bc55f=[],_0x57b45e=_0x4ea44c['commandParams'][0x0];for(const [_0x125e1d,_0x367fc7]of Object['entries'](_0x57b45e))_0x2bc55f['push'](ro(_0x5907ed,_0x125e1d,_0x367fc7));return _0x2bc55f['length']?{'type':'format','content':o(_0x158535,'*Set\x20format\x20to:*\x20%0',_0x2bc55f['join'](',\x20'))}:{'type':'format','content':o(_0x158535,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5be66e,_0x536289,_0x469b9c){const _0x3b142c=_0x5be66e['locale']['t'],_0x5d4550=_0x536289['split'](/(?=[A-Z])/)['join']('\x20'),_0x5ce1aa=_0x3b142c(_0x5d4550['charAt'](0x0)['toUpperCase']()+_0x5d4550['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x469b9c)return _0x5ce1aa;if('fontColor'===_0x536289||'fontBackgroundColor'===_0x536289){const _0x2bcd7f=_0x512aab(_0x5be66e['config']['get']('fontColor.colors'))['find'](_0x4c6b7e=>_0x4c6b7e['model']==_0x469b9c);return _0x5ce1aa+'\x20('+(_0x2bcd7f?_0x3b142c(_0x2bcd7f['label'])['toLowerCase']():_0x469b9c)+')';}if('fontSize'===_0x536289&&isNaN(parseFloat(_0x469b9c))){const _0x41f267=_0x5be66e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5be66e['config']['get']('fontSize.options'))['find'](_0x402eaa=>_0x402eaa['model']==_0x469b9c);return _0x5ce1aa+'\x20('+(_0x41f267?_0x3b142c(_0x41f267['title'])['toLowerCase']():_0x469b9c)+')';}return _0x5ce1aa+'\x20('+_0x469b9c+')';}class st extends _0x1ac4a7{['_headingOptions'];['afterInit'](){const _0x24cc9e=this['editor'];if(!_0x24cc9e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x24cc9e['config']['get']('heading.options');const _0x5b1dbc=_0x24cc9e['locale'],_0x214479=_0x24cc9e['plugins']['get']('TrackChangesEditing');_0x214479['enableDefaultAttributesIntegration']('heading');for(const _0x1ba67f of this['_headingOptions'])'paragraph'!=_0x1ba67f['model']&&_0x214479['descriptionFactory']['registerElementLabel'](_0x1ba67f['model'],_0x27b384=>{const _0x4d08a3=this['_getHeadingLevel'](_0x1ba67f['model']);return null!==_0x4d08a3?_0x19955e(_0x27b384,_0x4d08a3):_0xb8e27a(_0x27b384,_0x1ba67f['title']);});function _0x19955e(_0x497b86,_0x1ca70d){return o(_0x5b1dbc,'ELEMENT_HEADING',[_0x497b86,_0x1ca70d]);}function _0xb8e27a(_0x1d55e7,_0x26f49a){return o(_0x5b1dbc,'ELEMENT_HEADING_CUSTOM',[_0x1d55e7,_0x26f49a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11c341=this['editor'],_0x40d1d8=_0x11c341['locale'];function _0x1241cb(_0x1ec92f,_0x13d661){return o(_0x40d1d8,'ELEMENT_HEADING_CUSTOM',[_0x1ec92f,_0x13d661]);}_0x11c341['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bfc3=>{if('formatBlock'!=_0x1bfc3['type'])return;const {data:_0x27e956}=_0x1bfc3;if(_0x27e956&&'heading'==_0x27e956['commandName']){const _0x4a43ef=_0x27e956['commandParams'][0x0]['value'],_0x1815bf=this['_getHeadingLevel'](_0x4a43ef);if(null!==_0x1815bf)return{'type':'format','content':o(_0x40d1d8,'*Change\x20to:*\x20%0',(_0xad6a76=0x1,_0x3454d8=_0x1815bf,o(_0x40d1d8,'ELEMENT_HEADING',[_0xad6a76,_0x3454d8])))};const _0x411a59=this['_headingOptions']['find'](_0x7da950=>_0x7da950['model']===_0x4a43ef)['title'];return{'type':'format','content':o(_0x40d1d8,'*Change\x20to:*\x20%0',_0x1241cb(0x1,_0x411a59))};}var _0xad6a76,_0x3454d8;});}['_getHeadingLevel'](_0x288c14){const _0x1bd822=_0x288c14['match'](/^heading(\d+)/);if(_0x1bd822)return _0x1bd822[0x1];const _0xa85738=this['_headingOptions']?.['find'](_0x3a6dc5=>_0x3a6dc5['model']==_0x288c14);if(_0xa85738&&_0xa85738['view']){const _0x424ad3=_0xa85738['view'],_0x588a6e=(_0x424ad3['name']??_0x424ad3)['match'](/^h(\d+)/);if(_0x588a6e)return _0x588a6e[0x1];}return null;}}class ot extends _0x1ac4a7{['afterInit'](){const _0x152a86=this['editor'];if(!_0x152a86['plugins']['has']('HighlightEditing'))return;const _0x21357f=_0x152a86['plugins']['get']('TrackChangesEditing'),_0x5ad92c=_0x152a86['locale'];_0x21357f['enableDefaultAttributesIntegration']('highlight'),_0x21357f['registerInlineAttribute']('highlight'),_0x21357f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5ad92c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47bc83=this['editor'],_0x3af3b0=_0x47bc83['locale'];_0x47bc83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29040a=>{if('formatInline'!=_0x29040a['type'])return;const {data:_0x59c312}=_0x29040a;if(_0x59c312&&'highlight'==_0x59c312['commandName']){const _0x1fcc63=_0x3af3b0['t'],_0x38e239=_0x59c312['commandParams'][0x0]['value'];if(_0x38e239){const _0x5c8af6=_0x47bc83['config']['get']('highlight.options')['find'](_0x3f1f44=>_0x3f1f44['model']==_0x38e239),_0x46cd3b=_0x1fcc63(_0x5c8af6['title'])['toLowerCase']();return{'type':'format','content':o(_0x3af3b0,'*Set\x20highlight:*\x20%0',_0x46cd3b),'color':{'value':_0x5c8af6['color'],'title':_0x5c8af6['title']}};}return{'type':'format','content':o(_0x3af3b0,'*Remove\x20highlight*',o(_0x3af3b0,'FORMAT_HIGHLIGHT'))};}});}}class rt extends _0x1ac4a7{['afterInit'](){const _0x1c4bb6=this['editor'];if(!_0x1c4bb6['plugins']['has']('HorizontalLineEditing'))return;_0x1c4bb6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x246500=_0x1c4bb6['plugins']['get']('TrackChangesEditing'),_0x22c422=_0x1c4bb6['locale'];_0x246500['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2b32ae=>o(_0x22c422,'ELEMENT_HORIZONTAL_LINE',_0x2b32ae)),_0x1c4bb6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x49c80d,{writer:_0x345d6d,options:_0x3cdb5d})=>{if(!_0x3cdb5d['showSuggestionHighlights'])return null;const _0x2f6306=_0x345d6d['createContainerElement']('div'),_0x42c1ce=_0x345d6d['createEmptyElement']('hr');return _0x345d6d['addClass']('ck-horizontal-line',_0x2f6306),_0x345d6d['insert'](_0x345d6d['createPositionAt'](_0x2f6306,0x0),_0x42c1ce),_0x2f6306;},'converterPriority':'high'});}}class at extends _0x1ac4a7{['afterInit'](){const _0x415b79=this['editor'];if(!_0x415b79['plugins']['has']('HtmlEmbed'))return;const _0xfbc762=_0x415b79['plugins']['get']('TrackChangesEditing'),_0x2df80b=_0x415b79['locale'];_0xfbc762['descriptionFactory']['registerElementLabel']('rawHtml',_0x13214a=>o(_0x2df80b,'ELEMENT_HTML_EMBED',_0x13214a)),_0xfbc762['enableDefaultAttributesIntegration']('htmlEmbed'),_0xfbc762['registerBlockAttribute']('value'),_0xfbc762['descriptionFactory']['registerDescriptionCallback'](_0x36a7c6=>{if('attribute'!=_0x36a7c6['type'])return;const {data:_0x9c24c8}=_0x36a7c6;if(_0x9c24c8&&'value'==_0x9c24c8['key']&&_0x36a7c6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3aeee6=o(_0x2df80b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2df80b,'*Change\x20%0\x20content*',_0x3aeee6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ea4cc=this['editor'],_0x237223=_0x1ea4cc['locale'];_0x1ea4cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x546f34=>{if('formatBlock'!=_0x546f34['type'])return;const {data:_0x5517b6}=_0x546f34;if(_0x5517b6&&'htmlEmbed'==_0x5517b6['commandName']){const _0x2bf826=o(_0x237223,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x237223,'*Change\x20%0\x20content*',_0x2bf826)};}});}}class ct extends _0x1ac4a7{['afterInit'](){const _0x1b8ce6=this['editor'];if(!_0x1b8ce6['plugins']['has']('ImageEditing'))return;const _0x1a81d7=_0x1b8ce6['plugins']['get']('TrackChangesEditing'),_0x289677=_0x1b8ce6['plugins']['get']('ImageUtils'),_0x27e14c=_0x1b8ce6['locale'];_0x1a81d7['enableCommand']('insertImage'),_0x1a81d7['descriptionFactory']['registerElementLabel']('imageBlock',_0x56d82c=>o(_0x27e14c,'ELEMENT_IMAGE',_0x56d82c)),_0x1a81d7['descriptionFactory']['registerElementLabel']('imageInline',_0x59ba69=>o(_0x27e14c,'ELEMENT_INLINE_IMAGE',_0x59ba69)),_0x1a81d7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x27e14c,'ELEMENT_CAPTION')),_0x1b8ce6['plugins']['has']('ImageUploadEditing')&&_0x1a81d7['enableCommand']('uploadImage'),_0x1b8ce6['plugins']['has']('ImageBlockEditing')&&_0x1b8ce6['plugins']['has']('ImageInlineEditing')&&(_0x1a81d7['enableCommand']('imageTypeInline',(_0x599455,_0x1a6d63)=>{const _0x35ea7c=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']);_0x1b8ce6['model']['change'](()=>{_0x1a81d7['markBlockFormat'](_0x35ea7c,{'commandName':'imageTypeInline','commandParams':[_0x1a6d63]},[],'convertBlockImageToInline');});}),_0x1a81d7['enableCommand']('imageTypeBlock',(_0x247ab,_0x3e8ed0)=>{_0x1b8ce6['model']['change'](_0x5d89db=>{let _0x461a12=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0x3e7798=_0x5d89db['createRangeOn'](_0x461a12);const _0x415e9e=_0x4f345c['fromPosition'](_0x3e7798['start'],'toPrevious'),_0x57c1fa=_0x4f345c['fromPosition'](_0x3e7798['end'],'toNext');_0x1a81d7['forceDefaultExecution'](()=>_0x247ab(_0x3e8ed0)),_0x461a12=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0x3e7798=_0x5d89db['createRangeOn'](_0x461a12);const _0x24e2f3=_0x5d89db['createRange'](_0x415e9e,_0x57c1fa);_0x415e9e['detach'](),_0x57c1fa['detach'](),_0x1a81d7['markBlockFormat'](_0x461a12,{'commandName':'imageTypeInline','commandParams':[_0x3e8ed0]},[],'convertInlineImageToBlock'),_0x24e2f3['start']['isBefore'](_0x3e7798['start'])&&_0x1a81d7['markInsertion'](_0x5d89db['createRange'](_0x24e2f3['start'],_0x3e7798['start']),'convertInlineImageToBlock'),_0x3e7798['end']['isBefore'](_0x24e2f3['end'])&&_0x1a81d7['markInsertion'](_0x5d89db['createRange'](_0x3e7798['end'],_0x24e2f3['end']),'convertInlineImageToBlock');});}),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1a81d7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2dd9ed])=>{const _0xe40ee8=_0x1a81d7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1503be=_0x2dd9ed['start'],_0x23e920=_0x2dd9ed['end'];const _0x46a6b7=_0x1b8ce6['model']['schema']['getNearestSelectionRange'](_0x1503be,'backward'),_0x4abb1a=_0x1b8ce6['model']['schema']['getNearestSelectionRange'](_0x23e920,'forward');_0x46a6b7['isCollapsed']&&(_0x1503be=_0x46a6b7['start']),_0x4abb1a['isCollapsed']&&(_0x23e920=_0x4abb1a['end']),_0xe40ee8([_0x1b8ce6['model']['createRange'](_0x1503be,_0x23e920)]);}),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f5d32),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f5d32)),_0x1b8ce6['plugins']['has']('ImageCaptionEditing')&&(_0x1a81d7['enableCommand']('toggleImageCaption',(_0x26c3bc,_0x5ecd23)=>{const _0x1a5721=_0x1b8ce6['plugins']['get']('ImageCaptionUtils');let _0x13946c=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0xdc3e73=_0x1a5721['getCaptionFromImageModelElement'](_0x13946c);_0x1b8ce6['model']['change'](()=>{if(_0xdc3e73)return void _0x1a81d7['markDeletion'](_0x1b8ce6['model']['createRangeOn'](_0xdc3e73));const _0x34e637=_0x289677['isBlockImage'](_0x13946c);_0x26c3bc(_0x5ecd23),_0x13946c=_0x289677['getClosestSelectedImageElement'](_0x1b8ce6['model']['document']['selection']),_0xdc3e73=_0x1a5721['getCaptionFromImageModelElement'](_0x13946c),_0x1a81d7['markInsertion'](_0x1b8ce6['model']['createRangeOn'](_0xdc3e73),_0x34e637?null:'imageCaption');});}),_0x1a81d7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f5d32));const _0x3f2025=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x38c663(_0x1fc8c2,_0x256f4c){const _0x48ca10=_0x3f2025['findIndex'](({type:_0x5636dc,subType:_0x47ad87})=>_0x1fc8c2['type']==_0x5636dc&&_0x1fc8c2['subType']==_0x47ad87),_0x305280=_0x3f2025['findIndex'](({type:_0xc46f0,subType:_0x3eb797})=>_0x256f4c['type']==_0xc46f0&&_0x256f4c['subType']==_0x3eb797);if(_0x48ca10<0x0||_0x305280<0x0)return!0x1;const _0x427ced=_0x1fc8c2['getFirstRange'](),_0x35b54e=_0x256f4c['getFirstRange']();if((0x0==_0x48ca10||0x1==_0x48ca10)&&0x2==_0x305280&&_0x427ced['isIntersecting'](_0x35b54e))return!0x0;if(0x2==_0x48ca10&&0x3==_0x305280){const _0x298d07=_0x1a81d7['_findSuggestions'](_0x427ced,'insertion')['filter'](({suggestion:_0x1863ac,meta:_0x48f013})=>_0x48f013['isOwn']&&'convertInlineImageToBlock'==_0x1863ac['subType']);if(_0x298d07['length']>0x1&&_0x35b54e['end']['isEqual'](_0x427ced['start']))return!0x0;if(0x1==_0x298d07['length']&&(_0x427ced['start']['isEqual'](_0x35b54e['end'])||_0x427ced['end']['isEqual'](_0x35b54e['start'])))return!0x0;}if(0x3==_0x48ca10&&0x3==_0x305280&&_0x427ced['start']['isBefore'](_0x35b54e['start'])){const _0x34ef62=_0x427ced['end']['nodeAfter'],_0x409493=_0x35b54e['start']['nodeBefore'];return _0x289677['isBlockImage'](_0x34ef62)&&_0x34ef62===_0x409493;}return!0x1;}function _0x2f5d32(_0x543551,_0x50c18d){return _0x38c663(_0x543551,_0x50c18d)?[_0x543551,_0x50c18d]:_0x38c663(_0x50c18d,_0x543551)?[_0x50c18d,_0x543551]:null;}_0x1b8ce6['plugins']['has']('ImageResize')&&(_0x1a81d7['enableDefaultAttributesIntegration']('resizeImage'),_0x1a81d7['registerBlockAttribute']('resizedWidth'),_0x1a81d7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x27e14c,'FORMAT_IMAGE_SIZE'))),_0x1b8ce6['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1a81d7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1a81d7['registerBlockAttribute']('alt')),_0x1b8ce6['plugins']['has']('PictureEditing')&&(_0x1a81d7['registerBlockAttribute']('sources'),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x448c21=>{if('attribute'!=_0x448c21['type'])return;const {data:_0x4d42e5}=_0x448c21;return _0x4d42e5&&'sources'==_0x4d42e5['key']?{'type':'format','content':''}:void 0x0;})),_0x1b8ce6['plugins']['has']('ImageSizeAttributes')&&(_0x1a81d7['registerBlockAttribute']('width'),_0x1a81d7['registerBlockAttribute']('height'),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x480ebd=>{if('attribute'!=_0x480ebd['type'])return;const {data:_0xdeb164}=_0x480ebd;return!_0xdeb164||'width'!=_0xdeb164['key']&&'height'!=_0xdeb164['key']?void 0x0:{'type':'format','content':''};})),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x967127=>{if(!!_0x3f2025['find'](({type:_0x2128d9,subType:_0x16f6e0})=>_0x967127['type']==_0x2128d9&&_0x967127['subType']==_0x16f6e0))return _0x967127['previous']?{}:void 0x0;}),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x2ce075=>{if('insertion'==_0x2ce075['type']||'deletion'==_0x2ce075['type']){const _0x4ecd66=_0x2ce075['getContainedElement']();if(_0x4ecd66&&_0x4ecd66['is']('element','caption'))return{'type':'insertion'==_0x2ce075['type']?'addObject':'removeObject','element':_0x4ecd66,'quantity':0x1};}}),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x123abd=>'formatBlock'==_0x123abd['type']&&'convertInlineImageToBlock'==_0x123abd['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x123abd['type']&&'convertBlockImageToInline'==_0x123abd['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1a81d7['descriptionFactory']['registerDescriptionCallback'](_0x1be3f4=>{if('attribute'!=_0x1be3f4['type'])return;const {data:_0x3b737f}=_0x1be3f4;if(!_0x3b737f||'alt'!=_0x3b737f['key'])return;const _0x36b44b=_0x3b737f['newValue'];return _0x36b44b?{'type':'format','content':o(_0x27e14c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36b44b+'\x22')}:{'type':'format','content':o(_0x27e14c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4725d5=this['editor'],_0x576de8=_0x4725d5['locale'];_0x4725d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ec77b=>{if('formatBlock'!=_0x1ec77b['type']&&'formatInline'!=_0x1ec77b['type'])return;const {data:_0x2499c1}=_0x1ec77b;if(_0x2499c1){if('imageTextAlternative'==_0x2499c1['commandName']){const _0xa9ff29=_0x2499c1['commandParams'][0x0]['newValue'];return _0xa9ff29?{'type':'format','content':o(_0x576de8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xa9ff29+'\x22')}:{'type':'format','content':o(_0x576de8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2499c1['commandName']){const _0x1b0ef3=_0x2499c1['commandParams'][0x0]['width'];return _0x1b0ef3?{'type':'format','content':o(_0x576de8,'*Set\x20image\x20width:*\x20%0',_0x1b0ef3)}:{'type':'format','content':o(_0x576de8,'*Reset\x20image\x20width*')};}}});}}class ut extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x246de7=this['editor']['locale'],_0x1d3f9e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d3f9e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1d3f9e['registerBlockAttribute']('src'),_0x1d3f9e['descriptionFactory']['registerDescriptionCallback'](_0x27bdd7=>{if('attribute'!=_0x27bdd7['type'])return;const {data:_0x5212bb}=_0x27bdd7;return _0x5212bb&&'src'==_0x5212bb['key']?_0x5212bb['newValue']&&_0x5212bb['oldValue']?{'type':'format','content':o(_0x246de7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30c252=this['editor']['plugins']['get']('TrackChangesEditing');_0x30c252['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x30c252['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30c252['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x30c252['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x965a14=this['editor'],_0x3560ad=_0x965a14['locale'];_0x965a14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x120b88=>{if('formatBlock'!=_0x120b88['type']&&'formatInline'!=_0x120b88['type'])return;const {data:_0x115dea}=_0x120b88;if(!_0x115dea||'replaceImageSource'!=_0x115dea['commandName'])return;return{'type':'format','content':o(_0x3560ad,'*Format:*\x20replace\x20image\x20URL')};});}}class ft extends _0x1ac4a7{['afterInit'](){const _0x5387e5=this['editor'];if(!_0x5387e5['plugins']['has']('ImageStyleEditing'))return;const _0x3a86fe=_0x5387e5['plugins']['get']('TrackChangesEditing'),_0x227e93=_0x5387e5['plugins']['get']('ImageUtils'),_0x5c35c8={};_0x3a86fe['enableCommand']('imageStyle',(_0x3d42ef,_0x3e4914)=>{const _0x21fbc1=_0x5387e5['plugins']['get']('Users')['me'],_0x28ca17=_0x5387e5['commands']['get']('imageStyle');let _0x226793=_0x227e93['getClosestSelectedImageElement'](_0x5387e5['model']['document']['selection']),_0x32adfa=_0x5387e5['model']['createRangeOn'](_0x226793),_0x2f5bf4=_0x28ca17['value'];if(_0x2f5bf4==_0x3e4914['value'])return;const _0x1428e4={'commandName':'imageStyle','commandParams':[_0x3e4914],'formatGroupId':_0x668662()};_0x5387e5['model']['change'](()=>{if(_0x3a86fe['getSuggestions']()['filter'](_0x5cbbd1=>_0x5cbbd1['isInContent']&&_0x21fbc1==_0x5cbbd1['author']&&('formatBlock'==_0x5cbbd1['type']||'formatInline'==_0x5cbbd1['type'])&&('imageStylePreApply'==_0x5cbbd1['subType']||'imageStylePostApply'==_0x5cbbd1['subType'])&&_0x5cbbd1['getFirstRange']()['isEqual'](_0x32adfa))['forEach'](_0x5f5b56=>_0x3a86fe['discardSuggestion'](_0x5f5b56['head'])),_0x226793=_0x227e93['getClosestSelectedImageElement'](_0x5387e5['model']['document']['selection']),_0x32adfa=_0x5387e5['model']['createRangeOn'](_0x226793),_0x28ca17['refresh'](),_0x5387e5['commands']['get']('imageTypeInline')['refresh'](),_0x5387e5['commands']['get']('imageTypeBlock')['refresh'](),_0x2f5bf4=_0x28ca17['value'],_0x2f5bf4!=_0x3e4914['value'])return _0x227e93['isInlineImage'](_0x226793)&&_0x28ca17['shouldConvertImageType'](_0x3e4914['value'],_0x226793)?(_0x3d42ef({..._0x3e4914,'setImageSizes':!0x1}),_0x226793=_0x227e93['getClosestSelectedImageElement'](_0x5387e5['model']['document']['selection']),void _0x3a86fe['markBlockFormat'](_0x226793,{..._0x1428e4,'commandReversedParams':[{'value':_0x2f5bf4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x227e93['isBlockImage'](_0x226793)?_0x3a86fe['markBlockFormat'](_0x226793,_0x1428e4,[],'imageStylePostApply'):_0x3a86fe['markInlineFormat'](_0x32adfa,_0x1428e4,'imageStylePostApply'));});});for(const _0x5bd1e5 of _0x5387e5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5c35c8[_0x5bd1e5['name']]=_0x5bd1e5['title']['toLowerCase']();_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x37bf93])=>{_0x227e93['setImageNaturalSizeAttributes'](_0x37bf93['getContainedElement']());}),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41d051,_0xea6cc4)=>{_0x3a86fe['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41d051,{'commandName':_0xea6cc4['commandName'],'commandParams':_0xea6cc4['commandReversedParams']});}),_0x3a86fe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xaa7dc,_0x5730a3){if(_0x36b3aa(_0xaa7dc,_0x5730a3))return[_0xaa7dc,_0x5730a3];if(_0x36b3aa(_0x5730a3,_0xaa7dc))return[_0x5730a3,_0xaa7dc];return null;});const _0x32eaeb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36b3aa(_0xd64505,_0xbe30e1){const _0x5247cc=_0x32eaeb['findIndex'](({type:_0x8c9070,subType:_0xe978c9})=>_0xd64505['type']==_0x8c9070&&_0xd64505['subType']==_0xe978c9),_0x10037d=_0x32eaeb['findIndex'](({type:_0x274637,subType:_0x5327cb})=>_0xbe30e1['type']==_0x274637&&_0xbe30e1['subType']==_0x5327cb);if(_0x5247cc<0x0||_0x10037d<0x0)return!0x1;const _0x1a8e92=_0xd64505['getFirstRange'](),_0x4be73c=_0xbe30e1['getFirstRange']();if((0x0==_0x5247cc||0x1==_0x5247cc)&&0x2==_0x10037d&&_0x1a8e92['isIntersecting'](_0x4be73c))return!0x0;if(0x2==_0x5247cc&&0x3==_0x10037d){const _0x57247e=_0x3a86fe['_findSuggestions'](_0x1a8e92,'insertion')['filter'](({suggestion:_0x477ade,meta:_0x3db08c})=>_0x3db08c['isOwn']&&'convertInlineImageToBlock'==_0x477ade['subType']);if(_0x57247e['length']>0x1&&_0x4be73c['end']['isEqual'](_0x1a8e92['start']))return!0x0;if(0x1==_0x57247e['length']&&(_0x1a8e92['start']['isEqual'](_0x4be73c['end'])||_0x1a8e92['end']['isEqual'](_0x4be73c['start'])))return!0x0;}if(0x3==_0x5247cc&&0x3==_0x10037d&&_0x1a8e92['start']['isBefore'](_0x4be73c['start'])){const _0x2e6a34=_0x1a8e92['end']['nodeAfter'],_0x179ce1=_0x4be73c['start']['nodeBefore'];return _0x227e93['isBlockImage'](_0x2e6a34)&&_0x2e6a34===_0x179ce1;}return!0x1;}_0x5387e5['model']['document']['registerPostFixer'](()=>{let _0x3e3517=!0x1;const _0x358efb=Array['from'](_0x5387e5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cd726,data:_0x28da07}of _0x358efb){const {group:_0x42059b,type:_0x23dcc2,subType:_0x28bbac,id:_0x568625}=_0x3a86fe['_splitMarkerName'](_0x3cd726);if('suggestion'==_0x42059b&&_0x3a86fe['hasSuggestion'](_0x568625)){if('formatBlock'==_0x23dcc2&&('imageStylePreApply'==_0x28bbac||'imageStylePostApply'==_0x28bbac)){const _0x155bf5=_0x3a86fe['getSuggestion'](_0x568625);if(_0x28da07['newRange']){const _0x22a987=_0x155bf5['getFirstRange']()['getContainedElement']();if(_0x227e93['isBlockImage'](_0x22a987))continue;_0x3a86fe['discardSuggestion'](_0x155bf5),_0x3e3517=!0x0;}}if('insertion'==_0x23dcc2&&'imageCaption'==_0x28bbac&&!_0x28da07['newRange']){const _0x30cef2=_0x3a86fe['getSuggestion'](_0x568625);_0x30cef2['next']&&_0x30cef2['next']['isInContent']&&(_0x3a86fe['discardSuggestion'](_0x30cef2['next']),_0x3e3517=!0x0);}}}return _0x3e3517;}),this['_registerLegacyDescription'](_0x5c35c8);}['_registerLegacyDescription'](_0x3e2e25){const _0x2a082c=this['editor'],_0x1c55e6=_0x2a082c['locale'];_0x2a082c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43e4b1=>{if('formatBlock'!=_0x43e4b1['type']&&'formatInline'!=_0x43e4b1['type'])return;const {data:_0x184530}=_0x43e4b1;if(!_0x184530||'imageStyle'!=_0x184530['commandName'])return;const _0x144b7d=_0x184530['commandParams'][0x0]['value'];return _0x2b204a('side'===_0x144b7d?o(_0x1c55e6,'FORMAT_SIDE_IMAGE'):_0x3e2e25[_0x144b7d]||_0x144b7d);function _0x2b204a(_0x4ab7dc){return{'type':'format','content':o(_0x1c55e6,'*Format:*\x20%0',_0x4ab7dc)};}});}}class ht extends _0x1ac4a7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x108e5b){super(_0x108e5b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3bcf5b=this['editor'],_0x458049=_0x3bcf5b['commands']['get']('importWord'),_0x5714b2=_0x3bcf5b['commands']['get']('trackChanges');_0x458049&&(_0x458049['on']('execute',(_0xe09a71,[,_0x5e5c9c])=>{this['_trackChangesValueDuringImport']=_0x5714b2['value'],_0x5e5c9c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x458049,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x458049,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5714b2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3bcf5b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x16817c,_0x52fad4){const {suggestions:_0x9f40e}=_0x52fad4,_0x1fe4ff=this['editor']['commands']['get']('trackChanges'),_0x25b764=_0x1fe4ff['value'];this['_trackChangesValueDuringImport']!==_0x25b764&&(_0x1fe4ff['execute'](),this['_trackChangesExecuted']=!0x0),_0x9f40e&&_0x9f40e['forEach'](({id:_0x3f9590,type:_0x354946,author:_0x5b5bff,created_at:_0x46c0e9})=>{const _0x21fa3e={'id':_0x3f9590,'type':_0x354946,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b5bff,'createdAt':_0x46c0e9?new Date(_0x46c0e9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x21fa3e);});}}class gt extends _0x1ac4a7{['afterInit'](){const _0x16eced=this['editor'],_0x239e06=_0x16eced['plugins']['get']('TrackChangesEditing');if(_0x16eced['plugins']['has']('IndentEditing')&&(_0x239e06['enableCommand']('indent'),_0x239e06['enableCommand']('outdent')),_0x16eced['plugins']['has']('IndentBlock')){for(const _0x342e54 of['indentBlock','outdentBlock'])_0x239e06['enableDefaultAttributesIntegration'](_0x342e54);}const _0x4ba247=_0x16eced['locale'];_0x239e06['registerBlockAttribute']('blockIndent'),_0x239e06['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4ba247,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3168c0=this['editor'],_0x4ffaa2=_0x3168c0['locale'],_0x5c26c1=_0x3168c0['plugins']['get']('TrackChangesEditing');_0x5c26c1['descriptionFactory']['registerDescriptionCallback'](_0x3932c7=>{if('formatBlock'!=_0x3932c7['type'])return;const {data:_0x4aced1}=_0x3932c7;if(!_0x4aced1)return;if('indentBlock'!=_0x4aced1['commandName']&&'outdentBlock'!=_0x4aced1['commandName'])return;const _0x1410f0=_0x3932c7['getItems']()[0x0],_0x1edfe4=_0x5c26c1['descriptionFactory']['getItemLabel'](_0x1410f0);return'indentBlock'==_0x4aced1['commandName']?{'type':'format','content':o(_0x4ffaa2,'*Indent:*\x20%0',_0x1edfe4)}:'outdentBlock'==_0x4aced1['commandName']?{'type':'format','content':o(_0x4ffaa2,'*Outdent:*\x20%0',_0x1edfe4)}:void 0x0;});}}class lt extends _0x1ac4a7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x1ac4a7{['afterInit'](){const _0x444bc7=this['editor'];if(!_0x444bc7['plugins']['has']('LinkEditing'))return;const _0x5d4e4d=_0x444bc7['plugins']['get']('TrackChangesEditing'),_0x1362dc=_0x444bc7['commands']['get']('link');_0x5d4e4d['enableDefaultAttributesIntegration']('link'),_0x5d4e4d['enableDefaultAttributesIntegration']('unlink'),_0x5d4e4d['registerInlineAttribute']('linkHref');for(const _0x364ed1 of _0x1362dc['manualDecorators'])_0x5d4e4d['registerInlineAttribute'](_0x364ed1['id']),_0x5d4e4d['descriptionFactory']['registerAttributeLabel'](_0x364ed1['id'],'link\x20('+_0x364ed1['label']['toLowerCase']()+')');_0x5d4e4d['descriptionFactory']['registerDescriptionCallback'](_0xb6aba5=>{if('attribute'!=_0xb6aba5['type'])return;const {data:_0x4716c7}=_0xb6aba5;if(!_0x4716c7||'linkHref'!=_0x4716c7['key'])return;const _0x402715=_0x4716c7['newValue'],_0x3bd343=_0x444bc7['locale'];return{'type':'format','content':null==_0x402715?o(_0x3bd343,'*Remove\x20link*'):o(_0x3bd343,'*Set\x20link:*\x20%0','\x22'+_0x402715+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e7f61=this['editor'],_0x1c0c69=_0x1e7f61['locale'];_0x1e7f61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e9ae9=>{if('formatInline'!=_0x5e9ae9['type'])return;const {data:_0x2e2d21}=_0x5e9ae9;if(_0x2e2d21){if('link'==_0x2e2d21['commandName']){const _0x63e7ef=_0x2e2d21['commandParams'][0x0];return{'type':'format','content':o(_0x1c0c69,'*Set\x20link:*\x20%0','\x22'+_0x63e7ef+'\x22')};}return'unlink'==_0x2e2d21['commandName']?{'type':'format','content':o(_0x1c0c69,'*Remove\x20link*')}:void 0x0;}});}}class mt extends _0x1ac4a7{['afterInit'](){const _0x8d56ec=this['editor'],_0x447127=_0x8d56ec['locale'];if(!_0x8d56ec['plugins']['has']('LegacyListEditing'))return;const _0x389601=_0x8d56ec['plugins']['get']('TrackChangesEditing'),_0x2cfcd2=_0x8d56ec['plugins']['has']('LegacyTodoListEditing');function _0xd49148(_0x1dc122){return()=>{const _0xa9ef5=_0x8d56ec['model']['document']['selection'],_0x547d86=_0x8d56ec['commands']['get'](_0x1dc122);if(_0x547d86['value'])return void _0x8d56ec['execute']('paragraph',{});const _0x37ec28=_0x1dc122['slice'](0x0,-0x4),_0x50d835=function(_0x2bb7b7,_0x550fb8,_0x43df37){let _0xc72dc2=Array['from'](_0x2bb7b7)['filter'](_0x27e126=>function(_0x6085f3,_0x4c8841){return _0x4c8841['checkChild'](_0x6085f3['parent'],'listItem')&&!_0x4c8841['isObject'](_0x6085f3);}(_0x27e126,_0x43df37));_0xc72dc2=_0xc72dc2['filter'](_0x468d35=>!_0x468d35['is']('element','listItem')||_0x468d35['getAttribute']('listType')!=_0x550fb8);const _0x2a1442=new Set();for(const _0x246b90 of _0xc72dc2)_0x246b90['is']('element','listItem')?_0x2a1442['add'](Ne(_0x246b90)):_0x2a1442['add'](_0x246b90);return Array['from'](_0x2a1442);}(_0xa9ef5['getSelectedBlocks'](),_0x37ec28,_0x8d56ec['model']['schema']);_0x8d56ec['model']['change'](()=>{for(const _0x34a3e2 of _0x50d835)_0x389601['markBlockFormat'](_0x34a3e2,{'commandName':_0x1dc122,'commandParams':[{'forceValue':!_0x547d86['value']}],'formatGroupId':'blockName'},Se(_0x34a3e2));});};}function _0x9b3bdb(_0x3273a7){return()=>{const _0xc20be6=function(_0x1a1405){let _0xf7a6be=Array['from'](_0x1a1405);const _0x4042d5=_0xf7a6be['findIndex'](_0x5bc20e=>'listItem'!=_0x5bc20e['name']);return _0x4042d5>-0x1&&(_0xf7a6be=_0xf7a6be['slice'](0x0,_0x4042d5)),_0xf7a6be;}(_0x8d56ec['model']['document']['selection']['getSelectedBlocks']()),_0x4d40db=_0x8d56ec['model']['createRange'](_0x8d56ec['model']['createPositionAt'](_0xc20be6[0x0],'before'),_0x8d56ec['model']['createPositionAt'](_0xc20be6[_0xc20be6['length']-0x1],'end'));_0x8d56ec['model']['change'](()=>{_0x389601['markBlockFormat'](_0x4d40db,{'commandName':_0x3273a7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x55d584){const _0x535a26=new Set();for(const _0x5b3ad1 of _0x55d584){let _0xcc4bc3=_0x5b3ad1['nextSibling'];for(;_0xcc4bc3&&_0xcc4bc3['getAttribute']('listIndent')>_0x5b3ad1['getAttribute']('listIndent');)_0x535a26['add'](_0xcc4bc3),_0xcc4bc3=_0xcc4bc3['nextSibling'];}return Array['from'](_0x535a26);}(_0xc20be6));});};}_0x389601['enableCommand']('numberedList',_0xd49148('numberedList')),_0x389601['enableCommand']('bulletedList',_0xd49148('bulletedList')),_0x2cfcd2&&_0x389601['enableCommand']('todoList',_0xd49148('todoList')),_0x389601['enableCommand']('indentList',_0x9b3bdb('indentList')),_0x389601['enableCommand']('outdentList',_0x9b3bdb('outdentList')),_0x2cfcd2&&_0x389601['enableCommand']('checkTodoList',()=>{const _0x47c8e4=_0x8d56ec['commands']['get']('checkTodoList'),_0x12d313=Array['from'](_0x47c8e4['_selectedElements']);_0x12d313['filter'](_0x399552=>_0x399552['getAttribute']('todoListChecked')!=_0x47c8e4['value']),_0x8d56ec['model']['change'](()=>{for(const _0x1de53b of _0x12d313)_0x389601['markBlockFormat'](_0x1de53b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47c8e4['value']}]});});}),_0x389601['descriptionFactory']['registerElementLabel']('listItem',_0x247983=>o(_0x447127,'ELEMENT_LIST_ITEM',_0x247983)),_0x389601['descriptionFactory']['registerDescriptionCallback'](_0x46ff0c=>{if('formatBlock'!=_0x46ff0c['type']&&'formatInline'!=_0x46ff0c['type'])return;const {data:_0x94fdb3}=_0x46ff0c;if(_0x94fdb3){if('numberedList'==_0x94fdb3['commandName']||'bulletedList'==_0x94fdb3['commandName']||'todoList'==_0x94fdb3['commandName'])switch(_0x94fdb3['commandName']['replace']('List','')){case'bulleted':return _0x45de63(o(_0x447127,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45de63(o(_0x447127,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45de63(o(_0x447127,'ELEMENT_TODO_LIST'));}if('indentList'==_0x94fdb3['commandName'])return{'type':'format','content':o(_0x447127,'*Indent:*\x20%0',o(_0x447127,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x94fdb3['commandName'])return{'type':'format','content':o(_0x447127,'*Outdent:*\x20%0',o(_0x447127,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x94fdb3['commandName'])return _0x94fdb3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x447127,'*Check\x20item*')}:{'type':'format','content':o(_0x447127,'*Uncheck\x20item*')};}function _0x45de63(_0x3d893c){return{'type':'format','content':o(_0x447127,'*Change\x20to:*\x20%0',_0x3d893c)};}});}}function Ne(_0x1edd3f){const _0x1b3f0b=_0x1edd3f['getAttribute']('listIndent');if(0x0==_0x1b3f0b)return _0x1edd3f;let _0x12d038=_0x1edd3f;for(;_0x1edd3f['previousSibling']&&_0x1edd3f['previousSibling']['is']('element','listItem');){const _0x3701c3=_0x1edd3f['previousSibling']['getAttribute']('listIndent');if(_0x3701c3==_0x1b3f0b)_0x12d038=_0x1edd3f['previousSibling'];else{if(_0x3701c3<_0x1b3f0b)break;}_0x1edd3f=_0x1edd3f['previousSibling'];}return _0x12d038;}function Se(_0x13b979){const _0x351af2=[];if(_0x13b979['is']('element','listItem')&&_0x13b979['getAttribute']('listIndent')>0x0){let _0x4ed047=_0x13b979['nextSibling'];for(;_0x4ed047&&'listItem'==_0x4ed047['name']&&_0x4ed047['getAttribute']('listIndent')==_0x13b979['getAttribute']('listIndent');)_0x351af2['push'](_0x4ed047),_0x4ed047=_0x4ed047['nextSibling'];}return _0x351af2;}class pt extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x9cf233=this['editor']['config']['get']('list.properties'),_0x297bcb=this['editor']['plugins']['get']('TrackChangesEditing');_0x9cf233['styles']&&_0x297bcb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x9cf233['reversed']&&_0x297bcb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x9cf233['startIndex']&&_0x297bcb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x297bcb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x468038,_0x212df3={}){const _0x21890f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42ca95=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x21890f['markMultiRangeBlockFormat'](_0x42ca95,{'commandName':'listStyle','commandParams':[{'type':_0x212df3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x414472,_0x3444fd={}){const _0x421ce6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42180b=this['_getSuggestionBlocks'](_0x58b231=>_0x58b231['is']('element','listItem')&&'numbered'===_0x58b231['getAttribute']('listType'));if(_0x42180b['length']<0x1)return;const _0x3b6d13=_0x42180b['map'](_0x19c37c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19c37c,'before'),this['editor']['model']['createPositionAt'](_0x19c37c,0x0)));this['editor']['model']['change'](()=>{_0x421ce6['markMultiRangeBlockFormat'](_0x3b6d13,{'commandName':'listReversed','commandParams':[{'reversed':_0x3444fd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x322bcb,_0x21ff3a={}){const _0x17a2a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a3cfd=this['_getSuggestionBlocks'](_0x309d08=>_0x309d08['is']('element','listItem')&&'numbered'===_0x309d08['getAttribute']('listType'));if(_0x2a3cfd['length']<0x1)return;const _0x6bad62=_0x2a3cfd['map'](_0x5bd150=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bd150,'before'),this['editor']['model']['createPositionAt'](_0x5bd150,0x0)));this['editor']['model']['change'](()=>{_0x17a2a0['markMultiRangeBlockFormat'](_0x6bad62,{'commandName':'listStart','commandParams':[{'startIndex':_0x21ff3a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3038b9){if('formatBlock'!=_0x3038b9['type']&&'formatInline'!=_0x3038b9['type'])return;const _0x1ce8ee=this['editor']['locale'],{data:_0x36401}=_0x3038b9;if(!_0x36401)return;let _0x3bfc3f,_0x56e1d7;switch(_0x36401['commandName']){case'listStyle':_0x3bfc3f='*Change\x20to:*\x20%0',_0x56e1d7={'type':'format','content':o(_0x1ce8ee,_0x3bfc3f,o(_0x1ce8ee,this['_getTranslationKeyForListStyle'](_0x36401['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bfc3f=_0x36401['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56e1d7={'type':'format','content':o(_0x1ce8ee,_0x3bfc3f)};break;case'listStart':_0x3bfc3f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56e1d7={'type':'format','content':o(_0x1ce8ee,_0x3bfc3f,_0x36401['commandParams'][0x0]['startIndex'])};}return _0x56e1d7;}['_getSuggestionBlocksForListStyle'](){const _0xb143a6=this['editor']['plugins']['get']('LegacyListUtils');let _0x563baf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x563baf[0x0]?.['is']('element','listItem')&&_0x563baf['unshift'](..._0xb143a6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x563baf[_0x563baf['length']-0x1]?.['is']('element','listItem')&&_0x563baf['push'](..._0xb143a6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x563baf=[...new Set(_0x563baf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x563baf=_0x563baf['filter'](_0x273c45=>_0x273c45['is']('element','listItem'))),_0x563baf;}['_getSuggestionBlocks'](_0x449bcc){const _0x54de54=this['editor']['plugins']['get']('LegacyListUtils');let _0x1cfe42=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x449bcc)['map'](_0x850481=>{const _0x550976=this['editor']['model']['createPositionAt'](_0x850481,0x0);return[..._0x54de54['getSiblingNodes'](_0x550976,'backward'),..._0x54de54['getSiblingNodes'](_0x550976,'forward')];})['flat']();return _0x1cfe42=[...new Set(_0x1cfe42)],_0x1cfe42;}['_getTranslationKeyForListStyle'](_0x50a2b6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x50a2b6)||'default')['toUpperCase']()+'_LIST_'+_0x50a2b6['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x1ac4a7{['afterInit'](){const _0x36e58a=this['editor'];if(!_0x36e58a['plugins']['has']('MediaEmbedEditing'))return;const _0x4db4be=_0x36e58a['plugins']['get']('TrackChangesEditing'),_0x9ee36e=_0x36e58a['locale'];_0x4db4be['enableCommand']('mediaEmbed'),_0x4db4be['descriptionFactory']['registerElementLabel']('media',_0x1351a1=>o(_0x9ee36e,'ELEMENT_MEDIA',_0x1351a1)),_0x36e58a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x18749d,{writer:_0x47eb4f,options:_0x122730})=>{if(_0x122730['showSuggestionHighlights'])return _0x47eb4f['createEmptyElement']('div');},'converterPriority':'high'}),_0x36e58a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2dd33a,_0x2fdb35,_0x5dbae8)=>{_0x5dbae8['options']['showSuggestionHighlights']&&_0x2dd33a['stop']();},{'priority':'high'});}}class wt extends _0x1ac4a7{['afterInit'](){const _0x57f25a=this['editor'];_0x57f25a['plugins']['has']('MentionEditing')&&_0x57f25a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class bt extends _0x1ac4a7{['afterInit'](){const _0x17117f=this['editor'];if(!_0x17117f['plugins']['has']('MergeFieldsEditing'))return;const _0x44510d=_0x17117f['plugins']['get']('TrackChangesEditing'),_0x205fbe=_0x17117f['locale'];_0x44510d['enableCommand']('insertMergeField'),_0x44510d['enableCommand']('insertMergeFieldBlock'),_0x44510d['enableCommand']('insertMergeFieldImage'),_0x44510d['descriptionFactory']['registerElementLabel']('mergeField',_0x4e97d3=>o(_0x205fbe,'ELEMENT_MERGE_FIELD',_0x4e97d3)),_0x44510d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x166877=>o(_0x205fbe,'ELEMENT_MERGE_FIELD',_0x166877)),_0x44510d['descriptionFactory']['registerDescriptionCallback'](_0x12ba73=>{if('insertion'!=_0x12ba73['type']&&'deletion'!=_0x12ba73['type'])return;const _0x1221b2=_0x12ba73['getContainedElement']();if(null==_0x1221b2)return;const _0x1f3d22=_0x17117f['plugins']['get']('MergeFieldsEditing');let _0xf88d09;switch(_0x1f3d22['getMergeFieldType'](_0x1221b2)){case null:return;case'image':{const _0x24b4be=_0x1f3d22['unwrapAffixes'](_0x1221b2['getAttribute']('src'));_0xf88d09=_0x1f3d22['getLabel'](_0x24b4be)||_0x24b4be;break;}default:{const _0x2219f4=_0x1221b2['getAttribute']('id');_0xf88d09=_0x1f3d22['getLabel'](_0x2219f4)||_0x2219f4;break;}}return'insertion'==_0x12ba73['type']?{'type':'insertion','content':o(_0x205fbe,'*Insert:*\x20%0','\x22'+_0xf88d09+'\x22\x20'+o(_0x205fbe,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x205fbe,'*Remove:*\x20%0','\x22'+_0xf88d09+'\x22\x20'+o(_0x205fbe,'ELEMENT_MERGE_FIELD'))};});}}class yt extends _0x1ac4a7{['afterInit'](){const _0x5a04b6=this['editor'],_0x5f0d47=_0x5a04b6['plugins']['get']('TrackChangesEditing');_0x5a04b6['plugins']['has']('MultiLevelList')&&(_0x5f0d47['enableDefaultAttributesIntegration']('multiLevelList'),_0x5f0d47['registerBlockAttribute']('listMarkerStyle'),_0x5f0d47['descriptionFactory']['registerDescriptionCallback'](_0x4ccd4b=>this['handleDescriptions'](_0x4ccd4b)));}['handleDescriptions'](_0x175c9b){const _0x166ecf=this['editor']['locale'],{data:_0x3ab438}=_0x175c9b,_0x15c3df={'type':'format','content':''};if(_0x3ab438&&'listMarkerStyle'==_0x3ab438['key']){if(!_0x3ab438['oldValue'])return{'type':'format','content':o(_0x166ecf,'*Set\x20format:*\x20%0',o(_0x166ecf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ab438['newValue']+')'};if(!_0x3ab438['newValue']){let _0x19f507=_0x175c9b['head'];for(;_0x19f507;){if(_0x19f507['data']&&'listType'==_0x19f507['data']['key']&&_0x19f507['data']['newValue'])return _0x15c3df;_0x19f507=_0x19f507['next'];}return{'type':'format','content':o(_0x166ecf,'*Remove\x20format:*\x20%0',o(_0x166ecf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ab438['oldValue']+')'};}}}}class St extends _0x1ac4a7{['afterInit'](){const _0x1a5454=this['editor'];if(!_0x1a5454['plugins']['has']('PageBreakEditing'))return;_0x1a5454['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1fa2a2=_0x1a5454['plugins']['get']('TrackChangesEditing'),_0x36f334=_0x1a5454['locale'];_0x1fa2a2['descriptionFactory']['registerElementLabel']('pageBreak',_0x4cfbf4=>o(_0x36f334,'ELEMENT_PAGE_BREAK',_0x4cfbf4));}}class jt extends _0x1ac4a7{['afterInit'](){const _0x361b3f=this['editor'];if(!_0x361b3f['plugins']['has']('Paragraph'))return;const _0x35010e=_0x361b3f['locale'],_0x39667a=_0x361b3f['plugins']['get']('TrackChangesEditing');_0x39667a['descriptionFactory']['registerElementLabel']('paragraph',_0xfe2445=>o(_0x35010e,'ELEMENT_PARAGRAPH',_0xfe2445)),_0x39667a['enableDefaultAttributesIntegration']('paragraph'),_0x39667a['enableCommand']('insertParagraph'),_0x361b3f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x361b3f),{'priority':'highest'}),_0x361b3f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x91e892,_0x52960b,_0x2d74df)=>{_0x2d74df['options']['showSuggestionHighlights']&&nr(_0x361b3f,{'showActiveMarker':!0x1})(_0x91e892,_0x52960b,_0x2d74df);},{'priority':'highest'});const _0x440a20=_0x39667a['descriptionFactory'];_0x440a20['registerDescriptionCallback'](_0x47973c=>{if('insertion'!==_0x47973c['type'])return;const {start:_0x51f5bc,end:_0x12b809}=_0x47973c['getFirstRange']();if(!_0x51f5bc['isTouching'](_0x12b809)||!_0x51f5bc['nodeAfter'])return;const _0x16ff86=_0x361b3f['model']['schema'],_0x1c9b0c=_0x51f5bc['nodeAfter'];return _0x16ff86['isBlock'](_0x1c9b0c)&&!_0x16ff86['isLimit'](_0x1c9b0c)&&_0x16ff86['checkChild'](_0x1c9b0c,'$text')?{'type':'insertion','content':o(_0x35010e,'*Insert:*\x20%0',_0x440a20['getItemLabel'](_0x1c9b0c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6728ad=this['editor'],_0x1c65f8=_0x6728ad['locale'];_0x6728ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51b35c=>{if('formatBlock'!=_0x51b35c['type'])return;const {data:_0x3303d3}=_0x51b35c;return _0x3303d3&&'paragraph'==_0x3303d3['commandName']?{'type':'format','content':o(_0x1c65f8,'*Change\x20to:*\x20%0',o(_0x1c65f8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x11d4c1,{showActiveMarker:_0x38ece3=!0x0}={}){return(_0x2eb241,_0x734659,_0x3cc418)=>{const _0x284657=_0x11d4c1['plugins']['get']('TrackChangesEditing'),_0x57e09b=_0x734659['markerRange']['start'],_0x11c34a=_0x734659['markerRange']['end'],_0x8badf5=_0x11d4c1['model']['schema'];if(!_0x57e09b['isTouching'](_0x11c34a)||!_0x57e09b['nodeAfter'])return;const _0x2f09d9=_0x57e09b['nodeAfter'];if(_0x8badf5['isBlock'](_0x2f09d9)&&!_0x8badf5['isLimit'](_0x2f09d9)&&_0x8badf5['checkChild'](_0x2f09d9,'$text')){if(!_0x3cc418['consumable']['consume'](_0x734659['markerRange'],_0x2eb241['name']))return;const {id:_0x51a2a6,authorId:_0x566143}=_0x284657['_splitMarkerName'](_0x734659['markerName']),_0x439f3f=_0x3cc418['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x51a2a6,'data-author-id':_0x566143}),_0x38c2a2=_0x3cc418['mapper']['toViewPosition'](_0x11c34a);_0x38ece3&&_0x284657['activeMarkers']['includes'](_0x734659['markerName'])&&_0x3cc418['writer']['addClass']('ck-suggestion-marker--active',_0x439f3f),_0x3cc418['writer']['insert'](_0x38c2a2,_0x439f3f),_0x3cc418['mapper']['bindElementToMarker'](_0x439f3f,_0x734659['markerName']);}};}class It extends _0x1ac4a7{['afterInit'](){const _0x68f7ee=this['editor'];_0x68f7ee['commands']['get']('replaceSource')&&_0x68f7ee['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class At extends _0x1ac4a7{['afterInit'](){const _0x2651e4=this['editor'];if(!_0x2651e4['plugins']['has']('RemoveFormatEditing'))return;_0x2651e4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46cd7a=this['editor'];_0x46cd7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ec832=>{if('formatBlock'!=_0x1ec832['type']&&'formatInline'!=_0x1ec832['type'])return;const {data:_0x3d2adc}=_0x1ec832;return _0x3d2adc&&'removeFormat'==_0x3d2adc['commandName']?{'type':'format','content':o(_0x46cd7a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class _t extends _0x1ac4a7{['afterInit'](){const _0x3f2a42=this['editor'];if(!_0x3f2a42['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4c153a=_0x3f2a42['plugins']['get']('TrackChangesEditing');_0x4c153a['enableCommand']('goToPreviousRestrictedEditingException'),_0x4c153a['enableCommand']('goToNextRestrictedEditingException');const _0x604dbc=_0x3f2a42['plugins']['get']('RestrictedEditingModeEditing');_0x604dbc['enableCommand']('trackChanges'),_0x604dbc['enableCommand']('acceptSuggestion'),_0x604dbc['enableCommand']('discardSuggestion'),_0x604dbc['enableCommand']('acceptAllSuggestions'),_0x604dbc['enableCommand']('discardAllSuggestions'),_0x604dbc['enableCommand']('acceptSelectedSuggestions'),_0x604dbc['enableCommand']('discardSelectedSuggestions');}}class vt extends _0x1ac4a7{['afterInit'](){const _0x9d5c87=this['editor'];if(!_0x9d5c87['plugins']['has']('ShiftEnter'))return;const _0x26f066=_0x9d5c87['plugins']['get']('TrackChangesEditing');_0x26f066['enableCommand']('shiftEnter'),_0x9d5c87['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x9d5c87),{'priority':'high'}),_0x9d5c87['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x9d5c87),{'priority':'high'}),_0x9d5c87['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3b1894,_0x49aecf,_0x232ff3)=>{_0x232ff3['options']['showSuggestionHighlights']&&Fe(_0x9d5c87,{'showActiveMarker':!0x1})(_0x3b1894,_0x49aecf,_0x232ff3);}),_0x26f066['descriptionFactory']['registerElementLabel']('softBreak',_0x344ef7=>o(_0x9d5c87['locale'],'ELEMENT_LINE_BREAK',_0x344ef7));}}function Fe(_0x1eddf2,{showActiveMarker:_0x4bac62=!0x0}={}){return(_0x2affcf,_0x189d63,_0x2efc5a)=>{const _0x3ac06a=_0x1eddf2['plugins']['get']('TrackChangesEditing');if(!_0x2efc5a['consumable']['test'](_0x189d63['markerRange'],_0x2affcf['name']))return;const _0x4cd6fb=_0x1eddf2['model'];for(const _0x343fa3 of _0x189d63['markerRange']['getItems']()){if(!_0x343fa3['is']('element','softBreak'))continue;const _0x46bf97='deletion'==_0x189d63['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x52a263,authorId:_0x34e969}=_0x3ac06a['_splitMarkerName'](_0x189d63['markerName']),_0x5d1b31=_0x2efc5a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46bf97,'data-suggestion':_0x52a263,'data-author-id':_0x34e969}),_0x50d672=_0x2efc5a['mapper']['toViewPosition'](_0x4cd6fb['createPositionBefore'](_0x343fa3));_0x4bac62&&_0x3ac06a['activeMarkers']['includes'](_0x189d63['markerName'])&&_0x2efc5a['writer']['addClass']('ck-suggestion-marker--active',_0x5d1b31),_0x2efc5a['writer']['insert'](_0x50d672,_0x5d1b31),_0x2efc5a['mapper']['bindElementToMarker'](_0x5d1b31,_0x189d63['markerName']);}};}class Ct extends _0x1ac4a7{['afterInit'](){const _0x408eb8=this['editor'],_0x401355=_0x408eb8['model'],_0x123603=_0x408eb8['locale'];if(!_0x408eb8['plugins']['has']('StandardEditingModeEditing'))return;const _0x37c6a2=_0x408eb8['plugins']['get']('TrackChangesEditing'),_0x7db150='restrictedEditingException',_0x57759b=_0x408eb8['commands']['get'](_0x7db150);_0x37c6a2['enableCommand'](_0x7db150,(_0x7f6097,_0x136440={})=>{const _0x42c713=_0x401355['document']['selection'];if(_0x42c713['isCollapsed'])return void _0x7f6097(_0x136440);const _0x27ec6f=void 0x0!==_0x136440['forceValue']?_0x136440['forceValue']:!_0x57759b['value'];_0x401355['change'](()=>{const _0x318bed=Array['from'](_0x42c713['getRanges']());for(const _0x2b6cc3 of _0x318bed){const _0x160855=_0x27ec6f?[_0x2b6cc3]:io(_0x7db150,_0x2b6cc3,_0x401355);for(const _0x3428dc of _0x160855)_0x37c6a2['markInlineFormat'](_0x3428dc,{'commandName':_0x7db150,'commandParams':[{'forceValue':_0x27ec6f}]});}});}),_0x37c6a2['descriptionFactory']['registerDescriptionCallback'](_0x1e27be=>{if('formatBlock'!=_0x1e27be['type']&&'formatInline'!=_0x1e27be['type'])return;const {data:_0x2d78b4}=_0x1e27be;return _0x2d78b4&&_0x2d78b4['commandName']==_0x7db150?_0x2d78b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x123603,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x123603,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class $t extends _0x1ac4a7{['afterInit'](){const _0x45b915=this['editor'];if(!_0x45b915['plugins']['has']('Style')||!_0x45b915['plugins']['has']('DataSchema'))return;const _0x4aeaf8=_0x45b915['plugins']['get']('TrackChangesEditing'),_0x5982d0=_0x45b915['locale'],_0xfbd6ff=_0x45b915['config']['get']('style')||{},_0x4a8573=_0x45b915['plugins']['get']('GeneralHtmlSupport'),_0x3c05f3=_0x45b915['plugins']['get']('StyleUtils')['normalizeConfig'](_0x45b915['plugins']['get']('DataSchema'),_0xfbd6ff['definitions']);_0x4aeaf8['enableDefaultAttributesIntegration']('style');const _0x3ce9f3=new Set();for(const _0xb39248 of _0x3c05f3['block']){const _0x6ee83e=_0x4a8573['getGhsAttributeNameForElement'](_0xb39248['element']);_0x3ce9f3['add'](_0x6ee83e);}const _0x46f5e7=new Set();for(const _0xc516d0 of _0x3c05f3['inline']){const _0x2c01da=_0x4a8573['getGhsAttributeNameForElement'](_0xc516d0['element']);_0x46f5e7['add'](_0x2c01da);for(const _0x45d2e7 of _0xc516d0['ghsAttributes'])_0x46f5e7['add'](_0x45d2e7);}for(const _0xe567a0 of _0x3ce9f3)_0x4aeaf8['registerBlockAttribute'](_0xe567a0),_0x4aeaf8['descriptionFactory']['registerAttributeLabel'](_0xe567a0,o(_0x5982d0,'FORMAT_STYLE'));for(const _0x1f3c1c of _0x46f5e7)_0x4aeaf8['registerInlineAttribute'](_0x1f3c1c),_0x4aeaf8['descriptionFactory']['registerAttributeLabel'](_0x1f3c1c,o(_0x5982d0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x467619=this['editor'],_0x2f0896=_0x467619['locale'];_0x467619['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ccb20=>{if('formatBlock'!=_0x5ccb20['type']&&'formatInline'!=_0x5ccb20['type'])return;const {data:_0x42d370}=_0x5ccb20;return _0x42d370&&'style'===_0x42d370['commandName']?_0x42d370['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f0896,'*Set\x20format:*\x20%0',_0x42d370['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2f0896,'*Remove\x20format:*\x20%0',_0x42d370['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x1ac4a7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2df42f){super(_0x2df42f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x16b63a=this['editor'],_0x28e695=_0x16b63a['model']['document']['selection'];if(!_0x16b63a['plugins']['has']('TableEditing'))return;const _0x4c127d=_0x16b63a['locale'],_0x58b12b=_0x16b63a['plugins']['get']('TrackChangesEditing'),_0x550a6a=_0x16b63a['plugins']['get']('TableUtils');_0x58b12b['descriptionFactory']['registerElementLabel']('table',_0x5c1e1b=>o(_0x4c127d,'ELEMENT_TABLE',_0x5c1e1b)),this['_setupColumnsRowsFixing'](),_0x58b12b['enableCommand']('insertTable'),_0x58b12b['enableCommand']('selectTableRow'),_0x58b12b['enableCommand']('selectTableColumn');for(const _0x53191e of['insertTableRowAbove','insertTableRowBelow']){const _0x484668=_0x16b63a['commands']['get'](_0x53191e);_0x58b12b['enableCommand'](_0x53191e,_0x13c259=>{_0x16b63a['model']['change'](_0x20c763=>{_0x13c259();const _0x28d4dc='above'===_0x484668['order'],_0x2ff311=_0x550a6a['getSelectionAffectedTableCells'](_0x28e695),_0x1ab27b=_0x550a6a['getRowIndexes'](_0x2ff311),_0xfd87ca=_0x28d4dc?_0x1ab27b['first']-0x1:_0x1ab27b['last']+0x1,_0x3517c8=_0x2ff311[0x0]['findAncestor']('table'),_0x5bafe3=_0x550a6a['createTableWalker'](_0x3517c8,{'startRow':_0xfd87ca,'endRow':_0xfd87ca}),_0x2ca071=Array['from'](_0x5bafe3)['map'](_0x1e872d=>_0x20c763['createRangeOn'](_0x1e872d['cell']));_0x58b12b['markMultiRangeInsertion'](_0x2ca071,'tableRow');});});}for(const _0xe21828 of['insertTableColumnLeft','insertTableColumnRight']){const _0x17be26=_0x16b63a['commands']['get'](_0xe21828);_0x58b12b['enableCommand'](_0xe21828,_0xddb5a7=>{_0x16b63a['model']['change'](_0x192c7c=>{_0xddb5a7();const _0x164515='left'===_0x17be26['order'],_0x49372b=_0x550a6a['getSelectionAffectedTableCells'](_0x28e695),_0xe25340=_0x550a6a['getColumnIndexes'](_0x49372b),_0x1c5981=_0x164515?_0xe25340['first']-0x1:_0xe25340['last']+0x1,_0x8f2618=_0x49372b[0x0]['findAncestor']('table'),_0x31d575=_0x550a6a['createTableWalker'](_0x8f2618,{'startRow':0x0,'column':_0x1c5981,'includeAllSlots':!0x1}),_0x441e90=Array['from'](_0x31d575)['map'](_0x10aab7=>_0x192c7c['createRangeOn'](_0x10aab7['cell']));_0x58b12b['markMultiRangeInsertion'](_0x441e90,'tableColumn');});});}for(const _0x2fa5e2 of['removeTableRow','removeTableColumn']){const _0x27b13e=_0x2fa5e2['substr'](0xb),_0x50188c=_0x27b13e['toLowerCase'](),_0x3f4be1=_0x50188c['substr'](0x0,0x3)+'span',_0x431232='table'+_0x27b13e,_0x2ab5f9='min'+_0x27b13e,_0x59319a='max'+_0x27b13e;_0x58b12b['enableCommand'](_0x2fa5e2,()=>{_0x16b63a['model']['change'](_0x2bba26=>{const _0x5288c3=_0x550a6a['getSelectionAffectedTableCells'](_0x28e695),_0xfed7b1=_0x5288c3[0x0]['findAncestor']('table');let _0x3de5ba;if('removeTableRow'==_0x2fa5e2){const _0x7b2568=_0x550a6a['getRowIndexes'](_0x5288c3);_0x3de5ba={'startRow':_0x7b2568['first'],'endRow':_0x7b2568['last'],'includeAllSlots':!0x0};}else{const _0x4c1267=_0x550a6a['getColumnIndexes'](_0x5288c3);_0x3de5ba={'startColumn':_0x4c1267['first'],'endColumn':_0x4c1267['last'],'includeAllSlots':!0x0};}const _0x79e552=_0x550a6a['createTableWalker'](_0xfed7b1,_0x3de5ba),_0x4cf5c6=Array['from'](_0x79e552)['map'](({cell:_0x113818})=>_0x113818),_0x599d85=Oe(_0x4cf5c6['filter'](_0x1765f3=>_0x1765f3['hasAttribute'](_0x3f4be1))),_0x282a10=Oe(_0x4cf5c6['filter'](_0x189877=>!_0x189877['hasAttribute'](_0x3f4be1)))['map'](_0xfba921=>_0x2bba26['createRangeOn'](_0xfba921)),_0x401003=_0x58b12b['markMultiRangeDeletion'](_0x282a10,_0x431232);if(_0x401003&&('tableRow'==_0x401003['subType']||'tableColumn'==_0x401003['subType'])){const _0x2e9af9=this['_getSuggestionCoords'](_0x401003);for(const _0x1ef933 of _0x599d85){const _0x422698=_0x2bba26['createRangeOn'](_0x1ef933),_0x271705=_0x550a6a['getCellLocation'](_0x1ef933),_0x243580=_0x1ef933['getAttribute'](_0x3f4be1)-0x1,_0x4b4e34=_0x2e9af9[_0x2ab5f9],_0x41bfe4=_0x2e9af9[_0x59319a];_0x4b4e34<=_0x271705[_0x50188c]&&_0x271705[_0x50188c]+_0x243580<=_0x41bfe4&&_0x401003['addRange'](_0x422698);}}});});}function _0x175c18(_0x1ba215){const _0x4130fd=Array['from'](_0x28e695['getRanges']())['map'](_0x295673=>_0x2fe235['fromRange'](_0x295673));_0x16b63a['model']['change'](_0x2794bc=>{const _0x439428=_0x2794bc['batch'];_0x1ba215=_0x1ba215['filter'](_0x31240b=>'$graveyard'!=_0x31240b['root']['rootName']),_0x2794bc['setSelection'](_0x1ba215),_0x16b63a['commands']['get']('removeTableRow')['refresh'](),_0x16b63a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x16b63a['model']['enqueueChange'](()=>{_0x16b63a['model']['enqueueChange'](_0x439428,_0x39ac39=>{const _0x33b605=_0x4130fd['filter'](_0x47227d=>'$graveyard'!=_0x47227d['root']['rootName']);_0x33b605['length']>0x0&&_0x39ac39['setSelection'](_0x33b605);for(const _0x189223 of _0x4130fd)_0x189223['detach']();});});});}function _0x5e339c(_0x386ffc){_0x16b63a['model']['change'](_0x3c3bc9=>{const _0x3c981f=Array['from'](_0x28e695['getRanges']())['map'](_0x139bca=>_0x2fe235['fromRange'](_0x139bca)),_0x33f33c=[];for(const _0x16e749 of _0x386ffc)for(const _0x120bb6 of _0x16e749['getItems']({'shallow':!0x0}))_0x33f33c['push'](_0x120bb6);for(const _0x14aa79 of _0x33f33c)'$graveyard'!=_0x14aa79['root']['rootName']&&(_0x3c3bc9['setSelection'](_0x3c3bc9['createPositionAt'](_0x14aa79,0x0)),_0x16b63a['commands']['get']('removeTableColumn')['refresh'](),_0x16b63a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4e9023=_0x3c981f['filter'](_0x2749db=>'$graveyard'!=_0x2749db['root']['rootName']);_0x4e9023['length']>0x0&&_0x3c3bc9['setSelection'](_0x4e9023);for(const _0x15c5ab of _0x3c981f)_0x15c5ab['detach']();});}function _0x12dad5(_0x3fb885,_0x1c8d51){return _0x1c8d51['every'](_0x5715d7=>_0x3fb885['some'](_0x1f29bd=>_0x1f29bd['end']['isEqual'](_0x5715d7['start'])||_0x5715d7['end']['isEqual'](_0x1f29bd['start'])));}function _0x43bbae(_0x260fae,_0x5a2424){return!_0x260fae['some'](_0x292c7b=>_0x5a2424['some'](_0x12f92d=>_0x292c7b['isIntersecting'](_0x12f92d)))&&_0x260fae['some'](_0x80bed8=>_0x5a2424['some'](_0x5bfb56=>_0x80bed8['end']['isTouching'](_0x5bfb56['start'])));}_0x16b63a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x450898,_0x5e986a,_0x5177e5)=>{if(!_0x5177e5['options']['showSuggestionHighlights'])return;const _0x21fc59=_0x5e986a['item'];if(!_0x21fc59||!_0x21fc59['is']('element','tableCell'))return;const _0x3e1c5a=_0x5177e5['mapper']['toViewElement'](_0x21fc59);if(_0x3e1c5a){const {id:_0x61e277,authorId:_0x508f5d}=_0x58b12b['_splitMarkerName'](_0x5e986a['markerName']);_0x5dc99a(_0x3e1c5a,_0x5177e5['writer'],(_0x2072e2,_0x5e065f,_0x49c082)=>{_0x49c082['addClass'](_0x211a57(_0x5e065f['classes']),_0x2072e2),_0x49c082['setAttribute']('data-suggestion-id',_0x61e277,_0x2072e2),_0x49c082['setAttribute']('data-author-id',_0x508f5d,_0x2072e2);},(_0x31a648,_0x41d9a7,_0xfa4543)=>{_0xfa4543['removeClass'](_0x211a57(_0x41d9a7['classes']),_0x31a648),_0xfa4543['removeAttribute']('data-suggestion-id',_0x31a648),_0xfa4543['removeAttribute']('data-author-id',_0x31a648);});}},{'priority':'highest'}),_0x58b12b['descriptionFactory']['registerDescriptionCallback'](_0x49f46c=>{if('insertion'!=_0x49f46c['type']&&'deletion'!=_0x49f46c['type'])return;const _0xb3f01e=_0x49f46c['getContainedElement']();if(null!=_0xb3f01e&&_0xb3f01e['is']('element','table')){if('insertion'==_0x49f46c['type']){const _0x1617b4=_0x49f46c['getItems']()['filter'](_0x13de25=>_0x13de25['is']('$textProxy'))['map'](_0x4ceac8=>_0x4ceac8['data']);if(_0x1617b4['length'])return{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1617b4['join']('\x20')+'\x22'))};}if('deletion'==_0x49f46c['type']){const _0x40d019=_0x49f46c['getItems']()['filter'](_0x858895=>_0x858895['is']('$textProxy'))['map'](_0x5341e5=>_0x5341e5['data']);if(_0x40d019['length'])return{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40d019['join']('\x20')+'\x22'))};}}}),_0x58b12b['descriptionFactory']['registerDescriptionCallback'](_0x32280b=>{if('tableRow'==_0x32280b['subType']){const _0x1aa882=_0x32280b['getItems']()['filter'](_0x42fdba=>_0x42fdba['is']('$textProxy'))['map'](_0x255a10=>_0x255a10['data']),_0x3b8c07=this['_getSuggestionCoords'](_0x32280b),_0x49073d=_0x3b8c07['maxRow']-_0x3b8c07['minRow']+0x1;if('insertion'==_0x32280b['type'])return _0x1aa882['length']?{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49073d,'\x22'+_0x1aa882['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW',_0x49073d))};if('deletion'==_0x32280b['type'])return _0x1aa882['length']?{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49073d,'\x22'+_0x1aa882['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_ROW',_0x49073d))};}if('tableColumn'==_0x32280b['subType']){const _0x1d6dbd=_0x32280b['getItems']()['filter'](_0x1df699=>_0x1df699['is']('$textProxy'))['map'](_0x197859=>_0x197859['data']),_0x508d1c=this['_getSuggestionCoords'](_0x32280b),_0x2abe96=_0x508d1c['maxColumn']-_0x508d1c['minColumn']+0x1;if('insertion'==_0x32280b['type'])return _0x1d6dbd['length']?{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2abe96,'\x22'+_0x1d6dbd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c127d,'*Insert:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN',_0x2abe96))};if('deletion'==_0x32280b['type'])return _0x1d6dbd['length']?{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2abe96,'\x22'+_0x1d6dbd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c127d,'*Remove:*\x20%0',o(_0x4c127d,'ELEMENT_TABLE_COLUMN',_0x2abe96))};}}),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x175c18),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x175c18),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5e339c),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5e339c),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x12dad5),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x12dad5),_0x58b12b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x43bbae),_0x58b12b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x43bbae);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ee8c2=this['editor'],_0x14ab2b=_0x1ee8c2['model']['document']['selection'];return(_0x13c70c,_0x44736e)=>{_0x1ee8c2['model']['change'](_0xb6e00d=>{const {commandName:_0x18a082,commandParams:_0x306607}=_0x44736e;let _0x26b2c6=_0x13c70c[0x0]['end']['nodeBefore'];_0x306607&&_0x306607[0x0]&&!0x1===_0x306607[0x0]['forceValue']&&(_0x26b2c6=_0x13c70c[0x0]['start']['nodeAfter']);const _0x19a0d9=_0xb6e00d['createRangeIn'](_0x26b2c6);if('$graveyard'==_0x19a0d9['root']['rootName'])return;const _0x16f761=Array['from'](_0x14ab2b['getRanges']())['map'](_0x180ac6=>_0x2fe235['fromRange'](_0x180ac6));_0xb6e00d['setSelection'](_0x19a0d9),_0x1ee8c2['commands']['get'](_0x18a082)['refresh'](),_0x306607['push']({'forceDefaultExecution':!0x0}),_0x1ee8c2['execute'](_0x18a082,..._0x306607);const _0x8a18c3=_0x16f761['filter'](_0x364613=>'$graveyard'!=_0x364613['root']['rootName']);_0x8a18c3['length']>0x0&&_0xb6e00d['setSelection'](_0x8a18c3);for(const _0x2741c6 of _0x16f761)_0x2741c6['detach']();});};}['_getCoordsForCells'](_0x46c9d8){const _0x12c4bc=this['editor']['plugins']['get']('TableUtils');let _0x511275=Number['MAX_SAFE_INTEGER'],_0x256ef3=Number['MIN_SAFE_INTEGER'],_0x21ba1f=Number['MAX_SAFE_INTEGER'],_0x17e839=Number['MIN_SAFE_INTEGER'];for(const _0x35d966 of _0x46c9d8){if('$graveyard'==_0x35d966['root']['rootName'])continue;const {row:_0x5e1b49,column:_0x13453d}=_0x12c4bc['getCellLocation'](_0x35d966),_0x494850=_0x35d966['hasAttribute']('rowspan')?_0x35d966['getAttribute']('rowspan')-0x1:0x0,_0x4f7fb3=_0x35d966['hasAttribute']('colspan')?_0x35d966['getAttribute']('colspan')-0x1:0x0;_0x511275=_0x5e1b49<_0x511275?_0x5e1b49:_0x511275,_0x256ef3=_0x5e1b49+_0x494850>_0x256ef3?_0x5e1b49+_0x494850:_0x256ef3,_0x21ba1f=_0x13453d<_0x21ba1f?_0x13453d:_0x21ba1f,_0x17e839=_0x13453d+_0x4f7fb3>_0x17e839?_0x13453d+_0x4f7fb3:_0x17e839;}return{'minRow':_0x511275,'maxRow':_0x256ef3,'minColumn':_0x21ba1f,'maxColumn':_0x17e839};}['_setupColumnsRowsFixing'](){const _0x59d110=this['editor'],_0x562758=_0x59d110['plugins']['get']('TrackChangesEditing'),_0x3fe870=_0x59d110['plugins']['get']('TableUtils');_0x59d110['model']['document']['on']('change:data',()=>{const _0x5c97e9=Array['from'](_0x59d110['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48d503,data:_0x200bab}of _0x5c97e9){const {group:_0x4fac2d,id:_0x1c4996,subType:_0x5237f9}=_0x562758['_splitMarkerName'](_0x48d503);if('suggestion'!=_0x4fac2d)continue;if(null!=_0x200bab['oldRange'])continue;const _0x4c3323=_0x562758['getSuggestion'](_0x1c4996);this['_tablePostFixingSubtypes']['includes'](_0x5237f9)&&this['_tableSuggestions']['add'](_0x4c3323);}},{'priority':'low'});const _0x27cec0=(_0x17cec7,_0x1151aa)=>{let _0x356d99=!0x1;const _0x479fda=_0x1151aa['createRangeOn'](_0x17cec7),_0x4e74f5=_0x17cec7['findAncestor']('table'),_0x15c382=_0x3fe870['getCellLocation'](_0x17cec7);for(const _0x4ef3c9 of this['_tableSuggestions']){const _0x119062=_0x4ef3c9['subType'],_0x57c24e=_0x119062['startsWith']('tablePaste'),_0x3be556=_0x119062['substr'](_0x57c24e?0xa:0x5),_0x39f037=_0x3be556['toLowerCase'](),_0xf26029=_0x39f037['substr'](0x0,0x3)+'span',_0x204ee8='min'+_0x3be556,_0x29ddad='max'+_0x3be556;if(!_0x4ef3c9['isInContent'])continue;if(_0x4e74f5!=_0x4ef3c9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4ef3c9['isIntersectingWithRange'](_0x479fda))continue;const _0x268e69=_0x17cec7['hasAttribute'](_0xf26029)?_0x17cec7['getAttribute'](_0xf26029)-0x1:0x0,_0x55b26f=this['_getSuggestionCoords'](_0x4ef3c9),_0x54e842=_0x55b26f[_0x204ee8],_0x46b3e2=_0x55b26f[_0x29ddad];_0x54e842<=_0x15c382[_0x39f037]&&_0x15c382[_0x39f037]+_0x268e69<=_0x46b3e2&&(_0x4ef3c9['addRange'](_0x479fda),_0x356d99=!0x0);}return _0x356d99;};_0x59d110['model']['document']['registerPostFixer'](_0x3c4884=>{let _0x31dd41=!0x1;for(const _0x18d8de of _0x59d110['model']['document']['differ']['getChanges']())if('insert'==_0x18d8de['type']){if('tableRow'==_0x18d8de['name']){for(const _0x1b3872 of _0x18d8de['position']['nodeAfter']['getChildren']())_0x31dd41=_0x31dd41||_0x27cec0(_0x1b3872,_0x3c4884);}else'tableCell'==_0x18d8de['name']&&(_0x31dd41=_0x31dd41||_0x27cec0(_0x18d8de['position']['nodeAfter'],_0x3c4884));}return _0x31dd41;});}['_getSuggestionCoords'](_0x426d46){return this['_getCoordsForCells'](_0x426d46['getRanges']()['map'](_0x517740=>_0x517740['start']['nodeAfter']));}}function Oe(_0x331ba0){return Array['from'](new Set(_0x331ba0)['values']());}class Dt extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x13a9c9=this['editor'],_0x32e06d=_0x13a9c9['model']['document']['selection'],_0x5b69b8=_0x13a9c9['locale'];if(!_0x13a9c9['plugins']['has']('TableEditing'))return;const _0x28163f=_0x13a9c9['plugins']['get']('TrackChangesEditing'),_0x1fe8de=_0x13a9c9['plugins']['get']('TableUtils'),_0x114d14=_0x13a9c9['plugins']['get'](Nt);_0x114d14['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28163f['enableCommand']('mergeTableCells',()=>{const _0x37adca=_0x1fe8de['getSelectionAffectedTableCells'](_0x13a9c9['model']['document']['selection']);_0x13a9c9['model']['change'](()=>{_0x28163f['markMultiRangeBlockFormat'](_0x37adca,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13a9c9['commands']['get']('mergeTableCells')['on']('execute',(_0x35e028,_0x263650)=>{_0x13a9c9['commands']['get']('trackChanges')['value']&&(_0x263650['length']>0x0&&_0x263650[_0x263650['length']-0x1]&&_0x263650[_0x263650['length']-0x1]['forceDefaultExecution']||_0x28163f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x35e028['stop']());},{'priority':'highest'});for(const _0x57e7d5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4fdc54=_0x13a9c9['commands']['get'](_0x57e7d5);_0x28163f['enableCommand'](_0x57e7d5,()=>{const _0x7bf11d=_0x13a9c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x467a06=>_0x467a06['is']('element','tableCell')),_0x4f66b4=_0x4fdc54['value'];_0x13a9c9['model']['change'](()=>{_0x28163f['markMultiRangeBlockFormat']([_0x7bf11d,_0x4f66b4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x6b4dad of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56cdfa=_0x13a9c9['commands']['get'](_0x6b4dad);_0x28163f['enableCommand'](_0x6b4dad,()=>{const _0x5c81d7=_0x1fe8de['getSelectionAffectedTableCells'](_0x13a9c9['model']['document']['selection'])[0x0],_0x515531=_0x5c81d7['findAncestor']('table'),{column:_0x4b412b,row:_0x57360b}=_0x1fe8de['getCellLocation'](_0x5c81d7);let _0x4230fc=[];if('horizontally'==_0x56cdfa['direction']){const _0x482a4a=_0x1fe8de['createTableWalker'](_0x515531,{'startRow':_0x57360b,'endRow':_0x57360b,'includeAllSlots':!0x0});_0x4230fc=Array['from'](_0x482a4a)['map'](_0x33bd02=>_0x33bd02['cell']);}else{const _0x4a76fd=_0x1fe8de['createTableWalker'](_0x515531,{'column':_0x4b412b,'includeAllSlots':!0x0});_0x4230fc=Array['from'](_0x4a76fd)['map'](_0x4acafe=>_0x4acafe['cell']);}_0x13a9c9['model']['change'](_0x597455=>{_0x28163f['markBlockFormat'](_0x597455['createRangeOn'](_0x5c81d7),{'commandName':_0x6b4dad,'commandParams':[]},_0x4230fc,_0x6b4dad);});});}_0x28163f['descriptionFactory']['registerDescriptionCallback'](_0x27053b=>{if('formatBlock'!=_0x27053b['type']&&'formatInline'!=_0x27053b['type'])return;const {data:_0x4e8c01}=_0x27053b;return _0x4e8c01&&'mergeTableCells'==_0x4e8c01['commandName']?{'type':'format','content':o(_0x5b69b8,'*Merge\x20cells*')}:void 0x0;}),_0x28163f['descriptionFactory']['registerDescriptionCallback'](_0x21444d=>{if('formatBlock'!=_0x21444d['type']&&'formatInline'!=_0x21444d['type'])return;const {data:_0x5b4339}=_0x21444d;return _0x5b4339?'splitTableCellVertically'==_0x5b4339['commandName']?{'type':'format','content':o(_0x5b69b8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5b4339['commandName']?{'type':'format','content':o(_0x5b69b8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2eafc5=_0x114d14['_acceptFormatSuggestionCallbackFactory']();for(const _0x354eb2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28163f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x354eb2,'accept',_0x2eafc5);for(const _0x200335 of['splitTableCellVertically','splitTableCellHorizontally'])_0x28163f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x200335,'accept',_0x2eafc5);_0x28163f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4cf81e=>{_0x13a9c9['model']['change'](_0x2e3327=>{const _0x27cc54=Array['from'](_0x32e06d['getRanges']())['map'](_0x4a6190=>_0x2fe235['fromRange'](_0x4a6190));_0x2e3327['setSelection'](_0x4cf81e),_0x13a9c9['commands']['get']('mergeTableCells')['refresh'](),_0x13a9c9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b1786=_0x27cc54['filter'](_0x35c810=>'$graveyard'!=_0x35c810['root']['rootName']);_0x5b1786['length']>0x0&&_0x2e3327['setSelection'](_0x5b1786);for(const _0x159ac5 of _0x27cc54)_0x159ac5['detach']();});});for(const _0x2c28f5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x8349c5=_0x13a9c9['commands']['get'](_0x2c28f5);_0x8349c5['on']('set:isEnabled',(_0x5a593a,_0x1f3522,_0x54d506)=>{if(_0x54d506){const _0x49a9df=_0x13a9c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x350282=>_0x350282['is']('element','tableCell'));this['_areMergableCells'](_0x8349c5['value'],_0x49a9df)||(_0x5a593a['return']=!0x1,_0x5a593a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xb271f1=this['editor']['commands']['get']('mergeTableCells'),_0x3f134f=this['editor']['plugins']['get']('TableUtils');if(!_0xb271f1['isEnabled'])return!0x1;const _0x57753c=_0x3f134f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4eed84 of _0x57753c)for(const _0x37a826 of _0x57753c)if(_0x4eed84!=_0x37a826&&!this['_areMergableCells'](_0x4eed84,_0x37a826))return!0x1;return!0x0;}['_areMergableCells'](_0x25b94b,_0xaccdb8){const _0x14fb22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a5dc5=this['editor']['model']['createRangeOn'](_0x25b94b),_0x584b8d=this['editor']['model']['createRangeOn'](_0xaccdb8),_0x40218e=new Set(),_0x2a798c=new Set();for(const _0x1054ce of _0x14fb22['getSuggestions']())if(('insertion'==_0x1054ce['type']||'deletion'==_0x1054ce['type']||'mergeTableCells'==_0x1054ce['subType'])&&_0x1054ce['isInContent']){for(const _0x10cee4 of _0x1054ce['getRanges']())_0x10cee4['containsRange'](_0x3a5dc5,!0x0)&&_0x40218e['add'](_0x1054ce['type']+':'+_0x1054ce['author']['id']),_0x10cee4['containsRange'](_0x584b8d,!0x0)&&_0x2a798c['add'](_0x1054ce['type']+':'+_0x1054ce['author']['id']);}if(_0x40218e['size']!=_0x2a798c['size'])return!0x1;for(const _0x460d34 of _0x40218e)if(!_0x2a798c['has'](_0x460d34))return!0x1;return!0x0;}}class Mt extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x56bd39=this['editor'];if(!_0x56bd39['plugins']['has']('TableEditing'))return;const _0xd1caa7=_0x56bd39['locale'],_0x4ce7b5=_0x56bd39['plugins']['get']('TrackChangesEditing');_0x4ce7b5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4ce7b5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4ce7b5['registerBlockAttribute']('headingRows'),_0x4ce7b5['registerBlockAttribute']('headingColumns'),_0x4ce7b5['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xd1caa7,'FORMAT_HEADER_ROW')),_0x4ce7b5['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xd1caa7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58eb0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x333d22=this['editor']['plugins']['get']('TableUtils'),_0x408858=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();function _0x2de876({showActiveMarker:_0x64571d=!0x0,setDataAttribute:_0x924aa2=!0x0}={}){return(_0x136a82,_0x5b7d55,_0x3facf1)=>{const {type:_0x4f8d39,id:_0x188a69}=_0x58eb0a['_splitMarkerName'](_0x5b7d55['markerName']);if(!_0x58eb0a['hasSuggestion'](_0x188a69))return;const _0x1cabb6=_0x58eb0a['getSuggestion'](_0x188a69),_0x87a1b3=_0x1cabb6['data'];if('formatBlock'!=_0x1cabb6['type']||!_0x87a1b3||'setTableColumnHeader'!=_0x87a1b3['commandName'])return;if(_0x5b7d55['item'])return void _0x136a82['stop']();if(!_0x3facf1['consumable']['consume'](_0x5b7d55['markerRange'],_0x136a82['name']))return;const _0x2d1843=_0x5b7d55['markerRange']['start']['nodeAfter'],_0x55c2d6=_0x5b7d55['markerRange']['end']['nodeBefore'],_0x46d1d9=_0x2d1843['parent']['parent'],{column:_0xbd7047}=_0x333d22['getCellLocation'](_0x2d1843),{column:_0x17dc53}=_0x333d22['getCellLocation'](_0x55c2d6);for(let _0x3a274b=_0xbd7047;_0x3a274b<=_0x17dc53;_0x3a274b++){const _0x33378c=_0x333d22['createTableWalker'](_0x46d1d9,{'column':_0x3a274b,'includeAllSlots':!0x1});for(const _0x3121b5 of _0x33378c){const _0x151a8b=_0x3121b5['cell'],_0x41b457=_0x3facf1['mapper']['toViewElement'](_0x151a8b);_0x3facf1['writer']['addClass']('ck-suggestion-marker-'+_0x4f8d39,_0x41b457),_0x924aa2&&_0x3facf1['writer']['setAttribute']('data-suggestion',_0x188a69,_0x41b457),_0x3facf1['mapper']['bindElementToMarker'](_0x41b457,_0x5b7d55['markerName']),_0x64571d&&(_0x58eb0a['activeMarkers']['includes'](_0x5b7d55['markerName'])?_0x3facf1['writer']['addClass']('ck-suggestion-marker--active',_0x41b457):_0x3facf1['writer']['removeClass']('ck-suggestion-marker--active',_0x41b457));}}};}_0x58eb0a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x408858),_0x58eb0a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x408858),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2de876(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb67a9d,_0x2662ac,_0x338791)=>{_0x338791['options']['showSuggestionHighlights']&&_0x2de876({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xb67a9d,_0x2662ac,_0x338791);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3481f8,_0x105534,_0x1b2b0d)=>{const {type:_0x2ea5a6,id:_0x5d36fd}=_0x58eb0a['_splitMarkerName'](_0x105534['markerName']);if(!_0x58eb0a['hasSuggestion'](_0x5d36fd))return;const _0x5b2d79=_0x58eb0a['getSuggestion'](_0x5d36fd),_0x4dadb8=_0x5b2d79['data'];if('formatBlock'!=_0x5b2d79['type']||!_0x4dadb8||'setTableColumnHeader'!=_0x4dadb8['commandName'])return;const _0x56cf01=_0x1b2b0d['mapper']['markerNameToElements'](_0x105534['markerName']);if(_0x56cf01){for(const _0x27539c of _0x56cf01)_0x1b2b0d['writer']['removeClass']('ck-suggestion-marker-'+_0x2ea5a6,_0x27539c),_0x1b2b0d['writer']['removeClass']('ck-suggestion-marker--active',_0x27539c),_0x1b2b0d['writer']['removeAttribute']('data-suggestion',_0x27539c),_0x1b2b0d['mapper']['unbindElementFromMarkerName'](_0x27539c,_0x105534['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1db07d=this['editor'],_0x2c44d7=_0x1db07d['locale'];function _0x2e59bd(_0xb84b96){return{'type':'format','content':o(_0x2c44d7,'*Format:*\x20%0',_0xb84b96)};}_0x1db07d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc9ce=>{if('formatBlock'!=_0x3dc9ce['type'])return;const {data:_0x1d7e63}=_0x3dc9ce;if(_0x1d7e63){if('setTableRowHeader'==_0x1d7e63['commandName']){const _0x2096d2=_0x1d7e63['commandParams'][0x0]['forceValue'];return _0x2e59bd(o(_0x2c44d7,_0x2096d2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1d7e63['commandName']){const _0x13d0f1=_0x1d7e63['commandParams'][0x0]['forceValue'];return _0x2e59bd(o(_0x2c44d7,_0x13d0f1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Bt extends _0x1ac4a7{['afterInit'](){const _0x262b08=this['editor'],_0x529383=_0x262b08['locale'],_0x4bd2e6=_0x262b08['plugins']['get']('TrackChangesEditing');function _0x564bbc(_0x1d5c34){return{'type':'format','content':''+o(_0x529383,'*Set\x20table\x20type:*\x20%0',_0x1d5c34)};}_0x262b08['plugins']['has']('TableLayout')&&(_0x4bd2e6['enableCommand']('insertTableLayout'),_0x4bd2e6['enableDefaultAttributesIntegration']('tableType'),_0x4bd2e6['registerBlockAttribute']('tableType'),_0x4bd2e6['descriptionFactory']['registerElementLabel'](_0x5aa223=>_0x5aa223['is']('element','table')&&'layout'===_0x5aa223['getAttribute']('tableType'),_0x46ee26=>o(_0x529383,'ELEMENT_LAYOUT_TABLE',_0x46ee26)),_0x4bd2e6['descriptionFactory']['registerDescriptionCallback'](_0x19b9e6=>{const {data:_0x6b729e}=_0x19b9e6;if(_0x6b729e&&'tableType'==_0x6b729e['key'])switch(_0x6b729e['newValue']){case'layout':return _0x564bbc(o(_0x529383,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x564bbc(o(_0x529383,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],De=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Ue['map'](_0x58a030=>[_0x58a030,null]));class Tt extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x43c17c=this['editor'];if(!_0x43c17c['plugins']['has']('TableClipboard'))return;const _0x9f71f9=_0x43c17c['plugins']['get']('TrackChangesEditing'),_0x222a9c=_0x43c17c['plugins']['get']('TableUtils'),_0xb6bfae=_0x43c17c['plugins']['get'](Nt),_0x7aa23=_0x43c17c['plugins']['get']('TableClipboard'),_0x43413e=_0x43c17c['plugins']['get']('TableSelection'),_0x697f1a=_0x43c17c['plugins']['get'](_0x2d7130);_0xb6bfae['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x43c17c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x43c17c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1aa709=null,_0x537883=!0x1;_0x697f1a['on']('contentInsertion',(_0x16f841,_0x1f0bfa)=>{_0x537883='paste'===_0x1f0bfa['method'];}),_0x43c17c['model']['on']('insertContent',(_0x88f53c,_0x24c7cd)=>{if(!_0x537883&&null===_0x43413e['getSelectedTableCells']())return;const [_0x34c81a,_0x51f993]=_0x24c7cd,_0x41c46f=_0x24c7cd[_0x24c7cd['length']-0x1];_0x41c46f&&_0x41c46f['forceDefaultExecution']||_0x9f71f9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x21c31f,_0x5d5153,_0x45f337,_0x47628d,_0x520532){if(_0x5d5153&&!_0x5d5153['is']('documentSelection'))return!0x1;const _0x38419a=_0x520532['getTableIfOnlyTableInContent'](_0x21c31f,_0x45f337);if(!_0x38419a||!qe(_0x38419a,void 0x0,_0x47628d))return!0x1;const _0x20679d=_0x47628d['getSelectionAffectedTableCells'](_0x45f337['document']['selection']);if(!_0x20679d['length'])return!0x1;const _0x51d89b=_0x20679d[0x0]['findAncestor']('table'),_0x545064=_0x47628d['getRowIndexes'](_0x20679d),_0x1fa265=_0x47628d['getColumnIndexes'](_0x20679d),_0x16e9ec={'startRow':_0x545064['first'],'endRow':_0x545064['last'],'startColumn':_0x1fa265['first'],'endColumn':_0x1fa265['last']};return 0x1==_0x20679d['length']&&(_0x16e9ec['endRow']+=_0x47628d['getRows'](_0x38419a)-0x1,_0x16e9ec['endColumn']+=_0x47628d['getColumns'](_0x38419a)-0x1),qe(_0x51d89b,_0x16e9ec,_0x47628d);}(_0x34c81a,_0x51f993,_0x43c17c['model'],_0x222a9c,_0x7aa23)&&(_0x88f53c['stop'](),_0x1aa709={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43c17c['model']['change'](()=>{_0x43c17c['model']['insertContent'](_0x24c7cd[0x0],_0x24c7cd[0x1],_0x24c7cd[0x2],{'forceDefaultExecution':!0x0});const _0x3f2a96=_0x668662(),{rowInsertionRanges:_0x314571,columnInsertionRanges:_0x46301b,insertionRanges:_0x2b1102,deletionRanges:_0x2b100f,cells:_0x243522}=_0x1aa709;_0x314571['length']&&_0x9f71f9['markMultiRangeInsertion'](_0x314571,'tablePasteRow',{'tablePasteChainId':_0x3f2a96}),_0x46301b['length']&&_0x9f71f9['markMultiRangeInsertion'](_0x46301b,'tablePasteColumn',{'tablePasteChainId':_0x3f2a96}),_0x2b1102['length']&&(_0x9f71f9['markMultiRangeInsertion'](_0x2b1102,'tablePaste',{'tablePasteChainId':_0x3f2a96,'skipNestingCheck':!0x0}),_0x2b1102['forEach'](_0x13f1ff=>_0x13f1ff['detach']?.())),_0x2b100f['length']&&(_0x9f71f9['markMultiRangeDeletion'](_0x2b100f,'tablePaste',{'tablePasteChainId':_0x3f2a96,'skipNestingCheck':!0x0}),_0x2b100f['forEach'](_0x40b413=>_0x40b413['detach']?.()));const _0x5f0534=_0x9f71f9['markMultiRangeBlockFormat'](_0x243522['map'](({element:_0x2c7828})=>_0x2c7828),{'formatGroupId':_0x668662()},[],'tablePasteCell',{'tablePasteChainId':_0x3f2a96});if(_0x5f0534){const _0x17ce5e=_0x5f0534['getMarkers'](),_0x1c7d5a=[];for(const {element:_0x5c6cb8,attributes:_0x47ac50}of _0x243522){if(!_0x47ac50)continue;const _0x2be871=_0x43c17c['model']['createRangeOn'](_0x5c6cb8),_0x32e9f7=_0x17ce5e['find'](_0x4150c7=>_0x4150c7['getRange']()['isEqual'](_0x2be871));_0x32e9f7&&_0x1c7d5a['push']([_0x32e9f7['name'],_0x47ac50]);}_0x1c7d5a['length']&&_0x5f0534['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c7d5a));}_0x1aa709=null;}));},{'priority':_0x48e2dc['high']+0xa}),_0x697f1a['on']('contentInsertion',()=>{_0x537883=!0x1;},{'priority':'lowest'}),_0x43c17c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5ebded,_0x58a709)=>{const [_0xdbd6a2,_0x2f8b0f,,_0x218cce]=_0x58a709;if(!_0x1aa709)return;_0x5ebded['stop']();const _0x34c217=_0xdbd6a2['cell'],_0x36c498=_0x2f8b0f,_0x4fbb81=He(_0x34c217),_0x5e4c09=He(_0x36c498);_0x5ebded['return']=_0x34c217;let _0x5d94ab=null,_0x52dec9=null;if(_0x5e4c09||_0x4fbb81){if(_0x4fbb81&&!_0x5e4c09){_0x218cce['remove'](_0x34c217['getChild'](0x0));for(const _0xf469b of Array['from'](_0x36c498['getChildren']()))_0x218cce['insert'](_0xf469b,_0x34c217,'end');const _0x381dae=_0x1aa709['rowInsertionIndexes']['includes'](_0xdbd6a2['row']),_0xd5a94=_0x1aa709['columnInsertionIndexes']['includes'](_0xdbd6a2['column']);_0x381dae||_0xd5a94||(_0x5d94ab=_0x2fe235['fromRange'](_0x218cce['createRangeIn'](_0x34c217)));}else _0x5e4c09&&!_0x4fbb81&&(_0x52dec9=_0x218cce['createRangeIn'](_0x34c217));}else{const _0x1b2b56=_0x218cce['createElement']('tableCellSuggestion'),_0x17a4ce=_0x218cce['createElement']('tableCellSuggestion');_0x218cce['wrap'](_0x218cce['createRangeIn'](_0x34c217),_0x17a4ce),_0x218cce['insert'](_0x1b2b56,_0x34c217,0x0);for(const _0x43d6f6 of Array['from'](_0x36c498['getChildren']()))_0x218cce['insert'](_0x43d6f6,_0x1b2b56,'end');_0x5d94ab=_0x2fe235['fromRange'](_0x218cce['createRangeOn'](_0x1b2b56)),_0x52dec9=_0x2fe235['fromRange'](_0x218cce['createRangeOn'](_0x17a4ce));}const _0x10d794=Array['from'](_0x36c498['getAttributes']())['filter'](([_0x1e8661])=>Ue['includes'](_0x1e8661));_0x1aa709['cells']['push']({'element':_0x34c217,'attributes':_0x10d794['length']?Object['fromEntries'](_0x10d794):null}),_0x5d94ab&&_0x1aa709['insertionRanges']['push'](_0x5d94ab),_0x52dec9&&_0x1aa709['deletionRanges']['push'](_0x52dec9);},{'priority':'high'}),_0x222a9c['on']('insertColumns',(_0x42555e,_0x1bef5c)=>{const [_0x27f13a,_0x5b0992={}]=_0x1bef5c;if(!_0x1aa709)return;const _0x133d09=_0x5b0992['at']||0x0,_0x118520=_0x5b0992['columns']||0x1;_0x1aa709['columnInsertionIndexes']=new Array(_0x118520)['fill'](_0x133d09)['map']((_0x420447,_0x22140c)=>_0x420447+_0x22140c);for(const {cell:_0x24de85}of _0x222a9c['createTableWalker'](_0x27f13a,{'startColumn':_0x133d09,'endColumn':_0x133d09+_0x118520-0x1}))_0x1aa709['columnInsertionRanges']['push'](_0x43c17c['model']['createRangeOn'](_0x24de85));},{'priority':'low'}),_0x222a9c['on']('insertRows',(_0xa4b95b,_0x54022b)=>{const [_0xc387fc,_0x589c65={}]=_0x54022b;if(!_0x1aa709)return;const _0x31cb66=_0x589c65['at']||0x0,_0x4f941a=_0x589c65['rows']||0x1;_0x1aa709['rowInsertionIndexes']=new Array(_0x4f941a)['fill'](_0x31cb66)['map']((_0x4adf75,_0x403aff)=>_0x4adf75+_0x403aff);for(const {cell:_0x57ad87}of _0x222a9c['createTableWalker'](_0xc387fc,{'startRow':_0x31cb66,'endRow':_0x31cb66+_0x4f941a-0x1}))_0x1aa709['rowInsertionRanges']['push'](_0x43c17c['model']['createRangeOn'](_0x57ad87));},{'priority':'low'}),_0x9f71f9['descriptionFactory']['registerDescriptionCallback'](_0x4741b4=>{if(_0x4741b4['subType']&&_0x4741b4['subType']['startsWith']('tablePaste'))return _0x4741b4['previous']?{}:{'type':'insertion','content':o(_0x43c17c['locale'],'*Replace\x20table\x20cells*')};});const _0x73715e=()=>!0x1;for(const _0x5ecf24 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x9f71f9['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ecf24,'join',_0x73715e),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ecf24,'join',_0x73715e),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ecf24,'join',_0x73715e);_0x9f71f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x73715e),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x129db8,_0x40a301,_0x184925)=>{const _0x4fa46c=_0x129db8['map'](_0x22d5af=>_0x22d5af['getContainedElement']())['filter'](_0x228786=>_0x228786),_0x544337=new Map(_0x4fa46c['map'](_0x521bea=>[_0x521bea,null]));if(_0x1aa709){for(const {element:_0x4bbd5b,attributes:_0xf975ff}of _0x1aa709['cells'])_0xf975ff&&_0x544337['set'](_0x4bbd5b,_0xf975ff);}else{if(_0x184925&&_0x184925['markerAttributes'])for(const [_0x30b645,_0x41042d]of Object['entries'](_0x184925['markerAttributes'])){const _0x4d033d=_0x43c17c['model']['markers']['get'](_0x30b645),_0x3e0b5e=_0x4d033d?_0x4d033d['getRange']()['getContainedElement']():null;_0x3e0b5e&&_0x544337['set'](_0x3e0b5e,_0x41042d);}}_0x43c17c['model']['change'](_0x1f2457=>{for(const [_0x3b3da8,_0x14aef8]of _0x544337)_0x1f2457['setAttributes']({...De,..._0x14aef8},_0x3b3da8);});});const _0x33858b=(_0x2323b4,_0x4fc44a)=>{_0x9f71f9['_suggestionFactory']['registerCustomCallback'](_0x2323b4,'tablePaste',_0x4fc44a,(_0x57b0ba,_0x2d5c63,_0x44c792)=>{_0x43c17c['model']['change'](_0x4b33b3=>{const _0x4f23e4=[];for(const _0x42ff3a of _0x57b0ba){const _0xccad2c=_0x42ff3a['start']['nodeAfter'];_0xccad2c['is']('element','tableCellSuggestion')&&_0x4f23e4['push'](_0xccad2c);}_0x9f71f9['_suggestionFactory']['getSuggestionCallback'](_0x2323b4,null,_0x4fc44a)(_0x57b0ba,_0x2d5c63,_0x44c792);for(const _0x180010 of _0x4f23e4)'$graveyard'!=_0x180010['root']['rootName']&&_0x4b33b3['unwrap'](_0x180010);});});};_0x33858b('insertion','accept'),_0x33858b('insertion','discard'),_0x33858b('deletion','accept'),_0x33858b('deletion','discard'),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x24b573=>{const _0x4c39dd=_0x24b573['map'](_0x438289=>_0x438289['getContainedElement']()),_0x5b1949=_0x4c39dd[0x0]['findAncestor']('table'),{minRow:_0x213693,maxRow:_0x3533c9}=_0xb6bfae['_getCoordsForCells'](_0x4c39dd);_0x222a9c['removeRows'](_0x5b1949,{'at':_0x213693,'rows':_0x3533c9-_0x213693+0x1});}),_0x9f71f9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xf9e06d=>{const _0x3d889e=_0xf9e06d['map'](_0x1c9a73=>_0x1c9a73['getContainedElement']()),_0x242d43=_0x3d889e[0x0]['findAncestor']('table'),{minColumn:_0x32baea,maxColumn:_0xf50088}=_0xb6bfae['_getCoordsForCells'](_0x3d889e);_0x222a9c['removeColumns'](_0x242d43,{'at':_0x32baea,'columns':_0xf50088-_0x32baea+0x1});});const _0x2aed8f=(_0x30fd91,_0x28b5b1)=>{if(!_0x28b5b1['subType']||!_0x28b5b1['subType']['startsWith']('tablePaste'))return;const _0x57e1b5=_0x28b5b1['attributes']['tablePasteChainId'],_0x3222f8=_0x9f71f9['getSuggestions']()['filter'](_0x5a4e56=>_0x5a4e56['isInContent']&&_0x5a4e56['attributes']&&_0x5a4e56['attributes']['tablePasteChainId']==_0x57e1b5);_0x3222f8['length']&&_0x28b5b1['getAllAdjacentSuggestions']()['length']!=_0x3222f8['length']&&_0x3222f8['reduce']((_0x31ed2e,_0x206b77)=>(_0x31ed2e['next']=_0x206b77,_0x206b77['previous']=_0x31ed2e,_0x206b77));};function _0x4d2163(_0x41d199,_0x40aca5=!0x0){const {id:_0x42ac59,authorId:_0x442bd1}=_0x9f71f9['_splitMarkerName'](_0x41d199['markerName']),_0x23d44f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x22cbbb=_0x9f71f9['activeMarkers']['includes'](_0x41d199['markerName']);return _0x22cbbb&&_0x23d44f['push']('ck-suggestion-marker--active'),{'classes':_0x23d44f,'attributes':{'data-suggestion':_0x42ac59,'data-author-id':_0x442bd1},'priority':_0x22cbbb&&_0x40aca5?0xbc2:0xbb8};}_0x9f71f9['on']('suggestionLoaded',_0x2aed8f,{'priority':'high'}),_0x9f71f9['on']('suggestionUnloaded',_0x2aed8f,{'priority':'high'}),_0x43c17c['model']['document']['registerPostFixer'](()=>{let _0x20a7d3=!0x1;const _0x27cf33=Array['from'](_0x43c17c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5795cc,data:_0x16650d}of _0x27cf33){const {group:_0x53bfc0,type:_0x4c832b,id:_0x520406}=_0x9f71f9['_splitMarkerName'](_0x5795cc);if('suggestion'!=_0x53bfc0||'deletion'!=_0x4c832b||_0x16650d['oldRange'])continue;if(!_0x9f71f9['hasSuggestion'](_0x520406))continue;const _0x21dd92=_0x9f71f9['getSuggestion'](_0x520406)['getRanges'](),_0xc746aa=_0x43c17c['plugins']['get']('Users')['me'];for(const _0x598484 of _0x9f71f9['getSuggestions']()){if(!_0x598484['isInContent']||_0x598484['author']!=_0xc746aa)continue;if('formatBlock'!=_0x598484['type']||'tablePasteCell'!=_0x598484['subType'])continue;if(_0x598484['getRanges']()['every'](_0x483783=>_0x21dd92['some'](_0x15030b=>_0x15030b['containsRange'](_0x483783,!0x0)))){for(const _0xf4a585 of _0x598484['getAllAdjacentSuggestions']())_0xf4a585['isInContent']&&(_0xf4a585['discard'](),_0x20a7d3=!0x0);}}}return _0x20a7d3;}),_0x43c17c['model']['document']['registerPostFixer'](_0x213e8f=>{const _0x10f89e=_0x43c17c['commands']['get']('redo');if(!_0x10f89e||!_0x10f89e['_createdBatches']['has'](_0x213e8f['batch']))return!0x1;let _0x5d5610=!0x1;const _0x24fcab=_0x43c17c['plugins']['get']('Users')['me'],_0x5887ac=_0x43c17c['model']['document']['differ']['getChanges'](),_0x4f2761=Array['from'](_0x43c17c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4e0877,data:_0x241d92})=>{const {group:_0x43e354,subType:_0x25003a,authorId:_0x2f8950}=_0x9f71f9['_splitMarkerName'](_0x4e0877);return'suggestion'==_0x43e354&&'tablePaste'==_0x25003a&&_0x2f8950==_0x24fcab['id']&&!_0x241d92['oldRange'];});for(const _0x5bc7b2 of _0x5887ac){if('insert'!=_0x5bc7b2['type']||'tableCellSuggestion'!=_0x5bc7b2['name']||0x1!=_0x5bc7b2['length'])continue;const _0x125c07=_0x213e8f['createRange'](_0x5bc7b2['position'],_0x5bc7b2['position']['getShiftedBy'](0x1));if(!_0x4f2761['find'](({data:_0x94f581})=>_0x94f581['newRange']['isEqual'](_0x125c07))){for(const {name:_0x54e94,data:_0x5a2e4f}of _0x4f2761)if(_0x125c07['containsRange'](_0x5a2e4f['newRange'])){_0x213e8f['updateMarker'](_0x54e94,{'range':_0x125c07}),_0x5d5610=!0x0;break;}}}return _0x5d5610;}),_0x43c17c['model']['document']['registerPostFixer'](_0x4e9292=>{let _0xd4836b=!0x1;const _0x28c9b9=_0x43c17c['plugins']['get']('Users')['me'],_0xbf7d14=_0x9f71f9['getSuggestions']()['filter'](_0x9d5747=>_0x9d5747['isInContent']&&_0x9d5747['author']==_0x28c9b9),_0x4b8e94=new Set(),_0x388fe5=new Set();for(const _0x2cdee3 of _0xbf7d14)if('tablePaste'==_0x2cdee3['subType'])for(const _0x25f903 of _0x2cdee3['getMarkers']()){const _0x3adfe3=_0x25f903['getRange']()['getContainedElement']();if(_0x3adfe3){if(_0x3adfe3['is']('element','tableCellSuggestion')&&He(_0x3adfe3)){_0x2cdee3['removeMarker'](_0x25f903['name']),_0x4b8e94['add'](_0x3adfe3),_0xd4836b=!0x0;const _0x16d9a1=_0x3adfe3['nextSibling'],_0x1d8aab=_0x3adfe3['previousSibling'],_0x529345=_0x16d9a1&&_0x16d9a1['is']('element','tableCellSuggestion'),_0x1eb9b0=_0x1d8aab&&_0x1d8aab['is']('element','tableCellSuggestion');_0x529345&&!_0x4b8e94['has'](_0x16d9a1)&&_0x388fe5['add'](_0x16d9a1),_0x1eb9b0&&!_0x4b8e94['has'](_0x1d8aab)&&_0x388fe5['add'](_0x1d8aab);}else _0x3adfe3['is']('element','paragraph')&&_0x3adfe3['isEmpty']&&(_0x2cdee3['removeMarker'](_0x25f903['name']),_0xd4836b=!0x0);}}else{if('tablePasteCell'==_0x2cdee3['subType']){if(!_0x2cdee3['attributes']||!_0x2cdee3['attributes']['tablePasteChainId'])continue;const _0x196ef2=_0x2cdee3['attributes']['markerAttributes'];if(_0x196ef2&&Object['keys'](_0x196ef2)['length'])continue;const _0x365f55=_0x2cdee3['attributes']['tablePasteChainId'];let _0x6d1348=!0x0,_0x243794=!0x0;for(const _0xdec5cd of _0xbf7d14)if(_0xdec5cd['subType']&&_0xdec5cd['subType']['startsWith']('tablePaste')){if(!_0xdec5cd['attributes']['tablePasteChainId']){_0x243794=!0x1;break;}if(_0xdec5cd['id']!=_0x2cdee3['id']&&_0xdec5cd['attributes']['tablePasteChainId']==_0x365f55){_0x6d1348=!0x1;break;}}_0x243794&&_0x6d1348&&(_0x2cdee3['removeMarkers'](),_0xd4836b=!0x0);}}for(const _0x125b14 of _0x4b8e94)_0x4e9292['remove'](_0x125b14);for(const _0x2fab9a of _0x388fe5)_0x4e9292['unwrap'](_0x2fab9a);return _0xd4836b;}),_0x43c17c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x26effa=>_0x4d2163(_0x26effa),'converterPriority':'high'}),_0x43c17c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x482ab9,_0x5d6575)=>_0x5d6575['options']['showSuggestionHighlights']?_0x4d2163(_0x482ab9,!0x1):null,'converterPriority':'high'});const _0x3f618c=_0x43c17c['editing']['view'];this['listenTo'](_0x3f618c['document'],'clipboardOutput',(_0x3a3766,_0x221fb1)=>{const _0x2a853d=[];for(const _0x2c5612 of _0x3f618c['createRangeIn'](_0x221fb1['content'])['getItems']())_0x2c5612['is']('element','suggestion-td')&&_0x2a853d['push'](_0x2c5612);_0x3f618c['change'](_0x3a829a=>{for(const _0xf513c7 of _0x2a853d)_0x3a829a['move'](_0x3a829a['createRangeIn'](_0xf513c7),_0x3a829a['createPositionBefore'](_0xf513c7)),_0x3a829a['remove'](_0xf513c7);});});}}function He(_0x9195f5){if(_0x9195f5['isEmpty'])return!0x0;const _0x54c059=_0x9195f5['getChild'](0x0);return _0x54c059['is']('element','paragraph')&&_0x54c059['isEmpty'];}function qe(_0x44a56b,_0x12cb57={},_0x3c4b48){for(const {isAnchor:_0x116992,cellHeight:_0x5bd86e,cellWidth:_0x1961ea}of _0x3c4b48['createTableWalker'](_0x44a56b,{'includeAllSlots':!0x0,..._0x12cb57}))if(!_0x116992||0x1!=_0x5bd86e||0x1!=_0x1961ea)return!0x1;return!0x0;}class Ot extends _0x1ac4a7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44d347=this['editor']['plugins']['get']('TrackChangesEditing');_0x44d347['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44d347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44d347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44d347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44d347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44d347['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cce5c,_0x3f6797){const _0x166889=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dca89=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5650ed=_0x3f6797['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x31705b=_0x5dca89['getColumnGroupElement'](_0x5650ed);let _0x2f5e5a=_0x31705b?_0x5dca89['getTableColumnsWidths'](_0x31705b):null,_0x10d716=_0x5650ed['getAttribute']('tableWidth')||null;const _0x4f788f=_0x3f6797['tableWidth']||_0x10d716,_0x2a62f0=_0x3f6797['columnWidths']||_0x2f5e5a,_0x1558e0=this['editor']['plugins']['get']('Users')['me'];for(const _0x5180eb of _0x166889['getSuggestions']()){const _0x32865a=_0x5180eb['getContainedElement']();if('resizeTable'===_0x5180eb['subType']&&_0x32865a===_0x5650ed){_0x5180eb['author']!==_0x1558e0&&_0x5180eb['discard']();const _0x510514=_0x5180eb['data']['commandParams'];_0x10d716=_0x510514[0x0]['tableWidth'],_0x2f5e5a=_0x510514[0x0]['columnWidths'];break;}}_0x1cce5c({'table':_0x5650ed,'tableWidth':_0x4f788f,'columnWidths':_0x2a62f0}),_0x166889['markBlockFormat'](_0x5650ed,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x10d716,'columnWidths':_0x2f5e5a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x52db28){if('formatBlock'!=_0x52db28['type']&&'formatInline'!=_0x52db28['type'])return;const {data:_0x1a6c67}=_0x52db28;if(_0x1a6c67&&'resizeTable'===_0x1a6c67['formatGroupId']){const _0xec5993='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xec5993)};}}}class xt extends _0x1ac4a7{['afterInit'](){const _0x20b5cf=this['editor'];_0x20b5cf['plugins']['has']('Template')&&_0x20b5cf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x1ac4a7{['afterInit'](){const _0x36ecf3=this['editor'];if(!_0x36ecf3['commands']['get']('insertTableOfContents'))return;_0x36ecf3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x105052=_0x36ecf3['plugins']['get']('TrackChangesEditing'),_0x36572e=_0x36ecf3['locale'];_0x105052['descriptionFactory']['registerElementLabel']('tableOfContents',_0x31a07e=>o(_0x36572e,'ELEMENT_TABLE_OF_CONTENTS',_0x31a07e));}}class Rt extends _0x1ac4a7{['afterInit'](){const _0x4b5430=this['editor'];if(!_0x4b5430['plugins']['has']('Title'))return;const _0x463ff9=_0x4b5430['plugins']['get']('TrackChangesEditing');_0x463ff9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4b5430['locale'],'ELEMENT_TITLE')),_0x4b5430['model']['document']['registerPostFixer'](_0x129bae=>{let _0x27df0a=!0x1;const _0x5b336c=Array['from'](_0x4b5430['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25f195,data:_0x49f4fb}of _0x5b336c){const {group:_0x11c71d}=_0x463ff9['_splitMarkerName'](_0x25f195);if('suggestion'!==_0x11c71d||!_0x49f4fb['newRange'])continue;const _0x370cc4=_0x49f4fb['newRange'],_0x3d4f43=_0x370cc4['end']['nodeBefore'];if(!_0x3d4f43||!_0x3d4f43['is']('element','title-content'))continue;if(!_0x370cc4['start']['isTouching'](_0x370cc4['end']))continue;const _0x239ba9=_0x4b5430['model']['schema']['getNearestSelectionRange'](_0x370cc4['end'],'forward');if(_0x239ba9&&_0x239ba9['isCollapsed']){const _0x3d4c9a=_0x129bae['createRange'](_0x370cc4['start'],_0x239ba9['start']);_0x3d4c9a['isEqual'](_0x370cc4)||(_0x129bae['updateMarker'](_0x25f195,{'range':_0x3d4c9a}),_0x27df0a=!0x0);}_0x27df0a||(_0x129bae['removeMarker'](_0x25f195),_0x27df0a=!0x0);}return _0x27df0a;});}}class Ut extends _0x1ac4a7{['afterInit'](){const _0x3fc424=this['editor'],_0x5a9310=_0x3fc424['plugins']['get']('TrackChangesEditing');_0x3fc424['plugins']['has']('Uploadcare')&&(_0x5a9310['enableCommand']('uploadcare'),_0x3fc424['plugins']['has']('UploadcareImageEdit')&&(_0x5a9310['enableCommand']('uploadcareImageEdit'),_0x5a9310['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5a9310['registerBlockAttribute']('uploadcareImageId'),_0x5a9310['descriptionFactory']['registerDescriptionCallback'](_0x1e882b=>{if('attribute'!=_0x1e882b['type'])return;const {data:_0x4e68b4}=_0x1e882b;return _0x4e68b4&&'uploadcareImageId'==_0x4e68b4['key']?{'type':'format','content':''}:void 0x0;})));}}class Vt extends _0x1ac4a7{['afterInit'](){const _0x45956e=this['editor'],_0x42bb4b=_0x45956e['plugins']['get']('TrackChangesEditing');_0x45956e['plugins']['has']('UndoEditing')&&(_0x42bb4b['enableCommand']('undo'),_0x42bb4b['enableCommand']('redo'));}}class Ft extends _0x1ac4a7{static get['requires'](){return[Nt];}['afterInit'](){const _0x3381c1=this['editor'];if(!_0x3381c1['plugins']['has']('TableCaptionEditing'))return;_0x3381c1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Pt extends _0x1ac4a7{['tableProperties'];['tableCellProperties'];constructor(_0x561c6c){super(_0x561c6c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x506a66=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4f0f53 of this['tableProperties'])_0x506a66['enableCommand'](_0x4f0f53,(_0x4a46e9,_0x1bb74f)=>{const _0x15bda4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4f0f53,[_0x15bda4],this['tableProperties'],'tableProperties',_0x4a46e9,_0x1bb74f);});_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x506a66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x565e8,_0x3eb194)=>this['handleDiscardAction'](this['tableProperties'],_0x565e8,_0x3eb194)),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x519f1f of this['tableCellProperties'])_0x506a66['enableCommand'](_0x519f1f,(_0x5e7882,_0x35831c)=>{const _0x555329=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x519f1f,_0x555329,this['tableCellProperties'],'tableCellProperties',_0x5e7882,_0x35831c);});_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x506a66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1043a5,_0x2d5521)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1043a5,_0x2d5521)),_0x506a66['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x506a66['descriptionFactory']['registerDescriptionCallback'](_0x96f312=>this['handleSuggestionDescription'](_0x96f312)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1a0458,_0x1d0dad,_0x69e40e,_0x4769b1,_0x30ef10,_0x5cd95f){const _0x4a276b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5cd95f['batch'],()=>{for(const _0x5b5bc1 of _0x1d0dad){if(this['_getSuggestion'](_0x5b5bc1,_0x4769b1))_0x30ef10(_0x5cd95f);else{const _0x307e53={};for(const _0x408573 of _0x69e40e){const _0x4a98f9=_0x5b5bc1['getAttribute'](_0x408573);void 0x0!==_0x4a98f9&&(_0x307e53[_0x408573]=_0x4a98f9);}_0x30ef10(_0x5cd95f),_0x4a276b['markBlockFormat'](_0x5b5bc1,{'commandParams':[_0x307e53]},[],_0x4769b1);}}});}['handleDiscardAction'](_0x3e5a81,_0x370491,_0x1f9e0f){const _0x4d7353=_0x370491[0x0]['start']['nodeAfter'],_0x475a70=_0x1f9e0f['commandParams'][0x0];this['editor']['model']['change'](_0x33b2b3=>{for(const _0x45350d of _0x3e5a81)void 0x0!==_0x475a70[_0x45350d]?_0x33b2b3['setAttribute'](_0x45350d,_0x475a70[_0x45350d],_0x4d7353):_0x33b2b3['removeAttribute'](_0x45350d,_0x4d7353);});}['handleSuggestionDescription'](_0x4441e0){if(_0x4441e0['data'])switch(_0x4441e0['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x60fddf,_0x21a23a){const _0x2fb2f9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4bf5cb of _0x2fb2f9['getSuggestions']({'skipNotAttached':!0x0})){const _0x2c7c99=_0x4bf5cb['getContainedElement']();if(_0x4bf5cb['subType']===_0x21a23a&&_0x2c7c99===_0x60fddf)return _0x4bf5cb;}return null;}['_registerTablePropertiesAttributes'](){const _0x393e73=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49e72d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x134656 of _0x49e72d){const _0x483885=_0x134656['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x393e73['registerBlockAttribute'](_0x134656),_0x393e73['descriptionFactory']['registerAttributeLabel'](_0x134656,o(this['editor']['locale'],'FORMAT_'+_0x483885));}}}class Gt extends _0x1ac4a7{['afterInit'](){const _0x187b47=this['editor'];if(!_0x187b47['plugins']['has']('LineHeight'))return;const _0x3de10a=_0x187b47['plugins']['get']('TrackChangesEditing'),_0xee62=_0x187b47['locale'];_0x3de10a['enableDefaultAttributesIntegration']('lineHeight'),_0x3de10a['registerBlockAttribute']('lineHeight'),_0x3de10a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xee62,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1ac4a7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x53c5da,_0x4dc787,_0x11ae4f,V,F,G,L,J,K,W,H,q,z,Q,Z,tt,et,it,nt,st,ot,rt,at,ct,ft,ut,ht,gt,lt,mt,pt,yt,dt,X,Gt,Y,kt,wt,bt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Bt,Ft,Tt,Ot,Et,Pt,xt,Rt,Ut,Vt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe16974){super(_0xe16974),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ef9f0,_0x351c26,_0x24e387,_0x4589be)=>{this['_model']['change'](()=>{for(const _0x21d13a of[..._0x4589be,..._0x24e387])this['_model']['markers']['has'](_0x21d13a)&&_0xe16974['editing']['reconvertMarker'](_0x21d13a);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Jt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xe16974['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0xe16974['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xe16974['config']['get']('trackChanges.trackFormatChanges'),_0xe16974['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xe16974['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xe16974,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x17436f=this['editor'],_0x52ee2f=(_0x28be7e,_0x2feaa7)=>{if('attribute'!=_0x28be7e)return'ck-suggestion-marker-'+_0x28be7e;const _0x59fb32=_0x2feaa7['split']('|')[0x0];return this['_isBlockAttribute'](_0x59fb32)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x17436f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x17524b=>{const {id:_0x3df7b7,authorId:_0x25b9e3,type:_0x3f759f,subType:_0x3a600e}=this['_splitMarkerName'](_0x17524b['markerName']),_0x25af46=['ck-suggestion-marker',_0x52ee2f(_0x3f759f,_0x3a600e)];let _0x107e33=0xbb8;return this['activeMarkers']['includes'](_0x17524b['markerName'])&&(_0x25af46['push']('ck-suggestion-marker--active'),_0x107e33=0xbc2),'deletion'==_0x3f759f&&(_0x107e33+=0x5),{'classes':_0x25af46,'attributes':{'data-suggestion':_0x3df7b7,'data-author-id':_0x25b9e3},'priority':_0x107e33};}}),_0x17436f['conversion']['for']('dataDowncast')['add'](_0x53b1ba=>{_0x53b1ba['on']('addMarker:suggestion',(_0x54da3d,_0x302e00,_0x1f54d0)=>{if(!_0x1f54d0['options']['showSuggestionHighlights'])return;const _0x58578f=_0x302e00['item'];if(!_0x58578f)return;const _0x5999c2=_0x1f54d0['mapper']['toViewElement'](_0x58578f);_0x17436f['model']['schema']['isObject'](_0x58578f)&&_0x5999c2&&!_0x5999c2['getCustomProperty']('widget')&&_0x5999c2['is']('containerElement')&&_0x376b06(_0x5999c2,_0x1f54d0['writer']);},{'priority':'high'});}),_0x17436f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xea98b3,_0x96a7c5)=>{if(!_0x96a7c5['options']['showSuggestionHighlights'])return null;const {id:_0x32bf06,authorId:_0x2d72d3,type:_0x4f29e7,subType:_0x20ba7d}=this['_splitMarkerName'](_0xea98b3['markerName']);return{'classes':['ck-suggestion-marker',_0x52ee2f(_0x4f29e7,_0x20ba7d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x32bf06,'data-author-id':_0x2d72d3}};}});const _0x2e473a=({showActiveMarkers:_0x23f50b=!0x0,isAttributeSuggestion:_0x29c0d8=!0x1}={})=>(_0x1a87d6,_0x547910,_0x16655a)=>{if(!_0x547910['item'])return;const {id:_0x2142d5,authorId:_0x2a7643,subType:_0xa42f13}=this['_splitMarkerName'](_0x547910['markerName']);if(_0x29c0d8){const _0x4eb8db=oe(_0xa42f13);if(!this['_isBlockAttribute'](_0x4eb8db))return;}if(_0x547910['item']['is']('selection'))return void _0x16655a['consumable']['consume'](_0x547910['item'],_0x1a87d6['name']);const _0x4693a8=_0x16655a['mapper']['toViewElement'](_0x547910['item']);if(_0x547910['item']['is']('element')&&_0x17436f['model']['schema']['isBlock'](_0x547910['item'])&&!_0x4693a8['getCustomProperty']('addHighlight')){_0x16655a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4693a8),_0x16655a['writer']['setAttribute']('data-suggestion',_0x2142d5,_0x4693a8),_0x16655a['writer']['setAttribute']('data-author-id',_0x2a7643,_0x4693a8),_0x16655a['mapper']['bindElementToMarker'](_0x4693a8,_0x547910['markerName']),_0x23f50b&&(this['activeMarkers']['includes'](_0x547910['markerName'])?_0x16655a['writer']['addClass']('ck-suggestion-marker--active',_0x4693a8):_0x16655a['writer']['removeClass']('ck-suggestion-marker--active',_0x4693a8));for(const _0xd58205 of _0x17436f['model']['createRangeIn'](_0x547910['item'])['getItems']())_0x16655a['consumable']['consume'](_0xd58205,_0x1a87d6['name']);_0x16655a['consumable']['consume'](_0x547910['item'],_0x1a87d6['name']);}};_0x17436f['conversion']['for']('dataDowncast')['add'](_0x242b3f=>{_0x242b3f['on']('addMarker:suggestion:formatBlock',(_0x468183,_0x1862b7,_0x11f310)=>{_0x11f310['options']['showSuggestionHighlights']&&_0x2e473a({'showActiveMarkers':!0x1})(_0x468183,_0x1862b7,_0x11f310);},{'priority':'highest'});}),_0x17436f['conversion']['for']('dataDowncast')['add'](_0x4e6253=>{_0x4e6253['on']('addMarker:suggestion:attribute',(_0xae9bdd,_0x2f877b,_0x1a9075)=>{_0x1a9075['options']['showSuggestionHighlights']&&_0x2e473a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xae9bdd,_0x2f877b,_0x1a9075);},{'priority':'highest'});}),_0x17436f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1c07fe,_0x55abb8)=>{if(_0x55abb8['options']['showSuggestionHighlights']){const {id:_0x3e49a9,authorId:_0x551928}=this['_splitMarkerName'](_0x1c07fe);return _0x1c07fe['includes'](':split')||_0x1c07fe['includes'](':merge')?{'group':'suggestion','name':_0x1c07fe['substr'](0xb),'attributes':{'data-suggestion':_0x3e49a9,'data-author-id':_0x551928}}:null;}return{'group':'suggestion','name':_0x1c07fe['substr'](0xb)};}}),_0x17436f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a073a,{writer:_0x8514dc})=>{let _0x53585a='suggestion:'+_0x4a073a['getAttribute']('suggestion-type')+':'+_0x4a073a['getAttribute']('id');return _0x4a073a['getAttribute']('marker-count')&&(_0x53585a+=':'+_0x4a073a['getAttribute']('marker-count')),_0x8514dc['createElement']('$marker',{'data-name':_0x53585a});}}),_0x17436f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0xa89c91=>{_0xa89c91['on']('addMarker:suggestion:formatBlock',_0x2e473a(),{'priority':'high'});}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0xb33980=>{_0xb33980['on']('addMarker:suggestion:attribute',_0x2e473a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0x3e0c0e=>{_0x3e0c0e['on']('removeMarker:suggestion:formatBlock',(_0x4502c7,_0x1e84bc,_0x51de5c)=>{const _0x4dfb76=_0x51de5c['mapper']['markerNameToElements'](_0x1e84bc['markerName']);if(_0x4dfb76){for(const _0x813fdf of _0x4dfb76)_0x813fdf['getCustomProperty']('addHighlight')||(_0x51de5c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x813fdf),_0x51de5c['writer']['removeAttribute']('data-suggestion',_0x813fdf),_0x51de5c['writer']['removeAttribute']('data-author-id',_0x813fdf),_0x51de5c['mapper']['unbindElementFromMarkerName'](_0x813fdf,_0x1e84bc['markerName']));}},{'priority':'high'});}),_0x17436f['conversion']['for']('editingDowncast')['add'](_0x133084=>{_0x133084['on']('removeMarker:suggestion:attribute',(_0x316a29,_0x3f0836,_0x4f2d82)=>{const _0x2b7216=_0x4f2d82['mapper']['markerNameToElements'](_0x3f0836['markerName']);if(!_0x2b7216)return;const {subType:_0x29cec3}=this['_splitMarkerName'](_0x3f0836['markerName']),_0x4d05bf=oe(_0x29cec3);if(this['_isBlockAttribute'](_0x4d05bf)){for(const _0x40357f of _0x2b7216)_0x40357f['getCustomProperty']('addHighlight')||(_0x4f2d82['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40357f),_0x4f2d82['writer']['removeAttribute']('data-suggestion',_0x40357f),_0x4f2d82['writer']['removeAttribute']('data-author-id',_0x40357f),_0x4f2d82['mapper']['unbindElementFromMarkerName'](_0x40357f,_0x3f0836['markerName']));}},{'priority':'high'});}),_0x17436f['model']['document']['registerPostFixer'](_0x3378d3=>{let _0x2454c6=!0x1;const _0x4d9da3=Array['from'](_0x17436f['model']['document']['differ']['getChangedMarkers']()),_0x12a3a6=new Set();for(const {name:_0x11d5fd,data:_0x529c63}of _0x4d9da3){const {group:_0x54a956,type:_0x1c0c7e,subType:_0x26c87b,id:_0x578753}=this['_splitMarkerName'](_0x11d5fd);if('suggestion'!==_0x54a956)continue;const _0x4e16e6=_0x26c87b?'suggestion:'+_0x1c0c7e+':'+_0x26c87b+':'+_0x578753:'suggestion:'+_0x1c0c7e+':'+_0x578753,_0x4531e4=_0x17436f['model']['markers']['getMarkersGroup'](_0x4e16e6),_0x4e9c97=_0x17436f['model']['markers']['get'](_0x11d5fd),_0x53faf5=this['_suggestions']['get'](_0x578753);if(null!=_0x529c63['newRange']){'formatInline'==_0x1c0c7e&&(_0x2454c6=_0x2454c6||Wt(_0x529c63['newRange'],_0x11d5fd,_0x3378d3,_0x17436f['model']['schema']));const _0x344274='attribute'==_0x1c0c7e&&this['_isBlockAttribute'](_0x26c87b['split']('|')[0x0]),_0xfc0be1='attribute'==_0x1c0c7e&&this['_isInlineAttribute'](_0x26c87b['split']('|')[0x0]);if(_0x529c63['newRange']['isCollapsed']||'$graveyard'==_0x529c63['newRange']['root']['rootName']||'formatBlock'==_0x1c0c7e&&!zt(_0x529c63['newRange'])||_0x344274&&!zt(_0x529c63['newRange'])||_0xfc0be1&&Qt(_0x529c63['newRange'])||'deletion'==_0x1c0c7e&&Qt(_0x529c63['newRange'])||_0x4e9c97&&Xt(_0x4e9c97,_0x4531e4))_0x3378d3['removeMarker'](_0x11d5fd),_0x2454c6=!0x0;else{if(!_0x53faf5||!_0x53faf5['isInContent'])continue;if(_0x529c63['newRange']&&_0x529c63['oldRange']&&_0x529c63['newRange']['isEqual'](_0x529c63['oldRange']))continue;_0x12a3a6['add'](_0x53faf5);}}}return _0x12a3a6['size']>0x0&&(_0x2454c6=!!this['_joinWithAdjacentSuggestions'](_0x12a3a6)||_0x2454c6),_0x2454c6;}),_0x17436f['model']['document']['registerPostFixer'](_0x183e14=>{let _0x431d35=!0x1;for(const _0x17e86d of _0x17436f['model']['document']['differ']['getChanges']())if('insert'==_0x17e86d['type'])for(const _0x55e267 of this['_suggestions']['values']()){if(_0x55e267['isMultiRange']||!_0x55e267['isInContent'])continue;const _0x1aee49='formatBlock'==_0x55e267['type'],_0x3dee33=this['_getAttributeKey'](_0x55e267),_0x161e06=_0x3dee33&&this['_isBlockAttribute'](_0x3dee33);if(!_0x1aee49&&!_0x161e06)continue;const _0x31b409=_0x55e267['getFirstRange']();if(_0x31b409['start']['parent']!=_0x31b409['end']['parent']&&!_0x31b409['end']['isAtEnd']){const _0x50e33f=_0x17436f['model']['createPositionAt'](_0x31b409['start']['nodeAfter'],'end'),_0xd7e717=_0x17436f['model']['createRange'](_0x31b409['start'],_0x50e33f);_0x183e14['updateMarker'](_0x55e267['getFirstMarker'](),{'range':_0xd7e717}),_0x431d35=!0x0;}}return _0x431d35;}),_0x17436f['model']['document']['registerPostFixer'](_0x305a13=>this['_processAttributeChanges'](_0x305a13)),_0x17436f['model']['document']['registerPostFixer'](_0x1899cb=>!_0x1899cb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1899cb)),_0x17436f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x17436f['model']['document']['on']('change:data',(_0x5154c5,_0x2c86ec)=>{if(!_0x2c86ec['isLocal']||_0x2c86ec['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x122c24=_0x17436f['model']['document']['differ']['getChanges']();if(0x0==_0x122c24['length'])return;const _0x28aadc=[],_0x47a92c=_0x122c24['filter'](_0x9e436f=>'attribute'==_0x9e436f['type']),_0x271333=_0x122c24['filter'](_0x138844=>'insert'==_0x138844['type']&&'$text'!=_0x138844['name']);for(const _0x4c051e of _0x47a92c)this['_isRegisteredAttribute'](_0x4c051e['attributeKey'])&&_0x28aadc['push']({'key':_0x4c051e['attributeKey'],'newValue':_0x4c051e['attributeNewValue'],'oldValue':_0x4c051e['attributeOldValue'],'range':Zt(_0x4c051e['range'],_0x17436f['model'])});for(const _0x300697 of _0x271333){if('rename'!=_0x300697['action']&&'refresh'!=_0x300697['action'])continue;const _0xf109e9=te(_0x300697['position']['nodeAfter'],_0x17436f['model']),_0x344dd3=_0x300697['before'];'rename'==_0x300697['action']&&_0x28aadc['push']({'key':m,'newValue':_0x300697['name'],'oldValue':_0x344dd3['name'],'range':_0xf109e9});for(const [_0x37d1e5,_0x3a0926]of _0x344dd3['attributes']){if(!this['_isRegisteredAttribute'](_0x37d1e5))continue;const _0x3c2e4b=_0x300697['attributes']['get'](_0x37d1e5);_0x3a0926!==_0x3c2e4b&&_0x28aadc['push']({'key':_0x37d1e5,'newValue':_0x3c2e4b,'oldValue':_0x3a0926,'range':_0xf109e9});}for(const [_0x4b471b,_0x162384]of _0x300697['attributes'])this['_isRegisteredAttribute'](_0x4b471b)&&(_0x344dd3['attributes']['has'](_0x4b471b)||_0x28aadc['push']({'key':_0x4b471b,'newValue':_0x162384,'oldValue':null,'range':_0xf109e9}));}0x0!=_0x28aadc['length']&&_0x17436f['model']['enqueueChange'](_0x2c86ec,_0x658a85=>{const _0x5cb728=_0x668662();for(const {range:_0x576ec7,key:_0x3ef17c,oldValue:_0x177008,newValue:_0x622a7d}of _0x28aadc)this['markAttributeChange'](_0x576ec7,_0x3ef17c,_0x177008,_0x622a7d,{'groupId':_0x5cb728});this['_reduceExistingSuggestions'](_0x658a85,_0x28aadc);});},{'priority':'lowest'}),_0x17436f['model']['markers']['on']('update:suggestion',(_0x15adf0,_0x623476,_0x2f6ba2)=>{if(null==_0x2f6ba2){const {id:_0x2fae5d}=this['_splitMarkerName'](_0x623476['name']),_0x548af4=this['_suggestions']['get'](_0x2fae5d);_0x548af4&&_0x548af4['addMarkerName'](_0x623476['name']);}}),_0x17436f['model']['document']['on']('change:data',()=>{const _0x17c388=Array['from'](_0x17436f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x264d22=>'suggestion'===this['_splitMarkerName'](_0x264d22['name'])['group']);if(0x0===_0x17c388['length'])return;_0x17c388['sort']((_0x4ed1ff,_0x10050f)=>{const _0x47dd5c=_0x4ed1ff['data']['oldRange'],_0x521cc6=_0x10050f['data']['oldRange'];return null===_0x47dd5c&&null===_0x521cc6?0x0:null===_0x47dd5c&&null!==_0x521cc6?-0x1:null!==_0x47dd5c&&null===_0x521cc6?0x1:_0x47dd5c['start']['isBefore'](_0x521cc6['start'])?-0x1:0x1;});const _0x5451ee=new Set(),_0x2592e5=new Set();for(const {name:_0x49fe90,data:_0x160caf}of _0x17c388){const {id:_0x49f30e}=this['_splitMarkerName'](_0x49fe90);if(null===_0x160caf['oldRange']){const _0x667549=this['_handleNewSuggestionMarker'](_0x49fe90);_0x2592e5['add'](_0x667549);}else{const _0x57e53a=this['_suggestions']['get'](_0x49f30e);null!==_0x160caf['newRange']||_0x57e53a['isInContent']?(_0x5451ee['add'](_0x57e53a['head']),_0x2592e5['add'](_0x57e53a)):this['_removeSuggestion'](_0x57e53a);}}_0x2592e5['size']>0x0&&this['_refreshSuggestionsChain'](_0x2592e5);for(const _0x4468af of _0x5451ee)this['fire']('suggestionChanged',_0x4468af);}),_0x17436f['model']['on']('applyOperation',(_0x6a5761,_0x4203bb)=>{const _0x430421=_0x4203bb[0x0];if(!this['_suggestions']['size'])return;if(!_0x430421['isDocumentOperation'])return;if(_0x430421['batch']['isUndo']||!_0x430421['batch']['isLocal'])return;let _0x3f19a9,_0x2b6c7d;switch(_0x430421['type']){case'insert':_0x3f19a9=_0x17436f['model']['createPositionAt'](_0x430421['position']),_0x2b6c7d=_0x3f19a9['getShiftedBy'](_0x430421['howMany']);break;case'split':_0x3f19a9=_0x17436f['model']['createPositionAt'](_0x430421['splitPosition']),_0x2b6c7d=_0x17436f['model']['createPositionAt'](_0x430421['moveTargetPosition']);break;case'move':_0x3f19a9=_0x17436f['model']['createPositionAt'](_0x430421['targetPosition']),_0x2b6c7d=_0x3f19a9['getShiftedBy'](_0x430421['howMany']);break;default:return;}const _0x5c70ca=_0x17436f['model']['createRange'](_0x3f19a9,_0x2b6c7d);_0x17436f['model']['change'](()=>{for(const {suggestion:_0x29ecfb,meta:_0x460538}of this['_findSuggestions'](_0x5c70ca)){if(_0x29ecfb['isMultiRange'])continue;if('formatInline'==_0x29ecfb['type'])continue;const _0x6f1b3e=this['_getAttributeKey'](_0x29ecfb);if(_0x6f1b3e&&this['_isBlockAttribute'](_0x6f1b3e)&&'split'!=_0x430421['type'])continue;const _0x3257c6=_0x29ecfb['data']&&_0x29ecfb['data']['multipleBlocks'];('formatBlock'!=_0x29ecfb['type']||'split'==_0x430421['type']&&!_0x3257c6)&&(_0x460538['containsRangeInObject']||'insertion'==_0x29ecfb['type']&&_0x460538['isOwn']||_0x29ecfb['getFirstRange']()['containsRange'](_0x5c70ca)&&this['_breakSuggestionMarker'](_0x29ecfb,_0x3f19a9,_0x2b6c7d));}});},{'priority':'lowest'}),_0x17436f['model']['on']('deleteContent',(_0x216f28,_0x171a58)=>{const _0x23f47e=_0x171a58[0x0],_0x3bb72f=_0x171a58[0x1];if(_0x3bb72f&&_0x3bb72f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x23f47e['isCollapsed'])return;const _0x4749ce=_0x17436f['model']['schema'],{start:_0x15c3a8,end:_0x3853dc}=_0x23f47e['getFirstRange'](),_0x221457=_0x15c3a8['nodeAfter']&&_0x4749ce['isLimit'](_0x15c3a8['nodeAfter'])?null:_0x4749ce['getNearestSelectionRange'](_0x15c3a8,'forward'),_0x148196=_0x3853dc['nodeBefore']&&_0x4749ce['isLimit'](_0x3853dc['nodeBefore'])?null:_0x4749ce['getNearestSelectionRange'](_0x3853dc,'backward'),_0x1c1def=_0x17436f['model']['createRange'](_0x221457?_0x221457['start']:_0x15c3a8,_0x148196?_0x148196['end']:_0x3853dc);_0x17436f['model']['change'](_0x4e9eec=>{this['markDeletion'](_0x1c1def);const _0x2f0eb3=_0x17436f['model']['schema']['getNearestSelectionRange'](_0x1c1def['start']);_0x23f47e['is']('documentSelection')?_0x4e9eec['setSelection'](_0x2f0eb3):_0x23f47e['setTo'](_0x2f0eb3);}),_0x216f28['stop']();},{'priority':_0x48e2dc['normal']+0xa}),_0x17436f['model']['on']('insertContent',(_0x47c4bd,_0x45e9fe)=>{const _0xb6a043=_0x45e9fe[_0x45e9fe['length']-0x1];_0xb6a043&&_0xb6a043['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x17436f['model']['change'](()=>{let _0x4d5e6a=_0x17436f['model']['insertContent'](_0x45e9fe[0x0],_0x45e9fe[0x1],_0x45e9fe[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d5e6a)return;_0x47c4bd['return']=_0x4d5e6a['clone']();const _0x1f4045=_0x4d5e6a['end']['nodeBefore'],_0x41f099=_0x17436f['model']['schema'];_0x1f4045&&_0x41f099['isBlock'](_0x1f4045)&&!_0x41f099['isObject'](_0x1f4045)&&(_0x4d5e6a=_0x17436f['model']['createRange'](_0x4d5e6a['start'],_0x17436f['model']['createPositionAt'](_0x1f4045,'end'))),this['markInsertion'](_0x4d5e6a);}),_0x47c4bd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d85d5=new T(_0x17436f,this['_suggestions']);_0x17436f['commands']['add']('acceptSuggestion',_0x1d85d5),this['enableCommand']('acceptSuggestion');const _0x1f29b8=new O(_0x17436f,this['_suggestions']);_0x17436f['commands']['add']('discardSuggestion',_0x1f29b8),this['enableCommand']('discardSuggestion'),_0x17436f['commands']['add']('acceptAllSuggestions',new x(_0x17436f,_0x1d85d5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x17436f['commands']['add']('discardAllSuggestions',new x(_0x17436f,_0x1f29b8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x17436f['commands']['add']('acceptSelectedSuggestions',new E(_0x17436f,_0x1d85d5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x17436f['commands']['add']('discardSelectedSuggestions',new E(_0x17436f,_0x1f29b8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x129465=_0x17436f['plugins']['get']('CommentsRepository');this['listenTo'](_0x129465,'addComment',(_0x32e664,{threadId:_0x964b6e})=>{const _0xcab355=this['_suggestions']['get'](_0x964b6e);_0xcab355&&_0xcab355['commentThread']&&0x1===_0xcab355['commentThread']['length']&&this['_updateSuggestionData'](_0x964b6e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x129465,'removeComment',(_0x242d45,{threadId:_0x13ed87})=>{const _0x1bb9ad=this['_suggestions']['get'](_0x13ed87);_0x1bb9ad&&_0x1bb9ad['commentThread']&&!_0x1bb9ad['commentThread']['length']&&this['_updateSuggestionData'](_0x13ed87,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4bdfe9){const _0x3083f9=_0x40664d([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x26cff4=0x6b0f5e6f,_0x450ab3=0x6b082aaf^_0x26cff4,_0x34ccfd=window[_0x40664d([0x44,0x61,0x74,0x65])][_0x40664d([0x6e,0x6f,0x77])](),_0x10f4fc=_0x4bdfe9[_0x40664d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x413931=new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x532ff1=>{_0x10f4fc[_0x40664d([0x6f,0x6e,0x63,0x65])](_0x40664d([0x72,0x65,0x61,0x64,0x79]),_0x532ff1);}),_0x55908e={[_0x40664d([0x6b,0x74,0x79])]:_0x40664d([0x45,0x43]),[_0x40664d([0x75,0x73,0x65])]:_0x40664d([0x73,0x69,0x67]),[_0x40664d([0x63,0x72,0x76])]:_0x40664d([0x50,0x2d,0x32,0x35,0x36]),[_0x40664d([0x78])]:_0x40664d([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x40664d([0x79])]:_0x40664d([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x40664d([0x61,0x6c,0x67])]:_0x40664d([0x45,0x53,0x32,0x35,0x36])},_0x2ec93e=_0x10f4fc[_0x40664d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40664d([0x67,0x65,0x74])](_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32e5e9(){let _0x21cff0,_0x161782=null,_0x5a4b43=null;try{if(_0x2ec93e==_0x40664d([0x47,0x50,0x4c]))return _0x40664d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21cff0=_0x84a8cf(),!_0x21cff0)return _0x40664d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21cff0[_0x40664d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a4b43=_0x4c030e(_0x21cff0[_0x40664d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21cff0[_0x40664d([0x6a,0x74,0x69])])),await _0x580a8f()?_0x209802()?_0x10e424()?_0x40664d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d93e6()?(_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40664d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x161782=_0x44a5fe(_0x40664d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40664d([0x74,0x72,0x69,0x61,0x6c])&&(_0x161782=_0x44a5fe(_0x40664d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5193e8()):_0x40664d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40664d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40664d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40664d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10e424(){const _0x43ae6b=[_0x40664d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40664d([0x74,0x72,0x69,0x61,0x6c])][_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34ccfd/0x3e8:0xe10*_0x450ab3;return _0x21cff0[_0x40664d([0x65,0x78,0x70])]<_0x43ae6b;}function _0x209802(){const _0x116225=_0x21cff0[_0x40664d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x116225)return!0x1;if(_0x116225[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x2a])))return!0x0;if(_0x116225[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x54,0x43])))return!0x0;if(_0x116225[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x52,0x54,0x43]))){if(_0x9d1e04())return!0x0;if(_0x3fee05()||_0x28c433())return!0x0;}return!0x1;}function _0x3d93e6(){const _0x25c78e=_0x21cff0[_0x40664d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25c78e||0x0==_0x25c78e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17a2b1}=new URL(window[_0x40664d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25c78e[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a2b1))return!0x0;const _0x5a339e=_0x17a2b1[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e]));return _0x25c78e[_0x40664d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4123e4=>_0x4123e4[_0x40664d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40664d([0x2a])))[_0x40664d([0x6d,0x61,0x70])](_0x1fb249=>_0x1fb249[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e])))[_0x40664d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x109005=>_0x109005[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a339e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40664d([0x6d,0x61,0x70])](_0x356fd8=>Array(_0x5a339e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x356fd8[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40664d([0x66,0x69,0x6c,0x6c])](_0x356fd8[0x0]===_0x40664d([0x2a])?_0x40664d([0x2a]):'')[_0x40664d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x356fd8))[_0x40664d([0x73,0x6f,0x6d,0x65])](_0xa3f1f4=>_0x5a339e[_0x40664d([0x65,0x76,0x65,0x72,0x79])]((_0x5f60b4,_0x2ff4d0)=>_0xa3f1f4[_0x2ff4d0]===_0x5f60b4||_0xa3f1f4[_0x2ff4d0]===_0x40664d([0x2a])));}function _0x5193e8(){return _0x161782&&_0x5a4b43?new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x557df3,_0x12993e)=>{_0x161782[_0x40664d([0x74,0x68,0x65,0x6e])](_0x557df3,_0x12993e),_0x5a4b43[_0x40664d([0x74,0x68,0x65,0x6e])](_0x39d3d9=>{_0x39d3d9!=_0x40664d([0x56,0x61,0x6c,0x69,0x64])&&_0x557df3(_0x39d3d9);},_0x12993e);}):_0x161782||_0x5a4b43||_0x40664d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c030e(_0x18a9db,_0x3bba85){return new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9ebb89=>{if(_0x5ea360())return _0x9ebb89(_0x40664d([0x56,0x61,0x6c,0x69,0x64]));_0x4e348d(),_0x10f4fc[_0x40664d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40664d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x571c6b=!0x1;const _0x3ea523=_0x668662();function _0x34eace(_0x246920){return!!_0x246920&&(typeof _0x246920===_0x40664d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x246920===_0x40664d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x246920[_0x40664d([0x74,0x68,0x65,0x6e])]===_0x40664d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x246920[_0x40664d([0x63,0x61,0x74,0x63,0x68])]===_0x40664d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f3d76(_0x77f453){_0xf1be61(_0x77f453)[_0x40664d([0x74,0x68,0x65,0x6e])](_0x21fa00=>{if(!_0x21fa00||_0x21fa00[_0x40664d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40664d([0x6f,0x6b]))return _0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e4333(_0x22759a(_0x3ea523+_0x3bba85))!=_0x21fa00[_0x40664d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40664d([0x56,0x61,0x6c,0x69,0x64]);})[_0x40664d([0x74,0x68,0x65,0x6e])](_0x41c066=>(_0x186264(),_0x41c066),()=>{const _0x112ce9=_0x5320d1();return null==_0x112ce9?(_0x186264(),_0x40664d([0x56,0x61,0x6c,0x69,0x64])):_0x40664d(_0x34ccfd-_0x112ce9>(0x4f03da6f^_0x26cff4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40664d([0x74,0x68,0x65,0x6e])](_0x9ebb89)[_0x40664d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9ebb89(_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31ceb6=0x6b39b0ef^_0x26cff4;function _0x186264(){const _0x2c3a61=_0x40664d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4333(_0x22759a(_0x18a9db)),_0x338d8a=_0x3a8d87(_0x3e4333(window[_0x40664d([0x4d,0x61,0x74,0x68])][_0x40664d([0x63,0x65,0x69,0x6c])](_0x34ccfd/_0x31ceb6)));window[_0x40664d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40664d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c3a61,_0x338d8a);}function _0x5320d1(){const _0x5d4a63=_0x40664d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4333(_0x22759a(_0x18a9db)),_0x3c2c00=window[_0x40664d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40664d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d4a63);return _0x3c2c00?window[_0x40664d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a8d87(_0x3c2c00),0x10)*_0x31ceb6:null;}function _0xf1be61(_0x4407d9){return new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31677c,_0x1b49ed)=>{_0x4407d9[_0x40664d([0x74,0x68,0x65,0x6e])](_0x31677c,_0x1b49ed),window[_0x40664d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b49ed,0x6b0e8aaf^_0x26cff4);});}}_0x10f4fc[_0x40664d([0x6f,0x6e])](_0x40664d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c8508,_0x529ca4)=>{if(_0x529ca4[0x0]!=_0x18a9db)return _0x9ebb89(_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x529ca4[0x1]={..._0x529ca4[0x1],[_0x40664d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ea523};},{[_0x40664d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40664d([0x68,0x69,0x67,0x68])}),_0x10f4fc[_0x40664d([0x6f,0x6e])](_0x40664d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2abf58=>{_0x34eace(_0x2abf58[_0x40664d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x571c6b=!0x0,_0x4f3d76(_0x2abf58[_0x40664d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40664d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40664d([0x6c,0x6f,0x77])}),_0x413931[_0x40664d([0x74,0x68,0x65,0x6e])](()=>{_0x571c6b||_0x9ebb89(_0x40664d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ea360(){return _0x10f4fc[_0x40664d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40664d([0x76,0x69,0x65,0x77])][_0x40664d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40664d([0x61,0x75,0x74,0x6f]);}function _0x4e348d(){_0x10f4fc[_0x40664d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40664d([0x76,0x69,0x65,0x77])][_0x40664d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40664d([0x61,0x75,0x74,0x6f]);}}function _0x44a5fe(_0xf2a411){const _0x55993a=[new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32162c=>setTimeout(_0x32162c,0x6b0660a3^_0x26cff4)),_0x413931[_0x40664d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a0c8=>{let _0x4a01b6=0x0;_0x10f4fc[_0x40664d([0x6d,0x6f,0x64,0x65,0x6c])][_0x40664d([0x6f,0x6e])](_0x40664d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x281865,_0x3778a8)=>{_0x3778a8[0x0][_0x40664d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a01b6++,_0x4a01b6==(0x6b0f5f97^_0x26cff4)&&(_0x13a0c8(),_0x281865[_0x40664d([0x6f,0x66,0x66])]());});}))];return window[_0x40664d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40664d([0x72,0x61,0x63,0x65])](_0x55993a)[_0x40664d([0x74,0x68,0x65,0x6e])](()=>_0xf2a411);}async function _0x3b1fb2(){await _0x413931,_0x10f4fc[_0x40664d([0x6d,0x6f,0x64,0x65,0x6c])][_0x40664d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4aff44,_0x10f4fc[_0x40664d([0x6d,0x6f,0x64,0x65,0x6c])][_0x40664d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4aff44,_0x10f4fc[_0x40664d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40664d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9d1e04(){return _0x38bda4(_0x40664d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2773fb(_0x40664d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x40664d([0x73,0x74,0x61,0x74,0x65])]==_0x40664d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3fee05(){return _0x38bda4(_0x40664d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x28c433(){return _0x38bda4(_0x40664d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x27a341(_0x2ef2ea){const _0x171305=_0x1ba290();_0x10f4fc[_0x171305]=_0x40664d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ef2ea,_0x2ef2ea!=_0x40664d([0x56,0x61,0x6c,0x69,0x64])&&_0x3b1fb2();}function _0x1ba290(){const _0x4d450d=window[_0x40664d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40664d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40664d([0x6e,0x6f,0x77])]())[_0x40664d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40664d([0x2e]),'');let _0x48f2ab=_0x40664d([0x67]);for(let _0x3d4a39=0x0;_0x3d4a39<_0x4d450d[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d4a39+=0x2){let _0xf8738c=window[_0x40664d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d450d[_0x40664d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d4a39,_0x3d4a39+0x2));_0xf8738c>=_0x3083f9[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf8738c-=_0x3083f9[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48f2ab+=_0x3083f9[_0xf8738c];}return _0x48f2ab;}function _0x84a8cf(){const _0x513d98=_0x2ec93e[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e]));if(0x3!=_0x513d98[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3b96f8(_0x513d98[0x1]);function _0x3b96f8(_0x26cf7b){const _0x581383=_0x5effd5(_0x26cf7b);return _0x581383&&_0x4adfc1()?_0x581383:null;function _0x4adfc1(){const _0x43638a=_0x581383[_0x40664d([0x6a,0x74,0x69])],_0x122e70=window[_0x40664d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43638a[_0x40664d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43638a[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54ba38={..._0x581383,[_0x40664d([0x6a,0x74,0x69])]:_0x43638a[_0x40664d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43638a[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54ba38[_0x40664d([0x76,0x63])],_0x22759a(_0x54ba38)==_0x122e70;}}}async function _0x580a8f(){let _0x3e7be0=!0x0;try{const _0xb6ee56=_0x2ec93e[_0x40664d([0x73,0x70,0x6c,0x69,0x74])](_0x40664d([0x2e])),[_0x346d51,_0x3f80d0,_0x502149]=_0xb6ee56;return _0x1ea479(_0x346d51),await _0xe8c22a(_0x346d51,_0x3f80d0,_0x502149),_0x3e7be0;}catch{return!0x1;}function _0x1ea479(_0x1ebd7b){const _0x26d805=_0x5effd5(_0x1ebd7b);_0x26d805&&_0x26d805[_0x40664d([0x61,0x6c,0x67])]==_0x40664d([0x45,0x53,0x32,0x35,0x36])||(_0x3e7be0=!0x1);}async function _0xe8c22a(_0x2897a3,_0x4a7d84,_0x462451){const _0x24b8d4=window[_0x40664d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40664d([0x66,0x72,0x6f,0x6d])](_0x4e5a22(_0x462451),_0x23d21f=>_0x23d21f[_0x40664d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x120b0a=new window[(_0x40664d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40664d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2897a3+_0x40664d([0x2e])+_0x4a7d84),_0x256747=window[_0x40664d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40664d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x256747)return;const _0x1f3327=await _0x256747[_0x40664d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40664d([0x6a,0x77,0x6b]),_0x55908e,{[_0x40664d([0x6e,0x61,0x6d,0x65])]:_0x40664d([0x45,0x43,0x44,0x53,0x41]),[_0x40664d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40664d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40664d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x256747[_0x40664d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40664d([0x6e,0x61,0x6d,0x65])]:_0x40664d([0x45,0x43,0x44,0x53,0x41]),[_0x40664d([0x68,0x61,0x73,0x68])]:{[_0x40664d([0x6e,0x61,0x6d,0x65])]:_0x40664d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f3327,_0x24b8d4,_0x120b0a)||(_0x3e7be0=!0x1);}}function _0x5effd5(_0x26025f){return _0x26025f[_0x40664d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40664d([0x65,0x79]))?JSON[_0x40664d([0x70,0x61,0x72,0x73,0x65])](_0x4e5a22(_0x26025f)):null;}function _0x4e5a22(_0x4f4590){return window[_0x40664d([0x61,0x74,0x6f,0x62])](_0x4f4590[_0x40664d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40664d([0x2b]))[_0x40664d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40664d([0x2f])));}function _0x22759a(_0x2a23a8){let _0xfb6505=0x1505;function _0x13dd52(_0x51022e){for(let _0x3d2cb2=0x0;_0x3d2cb2<_0x51022e[_0x40664d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d2cb2++){const _0x28628f=_0x51022e[_0x40664d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d2cb2);_0xfb6505=(_0xfb6505<<0x5)+_0xfb6505+_0x28628f,_0xfb6505&=_0xfb6505;}}function _0x28a90d(_0x4907f0){Array[_0x40664d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4907f0)?_0x4907f0[_0x40664d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28a90d):_0x4907f0&&typeof _0x4907f0==_0x40664d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40664d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4907f0)[_0x40664d([0x73,0x6f,0x72,0x74])]()[_0x40664d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5278cf,_0x5c13fa])=>{_0x13dd52(_0x5278cf),_0x28a90d(_0x5c13fa);}):_0x13dd52(window[_0x40664d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4907f0));}return _0x28a90d(_0x2a23a8),_0xfb6505>>>0x0;}function _0x3e4333(_0xdbd9ff){return _0xdbd9ff[_0x40664d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40664d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40664d([0x30]));}function _0x3a8d87(_0x33eb5d){return _0x33eb5d[_0x40664d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40664d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40664d([0x6a,0x6f,0x69,0x6e])]('');}function _0x38bda4(_0x6a0bf4){return _0x10f4fc[_0x40664d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40664d([0x68,0x61,0x73])](_0x6a0bf4);}function _0x2773fb(_0x5318e2){return _0x10f4fc[_0x40664d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40664d([0x67,0x65,0x74])](_0x5318e2);}function _0x4aff44(){}function _0x40664d(_0x3ae3dc){return _0x3ae3dc['map'](_0xbf37ac=>String['fromCharCode'](_0xbf37ac))['join']('');}_0x27a341(await _0x32e5e9());}(this);}set['adapter'](_0x2d7538){if(this['_adapter'])throw new _0x515288('track-changes-adapter-already-set',this);this['_adapter']=_0x2d7538;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x533533=!0x1,toJSON:_0x4b8e38=!0x1}={}){const _0x525d8a=[];for(const _0x172e8f of this['_suggestions']['values']())_0x533533&&!_0x172e8f['isInContent']||_0x525d8a['push'](_0x172e8f);return _0x4b8e38?_0x525d8a['map'](_0x439570=>_0x439570['toJSON']()):_0x525d8a;}['getSuggestion'](_0x381ec5){const _0x3dd4c5=this['_suggestions']['get'](_0x381ec5);if(!_0x3dd4c5)throw new _0x515288('track-changes-suggestion-not-found',this);return _0x3dd4c5;}['hasSuggestion'](_0x15d63c){return this['_suggestions']['has'](_0x15d63c);}['addSuggestionData'](_0x570107){const {authorId:_0x565de0,id:_0x199569,originalSuggestionId:_0x3e2385,attributes:_0x13ff07}=_0x570107,[_0x2f27a4,_0x42fe58]=_0x570107['type']['split'](':'),_0x3abdda=this['_suggestions']['get'](_0x199569)||this['_createSuggestion'](_0x2f27a4,_0x42fe58,_0x199569,_0x565de0,_0x13ff07,_0x3e2385);if(this['_addThreadToSuggestion'](_0x3abdda),this['_checkSuggestionCorrectness'](_0x3abdda,_0x2f27a4,_0x42fe58||null,_0x565de0),_0x3abdda['createdAt']=_0x570107['createdAt'],_0x3abdda['_isDataLoaded']=!0x0,_0x13ff07&&_0x13ff07['@external']){const _0x39058b=_0x13ff07['@external'],_0x4a3cc0=this['_getExternalAuthor'](_0x39058b['authorName']);_0x3abdda['authoredAt']=_0x39058b['createdAt'],_0x3abdda['author']=_0x4a3cc0,_0x3abdda['isExternal']=!0x0;}else _0x3abdda['authoredAt']=_0x570107['createdAt'];switch(_0x570107['data']&&(_0x3abdda['data']=_0x570107['data']),_0x570107['attributes']&&(_0x3abdda['attributes']=_0x570107['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3abdda['_saved']=!0x0),this['_suggestionState']['get'](_0x3abdda)){case'notReady':this['_suggestionState']['set'](_0x3abdda,'dataReady');break;case'markerReady':_0x3abdda['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3abdda])),this['_refreshSuggestionsChain'](new Set([_0x3abdda])),this['_suggestionState']['set'](_0x3abdda,'ready'),this['fire']('suggestionLoaded',_0x3abdda)):this['_suggestionState']['set'](_0x3abdda,'removed');}return _0x3abdda;}['acceptSuggestion'](_0x53a217){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x21d7a2 of _0x53a217['getAllAdjacentSuggestions']())_0x21d7a2['accept']();});});}['discardSuggestion'](_0x18493d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5def16 of _0x18493d['getAllAdjacentSuggestions']())_0x5def16['discard']();});});}['enableCommand'](_0x53fca4,_0x34acde){const _0x1ced31=this['editor']['commands']['get'](_0x53fca4);if(!_0x1ced31)throw new _0x515288('track-changes-command-not-found',this,{'commandName':_0x53fca4});if(this['_enabledCommands']['has'](_0x1ced31))throw new _0x515288('track-changes-enable-command-twice',this,{'commandName':_0x53fca4});this['_enabledCommands']['add'](_0x1ced31),_0x34acde&&_0x1ced31['on']('execute',(_0x5f3d4e,_0x3ba5fd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3ba5fd['length']>0x0&&_0x3ba5fd[_0x3ba5fd['length']-0x1]&&_0x3ba5fd[_0x3ba5fd['length']-0x1]['forceDefaultExecution']?_0x3ba5fd['pop']():(_0x5f3d4e['return']=_0x34acde((..._0x1b0bdf)=>_0x1ced31['execute'](..._0x1b0bdf,{'forceDefaultExecution':!0x0}),..._0x3ba5fd),_0x5f3d4e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8cd9ce){let _0x1fd20b,_0x12beec;const _0x24a3f9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1fd20b=_0x8cd9ce();}catch(_0x1b10e3){_0x12beec=_0x1b10e3;}return _0x24a3f9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x12beec&&_0x515288['rethrowUnexpectedError'](_0x12beec,this),_0x1fd20b;}['markInsertion'](_0x56a3b6,_0xc56b2e=null,_0x386627={}){if(_0x56a3b6['isCollapsed'])return null;const _0x1e6fec=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x386627['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x50ee92,meta:_0x10e046}of this['_findSuggestions'](_0x56a3b6,'insertion'))if(_0x10e046['isOwn']){if(!_0x10e046['isNextTo']){if(_0x10e046['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ne(_0x50ee92,_0x386627))continue;return _0x50ee92;}if(ne(_0x50ee92,_0x386627))return _0x50ee92;this['_breakSuggestionMarker'](_0x50ee92,_0x56a3b6['start'],_0x56a3b6['end']);break;}if(_0xc56b2e==_0x50ee92['subType']&&ne(_0x50ee92,_0x386627)){const _0x29ac73=_0x50ee92['getFirstRange']();return _0x29ac73['start']['isEqual'](_0x56a3b6['end'])?this['_setSuggestionRange'](_0x50ee92,this['_model']['createRange'](_0x56a3b6['start'],_0x29ac73['end'])):this['_setSuggestionRange'](_0x50ee92,this['_model']['createRange'](_0x29ac73['start'],_0x56a3b6['end'])),_0x50ee92;}}const _0x284d55=_0x668662(),_0x5278f5=_0x1e6fec['id'],_0x253ec0=_0xc56b2e?'insertion:'+_0xc56b2e:'insertion',_0x3e9883=this['_setSuggestionData']({'id':_0x284d55,'type':_0x253ec0,'createdAt':new Date(),'authorId':_0x5278f5,'attributes':_0x386627});return this['_addSuggestionMarker'](_0x253ec0,_0x284d55,_0x5278f5,_0x56a3b6),_0x3e9883;}['markMultiRangeInsertion'](_0xb9bf70,_0x477b81='multi',_0x980cb4={}){const _0x54edae=this['editor']['plugins']['get']('Users')['me'],_0x113350=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x477b81,'join');this['_trackingSessionId']&&(_0x980cb4['trackingSessionId']=this['_trackingSessionId']);for(const _0x43be4a of this['getSuggestions']())if(_0x43be4a['author']['id']==_0x54edae['id']&&'insertion'==_0x43be4a['type']&&_0x43be4a['subType']==_0x477b81&&ne(_0x43be4a,_0x980cb4)&&(_0x113350(_0x43be4a['getRanges'](),_0xb9bf70)||_0x113350(_0xb9bf70,_0x43be4a['getRanges']()))){for(const _0x317e4c of _0xb9bf70)_0x43be4a['addRange'](_0x317e4c);return _0x43be4a;}for(const {suggestion:_0x241175,meta:_0x18dea1}of this['_findSuggestions'](_0xb9bf70,'insertion')){if(!_0x18dea1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x18dea1['containsRangeInObject'])continue;if(!ne(_0x241175,_0x980cb4))continue;let _0x2355dc=!0x0;for(const _0x241bc0 of _0x241175['getRanges']())for(const _0x31a3fb of _0xb9bf70)if(!_0x241bc0['containsRange'](_0x31a3fb)){_0x2355dc=!0x1;break;}if(_0x2355dc)return _0x241175;}const _0x4ddd09=_0x668662(),_0xf55713=_0x54edae['id'],_0x327b2e='insertion:'+_0x477b81,_0xe1a018=this['_setSuggestionData']({'id':_0x4ddd09,'type':_0x327b2e,'createdAt':new Date(),'authorId':_0xf55713,'attributes':_0x980cb4});for(const _0x3aabdb of _0xb9bf70)this['_addSuggestionMarker'](_0x327b2e,_0x4ddd09,_0xf55713,_0x3aabdb,R['getMultiRangeId']());return _0xe1a018;}['markInlineFormat'](_0x331088,_0x5854fb,_0x204f32=null,_0x23d6d3={}){if(_0x204f32=_0x204f32||qt(_0x5854fb),_0x331088['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x23d6d3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b4f4f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x204f32,'accept');return this['forceDefaultExecution'](()=>_0x1b4f4f([_0x331088],_0x5854fb,_0x23d6d3)),null;}const _0x223c6e=this['editor']['plugins']['get']('Users')['me'],_0x3a5a80=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5a0153,meta:_0x495003}of this['_findSuggestions'](_0x331088,'insertion'))_0x495003['isOwn']&&!_0x495003['isInsideObject']&&_0x3a5a80['push'](..._0x5a0153['getRanges']());}const _0x48df4e=function(_0x263628,_0x184f17){const _0x3a7138=[];for(const _0x134124 of _0x184f17){const _0xe8b821=_0x263628['getIntersection'](_0x134124);_0xe8b821&&_0x3a7138['push'](_0xe8b821);}return _0x3a7138;}(_0x331088,_0x3a5a80),_0x22764e=function(_0x6cd81f,_0x1e296b){const _0x184d08=[_0x6cd81f];for(const _0x246667 of _0x1e296b){let _0x22512b=0x0;for(;_0x22512b<_0x184d08['length'];){const _0x146570=_0x184d08[_0x22512b]['getDifference'](_0x246667);_0x184d08['splice'](_0x22512b,0x1,..._0x146570),_0x22512b+=_0x146570['length'];}}return _0x184d08;}(_0x331088,_0x3a5a80);_0x48df4e['length']&&this['_model']['change'](()=>{for(const _0x35af4e of _0x48df4e){const _0x22a12b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x204f32,'accept');this['forceDefaultExecution'](()=>_0x22a12b([_0x35af4e],_0x5854fb,_0x23d6d3));}});for(const _0x23ee0f of _0x22764e){let _0x3b021f=null,_0x3bf904=_0x23ee0f['start'],_0x4086ab=_0x23ee0f['end'];for(const {suggestion:_0x1b4d34,meta:_0x13382e}of this['_findSuggestions'](_0x23ee0f,'formatInline')){if(!_0x13382e['isOwn'])continue;if(_0x1b4d34['subType']!=_0x204f32)continue;if(!ne(_0x1b4d34,_0x23d6d3))continue;const _0x37aed7=_0x1b4d34['getFirstRange']();if(_0x37aed7['containsRange'](_0x23ee0f,!0x0))return null;_0x3bf904=_0x3bf904['isBefore'](_0x37aed7['start'])?_0x3bf904:_0x37aed7['start'],_0x4086ab=_0x4086ab['isAfter'](_0x37aed7['end'])?_0x4086ab:_0x37aed7['end'],_0x3b021f?_0x37aed7['start']['isBefore'](_0x3b021f['getFirstRange']()['start'])?(_0x3b021f['removeMarkers'](),_0x3b021f=_0x1b4d34):_0x1b4d34['removeMarkers']():_0x3b021f=_0x1b4d34;}const _0x550964=this['_model']['createRange'](_0x3bf904,_0x4086ab);if(_0x3b021f)this['_setSuggestionRange'](_0x3b021f,_0x550964);else{const _0x307ec9=_0x668662(),_0xd82778=_0x223c6e['id'];this['_setSuggestionData']({'id':_0x307ec9,'type':'formatInline:'+_0x204f32,'data':_0x5854fb,'createdAt':new Date(),'authorId':_0xd82778,'attributes':_0x23d6d3}),this['_addSuggestionMarker']('formatInline:'+_0x204f32,_0x307ec9,_0xd82778,_0x550964);}}return null;}['markBlockFormat'](_0x3a9f9a,_0x55f9c2,_0x28b1c0=[],_0x5a764b=null,_0x5c9bae={}){_0x55f9c2['formatGroupId']||(_0x55f9c2['formatGroupId']=_0x55f9c2['commandName']),_0x55f9c2['multipleBlocks']=_0x3a9f9a['is']('range'),_0x5a764b=_0x5a764b||qt(_0x55f9c2);const _0x304a63=_0x28b1c0['map'](_0xcaf347=>te(_0xcaf347,this['_model'])),_0x1e5d28=_0x3a9f9a['is']('range')?_0x3a9f9a:te(_0x3a9f9a,this['_model']);if(this['_trackingSessionId']&&(_0x5c9bae['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5d934b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a764b,'accept');return this['forceDefaultExecution'](()=>_0x5d934b([_0x1e5d28],_0x55f9c2,_0x5c9bae)),null;}_0x304a63['push'](_0x1e5d28);let _0x3cf729=!0x0;for(const _0x1160de of _0x304a63)if(!this['_rangeIsInLocalUserInsertion'](_0x1160de)){_0x3cf729=!0x1;break;}if(_0x3cf729&&'always'!==this['_trackFormatChanges']){const _0x390188=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a764b,'accept');return this['forceDefaultExecution'](()=>_0x390188([_0x1e5d28],_0x55f9c2,_0x5c9bae)),null;}let _0xe8c255=null,_0x30c157=_0x1e5d28['start'],_0x49f365=_0x1e5d28['end'];for(const {suggestion:_0x1073c3,meta:_0x438bb1}of this['_findSuggestions'](_0x1e5d28,'formatBlock')){if(!_0x438bb1['isOwn'])continue;if(_0x438bb1['isNextTo']||_0x438bb1['containsRangeInObject']||_0x438bb1['isInsideObject'])continue;if(_0x1073c3['data']['formatGroupId']!=_0x55f9c2['formatGroupId'])continue;if(!ne(_0x1073c3,_0x5c9bae))continue;const _0x98475e=_0x1073c3['getFirstRange']();if(_0x1073c3['subType']==_0x5a764b){if(_0x98475e['containsRange'](_0x1e5d28,!0x0))return null;_0x30c157=_0x30c157['isBefore'](_0x98475e['start'])?_0x30c157:_0x98475e['start'],_0x49f365=_0x49f365['isAfter'](_0x98475e['end'])?_0x49f365:_0x98475e['end'],_0xe8c255?_0x98475e['start']['isBefore'](_0xe8c255['getFirstRange']()['start'])?(_0xe8c255['removeMarkers'](),_0xe8c255=_0x1073c3):_0x1073c3['removeMarkers']():_0xe8c255=_0x1073c3;}else{const _0x18f66e=_0x1e5d28['getIntersection'](_0x98475e);this['_cutOutSuggestionMarker'](_0x1073c3,_0x18f66e);}}const _0x1ab4e2=this['editor']['plugins']['get']('Users')['me'],_0x449b4b=_0x668662(),_0x306c4e=_0x1ab4e2['id'];if(_0xe8c255)return this['_setSuggestionRange'](_0xe8c255,this['_model']['createRange'](_0x30c157,_0x49f365)),_0xe8c255;{const _0x521294=this['_setSuggestionData']({'id':_0x449b4b,'type':'formatBlock:'+_0x5a764b,'data':_0x55f9c2,'createdAt':new Date(),'authorId':_0x306c4e,'attributes':_0x5c9bae});return this['_addSuggestionMarker']('formatBlock:'+_0x5a764b,_0x449b4b,_0x306c4e,this['_model']['createRange'](_0x30c157,_0x49f365)),_0x521294;}}['markMultiRangeBlockFormat'](_0x40ce01,_0x2d87be,_0x16c0ad=[],_0x3f9b29=null,_0x2fdffd={}){_0x2d87be['formatGroupId']||(_0x2d87be['formatGroupId']=_0x2d87be['commandName']);const _0x19cdc4=_0x40ce01[0x0];_0x2d87be['multipleBlocks']=_0x19cdc4['is']('range'),_0x3f9b29=_0x3f9b29||qt(_0x2d87be);const _0x5719c5=_0x16c0ad['map'](_0x7724e1=>te(_0x7724e1,this['_model'])),_0x329bfb=_0x19cdc4['is']('range')?_0x40ce01:_0x40ce01['map'](_0x1abe7b=>te(_0x1abe7b,this['_model']));if(this['_trackingSessionId']&&(_0x2fdffd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc64867=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9b29,'accept');return this['forceDefaultExecution'](()=>_0xc64867(_0x329bfb,_0x2d87be,_0x2fdffd)),null;}_0x5719c5['push'](..._0x329bfb);let _0x3a3554=!0x0;for(const _0xf1f9f9 of _0x5719c5)if(!this['_rangeIsInLocalUserInsertion'](_0xf1f9f9)){_0x3a3554=!0x1;break;}if(_0x3a3554&&'always'!==this['_trackFormatChanges']){const _0x24dd71=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9b29,'accept');return this['forceDefaultExecution'](()=>_0x24dd71(_0x329bfb,_0x2d87be,_0x2fdffd)),null;}const _0x3f45c8=this['editor']['plugins']['get']('Users')['me'];for(const _0x2edde0 of this['getSuggestions']()){const _0x38eb9a=_0x2edde0['data'];if(_0x2edde0['author']['id']!=_0x3f45c8['id'])continue;if('formatBlock'!=_0x2edde0['type']||_0x38eb9a['formatGroupId']!=_0x2d87be['formatGroupId'])continue;if(!ne(_0x2edde0,_0x2fdffd))continue;const _0x5383b5=_0x2edde0['subType']==_0x3f9b29;for(let _0x449e7e=0x0;_0x449e7e<_0x329bfb['length'];_0x449e7e++){const _0x53443d=_0x329bfb[_0x449e7e];for(const _0x4c8557 of _0x2edde0['getMarkers']()){const _0x3c7c32=_0x4c8557['getRange']();if(_0x53443d['isEqual'](_0x3c7c32)){_0x5383b5?(_0x329bfb['splice'](_0x449e7e,0x1),_0x449e7e--):_0x2edde0['removeMarker'](_0x4c8557['name']);break;}}}}if(0x0==_0x329bfb['length'])return null;const _0x44107b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9b29,'join');for(const _0x1e895f of this['getSuggestions']()){const _0x105f5e=_0x1e895f['data'];if(_0x1e895f['author']['id']==_0x3f45c8['id']&&('formatBlock'==_0x1e895f['type']&&_0x105f5e['formatGroupId']==_0x2d87be['formatGroupId']&&_0x1e895f['subType']==_0x3f9b29&&ne(_0x1e895f,_0x2fdffd)&&(_0x44107b(_0x1e895f['getRanges'](),_0x329bfb)||_0x44107b(_0x329bfb,_0x1e895f['getRanges']())))){for(const _0x47a843 of _0x329bfb)_0x1e895f['addRange'](_0x47a843);return _0x1e895f;}}const _0x42c17f=_0x668662(),_0x4314cd=_0x3f45c8['id'],_0x1a724e='formatBlock:'+_0x3f9b29,_0x1fb01e=this['_setSuggestionData']({'id':_0x42c17f,'type':_0x1a724e,'data':_0x2d87be,'createdAt':new Date(),'authorId':_0x4314cd,'attributes':_0x2fdffd});for(const _0x32a7a6 of _0x329bfb)this['_addSuggestionMarker'](_0x1a724e,_0x42c17f,_0x4314cd,_0x32a7a6,R['getMultiRangeId']());return _0x1fb01e;}['markDeletion'](_0x10a39f,_0x598482=null,_0x7e287={}){if(_0x10a39f['isCollapsed'])return null;const _0x20462d=this['editor']['plugins']['get']('Users')['me'],_0x21afa4=new _0x2fe235(_0x10a39f['start'],_0x10a39f['end']);this['_trackingSessionId']&&(_0x7e287['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x39772b,meta:_0x1bbb6f}of this['_findSuggestions'](_0x21afa4,'insertion'))if(_0x1bbb6f['isOwn']&&!_0x1bbb6f['isNextTo']){if(_0x39772b['isMultiRange']){const _0x3d562e=_0x39772b['getRanges']()['filter'](_0x2aa7bd=>'$graveyard'!=_0x2aa7bd['root']['rootName']);_0x3d562e['every'](_0x4c421c=>_0x21afa4['containsRange'](_0x4c421c,!0x0))&&_0x39772b['discard']();if(_0x3d562e['some'](_0x598955=>_0x598955['containsRange'](_0x21afa4,!0x0))){const _0x272ffb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x598482,'accept');return this['forceDefaultExecution'](()=>_0x272ffb([_0x21afa4],null,_0x7e287)),null;}}else{const _0x49b46d=_0x21afa4['getIntersection'](_0x39772b['getFirstRange']());null!==_0x49b46d&&_0x39772b['_onDiscard']([_0x49b46d],null,_0x7e287);}}if(_0x21afa4['detach'](),_0x21afa4['isCollapsed']||'$graveyard'==_0x21afa4['root']['rootName'])return null;let _0x282df6=null,_0x16c81b=_0x21afa4['start'],_0x17f0a2=_0x21afa4['end'];const _0x31b622=this['_findSuggestions'](_0x21afa4,'deletion');for(const {suggestion:_0xf62fb4,meta:_0x1debd0}of _0x31b622){const _0x578748=this['_model']['createRange'](_0x16c81b,_0x17f0a2);if(_0x1debd0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1debd0['containsRangeInObject']&&!_0x1debd0['isInsideObject'])){if(_0xf62fb4['isMultiRange']){if(!ne(_0xf62fb4,_0x7e287))continue;let _0x360941=!0x0;for(const _0x198388 of _0xf62fb4['getRanges']()){if(_0x198388['containsRange'](_0x578748,!0x0))return _0xf62fb4;_0x578748['containsRange'](_0x198388)||(_0x360941=!0x1);}_0x360941&&_0xf62fb4['discard']();}else{const _0x4a00a7=_0xf62fb4['getFirstRange']();if(_0x4a00a7['containsRange'](_0x578748,!0x0))return _0xf62fb4;if(!ne(_0xf62fb4,_0x7e287)){_0x578748['containsRange'](_0x4a00a7)?_0xf62fb4['removeMarkers']():_0x4a00a7['containsPosition'](_0x16c81b)?_0x16c81b=_0x4a00a7['end']:_0x4a00a7['containsPosition'](_0x17f0a2)&&(_0x17f0a2=_0x4a00a7['start']);continue;}_0x16c81b=_0x16c81b['isBefore'](_0x4a00a7['start'])?_0x16c81b:_0x4a00a7['start'],_0x17f0a2=_0x17f0a2['isAfter'](_0x4a00a7['end'])?_0x17f0a2:_0x4a00a7['end'],_0x7e287=Object['assign']({},_0xf62fb4['attributes']),_0x282df6?_0x4a00a7['start']['isBefore'](_0x282df6['getFirstRange']()['start'])?(_0x282df6['removeMarkers'](),_0x282df6=_0xf62fb4):_0xf62fb4['removeMarkers']():_0x282df6=_0xf62fb4;}}}if(_0x282df6)return this['_setSuggestionRange'](_0x282df6,this['_model']['createRange'](_0x16c81b,_0x17f0a2)),_0x282df6;{const _0x599dc0=_0x668662(),_0x386650=this['_model']['createRange'](_0x16c81b,_0x17f0a2),_0x5734f5=_0x20462d['id'],_0x5f2659=_0x598482?'deletion:'+_0x598482:'deletion',_0x2f33d9=this['_setSuggestionData']({'id':_0x599dc0,'type':_0x5f2659,'createdAt':new Date(),'authorId':_0x5734f5,'attributes':_0x7e287});return this['_addSuggestionMarker'](_0x5f2659,_0x599dc0,_0x5734f5,_0x386650),_0x2f33d9;}}['markMultiRangeDeletion'](_0x300b87,_0xd62660='multi',_0x1bd8e1={}){const _0x3b8562=this['editor']['plugins']['get']('Users')['me'],_0x46dcf6=_0x300b87['map'](_0x6d053a=>new _0x2fe235(_0x6d053a['start'],_0x6d053a['end'])),_0x24901a=new Set();this['_trackingSessionId']&&(_0x1bd8e1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a473d,meta:_0x1e54d8}of this['_findSuggestions'](_0x46dcf6,'insertion'))_0x1e54d8['isOwn']&&!_0x1e54d8['isNextTo']&&_0x24901a['add'](_0x3a473d);for(const _0x56e7cc of _0x24901a)if(_0x56e7cc['isMultiRange']){const _0x57c749=_0x56e7cc['getRanges']();(!_0x56e7cc['attributes']||!_0x56e7cc['attributes']['skipNestingCheck'])&&(_0x57c749['every'](_0x3c47fa=>_0x46dcf6['some'](_0x1d081f=>_0x1d081f['containsRange'](_0x3c47fa,!0x0)))&&_0x56e7cc['discard']());if(_0x46dcf6['every'](_0x1ed486=>_0x57c749['some'](_0x4c6bfb=>_0x4c6bfb['containsRange'](_0x1ed486,!0x0)))){const _0x4126ad=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd62660,'accept');return this['forceDefaultExecution'](()=>_0x4126ad(_0x300b87,null,_0x1bd8e1)),null;}}else{const _0x5aea7c=_0x56e7cc['getFirstRange']();_0x46dcf6['some'](_0x36127a=>_0x36127a['containsRange'](_0x5aea7c,!0x0))&&_0x56e7cc['discard']();if(_0x46dcf6['every'](_0x1df5bd=>_0x5aea7c['containsRange'](_0x1df5bd,!0x0))){const _0x29b39f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd62660,'accept');return this['forceDefaultExecution'](()=>_0x29b39f(_0x46dcf6,null,_0x1bd8e1)),null;}}const _0x187655=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd62660,'join');let _0x57986d=null;for(const _0x53ae29 of this['getSuggestions']())if(_0x53ae29['author']['id']==_0x3b8562['id']&&_0x53ae29['isInContent']&&'deletion'==_0x53ae29['type']&&_0x53ae29['subType']==_0xd62660&&ne(_0x53ae29,_0x1bd8e1)&&(_0x187655(_0x53ae29['getRanges'](),_0x46dcf6)||_0x187655(_0x46dcf6,_0x53ae29['getRanges']()))){if(_0x57986d){if(_0x53ae29['commentThread']&&_0x53ae29['commentThread']['length'])continue;for(const _0xa5c051 of _0x53ae29['getRanges']())_0x57986d['isIntersectingWithRange'](_0xa5c051)||_0x57986d['addRange'](_0xa5c051);_0x53ae29['removeMarkers']();}else{_0x57986d=_0x53ae29;for(const _0x3ff083 of _0x46dcf6)_0x53ae29['isIntersectingWithRange'](_0x3ff083)||_0x53ae29['addRange'](_0x3ff083);}}if(_0x57986d)return _0x57986d;_0x24901a['clear']();for(const {suggestion:_0x16f5ad,meta:_0x108d63}of this['_findSuggestions'](_0x46dcf6,'deletion'))_0x108d63['isOwn']&&(this['_mergeNestedSuggestions']||!_0x108d63['containsRangeInObject']&&!_0x108d63['isInsideObject'])&&ne(_0x16f5ad,_0x1bd8e1)&&_0x24901a['add'](_0x16f5ad);for(const _0x5709b6 of _0x24901a){const _0x48b9c5=_0x5709b6['getRanges']();if(!_0x1bd8e1||!_0x1bd8e1['skipNestingCheck']){if(_0x46dcf6['every'](_0x50ee0e=>_0x48b9c5['some'](_0x41727f=>_0x41727f['containsRange'](_0x50ee0e,!0x0))))return _0x5709b6;}(!_0x5709b6['attributes']||!_0x5709b6['attributes']['skipNestingCheck'])&&(_0x48b9c5['every'](_0x1ac438=>_0x46dcf6['some'](_0x33a315=>_0x33a315['containsRange'](_0x1ac438,!0x0)))&&_0x5709b6['discard']());}const _0x3a4ac3=_0x668662(),_0x74df4e=_0x3b8562['id'],_0x45038f='deletion:'+_0xd62660,_0x5d42af=this['_setSuggestionData']({'id':_0x3a4ac3,'type':_0x45038f,'createdAt':new Date(),'authorId':_0x74df4e,'attributes':_0x1bd8e1});for(const _0x5306c6 of _0x46dcf6)_0x5306c6['detach'](),_0x5306c6['isCollapsed']||'$graveyard'==_0x5306c6['root']['rootName']||this['_addSuggestionMarker'](_0x45038f,_0x3a4ac3,_0x74df4e,_0x5306c6,R['getMultiRangeId']());return _0x5d42af;}['markAttributeChange'](_0x100c20,_0x3b64cc,_0x1e1fd7,_0x2a577e,_0x503e0c){if(_0x100c20['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x215346=this['editor']['plugins']['get']('Users')['me']['id'],_0x5dd728=Array['from'](this['_suggestions']['values']())['filter'](_0x113dd6=>'attribute'==_0x113dd6['type']&&_0x113dd6['data']['key']==_0x3b64cc&&_0x113dd6['isIntersectingWithRange'](_0x100c20));if(this['_trackingSessionId']&&(_0x503e0c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x8dc3a8=this['_findSuggestions'](_0x100c20,'insertion')['filter'](({meta:_0x4016d4})=>_0x4016d4['isOwn']&&!_0x4016d4['isInsideObject']&&!_0x4016d4['isNextTo'])['map'](({suggestion:_0x377c56})=>_0x377c56);_0x5dd728['unshift'](..._0x8dc3a8);}const _0x45ed94=new Map([[_0x100c20,_0x1e1fd7]]);for(const _0xc02d35 of _0x5dd728){const _0x5782f2='attribute'==_0xc02d35['type']?_0xc02d35['data']['oldValue']:void 0x0,_0x3f07f6=_0xc02d35['getFirstRange'](),_0xf52f30=Array['from'](_0x45ed94['keys']())['find'](_0x55ffb5=>_0x55ffb5['isIntersecting'](_0x3f07f6));if(!_0xf52f30)continue;const _0x49a416=_0xf52f30['getDifference'](_0x3f07f6);this['_isBlockAttribute'](_0x3b64cc)&&'insertion'==_0xc02d35['type']&&0x0!=_0x49a416['length']||(_0x45ed94['delete'](_0xf52f30),_0x49a416['forEach'](_0x26d0ee=>{_0x45ed94['set'](_0x26d0ee,_0x1e1fd7);}),'insertion'!=_0xc02d35['type']&&_0x5782f2!=_0x2a577e&&_0x45ed94['set'](_0xf52f30['getIntersection'](_0x3f07f6),_0x5782f2));}const _0x1ca8b8=[];for(const [_0x4072be,_0x145091]of _0x45ed94){const _0x1c8591=_0x668662(),_0x59fa03={'key':_0x3b64cc,'oldValue':_0x145091,'newValue':_0x2a577e};_0x3b64cc['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x3b64cc});const _0x106b33=('attribute:'+(_0x3b64cc+'|'+qt({'newValue':_0x2a577e})))['substring'](0x0,0x3c),_0x2996ae=this['_setSuggestionData']({'id':_0x1c8591,'type':_0x106b33,'data':_0x59fa03,'createdAt':new Date(),'authorId':_0x215346,'attributes':_0x503e0c});_0x1ca8b8['push'](_0x2996ae),this['_addSuggestionMarker'](_0x106b33,_0x1c8591,_0x215346,_0x4072be);}return _0x1ca8b8;}['enableDefaultAttributesIntegration'](_0x162842){this['enableCommand'](_0x162842,(_0x132411,..._0x1b3d6a)=>{this['recordAttributeChanges'](()=>{_0x132411(..._0x1b3d6a);});});}['registerBlockAttribute'](_0xded467){this['_blockAttributeKeys']['add'](_0xded467);}['registerInlineAttribute'](_0x701729){this['_inlineAttributeKeys']['add'](_0x701729);}['startTrackingSession'](_0x19dc5b){return this['_trackingSessionId']=void 0x0!==_0x19dc5b?_0x19dc5b:_0x668662(),this['_trackingSessionId'];}['_getAttributeKey'](_0x463123){return'attribute'==_0x463123['type']?oe(_0x463123['subType']):null;}['_applyOperationsAsSuggestions'](_0x1409c0){if(0x0==_0x1409c0['length'])return;const _0x40bcf2=this['editor'],_0xaf0817=_0x40bcf2['plugins']['get'](_0x11ae4f);let _0x213a12=!0x0;for(const _0x367e28 in _0x1409c0[0x0]){const _0xb325cf=_0x1409c0[0x0][_0x367e28];if((_0xb325cf instanceof _0xda936f||_0xb325cf instanceof _0x4a33f5)&&_0xb325cf['root']['is']('documentFragment')){_0x213a12=!0x1;break;}}_0x40bcf2['model']['change'](_0x3358ca=>{const _0xb72f9f=new Set();for(const _0x426572 of _0x1409c0)if(_0x426572['baseVersion']=_0x213a12?_0x40bcf2['model']['document']['version']:null,_0x426572['isDocumentOperation']=_0x213a12,_0xaf0817['isMarkedRemoveOperation'](_0x426572)){const _0x144f84=Yt(_0x426572['newRange'],_0x40bcf2['model']);if(_0x213a12)this['markDeletion'](_0x144f84);else{const _0x4f3244='suggestion:deletion:id:authorId:'+_0x668662();_0x144f84['root']['markers']['set'](_0x4f3244,_0x144f84);}}else switch(_0x426572['type']){case'rename':{const _0x4da489=_0x426572['oldName'],_0x9bc9d4=_0x426572['newName'];if(_0x4da489==_0x9bc9d4)break;_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x6c2c76='$elementName',_0xf4c39f=_0x426572['position'],_0x16e3db=_0x40bcf2['model']['createRange'](_0xf4c39f,_0x40bcf2['model']['createPositionAt'](_0xf4c39f['nodeAfter'],'end'));if(_0x213a12)this['markAttributeChange'](_0x16e3db,_0x6c2c76,_0x4da489,_0x9bc9d4,{'groupId':_0x668662()});else{const _0x446b53='suggestion:attribute:'+_0x6c2c76+':id:authorId:'+_0x668662();_0x16e3db['root']['markers']['set'](_0x446b53,_0x16e3db);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4f32b7=_0x426572['oldValue'],_0x1b3fcc=_0x426572['newValue'];if(_0x4f32b7==_0x1b3fcc)break;_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x51c8ab=_0x426572['key'];if(!this['_isRegisteredAttribute'](_0x51c8ab))break;const _0x1b81b4=Yt(_0x426572['range'],_0x40bcf2['model']);if(_0x213a12)this['markAttributeChange'](_0x1b81b4,_0x51c8ab,_0x4f32b7,_0x1b3fcc,{'groupId':_0x668662()});else{const _0x2859e1='suggestion:attribute:'+_0x51c8ab+':id:authorId:'+_0x668662();_0x1b81b4['root']['markers']['set'](_0x2859e1,_0x1b81b4);}break;}case'insert':{_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x2e09e1=_0x426572['position'],_0x2a9117=_0x426572['howMany'],_0x5e9ea9=Yt(_0x40bcf2['model']['createRange'](_0x2e09e1,_0x2e09e1['getShiftedBy'](_0x2a9117)),_0x40bcf2['model']);if(_0x213a12)this['markInsertion'](_0x5e9ea9);else{const _0x2a6bca='suggestion:insertion:id:authorId:'+_0x668662();_0x5e9ea9['root']['markers']['set'](_0x2a6bca,_0x5e9ea9);}break;}case'split':{_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);const _0x4b4a91=_0x426572['splitPosition'],_0xbdbcb8=_0x426572['moveTargetPosition'],_0x32af77=_0x40bcf2['model']['createRange'](_0x4b4a91,_0xbdbcb8);if(_0x213a12)this['markInsertion'](_0x40bcf2['model']['createRange'](_0x4b4a91,_0xbdbcb8));else{const _0x38c911='suggestion:insertion:id:authorId:'+_0x668662();_0x32af77['root']['markers']['set'](_0x38c911,_0x32af77);}break;}case'move':if(_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572),!_0x213a12){const _0x3b59ac=_0x426572['getMovedRangeStart'](),_0x9bafb7=_0x426572['howMany'];for(let _0x32360f=0x0;_0x32360f<_0x9bafb7;_0x32360f++){const _0x5c501a=_0x3b59ac['getShiftedBy'](_0x32360f)['nodeAfter'];_0xb72f9f['add'](_0x5c501a);}}break;case'remove':if(_0x213a12)_0x3358ca['batch']['addOperation'](_0x426572),_0x40bcf2['model']['applyOperation'](_0x426572);else{const _0x325e42=_0x426572['sourcePosition'],_0x15f3f4=_0x426572['howMany'],_0x53710b=new _0x5b3eaa(_0x325e42,_0x15f3f4);_0x3358ca['batch']['addOperation'](_0x53710b),_0x40bcf2['model']['applyOperation'](_0x53710b);}}for(const _0x8e7559 of _0xb72f9f){const _0xb2ba15=_0x40bcf2['model']['createRangeOn'](_0x8e7559),_0x4833d2='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x668662();_0xb2ba15['root']['markers']['set'](_0x4833d2,Yt(_0xb2ba15,_0x40bcf2['model']));}});}['_setSuggestionRange'](_0x2792b0,_0x34db1b){const _0x5edae4=_0x2792b0['getFirstMarker']();this['_model']['change'](_0x14146e=>{_0x14146e['updateMarker'](_0x5edae4,{'range':_0x34db1b});});}['_addThreadToSuggestion'](_0x4c98c5){const _0x5f3bf6=_0x4c98c5['id'],_0x5bc7ff=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5f3bf6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5bc7ff,'threadId':_0x5f3bf6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5445f4=this['_commentsRepository']['getCommentThread'](_0x5f3bf6);_0x5445f4['unbind']('isRemovable'),_0x5445f4['isRemovable']=!0x1,_0x4c98c5['commentThread']=_0x5445f4;}['_checkSuggestionCorrectness'](_0x6a0869,_0x52a6b0,_0x5580c2,_0x129e5d){if(_0x6a0869['type']!=_0x52a6b0||_0x6a0869['subType']!=_0x5580c2||_0x6a0869['creator']['id']!=_0x129e5d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x515288('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x137835,_0x454eb7){const _0x3c7041=_0x137835['getFirstRange']();if(_0x454eb7['isEqual'](_0x3c7041))_0x137835['removeMarkers']();else{if(_0x3c7041['containsRange'](_0x454eb7)){const _0xc5d783=this['_model']['createPositionAt'](_0x454eb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x137835,this['_model']['createRange'](_0x3c7041['start'],_0xc5d783));const _0x2f052c=_0x668662(),_0x1860dd=_0x137835['creator']['id'],_0x126d74=_0x137835['type']+':'+_0x137835['subType'];this['_setSuggestionData']({'id':_0x2f052c,'type':_0x126d74,'createdAt':new Date(),'authorId':_0x1860dd,'data':_0x137835['data'],'attributes':_0x137835['attributes']});const _0x55f743=this['_model']['createPositionAt'](_0x454eb7['end']['parent'],'after'),_0x3ec4b8=this['_model']['createRange'](_0x55f743,_0x3c7041['end']);this['_addSuggestionMarker'](_0x126d74,_0x2f052c,_0x1860dd,_0x3ec4b8);}else{if(_0x3c7041['containsPosition'](_0x454eb7['start'])){const _0x1cde5d=this['_model']['createPositionAt'](_0x454eb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x137835,this['_model']['createRange'](_0x3c7041['start'],_0x1cde5d));}else{const _0x5b450b=this['_model']['createPositionAt'](_0x454eb7['end']['parent'],'after');this['_setSuggestionRange'](_0x137835,this['_model']['createRange'](_0x5b450b,_0x3c7041['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3f838a){for(const {suggestion:_0x22a04f,meta:_0x5ef2cf}of this['_findSuggestions'](_0x3f838a,'insertion')){if(!_0x5ef2cf['isOwn'])continue;const _0x593c05=_0x22a04f['getRanges']();for(const _0x1749f7 of _0x593c05)if(!_0x3f838a['getDifference'](_0x1749f7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5ae86c){return this['editor']['plugins']['get']('Users')['getUser'](_0x5ae86c);}['_getExternalAuthor'](_0x2e9f7f){const _0x238bea=this['editor']['plugins']['get']('Users'),_0x56d3a7=_0x318d41('external:'+_0x2e9f7f),_0x146f2a=_0x238bea['getUser'](_0x56d3a7);return _0x146f2a||_0x238bea['addUser']({'id':_0x56d3a7,'name':_0x2e9f7f});}['_createSuggestion'](_0x36ce6c,_0x4b5538,_0x58a39d,_0x284a1a,_0x2bde6e,_0x216a9f){const _0x1aa5f5=this['_getAuthorFromId'](_0x284a1a);if(!_0x1aa5f5)throw new _0x515288('track-changes-user-not-found',this,{'authorId':_0x284a1a,'suggestionId':_0x58a39d});const _0x2c7f5b=this['_suggestionFactory']['buildSuggestion'](_0x36ce6c,_0x4b5538,_0x58a39d,_0x1aa5f5,_0x2bde6e,_0x30cae9=>{this['_updateSuggestionData'](_0x58a39d,{'attributes':_0x30cae9});const _0x250529=this['getSuggestion'](_0x58a39d);this['_joinWithAdjacentSuggestions'](new Set([_0x250529])),this['_refreshSuggestionsChain'](new Set([_0x250529]));},_0x216a9f);return this['listenTo'](_0x2c7f5b,'accept',()=>{this['_updateSuggestionData'](_0x58a39d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2c7f5b,'discard',()=>{this['_updateSuggestionData'](_0x58a39d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x58a39d,_0x2c7f5b),this['_suggestionState']['set'](_0x2c7f5b,'notReady'),_0x2c7f5b;}['_splitMarkerName'](_0x56a5f2){const _0x555bcf=_0x56a5f2['split'](':');return{'group':_0x555bcf[0x0],'type':_0x555bcf[0x1],'subType':_0x555bcf['length']>=0x5?_0x555bcf[0x2]:null,'id':_0x555bcf['length']<0x5?_0x555bcf[0x2]:_0x555bcf[0x3],'authorId':_0x555bcf['length']<0x5?_0x555bcf[0x3]:_0x555bcf[0x4],'markerCount':0x6==_0x555bcf['length']?_0x555bcf[0x5]:null};}['_breakSuggestionMarker'](_0x1936bb,_0x4f2c1a,_0x3250d9){const _0x3c6b5a=_0x1936bb['getFirstRange'](),_0x400128=_0x3c6b5a['start'],_0x402837=_0x3c6b5a['end'];this['_setSuggestionRange'](_0x1936bb,this['_model']['createRange'](_0x400128,_0x4f2c1a));const _0x272729=_0x668662(),_0x500192=_0x1936bb['creator']['id'],_0xfec92b=_0x1936bb['type']+(_0x1936bb['subType']?':'+_0x1936bb['subType']:'');this['_setSuggestionData']({'id':_0x272729,'type':_0xfec92b,'createdAt':new Date(),'authorId':_0x500192,'originalSuggestionId':_0x1936bb['_originalSuggestionId']||_0x1936bb['id'],'attributes':_0x1936bb['attributes'],'data':_0x1936bb['data']});const _0x32aec4=this['_getAttributeKey'](_0x1936bb);('formatBlock'==_0x1936bb['type']||_0x32aec4&&this['_isBlockAttribute'](_0x32aec4))&&(_0x3250d9=this['_model']['createPositionBefore'](_0x3250d9['parent'])),this['_addSuggestionMarker'](_0xfec92b,_0x272729,_0x500192,this['_model']['createRange'](_0x3250d9,_0x402837));}['_findSuggestions'](_0x37a7fb,_0x2fbdd3=null){const _0x43de25=[],_0x19d2dc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x37a7fb)||(_0x37a7fb=[_0x37a7fb]);for(const _0x5c11f3 of this['getSuggestions']()){if(!_0x5c11f3['isInContent'])continue;if(_0x2fbdd3&&_0x5c11f3['type']!=_0x2fbdd3)continue;let _0x375603=!0x1;for(const _0x333b90 of _0x5c11f3['getRanges']()){for(const _0x26060c of _0x37a7fb){const _0x304bf7=_0x26060c['start']['isEqual'](_0x333b90['end'])||_0x26060c['end']['isEqual'](_0x333b90['start']);if(_0x304bf7||_0x26060c['getIntersection'](_0x333b90)){const _0x2d8acc=_0x26060c['containsRange'](_0x333b90)&&Kt(this['_model']['schema'],_0x333b90['start'],_0x26060c),_0x479e06=_0x333b90['containsRange'](_0x26060c)&&Kt(this['_model']['schema'],_0x26060c['start'],_0x333b90);_0x43de25['push']({'suggestion':_0x5c11f3,'meta':{'isOwn':_0x19d2dc==_0x5c11f3['author'],'isNextTo':_0x304bf7,'isInsideObject':_0x2d8acc,'containsRangeInObject':_0x479e06}}),_0x375603=!0x0;break;}}if(_0x375603)break;}}return _0x43de25;}['_addSuggestionMarker'](_0x2adb63,_0x34e0ea,_0x37ce5e,_0x420cb0,_0x2784ef){this['_model']['change'](_0x4a24f5=>{let _0x29b24d='suggestion:'+_0x2adb63+':'+_0x34e0ea+':'+_0x37ce5e;_0x2784ef&&(_0x29b24d=_0x29b24d+':'+_0x2784ef),_0x4a24f5['addMarker'](_0x29b24d,{'range':_0x420cb0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x32efa0){const _0x3fd302=_0x32efa0['previous'],_0x3a3bd9=_0x32efa0['next'];_0x32efa0['previous']=null,_0x32efa0['next']=null,null!=_0x3fd302&&_0x3fd302['next']==_0x32efa0&&(_0x3fd302['next']=_0x3a3bd9),null!=_0x3a3bd9&&_0x3a3bd9['previous']==_0x32efa0&&(_0x3a3bd9['previous']=_0x3fd302),'ready'==this['_suggestionState']['get'](_0x32efa0)&&(this['_suggestionState']['set'](_0x32efa0,'removed'),this['fire']('suggestionUnloaded',_0x32efa0,_0x3fd302,_0x3a3bd9));}['_setSuggestionData'](_0x1956c3){const _0xb573=_0x1956c3['id'],_0x4ece0f=this['addSuggestionData'](_0x1956c3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x402dee=this['editor']['plugins']['get']('PendingActions'),_0x27e297=_0x4ece0f['hasComments'],_0x2115ac=_0x4ece0f['subType']?_0x4ece0f['type']+':'+_0x4ece0f['subType']:_0x4ece0f['type'],_0x49808f=this['editor']['locale'],_0x4a500f=_0x402dee['add'](o(_0x49808f,'PENDING_ACTION_SUGGESTION')),_0x443843={'id':_0xb573,'type':_0x2115ac,'hasComments':_0x27e297,'data':_0x1956c3['data']||null,'originalSuggestionId':_0x1956c3['originalSuggestionId']||null,'attributes':_0x4ece0f['attributes']};this['_adapter']['addSuggestion'](_0x443843)['then'](_0x5ca590=>{_0x4ece0f['_saved']=!0x0,_0x402dee['remove'](_0x4a500f),_0x5ca590&&_0x5ca590['createdAt']&&(this['_suggestions']['get'](_0xb573)['createdAt']=_0x5ca590['createdAt']);})['catch'](_0x4915f4=>{throw _0x508cdd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4ece0f['discard']();}),_0x4ece0f['stopListening'](),this['_suggestions']['delete'](_0x4ece0f['id']),this['_suggestionState']['delete'](_0x4ece0f),_0x4915f4;});}return _0x4ece0f;}['_isBlockAttribute'](_0x26ff26){return this['_blockAttributeKeys']['has'](_0x26ff26);}['_isInlineAttribute'](_0x53d756){return this['_inlineAttributeKeys']['has'](_0x53d756);}['_updateSuggestionData'](_0x17d7db,_0x1fc498){const _0x4c32ab=this['editor']['plugins']['get']('PendingActions'),_0x459597=this['getSuggestion'](_0x17d7db);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x459597['_saved']){const _0x490e10=_0x4c32ab['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x17d7db,_0x1fc498)['then'](()=>{_0x4c32ab['remove'](_0x490e10);});}else _0x459597['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x17d7db,_0x1fc498);});}}['_getSuggestionData'](_0x3dff7f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x515288('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3dff7f);}['_handleNewSuggestionMarker'](_0x3b35b4){const {id:_0x2a525a,type:_0x1b39f1,subType:_0x573cb6,authorId:_0x49d097}=this['_splitMarkerName'](_0x3b35b4),_0x3e4b90=this['_suggestions']['get'](_0x2a525a)||this['_createSuggestion'](_0x1b39f1,_0x573cb6,_0x2a525a,_0x49d097,{});switch(this['_checkSuggestionCorrectness'](_0x3e4b90,_0x1b39f1,_0x573cb6,_0x49d097),this['_suggestionState']['get'](_0x3e4b90)){case'notReady':this['_getSuggestionData'](_0x2a525a)['then'](_0x2ab7c9=>{let _0x2ea73b=Promise['resolve']();_0x2ab7c9['hasComments']&&(_0x2ea73b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2a525a})),_0x2ea73b['then'](()=>{this['addSuggestionData'](_0x2ab7c9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3e4b90,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2a525a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3e4b90,'ready'),this['fire']('suggestionLoaded',_0x3e4b90);break;case'ready':this['fire']('suggestionChanged',_0x3e4b90);}return _0x3e4b90['addMarkerName'](_0x3b35b4),_0x3e4b90;}['_refreshSuggestionsChain'](_0x17ffb1){const _0x35af9a=Array['from'](_0x17ffb1),_0x5e7bbc=_0x35af9a['filter'](_0x4ca1a7=>'attribute'==_0x4ca1a7['type']);this['_refreshAttributeSuggestionsChain'](_0x5e7bbc);const _0x40e4cd=_0x35af9a['filter'](_0x4e7473=>!_0x4e7473['isMultiRange']&&'attribute'!=_0x4e7473['type']),_0x2fd4b5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x127c62=>!_0x127c62['isMultiRange']&&'attribute'!=_0x127c62['type']),_0x41dcb0=_0x2fd4b5['filter'](_0x3da4bd=>!_0x17ffb1['has'](_0x3da4bd)),_0x23a68f=new Map(_0x2fd4b5['map'](_0x58cfae=>[_0x58cfae,this['_suggestionFactory']['getSuggestionCallback'](_0x58cfae['type'],_0x58cfae['subType'],'chain')])),_0x55d3a9=new Map(_0x2fd4b5['map'](_0x1e54fe=>[_0x1e54fe,_0x1e54fe['getFirstRange']()])),_0x2eacb0=new Set(),_0x142910=new Set();for(let _0x4f9e14=0x0;_0x4f9e14<_0x40e4cd['length'];_0x4f9e14++)_0x57b93d(_0x40e4cd[_0x4f9e14],_0x40e4cd,_0x4f9e14+0x1);for(let _0x22beff=0x0;_0x22beff<_0x40e4cd['length'];_0x22beff++)_0x57b93d(_0x40e4cd[_0x22beff],_0x41dcb0,0x0);const _0x3d8a04=new Set();for(let _0x4bd74e=0x0;_0x4bd74e<_0x40e4cd['length'];_0x4bd74e++){const _0x185395=_0x40e4cd[_0x4bd74e];!_0x142910['has'](_0x185395)&&_0x185395['previous']&&(_0x3d8a04['add'](_0x185395['previous']),_0x185395['previous']['next']===_0x185395&&(_0x185395['previous']['next']=null),_0x185395['previous']=null),!_0x2eacb0['has'](_0x185395)&&_0x185395['next']&&(_0x3d8a04['add'](_0x185395['next']),_0x185395['next']['previous']===_0x185395&&(_0x185395['next']['previous']=null),_0x185395['next']=null);}function _0x57b93d(_0x264920,_0x491840,_0x12a686){for(let _0x117b86=_0x12a686;_0x117b86<_0x491840['length'];_0x117b86++){const _0x7b6093=_0x2aa509(_0x264920,_0x491840[_0x117b86]);_0x7b6093&&(_0x7b6093[0x0]['next']=_0x7b6093[0x1],_0x7b6093[0x1]['previous']=_0x7b6093[0x0],_0x2eacb0['add'](_0x7b6093[0x0]),_0x142910['add'](_0x7b6093[0x1]));}}function _0x2aa509(_0xd94b0b,_0x7e9a53){if(_0xd94b0b['author']['id']!==_0x7e9a53['author']['id'])return null;const _0x44e4ab=_0x23a68f['get'](_0xd94b0b)(_0xd94b0b,_0x7e9a53,_0x55d3a9['get'](_0xd94b0b),_0x55d3a9['get'](_0x7e9a53));if(!_0x44e4ab)return null;return _0x23a68f['get'](_0x7e9a53)(_0xd94b0b,_0x7e9a53,_0x55d3a9['get'](_0xd94b0b),_0x55d3a9['get'](_0x7e9a53))?_0x44e4ab[0x1]['commentThread']&&_0x44e4ab[0x1]['commentThread']['length']?null:_0x44e4ab:null;}_0x3d8a04['size']&&this['_refreshSuggestionsChain'](_0x3d8a04);}['_refreshAttributeSuggestionsChain'](_0x3269e9){if(0x0==_0x3269e9['length'])return;const _0x2eda16=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5069b2=>'attribute'==_0x5069b2['type']&&_0x5069b2['_isDataLoaded']),_0x3df339=[],_0x170e97=new Map();for(const _0x332551 of _0x2eda16){const _0x181e77=_0x318d41(_0x332551['attributes']);_0x170e97['has'](_0x181e77)||(_0x170e97['set'](_0x181e77,_0x3df339['length']),_0x3df339['push']([]));const _0x31cc91=_0x170e97['get'](_0x181e77);_0x3df339[_0x31cc91]['push'](_0x332551);}!(function(){_0x3df339['sort']((_0x4c1880,_0x1abd37)=>{const _0x595594=_0x4c1880[0x0]['createdAt'],_0x24d272=_0x1abd37[0x0]['createdAt'];return _0x595594==_0x24d272?_0x4c1880[0x0]['attributes']['groupId']<_0x1abd37[0x0]['attributes']['groupId']?-0x1:0x1:_0x595594<_0x24d272?-0x1:0x1;});for(const _0x3265e3 of _0x3df339)_0x3265e3['sort']((_0x2a41db,_0x547419)=>_0x2a41db['id']<_0x547419['id']?-0x1:0x1);}());for(let _0xedb490=0x0;_0xedb490<_0x3df339['length'];_0xedb490++){if(0x0==_0x3df339[_0xedb490]['length'])continue;const _0x405026=[];for(let _0x5d016f=_0xedb490+0x1;_0x5d016f<_0x3df339['length'];_0x5d016f++)0x0!=_0x3df339[_0x5d016f]['length']&&_0x44991f(_0x3df339[_0xedb490],_0x3df339[_0x5d016f])&&_0x405026['push'](_0x5d016f);for(const _0x332673 of _0x405026)_0x3df339[_0xedb490]=_0x3df339[_0xedb490]['concat'](_0x3df339[_0x332673]),_0x3df339[_0x332673]=[];}for(const _0x14575c of _0x3df339)for(let _0x21398f=0x0;_0x21398f<_0x14575c['length'];_0x21398f++){const _0x335004=_0x14575c[_0x21398f+0x1]||null;_0x14575c[_0x21398f]['next']!==_0x335004&&(_0x14575c[_0x21398f]['next']=_0x335004);}for(const _0x4b73ae of _0x3df339)for(let _0xbfb4e1=0x0;_0xbfb4e1<_0x4b73ae['length'];_0xbfb4e1++){const _0x4243c5=_0x4b73ae[_0xbfb4e1-0x1]||null;_0x4b73ae[_0xbfb4e1]['previous']!==_0x4243c5&&(_0x4b73ae[_0xbfb4e1]['previous']=_0x4243c5);}function _0x44991f(_0x4682ed,_0x515bef){if(_0x4682ed[0x0]['attributes']['groupId']!==_0x515bef[0x0]['attributes']['groupId']&&_0x4682ed[0x0]['author']!==_0x515bef[0x0]['author'])return!0x1;if(!function(_0x465f96,_0x114cb0){if(!_0x465f96['hasComments']&&!_0x114cb0['hasComments'])return!0x0;if(_0x465f96['hasComments']&&_0x114cb0['hasComments'])return!0x1;if(_0x465f96['hasComments']&&_0x114cb0['createdAt']<_0x465f96['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x114cb0['hasComments']&&_0x465f96['createdAt']<_0x114cb0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4682ed[0x0],_0x515bef[0x0]))return!0x1;const _0x526ec9=Lt(_0x4682ed[0x0]['attributes'],['groupId','trackingSessionId']),_0x811874=Lt(_0x515bef[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5cf543(_0x526ec9,_0x811874))return!0x1;if(_0x4682ed[0x0]['attributes']['groupId']==_0x515bef[0x0]['attributes']['groupId'])return!0x0;if(_0x4682ed[0x0]['attributes']['trackingSessionId']!==_0x515bef[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4682ed['every'](_0x39f79f=>_0x515bef['some'](_0x4fecd0=>_0x39f79f['getFirstRange']()['isEqual'](_0x4fecd0['getFirstRange']())))&&_0x515bef['every'](_0x46497c=>_0x4682ed['some'](_0x2a5c0a=>_0x46497c['getFirstRange']()['isEqual'](_0x2a5c0a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x43d466){const _0x5440a8=Array['from'](_0x43d466),_0x7973e9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x364215=_0x7973e9['filter'](_0x5ca519=>!_0x43d466['has'](_0x5ca519)),_0x2c7270=new Map(_0x5440a8['map'](_0x561164=>[_0x561164,this['_suggestionFactory']['getSuggestionCallback'](_0x561164['type'],_0x561164['subType'],'join')])),_0x2eea5b=new Map(_0x7973e9['map'](_0x10d791=>[_0x10d791,_0x10d791['getRanges']()]));for(let _0x41541d=0x0;_0x41541d<_0x5440a8['length'];_0x41541d++){if(_0x151210(this,_0x5440a8[_0x41541d],_0x5440a8,_0x41541d+0x1))return!0x0;}for(let _0x349cac=0x0;_0x349cac<_0x5440a8['length'];_0x349cac++){if(_0x151210(this,_0x5440a8[_0x349cac],_0x364215,0x0))return!0x0;}return!0x1;function _0x151210(_0x34f039,_0x1ef771,_0x255cbe,_0x71efb){for(let _0x2d30c6=_0x71efb;_0x2d30c6<_0x255cbe['length'];_0x2d30c6++){const _0x915f38=_0x255cbe[_0x2d30c6];if(_0x915f38['type']!==_0x1ef771['type']||_0x915f38['author']['id']!==_0x1ef771['author']['id']||_0x915f38['subType']!==_0x1ef771['subType'])continue;if(!ie(_0x1ef771,_0x915f38))continue;if('attribute'==_0x1ef771['type']&&_0x1ef771['data']['oldValue']!=_0x915f38['data']['oldValue'])continue;if('attribute'==_0x1ef771['type']&&_0x34f039['_isBlockAttribute'](_0x1ef771['data']['key']))continue;if('formatBlock'==_0x1ef771['type']){const _0x45491d=_0x34f039['editor']['model'],_0x10a00b=_0x1ef771['getContainedElement']();if(_0x10a00b&&(_0x45491d['schema']['isObject'](_0x10a00b)||_0x45491d['schema']['isLimit'](_0x10a00b)))continue;}const _0x1cd153=_0x2c7270['get'](_0x1ef771),_0x3254a0=_0x2eea5b['get'](_0x1ef771),_0x446385=_0x2eea5b['get'](_0x915f38),_0x85ccfa=_0x1ef771['commentThread']&&_0x1ef771['commentThread']['length'],_0x2773f5=_0x915f38['commentThread']&&_0x915f38['commentThread']['length'];if(!_0x85ccfa&&_0x1cd153(_0x446385,_0x3254a0))return _0x34f039['_joinSuggestions'](_0x915f38,_0x1ef771),_0x2eea5b['delete'](_0x1ef771),!0x0;if(!_0x2773f5&&_0x1cd153(_0x3254a0,_0x446385))return _0x34f039['_joinSuggestions'](_0x1ef771,_0x915f38),_0x2eea5b['delete'](_0x915f38),!0x0;}return!0x1;}}['_joinSuggestions'](_0x277e94,_0x221154){if(_0x277e94['isMultiRange']){for(const _0x10302b of _0x221154['getRanges']())_0x277e94['addRange'](_0x10302b);}else{const _0x164ff3=_0x221154['getFirstRange']()['end'];this['_setSuggestionRange'](_0x277e94,this['_model']['createRange'](_0x277e94['getFirstRange']()['start'],_0x164ff3));}_0x221154['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2d00b0,_0x7f9bf7,_0xa558cb){const _0x191d2f=_0x2d00b0['startsWith']('format')||_0x2d00b0['startsWith']('attribute')?'FORMATTING':_0x2d00b0['toUpperCase']();return o(this['editor']['locale'],_0x7f9bf7+'_'+_0x191d2f+'_SUGGESTION_ANNOUNCEMENT',_0xa558cb);}['_initAriaMarkerChangeAnnouncements'](){const _0x27a9aa=this['editor'];if(!_0x27a9aa['ui'])return;const {ariaLiveAnnouncer:_0x38ebdf}=_0x27a9aa['ui'];_0x154636(this['_model'],({left:_0x3ebf22,entered:_0x5ce460})=>{for(const _0x58d4bf of _0x3ebf22){const {group:_0x10da06,type:_0x29046e}=this['_splitMarkerName'](_0x58d4bf['name']);if('suggestion'===_0x10da06){_0x38ebdf['announce'](this['_getMarkerAnnouncementText'](_0x29046e,'LEAVE'));break;}}for(const _0x1bbd22 of _0x5ce460){const {group:_0x2b93ef,type:_0x38c81e}=this['_splitMarkerName'](_0x1bbd22['name']);if('suggestion'===_0x2b93ef){_0x38ebdf['announce'](this['_getMarkerAnnouncementText'](_0x38c81e,'ENTER',_0x465b03(_0x15f150)));break;}}});}['_processAttributeChanges'](_0x225b00){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d18e6=this['editor'],_0x3ab8ed=_0x4d18e6['model']['document']['differ']['getChanges']();if(0x0==_0x3ab8ed['length'])return!0x1;const _0x4e482b=[],_0x9de789=_0x3ab8ed['filter'](_0xda3ea3=>'attribute'==_0xda3ea3['type']),_0x59444a=_0x3ab8ed['filter'](_0x2ae497=>'insert'==_0x2ae497['type']&&'$text'!=_0x2ae497['name']),_0x47c70e=_0x3ab8ed['filter'](_0x337556=>'remove'==_0x337556['type']&&'$text'!=_0x337556['name']);for(const _0x1d02bd of _0x9de789)_0x4e482b['push']({'key':_0x1d02bd['attributeKey'],'newValue':_0x1d02bd['attributeNewValue'],'oldValue':_0x1d02bd['attributeOldValue'],'range':Zt(_0x1d02bd['range'],_0x4d18e6['model'])});for(const _0x51632d of _0x59444a){const _0x116bdd=_0x47c70e['find'](_0x5c2a2e=>_0x5c2a2e['position']['isEqual'](_0x51632d['position']));_0x116bdd&&_0x4e482b['push']({'key':m,'newValue':_0x51632d['name'],'oldValue':_0x116bdd['name'],'range':_0x4d18e6['model']['createRangeOn'](_0x51632d['position']['nodeAfter'])});}return 0x0!=_0x4e482b['length']&&this['_reduceExistingSuggestions'](_0x225b00,_0x4e482b);}['_processAttributeSuggestions'](_0x259215){let _0x23f416=!0x1;const _0x1629a0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bb5f6=>_0x1bb5f6['data']['newRange']&&_0x1bb5f6['name']['startsWith']('suggestion:attribute:'));for(const _0x31cfb8 of _0x1629a0){const {subType:_0x2cecc4,id:_0x5b599c}=this['_splitMarkerName'](_0x31cfb8['name']),_0x232133=_0x2cecc4['split']('|')[0x0];for(const _0x3c9eed of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3c9eed['id']!=_0x5b599c&&'attribute'==_0x3c9eed['type']&&_0x3c9eed['data']&&_0x3c9eed['data']['key']==_0x232133&&_0x3c9eed['getFirstRange']()['isIntersecting'](_0x31cfb8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3c9eed,_0x31cfb8['data']['newRange'],_0x259215),_0x23f416=!0x0);}return _0x23f416;}['recordAttributeChanges'](_0x36c1cb){this['_recordAttributeSuggestions']=!0x0,_0x36c1cb();}['_isRegisteredAttribute'](_0xe4b2ae){const _0x53398f=this['_isBlockAttribute'](_0xe4b2ae),_0x3bfcfe=this['_isInlineAttribute'](_0xe4b2ae);return _0x53398f||_0x3bfcfe;}['_reduceExistingSuggestions'](_0x3006b8,_0x311c46){if(0x0==_0x311c46['length'])return!0x1;let _0x518c38=!0x1;for(const _0x10b2c of _0x311c46){const _0x2fab3c=this['_findSuggestions'](_0x10b2c['range'],'attribute')['filter'](_0x4424b9=>!_0x4424b9['meta']['isNextTo'])['map'](_0x4e3ba6=>_0x4e3ba6['suggestion']),_0xc8736c=_0x318d41({'newValue':_0x10b2c['newValue']});_0x2fab3c['filter'](_0x4a3bd7=>{const [_0x26def9,_0x1b15ca]=_0x4a3bd7['subType']['split']('|');return _0x26def9==_0x10b2c['key']&&_0x1b15ca!=_0xc8736c;})['forEach'](_0x27b01c=>{this['_reduceSuggestionAttributeRange'](_0x27b01c,_0x10b2c['range'],_0x3006b8),_0x518c38=!0x0;});}return _0x518c38;}['_reduceSuggestionAttributeRange'](_0x23d878,_0x5618a4,_0x2ce6c7){const _0x35bc27=_0x23d878['getFirstRange']()['getDifference'](_0x5618a4);0x0!==_0x35bc27['length']?0x1!==_0x35bc27['length']?this['_breakSuggestionMarker'](_0x23d878,_0x5618a4['start'],_0x5618a4['end']):this['_setSuggestionRange'](_0x23d878,_0x35bc27[0x0]):_0x2ce6c7['removeMarker'](_0x23d878['getFirstMarker']());}}class Jt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4c255a){this['_editor']=_0x4c255a,this['_model']=_0x4c255a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1d99e9,_0x1efb33,_0x5e3952,_0x38a20e,_0x3ce7d5,_0x13473f,_0x5b45c8){return new R(this['_model'],{'type':_0x1d99e9,'subType':_0x1efb33,'id':_0x5e3952,'originalSuggestionId':_0x5b45c8,'author':_0x38a20e,'creator':_0x38a20e,'attributes':_0x3ce7d5,'onAttributesChange':_0x13473f,'onAccept':(..._0x103528)=>this['getSuggestionCallback'](_0x1d99e9,_0x1efb33,'accept')(..._0x103528),'onDiscard':(..._0x393d13)=>this['getSuggestionCallback'](_0x1d99e9,_0x1efb33,'discard')(..._0x393d13)});}['registerCustomCallback'](_0x219232,_0xf58bb0,_0xc8046f,_0x41020c){const _0x47af3d=_0x219232+':'+_0xf58bb0+':'+_0xc8046f;this['_customCallbacks']['set'](_0x47af3d,_0x41020c);}['getSuggestionCallback'](_0x5e87bb,_0x4edcc1,_0x41af3d){const _0x195c8b=_0x5e87bb+':'+_0x4edcc1+':'+_0x41af3d;return this['_customCallbacks']['get'](_0x195c8b)||this['_defaultCallbacks']['get'](_0x5e87bb+':'+_0x41af3d);}['_registerDefaultCallbacks'](){const _0x124944=()=>!0x1,_0x290f9f=_0x135413=>{_0x135413['sort']((_0x3696b3,_0x13ea40)=>_0x3696b3['start']['isBefore'](_0x13ea40['start'])?0x1:-0x1),this['_model']['change'](_0xb3d244=>{for(const _0x372049 of _0x135413){let _0x3f5d7b;_0x3f5d7b=_0x372049['end']['isAtEnd']&&_0x372049['end']['parent']==_0x372049['start']['nodeAfter']?_0xb3d244['createSelection'](_0x372049['start']['nodeAfter'],'on'):_0xb3d244['createSelection'](_0x372049),this['_model']['deleteContent'](_0x3f5d7b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x233763=(_0x36b73d,_0x10d562)=>{_0x10d562&&this['_model']['change'](_0x40f48c=>{const {commandName:_0xd5877f,commandParams:_0x1aea7f=[]}=_0x10d562,_0x50a75a=_0x36b73d['map'](_0x4e6094=>(Ht(_0x4e6094)&&(_0x4e6094=this['_model']['createRange'](_0x4e6094['end'])),_0x4e6094))['filter'](_0x1609e0=>'$graveyard'!==_0x1609e0['root']['rootName']);if(_0x50a75a['length']<0x1)return;const _0x5d91dd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x311c8e=>_0x2fe235['fromRange'](_0x311c8e));_0x40f48c['setSelection'](_0x50a75a);for(const _0x4adfea of this['_editor']['commands']['commands']())_0x4adfea['refresh']();_0x1aea7f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xd5877f,..._0x1aea7f);const _0x25cea7=_0x5d91dd['filter'](_0x2cbe4b=>'$graveyard'!=_0x2cbe4b['root']['rootName']);_0x25cea7['length']>0x0&&_0x40f48c['setSelection'](_0x25cea7);for(const _0x421ccb of _0x5d91dd)_0x421ccb['detach']();});},_0x4a92e1=(_0x265503,_0x4a280b)=>0x1==_0x265503['length']&&0x1==_0x4a280b['length']&&_0x265503[0x0]['end']['isEqual'](_0x4a280b[0x0]['start']),_0x3055f3=(_0x32f39b,_0x357b9a,_0x22037f,_0x12576b)=>ee(_0x32f39b,_0x357b9a,_0x22037f,_0x12576b)?[_0x32f39b,_0x357b9a]:ee(_0x357b9a,_0x32f39b,_0x12576b,_0x22037f)?[_0x357b9a,_0x32f39b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x124944),this['_defaultCallbacks']['set']('insertion:discard',_0x290f9f),this['_defaultCallbacks']['set']('insertion:join',_0x4a92e1),this['_defaultCallbacks']['set']('insertion:chain',_0x3055f3),this['_defaultCallbacks']['set']('deletion:accept',_0x290f9f),this['_defaultCallbacks']['set']('deletion:discard',_0x124944),this['_defaultCallbacks']['set']('deletion:join',_0x4a92e1),this['_defaultCallbacks']['set']('deletion:chain',_0x3055f3),this['_defaultCallbacks']['set']('formatInline:accept',_0x233763),this['_defaultCallbacks']['set']('formatInline:discard',_0x124944),this['_defaultCallbacks']['set']('formatInline:join',_0x4a92e1),this['_defaultCallbacks']['set']('formatInline:chain',_0x124944),this['_defaultCallbacks']['set']('formatBlock:accept',_0x233763),this['_defaultCallbacks']['set']('formatBlock:discard',_0x124944),this['_defaultCallbacks']['set']('formatBlock:join',_0x4a92e1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x124944),this['_defaultCallbacks']['set']('attribute:accept',_0x124944),this['_defaultCallbacks']['set']('attribute:discard',(_0x5ad8e9,_0x2d102d)=>{if(!_0x2d102d)return;const _0x5cf5cc=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5947f0=>{if(_0x2d102d['key']==m)for(const _0x33b445 of _0x5ad8e9){const _0x2d84d8=_0x33b445['start']['nodeAfter'],_0x8923f1=_0x2d102d['oldValue'];_0x5947f0['rename'](_0x2d84d8,_0x8923f1);}else{if(_0x5cf5cc['_isBlockAttribute'](_0x2d102d['key'])){for(const _0xd4d0fc of _0x5ad8e9)void 0x0!==_0x2d102d['oldValue']?_0x5947f0['setAttribute'](_0x2d102d['key'],_0x2d102d['oldValue'],_0xd4d0fc['start']['nodeAfter']):_0x5947f0['removeAttribute'](_0x2d102d['key'],_0xd4d0fc['start']['nodeAfter']);}else{for(const _0x1632dd of _0x5ad8e9)_0x2d102d['oldValue']?_0x5947f0['setAttribute'](_0x2d102d['key'],_0x2d102d['oldValue'],_0x1632dd):_0x5947f0['removeAttribute'](_0x2d102d['key'],_0x1632dd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4a92e1);}}function Kt(_0x571ecd,_0x561761,_0x116537){for(const _0x24cad5 of _0x561761['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x24cad5['root']==_0x24cad5)return!0x1;if(!_0x116537['containsItem'](_0x24cad5))return!0x1;if(_0x571ecd['isObject'](_0x24cad5)||_0x571ecd['isLimit'](_0x24cad5))return!0x0;}return!0x1;}function Ht(_0xa8c195){return _0xa8c195['end']['parent']==_0xa8c195['start']['nodeAfter']&&_0xa8c195['end']['isAtStart'];}function Wt(_0x1ad5d2,_0x379039,_0x3676a2,_0x17c591){const _0x3f656a=_0x213d34=>!_0x213d34['item']['is']('$textProxy')&&!_0x17c591['isObject'](_0x213d34['item']),_0x3d2cb6=_0x1ad5d2['start']['getLastMatchingPosition'](_0x3f656a),_0x7f1ade=_0x1ad5d2['end']['getLastMatchingPosition'](_0x3f656a,{'direction':'backward'});return(!_0x1ad5d2['start']['isEqual'](_0x3d2cb6)||!_0x1ad5d2['end']['isEqual'](_0x7f1ade))&&(_0x3d2cb6['isBefore'](_0x7f1ade)?_0x3676a2['updateMarker'](_0x379039,{'range':_0x3676a2['createRange'](_0x3d2cb6,_0x7f1ade)}):_0x3676a2['removeMarker'](_0x379039),!0x0);}function qt(_0x49d95a){return _0x318d41(_0x49d95a);}function zt(_0x51d924){const _0x5eb758=_0x51d924['start']['nodeAfter'];return _0x5eb758&&_0x5eb758['is']('element');}function Qt(_0x5d27ff){return Ht(_0x5d27ff)||function(_0x30df16){return _0x30df16['start']['parent']==_0x30df16['end']['nodeBefore']&&_0x30df16['start']['isAtEnd'];}(_0x5d27ff);}function Xt(_0xe60885,_0x205a9b){try{const _0x3f0b50=_0xe60885['getRange']();for(const _0x5360cf of _0x205a9b)if(_0xe60885!==_0x5360cf&&_0x3f0b50&&_0x3f0b50['isIntersecting'](_0x5360cf['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0x5c05f3,_0x40fe83){const _0x1ec134=_0x5c05f3['end']['nodeBefore'];if(_0x1ec134&&_0x1ec134['is']('element')&&_0x40fe83['schema']['isBlock'](_0x1ec134)&&!_0x40fe83['schema']['isObject'](_0x1ec134)){const _0x2360ce=_0x40fe83['createPositionAt'](_0x1ec134,'end');return _0x40fe83['createRange'](_0x5c05f3['start'],_0x2360ce);}return _0x5c05f3;}function Zt(_0x4c48d1,_0x57a91a){return null==_0x4c48d1['end']['nodeBefore']&&_0x4c48d1['end']['parent']==_0x4c48d1['start']['nodeAfter']?te(_0x4c48d1['start']['nodeAfter'],_0x57a91a):_0x4c48d1;}function te(_0x406211,_0xaf8a96){const _0x473357=_0xaf8a96['schema']['isObject'](_0x406211)||_0xaf8a96['schema']['isSelectable'](_0x406211);return _0xaf8a96['createRange'](_0xaf8a96['createPositionAt'](_0x406211,'before'),_0x473357?_0xaf8a96['createPositionAfter'](_0x406211):_0xaf8a96['createPositionAt'](_0x406211,'end'));}function ee(_0x2cdf46,_0x43a052,_0x321ecb,_0x4d8432){return!!ie(_0x2cdf46,_0x43a052)&&_0x321ecb['end']['isEqual'](_0x4d8432['start']);}function ie(_0x7c3172,_0x285860){if(!_0x7c3172['_isDataLoaded']||!_0x285860['_isDataLoaded'])return!0x1;const _0x120260=new Set(Object['keys'](_0x7c3172['attributes'])),_0x309d59=new Set(Object['keys'](_0x285860['attributes']));if(_0x120260['delete']('groupId'),_0x309d59['delete']('groupId'),0x0==_0x120260['size']&&0x0==_0x309d59['size'])return!0x0;if(_0x120260['size']!=_0x309d59['size'])return!0x1;const _0x252ddb={..._0x7c3172['attributes']},_0x58ea21={..._0x285860['attributes']};return delete _0x252ddb['groupId'],delete _0x58ea21['groupId'],JSON['stringify'](_0x252ddb)==JSON['stringify'](_0x58ea21);}function ne(_0x2b32fb,_0x196a77){const _0x16f2f4=se(_0x2b32fb['attributes']),_0x3940f2=se(_0x196a77);if(!_0x2b32fb['_isDataLoaded'])return!0x1;for(const _0x206620 of Object['keys'](_0x3940f2))if(!_0x5cf543(_0x16f2f4[_0x206620],_0x3940f2[_0x206620]))return!0x1;return!0x0;}function se(_0x236ab6){const _0xf5dfdf=Object['assign']({},_0x236ab6);return delete _0xf5dfdf['skipNestingCheck'],delete _0xf5dfdf['tablePasteChainId'],_0xf5dfdf;}function oe(_0x31db39){return _0x31db39['split']('|')[0x0];}class Te extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5100d7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x585221,_0x5416a9,_0x1f0a75,_0x46dd37){super(),this['model']=_0x5416a9,this['view']=_0x1f0a75,this['commentThreadController']=_0x46dd37,this['_editor']=_0x585221,this['_acceptCommand']=_0x585221['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x585221['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x236c27,_0x71382b)=>_0x236c27||_0x71382b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x108b17=>_0x108b17&&this['_editor']['model']['canEditAt'](_0x5416a9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3487cd=>_0x3487cd&&this['_editor']['model']['canEditAt'](_0x5416a9['getRanges']())),this['_pendingAction']=null,_0x1f0a75['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1f0a75,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1f0a75,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1f0a75,'change:isDirty',()=>{_0x1f0a75['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x9d6b2c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x9d6b2c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1a95f3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5f01d5,_0x197f97,_0x19b7d9,_0x3263f2){super(_0x5f01d5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x367c93(_0x5f01d5,o(_0x5f01d5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x197f97['authoredAt']),this['bind']('authoredAt')['to'](_0x197f97),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x197f97,'authoredAt',this,'descriptionParts',(_0x48ee09,_0x4ecd42,_0x1c75c2)=>{const _0x346a51=_0x1c75c2['map'](_0x8d1852=>ls(_0x8d1852['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48ee09-0x1,_0x197f97['author']['name'],_0x4ecd42?_0x3263f2['formatDateTime'](_0x4ecd42):'',new DOMParser()['parseFromString'](_0x346a51,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc18b02(),this['focusTracker']=new _0x3b3986(),this['keystrokes']=new _0x182121(),this['focusCycler']=new _0x225e9e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5b9dd2=>_0x5b9dd2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x197f97,this['_localUser']=_0x19b7d9,this['_config']=_0x3263f2,_0x3263f2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x466ce5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x39b38e}=this['_config'];this['commentsListView']=new _0x39b38e(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x42e9b9=>_0x42e9b9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x513c4b,_0x8fd01e)=>_0x513c4b||!!_0x8fd01e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x37dffd}=this['_config'],_0x5105c9=new _0x37dffd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2c26d5=_0x5105c9['commentInputView'];return _0x5105c9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2c26d5,'value',(_0x524726,_0x42f981,_0x243e4d)=>!!_0x243e4d||_0x524726&&!_0x42f981),_0x2c26d5['on']('submit',(_0x450d2d,_0x45c18a)=>{this['fire']('addComment',_0x45c18a),_0x2c26d5['editor']['setData']('');}),_0x2c26d5['on']('cancel',()=>this['focus']()),_0x2c26d5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5105c9;}}class Le extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x16b31e,_0x5e9399,_0x322393,_0x50b44f){super(_0x16b31e,_0x5e9399,_0x322393,_0x50b44f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb40339=>_0xb40339&&_0xb40339[0x0]?_0xb40339[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x92e6f8,_0x2634c8)=>{let _0x553b79='';for(const _0x4520c4 of _0x92e6f8)_0x553b79+='<p>'+ls(_0x4520c4['content'],_0x4520c4['color'])+'</p>';return _0x2634c8?_0x553b79:_0x461d21(_0x553b79,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x50b44f['SuggestionView'](_0x16b31e,_0x5e9399,{'formatDateTime':_0x50b44f['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4f52ee=this['bindTemplate'],_0x163ac7=[this['suggestionView']];return this['commentsListView']&&_0x163ac7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x163ac7['push'](this['commentThreadInputView']),_0x163ac7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4f52ee['if']('isActive','ck-suggestion-wrapper--active'),_0x4f52ee['to']('type',_0x3695e7=>'ck-suggestion-'+_0x3695e7),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4f52ee['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x163ac7};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ve extends _0x1a95f3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x187caf,_0x514974,_0x416524){super(_0x187caf),this['_model']=_0x514974,this['_config']=_0x416524,this['set']('description',''),this['bind']('authoredAt')['to'](_0x514974),this['acceptButton']=this['_createButton'](o(_0x187caf,'Accept\x20suggestion'),_0x5e26cb,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x187caf,'Discard\x20suggestion'),_0x19f008,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1a6119(_0x187caf,_0x514974['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc18b02([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b3986(),this['keystrokes']=new _0x182121(),this['focusCycler']=new _0x225e9e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1b2c3d=>_0x1b2c3d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x10ea2b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x10ea2b['innerHTML']=this['description'],this['on']('change:description',(_0xe551ea,_0x8c2076,_0x915a2)=>{_0x10ea2b['innerHTML']=_0x915a2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x249944=this['bindTemplate'],_0x44397b=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x249944['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x249944['to']('authoredAt',_0x5143ce=>this['_config']['formatDateTime'](_0x5143ce))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x44397b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x44397b}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x258070,_0xa97be6,_0x163eb6,_0x4f0965,_0x37dc09){const _0x3c4793=new _0x1c6c78(this['locale']);return _0x3c4793['set']({'label':_0x258070,'icon':_0xa97be6,'tooltip':!0x0,'tooltipPosition':_0x37dc09}),_0x3c4793['extendTemplate']({'attributes':{'class':_0x163eb6}}),_0x3c4793['on']('execute',()=>{this['fire'](_0x4f0965,this['_model']['id']);}),_0x3c4793;}['_setupKeyboardNavigation'](){const _0x3bccfa=this['element'];this['keystrokes']['listenTo'](_0x3bccfa);for(const _0x3bf5c2 of this['focusables'])this['focusTracker']['add'](_0x3bf5c2['element']),this['keystrokes']['listenTo'](_0x3bf5c2['element']);this['keystrokes']['set']('enter',(_0x4e7d45,_0x169b6a)=>{_0x3bccfa===_0x4e7d45['target']&&(this['focusCycler']['focusFirst'](),_0x169b6a());}),this['keystrokes']['set']('esc',(_0x556264,_0x514771)=>{_0x3bccfa!==_0x556264['target']&&(this['focus'](),_0x514771());});}}class u extends _0x1ac4a7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x53c5da,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5898ab){super(_0x5898ab),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2f8acb=this['editor']['config'];_0x2f8acb['define']('trackChanges.SuggestionThreadView',Le),_0x2f8acb['define']('trackChanges.SuggestionView',ve),_0x2f8acb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2f8acb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5f20e4,_0x7a78d0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf8f54e,_0x4e3cad]of this['_handleControllerBuffer']){const _0x1fa933=this['_suggestionToController']['has'](_0xf8f54e);_0x1fa933||_0x4e3cad?_0x1fa933&&_0x4e3cad&&this['_destroyController'](_0xf8f54e):this['_initializeController'](_0xf8f54e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5f20e4,_0x7a78d0);}['init'](){const _0x2ecfaa=this['editor'],_0x2d8ee7=_0x2ecfaa['plugins']['get']('TrackChangesEditing'),_0x59038b=_0x2ecfaa['plugins']['get']('Annotations'),_0x2b663d=_0x2ecfaa['plugins']['get']('EditorAnnotations'),_0x3a67de=_0x2ecfaa['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2b663d['addSourceCollector'](()=>{const _0x16a3a8=[];for(const [_0x297f33,_0x52ef29]of Array['from'](this['_suggestionToController'])){const _0x32b8e0=_0x297f33['getAllAdjacentSuggestions'](),_0x173654=[];for(const _0x2d0cf3 of _0x32b8e0){if(!_0x2d0cf3['isInContent'])continue;if(_0x2d0cf3['isMultiRange']){_0x173654['push'](..._0x2d0cf3['getRanges']());continue;}const _0xe7c6d8=_0x2d0cf3['getFirstRange']();if(_0x173654['length']>0x0){const _0x4ae7bc=_0x173654[0x0]['getJoined'](_0xe7c6d8);if(_0x4ae7bc){_0x173654[0x0]=_0x4ae7bc;continue;}}_0x173654['push'](_0xe7c6d8);}_0x16a3a8['push']([_0x52ef29['view'],_0x173654]);}return _0x16a3a8;}),this['listenTo'](_0x2d8ee7,'suggestionLoaded',(_0x41aece,_0x5d6f1b)=>{this['listenTo'](_0x5d6f1b,'change:previous',(_0x18a019,_0x402023,_0x3cf91b,_0x500274)=>{_0x5d6f1b['isInContent']&&(null==_0x3cf91b?(this['_updateController'](_0x500274['head']),this['_handleSuggestionControllerDelayed'](_0x5d6f1b,!0x1)):(this['_updateController'](_0x3cf91b['head']),null==_0x500274&&this['_handleSuggestionControllerDelayed'](_0x5d6f1b,!0x0)));}),null!==_0x5d6f1b['previous']?this['_updateController'](_0x5d6f1b['head']):this['_handleSuggestionControllerDelayed'](_0x5d6f1b,!0x1);}),this['listenTo'](_0x2d8ee7,'suggestionUnloaded',(_0x597356,_0x24d8f2,_0x3b9350)=>{this['stopListening'](_0x24d8f2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x24d8f2),this['_suggestionToController']['has'](_0x24d8f2)&&this['_destroyController'](_0x24d8f2),_0x3b9350&&this['_updateController'](_0x3b9350['head']);}),this['listenTo'](_0x2d8ee7,'suggestionChanged',(_0x3e36be,_0x282d77)=>{this['_updateController'](_0x282d77);}),this['listenTo'](_0x59038b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3a67de,'addComment',(_0x5176da,{threadId:_0x516cfd,isFromAdapter:_0x5b7151})=>{if(_0x5b7151||!_0x2d8ee7['hasSuggestion'](_0x516cfd))return;const _0x2177bb=_0x2d8ee7['getSuggestion'](_0x516cfd);this['_suggestionToController']['get'](_0x2177bb)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a3dac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe74b55;for(const _0x5ad3cf in _0x3a3dac){const _0x44e861=_0x5ad3cf,_0x310283=_0x3a3dac[_0x44e861];if('trackChangesLicenseKeyValid'==_0x310283||'trackChangesLicenseKeyInvalid'==_0x310283||'trackChangesLicenseKeyExpired'==_0x310283||'trackChangesLicenseKeyDomainLimit'==_0x310283||'trackChangesLicenseKeyNotAllowed'==_0x310283||'trackChangesLicenseKeyEvaluationLimit'==_0x310283||'trackChangesLicenseKeyTrialLimit'==_0x310283||'trackChangesLicenseKeyUsageLimit'==_0x310283){delete _0x3a3dac[_0x44e861],_0xe74b55=_0x310283,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe74b55&&_0x3a3dac['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe74b55&&_0x3a3dac['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe74b55&&_0x3a3dac['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe74b55&&_0x3a3dac['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x55bdaf){const _0x44caaf=this['_suggestionToController']['get'](_0x55bdaf);if(!_0x44caaf)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x44caaf['view'])||null;}['getSuggestionForAnnotation'](_0x1a0be1){const _0x428ad4=this['_viewToController']['get'](_0x1a0be1['innerView']);return _0x428ad4?_0x428ad4['model']:null;}['_refreshActiveMarkers'](){const _0xe94233=this['editor']['plugins']['get']('Annotations'),_0x52a879=this['editor']['plugins']['get']('TrackChangesEditing'),_0x581543=Array['from'](_0xe94233['activeAnnotations'],_0x555a27=>_0x555a27['innerView'])['filter'](_0x2c9123=>this['_viewToController']['has'](_0x2c9123)),_0x3ee3d8=[];for(const _0x130c93 of _0x581543){const _0x408dd1=this['_viewToController']['get'](_0x130c93)['model']['getAllAdjacentSuggestions']();_0x3ee3d8['push'](..._0x408dd1['reduce']((_0x460906,_0x4a2478)=>[..._0x460906,..._0x4a2478['getMarkerNames']()],[]));}_0x52a879['activeMarkers']=_0x3ee3d8;}['_addUIComponentsToFactory'](){const _0x33b995=this['editor'],_0x310dd=_0x33b995['locale'],_0x450ee9=o(_0x310dd,'Track\x20changes'),_0x2d8668=new _0x5ca53d([{'type':'switchbutton','model':new _0x1e1468({'withText':!0x0,'isToggleable':!0x0,'label':_0x450ee9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x33b995['plugins']['has']('TrackChangesPreview')&&_0x2d8668['addMany']([{'type':'separator'},{'type':'button','model':new _0x1e1468({'withText':!0x0,'label':o(_0x310dd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x581280 of _0x2d8668)if(xe(_0x581280)){const _0x3762a6=_0x33b995['commands']['get'](_0x581280['model']['commandName']);_0x581280['model']['bind']('isOn','isEnabled')['to'](_0x3762a6,'value','isEnabled');}_0x33b995['ui']['componentFactory']['add']('trackChanges',_0x207506=>this['_createToolbarButton'](_0x207506,_0x2d8668,_0x450ee9)),_0x33b995['ui']['componentFactory']['add']('menuBar:trackChanges',_0x40afaa=>this['_createMenuBarMenu'](_0x40afaa,_0x2d8668,_0x450ee9));}['_createToolbarButton'](_0x11a3e1,_0x1ccaf0,_0x2d111e){const _0x2290f2=_0x45be79(_0x11a3e1,_0x7670d3),_0x8a644a=this['editor']['commands']['get']('trackChanges');_0x2290f2['buttonView']['set']({'tooltip':_0x2d111e,'label':_0x2d111e,'icon':_0x5d5088}),_0x2290f2['buttonView']['bind']('isOn')['to'](_0x8a644a,'value'),_0x2290f2['buttonView']['on']('execute',()=>{_0x8a644a['execute'](),this['editor']['editing']['view']['focus']();}),_0x2d394f(_0x2290f2,_0x1ccaf0,{'role':'menu'});const _0x587cba=[];for(const _0x174cf0 of _0x1ccaf0)xe(_0x174cf0)&&_0x587cba['push'](this['editor']['commands']['get'](_0x174cf0['model']['commandName']));const _0x34fb7b=_0x2290f2['buttonView'];return _0x34fb7b['actionView']['unbind']('isEnabled'),_0x34fb7b['arrowView']['unbind']('isEnabled'),_0x34fb7b['actionView']['bind']('isEnabled')['to'](_0x8a644a,'isEnabled'),_0x34fb7b['arrowView']['bind']('isEnabled')['toMany'](_0x587cba,'isEnabled',(..._0x47fa3d)=>_0x47fa3d['some'](_0x463ce9=>_0x463ce9)),_0x2290f2['on']('execute',_0x29be0f=>{this['editor']['execute'](_0x29be0f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2290f2;}['_createMenuBarMenu'](_0x3b8c54,_0x44005c,_0xd670ed){const _0x1ac825=new _0x5e2c03(_0x3b8c54),_0x2d4fbc=this['editor']['commands']['get']('trackChanges');_0x1ac825['buttonView']['set']({'label':_0xd670ed,'icon':_0x5d5088});const _0x1759fd=new _0x180c07(_0x3b8c54);for(const _0xbda843 of _0x44005c){if('separator'==_0xbda843['type']){_0x1759fd['items']['add'](new _0x1f0330(_0x3b8c54));continue;}const _0x105f98=new _0x5bdd5b(_0x3b8c54,_0x1ac825),_0x1e23b2=new _0xbcb65(_0x3b8c54),_0x2331a8=_0xbda843['model'];_0x1e23b2['bind'](...Object['keys'](_0x2331a8))['to'](_0x2331a8),_0x1e23b2['delegate']('execute')['to'](_0x1ac825),_0x1e23b2['on']('execute',()=>{this['editor']['execute'](_0x2331a8['commandName']),this['editor']['editing']['view']['focus']();}),_0x105f98['children']['add'](_0x1e23b2),_0x1759fd['items']['add'](_0x105f98);}return _0x1ac825['bind']('isEnabled')['to'](_0x2d4fbc,'isEnabled'),_0x1ac825['panelView']['children']['add'](_0x1759fd),_0x1ac825;}['_initializeController'](_0x5d3c7b){const _0x3cb75d=this['editor'],_0x57a480=_0x3cb75d['config'],_0x4d75ad=_0x3cb75d['plugins']['get']('Annotations'),_0x491c4c=_0x3cb75d['plugins']['get']('CommentsRepository'),_0x5bf5b8=_0x3cb75d['plugins']['get']('EditorAnnotations'),_0x28a59a=_0x3cb75d['plugins']['get'](_0x53c5da)['me'],_0x50181c=_0x57a480['get']('trackChanges')['SuggestionThreadView'],_0x55f182=_0x57a480['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x47d9d9,CommentThreadInputView:_0xd6ea8b}=_0x3cb75d['plugins']['get']('CommentsUI');let _0x35f5aa,_0x122aa8,_0x385f27;this['_annotationViews']['has'](_0x5d3c7b['id'])?(_0x122aa8=this['_annotationViews']['get'](_0x5d3c7b['id']),_0x35f5aa=_0x122aa8['mainView']):(_0x35f5aa=new _0x50181c(_0x3cb75d['locale'],_0x5d3c7b,_0x28a59a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x57a480['get']('comments.editorConfig'),'licenseKey':_0x57a480['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x57a480['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x57a480['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x57a480['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x24eb5b(_0x57a480['get']('locale'),_0x3cb75d['locale']),'CommentView':_0x57a480['get']('comments')['CommentView'],'CommentsListView':_0x47d9d9,'CommentThreadInputView':_0xd6ea8b,'SuggestionView':_0x55f182}),_0x35f5aa['suggestionView']['acceptButton']['on']('execute',()=>{_0x3cb75d['editing']['view']['focus']();}),_0x35f5aa['suggestionView']['discardButton']['on']('execute',()=>{_0x3cb75d['editing']['view']['focus']();}),_0x122aa8=_0x4d75ad['createAnnotationView'](this['editor']['locale'],_0x35f5aa),_0x122aa8['bind']('isDirty')['to'](_0x35f5aa,'isDirty'),_0x122aa8['bind']('length')['to'](_0x35f5aa),_0x122aa8['bind']('type')['to'](_0x35f5aa,'type',_0x2dab8f=>'suggestion-'+_0x2dab8f),_0x35f5aa['on']('escape',()=>{_0x385f27['fire']('escape');}),this['_annotationViews']['set'](_0x5d3c7b['id'],_0x122aa8));const _0x32e2ab=_0x491c4c['createCommentThreadController'](_0x5d3c7b['commentThread'],_0x35f5aa),_0x168e16=new Te(_0x3cb75d,_0x5d3c7b,_0x35f5aa,_0x32e2ab),_0x26bb83=_0x5d3c7b['getAllAdjacentSuggestions']()['filter'](_0x3182d6=>_0x3182d6['isInContent']);_0x35f5aa['descriptionParts']=_0x3cb75d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x26bb83),this['_suggestionToController']['set'](_0x5d3c7b,_0x168e16),this['_viewToController']['set'](_0x35f5aa,_0x168e16);const _0x108dc6=()=>{const _0x3372f7=[],_0x256228=_0x5d3c7b['getAllAdjacentSuggestions']()['filter'](_0x4aa653=>_0x4aa653['isInContent']);for(const _0x397988 of _0x256228)_0x3372f7['push'](..._0x397988['getMarkers']());return _0x203780(_0x3cb75d['editing'],_0x3372f7);};_0x385f27=_0x4d75ad['createAnnotation']({'view':_0x122aa8,'target':_0x108dc6,'type':()=>'suggestion-'+_0x168e16['view']['type'],'isVisible':!!_0x108dc6()}),_0x491c4c['_bindAnnotationToEditors'](_0x35f5aa,_0x385f27),_0x4d75ad['add'](_0x385f27),_0x5bf5b8['registerAnnotation'](_0x385f27);}['_destroyController'](_0x1c079d){const _0x58dba2=this['editor']['plugins']['get']('CommentsRepository'),_0x368be7=this['editor']['plugins']['get']('Annotations'),_0x97cd07=this['_suggestionToController']['get'](_0x1c079d),_0xef343=_0x97cd07['view'],_0x1e2ed0=_0x368be7['getByInnerView'](_0xef343);_0x58dba2['_unbindEditors'](_0xef343),_0x1e2ed0&&_0x368be7['remove'](_0x1e2ed0),this['_suggestionToController']['delete'](_0x1c079d),this['_viewToController']['delete'](_0xef343),_0x97cd07['destroy']();}['_updateController'](_0x59230e){if(!_0x59230e['isInContent']||!this['_suggestionToController']['has'](_0x59230e))return;const _0xbb3e8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54ac45=this['_suggestionToController']['get'](_0x59230e),_0x2955c9=_0x59230e['getAllAdjacentSuggestions']();_0x54ac45['view']['descriptionParts']=_0xbb3e8c['descriptionFactory']['getDescriptions'](_0x2955c9);}['destroy'](){for(const _0x1350ae of this['_suggestionToController']['keys']())this['_destroyController'](_0x1350ae);for(const _0x510591 of this['_annotationViews']['values']())_0x510591['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function xe(_0x207154){return'model'in _0x207154;}class Ve extends _0x1ac4a7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2bce7a){this['editor']['plugins']['get'](d)['adapter']=_0x2bce7a;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2341e0){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2341e0);}['getSuggestions']({skipNotAttached:_0x582820=!0x1,toJSON:_0x2aa5a5=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x582820,'toJSON':_0x2aa5a5});}['getSuggestion'](_0x4eb25e){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4eb25e);}}const p=['Pagination'];class ce extends _0x1ac4a7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xb267be=this['editor'];if(_0xb267be['config']['define']('trackChangesData.editorCreator',_0x336e94=>{const _0x494480=_0xb267be['model']['document']['getRootNames']()['reduce']((_0x284ac5,_0x1e2a4a)=>(_0x284ac5[_0x1e2a4a]='',_0x284ac5),{});return _0xb267be['constructor']['create'](_0x494480,_0x336e94);}),'function'!=typeof _0xb267be['config']['get']('trackChangesData')['editorCreator'])throw new _0x515288('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2bd23d){return P(this['editor'],!0x0,_0x2bd23d);}['getDataWithDiscardedSuggestions'](_0x4c9cfa){return P(this['editor'],!0x1,_0x4c9cfa);}}class ze extends _0x1ac4a7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x164a53){function _0x3d85d7(_0x904a53){return _0x904a53['map'](_0x502f63=>String['fromCharCode'](_0x502f63))['join']('');}super(_0x164a53),this['result']='end',_0x164a53[_0x3d85d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d85d7([0x76,0x69,0x65,0x77])][_0x3d85d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d85d7([0x61,0x75,0x74,0x6f]),_0x164a53[_0x3d85d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d85d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d85d7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d85d7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d85d7([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ke(_0x460812){return void 0x0!==_0x460812['getRootsAttributes'];}async function P(_0x551650,_0x45dd8c,_0x123d30){const _0x4d2abd=_0x1e1567(_0x551650,p);_0x4d2abd['plugins']['push'](d,ze),_0x4d2abd['rootsAttributes']=Ke(_0x551650)?_0x551650['getRootsAttributes']():void 0x0;const _0x78b8f5=document['createDocumentFragment'](),_0x3734ad=_0x551650['config']['get']('trackChangesData')['editorCreator'],_0x24e29c=await _0x3734ad(_0x4d2abd,()=>function(_0x32ac92){const _0x374a32=document['createElement']('div');return _0x32ac92['appendChild'](_0x374a32),_0x374a32;}(_0x78b8f5));!function(_0x4b0814,_0xadeecc){const _0xf96ca6=_0x4b0814['model']['document']['getRootNames']()['reduce']((_0x97ffc6,_0x59b39d)=>(_0x97ffc6[_0x59b39d]=_0x4b0814['data']['get']({'rootName':_0x59b39d}),_0x97ffc6),{}),_0x1a0f2f=_0x4b0814['plugins']['get']('Users')['users']['map'](_0x3087f1=>({'id':_0x3087f1['id'],'name':_0x3087f1['name']})),_0x4c1f99=_0x4b0814['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ff7aa=_0x4b0814['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19345f=_0xadeecc['plugins']['get']('Users'),_0x4fe4ac=_0xadeecc['plugins']['get']('TrackChangesEditing'),_0x4a72da=_0xadeecc['plugins']['get']('CommentsRepository');for(const _0x423d60 of _0x4a72da['getCommentThreads']())_0x423d60['remove']();for(const _0x4f6b19 of _0x1a0f2f)_0x19345f['getUser'](_0x4f6b19['id'])||_0x19345f['addUser'](_0x4f6b19);_0x19345f['me']||_0x19345f['useAnonymousUser']();for(const _0xa2e487 of _0x3ff7aa)_0x4a72da['addCommentThread'](_0xa2e487);for(const _0x15bc28 of _0x4c1f99)_0x4fe4ac['addSuggestionData'](_0x15bc28);_0xadeecc['data']['set'](_0xf96ca6);}(_0x551650,_0x24e29c),_0x24e29c['execute'](_0x45dd8c?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ac07f=Ke(_0x24e29c)?_0x24e29c['getFullData'](_0x123d30):_0x24e29c['data']['get'](_0x123d30);return await _0x24e29c['destroy'](),_0x2ac07f;}class _e extends _0x1a95f3{['options'];constructor(_0x3c4b5b,_0x5a4eb6){super(_0x3c4b5b),this['options']=_0x5a4eb6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x32ca81,_0x19770a){if(!this['element'])return;const _0x3c4499=[];for(const [_0x25e824,_0x5662dc]of _0x32ca81){const _0x394820=document['createElement']('div');_0x394820['setAttribute']('data-ck-root-name',_0x25e824),_0x394820['className']=_0x5662dc['classes']+'\x20ck-track-changes-preview__root-container',_0x394820['innerHTML']=_0x5662dc['content'],_0x3c4499['push'](_0x394820);}_0x19770a(this['element'],_0x3c4499),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x294915{constructor(_0x4669ed){super(_0x4669ed),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4af4b5=this['editor'],_0x30adc6=_0x4af4b5['locale'],_0x17c556=_0x4af4b5['plugins']['get']('Dialog');let _0x36bcb5;const _0x428169=function(_0xe412fe){const _0x231b7d={};if('editables'in _0xe412fe['ui']['view']){for(const [_0x42586b,_0x59567b]of Object['entries'](_0xe412fe['ui']['view']['editables']))_0x231b7d[_0x42586b]=_0x59567b['element'];}else _0x231b7d[_0xe412fe['model']['document']['getRootNames']()[0x0]]=_0xe412fe['ui']['view']['editable']['element'];return _0x231b7d;}(_0x4af4b5),_0x440e91=function(_0x5bce13){let _0x18d180=0x0;for(const _0x5e20b8 of Object['values'](_0x5bce13))_0x18d180=Math['max'](_0x18d180,_0x5e20b8['getBoundingClientRect']()['width']);let _0x3f4416=0x0;for(const _0x2952b7 of Object['values'](_0x5bce13))_0x3f4416+=_0x2952b7['getBoundingClientRect']()['height'];const _0x218bf8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5d4881=Math['min'](_0x3f4416,_0x218bf8);return{'width':_0x18d180,'height':_0x5d4881};}(_0x428169);_0x17c556['show']({'id':'finalContentPreview','title':o(_0x30adc6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x30adc6,{'dialogRects':_0x440e91}),'onHide':()=>{_0x36bcb5['detachFromDom']();},'onShow':()=>{_0x4af4b5['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x55ba64=>{const _0x3d8fd6=this['_standarizeRootsData'](_0x55ba64,_0x4af4b5,_0x428169);_0x17c556['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3d8fd6,_0x4af4b5['config']['get']('trackChanges.preview.renderFunction'));}),_0x36bcb5=new _0x4fccb4(_0x30adc6,[_0x17c556['view']]),_0x36bcb5['attachToDom'](),_0x36bcb5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4af4b5['once']('destroy',()=>{_0x36bcb5['detachFromDom']();});const _0x289b24=_0x17c556['view']['headerView']['class'];_0x17c556['view']['headerView']['class']=_0x289b24?_0x289b24+'\x20ck-reset_all':'ck-reset_all',_0x17c556['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x17c556['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x106704=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xe0e17b=_0x106704['previewMode'],_0x5cc51b={};if('$labels'===_0xe0e17b){for(const _0x3ba686 of _0x106704['getMergeFieldsIds']())_0x5cc51b[_0x3ba686]=_0x106704['getLabel'](_0x3ba686)||_0x3ba686;}else{const _0x4edcbb='$defaultValues'===_0xe0e17b?_0x106704['getDefaultValues']():_0x106704['getDataSetValues'](_0xe0e17b,!0x0);for(const _0x524db9 of Object['entries'](_0x4edcbb)){const [_0x4b3898,_0x5a79b4]=_0x524db9;_0x5cc51b[_0x4b3898]=null!==_0x5a79b4?_0x5a79b4:_0x106704['getLabel'](_0x4b3898)||_0x4b3898;}}return{'mergeFieldsData':_0x5cc51b};}['_standarizeRootsData'](_0x16aafa,_0x53c833,_0x2ca88b){let _0x59dfe3;if('string'==typeof _0x16aafa){const _0x1c989a=_0x53c833['model']['document']['getRootNames']()[0x0];_0x59dfe3={[_0x1c989a]:_0x16aafa};}else _0x59dfe3=_0x16aafa;const _0x55ee33=this['_fixMediaEmbeds'](_0x59dfe3,_0x53c833),_0x18105c=function(_0x2271ec,_0x1a40b5){for(const [_0x18f801,_0x10787a]of _0x2271ec)_0x10787a['classes']=_0x1a40b5[_0x18f801]['classList']['value']['replace']('ck-focused','');return _0x2271ec;}(this['_sortRoots'](_0x53c833)['reduce']((_0x3fb07a,_0x3136db)=>(_0x3fb07a['push']([_0x3136db,{'content':_0x55ee33[_0x3136db],'classes':''}]),_0x3fb07a),[]),_0x2ca88b);return _0x18105c;}['_fixMediaEmbeds'](_0x3e5d15,_0x2f89f0){if(!_0x2f89f0['plugins']['has']('MediaEmbedEditing'))return _0x3e5d15;const _0x36ba0d=_0x2f89f0['plugins']['get']('MediaEmbedEditing');for(const [_0x460486,_0x209b95]of Object['entries'](_0x3e5d15)){const _0x22da46=document['createElement']('div');_0x22da46['innerHTML']=_0x209b95,(_0x22da46['querySelectorAll']('figure.media')['forEach'](_0x2bb654=>{const _0x8efd08=_0x2bb654['querySelector']('oembed');if(_0x8efd08){const _0x103431=_0x8efd08['getAttribute']('url');if(_0x103431){const _0x2fdfe2=_0x36ba0d['registry']['getMediaViewElement'](new _0x31158e(_0x2f89f0['editing']['view']['document']),_0x103431,{'elementName':'','renderForEditingView':!0x0}),_0x2b566c=document['createElement']('div');_0x2b566c['classList']['add']('ck-media__wrapper'),_0x2fdfe2['render'](_0x2b566c,_0x2f89f0['editing']['view']['domConverter']),_0x8efd08['replaceWith'](_0x2b566c);}}}),_0x3e5d15[_0x460486]=_0x22da46['innerHTML']);}return _0x3e5d15;}['_sortRoots'](_0x2856ef){if(!function(_0x485639){return void 0x0!==_0x485639['getRootsAttributes'];}(_0x2856ef))return _0x2856ef['model']['document']['getRootNames']();const _0x3b59df=[],_0x5a2fc6=new Map();for(const _0x5e198d of _0x2856ef['model']['document']['getRootNames']()){const _0x371548=_0x2856ef['editing']['view']['getDomRoot'](_0x5e198d)['getClientRects']()['item'](0x0);_0x3b59df['push'](_0x5e198d),_0x5a2fc6['set'](_0x5e198d,_0x371548);}return _0x3b59df['sort']((_0x159fd9,_0x515d4c)=>{const _0x15c6d0=_0x5a2fc6['get'](_0x159fd9),_0x5c003c=_0x5a2fc6['get'](_0x515d4c);return _0x15c6d0['y']-_0x5c003c['y']||_0x15c6d0['x']-_0x5c003c['x'];}),_0x3b59df;}}class Xe extends _0x1ac4a7{static get['requires'](){return[ce,_0x3f5aef];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21a922){super(_0x21a922),_0x21a922['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x21a922['config']['define']('trackChanges.preview.renderFunction',(_0x27759a,_0x56412e)=>{for(const _0x485d64 of _0x56412e)_0x27759a['appendChild'](_0x485d64);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Le as SuggestionThreadView,ve as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
|