@ckeditor/ckeditor5-track-changes 46.0.2 → 46.1.0-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 +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/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
|
-
_0x5d0a2d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4ceafc,_0xb4d8e2){super(),this['id']=_0xb4d8e2['id'],this['type']=_0xb4d8e2['type'],this['subType']=_0xb4d8e2['subType']||null,this['author']=_0xb4d8e2['author'],this['creator']=_0xb4d8e2['creator']||_0xb4d8e2['author'],this['isExternal']=Boolean(_0xb4d8e2['attributes']&&_0xb4d8e2['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xb4d8e2['originalSuggestionId']||null,this['_model']=_0x4ceafc,this['_onAccept']=_0xb4d8e2['onAccept'],this['_onDiscard']=_0xb4d8e2['onDiscard'],this['_onAttributesChange']=_0xb4d8e2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb4d8e2['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 _0x2bfea2=this;for(;_0x2bfea2['previous'];)_0x2bfea2=_0x2bfea2['previous'];return _0x2bfea2;}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'](_0x41fd11){this['_markerNames']['add'](_0x41fd11);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x37823c=>this['_model']['markers']['get'](_0x37823c))['filter'](_0x1a3e71=>_0x1a3e71);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x403a62=>{for(const _0x1ba2d3 of this['getMarkers']())_0x403a62['removeMarker'](_0x1ba2d3);}),this['_markerNames']['clear']();}['removeMarker'](_0x4f6a5b){this['_model']['change'](_0x52e64d=>{_0x52e64d['removeMarker'](_0x4f6a5b);}),this['_markerNames']['delete'](_0x4f6a5b);}['addRange'](_0x510dbe){const _0x479468='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x479468),this['_model']['change'](_0xf22a87=>{_0xf22a87['addMarker'](_0x479468,{'range':_0x510dbe,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c9ffa){for(const _0xd5b4b8 of this['getRanges']())if(_0xd5b4b8['isIntersecting'](_0x5c9ffa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xf6aeb7=>_0xf6aeb7['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4eac7f,_0x37bfdf)=>[..._0x4eac7f,..._0x37bfdf['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x37a5fb=this['getRanges']();if(0x1!=_0x37a5fb['length'])return null;const _0x339c05=_0x37a5fb[0x0],_0x3bdaa9=_0x339c05['start']['nodeAfter'],_0x5e5892=_0x339c05['end']['nodeBefore'];return _0x3bdaa9 instanceof _0x104dee?_0x3bdaa9!=_0x5e5892?null:_0x3bdaa9: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 _0x57ba14=[];let _0x422260=this['head'];for(;_0x422260;)_0x57ba14['push'](_0x422260),_0x422260=_0x422260['next'];return _0x57ba14;}['setAttribute'](_0x1e421b,_0x5659db){const _0x3a6ceb=_0x5390b7(this['attributes']);_0x43616e(_0x3a6ceb,_0x1e421b,_0x5659db),_0x29447a(_0x3a6ceb,this['attributes'])||(this['attributes']=_0x3a6ceb,this['_onAttributesChange'](_0x3a6ceb));}['removeAttribute'](_0xada0c9){const _0x577f4c=_0x5390b7(this['attributes']);_0x236eab(_0x577f4c,_0xada0c9),_0x29447a(_0x577f4c,this['attributes'])||(this['attributes']=_0x577f4c,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 _0x5cef89()['substr'](0x1,0x5);}}function o(_0x3c99bb,_0x1e50f6,_0x23f96a){const _0x5783b4=_0x3c99bb['t'],t=_0x3c99bb['t'];switch(_0x1e50f6){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',_0x23f96a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x23f96a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x23f96a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x23f96a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x23f96a);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',_0x23f96a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x23f96a);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',_0x23f96a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x23f96a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x23f96a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x23f96a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x23f96a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x23f96a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x23f96a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x23f96a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x23f96a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x23f96a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x23f96a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x23f96a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x23f96a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x23f96a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x23f96a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x23f96a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x23f96a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x23f96a);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'},_0x23f96a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x23f96a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x23f96a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x23f96a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x23f96a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x23f96a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x23f96a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x23f96a);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'},_0x23f96a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x23f96a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x23f96a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x23f96a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x23f96a);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x23f96a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x23f96a);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'},_0x23f96a);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x23f96a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x23f96a);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'},_0x23f96a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x23f96a);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'},_0x23f96a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x23f96a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x23f96a);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'},_0x23f96a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x23f96a);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 _0x5783b4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x23f96a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5783b4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x23f96a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x23f96a);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'},_0x23f96a);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'},_0x23f96a);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'},_0x23f96a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1e50f6;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5b94e1,_0x43a791){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5b94e1,this['_locale']=_0x43a791;}['getDescriptions'](_0x50d6a0){const _0x34b69f=[],_0x44d90a=new Set(),_0x27ca53=new Set();for(let _0x4a37fd=0x0;_0x4a37fd<_0x50d6a0['length'];_0x4a37fd++){const _0x3a1ded=_0x50d6a0[_0x4a37fd];if(!_0x3a1ded['isInContent'])continue;const _0x361431=this['_handleCustomCallbackDescription'](_0x3a1ded);if(_0x361431){if(null!=_0x3a1ded['subType']){if(_0x44d90a['has'](_0x3a1ded['subType']))continue;_0x44d90a['add'](_0x3a1ded['subType']);}_0x34b69f['push'](_0x361431);}else{if('attribute'==_0x3a1ded['type']){const _0x2a49ca=_0x3a1ded['data']['key'];if(_0x27ca53['has'](_0x2a49ca))continue;_0x27ca53['add'](_0x3a1ded['data']['key']),_0x2a49ca==m?this['_handleRenameSuggestionDescription'](_0x34b69f,_0x3a1ded):this['_handleAttributeSuggestionDescription'](_0x34b69f,_0x3a1ded);continue;}'insertion'!=_0x3a1ded['type']&&'deletion'!=_0x3a1ded['type']||this['_handleInsertRemoveSuggestionDescription'](_0x34b69f,_0x3a1ded,_0x50d6a0[_0x4a37fd+0x1]);}}return this['_resolveDescriptionItems'](_0x34b69f);}['registerDescriptionCallback'](_0x42ec9c){this['_customCallbacks']['push'](_0x42ec9c);}['registerElementLabel'](_0x434080,_0x5b9f40,_0x1b67c9=_0x37a44a['normal']){'function'==typeof _0x434080?_0x1055e6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x434080,'label':_0x5b9f40,'priority':_0x1b67c9}):this['_itemLabels']['set'](_0x434080,_0x5b9f40);}['registerAttributeLabel'](_0x2951d0,_0x474eaf){this['_attributeLabels']['set'](_0x2951d0,_0x474eaf);}['getItemLabel'](_0xce28de,_0x1ee11a=0x1){let _0x3a7485;for(const _0x55f032 of this['_itemLabelsCallbacks'])if(_0x55f032['matchingCallback'](_0xce28de)){_0x3a7485=_0x55f032['label'];break;}return _0x3a7485||(_0x3a7485=this['_itemLabels']['get'](_0xce28de['name'])),_0x3a7485?_0x3a7485(_0x1ee11a):0x1!==_0x1ee11a?_0x1ee11a+'\x20'+_0xce28de['name']+'s':''+_0xce28de['name'];}['_addDescriptionItems'](_0x529dc6,_0x4d9b65){const _0x1815fc=_0x4d9b65['getFirstRange']()['getWalker'](),_0x50e309='insertion'==_0x4d9b65['type']?'add':'remove';for(const _0x4cdb84 of _0x1815fc){const _0x49757a=_0x4cdb84['item'],_0x541207=_0x529dc6[_0x529dc6['length']-0x1];if(_0x49757a['is']('$textProxy'))_0x541207&&_0x541207['type']['indexOf']('Container')>-0x1&&_0x529dc6['pop'](),_0x541207&&'text'==_0x541207['type']?_0x541207[_0x50e309]+=_0x49757a['data']:_0x529dc6['push']({'type':'text','add':'add'==_0x50e309?_0x49757a['data']:'','remove':'remove'==_0x50e309?_0x49757a['data']:''});else{if(this['_schema']['isObject'](_0x49757a)){const _0x364552=_0x49757a;if(_0x541207&&_0x541207['type']['indexOf']('Container')>-0x1&&_0x529dc6['pop'](),'elementEnd'==_0x4cdb84['type'])continue;_0x541207&&_0x541207['type']==_0x50e309+'Object'&&_0x541207['element']['name']==_0x364552['name']?_0x541207['quantity']++:_0x529dc6['push']({'type':_0x50e309+'Object','element':_0x364552,'quantity':0x1}),_0x1815fc['skip'](_0x2eb839=>!('elementEnd'==_0x2eb839['type']&&_0x2eb839['item']==_0x49757a));}else{if(this['_schema']['checkChild'](_0x49757a,'$text')||_0x49757a['is']('element','softBreak')){const _0x594edc=_0x49757a;if('add'==_0x50e309&&'elementStart'==_0x4cdb84['type']||'remove'==_0x50e309&&'elementEnd'==_0x4cdb84['type'])continue;if(_0x541207&&-0x1==_0x541207['type']['indexOf']('Container')){'text'==_0x541207['type']&&(_0x541207[_0x50e309]+='\x0a');continue;}let _0x56dde1;if(_0x56dde1='add'==_0x50e309?_0x594edc['nextSibling']&&!this['_schema']['isObject'](_0x594edc['nextSibling'])?_0x594edc['nextSibling']:null:_0x594edc['previousSibling']&&!this['_schema']['isObject'](_0x594edc['previousSibling'])?_0x594edc['previousSibling']:null,_0x594edc['isEmpty']||_0x56dde1&&_0x56dde1['isEmpty']){const _0x4b97ab=_0x56dde1&&_0x56dde1['isEmpty']?_0x56dde1:_0x594edc;_0x541207&&_0x541207['type']==_0x50e309+'EmptyContainer'&&_0x541207['element']['name']==_0x4b97ab['name']?_0x541207['quantity']++:_0x529dc6['push']({'type':_0x50e309+'EmptyContainer','element':_0x4b97ab,'quantity':0x1});}else _0x529dc6['push']({'type':_0x50e309+'Container','element':_0x594edc});}}}}}['_resolveDescriptionItems'](_0x616c7f){const _0x18c36c=this['_locale'],_0x15d9ab=[],_0x4e4db0=[],_0x2ac43d=[];for(const _0x2e3de7 of _0x616c7f)switch(_0x2e3de7['type']){case'text':if(_0x2e3de7['add']=_0x2e3de7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2e3de7['remove']=_0x2e3de7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2e3de7['add']&&''!=_0x2e3de7['remove']){_0x15d9ab['push']({'type':'replace','content':o(_0x18c36c,'REPLACE_TEXT',['\x22'+_0x2e3de7['remove']+'\x22','\x22'+_0x2e3de7['add']+'\x22'])});continue;}if(null!=_0x2e3de7['add']['match'](/^ +$/)){_0x15d9ab['push']({'type':'insertion','content':o(_0x18c36c,'*Insert:*\x20%0',o(_0x18c36c,'ELEMENT_SPACE',_0x2e3de7['add']['length']))});continue;}if(null!=_0x2e3de7['remove']['match'](/^ +$/)){_0x15d9ab['push']({'type':'deletion','content':o(_0x18c36c,'*Remove:*\x20%0',o(_0x18c36c,'ELEMENT_SPACE',_0x2e3de7['remove']['length']))});continue;}if(''!=_0x2e3de7['add']){_0x15d9ab['push']({'type':'insertion','content':o(_0x18c36c,'*Insert:*\x20%0','\x22'+_0x2e3de7['add']+'\x22')});continue;}_0x15d9ab['push']({'type':'deletion','content':o(_0x18c36c,'*Remove:*\x20%0','\x22'+_0x2e3de7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x15d9ab['push']({'type':'insertion','content':o(_0x18c36c,'*Insert:*\x20%0',this['getItemLabel'](_0x2e3de7['element'],_0x2e3de7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x15d9ab['push']({'type':'deletion','content':o(_0x18c36c,'*Remove:*\x20%0',this['getItemLabel'](_0x2e3de7['element'],_0x2e3de7['quantity']))});continue;case'addContainer':_0x15d9ab['push']({'type':'insertion','content':o(_0x18c36c,'*Split:*\x20%0',this['getItemLabel'](_0x2e3de7['element'],_0x2e3de7['quantity']))});continue;case'removeContainer':_0x15d9ab['push']({'type':'deletion','content':o(_0x18c36c,'*Merge:*\x20%0',this['getItemLabel'](_0x2e3de7['element'],_0x2e3de7['quantity']))});continue;case'addFormat':_0x4e4db0['push'](_0x2e3de7['key']);continue;case'removeFormat':_0x2ac43d['push'](_0x2e3de7['key']);continue;default:_0x15d9ab['push'](_0x2e3de7);}if(_0x4e4db0['length']){const _0x225250=_0x4e4db0['map'](_0x41da96=>this['_attributeLabels']['has'](_0x41da96)?this['_attributeLabels']['get'](_0x41da96):_0x41da96)['join'](',\x20');_0x15d9ab['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x225250)});}if(_0x2ac43d['length']){const _0x1ee17b=_0x2ac43d['map'](_0x38cd75=>this['_attributeLabels']['has'](_0x38cd75)?this['_attributeLabels']['get'](_0x38cd75):_0x38cd75)['join'](',\x20');_0x15d9ab['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1ee17b)});}return _0x15d9ab;}['_handleCustomCallbackDescription'](_0x5c496f){for(const _0x342d9a of this['_customCallbacks']){const _0x4cb0ad=_0x342d9a(_0x5c496f);if(_0x4cb0ad&&'type'in _0x4cb0ad)return _0x4cb0ad;}}['_handleAttributeSuggestionDescription'](_0x31d105,_0x46cf37){const _0x482ccb=_0x46cf37['data'],_0x4d12f9=void 0x0===_0x482ccb['newValue']?'removeFormat':'addFormat';_0x31d105['push']({'type':_0x4d12f9,'key':_0x482ccb['key']});}['_handleRenameSuggestionDescription'](_0x333713,_0x5c4582){_0x333713['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5c4582['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5ad6a7,_0x25aebc,_0xee6d18){if(this['_addDescriptionItems'](_0x5ad6a7,_0x25aebc),_0xee6d18&&_0xee6d18['getFirstRange']()&&!_0x25aebc['getFirstRange']()['end']['isEqual'](_0xee6d18['getFirstRange']()['start'])){const _0x4d1c19=_0x5ad6a7[_0x5ad6a7['length']-0x1],_0x462ce='insertion'==_0x25aebc['type']?'add':'remove';_0x4d1c19&&'text'==_0x4d1c19['type']&&(_0x4d1c19[_0x462ce]+='\x0a');}}}class O extends _0x3d96fc{['afterInit'](){const _0x3d93f0=this['editor'],_0x3ed45f=_0x3d93f0['plugins']['get']('TrackChangesEditing');_0x3d93f0['commands']['get']('showAIAssistant')&&_0x3ed45f['enableCommand']('showAIAssistant');}}class E extends _0x3d96fc{['afterInit'](){const _0x668bcc=this['editor'],_0x581218=_0x668bcc['locale'];if(!_0x668bcc['plugins']['has']('AlignmentEditing'))return;const _0x1937b6=_0x668bcc['plugins']['get']('TrackChangesEditing');_0x1937b6['enableDefaultAttributesIntegration']('alignment'),_0x1937b6['registerBlockAttribute']('alignment'),_0x1937b6['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x581218,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x180c7b=this['editor'],_0x88c7db=_0x180c7b['locale'];_0x180c7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x733d6b=>{if('formatBlock'!=_0x733d6b['type'])return;const {data:_0x2b6d8d}=_0x733d6b;if(_0x2b6d8d&&'alignment'==_0x2b6d8d['commandName']){const _0x22fb6b=_0x2b6d8d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x88c7db,'*Format:*\x20%0',function(_0x10c918){switch(_0x10c918){case'left':return o(_0x88c7db,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x88c7db,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x88c7db,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x88c7db,'FORMAT_JUSTIFY_TEXT');}}(_0x22fb6b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x3d96fc{['afterInit'](){const _0x43c37b=this['editor'],_0x12aee6=_0x43c37b['plugins']['get']('TrackChangesEditing'),_0x2112d3=_0x43c37b['locale'];for(const _0x3eb245 of ti){if(!_0x43c37b['plugins']['has'](_0x3eb245))continue;const _0x1727c7=_0x3eb245['slice'](0x0,-0x7)['toLowerCase'](),_0x15120e='FORMAT_'+_0x1727c7['toUpperCase']();_0x12aee6['enableDefaultAttributesIntegration'](_0x1727c7),_0x12aee6['registerInlineAttribute'](_0x1727c7),_0x12aee6['descriptionFactory']['registerAttributeLabel'](_0x1727c7,o(_0x2112d3,_0x15120e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10c8bf=this['editor'],_0x16fc50=_0x10c8bf['locale'],_0x5a5310=_0x10c8bf['plugins']['get']('TrackChangesEditing');function _0x22b147(_0x43ed67,_0x431721){_0x5a5310['descriptionFactory']['registerDescriptionCallback'](_0xf00f08=>{if('formatInline'!=_0xf00f08['type'])return;const {data:_0x344289}=_0xf00f08;return _0x344289&&_0x344289['commandName']===_0x43ed67?_0x344289['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16fc50,'*Format:*\x20%0',_0x431721)}:{'type':'format','content':o(_0x16fc50,'*Remove\x20format:*\x20%0',_0x431721)}:void 0x0;});}_0x22b147('bold',o(_0x16fc50,'FORMAT_BOLD')),_0x22b147('italic',o(_0x16fc50,'FORMAT_ITALIC')),_0x22b147('underline',o(_0x16fc50,'FORMAT_UNDERLINE')),_0x22b147('code',o(_0x16fc50,'FORMAT_CODE')),_0x22b147('strikethrough',o(_0x16fc50,'FORMAT_STRIKETHROUGH')),_0x22b147('subscript',o(_0x16fc50,'FORMAT_SUBSCRIPT')),_0x22b147('superscript',o(_0x16fc50,'FORMAT_SUPERSCRIPT'));}}class U extends _0x3d96fc{['afterInit'](){const _0x1699a3=this['editor'],_0x319116=_0x1699a3['locale'];if(!_0x1699a3['plugins']['has']('BlockQuoteEditing'))return;const _0x52f6e8=_0x1699a3['plugins']['get']('TrackChangesEditing'),_0x2523d0=this['editor']['commands']['get']('blockQuote');_0x52f6e8['enableCommand']('blockQuote',(_0x21f53e,_0x2cddad={})=>{const _0x30373d=this['editor']['model']['document']['selection'],_0x15a4f6=_0x2cddad&&void 0x0!==_0x2cddad['forceValue']?_0x2cddad['forceValue']:!_0x2523d0['value'];let _0x32f1d2=[];if(_0x15a4f6){const _0x2a1103=Array['from'](_0x30373d['getSelectedBlocks']())['filter'](_0x3cfd62=>oo(_0x3cfd62)||function(_0x5b4ebe,_0x3e93fe){const _0x2c5959=_0x3e93fe['checkChild'](_0x5b4ebe['parent'],'blockQuote'),_0x39a74b=_0x3e93fe['checkChild'](['$root','blockQuote'],_0x5b4ebe);return _0x2c5959&&_0x39a74b;}(_0x3cfd62,this['editor']['model']['schema']));_0x32f1d2=to(_0x2a1103,_0x1699a3['model']);}else{const _0x4b6708=Array['from'](_0x30373d['getSelectedBlocks']())['filter'](_0x3b7625=>oo(_0x3b7625));_0x32f1d2=to(_0x4b6708,_0x1699a3['model']);}_0x1699a3['model']['change'](()=>{for(const _0x8ecc7 of _0x32f1d2)_0x52f6e8['markBlockFormat'](_0x8ecc7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x15a4f6}]});});}),_0x52f6e8['descriptionFactory']['registerDescriptionCallback'](_0x5c3ffd=>{const {data:_0x49cfb9}=_0x5c3ffd;if(_0x49cfb9&&'blockQuote'==_0x49cfb9['commandName']){const _0x1c9616=o(_0x319116,'ELEMENT_BLOCK_QUOTE');return _0x49cfb9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x319116,'*Set\x20format:*\x20%0',_0x1c9616)}:{'type':'format','content':o(_0x319116,'*Remove\x20format:*\x20%0',_0x1c9616)};}});}}function oo(_0x31391b){return'blockQuote'==_0x31391b['parent']['name'];}class V extends _0x3d96fc{['afterInit'](){const _0x5f57ad=this['editor'],_0x4d1fee=_0x5f57ad['locale'],_0x28b5cc=_0x5f57ad['plugins']['get']('TrackChangesEditing');_0x5f57ad['plugins']['has']('BookmarkEditing')&&(_0x28b5cc['enableCommand']('insertBookmark'),_0x28b5cc['enableDefaultAttributesIntegration']('updateBookmark'),_0x28b5cc['registerBlockAttribute']('bookmarkId'),_0x28b5cc['descriptionFactory']['registerDescriptionCallback'](_0x3044be=>{if('insertion'!=_0x3044be['type']&&'deletion'!=_0x3044be['type']&&'attribute'!=_0x3044be['type'])return;const _0x13471b=_0x3044be['getContainedElement']();if(null==_0x13471b)return;if(!_0x13471b['is']('element','bookmark'))return;const _0x53c092=_0x13471b['getAttribute']('bookmarkId');if('insertion'==_0x3044be['type'])return{'type':'insertion','content':o(_0x4d1fee,'*Insert:*\x20%0','\x22'+_0x53c092+'\x22\x20'+o(_0x4d1fee,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3044be['type'])return{'type':'deletion','content':o(_0x4d1fee,'*Remove:*\x20%0','\x22'+_0x53c092+'\x22\x20'+o(_0x4d1fee,'ELEMENT_BOOKMARK'))};const {data:_0x449c79}=_0x3044be;if(!_0x449c79||'bookmarkId'!=_0x449c79['key'])return;return{'type':'format','content':o(_0x4d1fee,'*Set\x20bookmark:*\x20%0','\x22'+_0x449c79['newValue']+'\x22')};}));}}class F extends _0x3d96fc{['afterInit'](){const _0x54e297=this['editor'];_0x54e297['plugins']['has']('CaseChange')&&(_0x54e297['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x54e297['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x54e297['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x3d96fc{['afterInit'](){const _0x4573d5=this['editor'];_0x4573d5['commands']['get']('ckbox')&&_0x4573d5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3d96fc{['afterInit'](){const _0x39f5c9=this['editor'];if(!_0x39f5c9['plugins']['has']('CodeBlock'))return;const _0x4bc203=_0x39f5c9['plugins']['get']('TrackChangesEditing'),_0x17fea4=_0x39f5c9['locale'],_0x3a3b77=_0x39f5c9['config']['get']('codeBlock')['languages'],_0x14f50b=_0x39f5c9['commands']['get']('codeBlock');_0x4bc203['enableCommand']('indentCodeBlock'),_0x4bc203['enableCommand']('outdentCodeBlock'),_0x4bc203['enableCommand']('codeBlock',(_0x4e324c,_0x2126ec={})=>{const _0x319498=_0x39f5c9['model'],_0x566371=_0x39f5c9['model']['document']['selection'],_0x59a051=_0x2126ec&&void 0x0!==_0x2126ec['forceValue']?_0x2126ec['forceValue']:!_0x14f50b['value'];let _0x371806;_0x2126ec['language']||(_0x2126ec['language']=_0x3a3b77[0x0]['language']),_0x371806=_0x59a051?Array['from'](_0x566371['getSelectedBlocks']())['filter'](_0x33fb69=>co(_0x33fb69)||function(_0x4cf584,_0x56a047){if(_0x4cf584['is']('rootElement')||_0x56a047['isLimit'](_0x4cf584))return!0x1;return _0x56a047['checkChild'](_0x4cf584['parent'],'codeBlock');}(_0x33fb69,_0x319498['schema'])):Array['from'](_0x566371['getSelectedBlocks']())['filter'](_0x5dcbdf=>co(_0x5dcbdf));const _0x612e69=to(_0x371806,_0x319498);_0x319498['change'](()=>{for(const _0xefb285 of _0x612e69)_0x4bc203['markBlockFormat'](_0xefb285,{'commandName':'codeBlock','commandParams':[{..._0x2126ec,'forceValue':_0x59a051}],'formatGroupId':'blockName'});});}),(_0x4bc203['descriptionFactory']['registerElementLabel']('codeBlock',_0x12c620=>o(_0x17fea4,'ELEMENT_CODE_BLOCK',_0x12c620)),_0x4bc203['descriptionFactory']['registerDescriptionCallback'](_0xb82447=>{if('formatBlock'!=_0xb82447['type'])return;const _0x1ac757=_0x17fea4['t'],{data:_0x4dbdad}=_0xb82447;if(!_0x4dbdad||'codeBlock'!=_0x4dbdad['commandName'])return;const _0x413df6=_0x4dbdad['commandParams'][0x0]['language'],_0x329b45=_0x1ac757(_0x3a3b77['find'](_0x101232=>_0x101232['language']===_0x413df6)['label'])['toLowerCase']();return _0x4dbdad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17fea4,'*Set\x20format:*\x20%0',o(_0x17fea4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x329b45+')')}:{'type':'format','content':o(_0x17fea4,'*Remove\x20format:*\x20%0',o(_0x17fea4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x56eec0){return'codeBlock'==_0x56eec0['name'];}class J extends _0x3d96fc{['afterInit'](){const _0x159877=this['editor'];if(!_0x159877['plugins']['has']('CommentsEditing'))return;_0x159877['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x15efc7,_0xf7cdb4,_0x53e933){const _0xa9598f=[];for(const _0x1ff17d of _0xf7cdb4['getItems']())_0x1ff17d['hasAttribute'](_0x15efc7)&&_0xa9598f['push'](_0x53e933['createRangeOn'](_0x1ff17d));return _0xa9598f;}function De(_0x1b8a86,_0x236049,{showActiveMarker:_0x1bf76e=!0x0}={}){const _0xe425c6=_0x1b8a86['plugins']['get']('TrackChangesEditing');return(_0x9d3327,_0x40f09d,_0x310f57)=>{if(!_0x310f57['consumable']['test'](_0x40f09d['markerRange'],_0x9d3327['name']))return;const _0x5a834a=_0x40f09d['markerRange']['getWalker'](),_0x4d263d=_0x40f09d['markerRange']['start'],_0x5f29e0=_0x1b8a86['model']['schema'];let _0x287d1d=null,_0x140a43=null,_0x1e63da=!0x1,_0x5667bb=!0x1;for(const _0x262ba6 of _0x5a834a){const _0x59825e=_0x262ba6['item'];_0x1e63da=_0x1e63da||_0x5f29e0['isContent'](_0x59825e);const _0x245a8d=_0x310f57['mapper']['toViewElement'](_0x59825e);if(_0x245a8d&&_0x245a8d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x262ba6['type']&&(_0x5f29e0['isBlock'](_0x59825e)&&!_0x5f29e0['isLimit'](_0x59825e)&&(_0x59825e['nextSibling']||_0x4d263d['isAtEnd']?_0x287d1d&&_0x287d1d['parent']==_0x59825e||(_0x287d1d=_0x59825e,_0x596cf2(_0x262ba6['previousPosition']),_0x5667bb=!0x0):_0x140a43=_0x140a43||_0x262ba6['previousPosition']));}function _0x596cf2(_0x26d705){const {id:_0xf0631,authorId:_0x38d771}=_0xe425c6['_splitMarkerName'](_0x40f09d['markerName']),_0x5ad1b3=_0x310f57['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x236049,'data-suggestion':_0xf0631,'data-author-id':_0x38d771}),_0xffffe4=_0x310f57['mapper']['toViewPosition'](_0x26d705);_0x1bf76e&&_0xe425c6['activeMarkers']['includes'](_0x40f09d['markerName'])&&_0x310f57['writer']['addClass']('ck-suggestion-marker--active',_0x5ad1b3),_0x310f57['writer']['insert'](_0xffffe4,_0x5ad1b3),_0x310f57['mapper']['bindElementToMarker'](_0x5ad1b3,_0x40f09d['markerName']);}_0x1e63da||_0x5667bb||!_0x140a43||_0x596cf2(_0x140a43);};}class K extends _0x3d96fc{static get['requires'](){return[_0x423bd8];}['init'](){const _0x53b4fb=this['editor'],_0x2e7426=_0x53b4fb['plugins']['get']('TrackChangesEditing');_0x2e7426['enableCommand']('delete');const _0x20491b=_0x53b4fb['commands']['get']('deleteForward');_0x2e7426['enableCommand']('deleteForward',(_0x1822c4,_0x538423={})=>{const _0xc29ea5=_0x53b4fb['model']['createSelection'](_0x53b4fb['model']['document']['selection']);_0xc29ea5['isCollapsed']&&_0x53b4fb['model']['modifySelection'](_0xc29ea5,{'direction':'forward','unit':_0x538423['unit']});const _0x5f107f=_0xc29ea5['getFirstRange'](),_0x3b7b46=_0x2e68e7['fromRange'](_0x5f107f);let _0x4e5c4d;_0x1822c4(_0x538423),_0x4e5c4d='$graveyard'==_0x3b7b46['root']['rootName']?_0x53b4fb['model']['createRange'](_0x5f107f['start']):_0x53b4fb['model']['createRange'](_0x3b7b46['start'],_0x3b7b46['end']),_0x3b7b46['detach'](),_0x53b4fb['model']['enqueueChange'](_0x20491b['buffer']['batch'],_0x12ce17=>{_0x20491b['buffer']['lock'](),_0x12ce17['setSelection'](_0x12ce17['createRange'](_0x4e5c4d['end'])),_0x20491b['buffer']['unlock']();});}),_0x53b4fb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x53b4fb,'merge'),{'priority':'high'}),_0x53b4fb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x21bdf1,_0x135b0b,_0x161e76)=>{_0x161e76['options']['showSuggestionHighlights']&&De(_0x53b4fb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x21bdf1,_0x135b0b,_0x161e76);},{'priority':'high'}),_0x53b4fb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2723c6,_0x24f1b5,_0x551e43)=>{const _0x32f470=_0x551e43['mapper']['markerNameToElements'](_0x24f1b5['markerName']);if(_0x32f470){for(const _0x43c4a5 of _0x32f470)_0x43c4a5['is']('uiElement')&&(_0x551e43['mapper']['unbindElementFromMarkerName'](_0x43c4a5,_0x24f1b5['markerName']),_0x551e43['writer']['remove'](_0x43c4a5));}},{'priority':'high'});}}class H extends _0x3d96fc{['afterInit'](){const _0x4f7d97=this['editor'];if(!_0x4f7d97['plugins']['has']('ListEditing'))return;const _0x17502f=_0x4f7d97['locale'],_0x5557ea=_0x4f7d97['plugins']['get']('TrackChangesEditing'),_0x44db6d=_0x4f7d97['plugins']['has']('TodoListEditing'),_0xc91aa5=!!_0x4f7d97['config']['get']('list.multiBlock');function _0x22e5b4(_0x164328){return{'type':'format','content':''+o(_0x17502f,'*Set\x20format:*\x20%0',_0x164328)};}function _0x1197dc(_0x3023f6){return{'type':'format','content':''+o(_0x17502f,'*Remove\x20format:*\x20%0',_0x3023f6)};}_0x5557ea['enableDefaultAttributesIntegration']('numberedList'),_0x5557ea['enableDefaultAttributesIntegration']('bulletedList'),_0x5557ea['enableDefaultAttributesIntegration']('customNumberedList'),_0x5557ea['enableDefaultAttributesIntegration']('customBulletedList'),_0x5557ea['enableDefaultAttributesIntegration']('indentList'),_0x5557ea['enableDefaultAttributesIntegration']('outdentList'),_0x5557ea['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5557ea['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5557ea['registerBlockAttribute']('listItemId'),_0x5557ea['registerBlockAttribute']('listType'),_0x5557ea['registerBlockAttribute']('listIndent'),_0xc91aa5&&(_0x5557ea['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5557ea['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x44db6d&&(_0x5557ea['enableDefaultAttributesIntegration']('todoList'),_0x5557ea['enableDefaultAttributesIntegration']('checkTodoList'),_0x5557ea['registerBlockAttribute']('todoListChecked'),_0x5557ea['descriptionFactory']['registerDescriptionCallback'](_0x4670c8=>{const {data:_0x2164d}=_0x4670c8;if(_0x2164d&&'todoListChecked'==_0x2164d['key'])return{'type':'format','content':_0x2164d['newValue']?o(_0x17502f,'*Check\x20item*'):o(_0x17502f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x9db139=>{if(_0x9db139['batch']['isUndo'])return!0x1;let _0x40cdb5=!0x1;const _0x230d04=_0x5557ea['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x102913=>'todoListChecked'===_0x5557ea['_getAttributeKey'](_0x102913));for(const _0x4042ea of _0x230d04){'todo'!=_0x4042ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5557ea['_findSuggestions'](_0x4042ea['getFirstRange'](),'attribute')['find'](_0x4c44fb=>'listType'===_0x5557ea['_getAttributeKey'](_0x4c44fb['suggestion']))||(_0x9db139['removeMarker'](_0x4042ea['getFirstMarker']()),_0x40cdb5=!0x0));}return _0x40cdb5;})),_0x5557ea['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x17502f,'FORMAT_INDENT'));const _0x3e51e9={'type':'format','content':''};_0x5557ea['descriptionFactory']['registerDescriptionCallback'](_0x4db68b=>{const {data:_0x4023fd}=_0x4db68b;if(!_0x4023fd||'listType'!=_0x4023fd['key'])return;let _0x3475ea=_0x4db68b['head'];for(;_0x3475ea;){if(_0x3475ea['data']&&(('listStyle'==_0x3475ea['data']['key']||'listMarkerStyle'==_0x3475ea['data']['key'])&&(_0x3475ea['data']['newValue']&&'default'!=_0x3475ea['data']['newValue']||'default'!=_0x3475ea['data']['oldValue']&&!_0x4023fd['newValue'])||!_0xc91aa5&&_0x3475ea['data']['key']==m))return _0x3e51e9;_0x3475ea=_0x3475ea['next'];}if(null==_0x4023fd['newValue'])switch(_0x4023fd['oldValue']){case'bulleted':return _0x1197dc(o(_0x17502f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1197dc(o(_0x17502f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1197dc(o(_0x17502f,'ELEMENT_TODO_LIST'));}switch(_0x4023fd['newValue']){case'bulleted':return _0x22e5b4(o(_0x17502f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22e5b4(o(_0x17502f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22e5b4(o(_0x17502f,'ELEMENT_TODO_LIST'));}}),_0x5557ea['descriptionFactory']['registerDescriptionCallback'](_0x283192=>{const {data:_0xd72e53}=_0x283192;if(_0xd72e53&&'listIndent'==_0xd72e53['key'])return null==_0xd72e53['newValue']||null==_0xd72e53['oldValue']&&0x0==_0xd72e53['newValue']?_0x3e51e9:void 0x0;}),_0x5557ea['descriptionFactory']['registerDescriptionCallback'](_0x215e34=>{if('attribute'!=_0x215e34['type'])return;const {data:_0x15b0ee}=_0x215e34;if(!_0x15b0ee||'listItemId'!=_0x15b0ee['key'])return;const _0x35cc71=Te(_0x215e34);return'newValue'==_0x35cc71?{'type':'format','content':o(_0x17502f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x35cc71?{'type':'format','content':o(_0x17502f,'*Split:*\x20list\x20item')}:_0x3e51e9;}),_0x4f7d97['model']['document']['registerPostFixer'](_0x7a172b=>this['listItemIdFixer'](_0x7a172b)),_0x4f7d97['model']['document']['registerPostFixer'](_0x22b40f=>this['noTrackChangesFixer'](_0x22b40f)),_0x4f7d97['model']['document']['on']('change:data',(_0x593f5e,_0x438ec8)=>{if(_0x438ec8['isUndo']||!_0x438ec8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x71ddce){if(_0x71ddce['batch']['isUndo']||!_0x71ddce['batch']['isLocal'])return!0x1;let _0x412b9d=!0x1;const _0x1c1697=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b34bc=>_0x5b34bc['data']&&'listItemId'==_0x5b34bc['data']['key'])['filter'](_0x511206=>_0x511206['data']['newValue']&&_0x511206['data']['oldValue']);for(const _0x3b8c76 of _0x1c1697)Te(_0x3b8c76)||(_0x71ddce['removeMarker'](_0x3b8c76['getFirstMarker']()),_0x412b9d=!0x0);return _0x412b9d;}['noTrackChangesFixer'](_0x2ebee9){if(_0x2ebee9['batch']['isUndo']||!_0x2ebee9['batch']['isLocal'])return!0x1;const _0x3a3e90=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3a3e90['trackChangesCommand']['value'])return!0x1;let _0x5723b0=!0x1;const _0x459f78=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3b7949=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1a489d=>'attribute'==_0x1a489d['type'])['filter'](_0x1e847a=>_0x459f78['includes'](_0x1e847a['attributeKey']));if(0x0==_0x3b7949['length'])return _0x5723b0;for(const _0x5831bb of _0x3b7949){const _0x52c167=_0x3a3e90['_findSuggestions'](_0x5831bb['range'],'attribute')['filter'](_0x28eed7=>!_0x28eed7['meta']['isNextTo'])['map'](_0x567706=>_0x567706['suggestion'])['filter'](_0x2e3fe1=>{const _0x41804a=_0x3a3e90['_getAttributeKey'](_0x2e3fe1);return _0x459f78['includes'](_0x41804a);});if(_0x52c167['length']){for(const _0x872c58 of _0x52c167)_0x2ebee9['removeMarker'](_0x872c58['getFirstMarker']());_0x5723b0=!0x0;}}return _0x5723b0;}['assureChains'](){const _0x5012f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdc1bdc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5be9c8;const _0x3cf781=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2062ef=>{if(_0x2062ef['data']['oldRange']||!_0x2062ef['data']['newRange'])return null;if(!_0x2062ef['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x61416e}=_0x5012f3['_splitMarkerName'](_0x2062ef['name']);if(!_0x5012f3['hasSuggestion'](_0x61416e))return null;const _0x228fb1=_0x5012f3['getSuggestion'](_0x61416e);return _0xdc1bdc['includes'](_0x228fb1['data']['key']);})['map'](_0x1bb8f7=>{const {id:_0x3f1799}=_0x5012f3['_splitMarkerName'](_0x1bb8f7['name']),_0x4c8130=_0x5012f3['getSuggestion'](_0x3f1799);return _0x5be9c8=_0x4c8130['attributes']['groupId'],_0x4c8130['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3cf781['size'])return;const _0x53705a=_0x5012f3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1640c5=>'attribute'==_0x1640c5['type']&&_0x1640c5['data']&&_0xdc1bdc['includes'](_0x1640c5['data']['key'])&&_0x1640c5['attributes']['groupId']!=_0x5be9c8)['map'](_0x1c8972=>({'listItem':_0x1c8972['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1c8972['attributes']['groupId']})),_0x4e3912=new Set();for(const {groupId:_0x4ba3ca,listItem:_0x14411a}of _0x53705a)_0x3cf781['has'](_0x14411a)&&_0x4e3912['add'](_0x4ba3ca);for(const _0x1fe64b of _0x5012f3['getSuggestions']())_0x4e3912['has'](_0x1fe64b['attributes']['groupId'])&&_0x1fe64b['setAttribute']('groupId',_0x5be9c8);}['_supportLegacySuggestions'](){const _0x5e6b98=this['editor'],_0x4bff94=_0x5e6b98['locale'],_0x26d597=_0x5e6b98['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x26d597['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2e21b3,_0x1907fc){const _0x479f79=[];for(let _0x55d489 of _0x2e21b3)_0x55d489['start']['nodeAfter']===_0x55d489['end']['parent']&&(_0x55d489=_0x5e6b98['model']['createRange'](_0x5e6b98['model']['createPositionAt'](_0x55d489['start']['nodeAfter'],0x0))),_0x479f79['push'](_0x55d489);_0x5e6b98['model']['change'](_0x2c6a77=>{const _0x5d73ef=_0x5e6b98['model']['document']['selection'],_0x4d5eab=Array['from'](_0x5d73ef['getRanges']())['map'](_0xf013f3=>_0x2e68e7['fromRange'](_0xf013f3));_0x2c6a77['setSelection'](_0x479f79),_0x5e6b98['commands']['get'](_0x1907fc['commandName'])['refresh'](),_0x1907fc['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5e6b98['execute'](_0x1907fc['commandName'],..._0x1907fc['commandParams']),_0x2c6a77['setSelection'](_0x4d5eab);for(const _0x3efde4 of _0x4d5eab)_0x3efde4['detach']();});}),_0x26d597['descriptionFactory']['registerElementLabel'](function(_0x54f15d){const _0x5ad121=!_0x5e6b98['model']['schema']['isObject'](_0x54f15d),_0x4eee5d=_0x54f15d['previousSibling'],_0x4ed837=_0x54f15d['nextSibling'],_0x5e3672=_0x54f15d['getAttribute']('listItemId'),_0x4f588d=!_0x4eee5d||_0x4eee5d['getAttribute']('listItemId')!==_0x5e3672,_0x41aca9=!_0x4ed837||_0x4ed837['getAttribute']('listItemId')!==_0x5e3672;return _0x5ad121&&Boolean(_0x5e3672)&&_0x4f588d&&_0x41aca9;},_0x4fe459=>o(_0x4bff94,'ELEMENT_LIST_ITEM',_0x4fe459));}['_registerLegacyDescription'](){const _0x4ea8f9=this['editor'],_0x23e9d7=_0x4ea8f9['locale'];function _0x3e7fa7(_0x3a8e9){const _0x12aaee=_0x4ea8f9['commands']['get']('bulletedList')['value'],_0x29f479=_0x4ea8f9['commands']['get']('numberedList')['value'];return'numberedList'===_0x3a8e9?_0x12aaee:_0x29f479;}_0x4ea8f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1d5216){if('formatBlock'!=_0x1d5216['type'])return;const {data:_0x56f22d}=_0x1d5216;if(!_0x56f22d)return;let _0x2f3d7a,_0x5e9b2f,_0x513bab,_0x1701f7;switch(_0x56f22d['commandName']){case'bulletedList':_0x513bab=_0x56f22d['commandParams'][0x0]['forceValue'],_0x1701f7=_0x3e7fa7(_0x56f22d['commandName']),_0x2f3d7a=_0x513bab?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1701f7&&_0x4ea8f9['config']['get']('list.multiBlock')||(_0x2f3d7a='*Change\x20to:*\x20%0'),_0x5e9b2f={'type':'format','content':o(_0x23e9d7,_0x2f3d7a,o(_0x23e9d7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x513bab=_0x56f22d['commandParams'][0x0]['forceValue'],_0x1701f7=_0x3e7fa7(_0x56f22d['commandName']),_0x2f3d7a=_0x513bab?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1701f7&&_0x4ea8f9['config']['get']('list.multiBlock')||(_0x2f3d7a='*Change\x20to:*\x20%0'),_0x5e9b2f={'type':'format','content':o(_0x23e9d7,_0x2f3d7a,o(_0x23e9d7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2f3d7a='*Indent:*\x20%0',_0x5e9b2f={'type':'format','content':o(_0x23e9d7,_0x2f3d7a,o(_0x23e9d7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2f3d7a=function(_0xdca33f){const _0x1a8119=_0xdca33f['getFirstRange']();let _0x39aacb=_0x1a8119['start']['nodeAfter'];for(;_0x39aacb&&_0x1a8119['containsItem'](_0x39aacb);){if(_0x39aacb['getAttribute']('listIndent')>0x0)return!0x1;_0x39aacb=_0x39aacb['nextSibling'];}return!0x0;}(_0x1d5216)?o(_0x23e9d7,'*Format:*\x20remove\x20from\x20%0',o(_0x23e9d7,function(_0x453c22){return'ELEMENT_'+_0x453c22['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1d5216))):o(_0x23e9d7,'*Outdent:*\x20%0',o(_0x23e9d7,'ELEMENT_LIST_ITEM')),_0x5e9b2f={'type':'format','content':_0x2f3d7a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x56f22d['multipleBlocks']&&(_0x2f3d7a='*Merge:*\x20%0',_0x5e9b2f={'type':'deletion','content':o(_0x23e9d7,_0x2f3d7a,o(_0x23e9d7,'ELEMENT_LIST_ITEM'))});}return _0x5e9b2f;});}}function Te(_0x3eef0f){let _0x33fb35=_0x3eef0f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x33fb35;){const _0x16b87b=_0x33fb35['getAttribute']('listItemId');if(!_0x16b87b)return!0x1;if(_0x16b87b==_0x3eef0f['data']['newValue'])return'newValue';if(_0x16b87b==_0x3eef0f['data']['oldValue'])return'oldValue';_0x33fb35=_0x33fb35['previousSibling'];}return!0x1;}class q extends _0x3d96fc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x33e9e4=this['editor']['config']['get']('list.properties'),_0x176869=this['editor']['plugins']['get']('TrackChangesEditing');_0x33e9e4['styles']&&(_0x176869['enableDefaultAttributesIntegration']('listStyle'),_0x176869['registerBlockAttribute']('listStyle')),_0x33e9e4['reversed']&&(_0x176869['enableDefaultAttributesIntegration']('listReversed'),_0x176869['registerBlockAttribute']('listReversed')),_0x33e9e4['startIndex']&&(_0x176869['enableDefaultAttributesIntegration']('listStart'),_0x176869['registerBlockAttribute']('listStart'));const _0x4a0392={'type':'format','content':''};_0x176869['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x41820a=this['editor']['locale'];_0x176869['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x41820a,'FORMAT_LIST_REVERSED')),_0x176869['descriptionFactory']['registerDescriptionCallback'](_0x17eae8=>{const {data:_0x2519a4}=_0x17eae8;if(_0x2519a4&&'listReversed'==_0x2519a4['key'])return null==_0x2519a4['newValue']||0x0==_0x2519a4['newValue']&&null==_0x2519a4['oldValue']?_0x4a0392:void 0x0;}),_0x176869['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x41820a,'FORMAT_LIST_START')),_0x176869['descriptionFactory']['registerDescriptionCallback'](_0x1711df=>{const {data:_0x6c60e9}=_0x1711df;if(_0x6c60e9&&'listStart'==_0x6c60e9['key'])return null==_0x6c60e9['newValue']||0x1==_0x6c60e9['newValue']&&null==_0x6c60e9['oldValue']?_0x4a0392:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x40e395=>{if(_0x40e395['batch']['isUndo'])return!0x1;let _0x593577=!0x1;const _0x4d9ef0=_0x176869['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ea3e6=>{const _0x2bbb73=_0x176869['_getAttributeKey'](_0x4ea3e6);return'listStart'==_0x2bbb73||'listReversed'==_0x2bbb73;});for(const _0x1e9b47 of _0x4d9ef0){const _0x4aa951=_0x1e9b47['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4aa951||'customNumbered'==_0x4aa951)continue;_0x176869['_findSuggestions'](_0x1e9b47['getFirstRange'](),'attribute')['find'](_0x4c3c50=>'listType'==_0x176869['_getAttributeKey'](_0x4c3c50['suggestion']))||(_0x40e395['removeMarker'](_0x1e9b47['getFirstMarker']()),_0x593577=!0x0);}return _0x593577;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3b1c15){const _0x5b26b9=this['editor']['locale'],{data:_0x11db56}=_0x3b1c15,_0x48b08d={'type':'format','content':''};if(!_0x11db56||'listStyle'!=_0x11db56['key'])return;if(!_0x11db56['oldValue'])return'default'==_0x11db56['newValue']?_0x48b08d:{'type':'format','content':''+o(_0x5b26b9,'*Set\x20format:*\x20%0',o(_0x5b26b9,this['_getTranslationKeyForListStyle'](_0x11db56['newValue'])))};if(!_0x11db56['newValue']){if('default'==_0x11db56['oldValue'])return _0x48b08d;let _0x5ef86f=_0x3b1c15['head'];for(;_0x5ef86f;){if(_0x5ef86f['data']&&'listType'==_0x5ef86f['data']['key']&&_0x5ef86f['data']['newValue'])return _0x48b08d;_0x5ef86f=_0x5ef86f['next'];}return{'type':'format','content':''+o(_0x5b26b9,'*Remove\x20format:*\x20%0',o(_0x5b26b9,this['_getTranslationKeyForListStyle'](_0x11db56['oldValue'])))};}if('default'!=_0x11db56['newValue'])return{'type':'format','content':''+o(_0x5b26b9,'*Set\x20format:*\x20%0',o(_0x5b26b9,this['_getTranslationKeyForListStyle'](_0x11db56['newValue'])))};let _0x119553=_0x3b1c15['head'];for(;_0x119553;){if(_0x119553['data']&&'listType'==_0x119553['data']['key']&&_0x119553['data']['newValue']&&_0x119553['data']['oldValue'])return _0x48b08d;_0x119553=_0x119553['next'];}return{'type':'format','content':o(_0x5b26b9,'*Set\x20format:*\x20%0',o(_0x5b26b9,'ELEMENT_'+_0x3b1c15['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x181df8=this['editor'],_0x14049b=_0x181df8['locale'];_0x181df8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48cedc=>{if('formatBlock'!=_0x48cedc['type'])return;const {data:_0x1c11a2}=_0x48cedc;if(!_0x1c11a2)return;let _0x41c04e,_0x387092;switch(_0x1c11a2['commandName']){case'listStyle':_0x41c04e='*Change\x20to:*\x20%0',_0x387092={'type':'format','content':o(_0x14049b,_0x41c04e,o(_0x14049b,this['_getTranslationKeyForListStyle'](_0x1c11a2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x41c04e=_0x1c11a2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x387092={'type':'format','content':o(_0x14049b,_0x41c04e)};break;case'listStart':_0x41c04e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x387092={'type':'format','content':o(_0x14049b,_0x41c04e,_0x1c11a2['commandParams'][0x0]['startIndex'])};}return _0x387092;});}['_getTranslationKeyForListStyle'](_0x902937){return'ELEMENT_'+function(_0x31801a){if(Se['includes'](_0x31801a))return'bulleted';if(_e['includes'](_0x31801a))return'numbered';return null;}(_0x902937)['toUpperCase']()+'_LIST_'+_0x902937['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x3d96fc{['afterInit'](){const _0xce94be=this['editor'];_0xce94be['commands']['get']('emoji')&&_0xce94be['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x3d96fc{static get['requires'](){return[_0x41ceea];}['init'](){const _0x71ef8=this['editor'],_0x55ca37=_0x71ef8['plugins']['get']('TrackChangesEditing'),_0x23bec0=_0x71ef8['commands']['get']('enter');_0x55ca37['enableCommand']('enter',()=>{_0x71ef8['model']['change'](_0x212234=>{const _0x48faa4=_0x71ef8['model']['document']['selection'],_0x59113b=_0x48faa4['getFirstPosition'](),_0x50a31=_0x2e68e7['fromRange'](_0x48faa4['getFirstRange']());if(_0x23bec0['enterBlock'](_0x212234)){const _0x361dfa=_0x71ef8['model']['createPositionAt'](_0x59113b['parent']['nextSibling'],0x0),_0x2ec8a2=_0x212234['createRange'](_0x59113b,_0x361dfa);_0x55ca37['markInsertion'](_0x2ec8a2);}else _0x212234['setSelection'](_0x212234['createRange'](_0x50a31['end']));_0x50a31['detach'](),_0x23bec0['fire']('afterExecute',{'writer':_0x212234});});}),_0x71ef8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x71ef8,'split'),{'priority':'high'}),_0x71ef8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x34443b,_0x543a54,_0x4b546e)=>{const _0x3cda60=_0x4b546e['mapper']['markerNameToElements'](_0x543a54['markerName']);if(_0x3cda60){for(const _0x23af48 of _0x3cda60)_0x23af48['hasClass']('ck-suggestion-marker-split')&&(_0x4b546e['mapper']['unbindElementFromMarkerName'](_0x23af48,_0x543a54['markerName']),_0x4b546e['writer']['remove'](_0x23af48));}},{'priority':'high'}),_0x71ef8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd306de,_0x486ec7,_0x3d6953)=>{_0x3d6953['options']['showSuggestionHighlights']&&De(_0x71ef8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xd306de,_0x486ec7,_0x3d6953);},{'priority':'high'});}}class Q extends _0x3d96fc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3f0656=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f0656['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3f0656['enableCommand']('findNext'),_0x3f0656['enableCommand']('findPrevious'),_0x3f0656['enableCommand']('replace'),_0x3f0656['enableCommand']('replaceAll');}['handleFindCommand'](_0x104c81,_0xae395f,_0x3d38b4={}){const _0xb5cb7e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x104c81(_0x7d9e01=>{let _0x3cc05e=('string'==typeof _0xae395f?_0xb5cb7e['findByTextCallback'](_0xae395f,_0x3d38b4):_0xae395f)(_0x7d9e01);Array['isArray'](_0x3cc05e)&&(_0x3cc05e={'results':_0x3cc05e,'searchText':'string'==typeof _0xae395f?_0xae395f:''});const _0x236b19=_0x3cc05e['results']['filter'](_0xd01036=>!0x1===this['_isInDeletionRange'](_0xd01036,_0x7d9e01['item']));return{..._0x3cc05e,'results':_0x236b19};},_0x3d38b4);}['_isInDeletionRange'](_0x3bce50,_0xcdf95b){const _0x487aaf=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xcdf95b,_0x3bce50['start']),this['editor']['model']['createPositionAt'](_0xcdf95b,_0x3bce50['end']));for(const _0x4e94f9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x487aaf['getIntersection'](_0x4e94f9['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x3d96fc{['afterInit'](){const _0x38c3f5=this['editor']['locale'],_0xf625d4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a22d6,commandName:_0x49a5a7}of eo)this['editor']['plugins']['has'](_0x4a22d6)&&(_0xf625d4['enableDefaultAttributesIntegration'](_0x49a5a7),_0xf625d4['registerInlineAttribute'](_0x49a5a7));_0xf625d4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x38c3f5,'FORMAT_FONT_SIZE')),_0xf625d4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x38c3f5,'FORMAT_FONT_FAMILY')),_0xf625d4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x38c3f5,'FORMAT_FONT_COLOR')),_0xf625d4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x38c3f5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c971f=this['editor'],_0x22bff7=_0x6c971f['locale'];_0x6c971f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a8823=>{const _0x284834=_0x22bff7['t'];if('formatInline'!=_0x1a8823['type'])return;const {data:_0x346030}=_0x1a8823;if(null!=_0x346030){if('fontSize'==_0x346030['commandName']){const _0x6d188d=_0x346030['commandParams'][0x0]['value'];if(_0x6d188d){const _0xc2b915=_0x284834(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x412da7=>_0x412da7['model']==_0x6d188d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x22bff7,'*Set\x20font\x20size:*\x20%0',_0xc2b915)};}return{'type':'format','content':o(_0x22bff7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x346030['commandName']){const _0x1c33fa=_0x346030['commandParams'][0x0]['value'];return _0x1c33fa?{'type':'format','content':o(_0x22bff7,'*Set\x20font\x20family:*\x20%0',_0x1c33fa)}:{'type':'format','content':o(_0x22bff7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x346030['commandName']){const _0x5af9b0=_0x346030['commandParams'][0x0]['value'];if(_0x5af9b0){const _0x585884=_0x1338b0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x8a886d=>_0x8a886d['model']==_0x5af9b0);let _0xfa1ed4=_0x5af9b0,_0x22580a='';return _0x585884&&(_0xfa1ed4=_0x585884['label'],_0x22580a=_0x284834(_0xfa1ed4)['toLowerCase']()),{'type':'format','content':o(_0x22bff7,'*Set\x20font\x20color:*\x20%0',_0x22580a)['trim'](),'color':{'value':_0x5af9b0,'title':_0x22580a||_0xfa1ed4}};}return{'type':'format','content':o(_0x22bff7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x346030['commandName']){const _0x127ca8=_0x346030['commandParams'][0x0]['value'];if(_0x127ca8){const _0x1011f7=_0x1338b0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xfee406=>_0xfee406['model']==_0x127ca8);let _0x43fe03=_0x127ca8,_0x301820='';return _0x1011f7&&(_0x43fe03=_0x1011f7['label'],_0x301820=_0x284834(_0x43fe03)['toLowerCase']()),{'type':'format','content':o(_0x22bff7,'*Set\x20font\x20background\x20color:*\x20%0',_0x301820)['trim'](),'color':{'value':_0x127ca8,'title':_0x301820||_0x43fe03}};}return{'type':'format','content':o(_0x22bff7,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x3d96fc{['afterInit'](){const _0x374db2=this['editor'],_0x183e5a=_0x374db2['plugins']['get']('TrackChangesEditing'),_0x4f8b1d=_0x374db2['commands']['get']('copyFormat'),_0x3c5faa=_0x374db2['commands']['get']('pasteFormat');_0x4f8b1d&&_0x3c5faa&&(_0x183e5a['enableDefaultAttributesIntegration']('pasteFormat'),_0x183e5a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x39c005=this['editor'],_0x5db2a0=_0x39c005['locale'];_0x39c005['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a5500=>{if('formatBlock'!=_0x4a5500['type']&&'formatInline'!=_0x4a5500['type'])return;const {data:_0x39a5ad}=_0x4a5500;if(_0x39a5ad&&'pasteFormat'===_0x39a5ad['commandName']){const _0x148490=[],_0x1a4384=_0x39a5ad['commandParams'][0x0];for(const [_0x3e716f,_0x1afdf1]of Object['entries'](_0x1a4384))_0x148490['push'](ro(_0x39c005,_0x3e716f,_0x1afdf1));return _0x148490['length']?{'type':'format','content':o(_0x5db2a0,'*Set\x20format\x20to:*\x20%0',_0x148490['join'](',\x20'))}:{'type':'format','content':o(_0x5db2a0,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x36422f,_0x305312,_0x27f660){const _0x4eed76=_0x36422f['locale']['t'],_0x114848=_0x305312['split'](/(?=[A-Z])/)['join']('\x20'),_0x50db1d=_0x4eed76(_0x114848['charAt'](0x0)['toUpperCase']()+_0x114848['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x27f660)return _0x50db1d;if('fontColor'===_0x305312||'fontBackgroundColor'===_0x305312){const _0x50b20f=_0x1338b0(_0x36422f['config']['get']('fontColor.colors'))['find'](_0x38e9cb=>_0x38e9cb['model']==_0x27f660);return _0x50db1d+'\x20('+(_0x50b20f?_0x4eed76(_0x50b20f['label'])['toLowerCase']():_0x27f660)+')';}if('fontSize'===_0x305312&&isNaN(parseFloat(_0x27f660))){const _0x2527f1=_0x36422f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36422f['config']['get']('fontSize.options'))['find'](_0x234ddc=>_0x234ddc['model']==_0x27f660);return _0x50db1d+'\x20('+(_0x2527f1?_0x4eed76(_0x2527f1['title'])['toLowerCase']():_0x27f660)+')';}return _0x50db1d+'\x20('+_0x27f660+')';}class Z extends _0x3d96fc{['_headingOptions'];['afterInit'](){const _0x3fbd33=this['editor'];if(!_0x3fbd33['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3fbd33['config']['get']('heading.options');const _0x2d0cac=_0x3fbd33['locale'],_0x3aee02=_0x3fbd33['plugins']['get']('TrackChangesEditing');_0x3aee02['enableDefaultAttributesIntegration']('heading');for(const _0x31fd22 of this['_headingOptions'])'paragraph'!=_0x31fd22['model']&&_0x3aee02['descriptionFactory']['registerElementLabel'](_0x31fd22['model'],_0x26e935=>{const _0x56db5a=this['_getHeadingLevel'](_0x31fd22['model']);return null!==_0x56db5a?_0x4a3b9d(_0x26e935,_0x56db5a):_0x2442ce(_0x26e935,_0x31fd22['title']);});function _0x4a3b9d(_0x53861d,_0x4fe135){return o(_0x2d0cac,'ELEMENT_HEADING',[_0x53861d,_0x4fe135]);}function _0x2442ce(_0x1dec26,_0x2110b6){return o(_0x2d0cac,'ELEMENT_HEADING_CUSTOM',[_0x1dec26,_0x2110b6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a522f=this['editor'],_0x19a8a1=_0x1a522f['locale'];function _0x4ba39d(_0x2526bd,_0x4f7ee9){return o(_0x19a8a1,'ELEMENT_HEADING_CUSTOM',[_0x2526bd,_0x4f7ee9]);}_0x1a522f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42994a=>{if('formatBlock'!=_0x42994a['type'])return;const {data:_0x1f0dc5}=_0x42994a;if(_0x1f0dc5&&'heading'==_0x1f0dc5['commandName']){const _0x5496e8=_0x1f0dc5['commandParams'][0x0]['value'],_0x224966=this['_getHeadingLevel'](_0x5496e8);if(null!==_0x224966)return{'type':'format','content':o(_0x19a8a1,'*Change\x20to:*\x20%0',(_0x447d65=0x1,_0x59ba73=_0x224966,o(_0x19a8a1,'ELEMENT_HEADING',[_0x447d65,_0x59ba73])))};const _0x394fb2=this['_headingOptions']['find'](_0x1380e6=>_0x1380e6['model']===_0x5496e8)['title'];return{'type':'format','content':o(_0x19a8a1,'*Change\x20to:*\x20%0',_0x4ba39d(0x1,_0x394fb2))};}var _0x447d65,_0x59ba73;});}['_getHeadingLevel'](_0x47a926){const _0x26a9ee=_0x47a926['match'](/^heading(\d+)/);if(_0x26a9ee)return _0x26a9ee[0x1];const _0x4bf2d6=this['_headingOptions']?.['find'](_0x4abeaf=>_0x4abeaf['model']==_0x47a926);if(_0x4bf2d6&&_0x4bf2d6['view']){const _0x2ee297=_0x4bf2d6['view'],_0x3fdef9=(_0x2ee297['name']??_0x2ee297)['match'](/^h(\d+)/);if(_0x3fdef9)return _0x3fdef9[0x1];}return null;}}class tt extends _0x3d96fc{['afterInit'](){const _0x428f66=this['editor'];if(!_0x428f66['plugins']['has']('HighlightEditing'))return;const _0x5e1e57=_0x428f66['plugins']['get']('TrackChangesEditing'),_0x40813f=_0x428f66['locale'];_0x5e1e57['enableDefaultAttributesIntegration']('highlight'),_0x5e1e57['registerInlineAttribute']('highlight'),_0x5e1e57['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x40813f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57ffcd=this['editor'],_0x44d965=_0x57ffcd['locale'];_0x57ffcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26d89b=>{if('formatInline'!=_0x26d89b['type'])return;const {data:_0x3d7d59}=_0x26d89b;if(_0x3d7d59&&'highlight'==_0x3d7d59['commandName']){const _0x14b919=_0x44d965['t'],_0x303103=_0x3d7d59['commandParams'][0x0]['value'];if(_0x303103){const _0x210418=_0x57ffcd['config']['get']('highlight.options')['find'](_0x2c0e89=>_0x2c0e89['model']==_0x303103),_0x42dfc4=_0x14b919(_0x210418['title'])['toLowerCase']();return{'type':'format','content':o(_0x44d965,'*Set\x20highlight:*\x20%0',_0x42dfc4),'color':{'value':_0x210418['color'],'title':_0x210418['title']}};}return{'type':'format','content':o(_0x44d965,'*Remove\x20highlight*',o(_0x44d965,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3d96fc{['afterInit'](){const _0x55cf49=this['editor'];if(!_0x55cf49['plugins']['has']('HorizontalLineEditing'))return;_0x55cf49['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4ac164=_0x55cf49['plugins']['get']('TrackChangesEditing'),_0x12c1dd=_0x55cf49['locale'];_0x4ac164['descriptionFactory']['registerElementLabel']('horizontalLine',_0x152419=>o(_0x12c1dd,'ELEMENT_HORIZONTAL_LINE',_0x152419)),_0x55cf49['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x39c9f9,{writer:_0x6d0e72,options:_0x5b0b5e})=>{if(!_0x5b0b5e['showSuggestionHighlights'])return null;const _0x5b4318=_0x6d0e72['createContainerElement']('div'),_0x251dc7=_0x6d0e72['createEmptyElement']('hr');return _0x6d0e72['addClass']('ck-horizontal-line',_0x5b4318),_0x6d0e72['insert'](_0x6d0e72['createPositionAt'](_0x5b4318,0x0),_0x251dc7),_0x5b4318;},'converterPriority':'high'});}}class nt extends _0x3d96fc{['afterInit'](){const _0x5897d1=this['editor'];if(!_0x5897d1['plugins']['has']('HtmlEmbed'))return;const _0x3b5d05=_0x5897d1['plugins']['get']('TrackChangesEditing'),_0x5ad08e=_0x5897d1['locale'];_0x3b5d05['descriptionFactory']['registerElementLabel']('rawHtml',_0x5f5425=>o(_0x5ad08e,'ELEMENT_HTML_EMBED',_0x5f5425)),_0x3b5d05['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3b5d05['registerBlockAttribute']('value'),_0x3b5d05['descriptionFactory']['registerDescriptionCallback'](_0x56e034=>{if('attribute'!=_0x56e034['type'])return;const {data:_0x1cb09e}=_0x56e034;if(_0x1cb09e&&'value'==_0x1cb09e['key']&&_0x56e034['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xb6196=o(_0x5ad08e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5ad08e,'*Change\x20%0\x20content*',_0xb6196)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb0377=this['editor'],_0x2b06bc=_0xdb0377['locale'];_0xdb0377['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41d7bc=>{if('formatBlock'!=_0x41d7bc['type'])return;const {data:_0x4d4fb6}=_0x41d7bc;if(_0x4d4fb6&&'htmlEmbed'==_0x4d4fb6['commandName']){const _0x17ddd5=o(_0x2b06bc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b06bc,'*Change\x20%0\x20content*',_0x17ddd5)};}});}}class et extends _0x3d96fc{['afterInit'](){const _0x27ca23=this['editor'];if(!_0x27ca23['plugins']['has']('ImageEditing'))return;const _0x2796ca=_0x27ca23['plugins']['get']('TrackChangesEditing'),_0x3957ed=_0x27ca23['plugins']['get']('ImageUtils'),_0x536002=_0x27ca23['locale'];_0x2796ca['enableCommand']('insertImage'),_0x2796ca['descriptionFactory']['registerElementLabel']('imageBlock',_0x36beed=>o(_0x536002,'ELEMENT_IMAGE',_0x36beed)),_0x2796ca['descriptionFactory']['registerElementLabel']('imageInline',_0x3abed1=>o(_0x536002,'ELEMENT_INLINE_IMAGE',_0x3abed1)),_0x2796ca['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x536002,'ELEMENT_CAPTION')),_0x27ca23['plugins']['has']('ImageUploadEditing')&&_0x2796ca['enableCommand']('uploadImage'),_0x27ca23['plugins']['has']('ImageBlockEditing')&&_0x27ca23['plugins']['has']('ImageInlineEditing')&&(_0x2796ca['enableCommand']('imageTypeInline',(_0x1de07c,_0x39d9b9)=>{const _0x3835a9=_0x3957ed['getClosestSelectedImageElement'](_0x27ca23['model']['document']['selection']);_0x27ca23['model']['change'](()=>{_0x2796ca['markBlockFormat'](_0x3835a9,{'commandName':'imageTypeInline','commandParams':[_0x39d9b9]},[],'convertBlockImageToInline');});}),_0x2796ca['enableCommand']('imageTypeBlock',(_0x28f6a2,_0xfce795)=>{_0x27ca23['model']['change'](_0x394b9a=>{let _0x4704d5=_0x3957ed['getClosestSelectedImageElement'](_0x27ca23['model']['document']['selection']),_0xf2ef82=_0x394b9a['createRangeOn'](_0x4704d5);const _0x4fbbb8=_0x120352['fromPosition'](_0xf2ef82['start'],'toPrevious'),_0x28106e=_0x120352['fromPosition'](_0xf2ef82['end'],'toNext');_0x2796ca['forceDefaultExecution'](()=>_0x28f6a2(_0xfce795)),_0x4704d5=_0x3957ed['getClosestSelectedImageElement'](_0x27ca23['model']['document']['selection']),_0xf2ef82=_0x394b9a['createRangeOn'](_0x4704d5);const _0x1c0bb2=_0x394b9a['createRange'](_0x4fbbb8,_0x28106e);_0x4fbbb8['detach'](),_0x28106e['detach'](),_0x2796ca['markBlockFormat'](_0x4704d5,{'commandName':'imageTypeInline','commandParams':[_0xfce795]},[],'convertInlineImageToBlock'),_0x1c0bb2['start']['isBefore'](_0xf2ef82['start'])&&_0x2796ca['markInsertion'](_0x394b9a['createRange'](_0x1c0bb2['start'],_0xf2ef82['start']),'convertInlineImageToBlock'),_0xf2ef82['end']['isBefore'](_0x1c0bb2['end'])&&_0x2796ca['markInsertion'](_0x394b9a['createRange'](_0xf2ef82['end'],_0x1c0bb2['end']),'convertInlineImageToBlock');});}),_0x2796ca['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2796ca['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2796ca['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2796ca['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2796ca['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2796ca['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x9a8cc])=>{const _0x34863f=_0x2796ca['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4e77cc=_0x9a8cc['start'],_0x2492bc=_0x9a8cc['end'];const _0x1487f1=_0x27ca23['model']['schema']['getNearestSelectionRange'](_0x4e77cc,'backward'),_0x4ad9d0=_0x27ca23['model']['schema']['getNearestSelectionRange'](_0x2492bc,'forward');_0x1487f1['isCollapsed']&&(_0x4e77cc=_0x1487f1['start']),_0x4ad9d0['isCollapsed']&&(_0x2492bc=_0x4ad9d0['end']),_0x34863f([_0x27ca23['model']['createRange'](_0x4e77cc,_0x2492bc)]);}),_0x2796ca['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f123c),_0x2796ca['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f123c)),_0x27ca23['plugins']['has']('ImageCaptionEditing')&&(_0x2796ca['enableCommand']('toggleImageCaption',(_0x1c083f,_0x4893b0)=>{const _0x180561=_0x27ca23['plugins']['get']('ImageCaptionUtils');let _0x2e3fbd=_0x3957ed['getClosestSelectedImageElement'](_0x27ca23['model']['document']['selection']),_0x35e657=_0x180561['getCaptionFromImageModelElement'](_0x2e3fbd);_0x27ca23['model']['change'](()=>{if(_0x35e657)return void _0x2796ca['markDeletion'](_0x27ca23['model']['createRangeOn'](_0x35e657));const _0x13da2f=_0x3957ed['isBlockImage'](_0x2e3fbd);_0x1c083f(_0x4893b0),_0x2e3fbd=_0x3957ed['getClosestSelectedImageElement'](_0x27ca23['model']['document']['selection']),_0x35e657=_0x180561['getCaptionFromImageModelElement'](_0x2e3fbd),_0x2796ca['markInsertion'](_0x27ca23['model']['createRangeOn'](_0x35e657),_0x13da2f?null:'imageCaption');});}),_0x2796ca['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f123c));const _0x5b98cb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x84b0f1(_0x148d2d,_0x4c1224){const _0x265b21=_0x5b98cb['findIndex'](({type:_0x726ae7,subType:_0x7a9356})=>_0x148d2d['type']==_0x726ae7&&_0x148d2d['subType']==_0x7a9356),_0xf2258b=_0x5b98cb['findIndex'](({type:_0x3c6570,subType:_0x308611})=>_0x4c1224['type']==_0x3c6570&&_0x4c1224['subType']==_0x308611);if(_0x265b21<0x0||_0xf2258b<0x0)return!0x1;const _0x4bb8e8=_0x148d2d['getFirstRange'](),_0x12d9d6=_0x4c1224['getFirstRange']();if((0x0==_0x265b21||0x1==_0x265b21)&&0x2==_0xf2258b&&_0x4bb8e8['isIntersecting'](_0x12d9d6))return!0x0;if(0x2==_0x265b21&&0x3==_0xf2258b){const _0x30ffd2=_0x2796ca['_findSuggestions'](_0x4bb8e8,'insertion')['filter'](({suggestion:_0x1fe692,meta:_0x453a8d})=>_0x453a8d['isOwn']&&'convertInlineImageToBlock'==_0x1fe692['subType']);if(_0x30ffd2['length']>0x1&&_0x12d9d6['end']['isEqual'](_0x4bb8e8['start']))return!0x0;if(0x1==_0x30ffd2['length']&&(_0x4bb8e8['start']['isEqual'](_0x12d9d6['end'])||_0x4bb8e8['end']['isEqual'](_0x12d9d6['start'])))return!0x0;}if(0x3==_0x265b21&&0x3==_0xf2258b&&_0x4bb8e8['start']['isBefore'](_0x12d9d6['start'])){const _0x4e7524=_0x4bb8e8['end']['nodeAfter'],_0x161148=_0x12d9d6['start']['nodeBefore'];return _0x3957ed['isBlockImage'](_0x4e7524)&&_0x4e7524===_0x161148;}return!0x1;}function _0x2f123c(_0x3bad0e,_0xe4b2c8){return _0x84b0f1(_0x3bad0e,_0xe4b2c8)?[_0x3bad0e,_0xe4b2c8]:_0x84b0f1(_0xe4b2c8,_0x3bad0e)?[_0xe4b2c8,_0x3bad0e]:null;}_0x27ca23['plugins']['has']('ImageResize')&&(_0x2796ca['enableDefaultAttributesIntegration']('resizeImage'),_0x2796ca['registerBlockAttribute']('resizedWidth'),_0x2796ca['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x536002,'FORMAT_IMAGE_SIZE'))),_0x27ca23['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2796ca['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2796ca['registerBlockAttribute']('alt')),_0x27ca23['plugins']['has']('PictureEditing')&&(_0x2796ca['registerBlockAttribute']('sources'),_0x2796ca['descriptionFactory']['registerDescriptionCallback'](_0x419155=>{if('attribute'!=_0x419155['type'])return;const {data:_0x295181}=_0x419155;return _0x295181&&'sources'==_0x295181['key']?{'type':'format','content':''}:void 0x0;})),_0x27ca23['plugins']['has']('ImageSizeAttributes')&&(_0x2796ca['registerBlockAttribute']('width'),_0x2796ca['registerBlockAttribute']('height'),_0x2796ca['descriptionFactory']['registerDescriptionCallback'](_0x535a4d=>{if('attribute'!=_0x535a4d['type'])return;const {data:_0x5b8906}=_0x535a4d;return!_0x5b8906||'width'!=_0x5b8906['key']&&'height'!=_0x5b8906['key']?void 0x0:{'type':'format','content':''};})),_0x2796ca['descriptionFactory']['registerDescriptionCallback'](_0x203152=>{if(!!_0x5b98cb['find'](({type:_0x1f4e65,subType:_0x162bdf})=>_0x203152['type']==_0x1f4e65&&_0x203152['subType']==_0x162bdf))return _0x203152['previous']?{}:void 0x0;}),_0x2796ca['descriptionFactory']['registerDescriptionCallback'](_0xabd3d8=>{if('insertion'==_0xabd3d8['type']||'deletion'==_0xabd3d8['type']){const _0x3f7b24=_0xabd3d8['getContainedElement']();if(_0x3f7b24&&_0x3f7b24['is']('element','caption'))return{'type':'insertion'==_0xabd3d8['type']?'addObject':'removeObject','element':_0x3f7b24,'quantity':0x1};}}),_0x2796ca['descriptionFactory']['registerDescriptionCallback'](_0x55473f=>'formatBlock'==_0x55473f['type']&&'convertInlineImageToBlock'==_0x55473f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x55473f['type']&&'convertBlockImageToInline'==_0x55473f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2796ca['descriptionFactory']['registerDescriptionCallback'](_0x15ad47=>{if('attribute'!=_0x15ad47['type'])return;const {data:_0x45bc18}=_0x15ad47;if(!_0x45bc18||'alt'!=_0x45bc18['key'])return;const _0x347cf6=_0x45bc18['newValue'];return _0x347cf6?{'type':'format','content':o(_0x536002,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x347cf6+'\x22')}:{'type':'format','content':o(_0x536002,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x130ed0=this['editor'],_0x567953=_0x130ed0['locale'];_0x130ed0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3853e4=>{if('formatBlock'!=_0x3853e4['type']&&'formatInline'!=_0x3853e4['type'])return;const {data:_0x24c453}=_0x3853e4;if(_0x24c453){if('imageTextAlternative'==_0x24c453['commandName']){const _0x46581b=_0x24c453['commandParams'][0x0]['newValue'];return _0x46581b?{'type':'format','content':o(_0x567953,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x46581b+'\x22')}:{'type':'format','content':o(_0x567953,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x24c453['commandName']){const _0x27afd8=_0x24c453['commandParams'][0x0]['width'];return _0x27afd8?{'type':'format','content':o(_0x567953,'*Set\x20image\x20width:*\x20%0',_0x27afd8)}:{'type':'format','content':o(_0x567953,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3d96fc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x59d557=this['editor']['locale'],_0x21571f=this['editor']['plugins']['get']('TrackChangesEditing');_0x21571f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x21571f['registerBlockAttribute']('src'),_0x21571f['descriptionFactory']['registerDescriptionCallback'](_0x49c4fa=>{if('attribute'!=_0x49c4fa['type'])return;const {data:_0x4ff1b4}=_0x49c4fa;return _0x4ff1b4&&'src'==_0x4ff1b4['key']?_0x4ff1b4['newValue']&&_0x4ff1b4['oldValue']?{'type':'format','content':o(_0x59d557,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x52a14f=this['editor']['plugins']['get']('TrackChangesEditing');_0x52a14f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x52a14f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52a14f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x52a14f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39c487=this['editor'],_0x1853ad=_0x39c487['locale'];_0x39c487['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45ac84=>{if('formatBlock'!=_0x45ac84['type']&&'formatInline'!=_0x45ac84['type'])return;const {data:_0x4ece27}=_0x45ac84;if(!_0x4ece27||'replaceImageSource'!=_0x4ece27['commandName'])return;return{'type':'format','content':o(_0x1853ad,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x3d96fc{['afterInit'](){const _0x368790=this['editor'];if(!_0x368790['plugins']['has']('ImageStyleEditing'))return;const _0x41015f=_0x368790['plugins']['get']('TrackChangesEditing'),_0x4e2b66=_0x368790['plugins']['get']('ImageUtils'),_0x3245a1={};_0x41015f['enableCommand']('imageStyle',(_0x4d1672,_0x10f2dc)=>{const _0x555a53=_0x368790['plugins']['get']('Users')['me'],_0x13e2c4=_0x368790['commands']['get']('imageStyle');let _0x279057=_0x4e2b66['getClosestSelectedImageElement'](_0x368790['model']['document']['selection']),_0x48ab81=_0x368790['model']['createRangeOn'](_0x279057),_0x21c60f=_0x13e2c4['value'];if(_0x21c60f==_0x10f2dc['value'])return;const _0x123be6={'commandName':'imageStyle','commandParams':[_0x10f2dc],'formatGroupId':_0x5cef89()};_0x368790['model']['change'](()=>{if(_0x41015f['getSuggestions']()['filter'](_0x526e57=>_0x526e57['isInContent']&&_0x555a53==_0x526e57['author']&&('formatBlock'==_0x526e57['type']||'formatInline'==_0x526e57['type'])&&('imageStylePreApply'==_0x526e57['subType']||'imageStylePostApply'==_0x526e57['subType'])&&_0x526e57['getFirstRange']()['isEqual'](_0x48ab81))['forEach'](_0x1081b4=>_0x41015f['discardSuggestion'](_0x1081b4['head'])),_0x279057=_0x4e2b66['getClosestSelectedImageElement'](_0x368790['model']['document']['selection']),_0x48ab81=_0x368790['model']['createRangeOn'](_0x279057),_0x13e2c4['refresh'](),_0x368790['commands']['get']('imageTypeInline')['refresh'](),_0x368790['commands']['get']('imageTypeBlock')['refresh'](),_0x21c60f=_0x13e2c4['value'],_0x21c60f!=_0x10f2dc['value'])return _0x4e2b66['isInlineImage'](_0x279057)&&_0x13e2c4['shouldConvertImageType'](_0x10f2dc['value'],_0x279057)?(_0x4d1672({..._0x10f2dc,'setImageSizes':!0x1}),_0x279057=_0x4e2b66['getClosestSelectedImageElement'](_0x368790['model']['document']['selection']),void _0x41015f['markBlockFormat'](_0x279057,{..._0x123be6,'commandReversedParams':[{'value':_0x21c60f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4e2b66['isBlockImage'](_0x279057)?_0x41015f['markBlockFormat'](_0x279057,_0x123be6,[],'imageStylePostApply'):_0x41015f['markInlineFormat'](_0x48ab81,_0x123be6,'imageStylePostApply'));});});for(const _0xbd2f51 of _0x368790['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3245a1[_0xbd2f51['name']]=_0xbd2f51['title']['toLowerCase']();_0x41015f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x41015f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x41015f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x41015f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x18af41])=>{_0x4e2b66['setImageNaturalSizeAttributes'](_0x18af41['getContainedElement']());}),_0x41015f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2b8806,_0x56a45d)=>{_0x41015f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2b8806,{'commandName':_0x56a45d['commandName'],'commandParams':_0x56a45d['commandReversedParams']});}),_0x41015f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5b080e,_0x49cdc8){if(_0x150f9e(_0x5b080e,_0x49cdc8))return[_0x5b080e,_0x49cdc8];if(_0x150f9e(_0x49cdc8,_0x5b080e))return[_0x49cdc8,_0x5b080e];return null;});const _0x1812a6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x150f9e(_0xdc67e5,_0x57dde2){const _0x1f9b98=_0x1812a6['findIndex'](({type:_0x21d9c1,subType:_0x435d88})=>_0xdc67e5['type']==_0x21d9c1&&_0xdc67e5['subType']==_0x435d88),_0x3d809a=_0x1812a6['findIndex'](({type:_0x2abf8b,subType:_0x13012a})=>_0x57dde2['type']==_0x2abf8b&&_0x57dde2['subType']==_0x13012a);if(_0x1f9b98<0x0||_0x3d809a<0x0)return!0x1;const _0x40703d=_0xdc67e5['getFirstRange'](),_0x20b6ac=_0x57dde2['getFirstRange']();if((0x0==_0x1f9b98||0x1==_0x1f9b98)&&0x2==_0x3d809a&&_0x40703d['isIntersecting'](_0x20b6ac))return!0x0;if(0x2==_0x1f9b98&&0x3==_0x3d809a){const _0x3db8e3=_0x41015f['_findSuggestions'](_0x40703d,'insertion')['filter'](({suggestion:_0x482027,meta:_0x34747e})=>_0x34747e['isOwn']&&'convertInlineImageToBlock'==_0x482027['subType']);if(_0x3db8e3['length']>0x1&&_0x20b6ac['end']['isEqual'](_0x40703d['start']))return!0x0;if(0x1==_0x3db8e3['length']&&(_0x40703d['start']['isEqual'](_0x20b6ac['end'])||_0x40703d['end']['isEqual'](_0x20b6ac['start'])))return!0x0;}if(0x3==_0x1f9b98&&0x3==_0x3d809a&&_0x40703d['start']['isBefore'](_0x20b6ac['start'])){const _0x5198f3=_0x40703d['end']['nodeAfter'],_0x3ed7e4=_0x20b6ac['start']['nodeBefore'];return _0x4e2b66['isBlockImage'](_0x5198f3)&&_0x5198f3===_0x3ed7e4;}return!0x1;}_0x368790['model']['document']['registerPostFixer'](()=>{let _0xc79586=!0x1;const _0xba9dcc=Array['from'](_0x368790['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x223e9f,data:_0x13068a}of _0xba9dcc){const {group:_0xb07c26,type:_0x1b2cc2,subType:_0x29b5b0,id:_0x1dde16}=_0x41015f['_splitMarkerName'](_0x223e9f);if('suggestion'==_0xb07c26&&_0x41015f['hasSuggestion'](_0x1dde16)){if('formatBlock'==_0x1b2cc2&&('imageStylePreApply'==_0x29b5b0||'imageStylePostApply'==_0x29b5b0)){const _0x468c7c=_0x41015f['getSuggestion'](_0x1dde16);if(_0x13068a['newRange']){const _0x5447d7=_0x468c7c['getFirstRange']()['getContainedElement']();if(_0x4e2b66['isBlockImage'](_0x5447d7))continue;_0x41015f['discardSuggestion'](_0x468c7c),_0xc79586=!0x0;}}if('insertion'==_0x1b2cc2&&'imageCaption'==_0x29b5b0&&!_0x13068a['newRange']){const _0x16fb88=_0x41015f['getSuggestion'](_0x1dde16);_0x16fb88['next']&&_0x16fb88['next']['isInContent']&&(_0x41015f['discardSuggestion'](_0x16fb88['next']),_0xc79586=!0x0);}}}return _0xc79586;}),this['_registerLegacyDescription'](_0x3245a1);}['_registerLegacyDescription'](_0x5442e1){const _0x45a546=this['editor'],_0x2db6af=_0x45a546['locale'];_0x45a546['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xad716b=>{if('formatBlock'!=_0xad716b['type']&&'formatInline'!=_0xad716b['type'])return;const {data:_0xd9f992}=_0xad716b;if(!_0xd9f992||'imageStyle'!=_0xd9f992['commandName'])return;const _0x16c1c7=_0xd9f992['commandParams'][0x0]['value'];return _0x361250('side'===_0x16c1c7?o(_0x2db6af,'FORMAT_SIDE_IMAGE'):_0x5442e1[_0x16c1c7]||_0x16c1c7);function _0x361250(_0x51ff36){return{'type':'format','content':o(_0x2db6af,'*Format:*\x20%0',_0x51ff36)};}});}}class rt extends _0x3d96fc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1b7854){super(_0x1b7854),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x27e0c3=this['editor'],_0x8609ea=_0x27e0c3['commands']['get']('importWord'),_0x501442=_0x27e0c3['commands']['get']('trackChanges');_0x8609ea&&(_0x8609ea['on']('execute',(_0x4025ad,[,_0x306a29])=>{this['_trackChangesValueDuringImport']=_0x501442['value'],_0x306a29['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x8609ea,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x8609ea,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x501442['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x27e0c3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x15f1d4,_0x2f5dc8){const {suggestions:_0x2e79bc}=_0x2f5dc8,_0x1ad3d0=this['editor']['commands']['get']('trackChanges'),_0x34f084=_0x1ad3d0['value'];this['_trackChangesValueDuringImport']!==_0x34f084&&(_0x1ad3d0['execute'](),this['_trackChangesExecuted']=!0x0),_0x2e79bc&&_0x2e79bc['forEach'](({id:_0x5a2393,type:_0x1e73f4,author:_0x5b3f28,created_at:_0x4ae327})=>{const _0x422d72={'id':_0x5a2393,'type':_0x1e73f4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b3f28,'createdAt':_0x4ae327?new Date(_0x4ae327):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x422d72);});}}class at extends _0x3d96fc{['afterInit'](){const _0x17dcd6=this['editor'],_0x18a96c=_0x17dcd6['plugins']['get']('TrackChangesEditing');if(_0x17dcd6['plugins']['has']('IndentEditing')&&(_0x18a96c['enableCommand']('indent'),_0x18a96c['enableCommand']('outdent')),_0x17dcd6['plugins']['has']('IndentBlock')){for(const _0x1b1ac6 of['indentBlock','outdentBlock'])_0x18a96c['enableDefaultAttributesIntegration'](_0x1b1ac6);}const _0x5e9547=_0x17dcd6['locale'];_0x18a96c['registerBlockAttribute']('blockIndent'),_0x18a96c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5e9547,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b49f1=this['editor'],_0x4cc325=_0x3b49f1['locale'],_0x43312d=_0x3b49f1['plugins']['get']('TrackChangesEditing');_0x43312d['descriptionFactory']['registerDescriptionCallback'](_0xf10414=>{if('formatBlock'!=_0xf10414['type'])return;const {data:_0x4c7b06}=_0xf10414;if(!_0x4c7b06)return;if('indentBlock'!=_0x4c7b06['commandName']&&'outdentBlock'!=_0x4c7b06['commandName'])return;const _0xa05078=_0xf10414['getItems']()[0x0],_0x37930d=_0x43312d['descriptionFactory']['getItemLabel'](_0xa05078);return'indentBlock'==_0x4c7b06['commandName']?{'type':'format','content':o(_0x4cc325,'*Indent:*\x20%0',_0x37930d)}:'outdentBlock'==_0x4c7b06['commandName']?{'type':'format','content':o(_0x4cc325,'*Outdent:*\x20%0',_0x37930d)}:void 0x0;});}}class ct extends _0x3d96fc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x3d96fc{['afterInit'](){const _0xbc2031=this['editor'];if(!_0xbc2031['plugins']['has']('LinkEditing'))return;const _0x8c991f=_0xbc2031['plugins']['get']('TrackChangesEditing'),_0xa10abe=_0xbc2031['commands']['get']('link');_0x8c991f['enableDefaultAttributesIntegration']('link'),_0x8c991f['enableDefaultAttributesIntegration']('unlink'),_0x8c991f['registerInlineAttribute']('linkHref');for(const _0x1d6bc0 of _0xa10abe['manualDecorators'])_0x8c991f['registerInlineAttribute'](_0x1d6bc0['id']),_0x8c991f['descriptionFactory']['registerAttributeLabel'](_0x1d6bc0['id'],'link\x20('+_0x1d6bc0['label']['toLowerCase']()+')');_0x8c991f['descriptionFactory']['registerDescriptionCallback'](_0x1c9d16=>{if('attribute'!=_0x1c9d16['type'])return;const {data:_0x2b5751}=_0x1c9d16;if(!_0x2b5751||'linkHref'!=_0x2b5751['key'])return;const _0x593301=_0x2b5751['newValue'],_0x556b7d=_0xbc2031['locale'];return{'type':'format','content':null==_0x593301?o(_0x556b7d,'*Remove\x20link*'):o(_0x556b7d,'*Set\x20link:*\x20%0','\x22'+_0x593301+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5add51=this['editor'],_0x55800e=_0x5add51['locale'];_0x5add51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47ae66=>{if('formatInline'!=_0x47ae66['type'])return;const {data:_0x4bd9b2}=_0x47ae66;if(_0x4bd9b2){if('link'==_0x4bd9b2['commandName']){const _0x4b27bb=_0x4bd9b2['commandParams'][0x0];return{'type':'format','content':o(_0x55800e,'*Set\x20link:*\x20%0','\x22'+_0x4b27bb+'\x22')};}return'unlink'==_0x4bd9b2['commandName']?{'type':'format','content':o(_0x55800e,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3d96fc{['afterInit'](){const _0xf91adf=this['editor'],_0x51b731=_0xf91adf['locale'];if(!_0xf91adf['plugins']['has']('LegacyListEditing'))return;const _0xdbad4a=_0xf91adf['plugins']['get']('TrackChangesEditing'),_0x288f90=_0xf91adf['plugins']['has']('LegacyTodoListEditing');function _0x3b3e30(_0x2da66c){return()=>{const _0x57a078=_0xf91adf['model']['document']['selection'],_0x301ac8=_0xf91adf['commands']['get'](_0x2da66c);if(_0x301ac8['value'])return void _0xf91adf['execute']('paragraph',{});const _0x5c3d75=_0x2da66c['slice'](0x0,-0x4),_0x318d7d=function(_0x399dbe,_0x5557f5,_0x4c498e){let _0x42bbbe=Array['from'](_0x399dbe)['filter'](_0x3ee771=>function(_0x6512d0,_0x3449c9){return _0x3449c9['checkChild'](_0x6512d0['parent'],'listItem')&&!_0x3449c9['isObject'](_0x6512d0);}(_0x3ee771,_0x4c498e));_0x42bbbe=_0x42bbbe['filter'](_0x2f0154=>!_0x2f0154['is']('element','listItem')||_0x2f0154['getAttribute']('listType')!=_0x5557f5);const _0x4c9db1=new Set();for(const _0x52fc63 of _0x42bbbe)_0x52fc63['is']('element','listItem')?_0x4c9db1['add'](Le(_0x52fc63)):_0x4c9db1['add'](_0x52fc63);return Array['from'](_0x4c9db1);}(_0x57a078['getSelectedBlocks'](),_0x5c3d75,_0xf91adf['model']['schema']);_0xf91adf['model']['change'](()=>{for(const _0x1f5ae6 of _0x318d7d)_0xdbad4a['markBlockFormat'](_0x1f5ae6,{'commandName':_0x2da66c,'commandParams':[{'forceValue':!_0x301ac8['value']}],'formatGroupId':'blockName'},Ee(_0x1f5ae6));});};}function _0x1d85e1(_0x5099ee){return()=>{const _0x8ca7c1=function(_0x204098){let _0x3cc986=Array['from'](_0x204098);const _0x557e45=_0x3cc986['findIndex'](_0xe81caa=>'listItem'!=_0xe81caa['name']);return _0x557e45>-0x1&&(_0x3cc986=_0x3cc986['slice'](0x0,_0x557e45)),_0x3cc986;}(_0xf91adf['model']['document']['selection']['getSelectedBlocks']()),_0x41897e=_0xf91adf['model']['createRange'](_0xf91adf['model']['createPositionAt'](_0x8ca7c1[0x0],'before'),_0xf91adf['model']['createPositionAt'](_0x8ca7c1[_0x8ca7c1['length']-0x1],'end'));_0xf91adf['model']['change'](()=>{_0xdbad4a['markBlockFormat'](_0x41897e,{'commandName':_0x5099ee,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1736dd){const _0x24efc8=new Set();for(const _0x4c117e of _0x1736dd){let _0x4dc7cc=_0x4c117e['nextSibling'];for(;_0x4dc7cc&&_0x4dc7cc['getAttribute']('listIndent')>_0x4c117e['getAttribute']('listIndent');)_0x24efc8['add'](_0x4dc7cc),_0x4dc7cc=_0x4dc7cc['nextSibling'];}return Array['from'](_0x24efc8);}(_0x8ca7c1));});};}_0xdbad4a['enableCommand']('numberedList',_0x3b3e30('numberedList')),_0xdbad4a['enableCommand']('bulletedList',_0x3b3e30('bulletedList')),_0x288f90&&_0xdbad4a['enableCommand']('todoList',_0x3b3e30('todoList')),_0xdbad4a['enableCommand']('indentList',_0x1d85e1('indentList')),_0xdbad4a['enableCommand']('outdentList',_0x1d85e1('outdentList')),_0x288f90&&_0xdbad4a['enableCommand']('checkTodoList',()=>{const _0x1b4f1b=_0xf91adf['commands']['get']('checkTodoList'),_0x41f92f=Array['from'](_0x1b4f1b['_selectedElements']);_0x41f92f['filter'](_0x281403=>_0x281403['getAttribute']('todoListChecked')!=_0x1b4f1b['value']),_0xf91adf['model']['change'](()=>{for(const _0x5479c5 of _0x41f92f)_0xdbad4a['markBlockFormat'](_0x5479c5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1b4f1b['value']}]});});}),_0xdbad4a['descriptionFactory']['registerElementLabel']('listItem',_0x212c85=>o(_0x51b731,'ELEMENT_LIST_ITEM',_0x212c85)),_0xdbad4a['descriptionFactory']['registerDescriptionCallback'](_0x1fe579=>{if('formatBlock'!=_0x1fe579['type']&&'formatInline'!=_0x1fe579['type'])return;const {data:_0xb0f1ea}=_0x1fe579;if(_0xb0f1ea){if('numberedList'==_0xb0f1ea['commandName']||'bulletedList'==_0xb0f1ea['commandName']||'todoList'==_0xb0f1ea['commandName'])switch(_0xb0f1ea['commandName']['replace']('List','')){case'bulleted':return _0x10b6d3(o(_0x51b731,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10b6d3(o(_0x51b731,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10b6d3(o(_0x51b731,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb0f1ea['commandName'])return{'type':'format','content':o(_0x51b731,'*Indent:*\x20%0',o(_0x51b731,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb0f1ea['commandName'])return{'type':'format','content':o(_0x51b731,'*Outdent:*\x20%0',o(_0x51b731,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb0f1ea['commandName'])return _0xb0f1ea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51b731,'*Check\x20item*')}:{'type':'format','content':o(_0x51b731,'*Uncheck\x20item*')};}function _0x10b6d3(_0x1e148d){return{'type':'format','content':o(_0x51b731,'*Change\x20to:*\x20%0',_0x1e148d)};}});}}function Le(_0x4b5b66){const _0x4448bf=_0x4b5b66['getAttribute']('listIndent');if(0x0==_0x4448bf)return _0x4b5b66;let _0x3182e1=_0x4b5b66;for(;_0x4b5b66['previousSibling']&&_0x4b5b66['previousSibling']['is']('element','listItem');){const _0x52800c=_0x4b5b66['previousSibling']['getAttribute']('listIndent');if(_0x52800c==_0x4448bf)_0x3182e1=_0x4b5b66['previousSibling'];else{if(_0x52800c<_0x4448bf)break;}_0x4b5b66=_0x4b5b66['previousSibling'];}return _0x3182e1;}function Ee(_0x86cfee){const _0x3aa5a8=[];if(_0x86cfee['is']('element','listItem')&&_0x86cfee['getAttribute']('listIndent')>0x0){let _0x1fb302=_0x86cfee['nextSibling'];for(;_0x1fb302&&'listItem'==_0x1fb302['name']&&_0x1fb302['getAttribute']('listIndent')==_0x86cfee['getAttribute']('listIndent');)_0x3aa5a8['push'](_0x1fb302),_0x1fb302=_0x1fb302['nextSibling'];}return _0x3aa5a8;}class ht extends _0x3d96fc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x34e20f=this['editor']['config']['get']('list.properties'),_0x25d475=this['editor']['plugins']['get']('TrackChangesEditing');_0x34e20f['styles']&&_0x25d475['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x34e20f['reversed']&&_0x25d475['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x34e20f['startIndex']&&_0x25d475['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x25d475['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x809aef,_0x59fae5={}){const _0xa7f0fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fcd25=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xa7f0fa['markMultiRangeBlockFormat'](_0x1fcd25,{'commandName':'listStyle','commandParams':[{'type':_0x59fae5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x22e915,_0x59e0e9={}){const _0x5a3bea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44a95b=this['_getSuggestionBlocks'](_0x2cdf6b=>_0x2cdf6b['is']('element','listItem')&&'numbered'===_0x2cdf6b['getAttribute']('listType'));if(_0x44a95b['length']<0x1)return;const _0x527522=_0x44a95b['map'](_0x1688c0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1688c0,'before'),this['editor']['model']['createPositionAt'](_0x1688c0,0x0)));this['editor']['model']['change'](()=>{_0x5a3bea['markMultiRangeBlockFormat'](_0x527522,{'commandName':'listReversed','commandParams':[{'reversed':_0x59e0e9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x15030c,_0x3fbfa3={}){const _0xdf96be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x579e58=this['_getSuggestionBlocks'](_0x390b78=>_0x390b78['is']('element','listItem')&&'numbered'===_0x390b78['getAttribute']('listType'));if(_0x579e58['length']<0x1)return;const _0x463fa1=_0x579e58['map'](_0x1c7787=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c7787,'before'),this['editor']['model']['createPositionAt'](_0x1c7787,0x0)));this['editor']['model']['change'](()=>{_0xdf96be['markMultiRangeBlockFormat'](_0x463fa1,{'commandName':'listStart','commandParams':[{'startIndex':_0x3fbfa3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4491fe){if('formatBlock'!=_0x4491fe['type']&&'formatInline'!=_0x4491fe['type'])return;const _0x490253=this['editor']['locale'],{data:_0x51731a}=_0x4491fe;if(!_0x51731a)return;let _0x4bfe6e,_0x5f508c;switch(_0x51731a['commandName']){case'listStyle':_0x4bfe6e='*Change\x20to:*\x20%0',_0x5f508c={'type':'format','content':o(_0x490253,_0x4bfe6e,o(_0x490253,this['_getTranslationKeyForListStyle'](_0x51731a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4bfe6e=_0x51731a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5f508c={'type':'format','content':o(_0x490253,_0x4bfe6e)};break;case'listStart':_0x4bfe6e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f508c={'type':'format','content':o(_0x490253,_0x4bfe6e,_0x51731a['commandParams'][0x0]['startIndex'])};}return _0x5f508c;}['_getSuggestionBlocksForListStyle'](){const _0x845fa7=this['editor']['plugins']['get']('LegacyListUtils');let _0x394399=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x394399[0x0]?.['is']('element','listItem')&&_0x394399['unshift'](..._0x845fa7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x394399[_0x394399['length']-0x1]?.['is']('element','listItem')&&_0x394399['push'](..._0x845fa7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x394399=[...new Set(_0x394399)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x394399=_0x394399['filter'](_0x242069=>_0x242069['is']('element','listItem'))),_0x394399;}['_getSuggestionBlocks'](_0x273a6c){const _0x758e6=this['editor']['plugins']['get']('LegacyListUtils');let _0x44ce21=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x273a6c)['map'](_0x27c80d=>{const _0x40e52c=this['editor']['model']['createPositionAt'](_0x27c80d,0x0);return[..._0x758e6['getSiblingNodes'](_0x40e52c,'backward'),..._0x758e6['getSiblingNodes'](_0x40e52c,'forward')];})['flat']();return _0x44ce21=[...new Set(_0x44ce21)],_0x44ce21;}['_getTranslationKeyForListStyle'](_0x317a40){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x317a40)||'default')['toUpperCase']()+'_LIST_'+_0x317a40['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x3d96fc{['afterInit'](){const _0x520c05=this['editor'];if(!_0x520c05['plugins']['has']('MediaEmbedEditing'))return;const _0x271c5b=_0x520c05['plugins']['get']('TrackChangesEditing'),_0x330a36=_0x520c05['locale'];_0x271c5b['enableCommand']('mediaEmbed'),_0x271c5b['descriptionFactory']['registerElementLabel']('media',_0x58ccb0=>o(_0x330a36,'ELEMENT_MEDIA',_0x58ccb0)),_0x520c05['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1c36f8,{writer:_0x3f84e3,options:_0x168c16})=>{if(_0x168c16['showSuggestionHighlights'])return _0x3f84e3['createEmptyElement']('div');},'converterPriority':'high'}),_0x520c05['data']['downcastDispatcher']['on']('attribute:url:media',(_0x23a2f1,_0x36e94d,_0x528262)=>{_0x528262['options']['showSuggestionHighlights']&&_0x23a2f1['stop']();},{'priority':'high'});}}class lt extends _0x3d96fc{['afterInit'](){const _0x5be6a2=this['editor'];_0x5be6a2['plugins']['has']('MentionEditing')&&_0x5be6a2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3d96fc{['afterInit'](){const _0x4282cb=this['editor'];if(!_0x4282cb['plugins']['has']('MergeFieldsEditing'))return;const _0x17f8d0=_0x4282cb['plugins']['get']('TrackChangesEditing'),_0x3b30b9=_0x4282cb['locale'];_0x17f8d0['enableCommand']('insertMergeField'),_0x17f8d0['enableCommand']('insertMergeFieldBlock'),_0x17f8d0['enableCommand']('insertMergeFieldImage'),_0x17f8d0['descriptionFactory']['registerElementLabel']('mergeField',_0x5b337d=>o(_0x3b30b9,'ELEMENT_MERGE_FIELD',_0x5b337d)),_0x17f8d0['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5acf18=>o(_0x3b30b9,'ELEMENT_MERGE_FIELD',_0x5acf18)),_0x17f8d0['descriptionFactory']['registerDescriptionCallback'](_0x3a9adc=>{if('insertion'!=_0x3a9adc['type']&&'deletion'!=_0x3a9adc['type'])return;const _0x4d2684=_0x3a9adc['getContainedElement']();if(null==_0x4d2684)return;const _0x242b46=_0x4282cb['plugins']['get']('MergeFieldsEditing');let _0x554d09;switch(_0x242b46['getMergeFieldType'](_0x4d2684)){case null:return;case'image':{const _0x55339e=_0x242b46['unwrapAffixes'](_0x4d2684['getAttribute']('src'));_0x554d09=_0x242b46['getLabel'](_0x55339e)||_0x55339e;break;}default:{const _0x497bf2=_0x4d2684['getAttribute']('id');_0x554d09=_0x242b46['getLabel'](_0x497bf2)||_0x497bf2;break;}}return'insertion'==_0x3a9adc['type']?{'type':'insertion','content':o(_0x3b30b9,'*Insert:*\x20%0','\x22'+_0x554d09+'\x22\x20'+o(_0x3b30b9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3b30b9,'*Remove:*\x20%0','\x22'+_0x554d09+'\x22\x20'+o(_0x3b30b9,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x3d96fc{['afterInit'](){const _0x3ce569=this['editor'],_0x32e0b0=_0x3ce569['plugins']['get']('TrackChangesEditing');_0x3ce569['plugins']['has']('MultiLevelList')&&(_0x32e0b0['enableDefaultAttributesIntegration']('multiLevelList'),_0x32e0b0['registerBlockAttribute']('listMarkerStyle'),_0x32e0b0['descriptionFactory']['registerDescriptionCallback'](_0x7770ec=>this['handleDescriptions'](_0x7770ec)));}['handleDescriptions'](_0x3725da){const _0x3eaee3=this['editor']['locale'],{data:_0x77d9b4}=_0x3725da,_0x1dd13d={'type':'format','content':''};if(_0x77d9b4&&'listMarkerStyle'==_0x77d9b4['key']){if(!_0x77d9b4['oldValue'])return{'type':'format','content':o(_0x3eaee3,'*Set\x20format:*\x20%0',o(_0x3eaee3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x77d9b4['newValue']+')'};if(!_0x77d9b4['newValue']){let _0x16da5d=_0x3725da['head'];for(;_0x16da5d;){if(_0x16da5d['data']&&'listType'==_0x16da5d['data']['key']&&_0x16da5d['data']['newValue'])return _0x1dd13d;_0x16da5d=_0x16da5d['next'];}return{'type':'format','content':o(_0x3eaee3,'*Remove\x20format:*\x20%0',o(_0x3eaee3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x77d9b4['oldValue']+')'};}}}}class pt extends _0x3d96fc{['afterInit'](){const _0x25a806=this['editor'];if(!_0x25a806['plugins']['has']('PageBreakEditing'))return;_0x25a806['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x36bfad=_0x25a806['plugins']['get']('TrackChangesEditing'),_0x238a0a=_0x25a806['locale'];_0x36bfad['descriptionFactory']['registerElementLabel']('pageBreak',_0x1229c3=>o(_0x238a0a,'ELEMENT_PAGE_BREAK',_0x1229c3));}}class kt extends _0x3d96fc{['afterInit'](){const _0x25f7ec=this['editor'];if(!_0x25f7ec['plugins']['has']('Paragraph'))return;const _0x8d003f=_0x25f7ec['locale'],_0x134578=_0x25f7ec['plugins']['get']('TrackChangesEditing');_0x134578['descriptionFactory']['registerElementLabel']('paragraph',_0x559ac1=>o(_0x8d003f,'ELEMENT_PARAGRAPH',_0x559ac1)),_0x134578['enableDefaultAttributesIntegration']('paragraph'),_0x134578['enableCommand']('insertParagraph'),_0x25f7ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x25f7ec),{'priority':'highest'}),_0x25f7ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1dc064,_0x1f1c87,_0x38cc13)=>{_0x38cc13['options']['showSuggestionHighlights']&&nr(_0x25f7ec,{'showActiveMarker':!0x1})(_0x1dc064,_0x1f1c87,_0x38cc13);},{'priority':'highest'});const _0x208e9=_0x134578['descriptionFactory'];_0x208e9['registerDescriptionCallback'](_0x4f7796=>{if('insertion'!==_0x4f7796['type'])return;const {start:_0x3cc2db,end:_0x38f946}=_0x4f7796['getFirstRange']();if(!_0x3cc2db['isTouching'](_0x38f946)||!_0x3cc2db['nodeAfter'])return;const _0x163eca=_0x25f7ec['model']['schema'],_0x298045=_0x3cc2db['nodeAfter'];return _0x163eca['isBlock'](_0x298045)&&!_0x163eca['isLimit'](_0x298045)&&_0x163eca['checkChild'](_0x298045,'$text')?{'type':'insertion','content':o(_0x8d003f,'*Insert:*\x20%0',_0x208e9['getItemLabel'](_0x298045,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40cc26=this['editor'],_0x18e178=_0x40cc26['locale'];_0x40cc26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1520e4=>{if('formatBlock'!=_0x1520e4['type'])return;const {data:_0x5f552c}=_0x1520e4;return _0x5f552c&&'paragraph'==_0x5f552c['commandName']?{'type':'format','content':o(_0x18e178,'*Change\x20to:*\x20%0',o(_0x18e178,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5dfe93,{showActiveMarker:_0x529999=!0x0}={}){return(_0x1c663e,_0x36d61c,_0x3eddd2)=>{const _0x64ed8e=_0x5dfe93['plugins']['get']('TrackChangesEditing'),_0x1385df=_0x36d61c['markerRange']['start'],_0x17fb8e=_0x36d61c['markerRange']['end'],_0x2c8d31=_0x5dfe93['model']['schema'];if(!_0x1385df['isTouching'](_0x17fb8e)||!_0x1385df['nodeAfter'])return;const _0x28c9e8=_0x1385df['nodeAfter'];if(_0x2c8d31['isBlock'](_0x28c9e8)&&!_0x2c8d31['isLimit'](_0x28c9e8)&&_0x2c8d31['checkChild'](_0x28c9e8,'$text')){if(!_0x3eddd2['consumable']['consume'](_0x36d61c['markerRange'],_0x1c663e['name']))return;const {id:_0x42ec1c,authorId:_0x49c311}=_0x64ed8e['_splitMarkerName'](_0x36d61c['markerName']),_0x2e3ef6=_0x3eddd2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x42ec1c,'data-author-id':_0x49c311}),_0x55eb3e=_0x3eddd2['mapper']['toViewPosition'](_0x17fb8e);_0x529999&&_0x64ed8e['activeMarkers']['includes'](_0x36d61c['markerName'])&&_0x3eddd2['writer']['addClass']('ck-suggestion-marker--active',_0x2e3ef6),_0x3eddd2['writer']['insert'](_0x55eb3e,_0x2e3ef6),_0x3eddd2['mapper']['bindElementToMarker'](_0x2e3ef6,_0x36d61c['markerName']);}};}class wt extends _0x3d96fc{['afterInit'](){const _0xac546c=this['editor'];_0xac546c['commands']['get']('replaceSource')&&_0xac546c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x3d96fc{['afterInit'](){const _0x244f66=this['editor'];if(!_0x244f66['plugins']['has']('RemoveFormatEditing'))return;_0x244f66['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56ed07=this['editor'];_0x56ed07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d002d=>{if('formatBlock'!=_0x4d002d['type']&&'formatInline'!=_0x4d002d['type'])return;const {data:_0x3d200c}=_0x4d002d;return _0x3d200c&&'removeFormat'==_0x3d200c['commandName']?{'type':'format','content':o(_0x56ed07['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3d96fc{['afterInit'](){const _0x589921=this['editor'];if(!_0x589921['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x39623d=_0x589921['plugins']['get']('TrackChangesEditing');_0x39623d['enableCommand']('goToPreviousRestrictedEditingException'),_0x39623d['enableCommand']('goToNextRestrictedEditingException');const _0x590114=_0x589921['plugins']['get']('RestrictedEditingModeEditing');_0x590114['enableCommand']('trackChanges'),_0x590114['enableCommand']('acceptSuggestion'),_0x590114['enableCommand']('discardSuggestion'),_0x590114['enableCommand']('acceptAllSuggestions'),_0x590114['enableCommand']('discardAllSuggestions'),_0x590114['enableCommand']('acceptSelectedSuggestions'),_0x590114['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3d96fc{['afterInit'](){const _0x23eb5f=this['editor'];if(!_0x23eb5f['plugins']['has']('ShiftEnter'))return;const _0x1678ea=_0x23eb5f['plugins']['get']('TrackChangesEditing');_0x1678ea['enableCommand']('shiftEnter'),_0x23eb5f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x23eb5f),{'priority':'high'}),_0x23eb5f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x23eb5f),{'priority':'high'}),_0x23eb5f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1ddda7,_0x140828,_0x22660b)=>{_0x22660b['options']['showSuggestionHighlights']&&je(_0x23eb5f,{'showActiveMarker':!0x1})(_0x1ddda7,_0x140828,_0x22660b);}),_0x1678ea['descriptionFactory']['registerElementLabel']('softBreak',_0xb1c548=>o(_0x23eb5f['locale'],'ELEMENT_LINE_BREAK',_0xb1c548));}}function je(_0x3a698b,{showActiveMarker:_0x43f059=!0x0}={}){return(_0x1fefb3,_0xb6378,_0x3c986d)=>{const _0x3c2f88=_0x3a698b['plugins']['get']('TrackChangesEditing');if(!_0x3c986d['consumable']['test'](_0xb6378['markerRange'],_0x1fefb3['name']))return;const _0x476c1b=_0x3a698b['model'];for(const _0x5c2f53 of _0xb6378['markerRange']['getItems']()){if(!_0x5c2f53['is']('element','softBreak'))continue;const _0x121cd0='deletion'==_0xb6378['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x55d27e,authorId:_0x107fb1}=_0x3c2f88['_splitMarkerName'](_0xb6378['markerName']),_0x5c95dd=_0x3c986d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x121cd0,'data-suggestion':_0x55d27e,'data-author-id':_0x107fb1}),_0x40b9dd=_0x3c986d['mapper']['toViewPosition'](_0x476c1b['createPositionBefore'](_0x5c2f53));_0x43f059&&_0x3c2f88['activeMarkers']['includes'](_0xb6378['markerName'])&&_0x3c986d['writer']['addClass']('ck-suggestion-marker--active',_0x5c95dd),_0x3c986d['writer']['insert'](_0x40b9dd,_0x5c95dd),_0x3c986d['mapper']['bindElementToMarker'](_0x5c95dd,_0xb6378['markerName']);}};}class St extends _0x3d96fc{['afterInit'](){const _0x45a4a6=this['editor'],_0xf756c6=_0x45a4a6['model'],_0x42c856=_0x45a4a6['locale'];if(!_0x45a4a6['plugins']['has']('StandardEditingModeEditing'))return;const _0x39e8b6=_0x45a4a6['plugins']['get']('TrackChangesEditing'),_0x307941='restrictedEditingException',_0x53f801=_0x45a4a6['commands']['get'](_0x307941);_0x39e8b6['enableCommand'](_0x307941,(_0x18539d,_0x17de7a={})=>{const _0x451d6b=_0xf756c6['document']['selection'];if(_0x451d6b['isCollapsed'])return void _0x18539d(_0x17de7a);const _0x17b416=void 0x0!==_0x17de7a['forceValue']?_0x17de7a['forceValue']:!_0x53f801['value'];_0xf756c6['change'](()=>{const _0x4d5537=Array['from'](_0x451d6b['getRanges']());for(const _0x5e4058 of _0x4d5537){const _0x41fdbe=_0x17b416?[_0x5e4058]:io(_0x307941,_0x5e4058,_0xf756c6);for(const _0x11388a of _0x41fdbe)_0x39e8b6['markInlineFormat'](_0x11388a,{'commandName':_0x307941,'commandParams':[{'forceValue':_0x17b416}]});}});}),_0x39e8b6['descriptionFactory']['registerDescriptionCallback'](_0x25f25f=>{if('formatBlock'!=_0x25f25f['type']&&'formatInline'!=_0x25f25f['type'])return;const {data:_0x59ae6a}=_0x25f25f;return _0x59ae6a&&_0x59ae6a['commandName']==_0x307941?_0x59ae6a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42c856,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x42c856,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x3d96fc{['afterInit'](){const _0x1ff4e2=this['editor'];if(!_0x1ff4e2['plugins']['has']('Style')||!_0x1ff4e2['plugins']['has']('DataSchema'))return;const _0x187c77=_0x1ff4e2['plugins']['get']('TrackChangesEditing'),_0x201166=_0x1ff4e2['locale'],_0x3dd68a=_0x1ff4e2['config']['get']('style')||{},_0x56f8c0=_0x1ff4e2['plugins']['get']('GeneralHtmlSupport'),_0x641048=_0x1ff4e2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1ff4e2['plugins']['get']('DataSchema'),_0x3dd68a['definitions']);_0x187c77['enableDefaultAttributesIntegration']('style');const _0x3d3aea=new Set();for(const _0x3654d1 of _0x641048['block']){const _0x36cb5b=_0x56f8c0['getGhsAttributeNameForElement'](_0x3654d1['element']);_0x3d3aea['add'](_0x36cb5b);}const _0x4af400=new Set();for(const _0xacec96 of _0x641048['inline']){const _0xb6ad8e=_0x56f8c0['getGhsAttributeNameForElement'](_0xacec96['element']);_0x4af400['add'](_0xb6ad8e);for(const _0x41a55c of _0xacec96['ghsAttributes'])_0x4af400['add'](_0x41a55c);}for(const _0x26f9bf of _0x3d3aea)_0x187c77['registerBlockAttribute'](_0x26f9bf),_0x187c77['descriptionFactory']['registerAttributeLabel'](_0x26f9bf,o(_0x201166,'FORMAT_STYLE'));for(const _0x3355b0 of _0x4af400)_0x187c77['registerInlineAttribute'](_0x3355b0),_0x187c77['descriptionFactory']['registerAttributeLabel'](_0x3355b0,o(_0x201166,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5116aa=this['editor'],_0x32a924=_0x5116aa['locale'];_0x5116aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bd231=>{if('formatBlock'!=_0x5bd231['type']&&'formatInline'!=_0x5bd231['type'])return;const {data:_0x559ee9}=_0x5bd231;return _0x559ee9&&'style'===_0x559ee9['commandName']?_0x559ee9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32a924,'*Set\x20format:*\x20%0',_0x559ee9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x32a924,'*Remove\x20format:*\x20%0',_0x559ee9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x3d96fc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x396024){super(_0x396024),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5cab9e=this['editor'],_0x11d0f8=_0x5cab9e['model']['document']['selection'];if(!_0x5cab9e['plugins']['has']('TableEditing'))return;const _0x31f9f5=_0x5cab9e['locale'],_0x493974=_0x5cab9e['plugins']['get']('TrackChangesEditing'),_0xa449d4=_0x5cab9e['plugins']['get']('TableUtils');_0x493974['descriptionFactory']['registerElementLabel']('table',_0x11da54=>o(_0x31f9f5,'ELEMENT_TABLE',_0x11da54)),this['_setupColumnsRowsFixing'](),_0x493974['enableCommand']('insertTable'),_0x493974['enableCommand']('selectTableRow'),_0x493974['enableCommand']('selectTableColumn');for(const _0x547cad of['insertTableRowAbove','insertTableRowBelow']){const _0x5d84d3=_0x5cab9e['commands']['get'](_0x547cad);_0x493974['enableCommand'](_0x547cad,_0x776641=>{_0x5cab9e['model']['change'](_0x3542f3=>{_0x776641();const _0x2d7898='above'===_0x5d84d3['order'],_0x4bbb1b=_0xa449d4['getSelectionAffectedTableCells'](_0x11d0f8),_0x5d8ad0=_0xa449d4['getRowIndexes'](_0x4bbb1b),_0x3c18d5=_0x2d7898?_0x5d8ad0['first']-0x1:_0x5d8ad0['last']+0x1,_0x498218=_0x4bbb1b[0x0]['findAncestor']('table'),_0x58d5d6=_0xa449d4['createTableWalker'](_0x498218,{'startRow':_0x3c18d5,'endRow':_0x3c18d5}),_0x8b8a1b=Array['from'](_0x58d5d6)['map'](_0xb41f51=>_0x3542f3['createRangeOn'](_0xb41f51['cell']));_0x493974['markMultiRangeInsertion'](_0x8b8a1b,'tableRow');});});}for(const _0x2187e6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x570018=_0x5cab9e['commands']['get'](_0x2187e6);_0x493974['enableCommand'](_0x2187e6,_0x346d14=>{_0x5cab9e['model']['change'](_0x5dc513=>{_0x346d14();const _0x2b6441='left'===_0x570018['order'],_0x57808f=_0xa449d4['getSelectionAffectedTableCells'](_0x11d0f8),_0x1c7330=_0xa449d4['getColumnIndexes'](_0x57808f),_0x101bdb=_0x2b6441?_0x1c7330['first']-0x1:_0x1c7330['last']+0x1,_0x79f416=_0x57808f[0x0]['findAncestor']('table'),_0x5e0e0f=_0xa449d4['createTableWalker'](_0x79f416,{'startRow':0x0,'column':_0x101bdb,'includeAllSlots':!0x1}),_0xddcf3f=Array['from'](_0x5e0e0f)['map'](_0x447d5b=>_0x5dc513['createRangeOn'](_0x447d5b['cell']));_0x493974['markMultiRangeInsertion'](_0xddcf3f,'tableColumn');});});}for(const _0x5e2a5d of['removeTableRow','removeTableColumn']){const _0x26fa90=_0x5e2a5d['substr'](0xb),_0xa287ed=_0x26fa90['toLowerCase'](),_0x49e757=_0xa287ed['substr'](0x0,0x3)+'span',_0x5e77a7='table'+_0x26fa90,_0x5b7fc7='min'+_0x26fa90,_0x2463b8='max'+_0x26fa90;_0x493974['enableCommand'](_0x5e2a5d,()=>{_0x5cab9e['model']['change'](_0x3c07fd=>{const _0x2e7fe6=_0xa449d4['getSelectionAffectedTableCells'](_0x11d0f8),_0x578cc9=_0x2e7fe6[0x0]['findAncestor']('table');let _0x2bab44;if('removeTableRow'==_0x5e2a5d){const _0x96ea09=_0xa449d4['getRowIndexes'](_0x2e7fe6);_0x2bab44={'startRow':_0x96ea09['first'],'endRow':_0x96ea09['last'],'includeAllSlots':!0x0};}else{const _0x51061f=_0xa449d4['getColumnIndexes'](_0x2e7fe6);_0x2bab44={'startColumn':_0x51061f['first'],'endColumn':_0x51061f['last'],'includeAllSlots':!0x0};}const _0x43e69a=_0xa449d4['createTableWalker'](_0x578cc9,_0x2bab44),_0x11864c=Array['from'](_0x43e69a)['map'](({cell:_0xc1fe71})=>_0xc1fe71),_0x28aecb=Ne(_0x11864c['filter'](_0x57517c=>_0x57517c['hasAttribute'](_0x49e757))),_0x4c39d1=Ne(_0x11864c['filter'](_0x5108d5=>!_0x5108d5['hasAttribute'](_0x49e757)))['map'](_0x418c10=>_0x3c07fd['createRangeOn'](_0x418c10)),_0x36462f=_0x493974['markMultiRangeDeletion'](_0x4c39d1,_0x5e77a7);if(_0x36462f&&('tableRow'==_0x36462f['subType']||'tableColumn'==_0x36462f['subType'])){const _0x358d33=this['_getSuggestionCoords'](_0x36462f);for(const _0x49b07f of _0x28aecb){const _0x27dadc=_0x3c07fd['createRangeOn'](_0x49b07f),_0x5e21a8=_0xa449d4['getCellLocation'](_0x49b07f),_0x62b33c=_0x49b07f['getAttribute'](_0x49e757)-0x1,_0x33c8e1=_0x358d33[_0x5b7fc7],_0x5d5ffd=_0x358d33[_0x2463b8];_0x33c8e1<=_0x5e21a8[_0xa287ed]&&_0x5e21a8[_0xa287ed]+_0x62b33c<=_0x5d5ffd&&_0x36462f['addRange'](_0x27dadc);}}});});}function _0x1e3734(_0x54663f){const _0x1a4af1=Array['from'](_0x11d0f8['getRanges']())['map'](_0x5ebecf=>_0x2e68e7['fromRange'](_0x5ebecf));_0x5cab9e['model']['change'](_0x52bb2b=>{const _0x17b765=_0x52bb2b['batch'];_0x54663f=_0x54663f['filter'](_0x57cf6d=>'$graveyard'!=_0x57cf6d['root']['rootName']),_0x52bb2b['setSelection'](_0x54663f),_0x5cab9e['commands']['get']('removeTableRow')['refresh'](),_0x5cab9e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5cab9e['model']['enqueueChange'](()=>{_0x5cab9e['model']['enqueueChange'](_0x17b765,_0x3d7409=>{const _0x2cf2c4=_0x1a4af1['filter'](_0x6438a=>'$graveyard'!=_0x6438a['root']['rootName']);_0x2cf2c4['length']>0x0&&_0x3d7409['setSelection'](_0x2cf2c4);for(const _0x4fb73d of _0x1a4af1)_0x4fb73d['detach']();});});});}function _0xdaf6d4(_0x1f8a96){_0x5cab9e['model']['change'](_0x1a0994=>{const _0x519a90=Array['from'](_0x11d0f8['getRanges']())['map'](_0x47c73b=>_0x2e68e7['fromRange'](_0x47c73b)),_0x10dbc8=[];for(const _0x1d746f of _0x1f8a96)for(const _0x5b6fdb of _0x1d746f['getItems']({'shallow':!0x0}))_0x10dbc8['push'](_0x5b6fdb);for(const _0x559c09 of _0x10dbc8)'$graveyard'!=_0x559c09['root']['rootName']&&(_0x1a0994['setSelection'](_0x1a0994['createPositionAt'](_0x559c09,0x0)),_0x5cab9e['commands']['get']('removeTableColumn')['refresh'](),_0x5cab9e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5a7631=_0x519a90['filter'](_0x1c6e08=>'$graveyard'!=_0x1c6e08['root']['rootName']);_0x5a7631['length']>0x0&&_0x1a0994['setSelection'](_0x5a7631);for(const _0x311180 of _0x519a90)_0x311180['detach']();});}function _0x4d3824(_0x3dc48f,_0x2831b1){return _0x2831b1['every'](_0x5e4808=>_0x3dc48f['some'](_0xe378d9=>_0xe378d9['end']['isEqual'](_0x5e4808['start'])||_0x5e4808['end']['isEqual'](_0xe378d9['start'])));}function _0x3ea29d(_0x4744cc,_0x1f7ac1){return!_0x4744cc['some'](_0x330225=>_0x1f7ac1['some'](_0x65de07=>_0x330225['isIntersecting'](_0x65de07)))&&_0x4744cc['some'](_0x18d10f=>_0x1f7ac1['some'](_0xc938ce=>_0x18d10f['end']['isTouching'](_0xc938ce['start'])));}_0x5cab9e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x543b98,_0x4776e0,_0x209270)=>{if(!_0x209270['options']['showSuggestionHighlights'])return;const _0x15792a=_0x4776e0['item'];if(!_0x15792a||!_0x15792a['is']('element','tableCell'))return;const _0x209f8f=_0x209270['mapper']['toViewElement'](_0x15792a);if(_0x209f8f){const {id:_0x5b7c6a,authorId:_0x512c48}=_0x493974['_splitMarkerName'](_0x4776e0['markerName']);_0x1befee(_0x209f8f,_0x209270['writer'],(_0x467f1d,_0x461aba,_0x28f7bf)=>{_0x28f7bf['addClass'](_0x5a68fb(_0x461aba['classes']),_0x467f1d),_0x28f7bf['setAttribute']('data-suggestion-id',_0x5b7c6a,_0x467f1d),_0x28f7bf['setAttribute']('data-author-id',_0x512c48,_0x467f1d);},(_0x2b7a46,_0x519977,_0x33bd32)=>{_0x33bd32['removeClass'](_0x5a68fb(_0x519977['classes']),_0x2b7a46),_0x33bd32['removeAttribute']('data-suggestion-id',_0x2b7a46),_0x33bd32['removeAttribute']('data-author-id',_0x2b7a46);});}},{'priority':'highest'}),_0x493974['descriptionFactory']['registerDescriptionCallback'](_0x41301f=>{if('insertion'!=_0x41301f['type']&&'deletion'!=_0x41301f['type'])return;const _0x24fdb7=_0x41301f['getContainedElement']();if(null!=_0x24fdb7&&_0x24fdb7['is']('element','table')){if('insertion'==_0x41301f['type']){const _0x1dba3b=_0x41301f['getItems']()['filter'](_0x3d9cac=>_0x3d9cac['is']('$textProxy'))['map'](_0x515c2e=>_0x515c2e['data']);if(_0x1dba3b['length'])return{'type':'insertion','content':o(_0x31f9f5,'*Insert:*\x20%0',o(_0x31f9f5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1dba3b['join']('\x20')+'\x22'))};}if('deletion'==_0x41301f['type']){const _0x379b9b=_0x41301f['getItems']()['filter'](_0x38b6dc=>_0x38b6dc['is']('$textProxy'))['map'](_0x1ff11d=>_0x1ff11d['data']);if(_0x379b9b['length'])return{'type':'deletion','content':o(_0x31f9f5,'*Remove:*\x20%0',o(_0x31f9f5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x379b9b['join']('\x20')+'\x22'))};}}}),_0x493974['descriptionFactory']['registerDescriptionCallback'](_0x2ae048=>{if('tableRow'==_0x2ae048['subType']){const _0x1d8503=_0x2ae048['getItems']()['filter'](_0x4d9b1d=>_0x4d9b1d['is']('$textProxy'))['map'](_0x1f1aa6=>_0x1f1aa6['data']),_0x1ff501=this['_getSuggestionCoords'](_0x2ae048),_0x161560=_0x1ff501['maxRow']-_0x1ff501['minRow']+0x1;if('insertion'==_0x2ae048['type'])return _0x1d8503['length']?{'type':'insertion','content':o(_0x31f9f5,'*Insert:*\x20%0',o(_0x31f9f5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x161560,'\x22'+_0x1d8503['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x31f9f5,'*Insert:*\x20%0',o(_0x31f9f5,'ELEMENT_TABLE_ROW',_0x161560))};if('deletion'==_0x2ae048['type'])return _0x1d8503['length']?{'type':'deletion','content':o(_0x31f9f5,'*Remove:*\x20%0',o(_0x31f9f5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x161560,'\x22'+_0x1d8503['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x31f9f5,'*Remove:*\x20%0',o(_0x31f9f5,'ELEMENT_TABLE_ROW',_0x161560))};}if('tableColumn'==_0x2ae048['subType']){const _0x9a76d1=_0x2ae048['getItems']()['filter'](_0x871577=>_0x871577['is']('$textProxy'))['map'](_0x10f0f1=>_0x10f0f1['data']),_0x2116fc=this['_getSuggestionCoords'](_0x2ae048),_0x4d1af7=_0x2116fc['maxColumn']-_0x2116fc['minColumn']+0x1;if('insertion'==_0x2ae048['type'])return _0x9a76d1['length']?{'type':'insertion','content':o(_0x31f9f5,'*Insert:*\x20%0',o(_0x31f9f5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d1af7,'\x22'+_0x9a76d1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x31f9f5,'*Insert:*\x20%0',o(_0x31f9f5,'ELEMENT_TABLE_COLUMN',_0x4d1af7))};if('deletion'==_0x2ae048['type'])return _0x9a76d1['length']?{'type':'deletion','content':o(_0x31f9f5,'*Remove:*\x20%0',o(_0x31f9f5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d1af7,'\x22'+_0x9a76d1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x31f9f5,'*Remove:*\x20%0',o(_0x31f9f5,'ELEMENT_TABLE_COLUMN',_0x4d1af7))};}}),_0x493974['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1e3734),_0x493974['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1e3734),_0x493974['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xdaf6d4),_0x493974['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xdaf6d4),_0x493974['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4d3824),_0x493974['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4d3824),_0x493974['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3ea29d),_0x493974['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3ea29d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x634b92=this['editor'],_0xb1e146=_0x634b92['model']['document']['selection'];return(_0x4b18bc,_0x5ae763)=>{_0x634b92['model']['change'](_0x415e0a=>{const {commandName:_0x423e1a,commandParams:_0x44ade8}=_0x5ae763;let _0x5028b1=_0x4b18bc[0x0]['end']['nodeBefore'];_0x44ade8&&_0x44ade8[0x0]&&!0x1===_0x44ade8[0x0]['forceValue']&&(_0x5028b1=_0x4b18bc[0x0]['start']['nodeAfter']);const _0x1aa908=_0x415e0a['createRangeIn'](_0x5028b1);if('$graveyard'==_0x1aa908['root']['rootName'])return;const _0x245d54=Array['from'](_0xb1e146['getRanges']())['map'](_0x4e840c=>_0x2e68e7['fromRange'](_0x4e840c));_0x415e0a['setSelection'](_0x1aa908),_0x634b92['commands']['get'](_0x423e1a)['refresh'](),_0x44ade8['push']({'forceDefaultExecution':!0x0}),_0x634b92['execute'](_0x423e1a,..._0x44ade8);const _0x5848ab=_0x245d54['filter'](_0x6dadde=>'$graveyard'!=_0x6dadde['root']['rootName']);_0x5848ab['length']>0x0&&_0x415e0a['setSelection'](_0x5848ab);for(const _0xccd6a0 of _0x245d54)_0xccd6a0['detach']();});};}['_getCoordsForCells'](_0x5a754f){const _0x5590d2=this['editor']['plugins']['get']('TableUtils');let _0x183281=Number['MAX_SAFE_INTEGER'],_0x1aaa64=Number['MIN_SAFE_INTEGER'],_0x489290=Number['MAX_SAFE_INTEGER'],_0x674249=Number['MIN_SAFE_INTEGER'];for(const _0x3c73b7 of _0x5a754f){if('$graveyard'==_0x3c73b7['root']['rootName'])continue;const {row:_0x713f1c,column:_0x1a6f7a}=_0x5590d2['getCellLocation'](_0x3c73b7),_0x1075c8=_0x3c73b7['hasAttribute']('rowspan')?_0x3c73b7['getAttribute']('rowspan')-0x1:0x0,_0x48ede1=_0x3c73b7['hasAttribute']('colspan')?_0x3c73b7['getAttribute']('colspan')-0x1:0x0;_0x183281=_0x713f1c<_0x183281?_0x713f1c:_0x183281,_0x1aaa64=_0x713f1c+_0x1075c8>_0x1aaa64?_0x713f1c+_0x1075c8:_0x1aaa64,_0x489290=_0x1a6f7a<_0x489290?_0x1a6f7a:_0x489290,_0x674249=_0x1a6f7a+_0x48ede1>_0x674249?_0x1a6f7a+_0x48ede1:_0x674249;}return{'minRow':_0x183281,'maxRow':_0x1aaa64,'minColumn':_0x489290,'maxColumn':_0x674249};}['_setupColumnsRowsFixing'](){const _0x507ea9=this['editor'],_0x5f5db5=_0x507ea9['plugins']['get']('TrackChangesEditing'),_0x833f39=_0x507ea9['plugins']['get']('TableUtils');_0x507ea9['model']['document']['on']('change:data',()=>{const _0x95d079=Array['from'](_0x507ea9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cb87c,data:_0x1a2be2}of _0x95d079){const {group:_0x3e4876,id:_0x2fc6d8,subType:_0x183b71}=_0x5f5db5['_splitMarkerName'](_0x1cb87c);if('suggestion'!=_0x3e4876)continue;if(null!=_0x1a2be2['oldRange'])continue;const _0x5c9c4f=_0x5f5db5['getSuggestion'](_0x2fc6d8);this['_tablePostFixingSubtypes']['includes'](_0x183b71)&&this['_tableSuggestions']['add'](_0x5c9c4f);}},{'priority':'low'});const _0x1706b5=(_0x3a6e82,_0x18c7fa)=>{let _0x22451b=!0x1;const _0x55b13d=_0x18c7fa['createRangeOn'](_0x3a6e82),_0x180493=_0x3a6e82['findAncestor']('table'),_0xa18e4d=_0x833f39['getCellLocation'](_0x3a6e82);for(const _0x2ea2ed of this['_tableSuggestions']){const _0x444b1b=_0x2ea2ed['subType'],_0x4813f5=_0x444b1b['startsWith']('tablePaste'),_0x2df4ca=_0x444b1b['substr'](_0x4813f5?0xa:0x5),_0x131913=_0x2df4ca['toLowerCase'](),_0x24404e=_0x131913['substr'](0x0,0x3)+'span',_0x28188e='min'+_0x2df4ca,_0x241833='max'+_0x2df4ca;if(!_0x2ea2ed['isInContent'])continue;if(_0x180493!=_0x2ea2ed['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2ea2ed['isIntersectingWithRange'](_0x55b13d))continue;const _0x50a44e=_0x3a6e82['hasAttribute'](_0x24404e)?_0x3a6e82['getAttribute'](_0x24404e)-0x1:0x0,_0x476a69=this['_getSuggestionCoords'](_0x2ea2ed),_0x29670c=_0x476a69[_0x28188e],_0x3b473f=_0x476a69[_0x241833];_0x29670c<=_0xa18e4d[_0x131913]&&_0xa18e4d[_0x131913]+_0x50a44e<=_0x3b473f&&(_0x2ea2ed['addRange'](_0x55b13d),_0x22451b=!0x0);}return _0x22451b;};_0x507ea9['model']['document']['registerPostFixer'](_0x3d61cf=>{let _0x4bed63=!0x1;for(const _0x33b636 of _0x507ea9['model']['document']['differ']['getChanges']())if('insert'==_0x33b636['type']){if('tableRow'==_0x33b636['name']){for(const _0x53a976 of _0x33b636['position']['nodeAfter']['getChildren']())_0x4bed63=_0x4bed63||_0x1706b5(_0x53a976,_0x3d61cf);}else'tableCell'==_0x33b636['name']&&(_0x4bed63=_0x4bed63||_0x1706b5(_0x33b636['position']['nodeAfter'],_0x3d61cf));}return _0x4bed63;});}['_getSuggestionCoords'](_0x237aec){return this['_getCoordsForCells'](_0x237aec['getRanges']()['map'](_0xe4030a=>_0xe4030a['start']['nodeAfter']));}}function Ne(_0x168206){return Array['from'](new Set(_0x168206)['values']());}class _t extends _0x3d96fc{static get['requires'](){return[At];}['afterInit'](){const _0x43e62b=this['editor'],_0x1c0d7f=_0x43e62b['model']['document']['selection'],_0x50b000=_0x43e62b['locale'];if(!_0x43e62b['plugins']['has']('TableEditing'))return;const _0x5941ad=_0x43e62b['plugins']['get']('TrackChangesEditing'),_0x12fe06=_0x43e62b['plugins']['get']('TableUtils'),_0x2566f7=_0x43e62b['plugins']['get'](At);_0x2566f7['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5941ad['enableCommand']('mergeTableCells',()=>{const _0x4300e1=_0x12fe06['getSelectionAffectedTableCells'](_0x43e62b['model']['document']['selection']);_0x43e62b['model']['change'](()=>{_0x5941ad['markMultiRangeBlockFormat'](_0x4300e1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x43e62b['commands']['get']('mergeTableCells')['on']('execute',(_0x471479,_0x4eeb94)=>{_0x43e62b['commands']['get']('trackChanges')['value']&&(_0x4eeb94['length']>0x0&&_0x4eeb94[_0x4eeb94['length']-0x1]&&_0x4eeb94[_0x4eeb94['length']-0x1]['forceDefaultExecution']||_0x5941ad['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x471479['stop']());},{'priority':'highest'});for(const _0x54c5fc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x272947=_0x43e62b['commands']['get'](_0x54c5fc);_0x5941ad['enableCommand'](_0x54c5fc,()=>{const _0x285823=_0x43e62b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2941fb=>_0x2941fb['is']('element','tableCell')),_0x19775a=_0x272947['value'];_0x43e62b['model']['change'](()=>{_0x5941ad['markMultiRangeBlockFormat']([_0x285823,_0x19775a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1ba45e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2abca7=_0x43e62b['commands']['get'](_0x1ba45e);_0x5941ad['enableCommand'](_0x1ba45e,()=>{const _0x5b8eda=_0x12fe06['getSelectionAffectedTableCells'](_0x43e62b['model']['document']['selection'])[0x0],_0x5b0da1=_0x5b8eda['findAncestor']('table'),{column:_0x19d635,row:_0x446523}=_0x12fe06['getCellLocation'](_0x5b8eda);let _0x95e09e=[];if('horizontally'==_0x2abca7['direction']){const _0x3007e4=_0x12fe06['createTableWalker'](_0x5b0da1,{'startRow':_0x446523,'endRow':_0x446523,'includeAllSlots':!0x0});_0x95e09e=Array['from'](_0x3007e4)['map'](_0xcf0439=>_0xcf0439['cell']);}else{const _0x18e571=_0x12fe06['createTableWalker'](_0x5b0da1,{'column':_0x19d635,'includeAllSlots':!0x0});_0x95e09e=Array['from'](_0x18e571)['map'](_0x5ec7bd=>_0x5ec7bd['cell']);}_0x43e62b['model']['change'](_0x2e9d8e=>{_0x5941ad['markBlockFormat'](_0x2e9d8e['createRangeOn'](_0x5b8eda),{'commandName':_0x1ba45e,'commandParams':[]},_0x95e09e,_0x1ba45e);});});}_0x5941ad['descriptionFactory']['registerDescriptionCallback'](_0x54bdae=>{if('formatBlock'!=_0x54bdae['type']&&'formatInline'!=_0x54bdae['type'])return;const {data:_0x3892c2}=_0x54bdae;return _0x3892c2&&'mergeTableCells'==_0x3892c2['commandName']?{'type':'format','content':o(_0x50b000,'*Merge\x20cells*')}:void 0x0;}),_0x5941ad['descriptionFactory']['registerDescriptionCallback'](_0x6a0a3a=>{if('formatBlock'!=_0x6a0a3a['type']&&'formatInline'!=_0x6a0a3a['type'])return;const {data:_0x3d74ce}=_0x6a0a3a;return _0x3d74ce?'splitTableCellVertically'==_0x3d74ce['commandName']?{'type':'format','content':o(_0x50b000,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3d74ce['commandName']?{'type':'format','content':o(_0x50b000,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x28f6cf=_0x2566f7['_acceptFormatSuggestionCallbackFactory']();for(const _0x1fa059 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5941ad['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fa059,'accept',_0x28f6cf);for(const _0x52d160 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5941ad['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52d160,'accept',_0x28f6cf);_0x5941ad['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x57a0da=>{_0x43e62b['model']['change'](_0x15bb87=>{const _0x2cac53=Array['from'](_0x1c0d7f['getRanges']())['map'](_0x32c2dd=>_0x2e68e7['fromRange'](_0x32c2dd));_0x15bb87['setSelection'](_0x57a0da),_0x43e62b['commands']['get']('mergeTableCells')['refresh'](),_0x43e62b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x402c18=_0x2cac53['filter'](_0x5c3dea=>'$graveyard'!=_0x5c3dea['root']['rootName']);_0x402c18['length']>0x0&&_0x15bb87['setSelection'](_0x402c18);for(const _0x37b02d of _0x2cac53)_0x37b02d['detach']();});});for(const _0x4396e2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x8871da=_0x43e62b['commands']['get'](_0x4396e2);_0x8871da['on']('set:isEnabled',(_0x56ed8c,_0xbc0ad6,_0x4c402a)=>{if(_0x4c402a){const _0x1259d6=_0x43e62b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x57c12c=>_0x57c12c['is']('element','tableCell'));this['_areMergableCells'](_0x8871da['value'],_0x1259d6)||(_0x56ed8c['return']=!0x1,_0x56ed8c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x37c726=this['editor']['commands']['get']('mergeTableCells'),_0x98929b=this['editor']['plugins']['get']('TableUtils');if(!_0x37c726['isEnabled'])return!0x1;const _0x26bbb2=_0x98929b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x47e1ba of _0x26bbb2)for(const _0x5e83e5 of _0x26bbb2)if(_0x47e1ba!=_0x5e83e5&&!this['_areMergableCells'](_0x47e1ba,_0x5e83e5))return!0x1;return!0x0;}['_areMergableCells'](_0x5b7c84,_0x43bba1){const _0x49a238=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49101b=this['editor']['model']['createRangeOn'](_0x5b7c84),_0x2f5503=this['editor']['model']['createRangeOn'](_0x43bba1),_0x31e0bd=new Set(),_0xcef537=new Set();for(const _0xda71ef of _0x49a238['getSuggestions']())if(('insertion'==_0xda71ef['type']||'deletion'==_0xda71ef['type']||'mergeTableCells'==_0xda71ef['subType'])&&_0xda71ef['isInContent']){for(const _0x2dea23 of _0xda71ef['getRanges']())_0x2dea23['containsRange'](_0x49101b,!0x0)&&_0x31e0bd['add'](_0xda71ef['type']+':'+_0xda71ef['author']['id']),_0x2dea23['containsRange'](_0x2f5503,!0x0)&&_0xcef537['add'](_0xda71ef['type']+':'+_0xda71ef['author']['id']);}if(_0x31e0bd['size']!=_0xcef537['size'])return!0x1;for(const _0x1c1369 of _0x31e0bd)if(!_0xcef537['has'](_0x1c1369))return!0x1;return!0x0;}}class Ct extends _0x3d96fc{static get['requires'](){return[At];}['afterInit'](){const _0xd358c6=this['editor'];if(!_0xd358c6['plugins']['has']('TableEditing'))return;const _0x4ee8c8=_0xd358c6['locale'],_0x2323e3=_0xd358c6['plugins']['get']('TrackChangesEditing');_0x2323e3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2323e3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2323e3['registerBlockAttribute']('headingRows'),_0x2323e3['registerBlockAttribute']('headingColumns'),_0x2323e3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4ee8c8,'FORMAT_HEADER_ROW')),_0x2323e3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4ee8c8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x218cef=this['editor']['plugins']['get']('TrackChangesEditing'),_0xef7f83=this['editor']['plugins']['get']('TableUtils'),_0x122c53=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x1b9ad2({showActiveMarker:_0x2f96bb=!0x0,setDataAttribute:_0x4f1fea=!0x0}={}){return(_0x49b33f,_0x3f8bbd,_0xf61d7e)=>{const {type:_0x1fe8a6,id:_0x2b8934}=_0x218cef['_splitMarkerName'](_0x3f8bbd['markerName']),_0x58b494=_0x218cef['getSuggestion'](_0x2b8934),_0x50a374=_0x58b494['data'];if('formatBlock'!=_0x58b494['type']||!_0x50a374||'setTableColumnHeader'!=_0x50a374['commandName'])return;if(_0x3f8bbd['item'])return void _0x49b33f['stop']();if(!_0xf61d7e['consumable']['consume'](_0x3f8bbd['markerRange'],_0x49b33f['name']))return;const _0x389d10=_0x3f8bbd['markerRange']['start']['nodeAfter'],_0x338bf5=_0x3f8bbd['markerRange']['end']['nodeBefore'],_0x48e9ce=_0x389d10['parent']['parent'],{column:_0x12b4a2}=_0xef7f83['getCellLocation'](_0x389d10),{column:_0x572730}=_0xef7f83['getCellLocation'](_0x338bf5);for(let _0x43428d=_0x12b4a2;_0x43428d<=_0x572730;_0x43428d++){const _0x2ef246=_0xef7f83['createTableWalker'](_0x48e9ce,{'column':_0x43428d,'includeAllSlots':!0x1});for(const _0x1a0b85 of _0x2ef246){const _0x36f43f=_0x1a0b85['cell'],_0x23cf26=_0xf61d7e['mapper']['toViewElement'](_0x36f43f);_0xf61d7e['writer']['addClass']('ck-suggestion-marker-'+_0x1fe8a6,_0x23cf26),_0x4f1fea&&_0xf61d7e['writer']['setAttribute']('data-suggestion',_0x2b8934,_0x23cf26),_0xf61d7e['mapper']['bindElementToMarker'](_0x23cf26,_0x3f8bbd['markerName']),_0x2f96bb&&(_0x218cef['activeMarkers']['includes'](_0x3f8bbd['markerName'])?_0xf61d7e['writer']['addClass']('ck-suggestion-marker--active',_0x23cf26):_0xf61d7e['writer']['removeClass']('ck-suggestion-marker--active',_0x23cf26));}}};}_0x218cef['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x122c53),_0x218cef['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x122c53),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1b9ad2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d4ec0,_0x5e33a8,_0x118ce6)=>{_0x118ce6['options']['showSuggestionHighlights']&&_0x1b9ad2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5d4ec0,_0x5e33a8,_0x118ce6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x37ca65,_0xb979ae,_0xfed2b2)=>{const {type:_0x311d68,id:_0x177e72}=_0x218cef['_splitMarkerName'](_0xb979ae['markerName']),_0x5d2217=_0x218cef['getSuggestion'](_0x177e72),_0x5632da=_0x5d2217['data'];if('formatBlock'!=_0x5d2217['type']||!_0x5632da||'setTableColumnHeader'!=_0x5632da['commandName'])return;const _0x2aecb8=_0xfed2b2['mapper']['markerNameToElements'](_0xb979ae['markerName']);if(_0x2aecb8){for(const _0x2aac0c of _0x2aecb8)_0xfed2b2['writer']['removeClass']('ck-suggestion-marker-'+_0x311d68,_0x2aac0c),_0xfed2b2['writer']['removeClass']('ck-suggestion-marker--active',_0x2aac0c),_0xfed2b2['writer']['removeAttribute']('data-suggestion',_0x2aac0c),_0xfed2b2['mapper']['unbindElementFromMarkerName'](_0x2aac0c,_0xb979ae['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5216aa=this['editor'],_0x1a185a=_0x5216aa['locale'];function _0x42b446(_0x168461){return{'type':'format','content':o(_0x1a185a,'*Format:*\x20%0',_0x168461)};}_0x5216aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a35cb=>{if('formatBlock'!=_0x2a35cb['type'])return;const {data:_0x21562c}=_0x2a35cb;if(_0x21562c){if('setTableRowHeader'==_0x21562c['commandName']){const _0x34c198=_0x21562c['commandParams'][0x0]['forceValue'];return _0x42b446(o(_0x1a185a,_0x34c198?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x21562c['commandName']){const _0x350602=_0x21562c['commandParams'][0x0]['forceValue'];return _0x42b446(o(_0x1a185a,_0x350602?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x3d96fc{['afterInit'](){const _0xec172=this['editor'],_0x2c07ec=_0xec172['locale'],_0x10527b=_0xec172['plugins']['get']('TrackChangesEditing');function _0x44575a(_0x2e2e3c){return{'type':'format','content':''+o(_0x2c07ec,'*Set\x20table\x20type:*\x20%0',_0x2e2e3c)};}_0xec172['plugins']['has']('TableLayout')&&(_0x10527b['enableCommand']('insertTableLayout'),_0x10527b['enableDefaultAttributesIntegration']('tableType'),_0x10527b['registerBlockAttribute']('tableType'),_0x10527b['descriptionFactory']['registerElementLabel'](_0x34fde8=>_0x34fde8['is']('element','table')&&'layout'===_0x34fde8['getAttribute']('tableType'),_0x43d93d=>o(_0x2c07ec,'ELEMENT_LAYOUT_TABLE',_0x43d93d)),_0x10527b['descriptionFactory']['registerDescriptionCallback'](_0x3cd755=>{const {data:_0x147823}=_0x3cd755;if(_0x147823&&'tableType'==_0x147823['key'])switch(_0x147823['newValue']){case'layout':return _0x44575a(o(_0x2c07ec,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x44575a(o(_0x2c07ec,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x109d4b=>[_0x109d4b,null]));class Nt extends _0x3d96fc{static get['requires'](){return[At];}['afterInit'](){const _0x2c4fa5=this['editor'];if(!_0x2c4fa5['plugins']['has']('TableClipboard'))return;const _0x94f800=_0x2c4fa5['plugins']['get']('TrackChangesEditing'),_0x2771fc=_0x2c4fa5['plugins']['get']('TableUtils'),_0x47d9e7=_0x2c4fa5['plugins']['get'](At),_0x94900e=_0x2c4fa5['plugins']['get']('TableClipboard'),_0x427ccf=_0x2c4fa5['plugins']['get']('TableSelection'),_0x25b318=_0x2c4fa5['plugins']['get'](_0x370a86);_0x47d9e7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c4fa5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c4fa5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4e24b2=null,_0x47d5b4=!0x1;_0x25b318['on']('contentInsertion',(_0x42ca96,_0x105aa7)=>{_0x47d5b4='paste'===_0x105aa7['method'];}),_0x2c4fa5['model']['on']('insertContent',(_0x4f7178,_0x3d3af7)=>{if(!_0x47d5b4&&null===_0x427ccf['getSelectedTableCells']())return;const [_0xdb908a,_0x52f5f2]=_0x3d3af7,_0x1e5827=_0x3d3af7[_0x3d3af7['length']-0x1];_0x1e5827&&_0x1e5827['forceDefaultExecution']||_0x94f800['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x59e0d7,_0x5f294b,_0x5e715d,_0x4e06ee,_0x1bfc8b){if(_0x5f294b&&!_0x5f294b['is']('documentSelection'))return!0x1;const _0x2d504a=_0x1bfc8b['getTableIfOnlyTableInContent'](_0x59e0d7,_0x5e715d);if(!_0x2d504a||!Ue(_0x2d504a,void 0x0,_0x4e06ee))return!0x1;const _0x5a7410=_0x4e06ee['getSelectionAffectedTableCells'](_0x5e715d['document']['selection']);if(!_0x5a7410['length'])return!0x1;const _0x173f18=_0x5a7410[0x0]['findAncestor']('table'),_0x297880=_0x4e06ee['getRowIndexes'](_0x5a7410),_0x4ab95a=_0x4e06ee['getColumnIndexes'](_0x5a7410),_0x14199c={'startRow':_0x297880['first'],'endRow':_0x297880['last'],'startColumn':_0x4ab95a['first'],'endColumn':_0x4ab95a['last']};return 0x1==_0x5a7410['length']&&(_0x14199c['endRow']+=_0x4e06ee['getRows'](_0x2d504a)-0x1,_0x14199c['endColumn']+=_0x4e06ee['getColumns'](_0x2d504a)-0x1),Ue(_0x173f18,_0x14199c,_0x4e06ee);}(_0xdb908a,_0x52f5f2,_0x2c4fa5['model'],_0x2771fc,_0x94900e)&&(_0x4f7178['stop'](),_0x4e24b2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c4fa5['model']['change'](()=>{_0x2c4fa5['model']['insertContent'](_0x3d3af7[0x0],_0x3d3af7[0x1],_0x3d3af7[0x2],{'forceDefaultExecution':!0x0});const _0x5b810f=_0x5cef89(),{rowInsertionRanges:_0x23442b,columnInsertionRanges:_0x1b0cff,insertionRanges:_0x261461,deletionRanges:_0x2012b7,cells:_0xd5f843}=_0x4e24b2;_0x23442b['length']&&_0x94f800['markMultiRangeInsertion'](_0x23442b,'tablePasteRow',{'tablePasteChainId':_0x5b810f}),_0x1b0cff['length']&&_0x94f800['markMultiRangeInsertion'](_0x1b0cff,'tablePasteColumn',{'tablePasteChainId':_0x5b810f}),_0x261461['length']&&(_0x94f800['markMultiRangeInsertion'](_0x261461,'tablePaste',{'tablePasteChainId':_0x5b810f,'skipNestingCheck':!0x0}),_0x261461['forEach'](_0x529617=>_0x529617['detach']?.())),_0x2012b7['length']&&(_0x94f800['markMultiRangeDeletion'](_0x2012b7,'tablePaste',{'tablePasteChainId':_0x5b810f,'skipNestingCheck':!0x0}),_0x2012b7['forEach'](_0x2346ad=>_0x2346ad['detach']?.()));const _0x32966c=_0x94f800['markMultiRangeBlockFormat'](_0xd5f843['map'](({element:_0x5d8528})=>_0x5d8528),{'formatGroupId':_0x5cef89()},[],'tablePasteCell',{'tablePasteChainId':_0x5b810f});if(_0x32966c){const _0x29be19=_0x32966c['getMarkers'](),_0x5357a4=[];for(const {element:_0x34b57d,attributes:_0x2ae3a1}of _0xd5f843){if(!_0x2ae3a1)continue;const _0x4002ad=_0x2c4fa5['model']['createRangeOn'](_0x34b57d),_0x2502bd=_0x29be19['find'](_0x4b0d5e=>_0x4b0d5e['getRange']()['isEqual'](_0x4002ad));_0x2502bd&&_0x5357a4['push']([_0x2502bd['name'],_0x2ae3a1]);}_0x5357a4['length']&&_0x32966c['setAttribute']('markerAttributes',Object['fromEntries'](_0x5357a4));}_0x4e24b2=null;}));},{'priority':_0x37a44a['high']+0xa}),_0x25b318['on']('contentInsertion',()=>{_0x47d5b4=!0x1;},{'priority':'lowest'}),_0x2c4fa5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3c7411,_0x130c6c)=>{const [_0x4d8515,_0x56427b,,_0x220a93]=_0x130c6c;if(!_0x4e24b2)return;_0x3c7411['stop']();const _0x304bf8=_0x4d8515['cell'],_0x2ba09c=_0x56427b,_0xe89606=Oe(_0x304bf8),_0x403d9b=Oe(_0x2ba09c);_0x3c7411['return']=_0x304bf8;let _0x2abaf0=null,_0x293aaa=null;if(_0x403d9b||_0xe89606){if(_0xe89606&&!_0x403d9b){_0x220a93['remove'](_0x304bf8['getChild'](0x0));for(const _0x215211 of Array['from'](_0x2ba09c['getChildren']()))_0x220a93['insert'](_0x215211,_0x304bf8,'end');const _0xa14112=_0x4e24b2['rowInsertionIndexes']['includes'](_0x4d8515['row']),_0x19dfdd=_0x4e24b2['columnInsertionIndexes']['includes'](_0x4d8515['column']);_0xa14112||_0x19dfdd||(_0x2abaf0=_0x2e68e7['fromRange'](_0x220a93['createRangeIn'](_0x304bf8)));}else _0x403d9b&&!_0xe89606&&(_0x293aaa=_0x220a93['createRangeIn'](_0x304bf8));}else{const _0xf35edc=_0x220a93['createElement']('tableCellSuggestion'),_0xcdf1ca=_0x220a93['createElement']('tableCellSuggestion');_0x220a93['wrap'](_0x220a93['createRangeIn'](_0x304bf8),_0xcdf1ca),_0x220a93['insert'](_0xf35edc,_0x304bf8,0x0);for(const _0x261933 of Array['from'](_0x2ba09c['getChildren']()))_0x220a93['insert'](_0x261933,_0xf35edc,'end');_0x2abaf0=_0x2e68e7['fromRange'](_0x220a93['createRangeOn'](_0xf35edc)),_0x293aaa=_0x2e68e7['fromRange'](_0x220a93['createRangeOn'](_0xcdf1ca));}const _0x4444ed=Array['from'](_0x2ba09c['getAttributes']())['filter'](([_0x4764b8])=>Be['includes'](_0x4764b8));_0x4e24b2['cells']['push']({'element':_0x304bf8,'attributes':_0x4444ed['length']?Object['fromEntries'](_0x4444ed):null}),_0x2abaf0&&_0x4e24b2['insertionRanges']['push'](_0x2abaf0),_0x293aaa&&_0x4e24b2['deletionRanges']['push'](_0x293aaa);},{'priority':'high'}),_0x2771fc['on']('insertColumns',(_0x12f36a,_0x16cb9c)=>{const [_0x3f5f1c,_0x3c026d={}]=_0x16cb9c;if(!_0x4e24b2)return;const _0x16c68d=_0x3c026d['at']||0x0,_0x3c8a3c=_0x3c026d['columns']||0x1;_0x4e24b2['columnInsertionIndexes']=new Array(_0x3c8a3c)['fill'](_0x16c68d)['map']((_0x812f5a,_0x3c141c)=>_0x812f5a+_0x3c141c);for(const {cell:_0x2fceea}of _0x2771fc['createTableWalker'](_0x3f5f1c,{'startColumn':_0x16c68d,'endColumn':_0x16c68d+_0x3c8a3c-0x1}))_0x4e24b2['columnInsertionRanges']['push'](_0x2c4fa5['model']['createRangeOn'](_0x2fceea));},{'priority':'low'}),_0x2771fc['on']('insertRows',(_0x384b84,_0x127ac4)=>{const [_0x2d156a,_0x31423c={}]=_0x127ac4;if(!_0x4e24b2)return;const _0x194c3c=_0x31423c['at']||0x0,_0xcbdeb6=_0x31423c['rows']||0x1;_0x4e24b2['rowInsertionIndexes']=new Array(_0xcbdeb6)['fill'](_0x194c3c)['map']((_0x42b3a5,_0x17dc29)=>_0x42b3a5+_0x17dc29);for(const {cell:_0x679a94}of _0x2771fc['createTableWalker'](_0x2d156a,{'startRow':_0x194c3c,'endRow':_0x194c3c+_0xcbdeb6-0x1}))_0x4e24b2['rowInsertionRanges']['push'](_0x2c4fa5['model']['createRangeOn'](_0x679a94));},{'priority':'low'}),_0x94f800['descriptionFactory']['registerDescriptionCallback'](_0x539280=>{if(_0x539280['subType']&&_0x539280['subType']['startsWith']('tablePaste'))return _0x539280['previous']?{}:{'type':'insertion','content':o(_0x2c4fa5['locale'],'*Replace\x20table\x20cells*')};});const _0x15b932=()=>!0x1;for(const _0x47a870 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x94f800['_suggestionFactory']['registerCustomCallback']('insertion',_0x47a870,'join',_0x15b932),_0x94f800['_suggestionFactory']['registerCustomCallback']('deletion',_0x47a870,'join',_0x15b932),_0x94f800['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47a870,'join',_0x15b932);_0x94f800['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x15b932),_0x94f800['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x131546,_0x29cbe1,_0xf4bff4)=>{const _0x5b4e38=_0x131546['map'](_0x21142b=>_0x21142b['getContainedElement']())['filter'](_0x561707=>_0x561707),_0x4d9777=new Map(_0x5b4e38['map'](_0x2076f0=>[_0x2076f0,null]));if(_0x4e24b2){for(const {element:_0x2cde9e,attributes:_0x13ebe5}of _0x4e24b2['cells'])_0x13ebe5&&_0x4d9777['set'](_0x2cde9e,_0x13ebe5);}else{if(_0xf4bff4&&_0xf4bff4['markerAttributes'])for(const [_0x2d42b9,_0x1f00a0]of Object['entries'](_0xf4bff4['markerAttributes'])){const _0x418f99=_0x2c4fa5['model']['markers']['get'](_0x2d42b9),_0x17bf61=_0x418f99?_0x418f99['getRange']()['getContainedElement']():null;_0x17bf61&&_0x4d9777['set'](_0x17bf61,_0x1f00a0);}}_0x2c4fa5['model']['change'](_0x44beb3=>{for(const [_0x4b10b2,_0x1fb7f0]of _0x4d9777)_0x44beb3['setAttributes']({...xe,..._0x1fb7f0},_0x4b10b2);});});const _0x34b781=(_0x224cfe,_0x2e33ae)=>{_0x94f800['_suggestionFactory']['registerCustomCallback'](_0x224cfe,'tablePaste',_0x2e33ae,(_0x541a59,_0x550061,_0x11546c)=>{_0x2c4fa5['model']['change'](_0x2955f8=>{const _0x192ca4=[];for(const _0x3fa955 of _0x541a59){const _0x12f94f=_0x3fa955['start']['nodeAfter'];_0x12f94f['is']('element','tableCellSuggestion')&&_0x192ca4['push'](_0x12f94f);}_0x94f800['_suggestionFactory']['getSuggestionCallback'](_0x224cfe,null,_0x2e33ae)(_0x541a59,_0x550061,_0x11546c);for(const _0x22c4ef of _0x192ca4)'$graveyard'!=_0x22c4ef['root']['rootName']&&_0x2955f8['unwrap'](_0x22c4ef);});});};_0x34b781('insertion','accept'),_0x34b781('insertion','discard'),_0x34b781('deletion','accept'),_0x34b781('deletion','discard'),_0x94f800['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x150262=>{const _0x9c6dd1=_0x150262['map'](_0x575826=>_0x575826['getContainedElement']()),_0x4541c9=_0x9c6dd1[0x0]['findAncestor']('table'),{minRow:_0x577a0a,maxRow:_0xd258ee}=_0x47d9e7['_getCoordsForCells'](_0x9c6dd1);_0x2771fc['removeRows'](_0x4541c9,{'at':_0x577a0a,'rows':_0xd258ee-_0x577a0a+0x1});}),_0x94f800['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x47e23f=>{const _0x5915b2=_0x47e23f['map'](_0x52158f=>_0x52158f['getContainedElement']()),_0x8129bc=_0x5915b2[0x0]['findAncestor']('table'),{minColumn:_0x346abc,maxColumn:_0x339d81}=_0x47d9e7['_getCoordsForCells'](_0x5915b2);_0x2771fc['removeColumns'](_0x8129bc,{'at':_0x346abc,'columns':_0x339d81-_0x346abc+0x1});});const _0x410122=(_0xb60e24,_0x3949a2)=>{if(!_0x3949a2['subType']||!_0x3949a2['subType']['startsWith']('tablePaste'))return;const _0x214b3a=_0x3949a2['attributes']['tablePasteChainId'],_0x5238b7=_0x94f800['getSuggestions']()['filter'](_0x30b383=>_0x30b383['isInContent']&&_0x30b383['attributes']&&_0x30b383['attributes']['tablePasteChainId']==_0x214b3a);_0x5238b7['length']&&_0x3949a2['getAllAdjacentSuggestions']()['length']!=_0x5238b7['length']&&_0x5238b7['reduce']((_0x10a929,_0x5ba055)=>(_0x10a929['next']=_0x5ba055,_0x5ba055['previous']=_0x10a929,_0x5ba055));};function _0x4d5c22(_0x381562,_0x47908a=!0x0){const {id:_0x5d316d,authorId:_0x4cdb13}=_0x94f800['_splitMarkerName'](_0x381562['markerName']),_0x5d07fb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x20dcf2=_0x94f800['activeMarkers']['includes'](_0x381562['markerName']);return _0x20dcf2&&_0x5d07fb['push']('ck-suggestion-marker--active'),{'classes':_0x5d07fb,'attributes':{'data-suggestion':_0x5d316d,'data-author-id':_0x4cdb13},'priority':_0x20dcf2&&_0x47908a?0xbc2:0xbb8};}_0x94f800['on']('suggestionLoaded',_0x410122,{'priority':'high'}),_0x94f800['on']('suggestionUnloaded',_0x410122,{'priority':'high'}),_0x2c4fa5['model']['document']['registerPostFixer'](()=>{let _0x5c54d7=!0x1;const _0x4aaa6c=Array['from'](_0x2c4fa5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1764a2,data:_0x253cb3}of _0x4aaa6c){const {group:_0x1ac63b,type:_0x4f1dfe,id:_0x3df59e}=_0x94f800['_splitMarkerName'](_0x1764a2);if('suggestion'!=_0x1ac63b||'deletion'!=_0x4f1dfe||_0x253cb3['oldRange'])continue;if(!_0x94f800['hasSuggestion'](_0x3df59e))continue;const _0x34cc53=_0x94f800['getSuggestion'](_0x3df59e)['getRanges'](),_0x5b0f20=_0x2c4fa5['plugins']['get']('Users')['me'];for(const _0x3a124c of _0x94f800['getSuggestions']()){if(!_0x3a124c['isInContent']||_0x3a124c['author']!=_0x5b0f20)continue;if('formatBlock'!=_0x3a124c['type']||'tablePasteCell'!=_0x3a124c['subType'])continue;if(_0x3a124c['getRanges']()['every'](_0x3fce1d=>_0x34cc53['some'](_0x5b0367=>_0x5b0367['containsRange'](_0x3fce1d,!0x0)))){for(const _0x2d782f of _0x3a124c['getAllAdjacentSuggestions']())_0x2d782f['isInContent']&&(_0x2d782f['discard'](),_0x5c54d7=!0x0);}}}return _0x5c54d7;}),_0x2c4fa5['model']['document']['registerPostFixer'](_0x58ec97=>{const _0x39bf30=_0x2c4fa5['commands']['get']('redo');if(!_0x39bf30||!_0x39bf30['_createdBatches']['has'](_0x58ec97['batch']))return!0x1;let _0x286940=!0x1;const _0x5e1e66=_0x2c4fa5['plugins']['get']('Users')['me'],_0x51b227=_0x2c4fa5['model']['document']['differ']['getChanges'](),_0xa1f3bc=Array['from'](_0x2c4fa5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ca47d,data:_0x179314})=>{const {group:_0x14fceb,subType:_0x3bfae6,authorId:_0x4a3cc3}=_0x94f800['_splitMarkerName'](_0x1ca47d);return'suggestion'==_0x14fceb&&'tablePaste'==_0x3bfae6&&_0x4a3cc3==_0x5e1e66['id']&&!_0x179314['oldRange'];});for(const _0x3cf4cb of _0x51b227){if('insert'!=_0x3cf4cb['type']||'tableCellSuggestion'!=_0x3cf4cb['name']||0x1!=_0x3cf4cb['length'])continue;const _0x569f6f=_0x58ec97['createRange'](_0x3cf4cb['position'],_0x3cf4cb['position']['getShiftedBy'](0x1));if(!_0xa1f3bc['find'](({data:_0x43ef14})=>_0x43ef14['newRange']['isEqual'](_0x569f6f))){for(const {name:_0x36ffb1,data:_0xbe7b9}of _0xa1f3bc)if(_0x569f6f['containsRange'](_0xbe7b9['newRange'])){_0x58ec97['updateMarker'](_0x36ffb1,{'range':_0x569f6f}),_0x286940=!0x0;break;}}}return _0x286940;}),_0x2c4fa5['model']['document']['registerPostFixer'](_0x4f480b=>{let _0x175954=!0x1;const _0x5e75a6=_0x2c4fa5['plugins']['get']('Users')['me'],_0x4535be=_0x94f800['getSuggestions']()['filter'](_0xa0f29=>_0xa0f29['isInContent']&&_0xa0f29['author']==_0x5e75a6),_0x33f995=new Set(),_0x3cc06d=new Set();for(const _0x43d83e of _0x4535be)if('tablePaste'==_0x43d83e['subType'])for(const _0x314412 of _0x43d83e['getMarkers']()){const _0x1ab464=_0x314412['getRange']()['getContainedElement']();if(_0x1ab464){if(_0x1ab464['is']('element','tableCellSuggestion')&&Oe(_0x1ab464)){_0x43d83e['removeMarker'](_0x314412['name']),_0x33f995['add'](_0x1ab464),_0x175954=!0x0;const _0x4b87d4=_0x1ab464['nextSibling'],_0x46e5c4=_0x1ab464['previousSibling'],_0x210617=_0x4b87d4&&_0x4b87d4['is']('element','tableCellSuggestion'),_0x4a30ae=_0x46e5c4&&_0x46e5c4['is']('element','tableCellSuggestion');_0x210617&&!_0x33f995['has'](_0x4b87d4)&&_0x3cc06d['add'](_0x4b87d4),_0x4a30ae&&!_0x33f995['has'](_0x46e5c4)&&_0x3cc06d['add'](_0x46e5c4);}else _0x1ab464['is']('element','paragraph')&&_0x1ab464['isEmpty']&&(_0x43d83e['removeMarker'](_0x314412['name']),_0x175954=!0x0);}}else{if('tablePasteCell'==_0x43d83e['subType']){if(!_0x43d83e['attributes']||!_0x43d83e['attributes']['tablePasteChainId'])continue;const _0x1c9309=_0x43d83e['attributes']['markerAttributes'];if(_0x1c9309&&Object['keys'](_0x1c9309)['length'])continue;const _0x7982a2=_0x43d83e['attributes']['tablePasteChainId'];let _0x115c65=!0x0,_0x2a2426=!0x0;for(const _0x3633e1 of _0x4535be)if(_0x3633e1['subType']&&_0x3633e1['subType']['startsWith']('tablePaste')){if(!_0x3633e1['attributes']['tablePasteChainId']){_0x2a2426=!0x1;break;}if(_0x3633e1['id']!=_0x43d83e['id']&&_0x3633e1['attributes']['tablePasteChainId']==_0x7982a2){_0x115c65=!0x1;break;}}_0x2a2426&&_0x115c65&&(_0x43d83e['removeMarkers'](),_0x175954=!0x0);}}for(const _0x285cff of _0x33f995)_0x4f480b['remove'](_0x285cff);for(const _0x1b9a95 of _0x3cc06d)_0x4f480b['unwrap'](_0x1b9a95);return _0x175954;}),_0x2c4fa5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4dbe76=>_0x4d5c22(_0x4dbe76),'converterPriority':'high'}),_0x2c4fa5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x526c8e,_0x585001)=>_0x585001['options']['showSuggestionHighlights']?_0x4d5c22(_0x526c8e,!0x1):null,'converterPriority':'high'});const _0x4bc5fd=_0x2c4fa5['editing']['view'];this['listenTo'](_0x4bc5fd['document'],'clipboardOutput',(_0x36b4db,_0x2b0e22)=>{const _0x40b9e5=[];for(const _0x35ab37 of _0x4bc5fd['createRangeIn'](_0x2b0e22['content'])['getItems']())_0x35ab37['is']('element','suggestion-td')&&_0x40b9e5['push'](_0x35ab37);_0x4bc5fd['change'](_0x4a55f9=>{for(const _0x34daa8 of _0x40b9e5)_0x4a55f9['move'](_0x4a55f9['createRangeIn'](_0x34daa8),_0x4a55f9['createPositionBefore'](_0x34daa8)),_0x4a55f9['remove'](_0x34daa8);});});}}function Oe(_0xabfb3f){if(_0xabfb3f['isEmpty'])return!0x0;const _0x4a1834=_0xabfb3f['getChild'](0x0);return _0x4a1834['is']('element','paragraph')&&_0x4a1834['isEmpty'];}function Ue(_0x102ab1,_0x57bd8f={},_0x5937db){for(const {isAnchor:_0x4e1faa,cellHeight:_0xb290b3,cellWidth:_0x208079}of _0x5937db['createTableWalker'](_0x102ab1,{'includeAllSlots':!0x0,..._0x57bd8f}))if(!_0x4e1faa||0x1!=_0xb290b3||0x1!=_0x208079)return!0x1;return!0x0;}class Dt extends _0x3d96fc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x491b85=this['editor']['plugins']['get']('TrackChangesEditing');_0x491b85['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x491b85['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x491b85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x491b85['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x491b85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x491b85['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51d690,_0x58843e){const _0x265880=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c3508=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x14abae=_0x58843e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2789d2=_0x3c3508['getColumnGroupElement'](_0x14abae);let _0x173094=_0x2789d2?_0x3c3508['getTableColumnsWidths'](_0x2789d2):null,_0x2c5783=_0x14abae['getAttribute']('tableWidth')||null;const _0x2fa08e=_0x58843e['tableWidth']||_0x2c5783,_0x4f88f4=_0x58843e['columnWidths']||_0x173094,_0x1a208d=this['editor']['plugins']['get']('Users')['me'];for(const _0x4489e3 of _0x265880['getSuggestions']()){const _0xb2ef77=_0x4489e3['getContainedElement']();if('resizeTable'===_0x4489e3['subType']&&_0xb2ef77===_0x14abae){_0x4489e3['author']!==_0x1a208d&&_0x4489e3['discard']();const _0x38d3ce=_0x4489e3['data']['commandParams'];_0x2c5783=_0x38d3ce[0x0]['tableWidth'],_0x173094=_0x38d3ce[0x0]['columnWidths'];break;}}_0x51d690({'table':_0x14abae,'tableWidth':_0x2fa08e,'columnWidths':_0x4f88f4}),_0x265880['markBlockFormat'](_0x14abae,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2c5783,'columnWidths':_0x173094}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x45bb14){if('formatBlock'!=_0x45bb14['type']&&'formatInline'!=_0x45bb14['type'])return;const {data:_0x3da73a}=_0x45bb14;if(_0x3da73a&&'resizeTable'===_0x3da73a['formatGroupId']){const _0x1aa4f4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1aa4f4)};}}}class $t extends _0x3d96fc{['afterInit'](){const _0x5b5ce8=this['editor'];_0x5b5ce8['plugins']['has']('Template')&&_0x5b5ce8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3d96fc{['afterInit'](){const _0x28894e=this['editor'];if(!_0x28894e['commands']['get']('insertTableOfContents'))return;_0x28894e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x22a299=_0x28894e['plugins']['get']('TrackChangesEditing'),_0x190abd=_0x28894e['locale'];_0x22a299['descriptionFactory']['registerElementLabel']('tableOfContents',_0x428da5=>o(_0x190abd,'ELEMENT_TABLE_OF_CONTENTS',_0x428da5));}}class Bt extends _0x3d96fc{['afterInit'](){const _0x2e98e3=this['editor'];if(!_0x2e98e3['plugins']['has']('Title'))return;const _0x12441b=_0x2e98e3['plugins']['get']('TrackChangesEditing');_0x12441b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2e98e3['locale'],'ELEMENT_TITLE')),_0x2e98e3['model']['document']['registerPostFixer'](_0x53c69d=>{let _0x2258e0=!0x1;const _0x147706=Array['from'](_0x2e98e3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x292668,data:_0x5ebd0c}of _0x147706){const {group:_0x36cb7a}=_0x12441b['_splitMarkerName'](_0x292668);if('suggestion'!==_0x36cb7a||!_0x5ebd0c['newRange'])continue;const _0x3f6577=_0x5ebd0c['newRange'],_0x22fe95=_0x3f6577['end']['nodeBefore'];if(!_0x22fe95||!_0x22fe95['is']('element','title-content'))continue;if(!_0x3f6577['start']['isTouching'](_0x3f6577['end']))continue;const _0x2c9b87=_0x2e98e3['model']['schema']['getNearestSelectionRange'](_0x3f6577['end'],'forward');if(_0x2c9b87&&_0x2c9b87['isCollapsed']){const _0x196b27=_0x53c69d['createRange'](_0x3f6577['start'],_0x2c9b87['start']);_0x196b27['isEqual'](_0x3f6577)||(_0x53c69d['updateMarker'](_0x292668,{'range':_0x196b27}),_0x2258e0=!0x0);}_0x2258e0||(_0x53c69d['removeMarker'](_0x292668),_0x2258e0=!0x0);}return _0x2258e0;});}}class Tt extends _0x3d96fc{['afterInit'](){const _0x52ee61=this['editor'],_0x29af7e=_0x52ee61['plugins']['get']('TrackChangesEditing');_0x52ee61['plugins']['has']('Uploadcare')&&(_0x29af7e['enableCommand']('uploadcare'),_0x52ee61['plugins']['has']('UploadcareImageEdit')&&(_0x29af7e['enableCommand']('uploadcareImageEdit'),_0x29af7e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x29af7e['registerBlockAttribute']('uploadcareImageId'),_0x29af7e['descriptionFactory']['registerDescriptionCallback'](_0x394c68=>{if('attribute'!=_0x394c68['type'])return;const {data:_0x5a4224}=_0x394c68;return _0x5a4224&&'uploadcareImageId'==_0x5a4224['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x3d96fc{['afterInit'](){const _0xe4cca=this['editor'],_0x7e145=_0xe4cca['plugins']['get']('TrackChangesEditing');_0xe4cca['plugins']['has']('UndoEditing')&&(_0x7e145['enableCommand']('undo'),_0x7e145['enableCommand']('redo'));}}class Ot extends _0x3d96fc{static get['requires'](){return[At];}['afterInit'](){const _0x55ee17=this['editor'];if(!_0x55ee17['plugins']['has']('TableCaptionEditing'))return;_0x55ee17['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x3d96fc{['tableProperties'];['tableCellProperties'];constructor(_0x174b17){super(_0x174b17),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5f56f4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x247f44 of this['tableProperties'])_0x5f56f4['enableCommand'](_0x247f44,(_0x252db7,_0x128b8a)=>{const _0x111543=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x247f44,[_0x111543],this['tableProperties'],'tableProperties',_0x252db7,_0x128b8a);});_0x5f56f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5f56f4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f56f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x46b28d,_0x143216)=>this['handleDiscardAction'](this['tableProperties'],_0x46b28d,_0x143216)),_0x5f56f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x40830b of this['tableCellProperties'])_0x5f56f4['enableCommand'](_0x40830b,(_0x40b1da,_0x5a4ceb)=>{const _0x27ad47=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x40830b,_0x27ad47,this['tableCellProperties'],'tableCellProperties',_0x40b1da,_0x5a4ceb);});_0x5f56f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5f56f4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f56f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x6e6846,_0x1da28b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x6e6846,_0x1da28b)),_0x5f56f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5f56f4['descriptionFactory']['registerDescriptionCallback'](_0x5854d0=>this['handleSuggestionDescription'](_0x5854d0)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x351867,_0x512910,_0x3c9dfc,_0x5e8359,_0x3bc057,_0x1f60b7){const _0x5a0cbc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1f60b7['batch'],()=>{for(const _0x2047cd of _0x512910){if(this['_getSuggestion'](_0x2047cd,_0x5e8359))_0x3bc057(_0x1f60b7);else{const _0x2f8aba={};for(const _0x21d127 of _0x3c9dfc){const _0x4970f0=_0x2047cd['getAttribute'](_0x21d127);void 0x0!==_0x4970f0&&(_0x2f8aba[_0x21d127]=_0x4970f0);}_0x3bc057(_0x1f60b7),_0x5a0cbc['markBlockFormat'](_0x2047cd,{'commandParams':[_0x2f8aba]},[],_0x5e8359);}}});}['handleDiscardAction'](_0xad2b07,_0x3e454c,_0x188a3c){const _0x248512=_0x3e454c[0x0]['start']['nodeAfter'],_0x46a721=_0x188a3c['commandParams'][0x0];this['editor']['model']['change'](_0x30e8ff=>{for(const _0x57d3e8 of _0xad2b07)void 0x0!==_0x46a721[_0x57d3e8]?_0x30e8ff['setAttribute'](_0x57d3e8,_0x46a721[_0x57d3e8],_0x248512):_0x30e8ff['removeAttribute'](_0x57d3e8,_0x248512);});}['handleSuggestionDescription'](_0x2dc7f3){if(_0x2dc7f3['data'])switch(_0x2dc7f3['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'](_0x488ff6,_0x1d5de0){const _0x2820ba=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x432502 of _0x2820ba['getSuggestions']({'skipNotAttached':!0x0})){const _0x30132b=_0x432502['getContainedElement']();if(_0x432502['subType']===_0x1d5de0&&_0x30132b===_0x488ff6)return _0x432502;}return null;}['_registerTablePropertiesAttributes'](){const _0x3db939=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1489e1=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2345a3 of _0x1489e1){const _0x50c7b7=_0x2345a3['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3db939['registerBlockAttribute'](_0x2345a3),_0x3db939['descriptionFactory']['registerAttributeLabel'](_0x2345a3,o(this['editor']['locale'],'FORMAT_'+_0x50c7b7));}}}class Rt extends _0x3d96fc{['afterInit'](){const _0x7ecebd=this['editor'];if(!_0x7ecebd['plugins']['has']('LineHeight'))return;const _0x504f10=_0x7ecebd['plugins']['get']('TrackChangesEditing'),_0x4860b7=_0x7ecebd['locale'];_0x504f10['enableDefaultAttributesIntegration']('lineHeight'),_0x504f10['registerBlockAttribute']('lineHeight'),_0x504f10['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4860b7,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3d96fc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5194d,_0x1da5f8,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3175b8){super(_0x3175b8),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x29b9be,_0x5b0632,_0x25f1ea,_0x4715e3)=>{this['_model']['change'](()=>{for(const _0x41bb1d of[..._0x4715e3,..._0x25f1ea])this['_model']['markers']['has'](_0x41bb1d)&&_0x3175b8['editing']['reconvertMarker'](_0x41bb1d);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3175b8['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3175b8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3175b8['config']['get']('trackChanges.trackFormatChanges'),_0x3175b8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3175b8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x3175b8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x54f605=this['editor'],_0x4d0373=(_0x69fe91,_0x2f6495)=>{if('attribute'!=_0x69fe91)return'ck-suggestion-marker-'+_0x69fe91;const _0x55413b=_0x2f6495['split']('|')[0x0];return this['_isBlockAttribute'](_0x55413b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x54f605['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2b310d=>{const {id:_0x5b7bfc,authorId:_0x4eacc5,type:_0x177a48,subType:_0x2cd7c2}=this['_splitMarkerName'](_0x2b310d['markerName']),_0x2888e8=['ck-suggestion-marker',_0x4d0373(_0x177a48,_0x2cd7c2)];let _0x2c9d57=0xbb8;return this['activeMarkers']['includes'](_0x2b310d['markerName'])&&(_0x2888e8['push']('ck-suggestion-marker--active'),_0x2c9d57=0xbc2),'deletion'==_0x177a48&&(_0x2c9d57+=0x5),{'classes':_0x2888e8,'attributes':{'data-suggestion':_0x5b7bfc,'data-author-id':_0x4eacc5},'priority':_0x2c9d57};}}),_0x54f605['conversion']['for']('dataDowncast')['add'](_0x3ee185=>{_0x3ee185['on']('addMarker:suggestion',(_0x38eedc,_0x5634a7,_0x4a9201)=>{if(!_0x4a9201['options']['showSuggestionHighlights'])return;const _0x193c91=_0x5634a7['item'];if(!_0x193c91)return;const _0x5b9be9=_0x4a9201['mapper']['toViewElement'](_0x193c91);_0x54f605['model']['schema']['isObject'](_0x193c91)&&_0x5b9be9&&!_0x5b9be9['getCustomProperty']('widget')&&_0x5b9be9['is']('containerElement')&&_0x5c55f4(_0x5b9be9,_0x4a9201['writer']);},{'priority':'high'});}),_0x54f605['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d5808,_0x3c9b2f)=>{if(!_0x3c9b2f['options']['showSuggestionHighlights'])return null;const {id:_0x293235,authorId:_0x2352ce,type:_0x37dce0,subType:_0x1cf4c7}=this['_splitMarkerName'](_0x2d5808['markerName']);return{'classes':['ck-suggestion-marker',_0x4d0373(_0x37dce0,_0x1cf4c7)],'priority':0xbb8,'attributes':{'data-suggestion':_0x293235,'data-author-id':_0x2352ce}};}});const _0x2d5ec7=({showActiveMarkers:_0x509c7b=!0x0,isAttributeSuggestion:_0x1eb816=!0x1}={})=>(_0x57f76b,_0x3bd8a0,_0x42946d)=>{if(!_0x3bd8a0['item'])return;const {id:_0x359486,authorId:_0x7a6afb}=this['_splitMarkerName'](_0x3bd8a0['markerName']);if(_0x1eb816){const _0x4c6bfd=this['_suggestions']['get'](_0x359486),_0x9135e5=this['_getAttributeKey'](_0x4c6bfd);if(!this['_isBlockAttribute'](_0x9135e5))return;}if(_0x3bd8a0['item']['is']('selection'))return void _0x42946d['consumable']['consume'](_0x3bd8a0['item'],_0x57f76b['name']);const _0x5749ff=_0x42946d['mapper']['toViewElement'](_0x3bd8a0['item']);if(_0x3bd8a0['item']['is']('element')&&_0x54f605['model']['schema']['isBlock'](_0x3bd8a0['item'])&&!_0x5749ff['getCustomProperty']('addHighlight')){_0x42946d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5749ff),_0x42946d['writer']['setAttribute']('data-suggestion',_0x359486,_0x5749ff),_0x42946d['writer']['setAttribute']('data-author-id',_0x7a6afb,_0x5749ff),_0x42946d['mapper']['bindElementToMarker'](_0x5749ff,_0x3bd8a0['markerName']),_0x509c7b&&(this['activeMarkers']['includes'](_0x3bd8a0['markerName'])?_0x42946d['writer']['addClass']('ck-suggestion-marker--active',_0x5749ff):_0x42946d['writer']['removeClass']('ck-suggestion-marker--active',_0x5749ff));for(const _0x1af488 of _0x54f605['model']['createRangeIn'](_0x3bd8a0['item'])['getItems']())_0x42946d['consumable']['consume'](_0x1af488,_0x57f76b['name']);_0x42946d['consumable']['consume'](_0x3bd8a0['item'],_0x57f76b['name']);}};_0x54f605['conversion']['for']('dataDowncast')['add'](_0x2bf127=>{_0x2bf127['on']('addMarker:suggestion:formatBlock',(_0x359dfb,_0x2d7fb0,_0x5de859)=>{_0x5de859['options']['showSuggestionHighlights']&&_0x2d5ec7({'showActiveMarkers':!0x1})(_0x359dfb,_0x2d7fb0,_0x5de859);},{'priority':'highest'});}),_0x54f605['conversion']['for']('dataDowncast')['add'](_0x11ec99=>{_0x11ec99['on']('addMarker:suggestion:attribute',(_0x1b723b,_0x2a5eb9,_0xbc992c)=>{_0xbc992c['options']['showSuggestionHighlights']&&_0x2d5ec7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1b723b,_0x2a5eb9,_0xbc992c);},{'priority':'highest'});}),_0x54f605['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4ac960,_0x58acd5)=>{if(_0x58acd5['options']['showSuggestionHighlights']){const {id:_0x71f92f,authorId:_0x29c051}=this['_splitMarkerName'](_0x4ac960);return _0x4ac960['includes'](':split')||_0x4ac960['includes'](':merge')?{'group':'suggestion','name':_0x4ac960['substr'](0xb),'attributes':{'data-suggestion':_0x71f92f,'data-author-id':_0x29c051}}:null;}return{'group':'suggestion','name':_0x4ac960['substr'](0xb)};}}),_0x54f605['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c5a2e,{writer:_0x1eaa80})=>{let _0x3bf836='suggestion:'+_0x3c5a2e['getAttribute']('suggestion-type')+':'+_0x3c5a2e['getAttribute']('id');return _0x3c5a2e['getAttribute']('marker-count')&&(_0x3bf836+=':'+_0x3c5a2e['getAttribute']('marker-count')),_0x1eaa80['createElement']('$marker',{'data-name':_0x3bf836});}}),_0x54f605['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x54f605['conversion']['for']('editingDowncast')['add'](_0x1b4737=>{_0x1b4737['on']('addMarker:suggestion:formatBlock',_0x2d5ec7(),{'priority':'high'});}),_0x54f605['conversion']['for']('editingDowncast')['add'](_0x340db6=>{_0x340db6['on']('addMarker:suggestion:attribute',_0x2d5ec7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x54f605['conversion']['for']('editingDowncast')['add'](_0x44bb28=>{_0x44bb28['on']('removeMarker:suggestion:formatBlock',(_0x53fef0,_0x4b281a,_0x534e0)=>{const _0x264054=_0x534e0['mapper']['markerNameToElements'](_0x4b281a['markerName']);if(_0x264054){for(const _0x5e81da of _0x264054)_0x5e81da['getCustomProperty']('addHighlight')||(_0x534e0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e81da),_0x534e0['writer']['removeAttribute']('data-suggestion',_0x5e81da),_0x534e0['writer']['removeAttribute']('data-author-id',_0x5e81da),_0x534e0['mapper']['unbindElementFromMarkerName'](_0x5e81da,_0x4b281a['markerName']));}},{'priority':'high'});}),_0x54f605['conversion']['for']('editingDowncast')['add'](_0x2ed1f3=>{_0x2ed1f3['on']('removeMarker:suggestion:attribute',(_0x57c515,_0x2bd47b,_0x582311)=>{const _0x1130c0=_0x582311['mapper']['markerNameToElements'](_0x2bd47b['markerName']);if(!_0x1130c0)return;const {id:_0x268e7b}=this['_splitMarkerName'](_0x2bd47b['markerName']),_0x3d3a13=this['_suggestions']['get'](_0x268e7b),_0x3080f8=this['_getAttributeKey'](_0x3d3a13);if(this['_isBlockAttribute'](_0x3080f8)){for(const _0x29def9 of _0x1130c0)_0x29def9['getCustomProperty']('addHighlight')||(_0x582311['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29def9),_0x582311['writer']['removeAttribute']('data-suggestion',_0x29def9),_0x582311['writer']['removeAttribute']('data-author-id',_0x29def9),_0x582311['mapper']['unbindElementFromMarkerName'](_0x29def9,_0x2bd47b['markerName']));}},{'priority':'high'});}),_0x54f605['model']['document']['registerPostFixer'](_0x273532=>{let _0x579931=!0x1;const _0x5f2837=Array['from'](_0x54f605['model']['document']['differ']['getChangedMarkers']()),_0x74f2d4=new Set();for(const {name:_0x4cff2f,data:_0x53a418}of _0x5f2837){const {group:_0x186912,type:_0x5dbb22,subType:_0x16fd58,id:_0x12899d}=this['_splitMarkerName'](_0x4cff2f);if('suggestion'!==_0x186912)continue;const _0x2ba218=_0x16fd58?'suggestion:'+_0x5dbb22+':'+_0x16fd58+':'+_0x12899d:'suggestion:'+_0x5dbb22+':'+_0x12899d,_0x857dbe=_0x54f605['model']['markers']['getMarkersGroup'](_0x2ba218),_0x45a09d=_0x54f605['model']['markers']['get'](_0x4cff2f),_0x4cb7b5=this['_suggestions']['get'](_0x12899d);if(null!=_0x53a418['newRange']){'formatInline'==_0x5dbb22&&(_0x579931=_0x579931||Gt(_0x53a418['newRange'],_0x4cff2f,_0x273532,_0x54f605['model']['schema']));const _0x2b0ced='attribute'==_0x5dbb22&&this['_isBlockAttribute'](_0x16fd58['split']('|')[0x0]),_0x702a2='attribute'==_0x5dbb22&&this['_isInlineAttribute'](_0x16fd58['split']('|')[0x0]);if(_0x53a418['newRange']['isCollapsed']||'$graveyard'==_0x53a418['newRange']['root']['rootName']||'formatBlock'==_0x5dbb22&&!Jt(_0x53a418['newRange'])||_0x2b0ced&&!Jt(_0x53a418['newRange'])||_0x702a2&&Kt(_0x53a418['newRange'])||'deletion'==_0x5dbb22&&Kt(_0x53a418['newRange'])||_0x45a09d&&Ht(_0x45a09d,_0x857dbe))_0x273532['removeMarker'](_0x4cff2f),_0x579931=!0x0;else{if(!_0x4cb7b5||!_0x4cb7b5['isInContent'])continue;if(_0x53a418['newRange']&&_0x53a418['oldRange']&&_0x53a418['newRange']['isEqual'](_0x53a418['oldRange']))continue;_0x74f2d4['add'](_0x4cb7b5);}}}return _0x74f2d4['size']>0x0&&(_0x579931=!!this['_joinWithAdjacentSuggestions'](_0x74f2d4)||_0x579931),_0x579931;}),_0x54f605['model']['document']['registerPostFixer'](_0x308a19=>{let _0x9d4cc3=!0x1;for(const _0x3eeedf of _0x54f605['model']['document']['differ']['getChanges']())if('insert'==_0x3eeedf['type'])for(const _0x13a766 of this['_suggestions']['values']()){if(_0x13a766['isMultiRange']||!_0x13a766['isInContent'])continue;const _0x36afcc='formatBlock'==_0x13a766['type'],_0x1c6ba3=this['_getAttributeKey'](_0x13a766),_0x31bb3e=_0x1c6ba3&&this['_isBlockAttribute'](_0x1c6ba3);if(!_0x36afcc&&!_0x31bb3e)continue;const _0x28a222=_0x13a766['getFirstRange']();if(_0x28a222['start']['parent']!=_0x28a222['end']['parent']&&!_0x28a222['end']['isAtEnd']){const _0x56e98c=_0x54f605['model']['createPositionAt'](_0x28a222['start']['nodeAfter'],'end'),_0x568152=_0x54f605['model']['createRange'](_0x28a222['start'],_0x56e98c);_0x308a19['updateMarker'](_0x13a766['getFirstMarker'](),{'range':_0x568152}),_0x9d4cc3=!0x0;}}return _0x9d4cc3;}),_0x54f605['model']['document']['registerPostFixer'](_0x81dc4f=>this['_processAttributeChanges'](_0x81dc4f)),_0x54f605['model']['document']['registerPostFixer'](_0x40c247=>!_0x40c247['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x40c247)),_0x54f605['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x54f605['model']['document']['on']('change:data',(_0x53341c,_0x452019)=>{if(!_0x452019['isLocal']||_0x452019['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2d3bc4=_0x54f605['model']['document']['differ']['getChanges']();if(0x0==_0x2d3bc4['length'])return;const _0x17cb5e=[],_0x339bc4=_0x2d3bc4['filter'](_0x31f3dc=>'attribute'==_0x31f3dc['type']),_0x5bf7ea=_0x2d3bc4['filter'](_0x27cc07=>'insert'==_0x27cc07['type']&&'$text'!=_0x27cc07['name']);for(const _0x1c3293 of _0x339bc4)this['_isRegisteredAttribute'](_0x1c3293['attributeKey'])&&_0x17cb5e['push']({'key':_0x1c3293['attributeKey'],'newValue':_0x1c3293['attributeNewValue'],'oldValue':_0x1c3293['attributeOldValue'],'range':qt(_0x1c3293['range'],_0x54f605['model'])});for(const _0x26698d of _0x5bf7ea){if('rename'!=_0x26698d['action']&&'refresh'!=_0x26698d['action'])continue;const _0x27371d=zt(_0x26698d['position']['nodeAfter'],_0x54f605['model']),_0x4cd7de=_0x26698d['before'];'rename'==_0x26698d['action']&&_0x17cb5e['push']({'key':m,'newValue':_0x26698d['name'],'oldValue':_0x4cd7de['name'],'range':_0x27371d});for(const [_0x3e5170,_0x51c57d]of _0x4cd7de['attributes']){if(!this['_isRegisteredAttribute'](_0x3e5170))continue;const _0x1a205e=_0x26698d['attributes']['get'](_0x3e5170);_0x51c57d!==_0x1a205e&&_0x17cb5e['push']({'key':_0x3e5170,'newValue':_0x1a205e,'oldValue':_0x51c57d,'range':_0x27371d});}for(const [_0x22238b,_0x1d48c0]of _0x26698d['attributes'])this['_isRegisteredAttribute'](_0x22238b)&&(_0x4cd7de['attributes']['has'](_0x22238b)||_0x17cb5e['push']({'key':_0x22238b,'newValue':_0x1d48c0,'oldValue':null,'range':_0x27371d}));}0x0!=_0x17cb5e['length']&&_0x54f605['model']['enqueueChange'](_0x452019,_0x41b8fa=>{const _0x597a09=_0x5cef89();for(const {range:_0x2e1467,key:_0x5e1de0,oldValue:_0x53d69f,newValue:_0x4a02f8}of _0x17cb5e)this['markAttributeChange'](_0x2e1467,_0x5e1de0,_0x53d69f,_0x4a02f8,{'groupId':_0x597a09});this['_reduceExistingSuggestions'](_0x41b8fa,_0x17cb5e);});},{'priority':'lowest'}),_0x54f605['model']['markers']['on']('update:suggestion',(_0x1b8500,_0x265571,_0x2d5bc0)=>{if(null==_0x2d5bc0){const {id:_0x367a98}=this['_splitMarkerName'](_0x265571['name']),_0x11e56f=this['_suggestions']['get'](_0x367a98);_0x11e56f&&_0x11e56f['addMarkerName'](_0x265571['name']);}}),_0x54f605['model']['document']['on']('change:data',()=>{const _0x1b421e=Array['from'](_0x54f605['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3bddbb=>'suggestion'===this['_splitMarkerName'](_0x3bddbb['name'])['group']);if(0x0===_0x1b421e['length'])return;_0x1b421e['sort']((_0x4be477,_0x1be40e)=>{const _0x1beeb2=_0x4be477['data']['oldRange'],_0x441357=_0x1be40e['data']['oldRange'];return null===_0x1beeb2&&null===_0x441357?0x0:null===_0x1beeb2&&null!==_0x441357?-0x1:null!==_0x1beeb2&&null===_0x441357?0x1:_0x1beeb2['start']['isBefore'](_0x441357['start'])?-0x1:0x1;});const _0x39b1cd=new Set(),_0x4ea8bc=new Set();for(const {name:_0x54e05d,data:_0xfe7da0}of _0x1b421e){const {id:_0x1c8306}=this['_splitMarkerName'](_0x54e05d);if(null===_0xfe7da0['oldRange']){const _0x86b0c1=this['_handleNewSuggestionMarker'](_0x54e05d);_0x4ea8bc['add'](_0x86b0c1);}else{const _0xc746da=this['_suggestions']['get'](_0x1c8306);null!==_0xfe7da0['newRange']||_0xc746da['isInContent']?(_0x39b1cd['add'](_0xc746da['head']),_0x4ea8bc['add'](_0xc746da)):this['_removeSuggestion'](_0xc746da);}}_0x4ea8bc['size']>0x0&&this['_refreshSuggestionsChain'](_0x4ea8bc);for(const _0x51c4ec of _0x39b1cd)this['fire']('suggestionChanged',_0x51c4ec);}),_0x54f605['model']['on']('applyOperation',(_0x2c2b96,_0x4c6c92)=>{const _0x1fbc57=_0x4c6c92[0x0];if(!this['_suggestions']['size'])return;if(!_0x1fbc57['isDocumentOperation'])return;if(_0x1fbc57['batch']['isUndo']||!_0x1fbc57['batch']['isLocal'])return;let _0x3dfb88,_0x2e6f97;switch(_0x1fbc57['type']){case'insert':_0x3dfb88=_0x54f605['model']['createPositionAt'](_0x1fbc57['position']),_0x2e6f97=_0x3dfb88['getShiftedBy'](_0x1fbc57['howMany']);break;case'split':_0x3dfb88=_0x54f605['model']['createPositionAt'](_0x1fbc57['splitPosition']),_0x2e6f97=_0x54f605['model']['createPositionAt'](_0x1fbc57['moveTargetPosition']);break;case'move':_0x3dfb88=_0x54f605['model']['createPositionAt'](_0x1fbc57['targetPosition']),_0x2e6f97=_0x3dfb88['getShiftedBy'](_0x1fbc57['howMany']);break;default:return;}const _0x2811fa=_0x54f605['model']['createRange'](_0x3dfb88,_0x2e6f97);_0x54f605['model']['change'](()=>{for(const {suggestion:_0x4d99b1,meta:_0x4465c6}of this['_findSuggestions'](_0x2811fa)){if(_0x4d99b1['isMultiRange'])continue;if('formatInline'==_0x4d99b1['type'])continue;const _0x2dc930=this['_getAttributeKey'](_0x4d99b1);if(_0x2dc930&&this['_isBlockAttribute'](_0x2dc930)&&'split'!=_0x1fbc57['type'])continue;const _0x3c0836=_0x4d99b1['data']&&_0x4d99b1['data']['multipleBlocks'];('formatBlock'!=_0x4d99b1['type']||'split'==_0x1fbc57['type']&&!_0x3c0836)&&(_0x4465c6['containsRangeInObject']||'insertion'==_0x4d99b1['type']&&_0x4465c6['isOwn']||_0x4d99b1['getFirstRange']()['containsRange'](_0x2811fa)&&this['_breakSuggestionMarker'](_0x4d99b1,_0x3dfb88,_0x2e6f97));}});},{'priority':'lowest'}),_0x54f605['model']['on']('deleteContent',(_0x3b4515,_0xa02091)=>{const _0x51e633=_0xa02091[0x0],_0x226135=_0xa02091[0x1];if(_0x226135&&_0x226135['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x51e633['isCollapsed'])return;const _0x471a23=_0x54f605['model']['schema'],{start:_0x2a50e6,end:_0x400475}=_0x51e633['getFirstRange'](),_0x32288d=_0x2a50e6['nodeAfter']&&_0x471a23['isLimit'](_0x2a50e6['nodeAfter'])?null:_0x471a23['getNearestSelectionRange'](_0x2a50e6,'forward'),_0x8686d2=_0x400475['nodeBefore']&&_0x471a23['isLimit'](_0x400475['nodeBefore'])?null:_0x471a23['getNearestSelectionRange'](_0x400475,'backward'),_0x500ad2=_0x54f605['model']['createRange'](_0x32288d?_0x32288d['start']:_0x2a50e6,_0x8686d2?_0x8686d2['end']:_0x400475);_0x54f605['model']['change'](_0x32e5f9=>{this['markDeletion'](_0x500ad2);const _0x13e6ea=_0x54f605['model']['schema']['getNearestSelectionRange'](_0x500ad2['start']);_0x51e633['is']('documentSelection')?_0x32e5f9['setSelection'](_0x13e6ea):_0x51e633['setTo'](_0x13e6ea);}),_0x3b4515['stop']();},{'priority':_0x37a44a['normal']+0xa}),_0x54f605['model']['on']('insertContent',(_0x115ec1,_0x20d5ce)=>{const _0xc50d46=_0x20d5ce[_0x20d5ce['length']-0x1];_0xc50d46&&_0xc50d46['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x54f605['model']['change'](()=>{let _0x176967=_0x54f605['model']['insertContent'](_0x20d5ce[0x0],_0x20d5ce[0x1],_0x20d5ce[0x2],{'forceDefaultExecution':!0x0});if(!_0x176967)return;_0x115ec1['return']=_0x176967['clone']();const _0xda6c28=_0x176967['end']['nodeBefore'],_0x589e65=_0x54f605['model']['schema'];_0xda6c28&&_0x589e65['isBlock'](_0xda6c28)&&!_0x589e65['isObject'](_0xda6c28)&&(_0x176967=_0x54f605['model']['createRange'](_0x176967['start'],_0x54f605['model']['createPositionAt'](_0xda6c28,'end'))),this['markInsertion'](_0x176967);}),_0x115ec1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x46e154=new D(_0x54f605,this['_suggestions']);_0x54f605['commands']['add']('acceptSuggestion',_0x46e154),this['enableCommand']('acceptSuggestion');const _0x4795c5=new $(_0x54f605,this['_suggestions']);_0x54f605['commands']['add']('discardSuggestion',_0x4795c5),this['enableCommand']('discardSuggestion'),_0x54f605['commands']['add']('acceptAllSuggestions',new M(_0x54f605,_0x46e154,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x54f605['commands']['add']('discardAllSuggestions',new M(_0x54f605,_0x4795c5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x54f605['commands']['add']('acceptSelectedSuggestions',new B(_0x54f605,_0x46e154,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x54f605['commands']['add']('discardSelectedSuggestions',new B(_0x54f605,_0x4795c5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x30976f=_0x54f605['plugins']['get']('CommentsRepository');this['listenTo'](_0x30976f,'addComment',(_0xb50104,{threadId:_0x2938a5})=>{const _0x5a7a19=this['_suggestions']['get'](_0x2938a5);_0x5a7a19&&_0x5a7a19['commentThread']&&0x1===_0x5a7a19['commentThread']['length']&&this['_updateSuggestionData'](_0x2938a5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x30976f,'removeComment',(_0x21b33c,{threadId:_0x341928})=>{const _0x5aeac1=this['_suggestions']['get'](_0x341928);_0x5aeac1&&_0x5aeac1['commentThread']&&!_0x5aeac1['commentThread']['length']&&this['_updateSuggestionData'](_0x341928,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x443f01){const _0x3cd974=_0x11e6ae([0x6a,0x4c,0x56,0x75,0x55,0x53,0x46,0x76,0x64,0x49,0x61,0x79,0x5a,0x42,0x43,0x66,0x78,0x74,0x32,0x4d,0x6b,0x69,0x30,0x47,0x41,0x70,0x6f,0x54,0x58,0x63,0x68,0x39,0x6e,0x4b,0x45,0x38,0x50,0x31,0x51,0x37,0x6c,0x34,0x6d,0x44,0x35,0x4e,0x4f,0x4a,0x65,0x7a,0x71,0x57,0x52,0x73,0x67,0x77,0x62,0x33,0x48,0x36,0x59,0x72]),_0x46d59e=0x4d94f6d9,_0xed02c=0x4d938631^_0x46d59e,_0x495ad4=window[_0x11e6ae([0x44,0x61,0x74,0x65])][_0x11e6ae([0x6e,0x6f,0x77])](),_0x54faa8=_0x443f01[_0x11e6ae([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d3c33=new window[(_0x11e6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c88b3=>{_0x54faa8[_0x11e6ae([0x6f,0x6e,0x63,0x65])](_0x11e6ae([0x72,0x65,0x61,0x64,0x79]),_0x5c88b3);}),_0x5c0bee={[_0x11e6ae([0x6b,0x74,0x79])]:_0x11e6ae([0x45,0x43]),[_0x11e6ae([0x75,0x73,0x65])]:_0x11e6ae([0x73,0x69,0x67]),[_0x11e6ae([0x63,0x72,0x76])]:_0x11e6ae([0x50,0x2d,0x32,0x35,0x36]),[_0x11e6ae([0x78])]:_0x11e6ae([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]),[_0x11e6ae([0x79])]:_0x11e6ae([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]),[_0x11e6ae([0x61,0x6c,0x67])]:_0x11e6ae([0x45,0x53,0x32,0x35,0x36])},_0x3ec600=_0x54faa8[_0x11e6ae([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11e6ae([0x67,0x65,0x74])](_0x11e6ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41e54d(){let _0x6ffba9,_0x30f38a=null,_0x284b4f=null;try{if(_0x3ec600==_0x11e6ae([0x47,0x50,0x4c]))return _0x11e6ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6ffba9=_0x15383e(),!_0x6ffba9)return _0x11e6ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6ffba9[_0x11e6ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x284b4f=_0x4778e8(_0x6ffba9[_0x11e6ae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6ffba9[_0x11e6ae([0x6a,0x74,0x69])])),await _0x25f829()?_0x241f5f()?_0x444ca5()?_0x11e6ae([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cb873()?(_0x6ffba9[_0x11e6ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11e6ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30f38a=_0x58d786(_0x11e6ae([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6ffba9[_0x11e6ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11e6ae([0x74,0x72,0x69,0x61,0x6c])&&(_0x30f38a=_0x58d786(_0x11e6ae([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x374b55()):_0x11e6ae([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11e6ae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11e6ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11e6ae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x444ca5(){const _0x120072=[_0x11e6ae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11e6ae([0x74,0x72,0x69,0x61,0x6c])][_0x11e6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6ffba9[_0x11e6ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x495ad4/0x3e8:0xe10*_0xed02c;return _0x6ffba9[_0x11e6ae([0x65,0x78,0x70])]<_0x120072;}function _0x241f5f(){const _0x5c9896=_0x6ffba9[_0x11e6ae([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5c9896)return!0x1;if(_0x5c9896[_0x11e6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11e6ae([0x2a])))return!0x0;if(_0x5c9896[_0x11e6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11e6ae([0x54,0x43])))return!0x0;if(_0x5c9896[_0x11e6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11e6ae([0x52,0x54,0x43]))){if(_0x572309())return!0x0;if(_0x1b1fbb()||_0x4b1199())return!0x0;}return!0x1;}function _0x3cb873(){const _0x5ff368=_0x6ffba9[_0x11e6ae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ff368||0x0==_0x5ff368[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29c212}=new URL(window[_0x11e6ae([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ff368[_0x11e6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29c212))return!0x0;const _0x9586d4=_0x29c212[_0x11e6ae([0x73,0x70,0x6c,0x69,0x74])](_0x11e6ae([0x2e]));return _0x5ff368[_0x11e6ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d73d9=>_0x3d73d9[_0x11e6ae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11e6ae([0x2a])))[_0x11e6ae([0x6d,0x61,0x70])](_0x587721=>_0x587721[_0x11e6ae([0x73,0x70,0x6c,0x69,0x74])](_0x11e6ae([0x2e])))[_0x11e6ae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49f0b6=>_0x49f0b6[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9586d4[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11e6ae([0x6d,0x61,0x70])](_0xfb6199=>Array(_0x9586d4[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfb6199[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11e6ae([0x66,0x69,0x6c,0x6c])](_0xfb6199[0x0]===_0x11e6ae([0x2a])?_0x11e6ae([0x2a]):'')[_0x11e6ae([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfb6199))[_0x11e6ae([0x73,0x6f,0x6d,0x65])](_0x30d1ad=>_0x9586d4[_0x11e6ae([0x65,0x76,0x65,0x72,0x79])]((_0x496528,_0x30e2d3)=>_0x30d1ad[_0x30e2d3]===_0x496528||_0x30d1ad[_0x30e2d3]===_0x11e6ae([0x2a])));}function _0x374b55(){return _0x30f38a&&_0x284b4f?new window[(_0x11e6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x401a22,_0x492fb0)=>{_0x30f38a[_0x11e6ae([0x74,0x68,0x65,0x6e])](_0x401a22,_0x492fb0),_0x284b4f[_0x11e6ae([0x74,0x68,0x65,0x6e])](_0x2c2598=>{_0x2c2598!=_0x11e6ae([0x56,0x61,0x6c,0x69,0x64])&&_0x401a22(_0x2c2598);},_0x492fb0);}):_0x30f38a||_0x284b4f||_0x11e6ae([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4778e8(_0xe4b200,_0x43c181){return new window[(_0x11e6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d8668=>{if(_0x1ff478())return _0x4d8668(_0x11e6ae([0x56,0x61,0x6c,0x69,0x64]));_0x2a965e(),_0x54faa8[_0x11e6ae([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11e6ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13243e=!0x1;const _0xa25c1f=_0x5cef89();function _0x47cb84(_0x1c97d9){return!!_0x1c97d9&&(typeof _0x1c97d9===_0x11e6ae([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c97d9===_0x11e6ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c97d9[_0x11e6ae([0x74,0x68,0x65,0x6e])]===_0x11e6ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c97d9[_0x11e6ae([0x63,0x61,0x74,0x63,0x68])]===_0x11e6ae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x347af9(_0x29f5ce){_0x36e7d3(_0x29f5ce)[_0x11e6ae([0x74,0x68,0x65,0x6e])](_0x467697=>{if(!_0x467697||_0x467697[_0x11e6ae([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11e6ae([0x6f,0x6b]))return _0x11e6ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a6ac6(_0x287313(_0xa25c1f+_0x43c181))!=_0x467697[_0x11e6ae([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11e6ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11e6ae([0x56,0x61,0x6c,0x69,0x64]);})[_0x11e6ae([0x74,0x68,0x65,0x6e])](_0xd84a1e=>(_0x4e34cc(),_0xd84a1e),()=>{const _0x51ce9c=_0x1203ab();return null==_0x51ce9c?(_0x4e34cc(),_0x11e6ae([0x56,0x61,0x6c,0x69,0x64])):_0x11e6ae(_0x495ad4-_0x51ce9c>(0x699872d9^_0x46d59e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11e6ae([0x74,0x68,0x65,0x6e])](_0x4d8668)[_0x11e6ae([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d8668(_0x11e6ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ced46=0x4da21859^_0x46d59e;function _0x4e34cc(){const _0x3a9d8a=_0x11e6ae([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a6ac6(_0x287313(_0xe4b200)),_0x38f089=_0x223054(_0x4a6ac6(window[_0x11e6ae([0x4d,0x61,0x74,0x68])][_0x11e6ae([0x63,0x65,0x69,0x6c])](_0x495ad4/_0x1ced46)));window[_0x11e6ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11e6ae([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a9d8a,_0x38f089);}function _0x1203ab(){const _0x5be3b1=_0x11e6ae([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a6ac6(_0x287313(_0xe4b200)),_0x150e55=window[_0x11e6ae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11e6ae([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5be3b1);return _0x150e55?window[_0x11e6ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x223054(_0x150e55),0x10)*_0x1ced46:null;}function _0x36e7d3(_0x1a3720){return new window[(_0x11e6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c236e,_0x394855)=>{_0x1a3720[_0x11e6ae([0x74,0x68,0x65,0x6e])](_0x5c236e,_0x394855),window[_0x11e6ae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x394855,0x4d952219^_0x46d59e);});}}_0x54faa8[_0x11e6ae([0x6f,0x6e])](_0x11e6ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26c7bb,_0x285a9e)=>{if(_0x285a9e[0x0]!=_0xe4b200)return _0x4d8668(_0x11e6ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x285a9e[0x1]={..._0x285a9e[0x1],[_0x11e6ae([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa25c1f};},{[_0x11e6ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11e6ae([0x68,0x69,0x67,0x68])}),_0x54faa8[_0x11e6ae([0x6f,0x6e])](_0x11e6ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x582674=>{_0x47cb84(_0x582674[_0x11e6ae([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13243e=!0x0,_0x347af9(_0x582674[_0x11e6ae([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11e6ae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11e6ae([0x6c,0x6f,0x77])}),_0x5d3c33[_0x11e6ae([0x74,0x68,0x65,0x6e])](()=>{_0x13243e||_0x4d8668(_0x11e6ae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ff478(){return _0x54faa8[_0x11e6ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11e6ae([0x76,0x69,0x65,0x77])][_0x11e6ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11e6ae([0x61,0x75,0x74,0x6f]);}function _0x2a965e(){_0x54faa8[_0x11e6ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11e6ae([0x76,0x69,0x65,0x77])][_0x11e6ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11e6ae([0x61,0x75,0x74,0x6f]);}}function _0x58d786(_0x471d08){const _0x5e93b5=[new window[(_0x11e6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1856e9=>setTimeout(_0x1856e9,0x4d9dc815^_0x46d59e)),_0x5d3c33[_0x11e6ae([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11e6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17881f=>{let _0x1ffcea=0x0;_0x54faa8[_0x11e6ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x11e6ae([0x6f,0x6e])](_0x11e6ae([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b3ab3,_0x4f7e68)=>{_0x4f7e68[0x0][_0x11e6ae([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ffcea++,_0x1ffcea==(0x4d94f721^_0x46d59e)&&(_0x17881f(),_0x4b3ab3[_0x11e6ae([0x6f,0x66,0x66])]());});}))];return window[_0x11e6ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11e6ae([0x72,0x61,0x63,0x65])](_0x5e93b5)[_0x11e6ae([0x74,0x68,0x65,0x6e])](()=>_0x471d08);}async function _0x15b37b(){await _0x5d3c33,_0x54faa8[_0x11e6ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x11e6ae([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x32ef81,_0x54faa8[_0x11e6ae([0x6d,0x6f,0x64,0x65,0x6c])][_0x11e6ae([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x32ef81,_0x54faa8[_0x11e6ae([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11e6ae([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x572309(){return _0xe585a9(_0x11e6ae([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x47d213(_0x11e6ae([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x11e6ae([0x73,0x74,0x61,0x74,0x65])]==_0x11e6ae([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1b1fbb(){return _0xe585a9(_0x11e6ae([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 _0x4b1199(){return _0xe585a9(_0x11e6ae([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47dc7c(_0x215acf){const _0x3e82cc=_0x37efbd();_0x54faa8[_0x3e82cc]=_0x11e6ae([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x215acf,_0x215acf!=_0x11e6ae([0x56,0x61,0x6c,0x69,0x64])&&_0x15b37b();}function _0x37efbd(){const _0xbf9e2a=window[_0x11e6ae([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11e6ae([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11e6ae([0x6e,0x6f,0x77])]())[_0x11e6ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11e6ae([0x2e]),'');let _0x3415df=_0x11e6ae([0x6a]);for(let _0x47f51c=0x0;_0x47f51c<_0xbf9e2a[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47f51c+=0x2){let _0x2cbd22=window[_0x11e6ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbf9e2a[_0x11e6ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47f51c,_0x47f51c+0x2));_0x2cbd22>=_0x3cd974[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2cbd22-=_0x3cd974[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3415df+=_0x3cd974[_0x2cbd22];}return _0x3415df;}function _0x15383e(){const _0xe51ade=_0x3ec600[_0x11e6ae([0x73,0x70,0x6c,0x69,0x74])](_0x11e6ae([0x2e]));if(0x3!=_0xe51ade[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54daf(_0xe51ade[0x1]);function _0x54daf(_0x27e374){const _0x40b21b=_0x33792f(_0x27e374);return _0x40b21b&&_0x25b417()?_0x40b21b:null;function _0x25b417(){const _0x291ba7=_0x40b21b[_0x11e6ae([0x6a,0x74,0x69])],_0x1a6df1=window[_0x11e6ae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x291ba7[_0x11e6ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x291ba7[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfb83ff={..._0x40b21b,[_0x11e6ae([0x6a,0x74,0x69])]:_0x291ba7[_0x11e6ae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x291ba7[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfb83ff[_0x11e6ae([0x76,0x63])],_0x287313(_0xfb83ff)==_0x1a6df1;}}}async function _0x25f829(){let _0x419224=!0x0;try{const _0x42ae0a=_0x3ec600[_0x11e6ae([0x73,0x70,0x6c,0x69,0x74])](_0x11e6ae([0x2e])),[_0x1fdcf4,_0x3d5fab,_0x4b0c42]=_0x42ae0a;return _0x12138(_0x1fdcf4),await _0x39f124(_0x1fdcf4,_0x3d5fab,_0x4b0c42),_0x419224;}catch{return!0x1;}function _0x12138(_0x3efdfe){const _0x44d99f=_0x33792f(_0x3efdfe);_0x44d99f&&_0x44d99f[_0x11e6ae([0x61,0x6c,0x67])]==_0x11e6ae([0x45,0x53,0x32,0x35,0x36])||(_0x419224=!0x1);}async function _0x39f124(_0x1fca03,_0x29a38d,_0x2f5ff2){const _0x43f43d=window[_0x11e6ae([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11e6ae([0x66,0x72,0x6f,0x6d])](_0x536b92(_0x2f5ff2),_0x2bf035=>_0x2bf035[_0x11e6ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3491c8=new window[(_0x11e6ae([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11e6ae([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1fca03+_0x11e6ae([0x2e])+_0x29a38d),_0x492acf=window[_0x11e6ae([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11e6ae([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x492acf)return;const _0x1812e0=await _0x492acf[_0x11e6ae([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11e6ae([0x6a,0x77,0x6b]),_0x5c0bee,{[_0x11e6ae([0x6e,0x61,0x6d,0x65])]:_0x11e6ae([0x45,0x43,0x44,0x53,0x41]),[_0x11e6ae([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11e6ae([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11e6ae([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x492acf[_0x11e6ae([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11e6ae([0x6e,0x61,0x6d,0x65])]:_0x11e6ae([0x45,0x43,0x44,0x53,0x41]),[_0x11e6ae([0x68,0x61,0x73,0x68])]:{[_0x11e6ae([0x6e,0x61,0x6d,0x65])]:_0x11e6ae([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1812e0,_0x43f43d,_0x3491c8)||(_0x419224=!0x1);}}function _0x33792f(_0x7f91c6){return _0x7f91c6[_0x11e6ae([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11e6ae([0x65,0x79]))?JSON[_0x11e6ae([0x70,0x61,0x72,0x73,0x65])](_0x536b92(_0x7f91c6)):null;}function _0x536b92(_0x26c080){return window[_0x11e6ae([0x61,0x74,0x6f,0x62])](_0x26c080[_0x11e6ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11e6ae([0x2b]))[_0x11e6ae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11e6ae([0x2f])));}function _0x287313(_0x5f25d0){let _0x447435=0x1505;function _0x5559c5(_0x19f1f9){for(let _0x2fba6a=0x0;_0x2fba6a<_0x19f1f9[_0x11e6ae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2fba6a++){const _0x2f2771=_0x19f1f9[_0x11e6ae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2fba6a);_0x447435=(_0x447435<<0x5)+_0x447435+_0x2f2771,_0x447435&=_0x447435;}}function _0x4a1f98(_0x15db39){Array[_0x11e6ae([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15db39)?_0x15db39[_0x11e6ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a1f98):_0x15db39&&typeof _0x15db39==_0x11e6ae([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11e6ae([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15db39)[_0x11e6ae([0x73,0x6f,0x72,0x74])]()[_0x11e6ae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5440a9,_0x43ed83])=>{_0x5559c5(_0x5440a9),_0x4a1f98(_0x43ed83);}):_0x5559c5(window[_0x11e6ae([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15db39));}return _0x4a1f98(_0x5f25d0),_0x447435>>>0x0;}function _0x4a6ac6(_0x98d106){return _0x98d106[_0x11e6ae([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11e6ae([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11e6ae([0x30]));}function _0x223054(_0x452956){return _0x452956[_0x11e6ae([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11e6ae([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11e6ae([0x6a,0x6f,0x69,0x6e])]('');}function _0xe585a9(_0x5e38b0){return _0x54faa8[_0x11e6ae([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11e6ae([0x68,0x61,0x73])](_0x5e38b0);}function _0x47d213(_0x1edd82){return _0x54faa8[_0x11e6ae([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11e6ae([0x67,0x65,0x74])](_0x1edd82);}function _0x32ef81(){}function _0x11e6ae(_0x1c776b){return _0x1c776b['map'](_0x4d8891=>String['fromCharCode'](_0x4d8891))['join']('');}_0x47dc7c(await _0x41e54d());}(this);}set['adapter'](_0x31e330){if(this['_adapter'])throw new _0x44e9b4('track-changes-adapter-already-set',this);this['_adapter']=_0x31e330;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2961d5=!0x1,toJSON:_0x813eb=!0x1}={}){const _0x1aad11=[];for(const _0xe3ae4f of this['_suggestions']['values']())_0x2961d5&&!_0xe3ae4f['isInContent']||_0x1aad11['push'](_0xe3ae4f);return _0x813eb?_0x1aad11['map'](_0x3ba217=>_0x3ba217['toJSON']()):_0x1aad11;}['getSuggestion'](_0x402228){const _0xf82e2b=this['_suggestions']['get'](_0x402228);if(!_0xf82e2b)throw new _0x44e9b4('track-changes-suggestion-not-found',this);return _0xf82e2b;}['hasSuggestion'](_0x1816cd){return this['_suggestions']['has'](_0x1816cd);}['addSuggestionData'](_0x4155cb){const {authorId:_0x25a2c7,id:_0x56eb40,originalSuggestionId:_0x53e099,attributes:_0x3188bd}=_0x4155cb,[_0x1ca950,_0x6ca28f]=_0x4155cb['type']['split'](':'),_0x421e3c=this['_suggestions']['get'](_0x56eb40)||this['_createSuggestion'](_0x1ca950,_0x6ca28f,_0x56eb40,_0x25a2c7,_0x3188bd,_0x53e099);if(this['_addThreadToSuggestion'](_0x421e3c),this['_checkSuggestionCorrectness'](_0x421e3c,_0x1ca950,_0x6ca28f||null,_0x25a2c7),_0x421e3c['createdAt']=_0x4155cb['createdAt'],_0x421e3c['_isDataLoaded']=!0x0,_0x3188bd&&_0x3188bd['@external']){const _0x1296e7=_0x3188bd['@external'],_0xf7a821=this['_getExternalAuthor'](_0x1296e7['authorName']);_0x421e3c['authoredAt']=_0x1296e7['createdAt'],_0x421e3c['author']=_0xf7a821,_0x421e3c['isExternal']=!0x0;}else _0x421e3c['authoredAt']=_0x4155cb['createdAt'];switch(_0x4155cb['data']&&(_0x421e3c['data']=_0x4155cb['data']),_0x4155cb['attributes']&&(_0x421e3c['attributes']=_0x4155cb['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x421e3c['_saved']=!0x0),this['_suggestionState']['get'](_0x421e3c)){case'notReady':this['_suggestionState']['set'](_0x421e3c,'dataReady');break;case'markerReady':_0x421e3c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x421e3c])),this['_refreshSuggestionsChain'](new Set([_0x421e3c])),this['_suggestionState']['set'](_0x421e3c,'ready'),this['fire']('suggestionLoaded',_0x421e3c)):this['_suggestionState']['set'](_0x421e3c,'removed');}return _0x421e3c;}['acceptSuggestion'](_0x2a5394){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1ad508 of _0x2a5394['getAllAdjacentSuggestions']())_0x1ad508['accept']();});});}['discardSuggestion'](_0x28f885){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4dfc33 of _0x28f885['getAllAdjacentSuggestions']())_0x4dfc33['discard']();});});}['enableCommand'](_0x1be5ca,_0x1f7144){const _0x33b6c1=this['editor']['commands']['get'](_0x1be5ca);if(!_0x33b6c1)throw new _0x44e9b4('track-changes-command-not-found',this,{'commandName':_0x1be5ca});if(this['_enabledCommands']['has'](_0x33b6c1))throw new _0x44e9b4('track-changes-enable-command-twice',this,{'commandName':_0x1be5ca});this['_enabledCommands']['add'](_0x33b6c1),_0x1f7144&&_0x33b6c1['on']('execute',(_0x52c38c,_0x418086)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x418086['length']>0x0&&_0x418086[_0x418086['length']-0x1]&&_0x418086[_0x418086['length']-0x1]['forceDefaultExecution']?_0x418086['pop']():(_0x52c38c['return']=_0x1f7144((..._0x572d37)=>_0x33b6c1['execute'](..._0x572d37,{'forceDefaultExecution':!0x0}),..._0x418086),_0x52c38c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x26b937){let _0x43b0a0,_0x34d2a9;const _0x5ad208=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x43b0a0=_0x26b937();}catch(_0x17adf3){_0x34d2a9=_0x17adf3;}return _0x5ad208||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x34d2a9&&_0x44e9b4['rethrowUnexpectedError'](_0x34d2a9,this),_0x43b0a0;}['markInsertion'](_0x39a9e7,_0x2d619f=null,_0x10f0bc={}){if(_0x39a9e7['isCollapsed'])return null;const _0x202e8b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x10f0bc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5e2869,meta:_0x1931ef}of this['_findSuggestions'](_0x39a9e7,'insertion'))if(_0x1931ef['isOwn']){if(!_0x1931ef['isNextTo']){if(_0x1931ef['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x5e2869,_0x10f0bc))continue;return _0x5e2869;}if(Xt(_0x5e2869,_0x10f0bc))return _0x5e2869;this['_breakSuggestionMarker'](_0x5e2869,_0x39a9e7['start'],_0x39a9e7['end']);break;}if(_0x2d619f==_0x5e2869['subType']&&Xt(_0x5e2869,_0x10f0bc)){const _0x521f9a=_0x5e2869['getFirstRange']();return _0x521f9a['start']['isEqual'](_0x39a9e7['end'])?this['_setSuggestionRange'](_0x5e2869,this['_model']['createRange'](_0x39a9e7['start'],_0x521f9a['end'])):this['_setSuggestionRange'](_0x5e2869,this['_model']['createRange'](_0x521f9a['start'],_0x39a9e7['end'])),_0x5e2869;}}const _0x47cf23=_0x5cef89(),_0x3038f1=_0x202e8b['id'],_0x3ac62d=_0x2d619f?'insertion:'+_0x2d619f:'insertion',_0x1db8dd=this['_setSuggestionData']({'id':_0x47cf23,'type':_0x3ac62d,'createdAt':new Date(),'authorId':_0x3038f1,'attributes':_0x10f0bc});return this['_addSuggestionMarker'](_0x3ac62d,_0x47cf23,_0x3038f1,_0x39a9e7),_0x1db8dd;}['markMultiRangeInsertion'](_0x83c621,_0x276758='multi',_0x3acebf={}){const _0x304dec=this['editor']['plugins']['get']('Users')['me'],_0x4a0884=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x276758,'join');this['_trackingSessionId']&&(_0x3acebf['trackingSessionId']=this['_trackingSessionId']);for(const _0x527307 of this['getSuggestions']())if(_0x527307['author']['id']==_0x304dec['id']&&'insertion'==_0x527307['type']&&_0x527307['subType']==_0x276758&&Xt(_0x527307,_0x3acebf)&&(_0x4a0884(_0x527307['getRanges'](),_0x83c621)||_0x4a0884(_0x83c621,_0x527307['getRanges']()))){for(const _0x465836 of _0x83c621)_0x527307['addRange'](_0x465836);return _0x527307;}for(const {suggestion:_0x570318,meta:_0x32346d}of this['_findSuggestions'](_0x83c621,'insertion')){if(!_0x32346d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x32346d['containsRangeInObject'])continue;if(!Xt(_0x570318,_0x3acebf))continue;let _0xcb32c9=!0x0;for(const _0xfee7a6 of _0x570318['getRanges']())for(const _0x13e04f of _0x83c621)if(!_0xfee7a6['containsRange'](_0x13e04f)){_0xcb32c9=!0x1;break;}if(_0xcb32c9)return _0x570318;}const _0x15b81c=_0x5cef89(),_0x105d4a=_0x304dec['id'],_0x80b556='insertion:'+_0x276758,_0x612dac=this['_setSuggestionData']({'id':_0x15b81c,'type':_0x80b556,'createdAt':new Date(),'authorId':_0x105d4a,'attributes':_0x3acebf});for(const _0x4fbf69 of _0x83c621)this['_addSuggestionMarker'](_0x80b556,_0x15b81c,_0x105d4a,_0x4fbf69,T['getMultiRangeId']());return _0x612dac;}['markInlineFormat'](_0x4cfd0f,_0x5b702e,_0x29243e=null,_0x59a7d7={}){if(_0x29243e=_0x29243e||Lt(_0x5b702e),_0x4cfd0f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x59a7d7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x507f5c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29243e,'accept');return this['forceDefaultExecution'](()=>_0x507f5c([_0x4cfd0f],_0x5b702e,_0x59a7d7)),null;}const _0xc3714d=this['editor']['plugins']['get']('Users')['me'],_0x2e1af1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x931799,meta:_0x2cda9d}of this['_findSuggestions'](_0x4cfd0f,'insertion'))_0x2cda9d['isOwn']&&!_0x2cda9d['isInsideObject']&&_0x2e1af1['push'](..._0x931799['getRanges']());}const _0x2fd66d=function(_0x176cd2,_0x48a424){const _0x156918=[];for(const _0xd9fba2 of _0x48a424){const _0x4e5505=_0x176cd2['getIntersection'](_0xd9fba2);_0x4e5505&&_0x156918['push'](_0x4e5505);}return _0x156918;}(_0x4cfd0f,_0x2e1af1),_0x41e182=function(_0x29e6b9,_0x486bad){const _0x6a6b8=[_0x29e6b9];for(const _0x454ce2 of _0x486bad){let _0x5f08d4=0x0;for(;_0x5f08d4<_0x6a6b8['length'];){const _0x20728b=_0x6a6b8[_0x5f08d4]['getDifference'](_0x454ce2);_0x6a6b8['splice'](_0x5f08d4,0x1,..._0x20728b),_0x5f08d4+=_0x20728b['length'];}}return _0x6a6b8;}(_0x4cfd0f,_0x2e1af1);_0x2fd66d['length']&&this['_model']['change'](()=>{for(const _0x60f5ae of _0x2fd66d){const _0x3b66ee=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29243e,'accept');this['forceDefaultExecution'](()=>_0x3b66ee([_0x60f5ae],_0x5b702e,_0x59a7d7));}});for(const _0x94ee92 of _0x41e182){let _0x533df4=null,_0x1fd692=_0x94ee92['start'],_0x4a4ec3=_0x94ee92['end'];for(const {suggestion:_0x21ac01,meta:_0x259263}of this['_findSuggestions'](_0x94ee92,'formatInline')){if(!_0x259263['isOwn'])continue;if(_0x21ac01['subType']!=_0x29243e)continue;if(!Xt(_0x21ac01,_0x59a7d7))continue;const _0x980487=_0x21ac01['getFirstRange']();if(_0x980487['containsRange'](_0x94ee92,!0x0))return null;_0x1fd692=_0x1fd692['isBefore'](_0x980487['start'])?_0x1fd692:_0x980487['start'],_0x4a4ec3=_0x4a4ec3['isAfter'](_0x980487['end'])?_0x4a4ec3:_0x980487['end'],_0x533df4?_0x980487['start']['isBefore'](_0x533df4['getFirstRange']()['start'])?(_0x533df4['removeMarkers'](),_0x533df4=_0x21ac01):_0x21ac01['removeMarkers']():_0x533df4=_0x21ac01;}const _0x916749=this['_model']['createRange'](_0x1fd692,_0x4a4ec3);if(_0x533df4)this['_setSuggestionRange'](_0x533df4,_0x916749);else{const _0x131535=_0x5cef89(),_0x23b80a=_0xc3714d['id'];this['_setSuggestionData']({'id':_0x131535,'type':'formatInline:'+_0x29243e,'data':_0x5b702e,'createdAt':new Date(),'authorId':_0x23b80a,'attributes':_0x59a7d7}),this['_addSuggestionMarker']('formatInline:'+_0x29243e,_0x131535,_0x23b80a,_0x916749);}}return null;}['markBlockFormat'](_0x5825c0,_0x29a3b1,_0x1128cc=[],_0x3017bf=null,_0x47e6fd={}){_0x29a3b1['formatGroupId']||(_0x29a3b1['formatGroupId']=_0x29a3b1['commandName']),_0x29a3b1['multipleBlocks']=_0x5825c0['is']('range'),_0x3017bf=_0x3017bf||Lt(_0x29a3b1);const _0x46f1de=_0x1128cc['map'](_0x2952c8=>zt(_0x2952c8,this['_model'])),_0x60625e=_0x5825c0['is']('range')?_0x5825c0:zt(_0x5825c0,this['_model']);if(this['_trackingSessionId']&&(_0x47e6fd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5d52f0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3017bf,'accept');return this['forceDefaultExecution'](()=>_0x5d52f0([_0x60625e],_0x29a3b1,_0x47e6fd)),null;}_0x46f1de['push'](_0x60625e);let _0x904164=!0x0;for(const _0x1f4f04 of _0x46f1de)if(!this['_rangeIsInLocalUserInsertion'](_0x1f4f04)){_0x904164=!0x1;break;}if(_0x904164&&'always'!==this['_trackFormatChanges']){const _0x8cc23e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3017bf,'accept');return this['forceDefaultExecution'](()=>_0x8cc23e([_0x60625e],_0x29a3b1,_0x47e6fd)),null;}let _0x383442=null,_0x51d512=_0x60625e['start'],_0x4f351e=_0x60625e['end'];for(const {suggestion:_0x2e4b47,meta:_0x248b06}of this['_findSuggestions'](_0x60625e,'formatBlock')){if(!_0x248b06['isOwn'])continue;if(_0x248b06['isNextTo']||_0x248b06['containsRangeInObject']||_0x248b06['isInsideObject'])continue;if(_0x2e4b47['data']['formatGroupId']!=_0x29a3b1['formatGroupId'])continue;if(!Xt(_0x2e4b47,_0x47e6fd))continue;const _0x3b0cfc=_0x2e4b47['getFirstRange']();if(_0x2e4b47['subType']==_0x3017bf){if(_0x3b0cfc['containsRange'](_0x60625e,!0x0))return null;_0x51d512=_0x51d512['isBefore'](_0x3b0cfc['start'])?_0x51d512:_0x3b0cfc['start'],_0x4f351e=_0x4f351e['isAfter'](_0x3b0cfc['end'])?_0x4f351e:_0x3b0cfc['end'],_0x383442?_0x3b0cfc['start']['isBefore'](_0x383442['getFirstRange']()['start'])?(_0x383442['removeMarkers'](),_0x383442=_0x2e4b47):_0x2e4b47['removeMarkers']():_0x383442=_0x2e4b47;}else{const _0x284271=_0x60625e['getIntersection'](_0x3b0cfc);this['_cutOutSuggestionMarker'](_0x2e4b47,_0x284271);}}const _0x50bec7=this['editor']['plugins']['get']('Users')['me'],_0x57d88d=_0x5cef89(),_0x12a7c7=_0x50bec7['id'];if(_0x383442)return this['_setSuggestionRange'](_0x383442,this['_model']['createRange'](_0x51d512,_0x4f351e)),_0x383442;{const _0x155c5d=this['_setSuggestionData']({'id':_0x57d88d,'type':'formatBlock:'+_0x3017bf,'data':_0x29a3b1,'createdAt':new Date(),'authorId':_0x12a7c7,'attributes':_0x47e6fd});return this['_addSuggestionMarker']('formatBlock:'+_0x3017bf,_0x57d88d,_0x12a7c7,this['_model']['createRange'](_0x51d512,_0x4f351e)),_0x155c5d;}}['markMultiRangeBlockFormat'](_0x55497c,_0x795e35,_0x14a5b9=[],_0x3ee959=null,_0x305e44={}){_0x795e35['formatGroupId']||(_0x795e35['formatGroupId']=_0x795e35['commandName']);const _0x13c0fd=_0x55497c[0x0];_0x795e35['multipleBlocks']=_0x13c0fd['is']('range'),_0x3ee959=_0x3ee959||Lt(_0x795e35);const _0x565ce5=_0x14a5b9['map'](_0x50b64a=>zt(_0x50b64a,this['_model'])),_0x37db0e=_0x13c0fd['is']('range')?_0x55497c:_0x55497c['map'](_0x17a0d8=>zt(_0x17a0d8,this['_model']));if(this['_trackingSessionId']&&(_0x305e44['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x530dc9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ee959,'accept');return this['forceDefaultExecution'](()=>_0x530dc9(_0x37db0e,_0x795e35,_0x305e44)),null;}_0x565ce5['push'](..._0x37db0e);let _0x25ef4e=!0x0;for(const _0x56a34c of _0x565ce5)if(!this['_rangeIsInLocalUserInsertion'](_0x56a34c)){_0x25ef4e=!0x1;break;}if(_0x25ef4e&&'always'!==this['_trackFormatChanges']){const _0x2eb4a5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ee959,'accept');return this['forceDefaultExecution'](()=>_0x2eb4a5(_0x37db0e,_0x795e35,_0x305e44)),null;}const _0x35df78=this['editor']['plugins']['get']('Users')['me'];for(const _0x40b424 of this['getSuggestions']()){const _0x2aeb6c=_0x40b424['data'];if(_0x40b424['author']['id']!=_0x35df78['id'])continue;if('formatBlock'!=_0x40b424['type']||_0x2aeb6c['formatGroupId']!=_0x795e35['formatGroupId'])continue;if(!Xt(_0x40b424,_0x305e44))continue;const _0x578fba=_0x40b424['subType']==_0x3ee959;for(let _0x26dcab=0x0;_0x26dcab<_0x37db0e['length'];_0x26dcab++){const _0x48282e=_0x37db0e[_0x26dcab];for(const _0x2f84af of _0x40b424['getMarkers']()){const _0x1b0243=_0x2f84af['getRange']();if(_0x48282e['isEqual'](_0x1b0243)){_0x578fba?(_0x37db0e['splice'](_0x26dcab,0x1),_0x26dcab--):_0x40b424['removeMarker'](_0x2f84af['name']);break;}}}}if(0x0==_0x37db0e['length'])return null;const _0xa75241=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ee959,'join');for(const _0x53bda6 of this['getSuggestions']()){const _0x2968b9=_0x53bda6['data'];if(_0x53bda6['author']['id']==_0x35df78['id']&&('formatBlock'==_0x53bda6['type']&&_0x2968b9['formatGroupId']==_0x795e35['formatGroupId']&&_0x53bda6['subType']==_0x3ee959&&Xt(_0x53bda6,_0x305e44)&&(_0xa75241(_0x53bda6['getRanges'](),_0x37db0e)||_0xa75241(_0x37db0e,_0x53bda6['getRanges']())))){for(const _0x28a5df of _0x37db0e)_0x53bda6['addRange'](_0x28a5df);return _0x53bda6;}}const _0x7ff113=_0x5cef89(),_0x45c67f=_0x35df78['id'],_0x347ff9='formatBlock:'+_0x3ee959,_0x115f56=this['_setSuggestionData']({'id':_0x7ff113,'type':_0x347ff9,'data':_0x795e35,'createdAt':new Date(),'authorId':_0x45c67f,'attributes':_0x305e44});for(const _0x370e6f of _0x37db0e)this['_addSuggestionMarker'](_0x347ff9,_0x7ff113,_0x45c67f,_0x370e6f,T['getMultiRangeId']());return _0x115f56;}['markDeletion'](_0x11ae65,_0x570887=null,_0x135cb6={}){if(_0x11ae65['isCollapsed'])return null;const _0x1a22f0=this['editor']['plugins']['get']('Users')['me'],_0x16ca54=new _0x2e68e7(_0x11ae65['start'],_0x11ae65['end']);this['_trackingSessionId']&&(_0x135cb6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x20f046,meta:_0x1d6e89}of this['_findSuggestions'](_0x16ca54,'insertion'))if(_0x1d6e89['isOwn']&&!_0x1d6e89['isNextTo']){if(_0x20f046['isMultiRange']){const _0x51a1c7=_0x20f046['getRanges']()['filter'](_0x177ac9=>'$graveyard'!=_0x177ac9['root']['rootName']);_0x51a1c7['every'](_0x57b051=>_0x16ca54['containsRange'](_0x57b051,!0x0))&&_0x20f046['discard']();if(_0x51a1c7['some'](_0x20328f=>_0x20328f['containsRange'](_0x16ca54,!0x0))){const _0x3e1688=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x570887,'accept');return this['forceDefaultExecution'](()=>_0x3e1688([_0x16ca54],null,_0x135cb6)),null;}}else{const _0x50eddc=_0x16ca54['getIntersection'](_0x20f046['getFirstRange']());null!==_0x50eddc&&_0x20f046['_onDiscard']([_0x50eddc],null,_0x135cb6);}}if(_0x16ca54['detach'](),_0x16ca54['isCollapsed']||'$graveyard'==_0x16ca54['root']['rootName'])return null;let _0x42e616=null,_0x4a789e=_0x16ca54['start'],_0x293866=_0x16ca54['end'];const _0x381ef6=this['_findSuggestions'](_0x16ca54,'deletion');for(const {suggestion:_0x5e8303,meta:_0x541d8a}of _0x381ef6){const _0x2070b2=this['_model']['createRange'](_0x4a789e,_0x293866);if(_0x541d8a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x541d8a['containsRangeInObject']&&!_0x541d8a['isInsideObject'])){if(_0x5e8303['isMultiRange']){if(!Xt(_0x5e8303,_0x135cb6))continue;let _0xf79568=!0x0;for(const _0x27ae71 of _0x5e8303['getRanges']()){if(_0x27ae71['containsRange'](_0x2070b2,!0x0))return _0x5e8303;_0x2070b2['containsRange'](_0x27ae71)||(_0xf79568=!0x1);}_0xf79568&&_0x5e8303['discard']();}else{const _0x3a98cb=_0x5e8303['getFirstRange']();if(_0x3a98cb['containsRange'](_0x2070b2,!0x0))return _0x5e8303;if(!Xt(_0x5e8303,_0x135cb6)){_0x2070b2['containsRange'](_0x3a98cb)?_0x5e8303['removeMarkers']():_0x3a98cb['containsPosition'](_0x4a789e)?_0x4a789e=_0x3a98cb['end']:_0x3a98cb['containsPosition'](_0x293866)&&(_0x293866=_0x3a98cb['start']);continue;}_0x4a789e=_0x4a789e['isBefore'](_0x3a98cb['start'])?_0x4a789e:_0x3a98cb['start'],_0x293866=_0x293866['isAfter'](_0x3a98cb['end'])?_0x293866:_0x3a98cb['end'],_0x135cb6=Object['assign']({},_0x5e8303['attributes']),_0x42e616?_0x3a98cb['start']['isBefore'](_0x42e616['getFirstRange']()['start'])?(_0x42e616['removeMarkers'](),_0x42e616=_0x5e8303):_0x5e8303['removeMarkers']():_0x42e616=_0x5e8303;}}}if(_0x42e616)return this['_setSuggestionRange'](_0x42e616,this['_model']['createRange'](_0x4a789e,_0x293866)),_0x42e616;{const _0x129d5b=_0x5cef89(),_0x426362=this['_model']['createRange'](_0x4a789e,_0x293866),_0xd4906c=_0x1a22f0['id'],_0x6d2d3=_0x570887?'deletion:'+_0x570887:'deletion',_0x497115=this['_setSuggestionData']({'id':_0x129d5b,'type':_0x6d2d3,'createdAt':new Date(),'authorId':_0xd4906c,'attributes':_0x135cb6});return this['_addSuggestionMarker'](_0x6d2d3,_0x129d5b,_0xd4906c,_0x426362),_0x497115;}}['markMultiRangeDeletion'](_0x2560b8,_0x27e503='multi',_0x400bb2={}){const _0x19ee5a=this['editor']['plugins']['get']('Users')['me'],_0x426d04=_0x2560b8['map'](_0x5b4207=>new _0x2e68e7(_0x5b4207['start'],_0x5b4207['end'])),_0x37eeb8=new Set();this['_trackingSessionId']&&(_0x400bb2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1bb5c6,meta:_0x24472e}of this['_findSuggestions'](_0x426d04,'insertion'))_0x24472e['isOwn']&&!_0x24472e['isNextTo']&&_0x37eeb8['add'](_0x1bb5c6);for(const _0x58fb39 of _0x37eeb8)if(_0x58fb39['isMultiRange']){const _0x18b540=_0x58fb39['getRanges']();(!_0x58fb39['attributes']||!_0x58fb39['attributes']['skipNestingCheck'])&&(_0x18b540['every'](_0x54ad99=>_0x426d04['some'](_0x18e744=>_0x18e744['containsRange'](_0x54ad99,!0x0)))&&_0x58fb39['discard']());if(_0x426d04['every'](_0x72bd8a=>_0x18b540['some'](_0x170639=>_0x170639['containsRange'](_0x72bd8a,!0x0)))){const _0x1744bb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27e503,'accept');return this['forceDefaultExecution'](()=>_0x1744bb(_0x2560b8,null,_0x400bb2)),null;}}else{const _0xddf988=_0x58fb39['getFirstRange']();_0x426d04['some'](_0xf973b3=>_0xf973b3['containsRange'](_0xddf988,!0x0))&&_0x58fb39['discard']();if(_0x426d04['every'](_0x28c935=>_0xddf988['containsRange'](_0x28c935,!0x0))){const _0x33079d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27e503,'accept');return this['forceDefaultExecution'](()=>_0x33079d(_0x426d04,null,_0x400bb2)),null;}}const _0x418a90=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27e503,'join');let _0x20c345=null;for(const _0x3c6ea6 of this['getSuggestions']())if(_0x3c6ea6['author']['id']==_0x19ee5a['id']&&_0x3c6ea6['isInContent']&&'deletion'==_0x3c6ea6['type']&&_0x3c6ea6['subType']==_0x27e503&&Xt(_0x3c6ea6,_0x400bb2)&&(_0x418a90(_0x3c6ea6['getRanges'](),_0x426d04)||_0x418a90(_0x426d04,_0x3c6ea6['getRanges']()))){if(_0x20c345){if(_0x3c6ea6['commentThread']&&_0x3c6ea6['commentThread']['length'])continue;for(const _0xd8e1ce of _0x3c6ea6['getRanges']())_0x20c345['isIntersectingWithRange'](_0xd8e1ce)||_0x20c345['addRange'](_0xd8e1ce);_0x3c6ea6['removeMarkers']();}else{_0x20c345=_0x3c6ea6;for(const _0x584ea4 of _0x426d04)_0x3c6ea6['isIntersectingWithRange'](_0x584ea4)||_0x3c6ea6['addRange'](_0x584ea4);}}if(_0x20c345)return _0x20c345;_0x37eeb8['clear']();for(const {suggestion:_0x38bbb1,meta:_0x47468a}of this['_findSuggestions'](_0x426d04,'deletion'))_0x47468a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x47468a['containsRangeInObject']&&!_0x47468a['isInsideObject'])&&Xt(_0x38bbb1,_0x400bb2)&&_0x37eeb8['add'](_0x38bbb1);for(const _0x138847 of _0x37eeb8){const _0x5d3a92=_0x138847['getRanges']();if(!_0x400bb2||!_0x400bb2['skipNestingCheck']){if(_0x426d04['every'](_0x12815b=>_0x5d3a92['some'](_0x40d8bf=>_0x40d8bf['containsRange'](_0x12815b,!0x0))))return _0x138847;}(!_0x138847['attributes']||!_0x138847['attributes']['skipNestingCheck'])&&(_0x5d3a92['every'](_0x51ce98=>_0x426d04['some'](_0x33940b=>_0x33940b['containsRange'](_0x51ce98,!0x0)))&&_0x138847['discard']());}const _0x421aed=_0x5cef89(),_0x158bc1=_0x19ee5a['id'],_0x3c9253='deletion:'+_0x27e503,_0x42484e=this['_setSuggestionData']({'id':_0x421aed,'type':_0x3c9253,'createdAt':new Date(),'authorId':_0x158bc1,'attributes':_0x400bb2});for(const _0x5f09e5 of _0x426d04)_0x5f09e5['detach'](),_0x5f09e5['isCollapsed']||'$graveyard'==_0x5f09e5['root']['rootName']||this['_addSuggestionMarker'](_0x3c9253,_0x421aed,_0x158bc1,_0x5f09e5,T['getMultiRangeId']());return _0x42484e;}['markAttributeChange'](_0x524f71,_0x474c01,_0x57ac8d,_0xf8933e,_0x48df41){if(_0x524f71['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x40f084=this['editor']['plugins']['get']('Users')['me']['id'],_0x44f547=Array['from'](this['_suggestions']['values']())['filter'](_0x1ce291=>'attribute'==_0x1ce291['type']&&_0x1ce291['data']['key']==_0x474c01&&_0x1ce291['isIntersectingWithRange'](_0x524f71));if(this['_trackingSessionId']&&(_0x48df41['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4dc9ce=this['_findSuggestions'](_0x524f71,'insertion')['filter'](({meta:_0x1009c3})=>_0x1009c3['isOwn']&&!_0x1009c3['isInsideObject']&&!_0x1009c3['isNextTo'])['map'](({suggestion:_0x40105f})=>_0x40105f);_0x44f547['unshift'](..._0x4dc9ce);}const _0x7d5aab=new Map([[_0x524f71,_0x57ac8d]]);for(const _0x1a000d of _0x44f547){const _0x39f99d='attribute'==_0x1a000d['type']?_0x1a000d['data']['oldValue']:void 0x0,_0x231723=_0x1a000d['getFirstRange'](),_0x3a2a37=Array['from'](_0x7d5aab['keys']())['find'](_0xe26a46=>_0xe26a46['isIntersecting'](_0x231723));if(!_0x3a2a37)continue;const _0x52a867=_0x3a2a37['getDifference'](_0x231723);this['_isBlockAttribute'](_0x474c01)&&'insertion'==_0x1a000d['type']&&0x0!=_0x52a867['length']||(_0x7d5aab['delete'](_0x3a2a37),_0x52a867['forEach'](_0x6ba4a7=>{_0x7d5aab['set'](_0x6ba4a7,_0x57ac8d);}),'insertion'!=_0x1a000d['type']&&_0x39f99d!=_0xf8933e&&_0x7d5aab['set'](_0x3a2a37['getIntersection'](_0x231723),_0x39f99d));}const _0x2a21cd=[];for(const [_0x146735,_0x1751a5]of _0x7d5aab){const _0x3e91d0=_0x5cef89(),_0x3141a5={'key':_0x474c01,'oldValue':_0x1751a5,'newValue':_0xf8933e};_0x474c01['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':_0x474c01});const _0x3c480d=('attribute:'+(_0x474c01+'|'+Lt({'newValue':_0xf8933e})))['substring'](0x0,0x3c),_0x1c051b=this['_setSuggestionData']({'id':_0x3e91d0,'type':_0x3c480d,'data':_0x3141a5,'createdAt':new Date(),'authorId':_0x40f084,'attributes':_0x48df41});_0x2a21cd['push'](_0x1c051b),this['_addSuggestionMarker'](_0x3c480d,_0x3e91d0,_0x40f084,_0x146735);}return _0x2a21cd;}['enableDefaultAttributesIntegration'](_0x344027){this['enableCommand'](_0x344027,(_0x2f7661,..._0x286055)=>{this['recordAttributeChanges'](()=>{_0x2f7661(..._0x286055);});});}['registerBlockAttribute'](_0x2b5f3e){this['_blockAttributeKeys']['add'](_0x2b5f3e);}['registerInlineAttribute'](_0x383917){this['_inlineAttributeKeys']['add'](_0x383917);}['startTrackingSession'](_0x9b8e75){return this['_trackingSessionId']=void 0x0!==_0x9b8e75?_0x9b8e75:_0x5cef89(),this['_trackingSessionId'];}['_getAttributeKey'](_0x37ab05){return'attribute'==_0x37ab05['type']?_0x37ab05['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x49a063,_0x89effc){const _0x4260e4=_0x49a063['getFirstMarker']();this['_model']['change'](_0x22c6a7=>{_0x22c6a7['updateMarker'](_0x4260e4,{'range':_0x89effc});});}['_addThreadToSuggestion'](_0x407686){const _0x3fed29=_0x407686['id'],_0x15ee38=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3fed29)||this['_commentsRepository']['addCommentThread']({'channelId':_0x15ee38,'threadId':_0x3fed29,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27910d=this['_commentsRepository']['getCommentThread'](_0x3fed29);_0x27910d['unbind']('isRemovable'),_0x27910d['isRemovable']=!0x1,_0x407686['commentThread']=_0x27910d;}['_checkSuggestionCorrectness'](_0x4bb300,_0x2b1b5a,_0x5cd6cd,_0x39292f){if(_0x4bb300['type']!=_0x2b1b5a||_0x4bb300['subType']!=_0x5cd6cd||_0x4bb300['creator']['id']!=_0x39292f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x44e9b4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2e2350,_0x29714b){const _0x190464=_0x2e2350['getFirstRange']();if(_0x29714b['isEqual'](_0x190464))_0x2e2350['removeMarkers']();else{if(_0x190464['containsRange'](_0x29714b)){const _0x1232c1=this['_model']['createPositionAt'](_0x29714b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2e2350,this['_model']['createRange'](_0x190464['start'],_0x1232c1));const _0xb78366=_0x5cef89(),_0x23611d=_0x2e2350['creator']['id'],_0x5aec5b=_0x2e2350['type']+':'+_0x2e2350['subType'];this['_setSuggestionData']({'id':_0xb78366,'type':_0x5aec5b,'createdAt':new Date(),'authorId':_0x23611d,'data':_0x2e2350['data'],'attributes':_0x2e2350['attributes']});const _0x3b8184=this['_model']['createPositionAt'](_0x29714b['end']['parent'],'after'),_0x4c9b86=this['_model']['createRange'](_0x3b8184,_0x190464['end']);this['_addSuggestionMarker'](_0x5aec5b,_0xb78366,_0x23611d,_0x4c9b86);}else{if(_0x190464['containsPosition'](_0x29714b['start'])){const _0x51f32c=this['_model']['createPositionAt'](_0x29714b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2e2350,this['_model']['createRange'](_0x190464['start'],_0x51f32c));}else{const _0x2df0e8=this['_model']['createPositionAt'](_0x29714b['end']['parent'],'after');this['_setSuggestionRange'](_0x2e2350,this['_model']['createRange'](_0x2df0e8,_0x190464['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3df46b){for(const {suggestion:_0x473208,meta:_0x3db387}of this['_findSuggestions'](_0x3df46b,'insertion')){if(!_0x3db387['isOwn'])continue;const _0x46ca9b=_0x473208['getRanges']();for(const _0xdf3f29 of _0x46ca9b)if(!_0x3df46b['getDifference'](_0xdf3f29)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3335ef){const _0x484f57=this['editor']['plugins']['get']('Users')['getUser'](_0x3335ef);if(!_0x484f57)throw new _0x44e9b4('track-changes-user-not-found',this);return _0x484f57;}['_getExternalAuthor'](_0x45a11c){const _0x11103f=this['editor']['plugins']['get']('Users'),_0x1b3f5b=_0x4a9c7a('external:'+_0x45a11c),_0x28b00f=_0x11103f['getUser'](_0x1b3f5b);return _0x28b00f||_0x11103f['addUser']({'id':_0x1b3f5b,'name':_0x45a11c});}['_createSuggestion'](_0x8fab85,_0x3745d6,_0x4c44db,_0x196d00,_0x1aa568,_0xb38207){const _0x1b661c=this['_getAuthorFromId'](_0x196d00),_0x765aab=this['_suggestionFactory']['buildSuggestion'](_0x8fab85,_0x3745d6,_0x4c44db,_0x1b661c,_0x1aa568,_0x12efca=>{this['_updateSuggestionData'](_0x4c44db,{'attributes':_0x12efca});const _0x58e41e=this['getSuggestion'](_0x4c44db);this['_joinWithAdjacentSuggestions'](new Set([_0x58e41e])),this['_refreshSuggestionsChain'](new Set([_0x58e41e]));},_0xb38207);return this['listenTo'](_0x765aab,'accept',()=>{this['_updateSuggestionData'](_0x4c44db,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x765aab,'discard',()=>{this['_updateSuggestionData'](_0x4c44db,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c44db,_0x765aab),this['_suggestionState']['set'](_0x765aab,'notReady'),_0x765aab;}['_splitMarkerName'](_0x99a3a0){const _0x5c94d9=_0x99a3a0['split'](':');return{'group':_0x5c94d9[0x0],'type':_0x5c94d9[0x1],'subType':_0x5c94d9['length']>=0x5?_0x5c94d9[0x2]:null,'id':_0x5c94d9['length']<0x5?_0x5c94d9[0x2]:_0x5c94d9[0x3],'authorId':_0x5c94d9['length']<0x5?_0x5c94d9[0x3]:_0x5c94d9[0x4],'markerCount':0x6==_0x5c94d9['length']?_0x5c94d9[0x5]:null};}['_breakSuggestionMarker'](_0x5e98f6,_0x282c22,_0x44faf8){const _0x30a4a3=_0x5e98f6['getFirstRange'](),_0x12f223=_0x30a4a3['start'],_0x2bbc83=_0x30a4a3['end'];this['_setSuggestionRange'](_0x5e98f6,this['_model']['createRange'](_0x12f223,_0x282c22));const _0x39cb35=_0x5cef89(),_0x2646fb=_0x5e98f6['creator']['id'],_0x33b59a=_0x5e98f6['type']+(_0x5e98f6['subType']?':'+_0x5e98f6['subType']:'');this['_setSuggestionData']({'id':_0x39cb35,'type':_0x33b59a,'createdAt':new Date(),'authorId':_0x2646fb,'originalSuggestionId':_0x5e98f6['_originalSuggestionId']||_0x5e98f6['id'],'attributes':_0x5e98f6['attributes'],'data':_0x5e98f6['data']});const _0x2f30b0=this['_getAttributeKey'](_0x5e98f6);('formatBlock'==_0x5e98f6['type']||_0x2f30b0&&this['_isBlockAttribute'](_0x2f30b0))&&(_0x44faf8=this['_model']['createPositionBefore'](_0x44faf8['parent'])),this['_addSuggestionMarker'](_0x33b59a,_0x39cb35,_0x2646fb,this['_model']['createRange'](_0x44faf8,_0x2bbc83));}['_findSuggestions'](_0x1ccd2a,_0xcb9916=null){const _0x4981c6=[],_0x237e66=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1ccd2a)||(_0x1ccd2a=[_0x1ccd2a]);for(const _0x3f3afe of this['getSuggestions']()){if(!_0x3f3afe['isInContent'])continue;if(_0xcb9916&&_0x3f3afe['type']!=_0xcb9916)continue;let _0x13a40e=!0x1;for(const _0x1fe40f of _0x3f3afe['getRanges']()){for(const _0x2d6c5d of _0x1ccd2a){const _0x264d14=_0x2d6c5d['start']['isEqual'](_0x1fe40f['end'])||_0x2d6c5d['end']['isEqual'](_0x1fe40f['start']);if(_0x264d14||_0x2d6c5d['getIntersection'](_0x1fe40f)){const _0x4d4719=_0x2d6c5d['containsRange'](_0x1fe40f)&&Ft(this['_model']['schema'],_0x1fe40f['start'],_0x2d6c5d),_0x253bf4=_0x1fe40f['containsRange'](_0x2d6c5d)&&Ft(this['_model']['schema'],_0x2d6c5d['start'],_0x1fe40f);_0x4981c6['push']({'suggestion':_0x3f3afe,'meta':{'isOwn':_0x237e66==_0x3f3afe['author'],'isNextTo':_0x264d14,'isInsideObject':_0x4d4719,'containsRangeInObject':_0x253bf4}}),_0x13a40e=!0x0;break;}}if(_0x13a40e)break;}}return _0x4981c6;}['_addSuggestionMarker'](_0x594d76,_0x2b47a5,_0x6314c2,_0x44101a,_0xddb5ef){this['_model']['change'](_0x5897ff=>{let _0x4b97af='suggestion:'+_0x594d76+':'+_0x2b47a5+':'+_0x6314c2;_0xddb5ef&&(_0x4b97af=_0x4b97af+':'+_0xddb5ef),_0x5897ff['addMarker'](_0x4b97af,{'range':_0x44101a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x32f5aa){const _0x2693f6=_0x32f5aa['previous'],_0x3819ee=_0x32f5aa['next'];_0x32f5aa['previous']=null,_0x32f5aa['next']=null,null!=_0x2693f6&&_0x2693f6['next']==_0x32f5aa&&(_0x2693f6['next']=_0x3819ee),null!=_0x3819ee&&_0x3819ee['previous']==_0x32f5aa&&(_0x3819ee['previous']=_0x2693f6),'ready'==this['_suggestionState']['get'](_0x32f5aa)&&(this['_suggestionState']['set'](_0x32f5aa,'removed'),this['fire']('suggestionUnloaded',_0x32f5aa,_0x2693f6,_0x3819ee));}['_setSuggestionData'](_0x38c72a){const _0x43be76=_0x38c72a['id'],_0x33df79=this['addSuggestionData'](_0x38c72a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x454d06=this['editor']['plugins']['get']('PendingActions'),_0x1bafb0=_0x33df79['hasComments'],_0x33d77f=_0x33df79['subType']?_0x33df79['type']+':'+_0x33df79['subType']:_0x33df79['type'],_0x4f2ad1=this['editor']['locale'],_0x313833=_0x454d06['add'](o(_0x4f2ad1,'PENDING_ACTION_SUGGESTION')),_0x402757={'id':_0x43be76,'type':_0x33d77f,'hasComments':_0x1bafb0,'data':_0x38c72a['data']||null,'originalSuggestionId':_0x38c72a['originalSuggestionId']||null,'attributes':_0x33df79['attributes']};this['_adapter']['addSuggestion'](_0x402757)['then'](_0x4d3661=>{_0x33df79['_saved']=!0x0,_0x454d06['remove'](_0x313833),_0x4d3661&&_0x4d3661['createdAt']&&(this['_suggestions']['get'](_0x43be76)['createdAt']=_0x4d3661['createdAt']);})['catch'](_0x2508a5=>{throw _0x2d23a2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x33df79['discard']();}),_0x33df79['stopListening'](),this['_suggestions']['delete'](_0x33df79['id']),this['_suggestionState']['delete'](_0x33df79),_0x2508a5;});}return _0x33df79;}['_isBlockAttribute'](_0x1b9e85){return this['_blockAttributeKeys']['has'](_0x1b9e85);}['_isInlineAttribute'](_0x395915){return this['_inlineAttributeKeys']['has'](_0x395915);}['_updateSuggestionData'](_0x126593,_0xd82bc6){const _0x1cd432=this['editor']['plugins']['get']('PendingActions'),_0x58abb2=this['getSuggestion'](_0x126593);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x58abb2['_saved']){const _0x45a761=_0x1cd432['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x126593,_0xd82bc6)['then'](()=>{_0x1cd432['remove'](_0x45a761);});}else _0x58abb2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x126593,_0xd82bc6);});}}['_getSuggestionData'](_0x4a4fbd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x44e9b4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4a4fbd);}['_handleNewSuggestionMarker'](_0x36170c){const {id:_0x3c0746,type:_0x250e5,subType:_0x4b12c1,authorId:_0x57f5e4}=this['_splitMarkerName'](_0x36170c),_0x1e1df1=this['_suggestions']['get'](_0x3c0746)||this['_createSuggestion'](_0x250e5,_0x4b12c1,_0x3c0746,_0x57f5e4,{});switch(this['_checkSuggestionCorrectness'](_0x1e1df1,_0x250e5,_0x4b12c1,_0x57f5e4),this['_suggestionState']['get'](_0x1e1df1)){case'notReady':this['_getSuggestionData'](_0x3c0746)['then'](_0xf79d2a=>{let _0x4d4080=Promise['resolve']();_0xf79d2a['hasComments']&&(_0x4d4080=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3c0746})),_0x4d4080['then'](()=>{this['addSuggestionData'](_0xf79d2a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1e1df1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3c0746,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1e1df1,'ready'),this['fire']('suggestionLoaded',_0x1e1df1);break;case'ready':this['fire']('suggestionChanged',_0x1e1df1);}return _0x1e1df1['addMarkerName'](_0x36170c),_0x1e1df1;}['_refreshSuggestionsChain'](_0x21ddb6){const _0x4de559=Array['from'](_0x21ddb6),_0x278cd3=_0x4de559['filter'](_0x3a6b0d=>'attribute'==_0x3a6b0d['type']);this['_refreshAttributeSuggestionsChain'](_0x278cd3);const _0x2c0298=_0x4de559['filter'](_0x30ce38=>!_0x30ce38['isMultiRange']&&'attribute'!=_0x30ce38['type']),_0x166ff9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b533b=>!_0x4b533b['isMultiRange']&&'attribute'!=_0x4b533b['type']),_0x28db6a=_0x166ff9['filter'](_0x1cfd32=>!_0x21ddb6['has'](_0x1cfd32)),_0x1568e4=new Map(_0x166ff9['map'](_0x54a1a3=>[_0x54a1a3,this['_suggestionFactory']['getSuggestionCallback'](_0x54a1a3['type'],_0x54a1a3['subType'],'chain')])),_0x22a0f6=new Map(_0x166ff9['map'](_0x52cac4=>[_0x52cac4,_0x52cac4['getFirstRange']()])),_0x127b70=new Set(),_0x83757b=new Set();for(let _0x1aa2d5=0x0;_0x1aa2d5<_0x2c0298['length'];_0x1aa2d5++)_0x4d0b5b(_0x2c0298[_0x1aa2d5],_0x2c0298,_0x1aa2d5+0x1);for(let _0x54bb4a=0x0;_0x54bb4a<_0x2c0298['length'];_0x54bb4a++)_0x4d0b5b(_0x2c0298[_0x54bb4a],_0x28db6a,0x0);const _0x64fb1d=new Set();for(let _0x376fe6=0x0;_0x376fe6<_0x2c0298['length'];_0x376fe6++){const _0x3f148d=_0x2c0298[_0x376fe6];!_0x83757b['has'](_0x3f148d)&&_0x3f148d['previous']&&(_0x64fb1d['add'](_0x3f148d['previous']),_0x3f148d['previous']['next']===_0x3f148d&&(_0x3f148d['previous']['next']=null),_0x3f148d['previous']=null),!_0x127b70['has'](_0x3f148d)&&_0x3f148d['next']&&(_0x64fb1d['add'](_0x3f148d['next']),_0x3f148d['next']['previous']===_0x3f148d&&(_0x3f148d['next']['previous']=null),_0x3f148d['next']=null);}function _0x4d0b5b(_0x5cec1b,_0x1a0837,_0x1b1ac5){for(let _0x14f077=_0x1b1ac5;_0x14f077<_0x1a0837['length'];_0x14f077++){const _0x15f39b=_0x19c3da(_0x5cec1b,_0x1a0837[_0x14f077]);_0x15f39b&&(_0x15f39b[0x0]['next']=_0x15f39b[0x1],_0x15f39b[0x1]['previous']=_0x15f39b[0x0],_0x127b70['add'](_0x15f39b[0x0]),_0x83757b['add'](_0x15f39b[0x1]));}}function _0x19c3da(_0x244b00,_0x585851){if(_0x244b00['author']['id']!==_0x585851['author']['id'])return null;const _0x505357=_0x1568e4['get'](_0x244b00)(_0x244b00,_0x585851,_0x22a0f6['get'](_0x244b00),_0x22a0f6['get'](_0x585851));if(!_0x505357)return null;return _0x1568e4['get'](_0x585851)(_0x244b00,_0x585851,_0x22a0f6['get'](_0x244b00),_0x22a0f6['get'](_0x585851))?_0x505357[0x1]['commentThread']&&_0x505357[0x1]['commentThread']['length']?null:_0x505357:null;}_0x64fb1d['size']&&this['_refreshSuggestionsChain'](_0x64fb1d);}['_refreshAttributeSuggestionsChain'](_0xfce0d1){if(0x0==_0xfce0d1['length'])return;const _0x5cdc5a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x85bee4=>'attribute'==_0x85bee4['type']&&_0x85bee4['_isDataLoaded']),_0x1e4704=[],_0xfc1209=new Map();for(const _0x48cc6e of _0x5cdc5a){const _0x410c9c=_0x4a9c7a(_0x48cc6e['attributes']);_0xfc1209['has'](_0x410c9c)||(_0xfc1209['set'](_0x410c9c,_0x1e4704['length']),_0x1e4704['push']([]));const _0x49d169=_0xfc1209['get'](_0x410c9c);_0x1e4704[_0x49d169]['push'](_0x48cc6e);}!(function(){_0x1e4704['sort']((_0x3dd201,_0x289e0a)=>{const _0x42d7f9=_0x3dd201[0x0]['createdAt'],_0x4f7dea=_0x289e0a[0x0]['createdAt'];return _0x42d7f9==_0x4f7dea?_0x3dd201[0x0]['attributes']['groupId']<_0x289e0a[0x0]['attributes']['groupId']?-0x1:0x1:_0x42d7f9<_0x4f7dea?-0x1:0x1;});for(const _0x259c5f of _0x1e4704)_0x259c5f['sort']((_0x1d911a,_0x1243a7)=>_0x1d911a['id']<_0x1243a7['id']?-0x1:0x1);}());for(let _0x683d5e=0x0;_0x683d5e<_0x1e4704['length'];_0x683d5e++){if(0x0==_0x1e4704[_0x683d5e]['length'])continue;const _0x1f1a1a=[];for(let _0x5ebaef=_0x683d5e+0x1;_0x5ebaef<_0x1e4704['length'];_0x5ebaef++)0x0!=_0x1e4704[_0x5ebaef]['length']&&_0x389e15(_0x1e4704[_0x683d5e],_0x1e4704[_0x5ebaef])&&_0x1f1a1a['push'](_0x5ebaef);for(const _0x22c276 of _0x1f1a1a)_0x1e4704[_0x683d5e]=_0x1e4704[_0x683d5e]['concat'](_0x1e4704[_0x22c276]),_0x1e4704[_0x22c276]=[];}for(const _0x54c5ba of _0x1e4704)for(let _0x1eccf5=0x0;_0x1eccf5<_0x54c5ba['length'];_0x1eccf5++){const _0x597f98=_0x54c5ba[_0x1eccf5+0x1]||null;_0x54c5ba[_0x1eccf5]['next']!==_0x597f98&&(_0x54c5ba[_0x1eccf5]['next']=_0x597f98);}for(const _0x58c8a2 of _0x1e4704)for(let _0x123d27=0x0;_0x123d27<_0x58c8a2['length'];_0x123d27++){const _0x283dde=_0x58c8a2[_0x123d27-0x1]||null;_0x58c8a2[_0x123d27]['previous']!==_0x283dde&&(_0x58c8a2[_0x123d27]['previous']=_0x283dde);}function _0x389e15(_0x20ac63,_0x4b78a4){if(_0x20ac63[0x0]['attributes']['groupId']!==_0x4b78a4[0x0]['attributes']['groupId']&&_0x20ac63[0x0]['author']!==_0x4b78a4[0x0]['author'])return!0x1;if(!function(_0x1c7255,_0x2831d2){if(!_0x1c7255['hasComments']&&!_0x2831d2['hasComments'])return!0x0;if(_0x1c7255['hasComments']&&_0x2831d2['hasComments'])return!0x1;if(_0x1c7255['hasComments']&&_0x2831d2['createdAt']<_0x1c7255['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2831d2['hasComments']&&_0x1c7255['createdAt']<_0x2831d2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x20ac63[0x0],_0x4b78a4[0x0]))return!0x1;const _0x136084=Ut(_0x20ac63[0x0]['attributes'],['groupId','trackingSessionId']),_0x528e0d=Ut(_0x4b78a4[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x29447a(_0x136084,_0x528e0d))return!0x1;if(_0x20ac63[0x0]['attributes']['groupId']==_0x4b78a4[0x0]['attributes']['groupId'])return!0x0;if(_0x20ac63[0x0]['attributes']['trackingSessionId']!==_0x4b78a4[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x20ac63['every'](_0x2db2a6=>_0x4b78a4['some'](_0x3c9524=>_0x2db2a6['getFirstRange']()['isEqual'](_0x3c9524['getFirstRange']())))&&_0x4b78a4['every'](_0x5614b8=>_0x20ac63['some'](_0x47182b=>_0x5614b8['getFirstRange']()['isEqual'](_0x47182b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x591de0){const _0x230f76=Array['from'](_0x591de0),_0x5335ac=this['getSuggestions']({'skipNotAttached':!0x0}),_0x27897b=_0x5335ac['filter'](_0x2826fe=>!_0x591de0['has'](_0x2826fe)),_0x2085d2=new Map(_0x230f76['map'](_0xb76374=>[_0xb76374,this['_suggestionFactory']['getSuggestionCallback'](_0xb76374['type'],_0xb76374['subType'],'join')])),_0x31e644=new Map(_0x5335ac['map'](_0x12f185=>[_0x12f185,_0x12f185['getRanges']()]));for(let _0x2964d6=0x0;_0x2964d6<_0x230f76['length'];_0x2964d6++){if(_0x4b9454(this,_0x230f76[_0x2964d6],_0x230f76,_0x2964d6+0x1))return!0x0;}for(let _0x31401c=0x0;_0x31401c<_0x230f76['length'];_0x31401c++){if(_0x4b9454(this,_0x230f76[_0x31401c],_0x27897b,0x0))return!0x0;}return!0x1;function _0x4b9454(_0x58ba94,_0x257b95,_0x217102,_0x10b43d){for(let _0x566ac7=_0x10b43d;_0x566ac7<_0x217102['length'];_0x566ac7++){const _0x407268=_0x217102[_0x566ac7];if(_0x407268['type']!==_0x257b95['type']||_0x407268['author']['id']!==_0x257b95['author']['id']||_0x407268['subType']!==_0x257b95['subType'])continue;if(!Qt(_0x257b95,_0x407268))continue;if('attribute'==_0x257b95['type']&&_0x257b95['data']['oldValue']!=_0x407268['data']['oldValue'])continue;if('attribute'==_0x257b95['type']&&_0x58ba94['_isBlockAttribute'](_0x257b95['data']['key']))continue;if('formatBlock'==_0x257b95['type']){const _0x52db76=_0x58ba94['editor']['model'],_0x2586d0=_0x257b95['getContainedElement']();if(_0x2586d0&&(_0x52db76['schema']['isObject'](_0x2586d0)||_0x52db76['schema']['isLimit'](_0x2586d0)))continue;}const _0x7c686b=_0x2085d2['get'](_0x257b95),_0x97a76c=_0x31e644['get'](_0x257b95),_0x28dcb0=_0x31e644['get'](_0x407268),_0x477250=_0x257b95['commentThread']&&_0x257b95['commentThread']['length'],_0x497327=_0x407268['commentThread']&&_0x407268['commentThread']['length'];if(!_0x477250&&_0x7c686b(_0x28dcb0,_0x97a76c))return _0x58ba94['_joinSuggestions'](_0x407268,_0x257b95),_0x31e644['delete'](_0x257b95),!0x0;if(!_0x497327&&_0x7c686b(_0x97a76c,_0x28dcb0))return _0x58ba94['_joinSuggestions'](_0x257b95,_0x407268),_0x31e644['delete'](_0x407268),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2f032e,_0x4fd51e){if(_0x2f032e['isMultiRange']){for(const _0xb997f4 of _0x4fd51e['getRanges']())_0x2f032e['addRange'](_0xb997f4);}else{const _0x3be74f=_0x4fd51e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2f032e,this['_model']['createRange'](_0x2f032e['getFirstRange']()['start'],_0x3be74f));}_0x4fd51e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x438598,_0xb77acb,_0xda2cef){const _0x5c2f44=_0x438598['startsWith']('format')||_0x438598['startsWith']('attribute')?'FORMATTING':_0x438598['toUpperCase']();return o(this['editor']['locale'],_0xb77acb+'_'+_0x5c2f44+'_SUGGESTION_ANNOUNCEMENT',_0xda2cef);}['_initAriaMarkerChangeAnnouncements'](){const _0xaba118=this['editor'];if(!_0xaba118['ui'])return;const {ariaLiveAnnouncer:_0x4c4cea}=_0xaba118['ui'];_0x553900(this['_model'],({left:_0x10db91,entered:_0xb32cf1})=>{for(const _0x31ac23 of _0x10db91){const {group:_0x1cd590,type:_0x3c8e9e}=this['_splitMarkerName'](_0x31ac23['name']);if('suggestion'===_0x1cd590){_0x4c4cea['announce'](this['_getMarkerAnnouncementText'](_0x3c8e9e,'LEAVE'));break;}}for(const _0x35457a of _0xb32cf1){const {group:_0x234fc2,type:_0x1dea1f}=this['_splitMarkerName'](_0x35457a['name']);if('suggestion'===_0x234fc2){_0x4c4cea['announce'](this['_getMarkerAnnouncementText'](_0x1dea1f,'ENTER',_0x411c03(_0x3b067a)));break;}}});}['_processAttributeChanges'](_0x5a93c9){if(this['_recordAttributeSuggestions'])return!0x1;const _0xe13f=this['editor'],_0x1044ed=_0xe13f['model']['document']['differ']['getChanges']();if(0x0==_0x1044ed['length'])return!0x1;const _0x784988=[],_0x2bc178=_0x1044ed['filter'](_0x5f40de=>'attribute'==_0x5f40de['type']),_0x14c0a2=_0x1044ed['filter'](_0x5c2083=>'insert'==_0x5c2083['type']&&'$text'!=_0x5c2083['name']),_0x34b4c3=_0x1044ed['filter'](_0xd14b52=>'remove'==_0xd14b52['type']&&'$text'!=_0xd14b52['name']);for(const _0x59e7f9 of _0x2bc178)_0x784988['push']({'key':_0x59e7f9['attributeKey'],'newValue':_0x59e7f9['attributeNewValue'],'oldValue':_0x59e7f9['attributeOldValue'],'range':qt(_0x59e7f9['range'],_0xe13f['model'])});for(const _0x5c2611 of _0x14c0a2){const _0x5c620e=_0x34b4c3['find'](_0x9aacef=>_0x9aacef['position']['isEqual'](_0x5c2611['position']));_0x5c620e&&_0x784988['push']({'key':m,'newValue':_0x5c2611['name'],'oldValue':_0x5c620e['name'],'range':_0xe13f['model']['createRangeOn'](_0x5c2611['position']['nodeAfter'])});}return 0x0!=_0x784988['length']&&this['_reduceExistingSuggestions'](_0x5a93c9,_0x784988);}['_processAttributeSuggestions'](_0x273ceb){let _0x27b006=!0x1;const _0x2c496d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4f6e80=>_0x4f6e80['data']['newRange']&&_0x4f6e80['name']['startsWith']('suggestion:attribute:'));for(const _0x1c2e3c of _0x2c496d){const {subType:_0xbcbdf5,id:_0x3b7dac}=this['_splitMarkerName'](_0x1c2e3c['name']),_0x579a9f=_0xbcbdf5['split']('|')[0x0];for(const _0xf9baf9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xf9baf9['id']!=_0x3b7dac&&'attribute'==_0xf9baf9['type']&&_0xf9baf9['data']&&_0xf9baf9['data']['key']==_0x579a9f&&_0xf9baf9['getFirstRange']()['isIntersecting'](_0x1c2e3c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xf9baf9,_0x1c2e3c['data']['newRange'],_0x273ceb),_0x27b006=!0x0);}return _0x27b006;}['recordAttributeChanges'](_0x58f016){this['_recordAttributeSuggestions']=!0x0,_0x58f016();}['_isRegisteredAttribute'](_0x67548e){const _0x4699a9=this['_isBlockAttribute'](_0x67548e),_0x5d8e99=this['_isInlineAttribute'](_0x67548e);return _0x4699a9||_0x5d8e99;}['_reduceExistingSuggestions'](_0x1f836e,_0x1f62ae){if(0x0==_0x1f62ae['length'])return!0x1;let _0x94393d=!0x1;for(const _0x108881 of _0x1f62ae){const _0x2837e8=this['_findSuggestions'](_0x108881['range'],'attribute')['filter'](_0x1fe3a4=>!_0x1fe3a4['meta']['isNextTo'])['map'](_0x489e78=>_0x489e78['suggestion']),_0x876c50=_0x4a9c7a({'newValue':_0x108881['newValue']});_0x2837e8['filter'](_0x2db2a3=>{const [_0x256241,_0x20bf4c]=_0x2db2a3['subType']['split']('|');return _0x256241==_0x108881['key']&&_0x20bf4c!=_0x876c50;})['forEach'](_0x66d8a5=>{this['_reduceSuggestionAttributeRange'](_0x66d8a5,_0x108881['range'],_0x1f836e),_0x94393d=!0x0;});}return _0x94393d;}['_reduceSuggestionAttributeRange'](_0x4f56df,_0x25d712,_0x364769){const _0x2d0bc3=_0x4f56df['getFirstRange']()['getDifference'](_0x25d712);0x0!==_0x2d0bc3['length']?0x1!==_0x2d0bc3['length']?this['_breakSuggestionMarker'](_0x4f56df,_0x25d712['start'],_0x25d712['end']):this['_setSuggestionRange'](_0x4f56df,_0x2d0bc3[0x0]):_0x364769['removeMarker'](_0x4f56df['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1469ee){this['_editor']=_0x1469ee,this['_model']=_0x1469ee['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x168c2b,_0x55e229,_0x521e1b,_0xf38fda,_0x361d92,_0x5c3bc4,_0x5c5bf2){return new T(this['_model'],{'type':_0x168c2b,'subType':_0x55e229,'id':_0x521e1b,'originalSuggestionId':_0x5c5bf2,'author':_0xf38fda,'creator':_0xf38fda,'attributes':_0x361d92,'onAttributesChange':_0x5c3bc4,'onAccept':(..._0x319d3e)=>this['getSuggestionCallback'](_0x168c2b,_0x55e229,'accept')(..._0x319d3e),'onDiscard':(..._0x3d4516)=>this['getSuggestionCallback'](_0x168c2b,_0x55e229,'discard')(..._0x3d4516)});}['registerCustomCallback'](_0x19c4bc,_0x3d9a96,_0xd2bd45,_0x5dd56c){const _0x58a381=_0x19c4bc+':'+_0x3d9a96+':'+_0xd2bd45;this['_customCallbacks']['set'](_0x58a381,_0x5dd56c);}['getSuggestionCallback'](_0x50fb94,_0x253d14,_0x13f566){const _0x59de47=_0x50fb94+':'+_0x253d14+':'+_0x13f566;return this['_customCallbacks']['get'](_0x59de47)||this['_defaultCallbacks']['get'](_0x50fb94+':'+_0x13f566);}['_registerDefaultCallbacks'](){const _0xa971=()=>!0x1,_0x55e879=_0x15adbb=>{_0x15adbb['sort']((_0x70fd4,_0x4569f9)=>_0x70fd4['start']['isBefore'](_0x4569f9['start'])?0x1:-0x1),this['_model']['change'](_0x1aee6e=>{for(const _0x1f8967 of _0x15adbb){let _0x5f17f6;_0x5f17f6=_0x1f8967['end']['isAtEnd']&&_0x1f8967['end']['parent']==_0x1f8967['start']['nodeAfter']?_0x1aee6e['createSelection'](_0x1f8967['start']['nodeAfter'],'on'):_0x1aee6e['createSelection'](_0x1f8967),this['_model']['deleteContent'](_0x5f17f6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x413669=(_0x505fa9,_0x542498)=>{_0x542498&&this['_model']['change'](_0x5aa4a8=>{const {commandName:_0x2eb64f,commandParams:_0x24a80b=[]}=_0x542498,_0x3d4390=_0x505fa9['map'](_0x4e1c0a=>(Pt(_0x4e1c0a)&&(_0x4e1c0a=this['_model']['createRange'](_0x4e1c0a['end'])),_0x4e1c0a))['filter'](_0x218723=>'$graveyard'!==_0x218723['root']['rootName']);if(_0x3d4390['length']<0x1)return;const _0x40165f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4f5e9e=>_0x2e68e7['fromRange'](_0x4f5e9e));_0x5aa4a8['setSelection'](_0x3d4390);for(const _0x3aa7c1 of this['_editor']['commands']['commands']())_0x3aa7c1['refresh']();_0x24a80b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2eb64f,..._0x24a80b);const _0x57064d=_0x40165f['filter'](_0x43582a=>'$graveyard'!=_0x43582a['root']['rootName']);_0x57064d['length']>0x0&&_0x5aa4a8['setSelection'](_0x57064d);for(const _0x12b34b of _0x40165f)_0x12b34b['detach']();});},_0x85193b=(_0x2b0189,_0x252cb8)=>0x1==_0x2b0189['length']&&0x1==_0x252cb8['length']&&_0x2b0189[0x0]['end']['isEqual'](_0x252cb8[0x0]['start']),_0x71c0c1=(_0x29f5c3,_0x256548,_0x1b41c4,_0x9b5be6)=>Wt(_0x29f5c3,_0x256548,_0x1b41c4,_0x9b5be6)?[_0x29f5c3,_0x256548]:Wt(_0x256548,_0x29f5c3,_0x9b5be6,_0x1b41c4)?[_0x256548,_0x29f5c3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xa971),this['_defaultCallbacks']['set']('insertion:discard',_0x55e879),this['_defaultCallbacks']['set']('insertion:join',_0x85193b),this['_defaultCallbacks']['set']('insertion:chain',_0x71c0c1),this['_defaultCallbacks']['set']('deletion:accept',_0x55e879),this['_defaultCallbacks']['set']('deletion:discard',_0xa971),this['_defaultCallbacks']['set']('deletion:join',_0x85193b),this['_defaultCallbacks']['set']('deletion:chain',_0x71c0c1),this['_defaultCallbacks']['set']('formatInline:accept',_0x413669),this['_defaultCallbacks']['set']('formatInline:discard',_0xa971),this['_defaultCallbacks']['set']('formatInline:join',_0x85193b),this['_defaultCallbacks']['set']('formatInline:chain',_0xa971),this['_defaultCallbacks']['set']('formatBlock:accept',_0x413669),this['_defaultCallbacks']['set']('formatBlock:discard',_0xa971),this['_defaultCallbacks']['set']('formatBlock:join',_0x85193b),this['_defaultCallbacks']['set']('formatBlock:chain',_0xa971),this['_defaultCallbacks']['set']('attribute:accept',_0xa971),this['_defaultCallbacks']['set']('attribute:discard',(_0x367034,_0x16689f)=>{if(!_0x16689f)return;const _0x541a5b=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4fe228=>{if(_0x16689f['key']==m)for(const _0x2a494f of _0x367034){const _0x58ff2a=_0x2a494f['start']['nodeAfter'],_0x41b963=_0x16689f['oldValue'];_0x4fe228['rename'](_0x58ff2a,_0x41b963);}else{if(_0x541a5b['_isBlockAttribute'](_0x16689f['key'])){for(const _0x4f03f0 of _0x367034)void 0x0!==_0x16689f['oldValue']?_0x4fe228['setAttribute'](_0x16689f['key'],_0x16689f['oldValue'],_0x4f03f0['start']['nodeAfter']):_0x4fe228['removeAttribute'](_0x16689f['key'],_0x4f03f0['start']['nodeAfter']);}else{for(const _0x18aec4 of _0x367034)_0x16689f['oldValue']?_0x4fe228['setAttribute'](_0x16689f['key'],_0x16689f['oldValue'],_0x18aec4):_0x4fe228['removeAttribute'](_0x16689f['key'],_0x18aec4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x85193b);}}function Ft(_0xac029c,_0x1d1bc5,_0x4c1370){for(const _0x3422c2 of _0x1d1bc5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3422c2['root']==_0x3422c2)return!0x1;if(!_0x4c1370['containsItem'](_0x3422c2))return!0x1;if(_0xac029c['isObject'](_0x3422c2)||_0xac029c['isLimit'](_0x3422c2))return!0x0;}return!0x1;}function Pt(_0x1a3db2){return _0x1a3db2['end']['parent']==_0x1a3db2['start']['nodeAfter']&&_0x1a3db2['end']['isAtStart'];}function Gt(_0x17714b,_0x1e7297,_0x516952,_0xdecf01){const _0xbeb417=_0x94ba96=>!_0x94ba96['item']['is']('$textProxy')&&!_0xdecf01['isObject'](_0x94ba96['item']),_0x52c3ad=_0x17714b['start']['getLastMatchingPosition'](_0xbeb417),_0x1f57bb=_0x17714b['end']['getLastMatchingPosition'](_0xbeb417,{'direction':'backward'});return(!_0x17714b['start']['isEqual'](_0x52c3ad)||!_0x17714b['end']['isEqual'](_0x1f57bb))&&(_0x52c3ad['isBefore'](_0x1f57bb)?_0x516952['updateMarker'](_0x1e7297,{'range':_0x516952['createRange'](_0x52c3ad,_0x1f57bb)}):_0x516952['removeMarker'](_0x1e7297),!0x0);}function Lt(_0x2f6c82){return _0x4a9c7a(_0x2f6c82);}function Jt(_0x4b522d){const _0x5cfc25=_0x4b522d['start']['nodeAfter'];return _0x5cfc25&&_0x5cfc25['is']('element');}function Kt(_0x4f0ecb){return Pt(_0x4f0ecb)||function(_0x51b830){return _0x51b830['start']['parent']==_0x51b830['end']['nodeBefore']&&_0x51b830['start']['isAtEnd'];}(_0x4f0ecb);}function Ht(_0x5d68c4,_0x51d53a){try{const _0x326699=_0x5d68c4['getRange']();for(const _0x331676 of _0x51d53a)if(_0x5d68c4!==_0x331676&&_0x326699&&_0x326699['isIntersecting'](_0x331676['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x55b08f,_0x18ef5c){return null==_0x55b08f['end']['nodeBefore']&&_0x55b08f['end']['parent']==_0x55b08f['start']['nodeAfter']?zt(_0x55b08f['start']['nodeAfter'],_0x18ef5c):_0x55b08f;}function zt(_0x50b9d5,_0x409df1){const _0x4da732=_0x409df1['schema']['isObject'](_0x50b9d5)||_0x409df1['schema']['isSelectable'](_0x50b9d5);return _0x409df1['createRange'](_0x409df1['createPositionAt'](_0x50b9d5,'before'),_0x4da732?_0x409df1['createPositionAfter'](_0x50b9d5):_0x409df1['createPositionAt'](_0x50b9d5,'end'));}function Wt(_0x3497b1,_0x1b96b2,_0x2d3cdd,_0x41a85b){return!!Qt(_0x3497b1,_0x1b96b2)&&_0x2d3cdd['end']['isEqual'](_0x41a85b['start']);}function Qt(_0x1f629f,_0x5bec38){if(!_0x1f629f['_isDataLoaded']||!_0x5bec38['_isDataLoaded'])return!0x1;const _0x669199=new Set(Object['keys'](_0x1f629f['attributes'])),_0x885eda=new Set(Object['keys'](_0x5bec38['attributes']));if(_0x669199['delete']('groupId'),_0x885eda['delete']('groupId'),0x0==_0x669199['size']&&0x0==_0x885eda['size'])return!0x0;if(_0x669199['size']!=_0x885eda['size'])return!0x1;const _0x5de4bc={..._0x1f629f['attributes']},_0x9308ba={..._0x5bec38['attributes']};return delete _0x5de4bc['groupId'],delete _0x9308ba['groupId'],JSON['stringify'](_0x5de4bc)==JSON['stringify'](_0x9308ba);}function Xt(_0x18327d,_0x2095df){const _0x5775a6=Yt(_0x18327d['attributes']),_0x552144=Yt(_0x2095df);if(!_0x18327d['_isDataLoaded'])return!0x1;for(const _0x583c8f of Object['keys'](_0x552144))if(!_0x29447a(_0x5775a6[_0x583c8f],_0x552144[_0x583c8f]))return!0x1;return!0x0;}function Yt(_0x29aa41){const _0x4e4d97=Object['assign']({},_0x29aa41);return delete _0x4e4d97['skipNestingCheck'],delete _0x4e4d97['tablePasteChainId'],_0x4e4d97;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x5d0a2d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xef0438,_0x37c443,_0x9afd14,_0xa522d3){super(),this['model']=_0x37c443,this['view']=_0x9afd14,this['commentThreadController']=_0xa522d3,this['_editor']=_0xef0438,this['_acceptCommand']=_0xef0438['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xef0438['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x30de66,_0x9edaf2)=>_0x30de66||_0x9edaf2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x25f6f2=>_0x25f6f2&&this['_editor']['model']['canEditAt'](_0x37c443['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x26465d=>_0x26465d&&this['_editor']['model']['canEditAt'](_0x37c443['getRanges']())),this['_pendingAction']=null,_0x9afd14['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x9afd14,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x9afd14,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x9afd14,'change:isDirty',()=>{_0x9afd14['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 _0x405fdc=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x405fdc);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x134a78{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c3be8,_0x2c780a,_0x4aaa0c,_0x1959de){super(_0x4c3be8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1f6dbe(_0x4c3be8,o(_0x4c3be8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2c780a['authoredAt']),this['bind']('authoredAt')['to'](_0x2c780a),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',_0x2c780a,'authoredAt',this,'descriptionParts',(_0x1e2194,_0x54e64,_0x5992ec)=>{const _0x3bda9e=_0x5992ec['map'](_0x2adac1=>ls(_0x2adac1['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1e2194-0x1,_0x2c780a['author']['name'],_0x54e64?_0x1959de['formatDateTime'](_0x54e64):'',new DOMParser()['parseFromString'](_0x3bda9e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2bc706(),this['focusTracker']=new _0x4d08bd(),this['keystrokes']=new _0x3bbb36(),this['focusCycler']=new _0x14d18b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4dd345=>_0x4dd345['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2c780a,this['_localUser']=_0x4aaa0c,this['_config']=_0x1959de,_0x1959de['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x14e682(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x128c09}=this['_config'];this['commentsListView']=new _0x128c09(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',_0x37c0c4=>_0x37c0c4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x419316,_0x3f87f6)=>_0x419316||!!_0x3f87f6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x172dd8}=this['_config'],_0x5efee7=new _0x172dd8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1a6a91=_0x5efee7['commentInputView'];return _0x5efee7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1a6a91,'value',(_0x35e8f7,_0x2f0c64,_0x510720)=>!!_0x510720||_0x35e8f7&&!_0x2f0c64),_0x1a6a91['on']('submit',(_0x48b0c2,_0x108232)=>{this['fire']('addComment',_0x108232),_0x1a6a91['editor']['setData']('');}),_0x1a6a91['on']('cancel',()=>this['focus']()),_0x1a6a91['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5efee7;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x5b60f0,_0x7c1844,_0x4e625f,_0x358440){super(_0x5b60f0,_0x7c1844,_0x4e625f,_0x358440),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x617db=>_0x617db&&_0x617db[0x0]?_0x617db[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2e139b,_0x5b804f)=>{let _0x937b1b='';for(const _0x52321a of _0x2e139b)_0x937b1b+='<p>'+ls(_0x52321a['content'],_0x52321a['color'])+'</p>';return _0x5b804f?_0x937b1b:_0x105de4(_0x937b1b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x358440['SuggestionView'](_0x5b60f0,_0x7c1844,{'formatDateTime':_0x358440['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 _0x4ca2a5=this['bindTemplate'],_0x46a8a7=[this['suggestionView']];return this['commentsListView']&&_0x46a8a7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x46a8a7['push'](this['commentThreadInputView']),_0x46a8a7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4ca2a5['if']('isActive','ck-suggestion-wrapper--active'),_0x4ca2a5['to']('type',_0x3d0449=>'ck-suggestion-'+_0x3d0449),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':_0x4ca2a5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x46a8a7};}['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 _0x134a78{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ea12d,_0x1c95ee,_0x3db0da){super(_0x3ea12d),this['_model']=_0x1c95ee,this['_config']=_0x3db0da,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1c95ee),this['acceptButton']=this['_createButton'](o(_0x3ea12d,'Accept\x20suggestion'),_0x42b2d0,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3ea12d,'Discard\x20suggestion'),_0x1ccc55,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b7b1d(_0x3ea12d,_0x1c95ee['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2bc706([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d08bd(),this['keystrokes']=new _0x3bbb36(),this['focusCycler']=new _0x14d18b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xdede8f=>_0xdede8f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x98716e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x98716e['innerHTML']=this['description'],this['on']('change:description',(_0x326c1f,_0x532f92,_0x4cd8ad)=>{_0x98716e['innerHTML']=_0x4cd8ad;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x418efc=this['bindTemplate'],_0x5ab86a=[{'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':_0x418efc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x418efc['to']('authoredAt',_0x5715d5=>this['_config']['formatDateTime'](_0x5715d5))}]}]},{'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']&&_0x5ab86a['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':_0x5ab86a}]};}['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'](_0x3dbc1d,_0x6a5b72,_0x5967aa,_0x2eafd8,_0x453b50){const _0xf5cc5c=new _0x310866(this['locale']);return _0xf5cc5c['set']({'label':_0x3dbc1d,'icon':_0x6a5b72,'tooltip':!0x0,'tooltipPosition':_0x453b50}),_0xf5cc5c['extendTemplate']({'attributes':{'class':_0x5967aa}}),_0xf5cc5c['on']('execute',()=>{this['fire'](_0x2eafd8,this['_model']['id']);}),_0xf5cc5c;}['_setupKeyboardNavigation'](){const _0x1a7018=this['element'];this['keystrokes']['listenTo'](_0x1a7018);for(const _0x218121 of this['focusables'])this['focusTracker']['add'](_0x218121['element']),this['keystrokes']['listenTo'](_0x218121['element']);this['keystrokes']['set']('enter',(_0x47ba8a,_0x4f9012)=>{_0x1a7018===_0x47ba8a['target']&&(this['focusCycler']['focusFirst'](),_0x4f9012());}),this['keystrokes']['set']('esc',(_0x25dca7,_0xcdc2e0)=>{_0x1a7018!==_0x25dca7['target']&&(this['focus'](),_0xcdc2e0());});}}class u extends _0x3d96fc{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5194d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cfde3){super(_0x2cfde3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5e2b38=this['editor']['config'];_0x5e2b38['define']('trackChanges.SuggestionThreadView',fe),_0x5e2b38['define']('trackChanges.SuggestionView',we),_0x5e2b38['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5e2b38['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ea8a0,_0x13375b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3946b8,_0xfbb850]of this['_handleControllerBuffer']){const _0x3a7fae=this['_suggestionToController']['has'](_0x3946b8);_0x3a7fae||_0xfbb850?_0x3a7fae&&_0xfbb850&&this['_destroyController'](_0x3946b8):this['_initializeController'](_0x3946b8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ea8a0,_0x13375b);}['init'](){const _0x13cf44=this['editor'],_0x1c1007=_0x13cf44['plugins']['get']('TrackChangesEditing'),_0x7a33c8=_0x13cf44['plugins']['get']('Annotations'),_0x10169a=_0x13cf44['plugins']['get']('EditorAnnotations'),_0x4f7742=_0x13cf44['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x10169a['addSourceCollector'](()=>{const _0x293131=[];for(const [_0x272ef2,_0x3ecc84]of Array['from'](this['_suggestionToController'])){const _0x554f2b=_0x272ef2['getAllAdjacentSuggestions'](),_0x446085=[];for(const _0xacee8d of _0x554f2b){if(!_0xacee8d['isInContent'])continue;if(_0xacee8d['isMultiRange']){_0x446085['push'](..._0xacee8d['getRanges']());continue;}const _0x5d90b1=_0xacee8d['getFirstRange']();if(_0x446085['length']>0x0){const _0x1f080f=_0x446085[0x0]['getJoined'](_0x5d90b1);if(_0x1f080f){_0x446085[0x0]=_0x1f080f;continue;}}_0x446085['push'](_0x5d90b1);}_0x293131['push']([_0x3ecc84['view'],_0x446085]);}return _0x293131;}),this['listenTo'](_0x1c1007,'suggestionLoaded',(_0x5da290,_0x2c9880)=>{this['listenTo'](_0x2c9880,'change:previous',(_0x1d1cb0,_0x37be5c,_0x30b76e,_0x54978f)=>{_0x2c9880['isInContent']&&(null==_0x30b76e?(this['_updateController'](_0x54978f['head']),this['_handleSuggestionControllerDelayed'](_0x2c9880,!0x1)):(this['_updateController'](_0x30b76e['head']),null==_0x54978f&&this['_handleSuggestionControllerDelayed'](_0x2c9880,!0x0)));}),null!==_0x2c9880['previous']?this['_updateController'](_0x2c9880['head']):this['_handleSuggestionControllerDelayed'](_0x2c9880,!0x1);}),this['listenTo'](_0x1c1007,'suggestionUnloaded',(_0x185ae1,_0x1b7c1e,_0x357f9e)=>{this['stopListening'](_0x1b7c1e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1b7c1e),this['_suggestionToController']['has'](_0x1b7c1e)&&this['_destroyController'](_0x1b7c1e),_0x357f9e&&this['_updateController'](_0x357f9e['head']);}),this['listenTo'](_0x1c1007,'suggestionChanged',(_0x3501d1,_0x281eb2)=>{this['_updateController'](_0x281eb2);}),this['listenTo'](_0x7a33c8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4f7742,'addComment',(_0x27ccd6,{threadId:_0x32d79f,isFromAdapter:_0x194a9e})=>{if(_0x194a9e||!_0x1c1007['hasSuggestion'](_0x32d79f))return;const _0x1fde50=_0x1c1007['getSuggestion'](_0x32d79f);this['_suggestionToController']['get'](_0x1fde50)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ac178=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xae2744;for(const _0x5e9a8f in _0x5ac178){const _0x421056=_0x5e9a8f,_0x50452f=_0x5ac178[_0x421056];if('trackChangesLicenseKeyValid'==_0x50452f||'trackChangesLicenseKeyInvalid'==_0x50452f||'trackChangesLicenseKeyExpired'==_0x50452f||'trackChangesLicenseKeyDomainLimit'==_0x50452f||'trackChangesLicenseKeyNotAllowed'==_0x50452f||'trackChangesLicenseKeyEvaluationLimit'==_0x50452f||'trackChangesLicenseKeyTrialLimit'==_0x50452f||'trackChangesLicenseKeyUsageLimit'==_0x50452f){delete _0x5ac178[_0x421056],_0xae2744=_0x50452f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xae2744&&_0x5ac178['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xae2744&&_0x5ac178['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xae2744&&_0x5ac178['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xae2744&&_0x5ac178['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xae2744&&_0x5ac178['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xae2744&&_0x5ac178['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xae2744&&_0x5ac178['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x15ca6d){const _0x29b370=this['_suggestionToController']['get'](_0x15ca6d);if(!_0x29b370)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x29b370['view'])||null;}['getSuggestionForAnnotation'](_0x529376){const _0x1231f3=this['_viewToController']['get'](_0x529376['innerView']);return _0x1231f3?_0x1231f3['model']:null;}['_refreshActiveMarkers'](){const _0xc100b7=this['editor']['plugins']['get']('Annotations'),_0xba14f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc553=Array['from'](_0xc100b7['activeAnnotations'],_0xa59bc0=>_0xa59bc0['innerView'])['filter'](_0x72ba62=>this['_viewToController']['has'](_0x72ba62)),_0x14b956=[];for(const _0x121412 of _0x5bc553){const _0x48fb9e=this['_viewToController']['get'](_0x121412)['model']['getAllAdjacentSuggestions']();_0x14b956['push'](..._0x48fb9e['reduce']((_0x22365d,_0x22370d)=>[..._0x22365d,..._0x22370d['getMarkerNames']()],[]));}_0xba14f2['activeMarkers']=_0x14b956;}['_addUIComponentsToFactory'](){const _0x1859ee=this['editor'],_0x49fa2c=_0x1859ee['locale'],_0x44bd7f=o(_0x49fa2c,'Track\x20changes'),_0x5a6f5d=new _0x5d8729([{'type':'switchbutton','model':new _0x254c12({'withText':!0x0,'isToggleable':!0x0,'label':_0x44bd7f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x254c12({'withText':!0x0,'label':o(_0x49fa2c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x254c12({'withText':!0x0,'label':o(_0x49fa2c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x254c12({'withText':!0x0,'label':o(_0x49fa2c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x254c12({'withText':!0x0,'label':o(_0x49fa2c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1859ee['plugins']['has']('TrackChangesPreview')&&_0x5a6f5d['addMany']([{'type':'separator'},{'type':'button','model':new _0x254c12({'withText':!0x0,'label':o(_0x49fa2c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3bf635 of _0x5a6f5d)if(ke(_0x3bf635)){const _0x53984d=_0x1859ee['commands']['get'](_0x3bf635['model']['commandName']);_0x3bf635['model']['bind']('isOn','isEnabled')['to'](_0x53984d,'value','isEnabled');}_0x1859ee['ui']['componentFactory']['add']('trackChanges',_0x2b1c48=>this['_createToolbarButton'](_0x2b1c48,_0x5a6f5d,_0x44bd7f)),_0x1859ee['ui']['componentFactory']['add']('menuBar:trackChanges',_0x10b2e2=>this['_createMenuBarMenu'](_0x10b2e2,_0x5a6f5d,_0x44bd7f));}['_createToolbarButton'](_0x326fe4,_0x46fcd8,_0x407dbb){const _0x134e9b=_0x421473(_0x326fe4,_0x367a06),_0x3a039b=this['editor']['commands']['get']('trackChanges');_0x134e9b['buttonView']['set']({'tooltip':_0x407dbb,'label':_0x407dbb,'icon':_0x35a717}),_0x134e9b['buttonView']['bind']('isOn')['to'](_0x3a039b,'value'),_0x134e9b['buttonView']['on']('execute',()=>{_0x3a039b['execute'](),this['editor']['editing']['view']['focus']();}),_0x147db2(_0x134e9b,_0x46fcd8,{'role':'menu'});const _0x33a762=[];for(const _0x503d48 of _0x46fcd8)ke(_0x503d48)&&_0x33a762['push'](this['editor']['commands']['get'](_0x503d48['model']['commandName']));const _0x7d7235=_0x134e9b['buttonView'];return _0x7d7235['actionView']['unbind']('isEnabled'),_0x7d7235['arrowView']['unbind']('isEnabled'),_0x7d7235['actionView']['bind']('isEnabled')['to'](_0x3a039b,'isEnabled'),_0x7d7235['arrowView']['bind']('isEnabled')['toMany'](_0x33a762,'isEnabled',(..._0x2c1ef1)=>_0x2c1ef1['some'](_0x4780fe=>_0x4780fe)),_0x134e9b['on']('execute',_0x39dcca=>{this['editor']['execute'](_0x39dcca['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x134e9b;}['_createMenuBarMenu'](_0xa59a5a,_0x5e3e23,_0x3ba944){const _0x4cc8c0=new _0x28ed44(_0xa59a5a),_0x4869e2=this['editor']['commands']['get']('trackChanges');_0x4cc8c0['buttonView']['set']({'label':_0x3ba944,'icon':_0x35a717});const _0x4920f2=new _0x405996(_0xa59a5a);for(const _0x1c51a6 of _0x5e3e23){if('separator'==_0x1c51a6['type']){_0x4920f2['items']['add'](new _0x53c62c(_0xa59a5a));continue;}const _0x1b3ff5=new _0x3eb2fd(_0xa59a5a,_0x4cc8c0),_0x3b17ff=new _0x4bc098(_0xa59a5a),_0x501426=_0x1c51a6['model'];_0x3b17ff['bind'](...Object['keys'](_0x501426))['to'](_0x501426),_0x3b17ff['delegate']('execute')['to'](_0x4cc8c0),_0x3b17ff['on']('execute',()=>{this['editor']['execute'](_0x501426['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b3ff5['children']['add'](_0x3b17ff),_0x4920f2['items']['add'](_0x1b3ff5);}return _0x4cc8c0['bind']('isEnabled')['to'](_0x4869e2,'isEnabled'),_0x4cc8c0['panelView']['children']['add'](_0x4920f2),_0x4cc8c0;}['_initializeController'](_0x3e55cb){const _0x3f12a3=this['editor'],_0x4174fa=_0x3f12a3['config'],_0x328ec1=_0x3f12a3['plugins']['get']('Annotations'),_0x5cfe97=_0x3f12a3['plugins']['get']('CommentsRepository'),_0xed1bfb=_0x3f12a3['plugins']['get']('EditorAnnotations'),_0x193dfe=_0x3f12a3['plugins']['get'](_0x5194d)['me'],_0x78ccfc=_0x4174fa['get']('trackChanges')['SuggestionThreadView'],_0x172eb8=_0x4174fa['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3be745,CommentThreadInputView:_0x31a1c6}=_0x3f12a3['plugins']['get']('CommentsUI');let _0x340bfb,_0x5bb42a,_0x6ab239;this['_annotationViews']['has'](_0x3e55cb['id'])?(_0x5bb42a=this['_annotationViews']['get'](_0x3e55cb['id']),_0x340bfb=_0x5bb42a['mainView']):(_0x340bfb=new _0x78ccfc(_0x3f12a3['locale'],_0x3e55cb,_0x193dfe,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4174fa['get']('comments.editorConfig'),'licenseKey':_0x4174fa['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4174fa['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4174fa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4174fa['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x19eca3(_0x4174fa['get']('locale'),_0x3f12a3['locale']),'CommentView':_0x4174fa['get']('comments')['CommentView'],'CommentsListView':_0x3be745,'CommentThreadInputView':_0x31a1c6,'SuggestionView':_0x172eb8}),_0x340bfb['suggestionView']['acceptButton']['on']('execute',()=>{_0x3f12a3['editing']['view']['focus']();}),_0x340bfb['suggestionView']['discardButton']['on']('execute',()=>{_0x3f12a3['editing']['view']['focus']();}),_0x5bb42a=_0x328ec1['createAnnotationView'](this['editor']['locale'],_0x340bfb),_0x5bb42a['bind']('isDirty')['to'](_0x340bfb,'isDirty'),_0x5bb42a['bind']('length')['to'](_0x340bfb),_0x5bb42a['bind']('type')['to'](_0x340bfb,'type',_0x1db589=>'suggestion-'+_0x1db589),_0x340bfb['on']('escape',()=>{_0x6ab239['fire']('escape');}),this['_annotationViews']['set'](_0x3e55cb['id'],_0x5bb42a));const _0x37cbd9=_0x5cfe97['createCommentThreadController'](_0x3e55cb['commentThread'],_0x340bfb),_0x953471=new pe(_0x3f12a3,_0x3e55cb,_0x340bfb,_0x37cbd9),_0x34394c=_0x3e55cb['getAllAdjacentSuggestions']()['filter'](_0x1a5d9b=>_0x1a5d9b['isInContent']);_0x340bfb['descriptionParts']=_0x3f12a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x34394c),this['_suggestionToController']['set'](_0x3e55cb,_0x953471),this['_viewToController']['set'](_0x340bfb,_0x953471);const _0x456a48=()=>{const _0x571584=[],_0x3735a2=_0x3e55cb['getAllAdjacentSuggestions']()['filter'](_0x2c56a9=>_0x2c56a9['isInContent']);for(const _0x2eea0c of _0x3735a2)_0x571584['push'](..._0x2eea0c['getMarkers']());return _0x1680fe(_0x3f12a3['editing'],_0x571584);};_0x6ab239=_0x328ec1['createAnnotation']({'view':_0x5bb42a,'target':_0x456a48,'type':()=>'suggestion-'+_0x953471['view']['type'],'isVisible':!!_0x456a48()}),_0x5cfe97['_bindAnnotationToEditors'](_0x340bfb,_0x6ab239),_0x328ec1['add'](_0x6ab239),_0xed1bfb['registerAnnotation'](_0x6ab239);}['_destroyController'](_0x11415f){const _0xbc413b=this['editor']['plugins']['get']('CommentsRepository'),_0x2dafde=this['editor']['plugins']['get']('Annotations'),_0x40f666=this['_suggestionToController']['get'](_0x11415f),_0x2f0551=_0x40f666['view'],_0x2e648d=_0x2dafde['getByInnerView'](_0x2f0551);_0xbc413b['_unbindEditors'](_0x2f0551),_0x2e648d&&_0x2dafde['remove'](_0x2e648d),this['_suggestionToController']['delete'](_0x11415f),this['_viewToController']['delete'](_0x2f0551),_0x40f666['destroy']();}['_updateController'](_0x49bb31){if(!_0x49bb31['isInContent']||!this['_suggestionToController']['has'](_0x49bb31))return;const _0x1b0eab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d96bc=this['_suggestionToController']['get'](_0x49bb31),_0x5be32e=_0x49bb31['getAllAdjacentSuggestions']();_0x3d96bc['view']['descriptionParts']=_0x1b0eab['descriptionFactory']['getDescriptions'](_0x5be32e);}['destroy'](){for(const _0x548b3c of this['_suggestionToController']['keys']())this['_destroyController'](_0x548b3c);for(const _0x138caa of this['_annotationViews']['values']())_0x138caa['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x326e2b){return'model'in _0x326e2b;}class Fe extends _0x3d96fc{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3413f1){this['editor']['plugins']['get'](d)['adapter']=_0x3413f1;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x33f402){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x33f402);}['getSuggestions']({skipNotAttached:_0x4787fc=!0x1,toJSON:_0x1e4271=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4787fc,'toJSON':_0x1e4271});}['getSuggestion'](_0x19256b){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x19256b);}}const p=['Pagination'];class re extends _0x3d96fc{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5c2451=this['editor'];if(_0x5c2451['config']['define']('trackChangesData.editorCreator',_0x326b07=>{const _0x38ae3d=_0x5c2451['model']['document']['getRootNames']()['reduce']((_0x3710bc,_0x37612a)=>(_0x3710bc[_0x37612a]='',_0x3710bc),{});return _0x5c2451['constructor']['create'](_0x38ae3d,_0x326b07);}),'function'!=typeof _0x5c2451['config']['get']('trackChangesData')['editorCreator'])throw new _0x44e9b4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2625c7){return P(this['editor'],!0x0,_0x2625c7);}['getDataWithDiscardedSuggestions'](_0x33b18f){return P(this['editor'],!0x1,_0x33b18f);}}class Ge extends _0x3d96fc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x592f77){function _0x246463(_0x47b339){return _0x47b339['map'](_0x4c279c=>String['fromCharCode'](_0x4c279c))['join']('');}super(_0x592f77),this['result']='end',_0x592f77[_0x246463([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x246463([0x76,0x69,0x65,0x77])][_0x246463([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x246463([0x61,0x75,0x74,0x6f]),_0x592f77[_0x246463([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x246463([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x246463([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x246463([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x246463([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 He(_0x309978){return void 0x0!==_0x309978['getRootsAttributes'];}async function P(_0x2108de,_0x114515,_0x2cd23a){const _0x20ee5a=_0x41beee(_0x2108de,p);_0x20ee5a['plugins']['push'](d,Ge),_0x20ee5a['rootsAttributes']=He(_0x2108de)?_0x2108de['getRootsAttributes']():void 0x0;const _0x56f7a4=document['createDocumentFragment'](),_0x258a86=_0x2108de['config']['get']('trackChangesData')['editorCreator'],_0x354099=await _0x258a86(_0x20ee5a,()=>function(_0x27db15){const _0x475a7c=document['createElement']('div');return _0x27db15['appendChild'](_0x475a7c),_0x475a7c;}(_0x56f7a4));!function(_0xef7577,_0x1ea3b8){const _0x5765ef=_0xef7577['model']['document']['getRootNames']()['reduce']((_0x444daf,_0x569c6a)=>(_0x444daf[_0x569c6a]=_0xef7577['data']['get']({'rootName':_0x569c6a}),_0x444daf),{}),_0x1c129c=_0xef7577['plugins']['get']('Users')['users']['map'](_0x4d5478=>({'id':_0x4d5478['id'],'name':_0x4d5478['name']})),_0x36c742=_0xef7577['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a0879=_0xef7577['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x554137=_0x1ea3b8['plugins']['get']('Users'),_0x524bec=_0x1ea3b8['plugins']['get']('TrackChangesEditing'),_0x29183c=_0x1ea3b8['plugins']['get']('CommentsRepository');for(const _0x4048e3 of _0x29183c['getCommentThreads']())_0x4048e3['remove']();for(const _0x2e4b6e of _0x1c129c)_0x554137['getUser'](_0x2e4b6e['id'])||_0x554137['addUser'](_0x2e4b6e);_0x554137['me']||_0x554137['useAnonymousUser']();for(const _0x365d03 of _0x3a0879)_0x29183c['addCommentThread'](_0x365d03);for(const _0x1b5684 of _0x36c742)_0x524bec['addSuggestionData'](_0x1b5684);_0x1ea3b8['data']['set'](_0x5765ef);}(_0x2108de,_0x354099),_0x354099['execute'](_0x114515?'acceptAllSuggestions':'discardAllSuggestions');const _0x19d890=He(_0x354099)?_0x354099['getFullData'](_0x2cd23a):_0x354099['data']['get'](_0x2cd23a);return await _0x354099['destroy'](),_0x19d890;}class Me extends _0x134a78{['options'];constructor(_0x19f9bf,_0x56185b){super(_0x19f9bf),this['options']=_0x56185b,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'](_0x5061e1,_0x52f1ac){if(!this['element'])return;const _0x30ee3e=[];for(const [_0x4b22c2,_0x1d511d]of _0x5061e1){const _0x279b69=document['createElement']('div');_0x279b69['setAttribute']('data-ck-root-name',_0x4b22c2),_0x279b69['className']=_0x1d511d['classes']+'\x20ck-track-changes-preview__root-container',_0x279b69['innerHTML']=_0x1d511d['content'],_0x30ee3e['push'](_0x279b69);}_0x52f1ac(this['element'],_0x30ee3e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x35cb10{constructor(_0x45db02){super(_0x45db02),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x316ebf=this['editor'],_0x46e1e0=_0x316ebf['locale'],_0x548ff4=_0x316ebf['plugins']['get']('Dialog');let _0x532ddc;const _0x268075=function(_0x2d167a){const _0x1fb231={};if('editables'in _0x2d167a['ui']['view']){for(const [_0xf3cf3b,_0x24d8f3]of Object['entries'](_0x2d167a['ui']['view']['editables']))_0x1fb231[_0xf3cf3b]=_0x24d8f3['element'];}else _0x1fb231[_0x2d167a['model']['document']['getRootNames']()[0x0]]=_0x2d167a['ui']['view']['editable']['element'];return _0x1fb231;}(_0x316ebf),_0x228282=function(_0x35a22e){let _0x43d336=0x0;for(const _0x52e39a of Object['values'](_0x35a22e))_0x43d336=Math['max'](_0x43d336,_0x52e39a['getBoundingClientRect']()['width']);let _0x298103=0x0;for(const _0x507ff7 of Object['values'](_0x35a22e))_0x298103+=_0x507ff7['getBoundingClientRect']()['height'];const _0x20dc74=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x497c6e=Math['min'](_0x298103,_0x20dc74);return{'width':_0x43d336,'height':_0x497c6e};}(_0x268075);_0x548ff4['show']({'id':'finalContentPreview','title':o(_0x46e1e0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x46e1e0,{'dialogRects':_0x228282}),'onHide':()=>{_0x532ddc['detachFromDom']();},'onShow':()=>{_0x316ebf['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3d162c=>{const _0x270e59=this['_standarizeRootsData'](_0x3d162c,_0x316ebf,_0x268075);_0x548ff4['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x270e59,_0x316ebf['config']['get']('trackChanges.preview.renderFunction'));}),_0x532ddc=new _0x5dcd19(_0x46e1e0,[_0x548ff4['view']]),_0x532ddc['attachToDom'](),_0x532ddc['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x316ebf['once']('destroy',()=>{_0x532ddc['detachFromDom']();});const _0x3c220a=_0x548ff4['view']['headerView']['class'];_0x548ff4['view']['headerView']['class']=_0x3c220a?_0x3c220a+'\x20ck-reset_all':'ck-reset_all',_0x548ff4['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x548ff4['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x580b06=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xee8243=_0x580b06['previewMode'],_0x4f0c1f={};if('$labels'===_0xee8243){for(const _0x321380 of _0x580b06['getMergeFieldsIds']())_0x4f0c1f[_0x321380]=_0x580b06['getLabel'](_0x321380)||_0x321380;}else{const _0x2637ad='$defaultValues'===_0xee8243?_0x580b06['getDefaultValues']():_0x580b06['getDataSetValues'](_0xee8243,!0x0);for(const _0x542590 of Object['entries'](_0x2637ad)){const [_0x234d6f,_0x16a6e6]=_0x542590;_0x4f0c1f[_0x234d6f]=null!==_0x16a6e6?_0x16a6e6:_0x580b06['getLabel'](_0x234d6f)||_0x234d6f;}}return{'mergeFieldsData':_0x4f0c1f};}['_standarizeRootsData'](_0x3d2b90,_0x5c1eb9,_0x441faa){let _0x11fef1;if('string'==typeof _0x3d2b90){const _0x1e1d37=_0x5c1eb9['model']['document']['getRootNames']()[0x0];_0x11fef1={[_0x1e1d37]:_0x3d2b90};}else _0x11fef1=_0x3d2b90;const _0x4d056d=this['_fixMediaEmbeds'](_0x11fef1,_0x5c1eb9),_0x3c5a17=function(_0x4399b8,_0xfae5d6){for(const [_0x502c5d,_0x42ebdf]of _0x4399b8)_0x42ebdf['classes']=_0xfae5d6[_0x502c5d]['classList']['value']['replace']('ck-focused','');return _0x4399b8;}(this['_sortRoots'](_0x5c1eb9)['reduce']((_0xf01845,_0x198a80)=>(_0xf01845['push']([_0x198a80,{'content':_0x4d056d[_0x198a80],'classes':''}]),_0xf01845),[]),_0x441faa);return _0x3c5a17;}['_fixMediaEmbeds'](_0xa3f348,_0x74c299){if(!_0x74c299['plugins']['has']('MediaEmbedEditing'))return _0xa3f348;const _0x4e47d1=_0x74c299['plugins']['get']('MediaEmbedEditing');for(const [_0x4129c8,_0x5df437]of Object['entries'](_0xa3f348)){const _0x397395=document['createElement']('div');_0x397395['innerHTML']=_0x5df437,(_0x397395['querySelectorAll']('figure.media')['forEach'](_0x481893=>{const _0x257997=_0x481893['querySelector']('oembed');if(_0x257997){const _0x2c63f5=_0x257997['getAttribute']('url');if(_0x2c63f5){const _0x28cb63=_0x4e47d1['registry']['getMediaViewElement'](new _0x19ae64(_0x74c299['editing']['view']['document']),_0x2c63f5,{'elementName':'','renderForEditingView':!0x0}),_0x4c61a1=document['createElement']('div');_0x4c61a1['classList']['add']('ck-media__wrapper'),_0x28cb63['render'](_0x4c61a1,_0x74c299['editing']['view']['domConverter']),_0x257997['replaceWith'](_0x4c61a1);}}}),_0xa3f348[_0x4129c8]=_0x397395['innerHTML']);}return _0xa3f348;}['_sortRoots'](_0x47c289){if(!function(_0x31e849){return void 0x0!==_0x31e849['getRootsAttributes'];}(_0x47c289))return _0x47c289['model']['document']['getRootNames']();const _0x33edf6=[],_0x1a57fb=new Map();for(const _0x327a5b of _0x47c289['model']['document']['getRootNames']()){const _0x1bd900=_0x47c289['editing']['view']['getDomRoot'](_0x327a5b)['getClientRects']()['item'](0x0);_0x33edf6['push'](_0x327a5b),_0x1a57fb['set'](_0x327a5b,_0x1bd900);}return _0x33edf6['sort']((_0x43eb61,_0x33c45a)=>{const _0x1cb49d=_0x1a57fb['get'](_0x43eb61),_0x210ab3=_0x1a57fb['get'](_0x33c45a);return _0x1cb49d['y']-_0x210ab3['y']||_0x1cb49d['x']-_0x210ab3['x'];}),_0x33edf6;}}class $e extends _0x3d96fc{static get['requires'](){return[re,_0x163972];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36d0e9){super(_0x36d0e9),_0x36d0e9['commands']['add']('previewFinalContent',new te(this['editor'])),_0x36d0e9['config']['define']('trackChanges.preview.renderFunction',(_0x16b514,_0x4dced6)=>{for(const _0x5bd6e7 of _0x4dced6)_0x16b514['appendChild'](_0x5bd6e7);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x496482,Plugin as _0xe680e7,PendingActions as _0x3db646}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x56f143,ObservableMixin as _0x290c21,uid as _0x29bcf7,priorities as _0x3771e3,insertToPriorityArray as _0x3bf6d0,toArray as _0x56ffe6,logWarning as _0x3e241f,getEnvKeystrokeText as _0x5e1f5f,FocusTracker as _0x47b4e3,KeystrokeHandler as _0x554820,Collection as _0x4d97d4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3cb433,IconCancel as _0x2259c8,IconTrackChanges as _0x2bbe84}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x267957,View as _0x434eb5,ViewCollection as _0x3162c6,FocusCycler as _0x3fedb7,UIModel as _0x14eac5,createDropdown as _0xf588af,SplitButtonView as _0x540529,addListToDropdown as _0x3e7092,MenuBarMenuView as _0x402c46,MenuBarMenuListView as _0x5a92db,ListSeparatorView as _0x2d45ef,MenuBarMenuListItemView as _0x591776,MenuBarMenuListItemButtonView as _0x4e41e1,BodyCollection as _0x1d3989,Dialog as _0x3ec4d3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x9e4cfc,hashObject as _0x547e54,surroundingMarkersDetector as _0x1bb4cb,FOCUS_ANNOTATION_KEYSTROKE as _0x27f0cb,AriaDescriptionView as _0x2d2058,setupThreadKeyboardNavigation as _0xa5c0ff,trimHtml as _0x5488c,UserView as _0x4f2257,LateFocusButtonView as _0x6543dc,getDateTimeFormatter as _0x3bd3af,getAllMarkersDomElementsSorted as _0x4fbd1e,sanitizeEditorConfig as _0x19ed98}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x55ee28,ModelLiveRange as _0x50a820,ModelLivePosition as _0x5da3ae,ViewDowncastWriter as _0xdc0055}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x19f8a1,toWidget as _0x2a9ddb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2ad9da,set as _0x55bf30,isEqual as _0x48888a,unset as _0xc03c91,omit as Ut}from'es-toolkit/compat';import{Delete as _0x37cb0f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5927bb}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x54ac1d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x496482{['_enabledCommands'];constructor(_0xd93544,_0x4c4502){super(_0xd93544),this['_enabledCommands']=_0x4c4502,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 _0x4fc735 of this['editor']['commands']['commands']())_0x4fc735['affectsData']&&!this['_enabledCommands']['has'](_0x4fc735)&&_0x4fc735['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x163263 of this['editor']['commands']['commands']())_0x163263['affectsData']&&!this['_enabledCommands']['has'](_0x163263)&&_0x163263['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x496482{['_suggestions'];constructor(_0x68b90b,_0x20e324){super(_0x68b90b),this['_suggestions']=_0x20e324,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x444678){const _0x3c8396=this['_suggestions']['get'](_0x444678);if(!_0x3c8396)throw new _0x56f143('track-changes-accept-suggestion-not-found',this);const _0xe528b6=_0x3c8396['getRanges']();this['editor']['model']['canEditAt'](_0xe528b6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3c8396);}}class $ extends _0x496482{['_suggestions'];constructor(_0x2287a3,_0x511427){super(_0x2287a3),this['_suggestions']=_0x511427,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x376924){const _0x1f9ddc=this['_suggestions']['get'](_0x376924);if(!_0x1f9ddc)throw new _0x56f143('track-changes-discard-suggestion-not-found',this);const _0x1fe320=_0x1f9ddc['getRanges']();this['editor']['model']['canEditAt'](_0x1fe320)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1f9ddc);}}function ls(_0xdda8bf,_0x11e46b){let _0xfa5906='';return _0xfa5906+=_0xdda8bf['split']('*')['map']((_0x28368b,_0x4a43ec)=>_0x4a43ec%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x28368b)+'</span>':Zt(_0x28368b))['join'](''),_0x11e46b&&(_0xfa5906+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x11e46b['value']+'\x22\x20title=\x22'+_0x11e46b['title']+'\x22></span>'),_0xfa5906;}function Zt(_0x3d73ca){const _0x1b57ff=document['createElement']('span');return _0x1b57ff['innerText']=_0x3d73ca,_0x1b57ff['innerHTML'];}function ts(_0x37fe0f){return _0x37fe0f['sort']((_0x572d0d,_0x2c2159)=>'attribute'===_0x572d0d['type']&&'attribute'!==_0x2c2159['type']?-0x1:'attribute'!==_0x572d0d['type']&&'attribute'===_0x2c2159['type']?0x1:'deletion'==_0x572d0d['type']&&'deletion'!=_0x2c2159['type']?-0x1:'deletion'!=_0x572d0d['type']&&'deletion'==_0x2c2159['type']?0x1:0x0);}function to(_0x2782ed,_0x5b4303){let _0x31e689,_0x45de8a=0x0;const _0x427e83=[],_0x43928c=_0x5b4303['schema'];for(;_0x45de8a<_0x2782ed['length'];){const _0x288ee4=_0x2782ed[_0x45de8a],_0x4b4704=_0x2782ed[_0x45de8a+0x1];_0x31e689||(_0x31e689=_0x5b4303['createPositionBefore'](_0x288ee4)),tn(_0x5b4303,_0x288ee4,_0x4b4704)||(_0x427e83['push'](_0x5b4303['createRange'](_0x31e689,_0x43928c['isObject'](_0x288ee4)?_0x5b4303['createPositionAfter'](_0x288ee4):_0x5b4303['createPositionAt'](_0x288ee4,'end'))),_0x31e689=null),_0x45de8a++;}return _0x427e83;}function tn(_0x2de396,_0x11ce80,_0xe5669f){if(!_0xe5669f)return!0x1;const _0x162823=_0x2de396['createPositionAfter'](_0x11ce80),_0x136cbf=_0x2de396['createPositionBefore'](_0xe5669f);return _0x162823['isTouching'](_0x136cbf);}function rs(_0x562ee4,_0x390a1b,_0x23ad0c){for(;_0x23ad0c['length'];){const _0x2c1f59=_0x23ad0c['splice'](0x0,0x64);_0x562ee4['change'](()=>{for(const _0x7aae38 of _0x2c1f59)_0x7aae38['isInContent']&&_0x390a1b['execute'](_0x7aae38['id']);});}}class M extends _0x496482{['_command'];['_suggestions'];constructor(_0x418fce,_0x38ce58,_0x1bb0ed){super(_0x418fce),this['_command']=_0x38ce58,this['_suggestions']=_0x1bb0ed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5f2fa7=Array['from'](this['_suggestions']['values']())['some'](_0x485b70=>_0x485b70['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5f2fa7;}['execute'](){const _0x53b59d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x399a7d of _0x53b59d){const _0x264c19=_0x399a7d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x264c19))return;}rs(this['editor']['model'],this['_command'],_0x53b59d);}}class B extends _0x496482{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1e554f,_0x52d4d2,_0x17c8ac){super(_0x1e554f),this['_command']=_0x52d4d2,this['_suggestions']=_0x17c8ac,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5a225d=this['editor']['model']['document']['selection'],_0x9c1ce9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x50ed4f,_0x5eb167){const _0x5608ae=Array['from'](_0x50ed4f['getRanges']()),_0x1c2af9=new Set();for(const _0x5a8943 of _0x5eb167)if(_0x5a8943['isInContent']){for(const _0x1c636b of _0x5608ae)for(const _0x33921a of _0x5a8943['getRanges']())(_0x1c636b['isIntersecting'](_0x33921a)||_0x50ed4f['isCollapsed']&&!_0x5a8943['isMultiRange']&&_0x5a8943['next']&&_0x33921a['end']['isTouching'](_0x1c636b['start']))&&_0x1c2af9['add'](_0x5a8943);}return _0x1c2af9;}(_0x5a225d,_0x9c1ce9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3f33cb=ts(Array['from'](this['_selectedSuggestions']));for(const _0x357fb8 of _0x3f33cb){const _0x1ff21a=_0x357fb8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1ff21a))return;}rs(this['editor']['model'],this['_command'],_0x3f33cb);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x290c21(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x576074,_0x1f62f4){super(),this['id']=_0x1f62f4['id'],this['type']=_0x1f62f4['type'],this['subType']=_0x1f62f4['subType']||null,this['author']=_0x1f62f4['author'],this['creator']=_0x1f62f4['creator']||_0x1f62f4['author'],this['isExternal']=Boolean(_0x1f62f4['attributes']&&_0x1f62f4['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1f62f4['originalSuggestionId']||null,this['_model']=_0x576074,this['_onAccept']=_0x1f62f4['onAccept'],this['_onDiscard']=_0x1f62f4['onDiscard'],this['_onAttributesChange']=_0x1f62f4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1f62f4['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 _0x38837b=this;for(;_0x38837b['previous'];)_0x38837b=_0x38837b['previous'];return _0x38837b;}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'](_0x5386ca){this['_markerNames']['add'](_0x5386ca);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44c6ca=>this['_model']['markers']['get'](_0x44c6ca))['filter'](_0xc4f79d=>_0xc4f79d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1f558f=>{for(const _0x48e1a3 of this['getMarkers']())_0x1f558f['removeMarker'](_0x48e1a3);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ae526){this['_model']['change'](_0x3d92e4=>{_0x3d92e4['removeMarker'](_0x1ae526);}),this['_markerNames']['delete'](_0x1ae526);}['addRange'](_0x242db4){const _0x20ed94='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x20ed94),this['_model']['change'](_0x7a793b=>{_0x7a793b['addMarker'](_0x20ed94,{'range':_0x242db4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4832fb){for(const _0x5bb463 of this['getRanges']())if(_0x5bb463['isIntersecting'](_0x4832fb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x277206=>_0x277206['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c8f0a,_0x615c04)=>[..._0x2c8f0a,..._0x615c04['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x292911=this['getRanges']();if(0x1!=_0x292911['length'])return null;const _0x1c4dec=_0x292911[0x0],_0x10947c=_0x1c4dec['start']['nodeAfter'],_0x141b13=_0x1c4dec['end']['nodeBefore'];return _0x10947c instanceof _0x55ee28?_0x10947c!=_0x141b13?null:_0x10947c: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 _0x464fb2=[];let _0x4e96e1=this['head'];for(;_0x4e96e1;)_0x464fb2['push'](_0x4e96e1),_0x4e96e1=_0x4e96e1['next'];return _0x464fb2;}['setAttribute'](_0x57282,_0x521e50){const _0x548f31=_0x2ad9da(this['attributes']);_0x55bf30(_0x548f31,_0x57282,_0x521e50),_0x48888a(_0x548f31,this['attributes'])||(this['attributes']=_0x548f31,this['_onAttributesChange'](_0x548f31));}['removeAttribute'](_0x46b1c3){const _0x3b8dcc=_0x2ad9da(this['attributes']);_0xc03c91(_0x3b8dcc,_0x46b1c3),_0x48888a(_0x3b8dcc,this['attributes'])||(this['attributes']=_0x3b8dcc,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 _0x29bcf7()['substr'](0x1,0x5);}}function o(_0x5a0591,_0x2ff201,_0x53e2e6){const _0x1ba2d2=_0x5a0591['t'],t=_0x5a0591['t'];switch(_0x2ff201){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',_0x53e2e6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x53e2e6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x53e2e6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x53e2e6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x53e2e6);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',_0x53e2e6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x53e2e6);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',_0x53e2e6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x53e2e6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x53e2e6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x53e2e6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x53e2e6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x53e2e6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x53e2e6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x53e2e6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x53e2e6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x53e2e6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x53e2e6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x53e2e6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x53e2e6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x53e2e6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x53e2e6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x53e2e6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x53e2e6);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x53e2e6);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x53e2e6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x53e2e6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x53e2e6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x53e2e6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x53e2e6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x53e2e6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x53e2e6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x53e2e6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x53e2e6);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x53e2e6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x53e2e6);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'},_0x53e2e6);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x53e2e6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x53e2e6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x53e2e6);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 _0x1ba2d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x53e2e6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1ba2d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x53e2e6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x53e2e6);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'},_0x53e2e6);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'},_0x53e2e6);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'},_0x53e2e6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ff201;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x15cf59,_0x50b0a1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x15cf59,this['_locale']=_0x50b0a1;}['getDescriptions'](_0x4e9e02){const _0x454b17=[],_0x146a0d=new Set(),_0x1c43eb=new Set();for(let _0x194c34=0x0;_0x194c34<_0x4e9e02['length'];_0x194c34++){const _0x1881d2=_0x4e9e02[_0x194c34];if(!_0x1881d2['isInContent'])continue;const _0x64ebed=this['_handleCustomCallbackDescription'](_0x1881d2);if(_0x64ebed){if(null!=_0x1881d2['subType']){if(_0x146a0d['has'](_0x1881d2['subType']))continue;_0x146a0d['add'](_0x1881d2['subType']);}_0x454b17['push'](_0x64ebed);}else{if('attribute'==_0x1881d2['type']){const _0x37b80b=_0x1881d2['data']['key'];if(_0x1c43eb['has'](_0x37b80b))continue;_0x1c43eb['add'](_0x1881d2['data']['key']),_0x37b80b==m?this['_handleRenameSuggestionDescription'](_0x454b17,_0x1881d2):this['_handleAttributeSuggestionDescription'](_0x454b17,_0x1881d2);continue;}'insertion'!=_0x1881d2['type']&&'deletion'!=_0x1881d2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x454b17,_0x1881d2,_0x4e9e02[_0x194c34+0x1]);}}return this['_resolveDescriptionItems'](_0x454b17);}['registerDescriptionCallback'](_0x4c39c8){this['_customCallbacks']['push'](_0x4c39c8);}['registerElementLabel'](_0x472153,_0x1f3d93,_0x57a04c=_0x3771e3['normal']){'function'==typeof _0x472153?_0x3bf6d0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x472153,'label':_0x1f3d93,'priority':_0x57a04c}):this['_itemLabels']['set'](_0x472153,_0x1f3d93);}['registerAttributeLabel'](_0x22e22d,_0x39cfbe){this['_attributeLabels']['set'](_0x22e22d,_0x39cfbe);}['getItemLabel'](_0x34c33d,_0xec2120=0x1){let _0x4f18d7;for(const _0x3928b6 of this['_itemLabelsCallbacks'])if(_0x3928b6['matchingCallback'](_0x34c33d)){_0x4f18d7=_0x3928b6['label'];break;}return _0x4f18d7||(_0x4f18d7=this['_itemLabels']['get'](_0x34c33d['name'])),_0x4f18d7?_0x4f18d7(_0xec2120):0x1!==_0xec2120?_0xec2120+'\x20'+_0x34c33d['name']+'s':''+_0x34c33d['name'];}['_addDescriptionItems'](_0x18a840,_0x10e36d){const _0x5a1a79=_0x10e36d['getFirstRange']()['getWalker'](),_0x4f72d1='insertion'==_0x10e36d['type']?'add':'remove';for(const _0x275af9 of _0x5a1a79){const _0x32add5=_0x275af9['item'],_0x173df9=_0x18a840[_0x18a840['length']-0x1];if(_0x32add5['is']('$textProxy'))_0x173df9&&_0x173df9['type']['indexOf']('Container')>-0x1&&_0x18a840['pop'](),_0x173df9&&'text'==_0x173df9['type']?_0x173df9[_0x4f72d1]+=_0x32add5['data']:_0x18a840['push']({'type':'text','add':'add'==_0x4f72d1?_0x32add5['data']:'','remove':'remove'==_0x4f72d1?_0x32add5['data']:''});else{if(this['_schema']['isObject'](_0x32add5)){const _0x1de297=_0x32add5;if(_0x173df9&&_0x173df9['type']['indexOf']('Container')>-0x1&&_0x18a840['pop'](),'elementEnd'==_0x275af9['type'])continue;_0x173df9&&_0x173df9['type']==_0x4f72d1+'Object'&&_0x173df9['element']['name']==_0x1de297['name']?_0x173df9['quantity']++:_0x18a840['push']({'type':_0x4f72d1+'Object','element':_0x1de297,'quantity':0x1}),_0x5a1a79['skip'](_0x1550c9=>!('elementEnd'==_0x1550c9['type']&&_0x1550c9['item']==_0x32add5));}else{if(this['_schema']['checkChild'](_0x32add5,'$text')||_0x32add5['is']('element','softBreak')){const _0x4a2389=_0x32add5;if('add'==_0x4f72d1&&'elementStart'==_0x275af9['type']||'remove'==_0x4f72d1&&'elementEnd'==_0x275af9['type'])continue;if(_0x173df9&&-0x1==_0x173df9['type']['indexOf']('Container')){'text'==_0x173df9['type']&&(_0x173df9[_0x4f72d1]+='\x0a');continue;}let _0x135096;if(_0x135096='add'==_0x4f72d1?_0x4a2389['nextSibling']&&!this['_schema']['isObject'](_0x4a2389['nextSibling'])?_0x4a2389['nextSibling']:null:_0x4a2389['previousSibling']&&!this['_schema']['isObject'](_0x4a2389['previousSibling'])?_0x4a2389['previousSibling']:null,_0x4a2389['isEmpty']||_0x135096&&_0x135096['isEmpty']){const _0x5de5e1=_0x135096&&_0x135096['isEmpty']?_0x135096:_0x4a2389;_0x173df9&&_0x173df9['type']==_0x4f72d1+'EmptyContainer'&&_0x173df9['element']['name']==_0x5de5e1['name']?_0x173df9['quantity']++:_0x18a840['push']({'type':_0x4f72d1+'EmptyContainer','element':_0x5de5e1,'quantity':0x1});}else _0x18a840['push']({'type':_0x4f72d1+'Container','element':_0x4a2389});}}}}}['_resolveDescriptionItems'](_0x3337ee){const _0x20f951=this['_locale'],_0x2bd911=[],_0x292032=[],_0xdb06bd=[];for(const _0x48f4f5 of _0x3337ee)switch(_0x48f4f5['type']){case'text':if(_0x48f4f5['add']=_0x48f4f5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x48f4f5['remove']=_0x48f4f5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x48f4f5['add']&&''!=_0x48f4f5['remove']){_0x2bd911['push']({'type':'replace','content':o(_0x20f951,'REPLACE_TEXT',['\x22'+_0x48f4f5['remove']+'\x22','\x22'+_0x48f4f5['add']+'\x22'])});continue;}if(null!=_0x48f4f5['add']['match'](/^ +$/)){_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Insert:*\x20%0',o(_0x20f951,'ELEMENT_SPACE',_0x48f4f5['add']['length']))});continue;}if(null!=_0x48f4f5['remove']['match'](/^ +$/)){_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Remove:*\x20%0',o(_0x20f951,'ELEMENT_SPACE',_0x48f4f5['remove']['length']))});continue;}if(''!=_0x48f4f5['add']){_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Insert:*\x20%0','\x22'+_0x48f4f5['add']+'\x22')});continue;}_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Remove:*\x20%0','\x22'+_0x48f4f5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Insert:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Remove:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'addContainer':_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Split:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'removeContainer':_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Merge:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'addFormat':_0x292032['push'](_0x48f4f5['key']);continue;case'removeFormat':_0xdb06bd['push'](_0x48f4f5['key']);continue;default:_0x2bd911['push'](_0x48f4f5);}if(_0x292032['length']){const _0x3d9608=_0x292032['map'](_0x4535e6=>this['_attributeLabels']['has'](_0x4535e6)?this['_attributeLabels']['get'](_0x4535e6):_0x4535e6)['join'](',\x20');_0x2bd911['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3d9608)});}if(_0xdb06bd['length']){const _0x168b6d=_0xdb06bd['map'](_0x186bf6=>this['_attributeLabels']['has'](_0x186bf6)?this['_attributeLabels']['get'](_0x186bf6):_0x186bf6)['join'](',\x20');_0x2bd911['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x168b6d)});}return _0x2bd911;}['_handleCustomCallbackDescription'](_0x49b660){for(const _0x3296d9 of this['_customCallbacks']){const _0x1e8e31=_0x3296d9(_0x49b660);if(_0x1e8e31&&'type'in _0x1e8e31)return _0x1e8e31;}}['_handleAttributeSuggestionDescription'](_0xbdf873,_0x1b1801){const _0x3fb4c8=_0x1b1801['data'],_0x4ee375=void 0x0===_0x3fb4c8['newValue']?'removeFormat':'addFormat';_0xbdf873['push']({'type':_0x4ee375,'key':_0x3fb4c8['key']});}['_handleRenameSuggestionDescription'](_0x19c463,_0x451a76){_0x19c463['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x451a76['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3a40fc,_0x13874f,_0x27f1fa){if(this['_addDescriptionItems'](_0x3a40fc,_0x13874f),_0x27f1fa&&_0x27f1fa['getFirstRange']()&&!_0x13874f['getFirstRange']()['end']['isEqual'](_0x27f1fa['getFirstRange']()['start'])){const _0x113607=_0x3a40fc[_0x3a40fc['length']-0x1],_0x54bbee='insertion'==_0x13874f['type']?'add':'remove';_0x113607&&'text'==_0x113607['type']&&(_0x113607[_0x54bbee]+='\x0a');}}}class O extends _0xe680e7{['afterInit'](){const _0x50dc9d=this['editor'],_0x1ee3ba=_0x50dc9d['plugins']['get']('TrackChangesEditing');_0x50dc9d['commands']['get']('showAIAssistant')&&_0x1ee3ba['enableCommand']('showAIAssistant');}}class E extends _0xe680e7{['afterInit'](){const _0x5504f0=this['editor'],_0x33ed3b=_0x5504f0['locale'];if(!_0x5504f0['plugins']['has']('AlignmentEditing'))return;const _0x23cd62=_0x5504f0['plugins']['get']('TrackChangesEditing');_0x23cd62['enableDefaultAttributesIntegration']('alignment'),_0x23cd62['registerBlockAttribute']('alignment'),_0x23cd62['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x33ed3b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3971ba=this['editor'],_0x5551d9=_0x3971ba['locale'];_0x3971ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a2667=>{if('formatBlock'!=_0x2a2667['type'])return;const {data:_0x2f64b6}=_0x2a2667;if(_0x2f64b6&&'alignment'==_0x2f64b6['commandName']){const _0x42d556=_0x2f64b6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5551d9,'*Format:*\x20%0',function(_0x238c85){switch(_0x238c85){case'left':return o(_0x5551d9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5551d9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5551d9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5551d9,'FORMAT_JUSTIFY_TEXT');}}(_0x42d556))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xe680e7{['afterInit'](){const _0x5396be=this['editor'],_0x21acc8=_0x5396be['plugins']['get']('TrackChangesEditing'),_0x4a1c7a=_0x5396be['locale'];for(const _0x36922c of ti){if(!_0x5396be['plugins']['has'](_0x36922c))continue;const _0x4e0dc8=_0x36922c['slice'](0x0,-0x7)['toLowerCase'](),_0x453d71='FORMAT_'+_0x4e0dc8['toUpperCase']();_0x21acc8['enableDefaultAttributesIntegration'](_0x4e0dc8),_0x21acc8['registerInlineAttribute'](_0x4e0dc8),_0x21acc8['descriptionFactory']['registerAttributeLabel'](_0x4e0dc8,o(_0x4a1c7a,_0x453d71));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cd65=this['editor'],_0x6ca807=_0x5cd65['locale'],_0x745d22=_0x5cd65['plugins']['get']('TrackChangesEditing');function _0x3822c8(_0x459356,_0x524ea4){_0x745d22['descriptionFactory']['registerDescriptionCallback'](_0x39bb12=>{if('formatInline'!=_0x39bb12['type'])return;const {data:_0x32f8ef}=_0x39bb12;return _0x32f8ef&&_0x32f8ef['commandName']===_0x459356?_0x32f8ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6ca807,'*Format:*\x20%0',_0x524ea4)}:{'type':'format','content':o(_0x6ca807,'*Remove\x20format:*\x20%0',_0x524ea4)}:void 0x0;});}_0x3822c8('bold',o(_0x6ca807,'FORMAT_BOLD')),_0x3822c8('italic',o(_0x6ca807,'FORMAT_ITALIC')),_0x3822c8('underline',o(_0x6ca807,'FORMAT_UNDERLINE')),_0x3822c8('code',o(_0x6ca807,'FORMAT_CODE')),_0x3822c8('strikethrough',o(_0x6ca807,'FORMAT_STRIKETHROUGH')),_0x3822c8('subscript',o(_0x6ca807,'FORMAT_SUBSCRIPT')),_0x3822c8('superscript',o(_0x6ca807,'FORMAT_SUPERSCRIPT'));}}class U extends _0xe680e7{['afterInit'](){const _0x2c36af=this['editor'],_0x33df41=_0x2c36af['locale'];if(!_0x2c36af['plugins']['has']('BlockQuoteEditing'))return;const _0x160f8=_0x2c36af['plugins']['get']('TrackChangesEditing'),_0x551fb9=this['editor']['commands']['get']('blockQuote');_0x160f8['enableCommand']('blockQuote',(_0x53a45f,_0x3af5b0={})=>{const _0x4f1fd6=this['editor']['model']['document']['selection'],_0x5480e6=_0x3af5b0&&void 0x0!==_0x3af5b0['forceValue']?_0x3af5b0['forceValue']:!_0x551fb9['value'];let _0x5d32de=[];if(_0x5480e6){const _0x5f0477=Array['from'](_0x4f1fd6['getSelectedBlocks']())['filter'](_0x2dcdd8=>oo(_0x2dcdd8)||function(_0x561bbc,_0x47b81e){const _0x198bad=_0x47b81e['checkChild'](_0x561bbc['parent'],'blockQuote'),_0x50c935=_0x47b81e['checkChild'](['$root','blockQuote'],_0x561bbc);return _0x198bad&&_0x50c935;}(_0x2dcdd8,this['editor']['model']['schema']));_0x5d32de=to(_0x5f0477,_0x2c36af['model']);}else{const _0x10b7a2=Array['from'](_0x4f1fd6['getSelectedBlocks']())['filter'](_0x2e9ee8=>oo(_0x2e9ee8));_0x5d32de=to(_0x10b7a2,_0x2c36af['model']);}_0x2c36af['model']['change'](()=>{for(const _0x4c25cd of _0x5d32de)_0x160f8['markBlockFormat'](_0x4c25cd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5480e6}]});});}),_0x160f8['descriptionFactory']['registerDescriptionCallback'](_0x5c31e9=>{const {data:_0x568a47}=_0x5c31e9;if(_0x568a47&&'blockQuote'==_0x568a47['commandName']){const _0x4e37af=o(_0x33df41,'ELEMENT_BLOCK_QUOTE');return _0x568a47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33df41,'*Set\x20format:*\x20%0',_0x4e37af)}:{'type':'format','content':o(_0x33df41,'*Remove\x20format:*\x20%0',_0x4e37af)};}});}}function oo(_0x37eb5d){return'blockQuote'==_0x37eb5d['parent']['name'];}class V extends _0xe680e7{['afterInit'](){const _0x1fe498=this['editor'],_0x461943=_0x1fe498['locale'],_0x81c968=_0x1fe498['plugins']['get']('TrackChangesEditing');_0x1fe498['plugins']['has']('BookmarkEditing')&&(_0x81c968['enableCommand']('insertBookmark'),_0x81c968['enableDefaultAttributesIntegration']('updateBookmark'),_0x81c968['registerBlockAttribute']('bookmarkId'),_0x81c968['descriptionFactory']['registerDescriptionCallback'](_0x186a9b=>{if('insertion'!=_0x186a9b['type']&&'deletion'!=_0x186a9b['type']&&'attribute'!=_0x186a9b['type'])return;const _0x27e09f=_0x186a9b['getContainedElement']();if(null==_0x27e09f)return;if(!_0x27e09f['is']('element','bookmark'))return;const _0x592494=_0x27e09f['getAttribute']('bookmarkId');if('insertion'==_0x186a9b['type'])return{'type':'insertion','content':o(_0x461943,'*Insert:*\x20%0','\x22'+_0x592494+'\x22\x20'+o(_0x461943,'ELEMENT_BOOKMARK'))};if('deletion'==_0x186a9b['type'])return{'type':'deletion','content':o(_0x461943,'*Remove:*\x20%0','\x22'+_0x592494+'\x22\x20'+o(_0x461943,'ELEMENT_BOOKMARK'))};const {data:_0xfa72a9}=_0x186a9b;if(!_0xfa72a9||'bookmarkId'!=_0xfa72a9['key'])return;return{'type':'format','content':o(_0x461943,'*Set\x20bookmark:*\x20%0','\x22'+_0xfa72a9['newValue']+'\x22')};}));}}class F extends _0xe680e7{['afterInit'](){const _0x36b1ed=this['editor'];_0x36b1ed['plugins']['has']('CaseChange')&&(_0x36b1ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36b1ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36b1ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xe680e7{['afterInit'](){const _0x25b689=this['editor'];_0x25b689['commands']['get']('ckbox')&&_0x25b689['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xe680e7{['afterInit'](){const _0x58545c=this['editor'];if(!_0x58545c['plugins']['has']('CodeBlock'))return;const _0x5e4ad0=_0x58545c['plugins']['get']('TrackChangesEditing'),_0x274dce=_0x58545c['locale'],_0x2d5c7f=_0x58545c['config']['get']('codeBlock')['languages'],_0xeed1dd=_0x58545c['commands']['get']('codeBlock');_0x5e4ad0['enableCommand']('indentCodeBlock'),_0x5e4ad0['enableCommand']('outdentCodeBlock'),_0x5e4ad0['enableCommand']('codeBlock',(_0x5e99ee,_0x472869={})=>{const _0x2dfbf1=_0x58545c['model'],_0x12eb0d=_0x58545c['model']['document']['selection'],_0x3898e3=_0x472869&&void 0x0!==_0x472869['forceValue']?_0x472869['forceValue']:!_0xeed1dd['value'];let _0x202b5d;_0x472869['language']||(_0x472869['language']=_0x2d5c7f[0x0]['language']),_0x202b5d=_0x3898e3?Array['from'](_0x12eb0d['getSelectedBlocks']())['filter'](_0x52ac05=>co(_0x52ac05)||function(_0xe04058,_0x556574){if(_0xe04058['is']('rootElement')||_0x556574['isLimit'](_0xe04058))return!0x1;return _0x556574['checkChild'](_0xe04058['parent'],'codeBlock');}(_0x52ac05,_0x2dfbf1['schema'])):Array['from'](_0x12eb0d['getSelectedBlocks']())['filter'](_0x12cdd3=>co(_0x12cdd3));const _0x317831=to(_0x202b5d,_0x2dfbf1);_0x2dfbf1['change'](()=>{for(const _0x407e1a of _0x317831)_0x5e4ad0['markBlockFormat'](_0x407e1a,{'commandName':'codeBlock','commandParams':[{..._0x472869,'forceValue':_0x3898e3}],'formatGroupId':'blockName'});});}),(_0x5e4ad0['descriptionFactory']['registerElementLabel']('codeBlock',_0x1e78d3=>o(_0x274dce,'ELEMENT_CODE_BLOCK',_0x1e78d3)),_0x5e4ad0['descriptionFactory']['registerDescriptionCallback'](_0x210ff5=>{if('formatBlock'!=_0x210ff5['type'])return;const _0x1f8b1c=_0x274dce['t'],{data:_0x1d0d94}=_0x210ff5;if(!_0x1d0d94||'codeBlock'!=_0x1d0d94['commandName'])return;const _0x4b845c=_0x1d0d94['commandParams'][0x0]['language'],_0x37f4b8=_0x1f8b1c(_0x2d5c7f['find'](_0x3a2e22=>_0x3a2e22['language']===_0x4b845c)['label'])['toLowerCase']();return _0x1d0d94['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x274dce,'*Set\x20format:*\x20%0',o(_0x274dce,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37f4b8+')')}:{'type':'format','content':o(_0x274dce,'*Remove\x20format:*\x20%0',o(_0x274dce,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x34cc1d){return'codeBlock'==_0x34cc1d['name'];}class J extends _0xe680e7{['afterInit'](){const _0x5dd943=this['editor'];if(!_0x5dd943['plugins']['has']('CommentsEditing'))return;_0x5dd943['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11cf6e,_0x501919,_0x5eaea1){const _0x37a041=[];for(const _0x5668cb of _0x501919['getItems']())_0x5668cb['hasAttribute'](_0x11cf6e)&&_0x37a041['push'](_0x5eaea1['createRangeOn'](_0x5668cb));return _0x37a041;}function De(_0x22c5f6,_0xf2dfcb,{showActiveMarker:_0x3c98d=!0x0}={}){const _0x9afe90=_0x22c5f6['plugins']['get']('TrackChangesEditing');return(_0x4ed4c6,_0x3b2666,_0x202014)=>{if(!_0x202014['consumable']['test'](_0x3b2666['markerRange'],_0x4ed4c6['name']))return;const _0x5464f5=_0x3b2666['markerRange']['getWalker'](),_0x3dbca8=_0x3b2666['markerRange']['start'],_0x3e2c46=_0x22c5f6['model']['schema'];let _0x189283=null,_0x1bf25c=null,_0x48b725=!0x1,_0x52e52e=!0x1;for(const _0x205e67 of _0x5464f5){const _0x26642c=_0x205e67['item'];_0x48b725=_0x48b725||_0x3e2c46['isContent'](_0x26642c);const _0x1c61c9=_0x202014['mapper']['toViewElement'](_0x26642c);if(_0x1c61c9&&_0x1c61c9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x205e67['type']&&(_0x3e2c46['isBlock'](_0x26642c)&&!_0x3e2c46['isLimit'](_0x26642c)&&(_0x26642c['nextSibling']||_0x3dbca8['isAtEnd']?_0x189283&&_0x189283['parent']==_0x26642c||(_0x189283=_0x26642c,_0x5e71d1(_0x205e67['previousPosition']),_0x52e52e=!0x0):_0x1bf25c=_0x1bf25c||_0x205e67['previousPosition']));}function _0x5e71d1(_0x13894e){const {id:_0x34a37e,authorId:_0x497f5b}=_0x9afe90['_splitMarkerName'](_0x3b2666['markerName']),_0x4e0a2d=_0x202014['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf2dfcb,'data-suggestion':_0x34a37e,'data-author-id':_0x497f5b}),_0x3c61d5=_0x202014['mapper']['toViewPosition'](_0x13894e);_0x3c98d&&_0x9afe90['activeMarkers']['includes'](_0x3b2666['markerName'])&&_0x202014['writer']['addClass']('ck-suggestion-marker--active',_0x4e0a2d),_0x202014['writer']['insert'](_0x3c61d5,_0x4e0a2d),_0x202014['mapper']['bindElementToMarker'](_0x4e0a2d,_0x3b2666['markerName']);}_0x48b725||_0x52e52e||!_0x1bf25c||_0x5e71d1(_0x1bf25c);};}class K extends _0xe680e7{static get['requires'](){return[_0x37cb0f];}['init'](){const _0x56becb=this['editor'],_0x4298a1=_0x56becb['plugins']['get']('TrackChangesEditing');_0x4298a1['enableCommand']('delete');const _0x9b7d90=_0x56becb['commands']['get']('deleteForward');_0x4298a1['enableCommand']('deleteForward',(_0x4e83db,_0x3b83f1={})=>{const _0x46cb85=_0x56becb['model']['createSelection'](_0x56becb['model']['document']['selection']);_0x46cb85['isCollapsed']&&_0x56becb['model']['modifySelection'](_0x46cb85,{'direction':'forward','unit':_0x3b83f1['unit']});const _0x20d7a4=_0x46cb85['getFirstRange'](),_0x156ca6=_0x50a820['fromRange'](_0x20d7a4);let _0x33cbf2;_0x4e83db(_0x3b83f1),_0x33cbf2='$graveyard'==_0x156ca6['root']['rootName']?_0x56becb['model']['createRange'](_0x20d7a4['start']):_0x56becb['model']['createRange'](_0x156ca6['start'],_0x156ca6['end']),_0x156ca6['detach'](),_0x56becb['model']['enqueueChange'](_0x9b7d90['buffer']['batch'],_0xa02549=>{_0x9b7d90['buffer']['lock'](),_0xa02549['setSelection'](_0xa02549['createRange'](_0x33cbf2['end'])),_0x9b7d90['buffer']['unlock']();});}),_0x56becb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x56becb,'merge'),{'priority':'high'}),_0x56becb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x547fbe,_0x5e97c5,_0x5f4b7f)=>{_0x5f4b7f['options']['showSuggestionHighlights']&&De(_0x56becb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x547fbe,_0x5e97c5,_0x5f4b7f);},{'priority':'high'}),_0x56becb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42dbb8,_0x3d7513,_0x183147)=>{const _0xb3ad1b=_0x183147['mapper']['markerNameToElements'](_0x3d7513['markerName']);if(_0xb3ad1b){for(const _0x56c423 of _0xb3ad1b)_0x56c423['is']('uiElement')&&(_0x183147['mapper']['unbindElementFromMarkerName'](_0x56c423,_0x3d7513['markerName']),_0x183147['writer']['remove'](_0x56c423));}},{'priority':'high'});}}class H extends _0xe680e7{['afterInit'](){const _0x419d73=this['editor'];if(!_0x419d73['plugins']['has']('ListEditing'))return;const _0x5d0712=_0x419d73['locale'],_0x46ad54=_0x419d73['plugins']['get']('TrackChangesEditing'),_0x3c59d8=_0x419d73['plugins']['has']('TodoListEditing'),_0x980703=!!_0x419d73['config']['get']('list.multiBlock');function _0x51d2c3(_0x4d09fd){return{'type':'format','content':''+o(_0x5d0712,'*Set\x20format:*\x20%0',_0x4d09fd)};}function _0x1e421a(_0x35e39e){return{'type':'format','content':''+o(_0x5d0712,'*Remove\x20format:*\x20%0',_0x35e39e)};}_0x46ad54['enableDefaultAttributesIntegration']('numberedList'),_0x46ad54['enableDefaultAttributesIntegration']('bulletedList'),_0x46ad54['enableDefaultAttributesIntegration']('customNumberedList'),_0x46ad54['enableDefaultAttributesIntegration']('customBulletedList'),_0x46ad54['enableDefaultAttributesIntegration']('indentList'),_0x46ad54['enableDefaultAttributesIntegration']('outdentList'),_0x46ad54['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x46ad54['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x46ad54['registerBlockAttribute']('listItemId'),_0x46ad54['registerBlockAttribute']('listType'),_0x46ad54['registerBlockAttribute']('listIndent'),_0x980703&&(_0x46ad54['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x46ad54['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3c59d8&&(_0x46ad54['enableDefaultAttributesIntegration']('todoList'),_0x46ad54['enableDefaultAttributesIntegration']('checkTodoList'),_0x46ad54['registerBlockAttribute']('todoListChecked'),_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x19c7b3=>{const {data:_0x3ea8e5}=_0x19c7b3;if(_0x3ea8e5&&'todoListChecked'==_0x3ea8e5['key'])return{'type':'format','content':_0x3ea8e5['newValue']?o(_0x5d0712,'*Check\x20item*'):o(_0x5d0712,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2131f1=>{if(_0x2131f1['batch']['isUndo'])return!0x1;let _0x56e85b=!0x1;const _0x381ccd=_0x46ad54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48a629=>'todoListChecked'===_0x46ad54['_getAttributeKey'](_0x48a629));for(const _0x3b057a of _0x381ccd){'todo'!=_0x3b057a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x46ad54['_findSuggestions'](_0x3b057a['getFirstRange'](),'attribute')['find'](_0x4a2b2f=>'listType'===_0x46ad54['_getAttributeKey'](_0x4a2b2f['suggestion']))||(_0x2131f1['removeMarker'](_0x3b057a['getFirstMarker']()),_0x56e85b=!0x0));}return _0x56e85b;})),_0x46ad54['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5d0712,'FORMAT_INDENT'));const _0xb781dd={'type':'format','content':''};_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x3670c9=>{const {data:_0x94b9e0}=_0x3670c9;if(!_0x94b9e0||'listType'!=_0x94b9e0['key'])return;let _0x2395ef=_0x3670c9['head'];for(;_0x2395ef;){if(_0x2395ef['data']&&(('listStyle'==_0x2395ef['data']['key']||'listMarkerStyle'==_0x2395ef['data']['key'])&&(_0x2395ef['data']['newValue']&&'default'!=_0x2395ef['data']['newValue']||'default'!=_0x2395ef['data']['oldValue']&&!_0x94b9e0['newValue'])||!_0x980703&&_0x2395ef['data']['key']==m))return _0xb781dd;_0x2395ef=_0x2395ef['next'];}if(null==_0x94b9e0['newValue'])switch(_0x94b9e0['oldValue']){case'bulleted':return _0x1e421a(o(_0x5d0712,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e421a(o(_0x5d0712,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e421a(o(_0x5d0712,'ELEMENT_TODO_LIST'));}switch(_0x94b9e0['newValue']){case'bulleted':return _0x51d2c3(o(_0x5d0712,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51d2c3(o(_0x5d0712,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51d2c3(o(_0x5d0712,'ELEMENT_TODO_LIST'));}}),_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x3eaeed=>{const {data:_0x906fa8}=_0x3eaeed;if(_0x906fa8&&'listIndent'==_0x906fa8['key'])return null==_0x906fa8['newValue']||null==_0x906fa8['oldValue']&&0x0==_0x906fa8['newValue']?_0xb781dd:void 0x0;}),_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x5e4f90=>{if('attribute'!=_0x5e4f90['type'])return;const {data:_0x411762}=_0x5e4f90;if(!_0x411762||'listItemId'!=_0x411762['key'])return;const _0x20e3ca=Te(_0x5e4f90);return'newValue'==_0x20e3ca?{'type':'format','content':o(_0x5d0712,'*Merge:*\x20list\x20item')}:'oldValue'==_0x20e3ca?{'type':'format','content':o(_0x5d0712,'*Split:*\x20list\x20item')}:_0xb781dd;}),_0x419d73['model']['document']['registerPostFixer'](_0x4d0b54=>this['listItemIdFixer'](_0x4d0b54)),_0x419d73['model']['document']['registerPostFixer'](_0x1c4bd1=>this['noTrackChangesFixer'](_0x1c4bd1)),_0x419d73['model']['document']['on']('change:data',(_0x22cd26,_0x37a080)=>{if(_0x37a080['isUndo']||!_0x37a080['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5282bd){if(_0x5282bd['batch']['isUndo']||!_0x5282bd['batch']['isLocal'])return!0x1;let _0x16a03f=!0x1;const _0x530b12=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11e52b=>_0x11e52b['data']&&'listItemId'==_0x11e52b['data']['key'])['filter'](_0x2eaff4=>_0x2eaff4['data']['newValue']&&_0x2eaff4['data']['oldValue']);for(const _0x4cac9c of _0x530b12)Te(_0x4cac9c)||(_0x5282bd['removeMarker'](_0x4cac9c['getFirstMarker']()),_0x16a03f=!0x0);return _0x16a03f;}['noTrackChangesFixer'](_0x5e706c){if(_0x5e706c['batch']['isUndo']||!_0x5e706c['batch']['isLocal'])return!0x1;const _0x40a810=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x40a810['trackChangesCommand']['value'])return!0x1;let _0x4ea094=!0x1;const _0xd0f428=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x53a5c9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2cc6a7=>'attribute'==_0x2cc6a7['type'])['filter'](_0x194602=>_0xd0f428['includes'](_0x194602['attributeKey']));if(0x0==_0x53a5c9['length'])return _0x4ea094;for(const _0x697ebc of _0x53a5c9){const _0x5b701d=_0x40a810['_findSuggestions'](_0x697ebc['range'],'attribute')['filter'](_0x407f78=>!_0x407f78['meta']['isNextTo'])['map'](_0x19e9a9=>_0x19e9a9['suggestion'])['filter'](_0x11f947=>{const _0x23fc31=_0x40a810['_getAttributeKey'](_0x11f947);return _0xd0f428['includes'](_0x23fc31);});if(_0x5b701d['length']){for(const _0x2c4ac9 of _0x5b701d)_0x5e706c['removeMarker'](_0x2c4ac9['getFirstMarker']());_0x4ea094=!0x0;}}return _0x4ea094;}['assureChains'](){const _0x5edb89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220c8f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x89df73;const _0x300e1d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39305c=>{if(_0x39305c['data']['oldRange']||!_0x39305c['data']['newRange'])return null;if(!_0x39305c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x14eac6}=_0x5edb89['_splitMarkerName'](_0x39305c['name']);if(!_0x5edb89['hasSuggestion'](_0x14eac6))return null;const _0x36050b=_0x5edb89['getSuggestion'](_0x14eac6);return _0x220c8f['includes'](_0x36050b['data']['key']);})['map'](_0x150e1d=>{const {id:_0x44fbb7}=_0x5edb89['_splitMarkerName'](_0x150e1d['name']),_0x1296be=_0x5edb89['getSuggestion'](_0x44fbb7);return _0x89df73=_0x1296be['attributes']['groupId'],_0x1296be['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x300e1d['size'])return;const _0x263c0e=_0x5edb89['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf5d787=>'attribute'==_0xf5d787['type']&&_0xf5d787['data']&&_0x220c8f['includes'](_0xf5d787['data']['key'])&&_0xf5d787['attributes']['groupId']!=_0x89df73)['map'](_0x4ec43d=>({'listItem':_0x4ec43d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ec43d['attributes']['groupId']})),_0x2dad97=new Set();for(const {groupId:_0x490dd4,listItem:_0x24e67e}of _0x263c0e)_0x300e1d['has'](_0x24e67e)&&_0x2dad97['add'](_0x490dd4);for(const _0x2140ec of _0x5edb89['getSuggestions']())_0x2dad97['has'](_0x2140ec['attributes']['groupId'])&&_0x2140ec['setAttribute']('groupId',_0x89df73);}['_supportLegacySuggestions'](){const _0x4e4fb5=this['editor'],_0x32c757=_0x4e4fb5['locale'],_0x22ca4a=_0x4e4fb5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x22ca4a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xd8eed2,_0x4b6e45){const _0x386554=[];for(let _0x3ad4c5 of _0xd8eed2)_0x3ad4c5['start']['nodeAfter']===_0x3ad4c5['end']['parent']&&(_0x3ad4c5=_0x4e4fb5['model']['createRange'](_0x4e4fb5['model']['createPositionAt'](_0x3ad4c5['start']['nodeAfter'],0x0))),_0x386554['push'](_0x3ad4c5);_0x4e4fb5['model']['change'](_0x2ba6c1=>{const _0x3a8846=_0x4e4fb5['model']['document']['selection'],_0x3870bb=Array['from'](_0x3a8846['getRanges']())['map'](_0x3c2f6b=>_0x50a820['fromRange'](_0x3c2f6b));_0x2ba6c1['setSelection'](_0x386554),_0x4e4fb5['commands']['get'](_0x4b6e45['commandName'])['refresh'](),_0x4b6e45['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e4fb5['execute'](_0x4b6e45['commandName'],..._0x4b6e45['commandParams']),_0x2ba6c1['setSelection'](_0x3870bb);for(const _0x497bff of _0x3870bb)_0x497bff['detach']();});}),_0x22ca4a['descriptionFactory']['registerElementLabel'](function(_0x580cee){const _0x15c63b=!_0x4e4fb5['model']['schema']['isObject'](_0x580cee),_0x24fd27=_0x580cee['previousSibling'],_0xe78ccd=_0x580cee['nextSibling'],_0x2189e5=_0x580cee['getAttribute']('listItemId'),_0x256009=!_0x24fd27||_0x24fd27['getAttribute']('listItemId')!==_0x2189e5,_0x4fd4fd=!_0xe78ccd||_0xe78ccd['getAttribute']('listItemId')!==_0x2189e5;return _0x15c63b&&Boolean(_0x2189e5)&&_0x256009&&_0x4fd4fd;},_0x48b904=>o(_0x32c757,'ELEMENT_LIST_ITEM',_0x48b904));}['_registerLegacyDescription'](){const _0x4900cb=this['editor'],_0xd1bb10=_0x4900cb['locale'];function _0x161f76(_0x58d940){const _0x4c7527=_0x4900cb['commands']['get']('bulletedList')['value'],_0x503336=_0x4900cb['commands']['get']('numberedList')['value'];return'numberedList'===_0x58d940?_0x4c7527:_0x503336;}_0x4900cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x497eff){if('formatBlock'!=_0x497eff['type'])return;const {data:_0x27cff3}=_0x497eff;if(!_0x27cff3)return;let _0x5a171a,_0x267126,_0x2aa25f,_0x1eb413;switch(_0x27cff3['commandName']){case'bulletedList':_0x2aa25f=_0x27cff3['commandParams'][0x0]['forceValue'],_0x1eb413=_0x161f76(_0x27cff3['commandName']),_0x5a171a=_0x2aa25f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1eb413&&_0x4900cb['config']['get']('list.multiBlock')||(_0x5a171a='*Change\x20to:*\x20%0'),_0x267126={'type':'format','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2aa25f=_0x27cff3['commandParams'][0x0]['forceValue'],_0x1eb413=_0x161f76(_0x27cff3['commandName']),_0x5a171a=_0x2aa25f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1eb413&&_0x4900cb['config']['get']('list.multiBlock')||(_0x5a171a='*Change\x20to:*\x20%0'),_0x267126={'type':'format','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5a171a='*Indent:*\x20%0',_0x267126={'type':'format','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5a171a=function(_0x5cba7d){const _0x341cab=_0x5cba7d['getFirstRange']();let _0xe902e0=_0x341cab['start']['nodeAfter'];for(;_0xe902e0&&_0x341cab['containsItem'](_0xe902e0);){if(_0xe902e0['getAttribute']('listIndent')>0x0)return!0x1;_0xe902e0=_0xe902e0['nextSibling'];}return!0x0;}(_0x497eff)?o(_0xd1bb10,'*Format:*\x20remove\x20from\x20%0',o(_0xd1bb10,function(_0x3a9648){return'ELEMENT_'+_0x3a9648['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x497eff))):o(_0xd1bb10,'*Outdent:*\x20%0',o(_0xd1bb10,'ELEMENT_LIST_ITEM')),_0x267126={'type':'format','content':_0x5a171a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x27cff3['multipleBlocks']&&(_0x5a171a='*Merge:*\x20%0',_0x267126={'type':'deletion','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_LIST_ITEM'))});}return _0x267126;});}}function Te(_0x2492e8){let _0x4fcfa4=_0x2492e8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4fcfa4;){const _0x238d39=_0x4fcfa4['getAttribute']('listItemId');if(!_0x238d39)return!0x1;if(_0x238d39==_0x2492e8['data']['newValue'])return'newValue';if(_0x238d39==_0x2492e8['data']['oldValue'])return'oldValue';_0x4fcfa4=_0x4fcfa4['previousSibling'];}return!0x1;}class q extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x187a3c=this['editor']['config']['get']('list.properties'),_0x526b54=this['editor']['plugins']['get']('TrackChangesEditing');_0x187a3c['styles']&&(_0x526b54['enableDefaultAttributesIntegration']('listStyle'),_0x526b54['registerBlockAttribute']('listStyle')),_0x187a3c['reversed']&&(_0x526b54['enableDefaultAttributesIntegration']('listReversed'),_0x526b54['registerBlockAttribute']('listReversed')),_0x187a3c['startIndex']&&(_0x526b54['enableDefaultAttributesIntegration']('listStart'),_0x526b54['registerBlockAttribute']('listStart'));const _0x4dd9a9={'type':'format','content':''};_0x526b54['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x13216f=this['editor']['locale'];_0x526b54['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x13216f,'FORMAT_LIST_REVERSED')),_0x526b54['descriptionFactory']['registerDescriptionCallback'](_0x498a2f=>{const {data:_0x4acc9d}=_0x498a2f;if(_0x4acc9d&&'listReversed'==_0x4acc9d['key'])return null==_0x4acc9d['newValue']||0x0==_0x4acc9d['newValue']&&null==_0x4acc9d['oldValue']?_0x4dd9a9:void 0x0;}),_0x526b54['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x13216f,'FORMAT_LIST_START')),_0x526b54['descriptionFactory']['registerDescriptionCallback'](_0x220e0b=>{const {data:_0xbfc0c3}=_0x220e0b;if(_0xbfc0c3&&'listStart'==_0xbfc0c3['key'])return null==_0xbfc0c3['newValue']||0x1==_0xbfc0c3['newValue']&&null==_0xbfc0c3['oldValue']?_0x4dd9a9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1c55eb=>{if(_0x1c55eb['batch']['isUndo'])return!0x1;let _0x10f18b=!0x1;const _0x2d05c8=_0x526b54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d8f1d=>{const _0x50889e=_0x526b54['_getAttributeKey'](_0x3d8f1d);return'listStart'==_0x50889e||'listReversed'==_0x50889e;});for(const _0x366b60 of _0x2d05c8){const _0x3f4f98=_0x366b60['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3f4f98||'customNumbered'==_0x3f4f98)continue;_0x526b54['_findSuggestions'](_0x366b60['getFirstRange'](),'attribute')['find'](_0x3841e4=>'listType'==_0x526b54['_getAttributeKey'](_0x3841e4['suggestion']))||(_0x1c55eb['removeMarker'](_0x366b60['getFirstMarker']()),_0x10f18b=!0x0);}return _0x10f18b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2b2f5e){const _0x96dbea=this['editor']['locale'],{data:_0x207ea2}=_0x2b2f5e,_0x21d51b={'type':'format','content':''};if(!_0x207ea2||'listStyle'!=_0x207ea2['key'])return;if(!_0x207ea2['oldValue'])return'default'==_0x207ea2['newValue']?_0x21d51b:{'type':'format','content':''+o(_0x96dbea,'*Set\x20format:*\x20%0',o(_0x96dbea,this['_getTranslationKeyForListStyle'](_0x207ea2['newValue'])))};if(!_0x207ea2['newValue']){if('default'==_0x207ea2['oldValue'])return _0x21d51b;let _0xe731f2=_0x2b2f5e['head'];for(;_0xe731f2;){if(_0xe731f2['data']&&'listType'==_0xe731f2['data']['key']&&_0xe731f2['data']['newValue'])return _0x21d51b;_0xe731f2=_0xe731f2['next'];}return{'type':'format','content':''+o(_0x96dbea,'*Remove\x20format:*\x20%0',o(_0x96dbea,this['_getTranslationKeyForListStyle'](_0x207ea2['oldValue'])))};}if('default'!=_0x207ea2['newValue'])return{'type':'format','content':''+o(_0x96dbea,'*Set\x20format:*\x20%0',o(_0x96dbea,this['_getTranslationKeyForListStyle'](_0x207ea2['newValue'])))};let _0x35a508=_0x2b2f5e['head'];for(;_0x35a508;){if(_0x35a508['data']&&'listType'==_0x35a508['data']['key']&&_0x35a508['data']['newValue']&&_0x35a508['data']['oldValue'])return _0x21d51b;_0x35a508=_0x35a508['next'];}return{'type':'format','content':o(_0x96dbea,'*Set\x20format:*\x20%0',o(_0x96dbea,'ELEMENT_'+_0x2b2f5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x29fd53=this['editor'],_0x332ef9=_0x29fd53['locale'];_0x29fd53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4722e8=>{if('formatBlock'!=_0x4722e8['type'])return;const {data:_0x5a1f7a}=_0x4722e8;if(!_0x5a1f7a)return;let _0x5983ba,_0x59738a;switch(_0x5a1f7a['commandName']){case'listStyle':_0x5983ba='*Change\x20to:*\x20%0',_0x59738a={'type':'format','content':o(_0x332ef9,_0x5983ba,o(_0x332ef9,this['_getTranslationKeyForListStyle'](_0x5a1f7a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5983ba=_0x5a1f7a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x59738a={'type':'format','content':o(_0x332ef9,_0x5983ba)};break;case'listStart':_0x5983ba='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x59738a={'type':'format','content':o(_0x332ef9,_0x5983ba,_0x5a1f7a['commandParams'][0x0]['startIndex'])};}return _0x59738a;});}['_getTranslationKeyForListStyle'](_0x4e8256){return'ELEMENT_'+function(_0x500313){if(Se['includes'](_0x500313))return'bulleted';if(_e['includes'](_0x500313))return'numbered';return null;}(_0x4e8256)['toUpperCase']()+'_LIST_'+_0x4e8256['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xe680e7{['afterInit'](){const _0x15b983=this['editor'];_0x15b983['commands']['get']('emoji')&&_0x15b983['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xe680e7{static get['requires'](){return[_0x5927bb];}['init'](){const _0x2ea6cb=this['editor'],_0x468012=_0x2ea6cb['plugins']['get']('TrackChangesEditing'),_0x552ba8=_0x2ea6cb['commands']['get']('enter');_0x468012['enableCommand']('enter',()=>{_0x2ea6cb['model']['change'](_0x3f4ae9=>{const _0x4f0c6f=_0x2ea6cb['model']['document']['selection'],_0x89a376=_0x4f0c6f['getFirstPosition'](),_0x5234bf=_0x50a820['fromRange'](_0x4f0c6f['getFirstRange']());if(_0x552ba8['enterBlock'](_0x3f4ae9)){const _0x4f7210=_0x2ea6cb['model']['createPositionAt'](_0x89a376['parent']['nextSibling'],0x0),_0x5598c6=_0x3f4ae9['createRange'](_0x89a376,_0x4f7210);_0x468012['markInsertion'](_0x5598c6);}else _0x3f4ae9['setSelection'](_0x3f4ae9['createRange'](_0x5234bf['end']));_0x5234bf['detach'](),_0x552ba8['fire']('afterExecute',{'writer':_0x3f4ae9});});}),_0x2ea6cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2ea6cb,'split'),{'priority':'high'}),_0x2ea6cb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xd0a560,_0x56b381,_0x1168f2)=>{const _0x249145=_0x1168f2['mapper']['markerNameToElements'](_0x56b381['markerName']);if(_0x249145){for(const _0x5d0a65 of _0x249145)_0x5d0a65['hasClass']('ck-suggestion-marker-split')&&(_0x1168f2['mapper']['unbindElementFromMarkerName'](_0x5d0a65,_0x56b381['markerName']),_0x1168f2['writer']['remove'](_0x5d0a65));}},{'priority':'high'}),_0x2ea6cb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x328421,_0x4524a1,_0x4edd99)=>{_0x4edd99['options']['showSuggestionHighlights']&&De(_0x2ea6cb,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x328421,_0x4524a1,_0x4edd99);},{'priority':'high'});}}class Q extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x41733f=this['editor']['plugins']['get']('TrackChangesEditing');_0x41733f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x41733f['enableCommand']('findNext'),_0x41733f['enableCommand']('findPrevious'),_0x41733f['enableCommand']('replace'),_0x41733f['enableCommand']('replaceAll');}['handleFindCommand'](_0x146835,_0x44ad43,_0x4e1105={}){const _0x510f4e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x146835(_0x15d37a=>{let _0x55b499=('string'==typeof _0x44ad43?_0x510f4e['findByTextCallback'](_0x44ad43,_0x4e1105):_0x44ad43)(_0x15d37a);Array['isArray'](_0x55b499)&&(_0x55b499={'results':_0x55b499,'searchText':'string'==typeof _0x44ad43?_0x44ad43:''});const _0x590933=_0x55b499['results']['filter'](_0xc2e9c3=>!0x1===this['_isInDeletionRange'](_0xc2e9c3,_0x15d37a['item']));return{..._0x55b499,'results':_0x590933};},_0x4e1105);}['_isInDeletionRange'](_0x4f4a07,_0x27805c){const _0x5827e8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27805c,_0x4f4a07['start']),this['editor']['model']['createPositionAt'](_0x27805c,_0x4f4a07['end']));for(const _0x3ed06f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5827e8['getIntersection'](_0x3ed06f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xe680e7{['afterInit'](){const _0x2567dc=this['editor']['locale'],_0xc75144=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x283815,commandName:_0x4da0e7}of eo)this['editor']['plugins']['has'](_0x283815)&&(_0xc75144['enableDefaultAttributesIntegration'](_0x4da0e7),_0xc75144['registerInlineAttribute'](_0x4da0e7));_0xc75144['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2567dc,'FORMAT_FONT_SIZE')),_0xc75144['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2567dc,'FORMAT_FONT_FAMILY')),_0xc75144['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2567dc,'FORMAT_FONT_COLOR')),_0xc75144['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2567dc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fb6c0=this['editor'],_0x2d4afc=_0x3fb6c0['locale'];_0x3fb6c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333b15=>{const _0x5b8672=_0x2d4afc['t'];if('formatInline'!=_0x333b15['type'])return;const {data:_0x4c419b}=_0x333b15;if(null!=_0x4c419b){if('fontSize'==_0x4c419b['commandName']){const _0xb824da=_0x4c419b['commandParams'][0x0]['value'];if(_0xb824da){const _0x3b5e8c=_0x5b8672(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x38323f=>_0x38323f['model']==_0xb824da)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20size:*\x20%0',_0x3b5e8c)};}return{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c419b['commandName']){const _0x475f65=_0x4c419b['commandParams'][0x0]['value'];return _0x475f65?{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20family:*\x20%0',_0x475f65)}:{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c419b['commandName']){const _0x24d5d0=_0x4c419b['commandParams'][0x0]['value'];if(_0x24d5d0){const _0x33f3d2=_0x267957(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4bba45=>_0x4bba45['model']==_0x24d5d0);let _0x55e75b=_0x24d5d0,_0x5e99c7='';return _0x33f3d2&&(_0x55e75b=_0x33f3d2['label'],_0x5e99c7=_0x5b8672(_0x55e75b)['toLowerCase']()),{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20color:*\x20%0',_0x5e99c7)['trim'](),'color':{'value':_0x24d5d0,'title':_0x5e99c7||_0x55e75b}};}return{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c419b['commandName']){const _0x3d8a10=_0x4c419b['commandParams'][0x0]['value'];if(_0x3d8a10){const _0x5b4bde=_0x267957(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x21c738=>_0x21c738['model']==_0x3d8a10);let _0x2568ae=_0x3d8a10,_0x5c1cab='';return _0x5b4bde&&(_0x2568ae=_0x5b4bde['label'],_0x5c1cab=_0x5b8672(_0x2568ae)['toLowerCase']()),{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c1cab)['trim'](),'color':{'value':_0x3d8a10,'title':_0x5c1cab||_0x2568ae}};}return{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xe680e7{['afterInit'](){const _0x2e9db2=this['editor'],_0x570e0f=_0x2e9db2['plugins']['get']('TrackChangesEditing'),_0x2ba9f1=_0x2e9db2['commands']['get']('copyFormat'),_0x58beaf=_0x2e9db2['commands']['get']('pasteFormat');_0x2ba9f1&&_0x58beaf&&(_0x570e0f['enableDefaultAttributesIntegration']('pasteFormat'),_0x570e0f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x258646=this['editor'],_0x3123f7=_0x258646['locale'];_0x258646['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x198526=>{if('formatBlock'!=_0x198526['type']&&'formatInline'!=_0x198526['type'])return;const {data:_0x9bb44e}=_0x198526;if(_0x9bb44e&&'pasteFormat'===_0x9bb44e['commandName']){const _0x3730f0=[],_0x2e3f21=_0x9bb44e['commandParams'][0x0];for(const [_0x2a4b6f,_0x3f66f6]of Object['entries'](_0x2e3f21))_0x3730f0['push'](ro(_0x258646,_0x2a4b6f,_0x3f66f6));return _0x3730f0['length']?{'type':'format','content':o(_0x3123f7,'*Set\x20format\x20to:*\x20%0',_0x3730f0['join'](',\x20'))}:{'type':'format','content':o(_0x3123f7,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4c47a3,_0x434e53,_0x21dad8){const _0x56ef2e=_0x4c47a3['locale']['t'],_0x1d6ab9=_0x434e53['split'](/(?=[A-Z])/)['join']('\x20'),_0x54666e=_0x56ef2e(_0x1d6ab9['charAt'](0x0)['toUpperCase']()+_0x1d6ab9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x21dad8)return _0x54666e;if('fontColor'===_0x434e53||'fontBackgroundColor'===_0x434e53){const _0x37456f=_0x267957(_0x4c47a3['config']['get']('fontColor.colors'))['find'](_0x5163a9=>_0x5163a9['model']==_0x21dad8);return _0x54666e+'\x20('+(_0x37456f?_0x56ef2e(_0x37456f['label'])['toLowerCase']():_0x21dad8)+')';}if('fontSize'===_0x434e53&&isNaN(parseFloat(_0x21dad8))){const _0x2276de=_0x4c47a3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4c47a3['config']['get']('fontSize.options'))['find'](_0x11c11d=>_0x11c11d['model']==_0x21dad8);return _0x54666e+'\x20('+(_0x2276de?_0x56ef2e(_0x2276de['title'])['toLowerCase']():_0x21dad8)+')';}return _0x54666e+'\x20('+_0x21dad8+')';}class Z extends _0xe680e7{['_headingOptions'];['afterInit'](){const _0xa15e74=this['editor'];if(!_0xa15e74['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xa15e74['config']['get']('heading.options');const _0x24aaa8=_0xa15e74['locale'],_0x4f67ea=_0xa15e74['plugins']['get']('TrackChangesEditing');_0x4f67ea['enableDefaultAttributesIntegration']('heading');for(const _0x186f85 of this['_headingOptions'])'paragraph'!=_0x186f85['model']&&_0x4f67ea['descriptionFactory']['registerElementLabel'](_0x186f85['model'],_0x30c2b0=>{const _0x25a627=this['_getHeadingLevel'](_0x186f85['model']);return null!==_0x25a627?_0x4b9851(_0x30c2b0,_0x25a627):_0x33a638(_0x30c2b0,_0x186f85['title']);});function _0x4b9851(_0x3456da,_0x4bb53b){return o(_0x24aaa8,'ELEMENT_HEADING',[_0x3456da,_0x4bb53b]);}function _0x33a638(_0x44efb0,_0x31e67b){return o(_0x24aaa8,'ELEMENT_HEADING_CUSTOM',[_0x44efb0,_0x31e67b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x63bd5d=this['editor'],_0x19dcf8=_0x63bd5d['locale'];function _0x563df7(_0x57dbcd,_0x7adcba){return o(_0x19dcf8,'ELEMENT_HEADING_CUSTOM',[_0x57dbcd,_0x7adcba]);}_0x63bd5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x440091=>{if('formatBlock'!=_0x440091['type'])return;const {data:_0xb0ef47}=_0x440091;if(_0xb0ef47&&'heading'==_0xb0ef47['commandName']){const _0x898425=_0xb0ef47['commandParams'][0x0]['value'],_0x217819=this['_getHeadingLevel'](_0x898425);if(null!==_0x217819)return{'type':'format','content':o(_0x19dcf8,'*Change\x20to:*\x20%0',(_0x1abefa=0x1,_0xd76eec=_0x217819,o(_0x19dcf8,'ELEMENT_HEADING',[_0x1abefa,_0xd76eec])))};const _0xfff39=this['_headingOptions']['find'](_0x4c867d=>_0x4c867d['model']===_0x898425)['title'];return{'type':'format','content':o(_0x19dcf8,'*Change\x20to:*\x20%0',_0x563df7(0x1,_0xfff39))};}var _0x1abefa,_0xd76eec;});}['_getHeadingLevel'](_0x4b61bf){const _0x3c4e38=_0x4b61bf['match'](/^heading(\d+)/);if(_0x3c4e38)return _0x3c4e38[0x1];const _0x4fabfb=this['_headingOptions']?.['find'](_0x2f9ed6=>_0x2f9ed6['model']==_0x4b61bf);if(_0x4fabfb&&_0x4fabfb['view']){const _0x52da34=_0x4fabfb['view'],_0x1180bf=(_0x52da34['name']??_0x52da34)['match'](/^h(\d+)/);if(_0x1180bf)return _0x1180bf[0x1];}return null;}}class tt extends _0xe680e7{['afterInit'](){const _0x54ff17=this['editor'];if(!_0x54ff17['plugins']['has']('HighlightEditing'))return;const _0x1b2383=_0x54ff17['plugins']['get']('TrackChangesEditing'),_0x4ef9e0=_0x54ff17['locale'];_0x1b2383['enableDefaultAttributesIntegration']('highlight'),_0x1b2383['registerInlineAttribute']('highlight'),_0x1b2383['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4ef9e0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x190a56=this['editor'],_0x444f23=_0x190a56['locale'];_0x190a56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x114595=>{if('formatInline'!=_0x114595['type'])return;const {data:_0x1148d8}=_0x114595;if(_0x1148d8&&'highlight'==_0x1148d8['commandName']){const _0x23be4d=_0x444f23['t'],_0x2a7a67=_0x1148d8['commandParams'][0x0]['value'];if(_0x2a7a67){const _0x140e12=_0x190a56['config']['get']('highlight.options')['find'](_0x3869ff=>_0x3869ff['model']==_0x2a7a67),_0x5ef031=_0x23be4d(_0x140e12['title'])['toLowerCase']();return{'type':'format','content':o(_0x444f23,'*Set\x20highlight:*\x20%0',_0x5ef031),'color':{'value':_0x140e12['color'],'title':_0x140e12['title']}};}return{'type':'format','content':o(_0x444f23,'*Remove\x20highlight*',o(_0x444f23,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xe680e7{['afterInit'](){const _0x4e4d67=this['editor'];if(!_0x4e4d67['plugins']['has']('HorizontalLineEditing'))return;_0x4e4d67['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x19de24=_0x4e4d67['plugins']['get']('TrackChangesEditing'),_0x1ae746=_0x4e4d67['locale'];_0x19de24['descriptionFactory']['registerElementLabel']('horizontalLine',_0x22d15a=>o(_0x1ae746,'ELEMENT_HORIZONTAL_LINE',_0x22d15a)),_0x4e4d67['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2605c6,{writer:_0x2cc3a7,options:_0x135035})=>{if(!_0x135035['showSuggestionHighlights'])return null;const _0x76fcae=_0x2cc3a7['createContainerElement']('div'),_0x1db6a1=_0x2cc3a7['createEmptyElement']('hr');return _0x2cc3a7['addClass']('ck-horizontal-line',_0x76fcae),_0x2cc3a7['insert'](_0x2cc3a7['createPositionAt'](_0x76fcae,0x0),_0x1db6a1),_0x76fcae;},'converterPriority':'high'});}}class nt extends _0xe680e7{['afterInit'](){const _0x4c4535=this['editor'];if(!_0x4c4535['plugins']['has']('HtmlEmbed'))return;const _0x10df53=_0x4c4535['plugins']['get']('TrackChangesEditing'),_0x582ace=_0x4c4535['locale'];_0x10df53['descriptionFactory']['registerElementLabel']('rawHtml',_0x173d91=>o(_0x582ace,'ELEMENT_HTML_EMBED',_0x173d91)),_0x10df53['enableDefaultAttributesIntegration']('htmlEmbed'),_0x10df53['registerBlockAttribute']('value'),_0x10df53['descriptionFactory']['registerDescriptionCallback'](_0x1c3fa5=>{if('attribute'!=_0x1c3fa5['type'])return;const {data:_0x44891f}=_0x1c3fa5;if(_0x44891f&&'value'==_0x44891f['key']&&_0x1c3fa5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x24ebd2=o(_0x582ace,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x582ace,'*Change\x20%0\x20content*',_0x24ebd2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20fecf=this['editor'],_0x16da99=_0x20fecf['locale'];_0x20fecf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1df521=>{if('formatBlock'!=_0x1df521['type'])return;const {data:_0x2d7f45}=_0x1df521;if(_0x2d7f45&&'htmlEmbed'==_0x2d7f45['commandName']){const _0xad07a2=o(_0x16da99,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16da99,'*Change\x20%0\x20content*',_0xad07a2)};}});}}class et extends _0xe680e7{['afterInit'](){const _0x2fdfe8=this['editor'];if(!_0x2fdfe8['plugins']['has']('ImageEditing'))return;const _0x8db15b=_0x2fdfe8['plugins']['get']('TrackChangesEditing'),_0x53dbd3=_0x2fdfe8['plugins']['get']('ImageUtils'),_0xee9519=_0x2fdfe8['locale'];_0x8db15b['enableCommand']('insertImage'),_0x8db15b['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c9004=>o(_0xee9519,'ELEMENT_IMAGE',_0x1c9004)),_0x8db15b['descriptionFactory']['registerElementLabel']('imageInline',_0x5a4e32=>o(_0xee9519,'ELEMENT_INLINE_IMAGE',_0x5a4e32)),_0x8db15b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xee9519,'ELEMENT_CAPTION')),_0x2fdfe8['plugins']['has']('ImageUploadEditing')&&_0x8db15b['enableCommand']('uploadImage'),_0x2fdfe8['plugins']['has']('ImageBlockEditing')&&_0x2fdfe8['plugins']['has']('ImageInlineEditing')&&(_0x8db15b['enableCommand']('imageTypeInline',(_0x48a39b,_0x5b5b5f)=>{const _0x24e145=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']);_0x2fdfe8['model']['change'](()=>{_0x8db15b['markBlockFormat'](_0x24e145,{'commandName':'imageTypeInline','commandParams':[_0x5b5b5f]},[],'convertBlockImageToInline');});}),_0x8db15b['enableCommand']('imageTypeBlock',(_0x36f730,_0x23cc54)=>{_0x2fdfe8['model']['change'](_0x59b1a5=>{let _0x2bbfe1=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x17dc2f=_0x59b1a5['createRangeOn'](_0x2bbfe1);const _0x163885=_0x5da3ae['fromPosition'](_0x17dc2f['start'],'toPrevious'),_0x6a2785=_0x5da3ae['fromPosition'](_0x17dc2f['end'],'toNext');_0x8db15b['forceDefaultExecution'](()=>_0x36f730(_0x23cc54)),_0x2bbfe1=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x17dc2f=_0x59b1a5['createRangeOn'](_0x2bbfe1);const _0x253f45=_0x59b1a5['createRange'](_0x163885,_0x6a2785);_0x163885['detach'](),_0x6a2785['detach'](),_0x8db15b['markBlockFormat'](_0x2bbfe1,{'commandName':'imageTypeInline','commandParams':[_0x23cc54]},[],'convertInlineImageToBlock'),_0x253f45['start']['isBefore'](_0x17dc2f['start'])&&_0x8db15b['markInsertion'](_0x59b1a5['createRange'](_0x253f45['start'],_0x17dc2f['start']),'convertInlineImageToBlock'),_0x17dc2f['end']['isBefore'](_0x253f45['end'])&&_0x8db15b['markInsertion'](_0x59b1a5['createRange'](_0x17dc2f['end'],_0x253f45['end']),'convertInlineImageToBlock');});}),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8db15b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x30f518])=>{const _0x3feee2=_0x8db15b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xa97c4b=_0x30f518['start'],_0x1a399b=_0x30f518['end'];const _0x5b4894=_0x2fdfe8['model']['schema']['getNearestSelectionRange'](_0xa97c4b,'backward'),_0x48d554=_0x2fdfe8['model']['schema']['getNearestSelectionRange'](_0x1a399b,'forward');_0x5b4894['isCollapsed']&&(_0xa97c4b=_0x5b4894['start']),_0x48d554['isCollapsed']&&(_0x1a399b=_0x48d554['end']),_0x3feee2([_0x2fdfe8['model']['createRange'](_0xa97c4b,_0x1a399b)]);}),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x460132),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x460132)),_0x2fdfe8['plugins']['has']('ImageCaptionEditing')&&(_0x8db15b['enableCommand']('toggleImageCaption',(_0x183c40,_0xad0f1d)=>{const _0x4bc8cd=_0x2fdfe8['plugins']['get']('ImageCaptionUtils');let _0xcd2756=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x59987f=_0x4bc8cd['getCaptionFromImageModelElement'](_0xcd2756);_0x2fdfe8['model']['change'](()=>{if(_0x59987f)return void _0x8db15b['markDeletion'](_0x2fdfe8['model']['createRangeOn'](_0x59987f));const _0x3b91d5=_0x53dbd3['isBlockImage'](_0xcd2756);_0x183c40(_0xad0f1d),_0xcd2756=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x59987f=_0x4bc8cd['getCaptionFromImageModelElement'](_0xcd2756),_0x8db15b['markInsertion'](_0x2fdfe8['model']['createRangeOn'](_0x59987f),_0x3b91d5?null:'imageCaption');});}),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x460132));const _0x275260=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x512984(_0x46c642,_0xeca867){const _0xbd76f7=_0x275260['findIndex'](({type:_0x23de5e,subType:_0x5b75c1})=>_0x46c642['type']==_0x23de5e&&_0x46c642['subType']==_0x5b75c1),_0x421fa6=_0x275260['findIndex'](({type:_0x46aefa,subType:_0x242c63})=>_0xeca867['type']==_0x46aefa&&_0xeca867['subType']==_0x242c63);if(_0xbd76f7<0x0||_0x421fa6<0x0)return!0x1;const _0x49b30d=_0x46c642['getFirstRange'](),_0xcfac8e=_0xeca867['getFirstRange']();if((0x0==_0xbd76f7||0x1==_0xbd76f7)&&0x2==_0x421fa6&&_0x49b30d['isIntersecting'](_0xcfac8e))return!0x0;if(0x2==_0xbd76f7&&0x3==_0x421fa6){const _0x90149a=_0x8db15b['_findSuggestions'](_0x49b30d,'insertion')['filter'](({suggestion:_0x1f6669,meta:_0x59ae2d})=>_0x59ae2d['isOwn']&&'convertInlineImageToBlock'==_0x1f6669['subType']);if(_0x90149a['length']>0x1&&_0xcfac8e['end']['isEqual'](_0x49b30d['start']))return!0x0;if(0x1==_0x90149a['length']&&(_0x49b30d['start']['isEqual'](_0xcfac8e['end'])||_0x49b30d['end']['isEqual'](_0xcfac8e['start'])))return!0x0;}if(0x3==_0xbd76f7&&0x3==_0x421fa6&&_0x49b30d['start']['isBefore'](_0xcfac8e['start'])){const _0x31c225=_0x49b30d['end']['nodeAfter'],_0x4e220f=_0xcfac8e['start']['nodeBefore'];return _0x53dbd3['isBlockImage'](_0x31c225)&&_0x31c225===_0x4e220f;}return!0x1;}function _0x460132(_0x30e287,_0x4d1c96){return _0x512984(_0x30e287,_0x4d1c96)?[_0x30e287,_0x4d1c96]:_0x512984(_0x4d1c96,_0x30e287)?[_0x4d1c96,_0x30e287]:null;}_0x2fdfe8['plugins']['has']('ImageResize')&&(_0x8db15b['enableDefaultAttributesIntegration']('resizeImage'),_0x8db15b['registerBlockAttribute']('resizedWidth'),_0x8db15b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xee9519,'FORMAT_IMAGE_SIZE'))),_0x2fdfe8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8db15b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8db15b['registerBlockAttribute']('alt')),_0x2fdfe8['plugins']['has']('PictureEditing')&&(_0x8db15b['registerBlockAttribute']('sources'),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x2d9725=>{if('attribute'!=_0x2d9725['type'])return;const {data:_0x23dd2e}=_0x2d9725;return _0x23dd2e&&'sources'==_0x23dd2e['key']?{'type':'format','content':''}:void 0x0;})),_0x2fdfe8['plugins']['has']('ImageSizeAttributes')&&(_0x8db15b['registerBlockAttribute']('width'),_0x8db15b['registerBlockAttribute']('height'),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x44e600=>{if('attribute'!=_0x44e600['type'])return;const {data:_0x45bf24}=_0x44e600;return!_0x45bf24||'width'!=_0x45bf24['key']&&'height'!=_0x45bf24['key']?void 0x0:{'type':'format','content':''};})),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x474a05=>{if(!!_0x275260['find'](({type:_0x38fdff,subType:_0x192729})=>_0x474a05['type']==_0x38fdff&&_0x474a05['subType']==_0x192729))return _0x474a05['previous']?{}:void 0x0;}),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x5c48cc=>{if('insertion'==_0x5c48cc['type']||'deletion'==_0x5c48cc['type']){const _0x408980=_0x5c48cc['getContainedElement']();if(_0x408980&&_0x408980['is']('element','caption'))return{'type':'insertion'==_0x5c48cc['type']?'addObject':'removeObject','element':_0x408980,'quantity':0x1};}}),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x1d2a67=>'formatBlock'==_0x1d2a67['type']&&'convertInlineImageToBlock'==_0x1d2a67['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1d2a67['type']&&'convertBlockImageToInline'==_0x1d2a67['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x495dff=>{if('attribute'!=_0x495dff['type'])return;const {data:_0xe899fd}=_0x495dff;if(!_0xe899fd||'alt'!=_0xe899fd['key'])return;const _0x3ae8a5=_0xe899fd['newValue'];return _0x3ae8a5?{'type':'format','content':o(_0xee9519,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ae8a5+'\x22')}:{'type':'format','content':o(_0xee9519,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x76a48=this['editor'],_0x104ba8=_0x76a48['locale'];_0x76a48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe208a5=>{if('formatBlock'!=_0xe208a5['type']&&'formatInline'!=_0xe208a5['type'])return;const {data:_0x35c208}=_0xe208a5;if(_0x35c208){if('imageTextAlternative'==_0x35c208['commandName']){const _0x1e13dc=_0x35c208['commandParams'][0x0]['newValue'];return _0x1e13dc?{'type':'format','content':o(_0x104ba8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1e13dc+'\x22')}:{'type':'format','content':o(_0x104ba8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x35c208['commandName']){const _0x1923be=_0x35c208['commandParams'][0x0]['width'];return _0x1923be?{'type':'format','content':o(_0x104ba8,'*Set\x20image\x20width:*\x20%0',_0x1923be)}:{'type':'format','content':o(_0x104ba8,'*Reset\x20image\x20width*')};}}});}}class st extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1067d0=this['editor']['locale'],_0x448329=this['editor']['plugins']['get']('TrackChangesEditing');_0x448329['enableDefaultAttributesIntegration']('replaceImageSource'),_0x448329['registerBlockAttribute']('src'),_0x448329['descriptionFactory']['registerDescriptionCallback'](_0x412165=>{if('attribute'!=_0x412165['type'])return;const {data:_0xefa9cd}=_0x412165;return _0xefa9cd&&'src'==_0xefa9cd['key']?_0xefa9cd['newValue']&&_0xefa9cd['oldValue']?{'type':'format','content':o(_0x1067d0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a2cb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a2cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2a2cb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a2cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2a2cb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e345e=this['editor'],_0x5d479d=_0x2e345e['locale'];_0x2e345e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16cd95=>{if('formatBlock'!=_0x16cd95['type']&&'formatInline'!=_0x16cd95['type'])return;const {data:_0x4c99c7}=_0x16cd95;if(!_0x4c99c7||'replaceImageSource'!=_0x4c99c7['commandName'])return;return{'type':'format','content':o(_0x5d479d,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xe680e7{['afterInit'](){const _0x2dd1bb=this['editor'];if(!_0x2dd1bb['plugins']['has']('ImageStyleEditing'))return;const _0x6f4e78=_0x2dd1bb['plugins']['get']('TrackChangesEditing'),_0x1a4fc6=_0x2dd1bb['plugins']['get']('ImageUtils'),_0x4f3d4a={};_0x6f4e78['enableCommand']('imageStyle',(_0x2873fa,_0xd5113b)=>{const _0x26c84f=_0x2dd1bb['plugins']['get']('Users')['me'],_0x2b9d98=_0x2dd1bb['commands']['get']('imageStyle');let _0x4b5bc6=_0x1a4fc6['getClosestSelectedImageElement'](_0x2dd1bb['model']['document']['selection']),_0x4f76f4=_0x2dd1bb['model']['createRangeOn'](_0x4b5bc6),_0x933df2=_0x2b9d98['value'];if(_0x933df2==_0xd5113b['value'])return;const _0x405bd4={'commandName':'imageStyle','commandParams':[_0xd5113b],'formatGroupId':_0x29bcf7()};_0x2dd1bb['model']['change'](()=>{if(_0x6f4e78['getSuggestions']()['filter'](_0xd13d41=>_0xd13d41['isInContent']&&_0x26c84f==_0xd13d41['author']&&('formatBlock'==_0xd13d41['type']||'formatInline'==_0xd13d41['type'])&&('imageStylePreApply'==_0xd13d41['subType']||'imageStylePostApply'==_0xd13d41['subType'])&&_0xd13d41['getFirstRange']()['isEqual'](_0x4f76f4))['forEach'](_0x55a4a3=>_0x6f4e78['discardSuggestion'](_0x55a4a3['head'])),_0x4b5bc6=_0x1a4fc6['getClosestSelectedImageElement'](_0x2dd1bb['model']['document']['selection']),_0x4f76f4=_0x2dd1bb['model']['createRangeOn'](_0x4b5bc6),_0x2b9d98['refresh'](),_0x2dd1bb['commands']['get']('imageTypeInline')['refresh'](),_0x2dd1bb['commands']['get']('imageTypeBlock')['refresh'](),_0x933df2=_0x2b9d98['value'],_0x933df2!=_0xd5113b['value'])return _0x1a4fc6['isInlineImage'](_0x4b5bc6)&&_0x2b9d98['shouldConvertImageType'](_0xd5113b['value'],_0x4b5bc6)?(_0x2873fa({..._0xd5113b,'setImageSizes':!0x1}),_0x4b5bc6=_0x1a4fc6['getClosestSelectedImageElement'](_0x2dd1bb['model']['document']['selection']),void _0x6f4e78['markBlockFormat'](_0x4b5bc6,{..._0x405bd4,'commandReversedParams':[{'value':_0x933df2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1a4fc6['isBlockImage'](_0x4b5bc6)?_0x6f4e78['markBlockFormat'](_0x4b5bc6,_0x405bd4,[],'imageStylePostApply'):_0x6f4e78['markInlineFormat'](_0x4f76f4,_0x405bd4,'imageStylePostApply'));});});for(const _0x290923 of _0x2dd1bb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f3d4a[_0x290923['name']]=_0x290923['title']['toLowerCase']();_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x565396])=>{_0x1a4fc6['setImageNaturalSizeAttributes'](_0x565396['getContainedElement']());}),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x379345,_0x1ef092)=>{_0x6f4e78['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x379345,{'commandName':_0x1ef092['commandName'],'commandParams':_0x1ef092['commandReversedParams']});}),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x24e12f,_0x15912a){if(_0x545be2(_0x24e12f,_0x15912a))return[_0x24e12f,_0x15912a];if(_0x545be2(_0x15912a,_0x24e12f))return[_0x15912a,_0x24e12f];return null;});const _0x3b32c1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x545be2(_0x413cec,_0x832c9d){const _0x131a11=_0x3b32c1['findIndex'](({type:_0x2759e8,subType:_0xcc3ffa})=>_0x413cec['type']==_0x2759e8&&_0x413cec['subType']==_0xcc3ffa),_0x2042af=_0x3b32c1['findIndex'](({type:_0x4a2f59,subType:_0x12e473})=>_0x832c9d['type']==_0x4a2f59&&_0x832c9d['subType']==_0x12e473);if(_0x131a11<0x0||_0x2042af<0x0)return!0x1;const _0x7d6952=_0x413cec['getFirstRange'](),_0x306d1e=_0x832c9d['getFirstRange']();if((0x0==_0x131a11||0x1==_0x131a11)&&0x2==_0x2042af&&_0x7d6952['isIntersecting'](_0x306d1e))return!0x0;if(0x2==_0x131a11&&0x3==_0x2042af){const _0x3a894d=_0x6f4e78['_findSuggestions'](_0x7d6952,'insertion')['filter'](({suggestion:_0x52e81f,meta:_0x32f7cb})=>_0x32f7cb['isOwn']&&'convertInlineImageToBlock'==_0x52e81f['subType']);if(_0x3a894d['length']>0x1&&_0x306d1e['end']['isEqual'](_0x7d6952['start']))return!0x0;if(0x1==_0x3a894d['length']&&(_0x7d6952['start']['isEqual'](_0x306d1e['end'])||_0x7d6952['end']['isEqual'](_0x306d1e['start'])))return!0x0;}if(0x3==_0x131a11&&0x3==_0x2042af&&_0x7d6952['start']['isBefore'](_0x306d1e['start'])){const _0x42624c=_0x7d6952['end']['nodeAfter'],_0x15405b=_0x306d1e['start']['nodeBefore'];return _0x1a4fc6['isBlockImage'](_0x42624c)&&_0x42624c===_0x15405b;}return!0x1;}_0x2dd1bb['model']['document']['registerPostFixer'](()=>{let _0x2d24fd=!0x1;const _0x347369=Array['from'](_0x2dd1bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c9a8f,data:_0x431ae8}of _0x347369){const {group:_0x539d10,type:_0x14a8d6,subType:_0x5ea82d,id:_0x4a3c4b}=_0x6f4e78['_splitMarkerName'](_0x3c9a8f);if('suggestion'==_0x539d10&&_0x6f4e78['hasSuggestion'](_0x4a3c4b)){if('formatBlock'==_0x14a8d6&&('imageStylePreApply'==_0x5ea82d||'imageStylePostApply'==_0x5ea82d)){const _0x19fa89=_0x6f4e78['getSuggestion'](_0x4a3c4b);if(_0x431ae8['newRange']){const _0x51b8b9=_0x19fa89['getFirstRange']()['getContainedElement']();if(_0x1a4fc6['isBlockImage'](_0x51b8b9))continue;_0x6f4e78['discardSuggestion'](_0x19fa89),_0x2d24fd=!0x0;}}if('insertion'==_0x14a8d6&&'imageCaption'==_0x5ea82d&&!_0x431ae8['newRange']){const _0x3dc4c0=_0x6f4e78['getSuggestion'](_0x4a3c4b);_0x3dc4c0['next']&&_0x3dc4c0['next']['isInContent']&&(_0x6f4e78['discardSuggestion'](_0x3dc4c0['next']),_0x2d24fd=!0x0);}}}return _0x2d24fd;}),this['_registerLegacyDescription'](_0x4f3d4a);}['_registerLegacyDescription'](_0x2512b8){const _0x221aee=this['editor'],_0x4547d1=_0x221aee['locale'];_0x221aee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a9e08=>{if('formatBlock'!=_0x3a9e08['type']&&'formatInline'!=_0x3a9e08['type'])return;const {data:_0x441aa9}=_0x3a9e08;if(!_0x441aa9||'imageStyle'!=_0x441aa9['commandName'])return;const _0x35b411=_0x441aa9['commandParams'][0x0]['value'];return _0x58a688('side'===_0x35b411?o(_0x4547d1,'FORMAT_SIDE_IMAGE'):_0x2512b8[_0x35b411]||_0x35b411);function _0x58a688(_0x43e522){return{'type':'format','content':o(_0x4547d1,'*Format:*\x20%0',_0x43e522)};}});}}class rt extends _0xe680e7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a9144){super(_0x4a9144),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x547528=this['editor'],_0x522c8e=_0x547528['commands']['get']('importWord'),_0x54d413=_0x547528['commands']['get']('trackChanges');_0x522c8e&&(_0x522c8e['on']('execute',(_0x5503f4,[,_0x16d020])=>{this['_trackChangesValueDuringImport']=_0x54d413['value'],_0x16d020['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x522c8e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x522c8e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x54d413['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x547528['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x558f35,_0x2a8b83){const {suggestions:_0x148217}=_0x2a8b83,_0x5e8809=this['editor']['commands']['get']('trackChanges'),_0x3fae98=_0x5e8809['value'];this['_trackChangesValueDuringImport']!==_0x3fae98&&(_0x5e8809['execute'](),this['_trackChangesExecuted']=!0x0),_0x148217&&_0x148217['forEach'](({id:_0x23b8d1,type:_0x3317fb,author:_0x4679fd,created_at:_0x5a1fd6})=>{const _0x29081b={'id':_0x23b8d1,'type':_0x3317fb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4679fd,'createdAt':_0x5a1fd6?new Date(_0x5a1fd6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x29081b);});}}class at extends _0xe680e7{['afterInit'](){const _0x46b43d=this['editor'],_0x5f3606=_0x46b43d['plugins']['get']('TrackChangesEditing');if(_0x46b43d['plugins']['has']('IndentEditing')&&(_0x5f3606['enableCommand']('indent'),_0x5f3606['enableCommand']('outdent')),_0x46b43d['plugins']['has']('IndentBlock')){for(const _0x1d9574 of['indentBlock','outdentBlock'])_0x5f3606['enableDefaultAttributesIntegration'](_0x1d9574);}const _0x583b11=_0x46b43d['locale'];_0x5f3606['registerBlockAttribute']('blockIndent'),_0x5f3606['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x583b11,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23d993=this['editor'],_0x48c993=_0x23d993['locale'],_0x43a505=_0x23d993['plugins']['get']('TrackChangesEditing');_0x43a505['descriptionFactory']['registerDescriptionCallback'](_0x192e43=>{if('formatBlock'!=_0x192e43['type'])return;const {data:_0x3d5210}=_0x192e43;if(!_0x3d5210)return;if('indentBlock'!=_0x3d5210['commandName']&&'outdentBlock'!=_0x3d5210['commandName'])return;const _0x11279e=_0x192e43['getItems']()[0x0],_0x36709d=_0x43a505['descriptionFactory']['getItemLabel'](_0x11279e);return'indentBlock'==_0x3d5210['commandName']?{'type':'format','content':o(_0x48c993,'*Indent:*\x20%0',_0x36709d)}:'outdentBlock'==_0x3d5210['commandName']?{'type':'format','content':o(_0x48c993,'*Outdent:*\x20%0',_0x36709d)}:void 0x0;});}}class ct extends _0xe680e7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xe680e7{['afterInit'](){const _0x347a25=this['editor'];if(!_0x347a25['plugins']['has']('LinkEditing'))return;const _0x5ef572=_0x347a25['plugins']['get']('TrackChangesEditing'),_0x4ecd84=_0x347a25['commands']['get']('link');_0x5ef572['enableDefaultAttributesIntegration']('link'),_0x5ef572['enableDefaultAttributesIntegration']('unlink'),_0x5ef572['registerInlineAttribute']('linkHref');for(const _0x403608 of _0x4ecd84['manualDecorators'])_0x5ef572['registerInlineAttribute'](_0x403608['id']),_0x5ef572['descriptionFactory']['registerAttributeLabel'](_0x403608['id'],'link\x20('+_0x403608['label']['toLowerCase']()+')');_0x5ef572['descriptionFactory']['registerDescriptionCallback'](_0x3243e1=>{if('attribute'!=_0x3243e1['type'])return;const {data:_0x92b88}=_0x3243e1;if(!_0x92b88||'linkHref'!=_0x92b88['key'])return;const _0x19e12e=_0x92b88['newValue'],_0x208adc=_0x347a25['locale'];return{'type':'format','content':null==_0x19e12e?o(_0x208adc,'*Remove\x20link*'):o(_0x208adc,'*Set\x20link:*\x20%0','\x22'+_0x19e12e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1229eb=this['editor'],_0x2989eb=_0x1229eb['locale'];_0x1229eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x445aa4=>{if('formatInline'!=_0x445aa4['type'])return;const {data:_0x4ac6e1}=_0x445aa4;if(_0x4ac6e1){if('link'==_0x4ac6e1['commandName']){const _0x1228dd=_0x4ac6e1['commandParams'][0x0];return{'type':'format','content':o(_0x2989eb,'*Set\x20link:*\x20%0','\x22'+_0x1228dd+'\x22')};}return'unlink'==_0x4ac6e1['commandName']?{'type':'format','content':o(_0x2989eb,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xe680e7{['afterInit'](){const _0xf75163=this['editor'],_0x477db5=_0xf75163['locale'];if(!_0xf75163['plugins']['has']('LegacyListEditing'))return;const _0x50f1c8=_0xf75163['plugins']['get']('TrackChangesEditing'),_0x2bfb64=_0xf75163['plugins']['has']('LegacyTodoListEditing');function _0x35ddb2(_0x93571a){return()=>{const _0x4e5169=_0xf75163['model']['document']['selection'],_0x11d080=_0xf75163['commands']['get'](_0x93571a);if(_0x11d080['value'])return void _0xf75163['execute']('paragraph',{});const _0x3713da=_0x93571a['slice'](0x0,-0x4),_0x4c056c=function(_0x473fdb,_0x536875,_0x3ee5a7){let _0x2f11ad=Array['from'](_0x473fdb)['filter'](_0x5575e3=>function(_0x4e7f94,_0x5c6a8c){return _0x5c6a8c['checkChild'](_0x4e7f94['parent'],'listItem')&&!_0x5c6a8c['isObject'](_0x4e7f94);}(_0x5575e3,_0x3ee5a7));_0x2f11ad=_0x2f11ad['filter'](_0x1099b4=>!_0x1099b4['is']('element','listItem')||_0x1099b4['getAttribute']('listType')!=_0x536875);const _0x26b9d6=new Set();for(const _0x3499ff of _0x2f11ad)_0x3499ff['is']('element','listItem')?_0x26b9d6['add'](Le(_0x3499ff)):_0x26b9d6['add'](_0x3499ff);return Array['from'](_0x26b9d6);}(_0x4e5169['getSelectedBlocks'](),_0x3713da,_0xf75163['model']['schema']);_0xf75163['model']['change'](()=>{for(const _0x37bfa1 of _0x4c056c)_0x50f1c8['markBlockFormat'](_0x37bfa1,{'commandName':_0x93571a,'commandParams':[{'forceValue':!_0x11d080['value']}],'formatGroupId':'blockName'},Ee(_0x37bfa1));});};}function _0x4c1e32(_0x6394f7){return()=>{const _0x2a3f32=function(_0x9cac9f){let _0x24e02b=Array['from'](_0x9cac9f);const _0x442e6e=_0x24e02b['findIndex'](_0x226090=>'listItem'!=_0x226090['name']);return _0x442e6e>-0x1&&(_0x24e02b=_0x24e02b['slice'](0x0,_0x442e6e)),_0x24e02b;}(_0xf75163['model']['document']['selection']['getSelectedBlocks']()),_0x2ec122=_0xf75163['model']['createRange'](_0xf75163['model']['createPositionAt'](_0x2a3f32[0x0],'before'),_0xf75163['model']['createPositionAt'](_0x2a3f32[_0x2a3f32['length']-0x1],'end'));_0xf75163['model']['change'](()=>{_0x50f1c8['markBlockFormat'](_0x2ec122,{'commandName':_0x6394f7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x481f4b){const _0x184ba7=new Set();for(const _0x4afd49 of _0x481f4b){let _0x707b93=_0x4afd49['nextSibling'];for(;_0x707b93&&_0x707b93['getAttribute']('listIndent')>_0x4afd49['getAttribute']('listIndent');)_0x184ba7['add'](_0x707b93),_0x707b93=_0x707b93['nextSibling'];}return Array['from'](_0x184ba7);}(_0x2a3f32));});};}_0x50f1c8['enableCommand']('numberedList',_0x35ddb2('numberedList')),_0x50f1c8['enableCommand']('bulletedList',_0x35ddb2('bulletedList')),_0x2bfb64&&_0x50f1c8['enableCommand']('todoList',_0x35ddb2('todoList')),_0x50f1c8['enableCommand']('indentList',_0x4c1e32('indentList')),_0x50f1c8['enableCommand']('outdentList',_0x4c1e32('outdentList')),_0x2bfb64&&_0x50f1c8['enableCommand']('checkTodoList',()=>{const _0x597f7f=_0xf75163['commands']['get']('checkTodoList'),_0x2249da=Array['from'](_0x597f7f['_selectedElements']);_0x2249da['filter'](_0x4fbd24=>_0x4fbd24['getAttribute']('todoListChecked')!=_0x597f7f['value']),_0xf75163['model']['change'](()=>{for(const _0x4365c8 of _0x2249da)_0x50f1c8['markBlockFormat'](_0x4365c8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x597f7f['value']}]});});}),_0x50f1c8['descriptionFactory']['registerElementLabel']('listItem',_0x1170e3=>o(_0x477db5,'ELEMENT_LIST_ITEM',_0x1170e3)),_0x50f1c8['descriptionFactory']['registerDescriptionCallback'](_0x36863f=>{if('formatBlock'!=_0x36863f['type']&&'formatInline'!=_0x36863f['type'])return;const {data:_0x34c2b2}=_0x36863f;if(_0x34c2b2){if('numberedList'==_0x34c2b2['commandName']||'bulletedList'==_0x34c2b2['commandName']||'todoList'==_0x34c2b2['commandName'])switch(_0x34c2b2['commandName']['replace']('List','')){case'bulleted':return _0x820fd(o(_0x477db5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x820fd(o(_0x477db5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x820fd(o(_0x477db5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x34c2b2['commandName'])return{'type':'format','content':o(_0x477db5,'*Indent:*\x20%0',o(_0x477db5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x34c2b2['commandName'])return{'type':'format','content':o(_0x477db5,'*Outdent:*\x20%0',o(_0x477db5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x34c2b2['commandName'])return _0x34c2b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x477db5,'*Check\x20item*')}:{'type':'format','content':o(_0x477db5,'*Uncheck\x20item*')};}function _0x820fd(_0x2a8acb){return{'type':'format','content':o(_0x477db5,'*Change\x20to:*\x20%0',_0x2a8acb)};}});}}function Le(_0x1601e9){const _0x5e10fa=_0x1601e9['getAttribute']('listIndent');if(0x0==_0x5e10fa)return _0x1601e9;let _0x10eac6=_0x1601e9;for(;_0x1601e9['previousSibling']&&_0x1601e9['previousSibling']['is']('element','listItem');){const _0x13245f=_0x1601e9['previousSibling']['getAttribute']('listIndent');if(_0x13245f==_0x5e10fa)_0x10eac6=_0x1601e9['previousSibling'];else{if(_0x13245f<_0x5e10fa)break;}_0x1601e9=_0x1601e9['previousSibling'];}return _0x10eac6;}function Ee(_0x3c303d){const _0x1eecfd=[];if(_0x3c303d['is']('element','listItem')&&_0x3c303d['getAttribute']('listIndent')>0x0){let _0x2fa097=_0x3c303d['nextSibling'];for(;_0x2fa097&&'listItem'==_0x2fa097['name']&&_0x2fa097['getAttribute']('listIndent')==_0x3c303d['getAttribute']('listIndent');)_0x1eecfd['push'](_0x2fa097),_0x2fa097=_0x2fa097['nextSibling'];}return _0x1eecfd;}class ht extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xa192c3=this['editor']['config']['get']('list.properties'),_0xaccae3=this['editor']['plugins']['get']('TrackChangesEditing');_0xa192c3['styles']&&_0xaccae3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xa192c3['reversed']&&_0xaccae3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xa192c3['startIndex']&&_0xaccae3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xaccae3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4e68ce,_0x5bf925={}){const _0x284586=this['editor']['plugins']['get']('TrackChangesEditing'),_0x122a89=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x284586['markMultiRangeBlockFormat'](_0x122a89,{'commandName':'listStyle','commandParams':[{'type':_0x5bf925['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2f3b1e,_0x4f6397={}){const _0x5c228a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d76e=this['_getSuggestionBlocks'](_0xbffa0=>_0xbffa0['is']('element','listItem')&&'numbered'===_0xbffa0['getAttribute']('listType'));if(_0x16d76e['length']<0x1)return;const _0x4129ad=_0x16d76e['map'](_0x54ff9d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54ff9d,'before'),this['editor']['model']['createPositionAt'](_0x54ff9d,0x0)));this['editor']['model']['change'](()=>{_0x5c228a['markMultiRangeBlockFormat'](_0x4129ad,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f6397['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x353e1c,_0x3fcfb7={}){const _0x15532=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244d0b=this['_getSuggestionBlocks'](_0x584b1c=>_0x584b1c['is']('element','listItem')&&'numbered'===_0x584b1c['getAttribute']('listType'));if(_0x244d0b['length']<0x1)return;const _0x2c8aec=_0x244d0b['map'](_0x2436fc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2436fc,'before'),this['editor']['model']['createPositionAt'](_0x2436fc,0x0)));this['editor']['model']['change'](()=>{_0x15532['markMultiRangeBlockFormat'](_0x2c8aec,{'commandName':'listStart','commandParams':[{'startIndex':_0x3fcfb7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x288d61){if('formatBlock'!=_0x288d61['type']&&'formatInline'!=_0x288d61['type'])return;const _0x1cb7a9=this['editor']['locale'],{data:_0x385e3d}=_0x288d61;if(!_0x385e3d)return;let _0x4077ec,_0x2817eb;switch(_0x385e3d['commandName']){case'listStyle':_0x4077ec='*Change\x20to:*\x20%0',_0x2817eb={'type':'format','content':o(_0x1cb7a9,_0x4077ec,o(_0x1cb7a9,this['_getTranslationKeyForListStyle'](_0x385e3d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4077ec=_0x385e3d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2817eb={'type':'format','content':o(_0x1cb7a9,_0x4077ec)};break;case'listStart':_0x4077ec='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2817eb={'type':'format','content':o(_0x1cb7a9,_0x4077ec,_0x385e3d['commandParams'][0x0]['startIndex'])};}return _0x2817eb;}['_getSuggestionBlocksForListStyle'](){const _0x131932=this['editor']['plugins']['get']('LegacyListUtils');let _0x364c4f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x364c4f[0x0]?.['is']('element','listItem')&&_0x364c4f['unshift'](..._0x131932['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x364c4f[_0x364c4f['length']-0x1]?.['is']('element','listItem')&&_0x364c4f['push'](..._0x131932['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x364c4f=[...new Set(_0x364c4f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x364c4f=_0x364c4f['filter'](_0x5b69c0=>_0x5b69c0['is']('element','listItem'))),_0x364c4f;}['_getSuggestionBlocks'](_0x3d5ee2){const _0x5d442e=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c5799=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3d5ee2)['map'](_0x5534d6=>{const _0x19eca3=this['editor']['model']['createPositionAt'](_0x5534d6,0x0);return[..._0x5d442e['getSiblingNodes'](_0x19eca3,'backward'),..._0x5d442e['getSiblingNodes'](_0x19eca3,'forward')];})['flat']();return _0x5c5799=[...new Set(_0x5c5799)],_0x5c5799;}['_getTranslationKeyForListStyle'](_0x506312){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x506312)||'default')['toUpperCase']()+'_LIST_'+_0x506312['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xe680e7{['afterInit'](){const _0x216d27=this['editor'];if(!_0x216d27['plugins']['has']('MediaEmbedEditing'))return;const _0x36de41=_0x216d27['plugins']['get']('TrackChangesEditing'),_0x58d52b=_0x216d27['locale'];_0x36de41['enableCommand']('mediaEmbed'),_0x36de41['descriptionFactory']['registerElementLabel']('media',_0x19f8ac=>o(_0x58d52b,'ELEMENT_MEDIA',_0x19f8ac)),_0x216d27['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x48cc7b,{writer:_0x29d8b1,options:_0x133062})=>{if(_0x133062['showSuggestionHighlights'])return _0x29d8b1['createEmptyElement']('div');},'converterPriority':'high'}),_0x216d27['data']['downcastDispatcher']['on']('attribute:url:media',(_0x9f968d,_0x36f174,_0x4c7914)=>{_0x4c7914['options']['showSuggestionHighlights']&&_0x9f968d['stop']();},{'priority':'high'});}}class lt extends _0xe680e7{['afterInit'](){const _0x111eb5=this['editor'];_0x111eb5['plugins']['has']('MentionEditing')&&_0x111eb5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xe680e7{['afterInit'](){const _0xe5946d=this['editor'];if(!_0xe5946d['plugins']['has']('MergeFieldsEditing'))return;const _0x2c0d04=_0xe5946d['plugins']['get']('TrackChangesEditing'),_0x17935e=_0xe5946d['locale'];_0x2c0d04['enableCommand']('insertMergeField'),_0x2c0d04['enableCommand']('insertMergeFieldBlock'),_0x2c0d04['enableCommand']('insertMergeFieldImage'),_0x2c0d04['descriptionFactory']['registerElementLabel']('mergeField',_0x12fafc=>o(_0x17935e,'ELEMENT_MERGE_FIELD',_0x12fafc)),_0x2c0d04['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3050b3=>o(_0x17935e,'ELEMENT_MERGE_FIELD',_0x3050b3)),_0x2c0d04['descriptionFactory']['registerDescriptionCallback'](_0x281af2=>{if('insertion'!=_0x281af2['type']&&'deletion'!=_0x281af2['type'])return;const _0x26eb71=_0x281af2['getContainedElement']();if(null==_0x26eb71)return;const _0x2d529c=_0xe5946d['plugins']['get']('MergeFieldsEditing');let _0x473019;switch(_0x2d529c['getMergeFieldType'](_0x26eb71)){case null:return;case'image':{const _0x651c0a=_0x2d529c['unwrapAffixes'](_0x26eb71['getAttribute']('src'));_0x473019=_0x2d529c['getLabel'](_0x651c0a)||_0x651c0a;break;}default:{const _0x4eda8b=_0x26eb71['getAttribute']('id');_0x473019=_0x2d529c['getLabel'](_0x4eda8b)||_0x4eda8b;break;}}return'insertion'==_0x281af2['type']?{'type':'insertion','content':o(_0x17935e,'*Insert:*\x20%0','\x22'+_0x473019+'\x22\x20'+o(_0x17935e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x17935e,'*Remove:*\x20%0','\x22'+_0x473019+'\x22\x20'+o(_0x17935e,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xe680e7{['afterInit'](){const _0x2d2453=this['editor'],_0x391d8a=_0x2d2453['plugins']['get']('TrackChangesEditing');_0x2d2453['plugins']['has']('MultiLevelList')&&(_0x391d8a['enableDefaultAttributesIntegration']('multiLevelList'),_0x391d8a['registerBlockAttribute']('listMarkerStyle'),_0x391d8a['descriptionFactory']['registerDescriptionCallback'](_0x1999ee=>this['handleDescriptions'](_0x1999ee)));}['handleDescriptions'](_0x5d54dd){const _0x27baae=this['editor']['locale'],{data:_0x53c384}=_0x5d54dd,_0x2a415f={'type':'format','content':''};if(_0x53c384&&'listMarkerStyle'==_0x53c384['key']){if(!_0x53c384['oldValue'])return{'type':'format','content':o(_0x27baae,'*Set\x20format:*\x20%0',o(_0x27baae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53c384['newValue']+')'};if(!_0x53c384['newValue']){let _0x469406=_0x5d54dd['head'];for(;_0x469406;){if(_0x469406['data']&&'listType'==_0x469406['data']['key']&&_0x469406['data']['newValue'])return _0x2a415f;_0x469406=_0x469406['next'];}return{'type':'format','content':o(_0x27baae,'*Remove\x20format:*\x20%0',o(_0x27baae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53c384['oldValue']+')'};}}}}class pt extends _0xe680e7{['afterInit'](){const _0xaabd31=this['editor'];if(!_0xaabd31['plugins']['has']('PageBreakEditing'))return;_0xaabd31['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2da6c5=_0xaabd31['plugins']['get']('TrackChangesEditing'),_0x349554=_0xaabd31['locale'];_0x2da6c5['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e9b45=>o(_0x349554,'ELEMENT_PAGE_BREAK',_0x1e9b45));}}class kt extends _0xe680e7{['afterInit'](){const _0x3f6b54=this['editor'];if(!_0x3f6b54['plugins']['has']('Paragraph'))return;const _0x522f37=_0x3f6b54['locale'],_0xcc8c8f=_0x3f6b54['plugins']['get']('TrackChangesEditing');_0xcc8c8f['descriptionFactory']['registerElementLabel']('paragraph',_0x4b0914=>o(_0x522f37,'ELEMENT_PARAGRAPH',_0x4b0914)),_0xcc8c8f['enableDefaultAttributesIntegration']('paragraph'),_0xcc8c8f['enableCommand']('insertParagraph'),_0x3f6b54['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3f6b54),{'priority':'highest'}),_0x3f6b54['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ba54f,_0x322ad2,_0x1639f1)=>{_0x1639f1['options']['showSuggestionHighlights']&&nr(_0x3f6b54,{'showActiveMarker':!0x1})(_0x3ba54f,_0x322ad2,_0x1639f1);},{'priority':'highest'});const _0x2a397c=_0xcc8c8f['descriptionFactory'];_0x2a397c['registerDescriptionCallback'](_0x2e392b=>{if('insertion'!==_0x2e392b['type'])return;const {start:_0x54749d,end:_0x58dc12}=_0x2e392b['getFirstRange']();if(!_0x54749d['isTouching'](_0x58dc12)||!_0x54749d['nodeAfter'])return;const _0x868ad4=_0x3f6b54['model']['schema'],_0x3704d6=_0x54749d['nodeAfter'];return _0x868ad4['isBlock'](_0x3704d6)&&!_0x868ad4['isLimit'](_0x3704d6)&&_0x868ad4['checkChild'](_0x3704d6,'$text')?{'type':'insertion','content':o(_0x522f37,'*Insert:*\x20%0',_0x2a397c['getItemLabel'](_0x3704d6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bbe8f=this['editor'],_0x6e9906=_0x2bbe8f['locale'];_0x2bbe8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1afc5d=>{if('formatBlock'!=_0x1afc5d['type'])return;const {data:_0x131c99}=_0x1afc5d;return _0x131c99&&'paragraph'==_0x131c99['commandName']?{'type':'format','content':o(_0x6e9906,'*Change\x20to:*\x20%0',o(_0x6e9906,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1b9927,{showActiveMarker:_0x10ed9b=!0x0}={}){return(_0x29ff3d,_0x472091,_0x4533cc)=>{const _0x23d23e=_0x1b9927['plugins']['get']('TrackChangesEditing'),_0x57d0ca=_0x472091['markerRange']['start'],_0x5f196d=_0x472091['markerRange']['end'],_0x55abfd=_0x1b9927['model']['schema'];if(!_0x57d0ca['isTouching'](_0x5f196d)||!_0x57d0ca['nodeAfter'])return;const _0x4d6892=_0x57d0ca['nodeAfter'];if(_0x55abfd['isBlock'](_0x4d6892)&&!_0x55abfd['isLimit'](_0x4d6892)&&_0x55abfd['checkChild'](_0x4d6892,'$text')){if(!_0x4533cc['consumable']['consume'](_0x472091['markerRange'],_0x29ff3d['name']))return;const {id:_0xd6bf0b,authorId:_0x5601f0}=_0x23d23e['_splitMarkerName'](_0x472091['markerName']),_0xddffd7=_0x4533cc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xd6bf0b,'data-author-id':_0x5601f0}),_0x163c58=_0x4533cc['mapper']['toViewPosition'](_0x5f196d);_0x10ed9b&&_0x23d23e['activeMarkers']['includes'](_0x472091['markerName'])&&_0x4533cc['writer']['addClass']('ck-suggestion-marker--active',_0xddffd7),_0x4533cc['writer']['insert'](_0x163c58,_0xddffd7),_0x4533cc['mapper']['bindElementToMarker'](_0xddffd7,_0x472091['markerName']);}};}class wt extends _0xe680e7{['afterInit'](){const _0x25e78e=this['editor'];_0x25e78e['commands']['get']('replaceSource')&&_0x25e78e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xe680e7{['afterInit'](){const _0x381564=this['editor'];if(!_0x381564['plugins']['has']('RemoveFormatEditing'))return;_0x381564['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x116067=this['editor'];_0x116067['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f42de=>{if('formatBlock'!=_0x1f42de['type']&&'formatInline'!=_0x1f42de['type'])return;const {data:_0x29eb88}=_0x1f42de;return _0x29eb88&&'removeFormat'==_0x29eb88['commandName']?{'type':'format','content':o(_0x116067['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xe680e7{['afterInit'](){const _0x7009db=this['editor'];if(!_0x7009db['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xffec8f=_0x7009db['plugins']['get']('TrackChangesEditing');_0xffec8f['enableCommand']('goToPreviousRestrictedEditingException'),_0xffec8f['enableCommand']('goToNextRestrictedEditingException');const _0x117245=_0x7009db['plugins']['get']('RestrictedEditingModeEditing');_0x117245['enableCommand']('trackChanges'),_0x117245['enableCommand']('acceptSuggestion'),_0x117245['enableCommand']('discardSuggestion'),_0x117245['enableCommand']('acceptAllSuggestions'),_0x117245['enableCommand']('discardAllSuggestions'),_0x117245['enableCommand']('acceptSelectedSuggestions'),_0x117245['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xe680e7{['afterInit'](){const _0x1ce53a=this['editor'];if(!_0x1ce53a['plugins']['has']('ShiftEnter'))return;const _0x3ab11d=_0x1ce53a['plugins']['get']('TrackChangesEditing');_0x3ab11d['enableCommand']('shiftEnter'),_0x1ce53a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1ce53a),{'priority':'high'}),_0x1ce53a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1ce53a),{'priority':'high'}),_0x1ce53a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x20e386,_0x494de9,_0x3a4cd4)=>{_0x3a4cd4['options']['showSuggestionHighlights']&&je(_0x1ce53a,{'showActiveMarker':!0x1})(_0x20e386,_0x494de9,_0x3a4cd4);}),_0x3ab11d['descriptionFactory']['registerElementLabel']('softBreak',_0x3c0a6f=>o(_0x1ce53a['locale'],'ELEMENT_LINE_BREAK',_0x3c0a6f));}}function je(_0xfcfa71,{showActiveMarker:_0x5e3171=!0x0}={}){return(_0x59e537,_0x7a601e,_0x28cb1a)=>{const _0x182313=_0xfcfa71['plugins']['get']('TrackChangesEditing');if(!_0x28cb1a['consumable']['test'](_0x7a601e['markerRange'],_0x59e537['name']))return;const _0x3c1dc4=_0xfcfa71['model'];for(const _0x30861b of _0x7a601e['markerRange']['getItems']()){if(!_0x30861b['is']('element','softBreak'))continue;const _0x26a16b='deletion'==_0x7a601e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x55ef04,authorId:_0x186c2d}=_0x182313['_splitMarkerName'](_0x7a601e['markerName']),_0x422394=_0x28cb1a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26a16b,'data-suggestion':_0x55ef04,'data-author-id':_0x186c2d}),_0x530a0b=_0x28cb1a['mapper']['toViewPosition'](_0x3c1dc4['createPositionBefore'](_0x30861b));_0x5e3171&&_0x182313['activeMarkers']['includes'](_0x7a601e['markerName'])&&_0x28cb1a['writer']['addClass']('ck-suggestion-marker--active',_0x422394),_0x28cb1a['writer']['insert'](_0x530a0b,_0x422394),_0x28cb1a['mapper']['bindElementToMarker'](_0x422394,_0x7a601e['markerName']);}};}class St extends _0xe680e7{['afterInit'](){const _0x553c42=this['editor'],_0x4e41c9=_0x553c42['model'],_0x546ad5=_0x553c42['locale'];if(!_0x553c42['plugins']['has']('StandardEditingModeEditing'))return;const _0x336b35=_0x553c42['plugins']['get']('TrackChangesEditing'),_0x44fc81='restrictedEditingException',_0x437658=_0x553c42['commands']['get'](_0x44fc81);_0x336b35['enableCommand'](_0x44fc81,(_0x49a1f6,_0x26ec3d={})=>{const _0x55e844=_0x4e41c9['document']['selection'];if(_0x55e844['isCollapsed'])return void _0x49a1f6(_0x26ec3d);const _0x1047fc=void 0x0!==_0x26ec3d['forceValue']?_0x26ec3d['forceValue']:!_0x437658['value'];_0x4e41c9['change'](()=>{const _0x15df2d=Array['from'](_0x55e844['getRanges']());for(const _0x5246c2 of _0x15df2d){const _0x230105=_0x1047fc?[_0x5246c2]:io(_0x44fc81,_0x5246c2,_0x4e41c9);for(const _0x311c64 of _0x230105)_0x336b35['markInlineFormat'](_0x311c64,{'commandName':_0x44fc81,'commandParams':[{'forceValue':_0x1047fc}]});}});}),_0x336b35['descriptionFactory']['registerDescriptionCallback'](_0x4c3926=>{if('formatBlock'!=_0x4c3926['type']&&'formatInline'!=_0x4c3926['type'])return;const {data:_0x5b65fa}=_0x4c3926;return _0x5b65fa&&_0x5b65fa['commandName']==_0x44fc81?_0x5b65fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x546ad5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x546ad5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xe680e7{['afterInit'](){const _0x230d8c=this['editor'];if(!_0x230d8c['plugins']['has']('Style')||!_0x230d8c['plugins']['has']('DataSchema'))return;const _0x5ba07f=_0x230d8c['plugins']['get']('TrackChangesEditing'),_0x11de4b=_0x230d8c['locale'],_0x960a1b=_0x230d8c['config']['get']('style')||{},_0x2d3725=_0x230d8c['plugins']['get']('GeneralHtmlSupport'),_0x1fc214=_0x230d8c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x230d8c['plugins']['get']('DataSchema'),_0x960a1b['definitions']);_0x5ba07f['enableDefaultAttributesIntegration']('style');const _0x4bfef1=new Set();for(const _0x3c6291 of _0x1fc214['block']){const _0x263795=_0x2d3725['getGhsAttributeNameForElement'](_0x3c6291['element']);_0x4bfef1['add'](_0x263795);}const _0x3fd45b=new Set();for(const _0x38be1a of _0x1fc214['inline']){const _0x28d301=_0x2d3725['getGhsAttributeNameForElement'](_0x38be1a['element']);_0x3fd45b['add'](_0x28d301);for(const _0x117c85 of _0x38be1a['ghsAttributes'])_0x3fd45b['add'](_0x117c85);}for(const _0x2e34ab of _0x4bfef1)_0x5ba07f['registerBlockAttribute'](_0x2e34ab),_0x5ba07f['descriptionFactory']['registerAttributeLabel'](_0x2e34ab,o(_0x11de4b,'FORMAT_STYLE'));for(const _0x1da6a5 of _0x3fd45b)_0x5ba07f['registerInlineAttribute'](_0x1da6a5),_0x5ba07f['descriptionFactory']['registerAttributeLabel'](_0x1da6a5,o(_0x11de4b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398c77=this['editor'],_0x22d220=_0x398c77['locale'];_0x398c77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5550a1=>{if('formatBlock'!=_0x5550a1['type']&&'formatInline'!=_0x5550a1['type'])return;const {data:_0x5a208d}=_0x5550a1;return _0x5a208d&&'style'===_0x5a208d['commandName']?_0x5a208d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22d220,'*Set\x20format:*\x20%0',_0x5a208d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x22d220,'*Remove\x20format:*\x20%0',_0x5a208d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xe680e7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4a8c40){super(_0x4a8c40),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x39847f=this['editor'],_0x22740a=_0x39847f['model']['document']['selection'];if(!_0x39847f['plugins']['has']('TableEditing'))return;const _0xc68a2f=_0x39847f['locale'],_0x4ef008=_0x39847f['plugins']['get']('TrackChangesEditing'),_0x4a99e5=_0x39847f['plugins']['get']('TableUtils');_0x4ef008['descriptionFactory']['registerElementLabel']('table',_0x49bc03=>o(_0xc68a2f,'ELEMENT_TABLE',_0x49bc03)),this['_setupColumnsRowsFixing'](),_0x4ef008['enableCommand']('insertTable'),_0x4ef008['enableCommand']('selectTableRow'),_0x4ef008['enableCommand']('selectTableColumn');for(const _0xc70671 of['insertTableRowAbove','insertTableRowBelow']){const _0x3cde53=_0x39847f['commands']['get'](_0xc70671);_0x4ef008['enableCommand'](_0xc70671,_0x12b569=>{_0x39847f['model']['change'](_0x33ea77=>{_0x12b569();const _0x45623b='above'===_0x3cde53['order'],_0x13b079=_0x4a99e5['getSelectionAffectedTableCells'](_0x22740a),_0x5a5d9b=_0x4a99e5['getRowIndexes'](_0x13b079),_0x439c44=_0x45623b?_0x5a5d9b['first']-0x1:_0x5a5d9b['last']+0x1,_0x642feb=_0x13b079[0x0]['findAncestor']('table'),_0x34b0e0=_0x4a99e5['createTableWalker'](_0x642feb,{'startRow':_0x439c44,'endRow':_0x439c44}),_0x135cc6=Array['from'](_0x34b0e0)['map'](_0x3c8065=>_0x33ea77['createRangeOn'](_0x3c8065['cell']));_0x4ef008['markMultiRangeInsertion'](_0x135cc6,'tableRow');});});}for(const _0x2a9166 of['insertTableColumnLeft','insertTableColumnRight']){const _0x569b1d=_0x39847f['commands']['get'](_0x2a9166);_0x4ef008['enableCommand'](_0x2a9166,_0x1b4251=>{_0x39847f['model']['change'](_0x49eaa8=>{_0x1b4251();const _0x58051c='left'===_0x569b1d['order'],_0x5314a8=_0x4a99e5['getSelectionAffectedTableCells'](_0x22740a),_0x10acda=_0x4a99e5['getColumnIndexes'](_0x5314a8),_0x405441=_0x58051c?_0x10acda['first']-0x1:_0x10acda['last']+0x1,_0x4b1295=_0x5314a8[0x0]['findAncestor']('table'),_0x2e542a=_0x4a99e5['createTableWalker'](_0x4b1295,{'startRow':0x0,'column':_0x405441,'includeAllSlots':!0x1}),_0x375da3=Array['from'](_0x2e542a)['map'](_0x2822df=>_0x49eaa8['createRangeOn'](_0x2822df['cell']));_0x4ef008['markMultiRangeInsertion'](_0x375da3,'tableColumn');});});}for(const _0x4cfa69 of['removeTableRow','removeTableColumn']){const _0x2021fb=_0x4cfa69['substr'](0xb),_0x1771b2=_0x2021fb['toLowerCase'](),_0x4edc17=_0x1771b2['substr'](0x0,0x3)+'span',_0x3fc5b1='table'+_0x2021fb,_0x160700='min'+_0x2021fb,_0x22a2a1='max'+_0x2021fb;_0x4ef008['enableCommand'](_0x4cfa69,()=>{_0x39847f['model']['change'](_0xc3f91c=>{const _0x51913b=_0x4a99e5['getSelectionAffectedTableCells'](_0x22740a),_0x46e07c=_0x51913b[0x0]['findAncestor']('table');let _0x2cd3dc;if('removeTableRow'==_0x4cfa69){const _0x3acad2=_0x4a99e5['getRowIndexes'](_0x51913b);_0x2cd3dc={'startRow':_0x3acad2['first'],'endRow':_0x3acad2['last'],'includeAllSlots':!0x0};}else{const _0x3a2f19=_0x4a99e5['getColumnIndexes'](_0x51913b);_0x2cd3dc={'startColumn':_0x3a2f19['first'],'endColumn':_0x3a2f19['last'],'includeAllSlots':!0x0};}const _0x1ec090=_0x4a99e5['createTableWalker'](_0x46e07c,_0x2cd3dc),_0x18bf5e=Array['from'](_0x1ec090)['map'](({cell:_0x21f61f})=>_0x21f61f),_0x1c3a9b=Ne(_0x18bf5e['filter'](_0x333732=>_0x333732['hasAttribute'](_0x4edc17))),_0x51f2b4=Ne(_0x18bf5e['filter'](_0x2ad1e9=>!_0x2ad1e9['hasAttribute'](_0x4edc17)))['map'](_0x29e2d3=>_0xc3f91c['createRangeOn'](_0x29e2d3)),_0x39a509=_0x4ef008['markMultiRangeDeletion'](_0x51f2b4,_0x3fc5b1);if(_0x39a509&&('tableRow'==_0x39a509['subType']||'tableColumn'==_0x39a509['subType'])){const _0x3d72e3=this['_getSuggestionCoords'](_0x39a509);for(const _0x3cbebf of _0x1c3a9b){const _0x153b14=_0xc3f91c['createRangeOn'](_0x3cbebf),_0x588f0a=_0x4a99e5['getCellLocation'](_0x3cbebf),_0x4c17c2=_0x3cbebf['getAttribute'](_0x4edc17)-0x1,_0xd50eed=_0x3d72e3[_0x160700],_0x37f9e5=_0x3d72e3[_0x22a2a1];_0xd50eed<=_0x588f0a[_0x1771b2]&&_0x588f0a[_0x1771b2]+_0x4c17c2<=_0x37f9e5&&_0x39a509['addRange'](_0x153b14);}}});});}function _0x2be704(_0x56c4be){const _0x52f1fc=Array['from'](_0x22740a['getRanges']())['map'](_0x58fa39=>_0x50a820['fromRange'](_0x58fa39));_0x39847f['model']['change'](_0x348919=>{const _0x5889eb=_0x348919['batch'];_0x56c4be=_0x56c4be['filter'](_0x1dd072=>'$graveyard'!=_0x1dd072['root']['rootName']),_0x348919['setSelection'](_0x56c4be),_0x39847f['commands']['get']('removeTableRow')['refresh'](),_0x39847f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x39847f['model']['enqueueChange'](()=>{_0x39847f['model']['enqueueChange'](_0x5889eb,_0x21c146=>{const _0x11865c=_0x52f1fc['filter'](_0x302d4f=>'$graveyard'!=_0x302d4f['root']['rootName']);_0x11865c['length']>0x0&&_0x21c146['setSelection'](_0x11865c);for(const _0x26d658 of _0x52f1fc)_0x26d658['detach']();});});});}function _0xd5e549(_0x11e030){_0x39847f['model']['change'](_0x24604e=>{const _0x536f11=Array['from'](_0x22740a['getRanges']())['map'](_0x53ebc8=>_0x50a820['fromRange'](_0x53ebc8)),_0x27d021=[];for(const _0x1ad346 of _0x11e030)for(const _0xfa9b61 of _0x1ad346['getItems']({'shallow':!0x0}))_0x27d021['push'](_0xfa9b61);for(const _0x3fd2e2 of _0x27d021)'$graveyard'!=_0x3fd2e2['root']['rootName']&&(_0x24604e['setSelection'](_0x24604e['createPositionAt'](_0x3fd2e2,0x0)),_0x39847f['commands']['get']('removeTableColumn')['refresh'](),_0x39847f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x552081=_0x536f11['filter'](_0x1adea0=>'$graveyard'!=_0x1adea0['root']['rootName']);_0x552081['length']>0x0&&_0x24604e['setSelection'](_0x552081);for(const _0x545550 of _0x536f11)_0x545550['detach']();});}function _0x4f1f0b(_0xa456d9,_0x334104){return _0x334104['every'](_0x1edce6=>_0xa456d9['some'](_0x136d72=>_0x136d72['end']['isEqual'](_0x1edce6['start'])||_0x1edce6['end']['isEqual'](_0x136d72['start'])));}function _0xb64456(_0x157e4e,_0x4b4251){return!_0x157e4e['some'](_0x563d78=>_0x4b4251['some'](_0x2030fd=>_0x563d78['isIntersecting'](_0x2030fd)))&&_0x157e4e['some'](_0x32f4d8=>_0x4b4251['some'](_0x357728=>_0x32f4d8['end']['isTouching'](_0x357728['start'])));}_0x39847f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc40828,_0x2471bc,_0xffc236)=>{if(!_0xffc236['options']['showSuggestionHighlights'])return;const _0x2e6c50=_0x2471bc['item'];if(!_0x2e6c50||!_0x2e6c50['is']('element','tableCell'))return;const _0x857239=_0xffc236['mapper']['toViewElement'](_0x2e6c50);if(_0x857239){const {id:_0x3ca090,authorId:_0x252ccf}=_0x4ef008['_splitMarkerName'](_0x2471bc['markerName']);_0x19f8a1(_0x857239,_0xffc236['writer'],(_0x3ac66d,_0x147499,_0x587904)=>{_0x587904['addClass'](_0x56ffe6(_0x147499['classes']),_0x3ac66d),_0x587904['setAttribute']('data-suggestion-id',_0x3ca090,_0x3ac66d),_0x587904['setAttribute']('data-author-id',_0x252ccf,_0x3ac66d);},(_0x119ded,_0x53b8ea,_0x4967d8)=>{_0x4967d8['removeClass'](_0x56ffe6(_0x53b8ea['classes']),_0x119ded),_0x4967d8['removeAttribute']('data-suggestion-id',_0x119ded),_0x4967d8['removeAttribute']('data-author-id',_0x119ded);});}},{'priority':'highest'}),_0x4ef008['descriptionFactory']['registerDescriptionCallback'](_0x241057=>{if('insertion'!=_0x241057['type']&&'deletion'!=_0x241057['type'])return;const _0x38155d=_0x241057['getContainedElement']();if(null!=_0x38155d&&_0x38155d['is']('element','table')){if('insertion'==_0x241057['type']){const _0x371924=_0x241057['getItems']()['filter'](_0xfb16aa=>_0xfb16aa['is']('$textProxy'))['map'](_0x2ee5de=>_0x2ee5de['data']);if(_0x371924['length'])return{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x371924['join']('\x20')+'\x22'))};}if('deletion'==_0x241057['type']){const _0x1cce2d=_0x241057['getItems']()['filter'](_0x2ad953=>_0x2ad953['is']('$textProxy'))['map'](_0x3a6152=>_0x3a6152['data']);if(_0x1cce2d['length'])return{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cce2d['join']('\x20')+'\x22'))};}}}),_0x4ef008['descriptionFactory']['registerDescriptionCallback'](_0x9ea50f=>{if('tableRow'==_0x9ea50f['subType']){const _0x3494e9=_0x9ea50f['getItems']()['filter'](_0x39be80=>_0x39be80['is']('$textProxy'))['map'](_0x43505f=>_0x43505f['data']),_0x548efa=this['_getSuggestionCoords'](_0x9ea50f),_0x2f9fa6=_0x548efa['maxRow']-_0x548efa['minRow']+0x1;if('insertion'==_0x9ea50f['type'])return _0x3494e9['length']?{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f9fa6,'\x22'+_0x3494e9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW',_0x2f9fa6))};if('deletion'==_0x9ea50f['type'])return _0x3494e9['length']?{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f9fa6,'\x22'+_0x3494e9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW',_0x2f9fa6))};}if('tableColumn'==_0x9ea50f['subType']){const _0x25ff96=_0x9ea50f['getItems']()['filter'](_0x2b759c=>_0x2b759c['is']('$textProxy'))['map'](_0x4e8ec8=>_0x4e8ec8['data']),_0x2d2dd8=this['_getSuggestionCoords'](_0x9ea50f),_0x15f4c0=_0x2d2dd8['maxColumn']-_0x2d2dd8['minColumn']+0x1;if('insertion'==_0x9ea50f['type'])return _0x25ff96['length']?{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x15f4c0,'\x22'+_0x25ff96['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN',_0x15f4c0))};if('deletion'==_0x9ea50f['type'])return _0x25ff96['length']?{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x15f4c0,'\x22'+_0x25ff96['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN',_0x15f4c0))};}}),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2be704),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2be704),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xd5e549),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xd5e549),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4f1f0b),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4f1f0b),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xb64456),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xb64456);}['_acceptFormatSuggestionCallbackFactory'](){const _0x102469=this['editor'],_0x5ccb38=_0x102469['model']['document']['selection'];return(_0x59d89d,_0x9aacc6)=>{_0x102469['model']['change'](_0x4d9cf2=>{const {commandName:_0x25c449,commandParams:_0x471a5a}=_0x9aacc6;let _0x31f39c=_0x59d89d[0x0]['end']['nodeBefore'];_0x471a5a&&_0x471a5a[0x0]&&!0x1===_0x471a5a[0x0]['forceValue']&&(_0x31f39c=_0x59d89d[0x0]['start']['nodeAfter']);const _0x3b3bd7=_0x4d9cf2['createRangeIn'](_0x31f39c);if('$graveyard'==_0x3b3bd7['root']['rootName'])return;const _0x5ea11b=Array['from'](_0x5ccb38['getRanges']())['map'](_0x546375=>_0x50a820['fromRange'](_0x546375));_0x4d9cf2['setSelection'](_0x3b3bd7),_0x102469['commands']['get'](_0x25c449)['refresh'](),_0x471a5a['push']({'forceDefaultExecution':!0x0}),_0x102469['execute'](_0x25c449,..._0x471a5a);const _0x8e98c1=_0x5ea11b['filter'](_0x9f68af=>'$graveyard'!=_0x9f68af['root']['rootName']);_0x8e98c1['length']>0x0&&_0x4d9cf2['setSelection'](_0x8e98c1);for(const _0x30a23b of _0x5ea11b)_0x30a23b['detach']();});};}['_getCoordsForCells'](_0x3e0972){const _0x451a98=this['editor']['plugins']['get']('TableUtils');let _0x4d0fab=Number['MAX_SAFE_INTEGER'],_0x3c9cdb=Number['MIN_SAFE_INTEGER'],_0x3b4312=Number['MAX_SAFE_INTEGER'],_0x5367bb=Number['MIN_SAFE_INTEGER'];for(const _0x470f9d of _0x3e0972){if('$graveyard'==_0x470f9d['root']['rootName'])continue;const {row:_0x57bc64,column:_0x4df2c4}=_0x451a98['getCellLocation'](_0x470f9d),_0x417340=_0x470f9d['hasAttribute']('rowspan')?_0x470f9d['getAttribute']('rowspan')-0x1:0x0,_0x4a8051=_0x470f9d['hasAttribute']('colspan')?_0x470f9d['getAttribute']('colspan')-0x1:0x0;_0x4d0fab=_0x57bc64<_0x4d0fab?_0x57bc64:_0x4d0fab,_0x3c9cdb=_0x57bc64+_0x417340>_0x3c9cdb?_0x57bc64+_0x417340:_0x3c9cdb,_0x3b4312=_0x4df2c4<_0x3b4312?_0x4df2c4:_0x3b4312,_0x5367bb=_0x4df2c4+_0x4a8051>_0x5367bb?_0x4df2c4+_0x4a8051:_0x5367bb;}return{'minRow':_0x4d0fab,'maxRow':_0x3c9cdb,'minColumn':_0x3b4312,'maxColumn':_0x5367bb};}['_setupColumnsRowsFixing'](){const _0x36a664=this['editor'],_0x1ed90d=_0x36a664['plugins']['get']('TrackChangesEditing'),_0x1b31a3=_0x36a664['plugins']['get']('TableUtils');_0x36a664['model']['document']['on']('change:data',()=>{const _0x459756=Array['from'](_0x36a664['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24630a,data:_0x24c5a6}of _0x459756){const {group:_0x594303,id:_0x508261,subType:_0x3f1e45}=_0x1ed90d['_splitMarkerName'](_0x24630a);if('suggestion'!=_0x594303)continue;if(null!=_0x24c5a6['oldRange'])continue;const _0x12348d=_0x1ed90d['getSuggestion'](_0x508261);this['_tablePostFixingSubtypes']['includes'](_0x3f1e45)&&this['_tableSuggestions']['add'](_0x12348d);}},{'priority':'low'});const _0x2d92a0=(_0x1aefa3,_0x1f0c6f)=>{let _0x19c4b0=!0x1;const _0x469686=_0x1f0c6f['createRangeOn'](_0x1aefa3),_0x117d8e=_0x1aefa3['findAncestor']('table'),_0x20322f=_0x1b31a3['getCellLocation'](_0x1aefa3);for(const _0x3df7aa of this['_tableSuggestions']){const _0x1ccb6c=_0x3df7aa['subType'],_0x50f73b=_0x1ccb6c['startsWith']('tablePaste'),_0x2ed4c0=_0x1ccb6c['substr'](_0x50f73b?0xa:0x5),_0x1c6e18=_0x2ed4c0['toLowerCase'](),_0x55b381=_0x1c6e18['substr'](0x0,0x3)+'span',_0x752dce='min'+_0x2ed4c0,_0x5a015d='max'+_0x2ed4c0;if(!_0x3df7aa['isInContent'])continue;if(_0x117d8e!=_0x3df7aa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3df7aa['isIntersectingWithRange'](_0x469686))continue;const _0x2bf96a=_0x1aefa3['hasAttribute'](_0x55b381)?_0x1aefa3['getAttribute'](_0x55b381)-0x1:0x0,_0x1c78e0=this['_getSuggestionCoords'](_0x3df7aa),_0x2916d4=_0x1c78e0[_0x752dce],_0x3de77d=_0x1c78e0[_0x5a015d];_0x2916d4<=_0x20322f[_0x1c6e18]&&_0x20322f[_0x1c6e18]+_0x2bf96a<=_0x3de77d&&(_0x3df7aa['addRange'](_0x469686),_0x19c4b0=!0x0);}return _0x19c4b0;};_0x36a664['model']['document']['registerPostFixer'](_0x24f96c=>{let _0x315128=!0x1;for(const _0x520990 of _0x36a664['model']['document']['differ']['getChanges']())if('insert'==_0x520990['type']){if('tableRow'==_0x520990['name']){for(const _0x3c6ed9 of _0x520990['position']['nodeAfter']['getChildren']())_0x315128=_0x315128||_0x2d92a0(_0x3c6ed9,_0x24f96c);}else'tableCell'==_0x520990['name']&&(_0x315128=_0x315128||_0x2d92a0(_0x520990['position']['nodeAfter'],_0x24f96c));}return _0x315128;});}['_getSuggestionCoords'](_0x4ac943){return this['_getCoordsForCells'](_0x4ac943['getRanges']()['map'](_0x181f51=>_0x181f51['start']['nodeAfter']));}}function Ne(_0x2935bb){return Array['from'](new Set(_0x2935bb)['values']());}class _t extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x4ab222=this['editor'],_0xff6a58=_0x4ab222['model']['document']['selection'],_0x563718=_0x4ab222['locale'];if(!_0x4ab222['plugins']['has']('TableEditing'))return;const _0x3a9ed2=_0x4ab222['plugins']['get']('TrackChangesEditing'),_0x4f8a25=_0x4ab222['plugins']['get']('TableUtils'),_0x12973e=_0x4ab222['plugins']['get'](At);_0x12973e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3a9ed2['enableCommand']('mergeTableCells',()=>{const _0x25ad1d=_0x4f8a25['getSelectionAffectedTableCells'](_0x4ab222['model']['document']['selection']);_0x4ab222['model']['change'](()=>{_0x3a9ed2['markMultiRangeBlockFormat'](_0x25ad1d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4ab222['commands']['get']('mergeTableCells')['on']('execute',(_0x521ae0,_0x1df27b)=>{_0x4ab222['commands']['get']('trackChanges')['value']&&(_0x1df27b['length']>0x0&&_0x1df27b[_0x1df27b['length']-0x1]&&_0x1df27b[_0x1df27b['length']-0x1]['forceDefaultExecution']||_0x3a9ed2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x521ae0['stop']());},{'priority':'highest'});for(const _0x1e8d62 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x431d50=_0x4ab222['commands']['get'](_0x1e8d62);_0x3a9ed2['enableCommand'](_0x1e8d62,()=>{const _0x1916e8=_0x4ab222['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5db6cf=>_0x5db6cf['is']('element','tableCell')),_0x11ed1c=_0x431d50['value'];_0x4ab222['model']['change'](()=>{_0x3a9ed2['markMultiRangeBlockFormat']([_0x1916e8,_0x11ed1c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x46459a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x9d5b66=_0x4ab222['commands']['get'](_0x46459a);_0x3a9ed2['enableCommand'](_0x46459a,()=>{const _0x5ab25c=_0x4f8a25['getSelectionAffectedTableCells'](_0x4ab222['model']['document']['selection'])[0x0],_0x440894=_0x5ab25c['findAncestor']('table'),{column:_0x4fadb1,row:_0x192248}=_0x4f8a25['getCellLocation'](_0x5ab25c);let _0x5b3d6d=[];if('horizontally'==_0x9d5b66['direction']){const _0x378f33=_0x4f8a25['createTableWalker'](_0x440894,{'startRow':_0x192248,'endRow':_0x192248,'includeAllSlots':!0x0});_0x5b3d6d=Array['from'](_0x378f33)['map'](_0x412045=>_0x412045['cell']);}else{const _0x37b3e0=_0x4f8a25['createTableWalker'](_0x440894,{'column':_0x4fadb1,'includeAllSlots':!0x0});_0x5b3d6d=Array['from'](_0x37b3e0)['map'](_0x19f695=>_0x19f695['cell']);}_0x4ab222['model']['change'](_0x3c7eb0=>{_0x3a9ed2['markBlockFormat'](_0x3c7eb0['createRangeOn'](_0x5ab25c),{'commandName':_0x46459a,'commandParams':[]},_0x5b3d6d,_0x46459a);});});}_0x3a9ed2['descriptionFactory']['registerDescriptionCallback'](_0x434655=>{if('formatBlock'!=_0x434655['type']&&'formatInline'!=_0x434655['type'])return;const {data:_0xde1f15}=_0x434655;return _0xde1f15&&'mergeTableCells'==_0xde1f15['commandName']?{'type':'format','content':o(_0x563718,'*Merge\x20cells*')}:void 0x0;}),_0x3a9ed2['descriptionFactory']['registerDescriptionCallback'](_0x3f35cd=>{if('formatBlock'!=_0x3f35cd['type']&&'formatInline'!=_0x3f35cd['type'])return;const {data:_0x4638be}=_0x3f35cd;return _0x4638be?'splitTableCellVertically'==_0x4638be['commandName']?{'type':'format','content':o(_0x563718,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4638be['commandName']?{'type':'format','content':o(_0x563718,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x20e259=_0x12973e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3c5fea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3a9ed2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c5fea,'accept',_0x20e259);for(const _0x4cb095 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3a9ed2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4cb095,'accept',_0x20e259);_0x3a9ed2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x33e5c8=>{_0x4ab222['model']['change'](_0x4ecd47=>{const _0x2d12fd=Array['from'](_0xff6a58['getRanges']())['map'](_0x57c21e=>_0x50a820['fromRange'](_0x57c21e));_0x4ecd47['setSelection'](_0x33e5c8),_0x4ab222['commands']['get']('mergeTableCells')['refresh'](),_0x4ab222['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5814b4=_0x2d12fd['filter'](_0x12df1f=>'$graveyard'!=_0x12df1f['root']['rootName']);_0x5814b4['length']>0x0&&_0x4ecd47['setSelection'](_0x5814b4);for(const _0x41605d of _0x2d12fd)_0x41605d['detach']();});});for(const _0x5ce7e6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x259df4=_0x4ab222['commands']['get'](_0x5ce7e6);_0x259df4['on']('set:isEnabled',(_0x1a4cbf,_0x26017f,_0x2388b0)=>{if(_0x2388b0){const _0x25b1d7=_0x4ab222['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f423a=>_0x1f423a['is']('element','tableCell'));this['_areMergableCells'](_0x259df4['value'],_0x25b1d7)||(_0x1a4cbf['return']=!0x1,_0x1a4cbf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x32cc54=this['editor']['commands']['get']('mergeTableCells'),_0x1c4cd0=this['editor']['plugins']['get']('TableUtils');if(!_0x32cc54['isEnabled'])return!0x1;const _0x37e014=_0x1c4cd0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ce2aa of _0x37e014)for(const _0x47606a of _0x37e014)if(_0x3ce2aa!=_0x47606a&&!this['_areMergableCells'](_0x3ce2aa,_0x47606a))return!0x1;return!0x0;}['_areMergableCells'](_0x15341d,_0xb281dd){const _0x1f8334=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51caf8=this['editor']['model']['createRangeOn'](_0x15341d),_0x1586f9=this['editor']['model']['createRangeOn'](_0xb281dd),_0x2aa8df=new Set(),_0x2b0e1d=new Set();for(const _0x19a0fb of _0x1f8334['getSuggestions']())if(('insertion'==_0x19a0fb['type']||'deletion'==_0x19a0fb['type']||'mergeTableCells'==_0x19a0fb['subType'])&&_0x19a0fb['isInContent']){for(const _0x120e65 of _0x19a0fb['getRanges']())_0x120e65['containsRange'](_0x51caf8,!0x0)&&_0x2aa8df['add'](_0x19a0fb['type']+':'+_0x19a0fb['author']['id']),_0x120e65['containsRange'](_0x1586f9,!0x0)&&_0x2b0e1d['add'](_0x19a0fb['type']+':'+_0x19a0fb['author']['id']);}if(_0x2aa8df['size']!=_0x2b0e1d['size'])return!0x1;for(const _0x177310 of _0x2aa8df)if(!_0x2b0e1d['has'](_0x177310))return!0x1;return!0x0;}}class Ct extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x88f19e=this['editor'];if(!_0x88f19e['plugins']['has']('TableEditing'))return;const _0x23350e=_0x88f19e['locale'],_0x488ef3=_0x88f19e['plugins']['get']('TrackChangesEditing');_0x488ef3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x488ef3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x488ef3['registerBlockAttribute']('headingRows'),_0x488ef3['registerBlockAttribute']('headingColumns'),_0x488ef3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x23350e,'FORMAT_HEADER_ROW')),_0x488ef3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x23350e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b832e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3da940=this['editor']['plugins']['get']('TableUtils'),_0x5ec273=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x187568({showActiveMarker:_0x330f36=!0x0,setDataAttribute:_0x48c3ab=!0x0}={}){return(_0x21d1fc,_0x1e1216,_0x2eace6)=>{const {type:_0x4622f2,id:_0x407563}=_0x1b832e['_splitMarkerName'](_0x1e1216['markerName']),_0xaed262=_0x1b832e['getSuggestion'](_0x407563),_0x4b1f13=_0xaed262['data'];if('formatBlock'!=_0xaed262['type']||!_0x4b1f13||'setTableColumnHeader'!=_0x4b1f13['commandName'])return;if(_0x1e1216['item'])return void _0x21d1fc['stop']();if(!_0x2eace6['consumable']['consume'](_0x1e1216['markerRange'],_0x21d1fc['name']))return;const _0x9aabb7=_0x1e1216['markerRange']['start']['nodeAfter'],_0x5c4b03=_0x1e1216['markerRange']['end']['nodeBefore'],_0xe7847f=_0x9aabb7['parent']['parent'],{column:_0x5aee93}=_0x3da940['getCellLocation'](_0x9aabb7),{column:_0x8d20bc}=_0x3da940['getCellLocation'](_0x5c4b03);for(let _0x2306b3=_0x5aee93;_0x2306b3<=_0x8d20bc;_0x2306b3++){const _0x3db5b7=_0x3da940['createTableWalker'](_0xe7847f,{'column':_0x2306b3,'includeAllSlots':!0x1});for(const _0x159757 of _0x3db5b7){const _0x1d0fe7=_0x159757['cell'],_0x58c3e6=_0x2eace6['mapper']['toViewElement'](_0x1d0fe7);_0x2eace6['writer']['addClass']('ck-suggestion-marker-'+_0x4622f2,_0x58c3e6),_0x48c3ab&&_0x2eace6['writer']['setAttribute']('data-suggestion',_0x407563,_0x58c3e6),_0x2eace6['mapper']['bindElementToMarker'](_0x58c3e6,_0x1e1216['markerName']),_0x330f36&&(_0x1b832e['activeMarkers']['includes'](_0x1e1216['markerName'])?_0x2eace6['writer']['addClass']('ck-suggestion-marker--active',_0x58c3e6):_0x2eace6['writer']['removeClass']('ck-suggestion-marker--active',_0x58c3e6));}}};}_0x1b832e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5ec273),_0x1b832e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5ec273),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x187568(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1996fe,_0x193d38,_0x5d6a51)=>{_0x5d6a51['options']['showSuggestionHighlights']&&_0x187568({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1996fe,_0x193d38,_0x5d6a51);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3932b3,_0x3003ec,_0x24d9df)=>{const {type:_0x399e05,id:_0x1a60fe}=_0x1b832e['_splitMarkerName'](_0x3003ec['markerName']),_0x47240e=_0x1b832e['getSuggestion'](_0x1a60fe),_0x3cc856=_0x47240e['data'];if('formatBlock'!=_0x47240e['type']||!_0x3cc856||'setTableColumnHeader'!=_0x3cc856['commandName'])return;const _0x4132bd=_0x24d9df['mapper']['markerNameToElements'](_0x3003ec['markerName']);if(_0x4132bd){for(const _0x265f73 of _0x4132bd)_0x24d9df['writer']['removeClass']('ck-suggestion-marker-'+_0x399e05,_0x265f73),_0x24d9df['writer']['removeClass']('ck-suggestion-marker--active',_0x265f73),_0x24d9df['writer']['removeAttribute']('data-suggestion',_0x265f73),_0x24d9df['mapper']['unbindElementFromMarkerName'](_0x265f73,_0x3003ec['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45877d=this['editor'],_0x2e26d9=_0x45877d['locale'];function _0x67d314(_0x5e4450){return{'type':'format','content':o(_0x2e26d9,'*Format:*\x20%0',_0x5e4450)};}_0x45877d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1862a4=>{if('formatBlock'!=_0x1862a4['type'])return;const {data:_0x2fa30d}=_0x1862a4;if(_0x2fa30d){if('setTableRowHeader'==_0x2fa30d['commandName']){const _0xa72275=_0x2fa30d['commandParams'][0x0]['forceValue'];return _0x67d314(o(_0x2e26d9,_0xa72275?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2fa30d['commandName']){const _0x337de6=_0x2fa30d['commandParams'][0x0]['forceValue'];return _0x67d314(o(_0x2e26d9,_0x337de6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xe680e7{['afterInit'](){const _0xaf0e6d=this['editor'],_0x39b58c=_0xaf0e6d['locale'],_0x27dc21=_0xaf0e6d['plugins']['get']('TrackChangesEditing');function _0x3f9b01(_0x7c6c66){return{'type':'format','content':''+o(_0x39b58c,'*Set\x20table\x20type:*\x20%0',_0x7c6c66)};}_0xaf0e6d['plugins']['has']('TableLayout')&&(_0x27dc21['enableCommand']('insertTableLayout'),_0x27dc21['enableDefaultAttributesIntegration']('tableType'),_0x27dc21['registerBlockAttribute']('tableType'),_0x27dc21['descriptionFactory']['registerElementLabel'](_0x20ffd2=>_0x20ffd2['is']('element','table')&&'layout'===_0x20ffd2['getAttribute']('tableType'),_0x29b10c=>o(_0x39b58c,'ELEMENT_LAYOUT_TABLE',_0x29b10c)),_0x27dc21['descriptionFactory']['registerDescriptionCallback'](_0x2fed92=>{const {data:_0x7c91cf}=_0x2fed92;if(_0x7c91cf&&'tableType'==_0x7c91cf['key'])switch(_0x7c91cf['newValue']){case'layout':return _0x3f9b01(o(_0x39b58c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3f9b01(o(_0x39b58c,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x2cb7e4=>[_0x2cb7e4,null]));class Nt extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x399fd9=this['editor'];if(!_0x399fd9['plugins']['has']('TableClipboard'))return;const _0x381c65=_0x399fd9['plugins']['get']('TrackChangesEditing'),_0x16ac32=_0x399fd9['plugins']['get']('TableUtils'),_0x4e6ce0=_0x399fd9['plugins']['get'](At),_0x1ab2ca=_0x399fd9['plugins']['get']('TableClipboard'),_0x48d619=_0x399fd9['plugins']['get']('TableSelection'),_0x3a7051=_0x399fd9['plugins']['get'](_0x54ac1d);_0x4e6ce0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x399fd9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x399fd9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xde992d=null,_0x17e669=!0x1;_0x3a7051['on']('contentInsertion',(_0x17bc2e,_0x172288)=>{_0x17e669='paste'===_0x172288['method'];}),_0x399fd9['model']['on']('insertContent',(_0x140f64,_0x57d01d)=>{if(!_0x17e669&&null===_0x48d619['getSelectedTableCells']())return;const [_0x26ea58,_0x5c7312]=_0x57d01d,_0xd94e82=_0x57d01d[_0x57d01d['length']-0x1];_0xd94e82&&_0xd94e82['forceDefaultExecution']||_0x381c65['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4efcc7,_0xeea8b5,_0x19ccf9,_0x2ea4fb,_0x275751){if(_0xeea8b5&&!_0xeea8b5['is']('documentSelection'))return!0x1;const _0xd6e1a0=_0x275751['getTableIfOnlyTableInContent'](_0x4efcc7,_0x19ccf9);if(!_0xd6e1a0||!Ue(_0xd6e1a0,void 0x0,_0x2ea4fb))return!0x1;const _0x21d8a5=_0x2ea4fb['getSelectionAffectedTableCells'](_0x19ccf9['document']['selection']);if(!_0x21d8a5['length'])return!0x1;const _0x4f8f4c=_0x21d8a5[0x0]['findAncestor']('table'),_0x13845d=_0x2ea4fb['getRowIndexes'](_0x21d8a5),_0x3f8acc=_0x2ea4fb['getColumnIndexes'](_0x21d8a5),_0x38b7d2={'startRow':_0x13845d['first'],'endRow':_0x13845d['last'],'startColumn':_0x3f8acc['first'],'endColumn':_0x3f8acc['last']};return 0x1==_0x21d8a5['length']&&(_0x38b7d2['endRow']+=_0x2ea4fb['getRows'](_0xd6e1a0)-0x1,_0x38b7d2['endColumn']+=_0x2ea4fb['getColumns'](_0xd6e1a0)-0x1),Ue(_0x4f8f4c,_0x38b7d2,_0x2ea4fb);}(_0x26ea58,_0x5c7312,_0x399fd9['model'],_0x16ac32,_0x1ab2ca)&&(_0x140f64['stop'](),_0xde992d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x399fd9['model']['change'](()=>{_0x399fd9['model']['insertContent'](_0x57d01d[0x0],_0x57d01d[0x1],_0x57d01d[0x2],{'forceDefaultExecution':!0x0});const _0x369a9b=_0x29bcf7(),{rowInsertionRanges:_0x418380,columnInsertionRanges:_0x2f20c4,insertionRanges:_0x50ac4f,deletionRanges:_0x4e802c,cells:_0x2b2680}=_0xde992d;_0x418380['length']&&_0x381c65['markMultiRangeInsertion'](_0x418380,'tablePasteRow',{'tablePasteChainId':_0x369a9b}),_0x2f20c4['length']&&_0x381c65['markMultiRangeInsertion'](_0x2f20c4,'tablePasteColumn',{'tablePasteChainId':_0x369a9b}),_0x50ac4f['length']&&(_0x381c65['markMultiRangeInsertion'](_0x50ac4f,'tablePaste',{'tablePasteChainId':_0x369a9b,'skipNestingCheck':!0x0}),_0x50ac4f['forEach'](_0x549cdb=>_0x549cdb['detach']?.())),_0x4e802c['length']&&(_0x381c65['markMultiRangeDeletion'](_0x4e802c,'tablePaste',{'tablePasteChainId':_0x369a9b,'skipNestingCheck':!0x0}),_0x4e802c['forEach'](_0x522db6=>_0x522db6['detach']?.()));const _0x1d9ce8=_0x381c65['markMultiRangeBlockFormat'](_0x2b2680['map'](({element:_0x3ed0fa})=>_0x3ed0fa),{'formatGroupId':_0x29bcf7()},[],'tablePasteCell',{'tablePasteChainId':_0x369a9b});if(_0x1d9ce8){const _0xc7e26c=_0x1d9ce8['getMarkers'](),_0x4655f5=[];for(const {element:_0x36dddf,attributes:_0x17eb9e}of _0x2b2680){if(!_0x17eb9e)continue;const _0x5cf0c7=_0x399fd9['model']['createRangeOn'](_0x36dddf),_0x5ad757=_0xc7e26c['find'](_0x18304a=>_0x18304a['getRange']()['isEqual'](_0x5cf0c7));_0x5ad757&&_0x4655f5['push']([_0x5ad757['name'],_0x17eb9e]);}_0x4655f5['length']&&_0x1d9ce8['setAttribute']('markerAttributes',Object['fromEntries'](_0x4655f5));}_0xde992d=null;}));},{'priority':_0x3771e3['high']+0xa}),_0x3a7051['on']('contentInsertion',()=>{_0x17e669=!0x1;},{'priority':'lowest'}),_0x399fd9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xb37942,_0x498c2d)=>{const [_0x31095b,_0x3c51a0,,_0x5d9d21]=_0x498c2d;if(!_0xde992d)return;_0xb37942['stop']();const _0x236b19=_0x31095b['cell'],_0x576187=_0x3c51a0,_0x1d7297=Oe(_0x236b19),_0x3a6110=Oe(_0x576187);_0xb37942['return']=_0x236b19;let _0x11e64f=null,_0x1161c1=null;if(_0x3a6110||_0x1d7297){if(_0x1d7297&&!_0x3a6110){_0x5d9d21['remove'](_0x236b19['getChild'](0x0));for(const _0x3eda1b of Array['from'](_0x576187['getChildren']()))_0x5d9d21['insert'](_0x3eda1b,_0x236b19,'end');const _0xc1af1f=_0xde992d['rowInsertionIndexes']['includes'](_0x31095b['row']),_0x3baf11=_0xde992d['columnInsertionIndexes']['includes'](_0x31095b['column']);_0xc1af1f||_0x3baf11||(_0x11e64f=_0x50a820['fromRange'](_0x5d9d21['createRangeIn'](_0x236b19)));}else _0x3a6110&&!_0x1d7297&&(_0x1161c1=_0x5d9d21['createRangeIn'](_0x236b19));}else{const _0x4d563c=_0x5d9d21['createElement']('tableCellSuggestion'),_0x3983c0=_0x5d9d21['createElement']('tableCellSuggestion');_0x5d9d21['wrap'](_0x5d9d21['createRangeIn'](_0x236b19),_0x3983c0),_0x5d9d21['insert'](_0x4d563c,_0x236b19,0x0);for(const _0x479449 of Array['from'](_0x576187['getChildren']()))_0x5d9d21['insert'](_0x479449,_0x4d563c,'end');_0x11e64f=_0x50a820['fromRange'](_0x5d9d21['createRangeOn'](_0x4d563c)),_0x1161c1=_0x50a820['fromRange'](_0x5d9d21['createRangeOn'](_0x3983c0));}const _0x5b6632=Array['from'](_0x576187['getAttributes']())['filter'](([_0x315d26])=>Be['includes'](_0x315d26));_0xde992d['cells']['push']({'element':_0x236b19,'attributes':_0x5b6632['length']?Object['fromEntries'](_0x5b6632):null}),_0x11e64f&&_0xde992d['insertionRanges']['push'](_0x11e64f),_0x1161c1&&_0xde992d['deletionRanges']['push'](_0x1161c1);},{'priority':'high'}),_0x16ac32['on']('insertColumns',(_0x468b77,_0x29c423)=>{const [_0x23ce56,_0x55a94e={}]=_0x29c423;if(!_0xde992d)return;const _0x58838b=_0x55a94e['at']||0x0,_0x4726ff=_0x55a94e['columns']||0x1;_0xde992d['columnInsertionIndexes']=new Array(_0x4726ff)['fill'](_0x58838b)['map']((_0x288d5f,_0x2c9d4d)=>_0x288d5f+_0x2c9d4d);for(const {cell:_0x19795e}of _0x16ac32['createTableWalker'](_0x23ce56,{'startColumn':_0x58838b,'endColumn':_0x58838b+_0x4726ff-0x1}))_0xde992d['columnInsertionRanges']['push'](_0x399fd9['model']['createRangeOn'](_0x19795e));},{'priority':'low'}),_0x16ac32['on']('insertRows',(_0x599dd7,_0x509d39)=>{const [_0x52c8b3,_0x59d5f3={}]=_0x509d39;if(!_0xde992d)return;const _0x2536a4=_0x59d5f3['at']||0x0,_0x58ea1a=_0x59d5f3['rows']||0x1;_0xde992d['rowInsertionIndexes']=new Array(_0x58ea1a)['fill'](_0x2536a4)['map']((_0x474c7f,_0x29296f)=>_0x474c7f+_0x29296f);for(const {cell:_0x368319}of _0x16ac32['createTableWalker'](_0x52c8b3,{'startRow':_0x2536a4,'endRow':_0x2536a4+_0x58ea1a-0x1}))_0xde992d['rowInsertionRanges']['push'](_0x399fd9['model']['createRangeOn'](_0x368319));},{'priority':'low'}),_0x381c65['descriptionFactory']['registerDescriptionCallback'](_0x2f5aa0=>{if(_0x2f5aa0['subType']&&_0x2f5aa0['subType']['startsWith']('tablePaste'))return _0x2f5aa0['previous']?{}:{'type':'insertion','content':o(_0x399fd9['locale'],'*Replace\x20table\x20cells*')};});const _0x3e9dc1=()=>!0x1;for(const _0x56d67b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x381c65['_suggestionFactory']['registerCustomCallback']('insertion',_0x56d67b,'join',_0x3e9dc1),_0x381c65['_suggestionFactory']['registerCustomCallback']('deletion',_0x56d67b,'join',_0x3e9dc1),_0x381c65['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x56d67b,'join',_0x3e9dc1);_0x381c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e9dc1),_0x381c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x29e29e,_0x13a0bb,_0x479a30)=>{const _0x41561f=_0x29e29e['map'](_0x258dbf=>_0x258dbf['getContainedElement']())['filter'](_0x51438c=>_0x51438c),_0x3eb426=new Map(_0x41561f['map'](_0x3b0ca6=>[_0x3b0ca6,null]));if(_0xde992d){for(const {element:_0x12354e,attributes:_0x48e084}of _0xde992d['cells'])_0x48e084&&_0x3eb426['set'](_0x12354e,_0x48e084);}else{if(_0x479a30&&_0x479a30['markerAttributes'])for(const [_0x37b468,_0xf4fcdc]of Object['entries'](_0x479a30['markerAttributes'])){const _0x1bc0db=_0x399fd9['model']['markers']['get'](_0x37b468),_0x3bfec2=_0x1bc0db?_0x1bc0db['getRange']()['getContainedElement']():null;_0x3bfec2&&_0x3eb426['set'](_0x3bfec2,_0xf4fcdc);}}_0x399fd9['model']['change'](_0x3e8055=>{for(const [_0x156029,_0x3ef01]of _0x3eb426)_0x3e8055['setAttributes']({...xe,..._0x3ef01},_0x156029);});});const _0x1410a8=(_0xdbf074,_0x1c16d2)=>{_0x381c65['_suggestionFactory']['registerCustomCallback'](_0xdbf074,'tablePaste',_0x1c16d2,(_0x1e7065,_0x2cada5,_0x41d9ac)=>{_0x399fd9['model']['change'](_0x2ad872=>{const _0x4283b5=[];for(const _0x2c53f7 of _0x1e7065){const _0x216465=_0x2c53f7['start']['nodeAfter'];_0x216465['is']('element','tableCellSuggestion')&&_0x4283b5['push'](_0x216465);}_0x381c65['_suggestionFactory']['getSuggestionCallback'](_0xdbf074,null,_0x1c16d2)(_0x1e7065,_0x2cada5,_0x41d9ac);for(const _0x2b825b of _0x4283b5)'$graveyard'!=_0x2b825b['root']['rootName']&&_0x2ad872['unwrap'](_0x2b825b);});});};_0x1410a8('insertion','accept'),_0x1410a8('insertion','discard'),_0x1410a8('deletion','accept'),_0x1410a8('deletion','discard'),_0x381c65['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3d77f1=>{const _0x3c1ce7=_0x3d77f1['map'](_0x1adb7d=>_0x1adb7d['getContainedElement']()),_0x2681e0=_0x3c1ce7[0x0]['findAncestor']('table'),{minRow:_0x2ec15b,maxRow:_0x3f35b1}=_0x4e6ce0['_getCoordsForCells'](_0x3c1ce7);_0x16ac32['removeRows'](_0x2681e0,{'at':_0x2ec15b,'rows':_0x3f35b1-_0x2ec15b+0x1});}),_0x381c65['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b5eee=>{const _0x3583d1=_0x1b5eee['map'](_0x28111b=>_0x28111b['getContainedElement']()),_0x22555d=_0x3583d1[0x0]['findAncestor']('table'),{minColumn:_0x3286b7,maxColumn:_0x5d014b}=_0x4e6ce0['_getCoordsForCells'](_0x3583d1);_0x16ac32['removeColumns'](_0x22555d,{'at':_0x3286b7,'columns':_0x5d014b-_0x3286b7+0x1});});const _0x246a5f=(_0x11d857,_0x80627f)=>{if(!_0x80627f['subType']||!_0x80627f['subType']['startsWith']('tablePaste'))return;const _0x4096fe=_0x80627f['attributes']['tablePasteChainId'],_0x17de45=_0x381c65['getSuggestions']()['filter'](_0x391021=>_0x391021['isInContent']&&_0x391021['attributes']&&_0x391021['attributes']['tablePasteChainId']==_0x4096fe);_0x17de45['length']&&_0x80627f['getAllAdjacentSuggestions']()['length']!=_0x17de45['length']&&_0x17de45['reduce']((_0x16ce7a,_0x3b0f9c)=>(_0x16ce7a['next']=_0x3b0f9c,_0x3b0f9c['previous']=_0x16ce7a,_0x3b0f9c));};function _0x270748(_0x4da822,_0x47d841=!0x0){const {id:_0x37b0ed,authorId:_0x3724f0}=_0x381c65['_splitMarkerName'](_0x4da822['markerName']),_0x53d909=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x156711=_0x381c65['activeMarkers']['includes'](_0x4da822['markerName']);return _0x156711&&_0x53d909['push']('ck-suggestion-marker--active'),{'classes':_0x53d909,'attributes':{'data-suggestion':_0x37b0ed,'data-author-id':_0x3724f0},'priority':_0x156711&&_0x47d841?0xbc2:0xbb8};}_0x381c65['on']('suggestionLoaded',_0x246a5f,{'priority':'high'}),_0x381c65['on']('suggestionUnloaded',_0x246a5f,{'priority':'high'}),_0x399fd9['model']['document']['registerPostFixer'](()=>{let _0x3b9c09=!0x1;const _0x2d5201=Array['from'](_0x399fd9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b03e0,data:_0x57e600}of _0x2d5201){const {group:_0x1e8cd5,type:_0x144f82,id:_0x37b839}=_0x381c65['_splitMarkerName'](_0x5b03e0);if('suggestion'!=_0x1e8cd5||'deletion'!=_0x144f82||_0x57e600['oldRange'])continue;if(!_0x381c65['hasSuggestion'](_0x37b839))continue;const _0x1cb2ad=_0x381c65['getSuggestion'](_0x37b839)['getRanges'](),_0x4cbe23=_0x399fd9['plugins']['get']('Users')['me'];for(const _0x3812d5 of _0x381c65['getSuggestions']()){if(!_0x3812d5['isInContent']||_0x3812d5['author']!=_0x4cbe23)continue;if('formatBlock'!=_0x3812d5['type']||'tablePasteCell'!=_0x3812d5['subType'])continue;if(_0x3812d5['getRanges']()['every'](_0x39c3da=>_0x1cb2ad['some'](_0x2541d7=>_0x2541d7['containsRange'](_0x39c3da,!0x0)))){for(const _0x5c3a90 of _0x3812d5['getAllAdjacentSuggestions']())_0x5c3a90['isInContent']&&(_0x5c3a90['discard'](),_0x3b9c09=!0x0);}}}return _0x3b9c09;}),_0x399fd9['model']['document']['registerPostFixer'](_0x1a96a9=>{const _0x527b82=_0x399fd9['commands']['get']('redo');if(!_0x527b82||!_0x527b82['_createdBatches']['has'](_0x1a96a9['batch']))return!0x1;let _0x3aff9e=!0x1;const _0x5976f4=_0x399fd9['plugins']['get']('Users')['me'],_0x4c5d1f=_0x399fd9['model']['document']['differ']['getChanges'](),_0x3a318d=Array['from'](_0x399fd9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x34cceb,data:_0x5832f0})=>{const {group:_0x5a084e,subType:_0x36ca11,authorId:_0xa0f8b6}=_0x381c65['_splitMarkerName'](_0x34cceb);return'suggestion'==_0x5a084e&&'tablePaste'==_0x36ca11&&_0xa0f8b6==_0x5976f4['id']&&!_0x5832f0['oldRange'];});for(const _0x189899 of _0x4c5d1f){if('insert'!=_0x189899['type']||'tableCellSuggestion'!=_0x189899['name']||0x1!=_0x189899['length'])continue;const _0x54fb49=_0x1a96a9['createRange'](_0x189899['position'],_0x189899['position']['getShiftedBy'](0x1));if(!_0x3a318d['find'](({data:_0x862f10})=>_0x862f10['newRange']['isEqual'](_0x54fb49))){for(const {name:_0x568307,data:_0x43e1d9}of _0x3a318d)if(_0x54fb49['containsRange'](_0x43e1d9['newRange'])){_0x1a96a9['updateMarker'](_0x568307,{'range':_0x54fb49}),_0x3aff9e=!0x0;break;}}}return _0x3aff9e;}),_0x399fd9['model']['document']['registerPostFixer'](_0x284574=>{let _0x293ec1=!0x1;const _0x261134=_0x399fd9['plugins']['get']('Users')['me'],_0x318c83=_0x381c65['getSuggestions']()['filter'](_0x128712=>_0x128712['isInContent']&&_0x128712['author']==_0x261134),_0x6d7301=new Set(),_0x25559f=new Set();for(const _0x3fd1be of _0x318c83)if('tablePaste'==_0x3fd1be['subType'])for(const _0xb973e3 of _0x3fd1be['getMarkers']()){const _0x357214=_0xb973e3['getRange']()['getContainedElement']();if(_0x357214){if(_0x357214['is']('element','tableCellSuggestion')&&Oe(_0x357214)){_0x3fd1be['removeMarker'](_0xb973e3['name']),_0x6d7301['add'](_0x357214),_0x293ec1=!0x0;const _0x5c0e08=_0x357214['nextSibling'],_0x8808e6=_0x357214['previousSibling'],_0x24d8e5=_0x5c0e08&&_0x5c0e08['is']('element','tableCellSuggestion'),_0x39b556=_0x8808e6&&_0x8808e6['is']('element','tableCellSuggestion');_0x24d8e5&&!_0x6d7301['has'](_0x5c0e08)&&_0x25559f['add'](_0x5c0e08),_0x39b556&&!_0x6d7301['has'](_0x8808e6)&&_0x25559f['add'](_0x8808e6);}else _0x357214['is']('element','paragraph')&&_0x357214['isEmpty']&&(_0x3fd1be['removeMarker'](_0xb973e3['name']),_0x293ec1=!0x0);}}else{if('tablePasteCell'==_0x3fd1be['subType']){if(!_0x3fd1be['attributes']||!_0x3fd1be['attributes']['tablePasteChainId'])continue;const _0x523dc9=_0x3fd1be['attributes']['markerAttributes'];if(_0x523dc9&&Object['keys'](_0x523dc9)['length'])continue;const _0x127271=_0x3fd1be['attributes']['tablePasteChainId'];let _0xba6f3c=!0x0,_0x55ce62=!0x0;for(const _0x1306e3 of _0x318c83)if(_0x1306e3['subType']&&_0x1306e3['subType']['startsWith']('tablePaste')){if(!_0x1306e3['attributes']['tablePasteChainId']){_0x55ce62=!0x1;break;}if(_0x1306e3['id']!=_0x3fd1be['id']&&_0x1306e3['attributes']['tablePasteChainId']==_0x127271){_0xba6f3c=!0x1;break;}}_0x55ce62&&_0xba6f3c&&(_0x3fd1be['removeMarkers'](),_0x293ec1=!0x0);}}for(const _0x2f839c of _0x6d7301)_0x284574['remove'](_0x2f839c);for(const _0x23215d of _0x25559f)_0x284574['unwrap'](_0x23215d);return _0x293ec1;}),_0x399fd9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xf0519e=>_0x270748(_0xf0519e),'converterPriority':'high'}),_0x399fd9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x45e0d3,_0x48e73d)=>_0x48e73d['options']['showSuggestionHighlights']?_0x270748(_0x45e0d3,!0x1):null,'converterPriority':'high'});const _0x46138f=_0x399fd9['editing']['view'];this['listenTo'](_0x46138f['document'],'clipboardOutput',(_0x110938,_0x54538c)=>{const _0x1cc607=[];for(const _0xd0f235 of _0x46138f['createRangeIn'](_0x54538c['content'])['getItems']())_0xd0f235['is']('element','suggestion-td')&&_0x1cc607['push'](_0xd0f235);_0x46138f['change'](_0x5dc1b7=>{for(const _0x29e361 of _0x1cc607)_0x5dc1b7['move'](_0x5dc1b7['createRangeIn'](_0x29e361),_0x5dc1b7['createPositionBefore'](_0x29e361)),_0x5dc1b7['remove'](_0x29e361);});});}}function Oe(_0x4489cb){if(_0x4489cb['isEmpty'])return!0x0;const _0x5a9ddd=_0x4489cb['getChild'](0x0);return _0x5a9ddd['is']('element','paragraph')&&_0x5a9ddd['isEmpty'];}function Ue(_0x2d04c1,_0x5976f7={},_0x1a9b0b){for(const {isAnchor:_0xd6a472,cellHeight:_0x475554,cellWidth:_0x324871}of _0x1a9b0b['createTableWalker'](_0x2d04c1,{'includeAllSlots':!0x0,..._0x5976f7}))if(!_0xd6a472||0x1!=_0x475554||0x1!=_0x324871)return!0x1;return!0x0;}class Dt extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x49df4a=this['editor']['plugins']['get']('TrackChangesEditing');_0x49df4a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x49df4a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x49df4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49df4a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x49df4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x49df4a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4ef497,_0x328612){const _0xf37426=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f5873=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11546f=_0x328612['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2391a8=_0x2f5873['getColumnGroupElement'](_0x11546f);let _0x58f4d8=_0x2391a8?_0x2f5873['getTableColumnsWidths'](_0x2391a8):null,_0x4f1ea7=_0x11546f['getAttribute']('tableWidth')||null;const _0x5a3897=_0x328612['tableWidth']||_0x4f1ea7,_0xac0095=_0x328612['columnWidths']||_0x58f4d8,_0x17b1d3=this['editor']['plugins']['get']('Users')['me'];for(const _0x39f2d1 of _0xf37426['getSuggestions']()){const _0x5eb293=_0x39f2d1['getContainedElement']();if('resizeTable'===_0x39f2d1['subType']&&_0x5eb293===_0x11546f){_0x39f2d1['author']!==_0x17b1d3&&_0x39f2d1['discard']();const _0x88d312=_0x39f2d1['data']['commandParams'];_0x4f1ea7=_0x88d312[0x0]['tableWidth'],_0x58f4d8=_0x88d312[0x0]['columnWidths'];break;}}_0x4ef497({'table':_0x11546f,'tableWidth':_0x5a3897,'columnWidths':_0xac0095}),_0xf37426['markBlockFormat'](_0x11546f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4f1ea7,'columnWidths':_0x58f4d8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x141db2){if('formatBlock'!=_0x141db2['type']&&'formatInline'!=_0x141db2['type'])return;const {data:_0x1a8833}=_0x141db2;if(_0x1a8833&&'resizeTable'===_0x1a8833['formatGroupId']){const _0x2819af='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2819af)};}}}class $t extends _0xe680e7{['afterInit'](){const _0x1f1773=this['editor'];_0x1f1773['plugins']['has']('Template')&&_0x1f1773['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xe680e7{['afterInit'](){const _0x261d2b=this['editor'];if(!_0x261d2b['commands']['get']('insertTableOfContents'))return;_0x261d2b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5f43c4=_0x261d2b['plugins']['get']('TrackChangesEditing'),_0x5a8256=_0x261d2b['locale'];_0x5f43c4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x40a6de=>o(_0x5a8256,'ELEMENT_TABLE_OF_CONTENTS',_0x40a6de));}}class Bt extends _0xe680e7{['afterInit'](){const _0x409232=this['editor'];if(!_0x409232['plugins']['has']('Title'))return;const _0x53c8a4=_0x409232['plugins']['get']('TrackChangesEditing');_0x53c8a4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x409232['locale'],'ELEMENT_TITLE')),_0x409232['model']['document']['registerPostFixer'](_0x247be4=>{let _0x2017f6=!0x1;const _0x6beff6=Array['from'](_0x409232['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bc84f,data:_0x2649d7}of _0x6beff6){const {group:_0x3176e0}=_0x53c8a4['_splitMarkerName'](_0x5bc84f);if('suggestion'!==_0x3176e0||!_0x2649d7['newRange'])continue;const _0x3a2ed9=_0x2649d7['newRange'],_0x5ace1a=_0x3a2ed9['end']['nodeBefore'];if(!_0x5ace1a||!_0x5ace1a['is']('element','title-content'))continue;if(!_0x3a2ed9['start']['isTouching'](_0x3a2ed9['end']))continue;const _0x4d8023=_0x409232['model']['schema']['getNearestSelectionRange'](_0x3a2ed9['end'],'forward');if(_0x4d8023&&_0x4d8023['isCollapsed']){const _0x4bd66c=_0x247be4['createRange'](_0x3a2ed9['start'],_0x4d8023['start']);_0x4bd66c['isEqual'](_0x3a2ed9)||(_0x247be4['updateMarker'](_0x5bc84f,{'range':_0x4bd66c}),_0x2017f6=!0x0);}_0x2017f6||(_0x247be4['removeMarker'](_0x5bc84f),_0x2017f6=!0x0);}return _0x2017f6;});}}class Tt extends _0xe680e7{['afterInit'](){const _0x48f6d8=this['editor'],_0x53dbfc=_0x48f6d8['plugins']['get']('TrackChangesEditing');_0x48f6d8['plugins']['has']('Uploadcare')&&(_0x53dbfc['enableCommand']('uploadcare'),_0x48f6d8['plugins']['has']('UploadcareImageEdit')&&(_0x53dbfc['enableCommand']('uploadcareImageEdit'),_0x53dbfc['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x53dbfc['registerBlockAttribute']('uploadcareImageId'),_0x53dbfc['descriptionFactory']['registerDescriptionCallback'](_0x51bf6a=>{if('attribute'!=_0x51bf6a['type'])return;const {data:_0x139a25}=_0x51bf6a;return _0x139a25&&'uploadcareImageId'==_0x139a25['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xe680e7{['afterInit'](){const _0x3b5bd2=this['editor'],_0x3b44e5=_0x3b5bd2['plugins']['get']('TrackChangesEditing');_0x3b5bd2['plugins']['has']('UndoEditing')&&(_0x3b44e5['enableCommand']('undo'),_0x3b44e5['enableCommand']('redo'));}}class Ot extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x1136e5=this['editor'];if(!_0x1136e5['plugins']['has']('TableCaptionEditing'))return;_0x1136e5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xe680e7{['tableProperties'];['tableCellProperties'];constructor(_0x230a59){super(_0x230a59),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4768b4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x435a23 of this['tableProperties'])_0x4768b4['enableCommand'](_0x435a23,(_0x1bf8db,_0x4c5f99)=>{const _0x3e5060=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x435a23,[_0x3e5060],this['tableProperties'],'tableProperties',_0x1bf8db,_0x4c5f99);});_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4768b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ef06d,_0x4e073a)=>this['handleDiscardAction'](this['tableProperties'],_0x2ef06d,_0x4e073a)),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x541192 of this['tableCellProperties'])_0x4768b4['enableCommand'](_0x541192,(_0x630ebe,_0x2af5d6)=>{const _0x2a2140=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x541192,_0x2a2140,this['tableCellProperties'],'tableCellProperties',_0x630ebe,_0x2af5d6);});_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4768b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x180555,_0x3b1afa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x180555,_0x3b1afa)),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4768b4['descriptionFactory']['registerDescriptionCallback'](_0x125728=>this['handleSuggestionDescription'](_0x125728)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xc93b67,_0x411457,_0x492e97,_0x3a4025,_0x21ba0b,_0x39681e){const _0x17a916=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x39681e['batch'],()=>{for(const _0x25f05c of _0x411457){if(this['_getSuggestion'](_0x25f05c,_0x3a4025))_0x21ba0b(_0x39681e);else{const _0x577601={};for(const _0x14ca05 of _0x492e97){const _0x2a072c=_0x25f05c['getAttribute'](_0x14ca05);void 0x0!==_0x2a072c&&(_0x577601[_0x14ca05]=_0x2a072c);}_0x21ba0b(_0x39681e),_0x17a916['markBlockFormat'](_0x25f05c,{'commandParams':[_0x577601]},[],_0x3a4025);}}});}['handleDiscardAction'](_0x5963e4,_0x15eebe,_0x52280e){const _0x30fd3d=_0x15eebe[0x0]['start']['nodeAfter'],_0x381bf5=_0x52280e['commandParams'][0x0];this['editor']['model']['change'](_0xbc51ce=>{for(const _0x5d7957 of _0x5963e4)void 0x0!==_0x381bf5[_0x5d7957]?_0xbc51ce['setAttribute'](_0x5d7957,_0x381bf5[_0x5d7957],_0x30fd3d):_0xbc51ce['removeAttribute'](_0x5d7957,_0x30fd3d);});}['handleSuggestionDescription'](_0x38bfb8){if(_0x38bfb8['data'])switch(_0x38bfb8['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'](_0x53a008,_0x3b1404){const _0x400e29=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3fc975 of _0x400e29['getSuggestions']({'skipNotAttached':!0x0})){const _0x42302e=_0x3fc975['getContainedElement']();if(_0x3fc975['subType']===_0x3b1404&&_0x42302e===_0x53a008)return _0x3fc975;}return null;}['_registerTablePropertiesAttributes'](){const _0x36eb1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d72dd=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4ab10c of _0x5d72dd){const _0x416519=_0x4ab10c['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x36eb1c['registerBlockAttribute'](_0x4ab10c),_0x36eb1c['descriptionFactory']['registerAttributeLabel'](_0x4ab10c,o(this['editor']['locale'],'FORMAT_'+_0x416519));}}}class Rt extends _0xe680e7{['afterInit'](){const _0x658812=this['editor'];if(!_0x658812['plugins']['has']('LineHeight'))return;const _0x56c953=_0x658812['plugins']['get']('TrackChangesEditing'),_0xf2eb2c=_0x658812['locale'];_0x56c953['enableDefaultAttributesIntegration']('lineHeight'),_0x56c953['registerBlockAttribute']('lineHeight'),_0x56c953['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xf2eb2c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xe680e7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x9e4cfc,_0x3db646,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cb177){super(_0x4cb177),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x27a2e9,_0x201d27,_0x2f77f0,_0x1b8a4c)=>{this['_model']['change'](()=>{for(const _0x5cd0ba of[..._0x1b8a4c,..._0x2f77f0])this['_model']['markers']['has'](_0x5cd0ba)&&_0x4cb177['editing']['reconvertMarker'](_0x5cd0ba);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4cb177['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4cb177['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4cb177['config']['get']('trackChanges.trackFormatChanges'),_0x4cb177['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4cb177['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4cb177,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1d3f09=this['editor'],_0xca381=(_0x7ceb4c,_0x1df4b0)=>{if('attribute'!=_0x7ceb4c)return'ck-suggestion-marker-'+_0x7ceb4c;const _0x10bc64=_0x1df4b0['split']('|')[0x0];return this['_isBlockAttribute'](_0x10bc64)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1d3f09['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x55331c=>{const {id:_0x43e0ad,authorId:_0x54749a,type:_0x4634b9,subType:_0x67cb9}=this['_splitMarkerName'](_0x55331c['markerName']),_0x5d5cb8=['ck-suggestion-marker',_0xca381(_0x4634b9,_0x67cb9)];let _0x3c83dc=0xbb8;return this['activeMarkers']['includes'](_0x55331c['markerName'])&&(_0x5d5cb8['push']('ck-suggestion-marker--active'),_0x3c83dc=0xbc2),'deletion'==_0x4634b9&&(_0x3c83dc+=0x5),{'classes':_0x5d5cb8,'attributes':{'data-suggestion':_0x43e0ad,'data-author-id':_0x54749a},'priority':_0x3c83dc};}}),_0x1d3f09['conversion']['for']('dataDowncast')['add'](_0x2e9299=>{_0x2e9299['on']('addMarker:suggestion',(_0x11e014,_0x479385,_0x516721)=>{if(!_0x516721['options']['showSuggestionHighlights'])return;const _0x2d2982=_0x479385['item'];if(!_0x2d2982)return;const _0x647f25=_0x516721['mapper']['toViewElement'](_0x2d2982);_0x1d3f09['model']['schema']['isObject'](_0x2d2982)&&_0x647f25&&!_0x647f25['getCustomProperty']('widget')&&_0x647f25['is']('containerElement')&&_0x2a9ddb(_0x647f25,_0x516721['writer']);},{'priority':'high'});}),_0x1d3f09['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x34a7cd,_0x2c4f24)=>{if(!_0x2c4f24['options']['showSuggestionHighlights'])return null;const {id:_0x14d02b,authorId:_0x120cbf,type:_0x13de7e,subType:_0x496970}=this['_splitMarkerName'](_0x34a7cd['markerName']);return{'classes':['ck-suggestion-marker',_0xca381(_0x13de7e,_0x496970)],'priority':0xbb8,'attributes':{'data-suggestion':_0x14d02b,'data-author-id':_0x120cbf}};}});const _0x3036e6=({showActiveMarkers:_0x4f0a2d=!0x0,isAttributeSuggestion:_0x551746=!0x1}={})=>(_0x2d3df8,_0xf96be4,_0x48013c)=>{if(!_0xf96be4['item'])return;const {id:_0x193ad0,authorId:_0x3f4180}=this['_splitMarkerName'](_0xf96be4['markerName']);if(_0x551746){const _0x412e57=this['_suggestions']['get'](_0x193ad0),_0x1488d8=this['_getAttributeKey'](_0x412e57);if(!this['_isBlockAttribute'](_0x1488d8))return;}if(_0xf96be4['item']['is']('selection'))return void _0x48013c['consumable']['consume'](_0xf96be4['item'],_0x2d3df8['name']);const _0x13a923=_0x48013c['mapper']['toViewElement'](_0xf96be4['item']);if(_0xf96be4['item']['is']('element')&&_0x1d3f09['model']['schema']['isBlock'](_0xf96be4['item'])&&!_0x13a923['getCustomProperty']('addHighlight')){_0x48013c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x13a923),_0x48013c['writer']['setAttribute']('data-suggestion',_0x193ad0,_0x13a923),_0x48013c['writer']['setAttribute']('data-author-id',_0x3f4180,_0x13a923),_0x48013c['mapper']['bindElementToMarker'](_0x13a923,_0xf96be4['markerName']),_0x4f0a2d&&(this['activeMarkers']['includes'](_0xf96be4['markerName'])?_0x48013c['writer']['addClass']('ck-suggestion-marker--active',_0x13a923):_0x48013c['writer']['removeClass']('ck-suggestion-marker--active',_0x13a923));for(const _0x3a9000 of _0x1d3f09['model']['createRangeIn'](_0xf96be4['item'])['getItems']())_0x48013c['consumable']['consume'](_0x3a9000,_0x2d3df8['name']);_0x48013c['consumable']['consume'](_0xf96be4['item'],_0x2d3df8['name']);}};_0x1d3f09['conversion']['for']('dataDowncast')['add'](_0x24bc1b=>{_0x24bc1b['on']('addMarker:suggestion:formatBlock',(_0x29fb82,_0x3745fa,_0x476e1d)=>{_0x476e1d['options']['showSuggestionHighlights']&&_0x3036e6({'showActiveMarkers':!0x1})(_0x29fb82,_0x3745fa,_0x476e1d);},{'priority':'highest'});}),_0x1d3f09['conversion']['for']('dataDowncast')['add'](_0x1f911c=>{_0x1f911c['on']('addMarker:suggestion:attribute',(_0x174f65,_0xd881ca,_0x51035b)=>{_0x51035b['options']['showSuggestionHighlights']&&_0x3036e6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x174f65,_0xd881ca,_0x51035b);},{'priority':'highest'});}),_0x1d3f09['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x527c95,_0x22cc73)=>{if(_0x22cc73['options']['showSuggestionHighlights']){const {id:_0x370a80,authorId:_0x5b6e16}=this['_splitMarkerName'](_0x527c95);return _0x527c95['includes'](':split')||_0x527c95['includes'](':merge')?{'group':'suggestion','name':_0x527c95['substr'](0xb),'attributes':{'data-suggestion':_0x370a80,'data-author-id':_0x5b6e16}}:null;}return{'group':'suggestion','name':_0x527c95['substr'](0xb)};}}),_0x1d3f09['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39240b,{writer:_0x417e21})=>{let _0x261f60='suggestion:'+_0x39240b['getAttribute']('suggestion-type')+':'+_0x39240b['getAttribute']('id');return _0x39240b['getAttribute']('marker-count')&&(_0x261f60+=':'+_0x39240b['getAttribute']('marker-count')),_0x417e21['createElement']('$marker',{'data-name':_0x261f60});}}),_0x1d3f09['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0x52de8c=>{_0x52de8c['on']('addMarker:suggestion:formatBlock',_0x3036e6(),{'priority':'high'});}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0x1293fb=>{_0x1293fb['on']('addMarker:suggestion:attribute',_0x3036e6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0x1cf354=>{_0x1cf354['on']('removeMarker:suggestion:formatBlock',(_0x2db3da,_0xd3d3a4,_0x2fa494)=>{const _0x39cdf5=_0x2fa494['mapper']['markerNameToElements'](_0xd3d3a4['markerName']);if(_0x39cdf5){for(const _0x264715 of _0x39cdf5)_0x264715['getCustomProperty']('addHighlight')||(_0x2fa494['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x264715),_0x2fa494['writer']['removeAttribute']('data-suggestion',_0x264715),_0x2fa494['writer']['removeAttribute']('data-author-id',_0x264715),_0x2fa494['mapper']['unbindElementFromMarkerName'](_0x264715,_0xd3d3a4['markerName']));}},{'priority':'high'});}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0xa17a1f=>{_0xa17a1f['on']('removeMarker:suggestion:attribute',(_0x4b3598,_0x32b34c,_0x182eac)=>{const _0x59f09e=_0x182eac['mapper']['markerNameToElements'](_0x32b34c['markerName']);if(!_0x59f09e)return;const {id:_0xd30f53}=this['_splitMarkerName'](_0x32b34c['markerName']),_0x11bb59=this['_suggestions']['get'](_0xd30f53),_0x4ebab3=this['_getAttributeKey'](_0x11bb59);if(this['_isBlockAttribute'](_0x4ebab3)){for(const _0x13980a of _0x59f09e)_0x13980a['getCustomProperty']('addHighlight')||(_0x182eac['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x13980a),_0x182eac['writer']['removeAttribute']('data-suggestion',_0x13980a),_0x182eac['writer']['removeAttribute']('data-author-id',_0x13980a),_0x182eac['mapper']['unbindElementFromMarkerName'](_0x13980a,_0x32b34c['markerName']));}},{'priority':'high'});}),_0x1d3f09['model']['document']['registerPostFixer'](_0x30adbe=>{let _0x3f997e=!0x1;const _0x8e7396=Array['from'](_0x1d3f09['model']['document']['differ']['getChangedMarkers']()),_0x2419f4=new Set();for(const {name:_0x3c615e,data:_0x6211eb}of _0x8e7396){const {group:_0x430a06,type:_0x276380,subType:_0x18ac65,id:_0x5e876f}=this['_splitMarkerName'](_0x3c615e);if('suggestion'!==_0x430a06)continue;const _0x1735e2=_0x18ac65?'suggestion:'+_0x276380+':'+_0x18ac65+':'+_0x5e876f:'suggestion:'+_0x276380+':'+_0x5e876f,_0x4d1d64=_0x1d3f09['model']['markers']['getMarkersGroup'](_0x1735e2),_0x295984=_0x1d3f09['model']['markers']['get'](_0x3c615e),_0x170fd4=this['_suggestions']['get'](_0x5e876f);if(null!=_0x6211eb['newRange']){'formatInline'==_0x276380&&(_0x3f997e=_0x3f997e||Gt(_0x6211eb['newRange'],_0x3c615e,_0x30adbe,_0x1d3f09['model']['schema']));const _0x4be407='attribute'==_0x276380&&this['_isBlockAttribute'](_0x18ac65['split']('|')[0x0]),_0x53e1ce='attribute'==_0x276380&&this['_isInlineAttribute'](_0x18ac65['split']('|')[0x0]);if(_0x6211eb['newRange']['isCollapsed']||'$graveyard'==_0x6211eb['newRange']['root']['rootName']||'formatBlock'==_0x276380&&!Jt(_0x6211eb['newRange'])||_0x4be407&&!Jt(_0x6211eb['newRange'])||_0x53e1ce&&Kt(_0x6211eb['newRange'])||'deletion'==_0x276380&&Kt(_0x6211eb['newRange'])||_0x295984&&Ht(_0x295984,_0x4d1d64))_0x30adbe['removeMarker'](_0x3c615e),_0x3f997e=!0x0;else{if(!_0x170fd4||!_0x170fd4['isInContent'])continue;if(_0x6211eb['newRange']&&_0x6211eb['oldRange']&&_0x6211eb['newRange']['isEqual'](_0x6211eb['oldRange']))continue;_0x2419f4['add'](_0x170fd4);}}}return _0x2419f4['size']>0x0&&(_0x3f997e=!!this['_joinWithAdjacentSuggestions'](_0x2419f4)||_0x3f997e),_0x3f997e;}),_0x1d3f09['model']['document']['registerPostFixer'](_0x1d3712=>{let _0x599252=!0x1;for(const _0x42fb63 of _0x1d3f09['model']['document']['differ']['getChanges']())if('insert'==_0x42fb63['type'])for(const _0x1867ba of this['_suggestions']['values']()){if(_0x1867ba['isMultiRange']||!_0x1867ba['isInContent'])continue;const _0x1eb072='formatBlock'==_0x1867ba['type'],_0x52c514=this['_getAttributeKey'](_0x1867ba),_0x23e566=_0x52c514&&this['_isBlockAttribute'](_0x52c514);if(!_0x1eb072&&!_0x23e566)continue;const _0xfaf8f2=_0x1867ba['getFirstRange']();if(_0xfaf8f2['start']['parent']!=_0xfaf8f2['end']['parent']&&!_0xfaf8f2['end']['isAtEnd']){const _0x59e7c9=_0x1d3f09['model']['createPositionAt'](_0xfaf8f2['start']['nodeAfter'],'end'),_0x50eb4e=_0x1d3f09['model']['createRange'](_0xfaf8f2['start'],_0x59e7c9);_0x1d3712['updateMarker'](_0x1867ba['getFirstMarker'](),{'range':_0x50eb4e}),_0x599252=!0x0;}}return _0x599252;}),_0x1d3f09['model']['document']['registerPostFixer'](_0x10ff1c=>this['_processAttributeChanges'](_0x10ff1c)),_0x1d3f09['model']['document']['registerPostFixer'](_0x4d1bec=>!_0x4d1bec['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d1bec)),_0x1d3f09['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1d3f09['model']['document']['on']('change:data',(_0x3cd369,_0x43b2a7)=>{if(!_0x43b2a7['isLocal']||_0x43b2a7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5ce650=_0x1d3f09['model']['document']['differ']['getChanges']();if(0x0==_0x5ce650['length'])return;const _0x471d33=[],_0x45254b=_0x5ce650['filter'](_0x44133b=>'attribute'==_0x44133b['type']),_0x17cfa8=_0x5ce650['filter'](_0x562d11=>'insert'==_0x562d11['type']&&'$text'!=_0x562d11['name']);for(const _0x28d26d of _0x45254b)this['_isRegisteredAttribute'](_0x28d26d['attributeKey'])&&_0x471d33['push']({'key':_0x28d26d['attributeKey'],'newValue':_0x28d26d['attributeNewValue'],'oldValue':_0x28d26d['attributeOldValue'],'range':qt(_0x28d26d['range'],_0x1d3f09['model'])});for(const _0x2ed81b of _0x17cfa8){if('rename'!=_0x2ed81b['action']&&'refresh'!=_0x2ed81b['action'])continue;const _0x2f6c87=zt(_0x2ed81b['position']['nodeAfter'],_0x1d3f09['model']),_0x5beb9f=_0x2ed81b['before'];'rename'==_0x2ed81b['action']&&_0x471d33['push']({'key':m,'newValue':_0x2ed81b['name'],'oldValue':_0x5beb9f['name'],'range':_0x2f6c87});for(const [_0x36d55c,_0x3764ea]of _0x5beb9f['attributes']){if(!this['_isRegisteredAttribute'](_0x36d55c))continue;const _0x3a5749=_0x2ed81b['attributes']['get'](_0x36d55c);_0x3764ea!==_0x3a5749&&_0x471d33['push']({'key':_0x36d55c,'newValue':_0x3a5749,'oldValue':_0x3764ea,'range':_0x2f6c87});}for(const [_0x3c874d,_0x5b1fa1]of _0x2ed81b['attributes'])this['_isRegisteredAttribute'](_0x3c874d)&&(_0x5beb9f['attributes']['has'](_0x3c874d)||_0x471d33['push']({'key':_0x3c874d,'newValue':_0x5b1fa1,'oldValue':null,'range':_0x2f6c87}));}0x0!=_0x471d33['length']&&_0x1d3f09['model']['enqueueChange'](_0x43b2a7,_0x5cae51=>{const _0x197a6f=_0x29bcf7();for(const {range:_0x2c5622,key:_0x887297,oldValue:_0x16b50c,newValue:_0x385f22}of _0x471d33)this['markAttributeChange'](_0x2c5622,_0x887297,_0x16b50c,_0x385f22,{'groupId':_0x197a6f});this['_reduceExistingSuggestions'](_0x5cae51,_0x471d33);});},{'priority':'lowest'}),_0x1d3f09['model']['markers']['on']('update:suggestion',(_0x11e297,_0x27c1e7,_0x174d8b)=>{if(null==_0x174d8b){const {id:_0x55095f}=this['_splitMarkerName'](_0x27c1e7['name']),_0x5d4f27=this['_suggestions']['get'](_0x55095f);_0x5d4f27&&_0x5d4f27['addMarkerName'](_0x27c1e7['name']);}}),_0x1d3f09['model']['document']['on']('change:data',()=>{const _0x350da3=Array['from'](_0x1d3f09['model']['document']['differ']['getChangedMarkers']())['filter'](_0x42e9aa=>'suggestion'===this['_splitMarkerName'](_0x42e9aa['name'])['group']);if(0x0===_0x350da3['length'])return;_0x350da3['sort']((_0x207815,_0x41d48a)=>{const _0x432133=_0x207815['data']['oldRange'],_0xde2ec3=_0x41d48a['data']['oldRange'];return null===_0x432133&&null===_0xde2ec3?0x0:null===_0x432133&&null!==_0xde2ec3?-0x1:null!==_0x432133&&null===_0xde2ec3?0x1:_0x432133['start']['isBefore'](_0xde2ec3['start'])?-0x1:0x1;});const _0x212e00=new Set(),_0x24060a=new Set();for(const {name:_0xa8f30e,data:_0x27f947}of _0x350da3){const {id:_0x52b0da}=this['_splitMarkerName'](_0xa8f30e);if(null===_0x27f947['oldRange']){const _0x9e3831=this['_handleNewSuggestionMarker'](_0xa8f30e);_0x24060a['add'](_0x9e3831);}else{const _0x126b97=this['_suggestions']['get'](_0x52b0da);null!==_0x27f947['newRange']||_0x126b97['isInContent']?(_0x212e00['add'](_0x126b97['head']),_0x24060a['add'](_0x126b97)):this['_removeSuggestion'](_0x126b97);}}_0x24060a['size']>0x0&&this['_refreshSuggestionsChain'](_0x24060a);for(const _0x549ebd of _0x212e00)this['fire']('suggestionChanged',_0x549ebd);}),_0x1d3f09['model']['on']('applyOperation',(_0x1e043e,_0x106889)=>{const _0x356802=_0x106889[0x0];if(!this['_suggestions']['size'])return;if(!_0x356802['isDocumentOperation'])return;if(_0x356802['batch']['isUndo']||!_0x356802['batch']['isLocal'])return;let _0x2b7ac9,_0x3e2513;switch(_0x356802['type']){case'insert':_0x2b7ac9=_0x1d3f09['model']['createPositionAt'](_0x356802['position']),_0x3e2513=_0x2b7ac9['getShiftedBy'](_0x356802['howMany']);break;case'split':_0x2b7ac9=_0x1d3f09['model']['createPositionAt'](_0x356802['splitPosition']),_0x3e2513=_0x1d3f09['model']['createPositionAt'](_0x356802['moveTargetPosition']);break;case'move':_0x2b7ac9=_0x1d3f09['model']['createPositionAt'](_0x356802['targetPosition']),_0x3e2513=_0x2b7ac9['getShiftedBy'](_0x356802['howMany']);break;default:return;}const _0x4df16d=_0x1d3f09['model']['createRange'](_0x2b7ac9,_0x3e2513);_0x1d3f09['model']['change'](()=>{for(const {suggestion:_0x2ce3d3,meta:_0x4e1f74}of this['_findSuggestions'](_0x4df16d)){if(_0x2ce3d3['isMultiRange'])continue;if('formatInline'==_0x2ce3d3['type'])continue;const _0x29d7e9=this['_getAttributeKey'](_0x2ce3d3);if(_0x29d7e9&&this['_isBlockAttribute'](_0x29d7e9)&&'split'!=_0x356802['type'])continue;const _0x47c302=_0x2ce3d3['data']&&_0x2ce3d3['data']['multipleBlocks'];('formatBlock'!=_0x2ce3d3['type']||'split'==_0x356802['type']&&!_0x47c302)&&(_0x4e1f74['containsRangeInObject']||'insertion'==_0x2ce3d3['type']&&_0x4e1f74['isOwn']||_0x2ce3d3['getFirstRange']()['containsRange'](_0x4df16d)&&this['_breakSuggestionMarker'](_0x2ce3d3,_0x2b7ac9,_0x3e2513));}});},{'priority':'lowest'}),_0x1d3f09['model']['on']('deleteContent',(_0x3c1acd,_0x443c2d)=>{const _0x277f66=_0x443c2d[0x0],_0x24ff35=_0x443c2d[0x1];if(_0x24ff35&&_0x24ff35['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x277f66['isCollapsed'])return;const _0x3ab5a4=_0x1d3f09['model']['schema'],{start:_0xb98600,end:_0x513e6c}=_0x277f66['getFirstRange'](),_0x503302=_0xb98600['nodeAfter']&&_0x3ab5a4['isLimit'](_0xb98600['nodeAfter'])?null:_0x3ab5a4['getNearestSelectionRange'](_0xb98600,'forward'),_0x567a2f=_0x513e6c['nodeBefore']&&_0x3ab5a4['isLimit'](_0x513e6c['nodeBefore'])?null:_0x3ab5a4['getNearestSelectionRange'](_0x513e6c,'backward'),_0x118fd6=_0x1d3f09['model']['createRange'](_0x503302?_0x503302['start']:_0xb98600,_0x567a2f?_0x567a2f['end']:_0x513e6c);_0x1d3f09['model']['change'](_0x35a3bc=>{this['markDeletion'](_0x118fd6);const _0x4720f7=_0x1d3f09['model']['schema']['getNearestSelectionRange'](_0x118fd6['start']);_0x277f66['is']('documentSelection')?_0x35a3bc['setSelection'](_0x4720f7):_0x277f66['setTo'](_0x4720f7);}),_0x3c1acd['stop']();},{'priority':_0x3771e3['normal']+0xa}),_0x1d3f09['model']['on']('insertContent',(_0x22872d,_0x8d9b3c)=>{const _0x2f7f1d=_0x8d9b3c[_0x8d9b3c['length']-0x1];_0x2f7f1d&&_0x2f7f1d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1d3f09['model']['change'](()=>{let _0x353e3a=_0x1d3f09['model']['insertContent'](_0x8d9b3c[0x0],_0x8d9b3c[0x1],_0x8d9b3c[0x2],{'forceDefaultExecution':!0x0});if(!_0x353e3a)return;_0x22872d['return']=_0x353e3a['clone']();const _0x225985=_0x353e3a['end']['nodeBefore'],_0x37b99a=_0x1d3f09['model']['schema'];_0x225985&&_0x37b99a['isBlock'](_0x225985)&&!_0x37b99a['isObject'](_0x225985)&&(_0x353e3a=_0x1d3f09['model']['createRange'](_0x353e3a['start'],_0x1d3f09['model']['createPositionAt'](_0x225985,'end'))),this['markInsertion'](_0x353e3a);}),_0x22872d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2ad1c7=new D(_0x1d3f09,this['_suggestions']);_0x1d3f09['commands']['add']('acceptSuggestion',_0x2ad1c7),this['enableCommand']('acceptSuggestion');const _0x44fd1d=new $(_0x1d3f09,this['_suggestions']);_0x1d3f09['commands']['add']('discardSuggestion',_0x44fd1d),this['enableCommand']('discardSuggestion'),_0x1d3f09['commands']['add']('acceptAllSuggestions',new M(_0x1d3f09,_0x2ad1c7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1d3f09['commands']['add']('discardAllSuggestions',new M(_0x1d3f09,_0x44fd1d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1d3f09['commands']['add']('acceptSelectedSuggestions',new B(_0x1d3f09,_0x2ad1c7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1d3f09['commands']['add']('discardSelectedSuggestions',new B(_0x1d3f09,_0x44fd1d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xcff3e3=_0x1d3f09['plugins']['get']('CommentsRepository');this['listenTo'](_0xcff3e3,'addComment',(_0x2af73a,{threadId:_0x4dd926})=>{const _0x269ab3=this['_suggestions']['get'](_0x4dd926);_0x269ab3&&_0x269ab3['commentThread']&&0x1===_0x269ab3['commentThread']['length']&&this['_updateSuggestionData'](_0x4dd926,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xcff3e3,'removeComment',(_0x1028fe,{threadId:_0x27b319})=>{const _0x5d25a0=this['_suggestions']['get'](_0x27b319);_0x5d25a0&&_0x5d25a0['commentThread']&&!_0x5d25a0['commentThread']['length']&&this['_updateSuggestionData'](_0x27b319,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ce8f5){const _0x18424e=_0x4d6f0a([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x28ef5e=0x6b0f5e6f,_0x38745a=0x6b082c07^_0x28ef5e,_0x42f5a7=window[_0x4d6f0a([0x44,0x61,0x74,0x65])][_0x4d6f0a([0x6e,0x6f,0x77])](),_0xbf43f1=_0x2ce8f5[_0x4d6f0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5939c0=new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6a1c=>{_0xbf43f1[_0x4d6f0a([0x6f,0x6e,0x63,0x65])](_0x4d6f0a([0x72,0x65,0x61,0x64,0x79]),_0x4b6a1c);}),_0x4c7b7e={[_0x4d6f0a([0x6b,0x74,0x79])]:_0x4d6f0a([0x45,0x43]),[_0x4d6f0a([0x75,0x73,0x65])]:_0x4d6f0a([0x73,0x69,0x67]),[_0x4d6f0a([0x63,0x72,0x76])]:_0x4d6f0a([0x50,0x2d,0x32,0x35,0x36]),[_0x4d6f0a([0x78])]:_0x4d6f0a([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]),[_0x4d6f0a([0x79])]:_0x4d6f0a([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]),[_0x4d6f0a([0x61,0x6c,0x67])]:_0x4d6f0a([0x45,0x53,0x32,0x35,0x36])},_0x1003f3=_0xbf43f1[_0x4d6f0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d6f0a([0x67,0x65,0x74])](_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54fc2f(){let _0xc2b16c,_0x1e2e93=null,_0x300990=null;try{if(_0x1003f3==_0x4d6f0a([0x47,0x50,0x4c]))return _0x4d6f0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc2b16c=_0x409ba0(),!_0xc2b16c)return _0x4d6f0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc2b16c[_0x4d6f0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x300990=_0x42c536(_0xc2b16c[_0x4d6f0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc2b16c[_0x4d6f0a([0x6a,0x74,0x69])])),await _0x3a9cd4()?_0x58d83b()?_0x2fe7c2()?_0x4d6f0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2efbf3()?(_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d6f0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e2e93=_0x593f7a(_0x4d6f0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d6f0a([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e2e93=_0x593f7a(_0x4d6f0a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc405e8()):_0x4d6f0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d6f0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d6f0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4d6f0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2fe7c2(){const _0x234a2a=[_0x4d6f0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d6f0a([0x74,0x72,0x69,0x61,0x6c])][_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42f5a7/0x3e8:0xe10*_0x38745a;return _0xc2b16c[_0x4d6f0a([0x65,0x78,0x70])]<_0x234a2a;}function _0x58d83b(){const _0x4bdd36=_0xc2b16c[_0x4d6f0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4bdd36)return!0x1;if(_0x4bdd36[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x2a])))return!0x0;if(_0x4bdd36[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x54,0x43])))return!0x0;if(_0x4bdd36[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x52,0x54,0x43]))){if(_0x3ce70b())return!0x0;if(_0xe9ec71()||_0x493146())return!0x0;}return!0x1;}function _0x2efbf3(){const _0x26c157=_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26c157||0x0==_0x26c157[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8e4d5d}=new URL(window[_0x4d6f0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26c157[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8e4d5d))return!0x0;const _0x274be8=_0x8e4d5d[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e]));return _0x26c157[_0x4d6f0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13e43a=>_0x13e43a[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x2a])))[_0x4d6f0a([0x6d,0x61,0x70])](_0x36a4aa=>_0x36a4aa[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e])))[_0x4d6f0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26e82a=>_0x26e82a[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x274be8[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d6f0a([0x6d,0x61,0x70])](_0xd3d559=>Array(_0x274be8[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd3d559[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d6f0a([0x66,0x69,0x6c,0x6c])](_0xd3d559[0x0]===_0x4d6f0a([0x2a])?_0x4d6f0a([0x2a]):'')[_0x4d6f0a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd3d559))[_0x4d6f0a([0x73,0x6f,0x6d,0x65])](_0x3f3f24=>_0x274be8[_0x4d6f0a([0x65,0x76,0x65,0x72,0x79])]((_0x294beb,_0xa02ce6)=>_0x3f3f24[_0xa02ce6]===_0x294beb||_0x3f3f24[_0xa02ce6]===_0x4d6f0a([0x2a])));}function _0xc405e8(){return _0x1e2e93&&_0x300990?new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59f9d9,_0x56565f)=>{_0x1e2e93[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x59f9d9,_0x56565f),_0x300990[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x316c40=>{_0x316c40!=_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64])&&_0x59f9d9(_0x316c40);},_0x56565f);}):_0x1e2e93||_0x300990||_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42c536(_0x4580db,_0x2c7ba4){return new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fe4e=>{if(_0x5d707e())return _0x34fe4e(_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64]));_0x51dbf9(),_0xbf43f1[_0x4d6f0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d6f0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xad27cb=!0x1;const _0xa2c59b=_0x29bcf7();function _0x4ed031(_0x15c19d){return!!_0x15c19d&&(typeof _0x15c19d===_0x4d6f0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15c19d===_0x4d6f0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15c19d[_0x4d6f0a([0x74,0x68,0x65,0x6e])]===_0x4d6f0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15c19d[_0x4d6f0a([0x63,0x61,0x74,0x63,0x68])]===_0x4d6f0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c9088(_0x27cd68){_0x465256(_0x27cd68)[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x4c9867=>{if(!_0x4c9867||_0x4c9867[_0x4d6f0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d6f0a([0x6f,0x6b]))return _0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e7305(_0x132598(_0xa2c59b+_0x2c7ba4))!=_0x4c9867[_0x4d6f0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x1b3505=>(_0x3414cd(),_0x1b3505),()=>{const _0x317526=_0x5de5ec();return null==_0x317526?(_0x3414cd(),_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64])):_0x4d6f0a(_0x42f5a7-_0x317526>(0x4f03da6f^_0x28ef5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x34fe4e)[_0x4d6f0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34fe4e(_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ed3cc=0x6b39b0ef^_0x28ef5e;function _0x3414cd(){const _0x131b96=_0x4d6f0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e7305(_0x132598(_0x4580db)),_0x130a44=_0x15bdc7(_0x5e7305(window[_0x4d6f0a([0x4d,0x61,0x74,0x68])][_0x4d6f0a([0x63,0x65,0x69,0x6c])](_0x42f5a7/_0x3ed3cc)));window[_0x4d6f0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d6f0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x131b96,_0x130a44);}function _0x5de5ec(){const _0xedd323=_0x4d6f0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e7305(_0x132598(_0x4580db)),_0x3f8d40=window[_0x4d6f0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d6f0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xedd323);return _0x3f8d40?window[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15bdc7(_0x3f8d40),0x10)*_0x3ed3cc:null;}function _0x465256(_0x424629){return new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d68bb,_0x584997)=>{_0x424629[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x4d68bb,_0x584997),window[_0x4d6f0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x584997,0x6b0e8aaf^_0x28ef5e);});}}_0xbf43f1[_0x4d6f0a([0x6f,0x6e])](_0x4d6f0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd128d3,_0x3b8db6)=>{if(_0x3b8db6[0x0]!=_0x4580db)return _0x34fe4e(_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b8db6[0x1]={..._0x3b8db6[0x1],[_0x4d6f0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa2c59b};},{[_0x4d6f0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d6f0a([0x68,0x69,0x67,0x68])}),_0xbf43f1[_0x4d6f0a([0x6f,0x6e])](_0x4d6f0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16a5bd=>{_0x4ed031(_0x16a5bd[_0x4d6f0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xad27cb=!0x0,_0x1c9088(_0x16a5bd[_0x4d6f0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d6f0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d6f0a([0x6c,0x6f,0x77])}),_0x5939c0[_0x4d6f0a([0x74,0x68,0x65,0x6e])](()=>{_0xad27cb||_0x34fe4e(_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d707e(){return _0xbf43f1[_0x4d6f0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d6f0a([0x76,0x69,0x65,0x77])][_0x4d6f0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d6f0a([0x61,0x75,0x74,0x6f]);}function _0x51dbf9(){_0xbf43f1[_0x4d6f0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d6f0a([0x76,0x69,0x65,0x77])][_0x4d6f0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d6f0a([0x61,0x75,0x74,0x6f]);}}function _0x593f7a(_0x415c39){const _0x1ab2d7=[new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28cb3a=>setTimeout(_0x28cb3a,0x6b0660a3^_0x28ef5e)),_0x5939c0[_0x4d6f0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x488d4e=>{let _0x757227=0x0;_0xbf43f1[_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6f0a([0x6f,0x6e])](_0x4d6f0a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54d95c,_0x1ce7a0)=>{_0x1ce7a0[0x0][_0x4d6f0a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x757227++,_0x757227==(0x6b0f5f97^_0x28ef5e)&&(_0x488d4e(),_0x54d95c[_0x4d6f0a([0x6f,0x66,0x66])]());});}))];return window[_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d6f0a([0x72,0x61,0x63,0x65])](_0x1ab2d7)[_0x4d6f0a([0x74,0x68,0x65,0x6e])](()=>_0x415c39);}async function _0xe77c69(){await _0x5939c0,_0xbf43f1[_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6f0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51f597,_0xbf43f1[_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6f0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51f597,_0xbf43f1[_0x4d6f0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ce70b(){return _0x527230(_0x4d6f0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x51ad2f(_0x4d6f0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d6f0a([0x73,0x74,0x61,0x74,0x65])]==_0x4d6f0a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe9ec71(){return _0x527230(_0x4d6f0a([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 _0x493146(){return _0x527230(_0x4d6f0a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4c6ad1(_0x353d17){const _0x3356d0=_0x310efe();_0xbf43f1[_0x3356d0]=_0x4d6f0a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x353d17,_0x353d17!=_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64])&&_0xe77c69();}function _0x310efe(){const _0x1f54e9=window[_0x4d6f0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d6f0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d6f0a([0x6e,0x6f,0x77])]())[_0x4d6f0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d6f0a([0x2e]),'');let _0x4a4546=_0x4d6f0a([0x67]);for(let _0x5d00a4=0x0;_0x5d00a4<_0x1f54e9[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d00a4+=0x2){let _0x2ff28d=window[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f54e9[_0x4d6f0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d00a4,_0x5d00a4+0x2));_0x2ff28d>=_0x18424e[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ff28d-=_0x18424e[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a4546+=_0x18424e[_0x2ff28d];}return _0x4a4546;}function _0x409ba0(){const _0x22fd30=_0x1003f3[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e]));if(0x3!=_0x22fd30[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f52e7(_0x22fd30[0x1]);function _0x1f52e7(_0x1c719f){const _0x43fbbc=_0x7cc1cf(_0x1c719f);return _0x43fbbc&&_0x1bac50()?_0x43fbbc:null;function _0x1bac50(){const _0x56856c=_0x43fbbc[_0x4d6f0a([0x6a,0x74,0x69])],_0x26b5c8=window[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56856c[_0x4d6f0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56856c[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c562d={..._0x43fbbc,[_0x4d6f0a([0x6a,0x74,0x69])]:_0x56856c[_0x4d6f0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56856c[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c562d[_0x4d6f0a([0x76,0x63])],_0x132598(_0x4c562d)==_0x26b5c8;}}}async function _0x3a9cd4(){let _0x455982=!0x0;try{const _0x3f5a5c=_0x1003f3[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e])),[_0x54befe,_0x5b5224,_0x479528]=_0x3f5a5c;return _0x31f7f9(_0x54befe),await _0x296788(_0x54befe,_0x5b5224,_0x479528),_0x455982;}catch{return!0x1;}function _0x31f7f9(_0xcfe100){const _0xd21966=_0x7cc1cf(_0xcfe100);_0xd21966&&_0xd21966[_0x4d6f0a([0x61,0x6c,0x67])]==_0x4d6f0a([0x45,0x53,0x32,0x35,0x36])||(_0x455982=!0x1);}async function _0x296788(_0x3b4afc,_0x170031,_0x1a0898){const _0x478600=window[_0x4d6f0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d6f0a([0x66,0x72,0x6f,0x6d])](_0x817086(_0x1a0898),_0x38d413=>_0x38d413[_0x4d6f0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x276502=new window[(_0x4d6f0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d6f0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b4afc+_0x4d6f0a([0x2e])+_0x170031),_0x35d67c=window[_0x4d6f0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d6f0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35d67c)return;const _0x2d4063=await _0x35d67c[_0x4d6f0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d6f0a([0x6a,0x77,0x6b]),_0x4c7b7e,{[_0x4d6f0a([0x6e,0x61,0x6d,0x65])]:_0x4d6f0a([0x45,0x43,0x44,0x53,0x41]),[_0x4d6f0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d6f0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d6f0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35d67c[_0x4d6f0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d6f0a([0x6e,0x61,0x6d,0x65])]:_0x4d6f0a([0x45,0x43,0x44,0x53,0x41]),[_0x4d6f0a([0x68,0x61,0x73,0x68])]:{[_0x4d6f0a([0x6e,0x61,0x6d,0x65])]:_0x4d6f0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d4063,_0x478600,_0x276502)||(_0x455982=!0x1);}}function _0x7cc1cf(_0x119213){return _0x119213[_0x4d6f0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d6f0a([0x65,0x79]))?JSON[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65])](_0x817086(_0x119213)):null;}function _0x817086(_0x168870){return window[_0x4d6f0a([0x61,0x74,0x6f,0x62])](_0x168870[_0x4d6f0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d6f0a([0x2b]))[_0x4d6f0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d6f0a([0x2f])));}function _0x132598(_0x4c675a){let _0x5d47f8=0x1505;function _0x2406fd(_0x49c8b2){for(let _0xe1ffa1=0x0;_0xe1ffa1<_0x49c8b2[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe1ffa1++){const _0x6f2a0b=_0x49c8b2[_0x4d6f0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe1ffa1);_0x5d47f8=(_0x5d47f8<<0x5)+_0x5d47f8+_0x6f2a0b,_0x5d47f8&=_0x5d47f8;}}function _0x3569bc(_0x328bc7){Array[_0x4d6f0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x328bc7)?_0x328bc7[_0x4d6f0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3569bc):_0x328bc7&&typeof _0x328bc7==_0x4d6f0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d6f0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x328bc7)[_0x4d6f0a([0x73,0x6f,0x72,0x74])]()[_0x4d6f0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x543bc7,_0x19f867])=>{_0x2406fd(_0x543bc7),_0x3569bc(_0x19f867);}):_0x2406fd(window[_0x4d6f0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x328bc7));}return _0x3569bc(_0x4c675a),_0x5d47f8>>>0x0;}function _0x5e7305(_0x511c15){return _0x511c15[_0x4d6f0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d6f0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d6f0a([0x30]));}function _0x15bdc7(_0x2a63bd){return _0x2a63bd[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d6f0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d6f0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x527230(_0x519d33){return _0xbf43f1[_0x4d6f0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d6f0a([0x68,0x61,0x73])](_0x519d33);}function _0x51ad2f(_0x2b1fb7){return _0xbf43f1[_0x4d6f0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d6f0a([0x67,0x65,0x74])](_0x2b1fb7);}function _0x51f597(){}function _0x4d6f0a(_0x31ddea){return _0x31ddea['map'](_0x2a7adb=>String['fromCharCode'](_0x2a7adb))['join']('');}_0x4c6ad1(await _0x54fc2f());}(this);}set['adapter'](_0x16c4bb){if(this['_adapter'])throw new _0x56f143('track-changes-adapter-already-set',this);this['_adapter']=_0x16c4bb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x9544e2=!0x1,toJSON:_0x3d86c3=!0x1}={}){const _0x331366=[];for(const _0x15aef9 of this['_suggestions']['values']())_0x9544e2&&!_0x15aef9['isInContent']||_0x331366['push'](_0x15aef9);return _0x3d86c3?_0x331366['map'](_0x146ee1=>_0x146ee1['toJSON']()):_0x331366;}['getSuggestion'](_0x13f192){const _0x795b0=this['_suggestions']['get'](_0x13f192);if(!_0x795b0)throw new _0x56f143('track-changes-suggestion-not-found',this);return _0x795b0;}['hasSuggestion'](_0x264a2d){return this['_suggestions']['has'](_0x264a2d);}['addSuggestionData'](_0x3858de){const {authorId:_0x26efed,id:_0x35a346,originalSuggestionId:_0x5de7db,attributes:_0x490233}=_0x3858de,[_0x462ae9,_0x5c6e36]=_0x3858de['type']['split'](':'),_0x1035ba=this['_suggestions']['get'](_0x35a346)||this['_createSuggestion'](_0x462ae9,_0x5c6e36,_0x35a346,_0x26efed,_0x490233,_0x5de7db);if(this['_addThreadToSuggestion'](_0x1035ba),this['_checkSuggestionCorrectness'](_0x1035ba,_0x462ae9,_0x5c6e36||null,_0x26efed),_0x1035ba['createdAt']=_0x3858de['createdAt'],_0x1035ba['_isDataLoaded']=!0x0,_0x490233&&_0x490233['@external']){const _0x5d13df=_0x490233['@external'],_0x1f2a5=this['_getExternalAuthor'](_0x5d13df['authorName']);_0x1035ba['authoredAt']=_0x5d13df['createdAt'],_0x1035ba['author']=_0x1f2a5,_0x1035ba['isExternal']=!0x0;}else _0x1035ba['authoredAt']=_0x3858de['createdAt'];switch(_0x3858de['data']&&(_0x1035ba['data']=_0x3858de['data']),_0x3858de['attributes']&&(_0x1035ba['attributes']=_0x3858de['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1035ba['_saved']=!0x0),this['_suggestionState']['get'](_0x1035ba)){case'notReady':this['_suggestionState']['set'](_0x1035ba,'dataReady');break;case'markerReady':_0x1035ba['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1035ba])),this['_refreshSuggestionsChain'](new Set([_0x1035ba])),this['_suggestionState']['set'](_0x1035ba,'ready'),this['fire']('suggestionLoaded',_0x1035ba)):this['_suggestionState']['set'](_0x1035ba,'removed');}return _0x1035ba;}['acceptSuggestion'](_0x405da0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x313531 of _0x405da0['getAllAdjacentSuggestions']())_0x313531['accept']();});});}['discardSuggestion'](_0x4dfc80){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ca5ed of _0x4dfc80['getAllAdjacentSuggestions']())_0x5ca5ed['discard']();});});}['enableCommand'](_0xebd5e3,_0x26225f){const _0x3be239=this['editor']['commands']['get'](_0xebd5e3);if(!_0x3be239)throw new _0x56f143('track-changes-command-not-found',this,{'commandName':_0xebd5e3});if(this['_enabledCommands']['has'](_0x3be239))throw new _0x56f143('track-changes-enable-command-twice',this,{'commandName':_0xebd5e3});this['_enabledCommands']['add'](_0x3be239),_0x26225f&&_0x3be239['on']('execute',(_0x275e83,_0x3b542f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3b542f['length']>0x0&&_0x3b542f[_0x3b542f['length']-0x1]&&_0x3b542f[_0x3b542f['length']-0x1]['forceDefaultExecution']?_0x3b542f['pop']():(_0x275e83['return']=_0x26225f((..._0x147da1)=>_0x3be239['execute'](..._0x147da1,{'forceDefaultExecution':!0x0}),..._0x3b542f),_0x275e83['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1bc7ab){let _0xdd09e8,_0x186b7b;const _0x3d96e1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xdd09e8=_0x1bc7ab();}catch(_0x2cad44){_0x186b7b=_0x2cad44;}return _0x3d96e1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x186b7b&&_0x56f143['rethrowUnexpectedError'](_0x186b7b,this),_0xdd09e8;}['markInsertion'](_0x390235,_0x3ff898=null,_0x5d35bc={}){if(_0x390235['isCollapsed'])return null;const _0x14eab3=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5d35bc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x8508d6,meta:_0xecc50f}of this['_findSuggestions'](_0x390235,'insertion'))if(_0xecc50f['isOwn']){if(!_0xecc50f['isNextTo']){if(_0xecc50f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x8508d6,_0x5d35bc))continue;return _0x8508d6;}if(Xt(_0x8508d6,_0x5d35bc))return _0x8508d6;this['_breakSuggestionMarker'](_0x8508d6,_0x390235['start'],_0x390235['end']);break;}if(_0x3ff898==_0x8508d6['subType']&&Xt(_0x8508d6,_0x5d35bc)){const _0xdbcf71=_0x8508d6['getFirstRange']();return _0xdbcf71['start']['isEqual'](_0x390235['end'])?this['_setSuggestionRange'](_0x8508d6,this['_model']['createRange'](_0x390235['start'],_0xdbcf71['end'])):this['_setSuggestionRange'](_0x8508d6,this['_model']['createRange'](_0xdbcf71['start'],_0x390235['end'])),_0x8508d6;}}const _0xd8ca9=_0x29bcf7(),_0x43de22=_0x14eab3['id'],_0x37947a=_0x3ff898?'insertion:'+_0x3ff898:'insertion',_0x1b673b=this['_setSuggestionData']({'id':_0xd8ca9,'type':_0x37947a,'createdAt':new Date(),'authorId':_0x43de22,'attributes':_0x5d35bc});return this['_addSuggestionMarker'](_0x37947a,_0xd8ca9,_0x43de22,_0x390235),_0x1b673b;}['markMultiRangeInsertion'](_0x296131,_0x553069='multi',_0x37ac21={}){const _0x3c9092=this['editor']['plugins']['get']('Users')['me'],_0x1ff6f1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x553069,'join');this['_trackingSessionId']&&(_0x37ac21['trackingSessionId']=this['_trackingSessionId']);for(const _0x4a9708 of this['getSuggestions']())if(_0x4a9708['author']['id']==_0x3c9092['id']&&'insertion'==_0x4a9708['type']&&_0x4a9708['subType']==_0x553069&&Xt(_0x4a9708,_0x37ac21)&&(_0x1ff6f1(_0x4a9708['getRanges'](),_0x296131)||_0x1ff6f1(_0x296131,_0x4a9708['getRanges']()))){for(const _0x3205d8 of _0x296131)_0x4a9708['addRange'](_0x3205d8);return _0x4a9708;}for(const {suggestion:_0x17d0da,meta:_0x2441fb}of this['_findSuggestions'](_0x296131,'insertion')){if(!_0x2441fb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2441fb['containsRangeInObject'])continue;if(!Xt(_0x17d0da,_0x37ac21))continue;let _0x4dff6b=!0x0;for(const _0x40ab1a of _0x17d0da['getRanges']())for(const _0x55167e of _0x296131)if(!_0x40ab1a['containsRange'](_0x55167e)){_0x4dff6b=!0x1;break;}if(_0x4dff6b)return _0x17d0da;}const _0x39ba99=_0x29bcf7(),_0x234ded=_0x3c9092['id'],_0x5ce9b4='insertion:'+_0x553069,_0x12ae17=this['_setSuggestionData']({'id':_0x39ba99,'type':_0x5ce9b4,'createdAt':new Date(),'authorId':_0x234ded,'attributes':_0x37ac21});for(const _0x146cc4 of _0x296131)this['_addSuggestionMarker'](_0x5ce9b4,_0x39ba99,_0x234ded,_0x146cc4,T['getMultiRangeId']());return _0x12ae17;}['markInlineFormat'](_0x1865b0,_0x1f0b7d,_0x5ef15f=null,_0x3a85fd={}){if(_0x5ef15f=_0x5ef15f||Lt(_0x1f0b7d),_0x1865b0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3a85fd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5add69=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5ef15f,'accept');return this['forceDefaultExecution'](()=>_0x5add69([_0x1865b0],_0x1f0b7d,_0x3a85fd)),null;}const _0x5668e2=this['editor']['plugins']['get']('Users')['me'],_0x515196=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5d473e,meta:_0x2fb57d}of this['_findSuggestions'](_0x1865b0,'insertion'))_0x2fb57d['isOwn']&&!_0x2fb57d['isInsideObject']&&_0x515196['push'](..._0x5d473e['getRanges']());}const _0x1a68ff=function(_0x234ac8,_0x481ca5){const _0x253cc2=[];for(const _0x1f20b1 of _0x481ca5){const _0x198e81=_0x234ac8['getIntersection'](_0x1f20b1);_0x198e81&&_0x253cc2['push'](_0x198e81);}return _0x253cc2;}(_0x1865b0,_0x515196),_0x4cda3b=function(_0x382051,_0x3eeb1a){const _0x587b29=[_0x382051];for(const _0x265f9d of _0x3eeb1a){let _0x270035=0x0;for(;_0x270035<_0x587b29['length'];){const _0x25e77f=_0x587b29[_0x270035]['getDifference'](_0x265f9d);_0x587b29['splice'](_0x270035,0x1,..._0x25e77f),_0x270035+=_0x25e77f['length'];}}return _0x587b29;}(_0x1865b0,_0x515196);_0x1a68ff['length']&&this['_model']['change'](()=>{for(const _0x1de951 of _0x1a68ff){const _0x1744c1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5ef15f,'accept');this['forceDefaultExecution'](()=>_0x1744c1([_0x1de951],_0x1f0b7d,_0x3a85fd));}});for(const _0x498af9 of _0x4cda3b){let _0x2cf62e=null,_0x1096a1=_0x498af9['start'],_0x3eb996=_0x498af9['end'];for(const {suggestion:_0x3a4a34,meta:_0x5e8e71}of this['_findSuggestions'](_0x498af9,'formatInline')){if(!_0x5e8e71['isOwn'])continue;if(_0x3a4a34['subType']!=_0x5ef15f)continue;if(!Xt(_0x3a4a34,_0x3a85fd))continue;const _0x295e25=_0x3a4a34['getFirstRange']();if(_0x295e25['containsRange'](_0x498af9,!0x0))return null;_0x1096a1=_0x1096a1['isBefore'](_0x295e25['start'])?_0x1096a1:_0x295e25['start'],_0x3eb996=_0x3eb996['isAfter'](_0x295e25['end'])?_0x3eb996:_0x295e25['end'],_0x2cf62e?_0x295e25['start']['isBefore'](_0x2cf62e['getFirstRange']()['start'])?(_0x2cf62e['removeMarkers'](),_0x2cf62e=_0x3a4a34):_0x3a4a34['removeMarkers']():_0x2cf62e=_0x3a4a34;}const _0x52a390=this['_model']['createRange'](_0x1096a1,_0x3eb996);if(_0x2cf62e)this['_setSuggestionRange'](_0x2cf62e,_0x52a390);else{const _0x19c0b3=_0x29bcf7(),_0x316be1=_0x5668e2['id'];this['_setSuggestionData']({'id':_0x19c0b3,'type':'formatInline:'+_0x5ef15f,'data':_0x1f0b7d,'createdAt':new Date(),'authorId':_0x316be1,'attributes':_0x3a85fd}),this['_addSuggestionMarker']('formatInline:'+_0x5ef15f,_0x19c0b3,_0x316be1,_0x52a390);}}return null;}['markBlockFormat'](_0x1bbbc8,_0x34a993,_0xbba928=[],_0x3de955=null,_0x10357e={}){_0x34a993['formatGroupId']||(_0x34a993['formatGroupId']=_0x34a993['commandName']),_0x34a993['multipleBlocks']=_0x1bbbc8['is']('range'),_0x3de955=_0x3de955||Lt(_0x34a993);const _0x509938=_0xbba928['map'](_0x4c9cec=>zt(_0x4c9cec,this['_model'])),_0x3f617d=_0x1bbbc8['is']('range')?_0x1bbbc8:zt(_0x1bbbc8,this['_model']);if(this['_trackingSessionId']&&(_0x10357e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x325bfb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3de955,'accept');return this['forceDefaultExecution'](()=>_0x325bfb([_0x3f617d],_0x34a993,_0x10357e)),null;}_0x509938['push'](_0x3f617d);let _0x340cf0=!0x0;for(const _0x4e40b2 of _0x509938)if(!this['_rangeIsInLocalUserInsertion'](_0x4e40b2)){_0x340cf0=!0x1;break;}if(_0x340cf0&&'always'!==this['_trackFormatChanges']){const _0x3bc4a5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3de955,'accept');return this['forceDefaultExecution'](()=>_0x3bc4a5([_0x3f617d],_0x34a993,_0x10357e)),null;}let _0x4b8819=null,_0x3a446d=_0x3f617d['start'],_0x4279cc=_0x3f617d['end'];for(const {suggestion:_0x172183,meta:_0x313cc0}of this['_findSuggestions'](_0x3f617d,'formatBlock')){if(!_0x313cc0['isOwn'])continue;if(_0x313cc0['isNextTo']||_0x313cc0['containsRangeInObject']||_0x313cc0['isInsideObject'])continue;if(_0x172183['data']['formatGroupId']!=_0x34a993['formatGroupId'])continue;if(!Xt(_0x172183,_0x10357e))continue;const _0x550855=_0x172183['getFirstRange']();if(_0x172183['subType']==_0x3de955){if(_0x550855['containsRange'](_0x3f617d,!0x0))return null;_0x3a446d=_0x3a446d['isBefore'](_0x550855['start'])?_0x3a446d:_0x550855['start'],_0x4279cc=_0x4279cc['isAfter'](_0x550855['end'])?_0x4279cc:_0x550855['end'],_0x4b8819?_0x550855['start']['isBefore'](_0x4b8819['getFirstRange']()['start'])?(_0x4b8819['removeMarkers'](),_0x4b8819=_0x172183):_0x172183['removeMarkers']():_0x4b8819=_0x172183;}else{const _0xeccdae=_0x3f617d['getIntersection'](_0x550855);this['_cutOutSuggestionMarker'](_0x172183,_0xeccdae);}}const _0x9daced=this['editor']['plugins']['get']('Users')['me'],_0x56eb97=_0x29bcf7(),_0x1c05d1=_0x9daced['id'];if(_0x4b8819)return this['_setSuggestionRange'](_0x4b8819,this['_model']['createRange'](_0x3a446d,_0x4279cc)),_0x4b8819;{const _0x5db4ed=this['_setSuggestionData']({'id':_0x56eb97,'type':'formatBlock:'+_0x3de955,'data':_0x34a993,'createdAt':new Date(),'authorId':_0x1c05d1,'attributes':_0x10357e});return this['_addSuggestionMarker']('formatBlock:'+_0x3de955,_0x56eb97,_0x1c05d1,this['_model']['createRange'](_0x3a446d,_0x4279cc)),_0x5db4ed;}}['markMultiRangeBlockFormat'](_0x14a865,_0x5c3d3a,_0x4ceca0=[],_0x401aef=null,_0x2e11d9={}){_0x5c3d3a['formatGroupId']||(_0x5c3d3a['formatGroupId']=_0x5c3d3a['commandName']);const _0x48fd34=_0x14a865[0x0];_0x5c3d3a['multipleBlocks']=_0x48fd34['is']('range'),_0x401aef=_0x401aef||Lt(_0x5c3d3a);const _0x418b4c=_0x4ceca0['map'](_0x139053=>zt(_0x139053,this['_model'])),_0x3b6d6f=_0x48fd34['is']('range')?_0x14a865:_0x14a865['map'](_0x32e29a=>zt(_0x32e29a,this['_model']));if(this['_trackingSessionId']&&(_0x2e11d9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x106980=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x401aef,'accept');return this['forceDefaultExecution'](()=>_0x106980(_0x3b6d6f,_0x5c3d3a,_0x2e11d9)),null;}_0x418b4c['push'](..._0x3b6d6f);let _0x169201=!0x0;for(const _0xc1c1e7 of _0x418b4c)if(!this['_rangeIsInLocalUserInsertion'](_0xc1c1e7)){_0x169201=!0x1;break;}if(_0x169201&&'always'!==this['_trackFormatChanges']){const _0x2a19af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x401aef,'accept');return this['forceDefaultExecution'](()=>_0x2a19af(_0x3b6d6f,_0x5c3d3a,_0x2e11d9)),null;}const _0x3b822d=this['editor']['plugins']['get']('Users')['me'];for(const _0x63ba9e of this['getSuggestions']()){const _0x3c5493=_0x63ba9e['data'];if(_0x63ba9e['author']['id']!=_0x3b822d['id'])continue;if('formatBlock'!=_0x63ba9e['type']||_0x3c5493['formatGroupId']!=_0x5c3d3a['formatGroupId'])continue;if(!Xt(_0x63ba9e,_0x2e11d9))continue;const _0x123208=_0x63ba9e['subType']==_0x401aef;for(let _0x381298=0x0;_0x381298<_0x3b6d6f['length'];_0x381298++){const _0x17dc2e=_0x3b6d6f[_0x381298];for(const _0x2d7c2f of _0x63ba9e['getMarkers']()){const _0x1b2c08=_0x2d7c2f['getRange']();if(_0x17dc2e['isEqual'](_0x1b2c08)){_0x123208?(_0x3b6d6f['splice'](_0x381298,0x1),_0x381298--):_0x63ba9e['removeMarker'](_0x2d7c2f['name']);break;}}}}if(0x0==_0x3b6d6f['length'])return null;const _0x4b4448=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x401aef,'join');for(const _0x4e28f2 of this['getSuggestions']()){const _0x5a909d=_0x4e28f2['data'];if(_0x4e28f2['author']['id']==_0x3b822d['id']&&('formatBlock'==_0x4e28f2['type']&&_0x5a909d['formatGroupId']==_0x5c3d3a['formatGroupId']&&_0x4e28f2['subType']==_0x401aef&&Xt(_0x4e28f2,_0x2e11d9)&&(_0x4b4448(_0x4e28f2['getRanges'](),_0x3b6d6f)||_0x4b4448(_0x3b6d6f,_0x4e28f2['getRanges']())))){for(const _0xc23de1 of _0x3b6d6f)_0x4e28f2['addRange'](_0xc23de1);return _0x4e28f2;}}const _0x48f078=_0x29bcf7(),_0x51c629=_0x3b822d['id'],_0x3d0c61='formatBlock:'+_0x401aef,_0x4e8b12=this['_setSuggestionData']({'id':_0x48f078,'type':_0x3d0c61,'data':_0x5c3d3a,'createdAt':new Date(),'authorId':_0x51c629,'attributes':_0x2e11d9});for(const _0xf695cc of _0x3b6d6f)this['_addSuggestionMarker'](_0x3d0c61,_0x48f078,_0x51c629,_0xf695cc,T['getMultiRangeId']());return _0x4e8b12;}['markDeletion'](_0x3d11f8,_0x3d2ac7=null,_0x56c111={}){if(_0x3d11f8['isCollapsed'])return null;const _0x348b8d=this['editor']['plugins']['get']('Users')['me'],_0x565678=new _0x50a820(_0x3d11f8['start'],_0x3d11f8['end']);this['_trackingSessionId']&&(_0x56c111['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x277b5e,meta:_0x34b979}of this['_findSuggestions'](_0x565678,'insertion'))if(_0x34b979['isOwn']&&!_0x34b979['isNextTo']){if(_0x277b5e['isMultiRange']){const _0x366412=_0x277b5e['getRanges']()['filter'](_0x2979c7=>'$graveyard'!=_0x2979c7['root']['rootName']);_0x366412['every'](_0x43d4c2=>_0x565678['containsRange'](_0x43d4c2,!0x0))&&_0x277b5e['discard']();if(_0x366412['some'](_0x279270=>_0x279270['containsRange'](_0x565678,!0x0))){const _0x25c8c6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d2ac7,'accept');return this['forceDefaultExecution'](()=>_0x25c8c6([_0x565678],null,_0x56c111)),null;}}else{const _0x4b716e=_0x565678['getIntersection'](_0x277b5e['getFirstRange']());null!==_0x4b716e&&_0x277b5e['_onDiscard']([_0x4b716e],null,_0x56c111);}}if(_0x565678['detach'](),_0x565678['isCollapsed']||'$graveyard'==_0x565678['root']['rootName'])return null;let _0x49b2bb=null,_0x4cc269=_0x565678['start'],_0x388033=_0x565678['end'];const _0x57db70=this['_findSuggestions'](_0x565678,'deletion');for(const {suggestion:_0x50aca9,meta:_0x4b400d}of _0x57db70){const _0x3c9212=this['_model']['createRange'](_0x4cc269,_0x388033);if(_0x4b400d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b400d['containsRangeInObject']&&!_0x4b400d['isInsideObject'])){if(_0x50aca9['isMultiRange']){if(!Xt(_0x50aca9,_0x56c111))continue;let _0xf4ded7=!0x0;for(const _0x351bd5 of _0x50aca9['getRanges']()){if(_0x351bd5['containsRange'](_0x3c9212,!0x0))return _0x50aca9;_0x3c9212['containsRange'](_0x351bd5)||(_0xf4ded7=!0x1);}_0xf4ded7&&_0x50aca9['discard']();}else{const _0x16cab5=_0x50aca9['getFirstRange']();if(_0x16cab5['containsRange'](_0x3c9212,!0x0))return _0x50aca9;if(!Xt(_0x50aca9,_0x56c111)){_0x3c9212['containsRange'](_0x16cab5)?_0x50aca9['removeMarkers']():_0x16cab5['containsPosition'](_0x4cc269)?_0x4cc269=_0x16cab5['end']:_0x16cab5['containsPosition'](_0x388033)&&(_0x388033=_0x16cab5['start']);continue;}_0x4cc269=_0x4cc269['isBefore'](_0x16cab5['start'])?_0x4cc269:_0x16cab5['start'],_0x388033=_0x388033['isAfter'](_0x16cab5['end'])?_0x388033:_0x16cab5['end'],_0x56c111=Object['assign']({},_0x50aca9['attributes']),_0x49b2bb?_0x16cab5['start']['isBefore'](_0x49b2bb['getFirstRange']()['start'])?(_0x49b2bb['removeMarkers'](),_0x49b2bb=_0x50aca9):_0x50aca9['removeMarkers']():_0x49b2bb=_0x50aca9;}}}if(_0x49b2bb)return this['_setSuggestionRange'](_0x49b2bb,this['_model']['createRange'](_0x4cc269,_0x388033)),_0x49b2bb;{const _0x5cfd47=_0x29bcf7(),_0xa6ee03=this['_model']['createRange'](_0x4cc269,_0x388033),_0x189382=_0x348b8d['id'],_0x3c46a6=_0x3d2ac7?'deletion:'+_0x3d2ac7:'deletion',_0x1a9c2a=this['_setSuggestionData']({'id':_0x5cfd47,'type':_0x3c46a6,'createdAt':new Date(),'authorId':_0x189382,'attributes':_0x56c111});return this['_addSuggestionMarker'](_0x3c46a6,_0x5cfd47,_0x189382,_0xa6ee03),_0x1a9c2a;}}['markMultiRangeDeletion'](_0x1460d7,_0x47f2b9='multi',_0x145ad3={}){const _0x477ba8=this['editor']['plugins']['get']('Users')['me'],_0xf272d1=_0x1460d7['map'](_0x56d570=>new _0x50a820(_0x56d570['start'],_0x56d570['end'])),_0x484177=new Set();this['_trackingSessionId']&&(_0x145ad3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x229c88,meta:_0x56fa5c}of this['_findSuggestions'](_0xf272d1,'insertion'))_0x56fa5c['isOwn']&&!_0x56fa5c['isNextTo']&&_0x484177['add'](_0x229c88);for(const _0x1b5ea9 of _0x484177)if(_0x1b5ea9['isMultiRange']){const _0x37d750=_0x1b5ea9['getRanges']();(!_0x1b5ea9['attributes']||!_0x1b5ea9['attributes']['skipNestingCheck'])&&(_0x37d750['every'](_0x56eec6=>_0xf272d1['some'](_0x8fc467=>_0x8fc467['containsRange'](_0x56eec6,!0x0)))&&_0x1b5ea9['discard']());if(_0xf272d1['every'](_0x3a979c=>_0x37d750['some'](_0x498aa5=>_0x498aa5['containsRange'](_0x3a979c,!0x0)))){const _0x1f088b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47f2b9,'accept');return this['forceDefaultExecution'](()=>_0x1f088b(_0x1460d7,null,_0x145ad3)),null;}}else{const _0xda3bed=_0x1b5ea9['getFirstRange']();_0xf272d1['some'](_0xd1918c=>_0xd1918c['containsRange'](_0xda3bed,!0x0))&&_0x1b5ea9['discard']();if(_0xf272d1['every'](_0x39ac6d=>_0xda3bed['containsRange'](_0x39ac6d,!0x0))){const _0x6e7bf0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47f2b9,'accept');return this['forceDefaultExecution'](()=>_0x6e7bf0(_0xf272d1,null,_0x145ad3)),null;}}const _0x376376=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47f2b9,'join');let _0x2cc698=null;for(const _0x33fe18 of this['getSuggestions']())if(_0x33fe18['author']['id']==_0x477ba8['id']&&_0x33fe18['isInContent']&&'deletion'==_0x33fe18['type']&&_0x33fe18['subType']==_0x47f2b9&&Xt(_0x33fe18,_0x145ad3)&&(_0x376376(_0x33fe18['getRanges'](),_0xf272d1)||_0x376376(_0xf272d1,_0x33fe18['getRanges']()))){if(_0x2cc698){if(_0x33fe18['commentThread']&&_0x33fe18['commentThread']['length'])continue;for(const _0x55ca21 of _0x33fe18['getRanges']())_0x2cc698['isIntersectingWithRange'](_0x55ca21)||_0x2cc698['addRange'](_0x55ca21);_0x33fe18['removeMarkers']();}else{_0x2cc698=_0x33fe18;for(const _0x2a053b of _0xf272d1)_0x33fe18['isIntersectingWithRange'](_0x2a053b)||_0x33fe18['addRange'](_0x2a053b);}}if(_0x2cc698)return _0x2cc698;_0x484177['clear']();for(const {suggestion:_0x10ae91,meta:_0x3c67cf}of this['_findSuggestions'](_0xf272d1,'deletion'))_0x3c67cf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c67cf['containsRangeInObject']&&!_0x3c67cf['isInsideObject'])&&Xt(_0x10ae91,_0x145ad3)&&_0x484177['add'](_0x10ae91);for(const _0x49118e of _0x484177){const _0x4f13f7=_0x49118e['getRanges']();if(!_0x145ad3||!_0x145ad3['skipNestingCheck']){if(_0xf272d1['every'](_0xd22f60=>_0x4f13f7['some'](_0x12de1a=>_0x12de1a['containsRange'](_0xd22f60,!0x0))))return _0x49118e;}(!_0x49118e['attributes']||!_0x49118e['attributes']['skipNestingCheck'])&&(_0x4f13f7['every'](_0x48768a=>_0xf272d1['some'](_0x1b44dd=>_0x1b44dd['containsRange'](_0x48768a,!0x0)))&&_0x49118e['discard']());}const _0x400546=_0x29bcf7(),_0x119c08=_0x477ba8['id'],_0x78f903='deletion:'+_0x47f2b9,_0xa4749c=this['_setSuggestionData']({'id':_0x400546,'type':_0x78f903,'createdAt':new Date(),'authorId':_0x119c08,'attributes':_0x145ad3});for(const _0x4e8f08 of _0xf272d1)_0x4e8f08['detach'](),_0x4e8f08['isCollapsed']||'$graveyard'==_0x4e8f08['root']['rootName']||this['_addSuggestionMarker'](_0x78f903,_0x400546,_0x119c08,_0x4e8f08,T['getMultiRangeId']());return _0xa4749c;}['markAttributeChange'](_0x125f13,_0x29f151,_0x2b7bb8,_0x810ae,_0x21d784){if(_0x125f13['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x544933=this['editor']['plugins']['get']('Users')['me']['id'],_0x443643=Array['from'](this['_suggestions']['values']())['filter'](_0x488450=>'attribute'==_0x488450['type']&&_0x488450['data']['key']==_0x29f151&&_0x488450['isIntersectingWithRange'](_0x125f13));if(this['_trackingSessionId']&&(_0x21d784['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x58ca65=this['_findSuggestions'](_0x125f13,'insertion')['filter'](({meta:_0x10345b})=>_0x10345b['isOwn']&&!_0x10345b['isInsideObject']&&!_0x10345b['isNextTo'])['map'](({suggestion:_0xc6d79a})=>_0xc6d79a);_0x443643['unshift'](..._0x58ca65);}const _0xc5928d=new Map([[_0x125f13,_0x2b7bb8]]);for(const _0x352624 of _0x443643){const _0x73789='attribute'==_0x352624['type']?_0x352624['data']['oldValue']:void 0x0,_0x15f104=_0x352624['getFirstRange'](),_0x39f309=Array['from'](_0xc5928d['keys']())['find'](_0x498f07=>_0x498f07['isIntersecting'](_0x15f104));if(!_0x39f309)continue;const _0x121ab6=_0x39f309['getDifference'](_0x15f104);this['_isBlockAttribute'](_0x29f151)&&'insertion'==_0x352624['type']&&0x0!=_0x121ab6['length']||(_0xc5928d['delete'](_0x39f309),_0x121ab6['forEach'](_0x32bf99=>{_0xc5928d['set'](_0x32bf99,_0x2b7bb8);}),'insertion'!=_0x352624['type']&&_0x73789!=_0x810ae&&_0xc5928d['set'](_0x39f309['getIntersection'](_0x15f104),_0x73789));}const _0x3819e1=[];for(const [_0x6cc79e,_0x41ec94]of _0xc5928d){const _0x46e470=_0x29bcf7(),_0x47c7b2={'key':_0x29f151,'oldValue':_0x41ec94,'newValue':_0x810ae};_0x29f151['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':_0x29f151});const _0x5da93b=('attribute:'+(_0x29f151+'|'+Lt({'newValue':_0x810ae})))['substring'](0x0,0x3c),_0x49a1e0=this['_setSuggestionData']({'id':_0x46e470,'type':_0x5da93b,'data':_0x47c7b2,'createdAt':new Date(),'authorId':_0x544933,'attributes':_0x21d784});_0x3819e1['push'](_0x49a1e0),this['_addSuggestionMarker'](_0x5da93b,_0x46e470,_0x544933,_0x6cc79e);}return _0x3819e1;}['enableDefaultAttributesIntegration'](_0x2dd7f7){this['enableCommand'](_0x2dd7f7,(_0x39688c,..._0xfa9c9c)=>{this['recordAttributeChanges'](()=>{_0x39688c(..._0xfa9c9c);});});}['registerBlockAttribute'](_0x3bdc85){this['_blockAttributeKeys']['add'](_0x3bdc85);}['registerInlineAttribute'](_0xc67cb1){this['_inlineAttributeKeys']['add'](_0xc67cb1);}['startTrackingSession'](_0x12e7eb){return this['_trackingSessionId']=void 0x0!==_0x12e7eb?_0x12e7eb:_0x29bcf7(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3d1a96){return'attribute'==_0x3d1a96['type']?_0x3d1a96['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a9f06,_0x306ffd){const _0x1d580b=_0x4a9f06['getFirstMarker']();this['_model']['change'](_0x35e79c=>{_0x35e79c['updateMarker'](_0x1d580b,{'range':_0x306ffd});});}['_addThreadToSuggestion'](_0x49b7af){const _0x30e385=_0x49b7af['id'],_0x743551=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x30e385)||this['_commentsRepository']['addCommentThread']({'channelId':_0x743551,'threadId':_0x30e385,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4ab3fe=this['_commentsRepository']['getCommentThread'](_0x30e385);_0x4ab3fe['unbind']('isRemovable'),_0x4ab3fe['isRemovable']=!0x1,_0x49b7af['commentThread']=_0x4ab3fe;}['_checkSuggestionCorrectness'](_0x58a3ef,_0x4670df,_0x582d9e,_0x34cc26){if(_0x58a3ef['type']!=_0x4670df||_0x58a3ef['subType']!=_0x582d9e||_0x58a3ef['creator']['id']!=_0x34cc26)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x56f143('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x285f00,_0x39ed30){const _0x336496=_0x285f00['getFirstRange']();if(_0x39ed30['isEqual'](_0x336496))_0x285f00['removeMarkers']();else{if(_0x336496['containsRange'](_0x39ed30)){const _0x320cc1=this['_model']['createPositionAt'](_0x39ed30['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x285f00,this['_model']['createRange'](_0x336496['start'],_0x320cc1));const _0x13e18c=_0x29bcf7(),_0x7a0961=_0x285f00['creator']['id'],_0x37dfde=_0x285f00['type']+':'+_0x285f00['subType'];this['_setSuggestionData']({'id':_0x13e18c,'type':_0x37dfde,'createdAt':new Date(),'authorId':_0x7a0961,'data':_0x285f00['data'],'attributes':_0x285f00['attributes']});const _0x26671a=this['_model']['createPositionAt'](_0x39ed30['end']['parent'],'after'),_0x2091fd=this['_model']['createRange'](_0x26671a,_0x336496['end']);this['_addSuggestionMarker'](_0x37dfde,_0x13e18c,_0x7a0961,_0x2091fd);}else{if(_0x336496['containsPosition'](_0x39ed30['start'])){const _0x239467=this['_model']['createPositionAt'](_0x39ed30['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x285f00,this['_model']['createRange'](_0x336496['start'],_0x239467));}else{const _0x30314e=this['_model']['createPositionAt'](_0x39ed30['end']['parent'],'after');this['_setSuggestionRange'](_0x285f00,this['_model']['createRange'](_0x30314e,_0x336496['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x39ff64){for(const {suggestion:_0x37c38d,meta:_0x4b9235}of this['_findSuggestions'](_0x39ff64,'insertion')){if(!_0x4b9235['isOwn'])continue;const _0x11cbe3=_0x37c38d['getRanges']();for(const _0x2f990e of _0x11cbe3)if(!_0x39ff64['getDifference'](_0x2f990e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xeadc4){return this['editor']['plugins']['get']('Users')['getUser'](_0xeadc4);}['_getExternalAuthor'](_0x2026fd){const _0x2601f3=this['editor']['plugins']['get']('Users'),_0x31d112=_0x547e54('external:'+_0x2026fd),_0x1ae6a0=_0x2601f3['getUser'](_0x31d112);return _0x1ae6a0||_0x2601f3['addUser']({'id':_0x31d112,'name':_0x2026fd});}['_createSuggestion'](_0x5e7094,_0x1f6b13,_0x2a2467,_0x5f0d12,_0x45c584,_0x5c63e0){const _0x177a07=this['_getAuthorFromId'](_0x5f0d12);if(!_0x177a07)throw new _0x56f143('track-changes-user-not-found',this,{'authorId':_0x5f0d12,'suggestionId':_0x2a2467});const _0x14a816=this['_suggestionFactory']['buildSuggestion'](_0x5e7094,_0x1f6b13,_0x2a2467,_0x177a07,_0x45c584,_0x1e4909=>{this['_updateSuggestionData'](_0x2a2467,{'attributes':_0x1e4909});const _0x2124d7=this['getSuggestion'](_0x2a2467);this['_joinWithAdjacentSuggestions'](new Set([_0x2124d7])),this['_refreshSuggestionsChain'](new Set([_0x2124d7]));},_0x5c63e0);return this['listenTo'](_0x14a816,'accept',()=>{this['_updateSuggestionData'](_0x2a2467,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x14a816,'discard',()=>{this['_updateSuggestionData'](_0x2a2467,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a2467,_0x14a816),this['_suggestionState']['set'](_0x14a816,'notReady'),_0x14a816;}['_splitMarkerName'](_0x54f2db){const _0x3dc672=_0x54f2db['split'](':');return{'group':_0x3dc672[0x0],'type':_0x3dc672[0x1],'subType':_0x3dc672['length']>=0x5?_0x3dc672[0x2]:null,'id':_0x3dc672['length']<0x5?_0x3dc672[0x2]:_0x3dc672[0x3],'authorId':_0x3dc672['length']<0x5?_0x3dc672[0x3]:_0x3dc672[0x4],'markerCount':0x6==_0x3dc672['length']?_0x3dc672[0x5]:null};}['_breakSuggestionMarker'](_0x38ed1d,_0x78b811,_0x27b28e){const _0x321642=_0x38ed1d['getFirstRange'](),_0x4722fb=_0x321642['start'],_0x298be5=_0x321642['end'];this['_setSuggestionRange'](_0x38ed1d,this['_model']['createRange'](_0x4722fb,_0x78b811));const _0xb0ba15=_0x29bcf7(),_0x395148=_0x38ed1d['creator']['id'],_0x2f6966=_0x38ed1d['type']+(_0x38ed1d['subType']?':'+_0x38ed1d['subType']:'');this['_setSuggestionData']({'id':_0xb0ba15,'type':_0x2f6966,'createdAt':new Date(),'authorId':_0x395148,'originalSuggestionId':_0x38ed1d['_originalSuggestionId']||_0x38ed1d['id'],'attributes':_0x38ed1d['attributes'],'data':_0x38ed1d['data']});const _0x11f2d1=this['_getAttributeKey'](_0x38ed1d);('formatBlock'==_0x38ed1d['type']||_0x11f2d1&&this['_isBlockAttribute'](_0x11f2d1))&&(_0x27b28e=this['_model']['createPositionBefore'](_0x27b28e['parent'])),this['_addSuggestionMarker'](_0x2f6966,_0xb0ba15,_0x395148,this['_model']['createRange'](_0x27b28e,_0x298be5));}['_findSuggestions'](_0x4d84c5,_0x2d0b65=null){const _0x2bb710=[],_0x156546=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4d84c5)||(_0x4d84c5=[_0x4d84c5]);for(const _0x335fa6 of this['getSuggestions']()){if(!_0x335fa6['isInContent'])continue;if(_0x2d0b65&&_0x335fa6['type']!=_0x2d0b65)continue;let _0x3556a8=!0x1;for(const _0x2785fd of _0x335fa6['getRanges']()){for(const _0x5d031c of _0x4d84c5){const _0x46f740=_0x5d031c['start']['isEqual'](_0x2785fd['end'])||_0x5d031c['end']['isEqual'](_0x2785fd['start']);if(_0x46f740||_0x5d031c['getIntersection'](_0x2785fd)){const _0x1bc45b=_0x5d031c['containsRange'](_0x2785fd)&&Ft(this['_model']['schema'],_0x2785fd['start'],_0x5d031c),_0x1f4f3e=_0x2785fd['containsRange'](_0x5d031c)&&Ft(this['_model']['schema'],_0x5d031c['start'],_0x2785fd);_0x2bb710['push']({'suggestion':_0x335fa6,'meta':{'isOwn':_0x156546==_0x335fa6['author'],'isNextTo':_0x46f740,'isInsideObject':_0x1bc45b,'containsRangeInObject':_0x1f4f3e}}),_0x3556a8=!0x0;break;}}if(_0x3556a8)break;}}return _0x2bb710;}['_addSuggestionMarker'](_0x24ce51,_0x1b1c22,_0x28092b,_0x7ebd73,_0x1dd8f7){this['_model']['change'](_0x32db04=>{let _0x3afe50='suggestion:'+_0x24ce51+':'+_0x1b1c22+':'+_0x28092b;_0x1dd8f7&&(_0x3afe50=_0x3afe50+':'+_0x1dd8f7),_0x32db04['addMarker'](_0x3afe50,{'range':_0x7ebd73,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x30a62a){const _0x5d3b40=_0x30a62a['previous'],_0x4d079b=_0x30a62a['next'];_0x30a62a['previous']=null,_0x30a62a['next']=null,null!=_0x5d3b40&&_0x5d3b40['next']==_0x30a62a&&(_0x5d3b40['next']=_0x4d079b),null!=_0x4d079b&&_0x4d079b['previous']==_0x30a62a&&(_0x4d079b['previous']=_0x5d3b40),'ready'==this['_suggestionState']['get'](_0x30a62a)&&(this['_suggestionState']['set'](_0x30a62a,'removed'),this['fire']('suggestionUnloaded',_0x30a62a,_0x5d3b40,_0x4d079b));}['_setSuggestionData'](_0x1c3e42){const _0x597cfa=_0x1c3e42['id'],_0x2306e8=this['addSuggestionData'](_0x1c3e42);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4e777e=this['editor']['plugins']['get']('PendingActions'),_0x1b2c27=_0x2306e8['hasComments'],_0x340d2e=_0x2306e8['subType']?_0x2306e8['type']+':'+_0x2306e8['subType']:_0x2306e8['type'],_0x5bf738=this['editor']['locale'],_0x2ef61b=_0x4e777e['add'](o(_0x5bf738,'PENDING_ACTION_SUGGESTION')),_0x39ee57={'id':_0x597cfa,'type':_0x340d2e,'hasComments':_0x1b2c27,'data':_0x1c3e42['data']||null,'originalSuggestionId':_0x1c3e42['originalSuggestionId']||null,'attributes':_0x2306e8['attributes']};this['_adapter']['addSuggestion'](_0x39ee57)['then'](_0x1e44d7=>{_0x2306e8['_saved']=!0x0,_0x4e777e['remove'](_0x2ef61b),_0x1e44d7&&_0x1e44d7['createdAt']&&(this['_suggestions']['get'](_0x597cfa)['createdAt']=_0x1e44d7['createdAt']);})['catch'](_0x4399f6=>{throw _0x3e241f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2306e8['discard']();}),_0x2306e8['stopListening'](),this['_suggestions']['delete'](_0x2306e8['id']),this['_suggestionState']['delete'](_0x2306e8),_0x4399f6;});}return _0x2306e8;}['_isBlockAttribute'](_0x1d9c9e){return this['_blockAttributeKeys']['has'](_0x1d9c9e);}['_isInlineAttribute'](_0x3ee743){return this['_inlineAttributeKeys']['has'](_0x3ee743);}['_updateSuggestionData'](_0x101081,_0x37ec3a){const _0x3f7694=this['editor']['plugins']['get']('PendingActions'),_0x4b2db4=this['getSuggestion'](_0x101081);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4b2db4['_saved']){const _0x481994=_0x3f7694['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x101081,_0x37ec3a)['then'](()=>{_0x3f7694['remove'](_0x481994);});}else _0x4b2db4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x101081,_0x37ec3a);});}}['_getSuggestionData'](_0x43098b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x56f143('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x43098b);}['_handleNewSuggestionMarker'](_0x4cade0){const {id:_0x5a2663,type:_0x25065c,subType:_0x2b842f,authorId:_0x371d9f}=this['_splitMarkerName'](_0x4cade0),_0x40e199=this['_suggestions']['get'](_0x5a2663)||this['_createSuggestion'](_0x25065c,_0x2b842f,_0x5a2663,_0x371d9f,{});switch(this['_checkSuggestionCorrectness'](_0x40e199,_0x25065c,_0x2b842f,_0x371d9f),this['_suggestionState']['get'](_0x40e199)){case'notReady':this['_getSuggestionData'](_0x5a2663)['then'](_0x53046e=>{let _0x4f175a=Promise['resolve']();_0x53046e['hasComments']&&(_0x4f175a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a2663})),_0x4f175a['then'](()=>{this['addSuggestionData'](_0x53046e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40e199,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a2663,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40e199,'ready'),this['fire']('suggestionLoaded',_0x40e199);break;case'ready':this['fire']('suggestionChanged',_0x40e199);}return _0x40e199['addMarkerName'](_0x4cade0),_0x40e199;}['_refreshSuggestionsChain'](_0x289788){const _0x164816=Array['from'](_0x289788),_0x4eaff8=_0x164816['filter'](_0x33a070=>'attribute'==_0x33a070['type']);this['_refreshAttributeSuggestionsChain'](_0x4eaff8);const _0x32e76a=_0x164816['filter'](_0x5e9506=>!_0x5e9506['isMultiRange']&&'attribute'!=_0x5e9506['type']),_0x1da75e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x516781=>!_0x516781['isMultiRange']&&'attribute'!=_0x516781['type']),_0x547200=_0x1da75e['filter'](_0x4e601a=>!_0x289788['has'](_0x4e601a)),_0x412f9b=new Map(_0x1da75e['map'](_0x568629=>[_0x568629,this['_suggestionFactory']['getSuggestionCallback'](_0x568629['type'],_0x568629['subType'],'chain')])),_0x7ebe82=new Map(_0x1da75e['map'](_0x19427d=>[_0x19427d,_0x19427d['getFirstRange']()])),_0x4efbad=new Set(),_0xa8aa67=new Set();for(let _0x344465=0x0;_0x344465<_0x32e76a['length'];_0x344465++)_0x339c38(_0x32e76a[_0x344465],_0x32e76a,_0x344465+0x1);for(let _0x1af0ea=0x0;_0x1af0ea<_0x32e76a['length'];_0x1af0ea++)_0x339c38(_0x32e76a[_0x1af0ea],_0x547200,0x0);const _0x582314=new Set();for(let _0x1cc7e2=0x0;_0x1cc7e2<_0x32e76a['length'];_0x1cc7e2++){const _0x251c18=_0x32e76a[_0x1cc7e2];!_0xa8aa67['has'](_0x251c18)&&_0x251c18['previous']&&(_0x582314['add'](_0x251c18['previous']),_0x251c18['previous']['next']===_0x251c18&&(_0x251c18['previous']['next']=null),_0x251c18['previous']=null),!_0x4efbad['has'](_0x251c18)&&_0x251c18['next']&&(_0x582314['add'](_0x251c18['next']),_0x251c18['next']['previous']===_0x251c18&&(_0x251c18['next']['previous']=null),_0x251c18['next']=null);}function _0x339c38(_0x4a1f0b,_0x4280a1,_0x4f3df4){for(let _0x54fb55=_0x4f3df4;_0x54fb55<_0x4280a1['length'];_0x54fb55++){const _0xe37400=_0x39c90c(_0x4a1f0b,_0x4280a1[_0x54fb55]);_0xe37400&&(_0xe37400[0x0]['next']=_0xe37400[0x1],_0xe37400[0x1]['previous']=_0xe37400[0x0],_0x4efbad['add'](_0xe37400[0x0]),_0xa8aa67['add'](_0xe37400[0x1]));}}function _0x39c90c(_0x1e64fc,_0x2135b1){if(_0x1e64fc['author']['id']!==_0x2135b1['author']['id'])return null;const _0x344f54=_0x412f9b['get'](_0x1e64fc)(_0x1e64fc,_0x2135b1,_0x7ebe82['get'](_0x1e64fc),_0x7ebe82['get'](_0x2135b1));if(!_0x344f54)return null;return _0x412f9b['get'](_0x2135b1)(_0x1e64fc,_0x2135b1,_0x7ebe82['get'](_0x1e64fc),_0x7ebe82['get'](_0x2135b1))?_0x344f54[0x1]['commentThread']&&_0x344f54[0x1]['commentThread']['length']?null:_0x344f54:null;}_0x582314['size']&&this['_refreshSuggestionsChain'](_0x582314);}['_refreshAttributeSuggestionsChain'](_0x3887a0){if(0x0==_0x3887a0['length'])return;const _0x3709f2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29a672=>'attribute'==_0x29a672['type']&&_0x29a672['_isDataLoaded']),_0x1b3f2a=[],_0x821b2a=new Map();for(const _0x1895ea of _0x3709f2){const _0x42ec34=_0x547e54(_0x1895ea['attributes']);_0x821b2a['has'](_0x42ec34)||(_0x821b2a['set'](_0x42ec34,_0x1b3f2a['length']),_0x1b3f2a['push']([]));const _0x526081=_0x821b2a['get'](_0x42ec34);_0x1b3f2a[_0x526081]['push'](_0x1895ea);}!(function(){_0x1b3f2a['sort']((_0xa48ad,_0x58c22c)=>{const _0xff2e68=_0xa48ad[0x0]['createdAt'],_0x46751d=_0x58c22c[0x0]['createdAt'];return _0xff2e68==_0x46751d?_0xa48ad[0x0]['attributes']['groupId']<_0x58c22c[0x0]['attributes']['groupId']?-0x1:0x1:_0xff2e68<_0x46751d?-0x1:0x1;});for(const _0x299028 of _0x1b3f2a)_0x299028['sort']((_0x3de71c,_0x1c84e6)=>_0x3de71c['id']<_0x1c84e6['id']?-0x1:0x1);}());for(let _0x5bb0c8=0x0;_0x5bb0c8<_0x1b3f2a['length'];_0x5bb0c8++){if(0x0==_0x1b3f2a[_0x5bb0c8]['length'])continue;const _0x1d82a7=[];for(let _0x221a25=_0x5bb0c8+0x1;_0x221a25<_0x1b3f2a['length'];_0x221a25++)0x0!=_0x1b3f2a[_0x221a25]['length']&&_0x4d4dc3(_0x1b3f2a[_0x5bb0c8],_0x1b3f2a[_0x221a25])&&_0x1d82a7['push'](_0x221a25);for(const _0x47444f of _0x1d82a7)_0x1b3f2a[_0x5bb0c8]=_0x1b3f2a[_0x5bb0c8]['concat'](_0x1b3f2a[_0x47444f]),_0x1b3f2a[_0x47444f]=[];}for(const _0x1b3b89 of _0x1b3f2a)for(let _0x122eb3=0x0;_0x122eb3<_0x1b3b89['length'];_0x122eb3++){const _0xeeff11=_0x1b3b89[_0x122eb3+0x1]||null;_0x1b3b89[_0x122eb3]['next']!==_0xeeff11&&(_0x1b3b89[_0x122eb3]['next']=_0xeeff11);}for(const _0x10b7af of _0x1b3f2a)for(let _0x9cf638=0x0;_0x9cf638<_0x10b7af['length'];_0x9cf638++){const _0x25f7f4=_0x10b7af[_0x9cf638-0x1]||null;_0x10b7af[_0x9cf638]['previous']!==_0x25f7f4&&(_0x10b7af[_0x9cf638]['previous']=_0x25f7f4);}function _0x4d4dc3(_0x2d4d20,_0x3d66cb){if(_0x2d4d20[0x0]['attributes']['groupId']!==_0x3d66cb[0x0]['attributes']['groupId']&&_0x2d4d20[0x0]['author']!==_0x3d66cb[0x0]['author'])return!0x1;if(!function(_0xc6fbbd,_0x2ea390){if(!_0xc6fbbd['hasComments']&&!_0x2ea390['hasComments'])return!0x0;if(_0xc6fbbd['hasComments']&&_0x2ea390['hasComments'])return!0x1;if(_0xc6fbbd['hasComments']&&_0x2ea390['createdAt']<_0xc6fbbd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2ea390['hasComments']&&_0xc6fbbd['createdAt']<_0x2ea390['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d4d20[0x0],_0x3d66cb[0x0]))return!0x1;const _0x10039a=Ut(_0x2d4d20[0x0]['attributes'],['groupId','trackingSessionId']),_0x537c77=Ut(_0x3d66cb[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48888a(_0x10039a,_0x537c77))return!0x1;if(_0x2d4d20[0x0]['attributes']['groupId']==_0x3d66cb[0x0]['attributes']['groupId'])return!0x0;if(_0x2d4d20[0x0]['attributes']['trackingSessionId']!==_0x3d66cb[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2d4d20['every'](_0x53d4dc=>_0x3d66cb['some'](_0x4f243f=>_0x53d4dc['getFirstRange']()['isEqual'](_0x4f243f['getFirstRange']())))&&_0x3d66cb['every'](_0x59deff=>_0x2d4d20['some'](_0x1903fe=>_0x59deff['getFirstRange']()['isEqual'](_0x1903fe['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x332f64){const _0x9e3819=Array['from'](_0x332f64),_0x502bb9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5f4fc=_0x502bb9['filter'](_0x3c41e7=>!_0x332f64['has'](_0x3c41e7)),_0x3878cc=new Map(_0x9e3819['map'](_0x1c416a=>[_0x1c416a,this['_suggestionFactory']['getSuggestionCallback'](_0x1c416a['type'],_0x1c416a['subType'],'join')])),_0x7de0b6=new Map(_0x502bb9['map'](_0x21b8d0=>[_0x21b8d0,_0x21b8d0['getRanges']()]));for(let _0x2f45f1=0x0;_0x2f45f1<_0x9e3819['length'];_0x2f45f1++){if(_0x4ad341(this,_0x9e3819[_0x2f45f1],_0x9e3819,_0x2f45f1+0x1))return!0x0;}for(let _0x2b7eb7=0x0;_0x2b7eb7<_0x9e3819['length'];_0x2b7eb7++){if(_0x4ad341(this,_0x9e3819[_0x2b7eb7],_0x5f4fc,0x0))return!0x0;}return!0x1;function _0x4ad341(_0x124170,_0x230890,_0x990a2d,_0x1cd846){for(let _0x4a47c3=_0x1cd846;_0x4a47c3<_0x990a2d['length'];_0x4a47c3++){const _0x130e54=_0x990a2d[_0x4a47c3];if(_0x130e54['type']!==_0x230890['type']||_0x130e54['author']['id']!==_0x230890['author']['id']||_0x130e54['subType']!==_0x230890['subType'])continue;if(!Qt(_0x230890,_0x130e54))continue;if('attribute'==_0x230890['type']&&_0x230890['data']['oldValue']!=_0x130e54['data']['oldValue'])continue;if('attribute'==_0x230890['type']&&_0x124170['_isBlockAttribute'](_0x230890['data']['key']))continue;if('formatBlock'==_0x230890['type']){const _0x53f6a8=_0x124170['editor']['model'],_0x3be528=_0x230890['getContainedElement']();if(_0x3be528&&(_0x53f6a8['schema']['isObject'](_0x3be528)||_0x53f6a8['schema']['isLimit'](_0x3be528)))continue;}const _0x1c64a6=_0x3878cc['get'](_0x230890),_0x371074=_0x7de0b6['get'](_0x230890),_0x5b4877=_0x7de0b6['get'](_0x130e54),_0x208458=_0x230890['commentThread']&&_0x230890['commentThread']['length'],_0x1b9586=_0x130e54['commentThread']&&_0x130e54['commentThread']['length'];if(!_0x208458&&_0x1c64a6(_0x5b4877,_0x371074))return _0x124170['_joinSuggestions'](_0x130e54,_0x230890),_0x7de0b6['delete'](_0x230890),!0x0;if(!_0x1b9586&&_0x1c64a6(_0x371074,_0x5b4877))return _0x124170['_joinSuggestions'](_0x230890,_0x130e54),_0x7de0b6['delete'](_0x130e54),!0x0;}return!0x1;}}['_joinSuggestions'](_0x47a4dc,_0x5f4c33){if(_0x47a4dc['isMultiRange']){for(const _0x3753db of _0x5f4c33['getRanges']())_0x47a4dc['addRange'](_0x3753db);}else{const _0x279db9=_0x5f4c33['getFirstRange']()['end'];this['_setSuggestionRange'](_0x47a4dc,this['_model']['createRange'](_0x47a4dc['getFirstRange']()['start'],_0x279db9));}_0x5f4c33['removeMarkers']();}['_getMarkerAnnouncementText'](_0x36ca4c,_0x2d6bc9,_0x504ddd){const _0x3a90a5=_0x36ca4c['startsWith']('format')||_0x36ca4c['startsWith']('attribute')?'FORMATTING':_0x36ca4c['toUpperCase']();return o(this['editor']['locale'],_0x2d6bc9+'_'+_0x3a90a5+'_SUGGESTION_ANNOUNCEMENT',_0x504ddd);}['_initAriaMarkerChangeAnnouncements'](){const _0x354081=this['editor'];if(!_0x354081['ui'])return;const {ariaLiveAnnouncer:_0x6dc1a9}=_0x354081['ui'];_0x1bb4cb(this['_model'],({left:_0x194ea8,entered:_0x3fe73b})=>{for(const _0x31ec63 of _0x194ea8){const {group:_0x3ef952,type:_0xb7be56}=this['_splitMarkerName'](_0x31ec63['name']);if('suggestion'===_0x3ef952){_0x6dc1a9['announce'](this['_getMarkerAnnouncementText'](_0xb7be56,'LEAVE'));break;}}for(const _0x4960b1 of _0x3fe73b){const {group:_0x2c0f05,type:_0x223ace}=this['_splitMarkerName'](_0x4960b1['name']);if('suggestion'===_0x2c0f05){_0x6dc1a9['announce'](this['_getMarkerAnnouncementText'](_0x223ace,'ENTER',_0x5e1f5f(_0x27f0cb)));break;}}});}['_processAttributeChanges'](_0x2c0c7a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x40a05c=this['editor'],_0x1998e0=_0x40a05c['model']['document']['differ']['getChanges']();if(0x0==_0x1998e0['length'])return!0x1;const _0x3384a8=[],_0x2e28b3=_0x1998e0['filter'](_0x4f914f=>'attribute'==_0x4f914f['type']),_0x51f454=_0x1998e0['filter'](_0x213d39=>'insert'==_0x213d39['type']&&'$text'!=_0x213d39['name']),_0x44e3d4=_0x1998e0['filter'](_0x1d1bf5=>'remove'==_0x1d1bf5['type']&&'$text'!=_0x1d1bf5['name']);for(const _0x3f1efb of _0x2e28b3)_0x3384a8['push']({'key':_0x3f1efb['attributeKey'],'newValue':_0x3f1efb['attributeNewValue'],'oldValue':_0x3f1efb['attributeOldValue'],'range':qt(_0x3f1efb['range'],_0x40a05c['model'])});for(const _0x3a3666 of _0x51f454){const _0x4cc88c=_0x44e3d4['find'](_0x855308=>_0x855308['position']['isEqual'](_0x3a3666['position']));_0x4cc88c&&_0x3384a8['push']({'key':m,'newValue':_0x3a3666['name'],'oldValue':_0x4cc88c['name'],'range':_0x40a05c['model']['createRangeOn'](_0x3a3666['position']['nodeAfter'])});}return 0x0!=_0x3384a8['length']&&this['_reduceExistingSuggestions'](_0x2c0c7a,_0x3384a8);}['_processAttributeSuggestions'](_0x58a7ff){let _0x5485c0=!0x1;const _0x1e0a60=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa44502=>_0xa44502['data']['newRange']&&_0xa44502['name']['startsWith']('suggestion:attribute:'));for(const _0x553102 of _0x1e0a60){const {subType:_0x59070c,id:_0x559bb4}=this['_splitMarkerName'](_0x553102['name']),_0x5ad942=_0x59070c['split']('|')[0x0];for(const _0x35e99e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x35e99e['id']!=_0x559bb4&&'attribute'==_0x35e99e['type']&&_0x35e99e['data']&&_0x35e99e['data']['key']==_0x5ad942&&_0x35e99e['getFirstRange']()['isIntersecting'](_0x553102['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x35e99e,_0x553102['data']['newRange'],_0x58a7ff),_0x5485c0=!0x0);}return _0x5485c0;}['recordAttributeChanges'](_0x3646de){this['_recordAttributeSuggestions']=!0x0,_0x3646de();}['_isRegisteredAttribute'](_0x48ba3c){const _0x276789=this['_isBlockAttribute'](_0x48ba3c),_0x11d9e0=this['_isInlineAttribute'](_0x48ba3c);return _0x276789||_0x11d9e0;}['_reduceExistingSuggestions'](_0x2a46e7,_0x27b267){if(0x0==_0x27b267['length'])return!0x1;let _0x3cb668=!0x1;for(const _0xbfaeef of _0x27b267){const _0x93c3ac=this['_findSuggestions'](_0xbfaeef['range'],'attribute')['filter'](_0x38f3a1=>!_0x38f3a1['meta']['isNextTo'])['map'](_0x239979=>_0x239979['suggestion']),_0x50ed7e=_0x547e54({'newValue':_0xbfaeef['newValue']});_0x93c3ac['filter'](_0x59f36e=>{const [_0xe75b67,_0x46cd90]=_0x59f36e['subType']['split']('|');return _0xe75b67==_0xbfaeef['key']&&_0x46cd90!=_0x50ed7e;})['forEach'](_0x865606=>{this['_reduceSuggestionAttributeRange'](_0x865606,_0xbfaeef['range'],_0x2a46e7),_0x3cb668=!0x0;});}return _0x3cb668;}['_reduceSuggestionAttributeRange'](_0x866431,_0x4ff801,_0x37ff04){const _0x561fc3=_0x866431['getFirstRange']()['getDifference'](_0x4ff801);0x0!==_0x561fc3['length']?0x1!==_0x561fc3['length']?this['_breakSuggestionMarker'](_0x866431,_0x4ff801['start'],_0x4ff801['end']):this['_setSuggestionRange'](_0x866431,_0x561fc3[0x0]):_0x37ff04['removeMarker'](_0x866431['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xcc8b9e){this['_editor']=_0xcc8b9e,this['_model']=_0xcc8b9e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xd198ef,_0x3ce79b,_0x9a8a58,_0x2871e3,_0x577180,_0x35321f,_0x4280b7){return new T(this['_model'],{'type':_0xd198ef,'subType':_0x3ce79b,'id':_0x9a8a58,'originalSuggestionId':_0x4280b7,'author':_0x2871e3,'creator':_0x2871e3,'attributes':_0x577180,'onAttributesChange':_0x35321f,'onAccept':(..._0xbd54ab)=>this['getSuggestionCallback'](_0xd198ef,_0x3ce79b,'accept')(..._0xbd54ab),'onDiscard':(..._0x39b8e3)=>this['getSuggestionCallback'](_0xd198ef,_0x3ce79b,'discard')(..._0x39b8e3)});}['registerCustomCallback'](_0x4b29cf,_0x2b3857,_0x3a5cd2,_0x8fec63){const _0x4a50ee=_0x4b29cf+':'+_0x2b3857+':'+_0x3a5cd2;this['_customCallbacks']['set'](_0x4a50ee,_0x8fec63);}['getSuggestionCallback'](_0x30245e,_0x2d0348,_0x2bebb0){const _0x27b461=_0x30245e+':'+_0x2d0348+':'+_0x2bebb0;return this['_customCallbacks']['get'](_0x27b461)||this['_defaultCallbacks']['get'](_0x30245e+':'+_0x2bebb0);}['_registerDefaultCallbacks'](){const _0x940294=()=>!0x1,_0x5cdd41=_0x4a8eaf=>{_0x4a8eaf['sort']((_0x25743a,_0x247aa3)=>_0x25743a['start']['isBefore'](_0x247aa3['start'])?0x1:-0x1),this['_model']['change'](_0x5ef20f=>{for(const _0x1501f3 of _0x4a8eaf){let _0x50f03b;_0x50f03b=_0x1501f3['end']['isAtEnd']&&_0x1501f3['end']['parent']==_0x1501f3['start']['nodeAfter']?_0x5ef20f['createSelection'](_0x1501f3['start']['nodeAfter'],'on'):_0x5ef20f['createSelection'](_0x1501f3),this['_model']['deleteContent'](_0x50f03b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x295d68=(_0x2b038f,_0x6b6e8b)=>{_0x6b6e8b&&this['_model']['change'](_0x482eb0=>{const {commandName:_0x1d1db4,commandParams:_0x4221d4=[]}=_0x6b6e8b,_0x41d495=_0x2b038f['map'](_0x2b1ea3=>(Pt(_0x2b1ea3)&&(_0x2b1ea3=this['_model']['createRange'](_0x2b1ea3['end'])),_0x2b1ea3))['filter'](_0x2d8156=>'$graveyard'!==_0x2d8156['root']['rootName']);if(_0x41d495['length']<0x1)return;const _0x29d7de=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x48c49d=>_0x50a820['fromRange'](_0x48c49d));_0x482eb0['setSelection'](_0x41d495);for(const _0x19da16 of this['_editor']['commands']['commands']())_0x19da16['refresh']();_0x4221d4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1d1db4,..._0x4221d4);const _0x9a86b=_0x29d7de['filter'](_0x1fb40a=>'$graveyard'!=_0x1fb40a['root']['rootName']);_0x9a86b['length']>0x0&&_0x482eb0['setSelection'](_0x9a86b);for(const _0x2a8675 of _0x29d7de)_0x2a8675['detach']();});},_0x539659=(_0x513a6b,_0x37e8e0)=>0x1==_0x513a6b['length']&&0x1==_0x37e8e0['length']&&_0x513a6b[0x0]['end']['isEqual'](_0x37e8e0[0x0]['start']),_0x10c3d0=(_0x3e6450,_0x54d71c,_0x27b0fc,_0x97e59)=>Wt(_0x3e6450,_0x54d71c,_0x27b0fc,_0x97e59)?[_0x3e6450,_0x54d71c]:Wt(_0x54d71c,_0x3e6450,_0x97e59,_0x27b0fc)?[_0x54d71c,_0x3e6450]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x940294),this['_defaultCallbacks']['set']('insertion:discard',_0x5cdd41),this['_defaultCallbacks']['set']('insertion:join',_0x539659),this['_defaultCallbacks']['set']('insertion:chain',_0x10c3d0),this['_defaultCallbacks']['set']('deletion:accept',_0x5cdd41),this['_defaultCallbacks']['set']('deletion:discard',_0x940294),this['_defaultCallbacks']['set']('deletion:join',_0x539659),this['_defaultCallbacks']['set']('deletion:chain',_0x10c3d0),this['_defaultCallbacks']['set']('formatInline:accept',_0x295d68),this['_defaultCallbacks']['set']('formatInline:discard',_0x940294),this['_defaultCallbacks']['set']('formatInline:join',_0x539659),this['_defaultCallbacks']['set']('formatInline:chain',_0x940294),this['_defaultCallbacks']['set']('formatBlock:accept',_0x295d68),this['_defaultCallbacks']['set']('formatBlock:discard',_0x940294),this['_defaultCallbacks']['set']('formatBlock:join',_0x539659),this['_defaultCallbacks']['set']('formatBlock:chain',_0x940294),this['_defaultCallbacks']['set']('attribute:accept',_0x940294),this['_defaultCallbacks']['set']('attribute:discard',(_0x3ba524,_0x5cc32e)=>{if(!_0x5cc32e)return;const _0x15ba48=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x219f63=>{if(_0x5cc32e['key']==m)for(const _0xda7650 of _0x3ba524){const _0x338647=_0xda7650['start']['nodeAfter'],_0x469192=_0x5cc32e['oldValue'];_0x219f63['rename'](_0x338647,_0x469192);}else{if(_0x15ba48['_isBlockAttribute'](_0x5cc32e['key'])){for(const _0x30e90d of _0x3ba524)void 0x0!==_0x5cc32e['oldValue']?_0x219f63['setAttribute'](_0x5cc32e['key'],_0x5cc32e['oldValue'],_0x30e90d['start']['nodeAfter']):_0x219f63['removeAttribute'](_0x5cc32e['key'],_0x30e90d['start']['nodeAfter']);}else{for(const _0x7afd1d of _0x3ba524)_0x5cc32e['oldValue']?_0x219f63['setAttribute'](_0x5cc32e['key'],_0x5cc32e['oldValue'],_0x7afd1d):_0x219f63['removeAttribute'](_0x5cc32e['key'],_0x7afd1d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x539659);}}function Ft(_0x5aaa9e,_0x37151a,_0x1fce8d){for(const _0x5e688e of _0x37151a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e688e['root']==_0x5e688e)return!0x1;if(!_0x1fce8d['containsItem'](_0x5e688e))return!0x1;if(_0x5aaa9e['isObject'](_0x5e688e)||_0x5aaa9e['isLimit'](_0x5e688e))return!0x0;}return!0x1;}function Pt(_0x508cc2){return _0x508cc2['end']['parent']==_0x508cc2['start']['nodeAfter']&&_0x508cc2['end']['isAtStart'];}function Gt(_0x5822af,_0x4b4fbb,_0x43ff15,_0x15e9a1){const _0x4ba82d=_0x5846d3=>!_0x5846d3['item']['is']('$textProxy')&&!_0x15e9a1['isObject'](_0x5846d3['item']),_0x134065=_0x5822af['start']['getLastMatchingPosition'](_0x4ba82d),_0x3c0f9a=_0x5822af['end']['getLastMatchingPosition'](_0x4ba82d,{'direction':'backward'});return(!_0x5822af['start']['isEqual'](_0x134065)||!_0x5822af['end']['isEqual'](_0x3c0f9a))&&(_0x134065['isBefore'](_0x3c0f9a)?_0x43ff15['updateMarker'](_0x4b4fbb,{'range':_0x43ff15['createRange'](_0x134065,_0x3c0f9a)}):_0x43ff15['removeMarker'](_0x4b4fbb),!0x0);}function Lt(_0x11f03e){return _0x547e54(_0x11f03e);}function Jt(_0x548e63){const _0x5a326c=_0x548e63['start']['nodeAfter'];return _0x5a326c&&_0x5a326c['is']('element');}function Kt(_0x10d0f1){return Pt(_0x10d0f1)||function(_0x119e34){return _0x119e34['start']['parent']==_0x119e34['end']['nodeBefore']&&_0x119e34['start']['isAtEnd'];}(_0x10d0f1);}function Ht(_0x104981,_0x53f788){try{const _0x1b879b=_0x104981['getRange']();for(const _0x57f7d3 of _0x53f788)if(_0x104981!==_0x57f7d3&&_0x1b879b&&_0x1b879b['isIntersecting'](_0x57f7d3['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x330ab8,_0xfb9023){return null==_0x330ab8['end']['nodeBefore']&&_0x330ab8['end']['parent']==_0x330ab8['start']['nodeAfter']?zt(_0x330ab8['start']['nodeAfter'],_0xfb9023):_0x330ab8;}function zt(_0x22cb69,_0x5da3fb){const _0x11d4a5=_0x5da3fb['schema']['isObject'](_0x22cb69)||_0x5da3fb['schema']['isSelectable'](_0x22cb69);return _0x5da3fb['createRange'](_0x5da3fb['createPositionAt'](_0x22cb69,'before'),_0x11d4a5?_0x5da3fb['createPositionAfter'](_0x22cb69):_0x5da3fb['createPositionAt'](_0x22cb69,'end'));}function Wt(_0x4017fe,_0x3988f8,_0x127b31,_0x1c8ab9){return!!Qt(_0x4017fe,_0x3988f8)&&_0x127b31['end']['isEqual'](_0x1c8ab9['start']);}function Qt(_0x135c43,_0x3ed133){if(!_0x135c43['_isDataLoaded']||!_0x3ed133['_isDataLoaded'])return!0x1;const _0x17ffca=new Set(Object['keys'](_0x135c43['attributes'])),_0x1f6317=new Set(Object['keys'](_0x3ed133['attributes']));if(_0x17ffca['delete']('groupId'),_0x1f6317['delete']('groupId'),0x0==_0x17ffca['size']&&0x0==_0x1f6317['size'])return!0x0;if(_0x17ffca['size']!=_0x1f6317['size'])return!0x1;const _0x449e10={..._0x135c43['attributes']},_0x370f15={..._0x3ed133['attributes']};return delete _0x449e10['groupId'],delete _0x370f15['groupId'],JSON['stringify'](_0x449e10)==JSON['stringify'](_0x370f15);}function Xt(_0x2f3d8d,_0x4d3eeb){const _0x9f790f=Yt(_0x2f3d8d['attributes']),_0x589aa3=Yt(_0x4d3eeb);if(!_0x2f3d8d['_isDataLoaded'])return!0x1;for(const _0x9ac141 of Object['keys'](_0x589aa3))if(!_0x48888a(_0x9f790f[_0x9ac141],_0x589aa3[_0x9ac141]))return!0x1;return!0x0;}function Yt(_0x5e1cf5){const _0x3629fd=Object['assign']({},_0x5e1cf5);return delete _0x3629fd['skipNestingCheck'],delete _0x3629fd['tablePasteChainId'],_0x3629fd;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x290c21(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x312665,_0x4de43c,_0xaf22d7,_0x5f57bf){super(),this['model']=_0x4de43c,this['view']=_0xaf22d7,this['commentThreadController']=_0x5f57bf,this['_editor']=_0x312665,this['_acceptCommand']=_0x312665['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x312665['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b7cd2,_0x1cacd2)=>_0x2b7cd2||_0x1cacd2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x124ee6=>_0x124ee6&&this['_editor']['model']['canEditAt'](_0x4de43c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x102483=>_0x102483&&this['_editor']['model']['canEditAt'](_0x4de43c['getRanges']())),this['_pendingAction']=null,_0xaf22d7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xaf22d7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xaf22d7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xaf22d7,'change:isDirty',()=>{_0xaf22d7['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 _0x38c3d1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x38c3d1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x434eb5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xf15df7,_0x55f430,_0x43f145,_0xaa705){super(_0xf15df7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2d2058(_0xf15df7,o(_0xf15df7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x55f430['authoredAt']),this['bind']('authoredAt')['to'](_0x55f430),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',_0x55f430,'authoredAt',this,'descriptionParts',(_0x37c0b8,_0x3a5ad7,_0x451e0d)=>{const _0x40a3e5=_0x451e0d['map'](_0x455492=>ls(_0x455492['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x37c0b8-0x1,_0x55f430['author']['name'],_0x3a5ad7?_0xaa705['formatDateTime'](_0x3a5ad7):'',new DOMParser()['parseFromString'](_0x40a3e5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3162c6(),this['focusTracker']=new _0x47b4e3(),this['keystrokes']=new _0x554820(),this['focusCycler']=new _0x3fedb7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x341571=>_0x341571['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x55f430,this['_localUser']=_0x43f145,this['_config']=_0xaa705,_0xaa705['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xa5c0ff(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x139e28}=this['_config'];this['commentsListView']=new _0x139e28(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',_0x3bd398=>_0x3bd398+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2930fa,_0x253693)=>_0x2930fa||!!_0x253693);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x162c0b}=this['_config'],_0x246510=new _0x162c0b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x575d05=_0x246510['commentInputView'];return _0x246510['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x575d05,'value',(_0x4b80fc,_0x55699b,_0x253404)=>!!_0x253404||_0x4b80fc&&!_0x55699b),_0x575d05['on']('submit',(_0x3c0b3d,_0x260d12)=>{this['fire']('addComment',_0x260d12),_0x575d05['editor']['setData']('');}),_0x575d05['on']('cancel',()=>this['focus']()),_0x575d05['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x246510;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x57c738,_0x4fa9af,_0x2f879b,_0x5b960d){super(_0x57c738,_0x4fa9af,_0x2f879b,_0x5b960d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xdf4c37=>_0xdf4c37&&_0xdf4c37[0x0]?_0xdf4c37[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x588c01,_0x370a57)=>{let _0x371f51='';for(const _0x49ce55 of _0x588c01)_0x371f51+='<p>'+ls(_0x49ce55['content'],_0x49ce55['color'])+'</p>';return _0x370a57?_0x371f51:_0x5488c(_0x371f51,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5b960d['SuggestionView'](_0x57c738,_0x4fa9af,{'formatDateTime':_0x5b960d['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 _0x3b64d0=this['bindTemplate'],_0xf86ff3=[this['suggestionView']];return this['commentsListView']&&_0xf86ff3['push'](this['commentsListView']),this['commentThreadInputView']&&_0xf86ff3['push'](this['commentThreadInputView']),_0xf86ff3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3b64d0['if']('isActive','ck-suggestion-wrapper--active'),_0x3b64d0['to']('type',_0x4966ca=>'ck-suggestion-'+_0x4966ca),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':_0x3b64d0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xf86ff3};}['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 _0x434eb5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x15e8e4,_0x5e5009,_0x13a939){super(_0x15e8e4),this['_model']=_0x5e5009,this['_config']=_0x13a939,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5e5009),this['acceptButton']=this['_createButton'](o(_0x15e8e4,'Accept\x20suggestion'),_0x3cb433,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x15e8e4,'Discard\x20suggestion'),_0x2259c8,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4f2257(_0x15e8e4,_0x5e5009['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3162c6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x47b4e3(),this['keystrokes']=new _0x554820(),this['focusCycler']=new _0x3fedb7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2f2a40=>_0x2f2a40['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x17bfc0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x17bfc0['innerHTML']=this['description'],this['on']('change:description',(_0x579dd2,_0x2f1456,_0x432457)=>{_0x17bfc0['innerHTML']=_0x432457;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x112639=this['bindTemplate'],_0x33912a=[{'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':_0x112639['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x112639['to']('authoredAt',_0x5ea553=>this['_config']['formatDateTime'](_0x5ea553))}]}]},{'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']&&_0x33912a['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':_0x33912a}]};}['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'](_0x4d3b22,_0x9479ff,_0x20d837,_0x19358b,_0x251d88){const _0x598426=new _0x6543dc(this['locale']);return _0x598426['set']({'label':_0x4d3b22,'icon':_0x9479ff,'tooltip':!0x0,'tooltipPosition':_0x251d88}),_0x598426['extendTemplate']({'attributes':{'class':_0x20d837}}),_0x598426['on']('execute',()=>{this['fire'](_0x19358b,this['_model']['id']);}),_0x598426;}['_setupKeyboardNavigation'](){const _0x4b0877=this['element'];this['keystrokes']['listenTo'](_0x4b0877);for(const _0x3a26f8 of this['focusables'])this['focusTracker']['add'](_0x3a26f8['element']),this['keystrokes']['listenTo'](_0x3a26f8['element']);this['keystrokes']['set']('enter',(_0x28af1f,_0x32c5c2)=>{_0x4b0877===_0x28af1f['target']&&(this['focusCycler']['focusFirst'](),_0x32c5c2());}),this['keystrokes']['set']('esc',(_0x1b26a7,_0x111f0e)=>{_0x4b0877!==_0x1b26a7['target']&&(this['focus'](),_0x111f0e());});}}class u extends _0xe680e7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x9e4cfc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e3f47){super(_0x3e3f47),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x16e6d6=this['editor']['config'];_0x16e6d6['define']('trackChanges.SuggestionThreadView',fe),_0x16e6d6['define']('trackChanges.SuggestionView',we),_0x16e6d6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x16e6d6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x12b4ae,_0x396357){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x556a04,_0x3675be]of this['_handleControllerBuffer']){const _0x290c90=this['_suggestionToController']['has'](_0x556a04);_0x290c90||_0x3675be?_0x290c90&&_0x3675be&&this['_destroyController'](_0x556a04):this['_initializeController'](_0x556a04);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x12b4ae,_0x396357);}['init'](){const _0x5e133c=this['editor'],_0x3ea40d=_0x5e133c['plugins']['get']('TrackChangesEditing'),_0x2b992b=_0x5e133c['plugins']['get']('Annotations'),_0x720999=_0x5e133c['plugins']['get']('EditorAnnotations'),_0x805988=_0x5e133c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x720999['addSourceCollector'](()=>{const _0x50501f=[];for(const [_0x4ec537,_0x26095c]of Array['from'](this['_suggestionToController'])){const _0x595507=_0x4ec537['getAllAdjacentSuggestions'](),_0x4c61b1=[];for(const _0x5c01ec of _0x595507){if(!_0x5c01ec['isInContent'])continue;if(_0x5c01ec['isMultiRange']){_0x4c61b1['push'](..._0x5c01ec['getRanges']());continue;}const _0x5de067=_0x5c01ec['getFirstRange']();if(_0x4c61b1['length']>0x0){const _0x2edf20=_0x4c61b1[0x0]['getJoined'](_0x5de067);if(_0x2edf20){_0x4c61b1[0x0]=_0x2edf20;continue;}}_0x4c61b1['push'](_0x5de067);}_0x50501f['push']([_0x26095c['view'],_0x4c61b1]);}return _0x50501f;}),this['listenTo'](_0x3ea40d,'suggestionLoaded',(_0x1063c0,_0x4dd4b7)=>{this['listenTo'](_0x4dd4b7,'change:previous',(_0x3ae285,_0x4a7709,_0x52432d,_0x1bebc8)=>{_0x4dd4b7['isInContent']&&(null==_0x52432d?(this['_updateController'](_0x1bebc8['head']),this['_handleSuggestionControllerDelayed'](_0x4dd4b7,!0x1)):(this['_updateController'](_0x52432d['head']),null==_0x1bebc8&&this['_handleSuggestionControllerDelayed'](_0x4dd4b7,!0x0)));}),null!==_0x4dd4b7['previous']?this['_updateController'](_0x4dd4b7['head']):this['_handleSuggestionControllerDelayed'](_0x4dd4b7,!0x1);}),this['listenTo'](_0x3ea40d,'suggestionUnloaded',(_0xa26c6b,_0x8d5abe,_0x39f378)=>{this['stopListening'](_0x8d5abe,'change:previous'),this['_handleControllerBuffer']['delete'](_0x8d5abe),this['_suggestionToController']['has'](_0x8d5abe)&&this['_destroyController'](_0x8d5abe),_0x39f378&&this['_updateController'](_0x39f378['head']);}),this['listenTo'](_0x3ea40d,'suggestionChanged',(_0x5cebe1,_0x42b1c2)=>{this['_updateController'](_0x42b1c2);}),this['listenTo'](_0x2b992b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x805988,'addComment',(_0x35231d,{threadId:_0xb4dd04,isFromAdapter:_0x55f9ca})=>{if(_0x55f9ca||!_0x3ea40d['hasSuggestion'](_0xb4dd04))return;const _0x5ee90=_0x3ea40d['getSuggestion'](_0xb4dd04);this['_suggestionToController']['get'](_0x5ee90)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x238846=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c2ca8;for(const _0x3338da in _0x238846){const _0x17f280=_0x3338da,_0x284d08=_0x238846[_0x17f280];if('trackChangesLicenseKeyValid'==_0x284d08||'trackChangesLicenseKeyInvalid'==_0x284d08||'trackChangesLicenseKeyExpired'==_0x284d08||'trackChangesLicenseKeyDomainLimit'==_0x284d08||'trackChangesLicenseKeyNotAllowed'==_0x284d08||'trackChangesLicenseKeyEvaluationLimit'==_0x284d08||'trackChangesLicenseKeyTrialLimit'==_0x284d08||'trackChangesLicenseKeyUsageLimit'==_0x284d08){delete _0x238846[_0x17f280],_0x2c2ca8=_0x284d08,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c2ca8&&_0x238846['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c2ca8&&_0x238846['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c2ca8&&_0x238846['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3c8901){const _0x5b4b6f=this['_suggestionToController']['get'](_0x3c8901);if(!_0x5b4b6f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x5b4b6f['view'])||null;}['getSuggestionForAnnotation'](_0x42036c){const _0x1d2f87=this['_viewToController']['get'](_0x42036c['innerView']);return _0x1d2f87?_0x1d2f87['model']:null;}['_refreshActiveMarkers'](){const _0x4fd9b0=this['editor']['plugins']['get']('Annotations'),_0x18d581=this['editor']['plugins']['get']('TrackChangesEditing'),_0x91f129=Array['from'](_0x4fd9b0['activeAnnotations'],_0xe619ea=>_0xe619ea['innerView'])['filter'](_0x3c8dfa=>this['_viewToController']['has'](_0x3c8dfa)),_0x1cb92b=[];for(const _0x36bbca of _0x91f129){const _0x2538b9=this['_viewToController']['get'](_0x36bbca)['model']['getAllAdjacentSuggestions']();_0x1cb92b['push'](..._0x2538b9['reduce']((_0x2d0df7,_0x4ea960)=>[..._0x2d0df7,..._0x4ea960['getMarkerNames']()],[]));}_0x18d581['activeMarkers']=_0x1cb92b;}['_addUIComponentsToFactory'](){const _0x33253c=this['editor'],_0x27fea8=_0x33253c['locale'],_0x486a96=o(_0x27fea8,'Track\x20changes'),_0x12f5b7=new _0x4d97d4([{'type':'switchbutton','model':new _0x14eac5({'withText':!0x0,'isToggleable':!0x0,'label':_0x486a96,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x33253c['plugins']['has']('TrackChangesPreview')&&_0x12f5b7['addMany']([{'type':'separator'},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x236ab0 of _0x12f5b7)if(ke(_0x236ab0)){const _0x45731e=_0x33253c['commands']['get'](_0x236ab0['model']['commandName']);_0x236ab0['model']['bind']('isOn','isEnabled')['to'](_0x45731e,'value','isEnabled');}_0x33253c['ui']['componentFactory']['add']('trackChanges',_0x2a0a42=>this['_createToolbarButton'](_0x2a0a42,_0x12f5b7,_0x486a96)),_0x33253c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4d60b9=>this['_createMenuBarMenu'](_0x4d60b9,_0x12f5b7,_0x486a96));}['_createToolbarButton'](_0x3892cc,_0x26e93e,_0x404e4a){const _0x51202a=_0xf588af(_0x3892cc,_0x540529),_0x3d50d9=this['editor']['commands']['get']('trackChanges');_0x51202a['buttonView']['set']({'tooltip':_0x404e4a,'label':_0x404e4a,'icon':_0x2bbe84}),_0x51202a['buttonView']['bind']('isOn')['to'](_0x3d50d9,'value'),_0x51202a['buttonView']['on']('execute',()=>{_0x3d50d9['execute'](),this['editor']['editing']['view']['focus']();}),_0x3e7092(_0x51202a,_0x26e93e,{'role':'menu'});const _0x3508d7=[];for(const _0xccbecc of _0x26e93e)ke(_0xccbecc)&&_0x3508d7['push'](this['editor']['commands']['get'](_0xccbecc['model']['commandName']));const _0x5379ac=_0x51202a['buttonView'];return _0x5379ac['actionView']['unbind']('isEnabled'),_0x5379ac['arrowView']['unbind']('isEnabled'),_0x5379ac['actionView']['bind']('isEnabled')['to'](_0x3d50d9,'isEnabled'),_0x5379ac['arrowView']['bind']('isEnabled')['toMany'](_0x3508d7,'isEnabled',(..._0x45cf36)=>_0x45cf36['some'](_0x196aaf=>_0x196aaf)),_0x51202a['on']('execute',_0x2f3c6b=>{this['editor']['execute'](_0x2f3c6b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x51202a;}['_createMenuBarMenu'](_0x9b02e9,_0x3c96af,_0x2e8358){const _0x16c4f7=new _0x402c46(_0x9b02e9),_0x67442b=this['editor']['commands']['get']('trackChanges');_0x16c4f7['buttonView']['set']({'label':_0x2e8358,'icon':_0x2bbe84});const _0x3bba13=new _0x5a92db(_0x9b02e9);for(const _0x15a9ba of _0x3c96af){if('separator'==_0x15a9ba['type']){_0x3bba13['items']['add'](new _0x2d45ef(_0x9b02e9));continue;}const _0x1b9398=new _0x591776(_0x9b02e9,_0x16c4f7),_0x2c6fc1=new _0x4e41e1(_0x9b02e9),_0x3c1183=_0x15a9ba['model'];_0x2c6fc1['bind'](...Object['keys'](_0x3c1183))['to'](_0x3c1183),_0x2c6fc1['delegate']('execute')['to'](_0x16c4f7),_0x2c6fc1['on']('execute',()=>{this['editor']['execute'](_0x3c1183['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b9398['children']['add'](_0x2c6fc1),_0x3bba13['items']['add'](_0x1b9398);}return _0x16c4f7['bind']('isEnabled')['to'](_0x67442b,'isEnabled'),_0x16c4f7['panelView']['children']['add'](_0x3bba13),_0x16c4f7;}['_initializeController'](_0x213514){const _0x1f64eb=this['editor'],_0xf7e29a=_0x1f64eb['config'],_0x4059a1=_0x1f64eb['plugins']['get']('Annotations'),_0x59cf67=_0x1f64eb['plugins']['get']('CommentsRepository'),_0xfe0a38=_0x1f64eb['plugins']['get']('EditorAnnotations'),_0x46f8f4=_0x1f64eb['plugins']['get'](_0x9e4cfc)['me'],_0x907d3b=_0xf7e29a['get']('trackChanges')['SuggestionThreadView'],_0x1b48bf=_0xf7e29a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1107e8,CommentThreadInputView:_0x3f6dcd}=_0x1f64eb['plugins']['get']('CommentsUI');let _0x57288f,_0x39c661,_0x457680;this['_annotationViews']['has'](_0x213514['id'])?(_0x39c661=this['_annotationViews']['get'](_0x213514['id']),_0x57288f=_0x39c661['mainView']):(_0x57288f=new _0x907d3b(_0x1f64eb['locale'],_0x213514,_0x46f8f4,{'disableComments':this['_disableComments'],'editorConfig':{..._0xf7e29a['get']('comments.editorConfig'),'licenseKey':_0xf7e29a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xf7e29a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xf7e29a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf7e29a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3bd3af(_0xf7e29a['get']('locale'),_0x1f64eb['locale']),'CommentView':_0xf7e29a['get']('comments')['CommentView'],'CommentsListView':_0x1107e8,'CommentThreadInputView':_0x3f6dcd,'SuggestionView':_0x1b48bf}),_0x57288f['suggestionView']['acceptButton']['on']('execute',()=>{_0x1f64eb['editing']['view']['focus']();}),_0x57288f['suggestionView']['discardButton']['on']('execute',()=>{_0x1f64eb['editing']['view']['focus']();}),_0x39c661=_0x4059a1['createAnnotationView'](this['editor']['locale'],_0x57288f),_0x39c661['bind']('isDirty')['to'](_0x57288f,'isDirty'),_0x39c661['bind']('length')['to'](_0x57288f),_0x39c661['bind']('type')['to'](_0x57288f,'type',_0x32db58=>'suggestion-'+_0x32db58),_0x57288f['on']('escape',()=>{_0x457680['fire']('escape');}),this['_annotationViews']['set'](_0x213514['id'],_0x39c661));const _0x1f33b6=_0x59cf67['createCommentThreadController'](_0x213514['commentThread'],_0x57288f),_0x4717f1=new pe(_0x1f64eb,_0x213514,_0x57288f,_0x1f33b6),_0x4051f1=_0x213514['getAllAdjacentSuggestions']()['filter'](_0x282d85=>_0x282d85['isInContent']);_0x57288f['descriptionParts']=_0x1f64eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4051f1),this['_suggestionToController']['set'](_0x213514,_0x4717f1),this['_viewToController']['set'](_0x57288f,_0x4717f1);const _0x319c85=()=>{const _0x15678c=[],_0x24b677=_0x213514['getAllAdjacentSuggestions']()['filter'](_0x435daf=>_0x435daf['isInContent']);for(const _0x27a2f4 of _0x24b677)_0x15678c['push'](..._0x27a2f4['getMarkers']());return _0x4fbd1e(_0x1f64eb['editing'],_0x15678c);};_0x457680=_0x4059a1['createAnnotation']({'view':_0x39c661,'target':_0x319c85,'type':()=>'suggestion-'+_0x4717f1['view']['type'],'isVisible':!!_0x319c85()}),_0x59cf67['_bindAnnotationToEditors'](_0x57288f,_0x457680),_0x4059a1['add'](_0x457680),_0xfe0a38['registerAnnotation'](_0x457680);}['_destroyController'](_0x160d69){const _0x5ccd28=this['editor']['plugins']['get']('CommentsRepository'),_0x50450c=this['editor']['plugins']['get']('Annotations'),_0x41a8fe=this['_suggestionToController']['get'](_0x160d69),_0x503405=_0x41a8fe['view'],_0x50b5c5=_0x50450c['getByInnerView'](_0x503405);_0x5ccd28['_unbindEditors'](_0x503405),_0x50b5c5&&_0x50450c['remove'](_0x50b5c5),this['_suggestionToController']['delete'](_0x160d69),this['_viewToController']['delete'](_0x503405),_0x41a8fe['destroy']();}['_updateController'](_0xb68bb9){if(!_0xb68bb9['isInContent']||!this['_suggestionToController']['has'](_0xb68bb9))return;const _0x409b2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d6f61=this['_suggestionToController']['get'](_0xb68bb9),_0x18d6ae=_0xb68bb9['getAllAdjacentSuggestions']();_0x4d6f61['view']['descriptionParts']=_0x409b2b['descriptionFactory']['getDescriptions'](_0x18d6ae);}['destroy'](){for(const _0x1e012b of this['_suggestionToController']['keys']())this['_destroyController'](_0x1e012b);for(const _0xa4aa10 of this['_annotationViews']['values']())_0xa4aa10['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2d7fa5){return'model'in _0x2d7fa5;}class Fe extends _0xe680e7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x307be8){this['editor']['plugins']['get'](d)['adapter']=_0x307be8;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x390413){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x390413);}['getSuggestions']({skipNotAttached:_0x62d6f6=!0x1,toJSON:_0x12e91d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x62d6f6,'toJSON':_0x12e91d});}['getSuggestion'](_0x56d97f){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x56d97f);}}const p=['Pagination'];class re extends _0xe680e7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x422b52=this['editor'];if(_0x422b52['config']['define']('trackChangesData.editorCreator',_0x22a591=>{const _0x2548ce=_0x422b52['model']['document']['getRootNames']()['reduce']((_0x354236,_0x5a4de6)=>(_0x354236[_0x5a4de6]='',_0x354236),{});return _0x422b52['constructor']['create'](_0x2548ce,_0x22a591);}),'function'!=typeof _0x422b52['config']['get']('trackChangesData')['editorCreator'])throw new _0x56f143('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x9b337c){return P(this['editor'],!0x0,_0x9b337c);}['getDataWithDiscardedSuggestions'](_0x569130){return P(this['editor'],!0x1,_0x569130);}}class Ge extends _0xe680e7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x461ee8){function _0x407c72(_0x2790b6){return _0x2790b6['map'](_0x2629c5=>String['fromCharCode'](_0x2629c5))['join']('');}super(_0x461ee8),this['result']='end',_0x461ee8[_0x407c72([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x407c72([0x76,0x69,0x65,0x77])][_0x407c72([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x407c72([0x61,0x75,0x74,0x6f]),_0x461ee8[_0x407c72([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x407c72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x407c72([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x407c72([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x407c72([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 He(_0x3f9709){return void 0x0!==_0x3f9709['getRootsAttributes'];}async function P(_0x33d10c,_0x3a2d9c,_0x20caeb){const _0x1b7434=_0x19ed98(_0x33d10c,p);_0x1b7434['plugins']['push'](d,Ge),_0x1b7434['rootsAttributes']=He(_0x33d10c)?_0x33d10c['getRootsAttributes']():void 0x0;const _0x4c0fd5=document['createDocumentFragment'](),_0x2ddf2c=_0x33d10c['config']['get']('trackChangesData')['editorCreator'],_0x15c846=await _0x2ddf2c(_0x1b7434,()=>function(_0x2dbf8a){const _0x307171=document['createElement']('div');return _0x2dbf8a['appendChild'](_0x307171),_0x307171;}(_0x4c0fd5));!function(_0xfbec61,_0x39e5a2){const _0x14476d=_0xfbec61['model']['document']['getRootNames']()['reduce']((_0x416782,_0x435a40)=>(_0x416782[_0x435a40]=_0xfbec61['data']['get']({'rootName':_0x435a40}),_0x416782),{}),_0x323f8e=_0xfbec61['plugins']['get']('Users')['users']['map'](_0x145b9c=>({'id':_0x145b9c['id'],'name':_0x145b9c['name']})),_0x5a6dc3=_0xfbec61['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30c887=_0xfbec61['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33c1d1=_0x39e5a2['plugins']['get']('Users'),_0x267f13=_0x39e5a2['plugins']['get']('TrackChangesEditing'),_0x315659=_0x39e5a2['plugins']['get']('CommentsRepository');for(const _0x2aed18 of _0x315659['getCommentThreads']())_0x2aed18['remove']();for(const _0xfd01d of _0x323f8e)_0x33c1d1['getUser'](_0xfd01d['id'])||_0x33c1d1['addUser'](_0xfd01d);_0x33c1d1['me']||_0x33c1d1['useAnonymousUser']();for(const _0x13a53f of _0x30c887)_0x315659['addCommentThread'](_0x13a53f);for(const _0x212e40 of _0x5a6dc3)_0x267f13['addSuggestionData'](_0x212e40);_0x39e5a2['data']['set'](_0x14476d);}(_0x33d10c,_0x15c846),_0x15c846['execute'](_0x3a2d9c?'acceptAllSuggestions':'discardAllSuggestions');const _0x520ce0=He(_0x15c846)?_0x15c846['getFullData'](_0x20caeb):_0x15c846['data']['get'](_0x20caeb);return await _0x15c846['destroy'](),_0x520ce0;}class Me extends _0x434eb5{['options'];constructor(_0x37f050,_0x55bb1a){super(_0x37f050),this['options']=_0x55bb1a,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'](_0x404239,_0x3512d0){if(!this['element'])return;const _0x455926=[];for(const [_0x359ea5,_0x3e73bc]of _0x404239){const _0x3c30f6=document['createElement']('div');_0x3c30f6['setAttribute']('data-ck-root-name',_0x359ea5),_0x3c30f6['className']=_0x3e73bc['classes']+'\x20ck-track-changes-preview__root-container',_0x3c30f6['innerHTML']=_0x3e73bc['content'],_0x455926['push'](_0x3c30f6);}_0x3512d0(this['element'],_0x455926),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x496482{constructor(_0x285384){super(_0x285384),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5144c3=this['editor'],_0xa6cced=_0x5144c3['locale'],_0x50c7e6=_0x5144c3['plugins']['get']('Dialog');let _0x42775e;const _0x347eb2=function(_0x2ca6b2){const _0x24c8e5={};if('editables'in _0x2ca6b2['ui']['view']){for(const [_0xe858d,_0x5ddd12]of Object['entries'](_0x2ca6b2['ui']['view']['editables']))_0x24c8e5[_0xe858d]=_0x5ddd12['element'];}else _0x24c8e5[_0x2ca6b2['model']['document']['getRootNames']()[0x0]]=_0x2ca6b2['ui']['view']['editable']['element'];return _0x24c8e5;}(_0x5144c3),_0x59c639=function(_0x30170e){let _0x50759a=0x0;for(const _0x5c1bd7 of Object['values'](_0x30170e))_0x50759a=Math['max'](_0x50759a,_0x5c1bd7['getBoundingClientRect']()['width']);let _0x2f9ff1=0x0;for(const _0x178916 of Object['values'](_0x30170e))_0x2f9ff1+=_0x178916['getBoundingClientRect']()['height'];const _0x31affb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5a4ab6=Math['min'](_0x2f9ff1,_0x31affb);return{'width':_0x50759a,'height':_0x5a4ab6};}(_0x347eb2);_0x50c7e6['show']({'id':'finalContentPreview','title':o(_0xa6cced,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xa6cced,{'dialogRects':_0x59c639}),'onHide':()=>{_0x42775e['detachFromDom']();},'onShow':()=>{_0x5144c3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2b3d67=>{const _0x43f9bf=this['_standarizeRootsData'](_0x2b3d67,_0x5144c3,_0x347eb2);_0x50c7e6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x43f9bf,_0x5144c3['config']['get']('trackChanges.preview.renderFunction'));}),_0x42775e=new _0x1d3989(_0xa6cced,[_0x50c7e6['view']]),_0x42775e['attachToDom'](),_0x42775e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5144c3['once']('destroy',()=>{_0x42775e['detachFromDom']();});const _0x2b51b0=_0x50c7e6['view']['headerView']['class'];_0x50c7e6['view']['headerView']['class']=_0x2b51b0?_0x2b51b0+'\x20ck-reset_all':'ck-reset_all',_0x50c7e6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x50c7e6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xcb2738=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x36fb4d=_0xcb2738['previewMode'],_0x3132bc={};if('$labels'===_0x36fb4d){for(const _0x2669a7 of _0xcb2738['getMergeFieldsIds']())_0x3132bc[_0x2669a7]=_0xcb2738['getLabel'](_0x2669a7)||_0x2669a7;}else{const _0x13a54f='$defaultValues'===_0x36fb4d?_0xcb2738['getDefaultValues']():_0xcb2738['getDataSetValues'](_0x36fb4d,!0x0);for(const _0x5ed135 of Object['entries'](_0x13a54f)){const [_0x28124b,_0x1f60ec]=_0x5ed135;_0x3132bc[_0x28124b]=null!==_0x1f60ec?_0x1f60ec:_0xcb2738['getLabel'](_0x28124b)||_0x28124b;}}return{'mergeFieldsData':_0x3132bc};}['_standarizeRootsData'](_0x4c62c0,_0x57537a,_0x4e5718){let _0x4fdc46;if('string'==typeof _0x4c62c0){const _0x54b2c5=_0x57537a['model']['document']['getRootNames']()[0x0];_0x4fdc46={[_0x54b2c5]:_0x4c62c0};}else _0x4fdc46=_0x4c62c0;const _0x4bf23b=this['_fixMediaEmbeds'](_0x4fdc46,_0x57537a),_0x1a60d8=function(_0x47111d,_0x16006d){for(const [_0x2a58c8,_0x30af0f]of _0x47111d)_0x30af0f['classes']=_0x16006d[_0x2a58c8]['classList']['value']['replace']('ck-focused','');return _0x47111d;}(this['_sortRoots'](_0x57537a)['reduce']((_0x54ca2a,_0x47d593)=>(_0x54ca2a['push']([_0x47d593,{'content':_0x4bf23b[_0x47d593],'classes':''}]),_0x54ca2a),[]),_0x4e5718);return _0x1a60d8;}['_fixMediaEmbeds'](_0x1018c4,_0x41e692){if(!_0x41e692['plugins']['has']('MediaEmbedEditing'))return _0x1018c4;const _0x279246=_0x41e692['plugins']['get']('MediaEmbedEditing');for(const [_0x405bf9,_0x443237]of Object['entries'](_0x1018c4)){const _0x51e263=document['createElement']('div');_0x51e263['innerHTML']=_0x443237,(_0x51e263['querySelectorAll']('figure.media')['forEach'](_0x1ab7fa=>{const _0x3812a7=_0x1ab7fa['querySelector']('oembed');if(_0x3812a7){const _0xa15434=_0x3812a7['getAttribute']('url');if(_0xa15434){const _0x42ac88=_0x279246['registry']['getMediaViewElement'](new _0xdc0055(_0x41e692['editing']['view']['document']),_0xa15434,{'elementName':'','renderForEditingView':!0x0}),_0x5b9365=document['createElement']('div');_0x5b9365['classList']['add']('ck-media__wrapper'),_0x42ac88['render'](_0x5b9365,_0x41e692['editing']['view']['domConverter']),_0x3812a7['replaceWith'](_0x5b9365);}}}),_0x1018c4[_0x405bf9]=_0x51e263['innerHTML']);}return _0x1018c4;}['_sortRoots'](_0x173bc3){if(!function(_0xc16843){return void 0x0!==_0xc16843['getRootsAttributes'];}(_0x173bc3))return _0x173bc3['model']['document']['getRootNames']();const _0x11f572=[],_0x1b53f9=new Map();for(const _0x3a5c99 of _0x173bc3['model']['document']['getRootNames']()){const _0x298580=_0x173bc3['editing']['view']['getDomRoot'](_0x3a5c99)['getClientRects']()['item'](0x0);_0x11f572['push'](_0x3a5c99),_0x1b53f9['set'](_0x3a5c99,_0x298580);}return _0x11f572['sort']((_0x4b2d4a,_0x49b542)=>{const _0xf8647d=_0x1b53f9['get'](_0x4b2d4a),_0x41580e=_0x1b53f9['get'](_0x49b542);return _0xf8647d['y']-_0x41580e['y']||_0xf8647d['x']-_0x41580e['x'];}),_0x11f572;}}class $e extends _0xe680e7{static get['requires'](){return[re,_0x3ec4d3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4811be){super(_0x4811be),_0x4811be['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4811be['config']['define']('trackChanges.preview.renderFunction',(_0x36d175,_0x5d760a)=>{for(const _0x56ffa9 of _0x5d760a)_0x36d175['appendChild'](_0x56ffa9);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|