@ckeditor/ckeditor5-track-changes 47.1.0-alpha.1 → 47.1.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/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/ai.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/aiquickactions.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/lineheight.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x345606(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x47e5fb,_0x42567f){super(),this['id']=_0x42567f['id'],this['type']=_0x42567f['type'],this['subType']=_0x42567f['subType']||null,this['author']=_0x42567f['author'],this['creator']=_0x42567f['creator']||_0x42567f['author'],this['isExternal']=Boolean(_0x42567f['attributes']&&_0x42567f['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x42567f['originalSuggestionId']||null,this['_model']=_0x47e5fb,this['_onAccept']=_0x42567f['onAccept'],this['_onDiscard']=_0x42567f['onDiscard'],this['_onAttributesChange']=_0x42567f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x42567f['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 _0x2c8202=this;for(;_0x2c8202['previous'];)_0x2c8202=_0x2c8202['previous'];return _0x2c8202;}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'](_0x5dad1c){this['_markerNames']['add'](_0x5dad1c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44e352=>this['_model']['markers']['get'](_0x44e352))['filter'](_0x2a68b9=>_0x2a68b9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2c0af4=>{for(const _0x33e612 of this['getMarkers']())_0x2c0af4['removeMarker'](_0x33e612);}),this['_markerNames']['clear']();}['removeMarker'](_0x33ac52){this['_model']['change'](_0x1c0ebd=>{_0x1c0ebd['removeMarker'](_0x33ac52);}),this['_markerNames']['delete'](_0x33ac52);}['addRange'](_0x160da2){const _0x3f50ee='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x3f50ee),this['_model']['change'](_0xe2638a=>{_0xe2638a['addMarker'](_0x3f50ee,{'range':_0x160da2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xb1082e){for(const _0x378510 of this['getRanges']())if(_0x378510['isIntersecting'](_0xb1082e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47d485=>_0x47d485['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5fc31f,_0x4d9cee)=>[..._0x5fc31f,..._0x4d9cee['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3c1e2f=this['getRanges']();if(0x1!=_0x3c1e2f['length'])return null;const _0x128d89=_0x3c1e2f[0x0],_0x5c1846=_0x128d89['start']['nodeAfter'],_0x48d3fc=_0x128d89['end']['nodeBefore'];return _0x5c1846 instanceof _0x3e1cf6?_0x5c1846!=_0x48d3fc?null:_0x5c1846: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 _0x547aa6=[];let _0x180937=this['head'];for(;_0x180937;)_0x547aa6['push'](_0x180937),_0x180937=_0x180937['next'];return _0x547aa6;}['setAttribute'](_0x53cd8b,_0xe07ea0){const _0x1c56da=_0x16bf50(this['attributes']);_0x1ef4b5(_0x1c56da,_0x53cd8b,_0xe07ea0),_0xa08205(_0x1c56da,this['attributes'])||(this['attributes']=_0x1c56da,this['_onAttributesChange'](_0x1c56da));}['removeAttribute'](_0x386ad6){const _0x59e4fe=_0x16bf50(this['attributes']);_0x481536(_0x59e4fe,_0x386ad6),_0xa08205(_0x59e4fe,this['attributes'])||(this['attributes']=_0x59e4fe,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 _0x4fda17()['substr'](0x1,0x5);}}function o(_0x46856e,_0x39548f,_0x1ba7b4){const _0x2de5e4=_0x46856e['t'],t=_0x46856e['t'];switch(_0x39548f){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',_0x1ba7b4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1ba7b4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1ba7b4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1ba7b4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1ba7b4);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',_0x1ba7b4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1ba7b4);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',_0x1ba7b4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1ba7b4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1ba7b4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1ba7b4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1ba7b4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1ba7b4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1ba7b4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1ba7b4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1ba7b4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1ba7b4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1ba7b4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1ba7b4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1ba7b4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1ba7b4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1ba7b4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1ba7b4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1ba7b4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1ba7b4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1ba7b4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1ba7b4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1ba7b4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1ba7b4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1ba7b4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1ba7b4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1ba7b4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1ba7b4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1ba7b4);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'},_0x1ba7b4);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1ba7b4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1ba7b4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1ba7b4);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 _0x2de5e4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1ba7b4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2de5e4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1ba7b4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1ba7b4);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'},_0x1ba7b4);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'},_0x1ba7b4);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'},_0x1ba7b4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x39548f;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x227983,_0x2289fb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x227983,this['_locale']=_0x2289fb;}['getDescriptions'](_0x440066){const _0x3efbd1=[],_0x10d8b7=new Set(),_0x3e4c24=new Set();for(let _0x47f1b1=0x0;_0x47f1b1<_0x440066['length'];_0x47f1b1++){const _0x4586b2=_0x440066[_0x47f1b1];if(!_0x4586b2['isInContent'])continue;const _0x3ef8e4=this['_handleCustomCallbackDescription'](_0x4586b2);if(_0x3ef8e4){if(null!=_0x4586b2['subType']){if(_0x10d8b7['has'](_0x4586b2['subType']))continue;_0x10d8b7['add'](_0x4586b2['subType']);}_0x3efbd1['push'](_0x3ef8e4);}else{if('attribute'==_0x4586b2['type']){const _0x579c95=_0x4586b2['data']['key'];if(_0x3e4c24['has'](_0x579c95))continue;_0x3e4c24['add'](_0x4586b2['data']['key']),_0x579c95==m?this['_handleRenameSuggestionDescription'](_0x3efbd1,_0x4586b2):this['_handleAttributeSuggestionDescription'](_0x3efbd1,_0x4586b2);continue;}'insertion'!=_0x4586b2['type']&&'deletion'!=_0x4586b2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3efbd1,_0x4586b2,_0x440066[_0x47f1b1+0x1]);}}return this['_resolveDescriptionItems'](_0x3efbd1);}['registerDescriptionCallback'](_0x41a2dd){this['_customCallbacks']['push'](_0x41a2dd);}['registerElementLabel'](_0x2861d9,_0x10d4f5,_0x2a7b7b=_0x48f7b8['normal']){'function'==typeof _0x2861d9?_0x587b3d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2861d9,'label':_0x10d4f5,'priority':_0x2a7b7b}):this['_itemLabels']['set'](_0x2861d9,_0x10d4f5);}['registerAttributeLabel'](_0x1972ef,_0x25e076){this['_attributeLabels']['set'](_0x1972ef,_0x25e076);}['getItemLabel'](_0x5dc97d,_0x24f097=0x1){let _0x1a5300;for(const _0x5958c0 of this['_itemLabelsCallbacks'])if(_0x5958c0['matchingCallback'](_0x5dc97d)){_0x1a5300=_0x5958c0['label'];break;}return _0x1a5300||(_0x1a5300=this['_itemLabels']['get'](_0x5dc97d['name'])),_0x1a5300?_0x1a5300(_0x24f097):0x1!==_0x24f097?_0x24f097+'\x20'+_0x5dc97d['name']+'s':''+_0x5dc97d['name'];}['_addDescriptionItems'](_0x3e68eb,_0x3615c4){const _0x9eb147=_0x3615c4['getFirstRange']()['getWalker'](),_0x2a8a61='insertion'==_0x3615c4['type']?'add':'remove';for(const _0x4b70ea of _0x9eb147){const _0x447191=_0x4b70ea['item'],_0x160a25=_0x3e68eb[_0x3e68eb['length']-0x1];if(_0x447191['is']('$textProxy'))_0x160a25&&_0x160a25['type']['indexOf']('Container')>-0x1&&_0x3e68eb['pop'](),_0x160a25&&'text'==_0x160a25['type']?_0x160a25[_0x2a8a61]+=_0x447191['data']:_0x3e68eb['push']({'type':'text','add':'add'==_0x2a8a61?_0x447191['data']:'','remove':'remove'==_0x2a8a61?_0x447191['data']:''});else{if(this['_schema']['isObject'](_0x447191)){const _0x12de8b=_0x447191;if(_0x160a25&&_0x160a25['type']['indexOf']('Container')>-0x1&&_0x3e68eb['pop'](),'elementEnd'==_0x4b70ea['type'])continue;_0x160a25&&_0x160a25['type']==_0x2a8a61+'Object'&&_0x160a25['element']['name']==_0x12de8b['name']?_0x160a25['quantity']++:_0x3e68eb['push']({'type':_0x2a8a61+'Object','element':_0x12de8b,'quantity':0x1}),_0x9eb147['skip'](_0x25f821=>!('elementEnd'==_0x25f821['type']&&_0x25f821['item']==_0x447191));}else{if(this['_schema']['checkChild'](_0x447191,'$text')||_0x447191['is']('element','softBreak')){const _0x27953b=_0x447191;if('add'==_0x2a8a61&&'elementStart'==_0x4b70ea['type']||'remove'==_0x2a8a61&&'elementEnd'==_0x4b70ea['type'])continue;if(_0x160a25&&-0x1==_0x160a25['type']['indexOf']('Container')){'text'==_0x160a25['type']&&(_0x160a25[_0x2a8a61]+='\x0a');continue;}let _0x4478d3;if(_0x4478d3='add'==_0x2a8a61?_0x27953b['nextSibling']&&!this['_schema']['isObject'](_0x27953b['nextSibling'])?_0x27953b['nextSibling']:null:_0x27953b['previousSibling']&&!this['_schema']['isObject'](_0x27953b['previousSibling'])?_0x27953b['previousSibling']:null,_0x27953b['isEmpty']||_0x4478d3&&_0x4478d3['isEmpty']){const _0x3fc5b5=_0x4478d3&&_0x4478d3['isEmpty']?_0x4478d3:_0x27953b;_0x160a25&&_0x160a25['type']==_0x2a8a61+'EmptyContainer'&&_0x160a25['element']['name']==_0x3fc5b5['name']?_0x160a25['quantity']++:_0x3e68eb['push']({'type':_0x2a8a61+'EmptyContainer','element':_0x3fc5b5,'quantity':0x1});}else _0x3e68eb['push']({'type':_0x2a8a61+'Container','element':_0x27953b});}}}}}['_resolveDescriptionItems'](_0x3bc959){const _0x35d3fc=this['_locale'],_0x2fb1af=[],_0x48437d=[],_0x2c559f=[];for(const _0x2d0e0b of _0x3bc959)switch(_0x2d0e0b['type']){case'text':if(_0x2d0e0b['add']=_0x2d0e0b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2d0e0b['remove']=_0x2d0e0b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2d0e0b['add']&&''!=_0x2d0e0b['remove']){_0x2fb1af['push']({'type':'replace','content':o(_0x35d3fc,'REPLACE_TEXT',['\x22'+_0x2d0e0b['remove']+'\x22','\x22'+_0x2d0e0b['add']+'\x22'])});continue;}if(null!=_0x2d0e0b['add']['match'](/^ +$/)){_0x2fb1af['push']({'type':'insertion','content':o(_0x35d3fc,'*Insert:*\x20%0',o(_0x35d3fc,'ELEMENT_SPACE',_0x2d0e0b['add']['length']))});continue;}if(null!=_0x2d0e0b['remove']['match'](/^ +$/)){_0x2fb1af['push']({'type':'deletion','content':o(_0x35d3fc,'*Remove:*\x20%0',o(_0x35d3fc,'ELEMENT_SPACE',_0x2d0e0b['remove']['length']))});continue;}if(''!=_0x2d0e0b['add']){_0x2fb1af['push']({'type':'insertion','content':o(_0x35d3fc,'*Insert:*\x20%0','\x22'+_0x2d0e0b['add']+'\x22')});continue;}_0x2fb1af['push']({'type':'deletion','content':o(_0x35d3fc,'*Remove:*\x20%0','\x22'+_0x2d0e0b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2fb1af['push']({'type':'insertion','content':o(_0x35d3fc,'*Insert:*\x20%0',this['getItemLabel'](_0x2d0e0b['element'],_0x2d0e0b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2fb1af['push']({'type':'deletion','content':o(_0x35d3fc,'*Remove:*\x20%0',this['getItemLabel'](_0x2d0e0b['element'],_0x2d0e0b['quantity']))});continue;case'addContainer':_0x2fb1af['push']({'type':'insertion','content':o(_0x35d3fc,'*Split:*\x20%0',this['getItemLabel'](_0x2d0e0b['element'],_0x2d0e0b['quantity']))});continue;case'removeContainer':_0x2fb1af['push']({'type':'deletion','content':o(_0x35d3fc,'*Merge:*\x20%0',this['getItemLabel'](_0x2d0e0b['element'],_0x2d0e0b['quantity']))});continue;case'addFormat':_0x48437d['push'](_0x2d0e0b['key']);continue;case'removeFormat':_0x2c559f['push'](_0x2d0e0b['key']);continue;default:_0x2fb1af['push'](_0x2d0e0b);}if(_0x48437d['length']){const _0xbe1c97=_0x48437d['map'](_0x4d21ab=>this['_attributeLabels']['has'](_0x4d21ab)?this['_attributeLabels']['get'](_0x4d21ab):_0x4d21ab)['join'](',\x20');_0x2fb1af['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xbe1c97)});}if(_0x2c559f['length']){const _0x5a9bdf=_0x2c559f['map'](_0x3cea4a=>this['_attributeLabels']['has'](_0x3cea4a)?this['_attributeLabels']['get'](_0x3cea4a):_0x3cea4a)['join'](',\x20');_0x2fb1af['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5a9bdf)});}return _0x2fb1af;}['_handleCustomCallbackDescription'](_0xbd4d20){for(const _0x1c0224 of this['_customCallbacks']){const _0x51fffb=_0x1c0224(_0xbd4d20);if(_0x51fffb&&'type'in _0x51fffb)return _0x51fffb;}}['_handleAttributeSuggestionDescription'](_0x5a9fce,_0x389653){const _0x470e25=_0x389653['data'],_0x16ead3=void 0x0===_0x470e25['newValue']?'removeFormat':'addFormat';_0x5a9fce['push']({'type':_0x16ead3,'key':_0x470e25['key']});}['_handleRenameSuggestionDescription'](_0x5e8812,_0x23853b){_0x5e8812['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x23853b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x239edc,_0x305d5a,_0xacb004){if(this['_addDescriptionItems'](_0x239edc,_0x305d5a),_0xacb004&&_0xacb004['getFirstRange']()&&!_0x305d5a['getFirstRange']()['end']['isEqual'](_0xacb004['getFirstRange']()['start'])){const _0x1b8df9=_0x239edc[_0x239edc['length']-0x1],_0x286fb9='insertion'==_0x305d5a['type']?'add':'remove';_0x1b8df9&&'text'==_0x1b8df9['type']&&(_0x1b8df9[_0x286fb9]+='\x0a');}}}class V extends _0x555e71{['afterInit'](){const _0x8fee85=this['editor'],_0x32ec99=_0x8fee85['plugins']['get']('TrackChangesEditing');_0x8fee85['commands']['get']('showAIAssistant')&&_0x32ec99['enableCommand']('showAIAssistant');}}class F extends _0x555e71{['afterInit'](){const _0x554ba6=this['editor'],_0x4c1266=_0x554ba6['plugins']['get']('TrackChangesEditing');_0x554ba6['commands']['get']('toggleAi')&&_0x4c1266['enableCommand']('toggleAi');}}class G extends _0x555e71{['afterInit'](){const _0x4bd2b6=this['editor'],_0x5b43e0=_0x4bd2b6['plugins']['get']('TrackChangesEditing');_0x4bd2b6['commands']['get']('aiQuickAction')&&_0x5b43e0['enableCommand']('aiQuickAction');}}class L extends _0x555e71{['afterInit'](){const _0x57ad04=this['editor'],_0x52a964=_0x57ad04['locale'];if(!_0x57ad04['plugins']['has']('AlignmentEditing'))return;const _0xd9f8cc=_0x57ad04['plugins']['get']('TrackChangesEditing');_0xd9f8cc['enableDefaultAttributesIntegration']('alignment'),_0xd9f8cc['registerBlockAttribute']('alignment'),_0xd9f8cc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x52a964,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e3c31=this['editor'],_0x420f39=_0x2e3c31['locale'];_0x2e3c31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x564084=>{if('formatBlock'!=_0x564084['type'])return;const {data:_0x1551a7}=_0x564084;if(_0x1551a7&&'alignment'==_0x1551a7['commandName']){const _0xe453f9=_0x1551a7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x420f39,'*Format:*\x20%0',function(_0xb3a0ac){switch(_0xb3a0ac){case'left':return o(_0x420f39,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x420f39,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x420f39,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x420f39,'FORMAT_JUSTIFY_TEXT');}}(_0xe453f9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x555e71{['afterInit'](){const _0x303fbe=this['editor'],_0x136537=_0x303fbe['plugins']['get']('TrackChangesEditing'),_0x153d34=_0x303fbe['locale'];for(const _0xf55187 of ti){if(!_0x303fbe['plugins']['has'](_0xf55187))continue;const _0x181771=_0xf55187['slice'](0x0,-0x7)['toLowerCase'](),_0x5e74fd='FORMAT_'+_0x181771['toUpperCase']();_0x136537['enableDefaultAttributesIntegration'](_0x181771),_0x136537['registerInlineAttribute'](_0x181771),_0x136537['descriptionFactory']['registerAttributeLabel'](_0x181771,o(_0x153d34,_0x5e74fd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26dc02=this['editor'],_0x3e2d78=_0x26dc02['locale'],_0xece138=_0x26dc02['plugins']['get']('TrackChangesEditing');function _0x4e9691(_0x4acb98,_0x2c4053){_0xece138['descriptionFactory']['registerDescriptionCallback'](_0xb1d3cb=>{if('formatInline'!=_0xb1d3cb['type'])return;const {data:_0x2b1fcf}=_0xb1d3cb;return _0x2b1fcf&&_0x2b1fcf['commandName']===_0x4acb98?_0x2b1fcf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e2d78,'*Format:*\x20%0',_0x2c4053)}:{'type':'format','content':o(_0x3e2d78,'*Remove\x20format:*\x20%0',_0x2c4053)}:void 0x0;});}_0x4e9691('bold',o(_0x3e2d78,'FORMAT_BOLD')),_0x4e9691('italic',o(_0x3e2d78,'FORMAT_ITALIC')),_0x4e9691('underline',o(_0x3e2d78,'FORMAT_UNDERLINE')),_0x4e9691('code',o(_0x3e2d78,'FORMAT_CODE')),_0x4e9691('strikethrough',o(_0x3e2d78,'FORMAT_STRIKETHROUGH')),_0x4e9691('subscript',o(_0x3e2d78,'FORMAT_SUBSCRIPT')),_0x4e9691('superscript',o(_0x3e2d78,'FORMAT_SUPERSCRIPT'));}}class K extends _0x555e71{['afterInit'](){const _0x5183d2=this['editor'],_0x4e26a4=_0x5183d2['locale'];if(!_0x5183d2['plugins']['has']('BlockQuoteEditing'))return;const _0x572dd8=_0x5183d2['plugins']['get']('TrackChangesEditing'),_0xcb31be=this['editor']['commands']['get']('blockQuote');_0x572dd8['enableCommand']('blockQuote',(_0x11d96e,_0x1e0407={})=>{const _0x33e307=this['editor']['model']['document']['selection'],_0x9583d8=_0x1e0407&&void 0x0!==_0x1e0407['forceValue']?_0x1e0407['forceValue']:!_0xcb31be['value'];let _0xdc8395=[];if(_0x9583d8){const _0x52d44c=Array['from'](_0x33e307['getSelectedBlocks']())['filter'](_0x1a2f61=>oo(_0x1a2f61)||function(_0x5b1526,_0x213c38){const _0x5e13f8=_0x213c38['checkChild'](_0x5b1526['parent'],'blockQuote'),_0x3ee437=_0x213c38['checkChild'](['$root','blockQuote'],_0x5b1526);return _0x5e13f8&&_0x3ee437;}(_0x1a2f61,this['editor']['model']['schema']));_0xdc8395=to(_0x52d44c,_0x5183d2['model']);}else{const _0x4930c9=Array['from'](_0x33e307['getSelectedBlocks']())['filter'](_0x48a529=>oo(_0x48a529));_0xdc8395=to(_0x4930c9,_0x5183d2['model']);}_0x5183d2['model']['change'](()=>{for(const _0x55e706 of _0xdc8395)_0x572dd8['markBlockFormat'](_0x55e706,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x9583d8}]});});}),_0x572dd8['descriptionFactory']['registerDescriptionCallback'](_0x14d2a1=>{const {data:_0x53823c}=_0x14d2a1;if(_0x53823c&&'blockQuote'==_0x53823c['commandName']){const _0xcf73c9=o(_0x4e26a4,'ELEMENT_BLOCK_QUOTE');return _0x53823c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e26a4,'*Set\x20format:*\x20%0',_0xcf73c9)}:{'type':'format','content':o(_0x4e26a4,'*Remove\x20format:*\x20%0',_0xcf73c9)};}});}}function oo(_0x453308){return'blockQuote'==_0x453308['parent']['name'];}class q extends _0x555e71{['afterInit'](){const _0x193acb=this['editor'],_0x24fdb2=_0x193acb['locale'],_0x447c7c=_0x193acb['plugins']['get']('TrackChangesEditing');_0x193acb['plugins']['has']('BookmarkEditing')&&(_0x447c7c['enableCommand']('insertBookmark'),_0x447c7c['enableDefaultAttributesIntegration']('updateBookmark'),_0x447c7c['registerBlockAttribute']('bookmarkId'),_0x447c7c['descriptionFactory']['registerDescriptionCallback'](_0x2473c6=>{if('insertion'!=_0x2473c6['type']&&'deletion'!=_0x2473c6['type']&&'attribute'!=_0x2473c6['type'])return;const _0x351afa=_0x2473c6['getContainedElement']();if(null==_0x351afa)return;if(!_0x351afa['is']('element','bookmark'))return;const _0x4b8ea9=_0x351afa['getAttribute']('bookmarkId');if('insertion'==_0x2473c6['type'])return{'type':'insertion','content':o(_0x24fdb2,'*Insert:*\x20%0','\x22'+_0x4b8ea9+'\x22\x20'+o(_0x24fdb2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2473c6['type'])return{'type':'deletion','content':o(_0x24fdb2,'*Remove:*\x20%0','\x22'+_0x4b8ea9+'\x22\x20'+o(_0x24fdb2,'ELEMENT_BOOKMARK'))};const {data:_0x1bbafb}=_0x2473c6;if(!_0x1bbafb||'bookmarkId'!=_0x1bbafb['key'])return;return{'type':'format','content':o(_0x24fdb2,'*Set\x20bookmark:*\x20%0','\x22'+_0x1bbafb['newValue']+'\x22')};}));}}class H extends _0x555e71{['afterInit'](){const _0x9b1ecd=this['editor'];_0x9b1ecd['plugins']['has']('CaseChange')&&(_0x9b1ecd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x9b1ecd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x9b1ecd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x555e71{['afterInit'](){const _0x14ea0a=this['editor'];_0x14ea0a['commands']['get']('ckbox')&&_0x14ea0a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x555e71{['afterInit'](){const _0x3cc882=this['editor'];if(!_0x3cc882['plugins']['has']('CodeBlock'))return;const _0x23afc4=_0x3cc882['plugins']['get']('TrackChangesEditing'),_0x38ae90=_0x3cc882['locale'],_0x43c250=_0x3cc882['config']['get']('codeBlock')['languages'],_0x326797=_0x3cc882['commands']['get']('codeBlock');_0x23afc4['enableCommand']('indentCodeBlock'),_0x23afc4['enableCommand']('outdentCodeBlock'),_0x23afc4['enableCommand']('codeBlock',(_0x26e86d,_0x41d490={})=>{const _0x188b4c=_0x3cc882['model'],_0x34d3b5=_0x3cc882['model']['document']['selection'],_0x7cc5f8=_0x41d490&&void 0x0!==_0x41d490['forceValue']?_0x41d490['forceValue']:!_0x326797['value'];let _0x23bc3b;_0x41d490['language']||(_0x41d490['language']=_0x43c250[0x0]['language']),_0x23bc3b=_0x7cc5f8?Array['from'](_0x34d3b5['getSelectedBlocks']())['filter'](_0x3a4710=>co(_0x3a4710)||function(_0xd71d61,_0x348a2e){if(_0xd71d61['is']('rootElement')||_0x348a2e['isLimit'](_0xd71d61))return!0x1;return _0x348a2e['checkChild'](_0xd71d61['parent'],'codeBlock');}(_0x3a4710,_0x188b4c['schema'])):Array['from'](_0x34d3b5['getSelectedBlocks']())['filter'](_0x5b70d3=>co(_0x5b70d3));const _0x2ec74c=to(_0x23bc3b,_0x188b4c);_0x188b4c['change'](()=>{for(const _0x467959 of _0x2ec74c)_0x23afc4['markBlockFormat'](_0x467959,{'commandName':'codeBlock','commandParams':[{..._0x41d490,'forceValue':_0x7cc5f8}],'formatGroupId':'blockName'});});}),(_0x23afc4['descriptionFactory']['registerElementLabel']('codeBlock',_0xa0da7a=>o(_0x38ae90,'ELEMENT_CODE_BLOCK',_0xa0da7a)),_0x23afc4['descriptionFactory']['registerDescriptionCallback'](_0x3ba4ec=>{if('formatBlock'!=_0x3ba4ec['type'])return;const _0x3586ec=_0x38ae90['t'],{data:_0x3f4840}=_0x3ba4ec;if(!_0x3f4840||'codeBlock'!=_0x3f4840['commandName'])return;const _0x532092=_0x3f4840['commandParams'][0x0]['language'],_0x3f1687=_0x3586ec(_0x43c250['find'](_0x3f588c=>_0x3f588c['language']===_0x532092)['label'])['toLowerCase']();return _0x3f4840['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38ae90,'*Set\x20format:*\x20%0',o(_0x38ae90,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3f1687+')')}:{'type':'format','content':o(_0x38ae90,'*Remove\x20format:*\x20%0',o(_0x38ae90,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x493540){return'codeBlock'==_0x493540['name'];}class Q extends _0x555e71{['afterInit'](){const _0xa160da=this['editor'];if(!_0xa160da['plugins']['has']('CommentsEditing'))return;_0xa160da['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1c2634,_0x5e114d,_0x57cd09){const _0x5b5e82=[];for(const _0x2fd1ba of _0x5e114d['getItems']())_0x2fd1ba['hasAttribute'](_0x1c2634)&&_0x5b5e82['push'](_0x57cd09['createRangeOn'](_0x2fd1ba));return _0x5b5e82;}function Ve(_0x4de396,_0x13946b,{showActiveMarker:_0x7af15e=!0x0}={}){const _0x3f8dd0=_0x4de396['plugins']['get']('TrackChangesEditing');return(_0x544bdd,_0x1dc4e8,_0x2c4804)=>{if(!_0x2c4804['consumable']['test'](_0x1dc4e8['markerRange'],_0x544bdd['name']))return;const _0x1f0c1a=_0x1dc4e8['markerRange']['getWalker'](),_0x292846=_0x1dc4e8['markerRange']['start'],_0x34a88d=_0x4de396['model']['schema'];let _0xa23c33=null,_0x392f07=null,_0x41056a=!0x1,_0x14dcc0=!0x1;for(const _0x57c971 of _0x1f0c1a){const _0x57a6dd=_0x57c971['item'];_0x41056a=_0x41056a||_0x34a88d['isContent'](_0x57a6dd);const _0x5b3a61=_0x2c4804['mapper']['toViewElement'](_0x57a6dd);if(_0x5b3a61&&_0x5b3a61['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57c971['type']&&(_0x34a88d['isBlock'](_0x57a6dd)&&!_0x34a88d['isLimit'](_0x57a6dd)&&(_0x57a6dd['nextSibling']||_0x292846['isAtEnd']?_0xa23c33&&_0xa23c33['parent']==_0x57a6dd||(_0xa23c33=_0x57a6dd,_0x4489fc(_0x57c971['previousPosition']),_0x14dcc0=!0x0):_0x392f07=_0x392f07||_0x57c971['previousPosition']));}function _0x4489fc(_0x266d77){const {id:_0x326ffc,authorId:_0x22d900}=_0x3f8dd0['_splitMarkerName'](_0x1dc4e8['markerName']),_0xad4449=_0x2c4804['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13946b,'data-suggestion':_0x326ffc,'data-author-id':_0x22d900}),_0x16414d=_0x2c4804['mapper']['toViewPosition'](_0x266d77);_0x7af15e&&_0x3f8dd0['activeMarkers']['includes'](_0x1dc4e8['markerName'])&&_0x2c4804['writer']['addClass']('ck-suggestion-marker--active',_0xad4449),_0x2c4804['writer']['insert'](_0x16414d,_0xad4449),_0x2c4804['mapper']['bindElementToMarker'](_0xad4449,_0x1dc4e8['markerName']);}_0x41056a||_0x14dcc0||!_0x392f07||_0x4489fc(_0x392f07);};}class X extends _0x555e71{static get['requires'](){return[_0x3599b5];}['init'](){const _0x29f327=this['editor'],_0x4adf71=_0x29f327['plugins']['get']('TrackChangesEditing');_0x4adf71['enableCommand']('delete');const _0x285593=_0x29f327['commands']['get']('deleteForward');_0x4adf71['enableCommand']('deleteForward',(_0x45d69d,_0x3c4811={})=>{const _0x448ed7=_0x29f327['model']['createSelection'](_0x29f327['model']['document']['selection']);_0x448ed7['isCollapsed']&&_0x29f327['model']['modifySelection'](_0x448ed7,{'direction':'forward','unit':_0x3c4811['unit']});const _0x3a5245=_0x448ed7['getFirstRange'](),_0x2897be=_0x1c1121['fromRange'](_0x3a5245);let _0x5042ad;_0x45d69d(_0x3c4811),_0x5042ad='$graveyard'==_0x2897be['root']['rootName']?_0x29f327['model']['createRange'](_0x3a5245['start']):_0x29f327['model']['createRange'](_0x2897be['start'],_0x2897be['end']),_0x2897be['detach'](),_0x29f327['model']['enqueueChange'](_0x285593['buffer']['batch'],_0x5375d5=>{_0x285593['buffer']['lock'](),_0x5375d5['setSelection'](_0x5375d5['createRange'](_0x5042ad['end'])),_0x285593['buffer']['unlock']();});}),_0x29f327['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x29f327,'merge'),{'priority':'high'}),_0x29f327['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5dc6d7,_0x47ccaf,_0x5b1691)=>{_0x5b1691['options']['showSuggestionHighlights']&&Ve(_0x29f327,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5dc6d7,_0x47ccaf,_0x5b1691);},{'priority':'high'}),_0x29f327['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5a1125,_0x59c238,_0x3a52b3)=>{const _0x1b25f0=_0x3a52b3['mapper']['markerNameToElements'](_0x59c238['markerName']);if(_0x1b25f0){for(const _0x3e511e of _0x1b25f0)_0x3e511e['is']('uiElement')&&(_0x3a52b3['mapper']['unbindElementFromMarkerName'](_0x3e511e,_0x59c238['markerName']),_0x3a52b3['writer']['remove'](_0x3e511e));}},{'priority':'high'});}}class Y extends _0x555e71{['afterInit'](){const _0x256496=this['editor'];if(!_0x256496['plugins']['has']('ListEditing'))return;const _0x2e228a=_0x256496['locale'],_0x4fecd2=_0x256496['plugins']['get']('TrackChangesEditing'),_0x5287f8=_0x256496['plugins']['has']('TodoListEditing'),_0x19c8bc=!!_0x256496['config']['get']('list.multiBlock');function _0x73d43c(_0x2e8e76){return{'type':'format','content':''+o(_0x2e228a,'*Set\x20format:*\x20%0',_0x2e8e76)};}function _0x2023aa(_0x5b91de){return{'type':'format','content':''+o(_0x2e228a,'*Remove\x20format:*\x20%0',_0x5b91de)};}_0x4fecd2['enableDefaultAttributesIntegration']('numberedList'),_0x4fecd2['enableDefaultAttributesIntegration']('bulletedList'),_0x4fecd2['enableDefaultAttributesIntegration']('customNumberedList'),_0x4fecd2['enableDefaultAttributesIntegration']('customBulletedList'),_0x4fecd2['enableDefaultAttributesIntegration']('indentList'),_0x4fecd2['enableDefaultAttributesIntegration']('outdentList'),_0x4fecd2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4fecd2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4fecd2['registerBlockAttribute']('listItemId'),_0x4fecd2['registerBlockAttribute']('listType'),_0x4fecd2['registerBlockAttribute']('listIndent'),_0x19c8bc&&(_0x4fecd2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4fecd2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5287f8&&(_0x4fecd2['enableDefaultAttributesIntegration']('todoList'),_0x4fecd2['enableDefaultAttributesIntegration']('checkTodoList'),_0x4fecd2['registerBlockAttribute']('todoListChecked'),_0x4fecd2['descriptionFactory']['registerDescriptionCallback'](_0x20bbec=>{const {data:_0x408c6e}=_0x20bbec;if(_0x408c6e&&'todoListChecked'==_0x408c6e['key'])return{'type':'format','content':_0x408c6e['newValue']?o(_0x2e228a,'*Check\x20item*'):o(_0x2e228a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c5dce=>{if(_0x3c5dce['batch']['isUndo'])return!0x1;let _0x2d192e=!0x1;const _0x4d7ac7=_0x4fecd2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55b822=>'todoListChecked'===_0x4fecd2['_getAttributeKey'](_0x55b822));for(const _0x1b719f of _0x4d7ac7){'todo'!=_0x1b719f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4fecd2['_findSuggestions'](_0x1b719f['getFirstRange'](),'attribute')['find'](_0x3e540c=>'listType'===_0x4fecd2['_getAttributeKey'](_0x3e540c['suggestion']))||(_0x3c5dce['removeMarker'](_0x1b719f['getFirstMarker']()),_0x2d192e=!0x0));}return _0x2d192e;})),_0x4fecd2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2e228a,'FORMAT_INDENT'));const _0x852425={'type':'format','content':''};_0x4fecd2['descriptionFactory']['registerDescriptionCallback'](_0x571600=>{const {data:_0x4f98a4}=_0x571600;if(!_0x4f98a4||'listType'!=_0x4f98a4['key'])return;let _0x13b222=_0x571600['head'];for(;_0x13b222;){if(_0x13b222['data']&&(('listStyle'==_0x13b222['data']['key']||'listMarkerStyle'==_0x13b222['data']['key'])&&(_0x13b222['data']['newValue']&&'default'!=_0x13b222['data']['newValue']||'default'!=_0x13b222['data']['oldValue']&&!_0x4f98a4['newValue'])||!_0x19c8bc&&_0x13b222['data']['key']==m))return _0x852425;_0x13b222=_0x13b222['next'];}if(null==_0x4f98a4['newValue'])switch(_0x4f98a4['oldValue']){case'bulleted':return _0x2023aa(o(_0x2e228a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2023aa(o(_0x2e228a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2023aa(o(_0x2e228a,'ELEMENT_TODO_LIST'));}switch(_0x4f98a4['newValue']){case'bulleted':return _0x73d43c(o(_0x2e228a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x73d43c(o(_0x2e228a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x73d43c(o(_0x2e228a,'ELEMENT_TODO_LIST'));}}),_0x4fecd2['descriptionFactory']['registerDescriptionCallback'](_0x3fee0f=>{const {data:_0x582150}=_0x3fee0f;if(_0x582150&&'listIndent'==_0x582150['key'])return null==_0x582150['newValue']||null==_0x582150['oldValue']&&0x0==_0x582150['newValue']?_0x852425:void 0x0;}),_0x4fecd2['descriptionFactory']['registerDescriptionCallback'](_0x527eae=>{if('attribute'!=_0x527eae['type'])return;const {data:_0x3d5f9d}=_0x527eae;if(!_0x3d5f9d||'listItemId'!=_0x3d5f9d['key'])return;const _0x3aa11b=Be(_0x527eae);return'newValue'==_0x3aa11b?{'type':'format','content':o(_0x2e228a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3aa11b?{'type':'format','content':o(_0x2e228a,'*Split:*\x20list\x20item')}:_0x852425;}),_0x256496['model']['document']['registerPostFixer'](_0x90b09e=>this['listItemIdFixer'](_0x90b09e)),_0x256496['model']['document']['registerPostFixer'](_0x8db80a=>this['noTrackChangesFixer'](_0x8db80a)),_0x256496['model']['document']['on']('change:data',(_0x4c2b70,_0x3b9b2a)=>{if(_0x3b9b2a['isUndo']||!_0x3b9b2a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x36801a){if(_0x36801a['batch']['isUndo']||!_0x36801a['batch']['isLocal'])return!0x1;let _0x1f8fc8=!0x1;const _0x18c5e6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a0f0a=>_0x1a0f0a['data']&&'listItemId'==_0x1a0f0a['data']['key'])['filter'](_0x12a7ac=>_0x12a7ac['data']['newValue']&&_0x12a7ac['data']['oldValue']);for(const _0x3789d0 of _0x18c5e6)Be(_0x3789d0)||(_0x36801a['removeMarker'](_0x3789d0['getFirstMarker']()),_0x1f8fc8=!0x0);return _0x1f8fc8;}['noTrackChangesFixer'](_0x14a52b){if(_0x14a52b['batch']['isUndo']||!_0x14a52b['batch']['isLocal'])return!0x1;const _0x4059d3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4059d3['trackChangesCommand']['value'])return!0x1;let _0x4f0883=!0x1;const _0x31d0dd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x270f55=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x462785=>'attribute'==_0x462785['type'])['filter'](_0x49e9f8=>_0x31d0dd['includes'](_0x49e9f8['attributeKey']));if(0x0==_0x270f55['length'])return _0x4f0883;for(const _0x40f70c of _0x270f55){const _0x4d3725=_0x4059d3['_findSuggestions'](_0x40f70c['range'],'attribute')['filter'](_0x23bfab=>!_0x23bfab['meta']['isNextTo'])['map'](_0x4cc13e=>_0x4cc13e['suggestion'])['filter'](_0x16dfb5=>{const _0x1c1b72=_0x4059d3['_getAttributeKey'](_0x16dfb5);return _0x31d0dd['includes'](_0x1c1b72);});if(_0x4d3725['length']){for(const _0x4b30f0 of _0x4d3725)_0x14a52b['removeMarker'](_0x4b30f0['getFirstMarker']());_0x4f0883=!0x0;}}return _0x4f0883;}['assureChains'](){const _0x5ec1c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x145286=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x38d87f;const _0x1a3535=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa12897=>{if(_0xa12897['data']['oldRange']||!_0xa12897['data']['newRange'])return null;if(!_0xa12897['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x529f28}=_0x5ec1c4['_splitMarkerName'](_0xa12897['name']);if(!_0x5ec1c4['hasSuggestion'](_0x529f28))return null;const _0x11341c=_0x5ec1c4['getSuggestion'](_0x529f28);return _0x145286['includes'](_0x11341c['data']['key']);})['map'](_0x2b9b7c=>{const {id:_0x506111}=_0x5ec1c4['_splitMarkerName'](_0x2b9b7c['name']),_0x47d828=_0x5ec1c4['getSuggestion'](_0x506111);return _0x38d87f=_0x47d828['attributes']['groupId'],_0x47d828['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1a3535['size'])return;const _0x43ad26=_0x5ec1c4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ee368=>'attribute'==_0x4ee368['type']&&_0x4ee368['data']&&_0x145286['includes'](_0x4ee368['data']['key'])&&_0x4ee368['attributes']['groupId']!=_0x38d87f)['map'](_0x1ee2c2=>({'listItem':_0x1ee2c2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1ee2c2['attributes']['groupId']})),_0x405096=new Set();for(const {groupId:_0x24f30,listItem:_0x4367f2}of _0x43ad26)_0x1a3535['has'](_0x4367f2)&&_0x405096['add'](_0x24f30);for(const _0x406966 of _0x5ec1c4['getSuggestions']())_0x405096['has'](_0x406966['attributes']['groupId'])&&_0x406966['setAttribute']('groupId',_0x38d87f);}['_supportLegacySuggestions'](){const _0xc5856e=this['editor'],_0x3477a1=_0xc5856e['locale'],_0x4769aa=_0xc5856e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4769aa['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x56c938,_0x25279e){const _0x5288c0=[];for(let _0x1eea89 of _0x56c938)_0x1eea89['start']['nodeAfter']===_0x1eea89['end']['parent']&&(_0x1eea89=_0xc5856e['model']['createRange'](_0xc5856e['model']['createPositionAt'](_0x1eea89['start']['nodeAfter'],0x0))),_0x5288c0['push'](_0x1eea89);_0xc5856e['model']['change'](_0x3cb8ab=>{const _0x24b1ed=_0xc5856e['model']['document']['selection'],_0x4f0ddd=Array['from'](_0x24b1ed['getRanges']())['map'](_0xfa92a5=>_0x1c1121['fromRange'](_0xfa92a5));_0x3cb8ab['setSelection'](_0x5288c0),_0xc5856e['commands']['get'](_0x25279e['commandName'])['refresh'](),_0x25279e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xc5856e['execute'](_0x25279e['commandName'],..._0x25279e['commandParams']),_0x3cb8ab['setSelection'](_0x4f0ddd);for(const _0x965925 of _0x4f0ddd)_0x965925['detach']();});}),_0x4769aa['descriptionFactory']['registerElementLabel'](function(_0x541d45){const _0x347015=!_0xc5856e['model']['schema']['isObject'](_0x541d45),_0x183743=_0x541d45['previousSibling'],_0x52a8a4=_0x541d45['nextSibling'],_0x4b60ee=_0x541d45['getAttribute']('listItemId'),_0x5e14b3=!_0x183743||_0x183743['getAttribute']('listItemId')!==_0x4b60ee,_0x3d798e=!_0x52a8a4||_0x52a8a4['getAttribute']('listItemId')!==_0x4b60ee;return _0x347015&&Boolean(_0x4b60ee)&&_0x5e14b3&&_0x3d798e;},_0x346515=>o(_0x3477a1,'ELEMENT_LIST_ITEM',_0x346515));}['_registerLegacyDescription'](){const _0x5dabee=this['editor'],_0x1b6274=_0x5dabee['locale'];function _0x3ff557(_0x1c6aaf){const _0x4168b8=_0x5dabee['commands']['get']('bulletedList')['value'],_0x21b69f=_0x5dabee['commands']['get']('numberedList')['value'];return'numberedList'===_0x1c6aaf?_0x4168b8:_0x21b69f;}_0x5dabee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xaa4b50){if('formatBlock'!=_0xaa4b50['type'])return;const {data:_0x73b140}=_0xaa4b50;if(!_0x73b140)return;let _0x56de27,_0x12833b,_0x1e307c,_0x45564e;switch(_0x73b140['commandName']){case'bulletedList':_0x1e307c=_0x73b140['commandParams'][0x0]['forceValue'],_0x45564e=_0x3ff557(_0x73b140['commandName']),_0x56de27=_0x1e307c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x45564e&&_0x5dabee['config']['get']('list.multiBlock')||(_0x56de27='*Change\x20to:*\x20%0'),_0x12833b={'type':'format','content':o(_0x1b6274,_0x56de27,o(_0x1b6274,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1e307c=_0x73b140['commandParams'][0x0]['forceValue'],_0x45564e=_0x3ff557(_0x73b140['commandName']),_0x56de27=_0x1e307c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x45564e&&_0x5dabee['config']['get']('list.multiBlock')||(_0x56de27='*Change\x20to:*\x20%0'),_0x12833b={'type':'format','content':o(_0x1b6274,_0x56de27,o(_0x1b6274,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x56de27='*Indent:*\x20%0',_0x12833b={'type':'format','content':o(_0x1b6274,_0x56de27,o(_0x1b6274,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x56de27=function(_0x195787){const _0x3c4aed=_0x195787['getFirstRange']();let _0x1f2c19=_0x3c4aed['start']['nodeAfter'];for(;_0x1f2c19&&_0x3c4aed['containsItem'](_0x1f2c19);){if(_0x1f2c19['getAttribute']('listIndent')>0x0)return!0x1;_0x1f2c19=_0x1f2c19['nextSibling'];}return!0x0;}(_0xaa4b50)?o(_0x1b6274,'*Format:*\x20remove\x20from\x20%0',o(_0x1b6274,function(_0x2dc240){return'ELEMENT_'+_0x2dc240['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xaa4b50))):o(_0x1b6274,'*Outdent:*\x20%0',o(_0x1b6274,'ELEMENT_LIST_ITEM')),_0x12833b={'type':'format','content':_0x56de27};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x73b140['multipleBlocks']&&(_0x56de27='*Merge:*\x20%0',_0x12833b={'type':'deletion','content':o(_0x1b6274,_0x56de27,o(_0x1b6274,'ELEMENT_LIST_ITEM'))});}return _0x12833b;});}}function Be(_0x353f0d){let _0x329f40=_0x353f0d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x329f40;){const _0x1c55b2=_0x329f40['getAttribute']('listItemId');if(!_0x1c55b2)return!0x1;if(_0x1c55b2==_0x353f0d['data']['newValue'])return'newValue';if(_0x1c55b2==_0x353f0d['data']['oldValue'])return'oldValue';_0x329f40=_0x329f40['previousSibling'];}return!0x1;}class Z extends _0x555e71{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x343e01=this['editor']['config']['get']('list.properties'),_0x56b5f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x343e01['styles']&&(_0x56b5f6['enableDefaultAttributesIntegration']('listStyle'),_0x56b5f6['registerBlockAttribute']('listStyle')),_0x343e01['reversed']&&(_0x56b5f6['enableDefaultAttributesIntegration']('listReversed'),_0x56b5f6['registerBlockAttribute']('listReversed')),_0x343e01['startIndex']&&(_0x56b5f6['enableDefaultAttributesIntegration']('listStart'),_0x56b5f6['registerBlockAttribute']('listStart'));const _0x46b024={'type':'format','content':''};_0x56b5f6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5d76a9=this['editor']['locale'];_0x56b5f6['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5d76a9,'FORMAT_LIST_REVERSED')),_0x56b5f6['descriptionFactory']['registerDescriptionCallback'](_0x1dbd74=>{const {data:_0x4ef107}=_0x1dbd74;if(_0x4ef107&&'listReversed'==_0x4ef107['key'])return null==_0x4ef107['newValue']||0x0==_0x4ef107['newValue']&&null==_0x4ef107['oldValue']?_0x46b024:void 0x0;}),_0x56b5f6['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5d76a9,'FORMAT_LIST_START')),_0x56b5f6['descriptionFactory']['registerDescriptionCallback'](_0x191fd5=>{const {data:_0x1fffe0}=_0x191fd5;if(_0x1fffe0&&'listStart'==_0x1fffe0['key'])return null==_0x1fffe0['newValue']||0x1==_0x1fffe0['newValue']&&null==_0x1fffe0['oldValue']?_0x46b024:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x12f30d=>{if(_0x12f30d['batch']['isUndo'])return!0x1;let _0x2f40d8=!0x1;const _0x8b4488=_0x56b5f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f1681=>{const _0x5da59c=_0x56b5f6['_getAttributeKey'](_0x2f1681);return'listStart'==_0x5da59c||'listReversed'==_0x5da59c;});for(const _0x34fe99 of _0x8b4488){const _0x228f90=_0x34fe99['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x228f90||'customNumbered'==_0x228f90)continue;_0x56b5f6['_findSuggestions'](_0x34fe99['getFirstRange'](),'attribute')['find'](_0xe283ba=>'listType'==_0x56b5f6['_getAttributeKey'](_0xe283ba['suggestion']))||(_0x12f30d['removeMarker'](_0x34fe99['getFirstMarker']()),_0x2f40d8=!0x0);}return _0x2f40d8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xee3006){const _0x42caba=this['editor']['locale'],{data:_0x280dde}=_0xee3006,_0x263332={'type':'format','content':''};if(!_0x280dde||'listStyle'!=_0x280dde['key'])return;if(!_0x280dde['oldValue'])return'default'==_0x280dde['newValue']?_0x263332:{'type':'format','content':''+o(_0x42caba,'*Set\x20format:*\x20%0',o(_0x42caba,this['_getTranslationKeyForListStyle'](_0x280dde['newValue'])))};if(!_0x280dde['newValue']){if('default'==_0x280dde['oldValue'])return _0x263332;let _0x5e1de8=_0xee3006['head'];for(;_0x5e1de8;){if(_0x5e1de8['data']&&'listType'==_0x5e1de8['data']['key']&&_0x5e1de8['data']['newValue'])return _0x263332;_0x5e1de8=_0x5e1de8['next'];}return{'type':'format','content':''+o(_0x42caba,'*Remove\x20format:*\x20%0',o(_0x42caba,this['_getTranslationKeyForListStyle'](_0x280dde['oldValue'])))};}if('default'!=_0x280dde['newValue'])return{'type':'format','content':''+o(_0x42caba,'*Set\x20format:*\x20%0',o(_0x42caba,this['_getTranslationKeyForListStyle'](_0x280dde['newValue'])))};let _0x50c343=_0xee3006['head'];for(;_0x50c343;){if(_0x50c343['data']&&'listType'==_0x50c343['data']['key']&&_0x50c343['data']['newValue']&&_0x50c343['data']['oldValue'])return _0x263332;_0x50c343=_0x50c343['next'];}return{'type':'format','content':o(_0x42caba,'*Set\x20format:*\x20%0',o(_0x42caba,'ELEMENT_'+_0xee3006['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3ec34c=this['editor'],_0x25cfcc=_0x3ec34c['locale'];_0x3ec34c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54d1cb=>{if('formatBlock'!=_0x54d1cb['type'])return;const {data:_0x21eecf}=_0x54d1cb;if(!_0x21eecf)return;let _0x38b7cc,_0x301a16;switch(_0x21eecf['commandName']){case'listStyle':_0x38b7cc='*Change\x20to:*\x20%0',_0x301a16={'type':'format','content':o(_0x25cfcc,_0x38b7cc,o(_0x25cfcc,this['_getTranslationKeyForListStyle'](_0x21eecf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x38b7cc=_0x21eecf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x301a16={'type':'format','content':o(_0x25cfcc,_0x38b7cc)};break;case'listStart':_0x38b7cc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x301a16={'type':'format','content':o(_0x25cfcc,_0x38b7cc,_0x21eecf['commandParams'][0x0]['startIndex'])};}return _0x301a16;});}['_getTranslationKeyForListStyle'](_0x48c90a){return'ELEMENT_'+function(_0x3bbcdd){if(Re['includes'](_0x3bbcdd))return'bulleted';if(De['includes'](_0x3bbcdd))return'numbered';return null;}(_0x48c90a)['toUpperCase']()+'_LIST_'+_0x48c90a['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x555e71{['afterInit'](){const _0x3ed2b4=this['editor'];_0x3ed2b4['commands']['get']('emoji')&&_0x3ed2b4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x555e71{static get['requires'](){return[_0x25152c];}['init'](){const _0x99b8f0=this['editor'],_0x38ec05=_0x99b8f0['plugins']['get']('TrackChangesEditing'),_0x8ec224=_0x99b8f0['commands']['get']('enter');_0x38ec05['enableCommand']('enter',()=>{_0x99b8f0['model']['change'](_0xebd106=>{const _0x49fd8c=_0x99b8f0['model']['document']['selection'],_0x4af518=_0x49fd8c['getFirstPosition'](),_0x3ea569=_0x1c1121['fromRange'](_0x49fd8c['getFirstRange']());if(_0x8ec224['enterBlock'](_0xebd106)){const _0x14c53c=_0x99b8f0['model']['createPositionAt'](_0x4af518['parent']['nextSibling'],0x0),_0x280489=_0xebd106['createRange'](_0x4af518,_0x14c53c);_0x38ec05['markInsertion'](_0x280489);}else _0xebd106['setSelection'](_0xebd106['createRange'](_0x3ea569['end']));_0x3ea569['detach'](),_0x8ec224['fire']('afterExecute',{'writer':_0xebd106});});}),_0x99b8f0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x99b8f0,'split'),{'priority':'high'}),_0x99b8f0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1a14ea,_0x26b0f9,_0x31e10f)=>{const _0x5263c3=_0x31e10f['mapper']['markerNameToElements'](_0x26b0f9['markerName']);if(_0x5263c3){for(const _0x94c2d2 of _0x5263c3)_0x94c2d2['hasClass']('ck-suggestion-marker-split')&&(_0x31e10f['mapper']['unbindElementFromMarkerName'](_0x94c2d2,_0x26b0f9['markerName']),_0x31e10f['writer']['remove'](_0x94c2d2));}},{'priority':'high'}),_0x99b8f0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x6568a8,_0xb5c5,_0x227497)=>{_0x227497['options']['showSuggestionHighlights']&&Ve(_0x99b8f0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x6568a8,_0xb5c5,_0x227497);},{'priority':'high'});}}class it extends _0x555e71{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2a193a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a193a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2a193a['enableCommand']('findNext'),_0x2a193a['enableCommand']('findPrevious'),_0x2a193a['enableCommand']('replace'),_0x2a193a['enableCommand']('replaceAll');}['handleFindCommand'](_0x578b6f,_0x1c610b,_0x11c6aa={}){const _0x497b55=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x578b6f(_0x478cbf=>{let _0x5a6a47=('string'==typeof _0x1c610b?_0x497b55['findByTextCallback'](_0x1c610b,_0x11c6aa):_0x1c610b)(_0x478cbf);Array['isArray'](_0x5a6a47)&&(_0x5a6a47={'results':_0x5a6a47,'searchText':'string'==typeof _0x1c610b?_0x1c610b:''});const _0x46d02a=_0x5a6a47['results']['filter'](_0x370078=>!0x1===this['_isInDeletionRange'](_0x370078,_0x478cbf['item']));return{..._0x5a6a47,'results':_0x46d02a};},_0x11c6aa);}['_isInDeletionRange'](_0x4b378a,_0x3c848e){const _0x585a42=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c848e,_0x4b378a['start']),this['editor']['model']['createPositionAt'](_0x3c848e,_0x4b378a['end']));for(const _0x231f2e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x585a42['getIntersection'](_0x231f2e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x555e71{['afterInit'](){const _0x5ac005=this['editor']['locale'],_0x1b85ff=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3da9ed,commandName:_0xde19df}of eo)this['editor']['plugins']['has'](_0x3da9ed)&&(_0x1b85ff['enableDefaultAttributesIntegration'](_0xde19df),_0x1b85ff['registerInlineAttribute'](_0xde19df));_0x1b85ff['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5ac005,'FORMAT_FONT_SIZE')),_0x1b85ff['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5ac005,'FORMAT_FONT_FAMILY')),_0x1b85ff['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5ac005,'FORMAT_FONT_COLOR')),_0x1b85ff['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5ac005,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2461d0=this['editor'],_0x58abb0=_0x2461d0['locale'];_0x2461d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bddda=>{const _0x1ead71=_0x58abb0['t'];if('formatInline'!=_0x3bddda['type'])return;const {data:_0xc3d569}=_0x3bddda;if(null!=_0xc3d569){if('fontSize'==_0xc3d569['commandName']){const _0x369e8e=_0xc3d569['commandParams'][0x0]['value'];if(_0x369e8e){const _0x5f5356=_0x1ead71(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4ab5be=>_0x4ab5be['model']==_0x369e8e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x58abb0,'*Set\x20font\x20size:*\x20%0',_0x5f5356)};}return{'type':'format','content':o(_0x58abb0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xc3d569['commandName']){const _0x139101=_0xc3d569['commandParams'][0x0]['value'];return _0x139101?{'type':'format','content':o(_0x58abb0,'*Set\x20font\x20family:*\x20%0',_0x139101)}:{'type':'format','content':o(_0x58abb0,'*Reset\x20font\x20family*')};}if('fontColor'==_0xc3d569['commandName']){const _0x44f6ef=_0xc3d569['commandParams'][0x0]['value'];if(_0x44f6ef){const _0x342adc=_0x4b3666(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3f2115=>_0x3f2115['model']==_0x44f6ef);let _0x3d1663=_0x44f6ef,_0x562664='';return _0x342adc&&(_0x3d1663=_0x342adc['label'],_0x562664=_0x1ead71(_0x3d1663)['toLowerCase']()),{'type':'format','content':o(_0x58abb0,'*Set\x20font\x20color:*\x20%0',_0x562664)['trim'](),'color':{'value':_0x44f6ef,'title':_0x562664||_0x3d1663}};}return{'type':'format','content':o(_0x58abb0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xc3d569['commandName']){const _0x924c47=_0xc3d569['commandParams'][0x0]['value'];if(_0x924c47){const _0xd2c7e7=_0x4b3666(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x8c664c=>_0x8c664c['model']==_0x924c47);let _0x513e6a=_0x924c47,_0x17b9fc='';return _0xd2c7e7&&(_0x513e6a=_0xd2c7e7['label'],_0x17b9fc=_0x1ead71(_0x513e6a)['toLowerCase']()),{'type':'format','content':o(_0x58abb0,'*Set\x20font\x20background\x20color:*\x20%0',_0x17b9fc)['trim'](),'color':{'value':_0x924c47,'title':_0x17b9fc||_0x513e6a}};}return{'type':'format','content':o(_0x58abb0,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x555e71{['afterInit'](){const _0x4238b1=this['editor'],_0x723db7=_0x4238b1['plugins']['get']('TrackChangesEditing'),_0x5f56d2=_0x4238b1['commands']['get']('copyFormat'),_0x568392=_0x4238b1['commands']['get']('pasteFormat');_0x5f56d2&&_0x568392&&(_0x723db7['enableDefaultAttributesIntegration']('pasteFormat'),_0x723db7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5aabfc=this['editor'],_0x8a24e9=_0x5aabfc['locale'];_0x5aabfc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5444be=>{if('formatBlock'!=_0x5444be['type']&&'formatInline'!=_0x5444be['type'])return;const {data:_0x153ad0}=_0x5444be;if(_0x153ad0&&'pasteFormat'===_0x153ad0['commandName']){const _0x186229=[],_0x1c5a0a=_0x153ad0['commandParams'][0x0];for(const [_0x53473b,_0x15d1f0]of Object['entries'](_0x1c5a0a))_0x186229['push'](ro(_0x5aabfc,_0x53473b,_0x15d1f0));return _0x186229['length']?{'type':'format','content':o(_0x8a24e9,'*Set\x20format\x20to:*\x20%0',_0x186229['join'](',\x20'))}:{'type':'format','content':o(_0x8a24e9,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x243a8b,_0x578d94,_0x5b0361){const _0x512ea7=_0x243a8b['locale']['t'],_0x466a05=_0x578d94['split'](/(?=[A-Z])/)['join']('\x20'),_0x29a26c=_0x512ea7(_0x466a05['charAt'](0x0)['toUpperCase']()+_0x466a05['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5b0361)return _0x29a26c;if('fontColor'===_0x578d94||'fontBackgroundColor'===_0x578d94){const _0x54c66f=_0x4b3666(_0x243a8b['config']['get']('fontColor.colors'))['find'](_0x360d45=>_0x360d45['model']==_0x5b0361);return _0x29a26c+'\x20('+(_0x54c66f?_0x512ea7(_0x54c66f['label'])['toLowerCase']():_0x5b0361)+')';}if('fontSize'===_0x578d94&&isNaN(parseFloat(_0x5b0361))){const _0x56b02b=_0x243a8b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x243a8b['config']['get']('fontSize.options'))['find'](_0x18bb83=>_0x18bb83['model']==_0x5b0361);return _0x29a26c+'\x20('+(_0x56b02b?_0x512ea7(_0x56b02b['title'])['toLowerCase']():_0x5b0361)+')';}return _0x29a26c+'\x20('+_0x5b0361+')';}class ot extends _0x555e71{['_headingOptions'];['afterInit'](){const _0x5c5cc2=this['editor'];if(!_0x5c5cc2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5c5cc2['config']['get']('heading.options');const _0xf3ee23=_0x5c5cc2['locale'],_0x122c6b=_0x5c5cc2['plugins']['get']('TrackChangesEditing');_0x122c6b['enableDefaultAttributesIntegration']('heading');for(const _0x22fde2 of this['_headingOptions'])'paragraph'!=_0x22fde2['model']&&_0x122c6b['descriptionFactory']['registerElementLabel'](_0x22fde2['model'],_0x354405=>{const _0x43c06d=this['_getHeadingLevel'](_0x22fde2['model']);return null!==_0x43c06d?_0x1be9be(_0x354405,_0x43c06d):_0x474e3d(_0x354405,_0x22fde2['title']);});function _0x1be9be(_0x4349c,_0x4ae303){return o(_0xf3ee23,'ELEMENT_HEADING',[_0x4349c,_0x4ae303]);}function _0x474e3d(_0x1a81c0,_0x564176){return o(_0xf3ee23,'ELEMENT_HEADING_CUSTOM',[_0x1a81c0,_0x564176]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a0b0d=this['editor'],_0x4b700f=_0x2a0b0d['locale'];function _0x467b3a(_0x32ae84,_0x4d9a98){return o(_0x4b700f,'ELEMENT_HEADING_CUSTOM',[_0x32ae84,_0x4d9a98]);}_0x2a0b0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31b721=>{if('formatBlock'!=_0x31b721['type'])return;const {data:_0x2f6c90}=_0x31b721;if(_0x2f6c90&&'heading'==_0x2f6c90['commandName']){const _0x34d3a8=_0x2f6c90['commandParams'][0x0]['value'],_0x3396f5=this['_getHeadingLevel'](_0x34d3a8);if(null!==_0x3396f5)return{'type':'format','content':o(_0x4b700f,'*Change\x20to:*\x20%0',(_0x3bfe32=0x1,_0xe59f3c=_0x3396f5,o(_0x4b700f,'ELEMENT_HEADING',[_0x3bfe32,_0xe59f3c])))};const _0x554ad9=this['_headingOptions']['find'](_0x533a28=>_0x533a28['model']===_0x34d3a8)['title'];return{'type':'format','content':o(_0x4b700f,'*Change\x20to:*\x20%0',_0x467b3a(0x1,_0x554ad9))};}var _0x3bfe32,_0xe59f3c;});}['_getHeadingLevel'](_0x16cd11){const _0xfffc84=_0x16cd11['match'](/^heading(\d+)/);if(_0xfffc84)return _0xfffc84[0x1];const _0x4c1c28=this['_headingOptions']?.['find'](_0x4bc4f7=>_0x4bc4f7['model']==_0x16cd11);if(_0x4c1c28&&_0x4c1c28['view']){const _0x336d2f=_0x4c1c28['view'],_0x39022a=(_0x336d2f['name']??_0x336d2f)['match'](/^h(\d+)/);if(_0x39022a)return _0x39022a[0x1];}return null;}}class rt extends _0x555e71{['afterInit'](){const _0x492c37=this['editor'];if(!_0x492c37['plugins']['has']('HighlightEditing'))return;const _0x3cd9bd=_0x492c37['plugins']['get']('TrackChangesEditing'),_0x2ed7e1=_0x492c37['locale'];_0x3cd9bd['enableDefaultAttributesIntegration']('highlight'),_0x3cd9bd['registerInlineAttribute']('highlight'),_0x3cd9bd['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2ed7e1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319dc=this['editor'],_0x2f5f24=_0x319dc['locale'];_0x319dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23260f=>{if('formatInline'!=_0x23260f['type'])return;const {data:_0x2cf6c7}=_0x23260f;if(_0x2cf6c7&&'highlight'==_0x2cf6c7['commandName']){const _0x242002=_0x2f5f24['t'],_0x1bae78=_0x2cf6c7['commandParams'][0x0]['value'];if(_0x1bae78){const _0x5608c9=_0x319dc['config']['get']('highlight.options')['find'](_0x5ac54e=>_0x5ac54e['model']==_0x1bae78),_0x41b7c1=_0x242002(_0x5608c9['title'])['toLowerCase']();return{'type':'format','content':o(_0x2f5f24,'*Set\x20highlight:*\x20%0',_0x41b7c1),'color':{'value':_0x5608c9['color'],'title':_0x5608c9['title']}};}return{'type':'format','content':o(_0x2f5f24,'*Remove\x20highlight*',o(_0x2f5f24,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x555e71{['afterInit'](){const _0x109019=this['editor'];if(!_0x109019['plugins']['has']('HorizontalLineEditing'))return;_0x109019['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x40530e=_0x109019['plugins']['get']('TrackChangesEditing'),_0x367f9d=_0x109019['locale'];_0x40530e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2f007e=>o(_0x367f9d,'ELEMENT_HORIZONTAL_LINE',_0x2f007e)),_0x109019['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2093c4,{writer:_0x5a053e,options:_0x24d3eb})=>{if(!_0x24d3eb['showSuggestionHighlights'])return null;const _0xc8111c=_0x5a053e['createContainerElement']('div'),_0x52536f=_0x5a053e['createEmptyElement']('hr');return _0x5a053e['addClass']('ck-horizontal-line',_0xc8111c),_0x5a053e['insert'](_0x5a053e['createPositionAt'](_0xc8111c,0x0),_0x52536f),_0xc8111c;},'converterPriority':'high'});}}class ct extends _0x555e71{['afterInit'](){const _0x17f981=this['editor'];if(!_0x17f981['plugins']['has']('HtmlEmbed'))return;const _0x4390c5=_0x17f981['plugins']['get']('TrackChangesEditing'),_0x1b35dd=_0x17f981['locale'];_0x4390c5['descriptionFactory']['registerElementLabel']('rawHtml',_0x3759dc=>o(_0x1b35dd,'ELEMENT_HTML_EMBED',_0x3759dc)),_0x4390c5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4390c5['registerBlockAttribute']('value'),_0x4390c5['descriptionFactory']['registerDescriptionCallback'](_0x3d5dc0=>{if('attribute'!=_0x3d5dc0['type'])return;const {data:_0x5a923b}=_0x3d5dc0;if(_0x5a923b&&'value'==_0x5a923b['key']&&_0x3d5dc0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3a4d3c=o(_0x1b35dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1b35dd,'*Change\x20%0\x20content*',_0x3a4d3c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55f264=this['editor'],_0x197699=_0x55f264['locale'];_0x55f264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x384280=>{if('formatBlock'!=_0x384280['type'])return;const {data:_0x198d65}=_0x384280;if(_0x198d65&&'htmlEmbed'==_0x198d65['commandName']){const _0x420fc4=o(_0x197699,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x197699,'*Change\x20%0\x20content*',_0x420fc4)};}});}}class ut extends _0x555e71{['afterInit'](){const _0xd61537=this['editor'];if(!_0xd61537['plugins']['has']('ImageEditing'))return;const _0xda98e1=_0xd61537['plugins']['get']('TrackChangesEditing'),_0x1aea1c=_0xd61537['plugins']['get']('ImageUtils'),_0x261778=_0xd61537['locale'];_0xda98e1['enableCommand']('insertImage'),_0xda98e1['descriptionFactory']['registerElementLabel']('imageBlock',_0x268ded=>o(_0x261778,'ELEMENT_IMAGE',_0x268ded)),_0xda98e1['descriptionFactory']['registerElementLabel']('imageInline',_0x3cfe52=>o(_0x261778,'ELEMENT_INLINE_IMAGE',_0x3cfe52)),_0xda98e1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x261778,'ELEMENT_CAPTION')),_0xd61537['plugins']['has']('ImageUploadEditing')&&_0xda98e1['enableCommand']('uploadImage'),_0xd61537['plugins']['has']('ImageBlockEditing')&&_0xd61537['plugins']['has']('ImageInlineEditing')&&(_0xda98e1['enableCommand']('imageTypeInline',(_0xe29911,_0x3c4419)=>{const _0x207f45=_0x1aea1c['getClosestSelectedImageElement'](_0xd61537['model']['document']['selection']);_0xd61537['model']['change'](()=>{_0xda98e1['markBlockFormat'](_0x207f45,{'commandName':'imageTypeInline','commandParams':[_0x3c4419]},[],'convertBlockImageToInline');});}),_0xda98e1['enableCommand']('imageTypeBlock',(_0x52d288,_0x5636af)=>{_0xd61537['model']['change'](_0x15fabe=>{let _0x15aa2e=_0x1aea1c['getClosestSelectedImageElement'](_0xd61537['model']['document']['selection']),_0x5dc7f8=_0x15fabe['createRangeOn'](_0x15aa2e);const _0x1e7c32=_0x2c6117['fromPosition'](_0x5dc7f8['start'],'toPrevious'),_0x3b2559=_0x2c6117['fromPosition'](_0x5dc7f8['end'],'toNext');_0xda98e1['forceDefaultExecution'](()=>_0x52d288(_0x5636af)),_0x15aa2e=_0x1aea1c['getClosestSelectedImageElement'](_0xd61537['model']['document']['selection']),_0x5dc7f8=_0x15fabe['createRangeOn'](_0x15aa2e);const _0x5412e7=_0x15fabe['createRange'](_0x1e7c32,_0x3b2559);_0x1e7c32['detach'](),_0x3b2559['detach'](),_0xda98e1['markBlockFormat'](_0x15aa2e,{'commandName':'imageTypeInline','commandParams':[_0x5636af]},[],'convertInlineImageToBlock'),_0x5412e7['start']['isBefore'](_0x5dc7f8['start'])&&_0xda98e1['markInsertion'](_0x15fabe['createRange'](_0x5412e7['start'],_0x5dc7f8['start']),'convertInlineImageToBlock'),_0x5dc7f8['end']['isBefore'](_0x5412e7['end'])&&_0xda98e1['markInsertion'](_0x15fabe['createRange'](_0x5dc7f8['end'],_0x5412e7['end']),'convertInlineImageToBlock');});}),_0xda98e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xda98e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xda98e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xda98e1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xda98e1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xda98e1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e7e10])=>{const _0x26e81d=_0xda98e1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3e9b94=_0x2e7e10['start'],_0x105dbe=_0x2e7e10['end'];const _0x2d6ed1=_0xd61537['model']['schema']['getNearestSelectionRange'](_0x3e9b94,'backward'),_0x5cccb3=_0xd61537['model']['schema']['getNearestSelectionRange'](_0x105dbe,'forward');_0x2d6ed1['isCollapsed']&&(_0x3e9b94=_0x2d6ed1['start']),_0x5cccb3['isCollapsed']&&(_0x105dbe=_0x5cccb3['end']),_0x26e81d([_0xd61537['model']['createRange'](_0x3e9b94,_0x105dbe)]);}),_0xda98e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x535d9a),_0xda98e1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x535d9a)),_0xd61537['plugins']['has']('ImageCaptionEditing')&&(_0xda98e1['enableCommand']('toggleImageCaption',(_0x18065e,_0x2abcc6)=>{const _0x50c87e=_0xd61537['plugins']['get']('ImageCaptionUtils');let _0x41956e=_0x1aea1c['getClosestSelectedImageElement'](_0xd61537['model']['document']['selection']),_0x2b4d6d=_0x50c87e['getCaptionFromImageModelElement'](_0x41956e);_0xd61537['model']['change'](()=>{if(_0x2b4d6d)return void _0xda98e1['markDeletion'](_0xd61537['model']['createRangeOn'](_0x2b4d6d));const _0x4351e8=_0x1aea1c['isBlockImage'](_0x41956e);_0x18065e(_0x2abcc6),_0x41956e=_0x1aea1c['getClosestSelectedImageElement'](_0xd61537['model']['document']['selection']),_0x2b4d6d=_0x50c87e['getCaptionFromImageModelElement'](_0x41956e),_0xda98e1['markInsertion'](_0xd61537['model']['createRangeOn'](_0x2b4d6d),_0x4351e8?null:'imageCaption');});}),_0xda98e1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x535d9a));const _0x3b962a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47bb95(_0x568af7,_0x5dab2d){const _0x12a911=_0x3b962a['findIndex'](({type:_0x5fdb97,subType:_0x5ec3db})=>_0x568af7['type']==_0x5fdb97&&_0x568af7['subType']==_0x5ec3db),_0x16c286=_0x3b962a['findIndex'](({type:_0x54134d,subType:_0x302234})=>_0x5dab2d['type']==_0x54134d&&_0x5dab2d['subType']==_0x302234);if(_0x12a911<0x0||_0x16c286<0x0)return!0x1;const _0x44bef1=_0x568af7['getFirstRange'](),_0x8c248e=_0x5dab2d['getFirstRange']();if((0x0==_0x12a911||0x1==_0x12a911)&&0x2==_0x16c286&&_0x44bef1['isIntersecting'](_0x8c248e))return!0x0;if(0x2==_0x12a911&&0x3==_0x16c286){const _0x18549a=_0xda98e1['_findSuggestions'](_0x44bef1,'insertion')['filter'](({suggestion:_0x1f571b,meta:_0x329ffc})=>_0x329ffc['isOwn']&&'convertInlineImageToBlock'==_0x1f571b['subType']);if(_0x18549a['length']>0x1&&_0x8c248e['end']['isEqual'](_0x44bef1['start']))return!0x0;if(0x1==_0x18549a['length']&&(_0x44bef1['start']['isEqual'](_0x8c248e['end'])||_0x44bef1['end']['isEqual'](_0x8c248e['start'])))return!0x0;}if(0x3==_0x12a911&&0x3==_0x16c286&&_0x44bef1['start']['isBefore'](_0x8c248e['start'])){const _0x9de275=_0x44bef1['end']['nodeAfter'],_0xbff443=_0x8c248e['start']['nodeBefore'];return _0x1aea1c['isBlockImage'](_0x9de275)&&_0x9de275===_0xbff443;}return!0x1;}function _0x535d9a(_0x5804d0,_0x518bfb){return _0x47bb95(_0x5804d0,_0x518bfb)?[_0x5804d0,_0x518bfb]:_0x47bb95(_0x518bfb,_0x5804d0)?[_0x518bfb,_0x5804d0]:null;}_0xd61537['plugins']['has']('ImageResize')&&(_0xda98e1['enableDefaultAttributesIntegration']('resizeImage'),_0xda98e1['registerBlockAttribute']('resizedWidth'),_0xda98e1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x261778,'FORMAT_IMAGE_SIZE'))),_0xd61537['plugins']['has']('ImageTextAlternativeEditing')&&(_0xda98e1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xda98e1['registerBlockAttribute']('alt')),_0xd61537['plugins']['has']('PictureEditing')&&(_0xda98e1['registerBlockAttribute']('sources'),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0xe9d463=>{if('attribute'!=_0xe9d463['type'])return;const {data:_0x49a269}=_0xe9d463;return _0x49a269&&'sources'==_0x49a269['key']?{'type':'format','content':''}:void 0x0;})),_0xd61537['plugins']['has']('ImageSizeAttributes')&&(_0xda98e1['registerBlockAttribute']('width'),_0xda98e1['registerBlockAttribute']('height'),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0x36558d=>{if('attribute'!=_0x36558d['type'])return;const {data:_0x252dfe}=_0x36558d;return!_0x252dfe||'width'!=_0x252dfe['key']&&'height'!=_0x252dfe['key']?void 0x0:{'type':'format','content':''};})),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0x31c9aa=>{if(!!_0x3b962a['find'](({type:_0x5b2b45,subType:_0x5a943d})=>_0x31c9aa['type']==_0x5b2b45&&_0x31c9aa['subType']==_0x5a943d))return _0x31c9aa['previous']?{}:void 0x0;}),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0x1e9512=>{if('insertion'==_0x1e9512['type']||'deletion'==_0x1e9512['type']){const _0x4d1046=_0x1e9512['getContainedElement']();if(_0x4d1046&&_0x4d1046['is']('element','caption'))return{'type':'insertion'==_0x1e9512['type']?'addObject':'removeObject','element':_0x4d1046,'quantity':0x1};}}),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0xe72c32=>'formatBlock'==_0xe72c32['type']&&'convertInlineImageToBlock'==_0xe72c32['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xe72c32['type']&&'convertBlockImageToInline'==_0xe72c32['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0x3cc11c=>{if('attribute'!=_0x3cc11c['type'])return;const {data:_0x3b3e79}=_0x3cc11c;if(!_0x3b3e79||'alt'!=_0x3b3e79['key'])return;const _0x22248c=_0x3b3e79['newValue'];return _0x22248c?{'type':'format','content':o(_0x261778,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22248c+'\x22')}:{'type':'format','content':o(_0x261778,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5430ad=this['editor'],_0x385924=_0x5430ad['locale'];_0x5430ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb793f2=>{if('formatBlock'!=_0xb793f2['type']&&'formatInline'!=_0xb793f2['type'])return;const {data:_0x52d260}=_0xb793f2;if(_0x52d260){if('imageTextAlternative'==_0x52d260['commandName']){const _0x255c86=_0x52d260['commandParams'][0x0]['newValue'];return _0x255c86?{'type':'format','content':o(_0x385924,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x255c86+'\x22')}:{'type':'format','content':o(_0x385924,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x52d260['commandName']){const _0x21f7b1=_0x52d260['commandParams'][0x0]['width'];return _0x21f7b1?{'type':'format','content':o(_0x385924,'*Set\x20image\x20width:*\x20%0',_0x21f7b1)}:{'type':'format','content':o(_0x385924,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x555e71{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4c7a58=this['editor']['locale'],_0xbd2206=this['editor']['plugins']['get']('TrackChangesEditing');_0xbd2206['enableDefaultAttributesIntegration']('replaceImageSource'),_0xbd2206['registerBlockAttribute']('src'),_0xbd2206['descriptionFactory']['registerDescriptionCallback'](_0x4f9918=>{if('attribute'!=_0x4f9918['type'])return;const {data:_0x483912}=_0x4f9918;return _0x483912&&'src'==_0x483912['key']?_0x483912['newValue']&&_0x483912['oldValue']?{'type':'format','content':o(_0x4c7a58,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2c797c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c797c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2c797c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c797c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2c797c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4de4f3=this['editor'],_0x186313=_0x4de4f3['locale'];_0x4de4f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x90954c=>{if('formatBlock'!=_0x90954c['type']&&'formatInline'!=_0x90954c['type'])return;const {data:_0x4f8c0b}=_0x90954c;if(!_0x4f8c0b||'replaceImageSource'!=_0x4f8c0b['commandName'])return;return{'type':'format','content':o(_0x186313,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x555e71{['afterInit'](){const _0x1fe7c7=this['editor'];if(!_0x1fe7c7['plugins']['has']('ImageStyleEditing'))return;const _0x503fe4=_0x1fe7c7['plugins']['get']('TrackChangesEditing'),_0x105af7=_0x1fe7c7['plugins']['get']('ImageUtils'),_0x45ff81={};_0x503fe4['enableCommand']('imageStyle',(_0x27a6ec,_0x3a9d95)=>{const _0x35c84c=_0x1fe7c7['plugins']['get']('Users')['me'],_0x3ac46a=_0x1fe7c7['commands']['get']('imageStyle');let _0x185cb5=_0x105af7['getClosestSelectedImageElement'](_0x1fe7c7['model']['document']['selection']),_0x2a349d=_0x1fe7c7['model']['createRangeOn'](_0x185cb5),_0x13ae4e=_0x3ac46a['value'];if(_0x13ae4e==_0x3a9d95['value'])return;const _0x5741c6={'commandName':'imageStyle','commandParams':[_0x3a9d95],'formatGroupId':_0x4fda17()};_0x1fe7c7['model']['change'](()=>{if(_0x503fe4['getSuggestions']()['filter'](_0x42e4c8=>_0x42e4c8['isInContent']&&_0x35c84c==_0x42e4c8['author']&&('formatBlock'==_0x42e4c8['type']||'formatInline'==_0x42e4c8['type'])&&('imageStylePreApply'==_0x42e4c8['subType']||'imageStylePostApply'==_0x42e4c8['subType'])&&_0x42e4c8['getFirstRange']()['isEqual'](_0x2a349d))['forEach'](_0x4fc8fb=>_0x503fe4['discardSuggestion'](_0x4fc8fb['head'])),_0x185cb5=_0x105af7['getClosestSelectedImageElement'](_0x1fe7c7['model']['document']['selection']),_0x2a349d=_0x1fe7c7['model']['createRangeOn'](_0x185cb5),_0x3ac46a['refresh'](),_0x1fe7c7['commands']['get']('imageTypeInline')['refresh'](),_0x1fe7c7['commands']['get']('imageTypeBlock')['refresh'](),_0x13ae4e=_0x3ac46a['value'],_0x13ae4e!=_0x3a9d95['value'])return _0x105af7['isInlineImage'](_0x185cb5)&&_0x3ac46a['shouldConvertImageType'](_0x3a9d95['value'],_0x185cb5)?(_0x27a6ec({..._0x3a9d95,'setImageSizes':!0x1}),_0x185cb5=_0x105af7['getClosestSelectedImageElement'](_0x1fe7c7['model']['document']['selection']),void _0x503fe4['markBlockFormat'](_0x185cb5,{..._0x5741c6,'commandReversedParams':[{'value':_0x13ae4e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x105af7['isBlockImage'](_0x185cb5)?_0x503fe4['markBlockFormat'](_0x185cb5,_0x5741c6,[],'imageStylePostApply'):_0x503fe4['markInlineFormat'](_0x2a349d,_0x5741c6,'imageStylePostApply'));});});for(const _0x2041a6 of _0x1fe7c7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x45ff81[_0x2041a6['name']]=_0x2041a6['title']['toLowerCase']();_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3b63bf])=>{_0x105af7['setImageNaturalSizeAttributes'](_0x3b63bf['getContainedElement']());}),_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3db84c,_0x165abf)=>{_0x503fe4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3db84c,{'commandName':_0x165abf['commandName'],'commandParams':_0x165abf['commandReversedParams']});}),_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x296336,_0x20d8e1){if(_0x3385fe(_0x296336,_0x20d8e1))return[_0x296336,_0x20d8e1];if(_0x3385fe(_0x20d8e1,_0x296336))return[_0x20d8e1,_0x296336];return null;});const _0x157acd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3385fe(_0x15c62c,_0x228abc){const _0x5ed1e9=_0x157acd['findIndex'](({type:_0x112acc,subType:_0x1f99b0})=>_0x15c62c['type']==_0x112acc&&_0x15c62c['subType']==_0x1f99b0),_0x17f1e6=_0x157acd['findIndex'](({type:_0x2f268b,subType:_0x3d976c})=>_0x228abc['type']==_0x2f268b&&_0x228abc['subType']==_0x3d976c);if(_0x5ed1e9<0x0||_0x17f1e6<0x0)return!0x1;const _0x1de78d=_0x15c62c['getFirstRange'](),_0x463ba9=_0x228abc['getFirstRange']();if((0x0==_0x5ed1e9||0x1==_0x5ed1e9)&&0x2==_0x17f1e6&&_0x1de78d['isIntersecting'](_0x463ba9))return!0x0;if(0x2==_0x5ed1e9&&0x3==_0x17f1e6){const _0x346333=_0x503fe4['_findSuggestions'](_0x1de78d,'insertion')['filter'](({suggestion:_0x10f187,meta:_0x1eab7e})=>_0x1eab7e['isOwn']&&'convertInlineImageToBlock'==_0x10f187['subType']);if(_0x346333['length']>0x1&&_0x463ba9['end']['isEqual'](_0x1de78d['start']))return!0x0;if(0x1==_0x346333['length']&&(_0x1de78d['start']['isEqual'](_0x463ba9['end'])||_0x1de78d['end']['isEqual'](_0x463ba9['start'])))return!0x0;}if(0x3==_0x5ed1e9&&0x3==_0x17f1e6&&_0x1de78d['start']['isBefore'](_0x463ba9['start'])){const _0x76c235=_0x1de78d['end']['nodeAfter'],_0x35ed57=_0x463ba9['start']['nodeBefore'];return _0x105af7['isBlockImage'](_0x76c235)&&_0x76c235===_0x35ed57;}return!0x1;}_0x1fe7c7['model']['document']['registerPostFixer'](()=>{let _0x2850c9=!0x1;const _0x4b1415=Array['from'](_0x1fe7c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x62dec9,data:_0x9cb7da}of _0x4b1415){const {group:_0x1d1f9d,type:_0x1efe7e,subType:_0x4046ce,id:_0xd53be7}=_0x503fe4['_splitMarkerName'](_0x62dec9);if('suggestion'==_0x1d1f9d&&_0x503fe4['hasSuggestion'](_0xd53be7)){if('formatBlock'==_0x1efe7e&&('imageStylePreApply'==_0x4046ce||'imageStylePostApply'==_0x4046ce)){const _0x22fc06=_0x503fe4['getSuggestion'](_0xd53be7);if(_0x9cb7da['newRange']){const _0x5ce30f=_0x22fc06['getFirstRange']()['getContainedElement']();if(_0x105af7['isBlockImage'](_0x5ce30f))continue;_0x503fe4['discardSuggestion'](_0x22fc06),_0x2850c9=!0x0;}}if('insertion'==_0x1efe7e&&'imageCaption'==_0x4046ce&&!_0x9cb7da['newRange']){const _0x4661d3=_0x503fe4['getSuggestion'](_0xd53be7);_0x4661d3['next']&&_0x4661d3['next']['isInContent']&&(_0x503fe4['discardSuggestion'](_0x4661d3['next']),_0x2850c9=!0x0);}}}return _0x2850c9;}),this['_registerLegacyDescription'](_0x45ff81);}['_registerLegacyDescription'](_0xc5d06d){const _0x15fa40=this['editor'],_0x50d6a3=_0x15fa40['locale'];_0x15fa40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4be451=>{if('formatBlock'!=_0x4be451['type']&&'formatInline'!=_0x4be451['type'])return;const {data:_0x2727a5}=_0x4be451;if(!_0x2727a5||'imageStyle'!=_0x2727a5['commandName'])return;const _0x30f040=_0x2727a5['commandParams'][0x0]['value'];return _0x28628c('side'===_0x30f040?o(_0x50d6a3,'FORMAT_SIDE_IMAGE'):_0xc5d06d[_0x30f040]||_0x30f040);function _0x28628c(_0x36cd4d){return{'type':'format','content':o(_0x50d6a3,'*Format:*\x20%0',_0x36cd4d)};}});}}class gt extends _0x555e71{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4aa03e){super(_0x4aa03e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x63ee02=this['editor'],_0x310918=_0x63ee02['commands']['get']('importWord'),_0xb563f5=_0x63ee02['commands']['get']('trackChanges');_0x310918&&(_0x310918['on']('execute',(_0x514129,[,_0x368e75])=>{this['_trackChangesValueDuringImport']=_0xb563f5['value'],_0x368e75['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x310918,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x310918,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xb563f5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x63ee02['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x530985,_0x2c3f79){const {suggestions:_0x492f24}=_0x2c3f79,_0x560571=this['editor']['commands']['get']('trackChanges'),_0x2720da=_0x560571['value'];this['_trackChangesValueDuringImport']!==_0x2720da&&(_0x560571['execute'](),this['_trackChangesExecuted']=!0x0),_0x492f24&&_0x492f24['forEach'](({id:_0x4c4fcb,type:_0x1edb86,author:_0x135a91,created_at:_0x551b51})=>{const _0x3ef0a1={'id':_0x4c4fcb,'type':_0x1edb86,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x135a91,'createdAt':_0x551b51?new Date(_0x551b51):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3ef0a1);});}}class lt extends _0x555e71{['afterInit'](){const _0x58b330=this['editor'],_0x43cce1=_0x58b330['plugins']['get']('TrackChangesEditing');if(_0x58b330['plugins']['has']('IndentEditing')&&(_0x43cce1['enableCommand']('indent'),_0x43cce1['enableCommand']('outdent')),_0x58b330['plugins']['has']('IndentBlock')){for(const _0x5226e0 of['indentBlock','outdentBlock'])_0x43cce1['enableDefaultAttributesIntegration'](_0x5226e0);}const _0x5c6834=_0x58b330['locale'];_0x43cce1['registerBlockAttribute']('blockIndent'),_0x43cce1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5c6834,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3151e5=this['editor'],_0x54396b=_0x3151e5['locale'],_0x62ca64=_0x3151e5['plugins']['get']('TrackChangesEditing');_0x62ca64['descriptionFactory']['registerDescriptionCallback'](_0x1ccf30=>{if('formatBlock'!=_0x1ccf30['type'])return;const {data:_0x977dee}=_0x1ccf30;if(!_0x977dee)return;if('indentBlock'!=_0x977dee['commandName']&&'outdentBlock'!=_0x977dee['commandName'])return;const _0x109f32=_0x1ccf30['getItems']()[0x0],_0x3e4640=_0x62ca64['descriptionFactory']['getItemLabel'](_0x109f32);return'indentBlock'==_0x977dee['commandName']?{'type':'format','content':o(_0x54396b,'*Indent:*\x20%0',_0x3e4640)}:'outdentBlock'==_0x977dee['commandName']?{'type':'format','content':o(_0x54396b,'*Outdent:*\x20%0',_0x3e4640)}:void 0x0;});}}class dt extends _0x555e71{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class mt extends _0x555e71{['afterInit'](){const _0x1182c5=this['editor'];if(!_0x1182c5['plugins']['has']('LinkEditing'))return;const _0x4b27e6=_0x1182c5['plugins']['get']('TrackChangesEditing'),_0xff9cb8=_0x1182c5['commands']['get']('link');_0x4b27e6['enableDefaultAttributesIntegration']('link'),_0x4b27e6['enableDefaultAttributesIntegration']('unlink'),_0x4b27e6['registerInlineAttribute']('linkHref');for(const _0x3b2093 of _0xff9cb8['manualDecorators'])_0x4b27e6['registerInlineAttribute'](_0x3b2093['id']),_0x4b27e6['descriptionFactory']['registerAttributeLabel'](_0x3b2093['id'],'link\x20('+_0x3b2093['label']['toLowerCase']()+')');_0x4b27e6['descriptionFactory']['registerDescriptionCallback'](_0x99e010=>{if('attribute'!=_0x99e010['type'])return;const {data:_0x3d83df}=_0x99e010;if(!_0x3d83df||'linkHref'!=_0x3d83df['key'])return;const _0x4c3881=_0x3d83df['newValue'],_0xa667e5=_0x1182c5['locale'];return{'type':'format','content':null==_0x4c3881?o(_0xa667e5,'*Remove\x20link*'):o(_0xa667e5,'*Set\x20link:*\x20%0','\x22'+_0x4c3881+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1acee8=this['editor'],_0x3831c2=_0x1acee8['locale'];_0x1acee8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54e5ce=>{if('formatInline'!=_0x54e5ce['type'])return;const {data:_0x3c8bc3}=_0x54e5ce;if(_0x3c8bc3){if('link'==_0x3c8bc3['commandName']){const _0x328db6=_0x3c8bc3['commandParams'][0x0];return{'type':'format','content':o(_0x3831c2,'*Set\x20link:*\x20%0','\x22'+_0x328db6+'\x22')};}return'unlink'==_0x3c8bc3['commandName']?{'type':'format','content':o(_0x3831c2,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x555e71{['afterInit'](){const _0x4f9a20=this['editor'],_0x551a59=_0x4f9a20['locale'];if(!_0x4f9a20['plugins']['has']('LegacyListEditing'))return;const _0xfc5e72=_0x4f9a20['plugins']['get']('TrackChangesEditing'),_0x5231e9=_0x4f9a20['plugins']['has']('LegacyTodoListEditing');function _0x3d33bb(_0x2da619){return()=>{const _0x4a8941=_0x4f9a20['model']['document']['selection'],_0x515088=_0x4f9a20['commands']['get'](_0x2da619);if(_0x515088['value'])return void _0x4f9a20['execute']('paragraph',{});const _0x5629ea=_0x2da619['slice'](0x0,-0x4),_0x10078a=function(_0xd45368,_0x3b85e3,_0x3cfe5e){let _0x1aa9cc=Array['from'](_0xd45368)['filter'](_0x393963=>function(_0x5dd1f4,_0x5225d1){return _0x5225d1['checkChild'](_0x5dd1f4['parent'],'listItem')&&!_0x5225d1['isObject'](_0x5dd1f4);}(_0x393963,_0x3cfe5e));_0x1aa9cc=_0x1aa9cc['filter'](_0x58a144=>!_0x58a144['is']('element','listItem')||_0x58a144['getAttribute']('listType')!=_0x3b85e3);const _0x306901=new Set();for(const _0xe8dfe2 of _0x1aa9cc)_0xe8dfe2['is']('element','listItem')?_0x306901['add'](Ne(_0xe8dfe2)):_0x306901['add'](_0xe8dfe2);return Array['from'](_0x306901);}(_0x4a8941['getSelectedBlocks'](),_0x5629ea,_0x4f9a20['model']['schema']);_0x4f9a20['model']['change'](()=>{for(const _0x29890e of _0x10078a)_0xfc5e72['markBlockFormat'](_0x29890e,{'commandName':_0x2da619,'commandParams':[{'forceValue':!_0x515088['value']}],'formatGroupId':'blockName'},Se(_0x29890e));});};}function _0x95c9b7(_0x1b3515){return()=>{const _0xd406bf=function(_0x336c6a){let _0x363706=Array['from'](_0x336c6a);const _0x189d6b=_0x363706['findIndex'](_0x51cf5e=>'listItem'!=_0x51cf5e['name']);return _0x189d6b>-0x1&&(_0x363706=_0x363706['slice'](0x0,_0x189d6b)),_0x363706;}(_0x4f9a20['model']['document']['selection']['getSelectedBlocks']()),_0x4debf0=_0x4f9a20['model']['createRange'](_0x4f9a20['model']['createPositionAt'](_0xd406bf[0x0],'before'),_0x4f9a20['model']['createPositionAt'](_0xd406bf[_0xd406bf['length']-0x1],'end'));_0x4f9a20['model']['change'](()=>{_0xfc5e72['markBlockFormat'](_0x4debf0,{'commandName':_0x1b3515,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1f760a){const _0x3edbff=new Set();for(const _0x522cfe of _0x1f760a){let _0x348d03=_0x522cfe['nextSibling'];for(;_0x348d03&&_0x348d03['getAttribute']('listIndent')>_0x522cfe['getAttribute']('listIndent');)_0x3edbff['add'](_0x348d03),_0x348d03=_0x348d03['nextSibling'];}return Array['from'](_0x3edbff);}(_0xd406bf));});};}_0xfc5e72['enableCommand']('numberedList',_0x3d33bb('numberedList')),_0xfc5e72['enableCommand']('bulletedList',_0x3d33bb('bulletedList')),_0x5231e9&&_0xfc5e72['enableCommand']('todoList',_0x3d33bb('todoList')),_0xfc5e72['enableCommand']('indentList',_0x95c9b7('indentList')),_0xfc5e72['enableCommand']('outdentList',_0x95c9b7('outdentList')),_0x5231e9&&_0xfc5e72['enableCommand']('checkTodoList',()=>{const _0x4686cd=_0x4f9a20['commands']['get']('checkTodoList'),_0x22cb02=Array['from'](_0x4686cd['_selectedElements']);_0x22cb02['filter'](_0x5b183f=>_0x5b183f['getAttribute']('todoListChecked')!=_0x4686cd['value']),_0x4f9a20['model']['change'](()=>{for(const _0x4f173a of _0x22cb02)_0xfc5e72['markBlockFormat'](_0x4f173a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4686cd['value']}]});});}),_0xfc5e72['descriptionFactory']['registerElementLabel']('listItem',_0x236a57=>o(_0x551a59,'ELEMENT_LIST_ITEM',_0x236a57)),_0xfc5e72['descriptionFactory']['registerDescriptionCallback'](_0x20dd72=>{if('formatBlock'!=_0x20dd72['type']&&'formatInline'!=_0x20dd72['type'])return;const {data:_0x99b470}=_0x20dd72;if(_0x99b470){if('numberedList'==_0x99b470['commandName']||'bulletedList'==_0x99b470['commandName']||'todoList'==_0x99b470['commandName'])switch(_0x99b470['commandName']['replace']('List','')){case'bulleted':return _0x4d08a9(o(_0x551a59,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d08a9(o(_0x551a59,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d08a9(o(_0x551a59,'ELEMENT_TODO_LIST'));}if('indentList'==_0x99b470['commandName'])return{'type':'format','content':o(_0x551a59,'*Indent:*\x20%0',o(_0x551a59,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x99b470['commandName'])return{'type':'format','content':o(_0x551a59,'*Outdent:*\x20%0',o(_0x551a59,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x99b470['commandName'])return _0x99b470['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x551a59,'*Check\x20item*')}:{'type':'format','content':o(_0x551a59,'*Uncheck\x20item*')};}function _0x4d08a9(_0x4448d7){return{'type':'format','content':o(_0x551a59,'*Change\x20to:*\x20%0',_0x4448d7)};}});}}function Ne(_0x5112ec){const _0x127432=_0x5112ec['getAttribute']('listIndent');if(0x0==_0x127432)return _0x5112ec;let _0x3f9ec8=_0x5112ec;for(;_0x5112ec['previousSibling']&&_0x5112ec['previousSibling']['is']('element','listItem');){const _0x4097ab=_0x5112ec['previousSibling']['getAttribute']('listIndent');if(_0x4097ab==_0x127432)_0x3f9ec8=_0x5112ec['previousSibling'];else{if(_0x4097ab<_0x127432)break;}_0x5112ec=_0x5112ec['previousSibling'];}return _0x3f9ec8;}function Se(_0x28f2c4){const _0x350c79=[];if(_0x28f2c4['is']('element','listItem')&&_0x28f2c4['getAttribute']('listIndent')>0x0){let _0x412d2d=_0x28f2c4['nextSibling'];for(;_0x412d2d&&'listItem'==_0x412d2d['name']&&_0x412d2d['getAttribute']('listIndent')==_0x28f2c4['getAttribute']('listIndent');)_0x350c79['push'](_0x412d2d),_0x412d2d=_0x412d2d['nextSibling'];}return _0x350c79;}class kt extends _0x555e71{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b8c93=this['editor']['config']['get']('list.properties'),_0x3211d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b8c93['styles']&&_0x3211d4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b8c93['reversed']&&_0x3211d4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b8c93['startIndex']&&_0x3211d4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3211d4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x410ee9,_0x34337a={}){const _0x3472bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd865c4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3472bf['markMultiRangeBlockFormat'](_0xd865c4,{'commandName':'listStyle','commandParams':[{'type':_0x34337a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e65d5,_0x32f7d1={}){const _0x47c4c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fbfa3=this['_getSuggestionBlocks'](_0x12dee8=>_0x12dee8['is']('element','listItem')&&'numbered'===_0x12dee8['getAttribute']('listType'));if(_0x4fbfa3['length']<0x1)return;const _0x3af03b=_0x4fbfa3['map'](_0x436561=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x436561,'before'),this['editor']['model']['createPositionAt'](_0x436561,0x0)));this['editor']['model']['change'](()=>{_0x47c4c0['markMultiRangeBlockFormat'](_0x3af03b,{'commandName':'listReversed','commandParams':[{'reversed':_0x32f7d1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xa44837,_0x4c4a98={}){const _0x36fc87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41b265=this['_getSuggestionBlocks'](_0x7a0224=>_0x7a0224['is']('element','listItem')&&'numbered'===_0x7a0224['getAttribute']('listType'));if(_0x41b265['length']<0x1)return;const _0x3cac52=_0x41b265['map'](_0x2b8d7d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b8d7d,'before'),this['editor']['model']['createPositionAt'](_0x2b8d7d,0x0)));this['editor']['model']['change'](()=>{_0x36fc87['markMultiRangeBlockFormat'](_0x3cac52,{'commandName':'listStart','commandParams':[{'startIndex':_0x4c4a98['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x58640b){if('formatBlock'!=_0x58640b['type']&&'formatInline'!=_0x58640b['type'])return;const _0x3523b6=this['editor']['locale'],{data:_0x1fd793}=_0x58640b;if(!_0x1fd793)return;let _0x28c0a6,_0x30712a;switch(_0x1fd793['commandName']){case'listStyle':_0x28c0a6='*Change\x20to:*\x20%0',_0x30712a={'type':'format','content':o(_0x3523b6,_0x28c0a6,o(_0x3523b6,this['_getTranslationKeyForListStyle'](_0x1fd793['commandParams'][0x0]['type'])))};break;case'listReversed':_0x28c0a6=_0x1fd793['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30712a={'type':'format','content':o(_0x3523b6,_0x28c0a6)};break;case'listStart':_0x28c0a6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30712a={'type':'format','content':o(_0x3523b6,_0x28c0a6,_0x1fd793['commandParams'][0x0]['startIndex'])};}return _0x30712a;}['_getSuggestionBlocksForListStyle'](){const _0x342c66=this['editor']['plugins']['get']('LegacyListUtils');let _0x31cf3a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x31cf3a[0x0]?.['is']('element','listItem')&&_0x31cf3a['unshift'](..._0x342c66['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x31cf3a[_0x31cf3a['length']-0x1]?.['is']('element','listItem')&&_0x31cf3a['push'](..._0x342c66['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x31cf3a=[...new Set(_0x31cf3a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x31cf3a=_0x31cf3a['filter'](_0x2faabe=>_0x2faabe['is']('element','listItem'))),_0x31cf3a;}['_getSuggestionBlocks'](_0x4fdd13){const _0x1ad275=this['editor']['plugins']['get']('LegacyListUtils');let _0x2afa00=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4fdd13)['map'](_0x4d8cad=>{const _0xfe3bd5=this['editor']['model']['createPositionAt'](_0x4d8cad,0x0);return[..._0x1ad275['getSiblingNodes'](_0xfe3bd5,'backward'),..._0x1ad275['getSiblingNodes'](_0xfe3bd5,'forward')];})['flat']();return _0x2afa00=[...new Set(_0x2afa00)],_0x2afa00;}['_getTranslationKeyForListStyle'](_0x3b49c5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3b49c5)||'default')['toUpperCase']()+'_LIST_'+_0x3b49c5['toUpperCase']()['replace'](/-/g,'_');}}class wt extends _0x555e71{['afterInit'](){const _0x276b04=this['editor'];if(!_0x276b04['plugins']['has']('MediaEmbedEditing'))return;const _0x3b3720=_0x276b04['plugins']['get']('TrackChangesEditing'),_0x2b2e3e=_0x276b04['locale'];_0x3b3720['enableCommand']('mediaEmbed'),_0x3b3720['descriptionFactory']['registerElementLabel']('media',_0x3aa988=>o(_0x2b2e3e,'ELEMENT_MEDIA',_0x3aa988)),_0x276b04['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x41e8fc,{writer:_0x5274f9,options:_0xbaf405})=>{if(_0xbaf405['showSuggestionHighlights'])return _0x5274f9['createEmptyElement']('div');},'converterPriority':'high'}),_0x276b04['data']['downcastDispatcher']['on']('attribute:url:media',(_0x142b45,_0x50a359,_0x3e0957)=>{_0x3e0957['options']['showSuggestionHighlights']&&_0x142b45['stop']();},{'priority':'high'});}}class bt extends _0x555e71{['afterInit'](){const _0x56a91e=this['editor'];_0x56a91e['plugins']['has']('MentionEditing')&&_0x56a91e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x555e71{['afterInit'](){const _0x496416=this['editor'];if(!_0x496416['plugins']['has']('MergeFieldsEditing'))return;const _0x1d7e19=_0x496416['plugins']['get']('TrackChangesEditing'),_0x29de27=_0x496416['locale'];_0x1d7e19['enableCommand']('insertMergeField'),_0x1d7e19['enableCommand']('insertMergeFieldBlock'),_0x1d7e19['enableCommand']('insertMergeFieldImage'),_0x1d7e19['descriptionFactory']['registerElementLabel']('mergeField',_0x1d4ef3=>o(_0x29de27,'ELEMENT_MERGE_FIELD',_0x1d4ef3)),_0x1d7e19['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xbc481=>o(_0x29de27,'ELEMENT_MERGE_FIELD',_0xbc481)),_0x1d7e19['descriptionFactory']['registerDescriptionCallback'](_0x564edf=>{if('insertion'!=_0x564edf['type']&&'deletion'!=_0x564edf['type'])return;const _0x5ed19e=_0x564edf['getContainedElement']();if(null==_0x5ed19e)return;const _0x4202a6=_0x496416['plugins']['get']('MergeFieldsEditing');let _0x565280;switch(_0x4202a6['getMergeFieldType'](_0x5ed19e)){case null:return;case'image':{const _0x48c4cb=_0x4202a6['unwrapAffixes'](_0x5ed19e['getAttribute']('src'));_0x565280=_0x4202a6['getLabel'](_0x48c4cb)||_0x48c4cb;break;}default:{const _0x100911=_0x5ed19e['getAttribute']('id');_0x565280=_0x4202a6['getLabel'](_0x100911)||_0x100911;break;}}return'insertion'==_0x564edf['type']?{'type':'insertion','content':o(_0x29de27,'*Insert:*\x20%0','\x22'+_0x565280+'\x22\x20'+o(_0x29de27,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x29de27,'*Remove:*\x20%0','\x22'+_0x565280+'\x22\x20'+o(_0x29de27,'ELEMENT_MERGE_FIELD'))};});}}class St extends _0x555e71{['afterInit'](){const _0x11a43b=this['editor'],_0x3a4803=_0x11a43b['plugins']['get']('TrackChangesEditing');_0x11a43b['plugins']['has']('MultiLevelList')&&(_0x3a4803['enableDefaultAttributesIntegration']('multiLevelList'),_0x3a4803['registerBlockAttribute']('listMarkerStyle'),_0x3a4803['descriptionFactory']['registerDescriptionCallback'](_0x1e0165=>this['handleDescriptions'](_0x1e0165)));}['handleDescriptions'](_0x56cf88){const _0x403112=this['editor']['locale'],{data:_0x3aa3ba}=_0x56cf88,_0xd9b83f={'type':'format','content':''};if(_0x3aa3ba&&'listMarkerStyle'==_0x3aa3ba['key']){if(!_0x3aa3ba['oldValue'])return{'type':'format','content':o(_0x403112,'*Set\x20format:*\x20%0',o(_0x403112,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3aa3ba['newValue']+')'};if(!_0x3aa3ba['newValue']){let _0x5b766a=_0x56cf88['head'];for(;_0x5b766a;){if(_0x5b766a['data']&&'listType'==_0x5b766a['data']['key']&&_0x5b766a['data']['newValue'])return _0xd9b83f;_0x5b766a=_0x5b766a['next'];}return{'type':'format','content':o(_0x403112,'*Remove\x20format:*\x20%0',o(_0x403112,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3aa3ba['oldValue']+')'};}}}}class jt extends _0x555e71{['afterInit'](){const _0x3189c8=this['editor'];if(!_0x3189c8['plugins']['has']('PageBreakEditing'))return;_0x3189c8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3629fa=_0x3189c8['plugins']['get']('TrackChangesEditing'),_0x20d491=_0x3189c8['locale'];_0x3629fa['descriptionFactory']['registerElementLabel']('pageBreak',_0x93b50e=>o(_0x20d491,'ELEMENT_PAGE_BREAK',_0x93b50e));}}class It extends _0x555e71{['afterInit'](){const _0x4482c1=this['editor'];if(!_0x4482c1['plugins']['has']('Paragraph'))return;const _0x5966a5=_0x4482c1['locale'],_0x18a99a=_0x4482c1['plugins']['get']('TrackChangesEditing');_0x18a99a['descriptionFactory']['registerElementLabel']('paragraph',_0x260b40=>o(_0x5966a5,'ELEMENT_PARAGRAPH',_0x260b40)),_0x18a99a['enableDefaultAttributesIntegration']('paragraph'),_0x18a99a['enableCommand']('insertParagraph'),_0x4482c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4482c1),{'priority':'highest'}),_0x4482c1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5a737e,_0x1ef758,_0x426b81)=>{_0x426b81['options']['showSuggestionHighlights']&&nr(_0x4482c1,{'showActiveMarker':!0x1})(_0x5a737e,_0x1ef758,_0x426b81);},{'priority':'highest'});const _0xae33aa=_0x18a99a['descriptionFactory'];_0xae33aa['registerDescriptionCallback'](_0x39f448=>{if('insertion'!==_0x39f448['type'])return;const {start:_0x2d1e45,end:_0x5a2279}=_0x39f448['getFirstRange']();if(!_0x2d1e45['isTouching'](_0x5a2279)||!_0x2d1e45['nodeAfter'])return;const _0x2a40c6=_0x4482c1['model']['schema'],_0x35c741=_0x2d1e45['nodeAfter'];return _0x2a40c6['isBlock'](_0x35c741)&&!_0x2a40c6['isLimit'](_0x35c741)&&_0x2a40c6['checkChild'](_0x35c741,'$text')?{'type':'insertion','content':o(_0x5966a5,'*Insert:*\x20%0',_0xae33aa['getItemLabel'](_0x35c741,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d6789=this['editor'],_0x1db810=_0x5d6789['locale'];_0x5d6789['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21f6e4=>{if('formatBlock'!=_0x21f6e4['type'])return;const {data:_0x5a4a05}=_0x21f6e4;return _0x5a4a05&&'paragraph'==_0x5a4a05['commandName']?{'type':'format','content':o(_0x1db810,'*Change\x20to:*\x20%0',o(_0x1db810,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xf2a16b,{showActiveMarker:_0x17611a=!0x0}={}){return(_0x22ce1e,_0x19326a,_0x31a267)=>{const _0x119fa5=_0xf2a16b['plugins']['get']('TrackChangesEditing'),_0x12e77b=_0x19326a['markerRange']['start'],_0x127aed=_0x19326a['markerRange']['end'],_0x5673d5=_0xf2a16b['model']['schema'];if(!_0x12e77b['isTouching'](_0x127aed)||!_0x12e77b['nodeAfter'])return;const _0x48abd1=_0x12e77b['nodeAfter'];if(_0x5673d5['isBlock'](_0x48abd1)&&!_0x5673d5['isLimit'](_0x48abd1)&&_0x5673d5['checkChild'](_0x48abd1,'$text')){if(!_0x31a267['consumable']['consume'](_0x19326a['markerRange'],_0x22ce1e['name']))return;const {id:_0x15d933,authorId:_0x3c8adc}=_0x119fa5['_splitMarkerName'](_0x19326a['markerName']),_0x59d44c=_0x31a267['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x15d933,'data-author-id':_0x3c8adc}),_0x368e0a=_0x31a267['mapper']['toViewPosition'](_0x127aed);_0x17611a&&_0x119fa5['activeMarkers']['includes'](_0x19326a['markerName'])&&_0x31a267['writer']['addClass']('ck-suggestion-marker--active',_0x59d44c),_0x31a267['writer']['insert'](_0x368e0a,_0x59d44c),_0x31a267['mapper']['bindElementToMarker'](_0x59d44c,_0x19326a['markerName']);}};}class At extends _0x555e71{['afterInit'](){const _0x268cf6=this['editor'];_0x268cf6['commands']['get']('replaceSource')&&_0x268cf6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x555e71{['afterInit'](){const _0x2d1aea=this['editor'];if(!_0x2d1aea['plugins']['has']('RemoveFormatEditing'))return;_0x2d1aea['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f4d5d=this['editor'];_0x1f4d5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf9f3ca=>{if('formatBlock'!=_0xf9f3ca['type']&&'formatInline'!=_0xf9f3ca['type'])return;const {data:_0xe11066}=_0xf9f3ca;return _0xe11066&&'removeFormat'==_0xe11066['commandName']?{'type':'format','content':o(_0x1f4d5d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class $t extends _0x555e71{['afterInit'](){const _0x21fcba=this['editor'];if(!_0x21fcba['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3cdc21=_0x21fcba['plugins']['get']('TrackChangesEditing');_0x3cdc21['enableCommand']('goToPreviousRestrictedEditingException'),_0x3cdc21['enableCommand']('goToNextRestrictedEditingException');const _0x4f3ee2=_0x21fcba['plugins']['get']('RestrictedEditingModeEditing');_0x4f3ee2['enableCommand']('trackChanges'),_0x4f3ee2['enableCommand']('acceptSuggestion'),_0x4f3ee2['enableCommand']('discardSuggestion'),_0x4f3ee2['enableCommand']('acceptAllSuggestions'),_0x4f3ee2['enableCommand']('discardAllSuggestions'),_0x4f3ee2['enableCommand']('acceptSelectedSuggestions'),_0x4f3ee2['enableCommand']('discardSelectedSuggestions');}}class vt extends _0x555e71{['afterInit'](){const _0x53ab59=this['editor'];if(!_0x53ab59['plugins']['has']('ShiftEnter'))return;const _0x2cc473=_0x53ab59['plugins']['get']('TrackChangesEditing');_0x2cc473['enableCommand']('shiftEnter'),_0x53ab59['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x53ab59),{'priority':'high'}),_0x53ab59['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x53ab59),{'priority':'high'}),_0x53ab59['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x49638f,_0x2124a0,_0x157931)=>{_0x157931['options']['showSuggestionHighlights']&&qe(_0x53ab59,{'showActiveMarker':!0x1})(_0x49638f,_0x2124a0,_0x157931);}),_0x2cc473['descriptionFactory']['registerElementLabel']('softBreak',_0x201afa=>o(_0x53ab59['locale'],'ELEMENT_LINE_BREAK',_0x201afa));}}function qe(_0x5df066,{showActiveMarker:_0x5a1313=!0x0}={}){return(_0x5a03e8,_0x4b5636,_0x3c5946)=>{const _0x1638a3=_0x5df066['plugins']['get']('TrackChangesEditing');if(!_0x3c5946['consumable']['test'](_0x4b5636['markerRange'],_0x5a03e8['name']))return;const _0x361d81=_0x5df066['model'];for(const _0x1f2b20 of _0x4b5636['markerRange']['getItems']()){if(!_0x1f2b20['is']('element','softBreak'))continue;const _0x33c25f='deletion'==_0x4b5636['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x222091,authorId:_0x141f29}=_0x1638a3['_splitMarkerName'](_0x4b5636['markerName']),_0xbeb168=_0x3c5946['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33c25f,'data-suggestion':_0x222091,'data-author-id':_0x141f29}),_0x101055=_0x3c5946['mapper']['toViewPosition'](_0x361d81['createPositionBefore'](_0x1f2b20));_0x5a1313&&_0x1638a3['activeMarkers']['includes'](_0x4b5636['markerName'])&&_0x3c5946['writer']['addClass']('ck-suggestion-marker--active',_0xbeb168),_0x3c5946['writer']['insert'](_0x101055,_0xbeb168),_0x3c5946['mapper']['bindElementToMarker'](_0xbeb168,_0x4b5636['markerName']);}};}class Ct extends _0x555e71{['afterInit'](){const _0x9243c7=this['editor'],_0x9072d6=_0x9243c7['model'],_0x337f88=_0x9243c7['locale'];if(!_0x9243c7['plugins']['has']('StandardEditingModeEditing'))return;const _0x1ec536=_0x9243c7['plugins']['get']('TrackChangesEditing'),_0x23e2e0='restrictedEditingException',_0x55b9d9=_0x9243c7['commands']['get'](_0x23e2e0);_0x1ec536['enableCommand'](_0x23e2e0,(_0xa655a,_0x34c427={})=>{const _0x355943=_0x9072d6['document']['selection'];if(_0x355943['isCollapsed'])return void _0xa655a(_0x34c427);const _0x309b65=void 0x0!==_0x34c427['forceValue']?_0x34c427['forceValue']:!_0x55b9d9['value'];_0x9072d6['change'](()=>{const _0x27acb8=Array['from'](_0x355943['getRanges']());for(const _0x425e5f of _0x27acb8){const _0x353997=_0x309b65?[_0x425e5f]:io(_0x23e2e0,_0x425e5f,_0x9072d6);for(const _0xa3f4b9 of _0x353997)_0x1ec536['markInlineFormat'](_0xa3f4b9,{'commandName':_0x23e2e0,'commandParams':[{'forceValue':_0x309b65}]});}});}),_0x1ec536['descriptionFactory']['registerDescriptionCallback'](_0xdae871=>{if('formatBlock'!=_0xdae871['type']&&'formatInline'!=_0xdae871['type'])return;const {data:_0x598543}=_0xdae871;return _0x598543&&_0x598543['commandName']==_0x23e2e0?_0x598543['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x337f88,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x337f88,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Nt extends _0x555e71{['afterInit'](){const _0x49c17f=this['editor'];if(!_0x49c17f['plugins']['has']('Style')||!_0x49c17f['plugins']['has']('DataSchema'))return;const _0x48f3ee=_0x49c17f['plugins']['get']('TrackChangesEditing'),_0x6eb422=_0x49c17f['locale'],_0x4e2c48=_0x49c17f['config']['get']('style')||{},_0x29551d=_0x49c17f['plugins']['get']('GeneralHtmlSupport'),_0x275705=_0x49c17f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x49c17f['plugins']['get']('DataSchema'),_0x4e2c48['definitions']);_0x48f3ee['enableDefaultAttributesIntegration']('style');const _0x88adcd=new Set();for(const _0x239ca6 of _0x275705['block']){const _0x358353=_0x29551d['getGhsAttributeNameForElement'](_0x239ca6['element']);_0x88adcd['add'](_0x358353);}const _0x3a6c7f=new Set();for(const _0x56af8e of _0x275705['inline']){const _0x4eedf0=_0x29551d['getGhsAttributeNameForElement'](_0x56af8e['element']);_0x3a6c7f['add'](_0x4eedf0);for(const _0x2cc617 of _0x56af8e['ghsAttributes'])_0x3a6c7f['add'](_0x2cc617);}for(const _0x336d40 of _0x88adcd)_0x48f3ee['registerBlockAttribute'](_0x336d40),_0x48f3ee['descriptionFactory']['registerAttributeLabel'](_0x336d40,o(_0x6eb422,'FORMAT_STYLE'));for(const _0x306de2 of _0x3a6c7f)_0x48f3ee['registerInlineAttribute'](_0x306de2),_0x48f3ee['descriptionFactory']['registerAttributeLabel'](_0x306de2,o(_0x6eb422,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23fd99=this['editor'],_0x2d0169=_0x23fd99['locale'];_0x23fd99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6bd6e2=>{if('formatBlock'!=_0x6bd6e2['type']&&'formatInline'!=_0x6bd6e2['type'])return;const {data:_0x18326d}=_0x6bd6e2;return _0x18326d&&'style'===_0x18326d['commandName']?_0x18326d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d0169,'*Set\x20format:*\x20%0',_0x18326d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2d0169,'*Remove\x20format:*\x20%0',_0x18326d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x555e71{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2a7e30){super(_0x2a7e30),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x331c97=this['editor'],_0x11e215=_0x331c97['model']['document']['selection'];if(!_0x331c97['plugins']['has']('TableEditing'))return;const _0x511db2=_0x331c97['locale'],_0x54930e=_0x331c97['plugins']['get']('TrackChangesEditing'),_0x590805=_0x331c97['plugins']['get']('TableUtils');_0x54930e['descriptionFactory']['registerElementLabel']('table',_0x463aed=>o(_0x511db2,'ELEMENT_TABLE',_0x463aed)),this['_setupColumnsRowsFixing'](),_0x54930e['enableCommand']('insertTable'),_0x54930e['enableCommand']('selectTableRow'),_0x54930e['enableCommand']('selectTableColumn');for(const _0xc1599b of['insertTableRowAbove','insertTableRowBelow']){const _0x1ac7e3=_0x331c97['commands']['get'](_0xc1599b);_0x54930e['enableCommand'](_0xc1599b,_0x3f70ef=>{_0x331c97['model']['change'](_0x1dc486=>{_0x3f70ef();const _0x3c1344='above'===_0x1ac7e3['order'],_0x4ebe10=_0x590805['getSelectionAffectedTableCells'](_0x11e215),_0x4e9aed=_0x590805['getRowIndexes'](_0x4ebe10),_0x54fd97=_0x3c1344?_0x4e9aed['first']-0x1:_0x4e9aed['last']+0x1,_0x36ea29=_0x4ebe10[0x0]['findAncestor']('table'),_0x40fc1d=_0x590805['createTableWalker'](_0x36ea29,{'startRow':_0x54fd97,'endRow':_0x54fd97}),_0x4f67be=Array['from'](_0x40fc1d)['map'](_0x3acafc=>_0x1dc486['createRangeOn'](_0x3acafc['cell']));_0x54930e['markMultiRangeInsertion'](_0x4f67be,'tableRow');});});}for(const _0x2636e7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2ec91d=_0x331c97['commands']['get'](_0x2636e7);_0x54930e['enableCommand'](_0x2636e7,_0x3930d4=>{_0x331c97['model']['change'](_0x4f0154=>{_0x3930d4();const _0x3138c4='left'===_0x2ec91d['order'],_0x3191e4=_0x590805['getSelectionAffectedTableCells'](_0x11e215),_0x49a9ae=_0x590805['getColumnIndexes'](_0x3191e4),_0x4e681a=_0x3138c4?_0x49a9ae['first']-0x1:_0x49a9ae['last']+0x1,_0x14d772=_0x3191e4[0x0]['findAncestor']('table'),_0xc37224=_0x590805['createTableWalker'](_0x14d772,{'startRow':0x0,'column':_0x4e681a,'includeAllSlots':!0x1}),_0xd4796d=Array['from'](_0xc37224)['map'](_0x202409=>_0x4f0154['createRangeOn'](_0x202409['cell']));_0x54930e['markMultiRangeInsertion'](_0xd4796d,'tableColumn');});});}for(const _0xa34bc3 of['removeTableRow','removeTableColumn']){const _0x43ef10=_0xa34bc3['substr'](0xb),_0x4f695c=_0x43ef10['toLowerCase'](),_0x24e8b6=_0x4f695c['substr'](0x0,0x3)+'span',_0x52fea8='table'+_0x43ef10,_0x3aa9b6='min'+_0x43ef10,_0x4bf4f8='max'+_0x43ef10;_0x54930e['enableCommand'](_0xa34bc3,()=>{_0x331c97['model']['change'](_0x256f51=>{const _0xfbee05=_0x590805['getSelectionAffectedTableCells'](_0x11e215),_0x533722=_0xfbee05[0x0]['findAncestor']('table');let _0x299ec4;if('removeTableRow'==_0xa34bc3){const _0x1ab6b1=_0x590805['getRowIndexes'](_0xfbee05);_0x299ec4={'startRow':_0x1ab6b1['first'],'endRow':_0x1ab6b1['last'],'includeAllSlots':!0x0};}else{const _0x13a395=_0x590805['getColumnIndexes'](_0xfbee05);_0x299ec4={'startColumn':_0x13a395['first'],'endColumn':_0x13a395['last'],'includeAllSlots':!0x0};}const _0x7ef3d1=_0x590805['createTableWalker'](_0x533722,_0x299ec4),_0x213af7=Array['from'](_0x7ef3d1)['map'](({cell:_0x160b5c})=>_0x160b5c),_0x2f258f=Oe(_0x213af7['filter'](_0x3b0f36=>_0x3b0f36['hasAttribute'](_0x24e8b6))),_0xefae85=Oe(_0x213af7['filter'](_0x4f9714=>!_0x4f9714['hasAttribute'](_0x24e8b6)))['map'](_0x122f7a=>_0x256f51['createRangeOn'](_0x122f7a)),_0x569a41=_0x54930e['markMultiRangeDeletion'](_0xefae85,_0x52fea8);if(_0x569a41&&('tableRow'==_0x569a41['subType']||'tableColumn'==_0x569a41['subType'])){const _0x34275d=this['_getSuggestionCoords'](_0x569a41);for(const _0x17855c of _0x2f258f){const _0x581107=_0x256f51['createRangeOn'](_0x17855c),_0x5dd846=_0x590805['getCellLocation'](_0x17855c),_0x2610f0=_0x17855c['getAttribute'](_0x24e8b6)-0x1,_0x3792a0=_0x34275d[_0x3aa9b6],_0x33b63e=_0x34275d[_0x4bf4f8];_0x3792a0<=_0x5dd846[_0x4f695c]&&_0x5dd846[_0x4f695c]+_0x2610f0<=_0x33b63e&&_0x569a41['addRange'](_0x581107);}}});});}function _0x3dbae1(_0x32fd35){const _0x2b8ef1=Array['from'](_0x11e215['getRanges']())['map'](_0x132ec9=>_0x1c1121['fromRange'](_0x132ec9));_0x331c97['model']['change'](_0xe01c21=>{const _0x2a1b96=_0xe01c21['batch'];_0x32fd35=_0x32fd35['filter'](_0xb4c98c=>'$graveyard'!=_0xb4c98c['root']['rootName']),_0xe01c21['setSelection'](_0x32fd35),_0x331c97['commands']['get']('removeTableRow')['refresh'](),_0x331c97['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x331c97['model']['enqueueChange'](()=>{_0x331c97['model']['enqueueChange'](_0x2a1b96,_0x3c00b2=>{const _0x30e17e=_0x2b8ef1['filter'](_0x283f17=>'$graveyard'!=_0x283f17['root']['rootName']);_0x30e17e['length']>0x0&&_0x3c00b2['setSelection'](_0x30e17e);for(const _0x2dea92 of _0x2b8ef1)_0x2dea92['detach']();});});});}function _0x3d8b42(_0x2163cb){_0x331c97['model']['change'](_0x1090b7=>{const _0x100e4c=Array['from'](_0x11e215['getRanges']())['map'](_0x567f42=>_0x1c1121['fromRange'](_0x567f42)),_0x135f0d=[];for(const _0x26db7a of _0x2163cb)for(const _0x4b27b2 of _0x26db7a['getItems']({'shallow':!0x0}))_0x135f0d['push'](_0x4b27b2);for(const _0x324ad5 of _0x135f0d)'$graveyard'!=_0x324ad5['root']['rootName']&&(_0x1090b7['setSelection'](_0x1090b7['createPositionAt'](_0x324ad5,0x0)),_0x331c97['commands']['get']('removeTableColumn')['refresh'](),_0x331c97['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xf0d161=_0x100e4c['filter'](_0x4e91c9=>'$graveyard'!=_0x4e91c9['root']['rootName']);_0xf0d161['length']>0x0&&_0x1090b7['setSelection'](_0xf0d161);for(const _0x244669 of _0x100e4c)_0x244669['detach']();});}function _0x8d021a(_0x2c2e96,_0x561cfa){return _0x561cfa['every'](_0x47737e=>_0x2c2e96['some'](_0x36536e=>_0x36536e['end']['isEqual'](_0x47737e['start'])||_0x47737e['end']['isEqual'](_0x36536e['start'])));}function _0x31b67a(_0x69814a,_0x38d318){return!_0x69814a['some'](_0x293aa7=>_0x38d318['some'](_0x251870=>_0x293aa7['isIntersecting'](_0x251870)))&&_0x69814a['some'](_0x395a2b=>_0x38d318['some'](_0x2e9d35=>_0x395a2b['end']['isTouching'](_0x2e9d35['start'])));}_0x331c97['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a4661,_0x2f58b3,_0x1fb21c)=>{if(!_0x1fb21c['options']['showSuggestionHighlights'])return;const _0x14f691=_0x2f58b3['item'];if(!_0x14f691||!_0x14f691['is']('element','tableCell'))return;const _0x32345d=_0x1fb21c['mapper']['toViewElement'](_0x14f691);if(_0x32345d){const {id:_0x3c7cfc,authorId:_0x3519b0}=_0x54930e['_splitMarkerName'](_0x2f58b3['markerName']);_0x58bd81(_0x32345d,_0x1fb21c['writer'],(_0x370436,_0x51e3d6,_0x2cfbe5)=>{_0x2cfbe5['addClass'](_0x1613bf(_0x51e3d6['classes']),_0x370436),_0x2cfbe5['setAttribute']('data-suggestion-id',_0x3c7cfc,_0x370436),_0x2cfbe5['setAttribute']('data-author-id',_0x3519b0,_0x370436);},(_0x24a21d,_0x249b6f,_0x4873fe)=>{_0x4873fe['removeClass'](_0x1613bf(_0x249b6f['classes']),_0x24a21d),_0x4873fe['removeAttribute']('data-suggestion-id',_0x24a21d),_0x4873fe['removeAttribute']('data-author-id',_0x24a21d);});}},{'priority':'highest'}),_0x54930e['descriptionFactory']['registerDescriptionCallback'](_0x167238=>{if('insertion'!=_0x167238['type']&&'deletion'!=_0x167238['type'])return;const _0x2d196f=_0x167238['getContainedElement']();if(null!=_0x2d196f&&_0x2d196f['is']('element','table')){if('insertion'==_0x167238['type']){const _0x4bcb7d=_0x167238['getItems']()['filter'](_0x1f4e52=>_0x1f4e52['is']('$textProxy'))['map'](_0x5de90a=>_0x5de90a['data']);if(_0x4bcb7d['length'])return{'type':'insertion','content':o(_0x511db2,'*Insert:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4bcb7d['join']('\x20')+'\x22'))};}if('deletion'==_0x167238['type']){const _0x4d3bcb=_0x167238['getItems']()['filter'](_0x2ca406=>_0x2ca406['is']('$textProxy'))['map'](_0xc88863=>_0xc88863['data']);if(_0x4d3bcb['length'])return{'type':'deletion','content':o(_0x511db2,'*Remove:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d3bcb['join']('\x20')+'\x22'))};}}}),_0x54930e['descriptionFactory']['registerDescriptionCallback'](_0x481480=>{if('tableRow'==_0x481480['subType']){const _0x197eac=_0x481480['getItems']()['filter'](_0x444a0c=>_0x444a0c['is']('$textProxy'))['map'](_0x496ee8=>_0x496ee8['data']),_0x568978=this['_getSuggestionCoords'](_0x481480),_0x5d7892=_0x568978['maxRow']-_0x568978['minRow']+0x1;if('insertion'==_0x481480['type'])return _0x197eac['length']?{'type':'insertion','content':o(_0x511db2,'*Insert:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d7892,'\x22'+_0x197eac['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x511db2,'*Insert:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_ROW',_0x5d7892))};if('deletion'==_0x481480['type'])return _0x197eac['length']?{'type':'deletion','content':o(_0x511db2,'*Remove:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d7892,'\x22'+_0x197eac['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x511db2,'*Remove:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_ROW',_0x5d7892))};}if('tableColumn'==_0x481480['subType']){const _0x4ea725=_0x481480['getItems']()['filter'](_0x4752d5=>_0x4752d5['is']('$textProxy'))['map'](_0xbf9236=>_0xbf9236['data']),_0x5e5f5e=this['_getSuggestionCoords'](_0x481480),_0x3a4796=_0x5e5f5e['maxColumn']-_0x5e5f5e['minColumn']+0x1;if('insertion'==_0x481480['type'])return _0x4ea725['length']?{'type':'insertion','content':o(_0x511db2,'*Insert:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a4796,'\x22'+_0x4ea725['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x511db2,'*Insert:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_COLUMN',_0x3a4796))};if('deletion'==_0x481480['type'])return _0x4ea725['length']?{'type':'deletion','content':o(_0x511db2,'*Remove:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a4796,'\x22'+_0x4ea725['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x511db2,'*Remove:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_COLUMN',_0x3a4796))};}}),_0x54930e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3dbae1),_0x54930e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3dbae1),_0x54930e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d8b42),_0x54930e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d8b42),_0x54930e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x8d021a),_0x54930e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x8d021a),_0x54930e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x31b67a),_0x54930e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x31b67a);}['_acceptFormatSuggestionCallbackFactory'](){const _0xed58f5=this['editor'],_0x1d68e5=_0xed58f5['model']['document']['selection'];return(_0x40dacc,_0x562bc5)=>{_0xed58f5['model']['change'](_0x8417e6=>{const {commandName:_0x500695,commandParams:_0x5d4377}=_0x562bc5;let _0xa5d959=_0x40dacc[0x0]['end']['nodeBefore'];_0x5d4377&&_0x5d4377[0x0]&&!0x1===_0x5d4377[0x0]['forceValue']&&(_0xa5d959=_0x40dacc[0x0]['start']['nodeAfter']);const _0x14e5e8=_0x8417e6['createRangeIn'](_0xa5d959);if('$graveyard'==_0x14e5e8['root']['rootName'])return;const _0x59e2e0=Array['from'](_0x1d68e5['getRanges']())['map'](_0x61ff1c=>_0x1c1121['fromRange'](_0x61ff1c));_0x8417e6['setSelection'](_0x14e5e8),_0xed58f5['commands']['get'](_0x500695)['refresh'](),_0x5d4377['push']({'forceDefaultExecution':!0x0}),_0xed58f5['execute'](_0x500695,..._0x5d4377);const _0x2b082e=_0x59e2e0['filter'](_0x15b03d=>'$graveyard'!=_0x15b03d['root']['rootName']);_0x2b082e['length']>0x0&&_0x8417e6['setSelection'](_0x2b082e);for(const _0x5ac7da of _0x59e2e0)_0x5ac7da['detach']();});};}['_getCoordsForCells'](_0x23b4ef){const _0x114ed5=this['editor']['plugins']['get']('TableUtils');let _0x3079d7=Number['MAX_SAFE_INTEGER'],_0x4950db=Number['MIN_SAFE_INTEGER'],_0x37df9b=Number['MAX_SAFE_INTEGER'],_0xdcb600=Number['MIN_SAFE_INTEGER'];for(const _0x30e20a of _0x23b4ef){if('$graveyard'==_0x30e20a['root']['rootName'])continue;const {row:_0xccacf0,column:_0x206c85}=_0x114ed5['getCellLocation'](_0x30e20a),_0x2e92b7=_0x30e20a['hasAttribute']('rowspan')?_0x30e20a['getAttribute']('rowspan')-0x1:0x0,_0x236a63=_0x30e20a['hasAttribute']('colspan')?_0x30e20a['getAttribute']('colspan')-0x1:0x0;_0x3079d7=_0xccacf0<_0x3079d7?_0xccacf0:_0x3079d7,_0x4950db=_0xccacf0+_0x2e92b7>_0x4950db?_0xccacf0+_0x2e92b7:_0x4950db,_0x37df9b=_0x206c85<_0x37df9b?_0x206c85:_0x37df9b,_0xdcb600=_0x206c85+_0x236a63>_0xdcb600?_0x206c85+_0x236a63:_0xdcb600;}return{'minRow':_0x3079d7,'maxRow':_0x4950db,'minColumn':_0x37df9b,'maxColumn':_0xdcb600};}['_setupColumnsRowsFixing'](){const _0x4057bf=this['editor'],_0x389d86=_0x4057bf['plugins']['get']('TrackChangesEditing'),_0x17d0da=_0x4057bf['plugins']['get']('TableUtils');_0x4057bf['model']['document']['on']('change:data',()=>{const _0x2db7b8=Array['from'](_0x4057bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x510705,data:_0x54ef25}of _0x2db7b8){const {group:_0x39fd4a,id:_0x355a46,subType:_0x311b83}=_0x389d86['_splitMarkerName'](_0x510705);if('suggestion'!=_0x39fd4a)continue;if(null!=_0x54ef25['oldRange'])continue;const _0x397bc4=_0x389d86['getSuggestion'](_0x355a46);this['_tablePostFixingSubtypes']['includes'](_0x311b83)&&this['_tableSuggestions']['add'](_0x397bc4);}},{'priority':'low'});const _0x51b48e=(_0x19d521,_0x93a808)=>{let _0x3b1dbf=!0x1;const _0x5d0298=_0x93a808['createRangeOn'](_0x19d521),_0x485e17=_0x19d521['findAncestor']('table'),_0x35e369=_0x17d0da['getCellLocation'](_0x19d521);for(const _0x5e08b3 of this['_tableSuggestions']){const _0x2bbc27=_0x5e08b3['subType'],_0x3c8e11=_0x2bbc27['startsWith']('tablePaste'),_0xd6bb68=_0x2bbc27['substr'](_0x3c8e11?0xa:0x5),_0x103144=_0xd6bb68['toLowerCase'](),_0x863b7e=_0x103144['substr'](0x0,0x3)+'span',_0xc86336='min'+_0xd6bb68,_0x51b15a='max'+_0xd6bb68;if(!_0x5e08b3['isInContent'])continue;if(_0x485e17!=_0x5e08b3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5e08b3['isIntersectingWithRange'](_0x5d0298))continue;const _0x1957bc=_0x19d521['hasAttribute'](_0x863b7e)?_0x19d521['getAttribute'](_0x863b7e)-0x1:0x0,_0x13bb12=this['_getSuggestionCoords'](_0x5e08b3),_0x3a301c=_0x13bb12[_0xc86336],_0x9f7a38=_0x13bb12[_0x51b15a];_0x3a301c<=_0x35e369[_0x103144]&&_0x35e369[_0x103144]+_0x1957bc<=_0x9f7a38&&(_0x5e08b3['addRange'](_0x5d0298),_0x3b1dbf=!0x0);}return _0x3b1dbf;};_0x4057bf['model']['document']['registerPostFixer'](_0x3fb5c8=>{let _0x2b9eee=!0x1;for(const _0x49fa2b of _0x4057bf['model']['document']['differ']['getChanges']())if('insert'==_0x49fa2b['type']){if('tableRow'==_0x49fa2b['name']){for(const _0x2281be of _0x49fa2b['position']['nodeAfter']['getChildren']())_0x2b9eee=_0x2b9eee||_0x51b48e(_0x2281be,_0x3fb5c8);}else'tableCell'==_0x49fa2b['name']&&(_0x2b9eee=_0x2b9eee||_0x51b48e(_0x49fa2b['position']['nodeAfter'],_0x3fb5c8));}return _0x2b9eee;});}['_getSuggestionCoords'](_0x3c6c73){return this['_getCoordsForCells'](_0x3c6c73['getRanges']()['map'](_0x8cc19c=>_0x8cc19c['start']['nodeAfter']));}}function Oe(_0x523cc3){return Array['from'](new Set(_0x523cc3)['values']());}class Mt extends _0x555e71{static get['requires'](){return[Dt];}['afterInit'](){const _0x1f4fe4=this['editor'],_0x3123c1=_0x1f4fe4['model']['document']['selection'],_0x201f57=_0x1f4fe4['locale'];if(!_0x1f4fe4['plugins']['has']('TableEditing'))return;const _0x1b1bb8=_0x1f4fe4['plugins']['get']('TrackChangesEditing'),_0x54c255=_0x1f4fe4['plugins']['get']('TableUtils'),_0x5502ef=_0x1f4fe4['plugins']['get'](Dt);_0x5502ef['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1b1bb8['enableCommand']('mergeTableCells',()=>{const _0x5ba985=_0x54c255['getSelectionAffectedTableCells'](_0x1f4fe4['model']['document']['selection']);_0x1f4fe4['model']['change'](()=>{_0x1b1bb8['markMultiRangeBlockFormat'](_0x5ba985,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1f4fe4['commands']['get']('mergeTableCells')['on']('execute',(_0xf4e6f3,_0x1d3e9e)=>{_0x1f4fe4['commands']['get']('trackChanges')['value']&&(_0x1d3e9e['length']>0x0&&_0x1d3e9e[_0x1d3e9e['length']-0x1]&&_0x1d3e9e[_0x1d3e9e['length']-0x1]['forceDefaultExecution']||_0x1b1bb8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf4e6f3['stop']());},{'priority':'highest'});for(const _0x312d1b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x332bba=_0x1f4fe4['commands']['get'](_0x312d1b);_0x1b1bb8['enableCommand'](_0x312d1b,()=>{const _0x274039=_0x1f4fe4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x175008=>_0x175008['is']('element','tableCell')),_0x31edba=_0x332bba['value'];_0x1f4fe4['model']['change'](()=>{_0x1b1bb8['markMultiRangeBlockFormat']([_0x274039,_0x31edba],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x178e13 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5c0ef2=_0x1f4fe4['commands']['get'](_0x178e13);_0x1b1bb8['enableCommand'](_0x178e13,()=>{const _0x41316e=_0x54c255['getSelectionAffectedTableCells'](_0x1f4fe4['model']['document']['selection'])[0x0],_0x9045c5=_0x41316e['findAncestor']('table'),{column:_0x1864b7,row:_0x413d1f}=_0x54c255['getCellLocation'](_0x41316e);let _0x2d4139=[];if('horizontally'==_0x5c0ef2['direction']){const _0x156476=_0x54c255['createTableWalker'](_0x9045c5,{'startRow':_0x413d1f,'endRow':_0x413d1f,'includeAllSlots':!0x0});_0x2d4139=Array['from'](_0x156476)['map'](_0x279b36=>_0x279b36['cell']);}else{const _0x41caee=_0x54c255['createTableWalker'](_0x9045c5,{'column':_0x1864b7,'includeAllSlots':!0x0});_0x2d4139=Array['from'](_0x41caee)['map'](_0x16df75=>_0x16df75['cell']);}_0x1f4fe4['model']['change'](_0x13780a=>{_0x1b1bb8['markBlockFormat'](_0x13780a['createRangeOn'](_0x41316e),{'commandName':_0x178e13,'commandParams':[]},_0x2d4139,_0x178e13);});});}_0x1b1bb8['descriptionFactory']['registerDescriptionCallback'](_0x3c1cb6=>{if('formatBlock'!=_0x3c1cb6['type']&&'formatInline'!=_0x3c1cb6['type'])return;const {data:_0x112562}=_0x3c1cb6;return _0x112562&&'mergeTableCells'==_0x112562['commandName']?{'type':'format','content':o(_0x201f57,'*Merge\x20cells*')}:void 0x0;}),_0x1b1bb8['descriptionFactory']['registerDescriptionCallback'](_0x4f89c5=>{if('formatBlock'!=_0x4f89c5['type']&&'formatInline'!=_0x4f89c5['type'])return;const {data:_0x47a6d5}=_0x4f89c5;return _0x47a6d5?'splitTableCellVertically'==_0x47a6d5['commandName']?{'type':'format','content':o(_0x201f57,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x47a6d5['commandName']?{'type':'format','content':o(_0x201f57,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x128535=_0x5502ef['_acceptFormatSuggestionCallbackFactory']();for(const _0x76d7d7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1b1bb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x76d7d7,'accept',_0x128535);for(const _0x490970 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1b1bb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x490970,'accept',_0x128535);_0x1b1bb8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3034ec=>{_0x1f4fe4['model']['change'](_0x3868ab=>{const _0x47a6a3=Array['from'](_0x3123c1['getRanges']())['map'](_0x1f6a8d=>_0x1c1121['fromRange'](_0x1f6a8d));_0x3868ab['setSelection'](_0x3034ec),_0x1f4fe4['commands']['get']('mergeTableCells')['refresh'](),_0x1f4fe4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3311d1=_0x47a6a3['filter'](_0x21e87b=>'$graveyard'!=_0x21e87b['root']['rootName']);_0x3311d1['length']>0x0&&_0x3868ab['setSelection'](_0x3311d1);for(const _0xacb29f of _0x47a6a3)_0xacb29f['detach']();});});for(const _0x29c08d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1390c4=_0x1f4fe4['commands']['get'](_0x29c08d);_0x1390c4['on']('set:isEnabled',(_0x5d1935,_0x233d5c,_0xbd2c8f)=>{if(_0xbd2c8f){const _0x1cb7da=_0x1f4fe4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1d18c3=>_0x1d18c3['is']('element','tableCell'));this['_areMergableCells'](_0x1390c4['value'],_0x1cb7da)||(_0x5d1935['return']=!0x1,_0x5d1935['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1542b9=this['editor']['commands']['get']('mergeTableCells'),_0x566c07=this['editor']['plugins']['get']('TableUtils');if(!_0x1542b9['isEnabled'])return!0x1;const _0x29ae5b=_0x566c07['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x95851 of _0x29ae5b)for(const _0x2385c1 of _0x29ae5b)if(_0x95851!=_0x2385c1&&!this['_areMergableCells'](_0x95851,_0x2385c1))return!0x1;return!0x0;}['_areMergableCells'](_0x2c685e,_0x1a9439){const _0x10918c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f28d0=this['editor']['model']['createRangeOn'](_0x2c685e),_0xa863d7=this['editor']['model']['createRangeOn'](_0x1a9439),_0x4a7ee8=new Set(),_0x40f2ac=new Set();for(const _0x51daf4 of _0x10918c['getSuggestions']())if(('insertion'==_0x51daf4['type']||'deletion'==_0x51daf4['type']||'mergeTableCells'==_0x51daf4['subType'])&&_0x51daf4['isInContent']){for(const _0x299c90 of _0x51daf4['getRanges']())_0x299c90['containsRange'](_0x3f28d0,!0x0)&&_0x4a7ee8['add'](_0x51daf4['type']+':'+_0x51daf4['author']['id']),_0x299c90['containsRange'](_0xa863d7,!0x0)&&_0x40f2ac['add'](_0x51daf4['type']+':'+_0x51daf4['author']['id']);}if(_0x4a7ee8['size']!=_0x40f2ac['size'])return!0x1;for(const _0x45b8f3 of _0x4a7ee8)if(!_0x40f2ac['has'](_0x45b8f3))return!0x1;return!0x0;}}class Bt extends _0x555e71{static get['requires'](){return[Dt];}['afterInit'](){const _0x357ee6=this['editor'];if(!_0x357ee6['plugins']['has']('TableEditing'))return;const _0x4390fa=_0x357ee6['locale'],_0x4f6b1f=_0x357ee6['plugins']['get']('TrackChangesEditing');_0x4f6b1f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4f6b1f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4f6b1f['registerBlockAttribute']('headingRows'),_0x4f6b1f['registerBlockAttribute']('headingColumns'),_0x4f6b1f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4390fa,'FORMAT_HEADER_ROW')),_0x4f6b1f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4390fa,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x42544d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b4177=this['editor']['plugins']['get']('TableUtils'),_0x334993=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();function _0x5ad6a1({showActiveMarker:_0x55ea0a=!0x0,setDataAttribute:_0x16d7ff=!0x0}={}){return(_0x287604,_0x15e56b,_0x56b63a)=>{const {type:_0x209c62,id:_0x4d62e0}=_0x42544d['_splitMarkerName'](_0x15e56b['markerName']);if(!_0x42544d['hasSuggestion'](_0x4d62e0))return;const _0x393843=_0x42544d['getSuggestion'](_0x4d62e0),_0xae8da3=_0x393843['data'];if('formatBlock'!=_0x393843['type']||!_0xae8da3||'setTableColumnHeader'!=_0xae8da3['commandName'])return;if(_0x15e56b['item'])return void _0x287604['stop']();if(!_0x56b63a['consumable']['consume'](_0x15e56b['markerRange'],_0x287604['name']))return;const _0x7f8c34=_0x15e56b['markerRange']['start']['nodeAfter'],_0xc4b31e=_0x15e56b['markerRange']['end']['nodeBefore'],_0x40eb01=_0x7f8c34['parent']['parent'],{column:_0x5727db}=_0x4b4177['getCellLocation'](_0x7f8c34),{column:_0x39c544}=_0x4b4177['getCellLocation'](_0xc4b31e);for(let _0x4bbbab=_0x5727db;_0x4bbbab<=_0x39c544;_0x4bbbab++){const _0x578187=_0x4b4177['createTableWalker'](_0x40eb01,{'column':_0x4bbbab,'includeAllSlots':!0x1});for(const _0x10637e of _0x578187){const _0x573319=_0x10637e['cell'],_0xc6e4f3=_0x56b63a['mapper']['toViewElement'](_0x573319);_0x56b63a['writer']['addClass']('ck-suggestion-marker-'+_0x209c62,_0xc6e4f3),_0x16d7ff&&_0x56b63a['writer']['setAttribute']('data-suggestion',_0x4d62e0,_0xc6e4f3),_0x56b63a['mapper']['bindElementToMarker'](_0xc6e4f3,_0x15e56b['markerName']),_0x55ea0a&&(_0x42544d['activeMarkers']['includes'](_0x15e56b['markerName'])?_0x56b63a['writer']['addClass']('ck-suggestion-marker--active',_0xc6e4f3):_0x56b63a['writer']['removeClass']('ck-suggestion-marker--active',_0xc6e4f3));}}};}_0x42544d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x334993),_0x42544d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x334993),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5ad6a1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1357df,_0x10e83a,_0x2c55d3)=>{_0x2c55d3['options']['showSuggestionHighlights']&&_0x5ad6a1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1357df,_0x10e83a,_0x2c55d3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4d7e9c,_0x233bec,_0x318873)=>{const {type:_0x520e47,id:_0x3419e7}=_0x42544d['_splitMarkerName'](_0x233bec['markerName']);if(!_0x42544d['hasSuggestion'](_0x3419e7))return;const _0x1694bf=_0x42544d['getSuggestion'](_0x3419e7),_0x4db2a6=_0x1694bf['data'];if('formatBlock'!=_0x1694bf['type']||!_0x4db2a6||'setTableColumnHeader'!=_0x4db2a6['commandName'])return;const _0xbd8c61=_0x318873['mapper']['markerNameToElements'](_0x233bec['markerName']);if(_0xbd8c61){for(const _0x17be9a of _0xbd8c61)_0x318873['writer']['removeClass']('ck-suggestion-marker-'+_0x520e47,_0x17be9a),_0x318873['writer']['removeClass']('ck-suggestion-marker--active',_0x17be9a),_0x318873['writer']['removeAttribute']('data-suggestion',_0x17be9a),_0x318873['mapper']['unbindElementFromMarkerName'](_0x17be9a,_0x233bec['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34cee2=this['editor'],_0x450960=_0x34cee2['locale'];function _0x2e44de(_0x483c1e){return{'type':'format','content':o(_0x450960,'*Format:*\x20%0',_0x483c1e)};}_0x34cee2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ea7e5=>{if('formatBlock'!=_0x3ea7e5['type'])return;const {data:_0x49f013}=_0x3ea7e5;if(_0x49f013){if('setTableRowHeader'==_0x49f013['commandName']){const _0x47a52e=_0x49f013['commandParams'][0x0]['forceValue'];return _0x2e44de(o(_0x450960,_0x47a52e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x49f013['commandName']){const _0x2d5086=_0x49f013['commandParams'][0x0]['forceValue'];return _0x2e44de(o(_0x450960,_0x2d5086?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Tt extends _0x555e71{['afterInit'](){const _0x32f8c0=this['editor'],_0x323bfd=_0x32f8c0['locale'],_0x1dea5c=_0x32f8c0['plugins']['get']('TrackChangesEditing');function _0x152ef3(_0x240703){return{'type':'format','content':''+o(_0x323bfd,'*Set\x20table\x20type:*\x20%0',_0x240703)};}_0x32f8c0['plugins']['has']('TableLayout')&&(_0x1dea5c['enableCommand']('insertTableLayout'),_0x1dea5c['enableDefaultAttributesIntegration']('tableType'),_0x1dea5c['registerBlockAttribute']('tableType'),_0x1dea5c['descriptionFactory']['registerElementLabel'](_0x3609a5=>_0x3609a5['is']('element','table')&&'layout'===_0x3609a5['getAttribute']('tableType'),_0x200580=>o(_0x323bfd,'ELEMENT_LAYOUT_TABLE',_0x200580)),_0x1dea5c['descriptionFactory']['registerDescriptionCallback'](_0x272d79=>{const {data:_0x5425e0}=_0x272d79;if(_0x5425e0&&'tableType'==_0x5425e0['key'])switch(_0x5425e0['newValue']){case'layout':return _0x152ef3(o(_0x323bfd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x152ef3(o(_0x323bfd,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Ue['map'](_0x39c272=>[_0x39c272,null]));class Ot extends _0x555e71{static get['requires'](){return[Dt];}['afterInit'](){const _0x49ad97=this['editor'];if(!_0x49ad97['plugins']['has']('TableClipboard'))return;const _0x1a750e=_0x49ad97['plugins']['get']('TrackChangesEditing'),_0x212ba2=_0x49ad97['plugins']['get']('TableUtils'),_0x25a8c3=_0x49ad97['plugins']['get'](Dt),_0x59914e=_0x49ad97['plugins']['get']('TableClipboard'),_0x664d13=_0x49ad97['plugins']['get']('TableSelection'),_0x325cfb=_0x49ad97['plugins']['get'](_0x185637);_0x25a8c3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x49ad97['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x49ad97['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4a6551=null,_0x425bf0=!0x1;_0x325cfb['on']('contentInsertion',(_0x281b94,_0x19c68d)=>{_0x425bf0='paste'===_0x19c68d['method'];}),_0x49ad97['model']['on']('insertContent',(_0x10317,_0x5b2d6f)=>{if(!_0x425bf0&&null===_0x664d13['getSelectedTableCells']())return;const [_0x3147fe,_0x53e6b9]=_0x5b2d6f,_0x177316=_0x5b2d6f[_0x5b2d6f['length']-0x1];_0x177316&&_0x177316['forceDefaultExecution']||_0x1a750e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3e3bd5,_0xb42aab,_0x3b17f3,_0x2bebb0,_0x9ed2e6){if(_0xb42aab&&!_0xb42aab['is']('documentSelection'))return!0x1;const _0x7707bd=_0x9ed2e6['getTableIfOnlyTableInContent'](_0x3e3bd5,_0x3b17f3);if(!_0x7707bd||!Ge(_0x7707bd,void 0x0,_0x2bebb0))return!0x1;const _0x9d1a78=_0x2bebb0['getSelectionAffectedTableCells'](_0x3b17f3['document']['selection']);if(!_0x9d1a78['length'])return!0x1;const _0x24d837=_0x9d1a78[0x0]['findAncestor']('table'),_0x409389=_0x2bebb0['getRowIndexes'](_0x9d1a78),_0x3662b2=_0x2bebb0['getColumnIndexes'](_0x9d1a78),_0x266b0a={'startRow':_0x409389['first'],'endRow':_0x409389['last'],'startColumn':_0x3662b2['first'],'endColumn':_0x3662b2['last']};return 0x1==_0x9d1a78['length']&&(_0x266b0a['endRow']+=_0x2bebb0['getRows'](_0x7707bd)-0x1,_0x266b0a['endColumn']+=_0x2bebb0['getColumns'](_0x7707bd)-0x1),Ge(_0x24d837,_0x266b0a,_0x2bebb0);}(_0x3147fe,_0x53e6b9,_0x49ad97['model'],_0x212ba2,_0x59914e)&&(_0x10317['stop'](),_0x4a6551={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x49ad97['model']['change'](()=>{_0x49ad97['model']['insertContent'](_0x5b2d6f[0x0],_0x5b2d6f[0x1],_0x5b2d6f[0x2],{'forceDefaultExecution':!0x0});const _0x7cc151=_0x4fda17(),{rowInsertionRanges:_0x4fc6d7,columnInsertionRanges:_0x195b67,insertionRanges:_0x26dc55,deletionRanges:_0x19048f,cells:_0x40c73c}=_0x4a6551;_0x4fc6d7['length']&&_0x1a750e['markMultiRangeInsertion'](_0x4fc6d7,'tablePasteRow',{'tablePasteChainId':_0x7cc151}),_0x195b67['length']&&_0x1a750e['markMultiRangeInsertion'](_0x195b67,'tablePasteColumn',{'tablePasteChainId':_0x7cc151}),_0x26dc55['length']&&(_0x1a750e['markMultiRangeInsertion'](_0x26dc55,'tablePaste',{'tablePasteChainId':_0x7cc151,'skipNestingCheck':!0x0}),_0x26dc55['forEach'](_0x56c1fc=>_0x56c1fc['detach']?.())),_0x19048f['length']&&(_0x1a750e['markMultiRangeDeletion'](_0x19048f,'tablePaste',{'tablePasteChainId':_0x7cc151,'skipNestingCheck':!0x0}),_0x19048f['forEach'](_0xd3806b=>_0xd3806b['detach']?.()));const _0x48cf93=_0x1a750e['markMultiRangeBlockFormat'](_0x40c73c['map'](({element:_0x2bcd18})=>_0x2bcd18),{'formatGroupId':_0x4fda17()},[],'tablePasteCell',{'tablePasteChainId':_0x7cc151});if(_0x48cf93){const _0x15ffca=_0x48cf93['getMarkers'](),_0x5359e6=[];for(const {element:_0x572dc4,attributes:_0x3466ef}of _0x40c73c){if(!_0x3466ef)continue;const _0x129684=_0x49ad97['model']['createRangeOn'](_0x572dc4),_0x56273b=_0x15ffca['find'](_0x13966f=>_0x13966f['getRange']()['isEqual'](_0x129684));_0x56273b&&_0x5359e6['push']([_0x56273b['name'],_0x3466ef]);}_0x5359e6['length']&&_0x48cf93['setAttribute']('markerAttributes',Object['fromEntries'](_0x5359e6));}_0x4a6551=null;}));},{'priority':_0x48f7b8['high']+0xa}),_0x325cfb['on']('contentInsertion',()=>{_0x425bf0=!0x1;},{'priority':'lowest'}),_0x49ad97['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x223cb3,_0x353bdf)=>{const [_0x362682,_0x181a29,,_0x4e149a]=_0x353bdf;if(!_0x4a6551)return;_0x223cb3['stop']();const _0x4ab0b3=_0x362682['cell'],_0x500d11=_0x181a29,_0x484d5b=ze(_0x4ab0b3),_0x213268=ze(_0x500d11);_0x223cb3['return']=_0x4ab0b3;let _0x43948a=null,_0x2c676c=null;if(_0x213268||_0x484d5b){if(_0x484d5b&&!_0x213268){_0x4e149a['remove'](_0x4ab0b3['getChild'](0x0));for(const _0x428af0 of Array['from'](_0x500d11['getChildren']()))_0x4e149a['insert'](_0x428af0,_0x4ab0b3,'end');const _0x4182e0=_0x4a6551['rowInsertionIndexes']['includes'](_0x362682['row']),_0x5a5ee9=_0x4a6551['columnInsertionIndexes']['includes'](_0x362682['column']);_0x4182e0||_0x5a5ee9||(_0x43948a=_0x1c1121['fromRange'](_0x4e149a['createRangeIn'](_0x4ab0b3)));}else _0x213268&&!_0x484d5b&&(_0x2c676c=_0x4e149a['createRangeIn'](_0x4ab0b3));}else{const _0x2f236d=_0x4e149a['createElement']('tableCellSuggestion'),_0x107a5a=_0x4e149a['createElement']('tableCellSuggestion');_0x4e149a['wrap'](_0x4e149a['createRangeIn'](_0x4ab0b3),_0x107a5a),_0x4e149a['insert'](_0x2f236d,_0x4ab0b3,0x0);for(const _0x119f8b of Array['from'](_0x500d11['getChildren']()))_0x4e149a['insert'](_0x119f8b,_0x2f236d,'end');_0x43948a=_0x1c1121['fromRange'](_0x4e149a['createRangeOn'](_0x2f236d)),_0x2c676c=_0x1c1121['fromRange'](_0x4e149a['createRangeOn'](_0x107a5a));}const _0x15bd30=Array['from'](_0x500d11['getAttributes']())['filter'](([_0x765294])=>Ue['includes'](_0x765294));_0x4a6551['cells']['push']({'element':_0x4ab0b3,'attributes':_0x15bd30['length']?Object['fromEntries'](_0x15bd30):null}),_0x43948a&&_0x4a6551['insertionRanges']['push'](_0x43948a),_0x2c676c&&_0x4a6551['deletionRanges']['push'](_0x2c676c);},{'priority':'high'}),_0x212ba2['on']('insertColumns',(_0x5ca6fd,_0x4bd533)=>{const [_0x1872bb,_0x55926d={}]=_0x4bd533;if(!_0x4a6551)return;const _0x580273=_0x55926d['at']||0x0,_0x4e27f0=_0x55926d['columns']||0x1;_0x4a6551['columnInsertionIndexes']=new Array(_0x4e27f0)['fill'](_0x580273)['map']((_0x4cd612,_0x3bfa4b)=>_0x4cd612+_0x3bfa4b);for(const {cell:_0x39ba33}of _0x212ba2['createTableWalker'](_0x1872bb,{'startColumn':_0x580273,'endColumn':_0x580273+_0x4e27f0-0x1}))_0x4a6551['columnInsertionRanges']['push'](_0x49ad97['model']['createRangeOn'](_0x39ba33));},{'priority':'low'}),_0x212ba2['on']('insertRows',(_0x477b52,_0x1bb65f)=>{const [_0x5b6114,_0x45aeca={}]=_0x1bb65f;if(!_0x4a6551)return;const _0x2c45c8=_0x45aeca['at']||0x0,_0x2de9e5=_0x45aeca['rows']||0x1;_0x4a6551['rowInsertionIndexes']=new Array(_0x2de9e5)['fill'](_0x2c45c8)['map']((_0xdb3b0c,_0x22a78d)=>_0xdb3b0c+_0x22a78d);for(const {cell:_0x1414c1}of _0x212ba2['createTableWalker'](_0x5b6114,{'startRow':_0x2c45c8,'endRow':_0x2c45c8+_0x2de9e5-0x1}))_0x4a6551['rowInsertionRanges']['push'](_0x49ad97['model']['createRangeOn'](_0x1414c1));},{'priority':'low'}),_0x1a750e['descriptionFactory']['registerDescriptionCallback'](_0x56e628=>{if(_0x56e628['subType']&&_0x56e628['subType']['startsWith']('tablePaste'))return _0x56e628['previous']?{}:{'type':'insertion','content':o(_0x49ad97['locale'],'*Replace\x20table\x20cells*')};});const _0x43ad67=()=>!0x1;for(const _0x3f012b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1a750e['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f012b,'join',_0x43ad67),_0x1a750e['_suggestionFactory']['registerCustomCallback']('deletion',_0x3f012b,'join',_0x43ad67),_0x1a750e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f012b,'join',_0x43ad67);_0x1a750e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43ad67),_0x1a750e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x116cbf,_0x24b230,_0x50db17)=>{const _0x1ddc4b=_0x116cbf['map'](_0x8d6143=>_0x8d6143['getContainedElement']())['filter'](_0x28320b=>_0x28320b),_0x1a0ad3=new Map(_0x1ddc4b['map'](_0x462099=>[_0x462099,null]));if(_0x4a6551){for(const {element:_0x40b985,attributes:_0x3b6151}of _0x4a6551['cells'])_0x3b6151&&_0x1a0ad3['set'](_0x40b985,_0x3b6151);}else{if(_0x50db17&&_0x50db17['markerAttributes'])for(const [_0x317086,_0x283828]of Object['entries'](_0x50db17['markerAttributes'])){const _0x34f097=_0x49ad97['model']['markers']['get'](_0x317086),_0x16ee3e=_0x34f097?_0x34f097['getRange']()['getContainedElement']():null;_0x16ee3e&&_0x1a0ad3['set'](_0x16ee3e,_0x283828);}}_0x49ad97['model']['change'](_0x383ced=>{for(const [_0x5ca46d,_0x523d6c]of _0x1a0ad3)_0x383ced['setAttributes']({...He,..._0x523d6c},_0x5ca46d);});});const _0x3203f4=(_0x1ace13,_0x1d4f21)=>{_0x1a750e['_suggestionFactory']['registerCustomCallback'](_0x1ace13,'tablePaste',_0x1d4f21,(_0x3e82f2,_0x279c52,_0x22e6f4)=>{_0x49ad97['model']['change'](_0xd9b88b=>{const _0x54c2e3=[];for(const _0x12c46b of _0x3e82f2){const _0x5a056b=_0x12c46b['start']['nodeAfter'];_0x5a056b['is']('element','tableCellSuggestion')&&_0x54c2e3['push'](_0x5a056b);}_0x1a750e['_suggestionFactory']['getSuggestionCallback'](_0x1ace13,null,_0x1d4f21)(_0x3e82f2,_0x279c52,_0x22e6f4);for(const _0x3b82d3 of _0x54c2e3)'$graveyard'!=_0x3b82d3['root']['rootName']&&_0xd9b88b['unwrap'](_0x3b82d3);});});};_0x3203f4('insertion','accept'),_0x3203f4('insertion','discard'),_0x3203f4('deletion','accept'),_0x3203f4('deletion','discard'),_0x1a750e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1438a8=>{const _0x69697e=_0x1438a8['map'](_0x4cbc7c=>_0x4cbc7c['getContainedElement']()),_0x3a2fb8=_0x69697e[0x0]['findAncestor']('table'),{minRow:_0x3a6f64,maxRow:_0x116862}=_0x25a8c3['_getCoordsForCells'](_0x69697e);_0x212ba2['removeRows'](_0x3a2fb8,{'at':_0x3a6f64,'rows':_0x116862-_0x3a6f64+0x1});}),_0x1a750e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x177137=>{const _0x4fa478=_0x177137['map'](_0x4a31c1=>_0x4a31c1['getContainedElement']()),_0x289dca=_0x4fa478[0x0]['findAncestor']('table'),{minColumn:_0xfb92a3,maxColumn:_0x676161}=_0x25a8c3['_getCoordsForCells'](_0x4fa478);_0x212ba2['removeColumns'](_0x289dca,{'at':_0xfb92a3,'columns':_0x676161-_0xfb92a3+0x1});});const _0x45ca4b=(_0x5cb81e,_0x31a9a7)=>{if(!_0x31a9a7['subType']||!_0x31a9a7['subType']['startsWith']('tablePaste'))return;const _0xad8cfd=_0x31a9a7['attributes']['tablePasteChainId'],_0x3b733a=_0x1a750e['getSuggestions']()['filter'](_0x158d50=>_0x158d50['isInContent']&&_0x158d50['attributes']&&_0x158d50['attributes']['tablePasteChainId']==_0xad8cfd);_0x3b733a['length']&&_0x31a9a7['getAllAdjacentSuggestions']()['length']!=_0x3b733a['length']&&_0x3b733a['reduce']((_0x37c596,_0x310c2a)=>(_0x37c596['next']=_0x310c2a,_0x310c2a['previous']=_0x37c596,_0x310c2a));};function _0x27dab6(_0x542e20,_0x10dcfe=!0x0){const {id:_0x32eed0,authorId:_0x220a8c}=_0x1a750e['_splitMarkerName'](_0x542e20['markerName']),_0x3db46c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4cc745=_0x1a750e['activeMarkers']['includes'](_0x542e20['markerName']);return _0x4cc745&&_0x3db46c['push']('ck-suggestion-marker--active'),{'classes':_0x3db46c,'attributes':{'data-suggestion':_0x32eed0,'data-author-id':_0x220a8c},'priority':_0x4cc745&&_0x10dcfe?0xbc2:0xbb8};}_0x1a750e['on']('suggestionLoaded',_0x45ca4b,{'priority':'high'}),_0x1a750e['on']('suggestionUnloaded',_0x45ca4b,{'priority':'high'}),_0x49ad97['model']['document']['registerPostFixer'](()=>{let _0xc2d140=!0x1;const _0x2aa06d=Array['from'](_0x49ad97['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xaa8350,data:_0x15f486}of _0x2aa06d){const {group:_0x4728c3,type:_0x24bdcd,id:_0x323325}=_0x1a750e['_splitMarkerName'](_0xaa8350);if('suggestion'!=_0x4728c3||'deletion'!=_0x24bdcd||_0x15f486['oldRange'])continue;if(!_0x1a750e['hasSuggestion'](_0x323325))continue;const _0x467d47=_0x1a750e['getSuggestion'](_0x323325)['getRanges'](),_0x1edf6d=_0x49ad97['plugins']['get']('Users')['me'];for(const _0x1545ee of _0x1a750e['getSuggestions']()){if(!_0x1545ee['isInContent']||_0x1545ee['author']!=_0x1edf6d)continue;if('formatBlock'!=_0x1545ee['type']||'tablePasteCell'!=_0x1545ee['subType'])continue;if(_0x1545ee['getRanges']()['every'](_0x52ddba=>_0x467d47['some'](_0x256ce8=>_0x256ce8['containsRange'](_0x52ddba,!0x0)))){for(const _0x5c1c70 of _0x1545ee['getAllAdjacentSuggestions']())_0x5c1c70['isInContent']&&(_0x5c1c70['discard'](),_0xc2d140=!0x0);}}}return _0xc2d140;}),_0x49ad97['model']['document']['registerPostFixer'](_0x51b8d5=>{const _0x25777d=_0x49ad97['commands']['get']('redo');if(!_0x25777d||!_0x25777d['_createdBatches']['has'](_0x51b8d5['batch']))return!0x1;let _0x30296d=!0x1;const _0x1d6d52=_0x49ad97['plugins']['get']('Users')['me'],_0x2a2426=_0x49ad97['model']['document']['differ']['getChanges'](),_0x30933b=Array['from'](_0x49ad97['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4c7754,data:_0x21f1ab})=>{const {group:_0x418f2e,subType:_0x37ae7e,authorId:_0x4856f8}=_0x1a750e['_splitMarkerName'](_0x4c7754);return'suggestion'==_0x418f2e&&'tablePaste'==_0x37ae7e&&_0x4856f8==_0x1d6d52['id']&&!_0x21f1ab['oldRange'];});for(const _0x119099 of _0x2a2426){if('insert'!=_0x119099['type']||'tableCellSuggestion'!=_0x119099['name']||0x1!=_0x119099['length'])continue;const _0x37fa50=_0x51b8d5['createRange'](_0x119099['position'],_0x119099['position']['getShiftedBy'](0x1));if(!_0x30933b['find'](({data:_0x649aba})=>_0x649aba['newRange']['isEqual'](_0x37fa50))){for(const {name:_0x460f02,data:_0x3c8441}of _0x30933b)if(_0x37fa50['containsRange'](_0x3c8441['newRange'])){_0x51b8d5['updateMarker'](_0x460f02,{'range':_0x37fa50}),_0x30296d=!0x0;break;}}}return _0x30296d;}),_0x49ad97['model']['document']['registerPostFixer'](_0x3f0dca=>{let _0x41f5e5=!0x1;const _0x132a5e=_0x49ad97['plugins']['get']('Users')['me'],_0x5971c0=_0x1a750e['getSuggestions']()['filter'](_0x1c03c1=>_0x1c03c1['isInContent']&&_0x1c03c1['author']==_0x132a5e),_0x400a71=new Set(),_0x1187ce=new Set();for(const _0x484a93 of _0x5971c0)if('tablePaste'==_0x484a93['subType'])for(const _0x38edd5 of _0x484a93['getMarkers']()){const _0x372bcf=_0x38edd5['getRange']()['getContainedElement']();if(_0x372bcf){if(_0x372bcf['is']('element','tableCellSuggestion')&&ze(_0x372bcf)){_0x484a93['removeMarker'](_0x38edd5['name']),_0x400a71['add'](_0x372bcf),_0x41f5e5=!0x0;const _0x2dc6c6=_0x372bcf['nextSibling'],_0xa70c3d=_0x372bcf['previousSibling'],_0x570d14=_0x2dc6c6&&_0x2dc6c6['is']('element','tableCellSuggestion'),_0x259134=_0xa70c3d&&_0xa70c3d['is']('element','tableCellSuggestion');_0x570d14&&!_0x400a71['has'](_0x2dc6c6)&&_0x1187ce['add'](_0x2dc6c6),_0x259134&&!_0x400a71['has'](_0xa70c3d)&&_0x1187ce['add'](_0xa70c3d);}else _0x372bcf['is']('element','paragraph')&&_0x372bcf['isEmpty']&&(_0x484a93['removeMarker'](_0x38edd5['name']),_0x41f5e5=!0x0);}}else{if('tablePasteCell'==_0x484a93['subType']){if(!_0x484a93['attributes']||!_0x484a93['attributes']['tablePasteChainId'])continue;const _0x3d05f6=_0x484a93['attributes']['markerAttributes'];if(_0x3d05f6&&Object['keys'](_0x3d05f6)['length'])continue;const _0x17eaf4=_0x484a93['attributes']['tablePasteChainId'];let _0x5311ed=!0x0,_0x1268f2=!0x0;for(const _0x34ded4 of _0x5971c0)if(_0x34ded4['subType']&&_0x34ded4['subType']['startsWith']('tablePaste')){if(!_0x34ded4['attributes']['tablePasteChainId']){_0x1268f2=!0x1;break;}if(_0x34ded4['id']!=_0x484a93['id']&&_0x34ded4['attributes']['tablePasteChainId']==_0x17eaf4){_0x5311ed=!0x1;break;}}_0x1268f2&&_0x5311ed&&(_0x484a93['removeMarkers'](),_0x41f5e5=!0x0);}}for(const _0x2928f3 of _0x400a71)_0x3f0dca['remove'](_0x2928f3);for(const _0x5bf9c9 of _0x1187ce)_0x3f0dca['unwrap'](_0x5bf9c9);return _0x41f5e5;}),_0x49ad97['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x14b5be=>_0x27dab6(_0x14b5be),'converterPriority':'high'}),_0x49ad97['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x429334,_0x2e83a5)=>_0x2e83a5['options']['showSuggestionHighlights']?_0x27dab6(_0x429334,!0x1):null,'converterPriority':'high'});const _0x5251de=_0x49ad97['editing']['view'];this['listenTo'](_0x5251de['document'],'clipboardOutput',(_0xd1bfa,_0x172e2f)=>{const _0x32a49f=[];for(const _0x6a9aa8 of _0x5251de['createRangeIn'](_0x172e2f['content'])['getItems']())_0x6a9aa8['is']('element','suggestion-td')&&_0x32a49f['push'](_0x6a9aa8);_0x5251de['change'](_0x2746e1=>{for(const _0x27f644 of _0x32a49f)_0x2746e1['move'](_0x2746e1['createRangeIn'](_0x27f644),_0x2746e1['createPositionBefore'](_0x27f644)),_0x2746e1['remove'](_0x27f644);});});}}function ze(_0x249fb5){if(_0x249fb5['isEmpty'])return!0x0;const _0x584b39=_0x249fb5['getChild'](0x0);return _0x584b39['is']('element','paragraph')&&_0x584b39['isEmpty'];}function Ge(_0x4ded50,_0xe151ba={},_0x32eca4){for(const {isAnchor:_0x409f00,cellHeight:_0x3a10b5,cellWidth:_0x4b82c6}of _0x32eca4['createTableWalker'](_0x4ded50,{'includeAllSlots':!0x0,..._0xe151ba}))if(!_0x409f00||0x1!=_0x3a10b5||0x1!=_0x4b82c6)return!0x1;return!0x0;}class xt extends _0x555e71{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x595267=this['editor']['plugins']['get']('TrackChangesEditing');_0x595267['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x595267['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x595267['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x595267['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x595267['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x595267['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x543f9b,_0x2e9f28){const _0x485531=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50b5cb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1666ac=_0x2e9f28['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4c73f7=_0x50b5cb['getColumnGroupElement'](_0x1666ac);let _0x25f9be=_0x4c73f7?_0x50b5cb['getTableColumnsWidths'](_0x4c73f7):null,_0x16b882=_0x1666ac['getAttribute']('tableWidth')||null;const _0xab5a01=_0x2e9f28['tableWidth']||_0x16b882,_0xb1893b=_0x2e9f28['columnWidths']||_0x25f9be,_0x323568=this['editor']['plugins']['get']('Users')['me'];for(const _0x9e64ec of _0x485531['getSuggestions']()){const _0x3e8e06=_0x9e64ec['getContainedElement']();if('resizeTable'===_0x9e64ec['subType']&&_0x3e8e06===_0x1666ac){_0x9e64ec['author']!==_0x323568&&_0x9e64ec['discard']();const _0x583c64=_0x9e64ec['data']['commandParams'];_0x16b882=_0x583c64[0x0]['tableWidth'],_0x25f9be=_0x583c64[0x0]['columnWidths'];break;}}_0x543f9b({'table':_0x1666ac,'tableWidth':_0xab5a01,'columnWidths':_0xb1893b}),_0x485531['markBlockFormat'](_0x1666ac,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16b882,'columnWidths':_0x25f9be}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x361cae){if('formatBlock'!=_0x361cae['type']&&'formatInline'!=_0x361cae['type'])return;const {data:_0xef4496}=_0x361cae;if(_0xef4496&&'resizeTable'===_0xef4496['formatGroupId']){const _0x33a59='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x33a59)};}}}class Et extends _0x555e71{['afterInit'](){const _0x115a83=this['editor'];_0x115a83['plugins']['has']('Template')&&_0x115a83['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x555e71{['afterInit'](){const _0x158a8f=this['editor'];if(!_0x158a8f['commands']['get']('insertTableOfContents'))return;_0x158a8f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x19f2dc=_0x158a8f['plugins']['get']('TrackChangesEditing'),_0xff0f51=_0x158a8f['locale'];_0x19f2dc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5f465b=>o(_0xff0f51,'ELEMENT_TABLE_OF_CONTENTS',_0x5f465b));}}class Ut extends _0x555e71{['afterInit'](){const _0x517234=this['editor'];if(!_0x517234['plugins']['has']('Title'))return;const _0x7a49cd=_0x517234['plugins']['get']('TrackChangesEditing');_0x7a49cd['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x517234['locale'],'ELEMENT_TITLE')),_0x517234['model']['document']['registerPostFixer'](_0x221e7d=>{let _0x62e100=!0x1;const _0x253b27=Array['from'](_0x517234['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5caecf,data:_0x59b1c0}of _0x253b27){const {group:_0x101736}=_0x7a49cd['_splitMarkerName'](_0x5caecf);if('suggestion'!==_0x101736||!_0x59b1c0['newRange'])continue;const _0x505245=_0x59b1c0['newRange'],_0x1e1c90=_0x505245['end']['nodeBefore'];if(!_0x1e1c90||!_0x1e1c90['is']('element','title-content'))continue;if(!_0x505245['start']['isTouching'](_0x505245['end']))continue;const _0x197493=_0x517234['model']['schema']['getNearestSelectionRange'](_0x505245['end'],'forward');if(_0x197493&&_0x197493['isCollapsed']){const _0x24f913=_0x221e7d['createRange'](_0x505245['start'],_0x197493['start']);_0x24f913['isEqual'](_0x505245)||(_0x221e7d['updateMarker'](_0x5caecf,{'range':_0x24f913}),_0x62e100=!0x0);}_0x62e100||(_0x221e7d['removeMarker'](_0x5caecf),_0x62e100=!0x0);}return _0x62e100;});}}class Vt extends _0x555e71{['afterInit'](){const _0xdac427=this['editor'],_0x23cf0b=_0xdac427['plugins']['get']('TrackChangesEditing');_0xdac427['plugins']['has']('Uploadcare')&&(_0x23cf0b['enableCommand']('uploadcare'),_0xdac427['plugins']['has']('UploadcareImageEdit')&&(_0x23cf0b['enableCommand']('uploadcareImageEdit'),_0x23cf0b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x23cf0b['registerBlockAttribute']('uploadcareImageId'),_0x23cf0b['descriptionFactory']['registerDescriptionCallback'](_0x4f9f70=>{if('attribute'!=_0x4f9f70['type'])return;const {data:_0x54b404}=_0x4f9f70;return _0x54b404&&'uploadcareImageId'==_0x54b404['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x555e71{['afterInit'](){const _0x2d2c2c=this['editor'],_0x14182c=_0x2d2c2c['plugins']['get']('TrackChangesEditing');_0x2d2c2c['plugins']['has']('UndoEditing')&&(_0x14182c['enableCommand']('undo'),_0x14182c['enableCommand']('redo'));}}class Pt extends _0x555e71{static get['requires'](){return[Dt];}['afterInit'](){const _0x1c7b6e=this['editor'];if(!_0x1c7b6e['plugins']['has']('TableCaptionEditing'))return;_0x1c7b6e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x555e71{['tableProperties'];['tableCellProperties'];constructor(_0x26e4e2){super(_0x26e4e2),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 _0x87ea07=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x30ab08 of this['tableProperties'])_0x87ea07['enableCommand'](_0x30ab08,(_0x2c18f2,_0x391d37)=>{const _0x2b0e77=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x30ab08,[_0x2b0e77],this['tableProperties'],'tableProperties',_0x2c18f2,_0x391d37);});_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x87ea07['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x147fae,_0x1f4b36)=>this['handleDiscardAction'](this['tableProperties'],_0x147fae,_0x1f4b36)),_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x22ad60 of this['tableCellProperties'])_0x87ea07['enableCommand'](_0x22ad60,(_0x31d2d0,_0x21a6fb)=>{const _0x268639=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x22ad60,_0x268639,this['tableCellProperties'],'tableCellProperties',_0x31d2d0,_0x21a6fb);});_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x87ea07['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x232e28,_0xc94cf5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x232e28,_0xc94cf5)),_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x87ea07['descriptionFactory']['registerDescriptionCallback'](_0x197aee=>this['handleSuggestionDescription'](_0x197aee)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3b1189,_0x5b111c,_0x59d57f,_0x5f589c,_0x509ddb,_0x389344){const _0x424c53=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x389344['batch'],()=>{for(const _0x252bc5 of _0x5b111c){if(this['_getSuggestion'](_0x252bc5,_0x5f589c))_0x509ddb(_0x389344);else{const _0x5157b9={};for(const _0x1dd943 of _0x59d57f){const _0x3f62db=_0x252bc5['getAttribute'](_0x1dd943);void 0x0!==_0x3f62db&&(_0x5157b9[_0x1dd943]=_0x3f62db);}_0x509ddb(_0x389344),_0x424c53['markBlockFormat'](_0x252bc5,{'commandParams':[_0x5157b9]},[],_0x5f589c);}}});}['handleDiscardAction'](_0x40bcf4,_0x4e0dd1,_0xb0f1dc){const _0x510603=_0x4e0dd1[0x0]['start']['nodeAfter'],_0x3434e3=_0xb0f1dc['commandParams'][0x0];this['editor']['model']['change'](_0x4a2387=>{for(const _0x219981 of _0x40bcf4)void 0x0!==_0x3434e3[_0x219981]?_0x4a2387['setAttribute'](_0x219981,_0x3434e3[_0x219981],_0x510603):_0x4a2387['removeAttribute'](_0x219981,_0x510603);});}['handleSuggestionDescription'](_0x169f9f){if(_0x169f9f['data'])switch(_0x169f9f['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x429115,_0x39bc75){const _0x9e1d52=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4176a5 of _0x9e1d52['getSuggestions']({'skipNotAttached':!0x0})){const _0x2d8982=_0x4176a5['getContainedElement']();if(_0x4176a5['subType']===_0x39bc75&&_0x2d8982===_0x429115)return _0x4176a5;}return null;}['_registerTablePropertiesAttributes'](){const _0x4f1ffc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f0f96=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4facfc of _0x1f0f96){const _0x4c81db=_0x4facfc['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4f1ffc['registerBlockAttribute'](_0x4facfc),_0x4f1ffc['descriptionFactory']['registerAttributeLabel'](_0x4facfc,o(this['editor']['locale'],'FORMAT_'+_0x4c81db));}}}class Lt extends _0x555e71{['afterInit'](){const _0x3a2143=this['editor'];if(!_0x3a2143['plugins']['has']('LineHeight'))return;const _0x25f6e9=_0x3a2143['plugins']['get']('TrackChangesEditing'),_0x2172d9=_0x3a2143['locale'];_0x25f6e9['enableDefaultAttributesIntegration']('lineHeight'),_0x25f6e9['registerBlockAttribute']('lineHeight'),_0x25f6e9['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x2172d9,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x555e71{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x15dc59,_0x22a9e9,_0x21ae29,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht,ft,gt,lt,dt,pt,kt,St,mt,Y,Lt,Z,wt,bt,yt,jt,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Pt,Ot,xt,Rt,Gt,Et,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cfd59){super(_0x3cfd59),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x7b4c59,_0x313f85,_0x461dad,_0x2b0df9)=>{this['_model']['change'](()=>{for(const _0x396ab4 of[..._0x2b0df9,..._0x461dad])this['_model']['markers']['has'](_0x396ab4)&&_0x3cfd59['editing']['reconvertMarker'](_0x396ab4);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3cfd59['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3cfd59['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3cfd59['config']['get']('trackChanges.trackFormatChanges'),_0x3cfd59['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3cfd59['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3cfd59,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xb6094a=this['editor'],_0x45187c=(_0x5bac2b,_0xb073b6)=>{if('attribute'!=_0x5bac2b)return'ck-suggestion-marker-'+_0x5bac2b;const _0x273e3e=_0xb073b6['split']('|')[0x0];return this['_isBlockAttribute'](_0x273e3e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xb6094a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1fd4e2=>{const {id:_0x1e390d,authorId:_0xcd43f4,type:_0x49e69b,subType:_0x212c5a}=this['_splitMarkerName'](_0x1fd4e2['markerName']),_0x3a09ec=['ck-suggestion-marker',_0x45187c(_0x49e69b,_0x212c5a)];let _0x150182=0xbb8;return this['activeMarkers']['includes'](_0x1fd4e2['markerName'])&&(_0x3a09ec['push']('ck-suggestion-marker--active'),_0x150182=0xbc2),'deletion'==_0x49e69b&&(_0x150182+=0x5),{'classes':_0x3a09ec,'attributes':{'data-suggestion':_0x1e390d,'data-author-id':_0xcd43f4},'priority':_0x150182};}}),_0xb6094a['conversion']['for']('dataDowncast')['add'](_0x52be6a=>{_0x52be6a['on']('addMarker:suggestion',(_0x3cb7a7,_0x5358c8,_0x37e279)=>{if(!_0x37e279['options']['showSuggestionHighlights'])return;const _0x5782f8=_0x5358c8['item'];if(!_0x5782f8)return;const _0x19ab82=_0x37e279['mapper']['toViewElement'](_0x5782f8);_0xb6094a['model']['schema']['isObject'](_0x5782f8)&&_0x19ab82&&!_0x19ab82['getCustomProperty']('widget')&&_0x19ab82['is']('containerElement')&&_0x593b13(_0x19ab82,_0x37e279['writer']);},{'priority':'high'});}),_0xb6094a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x532f11,_0x1b3e2e)=>{if(!_0x1b3e2e['options']['showSuggestionHighlights'])return null;const {id:_0x327388,authorId:_0x451dbe,type:_0x11a9a2,subType:_0x22854d}=this['_splitMarkerName'](_0x532f11['markerName']);return{'classes':['ck-suggestion-marker',_0x45187c(_0x11a9a2,_0x22854d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x327388,'data-author-id':_0x451dbe}};}});const _0x45d270=({showActiveMarkers:_0x216a66=!0x0,isAttributeSuggestion:_0x2bfdc4=!0x1}={})=>(_0xa30bbf,_0x42f88b,_0x472747)=>{if(!_0x42f88b['item'])return;const {id:_0x4f340d,authorId:_0x2c7cdc,subType:_0x22333a}=this['_splitMarkerName'](_0x42f88b['markerName']);if(_0x2bfdc4){const _0x3eb190=re(_0x22333a);if(!this['_isBlockAttribute'](_0x3eb190))return;}if(_0x42f88b['item']['is']('selection'))return void _0x472747['consumable']['consume'](_0x42f88b['item'],_0xa30bbf['name']);const _0x2cfca4=_0x472747['mapper']['toViewElement'](_0x42f88b['item']);if(_0x42f88b['item']['is']('element')&&_0xb6094a['model']['schema']['isBlock'](_0x42f88b['item'])&&!_0x2cfca4['getCustomProperty']('addHighlight')){_0x472747['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2cfca4),_0x472747['writer']['setAttribute']('data-suggestion',_0x4f340d,_0x2cfca4),_0x472747['writer']['setAttribute']('data-author-id',_0x2c7cdc,_0x2cfca4),_0x472747['mapper']['bindElementToMarker'](_0x2cfca4,_0x42f88b['markerName']),_0x216a66&&(this['activeMarkers']['includes'](_0x42f88b['markerName'])?_0x472747['writer']['addClass']('ck-suggestion-marker--active',_0x2cfca4):_0x472747['writer']['removeClass']('ck-suggestion-marker--active',_0x2cfca4));for(const _0x2a3117 of _0xb6094a['model']['createRangeIn'](_0x42f88b['item'])['getItems']())_0x472747['consumable']['consume'](_0x2a3117,_0xa30bbf['name']);_0x472747['consumable']['consume'](_0x42f88b['item'],_0xa30bbf['name']);}};_0xb6094a['conversion']['for']('dataDowncast')['add'](_0x59b901=>{_0x59b901['on']('addMarker:suggestion:formatBlock',(_0x43ffbc,_0x447e90,_0x416d97)=>{_0x416d97['options']['showSuggestionHighlights']&&_0x45d270({'showActiveMarkers':!0x1})(_0x43ffbc,_0x447e90,_0x416d97);},{'priority':'highest'});}),_0xb6094a['conversion']['for']('dataDowncast')['add'](_0x346f8d=>{_0x346f8d['on']('addMarker:suggestion:attribute',(_0x41236c,_0x28b3af,_0x5c18a4)=>{_0x5c18a4['options']['showSuggestionHighlights']&&_0x45d270({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x41236c,_0x28b3af,_0x5c18a4);},{'priority':'highest'});}),_0xb6094a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3902ab,_0x5bb24b)=>{if(_0x5bb24b['options']['showSuggestionHighlights']){const {id:_0x3efbe6,authorId:_0x50200a}=this['_splitMarkerName'](_0x3902ab);return _0x3902ab['includes'](':split')||_0x3902ab['includes'](':merge')?{'group':'suggestion','name':_0x3902ab['substr'](0xb),'attributes':{'data-suggestion':_0x3efbe6,'data-author-id':_0x50200a}}:null;}return{'group':'suggestion','name':_0x3902ab['substr'](0xb)};}}),_0xb6094a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x8075ce,{writer:_0x1d56b6})=>{let _0x339baf='suggestion:'+_0x8075ce['getAttribute']('suggestion-type')+':'+_0x8075ce['getAttribute']('id');return _0x8075ce['getAttribute']('marker-count')&&(_0x339baf+=':'+_0x8075ce['getAttribute']('marker-count')),_0x1d56b6['createElement']('$marker',{'data-name':_0x339baf});}}),_0xb6094a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xb6094a['conversion']['for']('editingDowncast')['add'](_0x2c7df4=>{_0x2c7df4['on']('addMarker:suggestion:formatBlock',_0x45d270(),{'priority':'high'});}),_0xb6094a['conversion']['for']('editingDowncast')['add'](_0x40b002=>{_0x40b002['on']('addMarker:suggestion:attribute',_0x45d270({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xb6094a['conversion']['for']('editingDowncast')['add'](_0x2868ef=>{_0x2868ef['on']('removeMarker:suggestion:formatBlock',(_0x3b5329,_0x506bae,_0xba4b1b)=>{const _0x1588fc=_0xba4b1b['mapper']['markerNameToElements'](_0x506bae['markerName']);if(_0x1588fc){for(const _0x3d395f of _0x1588fc)_0x3d395f['getCustomProperty']('addHighlight')||(_0xba4b1b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3d395f),_0xba4b1b['writer']['removeAttribute']('data-suggestion',_0x3d395f),_0xba4b1b['writer']['removeAttribute']('data-author-id',_0x3d395f),_0xba4b1b['mapper']['unbindElementFromMarkerName'](_0x3d395f,_0x506bae['markerName']));}},{'priority':'high'});}),_0xb6094a['conversion']['for']('editingDowncast')['add'](_0x2ad452=>{_0x2ad452['on']('removeMarker:suggestion:attribute',(_0x55727e,_0xf19e6d,_0x85b759)=>{const _0x557f6f=_0x85b759['mapper']['markerNameToElements'](_0xf19e6d['markerName']);if(!_0x557f6f)return;const {subType:_0xb6de00}=this['_splitMarkerName'](_0xf19e6d['markerName']),_0xc731b8=re(_0xb6de00);if(this['_isBlockAttribute'](_0xc731b8)){for(const _0x277f35 of _0x557f6f)_0x277f35['getCustomProperty']('addHighlight')||(_0x85b759['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x277f35),_0x85b759['writer']['removeAttribute']('data-suggestion',_0x277f35),_0x85b759['writer']['removeAttribute']('data-author-id',_0x277f35),_0x85b759['mapper']['unbindElementFromMarkerName'](_0x277f35,_0xf19e6d['markerName']));}},{'priority':'high'});}),_0xb6094a['model']['document']['registerPostFixer'](_0x549c55=>{let _0x2cc359=!0x1;const _0x365f56=Array['from'](_0xb6094a['model']['document']['differ']['getChangedMarkers']()),_0x3b94b3=new Set();for(const {name:_0xe0b834,data:_0x55c9c2}of _0x365f56){const {group:_0x58b71e,type:_0x383cef,subType:_0x14aab2,id:_0x4e7cd1}=this['_splitMarkerName'](_0xe0b834);if('suggestion'!==_0x58b71e)continue;const _0x27bf27=_0x14aab2?'suggestion:'+_0x383cef+':'+_0x14aab2+':'+_0x4e7cd1:'suggestion:'+_0x383cef+':'+_0x4e7cd1,_0x1db163=_0xb6094a['model']['markers']['getMarkersGroup'](_0x27bf27),_0x172d7f=_0xb6094a['model']['markers']['get'](_0xe0b834),_0x53f1ad=this['_suggestions']['get'](_0x4e7cd1);if(null!=_0x55c9c2['newRange']){'formatInline'==_0x383cef&&(_0x2cc359=_0x2cc359||Wt(_0x55c9c2['newRange'],_0xe0b834,_0x549c55,_0xb6094a['model']['schema']));const _0x4b3c6b='attribute'==_0x383cef&&this['_isBlockAttribute'](_0x14aab2['split']('|')[0x0]),_0x4d4cd9='attribute'==_0x383cef&&this['_isInlineAttribute'](_0x14aab2['split']('|')[0x0]);if(_0x55c9c2['newRange']['isCollapsed']||'$graveyard'==_0x55c9c2['newRange']['root']['rootName']||'formatBlock'==_0x383cef&&!Qt(_0x55c9c2['newRange'])||_0x4b3c6b&&!Qt(_0x55c9c2['newRange'])||_0x4d4cd9&&Xt(_0x55c9c2['newRange'])||'deletion'==_0x383cef&&Xt(_0x55c9c2['newRange'])||_0x172d7f&&Yt(_0x172d7f,_0x1db163))_0x549c55['removeMarker'](_0xe0b834),_0x2cc359=!0x0;else{if(!_0x53f1ad||!_0x53f1ad['isInContent'])continue;if(_0x55c9c2['newRange']&&_0x55c9c2['oldRange']&&_0x55c9c2['newRange']['isEqual'](_0x55c9c2['oldRange']))continue;_0x3b94b3['add'](_0x53f1ad);}}}return _0x3b94b3['size']>0x0&&(_0x2cc359=!!this['_joinWithAdjacentSuggestions'](_0x3b94b3)||_0x2cc359),_0x2cc359;}),_0xb6094a['model']['document']['registerPostFixer'](_0x3d12a3=>{let _0x5e6239=!0x1;for(const _0x5b538d of _0xb6094a['model']['document']['differ']['getChanges']())if('insert'==_0x5b538d['type'])for(const _0x202288 of this['_suggestions']['values']()){if(_0x202288['isMultiRange']||!_0x202288['isInContent'])continue;const _0x54f9df='formatBlock'==_0x202288['type'],_0x1f8a4f=this['_getAttributeKey'](_0x202288),_0x2bc619=_0x1f8a4f&&this['_isBlockAttribute'](_0x1f8a4f);if(!_0x54f9df&&!_0x2bc619)continue;const _0x331de9=_0x202288['getFirstRange']();if(_0x331de9['start']['parent']!=_0x331de9['end']['parent']&&!_0x331de9['end']['isAtEnd']){const _0x5832d8=_0xb6094a['model']['createPositionAt'](_0x331de9['start']['nodeAfter'],'end'),_0xb1e0a6=_0xb6094a['model']['createRange'](_0x331de9['start'],_0x5832d8);_0x3d12a3['updateMarker'](_0x202288['getFirstMarker'](),{'range':_0xb1e0a6}),_0x5e6239=!0x0;}}return _0x5e6239;}),_0xb6094a['model']['document']['registerPostFixer'](_0x47b50=>this['_processAttributeChanges'](_0x47b50)),_0xb6094a['model']['document']['registerPostFixer'](_0x4a1263=>!_0x4a1263['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4a1263)),_0xb6094a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xb6094a['model']['document']['on']('change:data',(_0x9df7c1,_0x15d577)=>{if(!_0x15d577['isLocal']||_0x15d577['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5f1f27=_0xb6094a['model']['document']['differ']['getChanges']();if(0x0==_0x5f1f27['length'])return;const _0x5436de=[],_0x583af0=_0x5f1f27['filter'](_0x43c27c=>'attribute'==_0x43c27c['type']),_0x2c1410=_0x5f1f27['filter'](_0x3bb6a9=>'insert'==_0x3bb6a9['type']&&'$text'!=_0x3bb6a9['name']);for(const _0x56284f of _0x583af0)this['_isRegisteredAttribute'](_0x56284f['attributeKey'])&&_0x5436de['push']({'key':_0x56284f['attributeKey'],'newValue':_0x56284f['attributeNewValue'],'oldValue':_0x56284f['attributeOldValue'],'range':te(_0x56284f['range'],_0xb6094a['model'])});for(const _0x421960 of _0x2c1410){if('rename'!=_0x421960['action']&&'refresh'!=_0x421960['action'])continue;const _0x1a6b7f=ee(_0x421960['position']['nodeAfter'],_0xb6094a['model']),_0x355e1a=_0x421960['before'];'rename'==_0x421960['action']&&_0x5436de['push']({'key':m,'newValue':_0x421960['name'],'oldValue':_0x355e1a['name'],'range':_0x1a6b7f});for(const [_0x241582,_0x37a8fa]of _0x355e1a['attributes']){if(!this['_isRegisteredAttribute'](_0x241582))continue;const _0x4e0b70=_0x421960['attributes']['get'](_0x241582);_0x37a8fa!==_0x4e0b70&&_0x5436de['push']({'key':_0x241582,'newValue':_0x4e0b70,'oldValue':_0x37a8fa,'range':_0x1a6b7f});}for(const [_0x2910b3,_0x4e5ea5]of _0x421960['attributes'])this['_isRegisteredAttribute'](_0x2910b3)&&(_0x355e1a['attributes']['has'](_0x2910b3)||_0x5436de['push']({'key':_0x2910b3,'newValue':_0x4e5ea5,'oldValue':null,'range':_0x1a6b7f}));}0x0!=_0x5436de['length']&&_0xb6094a['model']['enqueueChange'](_0x15d577,_0x210dac=>{const _0x52b17a=_0x4fda17();for(const {range:_0x64d41f,key:_0x2b4ae6,oldValue:_0x349838,newValue:_0x59a0fa}of _0x5436de)this['markAttributeChange'](_0x64d41f,_0x2b4ae6,_0x349838,_0x59a0fa,{'groupId':_0x52b17a});this['_reduceExistingSuggestions'](_0x210dac,_0x5436de);});},{'priority':'lowest'}),_0xb6094a['model']['markers']['on']('update:suggestion',(_0x2afcf8,_0x3e282e,_0x5bb6c5)=>{if(null==_0x5bb6c5){const {id:_0x5a625c}=this['_splitMarkerName'](_0x3e282e['name']),_0xad947f=this['_suggestions']['get'](_0x5a625c);_0xad947f&&_0xad947f['addMarkerName'](_0x3e282e['name']);}}),_0xb6094a['model']['document']['on']('change:data',()=>{const _0x1acb8f=Array['from'](_0xb6094a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x510702=>'suggestion'===this['_splitMarkerName'](_0x510702['name'])['group']);if(0x0===_0x1acb8f['length'])return;_0x1acb8f['sort']((_0x60713b,_0x1b023a)=>{const _0x5f0118=_0x60713b['data']['oldRange'],_0x69030a=_0x1b023a['data']['oldRange'];return null===_0x5f0118&&null===_0x69030a?0x0:null===_0x5f0118&&null!==_0x69030a?-0x1:null!==_0x5f0118&&null===_0x69030a?0x1:_0x5f0118['start']['isBefore'](_0x69030a['start'])?-0x1:0x1;});const _0x5c55cf=new Set(),_0x3858cb=new Set();for(const {name:_0x3a1aea,data:_0x268167}of _0x1acb8f){const {id:_0x127094}=this['_splitMarkerName'](_0x3a1aea);if(null===_0x268167['oldRange']){const _0x1c021a=this['_handleNewSuggestionMarker'](_0x3a1aea);_0x3858cb['add'](_0x1c021a);}else{const _0x50a635=this['_suggestions']['get'](_0x127094);null!==_0x268167['newRange']||_0x50a635['isInContent']?(_0x5c55cf['add'](_0x50a635['head']),_0x3858cb['add'](_0x50a635)):this['_removeSuggestion'](_0x50a635);}}_0x3858cb['size']>0x0&&this['_refreshSuggestionsChain'](_0x3858cb);for(const _0x2d779f of _0x5c55cf)this['fire']('suggestionChanged',_0x2d779f);}),_0xb6094a['model']['on']('applyOperation',(_0x5500c8,_0x263b37)=>{const _0x132394=_0x263b37[0x0];if(!this['_suggestions']['size'])return;if(!_0x132394['isDocumentOperation'])return;if(_0x132394['batch']['isUndo']||!_0x132394['batch']['isLocal'])return;let _0x4abafb,_0x1ff5d3;switch(_0x132394['type']){case'insert':_0x4abafb=_0xb6094a['model']['createPositionAt'](_0x132394['position']),_0x1ff5d3=_0x4abafb['getShiftedBy'](_0x132394['howMany']);break;case'split':_0x4abafb=_0xb6094a['model']['createPositionAt'](_0x132394['splitPosition']),_0x1ff5d3=_0xb6094a['model']['createPositionAt'](_0x132394['moveTargetPosition']);break;case'move':_0x4abafb=_0xb6094a['model']['createPositionAt'](_0x132394['targetPosition']),_0x1ff5d3=_0x4abafb['getShiftedBy'](_0x132394['howMany']);break;default:return;}const _0x36e20a=_0xb6094a['model']['createRange'](_0x4abafb,_0x1ff5d3);_0xb6094a['model']['change'](()=>{for(const {suggestion:_0x5230c2,meta:_0x3ac3de}of this['_findSuggestions'](_0x36e20a)){if(_0x5230c2['isMultiRange'])continue;if('formatInline'==_0x5230c2['type'])continue;const _0x44ba53=this['_getAttributeKey'](_0x5230c2);if(_0x44ba53&&this['_isBlockAttribute'](_0x44ba53)&&'split'!=_0x132394['type'])continue;const _0x52cb88=_0x5230c2['data']&&_0x5230c2['data']['multipleBlocks'];('formatBlock'!=_0x5230c2['type']||'split'==_0x132394['type']&&!_0x52cb88)&&(_0x3ac3de['containsRangeInObject']||'insertion'==_0x5230c2['type']&&_0x3ac3de['isOwn']||_0x5230c2['getFirstRange']()['containsRange'](_0x36e20a)&&this['_breakSuggestionMarker'](_0x5230c2,_0x4abafb,_0x1ff5d3));}});},{'priority':'lowest'}),_0xb6094a['model']['on']('deleteContent',(_0x370306,_0x4ed13e)=>{const _0x4f80fb=_0x4ed13e[0x0],_0x28dcda=_0x4ed13e[0x1];if(_0x28dcda&&_0x28dcda['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4f80fb['isCollapsed'])return;const _0x31a797=_0xb6094a['model']['schema'],{start:_0x516ec6,end:_0x3fc45a}=_0x4f80fb['getFirstRange'](),_0x293858=_0x516ec6['nodeAfter']&&_0x31a797['isLimit'](_0x516ec6['nodeAfter'])?null:_0x31a797['getNearestSelectionRange'](_0x516ec6,'forward'),_0x278919=_0x3fc45a['nodeBefore']&&_0x31a797['isLimit'](_0x3fc45a['nodeBefore'])?null:_0x31a797['getNearestSelectionRange'](_0x3fc45a,'backward'),_0x55a607=_0xb6094a['model']['createRange'](_0x293858?_0x293858['start']:_0x516ec6,_0x278919?_0x278919['end']:_0x3fc45a);_0xb6094a['model']['change'](_0x1f2108=>{this['markDeletion'](_0x55a607);const _0x2452d8=_0xb6094a['model']['schema']['getNearestSelectionRange'](_0x55a607['start']);_0x4f80fb['is']('documentSelection')?_0x1f2108['setSelection'](_0x2452d8):_0x4f80fb['setTo'](_0x2452d8);}),_0x370306['stop']();},{'priority':_0x48f7b8['normal']+0xa}),_0xb6094a['model']['on']('insertContent',(_0x144b43,_0xd5359e)=>{const _0x2be763=_0xd5359e[_0xd5359e['length']-0x1];_0x2be763&&_0x2be763['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xb6094a['model']['change'](()=>{let _0xf18470=_0xb6094a['model']['insertContent'](_0xd5359e[0x0],_0xd5359e[0x1],_0xd5359e[0x2],{'forceDefaultExecution':!0x0});if(!_0xf18470)return;_0x144b43['return']=_0xf18470['clone']();const _0x3f2a8e=_0xf18470['end']['nodeBefore'],_0x16bdcb=_0xb6094a['model']['schema'];_0x3f2a8e&&_0x16bdcb['isBlock'](_0x3f2a8e)&&!_0x16bdcb['isObject'](_0x3f2a8e)&&(_0xf18470=_0xb6094a['model']['createRange'](_0xf18470['start'],_0xb6094a['model']['createPositionAt'](_0x3f2a8e,'end'))),this['markInsertion'](_0xf18470);}),_0x144b43['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x55c9d1=new T(_0xb6094a,this['_suggestions']);_0xb6094a['commands']['add']('acceptSuggestion',_0x55c9d1),this['enableCommand']('acceptSuggestion');const _0x10deb4=new O(_0xb6094a,this['_suggestions']);_0xb6094a['commands']['add']('discardSuggestion',_0x10deb4),this['enableCommand']('discardSuggestion'),_0xb6094a['commands']['add']('acceptAllSuggestions',new x(_0xb6094a,_0x55c9d1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xb6094a['commands']['add']('discardAllSuggestions',new x(_0xb6094a,_0x10deb4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xb6094a['commands']['add']('acceptSelectedSuggestions',new E(_0xb6094a,_0x55c9d1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xb6094a['commands']['add']('discardSelectedSuggestions',new E(_0xb6094a,_0x10deb4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x927a15=_0xb6094a['plugins']['get']('CommentsRepository');this['listenTo'](_0x927a15,'addComment',(_0x3e6452,{threadId:_0x5eeeb6})=>{const _0x17d12e=this['_suggestions']['get'](_0x5eeeb6);_0x17d12e&&_0x17d12e['commentThread']&&0x1===_0x17d12e['commentThread']['length']&&this['_updateSuggestionData'](_0x5eeeb6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x927a15,'removeComment',(_0x3176ba,{threadId:_0x117f00})=>{const _0xdfa6c1=this['_suggestions']['get'](_0x117f00);_0xdfa6c1&&_0xdfa6c1['commentThread']&&!_0xdfa6c1['commentThread']['length']&&this['_updateSuggestionData'](_0x117f00,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2a30c1){const _0x202f5d=_0x577408([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x9abab8=0x6b0f5e6f,_0x3091b8=0x6b08282f^_0x9abab8,_0x5dac4e=window[_0x577408([0x44,0x61,0x74,0x65])][_0x577408([0x6e,0x6f,0x77])](),_0x1a42a2=_0x2a30c1[_0x577408([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3154e1=new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x402314=>{_0x1a42a2[_0x577408([0x6f,0x6e,0x63,0x65])](_0x577408([0x72,0x65,0x61,0x64,0x79]),_0x402314);}),_0x3060f3={[_0x577408([0x6b,0x74,0x79])]:_0x577408([0x45,0x43]),[_0x577408([0x75,0x73,0x65])]:_0x577408([0x73,0x69,0x67]),[_0x577408([0x63,0x72,0x76])]:_0x577408([0x50,0x2d,0x32,0x35,0x36]),[_0x577408([0x78])]:_0x577408([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]),[_0x577408([0x79])]:_0x577408([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]),[_0x577408([0x61,0x6c,0x67])]:_0x577408([0x45,0x53,0x32,0x35,0x36])},_0x5b117f=_0x1a42a2[_0x577408([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x577408([0x67,0x65,0x74])](_0x577408([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x141840(){let _0x989074,_0xbe0d2f=null,_0x5f1dfa=null;try{if(_0x5b117f==_0x577408([0x47,0x50,0x4c]))return _0x577408([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x989074=_0x1d2262(),!_0x989074)return _0x577408([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x989074[_0x577408([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f1dfa=_0x41b76a(_0x989074[_0x577408([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x989074[_0x577408([0x6a,0x74,0x69])])),await _0x32e21b()?_0x8096c3()?_0x3a7ada()?_0x577408([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48a0fe()?(_0x989074[_0x577408([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x577408([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xbe0d2f=_0x562780(_0x577408([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x989074[_0x577408([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x577408([0x74,0x72,0x69,0x61,0x6c])&&(_0xbe0d2f=_0x562780(_0x577408([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a8d0c()):_0x577408([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x577408([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x577408([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x577408([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a7ada(){const _0x5bf718=[_0x577408([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x577408([0x74,0x72,0x69,0x61,0x6c])][_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x989074[_0x577408([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5dac4e/0x3e8:0xe10*_0x3091b8;return _0x989074[_0x577408([0x65,0x78,0x70])]<_0x5bf718;}function _0x8096c3(){const _0x2c3117=_0x989074[_0x577408([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c3117)return!0x1;if(_0x2c3117[_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x577408([0x2a])))return!0x0;if(_0x2c3117[_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x577408([0x54,0x43])))return!0x0;if(_0x2c3117[_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x577408([0x52,0x54,0x43]))){if(_0x13c762())return!0x0;if(_0x3d33a0()||_0x3f2bce())return!0x0;}return!0x1;}function _0x48a0fe(){const _0x118007=_0x989074[_0x577408([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x118007||0x0==_0x118007[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57c5f6}=new URL(window[_0x577408([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x118007[_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c5f6))return!0x0;const _0xd1c6ba=_0x57c5f6[_0x577408([0x73,0x70,0x6c,0x69,0x74])](_0x577408([0x2e]));return _0x118007[_0x577408([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd4f5f7=>_0xd4f5f7[_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x577408([0x2a])))[_0x577408([0x6d,0x61,0x70])](_0xbbb59c=>_0xbbb59c[_0x577408([0x73,0x70,0x6c,0x69,0x74])](_0x577408([0x2e])))[_0x577408([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3633e7=>_0x3633e7[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd1c6ba[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x577408([0x6d,0x61,0x70])](_0x10c823=>Array(_0xd1c6ba[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10c823[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x577408([0x66,0x69,0x6c,0x6c])](_0x10c823[0x0]===_0x577408([0x2a])?_0x577408([0x2a]):'')[_0x577408([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10c823))[_0x577408([0x73,0x6f,0x6d,0x65])](_0x5052fc=>_0xd1c6ba[_0x577408([0x65,0x76,0x65,0x72,0x79])]((_0x19c62f,_0x25324a)=>_0x5052fc[_0x25324a]===_0x19c62f||_0x5052fc[_0x25324a]===_0x577408([0x2a])));}function _0x5a8d0c(){return _0xbe0d2f&&_0x5f1dfa?new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x208957,_0x499ed3)=>{_0xbe0d2f[_0x577408([0x74,0x68,0x65,0x6e])](_0x208957,_0x499ed3),_0x5f1dfa[_0x577408([0x74,0x68,0x65,0x6e])](_0x312871=>{_0x312871!=_0x577408([0x56,0x61,0x6c,0x69,0x64])&&_0x208957(_0x312871);},_0x499ed3);}):_0xbe0d2f||_0x5f1dfa||_0x577408([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41b76a(_0x402b98,_0xc68acd){return new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c5efc=>{if(_0x290ab3())return _0x3c5efc(_0x577408([0x56,0x61,0x6c,0x69,0x64]));_0x387a98(),_0x1a42a2[_0x577408([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x577408([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32f89a=!0x1;const _0x14b50c=_0x4fda17();function _0x4c80e5(_0x16227b){return!!_0x16227b&&(typeof _0x16227b===_0x577408([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16227b===_0x577408([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16227b[_0x577408([0x74,0x68,0x65,0x6e])]===_0x577408([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16227b[_0x577408([0x63,0x61,0x74,0x63,0x68])]===_0x577408([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33abd1(_0x3e1b2e){_0x2fbc29(_0x3e1b2e)[_0x577408([0x74,0x68,0x65,0x6e])](_0xcdc2d=>{if(!_0xcdc2d||_0xcdc2d[_0x577408([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x577408([0x6f,0x6b]))return _0x577408([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38103d(_0x3ea307(_0x14b50c+_0xc68acd))!=_0xcdc2d[_0x577408([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x577408([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x577408([0x56,0x61,0x6c,0x69,0x64]);})[_0x577408([0x74,0x68,0x65,0x6e])](_0xc72fce=>(_0x293cf0(),_0xc72fce),()=>{const _0x1811e0=_0xfdaed4();return null==_0x1811e0?(_0x293cf0(),_0x577408([0x56,0x61,0x6c,0x69,0x64])):_0x577408(_0x5dac4e-_0x1811e0>(0x4f03da6f^_0x9abab8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x577408([0x74,0x68,0x65,0x6e])](_0x3c5efc)[_0x577408([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c5efc(_0x577408([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c0b4f=0x6b39b0ef^_0x9abab8;function _0x293cf0(){const _0xb74fb1=_0x577408([0x6c,0x6c,0x63,0x74,0x2d])+_0x38103d(_0x3ea307(_0x402b98)),_0x801bd9=_0x185c49(_0x38103d(window[_0x577408([0x4d,0x61,0x74,0x68])][_0x577408([0x63,0x65,0x69,0x6c])](_0x5dac4e/_0x1c0b4f)));window[_0x577408([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x577408([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb74fb1,_0x801bd9);}function _0xfdaed4(){const _0xdb0ce4=_0x577408([0x6c,0x6c,0x63,0x74,0x2d])+_0x38103d(_0x3ea307(_0x402b98)),_0x2bb6a2=window[_0x577408([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x577408([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdb0ce4);return _0x2bb6a2?window[_0x577408([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x185c49(_0x2bb6a2),0x10)*_0x1c0b4f:null;}function _0x2fbc29(_0x237364){return new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12f449,_0x1edc87)=>{_0x237364[_0x577408([0x74,0x68,0x65,0x6e])](_0x12f449,_0x1edc87),window[_0x577408([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1edc87,0x6b0e8aaf^_0x9abab8);});}}_0x1a42a2[_0x577408([0x6f,0x6e])](_0x577408([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59bd47,_0x567913)=>{if(_0x567913[0x0]!=_0x402b98)return _0x3c5efc(_0x577408([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x567913[0x1]={..._0x567913[0x1],[_0x577408([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14b50c};},{[_0x577408([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x577408([0x68,0x69,0x67,0x68])}),_0x1a42a2[_0x577408([0x6f,0x6e])](_0x577408([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2756e7=>{_0x4c80e5(_0x2756e7[_0x577408([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32f89a=!0x0,_0x33abd1(_0x2756e7[_0x577408([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x577408([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x577408([0x6c,0x6f,0x77])}),_0x3154e1[_0x577408([0x74,0x68,0x65,0x6e])](()=>{_0x32f89a||_0x3c5efc(_0x577408([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x290ab3(){return _0x1a42a2[_0x577408([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x577408([0x76,0x69,0x65,0x77])][_0x577408([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x577408([0x61,0x75,0x74,0x6f]);}function _0x387a98(){_0x1a42a2[_0x577408([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x577408([0x76,0x69,0x65,0x77])][_0x577408([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x577408([0x61,0x75,0x74,0x6f]);}}function _0x562780(_0x337a11){const _0x40f17d=[new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24917b=>setTimeout(_0x24917b,0x6b0660a3^_0x9abab8)),_0x3154e1[_0x577408([0x74,0x68,0x65,0x6e])](()=>new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c6e0=>{let _0x4a3d66=0x0;_0x1a42a2[_0x577408([0x6d,0x6f,0x64,0x65,0x6c])][_0x577408([0x6f,0x6e])](_0x577408([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1efd5f,_0x457607)=>{_0x457607[0x0][_0x577408([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a3d66++,_0x4a3d66==(0x6b0f5f97^_0x9abab8)&&(_0x26c6e0(),_0x1efd5f[_0x577408([0x6f,0x66,0x66])]());});}))];return window[_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x577408([0x72,0x61,0x63,0x65])](_0x40f17d)[_0x577408([0x74,0x68,0x65,0x6e])](()=>_0x337a11);}async function _0x3731c1(){await _0x3154e1,_0x1a42a2[_0x577408([0x6d,0x6f,0x64,0x65,0x6c])][_0x577408([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d41a5,_0x1a42a2[_0x577408([0x6d,0x6f,0x64,0x65,0x6c])][_0x577408([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d41a5,_0x1a42a2[_0x577408([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x577408([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13c762(){return _0x2fdb17(_0x577408([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x318f5d(_0x577408([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x577408([0x73,0x74,0x61,0x74,0x65])]==_0x577408([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3d33a0(){return _0x2fdb17(_0x577408([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 _0x3f2bce(){return _0x2fdb17(_0x577408([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x352c3a(_0x30dcd0){const _0x4bac3f=_0x3f10fa();_0x1a42a2[_0x4bac3f]=_0x577408([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30dcd0,_0x30dcd0!=_0x577408([0x56,0x61,0x6c,0x69,0x64])&&_0x3731c1();}function _0x3f10fa(){const _0x1fcebd=window[_0x577408([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x577408([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x577408([0x6e,0x6f,0x77])]())[_0x577408([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x577408([0x2e]),'');let _0x32c508=_0x577408([0x67]);for(let _0x3a2534=0x0;_0x3a2534<_0x1fcebd[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a2534+=0x2){let _0x4ac29f=window[_0x577408([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fcebd[_0x577408([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a2534,_0x3a2534+0x2));_0x4ac29f>=_0x202f5d[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ac29f-=_0x202f5d[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32c508+=_0x202f5d[_0x4ac29f];}return _0x32c508;}function _0x1d2262(){const _0x4f8326=_0x5b117f[_0x577408([0x73,0x70,0x6c,0x69,0x74])](_0x577408([0x2e]));if(0x3!=_0x4f8326[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d71e1(_0x4f8326[0x1]);function _0x3d71e1(_0x246652){const _0x4d8c01=_0x54e49c(_0x246652);return _0x4d8c01&&_0x96fea9()?_0x4d8c01:null;function _0x96fea9(){const _0x481393=_0x4d8c01[_0x577408([0x6a,0x74,0x69])],_0x1e409f=window[_0x577408([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x481393[_0x577408([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x481393[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2301d7={..._0x4d8c01,[_0x577408([0x6a,0x74,0x69])]:_0x481393[_0x577408([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x481393[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2301d7[_0x577408([0x76,0x63])],_0x3ea307(_0x2301d7)==_0x1e409f;}}}async function _0x32e21b(){let _0x384a14=!0x0;try{const _0x8a2e51=_0x5b117f[_0x577408([0x73,0x70,0x6c,0x69,0x74])](_0x577408([0x2e])),[_0x38cc74,_0x68a136,_0x4a6930]=_0x8a2e51;return _0x5b5f8e(_0x38cc74),await _0x19508e(_0x38cc74,_0x68a136,_0x4a6930),_0x384a14;}catch{return!0x1;}function _0x5b5f8e(_0x3b1f5a){const _0x15cd7e=_0x54e49c(_0x3b1f5a);_0x15cd7e&&_0x15cd7e[_0x577408([0x61,0x6c,0x67])]==_0x577408([0x45,0x53,0x32,0x35,0x36])||(_0x384a14=!0x1);}async function _0x19508e(_0x5251ef,_0x51f2aa,_0x56ba17){const _0x30097a=window[_0x577408([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x577408([0x66,0x72,0x6f,0x6d])](_0x2ec867(_0x56ba17),_0x49cdb4=>_0x49cdb4[_0x577408([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a69ab=new window[(_0x577408([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x577408([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5251ef+_0x577408([0x2e])+_0x51f2aa),_0x557ba5=window[_0x577408([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x577408([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x557ba5)return;const _0x485b0b=await _0x557ba5[_0x577408([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x577408([0x6a,0x77,0x6b]),_0x3060f3,{[_0x577408([0x6e,0x61,0x6d,0x65])]:_0x577408([0x45,0x43,0x44,0x53,0x41]),[_0x577408([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x577408([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x577408([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x557ba5[_0x577408([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x577408([0x6e,0x61,0x6d,0x65])]:_0x577408([0x45,0x43,0x44,0x53,0x41]),[_0x577408([0x68,0x61,0x73,0x68])]:{[_0x577408([0x6e,0x61,0x6d,0x65])]:_0x577408([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x485b0b,_0x30097a,_0x5a69ab)||(_0x384a14=!0x1);}}function _0x54e49c(_0x42fd18){return _0x42fd18[_0x577408([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x577408([0x65,0x79]))?JSON[_0x577408([0x70,0x61,0x72,0x73,0x65])](_0x2ec867(_0x42fd18)):null;}function _0x2ec867(_0x519c8b){return window[_0x577408([0x61,0x74,0x6f,0x62])](_0x519c8b[_0x577408([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x577408([0x2b]))[_0x577408([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x577408([0x2f])));}function _0x3ea307(_0x1215a8){let _0xd63e9e=0x1505;function _0x29e336(_0x4616da){for(let _0x6532ca=0x0;_0x6532ca<_0x4616da[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6532ca++){const _0x280c83=_0x4616da[_0x577408([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x6532ca);_0xd63e9e=(_0xd63e9e<<0x5)+_0xd63e9e+_0x280c83,_0xd63e9e&=_0xd63e9e;}}function _0x4bbd6b(_0x468373){Array[_0x577408([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x468373)?_0x468373[_0x577408([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bbd6b):_0x468373&&typeof _0x468373==_0x577408([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x577408([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x468373)[_0x577408([0x73,0x6f,0x72,0x74])]()[_0x577408([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b9531,_0x1418f3])=>{_0x29e336(_0x2b9531),_0x4bbd6b(_0x1418f3);}):_0x29e336(window[_0x577408([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x468373));}return _0x4bbd6b(_0x1215a8),_0xd63e9e>>>0x0;}function _0x38103d(_0xecc604){return _0xecc604[_0x577408([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x577408([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x577408([0x30]));}function _0x185c49(_0x4c89bf){return _0x4c89bf[_0x577408([0x73,0x70,0x6c,0x69,0x74])]('')[_0x577408([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x577408([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fdb17(_0x238925){return _0x1a42a2[_0x577408([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x577408([0x68,0x61,0x73])](_0x238925);}function _0x318f5d(_0x2d7cd0){return _0x1a42a2[_0x577408([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x577408([0x67,0x65,0x74])](_0x2d7cd0);}function _0x5d41a5(){}function _0x577408(_0x95d474){return _0x95d474['map'](_0x56ebbb=>String['fromCharCode'](_0x56ebbb))['join']('');}_0x352c3a(await _0x141840());}(this);}set['adapter'](_0x3cdf25){if(this['_adapter'])throw new _0x5258bf('track-changes-adapter-already-set',this);this['_adapter']=_0x3cdf25;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2b2e5f=!0x1,toJSON:_0x494771=!0x1}={}){const _0x37c3f6=[];for(const _0x120ff9 of this['_suggestions']['values']())_0x2b2e5f&&!_0x120ff9['isInContent']||_0x37c3f6['push'](_0x120ff9);return _0x494771?_0x37c3f6['map'](_0x114db2=>_0x114db2['toJSON']()):_0x37c3f6;}['getSuggestion'](_0x270bed){const _0x41ee31=this['_suggestions']['get'](_0x270bed);if(!_0x41ee31)throw new _0x5258bf('track-changes-suggestion-not-found',this);return _0x41ee31;}['hasSuggestion'](_0x5857eb){return this['_suggestions']['has'](_0x5857eb);}['addSuggestionData'](_0x55c4f6){const {authorId:_0x54ef7f,id:_0x391c7b,originalSuggestionId:_0x58a2bc,attributes:_0x25959a}=_0x55c4f6,[_0xa1830,_0x298fd6]=_0x55c4f6['type']['split'](':'),_0xa16dc3=this['_suggestions']['get'](_0x391c7b)||this['_createSuggestion'](_0xa1830,_0x298fd6,_0x391c7b,_0x54ef7f,_0x25959a,_0x58a2bc);if(this['_addThreadToSuggestion'](_0xa16dc3),this['_checkSuggestionCorrectness'](_0xa16dc3,_0xa1830,_0x298fd6||null,_0x54ef7f),_0xa16dc3['createdAt']=_0x55c4f6['createdAt'],_0xa16dc3['_isDataLoaded']=!0x0,_0x25959a&&_0x25959a['@external']){const _0x383236=_0x25959a['@external'],_0x3a6758=this['_getExternalAuthor'](_0x383236['authorName']);_0xa16dc3['authoredAt']=_0x383236['createdAt'],_0xa16dc3['author']=_0x3a6758,_0xa16dc3['isExternal']=!0x0;}else _0xa16dc3['authoredAt']=_0x55c4f6['createdAt'];switch(_0x55c4f6['data']&&(_0xa16dc3['data']=_0x55c4f6['data']),_0x55c4f6['attributes']&&(_0xa16dc3['attributes']=_0x55c4f6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xa16dc3['_saved']=!0x0),this['_suggestionState']['get'](_0xa16dc3)){case'notReady':this['_suggestionState']['set'](_0xa16dc3,'dataReady');break;case'markerReady':_0xa16dc3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xa16dc3])),this['_refreshSuggestionsChain'](new Set([_0xa16dc3])),this['_suggestionState']['set'](_0xa16dc3,'ready'),this['fire']('suggestionLoaded',_0xa16dc3)):this['_suggestionState']['set'](_0xa16dc3,'removed');}return _0xa16dc3;}['acceptSuggestion'](_0x17bc94){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x157095 of _0x17bc94['getAllAdjacentSuggestions']())_0x157095['accept']();});});}['discardSuggestion'](_0xc5918b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x555c2b of _0xc5918b['getAllAdjacentSuggestions']())_0x555c2b['discard']();});});}['enableCommand'](_0x222634,_0x32adf9){const _0x35a46b=this['editor']['commands']['get'](_0x222634);if(!_0x35a46b)throw new _0x5258bf('track-changes-command-not-found',this,{'commandName':_0x222634});if(this['_enabledCommands']['has'](_0x35a46b))throw new _0x5258bf('track-changes-enable-command-twice',this,{'commandName':_0x222634});this['_enabledCommands']['add'](_0x35a46b),_0x32adf9&&_0x35a46b['on']('execute',(_0x1a1878,_0x48c15c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x48c15c['length']>0x0&&_0x48c15c[_0x48c15c['length']-0x1]&&_0x48c15c[_0x48c15c['length']-0x1]['forceDefaultExecution']?_0x48c15c['pop']():(_0x1a1878['return']=_0x32adf9((..._0xef30d5)=>_0x35a46b['execute'](..._0xef30d5,{'forceDefaultExecution':!0x0}),..._0x48c15c),_0x1a1878['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xa19cd){let _0x177bc4,_0x54fdc1;const _0x302047=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x177bc4=_0xa19cd();}catch(_0x45d3b2){_0x54fdc1=_0x45d3b2;}return _0x302047||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x54fdc1&&_0x5258bf['rethrowUnexpectedError'](_0x54fdc1,this),_0x177bc4;}['markInsertion'](_0x1997af,_0x49e17c=null,_0x59ea2d={}){if(_0x1997af['isCollapsed'])return null;const _0x47708f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x59ea2d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa46b,meta:_0x4f1e67}of this['_findSuggestions'](_0x1997af,'insertion'))if(_0x4f1e67['isOwn']){if(!_0x4f1e67['isNextTo']){if(_0x4f1e67['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!se(_0xa46b,_0x59ea2d))continue;return _0xa46b;}if(se(_0xa46b,_0x59ea2d))return _0xa46b;this['_breakSuggestionMarker'](_0xa46b,_0x1997af['start'],_0x1997af['end']);break;}if(_0x49e17c==_0xa46b['subType']&&se(_0xa46b,_0x59ea2d)){const _0x1fdfd1=_0xa46b['getFirstRange']();return _0x1fdfd1['start']['isEqual'](_0x1997af['end'])?this['_setSuggestionRange'](_0xa46b,this['_model']['createRange'](_0x1997af['start'],_0x1fdfd1['end'])):this['_setSuggestionRange'](_0xa46b,this['_model']['createRange'](_0x1fdfd1['start'],_0x1997af['end'])),_0xa46b;}}const _0x513343=_0x4fda17(),_0x1abba3=_0x47708f['id'],_0xe9e6a7=_0x49e17c?'insertion:'+_0x49e17c:'insertion',_0x23e035=this['_setSuggestionData']({'id':_0x513343,'type':_0xe9e6a7,'createdAt':new Date(),'authorId':_0x1abba3,'attributes':_0x59ea2d});return this['_addSuggestionMarker'](_0xe9e6a7,_0x513343,_0x1abba3,_0x1997af),_0x23e035;}['markMultiRangeInsertion'](_0x336b73,_0x15f13f='multi',_0x1f0081={}){const _0x3543ff=this['editor']['plugins']['get']('Users')['me'],_0x838cda=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x15f13f,'join');this['_trackingSessionId']&&(_0x1f0081['trackingSessionId']=this['_trackingSessionId']);for(const _0x3e144c of this['getSuggestions']())if(_0x3e144c['author']['id']==_0x3543ff['id']&&'insertion'==_0x3e144c['type']&&_0x3e144c['subType']==_0x15f13f&&se(_0x3e144c,_0x1f0081)&&(_0x838cda(_0x3e144c['getRanges'](),_0x336b73)||_0x838cda(_0x336b73,_0x3e144c['getRanges']()))){for(const _0x548dd7 of _0x336b73)_0x3e144c['addRange'](_0x548dd7);return _0x3e144c;}for(const {suggestion:_0x52db82,meta:_0x3a6346}of this['_findSuggestions'](_0x336b73,'insertion')){if(!_0x3a6346['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3a6346['containsRangeInObject'])continue;if(!se(_0x52db82,_0x1f0081))continue;let _0x3b2c8c=!0x0;for(const _0x22a58e of _0x52db82['getRanges']())for(const _0xf2b50c of _0x336b73)if(!_0x22a58e['containsRange'](_0xf2b50c)){_0x3b2c8c=!0x1;break;}if(_0x3b2c8c)return _0x52db82;}const _0x3bf41c=_0x4fda17(),_0x30c1d2=_0x3543ff['id'],_0x1fd755='insertion:'+_0x15f13f,_0x267380=this['_setSuggestionData']({'id':_0x3bf41c,'type':_0x1fd755,'createdAt':new Date(),'authorId':_0x30c1d2,'attributes':_0x1f0081});for(const _0x3d48d8 of _0x336b73)this['_addSuggestionMarker'](_0x1fd755,_0x3bf41c,_0x30c1d2,_0x3d48d8,R['getMultiRangeId']());return _0x267380;}['markInlineFormat'](_0x181ccd,_0x4d4c67,_0x2507aa=null,_0x6036c7={}){if(_0x2507aa=_0x2507aa||zt(_0x4d4c67),_0x181ccd['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x6036c7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e8a7e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2507aa,'accept');return this['forceDefaultExecution'](()=>_0x3e8a7e([_0x181ccd],_0x4d4c67,_0x6036c7)),null;}const _0x5e121c=this['editor']['plugins']['get']('Users')['me'],_0x19534c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x12b202,meta:_0x4eb64c}of this['_findSuggestions'](_0x181ccd,'insertion'))_0x4eb64c['isOwn']&&!_0x4eb64c['isInsideObject']&&_0x19534c['push'](..._0x12b202['getRanges']());}const _0x5a6ec7=function(_0x34bd75,_0x1135ea){const _0x4d82fc=[];for(const _0x10b299 of _0x1135ea){const _0x49585f=_0x34bd75['getIntersection'](_0x10b299);_0x49585f&&_0x4d82fc['push'](_0x49585f);}return _0x4d82fc;}(_0x181ccd,_0x19534c),_0x1610c2=function(_0x17b651,_0x598e58){const _0x53695=[_0x17b651];for(const _0x4b3388 of _0x598e58){let _0xe1dfb8=0x0;for(;_0xe1dfb8<_0x53695['length'];){const _0x5a3fc8=_0x53695[_0xe1dfb8]['getDifference'](_0x4b3388);_0x53695['splice'](_0xe1dfb8,0x1,..._0x5a3fc8),_0xe1dfb8+=_0x5a3fc8['length'];}}return _0x53695;}(_0x181ccd,_0x19534c);_0x5a6ec7['length']&&this['_model']['change'](()=>{for(const _0x2129fc of _0x5a6ec7){const _0x1c64e3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2507aa,'accept');this['forceDefaultExecution'](()=>_0x1c64e3([_0x2129fc],_0x4d4c67,_0x6036c7));}});for(const _0x2f7e44 of _0x1610c2){let _0xd17ad0=null,_0x2a9036=_0x2f7e44['start'],_0x186675=_0x2f7e44['end'];for(const {suggestion:_0x3c20ef,meta:_0x1142e}of this['_findSuggestions'](_0x2f7e44,'formatInline')){if(!_0x1142e['isOwn'])continue;if(_0x3c20ef['subType']!=_0x2507aa)continue;if(!se(_0x3c20ef,_0x6036c7))continue;const _0x1e4e42=_0x3c20ef['getFirstRange']();if(_0x1e4e42['containsRange'](_0x2f7e44,!0x0))return null;_0x2a9036=_0x2a9036['isBefore'](_0x1e4e42['start'])?_0x2a9036:_0x1e4e42['start'],_0x186675=_0x186675['isAfter'](_0x1e4e42['end'])?_0x186675:_0x1e4e42['end'],_0xd17ad0?_0x1e4e42['start']['isBefore'](_0xd17ad0['getFirstRange']()['start'])?(_0xd17ad0['removeMarkers'](),_0xd17ad0=_0x3c20ef):_0x3c20ef['removeMarkers']():_0xd17ad0=_0x3c20ef;}const _0x1a76fa=this['_model']['createRange'](_0x2a9036,_0x186675);if(_0xd17ad0)this['_setSuggestionRange'](_0xd17ad0,_0x1a76fa);else{const _0xfbf9be=_0x4fda17(),_0x2d50ed=_0x5e121c['id'];this['_setSuggestionData']({'id':_0xfbf9be,'type':'formatInline:'+_0x2507aa,'data':_0x4d4c67,'createdAt':new Date(),'authorId':_0x2d50ed,'attributes':_0x6036c7}),this['_addSuggestionMarker']('formatInline:'+_0x2507aa,_0xfbf9be,_0x2d50ed,_0x1a76fa);}}return null;}['markBlockFormat'](_0x4a47b4,_0x1458f0,_0x585512=[],_0x1c3dc1=null,_0xf66ac5={}){_0x1458f0['formatGroupId']||(_0x1458f0['formatGroupId']=_0x1458f0['commandName']),_0x1458f0['multipleBlocks']=_0x4a47b4['is']('range'),_0x1c3dc1=_0x1c3dc1||zt(_0x1458f0);const _0x427f87=_0x585512['map'](_0x4c9e62=>ee(_0x4c9e62,this['_model'])),_0x50703a=_0x4a47b4['is']('range')?_0x4a47b4:ee(_0x4a47b4,this['_model']);if(this['_trackingSessionId']&&(_0xf66ac5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x333f6b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c3dc1,'accept');return this['forceDefaultExecution'](()=>_0x333f6b([_0x50703a],_0x1458f0,_0xf66ac5)),null;}_0x427f87['push'](_0x50703a);let _0x2d642d=!0x0;for(const _0x4b65ef of _0x427f87)if(!this['_rangeIsInLocalUserInsertion'](_0x4b65ef)){_0x2d642d=!0x1;break;}if(_0x2d642d&&'always'!==this['_trackFormatChanges']){const _0x282a83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c3dc1,'accept');return this['forceDefaultExecution'](()=>_0x282a83([_0x50703a],_0x1458f0,_0xf66ac5)),null;}let _0x301a7d=null,_0x5c2476=_0x50703a['start'],_0x4e4498=_0x50703a['end'];for(const {suggestion:_0x1361bb,meta:_0x2c8a95}of this['_findSuggestions'](_0x50703a,'formatBlock')){if(!_0x2c8a95['isOwn'])continue;if(_0x2c8a95['isNextTo']||_0x2c8a95['containsRangeInObject']||_0x2c8a95['isInsideObject'])continue;if(_0x1361bb['data']['formatGroupId']!=_0x1458f0['formatGroupId'])continue;if(!se(_0x1361bb,_0xf66ac5))continue;const _0x52d722=_0x1361bb['getFirstRange']();if(_0x1361bb['subType']==_0x1c3dc1){if(_0x52d722['containsRange'](_0x50703a,!0x0))return null;_0x5c2476=_0x5c2476['isBefore'](_0x52d722['start'])?_0x5c2476:_0x52d722['start'],_0x4e4498=_0x4e4498['isAfter'](_0x52d722['end'])?_0x4e4498:_0x52d722['end'],_0x301a7d?_0x52d722['start']['isBefore'](_0x301a7d['getFirstRange']()['start'])?(_0x301a7d['removeMarkers'](),_0x301a7d=_0x1361bb):_0x1361bb['removeMarkers']():_0x301a7d=_0x1361bb;}else{const _0xb52646=_0x50703a['getIntersection'](_0x52d722);this['_cutOutSuggestionMarker'](_0x1361bb,_0xb52646);}}const _0x4d7591=this['editor']['plugins']['get']('Users')['me'],_0x482f70=_0x4fda17(),_0x426124=_0x4d7591['id'];if(_0x301a7d)return this['_setSuggestionRange'](_0x301a7d,this['_model']['createRange'](_0x5c2476,_0x4e4498)),_0x301a7d;{const _0x3fbb17=this['_setSuggestionData']({'id':_0x482f70,'type':'formatBlock:'+_0x1c3dc1,'data':_0x1458f0,'createdAt':new Date(),'authorId':_0x426124,'attributes':_0xf66ac5});return this['_addSuggestionMarker']('formatBlock:'+_0x1c3dc1,_0x482f70,_0x426124,this['_model']['createRange'](_0x5c2476,_0x4e4498)),_0x3fbb17;}}['markMultiRangeBlockFormat'](_0x50576f,_0x3f8b2e,_0x40d40b=[],_0x5bb4b2=null,_0x369f34={}){_0x3f8b2e['formatGroupId']||(_0x3f8b2e['formatGroupId']=_0x3f8b2e['commandName']);const _0x4e6aab=_0x50576f[0x0];_0x3f8b2e['multipleBlocks']=_0x4e6aab['is']('range'),_0x5bb4b2=_0x5bb4b2||zt(_0x3f8b2e);const _0x5d61d9=_0x40d40b['map'](_0x78dbcb=>ee(_0x78dbcb,this['_model'])),_0x3e80e0=_0x4e6aab['is']('range')?_0x50576f:_0x50576f['map'](_0x59b897=>ee(_0x59b897,this['_model']));if(this['_trackingSessionId']&&(_0x369f34['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3f6420=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb4b2,'accept');return this['forceDefaultExecution'](()=>_0x3f6420(_0x3e80e0,_0x3f8b2e,_0x369f34)),null;}_0x5d61d9['push'](..._0x3e80e0);let _0x307e5b=!0x0;for(const _0x502f13 of _0x5d61d9)if(!this['_rangeIsInLocalUserInsertion'](_0x502f13)){_0x307e5b=!0x1;break;}if(_0x307e5b&&'always'!==this['_trackFormatChanges']){const _0x114f5c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb4b2,'accept');return this['forceDefaultExecution'](()=>_0x114f5c(_0x3e80e0,_0x3f8b2e,_0x369f34)),null;}const _0x9a5bad=this['editor']['plugins']['get']('Users')['me'];for(const _0x1ce488 of this['getSuggestions']()){const _0xc48f8d=_0x1ce488['data'];if(_0x1ce488['author']['id']!=_0x9a5bad['id'])continue;if('formatBlock'!=_0x1ce488['type']||_0xc48f8d['formatGroupId']!=_0x3f8b2e['formatGroupId'])continue;if(!se(_0x1ce488,_0x369f34))continue;const _0x2379a1=_0x1ce488['subType']==_0x5bb4b2;for(let _0x358e3d=0x0;_0x358e3d<_0x3e80e0['length'];_0x358e3d++){const _0x2155a7=_0x3e80e0[_0x358e3d];for(const _0x2d55c4 of _0x1ce488['getMarkers']()){const _0x2d7dc5=_0x2d55c4['getRange']();if(_0x2155a7['isEqual'](_0x2d7dc5)){_0x2379a1?(_0x3e80e0['splice'](_0x358e3d,0x1),_0x358e3d--):_0x1ce488['removeMarker'](_0x2d55c4['name']);break;}}}}if(0x0==_0x3e80e0['length'])return null;const _0x4f543b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb4b2,'join');for(const _0x2e1c18 of this['getSuggestions']()){const _0x1d045b=_0x2e1c18['data'];if(_0x2e1c18['author']['id']==_0x9a5bad['id']&&('formatBlock'==_0x2e1c18['type']&&_0x1d045b['formatGroupId']==_0x3f8b2e['formatGroupId']&&_0x2e1c18['subType']==_0x5bb4b2&&se(_0x2e1c18,_0x369f34)&&(_0x4f543b(_0x2e1c18['getRanges'](),_0x3e80e0)||_0x4f543b(_0x3e80e0,_0x2e1c18['getRanges']())))){for(const _0x155088 of _0x3e80e0)_0x2e1c18['addRange'](_0x155088);return _0x2e1c18;}}const _0x1de1ea=_0x4fda17(),_0x120c28=_0x9a5bad['id'],_0x53b034='formatBlock:'+_0x5bb4b2,_0x4a228e=this['_setSuggestionData']({'id':_0x1de1ea,'type':_0x53b034,'data':_0x3f8b2e,'createdAt':new Date(),'authorId':_0x120c28,'attributes':_0x369f34});for(const _0x1768ff of _0x3e80e0)this['_addSuggestionMarker'](_0x53b034,_0x1de1ea,_0x120c28,_0x1768ff,R['getMultiRangeId']());return _0x4a228e;}['markDeletion'](_0x46b5ac,_0x2c32b2=null,_0x59248e={}){if(_0x46b5ac['isCollapsed'])return null;const _0x5a85ab=this['editor']['plugins']['get']('Users')['me'],_0x309305=new _0x1c1121(_0x46b5ac['start'],_0x46b5ac['end']);this['_trackingSessionId']&&(_0x59248e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17db45,meta:_0x25cc44}of this['_findSuggestions'](_0x309305,'insertion'))if(_0x25cc44['isOwn']&&!_0x25cc44['isNextTo']){if(_0x17db45['isMultiRange']){const _0x50fd56=_0x17db45['getRanges']()['filter'](_0x25cc76=>'$graveyard'!=_0x25cc76['root']['rootName']);_0x50fd56['every'](_0x448cf1=>_0x309305['containsRange'](_0x448cf1,!0x0))&&_0x17db45['discard']();if(_0x50fd56['some'](_0x1cd464=>_0x1cd464['containsRange'](_0x309305,!0x0))){const _0x25c519=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c32b2,'accept');return this['forceDefaultExecution'](()=>_0x25c519([_0x309305],null,_0x59248e)),null;}}else{const _0x4d3994=_0x309305['getIntersection'](_0x17db45['getFirstRange']());null!==_0x4d3994&&_0x17db45['_onDiscard']([_0x4d3994],null,_0x59248e);}}if(_0x309305['detach'](),_0x309305['isCollapsed']||'$graveyard'==_0x309305['root']['rootName'])return null;let _0x316183=null,_0x76859=_0x309305['start'],_0x1b968d=_0x309305['end'];const _0x144109=this['_findSuggestions'](_0x309305,'deletion');for(const {suggestion:_0x548d03,meta:_0x534995}of _0x144109){const _0x1ff94f=this['_model']['createRange'](_0x76859,_0x1b968d);if(_0x534995['isOwn']&&(this['_mergeNestedSuggestions']||!_0x534995['containsRangeInObject']&&!_0x534995['isInsideObject'])){if(_0x548d03['isMultiRange']){if(!se(_0x548d03,_0x59248e))continue;let _0x45f80f=!0x0;for(const _0x4c1ae2 of _0x548d03['getRanges']()){if(_0x4c1ae2['containsRange'](_0x1ff94f,!0x0))return _0x548d03;_0x1ff94f['containsRange'](_0x4c1ae2)||(_0x45f80f=!0x1);}_0x45f80f&&_0x548d03['discard']();}else{const _0x2b2605=_0x548d03['getFirstRange']();if(_0x2b2605['containsRange'](_0x1ff94f,!0x0))return _0x548d03;if(!se(_0x548d03,_0x59248e)){_0x1ff94f['containsRange'](_0x2b2605)?_0x548d03['removeMarkers']():_0x2b2605['containsPosition'](_0x76859)?_0x76859=_0x2b2605['end']:_0x2b2605['containsPosition'](_0x1b968d)&&(_0x1b968d=_0x2b2605['start']);continue;}_0x76859=_0x76859['isBefore'](_0x2b2605['start'])?_0x76859:_0x2b2605['start'],_0x1b968d=_0x1b968d['isAfter'](_0x2b2605['end'])?_0x1b968d:_0x2b2605['end'],_0x59248e=Object['assign']({},_0x548d03['attributes']),_0x316183?_0x2b2605['start']['isBefore'](_0x316183['getFirstRange']()['start'])?(_0x316183['removeMarkers'](),_0x316183=_0x548d03):_0x548d03['removeMarkers']():_0x316183=_0x548d03;}}}if(_0x316183)return this['_setSuggestionRange'](_0x316183,this['_model']['createRange'](_0x76859,_0x1b968d)),_0x316183;{const _0x4fbaa6=_0x4fda17(),_0x21def5=this['_model']['createRange'](_0x76859,_0x1b968d),_0x4e4b06=_0x5a85ab['id'],_0x1f910d=_0x2c32b2?'deletion:'+_0x2c32b2:'deletion',_0xe91a34=this['_setSuggestionData']({'id':_0x4fbaa6,'type':_0x1f910d,'createdAt':new Date(),'authorId':_0x4e4b06,'attributes':_0x59248e});return this['_addSuggestionMarker'](_0x1f910d,_0x4fbaa6,_0x4e4b06,_0x21def5),_0xe91a34;}}['markMultiRangeDeletion'](_0x4c6717,_0x4bb7a3='multi',_0x45a255={}){const _0x5e04e7=this['editor']['plugins']['get']('Users')['me'],_0x1b35c9=_0x4c6717['map'](_0x490bad=>new _0x1c1121(_0x490bad['start'],_0x490bad['end'])),_0x2a8e4b=new Set();this['_trackingSessionId']&&(_0x45a255['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x80d19a,meta:_0x572024}of this['_findSuggestions'](_0x1b35c9,'insertion'))_0x572024['isOwn']&&!_0x572024['isNextTo']&&_0x2a8e4b['add'](_0x80d19a);for(const _0x429c56 of _0x2a8e4b)if(_0x429c56['isMultiRange']){const _0x56fdce=_0x429c56['getRanges']();(!_0x429c56['attributes']||!_0x429c56['attributes']['skipNestingCheck'])&&(_0x56fdce['every'](_0x417a4a=>_0x1b35c9['some'](_0x40c443=>_0x40c443['containsRange'](_0x417a4a,!0x0)))&&_0x429c56['discard']());if(_0x1b35c9['every'](_0x656bff=>_0x56fdce['some'](_0x57553a=>_0x57553a['containsRange'](_0x656bff,!0x0)))){const _0x5a4701=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb7a3,'accept');return this['forceDefaultExecution'](()=>_0x5a4701(_0x4c6717,null,_0x45a255)),null;}}else{const _0x17efe3=_0x429c56['getFirstRange']();_0x1b35c9['some'](_0x2a42e0=>_0x2a42e0['containsRange'](_0x17efe3,!0x0))&&_0x429c56['discard']();if(_0x1b35c9['every'](_0x2b9aa3=>_0x17efe3['containsRange'](_0x2b9aa3,!0x0))){const _0x244022=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb7a3,'accept');return this['forceDefaultExecution'](()=>_0x244022(_0x1b35c9,null,_0x45a255)),null;}}const _0x483e19=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb7a3,'join');let _0x5ecd64=null;for(const _0x71abf6 of this['getSuggestions']())if(_0x71abf6['author']['id']==_0x5e04e7['id']&&_0x71abf6['isInContent']&&'deletion'==_0x71abf6['type']&&_0x71abf6['subType']==_0x4bb7a3&&se(_0x71abf6,_0x45a255)&&(_0x483e19(_0x71abf6['getRanges'](),_0x1b35c9)||_0x483e19(_0x1b35c9,_0x71abf6['getRanges']()))){if(_0x5ecd64){if(_0x71abf6['commentThread']&&_0x71abf6['commentThread']['length'])continue;for(const _0x4302cf of _0x71abf6['getRanges']())_0x5ecd64['isIntersectingWithRange'](_0x4302cf)||_0x5ecd64['addRange'](_0x4302cf);_0x71abf6['removeMarkers']();}else{_0x5ecd64=_0x71abf6;for(const _0x575b17 of _0x1b35c9)_0x71abf6['isIntersectingWithRange'](_0x575b17)||_0x71abf6['addRange'](_0x575b17);}}if(_0x5ecd64)return _0x5ecd64;_0x2a8e4b['clear']();for(const {suggestion:_0x36dbc1,meta:_0x114097}of this['_findSuggestions'](_0x1b35c9,'deletion'))_0x114097['isOwn']&&(this['_mergeNestedSuggestions']||!_0x114097['containsRangeInObject']&&!_0x114097['isInsideObject'])&&se(_0x36dbc1,_0x45a255)&&_0x2a8e4b['add'](_0x36dbc1);for(const _0x17d04b of _0x2a8e4b){const _0x396a6f=_0x17d04b['getRanges']();if(!_0x45a255||!_0x45a255['skipNestingCheck']){if(_0x1b35c9['every'](_0x30a3e3=>_0x396a6f['some'](_0x12324b=>_0x12324b['containsRange'](_0x30a3e3,!0x0))))return _0x17d04b;}(!_0x17d04b['attributes']||!_0x17d04b['attributes']['skipNestingCheck'])&&(_0x396a6f['every'](_0x58ba09=>_0x1b35c9['some'](_0x214140=>_0x214140['containsRange'](_0x58ba09,!0x0)))&&_0x17d04b['discard']());}const _0x4a4bb1=_0x4fda17(),_0x13b422=_0x5e04e7['id'],_0x3eb055='deletion:'+_0x4bb7a3,_0x197c08=this['_setSuggestionData']({'id':_0x4a4bb1,'type':_0x3eb055,'createdAt':new Date(),'authorId':_0x13b422,'attributes':_0x45a255});for(const _0x2110e8 of _0x1b35c9)_0x2110e8['detach'](),_0x2110e8['isCollapsed']||'$graveyard'==_0x2110e8['root']['rootName']||this['_addSuggestionMarker'](_0x3eb055,_0x4a4bb1,_0x13b422,_0x2110e8,R['getMultiRangeId']());return _0x197c08;}['markAttributeChange'](_0x77fa3c,_0x5da9f9,_0x3e3d95,_0x3c306b,_0x39d3fa){if(_0x77fa3c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1f8a2b=this['editor']['plugins']['get']('Users')['me']['id'],_0x470730=Array['from'](this['_suggestions']['values']())['filter'](_0x19b7d6=>'attribute'==_0x19b7d6['type']&&_0x19b7d6['data']['key']==_0x5da9f9&&_0x19b7d6['isIntersectingWithRange'](_0x77fa3c));if(this['_trackingSessionId']&&(_0x39d3fa['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xa534a7=this['_findSuggestions'](_0x77fa3c,'insertion')['filter'](({meta:_0x34561d})=>_0x34561d['isOwn']&&!_0x34561d['isInsideObject']&&!_0x34561d['isNextTo'])['map'](({suggestion:_0x1902ea})=>_0x1902ea);_0x470730['unshift'](..._0xa534a7);}const _0x3a96b9=new Map([[_0x77fa3c,_0x3e3d95]]);for(const _0x4426be of _0x470730){const _0x196177='attribute'==_0x4426be['type']?_0x4426be['data']['oldValue']:void 0x0,_0x45dd1a=_0x4426be['getFirstRange'](),_0x15fbd3=Array['from'](_0x3a96b9['keys']())['find'](_0x625e40=>_0x625e40['isIntersecting'](_0x45dd1a));if(!_0x15fbd3)continue;const _0x1954e1=_0x15fbd3['getDifference'](_0x45dd1a);this['_isBlockAttribute'](_0x5da9f9)&&'insertion'==_0x4426be['type']&&0x0!=_0x1954e1['length']||(_0x3a96b9['delete'](_0x15fbd3),_0x1954e1['forEach'](_0xdd7ddc=>{_0x3a96b9['set'](_0xdd7ddc,_0x3e3d95);}),'insertion'!=_0x4426be['type']&&_0x196177!=_0x3c306b&&_0x3a96b9['set'](_0x15fbd3['getIntersection'](_0x45dd1a),_0x196177));}const _0x3505c9=[];for(const [_0x17e656,_0x1f2d48]of _0x3a96b9){const _0x3c8951=_0x4fda17(),_0x2f8a0b={'key':_0x5da9f9,'oldValue':_0x1f2d48,'newValue':_0x3c306b};_0x5da9f9['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':_0x5da9f9});const _0x52a262=('attribute:'+(_0x5da9f9+'|'+zt({'newValue':_0x3c306b})))['substring'](0x0,0x3c),_0x1c81d1=this['_setSuggestionData']({'id':_0x3c8951,'type':_0x52a262,'data':_0x2f8a0b,'createdAt':new Date(),'authorId':_0x1f8a2b,'attributes':_0x39d3fa});_0x3505c9['push'](_0x1c81d1),this['_addSuggestionMarker'](_0x52a262,_0x3c8951,_0x1f8a2b,_0x17e656);}return _0x3505c9;}['enableDefaultAttributesIntegration'](_0x282da4){this['enableCommand'](_0x282da4,(_0x2ede95,..._0x5a20c4)=>{this['recordAttributeChanges'](()=>{_0x2ede95(..._0x5a20c4);});});}['registerBlockAttribute'](_0x553fc9){this['_blockAttributeKeys']['add'](_0x553fc9);}['registerInlineAttribute'](_0x39dc1c){this['_inlineAttributeKeys']['add'](_0x39dc1c);}['startTrackingSession'](_0x46ec36){return this['_trackingSessionId']=void 0x0!==_0x46ec36?_0x46ec36:_0x4fda17(),this['_trackingSessionId'];}['_getAttributeKey'](_0x179a67){return'attribute'==_0x179a67['type']?re(_0x179a67['subType']):null;}['_applyOperationsAsSuggestions'](_0x2d9a4f){if(0x0==_0x2d9a4f['length'])return;const _0x2ae954=this['editor'],_0x1ed815=_0x2ae954['plugins']['get'](_0x21ae29);let _0x32b974,_0x4bf6a2=!0x0;for(const _0x5cbe09 in _0x2d9a4f[0x0]){const _0x2881ae=_0x2d9a4f[0x0][_0x5cbe09];if((_0x2881ae instanceof _0x46543f||_0x2881ae instanceof _0x22f94c)&&_0x2881ae['root']['is']('documentFragment')){_0x4bf6a2=!0x1,_0x32b974=_0x2881ae['root'];break;}}_0x2ae954['model']['change'](_0x317bc8=>{const _0x144670=new Set();for(let _0x100216=0x0;_0x100216<_0x2d9a4f['length'];_0x100216++){const _0xb6d9f6=_0x2d9a4f[_0x100216];if(_0xb6d9f6['baseVersion']=_0x4bf6a2?_0x2ae954['model']['document']['version']:null,_0xb6d9f6['isDocumentOperation']=_0x4bf6a2,_0x1ed815['isMarkedRemoveOperation'](_0xb6d9f6)){const _0x5eaf2d=Zt(_0xb6d9f6['newRange'],_0x2ae954['model']);if(_0x4bf6a2)this['markDeletion'](_0x5eaf2d);else{const _0x74c6b3='suggestion:deletion:'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0x74c6b3,_0x5eaf2d);}}else switch(_0xb6d9f6['type']){case'rename':{const _0x46d53a=_0xb6d9f6['oldName'],_0x2d67ac=_0xb6d9f6['newName'];if(_0x46d53a==_0x2d67ac)break;_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6);const _0x12e3c2='$elementName',_0x1f7964=_0xb6d9f6['position'],_0x376825=_0x2ae954['model']['createRange'](_0x1f7964,_0x2ae954['model']['createPositionAt'](_0x1f7964['nodeAfter'],'end'));if(_0x4bf6a2)this['markAttributeChange'](_0x376825,_0x12e3c2,_0x46d53a,_0x2d67ac,{'groupId':_0x4fda17()});else{const _0x2f672b='suggestion:attribute:'+_0x12e3c2+':'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0x2f672b,_0x376825);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4ba700=_0xb6d9f6['oldValue'],_0x27a846=_0xb6d9f6['newValue'];if(_0x4ba700==_0x27a846)break;_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6);const _0x565da4=_0xb6d9f6['key'];if(!this['_isRegisteredAttribute'](_0x565da4))break;const _0xb2ae58=Zt(_0xb6d9f6['range'],_0x2ae954['model']);if(_0x4bf6a2)this['markAttributeChange'](_0xb2ae58,_0x565da4,_0x4ba700,_0x27a846,{'groupId':_0x4fda17()});else{const _0x49824a='suggestion:attribute:'+_0x565da4+':'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0x49824a,_0xb2ae58);}break;}case'insert':{_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6);const _0x1c02e4=_0x2d9a4f[_0x100216+0x1]&&'move'==_0x2d9a4f[_0x100216+0x1]['type'];if(!_0x4bf6a2&&_0x1c02e4&&ae(_0x32b974,_0xb6d9f6),_0x1c02e4)break;const _0x2bc9d3=_0xb6d9f6['position'],_0x4cb369=_0xb6d9f6['howMany'],_0x71a32b=Zt(_0x2ae954['model']['createRange'](_0x2bc9d3,_0x2bc9d3['getShiftedBy'](_0x4cb369)),_0x2ae954['model']);if(_0x4bf6a2)this['markInsertion'](_0x71a32b);else{const _0xd44641='suggestion:insertion:'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0xd44641,_0x71a32b);}break;}case'split':{_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6);const _0x5b626b=_0xb6d9f6['splitPosition'],_0x147d9a=_0xb6d9f6['moveTargetPosition'],_0x12982f=_0x2ae954['model']['createRange'](_0x5b626b,_0x147d9a);if(_0x4bf6a2)this['markInsertion'](_0x2ae954['model']['createRange'](_0x5b626b,_0x147d9a));else{const _0x59d31e='suggestion:insertion:'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0x59d31e,_0x12982f);}break;}case'move':if(_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6),!_0x4bf6a2&&_0x2d9a4f[_0x100216-0x1]&&'insert'==_0x2d9a4f[_0x100216-0x1]['type']&&ae(_0x32b974,_0xb6d9f6),!_0x4bf6a2){const _0x187706=_0xb6d9f6['getMovedRangeStart'](),_0x1994f2=_0xb6d9f6['howMany'];for(let _0x2d4df6=0x0;_0x2d4df6<_0x1994f2;_0x2d4df6++){const _0x1f671b=_0x187706['getShiftedBy'](_0x2d4df6)['nodeAfter'];_0x144670['add'](_0x1f671b);}}break;case'remove':if(_0x4bf6a2)_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6);else{const _0x232513=_0xb6d9f6['sourcePosition'],_0x3e9d40=_0xb6d9f6['howMany'],_0x38be3b=new _0x46f54d(_0x232513,_0x3e9d40);_0x317bc8['batch']['addOperation'](_0x38be3b),_0x2ae954['model']['applyOperation'](_0x38be3b);}}}for(const _0x2ce493 of _0x144670){const _0x3c792e=_0x2ae954['model']['createRangeOn'](_0x2ce493),_0x14c8c8='suggestion:formatBlock:$fakeWrap:'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0x14c8c8,Zt(_0x3c792e,_0x2ae954['model']));}});}['_setSuggestionRange'](_0x2380ca,_0x1e0d75){const _0x69e6f8=_0x2380ca['getFirstMarker']();this['_model']['change'](_0x38e51f=>{_0x38e51f['updateMarker'](_0x69e6f8,{'range':_0x1e0d75});});}['_addThreadToSuggestion'](_0x5b084f){const _0x4a2093=_0x5b084f['id'],_0x3049ba=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4a2093)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3049ba,'threadId':_0x4a2093,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4bc649=this['_commentsRepository']['getCommentThread'](_0x4a2093);_0x4bc649['unbind']('isRemovable'),_0x4bc649['isRemovable']=!0x1,_0x5b084f['commentThread']=_0x4bc649;}['_checkSuggestionCorrectness'](_0x44d8ee,_0x2390f3,_0x585e54,_0x982c11){if(_0x44d8ee['type']!=_0x2390f3||_0x44d8ee['subType']!=_0x585e54||_0x44d8ee['creator']['id']!=_0x982c11)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5258bf('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x197ce5,_0x5e6622){const _0x1b2a6d=_0x197ce5['getFirstRange']();if(_0x5e6622['isEqual'](_0x1b2a6d))_0x197ce5['removeMarkers']();else{if(_0x1b2a6d['containsRange'](_0x5e6622)){const _0x96616b=this['_model']['createPositionAt'](_0x5e6622['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x197ce5,this['_model']['createRange'](_0x1b2a6d['start'],_0x96616b));const _0x1df18e=_0x4fda17(),_0x96fcc6=_0x197ce5['creator']['id'],_0x371f8e=_0x197ce5['type']+':'+_0x197ce5['subType'];this['_setSuggestionData']({'id':_0x1df18e,'type':_0x371f8e,'createdAt':new Date(),'authorId':_0x96fcc6,'data':_0x197ce5['data'],'attributes':_0x197ce5['attributes']});const _0x305dd2=this['_model']['createPositionAt'](_0x5e6622['end']['parent'],'after'),_0x21f259=this['_model']['createRange'](_0x305dd2,_0x1b2a6d['end']);this['_addSuggestionMarker'](_0x371f8e,_0x1df18e,_0x96fcc6,_0x21f259);}else{if(_0x1b2a6d['containsPosition'](_0x5e6622['start'])){const _0x2634df=this['_model']['createPositionAt'](_0x5e6622['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x197ce5,this['_model']['createRange'](_0x1b2a6d['start'],_0x2634df));}else{const _0x16690a=this['_model']['createPositionAt'](_0x5e6622['end']['parent'],'after');this['_setSuggestionRange'](_0x197ce5,this['_model']['createRange'](_0x16690a,_0x1b2a6d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x152c83){for(const {suggestion:_0x4ceb42,meta:_0x11cf04}of this['_findSuggestions'](_0x152c83,'insertion')){if(!_0x11cf04['isOwn'])continue;const _0xa92b43=_0x4ceb42['getRanges']();for(const _0x67d0b0 of _0xa92b43)if(!_0x152c83['getDifference'](_0x67d0b0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4e971c){return this['editor']['plugins']['get']('Users')['getUser'](_0x4e971c);}['_getExternalAuthor'](_0x581317){const _0x5eba03=this['editor']['plugins']['get']('Users'),_0x25d24c=_0x52205a('external:'+_0x581317),_0x3fc8a4=_0x5eba03['getUser'](_0x25d24c);return _0x3fc8a4||_0x5eba03['addUser']({'id':_0x25d24c,'name':_0x581317});}['_createSuggestion'](_0x19a3ee,_0x31cd69,_0x24025a,_0x37d261,_0x3c8e78,_0x455b4a){const _0x222ea3=this['_getAuthorFromId'](_0x37d261);if(!_0x222ea3)throw new _0x5258bf('track-changes-user-not-found',this,{'authorId':_0x37d261,'suggestionId':_0x24025a});const _0x19ba9c=this['_suggestionFactory']['buildSuggestion'](_0x19a3ee,_0x31cd69,_0x24025a,_0x222ea3,_0x3c8e78,_0x348bde=>{this['_updateSuggestionData'](_0x24025a,{'attributes':_0x348bde});const _0x496658=this['getSuggestion'](_0x24025a);this['_joinWithAdjacentSuggestions'](new Set([_0x496658])),this['_refreshSuggestionsChain'](new Set([_0x496658]));},_0x455b4a);return this['listenTo'](_0x19ba9c,'accept',()=>{this['_updateSuggestionData'](_0x24025a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x19ba9c,'discard',()=>{this['_updateSuggestionData'](_0x24025a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x24025a,_0x19ba9c),this['_suggestionState']['set'](_0x19ba9c,'notReady'),_0x19ba9c;}['_splitMarkerName'](_0x56a965){const _0x37035d=_0x56a965['split'](':');return{'group':_0x37035d[0x0],'type':_0x37035d[0x1],'subType':_0x37035d['length']>=0x5?_0x37035d[0x2]:null,'id':_0x37035d['length']<0x5?_0x37035d[0x2]:_0x37035d[0x3],'authorId':_0x37035d['length']<0x5?_0x37035d[0x3]:_0x37035d[0x4],'markerCount':0x6==_0x37035d['length']?_0x37035d[0x5]:null};}['_breakSuggestionMarker'](_0x351d4d,_0x554fc6,_0x419660){const _0x19215a=_0x351d4d['getFirstRange'](),_0x24ff7a=_0x19215a['start'],_0x5eead5=_0x19215a['end'];this['_setSuggestionRange'](_0x351d4d,this['_model']['createRange'](_0x24ff7a,_0x554fc6));const _0x4a378e=_0x4fda17(),_0x5d2125=_0x351d4d['creator']['id'],_0x10a603=_0x351d4d['type']+(_0x351d4d['subType']?':'+_0x351d4d['subType']:'');this['_setSuggestionData']({'id':_0x4a378e,'type':_0x10a603,'createdAt':new Date(),'authorId':_0x5d2125,'originalSuggestionId':_0x351d4d['_originalSuggestionId']||_0x351d4d['id'],'attributes':_0x351d4d['attributes'],'data':_0x351d4d['data']});const _0x40abc2=this['_getAttributeKey'](_0x351d4d);('formatBlock'==_0x351d4d['type']||_0x40abc2&&this['_isBlockAttribute'](_0x40abc2))&&(_0x419660=this['_model']['createPositionBefore'](_0x419660['parent'])),this['_addSuggestionMarker'](_0x10a603,_0x4a378e,_0x5d2125,this['_model']['createRange'](_0x419660,_0x5eead5));}['_findSuggestions'](_0x39698b,_0x569541=null){const _0x528a95=[],_0x2e0224=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x39698b)||(_0x39698b=[_0x39698b]);for(const _0x532ef2 of this['getSuggestions']()){if(!_0x532ef2['isInContent'])continue;if(_0x569541&&_0x532ef2['type']!=_0x569541)continue;let _0x3f7460=!0x1;for(const _0x1cf18e of _0x532ef2['getRanges']()){for(const _0x9a6816 of _0x39698b){const _0x5444cc=_0x9a6816['start']['isEqual'](_0x1cf18e['end'])||_0x9a6816['end']['isEqual'](_0x1cf18e['start']);if(_0x5444cc||_0x9a6816['getIntersection'](_0x1cf18e)){const _0x29e245=_0x9a6816['containsRange'](_0x1cf18e)&&qt(this['_model']['schema'],_0x1cf18e['start'],_0x9a6816),_0x560241=_0x1cf18e['containsRange'](_0x9a6816)&&qt(this['_model']['schema'],_0x9a6816['start'],_0x1cf18e);_0x528a95['push']({'suggestion':_0x532ef2,'meta':{'isOwn':_0x2e0224==_0x532ef2['author'],'isNextTo':_0x5444cc,'isInsideObject':_0x29e245,'containsRangeInObject':_0x560241}}),_0x3f7460=!0x0;break;}}if(_0x3f7460)break;}}return _0x528a95;}['_addSuggestionMarker'](_0x352190,_0x20ed80,_0x3504d0,_0x46bbb7,_0x2653ee){this['_model']['change'](_0x51d21f=>{let _0x2744b5='suggestion:'+_0x352190+':'+_0x20ed80+':'+_0x3504d0;_0x2653ee&&(_0x2744b5=_0x2744b5+':'+_0x2653ee),_0x51d21f['addMarker'](_0x2744b5,{'range':_0x46bbb7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x171b27){const _0x1657f5=_0x171b27['previous'],_0x46a904=_0x171b27['next'];_0x171b27['previous']=null,_0x171b27['next']=null,null!=_0x1657f5&&_0x1657f5['next']==_0x171b27&&(_0x1657f5['next']=_0x46a904),null!=_0x46a904&&_0x46a904['previous']==_0x171b27&&(_0x46a904['previous']=_0x1657f5),'ready'==this['_suggestionState']['get'](_0x171b27)&&(this['_suggestionState']['set'](_0x171b27,'removed'),this['fire']('suggestionUnloaded',_0x171b27,_0x1657f5,_0x46a904));}['_setSuggestionData'](_0x360db5){const _0x4cecc7=_0x360db5['id'],_0x93e5e5=this['addSuggestionData'](_0x360db5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x53cb41=this['editor']['plugins']['get']('PendingActions'),_0x5ae008=_0x93e5e5['hasComments'],_0x3aa497=_0x93e5e5['subType']?_0x93e5e5['type']+':'+_0x93e5e5['subType']:_0x93e5e5['type'],_0x30665d=this['editor']['locale'],_0x5d78cc=_0x53cb41['add'](o(_0x30665d,'PENDING_ACTION_SUGGESTION')),_0x385664={'id':_0x4cecc7,'type':_0x3aa497,'hasComments':_0x5ae008,'data':_0x360db5['data']||null,'originalSuggestionId':_0x360db5['originalSuggestionId']||null,'attributes':_0x93e5e5['attributes']};this['_adapter']['addSuggestion'](_0x385664)['then'](_0x2861a7=>{_0x93e5e5['_saved']=!0x0,_0x53cb41['remove'](_0x5d78cc),_0x2861a7&&_0x2861a7['createdAt']&&(this['_suggestions']['get'](_0x4cecc7)['createdAt']=_0x2861a7['createdAt']);})['catch'](_0x3d1ef5=>{throw _0x166a07('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x93e5e5['discard']();}),_0x93e5e5['stopListening'](),this['_suggestions']['delete'](_0x93e5e5['id']),this['_suggestionState']['delete'](_0x93e5e5),_0x3d1ef5;});}return _0x93e5e5;}['_isBlockAttribute'](_0x2ec7a0){return this['_blockAttributeKeys']['has'](_0x2ec7a0);}['_isInlineAttribute'](_0xfcb2ca){return this['_inlineAttributeKeys']['has'](_0xfcb2ca);}['_updateSuggestionData'](_0x313ad6,_0x59c4f9){const _0x2e07db=this['editor']['plugins']['get']('PendingActions'),_0x4c0b77=this['getSuggestion'](_0x313ad6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4c0b77['_saved']){const _0x2626bc=_0x2e07db['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x313ad6,_0x59c4f9)['then'](()=>{_0x2e07db['remove'](_0x2626bc);});}else _0x4c0b77['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x313ad6,_0x59c4f9);});}}['_getSuggestionData'](_0x4ed841){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5258bf('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4ed841);}['_handleNewSuggestionMarker'](_0x47117d){const {id:_0x5a96f6,type:_0x3d724a,subType:_0x3aa567,authorId:_0x4b65c0}=this['_splitMarkerName'](_0x47117d),_0x4e1fd8=this['_suggestions']['get'](_0x5a96f6)||this['_createSuggestion'](_0x3d724a,_0x3aa567,_0x5a96f6,_0x4b65c0,{});switch(this['_checkSuggestionCorrectness'](_0x4e1fd8,_0x3d724a,_0x3aa567,_0x4b65c0),this['_suggestionState']['get'](_0x4e1fd8)){case'notReady':this['_getSuggestionData'](_0x5a96f6)['then'](_0x2a2abf=>{let _0x3a77b7=Promise['resolve']();_0x2a2abf['hasComments']&&(_0x3a77b7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a96f6})),_0x3a77b7['then'](()=>{this['addSuggestionData'](_0x2a2abf)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4e1fd8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a96f6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4e1fd8,'ready'),this['fire']('suggestionLoaded',_0x4e1fd8);break;case'ready':this['fire']('suggestionChanged',_0x4e1fd8);}return _0x4e1fd8['addMarkerName'](_0x47117d),_0x4e1fd8;}['_refreshSuggestionsChain'](_0x21e17c){const _0x5473bf=Array['from'](_0x21e17c),_0x207f8f=_0x5473bf['filter'](_0x57ec92=>'attribute'==_0x57ec92['type']);this['_refreshAttributeSuggestionsChain'](_0x207f8f);const _0x2b5912=_0x5473bf['filter'](_0x16bd1c=>!_0x16bd1c['isMultiRange']&&'attribute'!=_0x16bd1c['type']),_0x18b03f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd3e160=>!_0xd3e160['isMultiRange']&&'attribute'!=_0xd3e160['type']),_0x31609=_0x18b03f['filter'](_0x26c6ed=>!_0x21e17c['has'](_0x26c6ed)),_0x1f7b6a=new Map(_0x18b03f['map'](_0x28fb16=>[_0x28fb16,this['_suggestionFactory']['getSuggestionCallback'](_0x28fb16['type'],_0x28fb16['subType'],'chain')])),_0x56773b=new Map(_0x18b03f['map'](_0x5051b1=>[_0x5051b1,_0x5051b1['getFirstRange']()])),_0x396e73=new Set(),_0x1e9484=new Set();for(let _0x5bb098=0x0;_0x5bb098<_0x2b5912['length'];_0x5bb098++)_0x2461ce(_0x2b5912[_0x5bb098],_0x2b5912,_0x5bb098+0x1);for(let _0x4994d0=0x0;_0x4994d0<_0x2b5912['length'];_0x4994d0++)_0x2461ce(_0x2b5912[_0x4994d0],_0x31609,0x0);const _0x597037=new Set();for(let _0x32d728=0x0;_0x32d728<_0x2b5912['length'];_0x32d728++){const _0x2a68d2=_0x2b5912[_0x32d728];!_0x1e9484['has'](_0x2a68d2)&&_0x2a68d2['previous']&&(_0x597037['add'](_0x2a68d2['previous']),_0x2a68d2['previous']['next']===_0x2a68d2&&(_0x2a68d2['previous']['next']=null),_0x2a68d2['previous']=null),!_0x396e73['has'](_0x2a68d2)&&_0x2a68d2['next']&&(_0x597037['add'](_0x2a68d2['next']),_0x2a68d2['next']['previous']===_0x2a68d2&&(_0x2a68d2['next']['previous']=null),_0x2a68d2['next']=null);}function _0x2461ce(_0x8f4ee5,_0x2d5f09,_0x2407cd){for(let _0x4a5258=_0x2407cd;_0x4a5258<_0x2d5f09['length'];_0x4a5258++){const _0x5d83be=_0x3fc6f1(_0x8f4ee5,_0x2d5f09[_0x4a5258]);_0x5d83be&&(_0x5d83be[0x0]['next']=_0x5d83be[0x1],_0x5d83be[0x1]['previous']=_0x5d83be[0x0],_0x396e73['add'](_0x5d83be[0x0]),_0x1e9484['add'](_0x5d83be[0x1]));}}function _0x3fc6f1(_0x3af359,_0x423c4e){if(_0x3af359['author']['id']!==_0x423c4e['author']['id'])return null;const _0x28225a=_0x1f7b6a['get'](_0x3af359)(_0x3af359,_0x423c4e,_0x56773b['get'](_0x3af359),_0x56773b['get'](_0x423c4e));if(!_0x28225a)return null;return _0x1f7b6a['get'](_0x423c4e)(_0x3af359,_0x423c4e,_0x56773b['get'](_0x3af359),_0x56773b['get'](_0x423c4e))?_0x28225a[0x1]['commentThread']&&_0x28225a[0x1]['commentThread']['length']?null:_0x28225a:null;}_0x597037['size']&&this['_refreshSuggestionsChain'](_0x597037);}['_refreshAttributeSuggestionsChain'](_0x1e542d){if(0x0==_0x1e542d['length'])return;const _0x5e91f3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56cf58=>'attribute'==_0x56cf58['type']&&_0x56cf58['_isDataLoaded']),_0x5760da=[],_0x2e2bf8=new Map();for(const _0x22366a of _0x5e91f3){const _0x3e5c06=_0x52205a(_0x22366a['attributes']);_0x2e2bf8['has'](_0x3e5c06)||(_0x2e2bf8['set'](_0x3e5c06,_0x5760da['length']),_0x5760da['push']([]));const _0x258f31=_0x2e2bf8['get'](_0x3e5c06);_0x5760da[_0x258f31]['push'](_0x22366a);}!(function(){_0x5760da['sort']((_0x5453f1,_0x29fd07)=>{const _0x32993c=_0x5453f1[0x0]['createdAt'],_0x190799=_0x29fd07[0x0]['createdAt'];return _0x32993c==_0x190799?_0x5453f1[0x0]['attributes']['groupId']<_0x29fd07[0x0]['attributes']['groupId']?-0x1:0x1:_0x32993c<_0x190799?-0x1:0x1;});for(const _0x5f4601 of _0x5760da)_0x5f4601['sort']((_0x92aca0,_0x1758f3)=>_0x92aca0['id']<_0x1758f3['id']?-0x1:0x1);}());for(let _0x2a10fa=0x0;_0x2a10fa<_0x5760da['length'];_0x2a10fa++){if(0x0==_0x5760da[_0x2a10fa]['length'])continue;const _0x5a391b=[];for(let _0x1d068c=_0x2a10fa+0x1;_0x1d068c<_0x5760da['length'];_0x1d068c++)0x0!=_0x5760da[_0x1d068c]['length']&&_0xd40a69(_0x5760da[_0x2a10fa],_0x5760da[_0x1d068c])&&_0x5a391b['push'](_0x1d068c);for(const _0x5a01b2 of _0x5a391b)_0x5760da[_0x2a10fa]=_0x5760da[_0x2a10fa]['concat'](_0x5760da[_0x5a01b2]),_0x5760da[_0x5a01b2]=[];}for(const _0x37739c of _0x5760da)for(let _0x4ff8bb=0x0;_0x4ff8bb<_0x37739c['length'];_0x4ff8bb++){const _0x421005=_0x37739c[_0x4ff8bb+0x1]||null;_0x37739c[_0x4ff8bb]['next']!==_0x421005&&(_0x37739c[_0x4ff8bb]['next']=_0x421005);}for(const _0x522eca of _0x5760da)for(let _0x3e483c=0x0;_0x3e483c<_0x522eca['length'];_0x3e483c++){const _0x5e1561=_0x522eca[_0x3e483c-0x1]||null;_0x522eca[_0x3e483c]['previous']!==_0x5e1561&&(_0x522eca[_0x3e483c]['previous']=_0x5e1561);}function _0xd40a69(_0x134b6c,_0xa147d5){if(_0x134b6c[0x0]['attributes']['groupId']!==_0xa147d5[0x0]['attributes']['groupId']&&_0x134b6c[0x0]['author']!==_0xa147d5[0x0]['author'])return!0x1;if(!function(_0x65020,_0x258533){if(!_0x65020['hasComments']&&!_0x258533['hasComments'])return!0x0;if(_0x65020['hasComments']&&_0x258533['hasComments'])return!0x1;if(_0x65020['hasComments']&&_0x258533['createdAt']<_0x65020['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x258533['hasComments']&&_0x65020['createdAt']<_0x258533['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x134b6c[0x0],_0xa147d5[0x0]))return!0x1;const _0x589f64=Jt(_0x134b6c[0x0]['attributes'],['groupId','trackingSessionId']),_0x539775=Jt(_0xa147d5[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xa08205(_0x589f64,_0x539775))return!0x1;if(_0x134b6c[0x0]['attributes']['groupId']==_0xa147d5[0x0]['attributes']['groupId'])return!0x0;if(_0x134b6c[0x0]['attributes']['trackingSessionId']!==_0xa147d5[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x134b6c['every'](_0x3cbd56=>_0xa147d5['some'](_0x574450=>_0x3cbd56['getFirstRange']()['isEqual'](_0x574450['getFirstRange']())))&&_0xa147d5['every'](_0x1737e5=>_0x134b6c['some'](_0x4e913a=>_0x1737e5['getFirstRange']()['isEqual'](_0x4e913a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x582688){const _0x1243a4=Array['from'](_0x582688),_0x11ba0c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a10b3=_0x11ba0c['filter'](_0x237e35=>!_0x582688['has'](_0x237e35)),_0x1033c4=new Map(_0x1243a4['map'](_0x2ce4e9=>[_0x2ce4e9,this['_suggestionFactory']['getSuggestionCallback'](_0x2ce4e9['type'],_0x2ce4e9['subType'],'join')])),_0x427be2=new Map(_0x11ba0c['map'](_0x4c79bc=>[_0x4c79bc,_0x4c79bc['getRanges']()]));for(let _0x35d9c3=0x0;_0x35d9c3<_0x1243a4['length'];_0x35d9c3++){if(_0x4a613a(this,_0x1243a4[_0x35d9c3],_0x1243a4,_0x35d9c3+0x1))return!0x0;}for(let _0x1a4df9=0x0;_0x1a4df9<_0x1243a4['length'];_0x1a4df9++){if(_0x4a613a(this,_0x1243a4[_0x1a4df9],_0x5a10b3,0x0))return!0x0;}return!0x1;function _0x4a613a(_0x508dbb,_0x3bf27a,_0x153a4c,_0x43538d){for(let _0x375dd1=_0x43538d;_0x375dd1<_0x153a4c['length'];_0x375dd1++){const _0x51b31c=_0x153a4c[_0x375dd1];if(_0x51b31c['type']!==_0x3bf27a['type']||_0x51b31c['author']['id']!==_0x3bf27a['author']['id']||_0x51b31c['subType']!==_0x3bf27a['subType'])continue;if(!ne(_0x3bf27a,_0x51b31c))continue;if('attribute'==_0x3bf27a['type']&&_0x3bf27a['data']['oldValue']!=_0x51b31c['data']['oldValue'])continue;if('attribute'==_0x3bf27a['type']&&_0x508dbb['_isBlockAttribute'](_0x3bf27a['data']['key']))continue;if('formatBlock'==_0x3bf27a['type']){const _0x133f45=_0x508dbb['editor']['model'],_0x9b1709=_0x3bf27a['getContainedElement']();if(_0x9b1709&&(_0x133f45['schema']['isObject'](_0x9b1709)||_0x133f45['schema']['isLimit'](_0x9b1709)))continue;}const _0x207626=_0x1033c4['get'](_0x3bf27a),_0x4277ba=_0x427be2['get'](_0x3bf27a),_0x51c85e=_0x427be2['get'](_0x51b31c),_0x3ac9a3=_0x3bf27a['commentThread']&&_0x3bf27a['commentThread']['length'],_0x5b6598=_0x51b31c['commentThread']&&_0x51b31c['commentThread']['length'];if(!_0x3ac9a3&&_0x207626(_0x51c85e,_0x4277ba))return _0x508dbb['_joinSuggestions'](_0x51b31c,_0x3bf27a),_0x427be2['delete'](_0x3bf27a),!0x0;if(!_0x5b6598&&_0x207626(_0x4277ba,_0x51c85e))return _0x508dbb['_joinSuggestions'](_0x3bf27a,_0x51b31c),_0x427be2['delete'](_0x51b31c),!0x0;}return!0x1;}}['_joinSuggestions'](_0xe46d5a,_0x54cadc){if(_0xe46d5a['isMultiRange']){for(const _0x46694f of _0x54cadc['getRanges']())_0xe46d5a['addRange'](_0x46694f);}else{const _0x1cfe3a=_0x54cadc['getFirstRange']()['end'];this['_setSuggestionRange'](_0xe46d5a,this['_model']['createRange'](_0xe46d5a['getFirstRange']()['start'],_0x1cfe3a));}_0x54cadc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x726016,_0x4c4938,_0x4ca697){const _0x428a78=_0x726016['startsWith']('format')||_0x726016['startsWith']('attribute')?'FORMATTING':_0x726016['toUpperCase']();return o(this['editor']['locale'],_0x4c4938+'_'+_0x428a78+'_SUGGESTION_ANNOUNCEMENT',_0x4ca697);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e4e97=this['editor'];if(!_0x4e4e97['ui'])return;const {ariaLiveAnnouncer:_0x253916}=_0x4e4e97['ui'];_0x3fbe60(this['_model'],({left:_0x545ea2,entered:_0x4e0e35})=>{for(const _0x3cddc6 of _0x545ea2){const {group:_0x33e77e,type:_0x3e048f}=this['_splitMarkerName'](_0x3cddc6['name']);if('suggestion'===_0x33e77e){_0x253916['announce'](this['_getMarkerAnnouncementText'](_0x3e048f,'LEAVE'));break;}}for(const _0x370c7d of _0x4e0e35){const {group:_0x3d15ae,type:_0x9177f7}=this['_splitMarkerName'](_0x370c7d['name']);if('suggestion'===_0x3d15ae){_0x253916['announce'](this['_getMarkerAnnouncementText'](_0x9177f7,'ENTER',_0x14c4e4(_0x1675c5)));break;}}});}['_processAttributeChanges'](_0x235da8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x243eb0=this['editor'],_0x2a936d=_0x243eb0['model']['document']['differ']['getChanges']();if(0x0==_0x2a936d['length'])return!0x1;const _0x350fa7=[],_0x24f3bb=_0x2a936d['filter'](_0x32fabd=>'attribute'==_0x32fabd['type']),_0x24d2db=_0x2a936d['filter'](_0x1c911e=>'insert'==_0x1c911e['type']&&'$text'!=_0x1c911e['name']),_0x33f779=_0x2a936d['filter'](_0x523c54=>'remove'==_0x523c54['type']&&'$text'!=_0x523c54['name']);for(const _0x1b7b34 of _0x24f3bb)_0x350fa7['push']({'key':_0x1b7b34['attributeKey'],'newValue':_0x1b7b34['attributeNewValue'],'oldValue':_0x1b7b34['attributeOldValue'],'range':te(_0x1b7b34['range'],_0x243eb0['model'])});for(const _0x2c332d of _0x24d2db){const _0x436360=_0x33f779['find'](_0x738da7=>_0x738da7['position']['isEqual'](_0x2c332d['position']));_0x436360&&_0x350fa7['push']({'key':m,'newValue':_0x2c332d['name'],'oldValue':_0x436360['name'],'range':_0x243eb0['model']['createRangeOn'](_0x2c332d['position']['nodeAfter'])});}return 0x0!=_0x350fa7['length']&&this['_reduceExistingSuggestions'](_0x235da8,_0x350fa7);}['_processAttributeSuggestions'](_0xecb45b){let _0x3867e2=!0x1;const _0xde9d42=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x483547=>_0x483547['data']['newRange']&&_0x483547['name']['startsWith']('suggestion:attribute:'));for(const _0x2ce33e of _0xde9d42){const {subType:_0x5400bd,id:_0x54431a}=this['_splitMarkerName'](_0x2ce33e['name']),_0x4c34ed=_0x5400bd['split']('|')[0x0];for(const _0x5639a3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5639a3['id']!=_0x54431a&&'attribute'==_0x5639a3['type']&&_0x5639a3['data']&&_0x5639a3['data']['key']==_0x4c34ed&&_0x5639a3['getFirstRange']()['isIntersecting'](_0x2ce33e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5639a3,_0x2ce33e['data']['newRange'],_0xecb45b),_0x3867e2=!0x0);}return _0x3867e2;}['recordAttributeChanges'](_0x2717de){this['_recordAttributeSuggestions']=!0x0,_0x2717de();}['_isRegisteredAttribute'](_0x42aa9f){const _0x393f1b=this['_isBlockAttribute'](_0x42aa9f),_0x307140=this['_isInlineAttribute'](_0x42aa9f);return _0x393f1b||_0x307140;}['_reduceExistingSuggestions'](_0x4e4fdc,_0x273fef){if(0x0==_0x273fef['length'])return!0x1;let _0x23901d=!0x1;for(const _0x561bd3 of _0x273fef){const _0x15b564=this['_findSuggestions'](_0x561bd3['range'],'attribute')['filter'](_0x560d3e=>!_0x560d3e['meta']['isNextTo'])['map'](_0x4d229e=>_0x4d229e['suggestion']),_0x56cbf5=_0x52205a({'newValue':_0x561bd3['newValue']});_0x15b564['filter'](_0x2b2cef=>{const [_0x114739,_0x2763b6]=_0x2b2cef['subType']['split']('|');return _0x114739==_0x561bd3['key']&&_0x2763b6!=_0x56cbf5;})['forEach'](_0x1b7df0=>{this['_reduceSuggestionAttributeRange'](_0x1b7df0,_0x561bd3['range'],_0x4e4fdc),_0x23901d=!0x0;});}return _0x23901d;}['_reduceSuggestionAttributeRange'](_0x51d354,_0x2b4502,_0x313887){const _0x36ac2e=_0x51d354['getFirstRange']()['getDifference'](_0x2b4502);0x0!==_0x36ac2e['length']?0x1!==_0x36ac2e['length']?this['_breakSuggestionMarker'](_0x51d354,_0x2b4502['start'],_0x2b4502['end']):this['_setSuggestionRange'](_0x51d354,_0x36ac2e[0x0]):_0x313887['removeMarker'](_0x51d354['getFirstMarker']());}}class Kt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5aec5e){this['_editor']=_0x5aec5e,this['_model']=_0x5aec5e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a5982,_0x38403d,_0x4e403f,_0xf0e5dc,_0x2b5d33,_0x5012f8,_0x4855e8){return new R(this['_model'],{'type':_0x4a5982,'subType':_0x38403d,'id':_0x4e403f,'originalSuggestionId':_0x4855e8,'author':_0xf0e5dc,'creator':_0xf0e5dc,'attributes':_0x2b5d33,'onAttributesChange':_0x5012f8,'onAccept':(..._0x5256e2)=>this['getSuggestionCallback'](_0x4a5982,_0x38403d,'accept')(..._0x5256e2),'onDiscard':(..._0x2a8b08)=>this['getSuggestionCallback'](_0x4a5982,_0x38403d,'discard')(..._0x2a8b08)});}['registerCustomCallback'](_0x3c7872,_0x2da8a3,_0x3409c2,_0x96aca){const _0x2a0303=_0x3c7872+':'+_0x2da8a3+':'+_0x3409c2;this['_customCallbacks']['set'](_0x2a0303,_0x96aca);}['getSuggestionCallback'](_0x57eb0f,_0x4e9b50,_0x27b580){const _0x5073f9=_0x57eb0f+':'+_0x4e9b50+':'+_0x27b580;return this['_customCallbacks']['get'](_0x5073f9)||this['_defaultCallbacks']['get'](_0x57eb0f+':'+_0x27b580);}['_registerDefaultCallbacks'](){const _0x14a521=()=>!0x1,_0x2f9b9b=_0x4d5393=>{_0x4d5393['sort']((_0x294dd4,_0x54b4dc)=>_0x294dd4['start']['isBefore'](_0x54b4dc['start'])?0x1:-0x1),this['_model']['change'](_0x23049e=>{for(const _0x5402a3 of _0x4d5393){let _0x49a1e9;_0x49a1e9=_0x5402a3['end']['isAtEnd']&&_0x5402a3['end']['parent']==_0x5402a3['start']['nodeAfter']?_0x23049e['createSelection'](_0x5402a3['start']['nodeAfter'],'on'):_0x23049e['createSelection'](_0x5402a3),this['_model']['deleteContent'](_0x49a1e9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5dffa5=(_0x86e74a,_0xcd7b47)=>{_0xcd7b47&&this['_model']['change'](_0x8c81f5=>{const {commandName:_0x279bdf,commandParams:_0x162554=[]}=_0xcd7b47,_0xf1ae06=_0x86e74a['map'](_0x134a2e=>(Ht(_0x134a2e)&&(_0x134a2e=this['_model']['createRange'](_0x134a2e['end'])),_0x134a2e))['filter'](_0x3f5757=>'$graveyard'!==_0x3f5757['root']['rootName']);if(_0xf1ae06['length']<0x1)return;const _0xa50574=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f05c8=>_0x1c1121['fromRange'](_0x1f05c8));_0x8c81f5['setSelection'](_0xf1ae06);for(const _0x2e817e of this['_editor']['commands']['commands']())_0x2e817e['refresh']();_0x162554['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x279bdf,..._0x162554);const _0x12ce2d=_0xa50574['filter'](_0x502cbe=>'$graveyard'!=_0x502cbe['root']['rootName']);_0x12ce2d['length']>0x0&&_0x8c81f5['setSelection'](_0x12ce2d);for(const _0x3393f1 of _0xa50574)_0x3393f1['detach']();});},_0x8d898a=(_0x533809,_0xd47a1)=>0x1==_0x533809['length']&&0x1==_0xd47a1['length']&&_0x533809[0x0]['end']['isEqual'](_0xd47a1[0x0]['start']),_0x200ca9=(_0x47a12f,_0x30f2aa,_0x253297,_0x3a4dda)=>ie(_0x47a12f,_0x30f2aa,_0x253297,_0x3a4dda)?[_0x47a12f,_0x30f2aa]:ie(_0x30f2aa,_0x47a12f,_0x3a4dda,_0x253297)?[_0x30f2aa,_0x47a12f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x14a521),this['_defaultCallbacks']['set']('insertion:discard',_0x2f9b9b),this['_defaultCallbacks']['set']('insertion:join',_0x8d898a),this['_defaultCallbacks']['set']('insertion:chain',_0x200ca9),this['_defaultCallbacks']['set']('deletion:accept',_0x2f9b9b),this['_defaultCallbacks']['set']('deletion:discard',_0x14a521),this['_defaultCallbacks']['set']('deletion:join',_0x8d898a),this['_defaultCallbacks']['set']('deletion:chain',_0x200ca9),this['_defaultCallbacks']['set']('formatInline:accept',_0x5dffa5),this['_defaultCallbacks']['set']('formatInline:discard',_0x14a521),this['_defaultCallbacks']['set']('formatInline:join',_0x8d898a),this['_defaultCallbacks']['set']('formatInline:chain',_0x14a521),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5dffa5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x14a521),this['_defaultCallbacks']['set']('formatBlock:join',_0x8d898a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x14a521),this['_defaultCallbacks']['set']('attribute:accept',_0x14a521),this['_defaultCallbacks']['set']('attribute:discard',(_0x3e5077,_0xa130e8)=>{if(!_0xa130e8)return;const _0x1be873=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1100b1=>{if(_0xa130e8['key']==m)for(const _0x22bfa0 of _0x3e5077){const _0x5ee259=_0x22bfa0['start']['nodeAfter'],_0x2e682d=_0xa130e8['oldValue'];_0x1100b1['rename'](_0x5ee259,_0x2e682d);}else{if(_0x1be873['_isBlockAttribute'](_0xa130e8['key'])){for(const _0x1cb797 of _0x3e5077)void 0x0!==_0xa130e8['oldValue']?_0x1100b1['setAttribute'](_0xa130e8['key'],_0xa130e8['oldValue'],_0x1cb797['start']['nodeAfter']):_0x1100b1['removeAttribute'](_0xa130e8['key'],_0x1cb797['start']['nodeAfter']);}else{for(const _0x337574 of _0x3e5077)_0xa130e8['oldValue']?_0x1100b1['setAttribute'](_0xa130e8['key'],_0xa130e8['oldValue'],_0x337574):_0x1100b1['removeAttribute'](_0xa130e8['key'],_0x337574);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x8d898a);}}function qt(_0x257f16,_0x38100a,_0x3c63c5){for(const _0x5b10a0 of _0x38100a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b10a0['root']==_0x5b10a0)return!0x1;if(!_0x3c63c5['containsItem'](_0x5b10a0))return!0x1;if(_0x257f16['isObject'](_0x5b10a0)||_0x257f16['isLimit'](_0x5b10a0))return!0x0;}return!0x1;}function Ht(_0x3ba70a){return _0x3ba70a['end']['parent']==_0x3ba70a['start']['nodeAfter']&&_0x3ba70a['end']['isAtStart'];}function Wt(_0x1af0a4,_0x36abbe,_0x1f48b0,_0x5d3d21){const _0x2a3b8e=_0x464e94=>!_0x464e94['item']['is']('$textProxy')&&!_0x5d3d21['isObject'](_0x464e94['item']),_0x3e84a6=_0x1af0a4['start']['getLastMatchingPosition'](_0x2a3b8e),_0x2a2f0a=_0x1af0a4['end']['getLastMatchingPosition'](_0x2a3b8e,{'direction':'backward'});return(!_0x1af0a4['start']['isEqual'](_0x3e84a6)||!_0x1af0a4['end']['isEqual'](_0x2a2f0a))&&(_0x3e84a6['isBefore'](_0x2a2f0a)?_0x1f48b0['updateMarker'](_0x36abbe,{'range':_0x1f48b0['createRange'](_0x3e84a6,_0x2a2f0a)}):_0x1f48b0['removeMarker'](_0x36abbe),!0x0);}function zt(_0x4f692b){return _0x52205a(_0x4f692b);}function Qt(_0x469a73){const _0x2feb4d=_0x469a73['start']['nodeAfter'];return _0x2feb4d&&_0x2feb4d['is']('element');}function Xt(_0x33c246){return Ht(_0x33c246)||function(_0x520fa5){return _0x520fa5['start']['parent']==_0x520fa5['end']['nodeBefore']&&_0x520fa5['start']['isAtEnd'];}(_0x33c246);}function Yt(_0x2daa2c,_0x2cf42b){try{const _0x14585b=_0x2daa2c['getRange']();for(const _0x416289 of _0x2cf42b)if(_0x2daa2c!==_0x416289&&_0x14585b&&_0x14585b['isIntersecting'](_0x416289['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x2613a6,_0x232d43){const _0x4a7c7e=_0x2613a6['end']['nodeBefore'];if(_0x4a7c7e&&_0x4a7c7e['is']('element')&&_0x232d43['schema']['isBlock'](_0x4a7c7e)&&!_0x232d43['schema']['isObject'](_0x4a7c7e)){const _0x2aefa4=_0x232d43['createPositionAt'](_0x4a7c7e,'end');return _0x232d43['createRange'](_0x2613a6['start'],_0x2aefa4);}return _0x2613a6;}function te(_0x520374,_0x54c00e){return null==_0x520374['end']['nodeBefore']&&_0x520374['end']['parent']==_0x520374['start']['nodeAfter']?ee(_0x520374['start']['nodeAfter'],_0x54c00e):_0x520374;}function ee(_0x3a81ca,_0x517698){const _0x11d18f=_0x517698['schema']['isObject'](_0x3a81ca)||_0x517698['schema']['isSelectable'](_0x3a81ca);return _0x517698['createRange'](_0x517698['createPositionAt'](_0x3a81ca,'before'),_0x11d18f?_0x517698['createPositionAfter'](_0x3a81ca):_0x517698['createPositionAt'](_0x3a81ca,'end'));}function ie(_0x497380,_0x597fdb,_0x6009a0,_0x4c2dde){return!!ne(_0x497380,_0x597fdb)&&_0x6009a0['end']['isEqual'](_0x4c2dde['start']);}function ne(_0x2b0d89,_0x3585da){if(!_0x2b0d89['_isDataLoaded']||!_0x3585da['_isDataLoaded'])return!0x1;const _0x304635=new Set(Object['keys'](_0x2b0d89['attributes'])),_0x974a=new Set(Object['keys'](_0x3585da['attributes']));if(_0x304635['delete']('groupId'),_0x974a['delete']('groupId'),0x0==_0x304635['size']&&0x0==_0x974a['size'])return!0x0;if(_0x304635['size']!=_0x974a['size'])return!0x1;const _0x39a84d={..._0x2b0d89['attributes']},_0x2e5652={..._0x3585da['attributes']};return delete _0x39a84d['groupId'],delete _0x2e5652['groupId'],JSON['stringify'](_0x39a84d)==JSON['stringify'](_0x2e5652);}function se(_0x22f47f,_0x1037d3){const _0x24e2ef=oe(_0x22f47f['attributes']),_0x886156=oe(_0x1037d3);if(!_0x22f47f['_isDataLoaded'])return!0x1;for(const _0x4125a3 of Object['keys'](_0x886156))if(!_0xa08205(_0x24e2ef[_0x4125a3],_0x886156[_0x4125a3]))return!0x1;return!0x0;}function oe(_0x497822){const _0x26fd35=Object['assign']({},_0x497822);return delete _0x26fd35['skipNestingCheck'],delete _0x26fd35['tablePasteChainId'],_0x26fd35;}function re(_0x553936){return _0x553936['split']('|')[0x0];}function ae(_0x4bf264,_0x2004c4){for(const [_0x3852bb,_0xb56cd4]of _0x4bf264['markers']){const _0x339bf6=_0x22f94c['_createFromRanges'](_0xb56cd4['getTransformedByOperation'](_0x2004c4));_0x4bf264['markers']['set'](_0x3852bb,_0x339bf6);}}class ve extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x345606(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40aca2,_0x4a10f1,_0x3838c7,_0x2e7492){super(),this['model']=_0x4a10f1,this['view']=_0x3838c7,this['commentThreadController']=_0x2e7492,this['_editor']=_0x40aca2,this['_acceptCommand']=_0x40aca2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40aca2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2a4645,_0x29dc2b)=>_0x2a4645||_0x29dc2b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5194a8=>_0x5194a8&&this['_editor']['model']['canEditAt'](_0x4a10f1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x21a33a=>_0x21a33a&&this['_editor']['model']['canEditAt'](_0x4a10f1['getRanges']())),this['_pendingAction']=null,_0x3838c7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3838c7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3838c7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3838c7,'change:isDirty',()=>{_0x3838c7['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 _0x29b471=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x29b471);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x13b63f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50a29f,_0x845cbc,_0x39d098,_0x5e59d6){super(_0x50a29f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5db02c(_0x50a29f,o(_0x50a29f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x845cbc['authoredAt']),this['bind']('authoredAt')['to'](_0x845cbc),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',_0x845cbc,'authoredAt',this,'descriptionParts',(_0x2bd68b,_0x313cd2,_0x4c9a0f)=>{const _0x1b4c58=_0x4c9a0f['map'](_0x3e524f=>ls(_0x3e524f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2bd68b-0x1,_0x845cbc['author']['name'],_0x313cd2?_0x5e59d6['formatDateTime'](_0x313cd2):'',new DOMParser()['parseFromString'](_0x1b4c58,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1a0be8(),this['focusTracker']=new _0x5b48c5(),this['keystrokes']=new _0x285187(),this['focusCycler']=new _0x589ddc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4da980=>_0x4da980['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x845cbc,this['_localUser']=_0x39d098,this['_config']=_0x5e59d6,_0x5e59d6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x30c882(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2182b3}=this['_config'];this['commentsListView']=new _0x2182b3(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',_0x261ecd=>_0x261ecd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1aa467,_0x53f17e)=>_0x1aa467||!!_0x53f17e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x31bfd9}=this['_config'],_0x12b7a4=new _0x31bfd9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x179e8d=_0x12b7a4['commentInputView'];return _0x12b7a4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x179e8d,'value',(_0x32741d,_0x583a49,_0x4ff286)=>!!_0x4ff286||_0x32741d&&!_0x583a49),_0x179e8d['on']('submit',(_0xa994b0,_0xaa400e)=>{this['fire']('addComment',_0xaa400e),_0x179e8d['editor']['setData']('');}),_0x179e8d['on']('cancel',()=>this['focus']()),_0x179e8d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x12b7a4;}}class xe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x374449,_0x3dd229,_0x461cb8,_0x3d2fda){super(_0x374449,_0x3dd229,_0x461cb8,_0x3d2fda),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x50f040=>_0x50f040&&_0x50f040[0x0]?_0x50f040[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x29f749,_0x121546)=>{let _0x4f5ea2='';for(const _0x296280 of _0x29f749)_0x4f5ea2+='<p>'+ls(_0x296280['content'],_0x296280['color'])+'</p>';return _0x121546?_0x4f5ea2:_0x4877fc(_0x4f5ea2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3d2fda['SuggestionView'](_0x374449,_0x3dd229,{'formatDateTime':_0x3d2fda['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 _0x9af942=this['bindTemplate'],_0x1ca2ae=[this['suggestionView']];return this['commentsListView']&&_0x1ca2ae['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1ca2ae['push'](this['commentThreadInputView']),_0x1ca2ae['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x9af942['if']('isActive','ck-suggestion-wrapper--active'),_0x9af942['to']('type',_0x3b7fc4=>'ck-suggestion-'+_0x3b7fc4),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':_0x9af942['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1ca2ae};}['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 Ae extends _0x13b63f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3a3a73,_0x55b324,_0x45307c){super(_0x3a3a73),this['_model']=_0x55b324,this['_config']=_0x45307c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x55b324),this['acceptButton']=this['_createButton'](o(_0x3a3a73,'Accept\x20suggestion'),_0x803c3d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3a3a73,'Discard\x20suggestion'),_0x4a9841,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x37afaf(_0x3a3a73,_0x55b324['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1a0be8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b48c5(),this['keystrokes']=new _0x285187(),this['focusCycler']=new _0x589ddc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x24d79f=>_0x24d79f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x9e8edb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x9e8edb['innerHTML']=this['description'],this['on']('change:description',(_0x3c4e92,_0x110674,_0x5773d3)=>{_0x9e8edb['innerHTML']=_0x5773d3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3ef415=this['bindTemplate'],_0x22438f=[{'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':_0x3ef415['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3ef415['to']('authoredAt',_0xb12f41=>this['_config']['formatDateTime'](_0xb12f41))}]}]},{'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']&&_0x22438f['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':_0x22438f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x33e49a,_0x42266f,_0x2074d6,_0x59e893,_0x2b58c8){const _0x69f07a=new _0x374b26(this['locale']);return _0x69f07a['set']({'label':_0x33e49a,'icon':_0x42266f,'tooltip':!0x0,'tooltipPosition':_0x2b58c8}),_0x69f07a['extendTemplate']({'attributes':{'class':_0x2074d6}}),_0x69f07a['on']('execute',()=>{this['fire'](_0x59e893,this['_model']['id']);}),_0x69f07a;}['_setupKeyboardNavigation'](){const _0x5cd754=this['element'];this['keystrokes']['listenTo'](_0x5cd754);for(const _0xf07a2c of this['focusables'])this['focusTracker']['add'](_0xf07a2c['element']),this['keystrokes']['listenTo'](_0xf07a2c['element']);this['keystrokes']['set']('enter',(_0x1414d6,_0xecd90e)=>{_0x5cd754===_0x1414d6['target']&&(this['focusCycler']['focusFirst'](),_0xecd90e());}),this['keystrokes']['set']('esc',(_0x104333,_0x1cbf56)=>{_0x5cd754!==_0x104333['target']&&(this['focus'](),_0x1cbf56());});}}class u extends _0x555e71{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x15dc59,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3345f4){super(_0x3345f4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3fee62=this['editor']['config'];_0x3fee62['define']('trackChanges.SuggestionThreadView',xe),_0x3fee62['define']('trackChanges.SuggestionView',Ae),_0x3fee62['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3fee62['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x33cfd1,_0x2281af){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x27276f,_0x4fa721]of this['_handleControllerBuffer']){const _0x13333a=this['_suggestionToController']['has'](_0x27276f);_0x13333a||_0x4fa721?_0x13333a&&_0x4fa721&&this['_destroyController'](_0x27276f):this['_initializeController'](_0x27276f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x33cfd1,_0x2281af);}['init'](){const _0x2d8746=this['editor'],_0x54356f=_0x2d8746['plugins']['get']('TrackChangesEditing'),_0x10131c=_0x2d8746['plugins']['get']('Annotations'),_0x17d6d2=_0x2d8746['plugins']['get']('EditorAnnotations'),_0x5e27ec=_0x2d8746['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x17d6d2['addSourceCollector'](()=>{const _0xaca00c=[];for(const [_0x56978f,_0x2f432f]of Array['from'](this['_suggestionToController'])){const _0x201733=_0x56978f['getAllAdjacentSuggestions'](),_0x4ffde6=[];for(const _0x34e239 of _0x201733){if(!_0x34e239['isInContent'])continue;if(_0x34e239['isMultiRange']){_0x4ffde6['push'](..._0x34e239['getRanges']());continue;}const _0x3abe54=_0x34e239['getFirstRange']();if(_0x4ffde6['length']>0x0){const _0xf4d415=_0x4ffde6[0x0]['getJoined'](_0x3abe54);if(_0xf4d415){_0x4ffde6[0x0]=_0xf4d415;continue;}}_0x4ffde6['push'](_0x3abe54);}_0xaca00c['push']([_0x2f432f['view'],_0x4ffde6]);}return _0xaca00c;}),this['listenTo'](_0x54356f,'suggestionLoaded',(_0x47efa0,_0x31a461)=>{this['listenTo'](_0x31a461,'change:previous',(_0x118767,_0x6fafd6,_0x2b5bc7,_0x1e7238)=>{_0x31a461['isInContent']&&(null==_0x2b5bc7?(this['_updateController'](_0x1e7238['head']),this['_handleSuggestionControllerDelayed'](_0x31a461,!0x1)):(this['_updateController'](_0x2b5bc7['head']),null==_0x1e7238&&this['_handleSuggestionControllerDelayed'](_0x31a461,!0x0)));}),null!==_0x31a461['previous']?this['_updateController'](_0x31a461['head']):this['_handleSuggestionControllerDelayed'](_0x31a461,!0x1);}),this['listenTo'](_0x54356f,'suggestionUnloaded',(_0x416fe6,_0x30f2ff,_0x38cf12)=>{this['stopListening'](_0x30f2ff,'change:previous'),this['_handleControllerBuffer']['delete'](_0x30f2ff),this['_suggestionToController']['has'](_0x30f2ff)&&this['_destroyController'](_0x30f2ff),_0x38cf12&&this['_updateController'](_0x38cf12['head']);}),this['listenTo'](_0x54356f,'suggestionChanged',(_0xf48e71,_0x4a5256)=>{this['_updateController'](_0x4a5256);}),this['listenTo'](_0x10131c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5e27ec,'addComment',(_0x290854,{threadId:_0x198248,isFromAdapter:_0x25d9a6})=>{if(_0x25d9a6||!_0x54356f['hasSuggestion'](_0x198248))return;const _0x661942=_0x54356f['getSuggestion'](_0x198248);this['_suggestionToController']['get'](_0x661942)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48b673=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x374dd4;for(const _0x467bb3 in _0x48b673){const _0x413df2=_0x467bb3,_0x542a90=_0x48b673[_0x413df2];if('trackChangesLicenseKeyValid'==_0x542a90||'trackChangesLicenseKeyInvalid'==_0x542a90||'trackChangesLicenseKeyExpired'==_0x542a90||'trackChangesLicenseKeyDomainLimit'==_0x542a90||'trackChangesLicenseKeyNotAllowed'==_0x542a90||'trackChangesLicenseKeyEvaluationLimit'==_0x542a90||'trackChangesLicenseKeyTrialLimit'==_0x542a90||'trackChangesLicenseKeyUsageLimit'==_0x542a90){delete _0x48b673[_0x413df2],_0x374dd4=_0x542a90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x374dd4&&_0x48b673['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x374dd4&&_0x48b673['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x374dd4&&_0x48b673['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x374dd4&&_0x48b673['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x374dd4&&_0x48b673['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x374dd4&&_0x48b673['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x374dd4&&_0x48b673['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3eacf4){const _0x584387=this['_suggestionToController']['get'](_0x3eacf4);if(!_0x584387)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x584387['view'])||null;}['getSuggestionForAnnotation'](_0x3dea9d){const _0x48880b=this['_viewToController']['get'](_0x3dea9d['innerView']);return _0x48880b?_0x48880b['model']:null;}['_refreshActiveMarkers'](){const _0x43d8e5=this['editor']['plugins']['get']('Annotations'),_0x5f5999=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53b242=Array['from'](_0x43d8e5['activeAnnotations'],_0x31c8a0=>_0x31c8a0['innerView'])['filter'](_0x4afd96=>this['_viewToController']['has'](_0x4afd96)),_0x2190ae=[];for(const _0x37bb66 of _0x53b242){const _0x3bbd61=this['_viewToController']['get'](_0x37bb66)['model']['getAllAdjacentSuggestions']();_0x2190ae['push'](..._0x3bbd61['reduce']((_0x4ae76b,_0x341447)=>[..._0x4ae76b,..._0x341447['getMarkerNames']()],[]));}_0x5f5999['activeMarkers']=_0x2190ae;}['_addUIComponentsToFactory'](){const _0xeb42e2=this['editor'],_0x51b9e5=_0xeb42e2['locale'],_0x3d6269=o(_0x51b9e5,'Track\x20changes'),_0x3bbc36=new _0x59e832([{'type':'switchbutton','model':new _0x5c6ee1({'withText':!0x0,'isToggleable':!0x0,'label':_0x3d6269,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5c6ee1({'withText':!0x0,'label':o(_0x51b9e5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6ee1({'withText':!0x0,'label':o(_0x51b9e5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6ee1({'withText':!0x0,'label':o(_0x51b9e5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6ee1({'withText':!0x0,'label':o(_0x51b9e5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xeb42e2['plugins']['has']('TrackChangesPreview')&&_0x3bbc36['addMany']([{'type':'separator'},{'type':'button','model':new _0x5c6ee1({'withText':!0x0,'label':o(_0x51b9e5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x16334d of _0x3bbc36)if(Ee(_0x16334d)){const _0x1e1ea4=_0xeb42e2['commands']['get'](_0x16334d['model']['commandName']);_0x16334d['model']['bind']('isOn','isEnabled')['to'](_0x1e1ea4,'value','isEnabled');}_0xeb42e2['ui']['componentFactory']['add']('trackChanges',_0x624062=>this['_createToolbarButton'](_0x624062,_0x3bbc36,_0x3d6269)),_0xeb42e2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x31cef9=>this['_createMenuBarMenu'](_0x31cef9,_0x3bbc36,_0x3d6269));}['_createToolbarButton'](_0x19a413,_0x14c368,_0xb44c4d){const _0x388d9c=_0x4f16a1(_0x19a413,_0x13fcb5),_0x14b874=this['editor']['commands']['get']('trackChanges');_0x388d9c['buttonView']['set']({'tooltip':_0xb44c4d,'label':_0xb44c4d,'icon':_0x2616a4}),_0x388d9c['buttonView']['bind']('isOn')['to'](_0x14b874,'value'),_0x388d9c['buttonView']['on']('execute',()=>{_0x14b874['execute'](),this['editor']['editing']['view']['focus']();}),_0x330c94(_0x388d9c,_0x14c368,{'role':'menu'});const _0x1d98c1=[];for(const _0xf85096 of _0x14c368)Ee(_0xf85096)&&_0x1d98c1['push'](this['editor']['commands']['get'](_0xf85096['model']['commandName']));const _0x328327=_0x388d9c['buttonView'];return _0x328327['actionView']['unbind']('isEnabled'),_0x328327['arrowView']['unbind']('isEnabled'),_0x328327['actionView']['bind']('isEnabled')['to'](_0x14b874,'isEnabled'),_0x328327['arrowView']['bind']('isEnabled')['toMany'](_0x1d98c1,'isEnabled',(..._0x1ef46a)=>_0x1ef46a['some'](_0xe87570=>_0xe87570)),_0x388d9c['on']('execute',_0x19658e=>{this['editor']['execute'](_0x19658e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x388d9c;}['_createMenuBarMenu'](_0x3c490d,_0x43a36a,_0x17713a){const _0x22d99f=new _0x13676d(_0x3c490d),_0x46ba6b=this['editor']['commands']['get']('trackChanges');_0x22d99f['buttonView']['set']({'label':_0x17713a,'icon':_0x2616a4});const _0x35c498=new _0x3e8c93(_0x3c490d);for(const _0x1a4991 of _0x43a36a){if('separator'==_0x1a4991['type']){_0x35c498['items']['add'](new _0x4296e3(_0x3c490d));continue;}const _0x241e30=new _0x15fe20(_0x3c490d,_0x22d99f),_0x3d1922=new _0x471059(_0x3c490d),_0x4693ca=_0x1a4991['model'];_0x3d1922['bind'](...Object['keys'](_0x4693ca))['to'](_0x4693ca),_0x3d1922['delegate']('execute')['to'](_0x22d99f),_0x3d1922['on']('execute',()=>{this['editor']['execute'](_0x4693ca['commandName']),this['editor']['editing']['view']['focus']();}),_0x241e30['children']['add'](_0x3d1922),_0x35c498['items']['add'](_0x241e30);}return _0x22d99f['bind']('isEnabled')['to'](_0x46ba6b,'isEnabled'),_0x22d99f['panelView']['children']['add'](_0x35c498),_0x22d99f;}['_initializeController'](_0xe7307c){const _0x3be427=this['editor'],_0xd4e7d=_0x3be427['config'],_0x127072=_0x3be427['plugins']['get']('Annotations'),_0x18d348=_0x3be427['plugins']['get']('CommentsRepository'),_0x554788=_0x3be427['plugins']['get']('EditorAnnotations'),_0x27bdbe=_0x3be427['plugins']['get'](_0x15dc59)['me'],_0x432fce=_0xd4e7d['get']('trackChanges')['SuggestionThreadView'],_0x2e6757=_0xd4e7d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4cace0,CommentThreadInputView:_0x1e95b6}=_0x3be427['plugins']['get']('CommentsUI');let _0x418cf5,_0x1ea39a,_0x8dc319;this['_annotationViews']['has'](_0xe7307c['id'])?(_0x1ea39a=this['_annotationViews']['get'](_0xe7307c['id']),_0x418cf5=_0x1ea39a['mainView']):(_0x418cf5=new _0x432fce(_0x3be427['locale'],_0xe7307c,_0x27bdbe,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd4e7d['get']('comments.editorConfig'),'licenseKey':_0xd4e7d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd4e7d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd4e7d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd4e7d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e1c18(_0xd4e7d['get']('locale'),_0x3be427['locale']),'CommentView':_0xd4e7d['get']('comments')['CommentView'],'CommentsListView':_0x4cace0,'CommentThreadInputView':_0x1e95b6,'SuggestionView':_0x2e6757}),_0x418cf5['suggestionView']['acceptButton']['on']('execute',()=>{_0x3be427['editing']['view']['focus']();}),_0x418cf5['suggestionView']['discardButton']['on']('execute',()=>{_0x3be427['editing']['view']['focus']();}),_0x1ea39a=_0x127072['createAnnotationView'](this['editor']['locale'],_0x418cf5),_0x1ea39a['bind']('isDirty')['to'](_0x418cf5,'isDirty'),_0x1ea39a['bind']('length')['to'](_0x418cf5),_0x1ea39a['bind']('type')['to'](_0x418cf5,'type',_0x447d4d=>'suggestion-'+_0x447d4d),_0x418cf5['on']('escape',()=>{_0x8dc319['fire']('escape');}),this['_annotationViews']['set'](_0xe7307c['id'],_0x1ea39a));const _0x59eb29=_0x18d348['createCommentThreadController'](_0xe7307c['commentThread'],_0x418cf5),_0x594db3=new ve(_0x3be427,_0xe7307c,_0x418cf5,_0x59eb29),_0xf86b9f=_0xe7307c['getAllAdjacentSuggestions']()['filter'](_0x508738=>_0x508738['isInContent']);_0x418cf5['descriptionParts']=_0x3be427['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xf86b9f),this['_suggestionToController']['set'](_0xe7307c,_0x594db3),this['_viewToController']['set'](_0x418cf5,_0x594db3);const _0x26fb43=()=>{const _0x57869c=[],_0x56196b=_0xe7307c['getAllAdjacentSuggestions']()['filter'](_0x2a8639=>_0x2a8639['isInContent']);for(const _0x62436b of _0x56196b)_0x57869c['push'](..._0x62436b['getMarkers']());return _0x298588(_0x3be427['editing'],_0x57869c);};_0x8dc319=_0x127072['createAnnotation']({'view':_0x1ea39a,'target':_0x26fb43,'type':()=>'suggestion-'+_0x594db3['view']['type'],'isVisible':!!_0x26fb43()}),_0x18d348['_bindAnnotationToEditors'](_0x418cf5,_0x8dc319),_0x127072['add'](_0x8dc319),_0x554788['registerAnnotation'](_0x8dc319);}['_destroyController'](_0x3703ed){const _0x27c2b6=this['editor']['plugins']['get']('CommentsRepository'),_0x306aa4=this['editor']['plugins']['get']('Annotations'),_0x426ba2=this['_suggestionToController']['get'](_0x3703ed),_0x1d81b6=_0x426ba2['view'],_0x3df3d0=_0x306aa4['getByInnerView'](_0x1d81b6);_0x27c2b6['_unbindEditors'](_0x1d81b6),_0x3df3d0&&_0x306aa4['remove'](_0x3df3d0),this['_suggestionToController']['delete'](_0x3703ed),this['_viewToController']['delete'](_0x1d81b6),_0x426ba2['destroy']();}['_updateController'](_0x50a448){if(!_0x50a448['isInContent']||!this['_suggestionToController']['has'](_0x50a448))return;const _0x13bd8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22556e=this['_suggestionToController']['get'](_0x50a448),_0x22494a=_0x50a448['getAllAdjacentSuggestions']();_0x22556e['view']['descriptionParts']=_0x13bd8a['descriptionFactory']['getDescriptions'](_0x22494a);}['destroy'](){for(const _0x57e05b of this['_suggestionToController']['keys']())this['_destroyController'](_0x57e05b);for(const _0x2be7a5 of this['_annotationViews']['values']())_0x2be7a5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ee(_0x3a848f){return'model'in _0x3a848f;}class Ke extends _0x555e71{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2dbcc8){this['editor']['plugins']['get'](d)['adapter']=_0x2dbcc8;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4d7839){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4d7839);}['getSuggestions']({skipNotAttached:_0x24f7dd=!0x1,toJSON:_0x380581=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x24f7dd,'toJSON':_0x380581});}['getSuggestion'](_0x13bbce){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x13bbce);}}const p=['Pagination'];class me extends _0x555e71{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x868d08=this['editor'];if(_0x868d08['config']['define']('trackChangesData.editorCreator',_0x1a3d15=>{const _0x1582c8=_0x868d08['model']['document']['getRootNames']()['reduce']((_0x4af4c8,_0x197e40)=>(_0x4af4c8[_0x197e40]='',_0x4af4c8),{});return _0x868d08['constructor']['create'](_0x1582c8,_0x1a3d15);}),'function'!=typeof _0x868d08['config']['get']('trackChangesData')['editorCreator'])throw new _0x5258bf('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2c1943){return P(this['editor'],!0x0,_0x2c1943);}['getDataWithDiscardedSuggestions'](_0x271a65){return P(this['editor'],!0x1,_0x271a65);}}class Xe extends _0x555e71{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37a22b){function _0x3ac9a1(_0x3e51e4){return _0x3e51e4['map'](_0x1ca8a5=>String['fromCharCode'](_0x1ca8a5))['join']('');}super(_0x37a22b),this['result']='end',_0x37a22b[_0x3ac9a1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ac9a1([0x76,0x69,0x65,0x77])][_0x3ac9a1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ac9a1([0x61,0x75,0x74,0x6f]),_0x37a22b[_0x3ac9a1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3ac9a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ac9a1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3ac9a1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3ac9a1([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 Ye(_0x145bd9){return void 0x0!==_0x145bd9['getRootsAttributes'];}async function P(_0x21cffc,_0xbc9f9a,_0x42ea86){const _0x5bd353=_0x2d4845(_0x21cffc,p);_0x5bd353['plugins']['push'](d,Xe),_0x5bd353['rootsAttributes']=Ye(_0x21cffc)?_0x21cffc['getRootsAttributes']():void 0x0;const _0x375bd8=document['createDocumentFragment'](),_0x1d594d=_0x21cffc['config']['get']('trackChangesData')['editorCreator'],_0x158325=await _0x1d594d(_0x5bd353,()=>function(_0x25c3da){const _0xee7df1=document['createElement']('div');return _0x25c3da['appendChild'](_0xee7df1),_0xee7df1;}(_0x375bd8));!function(_0x288a3a,_0x1838d0){const _0x18a1ac=_0x288a3a['model']['document']['getRootNames']()['reduce']((_0x182cee,_0x3f2824)=>(_0x182cee[_0x3f2824]=_0x288a3a['data']['get']({'rootName':_0x3f2824}),_0x182cee),{}),_0x4f6667=_0x288a3a['plugins']['get']('Users')['users']['map'](_0x2abab7=>({'id':_0x2abab7['id'],'name':_0x2abab7['name']})),_0x375c61=_0x288a3a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3656d2=_0x288a3a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4cab29=_0x1838d0['plugins']['get']('Users'),_0x3f6680=_0x1838d0['plugins']['get']('TrackChangesEditing'),_0x573e5d=_0x1838d0['plugins']['get']('CommentsRepository');for(const _0x3e807a of _0x573e5d['getCommentThreads']())_0x3e807a['remove']();for(const _0x4ddf8d of _0x4f6667)_0x4cab29['getUser'](_0x4ddf8d['id'])||_0x4cab29['addUser'](_0x4ddf8d);_0x4cab29['me']||_0x4cab29['useAnonymousUser']();for(const _0x5ebe58 of _0x3656d2)_0x573e5d['addCommentThread'](_0x5ebe58);for(const _0x1165c9 of _0x375c61)_0x3f6680['addSuggestionData'](_0x1165c9);_0x1838d0['data']['set'](_0x18a1ac);}(_0x21cffc,_0x158325),_0x158325['execute'](_0xbc9f9a?'acceptAllSuggestions':'discardAllSuggestions');const _0x3060d1=Ye(_0x158325)?_0x158325['getFullData'](_0x42ea86):_0x158325['data']['get'](_0x42ea86);return await _0x158325['destroy'](),_0x3060d1;}class _e extends _0x13b63f{['options'];constructor(_0x38a011,_0x2cf0da){super(_0x38a011),this['options']=_0x2cf0da,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'](_0x406f6e,_0x2789f9){if(!this['element'])return;const _0xcc03c4=[];for(const [_0x41419e,_0x58a313]of _0x406f6e){const _0x235af8=document['createElement']('div');_0x235af8['setAttribute']('data-ck-root-name',_0x41419e),_0x235af8['className']=_0x58a313['classes']+'\x20ck-track-changes-preview__root-container',_0x235af8['innerHTML']=_0x58a313['content'],_0xcc03c4['push'](_0x235af8);}_0x2789f9(this['element'],_0xcc03c4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ue extends _0x1e6711{constructor(_0x1210b2){super(_0x1210b2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3e09fd=this['editor'],_0x9a84d5=_0x3e09fd['locale'],_0x5c5e34=_0x3e09fd['plugins']['get']('Dialog');let _0x5c50c7;const _0x5bffdd=function(_0x148244){const _0x48ba75={};if('editables'in _0x148244['ui']['view']){for(const [_0x38a41d,_0x51b2e5]of Object['entries'](_0x148244['ui']['view']['editables']))_0x48ba75[_0x38a41d]=_0x51b2e5['element'];}else _0x48ba75[_0x148244['model']['document']['getRootNames']()[0x0]]=_0x148244['ui']['view']['editable']['element'];return _0x48ba75;}(_0x3e09fd),_0x3f0b9c=function(_0x5e03c6){let _0x253e14=0x0;for(const _0x1640ad of Object['values'](_0x5e03c6))_0x253e14=Math['max'](_0x253e14,_0x1640ad['getBoundingClientRect']()['width']);let _0x3bd90f=0x0;for(const _0x430553 of Object['values'](_0x5e03c6))_0x3bd90f+=_0x430553['getBoundingClientRect']()['height'];const _0x2f5c03=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x542149=Math['min'](_0x3bd90f,_0x2f5c03);return{'width':_0x253e14,'height':_0x542149};}(_0x5bffdd);_0x5c5e34['show']({'id':'finalContentPreview','title':o(_0x9a84d5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x9a84d5,{'dialogRects':_0x3f0b9c}),'onHide':()=>{_0x5c50c7['detachFromDom']();},'onShow':()=>{_0x3e09fd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x17474b=>{const _0x4e5eed=this['_standarizeRootsData'](_0x17474b,_0x3e09fd,_0x5bffdd);_0x5c5e34['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4e5eed,_0x3e09fd['config']['get']('trackChanges.preview.renderFunction'));}),_0x5c50c7=new _0x1cd27e(_0x9a84d5,[_0x5c5e34['view']]),_0x5c50c7['attachToDom'](),_0x5c50c7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3e09fd['once']('destroy',()=>{_0x5c50c7['detachFromDom']();});const _0x3c0516=_0x5c5e34['view']['headerView']['class'];_0x5c5e34['view']['headerView']['class']=_0x3c0516?_0x3c0516+'\x20ck-reset_all':'ck-reset_all',_0x5c5e34['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5c5e34['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3abdba=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5743ec=_0x3abdba['previewMode'],_0x530f93={};if('$labels'===_0x5743ec){for(const _0x47aa74 of _0x3abdba['getMergeFieldsIds']())_0x530f93[_0x47aa74]=_0x3abdba['getLabel'](_0x47aa74)||_0x47aa74;}else{const _0x653bf='$defaultValues'===_0x5743ec?_0x3abdba['getDefaultValues']():_0x3abdba['getDataSetValues'](_0x5743ec,!0x0);for(const _0x41430d of Object['entries'](_0x653bf)){const [_0x3afc94,_0x410db4]=_0x41430d;_0x530f93[_0x3afc94]=null!==_0x410db4?_0x410db4:_0x3abdba['getLabel'](_0x3afc94)||_0x3afc94;}}return{'mergeFieldsData':_0x530f93};}['_standarizeRootsData'](_0xd87fa7,_0x993ab1,_0x4adbf8){let _0x23dc11;if('string'==typeof _0xd87fa7){const _0x26fbe8=_0x993ab1['model']['document']['getRootNames']()[0x0];_0x23dc11={[_0x26fbe8]:_0xd87fa7};}else _0x23dc11=_0xd87fa7;const _0x4d8096=this['_fixMediaEmbeds'](_0x23dc11,_0x993ab1),_0x237a99=function(_0x45d533,_0x40c43e){for(const [_0x1b3a2f,_0x497db0]of _0x45d533)_0x497db0['classes']=_0x40c43e[_0x1b3a2f]['classList']['value']['replace']('ck-focused','');return _0x45d533;}(this['_sortRoots'](_0x993ab1)['reduce']((_0x5f07bc,_0x8d108d)=>(_0x5f07bc['push']([_0x8d108d,{'content':_0x4d8096[_0x8d108d],'classes':''}]),_0x5f07bc),[]),_0x4adbf8);return _0x237a99;}['_fixMediaEmbeds'](_0x521b34,_0x4a928a){if(!_0x4a928a['plugins']['has']('MediaEmbedEditing'))return _0x521b34;const _0x5ee4fa=_0x4a928a['plugins']['get']('MediaEmbedEditing');for(const [_0x86a1dd,_0x5db01d]of Object['entries'](_0x521b34)){const _0x33cfe9=document['createElement']('div');_0x33cfe9['innerHTML']=_0x5db01d,(_0x33cfe9['querySelectorAll']('figure.media')['forEach'](_0x1e5dc8=>{const _0xffc8fa=_0x1e5dc8['querySelector']('oembed');if(_0xffc8fa){const _0xe47f38=_0xffc8fa['getAttribute']('url');if(_0xe47f38){const _0x1d3628=_0x5ee4fa['registry']['getMediaViewElement'](new _0x165b75(_0x4a928a['editing']['view']['document']),_0xe47f38,{'elementName':'','renderForEditingView':!0x0}),_0x57d7e6=document['createElement']('div');_0x57d7e6['classList']['add']('ck-media__wrapper'),_0x1d3628['render'](_0x57d7e6,_0x4a928a['editing']['view']['domConverter']),_0xffc8fa['replaceWith'](_0x57d7e6);}}}),_0x521b34[_0x86a1dd]=_0x33cfe9['innerHTML']);}return _0x521b34;}['_sortRoots'](_0x79161){if(!function(_0x46f73e){return void 0x0!==_0x46f73e['getRootsAttributes'];}(_0x79161))return _0x79161['model']['document']['getRootNames']();const _0x49b8b8=[],_0x547d01=new Map();for(const _0x27e8d9 of _0x79161['model']['document']['getRootNames']()){const _0x1c993f=_0x79161['editing']['view']['getDomRoot'](_0x27e8d9)['getClientRects']()['item'](0x0);_0x49b8b8['push'](_0x27e8d9),_0x547d01['set'](_0x27e8d9,_0x1c993f);}return _0x49b8b8['sort']((_0x55ff87,_0x3fd9d8)=>{const _0x46edea=_0x547d01['get'](_0x55ff87),_0x4df260=_0x547d01['get'](_0x3fd9d8);return _0x46edea['y']-_0x4df260['y']||_0x46edea['x']-_0x4df260['x'];}),_0x49b8b8;}}class Qe extends _0x555e71{static get['requires'](){return[me,_0x113d48];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4678b7){super(_0x4678b7),_0x4678b7['commands']['add']('previewFinalContent',new ue(this['editor'])),_0x4678b7['config']['define']('trackChanges.preview.renderFunction',(_0x1e60d4,_0x1eed8f)=>{for(const _0xcaffcf of _0x1eed8f)_0x1e60d4['appendChild'](_0xcaffcf);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ue as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,xe as SuggestionThreadView,Ae as SuggestionView,Ke as TrackChanges,B as TrackChangesCommand,me as TrackChangesData,Xe as TrackChangesDataGetter,d as TrackChangesEditing,Qe as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x4470c6,Plugin as _0x150e1e,PendingActions as _0x28dd1b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c5060,ObservableMixin as _0x133706,uid as _0x2f3bfc,priorities as _0x121033,insertToPriorityArray as _0x1ff196,toArray as _0x4a1116,logWarning as _0x38a1da,getEnvKeystrokeText as _0x31da68,FocusTracker as _0xfc8302,KeystrokeHandler as _0x30fddb,Collection as _0x5b9dda}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2a3d51,IconCancel as _0x241d06,IconTrackChanges as _0x6b0c67}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x495c3,View as _0xaae3cc,ViewCollection as _0x304110,FocusCycler as _0x155550,UIModel as _0x4157ff,createDropdown as _0x207dba,SplitButtonView as _0x2a196d,addListToDropdown as _0x2a552b,MenuBarMenuView as _0x326e1f,MenuBarMenuListView as _0x39e73e,ListSeparatorView as _0xdc7e27,MenuBarMenuListItemView as _0x48fd2b,MenuBarMenuListItemButtonView as _0x10a6f6,BodyCollection as _0x2fd38e,Dialog as _0x2f023f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x49c4c1,DocumentCompare as _0x20dcac,hashObject as _0x5b6d50,surroundingMarkersDetector as _0x32f207,FOCUS_ANNOTATION_KEYSTROKE as _0x1dc23a,AriaDescriptionView as _0x41d892,setupThreadKeyboardNavigation as _0x19bae6,trimHtml as _0x4e31bd,UserView as _0x883051,LateFocusButtonView as _0x219ef3,getDateTimeFormatter as _0x51d8fc,getAllMarkersDomElementsSorted as _0x5ce32e,sanitizeEditorConfig as _0x412471}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x24cb50,ModelLiveRange as _0x4b855c,ModelLivePosition as _0x266e89,ModelPosition as _0x1ec24f,ModelRange as _0x3c2c3e,_DetachOperation as _0x104b5a,ViewDowncastWriter as _0x1b32b1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x288247,toWidget as _0x12badd}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1e5789,set as _0x25906c,isEqual as _0x389819,unset as _0x2394e1,omit as Jt}from'es-toolkit/compat';import{Delete as _0x438d17,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5c8e70}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x493ab6}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x4470c6{['_enabledCommands'];constructor(_0x37b307,_0x33c6f3){super(_0x37b307),this['_enabledCommands']=_0x33c6f3,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 _0x4397be of this['editor']['commands']['commands']())_0x4397be['affectsData']&&!this['_enabledCommands']['has'](_0x4397be)&&_0x4397be['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x460d13 of this['editor']['commands']['commands']())_0x460d13['affectsData']&&!this['_enabledCommands']['has'](_0x460d13)&&_0x460d13['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x4470c6{['_suggestions'];constructor(_0x1b8d71,_0x97a4c7){super(_0x1b8d71),this['_suggestions']=_0x97a4c7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x54b88e){const _0x2972d4=this['_suggestions']['get'](_0x54b88e);if(!_0x2972d4)throw new _0x1c5060('track-changes-accept-suggestion-not-found',this);const _0x40c609=_0x2972d4['getRanges']();this['editor']['model']['canEditAt'](_0x40c609)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2972d4);}}class O extends _0x4470c6{['_suggestions'];constructor(_0x50d53b,_0x381b0d){super(_0x50d53b),this['_suggestions']=_0x381b0d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x244943){const _0x541cbc=this['_suggestions']['get'](_0x244943);if(!_0x541cbc)throw new _0x1c5060('track-changes-discard-suggestion-not-found',this);const _0x4c110a=_0x541cbc['getRanges']();this['editor']['model']['canEditAt'](_0x4c110a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x541cbc);}}function ls(_0x59cd48,_0x41067d){let _0x13302b='';return _0x13302b+=_0x59cd48['split']('*')['map']((_0x21feba,_0x24a6f0)=>_0x24a6f0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x21feba)+'</span>':tn(_0x21feba))['join'](''),_0x41067d&&(_0x13302b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x41067d['value']+'\x22\x20title=\x22'+_0x41067d['title']+'\x22></span>'),_0x13302b;}function tn(_0x48f112){const _0x7c9cc=document['createElement']('span');return _0x7c9cc['innerText']=_0x48f112,_0x7c9cc['innerHTML'];}function ts(_0x561f0f){return _0x561f0f['sort']((_0x40d8f2,_0x53f604)=>'attribute'===_0x40d8f2['type']&&'attribute'!==_0x53f604['type']?-0x1:'attribute'!==_0x40d8f2['type']&&'attribute'===_0x53f604['type']?0x1:'deletion'==_0x40d8f2['type']&&'deletion'!=_0x53f604['type']?-0x1:'deletion'!=_0x40d8f2['type']&&'deletion'==_0x53f604['type']?0x1:0x0);}function to(_0x2daee8,_0x31809b){let _0x2c3a91,_0x293548=0x0;const _0x43eecd=[],_0x3d25ce=_0x31809b['schema'];for(;_0x293548<_0x2daee8['length'];){const _0x530840=_0x2daee8[_0x293548],_0x93a335=_0x2daee8[_0x293548+0x1];_0x2c3a91||(_0x2c3a91=_0x31809b['createPositionBefore'](_0x530840)),nn(_0x31809b,_0x530840,_0x93a335)||(_0x43eecd['push'](_0x31809b['createRange'](_0x2c3a91,_0x3d25ce['isObject'](_0x530840)?_0x31809b['createPositionAfter'](_0x530840):_0x31809b['createPositionAt'](_0x530840,'end'))),_0x2c3a91=null),_0x293548++;}return _0x43eecd;}function nn(_0xb183fc,_0x21f150,_0x39ad45){if(!_0x39ad45)return!0x1;const _0x20fef9=_0xb183fc['createPositionAfter'](_0x21f150),_0x28386a=_0xb183fc['createPositionBefore'](_0x39ad45);return _0x20fef9['isTouching'](_0x28386a);}function rs(_0x3cd1ad,_0x3db0d8,_0xc6cd69){for(;_0xc6cd69['length'];){const _0x274fd8=_0xc6cd69['splice'](0x0,0x64);_0x3cd1ad['change'](()=>{for(const _0x5e0136 of _0x274fd8)_0x5e0136['isInContent']&&_0x3db0d8['execute'](_0x5e0136['id']);});}}class x extends _0x4470c6{['_command'];['_suggestions'];constructor(_0x36c389,_0xae254c,_0x29a5dd){super(_0x36c389),this['_command']=_0xae254c,this['_suggestions']=_0x29a5dd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x25647a=Array['from'](this['_suggestions']['values']())['some'](_0x522840=>_0x522840['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x25647a;}['execute'](){const _0xf5adb8=ts(Array['from'](this['_suggestions']['values']()));for(const _0x48ca9b of _0xf5adb8){const _0x4b36df=_0x48ca9b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b36df))return;}rs(this['editor']['model'],this['_command'],_0xf5adb8);}}class E extends _0x4470c6{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4616e9,_0x45943d,_0xd6118e){super(_0x4616e9),this['_command']=_0x45943d,this['_suggestions']=_0xd6118e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x573d25=this['editor']['model']['document']['selection'],_0x1ba790=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5543f2,_0x10a9a8){const _0x47934e=Array['from'](_0x5543f2['getRanges']()),_0x5d6b21=new Set();for(const _0xc6cc3e of _0x10a9a8)if(_0xc6cc3e['isInContent']){for(const _0x2983b3 of _0x47934e)for(const _0x542072 of _0xc6cc3e['getRanges']())(_0x2983b3['isIntersecting'](_0x542072)||_0x5543f2['isCollapsed']&&!_0xc6cc3e['isMultiRange']&&_0xc6cc3e['next']&&_0x542072['end']['isTouching'](_0x2983b3['start']))&&_0x5d6b21['add'](_0xc6cc3e);}return _0x5d6b21;}(_0x573d25,_0x1ba790),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x208d98=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4b7978 of _0x208d98){const _0x3af8de=_0x4b7978['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3af8de))return;}rs(this['editor']['model'],this['_command'],_0x208d98);}}class R extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x133706(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x412cfb,_0x114b5d){super(),this['id']=_0x114b5d['id'],this['type']=_0x114b5d['type'],this['subType']=_0x114b5d['subType']||null,this['author']=_0x114b5d['author'],this['creator']=_0x114b5d['creator']||_0x114b5d['author'],this['isExternal']=Boolean(_0x114b5d['attributes']&&_0x114b5d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x114b5d['originalSuggestionId']||null,this['_model']=_0x412cfb,this['_onAccept']=_0x114b5d['onAccept'],this['_onDiscard']=_0x114b5d['onDiscard'],this['_onAttributesChange']=_0x114b5d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x114b5d['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 _0x516c6a=this;for(;_0x516c6a['previous'];)_0x516c6a=_0x516c6a['previous'];return _0x516c6a;}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'](_0x5ce5b1){this['_markerNames']['add'](_0x5ce5b1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x158bd5=>this['_model']['markers']['get'](_0x158bd5))['filter'](_0x3a6f29=>_0x3a6f29);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3ec2fa=>{for(const _0x1c8f2d of this['getMarkers']())_0x3ec2fa['removeMarker'](_0x1c8f2d);}),this['_markerNames']['clear']();}['removeMarker'](_0x19ce81){this['_model']['change'](_0x25db15=>{_0x25db15['removeMarker'](_0x19ce81);}),this['_markerNames']['delete'](_0x19ce81);}['addRange'](_0x356eaf){const _0x9937af='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x9937af),this['_model']['change'](_0x35d9b9=>{_0x35d9b9['addMarker'](_0x9937af,{'range':_0x356eaf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x50f2a2){for(const _0x531f26 of this['getRanges']())if(_0x531f26['isIntersecting'](_0x50f2a2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xac1f1a=>_0xac1f1a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3211fd,_0x1a889a)=>[..._0x3211fd,..._0x1a889a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2bbc53=this['getRanges']();if(0x1!=_0x2bbc53['length'])return null;const _0xff7942=_0x2bbc53[0x0],_0x267e3d=_0xff7942['start']['nodeAfter'],_0x227727=_0xff7942['end']['nodeBefore'];return _0x267e3d instanceof _0x24cb50?_0x267e3d!=_0x227727?null:_0x267e3d: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 _0x37723c=[];let _0x1a1606=this['head'];for(;_0x1a1606;)_0x37723c['push'](_0x1a1606),_0x1a1606=_0x1a1606['next'];return _0x37723c;}['setAttribute'](_0x2b3fe6,_0x398448){const _0x16a692=_0x1e5789(this['attributes']);_0x25906c(_0x16a692,_0x2b3fe6,_0x398448),_0x389819(_0x16a692,this['attributes'])||(this['attributes']=_0x16a692,this['_onAttributesChange'](_0x16a692));}['removeAttribute'](_0x181bc4){const _0x3a0976=_0x1e5789(this['attributes']);_0x2394e1(_0x3a0976,_0x181bc4),_0x389819(_0x3a0976,this['attributes'])||(this['attributes']=_0x3a0976,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 _0x2f3bfc()['substr'](0x1,0x5);}}function o(_0x53806f,_0x394cc9,_0x44bb64){const _0x37b5e0=_0x53806f['t'],t=_0x53806f['t'];switch(_0x394cc9){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',_0x44bb64);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44bb64);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44bb64);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44bb64);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44bb64);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',_0x44bb64);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44bb64);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',_0x44bb64);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44bb64);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44bb64);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44bb64);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44bb64);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44bb64);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x44bb64);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44bb64);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44bb64);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44bb64);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44bb64);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44bb64);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44bb64);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44bb64);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44bb64);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44bb64);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44bb64);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x44bb64);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'},_0x44bb64);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x44bb64);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x44bb64);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44bb64);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44bb64);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44bb64);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44bb64);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44bb64);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'},_0x44bb64);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44bb64);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44bb64);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44bb64);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44bb64);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'},_0x44bb64);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44bb64);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'},_0x44bb64);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x44bb64);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44bb64);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'},_0x44bb64);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44bb64);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'},_0x44bb64);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44bb64);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44bb64);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'},_0x44bb64);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x44bb64);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 _0x37b5e0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x44bb64);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x37b5e0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x44bb64);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44bb64);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'},_0x44bb64);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'},_0x44bb64);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'},_0x44bb64);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x394cc9;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4e82af,_0x25940f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4e82af,this['_locale']=_0x25940f;}['getDescriptions'](_0x20a7e3){const _0x1c0a09=[],_0x4fdf90=new Set(),_0x3315fb=new Set();for(let _0x290494=0x0;_0x290494<_0x20a7e3['length'];_0x290494++){const _0x44c0bb=_0x20a7e3[_0x290494];if(!_0x44c0bb['isInContent'])continue;const _0x278ed2=this['_handleCustomCallbackDescription'](_0x44c0bb);if(_0x278ed2){if(null!=_0x44c0bb['subType']){if(_0x4fdf90['has'](_0x44c0bb['subType']))continue;_0x4fdf90['add'](_0x44c0bb['subType']);}_0x1c0a09['push'](_0x278ed2);}else{if('attribute'==_0x44c0bb['type']){const _0x3c5cda=_0x44c0bb['data']['key'];if(_0x3315fb['has'](_0x3c5cda))continue;_0x3315fb['add'](_0x44c0bb['data']['key']),_0x3c5cda==m?this['_handleRenameSuggestionDescription'](_0x1c0a09,_0x44c0bb):this['_handleAttributeSuggestionDescription'](_0x1c0a09,_0x44c0bb);continue;}'insertion'!=_0x44c0bb['type']&&'deletion'!=_0x44c0bb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1c0a09,_0x44c0bb,_0x20a7e3[_0x290494+0x1]);}}return this['_resolveDescriptionItems'](_0x1c0a09);}['registerDescriptionCallback'](_0x190e6a){this['_customCallbacks']['push'](_0x190e6a);}['registerElementLabel'](_0x4c95bf,_0x7adce6,_0x3ef742=_0x121033['normal']){'function'==typeof _0x4c95bf?_0x1ff196(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4c95bf,'label':_0x7adce6,'priority':_0x3ef742}):this['_itemLabels']['set'](_0x4c95bf,_0x7adce6);}['registerAttributeLabel'](_0x58f32d,_0x21e79f){this['_attributeLabels']['set'](_0x58f32d,_0x21e79f);}['getItemLabel'](_0x162d38,_0x37ca83=0x1){let _0x372611;for(const _0x340371 of this['_itemLabelsCallbacks'])if(_0x340371['matchingCallback'](_0x162d38)){_0x372611=_0x340371['label'];break;}return _0x372611||(_0x372611=this['_itemLabels']['get'](_0x162d38['name'])),_0x372611?_0x372611(_0x37ca83):0x1!==_0x37ca83?_0x37ca83+'\x20'+_0x162d38['name']+'s':''+_0x162d38['name'];}['_addDescriptionItems'](_0x2299ba,_0x431571){const _0x23dda8=_0x431571['getFirstRange']()['getWalker'](),_0x3672d3='insertion'==_0x431571['type']?'add':'remove';for(const _0x4e222b of _0x23dda8){const _0x38079e=_0x4e222b['item'],_0x2bda76=_0x2299ba[_0x2299ba['length']-0x1];if(_0x38079e['is']('$textProxy'))_0x2bda76&&_0x2bda76['type']['indexOf']('Container')>-0x1&&_0x2299ba['pop'](),_0x2bda76&&'text'==_0x2bda76['type']?_0x2bda76[_0x3672d3]+=_0x38079e['data']:_0x2299ba['push']({'type':'text','add':'add'==_0x3672d3?_0x38079e['data']:'','remove':'remove'==_0x3672d3?_0x38079e['data']:''});else{if(this['_schema']['isObject'](_0x38079e)){const _0x32995e=_0x38079e;if(_0x2bda76&&_0x2bda76['type']['indexOf']('Container')>-0x1&&_0x2299ba['pop'](),'elementEnd'==_0x4e222b['type'])continue;_0x2bda76&&_0x2bda76['type']==_0x3672d3+'Object'&&_0x2bda76['element']['name']==_0x32995e['name']?_0x2bda76['quantity']++:_0x2299ba['push']({'type':_0x3672d3+'Object','element':_0x32995e,'quantity':0x1}),_0x23dda8['skip'](_0x4b0b25=>!('elementEnd'==_0x4b0b25['type']&&_0x4b0b25['item']==_0x38079e));}else{if(this['_schema']['checkChild'](_0x38079e,'$text')||_0x38079e['is']('element','softBreak')){const _0x2dfae2=_0x38079e;if('add'==_0x3672d3&&'elementStart'==_0x4e222b['type']||'remove'==_0x3672d3&&'elementEnd'==_0x4e222b['type'])continue;if(_0x2bda76&&-0x1==_0x2bda76['type']['indexOf']('Container')){'text'==_0x2bda76['type']&&(_0x2bda76[_0x3672d3]+='\x0a');continue;}let _0x32b02a;if(_0x32b02a='add'==_0x3672d3?_0x2dfae2['nextSibling']&&!this['_schema']['isObject'](_0x2dfae2['nextSibling'])?_0x2dfae2['nextSibling']:null:_0x2dfae2['previousSibling']&&!this['_schema']['isObject'](_0x2dfae2['previousSibling'])?_0x2dfae2['previousSibling']:null,_0x2dfae2['isEmpty']||_0x32b02a&&_0x32b02a['isEmpty']){const _0x253ec6=_0x32b02a&&_0x32b02a['isEmpty']?_0x32b02a:_0x2dfae2;_0x2bda76&&_0x2bda76['type']==_0x3672d3+'EmptyContainer'&&_0x2bda76['element']['name']==_0x253ec6['name']?_0x2bda76['quantity']++:_0x2299ba['push']({'type':_0x3672d3+'EmptyContainer','element':_0x253ec6,'quantity':0x1});}else _0x2299ba['push']({'type':_0x3672d3+'Container','element':_0x2dfae2});}}}}}['_resolveDescriptionItems'](_0x23c593){const _0x18105e=this['_locale'],_0x3910f4=[],_0x32b2fa=[],_0x5380e4=[];for(const _0x2c62ba of _0x23c593)switch(_0x2c62ba['type']){case'text':if(_0x2c62ba['add']=_0x2c62ba['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2c62ba['remove']=_0x2c62ba['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2c62ba['add']&&''!=_0x2c62ba['remove']){_0x3910f4['push']({'type':'replace','content':o(_0x18105e,'REPLACE_TEXT',['\x22'+_0x2c62ba['remove']+'\x22','\x22'+_0x2c62ba['add']+'\x22'])});continue;}if(null!=_0x2c62ba['add']['match'](/^ +$/)){_0x3910f4['push']({'type':'insertion','content':o(_0x18105e,'*Insert:*\x20%0',o(_0x18105e,'ELEMENT_SPACE',_0x2c62ba['add']['length']))});continue;}if(null!=_0x2c62ba['remove']['match'](/^ +$/)){_0x3910f4['push']({'type':'deletion','content':o(_0x18105e,'*Remove:*\x20%0',o(_0x18105e,'ELEMENT_SPACE',_0x2c62ba['remove']['length']))});continue;}if(''!=_0x2c62ba['add']){_0x3910f4['push']({'type':'insertion','content':o(_0x18105e,'*Insert:*\x20%0','\x22'+_0x2c62ba['add']+'\x22')});continue;}_0x3910f4['push']({'type':'deletion','content':o(_0x18105e,'*Remove:*\x20%0','\x22'+_0x2c62ba['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3910f4['push']({'type':'insertion','content':o(_0x18105e,'*Insert:*\x20%0',this['getItemLabel'](_0x2c62ba['element'],_0x2c62ba['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3910f4['push']({'type':'deletion','content':o(_0x18105e,'*Remove:*\x20%0',this['getItemLabel'](_0x2c62ba['element'],_0x2c62ba['quantity']))});continue;case'addContainer':_0x3910f4['push']({'type':'insertion','content':o(_0x18105e,'*Split:*\x20%0',this['getItemLabel'](_0x2c62ba['element'],_0x2c62ba['quantity']))});continue;case'removeContainer':_0x3910f4['push']({'type':'deletion','content':o(_0x18105e,'*Merge:*\x20%0',this['getItemLabel'](_0x2c62ba['element'],_0x2c62ba['quantity']))});continue;case'addFormat':_0x32b2fa['push'](_0x2c62ba['key']);continue;case'removeFormat':_0x5380e4['push'](_0x2c62ba['key']);continue;default:_0x3910f4['push'](_0x2c62ba);}if(_0x32b2fa['length']){const _0x225632=_0x32b2fa['map'](_0xdfc14e=>this['_attributeLabels']['has'](_0xdfc14e)?this['_attributeLabels']['get'](_0xdfc14e):_0xdfc14e)['join'](',\x20');_0x3910f4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x225632)});}if(_0x5380e4['length']){const _0xecae92=_0x5380e4['map'](_0x17adce=>this['_attributeLabels']['has'](_0x17adce)?this['_attributeLabels']['get'](_0x17adce):_0x17adce)['join'](',\x20');_0x3910f4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xecae92)});}return _0x3910f4;}['_handleCustomCallbackDescription'](_0x5024c3){for(const _0x4b776e of this['_customCallbacks']){const _0x3475bf=_0x4b776e(_0x5024c3);if(_0x3475bf&&'type'in _0x3475bf)return _0x3475bf;}}['_handleAttributeSuggestionDescription'](_0xc661aa,_0x1019d9){const _0x356d28=_0x1019d9['data'],_0xcf8f79=void 0x0===_0x356d28['newValue']?'removeFormat':'addFormat';_0xc661aa['push']({'type':_0xcf8f79,'key':_0x356d28['key']});}['_handleRenameSuggestionDescription'](_0x4e12ed,_0x2eaaf8){_0x4e12ed['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2eaaf8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4d4aaa,_0x2977a1,_0x3ed29d){if(this['_addDescriptionItems'](_0x4d4aaa,_0x2977a1),_0x3ed29d&&_0x3ed29d['getFirstRange']()&&!_0x2977a1['getFirstRange']()['end']['isEqual'](_0x3ed29d['getFirstRange']()['start'])){const _0x5d3071=_0x4d4aaa[_0x4d4aaa['length']-0x1],_0x25f2bc='insertion'==_0x2977a1['type']?'add':'remove';_0x5d3071&&'text'==_0x5d3071['type']&&(_0x5d3071[_0x25f2bc]+='\x0a');}}}class V extends _0x150e1e{['afterInit'](){const _0x7f366e=this['editor'],_0x490d68=_0x7f366e['plugins']['get']('TrackChangesEditing');_0x7f366e['commands']['get']('showAIAssistant')&&_0x490d68['enableCommand']('showAIAssistant');}}class F extends _0x150e1e{['afterInit'](){const _0x551472=this['editor'],_0x22ba5a=_0x551472['plugins']['get']('TrackChangesEditing');_0x551472['commands']['get']('toggleAi')&&_0x22ba5a['enableCommand']('toggleAi');}}class G extends _0x150e1e{['afterInit'](){const _0x5a92be=this['editor'],_0x54c937=_0x5a92be['plugins']['get']('TrackChangesEditing');_0x5a92be['commands']['get']('aiQuickAction')&&_0x54c937['enableCommand']('aiQuickAction');}}class L extends _0x150e1e{['afterInit'](){const _0x519e9d=this['editor'],_0x2a8359=_0x519e9d['locale'];if(!_0x519e9d['plugins']['has']('AlignmentEditing'))return;const _0x2f1d61=_0x519e9d['plugins']['get']('TrackChangesEditing');_0x2f1d61['enableDefaultAttributesIntegration']('alignment'),_0x2f1d61['registerBlockAttribute']('alignment'),_0x2f1d61['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2a8359,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d466a=this['editor'],_0x286c03=_0x5d466a['locale'];_0x5d466a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17bfd3=>{if('formatBlock'!=_0x17bfd3['type'])return;const {data:_0x535ae6}=_0x17bfd3;if(_0x535ae6&&'alignment'==_0x535ae6['commandName']){const _0x396dfc=_0x535ae6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x286c03,'*Format:*\x20%0',function(_0xf95a17){switch(_0xf95a17){case'left':return o(_0x286c03,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x286c03,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x286c03,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x286c03,'FORMAT_JUSTIFY_TEXT');}}(_0x396dfc))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x150e1e{['afterInit'](){const _0x37ecea=this['editor'],_0x5a70da=_0x37ecea['plugins']['get']('TrackChangesEditing'),_0x3a9c3e=_0x37ecea['locale'];for(const _0x47705b of ti){if(!_0x37ecea['plugins']['has'](_0x47705b))continue;const _0x109f9b=_0x47705b['slice'](0x0,-0x7)['toLowerCase'](),_0x5a41e6='FORMAT_'+_0x109f9b['toUpperCase']();_0x5a70da['enableDefaultAttributesIntegration'](_0x109f9b),_0x5a70da['registerInlineAttribute'](_0x109f9b),_0x5a70da['descriptionFactory']['registerAttributeLabel'](_0x109f9b,o(_0x3a9c3e,_0x5a41e6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xebf642=this['editor'],_0x2c0370=_0xebf642['locale'],_0x3d186d=_0xebf642['plugins']['get']('TrackChangesEditing');function _0x2f064(_0x2c39e0,_0x4a2be8){_0x3d186d['descriptionFactory']['registerDescriptionCallback'](_0x267d13=>{if('formatInline'!=_0x267d13['type'])return;const {data:_0xe18b54}=_0x267d13;return _0xe18b54&&_0xe18b54['commandName']===_0x2c39e0?_0xe18b54['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c0370,'*Format:*\x20%0',_0x4a2be8)}:{'type':'format','content':o(_0x2c0370,'*Remove\x20format:*\x20%0',_0x4a2be8)}:void 0x0;});}_0x2f064('bold',o(_0x2c0370,'FORMAT_BOLD')),_0x2f064('italic',o(_0x2c0370,'FORMAT_ITALIC')),_0x2f064('underline',o(_0x2c0370,'FORMAT_UNDERLINE')),_0x2f064('code',o(_0x2c0370,'FORMAT_CODE')),_0x2f064('strikethrough',o(_0x2c0370,'FORMAT_STRIKETHROUGH')),_0x2f064('subscript',o(_0x2c0370,'FORMAT_SUBSCRIPT')),_0x2f064('superscript',o(_0x2c0370,'FORMAT_SUPERSCRIPT'));}}class K extends _0x150e1e{['afterInit'](){const _0x19a9b=this['editor'],_0x528b80=_0x19a9b['locale'];if(!_0x19a9b['plugins']['has']('BlockQuoteEditing'))return;const _0x2820b7=_0x19a9b['plugins']['get']('TrackChangesEditing'),_0x51227b=this['editor']['commands']['get']('blockQuote');_0x2820b7['enableCommand']('blockQuote',(_0x55c9f0,_0x10eaf0={})=>{const _0x4784c4=this['editor']['model']['document']['selection'],_0x4cc885=_0x10eaf0&&void 0x0!==_0x10eaf0['forceValue']?_0x10eaf0['forceValue']:!_0x51227b['value'];let _0x11ff99=[];if(_0x4cc885){const _0x1cdf19=Array['from'](_0x4784c4['getSelectedBlocks']())['filter'](_0x8cf4cb=>oo(_0x8cf4cb)||function(_0x5b69a8,_0x4a34cb){const _0x25c5f1=_0x4a34cb['checkChild'](_0x5b69a8['parent'],'blockQuote'),_0xfcab5a=_0x4a34cb['checkChild'](['$root','blockQuote'],_0x5b69a8);return _0x25c5f1&&_0xfcab5a;}(_0x8cf4cb,this['editor']['model']['schema']));_0x11ff99=to(_0x1cdf19,_0x19a9b['model']);}else{const _0x1fda77=Array['from'](_0x4784c4['getSelectedBlocks']())['filter'](_0x5406fa=>oo(_0x5406fa));_0x11ff99=to(_0x1fda77,_0x19a9b['model']);}_0x19a9b['model']['change'](()=>{for(const _0x10697b of _0x11ff99)_0x2820b7['markBlockFormat'](_0x10697b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4cc885}]});});}),_0x2820b7['descriptionFactory']['registerDescriptionCallback'](_0x42b64c=>{const {data:_0x118d63}=_0x42b64c;if(_0x118d63&&'blockQuote'==_0x118d63['commandName']){const _0xe56c0b=o(_0x528b80,'ELEMENT_BLOCK_QUOTE');return _0x118d63['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x528b80,'*Set\x20format:*\x20%0',_0xe56c0b)}:{'type':'format','content':o(_0x528b80,'*Remove\x20format:*\x20%0',_0xe56c0b)};}});}}function oo(_0x1de484){return'blockQuote'==_0x1de484['parent']['name'];}class q extends _0x150e1e{['afterInit'](){const _0x3a2f4f=this['editor'],_0x1b93a0=_0x3a2f4f['locale'],_0x1ddd5d=_0x3a2f4f['plugins']['get']('TrackChangesEditing');_0x3a2f4f['plugins']['has']('BookmarkEditing')&&(_0x1ddd5d['enableCommand']('insertBookmark'),_0x1ddd5d['enableDefaultAttributesIntegration']('updateBookmark'),_0x1ddd5d['registerBlockAttribute']('bookmarkId'),_0x1ddd5d['descriptionFactory']['registerDescriptionCallback'](_0x28e77b=>{if('insertion'!=_0x28e77b['type']&&'deletion'!=_0x28e77b['type']&&'attribute'!=_0x28e77b['type'])return;const _0x15336c=_0x28e77b['getContainedElement']();if(null==_0x15336c)return;if(!_0x15336c['is']('element','bookmark'))return;const _0x26b595=_0x15336c['getAttribute']('bookmarkId');if('insertion'==_0x28e77b['type'])return{'type':'insertion','content':o(_0x1b93a0,'*Insert:*\x20%0','\x22'+_0x26b595+'\x22\x20'+o(_0x1b93a0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x28e77b['type'])return{'type':'deletion','content':o(_0x1b93a0,'*Remove:*\x20%0','\x22'+_0x26b595+'\x22\x20'+o(_0x1b93a0,'ELEMENT_BOOKMARK'))};const {data:_0x25b39c}=_0x28e77b;if(!_0x25b39c||'bookmarkId'!=_0x25b39c['key'])return;return{'type':'format','content':o(_0x1b93a0,'*Set\x20bookmark:*\x20%0','\x22'+_0x25b39c['newValue']+'\x22')};}));}}class H extends _0x150e1e{['afterInit'](){const _0x4a0e39=this['editor'];_0x4a0e39['plugins']['has']('CaseChange')&&(_0x4a0e39['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4a0e39['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4a0e39['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x150e1e{['afterInit'](){const _0xe6c273=this['editor'];_0xe6c273['commands']['get']('ckbox')&&_0xe6c273['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x150e1e{['afterInit'](){const _0x525e68=this['editor'];if(!_0x525e68['plugins']['has']('CodeBlock'))return;const _0x5ecaa1=_0x525e68['plugins']['get']('TrackChangesEditing'),_0x27cc60=_0x525e68['locale'],_0x5e9ff4=_0x525e68['config']['get']('codeBlock')['languages'],_0x2e5266=_0x525e68['commands']['get']('codeBlock');_0x5ecaa1['enableCommand']('indentCodeBlock'),_0x5ecaa1['enableCommand']('outdentCodeBlock'),_0x5ecaa1['enableCommand']('codeBlock',(_0x4599f2,_0x441844={})=>{const _0x164f80=_0x525e68['model'],_0x18859a=_0x525e68['model']['document']['selection'],_0x4ef10a=_0x441844&&void 0x0!==_0x441844['forceValue']?_0x441844['forceValue']:!_0x2e5266['value'];let _0xdcde48;_0x441844['language']||(_0x441844['language']=_0x5e9ff4[0x0]['language']),_0xdcde48=_0x4ef10a?Array['from'](_0x18859a['getSelectedBlocks']())['filter'](_0x4ca554=>co(_0x4ca554)||function(_0x4e651c,_0xaf044c){if(_0x4e651c['is']('rootElement')||_0xaf044c['isLimit'](_0x4e651c))return!0x1;return _0xaf044c['checkChild'](_0x4e651c['parent'],'codeBlock');}(_0x4ca554,_0x164f80['schema'])):Array['from'](_0x18859a['getSelectedBlocks']())['filter'](_0x56661e=>co(_0x56661e));const _0x4180fa=to(_0xdcde48,_0x164f80);_0x164f80['change'](()=>{for(const _0x201b28 of _0x4180fa)_0x5ecaa1['markBlockFormat'](_0x201b28,{'commandName':'codeBlock','commandParams':[{..._0x441844,'forceValue':_0x4ef10a}],'formatGroupId':'blockName'});});}),(_0x5ecaa1['descriptionFactory']['registerElementLabel']('codeBlock',_0x24a659=>o(_0x27cc60,'ELEMENT_CODE_BLOCK',_0x24a659)),_0x5ecaa1['descriptionFactory']['registerDescriptionCallback'](_0x5ee057=>{if('formatBlock'!=_0x5ee057['type'])return;const _0x532069=_0x27cc60['t'],{data:_0x15c4ea}=_0x5ee057;if(!_0x15c4ea||'codeBlock'!=_0x15c4ea['commandName'])return;const _0x433e94=_0x15c4ea['commandParams'][0x0]['language'],_0x4aa54b=_0x532069(_0x5e9ff4['find'](_0x3e47b4=>_0x3e47b4['language']===_0x433e94)['label'])['toLowerCase']();return _0x15c4ea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27cc60,'*Set\x20format:*\x20%0',o(_0x27cc60,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4aa54b+')')}:{'type':'format','content':o(_0x27cc60,'*Remove\x20format:*\x20%0',o(_0x27cc60,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xb05323){return'codeBlock'==_0xb05323['name'];}class Q extends _0x150e1e{['afterInit'](){const _0x1b8585=this['editor'];if(!_0x1b8585['plugins']['has']('CommentsEditing'))return;_0x1b8585['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x28538b,_0x4a1e18,_0x15c14e){const _0x182292=[];for(const _0xf01e7e of _0x4a1e18['getItems']())_0xf01e7e['hasAttribute'](_0x28538b)&&_0x182292['push'](_0x15c14e['createRangeOn'](_0xf01e7e));return _0x182292;}function Ve(_0x255bc2,_0x5515fb,{showActiveMarker:_0x173046=!0x0}={}){const _0x359494=_0x255bc2['plugins']['get']('TrackChangesEditing');return(_0x5408c0,_0x594dc4,_0x358b2a)=>{if(!_0x358b2a['consumable']['test'](_0x594dc4['markerRange'],_0x5408c0['name']))return;const _0x21cfb8=_0x594dc4['markerRange']['getWalker'](),_0x30e1ac=_0x594dc4['markerRange']['start'],_0x1f5023=_0x255bc2['model']['schema'];let _0xb0ace9=null,_0x1104e3=null,_0xcba127=!0x1,_0x4c4a8e=!0x1;for(const _0x552764 of _0x21cfb8){const _0x5be9fb=_0x552764['item'];_0xcba127=_0xcba127||_0x1f5023['isContent'](_0x5be9fb);const _0x26462a=_0x358b2a['mapper']['toViewElement'](_0x5be9fb);if(_0x26462a&&_0x26462a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x552764['type']&&(_0x1f5023['isBlock'](_0x5be9fb)&&!_0x1f5023['isLimit'](_0x5be9fb)&&(_0x5be9fb['nextSibling']||_0x30e1ac['isAtEnd']?_0xb0ace9&&_0xb0ace9['parent']==_0x5be9fb||(_0xb0ace9=_0x5be9fb,_0x56a0f7(_0x552764['previousPosition']),_0x4c4a8e=!0x0):_0x1104e3=_0x1104e3||_0x552764['previousPosition']));}function _0x56a0f7(_0x27c138){const {id:_0x2c9749,authorId:_0x2ab03b}=_0x359494['_splitMarkerName'](_0x594dc4['markerName']),_0x3e4c49=_0x358b2a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5515fb,'data-suggestion':_0x2c9749,'data-author-id':_0x2ab03b}),_0x4d5cf4=_0x358b2a['mapper']['toViewPosition'](_0x27c138);_0x173046&&_0x359494['activeMarkers']['includes'](_0x594dc4['markerName'])&&_0x358b2a['writer']['addClass']('ck-suggestion-marker--active',_0x3e4c49),_0x358b2a['writer']['insert'](_0x4d5cf4,_0x3e4c49),_0x358b2a['mapper']['bindElementToMarker'](_0x3e4c49,_0x594dc4['markerName']);}_0xcba127||_0x4c4a8e||!_0x1104e3||_0x56a0f7(_0x1104e3);};}class X extends _0x150e1e{static get['requires'](){return[_0x438d17];}['init'](){const _0xa7c1d2=this['editor'],_0x306b4e=_0xa7c1d2['plugins']['get']('TrackChangesEditing');_0x306b4e['enableCommand']('delete');const _0x4ab08d=_0xa7c1d2['commands']['get']('deleteForward');_0x306b4e['enableCommand']('deleteForward',(_0x2bf5ec,_0x5a361a={})=>{const _0x2dc206=_0xa7c1d2['model']['createSelection'](_0xa7c1d2['model']['document']['selection']);_0x2dc206['isCollapsed']&&_0xa7c1d2['model']['modifySelection'](_0x2dc206,{'direction':'forward','unit':_0x5a361a['unit']});const _0x46dac5=_0x2dc206['getFirstRange'](),_0x45810a=_0x4b855c['fromRange'](_0x46dac5);let _0x57dcf2;_0x2bf5ec(_0x5a361a),_0x57dcf2='$graveyard'==_0x45810a['root']['rootName']?_0xa7c1d2['model']['createRange'](_0x46dac5['start']):_0xa7c1d2['model']['createRange'](_0x45810a['start'],_0x45810a['end']),_0x45810a['detach'](),_0xa7c1d2['model']['enqueueChange'](_0x4ab08d['buffer']['batch'],_0x25f8e8=>{_0x4ab08d['buffer']['lock'](),_0x25f8e8['setSelection'](_0x25f8e8['createRange'](_0x57dcf2['end'])),_0x4ab08d['buffer']['unlock']();});}),_0xa7c1d2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0xa7c1d2,'merge'),{'priority':'high'}),_0xa7c1d2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4d9de4,_0x434132,_0x4f507e)=>{_0x4f507e['options']['showSuggestionHighlights']&&Ve(_0xa7c1d2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4d9de4,_0x434132,_0x4f507e);},{'priority':'high'}),_0xa7c1d2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5d191d,_0xe60c86,_0x1f586c)=>{const _0x6b26a1=_0x1f586c['mapper']['markerNameToElements'](_0xe60c86['markerName']);if(_0x6b26a1){for(const _0x16ec6a of _0x6b26a1)_0x16ec6a['is']('uiElement')&&(_0x1f586c['mapper']['unbindElementFromMarkerName'](_0x16ec6a,_0xe60c86['markerName']),_0x1f586c['writer']['remove'](_0x16ec6a));}},{'priority':'high'});}}class Y extends _0x150e1e{['afterInit'](){const _0x8a5440=this['editor'];if(!_0x8a5440['plugins']['has']('ListEditing'))return;const _0x1cec47=_0x8a5440['locale'],_0x397c0b=_0x8a5440['plugins']['get']('TrackChangesEditing'),_0x39e197=_0x8a5440['plugins']['has']('TodoListEditing'),_0x32823e=!!_0x8a5440['config']['get']('list.multiBlock');function _0x13f66b(_0x1875c0){return{'type':'format','content':''+o(_0x1cec47,'*Set\x20format:*\x20%0',_0x1875c0)};}function _0x244cd1(_0x5d185c){return{'type':'format','content':''+o(_0x1cec47,'*Remove\x20format:*\x20%0',_0x5d185c)};}_0x397c0b['enableDefaultAttributesIntegration']('numberedList'),_0x397c0b['enableDefaultAttributesIntegration']('bulletedList'),_0x397c0b['enableDefaultAttributesIntegration']('customNumberedList'),_0x397c0b['enableDefaultAttributesIntegration']('customBulletedList'),_0x397c0b['enableDefaultAttributesIntegration']('indentList'),_0x397c0b['enableDefaultAttributesIntegration']('outdentList'),_0x397c0b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x397c0b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x397c0b['registerBlockAttribute']('listItemId'),_0x397c0b['registerBlockAttribute']('listType'),_0x397c0b['registerBlockAttribute']('listIndent'),_0x32823e&&(_0x397c0b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x397c0b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x39e197&&(_0x397c0b['enableDefaultAttributesIntegration']('todoList'),_0x397c0b['enableDefaultAttributesIntegration']('checkTodoList'),_0x397c0b['registerBlockAttribute']('todoListChecked'),_0x397c0b['descriptionFactory']['registerDescriptionCallback'](_0x3cd387=>{const {data:_0x15da21}=_0x3cd387;if(_0x15da21&&'todoListChecked'==_0x15da21['key'])return{'type':'format','content':_0x15da21['newValue']?o(_0x1cec47,'*Check\x20item*'):o(_0x1cec47,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x300807=>{if(_0x300807['batch']['isUndo'])return!0x1;let _0x6bc35b=!0x1;const _0xa55cd3=_0x397c0b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f3bcd=>'todoListChecked'===_0x397c0b['_getAttributeKey'](_0x5f3bcd));for(const _0x4d6e99 of _0xa55cd3){'todo'!=_0x4d6e99['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x397c0b['_findSuggestions'](_0x4d6e99['getFirstRange'](),'attribute')['find'](_0x515c8e=>'listType'===_0x397c0b['_getAttributeKey'](_0x515c8e['suggestion']))||(_0x300807['removeMarker'](_0x4d6e99['getFirstMarker']()),_0x6bc35b=!0x0));}return _0x6bc35b;})),_0x397c0b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1cec47,'FORMAT_INDENT'));const _0x109b1d={'type':'format','content':''};_0x397c0b['descriptionFactory']['registerDescriptionCallback'](_0x57a9e9=>{const {data:_0x584a6c}=_0x57a9e9;if(!_0x584a6c||'listType'!=_0x584a6c['key'])return;let _0x141d0a=_0x57a9e9['head'];for(;_0x141d0a;){if(_0x141d0a['data']&&(('listStyle'==_0x141d0a['data']['key']||'listMarkerStyle'==_0x141d0a['data']['key'])&&(_0x141d0a['data']['newValue']&&'default'!=_0x141d0a['data']['newValue']||'default'!=_0x141d0a['data']['oldValue']&&!_0x584a6c['newValue'])||!_0x32823e&&_0x141d0a['data']['key']==m))return _0x109b1d;_0x141d0a=_0x141d0a['next'];}if(null==_0x584a6c['newValue'])switch(_0x584a6c['oldValue']){case'bulleted':return _0x244cd1(o(_0x1cec47,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x244cd1(o(_0x1cec47,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x244cd1(o(_0x1cec47,'ELEMENT_TODO_LIST'));}switch(_0x584a6c['newValue']){case'bulleted':return _0x13f66b(o(_0x1cec47,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13f66b(o(_0x1cec47,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13f66b(o(_0x1cec47,'ELEMENT_TODO_LIST'));}}),_0x397c0b['descriptionFactory']['registerDescriptionCallback'](_0x49461e=>{const {data:_0x24de1c}=_0x49461e;if(_0x24de1c&&'listIndent'==_0x24de1c['key'])return null==_0x24de1c['newValue']||null==_0x24de1c['oldValue']&&0x0==_0x24de1c['newValue']?_0x109b1d:void 0x0;}),_0x397c0b['descriptionFactory']['registerDescriptionCallback'](_0x3c0943=>{if('attribute'!=_0x3c0943['type'])return;const {data:_0x4e21cd}=_0x3c0943;if(!_0x4e21cd||'listItemId'!=_0x4e21cd['key'])return;const _0x26b325=Be(_0x3c0943);return'newValue'==_0x26b325?{'type':'format','content':o(_0x1cec47,'*Merge:*\x20list\x20item')}:'oldValue'==_0x26b325?{'type':'format','content':o(_0x1cec47,'*Split:*\x20list\x20item')}:_0x109b1d;}),_0x8a5440['model']['document']['registerPostFixer'](_0x56de80=>this['listItemIdFixer'](_0x56de80)),_0x8a5440['model']['document']['registerPostFixer'](_0x157603=>this['noTrackChangesFixer'](_0x157603)),_0x8a5440['model']['document']['on']('change:data',(_0x2a5272,_0x392c9e)=>{if(_0x392c9e['isUndo']||!_0x392c9e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2fa166){if(_0x2fa166['batch']['isUndo']||!_0x2fa166['batch']['isLocal'])return!0x1;let _0x123ce1=!0x1;const _0x38a064=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5549c9=>_0x5549c9['data']&&'listItemId'==_0x5549c9['data']['key'])['filter'](_0x4b7036=>_0x4b7036['data']['newValue']&&_0x4b7036['data']['oldValue']);for(const _0x560662 of _0x38a064)Be(_0x560662)||(_0x2fa166['removeMarker'](_0x560662['getFirstMarker']()),_0x123ce1=!0x0);return _0x123ce1;}['noTrackChangesFixer'](_0x52b8ba){if(_0x52b8ba['batch']['isUndo']||!_0x52b8ba['batch']['isLocal'])return!0x1;const _0x53789e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x53789e['trackChangesCommand']['value'])return!0x1;let _0x4defeb=!0x1;const _0xaf0a0d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1e33d8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x358986=>'attribute'==_0x358986['type'])['filter'](_0x1407e6=>_0xaf0a0d['includes'](_0x1407e6['attributeKey']));if(0x0==_0x1e33d8['length'])return _0x4defeb;for(const _0x1c0c32 of _0x1e33d8){const _0x4e7ddf=_0x53789e['_findSuggestions'](_0x1c0c32['range'],'attribute')['filter'](_0x2d7d1c=>!_0x2d7d1c['meta']['isNextTo'])['map'](_0x57eaa5=>_0x57eaa5['suggestion'])['filter'](_0x3070e6=>{const _0x37b4d4=_0x53789e['_getAttributeKey'](_0x3070e6);return _0xaf0a0d['includes'](_0x37b4d4);});if(_0x4e7ddf['length']){for(const _0xad3aae of _0x4e7ddf)_0x52b8ba['removeMarker'](_0xad3aae['getFirstMarker']());_0x4defeb=!0x0;}}return _0x4defeb;}['assureChains'](){const _0x28b3a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x501f02=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x191354;const _0x196a28=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d0902=>{if(_0x5d0902['data']['oldRange']||!_0x5d0902['data']['newRange'])return null;if(!_0x5d0902['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x980eec}=_0x28b3a7['_splitMarkerName'](_0x5d0902['name']);if(!_0x28b3a7['hasSuggestion'](_0x980eec))return null;const _0x5b542f=_0x28b3a7['getSuggestion'](_0x980eec);return _0x501f02['includes'](_0x5b542f['data']['key']);})['map'](_0x414dd4=>{const {id:_0xadd025}=_0x28b3a7['_splitMarkerName'](_0x414dd4['name']),_0xfdb239=_0x28b3a7['getSuggestion'](_0xadd025);return _0x191354=_0xfdb239['attributes']['groupId'],_0xfdb239['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x196a28['size'])return;const _0x649196=_0x28b3a7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48b74c=>'attribute'==_0x48b74c['type']&&_0x48b74c['data']&&_0x501f02['includes'](_0x48b74c['data']['key'])&&_0x48b74c['attributes']['groupId']!=_0x191354)['map'](_0x1396ae=>({'listItem':_0x1396ae['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1396ae['attributes']['groupId']})),_0x4595a2=new Set();for(const {groupId:_0x1483aa,listItem:_0x5d8286}of _0x649196)_0x196a28['has'](_0x5d8286)&&_0x4595a2['add'](_0x1483aa);for(const _0xa25097 of _0x28b3a7['getSuggestions']())_0x4595a2['has'](_0xa25097['attributes']['groupId'])&&_0xa25097['setAttribute']('groupId',_0x191354);}['_supportLegacySuggestions'](){const _0x3c155f=this['editor'],_0x1d1214=_0x3c155f['locale'],_0x312053=_0x3c155f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x312053['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a6664,_0x598b35){const _0x5456e0=[];for(let _0xeb44e2 of _0x1a6664)_0xeb44e2['start']['nodeAfter']===_0xeb44e2['end']['parent']&&(_0xeb44e2=_0x3c155f['model']['createRange'](_0x3c155f['model']['createPositionAt'](_0xeb44e2['start']['nodeAfter'],0x0))),_0x5456e0['push'](_0xeb44e2);_0x3c155f['model']['change'](_0x207a33=>{const _0x3fa01c=_0x3c155f['model']['document']['selection'],_0x252ef5=Array['from'](_0x3fa01c['getRanges']())['map'](_0x539246=>_0x4b855c['fromRange'](_0x539246));_0x207a33['setSelection'](_0x5456e0),_0x3c155f['commands']['get'](_0x598b35['commandName'])['refresh'](),_0x598b35['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3c155f['execute'](_0x598b35['commandName'],..._0x598b35['commandParams']),_0x207a33['setSelection'](_0x252ef5);for(const _0x152533 of _0x252ef5)_0x152533['detach']();});}),_0x312053['descriptionFactory']['registerElementLabel'](function(_0x56ee9e){const _0x100d20=!_0x3c155f['model']['schema']['isObject'](_0x56ee9e),_0x25a30a=_0x56ee9e['previousSibling'],_0x21bf73=_0x56ee9e['nextSibling'],_0x23a89a=_0x56ee9e['getAttribute']('listItemId'),_0x4bcb8a=!_0x25a30a||_0x25a30a['getAttribute']('listItemId')!==_0x23a89a,_0x4ae0b7=!_0x21bf73||_0x21bf73['getAttribute']('listItemId')!==_0x23a89a;return _0x100d20&&Boolean(_0x23a89a)&&_0x4bcb8a&&_0x4ae0b7;},_0x93b5d4=>o(_0x1d1214,'ELEMENT_LIST_ITEM',_0x93b5d4));}['_registerLegacyDescription'](){const _0x47ce7a=this['editor'],_0x364186=_0x47ce7a['locale'];function _0x949024(_0x3a73ed){const _0x469fa7=_0x47ce7a['commands']['get']('bulletedList')['value'],_0x389278=_0x47ce7a['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a73ed?_0x469fa7:_0x389278;}_0x47ce7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x35d469){if('formatBlock'!=_0x35d469['type'])return;const {data:_0xf4e9b8}=_0x35d469;if(!_0xf4e9b8)return;let _0x108308,_0xfd8e29,_0x565322,_0x33e3d2;switch(_0xf4e9b8['commandName']){case'bulletedList':_0x565322=_0xf4e9b8['commandParams'][0x0]['forceValue'],_0x33e3d2=_0x949024(_0xf4e9b8['commandName']),_0x108308=_0x565322?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x33e3d2&&_0x47ce7a['config']['get']('list.multiBlock')||(_0x108308='*Change\x20to:*\x20%0'),_0xfd8e29={'type':'format','content':o(_0x364186,_0x108308,o(_0x364186,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x565322=_0xf4e9b8['commandParams'][0x0]['forceValue'],_0x33e3d2=_0x949024(_0xf4e9b8['commandName']),_0x108308=_0x565322?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x33e3d2&&_0x47ce7a['config']['get']('list.multiBlock')||(_0x108308='*Change\x20to:*\x20%0'),_0xfd8e29={'type':'format','content':o(_0x364186,_0x108308,o(_0x364186,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x108308='*Indent:*\x20%0',_0xfd8e29={'type':'format','content':o(_0x364186,_0x108308,o(_0x364186,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x108308=function(_0x3e6de7){const _0x44fd5b=_0x3e6de7['getFirstRange']();let _0x59c844=_0x44fd5b['start']['nodeAfter'];for(;_0x59c844&&_0x44fd5b['containsItem'](_0x59c844);){if(_0x59c844['getAttribute']('listIndent')>0x0)return!0x1;_0x59c844=_0x59c844['nextSibling'];}return!0x0;}(_0x35d469)?o(_0x364186,'*Format:*\x20remove\x20from\x20%0',o(_0x364186,function(_0x5d9543){return'ELEMENT_'+_0x5d9543['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x35d469))):o(_0x364186,'*Outdent:*\x20%0',o(_0x364186,'ELEMENT_LIST_ITEM')),_0xfd8e29={'type':'format','content':_0x108308};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xf4e9b8['multipleBlocks']&&(_0x108308='*Merge:*\x20%0',_0xfd8e29={'type':'deletion','content':o(_0x364186,_0x108308,o(_0x364186,'ELEMENT_LIST_ITEM'))});}return _0xfd8e29;});}}function Be(_0x5ce3d8){let _0x337213=_0x5ce3d8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x337213;){const _0x261fa2=_0x337213['getAttribute']('listItemId');if(!_0x261fa2)return!0x1;if(_0x261fa2==_0x5ce3d8['data']['newValue'])return'newValue';if(_0x261fa2==_0x5ce3d8['data']['oldValue'])return'oldValue';_0x337213=_0x337213['previousSibling'];}return!0x1;}class Z extends _0x150e1e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x383926=this['editor']['config']['get']('list.properties'),_0x3b4bfc=this['editor']['plugins']['get']('TrackChangesEditing');_0x383926['styles']&&(_0x3b4bfc['enableDefaultAttributesIntegration']('listStyle'),_0x3b4bfc['registerBlockAttribute']('listStyle')),_0x383926['reversed']&&(_0x3b4bfc['enableDefaultAttributesIntegration']('listReversed'),_0x3b4bfc['registerBlockAttribute']('listReversed')),_0x383926['startIndex']&&(_0x3b4bfc['enableDefaultAttributesIntegration']('listStart'),_0x3b4bfc['registerBlockAttribute']('listStart'));const _0x5b68e8={'type':'format','content':''};_0x3b4bfc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5a93f9=this['editor']['locale'];_0x3b4bfc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5a93f9,'FORMAT_LIST_REVERSED')),_0x3b4bfc['descriptionFactory']['registerDescriptionCallback'](_0x5d07ef=>{const {data:_0x116498}=_0x5d07ef;if(_0x116498&&'listReversed'==_0x116498['key'])return null==_0x116498['newValue']||0x0==_0x116498['newValue']&&null==_0x116498['oldValue']?_0x5b68e8:void 0x0;}),_0x3b4bfc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5a93f9,'FORMAT_LIST_START')),_0x3b4bfc['descriptionFactory']['registerDescriptionCallback'](_0x1084f5=>{const {data:_0x2b28b8}=_0x1084f5;if(_0x2b28b8&&'listStart'==_0x2b28b8['key'])return null==_0x2b28b8['newValue']||0x1==_0x2b28b8['newValue']&&null==_0x2b28b8['oldValue']?_0x5b68e8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x119d4c=>{if(_0x119d4c['batch']['isUndo'])return!0x1;let _0x4d7ad6=!0x1;const _0x3d89dd=_0x3b4bfc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x344401=>{const _0x2c3e32=_0x3b4bfc['_getAttributeKey'](_0x344401);return'listStart'==_0x2c3e32||'listReversed'==_0x2c3e32;});for(const _0x2420c0 of _0x3d89dd){const _0xdb425c=_0x2420c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xdb425c||'customNumbered'==_0xdb425c)continue;_0x3b4bfc['_findSuggestions'](_0x2420c0['getFirstRange'](),'attribute')['find'](_0x101a52=>'listType'==_0x3b4bfc['_getAttributeKey'](_0x101a52['suggestion']))||(_0x119d4c['removeMarker'](_0x2420c0['getFirstMarker']()),_0x4d7ad6=!0x0);}return _0x4d7ad6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x33b8e8){const _0x5b3b4b=this['editor']['locale'],{data:_0x5c939e}=_0x33b8e8,_0x2365f1={'type':'format','content':''};if(!_0x5c939e||'listStyle'!=_0x5c939e['key'])return;if(!_0x5c939e['oldValue'])return'default'==_0x5c939e['newValue']?_0x2365f1:{'type':'format','content':''+o(_0x5b3b4b,'*Set\x20format:*\x20%0',o(_0x5b3b4b,this['_getTranslationKeyForListStyle'](_0x5c939e['newValue'])))};if(!_0x5c939e['newValue']){if('default'==_0x5c939e['oldValue'])return _0x2365f1;let _0x4ca3ae=_0x33b8e8['head'];for(;_0x4ca3ae;){if(_0x4ca3ae['data']&&'listType'==_0x4ca3ae['data']['key']&&_0x4ca3ae['data']['newValue'])return _0x2365f1;_0x4ca3ae=_0x4ca3ae['next'];}return{'type':'format','content':''+o(_0x5b3b4b,'*Remove\x20format:*\x20%0',o(_0x5b3b4b,this['_getTranslationKeyForListStyle'](_0x5c939e['oldValue'])))};}if('default'!=_0x5c939e['newValue'])return{'type':'format','content':''+o(_0x5b3b4b,'*Set\x20format:*\x20%0',o(_0x5b3b4b,this['_getTranslationKeyForListStyle'](_0x5c939e['newValue'])))};let _0x48eeca=_0x33b8e8['head'];for(;_0x48eeca;){if(_0x48eeca['data']&&'listType'==_0x48eeca['data']['key']&&_0x48eeca['data']['newValue']&&_0x48eeca['data']['oldValue'])return _0x2365f1;_0x48eeca=_0x48eeca['next'];}return{'type':'format','content':o(_0x5b3b4b,'*Set\x20format:*\x20%0',o(_0x5b3b4b,'ELEMENT_'+_0x33b8e8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4873f3=this['editor'],_0x4011b8=_0x4873f3['locale'];_0x4873f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bba17=>{if('formatBlock'!=_0x3bba17['type'])return;const {data:_0x3d74ad}=_0x3bba17;if(!_0x3d74ad)return;let _0x196d1e,_0x5f3f84;switch(_0x3d74ad['commandName']){case'listStyle':_0x196d1e='*Change\x20to:*\x20%0',_0x5f3f84={'type':'format','content':o(_0x4011b8,_0x196d1e,o(_0x4011b8,this['_getTranslationKeyForListStyle'](_0x3d74ad['commandParams'][0x0]['type'])))};break;case'listReversed':_0x196d1e=_0x3d74ad['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5f3f84={'type':'format','content':o(_0x4011b8,_0x196d1e)};break;case'listStart':_0x196d1e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f3f84={'type':'format','content':o(_0x4011b8,_0x196d1e,_0x3d74ad['commandParams'][0x0]['startIndex'])};}return _0x5f3f84;});}['_getTranslationKeyForListStyle'](_0x34fd0f){return'ELEMENT_'+function(_0x121b7c){if(Re['includes'](_0x121b7c))return'bulleted';if(De['includes'](_0x121b7c))return'numbered';return null;}(_0x34fd0f)['toUpperCase']()+'_LIST_'+_0x34fd0f['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x150e1e{['afterInit'](){const _0x1519a5=this['editor'];_0x1519a5['commands']['get']('emoji')&&_0x1519a5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x150e1e{static get['requires'](){return[_0x5c8e70];}['init'](){const _0xf6d39=this['editor'],_0x16269c=_0xf6d39['plugins']['get']('TrackChangesEditing'),_0x1fabe0=_0xf6d39['commands']['get']('enter');_0x16269c['enableCommand']('enter',()=>{_0xf6d39['model']['change'](_0x209fee=>{const _0x4609fa=_0xf6d39['model']['document']['selection'],_0x22f110=_0x4609fa['getFirstPosition'](),_0x12fce1=_0x4b855c['fromRange'](_0x4609fa['getFirstRange']());if(_0x1fabe0['enterBlock'](_0x209fee)){const _0x4dbdbb=_0xf6d39['model']['createPositionAt'](_0x22f110['parent']['nextSibling'],0x0),_0x48eb2f=_0x209fee['createRange'](_0x22f110,_0x4dbdbb);_0x16269c['markInsertion'](_0x48eb2f);}else _0x209fee['setSelection'](_0x209fee['createRange'](_0x12fce1['end']));_0x12fce1['detach'](),_0x1fabe0['fire']('afterExecute',{'writer':_0x209fee});});}),_0xf6d39['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0xf6d39,'split'),{'priority':'high'}),_0xf6d39['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x335922,_0x53a8e5,_0x549ffa)=>{const _0x22a18d=_0x549ffa['mapper']['markerNameToElements'](_0x53a8e5['markerName']);if(_0x22a18d){for(const _0x3fd686 of _0x22a18d)_0x3fd686['hasClass']('ck-suggestion-marker-split')&&(_0x549ffa['mapper']['unbindElementFromMarkerName'](_0x3fd686,_0x53a8e5['markerName']),_0x549ffa['writer']['remove'](_0x3fd686));}},{'priority':'high'}),_0xf6d39['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1a1614,_0x1a3eb1,_0x35490f)=>{_0x35490f['options']['showSuggestionHighlights']&&Ve(_0xf6d39,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1a1614,_0x1a3eb1,_0x35490f);},{'priority':'high'});}}class it extends _0x150e1e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x336030=this['editor']['plugins']['get']('TrackChangesEditing');_0x336030['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x336030['enableCommand']('findNext'),_0x336030['enableCommand']('findPrevious'),_0x336030['enableCommand']('replace'),_0x336030['enableCommand']('replaceAll');}['handleFindCommand'](_0x41da43,_0x4927dd,_0x49c8bc={}){const _0x5dba28=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x41da43(_0xedd9bb=>{let _0x13dabf=('string'==typeof _0x4927dd?_0x5dba28['findByTextCallback'](_0x4927dd,_0x49c8bc):_0x4927dd)(_0xedd9bb);Array['isArray'](_0x13dabf)&&(_0x13dabf={'results':_0x13dabf,'searchText':'string'==typeof _0x4927dd?_0x4927dd:''});const _0x5d4ee3=_0x13dabf['results']['filter'](_0x51aa45=>!0x1===this['_isInDeletionRange'](_0x51aa45,_0xedd9bb['item']));return{..._0x13dabf,'results':_0x5d4ee3};},_0x49c8bc);}['_isInDeletionRange'](_0x4a30c1,_0x1024c6){const _0x10f86e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1024c6,_0x4a30c1['start']),this['editor']['model']['createPositionAt'](_0x1024c6,_0x4a30c1['end']));for(const _0x581ef3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x10f86e['getIntersection'](_0x581ef3['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x150e1e{['afterInit'](){const _0x5e1e1a=this['editor']['locale'],_0x41cf3c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3688ba,commandName:_0x46b1f4}of eo)this['editor']['plugins']['has'](_0x3688ba)&&(_0x41cf3c['enableDefaultAttributesIntegration'](_0x46b1f4),_0x41cf3c['registerInlineAttribute'](_0x46b1f4));_0x41cf3c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5e1e1a,'FORMAT_FONT_SIZE')),_0x41cf3c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5e1e1a,'FORMAT_FONT_FAMILY')),_0x41cf3c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5e1e1a,'FORMAT_FONT_COLOR')),_0x41cf3c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5e1e1a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e695b=this['editor'],_0x5c5a40=_0x4e695b['locale'];_0x4e695b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274dfd=>{const _0x4ba478=_0x5c5a40['t'];if('formatInline'!=_0x274dfd['type'])return;const {data:_0x27808a}=_0x274dfd;if(null!=_0x27808a){if('fontSize'==_0x27808a['commandName']){const _0x457bdf=_0x27808a['commandParams'][0x0]['value'];if(_0x457bdf){const _0x25e834=_0x4ba478(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4facd8=>_0x4facd8['model']==_0x457bdf)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c5a40,'*Set\x20font\x20size:*\x20%0',_0x25e834)};}return{'type':'format','content':o(_0x5c5a40,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27808a['commandName']){const _0x282525=_0x27808a['commandParams'][0x0]['value'];return _0x282525?{'type':'format','content':o(_0x5c5a40,'*Set\x20font\x20family:*\x20%0',_0x282525)}:{'type':'format','content':o(_0x5c5a40,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27808a['commandName']){const _0x49b76e=_0x27808a['commandParams'][0x0]['value'];if(_0x49b76e){const _0x56c7ab=_0x495c3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x342e5e=>_0x342e5e['model']==_0x49b76e);let _0x54fa3d=_0x49b76e,_0x4fdfb6='';return _0x56c7ab&&(_0x54fa3d=_0x56c7ab['label'],_0x4fdfb6=_0x4ba478(_0x54fa3d)['toLowerCase']()),{'type':'format','content':o(_0x5c5a40,'*Set\x20font\x20color:*\x20%0',_0x4fdfb6)['trim'](),'color':{'value':_0x49b76e,'title':_0x4fdfb6||_0x54fa3d}};}return{'type':'format','content':o(_0x5c5a40,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27808a['commandName']){const _0x510002=_0x27808a['commandParams'][0x0]['value'];if(_0x510002){const _0x5784f7=_0x495c3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x458a0b=>_0x458a0b['model']==_0x510002);let _0x54d882=_0x510002,_0xc26d75='';return _0x5784f7&&(_0x54d882=_0x5784f7['label'],_0xc26d75=_0x4ba478(_0x54d882)['toLowerCase']()),{'type':'format','content':o(_0x5c5a40,'*Set\x20font\x20background\x20color:*\x20%0',_0xc26d75)['trim'](),'color':{'value':_0x510002,'title':_0xc26d75||_0x54d882}};}return{'type':'format','content':o(_0x5c5a40,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x150e1e{['afterInit'](){const _0x389727=this['editor'],_0x4a3908=_0x389727['plugins']['get']('TrackChangesEditing'),_0x113fc1=_0x389727['commands']['get']('copyFormat'),_0x44c7ef=_0x389727['commands']['get']('pasteFormat');_0x113fc1&&_0x44c7ef&&(_0x4a3908['enableDefaultAttributesIntegration']('pasteFormat'),_0x4a3908['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x420d78=this['editor'],_0x270d0b=_0x420d78['locale'];_0x420d78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2400e1=>{if('formatBlock'!=_0x2400e1['type']&&'formatInline'!=_0x2400e1['type'])return;const {data:_0x58650a}=_0x2400e1;if(_0x58650a&&'pasteFormat'===_0x58650a['commandName']){const _0x31ce71=[],_0x4bef5b=_0x58650a['commandParams'][0x0];for(const [_0x2ef048,_0x55833c]of Object['entries'](_0x4bef5b))_0x31ce71['push'](ro(_0x420d78,_0x2ef048,_0x55833c));return _0x31ce71['length']?{'type':'format','content':o(_0x270d0b,'*Set\x20format\x20to:*\x20%0',_0x31ce71['join'](',\x20'))}:{'type':'format','content':o(_0x270d0b,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3353d9,_0x556ba1,_0x45a288){const _0x206421=_0x3353d9['locale']['t'],_0x1e7892=_0x556ba1['split'](/(?=[A-Z])/)['join']('\x20'),_0x3cfb44=_0x206421(_0x1e7892['charAt'](0x0)['toUpperCase']()+_0x1e7892['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x45a288)return _0x3cfb44;if('fontColor'===_0x556ba1||'fontBackgroundColor'===_0x556ba1){const _0x29e471=_0x495c3(_0x3353d9['config']['get']('fontColor.colors'))['find'](_0x4f899c=>_0x4f899c['model']==_0x45a288);return _0x3cfb44+'\x20('+(_0x29e471?_0x206421(_0x29e471['label'])['toLowerCase']():_0x45a288)+')';}if('fontSize'===_0x556ba1&&isNaN(parseFloat(_0x45a288))){const _0xf5f121=_0x3353d9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3353d9['config']['get']('fontSize.options'))['find'](_0x5ef2ba=>_0x5ef2ba['model']==_0x45a288);return _0x3cfb44+'\x20('+(_0xf5f121?_0x206421(_0xf5f121['title'])['toLowerCase']():_0x45a288)+')';}return _0x3cfb44+'\x20('+_0x45a288+')';}class ot extends _0x150e1e{['_headingOptions'];['afterInit'](){const _0x222dac=this['editor'];if(!_0x222dac['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x222dac['config']['get']('heading.options');const _0x1d0814=_0x222dac['locale'],_0x36893c=_0x222dac['plugins']['get']('TrackChangesEditing');_0x36893c['enableDefaultAttributesIntegration']('heading');for(const _0xa69024 of this['_headingOptions'])'paragraph'!=_0xa69024['model']&&_0x36893c['descriptionFactory']['registerElementLabel'](_0xa69024['model'],_0x2286fb=>{const _0x3adb02=this['_getHeadingLevel'](_0xa69024['model']);return null!==_0x3adb02?_0x28e04d(_0x2286fb,_0x3adb02):_0x2491f7(_0x2286fb,_0xa69024['title']);});function _0x28e04d(_0x19080b,_0x6d8586){return o(_0x1d0814,'ELEMENT_HEADING',[_0x19080b,_0x6d8586]);}function _0x2491f7(_0xd71edb,_0x331dc0){return o(_0x1d0814,'ELEMENT_HEADING_CUSTOM',[_0xd71edb,_0x331dc0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b556e=this['editor'],_0x58400f=_0x3b556e['locale'];function _0x4d57e3(_0x50e118,_0xe36fb3){return o(_0x58400f,'ELEMENT_HEADING_CUSTOM',[_0x50e118,_0xe36fb3]);}_0x3b556e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4807e3=>{if('formatBlock'!=_0x4807e3['type'])return;const {data:_0xd0c1ae}=_0x4807e3;if(_0xd0c1ae&&'heading'==_0xd0c1ae['commandName']){const _0xaec2ec=_0xd0c1ae['commandParams'][0x0]['value'],_0x2530c2=this['_getHeadingLevel'](_0xaec2ec);if(null!==_0x2530c2)return{'type':'format','content':o(_0x58400f,'*Change\x20to:*\x20%0',(_0x465604=0x1,_0x258ae0=_0x2530c2,o(_0x58400f,'ELEMENT_HEADING',[_0x465604,_0x258ae0])))};const _0x2f32cf=this['_headingOptions']['find'](_0xf0c17c=>_0xf0c17c['model']===_0xaec2ec)['title'];return{'type':'format','content':o(_0x58400f,'*Change\x20to:*\x20%0',_0x4d57e3(0x1,_0x2f32cf))};}var _0x465604,_0x258ae0;});}['_getHeadingLevel'](_0x481709){const _0x16d3f4=_0x481709['match'](/^heading(\d+)/);if(_0x16d3f4)return _0x16d3f4[0x1];const _0x4adf8f=this['_headingOptions']?.['find'](_0x346348=>_0x346348['model']==_0x481709);if(_0x4adf8f&&_0x4adf8f['view']){const _0x1ed882=_0x4adf8f['view'],_0x3f1794=(_0x1ed882['name']??_0x1ed882)['match'](/^h(\d+)/);if(_0x3f1794)return _0x3f1794[0x1];}return null;}}class rt extends _0x150e1e{['afterInit'](){const _0x289180=this['editor'];if(!_0x289180['plugins']['has']('HighlightEditing'))return;const _0x3f773f=_0x289180['plugins']['get']('TrackChangesEditing'),_0x306dea=_0x289180['locale'];_0x3f773f['enableDefaultAttributesIntegration']('highlight'),_0x3f773f['registerInlineAttribute']('highlight'),_0x3f773f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x306dea,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f535f=this['editor'],_0x56e95d=_0x3f535f['locale'];_0x3f535f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f2c55=>{if('formatInline'!=_0x1f2c55['type'])return;const {data:_0x5dcfe0}=_0x1f2c55;if(_0x5dcfe0&&'highlight'==_0x5dcfe0['commandName']){const _0x402145=_0x56e95d['t'],_0x303072=_0x5dcfe0['commandParams'][0x0]['value'];if(_0x303072){const _0x255ab8=_0x3f535f['config']['get']('highlight.options')['find'](_0x524a3e=>_0x524a3e['model']==_0x303072),_0x2eba02=_0x402145(_0x255ab8['title'])['toLowerCase']();return{'type':'format','content':o(_0x56e95d,'*Set\x20highlight:*\x20%0',_0x2eba02),'color':{'value':_0x255ab8['color'],'title':_0x255ab8['title']}};}return{'type':'format','content':o(_0x56e95d,'*Remove\x20highlight*',o(_0x56e95d,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x150e1e{['afterInit'](){const _0x562017=this['editor'];if(!_0x562017['plugins']['has']('HorizontalLineEditing'))return;_0x562017['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xfd2b=_0x562017['plugins']['get']('TrackChangesEditing'),_0x476502=_0x562017['locale'];_0xfd2b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1cf62d=>o(_0x476502,'ELEMENT_HORIZONTAL_LINE',_0x1cf62d)),_0x562017['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4b41a5,{writer:_0x212003,options:_0x3ac175})=>{if(!_0x3ac175['showSuggestionHighlights'])return null;const _0x8c45b6=_0x212003['createContainerElement']('div'),_0x14eecf=_0x212003['createEmptyElement']('hr');return _0x212003['addClass']('ck-horizontal-line',_0x8c45b6),_0x212003['insert'](_0x212003['createPositionAt'](_0x8c45b6,0x0),_0x14eecf),_0x8c45b6;},'converterPriority':'high'});}}class ct extends _0x150e1e{['afterInit'](){const _0x24dc49=this['editor'];if(!_0x24dc49['plugins']['has']('HtmlEmbed'))return;const _0x4f13c8=_0x24dc49['plugins']['get']('TrackChangesEditing'),_0x1ea718=_0x24dc49['locale'];_0x4f13c8['descriptionFactory']['registerElementLabel']('rawHtml',_0x4ba8d2=>o(_0x1ea718,'ELEMENT_HTML_EMBED',_0x4ba8d2)),_0x4f13c8['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4f13c8['registerBlockAttribute']('value'),_0x4f13c8['descriptionFactory']['registerDescriptionCallback'](_0x55cc25=>{if('attribute'!=_0x55cc25['type'])return;const {data:_0xc0eda0}=_0x55cc25;if(_0xc0eda0&&'value'==_0xc0eda0['key']&&_0x55cc25['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5c6c11=o(_0x1ea718,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ea718,'*Change\x20%0\x20content*',_0x5c6c11)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cf160=this['editor'],_0x3f0ab5=_0x5cf160['locale'];_0x5cf160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34466b=>{if('formatBlock'!=_0x34466b['type'])return;const {data:_0x3de57a}=_0x34466b;if(_0x3de57a&&'htmlEmbed'==_0x3de57a['commandName']){const _0x44c576=o(_0x3f0ab5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f0ab5,'*Change\x20%0\x20content*',_0x44c576)};}});}}class ut extends _0x150e1e{['afterInit'](){const _0x20b55b=this['editor'];if(!_0x20b55b['plugins']['has']('ImageEditing'))return;const _0x3d8a73=_0x20b55b['plugins']['get']('TrackChangesEditing'),_0x2f7d1e=_0x20b55b['plugins']['get']('ImageUtils'),_0x499cd0=_0x20b55b['locale'];_0x3d8a73['enableCommand']('insertImage'),_0x3d8a73['descriptionFactory']['registerElementLabel']('imageBlock',_0x303428=>o(_0x499cd0,'ELEMENT_IMAGE',_0x303428)),_0x3d8a73['descriptionFactory']['registerElementLabel']('imageInline',_0x3794ee=>o(_0x499cd0,'ELEMENT_INLINE_IMAGE',_0x3794ee)),_0x3d8a73['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x499cd0,'ELEMENT_CAPTION')),_0x20b55b['plugins']['has']('ImageUploadEditing')&&_0x3d8a73['enableCommand']('uploadImage'),_0x20b55b['plugins']['has']('ImageBlockEditing')&&_0x20b55b['plugins']['has']('ImageInlineEditing')&&(_0x3d8a73['enableCommand']('imageTypeInline',(_0x64028b,_0x1780e6)=>{const _0x50a35a=_0x2f7d1e['getClosestSelectedImageElement'](_0x20b55b['model']['document']['selection']);_0x20b55b['model']['change'](()=>{_0x3d8a73['markBlockFormat'](_0x50a35a,{'commandName':'imageTypeInline','commandParams':[_0x1780e6]},[],'convertBlockImageToInline');});}),_0x3d8a73['enableCommand']('imageTypeBlock',(_0x367fb6,_0x5dc9f6)=>{_0x20b55b['model']['change'](_0x1bfe7c=>{let _0x294088=_0x2f7d1e['getClosestSelectedImageElement'](_0x20b55b['model']['document']['selection']),_0x564935=_0x1bfe7c['createRangeOn'](_0x294088);const _0x48afb5=_0x266e89['fromPosition'](_0x564935['start'],'toPrevious'),_0x30102f=_0x266e89['fromPosition'](_0x564935['end'],'toNext');_0x3d8a73['forceDefaultExecution'](()=>_0x367fb6(_0x5dc9f6)),_0x294088=_0x2f7d1e['getClosestSelectedImageElement'](_0x20b55b['model']['document']['selection']),_0x564935=_0x1bfe7c['createRangeOn'](_0x294088);const _0x7dfeb5=_0x1bfe7c['createRange'](_0x48afb5,_0x30102f);_0x48afb5['detach'](),_0x30102f['detach'](),_0x3d8a73['markBlockFormat'](_0x294088,{'commandName':'imageTypeInline','commandParams':[_0x5dc9f6]},[],'convertInlineImageToBlock'),_0x7dfeb5['start']['isBefore'](_0x564935['start'])&&_0x3d8a73['markInsertion'](_0x1bfe7c['createRange'](_0x7dfeb5['start'],_0x564935['start']),'convertInlineImageToBlock'),_0x564935['end']['isBefore'](_0x7dfeb5['end'])&&_0x3d8a73['markInsertion'](_0x1bfe7c['createRange'](_0x564935['end'],_0x7dfeb5['end']),'convertInlineImageToBlock');});}),_0x3d8a73['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3d8a73['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3d8a73['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3d8a73['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3d8a73['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3d8a73['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2355b0])=>{const _0x13838c=_0x3d8a73['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3ab266=_0x2355b0['start'],_0x17ce1c=_0x2355b0['end'];const _0xbc4ee2=_0x20b55b['model']['schema']['getNearestSelectionRange'](_0x3ab266,'backward'),_0x4573b2=_0x20b55b['model']['schema']['getNearestSelectionRange'](_0x17ce1c,'forward');_0xbc4ee2['isCollapsed']&&(_0x3ab266=_0xbc4ee2['start']),_0x4573b2['isCollapsed']&&(_0x17ce1c=_0x4573b2['end']),_0x13838c([_0x20b55b['model']['createRange'](_0x3ab266,_0x17ce1c)]);}),_0x3d8a73['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5e20ba),_0x3d8a73['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5e20ba)),_0x20b55b['plugins']['has']('ImageCaptionEditing')&&(_0x3d8a73['enableCommand']('toggleImageCaption',(_0x5ddf40,_0x774819)=>{const _0x2d1e0e=_0x20b55b['plugins']['get']('ImageCaptionUtils');let _0x412994=_0x2f7d1e['getClosestSelectedImageElement'](_0x20b55b['model']['document']['selection']),_0x511ac9=_0x2d1e0e['getCaptionFromImageModelElement'](_0x412994);_0x20b55b['model']['change'](()=>{if(_0x511ac9)return void _0x3d8a73['markDeletion'](_0x20b55b['model']['createRangeOn'](_0x511ac9));const _0x169f83=_0x2f7d1e['isBlockImage'](_0x412994);_0x5ddf40(_0x774819),_0x412994=_0x2f7d1e['getClosestSelectedImageElement'](_0x20b55b['model']['document']['selection']),_0x511ac9=_0x2d1e0e['getCaptionFromImageModelElement'](_0x412994),_0x3d8a73['markInsertion'](_0x20b55b['model']['createRangeOn'](_0x511ac9),_0x169f83?null:'imageCaption');});}),_0x3d8a73['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5e20ba));const _0x4e72c6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x462171(_0x4ab9fb,_0x46d46f){const _0x4031f3=_0x4e72c6['findIndex'](({type:_0x5ec2cb,subType:_0x41ed66})=>_0x4ab9fb['type']==_0x5ec2cb&&_0x4ab9fb['subType']==_0x41ed66),_0x329a2d=_0x4e72c6['findIndex'](({type:_0x456dac,subType:_0x3c19ad})=>_0x46d46f['type']==_0x456dac&&_0x46d46f['subType']==_0x3c19ad);if(_0x4031f3<0x0||_0x329a2d<0x0)return!0x1;const _0x35ce6a=_0x4ab9fb['getFirstRange'](),_0x3eecce=_0x46d46f['getFirstRange']();if((0x0==_0x4031f3||0x1==_0x4031f3)&&0x2==_0x329a2d&&_0x35ce6a['isIntersecting'](_0x3eecce))return!0x0;if(0x2==_0x4031f3&&0x3==_0x329a2d){const _0x30ef3d=_0x3d8a73['_findSuggestions'](_0x35ce6a,'insertion')['filter'](({suggestion:_0x2de62a,meta:_0x460d12})=>_0x460d12['isOwn']&&'convertInlineImageToBlock'==_0x2de62a['subType']);if(_0x30ef3d['length']>0x1&&_0x3eecce['end']['isEqual'](_0x35ce6a['start']))return!0x0;if(0x1==_0x30ef3d['length']&&(_0x35ce6a['start']['isEqual'](_0x3eecce['end'])||_0x35ce6a['end']['isEqual'](_0x3eecce['start'])))return!0x0;}if(0x3==_0x4031f3&&0x3==_0x329a2d&&_0x35ce6a['start']['isBefore'](_0x3eecce['start'])){const _0x212256=_0x35ce6a['end']['nodeAfter'],_0x1e1b6e=_0x3eecce['start']['nodeBefore'];return _0x2f7d1e['isBlockImage'](_0x212256)&&_0x212256===_0x1e1b6e;}return!0x1;}function _0x5e20ba(_0x162133,_0x267f9e){return _0x462171(_0x162133,_0x267f9e)?[_0x162133,_0x267f9e]:_0x462171(_0x267f9e,_0x162133)?[_0x267f9e,_0x162133]:null;}_0x20b55b['plugins']['has']('ImageResize')&&(_0x3d8a73['enableDefaultAttributesIntegration']('resizeImage'),_0x3d8a73['registerBlockAttribute']('resizedWidth'),_0x3d8a73['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x499cd0,'FORMAT_IMAGE_SIZE'))),_0x20b55b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3d8a73['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3d8a73['registerBlockAttribute']('alt')),_0x20b55b['plugins']['has']('PictureEditing')&&(_0x3d8a73['registerBlockAttribute']('sources'),_0x3d8a73['descriptionFactory']['registerDescriptionCallback'](_0x58fefa=>{if('attribute'!=_0x58fefa['type'])return;const {data:_0x234ee7}=_0x58fefa;return _0x234ee7&&'sources'==_0x234ee7['key']?{'type':'format','content':''}:void 0x0;})),_0x20b55b['plugins']['has']('ImageSizeAttributes')&&(_0x3d8a73['registerBlockAttribute']('width'),_0x3d8a73['registerBlockAttribute']('height'),_0x3d8a73['descriptionFactory']['registerDescriptionCallback'](_0xce2220=>{if('attribute'!=_0xce2220['type'])return;const {data:_0x3685f8}=_0xce2220;return!_0x3685f8||'width'!=_0x3685f8['key']&&'height'!=_0x3685f8['key']?void 0x0:{'type':'format','content':''};})),_0x3d8a73['descriptionFactory']['registerDescriptionCallback'](_0x290f50=>{if(!!_0x4e72c6['find'](({type:_0x542cb5,subType:_0x3c9505})=>_0x290f50['type']==_0x542cb5&&_0x290f50['subType']==_0x3c9505))return _0x290f50['previous']?{}:void 0x0;}),_0x3d8a73['descriptionFactory']['registerDescriptionCallback'](_0x2547ac=>{if('insertion'==_0x2547ac['type']||'deletion'==_0x2547ac['type']){const _0x5976ba=_0x2547ac['getContainedElement']();if(_0x5976ba&&_0x5976ba['is']('element','caption'))return{'type':'insertion'==_0x2547ac['type']?'addObject':'removeObject','element':_0x5976ba,'quantity':0x1};}}),_0x3d8a73['descriptionFactory']['registerDescriptionCallback'](_0x39bbfc=>'formatBlock'==_0x39bbfc['type']&&'convertInlineImageToBlock'==_0x39bbfc['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x39bbfc['type']&&'convertBlockImageToInline'==_0x39bbfc['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3d8a73['descriptionFactory']['registerDescriptionCallback'](_0x34d9cd=>{if('attribute'!=_0x34d9cd['type'])return;const {data:_0xb8f909}=_0x34d9cd;if(!_0xb8f909||'alt'!=_0xb8f909['key'])return;const _0x3083c2=_0xb8f909['newValue'];return _0x3083c2?{'type':'format','content':o(_0x499cd0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3083c2+'\x22')}:{'type':'format','content':o(_0x499cd0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d59a5=this['editor'],_0x218f0d=_0x4d59a5['locale'];_0x4d59a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41e8b6=>{if('formatBlock'!=_0x41e8b6['type']&&'formatInline'!=_0x41e8b6['type'])return;const {data:_0x6ff3ed}=_0x41e8b6;if(_0x6ff3ed){if('imageTextAlternative'==_0x6ff3ed['commandName']){const _0x2e00e5=_0x6ff3ed['commandParams'][0x0]['newValue'];return _0x2e00e5?{'type':'format','content':o(_0x218f0d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e00e5+'\x22')}:{'type':'format','content':o(_0x218f0d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x6ff3ed['commandName']){const _0x5bf135=_0x6ff3ed['commandParams'][0x0]['width'];return _0x5bf135?{'type':'format','content':o(_0x218f0d,'*Set\x20image\x20width:*\x20%0',_0x5bf135)}:{'type':'format','content':o(_0x218f0d,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x150e1e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x14b154=this['editor']['locale'],_0x4d0385=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d0385['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4d0385['registerBlockAttribute']('src'),_0x4d0385['descriptionFactory']['registerDescriptionCallback'](_0x218f3f=>{if('attribute'!=_0x218f3f['type'])return;const {data:_0x9d1c65}=_0x218f3f;return _0x9d1c65&&'src'==_0x9d1c65['key']?_0x9d1c65['newValue']&&_0x9d1c65['oldValue']?{'type':'format','content':o(_0x14b154,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c298c=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c298c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c298c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c298c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c298c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42d655=this['editor'],_0x34226d=_0x42d655['locale'];_0x42d655['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a6730=>{if('formatBlock'!=_0x2a6730['type']&&'formatInline'!=_0x2a6730['type'])return;const {data:_0xd6250}=_0x2a6730;if(!_0xd6250||'replaceImageSource'!=_0xd6250['commandName'])return;return{'type':'format','content':o(_0x34226d,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x150e1e{['afterInit'](){const _0x16018b=this['editor'];if(!_0x16018b['plugins']['has']('ImageStyleEditing'))return;const _0x214eb3=_0x16018b['plugins']['get']('TrackChangesEditing'),_0x5478e3=_0x16018b['plugins']['get']('ImageUtils'),_0x117544={};_0x214eb3['enableCommand']('imageStyle',(_0x2209ca,_0x454e73)=>{const _0x3614db=_0x16018b['plugins']['get']('Users')['me'],_0x1a7ca2=_0x16018b['commands']['get']('imageStyle');let _0x2bb4f1=_0x5478e3['getClosestSelectedImageElement'](_0x16018b['model']['document']['selection']),_0x2e1f4c=_0x16018b['model']['createRangeOn'](_0x2bb4f1),_0x366256=_0x1a7ca2['value'];if(_0x366256==_0x454e73['value'])return;const _0xffdc39={'commandName':'imageStyle','commandParams':[_0x454e73],'formatGroupId':_0x2f3bfc()};_0x16018b['model']['change'](()=>{if(_0x214eb3['getSuggestions']()['filter'](_0x4ea883=>_0x4ea883['isInContent']&&_0x3614db==_0x4ea883['author']&&('formatBlock'==_0x4ea883['type']||'formatInline'==_0x4ea883['type'])&&('imageStylePreApply'==_0x4ea883['subType']||'imageStylePostApply'==_0x4ea883['subType'])&&_0x4ea883['getFirstRange']()['isEqual'](_0x2e1f4c))['forEach'](_0x49826d=>_0x214eb3['discardSuggestion'](_0x49826d['head'])),_0x2bb4f1=_0x5478e3['getClosestSelectedImageElement'](_0x16018b['model']['document']['selection']),_0x2e1f4c=_0x16018b['model']['createRangeOn'](_0x2bb4f1),_0x1a7ca2['refresh'](),_0x16018b['commands']['get']('imageTypeInline')['refresh'](),_0x16018b['commands']['get']('imageTypeBlock')['refresh'](),_0x366256=_0x1a7ca2['value'],_0x366256!=_0x454e73['value'])return _0x5478e3['isInlineImage'](_0x2bb4f1)&&_0x1a7ca2['shouldConvertImageType'](_0x454e73['value'],_0x2bb4f1)?(_0x2209ca({..._0x454e73,'setImageSizes':!0x1}),_0x2bb4f1=_0x5478e3['getClosestSelectedImageElement'](_0x16018b['model']['document']['selection']),void _0x214eb3['markBlockFormat'](_0x2bb4f1,{..._0xffdc39,'commandReversedParams':[{'value':_0x366256||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5478e3['isBlockImage'](_0x2bb4f1)?_0x214eb3['markBlockFormat'](_0x2bb4f1,_0xffdc39,[],'imageStylePostApply'):_0x214eb3['markInlineFormat'](_0x2e1f4c,_0xffdc39,'imageStylePostApply'));});});for(const _0x1aa580 of _0x16018b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x117544[_0x1aa580['name']]=_0x1aa580['title']['toLowerCase']();_0x214eb3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x214eb3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x214eb3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x214eb3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xf4687e])=>{_0x5478e3['setImageNaturalSizeAttributes'](_0xf4687e['getContainedElement']());}),_0x214eb3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x485de8,_0x2e7d16)=>{_0x214eb3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x485de8,{'commandName':_0x2e7d16['commandName'],'commandParams':_0x2e7d16['commandReversedParams']});}),_0x214eb3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x549cfe,_0x7a44ee){if(_0x54c9e6(_0x549cfe,_0x7a44ee))return[_0x549cfe,_0x7a44ee];if(_0x54c9e6(_0x7a44ee,_0x549cfe))return[_0x7a44ee,_0x549cfe];return null;});const _0x28f57a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54c9e6(_0x1c88f2,_0x5ddba5){const _0x2d3828=_0x28f57a['findIndex'](({type:_0x4530de,subType:_0x39b170})=>_0x1c88f2['type']==_0x4530de&&_0x1c88f2['subType']==_0x39b170),_0x13428b=_0x28f57a['findIndex'](({type:_0x2f19db,subType:_0x56d490})=>_0x5ddba5['type']==_0x2f19db&&_0x5ddba5['subType']==_0x56d490);if(_0x2d3828<0x0||_0x13428b<0x0)return!0x1;const _0x251037=_0x1c88f2['getFirstRange'](),_0x8ca371=_0x5ddba5['getFirstRange']();if((0x0==_0x2d3828||0x1==_0x2d3828)&&0x2==_0x13428b&&_0x251037['isIntersecting'](_0x8ca371))return!0x0;if(0x2==_0x2d3828&&0x3==_0x13428b){const _0x221200=_0x214eb3['_findSuggestions'](_0x251037,'insertion')['filter'](({suggestion:_0x5d91e2,meta:_0x5d9579})=>_0x5d9579['isOwn']&&'convertInlineImageToBlock'==_0x5d91e2['subType']);if(_0x221200['length']>0x1&&_0x8ca371['end']['isEqual'](_0x251037['start']))return!0x0;if(0x1==_0x221200['length']&&(_0x251037['start']['isEqual'](_0x8ca371['end'])||_0x251037['end']['isEqual'](_0x8ca371['start'])))return!0x0;}if(0x3==_0x2d3828&&0x3==_0x13428b&&_0x251037['start']['isBefore'](_0x8ca371['start'])){const _0x495997=_0x251037['end']['nodeAfter'],_0x512fae=_0x8ca371['start']['nodeBefore'];return _0x5478e3['isBlockImage'](_0x495997)&&_0x495997===_0x512fae;}return!0x1;}_0x16018b['model']['document']['registerPostFixer'](()=>{let _0x1d441a=!0x1;const _0x3256ad=Array['from'](_0x16018b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c46c7,data:_0x532167}of _0x3256ad){const {group:_0x37704a,type:_0x4f3e4d,subType:_0xb8b836,id:_0x49ddaa}=_0x214eb3['_splitMarkerName'](_0x3c46c7);if('suggestion'==_0x37704a&&_0x214eb3['hasSuggestion'](_0x49ddaa)){if('formatBlock'==_0x4f3e4d&&('imageStylePreApply'==_0xb8b836||'imageStylePostApply'==_0xb8b836)){const _0x49bfbf=_0x214eb3['getSuggestion'](_0x49ddaa);if(_0x532167['newRange']){const _0x5a8d8c=_0x49bfbf['getFirstRange']()['getContainedElement']();if(_0x5478e3['isBlockImage'](_0x5a8d8c))continue;_0x214eb3['discardSuggestion'](_0x49bfbf),_0x1d441a=!0x0;}}if('insertion'==_0x4f3e4d&&'imageCaption'==_0xb8b836&&!_0x532167['newRange']){const _0x3ca237=_0x214eb3['getSuggestion'](_0x49ddaa);_0x3ca237['next']&&_0x3ca237['next']['isInContent']&&(_0x214eb3['discardSuggestion'](_0x3ca237['next']),_0x1d441a=!0x0);}}}return _0x1d441a;}),this['_registerLegacyDescription'](_0x117544);}['_registerLegacyDescription'](_0x31d881){const _0x3853d2=this['editor'],_0x5b3c3f=_0x3853d2['locale'];_0x3853d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19f48d=>{if('formatBlock'!=_0x19f48d['type']&&'formatInline'!=_0x19f48d['type'])return;const {data:_0x1fc8a4}=_0x19f48d;if(!_0x1fc8a4||'imageStyle'!=_0x1fc8a4['commandName'])return;const _0x4091e9=_0x1fc8a4['commandParams'][0x0]['value'];return _0x49bf0b('side'===_0x4091e9?o(_0x5b3c3f,'FORMAT_SIDE_IMAGE'):_0x31d881[_0x4091e9]||_0x4091e9);function _0x49bf0b(_0x5dbab2){return{'type':'format','content':o(_0x5b3c3f,'*Format:*\x20%0',_0x5dbab2)};}});}}class gt extends _0x150e1e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x431fe1){super(_0x431fe1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x319452=this['editor'],_0x241e36=_0x319452['commands']['get']('importWord'),_0x1e2d23=_0x319452['commands']['get']('trackChanges');_0x241e36&&(_0x241e36['on']('execute',(_0x16c3a4,[,_0x31236b])=>{this['_trackChangesValueDuringImport']=_0x1e2d23['value'],_0x31236b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x241e36,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x241e36,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1e2d23['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x319452['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x521e39,_0x576327){const {suggestions:_0x2b145d}=_0x576327,_0x1761a8=this['editor']['commands']['get']('trackChanges'),_0x51f38d=_0x1761a8['value'];this['_trackChangesValueDuringImport']!==_0x51f38d&&(_0x1761a8['execute'](),this['_trackChangesExecuted']=!0x0),_0x2b145d&&_0x2b145d['forEach'](({id:_0x5ea69b,type:_0x579dcc,author:_0x1f9467,created_at:_0x3d664d})=>{const _0x4bbdd5={'id':_0x5ea69b,'type':_0x579dcc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1f9467,'createdAt':_0x3d664d?new Date(_0x3d664d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4bbdd5);});}}class lt extends _0x150e1e{['afterInit'](){const _0x88c632=this['editor'],_0x16b0eb=_0x88c632['plugins']['get']('TrackChangesEditing');if(_0x88c632['plugins']['has']('IndentEditing')&&(_0x16b0eb['enableCommand']('indent'),_0x16b0eb['enableCommand']('outdent')),_0x88c632['plugins']['has']('IndentBlock')){for(const _0x331716 of['indentBlock','outdentBlock'])_0x16b0eb['enableDefaultAttributesIntegration'](_0x331716);}const _0x448269=_0x88c632['locale'];_0x16b0eb['registerBlockAttribute']('blockIndent'),_0x16b0eb['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x448269,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x460d07=this['editor'],_0x1720c1=_0x460d07['locale'],_0x429e0d=_0x460d07['plugins']['get']('TrackChangesEditing');_0x429e0d['descriptionFactory']['registerDescriptionCallback'](_0x212d31=>{if('formatBlock'!=_0x212d31['type'])return;const {data:_0x4d426b}=_0x212d31;if(!_0x4d426b)return;if('indentBlock'!=_0x4d426b['commandName']&&'outdentBlock'!=_0x4d426b['commandName'])return;const _0x8af4d3=_0x212d31['getItems']()[0x0],_0x2a8413=_0x429e0d['descriptionFactory']['getItemLabel'](_0x8af4d3);return'indentBlock'==_0x4d426b['commandName']?{'type':'format','content':o(_0x1720c1,'*Indent:*\x20%0',_0x2a8413)}:'outdentBlock'==_0x4d426b['commandName']?{'type':'format','content':o(_0x1720c1,'*Outdent:*\x20%0',_0x2a8413)}:void 0x0;});}}class dt extends _0x150e1e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class mt extends _0x150e1e{['afterInit'](){const _0x3553f0=this['editor'];if(!_0x3553f0['plugins']['has']('LinkEditing'))return;const _0x2cb9e0=_0x3553f0['plugins']['get']('TrackChangesEditing'),_0x3307eb=_0x3553f0['commands']['get']('link');_0x2cb9e0['enableDefaultAttributesIntegration']('link'),_0x2cb9e0['enableDefaultAttributesIntegration']('unlink'),_0x2cb9e0['registerInlineAttribute']('linkHref');for(const _0x157a9f of _0x3307eb['manualDecorators'])_0x2cb9e0['registerInlineAttribute'](_0x157a9f['id']),_0x2cb9e0['descriptionFactory']['registerAttributeLabel'](_0x157a9f['id'],'link\x20('+_0x157a9f['label']['toLowerCase']()+')');_0x2cb9e0['descriptionFactory']['registerDescriptionCallback'](_0x2478b8=>{if('attribute'!=_0x2478b8['type'])return;const {data:_0x37be96}=_0x2478b8;if(!_0x37be96||'linkHref'!=_0x37be96['key'])return;const _0x505f88=_0x37be96['newValue'],_0x156d8a=_0x3553f0['locale'];return{'type':'format','content':null==_0x505f88?o(_0x156d8a,'*Remove\x20link*'):o(_0x156d8a,'*Set\x20link:*\x20%0','\x22'+_0x505f88+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f1eaa=this['editor'],_0x1299f5=_0x4f1eaa['locale'];_0x4f1eaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa676a=>{if('formatInline'!=_0xa676a['type'])return;const {data:_0x4ed392}=_0xa676a;if(_0x4ed392){if('link'==_0x4ed392['commandName']){const _0x56565a=_0x4ed392['commandParams'][0x0];return{'type':'format','content':o(_0x1299f5,'*Set\x20link:*\x20%0','\x22'+_0x56565a+'\x22')};}return'unlink'==_0x4ed392['commandName']?{'type':'format','content':o(_0x1299f5,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x150e1e{['afterInit'](){const _0x20252e=this['editor'],_0x478812=_0x20252e['locale'];if(!_0x20252e['plugins']['has']('LegacyListEditing'))return;const _0x161d70=_0x20252e['plugins']['get']('TrackChangesEditing'),_0x42693c=_0x20252e['plugins']['has']('LegacyTodoListEditing');function _0x3a35cc(_0x11aa6f){return()=>{const _0x33d3b8=_0x20252e['model']['document']['selection'],_0x2a6071=_0x20252e['commands']['get'](_0x11aa6f);if(_0x2a6071['value'])return void _0x20252e['execute']('paragraph',{});const _0x3f3258=_0x11aa6f['slice'](0x0,-0x4),_0x3067cc=function(_0x240407,_0x13f608,_0x5875ee){let _0x314193=Array['from'](_0x240407)['filter'](_0x43941e=>function(_0x1791cb,_0x5d1a8a){return _0x5d1a8a['checkChild'](_0x1791cb['parent'],'listItem')&&!_0x5d1a8a['isObject'](_0x1791cb);}(_0x43941e,_0x5875ee));_0x314193=_0x314193['filter'](_0x7a053=>!_0x7a053['is']('element','listItem')||_0x7a053['getAttribute']('listType')!=_0x13f608);const _0x428e5e=new Set();for(const _0x48f270 of _0x314193)_0x48f270['is']('element','listItem')?_0x428e5e['add'](Ne(_0x48f270)):_0x428e5e['add'](_0x48f270);return Array['from'](_0x428e5e);}(_0x33d3b8['getSelectedBlocks'](),_0x3f3258,_0x20252e['model']['schema']);_0x20252e['model']['change'](()=>{for(const _0x274925 of _0x3067cc)_0x161d70['markBlockFormat'](_0x274925,{'commandName':_0x11aa6f,'commandParams':[{'forceValue':!_0x2a6071['value']}],'formatGroupId':'blockName'},Se(_0x274925));});};}function _0x4e1b27(_0x1dacee){return()=>{const _0x2c543b=function(_0x5d79c1){let _0xb60174=Array['from'](_0x5d79c1);const _0x560202=_0xb60174['findIndex'](_0x9c318e=>'listItem'!=_0x9c318e['name']);return _0x560202>-0x1&&(_0xb60174=_0xb60174['slice'](0x0,_0x560202)),_0xb60174;}(_0x20252e['model']['document']['selection']['getSelectedBlocks']()),_0x2766b=_0x20252e['model']['createRange'](_0x20252e['model']['createPositionAt'](_0x2c543b[0x0],'before'),_0x20252e['model']['createPositionAt'](_0x2c543b[_0x2c543b['length']-0x1],'end'));_0x20252e['model']['change'](()=>{_0x161d70['markBlockFormat'](_0x2766b,{'commandName':_0x1dacee,'commandParams':[],'formatGroupId':'listIndent'},function(_0x506005){const _0x418ac1=new Set();for(const _0x2ce482 of _0x506005){let _0x144c23=_0x2ce482['nextSibling'];for(;_0x144c23&&_0x144c23['getAttribute']('listIndent')>_0x2ce482['getAttribute']('listIndent');)_0x418ac1['add'](_0x144c23),_0x144c23=_0x144c23['nextSibling'];}return Array['from'](_0x418ac1);}(_0x2c543b));});};}_0x161d70['enableCommand']('numberedList',_0x3a35cc('numberedList')),_0x161d70['enableCommand']('bulletedList',_0x3a35cc('bulletedList')),_0x42693c&&_0x161d70['enableCommand']('todoList',_0x3a35cc('todoList')),_0x161d70['enableCommand']('indentList',_0x4e1b27('indentList')),_0x161d70['enableCommand']('outdentList',_0x4e1b27('outdentList')),_0x42693c&&_0x161d70['enableCommand']('checkTodoList',()=>{const _0x53c630=_0x20252e['commands']['get']('checkTodoList'),_0x174395=Array['from'](_0x53c630['_selectedElements']);_0x174395['filter'](_0x2a9b1a=>_0x2a9b1a['getAttribute']('todoListChecked')!=_0x53c630['value']),_0x20252e['model']['change'](()=>{for(const _0x41dac8 of _0x174395)_0x161d70['markBlockFormat'](_0x41dac8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x53c630['value']}]});});}),_0x161d70['descriptionFactory']['registerElementLabel']('listItem',_0x879746=>o(_0x478812,'ELEMENT_LIST_ITEM',_0x879746)),_0x161d70['descriptionFactory']['registerDescriptionCallback'](_0x50fce7=>{if('formatBlock'!=_0x50fce7['type']&&'formatInline'!=_0x50fce7['type'])return;const {data:_0x5497e2}=_0x50fce7;if(_0x5497e2){if('numberedList'==_0x5497e2['commandName']||'bulletedList'==_0x5497e2['commandName']||'todoList'==_0x5497e2['commandName'])switch(_0x5497e2['commandName']['replace']('List','')){case'bulleted':return _0x201ab4(o(_0x478812,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x201ab4(o(_0x478812,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x201ab4(o(_0x478812,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5497e2['commandName'])return{'type':'format','content':o(_0x478812,'*Indent:*\x20%0',o(_0x478812,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5497e2['commandName'])return{'type':'format','content':o(_0x478812,'*Outdent:*\x20%0',o(_0x478812,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5497e2['commandName'])return _0x5497e2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x478812,'*Check\x20item*')}:{'type':'format','content':o(_0x478812,'*Uncheck\x20item*')};}function _0x201ab4(_0x1b1270){return{'type':'format','content':o(_0x478812,'*Change\x20to:*\x20%0',_0x1b1270)};}});}}function Ne(_0x4fa504){const _0x2985b1=_0x4fa504['getAttribute']('listIndent');if(0x0==_0x2985b1)return _0x4fa504;let _0x4c76e2=_0x4fa504;for(;_0x4fa504['previousSibling']&&_0x4fa504['previousSibling']['is']('element','listItem');){const _0x2772de=_0x4fa504['previousSibling']['getAttribute']('listIndent');if(_0x2772de==_0x2985b1)_0x4c76e2=_0x4fa504['previousSibling'];else{if(_0x2772de<_0x2985b1)break;}_0x4fa504=_0x4fa504['previousSibling'];}return _0x4c76e2;}function Se(_0x428698){const _0x29d8aa=[];if(_0x428698['is']('element','listItem')&&_0x428698['getAttribute']('listIndent')>0x0){let _0xb78cea=_0x428698['nextSibling'];for(;_0xb78cea&&'listItem'==_0xb78cea['name']&&_0xb78cea['getAttribute']('listIndent')==_0x428698['getAttribute']('listIndent');)_0x29d8aa['push'](_0xb78cea),_0xb78cea=_0xb78cea['nextSibling'];}return _0x29d8aa;}class kt extends _0x150e1e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2e67db=this['editor']['config']['get']('list.properties'),_0x12236=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e67db['styles']&&_0x12236['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2e67db['reversed']&&_0x12236['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2e67db['startIndex']&&_0x12236['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x12236['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x440d65,_0x1db0e2={}){const _0x5abf54=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21b4d6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5abf54['markMultiRangeBlockFormat'](_0x21b4d6,{'commandName':'listStyle','commandParams':[{'type':_0x1db0e2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x51fdfb,_0x4679d9={}){const _0x55ff79=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52453e=this['_getSuggestionBlocks'](_0x192853=>_0x192853['is']('element','listItem')&&'numbered'===_0x192853['getAttribute']('listType'));if(_0x52453e['length']<0x1)return;const _0x4df355=_0x52453e['map'](_0x23dabf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23dabf,'before'),this['editor']['model']['createPositionAt'](_0x23dabf,0x0)));this['editor']['model']['change'](()=>{_0x55ff79['markMultiRangeBlockFormat'](_0x4df355,{'commandName':'listReversed','commandParams':[{'reversed':_0x4679d9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3a7c93,_0x341d38={}){const _0x5caf85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34716e=this['_getSuggestionBlocks'](_0x4dc643=>_0x4dc643['is']('element','listItem')&&'numbered'===_0x4dc643['getAttribute']('listType'));if(_0x34716e['length']<0x1)return;const _0x45660b=_0x34716e['map'](_0x56c713=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x56c713,'before'),this['editor']['model']['createPositionAt'](_0x56c713,0x0)));this['editor']['model']['change'](()=>{_0x5caf85['markMultiRangeBlockFormat'](_0x45660b,{'commandName':'listStart','commandParams':[{'startIndex':_0x341d38['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x232d04){if('formatBlock'!=_0x232d04['type']&&'formatInline'!=_0x232d04['type'])return;const _0x304faa=this['editor']['locale'],{data:_0x4865c6}=_0x232d04;if(!_0x4865c6)return;let _0x4cafdb,_0x1fb8e2;switch(_0x4865c6['commandName']){case'listStyle':_0x4cafdb='*Change\x20to:*\x20%0',_0x1fb8e2={'type':'format','content':o(_0x304faa,_0x4cafdb,o(_0x304faa,this['_getTranslationKeyForListStyle'](_0x4865c6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4cafdb=_0x4865c6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1fb8e2={'type':'format','content':o(_0x304faa,_0x4cafdb)};break;case'listStart':_0x4cafdb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1fb8e2={'type':'format','content':o(_0x304faa,_0x4cafdb,_0x4865c6['commandParams'][0x0]['startIndex'])};}return _0x1fb8e2;}['_getSuggestionBlocksForListStyle'](){const _0x2cf3c9=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c2571=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2c2571[0x0]?.['is']('element','listItem')&&_0x2c2571['unshift'](..._0x2cf3c9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2c2571[_0x2c2571['length']-0x1]?.['is']('element','listItem')&&_0x2c2571['push'](..._0x2cf3c9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2c2571=[...new Set(_0x2c2571)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2c2571=_0x2c2571['filter'](_0x587033=>_0x587033['is']('element','listItem'))),_0x2c2571;}['_getSuggestionBlocks'](_0x2220fc){const _0x3345b8=this['editor']['plugins']['get']('LegacyListUtils');let _0x39e8ec=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2220fc)['map'](_0x163cfa=>{const _0x195730=this['editor']['model']['createPositionAt'](_0x163cfa,0x0);return[..._0x3345b8['getSiblingNodes'](_0x195730,'backward'),..._0x3345b8['getSiblingNodes'](_0x195730,'forward')];})['flat']();return _0x39e8ec=[...new Set(_0x39e8ec)],_0x39e8ec;}['_getTranslationKeyForListStyle'](_0x2cdc02){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2cdc02)||'default')['toUpperCase']()+'_LIST_'+_0x2cdc02['toUpperCase']()['replace'](/-/g,'_');}}class wt extends _0x150e1e{['afterInit'](){const _0x47de51=this['editor'];if(!_0x47de51['plugins']['has']('MediaEmbedEditing'))return;const _0x1e44d7=_0x47de51['plugins']['get']('TrackChangesEditing'),_0x443b84=_0x47de51['locale'];_0x1e44d7['enableCommand']('mediaEmbed'),_0x1e44d7['descriptionFactory']['registerElementLabel']('media',_0x1e551b=>o(_0x443b84,'ELEMENT_MEDIA',_0x1e551b)),_0x47de51['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x554605,{writer:_0x39ca28,options:_0x1954ca})=>{if(_0x1954ca['showSuggestionHighlights'])return _0x39ca28['createEmptyElement']('div');},'converterPriority':'high'}),_0x47de51['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3c6eaa,_0x874513,_0xd88f6f)=>{_0xd88f6f['options']['showSuggestionHighlights']&&_0x3c6eaa['stop']();},{'priority':'high'});}}class bt extends _0x150e1e{['afterInit'](){const _0x13535b=this['editor'];_0x13535b['plugins']['has']('MentionEditing')&&_0x13535b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x150e1e{['afterInit'](){const _0x4fd135=this['editor'];if(!_0x4fd135['plugins']['has']('MergeFieldsEditing'))return;const _0x1646cf=_0x4fd135['plugins']['get']('TrackChangesEditing'),_0x4ef7e5=_0x4fd135['locale'];_0x1646cf['enableCommand']('insertMergeField'),_0x1646cf['enableCommand']('insertMergeFieldBlock'),_0x1646cf['enableCommand']('insertMergeFieldImage'),_0x1646cf['descriptionFactory']['registerElementLabel']('mergeField',_0x71faa9=>o(_0x4ef7e5,'ELEMENT_MERGE_FIELD',_0x71faa9)),_0x1646cf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5093c0=>o(_0x4ef7e5,'ELEMENT_MERGE_FIELD',_0x5093c0)),_0x1646cf['descriptionFactory']['registerDescriptionCallback'](_0x5914bd=>{if('insertion'!=_0x5914bd['type']&&'deletion'!=_0x5914bd['type'])return;const _0x5abdb4=_0x5914bd['getContainedElement']();if(null==_0x5abdb4)return;const _0x134adf=_0x4fd135['plugins']['get']('MergeFieldsEditing');let _0x42aeb5;switch(_0x134adf['getMergeFieldType'](_0x5abdb4)){case null:return;case'image':{const _0x4f9d29=_0x134adf['unwrapAffixes'](_0x5abdb4['getAttribute']('src'));_0x42aeb5=_0x134adf['getLabel'](_0x4f9d29)||_0x4f9d29;break;}default:{const _0x2d038e=_0x5abdb4['getAttribute']('id');_0x42aeb5=_0x134adf['getLabel'](_0x2d038e)||_0x2d038e;break;}}return'insertion'==_0x5914bd['type']?{'type':'insertion','content':o(_0x4ef7e5,'*Insert:*\x20%0','\x22'+_0x42aeb5+'\x22\x20'+o(_0x4ef7e5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4ef7e5,'*Remove:*\x20%0','\x22'+_0x42aeb5+'\x22\x20'+o(_0x4ef7e5,'ELEMENT_MERGE_FIELD'))};});}}class St extends _0x150e1e{['afterInit'](){const _0x513d77=this['editor'],_0x3cbbb3=_0x513d77['plugins']['get']('TrackChangesEditing');_0x513d77['plugins']['has']('MultiLevelList')&&(_0x3cbbb3['enableDefaultAttributesIntegration']('multiLevelList'),_0x3cbbb3['registerBlockAttribute']('listMarkerStyle'),_0x3cbbb3['descriptionFactory']['registerDescriptionCallback'](_0x4bb62d=>this['handleDescriptions'](_0x4bb62d)));}['handleDescriptions'](_0x1f2485){const _0x2fd749=this['editor']['locale'],{data:_0x1f45e3}=_0x1f2485,_0x1426d6={'type':'format','content':''};if(_0x1f45e3&&'listMarkerStyle'==_0x1f45e3['key']){if(!_0x1f45e3['oldValue'])return{'type':'format','content':o(_0x2fd749,'*Set\x20format:*\x20%0',o(_0x2fd749,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f45e3['newValue']+')'};if(!_0x1f45e3['newValue']){let _0x288421=_0x1f2485['head'];for(;_0x288421;){if(_0x288421['data']&&'listType'==_0x288421['data']['key']&&_0x288421['data']['newValue'])return _0x1426d6;_0x288421=_0x288421['next'];}return{'type':'format','content':o(_0x2fd749,'*Remove\x20format:*\x20%0',o(_0x2fd749,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f45e3['oldValue']+')'};}}}}class jt extends _0x150e1e{['afterInit'](){const _0x1cee9c=this['editor'];if(!_0x1cee9c['plugins']['has']('PageBreakEditing'))return;_0x1cee9c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa62823=_0x1cee9c['plugins']['get']('TrackChangesEditing'),_0x7ca972=_0x1cee9c['locale'];_0xa62823['descriptionFactory']['registerElementLabel']('pageBreak',_0x2996fa=>o(_0x7ca972,'ELEMENT_PAGE_BREAK',_0x2996fa));}}class It extends _0x150e1e{['afterInit'](){const _0x2a0808=this['editor'];if(!_0x2a0808['plugins']['has']('Paragraph'))return;const _0x202089=_0x2a0808['locale'],_0x4f6913=_0x2a0808['plugins']['get']('TrackChangesEditing');_0x4f6913['descriptionFactory']['registerElementLabel']('paragraph',_0x3531db=>o(_0x202089,'ELEMENT_PARAGRAPH',_0x3531db)),_0x4f6913['enableDefaultAttributesIntegration']('paragraph'),_0x4f6913['enableCommand']('insertParagraph'),_0x2a0808['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2a0808),{'priority':'highest'}),_0x2a0808['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2248da,_0x109faf,_0x4939b8)=>{_0x4939b8['options']['showSuggestionHighlights']&&nr(_0x2a0808,{'showActiveMarker':!0x1})(_0x2248da,_0x109faf,_0x4939b8);},{'priority':'highest'});const _0x634dd1=_0x4f6913['descriptionFactory'];_0x634dd1['registerDescriptionCallback'](_0x4d5b6c=>{if('insertion'!==_0x4d5b6c['type'])return;const {start:_0x2da0f9,end:_0x5a2f35}=_0x4d5b6c['getFirstRange']();if(!_0x2da0f9['isTouching'](_0x5a2f35)||!_0x2da0f9['nodeAfter'])return;const _0x1eb981=_0x2a0808['model']['schema'],_0x97c944=_0x2da0f9['nodeAfter'];return _0x1eb981['isBlock'](_0x97c944)&&!_0x1eb981['isLimit'](_0x97c944)&&_0x1eb981['checkChild'](_0x97c944,'$text')?{'type':'insertion','content':o(_0x202089,'*Insert:*\x20%0',_0x634dd1['getItemLabel'](_0x97c944,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7fc160=this['editor'],_0x1f7b72=_0x7fc160['locale'];_0x7fc160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x373bad=>{if('formatBlock'!=_0x373bad['type'])return;const {data:_0x28b1ef}=_0x373bad;return _0x28b1ef&&'paragraph'==_0x28b1ef['commandName']?{'type':'format','content':o(_0x1f7b72,'*Change\x20to:*\x20%0',o(_0x1f7b72,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x51828f,{showActiveMarker:_0x1c46bb=!0x0}={}){return(_0x52cca1,_0x40eaa1,_0x31515f)=>{const _0x3feb02=_0x51828f['plugins']['get']('TrackChangesEditing'),_0x3fe7e2=_0x40eaa1['markerRange']['start'],_0x3ca5a8=_0x40eaa1['markerRange']['end'],_0x2c8175=_0x51828f['model']['schema'];if(!_0x3fe7e2['isTouching'](_0x3ca5a8)||!_0x3fe7e2['nodeAfter'])return;const _0x1d6bd5=_0x3fe7e2['nodeAfter'];if(_0x2c8175['isBlock'](_0x1d6bd5)&&!_0x2c8175['isLimit'](_0x1d6bd5)&&_0x2c8175['checkChild'](_0x1d6bd5,'$text')){if(!_0x31515f['consumable']['consume'](_0x40eaa1['markerRange'],_0x52cca1['name']))return;const {id:_0x378948,authorId:_0xb32b05}=_0x3feb02['_splitMarkerName'](_0x40eaa1['markerName']),_0x1a3ddb=_0x31515f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x378948,'data-author-id':_0xb32b05}),_0x4ccca7=_0x31515f['mapper']['toViewPosition'](_0x3ca5a8);_0x1c46bb&&_0x3feb02['activeMarkers']['includes'](_0x40eaa1['markerName'])&&_0x31515f['writer']['addClass']('ck-suggestion-marker--active',_0x1a3ddb),_0x31515f['writer']['insert'](_0x4ccca7,_0x1a3ddb),_0x31515f['mapper']['bindElementToMarker'](_0x1a3ddb,_0x40eaa1['markerName']);}};}class At extends _0x150e1e{['afterInit'](){const _0x5c70fe=this['editor'];_0x5c70fe['commands']['get']('replaceSource')&&_0x5c70fe['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x150e1e{['afterInit'](){const _0x54e286=this['editor'];if(!_0x54e286['plugins']['has']('RemoveFormatEditing'))return;_0x54e286['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xad6f12=this['editor'];_0xad6f12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10aab4=>{if('formatBlock'!=_0x10aab4['type']&&'formatInline'!=_0x10aab4['type'])return;const {data:_0x32ff7d}=_0x10aab4;return _0x32ff7d&&'removeFormat'==_0x32ff7d['commandName']?{'type':'format','content':o(_0xad6f12['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class $t extends _0x150e1e{['afterInit'](){const _0x3ac724=this['editor'];if(!_0x3ac724['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x51cdb7=_0x3ac724['plugins']['get']('TrackChangesEditing');_0x51cdb7['enableCommand']('goToPreviousRestrictedEditingException'),_0x51cdb7['enableCommand']('goToNextRestrictedEditingException');const _0x4e735d=_0x3ac724['plugins']['get']('RestrictedEditingModeEditing');_0x4e735d['enableCommand']('trackChanges'),_0x4e735d['enableCommand']('acceptSuggestion'),_0x4e735d['enableCommand']('discardSuggestion'),_0x4e735d['enableCommand']('acceptAllSuggestions'),_0x4e735d['enableCommand']('discardAllSuggestions'),_0x4e735d['enableCommand']('acceptSelectedSuggestions'),_0x4e735d['enableCommand']('discardSelectedSuggestions');}}class vt extends _0x150e1e{['afterInit'](){const _0x14e4b3=this['editor'];if(!_0x14e4b3['plugins']['has']('ShiftEnter'))return;const _0x4b0720=_0x14e4b3['plugins']['get']('TrackChangesEditing');_0x4b0720['enableCommand']('shiftEnter'),_0x14e4b3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x14e4b3),{'priority':'high'}),_0x14e4b3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x14e4b3),{'priority':'high'}),_0x14e4b3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2787ec,_0x3ce9ce,_0xcb0d7c)=>{_0xcb0d7c['options']['showSuggestionHighlights']&&qe(_0x14e4b3,{'showActiveMarker':!0x1})(_0x2787ec,_0x3ce9ce,_0xcb0d7c);}),_0x4b0720['descriptionFactory']['registerElementLabel']('softBreak',_0x76cae6=>o(_0x14e4b3['locale'],'ELEMENT_LINE_BREAK',_0x76cae6));}}function qe(_0x11d215,{showActiveMarker:_0x37ffef=!0x0}={}){return(_0x486336,_0x469a8e,_0x48b159)=>{const _0x2f8dfa=_0x11d215['plugins']['get']('TrackChangesEditing');if(!_0x48b159['consumable']['test'](_0x469a8e['markerRange'],_0x486336['name']))return;const _0x4be953=_0x11d215['model'];for(const _0x35f9cb of _0x469a8e['markerRange']['getItems']()){if(!_0x35f9cb['is']('element','softBreak'))continue;const _0x216a66='deletion'==_0x469a8e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x44c2cf,authorId:_0x5c5ba0}=_0x2f8dfa['_splitMarkerName'](_0x469a8e['markerName']),_0x3d9384=_0x48b159['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x216a66,'data-suggestion':_0x44c2cf,'data-author-id':_0x5c5ba0}),_0x1761cc=_0x48b159['mapper']['toViewPosition'](_0x4be953['createPositionBefore'](_0x35f9cb));_0x37ffef&&_0x2f8dfa['activeMarkers']['includes'](_0x469a8e['markerName'])&&_0x48b159['writer']['addClass']('ck-suggestion-marker--active',_0x3d9384),_0x48b159['writer']['insert'](_0x1761cc,_0x3d9384),_0x48b159['mapper']['bindElementToMarker'](_0x3d9384,_0x469a8e['markerName']);}};}class Ct extends _0x150e1e{['afterInit'](){const _0x30658c=this['editor'],_0x321cf2=_0x30658c['model'],_0x2c8e1e=_0x30658c['locale'];if(!_0x30658c['plugins']['has']('StandardEditingModeEditing'))return;const _0x5bf6a2=_0x30658c['plugins']['get']('TrackChangesEditing'),_0x1e7385='restrictedEditingException',_0x17a6b1=_0x30658c['commands']['get'](_0x1e7385);_0x5bf6a2['enableCommand'](_0x1e7385,(_0x539e34,_0x239faf={})=>{const _0x60dc17=_0x321cf2['document']['selection'];if(_0x60dc17['isCollapsed'])return void _0x539e34(_0x239faf);const _0x5d7896=void 0x0!==_0x239faf['forceValue']?_0x239faf['forceValue']:!_0x17a6b1['value'];_0x321cf2['change'](()=>{const _0x1c1fd9=Array['from'](_0x60dc17['getRanges']());for(const _0x126dc7 of _0x1c1fd9){const _0x374982=_0x5d7896?[_0x126dc7]:io(_0x1e7385,_0x126dc7,_0x321cf2);for(const _0x11035a of _0x374982)_0x5bf6a2['markInlineFormat'](_0x11035a,{'commandName':_0x1e7385,'commandParams':[{'forceValue':_0x5d7896}]});}});}),_0x5bf6a2['descriptionFactory']['registerDescriptionCallback'](_0x369b50=>{if('formatBlock'!=_0x369b50['type']&&'formatInline'!=_0x369b50['type'])return;const {data:_0x20231c}=_0x369b50;return _0x20231c&&_0x20231c['commandName']==_0x1e7385?_0x20231c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c8e1e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2c8e1e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Nt extends _0x150e1e{['afterInit'](){const _0x3f8dd0=this['editor'];if(!_0x3f8dd0['plugins']['has']('Style')||!_0x3f8dd0['plugins']['has']('DataSchema'))return;const _0x44ca18=_0x3f8dd0['plugins']['get']('TrackChangesEditing'),_0x5f5940=_0x3f8dd0['locale'],_0x27dc62=_0x3f8dd0['config']['get']('style')||{},_0x511204=_0x3f8dd0['plugins']['get']('GeneralHtmlSupport'),_0xc11d4f=_0x3f8dd0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3f8dd0['plugins']['get']('DataSchema'),_0x27dc62['definitions']);_0x44ca18['enableDefaultAttributesIntegration']('style');const _0x108898=new Set();for(const _0x23a680 of _0xc11d4f['block']){const _0x476227=_0x511204['getGhsAttributeNameForElement'](_0x23a680['element']);_0x108898['add'](_0x476227);}const _0x341701=new Set();for(const _0x566978 of _0xc11d4f['inline']){const _0x47f893=_0x511204['getGhsAttributeNameForElement'](_0x566978['element']);_0x341701['add'](_0x47f893);for(const _0x658fee of _0x566978['ghsAttributes'])_0x341701['add'](_0x658fee);}for(const _0x5e083b of _0x108898)_0x44ca18['registerBlockAttribute'](_0x5e083b),_0x44ca18['descriptionFactory']['registerAttributeLabel'](_0x5e083b,o(_0x5f5940,'FORMAT_STYLE'));for(const _0x11a721 of _0x341701)_0x44ca18['registerInlineAttribute'](_0x11a721),_0x44ca18['descriptionFactory']['registerAttributeLabel'](_0x11a721,o(_0x5f5940,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x341473=this['editor'],_0x241f0f=_0x341473['locale'];_0x341473['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22858b=>{if('formatBlock'!=_0x22858b['type']&&'formatInline'!=_0x22858b['type'])return;const {data:_0x409356}=_0x22858b;return _0x409356&&'style'===_0x409356['commandName']?_0x409356['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x241f0f,'*Set\x20format:*\x20%0',_0x409356['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x241f0f,'*Remove\x20format:*\x20%0',_0x409356['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x150e1e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x58de61){super(_0x58de61),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5e76f2=this['editor'],_0x429834=_0x5e76f2['model']['document']['selection'];if(!_0x5e76f2['plugins']['has']('TableEditing'))return;const _0x4a87fa=_0x5e76f2['locale'],_0x259d94=_0x5e76f2['plugins']['get']('TrackChangesEditing'),_0x7d990=_0x5e76f2['plugins']['get']('TableUtils');_0x259d94['descriptionFactory']['registerElementLabel']('table',_0x232047=>o(_0x4a87fa,'ELEMENT_TABLE',_0x232047)),this['_setupColumnsRowsFixing'](),_0x259d94['enableCommand']('insertTable'),_0x259d94['enableCommand']('selectTableRow'),_0x259d94['enableCommand']('selectTableColumn');for(const _0x254d68 of['insertTableRowAbove','insertTableRowBelow']){const _0x515723=_0x5e76f2['commands']['get'](_0x254d68);_0x259d94['enableCommand'](_0x254d68,_0x5cd83f=>{_0x5e76f2['model']['change'](_0x377680=>{_0x5cd83f();const _0x3e81f8='above'===_0x515723['order'],_0x10782b=_0x7d990['getSelectionAffectedTableCells'](_0x429834),_0x3a0bfa=_0x7d990['getRowIndexes'](_0x10782b),_0xeb177f=_0x3e81f8?_0x3a0bfa['first']-0x1:_0x3a0bfa['last']+0x1,_0x4e78f2=_0x10782b[0x0]['findAncestor']('table'),_0x90e66d=_0x7d990['createTableWalker'](_0x4e78f2,{'startRow':_0xeb177f,'endRow':_0xeb177f}),_0x4efcdf=Array['from'](_0x90e66d)['map'](_0x3c728e=>_0x377680['createRangeOn'](_0x3c728e['cell']));_0x259d94['markMultiRangeInsertion'](_0x4efcdf,'tableRow');});});}for(const _0x323412 of['insertTableColumnLeft','insertTableColumnRight']){const _0x59c905=_0x5e76f2['commands']['get'](_0x323412);_0x259d94['enableCommand'](_0x323412,_0x5ded5d=>{_0x5e76f2['model']['change'](_0x42dede=>{_0x5ded5d();const _0x4c431b='left'===_0x59c905['order'],_0x48e2da=_0x7d990['getSelectionAffectedTableCells'](_0x429834),_0x10e371=_0x7d990['getColumnIndexes'](_0x48e2da),_0x3c30ac=_0x4c431b?_0x10e371['first']-0x1:_0x10e371['last']+0x1,_0x519807=_0x48e2da[0x0]['findAncestor']('table'),_0x1fbdad=_0x7d990['createTableWalker'](_0x519807,{'startRow':0x0,'column':_0x3c30ac,'includeAllSlots':!0x1}),_0x937861=Array['from'](_0x1fbdad)['map'](_0x5b343d=>_0x42dede['createRangeOn'](_0x5b343d['cell']));_0x259d94['markMultiRangeInsertion'](_0x937861,'tableColumn');});});}for(const _0x377f56 of['removeTableRow','removeTableColumn']){const _0x1e9663=_0x377f56['substr'](0xb),_0x30c562=_0x1e9663['toLowerCase'](),_0x4b27b1=_0x30c562['substr'](0x0,0x3)+'span',_0x5badc1='table'+_0x1e9663,_0xbc16d8='min'+_0x1e9663,_0x110481='max'+_0x1e9663;_0x259d94['enableCommand'](_0x377f56,()=>{_0x5e76f2['model']['change'](_0x402fc9=>{const _0x19cf0c=_0x7d990['getSelectionAffectedTableCells'](_0x429834),_0x2653be=_0x19cf0c[0x0]['findAncestor']('table');let _0x34f341;if('removeTableRow'==_0x377f56){const _0x2ba984=_0x7d990['getRowIndexes'](_0x19cf0c);_0x34f341={'startRow':_0x2ba984['first'],'endRow':_0x2ba984['last'],'includeAllSlots':!0x0};}else{const _0x5523d8=_0x7d990['getColumnIndexes'](_0x19cf0c);_0x34f341={'startColumn':_0x5523d8['first'],'endColumn':_0x5523d8['last'],'includeAllSlots':!0x0};}const _0x469cf7=_0x7d990['createTableWalker'](_0x2653be,_0x34f341),_0x484e71=Array['from'](_0x469cf7)['map'](({cell:_0x276c93})=>_0x276c93),_0x4c1fa4=Oe(_0x484e71['filter'](_0x29a371=>_0x29a371['hasAttribute'](_0x4b27b1))),_0x28cd62=Oe(_0x484e71['filter'](_0x56ccb5=>!_0x56ccb5['hasAttribute'](_0x4b27b1)))['map'](_0x33cd4b=>_0x402fc9['createRangeOn'](_0x33cd4b)),_0x5af0b3=_0x259d94['markMultiRangeDeletion'](_0x28cd62,_0x5badc1);if(_0x5af0b3&&('tableRow'==_0x5af0b3['subType']||'tableColumn'==_0x5af0b3['subType'])){const _0x1822d4=this['_getSuggestionCoords'](_0x5af0b3);for(const _0x1d9a6c of _0x4c1fa4){const _0x5bdf92=_0x402fc9['createRangeOn'](_0x1d9a6c),_0x163884=_0x7d990['getCellLocation'](_0x1d9a6c),_0x54714f=_0x1d9a6c['getAttribute'](_0x4b27b1)-0x1,_0x4a5d0e=_0x1822d4[_0xbc16d8],_0x46db98=_0x1822d4[_0x110481];_0x4a5d0e<=_0x163884[_0x30c562]&&_0x163884[_0x30c562]+_0x54714f<=_0x46db98&&_0x5af0b3['addRange'](_0x5bdf92);}}});});}function _0x3d2818(_0x555d96){const _0x1e9258=Array['from'](_0x429834['getRanges']())['map'](_0x5a0d82=>_0x4b855c['fromRange'](_0x5a0d82));_0x5e76f2['model']['change'](_0x700fea=>{const _0x1935d1=_0x700fea['batch'];_0x555d96=_0x555d96['filter'](_0x3bed08=>'$graveyard'!=_0x3bed08['root']['rootName']),_0x700fea['setSelection'](_0x555d96),_0x5e76f2['commands']['get']('removeTableRow')['refresh'](),_0x5e76f2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e76f2['model']['enqueueChange'](()=>{_0x5e76f2['model']['enqueueChange'](_0x1935d1,_0x2d963d=>{const _0xce135d=_0x1e9258['filter'](_0x1c1f1d=>'$graveyard'!=_0x1c1f1d['root']['rootName']);_0xce135d['length']>0x0&&_0x2d963d['setSelection'](_0xce135d);for(const _0x7d9ac5 of _0x1e9258)_0x7d9ac5['detach']();});});});}function _0x5ec0c3(_0x3ceaed){_0x5e76f2['model']['change'](_0x4b0023=>{const _0x526d8e=Array['from'](_0x429834['getRanges']())['map'](_0x5c516c=>_0x4b855c['fromRange'](_0x5c516c)),_0x3b0904=[];for(const _0x55508e of _0x3ceaed)for(const _0x1d3b1a of _0x55508e['getItems']({'shallow':!0x0}))_0x3b0904['push'](_0x1d3b1a);for(const _0x34443c of _0x3b0904)'$graveyard'!=_0x34443c['root']['rootName']&&(_0x4b0023['setSelection'](_0x4b0023['createPositionAt'](_0x34443c,0x0)),_0x5e76f2['commands']['get']('removeTableColumn')['refresh'](),_0x5e76f2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x36e9c1=_0x526d8e['filter'](_0x24b03f=>'$graveyard'!=_0x24b03f['root']['rootName']);_0x36e9c1['length']>0x0&&_0x4b0023['setSelection'](_0x36e9c1);for(const _0x4e56a0 of _0x526d8e)_0x4e56a0['detach']();});}function _0xcadaa7(_0x1929d4,_0x2793f5){return _0x2793f5['every'](_0x427840=>_0x1929d4['some'](_0x116d79=>_0x116d79['end']['isEqual'](_0x427840['start'])||_0x427840['end']['isEqual'](_0x116d79['start'])));}function _0x32b0e0(_0x3536f9,_0x5afaf1){return!_0x3536f9['some'](_0x5dcf83=>_0x5afaf1['some'](_0x548b19=>_0x5dcf83['isIntersecting'](_0x548b19)))&&_0x3536f9['some'](_0x478de1=>_0x5afaf1['some'](_0x2daf81=>_0x478de1['end']['isTouching'](_0x2daf81['start'])));}_0x5e76f2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50edf3,_0x5a03e6,_0x59e2c3)=>{if(!_0x59e2c3['options']['showSuggestionHighlights'])return;const _0x1ca295=_0x5a03e6['item'];if(!_0x1ca295||!_0x1ca295['is']('element','tableCell'))return;const _0x52f9c2=_0x59e2c3['mapper']['toViewElement'](_0x1ca295);if(_0x52f9c2){const {id:_0xf64b7c,authorId:_0x25c106}=_0x259d94['_splitMarkerName'](_0x5a03e6['markerName']);_0x288247(_0x52f9c2,_0x59e2c3['writer'],(_0x5deda7,_0x2ba031,_0x520bd6)=>{_0x520bd6['addClass'](_0x4a1116(_0x2ba031['classes']),_0x5deda7),_0x520bd6['setAttribute']('data-suggestion-id',_0xf64b7c,_0x5deda7),_0x520bd6['setAttribute']('data-author-id',_0x25c106,_0x5deda7);},(_0x48f480,_0x5112c4,_0x1aa52b)=>{_0x1aa52b['removeClass'](_0x4a1116(_0x5112c4['classes']),_0x48f480),_0x1aa52b['removeAttribute']('data-suggestion-id',_0x48f480),_0x1aa52b['removeAttribute']('data-author-id',_0x48f480);});}},{'priority':'highest'}),_0x259d94['descriptionFactory']['registerDescriptionCallback'](_0x1de602=>{if('insertion'!=_0x1de602['type']&&'deletion'!=_0x1de602['type'])return;const _0xfa5dce=_0x1de602['getContainedElement']();if(null!=_0xfa5dce&&_0xfa5dce['is']('element','table')){if('insertion'==_0x1de602['type']){const _0x4b847b=_0x1de602['getItems']()['filter'](_0x374df6=>_0x374df6['is']('$textProxy'))['map'](_0x2763fb=>_0x2763fb['data']);if(_0x4b847b['length'])return{'type':'insertion','content':o(_0x4a87fa,'*Insert:*\x20%0',o(_0x4a87fa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b847b['join']('\x20')+'\x22'))};}if('deletion'==_0x1de602['type']){const _0x13726b=_0x1de602['getItems']()['filter'](_0xb5a6c0=>_0xb5a6c0['is']('$textProxy'))['map'](_0x160ce2=>_0x160ce2['data']);if(_0x13726b['length'])return{'type':'deletion','content':o(_0x4a87fa,'*Remove:*\x20%0',o(_0x4a87fa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x13726b['join']('\x20')+'\x22'))};}}}),_0x259d94['descriptionFactory']['registerDescriptionCallback'](_0x37ee38=>{if('tableRow'==_0x37ee38['subType']){const _0x44e2c0=_0x37ee38['getItems']()['filter'](_0x55775a=>_0x55775a['is']('$textProxy'))['map'](_0x328ed9=>_0x328ed9['data']),_0xd8d874=this['_getSuggestionCoords'](_0x37ee38),_0x4b81d4=_0xd8d874['maxRow']-_0xd8d874['minRow']+0x1;if('insertion'==_0x37ee38['type'])return _0x44e2c0['length']?{'type':'insertion','content':o(_0x4a87fa,'*Insert:*\x20%0',o(_0x4a87fa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4b81d4,'\x22'+_0x44e2c0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4a87fa,'*Insert:*\x20%0',o(_0x4a87fa,'ELEMENT_TABLE_ROW',_0x4b81d4))};if('deletion'==_0x37ee38['type'])return _0x44e2c0['length']?{'type':'deletion','content':o(_0x4a87fa,'*Remove:*\x20%0',o(_0x4a87fa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4b81d4,'\x22'+_0x44e2c0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4a87fa,'*Remove:*\x20%0',o(_0x4a87fa,'ELEMENT_TABLE_ROW',_0x4b81d4))};}if('tableColumn'==_0x37ee38['subType']){const _0x35d95e=_0x37ee38['getItems']()['filter'](_0x112ec5=>_0x112ec5['is']('$textProxy'))['map'](_0x391df4=>_0x391df4['data']),_0x280a12=this['_getSuggestionCoords'](_0x37ee38),_0x1324e0=_0x280a12['maxColumn']-_0x280a12['minColumn']+0x1;if('insertion'==_0x37ee38['type'])return _0x35d95e['length']?{'type':'insertion','content':o(_0x4a87fa,'*Insert:*\x20%0',o(_0x4a87fa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1324e0,'\x22'+_0x35d95e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4a87fa,'*Insert:*\x20%0',o(_0x4a87fa,'ELEMENT_TABLE_COLUMN',_0x1324e0))};if('deletion'==_0x37ee38['type'])return _0x35d95e['length']?{'type':'deletion','content':o(_0x4a87fa,'*Remove:*\x20%0',o(_0x4a87fa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1324e0,'\x22'+_0x35d95e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4a87fa,'*Remove:*\x20%0',o(_0x4a87fa,'ELEMENT_TABLE_COLUMN',_0x1324e0))};}}),_0x259d94['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3d2818),_0x259d94['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3d2818),_0x259d94['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5ec0c3),_0x259d94['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5ec0c3),_0x259d94['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xcadaa7),_0x259d94['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xcadaa7),_0x259d94['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x32b0e0),_0x259d94['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x32b0e0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x111b62=this['editor'],_0x499822=_0x111b62['model']['document']['selection'];return(_0x1d4785,_0x2c9447)=>{_0x111b62['model']['change'](_0x4cf278=>{const {commandName:_0x1cb12a,commandParams:_0x2efba8}=_0x2c9447;let _0x1c108a=_0x1d4785[0x0]['end']['nodeBefore'];_0x2efba8&&_0x2efba8[0x0]&&!0x1===_0x2efba8[0x0]['forceValue']&&(_0x1c108a=_0x1d4785[0x0]['start']['nodeAfter']);const _0x2cf2a4=_0x4cf278['createRangeIn'](_0x1c108a);if('$graveyard'==_0x2cf2a4['root']['rootName'])return;const _0x5507b2=Array['from'](_0x499822['getRanges']())['map'](_0x51a180=>_0x4b855c['fromRange'](_0x51a180));_0x4cf278['setSelection'](_0x2cf2a4),_0x111b62['commands']['get'](_0x1cb12a)['refresh'](),_0x2efba8['push']({'forceDefaultExecution':!0x0}),_0x111b62['execute'](_0x1cb12a,..._0x2efba8);const _0x138fbc=_0x5507b2['filter'](_0x233a39=>'$graveyard'!=_0x233a39['root']['rootName']);_0x138fbc['length']>0x0&&_0x4cf278['setSelection'](_0x138fbc);for(const _0x39e22a of _0x5507b2)_0x39e22a['detach']();});};}['_getCoordsForCells'](_0x406b23){const _0x279c30=this['editor']['plugins']['get']('TableUtils');let _0x549757=Number['MAX_SAFE_INTEGER'],_0x3a4dbd=Number['MIN_SAFE_INTEGER'],_0x4224b6=Number['MAX_SAFE_INTEGER'],_0x492fcc=Number['MIN_SAFE_INTEGER'];for(const _0x4a8fc0 of _0x406b23){if('$graveyard'==_0x4a8fc0['root']['rootName'])continue;const {row:_0x3aab8c,column:_0x19bf80}=_0x279c30['getCellLocation'](_0x4a8fc0),_0x297bba=_0x4a8fc0['hasAttribute']('rowspan')?_0x4a8fc0['getAttribute']('rowspan')-0x1:0x0,_0x461f67=_0x4a8fc0['hasAttribute']('colspan')?_0x4a8fc0['getAttribute']('colspan')-0x1:0x0;_0x549757=_0x3aab8c<_0x549757?_0x3aab8c:_0x549757,_0x3a4dbd=_0x3aab8c+_0x297bba>_0x3a4dbd?_0x3aab8c+_0x297bba:_0x3a4dbd,_0x4224b6=_0x19bf80<_0x4224b6?_0x19bf80:_0x4224b6,_0x492fcc=_0x19bf80+_0x461f67>_0x492fcc?_0x19bf80+_0x461f67:_0x492fcc;}return{'minRow':_0x549757,'maxRow':_0x3a4dbd,'minColumn':_0x4224b6,'maxColumn':_0x492fcc};}['_setupColumnsRowsFixing'](){const _0x19e036=this['editor'],_0xd0af09=_0x19e036['plugins']['get']('TrackChangesEditing'),_0x313ace=_0x19e036['plugins']['get']('TableUtils');_0x19e036['model']['document']['on']('change:data',()=>{const _0x138ae9=Array['from'](_0x19e036['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b3847,data:_0x4ad49d}of _0x138ae9){const {group:_0x23230f,id:_0x13511e,subType:_0x13f5b5}=_0xd0af09['_splitMarkerName'](_0x5b3847);if('suggestion'!=_0x23230f)continue;if(null!=_0x4ad49d['oldRange'])continue;const _0x58a84e=_0xd0af09['getSuggestion'](_0x13511e);this['_tablePostFixingSubtypes']['includes'](_0x13f5b5)&&this['_tableSuggestions']['add'](_0x58a84e);}},{'priority':'low'});const _0x4de29d=(_0x46f4a9,_0x2f06da)=>{let _0x3de5ee=!0x1;const _0x451cfc=_0x2f06da['createRangeOn'](_0x46f4a9),_0x1f233d=_0x46f4a9['findAncestor']('table'),_0x4cb96f=_0x313ace['getCellLocation'](_0x46f4a9);for(const _0x34b146 of this['_tableSuggestions']){const _0x2429d7=_0x34b146['subType'],_0x480c4c=_0x2429d7['startsWith']('tablePaste'),_0xa43346=_0x2429d7['substr'](_0x480c4c?0xa:0x5),_0x23409e=_0xa43346['toLowerCase'](),_0x1b8bb1=_0x23409e['substr'](0x0,0x3)+'span',_0x1dfaf0='min'+_0xa43346,_0x25b47c='max'+_0xa43346;if(!_0x34b146['isInContent'])continue;if(_0x1f233d!=_0x34b146['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x34b146['isIntersectingWithRange'](_0x451cfc))continue;const _0x2dce8e=_0x46f4a9['hasAttribute'](_0x1b8bb1)?_0x46f4a9['getAttribute'](_0x1b8bb1)-0x1:0x0,_0x190120=this['_getSuggestionCoords'](_0x34b146),_0x3a0602=_0x190120[_0x1dfaf0],_0x2f578d=_0x190120[_0x25b47c];_0x3a0602<=_0x4cb96f[_0x23409e]&&_0x4cb96f[_0x23409e]+_0x2dce8e<=_0x2f578d&&(_0x34b146['addRange'](_0x451cfc),_0x3de5ee=!0x0);}return _0x3de5ee;};_0x19e036['model']['document']['registerPostFixer'](_0x4393fb=>{let _0x52997e=!0x1;for(const _0x2e0979 of _0x19e036['model']['document']['differ']['getChanges']())if('insert'==_0x2e0979['type']){if('tableRow'==_0x2e0979['name']){for(const _0x5892d8 of _0x2e0979['position']['nodeAfter']['getChildren']())_0x52997e=_0x52997e||_0x4de29d(_0x5892d8,_0x4393fb);}else'tableCell'==_0x2e0979['name']&&(_0x52997e=_0x52997e||_0x4de29d(_0x2e0979['position']['nodeAfter'],_0x4393fb));}return _0x52997e;});}['_getSuggestionCoords'](_0x3e0d40){return this['_getCoordsForCells'](_0x3e0d40['getRanges']()['map'](_0x56fd12=>_0x56fd12['start']['nodeAfter']));}}function Oe(_0x38df15){return Array['from'](new Set(_0x38df15)['values']());}class Mt extends _0x150e1e{static get['requires'](){return[Dt];}['afterInit'](){const _0x3b30aa=this['editor'],_0x499744=_0x3b30aa['model']['document']['selection'],_0xfb3173=_0x3b30aa['locale'];if(!_0x3b30aa['plugins']['has']('TableEditing'))return;const _0xff4419=_0x3b30aa['plugins']['get']('TrackChangesEditing'),_0x2c5379=_0x3b30aa['plugins']['get']('TableUtils'),_0x38ded3=_0x3b30aa['plugins']['get'](Dt);_0x38ded3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xff4419['enableCommand']('mergeTableCells',()=>{const _0x1cc4c0=_0x2c5379['getSelectionAffectedTableCells'](_0x3b30aa['model']['document']['selection']);_0x3b30aa['model']['change'](()=>{_0xff4419['markMultiRangeBlockFormat'](_0x1cc4c0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3b30aa['commands']['get']('mergeTableCells')['on']('execute',(_0x54bbd2,_0x59e1a9)=>{_0x3b30aa['commands']['get']('trackChanges')['value']&&(_0x59e1a9['length']>0x0&&_0x59e1a9[_0x59e1a9['length']-0x1]&&_0x59e1a9[_0x59e1a9['length']-0x1]['forceDefaultExecution']||_0xff4419['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x54bbd2['stop']());},{'priority':'highest'});for(const _0x3a9366 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2a25d9=_0x3b30aa['commands']['get'](_0x3a9366);_0xff4419['enableCommand'](_0x3a9366,()=>{const _0x23b865=_0x3b30aa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3297b7=>_0x3297b7['is']('element','tableCell')),_0x320c80=_0x2a25d9['value'];_0x3b30aa['model']['change'](()=>{_0xff4419['markMultiRangeBlockFormat']([_0x23b865,_0x320c80],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x35581f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x564441=_0x3b30aa['commands']['get'](_0x35581f);_0xff4419['enableCommand'](_0x35581f,()=>{const _0x128006=_0x2c5379['getSelectionAffectedTableCells'](_0x3b30aa['model']['document']['selection'])[0x0],_0x7ac902=_0x128006['findAncestor']('table'),{column:_0x118851,row:_0x3a38c6}=_0x2c5379['getCellLocation'](_0x128006);let _0x57f289=[];if('horizontally'==_0x564441['direction']){const _0x3fbc7e=_0x2c5379['createTableWalker'](_0x7ac902,{'startRow':_0x3a38c6,'endRow':_0x3a38c6,'includeAllSlots':!0x0});_0x57f289=Array['from'](_0x3fbc7e)['map'](_0x4704bb=>_0x4704bb['cell']);}else{const _0x2293cc=_0x2c5379['createTableWalker'](_0x7ac902,{'column':_0x118851,'includeAllSlots':!0x0});_0x57f289=Array['from'](_0x2293cc)['map'](_0x51664b=>_0x51664b['cell']);}_0x3b30aa['model']['change'](_0x556336=>{_0xff4419['markBlockFormat'](_0x556336['createRangeOn'](_0x128006),{'commandName':_0x35581f,'commandParams':[]},_0x57f289,_0x35581f);});});}_0xff4419['descriptionFactory']['registerDescriptionCallback'](_0x81a98e=>{if('formatBlock'!=_0x81a98e['type']&&'formatInline'!=_0x81a98e['type'])return;const {data:_0x198f11}=_0x81a98e;return _0x198f11&&'mergeTableCells'==_0x198f11['commandName']?{'type':'format','content':o(_0xfb3173,'*Merge\x20cells*')}:void 0x0;}),_0xff4419['descriptionFactory']['registerDescriptionCallback'](_0x1366b4=>{if('formatBlock'!=_0x1366b4['type']&&'formatInline'!=_0x1366b4['type'])return;const {data:_0x2592b9}=_0x1366b4;return _0x2592b9?'splitTableCellVertically'==_0x2592b9['commandName']?{'type':'format','content':o(_0xfb3173,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2592b9['commandName']?{'type':'format','content':o(_0xfb3173,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x544192=_0x38ded3['_acceptFormatSuggestionCallbackFactory']();for(const _0x12688e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xff4419['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x12688e,'accept',_0x544192);for(const _0xf4f1d2 of['splitTableCellVertically','splitTableCellHorizontally'])_0xff4419['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf4f1d2,'accept',_0x544192);_0xff4419['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x28bc65=>{_0x3b30aa['model']['change'](_0xde7fc1=>{const _0x26ae06=Array['from'](_0x499744['getRanges']())['map'](_0x12ff60=>_0x4b855c['fromRange'](_0x12ff60));_0xde7fc1['setSelection'](_0x28bc65),_0x3b30aa['commands']['get']('mergeTableCells')['refresh'](),_0x3b30aa['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x32872a=_0x26ae06['filter'](_0x4414d0=>'$graveyard'!=_0x4414d0['root']['rootName']);_0x32872a['length']>0x0&&_0xde7fc1['setSelection'](_0x32872a);for(const _0x4dfada of _0x26ae06)_0x4dfada['detach']();});});for(const _0xfdf270 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3d0c19=_0x3b30aa['commands']['get'](_0xfdf270);_0x3d0c19['on']('set:isEnabled',(_0x5c837a,_0x514031,_0x4dab79)=>{if(_0x4dab79){const _0x5e3b55=_0x3b30aa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b3155=>_0x2b3155['is']('element','tableCell'));this['_areMergableCells'](_0x3d0c19['value'],_0x5e3b55)||(_0x5c837a['return']=!0x1,_0x5c837a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x55c56d=this['editor']['commands']['get']('mergeTableCells'),_0x552282=this['editor']['plugins']['get']('TableUtils');if(!_0x55c56d['isEnabled'])return!0x1;const _0x31dcbc=_0x552282['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xe48c3e of _0x31dcbc)for(const _0x26ed57 of _0x31dcbc)if(_0xe48c3e!=_0x26ed57&&!this['_areMergableCells'](_0xe48c3e,_0x26ed57))return!0x1;return!0x0;}['_areMergableCells'](_0x47bf31,_0x45e585){const _0xf24a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48ef5c=this['editor']['model']['createRangeOn'](_0x47bf31),_0x3b1574=this['editor']['model']['createRangeOn'](_0x45e585),_0x196235=new Set(),_0x295100=new Set();for(const _0x5da035 of _0xf24a1['getSuggestions']())if(('insertion'==_0x5da035['type']||'deletion'==_0x5da035['type']||'mergeTableCells'==_0x5da035['subType'])&&_0x5da035['isInContent']){for(const _0x4fc4f3 of _0x5da035['getRanges']())_0x4fc4f3['containsRange'](_0x48ef5c,!0x0)&&_0x196235['add'](_0x5da035['type']+':'+_0x5da035['author']['id']),_0x4fc4f3['containsRange'](_0x3b1574,!0x0)&&_0x295100['add'](_0x5da035['type']+':'+_0x5da035['author']['id']);}if(_0x196235['size']!=_0x295100['size'])return!0x1;for(const _0x149a7e of _0x196235)if(!_0x295100['has'](_0x149a7e))return!0x1;return!0x0;}}class Bt extends _0x150e1e{static get['requires'](){return[Dt];}['afterInit'](){const _0x11562d=this['editor'];if(!_0x11562d['plugins']['has']('TableEditing'))return;const _0x1d1e2c=_0x11562d['locale'],_0x3496e5=_0x11562d['plugins']['get']('TrackChangesEditing');_0x3496e5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3496e5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3496e5['registerBlockAttribute']('headingRows'),_0x3496e5['registerBlockAttribute']('headingColumns'),_0x3496e5['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1d1e2c,'FORMAT_HEADER_ROW')),_0x3496e5['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1d1e2c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x95a664=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e870f=this['editor']['plugins']['get']('TableUtils'),_0x166cdd=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();function _0x55a8c2({showActiveMarker:_0x3c5da6=!0x0,setDataAttribute:_0x4dd8ea=!0x0}={}){return(_0x35d693,_0x16a37a,_0x213774)=>{const {type:_0x5d24b0,id:_0x156813}=_0x95a664['_splitMarkerName'](_0x16a37a['markerName']);if(!_0x95a664['hasSuggestion'](_0x156813))return;const _0x29188e=_0x95a664['getSuggestion'](_0x156813),_0x3f8eb5=_0x29188e['data'];if('formatBlock'!=_0x29188e['type']||!_0x3f8eb5||'setTableColumnHeader'!=_0x3f8eb5['commandName'])return;if(_0x16a37a['item'])return void _0x35d693['stop']();if(!_0x213774['consumable']['consume'](_0x16a37a['markerRange'],_0x35d693['name']))return;const _0x1dc5ac=_0x16a37a['markerRange']['start']['nodeAfter'],_0x5b2507=_0x16a37a['markerRange']['end']['nodeBefore'],_0x15cbd5=_0x1dc5ac['parent']['parent'],{column:_0x395f89}=_0x3e870f['getCellLocation'](_0x1dc5ac),{column:_0x324762}=_0x3e870f['getCellLocation'](_0x5b2507);for(let _0x3f08ba=_0x395f89;_0x3f08ba<=_0x324762;_0x3f08ba++){const _0x382fb2=_0x3e870f['createTableWalker'](_0x15cbd5,{'column':_0x3f08ba,'includeAllSlots':!0x1});for(const _0x4e1b48 of _0x382fb2){const _0x163e7e=_0x4e1b48['cell'],_0x46e845=_0x213774['mapper']['toViewElement'](_0x163e7e);_0x213774['writer']['addClass']('ck-suggestion-marker-'+_0x5d24b0,_0x46e845),_0x4dd8ea&&_0x213774['writer']['setAttribute']('data-suggestion',_0x156813,_0x46e845),_0x213774['mapper']['bindElementToMarker'](_0x46e845,_0x16a37a['markerName']),_0x3c5da6&&(_0x95a664['activeMarkers']['includes'](_0x16a37a['markerName'])?_0x213774['writer']['addClass']('ck-suggestion-marker--active',_0x46e845):_0x213774['writer']['removeClass']('ck-suggestion-marker--active',_0x46e845));}}};}_0x95a664['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x166cdd),_0x95a664['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x166cdd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x55a8c2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x174be2,_0x578c31,_0xdaf3ed)=>{_0xdaf3ed['options']['showSuggestionHighlights']&&_0x55a8c2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x174be2,_0x578c31,_0xdaf3ed);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xa29b2b,_0x55907d,_0x107f09)=>{const {type:_0x5cf782,id:_0x19c28f}=_0x95a664['_splitMarkerName'](_0x55907d['markerName']);if(!_0x95a664['hasSuggestion'](_0x19c28f))return;const _0x3cc130=_0x95a664['getSuggestion'](_0x19c28f),_0x583e2b=_0x3cc130['data'];if('formatBlock'!=_0x3cc130['type']||!_0x583e2b||'setTableColumnHeader'!=_0x583e2b['commandName'])return;const _0x47c6cc=_0x107f09['mapper']['markerNameToElements'](_0x55907d['markerName']);if(_0x47c6cc){for(const _0x3b3cba of _0x47c6cc)_0x107f09['writer']['removeClass']('ck-suggestion-marker-'+_0x5cf782,_0x3b3cba),_0x107f09['writer']['removeClass']('ck-suggestion-marker--active',_0x3b3cba),_0x107f09['writer']['removeAttribute']('data-suggestion',_0x3b3cba),_0x107f09['mapper']['unbindElementFromMarkerName'](_0x3b3cba,_0x55907d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5144ee=this['editor'],_0x2c67d1=_0x5144ee['locale'];function _0x261253(_0x25ff07){return{'type':'format','content':o(_0x2c67d1,'*Format:*\x20%0',_0x25ff07)};}_0x5144ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x64253d=>{if('formatBlock'!=_0x64253d['type'])return;const {data:_0xf16640}=_0x64253d;if(_0xf16640){if('setTableRowHeader'==_0xf16640['commandName']){const _0x190f9b=_0xf16640['commandParams'][0x0]['forceValue'];return _0x261253(o(_0x2c67d1,_0x190f9b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xf16640['commandName']){const _0x57e045=_0xf16640['commandParams'][0x0]['forceValue'];return _0x261253(o(_0x2c67d1,_0x57e045?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Tt extends _0x150e1e{['afterInit'](){const _0x709c9c=this['editor'],_0x5a3beb=_0x709c9c['locale'],_0x512dad=_0x709c9c['plugins']['get']('TrackChangesEditing');function _0x2ed203(_0x505b2b){return{'type':'format','content':''+o(_0x5a3beb,'*Set\x20table\x20type:*\x20%0',_0x505b2b)};}_0x709c9c['plugins']['has']('TableLayout')&&(_0x512dad['enableCommand']('insertTableLayout'),_0x512dad['enableDefaultAttributesIntegration']('tableType'),_0x512dad['registerBlockAttribute']('tableType'),_0x512dad['descriptionFactory']['registerElementLabel'](_0x17434b=>_0x17434b['is']('element','table')&&'layout'===_0x17434b['getAttribute']('tableType'),_0x21fd98=>o(_0x5a3beb,'ELEMENT_LAYOUT_TABLE',_0x21fd98)),_0x512dad['descriptionFactory']['registerDescriptionCallback'](_0x5c0cfc=>{const {data:_0x3e28ce}=_0x5c0cfc;if(_0x3e28ce&&'tableType'==_0x3e28ce['key'])switch(_0x3e28ce['newValue']){case'layout':return _0x2ed203(o(_0x5a3beb,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ed203(o(_0x5a3beb,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Ue['map'](_0x4afc07=>[_0x4afc07,null]));class Ot extends _0x150e1e{static get['requires'](){return[Dt];}['afterInit'](){const _0x1a0db5=this['editor'];if(!_0x1a0db5['plugins']['has']('TableClipboard'))return;const _0x5515df=_0x1a0db5['plugins']['get']('TrackChangesEditing'),_0x28f962=_0x1a0db5['plugins']['get']('TableUtils'),_0x470e3c=_0x1a0db5['plugins']['get'](Dt),_0x2b4ee0=_0x1a0db5['plugins']['get']('TableClipboard'),_0x2df325=_0x1a0db5['plugins']['get']('TableSelection'),_0x54453f=_0x1a0db5['plugins']['get'](_0x493ab6);_0x470e3c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1a0db5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1a0db5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x8fe41d=null,_0xd3e8b5=!0x1;_0x54453f['on']('contentInsertion',(_0x51148f,_0x5382f7)=>{_0xd3e8b5='paste'===_0x5382f7['method'];}),_0x1a0db5['model']['on']('insertContent',(_0x112574,_0x27d61f)=>{if(!_0xd3e8b5&&null===_0x2df325['getSelectedTableCells']())return;const [_0x49f502,_0x251da2]=_0x27d61f,_0x3a2f49=_0x27d61f[_0x27d61f['length']-0x1];_0x3a2f49&&_0x3a2f49['forceDefaultExecution']||_0x5515df['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x54155f,_0xf6a5ff,_0x54ed25,_0x82206,_0x39d5ae){if(_0xf6a5ff&&!_0xf6a5ff['is']('documentSelection'))return!0x1;const _0x1d6ac9=_0x39d5ae['getTableIfOnlyTableInContent'](_0x54155f,_0x54ed25);if(!_0x1d6ac9||!Ge(_0x1d6ac9,void 0x0,_0x82206))return!0x1;const _0x2be5b7=_0x82206['getSelectionAffectedTableCells'](_0x54ed25['document']['selection']);if(!_0x2be5b7['length'])return!0x1;const _0x102032=_0x2be5b7[0x0]['findAncestor']('table'),_0x257b4f=_0x82206['getRowIndexes'](_0x2be5b7),_0xd8fecb=_0x82206['getColumnIndexes'](_0x2be5b7),_0x549425={'startRow':_0x257b4f['first'],'endRow':_0x257b4f['last'],'startColumn':_0xd8fecb['first'],'endColumn':_0xd8fecb['last']};return 0x1==_0x2be5b7['length']&&(_0x549425['endRow']+=_0x82206['getRows'](_0x1d6ac9)-0x1,_0x549425['endColumn']+=_0x82206['getColumns'](_0x1d6ac9)-0x1),Ge(_0x102032,_0x549425,_0x82206);}(_0x49f502,_0x251da2,_0x1a0db5['model'],_0x28f962,_0x2b4ee0)&&(_0x112574['stop'](),_0x8fe41d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1a0db5['model']['change'](()=>{_0x1a0db5['model']['insertContent'](_0x27d61f[0x0],_0x27d61f[0x1],_0x27d61f[0x2],{'forceDefaultExecution':!0x0});const _0xaeb3a9=_0x2f3bfc(),{rowInsertionRanges:_0xf77b99,columnInsertionRanges:_0x1e228e,insertionRanges:_0x343059,deletionRanges:_0x4a95a8,cells:_0x829a58}=_0x8fe41d;_0xf77b99['length']&&_0x5515df['markMultiRangeInsertion'](_0xf77b99,'tablePasteRow',{'tablePasteChainId':_0xaeb3a9}),_0x1e228e['length']&&_0x5515df['markMultiRangeInsertion'](_0x1e228e,'tablePasteColumn',{'tablePasteChainId':_0xaeb3a9}),_0x343059['length']&&(_0x5515df['markMultiRangeInsertion'](_0x343059,'tablePaste',{'tablePasteChainId':_0xaeb3a9,'skipNestingCheck':!0x0}),_0x343059['forEach'](_0x353b3d=>_0x353b3d['detach']?.())),_0x4a95a8['length']&&(_0x5515df['markMultiRangeDeletion'](_0x4a95a8,'tablePaste',{'tablePasteChainId':_0xaeb3a9,'skipNestingCheck':!0x0}),_0x4a95a8['forEach'](_0x53ba77=>_0x53ba77['detach']?.()));const _0x5ed22f=_0x5515df['markMultiRangeBlockFormat'](_0x829a58['map'](({element:_0xa21fd9})=>_0xa21fd9),{'formatGroupId':_0x2f3bfc()},[],'tablePasteCell',{'tablePasteChainId':_0xaeb3a9});if(_0x5ed22f){const _0x53b9b9=_0x5ed22f['getMarkers'](),_0x152f07=[];for(const {element:_0x4e64df,attributes:_0x485e35}of _0x829a58){if(!_0x485e35)continue;const _0x4b4a34=_0x1a0db5['model']['createRangeOn'](_0x4e64df),_0x1ce67d=_0x53b9b9['find'](_0x16f84a=>_0x16f84a['getRange']()['isEqual'](_0x4b4a34));_0x1ce67d&&_0x152f07['push']([_0x1ce67d['name'],_0x485e35]);}_0x152f07['length']&&_0x5ed22f['setAttribute']('markerAttributes',Object['fromEntries'](_0x152f07));}_0x8fe41d=null;}));},{'priority':_0x121033['high']+0xa}),_0x54453f['on']('contentInsertion',()=>{_0xd3e8b5=!0x1;},{'priority':'lowest'}),_0x1a0db5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3086af,_0x4673d0)=>{const [_0x5cfd14,_0x19e97f,,_0x49c9fd]=_0x4673d0;if(!_0x8fe41d)return;_0x3086af['stop']();const _0x18d69c=_0x5cfd14['cell'],_0x589bf6=_0x19e97f,_0xa3e171=ze(_0x18d69c),_0x40f340=ze(_0x589bf6);_0x3086af['return']=_0x18d69c;let _0x419d63=null,_0x336d9d=null;if(_0x40f340||_0xa3e171){if(_0xa3e171&&!_0x40f340){_0x49c9fd['remove'](_0x18d69c['getChild'](0x0));for(const _0x2cbd52 of Array['from'](_0x589bf6['getChildren']()))_0x49c9fd['insert'](_0x2cbd52,_0x18d69c,'end');const _0x30698a=_0x8fe41d['rowInsertionIndexes']['includes'](_0x5cfd14['row']),_0xbb10f7=_0x8fe41d['columnInsertionIndexes']['includes'](_0x5cfd14['column']);_0x30698a||_0xbb10f7||(_0x419d63=_0x4b855c['fromRange'](_0x49c9fd['createRangeIn'](_0x18d69c)));}else _0x40f340&&!_0xa3e171&&(_0x336d9d=_0x49c9fd['createRangeIn'](_0x18d69c));}else{const _0x33b4a0=_0x49c9fd['createElement']('tableCellSuggestion'),_0x3cc595=_0x49c9fd['createElement']('tableCellSuggestion');_0x49c9fd['wrap'](_0x49c9fd['createRangeIn'](_0x18d69c),_0x3cc595),_0x49c9fd['insert'](_0x33b4a0,_0x18d69c,0x0);for(const _0x4891a3 of Array['from'](_0x589bf6['getChildren']()))_0x49c9fd['insert'](_0x4891a3,_0x33b4a0,'end');_0x419d63=_0x4b855c['fromRange'](_0x49c9fd['createRangeOn'](_0x33b4a0)),_0x336d9d=_0x4b855c['fromRange'](_0x49c9fd['createRangeOn'](_0x3cc595));}const _0x20c218=Array['from'](_0x589bf6['getAttributes']())['filter'](([_0xaef6e5])=>Ue['includes'](_0xaef6e5));_0x8fe41d['cells']['push']({'element':_0x18d69c,'attributes':_0x20c218['length']?Object['fromEntries'](_0x20c218):null}),_0x419d63&&_0x8fe41d['insertionRanges']['push'](_0x419d63),_0x336d9d&&_0x8fe41d['deletionRanges']['push'](_0x336d9d);},{'priority':'high'}),_0x28f962['on']('insertColumns',(_0x2c675a,_0x16db67)=>{const [_0x5396e1,_0x222c91={}]=_0x16db67;if(!_0x8fe41d)return;const _0x52fee7=_0x222c91['at']||0x0,_0x49e11a=_0x222c91['columns']||0x1;_0x8fe41d['columnInsertionIndexes']=new Array(_0x49e11a)['fill'](_0x52fee7)['map']((_0x575c46,_0x4a2b8b)=>_0x575c46+_0x4a2b8b);for(const {cell:_0x5ce991}of _0x28f962['createTableWalker'](_0x5396e1,{'startColumn':_0x52fee7,'endColumn':_0x52fee7+_0x49e11a-0x1}))_0x8fe41d['columnInsertionRanges']['push'](_0x1a0db5['model']['createRangeOn'](_0x5ce991));},{'priority':'low'}),_0x28f962['on']('insertRows',(_0x1ba686,_0x34f89)=>{const [_0x1555b5,_0x3945b9={}]=_0x34f89;if(!_0x8fe41d)return;const _0x138aa1=_0x3945b9['at']||0x0,_0x47cb9e=_0x3945b9['rows']||0x1;_0x8fe41d['rowInsertionIndexes']=new Array(_0x47cb9e)['fill'](_0x138aa1)['map']((_0x17940e,_0x3de6a7)=>_0x17940e+_0x3de6a7);for(const {cell:_0x2dcd61}of _0x28f962['createTableWalker'](_0x1555b5,{'startRow':_0x138aa1,'endRow':_0x138aa1+_0x47cb9e-0x1}))_0x8fe41d['rowInsertionRanges']['push'](_0x1a0db5['model']['createRangeOn'](_0x2dcd61));},{'priority':'low'}),_0x5515df['descriptionFactory']['registerDescriptionCallback'](_0x411988=>{if(_0x411988['subType']&&_0x411988['subType']['startsWith']('tablePaste'))return _0x411988['previous']?{}:{'type':'insertion','content':o(_0x1a0db5['locale'],'*Replace\x20table\x20cells*')};});const _0x48df57=()=>!0x1;for(const _0x315b7f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5515df['_suggestionFactory']['registerCustomCallback']('insertion',_0x315b7f,'join',_0x48df57),_0x5515df['_suggestionFactory']['registerCustomCallback']('deletion',_0x315b7f,'join',_0x48df57),_0x5515df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x315b7f,'join',_0x48df57);_0x5515df['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x48df57),_0x5515df['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5d3429,_0x5a8222,_0x1f9d4f)=>{const _0x453d3c=_0x5d3429['map'](_0xc3f87e=>_0xc3f87e['getContainedElement']())['filter'](_0x488ca3=>_0x488ca3),_0x381e03=new Map(_0x453d3c['map'](_0x2d09c3=>[_0x2d09c3,null]));if(_0x8fe41d){for(const {element:_0x5985d3,attributes:_0x27ef62}of _0x8fe41d['cells'])_0x27ef62&&_0x381e03['set'](_0x5985d3,_0x27ef62);}else{if(_0x1f9d4f&&_0x1f9d4f['markerAttributes'])for(const [_0xebb4ce,_0x4a1e54]of Object['entries'](_0x1f9d4f['markerAttributes'])){const _0x5225ab=_0x1a0db5['model']['markers']['get'](_0xebb4ce),_0x53107e=_0x5225ab?_0x5225ab['getRange']()['getContainedElement']():null;_0x53107e&&_0x381e03['set'](_0x53107e,_0x4a1e54);}}_0x1a0db5['model']['change'](_0x5833b5=>{for(const [_0x46199e,_0x568ea3]of _0x381e03)_0x5833b5['setAttributes']({...He,..._0x568ea3},_0x46199e);});});const _0x5b7fd6=(_0x4895dd,_0x30ff46)=>{_0x5515df['_suggestionFactory']['registerCustomCallback'](_0x4895dd,'tablePaste',_0x30ff46,(_0x538783,_0x5012c0,_0x1e07bc)=>{_0x1a0db5['model']['change'](_0x308a45=>{const _0x5682bf=[];for(const _0x2bb1d3 of _0x538783){const _0x4328d5=_0x2bb1d3['start']['nodeAfter'];_0x4328d5['is']('element','tableCellSuggestion')&&_0x5682bf['push'](_0x4328d5);}_0x5515df['_suggestionFactory']['getSuggestionCallback'](_0x4895dd,null,_0x30ff46)(_0x538783,_0x5012c0,_0x1e07bc);for(const _0x4dd8d8 of _0x5682bf)'$graveyard'!=_0x4dd8d8['root']['rootName']&&_0x308a45['unwrap'](_0x4dd8d8);});});};_0x5b7fd6('insertion','accept'),_0x5b7fd6('insertion','discard'),_0x5b7fd6('deletion','accept'),_0x5b7fd6('deletion','discard'),_0x5515df['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5b0c6d=>{const _0x253c98=_0x5b0c6d['map'](_0x32af99=>_0x32af99['getContainedElement']()),_0x50e5cb=_0x253c98[0x0]['findAncestor']('table'),{minRow:_0x1c295f,maxRow:_0x2b46bf}=_0x470e3c['_getCoordsForCells'](_0x253c98);_0x28f962['removeRows'](_0x50e5cb,{'at':_0x1c295f,'rows':_0x2b46bf-_0x1c295f+0x1});}),_0x5515df['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe3ee0c=>{const _0x17f558=_0xe3ee0c['map'](_0xeac84a=>_0xeac84a['getContainedElement']()),_0x3e3930=_0x17f558[0x0]['findAncestor']('table'),{minColumn:_0x1adf6d,maxColumn:_0x4ccd8f}=_0x470e3c['_getCoordsForCells'](_0x17f558);_0x28f962['removeColumns'](_0x3e3930,{'at':_0x1adf6d,'columns':_0x4ccd8f-_0x1adf6d+0x1});});const _0x43ee5a=(_0xcc2d66,_0x42befd)=>{if(!_0x42befd['subType']||!_0x42befd['subType']['startsWith']('tablePaste'))return;const _0x192a3d=_0x42befd['attributes']['tablePasteChainId'],_0x51658c=_0x5515df['getSuggestions']()['filter'](_0x1d4a21=>_0x1d4a21['isInContent']&&_0x1d4a21['attributes']&&_0x1d4a21['attributes']['tablePasteChainId']==_0x192a3d);_0x51658c['length']&&_0x42befd['getAllAdjacentSuggestions']()['length']!=_0x51658c['length']&&_0x51658c['reduce']((_0x2e4e83,_0x356147)=>(_0x2e4e83['next']=_0x356147,_0x356147['previous']=_0x2e4e83,_0x356147));};function _0x5c3cc1(_0xbcb0b1,_0x147472=!0x0){const {id:_0x2e2623,authorId:_0x456f17}=_0x5515df['_splitMarkerName'](_0xbcb0b1['markerName']),_0x2b8935=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5c6f4c=_0x5515df['activeMarkers']['includes'](_0xbcb0b1['markerName']);return _0x5c6f4c&&_0x2b8935['push']('ck-suggestion-marker--active'),{'classes':_0x2b8935,'attributes':{'data-suggestion':_0x2e2623,'data-author-id':_0x456f17},'priority':_0x5c6f4c&&_0x147472?0xbc2:0xbb8};}_0x5515df['on']('suggestionLoaded',_0x43ee5a,{'priority':'high'}),_0x5515df['on']('suggestionUnloaded',_0x43ee5a,{'priority':'high'}),_0x1a0db5['model']['document']['registerPostFixer'](()=>{let _0x1aed15=!0x1;const _0x1871a4=Array['from'](_0x1a0db5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x248c3d,data:_0x5d99ce}of _0x1871a4){const {group:_0x19175a,type:_0x58df6a,id:_0x4df97c}=_0x5515df['_splitMarkerName'](_0x248c3d);if('suggestion'!=_0x19175a||'deletion'!=_0x58df6a||_0x5d99ce['oldRange'])continue;if(!_0x5515df['hasSuggestion'](_0x4df97c))continue;const _0x275d10=_0x5515df['getSuggestion'](_0x4df97c)['getRanges'](),_0x52a66d=_0x1a0db5['plugins']['get']('Users')['me'];for(const _0x1d8ef0 of _0x5515df['getSuggestions']()){if(!_0x1d8ef0['isInContent']||_0x1d8ef0['author']!=_0x52a66d)continue;if('formatBlock'!=_0x1d8ef0['type']||'tablePasteCell'!=_0x1d8ef0['subType'])continue;if(_0x1d8ef0['getRanges']()['every'](_0x457a44=>_0x275d10['some'](_0x4b5da8=>_0x4b5da8['containsRange'](_0x457a44,!0x0)))){for(const _0x14cf4 of _0x1d8ef0['getAllAdjacentSuggestions']())_0x14cf4['isInContent']&&(_0x14cf4['discard'](),_0x1aed15=!0x0);}}}return _0x1aed15;}),_0x1a0db5['model']['document']['registerPostFixer'](_0x5bdbb5=>{const _0x5a7874=_0x1a0db5['commands']['get']('redo');if(!_0x5a7874||!_0x5a7874['_createdBatches']['has'](_0x5bdbb5['batch']))return!0x1;let _0x4a04b1=!0x1;const _0x2025cb=_0x1a0db5['plugins']['get']('Users')['me'],_0x56c788=_0x1a0db5['model']['document']['differ']['getChanges'](),_0x2ff09d=Array['from'](_0x1a0db5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x577228,data:_0x4a11f2})=>{const {group:_0xb2d9b6,subType:_0x193b70,authorId:_0x33efb3}=_0x5515df['_splitMarkerName'](_0x577228);return'suggestion'==_0xb2d9b6&&'tablePaste'==_0x193b70&&_0x33efb3==_0x2025cb['id']&&!_0x4a11f2['oldRange'];});for(const _0x55e300 of _0x56c788){if('insert'!=_0x55e300['type']||'tableCellSuggestion'!=_0x55e300['name']||0x1!=_0x55e300['length'])continue;const _0x2770b8=_0x5bdbb5['createRange'](_0x55e300['position'],_0x55e300['position']['getShiftedBy'](0x1));if(!_0x2ff09d['find'](({data:_0x2bf872})=>_0x2bf872['newRange']['isEqual'](_0x2770b8))){for(const {name:_0x25b2a5,data:_0x5d4461}of _0x2ff09d)if(_0x2770b8['containsRange'](_0x5d4461['newRange'])){_0x5bdbb5['updateMarker'](_0x25b2a5,{'range':_0x2770b8}),_0x4a04b1=!0x0;break;}}}return _0x4a04b1;}),_0x1a0db5['model']['document']['registerPostFixer'](_0x861437=>{let _0x216a0b=!0x1;const _0x41bc99=_0x1a0db5['plugins']['get']('Users')['me'],_0x3f1e29=_0x5515df['getSuggestions']()['filter'](_0x16b62b=>_0x16b62b['isInContent']&&_0x16b62b['author']==_0x41bc99),_0x5c9f02=new Set(),_0x16b4b3=new Set();for(const _0x41f5d6 of _0x3f1e29)if('tablePaste'==_0x41f5d6['subType'])for(const _0x220c75 of _0x41f5d6['getMarkers']()){const _0x56be2c=_0x220c75['getRange']()['getContainedElement']();if(_0x56be2c){if(_0x56be2c['is']('element','tableCellSuggestion')&&ze(_0x56be2c)){_0x41f5d6['removeMarker'](_0x220c75['name']),_0x5c9f02['add'](_0x56be2c),_0x216a0b=!0x0;const _0x2d0dd0=_0x56be2c['nextSibling'],_0x50acbb=_0x56be2c['previousSibling'],_0x36dc95=_0x2d0dd0&&_0x2d0dd0['is']('element','tableCellSuggestion'),_0x5a34c2=_0x50acbb&&_0x50acbb['is']('element','tableCellSuggestion');_0x36dc95&&!_0x5c9f02['has'](_0x2d0dd0)&&_0x16b4b3['add'](_0x2d0dd0),_0x5a34c2&&!_0x5c9f02['has'](_0x50acbb)&&_0x16b4b3['add'](_0x50acbb);}else _0x56be2c['is']('element','paragraph')&&_0x56be2c['isEmpty']&&(_0x41f5d6['removeMarker'](_0x220c75['name']),_0x216a0b=!0x0);}}else{if('tablePasteCell'==_0x41f5d6['subType']){if(!_0x41f5d6['attributes']||!_0x41f5d6['attributes']['tablePasteChainId'])continue;const _0x525ea0=_0x41f5d6['attributes']['markerAttributes'];if(_0x525ea0&&Object['keys'](_0x525ea0)['length'])continue;const _0x494585=_0x41f5d6['attributes']['tablePasteChainId'];let _0x3ffa53=!0x0,_0x4e0891=!0x0;for(const _0x41e0e6 of _0x3f1e29)if(_0x41e0e6['subType']&&_0x41e0e6['subType']['startsWith']('tablePaste')){if(!_0x41e0e6['attributes']['tablePasteChainId']){_0x4e0891=!0x1;break;}if(_0x41e0e6['id']!=_0x41f5d6['id']&&_0x41e0e6['attributes']['tablePasteChainId']==_0x494585){_0x3ffa53=!0x1;break;}}_0x4e0891&&_0x3ffa53&&(_0x41f5d6['removeMarkers'](),_0x216a0b=!0x0);}}for(const _0x14c0d1 of _0x5c9f02)_0x861437['remove'](_0x14c0d1);for(const _0x4c970b of _0x16b4b3)_0x861437['unwrap'](_0x4c970b);return _0x216a0b;}),_0x1a0db5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x384a05=>_0x5c3cc1(_0x384a05),'converterPriority':'high'}),_0x1a0db5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1dece2,_0x332c94)=>_0x332c94['options']['showSuggestionHighlights']?_0x5c3cc1(_0x1dece2,!0x1):null,'converterPriority':'high'});const _0x211ea7=_0x1a0db5['editing']['view'];this['listenTo'](_0x211ea7['document'],'clipboardOutput',(_0x46d767,_0x125df4)=>{const _0x2a7d2f=[];for(const _0x112a9c of _0x211ea7['createRangeIn'](_0x125df4['content'])['getItems']())_0x112a9c['is']('element','suggestion-td')&&_0x2a7d2f['push'](_0x112a9c);_0x211ea7['change'](_0x244912=>{for(const _0x1febcc of _0x2a7d2f)_0x244912['move'](_0x244912['createRangeIn'](_0x1febcc),_0x244912['createPositionBefore'](_0x1febcc)),_0x244912['remove'](_0x1febcc);});});}}function ze(_0x14fd38){if(_0x14fd38['isEmpty'])return!0x0;const _0x4cb8a5=_0x14fd38['getChild'](0x0);return _0x4cb8a5['is']('element','paragraph')&&_0x4cb8a5['isEmpty'];}function Ge(_0x508a89,_0x2b4f70={},_0x176700){for(const {isAnchor:_0x72e410,cellHeight:_0x31bb2a,cellWidth:_0x44159b}of _0x176700['createTableWalker'](_0x508a89,{'includeAllSlots':!0x0,..._0x2b4f70}))if(!_0x72e410||0x1!=_0x31bb2a||0x1!=_0x44159b)return!0x1;return!0x0;}class xt extends _0x150e1e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3305b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x3305b1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3305b1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3305b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3305b1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3305b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3305b1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x468080,_0x513ccc){const _0x23f8a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d5fd0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x42cf29=_0x513ccc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x283d67=_0x2d5fd0['getColumnGroupElement'](_0x42cf29);let _0x435a6a=_0x283d67?_0x2d5fd0['getTableColumnsWidths'](_0x283d67):null,_0x2a5433=_0x42cf29['getAttribute']('tableWidth')||null;const _0x3406c0=_0x513ccc['tableWidth']||_0x2a5433,_0x50e49f=_0x513ccc['columnWidths']||_0x435a6a,_0xf69e36=this['editor']['plugins']['get']('Users')['me'];for(const _0x58a20c of _0x23f8a9['getSuggestions']()){const _0x3c6d17=_0x58a20c['getContainedElement']();if('resizeTable'===_0x58a20c['subType']&&_0x3c6d17===_0x42cf29){_0x58a20c['author']!==_0xf69e36&&_0x58a20c['discard']();const _0x3ea0fa=_0x58a20c['data']['commandParams'];_0x2a5433=_0x3ea0fa[0x0]['tableWidth'],_0x435a6a=_0x3ea0fa[0x0]['columnWidths'];break;}}_0x468080({'table':_0x42cf29,'tableWidth':_0x3406c0,'columnWidths':_0x50e49f}),_0x23f8a9['markBlockFormat'](_0x42cf29,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a5433,'columnWidths':_0x435a6a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x52441d){if('formatBlock'!=_0x52441d['type']&&'formatInline'!=_0x52441d['type'])return;const {data:_0x1679c8}=_0x52441d;if(_0x1679c8&&'resizeTable'===_0x1679c8['formatGroupId']){const _0x1dcc79='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1dcc79)};}}}class Et extends _0x150e1e{['afterInit'](){const _0x491424=this['editor'];_0x491424['plugins']['has']('Template')&&_0x491424['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x150e1e{['afterInit'](){const _0xe6d893=this['editor'];if(!_0xe6d893['commands']['get']('insertTableOfContents'))return;_0xe6d893['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2708e6=_0xe6d893['plugins']['get']('TrackChangesEditing'),_0x443c0c=_0xe6d893['locale'];_0x2708e6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x20158a=>o(_0x443c0c,'ELEMENT_TABLE_OF_CONTENTS',_0x20158a));}}class Ut extends _0x150e1e{['afterInit'](){const _0x5ad195=this['editor'];if(!_0x5ad195['plugins']['has']('Title'))return;const _0x19603e=_0x5ad195['plugins']['get']('TrackChangesEditing');_0x19603e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5ad195['locale'],'ELEMENT_TITLE')),_0x5ad195['model']['document']['registerPostFixer'](_0x593fb3=>{let _0x294e5a=!0x1;const _0x5df684=Array['from'](_0x5ad195['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58c68f,data:_0x5c7d30}of _0x5df684){const {group:_0x2e3700}=_0x19603e['_splitMarkerName'](_0x58c68f);if('suggestion'!==_0x2e3700||!_0x5c7d30['newRange'])continue;const _0x3d3c96=_0x5c7d30['newRange'],_0x2937e1=_0x3d3c96['end']['nodeBefore'];if(!_0x2937e1||!_0x2937e1['is']('element','title-content'))continue;if(!_0x3d3c96['start']['isTouching'](_0x3d3c96['end']))continue;const _0x1d793e=_0x5ad195['model']['schema']['getNearestSelectionRange'](_0x3d3c96['end'],'forward');if(_0x1d793e&&_0x1d793e['isCollapsed']){const _0xbbae55=_0x593fb3['createRange'](_0x3d3c96['start'],_0x1d793e['start']);_0xbbae55['isEqual'](_0x3d3c96)||(_0x593fb3['updateMarker'](_0x58c68f,{'range':_0xbbae55}),_0x294e5a=!0x0);}_0x294e5a||(_0x593fb3['removeMarker'](_0x58c68f),_0x294e5a=!0x0);}return _0x294e5a;});}}class Vt extends _0x150e1e{['afterInit'](){const _0x5c4581=this['editor'],_0x321c18=_0x5c4581['plugins']['get']('TrackChangesEditing');_0x5c4581['plugins']['has']('Uploadcare')&&(_0x321c18['enableCommand']('uploadcare'),_0x5c4581['plugins']['has']('UploadcareImageEdit')&&(_0x321c18['enableCommand']('uploadcareImageEdit'),_0x321c18['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x321c18['registerBlockAttribute']('uploadcareImageId'),_0x321c18['descriptionFactory']['registerDescriptionCallback'](_0x5f53e0=>{if('attribute'!=_0x5f53e0['type'])return;const {data:_0x412e83}=_0x5f53e0;return _0x412e83&&'uploadcareImageId'==_0x412e83['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x150e1e{['afterInit'](){const _0x219305=this['editor'],_0x2265d9=_0x219305['plugins']['get']('TrackChangesEditing');_0x219305['plugins']['has']('UndoEditing')&&(_0x2265d9['enableCommand']('undo'),_0x2265d9['enableCommand']('redo'));}}class Pt extends _0x150e1e{static get['requires'](){return[Dt];}['afterInit'](){const _0x3c6d9c=this['editor'];if(!_0x3c6d9c['plugins']['has']('TableCaptionEditing'))return;_0x3c6d9c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x150e1e{['tableProperties'];['tableCellProperties'];constructor(_0x15a049){super(_0x15a049),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 _0x4ebbeb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x94513b of this['tableProperties'])_0x4ebbeb['enableCommand'](_0x94513b,(_0xd3a249,_0x2fc28e)=>{const _0x1c0609=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x94513b,[_0x1c0609],this['tableProperties'],'tableProperties',_0xd3a249,_0x2fc28e);});_0x4ebbeb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4ebbeb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ebbeb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4de4b0,_0x2a1a4e)=>this['handleDiscardAction'](this['tableProperties'],_0x4de4b0,_0x2a1a4e)),_0x4ebbeb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5b41eb of this['tableCellProperties'])_0x4ebbeb['enableCommand'](_0x5b41eb,(_0x4c5eed,_0x5b61cb)=>{const _0x237efe=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5b41eb,_0x237efe,this['tableCellProperties'],'tableCellProperties',_0x4c5eed,_0x5b61cb);});_0x4ebbeb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4ebbeb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ebbeb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x592420,_0x284fc0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x592420,_0x284fc0)),_0x4ebbeb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4ebbeb['descriptionFactory']['registerDescriptionCallback'](_0x56a20d=>this['handleSuggestionDescription'](_0x56a20d)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2df60b,_0x482869,_0x19add8,_0x22bd89,_0x49edb2,_0x239cbd){const _0x54f69c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x239cbd['batch'],()=>{for(const _0x3ec7f1 of _0x482869){if(this['_getSuggestion'](_0x3ec7f1,_0x22bd89))_0x49edb2(_0x239cbd);else{const _0x2726d2={};for(const _0x181511 of _0x19add8){const _0x4fc716=_0x3ec7f1['getAttribute'](_0x181511);void 0x0!==_0x4fc716&&(_0x2726d2[_0x181511]=_0x4fc716);}_0x49edb2(_0x239cbd),_0x54f69c['markBlockFormat'](_0x3ec7f1,{'commandParams':[_0x2726d2]},[],_0x22bd89);}}});}['handleDiscardAction'](_0x2766ae,_0x36e5fa,_0xc3c740){const _0x303386=_0x36e5fa[0x0]['start']['nodeAfter'],_0x1039e8=_0xc3c740['commandParams'][0x0];this['editor']['model']['change'](_0x30f759=>{for(const _0x10c9b0 of _0x2766ae)void 0x0!==_0x1039e8[_0x10c9b0]?_0x30f759['setAttribute'](_0x10c9b0,_0x1039e8[_0x10c9b0],_0x303386):_0x30f759['removeAttribute'](_0x10c9b0,_0x303386);});}['handleSuggestionDescription'](_0x44fe77){if(_0x44fe77['data'])switch(_0x44fe77['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x582b90,_0x21bbf2){const _0xcb64f6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xc341e9 of _0xcb64f6['getSuggestions']({'skipNotAttached':!0x0})){const _0x33217e=_0xc341e9['getContainedElement']();if(_0xc341e9['subType']===_0x21bbf2&&_0x33217e===_0x582b90)return _0xc341e9;}return null;}['_registerTablePropertiesAttributes'](){const _0x1933f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29e73d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4a7402 of _0x29e73d){const _0x547af9=_0x4a7402['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1933f3['registerBlockAttribute'](_0x4a7402),_0x1933f3['descriptionFactory']['registerAttributeLabel'](_0x4a7402,o(this['editor']['locale'],'FORMAT_'+_0x547af9));}}}class Lt extends _0x150e1e{['afterInit'](){const _0x536b32=this['editor'];if(!_0x536b32['plugins']['has']('LineHeight'))return;const _0x35d60c=_0x536b32['plugins']['get']('TrackChangesEditing'),_0x304590=_0x536b32['locale'];_0x35d60c['enableDefaultAttributesIntegration']('lineHeight'),_0x35d60c['registerBlockAttribute']('lineHeight'),_0x35d60c['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x304590,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x150e1e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x49c4c1,_0x28dd1b,_0x20dcac,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht,ft,gt,lt,dt,pt,kt,St,mt,Y,Lt,Z,wt,bt,yt,jt,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Pt,Ot,xt,Rt,Gt,Et,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2403e7){super(_0x2403e7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1dd564,_0x2dc4f,_0x288e5d,_0x147926)=>{this['_model']['change'](()=>{for(const _0x2070c8 of[..._0x147926,..._0x288e5d])this['_model']['markers']['has'](_0x2070c8)&&_0x2403e7['editing']['reconvertMarker'](_0x2070c8);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2403e7['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x2403e7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2403e7['config']['get']('trackChanges.trackFormatChanges'),_0x2403e7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2403e7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2403e7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2e75a7=this['editor'],_0x3b4ecb=(_0x174968,_0x47f30b)=>{if('attribute'!=_0x174968)return'ck-suggestion-marker-'+_0x174968;const _0x2d83bc=_0x47f30b['split']('|')[0x0];return this['_isBlockAttribute'](_0x2d83bc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2e75a7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x27ac9b=>{const {id:_0x59cdce,authorId:_0x72cfa4,type:_0x33755c,subType:_0x44c3b7}=this['_splitMarkerName'](_0x27ac9b['markerName']),_0x119119=['ck-suggestion-marker',_0x3b4ecb(_0x33755c,_0x44c3b7)];let _0x1f6ff5=0xbb8;return this['activeMarkers']['includes'](_0x27ac9b['markerName'])&&(_0x119119['push']('ck-suggestion-marker--active'),_0x1f6ff5=0xbc2),'deletion'==_0x33755c&&(_0x1f6ff5+=0x5),{'classes':_0x119119,'attributes':{'data-suggestion':_0x59cdce,'data-author-id':_0x72cfa4},'priority':_0x1f6ff5};}}),_0x2e75a7['conversion']['for']('dataDowncast')['add'](_0x346925=>{_0x346925['on']('addMarker:suggestion',(_0x3e3eb9,_0x298529,_0x247f13)=>{if(!_0x247f13['options']['showSuggestionHighlights'])return;const _0x5c82d2=_0x298529['item'];if(!_0x5c82d2)return;const _0x127cac=_0x247f13['mapper']['toViewElement'](_0x5c82d2);_0x2e75a7['model']['schema']['isObject'](_0x5c82d2)&&_0x127cac&&!_0x127cac['getCustomProperty']('widget')&&_0x127cac['is']('containerElement')&&_0x12badd(_0x127cac,_0x247f13['writer']);},{'priority':'high'});}),_0x2e75a7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1476b2,_0x1d0a1f)=>{if(!_0x1d0a1f['options']['showSuggestionHighlights'])return null;const {id:_0x197efa,authorId:_0x42d917,type:_0x2fee88,subType:_0x1f8dd7}=this['_splitMarkerName'](_0x1476b2['markerName']);return{'classes':['ck-suggestion-marker',_0x3b4ecb(_0x2fee88,_0x1f8dd7)],'priority':0xbb8,'attributes':{'data-suggestion':_0x197efa,'data-author-id':_0x42d917}};}});const _0x33adb8=({showActiveMarkers:_0x130732=!0x0,isAttributeSuggestion:_0x33df10=!0x1}={})=>(_0x52f218,_0x416b75,_0x4f7cff)=>{if(!_0x416b75['item'])return;const {id:_0x23d7f2,authorId:_0x5895f9,subType:_0x1ee1fb}=this['_splitMarkerName'](_0x416b75['markerName']);if(_0x33df10){const _0x118fa8=re(_0x1ee1fb);if(!this['_isBlockAttribute'](_0x118fa8))return;}if(_0x416b75['item']['is']('selection'))return void _0x4f7cff['consumable']['consume'](_0x416b75['item'],_0x52f218['name']);const _0x24d466=_0x4f7cff['mapper']['toViewElement'](_0x416b75['item']);if(_0x416b75['item']['is']('element')&&_0x2e75a7['model']['schema']['isBlock'](_0x416b75['item'])&&!_0x24d466['getCustomProperty']('addHighlight')){_0x4f7cff['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x24d466),_0x4f7cff['writer']['setAttribute']('data-suggestion',_0x23d7f2,_0x24d466),_0x4f7cff['writer']['setAttribute']('data-author-id',_0x5895f9,_0x24d466),_0x4f7cff['mapper']['bindElementToMarker'](_0x24d466,_0x416b75['markerName']),_0x130732&&(this['activeMarkers']['includes'](_0x416b75['markerName'])?_0x4f7cff['writer']['addClass']('ck-suggestion-marker--active',_0x24d466):_0x4f7cff['writer']['removeClass']('ck-suggestion-marker--active',_0x24d466));for(const _0xd9e50f of _0x2e75a7['model']['createRangeIn'](_0x416b75['item'])['getItems']())_0x4f7cff['consumable']['consume'](_0xd9e50f,_0x52f218['name']);_0x4f7cff['consumable']['consume'](_0x416b75['item'],_0x52f218['name']);}};_0x2e75a7['conversion']['for']('dataDowncast')['add'](_0x19b225=>{_0x19b225['on']('addMarker:suggestion:formatBlock',(_0x1ba45b,_0x5d6ca6,_0x4255ac)=>{_0x4255ac['options']['showSuggestionHighlights']&&_0x33adb8({'showActiveMarkers':!0x1})(_0x1ba45b,_0x5d6ca6,_0x4255ac);},{'priority':'highest'});}),_0x2e75a7['conversion']['for']('dataDowncast')['add'](_0x753d00=>{_0x753d00['on']('addMarker:suggestion:attribute',(_0x3a5e99,_0x4dd9a0,_0x2f6fa8)=>{_0x2f6fa8['options']['showSuggestionHighlights']&&_0x33adb8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3a5e99,_0x4dd9a0,_0x2f6fa8);},{'priority':'highest'});}),_0x2e75a7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xa04867,_0x52a1a9)=>{if(_0x52a1a9['options']['showSuggestionHighlights']){const {id:_0x23f5d0,authorId:_0x3af991}=this['_splitMarkerName'](_0xa04867);return _0xa04867['includes'](':split')||_0xa04867['includes'](':merge')?{'group':'suggestion','name':_0xa04867['substr'](0xb),'attributes':{'data-suggestion':_0x23f5d0,'data-author-id':_0x3af991}}:null;}return{'group':'suggestion','name':_0xa04867['substr'](0xb)};}}),_0x2e75a7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3bdbea,{writer:_0xda609d})=>{let _0x4cbd79='suggestion:'+_0x3bdbea['getAttribute']('suggestion-type')+':'+_0x3bdbea['getAttribute']('id');return _0x3bdbea['getAttribute']('marker-count')&&(_0x4cbd79+=':'+_0x3bdbea['getAttribute']('marker-count')),_0xda609d['createElement']('$marker',{'data-name':_0x4cbd79});}}),_0x2e75a7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2e75a7['conversion']['for']('editingDowncast')['add'](_0x151b07=>{_0x151b07['on']('addMarker:suggestion:formatBlock',_0x33adb8(),{'priority':'high'});}),_0x2e75a7['conversion']['for']('editingDowncast')['add'](_0x382bfe=>{_0x382bfe['on']('addMarker:suggestion:attribute',_0x33adb8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2e75a7['conversion']['for']('editingDowncast')['add'](_0x3e7e28=>{_0x3e7e28['on']('removeMarker:suggestion:formatBlock',(_0x172269,_0x5cee67,_0xede6c8)=>{const _0x2dad0d=_0xede6c8['mapper']['markerNameToElements'](_0x5cee67['markerName']);if(_0x2dad0d){for(const _0x1c1f3e of _0x2dad0d)_0x1c1f3e['getCustomProperty']('addHighlight')||(_0xede6c8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c1f3e),_0xede6c8['writer']['removeAttribute']('data-suggestion',_0x1c1f3e),_0xede6c8['writer']['removeAttribute']('data-author-id',_0x1c1f3e),_0xede6c8['mapper']['unbindElementFromMarkerName'](_0x1c1f3e,_0x5cee67['markerName']));}},{'priority':'high'});}),_0x2e75a7['conversion']['for']('editingDowncast')['add'](_0x449ca2=>{_0x449ca2['on']('removeMarker:suggestion:attribute',(_0x3f0575,_0xd85e57,_0x38bcd5)=>{const _0x4b46b8=_0x38bcd5['mapper']['markerNameToElements'](_0xd85e57['markerName']);if(!_0x4b46b8)return;const {subType:_0x4e86ef}=this['_splitMarkerName'](_0xd85e57['markerName']),_0x480111=re(_0x4e86ef);if(this['_isBlockAttribute'](_0x480111)){for(const _0x25665e of _0x4b46b8)_0x25665e['getCustomProperty']('addHighlight')||(_0x38bcd5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x25665e),_0x38bcd5['writer']['removeAttribute']('data-suggestion',_0x25665e),_0x38bcd5['writer']['removeAttribute']('data-author-id',_0x25665e),_0x38bcd5['mapper']['unbindElementFromMarkerName'](_0x25665e,_0xd85e57['markerName']));}},{'priority':'high'});}),_0x2e75a7['model']['document']['registerPostFixer'](_0x3c842a=>{let _0x459c06=!0x1;const _0x1e4773=Array['from'](_0x2e75a7['model']['document']['differ']['getChangedMarkers']()),_0xfb9566=new Set();for(const {name:_0x32158c,data:_0x280ec4}of _0x1e4773){const {group:_0x57e8ee,type:_0x10390e,subType:_0x4964ac,id:_0x321604}=this['_splitMarkerName'](_0x32158c);if('suggestion'!==_0x57e8ee)continue;const _0x263c1a=_0x4964ac?'suggestion:'+_0x10390e+':'+_0x4964ac+':'+_0x321604:'suggestion:'+_0x10390e+':'+_0x321604,_0xd6ac45=_0x2e75a7['model']['markers']['getMarkersGroup'](_0x263c1a),_0x340cb3=_0x2e75a7['model']['markers']['get'](_0x32158c),_0x53683=this['_suggestions']['get'](_0x321604);if(null!=_0x280ec4['newRange']){'formatInline'==_0x10390e&&(_0x459c06=_0x459c06||Wt(_0x280ec4['newRange'],_0x32158c,_0x3c842a,_0x2e75a7['model']['schema']));const _0x31593b='attribute'==_0x10390e&&this['_isBlockAttribute'](_0x4964ac['split']('|')[0x0]),_0x19a273='attribute'==_0x10390e&&this['_isInlineAttribute'](_0x4964ac['split']('|')[0x0]);if(_0x280ec4['newRange']['isCollapsed']||'$graveyard'==_0x280ec4['newRange']['root']['rootName']||'formatBlock'==_0x10390e&&!Qt(_0x280ec4['newRange'])||_0x31593b&&!Qt(_0x280ec4['newRange'])||_0x19a273&&Xt(_0x280ec4['newRange'])||'deletion'==_0x10390e&&Xt(_0x280ec4['newRange'])||_0x340cb3&&Yt(_0x340cb3,_0xd6ac45))_0x3c842a['removeMarker'](_0x32158c),_0x459c06=!0x0;else{if(!_0x53683||!_0x53683['isInContent'])continue;if(_0x280ec4['newRange']&&_0x280ec4['oldRange']&&_0x280ec4['newRange']['isEqual'](_0x280ec4['oldRange']))continue;_0xfb9566['add'](_0x53683);}}}return _0xfb9566['size']>0x0&&(_0x459c06=!!this['_joinWithAdjacentSuggestions'](_0xfb9566)||_0x459c06),_0x459c06;}),_0x2e75a7['model']['document']['registerPostFixer'](_0x176a82=>{let _0x3a5049=!0x1;for(const _0x7e9094 of _0x2e75a7['model']['document']['differ']['getChanges']())if('insert'==_0x7e9094['type'])for(const _0xf9779 of this['_suggestions']['values']()){if(_0xf9779['isMultiRange']||!_0xf9779['isInContent'])continue;const _0x235033='formatBlock'==_0xf9779['type'],_0x390fb8=this['_getAttributeKey'](_0xf9779),_0x366894=_0x390fb8&&this['_isBlockAttribute'](_0x390fb8);if(!_0x235033&&!_0x366894)continue;const _0x42fc89=_0xf9779['getFirstRange']();if(_0x42fc89['start']['parent']!=_0x42fc89['end']['parent']&&!_0x42fc89['end']['isAtEnd']){const _0x2962e0=_0x2e75a7['model']['createPositionAt'](_0x42fc89['start']['nodeAfter'],'end'),_0x44f2c7=_0x2e75a7['model']['createRange'](_0x42fc89['start'],_0x2962e0);_0x176a82['updateMarker'](_0xf9779['getFirstMarker'](),{'range':_0x44f2c7}),_0x3a5049=!0x0;}}return _0x3a5049;}),_0x2e75a7['model']['document']['registerPostFixer'](_0x5d46df=>this['_processAttributeChanges'](_0x5d46df)),_0x2e75a7['model']['document']['registerPostFixer'](_0x2d1842=>!_0x2d1842['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2d1842)),_0x2e75a7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2e75a7['model']['document']['on']('change:data',(_0x563639,_0x40ba6d)=>{if(!_0x40ba6d['isLocal']||_0x40ba6d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x536059=_0x2e75a7['model']['document']['differ']['getChanges']();if(0x0==_0x536059['length'])return;const _0x5605bb=[],_0xa95d57=_0x536059['filter'](_0x2f69cf=>'attribute'==_0x2f69cf['type']),_0x39b309=_0x536059['filter'](_0x30862c=>'insert'==_0x30862c['type']&&'$text'!=_0x30862c['name']);for(const _0x553d31 of _0xa95d57)this['_isRegisteredAttribute'](_0x553d31['attributeKey'])&&_0x5605bb['push']({'key':_0x553d31['attributeKey'],'newValue':_0x553d31['attributeNewValue'],'oldValue':_0x553d31['attributeOldValue'],'range':te(_0x553d31['range'],_0x2e75a7['model'])});for(const _0xd76691 of _0x39b309){if('rename'!=_0xd76691['action']&&'refresh'!=_0xd76691['action'])continue;const _0x48bccc=ee(_0xd76691['position']['nodeAfter'],_0x2e75a7['model']),_0x4ad89b=_0xd76691['before'];'rename'==_0xd76691['action']&&_0x5605bb['push']({'key':m,'newValue':_0xd76691['name'],'oldValue':_0x4ad89b['name'],'range':_0x48bccc});for(const [_0x553814,_0x415213]of _0x4ad89b['attributes']){if(!this['_isRegisteredAttribute'](_0x553814))continue;const _0x58d72c=_0xd76691['attributes']['get'](_0x553814);_0x415213!==_0x58d72c&&_0x5605bb['push']({'key':_0x553814,'newValue':_0x58d72c,'oldValue':_0x415213,'range':_0x48bccc});}for(const [_0x563f10,_0x2077a4]of _0xd76691['attributes'])this['_isRegisteredAttribute'](_0x563f10)&&(_0x4ad89b['attributes']['has'](_0x563f10)||_0x5605bb['push']({'key':_0x563f10,'newValue':_0x2077a4,'oldValue':null,'range':_0x48bccc}));}0x0!=_0x5605bb['length']&&_0x2e75a7['model']['enqueueChange'](_0x40ba6d,_0x526ec4=>{const _0x3023ba=_0x2f3bfc();for(const {range:_0x4d02e1,key:_0x4ac129,oldValue:_0x3a231b,newValue:_0x31b200}of _0x5605bb)this['markAttributeChange'](_0x4d02e1,_0x4ac129,_0x3a231b,_0x31b200,{'groupId':_0x3023ba});this['_reduceExistingSuggestions'](_0x526ec4,_0x5605bb);});},{'priority':'lowest'}),_0x2e75a7['model']['markers']['on']('update:suggestion',(_0x5c72dc,_0x1feaf9,_0x2d72de)=>{if(null==_0x2d72de){const {id:_0x181c7a}=this['_splitMarkerName'](_0x1feaf9['name']),_0x6da5c2=this['_suggestions']['get'](_0x181c7a);_0x6da5c2&&_0x6da5c2['addMarkerName'](_0x1feaf9['name']);}}),_0x2e75a7['model']['document']['on']('change:data',()=>{const _0x33d977=Array['from'](_0x2e75a7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5d1a6e=>'suggestion'===this['_splitMarkerName'](_0x5d1a6e['name'])['group']);if(0x0===_0x33d977['length'])return;_0x33d977['sort']((_0x16f8fd,_0x52029b)=>{const _0x469ec7=_0x16f8fd['data']['oldRange'],_0x12c723=_0x52029b['data']['oldRange'];return null===_0x469ec7&&null===_0x12c723?0x0:null===_0x469ec7&&null!==_0x12c723?-0x1:null!==_0x469ec7&&null===_0x12c723?0x1:_0x469ec7['start']['isBefore'](_0x12c723['start'])?-0x1:0x1;});const _0x24936e=new Set(),_0x5e1694=new Set();for(const {name:_0x2cc5a7,data:_0x2f44b2}of _0x33d977){const {id:_0x49d17e}=this['_splitMarkerName'](_0x2cc5a7);if(null===_0x2f44b2['oldRange']){const _0x76de29=this['_handleNewSuggestionMarker'](_0x2cc5a7);_0x5e1694['add'](_0x76de29);}else{const _0x256672=this['_suggestions']['get'](_0x49d17e);null!==_0x2f44b2['newRange']||_0x256672['isInContent']?(_0x24936e['add'](_0x256672['head']),_0x5e1694['add'](_0x256672)):this['_removeSuggestion'](_0x256672);}}_0x5e1694['size']>0x0&&this['_refreshSuggestionsChain'](_0x5e1694);for(const _0x7845c of _0x24936e)this['fire']('suggestionChanged',_0x7845c);}),_0x2e75a7['model']['on']('applyOperation',(_0x17fbb1,_0x3a9837)=>{const _0x2dbd11=_0x3a9837[0x0];if(!this['_suggestions']['size'])return;if(!_0x2dbd11['isDocumentOperation'])return;if(_0x2dbd11['batch']['isUndo']||!_0x2dbd11['batch']['isLocal'])return;let _0x358346,_0xdd8463;switch(_0x2dbd11['type']){case'insert':_0x358346=_0x2e75a7['model']['createPositionAt'](_0x2dbd11['position']),_0xdd8463=_0x358346['getShiftedBy'](_0x2dbd11['howMany']);break;case'split':_0x358346=_0x2e75a7['model']['createPositionAt'](_0x2dbd11['splitPosition']),_0xdd8463=_0x2e75a7['model']['createPositionAt'](_0x2dbd11['moveTargetPosition']);break;case'move':_0x358346=_0x2e75a7['model']['createPositionAt'](_0x2dbd11['targetPosition']),_0xdd8463=_0x358346['getShiftedBy'](_0x2dbd11['howMany']);break;default:return;}const _0x40ba74=_0x2e75a7['model']['createRange'](_0x358346,_0xdd8463);_0x2e75a7['model']['change'](()=>{for(const {suggestion:_0x48036c,meta:_0x3341bd}of this['_findSuggestions'](_0x40ba74)){if(_0x48036c['isMultiRange'])continue;if('formatInline'==_0x48036c['type'])continue;const _0x312233=this['_getAttributeKey'](_0x48036c);if(_0x312233&&this['_isBlockAttribute'](_0x312233)&&'split'!=_0x2dbd11['type'])continue;const _0x22387f=_0x48036c['data']&&_0x48036c['data']['multipleBlocks'];('formatBlock'!=_0x48036c['type']||'split'==_0x2dbd11['type']&&!_0x22387f)&&(_0x3341bd['containsRangeInObject']||'insertion'==_0x48036c['type']&&_0x3341bd['isOwn']||_0x48036c['getFirstRange']()['containsRange'](_0x40ba74)&&this['_breakSuggestionMarker'](_0x48036c,_0x358346,_0xdd8463));}});},{'priority':'lowest'}),_0x2e75a7['model']['on']('deleteContent',(_0x291378,_0x32e03e)=>{const _0x2e9d32=_0x32e03e[0x0],_0x4fee7c=_0x32e03e[0x1];if(_0x4fee7c&&_0x4fee7c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2e9d32['isCollapsed'])return;const _0x35fdc0=_0x2e75a7['model']['schema'],{start:_0x477561,end:_0x41fa25}=_0x2e9d32['getFirstRange'](),_0x47f300=_0x477561['nodeAfter']&&_0x35fdc0['isLimit'](_0x477561['nodeAfter'])?null:_0x35fdc0['getNearestSelectionRange'](_0x477561,'forward'),_0x5a4899=_0x41fa25['nodeBefore']&&_0x35fdc0['isLimit'](_0x41fa25['nodeBefore'])?null:_0x35fdc0['getNearestSelectionRange'](_0x41fa25,'backward'),_0x4bd66b=_0x2e75a7['model']['createRange'](_0x47f300?_0x47f300['start']:_0x477561,_0x5a4899?_0x5a4899['end']:_0x41fa25);_0x2e75a7['model']['change'](_0x533d32=>{this['markDeletion'](_0x4bd66b);const _0x38ae0e=_0x2e75a7['model']['schema']['getNearestSelectionRange'](_0x4bd66b['start']);_0x2e9d32['is']('documentSelection')?_0x533d32['setSelection'](_0x38ae0e):_0x2e9d32['setTo'](_0x38ae0e);}),_0x291378['stop']();},{'priority':_0x121033['normal']+0xa}),_0x2e75a7['model']['on']('insertContent',(_0x4a0fcc,_0xeda754)=>{const _0x452c1a=_0xeda754[_0xeda754['length']-0x1];_0x452c1a&&_0x452c1a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2e75a7['model']['change'](()=>{let _0x14fb04=_0x2e75a7['model']['insertContent'](_0xeda754[0x0],_0xeda754[0x1],_0xeda754[0x2],{'forceDefaultExecution':!0x0});if(!_0x14fb04)return;_0x4a0fcc['return']=_0x14fb04['clone']();const _0x1a801f=_0x14fb04['end']['nodeBefore'],_0x23569d=_0x2e75a7['model']['schema'];_0x1a801f&&_0x23569d['isBlock'](_0x1a801f)&&!_0x23569d['isObject'](_0x1a801f)&&(_0x14fb04=_0x2e75a7['model']['createRange'](_0x14fb04['start'],_0x2e75a7['model']['createPositionAt'](_0x1a801f,'end'))),this['markInsertion'](_0x14fb04);}),_0x4a0fcc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x10594e=new T(_0x2e75a7,this['_suggestions']);_0x2e75a7['commands']['add']('acceptSuggestion',_0x10594e),this['enableCommand']('acceptSuggestion');const _0x326bc3=new O(_0x2e75a7,this['_suggestions']);_0x2e75a7['commands']['add']('discardSuggestion',_0x326bc3),this['enableCommand']('discardSuggestion'),_0x2e75a7['commands']['add']('acceptAllSuggestions',new x(_0x2e75a7,_0x10594e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2e75a7['commands']['add']('discardAllSuggestions',new x(_0x2e75a7,_0x326bc3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2e75a7['commands']['add']('acceptSelectedSuggestions',new E(_0x2e75a7,_0x10594e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2e75a7['commands']['add']('discardSelectedSuggestions',new E(_0x2e75a7,_0x326bc3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5a9436=_0x2e75a7['plugins']['get']('CommentsRepository');this['listenTo'](_0x5a9436,'addComment',(_0xf4b412,{threadId:_0x608fe0})=>{const _0x27fb36=this['_suggestions']['get'](_0x608fe0);_0x27fb36&&_0x27fb36['commentThread']&&0x1===_0x27fb36['commentThread']['length']&&this['_updateSuggestionData'](_0x608fe0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5a9436,'removeComment',(_0x43c3fa,{threadId:_0x58d6e2})=>{const _0x4673f9=this['_suggestions']['get'](_0x58d6e2);_0x4673f9&&_0x4673f9['commentThread']&&!_0x4673f9['commentThread']['length']&&this['_updateSuggestionData'](_0x58d6e2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x274a24){const _0x30a742=_0x443a1a([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0xeb20b2=0x6b0f5e6f,_0x3701cb=0x6b082837^_0xeb20b2,_0x54f3d1=window[_0x443a1a([0x44,0x61,0x74,0x65])][_0x443a1a([0x6e,0x6f,0x77])](),_0x3ddbcc=_0x274a24[_0x443a1a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x29dedc=new window[(_0x443a1a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x504467=>{_0x3ddbcc[_0x443a1a([0x6f,0x6e,0x63,0x65])](_0x443a1a([0x72,0x65,0x61,0x64,0x79]),_0x504467);}),_0x3f3d51={[_0x443a1a([0x6b,0x74,0x79])]:_0x443a1a([0x45,0x43]),[_0x443a1a([0x75,0x73,0x65])]:_0x443a1a([0x73,0x69,0x67]),[_0x443a1a([0x63,0x72,0x76])]:_0x443a1a([0x50,0x2d,0x32,0x35,0x36]),[_0x443a1a([0x78])]:_0x443a1a([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]),[_0x443a1a([0x79])]:_0x443a1a([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]),[_0x443a1a([0x61,0x6c,0x67])]:_0x443a1a([0x45,0x53,0x32,0x35,0x36])},_0x30f4dd=_0x3ddbcc[_0x443a1a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x443a1a([0x67,0x65,0x74])](_0x443a1a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9c103b(){let _0x249e7a,_0xdaf20d=null,_0x481efb=null;try{if(_0x30f4dd==_0x443a1a([0x47,0x50,0x4c]))return _0x443a1a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x249e7a=_0x56155d(),!_0x249e7a)return _0x443a1a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x249e7a[_0x443a1a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x481efb=_0x236b42(_0x249e7a[_0x443a1a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x249e7a[_0x443a1a([0x6a,0x74,0x69])])),await _0x38cb26()?_0x990743()?_0x5c3932()?_0x443a1a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xec68dd()?(_0x249e7a[_0x443a1a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x443a1a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xdaf20d=_0x8f737e(_0x443a1a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x249e7a[_0x443a1a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x443a1a([0x74,0x72,0x69,0x61,0x6c])&&(_0xdaf20d=_0x8f737e(_0x443a1a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f7bf3()):_0x443a1a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x443a1a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x443a1a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x443a1a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c3932(){const _0x518ba0=[_0x443a1a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x443a1a([0x74,0x72,0x69,0x61,0x6c])][_0x443a1a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x249e7a[_0x443a1a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54f3d1/0x3e8:0xe10*_0x3701cb;return _0x249e7a[_0x443a1a([0x65,0x78,0x70])]<_0x518ba0;}function _0x990743(){const _0x1545e1=_0x249e7a[_0x443a1a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1545e1)return!0x1;if(_0x1545e1[_0x443a1a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443a1a([0x2a])))return!0x0;if(_0x1545e1[_0x443a1a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443a1a([0x54,0x43])))return!0x0;if(_0x1545e1[_0x443a1a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443a1a([0x52,0x54,0x43]))){if(_0x3a4ff3())return!0x0;if(_0x18353d()||_0x313b1e())return!0x0;}return!0x1;}function _0xec68dd(){const _0x4e6422=_0x249e7a[_0x443a1a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e6422||0x0==_0x4e6422[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x561ef4}=new URL(window[_0x443a1a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e6422[_0x443a1a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x561ef4))return!0x0;const _0x1fe2b3=_0x561ef4[_0x443a1a([0x73,0x70,0x6c,0x69,0x74])](_0x443a1a([0x2e]));return _0x4e6422[_0x443a1a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52fd60=>_0x52fd60[_0x443a1a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443a1a([0x2a])))[_0x443a1a([0x6d,0x61,0x70])](_0x1b730b=>_0x1b730b[_0x443a1a([0x73,0x70,0x6c,0x69,0x74])](_0x443a1a([0x2e])))[_0x443a1a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d48ea=>_0x1d48ea[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1fe2b3[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x443a1a([0x6d,0x61,0x70])](_0x4c21ad=>Array(_0x1fe2b3[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c21ad[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x443a1a([0x66,0x69,0x6c,0x6c])](_0x4c21ad[0x0]===_0x443a1a([0x2a])?_0x443a1a([0x2a]):'')[_0x443a1a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c21ad))[_0x443a1a([0x73,0x6f,0x6d,0x65])](_0x55f03e=>_0x1fe2b3[_0x443a1a([0x65,0x76,0x65,0x72,0x79])]((_0x17bcec,_0x411b82)=>_0x55f03e[_0x411b82]===_0x17bcec||_0x55f03e[_0x411b82]===_0x443a1a([0x2a])));}function _0x4f7bf3(){return _0xdaf20d&&_0x481efb?new window[(_0x443a1a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54b2ba,_0x20d62c)=>{_0xdaf20d[_0x443a1a([0x74,0x68,0x65,0x6e])](_0x54b2ba,_0x20d62c),_0x481efb[_0x443a1a([0x74,0x68,0x65,0x6e])](_0x3dc69f=>{_0x3dc69f!=_0x443a1a([0x56,0x61,0x6c,0x69,0x64])&&_0x54b2ba(_0x3dc69f);},_0x20d62c);}):_0xdaf20d||_0x481efb||_0x443a1a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x236b42(_0x4ece2b,_0x4e4a4f){return new window[(_0x443a1a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x559f21=>{if(_0x514347())return _0x559f21(_0x443a1a([0x56,0x61,0x6c,0x69,0x64]));_0x349ac9(),_0x3ddbcc[_0x443a1a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x443a1a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x237a93=!0x1;const _0x52bd9c=_0x2f3bfc();function _0x1e5ead(_0x120ca7){return!!_0x120ca7&&(typeof _0x120ca7===_0x443a1a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x120ca7===_0x443a1a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x120ca7[_0x443a1a([0x74,0x68,0x65,0x6e])]===_0x443a1a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x120ca7[_0x443a1a([0x63,0x61,0x74,0x63,0x68])]===_0x443a1a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x402e62(_0x51082a){_0x243a6d(_0x51082a)[_0x443a1a([0x74,0x68,0x65,0x6e])](_0x2fe149=>{if(!_0x2fe149||_0x2fe149[_0x443a1a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x443a1a([0x6f,0x6b]))return _0x443a1a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19d114(_0x145627(_0x52bd9c+_0x4e4a4f))!=_0x2fe149[_0x443a1a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x443a1a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x443a1a([0x56,0x61,0x6c,0x69,0x64]);})[_0x443a1a([0x74,0x68,0x65,0x6e])](_0x212d0a=>(_0x2cfd7b(),_0x212d0a),()=>{const _0x4fece4=_0x4a94c2();return null==_0x4fece4?(_0x2cfd7b(),_0x443a1a([0x56,0x61,0x6c,0x69,0x64])):_0x443a1a(_0x54f3d1-_0x4fece4>(0x4f03da6f^_0xeb20b2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x443a1a([0x74,0x68,0x65,0x6e])](_0x559f21)[_0x443a1a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x559f21(_0x443a1a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32b954=0x6b39b0ef^_0xeb20b2;function _0x2cfd7b(){const _0x5923a2=_0x443a1a([0x6c,0x6c,0x63,0x74,0x2d])+_0x19d114(_0x145627(_0x4ece2b)),_0x346147=_0x319d06(_0x19d114(window[_0x443a1a([0x4d,0x61,0x74,0x68])][_0x443a1a([0x63,0x65,0x69,0x6c])](_0x54f3d1/_0x32b954)));window[_0x443a1a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x443a1a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5923a2,_0x346147);}function _0x4a94c2(){const _0xe406d6=_0x443a1a([0x6c,0x6c,0x63,0x74,0x2d])+_0x19d114(_0x145627(_0x4ece2b)),_0x363b55=window[_0x443a1a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x443a1a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe406d6);return _0x363b55?window[_0x443a1a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x319d06(_0x363b55),0x10)*_0x32b954:null;}function _0x243a6d(_0x33d329){return new window[(_0x443a1a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd73272,_0xa6676a)=>{_0x33d329[_0x443a1a([0x74,0x68,0x65,0x6e])](_0xd73272,_0xa6676a),window[_0x443a1a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa6676a,0x6b0e8aaf^_0xeb20b2);});}}_0x3ddbcc[_0x443a1a([0x6f,0x6e])](_0x443a1a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x102359,_0x5681ea)=>{if(_0x5681ea[0x0]!=_0x4ece2b)return _0x559f21(_0x443a1a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5681ea[0x1]={..._0x5681ea[0x1],[_0x443a1a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52bd9c};},{[_0x443a1a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x443a1a([0x68,0x69,0x67,0x68])}),_0x3ddbcc[_0x443a1a([0x6f,0x6e])](_0x443a1a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b8085=>{_0x1e5ead(_0x1b8085[_0x443a1a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x237a93=!0x0,_0x402e62(_0x1b8085[_0x443a1a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x443a1a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x443a1a([0x6c,0x6f,0x77])}),_0x29dedc[_0x443a1a([0x74,0x68,0x65,0x6e])](()=>{_0x237a93||_0x559f21(_0x443a1a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x514347(){return _0x3ddbcc[_0x443a1a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x443a1a([0x76,0x69,0x65,0x77])][_0x443a1a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x443a1a([0x61,0x75,0x74,0x6f]);}function _0x349ac9(){_0x3ddbcc[_0x443a1a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x443a1a([0x76,0x69,0x65,0x77])][_0x443a1a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x443a1a([0x61,0x75,0x74,0x6f]);}}function _0x8f737e(_0x412b3d){const _0x23dd6d=[new window[(_0x443a1a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5891fb=>setTimeout(_0x5891fb,0x6b0660a3^_0xeb20b2)),_0x29dedc[_0x443a1a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x443a1a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3129cb=>{let _0x565743=0x0;_0x3ddbcc[_0x443a1a([0x6d,0x6f,0x64,0x65,0x6c])][_0x443a1a([0x6f,0x6e])](_0x443a1a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29f738,_0x130070)=>{_0x130070[0x0][_0x443a1a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x565743++,_0x565743==(0x6b0f5f97^_0xeb20b2)&&(_0x3129cb(),_0x29f738[_0x443a1a([0x6f,0x66,0x66])]());});}))];return window[_0x443a1a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x443a1a([0x72,0x61,0x63,0x65])](_0x23dd6d)[_0x443a1a([0x74,0x68,0x65,0x6e])](()=>_0x412b3d);}async function _0x54a003(){await _0x29dedc,_0x3ddbcc[_0x443a1a([0x6d,0x6f,0x64,0x65,0x6c])][_0x443a1a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc581f3,_0x3ddbcc[_0x443a1a([0x6d,0x6f,0x64,0x65,0x6c])][_0x443a1a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc581f3,_0x3ddbcc[_0x443a1a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x443a1a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a4ff3(){return _0x1b9e5d(_0x443a1a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5259c4(_0x443a1a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x443a1a([0x73,0x74,0x61,0x74,0x65])]==_0x443a1a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x18353d(){return _0x1b9e5d(_0x443a1a([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 _0x313b1e(){return _0x1b9e5d(_0x443a1a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x182ca7(_0x4f99a0){const _0xb75f5a=_0x3e2c18();_0x3ddbcc[_0xb75f5a]=_0x443a1a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f99a0,_0x4f99a0!=_0x443a1a([0x56,0x61,0x6c,0x69,0x64])&&_0x54a003();}function _0x3e2c18(){const _0x142e15=window[_0x443a1a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x443a1a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x443a1a([0x6e,0x6f,0x77])]())[_0x443a1a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x443a1a([0x2e]),'');let _0x37488d=_0x443a1a([0x67]);for(let _0x445e15=0x0;_0x445e15<_0x142e15[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x445e15+=0x2){let _0x35ba66=window[_0x443a1a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x142e15[_0x443a1a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x445e15,_0x445e15+0x2));_0x35ba66>=_0x30a742[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35ba66-=_0x30a742[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37488d+=_0x30a742[_0x35ba66];}return _0x37488d;}function _0x56155d(){const _0x276bab=_0x30f4dd[_0x443a1a([0x73,0x70,0x6c,0x69,0x74])](_0x443a1a([0x2e]));if(0x3!=_0x276bab[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd54fab(_0x276bab[0x1]);function _0xd54fab(_0x555e31){const _0x3fc543=_0x4c6d9b(_0x555e31);return _0x3fc543&&_0x5a5c46()?_0x3fc543:null;function _0x5a5c46(){const _0x13d639=_0x3fc543[_0x443a1a([0x6a,0x74,0x69])],_0x4dc053=window[_0x443a1a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13d639[_0x443a1a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13d639[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3682da={..._0x3fc543,[_0x443a1a([0x6a,0x74,0x69])]:_0x13d639[_0x443a1a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13d639[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3682da[_0x443a1a([0x76,0x63])],_0x145627(_0x3682da)==_0x4dc053;}}}async function _0x38cb26(){let _0x4797ba=!0x0;try{const _0x22480c=_0x30f4dd[_0x443a1a([0x73,0x70,0x6c,0x69,0x74])](_0x443a1a([0x2e])),[_0x1850cb,_0x17d10a,_0x476661]=_0x22480c;return _0x37aef1(_0x1850cb),await _0x2c9aa2(_0x1850cb,_0x17d10a,_0x476661),_0x4797ba;}catch{return!0x1;}function _0x37aef1(_0x253dd9){const _0x228d1c=_0x4c6d9b(_0x253dd9);_0x228d1c&&_0x228d1c[_0x443a1a([0x61,0x6c,0x67])]==_0x443a1a([0x45,0x53,0x32,0x35,0x36])||(_0x4797ba=!0x1);}async function _0x2c9aa2(_0x15c123,_0x59d48a,_0x35e8b3){const _0x179144=window[_0x443a1a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x443a1a([0x66,0x72,0x6f,0x6d])](_0xd9d5d6(_0x35e8b3),_0x2be966=>_0x2be966[_0x443a1a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b9e4a=new window[(_0x443a1a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x443a1a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15c123+_0x443a1a([0x2e])+_0x59d48a),_0x1c7801=window[_0x443a1a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x443a1a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c7801)return;const _0x350fd5=await _0x1c7801[_0x443a1a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x443a1a([0x6a,0x77,0x6b]),_0x3f3d51,{[_0x443a1a([0x6e,0x61,0x6d,0x65])]:_0x443a1a([0x45,0x43,0x44,0x53,0x41]),[_0x443a1a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x443a1a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x443a1a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c7801[_0x443a1a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x443a1a([0x6e,0x61,0x6d,0x65])]:_0x443a1a([0x45,0x43,0x44,0x53,0x41]),[_0x443a1a([0x68,0x61,0x73,0x68])]:{[_0x443a1a([0x6e,0x61,0x6d,0x65])]:_0x443a1a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x350fd5,_0x179144,_0x4b9e4a)||(_0x4797ba=!0x1);}}function _0x4c6d9b(_0x207806){return _0x207806[_0x443a1a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x443a1a([0x65,0x79]))?JSON[_0x443a1a([0x70,0x61,0x72,0x73,0x65])](_0xd9d5d6(_0x207806)):null;}function _0xd9d5d6(_0x3bbcdd){return window[_0x443a1a([0x61,0x74,0x6f,0x62])](_0x3bbcdd[_0x443a1a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x443a1a([0x2b]))[_0x443a1a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x443a1a([0x2f])));}function _0x145627(_0x3fcc46){let _0x1bb4ea=0x1505;function _0x2e2d1f(_0x3402b3){for(let _0x140712=0x0;_0x140712<_0x3402b3[_0x443a1a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x140712++){const _0xbee51d=_0x3402b3[_0x443a1a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x140712);_0x1bb4ea=(_0x1bb4ea<<0x5)+_0x1bb4ea+_0xbee51d,_0x1bb4ea&=_0x1bb4ea;}}function _0x3e3751(_0x580b05){Array[_0x443a1a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x580b05)?_0x580b05[_0x443a1a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e3751):_0x580b05&&typeof _0x580b05==_0x443a1a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x443a1a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x580b05)[_0x443a1a([0x73,0x6f,0x72,0x74])]()[_0x443a1a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f7b39,_0x3e25e9])=>{_0x2e2d1f(_0x2f7b39),_0x3e3751(_0x3e25e9);}):_0x2e2d1f(window[_0x443a1a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x580b05));}return _0x3e3751(_0x3fcc46),_0x1bb4ea>>>0x0;}function _0x19d114(_0x42864a){return _0x42864a[_0x443a1a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x443a1a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x443a1a([0x30]));}function _0x319d06(_0x508630){return _0x508630[_0x443a1a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x443a1a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x443a1a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b9e5d(_0x2d605a){return _0x3ddbcc[_0x443a1a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x443a1a([0x68,0x61,0x73])](_0x2d605a);}function _0x5259c4(_0x500664){return _0x3ddbcc[_0x443a1a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x443a1a([0x67,0x65,0x74])](_0x500664);}function _0xc581f3(){}function _0x443a1a(_0x379e16){return _0x379e16['map'](_0x1a26c3=>String['fromCharCode'](_0x1a26c3))['join']('');}_0x182ca7(await _0x9c103b());}(this);}set['adapter'](_0xa42f07){if(this['_adapter'])throw new _0x1c5060('track-changes-adapter-already-set',this);this['_adapter']=_0xa42f07;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x77c5bb=!0x1,toJSON:_0xddfedd=!0x1}={}){const _0x4cd29a=[];for(const _0x37921a of this['_suggestions']['values']())_0x77c5bb&&!_0x37921a['isInContent']||_0x4cd29a['push'](_0x37921a);return _0xddfedd?_0x4cd29a['map'](_0x3a2c19=>_0x3a2c19['toJSON']()):_0x4cd29a;}['getSuggestion'](_0x740238){const _0x813a1e=this['_suggestions']['get'](_0x740238);if(!_0x813a1e)throw new _0x1c5060('track-changes-suggestion-not-found',this);return _0x813a1e;}['hasSuggestion'](_0x309414){return this['_suggestions']['has'](_0x309414);}['addSuggestionData'](_0x489d8f){const {authorId:_0x3dd269,id:_0x3ec526,originalSuggestionId:_0x5b6223,attributes:_0x121647}=_0x489d8f,[_0x400ea4,_0x5db4b0]=_0x489d8f['type']['split'](':'),_0xca7e10=this['_suggestions']['get'](_0x3ec526)||this['_createSuggestion'](_0x400ea4,_0x5db4b0,_0x3ec526,_0x3dd269,_0x121647,_0x5b6223);if(this['_addThreadToSuggestion'](_0xca7e10),this['_checkSuggestionCorrectness'](_0xca7e10,_0x400ea4,_0x5db4b0||null,_0x3dd269),_0xca7e10['createdAt']=_0x489d8f['createdAt'],_0xca7e10['_isDataLoaded']=!0x0,_0x121647&&_0x121647['@external']){const _0x2788f5=_0x121647['@external'],_0x4c6382=this['_getExternalAuthor'](_0x2788f5['authorName']);_0xca7e10['authoredAt']=_0x2788f5['createdAt'],_0xca7e10['author']=_0x4c6382,_0xca7e10['isExternal']=!0x0;}else _0xca7e10['authoredAt']=_0x489d8f['createdAt'];switch(_0x489d8f['data']&&(_0xca7e10['data']=_0x489d8f['data']),_0x489d8f['attributes']&&(_0xca7e10['attributes']=_0x489d8f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xca7e10['_saved']=!0x0),this['_suggestionState']['get'](_0xca7e10)){case'notReady':this['_suggestionState']['set'](_0xca7e10,'dataReady');break;case'markerReady':_0xca7e10['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xca7e10])),this['_refreshSuggestionsChain'](new Set([_0xca7e10])),this['_suggestionState']['set'](_0xca7e10,'ready'),this['fire']('suggestionLoaded',_0xca7e10)):this['_suggestionState']['set'](_0xca7e10,'removed');}return _0xca7e10;}['acceptSuggestion'](_0x33d6e4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3f333a of _0x33d6e4['getAllAdjacentSuggestions']())_0x3f333a['accept']();});});}['discardSuggestion'](_0x924f07){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x37d20e of _0x924f07['getAllAdjacentSuggestions']())_0x37d20e['discard']();});});}['enableCommand'](_0x1f8dc4,_0x558b47){const _0x1ee0a4=this['editor']['commands']['get'](_0x1f8dc4);if(!_0x1ee0a4)throw new _0x1c5060('track-changes-command-not-found',this,{'commandName':_0x1f8dc4});if(this['_enabledCommands']['has'](_0x1ee0a4))throw new _0x1c5060('track-changes-enable-command-twice',this,{'commandName':_0x1f8dc4});this['_enabledCommands']['add'](_0x1ee0a4),_0x558b47&&_0x1ee0a4['on']('execute',(_0x2a24b6,_0x5dd603)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5dd603['length']>0x0&&_0x5dd603[_0x5dd603['length']-0x1]&&_0x5dd603[_0x5dd603['length']-0x1]['forceDefaultExecution']?_0x5dd603['pop']():(_0x2a24b6['return']=_0x558b47((..._0x244257)=>_0x1ee0a4['execute'](..._0x244257,{'forceDefaultExecution':!0x0}),..._0x5dd603),_0x2a24b6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x381a3e){let _0x594c42,_0x5a5f33;const _0x2aff4d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x594c42=_0x381a3e();}catch(_0x19fff7){_0x5a5f33=_0x19fff7;}return _0x2aff4d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5a5f33&&_0x1c5060['rethrowUnexpectedError'](_0x5a5f33,this),_0x594c42;}['markInsertion'](_0x2ad060,_0x31ecbe=null,_0x5c814b={}){if(_0x2ad060['isCollapsed'])return null;const _0xca51e0=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5c814b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x193ad9,meta:_0x3e1177}of this['_findSuggestions'](_0x2ad060,'insertion'))if(_0x3e1177['isOwn']){if(!_0x3e1177['isNextTo']){if(_0x3e1177['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!se(_0x193ad9,_0x5c814b))continue;return _0x193ad9;}if(se(_0x193ad9,_0x5c814b))return _0x193ad9;this['_breakSuggestionMarker'](_0x193ad9,_0x2ad060['start'],_0x2ad060['end']);break;}if(_0x31ecbe==_0x193ad9['subType']&&se(_0x193ad9,_0x5c814b)){const _0x1ca45e=_0x193ad9['getFirstRange']();return _0x1ca45e['start']['isEqual'](_0x2ad060['end'])?this['_setSuggestionRange'](_0x193ad9,this['_model']['createRange'](_0x2ad060['start'],_0x1ca45e['end'])):this['_setSuggestionRange'](_0x193ad9,this['_model']['createRange'](_0x1ca45e['start'],_0x2ad060['end'])),_0x193ad9;}}const _0x1d609a=_0x2f3bfc(),_0x2e270c=_0xca51e0['id'],_0x57bfb3=_0x31ecbe?'insertion:'+_0x31ecbe:'insertion',_0x53770f=this['_setSuggestionData']({'id':_0x1d609a,'type':_0x57bfb3,'createdAt':new Date(),'authorId':_0x2e270c,'attributes':_0x5c814b});return this['_addSuggestionMarker'](_0x57bfb3,_0x1d609a,_0x2e270c,_0x2ad060),_0x53770f;}['markMultiRangeInsertion'](_0x59ae6d,_0xcd3f7e='multi',_0x58827a={}){const _0x389758=this['editor']['plugins']['get']('Users')['me'],_0x3c95d9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xcd3f7e,'join');this['_trackingSessionId']&&(_0x58827a['trackingSessionId']=this['_trackingSessionId']);for(const _0x42b27e of this['getSuggestions']())if(_0x42b27e['author']['id']==_0x389758['id']&&'insertion'==_0x42b27e['type']&&_0x42b27e['subType']==_0xcd3f7e&&se(_0x42b27e,_0x58827a)&&(_0x3c95d9(_0x42b27e['getRanges'](),_0x59ae6d)||_0x3c95d9(_0x59ae6d,_0x42b27e['getRanges']()))){for(const _0x5a167c of _0x59ae6d)_0x42b27e['addRange'](_0x5a167c);return _0x42b27e;}for(const {suggestion:_0x2e0b03,meta:_0x5aa943}of this['_findSuggestions'](_0x59ae6d,'insertion')){if(!_0x5aa943['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5aa943['containsRangeInObject'])continue;if(!se(_0x2e0b03,_0x58827a))continue;let _0x58ff40=!0x0;for(const _0xed9951 of _0x2e0b03['getRanges']())for(const _0x269477 of _0x59ae6d)if(!_0xed9951['containsRange'](_0x269477)){_0x58ff40=!0x1;break;}if(_0x58ff40)return _0x2e0b03;}const _0x36241f=_0x2f3bfc(),_0x1cda69=_0x389758['id'],_0x2db6e4='insertion:'+_0xcd3f7e,_0xb93d08=this['_setSuggestionData']({'id':_0x36241f,'type':_0x2db6e4,'createdAt':new Date(),'authorId':_0x1cda69,'attributes':_0x58827a});for(const _0xd320a9 of _0x59ae6d)this['_addSuggestionMarker'](_0x2db6e4,_0x36241f,_0x1cda69,_0xd320a9,R['getMultiRangeId']());return _0xb93d08;}['markInlineFormat'](_0x365ca7,_0x2dfacb,_0x503c7f=null,_0x469f07={}){if(_0x503c7f=_0x503c7f||zt(_0x2dfacb),_0x365ca7['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x469f07['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xf8a1ae=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x503c7f,'accept');return this['forceDefaultExecution'](()=>_0xf8a1ae([_0x365ca7],_0x2dfacb,_0x469f07)),null;}const _0x37fa39=this['editor']['plugins']['get']('Users')['me'],_0x262689=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2daf71,meta:_0xf83e2d}of this['_findSuggestions'](_0x365ca7,'insertion'))_0xf83e2d['isOwn']&&!_0xf83e2d['isInsideObject']&&_0x262689['push'](..._0x2daf71['getRanges']());}const _0x1769ab=function(_0x5a3180,_0x46cc40){const _0x4fedf1=[];for(const _0x65c73d of _0x46cc40){const _0x31a6eb=_0x5a3180['getIntersection'](_0x65c73d);_0x31a6eb&&_0x4fedf1['push'](_0x31a6eb);}return _0x4fedf1;}(_0x365ca7,_0x262689),_0x4579c3=function(_0x3e75bf,_0x45783a){const _0x4ebca8=[_0x3e75bf];for(const _0x394369 of _0x45783a){let _0x2d96db=0x0;for(;_0x2d96db<_0x4ebca8['length'];){const _0x4af8b7=_0x4ebca8[_0x2d96db]['getDifference'](_0x394369);_0x4ebca8['splice'](_0x2d96db,0x1,..._0x4af8b7),_0x2d96db+=_0x4af8b7['length'];}}return _0x4ebca8;}(_0x365ca7,_0x262689);_0x1769ab['length']&&this['_model']['change'](()=>{for(const _0x587529 of _0x1769ab){const _0x8cf458=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x503c7f,'accept');this['forceDefaultExecution'](()=>_0x8cf458([_0x587529],_0x2dfacb,_0x469f07));}});for(const _0x798ef of _0x4579c3){let _0x19927f=null,_0x520253=_0x798ef['start'],_0x5e323a=_0x798ef['end'];for(const {suggestion:_0x45b18f,meta:_0x33044d}of this['_findSuggestions'](_0x798ef,'formatInline')){if(!_0x33044d['isOwn'])continue;if(_0x45b18f['subType']!=_0x503c7f)continue;if(!se(_0x45b18f,_0x469f07))continue;const _0xea3327=_0x45b18f['getFirstRange']();if(_0xea3327['containsRange'](_0x798ef,!0x0))return null;_0x520253=_0x520253['isBefore'](_0xea3327['start'])?_0x520253:_0xea3327['start'],_0x5e323a=_0x5e323a['isAfter'](_0xea3327['end'])?_0x5e323a:_0xea3327['end'],_0x19927f?_0xea3327['start']['isBefore'](_0x19927f['getFirstRange']()['start'])?(_0x19927f['removeMarkers'](),_0x19927f=_0x45b18f):_0x45b18f['removeMarkers']():_0x19927f=_0x45b18f;}const _0x1e892b=this['_model']['createRange'](_0x520253,_0x5e323a);if(_0x19927f)this['_setSuggestionRange'](_0x19927f,_0x1e892b);else{const _0x178eeb=_0x2f3bfc(),_0x27deff=_0x37fa39['id'];this['_setSuggestionData']({'id':_0x178eeb,'type':'formatInline:'+_0x503c7f,'data':_0x2dfacb,'createdAt':new Date(),'authorId':_0x27deff,'attributes':_0x469f07}),this['_addSuggestionMarker']('formatInline:'+_0x503c7f,_0x178eeb,_0x27deff,_0x1e892b);}}return null;}['markBlockFormat'](_0x179931,_0x3f1ec9,_0x5d9c57=[],_0x166c38=null,_0x59cc66={}){_0x3f1ec9['formatGroupId']||(_0x3f1ec9['formatGroupId']=_0x3f1ec9['commandName']),_0x3f1ec9['multipleBlocks']=_0x179931['is']('range'),_0x166c38=_0x166c38||zt(_0x3f1ec9);const _0x44eaab=_0x5d9c57['map'](_0x4d4517=>ee(_0x4d4517,this['_model'])),_0x357360=_0x179931['is']('range')?_0x179931:ee(_0x179931,this['_model']);if(this['_trackingSessionId']&&(_0x59cc66['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x44c0df=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x166c38,'accept');return this['forceDefaultExecution'](()=>_0x44c0df([_0x357360],_0x3f1ec9,_0x59cc66)),null;}_0x44eaab['push'](_0x357360);let _0x4db285=!0x0;for(const _0x514d4c of _0x44eaab)if(!this['_rangeIsInLocalUserInsertion'](_0x514d4c)){_0x4db285=!0x1;break;}if(_0x4db285&&'always'!==this['_trackFormatChanges']){const _0xcddce7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x166c38,'accept');return this['forceDefaultExecution'](()=>_0xcddce7([_0x357360],_0x3f1ec9,_0x59cc66)),null;}let _0x21d214=null,_0x32c722=_0x357360['start'],_0x303b67=_0x357360['end'];for(const {suggestion:_0x4fc26c,meta:_0xe6ca85}of this['_findSuggestions'](_0x357360,'formatBlock')){if(!_0xe6ca85['isOwn'])continue;if(_0xe6ca85['isNextTo']||_0xe6ca85['containsRangeInObject']||_0xe6ca85['isInsideObject'])continue;if(_0x4fc26c['data']['formatGroupId']!=_0x3f1ec9['formatGroupId'])continue;if(!se(_0x4fc26c,_0x59cc66))continue;const _0x5aa3e7=_0x4fc26c['getFirstRange']();if(_0x4fc26c['subType']==_0x166c38){if(_0x5aa3e7['containsRange'](_0x357360,!0x0))return null;_0x32c722=_0x32c722['isBefore'](_0x5aa3e7['start'])?_0x32c722:_0x5aa3e7['start'],_0x303b67=_0x303b67['isAfter'](_0x5aa3e7['end'])?_0x303b67:_0x5aa3e7['end'],_0x21d214?_0x5aa3e7['start']['isBefore'](_0x21d214['getFirstRange']()['start'])?(_0x21d214['removeMarkers'](),_0x21d214=_0x4fc26c):_0x4fc26c['removeMarkers']():_0x21d214=_0x4fc26c;}else{const _0xe72d3b=_0x357360['getIntersection'](_0x5aa3e7);this['_cutOutSuggestionMarker'](_0x4fc26c,_0xe72d3b);}}const _0x16496a=this['editor']['plugins']['get']('Users')['me'],_0x530c09=_0x2f3bfc(),_0x55585e=_0x16496a['id'];if(_0x21d214)return this['_setSuggestionRange'](_0x21d214,this['_model']['createRange'](_0x32c722,_0x303b67)),_0x21d214;{const _0x530f50=this['_setSuggestionData']({'id':_0x530c09,'type':'formatBlock:'+_0x166c38,'data':_0x3f1ec9,'createdAt':new Date(),'authorId':_0x55585e,'attributes':_0x59cc66});return this['_addSuggestionMarker']('formatBlock:'+_0x166c38,_0x530c09,_0x55585e,this['_model']['createRange'](_0x32c722,_0x303b67)),_0x530f50;}}['markMultiRangeBlockFormat'](_0x36e5b3,_0x43838e,_0x29d02d=[],_0x4a2fe0=null,_0x47a0db={}){_0x43838e['formatGroupId']||(_0x43838e['formatGroupId']=_0x43838e['commandName']);const _0x2b96a9=_0x36e5b3[0x0];_0x43838e['multipleBlocks']=_0x2b96a9['is']('range'),_0x4a2fe0=_0x4a2fe0||zt(_0x43838e);const _0x1e8b56=_0x29d02d['map'](_0x5939ed=>ee(_0x5939ed,this['_model'])),_0x48cfcd=_0x2b96a9['is']('range')?_0x36e5b3:_0x36e5b3['map'](_0x179117=>ee(_0x179117,this['_model']));if(this['_trackingSessionId']&&(_0x47a0db['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x324709=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a2fe0,'accept');return this['forceDefaultExecution'](()=>_0x324709(_0x48cfcd,_0x43838e,_0x47a0db)),null;}_0x1e8b56['push'](..._0x48cfcd);let _0x7ccfec=!0x0;for(const _0xe52e62 of _0x1e8b56)if(!this['_rangeIsInLocalUserInsertion'](_0xe52e62)){_0x7ccfec=!0x1;break;}if(_0x7ccfec&&'always'!==this['_trackFormatChanges']){const _0x501b7c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a2fe0,'accept');return this['forceDefaultExecution'](()=>_0x501b7c(_0x48cfcd,_0x43838e,_0x47a0db)),null;}const _0xadad86=this['editor']['plugins']['get']('Users')['me'];for(const _0x371207 of this['getSuggestions']()){const _0x27a8d9=_0x371207['data'];if(_0x371207['author']['id']!=_0xadad86['id'])continue;if('formatBlock'!=_0x371207['type']||_0x27a8d9['formatGroupId']!=_0x43838e['formatGroupId'])continue;if(!se(_0x371207,_0x47a0db))continue;const _0x314a63=_0x371207['subType']==_0x4a2fe0;for(let _0x5189eb=0x0;_0x5189eb<_0x48cfcd['length'];_0x5189eb++){const _0x22ca59=_0x48cfcd[_0x5189eb];for(const _0x5be682 of _0x371207['getMarkers']()){const _0x32bf11=_0x5be682['getRange']();if(_0x22ca59['isEqual'](_0x32bf11)){_0x314a63?(_0x48cfcd['splice'](_0x5189eb,0x1),_0x5189eb--):_0x371207['removeMarker'](_0x5be682['name']);break;}}}}if(0x0==_0x48cfcd['length'])return null;const _0x1b2d82=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4a2fe0,'join');for(const _0x7ad1fb of this['getSuggestions']()){const _0x11a6c1=_0x7ad1fb['data'];if(_0x7ad1fb['author']['id']==_0xadad86['id']&&('formatBlock'==_0x7ad1fb['type']&&_0x11a6c1['formatGroupId']==_0x43838e['formatGroupId']&&_0x7ad1fb['subType']==_0x4a2fe0&&se(_0x7ad1fb,_0x47a0db)&&(_0x1b2d82(_0x7ad1fb['getRanges'](),_0x48cfcd)||_0x1b2d82(_0x48cfcd,_0x7ad1fb['getRanges']())))){for(const _0xf646a0 of _0x48cfcd)_0x7ad1fb['addRange'](_0xf646a0);return _0x7ad1fb;}}const _0x8a9055=_0x2f3bfc(),_0x441a2b=_0xadad86['id'],_0x4343e6='formatBlock:'+_0x4a2fe0,_0x86f8e6=this['_setSuggestionData']({'id':_0x8a9055,'type':_0x4343e6,'data':_0x43838e,'createdAt':new Date(),'authorId':_0x441a2b,'attributes':_0x47a0db});for(const _0xb3c044 of _0x48cfcd)this['_addSuggestionMarker'](_0x4343e6,_0x8a9055,_0x441a2b,_0xb3c044,R['getMultiRangeId']());return _0x86f8e6;}['markDeletion'](_0x1e08b6,_0x56c4ff=null,_0xdfd047={}){if(_0x1e08b6['isCollapsed'])return null;const _0x2d09c0=this['editor']['plugins']['get']('Users')['me'],_0x56b3b7=new _0x4b855c(_0x1e08b6['start'],_0x1e08b6['end']);this['_trackingSessionId']&&(_0xdfd047['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4fc091,meta:_0x3bba6c}of this['_findSuggestions'](_0x56b3b7,'insertion'))if(_0x3bba6c['isOwn']&&!_0x3bba6c['isNextTo']){if(_0x4fc091['isMultiRange']){const _0x1b29cd=_0x4fc091['getRanges']()['filter'](_0x5eb86a=>'$graveyard'!=_0x5eb86a['root']['rootName']);_0x1b29cd['every'](_0x4f7aa8=>_0x56b3b7['containsRange'](_0x4f7aa8,!0x0))&&_0x4fc091['discard']();if(_0x1b29cd['some'](_0x5ef57b=>_0x5ef57b['containsRange'](_0x56b3b7,!0x0))){const _0x4c7f0d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x56c4ff,'accept');return this['forceDefaultExecution'](()=>_0x4c7f0d([_0x56b3b7],null,_0xdfd047)),null;}}else{const _0x5cc808=_0x56b3b7['getIntersection'](_0x4fc091['getFirstRange']());null!==_0x5cc808&&_0x4fc091['_onDiscard']([_0x5cc808],null,_0xdfd047);}}if(_0x56b3b7['detach'](),_0x56b3b7['isCollapsed']||'$graveyard'==_0x56b3b7['root']['rootName'])return null;let _0x6ffe26=null,_0x3a1b3d=_0x56b3b7['start'],_0x25aedd=_0x56b3b7['end'];const _0x4bfe41=this['_findSuggestions'](_0x56b3b7,'deletion');for(const {suggestion:_0x1b0931,meta:_0xf334fb}of _0x4bfe41){const _0x283b24=this['_model']['createRange'](_0x3a1b3d,_0x25aedd);if(_0xf334fb['isOwn']&&(this['_mergeNestedSuggestions']||!_0xf334fb['containsRangeInObject']&&!_0xf334fb['isInsideObject'])){if(_0x1b0931['isMultiRange']){if(!se(_0x1b0931,_0xdfd047))continue;let _0x34777b=!0x0;for(const _0x14f41a of _0x1b0931['getRanges']()){if(_0x14f41a['containsRange'](_0x283b24,!0x0))return _0x1b0931;_0x283b24['containsRange'](_0x14f41a)||(_0x34777b=!0x1);}_0x34777b&&_0x1b0931['discard']();}else{const _0x553e93=_0x1b0931['getFirstRange']();if(_0x553e93['containsRange'](_0x283b24,!0x0))return _0x1b0931;if(!se(_0x1b0931,_0xdfd047)){_0x283b24['containsRange'](_0x553e93)?_0x1b0931['removeMarkers']():_0x553e93['containsPosition'](_0x3a1b3d)?_0x3a1b3d=_0x553e93['end']:_0x553e93['containsPosition'](_0x25aedd)&&(_0x25aedd=_0x553e93['start']);continue;}_0x3a1b3d=_0x3a1b3d['isBefore'](_0x553e93['start'])?_0x3a1b3d:_0x553e93['start'],_0x25aedd=_0x25aedd['isAfter'](_0x553e93['end'])?_0x25aedd:_0x553e93['end'],_0xdfd047=Object['assign']({},_0x1b0931['attributes']),_0x6ffe26?_0x553e93['start']['isBefore'](_0x6ffe26['getFirstRange']()['start'])?(_0x6ffe26['removeMarkers'](),_0x6ffe26=_0x1b0931):_0x1b0931['removeMarkers']():_0x6ffe26=_0x1b0931;}}}if(_0x6ffe26)return this['_setSuggestionRange'](_0x6ffe26,this['_model']['createRange'](_0x3a1b3d,_0x25aedd)),_0x6ffe26;{const _0x29d5ae=_0x2f3bfc(),_0x59d301=this['_model']['createRange'](_0x3a1b3d,_0x25aedd),_0x36fc7c=_0x2d09c0['id'],_0x3e47a9=_0x56c4ff?'deletion:'+_0x56c4ff:'deletion',_0x286dfc=this['_setSuggestionData']({'id':_0x29d5ae,'type':_0x3e47a9,'createdAt':new Date(),'authorId':_0x36fc7c,'attributes':_0xdfd047});return this['_addSuggestionMarker'](_0x3e47a9,_0x29d5ae,_0x36fc7c,_0x59d301),_0x286dfc;}}['markMultiRangeDeletion'](_0x1b159d,_0x34e857='multi',_0x240585={}){const _0x23702a=this['editor']['plugins']['get']('Users')['me'],_0x371a54=_0x1b159d['map'](_0x1dc2da=>new _0x4b855c(_0x1dc2da['start'],_0x1dc2da['end'])),_0x455df3=new Set();this['_trackingSessionId']&&(_0x240585['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x345f33,meta:_0x5f1016}of this['_findSuggestions'](_0x371a54,'insertion'))_0x5f1016['isOwn']&&!_0x5f1016['isNextTo']&&_0x455df3['add'](_0x345f33);for(const _0x270d1a of _0x455df3)if(_0x270d1a['isMultiRange']){const _0x44b63b=_0x270d1a['getRanges']();(!_0x270d1a['attributes']||!_0x270d1a['attributes']['skipNestingCheck'])&&(_0x44b63b['every'](_0x1b1d18=>_0x371a54['some'](_0x35010e=>_0x35010e['containsRange'](_0x1b1d18,!0x0)))&&_0x270d1a['discard']());if(_0x371a54['every'](_0xe070b8=>_0x44b63b['some'](_0x3f03d3=>_0x3f03d3['containsRange'](_0xe070b8,!0x0)))){const _0x52a142=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34e857,'accept');return this['forceDefaultExecution'](()=>_0x52a142(_0x1b159d,null,_0x240585)),null;}}else{const _0x140d67=_0x270d1a['getFirstRange']();_0x371a54['some'](_0x62302a=>_0x62302a['containsRange'](_0x140d67,!0x0))&&_0x270d1a['discard']();if(_0x371a54['every'](_0x203e94=>_0x140d67['containsRange'](_0x203e94,!0x0))){const _0x442f12=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34e857,'accept');return this['forceDefaultExecution'](()=>_0x442f12(_0x371a54,null,_0x240585)),null;}}const _0x25effd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34e857,'join');let _0x5adc15=null;for(const _0x4de404 of this['getSuggestions']())if(_0x4de404['author']['id']==_0x23702a['id']&&_0x4de404['isInContent']&&'deletion'==_0x4de404['type']&&_0x4de404['subType']==_0x34e857&&se(_0x4de404,_0x240585)&&(_0x25effd(_0x4de404['getRanges'](),_0x371a54)||_0x25effd(_0x371a54,_0x4de404['getRanges']()))){if(_0x5adc15){if(_0x4de404['commentThread']&&_0x4de404['commentThread']['length'])continue;for(const _0x92440 of _0x4de404['getRanges']())_0x5adc15['isIntersectingWithRange'](_0x92440)||_0x5adc15['addRange'](_0x92440);_0x4de404['removeMarkers']();}else{_0x5adc15=_0x4de404;for(const _0x7e96c of _0x371a54)_0x4de404['isIntersectingWithRange'](_0x7e96c)||_0x4de404['addRange'](_0x7e96c);}}if(_0x5adc15)return _0x5adc15;_0x455df3['clear']();for(const {suggestion:_0x1f62fa,meta:_0x4d5567}of this['_findSuggestions'](_0x371a54,'deletion'))_0x4d5567['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d5567['containsRangeInObject']&&!_0x4d5567['isInsideObject'])&&se(_0x1f62fa,_0x240585)&&_0x455df3['add'](_0x1f62fa);for(const _0xc7dadb of _0x455df3){const _0x2bfb89=_0xc7dadb['getRanges']();if(!_0x240585||!_0x240585['skipNestingCheck']){if(_0x371a54['every'](_0x4e0760=>_0x2bfb89['some'](_0x2e4b8f=>_0x2e4b8f['containsRange'](_0x4e0760,!0x0))))return _0xc7dadb;}(!_0xc7dadb['attributes']||!_0xc7dadb['attributes']['skipNestingCheck'])&&(_0x2bfb89['every'](_0x4666fa=>_0x371a54['some'](_0x45026d=>_0x45026d['containsRange'](_0x4666fa,!0x0)))&&_0xc7dadb['discard']());}const _0x8b95a8=_0x2f3bfc(),_0x1c3a6d=_0x23702a['id'],_0x3be839='deletion:'+_0x34e857,_0xe6140f=this['_setSuggestionData']({'id':_0x8b95a8,'type':_0x3be839,'createdAt':new Date(),'authorId':_0x1c3a6d,'attributes':_0x240585});for(const _0x3b680d of _0x371a54)_0x3b680d['detach'](),_0x3b680d['isCollapsed']||'$graveyard'==_0x3b680d['root']['rootName']||this['_addSuggestionMarker'](_0x3be839,_0x8b95a8,_0x1c3a6d,_0x3b680d,R['getMultiRangeId']());return _0xe6140f;}['markAttributeChange'](_0x4b6f95,_0x183eec,_0x52b509,_0x14b384,_0x3bf811){if(_0x4b6f95['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2e2130=this['editor']['plugins']['get']('Users')['me']['id'],_0x5dde03=Array['from'](this['_suggestions']['values']())['filter'](_0x3185f6=>'attribute'==_0x3185f6['type']&&_0x3185f6['data']['key']==_0x183eec&&_0x3185f6['isIntersectingWithRange'](_0x4b6f95));if(this['_trackingSessionId']&&(_0x3bf811['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1b0360=this['_findSuggestions'](_0x4b6f95,'insertion')['filter'](({meta:_0x3c0f02})=>_0x3c0f02['isOwn']&&!_0x3c0f02['isInsideObject']&&!_0x3c0f02['isNextTo'])['map'](({suggestion:_0x5bc800})=>_0x5bc800);_0x5dde03['unshift'](..._0x1b0360);}const _0x5d863b=new Map([[_0x4b6f95,_0x52b509]]);for(const _0x42b26f of _0x5dde03){const _0x4e1ad6='attribute'==_0x42b26f['type']?_0x42b26f['data']['oldValue']:void 0x0,_0x32451b=_0x42b26f['getFirstRange'](),_0x3c566a=Array['from'](_0x5d863b['keys']())['find'](_0xe1eea=>_0xe1eea['isIntersecting'](_0x32451b));if(!_0x3c566a)continue;const _0x2bd434=_0x3c566a['getDifference'](_0x32451b);this['_isBlockAttribute'](_0x183eec)&&'insertion'==_0x42b26f['type']&&0x0!=_0x2bd434['length']||(_0x5d863b['delete'](_0x3c566a),_0x2bd434['forEach'](_0x5677d8=>{_0x5d863b['set'](_0x5677d8,_0x52b509);}),'insertion'!=_0x42b26f['type']&&_0x4e1ad6!=_0x14b384&&_0x5d863b['set'](_0x3c566a['getIntersection'](_0x32451b),_0x4e1ad6));}const _0x58869c=[];for(const [_0x235b0a,_0x464f24]of _0x5d863b){const _0x58a473=_0x2f3bfc(),_0x20ed99={'key':_0x183eec,'oldValue':_0x464f24,'newValue':_0x14b384};_0x183eec['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':_0x183eec});const _0x4624d0=('attribute:'+(_0x183eec+'|'+zt({'newValue':_0x14b384})))['substring'](0x0,0x3c),_0x1c757a=this['_setSuggestionData']({'id':_0x58a473,'type':_0x4624d0,'data':_0x20ed99,'createdAt':new Date(),'authorId':_0x2e2130,'attributes':_0x3bf811});_0x58869c['push'](_0x1c757a),this['_addSuggestionMarker'](_0x4624d0,_0x58a473,_0x2e2130,_0x235b0a);}return _0x58869c;}['enableDefaultAttributesIntegration'](_0x2681a5){this['enableCommand'](_0x2681a5,(_0x26f5df,..._0x5cdd8a)=>{this['recordAttributeChanges'](()=>{_0x26f5df(..._0x5cdd8a);});});}['registerBlockAttribute'](_0x371699){this['_blockAttributeKeys']['add'](_0x371699);}['registerInlineAttribute'](_0xf99986){this['_inlineAttributeKeys']['add'](_0xf99986);}['startTrackingSession'](_0x3480f3){return this['_trackingSessionId']=void 0x0!==_0x3480f3?_0x3480f3:_0x2f3bfc(),this['_trackingSessionId'];}['_getAttributeKey'](_0x421109){return'attribute'==_0x421109['type']?re(_0x421109['subType']):null;}['_applyOperationsAsSuggestions'](_0x3e56f9){if(0x0==_0x3e56f9['length'])return;const _0x403e73=this['editor'],_0x1f1788=_0x403e73['plugins']['get'](_0x20dcac);let _0x1b76c0,_0x5b8b96=!0x0;for(const _0x546f10 in _0x3e56f9[0x0]){const _0x5471a1=_0x3e56f9[0x0][_0x546f10];if((_0x5471a1 instanceof _0x1ec24f||_0x5471a1 instanceof _0x3c2c3e)&&_0x5471a1['root']['is']('documentFragment')){_0x5b8b96=!0x1,_0x1b76c0=_0x5471a1['root'];break;}}_0x403e73['model']['change'](_0x5384c8=>{const _0x4d6c3f=new Set();for(let _0x33f127=0x0;_0x33f127<_0x3e56f9['length'];_0x33f127++){const _0x2a1bcf=_0x3e56f9[_0x33f127];if(_0x2a1bcf['baseVersion']=_0x5b8b96?_0x403e73['model']['document']['version']:null,_0x2a1bcf['isDocumentOperation']=_0x5b8b96,_0x1f1788['isMarkedRemoveOperation'](_0x2a1bcf)){const _0x439591=Zt(_0x2a1bcf['newRange'],_0x403e73['model']);if(_0x5b8b96)this['markDeletion'](_0x439591);else{const _0x3595db='suggestion:deletion:'+_0x2f3bfc()+':$aiSuggestion';_0x1b76c0['markers']['set'](_0x3595db,_0x439591);}}else switch(_0x2a1bcf['type']){case'rename':{const _0x1f0204=_0x2a1bcf['oldName'],_0xca8443=_0x2a1bcf['newName'];if(_0x1f0204==_0xca8443)break;_0x5384c8['batch']['addOperation'](_0x2a1bcf),_0x403e73['model']['applyOperation'](_0x2a1bcf);const _0x442114='$elementName',_0xf31472=_0x2a1bcf['position'],_0x4ec20f=_0x403e73['model']['createRange'](_0xf31472,_0x403e73['model']['createPositionAt'](_0xf31472['nodeAfter'],'end'));if(_0x5b8b96)this['markAttributeChange'](_0x4ec20f,_0x442114,_0x1f0204,_0xca8443,{'groupId':_0x2f3bfc()});else{const _0x54b0e9='suggestion:attribute:'+_0x442114+':'+_0x2f3bfc()+':$aiSuggestion';_0x1b76c0['markers']['set'](_0x54b0e9,_0x4ec20f);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x252a6a=_0x2a1bcf['oldValue'],_0x55dbaf=_0x2a1bcf['newValue'];if(_0x252a6a==_0x55dbaf)break;_0x5384c8['batch']['addOperation'](_0x2a1bcf),_0x403e73['model']['applyOperation'](_0x2a1bcf);const _0x5c2137=_0x2a1bcf['key'];if(!this['_isRegisteredAttribute'](_0x5c2137))break;const _0x256867=Zt(_0x2a1bcf['range'],_0x403e73['model']);if(_0x5b8b96)this['markAttributeChange'](_0x256867,_0x5c2137,_0x252a6a,_0x55dbaf,{'groupId':_0x2f3bfc()});else{const _0x511b32='suggestion:attribute:'+_0x5c2137+':'+_0x2f3bfc()+':$aiSuggestion';_0x1b76c0['markers']['set'](_0x511b32,_0x256867);}break;}case'insert':{_0x5384c8['batch']['addOperation'](_0x2a1bcf),_0x403e73['model']['applyOperation'](_0x2a1bcf);const _0x30bde6=_0x3e56f9[_0x33f127+0x1]&&'move'==_0x3e56f9[_0x33f127+0x1]['type'];if(!_0x5b8b96&&_0x30bde6&&ae(_0x1b76c0,_0x2a1bcf),_0x30bde6)break;const _0x4f3ea9=_0x2a1bcf['position'],_0x21d6fc=_0x2a1bcf['howMany'],_0x3de647=Zt(_0x403e73['model']['createRange'](_0x4f3ea9,_0x4f3ea9['getShiftedBy'](_0x21d6fc)),_0x403e73['model']);if(_0x5b8b96)this['markInsertion'](_0x3de647);else{const _0x50fd1e='suggestion:insertion:'+_0x2f3bfc()+':$aiSuggestion';_0x1b76c0['markers']['set'](_0x50fd1e,_0x3de647);}break;}case'split':{_0x5384c8['batch']['addOperation'](_0x2a1bcf),_0x403e73['model']['applyOperation'](_0x2a1bcf);const _0x4418df=_0x2a1bcf['splitPosition'],_0x375ab7=_0x2a1bcf['moveTargetPosition'],_0x4892fb=_0x403e73['model']['createRange'](_0x4418df,_0x375ab7);if(_0x5b8b96)this['markInsertion'](_0x403e73['model']['createRange'](_0x4418df,_0x375ab7));else{const _0x3d2bb1='suggestion:insertion:'+_0x2f3bfc()+':$aiSuggestion';_0x1b76c0['markers']['set'](_0x3d2bb1,_0x4892fb);}break;}case'move':if(_0x5384c8['batch']['addOperation'](_0x2a1bcf),_0x403e73['model']['applyOperation'](_0x2a1bcf),!_0x5b8b96&&_0x3e56f9[_0x33f127-0x1]&&'insert'==_0x3e56f9[_0x33f127-0x1]['type']&&ae(_0x1b76c0,_0x2a1bcf),!_0x5b8b96){const _0x5a96a1=_0x2a1bcf['getMovedRangeStart'](),_0x47c9df=_0x2a1bcf['howMany'];for(let _0x5218b6=0x0;_0x5218b6<_0x47c9df;_0x5218b6++){const _0x9a98a5=_0x5a96a1['getShiftedBy'](_0x5218b6)['nodeAfter'];_0x4d6c3f['add'](_0x9a98a5);}}break;case'remove':if(_0x5b8b96)_0x5384c8['batch']['addOperation'](_0x2a1bcf),_0x403e73['model']['applyOperation'](_0x2a1bcf);else{const _0x3b51a4=_0x2a1bcf['sourcePosition'],_0x16caee=_0x2a1bcf['howMany'],_0x2cf75d=new _0x104b5a(_0x3b51a4,_0x16caee);_0x5384c8['batch']['addOperation'](_0x2cf75d),_0x403e73['model']['applyOperation'](_0x2cf75d);}}}for(const _0x109e62 of _0x4d6c3f){const _0x52e919=_0x403e73['model']['createRangeOn'](_0x109e62),_0x17062c='suggestion:formatBlock:$fakeWrap:'+_0x2f3bfc()+':$aiSuggestion';_0x1b76c0['markers']['set'](_0x17062c,Zt(_0x52e919,_0x403e73['model']));}});}['_setSuggestionRange'](_0x120d7c,_0x15c589){const _0x1809bb=_0x120d7c['getFirstMarker']();this['_model']['change'](_0x205964=>{_0x205964['updateMarker'](_0x1809bb,{'range':_0x15c589});});}['_addThreadToSuggestion'](_0x31bb55){const _0x16e983=_0x31bb55['id'],_0x455d85=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x16e983)||this['_commentsRepository']['addCommentThread']({'channelId':_0x455d85,'threadId':_0x16e983,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2a9c25=this['_commentsRepository']['getCommentThread'](_0x16e983);_0x2a9c25['unbind']('isRemovable'),_0x2a9c25['isRemovable']=!0x1,_0x31bb55['commentThread']=_0x2a9c25;}['_checkSuggestionCorrectness'](_0x41ab8c,_0x75f799,_0x5b5f0f,_0x3e6266){if(_0x41ab8c['type']!=_0x75f799||_0x41ab8c['subType']!=_0x5b5f0f||_0x41ab8c['creator']['id']!=_0x3e6266)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c5060('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4ab183,_0x590387){const _0x911288=_0x4ab183['getFirstRange']();if(_0x590387['isEqual'](_0x911288))_0x4ab183['removeMarkers']();else{if(_0x911288['containsRange'](_0x590387)){const _0xbadba1=this['_model']['createPositionAt'](_0x590387['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4ab183,this['_model']['createRange'](_0x911288['start'],_0xbadba1));const _0x26d165=_0x2f3bfc(),_0x47be43=_0x4ab183['creator']['id'],_0x140178=_0x4ab183['type']+':'+_0x4ab183['subType'];this['_setSuggestionData']({'id':_0x26d165,'type':_0x140178,'createdAt':new Date(),'authorId':_0x47be43,'data':_0x4ab183['data'],'attributes':_0x4ab183['attributes']});const _0x3da6dd=this['_model']['createPositionAt'](_0x590387['end']['parent'],'after'),_0x4a180f=this['_model']['createRange'](_0x3da6dd,_0x911288['end']);this['_addSuggestionMarker'](_0x140178,_0x26d165,_0x47be43,_0x4a180f);}else{if(_0x911288['containsPosition'](_0x590387['start'])){const _0x3a4ff1=this['_model']['createPositionAt'](_0x590387['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4ab183,this['_model']['createRange'](_0x911288['start'],_0x3a4ff1));}else{const _0x2c9166=this['_model']['createPositionAt'](_0x590387['end']['parent'],'after');this['_setSuggestionRange'](_0x4ab183,this['_model']['createRange'](_0x2c9166,_0x911288['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x44d85f){for(const {suggestion:_0x3729a6,meta:_0x4e013d}of this['_findSuggestions'](_0x44d85f,'insertion')){if(!_0x4e013d['isOwn'])continue;const _0x2b9081=_0x3729a6['getRanges']();for(const _0x3311f4 of _0x2b9081)if(!_0x44d85f['getDifference'](_0x3311f4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x26a28e){return this['editor']['plugins']['get']('Users')['getUser'](_0x26a28e);}['_getExternalAuthor'](_0x197bfc){const _0x13a0ff=this['editor']['plugins']['get']('Users'),_0x3f9a15=_0x5b6d50('external:'+_0x197bfc),_0x1bd328=_0x13a0ff['getUser'](_0x3f9a15);return _0x1bd328||_0x13a0ff['addUser']({'id':_0x3f9a15,'name':_0x197bfc});}['_createSuggestion'](_0x1b00f1,_0x554038,_0x30229a,_0x303985,_0x2b011c,_0x4c6300){const _0x54ff0e=this['_getAuthorFromId'](_0x303985);if(!_0x54ff0e)throw new _0x1c5060('track-changes-user-not-found',this,{'authorId':_0x303985,'suggestionId':_0x30229a});const _0x55f59a=this['_suggestionFactory']['buildSuggestion'](_0x1b00f1,_0x554038,_0x30229a,_0x54ff0e,_0x2b011c,_0x1b894b=>{this['_updateSuggestionData'](_0x30229a,{'attributes':_0x1b894b});const _0x593a98=this['getSuggestion'](_0x30229a);this['_joinWithAdjacentSuggestions'](new Set([_0x593a98])),this['_refreshSuggestionsChain'](new Set([_0x593a98]));},_0x4c6300);return this['listenTo'](_0x55f59a,'accept',()=>{this['_updateSuggestionData'](_0x30229a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x55f59a,'discard',()=>{this['_updateSuggestionData'](_0x30229a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x30229a,_0x55f59a),this['_suggestionState']['set'](_0x55f59a,'notReady'),_0x55f59a;}['_splitMarkerName'](_0x26ee21){const _0x2c7252=_0x26ee21['split'](':');return{'group':_0x2c7252[0x0],'type':_0x2c7252[0x1],'subType':_0x2c7252['length']>=0x5?_0x2c7252[0x2]:null,'id':_0x2c7252['length']<0x5?_0x2c7252[0x2]:_0x2c7252[0x3],'authorId':_0x2c7252['length']<0x5?_0x2c7252[0x3]:_0x2c7252[0x4],'markerCount':0x6==_0x2c7252['length']?_0x2c7252[0x5]:null};}['_breakSuggestionMarker'](_0x676ba1,_0x183357,_0x5e232d){const _0x76b2ce=_0x676ba1['getFirstRange'](),_0x522d5b=_0x76b2ce['start'],_0x55d947=_0x76b2ce['end'];this['_setSuggestionRange'](_0x676ba1,this['_model']['createRange'](_0x522d5b,_0x183357));const _0x239457=_0x2f3bfc(),_0x18ef68=_0x676ba1['creator']['id'],_0x16ddc7=_0x676ba1['type']+(_0x676ba1['subType']?':'+_0x676ba1['subType']:'');this['_setSuggestionData']({'id':_0x239457,'type':_0x16ddc7,'createdAt':new Date(),'authorId':_0x18ef68,'originalSuggestionId':_0x676ba1['_originalSuggestionId']||_0x676ba1['id'],'attributes':_0x676ba1['attributes'],'data':_0x676ba1['data']});const _0x4644eb=this['_getAttributeKey'](_0x676ba1);('formatBlock'==_0x676ba1['type']||_0x4644eb&&this['_isBlockAttribute'](_0x4644eb))&&(_0x5e232d=this['_model']['createPositionBefore'](_0x5e232d['parent'])),this['_addSuggestionMarker'](_0x16ddc7,_0x239457,_0x18ef68,this['_model']['createRange'](_0x5e232d,_0x55d947));}['_findSuggestions'](_0x483d70,_0x38c060=null){const _0x2d226f=[],_0x25ff33=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x483d70)||(_0x483d70=[_0x483d70]);for(const _0xe6d3e9 of this['getSuggestions']()){if(!_0xe6d3e9['isInContent'])continue;if(_0x38c060&&_0xe6d3e9['type']!=_0x38c060)continue;let _0x5534eb=!0x1;for(const _0x16e237 of _0xe6d3e9['getRanges']()){for(const _0x2c9672 of _0x483d70){const _0x5825a6=_0x2c9672['start']['isEqual'](_0x16e237['end'])||_0x2c9672['end']['isEqual'](_0x16e237['start']);if(_0x5825a6||_0x2c9672['getIntersection'](_0x16e237)){const _0x172dcb=_0x2c9672['containsRange'](_0x16e237)&&qt(this['_model']['schema'],_0x16e237['start'],_0x2c9672),_0xac92d=_0x16e237['containsRange'](_0x2c9672)&&qt(this['_model']['schema'],_0x2c9672['start'],_0x16e237);_0x2d226f['push']({'suggestion':_0xe6d3e9,'meta':{'isOwn':_0x25ff33==_0xe6d3e9['author'],'isNextTo':_0x5825a6,'isInsideObject':_0x172dcb,'containsRangeInObject':_0xac92d}}),_0x5534eb=!0x0;break;}}if(_0x5534eb)break;}}return _0x2d226f;}['_addSuggestionMarker'](_0x51c6f4,_0x1a0b11,_0x1a4055,_0x45a14d,_0x3ceb2a){this['_model']['change'](_0x5dce38=>{let _0x2d12e9='suggestion:'+_0x51c6f4+':'+_0x1a0b11+':'+_0x1a4055;_0x3ceb2a&&(_0x2d12e9=_0x2d12e9+':'+_0x3ceb2a),_0x5dce38['addMarker'](_0x2d12e9,{'range':_0x45a14d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2c2b26){const _0x2c6d19=_0x2c2b26['previous'],_0x55304f=_0x2c2b26['next'];_0x2c2b26['previous']=null,_0x2c2b26['next']=null,null!=_0x2c6d19&&_0x2c6d19['next']==_0x2c2b26&&(_0x2c6d19['next']=_0x55304f),null!=_0x55304f&&_0x55304f['previous']==_0x2c2b26&&(_0x55304f['previous']=_0x2c6d19),'ready'==this['_suggestionState']['get'](_0x2c2b26)&&(this['_suggestionState']['set'](_0x2c2b26,'removed'),this['fire']('suggestionUnloaded',_0x2c2b26,_0x2c6d19,_0x55304f));}['_setSuggestionData'](_0x590ff7){const _0x481c30=_0x590ff7['id'],_0x55f05d=this['addSuggestionData'](_0x590ff7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3aa37a=this['editor']['plugins']['get']('PendingActions'),_0x3799e0=_0x55f05d['hasComments'],_0x31c677=_0x55f05d['subType']?_0x55f05d['type']+':'+_0x55f05d['subType']:_0x55f05d['type'],_0x24c5b4=this['editor']['locale'],_0x38c663=_0x3aa37a['add'](o(_0x24c5b4,'PENDING_ACTION_SUGGESTION')),_0x6cf854={'id':_0x481c30,'type':_0x31c677,'hasComments':_0x3799e0,'data':_0x590ff7['data']||null,'originalSuggestionId':_0x590ff7['originalSuggestionId']||null,'attributes':_0x55f05d['attributes']};this['_adapter']['addSuggestion'](_0x6cf854)['then'](_0x5f56e9=>{_0x55f05d['_saved']=!0x0,_0x3aa37a['remove'](_0x38c663),_0x5f56e9&&_0x5f56e9['createdAt']&&(this['_suggestions']['get'](_0x481c30)['createdAt']=_0x5f56e9['createdAt']);})['catch'](_0x565eee=>{throw _0x38a1da('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x55f05d['discard']();}),_0x55f05d['stopListening'](),this['_suggestions']['delete'](_0x55f05d['id']),this['_suggestionState']['delete'](_0x55f05d),_0x565eee;});}return _0x55f05d;}['_isBlockAttribute'](_0xa0a7b0){return this['_blockAttributeKeys']['has'](_0xa0a7b0);}['_isInlineAttribute'](_0x10209f){return this['_inlineAttributeKeys']['has'](_0x10209f);}['_updateSuggestionData'](_0x34fcbf,_0x8fec45){const _0x234667=this['editor']['plugins']['get']('PendingActions'),_0x11fc41=this['getSuggestion'](_0x34fcbf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x11fc41['_saved']){const _0x520c3d=_0x234667['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x34fcbf,_0x8fec45)['then'](()=>{_0x234667['remove'](_0x520c3d);});}else _0x11fc41['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x34fcbf,_0x8fec45);});}}['_getSuggestionData'](_0x4543d4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c5060('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4543d4);}['_handleNewSuggestionMarker'](_0x4fc8e1){const {id:_0xafe527,type:_0x5a240f,subType:_0x526838,authorId:_0x48c76a}=this['_splitMarkerName'](_0x4fc8e1),_0x3e1494=this['_suggestions']['get'](_0xafe527)||this['_createSuggestion'](_0x5a240f,_0x526838,_0xafe527,_0x48c76a,{});switch(this['_checkSuggestionCorrectness'](_0x3e1494,_0x5a240f,_0x526838,_0x48c76a),this['_suggestionState']['get'](_0x3e1494)){case'notReady':this['_getSuggestionData'](_0xafe527)['then'](_0xf1813d=>{let _0x3765d7=Promise['resolve']();_0xf1813d['hasComments']&&(_0x3765d7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xafe527})),_0x3765d7['then'](()=>{this['addSuggestionData'](_0xf1813d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3e1494,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xafe527,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3e1494,'ready'),this['fire']('suggestionLoaded',_0x3e1494);break;case'ready':this['fire']('suggestionChanged',_0x3e1494);}return _0x3e1494['addMarkerName'](_0x4fc8e1),_0x3e1494;}['_refreshSuggestionsChain'](_0x12c7cc){const _0x2ab85d=Array['from'](_0x12c7cc),_0x14078a=_0x2ab85d['filter'](_0x22f365=>'attribute'==_0x22f365['type']);this['_refreshAttributeSuggestionsChain'](_0x14078a);const _0x144aca=_0x2ab85d['filter'](_0x3b7031=>!_0x3b7031['isMultiRange']&&'attribute'!=_0x3b7031['type']),_0xfe812d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d529a=>!_0x4d529a['isMultiRange']&&'attribute'!=_0x4d529a['type']),_0x2e9cbf=_0xfe812d['filter'](_0x3d5039=>!_0x12c7cc['has'](_0x3d5039)),_0x486783=new Map(_0xfe812d['map'](_0x589f5b=>[_0x589f5b,this['_suggestionFactory']['getSuggestionCallback'](_0x589f5b['type'],_0x589f5b['subType'],'chain')])),_0x2c5744=new Map(_0xfe812d['map'](_0x5e782a=>[_0x5e782a,_0x5e782a['getFirstRange']()])),_0x23e3e7=new Set(),_0x2cf4be=new Set();for(let _0x51cb34=0x0;_0x51cb34<_0x144aca['length'];_0x51cb34++)_0x34e2f5(_0x144aca[_0x51cb34],_0x144aca,_0x51cb34+0x1);for(let _0xa93592=0x0;_0xa93592<_0x144aca['length'];_0xa93592++)_0x34e2f5(_0x144aca[_0xa93592],_0x2e9cbf,0x0);const _0x326434=new Set();for(let _0x53bae8=0x0;_0x53bae8<_0x144aca['length'];_0x53bae8++){const _0x4ecc94=_0x144aca[_0x53bae8];!_0x2cf4be['has'](_0x4ecc94)&&_0x4ecc94['previous']&&(_0x326434['add'](_0x4ecc94['previous']),_0x4ecc94['previous']['next']===_0x4ecc94&&(_0x4ecc94['previous']['next']=null),_0x4ecc94['previous']=null),!_0x23e3e7['has'](_0x4ecc94)&&_0x4ecc94['next']&&(_0x326434['add'](_0x4ecc94['next']),_0x4ecc94['next']['previous']===_0x4ecc94&&(_0x4ecc94['next']['previous']=null),_0x4ecc94['next']=null);}function _0x34e2f5(_0x51d2ec,_0x40b2d8,_0x5eacfe){for(let _0x45455a=_0x5eacfe;_0x45455a<_0x40b2d8['length'];_0x45455a++){const _0x6e232c=_0x2e53f4(_0x51d2ec,_0x40b2d8[_0x45455a]);_0x6e232c&&(_0x6e232c[0x0]['next']=_0x6e232c[0x1],_0x6e232c[0x1]['previous']=_0x6e232c[0x0],_0x23e3e7['add'](_0x6e232c[0x0]),_0x2cf4be['add'](_0x6e232c[0x1]));}}function _0x2e53f4(_0x363b04,_0x40b44d){if(_0x363b04['author']['id']!==_0x40b44d['author']['id'])return null;const _0x219b90=_0x486783['get'](_0x363b04)(_0x363b04,_0x40b44d,_0x2c5744['get'](_0x363b04),_0x2c5744['get'](_0x40b44d));if(!_0x219b90)return null;return _0x486783['get'](_0x40b44d)(_0x363b04,_0x40b44d,_0x2c5744['get'](_0x363b04),_0x2c5744['get'](_0x40b44d))?_0x219b90[0x1]['commentThread']&&_0x219b90[0x1]['commentThread']['length']?null:_0x219b90:null;}_0x326434['size']&&this['_refreshSuggestionsChain'](_0x326434);}['_refreshAttributeSuggestionsChain'](_0x2ff4d4){if(0x0==_0x2ff4d4['length'])return;const _0x5af2f3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52e622=>'attribute'==_0x52e622['type']&&_0x52e622['_isDataLoaded']),_0x4c4a51=[],_0x3d737f=new Map();for(const _0x3962da of _0x5af2f3){const _0x2a8f73=_0x5b6d50(_0x3962da['attributes']);_0x3d737f['has'](_0x2a8f73)||(_0x3d737f['set'](_0x2a8f73,_0x4c4a51['length']),_0x4c4a51['push']([]));const _0x902ee5=_0x3d737f['get'](_0x2a8f73);_0x4c4a51[_0x902ee5]['push'](_0x3962da);}!(function(){_0x4c4a51['sort']((_0x175a58,_0x19b7c4)=>{const _0x50567f=_0x175a58[0x0]['createdAt'],_0x3c32f4=_0x19b7c4[0x0]['createdAt'];return _0x50567f==_0x3c32f4?_0x175a58[0x0]['attributes']['groupId']<_0x19b7c4[0x0]['attributes']['groupId']?-0x1:0x1:_0x50567f<_0x3c32f4?-0x1:0x1;});for(const _0x5cd5ed of _0x4c4a51)_0x5cd5ed['sort']((_0xde448,_0x14c269)=>_0xde448['id']<_0x14c269['id']?-0x1:0x1);}());for(let _0x2e3378=0x0;_0x2e3378<_0x4c4a51['length'];_0x2e3378++){if(0x0==_0x4c4a51[_0x2e3378]['length'])continue;const _0x54b281=[];for(let _0x3678ce=_0x2e3378+0x1;_0x3678ce<_0x4c4a51['length'];_0x3678ce++)0x0!=_0x4c4a51[_0x3678ce]['length']&&_0x1c5b77(_0x4c4a51[_0x2e3378],_0x4c4a51[_0x3678ce])&&_0x54b281['push'](_0x3678ce);for(const _0x5ee467 of _0x54b281)_0x4c4a51[_0x2e3378]=_0x4c4a51[_0x2e3378]['concat'](_0x4c4a51[_0x5ee467]),_0x4c4a51[_0x5ee467]=[];}for(const _0x143260 of _0x4c4a51)for(let _0xc5edaa=0x0;_0xc5edaa<_0x143260['length'];_0xc5edaa++){const _0x26cd30=_0x143260[_0xc5edaa+0x1]||null;_0x143260[_0xc5edaa]['next']!==_0x26cd30&&(_0x143260[_0xc5edaa]['next']=_0x26cd30);}for(const _0x884268 of _0x4c4a51)for(let _0x52283b=0x0;_0x52283b<_0x884268['length'];_0x52283b++){const _0x5ba49a=_0x884268[_0x52283b-0x1]||null;_0x884268[_0x52283b]['previous']!==_0x5ba49a&&(_0x884268[_0x52283b]['previous']=_0x5ba49a);}function _0x1c5b77(_0x2d8107,_0x4c4c5c){if(_0x2d8107[0x0]['attributes']['groupId']!==_0x4c4c5c[0x0]['attributes']['groupId']&&_0x2d8107[0x0]['author']!==_0x4c4c5c[0x0]['author'])return!0x1;if(!function(_0x5b5fd2,_0x32a2c6){if(!_0x5b5fd2['hasComments']&&!_0x32a2c6['hasComments'])return!0x0;if(_0x5b5fd2['hasComments']&&_0x32a2c6['hasComments'])return!0x1;if(_0x5b5fd2['hasComments']&&_0x32a2c6['createdAt']<_0x5b5fd2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x32a2c6['hasComments']&&_0x5b5fd2['createdAt']<_0x32a2c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d8107[0x0],_0x4c4c5c[0x0]))return!0x1;const _0x51ec56=Jt(_0x2d8107[0x0]['attributes'],['groupId','trackingSessionId']),_0x347ffc=Jt(_0x4c4c5c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x389819(_0x51ec56,_0x347ffc))return!0x1;if(_0x2d8107[0x0]['attributes']['groupId']==_0x4c4c5c[0x0]['attributes']['groupId'])return!0x0;if(_0x2d8107[0x0]['attributes']['trackingSessionId']!==_0x4c4c5c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2d8107['every'](_0xc71f42=>_0x4c4c5c['some'](_0x5c7a36=>_0xc71f42['getFirstRange']()['isEqual'](_0x5c7a36['getFirstRange']())))&&_0x4c4c5c['every'](_0x17e0a8=>_0x2d8107['some'](_0x11fe4c=>_0x17e0a8['getFirstRange']()['isEqual'](_0x11fe4c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x12a5bd){const _0x42e1f5=Array['from'](_0x12a5bd),_0x2d73ec=this['getSuggestions']({'skipNotAttached':!0x0}),_0x108e43=_0x2d73ec['filter'](_0x5bf686=>!_0x12a5bd['has'](_0x5bf686)),_0x405d10=new Map(_0x42e1f5['map'](_0x365bac=>[_0x365bac,this['_suggestionFactory']['getSuggestionCallback'](_0x365bac['type'],_0x365bac['subType'],'join')])),_0x8139d8=new Map(_0x2d73ec['map'](_0x52a1a5=>[_0x52a1a5,_0x52a1a5['getRanges']()]));for(let _0xa0bb69=0x0;_0xa0bb69<_0x42e1f5['length'];_0xa0bb69++){if(_0x37c29e(this,_0x42e1f5[_0xa0bb69],_0x42e1f5,_0xa0bb69+0x1))return!0x0;}for(let _0x1bfe8d=0x0;_0x1bfe8d<_0x42e1f5['length'];_0x1bfe8d++){if(_0x37c29e(this,_0x42e1f5[_0x1bfe8d],_0x108e43,0x0))return!0x0;}return!0x1;function _0x37c29e(_0x56ee91,_0xbc2edf,_0x45c35a,_0x3ee781){for(let _0x35b630=_0x3ee781;_0x35b630<_0x45c35a['length'];_0x35b630++){const _0x53bf73=_0x45c35a[_0x35b630];if(_0x53bf73['type']!==_0xbc2edf['type']||_0x53bf73['author']['id']!==_0xbc2edf['author']['id']||_0x53bf73['subType']!==_0xbc2edf['subType'])continue;if(!ne(_0xbc2edf,_0x53bf73))continue;if('attribute'==_0xbc2edf['type']&&_0xbc2edf['data']['oldValue']!=_0x53bf73['data']['oldValue'])continue;if('attribute'==_0xbc2edf['type']&&_0x56ee91['_isBlockAttribute'](_0xbc2edf['data']['key']))continue;if('formatBlock'==_0xbc2edf['type']){const _0x51da29=_0x56ee91['editor']['model'],_0x3b01ec=_0xbc2edf['getContainedElement']();if(_0x3b01ec&&(_0x51da29['schema']['isObject'](_0x3b01ec)||_0x51da29['schema']['isLimit'](_0x3b01ec)))continue;}const _0x137b69=_0x405d10['get'](_0xbc2edf),_0x366ded=_0x8139d8['get'](_0xbc2edf),_0x32502f=_0x8139d8['get'](_0x53bf73),_0x49c04c=_0xbc2edf['commentThread']&&_0xbc2edf['commentThread']['length'],_0x5e6aa7=_0x53bf73['commentThread']&&_0x53bf73['commentThread']['length'];if(!_0x49c04c&&_0x137b69(_0x32502f,_0x366ded))return _0x56ee91['_joinSuggestions'](_0x53bf73,_0xbc2edf),_0x8139d8['delete'](_0xbc2edf),!0x0;if(!_0x5e6aa7&&_0x137b69(_0x366ded,_0x32502f))return _0x56ee91['_joinSuggestions'](_0xbc2edf,_0x53bf73),_0x8139d8['delete'](_0x53bf73),!0x0;}return!0x1;}}['_joinSuggestions'](_0xdb4e94,_0x4ae885){if(_0xdb4e94['isMultiRange']){for(const _0x1257f6 of _0x4ae885['getRanges']())_0xdb4e94['addRange'](_0x1257f6);}else{const _0x144307=_0x4ae885['getFirstRange']()['end'];this['_setSuggestionRange'](_0xdb4e94,this['_model']['createRange'](_0xdb4e94['getFirstRange']()['start'],_0x144307));}_0x4ae885['removeMarkers']();}['_getMarkerAnnouncementText'](_0x18639c,_0x3f31b5,_0x3df137){const _0x382c27=_0x18639c['startsWith']('format')||_0x18639c['startsWith']('attribute')?'FORMATTING':_0x18639c['toUpperCase']();return o(this['editor']['locale'],_0x3f31b5+'_'+_0x382c27+'_SUGGESTION_ANNOUNCEMENT',_0x3df137);}['_initAriaMarkerChangeAnnouncements'](){const _0x17c705=this['editor'];if(!_0x17c705['ui'])return;const {ariaLiveAnnouncer:_0x458b99}=_0x17c705['ui'];_0x32f207(this['_model'],({left:_0x2a8d74,entered:_0x3a0d00})=>{for(const _0x35496 of _0x2a8d74){const {group:_0x409338,type:_0x3a3e12}=this['_splitMarkerName'](_0x35496['name']);if('suggestion'===_0x409338){_0x458b99['announce'](this['_getMarkerAnnouncementText'](_0x3a3e12,'LEAVE'));break;}}for(const _0x4f6b7c of _0x3a0d00){const {group:_0x54a866,type:_0x474f3a}=this['_splitMarkerName'](_0x4f6b7c['name']);if('suggestion'===_0x54a866){_0x458b99['announce'](this['_getMarkerAnnouncementText'](_0x474f3a,'ENTER',_0x31da68(_0x1dc23a)));break;}}});}['_processAttributeChanges'](_0x19ba50){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2bdb16=this['editor'],_0x2d38ac=_0x2bdb16['model']['document']['differ']['getChanges']();if(0x0==_0x2d38ac['length'])return!0x1;const _0x45d67b=[],_0x459c18=_0x2d38ac['filter'](_0x245736=>'attribute'==_0x245736['type']),_0x4a4452=_0x2d38ac['filter'](_0x4cfad7=>'insert'==_0x4cfad7['type']&&'$text'!=_0x4cfad7['name']),_0x292e0f=_0x2d38ac['filter'](_0x96112b=>'remove'==_0x96112b['type']&&'$text'!=_0x96112b['name']);for(const _0x4edcda of _0x459c18)_0x45d67b['push']({'key':_0x4edcda['attributeKey'],'newValue':_0x4edcda['attributeNewValue'],'oldValue':_0x4edcda['attributeOldValue'],'range':te(_0x4edcda['range'],_0x2bdb16['model'])});for(const _0x4dfe9 of _0x4a4452){const _0x6e16de=_0x292e0f['find'](_0xdaa07=>_0xdaa07['position']['isEqual'](_0x4dfe9['position']));_0x6e16de&&_0x45d67b['push']({'key':m,'newValue':_0x4dfe9['name'],'oldValue':_0x6e16de['name'],'range':_0x2bdb16['model']['createRangeOn'](_0x4dfe9['position']['nodeAfter'])});}return 0x0!=_0x45d67b['length']&&this['_reduceExistingSuggestions'](_0x19ba50,_0x45d67b);}['_processAttributeSuggestions'](_0x4662e3){let _0x32281b=!0x1;const _0x3aa6a4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x24bf92=>_0x24bf92['data']['newRange']&&_0x24bf92['name']['startsWith']('suggestion:attribute:'));for(const _0x3fd357 of _0x3aa6a4){const {subType:_0x29ad5d,id:_0x4b724f}=this['_splitMarkerName'](_0x3fd357['name']),_0x20a9a1=_0x29ad5d['split']('|')[0x0];for(const _0x5e7e2e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5e7e2e['id']!=_0x4b724f&&'attribute'==_0x5e7e2e['type']&&_0x5e7e2e['data']&&_0x5e7e2e['data']['key']==_0x20a9a1&&_0x5e7e2e['getFirstRange']()['isIntersecting'](_0x3fd357['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5e7e2e,_0x3fd357['data']['newRange'],_0x4662e3),_0x32281b=!0x0);}return _0x32281b;}['recordAttributeChanges'](_0x2b6c22){this['_recordAttributeSuggestions']=!0x0,_0x2b6c22();}['_isRegisteredAttribute'](_0x183e52){const _0x3dd011=this['_isBlockAttribute'](_0x183e52),_0x302d3c=this['_isInlineAttribute'](_0x183e52);return _0x3dd011||_0x302d3c;}['_reduceExistingSuggestions'](_0x40a0b9,_0x5c0089){if(0x0==_0x5c0089['length'])return!0x1;let _0x5707e9=!0x1;for(const _0x49dceb of _0x5c0089){const _0x1b1b75=this['_findSuggestions'](_0x49dceb['range'],'attribute')['filter'](_0x1cc9b3=>!_0x1cc9b3['meta']['isNextTo'])['map'](_0x1aec30=>_0x1aec30['suggestion']),_0x313646=_0x5b6d50({'newValue':_0x49dceb['newValue']});_0x1b1b75['filter'](_0x397320=>{const [_0x2ac690,_0x1f2780]=_0x397320['subType']['split']('|');return _0x2ac690==_0x49dceb['key']&&_0x1f2780!=_0x313646;})['forEach'](_0x3ac889=>{this['_reduceSuggestionAttributeRange'](_0x3ac889,_0x49dceb['range'],_0x40a0b9),_0x5707e9=!0x0;});}return _0x5707e9;}['_reduceSuggestionAttributeRange'](_0x32c57a,_0x48006a,_0x3717d5){const _0x3e9bc6=_0x32c57a['getFirstRange']()['getDifference'](_0x48006a);0x0!==_0x3e9bc6['length']?0x1!==_0x3e9bc6['length']?this['_breakSuggestionMarker'](_0x32c57a,_0x48006a['start'],_0x48006a['end']):this['_setSuggestionRange'](_0x32c57a,_0x3e9bc6[0x0]):_0x3717d5['removeMarker'](_0x32c57a['getFirstMarker']());}}class Kt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x491b1c){this['_editor']=_0x491b1c,this['_model']=_0x491b1c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2c07a4,_0x24f9df,_0x34ee1a,_0x4fae01,_0x72837e,_0x56a881,_0x3f3383){return new R(this['_model'],{'type':_0x2c07a4,'subType':_0x24f9df,'id':_0x34ee1a,'originalSuggestionId':_0x3f3383,'author':_0x4fae01,'creator':_0x4fae01,'attributes':_0x72837e,'onAttributesChange':_0x56a881,'onAccept':(..._0x45519b)=>this['getSuggestionCallback'](_0x2c07a4,_0x24f9df,'accept')(..._0x45519b),'onDiscard':(..._0x11a249)=>this['getSuggestionCallback'](_0x2c07a4,_0x24f9df,'discard')(..._0x11a249)});}['registerCustomCallback'](_0x15c549,_0x545964,_0x43c9b4,_0x262d30){const _0x2a8853=_0x15c549+':'+_0x545964+':'+_0x43c9b4;this['_customCallbacks']['set'](_0x2a8853,_0x262d30);}['getSuggestionCallback'](_0x153038,_0xadfdee,_0x1e55c4){const _0x7f991b=_0x153038+':'+_0xadfdee+':'+_0x1e55c4;return this['_customCallbacks']['get'](_0x7f991b)||this['_defaultCallbacks']['get'](_0x153038+':'+_0x1e55c4);}['_registerDefaultCallbacks'](){const _0x349401=()=>!0x1,_0x457b2c=_0x3e4629=>{_0x3e4629['sort']((_0x17ac7c,_0x30e597)=>_0x17ac7c['start']['isBefore'](_0x30e597['start'])?0x1:-0x1),this['_model']['change'](_0x426103=>{for(const _0x56798e of _0x3e4629){let _0x5e165c;_0x5e165c=_0x56798e['end']['isAtEnd']&&_0x56798e['end']['parent']==_0x56798e['start']['nodeAfter']?_0x426103['createSelection'](_0x56798e['start']['nodeAfter'],'on'):_0x426103['createSelection'](_0x56798e),this['_model']['deleteContent'](_0x5e165c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x40143d=(_0x347be6,_0x52bcbf)=>{_0x52bcbf&&this['_model']['change'](_0x42874f=>{const {commandName:_0x549fdd,commandParams:_0x1903ab=[]}=_0x52bcbf,_0x1f4124=_0x347be6['map'](_0x3300b9=>(Ht(_0x3300b9)&&(_0x3300b9=this['_model']['createRange'](_0x3300b9['end'])),_0x3300b9))['filter'](_0x53e986=>'$graveyard'!==_0x53e986['root']['rootName']);if(_0x1f4124['length']<0x1)return;const _0x33a4f9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x22fcd0=>_0x4b855c['fromRange'](_0x22fcd0));_0x42874f['setSelection'](_0x1f4124);for(const _0x399c9c of this['_editor']['commands']['commands']())_0x399c9c['refresh']();_0x1903ab['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x549fdd,..._0x1903ab);const _0x4e7712=_0x33a4f9['filter'](_0x48ea3b=>'$graveyard'!=_0x48ea3b['root']['rootName']);_0x4e7712['length']>0x0&&_0x42874f['setSelection'](_0x4e7712);for(const _0x280ec6 of _0x33a4f9)_0x280ec6['detach']();});},_0x58416d=(_0x5ba8be,_0x6f53fb)=>0x1==_0x5ba8be['length']&&0x1==_0x6f53fb['length']&&_0x5ba8be[0x0]['end']['isEqual'](_0x6f53fb[0x0]['start']),_0x2520ec=(_0xb19ca3,_0x110a4f,_0x523af9,_0x22cd0f)=>ie(_0xb19ca3,_0x110a4f,_0x523af9,_0x22cd0f)?[_0xb19ca3,_0x110a4f]:ie(_0x110a4f,_0xb19ca3,_0x22cd0f,_0x523af9)?[_0x110a4f,_0xb19ca3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x349401),this['_defaultCallbacks']['set']('insertion:discard',_0x457b2c),this['_defaultCallbacks']['set']('insertion:join',_0x58416d),this['_defaultCallbacks']['set']('insertion:chain',_0x2520ec),this['_defaultCallbacks']['set']('deletion:accept',_0x457b2c),this['_defaultCallbacks']['set']('deletion:discard',_0x349401),this['_defaultCallbacks']['set']('deletion:join',_0x58416d),this['_defaultCallbacks']['set']('deletion:chain',_0x2520ec),this['_defaultCallbacks']['set']('formatInline:accept',_0x40143d),this['_defaultCallbacks']['set']('formatInline:discard',_0x349401),this['_defaultCallbacks']['set']('formatInline:join',_0x58416d),this['_defaultCallbacks']['set']('formatInline:chain',_0x349401),this['_defaultCallbacks']['set']('formatBlock:accept',_0x40143d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x349401),this['_defaultCallbacks']['set']('formatBlock:join',_0x58416d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x349401),this['_defaultCallbacks']['set']('attribute:accept',_0x349401),this['_defaultCallbacks']['set']('attribute:discard',(_0x455a86,_0x65116c)=>{if(!_0x65116c)return;const _0x2df54a=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2c3413=>{if(_0x65116c['key']==m)for(const _0x96e1da of _0x455a86){const _0x2ce561=_0x96e1da['start']['nodeAfter'],_0x38664d=_0x65116c['oldValue'];_0x2c3413['rename'](_0x2ce561,_0x38664d);}else{if(_0x2df54a['_isBlockAttribute'](_0x65116c['key'])){for(const _0x5ed74b of _0x455a86)void 0x0!==_0x65116c['oldValue']?_0x2c3413['setAttribute'](_0x65116c['key'],_0x65116c['oldValue'],_0x5ed74b['start']['nodeAfter']):_0x2c3413['removeAttribute'](_0x65116c['key'],_0x5ed74b['start']['nodeAfter']);}else{for(const _0x2ac4c9 of _0x455a86)_0x65116c['oldValue']?_0x2c3413['setAttribute'](_0x65116c['key'],_0x65116c['oldValue'],_0x2ac4c9):_0x2c3413['removeAttribute'](_0x65116c['key'],_0x2ac4c9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x58416d);}}function qt(_0x5eb349,_0x4d4b48,_0x3a6a87){for(const _0x17fc36 of _0x4d4b48['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x17fc36['root']==_0x17fc36)return!0x1;if(!_0x3a6a87['containsItem'](_0x17fc36))return!0x1;if(_0x5eb349['isObject'](_0x17fc36)||_0x5eb349['isLimit'](_0x17fc36))return!0x0;}return!0x1;}function Ht(_0x41ca9d){return _0x41ca9d['end']['parent']==_0x41ca9d['start']['nodeAfter']&&_0x41ca9d['end']['isAtStart'];}function Wt(_0x5779cc,_0x58a4c8,_0x499cf2,_0xf6dfab){const _0x51ebf6=_0x2ef51c=>!_0x2ef51c['item']['is']('$textProxy')&&!_0xf6dfab['isObject'](_0x2ef51c['item']),_0x2d84df=_0x5779cc['start']['getLastMatchingPosition'](_0x51ebf6),_0x4a77e1=_0x5779cc['end']['getLastMatchingPosition'](_0x51ebf6,{'direction':'backward'});return(!_0x5779cc['start']['isEqual'](_0x2d84df)||!_0x5779cc['end']['isEqual'](_0x4a77e1))&&(_0x2d84df['isBefore'](_0x4a77e1)?_0x499cf2['updateMarker'](_0x58a4c8,{'range':_0x499cf2['createRange'](_0x2d84df,_0x4a77e1)}):_0x499cf2['removeMarker'](_0x58a4c8),!0x0);}function zt(_0x42d707){return _0x5b6d50(_0x42d707);}function Qt(_0x51eef4){const _0x510ee0=_0x51eef4['start']['nodeAfter'];return _0x510ee0&&_0x510ee0['is']('element');}function Xt(_0x1a1930){return Ht(_0x1a1930)||function(_0x31cf09){return _0x31cf09['start']['parent']==_0x31cf09['end']['nodeBefore']&&_0x31cf09['start']['isAtEnd'];}(_0x1a1930);}function Yt(_0x414945,_0x155f23){try{const _0x1bb5a8=_0x414945['getRange']();for(const _0x375133 of _0x155f23)if(_0x414945!==_0x375133&&_0x1bb5a8&&_0x1bb5a8['isIntersecting'](_0x375133['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x46a4cc,_0x23cf41){const _0xa2ec80=_0x46a4cc['end']['nodeBefore'];if(_0xa2ec80&&_0xa2ec80['is']('element')&&_0x23cf41['schema']['isBlock'](_0xa2ec80)&&!_0x23cf41['schema']['isObject'](_0xa2ec80)){const _0x3e9ddc=_0x23cf41['createPositionAt'](_0xa2ec80,'end');return _0x23cf41['createRange'](_0x46a4cc['start'],_0x3e9ddc);}return _0x46a4cc;}function te(_0xc85e23,_0x27066d){return null==_0xc85e23['end']['nodeBefore']&&_0xc85e23['end']['parent']==_0xc85e23['start']['nodeAfter']?ee(_0xc85e23['start']['nodeAfter'],_0x27066d):_0xc85e23;}function ee(_0x590400,_0x3c0497){const _0x40f00e=_0x3c0497['schema']['isObject'](_0x590400)||_0x3c0497['schema']['isSelectable'](_0x590400);return _0x3c0497['createRange'](_0x3c0497['createPositionAt'](_0x590400,'before'),_0x40f00e?_0x3c0497['createPositionAfter'](_0x590400):_0x3c0497['createPositionAt'](_0x590400,'end'));}function ie(_0x13f3b2,_0xdb1a8f,_0x5b7d2f,_0x158ee9){return!!ne(_0x13f3b2,_0xdb1a8f)&&_0x5b7d2f['end']['isEqual'](_0x158ee9['start']);}function ne(_0x2f83d4,_0x5aaf90){if(!_0x2f83d4['_isDataLoaded']||!_0x5aaf90['_isDataLoaded'])return!0x1;const _0x2c7f0f=new Set(Object['keys'](_0x2f83d4['attributes'])),_0xe8650e=new Set(Object['keys'](_0x5aaf90['attributes']));if(_0x2c7f0f['delete']('groupId'),_0xe8650e['delete']('groupId'),0x0==_0x2c7f0f['size']&&0x0==_0xe8650e['size'])return!0x0;if(_0x2c7f0f['size']!=_0xe8650e['size'])return!0x1;const _0x176055={..._0x2f83d4['attributes']},_0x453a25={..._0x5aaf90['attributes']};return delete _0x176055['groupId'],delete _0x453a25['groupId'],JSON['stringify'](_0x176055)==JSON['stringify'](_0x453a25);}function se(_0x47cfe8,_0x3b6561){const _0x326957=oe(_0x47cfe8['attributes']),_0x29a19e=oe(_0x3b6561);if(!_0x47cfe8['_isDataLoaded'])return!0x1;for(const _0x1310b6 of Object['keys'](_0x29a19e))if(!_0x389819(_0x326957[_0x1310b6],_0x29a19e[_0x1310b6]))return!0x1;return!0x0;}function oe(_0x222731){const _0xa16f6a=Object['assign']({},_0x222731);return delete _0xa16f6a['skipNestingCheck'],delete _0xa16f6a['tablePasteChainId'],_0xa16f6a;}function re(_0x33d8bd){return _0x33d8bd['split']('|')[0x0];}function ae(_0x5e28e2,_0x5891c9){for(const [_0xc6cd9,_0x5b0b95]of _0x5e28e2['markers']){const _0x1d474d=_0x3c2c3e['_createFromRanges'](_0x5b0b95['getTransformedByOperation'](_0x5891c9));_0x5e28e2['markers']['set'](_0xc6cd9,_0x1d474d);}}class ve extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x133706(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3d3789,_0x514442,_0x37119a,_0x11fd6f){super(),this['model']=_0x514442,this['view']=_0x37119a,this['commentThreadController']=_0x11fd6f,this['_editor']=_0x3d3789,this['_acceptCommand']=_0x3d3789['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3d3789['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4da3da,_0x50bace)=>_0x4da3da||_0x50bace),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3c0919=>_0x3c0919&&this['_editor']['model']['canEditAt'](_0x514442['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x535d3c=>_0x535d3c&&this['_editor']['model']['canEditAt'](_0x514442['getRanges']())),this['_pendingAction']=null,_0x37119a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x37119a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x37119a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x37119a,'change:isDirty',()=>{_0x37119a['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 _0x37e295=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x37e295);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0xaae3cc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xc597ec,_0x4471fd,_0x62e526,_0x2649a7){super(_0xc597ec),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x41d892(_0xc597ec,o(_0xc597ec,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4471fd['authoredAt']),this['bind']('authoredAt')['to'](_0x4471fd),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',_0x4471fd,'authoredAt',this,'descriptionParts',(_0x21a600,_0x1af03e,_0x54f0ac)=>{const _0x457a20=_0x54f0ac['map'](_0x287522=>ls(_0x287522['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x21a600-0x1,_0x4471fd['author']['name'],_0x1af03e?_0x2649a7['formatDateTime'](_0x1af03e):'',new DOMParser()['parseFromString'](_0x457a20,'text/html')['body']['textContent']]);}),this['focusables']=new _0x304110(),this['focusTracker']=new _0xfc8302(),this['keystrokes']=new _0x30fddb(),this['focusCycler']=new _0x155550({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2f6795=>_0x2f6795['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4471fd,this['_localUser']=_0x62e526,this['_config']=_0x2649a7,_0x2649a7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x19bae6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x248953}=this['_config'];this['commentsListView']=new _0x248953(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',_0x3e2706=>_0x3e2706+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x136b44,_0xdbdf49)=>_0x136b44||!!_0xdbdf49);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1725e9}=this['_config'],_0x3070c5=new _0x1725e9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x422ebe=_0x3070c5['commentInputView'];return _0x3070c5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x422ebe,'value',(_0x151e88,_0x476421,_0x455e87)=>!!_0x455e87||_0x151e88&&!_0x476421),_0x422ebe['on']('submit',(_0x28f7d4,_0x2fa131)=>{this['fire']('addComment',_0x2fa131),_0x422ebe['editor']['setData']('');}),_0x422ebe['on']('cancel',()=>this['focus']()),_0x422ebe['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3070c5;}}class xe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x18e8c2,_0x4f3fb5,_0x5a51c6,_0x53d173){super(_0x18e8c2,_0x4f3fb5,_0x5a51c6,_0x53d173),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x317c5a=>_0x317c5a&&_0x317c5a[0x0]?_0x317c5a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x307f4c,_0x178113)=>{let _0x5721b6='';for(const _0x448849 of _0x307f4c)_0x5721b6+='<p>'+ls(_0x448849['content'],_0x448849['color'])+'</p>';return _0x178113?_0x5721b6:_0x4e31bd(_0x5721b6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x53d173['SuggestionView'](_0x18e8c2,_0x4f3fb5,{'formatDateTime':_0x53d173['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 _0x4a2a60=this['bindTemplate'],_0x1c3082=[this['suggestionView']];return this['commentsListView']&&_0x1c3082['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1c3082['push'](this['commentThreadInputView']),_0x1c3082['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4a2a60['if']('isActive','ck-suggestion-wrapper--active'),_0x4a2a60['to']('type',_0x4fae11=>'ck-suggestion-'+_0x4fae11),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':_0x4a2a60['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1c3082};}['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 Ae extends _0xaae3cc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x13e26b,_0x3b4811,_0x3005ff){super(_0x13e26b),this['_model']=_0x3b4811,this['_config']=_0x3005ff,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3b4811),this['acceptButton']=this['_createButton'](o(_0x13e26b,'Accept\x20suggestion'),_0x2a3d51,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x13e26b,'Discard\x20suggestion'),_0x241d06,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x883051(_0x13e26b,_0x3b4811['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x304110([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xfc8302(),this['keystrokes']=new _0x30fddb(),this['focusCycler']=new _0x155550({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x29b049=>_0x29b049['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x17780c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x17780c['innerHTML']=this['description'],this['on']('change:description',(_0x49ca75,_0x43d418,_0x1ccb4a)=>{_0x17780c['innerHTML']=_0x1ccb4a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3ffe32=this['bindTemplate'],_0x311425=[{'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':_0x3ffe32['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3ffe32['to']('authoredAt',_0x1366cb=>this['_config']['formatDateTime'](_0x1366cb))}]}]},{'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']&&_0x311425['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':_0x311425}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x58edb2,_0x3c2b10,_0x55048c,_0x4f7825,_0x349bcb){const _0xe1d5b3=new _0x219ef3(this['locale']);return _0xe1d5b3['set']({'label':_0x58edb2,'icon':_0x3c2b10,'tooltip':!0x0,'tooltipPosition':_0x349bcb}),_0xe1d5b3['extendTemplate']({'attributes':{'class':_0x55048c}}),_0xe1d5b3['on']('execute',()=>{this['fire'](_0x4f7825,this['_model']['id']);}),_0xe1d5b3;}['_setupKeyboardNavigation'](){const _0x2110d0=this['element'];this['keystrokes']['listenTo'](_0x2110d0);for(const _0x489a9e of this['focusables'])this['focusTracker']['add'](_0x489a9e['element']),this['keystrokes']['listenTo'](_0x489a9e['element']);this['keystrokes']['set']('enter',(_0x418f90,_0x22cc88)=>{_0x2110d0===_0x418f90['target']&&(this['focusCycler']['focusFirst'](),_0x22cc88());}),this['keystrokes']['set']('esc',(_0x2493d2,_0x8f4b1f)=>{_0x2110d0!==_0x2493d2['target']&&(this['focus'](),_0x8f4b1f());});}}class u extends _0x150e1e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x49c4c1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bc60d){super(_0x2bc60d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2e5c8e=this['editor']['config'];_0x2e5c8e['define']('trackChanges.SuggestionThreadView',xe),_0x2e5c8e['define']('trackChanges.SuggestionView',Ae),_0x2e5c8e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2e5c8e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x6676c9,_0x1736d5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b675d,_0x9c8182]of this['_handleControllerBuffer']){const _0x118a68=this['_suggestionToController']['has'](_0x4b675d);_0x118a68||_0x9c8182?_0x118a68&&_0x9c8182&&this['_destroyController'](_0x4b675d):this['_initializeController'](_0x4b675d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x6676c9,_0x1736d5);}['init'](){const _0xd31302=this['editor'],_0x3591a1=_0xd31302['plugins']['get']('TrackChangesEditing'),_0xd79dca=_0xd31302['plugins']['get']('Annotations'),_0x33e84b=_0xd31302['plugins']['get']('EditorAnnotations'),_0x47b607=_0xd31302['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x33e84b['addSourceCollector'](()=>{const _0x456bd0=[];for(const [_0x220546,_0x7ff91a]of Array['from'](this['_suggestionToController'])){const _0x2c2017=_0x220546['getAllAdjacentSuggestions'](),_0x3b71bb=[];for(const _0x2d872b of _0x2c2017){if(!_0x2d872b['isInContent'])continue;if(_0x2d872b['isMultiRange']){_0x3b71bb['push'](..._0x2d872b['getRanges']());continue;}const _0x331c93=_0x2d872b['getFirstRange']();if(_0x3b71bb['length']>0x0){const _0x1af91d=_0x3b71bb[0x0]['getJoined'](_0x331c93);if(_0x1af91d){_0x3b71bb[0x0]=_0x1af91d;continue;}}_0x3b71bb['push'](_0x331c93);}_0x456bd0['push']([_0x7ff91a['view'],_0x3b71bb]);}return _0x456bd0;}),this['listenTo'](_0x3591a1,'suggestionLoaded',(_0x27d389,_0x56f43a)=>{this['listenTo'](_0x56f43a,'change:previous',(_0x194cab,_0xf6c591,_0x4b9381,_0x209f9c)=>{_0x56f43a['isInContent']&&(null==_0x4b9381?(this['_updateController'](_0x209f9c['head']),this['_handleSuggestionControllerDelayed'](_0x56f43a,!0x1)):(this['_updateController'](_0x4b9381['head']),null==_0x209f9c&&this['_handleSuggestionControllerDelayed'](_0x56f43a,!0x0)));}),null!==_0x56f43a['previous']?this['_updateController'](_0x56f43a['head']):this['_handleSuggestionControllerDelayed'](_0x56f43a,!0x1);}),this['listenTo'](_0x3591a1,'suggestionUnloaded',(_0x208de9,_0x25af63,_0x2ad712)=>{this['stopListening'](_0x25af63,'change:previous'),this['_handleControllerBuffer']['delete'](_0x25af63),this['_suggestionToController']['has'](_0x25af63)&&this['_destroyController'](_0x25af63),_0x2ad712&&this['_updateController'](_0x2ad712['head']);}),this['listenTo'](_0x3591a1,'suggestionChanged',(_0x29f48c,_0x217d30)=>{this['_updateController'](_0x217d30);}),this['listenTo'](_0xd79dca,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x47b607,'addComment',(_0x335ac2,{threadId:_0x137971,isFromAdapter:_0x9a941f})=>{if(_0x9a941f||!_0x3591a1['hasSuggestion'](_0x137971))return;const _0x558e63=_0x3591a1['getSuggestion'](_0x137971);this['_suggestionToController']['get'](_0x558e63)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x39997b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x304c29;for(const _0x24f0e8 in _0x39997b){const _0x5a3c13=_0x24f0e8,_0x589b1f=_0x39997b[_0x5a3c13];if('trackChangesLicenseKeyValid'==_0x589b1f||'trackChangesLicenseKeyInvalid'==_0x589b1f||'trackChangesLicenseKeyExpired'==_0x589b1f||'trackChangesLicenseKeyDomainLimit'==_0x589b1f||'trackChangesLicenseKeyNotAllowed'==_0x589b1f||'trackChangesLicenseKeyEvaluationLimit'==_0x589b1f||'trackChangesLicenseKeyTrialLimit'==_0x589b1f||'trackChangesLicenseKeyUsageLimit'==_0x589b1f){delete _0x39997b[_0x5a3c13],_0x304c29=_0x589b1f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x304c29&&_0x39997b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x304c29&&_0x39997b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x304c29&&_0x39997b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x304c29&&_0x39997b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x304c29&&_0x39997b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x304c29&&_0x39997b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x304c29&&_0x39997b['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xd0ea38){const _0x20af83=this['_suggestionToController']['get'](_0xd0ea38);if(!_0x20af83)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x20af83['view'])||null;}['getSuggestionForAnnotation'](_0x4e965a){const _0x1ce756=this['_viewToController']['get'](_0x4e965a['innerView']);return _0x1ce756?_0x1ce756['model']:null;}['_refreshActiveMarkers'](){const _0x153416=this['editor']['plugins']['get']('Annotations'),_0x33c202=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f0c68=Array['from'](_0x153416['activeAnnotations'],_0x3812b2=>_0x3812b2['innerView'])['filter'](_0x3344da=>this['_viewToController']['has'](_0x3344da)),_0x37513e=[];for(const _0x29c117 of _0x1f0c68){const _0x28b2b6=this['_viewToController']['get'](_0x29c117)['model']['getAllAdjacentSuggestions']();_0x37513e['push'](..._0x28b2b6['reduce']((_0x5adae5,_0x22f44e)=>[..._0x5adae5,..._0x22f44e['getMarkerNames']()],[]));}_0x33c202['activeMarkers']=_0x37513e;}['_addUIComponentsToFactory'](){const _0x4cd7fe=this['editor'],_0x1ffde9=_0x4cd7fe['locale'],_0x49bcea=o(_0x1ffde9,'Track\x20changes'),_0x44b0df=new _0x5b9dda([{'type':'switchbutton','model':new _0x4157ff({'withText':!0x0,'isToggleable':!0x0,'label':_0x49bcea,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4157ff({'withText':!0x0,'label':o(_0x1ffde9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4157ff({'withText':!0x0,'label':o(_0x1ffde9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4157ff({'withText':!0x0,'label':o(_0x1ffde9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4157ff({'withText':!0x0,'label':o(_0x1ffde9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4cd7fe['plugins']['has']('TrackChangesPreview')&&_0x44b0df['addMany']([{'type':'separator'},{'type':'button','model':new _0x4157ff({'withText':!0x0,'label':o(_0x1ffde9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4742b1 of _0x44b0df)if(Ee(_0x4742b1)){const _0x46a83a=_0x4cd7fe['commands']['get'](_0x4742b1['model']['commandName']);_0x4742b1['model']['bind']('isOn','isEnabled')['to'](_0x46a83a,'value','isEnabled');}_0x4cd7fe['ui']['componentFactory']['add']('trackChanges',_0x2c3a74=>this['_createToolbarButton'](_0x2c3a74,_0x44b0df,_0x49bcea)),_0x4cd7fe['ui']['componentFactory']['add']('menuBar:trackChanges',_0x42422e=>this['_createMenuBarMenu'](_0x42422e,_0x44b0df,_0x49bcea));}['_createToolbarButton'](_0x5594f6,_0x266ff4,_0x8f7893){const _0x361e7e=_0x207dba(_0x5594f6,_0x2a196d),_0xff6cf2=this['editor']['commands']['get']('trackChanges');_0x361e7e['buttonView']['set']({'tooltip':_0x8f7893,'label':_0x8f7893,'icon':_0x6b0c67}),_0x361e7e['buttonView']['bind']('isOn')['to'](_0xff6cf2,'value'),_0x361e7e['buttonView']['on']('execute',()=>{_0xff6cf2['execute'](),this['editor']['editing']['view']['focus']();}),_0x2a552b(_0x361e7e,_0x266ff4,{'role':'menu'});const _0x50243a=[];for(const _0x197aba of _0x266ff4)Ee(_0x197aba)&&_0x50243a['push'](this['editor']['commands']['get'](_0x197aba['model']['commandName']));const _0x299ef3=_0x361e7e['buttonView'];return _0x299ef3['actionView']['unbind']('isEnabled'),_0x299ef3['arrowView']['unbind']('isEnabled'),_0x299ef3['actionView']['bind']('isEnabled')['to'](_0xff6cf2,'isEnabled'),_0x299ef3['arrowView']['bind']('isEnabled')['toMany'](_0x50243a,'isEnabled',(..._0x217c7b)=>_0x217c7b['some'](_0x428f48=>_0x428f48)),_0x361e7e['on']('execute',_0x35c76d=>{this['editor']['execute'](_0x35c76d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x361e7e;}['_createMenuBarMenu'](_0x3ea2ab,_0x105186,_0x1da32c){const _0x5e31f4=new _0x326e1f(_0x3ea2ab),_0x1ed3cd=this['editor']['commands']['get']('trackChanges');_0x5e31f4['buttonView']['set']({'label':_0x1da32c,'icon':_0x6b0c67});const _0x300d10=new _0x39e73e(_0x3ea2ab);for(const _0x27358a of _0x105186){if('separator'==_0x27358a['type']){_0x300d10['items']['add'](new _0xdc7e27(_0x3ea2ab));continue;}const _0x51064c=new _0x48fd2b(_0x3ea2ab,_0x5e31f4),_0x1abaa4=new _0x10a6f6(_0x3ea2ab),_0x164e98=_0x27358a['model'];_0x1abaa4['bind'](...Object['keys'](_0x164e98))['to'](_0x164e98),_0x1abaa4['delegate']('execute')['to'](_0x5e31f4),_0x1abaa4['on']('execute',()=>{this['editor']['execute'](_0x164e98['commandName']),this['editor']['editing']['view']['focus']();}),_0x51064c['children']['add'](_0x1abaa4),_0x300d10['items']['add'](_0x51064c);}return _0x5e31f4['bind']('isEnabled')['to'](_0x1ed3cd,'isEnabled'),_0x5e31f4['panelView']['children']['add'](_0x300d10),_0x5e31f4;}['_initializeController'](_0x56f10f){const _0x505e1c=this['editor'],_0x5bc321=_0x505e1c['config'],_0x369019=_0x505e1c['plugins']['get']('Annotations'),_0x36e1b8=_0x505e1c['plugins']['get']('CommentsRepository'),_0x3d0bdf=_0x505e1c['plugins']['get']('EditorAnnotations'),_0x3fa302=_0x505e1c['plugins']['get'](_0x49c4c1)['me'],_0xe20635=_0x5bc321['get']('trackChanges')['SuggestionThreadView'],_0x5a6408=_0x5bc321['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3e15c7,CommentThreadInputView:_0x294125}=_0x505e1c['plugins']['get']('CommentsUI');let _0xd5cc4b,_0x56f519,_0x18715a;this['_annotationViews']['has'](_0x56f10f['id'])?(_0x56f519=this['_annotationViews']['get'](_0x56f10f['id']),_0xd5cc4b=_0x56f519['mainView']):(_0xd5cc4b=new _0xe20635(_0x505e1c['locale'],_0x56f10f,_0x3fa302,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5bc321['get']('comments.editorConfig'),'licenseKey':_0x5bc321['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5bc321['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5bc321['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5bc321['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x51d8fc(_0x5bc321['get']('locale'),_0x505e1c['locale']),'CommentView':_0x5bc321['get']('comments')['CommentView'],'CommentsListView':_0x3e15c7,'CommentThreadInputView':_0x294125,'SuggestionView':_0x5a6408}),_0xd5cc4b['suggestionView']['acceptButton']['on']('execute',()=>{_0x505e1c['editing']['view']['focus']();}),_0xd5cc4b['suggestionView']['discardButton']['on']('execute',()=>{_0x505e1c['editing']['view']['focus']();}),_0x56f519=_0x369019['createAnnotationView'](this['editor']['locale'],_0xd5cc4b),_0x56f519['bind']('isDirty')['to'](_0xd5cc4b,'isDirty'),_0x56f519['bind']('length')['to'](_0xd5cc4b),_0x56f519['bind']('type')['to'](_0xd5cc4b,'type',_0x5193c8=>'suggestion-'+_0x5193c8),_0xd5cc4b['on']('escape',()=>{_0x18715a['fire']('escape');}),this['_annotationViews']['set'](_0x56f10f['id'],_0x56f519));const _0x177a3b=_0x36e1b8['createCommentThreadController'](_0x56f10f['commentThread'],_0xd5cc4b),_0x3773d5=new ve(_0x505e1c,_0x56f10f,_0xd5cc4b,_0x177a3b),_0x5eab4a=_0x56f10f['getAllAdjacentSuggestions']()['filter'](_0x2748d0=>_0x2748d0['isInContent']);_0xd5cc4b['descriptionParts']=_0x505e1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5eab4a),this['_suggestionToController']['set'](_0x56f10f,_0x3773d5),this['_viewToController']['set'](_0xd5cc4b,_0x3773d5);const _0x1974a6=()=>{const _0x531d66=[],_0x126894=_0x56f10f['getAllAdjacentSuggestions']()['filter'](_0xcbcdb2=>_0xcbcdb2['isInContent']);for(const _0x2fc754 of _0x126894)_0x531d66['push'](..._0x2fc754['getMarkers']());return _0x5ce32e(_0x505e1c['editing'],_0x531d66);};_0x18715a=_0x369019['createAnnotation']({'view':_0x56f519,'target':_0x1974a6,'type':()=>'suggestion-'+_0x3773d5['view']['type'],'isVisible':!!_0x1974a6()}),_0x36e1b8['_bindAnnotationToEditors'](_0xd5cc4b,_0x18715a),_0x369019['add'](_0x18715a),_0x3d0bdf['registerAnnotation'](_0x18715a);}['_destroyController'](_0x21b639){const _0xa25ff1=this['editor']['plugins']['get']('CommentsRepository'),_0x4a9904=this['editor']['plugins']['get']('Annotations'),_0x28a0a2=this['_suggestionToController']['get'](_0x21b639),_0x5bbc7a=_0x28a0a2['view'],_0x5044da=_0x4a9904['getByInnerView'](_0x5bbc7a);_0xa25ff1['_unbindEditors'](_0x5bbc7a),_0x5044da&&_0x4a9904['remove'](_0x5044da),this['_suggestionToController']['delete'](_0x21b639),this['_viewToController']['delete'](_0x5bbc7a),_0x28a0a2['destroy']();}['_updateController'](_0x331dee){if(!_0x331dee['isInContent']||!this['_suggestionToController']['has'](_0x331dee))return;const _0x130f94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a62c4=this['_suggestionToController']['get'](_0x331dee),_0x46c27c=_0x331dee['getAllAdjacentSuggestions']();_0x5a62c4['view']['descriptionParts']=_0x130f94['descriptionFactory']['getDescriptions'](_0x46c27c);}['destroy'](){for(const _0x1d9137 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1d9137);for(const _0x478f3e of this['_annotationViews']['values']())_0x478f3e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ee(_0x5c5618){return'model'in _0x5c5618;}class Ke extends _0x150e1e{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x258f76){this['editor']['plugins']['get'](d)['adapter']=_0x258f76;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x44d91f){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x44d91f);}['getSuggestions']({skipNotAttached:_0x208894=!0x1,toJSON:_0x24b934=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x208894,'toJSON':_0x24b934});}['getSuggestion'](_0x3c5c87){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3c5c87);}}const p=['Pagination'];class me extends _0x150e1e{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4b9b65=this['editor'];if(_0x4b9b65['config']['define']('trackChangesData.editorCreator',_0x13a6d7=>{const _0x38ff93=_0x4b9b65['model']['document']['getRootNames']()['reduce']((_0x3c3ecd,_0x3b1c2b)=>(_0x3c3ecd[_0x3b1c2b]='',_0x3c3ecd),{});return _0x4b9b65['constructor']['create'](_0x38ff93,_0x13a6d7);}),'function'!=typeof _0x4b9b65['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c5060('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4b1c4e){return P(this['editor'],!0x0,_0x4b1c4e);}['getDataWithDiscardedSuggestions'](_0x9216d9){return P(this['editor'],!0x1,_0x9216d9);}}class Xe extends _0x150e1e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40b646){function _0x366be7(_0x34245b){return _0x34245b['map'](_0x12160c=>String['fromCharCode'](_0x12160c))['join']('');}super(_0x40b646),this['result']='end',_0x40b646[_0x366be7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x366be7([0x76,0x69,0x65,0x77])][_0x366be7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x366be7([0x61,0x75,0x74,0x6f]),_0x40b646[_0x366be7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x366be7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x366be7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x366be7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x366be7([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 Ye(_0x4f4192){return void 0x0!==_0x4f4192['getRootsAttributes'];}async function P(_0x719ce,_0x3aa1a1,_0x16e625){const _0x4013fb=_0x412471(_0x719ce,p);_0x4013fb['plugins']['push'](d,Xe),_0x4013fb['rootsAttributes']=Ye(_0x719ce)?_0x719ce['getRootsAttributes']():void 0x0;const _0x2a6aff=document['createDocumentFragment'](),_0x3c6ca3=_0x719ce['config']['get']('trackChangesData')['editorCreator'],_0x5f24cb=await _0x3c6ca3(_0x4013fb,()=>function(_0x43de24){const _0x22474c=document['createElement']('div');return _0x43de24['appendChild'](_0x22474c),_0x22474c;}(_0x2a6aff));!function(_0x22ed56,_0x37b91b){const _0x536371=_0x22ed56['model']['document']['getRootNames']()['reduce']((_0x15f4ab,_0x477cc7)=>(_0x15f4ab[_0x477cc7]=_0x22ed56['data']['get']({'rootName':_0x477cc7}),_0x15f4ab),{}),_0x31adba=_0x22ed56['plugins']['get']('Users')['users']['map'](_0x487e9d=>({'id':_0x487e9d['id'],'name':_0x487e9d['name']})),_0x2f0b0c=_0x22ed56['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x598e88=_0x22ed56['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4f4628=_0x37b91b['plugins']['get']('Users'),_0x5bb9ef=_0x37b91b['plugins']['get']('TrackChangesEditing'),_0x1c085d=_0x37b91b['plugins']['get']('CommentsRepository');for(const _0x17b3af of _0x1c085d['getCommentThreads']())_0x17b3af['remove']();for(const _0x43ca88 of _0x31adba)_0x4f4628['getUser'](_0x43ca88['id'])||_0x4f4628['addUser'](_0x43ca88);_0x4f4628['me']||_0x4f4628['useAnonymousUser']();for(const _0x581b73 of _0x598e88)_0x1c085d['addCommentThread'](_0x581b73);for(const _0x28391e of _0x2f0b0c)_0x5bb9ef['addSuggestionData'](_0x28391e);_0x37b91b['data']['set'](_0x536371);}(_0x719ce,_0x5f24cb),_0x5f24cb['execute'](_0x3aa1a1?'acceptAllSuggestions':'discardAllSuggestions');const _0x49b039=Ye(_0x5f24cb)?_0x5f24cb['getFullData'](_0x16e625):_0x5f24cb['data']['get'](_0x16e625);return await _0x5f24cb['destroy'](),_0x49b039;}class _e extends _0xaae3cc{['options'];constructor(_0x360a75,_0x365094){super(_0x360a75),this['options']=_0x365094,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'](_0x53635d,_0x4db6e3){if(!this['element'])return;const _0x4fe2d3=[];for(const [_0x285e48,_0x51fc8d]of _0x53635d){const _0x55246d=document['createElement']('div');_0x55246d['setAttribute']('data-ck-root-name',_0x285e48),_0x55246d['className']=_0x51fc8d['classes']+'\x20ck-track-changes-preview__root-container',_0x55246d['innerHTML']=_0x51fc8d['content'],_0x4fe2d3['push'](_0x55246d);}_0x4db6e3(this['element'],_0x4fe2d3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ue extends _0x4470c6{constructor(_0x5e442e){super(_0x5e442e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x31ba01=this['editor'],_0x5d0842=_0x31ba01['locale'],_0x2f5623=_0x31ba01['plugins']['get']('Dialog');let _0x48dba5;const _0x11b524=function(_0x23ac50){const _0x244737={};if('editables'in _0x23ac50['ui']['view']){for(const [_0x567930,_0x548b36]of Object['entries'](_0x23ac50['ui']['view']['editables']))_0x244737[_0x567930]=_0x548b36['element'];}else _0x244737[_0x23ac50['model']['document']['getRootNames']()[0x0]]=_0x23ac50['ui']['view']['editable']['element'];return _0x244737;}(_0x31ba01),_0x955c69=function(_0x3585d5){let _0x1d8e3c=0x0;for(const _0x5c0755 of Object['values'](_0x3585d5))_0x1d8e3c=Math['max'](_0x1d8e3c,_0x5c0755['getBoundingClientRect']()['width']);let _0x375204=0x0;for(const _0x45f3ae of Object['values'](_0x3585d5))_0x375204+=_0x45f3ae['getBoundingClientRect']()['height'];const _0x39fa5d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x30dbc4=Math['min'](_0x375204,_0x39fa5d);return{'width':_0x1d8e3c,'height':_0x30dbc4};}(_0x11b524);_0x2f5623['show']({'id':'finalContentPreview','title':o(_0x5d0842,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x5d0842,{'dialogRects':_0x955c69}),'onHide':()=>{_0x48dba5['detachFromDom']();},'onShow':()=>{_0x31ba01['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x576ca5=>{const _0x3f05dc=this['_standarizeRootsData'](_0x576ca5,_0x31ba01,_0x11b524);_0x2f5623['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3f05dc,_0x31ba01['config']['get']('trackChanges.preview.renderFunction'));}),_0x48dba5=new _0x2fd38e(_0x5d0842,[_0x2f5623['view']]),_0x48dba5['attachToDom'](),_0x48dba5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x31ba01['once']('destroy',()=>{_0x48dba5['detachFromDom']();});const _0x221af0=_0x2f5623['view']['headerView']['class'];_0x2f5623['view']['headerView']['class']=_0x221af0?_0x221af0+'\x20ck-reset_all':'ck-reset_all',_0x2f5623['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2f5623['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1a4757=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x59ffe5=_0x1a4757['previewMode'],_0x51cfae={};if('$labels'===_0x59ffe5){for(const _0x341393 of _0x1a4757['getMergeFieldsIds']())_0x51cfae[_0x341393]=_0x1a4757['getLabel'](_0x341393)||_0x341393;}else{const _0x3b941a='$defaultValues'===_0x59ffe5?_0x1a4757['getDefaultValues']():_0x1a4757['getDataSetValues'](_0x59ffe5,!0x0);for(const _0x37acf8 of Object['entries'](_0x3b941a)){const [_0x1594b7,_0x48149d]=_0x37acf8;_0x51cfae[_0x1594b7]=null!==_0x48149d?_0x48149d:_0x1a4757['getLabel'](_0x1594b7)||_0x1594b7;}}return{'mergeFieldsData':_0x51cfae};}['_standarizeRootsData'](_0x167c92,_0x5cf669,_0x523852){let _0x4e7062;if('string'==typeof _0x167c92){const _0x499e31=_0x5cf669['model']['document']['getRootNames']()[0x0];_0x4e7062={[_0x499e31]:_0x167c92};}else _0x4e7062=_0x167c92;const _0x4a61ef=this['_fixMediaEmbeds'](_0x4e7062,_0x5cf669),_0x5bcf89=function(_0x468410,_0x241027){for(const [_0x141f12,_0xfbb327]of _0x468410)_0xfbb327['classes']=_0x241027[_0x141f12]['classList']['value']['replace']('ck-focused','');return _0x468410;}(this['_sortRoots'](_0x5cf669)['reduce']((_0x37e92e,_0x221927)=>(_0x37e92e['push']([_0x221927,{'content':_0x4a61ef[_0x221927],'classes':''}]),_0x37e92e),[]),_0x523852);return _0x5bcf89;}['_fixMediaEmbeds'](_0xe0619c,_0x20da81){if(!_0x20da81['plugins']['has']('MediaEmbedEditing'))return _0xe0619c;const _0xa0b073=_0x20da81['plugins']['get']('MediaEmbedEditing');for(const [_0x5b5295,_0x4dc767]of Object['entries'](_0xe0619c)){const _0x3fedf9=document['createElement']('div');_0x3fedf9['innerHTML']=_0x4dc767,(_0x3fedf9['querySelectorAll']('figure.media')['forEach'](_0x35695d=>{const _0x4d9771=_0x35695d['querySelector']('oembed');if(_0x4d9771){const _0xa0229e=_0x4d9771['getAttribute']('url');if(_0xa0229e){const _0x382d54=_0xa0b073['registry']['getMediaViewElement'](new _0x1b32b1(_0x20da81['editing']['view']['document']),_0xa0229e,{'elementName':'','renderForEditingView':!0x0}),_0x20b94c=document['createElement']('div');_0x20b94c['classList']['add']('ck-media__wrapper'),_0x382d54['render'](_0x20b94c,_0x20da81['editing']['view']['domConverter']),_0x4d9771['replaceWith'](_0x20b94c);}}}),_0xe0619c[_0x5b5295]=_0x3fedf9['innerHTML']);}return _0xe0619c;}['_sortRoots'](_0x49eb9a){if(!function(_0x3c578a){return void 0x0!==_0x3c578a['getRootsAttributes'];}(_0x49eb9a))return _0x49eb9a['model']['document']['getRootNames']();const _0x3d83a1=[],_0xde9fa2=new Map();for(const _0x29780b of _0x49eb9a['model']['document']['getRootNames']()){const _0x15a502=_0x49eb9a['editing']['view']['getDomRoot'](_0x29780b)['getClientRects']()['item'](0x0);_0x3d83a1['push'](_0x29780b),_0xde9fa2['set'](_0x29780b,_0x15a502);}return _0x3d83a1['sort']((_0xfa88b5,_0x8d23ed)=>{const _0x3c59c2=_0xde9fa2['get'](_0xfa88b5),_0x34103d=_0xde9fa2['get'](_0x8d23ed);return _0x3c59c2['y']-_0x34103d['y']||_0x3c59c2['x']-_0x34103d['x'];}),_0x3d83a1;}}class Qe extends _0x150e1e{static get['requires'](){return[me,_0x2f023f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe2c4ee){super(_0xe2c4ee),_0xe2c4ee['commands']['add']('previewFinalContent',new ue(this['editor'])),_0xe2c4ee['config']['define']('trackChanges.preview.renderFunction',(_0x261d12,_0x56577e)=>{for(const _0x526e4e of _0x56577e)_0x261d12['appendChild'](_0x526e4e);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ue as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,xe as SuggestionThreadView,Ae as SuggestionView,Ke as TrackChanges,B as TrackChangesCommand,me as TrackChangesData,Xe as TrackChangesDataGetter,d as TrackChangesEditing,Qe as TrackChangesPreview,u as TrackChangesUI};
|