@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250414.0 → 0.0.0-nightly-20250417.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/build/translations/fr.js +1 -1
- package/dist/index.js +3 -3
- 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/lang/translations/fr.po +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/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/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 +1 -1
- 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.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,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x21b4ed(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3db337,_0x942ae9){super(),this['id']=_0x942ae9['id'],this['type']=_0x942ae9['type'],this['subType']=_0x942ae9['subType']||null,this['author']=_0x942ae9['author'],this['creator']=_0x942ae9['creator']||_0x942ae9['author'],this['isExternal']=Boolean(_0x942ae9['attributes']&&_0x942ae9['attributes']['@external']),this['data']=null,this['_model']=_0x3db337,this['_onAccept']=_0x942ae9['onAccept'],this['_onDiscard']=_0x942ae9['onDiscard'],this['_onAttributesChange']=_0x942ae9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x942ae9['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 _0x35571b=this;for(;_0x35571b['previous'];)_0x35571b=_0x35571b['previous'];return _0x35571b;}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'](_0x27986a){this['_markerNames']['add'](_0x27986a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x32c1fa=>this['_model']['markers']['get'](_0x32c1fa))['filter'](_0x48d0e4=>_0x48d0e4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x503a06=>{for(const _0xa25a2d of this['getMarkers']())_0x503a06['removeMarker'](_0xa25a2d);}),this['_markerNames']['clear']();}['removeMarker'](_0x1796d9){this['_model']['change'](_0x2675ef=>{_0x2675ef['removeMarker'](_0x1796d9);}),this['_markerNames']['delete'](_0x1796d9);}['addRange'](_0x239049){const _0x2a448f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2a448f),this['_model']['change'](_0x1be722=>{_0x1be722['addMarker'](_0x2a448f,{'range':_0x239049,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xe43377){for(const _0x40ceaf of this['getRanges']())if(_0x40ceaf['isIntersecting'](_0xe43377))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1dc33d=>_0x1dc33d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x53a525,_0x352eb0)=>[..._0x53a525,..._0x352eb0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x513035=this['getRanges']();if(0x1!=_0x513035['length'])return null;const _0x5aaf1e=_0x513035[0x0],_0x360218=_0x5aaf1e['start']['nodeAfter'],_0x23d77a=_0x5aaf1e['end']['nodeBefore'];return _0x360218 instanceof _0x27160f?_0x360218!=_0x23d77a?null:_0x360218: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 _0x416f2d=[];let _0x2442a8=this['head'];for(;_0x2442a8;)_0x416f2d['push'](_0x2442a8),_0x2442a8=_0x2442a8['next'];return _0x416f2d;}['setAttribute'](_0x59127b,_0x3330c7){const _0x4bd73b=_0x56298b(this['attributes']);_0x503cf8(_0x4bd73b,_0x59127b,_0x3330c7),_0x54390e(_0x4bd73b,this['attributes'])||(this['attributes']=_0x4bd73b,this['_onAttributesChange'](_0x4bd73b));}['removeAttribute'](_0x4d45bd){const _0x422e7f=_0x56298b(this['attributes']);_0x1a60ec(_0x422e7f,_0x4d45bd),_0x54390e(_0x422e7f,this['attributes'])||(this['attributes']=_0x422e7f,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 _0x2fdf50()['substr'](0x1,0x5);}}function c(_0x9e5a6c,_0x42de73,_0xfaaa06){const _0x1ae068=_0x9e5a6c['t'],t=_0x9e5a6c['t'];switch(_0x42de73){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',_0xfaaa06);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xfaaa06);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xfaaa06);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xfaaa06);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xfaaa06);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',_0xfaaa06);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xfaaa06);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',_0xfaaa06);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xfaaa06);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xfaaa06);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xfaaa06);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xfaaa06);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xfaaa06);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xfaaa06);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xfaaa06);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xfaaa06);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xfaaa06);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xfaaa06);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xfaaa06);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xfaaa06);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xfaaa06);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xfaaa06);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xfaaa06);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xfaaa06);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xfaaa06);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'},_0xfaaa06);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xfaaa06);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xfaaa06);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xfaaa06);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xfaaa06);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xfaaa06);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xfaaa06);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xfaaa06);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'},_0xfaaa06);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xfaaa06);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xfaaa06);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xfaaa06);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xfaaa06);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'},_0xfaaa06);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xfaaa06);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'},_0xfaaa06);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'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'},_0xfaaa06);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xfaaa06);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'},_0xfaaa06);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xfaaa06);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'},_0xfaaa06);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xfaaa06);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xfaaa06);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'},_0xfaaa06);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xfaaa06);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 _0x1ae068({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xfaaa06);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1ae068({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xfaaa06);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xfaaa06);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'},_0xfaaa06);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'},_0xfaaa06);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'},_0xfaaa06);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x42de73;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5b8bf9,_0x11b95e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5b8bf9,this['_locale']=_0x11b95e;}['getDescriptions'](_0x4b9717){const _0x54726a=[],_0x36004d=new Set(),_0x2f1de2=new Set();for(let _0xfe7bad=0x0;_0xfe7bad<_0x4b9717['length'];_0xfe7bad++){const _0x4780b0=_0x4b9717[_0xfe7bad];if(!_0x4780b0['isInContent'])continue;const _0x245961=this['_handleCustomCallbackDescription'](_0x4780b0);if(_0x245961){if(null!=_0x4780b0['subType']){if(_0x36004d['has'](_0x4780b0['subType']))continue;_0x36004d['add'](_0x4780b0['subType']);}_0x54726a['push'](_0x245961);}else{if('attribute'!=_0x4780b0['type'])'insertion'!=_0x4780b0['type']&&'deletion'!=_0x4780b0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x54726a,_0x4780b0,_0x4b9717[_0xfe7bad+0x1]);else{const _0x56c6ec=_0x4780b0['data']['key'];if(_0x2f1de2['has'](_0x56c6ec))continue;_0x2f1de2['add'](_0x4780b0['data']['key']),_0x56c6ec==u?this['_handleRenameSuggestionDescription'](_0x54726a,_0x4780b0):this['_handleAttributeSuggestionDescription'](_0x54726a,_0x4780b0);}}}return this['_resolveDescriptionItems'](_0x54726a);}['registerDescriptionCallback'](_0x3a0885){this['_customCallbacks']['push'](_0x3a0885);}['registerElementLabel'](_0x108a2c,_0x68fa19,_0x3bafb2=_0x3b217d['normal']){'function'==typeof _0x108a2c?_0xf2f1d9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x108a2c,'label':_0x68fa19,'priority':_0x3bafb2}):this['_itemLabels']['set'](_0x108a2c,_0x68fa19);}['registerAttributeLabel'](_0x58efc7,_0x2e786c){this['_attributeLabels']['set'](_0x58efc7,_0x2e786c);}['getItemLabel'](_0x347e39,_0x3a640e=0x1){let _0x118aa8;for(const _0x45f173 of this['_itemLabelsCallbacks'])if(_0x45f173['matchingCallback'](_0x347e39)){_0x118aa8=_0x45f173['label'];break;}return _0x118aa8||(_0x118aa8=this['_itemLabels']['get'](_0x347e39['name'])),_0x118aa8?_0x118aa8(_0x3a640e):0x1!==_0x3a640e?_0x3a640e+'\x20'+_0x347e39['name']+'s':''+_0x347e39['name'];}['_addDescriptionItems'](_0x23e2b1,_0xcc51c0){const _0x38c514=_0xcc51c0['getFirstRange']()['getWalker'](),_0x587a56='insertion'==_0xcc51c0['type']?'add':'remove';for(const _0x14ad9f of _0x38c514){const _0x1e8e97=_0x14ad9f['item'],_0x188d9a=_0x23e2b1[_0x23e2b1['length']-0x1];if(_0x1e8e97['is']('$textProxy'))_0x188d9a&&_0x188d9a['type']['indexOf']('Container')>-0x1&&_0x23e2b1['pop'](),_0x188d9a&&'text'==_0x188d9a['type']?_0x188d9a[_0x587a56]+=_0x1e8e97['data']:_0x23e2b1['push']({'type':'text','add':'add'==_0x587a56?_0x1e8e97['data']:'','remove':'remove'==_0x587a56?_0x1e8e97['data']:''});else{if(this['_schema']['isObject'](_0x1e8e97)){const _0x4bcc17=_0x1e8e97;if(_0x188d9a&&_0x188d9a['type']['indexOf']('Container')>-0x1&&_0x23e2b1['pop'](),'elementEnd'==_0x14ad9f['type'])continue;_0x188d9a&&_0x188d9a['type']==_0x587a56+'Object'&&_0x188d9a['element']['name']==_0x4bcc17['name']?_0x188d9a['quantity']++:_0x23e2b1['push']({'type':_0x587a56+'Object','element':_0x4bcc17,'quantity':0x1}),_0x38c514['skip'](_0x1d5e9c=>!('elementEnd'==_0x1d5e9c['type']&&_0x1d5e9c['item']==_0x1e8e97));}else{if(this['_schema']['checkChild'](_0x1e8e97,'$text')||_0x1e8e97['is']('element','softBreak')){const _0x546611=_0x1e8e97;if('add'==_0x587a56&&'elementStart'==_0x14ad9f['type']||'remove'==_0x587a56&&'elementEnd'==_0x14ad9f['type'])continue;if(_0x188d9a&&-0x1==_0x188d9a['type']['indexOf']('Container')){'text'==_0x188d9a['type']&&(_0x188d9a[_0x587a56]+='\x0a');continue;}let _0x2902b9;if(_0x2902b9='add'==_0x587a56?_0x546611['nextSibling']&&!this['_schema']['isObject'](_0x546611['nextSibling'])?_0x546611['nextSibling']:null:_0x546611['previousSibling']&&!this['_schema']['isObject'](_0x546611['previousSibling'])?_0x546611['previousSibling']:null,_0x546611['isEmpty']||_0x2902b9&&_0x2902b9['isEmpty']){const _0x4f9407=_0x2902b9&&_0x2902b9['isEmpty']?_0x2902b9:_0x546611;_0x188d9a&&_0x188d9a['type']==_0x587a56+'EmptyContainer'&&_0x188d9a['element']['name']==_0x4f9407['name']?_0x188d9a['quantity']++:_0x23e2b1['push']({'type':_0x587a56+'EmptyContainer','element':_0x4f9407,'quantity':0x1});}else _0x23e2b1['push']({'type':_0x587a56+'Container','element':_0x546611});}}}}}['_resolveDescriptionItems'](_0x128f69){const _0x16fd54=this['_locale'],_0x38b7a5=[],_0x1fda7a=[],_0x40c889=[];for(const _0x83d43c of _0x128f69)switch(_0x83d43c['type']){case'text':if(_0x83d43c['add']=_0x83d43c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x83d43c['remove']=_0x83d43c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x83d43c['add']&&''!=_0x83d43c['remove']){_0x38b7a5['push']({'type':'replace','content':c(_0x16fd54,'REPLACE_TEXT',['\x22'+_0x83d43c['remove']+'\x22','\x22'+_0x83d43c['add']+'\x22'])});continue;}if(null!=_0x83d43c['add']['match'](/^ +$/)){_0x38b7a5['push']({'type':'insertion','content':c(_0x16fd54,'*Insert:*\x20%0',c(_0x16fd54,'ELEMENT_SPACE',_0x83d43c['add']['length']))});continue;}if(null!=_0x83d43c['remove']['match'](/^ +$/)){_0x38b7a5['push']({'type':'deletion','content':c(_0x16fd54,'*Remove:*\x20%0',c(_0x16fd54,'ELEMENT_SPACE',_0x83d43c['remove']['length']))});continue;}if(''!=_0x83d43c['add']){_0x38b7a5['push']({'type':'insertion','content':c(_0x16fd54,'*Insert:*\x20%0','\x22'+_0x83d43c['add']+'\x22')});continue;}_0x38b7a5['push']({'type':'deletion','content':c(_0x16fd54,'*Remove:*\x20%0','\x22'+_0x83d43c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x38b7a5['push']({'type':'insertion','content':c(_0x16fd54,'*Insert:*\x20%0',this['getItemLabel'](_0x83d43c['element'],_0x83d43c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x38b7a5['push']({'type':'deletion','content':c(_0x16fd54,'*Remove:*\x20%0',this['getItemLabel'](_0x83d43c['element'],_0x83d43c['quantity']))});continue;case'addContainer':_0x38b7a5['push']({'type':'insertion','content':c(_0x16fd54,'*Split:*\x20%0',this['getItemLabel'](_0x83d43c['element'],_0x83d43c['quantity']))});continue;case'removeContainer':_0x38b7a5['push']({'type':'deletion','content':c(_0x16fd54,'*Merge:*\x20%0',this['getItemLabel'](_0x83d43c['element'],_0x83d43c['quantity']))});continue;case'addFormat':_0x1fda7a['push'](_0x83d43c['key']);continue;case'removeFormat':_0x40c889['push'](_0x83d43c['key']);continue;default:_0x38b7a5['push'](_0x83d43c);}if(_0x1fda7a['length']){const _0x1e1fd9=_0x1fda7a['map'](_0x563cc0=>this['_attributeLabels']['has'](_0x563cc0)?this['_attributeLabels']['get'](_0x563cc0):_0x563cc0)['join'](',\x20');_0x38b7a5['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x1e1fd9)});}if(_0x40c889['length']){const _0x1307e5=_0x40c889['map'](_0x9f0a68=>this['_attributeLabels']['has'](_0x9f0a68)?this['_attributeLabels']['get'](_0x9f0a68):_0x9f0a68)['join'](',\x20');_0x38b7a5['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1307e5)});}return _0x38b7a5;}['_handleCustomCallbackDescription'](_0x857e92){for(const _0x4fffa1 of this['_customCallbacks']){const _0x31f167=_0x4fffa1(_0x857e92);if(_0x31f167&&'type'in _0x31f167)return _0x31f167;}}['_handleAttributeSuggestionDescription'](_0x4be512,_0x378880){const _0x414522=_0x378880['data'],_0x2d9f62=void 0x0===_0x414522['newValue']?'removeFormat':'addFormat';_0x4be512['push']({'type':_0x2d9f62,'key':_0x414522['key']});}['_handleRenameSuggestionDescription'](_0x5b7a13,_0xe151f4){_0x5b7a13['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xe151f4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x138eba,_0x2d6396,_0x27e466){if(this['_addDescriptionItems'](_0x138eba,_0x2d6396),_0x27e466&&_0x27e466['getFirstRange']()&&!_0x2d6396['getFirstRange']()['end']['isEqual'](_0x27e466['getFirstRange']()['start'])){const _0x24609a=_0x138eba[_0x138eba['length']-0x1],_0x20123e='insertion'==_0x2d6396['type']?'add':'remove';_0x24609a&&'text'==_0x24609a['type']&&(_0x24609a[_0x20123e]+='\x0a');}}}class U extends _0xd6413c{['afterInit'](){const _0x5ea81b=this['editor'],_0x200642=_0x5ea81b['plugins']['get']('TrackChangesEditing');_0x5ea81b['commands']['get']('showAIAssistant')&&_0x200642['enableCommand']('showAIAssistant');}}class V extends _0xd6413c{['afterInit'](){const _0x300bb5=this['editor'],_0x45e445=_0x300bb5['locale'];if(!_0x300bb5['plugins']['has']('AlignmentEditing'))return;const _0x4a0211=_0x300bb5['plugins']['get']('TrackChangesEditing');_0x4a0211['enableDefaultAttributesIntegration']('alignment'),_0x4a0211['registerBlockAttribute']('alignment'),_0x4a0211['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x45e445,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x465927=this['editor'],_0x399ce1=_0x465927['locale'];_0x465927['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xed294=>{if('formatBlock'!=_0xed294['type'])return;const {data:_0x378b5b}=_0xed294;if(_0x378b5b&&'alignment'==_0x378b5b['commandName']){const _0x3dd41b=_0x378b5b['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x399ce1,'*Format:*\x20%0',function(_0x7158d6){switch(_0x7158d6){case'left':return c(_0x399ce1,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x399ce1,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x399ce1,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x399ce1,'FORMAT_JUSTIFY_TEXT');}}(_0x3dd41b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0xd6413c{['afterInit'](){const _0x159ce1=this['editor'],_0x311046=_0x159ce1['plugins']['get']('TrackChangesEditing'),_0x163048=_0x159ce1['locale'];for(const _0x4b0e82 of Zt){if(!_0x159ce1['plugins']['has'](_0x4b0e82))continue;const _0x589dfc=_0x4b0e82['slice'](0x0,-0x7)['toLowerCase'](),_0x246de1='FORMAT_'+_0x589dfc['toUpperCase']();_0x311046['enableDefaultAttributesIntegration'](_0x589dfc),_0x311046['registerInlineAttribute'](_0x589dfc),_0x311046['descriptionFactory']['registerAttributeLabel'](_0x589dfc,c(_0x163048,_0x246de1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x431ec1=this['editor'],_0xab9c58=_0x431ec1['locale'],_0x1230f=_0x431ec1['plugins']['get']('TrackChangesEditing');function _0x3caa7f(_0x35c31b,_0x5b26d4){_0x1230f['descriptionFactory']['registerDescriptionCallback'](_0x51a13f=>{if('formatInline'!=_0x51a13f['type'])return;const {data:_0x2d55f0}=_0x51a13f;return _0x2d55f0&&_0x2d55f0['commandName']===_0x35c31b?_0x2d55f0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xab9c58,'*Format:*\x20%0',_0x5b26d4)}:{'type':'format','content':c(_0xab9c58,'*Remove\x20format:*\x20%0',_0x5b26d4)}:void 0x0;});}_0x3caa7f('bold',c(_0xab9c58,'FORMAT_BOLD')),_0x3caa7f('italic',c(_0xab9c58,'FORMAT_ITALIC')),_0x3caa7f('underline',c(_0xab9c58,'FORMAT_UNDERLINE')),_0x3caa7f('code',c(_0xab9c58,'FORMAT_CODE')),_0x3caa7f('strikethrough',c(_0xab9c58,'FORMAT_STRIKETHROUGH')),_0x3caa7f('subscript',c(_0xab9c58,'FORMAT_SUBSCRIPT')),_0x3caa7f('superscript',c(_0xab9c58,'FORMAT_SUPERSCRIPT'));}}class G extends _0xd6413c{['afterInit'](){const _0x3ac255=this['editor'],_0x32af7d=_0x3ac255['locale'];if(!_0x3ac255['plugins']['has']('BlockQuoteEditing'))return;const _0x4031e6=_0x3ac255['plugins']['get']('TrackChangesEditing'),_0x2d60a5=this['editor']['commands']['get']('blockQuote');_0x4031e6['enableCommand']('blockQuote',(_0x176b0a,_0x28efde={})=>{const _0x1584b4=this['editor']['model']['document']['selection'],_0x434360=_0x28efde&&void 0x0!==_0x28efde['forceValue']?_0x28efde['forceValue']:!_0x2d60a5['value'];let _0x1daa26=[];if(_0x434360){const _0x2542bf=Array['from'](_0x1584b4['getSelectedBlocks']())['filter'](_0x829902=>oo(_0x829902)||function(_0x2a63b3,_0x1bd149){const _0x2f3d9f=_0x1bd149['checkChild'](_0x2a63b3['parent'],'blockQuote'),_0x3dd9be=_0x1bd149['checkChild'](['$root','blockQuote'],_0x2a63b3);return _0x2f3d9f&&_0x3dd9be;}(_0x829902,this['editor']['model']['schema']));_0x1daa26=to(_0x2542bf,_0x3ac255['model']);}else{const _0x4393bd=Array['from'](_0x1584b4['getSelectedBlocks']())['filter'](_0xa29835=>oo(_0xa29835));_0x1daa26=to(_0x4393bd,_0x3ac255['model']);}_0x3ac255['model']['change'](()=>{for(const _0x1e7b4f of _0x1daa26)_0x4031e6['markBlockFormat'](_0x1e7b4f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x434360}]});});}),_0x4031e6['descriptionFactory']['registerDescriptionCallback'](_0x4b0665=>{const {data:_0x23dc60}=_0x4b0665;if(_0x23dc60&&'blockQuote'==_0x23dc60['commandName']){const _0x1153cf=c(_0x32af7d,'ELEMENT_BLOCK_QUOTE');return _0x23dc60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x32af7d,'*Set\x20format:*\x20%0',_0x1153cf)}:{'type':'format','content':c(_0x32af7d,'*Remove\x20format:*\x20%0',_0x1153cf)};}});}}function oo(_0x2e6794){return'blockQuote'==_0x2e6794['parent']['name'];}class L extends _0xd6413c{['afterInit'](){const _0x3c7989=this['editor'],_0x526660=_0x3c7989['locale'],_0x1111d4=_0x3c7989['plugins']['get']('TrackChangesEditing');_0x3c7989['plugins']['has']('BookmarkEditing')&&(_0x1111d4['enableCommand']('insertBookmark'),_0x1111d4['enableDefaultAttributesIntegration']('updateBookmark'),_0x1111d4['registerBlockAttribute']('bookmarkId'),_0x1111d4['descriptionFactory']['registerDescriptionCallback'](_0x4221cd=>{if('insertion'!=_0x4221cd['type']&&'deletion'!=_0x4221cd['type']&&'attribute'!=_0x4221cd['type'])return;const _0x37b866=_0x4221cd['getContainedElement']();if(null==_0x37b866)return;if(!_0x37b866['is']('element','bookmark'))return;const _0x11970a=_0x37b866['getAttribute']('bookmarkId');if('insertion'==_0x4221cd['type'])return{'type':'insertion','content':c(_0x526660,'*Insert:*\x20%0','\x22'+_0x11970a+'\x22\x20'+c(_0x526660,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4221cd['type'])return{'type':'deletion','content':c(_0x526660,'*Remove:*\x20%0','\x22'+_0x11970a+'\x22\x20'+c(_0x526660,'ELEMENT_BOOKMARK'))};const {data:_0x19c7ba}=_0x4221cd;if(!_0x19c7ba||'bookmarkId'!=_0x19c7ba['key'])return;return{'type':'format','content':c(_0x526660,'*Set\x20bookmark:*\x20%0','\x22'+_0x19c7ba['newValue']+'\x22')};}));}}class J extends _0xd6413c{['afterInit'](){const _0x7e83d=this['editor'];_0x7e83d['plugins']['has']('CaseChange')&&(_0x7e83d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x7e83d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x7e83d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xd6413c{['afterInit'](){const _0x54f056=this['editor'];_0x54f056['commands']['get']('ckbox')&&_0x54f056['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0xd6413c{['afterInit'](){const _0x353125=this['editor'];if(!_0x353125['plugins']['has']('CodeBlock'))return;const _0x2c0f47=_0x353125['plugins']['get']('TrackChangesEditing'),_0x23bc4a=_0x353125['locale'],_0x450639=_0x353125['config']['get']('codeBlock')['languages'],_0x39aac8=_0x353125['commands']['get']('codeBlock');_0x2c0f47['enableCommand']('indentCodeBlock'),_0x2c0f47['enableCommand']('outdentCodeBlock'),_0x2c0f47['enableCommand']('codeBlock',(_0x300961,_0x238dae={})=>{const _0x38d5e4=_0x353125['model'],_0x2dab91=_0x353125['model']['document']['selection'],_0xb7a44a=_0x238dae&&void 0x0!==_0x238dae['forceValue']?_0x238dae['forceValue']:!_0x39aac8['value'];let _0x4eb6cb;_0x238dae['language']||(_0x238dae['language']=_0x450639[0x0]['language']),_0x4eb6cb=_0xb7a44a?Array['from'](_0x2dab91['getSelectedBlocks']())['filter'](_0x4c33fd=>eo(_0x4c33fd)||function(_0x2d9851,_0x4e08ce){if(_0x2d9851['is']('rootElement')||_0x4e08ce['isLimit'](_0x2d9851))return!0x1;return _0x4e08ce['checkChild'](_0x2d9851['parent'],'codeBlock');}(_0x4c33fd,_0x38d5e4['schema'])):Array['from'](_0x2dab91['getSelectedBlocks']())['filter'](_0x1e3b00=>eo(_0x1e3b00));const _0x3a3986=to(_0x4eb6cb,_0x38d5e4);_0x38d5e4['change'](()=>{for(const _0x2dd802 of _0x3a3986)_0x2c0f47['markBlockFormat'](_0x2dd802,{'commandName':'codeBlock','commandParams':[{..._0x238dae,'forceValue':_0xb7a44a}],'formatGroupId':'blockName'});});}),(_0x2c0f47['descriptionFactory']['registerElementLabel']('codeBlock',_0x45bedf=>c(_0x23bc4a,'ELEMENT_CODE_BLOCK',_0x45bedf)),_0x2c0f47['descriptionFactory']['registerDescriptionCallback'](_0x35c372=>{if('formatBlock'!=_0x35c372['type'])return;const _0x437c82=_0x23bc4a['t'],{data:_0x224b1f}=_0x35c372;if(!_0x224b1f||'codeBlock'!=_0x224b1f['commandName'])return;const _0x4e2010=_0x224b1f['commandParams'][0x0]['language'],_0x51db86=_0x437c82(_0x450639['find'](_0x4e065b=>_0x4e065b['language']===_0x4e2010)['label'])['toLowerCase']();return _0x224b1f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x23bc4a,'*Set\x20format:*\x20%0',c(_0x23bc4a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x51db86+')')}:{'type':'format','content':c(_0x23bc4a,'*Remove\x20format:*\x20%0',c(_0x23bc4a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x34d5ef){return'codeBlock'==_0x34d5ef['name'];}class q extends _0xd6413c{['afterInit'](){const _0x117d77=this['editor'];if(!_0x117d77['plugins']['has']('CommentsEditing'))return;_0x117d77['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x307b34,_0x216ec9,_0xde9bed){const _0x29c2c0=[];for(const _0x173922 of _0x216ec9['getItems']())_0x173922['hasAttribute'](_0x307b34)&&_0x29c2c0['push'](_0xde9bed['createRangeOn'](_0x173922));return _0x29c2c0;}function Fe(_0x24d2cd,_0x28a429,{showActiveMarker:_0x807fd1=!0x0}={}){const _0x32f110=_0x24d2cd['plugins']['get']('TrackChangesEditing');return(_0x4d01ab,_0x491dcd,_0x36e2e0)=>{if(!_0x36e2e0['consumable']['test'](_0x491dcd['markerRange'],_0x4d01ab['name']))return;const _0x156f6a=_0x491dcd['markerRange']['getWalker'](),_0x1b12a0=_0x491dcd['markerRange']['start'],_0x186c1b=_0x24d2cd['model']['schema'];let _0x235532=null,_0x12364=null,_0x5aed36=!0x1,_0x5f29ee=!0x1;for(const _0x267cce of _0x156f6a){const _0x52b90d=_0x267cce['item'];_0x5aed36=_0x5aed36||_0x186c1b['isContent'](_0x52b90d);const _0x2ca3cf=_0x36e2e0['mapper']['toViewElement'](_0x52b90d);if(_0x2ca3cf&&_0x2ca3cf['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x267cce['type']&&(_0x186c1b['isBlock'](_0x52b90d)&&!_0x186c1b['isLimit'](_0x52b90d)&&(_0x52b90d['nextSibling']||_0x1b12a0['isAtEnd']?_0x235532&&_0x235532['parent']==_0x52b90d||(_0x235532=_0x52b90d,_0x5dd427(_0x267cce['previousPosition']),_0x5f29ee=!0x0):_0x12364=_0x12364||_0x267cce['previousPosition']));}function _0x5dd427(_0x42415b){const {authorId:_0x3c2ec4}=_0x32f110['_splitMarkerName'](_0x491dcd['markerName']),_0x51eaf1=_0x36e2e0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x28a429,'data-author-id':_0x3c2ec4}),_0x3f92e8=_0x36e2e0['mapper']['toViewPosition'](_0x42415b);_0x807fd1&&_0x32f110['activeMarkers']['includes'](_0x491dcd['markerName'])&&_0x36e2e0['writer']['addClass']('ck-suggestion-marker--active',_0x51eaf1),_0x36e2e0['writer']['insert'](_0x3f92e8,_0x51eaf1),_0x36e2e0['mapper']['bindElementToMarker'](_0x51eaf1,_0x491dcd['markerName']);}_0x5aed36||_0x5f29ee||!_0x12364||_0x5dd427(_0x12364);};}class z extends _0xd6413c{static get['requires'](){return[_0x5f2d55];}['init'](){const _0x10ae45=this['editor'],_0x2dc709=_0x10ae45['plugins']['get']('TrackChangesEditing');_0x2dc709['enableCommand']('delete');const _0x412cea=_0x10ae45['commands']['get']('deleteForward');_0x2dc709['enableCommand']('deleteForward',(_0x5d166a,_0x3ae829={})=>{const _0x3ef3e1=_0x10ae45['model']['createSelection'](_0x10ae45['model']['document']['selection']);_0x3ef3e1['isCollapsed']&&_0x10ae45['model']['modifySelection'](_0x3ef3e1,{'direction':'forward','unit':_0x3ae829['unit']});const _0x4f59df=_0x3ef3e1['getFirstRange'](),_0x1d6c39=_0x25f92b['fromRange'](_0x4f59df);let _0x1cd4c4;_0x5d166a(_0x3ae829),_0x1cd4c4='$graveyard'==_0x1d6c39['root']['rootName']?_0x10ae45['model']['createRange'](_0x4f59df['start']):_0x10ae45['model']['createRange'](_0x1d6c39['start'],_0x1d6c39['end']),_0x1d6c39['detach'](),_0x10ae45['model']['enqueueChange'](_0x412cea['buffer']['batch'],_0x42c85b=>{_0x412cea['buffer']['lock'](),_0x42c85b['setSelection'](_0x42c85b['createRange'](_0x1cd4c4['end'])),_0x412cea['buffer']['unlock']();});}),_0x10ae45['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x10ae45,'merge'),{'priority':'high'}),_0x10ae45['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x40a465,_0x2ea92d,_0x13007d)=>{_0x13007d['options']['showSuggestionHighlights']&&Fe(_0x10ae45,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x40a465,_0x2ea92d,_0x13007d);},{'priority':'high'}),_0x10ae45['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4a8092,_0x94824f,_0x1f6dec)=>{const _0x57c8d3=_0x1f6dec['mapper']['markerNameToElements'](_0x94824f['markerName']);if(_0x57c8d3){for(const _0x59f28d of _0x57c8d3)_0x59f28d['is']('uiElement')&&(_0x1f6dec['mapper']['unbindElementFromMarkerName'](_0x59f28d,_0x94824f['markerName']),_0x1f6dec['writer']['remove'](_0x59f28d));}},{'priority':'high'});}}class W extends _0xd6413c{['afterInit'](){const _0x16137f=this['editor'];if(!_0x16137f['plugins']['has']('ListEditing'))return;const _0x4f6fdb=_0x16137f['locale'],_0x53a60=_0x16137f['plugins']['get']('TrackChangesEditing'),_0x3873b3=_0x16137f['plugins']['has']('TodoListEditing'),_0x50dde9=!!_0x16137f['config']['get']('list.multiBlock');function _0x34d3e8(_0x1a3211){return{'type':'format','content':''+c(_0x4f6fdb,'*Set\x20format:*\x20%0',_0x1a3211)};}function _0x5d5a0a(_0x170760){return{'type':'format','content':''+c(_0x4f6fdb,'*Remove\x20format:*\x20%0',_0x170760)};}_0x53a60['enableDefaultAttributesIntegration']('numberedList'),_0x53a60['enableDefaultAttributesIntegration']('bulletedList'),_0x53a60['enableDefaultAttributesIntegration']('customNumberedList'),_0x53a60['enableDefaultAttributesIntegration']('customBulletedList'),_0x53a60['enableDefaultAttributesIntegration']('indentList'),_0x53a60['enableDefaultAttributesIntegration']('outdentList'),_0x53a60['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x53a60['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x53a60['registerBlockAttribute']('listItemId'),_0x53a60['registerBlockAttribute']('listType'),_0x53a60['registerBlockAttribute']('listIndent'),_0x50dde9&&(_0x53a60['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x53a60['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3873b3&&(_0x53a60['enableDefaultAttributesIntegration']('todoList'),_0x53a60['enableDefaultAttributesIntegration']('checkTodoList'),_0x53a60['registerBlockAttribute']('todoListChecked'),_0x53a60['descriptionFactory']['registerDescriptionCallback'](_0x47e907=>{const {data:_0x529f66}=_0x47e907;if(_0x529f66&&'todoListChecked'==_0x529f66['key'])return{'type':'format','content':_0x529f66['newValue']?c(_0x4f6fdb,'*Check\x20item*'):c(_0x4f6fdb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x42d6b6=>{if(_0x42d6b6['batch']['isUndo'])return!0x1;let _0x13a37b=!0x1;const _0xc8e65e=_0x53a60['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c9c77=>'todoListChecked'===_0x53a60['_getAttributeKey'](_0x2c9c77));for(const _0x21effc of _0xc8e65e){'todo'!=_0x21effc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x53a60['_findSuggestions'](_0x21effc['getFirstRange'](),'attribute')['find'](_0x4ee98b=>'listType'===_0x53a60['_getAttributeKey'](_0x4ee98b['suggestion']))||(_0x42d6b6['removeMarker'](_0x21effc['getFirstMarker']()),_0x13a37b=!0x0));}return _0x13a37b;})),_0x53a60['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4f6fdb,'FORMAT_INDENT'));const _0x25595b={'type':'format','content':''};_0x53a60['descriptionFactory']['registerDescriptionCallback'](_0x2322af=>{const {data:_0x424ffe}=_0x2322af;if(!_0x424ffe||'listType'!=_0x424ffe['key'])return;let _0x19f000=_0x2322af['head'];for(;_0x19f000;){if(_0x19f000['data']&&(('listStyle'==_0x19f000['data']['key']||'listMarkerStyle'==_0x19f000['data']['key'])&&(_0x19f000['data']['newValue']&&'default'!=_0x19f000['data']['newValue']||'default'!=_0x19f000['data']['oldValue']&&!_0x424ffe['newValue'])||!_0x50dde9&&_0x19f000['data']['key']==u))return _0x25595b;_0x19f000=_0x19f000['next'];}if(null==_0x424ffe['newValue'])switch(_0x424ffe['oldValue']){case'bulleted':return _0x5d5a0a(c(_0x4f6fdb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d5a0a(c(_0x4f6fdb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d5a0a(c(_0x4f6fdb,'ELEMENT_TODO_LIST'));}switch(_0x424ffe['newValue']){case'bulleted':return _0x34d3e8(c(_0x4f6fdb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34d3e8(c(_0x4f6fdb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34d3e8(c(_0x4f6fdb,'ELEMENT_TODO_LIST'));}}),_0x53a60['descriptionFactory']['registerDescriptionCallback'](_0x2fe902=>{const {data:_0x32ccc1}=_0x2fe902;if(_0x32ccc1&&'listIndent'==_0x32ccc1['key'])return null==_0x32ccc1['newValue']||null==_0x32ccc1['oldValue']&&0x0==_0x32ccc1['newValue']?_0x25595b:void 0x0;}),_0x53a60['descriptionFactory']['registerDescriptionCallback'](_0x52453e=>{if('attribute'!=_0x52453e['type'])return;const {data:_0xe0465d}=_0x52453e;if(!_0xe0465d||'listItemId'!=_0xe0465d['key'])return;const _0x116755=Te(_0x52453e);return'newValue'==_0x116755?{'type':'format','content':c(_0x4f6fdb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x116755?{'type':'format','content':c(_0x4f6fdb,'*Split:*\x20list\x20item')}:_0x25595b;}),_0x16137f['model']['document']['registerPostFixer'](_0x4ee705=>this['listItemIdFixer'](_0x4ee705)),_0x16137f['model']['document']['registerPostFixer'](_0x423a25=>this['noTrackChangesFixer'](_0x423a25)),_0x16137f['model']['document']['on']('change:data',(_0x2c7151,_0x38553e)=>{if(_0x38553e['isUndo']||!_0x38553e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x569169){if(_0x569169['batch']['isUndo']||!_0x569169['batch']['isLocal'])return!0x1;let _0x4ca4df=!0x1;const _0x3ea883=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22e92f=>_0x22e92f['data']&&'listItemId'==_0x22e92f['data']['key'])['filter'](_0x212482=>_0x212482['data']['newValue']&&_0x212482['data']['oldValue']);for(const _0x586e7b of _0x3ea883)Te(_0x586e7b)||(_0x569169['removeMarker'](_0x586e7b['getFirstMarker']()),_0x4ca4df=!0x0);return _0x4ca4df;}['noTrackChangesFixer'](_0x45d158){if(_0x45d158['batch']['isUndo']||!_0x45d158['batch']['isLocal'])return!0x1;const _0x107541=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x107541['trackChangesCommand']['value'])return!0x1;let _0x1e14d3=!0x1;const _0x52b591=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4d7ae1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x432844=>'attribute'==_0x432844['type'])['filter'](_0x58dbe1=>_0x52b591['includes'](_0x58dbe1['attributeKey']));if(0x0==_0x4d7ae1['length'])return _0x1e14d3;for(const _0x48e803 of _0x4d7ae1){const _0x2d6acc=_0x107541['_findSuggestions'](_0x48e803['range'],'attribute')['filter'](_0x475861=>!_0x475861['meta']['isNextTo'])['map'](_0x2767f6=>_0x2767f6['suggestion'])['filter'](_0xa2405e=>{const _0x336b33=_0x107541['_getAttributeKey'](_0xa2405e);return _0x52b591['includes'](_0x336b33);});if(_0x2d6acc['length']){for(const _0x33c0aa of _0x2d6acc)_0x45d158['removeMarker'](_0x33c0aa['getFirstMarker']());_0x1e14d3=!0x0;}}return _0x1e14d3;}['assureChains'](){const _0x5e575a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1536fb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3841dc;const _0x43f7a4=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b5c51=>{if(_0x4b5c51['data']['oldRange']||!_0x4b5c51['data']['newRange'])return null;if(!_0x4b5c51['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xd89618}=_0x5e575a['_splitMarkerName'](_0x4b5c51['name']);if(!_0x5e575a['hasSuggestion'](_0xd89618))return null;const _0x4882f7=_0x5e575a['getSuggestion'](_0xd89618);return _0x1536fb['includes'](_0x4882f7['data']['key']);})['map'](_0x563d73=>{const {id:_0x5c28cd}=_0x5e575a['_splitMarkerName'](_0x563d73['name']),_0x4e0716=_0x5e575a['getSuggestion'](_0x5c28cd);return _0x3841dc=_0x4e0716['attributes']['groupId'],_0x4e0716['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x43f7a4['size'])return;const _0x5d6899=_0x5e575a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x199e1b=>'attribute'==_0x199e1b['type']&&_0x199e1b['data']&&_0x1536fb['includes'](_0x199e1b['data']['key'])&&_0x199e1b['attributes']['groupId']!=_0x3841dc)['map'](_0x3b67da=>({'listItem':_0x3b67da['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3b67da['attributes']['groupId']})),_0x9e8009=new Set();for(const {groupId:_0x205439,listItem:_0x2ff5ea}of _0x5d6899)_0x43f7a4['has'](_0x2ff5ea)&&_0x9e8009['add'](_0x205439);for(const _0x29430d of _0x5e575a['getSuggestions']())_0x9e8009['has'](_0x29430d['attributes']['groupId'])&&_0x29430d['setAttribute']('groupId',_0x3841dc);}['_supportLegacySuggestions'](){const _0x4eacba=this['editor'],_0x4e63a7=_0x4eacba['locale'],_0xfec126=_0x4eacba['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xfec126['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x12c9b4,_0x2b71a1){const _0x5b915b=[];for(let _0x198585 of _0x12c9b4)_0x198585['start']['nodeAfter']===_0x198585['end']['parent']&&(_0x198585=_0x4eacba['model']['createRange'](_0x4eacba['model']['createPositionAt'](_0x198585['start']['nodeAfter'],0x0))),_0x5b915b['push'](_0x198585);_0x4eacba['model']['change'](_0x516890=>{const _0x400d12=_0x4eacba['model']['document']['selection'],_0x55cf28=Array['from'](_0x400d12['getRanges']())['map'](_0x133f9d=>_0x25f92b['fromRange'](_0x133f9d));_0x516890['setSelection'](_0x5b915b),_0x4eacba['commands']['get'](_0x2b71a1['commandName'])['refresh'](),_0x2b71a1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4eacba['execute'](_0x2b71a1['commandName'],..._0x2b71a1['commandParams']),_0x516890['setSelection'](_0x55cf28);for(const _0x2900f6 of _0x55cf28)_0x2900f6['detach']();});}),_0xfec126['descriptionFactory']['registerElementLabel'](function(_0x5a3735){const _0x51e261=!_0x4eacba['model']['schema']['isObject'](_0x5a3735),_0x69350=_0x5a3735['previousSibling'],_0x521ee2=_0x5a3735['nextSibling'],_0x15cecb=_0x5a3735['getAttribute']('listItemId'),_0x82637e=!_0x69350||_0x69350['getAttribute']('listItemId')!==_0x15cecb,_0x3011b3=!_0x521ee2||_0x521ee2['getAttribute']('listItemId')!==_0x15cecb;return _0x51e261&&Boolean(_0x15cecb)&&_0x82637e&&_0x3011b3;},_0x25802b=>c(_0x4e63a7,'ELEMENT_LIST_ITEM',_0x25802b));}['_registerLegacyDescription'](){const _0x17c772=this['editor'],_0x274be7=_0x17c772['locale'];function _0x507b68(_0x3a5808){const _0x6887fc=_0x17c772['commands']['get']('bulletedList')['value'],_0x56bcba=_0x17c772['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a5808?_0x6887fc:_0x56bcba;}_0x17c772['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x302e05){if('formatBlock'!=_0x302e05['type'])return;const {data:_0x252353}=_0x302e05;if(!_0x252353)return;let _0xee4eba,_0x46e896,_0x136093,_0x3cdbfc;switch(_0x252353['commandName']){case'bulletedList':_0x136093=_0x252353['commandParams'][0x0]['forceValue'],_0x3cdbfc=_0x507b68(_0x252353['commandName']),_0xee4eba=_0x136093?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3cdbfc&&_0x17c772['config']['get']('list.multiBlock')||(_0xee4eba='*Change\x20to:*\x20%0'),_0x46e896={'type':'format','content':c(_0x274be7,_0xee4eba,c(_0x274be7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x136093=_0x252353['commandParams'][0x0]['forceValue'],_0x3cdbfc=_0x507b68(_0x252353['commandName']),_0xee4eba=_0x136093?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3cdbfc&&_0x17c772['config']['get']('list.multiBlock')||(_0xee4eba='*Change\x20to:*\x20%0'),_0x46e896={'type':'format','content':c(_0x274be7,_0xee4eba,c(_0x274be7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xee4eba='*Indent:*\x20%0',_0x46e896={'type':'format','content':c(_0x274be7,_0xee4eba,c(_0x274be7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xee4eba=function(_0x3fc8ab){const _0x1794e9=_0x3fc8ab['getFirstRange']();let _0x46d0c0=_0x1794e9['start']['nodeAfter'];for(;_0x46d0c0&&_0x1794e9['containsItem'](_0x46d0c0);){if(_0x46d0c0['getAttribute']('listIndent')>0x0)return!0x1;_0x46d0c0=_0x46d0c0['nextSibling'];}return!0x0;}(_0x302e05)?c(_0x274be7,'*Format:*\x20remove\x20from\x20%0',c(_0x274be7,function(_0x202ef5){return'ELEMENT_'+_0x202ef5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x302e05))):c(_0x274be7,'*Outdent:*\x20%0',c(_0x274be7,'ELEMENT_LIST_ITEM')),_0x46e896={'type':'format','content':_0xee4eba};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x252353['multipleBlocks']&&(_0xee4eba='*Merge:*\x20%0',_0x46e896={'type':'deletion','content':c(_0x274be7,_0xee4eba,c(_0x274be7,'ELEMENT_LIST_ITEM'))});}return _0x46e896;});}}function Te(_0x3dc6c5){let _0x3e4b75=_0x3dc6c5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3e4b75;){const _0x278bf0=_0x3e4b75['getAttribute']('listItemId');if(!_0x278bf0)return!0x1;if(_0x278bf0==_0x3dc6c5['data']['newValue'])return'newValue';if(_0x278bf0==_0x3dc6c5['data']['oldValue'])return'oldValue';_0x3e4b75=_0x3e4b75['previousSibling'];}return!0x1;}class Se extends _0xd6413c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x21be0a=this['editor']['config']['get']('list.properties'),_0x30276a=this['editor']['plugins']['get']('TrackChangesEditing');_0x21be0a['styles']&&(_0x30276a['enableDefaultAttributesIntegration']('listStyle'),_0x30276a['registerBlockAttribute']('listStyle')),_0x21be0a['reversed']&&(_0x30276a['enableDefaultAttributesIntegration']('listReversed'),_0x30276a['registerBlockAttribute']('listReversed')),_0x21be0a['startIndex']&&(_0x30276a['enableDefaultAttributesIntegration']('listStart'),_0x30276a['registerBlockAttribute']('listStart'));const _0xc43459={'type':'format','content':''};_0x30276a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x271e1f=this['editor']['locale'];_0x30276a['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x271e1f,'FORMAT_LIST_REVERSED')),_0x30276a['descriptionFactory']['registerDescriptionCallback'](_0x12f749=>{const {data:_0x158c6b}=_0x12f749;if(_0x158c6b&&'listReversed'==_0x158c6b['key'])return null==_0x158c6b['newValue']||0x0==_0x158c6b['newValue']&&null==_0x158c6b['oldValue']?_0xc43459:void 0x0;}),_0x30276a['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x271e1f,'FORMAT_LIST_START')),_0x30276a['descriptionFactory']['registerDescriptionCallback'](_0xf14aa7=>{const {data:_0x331515}=_0xf14aa7;if(_0x331515&&'listStart'==_0x331515['key'])return null==_0x331515['newValue']||0x1==_0x331515['newValue']&&null==_0x331515['oldValue']?_0xc43459:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b9b45=>{if(_0x1b9b45['batch']['isUndo'])return!0x1;let _0x557ff8=!0x1;const _0x45db24=_0x30276a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x284510=>{const _0x2ff3f8=_0x30276a['_getAttributeKey'](_0x284510);return'listStart'==_0x2ff3f8||'listReversed'==_0x2ff3f8;});for(const _0x22235d of _0x45db24){const _0x359876=_0x22235d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x359876||'customNumbered'==_0x359876)continue;_0x30276a['_findSuggestions'](_0x22235d['getFirstRange'](),'attribute')['find'](_0x514b68=>'listType'==_0x30276a['_getAttributeKey'](_0x514b68['suggestion']))||(_0x1b9b45['removeMarker'](_0x22235d['getFirstMarker']()),_0x557ff8=!0x0);}return _0x557ff8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2d2a26){const _0x56d285=this['editor']['locale'],{data:_0x140b60}=_0x2d2a26,_0xb8a55b={'type':'format','content':''};if(!_0x140b60||'listStyle'!=_0x140b60['key'])return;if(!_0x140b60['oldValue'])return'default'==_0x140b60['newValue']?_0xb8a55b:{'type':'format','content':''+c(_0x56d285,'*Set\x20format:*\x20%0',c(_0x56d285,this['_getTranslationKeyForListStyle'](_0x140b60['newValue'])))};if(!_0x140b60['newValue']){if('default'==_0x140b60['oldValue'])return _0xb8a55b;let _0x27a893=_0x2d2a26['head'];for(;_0x27a893;){if(_0x27a893['data']&&'listType'==_0x27a893['data']['key']&&_0x27a893['data']['newValue'])return _0xb8a55b;_0x27a893=_0x27a893['next'];}return{'type':'format','content':''+c(_0x56d285,'*Remove\x20format:*\x20%0',c(_0x56d285,this['_getTranslationKeyForListStyle'](_0x140b60['oldValue'])))};}if('default'!=_0x140b60['newValue'])return{'type':'format','content':''+c(_0x56d285,'*Set\x20format:*\x20%0',c(_0x56d285,this['_getTranslationKeyForListStyle'](_0x140b60['newValue'])))};let _0x3a1d48=_0x2d2a26['head'];for(;_0x3a1d48;){if(_0x3a1d48['data']&&'listType'==_0x3a1d48['data']['key']&&_0x3a1d48['data']['newValue']&&_0x3a1d48['data']['oldValue'])return _0xb8a55b;_0x3a1d48=_0x3a1d48['next'];}return{'type':'format','content':c(_0x56d285,'*Set\x20format:*\x20%0',c(_0x56d285,'ELEMENT_'+_0x2d2a26['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ca0a6=this['editor'],_0x3f4fe7=_0x2ca0a6['locale'];_0x2ca0a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fd878=>{if('formatBlock'!=_0x1fd878['type'])return;const {data:_0x244695}=_0x1fd878;if(!_0x244695)return;let _0x34b39c,_0x27566c;switch(_0x244695['commandName']){case'listStyle':_0x34b39c='*Change\x20to:*\x20%0',_0x27566c={'type':'format','content':c(_0x3f4fe7,_0x34b39c,c(_0x3f4fe7,this['_getTranslationKeyForListStyle'](_0x244695['commandParams'][0x0]['type'])))};break;case'listReversed':_0x34b39c=_0x244695['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27566c={'type':'format','content':c(_0x3f4fe7,_0x34b39c)};break;case'listStart':_0x34b39c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27566c={'type':'format','content':c(_0x3f4fe7,_0x34b39c,_0x244695['commandParams'][0x0]['startIndex'])};}return _0x27566c;});}['_getTranslationKeyForListStyle'](_0x599450){return'ELEMENT_'+function(_0x35d3d8){if(_e['includes'](_0x35d3d8))return'bulleted';if(Re['includes'](_0x35d3d8))return'numbered';return null;}(_0x599450)['toUpperCase']()+'_LIST_'+_0x599450['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xd6413c{['afterInit'](){const _0x788906=this['editor'];_0x788906['commands']['get']('emoji')&&_0x788906['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xd6413c{static get['requires'](){return[_0x3b4f24];}['init'](){const _0x39aec4=this['editor'],_0x43ba39=_0x39aec4['plugins']['get']('TrackChangesEditing'),_0x4e55e7=_0x39aec4['commands']['get']('enter');_0x43ba39['enableCommand']('enter',()=>{_0x39aec4['model']['change'](_0x4f609f=>{const _0x1681b6=_0x39aec4['model']['document']['selection'],_0x18cadd=_0x1681b6['getFirstPosition'](),_0x4bf34b=_0x25f92b['fromRange'](_0x1681b6['getFirstRange']());if(_0x4e55e7['enterBlock'](_0x4f609f)){const _0x3be256=_0x39aec4['model']['createPositionAt'](_0x18cadd['parent']['nextSibling'],0x0),_0x13f896=_0x4f609f['createRange'](_0x18cadd,_0x3be256);_0x43ba39['markInsertion'](_0x13f896);}else _0x4f609f['setSelection'](_0x4f609f['createRange'](_0x4bf34b['end']));_0x4bf34b['detach'](),_0x4e55e7['fire']('afterExecute',{'writer':_0x4f609f});});}),_0x39aec4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x39aec4,'split'),{'priority':'high'}),_0x39aec4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1e20c4,_0x26e96b,_0x81d435)=>{const _0x2305f4=_0x81d435['mapper']['markerNameToElements'](_0x26e96b['markerName']);if(_0x2305f4){for(const _0x169cd7 of _0x2305f4)_0x169cd7['hasClass']('ck-suggestion-marker-split')&&(_0x81d435['mapper']['unbindElementFromMarkerName'](_0x169cd7,_0x26e96b['markerName']),_0x81d435['writer']['remove'](_0x169cd7));}},{'priority':'high'}),_0x39aec4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xca0ef6,_0x1312f2,_0x477da8)=>{_0x477da8['options']['showSuggestionHighlights']&&Fe(_0x39aec4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xca0ef6,_0x1312f2,_0x477da8);},{'priority':'high'});}}class Z extends _0xd6413c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x9d2f68=this['editor']['plugins']['get']('TrackChangesEditing');_0x9d2f68['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x9d2f68['enableCommand']('findNext'),_0x9d2f68['enableCommand']('findPrevious'),_0x9d2f68['enableCommand']('replace'),_0x9d2f68['enableCommand']('replaceAll');}['handleFindCommand'](_0x225477,_0x6c6955,_0x83de55={}){const _0x486f6c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x225477(_0x3838d0=>{let _0x26fc18=('string'==typeof _0x6c6955?_0x486f6c['findByTextCallback'](_0x6c6955,_0x83de55):_0x6c6955)(_0x3838d0);Array['isArray'](_0x26fc18)&&(_0x26fc18={'results':_0x26fc18,'searchText':'string'==typeof _0x6c6955?_0x6c6955:''});const _0xc39d74=_0x26fc18['results']['filter'](_0x5faaa=>!0x1===this['_isInDeletionRange'](_0x5faaa,_0x3838d0['item']));return{..._0x26fc18,'results':_0xc39d74};},_0x83de55);}['_isInDeletionRange'](_0x4820a0,_0x1d2f63){const _0x294e87=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d2f63,_0x4820a0['start']),this['editor']['model']['createPositionAt'](_0x1d2f63,_0x4820a0['end']));for(const _0x265ea1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x294e87['getIntersection'](_0x265ea1['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0xd6413c{['afterInit'](){const _0x339c10=this['editor']['locale'],_0x2949a7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x492556,commandName:_0x2d3525}of ro)this['editor']['plugins']['has'](_0x492556)&&(_0x2949a7['enableDefaultAttributesIntegration'](_0x2d3525),_0x2949a7['registerInlineAttribute'](_0x2d3525));_0x2949a7['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x339c10,'FORMAT_FONT_SIZE')),_0x2949a7['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x339c10,'FORMAT_FONT_FAMILY')),_0x2949a7['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x339c10,'FORMAT_FONT_COLOR')),_0x2949a7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x339c10,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x110711=this['editor'],_0xdb9162=_0x110711['locale'];_0x110711['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed847=>{const _0x11a245=_0xdb9162['t'];if('formatInline'!=_0x3ed847['type'])return;const {data:_0x8ebcf2}=_0x3ed847;if(null!=_0x8ebcf2){if('fontSize'==_0x8ebcf2['commandName']){const _0xcc4279=_0x8ebcf2['commandParams'][0x0]['value'];if(_0xcc4279){const _0x3f1774=_0x11a245(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x272142=>_0x272142['model']==_0xcc4279)['title'])['toLowerCase']();return{'type':'format','content':c(_0xdb9162,'*Set\x20font\x20size:*\x20%0',_0x3f1774)};}return{'type':'format','content':c(_0xdb9162,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8ebcf2['commandName']){const _0x3ca04c=_0x8ebcf2['commandParams'][0x0]['value'];return _0x3ca04c?{'type':'format','content':c(_0xdb9162,'*Set\x20font\x20family:*\x20%0',_0x3ca04c)}:{'type':'format','content':c(_0xdb9162,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8ebcf2['commandName']){const _0x421ecc=_0x8ebcf2['commandParams'][0x0]['value'];if(_0x421ecc){const _0x351075=_0x5298ad(this['editor']['config']['get']('fontColor.colors'))['find'](_0x207e69=>_0x207e69['model']==_0x421ecc);let _0x17f0cb=_0x421ecc,_0x5a021b='';return _0x351075&&(_0x17f0cb=_0x351075['label'],_0x5a021b=_0x11a245(_0x17f0cb)['toLowerCase']()),{'type':'format','content':c(_0xdb9162,'*Set\x20font\x20color:*\x20%0',_0x5a021b)['trim'](),'color':{'value':_0x421ecc,'title':_0x5a021b||_0x17f0cb}};}return{'type':'format','content':c(_0xdb9162,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8ebcf2['commandName']){const _0x688bb5=_0x8ebcf2['commandParams'][0x0]['value'];if(_0x688bb5){const _0x37e602=_0x5298ad(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4f2397=>_0x4f2397['model']==_0x688bb5);let _0x17704b=_0x688bb5,_0x5adb1b='';return _0x37e602&&(_0x17704b=_0x37e602['label'],_0x5adb1b=_0x11a245(_0x17704b)['toLowerCase']()),{'type':'format','content':c(_0xdb9162,'*Set\x20font\x20background\x20color:*\x20%0',_0x5adb1b)['trim'](),'color':{'value':_0x688bb5,'title':_0x5adb1b||_0x17704b}};}return{'type':'format','content':c(_0xdb9162,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0xd6413c{['afterInit'](){const _0xe754b6=this['editor'],_0x4eebed=_0xe754b6['plugins']['get']('TrackChangesEditing'),_0x2e1b1a=_0xe754b6['commands']['get']('copyFormat'),_0x5cd943=_0xe754b6['commands']['get']('pasteFormat');_0x2e1b1a&&_0x5cd943&&(_0x4eebed['enableDefaultAttributesIntegration']('pasteFormat'),_0x4eebed['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x449bd3=this['editor'],_0x29d3b3=_0x449bd3['locale'];_0x449bd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55f1ad=>{if('formatBlock'!=_0x55f1ad['type']&&'formatInline'!=_0x55f1ad['type'])return;const {data:_0x33f272}=_0x55f1ad;if(_0x33f272&&'pasteFormat'===_0x33f272['commandName']){const _0x5a3a2a=[],_0x46af58=_0x33f272['commandParams'][0x0];for(const [_0x4b4c71,_0x1686a7]of Object['entries'](_0x46af58))_0x5a3a2a['push'](so(_0x449bd3,_0x4b4c71,_0x1686a7));return _0x5a3a2a['length']?{'type':'format','content':c(_0x29d3b3,'*Set\x20format\x20to:*\x20%0',_0x5a3a2a['join'](',\x20'))}:{'type':'format','content':c(_0x29d3b3,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1402c4,_0x4031b3,_0xba6ebc){const _0xd67b34=_0x1402c4['locale']['t'],_0x54a551=_0x4031b3['split'](/(?=[A-Z])/)['join']('\x20'),_0x3a0e4e=_0xd67b34(_0x54a551['charAt'](0x0)['toUpperCase']()+_0x54a551['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xba6ebc)return _0x3a0e4e;if('fontColor'===_0x4031b3||'fontBackgroundColor'===_0x4031b3){const _0x1c6487=_0x5298ad(_0x1402c4['config']['get']('fontColor.colors'))['find'](_0x1aa862=>_0x1aa862['model']==_0xba6ebc);return _0x3a0e4e+'\x20('+(_0x1c6487?_0xd67b34(_0x1c6487['label'])['toLowerCase']():_0xba6ebc)+')';}if('fontSize'===_0x4031b3&&isNaN(parseFloat(_0xba6ebc))){const _0x2a57f1=_0x1402c4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1402c4['config']['get']('fontSize.options'))['find'](_0x2f1854=>_0x2f1854['model']==_0xba6ebc);return _0x3a0e4e+'\x20('+(_0x2a57f1?_0xd67b34(_0x2a57f1['title'])['toLowerCase']():_0xba6ebc)+')';}return _0x3a0e4e+'\x20('+_0xba6ebc+')';}class nt extends _0xd6413c{['_headingOptions'];['afterInit'](){const _0x4dd21b=this['editor'];if(!_0x4dd21b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4dd21b['config']['get']('heading.options');const _0x4dd7f9=_0x4dd21b['locale'],_0x44e9ad=_0x4dd21b['plugins']['get']('TrackChangesEditing');_0x44e9ad['enableDefaultAttributesIntegration']('heading');for(const _0x5e4bf6 of this['_headingOptions'])'paragraph'!=_0x5e4bf6['model']&&_0x44e9ad['descriptionFactory']['registerElementLabel'](_0x5e4bf6['model'],_0x337d45=>{const _0x10cdc6=this['_getHeadingLevel'](_0x5e4bf6['model']);return null!==_0x10cdc6?_0x1f83cc(_0x337d45,_0x10cdc6):_0x3fd847(_0x337d45,_0x5e4bf6['title']);});function _0x1f83cc(_0x3ed3ea,_0x307054){return c(_0x4dd7f9,'ELEMENT_HEADING',[_0x3ed3ea,_0x307054]);}function _0x3fd847(_0x8a3dc4,_0x5bfb04){return c(_0x4dd7f9,'ELEMENT_HEADING_CUSTOM',[_0x8a3dc4,_0x5bfb04]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51725b=this['editor'],_0x29e07d=_0x51725b['locale'];function _0x97f7ba(_0x45149e,_0x11f398){return c(_0x29e07d,'ELEMENT_HEADING_CUSTOM',[_0x45149e,_0x11f398]);}_0x51725b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21b3a5=>{if('formatBlock'!=_0x21b3a5['type'])return;const {data:_0x1dd9dd}=_0x21b3a5;if(_0x1dd9dd&&'heading'==_0x1dd9dd['commandName']){const _0x5e9d9c=_0x1dd9dd['commandParams'][0x0]['value'],_0x44f13d=this['_getHeadingLevel'](_0x5e9d9c);if(null!==_0x44f13d)return{'type':'format','content':c(_0x29e07d,'*Change\x20to:*\x20%0',(_0x47d13a=0x1,_0x495f3d=_0x44f13d,c(_0x29e07d,'ELEMENT_HEADING',[_0x47d13a,_0x495f3d])))};const _0x25cd8b=this['_headingOptions']['find'](_0x4f7698=>_0x4f7698['model']===_0x5e9d9c)['title'];return{'type':'format','content':c(_0x29e07d,'*Change\x20to:*\x20%0',_0x97f7ba(0x1,_0x25cd8b))};}var _0x47d13a,_0x495f3d;});}['_getHeadingLevel'](_0x2d6528){const _0x597744=_0x2d6528['match'](/^heading(\d+)/);if(_0x597744)return _0x597744[0x1];const _0x10f87c=this['_headingOptions']?.['find'](_0x3b5dcd=>_0x3b5dcd['model']==_0x2d6528);if(_0x10f87c&&_0x10f87c['view']){const _0x42f96a=_0x10f87c['view'],_0x5537eb=(_0x42f96a['name']??_0x42f96a)['match'](/^h(\d+)/);if(_0x5537eb)return _0x5537eb[0x1];}return null;}}class it extends _0xd6413c{['afterInit'](){const _0x205b53=this['editor'];if(!_0x205b53['plugins']['has']('HighlightEditing'))return;const _0x32d9b7=_0x205b53['plugins']['get']('TrackChangesEditing'),_0x5ca86a=_0x205b53['locale'];_0x32d9b7['enableDefaultAttributesIntegration']('highlight'),_0x32d9b7['registerInlineAttribute']('highlight'),_0x32d9b7['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5ca86a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a2d3f=this['editor'],_0x5512e0=_0x4a2d3f['locale'];_0x4a2d3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x440a0=>{if('formatInline'!=_0x440a0['type'])return;const {data:_0x1ac7d8}=_0x440a0;if(_0x1ac7d8&&'highlight'==_0x1ac7d8['commandName']){const _0x22fd27=_0x5512e0['t'],_0x5387a8=_0x1ac7d8['commandParams'][0x0]['value'];if(_0x5387a8){const _0x55e010=_0x4a2d3f['config']['get']('highlight.options')['find'](_0x3b62f7=>_0x3b62f7['model']==_0x5387a8),_0x2d32fb=_0x22fd27(_0x55e010['title'])['toLowerCase']();return{'type':'format','content':c(_0x5512e0,'*Set\x20highlight:*\x20%0',_0x2d32fb),'color':{'value':_0x55e010['color'],'title':_0x55e010['title']}};}return{'type':'format','content':c(_0x5512e0,'*Remove\x20highlight*',c(_0x5512e0,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xd6413c{['afterInit'](){const _0x181ce9=this['editor'];if(!_0x181ce9['plugins']['has']('HorizontalLineEditing'))return;_0x181ce9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50040e=_0x181ce9['plugins']['get']('TrackChangesEditing'),_0x5b8c0d=_0x181ce9['locale'];_0x50040e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d7390=>c(_0x5b8c0d,'ELEMENT_HORIZONTAL_LINE',_0x4d7390)),_0x181ce9['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3a9624,{writer:_0x30d282,options:_0x30e621})=>{if(!_0x30e621['showSuggestionHighlights'])return null;const _0x4122c2=_0x30d282['createContainerElement']('div'),_0x2ca80e=_0x30d282['createEmptyElement']('hr');return _0x30d282['addClass']('ck-horizontal-line',_0x4122c2),_0x30d282['insert'](_0x30d282['createPositionAt'](_0x4122c2,0x0),_0x2ca80e),_0x4122c2;},'converterPriority':'high'});}}class ot extends _0xd6413c{['afterInit'](){const _0x53079c=this['editor'];if(!_0x53079c['plugins']['has']('HtmlEmbed'))return;const _0x58876f=_0x53079c['plugins']['get']('TrackChangesEditing'),_0x56059b=_0x53079c['locale'];_0x58876f['descriptionFactory']['registerElementLabel']('rawHtml',_0x55e655=>c(_0x56059b,'ELEMENT_HTML_EMBED',_0x55e655)),_0x58876f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x58876f['registerBlockAttribute']('value'),_0x58876f['descriptionFactory']['registerDescriptionCallback'](_0x55104b=>{if('attribute'!=_0x55104b['type'])return;const {data:_0x33ec7b}=_0x55104b;if(_0x33ec7b&&'value'==_0x33ec7b['key']&&_0x55104b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xed38a7=c(_0x56059b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x56059b,'*Change\x20%0\x20content*',_0xed38a7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x143721=this['editor'],_0x5a22e3=_0x143721['locale'];_0x143721['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b26cd=>{if('formatBlock'!=_0x1b26cd['type'])return;const {data:_0x5f045f}=_0x1b26cd;if(_0x5f045f&&'htmlEmbed'==_0x5f045f['commandName']){const _0x4fd833=c(_0x5a22e3,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5a22e3,'*Change\x20%0\x20content*',_0x4fd833)};}});}}class rt extends _0xd6413c{['afterInit'](){const _0x29f087=this['editor'];if(!_0x29f087['plugins']['has']('ImageEditing'))return;const _0x4a551d=_0x29f087['plugins']['get']('TrackChangesEditing'),_0x5a5985=_0x29f087['plugins']['get']('ImageUtils'),_0x316f87=_0x29f087['locale'];_0x4a551d['enableCommand']('insertImage'),_0x4a551d['descriptionFactory']['registerElementLabel']('imageBlock',_0x1ad0b6=>c(_0x316f87,'ELEMENT_IMAGE',_0x1ad0b6)),_0x4a551d['descriptionFactory']['registerElementLabel']('imageInline',_0x26ab5b=>c(_0x316f87,'ELEMENT_INLINE_IMAGE',_0x26ab5b)),_0x4a551d['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x316f87,'ELEMENT_CAPTION')),_0x29f087['plugins']['has']('ImageUploadEditing')&&_0x4a551d['enableCommand']('uploadImage'),_0x29f087['plugins']['has']('ImageBlockEditing')&&_0x29f087['plugins']['has']('ImageInlineEditing')&&(_0x4a551d['enableCommand']('imageTypeInline',(_0x4b235f,_0x3f4dd4)=>{const _0x48ee9f=_0x5a5985['getClosestSelectedImageElement'](_0x29f087['model']['document']['selection']);_0x29f087['model']['change'](()=>{_0x4a551d['markBlockFormat'](_0x48ee9f,{'commandName':'imageTypeInline','commandParams':[_0x3f4dd4]},[],'convertBlockImageToInline');});}),_0x4a551d['enableCommand']('imageTypeBlock',(_0x51da88,_0x14b856)=>{_0x29f087['model']['change'](_0x2e1bc0=>{let _0x6f2a8b=_0x5a5985['getClosestSelectedImageElement'](_0x29f087['model']['document']['selection']),_0x28a4be=_0x2e1bc0['createRangeOn'](_0x6f2a8b);const _0x5e3e36=_0xd7fb3['fromPosition'](_0x28a4be['start'],'toPrevious'),_0xeee5e=_0xd7fb3['fromPosition'](_0x28a4be['end'],'toNext');_0x4a551d['forceDefaultExecution'](()=>_0x51da88(_0x14b856)),_0x6f2a8b=_0x5a5985['getClosestSelectedImageElement'](_0x29f087['model']['document']['selection']),_0x28a4be=_0x2e1bc0['createRangeOn'](_0x6f2a8b);const _0x4e5e45=_0x2e1bc0['createRange'](_0x5e3e36,_0xeee5e);_0x5e3e36['detach'](),_0xeee5e['detach'](),_0x4a551d['markBlockFormat'](_0x6f2a8b,{'commandName':'imageTypeInline','commandParams':[_0x14b856]},[],'convertInlineImageToBlock'),_0x4e5e45['start']['isBefore'](_0x28a4be['start'])&&_0x4a551d['markInsertion'](_0x2e1bc0['createRange'](_0x4e5e45['start'],_0x28a4be['start']),'convertInlineImageToBlock'),_0x28a4be['end']['isBefore'](_0x4e5e45['end'])&&_0x4a551d['markInsertion'](_0x2e1bc0['createRange'](_0x28a4be['end'],_0x4e5e45['end']),'convertInlineImageToBlock');});}),_0x4a551d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4a551d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4a551d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4a551d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4a551d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4a551d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x523720])=>{const _0x2f8876=_0x4a551d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e5d04=_0x523720['start'],_0x275156=_0x523720['end'];const _0x46c96d=_0x29f087['model']['schema']['getNearestSelectionRange'](_0x2e5d04,'backward'),_0x57aeac=_0x29f087['model']['schema']['getNearestSelectionRange'](_0x275156,'forward');_0x46c96d['isCollapsed']&&(_0x2e5d04=_0x46c96d['start']),_0x57aeac['isCollapsed']&&(_0x275156=_0x57aeac['end']),_0x2f8876([_0x29f087['model']['createRange'](_0x2e5d04,_0x275156)]);}),_0x4a551d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1aec43),_0x4a551d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1aec43)),_0x29f087['plugins']['has']('ImageCaptionEditing')&&(_0x4a551d['enableCommand']('toggleImageCaption',(_0xd4fe9c,_0x238c09)=>{const _0x129a74=_0x29f087['plugins']['get']('ImageCaptionUtils');let _0x2415f3=_0x5a5985['getClosestSelectedImageElement'](_0x29f087['model']['document']['selection']),_0x5290db=_0x129a74['getCaptionFromImageModelElement'](_0x2415f3);_0x29f087['model']['change'](()=>{if(_0x5290db)return void _0x4a551d['markDeletion'](_0x29f087['model']['createRangeOn'](_0x5290db));const _0x476b1e=_0x5a5985['isBlockImage'](_0x2415f3);_0xd4fe9c(_0x238c09),_0x2415f3=_0x5a5985['getClosestSelectedImageElement'](_0x29f087['model']['document']['selection']),_0x5290db=_0x129a74['getCaptionFromImageModelElement'](_0x2415f3),_0x4a551d['markInsertion'](_0x29f087['model']['createRangeOn'](_0x5290db),_0x476b1e?null:'imageCaption');});}),_0x4a551d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1aec43));const _0x39b0ba=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x477bce(_0x105f70,_0xfa9242){const _0x5af809=_0x39b0ba['findIndex'](({type:_0x983c7a,subType:_0x5617a1})=>_0x105f70['type']==_0x983c7a&&_0x105f70['subType']==_0x5617a1),_0x14b37f=_0x39b0ba['findIndex'](({type:_0x31f4be,subType:_0x295996})=>_0xfa9242['type']==_0x31f4be&&_0xfa9242['subType']==_0x295996);if(_0x5af809<0x0||_0x14b37f<0x0)return!0x1;const _0x18fb8a=_0x105f70['getFirstRange'](),_0xc87720=_0xfa9242['getFirstRange']();if((0x0==_0x5af809||0x1==_0x5af809)&&0x2==_0x14b37f&&_0x18fb8a['isIntersecting'](_0xc87720))return!0x0;if(0x2==_0x5af809&&0x3==_0x14b37f){const _0x56aa60=_0x4a551d['_findSuggestions'](_0x18fb8a,'insertion')['filter'](({suggestion:_0x41ee3d,meta:_0x176700})=>_0x176700['isOwn']&&'convertInlineImageToBlock'==_0x41ee3d['subType']);if(_0x56aa60['length']>0x1&&_0xc87720['end']['isEqual'](_0x18fb8a['start']))return!0x0;if(0x1==_0x56aa60['length']&&(_0x18fb8a['start']['isEqual'](_0xc87720['end'])||_0x18fb8a['end']['isEqual'](_0xc87720['start'])))return!0x0;}if(0x3==_0x5af809&&0x3==_0x14b37f&&_0x18fb8a['start']['isBefore'](_0xc87720['start'])){const _0x2744bb=_0x18fb8a['end']['nodeAfter'],_0x2ee1b1=_0xc87720['start']['nodeBefore'];return _0x5a5985['isBlockImage'](_0x2744bb)&&_0x2744bb===_0x2ee1b1;}return!0x1;}function _0x1aec43(_0x5028fd,_0x432c09){return _0x477bce(_0x5028fd,_0x432c09)?[_0x5028fd,_0x432c09]:_0x477bce(_0x432c09,_0x5028fd)?[_0x432c09,_0x5028fd]:null;}_0x29f087['plugins']['has']('ImageResize')&&(_0x4a551d['enableDefaultAttributesIntegration']('resizeImage'),_0x4a551d['registerBlockAttribute']('resizedWidth'),_0x4a551d['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x316f87,'FORMAT_IMAGE_SIZE'))),_0x29f087['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4a551d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4a551d['registerBlockAttribute']('alt')),_0x29f087['plugins']['has']('PictureEditing')&&(_0x4a551d['registerBlockAttribute']('sources'),_0x4a551d['descriptionFactory']['registerDescriptionCallback'](_0x5302db=>{if('attribute'!=_0x5302db['type'])return;const {data:_0x4c2d5f}=_0x5302db;return _0x4c2d5f&&'sources'==_0x4c2d5f['key']?{'type':'format','content':''}:void 0x0;})),_0x29f087['plugins']['has']('ImageSizeAttributes')&&(_0x4a551d['registerBlockAttribute']('width'),_0x4a551d['registerBlockAttribute']('height'),_0x4a551d['descriptionFactory']['registerDescriptionCallback'](_0x53f5c4=>{if('attribute'!=_0x53f5c4['type'])return;const {data:_0x56b1f9}=_0x53f5c4;return!_0x56b1f9||'width'!=_0x56b1f9['key']&&'height'!=_0x56b1f9['key']?void 0x0:{'type':'format','content':''};})),_0x4a551d['descriptionFactory']['registerDescriptionCallback'](_0x372154=>{if(!!_0x39b0ba['find'](({type:_0x3c97d9,subType:_0x3831df})=>_0x372154['type']==_0x3c97d9&&_0x372154['subType']==_0x3831df))return _0x372154['previous']?{}:void 0x0;}),_0x4a551d['descriptionFactory']['registerDescriptionCallback'](_0x2f5f37=>{if('insertion'==_0x2f5f37['type']||'deletion'==_0x2f5f37['type']){const _0x58bcba=_0x2f5f37['getContainedElement']();if(_0x58bcba&&_0x58bcba['is']('element','caption'))return{'type':'insertion'==_0x2f5f37['type']?'addObject':'removeObject','element':_0x58bcba,'quantity':0x1};}}),_0x4a551d['descriptionFactory']['registerDescriptionCallback'](_0x16b05a=>'formatBlock'==_0x16b05a['type']&&'convertInlineImageToBlock'==_0x16b05a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x16b05a['type']&&'convertBlockImageToInline'==_0x16b05a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4a551d['descriptionFactory']['registerDescriptionCallback'](_0x3f1d98=>{if('attribute'!=_0x3f1d98['type'])return;const {data:_0x4ac722}=_0x3f1d98;if(!_0x4ac722||'alt'!=_0x4ac722['key'])return;const _0x5af5a4=_0x4ac722['newValue'];return _0x5af5a4?{'type':'format','content':c(_0x316f87,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5af5a4+'\x22')}:{'type':'format','content':c(_0x316f87,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17c3d4=this['editor'],_0x474aa7=_0x17c3d4['locale'];_0x17c3d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ccd2=>{if('formatBlock'!=_0x27ccd2['type']&&'formatInline'!=_0x27ccd2['type'])return;const {data:_0x3f79a3}=_0x27ccd2;if(_0x3f79a3){if('imageTextAlternative'==_0x3f79a3['commandName']){const _0x5d6fdf=_0x3f79a3['commandParams'][0x0]['newValue'];return _0x5d6fdf?{'type':'format','content':c(_0x474aa7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d6fdf+'\x22')}:{'type':'format','content':c(_0x474aa7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3f79a3['commandName']){const _0x32d65f=_0x3f79a3['commandParams'][0x0]['width'];return _0x32d65f?{'type':'format','content':c(_0x474aa7,'*Set\x20image\x20width:*\x20%0',_0x32d65f)}:{'type':'format','content':c(_0x474aa7,'*Reset\x20image\x20width*')};}}});}}class at extends _0xd6413c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4821e3=this['editor']['locale'],_0x3db624=this['editor']['plugins']['get']('TrackChangesEditing');_0x3db624['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3db624['registerBlockAttribute']('src'),_0x3db624['descriptionFactory']['registerDescriptionCallback'](_0xd6b1ed=>{if('attribute'!=_0xd6b1ed['type'])return;const {data:_0x420c25}=_0xd6b1ed;return _0x420c25&&'src'==_0x420c25['key']?_0x420c25['newValue']&&_0x420c25['oldValue']?{'type':'format','content':c(_0x4821e3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x44bb00=this['editor']['plugins']['get']('TrackChangesEditing');_0x44bb00['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x44bb00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44bb00['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x44bb00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25c39a=this['editor'],_0x191760=_0x25c39a['locale'];_0x25c39a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9d4806=>{if('formatBlock'!=_0x9d4806['type']&&'formatInline'!=_0x9d4806['type'])return;const {data:_0x37dbde}=_0x9d4806;if(!_0x37dbde||'replaceImageSource'!=_0x37dbde['commandName'])return;return{'type':'format','content':c(_0x191760,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xd6413c{['afterInit'](){const _0x34ebe9=this['editor'];if(!_0x34ebe9['plugins']['has']('ImageStyleEditing'))return;const _0x284195=_0x34ebe9['plugins']['get']('TrackChangesEditing'),_0x190db0=_0x34ebe9['plugins']['get']('ImageUtils'),_0x1283e5={};_0x284195['enableCommand']('imageStyle',(_0x37fc9b,_0x4ec855)=>{const _0x774fb3=_0x34ebe9['plugins']['get']('Users')['me'],_0x4b9e5b=_0x34ebe9['commands']['get']('imageStyle');let _0x3af2e2=_0x190db0['getClosestSelectedImageElement'](_0x34ebe9['model']['document']['selection']),_0x41a776=_0x34ebe9['model']['createRangeOn'](_0x3af2e2),_0x4984a9=_0x4b9e5b['value'];if(_0x4984a9==_0x4ec855['value'])return;const _0x49e37d={'commandName':'imageStyle','commandParams':[_0x4ec855],'formatGroupId':_0x2fdf50()};_0x34ebe9['model']['change'](()=>{if(_0x284195['getSuggestions']()['filter'](_0x401452=>_0x401452['isInContent']&&_0x774fb3==_0x401452['author']&&('formatBlock'==_0x401452['type']||'formatInline'==_0x401452['type'])&&('imageStylePreApply'==_0x401452['subType']||'imageStylePostApply'==_0x401452['subType'])&&_0x401452['getFirstRange']()['isEqual'](_0x41a776))['forEach'](_0x338543=>_0x284195['discardSuggestion'](_0x338543['head'])),_0x3af2e2=_0x190db0['getClosestSelectedImageElement'](_0x34ebe9['model']['document']['selection']),_0x41a776=_0x34ebe9['model']['createRangeOn'](_0x3af2e2),_0x4b9e5b['refresh'](),_0x34ebe9['commands']['get']('imageTypeInline')['refresh'](),_0x34ebe9['commands']['get']('imageTypeBlock')['refresh'](),_0x4984a9=_0x4b9e5b['value'],_0x4984a9!=_0x4ec855['value'])return _0x190db0['isInlineImage'](_0x3af2e2)&&_0x4b9e5b['shouldConvertImageType'](_0x4ec855['value'],_0x3af2e2)?(_0x37fc9b({..._0x4ec855,'setImageSizes':!0x1}),_0x3af2e2=_0x190db0['getClosestSelectedImageElement'](_0x34ebe9['model']['document']['selection']),void _0x284195['markBlockFormat'](_0x3af2e2,{..._0x49e37d,'commandReversedParams':[{'value':_0x4984a9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x190db0['isBlockImage'](_0x3af2e2)?_0x284195['markBlockFormat'](_0x3af2e2,_0x49e37d,[],'imageStylePostApply'):_0x284195['markInlineFormat'](_0x41a776,_0x49e37d,'imageStylePostApply'));});});for(const _0x4f83ce of _0x34ebe9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1283e5[_0x4f83ce['name']]=_0x4f83ce['title']['toLowerCase']();_0x284195['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x284195['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x284195['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x284195['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x275a37])=>{_0x190db0['setImageNaturalSizeAttributes'](_0x275a37['getContainedElement']());}),_0x284195['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x445592,_0x461319)=>{_0x284195['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x445592,{'commandName':_0x461319['commandName'],'commandParams':_0x461319['commandReversedParams']});}),_0x284195['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x506706,_0x195711){if(_0x3b3969(_0x506706,_0x195711))return[_0x506706,_0x195711];if(_0x3b3969(_0x195711,_0x506706))return[_0x195711,_0x506706];return null;});const _0x534aa9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3b3969(_0x3f35d2,_0x54824d){const _0x2e69f5=_0x534aa9['findIndex'](({type:_0x1a155f,subType:_0xb78a9d})=>_0x3f35d2['type']==_0x1a155f&&_0x3f35d2['subType']==_0xb78a9d),_0x59cfe9=_0x534aa9['findIndex'](({type:_0x49d8fc,subType:_0x28fc3c})=>_0x54824d['type']==_0x49d8fc&&_0x54824d['subType']==_0x28fc3c);if(_0x2e69f5<0x0||_0x59cfe9<0x0)return!0x1;const _0x399a4c=_0x3f35d2['getFirstRange'](),_0x1e3b99=_0x54824d['getFirstRange']();if((0x0==_0x2e69f5||0x1==_0x2e69f5)&&0x2==_0x59cfe9&&_0x399a4c['isIntersecting'](_0x1e3b99))return!0x0;if(0x2==_0x2e69f5&&0x3==_0x59cfe9){const _0x294e63=_0x284195['_findSuggestions'](_0x399a4c,'insertion')['filter'](({suggestion:_0x1f9018,meta:_0x5835c9})=>_0x5835c9['isOwn']&&'convertInlineImageToBlock'==_0x1f9018['subType']);if(_0x294e63['length']>0x1&&_0x1e3b99['end']['isEqual'](_0x399a4c['start']))return!0x0;if(0x1==_0x294e63['length']&&(_0x399a4c['start']['isEqual'](_0x1e3b99['end'])||_0x399a4c['end']['isEqual'](_0x1e3b99['start'])))return!0x0;}if(0x3==_0x2e69f5&&0x3==_0x59cfe9&&_0x399a4c['start']['isBefore'](_0x1e3b99['start'])){const _0x40e1d2=_0x399a4c['end']['nodeAfter'],_0x2c97ae=_0x1e3b99['start']['nodeBefore'];return _0x190db0['isBlockImage'](_0x40e1d2)&&_0x40e1d2===_0x2c97ae;}return!0x1;}_0x34ebe9['model']['document']['registerPostFixer'](()=>{let _0x239ff2=!0x1;const _0x554f2a=Array['from'](_0x34ebe9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4fe18c,data:_0x52cfc3}of _0x554f2a){const {group:_0xbc115e,type:_0x277cc3,subType:_0x416960,id:_0x4c99aa}=_0x284195['_splitMarkerName'](_0x4fe18c);if('suggestion'==_0xbc115e&&_0x284195['hasSuggestion'](_0x4c99aa)){if('formatBlock'==_0x277cc3&&('imageStylePreApply'==_0x416960||'imageStylePostApply'==_0x416960)){const _0x21c84a=_0x284195['getSuggestion'](_0x4c99aa);if(_0x52cfc3['newRange']){const _0x276c32=_0x21c84a['getFirstRange']()['getContainedElement']();if(_0x190db0['isBlockImage'](_0x276c32))continue;_0x284195['discardSuggestion'](_0x21c84a),_0x239ff2=!0x0;}}if('insertion'==_0x277cc3&&'imageCaption'==_0x416960&&!_0x52cfc3['newRange']){const _0xae74c6=_0x284195['getSuggestion'](_0x4c99aa);_0xae74c6['next']&&_0xae74c6['next']['isInContent']&&(_0x284195['discardSuggestion'](_0xae74c6['next']),_0x239ff2=!0x0);}}}return _0x239ff2;}),this['_registerLegacyDescription'](_0x1283e5);}['_registerLegacyDescription'](_0x2e0f4e){const _0x2bad8a=this['editor'],_0xcf3825=_0x2bad8a['locale'];_0x2bad8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x544e5c=>{if('formatBlock'!=_0x544e5c['type']&&'formatInline'!=_0x544e5c['type'])return;const {data:_0x27bca7}=_0x544e5c;if(!_0x27bca7||'imageStyle'!=_0x27bca7['commandName'])return;const _0x4a3673=_0x27bca7['commandParams'][0x0]['value'];return _0x36958c('side'===_0x4a3673?c(_0xcf3825,'FORMAT_SIDE_IMAGE'):_0x2e0f4e[_0x4a3673]||_0x4a3673);function _0x36958c(_0x278f37){return{'type':'format','content':c(_0xcf3825,'*Format:*\x20%0',_0x278f37)};}});}}class ut extends _0xd6413c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5741cb){super(_0x5741cb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x296d04=this['editor'],_0x27adf8=_0x296d04['commands']['get']('importWord'),_0xb3044e=_0x296d04['commands']['get']('trackChanges');_0x27adf8&&(_0x27adf8['on']('execute',(_0x5b9708,[,_0x5cbba6])=>{this['_trackChangesValueDuringImport']=_0xb3044e['value'],_0x5cbba6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x27adf8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x27adf8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xb3044e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x296d04['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3a2eeb,_0x30584a){const {suggestions:_0xae9876}=_0x30584a,_0xeff4b3=this['editor']['commands']['get']('trackChanges'),_0x22250c=_0xeff4b3['value'];this['_trackChangesValueDuringImport']!==_0x22250c&&(_0xeff4b3['execute'](),this['_trackChangesExecuted']=!0x0),_0xae9876&&_0xae9876['forEach'](({id:_0x4cf4b8,type:_0x281c00,author:_0x3f774e,created_at:_0x131f89})=>{const _0x56fa09={'id':_0x4cf4b8,'type':_0x281c00,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3f774e,'createdAt':_0x131f89?new Date(_0x131f89):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x56fa09);});}}class ft extends _0xd6413c{['afterInit'](){const _0x9debef=this['editor'],_0x271846=_0x9debef['plugins']['get']('TrackChangesEditing');if(_0x9debef['plugins']['has']('IndentEditing')&&(_0x271846['enableCommand']('indent'),_0x271846['enableCommand']('outdent')),_0x9debef['plugins']['has']('IndentBlock')){for(const _0x528beb of['indentBlock','outdentBlock'])_0x271846['enableDefaultAttributesIntegration'](_0x528beb);}const _0x1233fb=_0x9debef['locale'];_0x271846['registerBlockAttribute']('blockIndent'),_0x271846['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1233fb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35e426=this['editor'],_0x455e46=_0x35e426['locale'],_0x34d90c=_0x35e426['plugins']['get']('TrackChangesEditing');_0x34d90c['descriptionFactory']['registerDescriptionCallback'](_0x27bed3=>{if('formatBlock'!=_0x27bed3['type'])return;const {data:_0x3a6f43}=_0x27bed3;if(!_0x3a6f43)return;if('indentBlock'!=_0x3a6f43['commandName']&&'outdentBlock'!=_0x3a6f43['commandName'])return;const _0x18194b=_0x27bed3['getItems']()[0x0],_0x5353d3=_0x34d90c['descriptionFactory']['getItemLabel'](_0x18194b);return'indentBlock'==_0x3a6f43['commandName']?{'type':'format','content':c(_0x455e46,'*Indent:*\x20%0',_0x5353d3)}:'outdentBlock'==_0x3a6f43['commandName']?{'type':'format','content':c(_0x455e46,'*Outdent:*\x20%0',_0x5353d3)}:void 0x0;});}}class ht extends _0xd6413c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xd6413c{['afterInit'](){const _0x15f46c=this['editor'];if(!_0x15f46c['plugins']['has']('LinkEditing'))return;const _0x26d845=_0x15f46c['plugins']['get']('TrackChangesEditing'),_0x2bc739=_0x15f46c['commands']['get']('link');_0x26d845['enableDefaultAttributesIntegration']('link'),_0x26d845['enableDefaultAttributesIntegration']('unlink'),_0x26d845['registerInlineAttribute']('linkHref');for(const _0xf86236 of _0x2bc739['manualDecorators'])_0x26d845['registerInlineAttribute'](_0xf86236['id']),_0x26d845['descriptionFactory']['registerAttributeLabel'](_0xf86236['id'],'link\x20('+_0xf86236['label']['toLowerCase']()+')');_0x26d845['descriptionFactory']['registerDescriptionCallback'](_0x5b2254=>{if('attribute'!=_0x5b2254['type'])return;const {data:_0x58782b}=_0x5b2254;if(!_0x58782b||'linkHref'!=_0x58782b['key'])return;const _0x24cf89=_0x58782b['newValue'],_0x5cdb8d=_0x15f46c['locale'];return{'type':'format','content':null==_0x24cf89?c(_0x5cdb8d,'*Remove\x20link*'):c(_0x5cdb8d,'*Set\x20link:*\x20%0','\x22'+_0x24cf89+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cf73f=this['editor'],_0x138073=_0x4cf73f['locale'];_0x4cf73f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x307a26=>{if('formatInline'!=_0x307a26['type'])return;const {data:_0x2fb6ff}=_0x307a26;if(_0x2fb6ff){if('link'==_0x2fb6ff['commandName']){const _0x5255e5=_0x2fb6ff['commandParams'][0x0];return{'type':'format','content':c(_0x138073,'*Set\x20link:*\x20%0','\x22'+_0x5255e5+'\x22')};}return'unlink'==_0x2fb6ff['commandName']?{'type':'format','content':c(_0x138073,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xd6413c{['afterInit'](){const _0x396766=this['editor'],_0x9b969f=_0x396766['locale'];if(!_0x396766['plugins']['has']('LegacyListEditing'))return;const _0x48e34f=_0x396766['plugins']['get']('TrackChangesEditing'),_0x553fcb=_0x396766['plugins']['has']('LegacyTodoListEditing');function _0x304eb1(_0x1606f2){return()=>{const _0x2206e3=_0x396766['model']['document']['selection'],_0x1347c0=_0x396766['commands']['get'](_0x1606f2);if(_0x1347c0['value'])return void _0x396766['execute']('paragraph',{});const _0x24ce3e=_0x1606f2['slice'](0x0,-0x4),_0x49896e=function(_0x42f1e3,_0x31ba6f,_0x2be5f4){let _0x2a7418=Array['from'](_0x42f1e3)['filter'](_0x1b6ac9=>function(_0xb83687,_0x19dba6){return _0x19dba6['checkChild'](_0xb83687['parent'],'listItem')&&!_0x19dba6['isObject'](_0xb83687);}(_0x1b6ac9,_0x2be5f4));_0x2a7418=_0x2a7418['filter'](_0x23bf80=>!_0x23bf80['is']('element','listItem')||_0x23bf80['getAttribute']('listType')!=_0x31ba6f);const _0x18f617=new Set();for(const _0x40e72e of _0x2a7418)_0x40e72e['is']('element','listItem')?_0x18f617['add'](Le(_0x40e72e)):_0x18f617['add'](_0x40e72e);return Array['from'](_0x18f617);}(_0x2206e3['getSelectedBlocks'](),_0x24ce3e,_0x396766['model']['schema']);_0x396766['model']['change'](()=>{for(const _0x10aebf of _0x49896e)_0x48e34f['markBlockFormat'](_0x10aebf,{'commandName':_0x1606f2,'commandParams':[{'forceValue':!_0x1347c0['value']}],'formatGroupId':'blockName'},Ee(_0x10aebf));});};}function _0x115145(_0x4b2bf7){return()=>{const _0x1ca1eb=function(_0x679139){let _0x3360be=Array['from'](_0x679139);const _0x2bea79=_0x3360be['findIndex'](_0x477b64=>'listItem'!=_0x477b64['name']);return _0x2bea79>-0x1&&(_0x3360be=_0x3360be['slice'](0x0,_0x2bea79)),_0x3360be;}(_0x396766['model']['document']['selection']['getSelectedBlocks']()),_0x10b206=_0x396766['model']['createRange'](_0x396766['model']['createPositionAt'](_0x1ca1eb[0x0],'before'),_0x396766['model']['createPositionAt'](_0x1ca1eb[_0x1ca1eb['length']-0x1],'end'));_0x396766['model']['change'](()=>{_0x48e34f['markBlockFormat'](_0x10b206,{'commandName':_0x4b2bf7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x143d02){const _0x264f99=new Set();for(const _0x381776 of _0x143d02){let _0x3c7ced=_0x381776['nextSibling'];for(;_0x3c7ced&&_0x3c7ced['getAttribute']('listIndent')>_0x381776['getAttribute']('listIndent');)_0x264f99['add'](_0x3c7ced),_0x3c7ced=_0x3c7ced['nextSibling'];}return Array['from'](_0x264f99);}(_0x1ca1eb));});};}_0x48e34f['enableCommand']('numberedList',_0x304eb1('numberedList')),_0x48e34f['enableCommand']('bulletedList',_0x304eb1('bulletedList')),_0x553fcb&&_0x48e34f['enableCommand']('todoList',_0x304eb1('todoList')),_0x48e34f['enableCommand']('indentList',_0x115145('indentList')),_0x48e34f['enableCommand']('outdentList',_0x115145('outdentList')),_0x553fcb&&_0x48e34f['enableCommand']('checkTodoList',()=>{const _0x260337=_0x396766['commands']['get']('checkTodoList'),_0x4a9402=Array['from'](_0x260337['_selectedElements']);_0x4a9402['filter'](_0x36769d=>_0x36769d['getAttribute']('todoListChecked')!=_0x260337['value']),_0x396766['model']['change'](()=>{for(const _0x7d8654 of _0x4a9402)_0x48e34f['markBlockFormat'](_0x7d8654,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x260337['value']}]});});}),_0x48e34f['descriptionFactory']['registerElementLabel']('listItem',_0x43bc45=>c(_0x9b969f,'ELEMENT_LIST_ITEM',_0x43bc45)),_0x48e34f['descriptionFactory']['registerDescriptionCallback'](_0x165797=>{if('formatBlock'!=_0x165797['type']&&'formatInline'!=_0x165797['type'])return;const {data:_0x32c451}=_0x165797;if(_0x32c451){if('numberedList'==_0x32c451['commandName']||'bulletedList'==_0x32c451['commandName']||'todoList'==_0x32c451['commandName'])switch(_0x32c451['commandName']['replace']('List','')){case'bulleted':return _0x32cea2(c(_0x9b969f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32cea2(c(_0x9b969f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32cea2(c(_0x9b969f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x32c451['commandName'])return{'type':'format','content':c(_0x9b969f,'*Indent:*\x20%0',c(_0x9b969f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x32c451['commandName'])return{'type':'format','content':c(_0x9b969f,'*Outdent:*\x20%0',c(_0x9b969f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x32c451['commandName'])return _0x32c451['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9b969f,'*Check\x20item*')}:{'type':'format','content':c(_0x9b969f,'*Uncheck\x20item*')};}function _0x32cea2(_0xff2a59){return{'type':'format','content':c(_0x9b969f,'*Change\x20to:*\x20%0',_0xff2a59)};}});}}function Le(_0x94524f){const _0x1edd20=_0x94524f['getAttribute']('listIndent');if(0x0==_0x1edd20)return _0x94524f;let _0x5c2b91=_0x94524f;for(;_0x94524f['previousSibling']&&_0x94524f['previousSibling']['is']('element','listItem');){const _0x218dbe=_0x94524f['previousSibling']['getAttribute']('listIndent');if(_0x218dbe==_0x1edd20)_0x5c2b91=_0x94524f['previousSibling'];else{if(_0x218dbe<_0x1edd20)break;}_0x94524f=_0x94524f['previousSibling'];}return _0x5c2b91;}function Ee(_0x8b436c){const _0x231fc0=[];if(_0x8b436c['is']('element','listItem')&&_0x8b436c['getAttribute']('listIndent')>0x0){let _0x562cdc=_0x8b436c['nextSibling'];for(;_0x562cdc&&'listItem'==_0x562cdc['name']&&_0x562cdc['getAttribute']('listIndent')==_0x8b436c['getAttribute']('listIndent');)_0x231fc0['push'](_0x562cdc),_0x562cdc=_0x562cdc['nextSibling'];}return _0x231fc0;}class Q extends _0xd6413c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x545c47=this['editor']['config']['get']('list.properties'),_0x12ad76=this['editor']['plugins']['get']('TrackChangesEditing');_0x545c47['styles']&&_0x12ad76['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x545c47['reversed']&&_0x12ad76['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x545c47['startIndex']&&_0x12ad76['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x12ad76['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x12efb5,_0x29e95b={}){const _0x21387b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x136b67=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x21387b['markMultiRangeBlockFormat'](_0x136b67,{'commandName':'listStyle','commandParams':[{'type':_0x29e95b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x417b51,_0x2d5469={}){const _0x3453b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24b98d=this['_getSuggestionBlocks'](_0x207148=>_0x207148['is']('element','listItem')&&'numbered'===_0x207148['getAttribute']('listType'));if(_0x24b98d['length']<0x1)return;const _0x57cc36=_0x24b98d['map'](_0x3f7afc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f7afc,'before'),this['editor']['model']['createPositionAt'](_0x3f7afc,0x0)));this['editor']['model']['change'](()=>{_0x3453b6['markMultiRangeBlockFormat'](_0x57cc36,{'commandName':'listReversed','commandParams':[{'reversed':_0x2d5469['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xa8ded7,_0x49627d={}){const _0x4e7d42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x460733=this['_getSuggestionBlocks'](_0x59c3b5=>_0x59c3b5['is']('element','listItem')&&'numbered'===_0x59c3b5['getAttribute']('listType'));if(_0x460733['length']<0x1)return;const _0x19656a=_0x460733['map'](_0x591b3c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x591b3c,'before'),this['editor']['model']['createPositionAt'](_0x591b3c,0x0)));this['editor']['model']['change'](()=>{_0x4e7d42['markMultiRangeBlockFormat'](_0x19656a,{'commandName':'listStart','commandParams':[{'startIndex':_0x49627d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1b2e45){if('formatBlock'!=_0x1b2e45['type']&&'formatInline'!=_0x1b2e45['type'])return;const _0x14bfe3=this['editor']['locale'],{data:_0x53288c}=_0x1b2e45;if(!_0x53288c)return;let _0x2014a3,_0x18e105;switch(_0x53288c['commandName']){case'listStyle':_0x2014a3='*Change\x20to:*\x20%0',_0x18e105={'type':'format','content':c(_0x14bfe3,_0x2014a3,c(_0x14bfe3,this['_getTranslationKeyForListStyle'](_0x53288c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2014a3=_0x53288c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18e105={'type':'format','content':c(_0x14bfe3,_0x2014a3)};break;case'listStart':_0x2014a3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18e105={'type':'format','content':c(_0x14bfe3,_0x2014a3,_0x53288c['commandParams'][0x0]['startIndex'])};}return _0x18e105;}['_getSuggestionBlocksForListStyle'](){const _0xdf2231=this['editor']['plugins']['get']('LegacyListUtils');let _0x46c872=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x46c872[0x0]?.['is']('element','listItem')&&_0x46c872['unshift'](..._0xdf2231['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x46c872[_0x46c872['length']-0x1]?.['is']('element','listItem')&&_0x46c872['push'](..._0xdf2231['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x46c872=[...new Set(_0x46c872)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x46c872=_0x46c872['filter'](_0x42c348=>_0x42c348['is']('element','listItem'))),_0x46c872;}['_getSuggestionBlocks'](_0xac3dc0){const _0x41e127=this['editor']['plugins']['get']('LegacyListUtils');let _0xe4f50b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xac3dc0)['map'](_0x502baf=>{const _0x45db5b=this['editor']['model']['createPositionAt'](_0x502baf,0x0);return[..._0x41e127['getSiblingNodes'](_0x45db5b,'backward'),..._0x41e127['getSiblingNodes'](_0x45db5b,'forward')];})['flat']();return _0xe4f50b=[...new Set(_0xe4f50b)],_0xe4f50b;}['_getTranslationKeyForListStyle'](_0x4a6df0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4a6df0)||'default')['toUpperCase']()+'_LIST_'+_0x4a6df0['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xd6413c{['afterInit'](){const _0x1af0a6=this['editor'];if(!_0x1af0a6['plugins']['has']('MediaEmbedEditing'))return;const _0x7885a=_0x1af0a6['plugins']['get']('TrackChangesEditing'),_0x7ccab0=_0x1af0a6['locale'];_0x7885a['enableCommand']('mediaEmbed'),_0x7885a['descriptionFactory']['registerElementLabel']('media',_0x3b1e9d=>c(_0x7ccab0,'ELEMENT_MEDIA',_0x3b1e9d)),_0x1af0a6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3b3e22,{writer:_0x3eb243,options:_0x3f9fc5})=>{if(_0x3f9fc5['showSuggestionHighlights'])return _0x3eb243['createEmptyElement']('div');},'converterPriority':'high'}),_0x1af0a6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x56a618,_0x393755,_0xa323cd)=>{_0xa323cd['options']['showSuggestionHighlights']&&_0x56a618['stop']();},{'priority':'high'});}}class pt extends _0xd6413c{['afterInit'](){const _0x260278=this['editor'];_0x260278['plugins']['has']('MentionEditing')&&_0x260278['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xd6413c{['afterInit'](){const _0x4eb63d=this['editor'];if(!_0x4eb63d['plugins']['has']('MergeFieldsEditing'))return;const _0x2e5df6=_0x4eb63d['plugins']['get']('TrackChangesEditing'),_0x5ed343=_0x4eb63d['locale'];_0x2e5df6['enableCommand']('insertMergeField'),_0x2e5df6['enableCommand']('insertMergeFieldBlock'),_0x2e5df6['enableCommand']('insertMergeFieldImage'),_0x2e5df6['descriptionFactory']['registerElementLabel']('mergeField',_0x481a7f=>c(_0x5ed343,'ELEMENT_MERGE_FIELD',_0x481a7f)),_0x2e5df6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bbc5e=>c(_0x5ed343,'ELEMENT_MERGE_FIELD',_0x2bbc5e)),_0x2e5df6['descriptionFactory']['registerDescriptionCallback'](_0x236e42=>{if('insertion'!=_0x236e42['type']&&'deletion'!=_0x236e42['type'])return;const _0x35f84a=_0x236e42['getContainedElement']();if(null==_0x35f84a)return;const _0x21f132=_0x4eb63d['plugins']['get']('MergeFieldsEditing');let _0x11fad8;switch(_0x21f132['getMergeFieldType'](_0x35f84a)){case null:return;case'image':{const _0x1490e6=_0x21f132['unwrapAffixes'](_0x35f84a['getAttribute']('src'));_0x11fad8=_0x21f132['getLabel'](_0x1490e6)||_0x1490e6;break;}default:{const _0x82c873=_0x35f84a['getAttribute']('id');_0x11fad8=_0x21f132['getLabel'](_0x82c873)||_0x82c873;break;}}return'insertion'==_0x236e42['type']?{'type':'insertion','content':c(_0x5ed343,'*Insert:*\x20%0','\x22'+_0x11fad8+'\x22\x20'+c(_0x5ed343,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5ed343,'*Remove:*\x20%0','\x22'+_0x11fad8+'\x22\x20'+c(_0x5ed343,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xd6413c{['afterInit'](){const _0x5e79aa=this['editor'],_0x46d80b=_0x5e79aa['plugins']['get']('TrackChangesEditing');_0x5e79aa['plugins']['has']('MultiLevelList')&&(_0x46d80b['enableDefaultAttributesIntegration']('multiLevelList'),_0x46d80b['registerBlockAttribute']('listMarkerStyle'),_0x46d80b['descriptionFactory']['registerDescriptionCallback'](_0xe1c932=>this['handleDescriptions'](_0xe1c932)));}['handleDescriptions'](_0x3d3459){const _0x3cc35d=this['editor']['locale'],{data:_0x2c1c50}=_0x3d3459,_0x1d9df1={'type':'format','content':''};if(_0x2c1c50&&'listMarkerStyle'==_0x2c1c50['key']){if(!_0x2c1c50['oldValue'])return{'type':'format','content':c(_0x3cc35d,'*Set\x20format:*\x20%0',c(_0x3cc35d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2c1c50['newValue']+')'};if(!_0x2c1c50['newValue']){let _0x162b7a=_0x3d3459['head'];for(;_0x162b7a;){if(_0x162b7a['data']&&'listType'==_0x162b7a['data']['key']&&_0x162b7a['data']['newValue'])return _0x1d9df1;_0x162b7a=_0x162b7a['next'];}return{'type':'format','content':c(_0x3cc35d,'*Remove\x20format:*\x20%0',c(_0x3cc35d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2c1c50['oldValue']+')'};}}}}class bt extends _0xd6413c{['afterInit'](){const _0xeca97a=this['editor'];if(!_0xeca97a['plugins']['has']('PageBreakEditing'))return;_0xeca97a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1e3292=_0xeca97a['plugins']['get']('TrackChangesEditing'),_0x1fc060=_0xeca97a['locale'];_0x1e3292['descriptionFactory']['registerElementLabel']('pageBreak',_0x2134e3=>c(_0x1fc060,'ELEMENT_PAGE_BREAK',_0x2134e3));}}class yt extends _0xd6413c{['afterInit'](){const _0x1e6642=this['editor'];if(!_0x1e6642['plugins']['has']('Paragraph'))return;const _0x256f02=_0x1e6642['locale'],_0xe21418=_0x1e6642['plugins']['get']('TrackChangesEditing');_0xe21418['descriptionFactory']['registerElementLabel']('paragraph',_0x117b17=>c(_0x256f02,'ELEMENT_PARAGRAPH',_0x117b17)),_0xe21418['enableDefaultAttributesIntegration']('paragraph'),_0xe21418['enableCommand']('insertParagraph'),_0x1e6642['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1e6642),{'priority':'highest'}),_0x1e6642['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x11131b,_0x472030,_0x151137)=>{_0x151137['options']['showSuggestionHighlights']&&nr(_0x1e6642,{'showActiveMarker':!0x1})(_0x11131b,_0x472030,_0x151137);},{'priority':'highest'});const _0x586e30=_0xe21418['descriptionFactory'];_0x586e30['registerDescriptionCallback'](_0x313f00=>{if('insertion'!==_0x313f00['type'])return;const {start:_0x170074,end:_0x40154c}=_0x313f00['getFirstRange']();if(!_0x170074['isTouching'](_0x40154c)||!_0x170074['nodeAfter'])return;const _0x2e3bef=_0x1e6642['model']['schema'],_0x18caf5=_0x170074['nodeAfter'];return _0x2e3bef['isBlock'](_0x18caf5)&&!_0x2e3bef['isLimit'](_0x18caf5)&&_0x2e3bef['checkChild'](_0x18caf5,'$text')?{'type':'insertion','content':c(_0x256f02,'*Insert:*\x20%0',_0x586e30['getItemLabel'](_0x18caf5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a4853=this['editor'],_0x31f660=_0x2a4853['locale'];_0x2a4853['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352dae=>{if('formatBlock'!=_0x352dae['type'])return;const {data:_0x2be4be}=_0x352dae;return _0x2be4be&&'paragraph'==_0x2be4be['commandName']?{'type':'format','content':c(_0x31f660,'*Change\x20to:*\x20%0',c(_0x31f660,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x16a3ee,{showActiveMarker:_0x3f1c14=!0x0}={}){return(_0x2f2015,_0x560d33,_0x14d288)=>{const _0x3be6a7=_0x16a3ee['plugins']['get']('TrackChangesEditing'),_0x12b8f9=_0x560d33['markerRange']['start'],_0x11a138=_0x560d33['markerRange']['end'],_0x11f352=_0x16a3ee['model']['schema'];if(!_0x12b8f9['isTouching'](_0x11a138)||!_0x12b8f9['nodeAfter'])return;const _0x46c6ff=_0x12b8f9['nodeAfter'];if(_0x11f352['isBlock'](_0x46c6ff)&&!_0x11f352['isLimit'](_0x46c6ff)&&_0x11f352['checkChild'](_0x46c6ff,'$text')){if(!_0x14d288['consumable']['consume'](_0x560d33['markerRange'],_0x2f2015['name']))return;const {authorId:_0x429733}=_0x3be6a7['_splitMarkerName'](_0x560d33['markerName']),_0x2832f6=_0x14d288['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x429733}),_0x586986=_0x14d288['mapper']['toViewPosition'](_0x11a138);_0x3f1c14&&_0x3be6a7['activeMarkers']['includes'](_0x560d33['markerName'])&&_0x14d288['writer']['addClass']('ck-suggestion-marker--active',_0x2832f6),_0x14d288['writer']['insert'](_0x586986,_0x2832f6),_0x14d288['mapper']['bindElementToMarker'](_0x2832f6,_0x560d33['markerName']);}};}class jt extends _0xd6413c{['afterInit'](){const _0x543779=this['editor'];_0x543779['commands']['get']('replaceSource')&&_0x543779['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xd6413c{['afterInit'](){const _0x3ecd9c=this['editor'];if(!_0x3ecd9c['plugins']['has']('RemoveFormatEditing'))return;_0x3ecd9c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3835b2=this['editor'];_0x3835b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dbe16=>{if('formatBlock'!=_0x1dbe16['type']&&'formatInline'!=_0x1dbe16['type'])return;const {data:_0x43a587}=_0x1dbe16;return _0x43a587&&'removeFormat'==_0x43a587['commandName']?{'type':'format','content':c(_0x3835b2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xd6413c{['afterInit'](){const _0x576097=this['editor'];if(!_0x576097['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3559fe=_0x576097['plugins']['get']('TrackChangesEditing');_0x3559fe['enableCommand']('goToPreviousRestrictedEditingException'),_0x3559fe['enableCommand']('goToNextRestrictedEditingException');const _0x36826e=_0x576097['plugins']['get']('RestrictedEditingModeEditing');_0x36826e['enableCommand']('trackChanges'),_0x36826e['enableCommand']('acceptSuggestion'),_0x36826e['enableCommand']('discardSuggestion'),_0x36826e['enableCommand']('acceptAllSuggestions'),_0x36826e['enableCommand']('discardAllSuggestions'),_0x36826e['enableCommand']('acceptSelectedSuggestions'),_0x36826e['enableCommand']('discardSelectedSuggestions');}}class It extends _0xd6413c{['afterInit'](){const _0x20bc25=this['editor'];if(!_0x20bc25['plugins']['has']('ShiftEnter'))return;const _0x3f6bf0=_0x20bc25['plugins']['get']('TrackChangesEditing');_0x3f6bf0['enableCommand']('shiftEnter'),_0x20bc25['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x20bc25),{'priority':'high'}),_0x20bc25['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x20bc25),{'priority':'high'}),_0x20bc25['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf37222,_0x41a443,_0x544e0c)=>{_0x544e0c['options']['showSuggestionHighlights']&&je(_0x20bc25,{'showActiveMarker':!0x1})(_0xf37222,_0x41a443,_0x544e0c);}),_0x3f6bf0['descriptionFactory']['registerElementLabel']('softBreak',_0x703140=>c(_0x20bc25['locale'],'ELEMENT_LINE_BREAK',_0x703140));}}function je(_0x435968,{showActiveMarker:_0x5d6243=!0x0}={}){return(_0x2652f4,_0x7feae6,_0x5d2543)=>{const _0x37e3a5=_0x435968['plugins']['get']('TrackChangesEditing');if(!_0x5d2543['consumable']['test'](_0x7feae6['markerRange'],_0x2652f4['name']))return;const _0x495261=_0x435968['model'];for(const _0x447a4f of _0x7feae6['markerRange']['getItems']()){if(!_0x447a4f['is']('element','softBreak'))continue;const _0x2d0f74='deletion'==_0x7feae6['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2eaf0c}=_0x37e3a5['_splitMarkerName'](_0x7feae6['markerName']),_0x2375fb=_0x5d2543['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d0f74,'data-author-id':_0x2eaf0c}),_0x5969d3=_0x5d2543['mapper']['toViewPosition'](_0x495261['createPositionBefore'](_0x447a4f));_0x5d6243&&_0x37e3a5['activeMarkers']['includes'](_0x7feae6['markerName'])&&_0x5d2543['writer']['addClass']('ck-suggestion-marker--active',_0x2375fb),_0x5d2543['writer']['insert'](_0x5969d3,_0x2375fb),_0x5d2543['mapper']['bindElementToMarker'](_0x2375fb,_0x7feae6['markerName']);}};}class _t extends _0xd6413c{['afterInit'](){const _0x34607c=this['editor'],_0x1c5108=_0x34607c['model'],_0x5785f1=_0x34607c['locale'];if(!_0x34607c['plugins']['has']('StandardEditingModeEditing'))return;const _0xee2d32=_0x34607c['plugins']['get']('TrackChangesEditing'),_0x24d180='restrictedEditingException',_0x58d98d=_0x34607c['commands']['get'](_0x24d180);_0xee2d32['enableCommand'](_0x24d180,(_0x160a3d,_0x200a17={})=>{const _0x38d6d1=_0x1c5108['document']['selection'];if(_0x38d6d1['isCollapsed'])return void _0x160a3d(_0x200a17);const _0x10957b=void 0x0!==_0x200a17['forceValue']?_0x200a17['forceValue']:!_0x58d98d['value'];_0x1c5108['change'](()=>{const _0x20eb98=Array['from'](_0x38d6d1['getRanges']());for(const _0x4736e0 of _0x20eb98){const _0x5ee261=_0x10957b?[_0x4736e0]:io(_0x24d180,_0x4736e0,_0x1c5108);for(const _0x359fa2 of _0x5ee261)_0xee2d32['markInlineFormat'](_0x359fa2,{'commandName':_0x24d180,'commandParams':[{'forceValue':_0x10957b}]});}});}),_0xee2d32['descriptionFactory']['registerDescriptionCallback'](_0x341cba=>{if('formatBlock'!=_0x341cba['type']&&'formatInline'!=_0x341cba['type'])return;const {data:_0x482d18}=_0x341cba;return _0x482d18&&_0x482d18['commandName']==_0x24d180?_0x482d18['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5785f1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x5785f1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0xd6413c{['afterInit'](){const _0x8901d9=this['editor'];if(!_0x8901d9['plugins']['has']('Style')||!_0x8901d9['plugins']['has']('DataSchema'))return;const _0x361f4a=_0x8901d9['plugins']['get']('TrackChangesEditing'),_0x5e74ce=_0x8901d9['locale'],_0x224fc1=_0x8901d9['config']['get']('style')||{},_0x237245=_0x8901d9['plugins']['get']('GeneralHtmlSupport'),_0xd51d54=_0x8901d9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x8901d9['plugins']['get']('DataSchema'),_0x224fc1['definitions']);_0x361f4a['enableDefaultAttributesIntegration']('style');const _0x3f322f=new Set();for(const _0x2797e7 of _0xd51d54['block']){const _0x4c820e=_0x237245['getGhsAttributeNameForElement'](_0x2797e7['element']);_0x3f322f['add'](_0x4c820e);}const _0x2bf264=new Set();for(const _0x573f91 of _0xd51d54['inline']){const _0x42340a=_0x237245['getGhsAttributeNameForElement'](_0x573f91['element']);_0x2bf264['add'](_0x42340a);for(const _0x1a4d68 of _0x573f91['ghsAttributes'])_0x2bf264['add'](_0x1a4d68);}for(const _0x427745 of _0x3f322f)_0x361f4a['registerBlockAttribute'](_0x427745),_0x361f4a['descriptionFactory']['registerAttributeLabel'](_0x427745,c(_0x5e74ce,'FORMAT_STYLE'));for(const _0x29de24 of _0x2bf264)_0x361f4a['registerInlineAttribute'](_0x29de24),_0x361f4a['descriptionFactory']['registerAttributeLabel'](_0x29de24,c(_0x5e74ce,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4aecb5=this['editor'],_0x492d65=_0x4aecb5['locale'];_0x4aecb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x536bc5=>{if('formatBlock'!=_0x536bc5['type']&&'formatInline'!=_0x536bc5['type'])return;const {data:_0xa80a6}=_0x536bc5;return _0xa80a6&&'style'===_0xa80a6['commandName']?_0xa80a6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x492d65,'*Set\x20format:*\x20%0',_0xa80a6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x492d65,'*Remove\x20format:*\x20%0',_0xa80a6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xd6413c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x22ae64){super(_0x22ae64),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3d2e25=this['editor'],_0x9b9f42=_0x3d2e25['model']['document']['selection'];if(!_0x3d2e25['plugins']['has']('TableEditing'))return;const _0x5d9242=_0x3d2e25['locale'],_0x4cc0ee=_0x3d2e25['plugins']['get']('TrackChangesEditing'),_0xe8279a=_0x3d2e25['plugins']['get']('TableUtils');_0x4cc0ee['descriptionFactory']['registerElementLabel']('table',_0x100ef0=>c(_0x5d9242,'ELEMENT_TABLE',_0x100ef0)),this['_setupColumnsRowsFixing'](),_0x4cc0ee['enableCommand']('insertTable'),_0x4cc0ee['enableCommand']('selectTableRow'),_0x4cc0ee['enableCommand']('selectTableColumn');for(const _0x4b8d10 of['insertTableRowAbove','insertTableRowBelow']){const _0xbf6d71=_0x3d2e25['commands']['get'](_0x4b8d10);_0x4cc0ee['enableCommand'](_0x4b8d10,_0x2e2de4=>{_0x3d2e25['model']['change'](_0x46b768=>{_0x2e2de4();const _0x1dd306='above'===_0xbf6d71['order'],_0x390c81=_0xe8279a['getSelectionAffectedTableCells'](_0x9b9f42),_0x865f84=_0xe8279a['getRowIndexes'](_0x390c81),_0x2428f9=_0x1dd306?_0x865f84['first']-0x1:_0x865f84['last']+0x1,_0x5722bc=_0x390c81[0x0]['findAncestor']('table'),_0x1f35a8=_0xe8279a['createTableWalker'](_0x5722bc,{'startRow':_0x2428f9,'endRow':_0x2428f9}),_0x3784eb=Array['from'](_0x1f35a8)['map'](_0x13778f=>_0x46b768['createRangeOn'](_0x13778f['cell']));_0x4cc0ee['markMultiRangeInsertion'](_0x3784eb,'tableRow');});});}for(const _0x3f17be of['insertTableColumnLeft','insertTableColumnRight']){const _0x53b6f0=_0x3d2e25['commands']['get'](_0x3f17be);_0x4cc0ee['enableCommand'](_0x3f17be,_0x38bf50=>{_0x3d2e25['model']['change'](_0x709174=>{_0x38bf50();const _0x182b8d='left'===_0x53b6f0['order'],_0x3a3c24=_0xe8279a['getSelectionAffectedTableCells'](_0x9b9f42),_0x53ec7d=_0xe8279a['getColumnIndexes'](_0x3a3c24),_0x19c838=_0x182b8d?_0x53ec7d['first']-0x1:_0x53ec7d['last']+0x1,_0x1d974d=_0x3a3c24[0x0]['findAncestor']('table'),_0x4e926c=_0xe8279a['createTableWalker'](_0x1d974d,{'startRow':0x0,'column':_0x19c838,'includeAllSlots':!0x1}),_0x50fd41=Array['from'](_0x4e926c)['map'](_0x4d121f=>_0x709174['createRangeOn'](_0x4d121f['cell']));_0x4cc0ee['markMultiRangeInsertion'](_0x50fd41,'tableColumn');});});}for(const _0x47e892 of['removeTableRow','removeTableColumn']){const _0x20c453=_0x47e892['substr'](0xb),_0x2a95a7=_0x20c453['toLowerCase'](),_0x5126f2=_0x2a95a7['substr'](0x0,0x3)+'span',_0x21c30c='table'+_0x20c453,_0x3a813f='min'+_0x20c453,_0x34a16c='max'+_0x20c453;_0x4cc0ee['enableCommand'](_0x47e892,()=>{_0x3d2e25['model']['change'](_0x5c493f=>{const _0x407e8a=_0xe8279a['getSelectionAffectedTableCells'](_0x9b9f42),_0x1902cb=_0x407e8a[0x0]['findAncestor']('table');let _0x520a41;if('removeTableRow'==_0x47e892){const _0x558ff9=_0xe8279a['getRowIndexes'](_0x407e8a);_0x520a41={'startRow':_0x558ff9['first'],'endRow':_0x558ff9['last'],'includeAllSlots':!0x0};}else{const _0x22b448=_0xe8279a['getColumnIndexes'](_0x407e8a);_0x520a41={'startColumn':_0x22b448['first'],'endColumn':_0x22b448['last'],'includeAllSlots':!0x0};}const _0x3b2d7d=_0xe8279a['createTableWalker'](_0x1902cb,_0x520a41),_0x12c5c0=Array['from'](_0x3b2d7d)['map'](({cell:_0xfa9a22})=>_0xfa9a22),_0x5af8f6=Ne(_0x12c5c0['filter'](_0x235e29=>_0x235e29['hasAttribute'](_0x5126f2))),_0x27220f=Ne(_0x12c5c0['filter'](_0x18ad82=>!_0x18ad82['hasAttribute'](_0x5126f2)))['map'](_0x234686=>_0x5c493f['createRangeOn'](_0x234686)),_0x363f15=_0x4cc0ee['markMultiRangeDeletion'](_0x27220f,_0x21c30c);if(_0x363f15&&('tableRow'==_0x363f15['subType']||'tableColumn'==_0x363f15['subType'])){const _0x3fd29e=this['_getSuggestionCoords'](_0x363f15);for(const _0x5bab7b of _0x5af8f6){const _0x13a9fb=_0x5c493f['createRangeOn'](_0x5bab7b),_0x4e9321=_0xe8279a['getCellLocation'](_0x5bab7b),_0x59be2e=_0x5bab7b['getAttribute'](_0x5126f2)-0x1,_0x311bfc=_0x3fd29e[_0x3a813f],_0x3f9bd1=_0x3fd29e[_0x34a16c];_0x311bfc<=_0x4e9321[_0x2a95a7]&&_0x4e9321[_0x2a95a7]+_0x59be2e<=_0x3f9bd1&&_0x363f15['addRange'](_0x13a9fb);}}});});}function _0x277881(_0x2f0ed4){const _0x2db29d=Array['from'](_0x9b9f42['getRanges']())['map'](_0x3b4e56=>_0x25f92b['fromRange'](_0x3b4e56));_0x3d2e25['model']['change'](_0x1b08a8=>{const _0x5eda23=_0x1b08a8['batch'];_0x2f0ed4=_0x2f0ed4['filter'](_0x53659c=>'$graveyard'!=_0x53659c['root']['rootName']),_0x1b08a8['setSelection'](_0x2f0ed4),_0x3d2e25['commands']['get']('removeTableRow')['refresh'](),_0x3d2e25['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3d2e25['model']['enqueueChange'](()=>{_0x3d2e25['model']['enqueueChange'](_0x5eda23,_0x462fba=>{const _0x459a78=_0x2db29d['filter'](_0x30cc81=>'$graveyard'!=_0x30cc81['root']['rootName']);_0x459a78['length']>0x0&&_0x462fba['setSelection'](_0x459a78);for(const _0x41856a of _0x2db29d)_0x41856a['detach']();});});});}function _0x3e81e6(_0x5e6e06){_0x3d2e25['model']['change'](_0x2ed978=>{const _0x31ecf8=Array['from'](_0x9b9f42['getRanges']())['map'](_0x32850a=>_0x25f92b['fromRange'](_0x32850a)),_0x19008f=[];for(const _0x46229e of _0x5e6e06)for(const _0x2bf9b1 of _0x46229e['getItems']({'shallow':!0x0}))_0x19008f['push'](_0x2bf9b1);for(const _0x537941 of _0x19008f)'$graveyard'!=_0x537941['root']['rootName']&&(_0x2ed978['setSelection'](_0x2ed978['createPositionAt'](_0x537941,0x0)),_0x3d2e25['commands']['get']('removeTableColumn')['refresh'](),_0x3d2e25['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xf8fbda=_0x31ecf8['filter'](_0x32d8fc=>'$graveyard'!=_0x32d8fc['root']['rootName']);_0xf8fbda['length']>0x0&&_0x2ed978['setSelection'](_0xf8fbda);for(const _0x402545 of _0x31ecf8)_0x402545['detach']();});}function _0x450358(_0x5ed0a1,_0xe2f593){return _0xe2f593['every'](_0x5c3492=>_0x5ed0a1['some'](_0x54c3a3=>_0x54c3a3['end']['isEqual'](_0x5c3492['start'])||_0x5c3492['end']['isEqual'](_0x54c3a3['start'])));}function _0x95cb02(_0x4c279e,_0x4d42db){return!_0x4c279e['some'](_0x3c130f=>_0x4d42db['some'](_0x40e7fe=>_0x3c130f['isIntersecting'](_0x40e7fe)))&&_0x4c279e['some'](_0x676f83=>_0x4d42db['some'](_0x8c27d7=>_0x676f83['end']['isTouching'](_0x8c27d7['start'])));}_0x3d2e25['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a72de,_0x27c025,_0x52d631)=>{if(!_0x52d631['options']['showSuggestionHighlights'])return;const _0x1d0166=_0x27c025['item'];if(!_0x1d0166)return;const _0x5c2964=_0x52d631['mapper']['toViewElement'](_0x1d0166);function _0x284fdb(_0xf720c6){return Array['isArray'](_0xf720c6)?_0xf720c6:[_0xf720c6];}_0x5c2964&&'tableCell'===_0x1d0166['name']&&_0x17b44a(_0x5c2964,_0x52d631['writer'],(_0x33ffa5,_0x546d8c,_0x483585)=>_0x483585['addClass'](_0x284fdb(_0x546d8c['classes']),_0x33ffa5),(_0x3288dd,_0x2c9d0d,_0x26c77b)=>_0x26c77b['removeClass'](_0x284fdb(_0x2c9d0d['classes']),_0x3288dd));},{'priority':'highest'}),_0x4cc0ee['descriptionFactory']['registerDescriptionCallback'](_0x45724=>{if('insertion'!=_0x45724['type']&&'deletion'!=_0x45724['type'])return;const _0x13e56f=_0x45724['getContainedElement']();if(null!=_0x13e56f&&_0x13e56f['is']('element','table')){if('insertion'==_0x45724['type']){const _0x42d82f=_0x45724['getItems']()['filter'](_0x5ee712=>_0x5ee712['is']('$textProxy'))['map'](_0x4c2494=>_0x4c2494['data']);if(_0x42d82f['length'])return{'type':'insertion','content':c(_0x5d9242,'*Insert:*\x20%0',c(_0x5d9242,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42d82f['join']('\x20')+'\x22'))};}if('deletion'==_0x45724['type']){const _0x2f3b7d=_0x45724['getItems']()['filter'](_0x1f8651=>_0x1f8651['is']('$textProxy'))['map'](_0x1639f8=>_0x1639f8['data']);if(_0x2f3b7d['length'])return{'type':'deletion','content':c(_0x5d9242,'*Remove:*\x20%0',c(_0x5d9242,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2f3b7d['join']('\x20')+'\x22'))};}}}),_0x4cc0ee['descriptionFactory']['registerDescriptionCallback'](_0x2c4395=>{if('tableRow'==_0x2c4395['subType']){const _0x1a23a0=_0x2c4395['getItems']()['filter'](_0x378dfc=>_0x378dfc['is']('$textProxy'))['map'](_0x1d4b2a=>_0x1d4b2a['data']),_0x3820c6=this['_getSuggestionCoords'](_0x2c4395),_0x392934=_0x3820c6['maxRow']-_0x3820c6['minRow']+0x1;if('insertion'==_0x2c4395['type'])return _0x1a23a0['length']?{'type':'insertion','content':c(_0x5d9242,'*Insert:*\x20%0',c(_0x5d9242,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x392934,'\x22'+_0x1a23a0['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5d9242,'*Insert:*\x20%0',c(_0x5d9242,'ELEMENT_TABLE_ROW',_0x392934))};if('deletion'==_0x2c4395['type'])return _0x1a23a0['length']?{'type':'deletion','content':c(_0x5d9242,'*Remove:*\x20%0',c(_0x5d9242,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x392934,'\x22'+_0x1a23a0['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5d9242,'*Remove:*\x20%0',c(_0x5d9242,'ELEMENT_TABLE_ROW',_0x392934))};}if('tableColumn'==_0x2c4395['subType']){const _0x3b5f2a=_0x2c4395['getItems']()['filter'](_0x5baed0=>_0x5baed0['is']('$textProxy'))['map'](_0x389869=>_0x389869['data']),_0x3df868=this['_getSuggestionCoords'](_0x2c4395),_0x5cae0d=_0x3df868['maxColumn']-_0x3df868['minColumn']+0x1;if('insertion'==_0x2c4395['type'])return _0x3b5f2a['length']?{'type':'insertion','content':c(_0x5d9242,'*Insert:*\x20%0',c(_0x5d9242,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5cae0d,'\x22'+_0x3b5f2a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5d9242,'*Insert:*\x20%0',c(_0x5d9242,'ELEMENT_TABLE_COLUMN',_0x5cae0d))};if('deletion'==_0x2c4395['type'])return _0x3b5f2a['length']?{'type':'deletion','content':c(_0x5d9242,'*Remove:*\x20%0',c(_0x5d9242,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5cae0d,'\x22'+_0x3b5f2a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5d9242,'*Remove:*\x20%0',c(_0x5d9242,'ELEMENT_TABLE_COLUMN',_0x5cae0d))};}}),_0x4cc0ee['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x277881),_0x4cc0ee['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x277881),_0x4cc0ee['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3e81e6),_0x4cc0ee['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3e81e6),_0x4cc0ee['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x450358),_0x4cc0ee['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x450358),_0x4cc0ee['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x95cb02),_0x4cc0ee['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x95cb02);}['_acceptFormatSuggestionCallbackFactory'](){const _0x407cce=this['editor'],_0x143dc6=_0x407cce['model']['document']['selection'];return(_0x7cbae8,_0x1b2852)=>{_0x407cce['model']['change'](_0x323314=>{const {commandName:_0x48f570,commandParams:_0xc2eb93}=_0x1b2852;let _0x11749d=_0x7cbae8[0x0]['end']['nodeBefore'];_0xc2eb93&&_0xc2eb93[0x0]&&!0x1===_0xc2eb93[0x0]['forceValue']&&(_0x11749d=_0x7cbae8[0x0]['start']['nodeAfter']);const _0x7c2977=_0x323314['createRangeIn'](_0x11749d);if('$graveyard'==_0x7c2977['root']['rootName'])return;const _0x274a3f=Array['from'](_0x143dc6['getRanges']())['map'](_0x3f09e4=>_0x25f92b['fromRange'](_0x3f09e4));_0x323314['setSelection'](_0x7c2977),_0x407cce['commands']['get'](_0x48f570)['refresh'](),_0xc2eb93['push']({'forceDefaultExecution':!0x0}),_0x407cce['execute'](_0x48f570,..._0xc2eb93);const _0x4358c3=_0x274a3f['filter'](_0x2fbdb0=>'$graveyard'!=_0x2fbdb0['root']['rootName']);_0x4358c3['length']>0x0&&_0x323314['setSelection'](_0x4358c3);for(const _0x671088 of _0x274a3f)_0x671088['detach']();});};}['_getCoordsForCells'](_0x1098c5){const _0x2dcc44=this['editor']['plugins']['get']('TableUtils');let _0x383b9a=Number['MAX_SAFE_INTEGER'],_0x2e4306=Number['MIN_SAFE_INTEGER'],_0xf4b464=Number['MAX_SAFE_INTEGER'],_0x5ad7fd=Number['MIN_SAFE_INTEGER'];for(const _0x40f8f1 of _0x1098c5){if('$graveyard'==_0x40f8f1['root']['rootName'])continue;const {row:_0x45da86,column:_0x24825d}=_0x2dcc44['getCellLocation'](_0x40f8f1),_0x1d46c6=_0x40f8f1['hasAttribute']('rowspan')?_0x40f8f1['getAttribute']('rowspan')-0x1:0x0,_0x2e37c5=_0x40f8f1['hasAttribute']('colspan')?_0x40f8f1['getAttribute']('colspan')-0x1:0x0;_0x383b9a=_0x45da86<_0x383b9a?_0x45da86:_0x383b9a,_0x2e4306=_0x45da86+_0x1d46c6>_0x2e4306?_0x45da86+_0x1d46c6:_0x2e4306,_0xf4b464=_0x24825d<_0xf4b464?_0x24825d:_0xf4b464,_0x5ad7fd=_0x24825d+_0x2e37c5>_0x5ad7fd?_0x24825d+_0x2e37c5:_0x5ad7fd;}return{'minRow':_0x383b9a,'maxRow':_0x2e4306,'minColumn':_0xf4b464,'maxColumn':_0x5ad7fd};}['_setupColumnsRowsFixing'](){const _0x5d52d4=this['editor'],_0x4c9a07=_0x5d52d4['plugins']['get']('TrackChangesEditing'),_0xc9764c=_0x5d52d4['plugins']['get']('TableUtils');_0x5d52d4['model']['document']['on']('change:data',()=>{const _0x19c1a3=Array['from'](_0x5d52d4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7050c9,data:_0x5b3814}of _0x19c1a3){const {group:_0x29c755,id:_0x133634,subType:_0x5bfb7a}=_0x4c9a07['_splitMarkerName'](_0x7050c9);if('suggestion'!=_0x29c755)continue;if(null!=_0x5b3814['oldRange'])continue;const _0x5d3160=_0x4c9a07['getSuggestion'](_0x133634);this['_tablePostFixingSubtypes']['includes'](_0x5bfb7a)&&this['_tableSuggestions']['add'](_0x5d3160);}},{'priority':'low'});const _0x366d45=(_0x402418,_0x47bef3)=>{let _0x52b1fa=!0x1;const _0xa48a75=_0x47bef3['createRangeOn'](_0x402418),_0x2c2454=_0x402418['findAncestor']('table'),_0x55c6d2=_0xc9764c['getCellLocation'](_0x402418);for(const _0x413567 of this['_tableSuggestions']){const _0x10c529=_0x413567['subType'],_0x3f9e83=_0x10c529['startsWith']('tablePaste'),_0x205fe3=_0x10c529['substr'](_0x3f9e83?0xa:0x5),_0x330aa3=_0x205fe3['toLowerCase'](),_0x433e8c=_0x330aa3['substr'](0x0,0x3)+'span',_0x73c25b='min'+_0x205fe3,_0xeb12af='max'+_0x205fe3;if(!_0x413567['isInContent'])continue;if(_0x2c2454!=_0x413567['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x413567['isIntersectingWithRange'](_0xa48a75))continue;const _0x4e1c01=_0x402418['hasAttribute'](_0x433e8c)?_0x402418['getAttribute'](_0x433e8c)-0x1:0x0,_0x503f48=this['_getSuggestionCoords'](_0x413567),_0x29f8b6=_0x503f48[_0x73c25b],_0x414bc2=_0x503f48[_0xeb12af];_0x29f8b6<=_0x55c6d2[_0x330aa3]&&_0x55c6d2[_0x330aa3]+_0x4e1c01<=_0x414bc2&&(_0x413567['addRange'](_0xa48a75),_0x52b1fa=!0x0);}return _0x52b1fa;};_0x5d52d4['model']['document']['registerPostFixer'](_0x247b44=>{let _0xc36795=!0x1;for(const _0x4d6843 of _0x5d52d4['model']['document']['differ']['getChanges']())if('insert'==_0x4d6843['type']){if('tableRow'==_0x4d6843['name']){for(const _0x1c1cf6 of _0x4d6843['position']['nodeAfter']['getChildren']())_0xc36795=_0xc36795||_0x366d45(_0x1c1cf6,_0x247b44);}else'tableCell'==_0x4d6843['name']&&(_0xc36795=_0xc36795||_0x366d45(_0x4d6843['position']['nodeAfter'],_0x247b44));}return _0xc36795;});}['_getSuggestionCoords'](_0x4a1e02){return this['_getCoordsForCells'](_0x4a1e02['getRanges']()['map'](_0x55c80b=>_0x55c80b['start']['nodeAfter']));}}function Ne(_0x3a74b7){return Array['from'](new Set(_0x3a74b7)['values']());}class Nt extends _0xd6413c{static get['requires'](){return[Ct];}['afterInit'](){const _0x13e58a=this['editor'],_0x2a3627=_0x13e58a['model']['document']['selection'],_0xd63aa1=_0x13e58a['locale'];if(!_0x13e58a['plugins']['has']('TableEditing'))return;const _0x4dce48=_0x13e58a['plugins']['get']('TrackChangesEditing'),_0x29144d=_0x13e58a['plugins']['get']('TableUtils'),_0x3d6eeb=_0x13e58a['plugins']['get'](Ct);_0x3d6eeb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4dce48['enableCommand']('mergeTableCells',()=>{const _0x38709d=_0x29144d['getSelectionAffectedTableCells'](_0x13e58a['model']['document']['selection']);_0x13e58a['model']['change'](()=>{_0x4dce48['markMultiRangeBlockFormat'](_0x38709d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13e58a['commands']['get']('mergeTableCells')['on']('execute',(_0x1a65f6,_0x463824)=>{_0x13e58a['commands']['get']('trackChanges')['value']&&(_0x463824['length']>0x0&&_0x463824[_0x463824['length']-0x1]&&_0x463824[_0x463824['length']-0x1]['forceDefaultExecution']||_0x4dce48['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a65f6['stop']());},{'priority':'highest'});for(const _0x1eb529 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x141aad=_0x13e58a['commands']['get'](_0x1eb529);_0x4dce48['enableCommand'](_0x1eb529,()=>{const _0x3606e4=_0x13e58a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53527e=>_0x53527e['is']('element','tableCell')),_0x477142=_0x141aad['value'];_0x13e58a['model']['change'](()=>{_0x4dce48['markMultiRangeBlockFormat']([_0x3606e4,_0x477142],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x54e26a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x158d11=_0x13e58a['commands']['get'](_0x54e26a);_0x4dce48['enableCommand'](_0x54e26a,()=>{const _0x19f768=_0x29144d['getSelectionAffectedTableCells'](_0x13e58a['model']['document']['selection'])[0x0],_0x13b5b8=_0x19f768['findAncestor']('table'),{column:_0x29a1fa,row:_0x423861}=_0x29144d['getCellLocation'](_0x19f768);let _0x39e3b5=[];if('horizontally'==_0x158d11['direction']){const _0x3cc42f=_0x29144d['createTableWalker'](_0x13b5b8,{'startRow':_0x423861,'endRow':_0x423861,'includeAllSlots':!0x0});_0x39e3b5=Array['from'](_0x3cc42f)['map'](_0x183c13=>_0x183c13['cell']);}else{const _0x5768a8=_0x29144d['createTableWalker'](_0x13b5b8,{'column':_0x29a1fa,'includeAllSlots':!0x0});_0x39e3b5=Array['from'](_0x5768a8)['map'](_0x4c3ddf=>_0x4c3ddf['cell']);}_0x13e58a['model']['change'](_0x441694=>{_0x4dce48['markBlockFormat'](_0x441694['createRangeOn'](_0x19f768),{'commandName':_0x54e26a,'commandParams':[]},_0x39e3b5,_0x54e26a);});});}_0x4dce48['descriptionFactory']['registerDescriptionCallback'](_0x4e5633=>{if('formatBlock'!=_0x4e5633['type']&&'formatInline'!=_0x4e5633['type'])return;const {data:_0x5350ee}=_0x4e5633;return _0x5350ee&&'mergeTableCells'==_0x5350ee['commandName']?{'type':'format','content':c(_0xd63aa1,'*Merge\x20cells*')}:void 0x0;}),_0x4dce48['descriptionFactory']['registerDescriptionCallback'](_0xbf5df=>{if('formatBlock'!=_0xbf5df['type']&&'formatInline'!=_0xbf5df['type'])return;const {data:_0x5de88e}=_0xbf5df;return _0x5de88e?'splitTableCellVertically'==_0x5de88e['commandName']?{'type':'format','content':c(_0xd63aa1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5de88e['commandName']?{'type':'format','content':c(_0xd63aa1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4711dd=_0x3d6eeb['_acceptFormatSuggestionCallbackFactory']();for(const _0x23ea29 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4dce48['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23ea29,'accept',_0x4711dd);for(const _0x33a685 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4dce48['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x33a685,'accept',_0x4711dd);_0x4dce48['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x30ac91=>{_0x13e58a['model']['change'](_0x588b6d=>{const _0x520778=Array['from'](_0x2a3627['getRanges']())['map'](_0x14f2a8=>_0x25f92b['fromRange'](_0x14f2a8));_0x588b6d['setSelection'](_0x30ac91),_0x13e58a['commands']['get']('mergeTableCells')['refresh'](),_0x13e58a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3ecb92=_0x520778['filter'](_0x3ef6a2=>'$graveyard'!=_0x3ef6a2['root']['rootName']);_0x3ecb92['length']>0x0&&_0x588b6d['setSelection'](_0x3ecb92);for(const _0x55007e of _0x520778)_0x55007e['detach']();});});for(const _0x1543a4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x57fe78=_0x13e58a['commands']['get'](_0x1543a4);_0x57fe78['on']('set:isEnabled',(_0x45ed7f,_0x461700,_0x160763)=>{if(_0x160763){const _0x35172d=_0x13e58a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x46b1cb=>_0x46b1cb['is']('element','tableCell'));this['_areMergableCells'](_0x57fe78['value'],_0x35172d)||(_0x45ed7f['return']=!0x1,_0x45ed7f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x59fe3d=this['editor']['commands']['get']('mergeTableCells'),_0x49b8b3=this['editor']['plugins']['get']('TableUtils');if(!_0x59fe3d['isEnabled'])return!0x1;const _0xa91f5c=_0x49b8b3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x332aca of _0xa91f5c)for(const _0x2d7754 of _0xa91f5c)if(_0x332aca!=_0x2d7754&&!this['_areMergableCells'](_0x332aca,_0x2d7754))return!0x1;return!0x0;}['_areMergableCells'](_0x3e34b1,_0x20449f){const _0x56084f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21900b=this['editor']['model']['createRangeOn'](_0x3e34b1),_0x214524=this['editor']['model']['createRangeOn'](_0x20449f),_0x53c6ce=new Set(),_0x514ad7=new Set();for(const _0x53a0d7 of _0x56084f['getSuggestions']())if(('insertion'==_0x53a0d7['type']||'deletion'==_0x53a0d7['type']||'mergeTableCells'==_0x53a0d7['subType'])&&_0x53a0d7['isInContent']){for(const _0x3b2b54 of _0x53a0d7['getRanges']())_0x3b2b54['containsRange'](_0x21900b,!0x0)&&_0x53c6ce['add'](_0x53a0d7['type']+':'+_0x53a0d7['author']['id']),_0x3b2b54['containsRange'](_0x214524,!0x0)&&_0x514ad7['add'](_0x53a0d7['type']+':'+_0x53a0d7['author']['id']);}if(_0x53c6ce['size']!=_0x514ad7['size'])return!0x1;for(const _0x3577b0 of _0x53c6ce)if(!_0x514ad7['has'](_0x3577b0))return!0x1;return!0x0;}}class Dt extends _0xd6413c{static get['requires'](){return[Ct];}['afterInit'](){const _0x111432=this['editor'];if(!_0x111432['plugins']['has']('TableEditing'))return;const _0x53a163=_0x111432['locale'],_0x5db20f=_0x111432['plugins']['get']('TrackChangesEditing');_0x5db20f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5db20f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5db20f['registerBlockAttribute']('headingRows'),_0x5db20f['registerBlockAttribute']('headingColumns'),_0x5db20f['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x53a163,'FORMAT_HEADER_ROW')),_0x5db20f['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x53a163,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ea526=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43d362=this['editor']['plugins']['get']('TableUtils'),_0x526233=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x4efdb7({showActiveMarker:_0x2c77ce=!0x0,setDataAttribute:_0x12dfc3=!0x0}={}){return(_0x1b80d9,_0x2a1ccc,_0x57c5eb)=>{const {type:_0x240406,id:_0x440f7c}=_0x3ea526['_splitMarkerName'](_0x2a1ccc['markerName']),_0x4045a0=_0x3ea526['getSuggestion'](_0x440f7c),_0x3dfd85=_0x4045a0['data'];if('formatBlock'!=_0x4045a0['type']||!_0x3dfd85||'setTableColumnHeader'!=_0x3dfd85['commandName'])return;if(_0x2a1ccc['item'])return void _0x1b80d9['stop']();if(!_0x57c5eb['consumable']['consume'](_0x2a1ccc['markerRange'],_0x1b80d9['name']))return;const _0x3f7a14=_0x2a1ccc['markerRange']['start']['nodeAfter'],_0x5e9847=_0x2a1ccc['markerRange']['end']['nodeBefore'],_0x37ef6b=_0x3f7a14['parent']['parent'],{column:_0x3d0ea6}=_0x43d362['getCellLocation'](_0x3f7a14),{column:_0x23edf0}=_0x43d362['getCellLocation'](_0x5e9847);for(let _0x3350b9=_0x3d0ea6;_0x3350b9<=_0x23edf0;_0x3350b9++){const _0x5ac759=_0x43d362['createTableWalker'](_0x37ef6b,{'column':_0x3350b9,'includeAllSlots':!0x1});for(const _0x2507cf of _0x5ac759){const _0x5446b7=_0x2507cf['cell'],_0x5eab86=_0x57c5eb['mapper']['toViewElement'](_0x5446b7);_0x57c5eb['writer']['addClass']('ck-suggestion-marker-'+_0x240406,_0x5eab86),_0x12dfc3&&_0x57c5eb['writer']['setAttribute']('data-suggestion',_0x440f7c,_0x5eab86),_0x57c5eb['mapper']['bindElementToMarker'](_0x5eab86,_0x2a1ccc['markerName']),_0x2c77ce&&(_0x3ea526['activeMarkers']['includes'](_0x2a1ccc['markerName'])?_0x57c5eb['writer']['addClass']('ck-suggestion-marker--active',_0x5eab86):_0x57c5eb['writer']['removeClass']('ck-suggestion-marker--active',_0x5eab86));}}};}_0x3ea526['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x526233),_0x3ea526['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x526233),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4efdb7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x171bea,_0x5b6351,_0x2737fc)=>{_0x2737fc['options']['showSuggestionHighlights']&&_0x4efdb7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x171bea,_0x5b6351,_0x2737fc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5035da,_0x5c5663,_0x5a11e0)=>{const {type:_0x2744be,id:_0x39b34a}=_0x3ea526['_splitMarkerName'](_0x5c5663['markerName']),_0x352257=_0x3ea526['getSuggestion'](_0x39b34a),_0x4a3d82=_0x352257['data'];if('formatBlock'!=_0x352257['type']||!_0x4a3d82||'setTableColumnHeader'!=_0x4a3d82['commandName'])return;const _0x533029=_0x5a11e0['mapper']['markerNameToElements'](_0x5c5663['markerName']);if(_0x533029){for(const _0x2b967a of _0x533029)_0x5a11e0['writer']['removeClass']('ck-suggestion-marker-'+_0x2744be,_0x2b967a),_0x5a11e0['writer']['removeClass']('ck-suggestion-marker--active',_0x2b967a),_0x5a11e0['writer']['removeAttribute']('data-suggestion',_0x2b967a),_0x5a11e0['mapper']['unbindElementFromMarkerName'](_0x2b967a,_0x5c5663['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a63f4=this['editor'],_0x5a3fba=_0x4a63f4['locale'];function _0x2872bb(_0xca134){return{'type':'format','content':c(_0x5a3fba,'*Format:*\x20%0',_0xca134)};}_0x4a63f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38245f=>{if('formatBlock'!=_0x38245f['type'])return;const {data:_0x107095}=_0x38245f;if(_0x107095){if('setTableRowHeader'==_0x107095['commandName']){const _0x2f1569=_0x107095['commandParams'][0x0]['forceValue'];return _0x2872bb(c(_0x5a3fba,_0x2f1569?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x107095['commandName']){const _0x275730=_0x107095['commandParams'][0x0]['forceValue'];return _0x2872bb(c(_0x5a3fba,_0x275730?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0xd6413c{['afterInit'](){const _0x2d6f4c=this['editor'],_0x972c89=_0x2d6f4c['locale'],_0x43b90e=_0x2d6f4c['plugins']['get']('TrackChangesEditing');function _0x39bc08(_0x53064c){return{'type':'format','content':''+c(_0x972c89,'*Set\x20table\x20type:*\x20%0',_0x53064c)};}_0x2d6f4c['plugins']['has']('TableLayout')&&(_0x43b90e['enableCommand']('insertTableLayout'),_0x43b90e['enableDefaultAttributesIntegration']('tableType'),_0x43b90e['registerBlockAttribute']('tableType'),_0x43b90e['descriptionFactory']['registerElementLabel'](_0x3bb439=>_0x3bb439['is']('element','table')&&'layout'===_0x3bb439['getAttribute']('tableType'),_0x42db92=>c(_0x972c89,'ELEMENT_LAYOUT_TABLE',_0x42db92)),_0x43b90e['descriptionFactory']['registerDescriptionCallback'](_0x4639b5=>{const {data:_0x1a8643}=_0x4639b5;if(_0x1a8643&&'tableType'==_0x1a8643['key'])switch(_0x1a8643['newValue']){case'layout':return _0x39bc08(c(_0x972c89,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x39bc08(c(_0x972c89,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x49bb9c=>[_0x49bb9c,null]));class $t extends _0xd6413c{static get['requires'](){return[Ct];}['afterInit'](){const _0x1b8844=this['editor'];if(!_0x1b8844['plugins']['has']('TableClipboard'))return;const _0x5a29bc=_0x1b8844['plugins']['get']('TrackChangesEditing'),_0x4b4d4b=_0x1b8844['plugins']['get']('TableUtils'),_0x5f3028=_0x1b8844['plugins']['get'](Ct),_0x38e940=_0x1b8844['plugins']['get']('TableClipboard'),_0x2fb5dc=_0x1b8844['plugins']['get']('TableSelection'),_0x3dce1f=_0x1b8844['plugins']['get'](_0x3f95ca);_0x5f3028['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1b8844['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1b8844['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xbb2174=null,_0x26ea76=!0x1;_0x3dce1f['on']('contentInsertion',(_0x1bfaea,_0x3aa586)=>{_0x26ea76='paste'===_0x3aa586['method'];}),_0x1b8844['model']['on']('insertContent',(_0x2b773b,_0x1a34b1)=>{if(!_0x26ea76&&null===_0x2fb5dc['getSelectedTableCells']())return;const [_0x260f40,_0x5b55ee]=_0x1a34b1,_0x28d2a2=_0x1a34b1[_0x1a34b1['length']-0x1];_0x28d2a2&&_0x28d2a2['forceDefaultExecution']||_0x5a29bc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x32123d,_0x3896d9,_0xbc4212,_0x5530c0,_0x446f88){if(_0x3896d9&&!_0x3896d9['is']('documentSelection'))return!0x1;const _0x5334af=_0x446f88['getTableIfOnlyTableInContent'](_0x32123d,_0xbc4212);if(!_0x5334af||!De(_0x5334af,void 0x0,_0x5530c0))return!0x1;const _0x144710=_0x5530c0['getSelectionAffectedTableCells'](_0xbc4212['document']['selection']);if(!_0x144710['length'])return!0x1;const _0x4b502e=_0x144710[0x0]['findAncestor']('table'),_0x5c9cd1=_0x5530c0['getRowIndexes'](_0x144710),_0x3f6758=_0x5530c0['getColumnIndexes'](_0x144710),_0x302fc1={'startRow':_0x5c9cd1['first'],'endRow':_0x5c9cd1['last'],'startColumn':_0x3f6758['first'],'endColumn':_0x3f6758['last']};return 0x1==_0x144710['length']&&(_0x302fc1['endRow']+=_0x5530c0['getRows'](_0x5334af)-0x1,_0x302fc1['endColumn']+=_0x5530c0['getColumns'](_0x5334af)-0x1),De(_0x4b502e,_0x302fc1,_0x5530c0);}(_0x260f40,_0x5b55ee,_0x1b8844['model'],_0x4b4d4b,_0x38e940)&&(_0x2b773b['stop'](),_0xbb2174={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1b8844['model']['change'](()=>{_0x1b8844['model']['insertContent'](_0x1a34b1[0x0],_0x1a34b1[0x1],_0x1a34b1[0x2],{'forceDefaultExecution':!0x0});const _0x1e4bc9=_0x2fdf50(),{rowInsertionRanges:_0x58dd3c,columnInsertionRanges:_0x18b7db,insertionRanges:_0x5c93d2,deletionRanges:_0x442dda,cells:_0x18d00b}=_0xbb2174;_0x58dd3c['length']&&_0x5a29bc['markMultiRangeInsertion'](_0x58dd3c,'tablePasteRow',{'tablePasteChainId':_0x1e4bc9}),_0x18b7db['length']&&_0x5a29bc['markMultiRangeInsertion'](_0x18b7db,'tablePasteColumn',{'tablePasteChainId':_0x1e4bc9}),_0x5c93d2['length']&&(_0x5a29bc['markMultiRangeInsertion'](_0x5c93d2,'tablePaste',{'tablePasteChainId':_0x1e4bc9,'skipNestingCheck':!0x0}),_0x5c93d2['forEach'](_0x3eef7e=>_0x3eef7e['detach']?.())),_0x442dda['length']&&(_0x5a29bc['markMultiRangeDeletion'](_0x442dda,'tablePaste',{'tablePasteChainId':_0x1e4bc9,'skipNestingCheck':!0x0}),_0x442dda['forEach'](_0x4bcbff=>_0x4bcbff['detach']?.()));const _0x340edb=_0x5a29bc['markMultiRangeBlockFormat'](_0x18d00b['map'](({element:_0x148e02})=>_0x148e02),{'formatGroupId':_0x2fdf50()},[],'tablePasteCell',{'tablePasteChainId':_0x1e4bc9});if(_0x340edb){const _0x5e0f77=_0x340edb['getMarkers'](),_0xab9846=[];for(const {element:_0x519a7e,attributes:_0x1e1818}of _0x18d00b){if(!_0x1e1818)continue;const _0x299f46=_0x1b8844['model']['createRangeOn'](_0x519a7e),_0x2c1aea=_0x5e0f77['find'](_0x1e555a=>_0x1e555a['getRange']()['isEqual'](_0x299f46));_0x2c1aea&&_0xab9846['push']([_0x2c1aea['name'],_0x1e1818]);}_0xab9846['length']&&_0x340edb['setAttribute']('markerAttributes',Object['fromEntries'](_0xab9846));}_0xbb2174=null;}));},{'priority':_0x3b217d['high']+0xa}),_0x3dce1f['on']('contentInsertion',()=>{_0x26ea76=!0x1;},{'priority':'lowest'}),_0x1b8844['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x163d4a,_0x5d6bad)=>{const [_0x3375c0,_0x2aaebd,,_0x57971e]=_0x5d6bad;if(!_0xbb2174)return;_0x163d4a['stop']();const _0x4681c6=_0x3375c0['cell'],_0x558538=_0x2aaebd,_0x276b21=Ue(_0x4681c6),_0x48ee34=Ue(_0x558538);_0x163d4a['return']=_0x4681c6;let _0x556171=null,_0x4579b2=null;if(_0x48ee34||_0x276b21){if(_0x276b21&&!_0x48ee34){_0x57971e['remove'](_0x4681c6['getChild'](0x0));for(const _0x54973c of Array['from'](_0x558538['getChildren']()))_0x57971e['insert'](_0x54973c,_0x4681c6,'end');const _0x1a9531=_0xbb2174['rowInsertionIndexes']['includes'](_0x3375c0['row']),_0x4a37c0=_0xbb2174['columnInsertionIndexes']['includes'](_0x3375c0['column']);_0x1a9531||_0x4a37c0||(_0x556171=_0x25f92b['fromRange'](_0x57971e['createRangeIn'](_0x4681c6)));}else _0x48ee34&&!_0x276b21&&(_0x4579b2=_0x57971e['createRangeIn'](_0x4681c6));}else{const _0xa6183b=_0x57971e['createElement']('tableCellSuggestion'),_0x1d50c7=_0x57971e['createElement']('tableCellSuggestion');_0x57971e['wrap'](_0x57971e['createRangeIn'](_0x4681c6),_0x1d50c7),_0x57971e['insert'](_0xa6183b,_0x4681c6,0x0);for(const _0x512b41 of Array['from'](_0x558538['getChildren']()))_0x57971e['insert'](_0x512b41,_0xa6183b,'end');_0x556171=_0x25f92b['fromRange'](_0x57971e['createRangeOn'](_0xa6183b)),_0x4579b2=_0x25f92b['fromRange'](_0x57971e['createRangeOn'](_0x1d50c7));}const _0x36e446=Array['from'](_0x558538['getAttributes']())['filter'](([_0x4fc00d])=>xe['includes'](_0x4fc00d));_0xbb2174['cells']['push']({'element':_0x4681c6,'attributes':_0x36e446['length']?Object['fromEntries'](_0x36e446):null}),_0x556171&&_0xbb2174['insertionRanges']['push'](_0x556171),_0x4579b2&&_0xbb2174['deletionRanges']['push'](_0x4579b2);},{'priority':'high'}),_0x4b4d4b['on']('insertColumns',(_0x5a901,_0x55a487)=>{const [_0x11173a,_0x5a923f={}]=_0x55a487;if(!_0xbb2174)return;const _0x1f113f=_0x5a923f['at']||0x0,_0x571f7d=_0x5a923f['columns']||0x1;_0xbb2174['columnInsertionIndexes']=new Array(_0x571f7d)['fill'](_0x1f113f)['map']((_0xd39c5,_0x406f68)=>_0xd39c5+_0x406f68);for(const {cell:_0x4eba75}of _0x4b4d4b['createTableWalker'](_0x11173a,{'startColumn':_0x1f113f,'endColumn':_0x1f113f+_0x571f7d-0x1}))_0xbb2174['columnInsertionRanges']['push'](_0x1b8844['model']['createRangeOn'](_0x4eba75));},{'priority':'low'}),_0x4b4d4b['on']('insertRows',(_0x38be97,_0x50678d)=>{const [_0xda94a5,_0x5eb16f={}]=_0x50678d;if(!_0xbb2174)return;const _0x1b6a7d=_0x5eb16f['at']||0x0,_0x5726d2=_0x5eb16f['rows']||0x1;_0xbb2174['rowInsertionIndexes']=new Array(_0x5726d2)['fill'](_0x1b6a7d)['map']((_0x127936,_0x8e3f5d)=>_0x127936+_0x8e3f5d);for(const {cell:_0x1eecfd}of _0x4b4d4b['createTableWalker'](_0xda94a5,{'startRow':_0x1b6a7d,'endRow':_0x1b6a7d+_0x5726d2-0x1}))_0xbb2174['rowInsertionRanges']['push'](_0x1b8844['model']['createRangeOn'](_0x1eecfd));},{'priority':'low'}),_0x5a29bc['descriptionFactory']['registerDescriptionCallback'](_0x377646=>{if(_0x377646['subType']&&_0x377646['subType']['startsWith']('tablePaste'))return _0x377646['previous']?{}:{'type':'insertion','content':c(_0x1b8844['locale'],'*Replace\x20table\x20cells*')};});const _0x16079a=()=>!0x1;for(const _0x2db19f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a29bc['_suggestionFactory']['registerCustomCallback']('insertion',_0x2db19f,'join',_0x16079a),_0x5a29bc['_suggestionFactory']['registerCustomCallback']('deletion',_0x2db19f,'join',_0x16079a),_0x5a29bc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2db19f,'join',_0x16079a);_0x5a29bc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x16079a),_0x5a29bc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xbc245d,_0x205180,_0x1b8fb6)=>{const _0x5ce11a=_0xbc245d['map'](_0x22958f=>_0x22958f['getContainedElement']())['filter'](_0x2c5848=>_0x2c5848),_0x572d38=new Map(_0x5ce11a['map'](_0x16f224=>[_0x16f224,null]));if(_0xbb2174){for(const {element:_0x1e5ecf,attributes:_0x52b699}of _0xbb2174['cells'])_0x52b699&&_0x572d38['set'](_0x1e5ecf,_0x52b699);}else{if(_0x1b8fb6&&_0x1b8fb6['markerAttributes'])for(const [_0x54d173,_0x2c4294]of Object['entries'](_0x1b8fb6['markerAttributes'])){const _0x3983ed=_0x1b8844['model']['markers']['get'](_0x54d173),_0x2d75aa=_0x3983ed?_0x3983ed['getRange']()['getContainedElement']():null;_0x2d75aa&&_0x572d38['set'](_0x2d75aa,_0x2c4294);}}_0x1b8844['model']['change'](_0x122ab3=>{for(const [_0x285fed,_0x149318]of _0x572d38)_0x122ab3['setAttributes']({...Oe,..._0x149318},_0x285fed);});});const _0x4cc76c=(_0x48cf38,_0x245c23)=>{_0x5a29bc['_suggestionFactory']['registerCustomCallback'](_0x48cf38,'tablePaste',_0x245c23,(_0x22b0cf,_0x27bf2c,_0x44054f)=>{_0x1b8844['model']['change'](_0x46facd=>{const _0x4484a2=[];for(const _0x322a5e of _0x22b0cf){const _0x43210a=_0x322a5e['start']['nodeAfter'];_0x43210a['is']('element','tableCellSuggestion')&&_0x4484a2['push'](_0x43210a);}_0x5a29bc['_suggestionFactory']['getSuggestionCallback'](_0x48cf38,null,_0x245c23)(_0x22b0cf,_0x27bf2c,_0x44054f);for(const _0x5835bb of _0x4484a2)'$graveyard'!=_0x5835bb['root']['rootName']&&_0x46facd['unwrap'](_0x5835bb);});});};_0x4cc76c('insertion','accept'),_0x4cc76c('insertion','discard'),_0x4cc76c('deletion','accept'),_0x4cc76c('deletion','discard'),_0x5a29bc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2d749e=>{const _0x4406bc=_0x2d749e['map'](_0xdecde3=>_0xdecde3['getContainedElement']()),_0x1e29d0=_0x4406bc[0x0]['findAncestor']('table'),{minRow:_0x544971,maxRow:_0x59f87c}=_0x5f3028['_getCoordsForCells'](_0x4406bc);_0x4b4d4b['removeRows'](_0x1e29d0,{'at':_0x544971,'rows':_0x59f87c-_0x544971+0x1});}),_0x5a29bc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2be983=>{const _0x3940a4=_0x2be983['map'](_0xa4d502=>_0xa4d502['getContainedElement']()),_0x21d1e0=_0x3940a4[0x0]['findAncestor']('table'),{minColumn:_0x17b1ea,maxColumn:_0x486d87}=_0x5f3028['_getCoordsForCells'](_0x3940a4);_0x4b4d4b['removeColumns'](_0x21d1e0,{'at':_0x17b1ea,'columns':_0x486d87-_0x17b1ea+0x1});});const _0x3a5698=(_0x14f979,_0x97020c)=>{if(!_0x97020c['subType']||!_0x97020c['subType']['startsWith']('tablePaste'))return;const _0x1d32a9=_0x97020c['attributes']['tablePasteChainId'],_0x5db67c=_0x5a29bc['getSuggestions']()['filter'](_0xc2597f=>_0xc2597f['isInContent']&&_0xc2597f['attributes']&&_0xc2597f['attributes']['tablePasteChainId']==_0x1d32a9);_0x5db67c['length']&&_0x97020c['getAllAdjacentSuggestions']()['length']!=_0x5db67c['length']&&_0x5db67c['reduce']((_0x368ffb,_0x3f2d13)=>(_0x368ffb['next']=_0x3f2d13,_0x3f2d13['previous']=_0x368ffb,_0x3f2d13));};function _0x5cec38(_0x6a6548,_0x430e6e=!0x0){const {id:_0x345338,authorId:_0x1a7425}=_0x5a29bc['_splitMarkerName'](_0x6a6548['markerName']),_0x57ddbc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x69ea0d=_0x5a29bc['activeMarkers']['includes'](_0x6a6548['markerName']);return _0x69ea0d&&_0x57ddbc['push']('ck-suggestion-marker--active'),{'classes':_0x57ddbc,'attributes':{'data-suggestion':_0x345338,'data-author-id':_0x1a7425},'priority':_0x69ea0d&&_0x430e6e?0xbc2:0xbb8};}_0x5a29bc['on']('suggestionLoaded',_0x3a5698,{'priority':'high'}),_0x5a29bc['on']('suggestionUnloaded',_0x3a5698,{'priority':'high'}),_0x1b8844['model']['document']['registerPostFixer'](()=>{let _0x2c4239=!0x1;const _0x4d38c2=Array['from'](_0x1b8844['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3675e4,data:_0x26187b}of _0x4d38c2){const {group:_0x48353d,type:_0x211cb1,id:_0x5dc0ee}=_0x5a29bc['_splitMarkerName'](_0x3675e4);if('suggestion'!=_0x48353d||'deletion'!=_0x211cb1||_0x26187b['oldRange'])continue;if(!_0x5a29bc['hasSuggestion'](_0x5dc0ee))continue;const _0x3d8847=_0x5a29bc['getSuggestion'](_0x5dc0ee)['getRanges'](),_0x44c8f8=_0x1b8844['plugins']['get']('Users')['me'];for(const _0x2cbee8 of _0x5a29bc['getSuggestions']()){if(!_0x2cbee8['isInContent']||_0x2cbee8['author']!=_0x44c8f8)continue;if('formatBlock'!=_0x2cbee8['type']||'tablePasteCell'!=_0x2cbee8['subType'])continue;if(_0x2cbee8['getRanges']()['every'](_0x3b103f=>_0x3d8847['some'](_0x352a14=>_0x352a14['containsRange'](_0x3b103f,!0x0)))){for(const _0x36b0b7 of _0x2cbee8['getAllAdjacentSuggestions']())_0x36b0b7['isInContent']&&(_0x36b0b7['discard'](),_0x2c4239=!0x0);}}}return _0x2c4239;}),_0x1b8844['model']['document']['registerPostFixer'](_0x108f2a=>{const _0x1e6783=_0x1b8844['commands']['get']('redo');if(!_0x1e6783||!_0x1e6783['_createdBatches']['has'](_0x108f2a['batch']))return!0x1;let _0x166242=!0x1;const _0x52015c=_0x1b8844['plugins']['get']('Users')['me'],_0x2d4ece=_0x1b8844['model']['document']['differ']['getChanges'](),_0x2cc920=Array['from'](_0x1b8844['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x415427,data:_0x199bb5})=>{const {group:_0x35cfdb,subType:_0x2e184f,authorId:_0x382c66}=_0x5a29bc['_splitMarkerName'](_0x415427);return'suggestion'==_0x35cfdb&&'tablePaste'==_0x2e184f&&_0x382c66==_0x52015c['id']&&!_0x199bb5['oldRange'];});for(const _0x7890b1 of _0x2d4ece){if('insert'!=_0x7890b1['type']||'tableCellSuggestion'!=_0x7890b1['name']||0x1!=_0x7890b1['length'])continue;const _0x5da8f9=_0x108f2a['createRange'](_0x7890b1['position'],_0x7890b1['position']['getShiftedBy'](0x1));if(!_0x2cc920['find'](({data:_0x5815ac})=>_0x5815ac['newRange']['isEqual'](_0x5da8f9))){for(const {name:_0x5bfca0,data:_0x121446}of _0x2cc920)if(_0x5da8f9['containsRange'](_0x121446['newRange'])){_0x108f2a['updateMarker'](_0x5bfca0,{'range':_0x5da8f9}),_0x166242=!0x0;break;}}}return _0x166242;}),_0x1b8844['model']['document']['registerPostFixer'](_0x382970=>{let _0x496a7f=!0x1;const _0x24673a=_0x1b8844['plugins']['get']('Users')['me'],_0x57c2c5=_0x5a29bc['getSuggestions']()['filter'](_0x2fe709=>_0x2fe709['isInContent']&&_0x2fe709['author']==_0x24673a),_0x3ea46f=new Set(),_0x3af6dc=new Set();for(const _0x1e7c9b of _0x57c2c5)if('tablePaste'==_0x1e7c9b['subType'])for(const _0x4e3d3e of _0x1e7c9b['getMarkers']()){const _0x4d835e=_0x4e3d3e['getRange']()['getContainedElement']();if(_0x4d835e){if(_0x4d835e['is']('element','tableCellSuggestion')&&Ue(_0x4d835e)){_0x1e7c9b['removeMarker'](_0x4e3d3e['name']),_0x3ea46f['add'](_0x4d835e),_0x496a7f=!0x0;const _0x58f2d7=_0x4d835e['nextSibling'],_0x39c727=_0x4d835e['previousSibling'],_0x5a1748=_0x58f2d7&&_0x58f2d7['is']('element','tableCellSuggestion'),_0x4d099f=_0x39c727&&_0x39c727['is']('element','tableCellSuggestion');_0x5a1748&&!_0x3ea46f['has'](_0x58f2d7)&&_0x3af6dc['add'](_0x58f2d7),_0x4d099f&&!_0x3ea46f['has'](_0x39c727)&&_0x3af6dc['add'](_0x39c727);}else _0x4d835e['is']('element','paragraph')&&_0x4d835e['isEmpty']&&(_0x1e7c9b['removeMarker'](_0x4e3d3e['name']),_0x496a7f=!0x0);}}else{if('tablePasteCell'==_0x1e7c9b['subType']){if(!_0x1e7c9b['attributes']||!_0x1e7c9b['attributes']['tablePasteChainId'])continue;const _0x426223=_0x1e7c9b['attributes']['markerAttributes'];if(_0x426223&&Object['keys'](_0x426223)['length'])continue;const _0x497ed9=_0x1e7c9b['attributes']['tablePasteChainId'];let _0x3ca9ca=!0x0,_0xf4d00e=!0x0;for(const _0x40396c of _0x57c2c5)if(_0x40396c['subType']&&_0x40396c['subType']['startsWith']('tablePaste')){if(!_0x40396c['attributes']['tablePasteChainId']){_0xf4d00e=!0x1;break;}if(_0x40396c['id']!=_0x1e7c9b['id']&&_0x40396c['attributes']['tablePasteChainId']==_0x497ed9){_0x3ca9ca=!0x1;break;}}_0xf4d00e&&_0x3ca9ca&&(_0x1e7c9b['removeMarkers'](),_0x496a7f=!0x0);}}for(const _0x1048d9 of _0x3ea46f)_0x382970['remove'](_0x1048d9);for(const _0x4156e7 of _0x3af6dc)_0x382970['unwrap'](_0x4156e7);return _0x496a7f;}),_0x1b8844['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x407d41=>_0x5cec38(_0x407d41),'converterPriority':'high'}),_0x1b8844['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x47256c,_0x494382)=>_0x494382['options']['showSuggestionHighlights']?_0x5cec38(_0x47256c,!0x1):null,'converterPriority':'high'});const _0x35f781=_0x1b8844['editing']['view'];this['listenTo'](_0x35f781['document'],'clipboardOutput',(_0x118f6b,_0x59de58)=>{const _0x1d4b08=[];for(const _0x541d30 of _0x35f781['createRangeIn'](_0x59de58['content'])['getItems']())_0x541d30['is']('element','suggestion-td')&&_0x1d4b08['push'](_0x541d30);_0x35f781['change'](_0x3795d9=>{for(const _0x316448 of _0x1d4b08)_0x3795d9['move'](_0x3795d9['createRangeIn'](_0x316448),_0x3795d9['createPositionBefore'](_0x316448)),_0x3795d9['remove'](_0x316448);});});}}function Ue(_0x5cc89d){if(_0x5cc89d['isEmpty'])return!0x0;const _0x27d6d3=_0x5cc89d['getChild'](0x0);return _0x27d6d3['is']('element','paragraph')&&_0x27d6d3['isEmpty'];}function De(_0x4bb40d,_0x3e670d={},_0xde595a){for(const {isAnchor:_0x27a5e0,cellHeight:_0x2bae17,cellWidth:_0x3f84f0}of _0xde595a['createTableWalker'](_0x4bb40d,{'includeAllSlots':!0x0,..._0x3e670d}))if(!_0x27a5e0||0x1!=_0x2bae17||0x1!=_0x3f84f0)return!0x1;return!0x0;}class Bt extends _0xd6413c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x531951=this['editor']['plugins']['get']('TrackChangesEditing');_0x531951['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x531951['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x531951['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x531951['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x531951['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x531951['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b97b3,_0x3b2b48){const _0x497864=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4da529=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2a0cd7=_0x3b2b48['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x206cc4=_0x4da529['getColumnGroupElement'](_0x2a0cd7);let _0x51b6cb=_0x206cc4?_0x4da529['getTableColumnsWidths'](_0x206cc4):null,_0x2b023c=_0x2a0cd7['getAttribute']('tableWidth')||null;const _0x1d0cbf=_0x3b2b48['tableWidth']||_0x2b023c,_0x48aa37=_0x3b2b48['columnWidths']||_0x51b6cb,_0x444cc9=this['editor']['plugins']['get']('Users')['me'];for(const _0x3cec17 of _0x497864['getSuggestions']()){const _0x308a3e=_0x3cec17['getContainedElement']();if('resizeTable'===_0x3cec17['subType']&&_0x308a3e===_0x2a0cd7){_0x3cec17['author']!==_0x444cc9&&_0x3cec17['discard']();const _0x278671=_0x3cec17['data']['commandParams'];_0x2b023c=_0x278671[0x0]['tableWidth'],_0x51b6cb=_0x278671[0x0]['columnWidths'];break;}}_0x4b97b3({'table':_0x2a0cd7,'tableWidth':_0x1d0cbf,'columnWidths':_0x48aa37}),_0x497864['markBlockFormat'](_0x2a0cd7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2b023c,'columnWidths':_0x51b6cb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f71f0){if('formatBlock'!=_0x4f71f0['type']&&'formatInline'!=_0x4f71f0['type'])return;const {data:_0x13ae3c}=_0x4f71f0;if(_0x13ae3c&&'resizeTable'===_0x13ae3c['formatGroupId']){const _0x103d62='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x103d62)};}}}class Ot extends _0xd6413c{['afterInit'](){const _0x3873be=this['editor'];_0x3873be['plugins']['has']('Template')&&_0x3873be['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0xd6413c{['afterInit'](){const _0x1f3177=this['editor'];if(!_0x1f3177['commands']['get']('insertTableOfContents'))return;_0x1f3177['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5aa8ad=_0x1f3177['plugins']['get']('TrackChangesEditing'),_0x49623f=_0x1f3177['locale'];_0x5aa8ad['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4618b0=>c(_0x49623f,'ELEMENT_TABLE_OF_CONTENTS',_0x4618b0));}}class xt extends _0xd6413c{['afterInit'](){const _0x4afe73=this['editor'];if(!_0x4afe73['plugins']['has']('Title'))return;const _0x13b21a=_0x4afe73['plugins']['get']('TrackChangesEditing');_0x13b21a['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x4afe73['locale'],'ELEMENT_TITLE')),_0x4afe73['model']['document']['registerPostFixer'](_0x499d3a=>{let _0x187133=!0x1;const _0x260e93=Array['from'](_0x4afe73['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43d9c4,data:_0x24a0cf}of _0x260e93){const {group:_0x1e3e33}=_0x13b21a['_splitMarkerName'](_0x43d9c4);if('suggestion'!==_0x1e3e33||!_0x24a0cf['newRange'])continue;const _0x308586=_0x24a0cf['newRange'],_0x59f9fb=_0x308586['end']['nodeBefore'];if(!_0x59f9fb||!_0x59f9fb['is']('element','title-content'))continue;if(!_0x308586['start']['isTouching'](_0x308586['end']))continue;const _0x553eca=_0x4afe73['model']['schema']['getNearestSelectionRange'](_0x308586['end'],'forward');if(_0x553eca&&_0x553eca['isCollapsed']){const _0x452347=_0x499d3a['createRange'](_0x308586['start'],_0x553eca['start']);_0x452347['isEqual'](_0x308586)||(_0x499d3a['updateMarker'](_0x43d9c4,{'range':_0x452347}),_0x187133=!0x0);}_0x187133||(_0x499d3a['removeMarker'](_0x43d9c4),_0x187133=!0x0);}return _0x187133;});}}class Tt extends _0xd6413c{['afterInit'](){const _0x2a72a2=this['editor'],_0x14ecf=_0x2a72a2['plugins']['get']('TrackChangesEditing');_0x2a72a2['plugins']['has']('Uploadcare')&&(_0x14ecf['enableCommand']('uploadcare'),_0x2a72a2['plugins']['has']('UploadcareImageEdit')&&(_0x14ecf['enableCommand']('uploadcareImageEdit'),_0x14ecf['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x14ecf['registerBlockAttribute']('uploadcareImageId'),_0x14ecf['descriptionFactory']['registerDescriptionCallback'](_0x575eff=>{if('attribute'!=_0x575eff['type'])return;const {data:_0x4fc8c4}=_0x575eff;return _0x4fc8c4&&'uploadcareImageId'==_0x4fc8c4['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0xd6413c{['afterInit'](){const _0x324468=this['editor'],_0x5967cc=_0x324468['plugins']['get']('TrackChangesEditing');_0x324468['plugins']['has']('UndoEditing')&&(_0x5967cc['enableCommand']('undo'),_0x5967cc['enableCommand']('redo'));}}class Ut extends _0xd6413c{static get['requires'](){return[Ct];}['afterInit'](){const _0x58051a=this['editor'];if(!_0x58051a['plugins']['has']('TableCaptionEditing'))return;_0x58051a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0xd6413c{['tableProperties'];['tableCellProperties'];constructor(_0x26e1d2){super(_0x26e1d2),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 _0x1a2c3a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3c7513 of this['tableProperties'])_0x1a2c3a['enableCommand'](_0x3c7513,(_0x598976,_0x125bad)=>{const _0x559648=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3c7513,[_0x559648],this['tableProperties'],'tableProperties',_0x598976,_0x125bad);});_0x1a2c3a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1a2c3a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a2c3a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5f0ae2,_0x5dc386)=>this['handleDiscardAction'](this['tableProperties'],_0x5f0ae2,_0x5dc386)),_0x1a2c3a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x425005 of this['tableCellProperties'])_0x1a2c3a['enableCommand'](_0x425005,(_0x2ad876,_0x2d8116)=>{const _0x5ae02f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x425005,_0x5ae02f,this['tableCellProperties'],'tableCellProperties',_0x2ad876,_0x2d8116);});_0x1a2c3a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1a2c3a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a2c3a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xfb0107,_0x4cf80d)=>this['handleDiscardAction'](this['tableCellProperties'],_0xfb0107,_0x4cf80d)),_0x1a2c3a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1a2c3a['descriptionFactory']['registerDescriptionCallback'](_0x28f191=>this['handleSuggestionDescription'](_0x28f191));}['_handlePropertyChange'](_0x159458,_0x585673,_0xf35354,_0x3d585f,_0x3f4751,_0x1c8064){const _0x5dfa48=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1c8064['batch'],()=>{for(const _0x2ebf9b of _0x585673){if(this['_getSuggestion'](_0x2ebf9b,_0x3d585f))_0x3f4751(_0x1c8064);else{const _0x31c38f={};for(const _0x4dc2fc of _0xf35354){const _0x5ae444=_0x2ebf9b['getAttribute'](_0x4dc2fc);void 0x0!==_0x5ae444&&(_0x31c38f[_0x4dc2fc]=_0x5ae444);}_0x3f4751(_0x1c8064),_0x5dfa48['markBlockFormat'](_0x2ebf9b,{'commandParams':[_0x31c38f]},[],_0x3d585f);}}});}['handleDiscardAction'](_0x34dbac,_0xba59a4,_0x43a871){const _0x4eea12=_0xba59a4[0x0]['start']['nodeAfter'],_0xf11cea=_0x43a871['commandParams'][0x0];this['editor']['model']['change'](_0x4dcbf0=>{for(const _0x385f4c of _0x34dbac)void 0x0!==_0xf11cea[_0x385f4c]?_0x4dcbf0['setAttribute'](_0x385f4c,_0xf11cea[_0x385f4c],_0x4eea12):_0x4dcbf0['removeAttribute'](_0x385f4c,_0x4eea12);});}['handleSuggestionDescription'](_0x2eb910){if(_0x2eb910['data'])switch(_0x2eb910['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xf4a897,_0x40d92b){const _0x2e63cb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x164f48 of _0x2e63cb['getSuggestions']({'skipNotAttached':!0x0})){const _0x4af5b0=_0x164f48['getContainedElement']();if(_0x164f48['subType']===_0x40d92b&&_0x4af5b0===_0xf4a897)return _0x164f48;}return null;}}const u='$elementName';class p extends _0xd6413c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x98631a,_0x16e4a9,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x544292){super(_0x544292),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x215554,_0xeddc1c,_0x1a7d4e,_0x46e047)=>{this['_model']['change'](()=>{for(const _0x3b1265 of[..._0x46e047,..._0x1a7d4e])this['_model']['markers']['has'](_0x3b1265)&&_0x544292['editing']['reconvertMarker'](_0x3b1265);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x544292['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x544292['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x544292['config']['get']('trackChanges.trackFormatChanges'),_0x544292['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x544292['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x544292,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x33d988=this['editor'],_0x36ea37=(_0x4d68aa,_0x45cb42)=>{if('attribute'!=_0x4d68aa)return'ck-suggestion-marker-'+_0x4d68aa;const _0x269783=_0x45cb42['split']('|')[0x0];return this['_isBlockAttribute'](_0x269783)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x33d988['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x265030=>{const {id:_0x31c5aa,authorId:_0x34d516,type:_0x2f00ce,subType:_0x1ac4ab}=this['_splitMarkerName'](_0x265030['markerName']),_0x1dfc61=['ck-suggestion-marker',_0x36ea37(_0x2f00ce,_0x1ac4ab)];let _0x14752c=0xbb8;return this['activeMarkers']['includes'](_0x265030['markerName'])&&(_0x1dfc61['push']('ck-suggestion-marker--active'),_0x14752c=0xbc2),'deletion'==_0x2f00ce&&(_0x14752c+=0x5),{'classes':_0x1dfc61,'attributes':{'data-suggestion':_0x31c5aa,'data-author-id':_0x34d516},'priority':_0x14752c};}}),_0x33d988['conversion']['for']('dataDowncast')['add'](_0x200070=>{_0x200070['on']('addMarker:suggestion',(_0x292934,_0x1d10d0,_0x1f6362)=>{if(!_0x1f6362['options']['showSuggestionHighlights'])return;const _0x533db2=_0x1d10d0['item'];if(!_0x533db2)return;const _0x37ee33=_0x1f6362['mapper']['toViewElement'](_0x533db2);_0x33d988['model']['schema']['isObject'](_0x533db2)&&_0x37ee33&&!_0x37ee33['getCustomProperty']('widget')&&_0x37ee33['is']('containerElement')&&_0x441bd1(_0x37ee33,_0x1f6362['writer']);},{'priority':'high'});}),_0x33d988['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x501e44,_0x4fd93d)=>{if(!_0x4fd93d['options']['showSuggestionHighlights'])return null;const {type:_0x45c596,subType:_0x460951}=this['_splitMarkerName'](_0x501e44['markerName']);return{'classes':['ck-suggestion-marker',_0x36ea37(_0x45c596,_0x460951)],'priority':0xbb8};}});const _0x2787f7=({showActiveMarkers:_0x3592f3=!0x0,isAttributeSuggestion:_0x48b2d3=!0x1}={})=>(_0x122d63,_0x24651d,_0x15c500)=>{if(!_0x24651d['item'])return;const {id:_0xbdfac,authorId:_0x2c4b41}=this['_splitMarkerName'](_0x24651d['markerName']);if(_0x48b2d3){const _0xaf117c=this['_suggestions']['get'](_0xbdfac),_0x1e5350=this['_getAttributeKey'](_0xaf117c);if(!this['_isBlockAttribute'](_0x1e5350))return;}if(_0x24651d['item']['is']('selection'))return void _0x15c500['consumable']['consume'](_0x24651d['item'],_0x122d63['name']);const _0x4dd097=_0x15c500['mapper']['toViewElement'](_0x24651d['item']);if(_0x24651d['item']['is']('element')&&_0x33d988['model']['schema']['isBlock'](_0x24651d['item'])&&!_0x4dd097['getCustomProperty']('addHighlight')){_0x15c500['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4dd097),_0x15c500['writer']['setAttribute']('data-suggestion',_0xbdfac,_0x4dd097),_0x15c500['writer']['setAttribute']('data-author-id',_0x2c4b41,_0x4dd097),_0x15c500['mapper']['bindElementToMarker'](_0x4dd097,_0x24651d['markerName']),_0x3592f3&&(this['activeMarkers']['includes'](_0x24651d['markerName'])?_0x15c500['writer']['addClass']('ck-suggestion-marker--active',_0x4dd097):_0x15c500['writer']['removeClass']('ck-suggestion-marker--active',_0x4dd097));for(const _0x5ebe79 of _0x33d988['model']['createRangeIn'](_0x24651d['item'])['getItems']())_0x15c500['consumable']['consume'](_0x5ebe79,_0x122d63['name']);_0x15c500['consumable']['consume'](_0x24651d['item'],_0x122d63['name']);}};_0x33d988['conversion']['for']('dataDowncast')['add'](_0x552eb0=>{_0x552eb0['on']('addMarker:suggestion:formatBlock',(_0x50304b,_0x45fbc0,_0x121de1)=>{_0x121de1['options']['showSuggestionHighlights']&&_0x2787f7({'showActiveMarkers':!0x1})(_0x50304b,_0x45fbc0,_0x121de1);},{'priority':'highest'});}),_0x33d988['conversion']['for']('dataDowncast')['add'](_0x5608a3=>{_0x5608a3['on']('addMarker:suggestion:attribute',(_0x1125a7,_0x5dd9a1,_0x1b75fd)=>{_0x1b75fd['options']['showSuggestionHighlights']&&_0x2787f7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1125a7,_0x5dd9a1,_0x1b75fd);},{'priority':'highest'});}),_0x33d988['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xa3658b,_0x1d824f)=>_0x1d824f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xa3658b['substr'](0xb)}}),_0x33d988['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3a0ef4,{writer:_0x3ecf33})=>{let _0x1283d7='suggestion:'+_0x3a0ef4['getAttribute']('suggestion-type')+':'+_0x3a0ef4['getAttribute']('id');return _0x3a0ef4['getAttribute']('marker-count')&&(_0x1283d7+=':'+_0x3a0ef4['getAttribute']('marker-count')),_0x3ecf33['createElement']('$marker',{'data-name':_0x1283d7});}}),_0x33d988['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33d988['conversion']['for']('editingDowncast')['add'](_0x14ee9f=>{_0x14ee9f['on']('addMarker:suggestion:formatBlock',_0x2787f7(),{'priority':'high'});}),_0x33d988['conversion']['for']('editingDowncast')['add'](_0x15c728=>{_0x15c728['on']('addMarker:suggestion:attribute',_0x2787f7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x33d988['conversion']['for']('editingDowncast')['add'](_0x311898=>{_0x311898['on']('removeMarker:suggestion:formatBlock',(_0x4843c1,_0x4d6d7,_0x4bef36)=>{const _0x2144f5=_0x4bef36['mapper']['markerNameToElements'](_0x4d6d7['markerName']);if(_0x2144f5){for(const _0x2990cd of _0x2144f5)_0x2990cd['getCustomProperty']('addHighlight')||(_0x4bef36['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2990cd),_0x4bef36['writer']['removeAttribute']('data-suggestion',_0x2990cd),_0x4bef36['writer']['removeAttribute']('data-author-id',_0x2990cd),_0x4bef36['mapper']['unbindElementFromMarkerName'](_0x2990cd,_0x4d6d7['markerName']));}},{'priority':'high'});}),_0x33d988['conversion']['for']('editingDowncast')['add'](_0x5befb2=>{_0x5befb2['on']('removeMarker:suggestion:attribute',(_0x121d77,_0x397a1e,_0x5bb940)=>{const _0x3dcdbf=_0x5bb940['mapper']['markerNameToElements'](_0x397a1e['markerName']);if(!_0x3dcdbf)return;const {id:_0x2e082e}=this['_splitMarkerName'](_0x397a1e['markerName']),_0x26a9d0=this['_suggestions']['get'](_0x2e082e),_0x3a09b7=this['_getAttributeKey'](_0x26a9d0);if(this['_isBlockAttribute'](_0x3a09b7)){for(const _0x4a2413 of _0x3dcdbf)_0x4a2413['getCustomProperty']('addHighlight')||(_0x5bb940['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4a2413),_0x5bb940['writer']['removeAttribute']('data-suggestion',_0x4a2413),_0x5bb940['writer']['removeAttribute']('data-author-id',_0x4a2413),_0x5bb940['mapper']['unbindElementFromMarkerName'](_0x4a2413,_0x397a1e['markerName']));}},{'priority':'high'});}),_0x33d988['model']['document']['registerPostFixer'](_0x556058=>{let _0x273bcd=!0x1;const _0x14fc9d=Array['from'](_0x33d988['model']['document']['differ']['getChangedMarkers']()),_0x3078eb=new Set();for(const {name:_0x2a9c9d,data:_0x4aecd3}of _0x14fc9d){const {group:_0x2ef1ff,type:_0x2ba1b1,subType:_0x869a73,id:_0x1171e3}=this['_splitMarkerName'](_0x2a9c9d);if('suggestion'!==_0x2ef1ff)continue;const _0x160008=this['_suggestions']['get'](_0x1171e3);if(null!=_0x4aecd3['newRange']){'formatInline'==_0x2ba1b1&&(_0x273bcd=_0x273bcd||Jt(_0x4aecd3['newRange'],_0x2a9c9d,_0x556058,_0x33d988['model']['schema']));const _0x474616='attribute'==_0x2ba1b1&&this['_isBlockAttribute'](_0x869a73['split']('|')[0x0]);if(_0x4aecd3['newRange']['isCollapsed']||'$graveyard'==_0x4aecd3['newRange']['root']['rootName']||'formatBlock'==_0x2ba1b1&&!Ht(_0x4aecd3['newRange'])||_0x474616&&!Ht(_0x4aecd3['newRange'])||'deletion'==_0x2ba1b1&&!(!Lt(_0x52061e=_0x4aecd3['newRange'])&&!function(_0x459848){return _0x459848['start']['parent']==_0x459848['end']['nodeBefore']&&_0x459848['start']['isAtEnd'];}(_0x52061e)))_0x556058['removeMarker'](_0x2a9c9d),_0x273bcd=!0x0;else{if(!_0x160008||!_0x160008['isInContent'])continue;if(_0x4aecd3['newRange']&&_0x4aecd3['oldRange']&&_0x4aecd3['newRange']['isEqual'](_0x4aecd3['oldRange']))continue;_0x3078eb['add'](_0x160008);}}}var _0x52061e;return _0x3078eb['size']>0x0&&(_0x273bcd=!!this['_joinWithAdjacentSuggestions'](_0x3078eb)||_0x273bcd),_0x273bcd;}),_0x33d988['model']['document']['registerPostFixer'](_0x4f1a92=>{let _0x4273d7=!0x1;for(const _0x3abc37 of _0x33d988['model']['document']['differ']['getChanges']())if('insert'==_0x3abc37['type'])for(const _0x29d93c of this['_suggestions']['values']()){if(_0x29d93c['isMultiRange']||!_0x29d93c['isInContent'])continue;const _0x207f11='formatBlock'==_0x29d93c['type'],_0x10d62d=this['_getAttributeKey'](_0x29d93c),_0x421033=_0x10d62d&&this['_isBlockAttribute'](_0x10d62d);if(!_0x207f11&&!_0x421033)continue;const _0x2b9885=_0x29d93c['getFirstRange']();if(_0x2b9885['start']['parent']!=_0x2b9885['end']['parent']&&!_0x2b9885['end']['isAtEnd']){const _0x152e84=_0x33d988['model']['createPositionAt'](_0x2b9885['start']['nodeAfter'],'end'),_0x1a972d=_0x33d988['model']['createRange'](_0x2b9885['start'],_0x152e84);_0x4f1a92['updateMarker'](_0x29d93c['getFirstMarker'](),{'range':_0x1a972d}),_0x4273d7=!0x0;}}return _0x4273d7;}),_0x33d988['model']['document']['registerPostFixer'](_0x359992=>this['_processAttributeChanges'](_0x359992)),_0x33d988['model']['document']['registerPostFixer'](_0x28ef5b=>!_0x28ef5b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x28ef5b)),_0x33d988['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33d988['model']['document']['on']('change:data',(_0x375701,_0x2b8515)=>{if(!_0x2b8515['isLocal']||_0x2b8515['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x39e3dc=_0x33d988['model']['document']['differ']['getChanges']();if(0x0==_0x39e3dc['length'])return;const _0x369f60=[],_0x222f8b=_0x39e3dc['filter'](_0x1f700a=>'attribute'==_0x1f700a['type']),_0x5e5730=_0x39e3dc['filter'](_0x5a47a5=>'insert'==_0x5a47a5['type']&&'$text'!=_0x5a47a5['name']);for(const _0x54c24b of _0x222f8b)this['_isRegisteredAttribute'](_0x54c24b['attributeKey'])&&_0x369f60['push']({'key':_0x54c24b['attributeKey'],'newValue':_0x54c24b['attributeNewValue'],'oldValue':_0x54c24b['attributeOldValue'],'range':qt(_0x54c24b['range'],_0x33d988['model'])});for(const _0x3b72bc of _0x5e5730){if('rename'!=_0x3b72bc['action']&&'refresh'!=_0x3b72bc['action'])continue;const _0x347d12=zt(_0x3b72bc['position']['nodeAfter'],_0x33d988['model']),_0x303da6=_0x3b72bc['before'];'rename'==_0x3b72bc['action']&&_0x369f60['push']({'key':u,'newValue':_0x3b72bc['name'],'oldValue':_0x303da6['name'],'range':_0x347d12});for(const [_0x1acf40,_0x18b41e]of _0x303da6['attributes']){if(!this['_isRegisteredAttribute'](_0x1acf40))continue;const _0x589e73=_0x3b72bc['attributes']['get'](_0x1acf40);_0x18b41e!==_0x589e73&&_0x369f60['push']({'key':_0x1acf40,'newValue':_0x589e73,'oldValue':_0x18b41e,'range':_0x347d12});}for(const [_0x59ca27,_0x8aa02b]of _0x3b72bc['attributes'])this['_isRegisteredAttribute'](_0x59ca27)&&(_0x303da6['attributes']['has'](_0x59ca27)||_0x369f60['push']({'key':_0x59ca27,'newValue':_0x8aa02b,'oldValue':null,'range':_0x347d12}));}0x0!=_0x369f60['length']&&_0x33d988['model']['enqueueChange'](_0x2b8515,_0x45cdd1=>{const _0x44210f=_0x2fdf50();for(const {range:_0x320f2b,key:_0x46e8e2,oldValue:_0x1ca1e5,newValue:_0xea5510}of _0x369f60)this['markAttributeChange'](_0x320f2b,_0x46e8e2,_0x1ca1e5,_0xea5510,{'groupId':_0x44210f});this['_reduceExistingSuggestions'](_0x45cdd1,_0x369f60);});},{'priority':'lowest'}),_0x33d988['model']['markers']['on']('update:suggestion',(_0x4d36b3,_0xb05bef,_0x342ff2)=>{if(null==_0x342ff2){const {id:_0xb53d93}=this['_splitMarkerName'](_0xb05bef['name']),_0xca47b2=this['_suggestions']['get'](_0xb53d93);_0xca47b2&&_0xca47b2['addMarkerName'](_0xb05bef['name']);}}),_0x33d988['model']['document']['on']('change:data',()=>{const _0x9db446=Array['from'](_0x33d988['model']['document']['differ']['getChangedMarkers']())['filter'](_0xe67394=>'suggestion'===this['_splitMarkerName'](_0xe67394['name'])['group']);if(0x0===_0x9db446['length'])return;_0x9db446['sort']((_0x6eb59d,_0x3bdcdc)=>{const _0x265389=_0x6eb59d['data']['oldRange'],_0x3b3d21=_0x3bdcdc['data']['oldRange'];return null===_0x265389&&null===_0x3b3d21?0x0:null===_0x265389&&null!==_0x3b3d21?-0x1:null!==_0x265389&&null===_0x3b3d21?0x1:_0x265389['start']['isBefore'](_0x3b3d21['start'])?-0x1:0x1;});const _0x1098d7=new Set(),_0x15c288=new Set();for(const {name:_0x4f5511,data:_0x135b07}of _0x9db446){const {id:_0xee36df}=this['_splitMarkerName'](_0x4f5511);if(null===_0x135b07['oldRange']){const _0x3d4572=this['_handleNewSuggestionMarker'](_0x4f5511);_0x15c288['add'](_0x3d4572);}else{const _0x3ca1b7=this['_suggestions']['get'](_0xee36df);null!==_0x135b07['newRange']||_0x3ca1b7['isInContent']?(_0x1098d7['add'](_0x3ca1b7['head']),_0x15c288['add'](_0x3ca1b7)):this['_removeSuggestion'](_0x3ca1b7);}}_0x15c288['size']>0x0&&this['_refreshSuggestionsChain'](_0x15c288);for(const _0x1da210 of _0x1098d7)this['fire']('suggestionChanged',_0x1da210);}),_0x33d988['model']['on']('applyOperation',(_0x46be3c,_0x234b77)=>{const _0xadec4d=_0x234b77[0x0];if(!this['_suggestions']['size'])return;if(!_0xadec4d['isDocumentOperation'])return;if(_0xadec4d['batch']['isUndo']||!_0xadec4d['batch']['isLocal'])return;let _0x4f6994,_0x49ca7d;switch(_0xadec4d['type']){case'insert':_0x4f6994=_0x33d988['model']['createPositionAt'](_0xadec4d['position']),_0x49ca7d=_0x4f6994['getShiftedBy'](_0xadec4d['howMany']);break;case'split':_0x4f6994=_0x33d988['model']['createPositionAt'](_0xadec4d['splitPosition']),_0x49ca7d=_0x33d988['model']['createPositionAt'](_0xadec4d['moveTargetPosition']);break;case'move':_0x4f6994=_0x33d988['model']['createPositionAt'](_0xadec4d['targetPosition']),_0x49ca7d=_0x4f6994['getShiftedBy'](_0xadec4d['howMany']);break;default:return;}const _0x3ae8e8=_0x33d988['model']['createRange'](_0x4f6994,_0x49ca7d);_0x33d988['model']['change'](()=>{for(const {suggestion:_0x457a89,meta:_0x26249f}of this['_findSuggestions'](_0x3ae8e8)){if(_0x457a89['isMultiRange'])continue;if('formatInline'==_0x457a89['type'])continue;const _0x147690=this['_getAttributeKey'](_0x457a89);if(_0x147690&&this['_isBlockAttribute'](_0x147690)&&'split'!=_0xadec4d['type'])continue;const _0x14aa1c=_0x457a89['data']&&_0x457a89['data']['multipleBlocks'];('formatBlock'!=_0x457a89['type']||'split'==_0xadec4d['type']&&!_0x14aa1c)&&(_0x26249f['containsRangeInObject']||'insertion'==_0x457a89['type']&&_0x26249f['isOwn']||_0x457a89['getFirstRange']()['containsRange'](_0x3ae8e8)&&this['_breakSuggestionMarker'](_0x457a89,_0x4f6994,_0x49ca7d));}});},{'priority':'lowest'}),_0x33d988['model']['on']('deleteContent',(_0x340a8f,_0x41676a)=>{const _0x496967=_0x41676a[0x0],_0x9a9f57=_0x41676a[0x1];if(_0x9a9f57&&_0x9a9f57['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x496967['isCollapsed'])return;const _0x30568d=_0x33d988['model']['schema'],{start:_0x501731,end:_0xe5b017}=_0x496967['getFirstRange'](),_0x340dc5=_0x501731['nodeAfter']&&_0x30568d['isLimit'](_0x501731['nodeAfter'])?null:_0x30568d['getNearestSelectionRange'](_0x501731,'forward'),_0x4788f8=_0xe5b017['nodeBefore']&&_0x30568d['isLimit'](_0xe5b017['nodeBefore'])?null:_0x30568d['getNearestSelectionRange'](_0xe5b017,'backward'),_0x368f97=_0x33d988['model']['createRange'](_0x340dc5?_0x340dc5['start']:_0x501731,_0x4788f8?_0x4788f8['end']:_0xe5b017);_0x33d988['model']['change'](_0x338797=>{this['markDeletion'](_0x368f97);const _0x2ff765=_0x33d988['model']['schema']['getNearestSelectionRange'](_0x368f97['start']);_0x496967['is']('documentSelection')?_0x338797['setSelection'](_0x2ff765):_0x496967['setTo'](_0x2ff765);}),_0x340a8f['stop']();},{'priority':_0x3b217d['normal']+0xa}),_0x33d988['model']['on']('insertContent',(_0x5c8f98,_0x321127)=>{const _0x54bf64=_0x321127[_0x321127['length']-0x1];_0x54bf64&&_0x54bf64['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33d988['model']['change'](()=>{let _0x6c4535=_0x33d988['model']['insertContent'](_0x321127[0x0],_0x321127[0x1],_0x321127[0x2],{'forceDefaultExecution':!0x0});if(!_0x6c4535)return;_0x5c8f98['return']=_0x6c4535['clone']();const _0x39b89c=_0x6c4535['end']['nodeBefore'],_0x2d27c9=_0x33d988['model']['schema'];_0x39b89c&&_0x2d27c9['isBlock'](_0x39b89c)&&!_0x2d27c9['isObject'](_0x39b89c)&&(_0x6c4535=_0x33d988['model']['createRange'](_0x6c4535['start'],_0x33d988['model']['createPositionAt'](_0x39b89c,'end'))),this['markInsertion'](_0x6c4535);}),_0x5c8f98['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x196419=new O(_0x33d988,this['_suggestions']);_0x33d988['commands']['add']('acceptSuggestion',_0x196419),this['enableCommand']('acceptSuggestion');const _0x9b403f=new R(_0x33d988,this['_suggestions']);_0x33d988['commands']['add']('discardSuggestion',_0x9b403f),this['enableCommand']('discardSuggestion'),_0x33d988['commands']['add']('acceptAllSuggestions',new x(_0x33d988,_0x196419,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33d988['commands']['add']('discardAllSuggestions',new x(_0x33d988,_0x9b403f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33d988['commands']['add']('acceptSelectedSuggestions',new E(_0x33d988,_0x196419,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33d988['commands']['add']('discardSelectedSuggestions',new E(_0x33d988,_0x9b403f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4de079=_0x33d988['plugins']['get']('CommentsRepository');this['listenTo'](_0x4de079,'addComment',(_0x1ae8ec,{threadId:_0xa38a81})=>{const _0x49316c=this['_suggestions']['get'](_0xa38a81);_0x49316c&&_0x49316c['commentThread']&&0x1===_0x49316c['commentThread']['length']&&this['_updateSuggestionData'](_0xa38a81,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4de079,'removeComment',(_0x490fbb,{threadId:_0x184c88})=>{const _0x24f75e=this['_suggestions']['get'](_0x184c88);_0x24f75e&&_0x24f75e['commentThread']&&!_0x24f75e['commentThread']['length']&&this['_updateSuggestionData'](_0x184c88,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x44e2b3){const _0x34c262=_0x317089([0x6d,0x39,0x43,0x47,0x74,0x33,0x41,0x4c,0x42,0x51,0x49,0x38,0x66,0x57,0x7a,0x4d,0x5a,0x54,0x48,0x34,0x37,0x6b,0x58,0x6a,0x45,0x62,0x55,0x73,0x35,0x30,0x61,0x72,0x36,0x4e,0x59,0x69,0x6f,0x70,0x6e,0x64,0x63,0x4b,0x52,0x68,0x50,0x31,0x71,0x32,0x6c,0x76,0x77,0x4f,0x46,0x67,0x4a,0x75,0x44,0x56,0x79,0x65,0x78,0x53]),_0x2b7299=0x408961b3,_0x158dc0=0x408e04b3^_0x2b7299,_0x36fa5f=window[_0x317089([0x44,0x61,0x74,0x65])][_0x317089([0x6e,0x6f,0x77])](),_0x267a10=_0x44e2b3[_0x317089([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf4002b=new window[(_0x317089([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27e761=>{_0x267a10[_0x317089([0x6f,0x6e,0x63,0x65])](_0x317089([0x72,0x65,0x61,0x64,0x79]),_0x27e761);}),_0x548300={[_0x317089([0x6b,0x74,0x79])]:_0x317089([0x45,0x43]),[_0x317089([0x75,0x73,0x65])]:_0x317089([0x73,0x69,0x67]),[_0x317089([0x63,0x72,0x76])]:_0x317089([0x50,0x2d,0x32,0x35,0x36]),[_0x317089([0x78])]:_0x317089([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]),[_0x317089([0x79])]:_0x317089([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]),[_0x317089([0x61,0x6c,0x67])]:_0x317089([0x45,0x53,0x32,0x35,0x36])},_0x22a411=_0x267a10[_0x317089([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x317089([0x67,0x65,0x74])](_0x317089([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a7b32(){let _0x783422,_0x45b856=null,_0x2265bb=null;try{if(_0x22a411==_0x317089([0x47,0x50,0x4c]))return _0x317089([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x783422=_0x41cc9b(),!_0x783422)return _0x317089([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x783422[_0x317089([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2265bb=_0x1e5a5f(_0x783422[_0x317089([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x783422[_0x317089([0x6a,0x74,0x69])])),await _0x4e4beb()?_0x4e4565()?_0x1ecc8f()?_0x317089([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47fe31()?(_0x783422[_0x317089([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317089([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x45b856=_0x1f8740(_0x317089([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x783422[_0x317089([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317089([0x74,0x72,0x69,0x61,0x6c])&&(_0x45b856=_0x1f8740(_0x317089([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd81797()):_0x317089([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x317089([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x317089([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xbab9f4){return _0x317089([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ecc8f(){const _0x1d3185=[_0x317089([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x317089([0x74,0x72,0x69,0x61,0x6c])][_0x317089([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x783422[_0x317089([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36fa5f/0x3e8:0xe10*_0x158dc0;return _0x783422[_0x317089([0x65,0x78,0x70])]<_0x1d3185;}function _0x4e4565(){const _0x238c5a=_0x783422[_0x317089([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x238c5a)return!0x1;if(_0x238c5a[_0x317089([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317089([0x2a])))return!0x0;if(_0x238c5a[_0x317089([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317089([0x54,0x43])))return!0x0;if(_0x238c5a[_0x317089([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317089([0x52,0x54,0x43]))){if(_0x3f27ca())return!0x0;if(_0x18c0fc()||_0xffcace())return!0x0;}return!0x1;}function _0x47fe31(){const _0x2aa1b7=_0x783422[_0x317089([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2aa1b7||0x0==_0x2aa1b7[_0x317089([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1950d5}=new URL(window[_0x317089([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2aa1b7[_0x317089([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1950d5))return!0x0;const _0x488aa1=_0x1950d5[_0x317089([0x73,0x70,0x6c,0x69,0x74])](_0x317089([0x2e]));return _0x2aa1b7[_0x317089([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e1614=>_0x4e1614[_0x317089([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317089([0x2a])))[_0x317089([0x6d,0x61,0x70])](_0x31ca60=>_0x31ca60[_0x317089([0x73,0x70,0x6c,0x69,0x74])](_0x317089([0x2e])))[_0x317089([0x73,0x6f,0x6d,0x65])](_0x505587=>_0x488aa1[_0x317089([0x65,0x76,0x65,0x72,0x79])]((_0x5b4c31,_0x230cf4)=>_0x505587[_0x230cf4]===_0x5b4c31||_0x505587[_0x230cf4]===_0x317089([0x2a])));}function _0xd81797(){return _0x45b856&&_0x2265bb?new window[(_0x317089([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ef465,_0x4cbf41)=>{_0x45b856[_0x317089([0x74,0x68,0x65,0x6e])](_0x5ef465,_0x4cbf41),_0x2265bb[_0x317089([0x74,0x68,0x65,0x6e])](_0x4debc7=>{_0x4debc7!=_0x317089([0x56,0x61,0x6c,0x69,0x64])&&_0x5ef465(_0x4debc7);},_0x4cbf41);}):_0x45b856||_0x2265bb||_0x317089([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e5a5f(_0x8526e8,_0x4d2359){return new window[(_0x317089([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a511e=>{if(_0x41ae61())return _0x5a511e(_0x317089([0x56,0x61,0x6c,0x69,0x64]));_0x161cb8(),_0x267a10[_0x317089([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x317089([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52efef=!0x1;const _0x3028f9=_0x2fdf50();function _0x1eb1fe(_0x32750f){return!!_0x32750f&&(typeof _0x32750f===_0x317089([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32750f===_0x317089([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32750f[_0x317089([0x74,0x68,0x65,0x6e])]===_0x317089([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32750f[_0x317089([0x63,0x61,0x74,0x63,0x68])]===_0x317089([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x344451(_0x1febba){_0x256978(_0x1febba)[_0x317089([0x74,0x68,0x65,0x6e])](_0x2400b4=>{if(!_0x2400b4||_0x2400b4[_0x317089([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x317089([0x6f,0x6b]))return _0x317089([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b4e31(_0x36682e(_0x3028f9+_0x4d2359))!=_0x2400b4[_0x317089([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x317089([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x317089([0x56,0x61,0x6c,0x69,0x64]);})[_0x317089([0x74,0x68,0x65,0x6e])](_0x4d095e=>(_0x3ab35e(),_0x4d095e),()=>{const _0x262f61=_0x9801df();return null==_0x262f61?(_0x3ab35e(),_0x317089([0x56,0x61,0x6c,0x69,0x64])):_0x317089(_0x36fa5f-_0x262f61>(0x6485e5b3^_0x2b7299)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x317089([0x74,0x68,0x65,0x6e])](_0x5a511e)[_0x317089([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a511e(_0x317089([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1400f9=0x40bf8f33^_0x2b7299;function _0x3ab35e(){const _0x43c80f=_0x317089([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b4e31(_0x36682e(_0x8526e8)),_0x5417ea=_0x372e9c(_0x1b4e31(window[_0x317089([0x4d,0x61,0x74,0x68])][_0x317089([0x63,0x65,0x69,0x6c])](_0x36fa5f/_0x1400f9)));window[_0x317089([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317089([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43c80f,_0x5417ea);}function _0x9801df(){const _0x35c750=_0x317089([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b4e31(_0x36682e(_0x8526e8)),_0xe273e=window[_0x317089([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317089([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35c750);return _0xe273e?window[_0x317089([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x372e9c(_0xe273e),0x10)*_0x1400f9:null;}function _0x256978(_0x184c6c){return new window[(_0x317089([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32a930,_0x765700)=>{_0x184c6c[_0x317089([0x74,0x68,0x65,0x6e])](_0x32a930,_0x765700),window[_0x317089([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x765700,0x4088b573^_0x2b7299);});}}_0x267a10[_0x317089([0x6f,0x6e])](_0x317089([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b6da3,_0x50f8c7)=>{if(_0x50f8c7[0x0]!=_0x8526e8)return _0x5a511e(_0x317089([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50f8c7[0x1]={..._0x50f8c7[0x1],[_0x317089([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3028f9};},{[_0x317089([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317089([0x68,0x69,0x67,0x68])}),_0x267a10[_0x317089([0x6f,0x6e])](_0x317089([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3904a9=>{_0x1eb1fe(_0x3904a9[_0x317089([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52efef=!0x0,_0x344451(_0x3904a9[_0x317089([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x317089([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317089([0x6c,0x6f,0x77])}),_0xf4002b[_0x317089([0x74,0x68,0x65,0x6e])](()=>{_0x52efef||_0x5a511e(_0x317089([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41ae61(){return _0x267a10[_0x317089([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317089([0x76,0x69,0x65,0x77])][_0x317089([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x317089([0x61,0x75,0x74,0x6f]);}function _0x161cb8(){_0x267a10[_0x317089([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317089([0x76,0x69,0x65,0x77])][_0x317089([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x317089([0x61,0x75,0x74,0x6f]);}}function _0x1f8740(_0x35de68){const _0x3b1b91=[new window[(_0x317089([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ac916=>setTimeout(_0x3ac916,0x40805f7f^_0x2b7299)),_0xf4002b[_0x317089([0x74,0x68,0x65,0x6e])](()=>new window[(_0x317089([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x74452=>{let _0xacdd54=0x0;_0x267a10[_0x317089([0x6d,0x6f,0x64,0x65,0x6c])][_0x317089([0x6f,0x6e])](_0x317089([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a539f,_0x478f38)=>{_0x478f38[0x0][_0x317089([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xacdd54++,_0xacdd54==(0x4089604b^_0x2b7299)&&(_0x74452(),_0x4a539f[_0x317089([0x6f,0x66,0x66])]());});}))];return window[_0x317089([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x317089([0x72,0x61,0x63,0x65])](_0x3b1b91)[_0x317089([0x74,0x68,0x65,0x6e])](()=>_0x35de68);}async function _0x409a98(){await _0xf4002b,_0x267a10[_0x317089([0x6d,0x6f,0x64,0x65,0x6c])][_0x317089([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31d911,_0x267a10[_0x317089([0x6d,0x6f,0x64,0x65,0x6c])][_0x317089([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31d911,_0x267a10[_0x317089([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x317089([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f27ca(){return _0x3e195e(_0x317089([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x525f30(_0x317089([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x317089([0x73,0x74,0x61,0x74,0x65])]==_0x317089([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x18c0fc(){return _0x3e195e(_0x317089([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 _0xffcace(){return _0x3e195e(_0x317089([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x105979(_0x252a53){const _0x56a267=_0x670825();_0x267a10[_0x56a267]=_0x317089([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x252a53,_0x252a53!=_0x317089([0x56,0x61,0x6c,0x69,0x64])&&_0x409a98();}function _0x670825(){const _0x4a4856=window[_0x317089([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x317089([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x317089([0x6e,0x6f,0x77])]())[_0x317089([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x317089([0x2e]),'');let _0xae2a98=_0x317089([0x6d]);for(let _0x74c8ac=0x0;_0x74c8ac<_0x4a4856[_0x317089([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x74c8ac+=0x2){let _0x55371f=window[_0x317089([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a4856[_0x317089([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x74c8ac,_0x74c8ac+0x2));_0x55371f>=_0x34c262[_0x317089([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55371f-=_0x34c262[_0x317089([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xae2a98+=_0x34c262[_0x55371f];}return _0xae2a98;}function _0x41cc9b(){const _0x6b8784=_0x22a411[_0x317089([0x73,0x70,0x6c,0x69,0x74])](_0x317089([0x2e]));if(0x3!=_0x6b8784[_0x317089([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b284a(_0x6b8784[0x1]);function _0x2b284a(_0x55cf37){const _0x20125e=_0xbce13(_0x55cf37);return _0x20125e&&_0x40c51e()?_0x20125e:null;function _0x40c51e(){const _0x24b0e2=_0x20125e[_0x317089([0x6a,0x74,0x69])],_0x413a98=window[_0x317089([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24b0e2[_0x317089([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24b0e2[_0x317089([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a200a={..._0x20125e,[_0x317089([0x6a,0x74,0x69])]:_0x24b0e2[_0x317089([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24b0e2[_0x317089([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a200a[_0x317089([0x76,0x63])],_0x36682e(_0x1a200a)==_0x413a98;}}}async function _0x4e4beb(){let _0xa8505=!0x0;try{const _0x2ef79c=_0x22a411[_0x317089([0x73,0x70,0x6c,0x69,0x74])](_0x317089([0x2e])),[_0x3432bc,_0x2e3eed,_0x564e46]=_0x2ef79c;return _0x241b01(_0x3432bc),await _0x5e19d1(_0x3432bc,_0x2e3eed,_0x564e46),_0xa8505;}catch(_0x46caf3){return!0x1;}function _0x241b01(_0x13e2b4){const _0x28e12e=_0xbce13(_0x13e2b4);_0x28e12e&&_0x28e12e[_0x317089([0x61,0x6c,0x67])]==_0x317089([0x45,0x53,0x32,0x35,0x36])||(_0xa8505=!0x1);}async function _0x5e19d1(_0x530857,_0x2dbc68,_0x59f836){const _0x56a95e=window[_0x317089([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x317089([0x66,0x72,0x6f,0x6d])](_0x34e10a(_0x59f836),_0x55d671=>_0x55d671[_0x317089([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1cee43=new window[(_0x317089([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x317089([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x530857+_0x317089([0x2e])+_0x2dbc68),_0x20d5a5=window[_0x317089([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x317089([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20d5a5)return;const _0x519002=await _0x20d5a5[_0x317089([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x317089([0x6a,0x77,0x6b]),_0x548300,{[_0x317089([0x6e,0x61,0x6d,0x65])]:_0x317089([0x45,0x43,0x44,0x53,0x41]),[_0x317089([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x317089([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x317089([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20d5a5[_0x317089([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x317089([0x6e,0x61,0x6d,0x65])]:_0x317089([0x45,0x43,0x44,0x53,0x41]),[_0x317089([0x68,0x61,0x73,0x68])]:{[_0x317089([0x6e,0x61,0x6d,0x65])]:_0x317089([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x519002,_0x56a95e,_0x1cee43)||(_0xa8505=!0x1);}}function _0xbce13(_0x3bfea4){return _0x3bfea4[_0x317089([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x317089([0x65,0x79]))?JSON[_0x317089([0x70,0x61,0x72,0x73,0x65])](_0x34e10a(_0x3bfea4)):null;}function _0x34e10a(_0xc2a5ca){return window[_0x317089([0x61,0x74,0x6f,0x62])](_0xc2a5ca[_0x317089([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x317089([0x2b]))[_0x317089([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x317089([0x2f])));}function _0x36682e(_0x3d73ab){let _0x536629=0x1505;function _0x4c710e(_0x21e184){for(let _0x18d432=0x0;_0x18d432<_0x21e184[_0x317089([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18d432++){const _0x8a8ac1=_0x21e184[_0x317089([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18d432);_0x536629=(_0x536629<<0x5)+_0x536629+_0x8a8ac1,_0x536629&=_0x536629;}}function _0x772abd(_0x4e0a93){Array[_0x317089([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e0a93)?_0x4e0a93[_0x317089([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x772abd):_0x4e0a93&&typeof _0x4e0a93==_0x317089([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x317089([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e0a93)[_0x317089([0x73,0x6f,0x72,0x74])]()[_0x317089([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x508a82,_0x17a9e3])=>{_0x4c710e(_0x508a82),_0x772abd(_0x17a9e3);}):_0x4c710e(window[_0x317089([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e0a93));}return _0x772abd(_0x3d73ab),_0x536629>>>0x0;}function _0x1b4e31(_0x4935ca){return _0x4935ca[_0x317089([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x317089([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x317089([0x30]));}function _0x372e9c(_0x50a847){return _0x50a847[_0x317089([0x73,0x70,0x6c,0x69,0x74])]('')[_0x317089([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x317089([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e195e(_0x3621d5){return _0x267a10[_0x317089([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x317089([0x68,0x61,0x73])](_0x3621d5);}function _0x525f30(_0x2071c2){return _0x267a10[_0x317089([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x317089([0x67,0x65,0x74])](_0x2071c2);}function _0x31d911(){}function _0x317089(_0x380383){return _0x380383['map'](_0x5a3b7b=>String['fromCharCode'](_0x5a3b7b))['join']('');}_0x105979(await _0x5a7b32());}(this);}set['adapter'](_0x241882){if(this['_adapter'])throw new _0x525143('track-changes-adapter-already-set',this);this['_adapter']=_0x241882;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5726da=!0x1,toJSON:_0x2c0e39=!0x1}={}){const _0x8c93d9=[];for(const _0x4a37cb of this['_suggestions']['values']())_0x5726da&&!_0x4a37cb['isInContent']||_0x8c93d9['push'](_0x4a37cb);return _0x2c0e39?_0x8c93d9['map'](_0x3a37a1=>_0x3a37a1['toJSON']()):_0x8c93d9;}['getSuggestion'](_0x3f319c){const _0x2fb570=this['_suggestions']['get'](_0x3f319c);if(!_0x2fb570)throw new _0x525143('track-changes-suggestion-not-found',this);return _0x2fb570;}['hasSuggestion'](_0xace105){return this['_suggestions']['has'](_0xace105);}['addSuggestionData'](_0x50c0bd){const {authorId:_0x5e83f6,id:_0x3c9822,attributes:_0x42dea8}=_0x50c0bd,[_0x13f0cd,_0x4a9b2a]=_0x50c0bd['type']['split'](':'),_0x532315=this['_suggestions']['get'](_0x3c9822)||this['_createSuggestion'](_0x13f0cd,_0x4a9b2a,_0x3c9822,_0x5e83f6,_0x42dea8);if(this['_addThreadToSuggestion'](_0x532315),this['_checkSuggestionCorrectness'](_0x532315,_0x13f0cd,_0x4a9b2a||null,_0x5e83f6),_0x532315['createdAt']=_0x50c0bd['createdAt'],_0x532315['_isDataLoaded']=!0x0,_0x42dea8&&_0x42dea8['@external']){const _0x27f7ec=_0x42dea8['@external'],_0x24b115=this['_getExternalAuthor'](_0x27f7ec['authorName']);_0x532315['authoredAt']=_0x27f7ec['createdAt'],_0x532315['author']=_0x24b115,_0x532315['isExternal']=!0x0;}else _0x532315['authoredAt']=_0x50c0bd['createdAt'];switch(_0x50c0bd['data']&&(_0x532315['data']=_0x50c0bd['data']),_0x50c0bd['attributes']&&(_0x532315['attributes']=_0x50c0bd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x532315['_saved']=!0x0),this['_suggestionState']['get'](_0x532315)){case'notReady':this['_suggestionState']['set'](_0x532315,'dataReady');break;case'markerReady':_0x532315['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x532315])),this['_refreshSuggestionsChain'](new Set([_0x532315])),this['_suggestionState']['set'](_0x532315,'ready'),this['fire']('suggestionLoaded',_0x532315)):this['_suggestionState']['set'](_0x532315,'removed');}return _0x532315;}['acceptSuggestion'](_0x4e2a31){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x59331f of _0x4e2a31['getAllAdjacentSuggestions']())_0x59331f['accept']();});});}['discardSuggestion'](_0x20fa96){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x49e128 of _0x20fa96['getAllAdjacentSuggestions']())_0x49e128['discard']();});});}['enableCommand'](_0x490ef9,_0x1ad5b6){const _0x376014=this['editor']['commands']['get'](_0x490ef9);if(!_0x376014)throw new _0x525143('track-changes-command-not-found',this,{'commandName':_0x490ef9});if(this['_enabledCommands']['has'](_0x376014))throw new _0x525143('track-changes-enable-command-twice',this,{'commandName':_0x490ef9});this['_enabledCommands']['add'](_0x376014),_0x1ad5b6&&_0x376014['on']('execute',(_0x3ef0b2,_0x3c50bb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3c50bb['length']>0x0&&_0x3c50bb[_0x3c50bb['length']-0x1]&&_0x3c50bb[_0x3c50bb['length']-0x1]['forceDefaultExecution']?_0x3c50bb['pop']():(_0x3ef0b2['return']=_0x1ad5b6((..._0xf07a56)=>_0x376014['execute'](..._0xf07a56,{'forceDefaultExecution':!0x0}),..._0x3c50bb),_0x3ef0b2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2d488e){let _0x447a77,_0x716dce;const _0xa904f1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x447a77=_0x2d488e();}catch(_0x33fa25){_0x716dce=_0x33fa25;}return _0xa904f1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x716dce&&_0x525143['rethrowUnexpectedError'](_0x716dce,this),_0x447a77;}['markInsertion'](_0x1fdd70,_0x885753=null,_0x1232dc={}){if(_0x1fdd70['isCollapsed'])return null;const _0x5687fb=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3c9eca,meta:_0x41d531}of this['_findSuggestions'](_0x1fdd70,'insertion'))if(_0x41d531['isOwn']){if(!_0x41d531['isNextTo']){if(_0x41d531['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x3c9eca,_0x1232dc))continue;return _0x3c9eca;}if(Xt(_0x3c9eca,_0x1232dc))return _0x3c9eca;this['_breakSuggestionMarker'](_0x3c9eca,_0x1fdd70['start'],_0x1fdd70['end']);break;}if(_0x885753==_0x3c9eca['subType']&&Xt(_0x3c9eca,_0x1232dc)){const _0x34276d=_0x3c9eca['getFirstRange']();return _0x34276d['start']['isEqual'](_0x1fdd70['end'])?this['_setSuggestionRange'](_0x3c9eca,this['_model']['createRange'](_0x1fdd70['start'],_0x34276d['end'])):this['_setSuggestionRange'](_0x3c9eca,this['_model']['createRange'](_0x34276d['start'],_0x1fdd70['end'])),_0x3c9eca;}}const _0xd8279b=_0x2fdf50(),_0x465bdf=_0x5687fb['id'],_0x300fe6=_0x885753?'insertion:'+_0x885753:'insertion',_0x2f4e2d=this['_setSuggestionData']({'id':_0xd8279b,'type':_0x300fe6,'createdAt':new Date(),'authorId':_0x465bdf,'attributes':_0x1232dc});return this['_addSuggestionMarker'](_0x300fe6,_0xd8279b,_0x465bdf,_0x1fdd70),_0x2f4e2d;}['markMultiRangeInsertion'](_0x5e671e,_0x4f4fa4='multi',_0x470dd4={}){const _0x112158=this['editor']['plugins']['get']('Users')['me'],_0x5b5b0b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4f4fa4,'join');for(const _0x2476a3 of this['getSuggestions']())if(_0x2476a3['author']['id']==_0x112158['id']&&'insertion'==_0x2476a3['type']&&_0x2476a3['subType']==_0x4f4fa4&&Xt(_0x2476a3,_0x470dd4)&&(_0x5b5b0b(_0x2476a3['getRanges'](),_0x5e671e)||_0x5b5b0b(_0x5e671e,_0x2476a3['getRanges']()))){for(const _0x322696 of _0x5e671e)_0x2476a3['addRange'](_0x322696);return _0x2476a3;}for(const {suggestion:_0x1fa0c6,meta:_0xcc3b13}of this['_findSuggestions'](_0x5e671e,'insertion')){if(!_0xcc3b13['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xcc3b13['containsRangeInObject'])continue;if(!Xt(_0x1fa0c6,_0x470dd4))continue;let _0x1a199d=!0x0;for(const _0x1a1705 of _0x1fa0c6['getRanges']())for(const _0xed46a6 of _0x5e671e)if(!_0x1a1705['containsRange'](_0xed46a6)){_0x1a199d=!0x1;break;}if(_0x1a199d)return _0x1fa0c6;}const _0x3711ca=_0x2fdf50(),_0x374a3d=_0x112158['id'],_0x3a7ddc='insertion:'+_0x4f4fa4,_0x28f40f=this['_setSuggestionData']({'id':_0x3711ca,'type':_0x3a7ddc,'createdAt':new Date(),'authorId':_0x374a3d,'attributes':_0x470dd4});for(const _0x2e0410 of _0x5e671e)this['_addSuggestionMarker'](_0x3a7ddc,_0x3711ca,_0x374a3d,_0x2e0410,o['getMultiRangeId']());return _0x28f40f;}['markInlineFormat'](_0xeaadcc,_0x492e71,_0x3684be=null,_0x5d430e={}){if(_0x3684be=_0x3684be||Kt(_0x492e71),_0xeaadcc['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x58c748=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3684be,'accept');return this['forceDefaultExecution'](()=>_0x58c748([_0xeaadcc],_0x492e71,_0x5d430e)),null;}const _0x1318f5=this['editor']['plugins']['get']('Users')['me'],_0x3676d5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2662d9,meta:_0x4b3aa8}of this['_findSuggestions'](_0xeaadcc,'insertion'))_0x4b3aa8['isOwn']&&!_0x4b3aa8['isInsideObject']&&_0x3676d5['push'](..._0x2662d9['getRanges']());}const _0x32ec84=function(_0x14dd81,_0x25ed4a){const _0x5f3745=[];for(const _0x166cf5 of _0x25ed4a){const _0x3726d6=_0x14dd81['getIntersection'](_0x166cf5);_0x3726d6&&_0x5f3745['push'](_0x3726d6);}return _0x5f3745;}(_0xeaadcc,_0x3676d5),_0x1a6340=function(_0x5331d6,_0x50b1d4){const _0x1014ee=[_0x5331d6];for(const _0x11f5e2 of _0x50b1d4){let _0x1353d3=0x0;for(;_0x1353d3<_0x1014ee['length'];){const _0x3ffc2e=_0x1014ee[_0x1353d3]['getDifference'](_0x11f5e2);_0x1014ee['splice'](_0x1353d3,0x1,..._0x3ffc2e),_0x1353d3+=_0x3ffc2e['length'];}}return _0x1014ee;}(_0xeaadcc,_0x3676d5);_0x32ec84['length']&&this['_model']['change'](()=>{for(const _0xe00428 of _0x32ec84){const _0x58f3b8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3684be,'accept');this['forceDefaultExecution'](()=>_0x58f3b8([_0xe00428],_0x492e71,_0x5d430e));}});for(const _0x3afc86 of _0x1a6340){let _0x2bbf22=null,_0x2b0146=_0x3afc86['start'],_0x5c4df5=_0x3afc86['end'];for(const {suggestion:_0x348f2a,meta:_0x27dfff}of this['_findSuggestions'](_0x3afc86,'formatInline')){if(!_0x27dfff['isOwn'])continue;if(_0x348f2a['subType']!=_0x3684be)continue;if(!Xt(_0x348f2a,_0x5d430e))continue;const _0x2b4a56=_0x348f2a['getFirstRange']();if(_0x2b4a56['containsRange'](_0x3afc86,!0x0))return null;_0x2b0146=_0x2b0146['isBefore'](_0x2b4a56['start'])?_0x2b0146:_0x2b4a56['start'],_0x5c4df5=_0x5c4df5['isAfter'](_0x2b4a56['end'])?_0x5c4df5:_0x2b4a56['end'],_0x2bbf22?_0x2b4a56['start']['isBefore'](_0x2bbf22['getFirstRange']()['start'])?(_0x2bbf22['removeMarkers'](),_0x2bbf22=_0x348f2a):_0x348f2a['removeMarkers']():_0x2bbf22=_0x348f2a;}const _0x1e9606=this['_model']['createRange'](_0x2b0146,_0x5c4df5);if(_0x2bbf22)this['_setSuggestionRange'](_0x2bbf22,_0x1e9606);else{const _0x36804c=_0x2fdf50(),_0x434731=_0x1318f5['id'];this['_setSuggestionData']({'id':_0x36804c,'type':'formatInline:'+_0x3684be,'data':_0x492e71,'createdAt':new Date(),'authorId':_0x434731,'attributes':_0x5d430e}),this['_addSuggestionMarker']('formatInline:'+_0x3684be,_0x36804c,_0x434731,_0x1e9606);}}return null;}['markBlockFormat'](_0x5d667a,_0x1414f7,_0x283ed3=[],_0x44dd01=null,_0x30836e={}){_0x1414f7['formatGroupId']||(_0x1414f7['formatGroupId']=_0x1414f7['commandName']),_0x1414f7['multipleBlocks']=_0x5d667a['is']('range'),_0x44dd01=_0x44dd01||Kt(_0x1414f7);const _0x2e7779=_0x283ed3['map'](_0x597c41=>zt(_0x597c41,this['_model'])),_0x59e38b=_0x5d667a['is']('range')?_0x5d667a:zt(_0x5d667a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4e0f8f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44dd01,'accept');return this['forceDefaultExecution'](()=>_0x4e0f8f([_0x59e38b],_0x1414f7,_0x30836e)),null;}_0x2e7779['push'](_0x59e38b);let _0xe1101e=!0x0;for(const _0x11b4b2 of _0x2e7779)if(!this['_rangeIsInLocalUserInsertion'](_0x11b4b2)){_0xe1101e=!0x1;break;}if(_0xe1101e&&'always'!==this['_trackFormatChanges']){const _0x478ed2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44dd01,'accept');return this['forceDefaultExecution'](()=>_0x478ed2([_0x59e38b],_0x1414f7,_0x30836e)),null;}let _0x4b807f=null,_0x149b9f=_0x59e38b['start'],_0x4ca5d3=_0x59e38b['end'];for(const {suggestion:_0x450f7d,meta:_0x3b3978}of this['_findSuggestions'](_0x59e38b,'formatBlock')){if(!_0x3b3978['isOwn'])continue;if(_0x3b3978['isNextTo']||_0x3b3978['containsRangeInObject']||_0x3b3978['isInsideObject'])continue;if(_0x450f7d['data']['formatGroupId']!=_0x1414f7['formatGroupId'])continue;if(!Xt(_0x450f7d,_0x30836e))continue;const _0x3fb30e=_0x450f7d['getFirstRange']();if(_0x450f7d['subType']==_0x44dd01){if(_0x3fb30e['containsRange'](_0x59e38b,!0x0))return null;_0x149b9f=_0x149b9f['isBefore'](_0x3fb30e['start'])?_0x149b9f:_0x3fb30e['start'],_0x4ca5d3=_0x4ca5d3['isAfter'](_0x3fb30e['end'])?_0x4ca5d3:_0x3fb30e['end'],_0x4b807f?_0x3fb30e['start']['isBefore'](_0x4b807f['getFirstRange']()['start'])?(_0x4b807f['removeMarkers'](),_0x4b807f=_0x450f7d):_0x450f7d['removeMarkers']():_0x4b807f=_0x450f7d;}else{const _0x23152d=_0x59e38b['getIntersection'](_0x3fb30e);this['_cutOutSuggestionMarker'](_0x450f7d,_0x23152d);}}const _0x24508e=this['editor']['plugins']['get']('Users')['me'],_0x57f152=_0x2fdf50(),_0x5d912c=_0x24508e['id'];if(_0x4b807f)return this['_setSuggestionRange'](_0x4b807f,this['_model']['createRange'](_0x149b9f,_0x4ca5d3)),_0x4b807f;{const _0x835702=this['_setSuggestionData']({'id':_0x57f152,'type':'formatBlock:'+_0x44dd01,'data':_0x1414f7,'createdAt':new Date(),'authorId':_0x5d912c,'attributes':_0x30836e});return this['_addSuggestionMarker']('formatBlock:'+_0x44dd01,_0x57f152,_0x5d912c,this['_model']['createRange'](_0x149b9f,_0x4ca5d3)),_0x835702;}}['markMultiRangeBlockFormat'](_0x364c99,_0x51e03a,_0x19e753=[],_0x27e8cd=null,_0x4593b5={}){_0x51e03a['formatGroupId']||(_0x51e03a['formatGroupId']=_0x51e03a['commandName']);const _0x50f40b=_0x364c99[0x0];_0x51e03a['multipleBlocks']=_0x50f40b['is']('range'),_0x27e8cd=_0x27e8cd||Kt(_0x51e03a);const _0x5c963d=_0x19e753['map'](_0x79f9f8=>zt(_0x79f9f8,this['_model'])),_0x3c6880=_0x50f40b['is']('range')?_0x364c99:_0x364c99['map'](_0xbb3593=>zt(_0xbb3593,this['_model']));if('never'===this['_trackFormatChanges']){const _0x18a082=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27e8cd,'accept');return this['forceDefaultExecution'](()=>_0x18a082(_0x3c6880,_0x51e03a,_0x4593b5)),null;}_0x5c963d['push'](..._0x3c6880);let _0x28e850=!0x0;for(const _0x4d6d76 of _0x5c963d)if(!this['_rangeIsInLocalUserInsertion'](_0x4d6d76)){_0x28e850=!0x1;break;}if(_0x28e850&&'always'!==this['_trackFormatChanges']){const _0x1f7aa9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27e8cd,'accept');return this['forceDefaultExecution'](()=>_0x1f7aa9(_0x3c6880,_0x51e03a,_0x4593b5)),null;}const _0x455559=this['editor']['plugins']['get']('Users')['me'];for(const _0xfa77a9 of this['getSuggestions']()){if(_0xfa77a9['author']['id']!=_0x455559['id'])continue;if('formatBlock'!=_0xfa77a9['type']||_0xfa77a9['data']['formatGroupId']!=_0x51e03a['formatGroupId'])continue;if(!Xt(_0xfa77a9,_0x4593b5))continue;const _0x143af9=_0xfa77a9['subType']==_0x27e8cd;for(let _0x702d9c=0x0;_0x702d9c<_0x3c6880['length'];_0x702d9c++){const _0x26600a=_0x3c6880[_0x702d9c];for(const _0x2228f3 of _0xfa77a9['getMarkers']()){const _0x2ed3de=_0x2228f3['getRange']();if(_0x26600a['isEqual'](_0x2ed3de)){_0x143af9?(_0x3c6880['splice'](_0x702d9c,0x1),_0x702d9c--):_0xfa77a9['removeMarker'](_0x2228f3['name']);break;}}}}if(0x0==_0x3c6880['length'])return null;const _0x1f3fc5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27e8cd,'join');for(const _0x474510 of this['getSuggestions']())if(_0x474510['author']['id']==_0x455559['id']&&'formatBlock'==_0x474510['type']&&_0x474510['data']['formatGroupId']==_0x51e03a['formatGroupId']&&_0x474510['subType']==_0x27e8cd&&Xt(_0x474510,_0x4593b5)&&(_0x1f3fc5(_0x474510['getRanges'](),_0x3c6880)||_0x1f3fc5(_0x3c6880,_0x474510['getRanges']()))){for(const _0xe8c9fc of _0x3c6880)_0x474510['addRange'](_0xe8c9fc);return _0x474510;}const _0xd03e10=_0x2fdf50(),_0x48ac5b=_0x455559['id'],_0x30cfd4='formatBlock:'+_0x27e8cd,_0x3b79ab=this['_setSuggestionData']({'id':_0xd03e10,'type':_0x30cfd4,'data':_0x51e03a,'createdAt':new Date(),'authorId':_0x48ac5b,'attributes':_0x4593b5});for(const _0x203b9a of _0x3c6880)this['_addSuggestionMarker'](_0x30cfd4,_0xd03e10,_0x48ac5b,_0x203b9a,o['getMultiRangeId']());return _0x3b79ab;}['markDeletion'](_0x1315b9,_0x853fe8=null,_0x3c067e={}){if(_0x1315b9['isCollapsed'])return null;const _0x1d9127=this['editor']['plugins']['get']('Users')['me'],_0x222dcc=new _0x25f92b(_0x1315b9['start'],_0x1315b9['end']);for(const {suggestion:_0x13d06f,meta:_0x26055e}of this['_findSuggestions'](_0x222dcc,'insertion'))if(_0x26055e['isOwn']&&!_0x26055e['isNextTo']){if(_0x13d06f['isMultiRange']){const _0x342d94=_0x13d06f['getRanges']()['filter'](_0x3d1702=>'$graveyard'!=_0x3d1702['root']['rootName']);_0x342d94['every'](_0x5d8145=>_0x222dcc['containsRange'](_0x5d8145,!0x0))&&_0x13d06f['discard']();if(_0x342d94['some'](_0x360690=>_0x360690['containsRange'](_0x222dcc,!0x0))){const _0x2f076a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x853fe8,'accept');return this['forceDefaultExecution'](()=>_0x2f076a([_0x222dcc],null,_0x3c067e)),null;}}else{const _0x110770=_0x222dcc['getIntersection'](_0x13d06f['getFirstRange']());null!==_0x110770&&_0x13d06f['_onDiscard']([_0x110770],null,_0x3c067e);}}if(_0x222dcc['detach'](),_0x222dcc['isCollapsed']||'$graveyard'==_0x222dcc['root']['rootName'])return null;let _0x594e16=null,_0x39a4f0=_0x222dcc['start'],_0x38463d=_0x222dcc['end'];const _0x30d7b9=this['_findSuggestions'](_0x222dcc,'deletion');for(const {suggestion:_0x5b9b6a,meta:_0x17eba7}of _0x30d7b9){const _0x54c73f=this['_model']['createRange'](_0x39a4f0,_0x38463d);if(_0x17eba7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17eba7['containsRangeInObject']&&!_0x17eba7['isInsideObject'])){if(_0x5b9b6a['isMultiRange']){if(!Xt(_0x5b9b6a,_0x3c067e))continue;let _0x15f4f8=!0x0;for(const _0x78bbc1 of _0x5b9b6a['getRanges']()){if(_0x78bbc1['containsRange'](_0x54c73f,!0x0))return _0x5b9b6a;_0x54c73f['containsRange'](_0x78bbc1)||(_0x15f4f8=!0x1);}_0x15f4f8&&_0x5b9b6a['discard']();}else{const _0x2ae627=_0x5b9b6a['getFirstRange']();if(_0x2ae627['containsRange'](_0x54c73f,!0x0))return _0x5b9b6a;if(!Xt(_0x5b9b6a,_0x3c067e)){_0x54c73f['containsRange'](_0x2ae627)?_0x5b9b6a['removeMarkers']():_0x2ae627['containsPosition'](_0x39a4f0)?_0x39a4f0=_0x2ae627['end']:_0x2ae627['containsPosition'](_0x38463d)&&(_0x38463d=_0x2ae627['start']);continue;}_0x39a4f0=_0x39a4f0['isBefore'](_0x2ae627['start'])?_0x39a4f0:_0x2ae627['start'],_0x38463d=_0x38463d['isAfter'](_0x2ae627['end'])?_0x38463d:_0x2ae627['end'],_0x3c067e=Object['assign']({},_0x5b9b6a['attributes']),_0x594e16?_0x2ae627['start']['isBefore'](_0x594e16['getFirstRange']()['start'])?(_0x594e16['removeMarkers'](),_0x594e16=_0x5b9b6a):_0x5b9b6a['removeMarkers']():_0x594e16=_0x5b9b6a;}}}if(_0x594e16)return this['_setSuggestionRange'](_0x594e16,this['_model']['createRange'](_0x39a4f0,_0x38463d)),_0x594e16;{const _0x35108b=_0x2fdf50(),_0x8d66ef=this['_model']['createRange'](_0x39a4f0,_0x38463d),_0x2097fe=_0x1d9127['id'],_0x4e3b14=_0x853fe8?'deletion:'+_0x853fe8:'deletion',_0x27df19=this['_setSuggestionData']({'id':_0x35108b,'type':_0x4e3b14,'createdAt':new Date(),'authorId':_0x2097fe,'attributes':_0x3c067e});return this['_addSuggestionMarker'](_0x4e3b14,_0x35108b,_0x2097fe,_0x8d66ef),_0x27df19;}}['markMultiRangeDeletion'](_0x44d0c0,_0x35276a='multi',_0x5f0ead={}){const _0x457812=this['editor']['plugins']['get']('Users')['me'],_0x4ddab7=_0x44d0c0['map'](_0x425a97=>new _0x25f92b(_0x425a97['start'],_0x425a97['end'])),_0x32d337=new Set();for(const {suggestion:_0x51e9a4,meta:_0x42183b}of this['_findSuggestions'](_0x4ddab7,'insertion'))_0x42183b['isOwn']&&!_0x42183b['isNextTo']&&_0x32d337['add'](_0x51e9a4);for(const _0xc6e434 of _0x32d337)if(_0xc6e434['isMultiRange']){const _0x5e5159=_0xc6e434['getRanges']();(!_0xc6e434['attributes']||!_0xc6e434['attributes']['skipNestingCheck'])&&(_0x5e5159['every'](_0x340041=>_0x4ddab7['some'](_0x45ec0b=>_0x45ec0b['containsRange'](_0x340041,!0x0)))&&_0xc6e434['discard']());if(_0x4ddab7['every'](_0x39def9=>_0x5e5159['some'](_0x338b34=>_0x338b34['containsRange'](_0x39def9,!0x0)))){const _0x36061a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35276a,'accept');return this['forceDefaultExecution'](()=>_0x36061a(_0x44d0c0,null,_0x5f0ead)),null;}}else{const _0x5ce35a=_0xc6e434['getFirstRange']();_0x4ddab7['some'](_0x471441=>_0x471441['containsRange'](_0x5ce35a,!0x0))&&_0xc6e434['discard']();if(_0x4ddab7['every'](_0x6efd3f=>_0x5ce35a['containsRange'](_0x6efd3f,!0x0))){const _0x3e7248=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35276a,'accept');return this['forceDefaultExecution'](()=>_0x3e7248(_0x4ddab7,null,_0x5f0ead)),null;}}const _0x46a92c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35276a,'join');let _0x27adde=null;for(const _0x16456a of this['getSuggestions']())if(_0x16456a['author']['id']==_0x457812['id']&&_0x16456a['isInContent']&&'deletion'==_0x16456a['type']&&_0x16456a['subType']==_0x35276a&&Xt(_0x16456a,_0x5f0ead)&&(_0x46a92c(_0x16456a['getRanges'](),_0x4ddab7)||_0x46a92c(_0x4ddab7,_0x16456a['getRanges']()))){if(_0x27adde){if(_0x16456a['commentThread']&&_0x16456a['commentThread']['length'])continue;for(const _0x22e75a of _0x16456a['getRanges']())_0x27adde['isIntersectingWithRange'](_0x22e75a)||_0x27adde['addRange'](_0x22e75a);_0x16456a['removeMarkers']();}else{_0x27adde=_0x16456a;for(const _0x463aa2 of _0x4ddab7)_0x16456a['isIntersectingWithRange'](_0x463aa2)||_0x16456a['addRange'](_0x463aa2);}}if(_0x27adde)return _0x27adde;_0x32d337['clear']();for(const {suggestion:_0x12d2dd,meta:_0x1fcc96}of this['_findSuggestions'](_0x4ddab7,'deletion'))_0x1fcc96['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1fcc96['containsRangeInObject']&&!_0x1fcc96['isInsideObject'])&&Xt(_0x12d2dd,_0x5f0ead)&&_0x32d337['add'](_0x12d2dd);for(const _0x5dd5e6 of _0x32d337){const _0x1798bd=_0x5dd5e6['getRanges']();if(!_0x5f0ead||!_0x5f0ead['skipNestingCheck']){if(_0x4ddab7['every'](_0x36d542=>_0x1798bd['some'](_0x1964b7=>_0x1964b7['containsRange'](_0x36d542,!0x0))))return _0x5dd5e6;}(!_0x5dd5e6['attributes']||!_0x5dd5e6['attributes']['skipNestingCheck'])&&(_0x1798bd['every'](_0x34a2f7=>_0x4ddab7['some'](_0x5749da=>_0x5749da['containsRange'](_0x34a2f7,!0x0)))&&_0x5dd5e6['discard']());}const _0x29a4f8=_0x2fdf50(),_0x429755=_0x457812['id'],_0x447157='deletion:'+_0x35276a,_0x8eba1e=this['_setSuggestionData']({'id':_0x29a4f8,'type':_0x447157,'createdAt':new Date(),'authorId':_0x429755,'attributes':_0x5f0ead});for(const _0x8c68df of _0x4ddab7)_0x8c68df['detach'](),_0x8c68df['isCollapsed']||'$graveyard'==_0x8c68df['root']['rootName']||this['_addSuggestionMarker'](_0x447157,_0x29a4f8,_0x429755,_0x8c68df,o['getMultiRangeId']());return _0x8eba1e;}['markAttributeChange'](_0x2e240b,_0x3dc0d2,_0x1a4af0,_0x1c123b,_0x3cb609){if(_0x2e240b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a4e11=this['editor']['plugins']['get']('Users')['me']['id'],_0x23fd0c=Array['from'](this['_suggestions']['values']())['filter'](_0x39e66f=>'attribute'==_0x39e66f['type']&&_0x39e66f['data']['key']==_0x3dc0d2&&_0x39e66f['isIntersectingWithRange'](_0x2e240b));if('default'===this['_trackFormatChanges']){const _0x16a3e5=this['_findSuggestions'](_0x2e240b,'insertion')['filter'](({meta:_0x172e0c})=>_0x172e0c['isOwn']&&!_0x172e0c['isInsideObject']&&!_0x172e0c['isNextTo'])['map'](({suggestion:_0x8ec592})=>_0x8ec592);_0x23fd0c['unshift'](..._0x16a3e5);}const _0x13d497=new Map([[_0x2e240b,_0x1a4af0]]);for(const _0x939531 of _0x23fd0c){const _0x4a2c53='attribute'==_0x939531['type']?_0x939531['data']['oldValue']:void 0x0,_0x3bc742=_0x939531['getFirstRange'](),_0x2e6cde=Array['from'](_0x13d497['keys']())['find'](_0x2d925c=>_0x2d925c['isIntersecting'](_0x3bc742));if(!_0x2e6cde)continue;const _0x2f3958=_0x2e6cde['getDifference'](_0x3bc742);this['_isBlockAttribute'](_0x3dc0d2)&&'insertion'==_0x939531['type']&&0x0!=_0x2f3958['length']||(_0x13d497['delete'](_0x2e6cde),_0x2f3958['forEach'](_0x27fafa=>{_0x13d497['set'](_0x27fafa,_0x1a4af0);}),'insertion'!=_0x939531['type']&&_0x4a2c53!=_0x1c123b&&_0x13d497['set'](_0x2e6cde['getIntersection'](_0x3bc742),_0x4a2c53));}const _0x13c390=[];for(const [_0x878cd8,_0x9791b4]of _0x13d497){const _0x385cb7=_0x2fdf50(),_0x24705b={'key':_0x3dc0d2,'oldValue':_0x9791b4,'newValue':_0x1c123b};_0x3dc0d2['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':_0x3dc0d2});const _0x46592f=('attribute:'+(_0x3dc0d2+'|'+Kt({'newValue':_0x1c123b})))['substring'](0x0,0x3c),_0x5a53f1=this['_setSuggestionData']({'id':_0x385cb7,'type':_0x46592f,'data':_0x24705b,'createdAt':new Date(),'authorId':_0x2a4e11,'attributes':_0x3cb609});_0x13c390['push'](_0x5a53f1),this['_addSuggestionMarker'](_0x46592f,_0x385cb7,_0x2a4e11,_0x878cd8);}return _0x13c390;}['enableDefaultAttributesIntegration'](_0x2d334b){this['enableCommand'](_0x2d334b,(_0x3553c7,..._0x441e16)=>{this['_recordAttributeChanges'](()=>{_0x3553c7(..._0x441e16);});});}['registerBlockAttribute'](_0x385c4e){this['_blockAttributeKeys']['add'](_0x385c4e);}['registerInlineAttribute'](_0xce7334){this['_inlineAttributeKeys']['add'](_0xce7334);}['_getAttributeKey'](_0x87b84c){return'attribute'==_0x87b84c['type']?_0x87b84c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x20b6db,_0x1efe4d){const _0x42c3d=_0x20b6db['getFirstMarker']();this['_model']['change'](_0x26bd65=>{_0x26bd65['updateMarker'](_0x42c3d,{'range':_0x1efe4d});});}['_addThreadToSuggestion'](_0x5bab01){const _0x2d1117=_0x5bab01['id'],_0x5e724b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2d1117)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5e724b,'threadId':_0x2d1117,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x36d1f9=this['_commentsRepository']['getCommentThread'](_0x2d1117);_0x36d1f9['unbind']('isRemovable'),_0x36d1f9['isRemovable']=!0x1,_0x5bab01['commentThread']=_0x36d1f9;}['_checkSuggestionCorrectness'](_0x27aa7c,_0x18b00d,_0x51df10,_0x417084){if(_0x27aa7c['type']!=_0x18b00d||_0x27aa7c['subType']!=_0x51df10||_0x27aa7c['creator']['id']!=_0x417084)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x525143('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4e7236,_0x305e21){const _0x41fbe3=_0x4e7236['getFirstRange']();if(_0x305e21['isEqual'](_0x41fbe3))_0x4e7236['removeMarkers']();else{if(_0x41fbe3['containsRange'](_0x305e21)){const _0x3f29a4=this['_model']['createPositionAt'](_0x305e21['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e7236,this['_model']['createRange'](_0x41fbe3['start'],_0x3f29a4));const _0x4bf988=_0x2fdf50(),_0x57c1ec=_0x4e7236['creator']['id'],_0x3b826e=_0x4e7236['type']+':'+_0x4e7236['subType'];this['_setSuggestionData']({'id':_0x4bf988,'type':_0x3b826e,'createdAt':new Date(),'authorId':_0x57c1ec,'data':_0x4e7236['data'],'attributes':_0x4e7236['attributes']});const _0x213e2c=this['_model']['createPositionAt'](_0x305e21['end']['parent'],'after'),_0x4811d8=this['_model']['createRange'](_0x213e2c,_0x41fbe3['end']);this['_addSuggestionMarker'](_0x3b826e,_0x4bf988,_0x57c1ec,_0x4811d8);}else{if(_0x41fbe3['containsPosition'](_0x305e21['start'])){const _0x3a5211=this['_model']['createPositionAt'](_0x305e21['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e7236,this['_model']['createRange'](_0x41fbe3['start'],_0x3a5211));}else{const _0x5c1a7d=this['_model']['createPositionAt'](_0x305e21['end']['parent'],'after');this['_setSuggestionRange'](_0x4e7236,this['_model']['createRange'](_0x5c1a7d,_0x41fbe3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x206054){for(const {suggestion:_0x19b522,meta:_0xcef79}of this['_findSuggestions'](_0x206054,'insertion')){if(!_0xcef79['isOwn'])continue;const _0x125d5e=_0x19b522['getRanges']();for(const _0x51cdfb of _0x125d5e)if(!_0x206054['getDifference'](_0x51cdfb)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1a202a){const _0x1449eb=this['editor']['plugins']['get']('Users')['getUser'](_0x1a202a);if(!_0x1449eb)throw new _0x525143('track-changes-user-not-found',this);return _0x1449eb;}['_getExternalAuthor'](_0x7577c){const _0xefbeb7=this['editor']['plugins']['get']('Users'),_0x2e8390=_0x3e7e92('external:'+_0x7577c),_0x5adbc0=_0xefbeb7['getUser'](_0x2e8390);return _0x5adbc0||_0xefbeb7['addUser']({'id':_0x2e8390,'name':_0x7577c});}['_createSuggestion'](_0x10b38e,_0x388176,_0x17be0f,_0x3dd26f,_0xeb75e7){const _0x2d2032=this['_getAuthorFromId'](_0x3dd26f),_0x504e3e=this['_suggestionFactory']['buildSuggestion'](_0x10b38e,_0x388176,_0x17be0f,_0x2d2032,_0xeb75e7,_0x2757d3=>{this['_updateSuggestionData'](_0x17be0f,{'attributes':_0x2757d3});const _0x236c3c=this['getSuggestion'](_0x17be0f);this['_joinWithAdjacentSuggestions'](new Set([_0x236c3c])),this['_refreshSuggestionsChain'](new Set([_0x236c3c]));});return this['listenTo'](_0x504e3e,'accept',()=>{this['_updateSuggestionData'](_0x17be0f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x504e3e,'discard',()=>{this['_updateSuggestionData'](_0x17be0f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x17be0f,_0x504e3e),this['_suggestionState']['set'](_0x504e3e,'notReady'),_0x504e3e;}['_splitMarkerName'](_0x5b7025){const _0x1c4641=_0x5b7025['split'](':');return{'group':_0x1c4641[0x0],'type':_0x1c4641[0x1],'subType':_0x1c4641['length']>=0x5?_0x1c4641[0x2]:null,'id':_0x1c4641['length']<0x5?_0x1c4641[0x2]:_0x1c4641[0x3],'authorId':_0x1c4641['length']<0x5?_0x1c4641[0x3]:_0x1c4641[0x4],'markerCount':0x6==_0x1c4641['length']?_0x1c4641[0x5]:null};}['_breakSuggestionMarker'](_0x9e3c07,_0x306656,_0x488d5c){const _0x656a1f=_0x9e3c07['getFirstRange'](),_0x14be10=_0x656a1f['start'],_0x4d4cef=_0x656a1f['end'];this['_setSuggestionRange'](_0x9e3c07,this['_model']['createRange'](_0x14be10,_0x306656));const _0x5139c9=_0x2fdf50(),_0x17df9a=_0x9e3c07['creator']['id'],_0x1663b2=_0x9e3c07['type']+(_0x9e3c07['subType']?':'+_0x9e3c07['subType']:'');this['_setSuggestionData']({'id':_0x5139c9,'type':_0x1663b2,'createdAt':new Date(),'authorId':_0x17df9a,'originalSuggestionId':_0x9e3c07['id'],'attributes':_0x9e3c07['attributes'],'data':_0x9e3c07['data']});const _0x22cc80=this['_getAttributeKey'](_0x9e3c07);('formatBlock'==_0x9e3c07['type']||_0x22cc80&&this['_isBlockAttribute'](_0x22cc80))&&(_0x488d5c=this['_model']['createPositionBefore'](_0x488d5c['parent'])),this['_addSuggestionMarker'](_0x1663b2,_0x5139c9,_0x17df9a,this['_model']['createRange'](_0x488d5c,_0x4d4cef));}['_findSuggestions'](_0x5890d7,_0x35fd89=null){const _0x599c63=[],_0x2869c6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5890d7)||(_0x5890d7=[_0x5890d7]);for(const _0x28c5da of this['getSuggestions']()){if(!_0x28c5da['isInContent'])continue;if(_0x35fd89&&_0x28c5da['type']!=_0x35fd89)continue;let _0x27b950=!0x1;for(const _0xde767d of _0x28c5da['getRanges']()){for(const _0x328ccf of _0x5890d7){const _0x5eda81=_0x328ccf['start']['isEqual'](_0xde767d['end'])||_0x328ccf['end']['isEqual'](_0xde767d['start']);if(_0x5eda81||_0x328ccf['getIntersection'](_0xde767d)){const _0x36623f=_0x328ccf['containsRange'](_0xde767d)&&Gt(this['_model']['schema'],_0xde767d['start'],_0x328ccf),_0x31efc3=_0xde767d['containsRange'](_0x328ccf)&&Gt(this['_model']['schema'],_0x328ccf['start'],_0xde767d);_0x599c63['push']({'suggestion':_0x28c5da,'meta':{'isOwn':_0x2869c6==_0x28c5da['author'],'isNextTo':_0x5eda81,'isInsideObject':_0x36623f,'containsRangeInObject':_0x31efc3}}),_0x27b950=!0x0;break;}}if(_0x27b950)break;}}return _0x599c63;}['_addSuggestionMarker'](_0x84b75c,_0x5a79f1,_0x15adcc,_0x3f579b,_0x5b0352){this['_model']['change'](_0x7d13ae=>{let _0x1f7417='suggestion:'+_0x84b75c+':'+_0x5a79f1+':'+_0x15adcc;_0x5b0352&&(_0x1f7417=_0x1f7417+':'+_0x5b0352),_0x7d13ae['addMarker'](_0x1f7417,{'range':_0x3f579b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3bfc95){const _0x4ef36e=_0x3bfc95['previous'],_0x54561e=_0x3bfc95['next'];_0x3bfc95['previous']=null,_0x3bfc95['next']=null,null!=_0x4ef36e&&_0x4ef36e['next']==_0x3bfc95&&(_0x4ef36e['next']=_0x54561e),null!=_0x54561e&&_0x54561e['previous']==_0x3bfc95&&(_0x54561e['previous']=_0x4ef36e),'ready'==this['_suggestionState']['get'](_0x3bfc95)&&(this['_suggestionState']['set'](_0x3bfc95,'removed'),this['fire']('suggestionUnloaded',_0x3bfc95,_0x4ef36e,_0x54561e));}['_setSuggestionData'](_0x1c8be3){const _0x17fc81=_0x1c8be3['id'],_0x328c9f=this['addSuggestionData'](_0x1c8be3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x41fe71=this['editor']['plugins']['get']('PendingActions'),_0x4ea323=_0x328c9f['hasComments'],_0x5aa164=_0x328c9f['subType']?_0x328c9f['type']+':'+_0x328c9f['subType']:_0x328c9f['type'],_0x4165fa=this['editor']['locale'],_0x5a4af5=_0x41fe71['add'](c(_0x4165fa,'PENDING_ACTION_SUGGESTION')),_0x497a5f={'id':_0x17fc81,'type':_0x5aa164,'hasComments':_0x4ea323,'data':_0x1c8be3['data']||null,'originalSuggestionId':_0x1c8be3['originalSuggestionId']||null,'attributes':_0x328c9f['attributes']};this['_adapter']['addSuggestion'](_0x497a5f)['then'](_0x43288d=>{_0x328c9f['_saved']=!0x0,_0x41fe71['remove'](_0x5a4af5),_0x43288d&&_0x43288d['createdAt']&&(this['_suggestions']['get'](_0x17fc81)['createdAt']=_0x43288d['createdAt']);})['catch'](_0x3df8b7=>{throw _0x424e50('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x328c9f['discard']();}),_0x328c9f['stopListening'](),this['_suggestions']['delete'](_0x328c9f['id']),this['_suggestionState']['delete'](_0x328c9f),_0x3df8b7;});}return _0x328c9f;}['_isBlockAttribute'](_0x6d961d){return this['_blockAttributeKeys']['has'](_0x6d961d);}['_updateSuggestionData'](_0x2e9a99,_0x5b0aff){const _0x5b63c1=this['editor']['plugins']['get']('PendingActions'),_0x13911d=this['getSuggestion'](_0x2e9a99);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x13911d['_saved']){const _0x33d4c0=_0x5b63c1['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e9a99,_0x5b0aff)['then'](()=>{_0x5b63c1['remove'](_0x33d4c0);});}else _0x13911d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e9a99,_0x5b0aff);});}}['_getSuggestionData'](_0x32acfd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x525143('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x32acfd);}['_handleNewSuggestionMarker'](_0x1036fa){const {id:_0x4de9fe,type:_0x4bc3ea,subType:_0x2f4007,authorId:_0x33e0fe}=this['_splitMarkerName'](_0x1036fa),_0x242bd2=this['_suggestions']['get'](_0x4de9fe)||this['_createSuggestion'](_0x4bc3ea,_0x2f4007,_0x4de9fe,_0x33e0fe,{});switch(this['_checkSuggestionCorrectness'](_0x242bd2,_0x4bc3ea,_0x2f4007,_0x33e0fe),this['_suggestionState']['get'](_0x242bd2)){case'notReady':this['_getSuggestionData'](_0x4de9fe)['then'](_0x5637b4=>{let _0x170b94=Promise['resolve']();_0x5637b4['hasComments']&&(_0x170b94=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4de9fe})),_0x170b94['then'](()=>{this['addSuggestionData'](_0x5637b4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x242bd2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4de9fe,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x242bd2,'ready'),this['fire']('suggestionLoaded',_0x242bd2);break;case'ready':this['fire']('suggestionChanged',_0x242bd2);}return _0x242bd2['addMarkerName'](_0x1036fa),_0x242bd2;}['_refreshSuggestionsChain'](_0x314579){const _0x3a8d5c=Array['from'](_0x314579),_0x27d0a=_0x3a8d5c['filter'](_0x2ba698=>'attribute'==_0x2ba698['type']);this['_refreshAttributeSuggestionsChain'](_0x27d0a);const _0x585e32=_0x3a8d5c['filter'](_0x823970=>!_0x823970['isMultiRange']&&'attribute'!=_0x823970['type']),_0x3d9adc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52373f=>!_0x52373f['isMultiRange']&&'attribute'!=_0x52373f['type']),_0x12cec9=_0x3d9adc['filter'](_0x14798f=>!_0x314579['has'](_0x14798f)),_0x5b603e=new Map(_0x3d9adc['map'](_0x1f8d19=>[_0x1f8d19,this['_suggestionFactory']['getSuggestionCallback'](_0x1f8d19['type'],_0x1f8d19['subType'],'chain')])),_0x39ee7d=new Map(_0x3d9adc['map'](_0x496e6b=>[_0x496e6b,_0x496e6b['getFirstRange']()])),_0xf754c7=new Set(),_0x1e84d2=new Set();for(let _0x342bb3=0x0;_0x342bb3<_0x585e32['length'];_0x342bb3++)_0xaa65a2(_0x585e32[_0x342bb3],_0x585e32,_0x342bb3+0x1);for(let _0x1afc94=0x0;_0x1afc94<_0x585e32['length'];_0x1afc94++)_0xaa65a2(_0x585e32[_0x1afc94],_0x12cec9,0x0);const _0x5bdd6b=new Set();for(let _0x36456=0x0;_0x36456<_0x585e32['length'];_0x36456++){const _0x3c4d88=_0x585e32[_0x36456];!_0x1e84d2['has'](_0x3c4d88)&&_0x3c4d88['previous']&&(_0x5bdd6b['add'](_0x3c4d88['previous']),_0x3c4d88['previous']['next']===_0x3c4d88&&(_0x3c4d88['previous']['next']=null),_0x3c4d88['previous']=null),!_0xf754c7['has'](_0x3c4d88)&&_0x3c4d88['next']&&(_0x5bdd6b['add'](_0x3c4d88['next']),_0x3c4d88['next']['previous']===_0x3c4d88&&(_0x3c4d88['next']['previous']=null),_0x3c4d88['next']=null);}function _0xaa65a2(_0x4ac792,_0x2f2aa1,_0x1c64be){for(let _0x511eb5=_0x1c64be;_0x511eb5<_0x2f2aa1['length'];_0x511eb5++){const _0x444f77=_0x22b0c6(_0x4ac792,_0x2f2aa1[_0x511eb5]);_0x444f77&&(_0x444f77[0x0]['next']=_0x444f77[0x1],_0x444f77[0x1]['previous']=_0x444f77[0x0],_0xf754c7['add'](_0x444f77[0x0]),_0x1e84d2['add'](_0x444f77[0x1]));}}function _0x22b0c6(_0x84198e,_0x5356d2){if(_0x84198e['author']['id']!==_0x5356d2['author']['id'])return null;const _0x4bb1f8=_0x5b603e['get'](_0x84198e)(_0x84198e,_0x5356d2,_0x39ee7d['get'](_0x84198e),_0x39ee7d['get'](_0x5356d2));if(!_0x4bb1f8)return null;return _0x5b603e['get'](_0x5356d2)(_0x84198e,_0x5356d2,_0x39ee7d['get'](_0x84198e),_0x39ee7d['get'](_0x5356d2))?_0x4bb1f8[0x1]['commentThread']&&_0x4bb1f8[0x1]['commentThread']['length']?null:_0x4bb1f8:null;}_0x5bdd6b['size']&&this['_refreshSuggestionsChain'](_0x5bdd6b);}['_refreshAttributeSuggestionsChain'](_0x476558){if(0x0==_0x476558['length'])return;const _0x34c673=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x472817=>'attribute'==_0x472817['type']&&_0x472817['_isDataLoaded']),_0x1d4b1a=[],_0x276513=new Map();for(const _0x4ae649 of _0x34c673){const _0x8f53b3=_0x3e7e92(_0x4ae649['attributes']);_0x276513['has'](_0x8f53b3)||(_0x276513['set'](_0x8f53b3,_0x1d4b1a['length']),_0x1d4b1a['push']([]));const _0x165fdb=_0x276513['get'](_0x8f53b3);_0x1d4b1a[_0x165fdb]['push'](_0x4ae649);}!(function(){_0x1d4b1a['sort']((_0x2150e1,_0x30aece)=>{const _0xdd7dff=_0x2150e1[0x0]['createdAt'],_0x37b62f=_0x30aece[0x0]['createdAt'];return _0xdd7dff==_0x37b62f?_0x2150e1[0x0]['attributes']['groupId']<_0x30aece[0x0]['attributes']['groupId']?-0x1:0x1:_0xdd7dff<_0x37b62f?-0x1:0x1;});for(const _0x2b2890 of _0x1d4b1a)_0x2b2890['sort']((_0x237aa0,_0x3384b6)=>_0x237aa0['id']<_0x3384b6['id']?-0x1:0x1);}());for(let _0x3d1da0=0x0;_0x3d1da0<_0x1d4b1a['length'];_0x3d1da0++){if(0x0==_0x1d4b1a[_0x3d1da0]['length'])continue;const _0x12820a=[];for(let _0x21828f=_0x3d1da0+0x1;_0x21828f<_0x1d4b1a['length'];_0x21828f++)0x0!=_0x1d4b1a[_0x21828f]['length']&&_0x48e9fa(_0x1d4b1a[_0x3d1da0],_0x1d4b1a[_0x21828f])&&_0x12820a['push'](_0x21828f);for(const _0x2cfdba of _0x12820a)_0x1d4b1a[_0x3d1da0]=_0x1d4b1a[_0x3d1da0]['concat'](_0x1d4b1a[_0x2cfdba]),_0x1d4b1a[_0x2cfdba]=[];}for(const _0x19f22f of _0x1d4b1a)for(let _0x27408d=0x0;_0x27408d<_0x19f22f['length'];_0x27408d++){const _0x43ab84=_0x19f22f[_0x27408d+0x1]||null;_0x19f22f[_0x27408d]['next']!==_0x43ab84&&(_0x19f22f[_0x27408d]['next']=_0x43ab84);}for(const _0x4f0eb8 of _0x1d4b1a)for(let _0x4a7e28=0x0;_0x4a7e28<_0x4f0eb8['length'];_0x4a7e28++){const _0x553298=_0x4f0eb8[_0x4a7e28-0x1]||null;_0x4f0eb8[_0x4a7e28]['previous']!==_0x553298&&(_0x4f0eb8[_0x4a7e28]['previous']=_0x553298);}function _0x48e9fa(_0xbfb50e,_0x2bb2fa){if(_0xbfb50e[0x0]['attributes']['groupId']!==_0x2bb2fa[0x0]['attributes']['groupId']&&_0xbfb50e[0x0]['author']!==_0x2bb2fa[0x0]['author'])return!0x1;if(!function(_0xee3857,_0x2018be){if(!_0xee3857['hasComments']&&!_0x2018be['hasComments'])return!0x0;if(_0xee3857['hasComments']&&_0x2018be['hasComments'])return!0x1;if(_0xee3857['hasComments']&&_0x2018be['createdAt']<_0xee3857['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2018be['hasComments']&&_0xee3857['createdAt']<_0x2018be['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xbfb50e[0x0],_0x2bb2fa[0x0]))return!0x1;const _0x5e4c38=Ft(_0xbfb50e[0x0]['attributes'],'groupId'),_0x482ec5=Ft(_0x2bb2fa[0x0]['attributes'],'groupId');if(!_0x54390e(_0x5e4c38,_0x482ec5))return!0x1;return!!_0xbfb50e['every'](_0x325b5f=>_0x2bb2fa['some'](_0x33992e=>_0x325b5f['getFirstRange']()['isEqual'](_0x33992e['getFirstRange']())))&&_0x2bb2fa['every'](_0x5ac670=>_0xbfb50e['some'](_0x5b9f90=>_0x5ac670['getFirstRange']()['isEqual'](_0x5b9f90['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x348ca1){const _0x437aee=Array['from'](_0x348ca1),_0x4cea4e=this['getSuggestions']({'skipNotAttached':!0x0}),_0xccdbaf=_0x4cea4e['filter'](_0x185af8=>!_0x348ca1['has'](_0x185af8)),_0x4aeb18=new Map(_0x437aee['map'](_0xbaa44d=>[_0xbaa44d,this['_suggestionFactory']['getSuggestionCallback'](_0xbaa44d['type'],_0xbaa44d['subType'],'join')])),_0x465086=new Map(_0x4cea4e['map'](_0x8c80ed=>[_0x8c80ed,_0x8c80ed['getRanges']()]));for(let _0x591c1f=0x0;_0x591c1f<_0x437aee['length'];_0x591c1f++){if(_0x4d25df(this,_0x437aee[_0x591c1f],_0x437aee,_0x591c1f+0x1))return!0x0;}for(let _0x34b44b=0x0;_0x34b44b<_0x437aee['length'];_0x34b44b++){if(_0x4d25df(this,_0x437aee[_0x34b44b],_0xccdbaf,0x0))return!0x0;}return!0x1;function _0x4d25df(_0x29a103,_0x2b1c88,_0x59eb54,_0x329fcb){for(let _0x480fe9=_0x329fcb;_0x480fe9<_0x59eb54['length'];_0x480fe9++){const _0x1ebaba=_0x59eb54[_0x480fe9];if(_0x1ebaba['type']!==_0x2b1c88['type']||_0x1ebaba['author']['id']!==_0x2b1c88['author']['id']||_0x1ebaba['subType']!==_0x2b1c88['subType'])continue;if(!Qt(_0x2b1c88,_0x1ebaba))continue;if('attribute'==_0x2b1c88['type']&&_0x2b1c88['data']['oldValue']!=_0x1ebaba['data']['oldValue'])continue;if('attribute'==_0x2b1c88['type']&&_0x29a103['_isBlockAttribute'](_0x2b1c88['data']['key']))continue;if('formatBlock'==_0x2b1c88['type']){const _0x19166b=_0x29a103['editor']['model'],_0x16f746=_0x2b1c88['getContainedElement']();if(_0x16f746&&(_0x19166b['schema']['isObject'](_0x16f746)||_0x19166b['schema']['isLimit'](_0x16f746)))continue;}const _0x45c999=_0x4aeb18['get'](_0x2b1c88),_0x375c11=_0x465086['get'](_0x2b1c88),_0x2b82aa=_0x465086['get'](_0x1ebaba),_0x14e804=_0x2b1c88['commentThread']&&_0x2b1c88['commentThread']['length'],_0x5f2302=_0x1ebaba['commentThread']&&_0x1ebaba['commentThread']['length'];if(!_0x14e804&&_0x45c999(_0x2b82aa,_0x375c11))return _0x29a103['_joinSuggestions'](_0x1ebaba,_0x2b1c88),_0x465086['delete'](_0x2b1c88),!0x0;if(!_0x5f2302&&_0x45c999(_0x375c11,_0x2b82aa))return _0x29a103['_joinSuggestions'](_0x2b1c88,_0x1ebaba),_0x465086['delete'](_0x1ebaba),!0x0;}return!0x1;}}['_joinSuggestions'](_0x28a51f,_0x354805){if(_0x28a51f['isMultiRange']){for(const _0x32fea7 of _0x354805['getRanges']())_0x28a51f['addRange'](_0x32fea7);}else{const _0x4604e9=_0x354805['getFirstRange']()['end'];this['_setSuggestionRange'](_0x28a51f,this['_model']['createRange'](_0x28a51f['getFirstRange']()['start'],_0x4604e9));}_0x354805['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b8f0a,_0x297a5b,_0x43997b){const _0x2cace8=_0x3b8f0a['startsWith']('format')||_0x3b8f0a['startsWith']('attribute')?'FORMATTING':_0x3b8f0a['toUpperCase']();return c(this['editor']['locale'],_0x297a5b+'_'+_0x2cace8+'_SUGGESTION_ANNOUNCEMENT',_0x43997b);}['_initAriaMarkerChangeAnnouncements'](){const _0x17a421=this['editor'];if(!_0x17a421['ui'])return;const {ariaLiveAnnouncer:_0x354876}=_0x17a421['ui'];_0x5bbf67(this['_model'],({left:_0x3158ac,entered:_0x76d76a})=>{for(const _0x4335f6 of _0x3158ac){const {group:_0x4b3042,type:_0x34888c}=this['_splitMarkerName'](_0x4335f6['name']);if('suggestion'===_0x4b3042){_0x354876['announce'](this['_getMarkerAnnouncementText'](_0x34888c,'LEAVE'));break;}}for(const _0x25c398 of _0x76d76a){const {group:_0x484b76,type:_0x2a59e5}=this['_splitMarkerName'](_0x25c398['name']);if('suggestion'===_0x484b76){_0x354876['announce'](this['_getMarkerAnnouncementText'](_0x2a59e5,'ENTER',_0x42ebb6(_0x387dd3)));break;}}});}['_processAttributeChanges'](_0x3a2c9a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3c581c=this['editor'],_0x208d79=_0x3c581c['model']['document']['differ']['getChanges']();if(0x0==_0x208d79['length'])return!0x1;const _0x5caa1f=[],_0x2d58bf=_0x208d79['filter'](_0x2c3592=>'attribute'==_0x2c3592['type']),_0x2ab563=_0x208d79['filter'](_0x31427b=>'insert'==_0x31427b['type']&&'$text'!=_0x31427b['name']),_0x435eb8=_0x208d79['filter'](_0x27d05b=>'remove'==_0x27d05b['type']&&'$text'!=_0x27d05b['name']);for(const _0x140dc4 of _0x2d58bf)_0x5caa1f['push']({'key':_0x140dc4['attributeKey'],'newValue':_0x140dc4['attributeNewValue'],'oldValue':_0x140dc4['attributeOldValue'],'range':qt(_0x140dc4['range'],_0x3c581c['model'])});for(const _0x4ade89 of _0x2ab563){const _0x2df00b=_0x435eb8['find'](_0x58408a=>_0x58408a['position']['isEqual'](_0x4ade89['position']));_0x2df00b&&_0x5caa1f['push']({'key':u,'newValue':_0x4ade89['name'],'oldValue':_0x2df00b['name'],'range':_0x3c581c['model']['createRangeOn'](_0x4ade89['position']['nodeAfter'])});}return 0x0!=_0x5caa1f['length']&&this['_reduceExistingSuggestions'](_0x3a2c9a,_0x5caa1f);}['_processAttributeSuggestions'](_0x339e60){let _0xcd7138=!0x1;const _0x26e920=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xf99baa=>_0xf99baa['data']['newRange']&&_0xf99baa['name']['startsWith']('suggestion:attribute:'));for(const _0x233f69 of _0x26e920){const {subType:_0x38df3c,id:_0x4b5fec}=this['_splitMarkerName'](_0x233f69['name']),_0x53cd83=_0x38df3c['split']('|')[0x0];for(const _0x275130 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x275130['id']!=_0x4b5fec&&'attribute'==_0x275130['type']&&_0x275130['data']&&_0x275130['data']['key']==_0x53cd83&&_0x275130['getFirstRange']()['isIntersecting'](_0x233f69['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x275130,_0x233f69['data']['newRange'],_0x339e60),_0xcd7138=!0x0);}return _0xcd7138;}['_recordAttributeChanges'](_0x9f042){this['_recordAttributeSuggestions']=!0x0,_0x9f042();}['_isRegisteredAttribute'](_0x479fd9){const _0x5e0f50=this['_isBlockAttribute'](_0x479fd9),_0x2a0059=this['_inlineAttributeKeys']['has'](_0x479fd9);return _0x5e0f50||_0x2a0059;}['_reduceExistingSuggestions'](_0x4c1d7f,_0xf0c465){if(0x0==_0xf0c465['length'])return!0x1;let _0x29659a=!0x1;for(const _0x4e8196 of _0xf0c465){const _0x4748f7=this['_findSuggestions'](_0x4e8196['range'],'attribute')['filter'](_0x51b4a5=>!_0x51b4a5['meta']['isNextTo'])['map'](_0x357694=>_0x357694['suggestion']),_0x2b220a=_0x3e7e92({'newValue':_0x4e8196['newValue']});_0x4748f7['filter'](_0x264f26=>{const [_0x293c9a,_0x552088]=_0x264f26['subType']['split']('|');return _0x293c9a==_0x4e8196['key']&&_0x552088!=_0x2b220a;})['forEach'](_0x5bfd93=>{this['_reduceSuggestionAttributeRange'](_0x5bfd93,_0x4e8196['range'],_0x4c1d7f),_0x29659a=!0x0;});}return _0x29659a;}['_reduceSuggestionAttributeRange'](_0x18c1eb,_0x38dbf8,_0x2fe771){const _0x302679=_0x18c1eb['getFirstRange']()['getDifference'](_0x38dbf8);0x0!==_0x302679['length']?0x1!==_0x302679['length']?this['_breakSuggestionMarker'](_0x18c1eb,_0x38dbf8['start'],_0x38dbf8['end']):this['_setSuggestionRange'](_0x18c1eb,_0x302679[0x0]):_0x2fe771['removeMarker'](_0x18c1eb['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x56cd0e){this['_editor']=_0x56cd0e,this['_model']=_0x56cd0e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x18a034,_0x276f95,_0x57c164,_0x9c1f3a,_0x776d8,_0x1c0cda){return new o(this['_model'],{'type':_0x18a034,'subType':_0x276f95,'id':_0x57c164,'author':_0x9c1f3a,'creator':_0x9c1f3a,'attributes':_0x776d8,'onAttributesChange':_0x1c0cda,'onAccept':(..._0x6577b9)=>this['getSuggestionCallback'](_0x18a034,_0x276f95,'accept')(..._0x6577b9),'onDiscard':(..._0xfb2883)=>this['getSuggestionCallback'](_0x18a034,_0x276f95,'discard')(..._0xfb2883)});}['registerCustomCallback'](_0x2ad889,_0x18f8d9,_0x482cdd,_0x166c60){const _0x3880c1=_0x2ad889+':'+_0x18f8d9+':'+_0x482cdd;this['_customCallbacks']['set'](_0x3880c1,_0x166c60);}['getSuggestionCallback'](_0xcc093e,_0x5b17ad,_0x5eebc6){const _0x1e23bb=_0xcc093e+':'+_0x5b17ad+':'+_0x5eebc6;return this['_customCallbacks']['get'](_0x1e23bb)||this['_defaultCallbacks']['get'](_0xcc093e+':'+_0x5eebc6);}['_registerDefaultCallbacks'](){const _0x196795=()=>!0x1,_0x5e812f=_0x4a8ba0=>{_0x4a8ba0['sort']((_0x3d57c6,_0x2d52da)=>_0x3d57c6['start']['isBefore'](_0x2d52da['start'])?0x1:-0x1),this['_model']['change'](_0x3c7caf=>{for(const _0x137633 of _0x4a8ba0){let _0x58b112;_0x58b112=_0x137633['end']['isAtEnd']&&_0x137633['end']['parent']==_0x137633['start']['nodeAfter']?_0x3c7caf['createSelection'](_0x137633['start']['nodeAfter'],'on'):_0x3c7caf['createSelection'](_0x137633),this['_model']['deleteContent'](_0x58b112,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1f14b7=(_0x51563a,_0x287c4b)=>{_0x287c4b&&this['_model']['change'](_0x4d84ea=>{const {commandName:_0xd6ff2e,commandParams:_0x58bd60=[]}=_0x287c4b,_0x4c13cd=_0x51563a['map'](_0x398bf0=>(Lt(_0x398bf0)&&(_0x398bf0=this['_model']['createRange'](_0x398bf0['end'])),_0x398bf0))['filter'](_0x370e80=>'$graveyard'!==_0x370e80['root']['rootName']);if(_0x4c13cd['length']<0x1)return;const _0x1bfa3e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2f9701=>_0x25f92b['fromRange'](_0x2f9701));_0x4d84ea['setSelection'](_0x4c13cd);for(const _0x2da4df of this['_editor']['commands']['commands']())_0x2da4df['refresh']();_0x58bd60['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xd6ff2e,..._0x58bd60);const _0x496caa=_0x1bfa3e['filter'](_0x4942b7=>'$graveyard'!=_0x4942b7['root']['rootName']);_0x496caa['length']>0x0&&_0x4d84ea['setSelection'](_0x496caa);for(const _0x24665e of _0x1bfa3e)_0x24665e['detach']();});},_0x4950c2=(_0x5238cd,_0x38ddb3)=>0x1==_0x5238cd['length']&&0x1==_0x38ddb3['length']&&_0x5238cd[0x0]['end']['isEqual'](_0x38ddb3[0x0]['start']),_0x8048f0=(_0x108033,_0x40baee,_0x261313,_0x30416a)=>Wt(_0x108033,_0x40baee,_0x261313,_0x30416a)?[_0x108033,_0x40baee]:Wt(_0x40baee,_0x108033,_0x30416a,_0x261313)?[_0x40baee,_0x108033]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x196795),this['_defaultCallbacks']['set']('insertion:discard',_0x5e812f),this['_defaultCallbacks']['set']('insertion:join',_0x4950c2),this['_defaultCallbacks']['set']('insertion:chain',_0x8048f0),this['_defaultCallbacks']['set']('deletion:accept',_0x5e812f),this['_defaultCallbacks']['set']('deletion:discard',_0x196795),this['_defaultCallbacks']['set']('deletion:join',_0x4950c2),this['_defaultCallbacks']['set']('deletion:chain',_0x8048f0),this['_defaultCallbacks']['set']('formatInline:accept',_0x1f14b7),this['_defaultCallbacks']['set']('formatInline:discard',_0x196795),this['_defaultCallbacks']['set']('formatInline:join',_0x4950c2),this['_defaultCallbacks']['set']('formatInline:chain',_0x196795),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1f14b7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x196795),this['_defaultCallbacks']['set']('formatBlock:join',_0x4950c2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x196795),this['_defaultCallbacks']['set']('attribute:accept',_0x196795),this['_defaultCallbacks']['set']('attribute:discard',(_0xb70b74,_0xba6111)=>{if(!_0xba6111)return;const _0x3a9498=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5e521b=>{if(_0xba6111['key']==u)for(const _0xba12a1 of _0xb70b74){const _0x2c5012=_0xba12a1['start']['nodeAfter'],_0x20962c=_0xba6111['oldValue'];_0x5e521b['rename'](_0x2c5012,_0x20962c);}else{if(_0x3a9498['_isBlockAttribute'](_0xba6111['key'])){for(const _0x5bdfdb of _0xb70b74)void 0x0!==_0xba6111['oldValue']?_0x5e521b['setAttribute'](_0xba6111['key'],_0xba6111['oldValue'],_0x5bdfdb['start']['nodeAfter']):_0x5e521b['removeAttribute'](_0xba6111['key'],_0x5bdfdb['start']['nodeAfter']);}else{for(const _0x1c9273 of _0xb70b74)_0xba6111['oldValue']?_0x5e521b['setAttribute'](_0xba6111['key'],_0xba6111['oldValue'],_0x1c9273):_0x5e521b['removeAttribute'](_0xba6111['key'],_0x1c9273);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4950c2);}}function Gt(_0x37a01b,_0x201ef9,_0x3f3c88){for(const _0x10c128 of _0x201ef9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x10c128['root']==_0x10c128)return!0x1;if(!_0x3f3c88['containsItem'](_0x10c128))return!0x1;if(_0x37a01b['isObject'](_0x10c128)||_0x37a01b['isLimit'](_0x10c128))return!0x0;}return!0x1;}function Lt(_0x56007a){return _0x56007a['end']['parent']==_0x56007a['start']['nodeAfter']&&_0x56007a['end']['isAtStart'];}function Jt(_0x2ce08f,_0x5e61e5,_0x29282c,_0x3c47e3){const _0x3a6ca0=_0x313bda=>!_0x313bda['item']['is']('$textProxy')&&!_0x3c47e3['isObject'](_0x313bda['item']),_0x2bd6af=_0x2ce08f['start']['getLastMatchingPosition'](_0x3a6ca0),_0x473492=_0x2ce08f['end']['getLastMatchingPosition'](_0x3a6ca0,{'direction':'backward'});return(!_0x2ce08f['start']['isEqual'](_0x2bd6af)||!_0x2ce08f['end']['isEqual'](_0x473492))&&(_0x2bd6af['isBefore'](_0x473492)?_0x29282c['updateMarker'](_0x5e61e5,{'range':_0x29282c['createRange'](_0x2bd6af,_0x473492)}):_0x29282c['removeMarker'](_0x5e61e5),!0x0);}function Kt(_0x222966){return _0x3e7e92(_0x222966);}function Ht(_0x16916b){const _0x373ee1=_0x16916b['start']['nodeAfter'];return _0x373ee1&&_0x373ee1['is']('element');}function qt(_0x38e477,_0x22274c){return null==_0x38e477['end']['nodeBefore']&&_0x38e477['end']['parent']==_0x38e477['start']['nodeAfter']?zt(_0x38e477['start']['nodeAfter'],_0x22274c):_0x38e477;}function zt(_0x33e772,_0x32b088){const _0x32c752=_0x32b088['schema']['isObject'](_0x33e772)||_0x32b088['schema']['isSelectable'](_0x33e772);return _0x32b088['createRange'](_0x32b088['createPositionAt'](_0x33e772,'before'),_0x32c752?_0x32b088['createPositionAfter'](_0x33e772):_0x32b088['createPositionAt'](_0x33e772,'end'));}function Wt(_0x2a931d,_0x1758cc,_0xc54ef9,_0x16ca34){return!!Qt(_0x2a931d,_0x1758cc)&&_0xc54ef9['end']['isEqual'](_0x16ca34['start']);}function Qt(_0x50d81f,_0x40bf7b){if(!_0x50d81f['_isDataLoaded']||!_0x40bf7b['_isDataLoaded'])return!0x1;const _0x403e87=new Set(Object['keys'](_0x50d81f['attributes'])),_0xb7cadb=new Set(Object['keys'](_0x40bf7b['attributes']));if(_0x403e87['delete']('groupId'),_0xb7cadb['delete']('groupId'),0x0==_0x403e87['size']&&0x0==_0xb7cadb['size'])return!0x0;if(_0x403e87['size']!=_0xb7cadb['size'])return!0x1;const _0x1e45ab={..._0x50d81f['attributes']},_0x35c189={..._0x40bf7b['attributes']};return delete _0x1e45ab['groupId'],delete _0x35c189['groupId'],JSON['stringify'](_0x1e45ab)==JSON['stringify'](_0x35c189);}function Xt(_0x45c29d,_0x321487){const _0x53e34e=Yt(_0x45c29d['attributes']),_0x5772e5=Yt(_0x321487);if(!_0x45c29d['_isDataLoaded'])return!0x1;for(const _0x3cc185 of Object['keys'](_0x5772e5))if(!_0x54390e(_0x53e34e[_0x3cc185],_0x5772e5[_0x3cc185]))return!0x1;return!0x0;}function Yt(_0x1d6679){const _0x59cd65=Object['assign']({},_0x1d6679);return delete _0x59cd65['skipNestingCheck'],delete _0x59cd65['tablePasteChainId'],_0x59cd65;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x21b4ed(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3bbf34,_0x295552,_0x37b804,_0x2c756b){super(),this['model']=_0x295552,this['view']=_0x37b804,this['commentThreadController']=_0x2c756b,this['_editor']=_0x3bbf34,this['_acceptCommand']=_0x3bbf34['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3bbf34['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2880d4,_0x23e9d6)=>_0x2880d4||_0x23e9d6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x682590=>_0x682590&&this['_editor']['model']['canEditAt'](_0x295552['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x378fa5=>_0x378fa5&&this['_editor']['model']['canEditAt'](_0x295552['getRanges']())),this['_pendingAction']=null,_0x37b804['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x37b804,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x37b804,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x37b804,'change:isDirty',()=>{_0x37b804['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 _0x3f94cd=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3f94cd);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3fa263{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x27de65,_0x94db17,_0x1aa18e,_0xf7d792){super(_0x27de65),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4af1e8(_0x27de65,c(_0x27de65,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x94db17['authoredAt']),this['bind']('authoredAt')['to'](_0x94db17),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',_0x94db17,'authoredAt',this,'descriptionParts',(_0x5e8d1e,_0x4511c7,_0x5e069c)=>{const _0x2375da=_0x5e069c['map'](_0x50fa40=>ls(_0x50fa40['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5e8d1e-0x1,_0x94db17['author']['name'],_0x4511c7?_0xf7d792['formatDateTime'](_0x4511c7):'',new DOMParser()['parseFromString'](_0x2375da,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2f56d2(),this['focusTracker']=new _0x1e5d3f(),this['keystrokes']=new _0x27b865(),this['focusCycler']=new _0x413ed8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x363c8e=>_0x363c8e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x94db17,this['_localUser']=_0x1aa18e,this['_config']=_0xf7d792,_0xf7d792['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x59aa8e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x12acd6}=this['_config'];this['commentsListView']=new _0x12acd6(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',_0x52d981=>_0x52d981+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x318493,_0x25e760)=>_0x318493||!!_0x25e760);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1603a1}=this['_config'],_0x4ef723=new _0x1603a1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x44f4ee=_0x4ef723['commentInputView'];return _0x4ef723['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x44f4ee,'value',(_0x35c191,_0x428df3,_0x5532df)=>!!_0x5532df||_0x35c191&&!_0x428df3),_0x44f4ee['on']('submit',(_0x505128,_0x768a44)=>{this['fire']('addComment',_0x768a44),_0x44f4ee['editor']['setData']('');}),_0x44f4ee['on']('cancel',()=>this['focus']()),_0x44f4ee['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4ef723;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x226342,_0x7b35a0,_0x16dfb3,_0x5ed7c6){super(_0x226342,_0x7b35a0,_0x16dfb3,_0x5ed7c6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36baad=>_0x36baad&&_0x36baad[0x0]?_0x36baad[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1fbada,_0x2f6b7b)=>{let _0x52bbeb='';for(const _0x5921fc of _0x1fbada)_0x52bbeb+='<p>'+ls(_0x5921fc['content'],_0x5921fc['color'])+'</p>';return _0x2f6b7b?_0x52bbeb:ti(_0x52bbeb,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5ed7c6['SuggestionView'](_0x226342,_0x7b35a0,{'formatDateTime':_0x5ed7c6['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 _0x49858c=this['bindTemplate'],_0x4c5063=[this['suggestionView']];return this['commentsListView']&&_0x4c5063['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c5063['push'](this['commentThreadInputView']),_0x4c5063['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x49858c['if']('isActive','ck-suggestion-wrapper--active'),_0x49858c['to']('type',_0x32ffa0=>'ck-suggestion-'+_0x32ffa0),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':_0x49858c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c5063};}['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 we extends _0x3fa263{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x897957,_0xf2cf94,_0x2d2505){super(_0x897957),this['_model']=_0xf2cf94,this['_config']=_0x2d2505,this['set']('description',''),this['bind']('authoredAt')['to'](_0xf2cf94),this['acceptButton']=this['_createButton'](c(_0x897957,'Accept\x20suggestion'),_0x2ab278,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x897957,'Discard\x20suggestion'),_0x487562,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x11b4e5(_0x897957,_0xf2cf94['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2f56d2([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1e5d3f(),this['keystrokes']=new _0x27b865(),this['focusCycler']=new _0x413ed8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2d27dd=>_0x2d27dd['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5bdd5c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5bdd5c['innerHTML']=this['description'],this['on']('change:description',(_0x9fbab0,_0x13908c,_0x236fa4)=>{_0x5bdd5c['innerHTML']=_0x236fa4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2a34a9=this['bindTemplate'],_0x20aea3=[{'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':_0x2a34a9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a34a9['to']('authoredAt',_0x3fe3bd=>this['_config']['formatDateTime'](_0x3fe3bd))}]}]},{'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']&&_0x20aea3['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':_0x20aea3}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x590257,_0x7cfa5,_0x2b5b06,_0x1e9ba0,_0x1be75e){const _0x471bb3=new _0x4fd167(this['locale']);return _0x471bb3['set']({'label':_0x590257,'icon':_0x7cfa5,'tooltip':!0x0,'tooltipPosition':_0x1be75e}),_0x471bb3['extendTemplate']({'attributes':{'class':_0x2b5b06}}),_0x471bb3['on']('execute',()=>{this['fire'](_0x1e9ba0,this['_model']['id']);}),_0x471bb3;}['_setupKeyboardNavigation'](){const _0xddbe30=this['element'];this['keystrokes']['listenTo'](_0xddbe30);for(const _0x3fc60c of this['focusables'])this['focusTracker']['add'](_0x3fc60c['element']),this['keystrokes']['listenTo'](_0x3fc60c['element']);this['keystrokes']['set']('enter',(_0x30ebb9,_0x1a26fe)=>{_0xddbe30===_0x30ebb9['target']&&(this['focusCycler']['focusFirst'](),_0x1a26fe());}),this['keystrokes']['set']('esc',(_0x1f3e98,_0xb5c476)=>{_0xddbe30!==_0x1f3e98['target']&&(this['focus'](),_0xb5c476());});}}class d extends _0xd6413c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x98631a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45fbef){super(_0x45fbef),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x6e3384=this['editor']['config'];_0x6e3384['define']('trackChanges.SuggestionThreadView',fe),_0x6e3384['define']('trackChanges.SuggestionView',we),_0x6e3384['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x6e3384['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x158711,_0x1e9e30){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d18af,_0x594a51]of this['_handleControllerBuffer']){const _0x31efc2=this['_suggestionToController']['has'](_0x1d18af);_0x31efc2||_0x594a51?_0x31efc2&&_0x594a51&&this['_destroyController'](_0x1d18af):this['_initializeController'](_0x1d18af);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x158711,_0x1e9e30);}['init'](){const _0xe45517=this['editor'],_0xae54c6=_0xe45517['plugins']['get']('TrackChangesEditing'),_0x28ecf8=_0xe45517['plugins']['get']('Annotations'),_0x986f9d=_0xe45517['plugins']['get']('EditorAnnotations'),_0x47d6fb=_0xe45517['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x986f9d['addSourceCollector'](()=>{const _0x40adc9=[];for(const [_0x4a68f6,_0x22feae]of Array['from'](this['_suggestionToController'])){const _0x3600d2=_0x4a68f6['getAllAdjacentSuggestions'](),_0xced95c=[];for(const _0x493089 of _0x3600d2){if(!_0x493089['isInContent'])continue;if(_0x493089['isMultiRange']){_0xced95c['push'](..._0x493089['getRanges']());continue;}const _0x522894=_0x493089['getFirstRange']();if(_0xced95c['length']>0x0){const _0xb3a6b2=_0xced95c[0x0]['getJoined'](_0x522894);if(_0xb3a6b2){_0xced95c[0x0]=_0xb3a6b2;continue;}}_0xced95c['push'](_0x522894);}_0x40adc9['push']([_0x22feae['view'],_0xced95c]);}return _0x40adc9;}),this['listenTo'](_0xae54c6,'suggestionLoaded',(_0x327a1d,_0x5bd395)=>{this['listenTo'](_0x5bd395,'change:previous',(_0xa8ed14,_0x5ed549,_0xb9bc21,_0x1941db)=>{_0x5bd395['isInContent']&&(null==_0xb9bc21?(this['_updateController'](_0x1941db['head']),this['_handleSuggestionControllerDelayed'](_0x5bd395,!0x1)):(this['_updateController'](_0xb9bc21['head']),null==_0x1941db&&this['_handleSuggestionControllerDelayed'](_0x5bd395,!0x0)));}),null!==_0x5bd395['previous']?this['_updateController'](_0x5bd395['head']):this['_handleSuggestionControllerDelayed'](_0x5bd395,!0x1);}),this['listenTo'](_0xae54c6,'suggestionUnloaded',(_0x3858f3,_0x5bcbda,_0x55f6a0)=>{this['stopListening'](_0x5bcbda,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5bcbda),this['_suggestionToController']['has'](_0x5bcbda)&&this['_destroyController'](_0x5bcbda),_0x55f6a0&&this['_updateController'](_0x55f6a0['head']);}),this['listenTo'](_0xae54c6,'suggestionChanged',(_0x2ab00d,_0x1270b1)=>{this['_updateController'](_0x1270b1);}),this['listenTo'](_0x28ecf8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x47d6fb,'addComment',(_0x5cbf39,{threadId:_0x5c21e6,isFromAdapter:_0x1990a5})=>{if(_0x1990a5||!_0xae54c6['hasSuggestion'](_0x5c21e6))return;const _0xfba04f=_0xae54c6['getSuggestion'](_0x5c21e6);this['_suggestionToController']['get'](_0xfba04f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x7bbd9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d506;for(const _0x1fa7e9 in _0x7bbd9){const _0x51d3e5=_0x1fa7e9,_0x488cbe=_0x7bbd9[_0x51d3e5];if('trackChangesLicenseKeyValid'==_0x488cbe||'trackChangesLicenseKeyInvalid'==_0x488cbe||'trackChangesLicenseKeyExpired'==_0x488cbe||'trackChangesLicenseKeyDomainLimit'==_0x488cbe||'trackChangesLicenseKeyNotAllowed'==_0x488cbe||'trackChangesLicenseKeyEvaluationLimit'==_0x488cbe||'trackChangesLicenseKeyTrialLimit'==_0x488cbe||'trackChangesLicenseKeyUsageLimit'==_0x488cbe){delete _0x7bbd9[_0x51d3e5],_0x37d506=_0x488cbe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x37d506&&_0x7bbd9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x37d506&&_0x7bbd9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x37d506&&_0x7bbd9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x37d506&&_0x7bbd9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x37d506&&_0x7bbd9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x37d506&&_0x7bbd9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x37d506&&_0x7bbd9['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4c4490=this['editor']['plugins']['get']('Annotations'),_0x4b2829=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42e77c=Array['from'](_0x4c4490['activeAnnotations'],_0x520459=>_0x520459['innerView'])['filter'](_0x2c7a8c=>this['_viewToController']['has'](_0x2c7a8c)),_0x12905b=[];for(const _0x2bee6c of _0x42e77c){const _0x19f081=this['_viewToController']['get'](_0x2bee6c)['model']['getAllAdjacentSuggestions']();_0x12905b['push'](..._0x19f081['reduce']((_0x97024f,_0x3d2f1a)=>[..._0x97024f,..._0x3d2f1a['getMarkerNames']()],[]));}_0x4b2829['activeMarkers']=_0x12905b;}['_addUIComponentsToFactory'](){const _0x22a8e5=this['editor'],_0x43ec5b=_0x22a8e5['locale'],_0x8e2063=c(_0x43ec5b,'Track\x20changes'),_0x591caf=new _0x57af3c([{'type':'switchbutton','model':new _0x3dcf87({'withText':!0x0,'isToggleable':!0x0,'label':_0x8e2063,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3dcf87({'withText':!0x0,'label':c(_0x43ec5b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3dcf87({'withText':!0x0,'label':c(_0x43ec5b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3dcf87({'withText':!0x0,'label':c(_0x43ec5b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3dcf87({'withText':!0x0,'label':c(_0x43ec5b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x22a8e5['plugins']['has']('TrackChangesPreview')&&_0x591caf['addMany']([{'type':'separator'},{'type':'button','model':new _0x3dcf87({'withText':!0x0,'label':c(_0x43ec5b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5d2489 of _0x591caf)if(ke(_0x5d2489)){const _0x3ccd09=_0x22a8e5['commands']['get'](_0x5d2489['model']['commandName']);_0x5d2489['model']['bind']('isOn','isEnabled')['to'](_0x3ccd09,'value','isEnabled');}_0x22a8e5['ui']['componentFactory']['add']('trackChanges',_0x6efbd6=>this['_createToolbarButton'](_0x6efbd6,_0x591caf,_0x8e2063)),_0x22a8e5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1129a8=>this['_createMenuBarMenu'](_0x1129a8,_0x591caf,_0x8e2063));}['_createToolbarButton'](_0x27db0f,_0x5aa610,_0x2f1a52){const _0x7937d9=_0x1ff78e(_0x27db0f,_0x5b3877),_0x7cc462=this['editor']['commands']['get']('trackChanges');_0x7937d9['buttonView']['set']({'tooltip':_0x2f1a52,'label':_0x2f1a52,'icon':_0x433b3e}),_0x7937d9['buttonView']['bind']('isOn')['to'](_0x7cc462,'value'),_0x7937d9['buttonView']['on']('execute',()=>{_0x7cc462['execute'](),this['editor']['editing']['view']['focus']();}),_0x4909c3(_0x7937d9,_0x5aa610,{'role':'menu'});const _0x4bb2d0=[];for(const _0x2c1ce2 of _0x5aa610)ke(_0x2c1ce2)&&_0x4bb2d0['push'](this['editor']['commands']['get'](_0x2c1ce2['model']['commandName']));const _0x5a611b=_0x7937d9['buttonView'];return _0x5a611b['actionView']['unbind']('isEnabled'),_0x5a611b['arrowView']['unbind']('isEnabled'),_0x5a611b['actionView']['bind']('isEnabled')['to'](_0x7cc462,'isEnabled'),_0x5a611b['arrowView']['bind']('isEnabled')['toMany'](_0x4bb2d0,'isEnabled',(..._0x1b1eda)=>_0x1b1eda['some'](_0x3010d4=>_0x3010d4)),_0x7937d9['on']('execute',_0x2a4685=>{this['editor']['execute'](_0x2a4685['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x7937d9;}['_createMenuBarMenu'](_0x401301,_0x27b99f,_0x36c21c){const _0x1f7ad3=new _0x12639d(_0x401301),_0x28d3f7=this['editor']['commands']['get']('trackChanges');_0x1f7ad3['buttonView']['set']({'label':_0x36c21c,'icon':_0x433b3e});const _0x587c50=new _0x7b4905(_0x401301);for(const _0x6fb9a8 of _0x27b99f){if('separator'==_0x6fb9a8['type']){_0x587c50['items']['add'](new _0x310f22(_0x401301));continue;}const _0x3c9296=new _0x4044dc(_0x401301,_0x1f7ad3),_0x33bcdd=new _0x1180be(_0x401301),_0x2951ac=_0x6fb9a8['model'];_0x33bcdd['bind'](...Object['keys'](_0x2951ac))['to'](_0x2951ac),_0x33bcdd['delegate']('execute')['to'](_0x1f7ad3),_0x33bcdd['on']('execute',()=>{this['editor']['execute'](_0x2951ac['commandName']),this['editor']['editing']['view']['focus']();}),_0x3c9296['children']['add'](_0x33bcdd),_0x587c50['items']['add'](_0x3c9296);}return _0x1f7ad3['bind']('isEnabled')['to'](_0x28d3f7,'isEnabled'),_0x1f7ad3['panelView']['children']['add'](_0x587c50),_0x1f7ad3;}['_initializeController'](_0x1f5f4c){const _0x220119=this['editor'],_0x12fd26=_0x220119['config'],_0x1e5b18=_0x220119['plugins']['get']('Annotations'),_0x89dc5c=_0x220119['plugins']['get']('CommentsRepository'),_0xf81e94=_0x220119['plugins']['get']('EditorAnnotations'),_0x12e7b1=_0x220119['plugins']['get'](_0x98631a)['me'],_0xa742b3=_0x12fd26['get']('trackChanges')['SuggestionThreadView'],_0x4185c9=_0x12fd26['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3a5807,CommentThreadInputView:_0x2735a3}=_0x220119['plugins']['get']('CommentsUI');let _0x2340b3,_0x5f469c,_0x59e4ee;this['_annotationViews']['has'](_0x1f5f4c['id'])?(_0x5f469c=this['_annotationViews']['get'](_0x1f5f4c['id']),_0x2340b3=_0x5f469c['mainView']):(_0x2340b3=new _0xa742b3(_0x220119['locale'],_0x1f5f4c,_0x12e7b1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x12fd26['get']('comments.editorConfig'),'licenseKey':_0x12fd26['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x12fd26['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12fd26['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12fd26['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x386e5f(_0x12fd26['get']('locale'),_0x220119['locale']),'CommentView':_0x12fd26['get']('comments')['CommentView'],'CommentsListView':_0x3a5807,'CommentThreadInputView':_0x2735a3,'SuggestionView':_0x4185c9}),_0x2340b3['suggestionView']['acceptButton']['on']('execute',()=>{_0x220119['editing']['view']['focus']();}),_0x2340b3['suggestionView']['discardButton']['on']('execute',()=>{_0x220119['editing']['view']['focus']();}),_0x5f469c=_0x1e5b18['createAnnotationView'](this['editor']['locale'],_0x2340b3),_0x5f469c['bind']('isDirty')['to'](_0x2340b3,'isDirty'),_0x5f469c['bind']('length')['to'](_0x2340b3),_0x5f469c['bind']('type')['to'](_0x2340b3,'type',_0x3c8dcc=>'suggestion-'+_0x3c8dcc),_0x2340b3['on']('escape',()=>{_0x59e4ee['fire']('escape');}),this['_annotationViews']['set'](_0x1f5f4c['id'],_0x5f469c));const _0x1aeca4=_0x89dc5c['createCommentThreadController'](_0x1f5f4c['commentThread'],_0x2340b3),_0x3a821b=new pe(_0x220119,_0x1f5f4c,_0x2340b3,_0x1aeca4),_0xc92847=_0x1f5f4c['getAllAdjacentSuggestions']()['filter'](_0x30deb9=>_0x30deb9['isInContent']);_0x2340b3['descriptionParts']=_0x220119['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xc92847),this['_suggestionToController']['set'](_0x1f5f4c,_0x3a821b),this['_viewToController']['set'](_0x2340b3,_0x3a821b),_0x59e4ee=_0x1e5b18['createAnnotation']({'view':_0x5f469c,'target':()=>{const _0x1f61e4=[],_0x1c263b=_0x1f5f4c['getAllAdjacentSuggestions']()['filter'](_0x40be9a=>_0x40be9a['isInContent']);for(const _0x45eee4 of _0x1c263b)_0x1f61e4['push'](..._0x45eee4['getMarkers']());return _0x5cc47b(_0x220119['editing'],_0x1f61e4);},'type':()=>'suggestion-'+_0x3a821b['view']['type']}),_0x89dc5c['_bindAnnotationToEditors'](_0x2340b3,_0x59e4ee),_0x1e5b18['add'](_0x59e4ee),_0xf81e94['registerAnnotation'](_0x59e4ee);}['_destroyController'](_0xd40b50){const _0x5404fa=this['editor']['plugins']['get']('CommentsRepository'),_0x2dfdab=this['editor']['plugins']['get']('Annotations'),_0x19ab4b=this['_suggestionToController']['get'](_0xd40b50),_0x114e36=_0x19ab4b['view'],_0x2013d=_0x2dfdab['getByInnerView'](_0x114e36);_0x5404fa['_unbindEditors'](_0x114e36),_0x2013d&&_0x2dfdab['remove'](_0x2013d),this['_suggestionToController']['delete'](_0xd40b50),this['_viewToController']['delete'](_0x114e36),_0x19ab4b['destroy']();}['_updateController'](_0x559f8c){if(!_0x559f8c['isInContent']||!this['_suggestionToController']['has'](_0x559f8c))return;const _0x1b7c1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14cb2d=this['_suggestionToController']['get'](_0x559f8c),_0x132a84=_0x559f8c['getAllAdjacentSuggestions']();_0x14cb2d['view']['descriptionParts']=_0x1b7c1f['descriptionFactory']['getDescriptions'](_0x132a84);}['destroy'](){for(const _0x520537 of this['_suggestionToController']['keys']())this['_destroyController'](_0x520537);for(const _0x2f2a27 of this['_annotationViews']['values']())_0x2f2a27['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x44d10a){return'model'in _0x44d10a;}class k extends _0xd6413c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4bc9b9){this['editor']['plugins']['get'](p)['adapter']=_0x4bc9b9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xbe5bfd){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xbe5bfd);}['getSuggestions']({skipNotAttached:_0x4ef928=!0x1,toJSON:_0x5ceb52=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4ef928,'toJSON':_0x5ceb52});}['getSuggestion'](_0x29196e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x29196e);}}const w=['Pagination'];class T extends _0xd6413c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2da660=this['editor'];if(_0x2da660['config']['define']('trackChangesData.editorCreator',_0x39ac54=>{const _0x2af106=_0x2da660['model']['document']['getRootNames']()['reduce']((_0x475de0,_0x4bbb9b)=>(_0x475de0[_0x4bbb9b]='',_0x475de0),{});return _0x2da660['constructor']['create'](_0x2af106,_0x39ac54);}),'function'!=typeof _0x2da660['config']['get']('trackChangesData')['editorCreator'])throw new _0x525143('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4cb5b4){return N(this['editor'],!0x0,_0x4cb5b4);}['getDataWithDiscardedSuggestions'](_0x12c8cf){return N(this['editor'],!0x1,_0x12c8cf);}}class D extends _0xd6413c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x356e12){function _0x32b99a(_0x3837ba){return _0x3837ba['map'](_0x7d47b6=>String['fromCharCode'](_0x7d47b6))['join']('');}super(_0x356e12),this['result']='end',_0x356e12[_0x32b99a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32b99a([0x76,0x69,0x65,0x77])][_0x32b99a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32b99a([0x61,0x75,0x74,0x6f]),_0x356e12[_0x32b99a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x32b99a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32b99a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x32b99a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x32b99a([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 Ge(_0x1d1676){return void 0x0!==_0x1d1676['getRootsAttributes'];}async function N(_0x3cfb98,_0x2ddcd4,_0x198ca6){const _0x40c331=_0x71d219(_0x3cfb98,w);_0x40c331['plugins']['push'](p,D),_0x40c331['rootsAttributes']=Ge(_0x3cfb98)?_0x3cfb98['getRootsAttributes']():void 0x0;const _0x31c526=document['createDocumentFragment'](),_0x139332=_0x3cfb98['config']['get']('trackChangesData')['editorCreator'],_0x369c61=await _0x139332(_0x40c331,()=>function(_0x3909f7){const _0xc504ac=document['createElement']('div');return _0x3909f7['appendChild'](_0xc504ac),_0xc504ac;}(_0x31c526));!function(_0x125613,_0xa544ac){const _0x2ff046=_0x125613['model']['document']['getRootNames']()['reduce']((_0x4b13a7,_0x3fd0fd)=>(_0x4b13a7[_0x3fd0fd]=_0x125613['data']['get']({'rootName':_0x3fd0fd}),_0x4b13a7),{}),_0x22c7f1=_0x125613['plugins']['get']('Users')['users']['map'](_0x5098f0=>({'id':_0x5098f0['id'],'name':_0x5098f0['name']})),_0x4754a8=_0x125613['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2fa9a3=_0x125613['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21c025=_0xa544ac['plugins']['get']('Users'),_0x4f6e12=_0xa544ac['plugins']['get']('TrackChangesEditing'),_0x3c6f0f=_0xa544ac['plugins']['get']('CommentsRepository');for(const _0x4a3c35 of _0x3c6f0f['getCommentThreads']())_0x4a3c35['remove']();for(const _0x6c18c6 of _0x22c7f1)_0x21c025['getUser'](_0x6c18c6['id'])||_0x21c025['addUser'](_0x6c18c6);_0x21c025['me']||_0x21c025['useAnonymousUser']();for(const _0x25a0d0 of _0x2fa9a3)_0x3c6f0f['addCommentThread'](_0x25a0d0);for(const _0x37a6eb of _0x4754a8)_0x4f6e12['addSuggestionData'](_0x37a6eb);_0xa544ac['data']['set'](_0x2ff046);}(_0x3cfb98,_0x369c61),_0x369c61['execute'](_0x2ddcd4?'acceptAllSuggestions':'discardAllSuggestions');const _0x471507=Ge(_0x369c61)?_0x369c61['getFullData'](_0x198ca6):_0x369c61['data']['get'](_0x198ca6);return await _0x369c61['destroy'](),_0x471507;}class Me extends _0x3fa263{['options'];constructor(_0x31cbf8,_0xda162d){super(_0x31cbf8),this['options']=_0xda162d,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'](_0x48b2c6,_0x582b8a){if(!this['element'])return;const _0x29e08a=[];for(const [_0x5f2d53,_0x341eb4]of _0x48b2c6){const _0x38d59f=document['createElement']('div');_0x38d59f['setAttribute']('data-ck-root-name',_0x5f2d53),_0x38d59f['className']=_0x341eb4['classes']+'\x20ck-track-changes-preview__root-container',_0x38d59f['innerHTML']=_0x341eb4['content'],_0x29e08a['push'](_0x38d59f);}_0x582b8a(this['element'],_0x29e08a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x14cb09{constructor(_0x513380){super(_0x513380),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3040a5=this['editor'],_0x30d8b8=_0x3040a5['locale'],_0x5992e3=_0x3040a5['plugins']['get']('Dialog');let _0x5de9ff;const _0x3b38de=function(_0x2fde88){const _0x1f0b5c={};if('editables'in _0x2fde88['ui']['view']){for(const [_0x3339de,_0x3c155b]of Object['entries'](_0x2fde88['ui']['view']['editables']))_0x1f0b5c[_0x3339de]=_0x3c155b['element'];}else _0x1f0b5c[_0x2fde88['model']['document']['getRootNames']()[0x0]]=_0x2fde88['ui']['view']['editable']['element'];return _0x1f0b5c;}(_0x3040a5),_0xcb5594=function(_0x3f2a0b){let _0x469ed4=0x0;for(const _0x1d0171 of Object['values'](_0x3f2a0b))_0x469ed4=Math['max'](_0x469ed4,_0x1d0171['getBoundingClientRect']()['width']);let _0x4057a3=0x0;for(const _0x590034 of Object['values'](_0x3f2a0b))_0x4057a3+=_0x590034['getBoundingClientRect']()['height'];const _0x2743b1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3864d4=Math['min'](_0x4057a3,_0x2743b1);return{'width':_0x469ed4,'height':_0x3864d4};}(_0x3b38de);_0x5992e3['show']({'id':'finalContentPreview','title':c(_0x30d8b8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x30d8b8,{'dialogRects':_0xcb5594}),'onHide':()=>{_0x5de9ff['detachFromDom']();},'onShow':()=>{_0x3040a5['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5d4e79=>{const _0x13c3ac=this['_standarizeRootsData'](_0x5d4e79,_0x3040a5,_0x3b38de);_0x5992e3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x13c3ac,_0x3040a5['config']['get']('trackChanges.preview.renderFunction'));}),_0x5de9ff=new _0x2aca5c(_0x30d8b8,[_0x5992e3['view']]),_0x5de9ff['attachToDom'](),_0x5de9ff['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3040a5['once']('destroy',()=>{_0x5de9ff['detachFromDom']();});const _0x4ae508=_0x5992e3['view']['headerView']['class'];_0x5992e3['view']['headerView']['class']=_0x4ae508?_0x4ae508+'\x20ck-reset_all':'ck-reset_all',_0x5992e3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5992e3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x266029=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x40967e=_0x266029['previewMode'],_0x3740c7={};if('$labels'===_0x40967e){for(const _0x265dc5 of _0x266029['getMergeFieldsIds']())_0x3740c7[_0x265dc5]=_0x266029['getLabel'](_0x265dc5)||_0x265dc5;}else{const _0x4a5855='$defaultValues'===_0x40967e?_0x266029['getDefaultValues']():_0x266029['getDataSetValues'](_0x40967e,!0x0);for(const _0x38b6dc of Object['entries'](_0x4a5855)){const [_0x139fd5,_0x1344be]=_0x38b6dc;_0x3740c7[_0x139fd5]=null!==_0x1344be?_0x1344be:_0x266029['getLabel'](_0x139fd5)||_0x139fd5;}}return{'mergeFieldsData':_0x3740c7};}['_standarizeRootsData'](_0x5862de,_0x36e847,_0x2d54f8){let _0x374590;if('string'==typeof _0x5862de){const _0x5959f7=_0x36e847['model']['document']['getRootNames']()[0x0];_0x374590={[_0x5959f7]:_0x5862de};}else _0x374590=_0x5862de;const _0x30f665=this['_fixMediaEmbeds'](_0x374590,_0x36e847),_0x25b273=function(_0x4c0626,_0x9ae79){for(const [_0xddea3d,_0x41430e]of _0x4c0626)_0x41430e['classes']=_0x9ae79[_0xddea3d]['classList']['value']['replace']('ck-focused','');return _0x4c0626;}(this['_sortRoots'](_0x36e847)['reduce']((_0x18dfea,_0x118c87)=>(_0x18dfea['push']([_0x118c87,{'content':_0x30f665[_0x118c87],'classes':''}]),_0x18dfea),[]),_0x2d54f8);return _0x25b273;}['_fixMediaEmbeds'](_0x274c93,_0x580b23){if(!_0x580b23['plugins']['has']('MediaEmbedEditing'))return _0x274c93;const _0x20f139=_0x580b23['plugins']['get']('MediaEmbedEditing');for(const [_0x29903b,_0x160d64]of Object['entries'](_0x274c93)){const _0x24d390=document['createElement']('div');_0x24d390['innerHTML']=_0x160d64,(_0x24d390['querySelectorAll']('figure.media')['forEach'](_0x24252b=>{const _0x3cebda=_0x24252b['querySelector']('oembed');if(_0x3cebda){const _0xe2184=_0x3cebda['getAttribute']('url');if(_0xe2184){const _0x1222c2=_0x20f139['registry']['getMediaViewElement'](new _0xbff37b(_0x580b23['editing']['view']['document']),_0xe2184,{'elementName':'','renderForEditingView':!0x0}),_0x1d78e6=document['createElement']('div');_0x1d78e6['classList']['add']('ck-media__wrapper'),_0x1222c2['render'](_0x1d78e6,_0x580b23['editing']['view']['domConverter']),_0x3cebda['replaceWith'](_0x1d78e6);}}}),_0x274c93[_0x29903b]=_0x24d390['innerHTML']);}return _0x274c93;}['_sortRoots'](_0x37b5da){if(!function(_0x45d4f3){return void 0x0!==_0x45d4f3['getRootsAttributes'];}(_0x37b5da))return _0x37b5da['model']['document']['getRootNames']();const _0x3c52e1=[],_0x4b20f3=new Map();for(const _0x37f930 of _0x37b5da['model']['document']['getRootNames']()){const _0x4bb9ea=_0x37b5da['editing']['view']['getDomRoot'](_0x37f930)['getClientRects']()['item'](0x0);_0x3c52e1['push'](_0x37f930),_0x4b20f3['set'](_0x37f930,_0x4bb9ea);}return _0x3c52e1['sort']((_0x27b650,_0x58e781)=>{const _0x3fe6e5=_0x4b20f3['get'](_0x27b650),_0x35f3df=_0x4b20f3['get'](_0x58e781);return _0x3fe6e5['y']-_0x35f3df['y']||_0x3fe6e5['x']-_0x35f3df['x'];}),_0x3c52e1;}}class te extends _0xd6413c{static get['requires'](){return[T,_0xa8aa1a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d9089){super(_0x4d9089),_0x4d9089['commands']['add']('previewFinalContent',new re(this['editor'])),_0x4d9089['config']['define']('trackChanges.preview.renderFunction',(_0x9922f2,_0x2ab50e)=>{for(const _0x440a10 of _0x2ab50e)_0x9922f2['appendChild'](_0x440a10);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x49fe28,Plugin as _0x13e4d9,PendingActions as _0x3e7b36}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x214f9c,ObservableMixin as _0x2a540a,uid as _0x391cd8,priorities as _0x39d342,insertToPriorityArray as _0x17b0f5,logWarning as _0x1cce61,getEnvKeystrokeText as _0x2e8108,FocusTracker as _0x2c1064,KeystrokeHandler as _0xa1d652,Collection as _0x147561}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x480249,IconCancel as _0x3ff562,IconTrackChanges as _0x473818}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x54391d,View as _0x17c46f,ViewCollection as _0x3bc4b4,FocusCycler as _0x149ad0,ViewModel as _0x4dfde1,createDropdown as _0x39f7cc,SplitButtonView as _0x1e772b,addListToDropdown as _0x439b92,MenuBarMenuView as _0x671883,MenuBarMenuListView as _0x113648,ListSeparatorView as _0x14fcd7,MenuBarMenuListItemView as _0x2253eb,MenuBarMenuListItemButtonView as _0x43e1a3,BodyCollection as _0x5df9f9,Dialog as _0xddda70}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x495ac4,hashObject as _0x37bf96,surroundingMarkersDetector as _0x2a3aa3,FOCUS_ANNOTATION_KEYSTROKE as _0x4cc124,AriaDescriptionView as _0xa39d1f,setupThreadKeyboardNavigation as _0x2d886a,trimHtml as ti,UserView as _0x3eb0c9,LateFocusButtonView as _0x27ebc3,getDateTimeFormatter as _0x2d01b1,getAllMarkersDomElementsSorted as _0x1683e6,sanitizeEditorConfig as _0x2b0666}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3212e3,LiveRange as _0x23f516,LivePosition as _0xb5d29c,DowncastWriter as _0x42aa95}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5f4bc0,toWidget as _0x5d9d84}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x347fa1,set as _0x911c06,isEqual as _0x4e56bf,unset as _0x2340ba,omit as Ft}from'es-toolkit/compat';import{Delete as _0x1d5365,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1bace6}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x44b49b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x49fe28{['_enabledCommands'];constructor(_0x3c3e94,_0x541024){super(_0x3c3e94),this['_enabledCommands']=_0x541024,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 _0x40c7ec of this['editor']['commands']['commands']())_0x40c7ec['affectsData']&&!this['_enabledCommands']['has'](_0x40c7ec)&&_0x40c7ec['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x19831d of this['editor']['commands']['commands']())_0x19831d['affectsData']&&!this['_enabledCommands']['has'](_0x19831d)&&_0x19831d['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x49fe28{['_suggestions'];constructor(_0x313623,_0x424204){super(_0x313623),this['_suggestions']=_0x424204,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1eee46){const _0x2dca3e=this['_suggestions']['get'](_0x1eee46);if(!_0x2dca3e)throw new _0x214f9c('track-changes-accept-suggestion-not-found',this);const _0x3adff5=_0x2dca3e['getRanges']();this['editor']['model']['canEditAt'](_0x3adff5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2dca3e);}}class R extends _0x49fe28{['_suggestions'];constructor(_0x51b09b,_0x540248){super(_0x51b09b),this['_suggestions']=_0x540248,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5b5b5c){const _0x26f485=this['_suggestions']['get'](_0x5b5b5c);if(!_0x26f485)throw new _0x214f9c('track-changes-discard-suggestion-not-found',this);const _0x6b4b44=_0x26f485['getRanges']();this['editor']['model']['canEditAt'](_0x6b4b44)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x26f485);}}function ls(_0x3ba79f,_0x2a8980){let _0x3f05b0='';return _0x3f05b0+=_0x3ba79f['split']('*')['map']((_0x5ccd88,_0x238508)=>_0x238508%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5ccd88)+'</span>':nn(_0x5ccd88))['join'](''),_0x2a8980&&(_0x3f05b0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2a8980['value']+'\x22\x20title=\x22'+_0x2a8980['title']+'\x22></span>'),_0x3f05b0;}function nn(_0x8502dd){const _0x45b70d=document['createElement']('span');return _0x45b70d['innerText']=_0x8502dd,_0x45b70d['innerHTML'];}function ts(_0x19335a){return _0x19335a['sort']((_0x9714d8,_0xc79dcf)=>'deletion'==_0x9714d8['type']&&'deletion'!=_0xc79dcf['type']?-0x1:'deletion'!=_0x9714d8['type']&&'deletion'==_0xc79dcf['type']?0x1:0x0);}function to(_0x59efc8,_0x5a735e){let _0x4ef898,_0x2da9bd=0x0;const _0x531553=[],_0x2c062a=_0x5a735e['schema'];for(;_0x2da9bd<_0x59efc8['length'];){const _0x52643f=_0x59efc8[_0x2da9bd],_0x580e4d=_0x59efc8[_0x2da9bd+0x1];_0x4ef898||(_0x4ef898=_0x5a735e['createPositionBefore'](_0x52643f)),on(_0x5a735e,_0x52643f,_0x580e4d)||(_0x531553['push'](_0x5a735e['createRange'](_0x4ef898,_0x2c062a['isObject'](_0x52643f)?_0x5a735e['createPositionAfter'](_0x52643f):_0x5a735e['createPositionAt'](_0x52643f,'end'))),_0x4ef898=null),_0x2da9bd++;}return _0x531553;}function on(_0x538b16,_0x411338,_0xbf2dc5){if(!_0xbf2dc5)return!0x1;const _0x376993=_0x538b16['createPositionAfter'](_0x411338),_0x1dcfe7=_0x538b16['createPositionBefore'](_0xbf2dc5);return _0x376993['isTouching'](_0x1dcfe7);}function rs(_0x40d825,_0x388c46,_0x39d418){for(;_0x39d418['length'];){const _0x1fd984=_0x39d418['splice'](0x0,0x64);_0x40d825['change'](()=>{for(const _0x17e138 of _0x1fd984)_0x17e138['isInContent']&&_0x388c46['execute'](_0x17e138['id']);});}}class x extends _0x49fe28{['_command'];['_suggestions'];constructor(_0xa06d19,_0x2c6c78,_0x215891){super(_0xa06d19),this['_command']=_0x2c6c78,this['_suggestions']=_0x215891,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3f4a07=Array['from'](this['_suggestions']['values']())['some'](_0x5c4700=>_0x5c4700['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3f4a07;}['execute'](){const _0x2898f1=ts(Array['from'](this['_suggestions']['values']()));for(const _0x519032 of _0x2898f1){const _0x2ede06=_0x519032['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ede06))return;}rs(this['editor']['model'],this['_command'],_0x2898f1);}}class E extends _0x49fe28{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1ee30a,_0x3147fc,_0x3952c6){super(_0x1ee30a),this['_command']=_0x3147fc,this['_suggestions']=_0x3952c6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1e5463=this['editor']['model']['document']['selection'],_0x5e95df=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4ac27d,_0x16d345){const _0x302f08=Array['from'](_0x4ac27d['getRanges']()),_0x25eff8=new Set();for(const _0x234d97 of _0x16d345)if(_0x234d97['isInContent']){for(const _0x58721e of _0x302f08)for(const _0x2591d2 of _0x234d97['getRanges']())(_0x58721e['isIntersecting'](_0x2591d2)||_0x4ac27d['isCollapsed']&&!_0x234d97['isMultiRange']&&_0x234d97['next']&&_0x2591d2['end']['isTouching'](_0x58721e['start']))&&_0x25eff8['add'](_0x234d97);}return _0x25eff8;}(_0x1e5463,_0x5e95df),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5ddb35=ts(Array['from'](this['_selectedSuggestions']));for(const _0x51010b of _0x5ddb35){const _0x121c9d=_0x51010b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x121c9d))return;}rs(this['editor']['model'],this['_command'],_0x5ddb35);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a540a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x115ee5,_0x8c1f5){super(),this['id']=_0x8c1f5['id'],this['type']=_0x8c1f5['type'],this['subType']=_0x8c1f5['subType']||null,this['author']=_0x8c1f5['author'],this['creator']=_0x8c1f5['creator']||_0x8c1f5['author'],this['isExternal']=Boolean(_0x8c1f5['attributes']&&_0x8c1f5['attributes']['@external']),this['data']=null,this['_model']=_0x115ee5,this['_onAccept']=_0x8c1f5['onAccept'],this['_onDiscard']=_0x8c1f5['onDiscard'],this['_onAttributesChange']=_0x8c1f5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x8c1f5['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 _0x24e214=this;for(;_0x24e214['previous'];)_0x24e214=_0x24e214['previous'];return _0x24e214;}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'](_0x5b81f4){this['_markerNames']['add'](_0x5b81f4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2a01b9=>this['_model']['markers']['get'](_0x2a01b9))['filter'](_0x4224e5=>_0x4224e5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x36dfe9=>{for(const _0xecf590 of this['getMarkers']())_0x36dfe9['removeMarker'](_0xecf590);}),this['_markerNames']['clear']();}['removeMarker'](_0x3b3249){this['_model']['change'](_0xe3f696=>{_0xe3f696['removeMarker'](_0x3b3249);}),this['_markerNames']['delete'](_0x3b3249);}['addRange'](_0x3781e7){const _0x138757='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x138757),this['_model']['change'](_0x4598c0=>{_0x4598c0['addMarker'](_0x138757,{'range':_0x3781e7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2b0daf){for(const _0x38ad5d of this['getRanges']())if(_0x38ad5d['isIntersecting'](_0x2b0daf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x163dce=>_0x163dce['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x45cf34,_0x2ac864)=>[..._0x45cf34,..._0x2ac864['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5c188a=this['getRanges']();if(0x1!=_0x5c188a['length'])return null;const _0x2b246e=_0x5c188a[0x0],_0x400b5e=_0x2b246e['start']['nodeAfter'],_0xe2e599=_0x2b246e['end']['nodeBefore'];return _0x400b5e instanceof _0x3212e3?_0x400b5e!=_0xe2e599?null:_0x400b5e: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 _0x5e8f6c=[];let _0xf8c9f6=this['head'];for(;_0xf8c9f6;)_0x5e8f6c['push'](_0xf8c9f6),_0xf8c9f6=_0xf8c9f6['next'];return _0x5e8f6c;}['setAttribute'](_0x3b9336,_0x49b92f){const _0x41dc11=_0x347fa1(this['attributes']);_0x911c06(_0x41dc11,_0x3b9336,_0x49b92f),_0x4e56bf(_0x41dc11,this['attributes'])||(this['attributes']=_0x41dc11,this['_onAttributesChange'](_0x41dc11));}['removeAttribute'](_0x336959){const _0x1b7c0c=_0x347fa1(this['attributes']);_0x2340ba(_0x1b7c0c,_0x336959),_0x4e56bf(_0x1b7c0c,this['attributes'])||(this['attributes']=_0x1b7c0c,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 _0x391cd8()['substr'](0x1,0x5);}}function c(_0x191e37,_0x90861,_0x461f7b){const _0x336980=_0x191e37['t'],t=_0x191e37['t'];switch(_0x90861){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',_0x461f7b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x461f7b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x461f7b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x461f7b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x461f7b);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',_0x461f7b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x461f7b);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',_0x461f7b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x461f7b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x461f7b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x461f7b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x461f7b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x461f7b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x461f7b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x461f7b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x461f7b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x461f7b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x461f7b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x461f7b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x461f7b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x461f7b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x461f7b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x461f7b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x461f7b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x461f7b);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'},_0x461f7b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x461f7b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x461f7b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x461f7b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x461f7b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x461f7b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x461f7b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x461f7b);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'},_0x461f7b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x461f7b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x461f7b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x461f7b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x461f7b);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'},_0x461f7b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x461f7b);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'},_0x461f7b);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'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'},_0x461f7b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x461f7b);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'},_0x461f7b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x461f7b);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'},_0x461f7b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x461f7b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x461f7b);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'},_0x461f7b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x461f7b);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 _0x336980({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x461f7b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x336980({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x461f7b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x461f7b);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'},_0x461f7b);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'},_0x461f7b);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'},_0x461f7b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x90861;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2e33a5,_0x54bd41){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2e33a5,this['_locale']=_0x54bd41;}['getDescriptions'](_0x49e2fe){const _0x45c722=[],_0x302d25=new Set(),_0x318d96=new Set();for(let _0x2750e7=0x0;_0x2750e7<_0x49e2fe['length'];_0x2750e7++){const _0x36ee74=_0x49e2fe[_0x2750e7];if(!_0x36ee74['isInContent'])continue;const _0x34261f=this['_handleCustomCallbackDescription'](_0x36ee74);if(_0x34261f){if(null!=_0x36ee74['subType']){if(_0x302d25['has'](_0x36ee74['subType']))continue;_0x302d25['add'](_0x36ee74['subType']);}_0x45c722['push'](_0x34261f);}else{if('attribute'!=_0x36ee74['type'])'insertion'!=_0x36ee74['type']&&'deletion'!=_0x36ee74['type']||this['_handleInsertRemoveSuggestionDescription'](_0x45c722,_0x36ee74,_0x49e2fe[_0x2750e7+0x1]);else{const _0x232427=_0x36ee74['data']['key'];if(_0x318d96['has'](_0x232427))continue;_0x318d96['add'](_0x36ee74['data']['key']),_0x232427==u?this['_handleRenameSuggestionDescription'](_0x45c722,_0x36ee74):this['_handleAttributeSuggestionDescription'](_0x45c722,_0x36ee74);}}}return this['_resolveDescriptionItems'](_0x45c722);}['registerDescriptionCallback'](_0x24d0b3){this['_customCallbacks']['push'](_0x24d0b3);}['registerElementLabel'](_0x39b897,_0x4f371a,_0x476ce3=_0x39d342['normal']){'function'==typeof _0x39b897?_0x17b0f5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x39b897,'label':_0x4f371a,'priority':_0x476ce3}):this['_itemLabels']['set'](_0x39b897,_0x4f371a);}['registerAttributeLabel'](_0x326dab,_0x1a2463){this['_attributeLabels']['set'](_0x326dab,_0x1a2463);}['getItemLabel'](_0x5bd8ab,_0x26fb58=0x1){let _0x2be3e3;for(const _0x5f4af2 of this['_itemLabelsCallbacks'])if(_0x5f4af2['matchingCallback'](_0x5bd8ab)){_0x2be3e3=_0x5f4af2['label'];break;}return _0x2be3e3||(_0x2be3e3=this['_itemLabels']['get'](_0x5bd8ab['name'])),_0x2be3e3?_0x2be3e3(_0x26fb58):0x1!==_0x26fb58?_0x26fb58+'\x20'+_0x5bd8ab['name']+'s':''+_0x5bd8ab['name'];}['_addDescriptionItems'](_0x2b8c0c,_0x3a48d6){const _0x1badf4=_0x3a48d6['getFirstRange']()['getWalker'](),_0x5d0e81='insertion'==_0x3a48d6['type']?'add':'remove';for(const _0x16de9d of _0x1badf4){const _0x3551f6=_0x16de9d['item'],_0x4455ae=_0x2b8c0c[_0x2b8c0c['length']-0x1];if(_0x3551f6['is']('$textProxy'))_0x4455ae&&_0x4455ae['type']['indexOf']('Container')>-0x1&&_0x2b8c0c['pop'](),_0x4455ae&&'text'==_0x4455ae['type']?_0x4455ae[_0x5d0e81]+=_0x3551f6['data']:_0x2b8c0c['push']({'type':'text','add':'add'==_0x5d0e81?_0x3551f6['data']:'','remove':'remove'==_0x5d0e81?_0x3551f6['data']:''});else{if(this['_schema']['isObject'](_0x3551f6)){const _0x58ac01=_0x3551f6;if(_0x4455ae&&_0x4455ae['type']['indexOf']('Container')>-0x1&&_0x2b8c0c['pop'](),'elementEnd'==_0x16de9d['type'])continue;_0x4455ae&&_0x4455ae['type']==_0x5d0e81+'Object'&&_0x4455ae['element']['name']==_0x58ac01['name']?_0x4455ae['quantity']++:_0x2b8c0c['push']({'type':_0x5d0e81+'Object','element':_0x58ac01,'quantity':0x1}),_0x1badf4['skip'](_0x510e93=>!('elementEnd'==_0x510e93['type']&&_0x510e93['item']==_0x3551f6));}else{if(this['_schema']['checkChild'](_0x3551f6,'$text')||_0x3551f6['is']('element','softBreak')){const _0x5c14ea=_0x3551f6;if('add'==_0x5d0e81&&'elementStart'==_0x16de9d['type']||'remove'==_0x5d0e81&&'elementEnd'==_0x16de9d['type'])continue;if(_0x4455ae&&-0x1==_0x4455ae['type']['indexOf']('Container')){'text'==_0x4455ae['type']&&(_0x4455ae[_0x5d0e81]+='\x0a');continue;}let _0x1adcc8;if(_0x1adcc8='add'==_0x5d0e81?_0x5c14ea['nextSibling']&&!this['_schema']['isObject'](_0x5c14ea['nextSibling'])?_0x5c14ea['nextSibling']:null:_0x5c14ea['previousSibling']&&!this['_schema']['isObject'](_0x5c14ea['previousSibling'])?_0x5c14ea['previousSibling']:null,_0x5c14ea['isEmpty']||_0x1adcc8&&_0x1adcc8['isEmpty']){const _0x3ea169=_0x1adcc8&&_0x1adcc8['isEmpty']?_0x1adcc8:_0x5c14ea;_0x4455ae&&_0x4455ae['type']==_0x5d0e81+'EmptyContainer'&&_0x4455ae['element']['name']==_0x3ea169['name']?_0x4455ae['quantity']++:_0x2b8c0c['push']({'type':_0x5d0e81+'EmptyContainer','element':_0x3ea169,'quantity':0x1});}else _0x2b8c0c['push']({'type':_0x5d0e81+'Container','element':_0x5c14ea});}}}}}['_resolveDescriptionItems'](_0x37d67d){const _0x180e72=this['_locale'],_0x19339f=[],_0x4754fb=[],_0x5f1476=[];for(const _0x4092a5 of _0x37d67d)switch(_0x4092a5['type']){case'text':if(_0x4092a5['add']=_0x4092a5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4092a5['remove']=_0x4092a5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4092a5['add']&&''!=_0x4092a5['remove']){_0x19339f['push']({'type':'replace','content':c(_0x180e72,'REPLACE_TEXT',['\x22'+_0x4092a5['remove']+'\x22','\x22'+_0x4092a5['add']+'\x22'])});continue;}if(null!=_0x4092a5['add']['match'](/^ +$/)){_0x19339f['push']({'type':'insertion','content':c(_0x180e72,'*Insert:*\x20%0',c(_0x180e72,'ELEMENT_SPACE',_0x4092a5['add']['length']))});continue;}if(null!=_0x4092a5['remove']['match'](/^ +$/)){_0x19339f['push']({'type':'deletion','content':c(_0x180e72,'*Remove:*\x20%0',c(_0x180e72,'ELEMENT_SPACE',_0x4092a5['remove']['length']))});continue;}if(''!=_0x4092a5['add']){_0x19339f['push']({'type':'insertion','content':c(_0x180e72,'*Insert:*\x20%0','\x22'+_0x4092a5['add']+'\x22')});continue;}_0x19339f['push']({'type':'deletion','content':c(_0x180e72,'*Remove:*\x20%0','\x22'+_0x4092a5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x19339f['push']({'type':'insertion','content':c(_0x180e72,'*Insert:*\x20%0',this['getItemLabel'](_0x4092a5['element'],_0x4092a5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x19339f['push']({'type':'deletion','content':c(_0x180e72,'*Remove:*\x20%0',this['getItemLabel'](_0x4092a5['element'],_0x4092a5['quantity']))});continue;case'addContainer':_0x19339f['push']({'type':'insertion','content':c(_0x180e72,'*Split:*\x20%0',this['getItemLabel'](_0x4092a5['element'],_0x4092a5['quantity']))});continue;case'removeContainer':_0x19339f['push']({'type':'deletion','content':c(_0x180e72,'*Merge:*\x20%0',this['getItemLabel'](_0x4092a5['element'],_0x4092a5['quantity']))});continue;case'addFormat':_0x4754fb['push'](_0x4092a5['key']);continue;case'removeFormat':_0x5f1476['push'](_0x4092a5['key']);continue;default:_0x19339f['push'](_0x4092a5);}if(_0x4754fb['length']){const _0x18e666=_0x4754fb['map'](_0x1ac095=>this['_attributeLabels']['has'](_0x1ac095)?this['_attributeLabels']['get'](_0x1ac095):_0x1ac095)['join'](',\x20');_0x19339f['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x18e666)});}if(_0x5f1476['length']){const _0x4593d3=_0x5f1476['map'](_0x1cb169=>this['_attributeLabels']['has'](_0x1cb169)?this['_attributeLabels']['get'](_0x1cb169):_0x1cb169)['join'](',\x20');_0x19339f['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x4593d3)});}return _0x19339f;}['_handleCustomCallbackDescription'](_0x46b6ac){for(const _0x428eb1 of this['_customCallbacks']){const _0x231690=_0x428eb1(_0x46b6ac);if(_0x231690&&'type'in _0x231690)return _0x231690;}}['_handleAttributeSuggestionDescription'](_0x11bbeb,_0x31c556){const _0x253fec=_0x31c556['data'],_0x34f0aa=void 0x0===_0x253fec['newValue']?'removeFormat':'addFormat';_0x11bbeb['push']({'type':_0x34f0aa,'key':_0x253fec['key']});}['_handleRenameSuggestionDescription'](_0x296d42,_0x3fffaf){_0x296d42['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3fffaf['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xb3fcb0,_0x3a8986,_0x48ed2b){if(this['_addDescriptionItems'](_0xb3fcb0,_0x3a8986),_0x48ed2b&&_0x48ed2b['getFirstRange']()&&!_0x3a8986['getFirstRange']()['end']['isEqual'](_0x48ed2b['getFirstRange']()['start'])){const _0x344445=_0xb3fcb0[_0xb3fcb0['length']-0x1],_0x1e4b83='insertion'==_0x3a8986['type']?'add':'remove';_0x344445&&'text'==_0x344445['type']&&(_0x344445[_0x1e4b83]+='\x0a');}}}class U extends _0x13e4d9{['afterInit'](){const _0x1adf78=this['editor'],_0x3f432d=_0x1adf78['plugins']['get']('TrackChangesEditing');_0x1adf78['commands']['get']('showAIAssistant')&&_0x3f432d['enableCommand']('showAIAssistant');}}class V extends _0x13e4d9{['afterInit'](){const _0x5078c4=this['editor'],_0x10b1b8=_0x5078c4['locale'];if(!_0x5078c4['plugins']['has']('AlignmentEditing'))return;const _0x10b4f9=_0x5078c4['plugins']['get']('TrackChangesEditing');_0x10b4f9['enableDefaultAttributesIntegration']('alignment'),_0x10b4f9['registerBlockAttribute']('alignment'),_0x10b4f9['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x10b1b8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42b3bc=this['editor'],_0x3b5d0b=_0x42b3bc['locale'];_0x42b3bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e77a2=>{if('formatBlock'!=_0x5e77a2['type'])return;const {data:_0x39c999}=_0x5e77a2;if(_0x39c999&&'alignment'==_0x39c999['commandName']){const _0x2ac0d6=_0x39c999['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3b5d0b,'*Format:*\x20%0',function(_0x3bc97b){switch(_0x3bc97b){case'left':return c(_0x3b5d0b,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3b5d0b,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3b5d0b,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3b5d0b,'FORMAT_JUSTIFY_TEXT');}}(_0x2ac0d6))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x13e4d9{['afterInit'](){const _0x6a861b=this['editor'],_0x5b031a=_0x6a861b['plugins']['get']('TrackChangesEditing'),_0x1858c5=_0x6a861b['locale'];for(const _0x24dff0 of Zt){if(!_0x6a861b['plugins']['has'](_0x24dff0))continue;const _0x572b91=_0x24dff0['slice'](0x0,-0x7)['toLowerCase'](),_0xabc0c9='FORMAT_'+_0x572b91['toUpperCase']();_0x5b031a['enableDefaultAttributesIntegration'](_0x572b91),_0x5b031a['registerInlineAttribute'](_0x572b91),_0x5b031a['descriptionFactory']['registerAttributeLabel'](_0x572b91,c(_0x1858c5,_0xabc0c9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f1716=this['editor'],_0x3a0510=_0x1f1716['locale'],_0xc6171f=_0x1f1716['plugins']['get']('TrackChangesEditing');function _0x3e457f(_0x5bf792,_0x4bc8d){_0xc6171f['descriptionFactory']['registerDescriptionCallback'](_0x238822=>{if('formatInline'!=_0x238822['type'])return;const {data:_0x416154}=_0x238822;return _0x416154&&_0x416154['commandName']===_0x5bf792?_0x416154['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3a0510,'*Format:*\x20%0',_0x4bc8d)}:{'type':'format','content':c(_0x3a0510,'*Remove\x20format:*\x20%0',_0x4bc8d)}:void 0x0;});}_0x3e457f('bold',c(_0x3a0510,'FORMAT_BOLD')),_0x3e457f('italic',c(_0x3a0510,'FORMAT_ITALIC')),_0x3e457f('underline',c(_0x3a0510,'FORMAT_UNDERLINE')),_0x3e457f('code',c(_0x3a0510,'FORMAT_CODE')),_0x3e457f('strikethrough',c(_0x3a0510,'FORMAT_STRIKETHROUGH')),_0x3e457f('subscript',c(_0x3a0510,'FORMAT_SUBSCRIPT')),_0x3e457f('superscript',c(_0x3a0510,'FORMAT_SUPERSCRIPT'));}}class G extends _0x13e4d9{['afterInit'](){const _0x40ec3c=this['editor'],_0x536716=_0x40ec3c['locale'];if(!_0x40ec3c['plugins']['has']('BlockQuoteEditing'))return;const _0x5e5a89=_0x40ec3c['plugins']['get']('TrackChangesEditing'),_0x97ae44=this['editor']['commands']['get']('blockQuote');_0x5e5a89['enableCommand']('blockQuote',(_0x1a50d4,_0x147bb7={})=>{const _0x40c113=this['editor']['model']['document']['selection'],_0x4c2fbf=_0x147bb7&&void 0x0!==_0x147bb7['forceValue']?_0x147bb7['forceValue']:!_0x97ae44['value'];let _0x49bc0c=[];if(_0x4c2fbf){const _0x45b42a=Array['from'](_0x40c113['getSelectedBlocks']())['filter'](_0x3d576b=>oo(_0x3d576b)||function(_0x452af2,_0x271651){const _0x571d52=_0x271651['checkChild'](_0x452af2['parent'],'blockQuote'),_0x2f3215=_0x271651['checkChild'](['$root','blockQuote'],_0x452af2);return _0x571d52&&_0x2f3215;}(_0x3d576b,this['editor']['model']['schema']));_0x49bc0c=to(_0x45b42a,_0x40ec3c['model']);}else{const _0x17bf1c=Array['from'](_0x40c113['getSelectedBlocks']())['filter'](_0x4131c0=>oo(_0x4131c0));_0x49bc0c=to(_0x17bf1c,_0x40ec3c['model']);}_0x40ec3c['model']['change'](()=>{for(const _0x1b2060 of _0x49bc0c)_0x5e5a89['markBlockFormat'](_0x1b2060,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c2fbf}]});});}),_0x5e5a89['descriptionFactory']['registerDescriptionCallback'](_0x48d009=>{const {data:_0x5c87eb}=_0x48d009;if(_0x5c87eb&&'blockQuote'==_0x5c87eb['commandName']){const _0x2d9152=c(_0x536716,'ELEMENT_BLOCK_QUOTE');return _0x5c87eb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x536716,'*Set\x20format:*\x20%0',_0x2d9152)}:{'type':'format','content':c(_0x536716,'*Remove\x20format:*\x20%0',_0x2d9152)};}});}}function oo(_0x543895){return'blockQuote'==_0x543895['parent']['name'];}class L extends _0x13e4d9{['afterInit'](){const _0x11e191=this['editor'],_0x2f9482=_0x11e191['locale'],_0x41189c=_0x11e191['plugins']['get']('TrackChangesEditing');_0x11e191['plugins']['has']('BookmarkEditing')&&(_0x41189c['enableCommand']('insertBookmark'),_0x41189c['enableDefaultAttributesIntegration']('updateBookmark'),_0x41189c['registerBlockAttribute']('bookmarkId'),_0x41189c['descriptionFactory']['registerDescriptionCallback'](_0x1b6747=>{if('insertion'!=_0x1b6747['type']&&'deletion'!=_0x1b6747['type']&&'attribute'!=_0x1b6747['type'])return;const _0x3496fb=_0x1b6747['getContainedElement']();if(null==_0x3496fb)return;if(!_0x3496fb['is']('element','bookmark'))return;const _0x5549fb=_0x3496fb['getAttribute']('bookmarkId');if('insertion'==_0x1b6747['type'])return{'type':'insertion','content':c(_0x2f9482,'*Insert:*\x20%0','\x22'+_0x5549fb+'\x22\x20'+c(_0x2f9482,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1b6747['type'])return{'type':'deletion','content':c(_0x2f9482,'*Remove:*\x20%0','\x22'+_0x5549fb+'\x22\x20'+c(_0x2f9482,'ELEMENT_BOOKMARK'))};const {data:_0x194381}=_0x1b6747;if(!_0x194381||'bookmarkId'!=_0x194381['key'])return;return{'type':'format','content':c(_0x2f9482,'*Set\x20bookmark:*\x20%0','\x22'+_0x194381['newValue']+'\x22')};}));}}class J extends _0x13e4d9{['afterInit'](){const _0x63f5e8=this['editor'];_0x63f5e8['plugins']['has']('CaseChange')&&(_0x63f5e8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x63f5e8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x63f5e8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x13e4d9{['afterInit'](){const _0x162154=this['editor'];_0x162154['commands']['get']('ckbox')&&_0x162154['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x13e4d9{['afterInit'](){const _0x529bfb=this['editor'];if(!_0x529bfb['plugins']['has']('CodeBlock'))return;const _0xac8ba3=_0x529bfb['plugins']['get']('TrackChangesEditing'),_0x9656c1=_0x529bfb['locale'],_0x3a3d77=_0x529bfb['config']['get']('codeBlock')['languages'],_0x333bef=_0x529bfb['commands']['get']('codeBlock');_0xac8ba3['enableCommand']('indentCodeBlock'),_0xac8ba3['enableCommand']('outdentCodeBlock'),_0xac8ba3['enableCommand']('codeBlock',(_0x32e6ed,_0xbec34e={})=>{const _0x3a8972=_0x529bfb['model'],_0x17f08b=_0x529bfb['model']['document']['selection'],_0x60c337=_0xbec34e&&void 0x0!==_0xbec34e['forceValue']?_0xbec34e['forceValue']:!_0x333bef['value'];let _0x5c5d7b;_0xbec34e['language']||(_0xbec34e['language']=_0x3a3d77[0x0]['language']),_0x5c5d7b=_0x60c337?Array['from'](_0x17f08b['getSelectedBlocks']())['filter'](_0x2e712c=>eo(_0x2e712c)||function(_0x7bb9a0,_0x344ebe){if(_0x7bb9a0['is']('rootElement')||_0x344ebe['isLimit'](_0x7bb9a0))return!0x1;return _0x344ebe['checkChild'](_0x7bb9a0['parent'],'codeBlock');}(_0x2e712c,_0x3a8972['schema'])):Array['from'](_0x17f08b['getSelectedBlocks']())['filter'](_0x3f8c29=>eo(_0x3f8c29));const _0x20eb10=to(_0x5c5d7b,_0x3a8972);_0x3a8972['change'](()=>{for(const _0x566b9d of _0x20eb10)_0xac8ba3['markBlockFormat'](_0x566b9d,{'commandName':'codeBlock','commandParams':[{..._0xbec34e,'forceValue':_0x60c337}],'formatGroupId':'blockName'});});}),(_0xac8ba3['descriptionFactory']['registerElementLabel']('codeBlock',_0x96a6bb=>c(_0x9656c1,'ELEMENT_CODE_BLOCK',_0x96a6bb)),_0xac8ba3['descriptionFactory']['registerDescriptionCallback'](_0x395e5f=>{if('formatBlock'!=_0x395e5f['type'])return;const _0x170a4d=_0x9656c1['t'],{data:_0x5b9d4c}=_0x395e5f;if(!_0x5b9d4c||'codeBlock'!=_0x5b9d4c['commandName'])return;const _0x42b80c=_0x5b9d4c['commandParams'][0x0]['language'],_0x268e02=_0x170a4d(_0x3a3d77['find'](_0x26c9ce=>_0x26c9ce['language']===_0x42b80c)['label'])['toLowerCase']();return _0x5b9d4c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9656c1,'*Set\x20format:*\x20%0',c(_0x9656c1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x268e02+')')}:{'type':'format','content':c(_0x9656c1,'*Remove\x20format:*\x20%0',c(_0x9656c1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x425b21){return'codeBlock'==_0x425b21['name'];}class q extends _0x13e4d9{['afterInit'](){const _0x15c21d=this['editor'];if(!_0x15c21d['plugins']['has']('CommentsEditing'))return;_0x15c21d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xa287ad,_0x5221ca,_0x298151){const _0x1d2361=[];for(const _0x3bde36 of _0x5221ca['getItems']())_0x3bde36['hasAttribute'](_0xa287ad)&&_0x1d2361['push'](_0x298151['createRangeOn'](_0x3bde36));return _0x1d2361;}function Fe(_0x503f43,_0x31c640,{showActiveMarker:_0x71ffbe=!0x0}={}){const _0x3ab5af=_0x503f43['plugins']['get']('TrackChangesEditing');return(_0x41f3e4,_0x3afb3e,_0x54c060)=>{if(!_0x54c060['consumable']['test'](_0x3afb3e['markerRange'],_0x41f3e4['name']))return;const _0x37923=_0x3afb3e['markerRange']['getWalker'](),_0x4f62cc=_0x3afb3e['markerRange']['start'],_0x59cb3e=_0x503f43['model']['schema'];let _0x2d34e5=null,_0x2d90d0=null,_0x210cb9=!0x1,_0x8e0ad3=!0x1;for(const _0x4064be of _0x37923){const _0x29f099=_0x4064be['item'];_0x210cb9=_0x210cb9||_0x59cb3e['isContent'](_0x29f099);const _0x443a32=_0x54c060['mapper']['toViewElement'](_0x29f099);if(_0x443a32&&_0x443a32['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4064be['type']&&(_0x59cb3e['isBlock'](_0x29f099)&&!_0x59cb3e['isLimit'](_0x29f099)&&(_0x29f099['nextSibling']||_0x4f62cc['isAtEnd']?_0x2d34e5&&_0x2d34e5['parent']==_0x29f099||(_0x2d34e5=_0x29f099,_0x1aa51c(_0x4064be['previousPosition']),_0x8e0ad3=!0x0):_0x2d90d0=_0x2d90d0||_0x4064be['previousPosition']));}function _0x1aa51c(_0x1e0417){const {authorId:_0x30bce5}=_0x3ab5af['_splitMarkerName'](_0x3afb3e['markerName']),_0x23e703=_0x54c060['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31c640,'data-author-id':_0x30bce5}),_0x10ee09=_0x54c060['mapper']['toViewPosition'](_0x1e0417);_0x71ffbe&&_0x3ab5af['activeMarkers']['includes'](_0x3afb3e['markerName'])&&_0x54c060['writer']['addClass']('ck-suggestion-marker--active',_0x23e703),_0x54c060['writer']['insert'](_0x10ee09,_0x23e703),_0x54c060['mapper']['bindElementToMarker'](_0x23e703,_0x3afb3e['markerName']);}_0x210cb9||_0x8e0ad3||!_0x2d90d0||_0x1aa51c(_0x2d90d0);};}class z extends _0x13e4d9{static get['requires'](){return[_0x1d5365];}['init'](){const _0x18fa69=this['editor'],_0x2d46eb=_0x18fa69['plugins']['get']('TrackChangesEditing');_0x2d46eb['enableCommand']('delete');const _0x5061a4=_0x18fa69['commands']['get']('deleteForward');_0x2d46eb['enableCommand']('deleteForward',(_0x5cf3b2,_0x518872={})=>{const _0x317646=_0x18fa69['model']['createSelection'](_0x18fa69['model']['document']['selection']);_0x317646['isCollapsed']&&_0x18fa69['model']['modifySelection'](_0x317646,{'direction':'forward','unit':_0x518872['unit']});const _0x59991d=_0x317646['getFirstRange'](),_0x114ff8=_0x23f516['fromRange'](_0x59991d);let _0x466724;_0x5cf3b2(_0x518872),_0x466724='$graveyard'==_0x114ff8['root']['rootName']?_0x18fa69['model']['createRange'](_0x59991d['start']):_0x18fa69['model']['createRange'](_0x114ff8['start'],_0x114ff8['end']),_0x114ff8['detach'](),_0x18fa69['model']['enqueueChange'](_0x5061a4['buffer']['batch'],_0x19c29e=>{_0x5061a4['buffer']['lock'](),_0x19c29e['setSelection'](_0x19c29e['createRange'](_0x466724['end'])),_0x5061a4['buffer']['unlock']();});}),_0x18fa69['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x18fa69,'merge'),{'priority':'high'}),_0x18fa69['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xd3bb3f,_0x569db3,_0x2928d2)=>{_0x2928d2['options']['showSuggestionHighlights']&&Fe(_0x18fa69,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xd3bb3f,_0x569db3,_0x2928d2);},{'priority':'high'}),_0x18fa69['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5a718e,_0x41698e,_0x58a5e0)=>{const _0x508c9f=_0x58a5e0['mapper']['markerNameToElements'](_0x41698e['markerName']);if(_0x508c9f){for(const _0x4777bd of _0x508c9f)_0x4777bd['is']('uiElement')&&(_0x58a5e0['mapper']['unbindElementFromMarkerName'](_0x4777bd,_0x41698e['markerName']),_0x58a5e0['writer']['remove'](_0x4777bd));}},{'priority':'high'});}}class W extends _0x13e4d9{['afterInit'](){const _0x15f4fe=this['editor'];if(!_0x15f4fe['plugins']['has']('ListEditing'))return;const _0x39686d=_0x15f4fe['locale'],_0x16f9a0=_0x15f4fe['plugins']['get']('TrackChangesEditing'),_0xccee05=_0x15f4fe['plugins']['has']('TodoListEditing'),_0x507255=!!_0x15f4fe['config']['get']('list.multiBlock');function _0x5ac4b0(_0x9f25d){return{'type':'format','content':''+c(_0x39686d,'*Set\x20format:*\x20%0',_0x9f25d)};}function _0x2bb04a(_0x3e765e){return{'type':'format','content':''+c(_0x39686d,'*Remove\x20format:*\x20%0',_0x3e765e)};}_0x16f9a0['enableDefaultAttributesIntegration']('numberedList'),_0x16f9a0['enableDefaultAttributesIntegration']('bulletedList'),_0x16f9a0['enableDefaultAttributesIntegration']('customNumberedList'),_0x16f9a0['enableDefaultAttributesIntegration']('customBulletedList'),_0x16f9a0['enableDefaultAttributesIntegration']('indentList'),_0x16f9a0['enableDefaultAttributesIntegration']('outdentList'),_0x16f9a0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x16f9a0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x16f9a0['registerBlockAttribute']('listItemId'),_0x16f9a0['registerBlockAttribute']('listType'),_0x16f9a0['registerBlockAttribute']('listIndent'),_0x507255&&(_0x16f9a0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x16f9a0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xccee05&&(_0x16f9a0['enableDefaultAttributesIntegration']('todoList'),_0x16f9a0['enableDefaultAttributesIntegration']('checkTodoList'),_0x16f9a0['registerBlockAttribute']('todoListChecked'),_0x16f9a0['descriptionFactory']['registerDescriptionCallback'](_0x282967=>{const {data:_0x4f2a13}=_0x282967;if(_0x4f2a13&&'todoListChecked'==_0x4f2a13['key'])return{'type':'format','content':_0x4f2a13['newValue']?c(_0x39686d,'*Check\x20item*'):c(_0x39686d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x27076d=>{if(_0x27076d['batch']['isUndo'])return!0x1;let _0x3030f7=!0x1;const _0x78fd1e=_0x16f9a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d2231=>'todoListChecked'===_0x16f9a0['_getAttributeKey'](_0x1d2231));for(const _0x857b88 of _0x78fd1e){'todo'!=_0x857b88['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x16f9a0['_findSuggestions'](_0x857b88['getFirstRange'](),'attribute')['find'](_0x335bed=>'listType'===_0x16f9a0['_getAttributeKey'](_0x335bed['suggestion']))||(_0x27076d['removeMarker'](_0x857b88['getFirstMarker']()),_0x3030f7=!0x0));}return _0x3030f7;})),_0x16f9a0['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x39686d,'FORMAT_INDENT'));const _0x30c461={'type':'format','content':''};_0x16f9a0['descriptionFactory']['registerDescriptionCallback'](_0x1b48ba=>{const {data:_0x29cb17}=_0x1b48ba;if(!_0x29cb17||'listType'!=_0x29cb17['key'])return;let _0x25da5c=_0x1b48ba['head'];for(;_0x25da5c;){if(_0x25da5c['data']&&(('listStyle'==_0x25da5c['data']['key']||'listMarkerStyle'==_0x25da5c['data']['key'])&&(_0x25da5c['data']['newValue']&&'default'!=_0x25da5c['data']['newValue']||'default'!=_0x25da5c['data']['oldValue']&&!_0x29cb17['newValue'])||!_0x507255&&_0x25da5c['data']['key']==u))return _0x30c461;_0x25da5c=_0x25da5c['next'];}if(null==_0x29cb17['newValue'])switch(_0x29cb17['oldValue']){case'bulleted':return _0x2bb04a(c(_0x39686d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2bb04a(c(_0x39686d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2bb04a(c(_0x39686d,'ELEMENT_TODO_LIST'));}switch(_0x29cb17['newValue']){case'bulleted':return _0x5ac4b0(c(_0x39686d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ac4b0(c(_0x39686d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ac4b0(c(_0x39686d,'ELEMENT_TODO_LIST'));}}),_0x16f9a0['descriptionFactory']['registerDescriptionCallback'](_0xe21b8f=>{const {data:_0x2a5a94}=_0xe21b8f;if(_0x2a5a94&&'listIndent'==_0x2a5a94['key'])return null==_0x2a5a94['newValue']||null==_0x2a5a94['oldValue']&&0x0==_0x2a5a94['newValue']?_0x30c461:void 0x0;}),_0x16f9a0['descriptionFactory']['registerDescriptionCallback'](_0x44f55a=>{if('attribute'!=_0x44f55a['type'])return;const {data:_0x45ceba}=_0x44f55a;if(!_0x45ceba||'listItemId'!=_0x45ceba['key'])return;const _0x211082=Te(_0x44f55a);return'newValue'==_0x211082?{'type':'format','content':c(_0x39686d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x211082?{'type':'format','content':c(_0x39686d,'*Split:*\x20list\x20item')}:_0x30c461;}),_0x15f4fe['model']['document']['registerPostFixer'](_0x28cdcb=>this['listItemIdFixer'](_0x28cdcb)),_0x15f4fe['model']['document']['registerPostFixer'](_0x2ffd17=>this['noTrackChangesFixer'](_0x2ffd17)),_0x15f4fe['model']['document']['on']('change:data',(_0x23dbc3,_0x699c29)=>{if(_0x699c29['isUndo']||!_0x699c29['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x21fffc){if(_0x21fffc['batch']['isUndo']||!_0x21fffc['batch']['isLocal'])return!0x1;let _0x280b66=!0x1;const _0x54692b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1604c5=>_0x1604c5['data']&&'listItemId'==_0x1604c5['data']['key'])['filter'](_0x423601=>_0x423601['data']['newValue']&&_0x423601['data']['oldValue']);for(const _0x101e4b of _0x54692b)Te(_0x101e4b)||(_0x21fffc['removeMarker'](_0x101e4b['getFirstMarker']()),_0x280b66=!0x0);return _0x280b66;}['noTrackChangesFixer'](_0x26ac95){if(_0x26ac95['batch']['isUndo']||!_0x26ac95['batch']['isLocal'])return!0x1;const _0x4d122a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4d122a['trackChangesCommand']['value'])return!0x1;let _0x13bee2=!0x1;const _0x2ba91f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2040bf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4f2742=>'attribute'==_0x4f2742['type'])['filter'](_0x44c1b9=>_0x2ba91f['includes'](_0x44c1b9['attributeKey']));if(0x0==_0x2040bf['length'])return _0x13bee2;for(const _0x47514a of _0x2040bf){const _0x5798aa=_0x4d122a['_findSuggestions'](_0x47514a['range'],'attribute')['filter'](_0x4fe80f=>!_0x4fe80f['meta']['isNextTo'])['map'](_0x159a8c=>_0x159a8c['suggestion'])['filter'](_0x549ab5=>{const _0x37bbee=_0x4d122a['_getAttributeKey'](_0x549ab5);return _0x2ba91f['includes'](_0x37bbee);});if(_0x5798aa['length']){for(const _0x12b1cf of _0x5798aa)_0x26ac95['removeMarker'](_0x12b1cf['getFirstMarker']());_0x13bee2=!0x0;}}return _0x13bee2;}['assureChains'](){const _0x5d7991=this['editor']['plugins']['get']('TrackChangesEditing'),_0x202a10=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x348039;const _0x57aaa1=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2cc671=>{if(_0x2cc671['data']['oldRange']||!_0x2cc671['data']['newRange'])return null;if(!_0x2cc671['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x44f16d}=_0x5d7991['_splitMarkerName'](_0x2cc671['name']);if(!_0x5d7991['hasSuggestion'](_0x44f16d))return null;const _0x1b678e=_0x5d7991['getSuggestion'](_0x44f16d);return _0x202a10['includes'](_0x1b678e['data']['key']);})['map'](_0x259bc5=>{const {id:_0x377e53}=_0x5d7991['_splitMarkerName'](_0x259bc5['name']),_0x10ff47=_0x5d7991['getSuggestion'](_0x377e53);return _0x348039=_0x10ff47['attributes']['groupId'],_0x10ff47['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x57aaa1['size'])return;const _0x593158=_0x5d7991['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x322fe8=>'attribute'==_0x322fe8['type']&&_0x322fe8['data']&&_0x202a10['includes'](_0x322fe8['data']['key'])&&_0x322fe8['attributes']['groupId']!=_0x348039)['map'](_0x4d40c8=>({'listItem':_0x4d40c8['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4d40c8['attributes']['groupId']})),_0x19a654=new Set();for(const {groupId:_0x3a0f83,listItem:_0x3b5865}of _0x593158)_0x57aaa1['has'](_0x3b5865)&&_0x19a654['add'](_0x3a0f83);for(const _0x6d8d7b of _0x5d7991['getSuggestions']())_0x19a654['has'](_0x6d8d7b['attributes']['groupId'])&&_0x6d8d7b['setAttribute']('groupId',_0x348039);}['_supportLegacySuggestions'](){const _0x2664fb=this['editor'],_0x4e1bc4=_0x2664fb['locale'],_0x26dc85=_0x2664fb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x26dc85['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x15f04e,_0x46304e){const _0x46a142=[];for(let _0x289d15 of _0x15f04e)_0x289d15['start']['nodeAfter']===_0x289d15['end']['parent']&&(_0x289d15=_0x2664fb['model']['createRange'](_0x2664fb['model']['createPositionAt'](_0x289d15['start']['nodeAfter'],0x0))),_0x46a142['push'](_0x289d15);_0x2664fb['model']['change'](_0x27e2ab=>{const _0x3a7a7e=_0x2664fb['model']['document']['selection'],_0xe2adae=Array['from'](_0x3a7a7e['getRanges']())['map'](_0x25089c=>_0x23f516['fromRange'](_0x25089c));_0x27e2ab['setSelection'](_0x46a142),_0x2664fb['commands']['get'](_0x46304e['commandName'])['refresh'](),_0x46304e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2664fb['execute'](_0x46304e['commandName'],..._0x46304e['commandParams']),_0x27e2ab['setSelection'](_0xe2adae);for(const _0x243f6b of _0xe2adae)_0x243f6b['detach']();});}),_0x26dc85['descriptionFactory']['registerElementLabel'](function(_0x567bc5){const _0x463b92=!_0x2664fb['model']['schema']['isObject'](_0x567bc5),_0x25c48b=_0x567bc5['previousSibling'],_0x25c6d5=_0x567bc5['nextSibling'],_0x3e54e4=_0x567bc5['getAttribute']('listItemId'),_0x8bffc1=!_0x25c48b||_0x25c48b['getAttribute']('listItemId')!==_0x3e54e4,_0x5a8968=!_0x25c6d5||_0x25c6d5['getAttribute']('listItemId')!==_0x3e54e4;return _0x463b92&&Boolean(_0x3e54e4)&&_0x8bffc1&&_0x5a8968;},_0x3066b8=>c(_0x4e1bc4,'ELEMENT_LIST_ITEM',_0x3066b8));}['_registerLegacyDescription'](){const _0x332592=this['editor'],_0xbc4375=_0x332592['locale'];function _0x5601cb(_0x48c417){const _0x26e4cf=_0x332592['commands']['get']('bulletedList')['value'],_0x2d7434=_0x332592['commands']['get']('numberedList')['value'];return'numberedList'===_0x48c417?_0x26e4cf:_0x2d7434;}_0x332592['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x41ba01){if('formatBlock'!=_0x41ba01['type'])return;const {data:_0x1535f8}=_0x41ba01;if(!_0x1535f8)return;let _0x3b9cef,_0x3de55d,_0x2c4d8e,_0x26e560;switch(_0x1535f8['commandName']){case'bulletedList':_0x2c4d8e=_0x1535f8['commandParams'][0x0]['forceValue'],_0x26e560=_0x5601cb(_0x1535f8['commandName']),_0x3b9cef=_0x2c4d8e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26e560&&_0x332592['config']['get']('list.multiBlock')||(_0x3b9cef='*Change\x20to:*\x20%0'),_0x3de55d={'type':'format','content':c(_0xbc4375,_0x3b9cef,c(_0xbc4375,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2c4d8e=_0x1535f8['commandParams'][0x0]['forceValue'],_0x26e560=_0x5601cb(_0x1535f8['commandName']),_0x3b9cef=_0x2c4d8e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26e560&&_0x332592['config']['get']('list.multiBlock')||(_0x3b9cef='*Change\x20to:*\x20%0'),_0x3de55d={'type':'format','content':c(_0xbc4375,_0x3b9cef,c(_0xbc4375,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3b9cef='*Indent:*\x20%0',_0x3de55d={'type':'format','content':c(_0xbc4375,_0x3b9cef,c(_0xbc4375,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3b9cef=function(_0xdcfa63){const _0x982d4f=_0xdcfa63['getFirstRange']();let _0x3585d1=_0x982d4f['start']['nodeAfter'];for(;_0x3585d1&&_0x982d4f['containsItem'](_0x3585d1);){if(_0x3585d1['getAttribute']('listIndent')>0x0)return!0x1;_0x3585d1=_0x3585d1['nextSibling'];}return!0x0;}(_0x41ba01)?c(_0xbc4375,'*Format:*\x20remove\x20from\x20%0',c(_0xbc4375,function(_0x536f66){return'ELEMENT_'+_0x536f66['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x41ba01))):c(_0xbc4375,'*Outdent:*\x20%0',c(_0xbc4375,'ELEMENT_LIST_ITEM')),_0x3de55d={'type':'format','content':_0x3b9cef};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1535f8['multipleBlocks']&&(_0x3b9cef='*Merge:*\x20%0',_0x3de55d={'type':'deletion','content':c(_0xbc4375,_0x3b9cef,c(_0xbc4375,'ELEMENT_LIST_ITEM'))});}return _0x3de55d;});}}function Te(_0x519fff){let _0x1e6096=_0x519fff['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1e6096;){const _0x84535f=_0x1e6096['getAttribute']('listItemId');if(!_0x84535f)return!0x1;if(_0x84535f==_0x519fff['data']['newValue'])return'newValue';if(_0x84535f==_0x519fff['data']['oldValue'])return'oldValue';_0x1e6096=_0x1e6096['previousSibling'];}return!0x1;}class Se extends _0x13e4d9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x24d316=this['editor']['config']['get']('list.properties'),_0x484822=this['editor']['plugins']['get']('TrackChangesEditing');_0x24d316['styles']&&(_0x484822['enableDefaultAttributesIntegration']('listStyle'),_0x484822['registerBlockAttribute']('listStyle')),_0x24d316['reversed']&&(_0x484822['enableDefaultAttributesIntegration']('listReversed'),_0x484822['registerBlockAttribute']('listReversed')),_0x24d316['startIndex']&&(_0x484822['enableDefaultAttributesIntegration']('listStart'),_0x484822['registerBlockAttribute']('listStart'));const _0x5cd734={'type':'format','content':''};_0x484822['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5d4488=this['editor']['locale'];_0x484822['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5d4488,'FORMAT_LIST_REVERSED')),_0x484822['descriptionFactory']['registerDescriptionCallback'](_0x44b8b7=>{const {data:_0x1efaee}=_0x44b8b7;if(_0x1efaee&&'listReversed'==_0x1efaee['key'])return null==_0x1efaee['newValue']||0x0==_0x1efaee['newValue']&&null==_0x1efaee['oldValue']?_0x5cd734:void 0x0;}),_0x484822['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5d4488,'FORMAT_LIST_START')),_0x484822['descriptionFactory']['registerDescriptionCallback'](_0x245b32=>{const {data:_0x5ef99a}=_0x245b32;if(_0x5ef99a&&'listStart'==_0x5ef99a['key'])return null==_0x5ef99a['newValue']||0x1==_0x5ef99a['newValue']&&null==_0x5ef99a['oldValue']?_0x5cd734:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5caad5=>{if(_0x5caad5['batch']['isUndo'])return!0x1;let _0x4ff0a9=!0x1;const _0x2f7b94=_0x484822['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f21ad=>{const _0x282466=_0x484822['_getAttributeKey'](_0x5f21ad);return'listStart'==_0x282466||'listReversed'==_0x282466;});for(const _0x4cfa25 of _0x2f7b94){const _0x51c6bc=_0x4cfa25['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x51c6bc||'customNumbered'==_0x51c6bc)continue;_0x484822['_findSuggestions'](_0x4cfa25['getFirstRange'](),'attribute')['find'](_0x465962=>'listType'==_0x484822['_getAttributeKey'](_0x465962['suggestion']))||(_0x5caad5['removeMarker'](_0x4cfa25['getFirstMarker']()),_0x4ff0a9=!0x0);}return _0x4ff0a9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x48023a){const _0x21963a=this['editor']['locale'],{data:_0x5e331b}=_0x48023a,_0x141405={'type':'format','content':''};if(!_0x5e331b||'listStyle'!=_0x5e331b['key'])return;if(!_0x5e331b['oldValue'])return'default'==_0x5e331b['newValue']?_0x141405:{'type':'format','content':''+c(_0x21963a,'*Set\x20format:*\x20%0',c(_0x21963a,this['_getTranslationKeyForListStyle'](_0x5e331b['newValue'])))};if(!_0x5e331b['newValue']){if('default'==_0x5e331b['oldValue'])return _0x141405;let _0x38d2c6=_0x48023a['head'];for(;_0x38d2c6;){if(_0x38d2c6['data']&&'listType'==_0x38d2c6['data']['key']&&_0x38d2c6['data']['newValue'])return _0x141405;_0x38d2c6=_0x38d2c6['next'];}return{'type':'format','content':''+c(_0x21963a,'*Remove\x20format:*\x20%0',c(_0x21963a,this['_getTranslationKeyForListStyle'](_0x5e331b['oldValue'])))};}if('default'!=_0x5e331b['newValue'])return{'type':'format','content':''+c(_0x21963a,'*Set\x20format:*\x20%0',c(_0x21963a,this['_getTranslationKeyForListStyle'](_0x5e331b['newValue'])))};let _0x2a2e9c=_0x48023a['head'];for(;_0x2a2e9c;){if(_0x2a2e9c['data']&&'listType'==_0x2a2e9c['data']['key']&&_0x2a2e9c['data']['newValue']&&_0x2a2e9c['data']['oldValue'])return _0x141405;_0x2a2e9c=_0x2a2e9c['next'];}return{'type':'format','content':c(_0x21963a,'*Set\x20format:*\x20%0',c(_0x21963a,'ELEMENT_'+_0x48023a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x138283=this['editor'],_0x591537=_0x138283['locale'];_0x138283['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f931b=>{if('formatBlock'!=_0x1f931b['type'])return;const {data:_0xad5407}=_0x1f931b;if(!_0xad5407)return;let _0x431e82,_0x56844b;switch(_0xad5407['commandName']){case'listStyle':_0x431e82='*Change\x20to:*\x20%0',_0x56844b={'type':'format','content':c(_0x591537,_0x431e82,c(_0x591537,this['_getTranslationKeyForListStyle'](_0xad5407['commandParams'][0x0]['type'])))};break;case'listReversed':_0x431e82=_0xad5407['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56844b={'type':'format','content':c(_0x591537,_0x431e82)};break;case'listStart':_0x431e82='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56844b={'type':'format','content':c(_0x591537,_0x431e82,_0xad5407['commandParams'][0x0]['startIndex'])};}return _0x56844b;});}['_getTranslationKeyForListStyle'](_0x14e6de){return'ELEMENT_'+function(_0x37884e){if(_e['includes'](_0x37884e))return'bulleted';if(Re['includes'](_0x37884e))return'numbered';return null;}(_0x14e6de)['toUpperCase']()+'_LIST_'+_0x14e6de['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x13e4d9{['afterInit'](){const _0x1eba59=this['editor'];_0x1eba59['commands']['get']('emoji')&&_0x1eba59['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x13e4d9{static get['requires'](){return[_0x1bace6];}['init'](){const _0x3ad3c1=this['editor'],_0x407808=_0x3ad3c1['plugins']['get']('TrackChangesEditing'),_0x2bc766=_0x3ad3c1['commands']['get']('enter');_0x407808['enableCommand']('enter',()=>{_0x3ad3c1['model']['change'](_0x170f41=>{const _0x1893a8=_0x3ad3c1['model']['document']['selection'],_0x1ff85d=_0x1893a8['getFirstPosition'](),_0xa5ad23=_0x23f516['fromRange'](_0x1893a8['getFirstRange']());if(_0x2bc766['enterBlock'](_0x170f41)){const _0x33d62e=_0x3ad3c1['model']['createPositionAt'](_0x1ff85d['parent']['nextSibling'],0x0),_0x1cd17a=_0x170f41['createRange'](_0x1ff85d,_0x33d62e);_0x407808['markInsertion'](_0x1cd17a);}else _0x170f41['setSelection'](_0x170f41['createRange'](_0xa5ad23['end']));_0xa5ad23['detach'](),_0x2bc766['fire']('afterExecute',{'writer':_0x170f41});});}),_0x3ad3c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3ad3c1,'split'),{'priority':'high'}),_0x3ad3c1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2fa155,_0x289c6d,_0x357564)=>{const _0x2cc343=_0x357564['mapper']['markerNameToElements'](_0x289c6d['markerName']);if(_0x2cc343){for(const _0x1c0a79 of _0x2cc343)_0x1c0a79['hasClass']('ck-suggestion-marker-split')&&(_0x357564['mapper']['unbindElementFromMarkerName'](_0x1c0a79,_0x289c6d['markerName']),_0x357564['writer']['remove'](_0x1c0a79));}},{'priority':'high'}),_0x3ad3c1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2aa049,_0xaab25,_0x236d1f)=>{_0x236d1f['options']['showSuggestionHighlights']&&Fe(_0x3ad3c1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2aa049,_0xaab25,_0x236d1f);},{'priority':'high'});}}class Z extends _0x13e4d9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x18e68d=this['editor']['plugins']['get']('TrackChangesEditing');_0x18e68d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x18e68d['enableCommand']('findNext'),_0x18e68d['enableCommand']('findPrevious'),_0x18e68d['enableCommand']('replace'),_0x18e68d['enableCommand']('replaceAll');}['handleFindCommand'](_0x290ef0,_0x2ae709,_0x1f555e={}){const _0x38bbef=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x290ef0(_0x1057a5=>{let _0xf85221=('string'==typeof _0x2ae709?_0x38bbef['findByTextCallback'](_0x2ae709,_0x1f555e):_0x2ae709)(_0x1057a5);Array['isArray'](_0xf85221)&&(_0xf85221={'results':_0xf85221,'searchText':'string'==typeof _0x2ae709?_0x2ae709:''});const _0x203d49=_0xf85221['results']['filter'](_0xfe5ab0=>!0x1===this['_isInDeletionRange'](_0xfe5ab0,_0x1057a5['item']));return{..._0xf85221,'results':_0x203d49};},_0x1f555e);}['_isInDeletionRange'](_0x380afd,_0x5ccec2){const _0x41e833=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ccec2,_0x380afd['start']),this['editor']['model']['createPositionAt'](_0x5ccec2,_0x380afd['end']));for(const _0x315a45 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x41e833['getIntersection'](_0x315a45['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x13e4d9{['afterInit'](){const _0x325514=this['editor']['locale'],_0xe7cba1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1dbe80,commandName:_0x14a104}of ro)this['editor']['plugins']['has'](_0x1dbe80)&&(_0xe7cba1['enableDefaultAttributesIntegration'](_0x14a104),_0xe7cba1['registerInlineAttribute'](_0x14a104));_0xe7cba1['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x325514,'FORMAT_FONT_SIZE')),_0xe7cba1['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x325514,'FORMAT_FONT_FAMILY')),_0xe7cba1['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x325514,'FORMAT_FONT_COLOR')),_0xe7cba1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x325514,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ca83a=this['editor'],_0x4d4eeb=_0x5ca83a['locale'];_0x5ca83a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50ce69=>{const _0x1161ea=_0x4d4eeb['t'];if('formatInline'!=_0x50ce69['type'])return;const {data:_0x422bd5}=_0x50ce69;if(null!=_0x422bd5){if('fontSize'==_0x422bd5['commandName']){const _0x5d7d04=_0x422bd5['commandParams'][0x0]['value'];if(_0x5d7d04){const _0x3ec16e=_0x1161ea(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x48435f=>_0x48435f['model']==_0x5d7d04)['title'])['toLowerCase']();return{'type':'format','content':c(_0x4d4eeb,'*Set\x20font\x20size:*\x20%0',_0x3ec16e)};}return{'type':'format','content':c(_0x4d4eeb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x422bd5['commandName']){const _0x5bbfd6=_0x422bd5['commandParams'][0x0]['value'];return _0x5bbfd6?{'type':'format','content':c(_0x4d4eeb,'*Set\x20font\x20family:*\x20%0',_0x5bbfd6)}:{'type':'format','content':c(_0x4d4eeb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x422bd5['commandName']){const _0x2e6057=_0x422bd5['commandParams'][0x0]['value'];if(_0x2e6057){const _0x3c89f6=_0x54391d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x490538=>_0x490538['model']==_0x2e6057);let _0x11d378=_0x2e6057,_0x4a63f8='';return _0x3c89f6&&(_0x11d378=_0x3c89f6['label'],_0x4a63f8=_0x1161ea(_0x11d378)['toLowerCase']()),{'type':'format','content':c(_0x4d4eeb,'*Set\x20font\x20color:*\x20%0',_0x4a63f8)['trim'](),'color':{'value':_0x2e6057,'title':_0x4a63f8||_0x11d378}};}return{'type':'format','content':c(_0x4d4eeb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x422bd5['commandName']){const _0x45233c=_0x422bd5['commandParams'][0x0]['value'];if(_0x45233c){const _0x36151d=_0x54391d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xa62e5b=>_0xa62e5b['model']==_0x45233c);let _0x531343=_0x45233c,_0x5bdb95='';return _0x36151d&&(_0x531343=_0x36151d['label'],_0x5bdb95=_0x1161ea(_0x531343)['toLowerCase']()),{'type':'format','content':c(_0x4d4eeb,'*Set\x20font\x20background\x20color:*\x20%0',_0x5bdb95)['trim'](),'color':{'value':_0x45233c,'title':_0x5bdb95||_0x531343}};}return{'type':'format','content':c(_0x4d4eeb,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x13e4d9{['afterInit'](){const _0x5b5c3c=this['editor'],_0x49e2b1=_0x5b5c3c['plugins']['get']('TrackChangesEditing'),_0x228d92=_0x5b5c3c['commands']['get']('copyFormat'),_0x1ff461=_0x5b5c3c['commands']['get']('pasteFormat');_0x228d92&&_0x1ff461&&(_0x49e2b1['enableDefaultAttributesIntegration']('pasteFormat'),_0x49e2b1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x427bd5=this['editor'],_0x3f6b0d=_0x427bd5['locale'];_0x427bd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150a93=>{if('formatBlock'!=_0x150a93['type']&&'formatInline'!=_0x150a93['type'])return;const {data:_0x1d9256}=_0x150a93;if(_0x1d9256&&'pasteFormat'===_0x1d9256['commandName']){const _0x2f6b15=[],_0x416aa9=_0x1d9256['commandParams'][0x0];for(const [_0xceadcf,_0xbf5f35]of Object['entries'](_0x416aa9))_0x2f6b15['push'](so(_0x427bd5,_0xceadcf,_0xbf5f35));return _0x2f6b15['length']?{'type':'format','content':c(_0x3f6b0d,'*Set\x20format\x20to:*\x20%0',_0x2f6b15['join'](',\x20'))}:{'type':'format','content':c(_0x3f6b0d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x801deb,_0x2b30c9,_0x121de5){const _0x9e297c=_0x801deb['locale']['t'],_0x540efc=_0x2b30c9['split'](/(?=[A-Z])/)['join']('\x20'),_0x57e74e=_0x9e297c(_0x540efc['charAt'](0x0)['toUpperCase']()+_0x540efc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x121de5)return _0x57e74e;if('fontColor'===_0x2b30c9||'fontBackgroundColor'===_0x2b30c9){const _0x119c71=_0x54391d(_0x801deb['config']['get']('fontColor.colors'))['find'](_0x22b758=>_0x22b758['model']==_0x121de5);return _0x57e74e+'\x20('+(_0x119c71?_0x9e297c(_0x119c71['label'])['toLowerCase']():_0x121de5)+')';}if('fontSize'===_0x2b30c9&&isNaN(parseFloat(_0x121de5))){const _0x75213b=_0x801deb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x801deb['config']['get']('fontSize.options'))['find'](_0x54c0f3=>_0x54c0f3['model']==_0x121de5);return _0x57e74e+'\x20('+(_0x75213b?_0x9e297c(_0x75213b['title'])['toLowerCase']():_0x121de5)+')';}return _0x57e74e+'\x20('+_0x121de5+')';}class nt extends _0x13e4d9{['_headingOptions'];['afterInit'](){const _0x21658b=this['editor'];if(!_0x21658b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x21658b['config']['get']('heading.options');const _0x2bd5b2=_0x21658b['locale'],_0x3477ff=_0x21658b['plugins']['get']('TrackChangesEditing');_0x3477ff['enableDefaultAttributesIntegration']('heading');for(const _0x15e8b4 of this['_headingOptions'])'paragraph'!=_0x15e8b4['model']&&_0x3477ff['descriptionFactory']['registerElementLabel'](_0x15e8b4['model'],_0x2c7e7e=>{const _0x48d189=this['_getHeadingLevel'](_0x15e8b4['model']);return null!==_0x48d189?_0x2bc2a5(_0x2c7e7e,_0x48d189):_0x74f14d(_0x2c7e7e,_0x15e8b4['title']);});function _0x2bc2a5(_0x42a56e,_0x5ccc1d){return c(_0x2bd5b2,'ELEMENT_HEADING',[_0x42a56e,_0x5ccc1d]);}function _0x74f14d(_0xcd792,_0x202966){return c(_0x2bd5b2,'ELEMENT_HEADING_CUSTOM',[_0xcd792,_0x202966]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2da679=this['editor'],_0x4c7a11=_0x2da679['locale'];function _0x5de513(_0x4f762a,_0x950481){return c(_0x4c7a11,'ELEMENT_HEADING_CUSTOM',[_0x4f762a,_0x950481]);}_0x2da679['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25288b=>{if('formatBlock'!=_0x25288b['type'])return;const {data:_0x53b5e4}=_0x25288b;if(_0x53b5e4&&'heading'==_0x53b5e4['commandName']){const _0x84459a=_0x53b5e4['commandParams'][0x0]['value'],_0x278fc0=this['_getHeadingLevel'](_0x84459a);if(null!==_0x278fc0)return{'type':'format','content':c(_0x4c7a11,'*Change\x20to:*\x20%0',(_0x5d5505=0x1,_0x3dfe7d=_0x278fc0,c(_0x4c7a11,'ELEMENT_HEADING',[_0x5d5505,_0x3dfe7d])))};const _0x161a17=this['_headingOptions']['find'](_0x321b37=>_0x321b37['model']===_0x84459a)['title'];return{'type':'format','content':c(_0x4c7a11,'*Change\x20to:*\x20%0',_0x5de513(0x1,_0x161a17))};}var _0x5d5505,_0x3dfe7d;});}['_getHeadingLevel'](_0x290cd0){const _0x54e3b4=_0x290cd0['match'](/^heading(\d+)/);if(_0x54e3b4)return _0x54e3b4[0x1];const _0x412a91=this['_headingOptions']?.['find'](_0x340856=>_0x340856['model']==_0x290cd0);if(_0x412a91&&_0x412a91['view']){const _0x595040=_0x412a91['view'],_0x3fd613=(_0x595040['name']??_0x595040)['match'](/^h(\d+)/);if(_0x3fd613)return _0x3fd613[0x1];}return null;}}class it extends _0x13e4d9{['afterInit'](){const _0x178eb7=this['editor'];if(!_0x178eb7['plugins']['has']('HighlightEditing'))return;const _0x462466=_0x178eb7['plugins']['get']('TrackChangesEditing'),_0x5f1532=_0x178eb7['locale'];_0x462466['enableDefaultAttributesIntegration']('highlight'),_0x462466['registerInlineAttribute']('highlight'),_0x462466['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5f1532,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b24a9=this['editor'],_0x24dde0=_0x4b24a9['locale'];_0x4b24a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16e258=>{if('formatInline'!=_0x16e258['type'])return;const {data:_0x1d76e2}=_0x16e258;if(_0x1d76e2&&'highlight'==_0x1d76e2['commandName']){const _0x3eb908=_0x24dde0['t'],_0x372648=_0x1d76e2['commandParams'][0x0]['value'];if(_0x372648){const _0x29a61a=_0x4b24a9['config']['get']('highlight.options')['find'](_0x5c0566=>_0x5c0566['model']==_0x372648),_0x509116=_0x3eb908(_0x29a61a['title'])['toLowerCase']();return{'type':'format','content':c(_0x24dde0,'*Set\x20highlight:*\x20%0',_0x509116),'color':{'value':_0x29a61a['color'],'title':_0x29a61a['title']}};}return{'type':'format','content':c(_0x24dde0,'*Remove\x20highlight*',c(_0x24dde0,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x13e4d9{['afterInit'](){const _0x234ce7=this['editor'];if(!_0x234ce7['plugins']['has']('HorizontalLineEditing'))return;_0x234ce7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x560ccd=_0x234ce7['plugins']['get']('TrackChangesEditing'),_0x5f1ef5=_0x234ce7['locale'];_0x560ccd['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3f5828=>c(_0x5f1ef5,'ELEMENT_HORIZONTAL_LINE',_0x3f5828)),_0x234ce7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2a3e64,{writer:_0x34fdc7,options:_0xbb0eee})=>{if(!_0xbb0eee['showSuggestionHighlights'])return null;const _0x320f1c=_0x34fdc7['createContainerElement']('div'),_0x6f30d=_0x34fdc7['createEmptyElement']('hr');return _0x34fdc7['addClass']('ck-horizontal-line',_0x320f1c),_0x34fdc7['insert'](_0x34fdc7['createPositionAt'](_0x320f1c,0x0),_0x6f30d),_0x320f1c;},'converterPriority':'high'});}}class ot extends _0x13e4d9{['afterInit'](){const _0x5939db=this['editor'];if(!_0x5939db['plugins']['has']('HtmlEmbed'))return;const _0x33d82e=_0x5939db['plugins']['get']('TrackChangesEditing'),_0x51491e=_0x5939db['locale'];_0x33d82e['descriptionFactory']['registerElementLabel']('rawHtml',_0x5ef9df=>c(_0x51491e,'ELEMENT_HTML_EMBED',_0x5ef9df)),_0x33d82e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x33d82e['registerBlockAttribute']('value'),_0x33d82e['descriptionFactory']['registerDescriptionCallback'](_0x2016ae=>{if('attribute'!=_0x2016ae['type'])return;const {data:_0x524aee}=_0x2016ae;if(_0x524aee&&'value'==_0x524aee['key']&&_0x2016ae['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x47ca97=c(_0x51491e,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x51491e,'*Change\x20%0\x20content*',_0x47ca97)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c456c=this['editor'],_0x2035ad=_0x2c456c['locale'];_0x2c456c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36c77b=>{if('formatBlock'!=_0x36c77b['type'])return;const {data:_0x2c85f3}=_0x36c77b;if(_0x2c85f3&&'htmlEmbed'==_0x2c85f3['commandName']){const _0x1d9a62=c(_0x2035ad,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2035ad,'*Change\x20%0\x20content*',_0x1d9a62)};}});}}class rt extends _0x13e4d9{['afterInit'](){const _0x2da269=this['editor'];if(!_0x2da269['plugins']['has']('ImageEditing'))return;const _0x237c6e=_0x2da269['plugins']['get']('TrackChangesEditing'),_0x28cbf9=_0x2da269['plugins']['get']('ImageUtils'),_0x36c96f=_0x2da269['locale'];_0x237c6e['enableCommand']('insertImage'),_0x237c6e['descriptionFactory']['registerElementLabel']('imageBlock',_0x5d0ec8=>c(_0x36c96f,'ELEMENT_IMAGE',_0x5d0ec8)),_0x237c6e['descriptionFactory']['registerElementLabel']('imageInline',_0x13e6df=>c(_0x36c96f,'ELEMENT_INLINE_IMAGE',_0x13e6df)),_0x237c6e['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x36c96f,'ELEMENT_CAPTION')),_0x2da269['plugins']['has']('ImageUploadEditing')&&_0x237c6e['enableCommand']('uploadImage'),_0x2da269['plugins']['has']('ImageBlockEditing')&&_0x2da269['plugins']['has']('ImageInlineEditing')&&(_0x237c6e['enableCommand']('imageTypeInline',(_0x365827,_0x2046a3)=>{const _0x411662=_0x28cbf9['getClosestSelectedImageElement'](_0x2da269['model']['document']['selection']);_0x2da269['model']['change'](()=>{_0x237c6e['markBlockFormat'](_0x411662,{'commandName':'imageTypeInline','commandParams':[_0x2046a3]},[],'convertBlockImageToInline');});}),_0x237c6e['enableCommand']('imageTypeBlock',(_0xdf954e,_0x3c66cd)=>{_0x2da269['model']['change'](_0x151912=>{let _0x4ee6d4=_0x28cbf9['getClosestSelectedImageElement'](_0x2da269['model']['document']['selection']),_0x28483b=_0x151912['createRangeOn'](_0x4ee6d4);const _0x1a0fdd=_0xb5d29c['fromPosition'](_0x28483b['start'],'toPrevious'),_0x1337a5=_0xb5d29c['fromPosition'](_0x28483b['end'],'toNext');_0x237c6e['forceDefaultExecution'](()=>_0xdf954e(_0x3c66cd)),_0x4ee6d4=_0x28cbf9['getClosestSelectedImageElement'](_0x2da269['model']['document']['selection']),_0x28483b=_0x151912['createRangeOn'](_0x4ee6d4);const _0x27ec64=_0x151912['createRange'](_0x1a0fdd,_0x1337a5);_0x1a0fdd['detach'](),_0x1337a5['detach'](),_0x237c6e['markBlockFormat'](_0x4ee6d4,{'commandName':'imageTypeInline','commandParams':[_0x3c66cd]},[],'convertInlineImageToBlock'),_0x27ec64['start']['isBefore'](_0x28483b['start'])&&_0x237c6e['markInsertion'](_0x151912['createRange'](_0x27ec64['start'],_0x28483b['start']),'convertInlineImageToBlock'),_0x28483b['end']['isBefore'](_0x27ec64['end'])&&_0x237c6e['markInsertion'](_0x151912['createRange'](_0x28483b['end'],_0x27ec64['end']),'convertInlineImageToBlock');});}),_0x237c6e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x237c6e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x237c6e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x237c6e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x237c6e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x237c6e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5d3f3a])=>{const _0x3f1f0f=_0x237c6e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x404e64=_0x5d3f3a['start'],_0x4abd68=_0x5d3f3a['end'];const _0x4140cb=_0x2da269['model']['schema']['getNearestSelectionRange'](_0x404e64,'backward'),_0x550af9=_0x2da269['model']['schema']['getNearestSelectionRange'](_0x4abd68,'forward');_0x4140cb['isCollapsed']&&(_0x404e64=_0x4140cb['start']),_0x550af9['isCollapsed']&&(_0x4abd68=_0x550af9['end']),_0x3f1f0f([_0x2da269['model']['createRange'](_0x404e64,_0x4abd68)]);}),_0x237c6e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x477f26),_0x237c6e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x477f26)),_0x2da269['plugins']['has']('ImageCaptionEditing')&&(_0x237c6e['enableCommand']('toggleImageCaption',(_0x469c4a,_0x4f0124)=>{const _0x3067a6=_0x2da269['plugins']['get']('ImageCaptionUtils');let _0x24c580=_0x28cbf9['getClosestSelectedImageElement'](_0x2da269['model']['document']['selection']),_0xe02e04=_0x3067a6['getCaptionFromImageModelElement'](_0x24c580);_0x2da269['model']['change'](()=>{if(_0xe02e04)return void _0x237c6e['markDeletion'](_0x2da269['model']['createRangeOn'](_0xe02e04));const _0xb25775=_0x28cbf9['isBlockImage'](_0x24c580);_0x469c4a(_0x4f0124),_0x24c580=_0x28cbf9['getClosestSelectedImageElement'](_0x2da269['model']['document']['selection']),_0xe02e04=_0x3067a6['getCaptionFromImageModelElement'](_0x24c580),_0x237c6e['markInsertion'](_0x2da269['model']['createRangeOn'](_0xe02e04),_0xb25775?null:'imageCaption');});}),_0x237c6e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x477f26));const _0x85c0e2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47205d(_0x66d4c1,_0x8dedc1){const _0x34f84a=_0x85c0e2['findIndex'](({type:_0x3a54f7,subType:_0x5bc431})=>_0x66d4c1['type']==_0x3a54f7&&_0x66d4c1['subType']==_0x5bc431),_0x1a8b0f=_0x85c0e2['findIndex'](({type:_0x31e420,subType:_0x468ee8})=>_0x8dedc1['type']==_0x31e420&&_0x8dedc1['subType']==_0x468ee8);if(_0x34f84a<0x0||_0x1a8b0f<0x0)return!0x1;const _0x439ba7=_0x66d4c1['getFirstRange'](),_0x232a68=_0x8dedc1['getFirstRange']();if((0x0==_0x34f84a||0x1==_0x34f84a)&&0x2==_0x1a8b0f&&_0x439ba7['isIntersecting'](_0x232a68))return!0x0;if(0x2==_0x34f84a&&0x3==_0x1a8b0f){const _0x4c6b54=_0x237c6e['_findSuggestions'](_0x439ba7,'insertion')['filter'](({suggestion:_0x5c72c7,meta:_0x2d12d2})=>_0x2d12d2['isOwn']&&'convertInlineImageToBlock'==_0x5c72c7['subType']);if(_0x4c6b54['length']>0x1&&_0x232a68['end']['isEqual'](_0x439ba7['start']))return!0x0;if(0x1==_0x4c6b54['length']&&(_0x439ba7['start']['isEqual'](_0x232a68['end'])||_0x439ba7['end']['isEqual'](_0x232a68['start'])))return!0x0;}if(0x3==_0x34f84a&&0x3==_0x1a8b0f&&_0x439ba7['start']['isBefore'](_0x232a68['start'])){const _0x5c5023=_0x439ba7['end']['nodeAfter'],_0x1899f9=_0x232a68['start']['nodeBefore'];return _0x28cbf9['isBlockImage'](_0x5c5023)&&_0x5c5023===_0x1899f9;}return!0x1;}function _0x477f26(_0x1c95e2,_0x16af43){return _0x47205d(_0x1c95e2,_0x16af43)?[_0x1c95e2,_0x16af43]:_0x47205d(_0x16af43,_0x1c95e2)?[_0x16af43,_0x1c95e2]:null;}_0x2da269['plugins']['has']('ImageResize')&&(_0x237c6e['enableDefaultAttributesIntegration']('resizeImage'),_0x237c6e['registerBlockAttribute']('resizedWidth'),_0x237c6e['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x36c96f,'FORMAT_IMAGE_SIZE'))),_0x2da269['plugins']['has']('ImageTextAlternativeEditing')&&(_0x237c6e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x237c6e['registerBlockAttribute']('alt')),_0x2da269['plugins']['has']('PictureEditing')&&(_0x237c6e['registerBlockAttribute']('sources'),_0x237c6e['descriptionFactory']['registerDescriptionCallback'](_0x336548=>{if('attribute'!=_0x336548['type'])return;const {data:_0x7b5ec2}=_0x336548;return _0x7b5ec2&&'sources'==_0x7b5ec2['key']?{'type':'format','content':''}:void 0x0;})),_0x2da269['plugins']['has']('ImageSizeAttributes')&&(_0x237c6e['registerBlockAttribute']('width'),_0x237c6e['registerBlockAttribute']('height'),_0x237c6e['descriptionFactory']['registerDescriptionCallback'](_0x57d5d4=>{if('attribute'!=_0x57d5d4['type'])return;const {data:_0x59a67a}=_0x57d5d4;return!_0x59a67a||'width'!=_0x59a67a['key']&&'height'!=_0x59a67a['key']?void 0x0:{'type':'format','content':''};})),_0x237c6e['descriptionFactory']['registerDescriptionCallback'](_0x3214f8=>{if(!!_0x85c0e2['find'](({type:_0x20a890,subType:_0x162061})=>_0x3214f8['type']==_0x20a890&&_0x3214f8['subType']==_0x162061))return _0x3214f8['previous']?{}:void 0x0;}),_0x237c6e['descriptionFactory']['registerDescriptionCallback'](_0x490b84=>{if('insertion'==_0x490b84['type']||'deletion'==_0x490b84['type']){const _0x3dbf31=_0x490b84['getContainedElement']();if(_0x3dbf31&&_0x3dbf31['is']('element','caption'))return{'type':'insertion'==_0x490b84['type']?'addObject':'removeObject','element':_0x3dbf31,'quantity':0x1};}}),_0x237c6e['descriptionFactory']['registerDescriptionCallback'](_0x1ef529=>'formatBlock'==_0x1ef529['type']&&'convertInlineImageToBlock'==_0x1ef529['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1ef529['type']&&'convertBlockImageToInline'==_0x1ef529['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x237c6e['descriptionFactory']['registerDescriptionCallback'](_0x43c876=>{if('attribute'!=_0x43c876['type'])return;const {data:_0x3bc004}=_0x43c876;if(!_0x3bc004||'alt'!=_0x3bc004['key'])return;const _0x4c80b7=_0x3bc004['newValue'];return _0x4c80b7?{'type':'format','content':c(_0x36c96f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c80b7+'\x22')}:{'type':'format','content':c(_0x36c96f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x494ed7=this['editor'],_0x3f58c8=_0x494ed7['locale'];_0x494ed7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a7d65=>{if('formatBlock'!=_0x4a7d65['type']&&'formatInline'!=_0x4a7d65['type'])return;const {data:_0x1db805}=_0x4a7d65;if(_0x1db805){if('imageTextAlternative'==_0x1db805['commandName']){const _0x1c9d00=_0x1db805['commandParams'][0x0]['newValue'];return _0x1c9d00?{'type':'format','content':c(_0x3f58c8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1c9d00+'\x22')}:{'type':'format','content':c(_0x3f58c8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1db805['commandName']){const _0x8d5cd=_0x1db805['commandParams'][0x0]['width'];return _0x8d5cd?{'type':'format','content':c(_0x3f58c8,'*Set\x20image\x20width:*\x20%0',_0x8d5cd)}:{'type':'format','content':c(_0x3f58c8,'*Reset\x20image\x20width*')};}}});}}class at extends _0x13e4d9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x59d784=this['editor']['locale'],_0x3146ba=this['editor']['plugins']['get']('TrackChangesEditing');_0x3146ba['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3146ba['registerBlockAttribute']('src'),_0x3146ba['descriptionFactory']['registerDescriptionCallback'](_0x78268d=>{if('attribute'!=_0x78268d['type'])return;const {data:_0x51d47f}=_0x78268d;return _0x51d47f&&'src'==_0x51d47f['key']?_0x51d47f['newValue']&&_0x51d47f['oldValue']?{'type':'format','content':c(_0x59d784,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x44c4ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x44c4ec['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x44c4ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44c4ec['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x44c4ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d395b=this['editor'],_0x4707b5=_0x2d395b['locale'];_0x2d395b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39cefa=>{if('formatBlock'!=_0x39cefa['type']&&'formatInline'!=_0x39cefa['type'])return;const {data:_0x38883c}=_0x39cefa;if(!_0x38883c||'replaceImageSource'!=_0x38883c['commandName'])return;return{'type':'format','content':c(_0x4707b5,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x13e4d9{['afterInit'](){const _0x50674a=this['editor'];if(!_0x50674a['plugins']['has']('ImageStyleEditing'))return;const _0x3abc0b=_0x50674a['plugins']['get']('TrackChangesEditing'),_0x1f8f37=_0x50674a['plugins']['get']('ImageUtils'),_0x194e43={};_0x3abc0b['enableCommand']('imageStyle',(_0x493832,_0x52c246)=>{const _0x3265e5=_0x50674a['plugins']['get']('Users')['me'],_0x2d86f7=_0x50674a['commands']['get']('imageStyle');let _0xa0f72f=_0x1f8f37['getClosestSelectedImageElement'](_0x50674a['model']['document']['selection']),_0x20693d=_0x50674a['model']['createRangeOn'](_0xa0f72f),_0x190538=_0x2d86f7['value'];if(_0x190538==_0x52c246['value'])return;const _0x5e0ac1={'commandName':'imageStyle','commandParams':[_0x52c246],'formatGroupId':_0x391cd8()};_0x50674a['model']['change'](()=>{if(_0x3abc0b['getSuggestions']()['filter'](_0x1cd030=>_0x1cd030['isInContent']&&_0x3265e5==_0x1cd030['author']&&('formatBlock'==_0x1cd030['type']||'formatInline'==_0x1cd030['type'])&&('imageStylePreApply'==_0x1cd030['subType']||'imageStylePostApply'==_0x1cd030['subType'])&&_0x1cd030['getFirstRange']()['isEqual'](_0x20693d))['forEach'](_0x44b6d2=>_0x3abc0b['discardSuggestion'](_0x44b6d2['head'])),_0xa0f72f=_0x1f8f37['getClosestSelectedImageElement'](_0x50674a['model']['document']['selection']),_0x20693d=_0x50674a['model']['createRangeOn'](_0xa0f72f),_0x2d86f7['refresh'](),_0x50674a['commands']['get']('imageTypeInline')['refresh'](),_0x50674a['commands']['get']('imageTypeBlock')['refresh'](),_0x190538=_0x2d86f7['value'],_0x190538!=_0x52c246['value'])return _0x1f8f37['isInlineImage'](_0xa0f72f)&&_0x2d86f7['shouldConvertImageType'](_0x52c246['value'],_0xa0f72f)?(_0x493832({..._0x52c246,'setImageSizes':!0x1}),_0xa0f72f=_0x1f8f37['getClosestSelectedImageElement'](_0x50674a['model']['document']['selection']),void _0x3abc0b['markBlockFormat'](_0xa0f72f,{..._0x5e0ac1,'commandReversedParams':[{'value':_0x190538||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1f8f37['isBlockImage'](_0xa0f72f)?_0x3abc0b['markBlockFormat'](_0xa0f72f,_0x5e0ac1,[],'imageStylePostApply'):_0x3abc0b['markInlineFormat'](_0x20693d,_0x5e0ac1,'imageStylePostApply'));});});for(const _0x4287a8 of _0x50674a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x194e43[_0x4287a8['name']]=_0x4287a8['title']['toLowerCase']();_0x3abc0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3abc0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3abc0b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3abc0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2937fc])=>{_0x1f8f37['setImageNaturalSizeAttributes'](_0x2937fc['getContainedElement']());}),_0x3abc0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x291f9d,_0x2c0bee)=>{_0x3abc0b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x291f9d,{'commandName':_0x2c0bee['commandName'],'commandParams':_0x2c0bee['commandReversedParams']});}),_0x3abc0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x139b5f,_0x2a2cd1){if(_0x216d24(_0x139b5f,_0x2a2cd1))return[_0x139b5f,_0x2a2cd1];if(_0x216d24(_0x2a2cd1,_0x139b5f))return[_0x2a2cd1,_0x139b5f];return null;});const _0x223f5a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x216d24(_0x2aae11,_0x4ec0e1){const _0x1e70dc=_0x223f5a['findIndex'](({type:_0x1f70fa,subType:_0x3ca129})=>_0x2aae11['type']==_0x1f70fa&&_0x2aae11['subType']==_0x3ca129),_0x290870=_0x223f5a['findIndex'](({type:_0x51200f,subType:_0xc43fe1})=>_0x4ec0e1['type']==_0x51200f&&_0x4ec0e1['subType']==_0xc43fe1);if(_0x1e70dc<0x0||_0x290870<0x0)return!0x1;const _0x142b77=_0x2aae11['getFirstRange'](),_0x1acc4b=_0x4ec0e1['getFirstRange']();if((0x0==_0x1e70dc||0x1==_0x1e70dc)&&0x2==_0x290870&&_0x142b77['isIntersecting'](_0x1acc4b))return!0x0;if(0x2==_0x1e70dc&&0x3==_0x290870){const _0x16070d=_0x3abc0b['_findSuggestions'](_0x142b77,'insertion')['filter'](({suggestion:_0x6be0c3,meta:_0x1978c6})=>_0x1978c6['isOwn']&&'convertInlineImageToBlock'==_0x6be0c3['subType']);if(_0x16070d['length']>0x1&&_0x1acc4b['end']['isEqual'](_0x142b77['start']))return!0x0;if(0x1==_0x16070d['length']&&(_0x142b77['start']['isEqual'](_0x1acc4b['end'])||_0x142b77['end']['isEqual'](_0x1acc4b['start'])))return!0x0;}if(0x3==_0x1e70dc&&0x3==_0x290870&&_0x142b77['start']['isBefore'](_0x1acc4b['start'])){const _0x4869b6=_0x142b77['end']['nodeAfter'],_0x25f0b1=_0x1acc4b['start']['nodeBefore'];return _0x1f8f37['isBlockImage'](_0x4869b6)&&_0x4869b6===_0x25f0b1;}return!0x1;}_0x50674a['model']['document']['registerPostFixer'](()=>{let _0x80ebe0=!0x1;const _0x4236d2=Array['from'](_0x50674a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54febf,data:_0x5f4440}of _0x4236d2){const {group:_0x2d9853,type:_0x56040c,subType:_0x3aa37a,id:_0x1417c8}=_0x3abc0b['_splitMarkerName'](_0x54febf);if('suggestion'==_0x2d9853&&_0x3abc0b['hasSuggestion'](_0x1417c8)){if('formatBlock'==_0x56040c&&('imageStylePreApply'==_0x3aa37a||'imageStylePostApply'==_0x3aa37a)){const _0x301a6d=_0x3abc0b['getSuggestion'](_0x1417c8);if(_0x5f4440['newRange']){const _0xf99d4f=_0x301a6d['getFirstRange']()['getContainedElement']();if(_0x1f8f37['isBlockImage'](_0xf99d4f))continue;_0x3abc0b['discardSuggestion'](_0x301a6d),_0x80ebe0=!0x0;}}if('insertion'==_0x56040c&&'imageCaption'==_0x3aa37a&&!_0x5f4440['newRange']){const _0x365afb=_0x3abc0b['getSuggestion'](_0x1417c8);_0x365afb['next']&&_0x365afb['next']['isInContent']&&(_0x3abc0b['discardSuggestion'](_0x365afb['next']),_0x80ebe0=!0x0);}}}return _0x80ebe0;}),this['_registerLegacyDescription'](_0x194e43);}['_registerLegacyDescription'](_0x4ddd15){const _0x59e2f6=this['editor'],_0x3abb9e=_0x59e2f6['locale'];_0x59e2f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xafecf3=>{if('formatBlock'!=_0xafecf3['type']&&'formatInline'!=_0xafecf3['type'])return;const {data:_0xf8da7c}=_0xafecf3;if(!_0xf8da7c||'imageStyle'!=_0xf8da7c['commandName'])return;const _0x13d53c=_0xf8da7c['commandParams'][0x0]['value'];return _0x5e6b2c('side'===_0x13d53c?c(_0x3abb9e,'FORMAT_SIDE_IMAGE'):_0x4ddd15[_0x13d53c]||_0x13d53c);function _0x5e6b2c(_0x229fa6){return{'type':'format','content':c(_0x3abb9e,'*Format:*\x20%0',_0x229fa6)};}});}}class ut extends _0x13e4d9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xff2af){super(_0xff2af),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f6544=this['editor'],_0x50273f=_0x1f6544['commands']['get']('importWord'),_0x4f5929=_0x1f6544['commands']['get']('trackChanges');_0x50273f&&(_0x50273f['on']('execute',(_0x884a76,[,_0x1765f6])=>{this['_trackChangesValueDuringImport']=_0x4f5929['value'],_0x1765f6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x50273f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x50273f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4f5929['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f6544['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x335011,_0x54477f){const {suggestions:_0x2cd1ab}=_0x54477f,_0x39886d=this['editor']['commands']['get']('trackChanges'),_0x6fb1af=_0x39886d['value'];this['_trackChangesValueDuringImport']!==_0x6fb1af&&(_0x39886d['execute'](),this['_trackChangesExecuted']=!0x0),_0x2cd1ab&&_0x2cd1ab['forEach'](({id:_0x24a177,type:_0x58fbfa,author:_0x5b54b8,created_at:_0x1079ff})=>{const _0x446439={'id':_0x24a177,'type':_0x58fbfa,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b54b8,'createdAt':_0x1079ff?new Date(_0x1079ff):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x446439);});}}class ft extends _0x13e4d9{['afterInit'](){const _0x16b3ed=this['editor'],_0xe55353=_0x16b3ed['plugins']['get']('TrackChangesEditing');if(_0x16b3ed['plugins']['has']('IndentEditing')&&(_0xe55353['enableCommand']('indent'),_0xe55353['enableCommand']('outdent')),_0x16b3ed['plugins']['has']('IndentBlock')){for(const _0x21e9c0 of['indentBlock','outdentBlock'])_0xe55353['enableDefaultAttributesIntegration'](_0x21e9c0);}const _0x6c32e3=_0x16b3ed['locale'];_0xe55353['registerBlockAttribute']('blockIndent'),_0xe55353['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x6c32e3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1af961=this['editor'],_0x40525e=_0x1af961['locale'],_0x2f0628=_0x1af961['plugins']['get']('TrackChangesEditing');_0x2f0628['descriptionFactory']['registerDescriptionCallback'](_0x4ef734=>{if('formatBlock'!=_0x4ef734['type'])return;const {data:_0x2ba35f}=_0x4ef734;if(!_0x2ba35f)return;if('indentBlock'!=_0x2ba35f['commandName']&&'outdentBlock'!=_0x2ba35f['commandName'])return;const _0x39bb95=_0x4ef734['getItems']()[0x0],_0x38a012=_0x2f0628['descriptionFactory']['getItemLabel'](_0x39bb95);return'indentBlock'==_0x2ba35f['commandName']?{'type':'format','content':c(_0x40525e,'*Indent:*\x20%0',_0x38a012)}:'outdentBlock'==_0x2ba35f['commandName']?{'type':'format','content':c(_0x40525e,'*Outdent:*\x20%0',_0x38a012)}:void 0x0;});}}class ht extends _0x13e4d9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x13e4d9{['afterInit'](){const _0x275074=this['editor'];if(!_0x275074['plugins']['has']('LinkEditing'))return;const _0x2980e3=_0x275074['plugins']['get']('TrackChangesEditing'),_0x2aa08f=_0x275074['commands']['get']('link');_0x2980e3['enableDefaultAttributesIntegration']('link'),_0x2980e3['enableDefaultAttributesIntegration']('unlink'),_0x2980e3['registerInlineAttribute']('linkHref');for(const _0xa5447d of _0x2aa08f['manualDecorators'])_0x2980e3['registerInlineAttribute'](_0xa5447d['id']),_0x2980e3['descriptionFactory']['registerAttributeLabel'](_0xa5447d['id'],'link\x20('+_0xa5447d['label']['toLowerCase']()+')');_0x2980e3['descriptionFactory']['registerDescriptionCallback'](_0x177562=>{if('attribute'!=_0x177562['type'])return;const {data:_0x291f5a}=_0x177562;if(!_0x291f5a||'linkHref'!=_0x291f5a['key'])return;const _0x2a4201=_0x291f5a['newValue'],_0x1c0c69=_0x275074['locale'];return{'type':'format','content':null==_0x2a4201?c(_0x1c0c69,'*Remove\x20link*'):c(_0x1c0c69,'*Set\x20link:*\x20%0','\x22'+_0x2a4201+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46c351=this['editor'],_0x49a728=_0x46c351['locale'];_0x46c351['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47f389=>{if('formatInline'!=_0x47f389['type'])return;const {data:_0x320db2}=_0x47f389;if(_0x320db2){if('link'==_0x320db2['commandName']){const _0x2d9218=_0x320db2['commandParams'][0x0];return{'type':'format','content':c(_0x49a728,'*Set\x20link:*\x20%0','\x22'+_0x2d9218+'\x22')};}return'unlink'==_0x320db2['commandName']?{'type':'format','content':c(_0x49a728,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x13e4d9{['afterInit'](){const _0x5b3481=this['editor'],_0x124096=_0x5b3481['locale'];if(!_0x5b3481['plugins']['has']('LegacyListEditing'))return;const _0x3cc94a=_0x5b3481['plugins']['get']('TrackChangesEditing'),_0x134852=_0x5b3481['plugins']['has']('LegacyTodoListEditing');function _0x140a58(_0x5cd0f7){return()=>{const _0x14f329=_0x5b3481['model']['document']['selection'],_0x207328=_0x5b3481['commands']['get'](_0x5cd0f7);if(_0x207328['value'])return void _0x5b3481['execute']('paragraph',{});const _0x4b3ae=_0x5cd0f7['slice'](0x0,-0x4),_0x5c8e0=function(_0x1f690e,_0x181b80,_0x53e384){let _0x232b0a=Array['from'](_0x1f690e)['filter'](_0x4a19ec=>function(_0x4a0e5f,_0x191b85){return _0x191b85['checkChild'](_0x4a0e5f['parent'],'listItem')&&!_0x191b85['isObject'](_0x4a0e5f);}(_0x4a19ec,_0x53e384));_0x232b0a=_0x232b0a['filter'](_0x14053f=>!_0x14053f['is']('element','listItem')||_0x14053f['getAttribute']('listType')!=_0x181b80);const _0x2c2eb3=new Set();for(const _0x5976db of _0x232b0a)_0x5976db['is']('element','listItem')?_0x2c2eb3['add'](Le(_0x5976db)):_0x2c2eb3['add'](_0x5976db);return Array['from'](_0x2c2eb3);}(_0x14f329['getSelectedBlocks'](),_0x4b3ae,_0x5b3481['model']['schema']);_0x5b3481['model']['change'](()=>{for(const _0x5ca0c7 of _0x5c8e0)_0x3cc94a['markBlockFormat'](_0x5ca0c7,{'commandName':_0x5cd0f7,'commandParams':[{'forceValue':!_0x207328['value']}],'formatGroupId':'blockName'},Ee(_0x5ca0c7));});};}function _0x303949(_0x5a57bf){return()=>{const _0x2a1ddd=function(_0x6cd5fd){let _0xc87806=Array['from'](_0x6cd5fd);const _0x5d1361=_0xc87806['findIndex'](_0x3deeb4=>'listItem'!=_0x3deeb4['name']);return _0x5d1361>-0x1&&(_0xc87806=_0xc87806['slice'](0x0,_0x5d1361)),_0xc87806;}(_0x5b3481['model']['document']['selection']['getSelectedBlocks']()),_0xab8c38=_0x5b3481['model']['createRange'](_0x5b3481['model']['createPositionAt'](_0x2a1ddd[0x0],'before'),_0x5b3481['model']['createPositionAt'](_0x2a1ddd[_0x2a1ddd['length']-0x1],'end'));_0x5b3481['model']['change'](()=>{_0x3cc94a['markBlockFormat'](_0xab8c38,{'commandName':_0x5a57bf,'commandParams':[],'formatGroupId':'listIndent'},function(_0xf827a5){const _0x2f7f9b=new Set();for(const _0x19d03b of _0xf827a5){let _0x5b88b4=_0x19d03b['nextSibling'];for(;_0x5b88b4&&_0x5b88b4['getAttribute']('listIndent')>_0x19d03b['getAttribute']('listIndent');)_0x2f7f9b['add'](_0x5b88b4),_0x5b88b4=_0x5b88b4['nextSibling'];}return Array['from'](_0x2f7f9b);}(_0x2a1ddd));});};}_0x3cc94a['enableCommand']('numberedList',_0x140a58('numberedList')),_0x3cc94a['enableCommand']('bulletedList',_0x140a58('bulletedList')),_0x134852&&_0x3cc94a['enableCommand']('todoList',_0x140a58('todoList')),_0x3cc94a['enableCommand']('indentList',_0x303949('indentList')),_0x3cc94a['enableCommand']('outdentList',_0x303949('outdentList')),_0x134852&&_0x3cc94a['enableCommand']('checkTodoList',()=>{const _0x1ccfcb=_0x5b3481['commands']['get']('checkTodoList'),_0x138f24=Array['from'](_0x1ccfcb['_selectedElements']);_0x138f24['filter'](_0x35eae9=>_0x35eae9['getAttribute']('todoListChecked')!=_0x1ccfcb['value']),_0x5b3481['model']['change'](()=>{for(const _0x372f5f of _0x138f24)_0x3cc94a['markBlockFormat'](_0x372f5f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1ccfcb['value']}]});});}),_0x3cc94a['descriptionFactory']['registerElementLabel']('listItem',_0x57ee87=>c(_0x124096,'ELEMENT_LIST_ITEM',_0x57ee87)),_0x3cc94a['descriptionFactory']['registerDescriptionCallback'](_0x53b7f7=>{if('formatBlock'!=_0x53b7f7['type']&&'formatInline'!=_0x53b7f7['type'])return;const {data:_0x5e3497}=_0x53b7f7;if(_0x5e3497){if('numberedList'==_0x5e3497['commandName']||'bulletedList'==_0x5e3497['commandName']||'todoList'==_0x5e3497['commandName'])switch(_0x5e3497['commandName']['replace']('List','')){case'bulleted':return _0x21922e(c(_0x124096,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x21922e(c(_0x124096,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x21922e(c(_0x124096,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5e3497['commandName'])return{'type':'format','content':c(_0x124096,'*Indent:*\x20%0',c(_0x124096,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5e3497['commandName'])return{'type':'format','content':c(_0x124096,'*Outdent:*\x20%0',c(_0x124096,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5e3497['commandName'])return _0x5e3497['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x124096,'*Check\x20item*')}:{'type':'format','content':c(_0x124096,'*Uncheck\x20item*')};}function _0x21922e(_0x4f2510){return{'type':'format','content':c(_0x124096,'*Change\x20to:*\x20%0',_0x4f2510)};}});}}function Le(_0x29e314){const _0x27bec2=_0x29e314['getAttribute']('listIndent');if(0x0==_0x27bec2)return _0x29e314;let _0x593e81=_0x29e314;for(;_0x29e314['previousSibling']&&_0x29e314['previousSibling']['is']('element','listItem');){const _0x2fe274=_0x29e314['previousSibling']['getAttribute']('listIndent');if(_0x2fe274==_0x27bec2)_0x593e81=_0x29e314['previousSibling'];else{if(_0x2fe274<_0x27bec2)break;}_0x29e314=_0x29e314['previousSibling'];}return _0x593e81;}function Ee(_0x5139a4){const _0xc8f660=[];if(_0x5139a4['is']('element','listItem')&&_0x5139a4['getAttribute']('listIndent')>0x0){let _0x1bf792=_0x5139a4['nextSibling'];for(;_0x1bf792&&'listItem'==_0x1bf792['name']&&_0x1bf792['getAttribute']('listIndent')==_0x5139a4['getAttribute']('listIndent');)_0xc8f660['push'](_0x1bf792),_0x1bf792=_0x1bf792['nextSibling'];}return _0xc8f660;}class Q extends _0x13e4d9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5aba23=this['editor']['config']['get']('list.properties'),_0x2da7cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5aba23['styles']&&_0x2da7cd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5aba23['reversed']&&_0x2da7cd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5aba23['startIndex']&&_0x2da7cd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2da7cd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x208e7d,_0x4c5bfa={}){const _0x2268a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56f750=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2268a5['markMultiRangeBlockFormat'](_0x56f750,{'commandName':'listStyle','commandParams':[{'type':_0x4c5bfa['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2a06bd,_0x193e44={}){const _0x395402=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7362af=this['_getSuggestionBlocks'](_0x4fc19a=>_0x4fc19a['is']('element','listItem')&&'numbered'===_0x4fc19a['getAttribute']('listType'));if(_0x7362af['length']<0x1)return;const _0xc01481=_0x7362af['map'](_0x2c3481=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c3481,'before'),this['editor']['model']['createPositionAt'](_0x2c3481,0x0)));this['editor']['model']['change'](()=>{_0x395402['markMultiRangeBlockFormat'](_0xc01481,{'commandName':'listReversed','commandParams':[{'reversed':_0x193e44['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x22d9ac,_0x43c60c={}){const _0x2c659d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x86e846=this['_getSuggestionBlocks'](_0x5ea01e=>_0x5ea01e['is']('element','listItem')&&'numbered'===_0x5ea01e['getAttribute']('listType'));if(_0x86e846['length']<0x1)return;const _0x126cba=_0x86e846['map'](_0x463e53=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x463e53,'before'),this['editor']['model']['createPositionAt'](_0x463e53,0x0)));this['editor']['model']['change'](()=>{_0x2c659d['markMultiRangeBlockFormat'](_0x126cba,{'commandName':'listStart','commandParams':[{'startIndex':_0x43c60c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5344c4){if('formatBlock'!=_0x5344c4['type']&&'formatInline'!=_0x5344c4['type'])return;const _0x3c2b90=this['editor']['locale'],{data:_0x1fc3b7}=_0x5344c4;if(!_0x1fc3b7)return;let _0x21c079,_0x405508;switch(_0x1fc3b7['commandName']){case'listStyle':_0x21c079='*Change\x20to:*\x20%0',_0x405508={'type':'format','content':c(_0x3c2b90,_0x21c079,c(_0x3c2b90,this['_getTranslationKeyForListStyle'](_0x1fc3b7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21c079=_0x1fc3b7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x405508={'type':'format','content':c(_0x3c2b90,_0x21c079)};break;case'listStart':_0x21c079='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x405508={'type':'format','content':c(_0x3c2b90,_0x21c079,_0x1fc3b7['commandParams'][0x0]['startIndex'])};}return _0x405508;}['_getSuggestionBlocksForListStyle'](){const _0x107dd2=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b8bfc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b8bfc[0x0]?.['is']('element','listItem')&&_0x5b8bfc['unshift'](..._0x107dd2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b8bfc[_0x5b8bfc['length']-0x1]?.['is']('element','listItem')&&_0x5b8bfc['push'](..._0x107dd2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b8bfc=[...new Set(_0x5b8bfc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b8bfc=_0x5b8bfc['filter'](_0x2cd342=>_0x2cd342['is']('element','listItem'))),_0x5b8bfc;}['_getSuggestionBlocks'](_0x3ceddf){const _0x2e1eae=this['editor']['plugins']['get']('LegacyListUtils');let _0x7d2707=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3ceddf)['map'](_0x20fd57=>{const _0x88998c=this['editor']['model']['createPositionAt'](_0x20fd57,0x0);return[..._0x2e1eae['getSiblingNodes'](_0x88998c,'backward'),..._0x2e1eae['getSiblingNodes'](_0x88998c,'forward')];})['flat']();return _0x7d2707=[...new Set(_0x7d2707)],_0x7d2707;}['_getTranslationKeyForListStyle'](_0x2380d9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2380d9)||'default')['toUpperCase']()+'_LIST_'+_0x2380d9['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x13e4d9{['afterInit'](){const _0x3d3a41=this['editor'];if(!_0x3d3a41['plugins']['has']('MediaEmbedEditing'))return;const _0x16006f=_0x3d3a41['plugins']['get']('TrackChangesEditing'),_0x507c0e=_0x3d3a41['locale'];_0x16006f['enableCommand']('mediaEmbed'),_0x16006f['descriptionFactory']['registerElementLabel']('media',_0x33502a=>c(_0x507c0e,'ELEMENT_MEDIA',_0x33502a)),_0x3d3a41['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x9f0e87,{writer:_0x37dc3b,options:_0x5e2b30})=>{if(_0x5e2b30['showSuggestionHighlights'])return _0x37dc3b['createEmptyElement']('div');},'converterPriority':'high'}),_0x3d3a41['data']['downcastDispatcher']['on']('attribute:url:media',(_0x562e9f,_0x5e3ca1,_0x3bd41e)=>{_0x3bd41e['options']['showSuggestionHighlights']&&_0x562e9f['stop']();},{'priority':'high'});}}class pt extends _0x13e4d9{['afterInit'](){const _0x1f5da4=this['editor'];_0x1f5da4['plugins']['has']('MentionEditing')&&_0x1f5da4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x13e4d9{['afterInit'](){const _0x476101=this['editor'];if(!_0x476101['plugins']['has']('MergeFieldsEditing'))return;const _0x43be0e=_0x476101['plugins']['get']('TrackChangesEditing'),_0x408bc7=_0x476101['locale'];_0x43be0e['enableCommand']('insertMergeField'),_0x43be0e['enableCommand']('insertMergeFieldBlock'),_0x43be0e['enableCommand']('insertMergeFieldImage'),_0x43be0e['descriptionFactory']['registerElementLabel']('mergeField',_0x45257b=>c(_0x408bc7,'ELEMENT_MERGE_FIELD',_0x45257b)),_0x43be0e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x34d08a=>c(_0x408bc7,'ELEMENT_MERGE_FIELD',_0x34d08a)),_0x43be0e['descriptionFactory']['registerDescriptionCallback'](_0x9c27ca=>{if('insertion'!=_0x9c27ca['type']&&'deletion'!=_0x9c27ca['type'])return;const _0x1a542b=_0x9c27ca['getContainedElement']();if(null==_0x1a542b)return;const _0x5f5486=_0x476101['plugins']['get']('MergeFieldsEditing');let _0x496a13;switch(_0x5f5486['getMergeFieldType'](_0x1a542b)){case null:return;case'image':{const _0x32c3ad=_0x5f5486['unwrapAffixes'](_0x1a542b['getAttribute']('src'));_0x496a13=_0x5f5486['getLabel'](_0x32c3ad)||_0x32c3ad;break;}default:{const _0x557c85=_0x1a542b['getAttribute']('id');_0x496a13=_0x5f5486['getLabel'](_0x557c85)||_0x557c85;break;}}return'insertion'==_0x9c27ca['type']?{'type':'insertion','content':c(_0x408bc7,'*Insert:*\x20%0','\x22'+_0x496a13+'\x22\x20'+c(_0x408bc7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x408bc7,'*Remove:*\x20%0','\x22'+_0x496a13+'\x22\x20'+c(_0x408bc7,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x13e4d9{['afterInit'](){const _0x142100=this['editor'],_0x16194a=_0x142100['plugins']['get']('TrackChangesEditing');_0x142100['plugins']['has']('MultiLevelList')&&(_0x16194a['enableDefaultAttributesIntegration']('multiLevelList'),_0x16194a['registerBlockAttribute']('listMarkerStyle'),_0x16194a['descriptionFactory']['registerDescriptionCallback'](_0x490560=>this['handleDescriptions'](_0x490560)));}['handleDescriptions'](_0x20a104){const _0x35587c=this['editor']['locale'],{data:_0x613dbd}=_0x20a104,_0x1e649e={'type':'format','content':''};if(_0x613dbd&&'listMarkerStyle'==_0x613dbd['key']){if(!_0x613dbd['oldValue'])return{'type':'format','content':c(_0x35587c,'*Set\x20format:*\x20%0',c(_0x35587c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x613dbd['newValue']+')'};if(!_0x613dbd['newValue']){let _0x2c3348=_0x20a104['head'];for(;_0x2c3348;){if(_0x2c3348['data']&&'listType'==_0x2c3348['data']['key']&&_0x2c3348['data']['newValue'])return _0x1e649e;_0x2c3348=_0x2c3348['next'];}return{'type':'format','content':c(_0x35587c,'*Remove\x20format:*\x20%0',c(_0x35587c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x613dbd['oldValue']+')'};}}}}class bt extends _0x13e4d9{['afterInit'](){const _0x402133=this['editor'];if(!_0x402133['plugins']['has']('PageBreakEditing'))return;_0x402133['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x44f2dd=_0x402133['plugins']['get']('TrackChangesEditing'),_0xd3fa40=_0x402133['locale'];_0x44f2dd['descriptionFactory']['registerElementLabel']('pageBreak',_0x3529ff=>c(_0xd3fa40,'ELEMENT_PAGE_BREAK',_0x3529ff));}}class yt extends _0x13e4d9{['afterInit'](){const _0x228197=this['editor'];if(!_0x228197['plugins']['has']('Paragraph'))return;const _0x24beae=_0x228197['locale'],_0x210043=_0x228197['plugins']['get']('TrackChangesEditing');_0x210043['descriptionFactory']['registerElementLabel']('paragraph',_0xb9adc5=>c(_0x24beae,'ELEMENT_PARAGRAPH',_0xb9adc5)),_0x210043['enableDefaultAttributesIntegration']('paragraph'),_0x210043['enableCommand']('insertParagraph'),_0x228197['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x228197),{'priority':'highest'}),_0x228197['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b3a80,_0x41c3de,_0x3daf34)=>{_0x3daf34['options']['showSuggestionHighlights']&&nr(_0x228197,{'showActiveMarker':!0x1})(_0x1b3a80,_0x41c3de,_0x3daf34);},{'priority':'highest'});const _0x360f6d=_0x210043['descriptionFactory'];_0x360f6d['registerDescriptionCallback'](_0x55fee1=>{if('insertion'!==_0x55fee1['type'])return;const {start:_0x3449e7,end:_0x86c96f}=_0x55fee1['getFirstRange']();if(!_0x3449e7['isTouching'](_0x86c96f)||!_0x3449e7['nodeAfter'])return;const _0x509187=_0x228197['model']['schema'],_0x469a25=_0x3449e7['nodeAfter'];return _0x509187['isBlock'](_0x469a25)&&!_0x509187['isLimit'](_0x469a25)&&_0x509187['checkChild'](_0x469a25,'$text')?{'type':'insertion','content':c(_0x24beae,'*Insert:*\x20%0',_0x360f6d['getItemLabel'](_0x469a25,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1831fc=this['editor'],_0x23df5d=_0x1831fc['locale'];_0x1831fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbdcabb=>{if('formatBlock'!=_0xbdcabb['type'])return;const {data:_0x79ead2}=_0xbdcabb;return _0x79ead2&&'paragraph'==_0x79ead2['commandName']?{'type':'format','content':c(_0x23df5d,'*Change\x20to:*\x20%0',c(_0x23df5d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x550a31,{showActiveMarker:_0x116955=!0x0}={}){return(_0x4a942b,_0x13ad03,_0x5a7f43)=>{const _0x27f641=_0x550a31['plugins']['get']('TrackChangesEditing'),_0x291e8f=_0x13ad03['markerRange']['start'],_0x40ab3c=_0x13ad03['markerRange']['end'],_0x1ca3cc=_0x550a31['model']['schema'];if(!_0x291e8f['isTouching'](_0x40ab3c)||!_0x291e8f['nodeAfter'])return;const _0x2fd2e6=_0x291e8f['nodeAfter'];if(_0x1ca3cc['isBlock'](_0x2fd2e6)&&!_0x1ca3cc['isLimit'](_0x2fd2e6)&&_0x1ca3cc['checkChild'](_0x2fd2e6,'$text')){if(!_0x5a7f43['consumable']['consume'](_0x13ad03['markerRange'],_0x4a942b['name']))return;const {authorId:_0x38da1c}=_0x27f641['_splitMarkerName'](_0x13ad03['markerName']),_0x138301=_0x5a7f43['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x38da1c}),_0x1426a5=_0x5a7f43['mapper']['toViewPosition'](_0x40ab3c);_0x116955&&_0x27f641['activeMarkers']['includes'](_0x13ad03['markerName'])&&_0x5a7f43['writer']['addClass']('ck-suggestion-marker--active',_0x138301),_0x5a7f43['writer']['insert'](_0x1426a5,_0x138301),_0x5a7f43['mapper']['bindElementToMarker'](_0x138301,_0x13ad03['markerName']);}};}class jt extends _0x13e4d9{['afterInit'](){const _0xf395fd=this['editor'];_0xf395fd['commands']['get']('replaceSource')&&_0xf395fd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x13e4d9{['afterInit'](){const _0x496adf=this['editor'];if(!_0x496adf['plugins']['has']('RemoveFormatEditing'))return;_0x496adf['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3775eb=this['editor'];_0x3775eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b4d48=>{if('formatBlock'!=_0x5b4d48['type']&&'formatInline'!=_0x5b4d48['type'])return;const {data:_0x1ab079}=_0x5b4d48;return _0x1ab079&&'removeFormat'==_0x1ab079['commandName']?{'type':'format','content':c(_0x3775eb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x13e4d9{['afterInit'](){const _0x4d59cd=this['editor'];if(!_0x4d59cd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x56221d=_0x4d59cd['plugins']['get']('TrackChangesEditing');_0x56221d['enableCommand']('goToPreviousRestrictedEditingException'),_0x56221d['enableCommand']('goToNextRestrictedEditingException');const _0x122cb6=_0x4d59cd['plugins']['get']('RestrictedEditingModeEditing');_0x122cb6['enableCommand']('trackChanges'),_0x122cb6['enableCommand']('acceptSuggestion'),_0x122cb6['enableCommand']('discardSuggestion'),_0x122cb6['enableCommand']('acceptAllSuggestions'),_0x122cb6['enableCommand']('discardAllSuggestions'),_0x122cb6['enableCommand']('acceptSelectedSuggestions'),_0x122cb6['enableCommand']('discardSelectedSuggestions');}}class It extends _0x13e4d9{['afterInit'](){const _0x1329a9=this['editor'];if(!_0x1329a9['plugins']['has']('ShiftEnter'))return;const _0x4e0b61=_0x1329a9['plugins']['get']('TrackChangesEditing');_0x4e0b61['enableCommand']('shiftEnter'),_0x1329a9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1329a9),{'priority':'high'}),_0x1329a9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1329a9),{'priority':'high'}),_0x1329a9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22b536,_0xe44513,_0x44f4a9)=>{_0x44f4a9['options']['showSuggestionHighlights']&&je(_0x1329a9,{'showActiveMarker':!0x1})(_0x22b536,_0xe44513,_0x44f4a9);}),_0x4e0b61['descriptionFactory']['registerElementLabel']('softBreak',_0x4a21df=>c(_0x1329a9['locale'],'ELEMENT_LINE_BREAK',_0x4a21df));}}function je(_0x52a9eb,{showActiveMarker:_0x49805d=!0x0}={}){return(_0x439c27,_0x1dd116,_0x433bdc)=>{const _0x1ff01e=_0x52a9eb['plugins']['get']('TrackChangesEditing');if(!_0x433bdc['consumable']['test'](_0x1dd116['markerRange'],_0x439c27['name']))return;const _0x1243bb=_0x52a9eb['model'];for(const _0x235d4d of _0x1dd116['markerRange']['getItems']()){if(!_0x235d4d['is']('element','softBreak'))continue;const _0x110b5c='deletion'==_0x1dd116['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x6cce85}=_0x1ff01e['_splitMarkerName'](_0x1dd116['markerName']),_0x38c3f5=_0x433bdc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x110b5c,'data-author-id':_0x6cce85}),_0xde3bd=_0x433bdc['mapper']['toViewPosition'](_0x1243bb['createPositionBefore'](_0x235d4d));_0x49805d&&_0x1ff01e['activeMarkers']['includes'](_0x1dd116['markerName'])&&_0x433bdc['writer']['addClass']('ck-suggestion-marker--active',_0x38c3f5),_0x433bdc['writer']['insert'](_0xde3bd,_0x38c3f5),_0x433bdc['mapper']['bindElementToMarker'](_0x38c3f5,_0x1dd116['markerName']);}};}class _t extends _0x13e4d9{['afterInit'](){const _0x5eee2a=this['editor'],_0x2699b8=_0x5eee2a['model'],_0x19bda9=_0x5eee2a['locale'];if(!_0x5eee2a['plugins']['has']('StandardEditingModeEditing'))return;const _0x3d1e4d=_0x5eee2a['plugins']['get']('TrackChangesEditing'),_0xbe9e96='restrictedEditingException',_0x9b28be=_0x5eee2a['commands']['get'](_0xbe9e96);_0x3d1e4d['enableCommand'](_0xbe9e96,(_0x2e0823,_0x417a8c={})=>{const _0x2a04e4=_0x2699b8['document']['selection'];if(_0x2a04e4['isCollapsed'])return void _0x2e0823(_0x417a8c);const _0x1dc64d=void 0x0!==_0x417a8c['forceValue']?_0x417a8c['forceValue']:!_0x9b28be['value'];_0x2699b8['change'](()=>{const _0x33fda8=Array['from'](_0x2a04e4['getRanges']());for(const _0x111755 of _0x33fda8){const _0x4984b8=_0x1dc64d?[_0x111755]:io(_0xbe9e96,_0x111755,_0x2699b8);for(const _0x3c28d6 of _0x4984b8)_0x3d1e4d['markInlineFormat'](_0x3c28d6,{'commandName':_0xbe9e96,'commandParams':[{'forceValue':_0x1dc64d}]});}});}),_0x3d1e4d['descriptionFactory']['registerDescriptionCallback'](_0x251fb4=>{if('formatBlock'!=_0x251fb4['type']&&'formatInline'!=_0x251fb4['type'])return;const {data:_0x47ac5e}=_0x251fb4;return _0x47ac5e&&_0x47ac5e['commandName']==_0xbe9e96?_0x47ac5e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x19bda9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x19bda9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x13e4d9{['afterInit'](){const _0x53dedf=this['editor'];if(!_0x53dedf['plugins']['has']('Style')||!_0x53dedf['plugins']['has']('DataSchema'))return;const _0x215543=_0x53dedf['plugins']['get']('TrackChangesEditing'),_0x19597a=_0x53dedf['locale'],_0x147bf5=_0x53dedf['config']['get']('style')||{},_0x5244ca=_0x53dedf['plugins']['get']('GeneralHtmlSupport'),_0x3dfde6=_0x53dedf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x53dedf['plugins']['get']('DataSchema'),_0x147bf5['definitions']);_0x215543['enableDefaultAttributesIntegration']('style');const _0x42406=new Set();for(const _0x1c71ca of _0x3dfde6['block']){const _0x5ac9bc=_0x5244ca['getGhsAttributeNameForElement'](_0x1c71ca['element']);_0x42406['add'](_0x5ac9bc);}const _0x52cca3=new Set();for(const _0x6f1ecb of _0x3dfde6['inline']){const _0x3affc2=_0x5244ca['getGhsAttributeNameForElement'](_0x6f1ecb['element']);_0x52cca3['add'](_0x3affc2);for(const _0x179333 of _0x6f1ecb['ghsAttributes'])_0x52cca3['add'](_0x179333);}for(const _0x3a952f of _0x42406)_0x215543['registerBlockAttribute'](_0x3a952f),_0x215543['descriptionFactory']['registerAttributeLabel'](_0x3a952f,c(_0x19597a,'FORMAT_STYLE'));for(const _0x482308 of _0x52cca3)_0x215543['registerInlineAttribute'](_0x482308),_0x215543['descriptionFactory']['registerAttributeLabel'](_0x482308,c(_0x19597a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x180c4b=this['editor'],_0x489c32=_0x180c4b['locale'];_0x180c4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x402514=>{if('formatBlock'!=_0x402514['type']&&'formatInline'!=_0x402514['type'])return;const {data:_0x49bd12}=_0x402514;return _0x49bd12&&'style'===_0x49bd12['commandName']?_0x49bd12['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x489c32,'*Set\x20format:*\x20%0',_0x49bd12['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x489c32,'*Remove\x20format:*\x20%0',_0x49bd12['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x13e4d9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3567bf){super(_0x3567bf),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5276f0=this['editor'],_0x59c763=_0x5276f0['model']['document']['selection'];if(!_0x5276f0['plugins']['has']('TableEditing'))return;const _0xd22c9=_0x5276f0['locale'],_0x1c6849=_0x5276f0['plugins']['get']('TrackChangesEditing'),_0x2d41ac=_0x5276f0['plugins']['get']('TableUtils');_0x1c6849['descriptionFactory']['registerElementLabel']('table',_0x5e88c2=>c(_0xd22c9,'ELEMENT_TABLE',_0x5e88c2)),this['_setupColumnsRowsFixing'](),_0x1c6849['enableCommand']('insertTable'),_0x1c6849['enableCommand']('selectTableRow'),_0x1c6849['enableCommand']('selectTableColumn');for(const _0x38bd68 of['insertTableRowAbove','insertTableRowBelow']){const _0x258117=_0x5276f0['commands']['get'](_0x38bd68);_0x1c6849['enableCommand'](_0x38bd68,_0xf81794=>{_0x5276f0['model']['change'](_0x3edfa3=>{_0xf81794();const _0x2f813a='above'===_0x258117['order'],_0xd2d1a0=_0x2d41ac['getSelectionAffectedTableCells'](_0x59c763),_0x4685a1=_0x2d41ac['getRowIndexes'](_0xd2d1a0),_0x4a93d1=_0x2f813a?_0x4685a1['first']-0x1:_0x4685a1['last']+0x1,_0x52a467=_0xd2d1a0[0x0]['findAncestor']('table'),_0x4dae12=_0x2d41ac['createTableWalker'](_0x52a467,{'startRow':_0x4a93d1,'endRow':_0x4a93d1}),_0x56d865=Array['from'](_0x4dae12)['map'](_0x2f62f7=>_0x3edfa3['createRangeOn'](_0x2f62f7['cell']));_0x1c6849['markMultiRangeInsertion'](_0x56d865,'tableRow');});});}for(const _0x24e13d of['insertTableColumnLeft','insertTableColumnRight']){const _0x3e77d8=_0x5276f0['commands']['get'](_0x24e13d);_0x1c6849['enableCommand'](_0x24e13d,_0x118b4b=>{_0x5276f0['model']['change'](_0x5ecc9f=>{_0x118b4b();const _0x33bafe='left'===_0x3e77d8['order'],_0x1a50b6=_0x2d41ac['getSelectionAffectedTableCells'](_0x59c763),_0x34d790=_0x2d41ac['getColumnIndexes'](_0x1a50b6),_0x4efcfe=_0x33bafe?_0x34d790['first']-0x1:_0x34d790['last']+0x1,_0x3d28c6=_0x1a50b6[0x0]['findAncestor']('table'),_0x2f854c=_0x2d41ac['createTableWalker'](_0x3d28c6,{'startRow':0x0,'column':_0x4efcfe,'includeAllSlots':!0x1}),_0x774e11=Array['from'](_0x2f854c)['map'](_0x505be2=>_0x5ecc9f['createRangeOn'](_0x505be2['cell']));_0x1c6849['markMultiRangeInsertion'](_0x774e11,'tableColumn');});});}for(const _0x4a03d9 of['removeTableRow','removeTableColumn']){const _0x58d49a=_0x4a03d9['substr'](0xb),_0x3858d4=_0x58d49a['toLowerCase'](),_0x15ad96=_0x3858d4['substr'](0x0,0x3)+'span',_0x107df5='table'+_0x58d49a,_0x87481c='min'+_0x58d49a,_0x232ec3='max'+_0x58d49a;_0x1c6849['enableCommand'](_0x4a03d9,()=>{_0x5276f0['model']['change'](_0x32d3dd=>{const _0xb49fd9=_0x2d41ac['getSelectionAffectedTableCells'](_0x59c763),_0x985a1a=_0xb49fd9[0x0]['findAncestor']('table');let _0x1a0a9f;if('removeTableRow'==_0x4a03d9){const _0x202dfe=_0x2d41ac['getRowIndexes'](_0xb49fd9);_0x1a0a9f={'startRow':_0x202dfe['first'],'endRow':_0x202dfe['last'],'includeAllSlots':!0x0};}else{const _0x3b6d50=_0x2d41ac['getColumnIndexes'](_0xb49fd9);_0x1a0a9f={'startColumn':_0x3b6d50['first'],'endColumn':_0x3b6d50['last'],'includeAllSlots':!0x0};}const _0x130a20=_0x2d41ac['createTableWalker'](_0x985a1a,_0x1a0a9f),_0x5f18e7=Array['from'](_0x130a20)['map'](({cell:_0x4b5e4a})=>_0x4b5e4a),_0x2d85d5=Ne(_0x5f18e7['filter'](_0x578c75=>_0x578c75['hasAttribute'](_0x15ad96))),_0x26134e=Ne(_0x5f18e7['filter'](_0x18cfdf=>!_0x18cfdf['hasAttribute'](_0x15ad96)))['map'](_0x55957c=>_0x32d3dd['createRangeOn'](_0x55957c)),_0x459976=_0x1c6849['markMultiRangeDeletion'](_0x26134e,_0x107df5);if(_0x459976&&('tableRow'==_0x459976['subType']||'tableColumn'==_0x459976['subType'])){const _0xf8c5d=this['_getSuggestionCoords'](_0x459976);for(const _0x4625d1 of _0x2d85d5){const _0x26024b=_0x32d3dd['createRangeOn'](_0x4625d1),_0x3994ab=_0x2d41ac['getCellLocation'](_0x4625d1),_0x2df428=_0x4625d1['getAttribute'](_0x15ad96)-0x1,_0x277bb8=_0xf8c5d[_0x87481c],_0x18e125=_0xf8c5d[_0x232ec3];_0x277bb8<=_0x3994ab[_0x3858d4]&&_0x3994ab[_0x3858d4]+_0x2df428<=_0x18e125&&_0x459976['addRange'](_0x26024b);}}});});}function _0x3a1495(_0x2c3fcc){const _0x572538=Array['from'](_0x59c763['getRanges']())['map'](_0x49b872=>_0x23f516['fromRange'](_0x49b872));_0x5276f0['model']['change'](_0xa96faf=>{const _0x5d40b9=_0xa96faf['batch'];_0x2c3fcc=_0x2c3fcc['filter'](_0x4c91cd=>'$graveyard'!=_0x4c91cd['root']['rootName']),_0xa96faf['setSelection'](_0x2c3fcc),_0x5276f0['commands']['get']('removeTableRow')['refresh'](),_0x5276f0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5276f0['model']['enqueueChange'](()=>{_0x5276f0['model']['enqueueChange'](_0x5d40b9,_0x2b0539=>{const _0x2628df=_0x572538['filter'](_0x174e99=>'$graveyard'!=_0x174e99['root']['rootName']);_0x2628df['length']>0x0&&_0x2b0539['setSelection'](_0x2628df);for(const _0xaa62c4 of _0x572538)_0xaa62c4['detach']();});});});}function _0x359ec0(_0x433fc9){_0x5276f0['model']['change'](_0x2f4b79=>{const _0x5ed73a=Array['from'](_0x59c763['getRanges']())['map'](_0x25474c=>_0x23f516['fromRange'](_0x25474c)),_0x49b841=[];for(const _0x5a65d2 of _0x433fc9)for(const _0x5d9d86 of _0x5a65d2['getItems']({'shallow':!0x0}))_0x49b841['push'](_0x5d9d86);for(const _0x20231c of _0x49b841)'$graveyard'!=_0x20231c['root']['rootName']&&(_0x2f4b79['setSelection'](_0x2f4b79['createPositionAt'](_0x20231c,0x0)),_0x5276f0['commands']['get']('removeTableColumn')['refresh'](),_0x5276f0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x405775=_0x5ed73a['filter'](_0x2da0bd=>'$graveyard'!=_0x2da0bd['root']['rootName']);_0x405775['length']>0x0&&_0x2f4b79['setSelection'](_0x405775);for(const _0x1f0b51 of _0x5ed73a)_0x1f0b51['detach']();});}function _0x524b96(_0x2f3b77,_0x4a65bd){return _0x4a65bd['every'](_0x51adb0=>_0x2f3b77['some'](_0x3a833f=>_0x3a833f['end']['isEqual'](_0x51adb0['start'])||_0x51adb0['end']['isEqual'](_0x3a833f['start'])));}function _0x1367c8(_0x24c2a6,_0x33b475){return!_0x24c2a6['some'](_0xe9e247=>_0x33b475['some'](_0x79e8de=>_0xe9e247['isIntersecting'](_0x79e8de)))&&_0x24c2a6['some'](_0x29cb9e=>_0x33b475['some'](_0xcc5b01=>_0x29cb9e['end']['isTouching'](_0xcc5b01['start'])));}_0x5276f0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x41d48e,_0x23af92,_0x18e589)=>{if(!_0x18e589['options']['showSuggestionHighlights'])return;const _0x419d1f=_0x23af92['item'];if(!_0x419d1f)return;const _0x2295df=_0x18e589['mapper']['toViewElement'](_0x419d1f);function _0x582ecb(_0x4a5f69){return Array['isArray'](_0x4a5f69)?_0x4a5f69:[_0x4a5f69];}_0x2295df&&'tableCell'===_0x419d1f['name']&&_0x5f4bc0(_0x2295df,_0x18e589['writer'],(_0x2f6375,_0x341356,_0x2d3ca2)=>_0x2d3ca2['addClass'](_0x582ecb(_0x341356['classes']),_0x2f6375),(_0x2c7e77,_0x46b566,_0x5bb553)=>_0x5bb553['removeClass'](_0x582ecb(_0x46b566['classes']),_0x2c7e77));},{'priority':'highest'}),_0x1c6849['descriptionFactory']['registerDescriptionCallback'](_0xbf072f=>{if('insertion'!=_0xbf072f['type']&&'deletion'!=_0xbf072f['type'])return;const _0x40c10c=_0xbf072f['getContainedElement']();if(null!=_0x40c10c&&_0x40c10c['is']('element','table')){if('insertion'==_0xbf072f['type']){const _0x40aec8=_0xbf072f['getItems']()['filter'](_0x4f4e6b=>_0x4f4e6b['is']('$textProxy'))['map'](_0x444da4=>_0x444da4['data']);if(_0x40aec8['length'])return{'type':'insertion','content':c(_0xd22c9,'*Insert:*\x20%0',c(_0xd22c9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40aec8['join']('\x20')+'\x22'))};}if('deletion'==_0xbf072f['type']){const _0x2337ea=_0xbf072f['getItems']()['filter'](_0x24a183=>_0x24a183['is']('$textProxy'))['map'](_0x2f5ab8=>_0x2f5ab8['data']);if(_0x2337ea['length'])return{'type':'deletion','content':c(_0xd22c9,'*Remove:*\x20%0',c(_0xd22c9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2337ea['join']('\x20')+'\x22'))};}}}),_0x1c6849['descriptionFactory']['registerDescriptionCallback'](_0x1b8619=>{if('tableRow'==_0x1b8619['subType']){const _0x14eb84=_0x1b8619['getItems']()['filter'](_0x386189=>_0x386189['is']('$textProxy'))['map'](_0x4ab83a=>_0x4ab83a['data']),_0x49b443=this['_getSuggestionCoords'](_0x1b8619),_0x342ccf=_0x49b443['maxRow']-_0x49b443['minRow']+0x1;if('insertion'==_0x1b8619['type'])return _0x14eb84['length']?{'type':'insertion','content':c(_0xd22c9,'*Insert:*\x20%0',c(_0xd22c9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x342ccf,'\x22'+_0x14eb84['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xd22c9,'*Insert:*\x20%0',c(_0xd22c9,'ELEMENT_TABLE_ROW',_0x342ccf))};if('deletion'==_0x1b8619['type'])return _0x14eb84['length']?{'type':'deletion','content':c(_0xd22c9,'*Remove:*\x20%0',c(_0xd22c9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x342ccf,'\x22'+_0x14eb84['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xd22c9,'*Remove:*\x20%0',c(_0xd22c9,'ELEMENT_TABLE_ROW',_0x342ccf))};}if('tableColumn'==_0x1b8619['subType']){const _0x468780=_0x1b8619['getItems']()['filter'](_0x3a9e9c=>_0x3a9e9c['is']('$textProxy'))['map'](_0x2d7807=>_0x2d7807['data']),_0x98a36e=this['_getSuggestionCoords'](_0x1b8619),_0x42013b=_0x98a36e['maxColumn']-_0x98a36e['minColumn']+0x1;if('insertion'==_0x1b8619['type'])return _0x468780['length']?{'type':'insertion','content':c(_0xd22c9,'*Insert:*\x20%0',c(_0xd22c9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x42013b,'\x22'+_0x468780['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xd22c9,'*Insert:*\x20%0',c(_0xd22c9,'ELEMENT_TABLE_COLUMN',_0x42013b))};if('deletion'==_0x1b8619['type'])return _0x468780['length']?{'type':'deletion','content':c(_0xd22c9,'*Remove:*\x20%0',c(_0xd22c9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x42013b,'\x22'+_0x468780['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xd22c9,'*Remove:*\x20%0',c(_0xd22c9,'ELEMENT_TABLE_COLUMN',_0x42013b))};}}),_0x1c6849['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3a1495),_0x1c6849['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3a1495),_0x1c6849['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x359ec0),_0x1c6849['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x359ec0),_0x1c6849['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x524b96),_0x1c6849['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x524b96),_0x1c6849['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1367c8),_0x1c6849['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1367c8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x25c4ad=this['editor'],_0x539bc1=_0x25c4ad['model']['document']['selection'];return(_0x390dd3,_0x10bb53)=>{_0x25c4ad['model']['change'](_0x5f27cf=>{const {commandName:_0x23f936,commandParams:_0x4bface}=_0x10bb53;let _0x510b4c=_0x390dd3[0x0]['end']['nodeBefore'];_0x4bface&&_0x4bface[0x0]&&!0x1===_0x4bface[0x0]['forceValue']&&(_0x510b4c=_0x390dd3[0x0]['start']['nodeAfter']);const _0x3e6e24=_0x5f27cf['createRangeIn'](_0x510b4c);if('$graveyard'==_0x3e6e24['root']['rootName'])return;const _0x596f5b=Array['from'](_0x539bc1['getRanges']())['map'](_0x5d5427=>_0x23f516['fromRange'](_0x5d5427));_0x5f27cf['setSelection'](_0x3e6e24),_0x25c4ad['commands']['get'](_0x23f936)['refresh'](),_0x4bface['push']({'forceDefaultExecution':!0x0}),_0x25c4ad['execute'](_0x23f936,..._0x4bface);const _0x6afecc=_0x596f5b['filter'](_0x59ee8d=>'$graveyard'!=_0x59ee8d['root']['rootName']);_0x6afecc['length']>0x0&&_0x5f27cf['setSelection'](_0x6afecc);for(const _0x3ab0f9 of _0x596f5b)_0x3ab0f9['detach']();});};}['_getCoordsForCells'](_0x42df9d){const _0x8e1ecd=this['editor']['plugins']['get']('TableUtils');let _0x5eb8ce=Number['MAX_SAFE_INTEGER'],_0x531167=Number['MIN_SAFE_INTEGER'],_0x2bce4d=Number['MAX_SAFE_INTEGER'],_0x26d83c=Number['MIN_SAFE_INTEGER'];for(const _0xa28bbf of _0x42df9d){if('$graveyard'==_0xa28bbf['root']['rootName'])continue;const {row:_0x2ef412,column:_0x16d850}=_0x8e1ecd['getCellLocation'](_0xa28bbf),_0x43e681=_0xa28bbf['hasAttribute']('rowspan')?_0xa28bbf['getAttribute']('rowspan')-0x1:0x0,_0x3e31d4=_0xa28bbf['hasAttribute']('colspan')?_0xa28bbf['getAttribute']('colspan')-0x1:0x0;_0x5eb8ce=_0x2ef412<_0x5eb8ce?_0x2ef412:_0x5eb8ce,_0x531167=_0x2ef412+_0x43e681>_0x531167?_0x2ef412+_0x43e681:_0x531167,_0x2bce4d=_0x16d850<_0x2bce4d?_0x16d850:_0x2bce4d,_0x26d83c=_0x16d850+_0x3e31d4>_0x26d83c?_0x16d850+_0x3e31d4:_0x26d83c;}return{'minRow':_0x5eb8ce,'maxRow':_0x531167,'minColumn':_0x2bce4d,'maxColumn':_0x26d83c};}['_setupColumnsRowsFixing'](){const _0x56e049=this['editor'],_0x41d796=_0x56e049['plugins']['get']('TrackChangesEditing'),_0x3aea2e=_0x56e049['plugins']['get']('TableUtils');_0x56e049['model']['document']['on']('change:data',()=>{const _0x1229ed=Array['from'](_0x56e049['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5994f8,data:_0x38617d}of _0x1229ed){const {group:_0x46e0c2,id:_0x523d69,subType:_0x52a2e6}=_0x41d796['_splitMarkerName'](_0x5994f8);if('suggestion'!=_0x46e0c2)continue;if(null!=_0x38617d['oldRange'])continue;const _0x2806b0=_0x41d796['getSuggestion'](_0x523d69);this['_tablePostFixingSubtypes']['includes'](_0x52a2e6)&&this['_tableSuggestions']['add'](_0x2806b0);}},{'priority':'low'});const _0x1e1c1e=(_0x59c1dd,_0x4b0e79)=>{let _0x3aa690=!0x1;const _0x40870f=_0x4b0e79['createRangeOn'](_0x59c1dd),_0x48a627=_0x59c1dd['findAncestor']('table'),_0x5d4d66=_0x3aea2e['getCellLocation'](_0x59c1dd);for(const _0x12f144 of this['_tableSuggestions']){const _0x495cec=_0x12f144['subType'],_0x411d1b=_0x495cec['startsWith']('tablePaste'),_0x500c18=_0x495cec['substr'](_0x411d1b?0xa:0x5),_0x22e482=_0x500c18['toLowerCase'](),_0x263c94=_0x22e482['substr'](0x0,0x3)+'span',_0x459b14='min'+_0x500c18,_0xe8f7e3='max'+_0x500c18;if(!_0x12f144['isInContent'])continue;if(_0x48a627!=_0x12f144['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x12f144['isIntersectingWithRange'](_0x40870f))continue;const _0x2674a5=_0x59c1dd['hasAttribute'](_0x263c94)?_0x59c1dd['getAttribute'](_0x263c94)-0x1:0x0,_0x5c9c67=this['_getSuggestionCoords'](_0x12f144),_0x57327d=_0x5c9c67[_0x459b14],_0x418c24=_0x5c9c67[_0xe8f7e3];_0x57327d<=_0x5d4d66[_0x22e482]&&_0x5d4d66[_0x22e482]+_0x2674a5<=_0x418c24&&(_0x12f144['addRange'](_0x40870f),_0x3aa690=!0x0);}return _0x3aa690;};_0x56e049['model']['document']['registerPostFixer'](_0x12be3f=>{let _0x54e60f=!0x1;for(const _0x5ded45 of _0x56e049['model']['document']['differ']['getChanges']())if('insert'==_0x5ded45['type']){if('tableRow'==_0x5ded45['name']){for(const _0x323e71 of _0x5ded45['position']['nodeAfter']['getChildren']())_0x54e60f=_0x54e60f||_0x1e1c1e(_0x323e71,_0x12be3f);}else'tableCell'==_0x5ded45['name']&&(_0x54e60f=_0x54e60f||_0x1e1c1e(_0x5ded45['position']['nodeAfter'],_0x12be3f));}return _0x54e60f;});}['_getSuggestionCoords'](_0x3727be){return this['_getCoordsForCells'](_0x3727be['getRanges']()['map'](_0x27d57d=>_0x27d57d['start']['nodeAfter']));}}function Ne(_0x42f734){return Array['from'](new Set(_0x42f734)['values']());}class Nt extends _0x13e4d9{static get['requires'](){return[Ct];}['afterInit'](){const _0x4b42ab=this['editor'],_0x5b56df=_0x4b42ab['model']['document']['selection'],_0x49d8fd=_0x4b42ab['locale'];if(!_0x4b42ab['plugins']['has']('TableEditing'))return;const _0x28e607=_0x4b42ab['plugins']['get']('TrackChangesEditing'),_0x111c3c=_0x4b42ab['plugins']['get']('TableUtils'),_0xbcd609=_0x4b42ab['plugins']['get'](Ct);_0xbcd609['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28e607['enableCommand']('mergeTableCells',()=>{const _0x555fd7=_0x111c3c['getSelectionAffectedTableCells'](_0x4b42ab['model']['document']['selection']);_0x4b42ab['model']['change'](()=>{_0x28e607['markMultiRangeBlockFormat'](_0x555fd7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4b42ab['commands']['get']('mergeTableCells')['on']('execute',(_0x303ee6,_0x1c4cf0)=>{_0x4b42ab['commands']['get']('trackChanges')['value']&&(_0x1c4cf0['length']>0x0&&_0x1c4cf0[_0x1c4cf0['length']-0x1]&&_0x1c4cf0[_0x1c4cf0['length']-0x1]['forceDefaultExecution']||_0x28e607['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x303ee6['stop']());},{'priority':'highest'});for(const _0x4fbd7c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x487f4f=_0x4b42ab['commands']['get'](_0x4fbd7c);_0x28e607['enableCommand'](_0x4fbd7c,()=>{const _0x25afef=_0x4b42ab['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5eefe8=>_0x5eefe8['is']('element','tableCell')),_0x13f636=_0x487f4f['value'];_0x4b42ab['model']['change'](()=>{_0x28e607['markMultiRangeBlockFormat']([_0x25afef,_0x13f636],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1d853e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x381f5d=_0x4b42ab['commands']['get'](_0x1d853e);_0x28e607['enableCommand'](_0x1d853e,()=>{const _0x18a755=_0x111c3c['getSelectionAffectedTableCells'](_0x4b42ab['model']['document']['selection'])[0x0],_0x5d1011=_0x18a755['findAncestor']('table'),{column:_0x47aaee,row:_0x3defac}=_0x111c3c['getCellLocation'](_0x18a755);let _0x3ed75c=[];if('horizontally'==_0x381f5d['direction']){const _0x590b64=_0x111c3c['createTableWalker'](_0x5d1011,{'startRow':_0x3defac,'endRow':_0x3defac,'includeAllSlots':!0x0});_0x3ed75c=Array['from'](_0x590b64)['map'](_0x44bc15=>_0x44bc15['cell']);}else{const _0x411344=_0x111c3c['createTableWalker'](_0x5d1011,{'column':_0x47aaee,'includeAllSlots':!0x0});_0x3ed75c=Array['from'](_0x411344)['map'](_0x53945a=>_0x53945a['cell']);}_0x4b42ab['model']['change'](_0x26a04a=>{_0x28e607['markBlockFormat'](_0x26a04a['createRangeOn'](_0x18a755),{'commandName':_0x1d853e,'commandParams':[]},_0x3ed75c,_0x1d853e);});});}_0x28e607['descriptionFactory']['registerDescriptionCallback'](_0x644232=>{if('formatBlock'!=_0x644232['type']&&'formatInline'!=_0x644232['type'])return;const {data:_0x5b5675}=_0x644232;return _0x5b5675&&'mergeTableCells'==_0x5b5675['commandName']?{'type':'format','content':c(_0x49d8fd,'*Merge\x20cells*')}:void 0x0;}),_0x28e607['descriptionFactory']['registerDescriptionCallback'](_0x6bf7f3=>{if('formatBlock'!=_0x6bf7f3['type']&&'formatInline'!=_0x6bf7f3['type'])return;const {data:_0x5e647f}=_0x6bf7f3;return _0x5e647f?'splitTableCellVertically'==_0x5e647f['commandName']?{'type':'format','content':c(_0x49d8fd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5e647f['commandName']?{'type':'format','content':c(_0x49d8fd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x336e29=_0xbcd609['_acceptFormatSuggestionCallbackFactory']();for(const _0x5c473c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28e607['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c473c,'accept',_0x336e29);for(const _0x133f1f of['splitTableCellVertically','splitTableCellHorizontally'])_0x28e607['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x133f1f,'accept',_0x336e29);_0x28e607['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x599d80=>{_0x4b42ab['model']['change'](_0x3b1316=>{const _0x4027d3=Array['from'](_0x5b56df['getRanges']())['map'](_0x1f5170=>_0x23f516['fromRange'](_0x1f5170));_0x3b1316['setSelection'](_0x599d80),_0x4b42ab['commands']['get']('mergeTableCells')['refresh'](),_0x4b42ab['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x105433=_0x4027d3['filter'](_0x7d7eec=>'$graveyard'!=_0x7d7eec['root']['rootName']);_0x105433['length']>0x0&&_0x3b1316['setSelection'](_0x105433);for(const _0x2d9f5c of _0x4027d3)_0x2d9f5c['detach']();});});for(const _0x10152c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x58152b=_0x4b42ab['commands']['get'](_0x10152c);_0x58152b['on']('set:isEnabled',(_0x5afcf0,_0x31cafb,_0x58d133)=>{if(_0x58d133){const _0x487eb1=_0x4b42ab['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1677cb=>_0x1677cb['is']('element','tableCell'));this['_areMergableCells'](_0x58152b['value'],_0x487eb1)||(_0x5afcf0['return']=!0x1,_0x5afcf0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2c07f5=this['editor']['commands']['get']('mergeTableCells'),_0x25189e=this['editor']['plugins']['get']('TableUtils');if(!_0x2c07f5['isEnabled'])return!0x1;const _0x317735=_0x25189e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x37242d of _0x317735)for(const _0x22e52c of _0x317735)if(_0x37242d!=_0x22e52c&&!this['_areMergableCells'](_0x37242d,_0x22e52c))return!0x1;return!0x0;}['_areMergableCells'](_0x5da7fd,_0x5dcf92){const _0x154c60=this['editor']['plugins']['get']('TrackChangesEditing'),_0x707595=this['editor']['model']['createRangeOn'](_0x5da7fd),_0x1e2c8a=this['editor']['model']['createRangeOn'](_0x5dcf92),_0x452686=new Set(),_0x48a8a1=new Set();for(const _0xeb0da2 of _0x154c60['getSuggestions']())if(('insertion'==_0xeb0da2['type']||'deletion'==_0xeb0da2['type']||'mergeTableCells'==_0xeb0da2['subType'])&&_0xeb0da2['isInContent']){for(const _0x34de31 of _0xeb0da2['getRanges']())_0x34de31['containsRange'](_0x707595,!0x0)&&_0x452686['add'](_0xeb0da2['type']+':'+_0xeb0da2['author']['id']),_0x34de31['containsRange'](_0x1e2c8a,!0x0)&&_0x48a8a1['add'](_0xeb0da2['type']+':'+_0xeb0da2['author']['id']);}if(_0x452686['size']!=_0x48a8a1['size'])return!0x1;for(const _0x9d0d31 of _0x452686)if(!_0x48a8a1['has'](_0x9d0d31))return!0x1;return!0x0;}}class Dt extends _0x13e4d9{static get['requires'](){return[Ct];}['afterInit'](){const _0x55d1a7=this['editor'];if(!_0x55d1a7['plugins']['has']('TableEditing'))return;const _0x519956=_0x55d1a7['locale'],_0x1a2f05=_0x55d1a7['plugins']['get']('TrackChangesEditing');_0x1a2f05['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1a2f05['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1a2f05['registerBlockAttribute']('headingRows'),_0x1a2f05['registerBlockAttribute']('headingColumns'),_0x1a2f05['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x519956,'FORMAT_HEADER_ROW')),_0x1a2f05['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x519956,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f4693=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbad3ce=this['editor']['plugins']['get']('TableUtils'),_0x4a8731=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x235f3c({showActiveMarker:_0x1ff869=!0x0,setDataAttribute:_0x9fd9ad=!0x0}={}){return(_0x3a0633,_0x54ed22,_0x36cea0)=>{const {type:_0x4469e6,id:_0x28d092}=_0x4f4693['_splitMarkerName'](_0x54ed22['markerName']),_0x33f57e=_0x4f4693['getSuggestion'](_0x28d092),_0x47a13d=_0x33f57e['data'];if('formatBlock'!=_0x33f57e['type']||!_0x47a13d||'setTableColumnHeader'!=_0x47a13d['commandName'])return;if(_0x54ed22['item'])return void _0x3a0633['stop']();if(!_0x36cea0['consumable']['consume'](_0x54ed22['markerRange'],_0x3a0633['name']))return;const _0x9d2553=_0x54ed22['markerRange']['start']['nodeAfter'],_0x29f994=_0x54ed22['markerRange']['end']['nodeBefore'],_0x491263=_0x9d2553['parent']['parent'],{column:_0x2992d3}=_0xbad3ce['getCellLocation'](_0x9d2553),{column:_0x18617a}=_0xbad3ce['getCellLocation'](_0x29f994);for(let _0x1f2d06=_0x2992d3;_0x1f2d06<=_0x18617a;_0x1f2d06++){const _0x1c42fa=_0xbad3ce['createTableWalker'](_0x491263,{'column':_0x1f2d06,'includeAllSlots':!0x1});for(const _0x2ced62 of _0x1c42fa){const _0x166bb0=_0x2ced62['cell'],_0x41812a=_0x36cea0['mapper']['toViewElement'](_0x166bb0);_0x36cea0['writer']['addClass']('ck-suggestion-marker-'+_0x4469e6,_0x41812a),_0x9fd9ad&&_0x36cea0['writer']['setAttribute']('data-suggestion',_0x28d092,_0x41812a),_0x36cea0['mapper']['bindElementToMarker'](_0x41812a,_0x54ed22['markerName']),_0x1ff869&&(_0x4f4693['activeMarkers']['includes'](_0x54ed22['markerName'])?_0x36cea0['writer']['addClass']('ck-suggestion-marker--active',_0x41812a):_0x36cea0['writer']['removeClass']('ck-suggestion-marker--active',_0x41812a));}}};}_0x4f4693['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4a8731),_0x4f4693['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4a8731),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x235f3c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2e1252,_0x1c7fc9,_0x86626)=>{_0x86626['options']['showSuggestionHighlights']&&_0x235f3c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2e1252,_0x1c7fc9,_0x86626);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x459f62,_0x7d2be0,_0x545794)=>{const {type:_0x247fbd,id:_0x379b1b}=_0x4f4693['_splitMarkerName'](_0x7d2be0['markerName']),_0x69daa2=_0x4f4693['getSuggestion'](_0x379b1b),_0x429ed8=_0x69daa2['data'];if('formatBlock'!=_0x69daa2['type']||!_0x429ed8||'setTableColumnHeader'!=_0x429ed8['commandName'])return;const _0x512367=_0x545794['mapper']['markerNameToElements'](_0x7d2be0['markerName']);if(_0x512367){for(const _0x369446 of _0x512367)_0x545794['writer']['removeClass']('ck-suggestion-marker-'+_0x247fbd,_0x369446),_0x545794['writer']['removeClass']('ck-suggestion-marker--active',_0x369446),_0x545794['writer']['removeAttribute']('data-suggestion',_0x369446),_0x545794['mapper']['unbindElementFromMarkerName'](_0x369446,_0x7d2be0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x580031=this['editor'],_0x377a24=_0x580031['locale'];function _0x5deb54(_0x468d49){return{'type':'format','content':c(_0x377a24,'*Format:*\x20%0',_0x468d49)};}_0x580031['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x82b7ef=>{if('formatBlock'!=_0x82b7ef['type'])return;const {data:_0x2b5ea4}=_0x82b7ef;if(_0x2b5ea4){if('setTableRowHeader'==_0x2b5ea4['commandName']){const _0x28a594=_0x2b5ea4['commandParams'][0x0]['forceValue'];return _0x5deb54(c(_0x377a24,_0x28a594?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2b5ea4['commandName']){const _0x1aff50=_0x2b5ea4['commandParams'][0x0]['forceValue'];return _0x5deb54(c(_0x377a24,_0x1aff50?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x13e4d9{['afterInit'](){const _0x3e9057=this['editor'],_0x165785=_0x3e9057['locale'],_0x5a91c9=_0x3e9057['plugins']['get']('TrackChangesEditing');function _0x15aac0(_0x60b8e){return{'type':'format','content':''+c(_0x165785,'*Set\x20table\x20type:*\x20%0',_0x60b8e)};}_0x3e9057['plugins']['has']('TableLayout')&&(_0x5a91c9['enableCommand']('insertTableLayout'),_0x5a91c9['enableDefaultAttributesIntegration']('tableType'),_0x5a91c9['registerBlockAttribute']('tableType'),_0x5a91c9['descriptionFactory']['registerElementLabel'](_0x5d0573=>_0x5d0573['is']('element','table')&&'layout'===_0x5d0573['getAttribute']('tableType'),_0xa0a42d=>c(_0x165785,'ELEMENT_LAYOUT_TABLE',_0xa0a42d)),_0x5a91c9['descriptionFactory']['registerDescriptionCallback'](_0xee6baf=>{const {data:_0xa351fc}=_0xee6baf;if(_0xa351fc&&'tableType'==_0xa351fc['key'])switch(_0xa351fc['newValue']){case'layout':return _0x15aac0(c(_0x165785,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x15aac0(c(_0x165785,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x387a08=>[_0x387a08,null]));class $t extends _0x13e4d9{static get['requires'](){return[Ct];}['afterInit'](){const _0x1534bf=this['editor'];if(!_0x1534bf['plugins']['has']('TableClipboard'))return;const _0x4b167d=_0x1534bf['plugins']['get']('TrackChangesEditing'),_0x4c3573=_0x1534bf['plugins']['get']('TableUtils'),_0x47924a=_0x1534bf['plugins']['get'](Ct),_0x3c3e8b=_0x1534bf['plugins']['get']('TableClipboard'),_0x1a1036=_0x1534bf['plugins']['get']('TableSelection'),_0x4b7e08=_0x1534bf['plugins']['get'](_0x44b49b);_0x47924a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1534bf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1534bf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x40b5dd=null,_0xe950aa=!0x1;_0x4b7e08['on']('contentInsertion',(_0x2d2e77,_0x4ce331)=>{_0xe950aa='paste'===_0x4ce331['method'];}),_0x1534bf['model']['on']('insertContent',(_0x1de310,_0x3e58cc)=>{if(!_0xe950aa&&null===_0x1a1036['getSelectedTableCells']())return;const [_0x32e3ef,_0x25d1ce]=_0x3e58cc,_0xdd4a0d=_0x3e58cc[_0x3e58cc['length']-0x1];_0xdd4a0d&&_0xdd4a0d['forceDefaultExecution']||_0x4b167d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x291ebc,_0x345e03,_0x330ca9,_0x16eeae,_0x366523){if(_0x345e03&&!_0x345e03['is']('documentSelection'))return!0x1;const _0x3d459e=_0x366523['getTableIfOnlyTableInContent'](_0x291ebc,_0x330ca9);if(!_0x3d459e||!De(_0x3d459e,void 0x0,_0x16eeae))return!0x1;const _0x2adacc=_0x16eeae['getSelectionAffectedTableCells'](_0x330ca9['document']['selection']);if(!_0x2adacc['length'])return!0x1;const _0x4d4fe1=_0x2adacc[0x0]['findAncestor']('table'),_0x238763=_0x16eeae['getRowIndexes'](_0x2adacc),_0x296b5f=_0x16eeae['getColumnIndexes'](_0x2adacc),_0x46518a={'startRow':_0x238763['first'],'endRow':_0x238763['last'],'startColumn':_0x296b5f['first'],'endColumn':_0x296b5f['last']};return 0x1==_0x2adacc['length']&&(_0x46518a['endRow']+=_0x16eeae['getRows'](_0x3d459e)-0x1,_0x46518a['endColumn']+=_0x16eeae['getColumns'](_0x3d459e)-0x1),De(_0x4d4fe1,_0x46518a,_0x16eeae);}(_0x32e3ef,_0x25d1ce,_0x1534bf['model'],_0x4c3573,_0x3c3e8b)&&(_0x1de310['stop'](),_0x40b5dd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1534bf['model']['change'](()=>{_0x1534bf['model']['insertContent'](_0x3e58cc[0x0],_0x3e58cc[0x1],_0x3e58cc[0x2],{'forceDefaultExecution':!0x0});const _0x17c55a=_0x391cd8(),{rowInsertionRanges:_0x3ebfc9,columnInsertionRanges:_0x19a6c5,insertionRanges:_0x17172c,deletionRanges:_0x55c266,cells:_0x28de9f}=_0x40b5dd;_0x3ebfc9['length']&&_0x4b167d['markMultiRangeInsertion'](_0x3ebfc9,'tablePasteRow',{'tablePasteChainId':_0x17c55a}),_0x19a6c5['length']&&_0x4b167d['markMultiRangeInsertion'](_0x19a6c5,'tablePasteColumn',{'tablePasteChainId':_0x17c55a}),_0x17172c['length']&&(_0x4b167d['markMultiRangeInsertion'](_0x17172c,'tablePaste',{'tablePasteChainId':_0x17c55a,'skipNestingCheck':!0x0}),_0x17172c['forEach'](_0x491c67=>_0x491c67['detach']?.())),_0x55c266['length']&&(_0x4b167d['markMultiRangeDeletion'](_0x55c266,'tablePaste',{'tablePasteChainId':_0x17c55a,'skipNestingCheck':!0x0}),_0x55c266['forEach'](_0x453c52=>_0x453c52['detach']?.()));const _0x661ed5=_0x4b167d['markMultiRangeBlockFormat'](_0x28de9f['map'](({element:_0x1e2c40})=>_0x1e2c40),{'formatGroupId':_0x391cd8()},[],'tablePasteCell',{'tablePasteChainId':_0x17c55a});if(_0x661ed5){const _0x433bc0=_0x661ed5['getMarkers'](),_0x5e7f31=[];for(const {element:_0x39e635,attributes:_0x21732d}of _0x28de9f){if(!_0x21732d)continue;const _0x5cae97=_0x1534bf['model']['createRangeOn'](_0x39e635),_0xb85400=_0x433bc0['find'](_0x19d2e9=>_0x19d2e9['getRange']()['isEqual'](_0x5cae97));_0xb85400&&_0x5e7f31['push']([_0xb85400['name'],_0x21732d]);}_0x5e7f31['length']&&_0x661ed5['setAttribute']('markerAttributes',Object['fromEntries'](_0x5e7f31));}_0x40b5dd=null;}));},{'priority':_0x39d342['high']+0xa}),_0x4b7e08['on']('contentInsertion',()=>{_0xe950aa=!0x1;},{'priority':'lowest'}),_0x1534bf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x37f0f2,_0x480337)=>{const [_0x359e52,_0x42465c,,_0x21a403]=_0x480337;if(!_0x40b5dd)return;_0x37f0f2['stop']();const _0x16b66f=_0x359e52['cell'],_0x2d1f80=_0x42465c,_0x217ec1=Ue(_0x16b66f),_0x388158=Ue(_0x2d1f80);_0x37f0f2['return']=_0x16b66f;let _0x4b9b0c=null,_0x178c9e=null;if(_0x388158||_0x217ec1){if(_0x217ec1&&!_0x388158){_0x21a403['remove'](_0x16b66f['getChild'](0x0));for(const _0xad4ef8 of Array['from'](_0x2d1f80['getChildren']()))_0x21a403['insert'](_0xad4ef8,_0x16b66f,'end');const _0x6024e3=_0x40b5dd['rowInsertionIndexes']['includes'](_0x359e52['row']),_0x3f9459=_0x40b5dd['columnInsertionIndexes']['includes'](_0x359e52['column']);_0x6024e3||_0x3f9459||(_0x4b9b0c=_0x23f516['fromRange'](_0x21a403['createRangeIn'](_0x16b66f)));}else _0x388158&&!_0x217ec1&&(_0x178c9e=_0x21a403['createRangeIn'](_0x16b66f));}else{const _0x3220bf=_0x21a403['createElement']('tableCellSuggestion'),_0x317bae=_0x21a403['createElement']('tableCellSuggestion');_0x21a403['wrap'](_0x21a403['createRangeIn'](_0x16b66f),_0x317bae),_0x21a403['insert'](_0x3220bf,_0x16b66f,0x0);for(const _0x3be9ab of Array['from'](_0x2d1f80['getChildren']()))_0x21a403['insert'](_0x3be9ab,_0x3220bf,'end');_0x4b9b0c=_0x23f516['fromRange'](_0x21a403['createRangeOn'](_0x3220bf)),_0x178c9e=_0x23f516['fromRange'](_0x21a403['createRangeOn'](_0x317bae));}const _0x1fae9c=Array['from'](_0x2d1f80['getAttributes']())['filter'](([_0x4f3800])=>xe['includes'](_0x4f3800));_0x40b5dd['cells']['push']({'element':_0x16b66f,'attributes':_0x1fae9c['length']?Object['fromEntries'](_0x1fae9c):null}),_0x4b9b0c&&_0x40b5dd['insertionRanges']['push'](_0x4b9b0c),_0x178c9e&&_0x40b5dd['deletionRanges']['push'](_0x178c9e);},{'priority':'high'}),_0x4c3573['on']('insertColumns',(_0x4e76da,_0x5c6db9)=>{const [_0x3ec525,_0x4662b7={}]=_0x5c6db9;if(!_0x40b5dd)return;const _0x324a63=_0x4662b7['at']||0x0,_0x3eb086=_0x4662b7['columns']||0x1;_0x40b5dd['columnInsertionIndexes']=new Array(_0x3eb086)['fill'](_0x324a63)['map']((_0x2283f2,_0x48f8eb)=>_0x2283f2+_0x48f8eb);for(const {cell:_0x34baa2}of _0x4c3573['createTableWalker'](_0x3ec525,{'startColumn':_0x324a63,'endColumn':_0x324a63+_0x3eb086-0x1}))_0x40b5dd['columnInsertionRanges']['push'](_0x1534bf['model']['createRangeOn'](_0x34baa2));},{'priority':'low'}),_0x4c3573['on']('insertRows',(_0x4b1cef,_0x47f8a1)=>{const [_0x13cff0,_0x37c800={}]=_0x47f8a1;if(!_0x40b5dd)return;const _0x4be453=_0x37c800['at']||0x0,_0x494947=_0x37c800['rows']||0x1;_0x40b5dd['rowInsertionIndexes']=new Array(_0x494947)['fill'](_0x4be453)['map']((_0x4bfd1f,_0x22570c)=>_0x4bfd1f+_0x22570c);for(const {cell:_0x21277d}of _0x4c3573['createTableWalker'](_0x13cff0,{'startRow':_0x4be453,'endRow':_0x4be453+_0x494947-0x1}))_0x40b5dd['rowInsertionRanges']['push'](_0x1534bf['model']['createRangeOn'](_0x21277d));},{'priority':'low'}),_0x4b167d['descriptionFactory']['registerDescriptionCallback'](_0x35ccf9=>{if(_0x35ccf9['subType']&&_0x35ccf9['subType']['startsWith']('tablePaste'))return _0x35ccf9['previous']?{}:{'type':'insertion','content':c(_0x1534bf['locale'],'*Replace\x20table\x20cells*')};});const _0x588323=()=>!0x1;for(const _0x218c06 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b167d['_suggestionFactory']['registerCustomCallback']('insertion',_0x218c06,'join',_0x588323),_0x4b167d['_suggestionFactory']['registerCustomCallback']('deletion',_0x218c06,'join',_0x588323),_0x4b167d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x218c06,'join',_0x588323);_0x4b167d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x588323),_0x4b167d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1c1067,_0x15986c,_0x4f5bf0)=>{const _0x2576c8=_0x1c1067['map'](_0x577cd1=>_0x577cd1['getContainedElement']())['filter'](_0x225959=>_0x225959),_0x2dfb8c=new Map(_0x2576c8['map'](_0x1a85da=>[_0x1a85da,null]));if(_0x40b5dd){for(const {element:_0x57f9bb,attributes:_0x1ff29a}of _0x40b5dd['cells'])_0x1ff29a&&_0x2dfb8c['set'](_0x57f9bb,_0x1ff29a);}else{if(_0x4f5bf0&&_0x4f5bf0['markerAttributes'])for(const [_0xcff278,_0x4c6755]of Object['entries'](_0x4f5bf0['markerAttributes'])){const _0x3ca73e=_0x1534bf['model']['markers']['get'](_0xcff278),_0x3fc744=_0x3ca73e?_0x3ca73e['getRange']()['getContainedElement']():null;_0x3fc744&&_0x2dfb8c['set'](_0x3fc744,_0x4c6755);}}_0x1534bf['model']['change'](_0x2e9cc8=>{for(const [_0xa4c0c8,_0x30f2ab]of _0x2dfb8c)_0x2e9cc8['setAttributes']({...Oe,..._0x30f2ab},_0xa4c0c8);});});const _0x5b622f=(_0x454b85,_0x488d7b)=>{_0x4b167d['_suggestionFactory']['registerCustomCallback'](_0x454b85,'tablePaste',_0x488d7b,(_0x8372e1,_0xbb46e2,_0x2d4adf)=>{_0x1534bf['model']['change'](_0x4b28ba=>{const _0x2e80e8=[];for(const _0x55804c of _0x8372e1){const _0x22f3cf=_0x55804c['start']['nodeAfter'];_0x22f3cf['is']('element','tableCellSuggestion')&&_0x2e80e8['push'](_0x22f3cf);}_0x4b167d['_suggestionFactory']['getSuggestionCallback'](_0x454b85,null,_0x488d7b)(_0x8372e1,_0xbb46e2,_0x2d4adf);for(const _0x2c9b66 of _0x2e80e8)'$graveyard'!=_0x2c9b66['root']['rootName']&&_0x4b28ba['unwrap'](_0x2c9b66);});});};_0x5b622f('insertion','accept'),_0x5b622f('insertion','discard'),_0x5b622f('deletion','accept'),_0x5b622f('deletion','discard'),_0x4b167d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x385874=>{const _0x10a69d=_0x385874['map'](_0x1511ab=>_0x1511ab['getContainedElement']()),_0x35a83c=_0x10a69d[0x0]['findAncestor']('table'),{minRow:_0x538ab7,maxRow:_0x500dd7}=_0x47924a['_getCoordsForCells'](_0x10a69d);_0x4c3573['removeRows'](_0x35a83c,{'at':_0x538ab7,'rows':_0x500dd7-_0x538ab7+0x1});}),_0x4b167d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2a625b=>{const _0x278f2b=_0x2a625b['map'](_0x3db5d4=>_0x3db5d4['getContainedElement']()),_0x1b5d9a=_0x278f2b[0x0]['findAncestor']('table'),{minColumn:_0x1649fd,maxColumn:_0x2647bf}=_0x47924a['_getCoordsForCells'](_0x278f2b);_0x4c3573['removeColumns'](_0x1b5d9a,{'at':_0x1649fd,'columns':_0x2647bf-_0x1649fd+0x1});});const _0x3a601d=(_0x427220,_0x191cab)=>{if(!_0x191cab['subType']||!_0x191cab['subType']['startsWith']('tablePaste'))return;const _0x36a7f2=_0x191cab['attributes']['tablePasteChainId'],_0x46b99b=_0x4b167d['getSuggestions']()['filter'](_0x488e3a=>_0x488e3a['isInContent']&&_0x488e3a['attributes']&&_0x488e3a['attributes']['tablePasteChainId']==_0x36a7f2);_0x46b99b['length']&&_0x191cab['getAllAdjacentSuggestions']()['length']!=_0x46b99b['length']&&_0x46b99b['reduce']((_0x168da0,_0x4fd49e)=>(_0x168da0['next']=_0x4fd49e,_0x4fd49e['previous']=_0x168da0,_0x4fd49e));};function _0x49e5c3(_0x2e17b3,_0x2f6ba9=!0x0){const {id:_0x3b846b,authorId:_0x2661ce}=_0x4b167d['_splitMarkerName'](_0x2e17b3['markerName']),_0x6a69c6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x25d0ff=_0x4b167d['activeMarkers']['includes'](_0x2e17b3['markerName']);return _0x25d0ff&&_0x6a69c6['push']('ck-suggestion-marker--active'),{'classes':_0x6a69c6,'attributes':{'data-suggestion':_0x3b846b,'data-author-id':_0x2661ce},'priority':_0x25d0ff&&_0x2f6ba9?0xbc2:0xbb8};}_0x4b167d['on']('suggestionLoaded',_0x3a601d,{'priority':'high'}),_0x4b167d['on']('suggestionUnloaded',_0x3a601d,{'priority':'high'}),_0x1534bf['model']['document']['registerPostFixer'](()=>{let _0x1f6a73=!0x1;const _0x59ca1c=Array['from'](_0x1534bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28d1d0,data:_0x1803c7}of _0x59ca1c){const {group:_0x341730,type:_0x6c241b,id:_0x43ac76}=_0x4b167d['_splitMarkerName'](_0x28d1d0);if('suggestion'!=_0x341730||'deletion'!=_0x6c241b||_0x1803c7['oldRange'])continue;if(!_0x4b167d['hasSuggestion'](_0x43ac76))continue;const _0x18be7a=_0x4b167d['getSuggestion'](_0x43ac76)['getRanges'](),_0x3b1431=_0x1534bf['plugins']['get']('Users')['me'];for(const _0x5262d5 of _0x4b167d['getSuggestions']()){if(!_0x5262d5['isInContent']||_0x5262d5['author']!=_0x3b1431)continue;if('formatBlock'!=_0x5262d5['type']||'tablePasteCell'!=_0x5262d5['subType'])continue;if(_0x5262d5['getRanges']()['every'](_0x3064f8=>_0x18be7a['some'](_0x3c21e2=>_0x3c21e2['containsRange'](_0x3064f8,!0x0)))){for(const _0x2dceab of _0x5262d5['getAllAdjacentSuggestions']())_0x2dceab['isInContent']&&(_0x2dceab['discard'](),_0x1f6a73=!0x0);}}}return _0x1f6a73;}),_0x1534bf['model']['document']['registerPostFixer'](_0x2929eb=>{const _0x40d593=_0x1534bf['commands']['get']('redo');if(!_0x40d593||!_0x40d593['_createdBatches']['has'](_0x2929eb['batch']))return!0x1;let _0x1adbec=!0x1;const _0x57013c=_0x1534bf['plugins']['get']('Users')['me'],_0x1cec58=_0x1534bf['model']['document']['differ']['getChanges'](),_0x208257=Array['from'](_0x1534bf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2cbc11,data:_0xb27809})=>{const {group:_0x3ca7ee,subType:_0x2d6885,authorId:_0x5adc0e}=_0x4b167d['_splitMarkerName'](_0x2cbc11);return'suggestion'==_0x3ca7ee&&'tablePaste'==_0x2d6885&&_0x5adc0e==_0x57013c['id']&&!_0xb27809['oldRange'];});for(const _0x2e5741 of _0x1cec58){if('insert'!=_0x2e5741['type']||'tableCellSuggestion'!=_0x2e5741['name']||0x1!=_0x2e5741['length'])continue;const _0x4973a9=_0x2929eb['createRange'](_0x2e5741['position'],_0x2e5741['position']['getShiftedBy'](0x1));if(!_0x208257['find'](({data:_0xf17ea4})=>_0xf17ea4['newRange']['isEqual'](_0x4973a9))){for(const {name:_0x1cd0c3,data:_0x1c5e8f}of _0x208257)if(_0x4973a9['containsRange'](_0x1c5e8f['newRange'])){_0x2929eb['updateMarker'](_0x1cd0c3,{'range':_0x4973a9}),_0x1adbec=!0x0;break;}}}return _0x1adbec;}),_0x1534bf['model']['document']['registerPostFixer'](_0xce21cd=>{let _0x380e0b=!0x1;const _0x14385e=_0x1534bf['plugins']['get']('Users')['me'],_0x233062=_0x4b167d['getSuggestions']()['filter'](_0x23814c=>_0x23814c['isInContent']&&_0x23814c['author']==_0x14385e),_0x473cf7=new Set(),_0x5d1e83=new Set();for(const _0x2ec8ed of _0x233062)if('tablePaste'==_0x2ec8ed['subType'])for(const _0x2fa4a6 of _0x2ec8ed['getMarkers']()){const _0x2305f5=_0x2fa4a6['getRange']()['getContainedElement']();if(_0x2305f5){if(_0x2305f5['is']('element','tableCellSuggestion')&&Ue(_0x2305f5)){_0x2ec8ed['removeMarker'](_0x2fa4a6['name']),_0x473cf7['add'](_0x2305f5),_0x380e0b=!0x0;const _0xa5756c=_0x2305f5['nextSibling'],_0x10e3d8=_0x2305f5['previousSibling'],_0x593fc3=_0xa5756c&&_0xa5756c['is']('element','tableCellSuggestion'),_0x5d56f4=_0x10e3d8&&_0x10e3d8['is']('element','tableCellSuggestion');_0x593fc3&&!_0x473cf7['has'](_0xa5756c)&&_0x5d1e83['add'](_0xa5756c),_0x5d56f4&&!_0x473cf7['has'](_0x10e3d8)&&_0x5d1e83['add'](_0x10e3d8);}else _0x2305f5['is']('element','paragraph')&&_0x2305f5['isEmpty']&&(_0x2ec8ed['removeMarker'](_0x2fa4a6['name']),_0x380e0b=!0x0);}}else{if('tablePasteCell'==_0x2ec8ed['subType']){if(!_0x2ec8ed['attributes']||!_0x2ec8ed['attributes']['tablePasteChainId'])continue;const _0x31d23d=_0x2ec8ed['attributes']['markerAttributes'];if(_0x31d23d&&Object['keys'](_0x31d23d)['length'])continue;const _0x460402=_0x2ec8ed['attributes']['tablePasteChainId'];let _0x3d244c=!0x0,_0x464d2b=!0x0;for(const _0x3af72b of _0x233062)if(_0x3af72b['subType']&&_0x3af72b['subType']['startsWith']('tablePaste')){if(!_0x3af72b['attributes']['tablePasteChainId']){_0x464d2b=!0x1;break;}if(_0x3af72b['id']!=_0x2ec8ed['id']&&_0x3af72b['attributes']['tablePasteChainId']==_0x460402){_0x3d244c=!0x1;break;}}_0x464d2b&&_0x3d244c&&(_0x2ec8ed['removeMarkers'](),_0x380e0b=!0x0);}}for(const _0x33f5ec of _0x473cf7)_0xce21cd['remove'](_0x33f5ec);for(const _0x20f099 of _0x5d1e83)_0xce21cd['unwrap'](_0x20f099);return _0x380e0b;}),_0x1534bf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x49d288=>_0x49e5c3(_0x49d288),'converterPriority':'high'}),_0x1534bf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x409251,_0x12d644)=>_0x12d644['options']['showSuggestionHighlights']?_0x49e5c3(_0x409251,!0x1):null,'converterPriority':'high'});const _0x134a86=_0x1534bf['editing']['view'];this['listenTo'](_0x134a86['document'],'clipboardOutput',(_0x10eeac,_0x46b9ae)=>{const _0x1253b5=[];for(const _0x3cb28a of _0x134a86['createRangeIn'](_0x46b9ae['content'])['getItems']())_0x3cb28a['is']('element','suggestion-td')&&_0x1253b5['push'](_0x3cb28a);_0x134a86['change'](_0xa4b469=>{for(const _0x19f346 of _0x1253b5)_0xa4b469['move'](_0xa4b469['createRangeIn'](_0x19f346),_0xa4b469['createPositionBefore'](_0x19f346)),_0xa4b469['remove'](_0x19f346);});});}}function Ue(_0x256fdd){if(_0x256fdd['isEmpty'])return!0x0;const _0x2e5436=_0x256fdd['getChild'](0x0);return _0x2e5436['is']('element','paragraph')&&_0x2e5436['isEmpty'];}function De(_0x2f2a4f,_0x28f926={},_0x30b6da){for(const {isAnchor:_0x3b972a,cellHeight:_0x35b395,cellWidth:_0x37ba1e}of _0x30b6da['createTableWalker'](_0x2f2a4f,{'includeAllSlots':!0x0,..._0x28f926}))if(!_0x3b972a||0x1!=_0x35b395||0x1!=_0x37ba1e)return!0x1;return!0x0;}class Bt extends _0x13e4d9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1b17c3=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b17c3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1b17c3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1b17c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b17c3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1b17c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1b17c3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cba47,_0x1cb8e3){const _0x552074=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fdacb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xff0c9=_0x1cb8e3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x49d986=_0x3fdacb['getColumnGroupElement'](_0xff0c9);let _0x430fec=_0x49d986?_0x3fdacb['getTableColumnsWidths'](_0x49d986):null,_0x2b119d=_0xff0c9['getAttribute']('tableWidth')||null;const _0x72314e=_0x1cb8e3['tableWidth']||_0x2b119d,_0x1268d4=_0x1cb8e3['columnWidths']||_0x430fec,_0x263a9c=this['editor']['plugins']['get']('Users')['me'];for(const _0x21938e of _0x552074['getSuggestions']()){const _0x277ec6=_0x21938e['getContainedElement']();if('resizeTable'===_0x21938e['subType']&&_0x277ec6===_0xff0c9){_0x21938e['author']!==_0x263a9c&&_0x21938e['discard']();const _0x11d38a=_0x21938e['data']['commandParams'];_0x2b119d=_0x11d38a[0x0]['tableWidth'],_0x430fec=_0x11d38a[0x0]['columnWidths'];break;}}_0x1cba47({'table':_0xff0c9,'tableWidth':_0x72314e,'columnWidths':_0x1268d4}),_0x552074['markBlockFormat'](_0xff0c9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2b119d,'columnWidths':_0x430fec}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xda95ef){if('formatBlock'!=_0xda95ef['type']&&'formatInline'!=_0xda95ef['type'])return;const {data:_0x4006c5}=_0xda95ef;if(_0x4006c5&&'resizeTable'===_0x4006c5['formatGroupId']){const _0x456001='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x456001)};}}}class Ot extends _0x13e4d9{['afterInit'](){const _0x2c4fd3=this['editor'];_0x2c4fd3['plugins']['has']('Template')&&_0x2c4fd3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x13e4d9{['afterInit'](){const _0x286b39=this['editor'];if(!_0x286b39['commands']['get']('insertTableOfContents'))return;_0x286b39['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2984b7=_0x286b39['plugins']['get']('TrackChangesEditing'),_0x1b0868=_0x286b39['locale'];_0x2984b7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5d9e35=>c(_0x1b0868,'ELEMENT_TABLE_OF_CONTENTS',_0x5d9e35));}}class xt extends _0x13e4d9{['afterInit'](){const _0x59bed6=this['editor'];if(!_0x59bed6['plugins']['has']('Title'))return;const _0x4142ba=_0x59bed6['plugins']['get']('TrackChangesEditing');_0x4142ba['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x59bed6['locale'],'ELEMENT_TITLE')),_0x59bed6['model']['document']['registerPostFixer'](_0x37d86e=>{let _0xb710f3=!0x1;const _0x36728e=Array['from'](_0x59bed6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50bc06,data:_0x51e694}of _0x36728e){const {group:_0x42362f}=_0x4142ba['_splitMarkerName'](_0x50bc06);if('suggestion'!==_0x42362f||!_0x51e694['newRange'])continue;const _0x3b78c4=_0x51e694['newRange'],_0x576944=_0x3b78c4['end']['nodeBefore'];if(!_0x576944||!_0x576944['is']('element','title-content'))continue;if(!_0x3b78c4['start']['isTouching'](_0x3b78c4['end']))continue;const _0x1878f=_0x59bed6['model']['schema']['getNearestSelectionRange'](_0x3b78c4['end'],'forward');if(_0x1878f&&_0x1878f['isCollapsed']){const _0x4e4cbd=_0x37d86e['createRange'](_0x3b78c4['start'],_0x1878f['start']);_0x4e4cbd['isEqual'](_0x3b78c4)||(_0x37d86e['updateMarker'](_0x50bc06,{'range':_0x4e4cbd}),_0xb710f3=!0x0);}_0xb710f3||(_0x37d86e['removeMarker'](_0x50bc06),_0xb710f3=!0x0);}return _0xb710f3;});}}class Tt extends _0x13e4d9{['afterInit'](){const _0x3022e9=this['editor'],_0x8a9c51=_0x3022e9['plugins']['get']('TrackChangesEditing');_0x3022e9['plugins']['has']('Uploadcare')&&(_0x8a9c51['enableCommand']('uploadcare'),_0x3022e9['plugins']['has']('UploadcareImageEdit')&&(_0x8a9c51['enableCommand']('uploadcareImageEdit'),_0x8a9c51['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x8a9c51['registerBlockAttribute']('uploadcareImageId'),_0x8a9c51['descriptionFactory']['registerDescriptionCallback'](_0x41ec3e=>{if('attribute'!=_0x41ec3e['type'])return;const {data:_0x27865d}=_0x41ec3e;return _0x27865d&&'uploadcareImageId'==_0x27865d['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x13e4d9{['afterInit'](){const _0x4d4e22=this['editor'],_0x19c913=_0x4d4e22['plugins']['get']('TrackChangesEditing');_0x4d4e22['plugins']['has']('UndoEditing')&&(_0x19c913['enableCommand']('undo'),_0x19c913['enableCommand']('redo'));}}class Ut extends _0x13e4d9{static get['requires'](){return[Ct];}['afterInit'](){const _0x4a1903=this['editor'];if(!_0x4a1903['plugins']['has']('TableCaptionEditing'))return;_0x4a1903['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x13e4d9{['tableProperties'];['tableCellProperties'];constructor(_0x5e1c42){super(_0x5e1c42),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 _0x53725a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5a86d7 of this['tableProperties'])_0x53725a['enableCommand'](_0x5a86d7,(_0x10a8ee,_0x519872)=>{const _0x49e757=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5a86d7,[_0x49e757],this['tableProperties'],'tableProperties',_0x10a8ee,_0x519872);});_0x53725a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x53725a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53725a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5a331c,_0x56dfeb)=>this['handleDiscardAction'](this['tableProperties'],_0x5a331c,_0x56dfeb)),_0x53725a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x31321e of this['tableCellProperties'])_0x53725a['enableCommand'](_0x31321e,(_0xdbb0d2,_0x52a0ec)=>{const _0x3b7654=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x31321e,_0x3b7654,this['tableCellProperties'],'tableCellProperties',_0xdbb0d2,_0x52a0ec);});_0x53725a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x53725a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53725a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49bf2c,_0x1f9f32)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49bf2c,_0x1f9f32)),_0x53725a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x53725a['descriptionFactory']['registerDescriptionCallback'](_0x1bba6c=>this['handleSuggestionDescription'](_0x1bba6c));}['_handlePropertyChange'](_0x418761,_0x112645,_0x587677,_0x44e337,_0x4444ec,_0x38501b){const _0x40cdca=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x38501b['batch'],()=>{for(const _0xca9c62 of _0x112645){if(this['_getSuggestion'](_0xca9c62,_0x44e337))_0x4444ec(_0x38501b);else{const _0x5d0bc3={};for(const _0x251380 of _0x587677){const _0x1b7ffe=_0xca9c62['getAttribute'](_0x251380);void 0x0!==_0x1b7ffe&&(_0x5d0bc3[_0x251380]=_0x1b7ffe);}_0x4444ec(_0x38501b),_0x40cdca['markBlockFormat'](_0xca9c62,{'commandParams':[_0x5d0bc3]},[],_0x44e337);}}});}['handleDiscardAction'](_0x115e29,_0x13e2e9,_0x3dc190){const _0x2b45c5=_0x13e2e9[0x0]['start']['nodeAfter'],_0x3773c8=_0x3dc190['commandParams'][0x0];this['editor']['model']['change'](_0xa8bf81=>{for(const _0x588f04 of _0x115e29)void 0x0!==_0x3773c8[_0x588f04]?_0xa8bf81['setAttribute'](_0x588f04,_0x3773c8[_0x588f04],_0x2b45c5):_0xa8bf81['removeAttribute'](_0x588f04,_0x2b45c5);});}['handleSuggestionDescription'](_0x420125){if(_0x420125['data'])switch(_0x420125['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x22d3ac,_0x11845d){const _0x159e09=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x299f91 of _0x159e09['getSuggestions']({'skipNotAttached':!0x0})){const _0x43b9d8=_0x299f91['getContainedElement']();if(_0x299f91['subType']===_0x11845d&&_0x43b9d8===_0x22d3ac)return _0x299f91;}return null;}}const u='$elementName';class p extends _0x13e4d9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x495ac4,_0x3e7b36,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17dc21){super(_0x17dc21),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x28ac38,_0x3b4942,_0x5acbc4,_0x46b7ff)=>{this['_model']['change'](()=>{for(const _0x503e91 of[..._0x46b7ff,..._0x5acbc4])this['_model']['markers']['has'](_0x503e91)&&_0x17dc21['editing']['reconvertMarker'](_0x503e91);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x17dc21['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x17dc21['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x17dc21['config']['get']('trackChanges.trackFormatChanges'),_0x17dc21['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x17dc21['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x17dc21,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2fde46=this['editor'],_0x111b9c=(_0x563f69,_0x375cc5)=>{if('attribute'!=_0x563f69)return'ck-suggestion-marker-'+_0x563f69;const _0x553999=_0x375cc5['split']('|')[0x0];return this['_isBlockAttribute'](_0x553999)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2fde46['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x26baac=>{const {id:_0x8511a7,authorId:_0x49d324,type:_0x23f47f,subType:_0x21e49a}=this['_splitMarkerName'](_0x26baac['markerName']),_0x12dbf7=['ck-suggestion-marker',_0x111b9c(_0x23f47f,_0x21e49a)];let _0x4bae65=0xbb8;return this['activeMarkers']['includes'](_0x26baac['markerName'])&&(_0x12dbf7['push']('ck-suggestion-marker--active'),_0x4bae65=0xbc2),'deletion'==_0x23f47f&&(_0x4bae65+=0x5),{'classes':_0x12dbf7,'attributes':{'data-suggestion':_0x8511a7,'data-author-id':_0x49d324},'priority':_0x4bae65};}}),_0x2fde46['conversion']['for']('dataDowncast')['add'](_0x5e8782=>{_0x5e8782['on']('addMarker:suggestion',(_0x13f031,_0x522ee4,_0x2f99d3)=>{if(!_0x2f99d3['options']['showSuggestionHighlights'])return;const _0x2afc2b=_0x522ee4['item'];if(!_0x2afc2b)return;const _0x48bbc5=_0x2f99d3['mapper']['toViewElement'](_0x2afc2b);_0x2fde46['model']['schema']['isObject'](_0x2afc2b)&&_0x48bbc5&&!_0x48bbc5['getCustomProperty']('widget')&&_0x48bbc5['is']('containerElement')&&_0x5d9d84(_0x48bbc5,_0x2f99d3['writer']);},{'priority':'high'});}),_0x2fde46['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x22b668,_0x34821d)=>{if(!_0x34821d['options']['showSuggestionHighlights'])return null;const {type:_0x2089ee,subType:_0x1dc80f}=this['_splitMarkerName'](_0x22b668['markerName']);return{'classes':['ck-suggestion-marker',_0x111b9c(_0x2089ee,_0x1dc80f)],'priority':0xbb8};}});const _0x552970=({showActiveMarkers:_0x6f1b8f=!0x0,isAttributeSuggestion:_0x247d16=!0x1}={})=>(_0x4c640a,_0x17dd0b,_0x545058)=>{if(!_0x17dd0b['item'])return;const {id:_0x258e9a,authorId:_0x23aecd}=this['_splitMarkerName'](_0x17dd0b['markerName']);if(_0x247d16){const _0x36f806=this['_suggestions']['get'](_0x258e9a),_0x111ac2=this['_getAttributeKey'](_0x36f806);if(!this['_isBlockAttribute'](_0x111ac2))return;}if(_0x17dd0b['item']['is']('selection'))return void _0x545058['consumable']['consume'](_0x17dd0b['item'],_0x4c640a['name']);const _0x4c4b4f=_0x545058['mapper']['toViewElement'](_0x17dd0b['item']);if(_0x17dd0b['item']['is']('element')&&_0x2fde46['model']['schema']['isBlock'](_0x17dd0b['item'])&&!_0x4c4b4f['getCustomProperty']('addHighlight')){_0x545058['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4c4b4f),_0x545058['writer']['setAttribute']('data-suggestion',_0x258e9a,_0x4c4b4f),_0x545058['writer']['setAttribute']('data-author-id',_0x23aecd,_0x4c4b4f),_0x545058['mapper']['bindElementToMarker'](_0x4c4b4f,_0x17dd0b['markerName']),_0x6f1b8f&&(this['activeMarkers']['includes'](_0x17dd0b['markerName'])?_0x545058['writer']['addClass']('ck-suggestion-marker--active',_0x4c4b4f):_0x545058['writer']['removeClass']('ck-suggestion-marker--active',_0x4c4b4f));for(const _0x595c6d of _0x2fde46['model']['createRangeIn'](_0x17dd0b['item'])['getItems']())_0x545058['consumable']['consume'](_0x595c6d,_0x4c640a['name']);_0x545058['consumable']['consume'](_0x17dd0b['item'],_0x4c640a['name']);}};_0x2fde46['conversion']['for']('dataDowncast')['add'](_0x38710f=>{_0x38710f['on']('addMarker:suggestion:formatBlock',(_0x29bd9d,_0x328395,_0x3525ca)=>{_0x3525ca['options']['showSuggestionHighlights']&&_0x552970({'showActiveMarkers':!0x1})(_0x29bd9d,_0x328395,_0x3525ca);},{'priority':'highest'});}),_0x2fde46['conversion']['for']('dataDowncast')['add'](_0x2ab733=>{_0x2ab733['on']('addMarker:suggestion:attribute',(_0x4fbd7e,_0x33e6b2,_0x3bd3b1)=>{_0x3bd3b1['options']['showSuggestionHighlights']&&_0x552970({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4fbd7e,_0x33e6b2,_0x3bd3b1);},{'priority':'highest'});}),_0x2fde46['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3401d5,_0x36deae)=>_0x36deae['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3401d5['substr'](0xb)}}),_0x2fde46['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3752f7,{writer:_0x123cc1})=>{let _0x42e256='suggestion:'+_0x3752f7['getAttribute']('suggestion-type')+':'+_0x3752f7['getAttribute']('id');return _0x3752f7['getAttribute']('marker-count')&&(_0x42e256+=':'+_0x3752f7['getAttribute']('marker-count')),_0x123cc1['createElement']('$marker',{'data-name':_0x42e256});}}),_0x2fde46['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2fde46['conversion']['for']('editingDowncast')['add'](_0x3f7e7c=>{_0x3f7e7c['on']('addMarker:suggestion:formatBlock',_0x552970(),{'priority':'high'});}),_0x2fde46['conversion']['for']('editingDowncast')['add'](_0x2a7d0a=>{_0x2a7d0a['on']('addMarker:suggestion:attribute',_0x552970({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2fde46['conversion']['for']('editingDowncast')['add'](_0x451923=>{_0x451923['on']('removeMarker:suggestion:formatBlock',(_0x5d018f,_0x148f7e,_0x554c74)=>{const _0x4e392b=_0x554c74['mapper']['markerNameToElements'](_0x148f7e['markerName']);if(_0x4e392b){for(const _0x3ae48f of _0x4e392b)_0x3ae48f['getCustomProperty']('addHighlight')||(_0x554c74['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ae48f),_0x554c74['writer']['removeAttribute']('data-suggestion',_0x3ae48f),_0x554c74['writer']['removeAttribute']('data-author-id',_0x3ae48f),_0x554c74['mapper']['unbindElementFromMarkerName'](_0x3ae48f,_0x148f7e['markerName']));}},{'priority':'high'});}),_0x2fde46['conversion']['for']('editingDowncast')['add'](_0x2c699b=>{_0x2c699b['on']('removeMarker:suggestion:attribute',(_0x5256c9,_0x31eb27,_0x1b9758)=>{const _0x319a8e=_0x1b9758['mapper']['markerNameToElements'](_0x31eb27['markerName']);if(!_0x319a8e)return;const {id:_0x2e9854}=this['_splitMarkerName'](_0x31eb27['markerName']),_0x223d4d=this['_suggestions']['get'](_0x2e9854),_0x5e3b72=this['_getAttributeKey'](_0x223d4d);if(this['_isBlockAttribute'](_0x5e3b72)){for(const _0x2ea77f of _0x319a8e)_0x2ea77f['getCustomProperty']('addHighlight')||(_0x1b9758['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ea77f),_0x1b9758['writer']['removeAttribute']('data-suggestion',_0x2ea77f),_0x1b9758['writer']['removeAttribute']('data-author-id',_0x2ea77f),_0x1b9758['mapper']['unbindElementFromMarkerName'](_0x2ea77f,_0x31eb27['markerName']));}},{'priority':'high'});}),_0x2fde46['model']['document']['registerPostFixer'](_0x21aa69=>{let _0x4918f0=!0x1;const _0x262146=Array['from'](_0x2fde46['model']['document']['differ']['getChangedMarkers']()),_0xe0da92=new Set();for(const {name:_0x4e3300,data:_0x37b6f9}of _0x262146){const {group:_0x262ebe,type:_0x6ffb00,subType:_0x15a84a,id:_0x2e18e1}=this['_splitMarkerName'](_0x4e3300);if('suggestion'!==_0x262ebe)continue;const _0x3be7a6=this['_suggestions']['get'](_0x2e18e1);if(null!=_0x37b6f9['newRange']){'formatInline'==_0x6ffb00&&(_0x4918f0=_0x4918f0||Jt(_0x37b6f9['newRange'],_0x4e3300,_0x21aa69,_0x2fde46['model']['schema']));const _0x42ee65='attribute'==_0x6ffb00&&this['_isBlockAttribute'](_0x15a84a['split']('|')[0x0]);if(_0x37b6f9['newRange']['isCollapsed']||'$graveyard'==_0x37b6f9['newRange']['root']['rootName']||'formatBlock'==_0x6ffb00&&!Ht(_0x37b6f9['newRange'])||_0x42ee65&&!Ht(_0x37b6f9['newRange'])||'deletion'==_0x6ffb00&&!(!Lt(_0x19e600=_0x37b6f9['newRange'])&&!function(_0x41264b){return _0x41264b['start']['parent']==_0x41264b['end']['nodeBefore']&&_0x41264b['start']['isAtEnd'];}(_0x19e600)))_0x21aa69['removeMarker'](_0x4e3300),_0x4918f0=!0x0;else{if(!_0x3be7a6||!_0x3be7a6['isInContent'])continue;if(_0x37b6f9['newRange']&&_0x37b6f9['oldRange']&&_0x37b6f9['newRange']['isEqual'](_0x37b6f9['oldRange']))continue;_0xe0da92['add'](_0x3be7a6);}}}var _0x19e600;return _0xe0da92['size']>0x0&&(_0x4918f0=!!this['_joinWithAdjacentSuggestions'](_0xe0da92)||_0x4918f0),_0x4918f0;}),_0x2fde46['model']['document']['registerPostFixer'](_0x6b696d=>{let _0x7779e6=!0x1;for(const _0x3a6a8e of _0x2fde46['model']['document']['differ']['getChanges']())if('insert'==_0x3a6a8e['type'])for(const _0x5305a0 of this['_suggestions']['values']()){if(_0x5305a0['isMultiRange']||!_0x5305a0['isInContent'])continue;const _0x1cbdce='formatBlock'==_0x5305a0['type'],_0x307cad=this['_getAttributeKey'](_0x5305a0),_0x2e4747=_0x307cad&&this['_isBlockAttribute'](_0x307cad);if(!_0x1cbdce&&!_0x2e4747)continue;const _0x131e39=_0x5305a0['getFirstRange']();if(_0x131e39['start']['parent']!=_0x131e39['end']['parent']&&!_0x131e39['end']['isAtEnd']){const _0x41d278=_0x2fde46['model']['createPositionAt'](_0x131e39['start']['nodeAfter'],'end'),_0x593c63=_0x2fde46['model']['createRange'](_0x131e39['start'],_0x41d278);_0x6b696d['updateMarker'](_0x5305a0['getFirstMarker'](),{'range':_0x593c63}),_0x7779e6=!0x0;}}return _0x7779e6;}),_0x2fde46['model']['document']['registerPostFixer'](_0x3a02b4=>this['_processAttributeChanges'](_0x3a02b4)),_0x2fde46['model']['document']['registerPostFixer'](_0x185fe8=>!_0x185fe8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x185fe8)),_0x2fde46['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2fde46['model']['document']['on']('change:data',(_0x1756ab,_0x47fd1b)=>{if(!_0x47fd1b['isLocal']||_0x47fd1b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f75c1=_0x2fde46['model']['document']['differ']['getChanges']();if(0x0==_0x3f75c1['length'])return;const _0x5dbd35=[],_0xaa703=_0x3f75c1['filter'](_0x53515d=>'attribute'==_0x53515d['type']),_0x13a1de=_0x3f75c1['filter'](_0x3726d1=>'insert'==_0x3726d1['type']&&'$text'!=_0x3726d1['name']);for(const _0x40009c of _0xaa703)this['_isRegisteredAttribute'](_0x40009c['attributeKey'])&&_0x5dbd35['push']({'key':_0x40009c['attributeKey'],'newValue':_0x40009c['attributeNewValue'],'oldValue':_0x40009c['attributeOldValue'],'range':qt(_0x40009c['range'],_0x2fde46['model'])});for(const _0x29d52f of _0x13a1de){if('rename'!=_0x29d52f['action']&&'refresh'!=_0x29d52f['action'])continue;const _0x3d8445=zt(_0x29d52f['position']['nodeAfter'],_0x2fde46['model']),_0x27e1af=_0x29d52f['before'];'rename'==_0x29d52f['action']&&_0x5dbd35['push']({'key':u,'newValue':_0x29d52f['name'],'oldValue':_0x27e1af['name'],'range':_0x3d8445});for(const [_0x484aa4,_0x2a9c2d]of _0x27e1af['attributes']){if(!this['_isRegisteredAttribute'](_0x484aa4))continue;const _0x576bfe=_0x29d52f['attributes']['get'](_0x484aa4);_0x2a9c2d!==_0x576bfe&&_0x5dbd35['push']({'key':_0x484aa4,'newValue':_0x576bfe,'oldValue':_0x2a9c2d,'range':_0x3d8445});}for(const [_0x362d3a,_0x276930]of _0x29d52f['attributes'])this['_isRegisteredAttribute'](_0x362d3a)&&(_0x27e1af['attributes']['has'](_0x362d3a)||_0x5dbd35['push']({'key':_0x362d3a,'newValue':_0x276930,'oldValue':null,'range':_0x3d8445}));}0x0!=_0x5dbd35['length']&&_0x2fde46['model']['enqueueChange'](_0x47fd1b,_0x3d4a70=>{const _0x3602c3=_0x391cd8();for(const {range:_0x376874,key:_0x1b666f,oldValue:_0x1c19cb,newValue:_0x178e2a}of _0x5dbd35)this['markAttributeChange'](_0x376874,_0x1b666f,_0x1c19cb,_0x178e2a,{'groupId':_0x3602c3});this['_reduceExistingSuggestions'](_0x3d4a70,_0x5dbd35);});},{'priority':'lowest'}),_0x2fde46['model']['markers']['on']('update:suggestion',(_0x4de04b,_0x262752,_0x59cfd4)=>{if(null==_0x59cfd4){const {id:_0x3c4706}=this['_splitMarkerName'](_0x262752['name']),_0x28221f=this['_suggestions']['get'](_0x3c4706);_0x28221f&&_0x28221f['addMarkerName'](_0x262752['name']);}}),_0x2fde46['model']['document']['on']('change:data',()=>{const _0x47eda3=Array['from'](_0x2fde46['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2e5d32=>'suggestion'===this['_splitMarkerName'](_0x2e5d32['name'])['group']);if(0x0===_0x47eda3['length'])return;_0x47eda3['sort']((_0x5963a9,_0x2186df)=>{const _0x2e8c1a=_0x5963a9['data']['oldRange'],_0x376184=_0x2186df['data']['oldRange'];return null===_0x2e8c1a&&null===_0x376184?0x0:null===_0x2e8c1a&&null!==_0x376184?-0x1:null!==_0x2e8c1a&&null===_0x376184?0x1:_0x2e8c1a['start']['isBefore'](_0x376184['start'])?-0x1:0x1;});const _0x4af243=new Set(),_0x222e00=new Set();for(const {name:_0x312bd6,data:_0x3226d7}of _0x47eda3){const {id:_0x2ecb6e}=this['_splitMarkerName'](_0x312bd6);if(null===_0x3226d7['oldRange']){const _0x4b9ac9=this['_handleNewSuggestionMarker'](_0x312bd6);_0x222e00['add'](_0x4b9ac9);}else{const _0x891448=this['_suggestions']['get'](_0x2ecb6e);null!==_0x3226d7['newRange']||_0x891448['isInContent']?(_0x4af243['add'](_0x891448['head']),_0x222e00['add'](_0x891448)):this['_removeSuggestion'](_0x891448);}}_0x222e00['size']>0x0&&this['_refreshSuggestionsChain'](_0x222e00);for(const _0x2c3231 of _0x4af243)this['fire']('suggestionChanged',_0x2c3231);}),_0x2fde46['model']['on']('applyOperation',(_0x25cd71,_0x256bd8)=>{const _0x428e39=_0x256bd8[0x0];if(!this['_suggestions']['size'])return;if(!_0x428e39['isDocumentOperation'])return;if(_0x428e39['batch']['isUndo']||!_0x428e39['batch']['isLocal'])return;let _0xe1e895,_0x10c840;switch(_0x428e39['type']){case'insert':_0xe1e895=_0x2fde46['model']['createPositionAt'](_0x428e39['position']),_0x10c840=_0xe1e895['getShiftedBy'](_0x428e39['howMany']);break;case'split':_0xe1e895=_0x2fde46['model']['createPositionAt'](_0x428e39['splitPosition']),_0x10c840=_0x2fde46['model']['createPositionAt'](_0x428e39['moveTargetPosition']);break;case'move':_0xe1e895=_0x2fde46['model']['createPositionAt'](_0x428e39['targetPosition']),_0x10c840=_0xe1e895['getShiftedBy'](_0x428e39['howMany']);break;default:return;}const _0x470228=_0x2fde46['model']['createRange'](_0xe1e895,_0x10c840);_0x2fde46['model']['change'](()=>{for(const {suggestion:_0xeb686,meta:_0xe8aacc}of this['_findSuggestions'](_0x470228)){if(_0xeb686['isMultiRange'])continue;if('formatInline'==_0xeb686['type'])continue;const _0xcf7cd0=this['_getAttributeKey'](_0xeb686);if(_0xcf7cd0&&this['_isBlockAttribute'](_0xcf7cd0)&&'split'!=_0x428e39['type'])continue;const _0x43bc9f=_0xeb686['data']&&_0xeb686['data']['multipleBlocks'];('formatBlock'!=_0xeb686['type']||'split'==_0x428e39['type']&&!_0x43bc9f)&&(_0xe8aacc['containsRangeInObject']||'insertion'==_0xeb686['type']&&_0xe8aacc['isOwn']||_0xeb686['getFirstRange']()['containsRange'](_0x470228)&&this['_breakSuggestionMarker'](_0xeb686,_0xe1e895,_0x10c840));}});},{'priority':'lowest'}),_0x2fde46['model']['on']('deleteContent',(_0x15844b,_0x4c81bc)=>{const _0x3c67ef=_0x4c81bc[0x0],_0x5c3d24=_0x4c81bc[0x1];if(_0x5c3d24&&_0x5c3d24['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3c67ef['isCollapsed'])return;const _0x46c913=_0x2fde46['model']['schema'],{start:_0x32970b,end:_0x311305}=_0x3c67ef['getFirstRange'](),_0x228716=_0x32970b['nodeAfter']&&_0x46c913['isLimit'](_0x32970b['nodeAfter'])?null:_0x46c913['getNearestSelectionRange'](_0x32970b,'forward'),_0x1878ff=_0x311305['nodeBefore']&&_0x46c913['isLimit'](_0x311305['nodeBefore'])?null:_0x46c913['getNearestSelectionRange'](_0x311305,'backward'),_0x4d982b=_0x2fde46['model']['createRange'](_0x228716?_0x228716['start']:_0x32970b,_0x1878ff?_0x1878ff['end']:_0x311305);_0x2fde46['model']['change'](_0x29795e=>{this['markDeletion'](_0x4d982b);const _0x3173eb=_0x2fde46['model']['schema']['getNearestSelectionRange'](_0x4d982b['start']);_0x3c67ef['is']('documentSelection')?_0x29795e['setSelection'](_0x3173eb):_0x3c67ef['setTo'](_0x3173eb);}),_0x15844b['stop']();},{'priority':_0x39d342['normal']+0xa}),_0x2fde46['model']['on']('insertContent',(_0x11ffd2,_0x53e42)=>{const _0xb8c581=_0x53e42[_0x53e42['length']-0x1];_0xb8c581&&_0xb8c581['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2fde46['model']['change'](()=>{let _0xb117ae=_0x2fde46['model']['insertContent'](_0x53e42[0x0],_0x53e42[0x1],_0x53e42[0x2],{'forceDefaultExecution':!0x0});if(!_0xb117ae)return;_0x11ffd2['return']=_0xb117ae['clone']();const _0x47905b=_0xb117ae['end']['nodeBefore'],_0xb69e3=_0x2fde46['model']['schema'];_0x47905b&&_0xb69e3['isBlock'](_0x47905b)&&!_0xb69e3['isObject'](_0x47905b)&&(_0xb117ae=_0x2fde46['model']['createRange'](_0xb117ae['start'],_0x2fde46['model']['createPositionAt'](_0x47905b,'end'))),this['markInsertion'](_0xb117ae);}),_0x11ffd2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2337fd=new O(_0x2fde46,this['_suggestions']);_0x2fde46['commands']['add']('acceptSuggestion',_0x2337fd),this['enableCommand']('acceptSuggestion');const _0x4ed89c=new R(_0x2fde46,this['_suggestions']);_0x2fde46['commands']['add']('discardSuggestion',_0x4ed89c),this['enableCommand']('discardSuggestion'),_0x2fde46['commands']['add']('acceptAllSuggestions',new x(_0x2fde46,_0x2337fd,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2fde46['commands']['add']('discardAllSuggestions',new x(_0x2fde46,_0x4ed89c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2fde46['commands']['add']('acceptSelectedSuggestions',new E(_0x2fde46,_0x2337fd,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2fde46['commands']['add']('discardSelectedSuggestions',new E(_0x2fde46,_0x4ed89c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15e95e=_0x2fde46['plugins']['get']('CommentsRepository');this['listenTo'](_0x15e95e,'addComment',(_0x4ba643,{threadId:_0x4852d2})=>{const _0x570f40=this['_suggestions']['get'](_0x4852d2);_0x570f40&&_0x570f40['commentThread']&&0x1===_0x570f40['commentThread']['length']&&this['_updateSuggestionData'](_0x4852d2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15e95e,'removeComment',(_0x15486d,{threadId:_0x28c935})=>{const _0x296d17=this['_suggestions']['get'](_0x28c935);_0x296d17&&_0x296d17['commentThread']&&!_0x296d17['commentThread']['length']&&this['_updateSuggestionData'](_0x28c935,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1f42f2){const _0x5ec524=_0x1d3e65([0x38,0x47,0x4b,0x79,0x5a,0x37,0x61,0x69,0x49,0x33,0x56,0x57,0x58,0x45,0x51,0x4e,0x7a,0x74,0x66,0x36,0x6a,0x44,0x48,0x6c,0x4a,0x6f,0x53,0x73,0x78,0x50,0x68,0x62,0x4c,0x6d,0x77,0x41,0x64,0x42,0x76,0x35,0x52,0x6b,0x6e,0x46,0x31,0x32,0x34,0x55,0x59,0x54,0x75,0x43,0x67,0x72,0x30,0x4f,0x71,0x63,0x70,0x39,0x4d,0x65]),_0x487fda=0x47228948,_0x58b234=0x4725ec00^_0x487fda,_0x5d4302=window[_0x1d3e65([0x44,0x61,0x74,0x65])][_0x1d3e65([0x6e,0x6f,0x77])](),_0x42bded=_0x1f42f2[_0x1d3e65([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15fd68=new window[(_0x1d3e65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f4011=>{_0x42bded[_0x1d3e65([0x6f,0x6e,0x63,0x65])](_0x1d3e65([0x72,0x65,0x61,0x64,0x79]),_0x1f4011);}),_0x3d982c={[_0x1d3e65([0x6b,0x74,0x79])]:_0x1d3e65([0x45,0x43]),[_0x1d3e65([0x75,0x73,0x65])]:_0x1d3e65([0x73,0x69,0x67]),[_0x1d3e65([0x63,0x72,0x76])]:_0x1d3e65([0x50,0x2d,0x32,0x35,0x36]),[_0x1d3e65([0x78])]:_0x1d3e65([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]),[_0x1d3e65([0x79])]:_0x1d3e65([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]),[_0x1d3e65([0x61,0x6c,0x67])]:_0x1d3e65([0x45,0x53,0x32,0x35,0x36])},_0x36220c=_0x42bded[_0x1d3e65([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d3e65([0x67,0x65,0x74])](_0x1d3e65([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a40cc(){let _0x5aaa2b,_0x47f90b=null,_0x1d05bd=null;try{if(_0x36220c==_0x1d3e65([0x47,0x50,0x4c]))return _0x1d3e65([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5aaa2b=_0x52fe81(),!_0x5aaa2b)return _0x1d3e65([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5aaa2b[_0x1d3e65([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d05bd=_0x18acd0(_0x5aaa2b[_0x1d3e65([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5aaa2b[_0x1d3e65([0x6a,0x74,0x69])])),await _0x1b4599()?_0xb01a91()?_0xa0b840()?_0x1d3e65([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57ce20()?(_0x5aaa2b[_0x1d3e65([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d3e65([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47f90b=_0x37a614(_0x1d3e65([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5aaa2b[_0x1d3e65([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d3e65([0x74,0x72,0x69,0x61,0x6c])&&(_0x47f90b=_0x37a614(_0x1d3e65([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42c654()):_0x1d3e65([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d3e65([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d3e65([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ac48e){return _0x1d3e65([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa0b840(){const _0x1ff436=[_0x1d3e65([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d3e65([0x74,0x72,0x69,0x61,0x6c])][_0x1d3e65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aaa2b[_0x1d3e65([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d4302/0x3e8:0xe10*_0x58b234;return _0x5aaa2b[_0x1d3e65([0x65,0x78,0x70])]<_0x1ff436;}function _0xb01a91(){const _0x263e2b=_0x5aaa2b[_0x1d3e65([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x263e2b)return!0x1;if(_0x263e2b[_0x1d3e65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d3e65([0x2a])))return!0x0;if(_0x263e2b[_0x1d3e65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d3e65([0x54,0x43])))return!0x0;if(_0x263e2b[_0x1d3e65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d3e65([0x52,0x54,0x43]))){if(_0x5d3f07())return!0x0;if(_0x2b24c3()||_0x4ba523())return!0x0;}return!0x1;}function _0x57ce20(){const _0x551636=_0x5aaa2b[_0x1d3e65([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x551636||0x0==_0x551636[_0x1d3e65([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x900e98}=new URL(window[_0x1d3e65([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x551636[_0x1d3e65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x900e98))return!0x0;const _0x3a47e5=_0x900e98[_0x1d3e65([0x73,0x70,0x6c,0x69,0x74])](_0x1d3e65([0x2e]));return _0x551636[_0x1d3e65([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x170c7e=>_0x170c7e[_0x1d3e65([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d3e65([0x2a])))[_0x1d3e65([0x6d,0x61,0x70])](_0x21572a=>_0x21572a[_0x1d3e65([0x73,0x70,0x6c,0x69,0x74])](_0x1d3e65([0x2e])))[_0x1d3e65([0x73,0x6f,0x6d,0x65])](_0x40d853=>_0x3a47e5[_0x1d3e65([0x65,0x76,0x65,0x72,0x79])]((_0x5718a2,_0x299be3)=>_0x40d853[_0x299be3]===_0x5718a2||_0x40d853[_0x299be3]===_0x1d3e65([0x2a])));}function _0x42c654(){return _0x47f90b&&_0x1d05bd?new window[(_0x1d3e65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14ca36,_0x30ff3f)=>{_0x47f90b[_0x1d3e65([0x74,0x68,0x65,0x6e])](_0x14ca36,_0x30ff3f),_0x1d05bd[_0x1d3e65([0x74,0x68,0x65,0x6e])](_0x4cb749=>{_0x4cb749!=_0x1d3e65([0x56,0x61,0x6c,0x69,0x64])&&_0x14ca36(_0x4cb749);},_0x30ff3f);}):_0x47f90b||_0x1d05bd||_0x1d3e65([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18acd0(_0x5c0367,_0xfe10a2){return new window[(_0x1d3e65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b5180=>{if(_0x4ae1b1())return _0x1b5180(_0x1d3e65([0x56,0x61,0x6c,0x69,0x64]));_0x295677(),_0x42bded[_0x1d3e65([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d3e65([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b4e4d=!0x1;const _0x53ca02=_0x391cd8();function _0x13d5f6(_0x4bd9bc){return!!_0x4bd9bc&&(typeof _0x4bd9bc===_0x1d3e65([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bd9bc===_0x1d3e65([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bd9bc[_0x1d3e65([0x74,0x68,0x65,0x6e])]===_0x1d3e65([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bd9bc[_0x1d3e65([0x63,0x61,0x74,0x63,0x68])]===_0x1d3e65([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1222f6(_0x35f767){_0x36f5e3(_0x35f767)[_0x1d3e65([0x74,0x68,0x65,0x6e])](_0x327e3d=>{if(!_0x327e3d||_0x327e3d[_0x1d3e65([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d3e65([0x6f,0x6b]))return _0x1d3e65([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x475d79(_0xd9adb1(_0x53ca02+_0xfe10a2))!=_0x327e3d[_0x1d3e65([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d3e65([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d3e65([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d3e65([0x74,0x68,0x65,0x6e])](_0x343216=>(_0x172cb6(),_0x343216),()=>{const _0x542e62=_0x65564f();return null==_0x542e62?(_0x172cb6(),_0x1d3e65([0x56,0x61,0x6c,0x69,0x64])):_0x1d3e65(_0x5d4302-_0x542e62>(0x632e0d48^_0x487fda)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d3e65([0x74,0x68,0x65,0x6e])](_0x1b5180)[_0x1d3e65([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b5180(_0x1d3e65([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20eb45=0x471467c8^_0x487fda;function _0x172cb6(){const _0x39ce8b=_0x1d3e65([0x6c,0x6c,0x63,0x74,0x2d])+_0x475d79(_0xd9adb1(_0x5c0367)),_0x1737e7=_0x401deb(_0x475d79(window[_0x1d3e65([0x4d,0x61,0x74,0x68])][_0x1d3e65([0x63,0x65,0x69,0x6c])](_0x5d4302/_0x20eb45)));window[_0x1d3e65([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d3e65([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39ce8b,_0x1737e7);}function _0x65564f(){const _0x7cfdf6=_0x1d3e65([0x6c,0x6c,0x63,0x74,0x2d])+_0x475d79(_0xd9adb1(_0x5c0367)),_0x286213=window[_0x1d3e65([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d3e65([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7cfdf6);return _0x286213?window[_0x1d3e65([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x401deb(_0x286213),0x10)*_0x20eb45:null;}function _0x36f5e3(_0x6334f5){return new window[(_0x1d3e65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3563bb,_0x38cf2c)=>{_0x6334f5[_0x1d3e65([0x74,0x68,0x65,0x6e])](_0x3563bb,_0x38cf2c),window[_0x1d3e65([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38cf2c,0x47235d88^_0x487fda);});}}_0x42bded[_0x1d3e65([0x6f,0x6e])](_0x1d3e65([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f103b,_0x1afd42)=>{if(_0x1afd42[0x0]!=_0x5c0367)return _0x1b5180(_0x1d3e65([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1afd42[0x1]={..._0x1afd42[0x1],[_0x1d3e65([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53ca02};},{[_0x1d3e65([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d3e65([0x68,0x69,0x67,0x68])}),_0x42bded[_0x1d3e65([0x6f,0x6e])](_0x1d3e65([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x21918d=>{_0x13d5f6(_0x21918d[_0x1d3e65([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b4e4d=!0x0,_0x1222f6(_0x21918d[_0x1d3e65([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d3e65([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d3e65([0x6c,0x6f,0x77])}),_0x15fd68[_0x1d3e65([0x74,0x68,0x65,0x6e])](()=>{_0x5b4e4d||_0x1b5180(_0x1d3e65([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ae1b1(){return _0x42bded[_0x1d3e65([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d3e65([0x76,0x69,0x65,0x77])][_0x1d3e65([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d3e65([0x61,0x75,0x74,0x6f]);}function _0x295677(){_0x42bded[_0x1d3e65([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d3e65([0x76,0x69,0x65,0x77])][_0x1d3e65([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d3e65([0x61,0x75,0x74,0x6f]);}}function _0x37a614(_0x51bad8){const _0x49b963=[new window[(_0x1d3e65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x486d8f=>setTimeout(_0x486d8f,0x472bb784^_0x487fda)),_0x15fd68[_0x1d3e65([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d3e65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39672a=>{let _0x32ab9a=0x0;_0x42bded[_0x1d3e65([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d3e65([0x6f,0x6e])](_0x1d3e65([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19d489,_0x2f59d5)=>{_0x2f59d5[0x0][_0x1d3e65([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x32ab9a++,_0x32ab9a==(0x472288b0^_0x487fda)&&(_0x39672a(),_0x19d489[_0x1d3e65([0x6f,0x66,0x66])]());});}))];return window[_0x1d3e65([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d3e65([0x72,0x61,0x63,0x65])](_0x49b963)[_0x1d3e65([0x74,0x68,0x65,0x6e])](()=>_0x51bad8);}async function _0x3fe433(){await _0x15fd68,_0x42bded[_0x1d3e65([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d3e65([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x225dcb,_0x42bded[_0x1d3e65([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d3e65([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x225dcb,_0x42bded[_0x1d3e65([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d3e65([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5d3f07(){return _0x3c2674(_0x1d3e65([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x57aff3(_0x1d3e65([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d3e65([0x73,0x74,0x61,0x74,0x65])]==_0x1d3e65([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2b24c3(){return _0x3c2674(_0x1d3e65([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 _0x4ba523(){return _0x3c2674(_0x1d3e65([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x29d054(_0x71a4b8){const _0x1b2358=_0x29e679();_0x42bded[_0x1b2358]=_0x1d3e65([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x71a4b8,_0x71a4b8!=_0x1d3e65([0x56,0x61,0x6c,0x69,0x64])&&_0x3fe433();}function _0x29e679(){const _0x5708da=window[_0x1d3e65([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d3e65([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d3e65([0x6e,0x6f,0x77])]())[_0x1d3e65([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d3e65([0x2e]),'');let _0x4067cc=_0x1d3e65([0x47]);for(let _0x57a244=0x0;_0x57a244<_0x5708da[_0x1d3e65([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57a244+=0x2){let _0x523d1f=window[_0x1d3e65([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5708da[_0x1d3e65([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57a244,_0x57a244+0x2));_0x523d1f>=_0x5ec524[_0x1d3e65([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x523d1f-=_0x5ec524[_0x1d3e65([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4067cc+=_0x5ec524[_0x523d1f];}return _0x4067cc;}function _0x52fe81(){const _0x1fe955=_0x36220c[_0x1d3e65([0x73,0x70,0x6c,0x69,0x74])](_0x1d3e65([0x2e]));if(0x3!=_0x1fe955[_0x1d3e65([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3909bd(_0x1fe955[0x1]);function _0x3909bd(_0x3353d0){const _0x160617=_0x27c712(_0x3353d0);return _0x160617&&_0x29cb45()?_0x160617:null;function _0x29cb45(){const _0x1e0b60=_0x160617[_0x1d3e65([0x6a,0x74,0x69])],_0x415aea=window[_0x1d3e65([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e0b60[_0x1d3e65([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e0b60[_0x1d3e65([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a9fa9={..._0x160617,[_0x1d3e65([0x6a,0x74,0x69])]:_0x1e0b60[_0x1d3e65([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e0b60[_0x1d3e65([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a9fa9[_0x1d3e65([0x76,0x63])],_0xd9adb1(_0x4a9fa9)==_0x415aea;}}}async function _0x1b4599(){let _0x491ca5=!0x0;try{const _0x5dd832=_0x36220c[_0x1d3e65([0x73,0x70,0x6c,0x69,0x74])](_0x1d3e65([0x2e])),[_0x349eec,_0x335f1f,_0x4b5927]=_0x5dd832;return _0x19b0cc(_0x349eec),await _0x57ec71(_0x349eec,_0x335f1f,_0x4b5927),_0x491ca5;}catch(_0x2589e2){return!0x1;}function _0x19b0cc(_0x258615){const _0x55c5c1=_0x27c712(_0x258615);_0x55c5c1&&_0x55c5c1[_0x1d3e65([0x61,0x6c,0x67])]==_0x1d3e65([0x45,0x53,0x32,0x35,0x36])||(_0x491ca5=!0x1);}async function _0x57ec71(_0x5cec16,_0x4f6f29,_0x371d8d){const _0x148883=window[_0x1d3e65([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d3e65([0x66,0x72,0x6f,0x6d])](_0x327f2b(_0x371d8d),_0x5a535d=>_0x5a535d[_0x1d3e65([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1bade8=new window[(_0x1d3e65([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d3e65([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5cec16+_0x1d3e65([0x2e])+_0x4f6f29),_0x44467f=window[_0x1d3e65([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d3e65([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44467f)return;const _0x573e4c=await _0x44467f[_0x1d3e65([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d3e65([0x6a,0x77,0x6b]),_0x3d982c,{[_0x1d3e65([0x6e,0x61,0x6d,0x65])]:_0x1d3e65([0x45,0x43,0x44,0x53,0x41]),[_0x1d3e65([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d3e65([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d3e65([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44467f[_0x1d3e65([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d3e65([0x6e,0x61,0x6d,0x65])]:_0x1d3e65([0x45,0x43,0x44,0x53,0x41]),[_0x1d3e65([0x68,0x61,0x73,0x68])]:{[_0x1d3e65([0x6e,0x61,0x6d,0x65])]:_0x1d3e65([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x573e4c,_0x148883,_0x1bade8)||(_0x491ca5=!0x1);}}function _0x27c712(_0x5a4b35){return _0x5a4b35[_0x1d3e65([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d3e65([0x65,0x79]))?JSON[_0x1d3e65([0x70,0x61,0x72,0x73,0x65])](_0x327f2b(_0x5a4b35)):null;}function _0x327f2b(_0x21e3cd){return window[_0x1d3e65([0x61,0x74,0x6f,0x62])](_0x21e3cd[_0x1d3e65([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d3e65([0x2b]))[_0x1d3e65([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d3e65([0x2f])));}function _0xd9adb1(_0x2d6ebf){let _0x3ae2a4=0x1505;function _0x5be21a(_0x3db588){for(let _0x3ef76d=0x0;_0x3ef76d<_0x3db588[_0x1d3e65([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ef76d++){const _0x5b2445=_0x3db588[_0x1d3e65([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ef76d);_0x3ae2a4=(_0x3ae2a4<<0x5)+_0x3ae2a4+_0x5b2445,_0x3ae2a4&=_0x3ae2a4;}}function _0x5cf50a(_0x77eb07){Array[_0x1d3e65([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x77eb07)?_0x77eb07[_0x1d3e65([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5cf50a):_0x77eb07&&typeof _0x77eb07==_0x1d3e65([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d3e65([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x77eb07)[_0x1d3e65([0x73,0x6f,0x72,0x74])]()[_0x1d3e65([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42cab0,_0x1ffa71])=>{_0x5be21a(_0x42cab0),_0x5cf50a(_0x1ffa71);}):_0x5be21a(window[_0x1d3e65([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x77eb07));}return _0x5cf50a(_0x2d6ebf),_0x3ae2a4>>>0x0;}function _0x475d79(_0x50128e){return _0x50128e[_0x1d3e65([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d3e65([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d3e65([0x30]));}function _0x401deb(_0x487159){return _0x487159[_0x1d3e65([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d3e65([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d3e65([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c2674(_0x2db92a){return _0x42bded[_0x1d3e65([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d3e65([0x68,0x61,0x73])](_0x2db92a);}function _0x57aff3(_0x1f12c6){return _0x42bded[_0x1d3e65([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d3e65([0x67,0x65,0x74])](_0x1f12c6);}function _0x225dcb(){}function _0x1d3e65(_0x5ed19b){return _0x5ed19b['map'](_0x34a266=>String['fromCharCode'](_0x34a266))['join']('');}_0x29d054(await _0x3a40cc());}(this);}set['adapter'](_0x44297e){if(this['_adapter'])throw new _0x214f9c('track-changes-adapter-already-set',this);this['_adapter']=_0x44297e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x18a8e5=!0x1,toJSON:_0x5daf9d=!0x1}={}){const _0x5cf4f4=[];for(const _0x370dee of this['_suggestions']['values']())_0x18a8e5&&!_0x370dee['isInContent']||_0x5cf4f4['push'](_0x370dee);return _0x5daf9d?_0x5cf4f4['map'](_0x386d10=>_0x386d10['toJSON']()):_0x5cf4f4;}['getSuggestion'](_0x40419c){const _0x424842=this['_suggestions']['get'](_0x40419c);if(!_0x424842)throw new _0x214f9c('track-changes-suggestion-not-found',this);return _0x424842;}['hasSuggestion'](_0x3af7b9){return this['_suggestions']['has'](_0x3af7b9);}['addSuggestionData'](_0x221c9b){const {authorId:_0x4698c4,id:_0x2876a8,attributes:_0x1838af}=_0x221c9b,[_0x34d317,_0x1d2634]=_0x221c9b['type']['split'](':'),_0x44aa7e=this['_suggestions']['get'](_0x2876a8)||this['_createSuggestion'](_0x34d317,_0x1d2634,_0x2876a8,_0x4698c4,_0x1838af);if(this['_addThreadToSuggestion'](_0x44aa7e),this['_checkSuggestionCorrectness'](_0x44aa7e,_0x34d317,_0x1d2634||null,_0x4698c4),_0x44aa7e['createdAt']=_0x221c9b['createdAt'],_0x44aa7e['_isDataLoaded']=!0x0,_0x1838af&&_0x1838af['@external']){const _0x550305=_0x1838af['@external'],_0x1eb3e8=this['_getExternalAuthor'](_0x550305['authorName']);_0x44aa7e['authoredAt']=_0x550305['createdAt'],_0x44aa7e['author']=_0x1eb3e8,_0x44aa7e['isExternal']=!0x0;}else _0x44aa7e['authoredAt']=_0x221c9b['createdAt'];switch(_0x221c9b['data']&&(_0x44aa7e['data']=_0x221c9b['data']),_0x221c9b['attributes']&&(_0x44aa7e['attributes']=_0x221c9b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x44aa7e['_saved']=!0x0),this['_suggestionState']['get'](_0x44aa7e)){case'notReady':this['_suggestionState']['set'](_0x44aa7e,'dataReady');break;case'markerReady':_0x44aa7e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x44aa7e])),this['_refreshSuggestionsChain'](new Set([_0x44aa7e])),this['_suggestionState']['set'](_0x44aa7e,'ready'),this['fire']('suggestionLoaded',_0x44aa7e)):this['_suggestionState']['set'](_0x44aa7e,'removed');}return _0x44aa7e;}['acceptSuggestion'](_0x57586c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3abde7 of _0x57586c['getAllAdjacentSuggestions']())_0x3abde7['accept']();});});}['discardSuggestion'](_0x9042fe){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10e766 of _0x9042fe['getAllAdjacentSuggestions']())_0x10e766['discard']();});});}['enableCommand'](_0x263684,_0x446c58){const _0x4bfa53=this['editor']['commands']['get'](_0x263684);if(!_0x4bfa53)throw new _0x214f9c('track-changes-command-not-found',this,{'commandName':_0x263684});if(this['_enabledCommands']['has'](_0x4bfa53))throw new _0x214f9c('track-changes-enable-command-twice',this,{'commandName':_0x263684});this['_enabledCommands']['add'](_0x4bfa53),_0x446c58&&_0x4bfa53['on']('execute',(_0x3e12c6,_0x33ad06)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x33ad06['length']>0x0&&_0x33ad06[_0x33ad06['length']-0x1]&&_0x33ad06[_0x33ad06['length']-0x1]['forceDefaultExecution']?_0x33ad06['pop']():(_0x3e12c6['return']=_0x446c58((..._0x29b9aa)=>_0x4bfa53['execute'](..._0x29b9aa,{'forceDefaultExecution':!0x0}),..._0x33ad06),_0x3e12c6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x152983){let _0x337e89,_0xf0d5b2;const _0x33f497=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x337e89=_0x152983();}catch(_0x2bd63b){_0xf0d5b2=_0x2bd63b;}return _0x33f497||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xf0d5b2&&_0x214f9c['rethrowUnexpectedError'](_0xf0d5b2,this),_0x337e89;}['markInsertion'](_0x583f0a,_0x1de2ea=null,_0x55bb7a={}){if(_0x583f0a['isCollapsed'])return null;const _0x274c81=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x155453,meta:_0x4d683d}of this['_findSuggestions'](_0x583f0a,'insertion'))if(_0x4d683d['isOwn']){if(!_0x4d683d['isNextTo']){if(_0x4d683d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x155453,_0x55bb7a))continue;return _0x155453;}if(Xt(_0x155453,_0x55bb7a))return _0x155453;this['_breakSuggestionMarker'](_0x155453,_0x583f0a['start'],_0x583f0a['end']);break;}if(_0x1de2ea==_0x155453['subType']&&Xt(_0x155453,_0x55bb7a)){const _0x2d137d=_0x155453['getFirstRange']();return _0x2d137d['start']['isEqual'](_0x583f0a['end'])?this['_setSuggestionRange'](_0x155453,this['_model']['createRange'](_0x583f0a['start'],_0x2d137d['end'])):this['_setSuggestionRange'](_0x155453,this['_model']['createRange'](_0x2d137d['start'],_0x583f0a['end'])),_0x155453;}}const _0x4863e6=_0x391cd8(),_0x545f20=_0x274c81['id'],_0x573e30=_0x1de2ea?'insertion:'+_0x1de2ea:'insertion',_0x3d819c=this['_setSuggestionData']({'id':_0x4863e6,'type':_0x573e30,'createdAt':new Date(),'authorId':_0x545f20,'attributes':_0x55bb7a});return this['_addSuggestionMarker'](_0x573e30,_0x4863e6,_0x545f20,_0x583f0a),_0x3d819c;}['markMultiRangeInsertion'](_0x4ef963,_0x243477='multi',_0xb55d95={}){const _0x343ffb=this['editor']['plugins']['get']('Users')['me'],_0x336e28=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x243477,'join');for(const _0x350011 of this['getSuggestions']())if(_0x350011['author']['id']==_0x343ffb['id']&&'insertion'==_0x350011['type']&&_0x350011['subType']==_0x243477&&Xt(_0x350011,_0xb55d95)&&(_0x336e28(_0x350011['getRanges'](),_0x4ef963)||_0x336e28(_0x4ef963,_0x350011['getRanges']()))){for(const _0x3b72bc of _0x4ef963)_0x350011['addRange'](_0x3b72bc);return _0x350011;}for(const {suggestion:_0x2c0cb6,meta:_0x3eebd1}of this['_findSuggestions'](_0x4ef963,'insertion')){if(!_0x3eebd1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3eebd1['containsRangeInObject'])continue;if(!Xt(_0x2c0cb6,_0xb55d95))continue;let _0xd156f5=!0x0;for(const _0x4132e4 of _0x2c0cb6['getRanges']())for(const _0x5e5a9c of _0x4ef963)if(!_0x4132e4['containsRange'](_0x5e5a9c)){_0xd156f5=!0x1;break;}if(_0xd156f5)return _0x2c0cb6;}const _0x13feab=_0x391cd8(),_0x18f6ec=_0x343ffb['id'],_0x1dcc80='insertion:'+_0x243477,_0x8acd1d=this['_setSuggestionData']({'id':_0x13feab,'type':_0x1dcc80,'createdAt':new Date(),'authorId':_0x18f6ec,'attributes':_0xb55d95});for(const _0x10cd63 of _0x4ef963)this['_addSuggestionMarker'](_0x1dcc80,_0x13feab,_0x18f6ec,_0x10cd63,o['getMultiRangeId']());return _0x8acd1d;}['markInlineFormat'](_0x235b47,_0x35061b,_0x5b3b9f=null,_0x184724={}){if(_0x5b3b9f=_0x5b3b9f||Kt(_0x35061b),_0x235b47['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3dd4b8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b3b9f,'accept');return this['forceDefaultExecution'](()=>_0x3dd4b8([_0x235b47],_0x35061b,_0x184724)),null;}const _0xbf001e=this['editor']['plugins']['get']('Users')['me'],_0x180f6c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x177de9,meta:_0x382c61}of this['_findSuggestions'](_0x235b47,'insertion'))_0x382c61['isOwn']&&!_0x382c61['isInsideObject']&&_0x180f6c['push'](..._0x177de9['getRanges']());}const _0x2b839b=function(_0x1878de,_0x549fed){const _0x54f2e2=[];for(const _0x58e264 of _0x549fed){const _0x2e6564=_0x1878de['getIntersection'](_0x58e264);_0x2e6564&&_0x54f2e2['push'](_0x2e6564);}return _0x54f2e2;}(_0x235b47,_0x180f6c),_0x4b26d6=function(_0x245db2,_0x400d3f){const _0x25d7d2=[_0x245db2];for(const _0x5ee47b of _0x400d3f){let _0x1e1f06=0x0;for(;_0x1e1f06<_0x25d7d2['length'];){const _0x22bef8=_0x25d7d2[_0x1e1f06]['getDifference'](_0x5ee47b);_0x25d7d2['splice'](_0x1e1f06,0x1,..._0x22bef8),_0x1e1f06+=_0x22bef8['length'];}}return _0x25d7d2;}(_0x235b47,_0x180f6c);_0x2b839b['length']&&this['_model']['change'](()=>{for(const _0x2985ff of _0x2b839b){const _0x3d4726=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b3b9f,'accept');this['forceDefaultExecution'](()=>_0x3d4726([_0x2985ff],_0x35061b,_0x184724));}});for(const _0x218fea of _0x4b26d6){let _0xc144ba=null,_0x385ae3=_0x218fea['start'],_0x314731=_0x218fea['end'];for(const {suggestion:_0x1c3ce6,meta:_0x44f91f}of this['_findSuggestions'](_0x218fea,'formatInline')){if(!_0x44f91f['isOwn'])continue;if(_0x1c3ce6['subType']!=_0x5b3b9f)continue;if(!Xt(_0x1c3ce6,_0x184724))continue;const _0x2dd67e=_0x1c3ce6['getFirstRange']();if(_0x2dd67e['containsRange'](_0x218fea,!0x0))return null;_0x385ae3=_0x385ae3['isBefore'](_0x2dd67e['start'])?_0x385ae3:_0x2dd67e['start'],_0x314731=_0x314731['isAfter'](_0x2dd67e['end'])?_0x314731:_0x2dd67e['end'],_0xc144ba?_0x2dd67e['start']['isBefore'](_0xc144ba['getFirstRange']()['start'])?(_0xc144ba['removeMarkers'](),_0xc144ba=_0x1c3ce6):_0x1c3ce6['removeMarkers']():_0xc144ba=_0x1c3ce6;}const _0x31ac9e=this['_model']['createRange'](_0x385ae3,_0x314731);if(_0xc144ba)this['_setSuggestionRange'](_0xc144ba,_0x31ac9e);else{const _0x98d70=_0x391cd8(),_0x148a22=_0xbf001e['id'];this['_setSuggestionData']({'id':_0x98d70,'type':'formatInline:'+_0x5b3b9f,'data':_0x35061b,'createdAt':new Date(),'authorId':_0x148a22,'attributes':_0x184724}),this['_addSuggestionMarker']('formatInline:'+_0x5b3b9f,_0x98d70,_0x148a22,_0x31ac9e);}}return null;}['markBlockFormat'](_0x1808b1,_0x214c40,_0x1d15c8=[],_0x37f0a1=null,_0x5c21fd={}){_0x214c40['formatGroupId']||(_0x214c40['formatGroupId']=_0x214c40['commandName']),_0x214c40['multipleBlocks']=_0x1808b1['is']('range'),_0x37f0a1=_0x37f0a1||Kt(_0x214c40);const _0x571330=_0x1d15c8['map'](_0x47aace=>zt(_0x47aace,this['_model'])),_0x7cb86a=_0x1808b1['is']('range')?_0x1808b1:zt(_0x1808b1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1e1dea=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37f0a1,'accept');return this['forceDefaultExecution'](()=>_0x1e1dea([_0x7cb86a],_0x214c40,_0x5c21fd)),null;}_0x571330['push'](_0x7cb86a);let _0x32f52f=!0x0;for(const _0x114f84 of _0x571330)if(!this['_rangeIsInLocalUserInsertion'](_0x114f84)){_0x32f52f=!0x1;break;}if(_0x32f52f&&'always'!==this['_trackFormatChanges']){const _0x598b67=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37f0a1,'accept');return this['forceDefaultExecution'](()=>_0x598b67([_0x7cb86a],_0x214c40,_0x5c21fd)),null;}let _0x52a503=null,_0xb46b50=_0x7cb86a['start'],_0x119e6b=_0x7cb86a['end'];for(const {suggestion:_0x5557a1,meta:_0x2761e1}of this['_findSuggestions'](_0x7cb86a,'formatBlock')){if(!_0x2761e1['isOwn'])continue;if(_0x2761e1['isNextTo']||_0x2761e1['containsRangeInObject']||_0x2761e1['isInsideObject'])continue;if(_0x5557a1['data']['formatGroupId']!=_0x214c40['formatGroupId'])continue;if(!Xt(_0x5557a1,_0x5c21fd))continue;const _0x399d40=_0x5557a1['getFirstRange']();if(_0x5557a1['subType']==_0x37f0a1){if(_0x399d40['containsRange'](_0x7cb86a,!0x0))return null;_0xb46b50=_0xb46b50['isBefore'](_0x399d40['start'])?_0xb46b50:_0x399d40['start'],_0x119e6b=_0x119e6b['isAfter'](_0x399d40['end'])?_0x119e6b:_0x399d40['end'],_0x52a503?_0x399d40['start']['isBefore'](_0x52a503['getFirstRange']()['start'])?(_0x52a503['removeMarkers'](),_0x52a503=_0x5557a1):_0x5557a1['removeMarkers']():_0x52a503=_0x5557a1;}else{const _0x43d434=_0x7cb86a['getIntersection'](_0x399d40);this['_cutOutSuggestionMarker'](_0x5557a1,_0x43d434);}}const _0x2d6fa4=this['editor']['plugins']['get']('Users')['me'],_0x396e5f=_0x391cd8(),_0x153a4e=_0x2d6fa4['id'];if(_0x52a503)return this['_setSuggestionRange'](_0x52a503,this['_model']['createRange'](_0xb46b50,_0x119e6b)),_0x52a503;{const _0x166770=this['_setSuggestionData']({'id':_0x396e5f,'type':'formatBlock:'+_0x37f0a1,'data':_0x214c40,'createdAt':new Date(),'authorId':_0x153a4e,'attributes':_0x5c21fd});return this['_addSuggestionMarker']('formatBlock:'+_0x37f0a1,_0x396e5f,_0x153a4e,this['_model']['createRange'](_0xb46b50,_0x119e6b)),_0x166770;}}['markMultiRangeBlockFormat'](_0x3c105c,_0x353350,_0x3b13a4=[],_0x3c884e=null,_0x4f95a4={}){_0x353350['formatGroupId']||(_0x353350['formatGroupId']=_0x353350['commandName']);const _0x84dde9=_0x3c105c[0x0];_0x353350['multipleBlocks']=_0x84dde9['is']('range'),_0x3c884e=_0x3c884e||Kt(_0x353350);const _0x56de92=_0x3b13a4['map'](_0x42a823=>zt(_0x42a823,this['_model'])),_0x561a75=_0x84dde9['is']('range')?_0x3c105c:_0x3c105c['map'](_0x333635=>zt(_0x333635,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4d4063=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c884e,'accept');return this['forceDefaultExecution'](()=>_0x4d4063(_0x561a75,_0x353350,_0x4f95a4)),null;}_0x56de92['push'](..._0x561a75);let _0x36421b=!0x0;for(const _0x496aa0 of _0x56de92)if(!this['_rangeIsInLocalUserInsertion'](_0x496aa0)){_0x36421b=!0x1;break;}if(_0x36421b&&'always'!==this['_trackFormatChanges']){const _0x59308b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c884e,'accept');return this['forceDefaultExecution'](()=>_0x59308b(_0x561a75,_0x353350,_0x4f95a4)),null;}const _0x511f97=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d08b2 of this['getSuggestions']()){if(_0x3d08b2['author']['id']!=_0x511f97['id'])continue;if('formatBlock'!=_0x3d08b2['type']||_0x3d08b2['data']['formatGroupId']!=_0x353350['formatGroupId'])continue;if(!Xt(_0x3d08b2,_0x4f95a4))continue;const _0x61f58f=_0x3d08b2['subType']==_0x3c884e;for(let _0x116ab5=0x0;_0x116ab5<_0x561a75['length'];_0x116ab5++){const _0xb8ae13=_0x561a75[_0x116ab5];for(const _0x2d5b1f of _0x3d08b2['getMarkers']()){const _0x32e5f7=_0x2d5b1f['getRange']();if(_0xb8ae13['isEqual'](_0x32e5f7)){_0x61f58f?(_0x561a75['splice'](_0x116ab5,0x1),_0x116ab5--):_0x3d08b2['removeMarker'](_0x2d5b1f['name']);break;}}}}if(0x0==_0x561a75['length'])return null;const _0x291988=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c884e,'join');for(const _0x1894b0 of this['getSuggestions']())if(_0x1894b0['author']['id']==_0x511f97['id']&&'formatBlock'==_0x1894b0['type']&&_0x1894b0['data']['formatGroupId']==_0x353350['formatGroupId']&&_0x1894b0['subType']==_0x3c884e&&Xt(_0x1894b0,_0x4f95a4)&&(_0x291988(_0x1894b0['getRanges'](),_0x561a75)||_0x291988(_0x561a75,_0x1894b0['getRanges']()))){for(const _0x4e7440 of _0x561a75)_0x1894b0['addRange'](_0x4e7440);return _0x1894b0;}const _0x5b6ef1=_0x391cd8(),_0x435c06=_0x511f97['id'],_0x21d11e='formatBlock:'+_0x3c884e,_0x248dbc=this['_setSuggestionData']({'id':_0x5b6ef1,'type':_0x21d11e,'data':_0x353350,'createdAt':new Date(),'authorId':_0x435c06,'attributes':_0x4f95a4});for(const _0x46aee2 of _0x561a75)this['_addSuggestionMarker'](_0x21d11e,_0x5b6ef1,_0x435c06,_0x46aee2,o['getMultiRangeId']());return _0x248dbc;}['markDeletion'](_0x18bec6,_0x4dfa51=null,_0x4864f0={}){if(_0x18bec6['isCollapsed'])return null;const _0x1e7fe9=this['editor']['plugins']['get']('Users')['me'],_0x52357e=new _0x23f516(_0x18bec6['start'],_0x18bec6['end']);for(const {suggestion:_0x552f03,meta:_0x33713e}of this['_findSuggestions'](_0x52357e,'insertion'))if(_0x33713e['isOwn']&&!_0x33713e['isNextTo']){if(_0x552f03['isMultiRange']){const _0x308162=_0x552f03['getRanges']()['filter'](_0x49187b=>'$graveyard'!=_0x49187b['root']['rootName']);_0x308162['every'](_0x4ec7ff=>_0x52357e['containsRange'](_0x4ec7ff,!0x0))&&_0x552f03['discard']();if(_0x308162['some'](_0x3c6cd0=>_0x3c6cd0['containsRange'](_0x52357e,!0x0))){const _0x53adb0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4dfa51,'accept');return this['forceDefaultExecution'](()=>_0x53adb0([_0x52357e],null,_0x4864f0)),null;}}else{const _0x3785a8=_0x52357e['getIntersection'](_0x552f03['getFirstRange']());null!==_0x3785a8&&_0x552f03['_onDiscard']([_0x3785a8],null,_0x4864f0);}}if(_0x52357e['detach'](),_0x52357e['isCollapsed']||'$graveyard'==_0x52357e['root']['rootName'])return null;let _0x343b6a=null,_0x5ab0ae=_0x52357e['start'],_0x8d1af4=_0x52357e['end'];const _0x2a8b3d=this['_findSuggestions'](_0x52357e,'deletion');for(const {suggestion:_0x4a5e1f,meta:_0x2ddd50}of _0x2a8b3d){const _0x514af2=this['_model']['createRange'](_0x5ab0ae,_0x8d1af4);if(_0x2ddd50['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2ddd50['containsRangeInObject']&&!_0x2ddd50['isInsideObject'])){if(_0x4a5e1f['isMultiRange']){if(!Xt(_0x4a5e1f,_0x4864f0))continue;let _0x2256cf=!0x0;for(const _0x16d7b1 of _0x4a5e1f['getRanges']()){if(_0x16d7b1['containsRange'](_0x514af2,!0x0))return _0x4a5e1f;_0x514af2['containsRange'](_0x16d7b1)||(_0x2256cf=!0x1);}_0x2256cf&&_0x4a5e1f['discard']();}else{const _0x1d5c33=_0x4a5e1f['getFirstRange']();if(_0x1d5c33['containsRange'](_0x514af2,!0x0))return _0x4a5e1f;if(!Xt(_0x4a5e1f,_0x4864f0)){_0x514af2['containsRange'](_0x1d5c33)?_0x4a5e1f['removeMarkers']():_0x1d5c33['containsPosition'](_0x5ab0ae)?_0x5ab0ae=_0x1d5c33['end']:_0x1d5c33['containsPosition'](_0x8d1af4)&&(_0x8d1af4=_0x1d5c33['start']);continue;}_0x5ab0ae=_0x5ab0ae['isBefore'](_0x1d5c33['start'])?_0x5ab0ae:_0x1d5c33['start'],_0x8d1af4=_0x8d1af4['isAfter'](_0x1d5c33['end'])?_0x8d1af4:_0x1d5c33['end'],_0x4864f0=Object['assign']({},_0x4a5e1f['attributes']),_0x343b6a?_0x1d5c33['start']['isBefore'](_0x343b6a['getFirstRange']()['start'])?(_0x343b6a['removeMarkers'](),_0x343b6a=_0x4a5e1f):_0x4a5e1f['removeMarkers']():_0x343b6a=_0x4a5e1f;}}}if(_0x343b6a)return this['_setSuggestionRange'](_0x343b6a,this['_model']['createRange'](_0x5ab0ae,_0x8d1af4)),_0x343b6a;{const _0x54c0c9=_0x391cd8(),_0x196702=this['_model']['createRange'](_0x5ab0ae,_0x8d1af4),_0x65c99e=_0x1e7fe9['id'],_0x18376f=_0x4dfa51?'deletion:'+_0x4dfa51:'deletion',_0x19e0b9=this['_setSuggestionData']({'id':_0x54c0c9,'type':_0x18376f,'createdAt':new Date(),'authorId':_0x65c99e,'attributes':_0x4864f0});return this['_addSuggestionMarker'](_0x18376f,_0x54c0c9,_0x65c99e,_0x196702),_0x19e0b9;}}['markMultiRangeDeletion'](_0x2cc9fc,_0x4c8fde='multi',_0x1199b5={}){const _0x3ace82=this['editor']['plugins']['get']('Users')['me'],_0x4acbea=_0x2cc9fc['map'](_0x427bb8=>new _0x23f516(_0x427bb8['start'],_0x427bb8['end'])),_0x5febe4=new Set();for(const {suggestion:_0x4da450,meta:_0x4c8508}of this['_findSuggestions'](_0x4acbea,'insertion'))_0x4c8508['isOwn']&&!_0x4c8508['isNextTo']&&_0x5febe4['add'](_0x4da450);for(const _0x2acce1 of _0x5febe4)if(_0x2acce1['isMultiRange']){const _0xd64ab9=_0x2acce1['getRanges']();(!_0x2acce1['attributes']||!_0x2acce1['attributes']['skipNestingCheck'])&&(_0xd64ab9['every'](_0xea5d88=>_0x4acbea['some'](_0x1287db=>_0x1287db['containsRange'](_0xea5d88,!0x0)))&&_0x2acce1['discard']());if(_0x4acbea['every'](_0x992c5a=>_0xd64ab9['some'](_0x42691f=>_0x42691f['containsRange'](_0x992c5a,!0x0)))){const _0x5ca96f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c8fde,'accept');return this['forceDefaultExecution'](()=>_0x5ca96f(_0x2cc9fc,null,_0x1199b5)),null;}}else{const _0x4ed380=_0x2acce1['getFirstRange']();_0x4acbea['some'](_0x2d4b42=>_0x2d4b42['containsRange'](_0x4ed380,!0x0))&&_0x2acce1['discard']();if(_0x4acbea['every'](_0x37323c=>_0x4ed380['containsRange'](_0x37323c,!0x0))){const _0x2856b2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c8fde,'accept');return this['forceDefaultExecution'](()=>_0x2856b2(_0x4acbea,null,_0x1199b5)),null;}}const _0x375c6f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c8fde,'join');let _0x1bf910=null;for(const _0x50fee6 of this['getSuggestions']())if(_0x50fee6['author']['id']==_0x3ace82['id']&&_0x50fee6['isInContent']&&'deletion'==_0x50fee6['type']&&_0x50fee6['subType']==_0x4c8fde&&Xt(_0x50fee6,_0x1199b5)&&(_0x375c6f(_0x50fee6['getRanges'](),_0x4acbea)||_0x375c6f(_0x4acbea,_0x50fee6['getRanges']()))){if(_0x1bf910){if(_0x50fee6['commentThread']&&_0x50fee6['commentThread']['length'])continue;for(const _0x3b1e01 of _0x50fee6['getRanges']())_0x1bf910['isIntersectingWithRange'](_0x3b1e01)||_0x1bf910['addRange'](_0x3b1e01);_0x50fee6['removeMarkers']();}else{_0x1bf910=_0x50fee6;for(const _0x5a49d6 of _0x4acbea)_0x50fee6['isIntersectingWithRange'](_0x5a49d6)||_0x50fee6['addRange'](_0x5a49d6);}}if(_0x1bf910)return _0x1bf910;_0x5febe4['clear']();for(const {suggestion:_0x2cc5dd,meta:_0x4fb791}of this['_findSuggestions'](_0x4acbea,'deletion'))_0x4fb791['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4fb791['containsRangeInObject']&&!_0x4fb791['isInsideObject'])&&Xt(_0x2cc5dd,_0x1199b5)&&_0x5febe4['add'](_0x2cc5dd);for(const _0x57eda7 of _0x5febe4){const _0x5b7043=_0x57eda7['getRanges']();if(!_0x1199b5||!_0x1199b5['skipNestingCheck']){if(_0x4acbea['every'](_0x535756=>_0x5b7043['some'](_0x2bd8a3=>_0x2bd8a3['containsRange'](_0x535756,!0x0))))return _0x57eda7;}(!_0x57eda7['attributes']||!_0x57eda7['attributes']['skipNestingCheck'])&&(_0x5b7043['every'](_0x328cf5=>_0x4acbea['some'](_0x2870e1=>_0x2870e1['containsRange'](_0x328cf5,!0x0)))&&_0x57eda7['discard']());}const _0x12100f=_0x391cd8(),_0x215b6f=_0x3ace82['id'],_0xa7ce9d='deletion:'+_0x4c8fde,_0x303981=this['_setSuggestionData']({'id':_0x12100f,'type':_0xa7ce9d,'createdAt':new Date(),'authorId':_0x215b6f,'attributes':_0x1199b5});for(const _0x57e69a of _0x4acbea)_0x57e69a['detach'](),_0x57e69a['isCollapsed']||'$graveyard'==_0x57e69a['root']['rootName']||this['_addSuggestionMarker'](_0xa7ce9d,_0x12100f,_0x215b6f,_0x57e69a,o['getMultiRangeId']());return _0x303981;}['markAttributeChange'](_0x1505f7,_0x27d146,_0x4b6f25,_0x1e2d9d,_0x38bfce){if(_0x1505f7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5009f5=this['editor']['plugins']['get']('Users')['me']['id'],_0x3fda57=Array['from'](this['_suggestions']['values']())['filter'](_0x3b2719=>'attribute'==_0x3b2719['type']&&_0x3b2719['data']['key']==_0x27d146&&_0x3b2719['isIntersectingWithRange'](_0x1505f7));if('default'===this['_trackFormatChanges']){const _0x18f89b=this['_findSuggestions'](_0x1505f7,'insertion')['filter'](({meta:_0xc86011})=>_0xc86011['isOwn']&&!_0xc86011['isInsideObject']&&!_0xc86011['isNextTo'])['map'](({suggestion:_0x2c0bed})=>_0x2c0bed);_0x3fda57['unshift'](..._0x18f89b);}const _0x543478=new Map([[_0x1505f7,_0x4b6f25]]);for(const _0x15d888 of _0x3fda57){const _0x274690='attribute'==_0x15d888['type']?_0x15d888['data']['oldValue']:void 0x0,_0x1f6c80=_0x15d888['getFirstRange'](),_0x3102c9=Array['from'](_0x543478['keys']())['find'](_0x57c3be=>_0x57c3be['isIntersecting'](_0x1f6c80));if(!_0x3102c9)continue;const _0x5d14b8=_0x3102c9['getDifference'](_0x1f6c80);this['_isBlockAttribute'](_0x27d146)&&'insertion'==_0x15d888['type']&&0x0!=_0x5d14b8['length']||(_0x543478['delete'](_0x3102c9),_0x5d14b8['forEach'](_0x35ae08=>{_0x543478['set'](_0x35ae08,_0x4b6f25);}),'insertion'!=_0x15d888['type']&&_0x274690!=_0x1e2d9d&&_0x543478['set'](_0x3102c9['getIntersection'](_0x1f6c80),_0x274690));}const _0x3612e8=[];for(const [_0x5c280d,_0x3c7111]of _0x543478){const _0x970844=_0x391cd8(),_0x191e2e={'key':_0x27d146,'oldValue':_0x3c7111,'newValue':_0x1e2d9d};_0x27d146['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':_0x27d146});const _0xaeb23e=('attribute:'+(_0x27d146+'|'+Kt({'newValue':_0x1e2d9d})))['substring'](0x0,0x3c),_0x15baf4=this['_setSuggestionData']({'id':_0x970844,'type':_0xaeb23e,'data':_0x191e2e,'createdAt':new Date(),'authorId':_0x5009f5,'attributes':_0x38bfce});_0x3612e8['push'](_0x15baf4),this['_addSuggestionMarker'](_0xaeb23e,_0x970844,_0x5009f5,_0x5c280d);}return _0x3612e8;}['enableDefaultAttributesIntegration'](_0xb41db8){this['enableCommand'](_0xb41db8,(_0x58c95b,..._0x20de69)=>{this['_recordAttributeChanges'](()=>{_0x58c95b(..._0x20de69);});});}['registerBlockAttribute'](_0x38611b){this['_blockAttributeKeys']['add'](_0x38611b);}['registerInlineAttribute'](_0x5183ef){this['_inlineAttributeKeys']['add'](_0x5183ef);}['_getAttributeKey'](_0x206e90){return'attribute'==_0x206e90['type']?_0x206e90['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x202516,_0xb9c9ca){const _0x2f2ec0=_0x202516['getFirstMarker']();this['_model']['change'](_0x78ef3c=>{_0x78ef3c['updateMarker'](_0x2f2ec0,{'range':_0xb9c9ca});});}['_addThreadToSuggestion'](_0x29584d){const _0xb79e28=_0x29584d['id'],_0x4eea80=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xb79e28)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4eea80,'threadId':_0xb79e28,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c9b0d=this['_commentsRepository']['getCommentThread'](_0xb79e28);_0x2c9b0d['unbind']('isRemovable'),_0x2c9b0d['isRemovable']=!0x1,_0x29584d['commentThread']=_0x2c9b0d;}['_checkSuggestionCorrectness'](_0xf7ad12,_0x5c6d5c,_0x4d2e19,_0x22b957){if(_0xf7ad12['type']!=_0x5c6d5c||_0xf7ad12['subType']!=_0x4d2e19||_0xf7ad12['creator']['id']!=_0x22b957)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x214f9c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2ae077,_0x50de9f){const _0x4cf6bf=_0x2ae077['getFirstRange']();if(_0x50de9f['isEqual'](_0x4cf6bf))_0x2ae077['removeMarkers']();else{if(_0x4cf6bf['containsRange'](_0x50de9f)){const _0x1946d4=this['_model']['createPositionAt'](_0x50de9f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2ae077,this['_model']['createRange'](_0x4cf6bf['start'],_0x1946d4));const _0x66ac85=_0x391cd8(),_0x3fa4d6=_0x2ae077['creator']['id'],_0x424b28=_0x2ae077['type']+':'+_0x2ae077['subType'];this['_setSuggestionData']({'id':_0x66ac85,'type':_0x424b28,'createdAt':new Date(),'authorId':_0x3fa4d6,'data':_0x2ae077['data'],'attributes':_0x2ae077['attributes']});const _0x57c02e=this['_model']['createPositionAt'](_0x50de9f['end']['parent'],'after'),_0x432065=this['_model']['createRange'](_0x57c02e,_0x4cf6bf['end']);this['_addSuggestionMarker'](_0x424b28,_0x66ac85,_0x3fa4d6,_0x432065);}else{if(_0x4cf6bf['containsPosition'](_0x50de9f['start'])){const _0x569777=this['_model']['createPositionAt'](_0x50de9f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2ae077,this['_model']['createRange'](_0x4cf6bf['start'],_0x569777));}else{const _0x4f112e=this['_model']['createPositionAt'](_0x50de9f['end']['parent'],'after');this['_setSuggestionRange'](_0x2ae077,this['_model']['createRange'](_0x4f112e,_0x4cf6bf['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3e9aab){for(const {suggestion:_0x70d779,meta:_0x45d909}of this['_findSuggestions'](_0x3e9aab,'insertion')){if(!_0x45d909['isOwn'])continue;const _0x136427=_0x70d779['getRanges']();for(const _0x1d75d9 of _0x136427)if(!_0x3e9aab['getDifference'](_0x1d75d9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x40a3ed){const _0x3759ab=this['editor']['plugins']['get']('Users')['getUser'](_0x40a3ed);if(!_0x3759ab)throw new _0x214f9c('track-changes-user-not-found',this);return _0x3759ab;}['_getExternalAuthor'](_0x2e9a94){const _0x181218=this['editor']['plugins']['get']('Users'),_0x48926c=_0x37bf96('external:'+_0x2e9a94),_0xd77fa7=_0x181218['getUser'](_0x48926c);return _0xd77fa7||_0x181218['addUser']({'id':_0x48926c,'name':_0x2e9a94});}['_createSuggestion'](_0x1d3c43,_0x3de24c,_0x585c5f,_0x16e35f,_0x5ee477){const _0x1b7ba0=this['_getAuthorFromId'](_0x16e35f),_0x4e9b50=this['_suggestionFactory']['buildSuggestion'](_0x1d3c43,_0x3de24c,_0x585c5f,_0x1b7ba0,_0x5ee477,_0x1ef41b=>{this['_updateSuggestionData'](_0x585c5f,{'attributes':_0x1ef41b});const _0x2930d3=this['getSuggestion'](_0x585c5f);this['_joinWithAdjacentSuggestions'](new Set([_0x2930d3])),this['_refreshSuggestionsChain'](new Set([_0x2930d3]));});return this['listenTo'](_0x4e9b50,'accept',()=>{this['_updateSuggestionData'](_0x585c5f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4e9b50,'discard',()=>{this['_updateSuggestionData'](_0x585c5f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x585c5f,_0x4e9b50),this['_suggestionState']['set'](_0x4e9b50,'notReady'),_0x4e9b50;}['_splitMarkerName'](_0x537104){const _0x1c4095=_0x537104['split'](':');return{'group':_0x1c4095[0x0],'type':_0x1c4095[0x1],'subType':_0x1c4095['length']>=0x5?_0x1c4095[0x2]:null,'id':_0x1c4095['length']<0x5?_0x1c4095[0x2]:_0x1c4095[0x3],'authorId':_0x1c4095['length']<0x5?_0x1c4095[0x3]:_0x1c4095[0x4],'markerCount':0x6==_0x1c4095['length']?_0x1c4095[0x5]:null};}['_breakSuggestionMarker'](_0x2f2597,_0x2b59e2,_0x2b1c99){const _0x1d459a=_0x2f2597['getFirstRange'](),_0x3bcbde=_0x1d459a['start'],_0x2eb06d=_0x1d459a['end'];this['_setSuggestionRange'](_0x2f2597,this['_model']['createRange'](_0x3bcbde,_0x2b59e2));const _0x38f9a0=_0x391cd8(),_0x333d99=_0x2f2597['creator']['id'],_0x2f46f4=_0x2f2597['type']+(_0x2f2597['subType']?':'+_0x2f2597['subType']:'');this['_setSuggestionData']({'id':_0x38f9a0,'type':_0x2f46f4,'createdAt':new Date(),'authorId':_0x333d99,'originalSuggestionId':_0x2f2597['id'],'attributes':_0x2f2597['attributes'],'data':_0x2f2597['data']});const _0x276462=this['_getAttributeKey'](_0x2f2597);('formatBlock'==_0x2f2597['type']||_0x276462&&this['_isBlockAttribute'](_0x276462))&&(_0x2b1c99=this['_model']['createPositionBefore'](_0x2b1c99['parent'])),this['_addSuggestionMarker'](_0x2f46f4,_0x38f9a0,_0x333d99,this['_model']['createRange'](_0x2b1c99,_0x2eb06d));}['_findSuggestions'](_0x4c666b,_0x47a63b=null){const _0xe0367=[],_0x188623=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4c666b)||(_0x4c666b=[_0x4c666b]);for(const _0x19a1f1 of this['getSuggestions']()){if(!_0x19a1f1['isInContent'])continue;if(_0x47a63b&&_0x19a1f1['type']!=_0x47a63b)continue;let _0x592f4a=!0x1;for(const _0x1ea21a of _0x19a1f1['getRanges']()){for(const _0x1fc6ae of _0x4c666b){const _0x5ddd74=_0x1fc6ae['start']['isEqual'](_0x1ea21a['end'])||_0x1fc6ae['end']['isEqual'](_0x1ea21a['start']);if(_0x5ddd74||_0x1fc6ae['getIntersection'](_0x1ea21a)){const _0x5f0c6a=_0x1fc6ae['containsRange'](_0x1ea21a)&&Gt(this['_model']['schema'],_0x1ea21a['start'],_0x1fc6ae),_0x1dd923=_0x1ea21a['containsRange'](_0x1fc6ae)&&Gt(this['_model']['schema'],_0x1fc6ae['start'],_0x1ea21a);_0xe0367['push']({'suggestion':_0x19a1f1,'meta':{'isOwn':_0x188623==_0x19a1f1['author'],'isNextTo':_0x5ddd74,'isInsideObject':_0x5f0c6a,'containsRangeInObject':_0x1dd923}}),_0x592f4a=!0x0;break;}}if(_0x592f4a)break;}}return _0xe0367;}['_addSuggestionMarker'](_0x4c1f3e,_0x53fd68,_0x3ee576,_0x335e48,_0x545ace){this['_model']['change'](_0x2cf803=>{let _0x19311f='suggestion:'+_0x4c1f3e+':'+_0x53fd68+':'+_0x3ee576;_0x545ace&&(_0x19311f=_0x19311f+':'+_0x545ace),_0x2cf803['addMarker'](_0x19311f,{'range':_0x335e48,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x467e6a){const _0x2719af=_0x467e6a['previous'],_0x1c1d50=_0x467e6a['next'];_0x467e6a['previous']=null,_0x467e6a['next']=null,null!=_0x2719af&&_0x2719af['next']==_0x467e6a&&(_0x2719af['next']=_0x1c1d50),null!=_0x1c1d50&&_0x1c1d50['previous']==_0x467e6a&&(_0x1c1d50['previous']=_0x2719af),'ready'==this['_suggestionState']['get'](_0x467e6a)&&(this['_suggestionState']['set'](_0x467e6a,'removed'),this['fire']('suggestionUnloaded',_0x467e6a,_0x2719af,_0x1c1d50));}['_setSuggestionData'](_0x3ce5df){const _0x4d4d7b=_0x3ce5df['id'],_0x5c6945=this['addSuggestionData'](_0x3ce5df);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f91eb=this['editor']['plugins']['get']('PendingActions'),_0x3d1c42=_0x5c6945['hasComments'],_0x2f597f=_0x5c6945['subType']?_0x5c6945['type']+':'+_0x5c6945['subType']:_0x5c6945['type'],_0xd13565=this['editor']['locale'],_0x2aedcc=_0x2f91eb['add'](c(_0xd13565,'PENDING_ACTION_SUGGESTION')),_0x1f58d1={'id':_0x4d4d7b,'type':_0x2f597f,'hasComments':_0x3d1c42,'data':_0x3ce5df['data']||null,'originalSuggestionId':_0x3ce5df['originalSuggestionId']||null,'attributes':_0x5c6945['attributes']};this['_adapter']['addSuggestion'](_0x1f58d1)['then'](_0x33de0c=>{_0x5c6945['_saved']=!0x0,_0x2f91eb['remove'](_0x2aedcc),_0x33de0c&&_0x33de0c['createdAt']&&(this['_suggestions']['get'](_0x4d4d7b)['createdAt']=_0x33de0c['createdAt']);})['catch'](_0x12d2be=>{throw _0x1cce61('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5c6945['discard']();}),_0x5c6945['stopListening'](),this['_suggestions']['delete'](_0x5c6945['id']),this['_suggestionState']['delete'](_0x5c6945),_0x12d2be;});}return _0x5c6945;}['_isBlockAttribute'](_0x4dde59){return this['_blockAttributeKeys']['has'](_0x4dde59);}['_updateSuggestionData'](_0x53b6e5,_0x304b68){const _0x2257ba=this['editor']['plugins']['get']('PendingActions'),_0x798b24=this['getSuggestion'](_0x53b6e5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x798b24['_saved']){const _0x5dc6b2=_0x2257ba['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x53b6e5,_0x304b68)['then'](()=>{_0x2257ba['remove'](_0x5dc6b2);});}else _0x798b24['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x53b6e5,_0x304b68);});}}['_getSuggestionData'](_0x3e86fd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x214f9c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e86fd);}['_handleNewSuggestionMarker'](_0x564f77){const {id:_0x1df8cb,type:_0x432bea,subType:_0xcafcb4,authorId:_0x2a41f7}=this['_splitMarkerName'](_0x564f77),_0x2d54af=this['_suggestions']['get'](_0x1df8cb)||this['_createSuggestion'](_0x432bea,_0xcafcb4,_0x1df8cb,_0x2a41f7,{});switch(this['_checkSuggestionCorrectness'](_0x2d54af,_0x432bea,_0xcafcb4,_0x2a41f7),this['_suggestionState']['get'](_0x2d54af)){case'notReady':this['_getSuggestionData'](_0x1df8cb)['then'](_0x163eb5=>{let _0x4a74b4=Promise['resolve']();_0x163eb5['hasComments']&&(_0x4a74b4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1df8cb})),_0x4a74b4['then'](()=>{this['addSuggestionData'](_0x163eb5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2d54af,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1df8cb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2d54af,'ready'),this['fire']('suggestionLoaded',_0x2d54af);break;case'ready':this['fire']('suggestionChanged',_0x2d54af);}return _0x2d54af['addMarkerName'](_0x564f77),_0x2d54af;}['_refreshSuggestionsChain'](_0x11f990){const _0x73c3fc=Array['from'](_0x11f990),_0x3e59d1=_0x73c3fc['filter'](_0x3efbca=>'attribute'==_0x3efbca['type']);this['_refreshAttributeSuggestionsChain'](_0x3e59d1);const _0x4239c5=_0x73c3fc['filter'](_0x504821=>!_0x504821['isMultiRange']&&'attribute'!=_0x504821['type']),_0x423422=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bc85d=>!_0x4bc85d['isMultiRange']&&'attribute'!=_0x4bc85d['type']),_0x4339fe=_0x423422['filter'](_0x184bdb=>!_0x11f990['has'](_0x184bdb)),_0x56d981=new Map(_0x423422['map'](_0x3fdb64=>[_0x3fdb64,this['_suggestionFactory']['getSuggestionCallback'](_0x3fdb64['type'],_0x3fdb64['subType'],'chain')])),_0x31a7da=new Map(_0x423422['map'](_0x552231=>[_0x552231,_0x552231['getFirstRange']()])),_0x1f48c1=new Set(),_0x5e0650=new Set();for(let _0x26e982=0x0;_0x26e982<_0x4239c5['length'];_0x26e982++)_0x3f8e81(_0x4239c5[_0x26e982],_0x4239c5,_0x26e982+0x1);for(let _0x15a16b=0x0;_0x15a16b<_0x4239c5['length'];_0x15a16b++)_0x3f8e81(_0x4239c5[_0x15a16b],_0x4339fe,0x0);const _0x196dc2=new Set();for(let _0x309049=0x0;_0x309049<_0x4239c5['length'];_0x309049++){const _0x26e75d=_0x4239c5[_0x309049];!_0x5e0650['has'](_0x26e75d)&&_0x26e75d['previous']&&(_0x196dc2['add'](_0x26e75d['previous']),_0x26e75d['previous']['next']===_0x26e75d&&(_0x26e75d['previous']['next']=null),_0x26e75d['previous']=null),!_0x1f48c1['has'](_0x26e75d)&&_0x26e75d['next']&&(_0x196dc2['add'](_0x26e75d['next']),_0x26e75d['next']['previous']===_0x26e75d&&(_0x26e75d['next']['previous']=null),_0x26e75d['next']=null);}function _0x3f8e81(_0x28dfc2,_0x4f3262,_0x221064){for(let _0x1234e9=_0x221064;_0x1234e9<_0x4f3262['length'];_0x1234e9++){const _0x4aa719=_0x3357af(_0x28dfc2,_0x4f3262[_0x1234e9]);_0x4aa719&&(_0x4aa719[0x0]['next']=_0x4aa719[0x1],_0x4aa719[0x1]['previous']=_0x4aa719[0x0],_0x1f48c1['add'](_0x4aa719[0x0]),_0x5e0650['add'](_0x4aa719[0x1]));}}function _0x3357af(_0x54e73e,_0x53fc7e){if(_0x54e73e['author']['id']!==_0x53fc7e['author']['id'])return null;const _0x45df83=_0x56d981['get'](_0x54e73e)(_0x54e73e,_0x53fc7e,_0x31a7da['get'](_0x54e73e),_0x31a7da['get'](_0x53fc7e));if(!_0x45df83)return null;return _0x56d981['get'](_0x53fc7e)(_0x54e73e,_0x53fc7e,_0x31a7da['get'](_0x54e73e),_0x31a7da['get'](_0x53fc7e))?_0x45df83[0x1]['commentThread']&&_0x45df83[0x1]['commentThread']['length']?null:_0x45df83:null;}_0x196dc2['size']&&this['_refreshSuggestionsChain'](_0x196dc2);}['_refreshAttributeSuggestionsChain'](_0xab4cab){if(0x0==_0xab4cab['length'])return;const _0x52afd1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x450118=>'attribute'==_0x450118['type']&&_0x450118['_isDataLoaded']),_0x1b2927=[],_0x3e918b=new Map();for(const _0x1f94cc of _0x52afd1){const _0x537fe9=_0x37bf96(_0x1f94cc['attributes']);_0x3e918b['has'](_0x537fe9)||(_0x3e918b['set'](_0x537fe9,_0x1b2927['length']),_0x1b2927['push']([]));const _0x1d5a3b=_0x3e918b['get'](_0x537fe9);_0x1b2927[_0x1d5a3b]['push'](_0x1f94cc);}!(function(){_0x1b2927['sort']((_0x1adecd,_0x3ef0c8)=>{const _0x32d56b=_0x1adecd[0x0]['createdAt'],_0x362071=_0x3ef0c8[0x0]['createdAt'];return _0x32d56b==_0x362071?_0x1adecd[0x0]['attributes']['groupId']<_0x3ef0c8[0x0]['attributes']['groupId']?-0x1:0x1:_0x32d56b<_0x362071?-0x1:0x1;});for(const _0x5b5218 of _0x1b2927)_0x5b5218['sort']((_0x424d56,_0xa984)=>_0x424d56['id']<_0xa984['id']?-0x1:0x1);}());for(let _0x512d35=0x0;_0x512d35<_0x1b2927['length'];_0x512d35++){if(0x0==_0x1b2927[_0x512d35]['length'])continue;const _0x3bc0f7=[];for(let _0x4d6c1e=_0x512d35+0x1;_0x4d6c1e<_0x1b2927['length'];_0x4d6c1e++)0x0!=_0x1b2927[_0x4d6c1e]['length']&&_0x303f31(_0x1b2927[_0x512d35],_0x1b2927[_0x4d6c1e])&&_0x3bc0f7['push'](_0x4d6c1e);for(const _0x1fa267 of _0x3bc0f7)_0x1b2927[_0x512d35]=_0x1b2927[_0x512d35]['concat'](_0x1b2927[_0x1fa267]),_0x1b2927[_0x1fa267]=[];}for(const _0x5a2ab8 of _0x1b2927)for(let _0x569bf0=0x0;_0x569bf0<_0x5a2ab8['length'];_0x569bf0++){const _0x14a164=_0x5a2ab8[_0x569bf0+0x1]||null;_0x5a2ab8[_0x569bf0]['next']!==_0x14a164&&(_0x5a2ab8[_0x569bf0]['next']=_0x14a164);}for(const _0x3b9300 of _0x1b2927)for(let _0x17927b=0x0;_0x17927b<_0x3b9300['length'];_0x17927b++){const _0x576d98=_0x3b9300[_0x17927b-0x1]||null;_0x3b9300[_0x17927b]['previous']!==_0x576d98&&(_0x3b9300[_0x17927b]['previous']=_0x576d98);}function _0x303f31(_0x2062d7,_0x24e9c3){if(_0x2062d7[0x0]['attributes']['groupId']!==_0x24e9c3[0x0]['attributes']['groupId']&&_0x2062d7[0x0]['author']!==_0x24e9c3[0x0]['author'])return!0x1;if(!function(_0xf72522,_0x2ad10b){if(!_0xf72522['hasComments']&&!_0x2ad10b['hasComments'])return!0x0;if(_0xf72522['hasComments']&&_0x2ad10b['hasComments'])return!0x1;if(_0xf72522['hasComments']&&_0x2ad10b['createdAt']<_0xf72522['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2ad10b['hasComments']&&_0xf72522['createdAt']<_0x2ad10b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2062d7[0x0],_0x24e9c3[0x0]))return!0x1;const _0x5bcdfa=Ft(_0x2062d7[0x0]['attributes'],'groupId'),_0x5888ae=Ft(_0x24e9c3[0x0]['attributes'],'groupId');if(!_0x4e56bf(_0x5bcdfa,_0x5888ae))return!0x1;return!!_0x2062d7['every'](_0x145b91=>_0x24e9c3['some'](_0x5ec06b=>_0x145b91['getFirstRange']()['isEqual'](_0x5ec06b['getFirstRange']())))&&_0x24e9c3['every'](_0x2cdf52=>_0x2062d7['some'](_0x3fa0b9=>_0x2cdf52['getFirstRange']()['isEqual'](_0x3fa0b9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2358a3){const _0x2a5087=Array['from'](_0x2358a3),_0x14d514=this['getSuggestions']({'skipNotAttached':!0x0}),_0xa52471=_0x14d514['filter'](_0x28bb4d=>!_0x2358a3['has'](_0x28bb4d)),_0x43415d=new Map(_0x2a5087['map'](_0x1771a5=>[_0x1771a5,this['_suggestionFactory']['getSuggestionCallback'](_0x1771a5['type'],_0x1771a5['subType'],'join')])),_0x2311fb=new Map(_0x14d514['map'](_0x481c79=>[_0x481c79,_0x481c79['getRanges']()]));for(let _0x2734f1=0x0;_0x2734f1<_0x2a5087['length'];_0x2734f1++){if(_0x1c580b(this,_0x2a5087[_0x2734f1],_0x2a5087,_0x2734f1+0x1))return!0x0;}for(let _0x280d51=0x0;_0x280d51<_0x2a5087['length'];_0x280d51++){if(_0x1c580b(this,_0x2a5087[_0x280d51],_0xa52471,0x0))return!0x0;}return!0x1;function _0x1c580b(_0xafd098,_0x2559cf,_0x504271,_0x6d71f9){for(let _0x3639df=_0x6d71f9;_0x3639df<_0x504271['length'];_0x3639df++){const _0x17fad7=_0x504271[_0x3639df];if(_0x17fad7['type']!==_0x2559cf['type']||_0x17fad7['author']['id']!==_0x2559cf['author']['id']||_0x17fad7['subType']!==_0x2559cf['subType'])continue;if(!Qt(_0x2559cf,_0x17fad7))continue;if('attribute'==_0x2559cf['type']&&_0x2559cf['data']['oldValue']!=_0x17fad7['data']['oldValue'])continue;if('attribute'==_0x2559cf['type']&&_0xafd098['_isBlockAttribute'](_0x2559cf['data']['key']))continue;if('formatBlock'==_0x2559cf['type']){const _0x55222f=_0xafd098['editor']['model'],_0x4e79c0=_0x2559cf['getContainedElement']();if(_0x4e79c0&&(_0x55222f['schema']['isObject'](_0x4e79c0)||_0x55222f['schema']['isLimit'](_0x4e79c0)))continue;}const _0x35991e=_0x43415d['get'](_0x2559cf),_0x34b389=_0x2311fb['get'](_0x2559cf),_0x451085=_0x2311fb['get'](_0x17fad7),_0x6982c4=_0x2559cf['commentThread']&&_0x2559cf['commentThread']['length'],_0x4c49fc=_0x17fad7['commentThread']&&_0x17fad7['commentThread']['length'];if(!_0x6982c4&&_0x35991e(_0x451085,_0x34b389))return _0xafd098['_joinSuggestions'](_0x17fad7,_0x2559cf),_0x2311fb['delete'](_0x2559cf),!0x0;if(!_0x4c49fc&&_0x35991e(_0x34b389,_0x451085))return _0xafd098['_joinSuggestions'](_0x2559cf,_0x17fad7),_0x2311fb['delete'](_0x17fad7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4b3f99,_0x2a2a89){if(_0x4b3f99['isMultiRange']){for(const _0x47ff23 of _0x2a2a89['getRanges']())_0x4b3f99['addRange'](_0x47ff23);}else{const _0x153127=_0x2a2a89['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4b3f99,this['_model']['createRange'](_0x4b3f99['getFirstRange']()['start'],_0x153127));}_0x2a2a89['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2d952a,_0x2695a7,_0x8397da){const _0x4b1176=_0x2d952a['startsWith']('format')||_0x2d952a['startsWith']('attribute')?'FORMATTING':_0x2d952a['toUpperCase']();return c(this['editor']['locale'],_0x2695a7+'_'+_0x4b1176+'_SUGGESTION_ANNOUNCEMENT',_0x8397da);}['_initAriaMarkerChangeAnnouncements'](){const _0x285dc9=this['editor'];if(!_0x285dc9['ui'])return;const {ariaLiveAnnouncer:_0x46f482}=_0x285dc9['ui'];_0x2a3aa3(this['_model'],({left:_0x39c557,entered:_0x43b22d})=>{for(const _0x20b4a6 of _0x39c557){const {group:_0x4d125d,type:_0x1d9a10}=this['_splitMarkerName'](_0x20b4a6['name']);if('suggestion'===_0x4d125d){_0x46f482['announce'](this['_getMarkerAnnouncementText'](_0x1d9a10,'LEAVE'));break;}}for(const _0x576ce2 of _0x43b22d){const {group:_0x55ab08,type:_0x1c79ff}=this['_splitMarkerName'](_0x576ce2['name']);if('suggestion'===_0x55ab08){_0x46f482['announce'](this['_getMarkerAnnouncementText'](_0x1c79ff,'ENTER',_0x2e8108(_0x4cc124)));break;}}});}['_processAttributeChanges'](_0x254dfc){if(this['_recordAttributeSuggestions'])return!0x1;const _0x38278e=this['editor'],_0x7c6427=_0x38278e['model']['document']['differ']['getChanges']();if(0x0==_0x7c6427['length'])return!0x1;const _0x418fa6=[],_0x32bd18=_0x7c6427['filter'](_0xd6e5d3=>'attribute'==_0xd6e5d3['type']),_0x2007fe=_0x7c6427['filter'](_0x462540=>'insert'==_0x462540['type']&&'$text'!=_0x462540['name']),_0x136363=_0x7c6427['filter'](_0x2a8ddc=>'remove'==_0x2a8ddc['type']&&'$text'!=_0x2a8ddc['name']);for(const _0x43fee6 of _0x32bd18)_0x418fa6['push']({'key':_0x43fee6['attributeKey'],'newValue':_0x43fee6['attributeNewValue'],'oldValue':_0x43fee6['attributeOldValue'],'range':qt(_0x43fee6['range'],_0x38278e['model'])});for(const _0x729f8c of _0x2007fe){const _0x5e5837=_0x136363['find'](_0x371f22=>_0x371f22['position']['isEqual'](_0x729f8c['position']));_0x5e5837&&_0x418fa6['push']({'key':u,'newValue':_0x729f8c['name'],'oldValue':_0x5e5837['name'],'range':_0x38278e['model']['createRangeOn'](_0x729f8c['position']['nodeAfter'])});}return 0x0!=_0x418fa6['length']&&this['_reduceExistingSuggestions'](_0x254dfc,_0x418fa6);}['_processAttributeSuggestions'](_0x151fa7){let _0x1620a4=!0x1;const _0x3dce55=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56c56d=>_0x56c56d['data']['newRange']&&_0x56c56d['name']['startsWith']('suggestion:attribute:'));for(const _0x388eed of _0x3dce55){const {subType:_0x2fd24f,id:_0x3d0a57}=this['_splitMarkerName'](_0x388eed['name']),_0x1c1048=_0x2fd24f['split']('|')[0x0];for(const _0x3d7433 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3d7433['id']!=_0x3d0a57&&'attribute'==_0x3d7433['type']&&_0x3d7433['data']&&_0x3d7433['data']['key']==_0x1c1048&&_0x3d7433['getFirstRange']()['isIntersecting'](_0x388eed['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3d7433,_0x388eed['data']['newRange'],_0x151fa7),_0x1620a4=!0x0);}return _0x1620a4;}['_recordAttributeChanges'](_0x52d876){this['_recordAttributeSuggestions']=!0x0,_0x52d876();}['_isRegisteredAttribute'](_0x5e4ac2){const _0x21dfc6=this['_isBlockAttribute'](_0x5e4ac2),_0x4d282c=this['_inlineAttributeKeys']['has'](_0x5e4ac2);return _0x21dfc6||_0x4d282c;}['_reduceExistingSuggestions'](_0x2b5d65,_0x175ca7){if(0x0==_0x175ca7['length'])return!0x1;let _0x3f0351=!0x1;for(const _0x44544e of _0x175ca7){const _0x3d5e6b=this['_findSuggestions'](_0x44544e['range'],'attribute')['filter'](_0x43d527=>!_0x43d527['meta']['isNextTo'])['map'](_0xc06f2b=>_0xc06f2b['suggestion']),_0x28e90f=_0x37bf96({'newValue':_0x44544e['newValue']});_0x3d5e6b['filter'](_0x5b8cf5=>{const [_0x2b7c94,_0x251666]=_0x5b8cf5['subType']['split']('|');return _0x2b7c94==_0x44544e['key']&&_0x251666!=_0x28e90f;})['forEach'](_0x5d063b=>{this['_reduceSuggestionAttributeRange'](_0x5d063b,_0x44544e['range'],_0x2b5d65),_0x3f0351=!0x0;});}return _0x3f0351;}['_reduceSuggestionAttributeRange'](_0x106d45,_0x38d4d0,_0x2adea2){const _0x576e3f=_0x106d45['getFirstRange']()['getDifference'](_0x38d4d0);0x0!==_0x576e3f['length']?0x1!==_0x576e3f['length']?this['_breakSuggestionMarker'](_0x106d45,_0x38d4d0['start'],_0x38d4d0['end']):this['_setSuggestionRange'](_0x106d45,_0x576e3f[0x0]):_0x2adea2['removeMarker'](_0x106d45['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x10b681){this['_editor']=_0x10b681,this['_model']=_0x10b681['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x357e3c,_0x405c4b,_0x166cb2,_0x39381e,_0x20dfd2,_0x5c0869){return new o(this['_model'],{'type':_0x357e3c,'subType':_0x405c4b,'id':_0x166cb2,'author':_0x39381e,'creator':_0x39381e,'attributes':_0x20dfd2,'onAttributesChange':_0x5c0869,'onAccept':(..._0x348f72)=>this['getSuggestionCallback'](_0x357e3c,_0x405c4b,'accept')(..._0x348f72),'onDiscard':(..._0x296f2c)=>this['getSuggestionCallback'](_0x357e3c,_0x405c4b,'discard')(..._0x296f2c)});}['registerCustomCallback'](_0x3be65e,_0x11bdab,_0x8e6434,_0x22f53f){const _0x79f90e=_0x3be65e+':'+_0x11bdab+':'+_0x8e6434;this['_customCallbacks']['set'](_0x79f90e,_0x22f53f);}['getSuggestionCallback'](_0x5879c1,_0xcf59d4,_0x242dc7){const _0x3e56c6=_0x5879c1+':'+_0xcf59d4+':'+_0x242dc7;return this['_customCallbacks']['get'](_0x3e56c6)||this['_defaultCallbacks']['get'](_0x5879c1+':'+_0x242dc7);}['_registerDefaultCallbacks'](){const _0x4e9a2a=()=>!0x1,_0xa142fd=_0x59281b=>{_0x59281b['sort']((_0x200c0d,_0x1844fb)=>_0x200c0d['start']['isBefore'](_0x1844fb['start'])?0x1:-0x1),this['_model']['change'](_0x3a4dc9=>{for(const _0x81c0e8 of _0x59281b){let _0x3bd283;_0x3bd283=_0x81c0e8['end']['isAtEnd']&&_0x81c0e8['end']['parent']==_0x81c0e8['start']['nodeAfter']?_0x3a4dc9['createSelection'](_0x81c0e8['start']['nodeAfter'],'on'):_0x3a4dc9['createSelection'](_0x81c0e8),this['_model']['deleteContent'](_0x3bd283,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5f56f3=(_0x30ae88,_0x155443)=>{_0x155443&&this['_model']['change'](_0x22258a=>{const {commandName:_0x15b162,commandParams:_0x418ce2=[]}=_0x155443,_0x21fcca=_0x30ae88['map'](_0x455538=>(Lt(_0x455538)&&(_0x455538=this['_model']['createRange'](_0x455538['end'])),_0x455538))['filter'](_0x2bcd2c=>'$graveyard'!==_0x2bcd2c['root']['rootName']);if(_0x21fcca['length']<0x1)return;const _0x4f6d65=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4b3cd3=>_0x23f516['fromRange'](_0x4b3cd3));_0x22258a['setSelection'](_0x21fcca);for(const _0x45f91c of this['_editor']['commands']['commands']())_0x45f91c['refresh']();_0x418ce2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x15b162,..._0x418ce2);const _0x2df637=_0x4f6d65['filter'](_0x4c54de=>'$graveyard'!=_0x4c54de['root']['rootName']);_0x2df637['length']>0x0&&_0x22258a['setSelection'](_0x2df637);for(const _0x48df81 of _0x4f6d65)_0x48df81['detach']();});},_0x5e07f6=(_0xafb461,_0x50e6af)=>0x1==_0xafb461['length']&&0x1==_0x50e6af['length']&&_0xafb461[0x0]['end']['isEqual'](_0x50e6af[0x0]['start']),_0x401fec=(_0x24ca23,_0x23387d,_0x56627b,_0x38412b)=>Wt(_0x24ca23,_0x23387d,_0x56627b,_0x38412b)?[_0x24ca23,_0x23387d]:Wt(_0x23387d,_0x24ca23,_0x38412b,_0x56627b)?[_0x23387d,_0x24ca23]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4e9a2a),this['_defaultCallbacks']['set']('insertion:discard',_0xa142fd),this['_defaultCallbacks']['set']('insertion:join',_0x5e07f6),this['_defaultCallbacks']['set']('insertion:chain',_0x401fec),this['_defaultCallbacks']['set']('deletion:accept',_0xa142fd),this['_defaultCallbacks']['set']('deletion:discard',_0x4e9a2a),this['_defaultCallbacks']['set']('deletion:join',_0x5e07f6),this['_defaultCallbacks']['set']('deletion:chain',_0x401fec),this['_defaultCallbacks']['set']('formatInline:accept',_0x5f56f3),this['_defaultCallbacks']['set']('formatInline:discard',_0x4e9a2a),this['_defaultCallbacks']['set']('formatInline:join',_0x5e07f6),this['_defaultCallbacks']['set']('formatInline:chain',_0x4e9a2a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5f56f3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4e9a2a),this['_defaultCallbacks']['set']('formatBlock:join',_0x5e07f6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4e9a2a),this['_defaultCallbacks']['set']('attribute:accept',_0x4e9a2a),this['_defaultCallbacks']['set']('attribute:discard',(_0x2236c2,_0x7a1fc7)=>{if(!_0x7a1fc7)return;const _0x226aab=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x10f5cb=>{if(_0x7a1fc7['key']==u)for(const _0x5cef9d of _0x2236c2){const _0x8f7ad3=_0x5cef9d['start']['nodeAfter'],_0x26b9e7=_0x7a1fc7['oldValue'];_0x10f5cb['rename'](_0x8f7ad3,_0x26b9e7);}else{if(_0x226aab['_isBlockAttribute'](_0x7a1fc7['key'])){for(const _0x80e5c8 of _0x2236c2)void 0x0!==_0x7a1fc7['oldValue']?_0x10f5cb['setAttribute'](_0x7a1fc7['key'],_0x7a1fc7['oldValue'],_0x80e5c8['start']['nodeAfter']):_0x10f5cb['removeAttribute'](_0x7a1fc7['key'],_0x80e5c8['start']['nodeAfter']);}else{for(const _0x4a08d5 of _0x2236c2)_0x7a1fc7['oldValue']?_0x10f5cb['setAttribute'](_0x7a1fc7['key'],_0x7a1fc7['oldValue'],_0x4a08d5):_0x10f5cb['removeAttribute'](_0x7a1fc7['key'],_0x4a08d5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5e07f6);}}function Gt(_0x4e8384,_0x38cd73,_0x11e3aa){for(const _0x4f831a of _0x38cd73['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f831a['root']==_0x4f831a)return!0x1;if(!_0x11e3aa['containsItem'](_0x4f831a))return!0x1;if(_0x4e8384['isObject'](_0x4f831a)||_0x4e8384['isLimit'](_0x4f831a))return!0x0;}return!0x1;}function Lt(_0x2ec49d){return _0x2ec49d['end']['parent']==_0x2ec49d['start']['nodeAfter']&&_0x2ec49d['end']['isAtStart'];}function Jt(_0x123eb9,_0x409e65,_0x2ec5a0,_0x27f487){const _0x4eadba=_0x5c6e61=>!_0x5c6e61['item']['is']('$textProxy')&&!_0x27f487['isObject'](_0x5c6e61['item']),_0x7dcdc5=_0x123eb9['start']['getLastMatchingPosition'](_0x4eadba),_0x42a45f=_0x123eb9['end']['getLastMatchingPosition'](_0x4eadba,{'direction':'backward'});return(!_0x123eb9['start']['isEqual'](_0x7dcdc5)||!_0x123eb9['end']['isEqual'](_0x42a45f))&&(_0x7dcdc5['isBefore'](_0x42a45f)?_0x2ec5a0['updateMarker'](_0x409e65,{'range':_0x2ec5a0['createRange'](_0x7dcdc5,_0x42a45f)}):_0x2ec5a0['removeMarker'](_0x409e65),!0x0);}function Kt(_0x36bbb2){return _0x37bf96(_0x36bbb2);}function Ht(_0x40bc86){const _0x5b9d33=_0x40bc86['start']['nodeAfter'];return _0x5b9d33&&_0x5b9d33['is']('element');}function qt(_0x5d4342,_0xe7e1b3){return null==_0x5d4342['end']['nodeBefore']&&_0x5d4342['end']['parent']==_0x5d4342['start']['nodeAfter']?zt(_0x5d4342['start']['nodeAfter'],_0xe7e1b3):_0x5d4342;}function zt(_0x21a5a1,_0x578d12){const _0x9aac8a=_0x578d12['schema']['isObject'](_0x21a5a1)||_0x578d12['schema']['isSelectable'](_0x21a5a1);return _0x578d12['createRange'](_0x578d12['createPositionAt'](_0x21a5a1,'before'),_0x9aac8a?_0x578d12['createPositionAfter'](_0x21a5a1):_0x578d12['createPositionAt'](_0x21a5a1,'end'));}function Wt(_0x301d02,_0x2733af,_0x428c79,_0x57d12b){return!!Qt(_0x301d02,_0x2733af)&&_0x428c79['end']['isEqual'](_0x57d12b['start']);}function Qt(_0x4b4cfc,_0x3ea981){if(!_0x4b4cfc['_isDataLoaded']||!_0x3ea981['_isDataLoaded'])return!0x1;const _0x17a266=new Set(Object['keys'](_0x4b4cfc['attributes'])),_0x1cec68=new Set(Object['keys'](_0x3ea981['attributes']));if(_0x17a266['delete']('groupId'),_0x1cec68['delete']('groupId'),0x0==_0x17a266['size']&&0x0==_0x1cec68['size'])return!0x0;if(_0x17a266['size']!=_0x1cec68['size'])return!0x1;const _0x2d7002={..._0x4b4cfc['attributes']},_0x202a92={..._0x3ea981['attributes']};return delete _0x2d7002['groupId'],delete _0x202a92['groupId'],JSON['stringify'](_0x2d7002)==JSON['stringify'](_0x202a92);}function Xt(_0x1d1b49,_0x273a50){const _0x6ac266=Yt(_0x1d1b49['attributes']),_0x10c231=Yt(_0x273a50);if(!_0x1d1b49['_isDataLoaded'])return!0x1;for(const _0x2333be of Object['keys'](_0x10c231))if(!_0x4e56bf(_0x6ac266[_0x2333be],_0x10c231[_0x2333be]))return!0x1;return!0x0;}function Yt(_0x260f22){const _0x4dea3a=Object['assign']({},_0x260f22);return delete _0x4dea3a['skipNestingCheck'],delete _0x4dea3a['tablePasteChainId'],_0x4dea3a;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2a540a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1d9b0d,_0x67b7b0,_0x399456,_0x484e69){super(),this['model']=_0x67b7b0,this['view']=_0x399456,this['commentThreadController']=_0x484e69,this['_editor']=_0x1d9b0d,this['_acceptCommand']=_0x1d9b0d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1d9b0d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x29c828,_0x2f27fc)=>_0x29c828||_0x2f27fc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x42954f=>_0x42954f&&this['_editor']['model']['canEditAt'](_0x67b7b0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1ee36a=>_0x1ee36a&&this['_editor']['model']['canEditAt'](_0x67b7b0['getRanges']())),this['_pendingAction']=null,_0x399456['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x399456,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x399456,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x399456,'change:isDirty',()=>{_0x399456['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 _0x68a49e=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x68a49e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x17c46f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x51c5b6,_0x2fa0b4,_0x5e1f00,_0x5dd9c6){super(_0x51c5b6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xa39d1f(_0x51c5b6,c(_0x51c5b6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2fa0b4['authoredAt']),this['bind']('authoredAt')['to'](_0x2fa0b4),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',_0x2fa0b4,'authoredAt',this,'descriptionParts',(_0xedb2d7,_0x47aa44,_0x379ac5)=>{const _0x2e896d=_0x379ac5['map'](_0x44ebdf=>ls(_0x44ebdf['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xedb2d7-0x1,_0x2fa0b4['author']['name'],_0x47aa44?_0x5dd9c6['formatDateTime'](_0x47aa44):'',new DOMParser()['parseFromString'](_0x2e896d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3bc4b4(),this['focusTracker']=new _0x2c1064(),this['keystrokes']=new _0xa1d652(),this['focusCycler']=new _0x149ad0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x613170=>_0x613170['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2fa0b4,this['_localUser']=_0x5e1f00,this['_config']=_0x5dd9c6,_0x5dd9c6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2d886a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x52dff0}=this['_config'];this['commentsListView']=new _0x52dff0(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',_0x28cb03=>_0x28cb03+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4a110d,_0x89f17f)=>_0x4a110d||!!_0x89f17f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2a19f6}=this['_config'],_0x5b039c=new _0x2a19f6(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4f199b=_0x5b039c['commentInputView'];return _0x5b039c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4f199b,'value',(_0x3f8c73,_0x1c1d5b,_0xf8125d)=>!!_0xf8125d||_0x3f8c73&&!_0x1c1d5b),_0x4f199b['on']('submit',(_0x34485b,_0x3ccf37)=>{this['fire']('addComment',_0x3ccf37),_0x4f199b['editor']['setData']('');}),_0x4f199b['on']('cancel',()=>this['focus']()),_0x4f199b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5b039c;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x682f8e,_0x284159,_0x14fa3e,_0x531460){super(_0x682f8e,_0x284159,_0x14fa3e,_0x531460),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1b4bc6=>_0x1b4bc6&&_0x1b4bc6[0x0]?_0x1b4bc6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3743fa,_0x2afa83)=>{let _0x487a8d='';for(const _0x7c16ea of _0x3743fa)_0x487a8d+='<p>'+ls(_0x7c16ea['content'],_0x7c16ea['color'])+'</p>';return _0x2afa83?_0x487a8d:ti(_0x487a8d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x531460['SuggestionView'](_0x682f8e,_0x284159,{'formatDateTime':_0x531460['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 _0x3c3dea=this['bindTemplate'],_0x500ca5=[this['suggestionView']];return this['commentsListView']&&_0x500ca5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x500ca5['push'](this['commentThreadInputView']),_0x500ca5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3c3dea['if']('isActive','ck-suggestion-wrapper--active'),_0x3c3dea['to']('type',_0x572b71=>'ck-suggestion-'+_0x572b71),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':_0x3c3dea['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x500ca5};}['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 we extends _0x17c46f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x53c70b,_0x514faa,_0x6268f8){super(_0x53c70b),this['_model']=_0x514faa,this['_config']=_0x6268f8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x514faa),this['acceptButton']=this['_createButton'](c(_0x53c70b,'Accept\x20suggestion'),_0x480249,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x53c70b,'Discard\x20suggestion'),_0x3ff562,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3eb0c9(_0x53c70b,_0x514faa['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3bc4b4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2c1064(),this['keystrokes']=new _0xa1d652(),this['focusCycler']=new _0x149ad0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xd2f4cd=>_0xd2f4cd['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x38ebc7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x38ebc7['innerHTML']=this['description'],this['on']('change:description',(_0x5df953,_0x480a87,_0x1bbdf)=>{_0x38ebc7['innerHTML']=_0x1bbdf;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x41d938=this['bindTemplate'],_0x1a2b2f=[{'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':_0x41d938['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x41d938['to']('authoredAt',_0x2033f5=>this['_config']['formatDateTime'](_0x2033f5))}]}]},{'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']&&_0x1a2b2f['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':_0x1a2b2f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x364fce,_0x16b728,_0x48f139,_0x27d17d,_0x5f2081){const _0xb66aa5=new _0x27ebc3(this['locale']);return _0xb66aa5['set']({'label':_0x364fce,'icon':_0x16b728,'tooltip':!0x0,'tooltipPosition':_0x5f2081}),_0xb66aa5['extendTemplate']({'attributes':{'class':_0x48f139}}),_0xb66aa5['on']('execute',()=>{this['fire'](_0x27d17d,this['_model']['id']);}),_0xb66aa5;}['_setupKeyboardNavigation'](){const _0x538e5b=this['element'];this['keystrokes']['listenTo'](_0x538e5b);for(const _0x178d1f of this['focusables'])this['focusTracker']['add'](_0x178d1f['element']),this['keystrokes']['listenTo'](_0x178d1f['element']);this['keystrokes']['set']('enter',(_0x2e252f,_0x4ec5af)=>{_0x538e5b===_0x2e252f['target']&&(this['focusCycler']['focusFirst'](),_0x4ec5af());}),this['keystrokes']['set']('esc',(_0x1c506d,_0x1f1d78)=>{_0x538e5b!==_0x1c506d['target']&&(this['focus'](),_0x1f1d78());});}}class d extends _0x13e4d9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x495ac4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b5d6e){super(_0x1b5d6e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1bf0b2=this['editor']['config'];_0x1bf0b2['define']('trackChanges.SuggestionThreadView',fe),_0x1bf0b2['define']('trackChanges.SuggestionView',we),_0x1bf0b2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1bf0b2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xfe6dc7,_0x110450){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x59f2fc,_0x47c6fe]of this['_handleControllerBuffer']){const _0x4ea5fb=this['_suggestionToController']['has'](_0x59f2fc);_0x4ea5fb||_0x47c6fe?_0x4ea5fb&&_0x47c6fe&&this['_destroyController'](_0x59f2fc):this['_initializeController'](_0x59f2fc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xfe6dc7,_0x110450);}['init'](){const _0xc955a5=this['editor'],_0x220e29=_0xc955a5['plugins']['get']('TrackChangesEditing'),_0x538655=_0xc955a5['plugins']['get']('Annotations'),_0x27159c=_0xc955a5['plugins']['get']('EditorAnnotations'),_0x1d63a2=_0xc955a5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x27159c['addSourceCollector'](()=>{const _0x8998ef=[];for(const [_0x493186,_0x3cf1d4]of Array['from'](this['_suggestionToController'])){const _0x22803e=_0x493186['getAllAdjacentSuggestions'](),_0x4553c2=[];for(const _0x58ac88 of _0x22803e){if(!_0x58ac88['isInContent'])continue;if(_0x58ac88['isMultiRange']){_0x4553c2['push'](..._0x58ac88['getRanges']());continue;}const _0x4afb55=_0x58ac88['getFirstRange']();if(_0x4553c2['length']>0x0){const _0x2b01c7=_0x4553c2[0x0]['getJoined'](_0x4afb55);if(_0x2b01c7){_0x4553c2[0x0]=_0x2b01c7;continue;}}_0x4553c2['push'](_0x4afb55);}_0x8998ef['push']([_0x3cf1d4['view'],_0x4553c2]);}return _0x8998ef;}),this['listenTo'](_0x220e29,'suggestionLoaded',(_0xd77b45,_0x46e5c6)=>{this['listenTo'](_0x46e5c6,'change:previous',(_0x1e17ec,_0x110e9a,_0x31e9e6,_0x5200f4)=>{_0x46e5c6['isInContent']&&(null==_0x31e9e6?(this['_updateController'](_0x5200f4['head']),this['_handleSuggestionControllerDelayed'](_0x46e5c6,!0x1)):(this['_updateController'](_0x31e9e6['head']),null==_0x5200f4&&this['_handleSuggestionControllerDelayed'](_0x46e5c6,!0x0)));}),null!==_0x46e5c6['previous']?this['_updateController'](_0x46e5c6['head']):this['_handleSuggestionControllerDelayed'](_0x46e5c6,!0x1);}),this['listenTo'](_0x220e29,'suggestionUnloaded',(_0x4f86d3,_0x8f8650,_0x8f0414)=>{this['stopListening'](_0x8f8650,'change:previous'),this['_handleControllerBuffer']['delete'](_0x8f8650),this['_suggestionToController']['has'](_0x8f8650)&&this['_destroyController'](_0x8f8650),_0x8f0414&&this['_updateController'](_0x8f0414['head']);}),this['listenTo'](_0x220e29,'suggestionChanged',(_0x30c1f6,_0x5da86d)=>{this['_updateController'](_0x5da86d);}),this['listenTo'](_0x538655,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1d63a2,'addComment',(_0x4adf3b,{threadId:_0x1627ea,isFromAdapter:_0x5d3b10})=>{if(_0x5d3b10||!_0x220e29['hasSuggestion'](_0x1627ea))return;const _0x449cdc=_0x220e29['getSuggestion'](_0x1627ea);this['_suggestionToController']['get'](_0x449cdc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x509100=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41095e;for(const _0xae12ad in _0x509100){const _0x427a20=_0xae12ad,_0x2679eb=_0x509100[_0x427a20];if('trackChangesLicenseKeyValid'==_0x2679eb||'trackChangesLicenseKeyInvalid'==_0x2679eb||'trackChangesLicenseKeyExpired'==_0x2679eb||'trackChangesLicenseKeyDomainLimit'==_0x2679eb||'trackChangesLicenseKeyNotAllowed'==_0x2679eb||'trackChangesLicenseKeyEvaluationLimit'==_0x2679eb||'trackChangesLicenseKeyTrialLimit'==_0x2679eb||'trackChangesLicenseKeyUsageLimit'==_0x2679eb){delete _0x509100[_0x427a20],_0x41095e=_0x2679eb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x41095e&&_0x509100['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x41095e&&_0x509100['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x41095e&&_0x509100['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x41095e&&_0x509100['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x41095e&&_0x509100['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x41095e&&_0x509100['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x41095e&&_0x509100['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x25b6e9=this['editor']['plugins']['get']('Annotations'),_0x433403=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44ef87=Array['from'](_0x25b6e9['activeAnnotations'],_0x24cd01=>_0x24cd01['innerView'])['filter'](_0x501622=>this['_viewToController']['has'](_0x501622)),_0x103b08=[];for(const _0x1d9c51 of _0x44ef87){const _0x4981b5=this['_viewToController']['get'](_0x1d9c51)['model']['getAllAdjacentSuggestions']();_0x103b08['push'](..._0x4981b5['reduce']((_0x4a6b30,_0x41f6f6)=>[..._0x4a6b30,..._0x41f6f6['getMarkerNames']()],[]));}_0x433403['activeMarkers']=_0x103b08;}['_addUIComponentsToFactory'](){const _0x34cb99=this['editor'],_0x50b5ea=_0x34cb99['locale'],_0x2a0958=c(_0x50b5ea,'Track\x20changes'),_0x185b95=new _0x147561([{'type':'switchbutton','model':new _0x4dfde1({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a0958,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4dfde1({'withText':!0x0,'label':c(_0x50b5ea,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4dfde1({'withText':!0x0,'label':c(_0x50b5ea,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4dfde1({'withText':!0x0,'label':c(_0x50b5ea,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4dfde1({'withText':!0x0,'label':c(_0x50b5ea,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x34cb99['plugins']['has']('TrackChangesPreview')&&_0x185b95['addMany']([{'type':'separator'},{'type':'button','model':new _0x4dfde1({'withText':!0x0,'label':c(_0x50b5ea,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x563be1 of _0x185b95)if(ke(_0x563be1)){const _0x465d01=_0x34cb99['commands']['get'](_0x563be1['model']['commandName']);_0x563be1['model']['bind']('isOn','isEnabled')['to'](_0x465d01,'value','isEnabled');}_0x34cb99['ui']['componentFactory']['add']('trackChanges',_0xa5416f=>this['_createToolbarButton'](_0xa5416f,_0x185b95,_0x2a0958)),_0x34cb99['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2dd01b=>this['_createMenuBarMenu'](_0x2dd01b,_0x185b95,_0x2a0958));}['_createToolbarButton'](_0x288f9f,_0x2b84e5,_0x1f4c5c){const _0x3c97cf=_0x39f7cc(_0x288f9f,_0x1e772b),_0x3a6f48=this['editor']['commands']['get']('trackChanges');_0x3c97cf['buttonView']['set']({'tooltip':_0x1f4c5c,'label':_0x1f4c5c,'icon':_0x473818}),_0x3c97cf['buttonView']['bind']('isOn')['to'](_0x3a6f48,'value'),_0x3c97cf['buttonView']['on']('execute',()=>{_0x3a6f48['execute'](),this['editor']['editing']['view']['focus']();}),_0x439b92(_0x3c97cf,_0x2b84e5,{'role':'menu'});const _0x79ed2a=[];for(const _0x361c90 of _0x2b84e5)ke(_0x361c90)&&_0x79ed2a['push'](this['editor']['commands']['get'](_0x361c90['model']['commandName']));const _0x2777e3=_0x3c97cf['buttonView'];return _0x2777e3['actionView']['unbind']('isEnabled'),_0x2777e3['arrowView']['unbind']('isEnabled'),_0x2777e3['actionView']['bind']('isEnabled')['to'](_0x3a6f48,'isEnabled'),_0x2777e3['arrowView']['bind']('isEnabled')['toMany'](_0x79ed2a,'isEnabled',(..._0x353d15)=>_0x353d15['some'](_0x46c2d0=>_0x46c2d0)),_0x3c97cf['on']('execute',_0x1c86c5=>{this['editor']['execute'](_0x1c86c5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3c97cf;}['_createMenuBarMenu'](_0x5382a4,_0x42bc68,_0x1fecf0){const _0x194797=new _0x671883(_0x5382a4),_0x37e620=this['editor']['commands']['get']('trackChanges');_0x194797['buttonView']['set']({'label':_0x1fecf0,'icon':_0x473818});const _0x2c7d62=new _0x113648(_0x5382a4);for(const _0x4b1c6b of _0x42bc68){if('separator'==_0x4b1c6b['type']){_0x2c7d62['items']['add'](new _0x14fcd7(_0x5382a4));continue;}const _0x1a47f7=new _0x2253eb(_0x5382a4,_0x194797),_0x1b6410=new _0x43e1a3(_0x5382a4),_0xd25636=_0x4b1c6b['model'];_0x1b6410['bind'](...Object['keys'](_0xd25636))['to'](_0xd25636),_0x1b6410['delegate']('execute')['to'](_0x194797),_0x1b6410['on']('execute',()=>{this['editor']['execute'](_0xd25636['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a47f7['children']['add'](_0x1b6410),_0x2c7d62['items']['add'](_0x1a47f7);}return _0x194797['bind']('isEnabled')['to'](_0x37e620,'isEnabled'),_0x194797['panelView']['children']['add'](_0x2c7d62),_0x194797;}['_initializeController'](_0x9ca485){const _0x5b3a9d=this['editor'],_0x4c79ca=_0x5b3a9d['config'],_0x240b40=_0x5b3a9d['plugins']['get']('Annotations'),_0x48a820=_0x5b3a9d['plugins']['get']('CommentsRepository'),_0x3b882f=_0x5b3a9d['plugins']['get']('EditorAnnotations'),_0x547a78=_0x5b3a9d['plugins']['get'](_0x495ac4)['me'],_0x5da9d3=_0x4c79ca['get']('trackChanges')['SuggestionThreadView'],_0x4dfd57=_0x4c79ca['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3d4489,CommentThreadInputView:_0x1d21e1}=_0x5b3a9d['plugins']['get']('CommentsUI');let _0x30c4eb,_0x477183,_0x3f675f;this['_annotationViews']['has'](_0x9ca485['id'])?(_0x477183=this['_annotationViews']['get'](_0x9ca485['id']),_0x30c4eb=_0x477183['mainView']):(_0x30c4eb=new _0x5da9d3(_0x5b3a9d['locale'],_0x9ca485,_0x547a78,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4c79ca['get']('comments.editorConfig'),'licenseKey':_0x4c79ca['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4c79ca['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4c79ca['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4c79ca['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d01b1(_0x4c79ca['get']('locale'),_0x5b3a9d['locale']),'CommentView':_0x4c79ca['get']('comments')['CommentView'],'CommentsListView':_0x3d4489,'CommentThreadInputView':_0x1d21e1,'SuggestionView':_0x4dfd57}),_0x30c4eb['suggestionView']['acceptButton']['on']('execute',()=>{_0x5b3a9d['editing']['view']['focus']();}),_0x30c4eb['suggestionView']['discardButton']['on']('execute',()=>{_0x5b3a9d['editing']['view']['focus']();}),_0x477183=_0x240b40['createAnnotationView'](this['editor']['locale'],_0x30c4eb),_0x477183['bind']('isDirty')['to'](_0x30c4eb,'isDirty'),_0x477183['bind']('length')['to'](_0x30c4eb),_0x477183['bind']('type')['to'](_0x30c4eb,'type',_0x32cf77=>'suggestion-'+_0x32cf77),_0x30c4eb['on']('escape',()=>{_0x3f675f['fire']('escape');}),this['_annotationViews']['set'](_0x9ca485['id'],_0x477183));const _0x2ab4a3=_0x48a820['createCommentThreadController'](_0x9ca485['commentThread'],_0x30c4eb),_0x5b017a=new pe(_0x5b3a9d,_0x9ca485,_0x30c4eb,_0x2ab4a3),_0x5dd0de=_0x9ca485['getAllAdjacentSuggestions']()['filter'](_0x29fe32=>_0x29fe32['isInContent']);_0x30c4eb['descriptionParts']=_0x5b3a9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5dd0de),this['_suggestionToController']['set'](_0x9ca485,_0x5b017a),this['_viewToController']['set'](_0x30c4eb,_0x5b017a),_0x3f675f=_0x240b40['createAnnotation']({'view':_0x477183,'target':()=>{const _0x23420d=[],_0x4f9c7a=_0x9ca485['getAllAdjacentSuggestions']()['filter'](_0x5649ea=>_0x5649ea['isInContent']);for(const _0x246429 of _0x4f9c7a)_0x23420d['push'](..._0x246429['getMarkers']());return _0x1683e6(_0x5b3a9d['editing'],_0x23420d);},'type':()=>'suggestion-'+_0x5b017a['view']['type']}),_0x48a820['_bindAnnotationToEditors'](_0x30c4eb,_0x3f675f),_0x240b40['add'](_0x3f675f),_0x3b882f['registerAnnotation'](_0x3f675f);}['_destroyController'](_0x5eec3c){const _0x4a21e3=this['editor']['plugins']['get']('CommentsRepository'),_0x1f04ef=this['editor']['plugins']['get']('Annotations'),_0x1d2dac=this['_suggestionToController']['get'](_0x5eec3c),_0x30678e=_0x1d2dac['view'],_0x2f5276=_0x1f04ef['getByInnerView'](_0x30678e);_0x4a21e3['_unbindEditors'](_0x30678e),_0x2f5276&&_0x1f04ef['remove'](_0x2f5276),this['_suggestionToController']['delete'](_0x5eec3c),this['_viewToController']['delete'](_0x30678e),_0x1d2dac['destroy']();}['_updateController'](_0xaee9e2){if(!_0xaee9e2['isInContent']||!this['_suggestionToController']['has'](_0xaee9e2))return;const _0x2a9d07=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13fa7d=this['_suggestionToController']['get'](_0xaee9e2),_0x51d194=_0xaee9e2['getAllAdjacentSuggestions']();_0x13fa7d['view']['descriptionParts']=_0x2a9d07['descriptionFactory']['getDescriptions'](_0x51d194);}['destroy'](){for(const _0x155a70 of this['_suggestionToController']['keys']())this['_destroyController'](_0x155a70);for(const _0x19c344 of this['_annotationViews']['values']())_0x19c344['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x525879){return'model'in _0x525879;}class k extends _0x13e4d9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x44e9a2){this['editor']['plugins']['get'](p)['adapter']=_0x44e9a2;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x39c105){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x39c105);}['getSuggestions']({skipNotAttached:_0x3e1e6f=!0x1,toJSON:_0x3ba8a1=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3e1e6f,'toJSON':_0x3ba8a1});}['getSuggestion'](_0x36eb23){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x36eb23);}}const w=['Pagination'];class T extends _0x13e4d9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5d8a91=this['editor'];if(_0x5d8a91['config']['define']('trackChangesData.editorCreator',_0x31fea8=>{const _0x3b70ec=_0x5d8a91['model']['document']['getRootNames']()['reduce']((_0x4448fd,_0x20ef92)=>(_0x4448fd[_0x20ef92]='',_0x4448fd),{});return _0x5d8a91['constructor']['create'](_0x3b70ec,_0x31fea8);}),'function'!=typeof _0x5d8a91['config']['get']('trackChangesData')['editorCreator'])throw new _0x214f9c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x22f046){return N(this['editor'],!0x0,_0x22f046);}['getDataWithDiscardedSuggestions'](_0x6ffe44){return N(this['editor'],!0x1,_0x6ffe44);}}class D extends _0x13e4d9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24158c){function _0x5a99c6(_0x1b5298){return _0x1b5298['map'](_0x52a1c2=>String['fromCharCode'](_0x52a1c2))['join']('');}super(_0x24158c),this['result']='end',_0x24158c[_0x5a99c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a99c6([0x76,0x69,0x65,0x77])][_0x5a99c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a99c6([0x61,0x75,0x74,0x6f]),_0x24158c[_0x5a99c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5a99c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a99c6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5a99c6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5a99c6([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 Ge(_0x346247){return void 0x0!==_0x346247['getRootsAttributes'];}async function N(_0x1dc498,_0x568443,_0x16e58f){const _0x1789f2=_0x2b0666(_0x1dc498,w);_0x1789f2['plugins']['push'](p,D),_0x1789f2['rootsAttributes']=Ge(_0x1dc498)?_0x1dc498['getRootsAttributes']():void 0x0;const _0x48c18a=document['createDocumentFragment'](),_0x1b8796=_0x1dc498['config']['get']('trackChangesData')['editorCreator'],_0x540e03=await _0x1b8796(_0x1789f2,()=>function(_0x6c7232){const _0x118f56=document['createElement']('div');return _0x6c7232['appendChild'](_0x118f56),_0x118f56;}(_0x48c18a));!function(_0x2cd46b,_0x535249){const _0xb7fc35=_0x2cd46b['model']['document']['getRootNames']()['reduce']((_0x3b7ed5,_0x596153)=>(_0x3b7ed5[_0x596153]=_0x2cd46b['data']['get']({'rootName':_0x596153}),_0x3b7ed5),{}),_0x29399a=_0x2cd46b['plugins']['get']('Users')['users']['map'](_0x49bb55=>({'id':_0x49bb55['id'],'name':_0x49bb55['name']})),_0xe70eae=_0x2cd46b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5e8e5b=_0x2cd46b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a5886=_0x535249['plugins']['get']('Users'),_0x511c14=_0x535249['plugins']['get']('TrackChangesEditing'),_0x172420=_0x535249['plugins']['get']('CommentsRepository');for(const _0x527f9b of _0x172420['getCommentThreads']())_0x527f9b['remove']();for(const _0x5a247e of _0x29399a)_0x5a5886['getUser'](_0x5a247e['id'])||_0x5a5886['addUser'](_0x5a247e);_0x5a5886['me']||_0x5a5886['useAnonymousUser']();for(const _0x29c304 of _0x5e8e5b)_0x172420['addCommentThread'](_0x29c304);for(const _0x6dc1b5 of _0xe70eae)_0x511c14['addSuggestionData'](_0x6dc1b5);_0x535249['data']['set'](_0xb7fc35);}(_0x1dc498,_0x540e03),_0x540e03['execute'](_0x568443?'acceptAllSuggestions':'discardAllSuggestions');const _0x87dd41=Ge(_0x540e03)?_0x540e03['getFullData'](_0x16e58f):_0x540e03['data']['get'](_0x16e58f);return await _0x540e03['destroy'](),_0x87dd41;}class Me extends _0x17c46f{['options'];constructor(_0x2e31a0,_0x397e1b){super(_0x2e31a0),this['options']=_0x397e1b,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'](_0xcfe9b9,_0x498a0b){if(!this['element'])return;const _0x1cba27=[];for(const [_0x34c8dd,_0x57e3c9]of _0xcfe9b9){const _0xb8d7c9=document['createElement']('div');_0xb8d7c9['setAttribute']('data-ck-root-name',_0x34c8dd),_0xb8d7c9['className']=_0x57e3c9['classes']+'\x20ck-track-changes-preview__root-container',_0xb8d7c9['innerHTML']=_0x57e3c9['content'],_0x1cba27['push'](_0xb8d7c9);}_0x498a0b(this['element'],_0x1cba27),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x49fe28{constructor(_0x3ed1b4){super(_0x3ed1b4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x847b17=this['editor'],_0x23aa30=_0x847b17['locale'],_0x18bb6a=_0x847b17['plugins']['get']('Dialog');let _0x17aad1;const _0x35df88=function(_0x3b2543){const _0xb550d3={};if('editables'in _0x3b2543['ui']['view']){for(const [_0x3943df,_0x55cd03]of Object['entries'](_0x3b2543['ui']['view']['editables']))_0xb550d3[_0x3943df]=_0x55cd03['element'];}else _0xb550d3[_0x3b2543['model']['document']['getRootNames']()[0x0]]=_0x3b2543['ui']['view']['editable']['element'];return _0xb550d3;}(_0x847b17),_0x1f4942=function(_0x1a094d){let _0x571351=0x0;for(const _0x30f963 of Object['values'](_0x1a094d))_0x571351=Math['max'](_0x571351,_0x30f963['getBoundingClientRect']()['width']);let _0x3f9396=0x0;for(const _0x56ca13 of Object['values'](_0x1a094d))_0x3f9396+=_0x56ca13['getBoundingClientRect']()['height'];const _0x46f0c3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x8ed90f=Math['min'](_0x3f9396,_0x46f0c3);return{'width':_0x571351,'height':_0x8ed90f};}(_0x35df88);_0x18bb6a['show']({'id':'finalContentPreview','title':c(_0x23aa30,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x23aa30,{'dialogRects':_0x1f4942}),'onHide':()=>{_0x17aad1['detachFromDom']();},'onShow':()=>{_0x847b17['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1a5313=>{const _0x100988=this['_standarizeRootsData'](_0x1a5313,_0x847b17,_0x35df88);_0x18bb6a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x100988,_0x847b17['config']['get']('trackChanges.preview.renderFunction'));}),_0x17aad1=new _0x5df9f9(_0x23aa30,[_0x18bb6a['view']]),_0x17aad1['attachToDom'](),_0x17aad1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x847b17['once']('destroy',()=>{_0x17aad1['detachFromDom']();});const _0x557377=_0x18bb6a['view']['headerView']['class'];_0x18bb6a['view']['headerView']['class']=_0x557377?_0x557377+'\x20ck-reset_all':'ck-reset_all',_0x18bb6a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x18bb6a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3f57c5=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4fdd79=_0x3f57c5['previewMode'],_0x591ae6={};if('$labels'===_0x4fdd79){for(const _0x248fbc of _0x3f57c5['getMergeFieldsIds']())_0x591ae6[_0x248fbc]=_0x3f57c5['getLabel'](_0x248fbc)||_0x248fbc;}else{const _0x125a1e='$defaultValues'===_0x4fdd79?_0x3f57c5['getDefaultValues']():_0x3f57c5['getDataSetValues'](_0x4fdd79,!0x0);for(const _0x1111b8 of Object['entries'](_0x125a1e)){const [_0x160148,_0x5815ab]=_0x1111b8;_0x591ae6[_0x160148]=null!==_0x5815ab?_0x5815ab:_0x3f57c5['getLabel'](_0x160148)||_0x160148;}}return{'mergeFieldsData':_0x591ae6};}['_standarizeRootsData'](_0x4a1808,_0x2d6bde,_0x46f211){let _0x36b8ce;if('string'==typeof _0x4a1808){const _0x34c047=_0x2d6bde['model']['document']['getRootNames']()[0x0];_0x36b8ce={[_0x34c047]:_0x4a1808};}else _0x36b8ce=_0x4a1808;const _0x3ad9b5=this['_fixMediaEmbeds'](_0x36b8ce,_0x2d6bde),_0x208956=function(_0x5c52a1,_0x325eb8){for(const [_0x5743ee,_0x164cbc]of _0x5c52a1)_0x164cbc['classes']=_0x325eb8[_0x5743ee]['classList']['value']['replace']('ck-focused','');return _0x5c52a1;}(this['_sortRoots'](_0x2d6bde)['reduce']((_0x38650d,_0x2b8c2b)=>(_0x38650d['push']([_0x2b8c2b,{'content':_0x3ad9b5[_0x2b8c2b],'classes':''}]),_0x38650d),[]),_0x46f211);return _0x208956;}['_fixMediaEmbeds'](_0x46d500,_0x466607){if(!_0x466607['plugins']['has']('MediaEmbedEditing'))return _0x46d500;const _0xf816c=_0x466607['plugins']['get']('MediaEmbedEditing');for(const [_0x12826e,_0x272262]of Object['entries'](_0x46d500)){const _0x5c9e53=document['createElement']('div');_0x5c9e53['innerHTML']=_0x272262,(_0x5c9e53['querySelectorAll']('figure.media')['forEach'](_0x6816=>{const _0xc7e0b4=_0x6816['querySelector']('oembed');if(_0xc7e0b4){const _0x38a5ff=_0xc7e0b4['getAttribute']('url');if(_0x38a5ff){const _0x39e436=_0xf816c['registry']['getMediaViewElement'](new _0x42aa95(_0x466607['editing']['view']['document']),_0x38a5ff,{'elementName':'','renderForEditingView':!0x0}),_0x4672c4=document['createElement']('div');_0x4672c4['classList']['add']('ck-media__wrapper'),_0x39e436['render'](_0x4672c4,_0x466607['editing']['view']['domConverter']),_0xc7e0b4['replaceWith'](_0x4672c4);}}}),_0x46d500[_0x12826e]=_0x5c9e53['innerHTML']);}return _0x46d500;}['_sortRoots'](_0x4a838e){if(!function(_0x536ba9){return void 0x0!==_0x536ba9['getRootsAttributes'];}(_0x4a838e))return _0x4a838e['model']['document']['getRootNames']();const _0x113497=[],_0x4ffe43=new Map();for(const _0x7a2a7a of _0x4a838e['model']['document']['getRootNames']()){const _0x38711a=_0x4a838e['editing']['view']['getDomRoot'](_0x7a2a7a)['getClientRects']()['item'](0x0);_0x113497['push'](_0x7a2a7a),_0x4ffe43['set'](_0x7a2a7a,_0x38711a);}return _0x113497['sort']((_0x3d8896,_0x1b3810)=>{const _0x57ded2=_0x4ffe43['get'](_0x3d8896),_0x4c76c7=_0x4ffe43['get'](_0x1b3810);return _0x57ded2['y']-_0x4c76c7['y']||_0x57ded2['x']-_0x4c76c7['x'];}),_0x113497;}}class te extends _0x13e4d9{static get['requires'](){return[T,_0xddda70];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48097c){super(_0x48097c),_0x48097c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x48097c['config']['define']('trackChanges.preview.renderFunction',(_0x5829e5,_0x4f51d1)=>{for(const _0x4a6168 of _0x4f51d1)_0x5829e5['appendChild'](_0x4a6168);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|