@ckeditor/ckeditor5-track-changes 47.7.1 → 47.7.2-alpha.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 +26 -26
- 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/footnotes.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
|
-
_0x4b9957(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4766ea,_0x35e134){super(),this['id']=_0x35e134['id'],this['type']=_0x35e134['type'],this['subType']=_0x35e134['subType']||null,this['author']=_0x35e134['author'],this['creator']=_0x35e134['creator']||_0x35e134['author'],this['isExternal']=Boolean(_0x35e134['attributes']&&_0x35e134['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x35e134['originalSuggestionId']||null,this['_model']=_0x4766ea,this['_onAccept']=_0x35e134['onAccept'],this['_onDiscard']=_0x35e134['onDiscard'],this['_onAttributesChange']=_0x35e134['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x35e134['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 _0xf07ee3=this;for(;_0xf07ee3['previous'];)_0xf07ee3=_0xf07ee3['previous'];return _0xf07ee3;}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'](_0x5a3a8b){this['_markerNames']['add'](_0x5a3a8b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x109307=>this['_model']['markers']['get'](_0x109307))['filter'](_0x23e2d1=>_0x23e2d1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x261df0=>{for(const _0x3024d6 of this['getMarkers']())_0x261df0['removeMarker'](_0x3024d6);}),this['_markerNames']['clear']();}['removeMarker'](_0x3d35af){this['_model']['change'](_0x28b654=>{_0x28b654['removeMarker'](_0x3d35af);}),this['_markerNames']['delete'](_0x3d35af);}['addRange'](_0x1b6bc4){const _0x4e2741='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4e2741),this['_model']['change'](_0x3b3a23=>{_0x3b3a23['addMarker'](_0x4e2741,{'range':_0x1b6bc4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4155fd){for(const _0x10e467 of this['getRanges']())if(_0x10e467['isIntersecting'](_0x4155fd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x44c2ff=>_0x44c2ff['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2195d6,_0x5654b9)=>[..._0x2195d6,..._0x5654b9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x49373e=this['getRanges']();if(0x1!=_0x49373e['length'])return null;const _0x2e8492=_0x49373e[0x0],_0x4ee7c3=_0x2e8492['start']['nodeAfter'],_0xfdfb4a=_0x2e8492['end']['nodeBefore'];return _0x4ee7c3 instanceof _0x266e0d?_0x4ee7c3!=_0xfdfb4a?null:_0x4ee7c3: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 _0x2756e8=[];let _0x54e8ae=this['head'];for(;_0x54e8ae;)_0x2756e8['push'](_0x54e8ae),_0x54e8ae=_0x54e8ae['next'];return _0x2756e8;}['setAttribute'](_0x250ef5,_0x46ba52){const _0x2a03ce=_0x1334ec(this['attributes']);_0xbd4a53(_0x2a03ce,_0x250ef5,_0x46ba52),_0x548ac7(_0x2a03ce,this['attributes'])||(this['attributes']=_0x2a03ce,this['_onAttributesChange'](_0x2a03ce));}['removeAttribute'](_0x2e7f5d){const _0x1be4a5=_0x1334ec(this['attributes']);_0x1aef69(_0x1be4a5,_0x2e7f5d),_0x548ac7(_0x1be4a5,this['attributes'])||(this['attributes']=_0x1be4a5,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 _0x1b5ac0()['substr'](0x1,0x5);}}function o(_0x7b6de6,_0x39e10a,_0x3e506c){const _0x51d9c5=_0x7b6de6['t'],t=_0x7b6de6['t'];switch(_0x39e10a){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',_0x3e506c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3e506c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3e506c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3e506c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3e506c);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',_0x3e506c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3e506c);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',_0x3e506c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3e506c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3e506c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3e506c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3e506c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3e506c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3e506c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3e506c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3e506c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3e506c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3e506c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3e506c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3e506c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3e506c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3e506c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3e506c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3e506c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3e506c);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'},_0x3e506c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3e506c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3e506c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3e506c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3e506c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3e506c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3e506c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3e506c);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'},_0x3e506c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3e506c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3e506c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3e506c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3e506c);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x3e506c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3e506c);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'},_0x3e506c);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x3e506c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3e506c);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'},_0x3e506c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3e506c);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'},_0x3e506c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3e506c);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3e506c);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3e506c);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3e506c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3e506c);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'},_0x3e506c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3e506c);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 _0x51d9c5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3e506c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x51d9c5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3e506c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3e506c);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'},_0x3e506c);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'},_0x3e506c);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'},_0x3e506c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x39e10a;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x38611a,_0xba3e63){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x38611a,this['_locale']=_0xba3e63;}['getDescriptions'](_0xaeceed){const _0x1b7a4b=[],_0x2c745a=new Set(),_0x1a963a=new Set();for(let _0x2fdd10=0x0;_0x2fdd10<_0xaeceed['length'];_0x2fdd10++){const _0x143f5c=_0xaeceed[_0x2fdd10];if(!_0x143f5c['isInContent'])continue;const _0x13b226=this['_handleCustomCallbackDescription'](_0x143f5c);if(_0x13b226){if(null!=_0x143f5c['subType']){if(_0x2c745a['has'](_0x143f5c['subType']))continue;_0x2c745a['add'](_0x143f5c['subType']);}_0x1b7a4b['push'](_0x13b226);}else{if('attribute'==_0x143f5c['type']){const _0x5cec0c=_0x143f5c['data']['key'];if(_0x1a963a['has'](_0x5cec0c))continue;_0x1a963a['add'](_0x143f5c['data']['key']),_0x5cec0c==m?this['_handleRenameSuggestionDescription'](_0x1b7a4b,_0x143f5c):this['_handleAttributeSuggestionDescription'](_0x1b7a4b,_0x143f5c);continue;}'insertion'!=_0x143f5c['type']&&'deletion'!=_0x143f5c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1b7a4b,_0x143f5c,_0xaeceed[_0x2fdd10+0x1]);}}return this['_resolveDescriptionItems'](_0x1b7a4b);}['registerDescriptionCallback'](_0xf3f46b){this['_customCallbacks']['push'](_0xf3f46b);}['registerElementLabel'](_0x474b94,_0xe2b997,_0x597781=_0x5bf0fe['normal']){'function'==typeof _0x474b94?_0x523eaf(this['_itemLabelsCallbacks'],{'matchingCallback':_0x474b94,'label':_0xe2b997,'priority':_0x597781}):this['_itemLabels']['set'](_0x474b94,_0xe2b997);}['registerAttributeLabel'](_0x300ad4,_0x4a6e0a){this['_attributeLabels']['set'](_0x300ad4,_0x4a6e0a);}['getItemLabel'](_0x1b8e57,_0x1707a6=0x1){let _0x1664d3;for(const _0x23f096 of this['_itemLabelsCallbacks'])if(_0x23f096['matchingCallback'](_0x1b8e57)){_0x1664d3=_0x23f096['label'];break;}return _0x1664d3||(_0x1664d3=this['_itemLabels']['get'](_0x1b8e57['name'])),_0x1664d3?_0x1664d3(_0x1707a6):0x1!==_0x1707a6?_0x1707a6+'\x20'+_0x1b8e57['name']+'s':''+_0x1b8e57['name'];}['_addDescriptionItems'](_0x2fe293,_0x161b0e){const _0x24b4c2=_0x161b0e['getFirstRange']()['getWalker'](),_0x399f52='insertion'==_0x161b0e['type']?'add':'remove';for(const _0x4bbc92 of _0x24b4c2){const _0x5af45f=_0x4bbc92['item'],_0x43ef17=_0x2fe293[_0x2fe293['length']-0x1];if(_0x5af45f['is']('$textProxy'))_0x43ef17&&_0x43ef17['type']['indexOf']('Container')>-0x1&&_0x2fe293['pop'](),_0x43ef17&&'text'==_0x43ef17['type']?_0x43ef17[_0x399f52]+=_0x5af45f['data']:_0x2fe293['push']({'type':'text','add':'add'==_0x399f52?_0x5af45f['data']:'','remove':'remove'==_0x399f52?_0x5af45f['data']:''});else{if(this['_schema']['isObject'](_0x5af45f)){const _0x4a203e=_0x5af45f;if(_0x43ef17&&_0x43ef17['type']['indexOf']('Container')>-0x1&&_0x2fe293['pop'](),'elementEnd'==_0x4bbc92['type'])continue;_0x43ef17&&_0x43ef17['type']==_0x399f52+'Object'&&_0x43ef17['element']['name']==_0x4a203e['name']?_0x43ef17['quantity']++:_0x2fe293['push']({'type':_0x399f52+'Object','element':_0x4a203e,'quantity':0x1}),_0x24b4c2['skip'](_0x105a5c=>!('elementEnd'==_0x105a5c['type']&&_0x105a5c['item']==_0x5af45f));}else{if(this['_schema']['checkChild'](_0x5af45f,'$text')||_0x5af45f['is']('element','softBreak')){const _0x5286e6=_0x5af45f;if('add'==_0x399f52&&'elementStart'==_0x4bbc92['type']||'remove'==_0x399f52&&'elementEnd'==_0x4bbc92['type'])continue;if(_0x43ef17&&-0x1==_0x43ef17['type']['indexOf']('Container')){'text'==_0x43ef17['type']&&(_0x43ef17[_0x399f52]+='\x0a');continue;}let _0x4ebb56;if(_0x4ebb56='add'==_0x399f52?_0x5286e6['nextSibling']&&!this['_schema']['isObject'](_0x5286e6['nextSibling'])?_0x5286e6['nextSibling']:null:_0x5286e6['previousSibling']&&!this['_schema']['isObject'](_0x5286e6['previousSibling'])?_0x5286e6['previousSibling']:null,_0x5286e6['isEmpty']||_0x4ebb56&&_0x4ebb56['isEmpty']){const _0x3109d9=_0x4ebb56&&_0x4ebb56['isEmpty']?_0x4ebb56:_0x5286e6;_0x43ef17&&_0x43ef17['type']==_0x399f52+'EmptyContainer'&&_0x43ef17['element']['name']==_0x3109d9['name']?_0x43ef17['quantity']++:_0x2fe293['push']({'type':_0x399f52+'EmptyContainer','element':_0x3109d9,'quantity':0x1});}else _0x2fe293['push']({'type':_0x399f52+'Container','element':_0x5286e6});}}}}}['_resolveDescriptionItems'](_0x4124c5){const _0x2cacd1=this['_locale'],_0x4d2705=[],_0x25e54c=[],_0x2c6f4b=[];for(const _0x54d407 of _0x4124c5)switch(_0x54d407['type']){case'text':if(_0x54d407['add']=_0x54d407['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x54d407['remove']=_0x54d407['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x54d407['add']&&''!=_0x54d407['remove']){_0x4d2705['push']({'type':'replace','content':o(_0x2cacd1,'REPLACE_TEXT',['\x22'+_0x54d407['remove']+'\x22','\x22'+_0x54d407['add']+'\x22'])});continue;}if(null!=_0x54d407['add']['match'](/^ +$/)){_0x4d2705['push']({'type':'insertion','content':o(_0x2cacd1,'*Insert:*\x20%0',o(_0x2cacd1,'ELEMENT_SPACE',_0x54d407['add']['length']))});continue;}if(null!=_0x54d407['remove']['match'](/^ +$/)){_0x4d2705['push']({'type':'deletion','content':o(_0x2cacd1,'*Remove:*\x20%0',o(_0x2cacd1,'ELEMENT_SPACE',_0x54d407['remove']['length']))});continue;}if(''!=_0x54d407['add']){_0x4d2705['push']({'type':'insertion','content':o(_0x2cacd1,'*Insert:*\x20%0','\x22'+_0x54d407['add']+'\x22')});continue;}_0x4d2705['push']({'type':'deletion','content':o(_0x2cacd1,'*Remove:*\x20%0','\x22'+_0x54d407['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4d2705['push']({'type':'insertion','content':o(_0x2cacd1,'*Insert:*\x20%0',this['getItemLabel'](_0x54d407['element'],_0x54d407['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4d2705['push']({'type':'deletion','content':o(_0x2cacd1,'*Remove:*\x20%0',this['getItemLabel'](_0x54d407['element'],_0x54d407['quantity']))});continue;case'addContainer':_0x4d2705['push']({'type':'insertion','content':o(_0x2cacd1,'*Split:*\x20%0',this['getItemLabel'](_0x54d407['element'],_0x54d407['quantity']))});continue;case'removeContainer':_0x4d2705['push']({'type':'deletion','content':o(_0x2cacd1,'*Merge:*\x20%0',this['getItemLabel'](_0x54d407['element'],_0x54d407['quantity']))});continue;case'addFormat':_0x25e54c['push'](_0x54d407['key']);continue;case'removeFormat':_0x2c6f4b['push'](_0x54d407['key']);continue;default:_0x4d2705['push'](_0x54d407);}if(_0x25e54c['length']){const _0x14375e=_0x25e54c['map'](_0x37303d=>this['_attributeLabels']['has'](_0x37303d)?this['_attributeLabels']['get'](_0x37303d):_0x37303d)['join'](',\x20');_0x4d2705['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x14375e)});}if(_0x2c6f4b['length']){const _0x2710be=_0x2c6f4b['map'](_0x187d53=>this['_attributeLabels']['has'](_0x187d53)?this['_attributeLabels']['get'](_0x187d53):_0x187d53)['join'](',\x20');_0x4d2705['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2710be)});}return _0x4d2705;}['_handleCustomCallbackDescription'](_0x583e1a){for(const _0x18308b of this['_customCallbacks']){const _0x547320=_0x18308b(_0x583e1a);if(_0x547320&&'type'in _0x547320)return _0x547320;}}['_handleAttributeSuggestionDescription'](_0x25a273,_0x26d085){const _0x5ae158=_0x26d085['data'],_0x1d6c42=void 0x0===_0x5ae158['newValue']?'removeFormat':'addFormat';_0x25a273['push']({'type':_0x1d6c42,'key':_0x5ae158['key']});}['_handleRenameSuggestionDescription'](_0x494b12,_0x20f47a){_0x494b12['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20f47a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x10cadd,_0x167927,_0x3acb20){if(this['_addDescriptionItems'](_0x10cadd,_0x167927),_0x3acb20&&_0x3acb20['getFirstRange']()&&!_0x167927['getFirstRange']()['end']['isEqual'](_0x3acb20['getFirstRange']()['start'])){const _0x3cf295=_0x10cadd[_0x10cadd['length']-0x1],_0x5f4ee9='insertion'==_0x167927['type']?'add':'remove';_0x3cf295&&'text'==_0x3cf295['type']&&(_0x3cf295[_0x5f4ee9]+='\x0a');}}}class U extends _0x1061bc{['afterInit'](){const _0x594880=this['editor'],_0x241e54=_0x594880['plugins']['get']('TrackChangesEditing');_0x594880['commands']['get']('showAIAssistant')&&_0x241e54['enableCommand']('showAIAssistant');}}class V extends _0x1061bc{['afterInit'](){const _0x46004e=this['editor'],_0xca1fd6=_0x46004e['plugins']['get']('TrackChangesEditing');_0x46004e['commands']['get']('toggleAi')&&_0xca1fd6['enableCommand']('toggleAi');}}class F extends _0x1061bc{['afterInit'](){const _0x88b6a9=this['editor'],_0x2e9070=_0x88b6a9['plugins']['get']('TrackChangesEditing');_0x88b6a9['commands']['get']('aiQuickAction')&&_0x2e9070['enableCommand']('aiQuickAction');}}class G extends _0x1061bc{['afterInit'](){const _0x2413a5=this['editor'],_0x34d4eb=_0x2413a5['locale'];if(!_0x2413a5['plugins']['has']('AlignmentEditing'))return;const _0x2ed402=_0x2413a5['plugins']['get']('TrackChangesEditing');_0x2ed402['enableDefaultAttributesIntegration']('alignment'),_0x2ed402['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x34d4eb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6b1961=this['editor'],_0x3c41e0=_0x6b1961['locale'];_0x6b1961['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x696d09=>{if('formatBlock'!=_0x696d09['type'])return;const {data:_0x459fa8}=_0x696d09;if(_0x459fa8&&'alignment'==_0x459fa8['commandName']){const _0x43fdb0=_0x459fa8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3c41e0,'*Format:*\x20%0',function(_0x46942c){switch(_0x46942c){case'left':return o(_0x3c41e0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3c41e0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3c41e0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3c41e0,'FORMAT_JUSTIFY_TEXT');}}(_0x43fdb0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x1061bc{['afterInit'](){const _0x5272aa=this['editor'],_0x430c53=_0x5272aa['plugins']['get']('TrackChangesEditing'),_0x5921a9=_0x5272aa['locale'];for(const _0x5c0841 of ti){if(!_0x5272aa['plugins']['has'](_0x5c0841))continue;const _0x30f1b5=_0x5c0841['slice'](0x0,-0x7)['toLowerCase'](),_0x2690d5='FORMAT_'+_0x30f1b5['toUpperCase']();_0x430c53['enableDefaultAttributesIntegration'](_0x30f1b5),_0x430c53['descriptionFactory']['registerAttributeLabel'](_0x30f1b5,o(_0x5921a9,_0x2690d5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e6a75=this['editor'],_0xe936c4=_0x2e6a75['locale'],_0x5b095=_0x2e6a75['plugins']['get']('TrackChangesEditing');function _0x1290b8(_0x53d3a9,_0x4db68c){_0x5b095['descriptionFactory']['registerDescriptionCallback'](_0x338ba8=>{if('formatInline'!=_0x338ba8['type'])return;const {data:_0x3c73e7}=_0x338ba8;return _0x3c73e7&&_0x3c73e7['commandName']===_0x53d3a9?_0x3c73e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe936c4,'*Format:*\x20%0',_0x4db68c)}:{'type':'format','content':o(_0xe936c4,'*Remove\x20format:*\x20%0',_0x4db68c)}:void 0x0;});}_0x1290b8('bold',o(_0xe936c4,'FORMAT_BOLD')),_0x1290b8('italic',o(_0xe936c4,'FORMAT_ITALIC')),_0x1290b8('underline',o(_0xe936c4,'FORMAT_UNDERLINE')),_0x1290b8('code',o(_0xe936c4,'FORMAT_CODE')),_0x1290b8('strikethrough',o(_0xe936c4,'FORMAT_STRIKETHROUGH')),_0x1290b8('subscript',o(_0xe936c4,'FORMAT_SUBSCRIPT')),_0x1290b8('superscript',o(_0xe936c4,'FORMAT_SUPERSCRIPT'));}}class J extends _0x1061bc{['afterInit'](){const _0x43636e=this['editor'],_0x148f0e=_0x43636e['locale'];if(!_0x43636e['plugins']['has']('BlockQuoteEditing'))return;const _0x2d725a=_0x43636e['plugins']['get']('TrackChangesEditing'),_0x18421b=this['editor']['commands']['get']('blockQuote');_0x2d725a['enableCommand']('blockQuote',(_0xe1303b,_0x520aba={})=>{const _0x58d17a=this['editor']['model']['document']['selection'],_0x5456cd=_0x520aba&&void 0x0!==_0x520aba['forceValue']?_0x520aba['forceValue']:!_0x18421b['value'];let _0x30235a=[];if(_0x5456cd){const _0x592e2a=Array['from'](_0x58d17a['getSelectedBlocks']())['filter'](_0x427ef9=>oo(_0x427ef9)||function(_0x2cfd49,_0x12dbdc){const _0x32be3b=_0x12dbdc['checkChild'](_0x2cfd49['parent'],'blockQuote'),_0x16e5bc=_0x12dbdc['checkChild'](['$root','blockQuote'],_0x2cfd49);return _0x32be3b&&_0x16e5bc;}(_0x427ef9,this['editor']['model']['schema']));_0x30235a=to(_0x592e2a,_0x43636e['model']);}else{const _0x16bcf1=Array['from'](_0x58d17a['getSelectedBlocks']())['filter'](_0x3ea894=>oo(_0x3ea894));_0x30235a=to(_0x16bcf1,_0x43636e['model']);}_0x43636e['model']['change'](()=>{for(const _0x3bfa74 of _0x30235a)_0x2d725a['markBlockFormat'](_0x3bfa74,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5456cd}]});});}),_0x2d725a['descriptionFactory']['registerDescriptionCallback'](_0x4aa8c4=>{const {data:_0x54c467}=_0x4aa8c4;if(_0x54c467&&'blockQuote'==_0x54c467['commandName']){const _0x1a8314=o(_0x148f0e,'ELEMENT_BLOCK_QUOTE');return _0x54c467['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x148f0e,'*Set\x20format:*\x20%0',_0x1a8314)}:{'type':'format','content':o(_0x148f0e,'*Remove\x20format:*\x20%0',_0x1a8314)};}});}}function oo(_0x1f638c){return'blockQuote'==_0x1f638c['parent']['name'];}class q extends _0x1061bc{['afterInit'](){const _0x461cca=this['editor'],_0x391825=_0x461cca['locale'],_0x5af556=_0x461cca['plugins']['get']('TrackChangesEditing');_0x461cca['plugins']['has']('BookmarkEditing')&&(_0x5af556['enableCommand']('insertBookmark'),_0x5af556['enableDefaultAttributesIntegration']('updateBookmark'),_0x5af556['descriptionFactory']['registerDescriptionCallback'](_0x21ae13=>{if('insertion'!=_0x21ae13['type']&&'deletion'!=_0x21ae13['type']&&'attribute'!=_0x21ae13['type'])return;const _0x1278f3=_0x21ae13['getContainedElement']();if(null==_0x1278f3)return;if(!_0x1278f3['is']('element','bookmark'))return;const _0x224edf=_0x1278f3['getAttribute']('bookmarkId');if('insertion'==_0x21ae13['type'])return{'type':'insertion','content':o(_0x391825,'*Insert:*\x20%0','\x22'+_0x224edf+'\x22\x20'+o(_0x391825,'ELEMENT_BOOKMARK'))};if('deletion'==_0x21ae13['type'])return{'type':'deletion','content':o(_0x391825,'*Remove:*\x20%0','\x22'+_0x224edf+'\x22\x20'+o(_0x391825,'ELEMENT_BOOKMARK'))};const {data:_0x537a9f}=_0x21ae13;if(!_0x537a9f||'bookmarkId'!=_0x537a9f['key'])return;return{'type':'format','content':o(_0x391825,'*Set\x20bookmark:*\x20%0','\x22'+_0x537a9f['newValue']+'\x22')};}));}}class z extends _0x1061bc{['afterInit'](){const _0x3f27a4=this['editor'];_0x3f27a4['plugins']['has']('CaseChange')&&(_0x3f27a4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f27a4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f27a4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x1061bc{['afterInit'](){const _0x1bcbfa=this['editor'];_0x1bcbfa['commands']['get']('ckbox')&&_0x1bcbfa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x1061bc{['afterInit'](){const _0x52b95e=this['editor'];if(!_0x52b95e['plugins']['has']('CodeBlock'))return;const _0x592686=_0x52b95e['plugins']['get']('TrackChangesEditing'),_0x53e929=_0x52b95e['locale'],_0x274129=_0x52b95e['config']['get']('codeBlock')['languages'],_0x4fc095=_0x52b95e['commands']['get']('codeBlock');_0x592686['enableCommand']('indentCodeBlock'),_0x592686['enableCommand']('outdentCodeBlock'),_0x592686['enableCommand']('codeBlock',(_0x17e5ad,_0x2d9d47={})=>{const _0x442773=_0x52b95e['model'],_0x3a91f8=_0x52b95e['model']['document']['selection'],_0x4c7475=_0x2d9d47&&void 0x0!==_0x2d9d47['forceValue']?_0x2d9d47['forceValue']:!_0x4fc095['value'];let _0x26eea3;_0x2d9d47['language']||(_0x2d9d47['language']=_0x274129[0x0]['language']),_0x26eea3=_0x4c7475?Array['from'](_0x3a91f8['getSelectedBlocks']())['filter'](_0x4ee146=>co(_0x4ee146)||function(_0x4a67ce,_0x80fde3){if(_0x4a67ce['is']('rootElement')||_0x80fde3['isLimit'](_0x4a67ce))return!0x1;return _0x80fde3['checkChild'](_0x4a67ce['parent'],'codeBlock');}(_0x4ee146,_0x442773['schema'])):Array['from'](_0x3a91f8['getSelectedBlocks']())['filter'](_0x28bca7=>co(_0x28bca7));const _0x2b679f=to(_0x26eea3,_0x442773);_0x442773['change'](()=>{for(const _0xee7a38 of _0x2b679f)_0x592686['markBlockFormat'](_0xee7a38,{'commandName':'codeBlock','commandParams':[{..._0x2d9d47,'forceValue':_0x4c7475}],'formatGroupId':'blockName'});});}),(_0x592686['descriptionFactory']['registerElementLabel']('codeBlock',_0x540dbd=>o(_0x53e929,'ELEMENT_CODE_BLOCK',_0x540dbd)),_0x592686['descriptionFactory']['registerDescriptionCallback'](_0x42404b=>{if('formatBlock'!=_0x42404b['type'])return;const _0x20afa4=_0x53e929['t'],{data:_0x398606}=_0x42404b;if(!_0x398606||'codeBlock'!=_0x398606['commandName'])return;const _0x1c2378=_0x398606['commandParams'][0x0]['language'],_0x13a598=_0x20afa4(_0x274129['find'](_0x270550=>_0x270550['language']===_0x1c2378)['label'])['toLowerCase']();return _0x398606['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53e929,'*Set\x20format:*\x20%0',o(_0x53e929,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x13a598+')')}:{'type':'format','content':o(_0x53e929,'*Remove\x20format:*\x20%0',o(_0x53e929,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xaee235){return'codeBlock'==_0xaee235['name'];}class H extends _0x1061bc{['afterInit'](){const _0x4dc508=this['editor'];if(!_0x4dc508['plugins']['has']('CommentsEditing'))return;_0x4dc508['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x1061bc{static get['requires'](){return[_0x3ac569];}['init'](){const _0x1bf0d7=this['editor'],_0x167325=_0x1bf0d7['plugins']['get']('TrackChangesEditing');_0x167325['enableCommand']('delete');const _0x4f1a3e=_0x1bf0d7['commands']['get']('deleteForward');_0x167325['enableCommand']('deleteForward',(_0x3dd399,_0x1c4c0d={})=>{const _0x3571eb=_0x1bf0d7['model']['createSelection'](_0x1bf0d7['model']['document']['selection']);_0x3571eb['isCollapsed']&&_0x1bf0d7['model']['modifySelection'](_0x3571eb,{'direction':'forward','unit':_0x1c4c0d['unit']});const _0x4e5d03=_0x3571eb['getFirstRange'](),_0x326587=_0x321f06['fromRange'](_0x4e5d03);let _0x3f3bae;_0x3dd399(_0x1c4c0d),_0x3f3bae='$graveyard'==_0x326587['root']['rootName']?_0x1bf0d7['model']['createRange'](_0x4e5d03['start']):_0x1bf0d7['model']['createRange'](_0x326587['start'],_0x326587['end']),_0x326587['detach'](),_0x1bf0d7['model']['enqueueChange'](_0x4f1a3e['buffer']['batch'],_0x5902ea=>{_0x4f1a3e['buffer']['lock'](),_0x5902ea['setSelection'](_0x5902ea['createRange'](_0x3f3bae['end'])),_0x4f1a3e['buffer']['unlock']();});});}}class X extends _0x1061bc{['afterInit'](){const _0x32d5c9=this['editor'];if(!_0x32d5c9['plugins']['has']('ListEditing'))return;const _0x37cfa6=_0x32d5c9['locale'],_0x2d68a5=_0x32d5c9['plugins']['get']('TrackChangesEditing'),_0x3be88a=_0x32d5c9['plugins']['has']('TodoListEditing'),_0x52efe2=!!_0x32d5c9['config']['get']('list.multiBlock');function _0x3070fc(_0xa559cb){return{'type':'format','content':''+o(_0x37cfa6,'*Set\x20format:*\x20%0',_0xa559cb)};}function _0x2476f4(_0x27c711){return{'type':'format','content':''+o(_0x37cfa6,'*Remove\x20format:*\x20%0',_0x27c711)};}_0x2d68a5['enableDefaultAttributesIntegration']('numberedList'),_0x2d68a5['enableDefaultAttributesIntegration']('bulletedList'),_0x2d68a5['enableDefaultAttributesIntegration']('customNumberedList'),_0x2d68a5['enableDefaultAttributesIntegration']('customBulletedList'),_0x2d68a5['enableDefaultAttributesIntegration']('indentList'),_0x2d68a5['enableDefaultAttributesIntegration']('outdentList'),_0x2d68a5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2d68a5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x52efe2&&(_0x2d68a5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2d68a5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3be88a&&(_0x2d68a5['enableDefaultAttributesIntegration']('todoList'),_0x2d68a5['enableDefaultAttributesIntegration']('checkTodoList'),_0x2d68a5['descriptionFactory']['registerDescriptionCallback'](_0x29e9e6=>{const {data:_0xdaaf36}=_0x29e9e6;if(_0xdaaf36&&'todoListChecked'==_0xdaaf36['key'])return{'type':'format','content':_0xdaaf36['newValue']?o(_0x37cfa6,'*Check\x20item*'):o(_0x37cfa6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2a1c69=>{if(_0x2a1c69['batch']['isUndo'])return!0x1;let _0x1fa08a=!0x1;const _0x220db8=_0x2d68a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a95e4=>'todoListChecked'===_0x2d68a5['_getAttributeKey'](_0x2a95e4));for(const _0x22b251 of _0x220db8){'todo'!=_0x22b251['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2d68a5['_findSuggestions'](_0x22b251['getFirstRange'](),'attribute')['find'](_0x482dd2=>'listType'===_0x2d68a5['_getAttributeKey'](_0x482dd2['suggestion']))||(_0x2a1c69['removeMarker'](_0x22b251['getFirstMarker']()),_0x1fa08a=!0x0));}return _0x1fa08a;})),_0x2d68a5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x37cfa6,'FORMAT_INDENT'));const _0x2af562={'type':'format','content':''};_0x2d68a5['descriptionFactory']['registerDescriptionCallback'](_0x4244f0=>{const {data:_0x36249b}=_0x4244f0;if(!_0x36249b||'listType'!=_0x36249b['key'])return;let _0x356b97=_0x4244f0['head'];for(;_0x356b97;){if(_0x356b97['data']&&(('listStyle'==_0x356b97['data']['key']||'listMarkerStyle'==_0x356b97['data']['key'])&&(_0x356b97['data']['newValue']&&'default'!=_0x356b97['data']['newValue']||'default'!=_0x356b97['data']['oldValue']&&!_0x36249b['newValue'])||!_0x52efe2&&_0x356b97['data']['key']==m))return _0x2af562;_0x356b97=_0x356b97['next'];}if(null==_0x36249b['newValue'])switch(_0x36249b['oldValue']){case'bulleted':return _0x2476f4(o(_0x37cfa6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2476f4(o(_0x37cfa6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2476f4(o(_0x37cfa6,'ELEMENT_TODO_LIST'));}switch(_0x36249b['newValue']){case'bulleted':return _0x3070fc(o(_0x37cfa6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3070fc(o(_0x37cfa6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3070fc(o(_0x37cfa6,'ELEMENT_TODO_LIST'));}}),_0x2d68a5['descriptionFactory']['registerDescriptionCallback'](_0x320d1e=>{const {data:_0x34a7b5}=_0x320d1e;if(_0x34a7b5&&'listIndent'==_0x34a7b5['key'])return null==_0x34a7b5['newValue']||null==_0x34a7b5['oldValue']&&0x0==_0x34a7b5['newValue']?_0x2af562:void 0x0;}),_0x2d68a5['descriptionFactory']['registerDescriptionCallback'](_0x24ced6=>{if('attribute'!=_0x24ced6['type'])return;const {data:_0xed0e60}=_0x24ced6;if(!_0xed0e60||'listItemId'!=_0xed0e60['key'])return;const _0x3f839b=Te(_0x24ced6);return'newValue'==_0x3f839b?{'type':'format','content':o(_0x37cfa6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3f839b?{'type':'format','content':o(_0x37cfa6,'*Split:*\x20list\x20item')}:_0x2af562;}),_0x32d5c9['model']['document']['registerPostFixer'](_0x1969d1=>this['listItemIdFixer'](_0x1969d1)),_0x32d5c9['model']['document']['registerPostFixer'](_0x18e78b=>this['noTrackChangesFixer'](_0x18e78b)),_0x32d5c9['model']['document']['on']('change:data',(_0x655384,_0x4c557f)=>{if(_0x4c557f['isUndo']||!_0x4c557f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x377d38){if(_0x377d38['batch']['isUndo']||!_0x377d38['batch']['isLocal'])return!0x1;let _0x26e7b9=!0x1;const _0x30e4a8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22c6d5=>_0x22c6d5['data']&&'listItemId'==_0x22c6d5['data']['key'])['filter'](_0x3ad3a7=>_0x3ad3a7['data']['newValue']&&_0x3ad3a7['data']['oldValue']);for(const _0x1daf52 of _0x30e4a8)Te(_0x1daf52)||(_0x377d38['removeMarker'](_0x1daf52['getFirstMarker']()),_0x26e7b9=!0x0);return _0x26e7b9;}['noTrackChangesFixer'](_0x1dd892){if(_0x1dd892['batch']['isUndo']||!_0x1dd892['batch']['isLocal'])return!0x1;const _0x3342e2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3342e2['trackChangesCommand']['value'])return!0x1;let _0x3f1342=!0x1;const _0x3fb5be=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x15eb78=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1281a4=>'attribute'==_0x1281a4['type'])['filter'](_0x1224a9=>_0x3fb5be['includes'](_0x1224a9['attributeKey']));if(0x0==_0x15eb78['length'])return _0x3f1342;for(const _0x2c97a6 of _0x15eb78){const _0x3bf52e=_0x3342e2['_findSuggestions'](_0x2c97a6['range'],'attribute')['filter'](_0x3b2e57=>!_0x3b2e57['meta']['isNextTo'])['map'](_0x11719b=>_0x11719b['suggestion'])['filter'](_0x3b8cef=>{const _0x45149e=_0x3342e2['_getAttributeKey'](_0x3b8cef);return _0x3fb5be['includes'](_0x45149e);});if(_0x3bf52e['length']){for(const _0x414f22 of _0x3bf52e)_0x1dd892['removeMarker'](_0x414f22['getFirstMarker']());_0x3f1342=!0x0;}}return _0x3f1342;}['assureChains'](){const _0x45ce42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15e3ae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x185c5c;const _0x257408=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5613be=>{if(_0x5613be['data']['oldRange']||!_0x5613be['data']['newRange'])return null;if(!_0x5613be['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x162e0c}=_0x45ce42['_splitMarkerName'](_0x5613be['name']);if(!_0x45ce42['hasSuggestion'](_0x162e0c))return null;const _0x5de303=_0x45ce42['getSuggestion'](_0x162e0c);return _0x15e3ae['includes'](_0x5de303['data']['key']);})['map'](_0x21c17f=>{const {id:_0xa6f23b}=_0x45ce42['_splitMarkerName'](_0x21c17f['name']),_0x4ef793=_0x45ce42['getSuggestion'](_0xa6f23b);return _0x185c5c=_0x4ef793['attributes']['groupId'],_0x4ef793['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x257408['size'])return;const _0xa81e6c=_0x45ce42['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35e01c=>'attribute'==_0x35e01c['type']&&_0x35e01c['data']&&_0x15e3ae['includes'](_0x35e01c['data']['key'])&&_0x35e01c['attributes']['groupId']!=_0x185c5c)['map'](_0x451d94=>({'listItem':_0x451d94['getFirstRange']()['start']['nodeAfter'],'groupId':_0x451d94['attributes']['groupId']})),_0x920653=new Set();for(const {groupId:_0x32ba07,listItem:_0x1a2ac0}of _0xa81e6c)_0x257408['has'](_0x1a2ac0)&&_0x920653['add'](_0x32ba07);for(const _0x49a267 of _0x45ce42['getSuggestions']())_0x920653['has'](_0x49a267['attributes']['groupId'])&&_0x49a267['setAttribute']('groupId',_0x185c5c);}['_supportLegacySuggestions'](){const _0x2389fa=this['editor'],_0x188d83=_0x2389fa['locale'],_0x57f26f=_0x2389fa['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x57f26f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3a0d07,_0x14f61b){const _0x2c9b8d=[];for(let _0x3696c6 of _0x3a0d07)_0x3696c6['start']['nodeAfter']===_0x3696c6['end']['parent']&&(_0x3696c6=_0x2389fa['model']['createRange'](_0x2389fa['model']['createPositionAt'](_0x3696c6['start']['nodeAfter'],0x0))),_0x2c9b8d['push'](_0x3696c6);_0x2389fa['model']['change'](_0x234b56=>{const _0x3fe22a=_0x2389fa['model']['document']['selection'],_0x4ef35c=Array['from'](_0x3fe22a['getRanges']())['map'](_0x38b3bb=>_0x321f06['fromRange'](_0x38b3bb));_0x234b56['setSelection'](_0x2c9b8d),_0x2389fa['commands']['get'](_0x14f61b['commandName'])['refresh'](),_0x14f61b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2389fa['execute'](_0x14f61b['commandName'],..._0x14f61b['commandParams']),_0x234b56['setSelection'](_0x4ef35c);for(const _0x27089d of _0x4ef35c)_0x27089d['detach']();});}),_0x57f26f['descriptionFactory']['registerElementLabel'](function(_0x45eca){const _0xcb705b=!_0x2389fa['model']['schema']['isObject'](_0x45eca),_0x497926=_0x45eca['previousSibling'],_0x363b82=_0x45eca['nextSibling'],_0x4e48ad=_0x45eca['getAttribute']('listItemId'),_0x5282ee=!_0x497926||_0x497926['getAttribute']('listItemId')!==_0x4e48ad,_0x2dfcc2=!_0x363b82||_0x363b82['getAttribute']('listItemId')!==_0x4e48ad;return _0xcb705b&&Boolean(_0x4e48ad)&&_0x5282ee&&_0x2dfcc2;},_0x18834d=>o(_0x188d83,'ELEMENT_LIST_ITEM',_0x18834d));}['_registerLegacyDescription'](){const _0x44f0a3=this['editor'],_0x218573=_0x44f0a3['locale'];function _0x2c3883(_0x34275b){const _0x279273=_0x44f0a3['commands']['get']('bulletedList')['value'],_0x196bc4=_0x44f0a3['commands']['get']('numberedList')['value'];return'numberedList'===_0x34275b?_0x279273:_0x196bc4;}_0x44f0a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf95cee){if('formatBlock'!=_0xf95cee['type'])return;const {data:_0x1ae3bc}=_0xf95cee;if(!_0x1ae3bc)return;let _0x2af739,_0x56374c,_0x5e5c43,_0x5f5dc4;switch(_0x1ae3bc['commandName']){case'bulletedList':_0x5e5c43=_0x1ae3bc['commandParams'][0x0]['forceValue'],_0x5f5dc4=_0x2c3883(_0x1ae3bc['commandName']),_0x2af739=_0x5e5c43?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5f5dc4&&_0x44f0a3['config']['get']('list.multiBlock')||(_0x2af739='*Change\x20to:*\x20%0'),_0x56374c={'type':'format','content':o(_0x218573,_0x2af739,o(_0x218573,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5e5c43=_0x1ae3bc['commandParams'][0x0]['forceValue'],_0x5f5dc4=_0x2c3883(_0x1ae3bc['commandName']),_0x2af739=_0x5e5c43?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5f5dc4&&_0x44f0a3['config']['get']('list.multiBlock')||(_0x2af739='*Change\x20to:*\x20%0'),_0x56374c={'type':'format','content':o(_0x218573,_0x2af739,o(_0x218573,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2af739='*Indent:*\x20%0',_0x56374c={'type':'format','content':o(_0x218573,_0x2af739,o(_0x218573,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2af739=function(_0x23d2d2){const _0x4ed7d4=_0x23d2d2['getFirstRange']();let _0xf8b89=_0x4ed7d4['start']['nodeAfter'];for(;_0xf8b89&&_0x4ed7d4['containsItem'](_0xf8b89);){if(_0xf8b89['getAttribute']('listIndent')>0x0)return!0x1;_0xf8b89=_0xf8b89['nextSibling'];}return!0x0;}(_0xf95cee)?o(_0x218573,'*Format:*\x20remove\x20from\x20%0',o(_0x218573,function(_0x1ddd4b){return'ELEMENT_'+_0x1ddd4b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf95cee))):o(_0x218573,'*Outdent:*\x20%0',o(_0x218573,'ELEMENT_LIST_ITEM')),_0x56374c={'type':'format','content':_0x2af739};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ae3bc['multipleBlocks']&&(_0x2af739='*Merge:*\x20%0',_0x56374c={'type':'deletion','content':o(_0x218573,_0x2af739,o(_0x218573,'ELEMENT_LIST_ITEM'))});}return _0x56374c;});}}function Te(_0x303bf3){let _0x220e2f=_0x303bf3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x220e2f;){const _0x186dd9=_0x220e2f['getAttribute']('listItemId');if(!_0x186dd9)return!0x1;if(_0x186dd9==_0x303bf3['data']['newValue'])return'newValue';if(_0x186dd9==_0x303bf3['data']['oldValue'])return'oldValue';_0x220e2f=_0x220e2f['previousSibling'];}return!0x1;}class Y extends _0x1061bc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x27e818=this['editor']['config']['get']('list.properties'),_0x521a08=this['editor']['plugins']['get']('TrackChangesEditing');_0x27e818['styles']&&_0x521a08['enableDefaultAttributesIntegration']('listStyle'),_0x27e818['reversed']&&_0x521a08['enableDefaultAttributesIntegration']('listReversed'),_0x27e818['startIndex']&&_0x521a08['enableDefaultAttributesIntegration']('listStart');const _0x50c584={'type':'format','content':''};_0x521a08['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2f2814=this['editor']['locale'];_0x521a08['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2f2814,'FORMAT_LIST_REVERSED')),_0x521a08['descriptionFactory']['registerDescriptionCallback'](_0x364e71=>{const {data:_0x5c3dc7}=_0x364e71;if(_0x5c3dc7&&'listReversed'==_0x5c3dc7['key'])return null==_0x5c3dc7['newValue']||0x0==_0x5c3dc7['newValue']&&null==_0x5c3dc7['oldValue']?_0x50c584:void 0x0;}),_0x521a08['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2f2814,'FORMAT_LIST_START')),_0x521a08['descriptionFactory']['registerDescriptionCallback'](_0x313ac4=>{const {data:_0xddf29f}=_0x313ac4;if(_0xddf29f&&'listStart'==_0xddf29f['key'])return null==_0xddf29f['newValue']||0x1==_0xddf29f['newValue']&&null==_0xddf29f['oldValue']?_0x50c584:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x34badd=>{if(_0x34badd['batch']['isUndo'])return!0x1;let _0x50769a=!0x1;const _0x98bde4=_0x521a08['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b9aaa=>{const _0x2d4ac0=_0x521a08['_getAttributeKey'](_0x1b9aaa);return'listStart'==_0x2d4ac0||'listReversed'==_0x2d4ac0;});for(const _0x4a127a of _0x98bde4){const _0x1e6ddc=_0x4a127a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1e6ddc||'customNumbered'==_0x1e6ddc)continue;_0x521a08['_findSuggestions'](_0x4a127a['getFirstRange'](),'attribute')['find'](_0x1ad7fb=>'listType'==_0x521a08['_getAttributeKey'](_0x1ad7fb['suggestion']))||(_0x34badd['removeMarker'](_0x4a127a['getFirstMarker']()),_0x50769a=!0x0);}return _0x50769a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x9c30d4){const _0x488afa=this['editor']['locale'],{data:_0x965587}=_0x9c30d4,_0x491593={'type':'format','content':''};if(!_0x965587||'listStyle'!=_0x965587['key'])return;if(!_0x965587['oldValue'])return'default'==_0x965587['newValue']?_0x491593:{'type':'format','content':''+o(_0x488afa,'*Set\x20format:*\x20%0',o(_0x488afa,this['_getTranslationKeyForListStyle'](_0x965587['newValue'])))};if(!_0x965587['newValue']){if('default'==_0x965587['oldValue'])return _0x491593;let _0x137cf2=_0x9c30d4['head'];for(;_0x137cf2;){if(_0x137cf2['data']&&'listType'==_0x137cf2['data']['key']&&_0x137cf2['data']['newValue'])return _0x491593;_0x137cf2=_0x137cf2['next'];}return{'type':'format','content':''+o(_0x488afa,'*Remove\x20format:*\x20%0',o(_0x488afa,this['_getTranslationKeyForListStyle'](_0x965587['oldValue'])))};}if('default'!=_0x965587['newValue'])return{'type':'format','content':''+o(_0x488afa,'*Set\x20format:*\x20%0',o(_0x488afa,this['_getTranslationKeyForListStyle'](_0x965587['newValue'])))};let _0x45265d=_0x9c30d4['head'];for(;_0x45265d;){if(_0x45265d['data']&&'listType'==_0x45265d['data']['key']&&_0x45265d['data']['newValue']&&_0x45265d['data']['oldValue'])return _0x491593;_0x45265d=_0x45265d['next'];}return{'type':'format','content':o(_0x488afa,'*Set\x20format:*\x20%0',o(_0x488afa,'ELEMENT_'+_0x9c30d4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x6d88d=this['editor'],_0x9b3013=_0x6d88d['locale'];_0x6d88d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31d687=>{if('formatBlock'!=_0x31d687['type'])return;const {data:_0x599c01}=_0x31d687;if(!_0x599c01)return;let _0xad9fce,_0x50bf6a;switch(_0x599c01['commandName']){case'listStyle':_0xad9fce='*Change\x20to:*\x20%0',_0x50bf6a={'type':'format','content':o(_0x9b3013,_0xad9fce,o(_0x9b3013,this['_getTranslationKeyForListStyle'](_0x599c01['commandParams'][0x0]['type'])))};break;case'listReversed':_0xad9fce=_0x599c01['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x50bf6a={'type':'format','content':o(_0x9b3013,_0xad9fce)};break;case'listStart':_0xad9fce='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x50bf6a={'type':'format','content':o(_0x9b3013,_0xad9fce,_0x599c01['commandParams'][0x0]['startIndex'])};}return _0x50bf6a;});}['_getTranslationKeyForListStyle'](_0x21d71a){return'ELEMENT_'+function(_0x24e291){if(ye['includes'](_0x24e291))return'bulleted';if(Se['includes'](_0x24e291))return'numbered';return null;}(_0x21d71a)['toUpperCase']()+'_LIST_'+_0x21d71a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x1061bc{['afterInit'](){const _0x1b9597=this['editor'];_0x1b9597['commands']['get']('emoji')&&_0x1b9597['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x1061bc{static get['requires'](){return[_0x561d33];}['init'](){const _0x56441d=this['editor'],_0x5a61fe=_0x56441d['plugins']['get']('TrackChangesEditing'),_0x53cb82=_0x56441d['commands']['get']('enter');_0x5a61fe['enableCommand']('enter',()=>{_0x56441d['model']['change'](_0x255c0a=>{const _0x46d75f=_0x56441d['model']['document']['selection'],_0x588146=_0x46d75f['getFirstPosition'](),_0x3b14d8=_0x321f06['fromRange'](_0x46d75f['getFirstRange']());if(_0x53cb82['enterBlock'](_0x255c0a)){const _0x4b31ee=_0x56441d['model']['createPositionAt'](_0x588146['parent']['nextSibling'],0x0),_0x201265=_0x255c0a['createRange'](_0x588146,_0x4b31ee);_0x5a61fe['markInsertion'](_0x201265);}else _0x255c0a['setSelection'](_0x255c0a['createRange'](_0x3b14d8['end']));_0x3b14d8['detach'](),_0x53cb82['fire']('afterExecute',{'writer':_0x255c0a});});});}}class nt extends _0x1061bc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x36b997=this['editor']['plugins']['get']('TrackChangesEditing');_0x36b997['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x36b997['enableCommand']('findNext'),_0x36b997['enableCommand']('findPrevious'),_0x36b997['enableCommand']('replace'),_0x36b997['enableCommand']('replaceAll');}['handleFindCommand'](_0x6513ec,_0x574d74,_0x4f77bf={}){const _0xf5796a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x6513ec(_0x31c4fa=>{let _0x3e436d=('string'==typeof _0x574d74?_0xf5796a['findByTextCallback'](_0x574d74,_0x4f77bf):_0x574d74)(_0x31c4fa);Array['isArray'](_0x3e436d)&&(_0x3e436d={'results':_0x3e436d,'searchText':'string'==typeof _0x574d74?_0x574d74:''});const _0x1a68fe=_0x3e436d['results']['filter'](_0x4a73d3=>!0x1===this['_isInDeletionRange'](_0x4a73d3,_0x31c4fa['item']));return{..._0x3e436d,'results':_0x1a68fe};},_0x4f77bf);}['_isInDeletionRange'](_0x5c6eec,_0x190184){const _0x271558=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x190184,_0x5c6eec['start']),this['editor']['model']['createPositionAt'](_0x190184,_0x5c6eec['end']));for(const _0x3d593b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x271558['getIntersection'](_0x3d593b['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x1061bc{['afterInit'](){const _0xa62409=this['editor']['locale'],_0x21e6d9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x475c75,commandName:_0x28f56c}of eo)this['editor']['plugins']['has'](_0x475c75)&&_0x21e6d9['enableDefaultAttributesIntegration'](_0x28f56c);_0x21e6d9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xa62409,'FORMAT_FONT_SIZE')),_0x21e6d9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xa62409,'FORMAT_FONT_FAMILY')),_0x21e6d9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xa62409,'FORMAT_FONT_COLOR')),_0x21e6d9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xa62409,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ca60c=this['editor'],_0xe5634b=_0x5ca60c['locale'];_0x5ca60c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52273f=>{const _0x68cb48=_0xe5634b['t'];if('formatInline'!=_0x52273f['type'])return;const {data:_0x382489}=_0x52273f;if(null!=_0x382489){if('fontSize'==_0x382489['commandName']){const _0x845789=_0x382489['commandParams'][0x0]['value'];if(_0x845789){const _0x7656cf=_0x68cb48(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2ed5ec=>_0x2ed5ec['model']==_0x845789)['title'])['toLowerCase']();return{'type':'format','content':o(_0xe5634b,'*Set\x20font\x20size:*\x20%0',_0x7656cf)};}return{'type':'format','content':o(_0xe5634b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x382489['commandName']){const _0x5d844f=_0x382489['commandParams'][0x0]['value'];return _0x5d844f?{'type':'format','content':o(_0xe5634b,'*Set\x20font\x20family:*\x20%0',_0x5d844f)}:{'type':'format','content':o(_0xe5634b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x382489['commandName']){const _0x65815b=_0x382489['commandParams'][0x0]['value'];if(_0x65815b){const _0x17ffc0=_0x3280d2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4d59f9=>_0x4d59f9['model']==_0x65815b);let _0x4b1c1c=_0x65815b,_0x220b6c='';return _0x17ffc0&&(_0x4b1c1c=_0x17ffc0['label'],_0x220b6c=_0x68cb48(_0x4b1c1c)['toLowerCase']()),{'type':'format','content':o(_0xe5634b,'*Set\x20font\x20color:*\x20%0',_0x220b6c)['trim'](),'color':{'value':_0x65815b,'title':_0x220b6c||_0x4b1c1c}};}return{'type':'format','content':o(_0xe5634b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x382489['commandName']){const _0x18dd96=_0x382489['commandParams'][0x0]['value'];if(_0x18dd96){const _0x6ce635=_0x3280d2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2c9df9=>_0x2c9df9['model']==_0x18dd96);let _0x261b96=_0x18dd96,_0x525178='';return _0x6ce635&&(_0x261b96=_0x6ce635['label'],_0x525178=_0x68cb48(_0x261b96)['toLowerCase']()),{'type':'format','content':o(_0xe5634b,'*Set\x20font\x20background\x20color:*\x20%0',_0x525178)['trim'](),'color':{'value':_0x18dd96,'title':_0x525178||_0x261b96}};}return{'type':'format','content':o(_0xe5634b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x1061bc{['afterInit'](){const {plugins:_0x2e2613}=this['editor'];_0x2e2613['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2e2613['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x4a38b5,plugins:_0x5c37aa,commands:_0x29cf2d}=this['editor'],_0x25a372=_0x5c37aa['get']('TrackChangesEditing');_0x29cf2d['get']('footnotesStyle')&&_0x25a372['enableDefaultAttributesIntegration']('footnotesStyle'),_0x29cf2d['get']('footnotesStart')&&_0x25a372['enableDefaultAttributesIntegration']('footnotesStart'),_0x25a372['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x4a38b5,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x25a372['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x4a38b5,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xa9e968=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x32c7f9,commands:_0x3db690}=this['editor'];_0x3db690['get']('insertFootnote')&&_0xa9e968['enableCommand']('insertFootnote'),_0xa9e968['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3b3e88=>o(_0x32c7f9,'ELEMENT_FOOTNOTE_REF',_0x3b3e88)),_0xa9e968['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x536e2c=>o(_0x32c7f9,'ELEMENT_FOOTNOTE_DEFINITION',_0x536e2c)),_0xa9e968['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4ea910=>o(_0x32c7f9,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4ea910));}}class st extends _0x1061bc{['afterInit'](){const _0x195397=this['editor'],_0x275d11=_0x195397['plugins']['get']('TrackChangesEditing'),_0x1d1d67=_0x195397['commands']['get']('copyFormat'),_0x4b474e=_0x195397['commands']['get']('pasteFormat');_0x1d1d67&&_0x4b474e&&(_0x275d11['enableDefaultAttributesIntegration']('pasteFormat'),_0x275d11['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x7aa7a=this['editor'],_0xa98157=_0x7aa7a['locale'];_0x7aa7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b0d6c=>{if('formatBlock'!=_0x5b0d6c['type']&&'formatInline'!=_0x5b0d6c['type'])return;const {data:_0x45bce6}=_0x5b0d6c;if(_0x45bce6&&'pasteFormat'===_0x45bce6['commandName']){const _0x171f1a=[],_0x5dcf17=_0x45bce6['commandParams'][0x0];for(const [_0x5a43eb,_0x46fc72]of Object['entries'](_0x5dcf17))_0x171f1a['push'](ro(_0x7aa7a,_0x5a43eb,_0x46fc72));return _0x171f1a['length']?{'type':'format','content':o(_0xa98157,'*Set\x20format\x20to:*\x20%0',_0x171f1a['join'](',\x20'))}:{'type':'format','content':o(_0xa98157,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x273e3a,_0x13527a,_0x80f5c1){const _0x5aba7a=_0x273e3a['locale']['t'],_0xae1c32=_0x13527a['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b726b=_0x5aba7a(_0xae1c32['charAt'](0x0)['toUpperCase']()+_0xae1c32['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x80f5c1)return _0x2b726b;if('fontColor'===_0x13527a||'fontBackgroundColor'===_0x13527a){const _0x3d7490=_0x3280d2(_0x273e3a['config']['get']('fontColor.colors'))['find'](_0x40e706=>_0x40e706['model']==_0x80f5c1);return _0x2b726b+'\x20('+(_0x3d7490?_0x5aba7a(_0x3d7490['label'])['toLowerCase']():_0x80f5c1)+')';}if('fontSize'===_0x13527a&&isNaN(parseFloat(_0x80f5c1))){const _0x47a6ac=_0x273e3a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x273e3a['config']['get']('fontSize.options'))['find'](_0x186e1d=>_0x186e1d['model']==_0x80f5c1);return _0x2b726b+'\x20('+(_0x47a6ac?_0x5aba7a(_0x47a6ac['title'])['toLowerCase']():_0x80f5c1)+')';}return _0x2b726b+'\x20('+_0x80f5c1+')';}class ot extends _0x1061bc{['_headingOptions'];['afterInit'](){const _0x55b324=this['editor'];if(!_0x55b324['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x55b324['config']['get']('heading.options');const _0x3bcce0=_0x55b324['locale'],_0x2495f3=_0x55b324['plugins']['get']('TrackChangesEditing');_0x2495f3['enableDefaultAttributesIntegration']('heading');for(const _0x731bf4 of this['_headingOptions'])'paragraph'!=_0x731bf4['model']&&_0x2495f3['descriptionFactory']['registerElementLabel'](_0x731bf4['model'],_0x347cf1=>{const _0x1d2b3d=this['_getHeadingLevel'](_0x731bf4['model']);return null!==_0x1d2b3d?_0x3aeb9f(_0x347cf1,_0x1d2b3d):_0x116f3e(_0x347cf1,_0x731bf4['title']);});function _0x3aeb9f(_0xf967da,_0x3cd33c){return o(_0x3bcce0,'ELEMENT_HEADING',[_0xf967da,_0x3cd33c]);}function _0x116f3e(_0x32f4b9,_0x19d182){return o(_0x3bcce0,'ELEMENT_HEADING_CUSTOM',[_0x32f4b9,_0x19d182]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb1f7af=this['editor'],_0x40ef20=_0xb1f7af['locale'];function _0x18e69a(_0x33c53a,_0x3773bf){return o(_0x40ef20,'ELEMENT_HEADING_CUSTOM',[_0x33c53a,_0x3773bf]);}_0xb1f7af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fe5db=>{if('formatBlock'!=_0x4fe5db['type'])return;const {data:_0x56fe95}=_0x4fe5db;if(_0x56fe95&&'heading'==_0x56fe95['commandName']){const _0x20f306=_0x56fe95['commandParams'][0x0]['value'],_0x5a9344=this['_getHeadingLevel'](_0x20f306);if(null!==_0x5a9344)return{'type':'format','content':o(_0x40ef20,'*Change\x20to:*\x20%0',(_0x1fc353=0x1,_0x190104=_0x5a9344,o(_0x40ef20,'ELEMENT_HEADING',[_0x1fc353,_0x190104])))};const _0x239a1d=this['_headingOptions']['find'](_0x4b8735=>_0x4b8735['model']===_0x20f306)['title'];return{'type':'format','content':o(_0x40ef20,'*Change\x20to:*\x20%0',_0x18e69a(0x1,_0x239a1d))};}var _0x1fc353,_0x190104;});}['_getHeadingLevel'](_0x25624b){const _0x1eafea=_0x25624b['match'](/^heading(\d+)/);if(_0x1eafea)return _0x1eafea[0x1];const _0x77b374=this['_headingOptions']?.['find'](_0x2fb45c=>_0x2fb45c['model']==_0x25624b);if(_0x77b374&&_0x77b374['view']){const _0x4f5479=_0x77b374['view'],_0x22a977=(_0x4f5479['name']??_0x4f5479)['match'](/^h(\d+)/);if(_0x22a977)return _0x22a977[0x1];}return null;}}class rt extends _0x1061bc{['afterInit'](){const _0x2db1cf=this['editor'];if(!_0x2db1cf['plugins']['has']('HighlightEditing'))return;const _0x4f0f28=_0x2db1cf['plugins']['get']('TrackChangesEditing'),_0x1726f2=_0x2db1cf['locale'];_0x4f0f28['enableDefaultAttributesIntegration']('highlight'),_0x4f0f28['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1726f2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x324411=this['editor'],_0x1e1714=_0x324411['locale'];_0x324411['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d228f=>{if('formatInline'!=_0x4d228f['type'])return;const {data:_0x59314f}=_0x4d228f;if(_0x59314f&&'highlight'==_0x59314f['commandName']){const _0x136be4=_0x1e1714['t'],_0x34bc7a=_0x59314f['commandParams'][0x0]['value'];if(_0x34bc7a){const _0x50d1c1=_0x324411['config']['get']('highlight.options')['find'](_0xea9ad9=>_0xea9ad9['model']==_0x34bc7a),_0x95e698=_0x136be4(_0x50d1c1['title'])['toLowerCase']();return{'type':'format','content':o(_0x1e1714,'*Set\x20highlight:*\x20%0',_0x95e698),'color':{'value':_0x50d1c1['color'],'title':_0x50d1c1['title']}};}return{'type':'format','content':o(_0x1e1714,'*Remove\x20highlight*',o(_0x1e1714,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x1061bc{['afterInit'](){const _0xe72781=this['editor'];if(!_0xe72781['plugins']['has']('HorizontalLineEditing'))return;_0xe72781['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x306477=_0xe72781['plugins']['get']('TrackChangesEditing'),_0x36c07d=_0xe72781['locale'];_0x306477['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e519c=>o(_0x36c07d,'ELEMENT_HORIZONTAL_LINE',_0x5e519c));}}class ct extends _0x1061bc{['afterInit'](){const _0x422cf5=this['editor'];if(!_0x422cf5['plugins']['has']('HtmlEmbed'))return;const _0x21acf1=_0x422cf5['plugins']['get']('TrackChangesEditing'),_0x2c06b7=_0x422cf5['locale'];_0x21acf1['descriptionFactory']['registerElementLabel']('rawHtml',_0xced593=>o(_0x2c06b7,'ELEMENT_HTML_EMBED',_0xced593)),_0x21acf1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x21acf1['descriptionFactory']['registerDescriptionCallback'](_0x43d395=>{if('attribute'!=_0x43d395['type'])return;const {data:_0x3f2034}=_0x43d395;if(_0x3f2034&&'value'==_0x3f2034['key']&&_0x43d395['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1ba38=o(_0x2c06b7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2c06b7,'*Change\x20%0\x20content*',_0x1ba38)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x208981=this['editor'],_0x4b71e7=_0x208981['locale'];_0x208981['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a600c=>{if('formatBlock'!=_0x2a600c['type'])return;const {data:_0x566a88}=_0x2a600c;if(_0x566a88&&'htmlEmbed'==_0x566a88['commandName']){const _0x15beed=o(_0x4b71e7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4b71e7,'*Change\x20%0\x20content*',_0x15beed)};}});}}class ut extends _0x1061bc{['afterInit'](){const _0x2dcbca=this['editor'];if(!_0x2dcbca['plugins']['has']('ImageEditing'))return;const _0x35b496=_0x2dcbca['plugins']['get']('TrackChangesEditing'),_0x94c456=_0x2dcbca['plugins']['get']('ImageUtils'),_0x4a377a=_0x2dcbca['locale'];_0x35b496['enableCommand']('insertImage'),_0x35b496['descriptionFactory']['registerElementLabel']('imageBlock',_0x584393=>o(_0x4a377a,'ELEMENT_IMAGE',_0x584393)),_0x35b496['descriptionFactory']['registerElementLabel']('imageInline',_0xac7914=>o(_0x4a377a,'ELEMENT_INLINE_IMAGE',_0xac7914)),_0x35b496['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4a377a,'ELEMENT_CAPTION')),_0x2dcbca['plugins']['has']('ImageUploadEditing')&&_0x35b496['enableCommand']('uploadImage'),_0x2dcbca['plugins']['has']('ImageBlockEditing')&&_0x2dcbca['plugins']['has']('ImageInlineEditing')&&(_0x35b496['enableCommand']('imageTypeInline',(_0x565453,_0x47a56f)=>{const _0x58e7ee=_0x94c456['getClosestSelectedImageElement'](_0x2dcbca['model']['document']['selection']);_0x2dcbca['model']['change'](()=>{_0x35b496['markBlockFormat'](_0x58e7ee,{'commandName':'imageTypeInline','commandParams':[_0x47a56f]},[],'convertBlockImageToInline');});}),_0x35b496['enableCommand']('imageTypeBlock',(_0xb25287,_0x10fa99)=>{_0x2dcbca['model']['change'](_0x3b660c=>{let _0x2603e0=_0x94c456['getClosestSelectedImageElement'](_0x2dcbca['model']['document']['selection']),_0x526c08=_0x3b660c['createRangeOn'](_0x2603e0);const _0x38358b=_0x25b560['fromPosition'](_0x526c08['start'],'toPrevious'),_0x2bb27b=_0x25b560['fromPosition'](_0x526c08['end'],'toNext');_0x35b496['forceDefaultExecution'](()=>_0xb25287(_0x10fa99)),_0x2603e0=_0x94c456['getClosestSelectedImageElement'](_0x2dcbca['model']['document']['selection']),_0x526c08=_0x3b660c['createRangeOn'](_0x2603e0);const _0x2edf73=_0x3b660c['createRange'](_0x38358b,_0x2bb27b);_0x38358b['detach'](),_0x2bb27b['detach'](),_0x35b496['markBlockFormat'](_0x2603e0,{'commandName':'imageTypeInline','commandParams':[_0x10fa99]},[],'convertInlineImageToBlock'),_0x2edf73['start']['isBefore'](_0x526c08['start'])&&_0x35b496['markInsertion'](_0x3b660c['createRange'](_0x2edf73['start'],_0x526c08['start']),'convertInlineImageToBlock'),_0x526c08['end']['isBefore'](_0x2edf73['end'])&&_0x35b496['markInsertion'](_0x3b660c['createRange'](_0x526c08['end'],_0x2edf73['end']),'convertInlineImageToBlock');});}),_0x35b496['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x35b496['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x35b496['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x35b496['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x35b496['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x35b496['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x35ce8e])=>{const _0x283861=_0x35b496['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x35fef8=_0x35ce8e['start'],_0x31aa36=_0x35ce8e['end'];const _0x282350=_0x2dcbca['model']['schema']['getNearestSelectionRange'](_0x35fef8,'backward'),_0x20b8e5=_0x2dcbca['model']['schema']['getNearestSelectionRange'](_0x31aa36,'forward');_0x282350['isCollapsed']&&(_0x35fef8=_0x282350['start']),_0x20b8e5['isCollapsed']&&(_0x31aa36=_0x20b8e5['end']),_0x283861([_0x2dcbca['model']['createRange'](_0x35fef8,_0x31aa36)]);}),_0x35b496['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2bc889),_0x35b496['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2bc889)),_0x2dcbca['plugins']['has']('ImageCaptionEditing')&&(_0x35b496['enableCommand']('toggleImageCaption',(_0x49f5fa,_0x1c83ce)=>{const _0x5f2e12=_0x2dcbca['plugins']['get']('ImageCaptionUtils');let _0x14f343=_0x94c456['getClosestSelectedImageElement'](_0x2dcbca['model']['document']['selection']),_0x376861=_0x5f2e12['getCaptionFromImageModelElement'](_0x14f343);_0x2dcbca['model']['change'](()=>{if(_0x376861)return void _0x35b496['markDeletion'](_0x2dcbca['model']['createRangeOn'](_0x376861));const _0x38d0b1=_0x94c456['isBlockImage'](_0x14f343);_0x49f5fa(_0x1c83ce),_0x14f343=_0x94c456['getClosestSelectedImageElement'](_0x2dcbca['model']['document']['selection']),_0x376861=_0x5f2e12['getCaptionFromImageModelElement'](_0x14f343),_0x35b496['markInsertion'](_0x2dcbca['model']['createRangeOn'](_0x376861),_0x38d0b1?null:'imageCaption');});}),_0x35b496['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2bc889));const _0x3beb8f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x410e16(_0x3f7ce1,_0x166b06){const _0x2a7032=_0x3beb8f['findIndex'](({type:_0x2954da,subType:_0x191fa5})=>_0x3f7ce1['type']==_0x2954da&&_0x3f7ce1['subType']==_0x191fa5),_0x2bdd4b=_0x3beb8f['findIndex'](({type:_0x556e81,subType:_0x53a995})=>_0x166b06['type']==_0x556e81&&_0x166b06['subType']==_0x53a995);if(_0x2a7032<0x0||_0x2bdd4b<0x0)return!0x1;const _0x400e8d=_0x3f7ce1['getFirstRange'](),_0x24510e=_0x166b06['getFirstRange']();if((0x0==_0x2a7032||0x1==_0x2a7032)&&0x2==_0x2bdd4b&&_0x400e8d['isIntersecting'](_0x24510e))return!0x0;if(0x2==_0x2a7032&&0x3==_0x2bdd4b){const _0x55e554=_0x35b496['_findSuggestions'](_0x400e8d,'insertion')['filter'](({suggestion:_0x19b9ca,meta:_0x5de02b})=>_0x5de02b['isOwn']&&'convertInlineImageToBlock'==_0x19b9ca['subType']);if(_0x55e554['length']>0x1&&_0x24510e['end']['isEqual'](_0x400e8d['start']))return!0x0;if(0x1==_0x55e554['length']&&(_0x400e8d['start']['isEqual'](_0x24510e['end'])||_0x400e8d['end']['isEqual'](_0x24510e['start'])))return!0x0;}if(0x3==_0x2a7032&&0x3==_0x2bdd4b&&_0x400e8d['start']['isBefore'](_0x24510e['start'])){const _0x4f8497=_0x400e8d['end']['nodeAfter'],_0x3d9d5c=_0x24510e['start']['nodeBefore'];return _0x94c456['isBlockImage'](_0x4f8497)&&_0x4f8497===_0x3d9d5c;}return!0x1;}function _0x2bc889(_0x4be083,_0x3c47db){return _0x410e16(_0x4be083,_0x3c47db)?[_0x4be083,_0x3c47db]:_0x410e16(_0x3c47db,_0x4be083)?[_0x3c47db,_0x4be083]:null;}_0x2dcbca['plugins']['has']('ImageResize')&&(_0x35b496['enableDefaultAttributesIntegration']('resizeImage'),_0x35b496['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4a377a,'FORMAT_IMAGE_SIZE'))),_0x2dcbca['plugins']['has']('ImageTextAlternativeEditing')&&_0x35b496['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2dcbca['plugins']['has']('PictureEditing')&&_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x33e56e=>{if('attribute'!=_0x33e56e['type'])return;const {data:_0x17e2dd}=_0x33e56e;return _0x17e2dd&&'sources'==_0x17e2dd['key']?{'type':'format','content':''}:void 0x0;}),_0x2dcbca['plugins']['has']('ImageSizeAttributes')&&_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x2807aa=>{if('attribute'!=_0x2807aa['type'])return;const {data:_0x2f7021}=_0x2807aa;return!_0x2f7021||'width'!=_0x2f7021['key']&&'height'!=_0x2f7021['key']?void 0x0:{'type':'format','content':''};}),_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x3c15b5=>{if(!!_0x3beb8f['find'](({type:_0x3b7c24,subType:_0x10c7f7})=>_0x3c15b5['type']==_0x3b7c24&&_0x3c15b5['subType']==_0x10c7f7))return _0x3c15b5['previous']?{}:void 0x0;}),_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x120a76=>{if('insertion'==_0x120a76['type']||'deletion'==_0x120a76['type']){const _0x4e1ab9=_0x120a76['getContainedElement']();if(_0x4e1ab9&&_0x4e1ab9['is']('element','caption'))return{'type':'insertion'==_0x120a76['type']?'addObject':'removeObject','element':_0x4e1ab9,'quantity':0x1};}}),_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x4eaec6=>'formatBlock'==_0x4eaec6['type']&&'convertInlineImageToBlock'==_0x4eaec6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4eaec6['type']&&'convertBlockImageToInline'==_0x4eaec6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x5ce3f4=>{if('attribute'!=_0x5ce3f4['type'])return;const {data:_0x1fefd2}=_0x5ce3f4;if(!_0x1fefd2||'alt'!=_0x1fefd2['key'])return;const _0x4162e5=_0x1fefd2['newValue'];return _0x4162e5?{'type':'format','content':o(_0x4a377a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4162e5+'\x22')}:{'type':'format','content':o(_0x4a377a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22dac6=this['editor'],_0x364c16=_0x22dac6['locale'];_0x22dac6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d0bc7=>{if('formatBlock'!=_0x3d0bc7['type']&&'formatInline'!=_0x3d0bc7['type'])return;const {data:_0x3d6eb0}=_0x3d0bc7;if(_0x3d6eb0){if('imageTextAlternative'==_0x3d6eb0['commandName']){const _0x259a5a=_0x3d6eb0['commandParams'][0x0]['newValue'];return _0x259a5a?{'type':'format','content':o(_0x364c16,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x259a5a+'\x22')}:{'type':'format','content':o(_0x364c16,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d6eb0['commandName']){const _0x5be60a=_0x3d6eb0['commandParams'][0x0]['width'];return _0x5be60a?{'type':'format','content':o(_0x364c16,'*Set\x20image\x20width:*\x20%0',_0x5be60a)}:{'type':'format','content':o(_0x364c16,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x1061bc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x35fb10=this['editor']['locale'],_0x12b484=this['editor']['plugins']['get']('TrackChangesEditing');_0x12b484['enableDefaultAttributesIntegration']('replaceImageSource'),_0x12b484['descriptionFactory']['registerDescriptionCallback'](_0x5ec995=>{if('attribute'!=_0x5ec995['type'])return;const {data:_0x2bb3cf}=_0x5ec995;return _0x2bb3cf&&'src'==_0x2bb3cf['key']?_0x2bb3cf['newValue']&&_0x2bb3cf['oldValue']?{'type':'format','content':o(_0x35fb10,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x551748=this['editor']['plugins']['get']('TrackChangesEditing');_0x551748['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x551748['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x551748['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x551748['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c24c=this['editor'],_0x356464=_0x51c24c['locale'];_0x51c24c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40dd44=>{if('formatBlock'!=_0x40dd44['type']&&'formatInline'!=_0x40dd44['type'])return;const {data:_0x489d83}=_0x40dd44;if(!_0x489d83||'replaceImageSource'!=_0x489d83['commandName'])return;return{'type':'format','content':o(_0x356464,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x1061bc{['afterInit'](){const _0x477500=this['editor'];if(!_0x477500['plugins']['has']('ImageStyleEditing'))return;const _0x50bcff=_0x477500['plugins']['get']('TrackChangesEditing'),_0x4651c6=_0x477500['plugins']['get']('ImageUtils'),_0x3a8a18={};_0x50bcff['enableCommand']('imageStyle',(_0xf91697,_0x2595a0)=>{const _0x238d1e=_0x477500['plugins']['get']('Users')['me'],_0x2fadaf=_0x477500['commands']['get']('imageStyle');let _0x28845f=_0x4651c6['getClosestSelectedImageElement'](_0x477500['model']['document']['selection']),_0x4b10e5=_0x477500['model']['createRangeOn'](_0x28845f),_0x5cb5b7=_0x2fadaf['value'];if(_0x5cb5b7==_0x2595a0['value'])return;const _0x4bfa5c={'commandName':'imageStyle','commandParams':[_0x2595a0],'formatGroupId':_0x1b5ac0()};_0x477500['model']['change'](()=>{if(_0x50bcff['getSuggestions']()['filter'](_0x5b8379=>_0x5b8379['isInContent']&&_0x238d1e==_0x5b8379['author']&&('formatBlock'==_0x5b8379['type']||'formatInline'==_0x5b8379['type'])&&('imageStylePreApply'==_0x5b8379['subType']||'imageStylePostApply'==_0x5b8379['subType'])&&_0x5b8379['getFirstRange']()['isEqual'](_0x4b10e5))['forEach'](_0x1f311b=>_0x50bcff['discardSuggestion'](_0x1f311b['head'])),_0x28845f=_0x4651c6['getClosestSelectedImageElement'](_0x477500['model']['document']['selection']),_0x4b10e5=_0x477500['model']['createRangeOn'](_0x28845f),_0x2fadaf['refresh'](),_0x477500['commands']['get']('imageTypeInline')['refresh'](),_0x477500['commands']['get']('imageTypeBlock')['refresh'](),_0x5cb5b7=_0x2fadaf['value'],_0x5cb5b7!=_0x2595a0['value'])return _0x4651c6['isInlineImage'](_0x28845f)&&_0x2fadaf['shouldConvertImageType'](_0x2595a0['value'],_0x28845f)?(_0xf91697({..._0x2595a0,'setImageSizes':!0x1}),_0x28845f=_0x4651c6['getClosestSelectedImageElement'](_0x477500['model']['document']['selection']),void _0x50bcff['markBlockFormat'](_0x28845f,{..._0x4bfa5c,'commandReversedParams':[{'value':_0x5cb5b7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4651c6['isBlockImage'](_0x28845f)?_0x50bcff['markBlockFormat'](_0x28845f,_0x4bfa5c,[],'imageStylePostApply'):_0x50bcff['markInlineFormat'](_0x4b10e5,_0x4bfa5c,'imageStylePostApply'));});});for(const _0x1ce167 of _0x477500['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3a8a18[_0x1ce167['name']]=_0x1ce167['title']['toLowerCase']();_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2821ae])=>{_0x4651c6['setImageNaturalSizeAttributes'](_0x2821ae['getContainedElement']());}),_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x575453,_0xd33970)=>{_0x50bcff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x575453,{'commandName':_0xd33970['commandName'],'commandParams':_0xd33970['commandReversedParams']});}),_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x586c35,_0x19cb9a){if(_0x395a14(_0x586c35,_0x19cb9a))return[_0x586c35,_0x19cb9a];if(_0x395a14(_0x19cb9a,_0x586c35))return[_0x19cb9a,_0x586c35];return null;});const _0x2c95be=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x395a14(_0x182439,_0x3a9d52){const _0x5e7208=_0x2c95be['findIndex'](({type:_0xc51437,subType:_0x3b9e55})=>_0x182439['type']==_0xc51437&&_0x182439['subType']==_0x3b9e55),_0x374f06=_0x2c95be['findIndex'](({type:_0x3e1b5b,subType:_0xbb2853})=>_0x3a9d52['type']==_0x3e1b5b&&_0x3a9d52['subType']==_0xbb2853);if(_0x5e7208<0x0||_0x374f06<0x0)return!0x1;const _0x3c8ed7=_0x182439['getFirstRange'](),_0x3f59a1=_0x3a9d52['getFirstRange']();if((0x0==_0x5e7208||0x1==_0x5e7208)&&0x2==_0x374f06&&_0x3c8ed7['isIntersecting'](_0x3f59a1))return!0x0;if(0x2==_0x5e7208&&0x3==_0x374f06){const _0x5003b4=_0x50bcff['_findSuggestions'](_0x3c8ed7,'insertion')['filter'](({suggestion:_0x444b48,meta:_0x112162})=>_0x112162['isOwn']&&'convertInlineImageToBlock'==_0x444b48['subType']);if(_0x5003b4['length']>0x1&&_0x3f59a1['end']['isEqual'](_0x3c8ed7['start']))return!0x0;if(0x1==_0x5003b4['length']&&(_0x3c8ed7['start']['isEqual'](_0x3f59a1['end'])||_0x3c8ed7['end']['isEqual'](_0x3f59a1['start'])))return!0x0;}if(0x3==_0x5e7208&&0x3==_0x374f06&&_0x3c8ed7['start']['isBefore'](_0x3f59a1['start'])){const _0x1fa516=_0x3c8ed7['end']['nodeAfter'],_0x5c911a=_0x3f59a1['start']['nodeBefore'];return _0x4651c6['isBlockImage'](_0x1fa516)&&_0x1fa516===_0x5c911a;}return!0x1;}_0x477500['model']['document']['registerPostFixer'](()=>{let _0x331006=!0x1;const _0x100af7=Array['from'](_0x477500['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56e9be,data:_0xdf0357}of _0x100af7){const {group:_0x5a8605,type:_0x4ad802,subType:_0x4760a9,id:_0x2ea029}=_0x50bcff['_splitMarkerName'](_0x56e9be);if('suggestion'==_0x5a8605&&_0x50bcff['hasSuggestion'](_0x2ea029)){if('formatBlock'==_0x4ad802&&('imageStylePreApply'==_0x4760a9||'imageStylePostApply'==_0x4760a9)){const _0x581f68=_0x50bcff['getSuggestion'](_0x2ea029);if(_0xdf0357['newRange']){const _0x11680b=_0x581f68['getFirstRange']()['getContainedElement']();if(_0x4651c6['isBlockImage'](_0x11680b))continue;_0x50bcff['discardSuggestion'](_0x581f68),_0x331006=!0x0;}}if('insertion'==_0x4ad802&&'imageCaption'==_0x4760a9&&!_0xdf0357['newRange']){const _0x93ada9=_0x50bcff['getSuggestion'](_0x2ea029);_0x93ada9['next']&&_0x93ada9['next']['isInContent']&&(_0x50bcff['discardSuggestion'](_0x93ada9['next']),_0x331006=!0x0);}}}return _0x331006;}),this['_registerLegacyDescription'](_0x3a8a18);}['_registerLegacyDescription'](_0xb4055a){const _0x170672=this['editor'],_0x4a3a4a=_0x170672['locale'];_0x170672['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ed1c0=>{if('formatBlock'!=_0x4ed1c0['type']&&'formatInline'!=_0x4ed1c0['type'])return;const {data:_0x1131f7}=_0x4ed1c0;if(!_0x1131f7||'imageStyle'!=_0x1131f7['commandName'])return;const _0x348c65=_0x1131f7['commandParams'][0x0]['value'];return _0x441e80('side'===_0x348c65?o(_0x4a3a4a,'FORMAT_SIDE_IMAGE'):_0xb4055a[_0x348c65]||_0x348c65);function _0x441e80(_0x2f4554){return{'type':'format','content':o(_0x4a3a4a,'*Format:*\x20%0',_0x2f4554)};}});}}class lt extends _0x1061bc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x436a1d){super(_0x436a1d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x32b715=this['editor'],_0x71528f=_0x32b715['commands']['get']('importWord'),_0x50f4cc=_0x32b715['commands']['get']('trackChanges');_0x71528f&&(_0x71528f['on']('execute',(_0x256706,[,_0x224705])=>{this['_trackChangesValueDuringImport']=_0x50f4cc['value'],_0x224705['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x71528f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x71528f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x50f4cc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x32b715['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xde875,_0x244cf5){const {suggestions:_0x245672}=_0x244cf5,_0x207e11=this['editor']['commands']['get']('trackChanges'),_0x5c6d93=_0x207e11['value'];this['_trackChangesValueDuringImport']!==_0x5c6d93&&(_0x207e11['execute'](),this['_trackChangesExecuted']=!0x0),_0x245672&&_0x245672['forEach'](({id:_0x3a8ef3,type:_0x40d22a,author:_0x8711a2,created_at:_0x11a841})=>{const _0x151b85={'id':_0x3a8ef3,'type':_0x40d22a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x8711a2,'createdAt':_0x11a841?new Date(_0x11a841):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x151b85);});}}class gt extends _0x1061bc{['afterInit'](){const _0xc48d2e=this['editor'],_0x1228c5=_0xc48d2e['plugins']['get']('TrackChangesEditing');if(_0xc48d2e['plugins']['has']('IndentEditing')&&(_0x1228c5['enableCommand']('indent'),_0x1228c5['enableCommand']('outdent')),_0xc48d2e['plugins']['has']('IndentBlock')){for(const _0x166ac7 of['indentBlock','outdentBlock'])_0x1228c5['enableDefaultAttributesIntegration'](_0x166ac7);if(_0xc48d2e['plugins']['has']('ListEditing')){for(const _0x2abea3 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x1228c5['enableDefaultAttributesIntegration'](_0x2abea3);}}const _0x530f54=_0xc48d2e['locale'];_0x1228c5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x530f54,'FORMAT_INDENT')),_0x1228c5['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x530f54,'FORMAT_INDENT')),_0x1228c5['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x530f54,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e9257=this['editor'],_0x41761e=_0x3e9257['locale'],_0x36b202=_0x3e9257['plugins']['get']('TrackChangesEditing');_0x36b202['descriptionFactory']['registerDescriptionCallback'](_0x246e59=>{if('formatBlock'!=_0x246e59['type'])return;const {data:_0x1e6428}=_0x246e59;if(!_0x1e6428)return;if('indentBlock'!=_0x1e6428['commandName']&&'outdentBlock'!=_0x1e6428['commandName'])return;const _0x440fa2=_0x246e59['getItems']()[0x0],_0x26bd4c=_0x36b202['descriptionFactory']['getItemLabel'](_0x440fa2);return'indentBlock'==_0x1e6428['commandName']?{'type':'format','content':o(_0x41761e,'*Indent:*\x20%0',_0x26bd4c)}:'outdentBlock'==_0x1e6428['commandName']?{'type':'format','content':o(_0x41761e,'*Outdent:*\x20%0',_0x26bd4c)}:void 0x0;});}}class mt extends _0x1061bc{static get['requires'](){return[_0x14a973];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x1061bc{['afterInit'](){const _0xd78204=this['editor'];if(!_0xd78204['plugins']['has']('LinkEditing'))return;const _0x5f3f5c=_0xd78204['plugins']['get']('TrackChangesEditing'),_0x221cec=_0xd78204['commands']['get']('link');_0x5f3f5c['enableDefaultAttributesIntegration']('link'),_0x5f3f5c['enableDefaultAttributesIntegration']('unlink');for(const _0x5232a6 of _0x221cec['manualDecorators'])_0x5f3f5c['descriptionFactory']['registerAttributeLabel'](_0x5232a6['id'],'link\x20('+_0x5232a6['label']['toLowerCase']()+')');_0x5f3f5c['descriptionFactory']['registerDescriptionCallback'](_0x51cc66=>{if('attribute'!=_0x51cc66['type'])return;const {data:_0x5a303f}=_0x51cc66;if(!_0x5a303f||'linkHref'!=_0x5a303f['key'])return;const _0x5aa494=_0x5a303f['newValue'],_0x514780=_0xd78204['locale'];return{'type':'format','content':null==_0x5aa494?o(_0x514780,'*Remove\x20link*'):o(_0x514780,'*Set\x20link:*\x20%0','\x22'+_0x5aa494+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x122007=this['editor'],_0x2cc1f9=_0x122007['locale'];_0x122007['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23616d=>{if('formatInline'!=_0x23616d['type'])return;const {data:_0x4c6b1c}=_0x23616d;if(_0x4c6b1c){if('link'==_0x4c6b1c['commandName']){const _0x2bcb87=_0x4c6b1c['commandParams'][0x0];return{'type':'format','content':o(_0x2cc1f9,'*Set\x20link:*\x20%0','\x22'+_0x2bcb87+'\x22')};}return'unlink'==_0x4c6b1c['commandName']?{'type':'format','content':o(_0x2cc1f9,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x1061bc{['afterInit'](){const _0x23e13a=this['editor'],_0x1a90e7=_0x23e13a['locale'];if(!_0x23e13a['plugins']['has']('LegacyListEditing'))return;const _0x53066c=_0x23e13a['plugins']['get']('TrackChangesEditing'),_0x2b1d4a=_0x23e13a['plugins']['has']('LegacyTodoListEditing');function _0x14b087(_0x5414fb){return()=>{const _0x19eea1=_0x23e13a['model']['document']['selection'],_0x57954d=_0x23e13a['commands']['get'](_0x5414fb);if(_0x57954d['value'])return void _0x23e13a['execute']('paragraph',{});const _0x1d22e2=_0x5414fb['slice'](0x0,-0x4),_0x4ae0e4=function(_0x3ab34f,_0x3e5292,_0x50c755){let _0x4c54c8=Array['from'](_0x3ab34f)['filter'](_0x9ecc3a=>function(_0x562a94,_0x58507e){return _0x58507e['checkChild'](_0x562a94['parent'],'listItem')&&!_0x58507e['isObject'](_0x562a94);}(_0x9ecc3a,_0x50c755));_0x4c54c8=_0x4c54c8['filter'](_0x5022f9=>!_0x5022f9['is']('element','listItem')||_0x5022f9['getAttribute']('listType')!=_0x3e5292);const _0x5cff7c=new Set();for(const _0x283822 of _0x4c54c8)_0x283822['is']('element','listItem')?_0x5cff7c['add'](Le(_0x283822)):_0x5cff7c['add'](_0x283822);return Array['from'](_0x5cff7c);}(_0x19eea1['getSelectedBlocks'](),_0x1d22e2,_0x23e13a['model']['schema']);_0x23e13a['model']['change'](()=>{for(const _0x28035 of _0x4ae0e4)_0x53066c['markBlockFormat'](_0x28035,{'commandName':_0x5414fb,'commandParams':[{'forceValue':!_0x57954d['value']}],'formatGroupId':'blockName'},Ee(_0x28035));});};}function _0x213f8b(_0x5ae484){return()=>{const _0x1f3f0a=function(_0x2ff9f3){let _0x525d89=Array['from'](_0x2ff9f3);const _0x466f90=_0x525d89['findIndex'](_0x32a498=>'listItem'!=_0x32a498['name']);return _0x466f90>-0x1&&(_0x525d89=_0x525d89['slice'](0x0,_0x466f90)),_0x525d89;}(_0x23e13a['model']['document']['selection']['getSelectedBlocks']()),_0xf09fe=_0x23e13a['model']['createRange'](_0x23e13a['model']['createPositionAt'](_0x1f3f0a[0x0],'before'),_0x23e13a['model']['createPositionAt'](_0x1f3f0a[_0x1f3f0a['length']-0x1],'end'));_0x23e13a['model']['change'](()=>{_0x53066c['markBlockFormat'](_0xf09fe,{'commandName':_0x5ae484,'commandParams':[],'formatGroupId':'listIndent'},function(_0x492914){const _0x251767=new Set();for(const _0x1ff840 of _0x492914){let _0x2abf08=_0x1ff840['nextSibling'];for(;_0x2abf08&&_0x2abf08['getAttribute']('listIndent')>_0x1ff840['getAttribute']('listIndent');)_0x251767['add'](_0x2abf08),_0x2abf08=_0x2abf08['nextSibling'];}return Array['from'](_0x251767);}(_0x1f3f0a));});};}_0x53066c['enableCommand']('numberedList',_0x14b087('numberedList')),_0x53066c['enableCommand']('bulletedList',_0x14b087('bulletedList')),_0x2b1d4a&&_0x53066c['enableCommand']('todoList',_0x14b087('todoList')),_0x53066c['enableCommand']('indentList',_0x213f8b('indentList')),_0x53066c['enableCommand']('outdentList',_0x213f8b('outdentList')),_0x2b1d4a&&_0x53066c['enableCommand']('checkTodoList',()=>{const _0x59bc9e=_0x23e13a['commands']['get']('checkTodoList'),_0x1e367e=Array['from'](_0x59bc9e['_selectedElements']);_0x1e367e['filter'](_0x37db5a=>_0x37db5a['getAttribute']('todoListChecked')!=_0x59bc9e['value']),_0x23e13a['model']['change'](()=>{for(const _0xc8dba0 of _0x1e367e)_0x53066c['markBlockFormat'](_0xc8dba0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x59bc9e['value']}]});});}),_0x53066c['descriptionFactory']['registerElementLabel']('listItem',_0x285c31=>o(_0x1a90e7,'ELEMENT_LIST_ITEM',_0x285c31)),_0x53066c['descriptionFactory']['registerDescriptionCallback'](_0x515565=>{if('formatBlock'!=_0x515565['type']&&'formatInline'!=_0x515565['type'])return;const {data:_0x121da1}=_0x515565;if(_0x121da1){if('numberedList'==_0x121da1['commandName']||'bulletedList'==_0x121da1['commandName']||'todoList'==_0x121da1['commandName'])switch(_0x121da1['commandName']['replace']('List','')){case'bulleted':return _0x1181ef(o(_0x1a90e7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1181ef(o(_0x1a90e7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1181ef(o(_0x1a90e7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x121da1['commandName'])return{'type':'format','content':o(_0x1a90e7,'*Indent:*\x20%0',o(_0x1a90e7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x121da1['commandName'])return{'type':'format','content':o(_0x1a90e7,'*Outdent:*\x20%0',o(_0x1a90e7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x121da1['commandName'])return _0x121da1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a90e7,'*Check\x20item*')}:{'type':'format','content':o(_0x1a90e7,'*Uncheck\x20item*')};}function _0x1181ef(_0x47f993){return{'type':'format','content':o(_0x1a90e7,'*Change\x20to:*\x20%0',_0x47f993)};}});}}function Le(_0x3e3b8a){const _0x5e477d=_0x3e3b8a['getAttribute']('listIndent');if(0x0==_0x5e477d)return _0x3e3b8a;let _0x26cb47=_0x3e3b8a;for(;_0x3e3b8a['previousSibling']&&_0x3e3b8a['previousSibling']['is']('element','listItem');){const _0x160895=_0x3e3b8a['previousSibling']['getAttribute']('listIndent');if(_0x160895==_0x5e477d)_0x26cb47=_0x3e3b8a['previousSibling'];else{if(_0x160895<_0x5e477d)break;}_0x3e3b8a=_0x3e3b8a['previousSibling'];}return _0x26cb47;}function Ee(_0x3cdb62){const _0xb1c8b5=[];if(_0x3cdb62['is']('element','listItem')&&_0x3cdb62['getAttribute']('listIndent')>0x0){let _0x398082=_0x3cdb62['nextSibling'];for(;_0x398082&&'listItem'==_0x398082['name']&&_0x398082['getAttribute']('listIndent')==_0x3cdb62['getAttribute']('listIndent');)_0xb1c8b5['push'](_0x398082),_0x398082=_0x398082['nextSibling'];}return _0xb1c8b5;}class wt extends _0x1061bc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b767f=this['editor']['config']['get']('list.properties'),_0x195798=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b767f['styles']&&_0x195798['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b767f['reversed']&&_0x195798['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b767f['startIndex']&&_0x195798['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x195798['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x376a17,_0x40c6bb={}){const _0x56314b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6e02a0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56314b['markMultiRangeBlockFormat'](_0x6e02a0,{'commandName':'listStyle','commandParams':[{'type':_0x40c6bb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x37611f,_0x1b0f72={}){const _0x996ba0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a4f74=this['_getSuggestionBlocks'](_0xe8de15=>_0xe8de15['is']('element','listItem')&&'numbered'===_0xe8de15['getAttribute']('listType'));if(_0x1a4f74['length']<0x1)return;const _0x23fce5=_0x1a4f74['map'](_0x7e6a3d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7e6a3d,'before'),this['editor']['model']['createPositionAt'](_0x7e6a3d,0x0)));this['editor']['model']['change'](()=>{_0x996ba0['markMultiRangeBlockFormat'](_0x23fce5,{'commandName':'listReversed','commandParams':[{'reversed':_0x1b0f72['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x48ad13,_0xe1f51e={}){const _0x3a36a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dc52a=this['_getSuggestionBlocks'](_0xb57c39=>_0xb57c39['is']('element','listItem')&&'numbered'===_0xb57c39['getAttribute']('listType'));if(_0x1dc52a['length']<0x1)return;const _0x1fbde7=_0x1dc52a['map'](_0x74ce1b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x74ce1b,'before'),this['editor']['model']['createPositionAt'](_0x74ce1b,0x0)));this['editor']['model']['change'](()=>{_0x3a36a6['markMultiRangeBlockFormat'](_0x1fbde7,{'commandName':'listStart','commandParams':[{'startIndex':_0xe1f51e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2d8bbc){if('formatBlock'!=_0x2d8bbc['type']&&'formatInline'!=_0x2d8bbc['type'])return;const _0x16cb3c=this['editor']['locale'],{data:_0x1cc87d}=_0x2d8bbc;if(!_0x1cc87d)return;let _0x22f423,_0x3f0c67;switch(_0x1cc87d['commandName']){case'listStyle':_0x22f423='*Change\x20to:*\x20%0',_0x3f0c67={'type':'format','content':o(_0x16cb3c,_0x22f423,o(_0x16cb3c,this['_getTranslationKeyForListStyle'](_0x1cc87d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x22f423=_0x1cc87d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f0c67={'type':'format','content':o(_0x16cb3c,_0x22f423)};break;case'listStart':_0x22f423='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f0c67={'type':'format','content':o(_0x16cb3c,_0x22f423,_0x1cc87d['commandParams'][0x0]['startIndex'])};}return _0x3f0c67;}['_getSuggestionBlocksForListStyle'](){const _0x2f42dd=this['editor']['plugins']['get']('LegacyListUtils');let _0x1eb3b5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1eb3b5[0x0]?.['is']('element','listItem')&&_0x1eb3b5['unshift'](..._0x2f42dd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1eb3b5[_0x1eb3b5['length']-0x1]?.['is']('element','listItem')&&_0x1eb3b5['push'](..._0x2f42dd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1eb3b5=[...new Set(_0x1eb3b5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1eb3b5=_0x1eb3b5['filter'](_0x52efb3=>_0x52efb3['is']('element','listItem'))),_0x1eb3b5;}['_getSuggestionBlocks'](_0x4b020c){const _0xf1d782=this['editor']['plugins']['get']('LegacyListUtils');let _0x119ba3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4b020c)['map'](_0x7752f6=>{const _0x9c1c7e=this['editor']['model']['createPositionAt'](_0x7752f6,0x0);return[..._0xf1d782['getSiblingNodes'](_0x9c1c7e,'backward'),..._0xf1d782['getSiblingNodes'](_0x9c1c7e,'forward')];})['flat']();return _0x119ba3=[...new Set(_0x119ba3)],_0x119ba3;}['_getTranslationKeyForListStyle'](_0x302a23){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x302a23)||'default')['toUpperCase']()+'_LIST_'+_0x302a23['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x1061bc{['afterInit'](){const _0x4669d9=this['editor'];if(!_0x4669d9['plugins']['has']('MediaEmbedEditing'))return;const _0x1d5846=_0x4669d9['plugins']['get']('TrackChangesEditing'),_0x199949=_0x4669d9['locale'];_0x1d5846['enableCommand']('mediaEmbed'),_0x1d5846['descriptionFactory']['registerElementLabel']('media',_0x99e6f0=>o(_0x199949,'ELEMENT_MEDIA',_0x99e6f0));}}class bt extends _0x1061bc{['afterInit'](){const _0x25a88a=this['editor'];_0x25a88a['plugins']['has']('MentionEditing')&&_0x25a88a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x1061bc{['afterInit'](){const _0xa22b50=this['editor'];if(!_0xa22b50['plugins']['has']('MergeFieldsEditing'))return;const _0x512b5c=_0xa22b50['plugins']['get']('TrackChangesEditing'),_0x33c969=_0xa22b50['locale'];_0x512b5c['enableCommand']('insertMergeField'),_0x512b5c['enableCommand']('insertMergeFieldBlock'),_0x512b5c['enableCommand']('insertMergeFieldImage'),_0x512b5c['descriptionFactory']['registerElementLabel']('mergeField',_0x53cf55=>o(_0x33c969,'ELEMENT_MERGE_FIELD',_0x53cf55)),_0x512b5c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1277bb=>o(_0x33c969,'ELEMENT_MERGE_FIELD',_0x1277bb)),_0x512b5c['descriptionFactory']['registerDescriptionCallback'](_0x580cf4=>{if('insertion'!=_0x580cf4['type']&&'deletion'!=_0x580cf4['type'])return;const _0x22819d=_0x580cf4['getContainedElement']();if(null==_0x22819d)return;const _0x2567ee=_0xa22b50['plugins']['get']('MergeFieldsEditing');let _0x26e308;switch(_0x2567ee['getMergeFieldType'](_0x22819d)){case null:return;case'image':{const _0x425f5a=_0x2567ee['unwrapAffixes'](_0x22819d['getAttribute']('src'));_0x26e308=_0x2567ee['getLabel'](_0x425f5a)||_0x425f5a;break;}default:{const _0x45a447=_0x22819d['getAttribute']('id');_0x26e308=_0x2567ee['getLabel'](_0x45a447)||_0x45a447;break;}}return'insertion'==_0x580cf4['type']?{'type':'insertion','content':o(_0x33c969,'*Insert:*\x20%0','\x22'+_0x26e308+'\x22\x20'+o(_0x33c969,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x33c969,'*Remove:*\x20%0','\x22'+_0x26e308+'\x22\x20'+o(_0x33c969,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x1061bc{['afterInit'](){const _0x3729be=this['editor'],_0x5846a4=_0x3729be['plugins']['get']('TrackChangesEditing');_0x3729be['plugins']['has']('MultiLevelList')&&(_0x5846a4['enableDefaultAttributesIntegration']('multiLevelList'),_0x5846a4['descriptionFactory']['registerDescriptionCallback'](_0x1374b4=>this['handleDescriptions'](_0x1374b4)));}['handleDescriptions'](_0x4461bc){const _0x25928b=this['editor']['locale'],{data:_0x1e40d4}=_0x4461bc,_0x467d56={'type':'format','content':''};if(_0x1e40d4&&'listMarkerStyle'==_0x1e40d4['key']){if(!_0x1e40d4['oldValue'])return{'type':'format','content':o(_0x25928b,'*Set\x20format:*\x20%0',o(_0x25928b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e40d4['newValue']+')'};if(!_0x1e40d4['newValue']){let _0x352203=_0x4461bc['head'];for(;_0x352203;){if(_0x352203['data']&&'listType'==_0x352203['data']['key']&&_0x352203['data']['newValue'])return _0x467d56;_0x352203=_0x352203['next'];}return{'type':'format','content':o(_0x25928b,'*Remove\x20format:*\x20%0',o(_0x25928b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e40d4['oldValue']+')'};}}}}class St extends _0x1061bc{['afterInit'](){const _0x46e5bc=this['editor'];if(!_0x46e5bc['plugins']['has']('PageBreakEditing'))return;_0x46e5bc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x30ae90=_0x46e5bc['plugins']['get']('TrackChangesEditing'),_0x4e4571=_0x46e5bc['locale'];_0x30ae90['descriptionFactory']['registerElementLabel']('pageBreak',_0x50d689=>o(_0x4e4571,'ELEMENT_PAGE_BREAK',_0x50d689));}}class It extends _0x1061bc{['afterInit'](){const _0x1a4b1d=this['editor'];if(!_0x1a4b1d['plugins']['has']('Paragraph'))return;const _0x410f26=_0x1a4b1d['locale'],_0x1fb18f=_0x1a4b1d['plugins']['get']('TrackChangesEditing');_0x1fb18f['descriptionFactory']['registerElementLabel']('paragraph',_0x52d86e=>o(_0x410f26,'ELEMENT_PARAGRAPH',_0x52d86e)),_0x1fb18f['enableDefaultAttributesIntegration']('paragraph'),_0x1fb18f['enableCommand']('insertParagraph');const _0xfdd571=_0x1fb18f['descriptionFactory'];_0xfdd571['registerDescriptionCallback'](_0x4c5394=>{if('insertion'!==_0x4c5394['type'])return;const {start:_0x34033a,end:_0x49c3b5}=_0x4c5394['getFirstRange']();if(!_0x34033a['isTouching'](_0x49c3b5)||!_0x34033a['nodeAfter'])return;const _0x1296a2=_0x1a4b1d['model']['schema'],_0x3f58b5=_0x34033a['nodeAfter'];return _0x1296a2['isBlock'](_0x3f58b5)&&!_0x1296a2['isLimit'](_0x3f58b5)&&_0x1296a2['checkChild'](_0x3f58b5,'$text')?{'type':'insertion','content':o(_0x410f26,'*Insert:*\x20%0',_0xfdd571['getItemLabel'](_0x3f58b5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250744=this['editor'],_0x312f1b=_0x250744['locale'];_0x250744['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c9bd6=>{if('formatBlock'!=_0x1c9bd6['type'])return;const {data:_0xbfce55}=_0x1c9bd6;return _0xbfce55&&'paragraph'==_0xbfce55['commandName']?{'type':'format','content':o(_0x312f1b,'*Change\x20to:*\x20%0',o(_0x312f1b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x1061bc{['afterInit'](){const _0x239cdb=this['editor'];_0x239cdb['commands']['get']('replaceSource')&&_0x239cdb['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x1061bc{['afterInit'](){const _0x19030c=this['editor'];if(!_0x19030c['plugins']['has']('RemoveFormatEditing'))return;_0x19030c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42ce45=this['editor'];_0x42ce45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a4b44=>{if('formatBlock'!=_0x2a4b44['type']&&'formatInline'!=_0x2a4b44['type'])return;const {data:_0x4d2582}=_0x2a4b44;return _0x4d2582&&'removeFormat'==_0x4d2582['commandName']?{'type':'format','content':o(_0x42ce45['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x1061bc{['afterInit'](){const _0xb1ed3b=this['editor'];if(!_0xb1ed3b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x30b9a1=_0xb1ed3b['plugins']['get']('TrackChangesEditing');_0x30b9a1['enableCommand']('goToPreviousRestrictedEditingException'),_0x30b9a1['enableCommand']('goToNextRestrictedEditingException');const _0x13b7cc=_0xb1ed3b['plugins']['get']('RestrictedEditingModeEditing');_0x13b7cc['enableCommand']('trackChanges'),_0x13b7cc['enableCommand']('acceptSuggestion'),_0x13b7cc['enableCommand']('discardSuggestion'),_0x13b7cc['enableCommand']('acceptAllSuggestions'),_0x13b7cc['enableCommand']('discardAllSuggestions'),_0x13b7cc['enableCommand']('acceptSelectedSuggestions'),_0x13b7cc['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x1061bc{['afterInit'](){const _0x272c98=this['editor'];if(!_0x272c98['plugins']['has']('ShiftEnter'))return;const _0x98f606=_0x272c98['plugins']['get']('TrackChangesEditing');_0x98f606['enableCommand']('shiftEnter'),_0x98f606['descriptionFactory']['registerElementLabel']('softBreak',_0x1b8358=>o(_0x272c98['locale'],'ELEMENT_LINE_BREAK',_0x1b8358));}}function an(_0x24faa2,_0x2d628c,_0x1086f2){const _0x5956a4=[];for(const _0x457efa of _0x2d628c['getItems']())_0x457efa['hasAttribute'](_0x24faa2)&&_0x5956a4['push'](_0x1086f2['createRangeOn'](_0x457efa));return _0x5956a4;}class $t extends _0x1061bc{['afterInit'](){const _0x4448b8=this['editor'],_0x132aea=_0x4448b8['plugins']['get']('TrackChangesEditing');_0x4448b8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x132aea['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5d2a0a=this['editor'],_0x23eacc=_0x5d2a0a['model'],_0xcef2e1=_0x5d2a0a['locale'],_0x56496d=_0x5d2a0a['plugins']['get']('TrackChangesEditing'),_0x5d416a='restrictedEditingException',_0xad37f7=_0x5d2a0a['commands']['get'](_0x5d416a);_0x56496d['enableCommand'](_0x5d416a,(_0x38a4e9,_0x2a303b={})=>{const _0x3b4d8d=_0x23eacc['document']['selection'];if(_0x3b4d8d['isCollapsed'])return void _0x38a4e9(_0x2a303b);const _0x5c2b7f=void 0x0!==_0x2a303b['forceValue']?_0x2a303b['forceValue']:!_0xad37f7['value'];_0x23eacc['change'](()=>{const _0x546aa5=Array['from'](_0x3b4d8d['getRanges']());for(const _0x16ad81 of _0x546aa5){const _0x249b8a=_0x5c2b7f?[_0x16ad81]:an(_0x5d416a,_0x16ad81,_0x23eacc);for(const _0x25fe1e of _0x249b8a)_0x56496d['markInlineFormat'](_0x25fe1e,{'commandName':_0x5d416a,'commandParams':[{'forceValue':_0x5c2b7f}]});}});}),_0x56496d['descriptionFactory']['registerDescriptionCallback'](_0x43ff18=>{if('formatBlock'!=_0x43ff18['type']&&'formatInline'!=_0x43ff18['type'])return;const {data:_0x2bd16e}=_0x43ff18;return _0x2bd16e&&_0x2bd16e['commandName']==_0x5d416a?_0x2bd16e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcef2e1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xcef2e1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x36b3c6=this['editor'],_0x1db893=_0x36b3c6['locale'],_0x425310=_0x36b3c6['plugins']['get']('TrackChangesEditing'),_0x408d16='restrictedEditingExceptionBlock',_0x3c0faa=this['editor']['commands']['get'](_0x408d16);_0x425310['enableCommand'](_0x408d16,(_0x3dc11e,_0x436831={})=>{const _0x357fbc=this['editor']['model']['document']['selection'],_0x22c688=_0x436831&&void 0x0!==_0x436831['forceValue']?_0x436831['forceValue']:!_0x3c0faa['value'];let _0x36fccf=[];if(_0x22c688){const _0x303855=Array['from'](_0x357fbc['getSelectedBlocks']())['filter'](_0x176857=>function(_0xea309d){return!!_0xea309d['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x176857)||function(_0x18be96,_0x4d085c){const _0x305cd2=_0x4d085c['createContext'](_0x18be96['parent']);if(!_0x4d085c['checkChild'](_0x305cd2,'restrictedEditingException'))return!0x1;if(!_0x4d085c['checkChild'](_0x305cd2['push']('restrictedEditingException'),_0x18be96))return!0x1;return!0x0;}(_0x176857,this['editor']['model']['schema']));_0x36fccf=to(_0x303855,_0x36b3c6['model']);}else{const _0x216c85=Array['from'](_0x357fbc['getSelectedBlocks']())['map'](_0x12a1ae=>function(_0x1e1908){let _0x2a815a=_0x1e1908;for(;_0x2a815a['parent'];){if('restrictedEditingException'==_0x2a815a['parent']['name'])return _0x2a815a;_0x2a815a=_0x2a815a['parent'];}return null;}(_0x12a1ae))['filter'](_0xde7316=>!!_0xde7316);_0x36fccf=to(_0x216c85,_0x36b3c6['model']);}_0x36b3c6['model']['change'](()=>{for(const _0x478e35 of _0x36fccf)_0x425310['markBlockFormat'](_0x478e35,{'commandName':_0x408d16,'commandParams':[{'forceValue':_0x22c688}]});});}),_0x425310['descriptionFactory']['registerDescriptionCallback'](_0x58a40c=>{const {data:_0x2561a6}=_0x58a40c;if(_0x2561a6&&_0x2561a6['commandName']==_0x408d16)return _0x2561a6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1db893,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1db893,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x1061bc{['afterInit'](){const _0x391262=this['editor'];if(!_0x391262['plugins']['has']('Style')||!_0x391262['plugins']['has']('DataSchema'))return;const _0x1d8e7a=_0x391262['plugins']['get']('TrackChangesEditing'),_0x4f3819=_0x391262['locale'],_0x44f3ab=_0x391262['config']['get']('style')||{},_0x5a783d=_0x391262['plugins']['get']('GeneralHtmlSupport'),_0x30ad69=_0x391262['plugins']['get']('StyleUtils')['normalizeConfig'](_0x391262['plugins']['get']('DataSchema'),_0x44f3ab['definitions']);_0x1d8e7a['enableDefaultAttributesIntegration']('style');const _0xc4ce25=new Set();for(const _0x55818b of _0x30ad69['block']){const _0x576520=_0x5a783d['getGhsAttributeNameForElement'](_0x55818b['element']);_0xc4ce25['add'](_0x576520);}const _0x183213=new Set();for(const _0x2d1d49 of _0x30ad69['inline']){const _0xa2ae23=_0x5a783d['getGhsAttributeNameForElement'](_0x2d1d49['element']);_0x183213['add'](_0xa2ae23);for(const _0x7f03 of _0x2d1d49['ghsAttributes'])_0x183213['add'](_0x7f03);}for(const _0x49c8e3 of _0xc4ce25)_0x1d8e7a['descriptionFactory']['registerAttributeLabel'](_0x49c8e3,o(_0x4f3819,'FORMAT_STYLE'));for(const _0x30ade1 of _0x183213)_0x1d8e7a['descriptionFactory']['registerAttributeLabel'](_0x30ade1,o(_0x4f3819,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8344=this['editor'],_0x5cb67c=_0x1f8344['locale'];_0x1f8344['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b065e=>{if('formatBlock'!=_0x5b065e['type']&&'formatInline'!=_0x5b065e['type'])return;const {data:_0x4e8913}=_0x5b065e;return _0x4e8913&&'style'===_0x4e8913['commandName']?_0x4e8913['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cb67c,'*Set\x20format:*\x20%0',_0x4e8913['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5cb67c,'*Remove\x20format:*\x20%0',_0x4e8913['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x1061bc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x262e2c){super(_0x262e2c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1ff007=this['editor'],_0x215ef6=_0x1ff007['model']['document']['selection'];if(!_0x1ff007['plugins']['has']('TableEditing'))return;const _0x1f9af5=_0x1ff007['locale'],_0x59f270=_0x1ff007['plugins']['get']('TrackChangesEditing'),_0x3032db=_0x1ff007['plugins']['get']('TableUtils');_0x59f270['descriptionFactory']['registerElementLabel']('table',_0x120c04=>o(_0x1f9af5,'ELEMENT_TABLE',_0x120c04)),this['_setupColumnsRowsFixing'](),_0x59f270['enableCommand']('insertTable'),_0x59f270['enableCommand']('selectTableRow'),_0x59f270['enableCommand']('selectTableColumn');for(const _0x5a62fe of['insertTableRowAbove','insertTableRowBelow']){const _0x1bd29c=_0x1ff007['commands']['get'](_0x5a62fe);_0x59f270['enableCommand'](_0x5a62fe,_0x1c250a=>{_0x1ff007['model']['change'](_0x303197=>{_0x1c250a();const _0x8243af='above'===_0x1bd29c['order'],_0x43a0f8=_0x3032db['getSelectionAffectedTableCells'](_0x215ef6),_0x24c3ac=_0x3032db['getRowIndexes'](_0x43a0f8),_0x50d643=_0x8243af?_0x24c3ac['first']-0x1:_0x24c3ac['last']+0x1,_0x30de25=_0x43a0f8[0x0]['findAncestor']('table'),_0x3106e5=_0x3032db['createTableWalker'](_0x30de25,{'startRow':_0x50d643,'endRow':_0x50d643}),_0x49a845=Array['from'](_0x3106e5)['map'](_0x3ef489=>_0x303197['createRangeOn'](_0x3ef489['cell']));_0x59f270['markMultiRangeInsertion'](_0x49a845,'tableRow');});});}for(const _0x5394d9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x287367=_0x1ff007['commands']['get'](_0x5394d9);_0x59f270['enableCommand'](_0x5394d9,_0x4df4b6=>{_0x1ff007['model']['change'](_0x3658ff=>{_0x4df4b6();const _0x18ab5a='left'===_0x287367['order'],_0x4e3b36=_0x3032db['getSelectionAffectedTableCells'](_0x215ef6),_0xcd3a34=_0x3032db['getColumnIndexes'](_0x4e3b36),_0x183015=_0x18ab5a?_0xcd3a34['first']-0x1:_0xcd3a34['last']+0x1,_0x3a03f2=_0x4e3b36[0x0]['findAncestor']('table'),_0x4d8b73=_0x3032db['createTableWalker'](_0x3a03f2,{'startRow':0x0,'column':_0x183015,'includeAllSlots':!0x1}),_0x283490=Array['from'](_0x4d8b73)['map'](_0x1b813c=>_0x3658ff['createRangeOn'](_0x1b813c['cell']));_0x59f270['markMultiRangeInsertion'](_0x283490,'tableColumn');});});}for(const _0x1b4d45 of['removeTableRow','removeTableColumn']){const _0x879ac0=_0x1b4d45['substr'](0xb),_0x1c48ed=_0x879ac0['toLowerCase'](),_0x5ed091=_0x1c48ed['substr'](0x0,0x3)+'span',_0x28b28c='table'+_0x879ac0,_0x4f59b2='min'+_0x879ac0,_0x15358b='max'+_0x879ac0;_0x59f270['enableCommand'](_0x1b4d45,()=>{_0x1ff007['model']['change'](_0x3b9534=>{const _0x1ff554=_0x3032db['getSelectionAffectedTableCells'](_0x215ef6),_0x2ebee2=_0x1ff554[0x0]['findAncestor']('table');let _0x3016cb;if('removeTableRow'==_0x1b4d45){const _0xf10d4b=_0x3032db['getRowIndexes'](_0x1ff554);_0x3016cb={'startRow':_0xf10d4b['first'],'endRow':_0xf10d4b['last'],'includeAllSlots':!0x0};}else{const _0xe3dc3f=_0x3032db['getColumnIndexes'](_0x1ff554);_0x3016cb={'startColumn':_0xe3dc3f['first'],'endColumn':_0xe3dc3f['last'],'includeAllSlots':!0x0};}const _0x1c7ff1=_0x3032db['createTableWalker'](_0x2ebee2,_0x3016cb),_0x472984=Array['from'](_0x1c7ff1)['map'](({cell:_0x5545d3})=>_0x5545d3),_0x54c51b=_e(_0x472984['filter'](_0x2f2cf5=>_0x2f2cf5['hasAttribute'](_0x5ed091))),_0x3117ee=_e(_0x472984['filter'](_0x535073=>!_0x535073['hasAttribute'](_0x5ed091)))['map'](_0x301c98=>_0x3b9534['createRangeOn'](_0x301c98)),_0x551d70=_0x59f270['markMultiRangeDeletion'](_0x3117ee,_0x28b28c);if(_0x551d70&&('tableRow'==_0x551d70['subType']||'tableColumn'==_0x551d70['subType'])){const _0x42448c=this['_getSuggestionCoords'](_0x551d70);for(const _0xa5ea80 of _0x54c51b){const _0x442794=_0x3b9534['createRangeOn'](_0xa5ea80),_0x3aa300=_0x3032db['getCellLocation'](_0xa5ea80),_0x1faa38=_0xa5ea80['getAttribute'](_0x5ed091)-0x1,_0x2a1b5b=_0x42448c[_0x4f59b2],_0x582f1e=_0x42448c[_0x15358b];_0x2a1b5b<=_0x3aa300[_0x1c48ed]&&_0x3aa300[_0x1c48ed]+_0x1faa38<=_0x582f1e&&_0x551d70['addRange'](_0x442794);}}});});}function _0x508746(_0x468426){const _0x829d67=Array['from'](_0x215ef6['getRanges']())['map'](_0x25d7bf=>_0x321f06['fromRange'](_0x25d7bf));_0x1ff007['model']['change'](_0x173765=>{const _0x10ac8c=_0x173765['batch'];_0x468426=_0x468426['filter'](_0x4e0896=>'$graveyard'!=_0x4e0896['root']['rootName']),_0x173765['setSelection'](_0x468426),_0x1ff007['commands']['get']('removeTableRow')['refresh'](),_0x1ff007['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1ff007['model']['enqueueChange'](()=>{_0x1ff007['model']['enqueueChange'](_0x10ac8c,_0x523188=>{const _0x229c5b=_0x829d67['filter'](_0x4975ce=>'$graveyard'!=_0x4975ce['root']['rootName']);_0x229c5b['length']>0x0&&_0x523188['setSelection'](_0x229c5b);for(const _0x5888f6 of _0x829d67)_0x5888f6['detach']();});});});}function _0x1dce4d(_0x3ac8c7){_0x1ff007['model']['change'](_0x1ccbc3=>{const _0x4c8582=Array['from'](_0x215ef6['getRanges']())['map'](_0x4e7b39=>_0x321f06['fromRange'](_0x4e7b39)),_0xa00a26=[];for(const _0x3e9c87 of _0x3ac8c7)for(const _0x1fa63e of _0x3e9c87['getItems']({'shallow':!0x0}))_0xa00a26['push'](_0x1fa63e);for(const _0x532060 of _0xa00a26)'$graveyard'!=_0x532060['root']['rootName']&&(_0x1ccbc3['setSelection'](_0x1ccbc3['createPositionAt'](_0x532060,0x0)),_0x1ff007['commands']['get']('removeTableColumn')['refresh'](),_0x1ff007['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2cd2f9=_0x4c8582['filter'](_0x42c82e=>'$graveyard'!=_0x42c82e['root']['rootName']);_0x2cd2f9['length']>0x0&&_0x1ccbc3['setSelection'](_0x2cd2f9);for(const _0x416bdb of _0x4c8582)_0x416bdb['detach']();});}function _0x49d2e0(_0x1c5f88,_0x50da2d){return _0x50da2d['every'](_0x2ae21a=>_0x1c5f88['some'](_0x411dcd=>_0x411dcd['end']['isEqual'](_0x2ae21a['start'])||_0x2ae21a['end']['isEqual'](_0x411dcd['start'])));}function _0x8f230c(_0xba12d,_0x452698){return!_0xba12d['some'](_0x37cbea=>_0x452698['some'](_0x364531=>_0x37cbea['isIntersecting'](_0x364531)))&&_0xba12d['some'](_0xbaa96e=>_0x452698['some'](_0x3aa03c=>_0xbaa96e['end']['isTouching'](_0x3aa03c['start'])));}_0x59f270['descriptionFactory']['registerDescriptionCallback'](_0x3f70fe=>{if('insertion'!=_0x3f70fe['type']&&'deletion'!=_0x3f70fe['type'])return;const _0x53b148=_0x3f70fe['getContainedElement']();if(null!=_0x53b148&&_0x53b148['is']('element','table')){if('insertion'==_0x3f70fe['type']){const _0x138548=_0x3f70fe['getItems']()['filter'](_0x7a5b08=>_0x7a5b08['is']('$textProxy'))['map'](_0x4a36c1=>_0x4a36c1['data']);if(_0x138548['length'])return{'type':'insertion','content':o(_0x1f9af5,'*Insert:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x138548['join']('\x20')+'\x22'))};}if('deletion'==_0x3f70fe['type']){const _0x36f24b=_0x3f70fe['getItems']()['filter'](_0x1469f7=>_0x1469f7['is']('$textProxy'))['map'](_0xb39918=>_0xb39918['data']);if(_0x36f24b['length'])return{'type':'deletion','content':o(_0x1f9af5,'*Remove:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36f24b['join']('\x20')+'\x22'))};}}}),_0x59f270['descriptionFactory']['registerDescriptionCallback'](_0x596e4d=>{if('tableRow'==_0x596e4d['subType']){const _0x375525=_0x596e4d['getItems']()['filter'](_0x2f24ac=>_0x2f24ac['is']('$textProxy'))['map'](_0xd3dd32=>_0xd3dd32['data']),_0x39b01e=this['_getSuggestionCoords'](_0x596e4d),_0x13c7e8=_0x39b01e['maxRow']-_0x39b01e['minRow']+0x1;if('insertion'==_0x596e4d['type'])return _0x375525['length']?{'type':'insertion','content':o(_0x1f9af5,'*Insert:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13c7e8,'\x22'+_0x375525['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f9af5,'*Insert:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_ROW',_0x13c7e8))};if('deletion'==_0x596e4d['type'])return _0x375525['length']?{'type':'deletion','content':o(_0x1f9af5,'*Remove:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13c7e8,'\x22'+_0x375525['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f9af5,'*Remove:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_ROW',_0x13c7e8))};}if('tableColumn'==_0x596e4d['subType']){const _0x417945=_0x596e4d['getItems']()['filter'](_0x2327c8=>_0x2327c8['is']('$textProxy'))['map'](_0x761f01=>_0x761f01['data']),_0x5b4ffc=this['_getSuggestionCoords'](_0x596e4d),_0x4a9c91=_0x5b4ffc['maxColumn']-_0x5b4ffc['minColumn']+0x1;if('insertion'==_0x596e4d['type'])return _0x417945['length']?{'type':'insertion','content':o(_0x1f9af5,'*Insert:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a9c91,'\x22'+_0x417945['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f9af5,'*Insert:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_COLUMN',_0x4a9c91))};if('deletion'==_0x596e4d['type'])return _0x417945['length']?{'type':'deletion','content':o(_0x1f9af5,'*Remove:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a9c91,'\x22'+_0x417945['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f9af5,'*Remove:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_COLUMN',_0x4a9c91))};}}),_0x59f270['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x508746),_0x59f270['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x508746),_0x59f270['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1dce4d),_0x59f270['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1dce4d),_0x59f270['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x49d2e0),_0x59f270['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x49d2e0),_0x59f270['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x8f230c),_0x59f270['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x8f230c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x362bf1=this['editor'],_0x8ab298=_0x362bf1['model']['document']['selection'];return(_0x5966f2,_0x5900e9)=>{_0x362bf1['model']['change'](_0xe81d8f=>{const {commandName:_0x41efd0,commandParams:_0x1785f5}=_0x5900e9;let _0x58eecb=_0x5966f2[0x0]['end']['nodeBefore'];_0x1785f5&&_0x1785f5[0x0]&&!0x1===_0x1785f5[0x0]['forceValue']&&(_0x58eecb=_0x5966f2[0x0]['start']['nodeAfter']);const _0x35d69c=_0xe81d8f['createRangeIn'](_0x58eecb);if('$graveyard'==_0x35d69c['root']['rootName'])return;const _0x51b40b=Array['from'](_0x8ab298['getRanges']())['map'](_0x412dd3=>_0x321f06['fromRange'](_0x412dd3));_0xe81d8f['setSelection'](_0x35d69c),_0x362bf1['commands']['get'](_0x41efd0)['refresh'](),_0x1785f5['push']({'forceDefaultExecution':!0x0}),_0x362bf1['execute'](_0x41efd0,..._0x1785f5);const _0x5c07ce=_0x51b40b['filter'](_0x355c03=>'$graveyard'!=_0x355c03['root']['rootName']);_0x5c07ce['length']>0x0&&_0xe81d8f['setSelection'](_0x5c07ce);for(const _0x3f7e03 of _0x51b40b)_0x3f7e03['detach']();});};}['_getCoordsForCells'](_0x85825f){const _0x4eacb2=this['editor']['plugins']['get']('TableUtils');let _0x3747e3=Number['MAX_SAFE_INTEGER'],_0x25787=Number['MIN_SAFE_INTEGER'],_0x3fbd2f=Number['MAX_SAFE_INTEGER'],_0x1db552=Number['MIN_SAFE_INTEGER'];for(const _0x4dad40 of _0x85825f){if('$graveyard'==_0x4dad40['root']['rootName'])continue;const {row:_0xb5601,column:_0x4f9d1e}=_0x4eacb2['getCellLocation'](_0x4dad40),_0x5ae73d=_0x4dad40['hasAttribute']('rowspan')?_0x4dad40['getAttribute']('rowspan')-0x1:0x0,_0x52f0a9=_0x4dad40['hasAttribute']('colspan')?_0x4dad40['getAttribute']('colspan')-0x1:0x0;_0x3747e3=_0xb5601<_0x3747e3?_0xb5601:_0x3747e3,_0x25787=_0xb5601+_0x5ae73d>_0x25787?_0xb5601+_0x5ae73d:_0x25787,_0x3fbd2f=_0x4f9d1e<_0x3fbd2f?_0x4f9d1e:_0x3fbd2f,_0x1db552=_0x4f9d1e+_0x52f0a9>_0x1db552?_0x4f9d1e+_0x52f0a9:_0x1db552;}return{'minRow':_0x3747e3,'maxRow':_0x25787,'minColumn':_0x3fbd2f,'maxColumn':_0x1db552};}['_setupColumnsRowsFixing'](){const _0x549dc0=this['editor'],_0x8017dd=_0x549dc0['plugins']['get']('TrackChangesEditing'),_0x3a17b0=_0x549dc0['plugins']['get']('TableUtils');_0x549dc0['model']['document']['on']('change:data',()=>{const _0x4c2f20=Array['from'](_0x549dc0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25b671,data:_0x53216e}of _0x4c2f20){const {group:_0x213c7c,id:_0x3a34eb,subType:_0x4c14db}=_0x8017dd['_splitMarkerName'](_0x25b671);if('suggestion'!=_0x213c7c)continue;if(null!=_0x53216e['oldRange'])continue;const _0x38345b=_0x8017dd['getSuggestion'](_0x3a34eb);this['_tablePostFixingSubtypes']['includes'](_0x4c14db)&&this['_tableSuggestions']['add'](_0x38345b);}},{'priority':'low'});const _0x48615c=(_0x39ce9a,_0x3a3d94)=>{let _0x5d9665=!0x1;const _0x18702b=_0x3a3d94['createRangeOn'](_0x39ce9a),_0x4a8b5d=_0x39ce9a['findAncestor']('table'),_0x3b8a35=_0x3a17b0['getCellLocation'](_0x39ce9a);for(const _0x44cbea of this['_tableSuggestions']){const _0x5789c3=_0x44cbea['subType'],_0x6ed3dc=_0x5789c3['startsWith']('tablePaste'),_0x552b63=_0x5789c3['substr'](_0x6ed3dc?0xa:0x5),_0x3fcdcd=_0x552b63['toLowerCase'](),_0x43a13e=_0x3fcdcd['substr'](0x0,0x3)+'span',_0x221593='min'+_0x552b63,_0x43ef01='max'+_0x552b63;if(!_0x44cbea['isInContent'])continue;if(_0x4a8b5d!=_0x44cbea['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x44cbea['isIntersectingWithRange'](_0x18702b))continue;const _0x37b346=_0x39ce9a['hasAttribute'](_0x43a13e)?_0x39ce9a['getAttribute'](_0x43a13e)-0x1:0x0,_0x236889=this['_getSuggestionCoords'](_0x44cbea),_0x4d9220=_0x236889[_0x221593],_0xea22db=_0x236889[_0x43ef01];_0x4d9220<=_0x3b8a35[_0x3fcdcd]&&_0x3b8a35[_0x3fcdcd]+_0x37b346<=_0xea22db&&(_0x44cbea['addRange'](_0x18702b),_0x5d9665=!0x0);}return _0x5d9665;};_0x549dc0['model']['document']['registerPostFixer'](_0x36ea56=>{let _0x326929=!0x1;for(const _0x48d31c of _0x549dc0['model']['document']['differ']['getChanges']())if('insert'==_0x48d31c['type']){if('tableRow'==_0x48d31c['name']){for(const _0x48bc10 of _0x48d31c['position']['nodeAfter']['getChildren']())_0x326929=_0x326929||_0x48615c(_0x48bc10,_0x36ea56);}else'tableCell'==_0x48d31c['name']&&(_0x326929=_0x326929||_0x48615c(_0x48d31c['position']['nodeAfter'],_0x36ea56));}return _0x326929;});}['_getSuggestionCoords'](_0x5f3867){return this['_getCoordsForCells'](_0x5f3867['getRanges']()['map'](_0x24f874=>_0x24f874['start']['nodeAfter']));}}function _e(_0x74dd73){return Array['from'](new Set(_0x74dd73)['values']());}class Bt extends _0x1061bc{static get['requires'](){return[Dt];}['afterInit'](){const _0x5bdc12=this['editor'],_0x364f99=_0x5bdc12['model']['document']['selection'],_0x520939=_0x5bdc12['locale'];if(!_0x5bdc12['plugins']['has']('TableEditing'))return;const _0x1628d9=_0x5bdc12['plugins']['get']('TrackChangesEditing'),_0x48af60=_0x5bdc12['plugins']['get']('TableUtils'),_0x58db1f=_0x5bdc12['plugins']['get'](Dt);_0x58db1f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1628d9['enableCommand']('mergeTableCells',()=>{const _0x453fa3=_0x48af60['getSelectionAffectedTableCells'](_0x5bdc12['model']['document']['selection']);_0x5bdc12['model']['change'](()=>{_0x1628d9['markMultiRangeBlockFormat'](_0x453fa3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5bdc12['commands']['get']('mergeTableCells')['on']('execute',(_0x4a4eee,_0xbb98e9)=>{_0x5bdc12['commands']['get']('trackChanges')['value']&&(_0xbb98e9['length']>0x0&&_0xbb98e9[_0xbb98e9['length']-0x1]&&_0xbb98e9[_0xbb98e9['length']-0x1]['forceDefaultExecution']||_0x1628d9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4a4eee['stop']());},{'priority':'highest'});for(const _0x51c5a9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xdabe7f=_0x5bdc12['commands']['get'](_0x51c5a9);_0x1628d9['enableCommand'](_0x51c5a9,()=>{const _0xbeaff1=_0x5bdc12['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x52df2e=>_0x52df2e['is']('element','tableCell')),_0x4ddb58=_0xdabe7f['value'];_0x5bdc12['model']['change'](()=>{_0x1628d9['markMultiRangeBlockFormat']([_0xbeaff1,_0x4ddb58],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x45a419 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3d867e=_0x5bdc12['commands']['get'](_0x45a419);_0x1628d9['enableCommand'](_0x45a419,()=>{const _0x4946bb=_0x48af60['getSelectionAffectedTableCells'](_0x5bdc12['model']['document']['selection'])[0x0],_0x4a5de8=_0x4946bb['findAncestor']('table'),{column:_0x409cfc,row:_0x17e2ae}=_0x48af60['getCellLocation'](_0x4946bb);let _0x113d09=[];if('horizontally'==_0x3d867e['direction']){const _0x2c9d9d=_0x48af60['createTableWalker'](_0x4a5de8,{'startRow':_0x17e2ae,'endRow':_0x17e2ae,'includeAllSlots':!0x0});_0x113d09=Array['from'](_0x2c9d9d)['map'](_0x591980=>_0x591980['cell']);}else{const _0x161da6=_0x48af60['createTableWalker'](_0x4a5de8,{'column':_0x409cfc,'includeAllSlots':!0x0});_0x113d09=Array['from'](_0x161da6)['map'](_0x270100=>_0x270100['cell']);}_0x5bdc12['model']['change'](_0x42916c=>{_0x1628d9['markBlockFormat'](_0x42916c['createRangeOn'](_0x4946bb),{'commandName':_0x45a419,'commandParams':[]},_0x113d09,_0x45a419);});});}_0x1628d9['descriptionFactory']['registerDescriptionCallback'](_0x468a29=>{if('formatBlock'!=_0x468a29['type']&&'formatInline'!=_0x468a29['type'])return;const {data:_0x8e3fb4}=_0x468a29;return _0x8e3fb4&&'mergeTableCells'==_0x8e3fb4['commandName']?{'type':'format','content':o(_0x520939,'*Merge\x20cells*')}:void 0x0;}),_0x1628d9['descriptionFactory']['registerDescriptionCallback'](_0x776d34=>{if('formatBlock'!=_0x776d34['type']&&'formatInline'!=_0x776d34['type'])return;const {data:_0x45e7f5}=_0x776d34;return _0x45e7f5?'splitTableCellVertically'==_0x45e7f5['commandName']?{'type':'format','content':o(_0x520939,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x45e7f5['commandName']?{'type':'format','content':o(_0x520939,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x10380d=_0x58db1f['_acceptFormatSuggestionCallbackFactory']();for(const _0x355642 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1628d9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x355642,'accept',_0x10380d);for(const _0x185388 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1628d9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x185388,'accept',_0x10380d);_0x1628d9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x208501=>{_0x5bdc12['model']['change'](_0x199aec=>{const _0x1c9d90=Array['from'](_0x364f99['getRanges']())['map'](_0x1f983c=>_0x321f06['fromRange'](_0x1f983c));_0x199aec['setSelection'](_0x208501),_0x5bdc12['commands']['get']('mergeTableCells')['refresh'](),_0x5bdc12['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x565d93=_0x1c9d90['filter'](_0x4215e8=>'$graveyard'!=_0x4215e8['root']['rootName']);_0x565d93['length']>0x0&&_0x199aec['setSelection'](_0x565d93);for(const _0x57e796 of _0x1c9d90)_0x57e796['detach']();});});for(const _0x5799a5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd89806=_0x5bdc12['commands']['get'](_0x5799a5);_0xd89806['on']('set:isEnabled',(_0x535cc6,_0x33887c,_0x5079e0)=>{if(_0x5079e0){const _0x4527a3=_0x5bdc12['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dd7c0=>_0x4dd7c0['is']('element','tableCell'));this['_areMergableCells'](_0xd89806['value'],_0x4527a3)||(_0x535cc6['return']=!0x1,_0x535cc6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x14aefd=this['editor']['commands']['get']('mergeTableCells'),_0x49ed87=this['editor']['plugins']['get']('TableUtils');if(!_0x14aefd['isEnabled'])return!0x1;const _0x1cf39e=_0x49ed87['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x47537b of _0x1cf39e)for(const _0x4beac5 of _0x1cf39e)if(_0x47537b!=_0x4beac5&&!this['_areMergableCells'](_0x47537b,_0x4beac5))return!0x1;return!0x0;}['_areMergableCells'](_0x8844ba,_0x1d55e0){const _0x234120=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25f727=this['editor']['model']['createRangeOn'](_0x8844ba),_0x155696=this['editor']['model']['createRangeOn'](_0x1d55e0),_0x25f832=new Set(),_0x968c98=new Set();for(const _0x28f893 of _0x234120['getSuggestions']())if(('insertion'==_0x28f893['type']||'deletion'==_0x28f893['type']||'mergeTableCells'==_0x28f893['subType'])&&_0x28f893['isInContent']){for(const _0x58a6c1 of _0x28f893['getRanges']())_0x58a6c1['containsRange'](_0x25f727,!0x0)&&_0x25f832['add'](_0x28f893['type']+':'+_0x28f893['author']['id']),_0x58a6c1['containsRange'](_0x155696,!0x0)&&_0x968c98['add'](_0x28f893['type']+':'+_0x28f893['author']['id']);}if(_0x25f832['size']!=_0x968c98['size'])return!0x1;for(const _0x5bf4a4 of _0x25f832)if(!_0x968c98['has'](_0x5bf4a4))return!0x1;return!0x0;}}class Ot extends _0x1061bc{static get['requires'](){return[Dt];}['afterInit'](){const _0xdcdb61=this['editor'];if(!_0xdcdb61['plugins']['has']('TableEditing'))return;const _0x1e5752=_0xdcdb61['locale'],_0x383699=_0xdcdb61['plugins']['get']('TrackChangesEditing');_0x383699['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x383699['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x383699['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1e5752,'FORMAT_HEADER_ROW')),_0x383699['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1e5752,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54e145=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e0784=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x54e145['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2e0784),_0x54e145['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2e0784),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x590f98=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39156e=this['editor']['plugins']['get']('TableUtils');function _0x2e7375({showActiveMarker:_0x18aa44=!0x0,setDataAttribute:_0x2fb852=!0x0}={}){return(_0x4baff7,_0x5c4579,_0x45810c)=>{const {type:_0x33c8b1,id:_0x50e338}=_0x590f98['_splitMarkerName'](_0x5c4579['markerName']);if(!_0x590f98['hasSuggestion'](_0x50e338))return;const _0x437d0b=_0x590f98['getSuggestion'](_0x50e338),_0x521950=_0x437d0b['data'];if('formatBlock'!=_0x437d0b['type']||!_0x521950||'setTableColumnHeader'!=_0x521950['commandName'])return;if(_0x5c4579['item'])return void _0x4baff7['stop']();if(!_0x45810c['consumable']['consume'](_0x5c4579['markerRange'],_0x4baff7['name']))return;const _0x290e92=_0x5c4579['markerRange']['start']['nodeAfter'],_0x1a87ae=_0x5c4579['markerRange']['end']['nodeBefore'],_0x20407a=_0x290e92['parent']['parent'],{column:_0x53e78e}=_0x39156e['getCellLocation'](_0x290e92),{column:_0x1978e4}=_0x39156e['getCellLocation'](_0x1a87ae);for(let _0x426e21=_0x53e78e;_0x426e21<=_0x1978e4;_0x426e21++){const _0xbd9bd=_0x39156e['createTableWalker'](_0x20407a,{'column':_0x426e21,'includeAllSlots':!0x1});for(const _0x3cc7c5 of _0xbd9bd){const _0x5328bb=_0x3cc7c5['cell'],_0x1b8c07=_0x45810c['mapper']['toViewElement'](_0x5328bb);_0x45810c['writer']['addClass']('ck-suggestion-marker-'+_0x33c8b1,_0x1b8c07),_0x2fb852&&_0x45810c['writer']['setAttribute']('data-suggestion',_0x50e338,_0x1b8c07),_0x45810c['mapper']['bindElementToMarker'](_0x1b8c07,_0x5c4579['markerName']),_0x18aa44&&(_0x590f98['activeMarkers']['includes'](_0x5c4579['markerName'])?_0x45810c['writer']['addClass']('ck-suggestion-marker--active',_0x1b8c07):_0x45810c['writer']['removeClass']('ck-suggestion-marker--active',_0x1b8c07));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2e7375(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x519b90,_0x16916a,_0x5f59f9)=>{_0x5f59f9['options']['showSuggestionHighlights']&&_0x2e7375({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x519b90,_0x16916a,_0x5f59f9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5c1d3c,_0x32177c,_0x5e700a)=>{const {type:_0x1ca79d,id:_0x1affee}=_0x590f98['_splitMarkerName'](_0x32177c['markerName']);if(!_0x590f98['hasSuggestion'](_0x1affee))return;const _0x144176=_0x590f98['getSuggestion'](_0x1affee),_0x357989=_0x144176['data'];if('formatBlock'!=_0x144176['type']||!_0x357989||'setTableColumnHeader'!=_0x357989['commandName'])return;const _0x234ae9=_0x5e700a['mapper']['markerNameToElements'](_0x32177c['markerName']);if(_0x234ae9){for(const _0x5ab6f1 of _0x234ae9)_0x5e700a['writer']['removeClass']('ck-suggestion-marker-'+_0x1ca79d,_0x5ab6f1),_0x5e700a['writer']['removeClass']('ck-suggestion-marker--active',_0x5ab6f1),_0x5e700a['writer']['removeAttribute']('data-suggestion',_0x5ab6f1),_0x5e700a['mapper']['unbindElementFromMarkerName'](_0x5ab6f1,_0x32177c['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x59bef6=this['editor'],_0x1a287f=_0x59bef6['locale'];function _0x40cfca(_0x2fe10e){return{'type':'format','content':o(_0x1a287f,'*Format:*\x20%0',_0x2fe10e)};}_0x59bef6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x397644=>{if('formatBlock'!=_0x397644['type'])return;const {data:_0x51e846}=_0x397644;if(_0x51e846){if('setTableRowHeader'==_0x51e846['commandName']){const _0x422237=_0x51e846['commandParams'][0x0]['forceValue'];return _0x40cfca(o(_0x1a287f,_0x422237?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x51e846['commandName']){const _0x25002b=_0x51e846['commandParams'][0x0]['forceValue'];return _0x40cfca(o(_0x1a287f,_0x25002b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x1061bc{['afterInit'](){const _0x3b6e45=this['editor'],_0x9ea1e8=_0x3b6e45['locale'],_0x50722b=_0x3b6e45['plugins']['get']('TrackChangesEditing');function _0x50fbe4(_0x4d1473){return{'type':'format','content':''+o(_0x9ea1e8,'*Set\x20table\x20type:*\x20%0',_0x4d1473)};}_0x3b6e45['plugins']['has']('TableLayout')&&(_0x50722b['enableCommand']('insertTableLayout'),_0x50722b['enableDefaultAttributesIntegration']('tableType'),_0x50722b['descriptionFactory']['registerElementLabel'](_0x221288=>_0x221288['is']('element','table')&&'layout'===_0x221288['getAttribute']('tableType'),_0x14c4d7=>o(_0x9ea1e8,'ELEMENT_LAYOUT_TABLE',_0x14c4d7)),_0x50722b['descriptionFactory']['registerDescriptionCallback'](_0x4d7357=>{const {data:_0x3adbf6}=_0x4d7357;if(_0x3adbf6&&'tableType'==_0x3adbf6['key'])switch(_0x3adbf6['newValue']){case'layout':return _0x50fbe4(o(_0x9ea1e8,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x50fbe4(o(_0x9ea1e8,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x3c2e44=>[_0x3c2e44,null]));class Mt extends _0x1061bc{static get['requires'](){return[Dt];}['afterInit'](){const _0x3c5129=this['editor'];if(!_0x3c5129['plugins']['has']('TableClipboard'))return;const _0x53bd11=_0x3c5129['plugins']['get']('TrackChangesEditing'),_0x2aa63b=_0x3c5129['plugins']['get']('TableUtils'),_0x32a8c1=_0x3c5129['plugins']['get'](Dt),_0x4df360=_0x3c5129['plugins']['get']('TableClipboard'),_0xd6f18d=_0x3c5129['plugins']['get']('TableSelection'),_0x4e8a26=_0x3c5129['plugins']['get'](_0x25b63a);_0x32a8c1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3c5129['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3c5129['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5f04a9=null,_0x5da191=!0x1;_0x4e8a26['on']('contentInsertion',(_0x1b89c0,_0x9bc748)=>{_0x5da191='paste'===_0x9bc748['method'];}),_0x3c5129['model']['on']('insertContent',(_0xc6a628,_0x3fa7c2)=>{if(!_0x5da191&&null===_0xd6f18d['getSelectedTableCells']())return;const [_0x186fc4,_0x29cfd2]=_0x3fa7c2,_0x3c62e5=_0x3fa7c2[_0x3fa7c2['length']-0x1];_0x3c62e5&&_0x3c62e5['forceDefaultExecution']||_0x53bd11['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1570b4,_0x4fd1a7,_0x3f7874,_0x59c897,_0x3922e2){if(_0x4fd1a7&&!_0x4fd1a7['is']('documentSelection'))return!0x1;const _0x380c7a=_0x3922e2['getTableIfOnlyTableInContent'](_0x1570b4,_0x3f7874);if(!_0x380c7a||!Oe(_0x380c7a,void 0x0,_0x59c897))return!0x1;const _0x414112=_0x59c897['getSelectionAffectedTableCells'](_0x3f7874['document']['selection']);if(!_0x414112['length'])return!0x1;const _0x4da2ed=_0x414112[0x0]['findAncestor']('table'),_0x5b76ae=_0x59c897['getRowIndexes'](_0x414112),_0x44dc25=_0x59c897['getColumnIndexes'](_0x414112),_0x4c652a={'startRow':_0x5b76ae['first'],'endRow':_0x5b76ae['last'],'startColumn':_0x44dc25['first'],'endColumn':_0x44dc25['last']};return 0x1==_0x414112['length']&&(_0x4c652a['endRow']+=_0x59c897['getRows'](_0x380c7a)-0x1,_0x4c652a['endColumn']+=_0x59c897['getColumns'](_0x380c7a)-0x1),Oe(_0x4da2ed,_0x4c652a,_0x59c897);}(_0x186fc4,_0x29cfd2,_0x3c5129['model'],_0x2aa63b,_0x4df360)&&(_0xc6a628['stop'](),_0x5f04a9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3c5129['model']['change'](()=>{_0x3c5129['model']['insertContent'](_0x3fa7c2[0x0],_0x3fa7c2[0x1],_0x3fa7c2[0x2],{'forceDefaultExecution':!0x0});const _0x370217=_0x1b5ac0(),{rowInsertionRanges:_0x1ec58a,columnInsertionRanges:_0x4de2a5,insertionRanges:_0x2d1f09,deletionRanges:_0x3dad31,cells:_0x11b8e5}=_0x5f04a9;_0x1ec58a['length']&&_0x53bd11['markMultiRangeInsertion'](_0x1ec58a,'tablePasteRow',{'tablePasteChainId':_0x370217}),_0x4de2a5['length']&&_0x53bd11['markMultiRangeInsertion'](_0x4de2a5,'tablePasteColumn',{'tablePasteChainId':_0x370217}),_0x2d1f09['length']&&(_0x53bd11['markMultiRangeInsertion'](_0x2d1f09,'tablePaste',{'tablePasteChainId':_0x370217,'skipNestingCheck':!0x0}),_0x2d1f09['forEach'](_0xab238d=>_0xab238d['detach']?.())),_0x3dad31['length']&&(_0x53bd11['markMultiRangeDeletion'](_0x3dad31,'tablePaste',{'tablePasteChainId':_0x370217,'skipNestingCheck':!0x0}),_0x3dad31['forEach'](_0x4504d7=>_0x4504d7['detach']?.()));const _0x30bcfa=_0x53bd11['markMultiRangeBlockFormat'](_0x11b8e5['map'](({element:_0xb40215})=>_0xb40215),{'formatGroupId':_0x1b5ac0()},[],'tablePasteCell',{'tablePasteChainId':_0x370217});if(_0x30bcfa){const _0x460f98=_0x30bcfa['getMarkers'](),_0x2a2135=[];for(const {element:_0x5eecfe,attributes:_0x423fad}of _0x11b8e5){if(!_0x423fad)continue;const _0x4583dd=_0x3c5129['model']['createRangeOn'](_0x5eecfe),_0x418acd=_0x460f98['find'](_0x863452=>_0x863452['getRange']()['isEqual'](_0x4583dd));_0x418acd&&_0x2a2135['push']([_0x418acd['name'],_0x423fad]);}_0x2a2135['length']&&_0x30bcfa['setAttribute']('markerAttributes',Object['fromEntries'](_0x2a2135));}_0x5f04a9=null;}));},{'priority':_0x5bf0fe['high']+0xa}),_0x4e8a26['on']('contentInsertion',()=>{_0x5da191=!0x1;},{'priority':'lowest'}),_0x3c5129['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x195999,_0x10371d)=>{const [_0x13f821,_0x2743eb,,_0x1d4887]=_0x10371d;if(!_0x5f04a9)return;_0x195999['stop']();const _0x235370=_0x13f821['cell'],_0x2bbc8a=_0x2743eb,_0x5f4371=Be(_0x235370),_0x511830=Be(_0x2bbc8a);_0x195999['return']=_0x235370;let _0x48384f=null,_0x46f894=null;if(_0x511830||_0x5f4371){if(_0x5f4371&&!_0x511830){_0x1d4887['remove'](_0x235370['getChild'](0x0));for(const _0x1e8d94 of Array['from'](_0x2bbc8a['getChildren']()))_0x1d4887['insert'](_0x1e8d94,_0x235370,'end');const _0x2272df=_0x5f04a9['rowInsertionIndexes']['includes'](_0x13f821['row']),_0x2676eb=_0x5f04a9['columnInsertionIndexes']['includes'](_0x13f821['column']);_0x2272df||_0x2676eb||(_0x48384f=_0x321f06['fromRange'](_0x1d4887['createRangeIn'](_0x235370)));}else _0x511830&&!_0x5f4371&&(_0x46f894=_0x1d4887['createRangeIn'](_0x235370));}else{const _0x386cce=_0x1d4887['createElement']('tableCellSuggestion'),_0x3d5f84=_0x1d4887['createElement']('tableCellSuggestion');_0x1d4887['wrap'](_0x1d4887['createRangeIn'](_0x235370),_0x3d5f84),_0x1d4887['insert'](_0x386cce,_0x235370,0x0);for(const _0x20baf1 of Array['from'](_0x2bbc8a['getChildren']()))_0x1d4887['insert'](_0x20baf1,_0x386cce,'end');_0x48384f=_0x321f06['fromRange'](_0x1d4887['createRangeOn'](_0x386cce)),_0x46f894=_0x321f06['fromRange'](_0x1d4887['createRangeOn'](_0x3d5f84));}const _0x26dee9=Array['from'](_0x2bbc8a['getAttributes']())['filter'](([_0x46186f])=>Re['includes'](_0x46186f));_0x5f04a9['cells']['push']({'element':_0x235370,'attributes':_0x26dee9['length']?Object['fromEntries'](_0x26dee9):null}),_0x48384f&&_0x5f04a9['insertionRanges']['push'](_0x48384f),_0x46f894&&_0x5f04a9['deletionRanges']['push'](_0x46f894);},{'priority':'high'}),_0x2aa63b['on']('insertColumns',(_0x27c7fa,_0x48d7c0)=>{const [_0x403749,_0x43abad={}]=_0x48d7c0;if(!_0x5f04a9)return;const _0x3b4c99=_0x43abad['at']||0x0,_0x5b0048=_0x43abad['columns']||0x1;_0x5f04a9['columnInsertionIndexes']=new Array(_0x5b0048)['fill'](_0x3b4c99)['map']((_0x524868,_0x43ea7a)=>_0x524868+_0x43ea7a);for(const {cell:_0x4570de}of _0x2aa63b['createTableWalker'](_0x403749,{'startColumn':_0x3b4c99,'endColumn':_0x3b4c99+_0x5b0048-0x1}))_0x5f04a9['columnInsertionRanges']['push'](_0x3c5129['model']['createRangeOn'](_0x4570de));},{'priority':'low'}),_0x2aa63b['on']('insertRows',(_0x479ee9,_0x477e02)=>{const [_0x18386c,_0x43c73d={}]=_0x477e02;if(!_0x5f04a9)return;const _0x214697=_0x43c73d['at']||0x0,_0x3be114=_0x43c73d['rows']||0x1;_0x5f04a9['rowInsertionIndexes']=new Array(_0x3be114)['fill'](_0x214697)['map']((_0x5e5ff1,_0x21f41f)=>_0x5e5ff1+_0x21f41f);for(const {cell:_0x58dfb2}of _0x2aa63b['createTableWalker'](_0x18386c,{'startRow':_0x214697,'endRow':_0x214697+_0x3be114-0x1}))_0x5f04a9['rowInsertionRanges']['push'](_0x3c5129['model']['createRangeOn'](_0x58dfb2));},{'priority':'low'}),_0x53bd11['descriptionFactory']['registerDescriptionCallback'](_0x16074f=>{if(_0x16074f['subType']&&_0x16074f['subType']['startsWith']('tablePaste'))return _0x16074f['previous']?{}:{'type':'insertion','content':o(_0x3c5129['locale'],'*Replace\x20table\x20cells*')};});const _0x29675d=()=>!0x1;for(const _0x4f2fd6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x53bd11['_suggestionFactory']['registerCustomCallback']('insertion',_0x4f2fd6,'join',_0x29675d),_0x53bd11['_suggestionFactory']['registerCustomCallback']('deletion',_0x4f2fd6,'join',_0x29675d),_0x53bd11['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f2fd6,'join',_0x29675d);_0x53bd11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x29675d),_0x53bd11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2cdcfb,_0x30094c,_0xbbd3ff)=>{const _0x2961dc=_0x2cdcfb['map'](_0x53ba8c=>_0x53ba8c['getContainedElement']())['filter'](_0x493a53=>_0x493a53),_0x435b0c=new Map(_0x2961dc['map'](_0x4582a5=>[_0x4582a5,null]));if(_0x5f04a9){for(const {element:_0x290ba9,attributes:_0x1d0119}of _0x5f04a9['cells'])_0x1d0119&&_0x435b0c['set'](_0x290ba9,_0x1d0119);}else{if(_0xbbd3ff&&_0xbbd3ff['markerAttributes'])for(const [_0x16313,_0x486ad7]of Object['entries'](_0xbbd3ff['markerAttributes'])){const _0x3d0c0f=_0x3c5129['model']['markers']['get'](_0x16313),_0x1ff5fd=_0x3d0c0f?_0x3d0c0f['getRange']()['getContainedElement']():null;_0x1ff5fd&&_0x435b0c['set'](_0x1ff5fd,_0x486ad7);}}_0x3c5129['model']['change'](_0x24b86c=>{for(const [_0x111845,_0xd06e4d]of _0x435b0c)_0x24b86c['setAttributes']({...Ae,..._0xd06e4d},_0x111845);});});const _0x2f951e=(_0x49dc09,_0x45e220)=>{_0x53bd11['_suggestionFactory']['registerCustomCallback'](_0x49dc09,'tablePaste',_0x45e220,(_0x2b3b6d,_0x512d7e,_0xe70f92)=>{_0x3c5129['model']['change'](_0xb48256=>{const _0x14238b=[];for(const _0x455a3f of _0x2b3b6d){const _0x52fcc6=_0x455a3f['start']['nodeAfter'];_0x52fcc6['is']('element','tableCellSuggestion')&&_0x14238b['push'](_0x52fcc6);}_0x53bd11['_suggestionFactory']['getSuggestionCallback'](_0x49dc09,null,_0x45e220)(_0x2b3b6d,_0x512d7e,_0xe70f92);for(const _0xe2eed0 of _0x14238b)'$graveyard'!=_0xe2eed0['root']['rootName']&&_0xb48256['unwrap'](_0xe2eed0);});});};_0x2f951e('insertion','accept'),_0x2f951e('insertion','discard'),_0x2f951e('deletion','accept'),_0x2f951e('deletion','discard'),_0x53bd11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x362c4c=>{const _0x529386=_0x362c4c['map'](_0x51fcab=>_0x51fcab['getContainedElement']()),_0x2a88dc=_0x529386[0x0]['findAncestor']('table'),{minRow:_0x16d718,maxRow:_0x3e3efd}=_0x32a8c1['_getCoordsForCells'](_0x529386);_0x2aa63b['removeRows'](_0x2a88dc,{'at':_0x16d718,'rows':_0x3e3efd-_0x16d718+0x1});}),_0x53bd11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x34ee2b=>{const _0x3b0334=_0x34ee2b['map'](_0x3e9de5=>_0x3e9de5['getContainedElement']()),_0x21afdf=_0x3b0334[0x0]['findAncestor']('table'),{minColumn:_0x1be157,maxColumn:_0x39b598}=_0x32a8c1['_getCoordsForCells'](_0x3b0334);_0x2aa63b['removeColumns'](_0x21afdf,{'at':_0x1be157,'columns':_0x39b598-_0x1be157+0x1});});const _0xbddda1=(_0x455252,_0x1860e4)=>{if(!_0x1860e4['subType']||!_0x1860e4['subType']['startsWith']('tablePaste'))return;const _0x6b7462=_0x1860e4['attributes']['tablePasteChainId'],_0x5174df=_0x53bd11['getSuggestions']()['filter'](_0x28bb9a=>_0x28bb9a['isInContent']&&_0x28bb9a['attributes']&&_0x28bb9a['attributes']['tablePasteChainId']==_0x6b7462);_0x5174df['length']&&_0x1860e4['getAllAdjacentSuggestions']()['length']!=_0x5174df['length']&&_0x5174df['reduce']((_0x566caf,_0x37e3a2)=>(_0x566caf['next']=_0x37e3a2,_0x37e3a2['previous']=_0x566caf,_0x37e3a2));};function _0x3dab41(_0x5e6d23,_0x273ef1=!0x0){const {id:_0x1c06fb,authorId:_0x37ff85}=_0x53bd11['_splitMarkerName'](_0x5e6d23['markerName']),_0x32f155=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x25849c=_0x53bd11['activeMarkers']['includes'](_0x5e6d23['markerName']);return _0x25849c&&_0x32f155['push']('ck-suggestion-marker--active'),{'classes':_0x32f155,'attributes':{'data-suggestion':_0x1c06fb,'data-author-id':_0x37ff85},'priority':_0x25849c&&_0x273ef1?0xbc2:0xbb8};}_0x53bd11['on']('suggestionLoaded',_0xbddda1,{'priority':'high'}),_0x53bd11['on']('suggestionUnloaded',_0xbddda1,{'priority':'high'}),_0x3c5129['model']['document']['registerPostFixer'](()=>{let _0x4df458=!0x1;const _0x409675=Array['from'](_0x3c5129['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e8c35,data:_0x56478e}of _0x409675){const {group:_0x326d64,type:_0x2d753d,id:_0x12d7ec}=_0x53bd11['_splitMarkerName'](_0x4e8c35);if('suggestion'!=_0x326d64||'deletion'!=_0x2d753d||_0x56478e['oldRange'])continue;if(!_0x53bd11['hasSuggestion'](_0x12d7ec))continue;const _0x1c4645=_0x53bd11['getSuggestion'](_0x12d7ec)['getRanges'](),_0x22bf3f=_0x3c5129['plugins']['get']('Users')['me'];for(const _0x1a26fa of _0x53bd11['getSuggestions']()){if(!_0x1a26fa['isInContent']||_0x1a26fa['author']!=_0x22bf3f)continue;if('formatBlock'!=_0x1a26fa['type']||'tablePasteCell'!=_0x1a26fa['subType'])continue;if(_0x1a26fa['getRanges']()['every'](_0x56d4ba=>_0x1c4645['some'](_0x5f2874=>_0x5f2874['containsRange'](_0x56d4ba,!0x0)))){for(const _0x556620 of _0x1a26fa['getAllAdjacentSuggestions']())_0x556620['isInContent']&&(_0x556620['discard'](),_0x4df458=!0x0);}}}return _0x4df458;}),_0x3c5129['model']['document']['registerPostFixer'](_0x52ddbb=>{const _0x1841c1=_0x3c5129['commands']['get']('redo');if(!_0x1841c1||!_0x1841c1['_createdBatches']['has'](_0x52ddbb['batch']))return!0x1;let _0x2b15f4=!0x1;const _0x416295=_0x3c5129['plugins']['get']('Users')['me'],_0x341d3c=_0x3c5129['model']['document']['differ']['getChanges'](),_0x226434=Array['from'](_0x3c5129['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x52e937,data:_0x470f9f})=>{const {group:_0x3b9fbf,subType:_0x2debb6,authorId:_0xd4a0da}=_0x53bd11['_splitMarkerName'](_0x52e937);return'suggestion'==_0x3b9fbf&&'tablePaste'==_0x2debb6&&_0xd4a0da==_0x416295['id']&&!_0x470f9f['oldRange'];});for(const _0x35dd52 of _0x341d3c){if('insert'!=_0x35dd52['type']||'tableCellSuggestion'!=_0x35dd52['name']||0x1!=_0x35dd52['length'])continue;const _0x148536=_0x52ddbb['createRange'](_0x35dd52['position'],_0x35dd52['position']['getShiftedBy'](0x1));if(!_0x226434['find'](({data:_0x8d88ae})=>_0x8d88ae['newRange']['isEqual'](_0x148536))){for(const {name:_0x29ff4d,data:_0x565589}of _0x226434)if(_0x148536['containsRange'](_0x565589['newRange'])){_0x52ddbb['updateMarker'](_0x29ff4d,{'range':_0x148536}),_0x2b15f4=!0x0;break;}}}return _0x2b15f4;}),_0x3c5129['model']['document']['registerPostFixer'](_0x24fbf3=>{let _0x5e5764=!0x1;const _0x59b8e4=_0x3c5129['plugins']['get']('Users')['me'],_0x430d5=_0x53bd11['getSuggestions']()['filter'](_0x56a87f=>_0x56a87f['isInContent']&&_0x56a87f['author']==_0x59b8e4),_0x287a4a=new Set(),_0x3ccfe6=new Set();for(const _0x299109 of _0x430d5)if('tablePaste'==_0x299109['subType'])for(const _0x36d0a6 of _0x299109['getMarkers']()){const _0x563d3a=_0x36d0a6['getRange']()['getContainedElement']();if(_0x563d3a){if(_0x563d3a['is']('element','tableCellSuggestion')&&Be(_0x563d3a)){_0x299109['removeMarker'](_0x36d0a6['name']),_0x287a4a['add'](_0x563d3a),_0x5e5764=!0x0;const _0x3c2d39=_0x563d3a['nextSibling'],_0x4da09b=_0x563d3a['previousSibling'],_0x4cfe74=_0x3c2d39&&_0x3c2d39['is']('element','tableCellSuggestion'),_0x433260=_0x4da09b&&_0x4da09b['is']('element','tableCellSuggestion');_0x4cfe74&&!_0x287a4a['has'](_0x3c2d39)&&_0x3ccfe6['add'](_0x3c2d39),_0x433260&&!_0x287a4a['has'](_0x4da09b)&&_0x3ccfe6['add'](_0x4da09b);}else _0x563d3a['is']('element','paragraph')&&_0x563d3a['isEmpty']&&(_0x299109['removeMarker'](_0x36d0a6['name']),_0x5e5764=!0x0);}}else{if('tablePasteCell'==_0x299109['subType']){if(!_0x299109['attributes']||!_0x299109['attributes']['tablePasteChainId'])continue;const _0x275788=_0x299109['attributes']['markerAttributes'];if(_0x275788&&Object['keys'](_0x275788)['length'])continue;const _0x313bed=_0x299109['attributes']['tablePasteChainId'];let _0x118664=!0x0,_0x3a36be=!0x0;for(const _0x12fb2c of _0x430d5)if(_0x12fb2c['subType']&&_0x12fb2c['subType']['startsWith']('tablePaste')){if(!_0x12fb2c['attributes']['tablePasteChainId']){_0x3a36be=!0x1;break;}if(_0x12fb2c['id']!=_0x299109['id']&&_0x12fb2c['attributes']['tablePasteChainId']==_0x313bed){_0x118664=!0x1;break;}}_0x3a36be&&_0x118664&&(_0x299109['removeMarkers'](),_0x5e5764=!0x0);}}for(const _0xc08735 of _0x287a4a)_0x24fbf3['remove'](_0xc08735);for(const _0x236da7 of _0x3ccfe6)_0x24fbf3['unwrap'](_0x236da7);return _0x5e5764;}),_0x3c5129['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4cb6ec=>_0x3dab41(_0x4cb6ec),'converterPriority':'high'}),_0x3c5129['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5eb00c,_0x3c90a6)=>_0x3c90a6['options']['showSuggestionHighlights']?_0x3dab41(_0x5eb00c,!0x1):null,'converterPriority':'high'});const _0x6ff38=_0x3c5129['editing']['view'];this['listenTo'](_0x6ff38['document'],'clipboardOutput',(_0x217637,_0x2ba1bd)=>{const _0x54ba0e=[];for(const _0x19908c of _0x6ff38['createRangeIn'](_0x2ba1bd['content'])['getItems']())_0x19908c['is']('element','suggestion-td')&&_0x54ba0e['push'](_0x19908c);_0x6ff38['change'](_0x87f697=>{for(const _0x259f21 of _0x54ba0e)_0x87f697['move'](_0x87f697['createRangeIn'](_0x259f21),_0x87f697['createPositionBefore'](_0x259f21)),_0x87f697['remove'](_0x259f21);});});}}function Be(_0x46eac6){if(_0x46eac6['isEmpty'])return!0x0;const _0x48fc08=_0x46eac6['getChild'](0x0);return _0x48fc08['is']('element','paragraph')&&_0x48fc08['isEmpty'];}function Oe(_0xdc3e06,_0x5b5646={},_0x585e0b){for(const {isAnchor:_0x1cd964,cellHeight:_0x2e0f23,cellWidth:_0x48ac71}of _0x585e0b['createTableWalker'](_0xdc3e06,{'includeAllSlots':!0x0,..._0x5b5646}))if(!_0x1cd964||0x1!=_0x2e0f23||0x1!=_0x48ac71)return!0x1;return!0x0;}class Rt extends _0x1061bc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x893bf1=this['editor']['plugins']['get']('TrackChangesEditing');_0x893bf1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x893bf1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x893bf1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x893bf1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x893bf1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x893bf1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xff0489,_0xe9e83c){const _0x2fb881=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbf1c19=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5af5c0=_0xe9e83c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x549e28=_0xbf1c19['getColumnGroupElement'](_0x5af5c0);let _0x4e762e=_0x549e28?_0xbf1c19['getTableColumnsWidths'](_0x549e28):null,_0x173609=_0x5af5c0['getAttribute']('tableWidth')||null;const _0x58e84e=_0xe9e83c['tableWidth']||_0x173609,_0x290648=_0xe9e83c['columnWidths']||_0x4e762e,_0x2c5cd1=this['editor']['plugins']['get']('Users')['me'];for(const _0x2e812f of _0x2fb881['getSuggestions']()){const _0x3664ee=_0x2e812f['getContainedElement']();if('resizeTable'===_0x2e812f['subType']&&_0x3664ee===_0x5af5c0){_0x2e812f['author']!==_0x2c5cd1&&_0x2e812f['discard']();const _0x324343=_0x2e812f['data']['commandParams'];_0x173609=_0x324343[0x0]['tableWidth'],_0x4e762e=_0x324343[0x0]['columnWidths'];break;}}_0xff0489({'table':_0x5af5c0,'tableWidth':_0x58e84e,'columnWidths':_0x290648}),_0x2fb881['markBlockFormat'](_0x5af5c0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x173609,'columnWidths':_0x4e762e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x16bca7){if('formatBlock'!=_0x16bca7['type']&&'formatInline'!=_0x16bca7['type'])return;const {data:_0x1c5fe3}=_0x16bca7;if(_0x1c5fe3&&'resizeTable'===_0x1c5fe3['formatGroupId']){const _0x16664f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x16664f)};}}}class Tt extends _0x1061bc{['afterInit'](){const _0x45799b=this['editor'];_0x45799b['plugins']['has']('Template')&&_0x45799b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x1061bc{['afterInit'](){const _0x57a280=this['editor'];if(!_0x57a280['commands']['get']('insertTableOfContents'))return;_0x57a280['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4cb210=_0x57a280['plugins']['get']('TrackChangesEditing'),_0x120701=_0x57a280['locale'];_0x4cb210['descriptionFactory']['registerElementLabel']('tableOfContents',_0x473c83=>o(_0x120701,'ELEMENT_TABLE_OF_CONTENTS',_0x473c83));}}class Ut extends _0x1061bc{['afterInit'](){const _0x2bee6a=this['editor'];if(!_0x2bee6a['plugins']['has']('Title'))return;const _0xf44f40=_0x2bee6a['plugins']['get']('TrackChangesEditing');_0xf44f40['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2bee6a['locale'],'ELEMENT_TITLE')),_0x2bee6a['model']['document']['registerPostFixer'](_0x1f1112=>{let _0x5d2425=!0x1;const _0x10124e=Array['from'](_0x2bee6a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47b683,data:_0x481b9e}of _0x10124e){const {group:_0x1aa24f}=_0xf44f40['_splitMarkerName'](_0x47b683);if('suggestion'!==_0x1aa24f||!_0x481b9e['newRange'])continue;const _0x39187d=_0x481b9e['newRange'],_0x56d060=_0x39187d['end']['nodeBefore'];if(!_0x56d060||!_0x56d060['is']('element','title-content'))continue;if(!_0x39187d['start']['isTouching'](_0x39187d['end']))continue;const _0x1082ae=_0x2bee6a['model']['schema']['getNearestSelectionRange'](_0x39187d['end'],'forward');if(_0x1082ae&&_0x1082ae['isCollapsed']){const _0x1ec014=_0x1f1112['createRange'](_0x39187d['start'],_0x1082ae['start']);_0x1ec014['isEqual'](_0x39187d)||(_0x1f1112['updateMarker'](_0x47b683,{'range':_0x1ec014}),_0x5d2425=!0x0);}_0x5d2425||(_0x1f1112['removeMarker'](_0x47b683),_0x5d2425=!0x0);}return _0x5d2425;});}}class Vt extends _0x1061bc{['afterInit'](){const _0x37d39d=this['editor'],_0x1815da=_0x37d39d['plugins']['get']('TrackChangesEditing');_0x37d39d['plugins']['has']('Uploadcare')&&(_0x1815da['enableCommand']('uploadcare'),_0x37d39d['plugins']['has']('UploadcareImageEdit')&&(_0x1815da['enableCommand']('uploadcareImageEdit'),_0x1815da['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1815da['descriptionFactory']['registerDescriptionCallback'](_0x28e9a1=>{if('attribute'!=_0x28e9a1['type'])return;const {data:_0x3c430c}=_0x28e9a1;return _0x3c430c&&'uploadcareImageId'==_0x3c430c['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x1061bc{['afterInit'](){const _0x65b134=this['editor'],_0x25679c=_0x65b134['plugins']['get']('TrackChangesEditing');_0x65b134['plugins']['has']('UndoEditing')&&(_0x25679c['enableCommand']('undo'),_0x25679c['enableCommand']('redo'));}}class Pt extends _0x1061bc{static get['requires'](){return[Dt];}['afterInit'](){const _0x31c35d=this['editor'];if(!_0x31c35d['plugins']['has']('TableCaptionEditing'))return;_0x31c35d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x1061bc{['tableProperties'];['tableCellProperties'];constructor(_0x324860){super(_0x324860),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x324860['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x592f0c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x41b43e of this['tableProperties'])_0x592f0c['enableCommand'](_0x41b43e,(_0x17ed4d,_0x41bc57)=>{const _0x389ee5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x41b43e,[_0x389ee5],this['tableProperties'],'tableProperties',_0x17ed4d,_0x41bc57);});_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x592f0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x184ad0,_0xd4cea4)=>this['handleDiscardAction'](this['tableProperties'],_0x184ad0,_0xd4cea4)),_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x48b84e of this['tableCellProperties'])this['editor']['commands']['get'](_0x48b84e)&&_0x592f0c['enableCommand'](_0x48b84e,(_0x3f907f,_0x2dfe70)=>{const _0x3b1afa=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x48b84e,_0x3b1afa,this['tableCellProperties'],'tableCellProperties',_0x3f907f,_0x2dfe70);});_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x592f0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x434610,_0x2867e3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x434610,_0x2867e3)),_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x592f0c['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x592f0c['descriptionFactory']['registerDescriptionCallback'](_0x479f0e=>this['handleSuggestionDescription'](_0x479f0e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x19c18f,_0xcbbd97,_0x3870ac,_0x46b832,_0x1fe5bb,_0x547804){const _0x5edc49=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x547804['batch'],()=>{for(const _0x928a3f of _0xcbbd97){if(this['_getSuggestion'](_0x928a3f,_0x46b832))_0x1fe5bb(_0x547804);else{const _0x1eb05d={};for(const _0xd3a847 of _0x3870ac){const _0x11f4a7=_0x928a3f['getAttribute'](_0xd3a847);void 0x0!==_0x11f4a7&&(_0x1eb05d[_0xd3a847]=_0x11f4a7);}_0x1fe5bb(_0x547804),_0x5edc49['markBlockFormat'](_0x928a3f,{'commandParams':[_0x1eb05d]},[],_0x46b832);}}});}['handleDiscardAction'](_0x366270,_0x58ce2b,_0x47f60b){const _0x4a1ad1=_0x58ce2b[0x0]['start']['nodeAfter'],_0x1b1f85=_0x47f60b['commandParams'][0x0];this['editor']['model']['change'](_0x2aa5d4=>{for(const _0x1a1db2 of _0x366270)void 0x0!==_0x1b1f85[_0x1a1db2]?_0x2aa5d4['setAttribute'](_0x1a1db2,_0x1b1f85[_0x1a1db2],_0x4a1ad1):_0x2aa5d4['removeAttribute'](_0x1a1db2,_0x4a1ad1);});}['handleSuggestionDescription'](_0x2f846a){if(_0x2f846a['data'])switch(_0x2f846a['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'](_0xb60043,_0x10bc74){const _0xebaa42=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x377e6a of _0xebaa42['getSuggestions']({'skipNotAttached':!0x0})){const _0x662047=_0x377e6a['getContainedElement']();if(_0x377e6a['subType']===_0x10bc74&&_0x662047===_0xb60043)return _0x377e6a;}return null;}['_registerTablePropertiesAttributes'](){const _0x13d3c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x329959=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x109d82 of _0x329959){const _0x18aa66=_0x109d82['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x13d3c4['descriptionFactory']['registerAttributeLabel'](_0x109d82,o(this['editor']['locale'],'FORMAT_'+_0x18aa66));}}}class Lt extends _0x1061bc{['afterInit'](){const _0x576f1e=this['editor'];if(!_0x576f1e['plugins']['has']('LineHeight'))return;const _0x35f0d7=_0x576f1e['plugins']['get']('TrackChangesEditing'),_0x1e77bd=_0x576f1e['locale'];_0x35f0d7['enableDefaultAttributesIntegration']('lineHeight'),_0x35f0d7['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1e77bd,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1061bc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5ea722,_0x14dd6c,_0xf99456,_0x52e720,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15e166){super(_0x15e166),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x585e2d,_0xafe96d,_0x2b090a,_0x33cb66)=>{this['_model']['change'](()=>{for(const _0x3608ab of[..._0x33cb66,..._0x2b090a])this['_model']['markers']['has'](_0x3608ab)&&_0x15e166['editing']['reconvertMarker'](_0x3608ab);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x15e166['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x15e166['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x15e166['config']['get']('trackChanges.trackFormatChanges'),_0x15e166['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x15e166['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x15e166,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3c20c6=this['editor'];_0x3c20c6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41b9cc,{writer:_0x3c43b0})=>{let _0x69fdef='suggestion:'+_0x41b9cc['getAttribute']('suggestion-type')+':'+_0x41b9cc['getAttribute']('id');return _0x41b9cc['getAttribute']('marker-count')&&(_0x69fdef+=':'+_0x41b9cc['getAttribute']('marker-count')),_0x3c43b0['createElement']('$marker',{'data-name':_0x69fdef});}}),_0x3c20c6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3c20c6['model']['document']['registerPostFixer'](_0x5954a7=>{let _0x544d02=!0x1;const _0x300e7a=Array['from'](_0x3c20c6['model']['document']['differ']['getChangedMarkers']()),_0x2a810f=new Set();for(const {name:_0x29a2e5,data:_0x28c755}of _0x300e7a){const {group:_0x431a5f,type:_0x33065e,subType:_0xccb7ae,id:_0x1acd8a}=this['_splitMarkerName'](_0x29a2e5);if('suggestion'!==_0x431a5f)continue;const _0x2b4de4=_0xccb7ae?'suggestion:'+_0x33065e+':'+_0xccb7ae+':'+_0x1acd8a:'suggestion:'+_0x33065e+':'+_0x1acd8a,_0x5bc48d=_0x3c20c6['model']['markers']['getMarkersGroup'](_0x2b4de4),_0x5868ab=_0x3c20c6['model']['markers']['get'](_0x29a2e5),_0x6a0b06=this['_suggestions']['get'](_0x1acd8a);if(null!=_0x28c755['newRange']){'formatInline'==_0x33065e&&(_0x544d02=_0x544d02||Wt(_0x28c755['newRange'],_0x29a2e5,_0x5954a7,_0x3c20c6['model']['schema']));const _0x7796d2='attribute'==_0x33065e&&this['_isBlockAttribute'](_0xccb7ae['split']('|')[0x0]),_0x8ce057='attribute'==_0x33065e&&this['_isInlineAttribute'](_0xccb7ae['split']('|')[0x0]);if(_0x28c755['newRange']['isCollapsed']||'$graveyard'==_0x28c755['newRange']['root']['rootName']||'formatBlock'==_0x33065e&&!Qt(_0x28c755['newRange'])||_0x7796d2&&!Qt(_0x28c755['newRange'])||_0x8ce057&&Xt(_0x28c755['newRange'])||'deletion'==_0x33065e&&Xt(_0x28c755['newRange'])||_0x5868ab&&Yt(_0x5868ab,_0x5bc48d))_0x5954a7['removeMarker'](_0x29a2e5),_0x544d02=!0x0;else{if(!_0x6a0b06||!_0x6a0b06['isInContent'])continue;if(_0x28c755['newRange']&&_0x28c755['oldRange']&&_0x28c755['newRange']['isEqual'](_0x28c755['oldRange']))continue;_0x2a810f['add'](_0x6a0b06);}}}return _0x2a810f['size']>0x0&&(_0x544d02=!!this['_joinWithAdjacentSuggestions'](_0x2a810f)||_0x544d02),_0x544d02;}),_0x3c20c6['model']['document']['registerPostFixer'](_0x3573ae=>{let _0x1063c5=!0x1;for(const _0x4fa586 of _0x3c20c6['model']['document']['differ']['getChanges']())if('insert'==_0x4fa586['type'])for(const _0x48afb5 of this['_suggestions']['values']()){if(_0x48afb5['isMultiRange']||!_0x48afb5['isInContent'])continue;const _0x450f5b='formatBlock'==_0x48afb5['type'],_0x21cb8b=this['_getAttributeKey'](_0x48afb5),_0x391bc9=_0x21cb8b&&this['_isBlockAttribute'](_0x21cb8b);if(!_0x450f5b&&!_0x391bc9)continue;const _0x1f0bd9=_0x48afb5['getFirstRange']();if(_0x1f0bd9['start']['parent']!=_0x1f0bd9['end']['parent']&&!_0x1f0bd9['end']['isAtEnd']){const _0x18911e=_0x3c20c6['model']['createPositionAt'](_0x1f0bd9['start']['nodeAfter'],'end'),_0x1ba848=_0x3c20c6['model']['createRange'](_0x1f0bd9['start'],_0x18911e);_0x3573ae['updateMarker'](_0x48afb5['getFirstMarker'](),{'range':_0x1ba848}),_0x1063c5=!0x0;}}return _0x1063c5;}),_0x3c20c6['model']['document']['registerPostFixer'](_0xc0fd6e=>this['_processAttributeChanges'](_0xc0fd6e)),_0x3c20c6['model']['document']['registerPostFixer'](_0x5e08c3=>!_0x5e08c3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e08c3)),_0x3c20c6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3c20c6['model']['document']['on']('change:data',(_0x343bd0,_0x5f1fd7)=>{if(!_0x5f1fd7['isLocal']||_0x5f1fd7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f0c6d=_0x3c20c6['model']['document']['differ']['getChanges']();if(0x0==_0x3f0c6d['length'])return;const _0x522a7f=[],_0x3ceefd=_0x3f0c6d['filter'](_0x346f47=>'attribute'==_0x346f47['type']),_0x159801=_0x3f0c6d['filter'](_0x3dc2ef=>'insert'==_0x3dc2ef['type']&&'$text'!=_0x3dc2ef['name']);for(const _0xa73912 of _0x3ceefd)this['_isRegisteredAttribute'](_0xa73912['attributeKey'])&&_0x522a7f['push']({'key':_0xa73912['attributeKey'],'newValue':_0xa73912['attributeNewValue'],'oldValue':_0xa73912['attributeOldValue'],'range':Zt(_0xa73912['range'],_0x3c20c6['model'])});for(const _0x1a3c0c of _0x159801){if('rename'!=_0x1a3c0c['action']&&'refresh'!=_0x1a3c0c['action'])continue;const _0xad43b6=tn(_0x1a3c0c['position']['nodeAfter'],_0x3c20c6['model']),_0x37ee3f=_0x1a3c0c['before'];'rename'==_0x1a3c0c['action']&&_0x522a7f['push']({'key':m,'newValue':_0x1a3c0c['name'],'oldValue':_0x37ee3f['name'],'range':_0xad43b6});for(const [_0x446e4c,_0x2f3893]of _0x37ee3f['attributes']){if(!this['_isRegisteredAttribute'](_0x446e4c))continue;const _0x2cfc52=_0x1a3c0c['attributes']['get'](_0x446e4c);_0x2f3893!==_0x2cfc52&&_0x522a7f['push']({'key':_0x446e4c,'newValue':_0x2cfc52,'oldValue':_0x2f3893,'range':_0xad43b6});}for(const [_0xe03450,_0x1a605a]of _0x1a3c0c['attributes'])this['_isRegisteredAttribute'](_0xe03450)&&(_0x37ee3f['attributes']['has'](_0xe03450)||_0x522a7f['push']({'key':_0xe03450,'newValue':_0x1a605a,'oldValue':null,'range':_0xad43b6}));}0x0!=_0x522a7f['length']&&_0x3c20c6['model']['enqueueChange'](_0x5f1fd7,_0xd9342c=>{const _0x2d2d28=_0x1b5ac0();for(const {range:_0x15e451,key:_0x4a4554,oldValue:_0x220990,newValue:_0x21e634}of _0x522a7f)this['markAttributeChange'](_0x15e451,_0x4a4554,_0x220990,_0x21e634,{'groupId':_0x2d2d28});this['_reduceExistingSuggestions'](_0xd9342c,_0x522a7f);});},{'priority':'lowest'}),_0x3c20c6['model']['markers']['on']('update:suggestion',(_0x5668ee,_0x4a33d2,_0x46ab51)=>{if(null==_0x46ab51){const {id:_0x2f1f57}=this['_splitMarkerName'](_0x4a33d2['name']),_0x3532b5=this['_suggestions']['get'](_0x2f1f57);_0x3532b5&&_0x3532b5['addMarkerName'](_0x4a33d2['name']);}}),_0x3c20c6['model']['document']['on']('change:data',()=>{const _0x2391f7=Array['from'](_0x3c20c6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3a3881=>'suggestion'===this['_splitMarkerName'](_0x3a3881['name'])['group']);if(0x0===_0x2391f7['length'])return;_0x2391f7['sort']((_0x3edb91,_0x5b8c93)=>{const _0x171fdd=_0x3edb91['data']['oldRange'],_0x29844f=_0x5b8c93['data']['oldRange'];return null===_0x171fdd&&null===_0x29844f?0x0:null===_0x171fdd&&null!==_0x29844f?-0x1:null!==_0x171fdd&&null===_0x29844f?0x1:_0x171fdd['start']['isBefore'](_0x29844f['start'])?-0x1:0x1;});const _0x131d38=new Set(),_0x4712d4=new Set();for(const {name:_0x5040fe,data:_0x363262}of _0x2391f7){const {id:_0x39d864}=this['_splitMarkerName'](_0x5040fe);if(null===_0x363262['oldRange']){const _0x33ce3d=this['_handleNewSuggestionMarker'](_0x5040fe);_0x4712d4['add'](_0x33ce3d);}else{const _0x412675=this['_suggestions']['get'](_0x39d864);null!==_0x363262['newRange']||_0x412675['isInContent']?(_0x131d38['add'](_0x412675['head']),_0x4712d4['add'](_0x412675)):this['_removeSuggestion'](_0x412675);}}_0x4712d4['size']>0x0&&this['_refreshSuggestionsChain'](_0x4712d4);for(const _0x1715cc of _0x131d38)this['fire']('suggestionChanged',_0x1715cc);}),_0x3c20c6['model']['on']('applyOperation',(_0x588f7e,_0x22b65e)=>{const _0x12c76d=_0x22b65e[0x0];if(!this['_suggestions']['size'])return;if(!_0x12c76d['isDocumentOperation'])return;if(_0x12c76d['batch']['isUndo']||!_0x12c76d['batch']['isLocal'])return;let _0x355596,_0xbf6c9f;switch(_0x12c76d['type']){case'insert':_0x355596=_0x3c20c6['model']['createPositionAt'](_0x12c76d['position']),_0xbf6c9f=_0x355596['getShiftedBy'](_0x12c76d['howMany']);break;case'split':_0x355596=_0x3c20c6['model']['createPositionAt'](_0x12c76d['splitPosition']),_0xbf6c9f=_0x3c20c6['model']['createPositionAt'](_0x12c76d['moveTargetPosition']);break;case'move':_0x355596=_0x3c20c6['model']['createPositionAt'](_0x12c76d['targetPosition']),_0xbf6c9f=_0x355596['getShiftedBy'](_0x12c76d['howMany']);break;default:return;}const _0x305336=_0x3c20c6['model']['createRange'](_0x355596,_0xbf6c9f);_0x3c20c6['model']['change'](()=>{for(const {suggestion:_0x58507a,meta:_0x4c1275}of this['_findSuggestions'](_0x305336)){if(_0x58507a['isMultiRange'])continue;if('formatInline'==_0x58507a['type'])continue;const _0xd65a0e=this['_getAttributeKey'](_0x58507a);if(_0xd65a0e&&this['_isBlockAttribute'](_0xd65a0e)&&'split'!=_0x12c76d['type'])continue;const _0x3cbc79=_0x58507a['data']&&_0x58507a['data']['multipleBlocks'];('formatBlock'!=_0x58507a['type']||'split'==_0x12c76d['type']&&!_0x3cbc79)&&(_0x4c1275['containsRangeInObject']||'insertion'==_0x58507a['type']&&_0x4c1275['isOwn']||_0x58507a['getFirstRange']()['containsRange'](_0x305336)&&this['_breakSuggestionMarker'](_0x58507a,_0x355596,_0xbf6c9f));}});},{'priority':'lowest'}),_0x3c20c6['model']['on']('deleteContent',(_0x38f22b,_0x128847)=>{const _0x25828b=_0x128847[0x0],_0x4b0e53=_0x128847[0x1];if(_0x4b0e53&&_0x4b0e53['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x25828b['isCollapsed'])return;const _0x4fc33f=_0x3c20c6['model']['schema'],{start:_0x22cb14,end:_0x1656d3}=_0x25828b['getFirstRange'](),_0x439014=_0x22cb14['nodeAfter']&&_0x4fc33f['isLimit'](_0x22cb14['nodeAfter'])?null:_0x4fc33f['getNearestSelectionRange'](_0x22cb14,'forward'),_0x2a97c0=_0x1656d3['nodeBefore']&&_0x4fc33f['isLimit'](_0x1656d3['nodeBefore'])?null:_0x4fc33f['getNearestSelectionRange'](_0x1656d3,'backward'),_0x56f488=_0x3c20c6['model']['createRange'](_0x439014?_0x439014['start']:_0x22cb14,_0x2a97c0?_0x2a97c0['end']:_0x1656d3);_0x3c20c6['model']['change'](_0x11fb70=>{this['markDeletion'](_0x56f488);const _0x3bd3e9=_0x3c20c6['model']['schema']['getNearestSelectionRange'](_0x56f488['start']);_0x25828b['is']('documentSelection')?_0x11fb70['setSelection'](_0x3bd3e9):_0x25828b['setTo'](_0x3bd3e9);}),_0x38f22b['stop']();},{'priority':_0x5bf0fe['normal']+0xa}),_0x3c20c6['model']['on']('insertContent',(_0x57f64c,_0x303ce3)=>{const _0x1f38b8=_0x303ce3[_0x303ce3['length']-0x1];_0x1f38b8&&_0x1f38b8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3c20c6['model']['change'](()=>{let _0x550e53=_0x3c20c6['model']['insertContent'](_0x303ce3[0x0],_0x303ce3[0x1],_0x303ce3[0x2],{'forceDefaultExecution':!0x0});if(!_0x550e53)return;_0x57f64c['return']=_0x550e53['clone']();const _0x50a730=_0x550e53['end']['nodeBefore'],_0xff3450=_0x3c20c6['model']['schema'];_0x50a730&&_0xff3450['isBlock'](_0x50a730)&&!_0xff3450['isObject'](_0x50a730)&&(_0x550e53=_0x3c20c6['model']['createRange'](_0x550e53['start'],_0x3c20c6['model']['createPositionAt'](_0x50a730,'end'))),this['markInsertion'](_0x550e53);}),_0x57f64c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x32d5a9=new O(_0x3c20c6,this['_suggestions']);_0x3c20c6['commands']['add']('acceptSuggestion',_0x32d5a9),this['enableCommand']('acceptSuggestion');const _0x5462ef=new x(_0x3c20c6,this['_suggestions']);_0x3c20c6['commands']['add']('discardSuggestion',_0x5462ef),this['enableCommand']('discardSuggestion'),_0x3c20c6['commands']['add']('acceptAllSuggestions',new M(_0x3c20c6,_0x32d5a9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3c20c6['commands']['add']('discardAllSuggestions',new M(_0x3c20c6,_0x5462ef,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3c20c6['commands']['add']('acceptSelectedSuggestions',new R(_0x3c20c6,_0x32d5a9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3c20c6['commands']['add']('discardSelectedSuggestions',new R(_0x3c20c6,_0x5462ef,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x294d43=_0x3c20c6['plugins']['get']('CommentsRepository');this['listenTo'](_0x294d43,'addComment',(_0x20b95d,{threadId:_0x3e1cea})=>{const _0x3f2114=this['_suggestions']['get'](_0x3e1cea);_0x3f2114&&_0x3f2114['commentThread']&&0x1===_0x3f2114['commentThread']['length']&&this['_updateSuggestionData'](_0x3e1cea,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x294d43,'removeComment',(_0x2bb34d,{threadId:_0x27940c})=>{const _0x2430b7=this['_suggestions']['get'](_0x27940c);_0x2430b7&&_0x2430b7['commentThread']&&!_0x2430b7['commentThread']['length']&&this['_updateSuggestionData'](_0x27940c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1cf319){const _0x223a89=_0x4603bb([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x528343=0x3d8d0df,_0x5297b5=0x3df58cf^_0x528343,_0x3e546e=window[_0x4603bb([0x44,0x61,0x74,0x65])][_0x4603bb([0x6e,0x6f,0x77])](),_0x1d0a2b=_0x1cf319[_0x4603bb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12cdc3=new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d46f2=>{_0x1d0a2b[_0x4603bb([0x6f,0x6e,0x63,0x65])](_0x4603bb([0x72,0x65,0x61,0x64,0x79]),_0x5d46f2);}),_0x440901={[_0x4603bb([0x6b,0x74,0x79])]:_0x4603bb([0x45,0x43]),[_0x4603bb([0x75,0x73,0x65])]:_0x4603bb([0x73,0x69,0x67]),[_0x4603bb([0x63,0x72,0x76])]:_0x4603bb([0x50,0x2d,0x32,0x35,0x36]),[_0x4603bb([0x78])]:_0x4603bb([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]),[_0x4603bb([0x79])]:_0x4603bb([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]),[_0x4603bb([0x61,0x6c,0x67])]:_0x4603bb([0x45,0x53,0x32,0x35,0x36])},_0x201931=_0x1d0a2b[_0x4603bb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4603bb([0x67,0x65,0x74])](_0x4603bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd60d3d(){let _0x558961,_0x5de3a4=null,_0x1cf83f=null;try{if(_0x201931==_0x4603bb([0x47,0x50,0x4c]))return _0x4603bb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x558961=_0x3781f2(),!_0x558961)return _0x4603bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x558961[_0x4603bb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cf83f=_0x2f066a(_0x558961[_0x4603bb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x558961[_0x4603bb([0x6a,0x74,0x69])])),await _0x4bc02a()?_0x31b325()?_0x23300c()?_0x4603bb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x289394()?(_0x558961[_0x4603bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4603bb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5de3a4=_0x18dc93(_0x4603bb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f1761()):_0x4603bb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4603bb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4603bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4603bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23300c(){const _0xc5bd9a=[_0x4603bb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4603bb([0x74,0x72,0x69,0x61,0x6c])][_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x558961[_0x4603bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e546e/0x3e8:0xe10*_0x5297b5;return _0x558961[_0x4603bb([0x65,0x78,0x70])]<_0xc5bd9a;}function _0x31b325(){const _0x3271a8=_0x558961[_0x4603bb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3271a8)return!0x1;if(_0x3271a8[_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4603bb([0x2a])))return!0x0;if(_0x3271a8[_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4603bb([0x54,0x43])))return!0x0;if(_0x3271a8[_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4603bb([0x52,0x54,0x43]))){if(_0x26db11())return!0x0;if(_0x3f3a7b()||_0x350696())return!0x0;}return!0x1;}function _0x289394(){const _0x34384f=_0x558961[_0x4603bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34384f||0x0==_0x34384f[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44a676}=new URL(window[_0x4603bb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34384f[_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44a676))return!0x0;const _0x1f69dd=_0x44a676[_0x4603bb([0x73,0x70,0x6c,0x69,0x74])](_0x4603bb([0x2e]));return _0x34384f[_0x4603bb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1977e9=>_0x1977e9[_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4603bb([0x2a])))[_0x4603bb([0x6d,0x61,0x70])](_0x2a55e3=>_0x2a55e3[_0x4603bb([0x73,0x70,0x6c,0x69,0x74])](_0x4603bb([0x2e])))[_0x4603bb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27804e=>_0x27804e[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f69dd[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4603bb([0x6d,0x61,0x70])](_0x2adccc=>Array(_0x1f69dd[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2adccc[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4603bb([0x66,0x69,0x6c,0x6c])](_0x2adccc[0x0]===_0x4603bb([0x2a])?_0x4603bb([0x2a]):'')[_0x4603bb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2adccc))[_0x4603bb([0x73,0x6f,0x6d,0x65])](_0x409c8c=>_0x1f69dd[_0x4603bb([0x65,0x76,0x65,0x72,0x79])]((_0x238a2c,_0xda73f7)=>_0x409c8c[_0xda73f7]===_0x238a2c||_0x409c8c[_0xda73f7]===_0x4603bb([0x2a])));}function _0x3f1761(){return _0x5de3a4&&_0x1cf83f?new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c7b83,_0x504a06)=>{_0x5de3a4[_0x4603bb([0x74,0x68,0x65,0x6e])](_0x5c7b83,_0x504a06),_0x1cf83f[_0x4603bb([0x74,0x68,0x65,0x6e])](_0x43aa51=>{_0x43aa51!=_0x4603bb([0x56,0x61,0x6c,0x69,0x64])&&_0x5c7b83(_0x43aa51);},_0x504a06);}):_0x5de3a4||_0x1cf83f||_0x4603bb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f066a(_0xcdc3be,_0x2eb8fd){return new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58883b=>{if(_0x3f4ddc())return _0x58883b(_0x4603bb([0x56,0x61,0x6c,0x69,0x64]));_0x17bbc9(),_0x1d0a2b[_0x4603bb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4603bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x545a9c=!0x1;const _0x1d491e=_0x1b5ac0();function _0x4a94c5(_0x31304c){return!!_0x31304c&&(typeof _0x31304c===_0x4603bb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31304c===_0x4603bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31304c[_0x4603bb([0x74,0x68,0x65,0x6e])]===_0x4603bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31304c[_0x4603bb([0x63,0x61,0x74,0x63,0x68])]===_0x4603bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29752a(_0x2c5e3e){_0x103155(_0x2c5e3e)[_0x4603bb([0x74,0x68,0x65,0x6e])](_0x58258f=>{if(!_0x58258f||_0x58258f[_0x4603bb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4603bb([0x6f,0x6b]))return _0x4603bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4663ca(_0x2b248a(_0x1d491e+_0x2eb8fd))!=_0x58258f[_0x4603bb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4603bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4603bb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4603bb([0x74,0x68,0x65,0x6e])](_0x53dd37=>(_0x489f22(),_0x53dd37),()=>{const _0x3a30da=_0xc52d10();return null==_0x3a30da?(_0x489f22(),_0x4603bb([0x56,0x61,0x6c,0x69,0x64])):_0x4603bb(_0x3e546e-_0x3a30da>(0x27d454df^_0x528343)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4603bb([0x74,0x68,0x65,0x6e])](_0x58883b)[_0x4603bb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58883b(_0x4603bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x526663=0x3ee3e5f^_0x528343;function _0x489f22(){const _0x54e530=_0x4603bb([0x6c,0x6c,0x63,0x74,0x2d])+_0x4663ca(_0x2b248a(_0xcdc3be)),_0x39270a=_0x42cadd(_0x4663ca(window[_0x4603bb([0x4d,0x61,0x74,0x68])][_0x4603bb([0x63,0x65,0x69,0x6c])](_0x3e546e/_0x526663)));window[_0x4603bb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4603bb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54e530,_0x39270a);}function _0xc52d10(){const _0x4fe857=_0x4603bb([0x6c,0x6c,0x63,0x74,0x2d])+_0x4663ca(_0x2b248a(_0xcdc3be)),_0x28c78e=window[_0x4603bb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4603bb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fe857);return _0x28c78e?window[_0x4603bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42cadd(_0x28c78e),0x10)*_0x526663:null;}function _0x103155(_0x33cb97){return new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc7660d,_0x28ecb8)=>{_0x33cb97[_0x4603bb([0x74,0x68,0x65,0x6e])](_0xc7660d,_0x28ecb8),window[_0x4603bb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28ecb8,0x3d9041f^_0x528343);});}}_0x1d0a2b[_0x4603bb([0x6f,0x6e])](_0x4603bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59845a,_0x23932e)=>{if(_0x23932e[0x0]!=_0xcdc3be)return _0x58883b(_0x4603bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23932e[0x1]={..._0x23932e[0x1],[_0x4603bb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d491e};},{[_0x4603bb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4603bb([0x68,0x69,0x67,0x68])}),_0x1d0a2b[_0x4603bb([0x6f,0x6e])](_0x4603bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x127e98=>{_0x4a94c5(_0x127e98[_0x4603bb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x545a9c=!0x0,_0x29752a(_0x127e98[_0x4603bb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4603bb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4603bb([0x6c,0x6f,0x77])}),_0x12cdc3[_0x4603bb([0x74,0x68,0x65,0x6e])](()=>{_0x545a9c||_0x58883b(_0x4603bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f4ddc(){return _0x1d0a2b[_0x4603bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4603bb([0x76,0x69,0x65,0x77])][_0x4603bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4603bb([0x61,0x75,0x74,0x6f]);}function _0x17bbc9(){_0x1d0a2b[_0x4603bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4603bb([0x76,0x69,0x65,0x77])][_0x4603bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4603bb([0x61,0x75,0x74,0x6f]);}}function _0x18dc93(_0x4295a4){const _0x447736=[new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x421d2c=>setTimeout(_0x421d2c,0x3d1ee13^_0x528343)),_0x12cdc3[_0x4603bb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d8ff0=>{let _0xc48502=0x0;_0x1d0a2b[_0x4603bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4603bb([0x6f,0x6e])](_0x4603bb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16178f,_0x3befd3)=>{_0x3befd3[0x0][_0x4603bb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc48502++,_0xc48502==(0x3d8d537^_0x528343)&&(_0x4d8ff0(),_0x16178f[_0x4603bb([0x6f,0x66,0x66])]());});}))];return window[_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4603bb([0x72,0x61,0x63,0x65])](_0x447736)[_0x4603bb([0x74,0x68,0x65,0x6e])](()=>_0x4295a4);}async function _0x1ba05a(){await _0x12cdc3,_0x1d0a2b[_0x4603bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4603bb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3280f7,_0x1d0a2b[_0x4603bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4603bb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3280f7,_0x1d0a2b[_0x4603bb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4603bb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26db11(){return _0x49df6c(_0x4603bb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x10d8e8(_0x4603bb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4603bb([0x73,0x74,0x61,0x74,0x65])]==_0x4603bb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3f3a7b(){return _0x49df6c(_0x4603bb([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 _0x350696(){return _0x49df6c(_0x4603bb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2ff873(_0x28c16f){const _0x479724=_0x252be8();_0x1d0a2b[_0x479724]=_0x4603bb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28c16f,_0x28c16f!=_0x4603bb([0x56,0x61,0x6c,0x69,0x64])&&_0x1ba05a();}function _0x252be8(){const _0x30b703=window[_0x4603bb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4603bb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4603bb([0x6e,0x6f,0x77])]())[_0x4603bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4603bb([0x2e]),'');let _0x54b7d1=_0x4603bb([0x52]);for(let _0xb2ed4=0x0;_0xb2ed4<_0x30b703[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb2ed4+=0x2){let _0x3cbf72=window[_0x4603bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30b703[_0x4603bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb2ed4,_0xb2ed4+0x2));_0x3cbf72>=_0x223a89[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3cbf72-=_0x223a89[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54b7d1+=_0x223a89[_0x3cbf72];}return _0x54b7d1;}function _0x3781f2(){const _0x3afb1e=_0x201931[_0x4603bb([0x73,0x70,0x6c,0x69,0x74])](_0x4603bb([0x2e]));if(0x3!=_0x3afb1e[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x38b96d(_0x3afb1e[0x1]);function _0x38b96d(_0x2d16f9){const _0x5ab6e3=_0x24a626(_0x2d16f9);return _0x5ab6e3&&_0x1b1d19()?_0x5ab6e3:null;function _0x1b1d19(){const _0x29b6b9=_0x5ab6e3[_0x4603bb([0x6a,0x74,0x69])],_0xc5fe88=window[_0x4603bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29b6b9[_0x4603bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29b6b9[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e8258={..._0x5ab6e3,[_0x4603bb([0x6a,0x74,0x69])]:_0x29b6b9[_0x4603bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29b6b9[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e8258[_0x4603bb([0x76,0x63])],_0x2b248a(_0x1e8258)==_0xc5fe88;}}}async function _0x4bc02a(){let _0x44dca5=!0x0;try{const _0x2f5f7f=_0x201931[_0x4603bb([0x73,0x70,0x6c,0x69,0x74])](_0x4603bb([0x2e])),[_0x69f83b,_0x5e3a9d,_0x58ef8b]=_0x2f5f7f;return _0x56fe73(_0x69f83b),await _0x3b3041(_0x69f83b,_0x5e3a9d,_0x58ef8b),_0x44dca5;}catch{return!0x1;}function _0x56fe73(_0x1cfdf6){const _0x26d40b=_0x24a626(_0x1cfdf6);_0x26d40b&&_0x26d40b[_0x4603bb([0x61,0x6c,0x67])]==_0x4603bb([0x45,0x53,0x32,0x35,0x36])||(_0x44dca5=!0x1);}async function _0x3b3041(_0x5cb7ac,_0xef0768,_0x4dad43){const _0x7099de=window[_0x4603bb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4603bb([0x66,0x72,0x6f,0x6d])](_0x4a92a0(_0x4dad43),_0x2215eb=>_0x2215eb[_0x4603bb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x278888=new window[(_0x4603bb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4603bb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5cb7ac+_0x4603bb([0x2e])+_0xef0768),_0xdc15cc=window[_0x4603bb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4603bb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdc15cc)return;const _0x1356b8=await _0xdc15cc[_0x4603bb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4603bb([0x6a,0x77,0x6b]),_0x440901,{[_0x4603bb([0x6e,0x61,0x6d,0x65])]:_0x4603bb([0x45,0x43,0x44,0x53,0x41]),[_0x4603bb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4603bb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4603bb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdc15cc[_0x4603bb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4603bb([0x6e,0x61,0x6d,0x65])]:_0x4603bb([0x45,0x43,0x44,0x53,0x41]),[_0x4603bb([0x68,0x61,0x73,0x68])]:{[_0x4603bb([0x6e,0x61,0x6d,0x65])]:_0x4603bb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1356b8,_0x7099de,_0x278888)||(_0x44dca5=!0x1);}}function _0x24a626(_0x4cd41f){return _0x4cd41f[_0x4603bb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4603bb([0x65,0x79]))?JSON[_0x4603bb([0x70,0x61,0x72,0x73,0x65])](_0x4a92a0(_0x4cd41f)):null;}function _0x4a92a0(_0x217e09){return window[_0x4603bb([0x61,0x74,0x6f,0x62])](_0x217e09[_0x4603bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4603bb([0x2b]))[_0x4603bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4603bb([0x2f])));}function _0x2b248a(_0x34149c){let _0x33302a=0x1505;function _0xbfb999(_0xc9e7a1){for(let _0x2f87d8=0x0;_0x2f87d8<_0xc9e7a1[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f87d8++){const _0x422961=_0xc9e7a1[_0x4603bb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f87d8);_0x33302a=(_0x33302a<<0x5)+_0x33302a+_0x422961,_0x33302a&=_0x33302a;}}function _0x4230c0(_0x3f4da7){Array[_0x4603bb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f4da7)?_0x3f4da7[_0x4603bb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4230c0):_0x3f4da7&&typeof _0x3f4da7==_0x4603bb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4603bb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f4da7)[_0x4603bb([0x73,0x6f,0x72,0x74])]()[_0x4603bb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6a4841,_0x3fecf1])=>{_0xbfb999(_0x6a4841),_0x4230c0(_0x3fecf1);}):_0xbfb999(window[_0x4603bb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f4da7));}return _0x4230c0(_0x34149c),_0x33302a>>>0x0;}function _0x4663ca(_0x24dca7){return _0x24dca7[_0x4603bb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4603bb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4603bb([0x30]));}function _0x42cadd(_0x41605a){return _0x41605a[_0x4603bb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4603bb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4603bb([0x6a,0x6f,0x69,0x6e])]('');}function _0x49df6c(_0x355a31){return _0x1d0a2b[_0x4603bb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4603bb([0x68,0x61,0x73])](_0x355a31);}function _0x10d8e8(_0x446a3d){return _0x1d0a2b[_0x4603bb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4603bb([0x67,0x65,0x74])](_0x446a3d);}function _0x3280f7(){}function _0x4603bb(_0x1520bf){return _0x1520bf['map'](_0x426097=>String['fromCharCode'](_0x426097))['join']('');}_0x2ff873(await _0xd60d3d());}(this);}set['adapter'](_0x939bb8){if(this['_adapter'])throw new _0xfd9767('track-changes-adapter-already-set',this);this['_adapter']=_0x939bb8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e3e08=!0x1,toJSON:_0x26a93a=!0x1}={}){const _0x37a69b=[];for(const _0x43d8bd of this['_suggestions']['values']())_0x5e3e08&&!_0x43d8bd['isInContent']||_0x37a69b['push'](_0x43d8bd);return _0x26a93a?_0x37a69b['map'](_0x41558f=>_0x41558f['toJSON']()):_0x37a69b;}['getSuggestion'](_0x119b7b){const _0x5ede2e=this['_suggestions']['get'](_0x119b7b);if(!_0x5ede2e)throw new _0xfd9767('track-changes-suggestion-not-found',this);return _0x5ede2e;}['hasSuggestion'](_0x5c451c){return this['_suggestions']['has'](_0x5c451c);}['addSuggestionData'](_0x175d14){const {authorId:_0x140681,id:_0x42af24,originalSuggestionId:_0x479937,attributes:_0x16dce1}=_0x175d14,[_0x1812a6,_0x20ed1b]=_0x175d14['type']['split'](':'),_0x35cdf6=this['_suggestions']['get'](_0x42af24)||this['_createSuggestion'](_0x1812a6,_0x20ed1b,_0x42af24,_0x140681,_0x16dce1,_0x479937);if(this['_addThreadToSuggestion'](_0x35cdf6),this['_checkSuggestionCorrectness'](_0x35cdf6,_0x1812a6,_0x20ed1b||null,_0x140681),_0x35cdf6['createdAt']=_0x175d14['createdAt'],_0x35cdf6['_isDataLoaded']=!0x0,_0x16dce1&&_0x16dce1['@external']){const _0x4026a9=_0x16dce1['@external'],_0x358992=this['_getExternalAuthor'](_0x4026a9['authorName']);_0x35cdf6['authoredAt']=_0x4026a9['createdAt'],_0x35cdf6['author']=_0x358992,_0x35cdf6['isExternal']=!0x0;}else _0x35cdf6['authoredAt']=_0x175d14['createdAt'];switch(_0x175d14['data']&&(_0x35cdf6['data']=_0x175d14['data']),_0x175d14['attributes']&&(_0x35cdf6['attributes']=_0x175d14['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x35cdf6['_saved']=!0x0),this['_suggestionState']['get'](_0x35cdf6)){case'notReady':this['_suggestionState']['set'](_0x35cdf6,'dataReady');break;case'markerReady':_0x35cdf6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x35cdf6])),this['_refreshSuggestionsChain'](new Set([_0x35cdf6])),this['_suggestionState']['set'](_0x35cdf6,'ready'),this['fire']('suggestionLoaded',_0x35cdf6)):this['_suggestionState']['set'](_0x35cdf6,'removed');}return _0x35cdf6;}['acceptSuggestion'](_0x5d3564){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x56cdb8 of _0x5d3564['getAllAdjacentSuggestions']())_0x56cdb8['accept']();});});}['discardSuggestion'](_0x508d7a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x414156 of _0x508d7a['getAllAdjacentSuggestions']())_0x414156['discard']();});});}['enableCommand'](_0x3726de,_0x4c2fda){const _0x3f81c9=this['editor']['commands']['get'](_0x3726de);if(!_0x3f81c9)throw new _0xfd9767('track-changes-command-not-found',this,{'commandName':_0x3726de});if(this['_enabledCommands']['has'](_0x3f81c9))throw new _0xfd9767('track-changes-enable-command-twice',this,{'commandName':_0x3726de});this['_enabledCommands']['add'](_0x3f81c9),_0x4c2fda&&_0x3f81c9['on']('execute',(_0x982e26,_0x54510c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x54510c['length']>0x0&&_0x54510c[_0x54510c['length']-0x1]&&_0x54510c[_0x54510c['length']-0x1]['forceDefaultExecution']?_0x54510c['pop']():(_0x982e26['return']=_0x4c2fda((..._0xa2aed7)=>_0x3f81c9['execute'](..._0xa2aed7,{'forceDefaultExecution':!0x0}),..._0x54510c),_0x982e26['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x53e448){let _0x3dda65,_0x2a97c6;const _0x29dd65=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3dda65=_0x53e448();}catch(_0x4578be){_0x2a97c6=_0x4578be;}return _0x29dd65||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2a97c6&&_0xfd9767['rethrowUnexpectedError'](_0x2a97c6,this),_0x3dda65;}['markInsertion'](_0x1f34d2,_0x501479=null,_0xc8fe02={}){if(_0x1f34d2['isCollapsed'])return null;const _0x2b4c96=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xc8fe02['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x18d6fb,meta:_0x56ebbd}of this['_findSuggestions'](_0x1f34d2,'insertion'))if(_0x56ebbd['isOwn']){if(!_0x56ebbd['isNextTo']){if(_0x56ebbd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x18d6fb,_0xc8fe02))continue;return _0x18d6fb;}if(sn(_0x18d6fb,_0xc8fe02))return _0x18d6fb;this['_breakSuggestionMarker'](_0x18d6fb,_0x1f34d2['start'],_0x1f34d2['end']);break;}if(_0x501479==_0x18d6fb['subType']&&sn(_0x18d6fb,_0xc8fe02)){const _0x446897=_0x18d6fb['getFirstRange']();return _0x446897['start']['isEqual'](_0x1f34d2['end'])?this['_setSuggestionRange'](_0x18d6fb,this['_model']['createRange'](_0x1f34d2['start'],_0x446897['end'])):this['_setSuggestionRange'](_0x18d6fb,this['_model']['createRange'](_0x446897['start'],_0x1f34d2['end'])),_0x18d6fb;}}const _0x5f33f5=_0x1b5ac0(),_0x25b3a0=_0x2b4c96['id'],_0x2eb2b8=_0x501479?'insertion:'+_0x501479:'insertion',_0x5483c0=this['_setSuggestionData']({'id':_0x5f33f5,'type':_0x2eb2b8,'createdAt':new Date(),'authorId':_0x25b3a0,'attributes':_0xc8fe02});return this['_addSuggestionMarker'](_0x2eb2b8,_0x5f33f5,_0x25b3a0,_0x1f34d2),_0x5483c0;}['markMultiRangeInsertion'](_0x15951a,_0x4d43b5='multi',_0x12d350={}){const _0x5ef393=this['editor']['plugins']['get']('Users')['me'],_0x305a16=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4d43b5,'join');this['_trackingSessionId']&&(_0x12d350['trackingSessionId']=this['_trackingSessionId']);for(const _0x113f5e of this['getSuggestions']())if(_0x113f5e['author']['id']==_0x5ef393['id']&&'insertion'==_0x113f5e['type']&&_0x113f5e['subType']==_0x4d43b5&&sn(_0x113f5e,_0x12d350)&&(_0x305a16(_0x113f5e['getRanges'](),_0x15951a)||_0x305a16(_0x15951a,_0x113f5e['getRanges']()))){for(const _0x4340c6 of _0x15951a)_0x113f5e['addRange'](_0x4340c6);return _0x113f5e;}for(const {suggestion:_0x45668d,meta:_0x2e4233}of this['_findSuggestions'](_0x15951a,'insertion')){if(!_0x2e4233['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2e4233['containsRangeInObject'])continue;if(!sn(_0x45668d,_0x12d350))continue;let _0x2d7061=!0x0;for(const _0x449407 of _0x45668d['getRanges']())for(const _0x22bdab of _0x15951a)if(!_0x449407['containsRange'](_0x22bdab)){_0x2d7061=!0x1;break;}if(_0x2d7061)return _0x45668d;}const _0xec4143=_0x1b5ac0(),_0x2d328b=_0x5ef393['id'],_0x50b800='insertion:'+_0x4d43b5,_0x2ac908=this['_setSuggestionData']({'id':_0xec4143,'type':_0x50b800,'createdAt':new Date(),'authorId':_0x2d328b,'attributes':_0x12d350});for(const _0x30164b of _0x15951a)this['_addSuggestionMarker'](_0x50b800,_0xec4143,_0x2d328b,_0x30164b,T['getMultiRangeId']());return _0x2ac908;}['markInlineFormat'](_0x3d921c,_0x43ad7e,_0x4c71d0=null,_0x2f44d8={}){if(_0x4c71d0=_0x4c71d0||Ht(_0x43ad7e),_0x3d921c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2f44d8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x25cb23=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4c71d0,'accept');return this['forceDefaultExecution'](()=>_0x25cb23([_0x3d921c],_0x43ad7e,_0x2f44d8)),null;}const _0x4c807a=this['editor']['plugins']['get']('Users')['me'],_0x3fa54e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2dc025,meta:_0x2209d8}of this['_findSuggestions'](_0x3d921c,'insertion'))_0x2209d8['isOwn']&&!_0x2209d8['isInsideObject']&&_0x3fa54e['push'](..._0x2dc025['getRanges']());}const _0x5c0702=function(_0x5841d0,_0x145234){const _0x180545=[];for(const _0x4e46b1 of _0x145234){const _0x276a01=_0x5841d0['getIntersection'](_0x4e46b1);_0x276a01&&_0x180545['push'](_0x276a01);}return _0x180545;}(_0x3d921c,_0x3fa54e),_0x572e82=function(_0x3da129,_0x5245a4){const _0x1da8f4=[_0x3da129];for(const _0x15b909 of _0x5245a4){let _0x2810ec=0x0;for(;_0x2810ec<_0x1da8f4['length'];){const _0x3dfae3=_0x1da8f4[_0x2810ec]['getDifference'](_0x15b909);_0x1da8f4['splice'](_0x2810ec,0x1,..._0x3dfae3),_0x2810ec+=_0x3dfae3['length'];}}return _0x1da8f4;}(_0x3d921c,_0x3fa54e);_0x5c0702['length']&&this['_model']['change'](()=>{for(const _0x5f3929 of _0x5c0702){const _0x791df1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4c71d0,'accept');this['forceDefaultExecution'](()=>_0x791df1([_0x5f3929],_0x43ad7e,_0x2f44d8));}});for(const _0x5cb7a6 of _0x572e82){let _0x1f4546=null,_0x5414ec=_0x5cb7a6['start'],_0x14b54b=_0x5cb7a6['end'];for(const {suggestion:_0x126634,meta:_0x1e586c}of this['_findSuggestions'](_0x5cb7a6,'formatInline')){if(!_0x1e586c['isOwn'])continue;if(_0x126634['subType']!=_0x4c71d0)continue;if(!sn(_0x126634,_0x2f44d8))continue;const _0x1443ce=_0x126634['getFirstRange']();if(_0x1443ce['containsRange'](_0x5cb7a6,!0x0))return null;_0x5414ec=_0x5414ec['isBefore'](_0x1443ce['start'])?_0x5414ec:_0x1443ce['start'],_0x14b54b=_0x14b54b['isAfter'](_0x1443ce['end'])?_0x14b54b:_0x1443ce['end'],_0x1f4546?_0x1443ce['start']['isBefore'](_0x1f4546['getFirstRange']()['start'])?(_0x1f4546['removeMarkers'](),_0x1f4546=_0x126634):_0x126634['removeMarkers']():_0x1f4546=_0x126634;}const _0x1575df=this['_model']['createRange'](_0x5414ec,_0x14b54b);if(_0x1f4546)this['_setSuggestionRange'](_0x1f4546,_0x1575df);else{const _0x2fef66=_0x1b5ac0(),_0x5dccfa=_0x4c807a['id'];this['_setSuggestionData']({'id':_0x2fef66,'type':'formatInline:'+_0x4c71d0,'data':_0x43ad7e,'createdAt':new Date(),'authorId':_0x5dccfa,'attributes':_0x2f44d8}),this['_addSuggestionMarker']('formatInline:'+_0x4c71d0,_0x2fef66,_0x5dccfa,_0x1575df);}}return null;}['markBlockFormat'](_0x153f19,_0x2fff15,_0x2ddb2a=[],_0x5d58ba=null,_0x53a29a={}){_0x2fff15['formatGroupId']||(_0x2fff15['formatGroupId']=_0x2fff15['commandName']),_0x2fff15['multipleBlocks']=_0x153f19['is']('range'),_0x5d58ba=_0x5d58ba||Ht(_0x2fff15);const _0x38fce8=_0x2ddb2a['map'](_0x985e01=>tn(_0x985e01,this['_model'])),_0x96deb0=_0x153f19['is']('range')?_0x153f19:tn(_0x153f19,this['_model']);if(this['_trackingSessionId']&&(_0x53a29a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xf612a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d58ba,'accept');return this['forceDefaultExecution'](()=>_0xf612a([_0x96deb0],_0x2fff15,_0x53a29a)),null;}_0x38fce8['push'](_0x96deb0);let _0x312c85=!0x0;for(const _0x486ba5 of _0x38fce8)if(!this['_rangeIsInLocalUserInsertion'](_0x486ba5)){_0x312c85=!0x1;break;}if(_0x312c85&&'always'!==this['_trackFormatChanges']){const _0x10da5a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d58ba,'accept');return this['forceDefaultExecution'](()=>_0x10da5a([_0x96deb0],_0x2fff15,_0x53a29a)),null;}let _0xeea99f=null,_0x1587ca=_0x96deb0['start'],_0x258db2=_0x96deb0['end'];for(const {suggestion:_0x118da8,meta:_0x3b4479}of this['_findSuggestions'](_0x96deb0,'formatBlock')){if(!_0x3b4479['isOwn'])continue;if(_0x3b4479['isNextTo']||_0x3b4479['containsRangeInObject']||_0x3b4479['isInsideObject'])continue;if(_0x118da8['data']['formatGroupId']!=_0x2fff15['formatGroupId'])continue;if(!sn(_0x118da8,_0x53a29a))continue;const _0x8322c4=_0x118da8['getFirstRange']();if(_0x118da8['subType']==_0x5d58ba){if(_0x8322c4['containsRange'](_0x96deb0,!0x0))return null;_0x1587ca=_0x1587ca['isBefore'](_0x8322c4['start'])?_0x1587ca:_0x8322c4['start'],_0x258db2=_0x258db2['isAfter'](_0x8322c4['end'])?_0x258db2:_0x8322c4['end'],_0xeea99f?_0x8322c4['start']['isBefore'](_0xeea99f['getFirstRange']()['start'])?(_0xeea99f['removeMarkers'](),_0xeea99f=_0x118da8):_0x118da8['removeMarkers']():_0xeea99f=_0x118da8;}else{const _0x27c7d7=_0x96deb0['getIntersection'](_0x8322c4);this['_cutOutSuggestionMarker'](_0x118da8,_0x27c7d7);}}const _0x3b79e9=this['editor']['plugins']['get']('Users')['me'],_0x9e817a=_0x1b5ac0(),_0x5996a1=_0x3b79e9['id'];if(_0xeea99f)return this['_setSuggestionRange'](_0xeea99f,this['_model']['createRange'](_0x1587ca,_0x258db2)),_0xeea99f;{const _0x5980cf=this['_setSuggestionData']({'id':_0x9e817a,'type':'formatBlock:'+_0x5d58ba,'data':_0x2fff15,'createdAt':new Date(),'authorId':_0x5996a1,'attributes':_0x53a29a});return this['_addSuggestionMarker']('formatBlock:'+_0x5d58ba,_0x9e817a,_0x5996a1,this['_model']['createRange'](_0x1587ca,_0x258db2)),_0x5980cf;}}['markMultiRangeBlockFormat'](_0x2439ca,_0x9f0d6e,_0x51d377=[],_0x57f145=null,_0x4ca9fc={}){_0x9f0d6e['formatGroupId']||(_0x9f0d6e['formatGroupId']=_0x9f0d6e['commandName']);const _0x10a8a9=_0x2439ca[0x0];_0x9f0d6e['multipleBlocks']=_0x10a8a9['is']('range'),_0x57f145=_0x57f145||Ht(_0x9f0d6e);const _0xe4bb6a=_0x51d377['map'](_0x32a289=>tn(_0x32a289,this['_model'])),_0x57dd41=_0x10a8a9['is']('range')?_0x2439ca:_0x2439ca['map'](_0x4440b2=>tn(_0x4440b2,this['_model']));if(this['_trackingSessionId']&&(_0x4ca9fc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdd8fd6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57f145,'accept');return this['forceDefaultExecution'](()=>_0xdd8fd6(_0x57dd41,_0x9f0d6e,_0x4ca9fc)),null;}_0xe4bb6a['push'](..._0x57dd41);let _0x285694=!0x0;for(const _0x2c2c26 of _0xe4bb6a)if(!this['_rangeIsInLocalUserInsertion'](_0x2c2c26)){_0x285694=!0x1;break;}if(_0x285694&&'always'!==this['_trackFormatChanges']){const _0x22a79e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57f145,'accept');return this['forceDefaultExecution'](()=>_0x22a79e(_0x57dd41,_0x9f0d6e,_0x4ca9fc)),null;}const _0x3b8810=this['editor']['plugins']['get']('Users')['me'];for(const _0x5aad79 of this['getSuggestions']()){const _0x1adbd1=_0x5aad79['data'];if(_0x5aad79['author']['id']!=_0x3b8810['id'])continue;if('formatBlock'!=_0x5aad79['type']||_0x1adbd1['formatGroupId']!=_0x9f0d6e['formatGroupId'])continue;if(!sn(_0x5aad79,_0x4ca9fc))continue;const _0x4217f4=_0x5aad79['subType']==_0x57f145;for(let _0x445226=0x0;_0x445226<_0x57dd41['length'];_0x445226++){const _0x11af31=_0x57dd41[_0x445226];for(const _0x47d34a of _0x5aad79['getMarkers']()){const _0x44760d=_0x47d34a['getRange']();if(_0x11af31['isEqual'](_0x44760d)){_0x4217f4?(_0x57dd41['splice'](_0x445226,0x1),_0x445226--):_0x5aad79['removeMarker'](_0x47d34a['name']);break;}}}}if(0x0==_0x57dd41['length'])return null;const _0x11fcc9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57f145,'join');for(const _0x34ff01 of this['getSuggestions']()){const _0x276ddd=_0x34ff01['data'];if(_0x34ff01['author']['id']==_0x3b8810['id']&&('formatBlock'==_0x34ff01['type']&&_0x276ddd['formatGroupId']==_0x9f0d6e['formatGroupId']&&_0x34ff01['subType']==_0x57f145&&sn(_0x34ff01,_0x4ca9fc)&&(_0x11fcc9(_0x34ff01['getRanges'](),_0x57dd41)||_0x11fcc9(_0x57dd41,_0x34ff01['getRanges']())))){for(const _0x540aa5 of _0x57dd41)_0x34ff01['addRange'](_0x540aa5);return _0x34ff01;}}const _0x3f162a=_0x1b5ac0(),_0x149327=_0x3b8810['id'],_0x187643='formatBlock:'+_0x57f145,_0x51bf7f=this['_setSuggestionData']({'id':_0x3f162a,'type':_0x187643,'data':_0x9f0d6e,'createdAt':new Date(),'authorId':_0x149327,'attributes':_0x4ca9fc});for(const _0x816eab of _0x57dd41)this['_addSuggestionMarker'](_0x187643,_0x3f162a,_0x149327,_0x816eab,T['getMultiRangeId']());return _0x51bf7f;}['markDeletion'](_0x39bae8,_0x2acc8f=null,_0x1e3418={}){if(_0x39bae8['isCollapsed'])return null;const _0x287738=this['editor']['plugins']['get']('Users')['me'],_0x5e2ea4=new _0x321f06(_0x39bae8['start'],_0x39bae8['end']);this['_trackingSessionId']&&(_0x1e3418['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x253a6a,meta:_0x4c11cb}of this['_findSuggestions'](_0x5e2ea4,'insertion'))if(_0x4c11cb['isOwn']&&!_0x4c11cb['isNextTo']){if(_0x253a6a['isMultiRange']){const _0x379c05=_0x253a6a['getRanges']()['filter'](_0x58ece9=>'$graveyard'!=_0x58ece9['root']['rootName']);_0x379c05['every'](_0x50916c=>_0x5e2ea4['containsRange'](_0x50916c,!0x0))&&_0x253a6a['discard']();if(_0x379c05['some'](_0x3ef80=>_0x3ef80['containsRange'](_0x5e2ea4,!0x0))){const _0x51be3a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2acc8f,'accept');return this['forceDefaultExecution'](()=>_0x51be3a([_0x5e2ea4],null,_0x1e3418)),null;}}else{const _0x3fde2b=_0x5e2ea4['getIntersection'](_0x253a6a['getFirstRange']());null!==_0x3fde2b&&_0x253a6a['_onDiscard']([_0x3fde2b],null,_0x1e3418);}}if(_0x5e2ea4['detach'](),_0x5e2ea4['isCollapsed']||'$graveyard'==_0x5e2ea4['root']['rootName'])return null;let _0x1baa47=null,_0x117164=_0x5e2ea4['start'],_0x2de7c5=_0x5e2ea4['end'];const _0x2a2147=this['_findSuggestions'](_0x5e2ea4,'deletion');for(const {suggestion:_0x26b375,meta:_0x390cc2}of _0x2a2147){const _0x569dac=this['_model']['createRange'](_0x117164,_0x2de7c5);if(_0x390cc2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x390cc2['containsRangeInObject']&&!_0x390cc2['isInsideObject'])){if(_0x26b375['isMultiRange']){if(!sn(_0x26b375,_0x1e3418))continue;let _0x19eeba=!0x0;for(const _0x4b9a18 of _0x26b375['getRanges']()){if(_0x4b9a18['containsRange'](_0x569dac,!0x0))return _0x26b375;_0x569dac['containsRange'](_0x4b9a18)||(_0x19eeba=!0x1);}_0x19eeba&&_0x26b375['discard']();}else{const _0x353e8b=_0x26b375['getFirstRange']();if(_0x353e8b['containsRange'](_0x569dac,!0x0))return _0x26b375;if(!sn(_0x26b375,_0x1e3418)){_0x569dac['containsRange'](_0x353e8b)?_0x26b375['removeMarkers']():_0x353e8b['containsPosition'](_0x117164)?_0x117164=_0x353e8b['end']:_0x353e8b['containsPosition'](_0x2de7c5)&&(_0x2de7c5=_0x353e8b['start']);continue;}_0x117164=_0x117164['isBefore'](_0x353e8b['start'])?_0x117164:_0x353e8b['start'],_0x2de7c5=_0x2de7c5['isAfter'](_0x353e8b['end'])?_0x2de7c5:_0x353e8b['end'],_0x1e3418=Object['assign']({},_0x26b375['attributes']),_0x1baa47?_0x353e8b['start']['isBefore'](_0x1baa47['getFirstRange']()['start'])?(_0x1baa47['removeMarkers'](),_0x1baa47=_0x26b375):_0x26b375['removeMarkers']():_0x1baa47=_0x26b375;}}}if(_0x1baa47)return this['_setSuggestionRange'](_0x1baa47,this['_model']['createRange'](_0x117164,_0x2de7c5)),_0x1baa47;{const _0x3ed7d1=_0x1b5ac0(),_0x61fddd=this['_model']['createRange'](_0x117164,_0x2de7c5),_0x58d8d5=_0x287738['id'],_0xcadfef=_0x2acc8f?'deletion:'+_0x2acc8f:'deletion',_0xceb871=this['_setSuggestionData']({'id':_0x3ed7d1,'type':_0xcadfef,'createdAt':new Date(),'authorId':_0x58d8d5,'attributes':_0x1e3418});return this['_addSuggestionMarker'](_0xcadfef,_0x3ed7d1,_0x58d8d5,_0x61fddd),_0xceb871;}}['markMultiRangeDeletion'](_0x28dcc9,_0x3f055d='multi',_0xede9f2={}){const _0x2e783b=this['editor']['plugins']['get']('Users')['me'],_0x38714d=_0x28dcc9['map'](_0x183b33=>new _0x321f06(_0x183b33['start'],_0x183b33['end'])),_0x5cfc26=new Set();this['_trackingSessionId']&&(_0xede9f2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2b332a,meta:_0x395773}of this['_findSuggestions'](_0x38714d,'insertion'))_0x395773['isOwn']&&!_0x395773['isNextTo']&&_0x5cfc26['add'](_0x2b332a);for(const _0xb7fbe9 of _0x5cfc26)if(_0xb7fbe9['isMultiRange']){const _0x520c55=_0xb7fbe9['getRanges']();(!_0xb7fbe9['attributes']||!_0xb7fbe9['attributes']['skipNestingCheck'])&&(_0x520c55['every'](_0x27a00e=>_0x38714d['some'](_0x351cf2=>_0x351cf2['containsRange'](_0x27a00e,!0x0)))&&_0xb7fbe9['discard']());if(_0x38714d['every'](_0x1aac71=>_0x520c55['some'](_0x346317=>_0x346317['containsRange'](_0x1aac71,!0x0)))){const _0xb1e46b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f055d,'accept');return this['forceDefaultExecution'](()=>_0xb1e46b(_0x28dcc9,null,_0xede9f2)),null;}}else{const _0x255de2=_0xb7fbe9['getFirstRange']();_0x38714d['some'](_0x3901be=>_0x3901be['containsRange'](_0x255de2,!0x0))&&_0xb7fbe9['discard']();if(_0x38714d['every'](_0x57d028=>_0x255de2['containsRange'](_0x57d028,!0x0))){const _0x5f235c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f055d,'accept');return this['forceDefaultExecution'](()=>_0x5f235c(_0x38714d,null,_0xede9f2)),null;}}const _0x155164=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f055d,'join');let _0x325da7=null;for(const _0x2d2b38 of this['getSuggestions']())if(_0x2d2b38['author']['id']==_0x2e783b['id']&&_0x2d2b38['isInContent']&&'deletion'==_0x2d2b38['type']&&_0x2d2b38['subType']==_0x3f055d&&sn(_0x2d2b38,_0xede9f2)&&(_0x155164(_0x2d2b38['getRanges'](),_0x38714d)||_0x155164(_0x38714d,_0x2d2b38['getRanges']()))){if(_0x325da7){if(_0x2d2b38['commentThread']&&_0x2d2b38['commentThread']['length'])continue;for(const _0x11014d of _0x2d2b38['getRanges']())_0x325da7['isIntersectingWithRange'](_0x11014d)||_0x325da7['addRange'](_0x11014d);_0x2d2b38['removeMarkers']();}else{_0x325da7=_0x2d2b38;for(const _0x3d9c8d of _0x38714d)_0x2d2b38['isIntersectingWithRange'](_0x3d9c8d)||_0x2d2b38['addRange'](_0x3d9c8d);}}if(_0x325da7)return _0x325da7;_0x5cfc26['clear']();for(const {suggestion:_0x20ee9c,meta:_0x49eb03}of this['_findSuggestions'](_0x38714d,'deletion'))_0x49eb03['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49eb03['containsRangeInObject']&&!_0x49eb03['isInsideObject'])&&sn(_0x20ee9c,_0xede9f2)&&_0x5cfc26['add'](_0x20ee9c);for(const _0x48a1e2 of _0x5cfc26){const _0x4bfbb0=_0x48a1e2['getRanges']();if(!_0xede9f2||!_0xede9f2['skipNestingCheck']){if(_0x38714d['every'](_0x46a098=>_0x4bfbb0['some'](_0x5188e3=>_0x5188e3['containsRange'](_0x46a098,!0x0))))return _0x48a1e2;}(!_0x48a1e2['attributes']||!_0x48a1e2['attributes']['skipNestingCheck'])&&(_0x4bfbb0['every'](_0x4092ba=>_0x38714d['some'](_0x41e9fa=>_0x41e9fa['containsRange'](_0x4092ba,!0x0)))&&_0x48a1e2['discard']());}const _0x53f792=_0x1b5ac0(),_0x55dfad=_0x2e783b['id'],_0x28eb24='deletion:'+_0x3f055d,_0x2a8d7=this['_setSuggestionData']({'id':_0x53f792,'type':_0x28eb24,'createdAt':new Date(),'authorId':_0x55dfad,'attributes':_0xede9f2});for(const _0x56167e of _0x38714d)_0x56167e['detach'](),_0x56167e['isCollapsed']||'$graveyard'==_0x56167e['root']['rootName']||this['_addSuggestionMarker'](_0x28eb24,_0x53f792,_0x55dfad,_0x56167e,T['getMultiRangeId']());return _0x2a8d7;}['markAttributeChange'](_0x3ad81e,_0x23fc35,_0x4dd980,_0x4bf26e,_0x2d4d00){if(_0x3ad81e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1b486f=this['editor']['plugins']['get']('Users')['me']['id'],_0x31ad52=Array['from'](this['_suggestions']['values']())['filter'](_0x5cb372=>'attribute'==_0x5cb372['type']&&_0x5cb372['data']['key']==_0x23fc35&&_0x5cb372['isIntersectingWithRange'](_0x3ad81e));if(this['_trackingSessionId']&&(_0x2d4d00['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3b99b5=this['_findSuggestions'](_0x3ad81e,'insertion')['filter'](({meta:_0x4a0465})=>_0x4a0465['isOwn']&&!_0x4a0465['isInsideObject']&&!_0x4a0465['isNextTo'])['map'](({suggestion:_0x872b17})=>_0x872b17);_0x31ad52['unshift'](..._0x3b99b5);}const _0x49076f=new Map([[_0x3ad81e,_0x4dd980]]);for(const _0x43d083 of _0x31ad52){const _0x21c0f9='attribute'==_0x43d083['type']?_0x43d083['data']['oldValue']:void 0x0,_0x324867=_0x43d083['getFirstRange'](),_0x3a0697=Array['from'](_0x49076f['keys']())['find'](_0x41b15e=>_0x41b15e['isIntersecting'](_0x324867));if(!_0x3a0697)continue;const _0x4c9f7a=_0x3a0697['getDifference'](_0x324867);this['_isBlockAttribute'](_0x23fc35)&&'insertion'==_0x43d083['type']&&0x0!=_0x4c9f7a['length']||(_0x49076f['delete'](_0x3a0697),_0x4c9f7a['forEach'](_0x330d6c=>{_0x49076f['set'](_0x330d6c,_0x4dd980);}),'insertion'!=_0x43d083['type']&&_0x21c0f9!=_0x4bf26e&&_0x49076f['set'](_0x3a0697['getIntersection'](_0x324867),_0x21c0f9));}const _0xad2e8d=[];for(const [_0x4ce290,_0xf0f11b]of _0x49076f){const _0x4e5a52=_0x1b5ac0(),_0x5ec82a={'key':_0x23fc35,'oldValue':_0xf0f11b,'newValue':_0x4bf26e};_0x23fc35['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':_0x23fc35});const _0x9dd93c=('attribute:'+(_0x23fc35+'|'+Ht({'newValue':_0x4bf26e})))['substring'](0x0,0x3c),_0x430cd7=this['_setSuggestionData']({'id':_0x4e5a52,'type':_0x9dd93c,'data':_0x5ec82a,'createdAt':new Date(),'authorId':_0x1b486f,'attributes':_0x2d4d00});_0xad2e8d['push'](_0x430cd7),this['_addSuggestionMarker'](_0x9dd93c,_0x4e5a52,_0x1b486f,_0x4ce290);}return _0xad2e8d;}['enableDefaultAttributesIntegration'](_0x16aba1){this['enableCommand'](_0x16aba1,(_0x32f842,..._0x4e91e5)=>{this['recordAttributeChanges'](()=>{_0x32f842(..._0x4e91e5);});});}['registerBlockAttribute'](_0x28f1a5){this['editor']['plugins']['get'](_0x5ea722)['registerBlockAttribute'](_0x28f1a5);}['registerInlineAttribute'](_0x38f875){this['editor']['plugins']['get'](_0x5ea722)['registerInlineAttribute'](_0x38f875);}['startTrackingSession'](_0x377cf9){return this['_trackingSessionId']=void 0x0!==_0x377cf9?_0x377cf9:_0x1b5ac0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x213005){return'attribute'==_0x213005['type']?_0x213005['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x26dbe2){if(0x0==_0x26dbe2['length'])return;const _0x3f18ea=this['editor'],_0x37ad05=_0x3f18ea['plugins']['get'](_0x52e720),_0x4e5f38=[];_0x3f18ea['model']['change'](_0x4ed5a1=>{for(let _0x5eec5b=0x0;_0x5eec5b<_0x26dbe2['length'];_0x5eec5b++){const _0x54f136=_0x26dbe2[_0x5eec5b];if(_0x54f136['baseVersion']=_0x3f18ea['model']['document']['version'],_0x54f136['isDocumentOperation']=!0x0,_0x37ad05['isMarkedRemoveOperation'](_0x54f136)){const _0x2e94b3=_0x5f2831(_0x54f136['newRange'],_0x3f18ea['model']);_0x4e5f38['unshift'](_0x321f06['fromRange'](_0x2e94b3));}else switch(_0x54f136['type']){case'rename':{const _0x1904de=_0x54f136['oldName'],_0x358d54=_0x54f136['newName'];if(_0x1904de==_0x358d54)break;_0x4ed5a1['batch']['addOperation'](_0x54f136),_0x3f18ea['model']['applyOperation'](_0x54f136);const _0x212237='$elementName',_0x9bdae0=_0x54f136['position'],_0x2b69bf=_0x3f18ea['model']['createRange'](_0x9bdae0,_0x3f18ea['model']['createPositionAt'](_0x9bdae0['nodeAfter'],'end'));this['markAttributeChange'](_0x2b69bf,_0x212237,_0x1904de,_0x358d54,{'groupId':_0x1b5ac0()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2266b3=_0x54f136['oldValue'],_0x10190f=_0x54f136['newValue'];if(_0x2266b3==_0x10190f)break;_0x4ed5a1['batch']['addOperation'](_0x54f136),_0x3f18ea['model']['applyOperation'](_0x54f136);const _0xa631b2=_0x54f136['key'];if(!this['_isRegisteredAttribute'](_0xa631b2))break;const _0x469614=_0x5f2831(_0x54f136['range'],_0x3f18ea['model']);this['markAttributeChange'](_0x469614,_0xa631b2,_0x2266b3,_0x10190f,{'groupId':_0x1b5ac0()});break;}case'insert':{_0x4ed5a1['batch']['addOperation'](_0x54f136),_0x3f18ea['model']['applyOperation'](_0x54f136);if(_0x26dbe2[_0x5eec5b+0x1]&&'move'==_0x26dbe2[_0x5eec5b+0x1]['type'])break;const _0x1dd143=_0x54f136['position'],_0x25a3cf=_0x54f136['howMany'],_0xed9e17=_0x5f2831(_0x3f18ea['model']['createRange'](_0x1dd143,_0x1dd143['getShiftedBy'](_0x25a3cf)),_0x3f18ea['model']);this['markInsertion'](_0xed9e17);break;}case'split':{_0x4ed5a1['batch']['addOperation'](_0x54f136),_0x3f18ea['model']['applyOperation'](_0x54f136);const _0x140aa0=_0x54f136['splitPosition'],_0x5e88b8=_0x54f136['moveTargetPosition'];this['markInsertion'](_0x3f18ea['model']['createRange'](_0x140aa0,_0x5e88b8));break;}case'move':case'remove':_0x4ed5a1['batch']['addOperation'](_0x54f136),_0x3f18ea['model']['applyOperation'](_0x54f136);}}for(const _0x122e48 of _0x4e5f38)_0x122e48['detach'](),this['markDeletion'](_0x122e48);});}['_setSuggestionRange'](_0x256a7f,_0x231062){const _0x5c5411=_0x256a7f['getFirstMarker']();this['_model']['change'](_0x7ca9c6=>{_0x7ca9c6['updateMarker'](_0x5c5411,{'range':_0x231062});});}['_addThreadToSuggestion'](_0x3f88ce){const _0x20d3ed=_0x3f88ce['id'],_0x56d95f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x20d3ed)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56d95f,'threadId':_0x20d3ed,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xa050ee=this['_commentsRepository']['getCommentThread'](_0x20d3ed);_0xa050ee['unbind']('isRemovable'),_0xa050ee['isRemovable']=!0x1,_0x3f88ce['commentThread']=_0xa050ee;}['_checkSuggestionCorrectness'](_0x2a1d29,_0x50d938,_0x29ec31,_0x971ac1){if(_0x2a1d29['type']!=_0x50d938||_0x2a1d29['subType']!=_0x29ec31||_0x2a1d29['creator']['id']!=_0x971ac1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xfd9767('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3db529,_0x2c26a3){const _0x86d2ac=_0x3db529['getFirstRange']();if(_0x2c26a3['isEqual'](_0x86d2ac))_0x3db529['removeMarkers']();else{if(_0x86d2ac['containsRange'](_0x2c26a3)){const _0xf64923=this['_model']['createPositionAt'](_0x2c26a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3db529,this['_model']['createRange'](_0x86d2ac['start'],_0xf64923));const _0x40650a=_0x1b5ac0(),_0x25b0b3=_0x3db529['creator']['id'],_0x5130cd=_0x3db529['type']+':'+_0x3db529['subType'];this['_setSuggestionData']({'id':_0x40650a,'type':_0x5130cd,'createdAt':new Date(),'authorId':_0x25b0b3,'data':_0x3db529['data'],'attributes':_0x3db529['attributes']});const _0x89f398=this['_model']['createPositionAt'](_0x2c26a3['end']['parent'],'after'),_0x15bc3a=this['_model']['createRange'](_0x89f398,_0x86d2ac['end']);this['_addSuggestionMarker'](_0x5130cd,_0x40650a,_0x25b0b3,_0x15bc3a);}else{if(_0x86d2ac['containsPosition'](_0x2c26a3['start'])){const _0x17879b=this['_model']['createPositionAt'](_0x2c26a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3db529,this['_model']['createRange'](_0x86d2ac['start'],_0x17879b));}else{const _0xa2a00=this['_model']['createPositionAt'](_0x2c26a3['end']['parent'],'after');this['_setSuggestionRange'](_0x3db529,this['_model']['createRange'](_0xa2a00,_0x86d2ac['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x557506){for(const {suggestion:_0x27a02e,meta:_0x7031d5}of this['_findSuggestions'](_0x557506,'insertion')){if(!_0x7031d5['isOwn'])continue;const _0x3dac03=_0x27a02e['getRanges']();for(const _0x1962c9 of _0x3dac03)if(!_0x557506['getDifference'](_0x1962c9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1249a4){return this['editor']['plugins']['get']('Users')['getUser'](_0x1249a4);}['_getExternalAuthor'](_0x2eec20){const _0x22983e=this['editor']['plugins']['get']('Users'),_0x3b83d6=_0x5620e2('external:'+_0x2eec20),_0x564396=_0x22983e['getUser'](_0x3b83d6);return _0x564396||_0x22983e['addUser']({'id':_0x3b83d6,'name':_0x2eec20});}['_createSuggestion'](_0x313cdf,_0x35a64a,_0x39760f,_0x4e04d4,_0x452d92,_0x598645){const _0x3709c3=this['_getAuthorFromId'](_0x4e04d4);if(!_0x3709c3)throw new _0xfd9767('track-changes-user-not-found',this,{'authorId':_0x4e04d4,'suggestionId':_0x39760f});const _0x51830b=this['_suggestionFactory']['buildSuggestion'](_0x313cdf,_0x35a64a,_0x39760f,_0x3709c3,_0x452d92,_0x37f4c3=>{this['_updateSuggestionData'](_0x39760f,{'attributes':_0x37f4c3});const _0x4cb9eb=this['getSuggestion'](_0x39760f);this['_joinWithAdjacentSuggestions'](new Set([_0x4cb9eb])),this['_refreshSuggestionsChain'](new Set([_0x4cb9eb]));},_0x598645);return this['listenTo'](_0x51830b,'accept',()=>{this['_updateSuggestionData'](_0x39760f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x51830b,'discard',()=>{this['_updateSuggestionData'](_0x39760f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39760f,_0x51830b),this['_suggestionState']['set'](_0x51830b,'notReady'),_0x51830b;}['_splitMarkerName'](_0x487ea2){return _0x3156a3(_0x487ea2);}['_breakSuggestionMarker'](_0x12bed0,_0x4e1813,_0x2d3598){const _0x280933=_0x12bed0['getFirstRange'](),_0x359ffc=_0x280933['start'],_0x47e27c=_0x280933['end'];this['_setSuggestionRange'](_0x12bed0,this['_model']['createRange'](_0x359ffc,_0x4e1813));const _0x453a7e=_0x1b5ac0(),_0x4867b4=_0x12bed0['creator']['id'],_0x39112b=_0x12bed0['type']+(_0x12bed0['subType']?':'+_0x12bed0['subType']:'');this['_setSuggestionData']({'id':_0x453a7e,'type':_0x39112b,'createdAt':new Date(),'authorId':_0x4867b4,'originalSuggestionId':_0x12bed0['_originalSuggestionId']||_0x12bed0['id'],'attributes':_0x12bed0['attributes'],'data':_0x12bed0['data']});const _0x2d9964=this['_getAttributeKey'](_0x12bed0);('formatBlock'==_0x12bed0['type']||_0x2d9964&&this['_isBlockAttribute'](_0x2d9964))&&(_0x2d3598=this['_model']['createPositionBefore'](_0x2d3598['parent'])),this['_addSuggestionMarker'](_0x39112b,_0x453a7e,_0x4867b4,this['_model']['createRange'](_0x2d3598,_0x47e27c));}['_findSuggestions'](_0x3a3365,_0x8aeb19=null){const _0x29d3cb=[],_0x33e9e7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3a3365)||(_0x3a3365=[_0x3a3365]);for(const _0x33e387 of this['getSuggestions']()){if(!_0x33e387['isInContent'])continue;if(_0x8aeb19&&_0x33e387['type']!=_0x8aeb19)continue;let _0x5e1a8a=!0x1;for(const _0xc1dbac of _0x33e387['getRanges']()){for(const _0x1c22e8 of _0x3a3365){const _0x4bf76b=_0x1c22e8['start']['isEqual'](_0xc1dbac['end'])||_0x1c22e8['end']['isEqual'](_0xc1dbac['start']);if(_0x4bf76b||_0x1c22e8['getIntersection'](_0xc1dbac)){const _0x45c737=_0x1c22e8['containsRange'](_0xc1dbac)&&zt(this['_model']['schema'],_0xc1dbac['start'],_0x1c22e8),_0x5ad3d5=_0xc1dbac['containsRange'](_0x1c22e8)&&zt(this['_model']['schema'],_0x1c22e8['start'],_0xc1dbac);_0x29d3cb['push']({'suggestion':_0x33e387,'meta':{'isOwn':_0x33e9e7==_0x33e387['author'],'isNextTo':_0x4bf76b,'isInsideObject':_0x45c737,'containsRangeInObject':_0x5ad3d5}}),_0x5e1a8a=!0x0;break;}}if(_0x5e1a8a)break;}}return _0x29d3cb;}['_addSuggestionMarker'](_0x41e54a,_0x559253,_0x17e364,_0x55c187,_0x11886c){this['_model']['change'](_0x127db1=>{let _0xe8710a='suggestion:'+_0x41e54a+':'+_0x559253+':'+_0x17e364;_0x11886c&&(_0xe8710a=_0xe8710a+':'+_0x11886c),_0x127db1['addMarker'](_0xe8710a,{'range':_0x55c187,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x33eb62){const _0x1b1a18=_0x33eb62['previous'],_0x387f6c=_0x33eb62['next'];_0x33eb62['previous']=null,_0x33eb62['next']=null,null!=_0x1b1a18&&_0x1b1a18['next']==_0x33eb62&&(_0x1b1a18['next']=_0x387f6c),null!=_0x387f6c&&_0x387f6c['previous']==_0x33eb62&&(_0x387f6c['previous']=_0x1b1a18),'ready'==this['_suggestionState']['get'](_0x33eb62)&&(this['_suggestionState']['set'](_0x33eb62,'removed'),this['fire']('suggestionUnloaded',_0x33eb62,_0x1b1a18,_0x387f6c));}['_setSuggestionData'](_0x2627e5){const _0x3e2b6f=_0x2627e5['id'],_0x303b6d=this['addSuggestionData'](_0x2627e5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x32b25d=this['editor']['plugins']['get']('PendingActions'),_0x32e98d=_0x303b6d['hasComments'],_0x1cca08=_0x303b6d['subType']?_0x303b6d['type']+':'+_0x303b6d['subType']:_0x303b6d['type'],_0x27ebb4=this['editor']['locale'],_0x377e71=_0x32b25d['add'](o(_0x27ebb4,'PENDING_ACTION_SUGGESTION')),_0x178ba7={'id':_0x3e2b6f,'type':_0x1cca08,'hasComments':_0x32e98d,'data':_0x2627e5['data']||null,'originalSuggestionId':_0x2627e5['originalSuggestionId']||null,'attributes':_0x303b6d['attributes']};this['_adapter']['addSuggestion'](_0x178ba7)['then'](_0xa035e1=>{_0x303b6d['_saved']=!0x0,_0x32b25d['remove'](_0x377e71),_0xa035e1&&_0xa035e1['createdAt']&&(this['_suggestions']['get'](_0x3e2b6f)['createdAt']=_0xa035e1['createdAt']);})['catch'](_0x4f505f=>{throw _0x3587d4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x303b6d['discard']();}),_0x303b6d['stopListening'](),this['_suggestions']['delete'](_0x303b6d['id']),this['_suggestionState']['delete'](_0x303b6d),_0x4f505f;});}return _0x303b6d;}['_isBlockAttribute'](_0x15ff81){return this['editor']['plugins']['get'](_0x5ea722)['isBlockAttribute'](_0x15ff81);}['_isInlineAttribute'](_0x5dbad7){return this['editor']['plugins']['get'](_0x5ea722)['isInlineAttribute'](_0x5dbad7);}['_updateSuggestionData'](_0x23637e,_0x58dadf){const _0x2e7f41=this['editor']['plugins']['get']('PendingActions'),_0x5f1247=this['getSuggestion'](_0x23637e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5f1247['_saved']){const _0x3339d9=_0x2e7f41['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x23637e,_0x58dadf)['then'](()=>{_0x2e7f41['remove'](_0x3339d9);});}else _0x5f1247['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x23637e,_0x58dadf);});}}['_getSuggestionData'](_0x457aea){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xfd9767('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x457aea);}['_handleNewSuggestionMarker'](_0x501caa){const {id:_0x308e80,type:_0x336e86,subType:_0x2ae1a8,authorId:_0x1c53a4}=this['_splitMarkerName'](_0x501caa),_0x29fa0e=this['_suggestions']['get'](_0x308e80)||this['_createSuggestion'](_0x336e86,_0x2ae1a8,_0x308e80,_0x1c53a4,{});switch(this['_checkSuggestionCorrectness'](_0x29fa0e,_0x336e86,_0x2ae1a8,_0x1c53a4),this['_suggestionState']['get'](_0x29fa0e)){case'notReady':this['_getSuggestionData'](_0x308e80)['then'](_0x239599=>{let _0x4d9284=Promise['resolve']();_0x239599['hasComments']&&(_0x4d9284=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x308e80})),_0x4d9284['then'](()=>{this['addSuggestionData'](_0x239599)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29fa0e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x308e80,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29fa0e,'ready'),this['fire']('suggestionLoaded',_0x29fa0e);break;case'ready':this['fire']('suggestionChanged',_0x29fa0e);}return _0x29fa0e['addMarkerName'](_0x501caa),_0x29fa0e;}['_refreshSuggestionsChain'](_0x5af4cc){const _0x4b0c6f=Array['from'](_0x5af4cc),_0x4f8b6d=_0x4b0c6f['filter'](_0x16c9ec=>'attribute'==_0x16c9ec['type']);this['_refreshAttributeSuggestionsChain'](_0x4f8b6d);const _0x4ff748=_0x4b0c6f['filter'](_0x52c908=>!_0x52c908['isMultiRange']&&'attribute'!=_0x52c908['type']),_0x4bfec3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40018f=>!_0x40018f['isMultiRange']&&'attribute'!=_0x40018f['type']),_0x420936=_0x4bfec3['filter'](_0x5a0158=>!_0x5af4cc['has'](_0x5a0158)),_0x172319=new Map(_0x4bfec3['map'](_0x4212dc=>[_0x4212dc,this['_suggestionFactory']['getSuggestionCallback'](_0x4212dc['type'],_0x4212dc['subType'],'chain')])),_0x57b727=new Map(_0x4bfec3['map'](_0x5bff83=>[_0x5bff83,_0x5bff83['getFirstRange']()])),_0x5051b1=new Set(),_0x5a5e06=new Set();for(let _0x2ccf38=0x0;_0x2ccf38<_0x4ff748['length'];_0x2ccf38++)_0x188ad4(_0x4ff748[_0x2ccf38],_0x4ff748,_0x2ccf38+0x1);for(let _0x1b9f17=0x0;_0x1b9f17<_0x4ff748['length'];_0x1b9f17++)_0x188ad4(_0x4ff748[_0x1b9f17],_0x420936,0x0);const _0x5a63cd=new Set();for(let _0x334424=0x0;_0x334424<_0x4ff748['length'];_0x334424++){const _0x194276=_0x4ff748[_0x334424];!_0x5a5e06['has'](_0x194276)&&_0x194276['previous']&&(_0x5a63cd['add'](_0x194276['previous']),_0x194276['previous']['next']===_0x194276&&(_0x194276['previous']['next']=null),_0x194276['previous']=null),!_0x5051b1['has'](_0x194276)&&_0x194276['next']&&(_0x5a63cd['add'](_0x194276['next']),_0x194276['next']['previous']===_0x194276&&(_0x194276['next']['previous']=null),_0x194276['next']=null);}function _0x188ad4(_0x1cb63a,_0x266ff1,_0x1f4a4d){for(let _0x5cf836=_0x1f4a4d;_0x5cf836<_0x266ff1['length'];_0x5cf836++){const _0x3d018e=_0x10284f(_0x1cb63a,_0x266ff1[_0x5cf836]);_0x3d018e&&(_0x3d018e[0x0]['next']=_0x3d018e[0x1],_0x3d018e[0x1]['previous']=_0x3d018e[0x0],_0x5051b1['add'](_0x3d018e[0x0]),_0x5a5e06['add'](_0x3d018e[0x1]));}}function _0x10284f(_0x320f17,_0x20a41c){if(_0x320f17['author']['id']!==_0x20a41c['author']['id'])return null;const _0x21f870=_0x172319['get'](_0x320f17)(_0x320f17,_0x20a41c,_0x57b727['get'](_0x320f17),_0x57b727['get'](_0x20a41c));if(!_0x21f870)return null;return _0x172319['get'](_0x20a41c)(_0x320f17,_0x20a41c,_0x57b727['get'](_0x320f17),_0x57b727['get'](_0x20a41c))?_0x21f870[0x1]['commentThread']&&_0x21f870[0x1]['commentThread']['length']?null:_0x21f870:null;}_0x5a63cd['size']&&this['_refreshSuggestionsChain'](_0x5a63cd);}['_refreshAttributeSuggestionsChain'](_0x34c1fd){if(0x0==_0x34c1fd['length'])return;const _0x551fef=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d1115=>'attribute'==_0x5d1115['type']&&_0x5d1115['_isDataLoaded']),_0x57b3a3=[],_0xc25ef1=new Map();for(const _0x3fbbc0 of _0x551fef){const _0x13b2bd=_0x5620e2(_0x3fbbc0['attributes']);_0xc25ef1['has'](_0x13b2bd)||(_0xc25ef1['set'](_0x13b2bd,_0x57b3a3['length']),_0x57b3a3['push']([]));const _0x3f4a27=_0xc25ef1['get'](_0x13b2bd);_0x57b3a3[_0x3f4a27]['push'](_0x3fbbc0);}!(function(){_0x57b3a3['sort']((_0x37ad85,_0x3a2610)=>{const _0x408138=_0x37ad85[0x0]['createdAt'],_0x811964=_0x3a2610[0x0]['createdAt'];return _0x408138==_0x811964?_0x37ad85[0x0]['attributes']['groupId']<_0x3a2610[0x0]['attributes']['groupId']?-0x1:0x1:_0x408138<_0x811964?-0x1:0x1;});for(const _0x7bd45 of _0x57b3a3)_0x7bd45['sort']((_0x9a3fee,_0x37f6fc)=>_0x9a3fee['id']<_0x37f6fc['id']?-0x1:0x1);}());for(let _0x31c6c5=0x0;_0x31c6c5<_0x57b3a3['length'];_0x31c6c5++){if(0x0==_0x57b3a3[_0x31c6c5]['length'])continue;const _0x2157b6=[];for(let _0x4a1b63=_0x31c6c5+0x1;_0x4a1b63<_0x57b3a3['length'];_0x4a1b63++)0x0!=_0x57b3a3[_0x4a1b63]['length']&&_0x48b2ed(_0x57b3a3[_0x31c6c5],_0x57b3a3[_0x4a1b63])&&_0x2157b6['push'](_0x4a1b63);for(const _0x5c78df of _0x2157b6)_0x57b3a3[_0x31c6c5]=_0x57b3a3[_0x31c6c5]['concat'](_0x57b3a3[_0x5c78df]),_0x57b3a3[_0x5c78df]=[];}for(const _0x55544f of _0x57b3a3)for(let _0x54745c=0x0;_0x54745c<_0x55544f['length'];_0x54745c++){const _0x1c1448=_0x55544f[_0x54745c+0x1]||null;_0x55544f[_0x54745c]['next']!==_0x1c1448&&(_0x55544f[_0x54745c]['next']=_0x1c1448);}for(const _0x21d809 of _0x57b3a3)for(let _0x4aeb72=0x0;_0x4aeb72<_0x21d809['length'];_0x4aeb72++){const _0x172ccf=_0x21d809[_0x4aeb72-0x1]||null;_0x21d809[_0x4aeb72]['previous']!==_0x172ccf&&(_0x21d809[_0x4aeb72]['previous']=_0x172ccf);}function _0x48b2ed(_0x3ddc57,_0x21434c){if(_0x3ddc57[0x0]['attributes']['groupId']!==_0x21434c[0x0]['attributes']['groupId']&&_0x3ddc57[0x0]['author']!==_0x21434c[0x0]['author'])return!0x1;if(!function(_0x3d3686,_0x44fdb2){if(!_0x3d3686['hasComments']&&!_0x44fdb2['hasComments'])return!0x0;if(_0x3d3686['hasComments']&&_0x44fdb2['hasComments'])return!0x1;if(_0x3d3686['hasComments']&&_0x44fdb2['createdAt']<_0x3d3686['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x44fdb2['hasComments']&&_0x3d3686['createdAt']<_0x44fdb2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3ddc57[0x0],_0x21434c[0x0]))return!0x1;const _0x533e7a=Jt(_0x3ddc57[0x0]['attributes'],['groupId','trackingSessionId']),_0x2a8604=Jt(_0x21434c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x548ac7(_0x533e7a,_0x2a8604))return!0x1;if(_0x3ddc57[0x0]['attributes']['groupId']==_0x21434c[0x0]['attributes']['groupId'])return!0x0;if(_0x3ddc57[0x0]['attributes']['trackingSessionId']!==_0x21434c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3ddc57['every'](_0x1e1ca4=>_0x21434c['some'](_0x10ea13=>_0x1e1ca4['getFirstRange']()['isEqual'](_0x10ea13['getFirstRange']())))&&_0x21434c['every'](_0x2a3f0c=>_0x3ddc57['some'](_0x2d2016=>_0x2a3f0c['getFirstRange']()['isEqual'](_0x2d2016['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x24fab7){const _0x4f3acc=Array['from'](_0x24fab7),_0x51080c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x235976=_0x51080c['filter'](_0x412590=>!_0x24fab7['has'](_0x412590)),_0x5de769=new Map(_0x4f3acc['map'](_0x139364=>[_0x139364,this['_suggestionFactory']['getSuggestionCallback'](_0x139364['type'],_0x139364['subType'],'join')])),_0x28bcb3=new Map(_0x51080c['map'](_0x38f0e9=>[_0x38f0e9,_0x38f0e9['getRanges']()]));for(let _0x1d6506=0x0;_0x1d6506<_0x4f3acc['length'];_0x1d6506++){if(_0x5ae55f(this,_0x4f3acc[_0x1d6506],_0x4f3acc,_0x1d6506+0x1))return!0x0;}for(let _0x2f07e0=0x0;_0x2f07e0<_0x4f3acc['length'];_0x2f07e0++){if(_0x5ae55f(this,_0x4f3acc[_0x2f07e0],_0x235976,0x0))return!0x0;}return!0x1;function _0x5ae55f(_0x17aca5,_0xc9b3ea,_0x4653af,_0xb6e9f3){for(let _0x1fb0d8=_0xb6e9f3;_0x1fb0d8<_0x4653af['length'];_0x1fb0d8++){const _0x5efda0=_0x4653af[_0x1fb0d8];if(_0x5efda0['type']!==_0xc9b3ea['type']||_0x5efda0['author']['id']!==_0xc9b3ea['author']['id']||_0x5efda0['subType']!==_0xc9b3ea['subType'])continue;if(!en(_0xc9b3ea,_0x5efda0))continue;if('attribute'==_0xc9b3ea['type']&&_0xc9b3ea['data']['oldValue']!=_0x5efda0['data']['oldValue'])continue;if('attribute'==_0xc9b3ea['type']&&_0x17aca5['_isBlockAttribute'](_0xc9b3ea['data']['key']))continue;if('formatBlock'==_0xc9b3ea['type']){const _0x2a98d8=_0x17aca5['editor']['model'],_0x2b0247=_0xc9b3ea['getContainedElement']();if(_0x2b0247&&(_0x2a98d8['schema']['isObject'](_0x2b0247)||_0x2a98d8['schema']['isLimit'](_0x2b0247)))continue;}const _0xa0bf24=_0x5de769['get'](_0xc9b3ea),_0x4af4ad=_0x28bcb3['get'](_0xc9b3ea),_0x3fd519=_0x28bcb3['get'](_0x5efda0),_0x57ccfc=_0xc9b3ea['commentThread']&&_0xc9b3ea['commentThread']['length'],_0x452e3=_0x5efda0['commentThread']&&_0x5efda0['commentThread']['length'];if(!_0x57ccfc&&_0xa0bf24(_0x3fd519,_0x4af4ad))return _0x17aca5['_joinSuggestions'](_0x5efda0,_0xc9b3ea),_0x28bcb3['delete'](_0xc9b3ea),!0x0;if(!_0x452e3&&_0xa0bf24(_0x4af4ad,_0x3fd519))return _0x17aca5['_joinSuggestions'](_0xc9b3ea,_0x5efda0),_0x28bcb3['delete'](_0x5efda0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2339eb,_0x342f77){if(_0x2339eb['isMultiRange']){for(const _0x451561 of _0x342f77['getRanges']())_0x2339eb['addRange'](_0x451561);}else{const _0x2610e9=_0x342f77['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2339eb,this['_model']['createRange'](_0x2339eb['getFirstRange']()['start'],_0x2610e9));}_0x342f77['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c95cb,_0x5af10e,_0x1c5805){const _0x4c2717=_0x5c95cb['startsWith']('format')||_0x5c95cb['startsWith']('attribute')?'FORMATTING':_0x5c95cb['toUpperCase']();return o(this['editor']['locale'],_0x5af10e+'_'+_0x4c2717+'_SUGGESTION_ANNOUNCEMENT',_0x1c5805);}['_initAriaMarkerChangeAnnouncements'](){const _0x18ef82=this['editor'];if(!_0x18ef82['ui'])return;const {ariaLiveAnnouncer:_0x16d8c8}=_0x18ef82['ui'];_0x596740(this['_model'],({left:_0x400a0a,entered:_0x3be136})=>{for(const _0x3fd3bb of _0x400a0a){const {group:_0x186f98,type:_0x27ef92}=this['_splitMarkerName'](_0x3fd3bb['name']);if('suggestion'===_0x186f98){_0x16d8c8['announce'](this['_getMarkerAnnouncementText'](_0x27ef92,'LEAVE'));break;}}for(const _0x132a22 of _0x3be136){const {group:_0x1ac6dc,type:_0x219510}=this['_splitMarkerName'](_0x132a22['name']);if('suggestion'===_0x1ac6dc){_0x16d8c8['announce'](this['_getMarkerAnnouncementText'](_0x219510,'ENTER',_0x2b647c(_0x285271)));break;}}});}['_processAttributeChanges'](_0x493c41){if(this['_recordAttributeSuggestions'])return!0x1;const _0x18c77c=this['editor'],_0x2b5165=_0x18c77c['model']['document']['differ']['getChanges']();if(0x0==_0x2b5165['length'])return!0x1;const _0x85c3bf=[],_0x4e1282=_0x2b5165['filter'](_0x3116e4=>'attribute'==_0x3116e4['type']),_0x196d6e=_0x2b5165['filter'](_0x114e30=>'insert'==_0x114e30['type']&&'$text'!=_0x114e30['name']),_0x46b6d5=_0x2b5165['filter'](_0x473593=>'remove'==_0x473593['type']&&'$text'!=_0x473593['name']);for(const _0x24539f of _0x4e1282)_0x85c3bf['push']({'key':_0x24539f['attributeKey'],'newValue':_0x24539f['attributeNewValue'],'oldValue':_0x24539f['attributeOldValue'],'range':Zt(_0x24539f['range'],_0x18c77c['model'])});for(const _0x1dca77 of _0x196d6e){const _0x39c9f9=_0x46b6d5['find'](_0x1c7dd6=>_0x1c7dd6['position']['isEqual'](_0x1dca77['position']));_0x39c9f9&&_0x85c3bf['push']({'key':m,'newValue':_0x1dca77['name'],'oldValue':_0x39c9f9['name'],'range':_0x18c77c['model']['createRangeOn'](_0x1dca77['position']['nodeAfter'])});}return 0x0!=_0x85c3bf['length']&&this['_reduceExistingSuggestions'](_0x493c41,_0x85c3bf);}['_processAttributeSuggestions'](_0x50ebbc){let _0x59bd4e=!0x1;const _0x556fee=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4fce16=>_0x4fce16['data']['newRange']&&_0x4fce16['name']['startsWith']('suggestion:attribute:'));for(const _0x20a6e5 of _0x556fee){const {subType:_0x58083a,id:_0x115400}=this['_splitMarkerName'](_0x20a6e5['name']),_0x507af6=_0x58083a['split']('|')[0x0];for(const _0x51f449 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x51f449['id']!=_0x115400&&'attribute'==_0x51f449['type']&&_0x51f449['data']&&_0x51f449['data']['key']==_0x507af6&&_0x51f449['getFirstRange']()['isIntersecting'](_0x20a6e5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x51f449,_0x20a6e5['data']['newRange'],_0x50ebbc),_0x59bd4e=!0x0);}return _0x59bd4e;}['recordAttributeChanges'](_0x336f56){this['_recordAttributeSuggestions']=!0x0,_0x336f56();}['_isRegisteredAttribute'](_0x25b9e7){return this['editor']['plugins']['get'](_0x5ea722)['isRegisteredAttribute'](_0x25b9e7);}['_reduceExistingSuggestions'](_0x1ce6f6,_0x35ef86){if(0x0==_0x35ef86['length'])return!0x1;let _0x3ea10f=!0x1;for(const _0x21f6cc of _0x35ef86){const _0x412c55=this['_findSuggestions'](_0x21f6cc['range'],'attribute')['filter'](_0x18b177=>!_0x18b177['meta']['isNextTo'])['map'](_0x7cd16b=>_0x7cd16b['suggestion']),_0x311f50=_0x5620e2({'newValue':_0x21f6cc['newValue']});_0x412c55['filter'](_0x1f35fc=>{const [_0x3f76aa,_0xadf1ea]=_0x1f35fc['subType']['split']('|');return _0x3f76aa==_0x21f6cc['key']&&_0xadf1ea!=_0x311f50;})['forEach'](_0x4b06f0=>{this['_reduceSuggestionAttributeRange'](_0x4b06f0,_0x21f6cc['range'],_0x1ce6f6),_0x3ea10f=!0x0;});}return _0x3ea10f;}['_reduceSuggestionAttributeRange'](_0x1bfedb,_0x4e5751,_0x1318b7){const _0x5ee59d=_0x1bfedb['getFirstRange']()['getDifference'](_0x4e5751);0x0!==_0x5ee59d['length']?0x1!==_0x5ee59d['length']?this['_breakSuggestionMarker'](_0x1bfedb,_0x4e5751['start'],_0x4e5751['end']):this['_setSuggestionRange'](_0x1bfedb,_0x5ee59d[0x0]):_0x1318b7['removeMarker'](_0x1bfedb['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x499850){this['_editor']=_0x499850,this['_model']=_0x499850['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2b649f,_0x23cf53,_0x452b1e,_0x35bd5c,_0x59050b,_0x5457b0,_0x1059a4){return new T(this['_model'],{'type':_0x2b649f,'subType':_0x23cf53,'id':_0x452b1e,'originalSuggestionId':_0x1059a4,'author':_0x35bd5c,'creator':_0x35bd5c,'attributes':_0x59050b,'onAttributesChange':_0x5457b0,'onAccept':(..._0x1b18dc)=>this['getSuggestionCallback'](_0x2b649f,_0x23cf53,'accept')(..._0x1b18dc),'onDiscard':(..._0x29c39f)=>this['getSuggestionCallback'](_0x2b649f,_0x23cf53,'discard')(..._0x29c39f)});}['registerCustomCallback'](_0x40d010,_0x5e5775,_0x13aa0a,_0x25ea4e){const _0x47e3b8=_0x40d010+':'+_0x5e5775+':'+_0x13aa0a;this['_customCallbacks']['set'](_0x47e3b8,_0x25ea4e);}['getSuggestionCallback'](_0x1f725a,_0x25d74d,_0x774ecf){const _0x369ee=_0x1f725a+':'+_0x25d74d+':'+_0x774ecf;return this['_customCallbacks']['get'](_0x369ee)||this['_defaultCallbacks']['get'](_0x1f725a+':'+_0x774ecf);}['_registerDefaultCallbacks'](){const _0x2b4c15=()=>!0x1,_0xe0249a=_0x16a8b1=>{_0x16a8b1['sort']((_0x248bf9,_0x1ef07c)=>_0x248bf9['start']['isBefore'](_0x1ef07c['start'])?0x1:-0x1),this['_model']['change'](_0x4a4802=>{for(const _0x13e9d2 of _0x16a8b1){let _0x577364;_0x577364=_0x13e9d2['end']['isAtEnd']&&_0x13e9d2['end']['parent']==_0x13e9d2['start']['nodeAfter']?_0x4a4802['createSelection'](_0x13e9d2['start']['nodeAfter'],'on'):_0x4a4802['createSelection'](_0x13e9d2),this['_model']['deleteContent'](_0x577364,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1c1dcc=(_0x12f77c,_0x16c0bf)=>{_0x16c0bf&&this['_model']['change'](_0x5a3906=>{const {commandName:_0xd46d6b,commandParams:_0x3768e4=[]}=_0x16c0bf,_0x29b83e=_0x12f77c['map'](_0x3cf843=>(Kt(_0x3cf843)&&(_0x3cf843=this['_model']['createRange'](_0x3cf843['end'])),_0x3cf843))['filter'](_0x17735a=>'$graveyard'!==_0x17735a['root']['rootName']);if(_0x29b83e['length']<0x1)return;const _0x4028ca=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b44d8=>_0x321f06['fromRange'](_0x2b44d8));_0x5a3906['setSelection'](_0x29b83e);for(const _0x6614cf of this['_editor']['commands']['commands']())_0x6614cf['refresh']();_0x3768e4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xd46d6b,..._0x3768e4);const _0x1b1934=_0x4028ca['filter'](_0x142254=>'$graveyard'!=_0x142254['root']['rootName']);_0x1b1934['length']>0x0&&_0x5a3906['setSelection'](_0x1b1934);for(const _0x140149 of _0x4028ca)_0x140149['detach']();});},_0x1af876=(_0x59c3e2,_0x232894)=>0x1==_0x59c3e2['length']&&0x1==_0x232894['length']&&_0x59c3e2[0x0]['end']['isEqual'](_0x232894[0x0]['start']),_0x29fd3c=(_0x294d9f,_0x3d6702,_0x23fbea,_0x3cdc70)=>nn(_0x294d9f,_0x3d6702,_0x23fbea,_0x3cdc70)?[_0x294d9f,_0x3d6702]:nn(_0x3d6702,_0x294d9f,_0x3cdc70,_0x23fbea)?[_0x3d6702,_0x294d9f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b4c15),this['_defaultCallbacks']['set']('insertion:discard',_0xe0249a),this['_defaultCallbacks']['set']('insertion:join',_0x1af876),this['_defaultCallbacks']['set']('insertion:chain',_0x29fd3c),this['_defaultCallbacks']['set']('deletion:accept',_0xe0249a),this['_defaultCallbacks']['set']('deletion:discard',_0x2b4c15),this['_defaultCallbacks']['set']('deletion:join',_0x1af876),this['_defaultCallbacks']['set']('deletion:chain',_0x29fd3c),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c1dcc),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b4c15),this['_defaultCallbacks']['set']('formatInline:join',_0x1af876),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b4c15),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c1dcc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b4c15),this['_defaultCallbacks']['set']('formatBlock:join',_0x1af876),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b4c15),this['_defaultCallbacks']['set']('attribute:accept',_0x2b4c15),this['_defaultCallbacks']['set']('attribute:discard',(_0x31bbaa,_0xc38ad0)=>{if(!_0xc38ad0)return;const _0x4875c8=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x23271d=>{if(_0xc38ad0['key']==m)for(const _0x48a914 of _0x31bbaa){const _0x3c1b8d=_0x48a914['start']['nodeAfter'],_0x192c0c=_0xc38ad0['oldValue'];_0x23271d['rename'](_0x3c1b8d,_0x192c0c);}else{if(_0x4875c8['_isBlockAttribute'](_0xc38ad0['key'])){for(const _0x4c11d8 of _0x31bbaa)void 0x0!==_0xc38ad0['oldValue']?_0x23271d['setAttribute'](_0xc38ad0['key'],_0xc38ad0['oldValue'],_0x4c11d8['start']['nodeAfter']):_0x23271d['removeAttribute'](_0xc38ad0['key'],_0x4c11d8['start']['nodeAfter']);}else{for(const _0x303e3a of _0x31bbaa)_0xc38ad0['oldValue']?_0x23271d['setAttribute'](_0xc38ad0['key'],_0xc38ad0['oldValue'],_0x303e3a):_0x23271d['removeAttribute'](_0xc38ad0['key'],_0x303e3a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1af876);}}function zt(_0x236220,_0x219647,_0x468daf){for(const _0x52decd of _0x219647['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52decd['root']==_0x52decd)return!0x1;if(!_0x468daf['containsItem'](_0x52decd))return!0x1;if(_0x236220['isObject'](_0x52decd)||_0x236220['isLimit'](_0x52decd))return!0x0;}return!0x1;}function Kt(_0x1e34a1){return _0x1e34a1['end']['parent']==_0x1e34a1['start']['nodeAfter']&&_0x1e34a1['end']['isAtStart'];}function Wt(_0x27838d,_0x21f0fb,_0xedcc51,_0x33073b){const _0x3cbfc1=_0x24cffb=>!_0x24cffb['item']['is']('$textProxy')&&!_0x33073b['isObject'](_0x24cffb['item']),_0x4de7cd=_0x27838d['start']['getLastMatchingPosition'](_0x3cbfc1),_0x4f2024=_0x27838d['end']['getLastMatchingPosition'](_0x3cbfc1,{'direction':'backward'});return(!_0x27838d['start']['isEqual'](_0x4de7cd)||!_0x27838d['end']['isEqual'](_0x4f2024))&&(_0x4de7cd['isBefore'](_0x4f2024)?_0xedcc51['updateMarker'](_0x21f0fb,{'range':_0xedcc51['createRange'](_0x4de7cd,_0x4f2024)}):_0xedcc51['removeMarker'](_0x21f0fb),!0x0);}function Ht(_0x53cd82){return _0x5620e2(_0x53cd82);}function Qt(_0x2986f4){const _0x235c7d=_0x2986f4['start']['nodeAfter'];return _0x235c7d&&_0x235c7d['is']('element');}function Xt(_0x819d46){return Kt(_0x819d46)||function(_0x1c7318){return _0x1c7318['start']['parent']==_0x1c7318['end']['nodeBefore']&&_0x1c7318['start']['isAtEnd'];}(_0x819d46);}function Yt(_0x172e8d,_0x5b4f6b){try{const _0x4e4b3f=_0x172e8d['getRange']();for(const _0x186809 of _0x5b4f6b)if(_0x172e8d!==_0x186809&&_0x4e4b3f&&_0x4e4b3f['isIntersecting'](_0x186809['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x594dd2,_0x15d759){return null==_0x594dd2['end']['nodeBefore']&&_0x594dd2['end']['parent']==_0x594dd2['start']['nodeAfter']?tn(_0x594dd2['start']['nodeAfter'],_0x15d759):_0x594dd2;}function tn(_0x2153cc,_0x19d66f){const _0x51860d=_0x19d66f['schema']['isObject'](_0x2153cc)||_0x19d66f['schema']['isSelectable'](_0x2153cc);return _0x19d66f['createRange'](_0x19d66f['createPositionAt'](_0x2153cc,'before'),_0x51860d?_0x19d66f['createPositionAfter'](_0x2153cc):_0x19d66f['createPositionAt'](_0x2153cc,'end'));}function nn(_0x124a21,_0x5a34f2,_0x538b94,_0x14a17b){return!!en(_0x124a21,_0x5a34f2)&&_0x538b94['end']['isEqual'](_0x14a17b['start']);}function en(_0x494e97,_0x3a7119){if(!_0x494e97['_isDataLoaded']||!_0x3a7119['_isDataLoaded'])return!0x1;const _0x37d3fe=new Set(Object['keys'](_0x494e97['attributes'])),_0x228a3a=new Set(Object['keys'](_0x3a7119['attributes']));if(_0x37d3fe['delete']('groupId'),_0x228a3a['delete']('groupId'),0x0==_0x37d3fe['size']&&0x0==_0x228a3a['size'])return!0x0;if(_0x37d3fe['size']!=_0x228a3a['size'])return!0x1;const _0x475561={..._0x494e97['attributes']},_0x1ad1c6={..._0x3a7119['attributes']};return delete _0x475561['groupId'],delete _0x1ad1c6['groupId'],JSON['stringify'](_0x475561)==JSON['stringify'](_0x1ad1c6);}function sn(_0x9d6159,_0x5d3e69){const _0x26b994=on(_0x9d6159['attributes']),_0xd7d887=on(_0x5d3e69);if(!_0x9d6159['_isDataLoaded'])return!0x1;for(const _0x39f5df of Object['keys'](_0xd7d887))if(!_0x548ac7(_0x26b994[_0x39f5df],_0xd7d887[_0x39f5df]))return!0x1;return!0x0;}function on(_0x2b6518){const _0x38c6f5=Object['assign']({},_0x2b6518);return delete _0x38c6f5['skipNestingCheck'],delete _0x38c6f5['tablePasteChainId'],_0x38c6f5;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4b9957(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4fa007,_0x598dbd,_0x4fbbb2,_0x3463db){super(),this['model']=_0x598dbd,this['view']=_0x4fbbb2,this['commentThreadController']=_0x3463db,this['_editor']=_0x4fa007,this['_acceptCommand']=_0x4fa007['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4fa007['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x20cd7f,_0x403e17)=>_0x20cd7f||_0x403e17),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2097e0=>_0x2097e0&&this['_editor']['model']['canEditAt'](_0x598dbd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x19ae59=>_0x19ae59&&this['_editor']['model']['canEditAt'](_0x598dbd['getRanges']())),this['_pendingAction']=null,_0x4fbbb2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4fbbb2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4fbbb2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4fbbb2,'change:isDirty',()=>{_0x4fbbb2['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 _0x11519c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x11519c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4f4180{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3f330c,_0x289fc7,_0x42e276,_0x290bf4){super(_0x3f330c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x535ee5(_0x3f330c,o(_0x3f330c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x289fc7['authoredAt']),this['bind']('authoredAt')['to'](_0x289fc7),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',_0x289fc7,'authoredAt',this,'descriptionParts',(_0x1b5375,_0x4c5d6f,_0x3b7c41)=>{const _0x39fa96=_0x3b7c41['map'](_0x5a7e14=>ls(_0x5a7e14['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1b5375-0x1,_0x289fc7['author']['name'],_0x4c5d6f?_0x290bf4['formatDateTime'](_0x4c5d6f):'',new DOMParser()['parseFromString'](_0x39fa96,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2e2df7(),this['focusTracker']=new _0x7dfc5d(),this['keystrokes']=new _0x492a2e(),this['focusCycler']=new _0x2188cf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2e588c=>_0x2e588c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x289fc7,this['_localUser']=_0x42e276,this['_config']=_0x290bf4,_0x290bf4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3dfb16(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x198a75}=this['_config'];this['commentsListView']=new _0x198a75(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',_0x3ae7ed=>_0x3ae7ed+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2acd3d,_0x132846)=>_0x2acd3d||!!_0x132846);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3cbb63}=this['_config'],_0x39aa7d=new _0x3cbb63(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2ef7d9=_0x39aa7d['commentInputView'];return _0x39aa7d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2ef7d9,'value',(_0x1ab1aa,_0x1f9847,_0x1ca266)=>!!_0x1ca266||_0x1ab1aa&&!_0x1f9847),_0x2ef7d9['on']('submit',(_0x39ad15,_0x377829)=>{this['fire']('addComment',_0x377829),_0x2ef7d9['editor']['setData']('');}),_0x2ef7d9['on']('cancel',()=>this['focus']()),_0x2ef7d9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x39aa7d;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4db5f1,_0x6b65ea,_0x50f3c6,_0x82f562){super(_0x4db5f1,_0x6b65ea,_0x50f3c6,_0x82f562),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x447acf=>_0x447acf&&_0x447acf[0x0]?_0x447acf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x528673,_0x2a85f3)=>{let _0x542915='';for(const _0xaee063 of _0x528673)_0x542915+='<p>'+ls(_0xaee063['content'],_0xaee063['color'])+'</p>';return _0x2a85f3?_0x542915:_0x636b2e(_0x542915,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x82f562['SuggestionView'](_0x4db5f1,_0x6b65ea,{'formatDateTime':_0x82f562['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 _0x5813eb=this['bindTemplate'],_0x150bd8=[this['suggestionView']];return this['commentsListView']&&_0x150bd8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x150bd8['push'](this['commentThreadInputView']),_0x150bd8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5813eb['if']('isActive','ck-suggestion-wrapper--active'),_0x5813eb['to']('type',_0x51e095=>'ck-suggestion-'+_0x51e095),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':_0x5813eb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x150bd8};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x4f4180{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x62342b,_0x394fca,_0x26e965){super(_0x62342b),this['_model']=_0x394fca,this['_config']=_0x26e965,this['set']('description',''),this['bind']('authoredAt')['to'](_0x394fca),this['acceptButton']=this['_createButton'](o(_0x62342b,'Accept\x20suggestion'),_0x1727c6,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x62342b,'Discard\x20suggestion'),_0x152be5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5452b8(_0x62342b,_0x394fca['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2e2df7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x7dfc5d(),this['keystrokes']=new _0x492a2e(),this['focusCycler']=new _0x2188cf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x203b21=>_0x203b21['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1485d6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1485d6['innerHTML']=this['description'],this['on']('change:description',(_0x1e667a,_0xa5f379,_0x16dec3)=>{_0x1485d6['innerHTML']=_0x16dec3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1f3afe=this['bindTemplate'],_0x1151bd=[{'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':_0x1f3afe['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1f3afe['to']('authoredAt',_0x5c2e8d=>this['_config']['formatDateTime'](_0x5c2e8d))}]}]},{'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']&&_0x1151bd['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':_0x1151bd}]};}['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'](_0xca5656,_0x5eb41f,_0x28a2dc,_0x27ce3c,_0x1e0c20){const _0x14b8ed=new _0x5a0786(this['locale']);return _0x14b8ed['set']({'label':_0xca5656,'icon':_0x5eb41f,'tooltip':!0x0,'tooltipPosition':_0x1e0c20}),_0x14b8ed['extendTemplate']({'attributes':{'class':_0x28a2dc}}),_0x14b8ed['on']('execute',()=>{this['fire'](_0x27ce3c,this['_model']['id']);}),_0x14b8ed;}['_setupKeyboardNavigation'](){const _0x497880=this['element'];this['keystrokes']['listenTo'](_0x497880);for(const _0x1dfb4e of this['focusables'])this['focusTracker']['add'](_0x1dfb4e['element']),this['keystrokes']['listenTo'](_0x1dfb4e['element']);this['keystrokes']['set']('enter',(_0x32dbba,_0x420e9b)=>{_0x497880===_0x32dbba['target']&&(this['focusCycler']['focusFirst'](),_0x420e9b());}),this['keystrokes']['set']('esc',(_0xcad19b,_0x3dc2a5)=>{_0x497880!==_0xcad19b['target']&&(this['focus'](),_0x3dc2a5());});}}class u extends _0x1061bc{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x14dd6c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5dac6a){super(_0x5dac6a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2cb05b=this['editor']['config'];_0x2cb05b['define']('trackChanges.SuggestionThreadView',fe),_0x2cb05b['define']('trackChanges.SuggestionView',we),_0x2cb05b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2cb05b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5eeac1,_0x231a77){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5563d4,_0x2d334e]of this['_handleControllerBuffer']){const _0x3b3418=this['_suggestionToController']['has'](_0x5563d4);_0x3b3418||_0x2d334e?_0x3b3418&&_0x2d334e&&this['_destroyController'](_0x5563d4):this['_initializeController'](_0x5563d4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5eeac1,_0x231a77);}['init'](){const _0x43e474=this['editor'],_0x48de96=_0x43e474['plugins']['get']('TrackChangesEditing'),_0x206a93=_0x43e474['plugins']['get']('Annotations'),_0x11b740=_0x43e474['plugins']['get']('EditorAnnotations'),_0x54e79b=_0x43e474['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x11b740['addSourceCollector'](()=>{const _0x183105=[];for(const [_0xb2578c,_0x11b3b2]of Array['from'](this['_suggestionToController'])){const _0x14dbf7=_0xb2578c['getAllAdjacentSuggestions'](),_0x209ff2=[];for(const _0x5b998d of _0x14dbf7){if(!_0x5b998d['isInContent'])continue;if(_0x5b998d['isMultiRange']){_0x209ff2['push'](..._0x5b998d['getRanges']());continue;}const _0x3e21cb=_0x5b998d['getFirstRange']();if(_0x209ff2['length']>0x0){const _0x46f7b6=_0x209ff2[0x0]['getJoined'](_0x3e21cb);if(_0x46f7b6){_0x209ff2[0x0]=_0x46f7b6;continue;}}_0x209ff2['push'](_0x3e21cb);}_0x183105['push']([_0x11b3b2['view'],_0x209ff2]);}return _0x183105;}),this['listenTo'](_0x48de96,'suggestionLoaded',(_0x579552,_0x4406e8)=>{this['listenTo'](_0x4406e8,'change:previous',(_0x10301a,_0x5d859d,_0x34becb,_0x391869)=>{_0x4406e8['isInContent']&&(null==_0x34becb?(this['_updateController'](_0x391869['head']),this['_handleSuggestionControllerDelayed'](_0x4406e8,!0x1)):(this['_updateController'](_0x34becb['head']),null==_0x391869&&this['_handleSuggestionControllerDelayed'](_0x4406e8,!0x0)));}),null!==_0x4406e8['previous']?this['_updateController'](_0x4406e8['head']):this['_handleSuggestionControllerDelayed'](_0x4406e8,!0x1);}),this['listenTo'](_0x48de96,'suggestionUnloaded',(_0x46e16f,_0x459f8f,_0x59f902)=>{this['stopListening'](_0x459f8f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x459f8f),this['_suggestionToController']['has'](_0x459f8f)&&this['_destroyController'](_0x459f8f),_0x59f902&&this['_updateController'](_0x59f902['head']);}),this['listenTo'](_0x48de96,'suggestionChanged',(_0x46ff35,_0x243487)=>{this['_updateController'](_0x243487);}),this['listenTo'](_0x206a93,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x54e79b,'addComment',(_0x26da69,{threadId:_0x38e964,isFromAdapter:_0x5d02fd})=>{if(_0x5d02fd||!_0x48de96['hasSuggestion'](_0x38e964))return;const _0x5ac597=_0x48de96['getSuggestion'](_0x38e964);this['_suggestionToController']['get'](_0x5ac597)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1bffdd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x802770;for(const _0x113a87 in _0x1bffdd){const _0x1b5e4b=_0x113a87,_0xf25403=_0x1bffdd[_0x1b5e4b];if('trackChangesLicenseKeyValid'==_0xf25403||'trackChangesLicenseKeyInvalid'==_0xf25403||'trackChangesLicenseKeyExpired'==_0xf25403||'trackChangesLicenseKeyDomainLimit'==_0xf25403||'trackChangesLicenseKeyNotAllowed'==_0xf25403||'trackChangesLicenseKeyEvaluationLimit'==_0xf25403||'trackChangesLicenseKeyUsageLimit'==_0xf25403){delete _0x1bffdd[_0x1b5e4b],_0x802770=_0xf25403,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x802770&&_0x1bffdd['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x802770&&_0x1bffdd['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x802770&&_0x1bffdd['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x802770&&_0x1bffdd['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x802770&&_0x1bffdd['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x802770&&_0x1bffdd['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4e31bb){const _0x4ab657=this['_suggestionToController']['get'](_0x4e31bb);if(!_0x4ab657)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4ab657['view'])||null;}['getSuggestionForAnnotation'](_0x53575a){const _0x3b0fe=this['_viewToController']['get'](_0x53575a['innerView']);return _0x3b0fe?_0x3b0fe['model']:null;}['_refreshActiveMarkers'](){const _0x24fed7=this['editor']['plugins']['get']('Annotations'),_0x4f73dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d5f6=Array['from'](_0x24fed7['activeAnnotations'],_0x278c1c=>_0x278c1c['innerView'])['filter'](_0x24f4cf=>this['_viewToController']['has'](_0x24f4cf)),_0x239dbe=[];for(const _0x5e5b06 of _0x39d5f6){const _0x2bfd98=this['_viewToController']['get'](_0x5e5b06)['model']['getAllAdjacentSuggestions']();_0x239dbe['push'](..._0x2bfd98['reduce']((_0xf76ac0,_0x58c8f4)=>[..._0xf76ac0,..._0x58c8f4['getMarkerNames']()],[]));}_0x4f73dc['activeMarkers']=_0x239dbe;}['_addUIComponentsToFactory'](){const _0x9ee594=this['editor'],_0x4be892=_0x9ee594['locale'],_0x2abbe4=o(_0x4be892,'Track\x20changes'),_0x297cd3=new _0x24c07d([{'type':'switchbutton','model':new _0x38a8a5({'withText':!0x0,'isToggleable':!0x0,'label':_0x2abbe4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x38a8a5({'withText':!0x0,'label':o(_0x4be892,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a8a5({'withText':!0x0,'label':o(_0x4be892,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a8a5({'withText':!0x0,'label':o(_0x4be892,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a8a5({'withText':!0x0,'label':o(_0x4be892,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x9ee594['plugins']['has']('TrackChangesPreview')&&_0x297cd3['addMany']([{'type':'separator'},{'type':'button','model':new _0x38a8a5({'withText':!0x0,'label':o(_0x4be892,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x8f2945 of _0x297cd3)if(ke(_0x8f2945)){const _0x3a2f67=_0x9ee594['commands']['get'](_0x8f2945['model']['commandName']);_0x8f2945['model']['bind']('isOn','isEnabled')['to'](_0x3a2f67,'value','isEnabled');}_0x9ee594['ui']['componentFactory']['add']('trackChanges',_0xcb477a=>this['_createToolbarButton'](_0xcb477a,_0x297cd3,_0x2abbe4)),_0x9ee594['ui']['componentFactory']['add']('menuBar:trackChanges',_0x26f8ef=>this['_createMenuBarMenu'](_0x26f8ef,_0x297cd3,_0x2abbe4));}['_createToolbarButton'](_0x75afae,_0x4c9ee4,_0x2cadb3){const _0x2da3e6=_0xd8592f(_0x75afae,_0x36e4fd),_0x5b9d82=this['editor']['commands']['get']('trackChanges');_0x2da3e6['buttonView']['set']({'tooltip':_0x2cadb3,'label':_0x2cadb3,'icon':_0x23a792}),_0x2da3e6['buttonView']['bind']('isOn')['to'](_0x5b9d82,'value'),_0x2da3e6['buttonView']['on']('execute',()=>{_0x5b9d82['execute'](),this['editor']['editing']['view']['focus']();}),_0x4ee6cb(_0x2da3e6,_0x4c9ee4,{'role':'menu'});const _0x1a9b6d=[];for(const _0x4782e7 of _0x4c9ee4)ke(_0x4782e7)&&_0x1a9b6d['push'](this['editor']['commands']['get'](_0x4782e7['model']['commandName']));const _0xd3f3b=_0x2da3e6['buttonView'];return _0xd3f3b['actionView']['unbind']('isEnabled'),_0xd3f3b['arrowView']['unbind']('isEnabled'),_0xd3f3b['actionView']['bind']('isEnabled')['to'](_0x5b9d82,'isEnabled'),_0xd3f3b['arrowView']['bind']('isEnabled')['toMany'](_0x1a9b6d,'isEnabled',(..._0x498920)=>_0x498920['some'](_0x41958c=>_0x41958c)),_0x2da3e6['on']('execute',_0x218fb6=>{this['editor']['execute'](_0x218fb6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2da3e6;}['_createMenuBarMenu'](_0x10714d,_0x1aa1c5,_0x4bad88){const _0x1b1fd2=new _0x5a9577(_0x10714d),_0x252bb9=this['editor']['commands']['get']('trackChanges');_0x1b1fd2['buttonView']['set']({'label':_0x4bad88,'icon':_0x23a792});const _0x2e6ebc=new _0x12850b(_0x10714d);for(const _0xf608db of _0x1aa1c5){if('separator'==_0xf608db['type']){_0x2e6ebc['items']['add'](new _0x428d40(_0x10714d));continue;}const _0x39b604=new _0x345a8f(_0x10714d,_0x1b1fd2),_0x45e742=new _0x5e5b2b(_0x10714d),_0x20b486=_0xf608db['model'];_0x45e742['bind'](...Object['keys'](_0x20b486))['to'](_0x20b486),_0x45e742['delegate']('execute')['to'](_0x1b1fd2),_0x45e742['on']('execute',()=>{this['editor']['execute'](_0x20b486['commandName']),this['editor']['editing']['view']['focus']();}),_0x39b604['children']['add'](_0x45e742),_0x2e6ebc['items']['add'](_0x39b604);}return _0x1b1fd2['bind']('isEnabled')['to'](_0x252bb9,'isEnabled'),_0x1b1fd2['panelView']['children']['add'](_0x2e6ebc),_0x1b1fd2;}['_initializeController'](_0x604773){const _0x345b8f=this['editor'],_0x391d10=_0x345b8f['config'],_0x1eebd1=_0x345b8f['plugins']['get']('Annotations'),_0x539918=_0x345b8f['plugins']['get']('CommentsRepository'),_0x56f0f2=_0x345b8f['plugins']['get']('EditorAnnotations'),_0x292904=_0x345b8f['plugins']['get'](_0x14dd6c)['me'],_0x2acb2a=_0x391d10['get']('trackChanges')['SuggestionThreadView'],_0x102c49=_0x391d10['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3033f1,CommentThreadInputView:_0x1f1a25}=_0x345b8f['plugins']['get']('CommentsUI');let _0x79b618,_0x238f95,_0x4f55d5;this['_annotationViews']['has'](_0x604773['id'])?(_0x238f95=this['_annotationViews']['get'](_0x604773['id']),_0x79b618=_0x238f95['mainView']):(_0x79b618=new _0x2acb2a(_0x345b8f['locale'],_0x604773,_0x292904,{'disableComments':this['_disableComments'],'editorConfig':{..._0x391d10['get']('comments.editorConfig'),'licenseKey':_0x391d10['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x391d10['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x391d10['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x391d10['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x435636(_0x391d10['get']('locale'),_0x345b8f['locale']),'CommentView':_0x391d10['get']('comments')['CommentView'],'CommentsListView':_0x3033f1,'CommentThreadInputView':_0x1f1a25,'SuggestionView':_0x102c49}),_0x79b618['suggestionView']['acceptButton']['on']('execute',()=>{_0x345b8f['editing']['view']['focus']();}),_0x79b618['suggestionView']['discardButton']['on']('execute',()=>{_0x345b8f['editing']['view']['focus']();}),_0x238f95=_0x1eebd1['createAnnotationView'](this['editor']['locale'],_0x79b618),_0x238f95['bind']('isDirty')['to'](_0x79b618,'isDirty'),_0x238f95['bind']('length')['to'](_0x79b618),_0x238f95['bind']('type')['to'](_0x79b618,'type',_0x36835a=>'suggestion-'+_0x36835a),_0x79b618['on']('escape',()=>{_0x4f55d5['fire']('escape');}),this['_annotationViews']['set'](_0x604773['id'],_0x238f95));const _0x3607a8=_0x539918['createCommentThreadController'](_0x604773['commentThread'],_0x79b618),_0x47a2e6=new pe(_0x345b8f,_0x604773,_0x79b618,_0x3607a8),_0x52512a=_0x604773['getAllAdjacentSuggestions']()['filter'](_0x4896ff=>_0x4896ff['isInContent']);_0x79b618['descriptionParts']=_0x345b8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x52512a),this['_suggestionToController']['set'](_0x604773,_0x47a2e6),this['_viewToController']['set'](_0x79b618,_0x47a2e6);const _0x1fd988=()=>{const _0x1c085c=[],_0x2764ba=_0x604773['getAllAdjacentSuggestions']()['filter'](_0x2e522d=>_0x2e522d['isInContent']);for(const _0x3c0169 of _0x2764ba)_0x1c085c['push'](..._0x3c0169['getMarkers']());return _0x3639d0(_0x345b8f['editing'],_0x1c085c);};_0x4f55d5=_0x1eebd1['createAnnotation']({'view':_0x238f95,'target':_0x1fd988,'type':()=>'suggestion-'+_0x47a2e6['view']['type'],'isVisible':!!_0x1fd988()}),_0x539918['_bindAnnotationToEditors'](_0x79b618,_0x4f55d5),_0x1eebd1['add'](_0x4f55d5),_0x56f0f2['registerAnnotation'](_0x4f55d5);}['_destroyController'](_0x502a12){const _0x54285e=this['editor']['plugins']['get']('CommentsRepository'),_0x48d18b=this['editor']['plugins']['get']('Annotations'),_0x226cec=this['_suggestionToController']['get'](_0x502a12),_0x452c6f=_0x226cec['view'],_0x2b893f=_0x48d18b['getByInnerView'](_0x452c6f);_0x54285e['_unbindEditors'](_0x452c6f),_0x2b893f&&_0x48d18b['remove'](_0x2b893f),this['_suggestionToController']['delete'](_0x502a12),this['_viewToController']['delete'](_0x452c6f),_0x226cec['destroy']();}['_updateController'](_0x19ca8e){if(!_0x19ca8e['isInContent']||!this['_suggestionToController']['has'](_0x19ca8e))return;const _0x36385a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x101ca6=this['_suggestionToController']['get'](_0x19ca8e),_0x290352=_0x19ca8e['getAllAdjacentSuggestions']();_0x101ca6['view']['descriptionParts']=_0x36385a['descriptionFactory']['getDescriptions'](_0x290352);}['destroy'](){for(const _0x29a64e of this['_suggestionToController']['keys']())this['_destroyController'](_0x29a64e);for(const _0x24caac of this['_annotationViews']['values']())_0x24caac['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1965be){return'model'in _0x1965be;}class Ne extends _0x1061bc{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x947c4f){this['editor']['plugins']['get'](d)['adapter']=_0x947c4f;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xdd92c2){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xdd92c2);}['getSuggestions']({skipNotAttached:_0xb52c1d=!0x1,toJSON:_0x27db2d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xb52c1d,'toJSON':_0x27db2d});}['getSuggestion'](_0x9ec031){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x9ec031);}}const p=['Pagination'];class re extends _0x1061bc{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b8b98=this['editor'];if(_0x1b8b98['config']['define']('trackChangesData.editorCreator',_0x4ed9d0=>{const _0x4d98b3=_0x1b8b98['model']['document']['getRootNames']()['reduce']((_0x3dad15,_0x27f42a)=>(_0x3dad15[_0x27f42a]='',_0x3dad15),{});return _0x1b8b98['constructor']['create'](_0x4d98b3,_0x4ed9d0);}),'function'!=typeof _0x1b8b98['config']['get']('trackChangesData')['editorCreator'])throw new _0xfd9767('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xa13db){return P(this['editor'],!0x0,_0xa13db);}['getDataWithDiscardedSuggestions'](_0x1c28e9){return P(this['editor'],!0x1,_0x1c28e9);}}class Fe extends _0x1061bc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a2d30){function _0x99da42(_0xd97a7a){return _0xd97a7a['map'](_0x27824d=>String['fromCharCode'](_0x27824d))['join']('');}super(_0x5a2d30),this['result']='end',_0x5a2d30[_0x99da42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x99da42([0x76,0x69,0x65,0x77])][_0x99da42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x99da42([0x61,0x75,0x74,0x6f]),_0x5a2d30[_0x99da42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x99da42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x99da42([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x99da42([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x99da42([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 De(_0x43272c){return void 0x0!==_0x43272c['getRootsAttributes'];}async function P(_0x3752fd,_0x18f1d1,_0x3d60bb){const _0x1994b4=_0x1309ab(_0x3752fd,p);_0x1994b4['plugins']['push'](d,Fe),_0x1994b4['rootsAttributes']=De(_0x3752fd)?_0x3752fd['getRootsAttributes']():void 0x0;const _0x4dbc03=document['createDocumentFragment'](),_0x4e4d21=_0x3752fd['config']['get']('trackChangesData')['editorCreator'],_0x34ed26=await _0x4e4d21(_0x1994b4,()=>function(_0x358762){const _0x509550=document['createElement']('div');return _0x358762['appendChild'](_0x509550),_0x509550;}(_0x4dbc03));!function(_0x36906c,_0x112a82){const _0x2a919a=_0x36906c['model']['document']['getRootNames']()['reduce']((_0x4478f3,_0x4a7568)=>(_0x4478f3[_0x4a7568]=_0x36906c['data']['get']({'rootName':_0x4a7568}),_0x4478f3),{}),_0x5212bc=_0x36906c['plugins']['get']('Users')['users']['map'](_0x375e38=>({'id':_0x375e38['id'],'name':_0x375e38['name']})),_0x4e71ff=_0x36906c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5bdac7=_0x36906c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2899b3=_0x112a82['plugins']['get']('Users'),_0x3fef29=_0x112a82['plugins']['get']('TrackChangesEditing'),_0x3efab9=_0x112a82['plugins']['get']('CommentsRepository');for(const _0x48e25a of _0x3efab9['getCommentThreads']())_0x48e25a['remove']();for(const _0x127fce of _0x5212bc)_0x2899b3['getUser'](_0x127fce['id'])||_0x2899b3['addUser'](_0x127fce);_0x2899b3['me']||_0x2899b3['useAnonymousUser']();for(const _0x206048 of _0x5bdac7)_0x3efab9['addCommentThread'](_0x206048);for(const _0x27def8 of _0x4e71ff)_0x3fef29['addSuggestionData'](_0x27def8);_0x112a82['data']['set'](_0x2a919a);}(_0x3752fd,_0x34ed26),_0x34ed26['execute'](_0x18f1d1?'acceptAllSuggestions':'discardAllSuggestions');const _0x267371=De(_0x34ed26)?_0x34ed26['getFullData'](_0x3d60bb):_0x34ed26['data']['get'](_0x3d60bb);return await _0x34ed26['destroy'](),_0x267371;}class Me extends _0x4f4180{['options'];constructor(_0x525fa2,_0x497651){super(_0x525fa2),this['options']=_0x497651,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'](_0x58a1c8,_0x4ccf34){if(!this['element'])return;const _0x6ed236=[];for(const [_0x30350a,_0x3147a3]of _0x58a1c8){const _0x5ab4ee=document['createElement']('div');_0x5ab4ee['setAttribute']('data-ck-root-name',_0x30350a),_0x5ab4ee['className']=_0x3147a3['classes']+'\x20ck-track-changes-preview__root-container',_0x5ab4ee['innerHTML']=_0x3147a3['content'],_0x6ed236['push'](_0x5ab4ee);}_0x4ccf34(this['element'],_0x6ed236),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x55c88c{constructor(_0xe0b7ec){super(_0xe0b7ec),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x6ac497=this['editor'],_0x51fb85=_0x6ac497['locale'],_0x47ad87=_0x6ac497['plugins']['get']('Dialog');let _0x35c234;const _0x5e69e2=function(_0x1a407c){const _0x48c20a={};if('editables'in _0x1a407c['ui']['view']){for(const [_0x4e35e0,_0x196701]of Object['entries'](_0x1a407c['ui']['view']['editables']))_0x48c20a[_0x4e35e0]=_0x196701['element'];}else _0x48c20a[_0x1a407c['model']['document']['getRootNames']()[0x0]]=_0x1a407c['ui']['view']['editable']['element'];return _0x48c20a;}(_0x6ac497),_0x24adce=function(_0xb0bc7a){let _0x4c969c=0x0;for(const _0x4e9153 of Object['values'](_0xb0bc7a))_0x4c969c=Math['max'](_0x4c969c,_0x4e9153['getBoundingClientRect']()['width']);let _0x2f04fe=0x0;for(const _0x462db2 of Object['values'](_0xb0bc7a))_0x2f04fe+=_0x462db2['getBoundingClientRect']()['height'];const _0x5f3dd1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2deaa3=Math['min'](_0x2f04fe,_0x5f3dd1);return{'width':_0x4c969c,'height':_0x2deaa3};}(_0x5e69e2);_0x47ad87['show']({'id':'finalContentPreview','title':o(_0x51fb85,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x51fb85,{'dialogRects':_0x24adce}),'onHide':()=>{_0x35c234['detachFromDom']();},'onShow':()=>{_0x6ac497['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x580931=>{const _0x10f7b4=this['_standarizeRootsData'](_0x580931,_0x6ac497,_0x5e69e2);_0x47ad87['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x10f7b4,_0x6ac497['config']['get']('trackChanges.preview.renderFunction'));}),_0x35c234=new _0x12fbee(_0x51fb85,[_0x47ad87['view']]),_0x35c234['attachToDom'](),_0x35c234['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x6ac497['once']('destroy',()=>{_0x35c234['detachFromDom']();});const _0x34b3a2=_0x47ad87['view']['headerView']['class'];_0x47ad87['view']['headerView']['class']=_0x34b3a2?_0x34b3a2+'\x20ck-reset_all':'ck-reset_all',_0x47ad87['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x47ad87['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xab9eff=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x13f2cb=_0xab9eff['previewMode'],_0x18a86b={};if('$labels'===_0x13f2cb){for(const _0x460dbe of _0xab9eff['getMergeFieldsIds']())_0x18a86b[_0x460dbe]=_0xab9eff['getLabel'](_0x460dbe)||_0x460dbe;}else{const _0x2cdfbb='$defaultValues'===_0x13f2cb?_0xab9eff['getDefaultValues']():_0xab9eff['getDataSetValues'](_0x13f2cb,!0x0);for(const _0xb46ad6 of Object['entries'](_0x2cdfbb)){const [_0x19cb53,_0x5f3829]=_0xb46ad6;_0x18a86b[_0x19cb53]=null!==_0x5f3829?_0x5f3829:_0xab9eff['getLabel'](_0x19cb53)||_0x19cb53;}}return{'mergeFieldsData':_0x18a86b};}['_standarizeRootsData'](_0x55ec95,_0x374e20,_0x2cead0){let _0x59da97;if('string'==typeof _0x55ec95){const _0x238d9d=_0x374e20['model']['document']['getRootNames']()[0x0];_0x59da97={[_0x238d9d]:_0x55ec95};}else _0x59da97=_0x55ec95;const _0x32af6f=this['_fixMediaEmbeds'](_0x59da97,_0x374e20),_0x4ddbb5=function(_0x47b5ce,_0x1fa6d8){for(const [_0x446033,_0x918a88]of _0x47b5ce)_0x918a88['classes']=_0x1fa6d8[_0x446033]['classList']['value']['replace']('ck-focused','');return _0x47b5ce;}(this['_sortRoots'](_0x374e20)['reduce']((_0x5c572e,_0x3b272a)=>(_0x5c572e['push']([_0x3b272a,{'content':_0x32af6f[_0x3b272a],'classes':''}]),_0x5c572e),[]),_0x2cead0);return _0x4ddbb5;}['_fixMediaEmbeds'](_0x421efd,_0x4cb1fd){if(!_0x4cb1fd['plugins']['has']('MediaEmbedEditing'))return _0x421efd;const _0x53e3a2=_0x4cb1fd['plugins']['get']('MediaEmbedEditing');for(const [_0x5c4208,_0x310c90]of Object['entries'](_0x421efd)){const _0xc722b=document['createElement']('div');_0xc722b['innerHTML']=_0x310c90,(_0xc722b['querySelectorAll']('figure.media')['forEach'](_0x293a13=>{const _0x3dbebb=_0x293a13['querySelector']('oembed');if(_0x3dbebb){const _0x7c75e5=_0x3dbebb['getAttribute']('url');if(_0x7c75e5){const _0xd7b601=_0x53e3a2['registry']['getMediaViewElement'](new _0x38c2b3(_0x4cb1fd['editing']['view']['document']),_0x7c75e5,{'elementName':'','renderForEditingView':!0x0}),_0x4bd246=document['createElement']('div');_0x4bd246['classList']['add']('ck-media__wrapper'),_0xd7b601['render'](_0x4bd246,_0x4cb1fd['editing']['view']['domConverter']),_0x3dbebb['replaceWith'](_0x4bd246);}}}),_0x421efd[_0x5c4208]=_0xc722b['innerHTML']);}return _0x421efd;}['_sortRoots'](_0x212a6d){if(!function(_0x56718c){return void 0x0!==_0x56718c['getRootsAttributes'];}(_0x212a6d))return _0x212a6d['model']['document']['getRootNames']();const _0x1b143a=[],_0x1a80aa=new Map();for(const _0x489683 of _0x212a6d['model']['document']['getRootNames']()){const _0x1b2d64=_0x212a6d['editing']['view']['getDomRoot'](_0x489683)['getClientRects']()['item'](0x0);_0x1b143a['push'](_0x489683),_0x1a80aa['set'](_0x489683,_0x1b2d64);}return _0x1b143a['sort']((_0x22615d,_0x493e49)=>{const _0x9cf618=_0x1a80aa['get'](_0x22615d),_0x23f54b=_0x1a80aa['get'](_0x493e49);return _0x9cf618['y']-_0x23f54b['y']||_0x9cf618['x']-_0x23f54b['x'];}),_0x1b143a;}}class Ue extends _0x1061bc{static get['requires'](){return[re,_0xc9d929];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x138cb3){super(_0x138cb3),_0x138cb3['commands']['add']('previewFinalContent',new te(this['editor'])),_0x138cb3['config']['define']('trackChanges.preview.renderFunction',(_0x52aa0f,_0x3145b4)=>{for(const _0x4dcad0 of _0x3145b4)_0x52aa0f['appendChild'](_0x4dcad0);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x2446ee,Plugin as _0x409a1b,PendingActions as _0xc38e5b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x23fcf7,ObservableMixin as _0x46dd8c,uid as _0x3c76d7,priorities as _0x2d3bd9,insertToPriorityArray as _0x3079d6,logWarning as _0x454ef2,getEnvKeystrokeText as _0x323673,FocusTracker as _0x7c8f46,KeystrokeHandler as _0x30c4ed,Collection as _0xfc7832}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xe07cbc,IconCancel as _0x1e820d,IconTrackChanges as _0x5ca503}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xfcbeb0,View as _0x58c65c,ViewCollection as _0x1bc983,FocusCycler as _0x5ce9b7,UIModel as _0x4f953e,createDropdown as _0x5175d3,SplitButtonView as _0x422011,addListToDropdown as _0x3a2a53,MenuBarMenuView as _0x23a9d5,MenuBarMenuListView as _0x160351,ListSeparatorView as _0x391946,MenuBarMenuListItemView as _0x25ae9a,MenuBarMenuListItemButtonView as _0x4e3a0f,BodyCollection as _0x36a4e9,Dialog as _0x2296eb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x3ae150,Users as _0x33bd43,DocumentCompare as _0x2bd63a,fixElementSuggestionRange as _0x11880a,hashObject as _0x2241e1,splitSuggestionMarkerName as _0x263db7,surroundingMarkersDetector as _0x40f17,FOCUS_ANNOTATION_KEYSTROKE as _0x21c950,AriaDescriptionView as _0x49a279,setupThreadKeyboardNavigation as _0x14dc08,trimHtml as _0x14a905,UserView as _0x493e21,LateFocusButtonView as _0x56b6a0,getDateTimeFormatter as _0x2254a3,getAllMarkersDomElementsSorted as _0x122c17,sanitizeEditorConfig as _0x139d3b}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x38a4e7,ModelLiveRange as _0xdb3ad2,ModelLivePosition as _0x435642,ViewDowncastWriter as _0x1d43a7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x566c98,set as _0x11c0e4,isEqual as _0x2cea1e,unset as _0x10d7d2,omit as Jt}from'es-toolkit/compat';import{Delete as _0x13635c,Input as _0x440fbe}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x110597}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3c7130}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x2446ee{['_enabledCommands'];constructor(_0x48e7d8,_0x1bba6f){super(_0x48e7d8),this['_enabledCommands']=_0x1bba6f,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 _0x2725d9 of this['editor']['commands']['commands']())_0x2725d9['affectsData']&&!this['_enabledCommands']['has'](_0x2725d9)&&_0x2725d9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2eb0ca of this['editor']['commands']['commands']())_0x2eb0ca['affectsData']&&!this['_enabledCommands']['has'](_0x2eb0ca)&&_0x2eb0ca['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x2446ee{['_suggestions'];constructor(_0x4ae288,_0x348aaa){super(_0x4ae288),this['_suggestions']=_0x348aaa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x575c2a){const _0x4c8fe6=this['_suggestions']['get'](_0x575c2a);if(!_0x4c8fe6)throw new _0x23fcf7('track-changes-accept-suggestion-not-found',this);const _0x40caae=_0x4c8fe6['getRanges']();this['editor']['model']['canEditAt'](_0x40caae)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4c8fe6);}}class x extends _0x2446ee{['_suggestions'];constructor(_0x1d5dad,_0x46168b){super(_0x1d5dad),this['_suggestions']=_0x46168b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4ea520){const _0x771a8a=this['_suggestions']['get'](_0x4ea520);if(!_0x771a8a)throw new _0x23fcf7('track-changes-discard-suggestion-not-found',this);const _0x1a53d7=_0x771a8a['getRanges']();this['editor']['model']['canEditAt'](_0x1a53d7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x771a8a);}}function ls(_0x2aa992,_0x406cc5){let _0x30d5a8='';return _0x30d5a8+=_0x2aa992['split']('*')['map']((_0x5896f6,_0x4f393a)=>_0x4f393a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x5896f6)+'</span>':rn(_0x5896f6))['join'](''),_0x406cc5&&(_0x30d5a8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x406cc5['value']+'\x22\x20title=\x22'+_0x406cc5['title']+'\x22></span>'),_0x30d5a8;}function rn(_0x3a5eb1){const _0x1834d6=document['createElement']('span');return _0x1834d6['innerText']=_0x3a5eb1,_0x1834d6['innerHTML'];}function ts(_0x14f641){return _0x14f641['sort']((_0x6a492c,_0x4da129)=>'attribute'===_0x6a492c['type']&&'attribute'!==_0x4da129['type']?-0x1:'attribute'!==_0x6a492c['type']&&'attribute'===_0x4da129['type']?0x1:'deletion'==_0x6a492c['type']&&'deletion'!=_0x4da129['type']?-0x1:'deletion'!=_0x6a492c['type']&&'deletion'==_0x4da129['type']?0x1:0x0);}function to(_0x8b6f90,_0x5132b9){let _0x24aeec,_0x30a500=0x0;const _0x5ab526=[],_0x20cf3a=_0x5132b9['schema'];for(;_0x30a500<_0x8b6f90['length'];){const _0x9272f3=_0x8b6f90[_0x30a500],_0x5753d4=_0x8b6f90[_0x30a500+0x1];_0x24aeec||(_0x24aeec=_0x5132b9['createPositionBefore'](_0x9272f3)),cn(_0x5132b9,_0x9272f3,_0x5753d4)||(_0x5ab526['push'](_0x5132b9['createRange'](_0x24aeec,_0x20cf3a['isObject'](_0x9272f3)?_0x5132b9['createPositionAfter'](_0x9272f3):_0x5132b9['createPositionAt'](_0x9272f3,'end'))),_0x24aeec=null),_0x30a500++;}return _0x5ab526;}function cn(_0x1fa922,_0x5b7c72,_0x2dc785){if(!_0x2dc785)return!0x1;const _0x538b8a=_0x1fa922['createPositionAfter'](_0x5b7c72),_0x57231a=_0x1fa922['createPositionBefore'](_0x2dc785);return _0x538b8a['isTouching'](_0x57231a);}function rs(_0x242bee,_0x299433,_0x5de5f4){for(;_0x5de5f4['length'];){const _0x432f5d=_0x5de5f4['splice'](0x0,0x64);_0x242bee['change'](()=>{for(const _0x6e7f60 of _0x432f5d)_0x6e7f60['isInContent']&&_0x299433['execute'](_0x6e7f60['id']);});}}class M extends _0x2446ee{['_command'];['_suggestions'];constructor(_0x4e456d,_0x35abf5,_0x4f3768){super(_0x4e456d),this['_command']=_0x35abf5,this['_suggestions']=_0x4f3768,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36eaed=Array['from'](this['_suggestions']['values']())['some'](_0x371a99=>_0x371a99['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x36eaed;}['execute'](){const _0x1f3bc2=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1c55cd of _0x1f3bc2){const _0x3f4e57=_0x1c55cd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f4e57))return;}rs(this['editor']['model'],this['_command'],_0x1f3bc2);}}class R extends _0x2446ee{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x27c12c,_0x128bfc,_0x33365f){super(_0x27c12c),this['_command']=_0x128bfc,this['_suggestions']=_0x33365f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4b1355=this['editor']['model']['document']['selection'],_0xb4c194=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3a174d,_0x497b2b){const _0x5f1475=Array['from'](_0x3a174d['getRanges']()),_0x299947=new Set();for(const _0x27649b of _0x497b2b)if(_0x27649b['isInContent']){for(const _0x3cd0cd of _0x5f1475)for(const _0x7b887 of _0x27649b['getRanges']())(_0x3cd0cd['isIntersecting'](_0x7b887)||_0x3a174d['isCollapsed']&&!_0x27649b['isMultiRange']&&_0x27649b['next']&&_0x7b887['end']['isTouching'](_0x3cd0cd['start']))&&_0x299947['add'](_0x27649b);}return _0x299947;}(_0x4b1355,_0xb4c194),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4f89fe=ts(Array['from'](this['_selectedSuggestions']));for(const _0x12948a of _0x4f89fe){const _0xd05cd0=_0x12948a['getRanges']();if(!this['editor']['model']['canEditAt'](_0xd05cd0))return;}rs(this['editor']['model'],this['_command'],_0x4f89fe);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x46dd8c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x30efea,_0x11d514){super(),this['id']=_0x11d514['id'],this['type']=_0x11d514['type'],this['subType']=_0x11d514['subType']||null,this['author']=_0x11d514['author'],this['creator']=_0x11d514['creator']||_0x11d514['author'],this['isExternal']=Boolean(_0x11d514['attributes']&&_0x11d514['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x11d514['originalSuggestionId']||null,this['_model']=_0x30efea,this['_onAccept']=_0x11d514['onAccept'],this['_onDiscard']=_0x11d514['onDiscard'],this['_onAttributesChange']=_0x11d514['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x11d514['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 _0x280942=this;for(;_0x280942['previous'];)_0x280942=_0x280942['previous'];return _0x280942;}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'](_0x2ac78d){this['_markerNames']['add'](_0x2ac78d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x97d700=>this['_model']['markers']['get'](_0x97d700))['filter'](_0xa832eb=>_0xa832eb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32ba78=>{for(const _0xda2ece of this['getMarkers']())_0x32ba78['removeMarker'](_0xda2ece);}),this['_markerNames']['clear']();}['removeMarker'](_0x3a287c){this['_model']['change'](_0x59a2aa=>{_0x59a2aa['removeMarker'](_0x3a287c);}),this['_markerNames']['delete'](_0x3a287c);}['addRange'](_0x1cefcb){const _0x21a0d1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x21a0d1),this['_model']['change'](_0xef38d4=>{_0xef38d4['addMarker'](_0x21a0d1,{'range':_0x1cefcb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x533131){for(const _0x4f508a of this['getRanges']())if(_0x4f508a['isIntersecting'](_0x533131))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x19163d=>_0x19163d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x525d68,_0x45094a)=>[..._0x525d68,..._0x45094a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xeb896f=this['getRanges']();if(0x1!=_0xeb896f['length'])return null;const _0x17e56e=_0xeb896f[0x0],_0x5613db=_0x17e56e['start']['nodeAfter'],_0xbdb2e2=_0x17e56e['end']['nodeBefore'];return _0x5613db instanceof _0x38a4e7?_0x5613db!=_0xbdb2e2?null:_0x5613db: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 _0x416a1d=[];let _0x36d7cf=this['head'];for(;_0x36d7cf;)_0x416a1d['push'](_0x36d7cf),_0x36d7cf=_0x36d7cf['next'];return _0x416a1d;}['setAttribute'](_0x5b9a3c,_0x1b1d58){const _0x12b694=_0x566c98(this['attributes']);_0x11c0e4(_0x12b694,_0x5b9a3c,_0x1b1d58),_0x2cea1e(_0x12b694,this['attributes'])||(this['attributes']=_0x12b694,this['_onAttributesChange'](_0x12b694));}['removeAttribute'](_0x5da8f9){const _0x1e7507=_0x566c98(this['attributes']);_0x10d7d2(_0x1e7507,_0x5da8f9),_0x2cea1e(_0x1e7507,this['attributes'])||(this['attributes']=_0x1e7507,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 _0x3c76d7()['substr'](0x1,0x5);}}function o(_0x51ae48,_0x44d1f8,_0x4c51bc){const _0x3c5cd8=_0x51ae48['t'],t=_0x51ae48['t'];switch(_0x44d1f8){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',_0x4c51bc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4c51bc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4c51bc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4c51bc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4c51bc);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',_0x4c51bc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4c51bc);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',_0x4c51bc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4c51bc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4c51bc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4c51bc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4c51bc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4c51bc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4c51bc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4c51bc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4c51bc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4c51bc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4c51bc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4c51bc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4c51bc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4c51bc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4c51bc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4c51bc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4c51bc);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4c51bc);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'},_0x4c51bc);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4c51bc);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4c51bc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4c51bc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4c51bc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4c51bc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4c51bc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4c51bc);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'},_0x4c51bc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4c51bc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4c51bc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4c51bc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4c51bc);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x4c51bc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4c51bc);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'},_0x4c51bc);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x4c51bc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4c51bc);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'},_0x4c51bc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4c51bc);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'},_0x4c51bc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4c51bc);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4c51bc);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4c51bc);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4c51bc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4c51bc);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'},_0x4c51bc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4c51bc);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 _0x3c5cd8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4c51bc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3c5cd8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4c51bc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4c51bc);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'},_0x4c51bc);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'},_0x4c51bc);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'},_0x4c51bc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x44d1f8;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5c4ac9,_0x1d769f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5c4ac9,this['_locale']=_0x1d769f;}['getDescriptions'](_0x2fdb70){const _0x19151e=[],_0x7fd4df=new Set(),_0xf952bf=new Set();for(let _0x5d4166=0x0;_0x5d4166<_0x2fdb70['length'];_0x5d4166++){const _0x3ba487=_0x2fdb70[_0x5d4166];if(!_0x3ba487['isInContent'])continue;const _0x15d069=this['_handleCustomCallbackDescription'](_0x3ba487);if(_0x15d069){if(null!=_0x3ba487['subType']){if(_0x7fd4df['has'](_0x3ba487['subType']))continue;_0x7fd4df['add'](_0x3ba487['subType']);}_0x19151e['push'](_0x15d069);}else{if('attribute'==_0x3ba487['type']){const _0x5223cb=_0x3ba487['data']['key'];if(_0xf952bf['has'](_0x5223cb))continue;_0xf952bf['add'](_0x3ba487['data']['key']),_0x5223cb==m?this['_handleRenameSuggestionDescription'](_0x19151e,_0x3ba487):this['_handleAttributeSuggestionDescription'](_0x19151e,_0x3ba487);continue;}'insertion'!=_0x3ba487['type']&&'deletion'!=_0x3ba487['type']||this['_handleInsertRemoveSuggestionDescription'](_0x19151e,_0x3ba487,_0x2fdb70[_0x5d4166+0x1]);}}return this['_resolveDescriptionItems'](_0x19151e);}['registerDescriptionCallback'](_0x40720e){this['_customCallbacks']['push'](_0x40720e);}['registerElementLabel'](_0x350fcd,_0x2e36de,_0x40f668=_0x2d3bd9['normal']){'function'==typeof _0x350fcd?_0x3079d6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x350fcd,'label':_0x2e36de,'priority':_0x40f668}):this['_itemLabels']['set'](_0x350fcd,_0x2e36de);}['registerAttributeLabel'](_0x2b07c7,_0x1c6441){this['_attributeLabels']['set'](_0x2b07c7,_0x1c6441);}['getItemLabel'](_0x2978b3,_0x177a1e=0x1){let _0x2c2df4;for(const _0x1e1b7a of this['_itemLabelsCallbacks'])if(_0x1e1b7a['matchingCallback'](_0x2978b3)){_0x2c2df4=_0x1e1b7a['label'];break;}return _0x2c2df4||(_0x2c2df4=this['_itemLabels']['get'](_0x2978b3['name'])),_0x2c2df4?_0x2c2df4(_0x177a1e):0x1!==_0x177a1e?_0x177a1e+'\x20'+_0x2978b3['name']+'s':''+_0x2978b3['name'];}['_addDescriptionItems'](_0x3767d,_0x2fb708){const _0x1ebead=_0x2fb708['getFirstRange']()['getWalker'](),_0x35b552='insertion'==_0x2fb708['type']?'add':'remove';for(const _0x387978 of _0x1ebead){const _0x42e0aa=_0x387978['item'],_0x264da4=_0x3767d[_0x3767d['length']-0x1];if(_0x42e0aa['is']('$textProxy'))_0x264da4&&_0x264da4['type']['indexOf']('Container')>-0x1&&_0x3767d['pop'](),_0x264da4&&'text'==_0x264da4['type']?_0x264da4[_0x35b552]+=_0x42e0aa['data']:_0x3767d['push']({'type':'text','add':'add'==_0x35b552?_0x42e0aa['data']:'','remove':'remove'==_0x35b552?_0x42e0aa['data']:''});else{if(this['_schema']['isObject'](_0x42e0aa)){const _0x19e678=_0x42e0aa;if(_0x264da4&&_0x264da4['type']['indexOf']('Container')>-0x1&&_0x3767d['pop'](),'elementEnd'==_0x387978['type'])continue;_0x264da4&&_0x264da4['type']==_0x35b552+'Object'&&_0x264da4['element']['name']==_0x19e678['name']?_0x264da4['quantity']++:_0x3767d['push']({'type':_0x35b552+'Object','element':_0x19e678,'quantity':0x1}),_0x1ebead['skip'](_0x4cb09d=>!('elementEnd'==_0x4cb09d['type']&&_0x4cb09d['item']==_0x42e0aa));}else{if(this['_schema']['checkChild'](_0x42e0aa,'$text')||_0x42e0aa['is']('element','softBreak')){const _0x342283=_0x42e0aa;if('add'==_0x35b552&&'elementStart'==_0x387978['type']||'remove'==_0x35b552&&'elementEnd'==_0x387978['type'])continue;if(_0x264da4&&-0x1==_0x264da4['type']['indexOf']('Container')){'text'==_0x264da4['type']&&(_0x264da4[_0x35b552]+='\x0a');continue;}let _0x3ad84c;if(_0x3ad84c='add'==_0x35b552?_0x342283['nextSibling']&&!this['_schema']['isObject'](_0x342283['nextSibling'])?_0x342283['nextSibling']:null:_0x342283['previousSibling']&&!this['_schema']['isObject'](_0x342283['previousSibling'])?_0x342283['previousSibling']:null,_0x342283['isEmpty']||_0x3ad84c&&_0x3ad84c['isEmpty']){const _0x3201c5=_0x3ad84c&&_0x3ad84c['isEmpty']?_0x3ad84c:_0x342283;_0x264da4&&_0x264da4['type']==_0x35b552+'EmptyContainer'&&_0x264da4['element']['name']==_0x3201c5['name']?_0x264da4['quantity']++:_0x3767d['push']({'type':_0x35b552+'EmptyContainer','element':_0x3201c5,'quantity':0x1});}else _0x3767d['push']({'type':_0x35b552+'Container','element':_0x342283});}}}}}['_resolveDescriptionItems'](_0xca2486){const _0x38d716=this['_locale'],_0x7c6f1d=[],_0x500f59=[],_0x1a7a91=[];for(const _0x2d5c52 of _0xca2486)switch(_0x2d5c52['type']){case'text':if(_0x2d5c52['add']=_0x2d5c52['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2d5c52['remove']=_0x2d5c52['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2d5c52['add']&&''!=_0x2d5c52['remove']){_0x7c6f1d['push']({'type':'replace','content':o(_0x38d716,'REPLACE_TEXT',['\x22'+_0x2d5c52['remove']+'\x22','\x22'+_0x2d5c52['add']+'\x22'])});continue;}if(null!=_0x2d5c52['add']['match'](/^ +$/)){_0x7c6f1d['push']({'type':'insertion','content':o(_0x38d716,'*Insert:*\x20%0',o(_0x38d716,'ELEMENT_SPACE',_0x2d5c52['add']['length']))});continue;}if(null!=_0x2d5c52['remove']['match'](/^ +$/)){_0x7c6f1d['push']({'type':'deletion','content':o(_0x38d716,'*Remove:*\x20%0',o(_0x38d716,'ELEMENT_SPACE',_0x2d5c52['remove']['length']))});continue;}if(''!=_0x2d5c52['add']){_0x7c6f1d['push']({'type':'insertion','content':o(_0x38d716,'*Insert:*\x20%0','\x22'+_0x2d5c52['add']+'\x22')});continue;}_0x7c6f1d['push']({'type':'deletion','content':o(_0x38d716,'*Remove:*\x20%0','\x22'+_0x2d5c52['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x7c6f1d['push']({'type':'insertion','content':o(_0x38d716,'*Insert:*\x20%0',this['getItemLabel'](_0x2d5c52['element'],_0x2d5c52['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x7c6f1d['push']({'type':'deletion','content':o(_0x38d716,'*Remove:*\x20%0',this['getItemLabel'](_0x2d5c52['element'],_0x2d5c52['quantity']))});continue;case'addContainer':_0x7c6f1d['push']({'type':'insertion','content':o(_0x38d716,'*Split:*\x20%0',this['getItemLabel'](_0x2d5c52['element'],_0x2d5c52['quantity']))});continue;case'removeContainer':_0x7c6f1d['push']({'type':'deletion','content':o(_0x38d716,'*Merge:*\x20%0',this['getItemLabel'](_0x2d5c52['element'],_0x2d5c52['quantity']))});continue;case'addFormat':_0x500f59['push'](_0x2d5c52['key']);continue;case'removeFormat':_0x1a7a91['push'](_0x2d5c52['key']);continue;default:_0x7c6f1d['push'](_0x2d5c52);}if(_0x500f59['length']){const _0x24b020=_0x500f59['map'](_0x55f811=>this['_attributeLabels']['has'](_0x55f811)?this['_attributeLabels']['get'](_0x55f811):_0x55f811)['join'](',\x20');_0x7c6f1d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x24b020)});}if(_0x1a7a91['length']){const _0x21f174=_0x1a7a91['map'](_0x17b69a=>this['_attributeLabels']['has'](_0x17b69a)?this['_attributeLabels']['get'](_0x17b69a):_0x17b69a)['join'](',\x20');_0x7c6f1d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x21f174)});}return _0x7c6f1d;}['_handleCustomCallbackDescription'](_0x450ac5){for(const _0x50ca05 of this['_customCallbacks']){const _0x27c2d9=_0x50ca05(_0x450ac5);if(_0x27c2d9&&'type'in _0x27c2d9)return _0x27c2d9;}}['_handleAttributeSuggestionDescription'](_0x39cf74,_0x2f2559){const _0x8f56c7=_0x2f2559['data'],_0x200b04=void 0x0===_0x8f56c7['newValue']?'removeFormat':'addFormat';_0x39cf74['push']({'type':_0x200b04,'key':_0x8f56c7['key']});}['_handleRenameSuggestionDescription'](_0x240be4,_0x263409){_0x240be4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x263409['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x370774,_0x913887,_0x2d680f){if(this['_addDescriptionItems'](_0x370774,_0x913887),_0x2d680f&&_0x2d680f['getFirstRange']()&&!_0x913887['getFirstRange']()['end']['isEqual'](_0x2d680f['getFirstRange']()['start'])){const _0xbc0f2c=_0x370774[_0x370774['length']-0x1],_0x294da4='insertion'==_0x913887['type']?'add':'remove';_0xbc0f2c&&'text'==_0xbc0f2c['type']&&(_0xbc0f2c[_0x294da4]+='\x0a');}}}class U extends _0x409a1b{['afterInit'](){const _0x103239=this['editor'],_0x1f3075=_0x103239['plugins']['get']('TrackChangesEditing');_0x103239['commands']['get']('showAIAssistant')&&_0x1f3075['enableCommand']('showAIAssistant');}}class V extends _0x409a1b{['afterInit'](){const _0x372872=this['editor'],_0x3dc834=_0x372872['plugins']['get']('TrackChangesEditing');_0x372872['commands']['get']('toggleAi')&&_0x3dc834['enableCommand']('toggleAi');}}class F extends _0x409a1b{['afterInit'](){const _0x531c83=this['editor'],_0x9dffa2=_0x531c83['plugins']['get']('TrackChangesEditing');_0x531c83['commands']['get']('aiQuickAction')&&_0x9dffa2['enableCommand']('aiQuickAction');}}class G extends _0x409a1b{['afterInit'](){const _0x5f30fe=this['editor'],_0x2ca56c=_0x5f30fe['locale'];if(!_0x5f30fe['plugins']['has']('AlignmentEditing'))return;const _0x14d27c=_0x5f30fe['plugins']['get']('TrackChangesEditing');_0x14d27c['enableDefaultAttributesIntegration']('alignment'),_0x14d27c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2ca56c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbd73aa=this['editor'],_0x613df9=_0xbd73aa['locale'];_0xbd73aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a20c9=>{if('formatBlock'!=_0x4a20c9['type'])return;const {data:_0x2bcfd0}=_0x4a20c9;if(_0x2bcfd0&&'alignment'==_0x2bcfd0['commandName']){const _0x4872ef=_0x2bcfd0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x613df9,'*Format:*\x20%0',function(_0x255ddd){switch(_0x255ddd){case'left':return o(_0x613df9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x613df9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x613df9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x613df9,'FORMAT_JUSTIFY_TEXT');}}(_0x4872ef))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x409a1b{['afterInit'](){const _0x3703de=this['editor'],_0x58030c=_0x3703de['plugins']['get']('TrackChangesEditing'),_0x28525c=_0x3703de['locale'];for(const _0x2a979a of ti){if(!_0x3703de['plugins']['has'](_0x2a979a))continue;const _0x38cbf2=_0x2a979a['slice'](0x0,-0x7)['toLowerCase'](),_0x4be858='FORMAT_'+_0x38cbf2['toUpperCase']();_0x58030c['enableDefaultAttributesIntegration'](_0x38cbf2),_0x58030c['descriptionFactory']['registerAttributeLabel'](_0x38cbf2,o(_0x28525c,_0x4be858));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e1fc6=this['editor'],_0x5dbec7=_0x4e1fc6['locale'],_0xeb10da=_0x4e1fc6['plugins']['get']('TrackChangesEditing');function _0x415058(_0x5dfbd1,_0x572458){_0xeb10da['descriptionFactory']['registerDescriptionCallback'](_0x36b354=>{if('formatInline'!=_0x36b354['type'])return;const {data:_0x142ed0}=_0x36b354;return _0x142ed0&&_0x142ed0['commandName']===_0x5dfbd1?_0x142ed0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dbec7,'*Format:*\x20%0',_0x572458)}:{'type':'format','content':o(_0x5dbec7,'*Remove\x20format:*\x20%0',_0x572458)}:void 0x0;});}_0x415058('bold',o(_0x5dbec7,'FORMAT_BOLD')),_0x415058('italic',o(_0x5dbec7,'FORMAT_ITALIC')),_0x415058('underline',o(_0x5dbec7,'FORMAT_UNDERLINE')),_0x415058('code',o(_0x5dbec7,'FORMAT_CODE')),_0x415058('strikethrough',o(_0x5dbec7,'FORMAT_STRIKETHROUGH')),_0x415058('subscript',o(_0x5dbec7,'FORMAT_SUBSCRIPT')),_0x415058('superscript',o(_0x5dbec7,'FORMAT_SUPERSCRIPT'));}}class J extends _0x409a1b{['afterInit'](){const _0x59c367=this['editor'],_0x196ae4=_0x59c367['locale'];if(!_0x59c367['plugins']['has']('BlockQuoteEditing'))return;const _0x29e755=_0x59c367['plugins']['get']('TrackChangesEditing'),_0x1b65e8=this['editor']['commands']['get']('blockQuote');_0x29e755['enableCommand']('blockQuote',(_0x502d42,_0x192cce={})=>{const _0x5b6cf3=this['editor']['model']['document']['selection'],_0x541010=_0x192cce&&void 0x0!==_0x192cce['forceValue']?_0x192cce['forceValue']:!_0x1b65e8['value'];let _0xb0e648=[];if(_0x541010){const _0x5a2389=Array['from'](_0x5b6cf3['getSelectedBlocks']())['filter'](_0x335c79=>oo(_0x335c79)||function(_0x32f2c5,_0x4a6fad){const _0x2e6f86=_0x4a6fad['checkChild'](_0x32f2c5['parent'],'blockQuote'),_0x2f73ef=_0x4a6fad['checkChild'](['$root','blockQuote'],_0x32f2c5);return _0x2e6f86&&_0x2f73ef;}(_0x335c79,this['editor']['model']['schema']));_0xb0e648=to(_0x5a2389,_0x59c367['model']);}else{const _0x28afdb=Array['from'](_0x5b6cf3['getSelectedBlocks']())['filter'](_0x49f443=>oo(_0x49f443));_0xb0e648=to(_0x28afdb,_0x59c367['model']);}_0x59c367['model']['change'](()=>{for(const _0xcd6376 of _0xb0e648)_0x29e755['markBlockFormat'](_0xcd6376,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x541010}]});});}),_0x29e755['descriptionFactory']['registerDescriptionCallback'](_0x325110=>{const {data:_0x594ad9}=_0x325110;if(_0x594ad9&&'blockQuote'==_0x594ad9['commandName']){const _0x5c4a39=o(_0x196ae4,'ELEMENT_BLOCK_QUOTE');return _0x594ad9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x196ae4,'*Set\x20format:*\x20%0',_0x5c4a39)}:{'type':'format','content':o(_0x196ae4,'*Remove\x20format:*\x20%0',_0x5c4a39)};}});}}function oo(_0xc3c3e){return'blockQuote'==_0xc3c3e['parent']['name'];}class q extends _0x409a1b{['afterInit'](){const _0x5abdd7=this['editor'],_0x403503=_0x5abdd7['locale'],_0x4cd12a=_0x5abdd7['plugins']['get']('TrackChangesEditing');_0x5abdd7['plugins']['has']('BookmarkEditing')&&(_0x4cd12a['enableCommand']('insertBookmark'),_0x4cd12a['enableDefaultAttributesIntegration']('updateBookmark'),_0x4cd12a['descriptionFactory']['registerDescriptionCallback'](_0x2434fd=>{if('insertion'!=_0x2434fd['type']&&'deletion'!=_0x2434fd['type']&&'attribute'!=_0x2434fd['type'])return;const _0x861562=_0x2434fd['getContainedElement']();if(null==_0x861562)return;if(!_0x861562['is']('element','bookmark'))return;const _0x5e9acf=_0x861562['getAttribute']('bookmarkId');if('insertion'==_0x2434fd['type'])return{'type':'insertion','content':o(_0x403503,'*Insert:*\x20%0','\x22'+_0x5e9acf+'\x22\x20'+o(_0x403503,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2434fd['type'])return{'type':'deletion','content':o(_0x403503,'*Remove:*\x20%0','\x22'+_0x5e9acf+'\x22\x20'+o(_0x403503,'ELEMENT_BOOKMARK'))};const {data:_0x21d5ad}=_0x2434fd;if(!_0x21d5ad||'bookmarkId'!=_0x21d5ad['key'])return;return{'type':'format','content':o(_0x403503,'*Set\x20bookmark:*\x20%0','\x22'+_0x21d5ad['newValue']+'\x22')};}));}}class z extends _0x409a1b{['afterInit'](){const _0x45cfdb=this['editor'];_0x45cfdb['plugins']['has']('CaseChange')&&(_0x45cfdb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x45cfdb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x45cfdb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x409a1b{['afterInit'](){const _0x32b6fe=this['editor'];_0x32b6fe['commands']['get']('ckbox')&&_0x32b6fe['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x409a1b{['afterInit'](){const _0x7c206e=this['editor'];if(!_0x7c206e['plugins']['has']('CodeBlock'))return;const _0x3cffd2=_0x7c206e['plugins']['get']('TrackChangesEditing'),_0x36496b=_0x7c206e['locale'],_0x514fb6=_0x7c206e['config']['get']('codeBlock')['languages'],_0x517c75=_0x7c206e['commands']['get']('codeBlock');_0x3cffd2['enableCommand']('indentCodeBlock'),_0x3cffd2['enableCommand']('outdentCodeBlock'),_0x3cffd2['enableCommand']('codeBlock',(_0x2b9a8a,_0x29177f={})=>{const _0x11e0f6=_0x7c206e['model'],_0x1163d3=_0x7c206e['model']['document']['selection'],_0x65ee49=_0x29177f&&void 0x0!==_0x29177f['forceValue']?_0x29177f['forceValue']:!_0x517c75['value'];let _0x2864af;_0x29177f['language']||(_0x29177f['language']=_0x514fb6[0x0]['language']),_0x2864af=_0x65ee49?Array['from'](_0x1163d3['getSelectedBlocks']())['filter'](_0x26113e=>co(_0x26113e)||function(_0x1524c8,_0x74ede8){if(_0x1524c8['is']('rootElement')||_0x74ede8['isLimit'](_0x1524c8))return!0x1;return _0x74ede8['checkChild'](_0x1524c8['parent'],'codeBlock');}(_0x26113e,_0x11e0f6['schema'])):Array['from'](_0x1163d3['getSelectedBlocks']())['filter'](_0x278410=>co(_0x278410));const _0x474ef6=to(_0x2864af,_0x11e0f6);_0x11e0f6['change'](()=>{for(const _0x653eff of _0x474ef6)_0x3cffd2['markBlockFormat'](_0x653eff,{'commandName':'codeBlock','commandParams':[{..._0x29177f,'forceValue':_0x65ee49}],'formatGroupId':'blockName'});});}),(_0x3cffd2['descriptionFactory']['registerElementLabel']('codeBlock',_0x4c78cd=>o(_0x36496b,'ELEMENT_CODE_BLOCK',_0x4c78cd)),_0x3cffd2['descriptionFactory']['registerDescriptionCallback'](_0x48378c=>{if('formatBlock'!=_0x48378c['type'])return;const _0x1f5230=_0x36496b['t'],{data:_0x5aa61d}=_0x48378c;if(!_0x5aa61d||'codeBlock'!=_0x5aa61d['commandName'])return;const _0x1b3474=_0x5aa61d['commandParams'][0x0]['language'],_0x444e67=_0x1f5230(_0x514fb6['find'](_0x2371d6=>_0x2371d6['language']===_0x1b3474)['label'])['toLowerCase']();return _0x5aa61d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x36496b,'*Set\x20format:*\x20%0',o(_0x36496b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x444e67+')')}:{'type':'format','content':o(_0x36496b,'*Remove\x20format:*\x20%0',o(_0x36496b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x388616){return'codeBlock'==_0x388616['name'];}class H extends _0x409a1b{['afterInit'](){const _0xa20f4d=this['editor'];if(!_0xa20f4d['plugins']['has']('CommentsEditing'))return;_0xa20f4d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x409a1b{static get['requires'](){return[_0x13635c];}['init'](){const _0x11279b=this['editor'],_0x24f7e0=_0x11279b['plugins']['get']('TrackChangesEditing');_0x24f7e0['enableCommand']('delete');const _0x9792c3=_0x11279b['commands']['get']('deleteForward');_0x24f7e0['enableCommand']('deleteForward',(_0x302133,_0x4cede0={})=>{const _0x3ebbdd=_0x11279b['model']['createSelection'](_0x11279b['model']['document']['selection']);_0x3ebbdd['isCollapsed']&&_0x11279b['model']['modifySelection'](_0x3ebbdd,{'direction':'forward','unit':_0x4cede0['unit']});const _0x3c8828=_0x3ebbdd['getFirstRange'](),_0x47dbf0=_0xdb3ad2['fromRange'](_0x3c8828);let _0xba0819;_0x302133(_0x4cede0),_0xba0819='$graveyard'==_0x47dbf0['root']['rootName']?_0x11279b['model']['createRange'](_0x3c8828['start']):_0x11279b['model']['createRange'](_0x47dbf0['start'],_0x47dbf0['end']),_0x47dbf0['detach'](),_0x11279b['model']['enqueueChange'](_0x9792c3['buffer']['batch'],_0x271d13=>{_0x9792c3['buffer']['lock'](),_0x271d13['setSelection'](_0x271d13['createRange'](_0xba0819['end'])),_0x9792c3['buffer']['unlock']();});});}}class X extends _0x409a1b{['afterInit'](){const _0xf65891=this['editor'];if(!_0xf65891['plugins']['has']('ListEditing'))return;const _0x24c9d4=_0xf65891['locale'],_0x45e25=_0xf65891['plugins']['get']('TrackChangesEditing'),_0x77ee49=_0xf65891['plugins']['has']('TodoListEditing'),_0x3e95b3=!!_0xf65891['config']['get']('list.multiBlock');function _0x3e10db(_0x93b861){return{'type':'format','content':''+o(_0x24c9d4,'*Set\x20format:*\x20%0',_0x93b861)};}function _0x23c676(_0x49d4ce){return{'type':'format','content':''+o(_0x24c9d4,'*Remove\x20format:*\x20%0',_0x49d4ce)};}_0x45e25['enableDefaultAttributesIntegration']('numberedList'),_0x45e25['enableDefaultAttributesIntegration']('bulletedList'),_0x45e25['enableDefaultAttributesIntegration']('customNumberedList'),_0x45e25['enableDefaultAttributesIntegration']('customBulletedList'),_0x45e25['enableDefaultAttributesIntegration']('indentList'),_0x45e25['enableDefaultAttributesIntegration']('outdentList'),_0x45e25['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x45e25['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3e95b3&&(_0x45e25['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x45e25['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x77ee49&&(_0x45e25['enableDefaultAttributesIntegration']('todoList'),_0x45e25['enableDefaultAttributesIntegration']('checkTodoList'),_0x45e25['descriptionFactory']['registerDescriptionCallback'](_0x501e97=>{const {data:_0x8c7d87}=_0x501e97;if(_0x8c7d87&&'todoListChecked'==_0x8c7d87['key'])return{'type':'format','content':_0x8c7d87['newValue']?o(_0x24c9d4,'*Check\x20item*'):o(_0x24c9d4,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5641b6=>{if(_0x5641b6['batch']['isUndo'])return!0x1;let _0x76bf78=!0x1;const _0x32d460=_0x45e25['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x586cae=>'todoListChecked'===_0x45e25['_getAttributeKey'](_0x586cae));for(const _0x2a8d80 of _0x32d460){'todo'!=_0x2a8d80['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x45e25['_findSuggestions'](_0x2a8d80['getFirstRange'](),'attribute')['find'](_0x306d00=>'listType'===_0x45e25['_getAttributeKey'](_0x306d00['suggestion']))||(_0x5641b6['removeMarker'](_0x2a8d80['getFirstMarker']()),_0x76bf78=!0x0));}return _0x76bf78;})),_0x45e25['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x24c9d4,'FORMAT_INDENT'));const _0x33e524={'type':'format','content':''};_0x45e25['descriptionFactory']['registerDescriptionCallback'](_0x6ab179=>{const {data:_0x410e8d}=_0x6ab179;if(!_0x410e8d||'listType'!=_0x410e8d['key'])return;let _0x55541b=_0x6ab179['head'];for(;_0x55541b;){if(_0x55541b['data']&&(('listStyle'==_0x55541b['data']['key']||'listMarkerStyle'==_0x55541b['data']['key'])&&(_0x55541b['data']['newValue']&&'default'!=_0x55541b['data']['newValue']||'default'!=_0x55541b['data']['oldValue']&&!_0x410e8d['newValue'])||!_0x3e95b3&&_0x55541b['data']['key']==m))return _0x33e524;_0x55541b=_0x55541b['next'];}if(null==_0x410e8d['newValue'])switch(_0x410e8d['oldValue']){case'bulleted':return _0x23c676(o(_0x24c9d4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23c676(o(_0x24c9d4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23c676(o(_0x24c9d4,'ELEMENT_TODO_LIST'));}switch(_0x410e8d['newValue']){case'bulleted':return _0x3e10db(o(_0x24c9d4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e10db(o(_0x24c9d4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e10db(o(_0x24c9d4,'ELEMENT_TODO_LIST'));}}),_0x45e25['descriptionFactory']['registerDescriptionCallback'](_0x426d96=>{const {data:_0x3331e6}=_0x426d96;if(_0x3331e6&&'listIndent'==_0x3331e6['key'])return null==_0x3331e6['newValue']||null==_0x3331e6['oldValue']&&0x0==_0x3331e6['newValue']?_0x33e524:void 0x0;}),_0x45e25['descriptionFactory']['registerDescriptionCallback'](_0x2dd688=>{if('attribute'!=_0x2dd688['type'])return;const {data:_0x305f61}=_0x2dd688;if(!_0x305f61||'listItemId'!=_0x305f61['key'])return;const _0x3a7961=Te(_0x2dd688);return'newValue'==_0x3a7961?{'type':'format','content':o(_0x24c9d4,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3a7961?{'type':'format','content':o(_0x24c9d4,'*Split:*\x20list\x20item')}:_0x33e524;}),_0xf65891['model']['document']['registerPostFixer'](_0x5a270e=>this['listItemIdFixer'](_0x5a270e)),_0xf65891['model']['document']['registerPostFixer'](_0x2b66a5=>this['noTrackChangesFixer'](_0x2b66a5)),_0xf65891['model']['document']['on']('change:data',(_0x576ec9,_0x3bee6f)=>{if(_0x3bee6f['isUndo']||!_0x3bee6f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x17138c){if(_0x17138c['batch']['isUndo']||!_0x17138c['batch']['isLocal'])return!0x1;let _0x530310=!0x1;const _0x3f6383=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1077a8=>_0x1077a8['data']&&'listItemId'==_0x1077a8['data']['key'])['filter'](_0xb964f3=>_0xb964f3['data']['newValue']&&_0xb964f3['data']['oldValue']);for(const _0x9dd562 of _0x3f6383)Te(_0x9dd562)||(_0x17138c['removeMarker'](_0x9dd562['getFirstMarker']()),_0x530310=!0x0);return _0x530310;}['noTrackChangesFixer'](_0x13eee8){if(_0x13eee8['batch']['isUndo']||!_0x13eee8['batch']['isLocal'])return!0x1;const _0x380796=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x380796['trackChangesCommand']['value'])return!0x1;let _0x25589e=!0x1;const _0x8019f2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2dfe12=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x392ecc=>'attribute'==_0x392ecc['type'])['filter'](_0x32e1fd=>_0x8019f2['includes'](_0x32e1fd['attributeKey']));if(0x0==_0x2dfe12['length'])return _0x25589e;for(const _0x460a8 of _0x2dfe12){const _0xea3c7d=_0x380796['_findSuggestions'](_0x460a8['range'],'attribute')['filter'](_0x197477=>!_0x197477['meta']['isNextTo'])['map'](_0x11b523=>_0x11b523['suggestion'])['filter'](_0x2d6934=>{const _0x2f8f18=_0x380796['_getAttributeKey'](_0x2d6934);return _0x8019f2['includes'](_0x2f8f18);});if(_0xea3c7d['length']){for(const _0x58b402 of _0xea3c7d)_0x13eee8['removeMarker'](_0x58b402['getFirstMarker']());_0x25589e=!0x0;}}return _0x25589e;}['assureChains'](){const _0x3c863f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b9fda=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x698777;const _0xbd47ac=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5174d2=>{if(_0x5174d2['data']['oldRange']||!_0x5174d2['data']['newRange'])return null;if(!_0x5174d2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x27b759}=_0x3c863f['_splitMarkerName'](_0x5174d2['name']);if(!_0x3c863f['hasSuggestion'](_0x27b759))return null;const _0x39c1bd=_0x3c863f['getSuggestion'](_0x27b759);return _0x3b9fda['includes'](_0x39c1bd['data']['key']);})['map'](_0x41eb69=>{const {id:_0x46cf8f}=_0x3c863f['_splitMarkerName'](_0x41eb69['name']),_0x49bf13=_0x3c863f['getSuggestion'](_0x46cf8f);return _0x698777=_0x49bf13['attributes']['groupId'],_0x49bf13['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xbd47ac['size'])return;const _0x317db5=_0x3c863f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5aa23d=>'attribute'==_0x5aa23d['type']&&_0x5aa23d['data']&&_0x3b9fda['includes'](_0x5aa23d['data']['key'])&&_0x5aa23d['attributes']['groupId']!=_0x698777)['map'](_0x2cf4cf=>({'listItem':_0x2cf4cf['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2cf4cf['attributes']['groupId']})),_0x367584=new Set();for(const {groupId:_0x1951dd,listItem:_0x18a6e8}of _0x317db5)_0xbd47ac['has'](_0x18a6e8)&&_0x367584['add'](_0x1951dd);for(const _0x2b8879 of _0x3c863f['getSuggestions']())_0x367584['has'](_0x2b8879['attributes']['groupId'])&&_0x2b8879['setAttribute']('groupId',_0x698777);}['_supportLegacySuggestions'](){const _0x12336e=this['editor'],_0xadf066=_0x12336e['locale'],_0x38f460=_0x12336e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x38f460['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x45ff2b,_0x286e0c){const _0x30bcc8=[];for(let _0x5cc086 of _0x45ff2b)_0x5cc086['start']['nodeAfter']===_0x5cc086['end']['parent']&&(_0x5cc086=_0x12336e['model']['createRange'](_0x12336e['model']['createPositionAt'](_0x5cc086['start']['nodeAfter'],0x0))),_0x30bcc8['push'](_0x5cc086);_0x12336e['model']['change'](_0x260205=>{const _0x3791a5=_0x12336e['model']['document']['selection'],_0x2f2a80=Array['from'](_0x3791a5['getRanges']())['map'](_0x586651=>_0xdb3ad2['fromRange'](_0x586651));_0x260205['setSelection'](_0x30bcc8),_0x12336e['commands']['get'](_0x286e0c['commandName'])['refresh'](),_0x286e0c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x12336e['execute'](_0x286e0c['commandName'],..._0x286e0c['commandParams']),_0x260205['setSelection'](_0x2f2a80);for(const _0x31329e of _0x2f2a80)_0x31329e['detach']();});}),_0x38f460['descriptionFactory']['registerElementLabel'](function(_0x1d5a55){const _0x5eeb14=!_0x12336e['model']['schema']['isObject'](_0x1d5a55),_0x34df09=_0x1d5a55['previousSibling'],_0x4bc398=_0x1d5a55['nextSibling'],_0x5319dd=_0x1d5a55['getAttribute']('listItemId'),_0x2035bf=!_0x34df09||_0x34df09['getAttribute']('listItemId')!==_0x5319dd,_0x5413bd=!_0x4bc398||_0x4bc398['getAttribute']('listItemId')!==_0x5319dd;return _0x5eeb14&&Boolean(_0x5319dd)&&_0x2035bf&&_0x5413bd;},_0x38afac=>o(_0xadf066,'ELEMENT_LIST_ITEM',_0x38afac));}['_registerLegacyDescription'](){const _0x59ad74=this['editor'],_0x5c30c7=_0x59ad74['locale'];function _0x4e166d(_0x325af7){const _0x36fe62=_0x59ad74['commands']['get']('bulletedList')['value'],_0x510ccc=_0x59ad74['commands']['get']('numberedList')['value'];return'numberedList'===_0x325af7?_0x36fe62:_0x510ccc;}_0x59ad74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x167e65){if('formatBlock'!=_0x167e65['type'])return;const {data:_0x14a3a4}=_0x167e65;if(!_0x14a3a4)return;let _0x19878d,_0x20274d,_0x2dbee5,_0x5203ab;switch(_0x14a3a4['commandName']){case'bulletedList':_0x2dbee5=_0x14a3a4['commandParams'][0x0]['forceValue'],_0x5203ab=_0x4e166d(_0x14a3a4['commandName']),_0x19878d=_0x2dbee5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5203ab&&_0x59ad74['config']['get']('list.multiBlock')||(_0x19878d='*Change\x20to:*\x20%0'),_0x20274d={'type':'format','content':o(_0x5c30c7,_0x19878d,o(_0x5c30c7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2dbee5=_0x14a3a4['commandParams'][0x0]['forceValue'],_0x5203ab=_0x4e166d(_0x14a3a4['commandName']),_0x19878d=_0x2dbee5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5203ab&&_0x59ad74['config']['get']('list.multiBlock')||(_0x19878d='*Change\x20to:*\x20%0'),_0x20274d={'type':'format','content':o(_0x5c30c7,_0x19878d,o(_0x5c30c7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x19878d='*Indent:*\x20%0',_0x20274d={'type':'format','content':o(_0x5c30c7,_0x19878d,o(_0x5c30c7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x19878d=function(_0x10a926){const _0x3f3d8b=_0x10a926['getFirstRange']();let _0x33ff72=_0x3f3d8b['start']['nodeAfter'];for(;_0x33ff72&&_0x3f3d8b['containsItem'](_0x33ff72);){if(_0x33ff72['getAttribute']('listIndent')>0x0)return!0x1;_0x33ff72=_0x33ff72['nextSibling'];}return!0x0;}(_0x167e65)?o(_0x5c30c7,'*Format:*\x20remove\x20from\x20%0',o(_0x5c30c7,function(_0x2fd0c4){return'ELEMENT_'+_0x2fd0c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x167e65))):o(_0x5c30c7,'*Outdent:*\x20%0',o(_0x5c30c7,'ELEMENT_LIST_ITEM')),_0x20274d={'type':'format','content':_0x19878d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x14a3a4['multipleBlocks']&&(_0x19878d='*Merge:*\x20%0',_0x20274d={'type':'deletion','content':o(_0x5c30c7,_0x19878d,o(_0x5c30c7,'ELEMENT_LIST_ITEM'))});}return _0x20274d;});}}function Te(_0x461487){let _0x369e8=_0x461487['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x369e8;){const _0x35a501=_0x369e8['getAttribute']('listItemId');if(!_0x35a501)return!0x1;if(_0x35a501==_0x461487['data']['newValue'])return'newValue';if(_0x35a501==_0x461487['data']['oldValue'])return'oldValue';_0x369e8=_0x369e8['previousSibling'];}return!0x1;}class Y extends _0x409a1b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5842f9=this['editor']['config']['get']('list.properties'),_0x4fcca7=this['editor']['plugins']['get']('TrackChangesEditing');_0x5842f9['styles']&&_0x4fcca7['enableDefaultAttributesIntegration']('listStyle'),_0x5842f9['reversed']&&_0x4fcca7['enableDefaultAttributesIntegration']('listReversed'),_0x5842f9['startIndex']&&_0x4fcca7['enableDefaultAttributesIntegration']('listStart');const _0x4404fa={'type':'format','content':''};_0x4fcca7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x131621=this['editor']['locale'];_0x4fcca7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x131621,'FORMAT_LIST_REVERSED')),_0x4fcca7['descriptionFactory']['registerDescriptionCallback'](_0x25656d=>{const {data:_0x1512dd}=_0x25656d;if(_0x1512dd&&'listReversed'==_0x1512dd['key'])return null==_0x1512dd['newValue']||0x0==_0x1512dd['newValue']&&null==_0x1512dd['oldValue']?_0x4404fa:void 0x0;}),_0x4fcca7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x131621,'FORMAT_LIST_START')),_0x4fcca7['descriptionFactory']['registerDescriptionCallback'](_0x2aa5aa=>{const {data:_0x1d853c}=_0x2aa5aa;if(_0x1d853c&&'listStart'==_0x1d853c['key'])return null==_0x1d853c['newValue']||0x1==_0x1d853c['newValue']&&null==_0x1d853c['oldValue']?_0x4404fa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x452f0b=>{if(_0x452f0b['batch']['isUndo'])return!0x1;let _0x117ecd=!0x1;const _0x452a37=_0x4fcca7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x207f1e=>{const _0x17cd64=_0x4fcca7['_getAttributeKey'](_0x207f1e);return'listStart'==_0x17cd64||'listReversed'==_0x17cd64;});for(const _0x54eacc of _0x452a37){const _0x455314=_0x54eacc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x455314||'customNumbered'==_0x455314)continue;_0x4fcca7['_findSuggestions'](_0x54eacc['getFirstRange'](),'attribute')['find'](_0x1d04f5=>'listType'==_0x4fcca7['_getAttributeKey'](_0x1d04f5['suggestion']))||(_0x452f0b['removeMarker'](_0x54eacc['getFirstMarker']()),_0x117ecd=!0x0);}return _0x117ecd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x599612){const _0x2ff1cb=this['editor']['locale'],{data:_0x499817}=_0x599612,_0x3133fe={'type':'format','content':''};if(!_0x499817||'listStyle'!=_0x499817['key'])return;if(!_0x499817['oldValue'])return'default'==_0x499817['newValue']?_0x3133fe:{'type':'format','content':''+o(_0x2ff1cb,'*Set\x20format:*\x20%0',o(_0x2ff1cb,this['_getTranslationKeyForListStyle'](_0x499817['newValue'])))};if(!_0x499817['newValue']){if('default'==_0x499817['oldValue'])return _0x3133fe;let _0x5f3235=_0x599612['head'];for(;_0x5f3235;){if(_0x5f3235['data']&&'listType'==_0x5f3235['data']['key']&&_0x5f3235['data']['newValue'])return _0x3133fe;_0x5f3235=_0x5f3235['next'];}return{'type':'format','content':''+o(_0x2ff1cb,'*Remove\x20format:*\x20%0',o(_0x2ff1cb,this['_getTranslationKeyForListStyle'](_0x499817['oldValue'])))};}if('default'!=_0x499817['newValue'])return{'type':'format','content':''+o(_0x2ff1cb,'*Set\x20format:*\x20%0',o(_0x2ff1cb,this['_getTranslationKeyForListStyle'](_0x499817['newValue'])))};let _0xafca3a=_0x599612['head'];for(;_0xafca3a;){if(_0xafca3a['data']&&'listType'==_0xafca3a['data']['key']&&_0xafca3a['data']['newValue']&&_0xafca3a['data']['oldValue'])return _0x3133fe;_0xafca3a=_0xafca3a['next'];}return{'type':'format','content':o(_0x2ff1cb,'*Set\x20format:*\x20%0',o(_0x2ff1cb,'ELEMENT_'+_0x599612['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x28fdf8=this['editor'],_0x343186=_0x28fdf8['locale'];_0x28fdf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5020b2=>{if('formatBlock'!=_0x5020b2['type'])return;const {data:_0x18ebfa}=_0x5020b2;if(!_0x18ebfa)return;let _0x3d5374,_0x1a9b4f;switch(_0x18ebfa['commandName']){case'listStyle':_0x3d5374='*Change\x20to:*\x20%0',_0x1a9b4f={'type':'format','content':o(_0x343186,_0x3d5374,o(_0x343186,this['_getTranslationKeyForListStyle'](_0x18ebfa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3d5374=_0x18ebfa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a9b4f={'type':'format','content':o(_0x343186,_0x3d5374)};break;case'listStart':_0x3d5374='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a9b4f={'type':'format','content':o(_0x343186,_0x3d5374,_0x18ebfa['commandParams'][0x0]['startIndex'])};}return _0x1a9b4f;});}['_getTranslationKeyForListStyle'](_0x4e5bab){return'ELEMENT_'+function(_0x328a5a){if(ye['includes'](_0x328a5a))return'bulleted';if(Se['includes'](_0x328a5a))return'numbered';return null;}(_0x4e5bab)['toUpperCase']()+'_LIST_'+_0x4e5bab['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x409a1b{['afterInit'](){const _0x4dc61c=this['editor'];_0x4dc61c['commands']['get']('emoji')&&_0x4dc61c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x409a1b{static get['requires'](){return[_0x110597];}['init'](){const _0x40178d=this['editor'],_0x56db3c=_0x40178d['plugins']['get']('TrackChangesEditing'),_0x408276=_0x40178d['commands']['get']('enter');_0x56db3c['enableCommand']('enter',()=>{_0x40178d['model']['change'](_0x3c4bf8=>{const _0x5c76a4=_0x40178d['model']['document']['selection'],_0x26fef4=_0x5c76a4['getFirstPosition'](),_0x4782f7=_0xdb3ad2['fromRange'](_0x5c76a4['getFirstRange']());if(_0x408276['enterBlock'](_0x3c4bf8)){const _0x288ea5=_0x40178d['model']['createPositionAt'](_0x26fef4['parent']['nextSibling'],0x0),_0x2fe4d0=_0x3c4bf8['createRange'](_0x26fef4,_0x288ea5);_0x56db3c['markInsertion'](_0x2fe4d0);}else _0x3c4bf8['setSelection'](_0x3c4bf8['createRange'](_0x4782f7['end']));_0x4782f7['detach'](),_0x408276['fire']('afterExecute',{'writer':_0x3c4bf8});});});}}class nt extends _0x409a1b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x563fff=this['editor']['plugins']['get']('TrackChangesEditing');_0x563fff['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x563fff['enableCommand']('findNext'),_0x563fff['enableCommand']('findPrevious'),_0x563fff['enableCommand']('replace'),_0x563fff['enableCommand']('replaceAll');}['handleFindCommand'](_0x3873bb,_0x2aec35,_0xa43f92={}){const _0x2efcd7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3873bb(_0x28a45f=>{let _0x1f812b=('string'==typeof _0x2aec35?_0x2efcd7['findByTextCallback'](_0x2aec35,_0xa43f92):_0x2aec35)(_0x28a45f);Array['isArray'](_0x1f812b)&&(_0x1f812b={'results':_0x1f812b,'searchText':'string'==typeof _0x2aec35?_0x2aec35:''});const _0x475483=_0x1f812b['results']['filter'](_0x1664f6=>!0x1===this['_isInDeletionRange'](_0x1664f6,_0x28a45f['item']));return{..._0x1f812b,'results':_0x475483};},_0xa43f92);}['_isInDeletionRange'](_0x21f77a,_0x2c6f0e){const _0x273a13=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c6f0e,_0x21f77a['start']),this['editor']['model']['createPositionAt'](_0x2c6f0e,_0x21f77a['end']));for(const _0x166b3b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x273a13['getIntersection'](_0x166b3b['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x409a1b{['afterInit'](){const _0x563c85=this['editor']['locale'],_0x3b4a3f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xe85028,commandName:_0x4cf93d}of eo)this['editor']['plugins']['has'](_0xe85028)&&_0x3b4a3f['enableDefaultAttributesIntegration'](_0x4cf93d);_0x3b4a3f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x563c85,'FORMAT_FONT_SIZE')),_0x3b4a3f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x563c85,'FORMAT_FONT_FAMILY')),_0x3b4a3f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x563c85,'FORMAT_FONT_COLOR')),_0x3b4a3f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x563c85,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c92b2=this['editor'],_0x15e4c8=_0x1c92b2['locale'];_0x1c92b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x258ea1=>{const _0x118b0a=_0x15e4c8['t'];if('formatInline'!=_0x258ea1['type'])return;const {data:_0x39039d}=_0x258ea1;if(null!=_0x39039d){if('fontSize'==_0x39039d['commandName']){const _0x46420f=_0x39039d['commandParams'][0x0]['value'];if(_0x46420f){const _0x4f1e1a=_0x118b0a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1bfa22=>_0x1bfa22['model']==_0x46420f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x15e4c8,'*Set\x20font\x20size:*\x20%0',_0x4f1e1a)};}return{'type':'format','content':o(_0x15e4c8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x39039d['commandName']){const _0x79fcff=_0x39039d['commandParams'][0x0]['value'];return _0x79fcff?{'type':'format','content':o(_0x15e4c8,'*Set\x20font\x20family:*\x20%0',_0x79fcff)}:{'type':'format','content':o(_0x15e4c8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x39039d['commandName']){const _0x638714=_0x39039d['commandParams'][0x0]['value'];if(_0x638714){const _0x521fcc=_0xfcbeb0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x727354=>_0x727354['model']==_0x638714);let _0x2a6d62=_0x638714,_0x315af8='';return _0x521fcc&&(_0x2a6d62=_0x521fcc['label'],_0x315af8=_0x118b0a(_0x2a6d62)['toLowerCase']()),{'type':'format','content':o(_0x15e4c8,'*Set\x20font\x20color:*\x20%0',_0x315af8)['trim'](),'color':{'value':_0x638714,'title':_0x315af8||_0x2a6d62}};}return{'type':'format','content':o(_0x15e4c8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x39039d['commandName']){const _0x57aaa7=_0x39039d['commandParams'][0x0]['value'];if(_0x57aaa7){const _0x10f1d0=_0xfcbeb0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x43d482=>_0x43d482['model']==_0x57aaa7);let _0x6f78e5=_0x57aaa7,_0x1c4f34='';return _0x10f1d0&&(_0x6f78e5=_0x10f1d0['label'],_0x1c4f34=_0x118b0a(_0x6f78e5)['toLowerCase']()),{'type':'format','content':o(_0x15e4c8,'*Set\x20font\x20background\x20color:*\x20%0',_0x1c4f34)['trim'](),'color':{'value':_0x57aaa7,'title':_0x1c4f34||_0x6f78e5}};}return{'type':'format','content':o(_0x15e4c8,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x409a1b{['afterInit'](){const {plugins:_0x891278}=this['editor'];_0x891278['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x891278['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x344bf0,plugins:_0x1318cb,commands:_0x2ce428}=this['editor'],_0x40873b=_0x1318cb['get']('TrackChangesEditing');_0x2ce428['get']('footnotesStyle')&&_0x40873b['enableDefaultAttributesIntegration']('footnotesStyle'),_0x2ce428['get']('footnotesStart')&&_0x40873b['enableDefaultAttributesIntegration']('footnotesStart'),_0x40873b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x344bf0,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x40873b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x344bf0,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xbbb169=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x209b20,commands:_0x817c8a}=this['editor'];_0x817c8a['get']('insertFootnote')&&_0xbbb169['enableCommand']('insertFootnote'),_0xbbb169['descriptionFactory']['registerElementLabel']('footnoteRef',_0x35aa7e=>o(_0x209b20,'ELEMENT_FOOTNOTE_REF',_0x35aa7e)),_0xbbb169['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5c51eb=>o(_0x209b20,'ELEMENT_FOOTNOTE_DEFINITION',_0x5c51eb)),_0xbbb169['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x480428=>o(_0x209b20,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x480428));}}class st extends _0x409a1b{['afterInit'](){const _0x49e8b4=this['editor'],_0x49925e=_0x49e8b4['plugins']['get']('TrackChangesEditing'),_0x3b708f=_0x49e8b4['commands']['get']('copyFormat'),_0x22be1e=_0x49e8b4['commands']['get']('pasteFormat');_0x3b708f&&_0x22be1e&&(_0x49925e['enableDefaultAttributesIntegration']('pasteFormat'),_0x49925e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x9c71fa=this['editor'],_0x50ec39=_0x9c71fa['locale'];_0x9c71fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b7425=>{if('formatBlock'!=_0x4b7425['type']&&'formatInline'!=_0x4b7425['type'])return;const {data:_0x1a05c9}=_0x4b7425;if(_0x1a05c9&&'pasteFormat'===_0x1a05c9['commandName']){const _0x5ed778=[],_0x1c816e=_0x1a05c9['commandParams'][0x0];for(const [_0x2d102a,_0x2d3e97]of Object['entries'](_0x1c816e))_0x5ed778['push'](ro(_0x9c71fa,_0x2d102a,_0x2d3e97));return _0x5ed778['length']?{'type':'format','content':o(_0x50ec39,'*Set\x20format\x20to:*\x20%0',_0x5ed778['join'](',\x20'))}:{'type':'format','content':o(_0x50ec39,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x251813,_0x1e5e77,_0x4d52d5){const _0x74150b=_0x251813['locale']['t'],_0x23bcbb=_0x1e5e77['split'](/(?=[A-Z])/)['join']('\x20'),_0x5b00df=_0x74150b(_0x23bcbb['charAt'](0x0)['toUpperCase']()+_0x23bcbb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4d52d5)return _0x5b00df;if('fontColor'===_0x1e5e77||'fontBackgroundColor'===_0x1e5e77){const _0x4053c5=_0xfcbeb0(_0x251813['config']['get']('fontColor.colors'))['find'](_0x5c310f=>_0x5c310f['model']==_0x4d52d5);return _0x5b00df+'\x20('+(_0x4053c5?_0x74150b(_0x4053c5['label'])['toLowerCase']():_0x4d52d5)+')';}if('fontSize'===_0x1e5e77&&isNaN(parseFloat(_0x4d52d5))){const _0x5e7faa=_0x251813['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x251813['config']['get']('fontSize.options'))['find'](_0x3620bf=>_0x3620bf['model']==_0x4d52d5);return _0x5b00df+'\x20('+(_0x5e7faa?_0x74150b(_0x5e7faa['title'])['toLowerCase']():_0x4d52d5)+')';}return _0x5b00df+'\x20('+_0x4d52d5+')';}class ot extends _0x409a1b{['_headingOptions'];['afterInit'](){const _0x39ac3b=this['editor'];if(!_0x39ac3b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x39ac3b['config']['get']('heading.options');const _0x3adae2=_0x39ac3b['locale'],_0xc3e6e9=_0x39ac3b['plugins']['get']('TrackChangesEditing');_0xc3e6e9['enableDefaultAttributesIntegration']('heading');for(const _0x5ba41a of this['_headingOptions'])'paragraph'!=_0x5ba41a['model']&&_0xc3e6e9['descriptionFactory']['registerElementLabel'](_0x5ba41a['model'],_0x40fd39=>{const _0xfd22d7=this['_getHeadingLevel'](_0x5ba41a['model']);return null!==_0xfd22d7?_0x679ca0(_0x40fd39,_0xfd22d7):_0x4b13d0(_0x40fd39,_0x5ba41a['title']);});function _0x679ca0(_0x33492a,_0x18d7a3){return o(_0x3adae2,'ELEMENT_HEADING',[_0x33492a,_0x18d7a3]);}function _0x4b13d0(_0x2434bd,_0x316854){return o(_0x3adae2,'ELEMENT_HEADING_CUSTOM',[_0x2434bd,_0x316854]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x275397=this['editor'],_0xac3706=_0x275397['locale'];function _0x13d4ff(_0x18961b,_0x2ade0b){return o(_0xac3706,'ELEMENT_HEADING_CUSTOM',[_0x18961b,_0x2ade0b]);}_0x275397['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5749c5=>{if('formatBlock'!=_0x5749c5['type'])return;const {data:_0x812dc6}=_0x5749c5;if(_0x812dc6&&'heading'==_0x812dc6['commandName']){const _0x4dd9fb=_0x812dc6['commandParams'][0x0]['value'],_0x2550c2=this['_getHeadingLevel'](_0x4dd9fb);if(null!==_0x2550c2)return{'type':'format','content':o(_0xac3706,'*Change\x20to:*\x20%0',(_0x4b314f=0x1,_0x11d3dc=_0x2550c2,o(_0xac3706,'ELEMENT_HEADING',[_0x4b314f,_0x11d3dc])))};const _0x2c4db8=this['_headingOptions']['find'](_0x461e24=>_0x461e24['model']===_0x4dd9fb)['title'];return{'type':'format','content':o(_0xac3706,'*Change\x20to:*\x20%0',_0x13d4ff(0x1,_0x2c4db8))};}var _0x4b314f,_0x11d3dc;});}['_getHeadingLevel'](_0x37914a){const _0x3e9f8c=_0x37914a['match'](/^heading(\d+)/);if(_0x3e9f8c)return _0x3e9f8c[0x1];const _0x271b5d=this['_headingOptions']?.['find'](_0x273dad=>_0x273dad['model']==_0x37914a);if(_0x271b5d&&_0x271b5d['view']){const _0x51b965=_0x271b5d['view'],_0x1a99e0=(_0x51b965['name']??_0x51b965)['match'](/^h(\d+)/);if(_0x1a99e0)return _0x1a99e0[0x1];}return null;}}class rt extends _0x409a1b{['afterInit'](){const _0x58d725=this['editor'];if(!_0x58d725['plugins']['has']('HighlightEditing'))return;const _0x15bd87=_0x58d725['plugins']['get']('TrackChangesEditing'),_0x3a322c=_0x58d725['locale'];_0x15bd87['enableDefaultAttributesIntegration']('highlight'),_0x15bd87['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3a322c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c4ded=this['editor'],_0x369828=_0x4c4ded['locale'];_0x4c4ded['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xba893=>{if('formatInline'!=_0xba893['type'])return;const {data:_0x44bd57}=_0xba893;if(_0x44bd57&&'highlight'==_0x44bd57['commandName']){const _0x400871=_0x369828['t'],_0x5785d9=_0x44bd57['commandParams'][0x0]['value'];if(_0x5785d9){const _0x5723af=_0x4c4ded['config']['get']('highlight.options')['find'](_0x3b966d=>_0x3b966d['model']==_0x5785d9),_0x2dcc65=_0x400871(_0x5723af['title'])['toLowerCase']();return{'type':'format','content':o(_0x369828,'*Set\x20highlight:*\x20%0',_0x2dcc65),'color':{'value':_0x5723af['color'],'title':_0x5723af['title']}};}return{'type':'format','content':o(_0x369828,'*Remove\x20highlight*',o(_0x369828,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x409a1b{['afterInit'](){const _0x35e0ea=this['editor'];if(!_0x35e0ea['plugins']['has']('HorizontalLineEditing'))return;_0x35e0ea['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1d8bfa=_0x35e0ea['plugins']['get']('TrackChangesEditing'),_0x1fc9c9=_0x35e0ea['locale'];_0x1d8bfa['descriptionFactory']['registerElementLabel']('horizontalLine',_0x581654=>o(_0x1fc9c9,'ELEMENT_HORIZONTAL_LINE',_0x581654));}}class ct extends _0x409a1b{['afterInit'](){const _0x109221=this['editor'];if(!_0x109221['plugins']['has']('HtmlEmbed'))return;const _0x520c18=_0x109221['plugins']['get']('TrackChangesEditing'),_0x39e2ee=_0x109221['locale'];_0x520c18['descriptionFactory']['registerElementLabel']('rawHtml',_0x2de950=>o(_0x39e2ee,'ELEMENT_HTML_EMBED',_0x2de950)),_0x520c18['enableDefaultAttributesIntegration']('htmlEmbed'),_0x520c18['descriptionFactory']['registerDescriptionCallback'](_0x3ee2a6=>{if('attribute'!=_0x3ee2a6['type'])return;const {data:_0x33f0ec}=_0x3ee2a6;if(_0x33f0ec&&'value'==_0x33f0ec['key']&&_0x3ee2a6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x30e37c=o(_0x39e2ee,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x39e2ee,'*Change\x20%0\x20content*',_0x30e37c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9da344=this['editor'],_0x2b96a1=_0x9da344['locale'];_0x9da344['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fcf95=>{if('formatBlock'!=_0x2fcf95['type'])return;const {data:_0x259d43}=_0x2fcf95;if(_0x259d43&&'htmlEmbed'==_0x259d43['commandName']){const _0x24cd0e=o(_0x2b96a1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b96a1,'*Change\x20%0\x20content*',_0x24cd0e)};}});}}class ut extends _0x409a1b{['afterInit'](){const _0x36beac=this['editor'];if(!_0x36beac['plugins']['has']('ImageEditing'))return;const _0xdb5701=_0x36beac['plugins']['get']('TrackChangesEditing'),_0x24a022=_0x36beac['plugins']['get']('ImageUtils'),_0x172c5c=_0x36beac['locale'];_0xdb5701['enableCommand']('insertImage'),_0xdb5701['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a6f3f=>o(_0x172c5c,'ELEMENT_IMAGE',_0x4a6f3f)),_0xdb5701['descriptionFactory']['registerElementLabel']('imageInline',_0x43afca=>o(_0x172c5c,'ELEMENT_INLINE_IMAGE',_0x43afca)),_0xdb5701['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x172c5c,'ELEMENT_CAPTION')),_0x36beac['plugins']['has']('ImageUploadEditing')&&_0xdb5701['enableCommand']('uploadImage'),_0x36beac['plugins']['has']('ImageBlockEditing')&&_0x36beac['plugins']['has']('ImageInlineEditing')&&(_0xdb5701['enableCommand']('imageTypeInline',(_0x3964eb,_0x8c307)=>{const _0x1fbe2f=_0x24a022['getClosestSelectedImageElement'](_0x36beac['model']['document']['selection']);_0x36beac['model']['change'](()=>{_0xdb5701['markBlockFormat'](_0x1fbe2f,{'commandName':'imageTypeInline','commandParams':[_0x8c307]},[],'convertBlockImageToInline');});}),_0xdb5701['enableCommand']('imageTypeBlock',(_0x5cde85,_0x2df356)=>{_0x36beac['model']['change'](_0x4a8512=>{let _0x52c376=_0x24a022['getClosestSelectedImageElement'](_0x36beac['model']['document']['selection']),_0x53f7c3=_0x4a8512['createRangeOn'](_0x52c376);const _0x78f81=_0x435642['fromPosition'](_0x53f7c3['start'],'toPrevious'),_0x28cdad=_0x435642['fromPosition'](_0x53f7c3['end'],'toNext');_0xdb5701['forceDefaultExecution'](()=>_0x5cde85(_0x2df356)),_0x52c376=_0x24a022['getClosestSelectedImageElement'](_0x36beac['model']['document']['selection']),_0x53f7c3=_0x4a8512['createRangeOn'](_0x52c376);const _0x2ff1c2=_0x4a8512['createRange'](_0x78f81,_0x28cdad);_0x78f81['detach'](),_0x28cdad['detach'](),_0xdb5701['markBlockFormat'](_0x52c376,{'commandName':'imageTypeInline','commandParams':[_0x2df356]},[],'convertInlineImageToBlock'),_0x2ff1c2['start']['isBefore'](_0x53f7c3['start'])&&_0xdb5701['markInsertion'](_0x4a8512['createRange'](_0x2ff1c2['start'],_0x53f7c3['start']),'convertInlineImageToBlock'),_0x53f7c3['end']['isBefore'](_0x2ff1c2['end'])&&_0xdb5701['markInsertion'](_0x4a8512['createRange'](_0x53f7c3['end'],_0x2ff1c2['end']),'convertInlineImageToBlock');});}),_0xdb5701['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xdb5701['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xdb5701['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xdb5701['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xdb5701['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xdb5701['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5712ba])=>{const _0xd2b5fe=_0xdb5701['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2fd965=_0x5712ba['start'],_0x3661c4=_0x5712ba['end'];const _0x4991ce=_0x36beac['model']['schema']['getNearestSelectionRange'](_0x2fd965,'backward'),_0x591acb=_0x36beac['model']['schema']['getNearestSelectionRange'](_0x3661c4,'forward');_0x4991ce['isCollapsed']&&(_0x2fd965=_0x4991ce['start']),_0x591acb['isCollapsed']&&(_0x3661c4=_0x591acb['end']),_0xd2b5fe([_0x36beac['model']['createRange'](_0x2fd965,_0x3661c4)]);}),_0xdb5701['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x423b80),_0xdb5701['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x423b80)),_0x36beac['plugins']['has']('ImageCaptionEditing')&&(_0xdb5701['enableCommand']('toggleImageCaption',(_0x17a37b,_0x45a411)=>{const _0x50bc3e=_0x36beac['plugins']['get']('ImageCaptionUtils');let _0x42c18f=_0x24a022['getClosestSelectedImageElement'](_0x36beac['model']['document']['selection']),_0x271205=_0x50bc3e['getCaptionFromImageModelElement'](_0x42c18f);_0x36beac['model']['change'](()=>{if(_0x271205)return void _0xdb5701['markDeletion'](_0x36beac['model']['createRangeOn'](_0x271205));const _0x5cffa1=_0x24a022['isBlockImage'](_0x42c18f);_0x17a37b(_0x45a411),_0x42c18f=_0x24a022['getClosestSelectedImageElement'](_0x36beac['model']['document']['selection']),_0x271205=_0x50bc3e['getCaptionFromImageModelElement'](_0x42c18f),_0xdb5701['markInsertion'](_0x36beac['model']['createRangeOn'](_0x271205),_0x5cffa1?null:'imageCaption');});}),_0xdb5701['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x423b80));const _0x17e0f0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5637c6(_0x58c3e5,_0x22819d){const _0x54fa16=_0x17e0f0['findIndex'](({type:_0x2bd9dc,subType:_0x4a4558})=>_0x58c3e5['type']==_0x2bd9dc&&_0x58c3e5['subType']==_0x4a4558),_0x304dbc=_0x17e0f0['findIndex'](({type:_0x5abcc0,subType:_0x47f59d})=>_0x22819d['type']==_0x5abcc0&&_0x22819d['subType']==_0x47f59d);if(_0x54fa16<0x0||_0x304dbc<0x0)return!0x1;const _0x2c832f=_0x58c3e5['getFirstRange'](),_0x3b24cf=_0x22819d['getFirstRange']();if((0x0==_0x54fa16||0x1==_0x54fa16)&&0x2==_0x304dbc&&_0x2c832f['isIntersecting'](_0x3b24cf))return!0x0;if(0x2==_0x54fa16&&0x3==_0x304dbc){const _0xb5a189=_0xdb5701['_findSuggestions'](_0x2c832f,'insertion')['filter'](({suggestion:_0x30aa2f,meta:_0x5c7d7a})=>_0x5c7d7a['isOwn']&&'convertInlineImageToBlock'==_0x30aa2f['subType']);if(_0xb5a189['length']>0x1&&_0x3b24cf['end']['isEqual'](_0x2c832f['start']))return!0x0;if(0x1==_0xb5a189['length']&&(_0x2c832f['start']['isEqual'](_0x3b24cf['end'])||_0x2c832f['end']['isEqual'](_0x3b24cf['start'])))return!0x0;}if(0x3==_0x54fa16&&0x3==_0x304dbc&&_0x2c832f['start']['isBefore'](_0x3b24cf['start'])){const _0x24e2a1=_0x2c832f['end']['nodeAfter'],_0x13425c=_0x3b24cf['start']['nodeBefore'];return _0x24a022['isBlockImage'](_0x24e2a1)&&_0x24e2a1===_0x13425c;}return!0x1;}function _0x423b80(_0x246a39,_0x246819){return _0x5637c6(_0x246a39,_0x246819)?[_0x246a39,_0x246819]:_0x5637c6(_0x246819,_0x246a39)?[_0x246819,_0x246a39]:null;}_0x36beac['plugins']['has']('ImageResize')&&(_0xdb5701['enableDefaultAttributesIntegration']('resizeImage'),_0xdb5701['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x172c5c,'FORMAT_IMAGE_SIZE'))),_0x36beac['plugins']['has']('ImageTextAlternativeEditing')&&_0xdb5701['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x36beac['plugins']['has']('PictureEditing')&&_0xdb5701['descriptionFactory']['registerDescriptionCallback'](_0x4636b9=>{if('attribute'!=_0x4636b9['type'])return;const {data:_0x5ba5a7}=_0x4636b9;return _0x5ba5a7&&'sources'==_0x5ba5a7['key']?{'type':'format','content':''}:void 0x0;}),_0x36beac['plugins']['has']('ImageSizeAttributes')&&_0xdb5701['descriptionFactory']['registerDescriptionCallback'](_0x2764b0=>{if('attribute'!=_0x2764b0['type'])return;const {data:_0x683b13}=_0x2764b0;return!_0x683b13||'width'!=_0x683b13['key']&&'height'!=_0x683b13['key']?void 0x0:{'type':'format','content':''};}),_0xdb5701['descriptionFactory']['registerDescriptionCallback'](_0x3be743=>{if(!!_0x17e0f0['find'](({type:_0xaec68b,subType:_0xe68d6a})=>_0x3be743['type']==_0xaec68b&&_0x3be743['subType']==_0xe68d6a))return _0x3be743['previous']?{}:void 0x0;}),_0xdb5701['descriptionFactory']['registerDescriptionCallback'](_0x36f318=>{if('insertion'==_0x36f318['type']||'deletion'==_0x36f318['type']){const _0x2da134=_0x36f318['getContainedElement']();if(_0x2da134&&_0x2da134['is']('element','caption'))return{'type':'insertion'==_0x36f318['type']?'addObject':'removeObject','element':_0x2da134,'quantity':0x1};}}),_0xdb5701['descriptionFactory']['registerDescriptionCallback'](_0x27675d=>'formatBlock'==_0x27675d['type']&&'convertInlineImageToBlock'==_0x27675d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x27675d['type']&&'convertBlockImageToInline'==_0x27675d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xdb5701['descriptionFactory']['registerDescriptionCallback'](_0x5ba9d6=>{if('attribute'!=_0x5ba9d6['type'])return;const {data:_0x2ac831}=_0x5ba9d6;if(!_0x2ac831||'alt'!=_0x2ac831['key'])return;const _0x5b509a=_0x2ac831['newValue'];return _0x5b509a?{'type':'format','content':o(_0x172c5c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b509a+'\x22')}:{'type':'format','content':o(_0x172c5c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f4cd0=this['editor'],_0x48cdd5=_0x1f4cd0['locale'];_0x1f4cd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f7591=>{if('formatBlock'!=_0x4f7591['type']&&'formatInline'!=_0x4f7591['type'])return;const {data:_0x4a307c}=_0x4f7591;if(_0x4a307c){if('imageTextAlternative'==_0x4a307c['commandName']){const _0x239f27=_0x4a307c['commandParams'][0x0]['newValue'];return _0x239f27?{'type':'format','content':o(_0x48cdd5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x239f27+'\x22')}:{'type':'format','content':o(_0x48cdd5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4a307c['commandName']){const _0x9653fe=_0x4a307c['commandParams'][0x0]['width'];return _0x9653fe?{'type':'format','content':o(_0x48cdd5,'*Set\x20image\x20width:*\x20%0',_0x9653fe)}:{'type':'format','content':o(_0x48cdd5,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x409a1b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x178f55=this['editor']['locale'],_0x443e3f=this['editor']['plugins']['get']('TrackChangesEditing');_0x443e3f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x443e3f['descriptionFactory']['registerDescriptionCallback'](_0x2cf361=>{if('attribute'!=_0x2cf361['type'])return;const {data:_0x3bf1e2}=_0x2cf361;return _0x3bf1e2&&'src'==_0x3bf1e2['key']?_0x3bf1e2['newValue']&&_0x3bf1e2['oldValue']?{'type':'format','content':o(_0x178f55,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x56b8fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x56b8fa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x56b8fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56b8fa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x56b8fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ee271=this['editor'],_0x37eb59=_0x3ee271['locale'];_0x3ee271['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xca5f41=>{if('formatBlock'!=_0xca5f41['type']&&'formatInline'!=_0xca5f41['type'])return;const {data:_0xb55fa0}=_0xca5f41;if(!_0xb55fa0||'replaceImageSource'!=_0xb55fa0['commandName'])return;return{'type':'format','content':o(_0x37eb59,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x409a1b{['afterInit'](){const _0x1c3890=this['editor'];if(!_0x1c3890['plugins']['has']('ImageStyleEditing'))return;const _0x22e1c8=_0x1c3890['plugins']['get']('TrackChangesEditing'),_0x46567e=_0x1c3890['plugins']['get']('ImageUtils'),_0x442902={};_0x22e1c8['enableCommand']('imageStyle',(_0x5b0358,_0x80cf9e)=>{const _0x332412=_0x1c3890['plugins']['get']('Users')['me'],_0x3ac3cf=_0x1c3890['commands']['get']('imageStyle');let _0x5477bc=_0x46567e['getClosestSelectedImageElement'](_0x1c3890['model']['document']['selection']),_0x36a021=_0x1c3890['model']['createRangeOn'](_0x5477bc),_0x42b4ba=_0x3ac3cf['value'];if(_0x42b4ba==_0x80cf9e['value'])return;const _0x2e1184={'commandName':'imageStyle','commandParams':[_0x80cf9e],'formatGroupId':_0x3c76d7()};_0x1c3890['model']['change'](()=>{if(_0x22e1c8['getSuggestions']()['filter'](_0xc16f=>_0xc16f['isInContent']&&_0x332412==_0xc16f['author']&&('formatBlock'==_0xc16f['type']||'formatInline'==_0xc16f['type'])&&('imageStylePreApply'==_0xc16f['subType']||'imageStylePostApply'==_0xc16f['subType'])&&_0xc16f['getFirstRange']()['isEqual'](_0x36a021))['forEach'](_0x35f686=>_0x22e1c8['discardSuggestion'](_0x35f686['head'])),_0x5477bc=_0x46567e['getClosestSelectedImageElement'](_0x1c3890['model']['document']['selection']),_0x36a021=_0x1c3890['model']['createRangeOn'](_0x5477bc),_0x3ac3cf['refresh'](),_0x1c3890['commands']['get']('imageTypeInline')['refresh'](),_0x1c3890['commands']['get']('imageTypeBlock')['refresh'](),_0x42b4ba=_0x3ac3cf['value'],_0x42b4ba!=_0x80cf9e['value'])return _0x46567e['isInlineImage'](_0x5477bc)&&_0x3ac3cf['shouldConvertImageType'](_0x80cf9e['value'],_0x5477bc)?(_0x5b0358({..._0x80cf9e,'setImageSizes':!0x1}),_0x5477bc=_0x46567e['getClosestSelectedImageElement'](_0x1c3890['model']['document']['selection']),void _0x22e1c8['markBlockFormat'](_0x5477bc,{..._0x2e1184,'commandReversedParams':[{'value':_0x42b4ba||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x46567e['isBlockImage'](_0x5477bc)?_0x22e1c8['markBlockFormat'](_0x5477bc,_0x2e1184,[],'imageStylePostApply'):_0x22e1c8['markInlineFormat'](_0x36a021,_0x2e1184,'imageStylePostApply'));});});for(const _0x1d9e10 of _0x1c3890['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x442902[_0x1d9e10['name']]=_0x1d9e10['title']['toLowerCase']();_0x22e1c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x22e1c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x22e1c8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x22e1c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x54d7a5])=>{_0x46567e['setImageNaturalSizeAttributes'](_0x54d7a5['getContainedElement']());}),_0x22e1c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x16298c,_0x468897)=>{_0x22e1c8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x16298c,{'commandName':_0x468897['commandName'],'commandParams':_0x468897['commandReversedParams']});}),_0x22e1c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3c79ee,_0x21fce7){if(_0x19d49c(_0x3c79ee,_0x21fce7))return[_0x3c79ee,_0x21fce7];if(_0x19d49c(_0x21fce7,_0x3c79ee))return[_0x21fce7,_0x3c79ee];return null;});const _0x5abdcb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x19d49c(_0x88b009,_0x593c26){const _0x27640c=_0x5abdcb['findIndex'](({type:_0x274b9f,subType:_0x9a4483})=>_0x88b009['type']==_0x274b9f&&_0x88b009['subType']==_0x9a4483),_0x505513=_0x5abdcb['findIndex'](({type:_0x17b886,subType:_0x30e0af})=>_0x593c26['type']==_0x17b886&&_0x593c26['subType']==_0x30e0af);if(_0x27640c<0x0||_0x505513<0x0)return!0x1;const _0x49f5bc=_0x88b009['getFirstRange'](),_0x4b1ac1=_0x593c26['getFirstRange']();if((0x0==_0x27640c||0x1==_0x27640c)&&0x2==_0x505513&&_0x49f5bc['isIntersecting'](_0x4b1ac1))return!0x0;if(0x2==_0x27640c&&0x3==_0x505513){const _0x26212c=_0x22e1c8['_findSuggestions'](_0x49f5bc,'insertion')['filter'](({suggestion:_0x148719,meta:_0x3d31cf})=>_0x3d31cf['isOwn']&&'convertInlineImageToBlock'==_0x148719['subType']);if(_0x26212c['length']>0x1&&_0x4b1ac1['end']['isEqual'](_0x49f5bc['start']))return!0x0;if(0x1==_0x26212c['length']&&(_0x49f5bc['start']['isEqual'](_0x4b1ac1['end'])||_0x49f5bc['end']['isEqual'](_0x4b1ac1['start'])))return!0x0;}if(0x3==_0x27640c&&0x3==_0x505513&&_0x49f5bc['start']['isBefore'](_0x4b1ac1['start'])){const _0x1033e2=_0x49f5bc['end']['nodeAfter'],_0x16c9f4=_0x4b1ac1['start']['nodeBefore'];return _0x46567e['isBlockImage'](_0x1033e2)&&_0x1033e2===_0x16c9f4;}return!0x1;}_0x1c3890['model']['document']['registerPostFixer'](()=>{let _0x184da9=!0x1;const _0x5e7436=Array['from'](_0x1c3890['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b8971,data:_0x20545a}of _0x5e7436){const {group:_0x579831,type:_0x1e493f,subType:_0x31699a,id:_0x2e046f}=_0x22e1c8['_splitMarkerName'](_0x1b8971);if('suggestion'==_0x579831&&_0x22e1c8['hasSuggestion'](_0x2e046f)){if('formatBlock'==_0x1e493f&&('imageStylePreApply'==_0x31699a||'imageStylePostApply'==_0x31699a)){const _0x563c82=_0x22e1c8['getSuggestion'](_0x2e046f);if(_0x20545a['newRange']){const _0x5afa56=_0x563c82['getFirstRange']()['getContainedElement']();if(_0x46567e['isBlockImage'](_0x5afa56))continue;_0x22e1c8['discardSuggestion'](_0x563c82),_0x184da9=!0x0;}}if('insertion'==_0x1e493f&&'imageCaption'==_0x31699a&&!_0x20545a['newRange']){const _0x1d7c2a=_0x22e1c8['getSuggestion'](_0x2e046f);_0x1d7c2a['next']&&_0x1d7c2a['next']['isInContent']&&(_0x22e1c8['discardSuggestion'](_0x1d7c2a['next']),_0x184da9=!0x0);}}}return _0x184da9;}),this['_registerLegacyDescription'](_0x442902);}['_registerLegacyDescription'](_0x2626b2){const _0x177f8d=this['editor'],_0x277888=_0x177f8d['locale'];_0x177f8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x79f6ac=>{if('formatBlock'!=_0x79f6ac['type']&&'formatInline'!=_0x79f6ac['type'])return;const {data:_0x21ae9f}=_0x79f6ac;if(!_0x21ae9f||'imageStyle'!=_0x21ae9f['commandName'])return;const _0x50cda1=_0x21ae9f['commandParams'][0x0]['value'];return _0x3b4d5b('side'===_0x50cda1?o(_0x277888,'FORMAT_SIDE_IMAGE'):_0x2626b2[_0x50cda1]||_0x50cda1);function _0x3b4d5b(_0x4a43aa){return{'type':'format','content':o(_0x277888,'*Format:*\x20%0',_0x4a43aa)};}});}}class lt extends _0x409a1b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x7bfdf9){super(_0x7bfdf9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1ef62e=this['editor'],_0x465133=_0x1ef62e['commands']['get']('importWord'),_0x272379=_0x1ef62e['commands']['get']('trackChanges');_0x465133&&(_0x465133['on']('execute',(_0x1339dd,[,_0x5754f8])=>{this['_trackChangesValueDuringImport']=_0x272379['value'],_0x5754f8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x465133,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x465133,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x272379['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1ef62e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x449912,_0x26306d){const {suggestions:_0x209994}=_0x26306d,_0x4043be=this['editor']['commands']['get']('trackChanges'),_0xaeee99=_0x4043be['value'];this['_trackChangesValueDuringImport']!==_0xaeee99&&(_0x4043be['execute'](),this['_trackChangesExecuted']=!0x0),_0x209994&&_0x209994['forEach'](({id:_0x401284,type:_0xde3705,author:_0x1b03f1,created_at:_0x598539})=>{const _0x5dc4d0={'id':_0x401284,'type':_0xde3705,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1b03f1,'createdAt':_0x598539?new Date(_0x598539):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5dc4d0);});}}class gt extends _0x409a1b{['afterInit'](){const _0x5edc97=this['editor'],_0x3a2770=_0x5edc97['plugins']['get']('TrackChangesEditing');if(_0x5edc97['plugins']['has']('IndentEditing')&&(_0x3a2770['enableCommand']('indent'),_0x3a2770['enableCommand']('outdent')),_0x5edc97['plugins']['has']('IndentBlock')){for(const _0x23da4a of['indentBlock','outdentBlock'])_0x3a2770['enableDefaultAttributesIntegration'](_0x23da4a);if(_0x5edc97['plugins']['has']('ListEditing')){for(const _0x22b5d7 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3a2770['enableDefaultAttributesIntegration'](_0x22b5d7);}}const _0x19575a=_0x5edc97['locale'];_0x3a2770['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x19575a,'FORMAT_INDENT')),_0x3a2770['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x19575a,'FORMAT_INDENT')),_0x3a2770['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x19575a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1493b2=this['editor'],_0x521da8=_0x1493b2['locale'],_0x19ff6a=_0x1493b2['plugins']['get']('TrackChangesEditing');_0x19ff6a['descriptionFactory']['registerDescriptionCallback'](_0x59534e=>{if('formatBlock'!=_0x59534e['type'])return;const {data:_0x28de4b}=_0x59534e;if(!_0x28de4b)return;if('indentBlock'!=_0x28de4b['commandName']&&'outdentBlock'!=_0x28de4b['commandName'])return;const _0x906dc1=_0x59534e['getItems']()[0x0],_0x4f930d=_0x19ff6a['descriptionFactory']['getItemLabel'](_0x906dc1);return'indentBlock'==_0x28de4b['commandName']?{'type':'format','content':o(_0x521da8,'*Indent:*\x20%0',_0x4f930d)}:'outdentBlock'==_0x28de4b['commandName']?{'type':'format','content':o(_0x521da8,'*Outdent:*\x20%0',_0x4f930d)}:void 0x0;});}}class mt extends _0x409a1b{static get['requires'](){return[_0x440fbe];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x409a1b{['afterInit'](){const _0x1e75f4=this['editor'];if(!_0x1e75f4['plugins']['has']('LinkEditing'))return;const _0x4260d4=_0x1e75f4['plugins']['get']('TrackChangesEditing'),_0x5a60a7=_0x1e75f4['commands']['get']('link');_0x4260d4['enableDefaultAttributesIntegration']('link'),_0x4260d4['enableDefaultAttributesIntegration']('unlink');for(const _0x287d2e of _0x5a60a7['manualDecorators'])_0x4260d4['descriptionFactory']['registerAttributeLabel'](_0x287d2e['id'],'link\x20('+_0x287d2e['label']['toLowerCase']()+')');_0x4260d4['descriptionFactory']['registerDescriptionCallback'](_0x584276=>{if('attribute'!=_0x584276['type'])return;const {data:_0x3d0882}=_0x584276;if(!_0x3d0882||'linkHref'!=_0x3d0882['key'])return;const _0x7bc4b7=_0x3d0882['newValue'],_0x2c4f0c=_0x1e75f4['locale'];return{'type':'format','content':null==_0x7bc4b7?o(_0x2c4f0c,'*Remove\x20link*'):o(_0x2c4f0c,'*Set\x20link:*\x20%0','\x22'+_0x7bc4b7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f6560=this['editor'],_0x5e280d=_0x4f6560['locale'];_0x4f6560['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x464d04=>{if('formatInline'!=_0x464d04['type'])return;const {data:_0x3ba844}=_0x464d04;if(_0x3ba844){if('link'==_0x3ba844['commandName']){const _0x237daf=_0x3ba844['commandParams'][0x0];return{'type':'format','content':o(_0x5e280d,'*Set\x20link:*\x20%0','\x22'+_0x237daf+'\x22')};}return'unlink'==_0x3ba844['commandName']?{'type':'format','content':o(_0x5e280d,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x409a1b{['afterInit'](){const _0x45a293=this['editor'],_0x4608b3=_0x45a293['locale'];if(!_0x45a293['plugins']['has']('LegacyListEditing'))return;const _0x5132d0=_0x45a293['plugins']['get']('TrackChangesEditing'),_0x4223dd=_0x45a293['plugins']['has']('LegacyTodoListEditing');function _0x512d89(_0x199070){return()=>{const _0x39f6df=_0x45a293['model']['document']['selection'],_0x44d761=_0x45a293['commands']['get'](_0x199070);if(_0x44d761['value'])return void _0x45a293['execute']('paragraph',{});const _0x5a0a15=_0x199070['slice'](0x0,-0x4),_0xeb4bc=function(_0x147ff6,_0x3459f2,_0x1d18f0){let _0x189c6a=Array['from'](_0x147ff6)['filter'](_0xc08884=>function(_0x11d5bb,_0x4e6cc7){return _0x4e6cc7['checkChild'](_0x11d5bb['parent'],'listItem')&&!_0x4e6cc7['isObject'](_0x11d5bb);}(_0xc08884,_0x1d18f0));_0x189c6a=_0x189c6a['filter'](_0x13ab92=>!_0x13ab92['is']('element','listItem')||_0x13ab92['getAttribute']('listType')!=_0x3459f2);const _0x308c72=new Set();for(const _0x4014cd of _0x189c6a)_0x4014cd['is']('element','listItem')?_0x308c72['add'](Le(_0x4014cd)):_0x308c72['add'](_0x4014cd);return Array['from'](_0x308c72);}(_0x39f6df['getSelectedBlocks'](),_0x5a0a15,_0x45a293['model']['schema']);_0x45a293['model']['change'](()=>{for(const _0x17e536 of _0xeb4bc)_0x5132d0['markBlockFormat'](_0x17e536,{'commandName':_0x199070,'commandParams':[{'forceValue':!_0x44d761['value']}],'formatGroupId':'blockName'},Ee(_0x17e536));});};}function _0xba5396(_0x36a59a){return()=>{const _0x54628c=function(_0x502451){let _0x2ff682=Array['from'](_0x502451);const _0x324ce8=_0x2ff682['findIndex'](_0x704a63=>'listItem'!=_0x704a63['name']);return _0x324ce8>-0x1&&(_0x2ff682=_0x2ff682['slice'](0x0,_0x324ce8)),_0x2ff682;}(_0x45a293['model']['document']['selection']['getSelectedBlocks']()),_0x57868b=_0x45a293['model']['createRange'](_0x45a293['model']['createPositionAt'](_0x54628c[0x0],'before'),_0x45a293['model']['createPositionAt'](_0x54628c[_0x54628c['length']-0x1],'end'));_0x45a293['model']['change'](()=>{_0x5132d0['markBlockFormat'](_0x57868b,{'commandName':_0x36a59a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x397081){const _0xa7a702=new Set();for(const _0x161087 of _0x397081){let _0x17664b=_0x161087['nextSibling'];for(;_0x17664b&&_0x17664b['getAttribute']('listIndent')>_0x161087['getAttribute']('listIndent');)_0xa7a702['add'](_0x17664b),_0x17664b=_0x17664b['nextSibling'];}return Array['from'](_0xa7a702);}(_0x54628c));});};}_0x5132d0['enableCommand']('numberedList',_0x512d89('numberedList')),_0x5132d0['enableCommand']('bulletedList',_0x512d89('bulletedList')),_0x4223dd&&_0x5132d0['enableCommand']('todoList',_0x512d89('todoList')),_0x5132d0['enableCommand']('indentList',_0xba5396('indentList')),_0x5132d0['enableCommand']('outdentList',_0xba5396('outdentList')),_0x4223dd&&_0x5132d0['enableCommand']('checkTodoList',()=>{const _0x68ac8e=_0x45a293['commands']['get']('checkTodoList'),_0x1cabcd=Array['from'](_0x68ac8e['_selectedElements']);_0x1cabcd['filter'](_0x5c0b4d=>_0x5c0b4d['getAttribute']('todoListChecked')!=_0x68ac8e['value']),_0x45a293['model']['change'](()=>{for(const _0x4beb89 of _0x1cabcd)_0x5132d0['markBlockFormat'](_0x4beb89,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x68ac8e['value']}]});});}),_0x5132d0['descriptionFactory']['registerElementLabel']('listItem',_0x9ec4ef=>o(_0x4608b3,'ELEMENT_LIST_ITEM',_0x9ec4ef)),_0x5132d0['descriptionFactory']['registerDescriptionCallback'](_0x473b36=>{if('formatBlock'!=_0x473b36['type']&&'formatInline'!=_0x473b36['type'])return;const {data:_0x1ba918}=_0x473b36;if(_0x1ba918){if('numberedList'==_0x1ba918['commandName']||'bulletedList'==_0x1ba918['commandName']||'todoList'==_0x1ba918['commandName'])switch(_0x1ba918['commandName']['replace']('List','')){case'bulleted':return _0x3df073(o(_0x4608b3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3df073(o(_0x4608b3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3df073(o(_0x4608b3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1ba918['commandName'])return{'type':'format','content':o(_0x4608b3,'*Indent:*\x20%0',o(_0x4608b3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1ba918['commandName'])return{'type':'format','content':o(_0x4608b3,'*Outdent:*\x20%0',o(_0x4608b3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1ba918['commandName'])return _0x1ba918['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4608b3,'*Check\x20item*')}:{'type':'format','content':o(_0x4608b3,'*Uncheck\x20item*')};}function _0x3df073(_0x658f77){return{'type':'format','content':o(_0x4608b3,'*Change\x20to:*\x20%0',_0x658f77)};}});}}function Le(_0x37be19){const _0xc59afe=_0x37be19['getAttribute']('listIndent');if(0x0==_0xc59afe)return _0x37be19;let _0x3f67a0=_0x37be19;for(;_0x37be19['previousSibling']&&_0x37be19['previousSibling']['is']('element','listItem');){const _0x54fbe1=_0x37be19['previousSibling']['getAttribute']('listIndent');if(_0x54fbe1==_0xc59afe)_0x3f67a0=_0x37be19['previousSibling'];else{if(_0x54fbe1<_0xc59afe)break;}_0x37be19=_0x37be19['previousSibling'];}return _0x3f67a0;}function Ee(_0x598d29){const _0x298da3=[];if(_0x598d29['is']('element','listItem')&&_0x598d29['getAttribute']('listIndent')>0x0){let _0x3121c1=_0x598d29['nextSibling'];for(;_0x3121c1&&'listItem'==_0x3121c1['name']&&_0x3121c1['getAttribute']('listIndent')==_0x598d29['getAttribute']('listIndent');)_0x298da3['push'](_0x3121c1),_0x3121c1=_0x3121c1['nextSibling'];}return _0x298da3;}class wt extends _0x409a1b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x47a0f8=this['editor']['config']['get']('list.properties'),_0x3725ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x47a0f8['styles']&&_0x3725ab['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x47a0f8['reversed']&&_0x3725ab['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x47a0f8['startIndex']&&_0x3725ab['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3725ab['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3caa72,_0x236837={}){const _0x4cdf25=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33bf90=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4cdf25['markMultiRangeBlockFormat'](_0x33bf90,{'commandName':'listStyle','commandParams':[{'type':_0x236837['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x851c30,_0x54b8ae={}){const _0x585136=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30fa2a=this['_getSuggestionBlocks'](_0x1956f1=>_0x1956f1['is']('element','listItem')&&'numbered'===_0x1956f1['getAttribute']('listType'));if(_0x30fa2a['length']<0x1)return;const _0x236fc3=_0x30fa2a['map'](_0x36ced3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36ced3,'before'),this['editor']['model']['createPositionAt'](_0x36ced3,0x0)));this['editor']['model']['change'](()=>{_0x585136['markMultiRangeBlockFormat'](_0x236fc3,{'commandName':'listReversed','commandParams':[{'reversed':_0x54b8ae['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x330112,_0x44eb10={}){const _0x3b9d3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x210fc1=this['_getSuggestionBlocks'](_0x20bb3c=>_0x20bb3c['is']('element','listItem')&&'numbered'===_0x20bb3c['getAttribute']('listType'));if(_0x210fc1['length']<0x1)return;const _0x3e6d3b=_0x210fc1['map'](_0x3d94d5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d94d5,'before'),this['editor']['model']['createPositionAt'](_0x3d94d5,0x0)));this['editor']['model']['change'](()=>{_0x3b9d3b['markMultiRangeBlockFormat'](_0x3e6d3b,{'commandName':'listStart','commandParams':[{'startIndex':_0x44eb10['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf797c2){if('formatBlock'!=_0xf797c2['type']&&'formatInline'!=_0xf797c2['type'])return;const _0x544868=this['editor']['locale'],{data:_0x1c6e30}=_0xf797c2;if(!_0x1c6e30)return;let _0x29e1d6,_0xcfe47b;switch(_0x1c6e30['commandName']){case'listStyle':_0x29e1d6='*Change\x20to:*\x20%0',_0xcfe47b={'type':'format','content':o(_0x544868,_0x29e1d6,o(_0x544868,this['_getTranslationKeyForListStyle'](_0x1c6e30['commandParams'][0x0]['type'])))};break;case'listReversed':_0x29e1d6=_0x1c6e30['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xcfe47b={'type':'format','content':o(_0x544868,_0x29e1d6)};break;case'listStart':_0x29e1d6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xcfe47b={'type':'format','content':o(_0x544868,_0x29e1d6,_0x1c6e30['commandParams'][0x0]['startIndex'])};}return _0xcfe47b;}['_getSuggestionBlocksForListStyle'](){const _0x734533=this['editor']['plugins']['get']('LegacyListUtils');let _0x2fd6b8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2fd6b8[0x0]?.['is']('element','listItem')&&_0x2fd6b8['unshift'](..._0x734533['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2fd6b8[_0x2fd6b8['length']-0x1]?.['is']('element','listItem')&&_0x2fd6b8['push'](..._0x734533['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2fd6b8=[...new Set(_0x2fd6b8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2fd6b8=_0x2fd6b8['filter'](_0x420baa=>_0x420baa['is']('element','listItem'))),_0x2fd6b8;}['_getSuggestionBlocks'](_0x57a838){const _0x1b7fb0=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f6cb4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x57a838)['map'](_0xc9c118=>{const _0x4b62dd=this['editor']['model']['createPositionAt'](_0xc9c118,0x0);return[..._0x1b7fb0['getSiblingNodes'](_0x4b62dd,'backward'),..._0x1b7fb0['getSiblingNodes'](_0x4b62dd,'forward')];})['flat']();return _0x3f6cb4=[...new Set(_0x3f6cb4)],_0x3f6cb4;}['_getTranslationKeyForListStyle'](_0x48a235){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x48a235)||'default')['toUpperCase']()+'_LIST_'+_0x48a235['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x409a1b{['afterInit'](){const _0x40f091=this['editor'];if(!_0x40f091['plugins']['has']('MediaEmbedEditing'))return;const _0x3c9125=_0x40f091['plugins']['get']('TrackChangesEditing'),_0x179bff=_0x40f091['locale'];_0x3c9125['enableCommand']('mediaEmbed'),_0x3c9125['descriptionFactory']['registerElementLabel']('media',_0x48293a=>o(_0x179bff,'ELEMENT_MEDIA',_0x48293a));}}class bt extends _0x409a1b{['afterInit'](){const _0x9f4c58=this['editor'];_0x9f4c58['plugins']['has']('MentionEditing')&&_0x9f4c58['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x409a1b{['afterInit'](){const _0x417c31=this['editor'];if(!_0x417c31['plugins']['has']('MergeFieldsEditing'))return;const _0x1e8086=_0x417c31['plugins']['get']('TrackChangesEditing'),_0x4725a4=_0x417c31['locale'];_0x1e8086['enableCommand']('insertMergeField'),_0x1e8086['enableCommand']('insertMergeFieldBlock'),_0x1e8086['enableCommand']('insertMergeFieldImage'),_0x1e8086['descriptionFactory']['registerElementLabel']('mergeField',_0x3335a9=>o(_0x4725a4,'ELEMENT_MERGE_FIELD',_0x3335a9)),_0x1e8086['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x23064f=>o(_0x4725a4,'ELEMENT_MERGE_FIELD',_0x23064f)),_0x1e8086['descriptionFactory']['registerDescriptionCallback'](_0x49c0cf=>{if('insertion'!=_0x49c0cf['type']&&'deletion'!=_0x49c0cf['type'])return;const _0x36be07=_0x49c0cf['getContainedElement']();if(null==_0x36be07)return;const _0x42afa5=_0x417c31['plugins']['get']('MergeFieldsEditing');let _0x17635d;switch(_0x42afa5['getMergeFieldType'](_0x36be07)){case null:return;case'image':{const _0x31d8a7=_0x42afa5['unwrapAffixes'](_0x36be07['getAttribute']('src'));_0x17635d=_0x42afa5['getLabel'](_0x31d8a7)||_0x31d8a7;break;}default:{const _0x459821=_0x36be07['getAttribute']('id');_0x17635d=_0x42afa5['getLabel'](_0x459821)||_0x459821;break;}}return'insertion'==_0x49c0cf['type']?{'type':'insertion','content':o(_0x4725a4,'*Insert:*\x20%0','\x22'+_0x17635d+'\x22\x20'+o(_0x4725a4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4725a4,'*Remove:*\x20%0','\x22'+_0x17635d+'\x22\x20'+o(_0x4725a4,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x409a1b{['afterInit'](){const _0x40c7be=this['editor'],_0x1eb638=_0x40c7be['plugins']['get']('TrackChangesEditing');_0x40c7be['plugins']['has']('MultiLevelList')&&(_0x1eb638['enableDefaultAttributesIntegration']('multiLevelList'),_0x1eb638['descriptionFactory']['registerDescriptionCallback'](_0x496b61=>this['handleDescriptions'](_0x496b61)));}['handleDescriptions'](_0x4a8a7a){const _0x3c7de1=this['editor']['locale'],{data:_0x36560f}=_0x4a8a7a,_0x2555f2={'type':'format','content':''};if(_0x36560f&&'listMarkerStyle'==_0x36560f['key']){if(!_0x36560f['oldValue'])return{'type':'format','content':o(_0x3c7de1,'*Set\x20format:*\x20%0',o(_0x3c7de1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36560f['newValue']+')'};if(!_0x36560f['newValue']){let _0x5062c7=_0x4a8a7a['head'];for(;_0x5062c7;){if(_0x5062c7['data']&&'listType'==_0x5062c7['data']['key']&&_0x5062c7['data']['newValue'])return _0x2555f2;_0x5062c7=_0x5062c7['next'];}return{'type':'format','content':o(_0x3c7de1,'*Remove\x20format:*\x20%0',o(_0x3c7de1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36560f['oldValue']+')'};}}}}class St extends _0x409a1b{['afterInit'](){const _0x51398f=this['editor'];if(!_0x51398f['plugins']['has']('PageBreakEditing'))return;_0x51398f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x496af=_0x51398f['plugins']['get']('TrackChangesEditing'),_0xf58729=_0x51398f['locale'];_0x496af['descriptionFactory']['registerElementLabel']('pageBreak',_0x6ec049=>o(_0xf58729,'ELEMENT_PAGE_BREAK',_0x6ec049));}}class It extends _0x409a1b{['afterInit'](){const _0x44a981=this['editor'];if(!_0x44a981['plugins']['has']('Paragraph'))return;const _0x199fa2=_0x44a981['locale'],_0x110d1a=_0x44a981['plugins']['get']('TrackChangesEditing');_0x110d1a['descriptionFactory']['registerElementLabel']('paragraph',_0x26953c=>o(_0x199fa2,'ELEMENT_PARAGRAPH',_0x26953c)),_0x110d1a['enableDefaultAttributesIntegration']('paragraph'),_0x110d1a['enableCommand']('insertParagraph');const _0x570783=_0x110d1a['descriptionFactory'];_0x570783['registerDescriptionCallback'](_0x2bf4d8=>{if('insertion'!==_0x2bf4d8['type'])return;const {start:_0x4b76dc,end:_0x4b9f68}=_0x2bf4d8['getFirstRange']();if(!_0x4b76dc['isTouching'](_0x4b9f68)||!_0x4b76dc['nodeAfter'])return;const _0x1f8a3e=_0x44a981['model']['schema'],_0x391544=_0x4b76dc['nodeAfter'];return _0x1f8a3e['isBlock'](_0x391544)&&!_0x1f8a3e['isLimit'](_0x391544)&&_0x1f8a3e['checkChild'](_0x391544,'$text')?{'type':'insertion','content':o(_0x199fa2,'*Insert:*\x20%0',_0x570783['getItemLabel'](_0x391544,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9fbe70=this['editor'],_0x6bc947=_0x9fbe70['locale'];_0x9fbe70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55e746=>{if('formatBlock'!=_0x55e746['type'])return;const {data:_0x259835}=_0x55e746;return _0x259835&&'paragraph'==_0x259835['commandName']?{'type':'format','content':o(_0x6bc947,'*Change\x20to:*\x20%0',o(_0x6bc947,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x409a1b{['afterInit'](){const _0x3ab6d1=this['editor'];_0x3ab6d1['commands']['get']('replaceSource')&&_0x3ab6d1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x409a1b{['afterInit'](){const _0x3daf73=this['editor'];if(!_0x3daf73['plugins']['has']('RemoveFormatEditing'))return;_0x3daf73['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c695e=this['editor'];_0x3c695e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb804b3=>{if('formatBlock'!=_0xb804b3['type']&&'formatInline'!=_0xb804b3['type'])return;const {data:_0x19eba6}=_0xb804b3;return _0x19eba6&&'removeFormat'==_0x19eba6['commandName']?{'type':'format','content':o(_0x3c695e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x409a1b{['afterInit'](){const _0x190218=this['editor'];if(!_0x190218['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x10567b=_0x190218['plugins']['get']('TrackChangesEditing');_0x10567b['enableCommand']('goToPreviousRestrictedEditingException'),_0x10567b['enableCommand']('goToNextRestrictedEditingException');const _0x2ed3d9=_0x190218['plugins']['get']('RestrictedEditingModeEditing');_0x2ed3d9['enableCommand']('trackChanges'),_0x2ed3d9['enableCommand']('acceptSuggestion'),_0x2ed3d9['enableCommand']('discardSuggestion'),_0x2ed3d9['enableCommand']('acceptAllSuggestions'),_0x2ed3d9['enableCommand']('discardAllSuggestions'),_0x2ed3d9['enableCommand']('acceptSelectedSuggestions'),_0x2ed3d9['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x409a1b{['afterInit'](){const _0x4a990c=this['editor'];if(!_0x4a990c['plugins']['has']('ShiftEnter'))return;const _0x2db99f=_0x4a990c['plugins']['get']('TrackChangesEditing');_0x2db99f['enableCommand']('shiftEnter'),_0x2db99f['descriptionFactory']['registerElementLabel']('softBreak',_0x1813bc=>o(_0x4a990c['locale'],'ELEMENT_LINE_BREAK',_0x1813bc));}}function on(_0x508a40,_0x4935fe,_0x1f2fa2){const _0x69cbcb=[];for(const _0x4009cd of _0x4935fe['getItems']())_0x4009cd['hasAttribute'](_0x508a40)&&_0x69cbcb['push'](_0x1f2fa2['createRangeOn'](_0x4009cd));return _0x69cbcb;}class $t extends _0x409a1b{['afterInit'](){const _0x182fb9=this['editor'],_0x25e537=_0x182fb9['plugins']['get']('TrackChangesEditing');_0x182fb9['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x25e537['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2b896b=this['editor'],_0x55db23=_0x2b896b['model'],_0xf57d29=_0x2b896b['locale'],_0x57bead=_0x2b896b['plugins']['get']('TrackChangesEditing'),_0x4d9e0b='restrictedEditingException',_0x1853b5=_0x2b896b['commands']['get'](_0x4d9e0b);_0x57bead['enableCommand'](_0x4d9e0b,(_0x5f31aa,_0x194da5={})=>{const _0x1f699b=_0x55db23['document']['selection'];if(_0x1f699b['isCollapsed'])return void _0x5f31aa(_0x194da5);const _0x19aa37=void 0x0!==_0x194da5['forceValue']?_0x194da5['forceValue']:!_0x1853b5['value'];_0x55db23['change'](()=>{const _0x4b20eb=Array['from'](_0x1f699b['getRanges']());for(const _0x309969 of _0x4b20eb){const _0x3e4411=_0x19aa37?[_0x309969]:on(_0x4d9e0b,_0x309969,_0x55db23);for(const _0x48fb02 of _0x3e4411)_0x57bead['markInlineFormat'](_0x48fb02,{'commandName':_0x4d9e0b,'commandParams':[{'forceValue':_0x19aa37}]});}});}),_0x57bead['descriptionFactory']['registerDescriptionCallback'](_0x404f09=>{if('formatBlock'!=_0x404f09['type']&&'formatInline'!=_0x404f09['type'])return;const {data:_0x2a5777}=_0x404f09;return _0x2a5777&&_0x2a5777['commandName']==_0x4d9e0b?_0x2a5777['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf57d29,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xf57d29,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x22d8dc=this['editor'],_0x4cc73a=_0x22d8dc['locale'],_0x19402e=_0x22d8dc['plugins']['get']('TrackChangesEditing'),_0x4e6a0d='restrictedEditingExceptionBlock',_0x4e28af=this['editor']['commands']['get'](_0x4e6a0d);_0x19402e['enableCommand'](_0x4e6a0d,(_0x48dac0,_0x1530fd={})=>{const _0x52de71=this['editor']['model']['document']['selection'],_0x1682ed=_0x1530fd&&void 0x0!==_0x1530fd['forceValue']?_0x1530fd['forceValue']:!_0x4e28af['value'];let _0x308c9a=[];if(_0x1682ed){const _0x4030b7=Array['from'](_0x52de71['getSelectedBlocks']())['filter'](_0x16de8b=>function(_0x21a070){return!!_0x21a070['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x16de8b)||function(_0xc23979,_0x2d8e61){const _0x5cb403=_0x2d8e61['createContext'](_0xc23979['parent']);if(!_0x2d8e61['checkChild'](_0x5cb403,'restrictedEditingException'))return!0x1;if(!_0x2d8e61['checkChild'](_0x5cb403['push']('restrictedEditingException'),_0xc23979))return!0x1;return!0x0;}(_0x16de8b,this['editor']['model']['schema']));_0x308c9a=to(_0x4030b7,_0x22d8dc['model']);}else{const _0x308dbd=Array['from'](_0x52de71['getSelectedBlocks']())['map'](_0x21075a=>function(_0x379fc9){let _0x334191=_0x379fc9;for(;_0x334191['parent'];){if('restrictedEditingException'==_0x334191['parent']['name'])return _0x334191;_0x334191=_0x334191['parent'];}return null;}(_0x21075a))['filter'](_0x53c0a9=>!!_0x53c0a9);_0x308c9a=to(_0x308dbd,_0x22d8dc['model']);}_0x22d8dc['model']['change'](()=>{for(const _0x18aca3 of _0x308c9a)_0x19402e['markBlockFormat'](_0x18aca3,{'commandName':_0x4e6a0d,'commandParams':[{'forceValue':_0x1682ed}]});});}),_0x19402e['descriptionFactory']['registerDescriptionCallback'](_0x233e91=>{const {data:_0x23e138}=_0x233e91;if(_0x23e138&&_0x23e138['commandName']==_0x4e6a0d)return _0x23e138['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cc73a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4cc73a,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x409a1b{['afterInit'](){const _0x45aa90=this['editor'];if(!_0x45aa90['plugins']['has']('Style')||!_0x45aa90['plugins']['has']('DataSchema'))return;const _0x50bceb=_0x45aa90['plugins']['get']('TrackChangesEditing'),_0x335111=_0x45aa90['locale'],_0x1135bb=_0x45aa90['config']['get']('style')||{},_0x30dff3=_0x45aa90['plugins']['get']('GeneralHtmlSupport'),_0x4bcf14=_0x45aa90['plugins']['get']('StyleUtils')['normalizeConfig'](_0x45aa90['plugins']['get']('DataSchema'),_0x1135bb['definitions']);_0x50bceb['enableDefaultAttributesIntegration']('style');const _0x19237c=new Set();for(const _0x387bbd of _0x4bcf14['block']){const _0x4526d6=_0x30dff3['getGhsAttributeNameForElement'](_0x387bbd['element']);_0x19237c['add'](_0x4526d6);}const _0x2f6e8f=new Set();for(const _0x5d9b08 of _0x4bcf14['inline']){const _0x526814=_0x30dff3['getGhsAttributeNameForElement'](_0x5d9b08['element']);_0x2f6e8f['add'](_0x526814);for(const _0x52c766 of _0x5d9b08['ghsAttributes'])_0x2f6e8f['add'](_0x52c766);}for(const _0x1deb2b of _0x19237c)_0x50bceb['descriptionFactory']['registerAttributeLabel'](_0x1deb2b,o(_0x335111,'FORMAT_STYLE'));for(const _0x2d59d4 of _0x2f6e8f)_0x50bceb['descriptionFactory']['registerAttributeLabel'](_0x2d59d4,o(_0x335111,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf9e409=this['editor'],_0x555e48=_0xf9e409['locale'];_0xf9e409['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x322863=>{if('formatBlock'!=_0x322863['type']&&'formatInline'!=_0x322863['type'])return;const {data:_0x55c9ce}=_0x322863;return _0x55c9ce&&'style'===_0x55c9ce['commandName']?_0x55c9ce['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x555e48,'*Set\x20format:*\x20%0',_0x55c9ce['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x555e48,'*Remove\x20format:*\x20%0',_0x55c9ce['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x409a1b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x200478){super(_0x200478),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x403ef6=this['editor'],_0x41bcd0=_0x403ef6['model']['document']['selection'];if(!_0x403ef6['plugins']['has']('TableEditing'))return;const _0x1796c8=_0x403ef6['locale'],_0x5113d6=_0x403ef6['plugins']['get']('TrackChangesEditing'),_0x440703=_0x403ef6['plugins']['get']('TableUtils');_0x5113d6['descriptionFactory']['registerElementLabel']('table',_0x40a92e=>o(_0x1796c8,'ELEMENT_TABLE',_0x40a92e)),this['_setupColumnsRowsFixing'](),_0x5113d6['enableCommand']('insertTable'),_0x5113d6['enableCommand']('selectTableRow'),_0x5113d6['enableCommand']('selectTableColumn');for(const _0x23423c of['insertTableRowAbove','insertTableRowBelow']){const _0x42df62=_0x403ef6['commands']['get'](_0x23423c);_0x5113d6['enableCommand'](_0x23423c,_0x456fbf=>{_0x403ef6['model']['change'](_0x175979=>{_0x456fbf();const _0x28434a='above'===_0x42df62['order'],_0x202d9a=_0x440703['getSelectionAffectedTableCells'](_0x41bcd0),_0x406cb4=_0x440703['getRowIndexes'](_0x202d9a),_0x324f93=_0x28434a?_0x406cb4['first']-0x1:_0x406cb4['last']+0x1,_0x5496cb=_0x202d9a[0x0]['findAncestor']('table'),_0x18c729=_0x440703['createTableWalker'](_0x5496cb,{'startRow':_0x324f93,'endRow':_0x324f93}),_0x3304d2=Array['from'](_0x18c729)['map'](_0x493a87=>_0x175979['createRangeOn'](_0x493a87['cell']));_0x5113d6['markMultiRangeInsertion'](_0x3304d2,'tableRow');});});}for(const _0x4487ab of['insertTableColumnLeft','insertTableColumnRight']){const _0x537276=_0x403ef6['commands']['get'](_0x4487ab);_0x5113d6['enableCommand'](_0x4487ab,_0x53d34a=>{_0x403ef6['model']['change'](_0x103eab=>{_0x53d34a();const _0x126fb9='left'===_0x537276['order'],_0x21134d=_0x440703['getSelectionAffectedTableCells'](_0x41bcd0),_0x213177=_0x440703['getColumnIndexes'](_0x21134d),_0x2f92dd=_0x126fb9?_0x213177['first']-0x1:_0x213177['last']+0x1,_0x528a3c=_0x21134d[0x0]['findAncestor']('table'),_0x33bdfa=_0x440703['createTableWalker'](_0x528a3c,{'startRow':0x0,'column':_0x2f92dd,'includeAllSlots':!0x1}),_0x43d9e6=Array['from'](_0x33bdfa)['map'](_0x244f72=>_0x103eab['createRangeOn'](_0x244f72['cell']));_0x5113d6['markMultiRangeInsertion'](_0x43d9e6,'tableColumn');});});}for(const _0x47b37d of['removeTableRow','removeTableColumn']){const _0x1258df=_0x47b37d['substr'](0xb),_0x5b62d5=_0x1258df['toLowerCase'](),_0x23d0e3=_0x5b62d5['substr'](0x0,0x3)+'span',_0x4689d4='table'+_0x1258df,_0x334c7b='min'+_0x1258df,_0x20e34b='max'+_0x1258df;_0x5113d6['enableCommand'](_0x47b37d,()=>{_0x403ef6['model']['change'](_0x3994bf=>{const _0x534640=_0x440703['getSelectionAffectedTableCells'](_0x41bcd0),_0x24b0f3=_0x534640[0x0]['findAncestor']('table');let _0x481fef;if('removeTableRow'==_0x47b37d){const _0x22e675=_0x440703['getRowIndexes'](_0x534640);_0x481fef={'startRow':_0x22e675['first'],'endRow':_0x22e675['last'],'includeAllSlots':!0x0};}else{const _0x52e458=_0x440703['getColumnIndexes'](_0x534640);_0x481fef={'startColumn':_0x52e458['first'],'endColumn':_0x52e458['last'],'includeAllSlots':!0x0};}const _0x2014a5=_0x440703['createTableWalker'](_0x24b0f3,_0x481fef),_0x2b5160=Array['from'](_0x2014a5)['map'](({cell:_0x5adf08})=>_0x5adf08),_0x3ccab3=_e(_0x2b5160['filter'](_0x575207=>_0x575207['hasAttribute'](_0x23d0e3))),_0x1b0962=_e(_0x2b5160['filter'](_0x539023=>!_0x539023['hasAttribute'](_0x23d0e3)))['map'](_0x3f7b83=>_0x3994bf['createRangeOn'](_0x3f7b83)),_0x195e23=_0x5113d6['markMultiRangeDeletion'](_0x1b0962,_0x4689d4);if(_0x195e23&&('tableRow'==_0x195e23['subType']||'tableColumn'==_0x195e23['subType'])){const _0xa76e1e=this['_getSuggestionCoords'](_0x195e23);for(const _0xa660d6 of _0x3ccab3){const _0x28ef8f=_0x3994bf['createRangeOn'](_0xa660d6),_0x212195=_0x440703['getCellLocation'](_0xa660d6),_0x536608=_0xa660d6['getAttribute'](_0x23d0e3)-0x1,_0xe54f2b=_0xa76e1e[_0x334c7b],_0x38fa54=_0xa76e1e[_0x20e34b];_0xe54f2b<=_0x212195[_0x5b62d5]&&_0x212195[_0x5b62d5]+_0x536608<=_0x38fa54&&_0x195e23['addRange'](_0x28ef8f);}}});});}function _0x62e1b3(_0x3d6ea2){const _0x1037c7=Array['from'](_0x41bcd0['getRanges']())['map'](_0x153515=>_0xdb3ad2['fromRange'](_0x153515));_0x403ef6['model']['change'](_0x14dd63=>{const _0x632aa9=_0x14dd63['batch'];_0x3d6ea2=_0x3d6ea2['filter'](_0x25f0d8=>'$graveyard'!=_0x25f0d8['root']['rootName']),_0x14dd63['setSelection'](_0x3d6ea2),_0x403ef6['commands']['get']('removeTableRow')['refresh'](),_0x403ef6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x403ef6['model']['enqueueChange'](()=>{_0x403ef6['model']['enqueueChange'](_0x632aa9,_0x14fb46=>{const _0x38fe5b=_0x1037c7['filter'](_0x1aee23=>'$graveyard'!=_0x1aee23['root']['rootName']);_0x38fe5b['length']>0x0&&_0x14fb46['setSelection'](_0x38fe5b);for(const _0xec6277 of _0x1037c7)_0xec6277['detach']();});});});}function _0x1fe139(_0x43df93){_0x403ef6['model']['change'](_0x3da256=>{const _0x498121=Array['from'](_0x41bcd0['getRanges']())['map'](_0x302ed4=>_0xdb3ad2['fromRange'](_0x302ed4)),_0x3b93da=[];for(const _0x4c6470 of _0x43df93)for(const _0x29d560 of _0x4c6470['getItems']({'shallow':!0x0}))_0x3b93da['push'](_0x29d560);for(const _0x42b626 of _0x3b93da)'$graveyard'!=_0x42b626['root']['rootName']&&(_0x3da256['setSelection'](_0x3da256['createPositionAt'](_0x42b626,0x0)),_0x403ef6['commands']['get']('removeTableColumn')['refresh'](),_0x403ef6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1ac91d=_0x498121['filter'](_0x3b8f49=>'$graveyard'!=_0x3b8f49['root']['rootName']);_0x1ac91d['length']>0x0&&_0x3da256['setSelection'](_0x1ac91d);for(const _0x217933 of _0x498121)_0x217933['detach']();});}function _0x40f768(_0x57d7e6,_0x3dbe88){return _0x3dbe88['every'](_0x394569=>_0x57d7e6['some'](_0x3040ac=>_0x3040ac['end']['isEqual'](_0x394569['start'])||_0x394569['end']['isEqual'](_0x3040ac['start'])));}function _0x536580(_0x2b36a5,_0x41d0b4){return!_0x2b36a5['some'](_0xf69015=>_0x41d0b4['some'](_0x2e4356=>_0xf69015['isIntersecting'](_0x2e4356)))&&_0x2b36a5['some'](_0x578c92=>_0x41d0b4['some'](_0x55db9b=>_0x578c92['end']['isTouching'](_0x55db9b['start'])));}_0x5113d6['descriptionFactory']['registerDescriptionCallback'](_0x536b70=>{if('insertion'!=_0x536b70['type']&&'deletion'!=_0x536b70['type'])return;const _0x3d0515=_0x536b70['getContainedElement']();if(null!=_0x3d0515&&_0x3d0515['is']('element','table')){if('insertion'==_0x536b70['type']){const _0x2293b7=_0x536b70['getItems']()['filter'](_0x2306be=>_0x2306be['is']('$textProxy'))['map'](_0x44c99f=>_0x44c99f['data']);if(_0x2293b7['length'])return{'type':'insertion','content':o(_0x1796c8,'*Insert:*\x20%0',o(_0x1796c8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2293b7['join']('\x20')+'\x22'))};}if('deletion'==_0x536b70['type']){const _0x5e57f6=_0x536b70['getItems']()['filter'](_0x21b4ee=>_0x21b4ee['is']('$textProxy'))['map'](_0x5b1b8c=>_0x5b1b8c['data']);if(_0x5e57f6['length'])return{'type':'deletion','content':o(_0x1796c8,'*Remove:*\x20%0',o(_0x1796c8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e57f6['join']('\x20')+'\x22'))};}}}),_0x5113d6['descriptionFactory']['registerDescriptionCallback'](_0x1c313e=>{if('tableRow'==_0x1c313e['subType']){const _0x7b0c2c=_0x1c313e['getItems']()['filter'](_0x47b6bc=>_0x47b6bc['is']('$textProxy'))['map'](_0x4c96ce=>_0x4c96ce['data']),_0x2024ee=this['_getSuggestionCoords'](_0x1c313e),_0x59f97c=_0x2024ee['maxRow']-_0x2024ee['minRow']+0x1;if('insertion'==_0x1c313e['type'])return _0x7b0c2c['length']?{'type':'insertion','content':o(_0x1796c8,'*Insert:*\x20%0',o(_0x1796c8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x59f97c,'\x22'+_0x7b0c2c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1796c8,'*Insert:*\x20%0',o(_0x1796c8,'ELEMENT_TABLE_ROW',_0x59f97c))};if('deletion'==_0x1c313e['type'])return _0x7b0c2c['length']?{'type':'deletion','content':o(_0x1796c8,'*Remove:*\x20%0',o(_0x1796c8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x59f97c,'\x22'+_0x7b0c2c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1796c8,'*Remove:*\x20%0',o(_0x1796c8,'ELEMENT_TABLE_ROW',_0x59f97c))};}if('tableColumn'==_0x1c313e['subType']){const _0x18fd07=_0x1c313e['getItems']()['filter'](_0x35b33d=>_0x35b33d['is']('$textProxy'))['map'](_0x47cb0c=>_0x47cb0c['data']),_0x28ca7f=this['_getSuggestionCoords'](_0x1c313e),_0x35871a=_0x28ca7f['maxColumn']-_0x28ca7f['minColumn']+0x1;if('insertion'==_0x1c313e['type'])return _0x18fd07['length']?{'type':'insertion','content':o(_0x1796c8,'*Insert:*\x20%0',o(_0x1796c8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35871a,'\x22'+_0x18fd07['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1796c8,'*Insert:*\x20%0',o(_0x1796c8,'ELEMENT_TABLE_COLUMN',_0x35871a))};if('deletion'==_0x1c313e['type'])return _0x18fd07['length']?{'type':'deletion','content':o(_0x1796c8,'*Remove:*\x20%0',o(_0x1796c8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35871a,'\x22'+_0x18fd07['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1796c8,'*Remove:*\x20%0',o(_0x1796c8,'ELEMENT_TABLE_COLUMN',_0x35871a))};}}),_0x5113d6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x62e1b3),_0x5113d6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x62e1b3),_0x5113d6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1fe139),_0x5113d6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1fe139),_0x5113d6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x40f768),_0x5113d6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x40f768),_0x5113d6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x536580),_0x5113d6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x536580);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3fe3e1=this['editor'],_0x40cf33=_0x3fe3e1['model']['document']['selection'];return(_0x3cde95,_0x3b2455)=>{_0x3fe3e1['model']['change'](_0xf24ed0=>{const {commandName:_0xa1abcd,commandParams:_0x489888}=_0x3b2455;let _0x2e5005=_0x3cde95[0x0]['end']['nodeBefore'];_0x489888&&_0x489888[0x0]&&!0x1===_0x489888[0x0]['forceValue']&&(_0x2e5005=_0x3cde95[0x0]['start']['nodeAfter']);const _0x36807f=_0xf24ed0['createRangeIn'](_0x2e5005);if('$graveyard'==_0x36807f['root']['rootName'])return;const _0x2e3268=Array['from'](_0x40cf33['getRanges']())['map'](_0x15614e=>_0xdb3ad2['fromRange'](_0x15614e));_0xf24ed0['setSelection'](_0x36807f),_0x3fe3e1['commands']['get'](_0xa1abcd)['refresh'](),_0x489888['push']({'forceDefaultExecution':!0x0}),_0x3fe3e1['execute'](_0xa1abcd,..._0x489888);const _0x3318a2=_0x2e3268['filter'](_0x84a96f=>'$graveyard'!=_0x84a96f['root']['rootName']);_0x3318a2['length']>0x0&&_0xf24ed0['setSelection'](_0x3318a2);for(const _0x35b333 of _0x2e3268)_0x35b333['detach']();});};}['_getCoordsForCells'](_0x3eb2eb){const _0x5faaf7=this['editor']['plugins']['get']('TableUtils');let _0x49b877=Number['MAX_SAFE_INTEGER'],_0x5623a3=Number['MIN_SAFE_INTEGER'],_0x5daefa=Number['MAX_SAFE_INTEGER'],_0x572aaf=Number['MIN_SAFE_INTEGER'];for(const _0x463908 of _0x3eb2eb){if('$graveyard'==_0x463908['root']['rootName'])continue;const {row:_0x32c687,column:_0xb12e22}=_0x5faaf7['getCellLocation'](_0x463908),_0x1ad23a=_0x463908['hasAttribute']('rowspan')?_0x463908['getAttribute']('rowspan')-0x1:0x0,_0x33703d=_0x463908['hasAttribute']('colspan')?_0x463908['getAttribute']('colspan')-0x1:0x0;_0x49b877=_0x32c687<_0x49b877?_0x32c687:_0x49b877,_0x5623a3=_0x32c687+_0x1ad23a>_0x5623a3?_0x32c687+_0x1ad23a:_0x5623a3,_0x5daefa=_0xb12e22<_0x5daefa?_0xb12e22:_0x5daefa,_0x572aaf=_0xb12e22+_0x33703d>_0x572aaf?_0xb12e22+_0x33703d:_0x572aaf;}return{'minRow':_0x49b877,'maxRow':_0x5623a3,'minColumn':_0x5daefa,'maxColumn':_0x572aaf};}['_setupColumnsRowsFixing'](){const _0x559079=this['editor'],_0x9e0a42=_0x559079['plugins']['get']('TrackChangesEditing'),_0x25128b=_0x559079['plugins']['get']('TableUtils');_0x559079['model']['document']['on']('change:data',()=>{const _0x4dd788=Array['from'](_0x559079['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34e654,data:_0x51d9b9}of _0x4dd788){const {group:_0x5b6c3e,id:_0x367e4b,subType:_0x16cef5}=_0x9e0a42['_splitMarkerName'](_0x34e654);if('suggestion'!=_0x5b6c3e)continue;if(null!=_0x51d9b9['oldRange'])continue;const _0x243d2e=_0x9e0a42['getSuggestion'](_0x367e4b);this['_tablePostFixingSubtypes']['includes'](_0x16cef5)&&this['_tableSuggestions']['add'](_0x243d2e);}},{'priority':'low'});const _0x3cd014=(_0x2ea4bd,_0xfea78e)=>{let _0x23b233=!0x1;const _0xa38398=_0xfea78e['createRangeOn'](_0x2ea4bd),_0x488323=_0x2ea4bd['findAncestor']('table'),_0x2a21bd=_0x25128b['getCellLocation'](_0x2ea4bd);for(const _0x26c0f0 of this['_tableSuggestions']){const _0x193c05=_0x26c0f0['subType'],_0x43324f=_0x193c05['startsWith']('tablePaste'),_0x17e26c=_0x193c05['substr'](_0x43324f?0xa:0x5),_0x18314c=_0x17e26c['toLowerCase'](),_0x1fb10c=_0x18314c['substr'](0x0,0x3)+'span',_0x4b1e7b='min'+_0x17e26c,_0x5c63cc='max'+_0x17e26c;if(!_0x26c0f0['isInContent'])continue;if(_0x488323!=_0x26c0f0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x26c0f0['isIntersectingWithRange'](_0xa38398))continue;const _0x10435c=_0x2ea4bd['hasAttribute'](_0x1fb10c)?_0x2ea4bd['getAttribute'](_0x1fb10c)-0x1:0x0,_0x531e0b=this['_getSuggestionCoords'](_0x26c0f0),_0x165b23=_0x531e0b[_0x4b1e7b],_0x45e7ef=_0x531e0b[_0x5c63cc];_0x165b23<=_0x2a21bd[_0x18314c]&&_0x2a21bd[_0x18314c]+_0x10435c<=_0x45e7ef&&(_0x26c0f0['addRange'](_0xa38398),_0x23b233=!0x0);}return _0x23b233;};_0x559079['model']['document']['registerPostFixer'](_0x1deccd=>{let _0x91ce3=!0x1;for(const _0x3b49bf of _0x559079['model']['document']['differ']['getChanges']())if('insert'==_0x3b49bf['type']){if('tableRow'==_0x3b49bf['name']){for(const _0x53a85d of _0x3b49bf['position']['nodeAfter']['getChildren']())_0x91ce3=_0x91ce3||_0x3cd014(_0x53a85d,_0x1deccd);}else'tableCell'==_0x3b49bf['name']&&(_0x91ce3=_0x91ce3||_0x3cd014(_0x3b49bf['position']['nodeAfter'],_0x1deccd));}return _0x91ce3;});}['_getSuggestionCoords'](_0xbbac7f){return this['_getCoordsForCells'](_0xbbac7f['getRanges']()['map'](_0x18a5f6=>_0x18a5f6['start']['nodeAfter']));}}function _e(_0x561e0a){return Array['from'](new Set(_0x561e0a)['values']());}class Bt extends _0x409a1b{static get['requires'](){return[Dt];}['afterInit'](){const _0x481022=this['editor'],_0x203797=_0x481022['model']['document']['selection'],_0x4dc64a=_0x481022['locale'];if(!_0x481022['plugins']['has']('TableEditing'))return;const _0x192ceb=_0x481022['plugins']['get']('TrackChangesEditing'),_0x11dc6e=_0x481022['plugins']['get']('TableUtils'),_0x4b701b=_0x481022['plugins']['get'](Dt);_0x4b701b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x192ceb['enableCommand']('mergeTableCells',()=>{const _0x570fe8=_0x11dc6e['getSelectionAffectedTableCells'](_0x481022['model']['document']['selection']);_0x481022['model']['change'](()=>{_0x192ceb['markMultiRangeBlockFormat'](_0x570fe8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x481022['commands']['get']('mergeTableCells')['on']('execute',(_0x33cc6d,_0x1ccd64)=>{_0x481022['commands']['get']('trackChanges')['value']&&(_0x1ccd64['length']>0x0&&_0x1ccd64[_0x1ccd64['length']-0x1]&&_0x1ccd64[_0x1ccd64['length']-0x1]['forceDefaultExecution']||_0x192ceb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x33cc6d['stop']());},{'priority':'highest'});for(const _0x14c630 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x31e5e5=_0x481022['commands']['get'](_0x14c630);_0x192ceb['enableCommand'](_0x14c630,()=>{const _0x369482=_0x481022['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4b21a8=>_0x4b21a8['is']('element','tableCell')),_0x5221ae=_0x31e5e5['value'];_0x481022['model']['change'](()=>{_0x192ceb['markMultiRangeBlockFormat']([_0x369482,_0x5221ae],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x10b90e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x61f9b3=_0x481022['commands']['get'](_0x10b90e);_0x192ceb['enableCommand'](_0x10b90e,()=>{const _0x3d08aa=_0x11dc6e['getSelectionAffectedTableCells'](_0x481022['model']['document']['selection'])[0x0],_0x5193a4=_0x3d08aa['findAncestor']('table'),{column:_0x59497b,row:_0x4c3d1d}=_0x11dc6e['getCellLocation'](_0x3d08aa);let _0x1b040f=[];if('horizontally'==_0x61f9b3['direction']){const _0x3a9fb2=_0x11dc6e['createTableWalker'](_0x5193a4,{'startRow':_0x4c3d1d,'endRow':_0x4c3d1d,'includeAllSlots':!0x0});_0x1b040f=Array['from'](_0x3a9fb2)['map'](_0x5f4a24=>_0x5f4a24['cell']);}else{const _0x49f833=_0x11dc6e['createTableWalker'](_0x5193a4,{'column':_0x59497b,'includeAllSlots':!0x0});_0x1b040f=Array['from'](_0x49f833)['map'](_0x113edb=>_0x113edb['cell']);}_0x481022['model']['change'](_0x516ab1=>{_0x192ceb['markBlockFormat'](_0x516ab1['createRangeOn'](_0x3d08aa),{'commandName':_0x10b90e,'commandParams':[]},_0x1b040f,_0x10b90e);});});}_0x192ceb['descriptionFactory']['registerDescriptionCallback'](_0x5b897f=>{if('formatBlock'!=_0x5b897f['type']&&'formatInline'!=_0x5b897f['type'])return;const {data:_0x2bae5e}=_0x5b897f;return _0x2bae5e&&'mergeTableCells'==_0x2bae5e['commandName']?{'type':'format','content':o(_0x4dc64a,'*Merge\x20cells*')}:void 0x0;}),_0x192ceb['descriptionFactory']['registerDescriptionCallback'](_0x3cf92c=>{if('formatBlock'!=_0x3cf92c['type']&&'formatInline'!=_0x3cf92c['type'])return;const {data:_0x197576}=_0x3cf92c;return _0x197576?'splitTableCellVertically'==_0x197576['commandName']?{'type':'format','content':o(_0x4dc64a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x197576['commandName']?{'type':'format','content':o(_0x4dc64a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1e49b5=_0x4b701b['_acceptFormatSuggestionCallbackFactory']();for(const _0x2c2b27 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x192ceb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c2b27,'accept',_0x1e49b5);for(const _0x1e94ec of['splitTableCellVertically','splitTableCellHorizontally'])_0x192ceb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e94ec,'accept',_0x1e49b5);_0x192ceb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1bb034=>{_0x481022['model']['change'](_0x1c6366=>{const _0x433c05=Array['from'](_0x203797['getRanges']())['map'](_0x2c98e3=>_0xdb3ad2['fromRange'](_0x2c98e3));_0x1c6366['setSelection'](_0x1bb034),_0x481022['commands']['get']('mergeTableCells')['refresh'](),_0x481022['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x56fda2=_0x433c05['filter'](_0x3117a7=>'$graveyard'!=_0x3117a7['root']['rootName']);_0x56fda2['length']>0x0&&_0x1c6366['setSelection'](_0x56fda2);for(const _0x433c61 of _0x433c05)_0x433c61['detach']();});});for(const _0x96e09f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x18a205=_0x481022['commands']['get'](_0x96e09f);_0x18a205['on']('set:isEnabled',(_0x2e5ae1,_0x584701,_0x2504b2)=>{if(_0x2504b2){const _0xb80d40=_0x481022['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x27c50a=>_0x27c50a['is']('element','tableCell'));this['_areMergableCells'](_0x18a205['value'],_0xb80d40)||(_0x2e5ae1['return']=!0x1,_0x2e5ae1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x571b0c=this['editor']['commands']['get']('mergeTableCells'),_0x30a8a3=this['editor']['plugins']['get']('TableUtils');if(!_0x571b0c['isEnabled'])return!0x1;const _0x226915=_0x30a8a3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d8c34 of _0x226915)for(const _0x21017 of _0x226915)if(_0x2d8c34!=_0x21017&&!this['_areMergableCells'](_0x2d8c34,_0x21017))return!0x1;return!0x0;}['_areMergableCells'](_0x3b2174,_0x22672b){const _0x19337e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58cd02=this['editor']['model']['createRangeOn'](_0x3b2174),_0x4c5913=this['editor']['model']['createRangeOn'](_0x22672b),_0x398cbb=new Set(),_0x17cb56=new Set();for(const _0x54b08c of _0x19337e['getSuggestions']())if(('insertion'==_0x54b08c['type']||'deletion'==_0x54b08c['type']||'mergeTableCells'==_0x54b08c['subType'])&&_0x54b08c['isInContent']){for(const _0x353fbf of _0x54b08c['getRanges']())_0x353fbf['containsRange'](_0x58cd02,!0x0)&&_0x398cbb['add'](_0x54b08c['type']+':'+_0x54b08c['author']['id']),_0x353fbf['containsRange'](_0x4c5913,!0x0)&&_0x17cb56['add'](_0x54b08c['type']+':'+_0x54b08c['author']['id']);}if(_0x398cbb['size']!=_0x17cb56['size'])return!0x1;for(const _0x117905 of _0x398cbb)if(!_0x17cb56['has'](_0x117905))return!0x1;return!0x0;}}class Ot extends _0x409a1b{static get['requires'](){return[Dt];}['afterInit'](){const _0x188bd9=this['editor'];if(!_0x188bd9['plugins']['has']('TableEditing'))return;const _0x1597b2=_0x188bd9['locale'],_0x4d6f6e=_0x188bd9['plugins']['get']('TrackChangesEditing');_0x4d6f6e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4d6f6e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4d6f6e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1597b2,'FORMAT_HEADER_ROW')),_0x4d6f6e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1597b2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5be682=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ea524=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x5be682['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1ea524),_0x5be682['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1ea524),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x49380e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x161b0a=this['editor']['plugins']['get']('TableUtils');function _0x26b8f8({showActiveMarker:_0x1ef2c2=!0x0,setDataAttribute:_0x14cd0b=!0x0}={}){return(_0x38cbe9,_0x99abe9,_0x9c1e82)=>{const {type:_0x5cf3af,id:_0x496826}=_0x49380e['_splitMarkerName'](_0x99abe9['markerName']);if(!_0x49380e['hasSuggestion'](_0x496826))return;const _0x526f28=_0x49380e['getSuggestion'](_0x496826),_0x2033e2=_0x526f28['data'];if('formatBlock'!=_0x526f28['type']||!_0x2033e2||'setTableColumnHeader'!=_0x2033e2['commandName'])return;if(_0x99abe9['item'])return void _0x38cbe9['stop']();if(!_0x9c1e82['consumable']['consume'](_0x99abe9['markerRange'],_0x38cbe9['name']))return;const _0x4deefa=_0x99abe9['markerRange']['start']['nodeAfter'],_0x55ec43=_0x99abe9['markerRange']['end']['nodeBefore'],_0xb83aae=_0x4deefa['parent']['parent'],{column:_0xf4241d}=_0x161b0a['getCellLocation'](_0x4deefa),{column:_0x397b16}=_0x161b0a['getCellLocation'](_0x55ec43);for(let _0x5c60df=_0xf4241d;_0x5c60df<=_0x397b16;_0x5c60df++){const _0x16795d=_0x161b0a['createTableWalker'](_0xb83aae,{'column':_0x5c60df,'includeAllSlots':!0x1});for(const _0x23d6d8 of _0x16795d){const _0x28709a=_0x23d6d8['cell'],_0xde01b9=_0x9c1e82['mapper']['toViewElement'](_0x28709a);_0x9c1e82['writer']['addClass']('ck-suggestion-marker-'+_0x5cf3af,_0xde01b9),_0x14cd0b&&_0x9c1e82['writer']['setAttribute']('data-suggestion',_0x496826,_0xde01b9),_0x9c1e82['mapper']['bindElementToMarker'](_0xde01b9,_0x99abe9['markerName']),_0x1ef2c2&&(_0x49380e['activeMarkers']['includes'](_0x99abe9['markerName'])?_0x9c1e82['writer']['addClass']('ck-suggestion-marker--active',_0xde01b9):_0x9c1e82['writer']['removeClass']('ck-suggestion-marker--active',_0xde01b9));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x26b8f8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c7443,_0x133db5,_0x1025b3)=>{_0x1025b3['options']['showSuggestionHighlights']&&_0x26b8f8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4c7443,_0x133db5,_0x1025b3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3b1514,_0x4d1918,_0x31d45a)=>{const {type:_0x3c6987,id:_0x131cc3}=_0x49380e['_splitMarkerName'](_0x4d1918['markerName']);if(!_0x49380e['hasSuggestion'](_0x131cc3))return;const _0x57a386=_0x49380e['getSuggestion'](_0x131cc3),_0x18ce90=_0x57a386['data'];if('formatBlock'!=_0x57a386['type']||!_0x18ce90||'setTableColumnHeader'!=_0x18ce90['commandName'])return;const _0x24f75c=_0x31d45a['mapper']['markerNameToElements'](_0x4d1918['markerName']);if(_0x24f75c){for(const _0x340738 of _0x24f75c)_0x31d45a['writer']['removeClass']('ck-suggestion-marker-'+_0x3c6987,_0x340738),_0x31d45a['writer']['removeClass']('ck-suggestion-marker--active',_0x340738),_0x31d45a['writer']['removeAttribute']('data-suggestion',_0x340738),_0x31d45a['mapper']['unbindElementFromMarkerName'](_0x340738,_0x4d1918['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x162449=this['editor'],_0x3a361d=_0x162449['locale'];function _0x19f84a(_0x4351da){return{'type':'format','content':o(_0x3a361d,'*Format:*\x20%0',_0x4351da)};}_0x162449['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e4403=>{if('formatBlock'!=_0x2e4403['type'])return;const {data:_0x216ad8}=_0x2e4403;if(_0x216ad8){if('setTableRowHeader'==_0x216ad8['commandName']){const _0x3be25d=_0x216ad8['commandParams'][0x0]['forceValue'];return _0x19f84a(o(_0x3a361d,_0x3be25d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x216ad8['commandName']){const _0x440d01=_0x216ad8['commandParams'][0x0]['forceValue'];return _0x19f84a(o(_0x3a361d,_0x440d01?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x409a1b{['afterInit'](){const _0x493e47=this['editor'],_0x218d4f=_0x493e47['locale'],_0x43aa53=_0x493e47['plugins']['get']('TrackChangesEditing');function _0x2ffd1a(_0x204a3b){return{'type':'format','content':''+o(_0x218d4f,'*Set\x20table\x20type:*\x20%0',_0x204a3b)};}_0x493e47['plugins']['has']('TableLayout')&&(_0x43aa53['enableCommand']('insertTableLayout'),_0x43aa53['enableDefaultAttributesIntegration']('tableType'),_0x43aa53['descriptionFactory']['registerElementLabel'](_0x17f752=>_0x17f752['is']('element','table')&&'layout'===_0x17f752['getAttribute']('tableType'),_0x597f24=>o(_0x218d4f,'ELEMENT_LAYOUT_TABLE',_0x597f24)),_0x43aa53['descriptionFactory']['registerDescriptionCallback'](_0x2ebf81=>{const {data:_0x1ea181}=_0x2ebf81;if(_0x1ea181&&'tableType'==_0x1ea181['key'])switch(_0x1ea181['newValue']){case'layout':return _0x2ffd1a(o(_0x218d4f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ffd1a(o(_0x218d4f,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x13774c=>[_0x13774c,null]));class Mt extends _0x409a1b{static get['requires'](){return[Dt];}['afterInit'](){const _0x498886=this['editor'];if(!_0x498886['plugins']['has']('TableClipboard'))return;const _0x239835=_0x498886['plugins']['get']('TrackChangesEditing'),_0x2bc061=_0x498886['plugins']['get']('TableUtils'),_0x1d59da=_0x498886['plugins']['get'](Dt),_0x278848=_0x498886['plugins']['get']('TableClipboard'),_0x3c2b2e=_0x498886['plugins']['get']('TableSelection'),_0x5af415=_0x498886['plugins']['get'](_0x3c7130);_0x1d59da['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x498886['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x498886['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x27acc2=null,_0x48cfdb=!0x1;_0x5af415['on']('contentInsertion',(_0x138834,_0xb288b9)=>{_0x48cfdb='paste'===_0xb288b9['method'];}),_0x498886['model']['on']('insertContent',(_0x3e136e,_0x52a4a5)=>{if(!_0x48cfdb&&null===_0x3c2b2e['getSelectedTableCells']())return;const [_0x38c7b1,_0x1b72a7]=_0x52a4a5,_0xc0874a=_0x52a4a5[_0x52a4a5['length']-0x1];_0xc0874a&&_0xc0874a['forceDefaultExecution']||_0x239835['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5611f9,_0x23bf4c,_0x59ecd8,_0x34a9d5,_0x5c667e){if(_0x23bf4c&&!_0x23bf4c['is']('documentSelection'))return!0x1;const _0x172071=_0x5c667e['getTableIfOnlyTableInContent'](_0x5611f9,_0x59ecd8);if(!_0x172071||!Oe(_0x172071,void 0x0,_0x34a9d5))return!0x1;const _0x3041db=_0x34a9d5['getSelectionAffectedTableCells'](_0x59ecd8['document']['selection']);if(!_0x3041db['length'])return!0x1;const _0x135453=_0x3041db[0x0]['findAncestor']('table'),_0x58bc75=_0x34a9d5['getRowIndexes'](_0x3041db),_0x9e53c=_0x34a9d5['getColumnIndexes'](_0x3041db),_0x452b4c={'startRow':_0x58bc75['first'],'endRow':_0x58bc75['last'],'startColumn':_0x9e53c['first'],'endColumn':_0x9e53c['last']};return 0x1==_0x3041db['length']&&(_0x452b4c['endRow']+=_0x34a9d5['getRows'](_0x172071)-0x1,_0x452b4c['endColumn']+=_0x34a9d5['getColumns'](_0x172071)-0x1),Oe(_0x135453,_0x452b4c,_0x34a9d5);}(_0x38c7b1,_0x1b72a7,_0x498886['model'],_0x2bc061,_0x278848)&&(_0x3e136e['stop'](),_0x27acc2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x498886['model']['change'](()=>{_0x498886['model']['insertContent'](_0x52a4a5[0x0],_0x52a4a5[0x1],_0x52a4a5[0x2],{'forceDefaultExecution':!0x0});const _0x1ef434=_0x3c76d7(),{rowInsertionRanges:_0x5d18b7,columnInsertionRanges:_0xf86e81,insertionRanges:_0x71ccbe,deletionRanges:_0x4a300a,cells:_0x888782}=_0x27acc2;_0x5d18b7['length']&&_0x239835['markMultiRangeInsertion'](_0x5d18b7,'tablePasteRow',{'tablePasteChainId':_0x1ef434}),_0xf86e81['length']&&_0x239835['markMultiRangeInsertion'](_0xf86e81,'tablePasteColumn',{'tablePasteChainId':_0x1ef434}),_0x71ccbe['length']&&(_0x239835['markMultiRangeInsertion'](_0x71ccbe,'tablePaste',{'tablePasteChainId':_0x1ef434,'skipNestingCheck':!0x0}),_0x71ccbe['forEach'](_0x183f57=>_0x183f57['detach']?.())),_0x4a300a['length']&&(_0x239835['markMultiRangeDeletion'](_0x4a300a,'tablePaste',{'tablePasteChainId':_0x1ef434,'skipNestingCheck':!0x0}),_0x4a300a['forEach'](_0x53dc10=>_0x53dc10['detach']?.()));const _0x59e4f0=_0x239835['markMultiRangeBlockFormat'](_0x888782['map'](({element:_0x278cd1})=>_0x278cd1),{'formatGroupId':_0x3c76d7()},[],'tablePasteCell',{'tablePasteChainId':_0x1ef434});if(_0x59e4f0){const _0x368699=_0x59e4f0['getMarkers'](),_0x26d583=[];for(const {element:_0x4d000f,attributes:_0x400960}of _0x888782){if(!_0x400960)continue;const _0x479de=_0x498886['model']['createRangeOn'](_0x4d000f),_0x465043=_0x368699['find'](_0x334919=>_0x334919['getRange']()['isEqual'](_0x479de));_0x465043&&_0x26d583['push']([_0x465043['name'],_0x400960]);}_0x26d583['length']&&_0x59e4f0['setAttribute']('markerAttributes',Object['fromEntries'](_0x26d583));}_0x27acc2=null;}));},{'priority':_0x2d3bd9['high']+0xa}),_0x5af415['on']('contentInsertion',()=>{_0x48cfdb=!0x1;},{'priority':'lowest'}),_0x498886['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x38103d,_0x5aa07d)=>{const [_0x5c095e,_0x39923a,,_0x5bc339]=_0x5aa07d;if(!_0x27acc2)return;_0x38103d['stop']();const _0x52827e=_0x5c095e['cell'],_0x23d6fa=_0x39923a,_0x524c9f=Be(_0x52827e),_0x4fb718=Be(_0x23d6fa);_0x38103d['return']=_0x52827e;let _0x1a63e7=null,_0x20f23f=null;if(_0x4fb718||_0x524c9f){if(_0x524c9f&&!_0x4fb718){_0x5bc339['remove'](_0x52827e['getChild'](0x0));for(const _0x3d81be of Array['from'](_0x23d6fa['getChildren']()))_0x5bc339['insert'](_0x3d81be,_0x52827e,'end');const _0x306ee0=_0x27acc2['rowInsertionIndexes']['includes'](_0x5c095e['row']),_0x57e2f2=_0x27acc2['columnInsertionIndexes']['includes'](_0x5c095e['column']);_0x306ee0||_0x57e2f2||(_0x1a63e7=_0xdb3ad2['fromRange'](_0x5bc339['createRangeIn'](_0x52827e)));}else _0x4fb718&&!_0x524c9f&&(_0x20f23f=_0x5bc339['createRangeIn'](_0x52827e));}else{const _0x54dd05=_0x5bc339['createElement']('tableCellSuggestion'),_0x553540=_0x5bc339['createElement']('tableCellSuggestion');_0x5bc339['wrap'](_0x5bc339['createRangeIn'](_0x52827e),_0x553540),_0x5bc339['insert'](_0x54dd05,_0x52827e,0x0);for(const _0x44dc1d of Array['from'](_0x23d6fa['getChildren']()))_0x5bc339['insert'](_0x44dc1d,_0x54dd05,'end');_0x1a63e7=_0xdb3ad2['fromRange'](_0x5bc339['createRangeOn'](_0x54dd05)),_0x20f23f=_0xdb3ad2['fromRange'](_0x5bc339['createRangeOn'](_0x553540));}const _0x5b8a47=Array['from'](_0x23d6fa['getAttributes']())['filter'](([_0xa85d56])=>Re['includes'](_0xa85d56));_0x27acc2['cells']['push']({'element':_0x52827e,'attributes':_0x5b8a47['length']?Object['fromEntries'](_0x5b8a47):null}),_0x1a63e7&&_0x27acc2['insertionRanges']['push'](_0x1a63e7),_0x20f23f&&_0x27acc2['deletionRanges']['push'](_0x20f23f);},{'priority':'high'}),_0x2bc061['on']('insertColumns',(_0x943c6a,_0x5af78f)=>{const [_0x1716ce,_0x45735b={}]=_0x5af78f;if(!_0x27acc2)return;const _0x3eb79a=_0x45735b['at']||0x0,_0x784029=_0x45735b['columns']||0x1;_0x27acc2['columnInsertionIndexes']=new Array(_0x784029)['fill'](_0x3eb79a)['map']((_0x5cc71f,_0x237b23)=>_0x5cc71f+_0x237b23);for(const {cell:_0x6ba810}of _0x2bc061['createTableWalker'](_0x1716ce,{'startColumn':_0x3eb79a,'endColumn':_0x3eb79a+_0x784029-0x1}))_0x27acc2['columnInsertionRanges']['push'](_0x498886['model']['createRangeOn'](_0x6ba810));},{'priority':'low'}),_0x2bc061['on']('insertRows',(_0x8805e8,_0x5c1d0f)=>{const [_0x56f111,_0x8e4713={}]=_0x5c1d0f;if(!_0x27acc2)return;const _0x11ad2a=_0x8e4713['at']||0x0,_0x1a489e=_0x8e4713['rows']||0x1;_0x27acc2['rowInsertionIndexes']=new Array(_0x1a489e)['fill'](_0x11ad2a)['map']((_0x438e39,_0x3c5931)=>_0x438e39+_0x3c5931);for(const {cell:_0x270138}of _0x2bc061['createTableWalker'](_0x56f111,{'startRow':_0x11ad2a,'endRow':_0x11ad2a+_0x1a489e-0x1}))_0x27acc2['rowInsertionRanges']['push'](_0x498886['model']['createRangeOn'](_0x270138));},{'priority':'low'}),_0x239835['descriptionFactory']['registerDescriptionCallback'](_0x2cdca8=>{if(_0x2cdca8['subType']&&_0x2cdca8['subType']['startsWith']('tablePaste'))return _0x2cdca8['previous']?{}:{'type':'insertion','content':o(_0x498886['locale'],'*Replace\x20table\x20cells*')};});const _0x6cff83=()=>!0x1;for(const _0x127b8b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x239835['_suggestionFactory']['registerCustomCallback']('insertion',_0x127b8b,'join',_0x6cff83),_0x239835['_suggestionFactory']['registerCustomCallback']('deletion',_0x127b8b,'join',_0x6cff83),_0x239835['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x127b8b,'join',_0x6cff83);_0x239835['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x6cff83),_0x239835['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x58cadc,_0x448cfc,_0x3a8664)=>{const _0x345dd7=_0x58cadc['map'](_0x4a2afe=>_0x4a2afe['getContainedElement']())['filter'](_0x5824c8=>_0x5824c8),_0x258fc3=new Map(_0x345dd7['map'](_0x17fe13=>[_0x17fe13,null]));if(_0x27acc2){for(const {element:_0xd68f80,attributes:_0x1491f7}of _0x27acc2['cells'])_0x1491f7&&_0x258fc3['set'](_0xd68f80,_0x1491f7);}else{if(_0x3a8664&&_0x3a8664['markerAttributes'])for(const [_0x17cd6e,_0x3fedd2]of Object['entries'](_0x3a8664['markerAttributes'])){const _0x279a10=_0x498886['model']['markers']['get'](_0x17cd6e),_0x392e9c=_0x279a10?_0x279a10['getRange']()['getContainedElement']():null;_0x392e9c&&_0x258fc3['set'](_0x392e9c,_0x3fedd2);}}_0x498886['model']['change'](_0x2b8c6e=>{for(const [_0x17c13d,_0x3eeb7d]of _0x258fc3)_0x2b8c6e['setAttributes']({...Ae,..._0x3eeb7d},_0x17c13d);});});const _0x46365d=(_0x59956b,_0x44ce47)=>{_0x239835['_suggestionFactory']['registerCustomCallback'](_0x59956b,'tablePaste',_0x44ce47,(_0x479022,_0x522dd6,_0x4984f0)=>{_0x498886['model']['change'](_0x4c5a34=>{const _0x17d49e=[];for(const _0x3c77af of _0x479022){const _0x200d3b=_0x3c77af['start']['nodeAfter'];_0x200d3b['is']('element','tableCellSuggestion')&&_0x17d49e['push'](_0x200d3b);}_0x239835['_suggestionFactory']['getSuggestionCallback'](_0x59956b,null,_0x44ce47)(_0x479022,_0x522dd6,_0x4984f0);for(const _0x16acbf of _0x17d49e)'$graveyard'!=_0x16acbf['root']['rootName']&&_0x4c5a34['unwrap'](_0x16acbf);});});};_0x46365d('insertion','accept'),_0x46365d('insertion','discard'),_0x46365d('deletion','accept'),_0x46365d('deletion','discard'),_0x239835['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1df07b=>{const _0x41f8ca=_0x1df07b['map'](_0x51c235=>_0x51c235['getContainedElement']()),_0x540959=_0x41f8ca[0x0]['findAncestor']('table'),{minRow:_0x27a69e,maxRow:_0x6eab82}=_0x1d59da['_getCoordsForCells'](_0x41f8ca);_0x2bc061['removeRows'](_0x540959,{'at':_0x27a69e,'rows':_0x6eab82-_0x27a69e+0x1});}),_0x239835['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x423d9e=>{const _0x59e08c=_0x423d9e['map'](_0x1b12e7=>_0x1b12e7['getContainedElement']()),_0x4e4992=_0x59e08c[0x0]['findAncestor']('table'),{minColumn:_0x342a47,maxColumn:_0x45ff55}=_0x1d59da['_getCoordsForCells'](_0x59e08c);_0x2bc061['removeColumns'](_0x4e4992,{'at':_0x342a47,'columns':_0x45ff55-_0x342a47+0x1});});const _0x1ecce8=(_0xcd037e,_0x2c06ca)=>{if(!_0x2c06ca['subType']||!_0x2c06ca['subType']['startsWith']('tablePaste'))return;const _0x2b980d=_0x2c06ca['attributes']['tablePasteChainId'],_0x1ce2e9=_0x239835['getSuggestions']()['filter'](_0x49533b=>_0x49533b['isInContent']&&_0x49533b['attributes']&&_0x49533b['attributes']['tablePasteChainId']==_0x2b980d);_0x1ce2e9['length']&&_0x2c06ca['getAllAdjacentSuggestions']()['length']!=_0x1ce2e9['length']&&_0x1ce2e9['reduce']((_0x174a04,_0x40f9e4)=>(_0x174a04['next']=_0x40f9e4,_0x40f9e4['previous']=_0x174a04,_0x40f9e4));};function _0x20fffc(_0x27fcee,_0x198ce1=!0x0){const {id:_0x3059e4,authorId:_0x558f4b}=_0x239835['_splitMarkerName'](_0x27fcee['markerName']),_0x24f760=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5b447c=_0x239835['activeMarkers']['includes'](_0x27fcee['markerName']);return _0x5b447c&&_0x24f760['push']('ck-suggestion-marker--active'),{'classes':_0x24f760,'attributes':{'data-suggestion':_0x3059e4,'data-author-id':_0x558f4b},'priority':_0x5b447c&&_0x198ce1?0xbc2:0xbb8};}_0x239835['on']('suggestionLoaded',_0x1ecce8,{'priority':'high'}),_0x239835['on']('suggestionUnloaded',_0x1ecce8,{'priority':'high'}),_0x498886['model']['document']['registerPostFixer'](()=>{let _0xd01033=!0x1;const _0x277b91=Array['from'](_0x498886['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x110c11,data:_0xde1f32}of _0x277b91){const {group:_0x4d56f3,type:_0x27a911,id:_0x57f499}=_0x239835['_splitMarkerName'](_0x110c11);if('suggestion'!=_0x4d56f3||'deletion'!=_0x27a911||_0xde1f32['oldRange'])continue;if(!_0x239835['hasSuggestion'](_0x57f499))continue;const _0x27dbe7=_0x239835['getSuggestion'](_0x57f499)['getRanges'](),_0x21f3ef=_0x498886['plugins']['get']('Users')['me'];for(const _0x2318cb of _0x239835['getSuggestions']()){if(!_0x2318cb['isInContent']||_0x2318cb['author']!=_0x21f3ef)continue;if('formatBlock'!=_0x2318cb['type']||'tablePasteCell'!=_0x2318cb['subType'])continue;if(_0x2318cb['getRanges']()['every'](_0x5b89d9=>_0x27dbe7['some'](_0x14f9db=>_0x14f9db['containsRange'](_0x5b89d9,!0x0)))){for(const _0x30dbd4 of _0x2318cb['getAllAdjacentSuggestions']())_0x30dbd4['isInContent']&&(_0x30dbd4['discard'](),_0xd01033=!0x0);}}}return _0xd01033;}),_0x498886['model']['document']['registerPostFixer'](_0x5eba1c=>{const _0x266384=_0x498886['commands']['get']('redo');if(!_0x266384||!_0x266384['_createdBatches']['has'](_0x5eba1c['batch']))return!0x1;let _0x317ff9=!0x1;const _0x17dc2a=_0x498886['plugins']['get']('Users')['me'],_0x9e6fc3=_0x498886['model']['document']['differ']['getChanges'](),_0x3d5d06=Array['from'](_0x498886['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4cc9bd,data:_0x368a0b})=>{const {group:_0x189d1e,subType:_0x5f83f1,authorId:_0x4089be}=_0x239835['_splitMarkerName'](_0x4cc9bd);return'suggestion'==_0x189d1e&&'tablePaste'==_0x5f83f1&&_0x4089be==_0x17dc2a['id']&&!_0x368a0b['oldRange'];});for(const _0x1d1683 of _0x9e6fc3){if('insert'!=_0x1d1683['type']||'tableCellSuggestion'!=_0x1d1683['name']||0x1!=_0x1d1683['length'])continue;const _0x10bad4=_0x5eba1c['createRange'](_0x1d1683['position'],_0x1d1683['position']['getShiftedBy'](0x1));if(!_0x3d5d06['find'](({data:_0x2aa903})=>_0x2aa903['newRange']['isEqual'](_0x10bad4))){for(const {name:_0x3ac877,data:_0x382dd7}of _0x3d5d06)if(_0x10bad4['containsRange'](_0x382dd7['newRange'])){_0x5eba1c['updateMarker'](_0x3ac877,{'range':_0x10bad4}),_0x317ff9=!0x0;break;}}}return _0x317ff9;}),_0x498886['model']['document']['registerPostFixer'](_0x537637=>{let _0x486267=!0x1;const _0x1b2b55=_0x498886['plugins']['get']('Users')['me'],_0x3e5e53=_0x239835['getSuggestions']()['filter'](_0x4f0542=>_0x4f0542['isInContent']&&_0x4f0542['author']==_0x1b2b55),_0x3b95a3=new Set(),_0x2d5db7=new Set();for(const _0x3b9d91 of _0x3e5e53)if('tablePaste'==_0x3b9d91['subType'])for(const _0x4162b9 of _0x3b9d91['getMarkers']()){const _0x83c6c9=_0x4162b9['getRange']()['getContainedElement']();if(_0x83c6c9){if(_0x83c6c9['is']('element','tableCellSuggestion')&&Be(_0x83c6c9)){_0x3b9d91['removeMarker'](_0x4162b9['name']),_0x3b95a3['add'](_0x83c6c9),_0x486267=!0x0;const _0x28645a=_0x83c6c9['nextSibling'],_0x37dfed=_0x83c6c9['previousSibling'],_0x3ec2a7=_0x28645a&&_0x28645a['is']('element','tableCellSuggestion'),_0x18cd4e=_0x37dfed&&_0x37dfed['is']('element','tableCellSuggestion');_0x3ec2a7&&!_0x3b95a3['has'](_0x28645a)&&_0x2d5db7['add'](_0x28645a),_0x18cd4e&&!_0x3b95a3['has'](_0x37dfed)&&_0x2d5db7['add'](_0x37dfed);}else _0x83c6c9['is']('element','paragraph')&&_0x83c6c9['isEmpty']&&(_0x3b9d91['removeMarker'](_0x4162b9['name']),_0x486267=!0x0);}}else{if('tablePasteCell'==_0x3b9d91['subType']){if(!_0x3b9d91['attributes']||!_0x3b9d91['attributes']['tablePasteChainId'])continue;const _0x5ec890=_0x3b9d91['attributes']['markerAttributes'];if(_0x5ec890&&Object['keys'](_0x5ec890)['length'])continue;const _0x6de8ca=_0x3b9d91['attributes']['tablePasteChainId'];let _0x5ba6dd=!0x0,_0x596d7e=!0x0;for(const _0x51edf0 of _0x3e5e53)if(_0x51edf0['subType']&&_0x51edf0['subType']['startsWith']('tablePaste')){if(!_0x51edf0['attributes']['tablePasteChainId']){_0x596d7e=!0x1;break;}if(_0x51edf0['id']!=_0x3b9d91['id']&&_0x51edf0['attributes']['tablePasteChainId']==_0x6de8ca){_0x5ba6dd=!0x1;break;}}_0x596d7e&&_0x5ba6dd&&(_0x3b9d91['removeMarkers'](),_0x486267=!0x0);}}for(const _0x2b31eb of _0x3b95a3)_0x537637['remove'](_0x2b31eb);for(const _0x54f839 of _0x2d5db7)_0x537637['unwrap'](_0x54f839);return _0x486267;}),_0x498886['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x12484c=>_0x20fffc(_0x12484c),'converterPriority':'high'}),_0x498886['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x510a41,_0x2af142)=>_0x2af142['options']['showSuggestionHighlights']?_0x20fffc(_0x510a41,!0x1):null,'converterPriority':'high'});const _0x415596=_0x498886['editing']['view'];this['listenTo'](_0x415596['document'],'clipboardOutput',(_0x4f38df,_0x51b5bd)=>{const _0x35337b=[];for(const _0x5e8e8a of _0x415596['createRangeIn'](_0x51b5bd['content'])['getItems']())_0x5e8e8a['is']('element','suggestion-td')&&_0x35337b['push'](_0x5e8e8a);_0x415596['change'](_0x443c54=>{for(const _0x598f57 of _0x35337b)_0x443c54['move'](_0x443c54['createRangeIn'](_0x598f57),_0x443c54['createPositionBefore'](_0x598f57)),_0x443c54['remove'](_0x598f57);});});}}function Be(_0x97d4a8){if(_0x97d4a8['isEmpty'])return!0x0;const _0x466b1e=_0x97d4a8['getChild'](0x0);return _0x466b1e['is']('element','paragraph')&&_0x466b1e['isEmpty'];}function Oe(_0x5c0e4e,_0xffc18e={},_0x44e0b5){for(const {isAnchor:_0x56b503,cellHeight:_0x41bdfd,cellWidth:_0x1f4daa}of _0x44e0b5['createTableWalker'](_0x5c0e4e,{'includeAllSlots':!0x0,..._0xffc18e}))if(!_0x56b503||0x1!=_0x41bdfd||0x1!=_0x1f4daa)return!0x1;return!0x0;}class Rt extends _0x409a1b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x22ae63=this['editor']['plugins']['get']('TrackChangesEditing');_0x22ae63['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x22ae63['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x22ae63['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22ae63['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x22ae63['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x22ae63['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x49c4ce,_0x2f338d){const _0x2ec704=this['editor']['plugins']['get']('TrackChangesEditing'),_0x414cfa=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x21cce1=_0x2f338d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d38f5=_0x414cfa['getColumnGroupElement'](_0x21cce1);let _0xb82171=_0x4d38f5?_0x414cfa['getTableColumnsWidths'](_0x4d38f5):null,_0x56d303=_0x21cce1['getAttribute']('tableWidth')||null;const _0x3459ae=_0x2f338d['tableWidth']||_0x56d303,_0x23d56a=_0x2f338d['columnWidths']||_0xb82171,_0x3a7d93=this['editor']['plugins']['get']('Users')['me'];for(const _0x51aade of _0x2ec704['getSuggestions']()){const _0x30965b=_0x51aade['getContainedElement']();if('resizeTable'===_0x51aade['subType']&&_0x30965b===_0x21cce1){_0x51aade['author']!==_0x3a7d93&&_0x51aade['discard']();const _0x2ecb65=_0x51aade['data']['commandParams'];_0x56d303=_0x2ecb65[0x0]['tableWidth'],_0xb82171=_0x2ecb65[0x0]['columnWidths'];break;}}_0x49c4ce({'table':_0x21cce1,'tableWidth':_0x3459ae,'columnWidths':_0x23d56a}),_0x2ec704['markBlockFormat'](_0x21cce1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x56d303,'columnWidths':_0xb82171}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x27329c){if('formatBlock'!=_0x27329c['type']&&'formatInline'!=_0x27329c['type'])return;const {data:_0x177d58}=_0x27329c;if(_0x177d58&&'resizeTable'===_0x177d58['formatGroupId']){const _0x4ca905='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4ca905)};}}}class Tt extends _0x409a1b{['afterInit'](){const _0x1c303b=this['editor'];_0x1c303b['plugins']['has']('Template')&&_0x1c303b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x409a1b{['afterInit'](){const _0x2be350=this['editor'];if(!_0x2be350['commands']['get']('insertTableOfContents'))return;_0x2be350['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x59deee=_0x2be350['plugins']['get']('TrackChangesEditing'),_0xf4f38e=_0x2be350['locale'];_0x59deee['descriptionFactory']['registerElementLabel']('tableOfContents',_0x29cc42=>o(_0xf4f38e,'ELEMENT_TABLE_OF_CONTENTS',_0x29cc42));}}class Ut extends _0x409a1b{['afterInit'](){const _0x481be4=this['editor'];if(!_0x481be4['plugins']['has']('Title'))return;const _0x554665=_0x481be4['plugins']['get']('TrackChangesEditing');_0x554665['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x481be4['locale'],'ELEMENT_TITLE')),_0x481be4['model']['document']['registerPostFixer'](_0x21f158=>{let _0x3fa58b=!0x1;const _0x15c5c3=Array['from'](_0x481be4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58f7f7,data:_0x2a0d16}of _0x15c5c3){const {group:_0x16d145}=_0x554665['_splitMarkerName'](_0x58f7f7);if('suggestion'!==_0x16d145||!_0x2a0d16['newRange'])continue;const _0x313303=_0x2a0d16['newRange'],_0x214ed1=_0x313303['end']['nodeBefore'];if(!_0x214ed1||!_0x214ed1['is']('element','title-content'))continue;if(!_0x313303['start']['isTouching'](_0x313303['end']))continue;const _0x3a2dc4=_0x481be4['model']['schema']['getNearestSelectionRange'](_0x313303['end'],'forward');if(_0x3a2dc4&&_0x3a2dc4['isCollapsed']){const _0x503350=_0x21f158['createRange'](_0x313303['start'],_0x3a2dc4['start']);_0x503350['isEqual'](_0x313303)||(_0x21f158['updateMarker'](_0x58f7f7,{'range':_0x503350}),_0x3fa58b=!0x0);}_0x3fa58b||(_0x21f158['removeMarker'](_0x58f7f7),_0x3fa58b=!0x0);}return _0x3fa58b;});}}class Vt extends _0x409a1b{['afterInit'](){const _0x12cbe3=this['editor'],_0x2662d0=_0x12cbe3['plugins']['get']('TrackChangesEditing');_0x12cbe3['plugins']['has']('Uploadcare')&&(_0x2662d0['enableCommand']('uploadcare'),_0x12cbe3['plugins']['has']('UploadcareImageEdit')&&(_0x2662d0['enableCommand']('uploadcareImageEdit'),_0x2662d0['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2662d0['descriptionFactory']['registerDescriptionCallback'](_0x58511b=>{if('attribute'!=_0x58511b['type'])return;const {data:_0x2e9d8}=_0x58511b;return _0x2e9d8&&'uploadcareImageId'==_0x2e9d8['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x409a1b{['afterInit'](){const _0x5183da=this['editor'],_0x439777=_0x5183da['plugins']['get']('TrackChangesEditing');_0x5183da['plugins']['has']('UndoEditing')&&(_0x439777['enableCommand']('undo'),_0x439777['enableCommand']('redo'));}}class Pt extends _0x409a1b{static get['requires'](){return[Dt];}['afterInit'](){const _0x4979f0=this['editor'];if(!_0x4979f0['plugins']['has']('TableCaptionEditing'))return;_0x4979f0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x409a1b{['tableProperties'];['tableCellProperties'];constructor(_0x349cfb){super(_0x349cfb),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x349cfb['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xb91825=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x19ff85 of this['tableProperties'])_0xb91825['enableCommand'](_0x19ff85,(_0x3f203c,_0x417e5e)=>{const _0x37b31e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x19ff85,[_0x37b31e],this['tableProperties'],'tableProperties',_0x3f203c,_0x417e5e);});_0xb91825['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb91825['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb91825['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x338d27,_0x29c910)=>this['handleDiscardAction'](this['tableProperties'],_0x338d27,_0x29c910)),_0xb91825['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3ea04e of this['tableCellProperties'])this['editor']['commands']['get'](_0x3ea04e)&&_0xb91825['enableCommand'](_0x3ea04e,(_0x23a932,_0x317519)=>{const _0x18c995=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3ea04e,_0x18c995,this['tableCellProperties'],'tableCellProperties',_0x23a932,_0x317519);});_0xb91825['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb91825['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb91825['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3160e4,_0x53810d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3160e4,_0x53810d)),_0xb91825['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xb91825['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xb91825['descriptionFactory']['registerDescriptionCallback'](_0x330c77=>this['handleSuggestionDescription'](_0x330c77)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2058b0,_0x22744d,_0x4c9c3,_0x1e485d,_0x342429,_0x365006){const _0x5d1041=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x365006['batch'],()=>{for(const _0x5a4afb of _0x22744d){if(this['_getSuggestion'](_0x5a4afb,_0x1e485d))_0x342429(_0x365006);else{const _0x55c5ca={};for(const _0x997946 of _0x4c9c3){const _0x15da7a=_0x5a4afb['getAttribute'](_0x997946);void 0x0!==_0x15da7a&&(_0x55c5ca[_0x997946]=_0x15da7a);}_0x342429(_0x365006),_0x5d1041['markBlockFormat'](_0x5a4afb,{'commandParams':[_0x55c5ca]},[],_0x1e485d);}}});}['handleDiscardAction'](_0x1db492,_0x2f84e5,_0x4abe08){const _0x51abef=_0x2f84e5[0x0]['start']['nodeAfter'],_0x38a07f=_0x4abe08['commandParams'][0x0];this['editor']['model']['change'](_0x3a999f=>{for(const _0x3d0d51 of _0x1db492)void 0x0!==_0x38a07f[_0x3d0d51]?_0x3a999f['setAttribute'](_0x3d0d51,_0x38a07f[_0x3d0d51],_0x51abef):_0x3a999f['removeAttribute'](_0x3d0d51,_0x51abef);});}['handleSuggestionDescription'](_0x577a1f){if(_0x577a1f['data'])switch(_0x577a1f['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'](_0x548937,_0x469071){const _0xea2566=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x75682d of _0xea2566['getSuggestions']({'skipNotAttached':!0x0})){const _0x558e47=_0x75682d['getContainedElement']();if(_0x75682d['subType']===_0x469071&&_0x558e47===_0x548937)return _0x75682d;}return null;}['_registerTablePropertiesAttributes'](){const _0x1e82bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d9ef1=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x372978 of _0x3d9ef1){const _0x984523=_0x372978['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1e82bb['descriptionFactory']['registerAttributeLabel'](_0x372978,o(this['editor']['locale'],'FORMAT_'+_0x984523));}}}class Lt extends _0x409a1b{['afterInit'](){const _0x3cc06f=this['editor'];if(!_0x3cc06f['plugins']['has']('LineHeight'))return;const _0x298da7=_0x3cc06f['plugins']['get']('TrackChangesEditing'),_0x39f58c=_0x3cc06f['locale'];_0x298da7['enableDefaultAttributesIntegration']('lineHeight'),_0x298da7['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x39f58c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x409a1b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3ae150,_0x33bd43,_0xc38e5b,_0x2bd63a,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5708cc){super(_0x5708cc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x20eac2,_0x3ad5ce,_0xb6b84b,_0x94db08)=>{this['_model']['change'](()=>{for(const _0x51fc46 of[..._0x94db08,..._0xb6b84b])this['_model']['markers']['has'](_0x51fc46)&&_0x5708cc['editing']['reconvertMarker'](_0x51fc46);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5708cc['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5708cc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5708cc['config']['get']('trackChanges.trackFormatChanges'),_0x5708cc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5708cc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5708cc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x33670a=this['editor'];_0x33670a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x43ce2f,{writer:_0x42e8ef})=>{let _0x20b18f='suggestion:'+_0x43ce2f['getAttribute']('suggestion-type')+':'+_0x43ce2f['getAttribute']('id');return _0x43ce2f['getAttribute']('marker-count')&&(_0x20b18f+=':'+_0x43ce2f['getAttribute']('marker-count')),_0x42e8ef['createElement']('$marker',{'data-name':_0x20b18f});}}),_0x33670a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33670a['model']['document']['registerPostFixer'](_0x4c7df9=>{let _0x5b4a44=!0x1;const _0x550e46=Array['from'](_0x33670a['model']['document']['differ']['getChangedMarkers']()),_0x130787=new Set();for(const {name:_0x20976b,data:_0x388612}of _0x550e46){const {group:_0x2a5d17,type:_0x331191,subType:_0x2d998d,id:_0x41f131}=this['_splitMarkerName'](_0x20976b);if('suggestion'!==_0x2a5d17)continue;const _0x4493e3=_0x2d998d?'suggestion:'+_0x331191+':'+_0x2d998d+':'+_0x41f131:'suggestion:'+_0x331191+':'+_0x41f131,_0x3104ec=_0x33670a['model']['markers']['getMarkersGroup'](_0x4493e3),_0x15544d=_0x33670a['model']['markers']['get'](_0x20976b),_0x284ea0=this['_suggestions']['get'](_0x41f131);if(null!=_0x388612['newRange']){'formatInline'==_0x331191&&(_0x5b4a44=_0x5b4a44||Kt(_0x388612['newRange'],_0x20976b,_0x4c7df9,_0x33670a['model']['schema']));const _0x1745aa='attribute'==_0x331191&&this['_isBlockAttribute'](_0x2d998d['split']('|')[0x0]),_0x540f59='attribute'==_0x331191&&this['_isInlineAttribute'](_0x2d998d['split']('|')[0x0]);if(_0x388612['newRange']['isCollapsed']||'$graveyard'==_0x388612['newRange']['root']['rootName']||'formatBlock'==_0x331191&&!Ht(_0x388612['newRange'])||_0x1745aa&&!Ht(_0x388612['newRange'])||_0x540f59&&Qt(_0x388612['newRange'])||'deletion'==_0x331191&&Qt(_0x388612['newRange'])||_0x15544d&&Xt(_0x15544d,_0x3104ec))_0x4c7df9['removeMarker'](_0x20976b),_0x5b4a44=!0x0;else{if(!_0x284ea0||!_0x284ea0['isInContent'])continue;if(_0x388612['newRange']&&_0x388612['oldRange']&&_0x388612['newRange']['isEqual'](_0x388612['oldRange']))continue;_0x130787['add'](_0x284ea0);}}}return _0x130787['size']>0x0&&(_0x5b4a44=!!this['_joinWithAdjacentSuggestions'](_0x130787)||_0x5b4a44),_0x5b4a44;}),_0x33670a['model']['document']['registerPostFixer'](_0x2f51f9=>{let _0x2135b4=!0x1;for(const _0x241ba5 of _0x33670a['model']['document']['differ']['getChanges']())if('insert'==_0x241ba5['type'])for(const _0x302456 of this['_suggestions']['values']()){if(_0x302456['isMultiRange']||!_0x302456['isInContent'])continue;const _0xa1f1dc='formatBlock'==_0x302456['type'],_0x55a9dd=this['_getAttributeKey'](_0x302456),_0x4fc9dc=_0x55a9dd&&this['_isBlockAttribute'](_0x55a9dd);if(!_0xa1f1dc&&!_0x4fc9dc)continue;const _0x344b93=_0x302456['getFirstRange']();if(_0x344b93['start']['parent']!=_0x344b93['end']['parent']&&!_0x344b93['end']['isAtEnd']){const _0x47bf56=_0x33670a['model']['createPositionAt'](_0x344b93['start']['nodeAfter'],'end'),_0x5370ef=_0x33670a['model']['createRange'](_0x344b93['start'],_0x47bf56);_0x2f51f9['updateMarker'](_0x302456['getFirstMarker'](),{'range':_0x5370ef}),_0x2135b4=!0x0;}}return _0x2135b4;}),_0x33670a['model']['document']['registerPostFixer'](_0x174213=>this['_processAttributeChanges'](_0x174213)),_0x33670a['model']['document']['registerPostFixer'](_0x300bfb=>!_0x300bfb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x300bfb)),_0x33670a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33670a['model']['document']['on']('change:data',(_0x45fe61,_0x8d209c)=>{if(!_0x8d209c['isLocal']||_0x8d209c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x35ee1c=_0x33670a['model']['document']['differ']['getChanges']();if(0x0==_0x35ee1c['length'])return;const _0x499e4e=[],_0x428ac5=_0x35ee1c['filter'](_0x47155f=>'attribute'==_0x47155f['type']),_0x218efc=_0x35ee1c['filter'](_0x7126dc=>'insert'==_0x7126dc['type']&&'$text'!=_0x7126dc['name']);for(const _0x1bdd66 of _0x428ac5)this['_isRegisteredAttribute'](_0x1bdd66['attributeKey'])&&_0x499e4e['push']({'key':_0x1bdd66['attributeKey'],'newValue':_0x1bdd66['attributeNewValue'],'oldValue':_0x1bdd66['attributeOldValue'],'range':Yt(_0x1bdd66['range'],_0x33670a['model'])});for(const _0x383219 of _0x218efc){if('rename'!=_0x383219['action']&&'refresh'!=_0x383219['action'])continue;const _0x4a7e31=Zt(_0x383219['position']['nodeAfter'],_0x33670a['model']),_0x4d3c4d=_0x383219['before'];'rename'==_0x383219['action']&&_0x499e4e['push']({'key':m,'newValue':_0x383219['name'],'oldValue':_0x4d3c4d['name'],'range':_0x4a7e31});for(const [_0x551af5,_0x998a3f]of _0x4d3c4d['attributes']){if(!this['_isRegisteredAttribute'](_0x551af5))continue;const _0x300c10=_0x383219['attributes']['get'](_0x551af5);_0x998a3f!==_0x300c10&&_0x499e4e['push']({'key':_0x551af5,'newValue':_0x300c10,'oldValue':_0x998a3f,'range':_0x4a7e31});}for(const [_0x3f13ae,_0x2cbcfa]of _0x383219['attributes'])this['_isRegisteredAttribute'](_0x3f13ae)&&(_0x4d3c4d['attributes']['has'](_0x3f13ae)||_0x499e4e['push']({'key':_0x3f13ae,'newValue':_0x2cbcfa,'oldValue':null,'range':_0x4a7e31}));}0x0!=_0x499e4e['length']&&_0x33670a['model']['enqueueChange'](_0x8d209c,_0x47d6da=>{const _0x4864f3=_0x3c76d7();for(const {range:_0x347e8e,key:_0x32f0df,oldValue:_0x442e7c,newValue:_0x5eab8d}of _0x499e4e)this['markAttributeChange'](_0x347e8e,_0x32f0df,_0x442e7c,_0x5eab8d,{'groupId':_0x4864f3});this['_reduceExistingSuggestions'](_0x47d6da,_0x499e4e);});},{'priority':'lowest'}),_0x33670a['model']['markers']['on']('update:suggestion',(_0x521c5d,_0x1de604,_0x128c97)=>{if(null==_0x128c97){const {id:_0xfadf34}=this['_splitMarkerName'](_0x1de604['name']),_0x53680d=this['_suggestions']['get'](_0xfadf34);_0x53680d&&_0x53680d['addMarkerName'](_0x1de604['name']);}}),_0x33670a['model']['document']['on']('change:data',()=>{const _0x5719df=Array['from'](_0x33670a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x566837=>'suggestion'===this['_splitMarkerName'](_0x566837['name'])['group']);if(0x0===_0x5719df['length'])return;_0x5719df['sort']((_0x31d4d6,_0x57d447)=>{const _0x3532d2=_0x31d4d6['data']['oldRange'],_0x1e056a=_0x57d447['data']['oldRange'];return null===_0x3532d2&&null===_0x1e056a?0x0:null===_0x3532d2&&null!==_0x1e056a?-0x1:null!==_0x3532d2&&null===_0x1e056a?0x1:_0x3532d2['start']['isBefore'](_0x1e056a['start'])?-0x1:0x1;});const _0x191421=new Set(),_0x2def4c=new Set();for(const {name:_0x597a16,data:_0x3f6408}of _0x5719df){const {id:_0x25605e}=this['_splitMarkerName'](_0x597a16);if(null===_0x3f6408['oldRange']){const _0x5c1ca9=this['_handleNewSuggestionMarker'](_0x597a16);_0x2def4c['add'](_0x5c1ca9);}else{const _0x1fad79=this['_suggestions']['get'](_0x25605e);null!==_0x3f6408['newRange']||_0x1fad79['isInContent']?(_0x191421['add'](_0x1fad79['head']),_0x2def4c['add'](_0x1fad79)):this['_removeSuggestion'](_0x1fad79);}}_0x2def4c['size']>0x0&&this['_refreshSuggestionsChain'](_0x2def4c);for(const _0x4a416f of _0x191421)this['fire']('suggestionChanged',_0x4a416f);}),_0x33670a['model']['on']('applyOperation',(_0x365697,_0x51e81c)=>{const _0x51da95=_0x51e81c[0x0];if(!this['_suggestions']['size'])return;if(!_0x51da95['isDocumentOperation'])return;if(_0x51da95['batch']['isUndo']||!_0x51da95['batch']['isLocal'])return;let _0x303787,_0x454d4e;switch(_0x51da95['type']){case'insert':_0x303787=_0x33670a['model']['createPositionAt'](_0x51da95['position']),_0x454d4e=_0x303787['getShiftedBy'](_0x51da95['howMany']);break;case'split':_0x303787=_0x33670a['model']['createPositionAt'](_0x51da95['splitPosition']),_0x454d4e=_0x33670a['model']['createPositionAt'](_0x51da95['moveTargetPosition']);break;case'move':_0x303787=_0x33670a['model']['createPositionAt'](_0x51da95['targetPosition']),_0x454d4e=_0x303787['getShiftedBy'](_0x51da95['howMany']);break;default:return;}const _0x3693b1=_0x33670a['model']['createRange'](_0x303787,_0x454d4e);_0x33670a['model']['change'](()=>{for(const {suggestion:_0x28680e,meta:_0x1cfa4f}of this['_findSuggestions'](_0x3693b1)){if(_0x28680e['isMultiRange'])continue;if('formatInline'==_0x28680e['type'])continue;const _0xf61c42=this['_getAttributeKey'](_0x28680e);if(_0xf61c42&&this['_isBlockAttribute'](_0xf61c42)&&'split'!=_0x51da95['type'])continue;const _0x5416a5=_0x28680e['data']&&_0x28680e['data']['multipleBlocks'];('formatBlock'!=_0x28680e['type']||'split'==_0x51da95['type']&&!_0x5416a5)&&(_0x1cfa4f['containsRangeInObject']||'insertion'==_0x28680e['type']&&_0x1cfa4f['isOwn']||_0x28680e['getFirstRange']()['containsRange'](_0x3693b1)&&this['_breakSuggestionMarker'](_0x28680e,_0x303787,_0x454d4e));}});},{'priority':'lowest'}),_0x33670a['model']['on']('deleteContent',(_0x4bd66f,_0x2b8dd8)=>{const _0x5acd87=_0x2b8dd8[0x0],_0x31ef94=_0x2b8dd8[0x1];if(_0x31ef94&&_0x31ef94['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5acd87['isCollapsed'])return;const _0x4ae9f0=_0x33670a['model']['schema'],{start:_0x307101,end:_0x1f3dbf}=_0x5acd87['getFirstRange'](),_0x1070d1=_0x307101['nodeAfter']&&_0x4ae9f0['isLimit'](_0x307101['nodeAfter'])?null:_0x4ae9f0['getNearestSelectionRange'](_0x307101,'forward'),_0x1d16fe=_0x1f3dbf['nodeBefore']&&_0x4ae9f0['isLimit'](_0x1f3dbf['nodeBefore'])?null:_0x4ae9f0['getNearestSelectionRange'](_0x1f3dbf,'backward'),_0x126cd1=_0x33670a['model']['createRange'](_0x1070d1?_0x1070d1['start']:_0x307101,_0x1d16fe?_0x1d16fe['end']:_0x1f3dbf);_0x33670a['model']['change'](_0x57d6e7=>{this['markDeletion'](_0x126cd1);const _0x35bb37=_0x33670a['model']['schema']['getNearestSelectionRange'](_0x126cd1['start']);_0x5acd87['is']('documentSelection')?_0x57d6e7['setSelection'](_0x35bb37):_0x5acd87['setTo'](_0x35bb37);}),_0x4bd66f['stop']();},{'priority':_0x2d3bd9['normal']+0xa}),_0x33670a['model']['on']('insertContent',(_0x6b6702,_0x25682b)=>{const _0x408fe8=_0x25682b[_0x25682b['length']-0x1];_0x408fe8&&_0x408fe8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33670a['model']['change'](()=>{let _0x3b0ae8=_0x33670a['model']['insertContent'](_0x25682b[0x0],_0x25682b[0x1],_0x25682b[0x2],{'forceDefaultExecution':!0x0});if(!_0x3b0ae8)return;_0x6b6702['return']=_0x3b0ae8['clone']();const _0x4e6192=_0x3b0ae8['end']['nodeBefore'],_0x5260a8=_0x33670a['model']['schema'];_0x4e6192&&_0x5260a8['isBlock'](_0x4e6192)&&!_0x5260a8['isObject'](_0x4e6192)&&(_0x3b0ae8=_0x33670a['model']['createRange'](_0x3b0ae8['start'],_0x33670a['model']['createPositionAt'](_0x4e6192,'end'))),this['markInsertion'](_0x3b0ae8);}),_0x6b6702['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x273f44=new O(_0x33670a,this['_suggestions']);_0x33670a['commands']['add']('acceptSuggestion',_0x273f44),this['enableCommand']('acceptSuggestion');const _0x42b570=new x(_0x33670a,this['_suggestions']);_0x33670a['commands']['add']('discardSuggestion',_0x42b570),this['enableCommand']('discardSuggestion'),_0x33670a['commands']['add']('acceptAllSuggestions',new M(_0x33670a,_0x273f44,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33670a['commands']['add']('discardAllSuggestions',new M(_0x33670a,_0x42b570,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33670a['commands']['add']('acceptSelectedSuggestions',new R(_0x33670a,_0x273f44,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33670a['commands']['add']('discardSelectedSuggestions',new R(_0x33670a,_0x42b570,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x40426c=_0x33670a['plugins']['get']('CommentsRepository');this['listenTo'](_0x40426c,'addComment',(_0x39ff45,{threadId:_0x458edf})=>{const _0x5d2bcd=this['_suggestions']['get'](_0x458edf);_0x5d2bcd&&_0x5d2bcd['commentThread']&&0x1===_0x5d2bcd['commentThread']['length']&&this['_updateSuggestionData'](_0x458edf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x40426c,'removeComment',(_0x1873f5,{threadId:_0x1475fb})=>{const _0x1cb39f=this['_suggestions']['get'](_0x1475fb);_0x1cb39f&&_0x1cb39f['commentThread']&&!_0x1cb39f['commentThread']['length']&&this['_updateSuggestionData'](_0x1475fb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5041c3){const _0x23e7f2=_0x361e87([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4efd21=0x3d8d0df,_0x264b8d=0x3df5aff^_0x4efd21,_0x51ea8b=window[_0x361e87([0x44,0x61,0x74,0x65])][_0x361e87([0x6e,0x6f,0x77])](),_0x401500=_0x5041c3[_0x361e87([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x162877=new window[(_0x361e87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29b766=>{_0x401500[_0x361e87([0x6f,0x6e,0x63,0x65])](_0x361e87([0x72,0x65,0x61,0x64,0x79]),_0x29b766);}),_0x399119={[_0x361e87([0x6b,0x74,0x79])]:_0x361e87([0x45,0x43]),[_0x361e87([0x75,0x73,0x65])]:_0x361e87([0x73,0x69,0x67]),[_0x361e87([0x63,0x72,0x76])]:_0x361e87([0x50,0x2d,0x32,0x35,0x36]),[_0x361e87([0x78])]:_0x361e87([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]),[_0x361e87([0x79])]:_0x361e87([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]),[_0x361e87([0x61,0x6c,0x67])]:_0x361e87([0x45,0x53,0x32,0x35,0x36])},_0x429c24=_0x401500[_0x361e87([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x361e87([0x67,0x65,0x74])](_0x361e87([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53f65c(){let _0x34280b,_0x32eaa2=null,_0x2cfc50=null;try{if(_0x429c24==_0x361e87([0x47,0x50,0x4c]))return _0x361e87([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34280b=_0x2c306b(),!_0x34280b)return _0x361e87([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34280b[_0x361e87([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cfc50=_0xec9113(_0x34280b[_0x361e87([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34280b[_0x361e87([0x6a,0x74,0x69])])),await _0x873b7c()?_0x48a269()?_0x2bd3ee()?_0x361e87([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdf41ba()?(_0x34280b[_0x361e87([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x361e87([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32eaa2=_0x25c08c(_0x361e87([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a23b2()):_0x361e87([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x361e87([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x361e87([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x361e87([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2bd3ee(){const _0x1b219e=[_0x361e87([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x361e87([0x74,0x72,0x69,0x61,0x6c])][_0x361e87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34280b[_0x361e87([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51ea8b/0x3e8:0xe10*_0x264b8d;return _0x34280b[_0x361e87([0x65,0x78,0x70])]<_0x1b219e;}function _0x48a269(){const _0x98b778=_0x34280b[_0x361e87([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x98b778)return!0x1;if(_0x98b778[_0x361e87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x361e87([0x2a])))return!0x0;if(_0x98b778[_0x361e87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x361e87([0x54,0x43])))return!0x0;if(_0x98b778[_0x361e87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x361e87([0x52,0x54,0x43]))){if(_0x558936())return!0x0;if(_0x1bb129()||_0x3b8330())return!0x0;}return!0x1;}function _0xdf41ba(){const _0x4ffc6d=_0x34280b[_0x361e87([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ffc6d||0x0==_0x4ffc6d[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x287634}=new URL(window[_0x361e87([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ffc6d[_0x361e87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x287634))return!0x0;const _0x382a6a=_0x287634[_0x361e87([0x73,0x70,0x6c,0x69,0x74])](_0x361e87([0x2e]));return _0x4ffc6d[_0x361e87([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10da58=>_0x10da58[_0x361e87([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x361e87([0x2a])))[_0x361e87([0x6d,0x61,0x70])](_0x3a45f9=>_0x3a45f9[_0x361e87([0x73,0x70,0x6c,0x69,0x74])](_0x361e87([0x2e])))[_0x361e87([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f601d=>_0x1f601d[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x382a6a[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x361e87([0x6d,0x61,0x70])](_0xc70e69=>Array(_0x382a6a[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc70e69[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x361e87([0x66,0x69,0x6c,0x6c])](_0xc70e69[0x0]===_0x361e87([0x2a])?_0x361e87([0x2a]):'')[_0x361e87([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc70e69))[_0x361e87([0x73,0x6f,0x6d,0x65])](_0x143e28=>_0x382a6a[_0x361e87([0x65,0x76,0x65,0x72,0x79])]((_0x51e1e9,_0x8d71bd)=>_0x143e28[_0x8d71bd]===_0x51e1e9||_0x143e28[_0x8d71bd]===_0x361e87([0x2a])));}function _0x2a23b2(){return _0x32eaa2&&_0x2cfc50?new window[(_0x361e87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41a7b1,_0x55aafc)=>{_0x32eaa2[_0x361e87([0x74,0x68,0x65,0x6e])](_0x41a7b1,_0x55aafc),_0x2cfc50[_0x361e87([0x74,0x68,0x65,0x6e])](_0x5bb731=>{_0x5bb731!=_0x361e87([0x56,0x61,0x6c,0x69,0x64])&&_0x41a7b1(_0x5bb731);},_0x55aafc);}):_0x32eaa2||_0x2cfc50||_0x361e87([0x56,0x61,0x6c,0x69,0x64]);}}function _0xec9113(_0x5acbfb,_0x25742d){return new window[(_0x361e87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bc5e4=>{if(_0x2b92f4())return _0x4bc5e4(_0x361e87([0x56,0x61,0x6c,0x69,0x64]));_0x35fbbd(),_0x401500[_0x361e87([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x361e87([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48a50e=!0x1;const _0x3ffbc5=_0x3c76d7();function _0x51585a(_0x336f39){return!!_0x336f39&&(typeof _0x336f39===_0x361e87([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x336f39===_0x361e87([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x336f39[_0x361e87([0x74,0x68,0x65,0x6e])]===_0x361e87([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x336f39[_0x361e87([0x63,0x61,0x74,0x63,0x68])]===_0x361e87([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f4714(_0x3a7ab0){_0x1a73b3(_0x3a7ab0)[_0x361e87([0x74,0x68,0x65,0x6e])](_0x25692b=>{if(!_0x25692b||_0x25692b[_0x361e87([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x361e87([0x6f,0x6b]))return _0x361e87([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4bea6a(_0x141b7(_0x3ffbc5+_0x25742d))!=_0x25692b[_0x361e87([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x361e87([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x361e87([0x56,0x61,0x6c,0x69,0x64]);})[_0x361e87([0x74,0x68,0x65,0x6e])](_0x48f0c7=>(_0x4459da(),_0x48f0c7),()=>{const _0x2de87c=_0x4e9d92();return null==_0x2de87c?(_0x4459da(),_0x361e87([0x56,0x61,0x6c,0x69,0x64])):_0x361e87(_0x51ea8b-_0x2de87c>(0x27d454df^_0x4efd21)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x361e87([0x74,0x68,0x65,0x6e])](_0x4bc5e4)[_0x361e87([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bc5e4(_0x361e87([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x186bb7=0x3ee3e5f^_0x4efd21;function _0x4459da(){const _0x13a660=_0x361e87([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bea6a(_0x141b7(_0x5acbfb)),_0x31b7f7=_0x526d10(_0x4bea6a(window[_0x361e87([0x4d,0x61,0x74,0x68])][_0x361e87([0x63,0x65,0x69,0x6c])](_0x51ea8b/_0x186bb7)));window[_0x361e87([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x361e87([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13a660,_0x31b7f7);}function _0x4e9d92(){const _0x85a4b3=_0x361e87([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bea6a(_0x141b7(_0x5acbfb)),_0x463f4e=window[_0x361e87([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x361e87([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x85a4b3);return _0x463f4e?window[_0x361e87([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x526d10(_0x463f4e),0x10)*_0x186bb7:null;}function _0x1a73b3(_0x1c7f11){return new window[(_0x361e87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fa793,_0x18ec9e)=>{_0x1c7f11[_0x361e87([0x74,0x68,0x65,0x6e])](_0x3fa793,_0x18ec9e),window[_0x361e87([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18ec9e,0x3d9041f^_0x4efd21);});}}_0x401500[_0x361e87([0x6f,0x6e])](_0x361e87([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe57beb,_0x31b1ba)=>{if(_0x31b1ba[0x0]!=_0x5acbfb)return _0x4bc5e4(_0x361e87([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31b1ba[0x1]={..._0x31b1ba[0x1],[_0x361e87([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ffbc5};},{[_0x361e87([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x361e87([0x68,0x69,0x67,0x68])}),_0x401500[_0x361e87([0x6f,0x6e])](_0x361e87([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b17ba=>{_0x51585a(_0x2b17ba[_0x361e87([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48a50e=!0x0,_0x1f4714(_0x2b17ba[_0x361e87([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x361e87([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x361e87([0x6c,0x6f,0x77])}),_0x162877[_0x361e87([0x74,0x68,0x65,0x6e])](()=>{_0x48a50e||_0x4bc5e4(_0x361e87([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b92f4(){return _0x401500[_0x361e87([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x361e87([0x76,0x69,0x65,0x77])][_0x361e87([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x361e87([0x61,0x75,0x74,0x6f]);}function _0x35fbbd(){_0x401500[_0x361e87([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x361e87([0x76,0x69,0x65,0x77])][_0x361e87([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x361e87([0x61,0x75,0x74,0x6f]);}}function _0x25c08c(_0x14f4fa){const _0x55e34a=[new window[(_0x361e87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x294ff1=>setTimeout(_0x294ff1,0x3d1ee13^_0x4efd21)),_0x162877[_0x361e87([0x74,0x68,0x65,0x6e])](()=>new window[(_0x361e87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473630=>{let _0x5c0adb=0x0;_0x401500[_0x361e87([0x6d,0x6f,0x64,0x65,0x6c])][_0x361e87([0x6f,0x6e])](_0x361e87([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e1d5b,_0x45eeef)=>{_0x45eeef[0x0][_0x361e87([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c0adb++,_0x5c0adb==(0x3d8d537^_0x4efd21)&&(_0x473630(),_0x4e1d5b[_0x361e87([0x6f,0x66,0x66])]());});}))];return window[_0x361e87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x361e87([0x72,0x61,0x63,0x65])](_0x55e34a)[_0x361e87([0x74,0x68,0x65,0x6e])](()=>_0x14f4fa);}async function _0x29e5ab(){await _0x162877,_0x401500[_0x361e87([0x6d,0x6f,0x64,0x65,0x6c])][_0x361e87([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58e3b0,_0x401500[_0x361e87([0x6d,0x6f,0x64,0x65,0x6c])][_0x361e87([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58e3b0,_0x401500[_0x361e87([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x361e87([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x558936(){return _0x1aaeed(_0x361e87([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1eddc5(_0x361e87([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x361e87([0x73,0x74,0x61,0x74,0x65])]==_0x361e87([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1bb129(){return _0x1aaeed(_0x361e87([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 _0x3b8330(){return _0x1aaeed(_0x361e87([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2755c1(_0xb6b12c){const _0x2617d4=_0x1a48c1();_0x401500[_0x2617d4]=_0x361e87([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb6b12c,_0xb6b12c!=_0x361e87([0x56,0x61,0x6c,0x69,0x64])&&_0x29e5ab();}function _0x1a48c1(){const _0x1afe5a=window[_0x361e87([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x361e87([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x361e87([0x6e,0x6f,0x77])]())[_0x361e87([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x361e87([0x2e]),'');let _0x187103=_0x361e87([0x52]);for(let _0x2faa81=0x0;_0x2faa81<_0x1afe5a[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2faa81+=0x2){let _0x41207e=window[_0x361e87([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1afe5a[_0x361e87([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2faa81,_0x2faa81+0x2));_0x41207e>=_0x23e7f2[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x41207e-=_0x23e7f2[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x187103+=_0x23e7f2[_0x41207e];}return _0x187103;}function _0x2c306b(){const _0x28066f=_0x429c24[_0x361e87([0x73,0x70,0x6c,0x69,0x74])](_0x361e87([0x2e]));if(0x3!=_0x28066f[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x17cf83(_0x28066f[0x1]);function _0x17cf83(_0x2edafd){const _0x21ab74=_0x16555a(_0x2edafd);return _0x21ab74&&_0x2d2159()?_0x21ab74:null;function _0x2d2159(){const _0x474130=_0x21ab74[_0x361e87([0x6a,0x74,0x69])],_0x4170ee=window[_0x361e87([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x474130[_0x361e87([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x474130[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x400bff={..._0x21ab74,[_0x361e87([0x6a,0x74,0x69])]:_0x474130[_0x361e87([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x474130[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x400bff[_0x361e87([0x76,0x63])],_0x141b7(_0x400bff)==_0x4170ee;}}}async function _0x873b7c(){let _0xe81419=!0x0;try{const _0x4759f1=_0x429c24[_0x361e87([0x73,0x70,0x6c,0x69,0x74])](_0x361e87([0x2e])),[_0x83ddc1,_0x23922e,_0x45cd22]=_0x4759f1;return _0x18e282(_0x83ddc1),await _0x27616c(_0x83ddc1,_0x23922e,_0x45cd22),_0xe81419;}catch{return!0x1;}function _0x18e282(_0x46c53b){const _0x3c0b9e=_0x16555a(_0x46c53b);_0x3c0b9e&&_0x3c0b9e[_0x361e87([0x61,0x6c,0x67])]==_0x361e87([0x45,0x53,0x32,0x35,0x36])||(_0xe81419=!0x1);}async function _0x27616c(_0x15576d,_0x4bb09b,_0x5a00d5){const _0x308de6=window[_0x361e87([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x361e87([0x66,0x72,0x6f,0x6d])](_0x3d24f0(_0x5a00d5),_0x5f0f37=>_0x5f0f37[_0x361e87([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29a28e=new window[(_0x361e87([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x361e87([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15576d+_0x361e87([0x2e])+_0x4bb09b),_0x1d1a95=window[_0x361e87([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x361e87([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d1a95)return;const _0x3143fb=await _0x1d1a95[_0x361e87([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x361e87([0x6a,0x77,0x6b]),_0x399119,{[_0x361e87([0x6e,0x61,0x6d,0x65])]:_0x361e87([0x45,0x43,0x44,0x53,0x41]),[_0x361e87([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x361e87([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x361e87([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d1a95[_0x361e87([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x361e87([0x6e,0x61,0x6d,0x65])]:_0x361e87([0x45,0x43,0x44,0x53,0x41]),[_0x361e87([0x68,0x61,0x73,0x68])]:{[_0x361e87([0x6e,0x61,0x6d,0x65])]:_0x361e87([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3143fb,_0x308de6,_0x29a28e)||(_0xe81419=!0x1);}}function _0x16555a(_0x543efd){return _0x543efd[_0x361e87([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x361e87([0x65,0x79]))?JSON[_0x361e87([0x70,0x61,0x72,0x73,0x65])](_0x3d24f0(_0x543efd)):null;}function _0x3d24f0(_0x3fe787){return window[_0x361e87([0x61,0x74,0x6f,0x62])](_0x3fe787[_0x361e87([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x361e87([0x2b]))[_0x361e87([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x361e87([0x2f])));}function _0x141b7(_0xe56408){let _0x5920af=0x1505;function _0x3041b4(_0x558e02){for(let _0x355d20=0x0;_0x355d20<_0x558e02[_0x361e87([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x355d20++){const _0x2deee7=_0x558e02[_0x361e87([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x355d20);_0x5920af=(_0x5920af<<0x5)+_0x5920af+_0x2deee7,_0x5920af&=_0x5920af;}}function _0xfff1b7(_0x27b9ac){Array[_0x361e87([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27b9ac)?_0x27b9ac[_0x361e87([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xfff1b7):_0x27b9ac&&typeof _0x27b9ac==_0x361e87([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x361e87([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27b9ac)[_0x361e87([0x73,0x6f,0x72,0x74])]()[_0x361e87([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x243d88,_0x3fc74c])=>{_0x3041b4(_0x243d88),_0xfff1b7(_0x3fc74c);}):_0x3041b4(window[_0x361e87([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27b9ac));}return _0xfff1b7(_0xe56408),_0x5920af>>>0x0;}function _0x4bea6a(_0x7d5b14){return _0x7d5b14[_0x361e87([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x361e87([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x361e87([0x30]));}function _0x526d10(_0xb460e7){return _0xb460e7[_0x361e87([0x73,0x70,0x6c,0x69,0x74])]('')[_0x361e87([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x361e87([0x6a,0x6f,0x69,0x6e])]('');}function _0x1aaeed(_0x5b2320){return _0x401500[_0x361e87([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x361e87([0x68,0x61,0x73])](_0x5b2320);}function _0x1eddc5(_0x2a7012){return _0x401500[_0x361e87([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x361e87([0x67,0x65,0x74])](_0x2a7012);}function _0x58e3b0(){}function _0x361e87(_0x420867){return _0x420867['map'](_0x1828a8=>String['fromCharCode'](_0x1828a8))['join']('');}_0x2755c1(await _0x53f65c());}(this);}set['adapter'](_0xf4c3a0){if(this['_adapter'])throw new _0x23fcf7('track-changes-adapter-already-set',this);this['_adapter']=_0xf4c3a0;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2d547d=!0x1,toJSON:_0x35496d=!0x1}={}){const _0x50b418=[];for(const _0x32637d of this['_suggestions']['values']())_0x2d547d&&!_0x32637d['isInContent']||_0x50b418['push'](_0x32637d);return _0x35496d?_0x50b418['map'](_0x22e0cb=>_0x22e0cb['toJSON']()):_0x50b418;}['getSuggestion'](_0x2128a1){const _0x163939=this['_suggestions']['get'](_0x2128a1);if(!_0x163939)throw new _0x23fcf7('track-changes-suggestion-not-found',this);return _0x163939;}['hasSuggestion'](_0x58d005){return this['_suggestions']['has'](_0x58d005);}['addSuggestionData'](_0x1f4739){const {authorId:_0xcb9506,id:_0x388523,originalSuggestionId:_0x25bd49,attributes:_0x2abbd9}=_0x1f4739,[_0x47ffc3,_0x574dcd]=_0x1f4739['type']['split'](':'),_0x30b352=this['_suggestions']['get'](_0x388523)||this['_createSuggestion'](_0x47ffc3,_0x574dcd,_0x388523,_0xcb9506,_0x2abbd9,_0x25bd49);if(this['_addThreadToSuggestion'](_0x30b352),this['_checkSuggestionCorrectness'](_0x30b352,_0x47ffc3,_0x574dcd||null,_0xcb9506),_0x30b352['createdAt']=_0x1f4739['createdAt'],_0x30b352['_isDataLoaded']=!0x0,_0x2abbd9&&_0x2abbd9['@external']){const _0x47d107=_0x2abbd9['@external'],_0x5636f7=this['_getExternalAuthor'](_0x47d107['authorName']);_0x30b352['authoredAt']=_0x47d107['createdAt'],_0x30b352['author']=_0x5636f7,_0x30b352['isExternal']=!0x0;}else _0x30b352['authoredAt']=_0x1f4739['createdAt'];switch(_0x1f4739['data']&&(_0x30b352['data']=_0x1f4739['data']),_0x1f4739['attributes']&&(_0x30b352['attributes']=_0x1f4739['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x30b352['_saved']=!0x0),this['_suggestionState']['get'](_0x30b352)){case'notReady':this['_suggestionState']['set'](_0x30b352,'dataReady');break;case'markerReady':_0x30b352['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x30b352])),this['_refreshSuggestionsChain'](new Set([_0x30b352])),this['_suggestionState']['set'](_0x30b352,'ready'),this['fire']('suggestionLoaded',_0x30b352)):this['_suggestionState']['set'](_0x30b352,'removed');}return _0x30b352;}['acceptSuggestion'](_0x7665cb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c0d82 of _0x7665cb['getAllAdjacentSuggestions']())_0x5c0d82['accept']();});});}['discardSuggestion'](_0x201fef){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5dd4bd of _0x201fef['getAllAdjacentSuggestions']())_0x5dd4bd['discard']();});});}['enableCommand'](_0xc33b8d,_0x2bcc6d){const _0x5720dd=this['editor']['commands']['get'](_0xc33b8d);if(!_0x5720dd)throw new _0x23fcf7('track-changes-command-not-found',this,{'commandName':_0xc33b8d});if(this['_enabledCommands']['has'](_0x5720dd))throw new _0x23fcf7('track-changes-enable-command-twice',this,{'commandName':_0xc33b8d});this['_enabledCommands']['add'](_0x5720dd),_0x2bcc6d&&_0x5720dd['on']('execute',(_0x2aedd8,_0x268ad1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x268ad1['length']>0x0&&_0x268ad1[_0x268ad1['length']-0x1]&&_0x268ad1[_0x268ad1['length']-0x1]['forceDefaultExecution']?_0x268ad1['pop']():(_0x2aedd8['return']=_0x2bcc6d((..._0x2ef7f3)=>_0x5720dd['execute'](..._0x2ef7f3,{'forceDefaultExecution':!0x0}),..._0x268ad1),_0x2aedd8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x42267d){let _0xca60d9,_0x11a4fa;const _0x36fc58=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xca60d9=_0x42267d();}catch(_0x3ac352){_0x11a4fa=_0x3ac352;}return _0x36fc58||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x11a4fa&&_0x23fcf7['rethrowUnexpectedError'](_0x11a4fa,this),_0xca60d9;}['markInsertion'](_0x518939,_0x170d12=null,_0x516d9a={}){if(_0x518939['isCollapsed'])return null;const _0x419cb0=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x516d9a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x395ecc,meta:_0x568dc6}of this['_findSuggestions'](_0x518939,'insertion'))if(_0x568dc6['isOwn']){if(!_0x568dc6['isNextTo']){if(_0x568dc6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!en(_0x395ecc,_0x516d9a))continue;return _0x395ecc;}if(en(_0x395ecc,_0x516d9a))return _0x395ecc;this['_breakSuggestionMarker'](_0x395ecc,_0x518939['start'],_0x518939['end']);break;}if(_0x170d12==_0x395ecc['subType']&&en(_0x395ecc,_0x516d9a)){const _0x301c0f=_0x395ecc['getFirstRange']();return _0x301c0f['start']['isEqual'](_0x518939['end'])?this['_setSuggestionRange'](_0x395ecc,this['_model']['createRange'](_0x518939['start'],_0x301c0f['end'])):this['_setSuggestionRange'](_0x395ecc,this['_model']['createRange'](_0x301c0f['start'],_0x518939['end'])),_0x395ecc;}}const _0x2b8026=_0x3c76d7(),_0x3f4e12=_0x419cb0['id'],_0x1e5ed4=_0x170d12?'insertion:'+_0x170d12:'insertion',_0x56ed65=this['_setSuggestionData']({'id':_0x2b8026,'type':_0x1e5ed4,'createdAt':new Date(),'authorId':_0x3f4e12,'attributes':_0x516d9a});return this['_addSuggestionMarker'](_0x1e5ed4,_0x2b8026,_0x3f4e12,_0x518939),_0x56ed65;}['markMultiRangeInsertion'](_0x1e0855,_0x2edbf7='multi',_0x59fc18={}){const _0xa131fb=this['editor']['plugins']['get']('Users')['me'],_0x2186aa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2edbf7,'join');this['_trackingSessionId']&&(_0x59fc18['trackingSessionId']=this['_trackingSessionId']);for(const _0x45b25a of this['getSuggestions']())if(_0x45b25a['author']['id']==_0xa131fb['id']&&'insertion'==_0x45b25a['type']&&_0x45b25a['subType']==_0x2edbf7&&en(_0x45b25a,_0x59fc18)&&(_0x2186aa(_0x45b25a['getRanges'](),_0x1e0855)||_0x2186aa(_0x1e0855,_0x45b25a['getRanges']()))){for(const _0x2d3934 of _0x1e0855)_0x45b25a['addRange'](_0x2d3934);return _0x45b25a;}for(const {suggestion:_0x587134,meta:_0x5dd200}of this['_findSuggestions'](_0x1e0855,'insertion')){if(!_0x5dd200['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5dd200['containsRangeInObject'])continue;if(!en(_0x587134,_0x59fc18))continue;let _0x2dbd64=!0x0;for(const _0x2c99c7 of _0x587134['getRanges']())for(const _0x38bd4e of _0x1e0855)if(!_0x2c99c7['containsRange'](_0x38bd4e)){_0x2dbd64=!0x1;break;}if(_0x2dbd64)return _0x587134;}const _0x270fc9=_0x3c76d7(),_0x5f123a=_0xa131fb['id'],_0x25df7f='insertion:'+_0x2edbf7,_0xce2825=this['_setSuggestionData']({'id':_0x270fc9,'type':_0x25df7f,'createdAt':new Date(),'authorId':_0x5f123a,'attributes':_0x59fc18});for(const _0xda2905 of _0x1e0855)this['_addSuggestionMarker'](_0x25df7f,_0x270fc9,_0x5f123a,_0xda2905,T['getMultiRangeId']());return _0xce2825;}['markInlineFormat'](_0x5c97da,_0x59c1c8,_0x283797=null,_0x1c2137={}){if(_0x283797=_0x283797||Wt(_0x59c1c8),_0x5c97da['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1c2137['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x214b79=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x283797,'accept');return this['forceDefaultExecution'](()=>_0x214b79([_0x5c97da],_0x59c1c8,_0x1c2137)),null;}const _0x327ab7=this['editor']['plugins']['get']('Users')['me'],_0x532a18=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4c0ec5,meta:_0x1b35fa}of this['_findSuggestions'](_0x5c97da,'insertion'))_0x1b35fa['isOwn']&&!_0x1b35fa['isInsideObject']&&_0x532a18['push'](..._0x4c0ec5['getRanges']());}const _0x1015f2=function(_0x25a5e6,_0x522021){const _0x562db4=[];for(const _0x25026e of _0x522021){const _0x4723dc=_0x25a5e6['getIntersection'](_0x25026e);_0x4723dc&&_0x562db4['push'](_0x4723dc);}return _0x562db4;}(_0x5c97da,_0x532a18),_0x5cbc99=function(_0x2536b3,_0x336d81){const _0x2e7005=[_0x2536b3];for(const _0x5b3a43 of _0x336d81){let _0x4e25f3=0x0;for(;_0x4e25f3<_0x2e7005['length'];){const _0x20eebb=_0x2e7005[_0x4e25f3]['getDifference'](_0x5b3a43);_0x2e7005['splice'](_0x4e25f3,0x1,..._0x20eebb),_0x4e25f3+=_0x20eebb['length'];}}return _0x2e7005;}(_0x5c97da,_0x532a18);_0x1015f2['length']&&this['_model']['change'](()=>{for(const _0x1f8642 of _0x1015f2){const _0x3bcdeb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x283797,'accept');this['forceDefaultExecution'](()=>_0x3bcdeb([_0x1f8642],_0x59c1c8,_0x1c2137));}});for(const _0x35a2d8 of _0x5cbc99){let _0x2fbca1=null,_0xda1427=_0x35a2d8['start'],_0x479f05=_0x35a2d8['end'];for(const {suggestion:_0x17d3da,meta:_0x5bf817}of this['_findSuggestions'](_0x35a2d8,'formatInline')){if(!_0x5bf817['isOwn'])continue;if(_0x17d3da['subType']!=_0x283797)continue;if(!en(_0x17d3da,_0x1c2137))continue;const _0x393287=_0x17d3da['getFirstRange']();if(_0x393287['containsRange'](_0x35a2d8,!0x0))return null;_0xda1427=_0xda1427['isBefore'](_0x393287['start'])?_0xda1427:_0x393287['start'],_0x479f05=_0x479f05['isAfter'](_0x393287['end'])?_0x479f05:_0x393287['end'],_0x2fbca1?_0x393287['start']['isBefore'](_0x2fbca1['getFirstRange']()['start'])?(_0x2fbca1['removeMarkers'](),_0x2fbca1=_0x17d3da):_0x17d3da['removeMarkers']():_0x2fbca1=_0x17d3da;}const _0x55eecb=this['_model']['createRange'](_0xda1427,_0x479f05);if(_0x2fbca1)this['_setSuggestionRange'](_0x2fbca1,_0x55eecb);else{const _0x3fa73d=_0x3c76d7(),_0x400bd2=_0x327ab7['id'];this['_setSuggestionData']({'id':_0x3fa73d,'type':'formatInline:'+_0x283797,'data':_0x59c1c8,'createdAt':new Date(),'authorId':_0x400bd2,'attributes':_0x1c2137}),this['_addSuggestionMarker']('formatInline:'+_0x283797,_0x3fa73d,_0x400bd2,_0x55eecb);}}return null;}['markBlockFormat'](_0x2c9047,_0x1a0070,_0x34a0e2=[],_0x87e171=null,_0x31ae24={}){_0x1a0070['formatGroupId']||(_0x1a0070['formatGroupId']=_0x1a0070['commandName']),_0x1a0070['multipleBlocks']=_0x2c9047['is']('range'),_0x87e171=_0x87e171||Wt(_0x1a0070);const _0x49f5ed=_0x34a0e2['map'](_0x563b76=>Zt(_0x563b76,this['_model'])),_0x1f74d2=_0x2c9047['is']('range')?_0x2c9047:Zt(_0x2c9047,this['_model']);if(this['_trackingSessionId']&&(_0x31ae24['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xaca781=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x87e171,'accept');return this['forceDefaultExecution'](()=>_0xaca781([_0x1f74d2],_0x1a0070,_0x31ae24)),null;}_0x49f5ed['push'](_0x1f74d2);let _0x27008e=!0x0;for(const _0x1167e5 of _0x49f5ed)if(!this['_rangeIsInLocalUserInsertion'](_0x1167e5)){_0x27008e=!0x1;break;}if(_0x27008e&&'always'!==this['_trackFormatChanges']){const _0xe9623b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x87e171,'accept');return this['forceDefaultExecution'](()=>_0xe9623b([_0x1f74d2],_0x1a0070,_0x31ae24)),null;}let _0x27d915=null,_0x44693d=_0x1f74d2['start'],_0x494b7c=_0x1f74d2['end'];for(const {suggestion:_0x512526,meta:_0x50870f}of this['_findSuggestions'](_0x1f74d2,'formatBlock')){if(!_0x50870f['isOwn'])continue;if(_0x50870f['isNextTo']||_0x50870f['containsRangeInObject']||_0x50870f['isInsideObject'])continue;if(_0x512526['data']['formatGroupId']!=_0x1a0070['formatGroupId'])continue;if(!en(_0x512526,_0x31ae24))continue;const _0x58b9db=_0x512526['getFirstRange']();if(_0x512526['subType']==_0x87e171){if(_0x58b9db['containsRange'](_0x1f74d2,!0x0))return null;_0x44693d=_0x44693d['isBefore'](_0x58b9db['start'])?_0x44693d:_0x58b9db['start'],_0x494b7c=_0x494b7c['isAfter'](_0x58b9db['end'])?_0x494b7c:_0x58b9db['end'],_0x27d915?_0x58b9db['start']['isBefore'](_0x27d915['getFirstRange']()['start'])?(_0x27d915['removeMarkers'](),_0x27d915=_0x512526):_0x512526['removeMarkers']():_0x27d915=_0x512526;}else{const _0x307eb1=_0x1f74d2['getIntersection'](_0x58b9db);this['_cutOutSuggestionMarker'](_0x512526,_0x307eb1);}}const _0x35a7d8=this['editor']['plugins']['get']('Users')['me'],_0x285413=_0x3c76d7(),_0x3deb5b=_0x35a7d8['id'];if(_0x27d915)return this['_setSuggestionRange'](_0x27d915,this['_model']['createRange'](_0x44693d,_0x494b7c)),_0x27d915;{const _0x3a300c=this['_setSuggestionData']({'id':_0x285413,'type':'formatBlock:'+_0x87e171,'data':_0x1a0070,'createdAt':new Date(),'authorId':_0x3deb5b,'attributes':_0x31ae24});return this['_addSuggestionMarker']('formatBlock:'+_0x87e171,_0x285413,_0x3deb5b,this['_model']['createRange'](_0x44693d,_0x494b7c)),_0x3a300c;}}['markMultiRangeBlockFormat'](_0x4d2f3b,_0x2ca1a7,_0x31fa7c=[],_0x183b93=null,_0x58c5a7={}){_0x2ca1a7['formatGroupId']||(_0x2ca1a7['formatGroupId']=_0x2ca1a7['commandName']);const _0x450f8f=_0x4d2f3b[0x0];_0x2ca1a7['multipleBlocks']=_0x450f8f['is']('range'),_0x183b93=_0x183b93||Wt(_0x2ca1a7);const _0x188694=_0x31fa7c['map'](_0x5f0864=>Zt(_0x5f0864,this['_model'])),_0x1f9752=_0x450f8f['is']('range')?_0x4d2f3b:_0x4d2f3b['map'](_0x2af842=>Zt(_0x2af842,this['_model']));if(this['_trackingSessionId']&&(_0x58c5a7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3d7b9b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x183b93,'accept');return this['forceDefaultExecution'](()=>_0x3d7b9b(_0x1f9752,_0x2ca1a7,_0x58c5a7)),null;}_0x188694['push'](..._0x1f9752);let _0x2e2f16=!0x0;for(const _0x1d358d of _0x188694)if(!this['_rangeIsInLocalUserInsertion'](_0x1d358d)){_0x2e2f16=!0x1;break;}if(_0x2e2f16&&'always'!==this['_trackFormatChanges']){const _0x41b7e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x183b93,'accept');return this['forceDefaultExecution'](()=>_0x41b7e9(_0x1f9752,_0x2ca1a7,_0x58c5a7)),null;}const _0x14a25d=this['editor']['plugins']['get']('Users')['me'];for(const _0x372ba8 of this['getSuggestions']()){const _0x4d4989=_0x372ba8['data'];if(_0x372ba8['author']['id']!=_0x14a25d['id'])continue;if('formatBlock'!=_0x372ba8['type']||_0x4d4989['formatGroupId']!=_0x2ca1a7['formatGroupId'])continue;if(!en(_0x372ba8,_0x58c5a7))continue;const _0x50d125=_0x372ba8['subType']==_0x183b93;for(let _0x3041a7=0x0;_0x3041a7<_0x1f9752['length'];_0x3041a7++){const _0xe9d56f=_0x1f9752[_0x3041a7];for(const _0x291024 of _0x372ba8['getMarkers']()){const _0x2a7fa0=_0x291024['getRange']();if(_0xe9d56f['isEqual'](_0x2a7fa0)){_0x50d125?(_0x1f9752['splice'](_0x3041a7,0x1),_0x3041a7--):_0x372ba8['removeMarker'](_0x291024['name']);break;}}}}if(0x0==_0x1f9752['length'])return null;const _0x65865a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x183b93,'join');for(const _0x560ea6 of this['getSuggestions']()){const _0x1c889f=_0x560ea6['data'];if(_0x560ea6['author']['id']==_0x14a25d['id']&&('formatBlock'==_0x560ea6['type']&&_0x1c889f['formatGroupId']==_0x2ca1a7['formatGroupId']&&_0x560ea6['subType']==_0x183b93&&en(_0x560ea6,_0x58c5a7)&&(_0x65865a(_0x560ea6['getRanges'](),_0x1f9752)||_0x65865a(_0x1f9752,_0x560ea6['getRanges']())))){for(const _0x555296 of _0x1f9752)_0x560ea6['addRange'](_0x555296);return _0x560ea6;}}const _0x547378=_0x3c76d7(),_0xe0c733=_0x14a25d['id'],_0x451ff9='formatBlock:'+_0x183b93,_0x47ba23=this['_setSuggestionData']({'id':_0x547378,'type':_0x451ff9,'data':_0x2ca1a7,'createdAt':new Date(),'authorId':_0xe0c733,'attributes':_0x58c5a7});for(const _0xda108f of _0x1f9752)this['_addSuggestionMarker'](_0x451ff9,_0x547378,_0xe0c733,_0xda108f,T['getMultiRangeId']());return _0x47ba23;}['markDeletion'](_0x499f40,_0x48f9a8=null,_0x5dcae2={}){if(_0x499f40['isCollapsed'])return null;const _0x147d5d=this['editor']['plugins']['get']('Users')['me'],_0x58a51e=new _0xdb3ad2(_0x499f40['start'],_0x499f40['end']);this['_trackingSessionId']&&(_0x5dcae2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1de1ef,meta:_0x2d5047}of this['_findSuggestions'](_0x58a51e,'insertion'))if(_0x2d5047['isOwn']&&!_0x2d5047['isNextTo']){if(_0x1de1ef['isMultiRange']){const _0x3c1f4d=_0x1de1ef['getRanges']()['filter'](_0x21f0aa=>'$graveyard'!=_0x21f0aa['root']['rootName']);_0x3c1f4d['every'](_0x1465cb=>_0x58a51e['containsRange'](_0x1465cb,!0x0))&&_0x1de1ef['discard']();if(_0x3c1f4d['some'](_0x4e98e0=>_0x4e98e0['containsRange'](_0x58a51e,!0x0))){const _0x573527=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48f9a8,'accept');return this['forceDefaultExecution'](()=>_0x573527([_0x58a51e],null,_0x5dcae2)),null;}}else{const _0x1e6925=_0x58a51e['getIntersection'](_0x1de1ef['getFirstRange']());null!==_0x1e6925&&_0x1de1ef['_onDiscard']([_0x1e6925],null,_0x5dcae2);}}if(_0x58a51e['detach'](),_0x58a51e['isCollapsed']||'$graveyard'==_0x58a51e['root']['rootName'])return null;let _0x436a6b=null,_0xe7c3f9=_0x58a51e['start'],_0x53a6e7=_0x58a51e['end'];const _0x1f694a=this['_findSuggestions'](_0x58a51e,'deletion');for(const {suggestion:_0x517712,meta:_0x17b2b7}of _0x1f694a){const _0x4cd6cb=this['_model']['createRange'](_0xe7c3f9,_0x53a6e7);if(_0x17b2b7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17b2b7['containsRangeInObject']&&!_0x17b2b7['isInsideObject'])){if(_0x517712['isMultiRange']){if(!en(_0x517712,_0x5dcae2))continue;let _0x1a4008=!0x0;for(const _0x531bf0 of _0x517712['getRanges']()){if(_0x531bf0['containsRange'](_0x4cd6cb,!0x0))return _0x517712;_0x4cd6cb['containsRange'](_0x531bf0)||(_0x1a4008=!0x1);}_0x1a4008&&_0x517712['discard']();}else{const _0x5114fd=_0x517712['getFirstRange']();if(_0x5114fd['containsRange'](_0x4cd6cb,!0x0))return _0x517712;if(!en(_0x517712,_0x5dcae2)){_0x4cd6cb['containsRange'](_0x5114fd)?_0x517712['removeMarkers']():_0x5114fd['containsPosition'](_0xe7c3f9)?_0xe7c3f9=_0x5114fd['end']:_0x5114fd['containsPosition'](_0x53a6e7)&&(_0x53a6e7=_0x5114fd['start']);continue;}_0xe7c3f9=_0xe7c3f9['isBefore'](_0x5114fd['start'])?_0xe7c3f9:_0x5114fd['start'],_0x53a6e7=_0x53a6e7['isAfter'](_0x5114fd['end'])?_0x53a6e7:_0x5114fd['end'],_0x5dcae2=Object['assign']({},_0x517712['attributes']),_0x436a6b?_0x5114fd['start']['isBefore'](_0x436a6b['getFirstRange']()['start'])?(_0x436a6b['removeMarkers'](),_0x436a6b=_0x517712):_0x517712['removeMarkers']():_0x436a6b=_0x517712;}}}if(_0x436a6b)return this['_setSuggestionRange'](_0x436a6b,this['_model']['createRange'](_0xe7c3f9,_0x53a6e7)),_0x436a6b;{const _0x4f6e0f=_0x3c76d7(),_0x351550=this['_model']['createRange'](_0xe7c3f9,_0x53a6e7),_0x5ca238=_0x147d5d['id'],_0x1aa40a=_0x48f9a8?'deletion:'+_0x48f9a8:'deletion',_0x36240f=this['_setSuggestionData']({'id':_0x4f6e0f,'type':_0x1aa40a,'createdAt':new Date(),'authorId':_0x5ca238,'attributes':_0x5dcae2});return this['_addSuggestionMarker'](_0x1aa40a,_0x4f6e0f,_0x5ca238,_0x351550),_0x36240f;}}['markMultiRangeDeletion'](_0x9ae6f,_0x2ace6a='multi',_0x5246df={}){const _0xb5a197=this['editor']['plugins']['get']('Users')['me'],_0x6cec28=_0x9ae6f['map'](_0x45b342=>new _0xdb3ad2(_0x45b342['start'],_0x45b342['end'])),_0x11d198=new Set();this['_trackingSessionId']&&(_0x5246df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xddf8fe,meta:_0x28d06e}of this['_findSuggestions'](_0x6cec28,'insertion'))_0x28d06e['isOwn']&&!_0x28d06e['isNextTo']&&_0x11d198['add'](_0xddf8fe);for(const _0x53db07 of _0x11d198)if(_0x53db07['isMultiRange']){const _0x50cc63=_0x53db07['getRanges']();(!_0x53db07['attributes']||!_0x53db07['attributes']['skipNestingCheck'])&&(_0x50cc63['every'](_0x405964=>_0x6cec28['some'](_0x394d17=>_0x394d17['containsRange'](_0x405964,!0x0)))&&_0x53db07['discard']());if(_0x6cec28['every'](_0x4ad670=>_0x50cc63['some'](_0x19cef9=>_0x19cef9['containsRange'](_0x4ad670,!0x0)))){const _0x5e6f24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ace6a,'accept');return this['forceDefaultExecution'](()=>_0x5e6f24(_0x9ae6f,null,_0x5246df)),null;}}else{const _0x57d863=_0x53db07['getFirstRange']();_0x6cec28['some'](_0x9d8b57=>_0x9d8b57['containsRange'](_0x57d863,!0x0))&&_0x53db07['discard']();if(_0x6cec28['every'](_0x4e2e0e=>_0x57d863['containsRange'](_0x4e2e0e,!0x0))){const _0x5dbe60=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ace6a,'accept');return this['forceDefaultExecution'](()=>_0x5dbe60(_0x6cec28,null,_0x5246df)),null;}}const _0x27f104=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2ace6a,'join');let _0xd3e729=null;for(const _0x1b9659 of this['getSuggestions']())if(_0x1b9659['author']['id']==_0xb5a197['id']&&_0x1b9659['isInContent']&&'deletion'==_0x1b9659['type']&&_0x1b9659['subType']==_0x2ace6a&&en(_0x1b9659,_0x5246df)&&(_0x27f104(_0x1b9659['getRanges'](),_0x6cec28)||_0x27f104(_0x6cec28,_0x1b9659['getRanges']()))){if(_0xd3e729){if(_0x1b9659['commentThread']&&_0x1b9659['commentThread']['length'])continue;for(const _0x5388a1 of _0x1b9659['getRanges']())_0xd3e729['isIntersectingWithRange'](_0x5388a1)||_0xd3e729['addRange'](_0x5388a1);_0x1b9659['removeMarkers']();}else{_0xd3e729=_0x1b9659;for(const _0x59d759 of _0x6cec28)_0x1b9659['isIntersectingWithRange'](_0x59d759)||_0x1b9659['addRange'](_0x59d759);}}if(_0xd3e729)return _0xd3e729;_0x11d198['clear']();for(const {suggestion:_0x4eb623,meta:_0x3d6187}of this['_findSuggestions'](_0x6cec28,'deletion'))_0x3d6187['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d6187['containsRangeInObject']&&!_0x3d6187['isInsideObject'])&&en(_0x4eb623,_0x5246df)&&_0x11d198['add'](_0x4eb623);for(const _0x5e1864 of _0x11d198){const _0x5a4707=_0x5e1864['getRanges']();if(!_0x5246df||!_0x5246df['skipNestingCheck']){if(_0x6cec28['every'](_0x5ec74b=>_0x5a4707['some'](_0x1d974f=>_0x1d974f['containsRange'](_0x5ec74b,!0x0))))return _0x5e1864;}(!_0x5e1864['attributes']||!_0x5e1864['attributes']['skipNestingCheck'])&&(_0x5a4707['every'](_0x51105c=>_0x6cec28['some'](_0xedf5a=>_0xedf5a['containsRange'](_0x51105c,!0x0)))&&_0x5e1864['discard']());}const _0x4be475=_0x3c76d7(),_0x2fa003=_0xb5a197['id'],_0x1bcbd6='deletion:'+_0x2ace6a,_0x1a1b08=this['_setSuggestionData']({'id':_0x4be475,'type':_0x1bcbd6,'createdAt':new Date(),'authorId':_0x2fa003,'attributes':_0x5246df});for(const _0x56998b of _0x6cec28)_0x56998b['detach'](),_0x56998b['isCollapsed']||'$graveyard'==_0x56998b['root']['rootName']||this['_addSuggestionMarker'](_0x1bcbd6,_0x4be475,_0x2fa003,_0x56998b,T['getMultiRangeId']());return _0x1a1b08;}['markAttributeChange'](_0x3c5263,_0x228023,_0x14246d,_0x50eb3b,_0x421b15){if(_0x3c5263['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x351b9b=this['editor']['plugins']['get']('Users')['me']['id'],_0x5b55ab=Array['from'](this['_suggestions']['values']())['filter'](_0x418526=>'attribute'==_0x418526['type']&&_0x418526['data']['key']==_0x228023&&_0x418526['isIntersectingWithRange'](_0x3c5263));if(this['_trackingSessionId']&&(_0x421b15['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4dc36b=this['_findSuggestions'](_0x3c5263,'insertion')['filter'](({meta:_0x9d68cc})=>_0x9d68cc['isOwn']&&!_0x9d68cc['isInsideObject']&&!_0x9d68cc['isNextTo'])['map'](({suggestion:_0x573436})=>_0x573436);_0x5b55ab['unshift'](..._0x4dc36b);}const _0x28453d=new Map([[_0x3c5263,_0x14246d]]);for(const _0x16c281 of _0x5b55ab){const _0x554151='attribute'==_0x16c281['type']?_0x16c281['data']['oldValue']:void 0x0,_0x42d335=_0x16c281['getFirstRange'](),_0x45470d=Array['from'](_0x28453d['keys']())['find'](_0x29e02d=>_0x29e02d['isIntersecting'](_0x42d335));if(!_0x45470d)continue;const _0x544edd=_0x45470d['getDifference'](_0x42d335);this['_isBlockAttribute'](_0x228023)&&'insertion'==_0x16c281['type']&&0x0!=_0x544edd['length']||(_0x28453d['delete'](_0x45470d),_0x544edd['forEach'](_0x1d0965=>{_0x28453d['set'](_0x1d0965,_0x14246d);}),'insertion'!=_0x16c281['type']&&_0x554151!=_0x50eb3b&&_0x28453d['set'](_0x45470d['getIntersection'](_0x42d335),_0x554151));}const _0x2ba342=[];for(const [_0x4033e2,_0xa66651]of _0x28453d){const _0x466d89=_0x3c76d7(),_0x501009={'key':_0x228023,'oldValue':_0xa66651,'newValue':_0x50eb3b};_0x228023['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':_0x228023});const _0x4674c4=('attribute:'+(_0x228023+'|'+Wt({'newValue':_0x50eb3b})))['substring'](0x0,0x3c),_0x3f4f1f=this['_setSuggestionData']({'id':_0x466d89,'type':_0x4674c4,'data':_0x501009,'createdAt':new Date(),'authorId':_0x351b9b,'attributes':_0x421b15});_0x2ba342['push'](_0x3f4f1f),this['_addSuggestionMarker'](_0x4674c4,_0x466d89,_0x351b9b,_0x4033e2);}return _0x2ba342;}['enableDefaultAttributesIntegration'](_0xd3ec6d){this['enableCommand'](_0xd3ec6d,(_0x5e2e78,..._0x21184e)=>{this['recordAttributeChanges'](()=>{_0x5e2e78(..._0x21184e);});});}['registerBlockAttribute'](_0x5c1181){this['editor']['plugins']['get'](_0x3ae150)['registerBlockAttribute'](_0x5c1181);}['registerInlineAttribute'](_0x2b68aa){this['editor']['plugins']['get'](_0x3ae150)['registerInlineAttribute'](_0x2b68aa);}['startTrackingSession'](_0xfb53d2){return this['_trackingSessionId']=void 0x0!==_0xfb53d2?_0xfb53d2:_0x3c76d7(),this['_trackingSessionId'];}['_getAttributeKey'](_0x11d42f){return'attribute'==_0x11d42f['type']?_0x11d42f['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x488a05){if(0x0==_0x488a05['length'])return;const _0x294385=this['editor'],_0x5039e8=_0x294385['plugins']['get'](_0x2bd63a),_0xc77705=[];_0x294385['model']['change'](_0x469142=>{for(let _0x19cb92=0x0;_0x19cb92<_0x488a05['length'];_0x19cb92++){const _0x361e68=_0x488a05[_0x19cb92];if(_0x361e68['baseVersion']=_0x294385['model']['document']['version'],_0x361e68['isDocumentOperation']=!0x0,_0x5039e8['isMarkedRemoveOperation'](_0x361e68)){const _0x4d4231=_0x11880a(_0x361e68['newRange'],_0x294385['model']);_0xc77705['unshift'](_0xdb3ad2['fromRange'](_0x4d4231));}else switch(_0x361e68['type']){case'rename':{const _0x491b05=_0x361e68['oldName'],_0x3ecc2a=_0x361e68['newName'];if(_0x491b05==_0x3ecc2a)break;_0x469142['batch']['addOperation'](_0x361e68),_0x294385['model']['applyOperation'](_0x361e68);const _0x528144='$elementName',_0x1a3908=_0x361e68['position'],_0x43d6a5=_0x294385['model']['createRange'](_0x1a3908,_0x294385['model']['createPositionAt'](_0x1a3908['nodeAfter'],'end'));this['markAttributeChange'](_0x43d6a5,_0x528144,_0x491b05,_0x3ecc2a,{'groupId':_0x3c76d7()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x24c631=_0x361e68['oldValue'],_0x30bbec=_0x361e68['newValue'];if(_0x24c631==_0x30bbec)break;_0x469142['batch']['addOperation'](_0x361e68),_0x294385['model']['applyOperation'](_0x361e68);const _0x4cb329=_0x361e68['key'];if(!this['_isRegisteredAttribute'](_0x4cb329))break;const _0x1af204=_0x11880a(_0x361e68['range'],_0x294385['model']);this['markAttributeChange'](_0x1af204,_0x4cb329,_0x24c631,_0x30bbec,{'groupId':_0x3c76d7()});break;}case'insert':{_0x469142['batch']['addOperation'](_0x361e68),_0x294385['model']['applyOperation'](_0x361e68);if(_0x488a05[_0x19cb92+0x1]&&'move'==_0x488a05[_0x19cb92+0x1]['type'])break;const _0x4c46d8=_0x361e68['position'],_0x4e7827=_0x361e68['howMany'],_0x2b3433=_0x11880a(_0x294385['model']['createRange'](_0x4c46d8,_0x4c46d8['getShiftedBy'](_0x4e7827)),_0x294385['model']);this['markInsertion'](_0x2b3433);break;}case'split':{_0x469142['batch']['addOperation'](_0x361e68),_0x294385['model']['applyOperation'](_0x361e68);const _0x90bc3c=_0x361e68['splitPosition'],_0x5ee106=_0x361e68['moveTargetPosition'];this['markInsertion'](_0x294385['model']['createRange'](_0x90bc3c,_0x5ee106));break;}case'move':case'remove':_0x469142['batch']['addOperation'](_0x361e68),_0x294385['model']['applyOperation'](_0x361e68);}}for(const _0x42db7f of _0xc77705)_0x42db7f['detach'](),this['markDeletion'](_0x42db7f);});}['_setSuggestionRange'](_0x5d2448,_0x502d2f){const _0x1436b9=_0x5d2448['getFirstMarker']();this['_model']['change'](_0xc2b973=>{_0xc2b973['updateMarker'](_0x1436b9,{'range':_0x502d2f});});}['_addThreadToSuggestion'](_0x3ea7f0){const _0x1fb7be=_0x3ea7f0['id'],_0x56227b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1fb7be)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56227b,'threadId':_0x1fb7be,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5efb21=this['_commentsRepository']['getCommentThread'](_0x1fb7be);_0x5efb21['unbind']('isRemovable'),_0x5efb21['isRemovable']=!0x1,_0x3ea7f0['commentThread']=_0x5efb21;}['_checkSuggestionCorrectness'](_0x59b7fb,_0x168c9b,_0x11c270,_0x10afb3){if(_0x59b7fb['type']!=_0x168c9b||_0x59b7fb['subType']!=_0x11c270||_0x59b7fb['creator']['id']!=_0x10afb3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x23fcf7('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x51d25b,_0x1317b1){const _0x426e51=_0x51d25b['getFirstRange']();if(_0x1317b1['isEqual'](_0x426e51))_0x51d25b['removeMarkers']();else{if(_0x426e51['containsRange'](_0x1317b1)){const _0x5c7180=this['_model']['createPositionAt'](_0x1317b1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x51d25b,this['_model']['createRange'](_0x426e51['start'],_0x5c7180));const _0x103a5b=_0x3c76d7(),_0x24c5b5=_0x51d25b['creator']['id'],_0x413993=_0x51d25b['type']+':'+_0x51d25b['subType'];this['_setSuggestionData']({'id':_0x103a5b,'type':_0x413993,'createdAt':new Date(),'authorId':_0x24c5b5,'data':_0x51d25b['data'],'attributes':_0x51d25b['attributes']});const _0x26e538=this['_model']['createPositionAt'](_0x1317b1['end']['parent'],'after'),_0x43e70f=this['_model']['createRange'](_0x26e538,_0x426e51['end']);this['_addSuggestionMarker'](_0x413993,_0x103a5b,_0x24c5b5,_0x43e70f);}else{if(_0x426e51['containsPosition'](_0x1317b1['start'])){const _0x3c025e=this['_model']['createPositionAt'](_0x1317b1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x51d25b,this['_model']['createRange'](_0x426e51['start'],_0x3c025e));}else{const _0x59b4bb=this['_model']['createPositionAt'](_0x1317b1['end']['parent'],'after');this['_setSuggestionRange'](_0x51d25b,this['_model']['createRange'](_0x59b4bb,_0x426e51['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x297b4f){for(const {suggestion:_0x17f8fa,meta:_0x451032}of this['_findSuggestions'](_0x297b4f,'insertion')){if(!_0x451032['isOwn'])continue;const _0x1fb64a=_0x17f8fa['getRanges']();for(const _0x67f49d of _0x1fb64a)if(!_0x297b4f['getDifference'](_0x67f49d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x56be08){return this['editor']['plugins']['get']('Users')['getUser'](_0x56be08);}['_getExternalAuthor'](_0x106732){const _0x248842=this['editor']['plugins']['get']('Users'),_0x1bdca3=_0x2241e1('external:'+_0x106732),_0xcc9f69=_0x248842['getUser'](_0x1bdca3);return _0xcc9f69||_0x248842['addUser']({'id':_0x1bdca3,'name':_0x106732});}['_createSuggestion'](_0x4d25bb,_0x28b5a5,_0x439c82,_0x20f236,_0xed31d6,_0x4755a8){const _0x1dc0dd=this['_getAuthorFromId'](_0x20f236);if(!_0x1dc0dd)throw new _0x23fcf7('track-changes-user-not-found',this,{'authorId':_0x20f236,'suggestionId':_0x439c82});const _0xd17163=this['_suggestionFactory']['buildSuggestion'](_0x4d25bb,_0x28b5a5,_0x439c82,_0x1dc0dd,_0xed31d6,_0x150709=>{this['_updateSuggestionData'](_0x439c82,{'attributes':_0x150709});const _0x39bc60=this['getSuggestion'](_0x439c82);this['_joinWithAdjacentSuggestions'](new Set([_0x39bc60])),this['_refreshSuggestionsChain'](new Set([_0x39bc60]));},_0x4755a8);return this['listenTo'](_0xd17163,'accept',()=>{this['_updateSuggestionData'](_0x439c82,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xd17163,'discard',()=>{this['_updateSuggestionData'](_0x439c82,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x439c82,_0xd17163),this['_suggestionState']['set'](_0xd17163,'notReady'),_0xd17163;}['_splitMarkerName'](_0x34a906){return _0x263db7(_0x34a906);}['_breakSuggestionMarker'](_0x4843cb,_0x4e1d6a,_0x2ec33f){const _0x1e36ef=_0x4843cb['getFirstRange'](),_0x6294a5=_0x1e36ef['start'],_0x20f934=_0x1e36ef['end'];this['_setSuggestionRange'](_0x4843cb,this['_model']['createRange'](_0x6294a5,_0x4e1d6a));const _0x4574ad=_0x3c76d7(),_0x8611c9=_0x4843cb['creator']['id'],_0x15a889=_0x4843cb['type']+(_0x4843cb['subType']?':'+_0x4843cb['subType']:'');this['_setSuggestionData']({'id':_0x4574ad,'type':_0x15a889,'createdAt':new Date(),'authorId':_0x8611c9,'originalSuggestionId':_0x4843cb['_originalSuggestionId']||_0x4843cb['id'],'attributes':_0x4843cb['attributes'],'data':_0x4843cb['data']});const _0x41c18d=this['_getAttributeKey'](_0x4843cb);('formatBlock'==_0x4843cb['type']||_0x41c18d&&this['_isBlockAttribute'](_0x41c18d))&&(_0x2ec33f=this['_model']['createPositionBefore'](_0x2ec33f['parent'])),this['_addSuggestionMarker'](_0x15a889,_0x4574ad,_0x8611c9,this['_model']['createRange'](_0x2ec33f,_0x20f934));}['_findSuggestions'](_0x26b309,_0x4fb13b=null){const _0x7b8ac5=[],_0x442d65=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x26b309)||(_0x26b309=[_0x26b309]);for(const _0xa72011 of this['getSuggestions']()){if(!_0xa72011['isInContent'])continue;if(_0x4fb13b&&_0xa72011['type']!=_0x4fb13b)continue;let _0x4c3c61=!0x1;for(const _0x1ce702 of _0xa72011['getRanges']()){for(const _0x2fea1b of _0x26b309){const _0x50d9d1=_0x2fea1b['start']['isEqual'](_0x1ce702['end'])||_0x2fea1b['end']['isEqual'](_0x1ce702['start']);if(_0x50d9d1||_0x2fea1b['getIntersection'](_0x1ce702)){const _0x15c8d4=_0x2fea1b['containsRange'](_0x1ce702)&&qt(this['_model']['schema'],_0x1ce702['start'],_0x2fea1b),_0x51c4f9=_0x1ce702['containsRange'](_0x2fea1b)&&qt(this['_model']['schema'],_0x2fea1b['start'],_0x1ce702);_0x7b8ac5['push']({'suggestion':_0xa72011,'meta':{'isOwn':_0x442d65==_0xa72011['author'],'isNextTo':_0x50d9d1,'isInsideObject':_0x15c8d4,'containsRangeInObject':_0x51c4f9}}),_0x4c3c61=!0x0;break;}}if(_0x4c3c61)break;}}return _0x7b8ac5;}['_addSuggestionMarker'](_0xc377bc,_0x1e2b47,_0x513a3b,_0x5b8e5c,_0x499d93){this['_model']['change'](_0x7a8f=>{let _0x242d7b='suggestion:'+_0xc377bc+':'+_0x1e2b47+':'+_0x513a3b;_0x499d93&&(_0x242d7b=_0x242d7b+':'+_0x499d93),_0x7a8f['addMarker'](_0x242d7b,{'range':_0x5b8e5c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x593768){const _0x396527=_0x593768['previous'],_0x3f7c45=_0x593768['next'];_0x593768['previous']=null,_0x593768['next']=null,null!=_0x396527&&_0x396527['next']==_0x593768&&(_0x396527['next']=_0x3f7c45),null!=_0x3f7c45&&_0x3f7c45['previous']==_0x593768&&(_0x3f7c45['previous']=_0x396527),'ready'==this['_suggestionState']['get'](_0x593768)&&(this['_suggestionState']['set'](_0x593768,'removed'),this['fire']('suggestionUnloaded',_0x593768,_0x396527,_0x3f7c45));}['_setSuggestionData'](_0x2a613b){const _0x3b0e3a=_0x2a613b['id'],_0x359ba7=this['addSuggestionData'](_0x2a613b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x28ed6c=this['editor']['plugins']['get']('PendingActions'),_0x33e448=_0x359ba7['hasComments'],_0x18640b=_0x359ba7['subType']?_0x359ba7['type']+':'+_0x359ba7['subType']:_0x359ba7['type'],_0x3ea8ba=this['editor']['locale'],_0x486fcf=_0x28ed6c['add'](o(_0x3ea8ba,'PENDING_ACTION_SUGGESTION')),_0x2e3698={'id':_0x3b0e3a,'type':_0x18640b,'hasComments':_0x33e448,'data':_0x2a613b['data']||null,'originalSuggestionId':_0x2a613b['originalSuggestionId']||null,'attributes':_0x359ba7['attributes']};this['_adapter']['addSuggestion'](_0x2e3698)['then'](_0x54ab60=>{_0x359ba7['_saved']=!0x0,_0x28ed6c['remove'](_0x486fcf),_0x54ab60&&_0x54ab60['createdAt']&&(this['_suggestions']['get'](_0x3b0e3a)['createdAt']=_0x54ab60['createdAt']);})['catch'](_0xc5aa1c=>{throw _0x454ef2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x359ba7['discard']();}),_0x359ba7['stopListening'](),this['_suggestions']['delete'](_0x359ba7['id']),this['_suggestionState']['delete'](_0x359ba7),_0xc5aa1c;});}return _0x359ba7;}['_isBlockAttribute'](_0x2ce1c5){return this['editor']['plugins']['get'](_0x3ae150)['isBlockAttribute'](_0x2ce1c5);}['_isInlineAttribute'](_0x2ef1cf){return this['editor']['plugins']['get'](_0x3ae150)['isInlineAttribute'](_0x2ef1cf);}['_updateSuggestionData'](_0xc09e6,_0x37e84f){const _0x2b5a06=this['editor']['plugins']['get']('PendingActions'),_0x1ef4c5=this['getSuggestion'](_0xc09e6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1ef4c5['_saved']){const _0x24c553=_0x2b5a06['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xc09e6,_0x37e84f)['then'](()=>{_0x2b5a06['remove'](_0x24c553);});}else _0x1ef4c5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xc09e6,_0x37e84f);});}}['_getSuggestionData'](_0xc921c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x23fcf7('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xc921c);}['_handleNewSuggestionMarker'](_0x4b69c1){const {id:_0x2970d4,type:_0x1f53fd,subType:_0x5c8df6,authorId:_0x234c71}=this['_splitMarkerName'](_0x4b69c1),_0x2c7722=this['_suggestions']['get'](_0x2970d4)||this['_createSuggestion'](_0x1f53fd,_0x5c8df6,_0x2970d4,_0x234c71,{});switch(this['_checkSuggestionCorrectness'](_0x2c7722,_0x1f53fd,_0x5c8df6,_0x234c71),this['_suggestionState']['get'](_0x2c7722)){case'notReady':this['_getSuggestionData'](_0x2970d4)['then'](_0x24fb40=>{let _0x5a3cec=Promise['resolve']();_0x24fb40['hasComments']&&(_0x5a3cec=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2970d4})),_0x5a3cec['then'](()=>{this['addSuggestionData'](_0x24fb40)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c7722,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2970d4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c7722,'ready'),this['fire']('suggestionLoaded',_0x2c7722);break;case'ready':this['fire']('suggestionChanged',_0x2c7722);}return _0x2c7722['addMarkerName'](_0x4b69c1),_0x2c7722;}['_refreshSuggestionsChain'](_0x48b3d9){const _0x275763=Array['from'](_0x48b3d9),_0x54c7bc=_0x275763['filter'](_0x24e733=>'attribute'==_0x24e733['type']);this['_refreshAttributeSuggestionsChain'](_0x54c7bc);const _0xf72307=_0x275763['filter'](_0x51618f=>!_0x51618f['isMultiRange']&&'attribute'!=_0x51618f['type']),_0x4e5c5e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x347288=>!_0x347288['isMultiRange']&&'attribute'!=_0x347288['type']),_0x59b972=_0x4e5c5e['filter'](_0xe99c9d=>!_0x48b3d9['has'](_0xe99c9d)),_0x36e149=new Map(_0x4e5c5e['map'](_0x505a13=>[_0x505a13,this['_suggestionFactory']['getSuggestionCallback'](_0x505a13['type'],_0x505a13['subType'],'chain')])),_0x4ad4fb=new Map(_0x4e5c5e['map'](_0x233ba3=>[_0x233ba3,_0x233ba3['getFirstRange']()])),_0x2c21a6=new Set(),_0xe2e2a8=new Set();for(let _0x3eb726=0x0;_0x3eb726<_0xf72307['length'];_0x3eb726++)_0x433b22(_0xf72307[_0x3eb726],_0xf72307,_0x3eb726+0x1);for(let _0x312ea6=0x0;_0x312ea6<_0xf72307['length'];_0x312ea6++)_0x433b22(_0xf72307[_0x312ea6],_0x59b972,0x0);const _0x4cebce=new Set();for(let _0x5ea984=0x0;_0x5ea984<_0xf72307['length'];_0x5ea984++){const _0x748da7=_0xf72307[_0x5ea984];!_0xe2e2a8['has'](_0x748da7)&&_0x748da7['previous']&&(_0x4cebce['add'](_0x748da7['previous']),_0x748da7['previous']['next']===_0x748da7&&(_0x748da7['previous']['next']=null),_0x748da7['previous']=null),!_0x2c21a6['has'](_0x748da7)&&_0x748da7['next']&&(_0x4cebce['add'](_0x748da7['next']),_0x748da7['next']['previous']===_0x748da7&&(_0x748da7['next']['previous']=null),_0x748da7['next']=null);}function _0x433b22(_0x30c2ba,_0x4ab1a6,_0x5e6829){for(let _0x3f7533=_0x5e6829;_0x3f7533<_0x4ab1a6['length'];_0x3f7533++){const _0x18ee74=_0x405985(_0x30c2ba,_0x4ab1a6[_0x3f7533]);_0x18ee74&&(_0x18ee74[0x0]['next']=_0x18ee74[0x1],_0x18ee74[0x1]['previous']=_0x18ee74[0x0],_0x2c21a6['add'](_0x18ee74[0x0]),_0xe2e2a8['add'](_0x18ee74[0x1]));}}function _0x405985(_0x547572,_0x2472c9){if(_0x547572['author']['id']!==_0x2472c9['author']['id'])return null;const _0xd24958=_0x36e149['get'](_0x547572)(_0x547572,_0x2472c9,_0x4ad4fb['get'](_0x547572),_0x4ad4fb['get'](_0x2472c9));if(!_0xd24958)return null;return _0x36e149['get'](_0x2472c9)(_0x547572,_0x2472c9,_0x4ad4fb['get'](_0x547572),_0x4ad4fb['get'](_0x2472c9))?_0xd24958[0x1]['commentThread']&&_0xd24958[0x1]['commentThread']['length']?null:_0xd24958:null;}_0x4cebce['size']&&this['_refreshSuggestionsChain'](_0x4cebce);}['_refreshAttributeSuggestionsChain'](_0x5c40b6){if(0x0==_0x5c40b6['length'])return;const _0x7a003=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x587737=>'attribute'==_0x587737['type']&&_0x587737['_isDataLoaded']),_0x51eec9=[],_0x54e140=new Map();for(const _0x387006 of _0x7a003){const _0x22d0cc=_0x2241e1(_0x387006['attributes']);_0x54e140['has'](_0x22d0cc)||(_0x54e140['set'](_0x22d0cc,_0x51eec9['length']),_0x51eec9['push']([]));const _0x157eac=_0x54e140['get'](_0x22d0cc);_0x51eec9[_0x157eac]['push'](_0x387006);}!(function(){_0x51eec9['sort']((_0x33cabf,_0x7bbc21)=>{const _0x807e43=_0x33cabf[0x0]['createdAt'],_0x87da4a=_0x7bbc21[0x0]['createdAt'];return _0x807e43==_0x87da4a?_0x33cabf[0x0]['attributes']['groupId']<_0x7bbc21[0x0]['attributes']['groupId']?-0x1:0x1:_0x807e43<_0x87da4a?-0x1:0x1;});for(const _0x30363f of _0x51eec9)_0x30363f['sort']((_0x213551,_0x4299fb)=>_0x213551['id']<_0x4299fb['id']?-0x1:0x1);}());for(let _0x29c1e6=0x0;_0x29c1e6<_0x51eec9['length'];_0x29c1e6++){if(0x0==_0x51eec9[_0x29c1e6]['length'])continue;const _0x22001d=[];for(let _0x4d241d=_0x29c1e6+0x1;_0x4d241d<_0x51eec9['length'];_0x4d241d++)0x0!=_0x51eec9[_0x4d241d]['length']&&_0x3347ba(_0x51eec9[_0x29c1e6],_0x51eec9[_0x4d241d])&&_0x22001d['push'](_0x4d241d);for(const _0x31e3ff of _0x22001d)_0x51eec9[_0x29c1e6]=_0x51eec9[_0x29c1e6]['concat'](_0x51eec9[_0x31e3ff]),_0x51eec9[_0x31e3ff]=[];}for(const _0x4a60bf of _0x51eec9)for(let _0x3e0ad4=0x0;_0x3e0ad4<_0x4a60bf['length'];_0x3e0ad4++){const _0x551c2e=_0x4a60bf[_0x3e0ad4+0x1]||null;_0x4a60bf[_0x3e0ad4]['next']!==_0x551c2e&&(_0x4a60bf[_0x3e0ad4]['next']=_0x551c2e);}for(const _0x1680ec of _0x51eec9)for(let _0x35f374=0x0;_0x35f374<_0x1680ec['length'];_0x35f374++){const _0x3d5a3d=_0x1680ec[_0x35f374-0x1]||null;_0x1680ec[_0x35f374]['previous']!==_0x3d5a3d&&(_0x1680ec[_0x35f374]['previous']=_0x3d5a3d);}function _0x3347ba(_0xab5e72,_0x5da4ec){if(_0xab5e72[0x0]['attributes']['groupId']!==_0x5da4ec[0x0]['attributes']['groupId']&&_0xab5e72[0x0]['author']!==_0x5da4ec[0x0]['author'])return!0x1;if(!function(_0x35605a,_0x3ac1a6){if(!_0x35605a['hasComments']&&!_0x3ac1a6['hasComments'])return!0x0;if(_0x35605a['hasComments']&&_0x3ac1a6['hasComments'])return!0x1;if(_0x35605a['hasComments']&&_0x3ac1a6['createdAt']<_0x35605a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3ac1a6['hasComments']&&_0x35605a['createdAt']<_0x3ac1a6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xab5e72[0x0],_0x5da4ec[0x0]))return!0x1;const _0x3bc74a=Jt(_0xab5e72[0x0]['attributes'],['groupId','trackingSessionId']),_0x2624dc=Jt(_0x5da4ec[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2cea1e(_0x3bc74a,_0x2624dc))return!0x1;if(_0xab5e72[0x0]['attributes']['groupId']==_0x5da4ec[0x0]['attributes']['groupId'])return!0x0;if(_0xab5e72[0x0]['attributes']['trackingSessionId']!==_0x5da4ec[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xab5e72['every'](_0x8fd29b=>_0x5da4ec['some'](_0x103d4a=>_0x8fd29b['getFirstRange']()['isEqual'](_0x103d4a['getFirstRange']())))&&_0x5da4ec['every'](_0x419184=>_0xab5e72['some'](_0x4b6561=>_0x419184['getFirstRange']()['isEqual'](_0x4b6561['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4f2d90){const _0x2c763f=Array['from'](_0x4f2d90),_0x518807=this['getSuggestions']({'skipNotAttached':!0x0}),_0x47caf5=_0x518807['filter'](_0x37d3f4=>!_0x4f2d90['has'](_0x37d3f4)),_0x5349d6=new Map(_0x2c763f['map'](_0x5b84c0=>[_0x5b84c0,this['_suggestionFactory']['getSuggestionCallback'](_0x5b84c0['type'],_0x5b84c0['subType'],'join')])),_0x2feedb=new Map(_0x518807['map'](_0x54535a=>[_0x54535a,_0x54535a['getRanges']()]));for(let _0x4e2a77=0x0;_0x4e2a77<_0x2c763f['length'];_0x4e2a77++){if(_0x4dc7d7(this,_0x2c763f[_0x4e2a77],_0x2c763f,_0x4e2a77+0x1))return!0x0;}for(let _0x5eca70=0x0;_0x5eca70<_0x2c763f['length'];_0x5eca70++){if(_0x4dc7d7(this,_0x2c763f[_0x5eca70],_0x47caf5,0x0))return!0x0;}return!0x1;function _0x4dc7d7(_0x163888,_0x5529a1,_0x55ccef,_0x338dcc){for(let _0xf73b83=_0x338dcc;_0xf73b83<_0x55ccef['length'];_0xf73b83++){const _0x32a083=_0x55ccef[_0xf73b83];if(_0x32a083['type']!==_0x5529a1['type']||_0x32a083['author']['id']!==_0x5529a1['author']['id']||_0x32a083['subType']!==_0x5529a1['subType'])continue;if(!nn(_0x5529a1,_0x32a083))continue;if('attribute'==_0x5529a1['type']&&_0x5529a1['data']['oldValue']!=_0x32a083['data']['oldValue'])continue;if('attribute'==_0x5529a1['type']&&_0x163888['_isBlockAttribute'](_0x5529a1['data']['key']))continue;if('formatBlock'==_0x5529a1['type']){const _0x4ac47e=_0x163888['editor']['model'],_0x589e9d=_0x5529a1['getContainedElement']();if(_0x589e9d&&(_0x4ac47e['schema']['isObject'](_0x589e9d)||_0x4ac47e['schema']['isLimit'](_0x589e9d)))continue;}const _0x5c32f8=_0x5349d6['get'](_0x5529a1),_0x18e82a=_0x2feedb['get'](_0x5529a1),_0x353ee2=_0x2feedb['get'](_0x32a083),_0x87afea=_0x5529a1['commentThread']&&_0x5529a1['commentThread']['length'],_0x3d48de=_0x32a083['commentThread']&&_0x32a083['commentThread']['length'];if(!_0x87afea&&_0x5c32f8(_0x353ee2,_0x18e82a))return _0x163888['_joinSuggestions'](_0x32a083,_0x5529a1),_0x2feedb['delete'](_0x5529a1),!0x0;if(!_0x3d48de&&_0x5c32f8(_0x18e82a,_0x353ee2))return _0x163888['_joinSuggestions'](_0x5529a1,_0x32a083),_0x2feedb['delete'](_0x32a083),!0x0;}return!0x1;}}['_joinSuggestions'](_0x183725,_0x37de43){if(_0x183725['isMultiRange']){for(const _0x17b884 of _0x37de43['getRanges']())_0x183725['addRange'](_0x17b884);}else{const _0x292c72=_0x37de43['getFirstRange']()['end'];this['_setSuggestionRange'](_0x183725,this['_model']['createRange'](_0x183725['getFirstRange']()['start'],_0x292c72));}_0x37de43['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c8fef,_0x4949bc,_0x385e4e){const _0x3b8bb1=_0x5c8fef['startsWith']('format')||_0x5c8fef['startsWith']('attribute')?'FORMATTING':_0x5c8fef['toUpperCase']();return o(this['editor']['locale'],_0x4949bc+'_'+_0x3b8bb1+'_SUGGESTION_ANNOUNCEMENT',_0x385e4e);}['_initAriaMarkerChangeAnnouncements'](){const _0x487294=this['editor'];if(!_0x487294['ui'])return;const {ariaLiveAnnouncer:_0x4edf55}=_0x487294['ui'];_0x40f17(this['_model'],({left:_0x4661b8,entered:_0x4ecfe4})=>{for(const _0x393d6f of _0x4661b8){const {group:_0x50b65d,type:_0x46fcea}=this['_splitMarkerName'](_0x393d6f['name']);if('suggestion'===_0x50b65d){_0x4edf55['announce'](this['_getMarkerAnnouncementText'](_0x46fcea,'LEAVE'));break;}}for(const _0x2c2369 of _0x4ecfe4){const {group:_0x177477,type:_0x20efeb}=this['_splitMarkerName'](_0x2c2369['name']);if('suggestion'===_0x177477){_0x4edf55['announce'](this['_getMarkerAnnouncementText'](_0x20efeb,'ENTER',_0x323673(_0x21c950)));break;}}});}['_processAttributeChanges'](_0x395cb4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x10a3f7=this['editor'],_0x18d7e8=_0x10a3f7['model']['document']['differ']['getChanges']();if(0x0==_0x18d7e8['length'])return!0x1;const _0x27103f=[],_0x3f16f1=_0x18d7e8['filter'](_0x2570f7=>'attribute'==_0x2570f7['type']),_0x3eb3d8=_0x18d7e8['filter'](_0x30ff37=>'insert'==_0x30ff37['type']&&'$text'!=_0x30ff37['name']),_0xb10fa0=_0x18d7e8['filter'](_0x1de1d9=>'remove'==_0x1de1d9['type']&&'$text'!=_0x1de1d9['name']);for(const _0x59324d of _0x3f16f1)_0x27103f['push']({'key':_0x59324d['attributeKey'],'newValue':_0x59324d['attributeNewValue'],'oldValue':_0x59324d['attributeOldValue'],'range':Yt(_0x59324d['range'],_0x10a3f7['model'])});for(const _0x427e1c of _0x3eb3d8){const _0x139003=_0xb10fa0['find'](_0x561681=>_0x561681['position']['isEqual'](_0x427e1c['position']));_0x139003&&_0x27103f['push']({'key':m,'newValue':_0x427e1c['name'],'oldValue':_0x139003['name'],'range':_0x10a3f7['model']['createRangeOn'](_0x427e1c['position']['nodeAfter'])});}return 0x0!=_0x27103f['length']&&this['_reduceExistingSuggestions'](_0x395cb4,_0x27103f);}['_processAttributeSuggestions'](_0x51b205){let _0xff3c8d=!0x1;const _0x3dfec0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56d3a2=>_0x56d3a2['data']['newRange']&&_0x56d3a2['name']['startsWith']('suggestion:attribute:'));for(const _0x58407a of _0x3dfec0){const {subType:_0x3d8fd9,id:_0x41369b}=this['_splitMarkerName'](_0x58407a['name']),_0x31d66e=_0x3d8fd9['split']('|')[0x0];for(const _0x5c9688 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5c9688['id']!=_0x41369b&&'attribute'==_0x5c9688['type']&&_0x5c9688['data']&&_0x5c9688['data']['key']==_0x31d66e&&_0x5c9688['getFirstRange']()['isIntersecting'](_0x58407a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5c9688,_0x58407a['data']['newRange'],_0x51b205),_0xff3c8d=!0x0);}return _0xff3c8d;}['recordAttributeChanges'](_0x2a311e){this['_recordAttributeSuggestions']=!0x0,_0x2a311e();}['_isRegisteredAttribute'](_0x57627b){return this['editor']['plugins']['get'](_0x3ae150)['isRegisteredAttribute'](_0x57627b);}['_reduceExistingSuggestions'](_0x1de69b,_0xf6ae28){if(0x0==_0xf6ae28['length'])return!0x1;let _0x106f3e=!0x1;for(const _0x3bdfe1 of _0xf6ae28){const _0xc18e06=this['_findSuggestions'](_0x3bdfe1['range'],'attribute')['filter'](_0x3c7cc7=>!_0x3c7cc7['meta']['isNextTo'])['map'](_0x36b60a=>_0x36b60a['suggestion']),_0x361203=_0x2241e1({'newValue':_0x3bdfe1['newValue']});_0xc18e06['filter'](_0x25f13a=>{const [_0x442a36,_0x2fb743]=_0x25f13a['subType']['split']('|');return _0x442a36==_0x3bdfe1['key']&&_0x2fb743!=_0x361203;})['forEach'](_0x24e55d=>{this['_reduceSuggestionAttributeRange'](_0x24e55d,_0x3bdfe1['range'],_0x1de69b),_0x106f3e=!0x0;});}return _0x106f3e;}['_reduceSuggestionAttributeRange'](_0x505530,_0x49f483,_0xde4ab6){const _0x198bab=_0x505530['getFirstRange']()['getDifference'](_0x49f483);0x0!==_0x198bab['length']?0x1!==_0x198bab['length']?this['_breakSuggestionMarker'](_0x505530,_0x49f483['start'],_0x49f483['end']):this['_setSuggestionRange'](_0x505530,_0x198bab[0x0]):_0xde4ab6['removeMarker'](_0x505530['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x6c4ae6){this['_editor']=_0x6c4ae6,this['_model']=_0x6c4ae6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x344105,_0x89e579,_0x257bcc,_0x4b6ef0,_0x1ef7c9,_0x38e7fd,_0x1cbb08){return new T(this['_model'],{'type':_0x344105,'subType':_0x89e579,'id':_0x257bcc,'originalSuggestionId':_0x1cbb08,'author':_0x4b6ef0,'creator':_0x4b6ef0,'attributes':_0x1ef7c9,'onAttributesChange':_0x38e7fd,'onAccept':(..._0x5db26c)=>this['getSuggestionCallback'](_0x344105,_0x89e579,'accept')(..._0x5db26c),'onDiscard':(..._0x7fefc5)=>this['getSuggestionCallback'](_0x344105,_0x89e579,'discard')(..._0x7fefc5)});}['registerCustomCallback'](_0x575f94,_0x1864cd,_0x13181b,_0x506c9b){const _0x1394da=_0x575f94+':'+_0x1864cd+':'+_0x13181b;this['_customCallbacks']['set'](_0x1394da,_0x506c9b);}['getSuggestionCallback'](_0xfee264,_0x598536,_0xf11011){const _0x5c54d4=_0xfee264+':'+_0x598536+':'+_0xf11011;return this['_customCallbacks']['get'](_0x5c54d4)||this['_defaultCallbacks']['get'](_0xfee264+':'+_0xf11011);}['_registerDefaultCallbacks'](){const _0x301d1e=()=>!0x1,_0x256c8d=_0x54f7cb=>{_0x54f7cb['sort']((_0x1ef2ae,_0x8b8df9)=>_0x1ef2ae['start']['isBefore'](_0x8b8df9['start'])?0x1:-0x1),this['_model']['change'](_0x5bda1c=>{for(const _0x855c00 of _0x54f7cb){let _0x240d2d;_0x240d2d=_0x855c00['end']['isAtEnd']&&_0x855c00['end']['parent']==_0x855c00['start']['nodeAfter']?_0x5bda1c['createSelection'](_0x855c00['start']['nodeAfter'],'on'):_0x5bda1c['createSelection'](_0x855c00),this['_model']['deleteContent'](_0x240d2d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1c2e9a=(_0x2919f2,_0x7152e4)=>{_0x7152e4&&this['_model']['change'](_0x1c15e5=>{const {commandName:_0x3761f7,commandParams:_0x3a2a09=[]}=_0x7152e4,_0xa8fbee=_0x2919f2['map'](_0x5044f9=>(zt(_0x5044f9)&&(_0x5044f9=this['_model']['createRange'](_0x5044f9['end'])),_0x5044f9))['filter'](_0x22d2b5=>'$graveyard'!==_0x22d2b5['root']['rootName']);if(_0xa8fbee['length']<0x1)return;const _0x1f4ec5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1ff4cd=>_0xdb3ad2['fromRange'](_0x1ff4cd));_0x1c15e5['setSelection'](_0xa8fbee);for(const _0x537dd8 of this['_editor']['commands']['commands']())_0x537dd8['refresh']();_0x3a2a09['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3761f7,..._0x3a2a09);const _0x4ea194=_0x1f4ec5['filter'](_0x37bd64=>'$graveyard'!=_0x37bd64['root']['rootName']);_0x4ea194['length']>0x0&&_0x1c15e5['setSelection'](_0x4ea194);for(const _0x14e29e of _0x1f4ec5)_0x14e29e['detach']();});},_0x138f0c=(_0x5361b5,_0x5463f5)=>0x1==_0x5361b5['length']&&0x1==_0x5463f5['length']&&_0x5361b5[0x0]['end']['isEqual'](_0x5463f5[0x0]['start']),_0x518679=(_0x32debb,_0x50f0f2,_0x50327e,_0x2ec7b3)=>tn(_0x32debb,_0x50f0f2,_0x50327e,_0x2ec7b3)?[_0x32debb,_0x50f0f2]:tn(_0x50f0f2,_0x32debb,_0x2ec7b3,_0x50327e)?[_0x50f0f2,_0x32debb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x301d1e),this['_defaultCallbacks']['set']('insertion:discard',_0x256c8d),this['_defaultCallbacks']['set']('insertion:join',_0x138f0c),this['_defaultCallbacks']['set']('insertion:chain',_0x518679),this['_defaultCallbacks']['set']('deletion:accept',_0x256c8d),this['_defaultCallbacks']['set']('deletion:discard',_0x301d1e),this['_defaultCallbacks']['set']('deletion:join',_0x138f0c),this['_defaultCallbacks']['set']('deletion:chain',_0x518679),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c2e9a),this['_defaultCallbacks']['set']('formatInline:discard',_0x301d1e),this['_defaultCallbacks']['set']('formatInline:join',_0x138f0c),this['_defaultCallbacks']['set']('formatInline:chain',_0x301d1e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c2e9a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x301d1e),this['_defaultCallbacks']['set']('formatBlock:join',_0x138f0c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x301d1e),this['_defaultCallbacks']['set']('attribute:accept',_0x301d1e),this['_defaultCallbacks']['set']('attribute:discard',(_0x32891e,_0x466d34)=>{if(!_0x466d34)return;const _0x45cb43=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x3bfafb=>{if(_0x466d34['key']==m)for(const _0x406f53 of _0x32891e){const _0xbbbf2f=_0x406f53['start']['nodeAfter'],_0x455086=_0x466d34['oldValue'];_0x3bfafb['rename'](_0xbbbf2f,_0x455086);}else{if(_0x45cb43['_isBlockAttribute'](_0x466d34['key'])){for(const _0x1f5529 of _0x32891e)void 0x0!==_0x466d34['oldValue']?_0x3bfafb['setAttribute'](_0x466d34['key'],_0x466d34['oldValue'],_0x1f5529['start']['nodeAfter']):_0x3bfafb['removeAttribute'](_0x466d34['key'],_0x1f5529['start']['nodeAfter']);}else{for(const _0x43b45f of _0x32891e)_0x466d34['oldValue']?_0x3bfafb['setAttribute'](_0x466d34['key'],_0x466d34['oldValue'],_0x43b45f):_0x3bfafb['removeAttribute'](_0x466d34['key'],_0x43b45f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x138f0c);}}function qt(_0x1ced1b,_0xa18ed8,_0x5ad18b){for(const _0x3239ba of _0xa18ed8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3239ba['root']==_0x3239ba)return!0x1;if(!_0x5ad18b['containsItem'](_0x3239ba))return!0x1;if(_0x1ced1b['isObject'](_0x3239ba)||_0x1ced1b['isLimit'](_0x3239ba))return!0x0;}return!0x1;}function zt(_0x87d23f){return _0x87d23f['end']['parent']==_0x87d23f['start']['nodeAfter']&&_0x87d23f['end']['isAtStart'];}function Kt(_0x1abcf7,_0x244f11,_0x2c91c5,_0x2058e1){const _0x46523d=_0x25e759=>!_0x25e759['item']['is']('$textProxy')&&!_0x2058e1['isObject'](_0x25e759['item']),_0x40c338=_0x1abcf7['start']['getLastMatchingPosition'](_0x46523d),_0x49f6ef=_0x1abcf7['end']['getLastMatchingPosition'](_0x46523d,{'direction':'backward'});return(!_0x1abcf7['start']['isEqual'](_0x40c338)||!_0x1abcf7['end']['isEqual'](_0x49f6ef))&&(_0x40c338['isBefore'](_0x49f6ef)?_0x2c91c5['updateMarker'](_0x244f11,{'range':_0x2c91c5['createRange'](_0x40c338,_0x49f6ef)}):_0x2c91c5['removeMarker'](_0x244f11),!0x0);}function Wt(_0x36e4f9){return _0x2241e1(_0x36e4f9);}function Ht(_0x3a393d){const _0x1b694e=_0x3a393d['start']['nodeAfter'];return _0x1b694e&&_0x1b694e['is']('element');}function Qt(_0x48f02f){return zt(_0x48f02f)||function(_0xf92fd2){return _0xf92fd2['start']['parent']==_0xf92fd2['end']['nodeBefore']&&_0xf92fd2['start']['isAtEnd'];}(_0x48f02f);}function Xt(_0x279b24,_0xdac06f){try{const _0x543de3=_0x279b24['getRange']();for(const _0x17bf4a of _0xdac06f)if(_0x279b24!==_0x17bf4a&&_0x543de3&&_0x543de3['isIntersecting'](_0x17bf4a['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0x980d34,_0x444c94){return null==_0x980d34['end']['nodeBefore']&&_0x980d34['end']['parent']==_0x980d34['start']['nodeAfter']?Zt(_0x980d34['start']['nodeAfter'],_0x444c94):_0x980d34;}function Zt(_0x4391ba,_0xdef3a0){const _0x341bdb=_0xdef3a0['schema']['isObject'](_0x4391ba)||_0xdef3a0['schema']['isSelectable'](_0x4391ba);return _0xdef3a0['createRange'](_0xdef3a0['createPositionAt'](_0x4391ba,'before'),_0x341bdb?_0xdef3a0['createPositionAfter'](_0x4391ba):_0xdef3a0['createPositionAt'](_0x4391ba,'end'));}function tn(_0xb9979,_0x1d9757,_0x2dbf17,_0x10a6df){return!!nn(_0xb9979,_0x1d9757)&&_0x2dbf17['end']['isEqual'](_0x10a6df['start']);}function nn(_0x1c0fc1,_0x4cd8f3){if(!_0x1c0fc1['_isDataLoaded']||!_0x4cd8f3['_isDataLoaded'])return!0x1;const _0x3ddbab=new Set(Object['keys'](_0x1c0fc1['attributes'])),_0x3f5ddb=new Set(Object['keys'](_0x4cd8f3['attributes']));if(_0x3ddbab['delete']('groupId'),_0x3f5ddb['delete']('groupId'),0x0==_0x3ddbab['size']&&0x0==_0x3f5ddb['size'])return!0x0;if(_0x3ddbab['size']!=_0x3f5ddb['size'])return!0x1;const _0x24dec8={..._0x1c0fc1['attributes']},_0x57abb0={..._0x4cd8f3['attributes']};return delete _0x24dec8['groupId'],delete _0x57abb0['groupId'],JSON['stringify'](_0x24dec8)==JSON['stringify'](_0x57abb0);}function en(_0x9b4657,_0x5b222b){const _0x3ebc7f=sn(_0x9b4657['attributes']),_0x580823=sn(_0x5b222b);if(!_0x9b4657['_isDataLoaded'])return!0x1;for(const _0x2246f5 of Object['keys'](_0x580823))if(!_0x2cea1e(_0x3ebc7f[_0x2246f5],_0x580823[_0x2246f5]))return!0x1;return!0x0;}function sn(_0x280f41){const _0x233083=Object['assign']({},_0x280f41);return delete _0x233083['skipNestingCheck'],delete _0x233083['tablePasteChainId'],_0x233083;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x46dd8c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ebed3,_0x1e0584,_0x3e40a7,_0x5d0ee6){super(),this['model']=_0x1e0584,this['view']=_0x3e40a7,this['commentThreadController']=_0x5d0ee6,this['_editor']=_0x5ebed3,this['_acceptCommand']=_0x5ebed3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ebed3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x52de88,_0x12a8d2)=>_0x52de88||_0x12a8d2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x472ebd=>_0x472ebd&&this['_editor']['model']['canEditAt'](_0x1e0584['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2d27c6=>_0x2d27c6&&this['_editor']['model']['canEditAt'](_0x1e0584['getRanges']())),this['_pendingAction']=null,_0x3e40a7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3e40a7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3e40a7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3e40a7,'change:isDirty',()=>{_0x3e40a7['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 _0xfd2b84=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xfd2b84);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x58c65c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x41726f,_0x4ecfdb,_0x3836b5,_0x3be49f){super(_0x41726f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x49a279(_0x41726f,o(_0x41726f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4ecfdb['authoredAt']),this['bind']('authoredAt')['to'](_0x4ecfdb),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',_0x4ecfdb,'authoredAt',this,'descriptionParts',(_0x890fca,_0x197150,_0x26daeb)=>{const _0x25cf1d=_0x26daeb['map'](_0x35ea1d=>ls(_0x35ea1d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x890fca-0x1,_0x4ecfdb['author']['name'],_0x197150?_0x3be49f['formatDateTime'](_0x197150):'',new DOMParser()['parseFromString'](_0x25cf1d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1bc983(),this['focusTracker']=new _0x7c8f46(),this['keystrokes']=new _0x30c4ed(),this['focusCycler']=new _0x5ce9b7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x592706=>_0x592706['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4ecfdb,this['_localUser']=_0x3836b5,this['_config']=_0x3be49f,_0x3be49f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x14dc08(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a3571}=this['_config'];this['commentsListView']=new _0x5a3571(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',_0x11bcf8=>_0x11bcf8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2a955e,_0x446f88)=>_0x2a955e||!!_0x446f88);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x629633}=this['_config'],_0x43d04d=new _0x629633(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5aae0e=_0x43d04d['commentInputView'];return _0x43d04d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5aae0e,'value',(_0xb40220,_0x1d163d,_0x1b409a)=>!!_0x1b409a||_0xb40220&&!_0x1d163d),_0x5aae0e['on']('submit',(_0x50f072,_0x30db8e)=>{this['fire']('addComment',_0x30db8e),_0x5aae0e['editor']['setData']('');}),_0x5aae0e['on']('cancel',()=>this['focus']()),_0x5aae0e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x43d04d;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x22b059,_0x2d601a,_0xb98eb2,_0x49833f){super(_0x22b059,_0x2d601a,_0xb98eb2,_0x49833f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x333959=>_0x333959&&_0x333959[0x0]?_0x333959[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x57ad6e,_0x200447)=>{let _0x2ad2e1='';for(const _0x30fcbc of _0x57ad6e)_0x2ad2e1+='<p>'+ls(_0x30fcbc['content'],_0x30fcbc['color'])+'</p>';return _0x200447?_0x2ad2e1:_0x14a905(_0x2ad2e1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x49833f['SuggestionView'](_0x22b059,_0x2d601a,{'formatDateTime':_0x49833f['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 _0x5dd0df=this['bindTemplate'],_0x5ba24b=[this['suggestionView']];return this['commentsListView']&&_0x5ba24b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5ba24b['push'](this['commentThreadInputView']),_0x5ba24b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5dd0df['if']('isActive','ck-suggestion-wrapper--active'),_0x5dd0df['to']('type',_0x195c63=>'ck-suggestion-'+_0x195c63),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':_0x5dd0df['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5ba24b};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x58c65c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5b4666,_0x51870e,_0x1caadb){super(_0x5b4666),this['_model']=_0x51870e,this['_config']=_0x1caadb,this['set']('description',''),this['bind']('authoredAt')['to'](_0x51870e),this['acceptButton']=this['_createButton'](o(_0x5b4666,'Accept\x20suggestion'),_0xe07cbc,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5b4666,'Discard\x20suggestion'),_0x1e820d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x493e21(_0x5b4666,_0x51870e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1bc983([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x7c8f46(),this['keystrokes']=new _0x30c4ed(),this['focusCycler']=new _0x5ce9b7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4820d0=>_0x4820d0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x247350=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x247350['innerHTML']=this['description'],this['on']('change:description',(_0x1e48b6,_0x484c7a,_0x3907cb)=>{_0x247350['innerHTML']=_0x3907cb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2b45c0=this['bindTemplate'],_0x3f3e10=[{'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':_0x2b45c0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b45c0['to']('authoredAt',_0x6466=>this['_config']['formatDateTime'](_0x6466))}]}]},{'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']&&_0x3f3e10['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':_0x3f3e10}]};}['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'](_0x3cd9c8,_0x1fa394,_0x4dca81,_0x11312f,_0x5022ba){const _0x441995=new _0x56b6a0(this['locale']);return _0x441995['set']({'label':_0x3cd9c8,'icon':_0x1fa394,'tooltip':!0x0,'tooltipPosition':_0x5022ba}),_0x441995['extendTemplate']({'attributes':{'class':_0x4dca81}}),_0x441995['on']('execute',()=>{this['fire'](_0x11312f,this['_model']['id']);}),_0x441995;}['_setupKeyboardNavigation'](){const _0x32e7f0=this['element'];this['keystrokes']['listenTo'](_0x32e7f0);for(const _0x2cb858 of this['focusables'])this['focusTracker']['add'](_0x2cb858['element']),this['keystrokes']['listenTo'](_0x2cb858['element']);this['keystrokes']['set']('enter',(_0x59e59a,_0x1ecf77)=>{_0x32e7f0===_0x59e59a['target']&&(this['focusCycler']['focusFirst'](),_0x1ecf77());}),this['keystrokes']['set']('esc',(_0x58b326,_0x22026b)=>{_0x32e7f0!==_0x58b326['target']&&(this['focus'](),_0x22026b());});}}class u extends _0x409a1b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x33bd43,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d15ac){super(_0x4d15ac),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x16dcfe=this['editor']['config'];_0x16dcfe['define']('trackChanges.SuggestionThreadView',fe),_0x16dcfe['define']('trackChanges.SuggestionView',we),_0x16dcfe['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x16dcfe['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2dd4aa,_0x5005e1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x50a34c,_0x4a8391]of this['_handleControllerBuffer']){const _0x38d2ad=this['_suggestionToController']['has'](_0x50a34c);_0x38d2ad||_0x4a8391?_0x38d2ad&&_0x4a8391&&this['_destroyController'](_0x50a34c):this['_initializeController'](_0x50a34c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2dd4aa,_0x5005e1);}['init'](){const _0x2c992a=this['editor'],_0x254ed0=_0x2c992a['plugins']['get']('TrackChangesEditing'),_0x433743=_0x2c992a['plugins']['get']('Annotations'),_0x3c5060=_0x2c992a['plugins']['get']('EditorAnnotations'),_0x1764ad=_0x2c992a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3c5060['addSourceCollector'](()=>{const _0x30acd0=[];for(const [_0x4b4838,_0x2ea0bc]of Array['from'](this['_suggestionToController'])){const _0x269f62=_0x4b4838['getAllAdjacentSuggestions'](),_0x586a5b=[];for(const _0x101651 of _0x269f62){if(!_0x101651['isInContent'])continue;if(_0x101651['isMultiRange']){_0x586a5b['push'](..._0x101651['getRanges']());continue;}const _0x352ac2=_0x101651['getFirstRange']();if(_0x586a5b['length']>0x0){const _0x17fca1=_0x586a5b[0x0]['getJoined'](_0x352ac2);if(_0x17fca1){_0x586a5b[0x0]=_0x17fca1;continue;}}_0x586a5b['push'](_0x352ac2);}_0x30acd0['push']([_0x2ea0bc['view'],_0x586a5b]);}return _0x30acd0;}),this['listenTo'](_0x254ed0,'suggestionLoaded',(_0x13d370,_0x552ff0)=>{this['listenTo'](_0x552ff0,'change:previous',(_0x473cd3,_0x125856,_0xc768b4,_0x5c608c)=>{_0x552ff0['isInContent']&&(null==_0xc768b4?(this['_updateController'](_0x5c608c['head']),this['_handleSuggestionControllerDelayed'](_0x552ff0,!0x1)):(this['_updateController'](_0xc768b4['head']),null==_0x5c608c&&this['_handleSuggestionControllerDelayed'](_0x552ff0,!0x0)));}),null!==_0x552ff0['previous']?this['_updateController'](_0x552ff0['head']):this['_handleSuggestionControllerDelayed'](_0x552ff0,!0x1);}),this['listenTo'](_0x254ed0,'suggestionUnloaded',(_0x18eb24,_0x443282,_0x536858)=>{this['stopListening'](_0x443282,'change:previous'),this['_handleControllerBuffer']['delete'](_0x443282),this['_suggestionToController']['has'](_0x443282)&&this['_destroyController'](_0x443282),_0x536858&&this['_updateController'](_0x536858['head']);}),this['listenTo'](_0x254ed0,'suggestionChanged',(_0x3e0769,_0x3a25b4)=>{this['_updateController'](_0x3a25b4);}),this['listenTo'](_0x433743,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1764ad,'addComment',(_0x2dadc4,{threadId:_0x4d1545,isFromAdapter:_0x99a49c})=>{if(_0x99a49c||!_0x254ed0['hasSuggestion'](_0x4d1545))return;const _0x51a883=_0x254ed0['getSuggestion'](_0x4d1545);this['_suggestionToController']['get'](_0x51a883)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13c78e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x308a18;for(const _0x384388 in _0x13c78e){const _0x12382c=_0x384388,_0x49f29c=_0x13c78e[_0x12382c];if('trackChangesLicenseKeyValid'==_0x49f29c||'trackChangesLicenseKeyInvalid'==_0x49f29c||'trackChangesLicenseKeyExpired'==_0x49f29c||'trackChangesLicenseKeyDomainLimit'==_0x49f29c||'trackChangesLicenseKeyNotAllowed'==_0x49f29c||'trackChangesLicenseKeyEvaluationLimit'==_0x49f29c||'trackChangesLicenseKeyUsageLimit'==_0x49f29c){delete _0x13c78e[_0x12382c],_0x308a18=_0x49f29c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x308a18&&_0x13c78e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x308a18&&_0x13c78e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x308a18&&_0x13c78e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x308a18&&_0x13c78e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x308a18&&_0x13c78e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x308a18&&_0x13c78e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1e98b8){const _0x33dff9=this['_suggestionToController']['get'](_0x1e98b8);if(!_0x33dff9)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x33dff9['view'])||null;}['getSuggestionForAnnotation'](_0x21599d){const _0x38d079=this['_viewToController']['get'](_0x21599d['innerView']);return _0x38d079?_0x38d079['model']:null;}['_refreshActiveMarkers'](){const _0x39447c=this['editor']['plugins']['get']('Annotations'),_0x91763d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f5b8c=Array['from'](_0x39447c['activeAnnotations'],_0x357474=>_0x357474['innerView'])['filter'](_0x41244a=>this['_viewToController']['has'](_0x41244a)),_0x2b9d84=[];for(const _0x28e044 of _0x1f5b8c){const _0x500ce4=this['_viewToController']['get'](_0x28e044)['model']['getAllAdjacentSuggestions']();_0x2b9d84['push'](..._0x500ce4['reduce']((_0x163cd0,_0x35d413)=>[..._0x163cd0,..._0x35d413['getMarkerNames']()],[]));}_0x91763d['activeMarkers']=_0x2b9d84;}['_addUIComponentsToFactory'](){const _0x143fcd=this['editor'],_0x60f29f=_0x143fcd['locale'],_0x54bef8=o(_0x60f29f,'Track\x20changes'),_0x25db9b=new _0xfc7832([{'type':'switchbutton','model':new _0x4f953e({'withText':!0x0,'isToggleable':!0x0,'label':_0x54bef8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4f953e({'withText':!0x0,'label':o(_0x60f29f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f953e({'withText':!0x0,'label':o(_0x60f29f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f953e({'withText':!0x0,'label':o(_0x60f29f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f953e({'withText':!0x0,'label':o(_0x60f29f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x143fcd['plugins']['has']('TrackChangesPreview')&&_0x25db9b['addMany']([{'type':'separator'},{'type':'button','model':new _0x4f953e({'withText':!0x0,'label':o(_0x60f29f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1b14da of _0x25db9b)if(ke(_0x1b14da)){const _0x2b4505=_0x143fcd['commands']['get'](_0x1b14da['model']['commandName']);_0x1b14da['model']['bind']('isOn','isEnabled')['to'](_0x2b4505,'value','isEnabled');}_0x143fcd['ui']['componentFactory']['add']('trackChanges',_0x5ab302=>this['_createToolbarButton'](_0x5ab302,_0x25db9b,_0x54bef8)),_0x143fcd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1093ce=>this['_createMenuBarMenu'](_0x1093ce,_0x25db9b,_0x54bef8));}['_createToolbarButton'](_0x1b50fa,_0x142ab6,_0x558018){const _0x4ffa16=_0x5175d3(_0x1b50fa,_0x422011),_0xe15f05=this['editor']['commands']['get']('trackChanges');_0x4ffa16['buttonView']['set']({'tooltip':_0x558018,'label':_0x558018,'icon':_0x5ca503}),_0x4ffa16['buttonView']['bind']('isOn')['to'](_0xe15f05,'value'),_0x4ffa16['buttonView']['on']('execute',()=>{_0xe15f05['execute'](),this['editor']['editing']['view']['focus']();}),_0x3a2a53(_0x4ffa16,_0x142ab6,{'role':'menu'});const _0x680b13=[];for(const _0x26486f of _0x142ab6)ke(_0x26486f)&&_0x680b13['push'](this['editor']['commands']['get'](_0x26486f['model']['commandName']));const _0x29c394=_0x4ffa16['buttonView'];return _0x29c394['actionView']['unbind']('isEnabled'),_0x29c394['arrowView']['unbind']('isEnabled'),_0x29c394['actionView']['bind']('isEnabled')['to'](_0xe15f05,'isEnabled'),_0x29c394['arrowView']['bind']('isEnabled')['toMany'](_0x680b13,'isEnabled',(..._0xe45892)=>_0xe45892['some'](_0xda1e54=>_0xda1e54)),_0x4ffa16['on']('execute',_0x2f4d99=>{this['editor']['execute'](_0x2f4d99['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ffa16;}['_createMenuBarMenu'](_0x5de20e,_0x5bb91f,_0x445699){const _0x3fd5a2=new _0x23a9d5(_0x5de20e),_0x57a04f=this['editor']['commands']['get']('trackChanges');_0x3fd5a2['buttonView']['set']({'label':_0x445699,'icon':_0x5ca503});const _0x15aae9=new _0x160351(_0x5de20e);for(const _0x40a26f of _0x5bb91f){if('separator'==_0x40a26f['type']){_0x15aae9['items']['add'](new _0x391946(_0x5de20e));continue;}const _0x2c363e=new _0x25ae9a(_0x5de20e,_0x3fd5a2),_0x4e5e74=new _0x4e3a0f(_0x5de20e),_0x1144fa=_0x40a26f['model'];_0x4e5e74['bind'](...Object['keys'](_0x1144fa))['to'](_0x1144fa),_0x4e5e74['delegate']('execute')['to'](_0x3fd5a2),_0x4e5e74['on']('execute',()=>{this['editor']['execute'](_0x1144fa['commandName']),this['editor']['editing']['view']['focus']();}),_0x2c363e['children']['add'](_0x4e5e74),_0x15aae9['items']['add'](_0x2c363e);}return _0x3fd5a2['bind']('isEnabled')['to'](_0x57a04f,'isEnabled'),_0x3fd5a2['panelView']['children']['add'](_0x15aae9),_0x3fd5a2;}['_initializeController'](_0x296f02){const _0x342d25=this['editor'],_0x679fcb=_0x342d25['config'],_0x4011ff=_0x342d25['plugins']['get']('Annotations'),_0x293586=_0x342d25['plugins']['get']('CommentsRepository'),_0x48d075=_0x342d25['plugins']['get']('EditorAnnotations'),_0x4a3f2f=_0x342d25['plugins']['get'](_0x33bd43)['me'],_0x539b5b=_0x679fcb['get']('trackChanges')['SuggestionThreadView'],_0x52f2b8=_0x679fcb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x35964e,CommentThreadInputView:_0x287996}=_0x342d25['plugins']['get']('CommentsUI');let _0x1c87e6,_0x3c563e,_0x53dfe7;this['_annotationViews']['has'](_0x296f02['id'])?(_0x3c563e=this['_annotationViews']['get'](_0x296f02['id']),_0x1c87e6=_0x3c563e['mainView']):(_0x1c87e6=new _0x539b5b(_0x342d25['locale'],_0x296f02,_0x4a3f2f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x679fcb['get']('comments.editorConfig'),'licenseKey':_0x679fcb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x679fcb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x679fcb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x679fcb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2254a3(_0x679fcb['get']('locale'),_0x342d25['locale']),'CommentView':_0x679fcb['get']('comments')['CommentView'],'CommentsListView':_0x35964e,'CommentThreadInputView':_0x287996,'SuggestionView':_0x52f2b8}),_0x1c87e6['suggestionView']['acceptButton']['on']('execute',()=>{_0x342d25['editing']['view']['focus']();}),_0x1c87e6['suggestionView']['discardButton']['on']('execute',()=>{_0x342d25['editing']['view']['focus']();}),_0x3c563e=_0x4011ff['createAnnotationView'](this['editor']['locale'],_0x1c87e6),_0x3c563e['bind']('isDirty')['to'](_0x1c87e6,'isDirty'),_0x3c563e['bind']('length')['to'](_0x1c87e6),_0x3c563e['bind']('type')['to'](_0x1c87e6,'type',_0x62fb29=>'suggestion-'+_0x62fb29),_0x1c87e6['on']('escape',()=>{_0x53dfe7['fire']('escape');}),this['_annotationViews']['set'](_0x296f02['id'],_0x3c563e));const _0x1be4ff=_0x293586['createCommentThreadController'](_0x296f02['commentThread'],_0x1c87e6),_0xf3361d=new pe(_0x342d25,_0x296f02,_0x1c87e6,_0x1be4ff),_0x15f65c=_0x296f02['getAllAdjacentSuggestions']()['filter'](_0x5d98c0=>_0x5d98c0['isInContent']);_0x1c87e6['descriptionParts']=_0x342d25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x15f65c),this['_suggestionToController']['set'](_0x296f02,_0xf3361d),this['_viewToController']['set'](_0x1c87e6,_0xf3361d);const _0x11f4be=()=>{const _0x421657=[],_0x14032d=_0x296f02['getAllAdjacentSuggestions']()['filter'](_0x1b5424=>_0x1b5424['isInContent']);for(const _0x3d85b1 of _0x14032d)_0x421657['push'](..._0x3d85b1['getMarkers']());return _0x122c17(_0x342d25['editing'],_0x421657);};_0x53dfe7=_0x4011ff['createAnnotation']({'view':_0x3c563e,'target':_0x11f4be,'type':()=>'suggestion-'+_0xf3361d['view']['type'],'isVisible':!!_0x11f4be()}),_0x293586['_bindAnnotationToEditors'](_0x1c87e6,_0x53dfe7),_0x4011ff['add'](_0x53dfe7),_0x48d075['registerAnnotation'](_0x53dfe7);}['_destroyController'](_0xdd442){const _0x24daef=this['editor']['plugins']['get']('CommentsRepository'),_0x1ee010=this['editor']['plugins']['get']('Annotations'),_0x53c072=this['_suggestionToController']['get'](_0xdd442),_0x3f9571=_0x53c072['view'],_0x2e863c=_0x1ee010['getByInnerView'](_0x3f9571);_0x24daef['_unbindEditors'](_0x3f9571),_0x2e863c&&_0x1ee010['remove'](_0x2e863c),this['_suggestionToController']['delete'](_0xdd442),this['_viewToController']['delete'](_0x3f9571),_0x53c072['destroy']();}['_updateController'](_0x4afacc){if(!_0x4afacc['isInContent']||!this['_suggestionToController']['has'](_0x4afacc))return;const _0x24da42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20d63a=this['_suggestionToController']['get'](_0x4afacc),_0x270e11=_0x4afacc['getAllAdjacentSuggestions']();_0x20d63a['view']['descriptionParts']=_0x24da42['descriptionFactory']['getDescriptions'](_0x270e11);}['destroy'](){for(const _0x1d5c57 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1d5c57);for(const _0x3a6655 of this['_annotationViews']['values']())_0x3a6655['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x57933a){return'model'in _0x57933a;}class TrackChanges extends _0x409a1b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3666d0){this['editor']['plugins']['get'](d)['adapter']=_0x3666d0;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xda0a7c){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xda0a7c);}['getSuggestions']({skipNotAttached:_0x4a21d4=!0x1,toJSON:_0x2bf2c1=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4a21d4,'toJSON':_0x2bf2c1});}['getSuggestion'](_0x42286f){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x42286f);}}const p=['Pagination'];class re extends _0x409a1b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c398c=this['editor'];if(_0x3c398c['config']['define']('trackChangesData.editorCreator',_0x489113=>{const _0x2471cf=_0x3c398c['model']['document']['getRootNames']()['reduce']((_0x3517a2,_0x2b395a)=>(_0x3517a2[_0x2b395a]='',_0x3517a2),{});return _0x3c398c['constructor']['create'](_0x2471cf,_0x489113);}),'function'!=typeof _0x3c398c['config']['get']('trackChangesData')['editorCreator'])throw new _0x23fcf7('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4eaa25){return P(this['editor'],!0x0,_0x4eaa25);}['getDataWithDiscardedSuggestions'](_0x142ae8){return P(this['editor'],!0x1,_0x142ae8);}}class TrackChangesDataGetter extends _0x409a1b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56f8e2){function _0x335bcc(_0x30888c){return _0x30888c['map'](_0x28c9c6=>String['fromCharCode'](_0x28c9c6))['join']('');}super(_0x56f8e2),this['result']='end',_0x56f8e2[_0x335bcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x335bcc([0x76,0x69,0x65,0x77])][_0x335bcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x335bcc([0x61,0x75,0x74,0x6f]),_0x56f8e2[_0x335bcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x335bcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x335bcc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x335bcc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x335bcc([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 Ne(_0x2f0a04){return void 0x0!==_0x2f0a04['getRootsAttributes'];}async function P(_0x5ec208,_0x4e5037,_0x2d033e){const _0x250387=_0x139d3b(_0x5ec208,p);_0x250387['plugins']['push'](d,TrackChangesDataGetter),_0x250387['rootsAttributes']=Ne(_0x5ec208)?_0x5ec208['getRootsAttributes']():void 0x0;const _0x171a3d=document['createDocumentFragment'](),_0x6e2f60=_0x5ec208['config']['get']('trackChangesData')['editorCreator'],_0x4d37d6=await _0x6e2f60(_0x250387,()=>function(_0x3ba76b){const _0x190047=document['createElement']('div');return _0x3ba76b['appendChild'](_0x190047),_0x190047;}(_0x171a3d));!function(_0x8672b3,_0x429186){const _0x583497=_0x8672b3['model']['document']['getRootNames']()['reduce']((_0x41f49f,_0x26a1fd)=>(_0x41f49f[_0x26a1fd]=_0x8672b3['data']['get']({'rootName':_0x26a1fd}),_0x41f49f),{}),_0x2a1120=_0x8672b3['plugins']['get']('Users')['users']['map'](_0x2bf315=>({'id':_0x2bf315['id'],'name':_0x2bf315['name']})),_0x3cd107=_0x8672b3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b1a70=_0x8672b3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4271f6=_0x429186['plugins']['get']('Users'),_0x490334=_0x429186['plugins']['get']('TrackChangesEditing'),_0x3c3b18=_0x429186['plugins']['get']('CommentsRepository');for(const _0x55449f of _0x3c3b18['getCommentThreads']())_0x55449f['remove']();for(const _0x21e52a of _0x2a1120)_0x4271f6['getUser'](_0x21e52a['id'])||_0x4271f6['addUser'](_0x21e52a);_0x4271f6['me']||_0x4271f6['useAnonymousUser']();for(const _0xbb8d70 of _0x1b1a70)_0x3c3b18['addCommentThread'](_0xbb8d70);for(const _0x2188c0 of _0x3cd107)_0x490334['addSuggestionData'](_0x2188c0);_0x429186['data']['set'](_0x583497);}(_0x5ec208,_0x4d37d6),_0x4d37d6['execute'](_0x4e5037?'acceptAllSuggestions':'discardAllSuggestions');const _0x637d78=Ne(_0x4d37d6)?_0x4d37d6['getFullData'](_0x2d033e):_0x4d37d6['data']['get'](_0x2d033e);return await _0x4d37d6['destroy'](),_0x637d78;}class Me extends _0x58c65c{['options'];constructor(_0x4201a1,_0xbdec7b){super(_0x4201a1),this['options']=_0xbdec7b,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'](_0xa10d1d,_0xfb1664){if(!this['element'])return;const _0x369f84=[];for(const [_0x49b9cc,_0xe7b9fc]of _0xa10d1d){const _0x22a81a=document['createElement']('div');_0x22a81a['setAttribute']('data-ck-root-name',_0x49b9cc),_0x22a81a['className']=_0xe7b9fc['classes']+'\x20ck-track-changes-preview__root-container',_0x22a81a['innerHTML']=_0xe7b9fc['content'],_0x369f84['push'](_0x22a81a);}_0xfb1664(this['element'],_0x369f84),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2446ee{constructor(_0x218ff8){super(_0x218ff8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x270a2a=this['editor'],_0x2c2119=_0x270a2a['locale'],_0x377e6a=_0x270a2a['plugins']['get']('Dialog');let _0x17ee03;const _0x4b9a54=function(_0x14d8b9){const _0x5f00d7={};if('editables'in _0x14d8b9['ui']['view']){for(const [_0x19a348,_0x52dcf1]of Object['entries'](_0x14d8b9['ui']['view']['editables']))_0x5f00d7[_0x19a348]=_0x52dcf1['element'];}else _0x5f00d7[_0x14d8b9['model']['document']['getRootNames']()[0x0]]=_0x14d8b9['ui']['view']['editable']['element'];return _0x5f00d7;}(_0x270a2a),_0x2c0e0a=function(_0x593235){let _0x3e7478=0x0;for(const _0xfb902f of Object['values'](_0x593235))_0x3e7478=Math['max'](_0x3e7478,_0xfb902f['getBoundingClientRect']()['width']);let _0x40a739=0x0;for(const _0x5782bf of Object['values'](_0x593235))_0x40a739+=_0x5782bf['getBoundingClientRect']()['height'];const _0x49759c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1edad0=Math['min'](_0x40a739,_0x49759c);return{'width':_0x3e7478,'height':_0x1edad0};}(_0x4b9a54);_0x377e6a['show']({'id':'finalContentPreview','title':o(_0x2c2119,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2c2119,{'dialogRects':_0x2c0e0a}),'onHide':()=>{_0x17ee03['detachFromDom']();},'onShow':()=>{_0x270a2a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x141942=>{const _0x39a0af=this['_standarizeRootsData'](_0x141942,_0x270a2a,_0x4b9a54);_0x377e6a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x39a0af,_0x270a2a['config']['get']('trackChanges.preview.renderFunction'));}),_0x17ee03=new _0x36a4e9(_0x2c2119,[_0x377e6a['view']]),_0x17ee03['attachToDom'](),_0x17ee03['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x270a2a['once']('destroy',()=>{_0x17ee03['detachFromDom']();});const _0x43192c=_0x377e6a['view']['headerView']['class'];_0x377e6a['view']['headerView']['class']=_0x43192c?_0x43192c+'\x20ck-reset_all':'ck-reset_all',_0x377e6a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x377e6a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5509b7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x365822=_0x5509b7['previewMode'],_0x4a14a0={};if('$labels'===_0x365822){for(const _0x451e70 of _0x5509b7['getMergeFieldsIds']())_0x4a14a0[_0x451e70]=_0x5509b7['getLabel'](_0x451e70)||_0x451e70;}else{const _0x24f07b='$defaultValues'===_0x365822?_0x5509b7['getDefaultValues']():_0x5509b7['getDataSetValues'](_0x365822,!0x0);for(const _0x5ed60f of Object['entries'](_0x24f07b)){const [_0xaf1399,_0x21da28]=_0x5ed60f;_0x4a14a0[_0xaf1399]=null!==_0x21da28?_0x21da28:_0x5509b7['getLabel'](_0xaf1399)||_0xaf1399;}}return{'mergeFieldsData':_0x4a14a0};}['_standarizeRootsData'](_0x4dbc3e,_0x3c5a6e,_0x153c44){let _0xc6af02;if('string'==typeof _0x4dbc3e){const _0x24aec6=_0x3c5a6e['model']['document']['getRootNames']()[0x0];_0xc6af02={[_0x24aec6]:_0x4dbc3e};}else _0xc6af02=_0x4dbc3e;const _0x459526=this['_fixMediaEmbeds'](_0xc6af02,_0x3c5a6e),_0x40d43a=function(_0x128c5e,_0x4a9aef){for(const [_0x11437c,_0x2b326a]of _0x128c5e)_0x2b326a['classes']=_0x4a9aef[_0x11437c]['classList']['value']['replace']('ck-focused','');return _0x128c5e;}(this['_sortRoots'](_0x3c5a6e)['reduce']((_0x2e3b9a,_0x50f6e9)=>(_0x2e3b9a['push']([_0x50f6e9,{'content':_0x459526[_0x50f6e9],'classes':''}]),_0x2e3b9a),[]),_0x153c44);return _0x40d43a;}['_fixMediaEmbeds'](_0x104d44,_0xaafaa7){if(!_0xaafaa7['plugins']['has']('MediaEmbedEditing'))return _0x104d44;const _0x581447=_0xaafaa7['plugins']['get']('MediaEmbedEditing');for(const [_0x1a248c,_0x32cc0a]of Object['entries'](_0x104d44)){const _0x115cb8=document['createElement']('div');_0x115cb8['innerHTML']=_0x32cc0a,(_0x115cb8['querySelectorAll']('figure.media')['forEach'](_0x2c2e39=>{const _0x3e8cea=_0x2c2e39['querySelector']('oembed');if(_0x3e8cea){const _0x566da3=_0x3e8cea['getAttribute']('url');if(_0x566da3){const _0x53ea97=_0x581447['registry']['getMediaViewElement'](new _0x1d43a7(_0xaafaa7['editing']['view']['document']),_0x566da3,{'elementName':'','renderForEditingView':!0x0}),_0x50836b=document['createElement']('div');_0x50836b['classList']['add']('ck-media__wrapper'),_0x53ea97['render'](_0x50836b,_0xaafaa7['editing']['view']['domConverter']),_0x3e8cea['replaceWith'](_0x50836b);}}}),_0x104d44[_0x1a248c]=_0x115cb8['innerHTML']);}return _0x104d44;}['_sortRoots'](_0x59a3f7){if(!function(_0x247548){return void 0x0!==_0x247548['getRootsAttributes'];}(_0x59a3f7))return _0x59a3f7['model']['document']['getRootNames']();const _0x44e7f5=[],_0x3df513=new Map();for(const _0x109b91 of _0x59a3f7['model']['document']['getRootNames']()){const _0x158ce7=_0x59a3f7['editing']['view']['getDomRoot'](_0x109b91)['getClientRects']()['item'](0x0);_0x44e7f5['push'](_0x109b91),_0x3df513['set'](_0x109b91,_0x158ce7);}return _0x44e7f5['sort']((_0x564b3e,_0x3032c9)=>{const _0x5c952d=_0x3df513['get'](_0x564b3e),_0x53f397=_0x3df513['get'](_0x3032c9);return _0x5c952d['y']-_0x53f397['y']||_0x5c952d['x']-_0x53f397['x'];}),_0x44e7f5;}}class TrackChangesPreview extends _0x409a1b{static get['requires'](){return[re,_0x2296eb];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeff24d){super(_0xeff24d),_0xeff24d['commands']['add']('previewFinalContent',new te(this['editor'])),_0xeff24d['config']['define']('trackChanges.preview.renderFunction',(_0x5df1eb,_0x3aea2a)=>{for(const _0x4584df of _0x3aea2a)_0x5df1eb['appendChild'](_0x4584df);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,TrackChanges,B as TrackChangesCommand,re as TrackChangesData,TrackChangesDataGetter,d as TrackChangesEditing,TrackChangesPreview,u as TrackChangesUI};
|