@ckeditor/ckeditor5-collaboration-core 47.7.0-alpha.4 → 47.7.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/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0xc5ed8,Editor as _0x2056fb,Plugin as _0x400641}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1008d5,Collection as _0x61322d,uid as _0x22a9cb,toArray as rt,first as _0x2ff7bb,FocusTracker as _0x3b8190,KeystrokeHandler as _0xd851cf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0xe54118,IconView as st,ButtonView as ts,DropdownButtonView as _0x14abf0,FocusCycler as _0x30deae,isViewWithFocusCycler as _0x4e9b28}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as ct,IconCheck as _0x138842,IconCancel as _0x253983}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as it,toWidget as _0x430c5d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x3ebcb8,MoveOperation as _0x36bb2f,ModelPosition as _0x816e35,ModelRange as _0x2b05c1,MarkerOperation as _0x31c580,MergeOperation as _0x2842bd,SplitOperation as _0x305667,RenameOperation as _0x418001,AttributeOperation as _0x100ebf,ModelTreeWalker as _0x2e4c85,ModelText as _0x316047}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x5f2cd9}from'diff';class C extends _0xc5ed8{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x2b7f44,_0x44a7bc){let _0x226c6a;if(_0x44a7bc||(_0x44a7bc=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x44a7bc?_0x226c6a=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x226c6a=this['context']['editors']['find'](_0x1a6b00=>_0x1a6b00['config']['get']('collaboration.channelId')==_0x44a7bc)),!_0x226c6a)throw new _0x1008d5('permissions-set-permissions-invalid-channel-id',null);const _0x270cce=_0x226c6a['plugins'],_0x2c4ad7=_0x270cce['has']('CommentsRepository')?_0x270cce['get']('CommentsRepository'):void 0x0,_0x5c80da=_0x270cce['has']('CommentsOnly')&&_0x270cce['get']('CommentsOnly'),_0xc77448=_0x2b7f44['includes']('document:write'),_0x5388fc=_0x2b7f44['includes']('comment:modify_all'),_0x247a71=_0x2b7f44['includes']('comment:admin'),_0x1f1b4e=_0x2b7f44['includes']('comment:write'),_0xcf38a9=_0x1f1b4e||_0x247a71,_0x40295e=_0xcf38a9||_0x5388fc,_0x26ce18=_0xc77448||_0xcf38a9;(_0x5c80da&&(_0x5c80da['isEnabled']=!_0xc77448&&_0x40295e),_0x226c6a instanceof _0x2056fb)&&(!(_0xc77448||_0x40295e&&_0x2c4ad7)?_0x226c6a['enableReadOnlyMode']('no-permissions'):_0x226c6a['disableReadOnlyMode']('no-permissions'));if(_0x2c4ad7){_0x2c4ad7['setPermissions']({'admin':_0x247a71,'modifyAll':_0x5388fc,'write':_0x1f1b4e,'resolve':_0x26ce18},_0x44a7bc);const _0xe5b4af=_0x226c6a instanceof _0x2056fb&&_0x226c6a['commands']['get']('addCommentThread');_0xe5b4af&&(_0xcf38a9?_0xe5b4af['clearForceDisabled']('noPermissions'):_0xe5b4af['forceDisabled']('noPermissions'));}}}function U(_0x47c73f,_0x35a8bd){const t=_0x47c73f['t'];switch(_0x35a8bd){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class at extends _0xc5ed8{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}constructor(_0x349ffb){super(_0x349ffb),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x61322d(),this['_locale']=_0x349ffb['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x26c0bf,name:_0x30856b,..._0x15412a}){if(!_0x26c0bf||'string'!=typeof _0x26c0bf)throw new _0x1008d5('users-add-invalid-id');if(this['users']['has'](_0x26c0bf))throw new _0x1008d5('users-add-duplicated-id',null,{'id':_0x26c0bf});const _0x44e8b5=this['context']['config']['get']('users.getInitialsCallback'),_0x1066b7={..._0x15412a,'id':_0x26c0bf,'name':A(this['_locale'],_0x30856b),'color':this['_getNextColor']()};_0x1066b7['name']=A(this['_locale'],_0x1066b7['name']);const _0x3d12b4=new lt(_0x1066b7,_0x44e8b5);return this['users']['add'](_0x3d12b4),_0x3d12b4;}['getUser'](_0x36f2de){return this['users']['get'](_0x36f2de);}['useAnonymousUser'](){const _0x2e25e8=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x2e25e8);}['defineMe'](_0x18917e){if(this['_myId'])throw new _0x1008d5('users-me-already-defined',null);const _0x2babd2=this['getUser'](_0x18917e);if(!_0x2babd2)throw new _0x1008d5('users-me-missing-user',null);this['_myId']=_0x18917e,_0x2babd2['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x167046=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x167046&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x34b3f3=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x34b3f3,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x404a97,_0x511056){this['id']=_0x404a97['id'],this['color']=_0x404a97['color'],this['name']=_0x404a97['name'],this['initials']=_0x511056?_0x511056(this['name']):this['_computeInitials'](),this['avatar']=_0x404a97['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x3eb804=this['name']['split']('\x20')['filter'](_0x258bb2=>/^[\p{Letter}]/u['test'](_0x258bb2));return 0x1===_0x3eb804['length']?this['_getInitial'](_0x3eb804[0x0]):0x0===_0x3eb804['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x3eb804[0x0])+this['_getInitial'](_0x3eb804[_0x3eb804['length']-0x1]);}['_getInitial'](_0x44e1cb){return String['fromCodePoint'](_0x44e1cb['codePointAt'](0x0))['toUpperCase']();}}function A(_0x375ef2,_0x5b6994=''){return''==(_0x5b6994=_0x5b6994['trim']())?U(_0x375ef2,'Anonymous'):_0x5b6994;}class ut{['_id'];constructor(_0x453c07){this['_id']=_0x453c07;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class ht extends _0xe54118{['name'];['notificationView'];constructor(_0x3e3ab5,_0x59c0ef,_0x1cf486){super(_0x3e3ab5),this['name']=_0x59c0ef['name'],this['notificationView']=null;const _0x339122=['ck','ck-user'],_0x17e638=['ck','ck-user__img'];if(_0x59c0ef['isAnonymous']&&_0x17e638['push']('ck-user__anonymous'),!_0x59c0ef['isAnonymous']&&_0x59c0ef['isMe']&&_0x339122['push']('ck-user_me'),_0x59c0ef['avatar']&&_0x17e638['push']('ck-user__avatar'),_0x1cf486){const _0x594835=new st();_0x594835['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x594835['content']=ct,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x1cf486},'children':[_0x594835]};}const _0x2a2283=[{'tag':'div','attributes':{'class':_0x17e638,'style':{'background-image':_0x59c0ef['avatar']?'url(\x27'+_0x59c0ef['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x59c0ef['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x59c0ef['name']},'children':[{'text':_0x59c0ef['initials']}]}];this['notificationView']&&_0x2a2283['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x339122,'data-user-id':_0x59c0ef['id']},'children':_0x2a2283});}}class dt extends _0xe54118{['id'];constructor(_0x3ab307,_0x2e52e5){super(_0x3ab307),this['id']='ck-aria-description-'+_0x22a9cb(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x2e52e5}]});}}class ft extends ts{['render'](){super['render'](),re(this);}}class gt extends _0x14abf0{['render'](){super['render'](),re(this);}}function re(_0x56fafb){_0x56fafb['listenTo'](_0x56fafb['element'],'mousedown',(_0x1c23ed,_0x1dc341)=>{_0x1dc341['stopPropagation'](),_0x1dc341['preventDefault']();}),_0x56fafb['listenTo'](_0x56fafb['element'],'mouseup',()=>{_0x56fafb['element']['focus']();});}function v(_0x3712ac){const _0x580c0c=_0x3712ac['split'](':');return{'group':_0x580c0c[0x0],'type':_0x580c0c[0x1],'subType':_0x580c0c['length']>=0x5?_0x580c0c[0x2]:null,'id':_0x580c0c['length']<0x5?_0x580c0c[0x2]:_0x580c0c[0x3],'authorId':_0x580c0c['length']<0x5?_0x580c0c[0x3]:_0x580c0c[0x4],'markerCount':0x6==_0x580c0c['length']?_0x580c0c[0x5]:null};}function mt(_0x441cc2,_0x298153){const _0x3e69da=_0x441cc2['end']['nodeBefore'];if(_0x3e69da&&_0x3e69da['is']('element')&&_0x298153['schema']['isBlock'](_0x3e69da)&&!_0x298153['schema']['isObject'](_0x3e69da)){const _0x11d0b8=_0x298153['createPositionAt'](_0x3e69da,'end');return _0x298153['createRange'](_0x441cc2['start'],_0x11d0b8);}return _0x441cc2;}class M extends _0x400641{['afterInit'](){const _0x1d7c4c=this['editor'];if(!_0x1d7c4c['plugins']['has']('AlignmentEditing'))return;_0x1d7c4c['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x400641{['afterInit'](){const _0x46274d=this['editor'],_0x2cd2df=_0x46274d['plugins']['get']('SuggestionsConversion');for(const _0x173b86 of ii){if(!_0x46274d['plugins']['has'](_0x173b86))continue;const _0x1a1759=_0x173b86['slice'](0x0,-0x7)['toLowerCase']();_0x2cd2df['registerInlineAttribute'](_0x1a1759);}}}class I extends _0x400641{['afterInit'](){const _0x395cef=this['editor'],_0x211380=_0x395cef['plugins']['get']('SuggestionsConversion');_0x395cef['plugins']['has']('BookmarkEditing')&&_0x211380['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x400641{['afterInit'](){const _0x1b2693=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x5e6521,commandName:_0x14a26a}of no)this['editor']['plugins']['has'](_0x5e6521)&&_0x1b2693['registerInlineAttribute'](_0x14a26a);}}class T extends _0x400641{['afterInit'](){const {editor:_0x162570}=this;if(!_0x162570['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x2a6dfb=_0x162570['plugins']['get']('SuggestionsConversion');_0x2a6dfb['registerBlockAttribute']('footnotesListStyle'),_0x2a6dfb['registerBlockAttribute']('footnotesListStart');}}class E extends _0x400641{['afterInit'](){const _0x28ea46=this['editor'];if(!_0x28ea46['plugins']['has']('HighlightEditing'))return;_0x28ea46['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class S extends _0x400641{['afterInit'](){const _0x50d623=this['editor'];if(!_0x50d623['plugins']['has']('HtmlEmbed'))return;_0x50d623['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class $ extends _0x400641{['afterInit'](){const _0x3ece97=this['editor'];if(!_0x3ece97['plugins']['has']('ImageEditing'))return;const _0x54ba33=_0x3ece97['plugins']['get']('SuggestionsConversion');_0x54ba33['registerBlockAttribute']('src'),_0x3ece97['plugins']['has']('ImageResize')&&_0x54ba33['registerBlockAttribute']('resizedWidth'),_0x3ece97['plugins']['has']('ImageTextAlternativeEditing')&&_0x54ba33['registerBlockAttribute']('alt'),_0x3ece97['plugins']['has']('PictureEditing')&&_0x54ba33['registerBlockAttribute']('sources'),_0x3ece97['plugins']['has']('ImageSizeAttributes')&&(_0x54ba33['registerBlockAttribute']('width'),_0x54ba33['registerBlockAttribute']('height'));}}class x extends _0x400641{['afterInit'](){const _0x89e00e=this['editor'],_0x527d2c=_0x89e00e['plugins']['get']('SuggestionsConversion');_0x89e00e['plugins']['has']('IndentBlock')&&(_0x527d2c['registerBlockAttribute']('blockIndent'),_0x89e00e['plugins']['has']('ListEditing')&&(_0x527d2c['registerBlockAttribute']('blockIndentList'),_0x527d2c['registerBlockAttribute']('blockIndentListItem')));}}class H extends _0x400641{['afterInit'](){const _0x44bb7a=this['editor'];if(!_0x44bb7a['plugins']['has']('LineHeight'))return;_0x44bb7a['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class N extends _0x400641{['afterInit'](){const _0x38c21d=this['editor'];if(!_0x38c21d['plugins']['has']('LinkEditing'))return;const _0x3e50f8=_0x38c21d['plugins']['get']('SuggestionsConversion'),_0xc3625c=_0x38c21d['commands']['get']('link');_0x3e50f8['registerInlineAttribute']('linkHref');for(const _0x5b9949 of _0xc3625c['manualDecorators'])_0x3e50f8['registerInlineAttribute'](_0x5b9949['id']);}}class P extends _0x400641{['afterInit'](){const _0x186927=this['editor'];if(!_0x186927['plugins']['has']('ListEditing'))return;const _0x3e7951=_0x186927['plugins']['get']('SuggestionsConversion'),_0x210987=_0x186927['plugins']['has']('TodoListEditing');_0x3e7951['registerBlockAttribute']('listItemId'),_0x3e7951['registerBlockAttribute']('listType'),_0x3e7951['registerBlockAttribute']('listIndent'),_0x210987&&_0x3e7951['registerBlockAttribute']('todoListChecked');}}class K extends _0x400641{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xace798=this['editor']['config']['get']('list.properties'),_0x2d90aa=this['editor']['plugins']['get']('SuggestionsConversion');_0xace798['styles']&&_0x2d90aa['registerBlockAttribute']('listStyle'),_0xace798['reversed']&&_0x2d90aa['registerBlockAttribute']('listReversed'),_0xace798['startIndex']&&_0x2d90aa['registerBlockAttribute']('listStart');}}class q extends _0x400641{['afterInit'](){const _0x1b1dc2=this['editor'],_0x49187d=_0x1b1dc2['plugins']['get']('SuggestionsConversion');_0x1b1dc2['plugins']['has']('MultiLevelList')&&_0x49187d['registerBlockAttribute']('listMarkerStyle');}}class z extends _0x400641{['afterInit'](){const _0x442417=this['editor'];if(!_0x442417['plugins']['has']('Style')||!_0x442417['plugins']['has']('DataSchema')||!_0x442417['config']['get']('style.definitions'))return;const _0x13a3e4=_0x442417['plugins']['get']('SuggestionsConversion'),_0x17484b=_0x442417['config']['get']('style.definitions'),_0x494081=_0x442417['plugins']['get']('GeneralHtmlSupport'),_0x543db7=_0x442417['plugins']['get']('StyleUtils')['normalizeConfig'](_0x442417['plugins']['get']('DataSchema'),_0x17484b),_0x2e99c5=new Set();for(const _0x1c4e10 of _0x543db7['block']){const _0x12db47=_0x494081['getGhsAttributeNameForElement'](_0x1c4e10['element']);_0x2e99c5['add'](_0x12db47);}const _0x3e9a05=new Set();for(const _0x345f32 of _0x543db7['inline']){const _0x3aecbb=_0x494081['getGhsAttributeNameForElement'](_0x345f32['element']);_0x3e9a05['add'](_0x3aecbb);for(const _0xb67d0a of _0x345f32['ghsAttributes'])_0x3e9a05['add'](_0xb67d0a);}for(const _0x1eb7f4 of _0x2e99c5)_0x13a3e4['registerBlockAttribute'](_0x1eb7f4);for(const _0x9d956 of _0x3e9a05)_0x13a3e4['registerInlineAttribute'](_0x9d956);}}class O extends _0x400641{['afterInit'](){const _0x467dbd=this['editor'];if(!_0x467dbd['plugins']['has']('TableEditing'))return;const _0x5e0876=_0x467dbd['plugins']['get']('SuggestionsConversion');_0x5e0876['registerBlockAttribute']('headingRows'),_0x5e0876['registerBlockAttribute']('headingColumns');}}class R extends _0x400641{['afterInit'](){const {plugins:_0x557f80}=this['editor'];if(!_0x557f80['has']('TablePropertiesEditing'))return;const _0x52e420=_0x557f80['get']('SuggestionsConversion'),_0x291b4c=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x55b278 of _0x291b4c)_0x52e420['registerBlockAttribute'](_0x55b278);}}class F extends _0x400641{['afterInit'](){const _0x57247b=this['editor'],_0x3e1609=_0x57247b['plugins']['get']('SuggestionsConversion');_0x57247b['plugins']['has']('TableLayout')&&_0x3e1609['registerBlockAttribute']('tableType');}}class G extends _0x400641{['afterInit'](){const _0x5df65f=this['editor'],_0x467da3=this['editor']['plugins']['get']('SuggestionsConversion');_0x5df65f['plugins']['has']('Uploadcare')&&_0x5df65f['plugins']['has']('UploadcareImageEdit')&&_0x467da3['registerBlockAttribute']('uploadcareImageId');}}class J extends _0x400641{['afterInit'](){const _0x499880=this['editor'];if(!_0x499880['plugins']['has']('ShiftEnter'))return;const _0x1bd316=_0x499880['plugins']['get']('SuggestionsConversion'),_0x1b7cd0=(_0x4e82c3,_0x134835,_0x5df2c6,_0x3e5909)=>{if(_0x3e5909&&!_0x5df2c6['options']['showSuggestionHighlights'])return;if(!_0x5df2c6['consumable']['test'](_0x134835['markerRange'],_0x4e82c3['name']))return;const _0x4588f3=_0x499880['model'];for(const _0x59159a of _0x134835['markerRange']['getItems']()){if(!_0x59159a['is']('element','softBreak'))continue;const _0x1fe16='deletion'==_0x134835['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1e9bac,authorId:_0x6eb239}=v(_0x134835['markerName']),_0x52c0e7=_0x5df2c6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fe16,'data-suggestion':_0x1e9bac,'data-author-id':_0x6eb239}),_0x3312a7=_0x5df2c6['mapper']['toViewPosition'](_0x4588f3['createPositionBefore'](_0x59159a));!_0x3e5909&&_0x1bd316['_activeMarkers']['includes'](_0x134835['markerName'])&&_0x5df2c6['writer']['addClass']('ck-suggestion-marker--active',_0x52c0e7),_0x5df2c6['writer']['insert'](_0x3312a7,_0x52c0e7),_0x5df2c6['mapper']['bindElementToMarker'](_0x52c0e7,_0x134835['markerName']);}};_0x499880['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2065ae,_0x4ab153,_0x52b609)=>{_0x1b7cd0(_0x2065ae,_0x4ab153,_0x52b609,!0x1);},{'priority':'high'}),_0x499880['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38384d,_0x5a4b5e,_0x295078)=>{_0x1b7cd0(_0x38384d,_0x5a4b5e,_0x295078,!0x0);},{'priority':'high'});}}class L extends _0x400641{['afterInit'](){const _0x490abb=this['editor'];_0x490abb['plugins']['has']('MediaEmbedEditing')&&(_0x490abb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4999ff,{writer:_0x3c1094,options:_0x4a3a2b})=>{if(_0x4a3a2b['showSuggestionHighlights'])return _0x3c1094['createEmptyElement']('div');},'converterPriority':'high'}),_0x490abb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1fea33,_0x49ab58,_0x5eb2ea)=>{_0x5eb2ea['options']['showSuggestionHighlights']&&_0x1fea33['stop']();},{'priority':'high'}));}}class Q extends _0x400641{['afterInit'](){const _0x1623f7=this['editor'];if(!_0x1623f7['plugins']['has']('Table'))return;_0x1623f7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x186f61,_0x45a924,_0x549228)=>{((_0x42d34f,_0x1ed470,_0x325edf)=>{if(!_0x325edf['options']['showSuggestionHighlights'])return;const _0x5614db=_0x1ed470['item'];if(!_0x5614db||!_0x5614db['is']('element','tableCell'))return;const _0x3ee3bc=_0x325edf['mapper']['toViewElement'](_0x5614db);if(_0x3ee3bc){const {id:_0x322ac2,authorId:_0x5a3159}=v(_0x1ed470['markerName']);it(_0x3ee3bc,_0x325edf['writer'],(_0x2f14bd,_0x399035,_0x4aff17)=>{_0x4aff17['addClass'](rt(_0x399035['classes']),_0x2f14bd),_0x4aff17['setAttribute']('data-suggestion-id',_0x322ac2,_0x2f14bd),_0x4aff17['setAttribute']('data-author-id',_0x5a3159,_0x2f14bd);});}})(0x0,_0x45a924,_0x549228);},{'priority':'highest'});}}class V extends _0x400641{['afterInit'](){const _0x55b449=this['editor'];_0x55b449['plugins']['has']('HorizontalLineEditing')&&_0x55b449['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3bef9a,{writer:_0x90469c,options:_0x273ab9})=>{if(!_0x273ab9['showSuggestionHighlights'])return null;const _0x2361ea=_0x90469c['createContainerElement']('div'),_0x2cc6ad=_0x90469c['createEmptyElement']('hr');return _0x90469c['addClass']('ck-horizontal-line',_0x2361ea),_0x90469c['insert'](_0x90469c['createPositionAt'](_0x2361ea,0x0),_0x2cc6ad),_0x2361ea;},'converterPriority':'high'});}}class W extends _0x400641{['afterInit'](){const {plugins:_0x450217,model:_0x36bd27}=this['editor'];if(!_0x450217['has']('TableCellPropertiesEditing'))return;const _0x8141b0=_0x450217['get']('SuggestionsConversion'),_0x5248eb=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x4cf73f of _0x5248eb)_0x8141b0['registerBlockAttribute'](_0x4cf73f);_0x36bd27['schema']['checkAttribute']('tableCell','tableCellType')&&_0x8141b0['registerBlockAttribute']('tableCellType');}}class kt extends _0x400641{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[M,D,I,B,T,E,V,S,$,x,H,N,P,K,L,q,J,z,Q,O,F,W,R,G];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2d85e4=this['editor'],_0x22a92a=(_0x9ed45b,_0x3445f8,_0x12f476)=>{const {id:_0x51e67e,authorId:_0x19b0de,type:_0x304ef3,subType:_0x52964a}=v(_0x9ed45b['markerName']),_0x44868d=['ck-suggestion-marker',this['_getClassName'](_0x304ef3,_0x52964a)];let _0x287d65=0xbb8;return!_0x12f476&&(this['_activeMarkers']['includes'](_0x9ed45b['markerName'])&&(_0x44868d['push']('ck-suggestion-marker--active'),_0x287d65=0xbc2)),('deletion'==_0x304ef3&&(_0x287d65+=0x5),{'classes':_0x44868d,'attributes':{'data-suggestion':_0x51e67e,'data-author-id':_0x19b0de},'priority':_0x287d65});};_0x2d85e4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b581c,_0x6c5a97)=>_0x22a92a(_0x4b581c,0x0,!0x1)}),_0x2d85e4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x49bc02,_0x4cc5d6)=>_0x22a92a(_0x49bc02,0x0,!0x0)}),_0x2d85e4['conversion']['for']('dataDowncast')['add'](_0x218bbe=>{_0x218bbe['on']('addMarker:suggestion',(_0x3be505,_0x585eb9,_0x4ed13d)=>{if(!_0x4ed13d['options']['showSuggestionHighlights'])return;const _0x4b5c04=_0x585eb9['item'];if(!_0x4b5c04)return;const _0xaef735=_0x4ed13d['mapper']['toViewElement'](_0x4b5c04);_0x2d85e4['model']['schema']['isObject'](_0x4b5c04)&&_0xaef735&&!_0xaef735['getCustomProperty']('widget')&&_0xaef735['is']('containerElement')&&_0x430c5d(_0xaef735,_0x4ed13d['writer']);},{'priority':'high'});});const _0x5468c7=(_0x2d9c0c,_0x3009ac,_0x36094c,_0x27d92a,_0x1a643e)=>{if(_0x27d92a&&!_0x36094c['options']['showSuggestionHighlights'])return;if(!_0x3009ac['item'])return;const {id:_0x4c17ae,authorId:_0xb5ba75,subType:_0x3ea4ff}=v(_0x3009ac['markerName']);if(_0x1a643e){const _0x1beb17=_0x3ea4ff['split']('|')[0x0];if(!this['isBlockAttribute'](_0x1beb17))return;}if(_0x3009ac['item']['is']('selection'))return void _0x36094c['consumable']['consume'](_0x3009ac['item'],_0x2d9c0c['name']);const _0x126056=_0x36094c['mapper']['toViewElement'](_0x3009ac['item']);if(_0x3009ac['item']['is']('element')&&_0x2d85e4['model']['schema']['isBlock'](_0x3009ac['item'])&&!_0x126056['getCustomProperty']('addHighlight')){_0x36094c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x126056),_0x36094c['writer']['setAttribute']('data-suggestion',_0x4c17ae,_0x126056),_0x36094c['writer']['setAttribute']('data-author-id',_0xb5ba75,_0x126056),_0x36094c['mapper']['bindElementToMarker'](_0x126056,_0x3009ac['markerName']),_0x27d92a||(this['_activeMarkers']['includes'](_0x3009ac['markerName'])?_0x36094c['writer']['addClass']('ck-suggestion-marker--active',_0x126056):_0x36094c['writer']['removeClass']('ck-suggestion-marker--active',_0x126056));for(const _0x4f3b0b of _0x2d85e4['model']['createRangeIn'](_0x3009ac['item'])['getItems']())_0x36094c['consumable']['consume'](_0x4f3b0b,_0x2d9c0c['name']);_0x36094c['consumable']['consume'](_0x3009ac['item'],_0x2d9c0c['name']);}},_0x359183=(_0x2e5e4c,_0x17b915,_0x43c35a,_0x972536)=>{const _0x207750=_0x43c35a['mapper']['markerNameToElements'](_0x17b915['markerName']);if(_0x207750){if(_0x972536){const {subType:_0x2c2a18}=v(_0x17b915['markerName']),_0x182cae=_0x2c2a18['split']('|')[0x0];if(!this['isBlockAttribute'](_0x182cae))return;}for(const _0x3a67f1 of _0x207750)_0x3a67f1['getCustomProperty']('addHighlight')||(_0x43c35a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3a67f1),_0x43c35a['writer']['removeAttribute']('data-suggestion',_0x3a67f1),_0x43c35a['writer']['removeAttribute']('data-author-id',_0x3a67f1),_0x43c35a['mapper']['unbindElementFromMarkerName'](_0x3a67f1,_0x17b915['markerName']));}};_0x2d85e4['conversion']['for']('editingDowncast')['add'](_0x7da78c=>{_0x7da78c['on']('addMarker:suggestion:formatBlock',(_0xdcf4c7,_0x327eb4,_0x3254fd)=>{_0x5468c7(_0xdcf4c7,_0x327eb4,_0x3254fd,!0x1,!0x1);},{'priority':'high'});}),_0x2d85e4['conversion']['for']('editingDowncast')['add'](_0x59594b=>{_0x59594b['on']('addMarker:suggestion:attribute',(_0x29fbcf,_0x2768c5,_0x4ea866)=>{_0x5468c7(_0x29fbcf,_0x2768c5,_0x4ea866,!0x1,!0x0);},{'priority':'high'});}),_0x2d85e4['conversion']['for']('editingDowncast')['add'](_0xcb0730=>{_0xcb0730['on']('removeMarker:suggestion:formatBlock',(_0x27905f,_0xfea7df,_0x1cbcdd)=>{_0x359183(0x0,_0xfea7df,_0x1cbcdd,!0x1);},{'priority':'high'});}),_0x2d85e4['conversion']['for']('editingDowncast')['add'](_0x5b44e3=>{_0x5b44e3['on']('removeMarker:suggestion:attribute',(_0x36daf0,_0x4d09a9,_0x39b87c)=>{_0x359183(0x0,_0x4d09a9,_0x39b87c,!0x0);},{'priority':'high'});}),_0x2d85e4['conversion']['for']('dataDowncast')['add'](_0x20feef=>{_0x20feef['on']('addMarker:suggestion:formatBlock',(_0x5ef912,_0xa51fec,_0x147cc8)=>{_0x5468c7(_0x5ef912,_0xa51fec,_0x147cc8,!0x0,!0x1);},{'priority':'highest'});}),_0x2d85e4['conversion']['for']('dataDowncast')['add'](_0x1108ce=>{_0x1108ce['on']('addMarker:suggestion:attribute',(_0x2d416a,_0x1b9530,_0x5b307b)=>{_0x5468c7(_0x2d416a,_0x1b9530,_0x5b307b,!0x0,!0x0);},{'priority':'highest'});}),_0x2d85e4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2e5526,_0x2854f2)=>{if(_0x2854f2['options']['showSuggestionHighlights']){const {id:_0x40255d,authorId:_0x1a45be}=v(_0x2e5526);return _0x2e5526['includes'](':split')||_0x2e5526['includes'](':merge')?{'group':'suggestion','name':_0x2e5526['substr'](0xb),'attributes':{'data-suggestion':_0x40255d,'data-author-id':_0x1a45be}}:null;}return{'group':'suggestion','name':_0x2e5526['substr'](0xb)};}});const _0x1cda57=(_0x5009fd,_0x45da1a,_0x5c08ad,_0xa49275,_0x472706)=>{if(_0xa49275&&!_0x5c08ad['options']['showSuggestionHighlights'])return;if(!_0x5c08ad['consumable']['test'](_0x45da1a['markerRange'],_0x5009fd['name']))return;const _0x2af7dc=this['_activeMarkers'],_0x1f0915=_0x45da1a['markerRange']['getWalker'](),_0x1a9d76=_0x45da1a['markerRange']['start'],_0x4f4782=_0x2d85e4['model']['schema'];let _0x4d050b=null,_0x4e4d15=null,_0x5ce941=!0x1,_0x2c87ea=!0x1;for(const _0xe2dfc3 of _0x1f0915){const _0x29af90=_0xe2dfc3['item'];_0x5ce941=_0x5ce941||_0x4f4782['isContent'](_0x29af90);const _0xabb691=_0x5c08ad['mapper']['toViewElement'](_0x29af90);if(_0xabb691&&_0xabb691['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe2dfc3['type']&&(_0x4f4782['isBlock'](_0x29af90)&&!_0x4f4782['isLimit'](_0x29af90)&&(_0x29af90['nextSibling']||_0x1a9d76['isAtEnd']?_0x4d050b&&_0x4d050b['parent']==_0x29af90||(_0x4d050b=_0x29af90,_0x559f31(_0xe2dfc3['previousPosition']),_0x2c87ea=!0x0):_0x4e4d15=_0x4e4d15||_0xe2dfc3['previousPosition']));}function _0x559f31(_0xcd39f0){const {id:_0x1e94c4,authorId:_0x8b6db8}=v(_0x45da1a['markerName']),_0x573b93=_0x5c08ad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x472706,'data-suggestion':_0x1e94c4,'data-author-id':_0x8b6db8}),_0x53e324=_0x5c08ad['mapper']['toViewPosition'](_0xcd39f0);!_0xa49275&&_0x2af7dc['includes'](_0x45da1a['markerName'])&&_0x5c08ad['writer']['addClass']('ck-suggestion-marker--active',_0x573b93),_0x5c08ad['writer']['insert'](_0x53e324,_0x573b93),_0x5c08ad['mapper']['bindElementToMarker'](_0x573b93,_0x45da1a['markerName']);}_0x5ce941||_0x2c87ea||!_0x4e4d15||_0x559f31(_0x4e4d15);};_0x2d85e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1bfd5f,_0x733910,_0x285e5a)=>{_0x1cda57(_0x1bfd5f,_0x733910,_0x285e5a,!0x1,'merge');},{'priority':'high'}),_0x2d85e4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4f5610,_0x444905,_0x5cbf4f)=>{_0x1cda57(_0x4f5610,_0x444905,_0x5cbf4f,!0x0,'merge');},{'priority':'high'}),_0x2d85e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x58ed47,_0x4edf6c,_0x8c8abf)=>{_0x1cda57(_0x58ed47,_0x4edf6c,_0x8c8abf,!0x1,'split');},{'priority':'high'}),_0x2d85e4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2549dc,_0x1b5387,_0x589ec9)=>{_0x1cda57(_0x2549dc,_0x1b5387,_0x589ec9,!0x0,'split');},{'priority':'high'}),_0x2d85e4['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2f01fd,_0x7059b,_0x27674a)=>{((_0x1c09e7,_0xdb6278,_0x14945e)=>{const _0x46ce07=_0x14945e['mapper']['markerNameToElements'](_0xdb6278['markerName']);if(_0x46ce07){for(const _0x2d9042 of _0x46ce07)(_0x2d9042['hasClass']('ck-suggestion-marker-split')||_0x2d9042['hasClass']('ck-suggestion-marker-merge'))&&(_0x14945e['mapper']['unbindElementFromMarkerName'](_0x2d9042,_0xdb6278['markerName']),_0x14945e['writer']['remove'](_0x2d9042));}})(0x0,_0x7059b,_0x27674a);},{'priority':'high'});const _0x328de6=(_0x5a9731,_0x4e7dea,_0x6b5bd6,_0x20ae59)=>{if(_0x20ae59&&!_0x6b5bd6['options']['showSuggestionHighlights'])return;const _0x24a986=_0x4e7dea['markerRange']['start'],_0x3a53fc=_0x4e7dea['markerRange']['end'],_0x439b34=_0x2d85e4['model']['schema'];if(!_0x24a986['isTouching'](_0x3a53fc)||!_0x24a986['nodeAfter'])return;const _0xc8f542=_0x24a986['nodeAfter'];if(_0x439b34['isBlock'](_0xc8f542)&&!_0x439b34['isLimit'](_0xc8f542)&&_0x439b34['checkChild'](_0xc8f542,'$text')){if(!_0x6b5bd6['consumable']['consume'](_0x4e7dea['markerRange'],_0x5a9731['name']))return;const {id:_0x592876,authorId:_0x371b14}=v(_0x4e7dea['markerName']),_0x1d2a2a=_0x6b5bd6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x592876,'data-author-id':_0x371b14}),_0x4509df=_0x6b5bd6['mapper']['toViewPosition'](_0x3a53fc);!_0x20ae59&&this['_activeMarkers']['includes'](_0x4e7dea['markerName'])&&_0x6b5bd6['writer']['addClass']('ck-suggestion-marker--active',_0x1d2a2a),_0x6b5bd6['writer']['insert'](_0x4509df,_0x1d2a2a),_0x6b5bd6['mapper']['bindElementToMarker'](_0x1d2a2a,_0x4e7dea['markerName']);}};_0x2d85e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f0980,_0xe8eead,_0x224580)=>{_0x328de6(_0x5f0980,_0xe8eead,_0x224580,!0x1);},{'priority':'high'}),_0x2d85e4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x581b70,_0x541d16,_0x3da4eb)=>{_0x328de6(_0x581b70,_0x541d16,_0x3da4eb,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x100c3d,_0x11a808,_0x289fd8)=>{this['_activeMarkers']=_0x289fd8['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x347924){this['_blockAttributeKeys']['add'](_0x347924);}['registerInlineAttribute'](_0x402006){this['_inlineAttributeKeys']['add'](_0x402006);}['isBlockAttribute'](_0x3adf7c){return this['_blockAttributeKeys']['has'](_0x3adf7c);}['isInlineAttribute'](_0x2b2468){return this['_inlineAttributeKeys']['has'](_0x2b2468);}['isRegisteredAttribute'](_0x5d54fa){return this['isInlineAttribute'](_0x5d54fa)||this['isBlockAttribute'](_0x5d54fa);}['_getClassName'](_0x45cedd,_0x3de027){if('attribute'!=_0x45cedd)return'ck-suggestion-marker-'+_0x45cedd;const _0x6fb421=_0x3de027['split']('|')[0x0];return this['isBlockAttribute'](_0x6fb421)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x4d528c={},_0x25307d){if(void 0x0!==_0x4d528c['dateTimeFormat']&&'function'!=typeof _0x4d528c['dateTimeFormat'])throw new _0x1008d5('invalid-date-time-format');return _0x2546c8=>{const _0x278a00='string'==typeof _0x2546c8?tt['fromISO'](_0x2546c8):tt['fromJSDate'](_0x2546c8),_0x4a0f1a=tt['now'](),_0x1b5241=Math['floor'](_0x4a0f1a['diff'](_0x278a00,'days')['days']);return _0x4d528c['dateTimeFormat']?_0x4d528c['dateTimeFormat'](_0x278a00['toJSDate'](),_0x25307d&&_0x25307d['t']?_0x25307d['t']:void 0x0):0x0===_0x1b5241?_0x25307d?U(_0x25307d,'Today')+'\x20'+_0x278a00['toFormat']('hh:mma'):_0x278a00['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x1b5241?_0x25307d?U(_0x25307d,'Yesterday')+'\x20'+_0x278a00['toFormat']('hh:mma'):_0x278a00['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x1b5241<0x7?_0x25307d?U(_0x25307d,'Last')+'\x20'+U(_0x25307d,_0x278a00['toFormat']('EEEE'))+'\x20'+_0x278a00['toFormat']('hh:mma'):_0x278a00['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x278a00['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x23ec3e,_0x457093){const _0x218e5f=_0x23ec3e['mapper']['markerNameToElements'](_0x457093['name']);if(!_0x218e5f)return null;const _0x23169a=_0x2ff7bb(_0x218e5f['values']());return _0x23ec3e['view']['domConverter']['mapViewToDom'](_0x23169a)||null;}function wt(_0x270029,_0x4742dd){if(0x0===_0x4742dd['length'])return null;const _0x13c97f=[],_0x1b40aa=_0x270029['view']['domConverter'];for(const _0x3fcf0b of _0x4742dd){const _0x1c68e8=_0x270029['mapper']['markerNameToElements'](_0x3fcf0b['name']);if(!_0x1c68e8)continue;const _0x5a793c=Array['from'](_0x1c68e8)['map'](_0x5e1988=>_0x1b40aa['mapViewToDom'](_0x5e1988))['filter'](_0x22ddce=>!!_0x22ddce);_0x13c97f['push'](..._0x5a793c);}if(0x0===_0x13c97f['length'])return null;const _0x542ca8=[];for(const _0xba1308 of _0x13c97f){const _0x11314e=_0xba1308['getClientRects']()['item'](0x0);_0x11314e&&_0x542ca8['push']({'x':_0x11314e['x'],'y':_0x11314e['y'],'domElement':_0xba1308});}return 0x0===_0x542ca8['length']?null:(_0x542ca8['sort']((_0x5ac521,_0x1a706d)=>_0x5ac521['y']-_0x1a706d['y']||_0x5ac521['x']-_0x1a706d['x']),_0x542ca8['map'](_0x4c3b14=>_0x4c3b14['domElement']));}function bt(_0x29c04f,{limit:_0x534406,suffix:_0x271457='...'}){const _0x365845=[];let _0x2de86f=0x0;const _0x4cd10a=_0x29c04f['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x27660b=0x0;_0x27660b<_0x4cd10a['length'];_0x27660b++){let _0x2e0c72=_0x4cd10a[_0x27660b];const _0x4c4778=tn(_0x2e0c72);if(_0x2e0c72['startsWith']('<')){if(_0x2de86f>=_0x534406){const _0x13a68a=_0x2e0c72['match'](/[a-zA-Z]+/);if(!_0x13a68a){_0x4cd10a[_0x27660b]='';continue;}const _0x235622=_0x13a68a[0x0];_0x2e0c72['startsWith']('</')?(_0x365845['length']&&(_0x2e0c72=''),_0x365845['pop']()):(_0x365845['push'](_0x235622),_0x2e0c72='');}}else{if(_0x2de86f>=_0x534406)_0x2e0c72='';else{if(_0x2de86f+_0x4c4778['length']>=_0x534406){let _0x2a58b9=_0x534406-_0x2de86f;if('\x20'===_0x4c4778[_0x2a58b9-0x1])_0x2a58b9--;else{const _0x2e5b36=_0x4c4778['slice'](_0x2a58b9)['indexOf']('\x20');-0x1!==_0x2e5b36?_0x2a58b9+=_0x2e5b36:_0x2a58b9=_0x2e0c72['length'];}_0x2e0c72=_0x4c4778['slice'](0x0,_0x2a58b9)['join']('')+_0x271457,_0x2de86f=_0x534406;}else _0x2de86f+=_0x4c4778['length'];}}_0x4cd10a[_0x27660b]=_0x2e0c72;}return _0x4cd10a['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x2a2bf4){const _0x45cb5e=[];for(let _0x42ada5=0x0;_0x42ada5<_0x2a2bf4['length'];_0x42ada5++){const _0xa2b957=_0x2a2bf4['substring'](_0x42ada5)['match'](/^&[a-z0-9#]+;/);if(_0xa2b957){const _0x1ca6b9=_0xa2b957[0x0];_0x45cb5e['push'](_0x1ca6b9),_0x42ada5+=_0x1ca6b9['length']-0x1;}else _0x45cb5e['push'](_0x2a2bf4[_0x42ada5]);}return _0x45cb5e;}class X extends _0xe54118{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x1945f4){super(_0x1945f4);const _0x40590e=this['bindTemplate'];this['set']('message',U(_0x1945f4,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x1945f4,U(_0x1945f4,'Yes'),_0x138842,'submit'),this['cancelView']=this['_createButtonView'](_0x1945f4,U(_0x1945f4,'No'),_0x253983,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x3b8190(),this['keystrokes']=new _0xd851cf(),this['focusCycler']=new _0x30deae({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x40590e['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x4766ae,_0x4008a9,_0x13330d,_0x192caf){const _0x4b69e5=new ts(_0x4766ae);return _0x4b69e5['label']=_0x4008a9,_0x4b69e5['icon']=_0x13330d,_0x4b69e5['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x192caf}}),_0x4b69e5['on']('execute',()=>this['fire'](_0x192caf)),_0x4b69e5;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x2e1629=>{this['keystrokes']['listenTo'](_0x2e1629['element']),this['focusTracker']['add'](_0x2e1629['element']);}),this['keystrokes']['set']('esc',(_0x56df34,_0x5f07c5)=>{this['fire']('cancel'),_0x5f07c5();});}}function vt(_0x28aa0f){return class extends _0x28aa0f{['showConfirm'](_0x3b1f19,_0x5cd459){return this['confirmView']=new X(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x3b1f19,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x5cd459['appendChild'](this['confirmView']['element']),_0x5cd459['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0xb6475c,_0xcf92b1,_0x457d3e)=>{_0x457d3e||_0x5cd459['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x1f7d2a=>this['confirmView']['on']('submit',_0x1f7d2a));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function k(_0xf4021f){let _0x50055f=0x0,_0x5c031d=0x0;for(const _0x3a9922 of ne(_0xf4021f))_0x50055f=(_0x50055f<<0x5)-_0x50055f+_0x3a9922,_0x50055f&=_0x50055f,[_0x50055f,_0x5c031d]=[_0x5c031d,_0x50055f];return ie(_0x50055f)+ie(_0x5c031d);}function*ee(_0x47aa87){null==_0x47aa87||null==_0x47aa87?yield 0x12b9b0a1:0x0===_0x47aa87||!0x1===_0x47aa87?yield 0x0:0x1===_0x47aa87||0x1==_0x47aa87?yield 0x1:Array['isArray'](_0x47aa87)?yield*function*(_0x53267e){for(const _0x1265c8 of _0x53267e)yield*ee(_0x1265c8);}(_0x47aa87):'object'==typeof _0x47aa87?yield*ne(_0x47aa87):'string'==typeof _0x47aa87?yield*oe(_0x47aa87):'number'==typeof _0x47aa87&&(yield _0x47aa87);}function*ne(_0x38415c){if(yield te('{'),_0x38415c){const _0x2a7375=Object['keys'](_0x38415c)['sort']();for(const _0x4a7851 of _0x2a7375){yield*oe(_0x4a7851),yield te(':');const _0x1fa31b=_0x38415c[_0x4a7851];yield*ee(_0x1fa31b);}}yield te('}');}function*oe(_0x1d5260){yield te('\x22');for(const _0x4b2144 of _0x1d5260)yield te(_0x4b2144);yield te('\x22');}function te(_0x1574f3){return _0x1574f3['charCodeAt'](0x0);}function ie(_0x16638d){return(_0x16638d*=Math['sign'](_0x16638d))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0xacc082,_0x21190e,_0x629478,_0x32fb6d=[]){const _0x296148='string'==typeof _0xacc082?_0x629478['get'](_0xacc082)['constructor']:_0xacc082['prototype']['constructor'];if(_0x21190e['has'](_0x296148))return _0x21190e['get'](_0x296148);_0x21190e['set'](_0x296148,!0x0);const _0x2380a3=[...et,..._0x32fb6d]['map'](_0xd297a3=>{if(_0x629478['has'](_0xd297a3))return _0x629478['get'](_0xd297a3)['constructor'];})['filter'](_0x539f39=>_0x539f39);if(_0x296148&&_0x2380a3['includes'](_0x296148))return _0x21190e['set'](_0x296148,!0x1),!0x1;if(!_0x296148['requires'])return _0x21190e['set'](_0x296148,!0x0),!0x0;const _0x3fd271=_0x296148['requires']['every'](_0xcf7f24=>ot(_0xcf7f24,_0x21190e,_0x629478,_0x32fb6d));return _0x21190e['set'](_0x296148,_0x3fd271),_0x3fd271;}function Ct(_0x1b12d8,_0x3d465d){const _0x193d8f={};for(const _0x4e3659 of _0x1b12d8['config']['names']())nt['includes'](_0x4e3659)||(_0x193d8f[_0x4e3659]=_0x1b12d8['config']['get'](_0x4e3659));const _0x4680ba=_0x193d8f['plugins']||[],_0x55e3d1=_0x1b12d8['constructor']['builtinPlugins']||[],_0x5f502f=_0x4680ba['length']?_0x4680ba:_0x55e3d1,_0x38ba2d=_0x193d8f['extraPlugins']||[];delete _0x193d8f['extraPlugins'];const _0x4f5cbd=_0x193d8f['removePlugins']||[];delete _0x193d8f['removePlugins'];const _0x304235=_0x1b12d8['_context']['config']['get']('plugins')||[],_0x167fb6=_0x5f502f['concat'](_0x38ba2d)['concat'](_0x304235)['map'](_0x1e0f7a=>'string'==typeof _0x1e0f7a?_0x55e3d1['find'](_0x4fcd7b=>_0x4fcd7b['pluginName']==_0x1e0f7a):_0x1e0f7a)['filter'](_0x3679f9=>!_0x4f5cbd['includes'](_0x3679f9)&&!_0x4f5cbd['includes'](_0x3679f9['pluginName'])),_0xb99ab1=Array['from'](new Set(_0x167fb6)),_0x42fd96=new Map();return _0x193d8f['plugins']=_0xb99ab1['filter'](_0x241320=>ot(_0x241320,_0x42fd96,_0x1b12d8['plugins'],_0x3d465d)),_0x193d8f;}function xt(_0x861fde,_0x550524){const _0x4b7ec5=[];_0x861fde['document']['selection']['on']('change:range',()=>{const _0x2cc885=function(_0x455384,_0x3e6ab3){const _0x3c66a3=[];for(const _0x47c7be of _0x455384['markers']){const _0x533848=_0x47c7be['getRange']();(_0x533848['containsPosition'](_0x3e6ab3)||_0x533848['start']['isEqual'](_0x3e6ab3)||_0x533848['end']['isEqual'](_0x3e6ab3))&&_0x3c66a3['push'](_0x47c7be);}return _0x3c66a3;}(_0x861fde,_0x861fde['document']['selection']['focus']),_0x4b37e9=[],_0x59eb8d=[],_0x231950=[];for(const _0x1d4c00 of _0x4b7ec5)_0x2cc885['includes'](_0x1d4c00)||_0x4b37e9['push'](_0x1d4c00);for(const _0xc100dc of _0x2cc885)_0x4b7ec5['includes'](_0xc100dc)||_0x59eb8d['push'](_0xc100dc),_0x231950['push'](_0xc100dc);(_0x4b37e9['length']||_0x59eb8d['length'])&&_0x550524({'left':_0x4b37e9,'entered':_0x59eb8d}),_0x4b7ec5['length']=0x0,_0x4b7ec5['push'](..._0x231950);});}const It='Ctrl+Shift+E';function _t(_0x3adb06,_0x48db5f){const _0x280fb5=_0x3adb06['element'];_0x3adb06['keystrokes']['listenTo'](_0x280fb5);for(const _0x4b441d of _0x48db5f)ro(_0x3adb06,_0x4b441d);_0x48db5f['on']('change',(_0xaf5f3b,_0x3e8e81)=>{for(const _0x4208c6 of _0x3e8e81['removed'])to(_0x3adb06,_0x4208c6);for(const _0x5942e5 of Array['from'](_0x3e8e81['added'])['reverse']())ro(_0x3adb06,_0x5942e5);}),_0x3adb06['keystrokes']['set']('enter',(_0x1fc383,_0x2ca981)=>{_0x280fb5===_0x1fc383['target']&&(_0x3adb06['focusCycler']['focusFirst'](),_0x2ca981());},{'filter':_0x4a9017=>_0x4a9017['target']===_0x280fb5}),_0x3adb06['keystrokes']['set']('esc',(_0x431d46,_0x384fff)=>{_0x280fb5!==_0x431d46['target']?_0x3adb06['focus']():_0x3adb06['fire']('escape'),_0x384fff();}),_0x3adb06['keystrokes']['set']('arrowdown',(_0x28f848,_0x189965)=>{_0x280fb5===_0x28f848['target']&&(_0x3adb06['fire']('arrowdown'),_0x189965());}),_0x3adb06['keystrokes']['set']('arrowup',(_0x3338dc,_0x19dddc)=>{_0x280fb5===_0x3338dc['target']&&(_0x3adb06['fire']('arrowup'),_0x19dddc());});}function ro(_0x14db56,_0x5b5c20){_0x5b5c20['isRendered']&&(_0x14db56['focusTracker']['add'](_0x5b5c20['element']),_0x14db56['keystrokes']['listenTo'](_0x5b5c20['element']),_0x4e9b28(_0x5b5c20)&&function(_0x5d2504,_0x504681){const _0x2f57bf=_0x5d2504['actions'],_0x3ddd09=_0x504681['actions'];for(const _0x18b592 of Object['keys'](_0x2f57bf))if(_0x18b592 in _0x3ddd09&&_0x2f57bf[_0x18b592]!==_0x3ddd09[_0x18b592])return!0x1;return!0x0;}(_0x14db56['focusCycler'],_0x5b5c20['focusCycler'])&&_0x14db56['focusCycler']['chain'](_0x5b5c20['focusCycler']));}function to(_0x190dfe,_0x1ddc26){_0x190dfe['focusTracker']['remove'](_0x1ddc26['element']),_0x190dfe['keystrokes']['stopListening'](_0x1ddc26['element']),_0x4e9b28(_0x1ddc26)&&_0x190dfe['focusCycler']['unchain'](_0x1ddc26['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0xc5ed8{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x2056fb?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x48aaad,_0x1ed167)=>{_0x1ed167['on']('ready',()=>{this['_integrateEditor'](_0x1ed167);});});}get['editor'](){if(this['context']instanceof _0x2056fb)return this['context'];{const _0x3ec63f=this['context']['editors']['first'];if(!_0x3ec63f)throw new _0x1008d5('documentcompare-no-editor',this);return _0x3ec63f;}}['getDiff'](_0x3b1253,_0x2821a1,_0x41a4ed={'anchor':'main','markDeletions':!0x1}){let _0x3fcdd7,_0x11f5b7;const _0x2e2603=this['editor'];if('string'==typeof _0x41a4ed['anchor']){const _0x2e2114=_0x2e2603['model']['document']['getRoot'](_0x41a4ed['anchor']);if(!_0x2e2114)throw new _0x1008d5('documentcompare-compare-no-root',this,{'anchor':_0x41a4ed['anchor']});_0x3fcdd7=_0x2e2114,_0x11f5b7=_0x2e2603['model']['createPositionAt'](_0x2e2114,0x0);}else _0x3fcdd7=_0x41a4ed['anchor']['clone'](),_0x11f5b7=_0x41a4ed['anchor']['clone']();const _0x207b75=_0x2e2603['data']['parse'](_0x3b1253,_0x3fcdd7),_0x2fda9c=_0x2e2603['data']['parse'](_0x2821a1,_0x3fcdd7);return new Mt(_0x207b75,_0x2fda9c,_0x2e2603,{'anchor':_0x11f5b7,'markDeletions':_0x41a4ed['markDeletions']});}['isMarkedRemoveOperation'](_0x35d101){return'marker'==_0x35d101['type']&&_0x35d101['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x20617b){_0x20617b['conversion']['for']('upcast')['add'](_0x4d3a2f=>{_0x4d3a2f['on']('element',(_0x31ee91,_0x15aa10,_0x2ec437)=>{if(_0x15aa10['modelRange'])for(const _0x590ecf of _0x15aa10['modelRange']['getItems']({'shallow':!0x0})){if(_0x590ecf['is']('$textProxy'))continue;const _0x4cce0e=_0x15aa10['viewItem']['getAttribute'](Et);_0x4cce0e&&_0x2ec437['writer']['setAttribute'](St,_0x4cce0e,_0x590ecf);}},{'priority':'lowest'});}),_0x20617b['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x1ba4d0,_0x360dd0,_0xad0b85,_0x738342){this['_editor']=_0xad0b85,this['_markDeletions']=!!_0x738342['markDeletions'],this['_anchor']=_0x738342['anchor'];const _0x35dff9=this['_tokenizeModel'](_0x1ba4d0),_0x21ebc1=this['_tokenizeModel'](_0x360dd0);this['_diffItems']=this['_diffModelTokens'](_0x35dff9,_0x21ebc1),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x1ba4d0['markers'],_0x360dd0['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x40321f=this['_editor']['model']['document'],_0x177e5d=[];let _0x3036ed=_0x40321f['version'];for(const _0x2f21e3 of this['_operationsData'])switch(_0x2f21e3['type']){case'attribute':{const _0x63340d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2f21e3['path']),_0x460c81=_0x63340d['getShiftedBy'](_0x2f21e3['howMany']),_0x3b3a72=new _0x2b05c1(_0x63340d,_0x460c81),_0x2b1254=JSON['parse'](_0x2f21e3['oldValue']),_0x273f2a=JSON['parse'](_0x2f21e3['newValue']);_0x177e5d['push'](new _0x100ebf(_0x3b3a72,_0x2f21e3['key'],_0x2b1254,_0x273f2a,_0x3036ed++));break;}case'insert':{const _0x1bf574=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2f21e3['path']),_0x1c1073=this['_makeModelFromTokens'](_0x2f21e3['tokens']);_0x177e5d['push'](new _0x3ebcb8(_0x1bf574,_0x1c1073,_0x3036ed++));break;}case'remove':{const _0x2e7580=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2f21e3['path']),_0x32a981=new _0x816e35(_0x40321f['graveyard'],[0x0]);_0x177e5d['push'](new _0x36bb2f(_0x2e7580,_0x2f21e3['howMany'],_0x32a981,_0x3036ed++));break;}case'rename':{const _0x29a6b7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2f21e3['path']);_0x177e5d['push'](new _0x418001(_0x29a6b7,_0x2f21e3['oldName'],_0x2f21e3['newName'],_0x3036ed++));break;}case'split':{const _0x43292c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2f21e3['path']),_0x51a511=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2f21e3['path']['slice'](0x0,-0x1));_0x51a511['offset']++,_0x177e5d['push'](new _0x305667(_0x43292c,Number['NEGATIVE_INFINITY'],_0x51a511,null,_0x3036ed++));break;}case'merge':{const _0x54307b=_0x2f21e3['path']['slice'](),_0x178936=_0x54307b['slice'](0x0,-0x1);_0x178936[_0x178936['length']-0x1]++,_0x178936['push'](0x0);const _0x4de3d5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x178936),_0x28b878=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x54307b),_0x226363=new _0x816e35(_0x40321f['graveyard'],[0x0]);_0x177e5d['push'](new _0x2842bd(_0x4de3d5,Number['NEGATIVE_INFINITY'],_0x28b878,_0x226363,_0x3036ed++));break;}case'marker':case'markedRemove':{let _0x129f36=null;if(_0x2f21e3['range']){const _0x4feb15=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2f21e3['range']['start']),_0x3df93e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2f21e3['range']['end']);_0x129f36=new _0x2b05c1(_0x4feb15,_0x3df93e);}const _0x27615d='marker'==_0x2f21e3['type']?_0x2f21e3['name']:'$markedRemove:'+_0x22a9cb();_0x177e5d['push'](new _0x31c580(_0x27615d,null,_0x129f36,_0x40321f['model']['markers'],!0x0,_0x3036ed++));break;}case'unwrap':{const _0x6bf898=_0x2f21e3['path']['slice']();_0x6bf898['push'](0x0);const _0x213488=_0x2f21e3['path']['slice'](),_0x3d1d2c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x6bf898),_0x33b15b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x213488),_0x4d1b4e=new _0x816e35(_0x40321f['graveyard'],[0x0]);_0x177e5d['push'](new _0x36bb2f(_0x3d1d2c,_0x2f21e3['howMany'],_0x33b15b,_0x3036ed++)),_0x177e5d['push'](new _0x36bb2f(_0x33b15b['getShiftedBy'](_0x2f21e3['howMany']),0x1,_0x4d1b4e,_0x3036ed++));break;}case'wrap':{const _0x3d2cbb=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2f21e3['range']['start']),_0xe209cc=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2f21e3['range']['end']),_0x4e5eab=_0x2f21e3['token']['element']['_clone'](!0x1),_0x15554c=_0x2f21e3['range']['end']['slice']();_0x15554c['push'](0x0);const _0xdf4176=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x15554c);_0x177e5d['push'](new _0x3ebcb8(_0xe209cc,_0x4e5eab,_0x3036ed++)),_0x177e5d['push'](new _0x36bb2f(_0x3d2cbb,_0xe209cc['offset']-_0x3d2cbb['offset'],_0xdf4176,_0x3036ed++));break;}}return _0x177e5d;}['_tokenizeModel'](_0x5c0936){const _0x10fa65=[],_0x4ee37c=_0x2b05c1['_createIn'](_0x5c0936),_0xb2a384=new _0x2e4c85({'boundaries':_0x4ee37c});let _0x1ff393='',_0x2d5d85=null;const _0x3f8ff0=[''],_0x4aa2c8=new Map();for(const _0x2dd7b5 of _0xb2a384)if('elementStart'==_0x2dd7b5['type']||'elementEnd'==_0x2dd7b5['type']){let _0x1a5a2b=_0x3f8ff0[0x0];''!==_0x1ff393&&(_0x10fa65['push'](...this['_makeTokensFromTextByWords'](_0x1ff393,_0x2d5d85,_0x1a5a2b)),_0x1ff393='');const _0x7f53a3=_0x2dd7b5['item'];let _0x505b52;_0x7f53a3['getAttribute'](St)?_0x505b52=_0x7f53a3['getAttribute'](St):'elementStart'==_0x2dd7b5['type']?(_0x505b52=_(_0x7f53a3),_0x4aa2c8['set'](_0x7f53a3,_0x505b52)):_0x505b52=_0x4aa2c8['get'](_0x7f53a3);const _0x3d8e61=this['_getElementCategory'](_0x7f53a3);'solid'==_0x3d8e61&&('elementStart'==_0x2dd7b5['type']?(_0x1a5a2b=_0x505b52,_0x3f8ff0['unshift'](_0x1a5a2b)):_0x3f8ff0['shift']());const _0x3bcea5={'type':'element','element':_0x7f53a3,'elementId':_0x505b52,'category':_0x3d8e61,'isStart':'elementStart'==_0x2dd7b5['type'],'limitId':_0x1a5a2b};_0x10fa65['push'](_0x3bcea5);}else''==_0x1ff393&&(_0x2d5d85=_0x2dd7b5['previousPosition']['clone']()),_0x1ff393+=_0x2dd7b5['item']['data'];return''!==_0x1ff393&&_0x10fa65['push'](...this['_makeTokensFromTextByWords'](_0x1ff393,_0x2d5d85,_0x3f8ff0[0x0])),_0x10fa65;}['_makeTokensFromTextByWords'](_0x1036a2,_0x3820dd,_0x43d011){const _0x3bd5ed=_0x1036a2['matchAll'](/(\s)/g),_0x312f3a=Array['from'](_0x3bd5ed)['map'](_0x87ddd8=>_0x87ddd8['index']);_0x312f3a['push'](_0x1036a2['length']),0x0==_0x312f3a[0x0]&&_0x312f3a['shift']();const _0x1e913d=[],_0x2a1132=_0x3820dd['parent'];let _0x455bae=0x0,_0x529b6d=_0x3820dd['offset'];for(let _0x2526e0=0x0;_0x2526e0<_0x312f3a['length'];_0x2526e0++)_0x1e913d['push']({'type':'text','data':_0x1036a2['slice'](_0x455bae,_0x312f3a[_0x2526e0]),'parent':_0x2a1132,'offset':_0x529b6d,'limitId':_0x43d011}),_0x455bae=_0x312f3a[_0x2526e0],_0x529b6d=_0x3820dd['offset']+_0x312f3a[_0x2526e0];return _0x1e913d;}['_getElementCategory'](_0x5cd355){const _0xa4f4a1=this['_editor']['model']['schema'];return _0xa4f4a1['isLimit'](_0x5cd355)||_0xa4f4a1['isContent'](_0x5cd355)||_0xa4f4a1['isInline'](_0x5cd355)?'solid':_0xa4f4a1['isBlock'](_0x5cd355)?'block':'container';}['_diffModelTokens'](_0x1e509b,_0x1cc68b){const _0x52c2fd=_0x5f2cd9(_0x1e509b,_0x1cc68b,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x52c2fd);const _0x38b178=_0x52c2fd['flatMap'](_0x544c0f=>{const _0x5e6409=_0x544c0f['added']?'added':_0x544c0f['removed']?'removed':'unchanged';return _0x544c0f['value']['map'](_0x1236fa=>({'token':_0x1236fa,'change':_0x5e6409}));});let _0x44d868=0x0;for(const _0x22fd81 of _0x38b178)'added'!=_0x22fd81['change']&&('unchanged'==_0x22fd81['change']&&(_0x22fd81['before']=_0x1e509b[_0x44d868]),_0x44d868++);return _0x38b178;}['_handleUnclosedBlockOpeningTags'](_0x5cf295){for(let _0x4cb6f2=0x0;_0x4cb6f2<_0x5cf295['length']-0x1;_0x4cb6f2++)if(_0x5cf295[_0x4cb6f2]['removed']&&_0x5cf295[_0x4cb6f2+0x1]['added']){const _0x133d7b=this['_findUnclosedBlockOpeningToken'](_0x5cf295[_0x4cb6f2]['value']);if(null!==_0x133d7b){const _0x5bd967=this['_findUnclosedBlockOpeningToken'](_0x5cf295[_0x4cb6f2+0x1]['value']),_0x318330=_0x5cf295[_0x4cb6f2]['value']['splice'](_0x133d7b),_0x4ba3fb=_0x5cf295[_0x4cb6f2+0x1]['value']['splice'](_0x5bd967),_0x1888cc=[_0x4ba3fb['shift']()];_0x318330['shift']();const _0x5ad364={'value':_0x318330,'removed':!0x0},_0x24473f={'value':_0x4ba3fb,'added':!0x0},_0x342769={'value':_0x1888cc};_0x5cf295['splice'](_0x4cb6f2+0x2,0x0,_0x342769,_0x5ad364,_0x24473f);}}}['_findUnclosedBlockOpeningToken'](_0x1b7b6d){let _0x40d4b2=0x0,_0x405e28=-0x1;for(let _0x2cc4fd=0x0;_0x2cc4fd<_0x1b7b6d['length'];_0x2cc4fd++){const _0x5ae184=_0x1b7b6d[_0x2cc4fd];'element'==_0x5ae184['type']&&'block'==_0x5ae184['category']&&(_0x40d4b2+=_0x5ae184['isStart']?0x1:-0x1,_0x5ae184['isStart']&&(_0x405e28=_0x2cc4fd));}return 0x0===_0x40d4b2?null:_0x405e28;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x23e20b=0x0;_0x23e20b<this['_diffItems']['length'];_0x23e20b++){const _0x1ece76=this['_diffItems'][_0x23e20b]['change'],_0x117fca=[];_0x117fca['push'](this['_diffItems'][_0x23e20b]);let _0x2becc7=_0x23e20b+0x1;for(;this['_diffItems'][_0x2becc7]&&this['_diffItems'][_0x2becc7]['change']==_0x1ece76;)_0x117fca['push'](this['_diffItems'][_0x2becc7]),_0x2becc7++,_0x23e20b++;const _0x363993=_0x117fca['map'](_0x4000df=>_0x4000df['token']);if('unchanged'==_0x1ece76)_0x117fca['map'](_0x23c6ff=>_0x23c6ff['before'])['forEach'](_0x1d6665=>this['_traverseOverItem'](_0x1d6665));else{if('removed'==_0x1ece76){if(this['_markDeletions']){const _0x5638f5=this['_path']['slice']();_0x363993['forEach'](_0x176d44=>this['_traverseOverItem'](_0x176d44));const _0x1cac01=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x5638f5,'end':_0x1cac01}});}else this['_handleChanged'](_0x363993,!0x0,this['_path']['slice']());}else{const _0xefd655=_0x363993['filter'](_0x1a591e=>'element'!=_0x1a591e['type']||'container'!=_0x1a591e['category']);this['_handleChanged'](_0xefd655,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xd15dba=0x0;_0xd15dba<this['_diffItems']['length'];_0xd15dba++){const _0x296b5f=this['_diffItems'][_0xd15dba]['change'],_0x32896d=[];_0x32896d['push'](this['_diffItems'][_0xd15dba]);let _0x7aa87a=_0xd15dba+0x1;for(;this['_diffItems'][_0x7aa87a]&&this['_diffItems'][_0x7aa87a]['change']==_0x296b5f;)_0x32896d['push'](this['_diffItems'][_0x7aa87a]),_0x7aa87a++,_0xd15dba++;const _0x455252=_0x32896d['map'](_0x2555cb=>_0x2555cb['token']);if('unchanged'==_0x296b5f){const _0x25934b=_0x32896d['map'](_0x3582c8=>_0x3582c8['before']);this['_handleUnchanged'](_0x25934b,_0x455252);}else('removed'!=_0x296b5f||this['_markDeletions'])&&_0x455252['forEach'](_0x3ed9cc=>{this['_traverseOverItem'](_0x3ed9cc);});}}['_calculateMarkersOperationsData'](_0x556f15,_0x3545d5){const _0x2b87f5={};for(const [_0x3f8419]of _0x556f15)_0x2b87f5[_0x3f8419]=null;for(const [_0x4173ae,_0x3ca357]of _0x3545d5)_0x2b87f5[_0x4173ae]=_0x3ca357;const _0x4ef33c=Object['entries'](_0x2b87f5)['map'](([_0x41ff69,_0x505f5a])=>({'type':'marker','name':_0x41ff69,'range':_0x505f5a?{'start':_0x505f5a['start']['path']['slice'](),'end':_0x505f5a['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x4ef33c);}['_handleUnwraps'](){const _0x4c46b9=new Map(),_0x714a18=[],_0x4f083b=[0x0];let _0x563c7a=this['_diffItems']['length']+0x1;for(let _0x35f962=this['_diffItems']['length']-0x1;_0x35f962>=0x0;_0x35f962--){const {token:_0x2acd8c,before:_0x4b9f2c,change:_0x47d6b6}=this['_diffItems'][_0x35f962];if('removed'!=_0x47d6b6&&(_0x563c7a=_0x35f962),'element'!=_0x2acd8c['type']||'container'!=_0x2acd8c['category']||'added'==_0x47d6b6)continue;const _0x597e7c=_0x4b9f2c?_0x4b9f2c['element']:_0x2acd8c['element'];if(_0x2acd8c['isStart']){const _0x3ad0ef=_0x4c46b9['get'](_0x597e7c),_0x546efa=this['_diffItems'][_0x3ad0ef];('removed'==_0x47d6b6||'removed'==_0x546efa['change'])&&_0x563c7a<_0x3ad0ef&&(this['_operationsData']['push']({'type':'unwrap','path':_0x597e7c['getPath'](),'howMany':_0x597e7c['maxOffset']+_0x4f083b[0x0]}),_0x4f083b['shift'](),_0x4f083b[0x0]+=_0x597e7c['maxOffset']-0x1,_0x714a18['push'](_0x35f962),_0x714a18['push'](_0x3ad0ef));}else _0x4c46b9['set'](_0x597e7c,_0x35f962),_0x4f083b['unshift'](0x0);}_0x714a18['sort']((_0x3274bc,_0x2e8690)=>_0x2e8690-_0x3274bc),_0x714a18['forEach'](_0x147b4a=>{const _0x26110d=this['_diffItems'][_0x147b4a];'removed'==_0x26110d['change']?this['_diffItems']['splice'](_0x147b4a,0x1):(_0x26110d['change']='added',delete _0x26110d['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5b21e5=[];for(let _0x440604=0x0;_0x440604<this['_diffItems']['length'];_0x440604++){const {change:_0x41e7ed,token:_0x4692d0}=this['_diffItems'][_0x440604];if('added'==_0x41e7ed&&'element'==_0x4692d0['type']&&'container'==_0x4692d0['category']){if(_0x4692d0['isStart'])_0x5b21e5['push'](this['_path']['slice']());else{if(!_0x4692d0['isStart']){const _0x78f6f5=_0x5b21e5['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x78f6f5,'end':this['_path']['slice']()},'token':_0x4692d0}),this['_path'][this['_path']['length']-0x1]=_0x78f6f5[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x41e7ed||this['_markDeletions'])&&this['_traverseOverItem'](_0x4692d0);}}['_handleUnchanged'](_0x192c86,_0x557ff1){for(let _0x4c24bb=0x0;_0x4c24bb<_0x192c86['length'];_0x4c24bb++){const _0x35be10=_0x192c86[_0x4c24bb];if('element'==_0x35be10['type']&&_0x35be10['isStart']){const _0x26d807=_0x557ff1[_0x4c24bb];'block'==_0x35be10['category']&&this['_handleElementRename'](_0x35be10['element'],_0x26d807['element'],this['_path']),this['_handleElementAttributeChanges'](_0x35be10['element'],_0x26d807['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x26d807);}else{if('element'!=_0x35be10['type']||_0x35be10['isStart']){if('text'==_0x35be10['type']){const _0x47e67a=this['_path']['slice'](),_0x4e1c11=[],_0x594637=[];for(;_0x192c86[_0x4c24bb]&&'text'==_0x192c86[_0x4c24bb]['type'];)_0x4e1c11['push'](_0x192c86[_0x4c24bb]),_0x594637['push'](_0x557ff1[_0x4c24bb]),this['_path'][this['_path']['length']-0x1]+=_0x192c86[_0x4c24bb]['data']['length'],_0x4c24bb++;_0x4c24bb--,this['_handleTextAttributeChanges'](_0x4e1c11,_0x594637,_0x47e67a);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x1a240e,_0x33bb23,_0x5d4239){const _0x453eca=[],_0x347624=[],_0x172ec8=_0x5d4239['slice']();for(let _0x20b3bb=0x0;_0x20b3bb<_0x1a240e['length'];_0x20b3bb++){const _0x596b42=_0x1a240e[_0x20b3bb],_0x418f0e=_0x5d4239['slice']();if('element'!=_0x596b42['type']||_0x596b42['isStart'])'element'==_0x596b42['type']&&_0x596b42['isStart']?(_0x5d4239['push'](0x0),_0x33bb23||this['_parents']['push'](_0x596b42),_0x347624['push']({'before':_0x418f0e,'after':_0x5d4239['slice'](),'index':_0x20b3bb})):_0x5d4239[_0x5d4239['length']-0x1]+=_0x596b42['data']['length'];else{let _0x5bf888;_0x5d4239['pop'](),_0x5d4239[_0x5d4239['length']-0x1]++,_0x5bf888=_0x33bb23?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x347624['length']?_0x347624['pop']():_0x453eca['push']({'before':_0x418f0e,'after':_0x5d4239['slice'](),'index':_0x20b3bb,'related':_0x5bf888});}}if(_0x347624['length']!==_0x453eca['length'])throw new _0x1008d5('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x1a240e,'isRemove':_0x33bb23});const _0x474749=[{'after':_0x172ec8['slice'](),'index':-0x1},..._0x453eca,..._0x347624,{'before':_0x5d4239['slice'](),'index':_0x1a240e['length']}];if(_0x33bb23){for(let _0x3ef7b0=_0x474749['length']-0x1;_0x3ef7b0>=0x1;_0x3ef7b0--){const _0x1890cd=_0x474749[_0x3ef7b0-0x1]['after'],_0x132ab4=_0x474749[_0x3ef7b0]['before'],_0x4070e5=_0x132ab4[_0x132ab4['length']-0x1]-_0x1890cd[_0x1890cd['length']-0x1];_0x4070e5&&(this['_operationsData']['push']({'type':'remove','path':_0x1890cd,'howMany':_0x4070e5}),_0x132ab4[_0x132ab4['length']-0x1]-=_0x4070e5);}for(const {before:_0x279dd7}of _0x453eca)this['_operationsData']['push']({'type':'merge','path':_0x279dd7});}else for(let _0x18aa61=0x0;_0x18aa61<_0x474749['length']-0x1;_0x18aa61++){const _0x111ce7=_0x474749[_0x18aa61]['after'],_0x198591=_0x474749[_0x18aa61+0x1]['before'],_0x2d5767=_0x474749[_0x18aa61]['index']+0x1,_0x36d633=_0x474749[_0x18aa61+0x1]['index'];if(_0x2d5767!==_0x36d633&&this['_operationsData']['push']({'type':'insert','path':_0x111ce7,'tokens':_0x1a240e['slice'](_0x2d5767,_0x36d633)}),_0x18aa61<_0x453eca['length']){this['_operationsData']['push']({'type':'split','path':_0x198591});const _0x2783b0=_0x1a240e[_0x347624[_0x347624['length']-0x1-_0x18aa61]['index']],_0x26c191=_0x453eca[_0x18aa61]['after'],_0x20668a=_0x453eca[_0x18aa61]['related']['element'];this['_handleElementRename'](_0x20668a,_0x2783b0['element'],_0x26c191),this['_handleElementAttributeChanges'](_0x20668a,_0x2783b0['element'],_0x26c191);}}}['_traverseOverItem'](_0x4dc5fd){'element'==_0x4dc5fd['type']&&_0x4dc5fd['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x4dc5fd)):'element'!=_0x4dc5fd['type']||_0x4dc5fd['isStart']?'text'==_0x4dc5fd['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x4dc5fd['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x1d3fd9,_0x44ee28,_0x2aa459){_0x1d3fd9['name']!=_0x44ee28['name']&&this['_operationsData']['push']({'type':'rename','path':_0x2aa459['slice'](),'oldName':_0x1d3fd9['name'],'newName':_0x44ee28['name']});}['_handleElementAttributeChanges'](_0x62115a,_0x5088c5,_0x2a6491){const _0x364003=this['_getAttributeChanges'](_0x62115a['getAttributes'](),_0x5088c5['getAttributes']());for(const _0x22735c in _0x364003){const {oldValue:_0x262cc1,newValue:_0x3e4987}=_0x364003[_0x22735c];this['_operationsData']['push']({'type':'attribute','path':_0x2a6491['slice'](),'howMany':0x1,'key':_0x22735c,'oldValue':_0x262cc1,'newValue':_0x3e4987});}}['_handleTextAttributeChanges'](_0x8ade92,_0x12823e,_0x14d7f1){const _0x5bbe2b=this['_operationsData'],_0x24554a=_0x8ade92[0x0]['parent'],_0x51ab46=_0x8ade92[0x0]['offset'],_0x3485d8=_0x12823e[0x0]['parent'],_0x217f38=_0x12823e[0x0]['offset'],_0x479c8e=_0x8ade92['reduce']((_0x141a03,_0x4de41d)=>_0x141a03+_0x4de41d['data']['length'],0x0),_0x595ade=this['_getAttrsForOffsets'](_0x24554a,_0x51ab46,_0x479c8e),_0x4cf273=this['_getAttrsForOffsets'](_0x3485d8,_0x217f38,_0x479c8e),_0x2737a3={};for(let _0x5e23ed=0x0;_0x5e23ed<_0x479c8e;_0x5e23ed++){const _0x4683bb=_0x595ade[_0x51ab46+_0x5e23ed],_0x5462db=_0x4cf273[_0x217f38+_0x5e23ed],_0x2376c3=this['_getAttributeChanges'](_0x4683bb,_0x5462db);for(const _0x1b8d7b in _0x2737a3)_0x2376c3[_0x1b8d7b]||_0xf18e6a(_0x1b8d7b);for(const _0x2312fd in _0x2376c3){const {oldValue:_0x411be6,newValue:_0x1f4a35}=_0x2376c3[_0x2312fd],_0x4dd3b9=_0x2737a3[_0x2312fd];_0x4dd3b9?_0x4dd3b9['oldValue']==_0x411be6&&_0x4dd3b9['newValue']==_0x1f4a35?_0x4dd3b9['length']++:(_0xf18e6a(_0x2312fd),_0x2737a3[_0x2312fd]={'oldValue':_0x411be6,'newValue':_0x1f4a35,'start':_0x5e23ed,'length':0x1}):_0x2737a3[_0x2312fd]={'oldValue':_0x411be6,'newValue':_0x1f4a35,'start':_0x5e23ed,'length':0x1};}}for(const _0x5e1629 in _0x2737a3)_0xf18e6a(_0x5e1629);function _0xf18e6a(_0x2f8e75){const _0x2f4a8f=_0x2737a3[_0x2f8e75],_0x12a969=_0x14d7f1['slice']();_0x12a969[_0x12a969['length']-0x1]+=_0x2f4a8f['start'],_0x5bbe2b['push']({'type':'attribute','path':_0x12a969,'howMany':_0x2f4a8f['length'],'key':_0x2f8e75,'oldValue':_0x2f4a8f['oldValue'],'newValue':_0x2f4a8f['newValue']}),delete _0x2737a3[_0x2f8e75];}}['_getAttributeChanges'](_0x3d7a53,_0x5c9a3d){const _0x5dc222={};for(const [_0x1d8cea,_0x23829c]of _0x3d7a53)_0x5dc222[_0x1d8cea]={'oldValue':JSON['stringify'](_0x23829c),'newValue':'null'};for(const [_0x5ab3e0,_0x323b75]of _0x5c9a3d){const _0x2ebff4=JSON['stringify'](_0x323b75);_0x5dc222[_0x5ab3e0]?_0x5dc222[_0x5ab3e0]['oldValue']==_0x2ebff4?delete _0x5dc222[_0x5ab3e0]:_0x5dc222[_0x5ab3e0]['newValue']=_0x2ebff4:_0x5dc222[_0x5ab3e0]={'oldValue':'null','newValue':_0x2ebff4};}return delete _0x5dc222[St],_0x5dc222;}['_getAttrsForOffsets'](_0x56568a,_0x43fda7,_0x51df0e){const _0x18474a=new Array(_0x43fda7+_0x51df0e);let _0x1ad834=_0x56568a['getChildAtOffset'](_0x43fda7),_0x2cb036=_0x1ad834['startOffset'];for(;_0x1ad834&&_0x2cb036<_0x43fda7+_0x51df0e;){const _0x105eb1=Array['from'](_0x1ad834['getAttributes']());_0x18474a['fill'](_0x105eb1,_0x2cb036,_0x2cb036+_0x1ad834['offsetSize']),_0x2cb036+=_0x1ad834['offsetSize'],_0x1ad834=_0x1ad834['nextSibling'];}return _0x18474a;}['_getPositionFromAnchorAndPath'](_0x1af3e2,_0x2f07c5){const _0x3d6bfa=[..._0x1af3e2['path']['slice'](0x0,-0x1),_0x1af3e2['offset']+_0x2f07c5[0x0],..._0x2f07c5['slice'](0x1)];return new _0x816e35(_0x1af3e2['root'],_0x3d6bfa);}['_makeModelFromTokens'](_0x397fad){const _0x3db21b=[];let _0x275331=null;for(const _0x4669ab of _0x397fad)if('element'!=_0x4669ab['type']||_0x4669ab['isStart']||_0x275331!=_0x4669ab['element']){if(!_0x275331){if('text'==_0x4669ab['type']){const _0x256aa1=_0x816e35['_createAt'](_0x4669ab['parent'],_0x4669ab['offset']),_0x2a4456=_0x2b05c1['_createFromPositionAndShift'](_0x256aa1,_0x4669ab['data']['length']),_0x28307f=Array['from'](_0x2a4456['getItems']())['map'](_0x3435c4=>new _0x316047(_0x3435c4['data'],_0x3435c4['getAttributes']()));_0x3db21b['push'](..._0x28307f);}else{_0x275331=_0x4669ab['element'];const _0x234828=_0x4669ab['element']['_clone'](!0x0);_0x234828['_removeAttribute'](St);for(const _0x4a2fb2 of this['_editor']['model']['createRangeIn'](_0x234828)['getItems']())_0x4a2fb2['is']('element')&&_0x4a2fb2['_removeAttribute'](St);_0x3db21b['push'](_0x234828);}}}else _0x275331=null;return _0x3db21b;}}function g(_0x34885c,_0x1ac20e){return _0x34885c['type']===_0x1ac20e['type']&&(_0x34885c['limitId']===_0x1ac20e['limitId']&&('text'==_0x34885c['type']?_0x34885c['data']==_0x1ac20e['data']:function(_0xaa41a9,_0x429cd5){if(_0xaa41a9['isStart']!=_0x429cd5['isStart'])return!0x1;if(_0xaa41a9['isStart']&&_0xaa41a9['elementId']!=_0x429cd5['elementId'])return!0x1;if(_0xaa41a9['category']!=_0x429cd5['category'])return!0x1;if('block'==_0xaa41a9['category'])return!0x0;if('container'==_0xaa41a9['category']&&_0xaa41a9['elementId']!=_0x429cd5['elementId'])return!0x1;return _0xaa41a9['element']['name']==_0x429cd5['element']['name'];}(_0x34885c,_0x1ac20e)));}function _(_0x53380b){return k({'name':_0x53380b['name'],...Object['fromEntries'](_0x53380b['getAttributes']())});}export{dt as AriaDescriptionView,vt as ConfirmMixin,St as DATA_ID_MODEL_ATTRIBUTE,Et as DATA_ID_VIEW_ATTRIBUTE,At as DocumentCompare,It as FOCUS_ANNOTATION_KEYSTROKE,ft as LateFocusButtonView,gt as LateFocusDropdownButtonView,C as Permissions,kt as SuggestionsConversion,ht as UserView,at as Users,mt as fixElementSuggestionRange,wt as getAllMarkersDomElementsSorted,pt as getDateTimeFormatter,yt as getMarkerDomElement,k as hashObject,Ct as sanitizeEditorConfig,_t as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,xt as surroundingMarkersDetector,bt as trimHtml};
|
|
23
|
+
import{ContextPlugin as _0x3a2c57,Editor as _0x3d807a,Plugin as _0x5f500f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x311461,Collection as _0xf479d0,uid as _0x9a0de,toArray as rt,first as _0x4a9616,FocusTracker as _0x4ba58b,KeystrokeHandler as _0x39f765}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x34d822,IconView as st,ButtonView as ts,DropdownButtonView as _0x4434d6,FocusCycler as _0x48be7c,isViewWithFocusCycler as _0x1dadb7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as it,IconCheck as _0x44d5ba,IconCancel as _0x2dae3e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as at,toWidget as _0x42cd0a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x151ae0,MoveOperation as _0x1188fc,ModelPosition as _0x48c5ad,ModelRange as _0x4c10b6,MarkerOperation as _0x566b7f,MergeOperation as _0x802d8,SplitOperation as _0x544b68,RenameOperation as _0x1f89c9,AttributeOperation as _0x8aaff2,ModelTreeWalker as _0x55e72a,ModelText as _0x3c8891}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x256f2e}from'diff';class C extends _0x3a2c57{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x180c62,_0x29c9e4){let _0x47c4e9;if(_0x29c9e4||(_0x29c9e4=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x29c9e4?_0x47c4e9=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x47c4e9=this['context']['editors']['find'](_0x3d8c1b=>_0x3d8c1b['config']['get']('collaboration.channelId')==_0x29c9e4)),!_0x47c4e9)throw new _0x311461('permissions-set-permissions-invalid-channel-id',null);const _0x463a13=_0x47c4e9['plugins'],_0x66aef=_0x463a13['has']('CommentsRepository')?_0x463a13['get']('CommentsRepository'):void 0x0,_0x463abd=_0x463a13['has']('CommentsOnly')&&_0x463a13['get']('CommentsOnly'),_0x193057=_0x180c62['includes']('document:write'),_0x25be13=_0x180c62['includes']('comment:modify_all'),_0x5b60fc=_0x180c62['includes']('comment:admin'),_0x618053=_0x180c62['includes']('comment:write'),_0x49cbd4=_0x618053||_0x5b60fc,_0x173db3=_0x49cbd4||_0x25be13,_0x4d9ec3=_0x193057||_0x49cbd4;(_0x463abd&&(_0x463abd['isEnabled']=!_0x193057&&_0x173db3),_0x47c4e9 instanceof _0x3d807a)&&(!(_0x193057||_0x173db3&&_0x66aef)?_0x47c4e9['enableReadOnlyMode']('no-permissions'):_0x47c4e9['disableReadOnlyMode']('no-permissions'));if(_0x66aef){_0x66aef['setPermissions']({'admin':_0x5b60fc,'modifyAll':_0x25be13,'write':_0x618053,'resolve':_0x4d9ec3},_0x29c9e4);const _0x575a70=_0x47c4e9 instanceof _0x3d807a&&_0x47c4e9['commands']['get']('addCommentThread');_0x575a70&&(_0x49cbd4?_0x575a70['clearForceDisabled']('noPermissions'):_0x575a70['forceDisabled']('noPermissions'));}}}function U(_0x53e7d7,_0x1e4c35){const t=_0x53e7d7['t'];switch(_0x1e4c35){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class ct extends _0x3a2c57{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}constructor(_0x526085){super(_0x526085),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0xf479d0(),this['_locale']=_0x526085['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x1e10d5,name:_0x33608d,..._0x22e9b3}){if(!_0x1e10d5||'string'!=typeof _0x1e10d5)throw new _0x311461('users-add-invalid-id');if(this['users']['has'](_0x1e10d5))throw new _0x311461('users-add-duplicated-id',null,{'id':_0x1e10d5});const _0x44d077=this['context']['config']['get']('users.getInitialsCallback'),_0x3f208e={..._0x22e9b3,'id':_0x1e10d5,'name':A(this['_locale'],_0x33608d),'color':this['_getNextColor']()};_0x3f208e['name']=A(this['_locale'],_0x3f208e['name']);const _0xeca101=new lt(_0x3f208e,_0x44d077);return this['users']['add'](_0xeca101),_0xeca101;}['getUser'](_0x31d81d){return this['users']['get'](_0x31d81d);}['useAnonymousUser'](){const _0x4fe842=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x4fe842);}['defineMe'](_0x5b2d34){if(this['_myId'])throw new _0x311461('users-me-already-defined',null);const _0x3719b5=this['getUser'](_0x5b2d34);if(!_0x3719b5)throw new _0x311461('users-me-missing-user',null);this['_myId']=_0x5b2d34,_0x3719b5['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x43e596=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x43e596&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x874441=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x874441,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x558374,_0x102a67){this['id']=_0x558374['id'],this['color']=_0x558374['color'],this['name']=_0x558374['name'],this['initials']=_0x102a67?_0x102a67(this['name']):this['_computeInitials'](),this['avatar']=_0x558374['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x35e2e6=this['name']['split']('\x20')['filter'](_0x54b407=>/^[\p{Letter}]/u['test'](_0x54b407));return 0x1===_0x35e2e6['length']?this['_getInitial'](_0x35e2e6[0x0]):0x0===_0x35e2e6['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x35e2e6[0x0])+this['_getInitial'](_0x35e2e6[_0x35e2e6['length']-0x1]);}['_getInitial'](_0x3e2d63){return String['fromCodePoint'](_0x3e2d63['codePointAt'](0x0))['toUpperCase']();}}function A(_0x2e665d,_0x431bf8=''){return''==(_0x431bf8=_0x431bf8['trim']())?U(_0x2e665d,'Anonymous'):_0x431bf8;}class ut{['_id'];constructor(_0x2ba8c2){this['_id']=_0x2ba8c2;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class ht extends _0x34d822{['name'];['notificationView'];constructor(_0x12feae,_0x32ecc4,_0x21267c){super(_0x12feae),this['name']=_0x32ecc4['name'],this['notificationView']=null;const _0x1e767b=['ck','ck-user'],_0x1df749=['ck','ck-user__img'];if(_0x32ecc4['isAnonymous']&&_0x1df749['push']('ck-user__anonymous'),!_0x32ecc4['isAnonymous']&&_0x32ecc4['isMe']&&_0x1e767b['push']('ck-user_me'),_0x32ecc4['avatar']&&_0x1df749['push']('ck-user__avatar'),_0x21267c){const _0x1208da=new st();_0x1208da['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x1208da['content']=it,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x21267c},'children':[_0x1208da]};}const _0x145f5e=[{'tag':'div','attributes':{'class':_0x1df749,'style':{'background-image':_0x32ecc4['avatar']?'url(\x27'+_0x32ecc4['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x32ecc4['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x32ecc4['name']},'children':[{'text':_0x32ecc4['initials']}]}];this['notificationView']&&_0x145f5e['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x1e767b,'data-user-id':_0x32ecc4['id']},'children':_0x145f5e});}}class dt extends _0x34d822{['id'];constructor(_0x593537,_0x23b925){super(_0x593537),this['id']='ck-aria-description-'+_0x9a0de(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x23b925}]});}}class ft extends ts{['render'](){super['render'](),re(this);}}class gt extends _0x4434d6{['render'](){super['render'](),re(this);}}function re(_0x1cfec5){_0x1cfec5['listenTo'](_0x1cfec5['element'],'mousedown',(_0x1c5b7a,_0x2e2d4f)=>{_0x2e2d4f['stopPropagation'](),_0x2e2d4f['preventDefault']();}),_0x1cfec5['listenTo'](_0x1cfec5['element'],'mouseup',()=>{_0x1cfec5['element']['focus']();});}function v(_0x47c8f2){const _0x2fbb75=_0x47c8f2['split'](':');return{'group':_0x2fbb75[0x0],'type':_0x2fbb75[0x1],'subType':_0x2fbb75['length']>=0x5?_0x2fbb75[0x2]:null,'id':_0x2fbb75['length']<0x5?_0x2fbb75[0x2]:_0x2fbb75[0x3],'authorId':_0x2fbb75['length']<0x5?_0x2fbb75[0x3]:_0x2fbb75[0x4],'markerCount':0x6==_0x2fbb75['length']?_0x2fbb75[0x5]:null};}function mt(_0xd2e3cd,_0x33f51e){const _0x2608d5=_0xd2e3cd['end']['nodeBefore'];if(_0x2608d5&&_0x2608d5['is']('element')&&_0x33f51e['schema']['isBlock'](_0x2608d5)&&!_0x33f51e['schema']['isObject'](_0x2608d5)){const _0x189134=_0x33f51e['createPositionAt'](_0x2608d5,'end');return _0x33f51e['createRange'](_0xd2e3cd['start'],_0x189134);}return _0xd2e3cd;}class M extends _0x5f500f{['afterInit'](){const _0xeeb3d1=this['editor'];if(!_0xeeb3d1['plugins']['has']('AlignmentEditing'))return;_0xeeb3d1['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x5f500f{['afterInit'](){const _0x54e0aa=this['editor'],_0x524219=_0x54e0aa['plugins']['get']('SuggestionsConversion');for(const _0x2a68c5 of ii){if(!_0x54e0aa['plugins']['has'](_0x2a68c5))continue;const _0x3eb6cc=_0x2a68c5['slice'](0x0,-0x7)['toLowerCase']();_0x524219['registerInlineAttribute'](_0x3eb6cc);}}}class I extends _0x5f500f{['afterInit'](){const _0x55aa5f=this['editor'],_0x35e846=_0x55aa5f['plugins']['get']('SuggestionsConversion');_0x55aa5f['plugins']['has']('BookmarkEditing')&&_0x35e846['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x5f500f{['afterInit'](){const _0x1a2b0c=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x4661c5,commandName:_0x259f28}of no)this['editor']['plugins']['has'](_0x4661c5)&&_0x1a2b0c['registerInlineAttribute'](_0x259f28);}}class T extends _0x5f500f{['afterInit'](){const {editor:_0x271b73}=this;if(!_0x271b73['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x21db76=_0x271b73['plugins']['get']('SuggestionsConversion');_0x21db76['registerBlockAttribute']('footnotesListStyle'),_0x21db76['registerBlockAttribute']('footnotesListStart');}}class E extends _0x5f500f{['afterInit'](){const _0x190918=this['editor'];if(!_0x190918['plugins']['has']('HighlightEditing'))return;_0x190918['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class S extends _0x5f500f{['afterInit'](){const _0x56290a=this['editor'];if(!_0x56290a['plugins']['has']('HtmlEmbed'))return;_0x56290a['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class $ extends _0x5f500f{['afterInit'](){const _0x71d184=this['editor'];if(!_0x71d184['plugins']['has']('ImageEditing'))return;const _0x1ff6f=_0x71d184['plugins']['get']('SuggestionsConversion');_0x1ff6f['registerBlockAttribute']('src'),_0x71d184['plugins']['has']('ImageResize')&&_0x1ff6f['registerBlockAttribute']('resizedWidth'),_0x71d184['plugins']['has']('ImageTextAlternativeEditing')&&_0x1ff6f['registerBlockAttribute']('alt'),_0x71d184['plugins']['has']('PictureEditing')&&_0x1ff6f['registerBlockAttribute']('sources'),_0x71d184['plugins']['has']('ImageSizeAttributes')&&(_0x1ff6f['registerBlockAttribute']('width'),_0x1ff6f['registerBlockAttribute']('height'));}}class x extends _0x5f500f{['afterInit'](){const _0x4a941a=this['editor'],_0x49ff60=_0x4a941a['plugins']['get']('SuggestionsConversion');_0x4a941a['plugins']['has']('IndentBlock')&&(_0x49ff60['registerBlockAttribute']('blockIndent'),_0x4a941a['plugins']['has']('ListEditing')&&(_0x49ff60['registerBlockAttribute']('blockIndentList'),_0x49ff60['registerBlockAttribute']('blockIndentListItem')));}}class H extends _0x5f500f{['afterInit'](){const _0x2db237=this['editor'];if(!_0x2db237['plugins']['has']('LineHeight'))return;_0x2db237['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class N extends _0x5f500f{['afterInit'](){const _0x9fa20f=this['editor'];if(!_0x9fa20f['plugins']['has']('LinkEditing'))return;const _0xc5e2d6=_0x9fa20f['plugins']['get']('SuggestionsConversion'),_0x190a21=_0x9fa20f['commands']['get']('link');_0xc5e2d6['registerInlineAttribute']('linkHref');for(const _0x2306e6 of _0x190a21['manualDecorators'])_0xc5e2d6['registerInlineAttribute'](_0x2306e6['id']);}}class P extends _0x5f500f{['afterInit'](){const _0x3fb3bc=this['editor'];if(!_0x3fb3bc['plugins']['has']('ListEditing'))return;const _0x3a3f5e=_0x3fb3bc['plugins']['get']('SuggestionsConversion'),_0x46a20e=_0x3fb3bc['plugins']['has']('TodoListEditing');_0x3a3f5e['registerBlockAttribute']('listItemId'),_0x3a3f5e['registerBlockAttribute']('listType'),_0x3a3f5e['registerBlockAttribute']('listIndent'),_0x46a20e&&_0x3a3f5e['registerBlockAttribute']('todoListChecked');}}class K extends _0x5f500f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3b45cc=this['editor']['config']['get']('list.properties'),_0x35f5c6=this['editor']['plugins']['get']('SuggestionsConversion');_0x3b45cc['styles']&&_0x35f5c6['registerBlockAttribute']('listStyle'),_0x3b45cc['reversed']&&_0x35f5c6['registerBlockAttribute']('listReversed'),_0x3b45cc['startIndex']&&_0x35f5c6['registerBlockAttribute']('listStart');}}class q extends _0x5f500f{['afterInit'](){const _0x301126=this['editor'],_0x58c311=_0x301126['plugins']['get']('SuggestionsConversion');_0x301126['plugins']['has']('MultiLevelList')&&_0x58c311['registerBlockAttribute']('listMarkerStyle');}}class z extends _0x5f500f{['afterInit'](){const _0x354b13=this['editor'];if(!_0x354b13['plugins']['has']('Style')||!_0x354b13['plugins']['has']('DataSchema')||!_0x354b13['config']['get']('style.definitions'))return;const _0x5d9ff4=_0x354b13['plugins']['get']('SuggestionsConversion'),_0x2bf27c=_0x354b13['config']['get']('style.definitions'),_0x5dc5a5=_0x354b13['plugins']['get']('GeneralHtmlSupport'),_0x3dd7dc=_0x354b13['plugins']['get']('StyleUtils')['normalizeConfig'](_0x354b13['plugins']['get']('DataSchema'),_0x2bf27c),_0x4ba211=new Set();for(const _0x4c33ee of _0x3dd7dc['block']){const _0x3cf65a=_0x5dc5a5['getGhsAttributeNameForElement'](_0x4c33ee['element']);_0x4ba211['add'](_0x3cf65a);}const _0x5efa47=new Set();for(const _0x5ae2ba of _0x3dd7dc['inline']){const _0xfc3912=_0x5dc5a5['getGhsAttributeNameForElement'](_0x5ae2ba['element']);_0x5efa47['add'](_0xfc3912);for(const _0x34752e of _0x5ae2ba['ghsAttributes'])_0x5efa47['add'](_0x34752e);}for(const _0x3af3f2 of _0x4ba211)_0x5d9ff4['registerBlockAttribute'](_0x3af3f2);for(const _0x3c5d67 of _0x5efa47)_0x5d9ff4['registerInlineAttribute'](_0x3c5d67);}}class O extends _0x5f500f{['afterInit'](){const _0x4bbc78=this['editor'];if(!_0x4bbc78['plugins']['has']('TableEditing'))return;const _0x3eb3f6=_0x4bbc78['plugins']['get']('SuggestionsConversion');_0x3eb3f6['registerBlockAttribute']('headingRows'),_0x3eb3f6['registerBlockAttribute']('headingColumns');}}class R extends _0x5f500f{['afterInit'](){const {plugins:_0x47607d}=this['editor'];if(!_0x47607d['has']('TablePropertiesEditing'))return;const _0x2114f7=_0x47607d['get']('SuggestionsConversion'),_0x3367dd=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x4f59f5 of _0x3367dd)_0x2114f7['registerBlockAttribute'](_0x4f59f5);}}class F extends _0x5f500f{['afterInit'](){const _0x397c86=this['editor'],_0x27746c=_0x397c86['plugins']['get']('SuggestionsConversion');_0x397c86['plugins']['has']('TableLayout')&&_0x27746c['registerBlockAttribute']('tableType');}}class G extends _0x5f500f{['afterInit'](){const _0x19a2e9=this['editor'],_0x3981e0=this['editor']['plugins']['get']('SuggestionsConversion');_0x19a2e9['plugins']['has']('Uploadcare')&&_0x19a2e9['plugins']['has']('UploadcareImageEdit')&&_0x3981e0['registerBlockAttribute']('uploadcareImageId');}}class J extends _0x5f500f{['afterInit'](){const _0x2ed81b=this['editor'];if(!_0x2ed81b['plugins']['has']('ShiftEnter'))return;const _0x2c8946=_0x2ed81b['plugins']['get']('SuggestionsConversion'),_0x5a0539=(_0x1ff8b6,_0x41aa29,_0x23e9b2,_0x1e3964)=>{if(_0x1e3964&&!_0x23e9b2['options']['showSuggestionHighlights'])return;if(!_0x23e9b2['consumable']['test'](_0x41aa29['markerRange'],_0x1ff8b6['name']))return;const _0x2a91c5=_0x2ed81b['model'];for(const _0x4fa7a4 of _0x41aa29['markerRange']['getItems']()){if(!_0x4fa7a4['is']('element','softBreak'))continue;const _0x48422e='deletion'==_0x41aa29['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2f6837,authorId:_0x5c0ad8}=v(_0x41aa29['markerName']),_0x2ec4e0=_0x23e9b2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x48422e,'data-suggestion':_0x2f6837,'data-author-id':_0x5c0ad8}),_0x379e7e=_0x23e9b2['mapper']['toViewPosition'](_0x2a91c5['createPositionBefore'](_0x4fa7a4));!_0x1e3964&&_0x2c8946['_activeMarkers']['includes'](_0x41aa29['markerName'])&&_0x23e9b2['writer']['addClass']('ck-suggestion-marker--active',_0x2ec4e0),_0x23e9b2['writer']['insert'](_0x379e7e,_0x2ec4e0),_0x23e9b2['mapper']['bindElementToMarker'](_0x2ec4e0,_0x41aa29['markerName']);}};_0x2ed81b['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33c7d7,_0x1e6c55,_0x22d89e)=>{_0x5a0539(_0x33c7d7,_0x1e6c55,_0x22d89e,!0x1);},{'priority':'high'}),_0x2ed81b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59a969,_0x4cf319,_0x390787)=>{_0x5a0539(_0x59a969,_0x4cf319,_0x390787,!0x0);},{'priority':'high'});}}class L extends _0x5f500f{['afterInit'](){const _0x32277d=this['editor'];_0x32277d['plugins']['has']('MediaEmbedEditing')&&(_0x32277d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x36d2ad,{writer:_0x5a122b,options:_0x35961b})=>{if(_0x35961b['showSuggestionHighlights'])return _0x5a122b['createEmptyElement']('div');},'converterPriority':'high'}),_0x32277d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3baa0f,_0x48e9a0,_0x2619dc)=>{_0x2619dc['options']['showSuggestionHighlights']&&_0x3baa0f['stop']();},{'priority':'high'}));}}class Q extends _0x5f500f{['afterInit'](){const _0x4b0643=this['editor'];if(!_0x4b0643['plugins']['has']('Table'))return;_0x4b0643['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xdfdb2e,_0x49c974,_0x4a3d96)=>{((_0x258d47,_0x5623a5,_0x22117b)=>{if(!_0x22117b['options']['showSuggestionHighlights'])return;const _0x307caa=_0x5623a5['item'];if(!_0x307caa||!_0x307caa['is']('element','tableCell'))return;const _0x494693=_0x22117b['mapper']['toViewElement'](_0x307caa);if(_0x494693){const {id:_0x535cf7,authorId:_0x590d97}=v(_0x5623a5['markerName']);at(_0x494693,_0x22117b['writer'],(_0x399c3d,_0x1a0289,_0x15f2e6)=>{_0x15f2e6['addClass'](rt(_0x1a0289['classes']),_0x399c3d),_0x15f2e6['setAttribute']('data-suggestion-id',_0x535cf7,_0x399c3d),_0x15f2e6['setAttribute']('data-author-id',_0x590d97,_0x399c3d);});}})(0x0,_0x49c974,_0x4a3d96);},{'priority':'highest'});}}class V extends _0x5f500f{['afterInit'](){const _0x5245a1=this['editor'];_0x5245a1['plugins']['has']('HorizontalLineEditing')&&_0x5245a1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3c8d4a,{writer:_0x264207,options:_0x3f6e7d})=>{if(!_0x3f6e7d['showSuggestionHighlights'])return null;const _0x3ae4df=_0x264207['createContainerElement']('div'),_0x1e4cf8=_0x264207['createEmptyElement']('hr');return _0x264207['addClass']('ck-horizontal-line',_0x3ae4df),_0x264207['insert'](_0x264207['createPositionAt'](_0x3ae4df,0x0),_0x1e4cf8),_0x3ae4df;},'converterPriority':'high'});}}class W extends _0x5f500f{['afterInit'](){const {plugins:_0x59a040,model:_0x5c62c1}=this['editor'];if(!_0x59a040['has']('TableCellPropertiesEditing'))return;const _0x321bd1=_0x59a040['get']('SuggestionsConversion'),_0x3bbc53=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x35a817 of _0x3bbc53)_0x321bd1['registerBlockAttribute'](_0x35a817);_0x5c62c1['schema']['checkAttribute']('tableCell','tableCellType')&&_0x321bd1['registerBlockAttribute']('tableCellType');}}class kt extends _0x5f500f{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[M,D,I,B,T,E,V,S,$,x,H,N,P,K,L,q,J,z,Q,O,F,W,R,G];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4dcd6a=this['editor'],_0x4ac4e0=(_0x4151de,_0x1712b1,_0x5d4a1d)=>{const {id:_0x16ce4f,authorId:_0x58d28f,type:_0x211289,subType:_0x36bcae}=v(_0x4151de['markerName']),_0x446cd4=['ck-suggestion-marker',this['_getClassName'](_0x211289,_0x36bcae)];let _0xcf4e0=0xbb8;return!_0x5d4a1d&&(this['_activeMarkers']['includes'](_0x4151de['markerName'])&&(_0x446cd4['push']('ck-suggestion-marker--active'),_0xcf4e0=0xbc2)),('deletion'==_0x211289&&(_0xcf4e0+=0x5),{'classes':_0x446cd4,'attributes':{'data-suggestion':_0x16ce4f,'data-author-id':_0x58d28f},'priority':_0xcf4e0});};_0x4dcd6a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1c5598,_0x41d1bf)=>_0x4ac4e0(_0x1c5598,0x0,!0x1)}),_0x4dcd6a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1d2120,_0x119c84)=>_0x4ac4e0(_0x1d2120,0x0,!0x0)}),_0x4dcd6a['conversion']['for']('dataDowncast')['add'](_0x406969=>{_0x406969['on']('addMarker:suggestion',(_0x338879,_0x3facd2,_0x22c79c)=>{if(!_0x22c79c['options']['showSuggestionHighlights'])return;const _0x51bbae=_0x3facd2['item'];if(!_0x51bbae)return;const _0x4d64a4=_0x22c79c['mapper']['toViewElement'](_0x51bbae);_0x4dcd6a['model']['schema']['isObject'](_0x51bbae)&&_0x4d64a4&&!_0x4d64a4['getCustomProperty']('widget')&&_0x4d64a4['is']('containerElement')&&_0x42cd0a(_0x4d64a4,_0x22c79c['writer']);},{'priority':'high'});});const _0x4720d9=(_0x1623bb,_0x36de63,_0x84511c,_0x315f34,_0x3b8bf5)=>{if(_0x315f34&&!_0x84511c['options']['showSuggestionHighlights'])return;if(!_0x36de63['item'])return;const {id:_0x5149dc,authorId:_0x13cecf,subType:_0x58a53e}=v(_0x36de63['markerName']);if(_0x3b8bf5){const _0x5b7913=_0x58a53e['split']('|')[0x0];if(!this['isBlockAttribute'](_0x5b7913))return;}if(_0x36de63['item']['is']('selection'))return void _0x84511c['consumable']['consume'](_0x36de63['item'],_0x1623bb['name']);const _0x1f9dd4=_0x84511c['mapper']['toViewElement'](_0x36de63['item']);if(_0x36de63['item']['is']('element')&&_0x4dcd6a['model']['schema']['isBlock'](_0x36de63['item'])&&!_0x1f9dd4['getCustomProperty']('addHighlight')){_0x84511c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1f9dd4),_0x84511c['writer']['setAttribute']('data-suggestion',_0x5149dc,_0x1f9dd4),_0x84511c['writer']['setAttribute']('data-author-id',_0x13cecf,_0x1f9dd4),_0x84511c['mapper']['bindElementToMarker'](_0x1f9dd4,_0x36de63['markerName']),_0x315f34||(this['_activeMarkers']['includes'](_0x36de63['markerName'])?_0x84511c['writer']['addClass']('ck-suggestion-marker--active',_0x1f9dd4):_0x84511c['writer']['removeClass']('ck-suggestion-marker--active',_0x1f9dd4));for(const _0x52db16 of _0x4dcd6a['model']['createRangeIn'](_0x36de63['item'])['getItems']())_0x84511c['consumable']['consume'](_0x52db16,_0x1623bb['name']);_0x84511c['consumable']['consume'](_0x36de63['item'],_0x1623bb['name']);}},_0x5b37c3=(_0x3b241c,_0x556007,_0x2957a1,_0x124cba)=>{const _0x11de4a=_0x2957a1['mapper']['markerNameToElements'](_0x556007['markerName']);if(_0x11de4a){if(_0x124cba){const {subType:_0x22db8f}=v(_0x556007['markerName']),_0x36a068=_0x22db8f['split']('|')[0x0];if(!this['isBlockAttribute'](_0x36a068))return;}for(const _0x18ac48 of _0x11de4a)_0x18ac48['getCustomProperty']('addHighlight')||(_0x2957a1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x18ac48),_0x2957a1['writer']['removeAttribute']('data-suggestion',_0x18ac48),_0x2957a1['writer']['removeAttribute']('data-author-id',_0x18ac48),_0x2957a1['mapper']['unbindElementFromMarkerName'](_0x18ac48,_0x556007['markerName']));}};_0x4dcd6a['conversion']['for']('editingDowncast')['add'](_0x1d083d=>{_0x1d083d['on']('addMarker:suggestion:formatBlock',(_0x358bb6,_0x48f7de,_0x2ac3b9)=>{_0x4720d9(_0x358bb6,_0x48f7de,_0x2ac3b9,!0x1,!0x1);},{'priority':'high'});}),_0x4dcd6a['conversion']['for']('editingDowncast')['add'](_0x1e2232=>{_0x1e2232['on']('addMarker:suggestion:attribute',(_0x571275,_0x4e3746,_0x1951b6)=>{_0x4720d9(_0x571275,_0x4e3746,_0x1951b6,!0x1,!0x0);},{'priority':'high'});}),_0x4dcd6a['conversion']['for']('editingDowncast')['add'](_0x27863b=>{_0x27863b['on']('removeMarker:suggestion:formatBlock',(_0x588e30,_0x2e8721,_0x4f05ce)=>{_0x5b37c3(0x0,_0x2e8721,_0x4f05ce,!0x1);},{'priority':'high'});}),_0x4dcd6a['conversion']['for']('editingDowncast')['add'](_0x2a63a7=>{_0x2a63a7['on']('removeMarker:suggestion:attribute',(_0x14214e,_0x34ee9f,_0x43daec)=>{_0x5b37c3(0x0,_0x34ee9f,_0x43daec,!0x0);},{'priority':'high'});}),_0x4dcd6a['conversion']['for']('dataDowncast')['add'](_0x1a4115=>{_0x1a4115['on']('addMarker:suggestion:formatBlock',(_0x469f25,_0x503f9c,_0x41c57f)=>{_0x4720d9(_0x469f25,_0x503f9c,_0x41c57f,!0x0,!0x1);},{'priority':'highest'});}),_0x4dcd6a['conversion']['for']('dataDowncast')['add'](_0x4f63bb=>{_0x4f63bb['on']('addMarker:suggestion:attribute',(_0x4a69eb,_0x59f64e,_0xcd1787)=>{_0x4720d9(_0x4a69eb,_0x59f64e,_0xcd1787,!0x0,!0x0);},{'priority':'highest'});}),_0x4dcd6a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2d6732,_0x59dbca)=>{if(_0x59dbca['options']['showSuggestionHighlights']){const {id:_0xd51d45,authorId:_0x374203}=v(_0x2d6732);return _0x2d6732['includes'](':split')||_0x2d6732['includes'](':merge')?{'group':'suggestion','name':_0x2d6732['substr'](0xb),'attributes':{'data-suggestion':_0xd51d45,'data-author-id':_0x374203}}:null;}return{'group':'suggestion','name':_0x2d6732['substr'](0xb)};}});const _0x175696=(_0x510d5e,_0xacc1b2,_0x3acfb8,_0x4e6664,_0x192db6)=>{if(_0x4e6664&&!_0x3acfb8['options']['showSuggestionHighlights'])return;if(!_0x3acfb8['consumable']['test'](_0xacc1b2['markerRange'],_0x510d5e['name']))return;const _0x1e677d=this['_activeMarkers'],_0xcef99e=_0xacc1b2['markerRange']['getWalker'](),_0x4dceb1=_0xacc1b2['markerRange']['start'],_0x84decf=_0x4dcd6a['model']['schema'];let _0x57b57d=null,_0x5d2ff7=null,_0x38b9a7=!0x1,_0x17235a=!0x1;for(const _0x5c6087 of _0xcef99e){const _0x3b636d=_0x5c6087['item'];_0x38b9a7=_0x38b9a7||_0x84decf['isContent'](_0x3b636d);const _0x2c9bd4=_0x3acfb8['mapper']['toViewElement'](_0x3b636d);if(_0x2c9bd4&&_0x2c9bd4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5c6087['type']&&(_0x84decf['isBlock'](_0x3b636d)&&!_0x84decf['isLimit'](_0x3b636d)&&(_0x3b636d['nextSibling']||_0x4dceb1['isAtEnd']?_0x57b57d&&_0x57b57d['parent']==_0x3b636d||(_0x57b57d=_0x3b636d,_0x3780c6(_0x5c6087['previousPosition']),_0x17235a=!0x0):_0x5d2ff7=_0x5d2ff7||_0x5c6087['previousPosition']));}function _0x3780c6(_0x326586){const {id:_0x496096,authorId:_0x45a878}=v(_0xacc1b2['markerName']),_0x3f6c5e=_0x3acfb8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x192db6,'data-suggestion':_0x496096,'data-author-id':_0x45a878}),_0x27eb8e=_0x3acfb8['mapper']['toViewPosition'](_0x326586);!_0x4e6664&&_0x1e677d['includes'](_0xacc1b2['markerName'])&&_0x3acfb8['writer']['addClass']('ck-suggestion-marker--active',_0x3f6c5e),_0x3acfb8['writer']['insert'](_0x27eb8e,_0x3f6c5e),_0x3acfb8['mapper']['bindElementToMarker'](_0x3f6c5e,_0xacc1b2['markerName']);}_0x38b9a7||_0x17235a||!_0x5d2ff7||_0x3780c6(_0x5d2ff7);};_0x4dcd6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x192dbb,_0x1211cf,_0x485041)=>{_0x175696(_0x192dbb,_0x1211cf,_0x485041,!0x1,'merge');},{'priority':'high'}),_0x4dcd6a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x14c761,_0x550605,_0x3f2776)=>{_0x175696(_0x14c761,_0x550605,_0x3f2776,!0x0,'merge');},{'priority':'high'}),_0x4dcd6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd4ed32,_0x5cfdf7,_0x3546c8)=>{_0x175696(_0xd4ed32,_0x5cfdf7,_0x3546c8,!0x1,'split');},{'priority':'high'}),_0x4dcd6a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x316f20,_0xf04222,_0x322737)=>{_0x175696(_0x316f20,_0xf04222,_0x322737,!0x0,'split');},{'priority':'high'}),_0x4dcd6a['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x25322f,_0x56c138,_0x4950d5)=>{((_0x480174,_0x2876d7,_0x2d4163)=>{const _0x29ad5d=_0x2d4163['mapper']['markerNameToElements'](_0x2876d7['markerName']);if(_0x29ad5d){for(const _0x25047d of _0x29ad5d)(_0x25047d['hasClass']('ck-suggestion-marker-split')||_0x25047d['hasClass']('ck-suggestion-marker-merge'))&&(_0x2d4163['mapper']['unbindElementFromMarkerName'](_0x25047d,_0x2876d7['markerName']),_0x2d4163['writer']['remove'](_0x25047d));}})(0x0,_0x56c138,_0x4950d5);},{'priority':'high'});const _0xb84db8=(_0x45ce5c,_0x31ff42,_0x1fe566,_0x349848)=>{if(_0x349848&&!_0x1fe566['options']['showSuggestionHighlights'])return;const _0x28fc86=_0x31ff42['markerRange']['start'],_0x1af77=_0x31ff42['markerRange']['end'],_0x45192b=_0x4dcd6a['model']['schema'];if(!_0x28fc86['isTouching'](_0x1af77)||!_0x28fc86['nodeAfter'])return;const _0x2c2cb6=_0x28fc86['nodeAfter'];if(_0x45192b['isBlock'](_0x2c2cb6)&&!_0x45192b['isLimit'](_0x2c2cb6)&&_0x45192b['checkChild'](_0x2c2cb6,'$text')){if(!_0x1fe566['consumable']['consume'](_0x31ff42['markerRange'],_0x45ce5c['name']))return;const {id:_0x39da5d,authorId:_0x4bee97}=v(_0x31ff42['markerName']),_0x557a66=_0x1fe566['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x39da5d,'data-author-id':_0x4bee97}),_0x280b04=_0x1fe566['mapper']['toViewPosition'](_0x1af77);!_0x349848&&this['_activeMarkers']['includes'](_0x31ff42['markerName'])&&_0x1fe566['writer']['addClass']('ck-suggestion-marker--active',_0x557a66),_0x1fe566['writer']['insert'](_0x280b04,_0x557a66),_0x1fe566['mapper']['bindElementToMarker'](_0x557a66,_0x31ff42['markerName']);}};_0x4dcd6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x518da2,_0xe6d3de,_0x369cd2)=>{_0xb84db8(_0x518da2,_0xe6d3de,_0x369cd2,!0x1);},{'priority':'high'}),_0x4dcd6a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x412790,_0x31eea3,_0x443b38)=>{_0xb84db8(_0x412790,_0x31eea3,_0x443b38,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x3aa3f7,_0x243c3b,_0x37e855)=>{this['_activeMarkers']=_0x37e855['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x5c53d8){this['_blockAttributeKeys']['add'](_0x5c53d8);}['registerInlineAttribute'](_0x53741b){this['_inlineAttributeKeys']['add'](_0x53741b);}['isBlockAttribute'](_0x386843){return this['_blockAttributeKeys']['has'](_0x386843);}['isInlineAttribute'](_0x55026b){return this['_inlineAttributeKeys']['has'](_0x55026b);}['isRegisteredAttribute'](_0x23f371){return this['isInlineAttribute'](_0x23f371)||this['isBlockAttribute'](_0x23f371);}['_getClassName'](_0x28fe5e,_0x4c755c){if('attribute'!=_0x28fe5e)return'ck-suggestion-marker-'+_0x28fe5e;const _0x36f944=_0x4c755c['split']('|')[0x0];return this['isBlockAttribute'](_0x36f944)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x1240c4={},_0x55987e){if(void 0x0!==_0x1240c4['dateTimeFormat']&&'function'!=typeof _0x1240c4['dateTimeFormat'])throw new _0x311461('invalid-date-time-format');return _0x1cf89d=>{const _0x2938a3='string'==typeof _0x1cf89d?tt['fromISO'](_0x1cf89d):tt['fromJSDate'](_0x1cf89d),_0x1c8fd0=tt['now'](),_0x236a5d=Math['floor'](_0x1c8fd0['diff'](_0x2938a3,'days')['days']);return _0x1240c4['dateTimeFormat']?_0x1240c4['dateTimeFormat'](_0x2938a3['toJSDate'](),_0x55987e&&_0x55987e['t']?_0x55987e['t']:void 0x0):0x0===_0x236a5d?_0x55987e?U(_0x55987e,'Today')+'\x20'+_0x2938a3['toFormat']('hh:mma'):_0x2938a3['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x236a5d?_0x55987e?U(_0x55987e,'Yesterday')+'\x20'+_0x2938a3['toFormat']('hh:mma'):_0x2938a3['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x236a5d<0x7?_0x55987e?U(_0x55987e,'Last')+'\x20'+U(_0x55987e,_0x2938a3['toFormat']('EEEE'))+'\x20'+_0x2938a3['toFormat']('hh:mma'):_0x2938a3['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x2938a3['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x4a7ff9,_0x13e73f){const _0x33ca20=_0x4a7ff9['mapper']['markerNameToElements'](_0x13e73f['name']);if(!_0x33ca20)return null;const _0x207ce8=_0x4a9616(_0x33ca20['values']());return _0x4a7ff9['view']['domConverter']['mapViewToDom'](_0x207ce8)||null;}function wt(_0xd8d135,_0x2a41dd){if(0x0===_0x2a41dd['length'])return null;const _0x520cc3=[],_0xd0e34b=_0xd8d135['view']['domConverter'];for(const _0x3cbf41 of _0x2a41dd){const _0x2a913a=_0xd8d135['mapper']['markerNameToElements'](_0x3cbf41['name']);if(!_0x2a913a)continue;const _0x59944c=Array['from'](_0x2a913a)['map'](_0x49d797=>_0xd0e34b['mapViewToDom'](_0x49d797))['filter'](_0x4b68a3=>!!_0x4b68a3);_0x520cc3['push'](..._0x59944c);}if(0x0===_0x520cc3['length'])return null;const _0xb1bb37=[];for(const _0x179b93 of _0x520cc3){const _0x326c28=_0x179b93['getClientRects']()['item'](0x0);_0x326c28&&_0xb1bb37['push']({'x':_0x326c28['x'],'y':_0x326c28['y'],'domElement':_0x179b93});}return 0x0===_0xb1bb37['length']?null:(_0xb1bb37['sort']((_0xffcc38,_0x2ef7a1)=>_0xffcc38['y']-_0x2ef7a1['y']||_0xffcc38['x']-_0x2ef7a1['x']),_0xb1bb37['map'](_0x2c5adf=>_0x2c5adf['domElement']));}function bt(_0x288c3e,{limit:_0x2ae68d,suffix:_0x128751='...'}){const _0x1e8682=[];let _0x1d61d7=0x0;const _0x3d2e99=_0x288c3e['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x3477af=0x0;_0x3477af<_0x3d2e99['length'];_0x3477af++){let _0xabcb2b=_0x3d2e99[_0x3477af];const _0x35866a=tn(_0xabcb2b);if(_0xabcb2b['startsWith']('<')){if(_0x1d61d7>=_0x2ae68d){const _0x12e80d=_0xabcb2b['match'](/[a-zA-Z]+/);if(!_0x12e80d){_0x3d2e99[_0x3477af]='';continue;}const _0x4d9288=_0x12e80d[0x0];_0xabcb2b['startsWith']('</')?(_0x1e8682['length']&&(_0xabcb2b=''),_0x1e8682['pop']()):(_0x1e8682['push'](_0x4d9288),_0xabcb2b='');}}else{if(_0x1d61d7>=_0x2ae68d)_0xabcb2b='';else{if(_0x1d61d7+_0x35866a['length']>=_0x2ae68d){let _0x163083=_0x2ae68d-_0x1d61d7;if('\x20'===_0x35866a[_0x163083-0x1])_0x163083--;else{const _0x1502d2=_0x35866a['slice'](_0x163083)['indexOf']('\x20');-0x1!==_0x1502d2?_0x163083+=_0x1502d2:_0x163083=_0xabcb2b['length'];}_0xabcb2b=_0x35866a['slice'](0x0,_0x163083)['join']('')+_0x128751,_0x1d61d7=_0x2ae68d;}else _0x1d61d7+=_0x35866a['length'];}}_0x3d2e99[_0x3477af]=_0xabcb2b;}return _0x3d2e99['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x29960c){const _0x5ce04e=[];for(let _0x2381df=0x0;_0x2381df<_0x29960c['length'];_0x2381df++){const _0x1ac3cb=_0x29960c['substring'](_0x2381df)['match'](/^&[a-z0-9#]+;/);if(_0x1ac3cb){const _0x16a098=_0x1ac3cb[0x0];_0x5ce04e['push'](_0x16a098),_0x2381df+=_0x16a098['length']-0x1;}else _0x5ce04e['push'](_0x29960c[_0x2381df]);}return _0x5ce04e;}class X extends _0x34d822{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x57960a){super(_0x57960a);const _0x575060=this['bindTemplate'];this['set']('message',U(_0x57960a,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x57960a,U(_0x57960a,'Yes'),_0x44d5ba,'submit'),this['cancelView']=this['_createButtonView'](_0x57960a,U(_0x57960a,'No'),_0x2dae3e,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x4ba58b(),this['keystrokes']=new _0x39f765(),this['focusCycler']=new _0x48be7c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x575060['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x3062d4,_0x15e1e5,_0x4a4d31,_0x311239){const _0x1c9954=new ts(_0x3062d4);return _0x1c9954['label']=_0x15e1e5,_0x1c9954['icon']=_0x4a4d31,_0x1c9954['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x311239}}),_0x1c9954['on']('execute',()=>this['fire'](_0x311239)),_0x1c9954;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x1408c2=>{this['keystrokes']['listenTo'](_0x1408c2['element']),this['focusTracker']['add'](_0x1408c2['element']);}),this['keystrokes']['set']('esc',(_0x10ee23,_0x33c1d8)=>{this['fire']('cancel'),_0x33c1d8();});}}function vt(_0x1f1511){return class extends _0x1f1511{['showConfirm'](_0x352d8f,_0x44b536){return this['confirmView']=new X(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x352d8f,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x44b536['appendChild'](this['confirmView']['element']),_0x44b536['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x325086,_0x319492,_0x15cfd2)=>{_0x15cfd2||_0x44b536['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x382bdd=>this['confirmView']['on']('submit',_0x382bdd));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function k(_0x62e9ed){let _0xd55670=0x0,_0x5638a3=0x0;for(const _0x52ddec of ne(_0x62e9ed))_0xd55670=(_0xd55670<<0x5)-_0xd55670+_0x52ddec,_0xd55670&=_0xd55670,[_0xd55670,_0x5638a3]=[_0x5638a3,_0xd55670];return ie(_0xd55670)+ie(_0x5638a3);}function*ee(_0x57ee80){null==_0x57ee80||null==_0x57ee80?yield 0x12b9b0a1:0x0===_0x57ee80||!0x1===_0x57ee80?yield 0x0:0x1===_0x57ee80||0x1==_0x57ee80?yield 0x1:Array['isArray'](_0x57ee80)?yield*function*(_0x2da126){for(const _0x2bea93 of _0x2da126)yield*ee(_0x2bea93);}(_0x57ee80):'object'==typeof _0x57ee80?yield*ne(_0x57ee80):'string'==typeof _0x57ee80?yield*oe(_0x57ee80):'number'==typeof _0x57ee80&&(yield _0x57ee80);}function*ne(_0x16ef3e){if(yield te('{'),_0x16ef3e){const _0x296beb=Object['keys'](_0x16ef3e)['sort']();for(const _0x291881 of _0x296beb){yield*oe(_0x291881),yield te(':');const _0x587546=_0x16ef3e[_0x291881];yield*ee(_0x587546);}}yield te('}');}function*oe(_0x428b83){yield te('\x22');for(const _0x4dd715 of _0x428b83)yield te(_0x4dd715);yield te('\x22');}function te(_0x9b2df4){return _0x9b2df4['charCodeAt'](0x0);}function ie(_0x215d34){return(_0x215d34*=Math['sign'](_0x215d34))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x5a709a,_0x505202,_0x99b077,_0x17c41f=[]){const _0x1e8887='string'==typeof _0x5a709a?_0x99b077['get'](_0x5a709a)['constructor']:_0x5a709a['prototype']['constructor'];if(_0x505202['has'](_0x1e8887))return _0x505202['get'](_0x1e8887);_0x505202['set'](_0x1e8887,!0x0);const _0x1942b9=[...et,..._0x17c41f]['map'](_0x33fb0f=>{if(_0x99b077['has'](_0x33fb0f))return _0x99b077['get'](_0x33fb0f)['constructor'];})['filter'](_0x2875b2=>_0x2875b2);if(_0x1e8887&&_0x1942b9['includes'](_0x1e8887))return _0x505202['set'](_0x1e8887,!0x1),!0x1;if(!_0x1e8887['requires'])return _0x505202['set'](_0x1e8887,!0x0),!0x0;const _0x13a8ba=_0x1e8887['requires']['every'](_0x3890d5=>ot(_0x3890d5,_0x505202,_0x99b077,_0x17c41f));return _0x505202['set'](_0x1e8887,_0x13a8ba),_0x13a8ba;}function Ct(_0x6dc675,_0x3c29b3){const _0x2cdf88={};for(const _0x273d99 of _0x6dc675['config']['names']())nt['includes'](_0x273d99)||(_0x2cdf88[_0x273d99]=_0x6dc675['config']['get'](_0x273d99));const _0x5a45f3=_0x2cdf88['plugins']||[],_0x4f42b3=_0x6dc675['constructor']['builtinPlugins']||[],_0x405a22=_0x5a45f3['length']?_0x5a45f3:_0x4f42b3,_0x259450=_0x2cdf88['extraPlugins']||[];delete _0x2cdf88['extraPlugins'];const _0x8884b4=_0x2cdf88['removePlugins']||[];delete _0x2cdf88['removePlugins'];const _0x7805ea=_0x6dc675['_context']['config']['get']('plugins')||[],_0x1e44c8=_0x405a22['concat'](_0x259450)['concat'](_0x7805ea)['map'](_0x2acfbc=>'string'==typeof _0x2acfbc?_0x4f42b3['find'](_0x2e904d=>_0x2e904d['pluginName']==_0x2acfbc):_0x2acfbc)['filter'](_0x24f844=>!_0x8884b4['includes'](_0x24f844)&&!_0x8884b4['includes'](_0x24f844['pluginName'])),_0x248aa7=Array['from'](new Set(_0x1e44c8)),_0x416e1c=new Map();return _0x2cdf88['plugins']=_0x248aa7['filter'](_0x27e380=>ot(_0x27e380,_0x416e1c,_0x6dc675['plugins'],_0x3c29b3)),_0x2cdf88;}function xt(_0x427f0f,_0x24fe63){const _0x3b0380=[];_0x427f0f['document']['selection']['on']('change:range',()=>{const _0x4dce43=function(_0x46a4dc,_0x1881e0){const _0x3434a8=[];for(const _0x10bedb of _0x46a4dc['markers']){const _0x3bf357=_0x10bedb['getRange']();(_0x3bf357['containsPosition'](_0x1881e0)||_0x3bf357['start']['isEqual'](_0x1881e0)||_0x3bf357['end']['isEqual'](_0x1881e0))&&_0x3434a8['push'](_0x10bedb);}return _0x3434a8;}(_0x427f0f,_0x427f0f['document']['selection']['focus']),_0xc94f25=[],_0x5e9fca=[],_0x5de1ba=[];for(const _0x1e7416 of _0x3b0380)_0x4dce43['includes'](_0x1e7416)||_0xc94f25['push'](_0x1e7416);for(const _0x54a63f of _0x4dce43)_0x3b0380['includes'](_0x54a63f)||_0x5e9fca['push'](_0x54a63f),_0x5de1ba['push'](_0x54a63f);(_0xc94f25['length']||_0x5e9fca['length'])&&_0x24fe63({'left':_0xc94f25,'entered':_0x5e9fca}),_0x3b0380['length']=0x0,_0x3b0380['push'](..._0x5de1ba);});}const It='Ctrl+Shift+E';function _t(_0x5d1068,_0x28c17c){const _0x24371a=_0x5d1068['element'];_0x5d1068['keystrokes']['listenTo'](_0x24371a);for(const _0x1b071c of _0x28c17c)ro(_0x5d1068,_0x1b071c);_0x28c17c['on']('change',(_0x255bb7,_0x22874e)=>{for(const _0x35bd6b of _0x22874e['removed'])to(_0x5d1068,_0x35bd6b);for(const _0x5c3fcf of Array['from'](_0x22874e['added'])['reverse']())ro(_0x5d1068,_0x5c3fcf);}),_0x5d1068['keystrokes']['set']('enter',(_0x1dd46a,_0x28484a)=>{_0x24371a===_0x1dd46a['target']&&(_0x5d1068['focusCycler']['focusFirst'](),_0x28484a());},{'filter':_0x46b328=>_0x46b328['target']===_0x24371a}),_0x5d1068['keystrokes']['set']('esc',(_0x1a46cc,_0x3c626d)=>{_0x24371a!==_0x1a46cc['target']?_0x5d1068['focus']():_0x5d1068['fire']('escape'),_0x3c626d();}),_0x5d1068['keystrokes']['set']('arrowdown',(_0x438da5,_0x4842ca)=>{_0x24371a===_0x438da5['target']&&(_0x5d1068['fire']('arrowdown'),_0x4842ca());}),_0x5d1068['keystrokes']['set']('arrowup',(_0x5cc4b1,_0x21bb85)=>{_0x24371a===_0x5cc4b1['target']&&(_0x5d1068['fire']('arrowup'),_0x21bb85());});}function ro(_0x1b8726,_0x5584c3){_0x5584c3['isRendered']&&(_0x1b8726['focusTracker']['add'](_0x5584c3['element']),_0x1b8726['keystrokes']['listenTo'](_0x5584c3['element']),_0x1dadb7(_0x5584c3)&&function(_0x36cdde,_0x29ec13){const _0x18780b=_0x36cdde['actions'],_0x52061e=_0x29ec13['actions'];for(const _0x484c5f of Object['keys'](_0x18780b))if(_0x484c5f in _0x52061e&&_0x18780b[_0x484c5f]!==_0x52061e[_0x484c5f])return!0x1;return!0x0;}(_0x1b8726['focusCycler'],_0x5584c3['focusCycler'])&&_0x1b8726['focusCycler']['chain'](_0x5584c3['focusCycler']));}function to(_0x11e7be,_0x49ba19){_0x11e7be['focusTracker']['remove'](_0x49ba19['element']),_0x11e7be['keystrokes']['stopListening'](_0x49ba19['element']),_0x1dadb7(_0x49ba19)&&_0x11e7be['focusCycler']['unchain'](_0x49ba19['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x3a2c57{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x3d807a?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x311a8f,_0x18059b)=>{_0x18059b['on']('ready',()=>{this['_integrateEditor'](_0x18059b);});});}get['editor'](){if(this['context']instanceof _0x3d807a)return this['context'];{const _0x4d5215=this['context']['editors']['first'];if(!_0x4d5215)throw new _0x311461('documentcompare-no-editor',this);return _0x4d5215;}}['getDiff'](_0x101a91,_0x306f83,_0x1c91fa={'anchor':'main','markDeletions':!0x1}){let _0xb56721,_0x4e5748;const _0x334a12=this['editor'];if('string'==typeof _0x1c91fa['anchor']){const _0x26223b=_0x334a12['model']['document']['getRoot'](_0x1c91fa['anchor']);if(!_0x26223b)throw new _0x311461('documentcompare-compare-no-root',this,{'anchor':_0x1c91fa['anchor']});_0xb56721=_0x26223b,_0x4e5748=_0x334a12['model']['createPositionAt'](_0x26223b,0x0);}else _0xb56721=_0x1c91fa['anchor']['clone'](),_0x4e5748=_0x1c91fa['anchor']['clone']();const _0x2b0bc7=_0x334a12['data']['parse'](_0x101a91,_0xb56721),_0x16a7bc=_0x334a12['data']['parse'](_0x306f83,_0xb56721);return new Mt(_0x2b0bc7,_0x16a7bc,_0x334a12,{'anchor':_0x4e5748,'markDeletions':_0x1c91fa['markDeletions']});}['isMarkedRemoveOperation'](_0x3157c0){return'marker'==_0x3157c0['type']&&_0x3157c0['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x216ddc){_0x216ddc['conversion']['for']('upcast')['add'](_0x30579b=>{_0x30579b['on']('element',(_0x1d4cce,_0x3d0f79,_0x434588)=>{if(_0x3d0f79['modelRange'])for(const _0x3bed0a of _0x3d0f79['modelRange']['getItems']({'shallow':!0x0})){if(_0x3bed0a['is']('$textProxy'))continue;const _0x1bd2eb=_0x3d0f79['viewItem']['getAttribute'](Et);_0x1bd2eb&&_0x434588['writer']['setAttribute'](St,_0x1bd2eb,_0x3bed0a);}},{'priority':'lowest'});}),_0x216ddc['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x18e000,_0x521b9d,_0x4c71d6,_0x25dc2d){this['_editor']=_0x4c71d6,this['_markDeletions']=!!_0x25dc2d['markDeletions'],this['_anchor']=_0x25dc2d['anchor'];const _0x509f43=this['_tokenizeModel'](_0x18e000),_0x55bdc9=this['_tokenizeModel'](_0x521b9d);this['_diffItems']=this['_diffModelTokens'](_0x509f43,_0x55bdc9),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x18e000['markers'],_0x521b9d['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x48e015=this['_editor']['model']['document'],_0xc1f762=[];let _0x46ad02=_0x48e015['version'];for(const _0x461c6b of this['_operationsData'])switch(_0x461c6b['type']){case'attribute':{const _0x418348=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x461c6b['path']),_0x26968c=_0x418348['getShiftedBy'](_0x461c6b['howMany']),_0x26c8bf=new _0x4c10b6(_0x418348,_0x26968c),_0x3ad112=JSON['parse'](_0x461c6b['oldValue']),_0x101b0b=JSON['parse'](_0x461c6b['newValue']);_0xc1f762['push'](new _0x8aaff2(_0x26c8bf,_0x461c6b['key'],_0x3ad112,_0x101b0b,_0x46ad02++));break;}case'insert':{const _0x5f4817=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x461c6b['path']),_0x59df03=this['_makeModelFromTokens'](_0x461c6b['tokens']);_0xc1f762['push'](new _0x151ae0(_0x5f4817,_0x59df03,_0x46ad02++));break;}case'remove':{const _0x1f911d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x461c6b['path']),_0x54583c=new _0x48c5ad(_0x48e015['graveyard'],[0x0]);_0xc1f762['push'](new _0x1188fc(_0x1f911d,_0x461c6b['howMany'],_0x54583c,_0x46ad02++));break;}case'rename':{const _0x46b743=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x461c6b['path']);_0xc1f762['push'](new _0x1f89c9(_0x46b743,_0x461c6b['oldName'],_0x461c6b['newName'],_0x46ad02++));break;}case'split':{const _0x5ac930=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x461c6b['path']),_0xa62ef0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x461c6b['path']['slice'](0x0,-0x1));_0xa62ef0['offset']++,_0xc1f762['push'](new _0x544b68(_0x5ac930,Number['NEGATIVE_INFINITY'],_0xa62ef0,null,_0x46ad02++));break;}case'merge':{const _0x50a49c=_0x461c6b['path']['slice'](),_0x5cdde7=_0x50a49c['slice'](0x0,-0x1);_0x5cdde7[_0x5cdde7['length']-0x1]++,_0x5cdde7['push'](0x0);const _0xeee805=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5cdde7),_0x5a5b7d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x50a49c),_0x248226=new _0x48c5ad(_0x48e015['graveyard'],[0x0]);_0xc1f762['push'](new _0x802d8(_0xeee805,Number['NEGATIVE_INFINITY'],_0x5a5b7d,_0x248226,_0x46ad02++));break;}case'marker':case'markedRemove':{let _0x46ab66=null;if(_0x461c6b['range']){const _0x44a46d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x461c6b['range']['start']),_0x5c6e9a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x461c6b['range']['end']);_0x46ab66=new _0x4c10b6(_0x44a46d,_0x5c6e9a);}const _0x1879f9='marker'==_0x461c6b['type']?_0x461c6b['name']:'$markedRemove:'+_0x9a0de();_0xc1f762['push'](new _0x566b7f(_0x1879f9,null,_0x46ab66,_0x48e015['model']['markers'],!0x0,_0x46ad02++));break;}case'unwrap':{const _0x49588e=_0x461c6b['path']['slice']();_0x49588e['push'](0x0);const _0x2a1f71=_0x461c6b['path']['slice'](),_0x1a0703=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x49588e),_0x2f7bb1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a1f71),_0x32dba0=new _0x48c5ad(_0x48e015['graveyard'],[0x0]);_0xc1f762['push'](new _0x1188fc(_0x1a0703,_0x461c6b['howMany'],_0x2f7bb1,_0x46ad02++)),_0xc1f762['push'](new _0x1188fc(_0x2f7bb1['getShiftedBy'](_0x461c6b['howMany']),0x1,_0x32dba0,_0x46ad02++));break;}case'wrap':{const _0x5638e6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x461c6b['range']['start']),_0x1a21b3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x461c6b['range']['end']),_0x2fcc6a=_0x461c6b['token']['element']['_clone'](!0x1),_0x57b8f8=_0x461c6b['range']['end']['slice']();_0x57b8f8['push'](0x0);const _0x54f8a7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x57b8f8);_0xc1f762['push'](new _0x151ae0(_0x1a21b3,_0x2fcc6a,_0x46ad02++)),_0xc1f762['push'](new _0x1188fc(_0x5638e6,_0x1a21b3['offset']-_0x5638e6['offset'],_0x54f8a7,_0x46ad02++));break;}}return _0xc1f762;}['_tokenizeModel'](_0x183df6){const _0x7644b9=[],_0x4b99d0=_0x4c10b6['_createIn'](_0x183df6),_0x34c56e=new _0x55e72a({'boundaries':_0x4b99d0});let _0xe2c0e8='',_0x1b5953=null;const _0x5ef8b0=[''],_0x5788e5=new Map();for(const _0x4621a6 of _0x34c56e)if('elementStart'==_0x4621a6['type']||'elementEnd'==_0x4621a6['type']){let _0x5a3394=_0x5ef8b0[0x0];''!==_0xe2c0e8&&(_0x7644b9['push'](...this['_makeTokensFromTextByWords'](_0xe2c0e8,_0x1b5953,_0x5a3394)),_0xe2c0e8='');const _0x57fd3a=_0x4621a6['item'];let _0x4a5622;_0x57fd3a['getAttribute'](St)?_0x4a5622=_0x57fd3a['getAttribute'](St):'elementStart'==_0x4621a6['type']?(_0x4a5622=_(_0x57fd3a),_0x5788e5['set'](_0x57fd3a,_0x4a5622)):_0x4a5622=_0x5788e5['get'](_0x57fd3a);const _0x268b25=this['_getElementCategory'](_0x57fd3a);'solid'==_0x268b25&&('elementStart'==_0x4621a6['type']?(_0x5a3394=_0x4a5622,_0x5ef8b0['unshift'](_0x5a3394)):_0x5ef8b0['shift']());const _0x5cc2b2={'type':'element','element':_0x57fd3a,'elementId':_0x4a5622,'category':_0x268b25,'isStart':'elementStart'==_0x4621a6['type'],'limitId':_0x5a3394};_0x7644b9['push'](_0x5cc2b2);}else''==_0xe2c0e8&&(_0x1b5953=_0x4621a6['previousPosition']['clone']()),_0xe2c0e8+=_0x4621a6['item']['data'];return''!==_0xe2c0e8&&_0x7644b9['push'](...this['_makeTokensFromTextByWords'](_0xe2c0e8,_0x1b5953,_0x5ef8b0[0x0])),_0x7644b9;}['_makeTokensFromTextByWords'](_0x22782c,_0x965fdc,_0x1cf4b6){const _0x120c37=_0x22782c['matchAll'](/(\s)/g),_0x1c4442=Array['from'](_0x120c37)['map'](_0x5aaee0=>_0x5aaee0['index']);_0x1c4442['push'](_0x22782c['length']),0x0==_0x1c4442[0x0]&&_0x1c4442['shift']();const _0x576ab9=[],_0xd03a25=_0x965fdc['parent'];let _0x280fbd=0x0,_0x4b2565=_0x965fdc['offset'];for(let _0xba1b03=0x0;_0xba1b03<_0x1c4442['length'];_0xba1b03++)_0x576ab9['push']({'type':'text','data':_0x22782c['slice'](_0x280fbd,_0x1c4442[_0xba1b03]),'parent':_0xd03a25,'offset':_0x4b2565,'limitId':_0x1cf4b6}),_0x280fbd=_0x1c4442[_0xba1b03],_0x4b2565=_0x965fdc['offset']+_0x1c4442[_0xba1b03];return _0x576ab9;}['_getElementCategory'](_0xde8331){const _0x44696c=this['_editor']['model']['schema'];return _0x44696c['isLimit'](_0xde8331)||_0x44696c['isContent'](_0xde8331)||_0x44696c['isInline'](_0xde8331)?'solid':_0x44696c['isBlock'](_0xde8331)?'block':'container';}['_diffModelTokens'](_0x97b090,_0x42d069){const _0xae99bf=_0x256f2e(_0x97b090,_0x42d069,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0xae99bf);const _0x4ca719=_0xae99bf['flatMap'](_0x93b76a=>{const _0x27a168=_0x93b76a['added']?'added':_0x93b76a['removed']?'removed':'unchanged';return _0x93b76a['value']['map'](_0x35ac62=>({'token':_0x35ac62,'change':_0x27a168}));});let _0x3b13c2=0x0;for(const _0x239b9d of _0x4ca719)'added'!=_0x239b9d['change']&&('unchanged'==_0x239b9d['change']&&(_0x239b9d['before']=_0x97b090[_0x3b13c2]),_0x3b13c2++);return _0x4ca719;}['_handleUnclosedBlockOpeningTags'](_0x3b9575){for(let _0x5de17f=0x0;_0x5de17f<_0x3b9575['length']-0x1;_0x5de17f++)if(_0x3b9575[_0x5de17f]['removed']&&_0x3b9575[_0x5de17f+0x1]['added']){const _0x31af36=this['_findUnclosedBlockOpeningToken'](_0x3b9575[_0x5de17f]['value']);if(null!==_0x31af36){const _0x49fcd5=this['_findUnclosedBlockOpeningToken'](_0x3b9575[_0x5de17f+0x1]['value']),_0x33e822=_0x3b9575[_0x5de17f]['value']['splice'](_0x31af36),_0x5af7a7=_0x3b9575[_0x5de17f+0x1]['value']['splice'](_0x49fcd5),_0x1d2f4b=[_0x5af7a7['shift']()];_0x33e822['shift']();const _0x120d87={'value':_0x33e822,'removed':!0x0},_0x1229ef={'value':_0x5af7a7,'added':!0x0},_0x35177e={'value':_0x1d2f4b};_0x3b9575['splice'](_0x5de17f+0x2,0x0,_0x35177e,_0x120d87,_0x1229ef);}}}['_findUnclosedBlockOpeningToken'](_0x127ce1){let _0x4c5a52=0x0,_0x209ab2=-0x1;for(let _0x461acb=0x0;_0x461acb<_0x127ce1['length'];_0x461acb++){const _0x39e5aa=_0x127ce1[_0x461acb];'element'==_0x39e5aa['type']&&'block'==_0x39e5aa['category']&&(_0x4c5a52+=_0x39e5aa['isStart']?0x1:-0x1,_0x39e5aa['isStart']&&(_0x209ab2=_0x461acb));}return 0x0===_0x4c5a52?null:_0x209ab2;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x208ed0=0x0;_0x208ed0<this['_diffItems']['length'];_0x208ed0++){const _0xe99477=this['_diffItems'][_0x208ed0]['change'],_0x45ce11=[];_0x45ce11['push'](this['_diffItems'][_0x208ed0]);let _0x184837=_0x208ed0+0x1;for(;this['_diffItems'][_0x184837]&&this['_diffItems'][_0x184837]['change']==_0xe99477;)_0x45ce11['push'](this['_diffItems'][_0x184837]),_0x184837++,_0x208ed0++;const _0x352e22=_0x45ce11['map'](_0x3fb4b2=>_0x3fb4b2['token']);if('unchanged'==_0xe99477)_0x45ce11['map'](_0x173d4c=>_0x173d4c['before'])['forEach'](_0x5d7ba7=>this['_traverseOverItem'](_0x5d7ba7));else{if('removed'==_0xe99477){if(this['_markDeletions']){const _0x683530=this['_path']['slice']();_0x352e22['forEach'](_0x4e687f=>this['_traverseOverItem'](_0x4e687f));const _0x2cf513=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x683530,'end':_0x2cf513}});}else this['_handleChanged'](_0x352e22,!0x0,this['_path']['slice']());}else{const _0x26abd4=_0x352e22['filter'](_0x206640=>'element'!=_0x206640['type']||'container'!=_0x206640['category']);this['_handleChanged'](_0x26abd4,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x39dda4=0x0;_0x39dda4<this['_diffItems']['length'];_0x39dda4++){const _0x45b9ff=this['_diffItems'][_0x39dda4]['change'],_0x84c5d3=[];_0x84c5d3['push'](this['_diffItems'][_0x39dda4]);let _0x278898=_0x39dda4+0x1;for(;this['_diffItems'][_0x278898]&&this['_diffItems'][_0x278898]['change']==_0x45b9ff;)_0x84c5d3['push'](this['_diffItems'][_0x278898]),_0x278898++,_0x39dda4++;const _0x499dda=_0x84c5d3['map'](_0x158481=>_0x158481['token']);if('unchanged'==_0x45b9ff){const _0x1dcceb=_0x84c5d3['map'](_0x255ba9=>_0x255ba9['before']);this['_handleUnchanged'](_0x1dcceb,_0x499dda);}else('removed'!=_0x45b9ff||this['_markDeletions'])&&_0x499dda['forEach'](_0x1e1a4e=>{this['_traverseOverItem'](_0x1e1a4e);});}}['_calculateMarkersOperationsData'](_0x575e38,_0x1648c9){const _0x352e55={};for(const [_0xaa7750]of _0x575e38)_0x352e55[_0xaa7750]=null;for(const [_0x250f34,_0x3c7c83]of _0x1648c9)_0x352e55[_0x250f34]=_0x3c7c83;const _0x4f3f8e=Object['entries'](_0x352e55)['map'](([_0x2b7c85,_0x5b6af0])=>({'type':'marker','name':_0x2b7c85,'range':_0x5b6af0?{'start':_0x5b6af0['start']['path']['slice'](),'end':_0x5b6af0['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x4f3f8e);}['_handleUnwraps'](){const _0x5e8f9a=new Map(),_0x5a39af=[],_0x52d834=[0x0];let _0x2bb9c8=this['_diffItems']['length']+0x1;for(let _0x2b0c21=this['_diffItems']['length']-0x1;_0x2b0c21>=0x0;_0x2b0c21--){const {token:_0x567b1e,before:_0x12ea4d,change:_0x1c60d8}=this['_diffItems'][_0x2b0c21];if('removed'!=_0x1c60d8&&(_0x2bb9c8=_0x2b0c21),'element'!=_0x567b1e['type']||'container'!=_0x567b1e['category']||'added'==_0x1c60d8)continue;const _0x293617=_0x12ea4d?_0x12ea4d['element']:_0x567b1e['element'];if(_0x567b1e['isStart']){const _0x55e33e=_0x5e8f9a['get'](_0x293617),_0x1dbab3=this['_diffItems'][_0x55e33e];('removed'==_0x1c60d8||'removed'==_0x1dbab3['change'])&&_0x2bb9c8<_0x55e33e&&(this['_operationsData']['push']({'type':'unwrap','path':_0x293617['getPath'](),'howMany':_0x293617['maxOffset']+_0x52d834[0x0]}),_0x52d834['shift'](),_0x52d834[0x0]+=_0x293617['maxOffset']-0x1,_0x5a39af['push'](_0x2b0c21),_0x5a39af['push'](_0x55e33e));}else _0x5e8f9a['set'](_0x293617,_0x2b0c21),_0x52d834['unshift'](0x0);}_0x5a39af['sort']((_0x312bad,_0x1d2318)=>_0x1d2318-_0x312bad),_0x5a39af['forEach'](_0x4e151d=>{const _0x323fa7=this['_diffItems'][_0x4e151d];'removed'==_0x323fa7['change']?this['_diffItems']['splice'](_0x4e151d,0x1):(_0x323fa7['change']='added',delete _0x323fa7['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x566930=[];for(let _0x371857=0x0;_0x371857<this['_diffItems']['length'];_0x371857++){const {change:_0x261505,token:_0x4ec498}=this['_diffItems'][_0x371857];if('added'==_0x261505&&'element'==_0x4ec498['type']&&'container'==_0x4ec498['category']){if(_0x4ec498['isStart'])_0x566930['push'](this['_path']['slice']());else{if(!_0x4ec498['isStart']){const _0x919900=_0x566930['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x919900,'end':this['_path']['slice']()},'token':_0x4ec498}),this['_path'][this['_path']['length']-0x1]=_0x919900[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x261505||this['_markDeletions'])&&this['_traverseOverItem'](_0x4ec498);}}['_handleUnchanged'](_0x427249,_0x5b77a9){for(let _0x9f995=0x0;_0x9f995<_0x427249['length'];_0x9f995++){const _0x4988a6=_0x427249[_0x9f995];if('element'==_0x4988a6['type']&&_0x4988a6['isStart']){const _0xa29b29=_0x5b77a9[_0x9f995];'block'==_0x4988a6['category']&&this['_handleElementRename'](_0x4988a6['element'],_0xa29b29['element'],this['_path']),this['_handleElementAttributeChanges'](_0x4988a6['element'],_0xa29b29['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0xa29b29);}else{if('element'!=_0x4988a6['type']||_0x4988a6['isStart']){if('text'==_0x4988a6['type']){const _0x2bcd5e=this['_path']['slice'](),_0x279b76=[],_0x4f2f23=[];for(;_0x427249[_0x9f995]&&'text'==_0x427249[_0x9f995]['type'];)_0x279b76['push'](_0x427249[_0x9f995]),_0x4f2f23['push'](_0x5b77a9[_0x9f995]),this['_path'][this['_path']['length']-0x1]+=_0x427249[_0x9f995]['data']['length'],_0x9f995++;_0x9f995--,this['_handleTextAttributeChanges'](_0x279b76,_0x4f2f23,_0x2bcd5e);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x2df5de,_0x30c402,_0x1d41d4){const _0x26c6bb=[],_0x425bda=[],_0x48e228=_0x1d41d4['slice']();for(let _0x18a459=0x0;_0x18a459<_0x2df5de['length'];_0x18a459++){const _0x5c5d1a=_0x2df5de[_0x18a459],_0x165613=_0x1d41d4['slice']();if('element'!=_0x5c5d1a['type']||_0x5c5d1a['isStart'])'element'==_0x5c5d1a['type']&&_0x5c5d1a['isStart']?(_0x1d41d4['push'](0x0),_0x30c402||this['_parents']['push'](_0x5c5d1a),_0x425bda['push']({'before':_0x165613,'after':_0x1d41d4['slice'](),'index':_0x18a459})):_0x1d41d4[_0x1d41d4['length']-0x1]+=_0x5c5d1a['data']['length'];else{let _0xac52d9;_0x1d41d4['pop'](),_0x1d41d4[_0x1d41d4['length']-0x1]++,_0xac52d9=_0x30c402?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x425bda['length']?_0x425bda['pop']():_0x26c6bb['push']({'before':_0x165613,'after':_0x1d41d4['slice'](),'index':_0x18a459,'related':_0xac52d9});}}if(_0x425bda['length']!==_0x26c6bb['length'])throw new _0x311461('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x2df5de,'isRemove':_0x30c402});const _0x1c1aa7=[{'after':_0x48e228['slice'](),'index':-0x1},..._0x26c6bb,..._0x425bda,{'before':_0x1d41d4['slice'](),'index':_0x2df5de['length']}];if(_0x30c402){for(let _0x478851=_0x1c1aa7['length']-0x1;_0x478851>=0x1;_0x478851--){const _0xb5d678=_0x1c1aa7[_0x478851-0x1]['after'],_0xee15ac=_0x1c1aa7[_0x478851]['before'],_0x4bd7ae=_0xee15ac[_0xee15ac['length']-0x1]-_0xb5d678[_0xb5d678['length']-0x1];_0x4bd7ae&&(this['_operationsData']['push']({'type':'remove','path':_0xb5d678,'howMany':_0x4bd7ae}),_0xee15ac[_0xee15ac['length']-0x1]-=_0x4bd7ae);}for(const {before:_0x4cc4e3}of _0x26c6bb)this['_operationsData']['push']({'type':'merge','path':_0x4cc4e3});}else for(let _0x10372c=0x0;_0x10372c<_0x1c1aa7['length']-0x1;_0x10372c++){const _0xb4df49=_0x1c1aa7[_0x10372c]['after'],_0x2a1892=_0x1c1aa7[_0x10372c+0x1]['before'],_0x11b37e=_0x1c1aa7[_0x10372c]['index']+0x1,_0x262617=_0x1c1aa7[_0x10372c+0x1]['index'];if(_0x11b37e!==_0x262617&&this['_operationsData']['push']({'type':'insert','path':_0xb4df49,'tokens':_0x2df5de['slice'](_0x11b37e,_0x262617)}),_0x10372c<_0x26c6bb['length']){this['_operationsData']['push']({'type':'split','path':_0x2a1892});const _0x4da489=_0x2df5de[_0x425bda[_0x425bda['length']-0x1-_0x10372c]['index']],_0x2723cc=_0x26c6bb[_0x10372c]['after'],_0x42ed9b=_0x26c6bb[_0x10372c]['related']['element'];this['_handleElementRename'](_0x42ed9b,_0x4da489['element'],_0x2723cc),this['_handleElementAttributeChanges'](_0x42ed9b,_0x4da489['element'],_0x2723cc);}}}['_traverseOverItem'](_0x2d13ed){'element'==_0x2d13ed['type']&&_0x2d13ed['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x2d13ed)):'element'!=_0x2d13ed['type']||_0x2d13ed['isStart']?'text'==_0x2d13ed['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x2d13ed['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x289089,_0x5e69a1,_0x261bf6){_0x289089['name']!=_0x5e69a1['name']&&this['_operationsData']['push']({'type':'rename','path':_0x261bf6['slice'](),'oldName':_0x289089['name'],'newName':_0x5e69a1['name']});}['_handleElementAttributeChanges'](_0x287501,_0x591346,_0x134210){const _0x4a0088=this['_getAttributeChanges'](_0x287501['getAttributes'](),_0x591346['getAttributes']());for(const _0x509a0a in _0x4a0088){const {oldValue:_0x599908,newValue:_0x12ded6}=_0x4a0088[_0x509a0a];this['_operationsData']['push']({'type':'attribute','path':_0x134210['slice'](),'howMany':0x1,'key':_0x509a0a,'oldValue':_0x599908,'newValue':_0x12ded6});}}['_handleTextAttributeChanges'](_0x905af3,_0x22059e,_0x524777){const _0x5d6e05=this['_operationsData'],_0x1f2e0f=_0x905af3[0x0]['parent'],_0x5dbfec=_0x905af3[0x0]['offset'],_0x4ccc04=_0x22059e[0x0]['parent'],_0x3ca5de=_0x22059e[0x0]['offset'],_0x137ef6=_0x905af3['reduce']((_0x1c0557,_0x5196ec)=>_0x1c0557+_0x5196ec['data']['length'],0x0),_0xfe9f43=this['_getAttrsForOffsets'](_0x1f2e0f,_0x5dbfec,_0x137ef6),_0x3df6c8=this['_getAttrsForOffsets'](_0x4ccc04,_0x3ca5de,_0x137ef6),_0x3f09dc={};for(let _0x5bd780=0x0;_0x5bd780<_0x137ef6;_0x5bd780++){const _0x16d42e=_0xfe9f43[_0x5dbfec+_0x5bd780],_0x8a8c93=_0x3df6c8[_0x3ca5de+_0x5bd780],_0x2fe682=this['_getAttributeChanges'](_0x16d42e,_0x8a8c93);for(const _0x3eadae in _0x3f09dc)_0x2fe682[_0x3eadae]||_0x1550ea(_0x3eadae);for(const _0x4b948c in _0x2fe682){const {oldValue:_0x279525,newValue:_0x1a37b9}=_0x2fe682[_0x4b948c],_0x237d0f=_0x3f09dc[_0x4b948c];_0x237d0f?_0x237d0f['oldValue']==_0x279525&&_0x237d0f['newValue']==_0x1a37b9?_0x237d0f['length']++:(_0x1550ea(_0x4b948c),_0x3f09dc[_0x4b948c]={'oldValue':_0x279525,'newValue':_0x1a37b9,'start':_0x5bd780,'length':0x1}):_0x3f09dc[_0x4b948c]={'oldValue':_0x279525,'newValue':_0x1a37b9,'start':_0x5bd780,'length':0x1};}}for(const _0x453cbc in _0x3f09dc)_0x1550ea(_0x453cbc);function _0x1550ea(_0x2d7998){const _0x12dcb8=_0x3f09dc[_0x2d7998],_0x173ae9=_0x524777['slice']();_0x173ae9[_0x173ae9['length']-0x1]+=_0x12dcb8['start'],_0x5d6e05['push']({'type':'attribute','path':_0x173ae9,'howMany':_0x12dcb8['length'],'key':_0x2d7998,'oldValue':_0x12dcb8['oldValue'],'newValue':_0x12dcb8['newValue']}),delete _0x3f09dc[_0x2d7998];}}['_getAttributeChanges'](_0x15a085,_0xae7cdc){const _0x13e782={};for(const [_0x1b4f72,_0x16539c]of _0x15a085)_0x13e782[_0x1b4f72]={'oldValue':JSON['stringify'](_0x16539c),'newValue':'null'};for(const [_0x3f7cb7,_0x1c0667]of _0xae7cdc){const _0x1453a=JSON['stringify'](_0x1c0667);_0x13e782[_0x3f7cb7]?_0x13e782[_0x3f7cb7]['oldValue']==_0x1453a?delete _0x13e782[_0x3f7cb7]:_0x13e782[_0x3f7cb7]['newValue']=_0x1453a:_0x13e782[_0x3f7cb7]={'oldValue':'null','newValue':_0x1453a};}return delete _0x13e782[St],_0x13e782;}['_getAttrsForOffsets'](_0x370c8e,_0x3d43cb,_0x14571e){const _0x2fff29=new Array(_0x3d43cb+_0x14571e);let _0x308053=_0x370c8e['getChildAtOffset'](_0x3d43cb),_0x234425=_0x308053['startOffset'];for(;_0x308053&&_0x234425<_0x3d43cb+_0x14571e;){const _0x13376a=Array['from'](_0x308053['getAttributes']());_0x2fff29['fill'](_0x13376a,_0x234425,_0x234425+_0x308053['offsetSize']),_0x234425+=_0x308053['offsetSize'],_0x308053=_0x308053['nextSibling'];}return _0x2fff29;}['_getPositionFromAnchorAndPath'](_0x2cdb96,_0x2cb0e8){const _0x3601d5=[..._0x2cdb96['path']['slice'](0x0,-0x1),_0x2cdb96['offset']+_0x2cb0e8[0x0],..._0x2cb0e8['slice'](0x1)];return new _0x48c5ad(_0x2cdb96['root'],_0x3601d5);}['_makeModelFromTokens'](_0x5cdd12){const _0x32c9cb=[];let _0x230cdf=null;for(const _0x217e5c of _0x5cdd12)if('element'!=_0x217e5c['type']||_0x217e5c['isStart']||_0x230cdf!=_0x217e5c['element']){if(!_0x230cdf){if('text'==_0x217e5c['type']){const _0x1a588b=_0x48c5ad['_createAt'](_0x217e5c['parent'],_0x217e5c['offset']),_0x278e98=_0x4c10b6['_createFromPositionAndShift'](_0x1a588b,_0x217e5c['data']['length']),_0x52ec49=Array['from'](_0x278e98['getItems']())['map'](_0x194f08=>new _0x3c8891(_0x194f08['data'],_0x194f08['getAttributes']()));_0x32c9cb['push'](..._0x52ec49);}else{_0x230cdf=_0x217e5c['element'];const _0x1b480a=_0x217e5c['element']['_clone'](!0x0);_0x1b480a['_removeAttribute'](St);for(const _0x59a45b of this['_editor']['model']['createRangeIn'](_0x1b480a)['getItems']())_0x59a45b['is']('element')&&_0x59a45b['_removeAttribute'](St);_0x32c9cb['push'](_0x1b480a);}}}else _0x230cdf=null;return _0x32c9cb;}}function g(_0x17aa33,_0x8cbdbe){return _0x17aa33['type']===_0x8cbdbe['type']&&(_0x17aa33['limitId']===_0x8cbdbe['limitId']&&('text'==_0x17aa33['type']?_0x17aa33['data']==_0x8cbdbe['data']:function(_0x2dca84,_0x3999f0){if(_0x2dca84['isStart']!=_0x3999f0['isStart'])return!0x1;if(_0x2dca84['isStart']&&_0x2dca84['elementId']!=_0x3999f0['elementId'])return!0x1;if(_0x2dca84['category']!=_0x3999f0['category'])return!0x1;if('block'==_0x2dca84['category'])return!0x0;if('container'==_0x2dca84['category']&&_0x2dca84['elementId']!=_0x3999f0['elementId'])return!0x1;return _0x2dca84['element']['name']==_0x3999f0['element']['name'];}(_0x17aa33,_0x8cbdbe)));}function _(_0xd8c217){return k({'name':_0xd8c217['name'],...Object['fromEntries'](_0xd8c217['getAttributes']())});}export{dt as AriaDescriptionView,vt as ConfirmMixin,St as DATA_ID_MODEL_ATTRIBUTE,Et as DATA_ID_VIEW_ATTRIBUTE,At as DocumentCompare,It as FOCUS_ANNOTATION_KEYSTROKE,ft as LateFocusButtonView,gt as LateFocusDropdownButtonView,C as Permissions,kt as SuggestionsConversion,ht as UserView,ct as Users,mt as fixElementSuggestionRange,wt as getAllMarkersDomElementsSorted,pt as getDateTimeFormatter,yt as getMarkerDomElement,k as hashObject,Ct as sanitizeEditorConfig,_t as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,xt as surroundingMarkersDetector,bt as trimHtml};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
|
3
|
-
"version": "47.7.0
|
|
3
|
+
"version": "47.7.0",
|
|
4
4
|
"description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"type": "module",
|
|
33
33
|
"main": "src/index.js",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ckeditor/ckeditor5-engine": "47.7.0
|
|
36
|
-
"@ckeditor/ckeditor5-comments": "47.7.0
|
|
37
|
-
"@ckeditor/ckeditor5-core": "47.7.0
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "47.7.0
|
|
39
|
-
"@ckeditor/ckeditor5-link": "47.7.0
|
|
40
|
-
"@ckeditor/ckeditor5-list": "47.7.0
|
|
41
|
-
"@ckeditor/ckeditor5-theme-lark": "47.7.0
|
|
42
|
-
"@ckeditor/ckeditor5-track-changes": "47.7.0
|
|
43
|
-
"@ckeditor/ckeditor5-ui": "47.7.0
|
|
44
|
-
"@ckeditor/ckeditor5-utils": "47.7.0
|
|
45
|
-
"@ckeditor/ckeditor5-widget": "47.7.0
|
|
46
|
-
"ckeditor5": "47.7.0
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "47.7.0",
|
|
36
|
+
"@ckeditor/ckeditor5-comments": "47.7.0",
|
|
37
|
+
"@ckeditor/ckeditor5-core": "47.7.0",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "47.7.0",
|
|
39
|
+
"@ckeditor/ckeditor5-link": "47.7.0",
|
|
40
|
+
"@ckeditor/ckeditor5-list": "47.7.0",
|
|
41
|
+
"@ckeditor/ckeditor5-theme-lark": "47.7.0",
|
|
42
|
+
"@ckeditor/ckeditor5-track-changes": "47.7.0",
|
|
43
|
+
"@ckeditor/ckeditor5-ui": "47.7.0",
|
|
44
|
+
"@ckeditor/ckeditor5-utils": "47.7.0",
|
|
45
|
+
"@ckeditor/ckeditor5-widget": "47.7.0",
|
|
46
|
+
"ckeditor5": "47.7.0",
|
|
47
47
|
"diff": "8.0.3",
|
|
48
48
|
"luxon": "3.6.1",
|
|
49
49
|
"@types/luxon": "3.6.2"
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4ea458=_0x1153;(function(_0x20fc2c,_0x37b0b7){const _0x35d65a=_0x1153,_0x18f613=_0x20fc2c();while(!![]){try{const _0x2907b4=-parseInt(_0x35d65a(0x9e))/0x1*(-parseInt(_0x35d65a(0xb0))/0x2)+parseInt(_0x35d65a(0xa3))/0x3*(-parseInt(_0x35d65a(0x9b))/0x4)+-parseInt(_0x35d65a(0x97))/0x5*(parseInt(_0x35d65a(0xb1))/0x6)+-parseInt(_0x35d65a(0xb6))/0x7*(parseInt(_0x35d65a(0x9a))/0x8)+parseInt(_0x35d65a(0xa2))/0x9*(parseInt(_0x35d65a(0x9d))/0xa)+-parseInt(_0x35d65a(0x9c))/0xb*(-parseInt(_0x35d65a(0xaf))/0xc)+parseInt(_0x35d65a(0xa8))/0xd*(parseInt(_0x35d65a(0x98))/0xe);if(_0x2907b4===_0x37b0b7)break;else _0x18f613['push'](_0x18f613['shift']());}catch(_0x12d47f){_0x18f613['push'](_0x18f613['shift']());}}}(_0xde1b,0x3fa5b));function _0x1153(_0x2b8681,_0x3090b9){const _0xde1bc9=_0xde1b();return _0x1153=function(_0x1153b7,_0x34ffd0){_0x1153b7=_0x1153b7-0x97;let _0x118c12=_0xde1bc9[_0x1153b7];return _0x118c12;},_0x1153(_0x2b8681,_0x3090b9);}function _0xde1b(){const _0x15f931=['3889696YFcxyT','61576FQSePI','671JgnvlW','906040ZXKvel','16RyTFSm','afterInit','downcastDispatcher','plugins','27fRYqot','24CMmtvi','setAttribute','has','editor','data','35048HljnTw','tableCell','addClass','options','showSuggestionHighlights','markerName','addMarker:suggestion','72528soRsde','41590mIZCcb','30SfRUZp','Table','highest','classes','writer','7egnPKd','element','item','mapper','data-suggestion-id','data-author-id','297265etvthA','1008QrgWBP','toViewElement'];_0xde1b=function(){return _0x15f931;};return _0xde1b();}import{Plugin as _0x3bb980}from'ckeditor5/src/core.js';import{toArray as _0x349f33}from'ckeditor5/src/utils.js';import{setHighlightHandling as _0x144b3e}from'ckeditor5/src/widget.js';import{splitSuggestionMarkerName as _0x31942a}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionTable extends _0x3bb980{[_0x4ea458(0x9f)](){const _0x556eb6=_0x4ea458,_0x3bdcde=this[_0x556eb6(0xa6)];if(!_0x3bdcde[_0x556eb6(0xa1)][_0x556eb6(0xa5)](_0x556eb6(0xb2)))return;_0x3bdcde[_0x556eb6(0xa7)][_0x556eb6(0xa0)]['on'](_0x556eb6(0xae),(_0x4bbbc4,_0x552204,_0x503586)=>{((_0x26ddd5,_0x22b949,_0x47873c)=>{const _0x3de20b=_0x1153;if(!_0x47873c[_0x3de20b(0xab)][_0x3de20b(0xac)])return;const _0x39ce91=_0x22b949[_0x3de20b(0xb8)];if(!_0x39ce91||!_0x39ce91['is'](_0x3de20b(0xb7),_0x3de20b(0xa9)))return;const _0x553899=_0x47873c[_0x3de20b(0xb9)][_0x3de20b(0x99)](_0x39ce91);if(_0x553899){const {id:_0x24acbc,authorId:_0x18f44f}=_0x31942a(_0x22b949[_0x3de20b(0xad)]);_0x144b3e(_0x553899,_0x47873c[_0x3de20b(0xb5)],(_0x459ab7,_0x360e45,_0x1ff2a7)=>{const _0x8eee96=_0x3de20b;_0x1ff2a7[_0x8eee96(0xaa)](_0x349f33(_0x360e45[_0x8eee96(0xb4)]),_0x459ab7),_0x1ff2a7[_0x8eee96(0xa4)](_0x8eee96(0xba),_0x24acbc,_0x459ab7),_0x1ff2a7[_0x8eee96(0xa4)](_0x8eee96(0xbb),_0x18f44f,_0x459ab7);});}})(0x0,_0x552204,_0x503586);},{'priority':_0x556eb6(0xb3)});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x375b1=_0x1651;(function(_0x2133e8,_0x16cc18){const _0x4022c6=_0x1651,_0xf811=_0x2133e8();while(!![]){try{const _0x5dd9d6=-parseInt(_0x4022c6(0x12d))/0x1*(parseInt(_0x4022c6(0x128))/0x2)+-parseInt(_0x4022c6(0x131))/0x3*(parseInt(_0x4022c6(0x144))/0x4)+parseInt(_0x4022c6(0x127))/0x5*(-parseInt(_0x4022c6(0x147))/0x6)+parseInt(_0x4022c6(0x137))/0x7*(parseInt(_0x4022c6(0x12e))/0x8)+parseInt(_0x4022c6(0x134))/0x9+-parseInt(_0x4022c6(0x141))/0xa*(parseInt(_0x4022c6(0x145))/0xb)+parseInt(_0x4022c6(0x146))/0xc;if(_0x5dd9d6===_0x16cc18)break;else _0xf811['push'](_0xf811['shift']());}catch(_0x5d44a4){_0xf811['push'](_0xf811['shift']());}}}(_0x5115,0x3e767));import{View as _0x5d3b25,IconView as _0x2e2737}from'ckeditor5/src/ui.js';import{IconNotification as _0x58b7b3}from'ckeditor5/src/icons.js';import'../../../theme/users.css';function _0x5115(){const _0x1c4398=['124BUcDRH','11MpsFFb','5318064frmRHt','381252YBnbTQ','5WglDEz','26jYyOBE','ck-user__notification','name','initials','ck-user__avatar','22286jSoGqC','9496ciiGYu','content','ck-user__anonymous','18747BSSMPA','ck-user','isAnonymous','3270168YYevfw','ck-user__icon','notificationView','931wdhHJY','ck\x20ck-user__name\x20ck-user__name--hidden','setTemplate','extendTemplate','ck\x20ck-user__name','push','ck-user_me','div','ck-user__img','isMe','1615690EkSzgb','url(\x27','avatar'];_0x5115=function(){return _0x1c4398;};return _0x5115();}function _0x1651(_0x136dcc,_0x51bd5a){const _0x5115a7=_0x5115();return _0x1651=function(_0x165168,_0x2f5b92){_0x165168=_0x165168-0x127;let _0x54bc6c=_0x5115a7[_0x165168];return _0x54bc6c;},_0x1651(_0x136dcc,_0x51bd5a);}export class UserView extends _0x5d3b25{[_0x375b1(0x12a)];[_0x375b1(0x136)];constructor(_0x36a5b6,_0x23c287,_0x4b2abd){const _0x31b88c=_0x375b1;super(_0x36a5b6),this[_0x31b88c(0x12a)]=_0x23c287[_0x31b88c(0x12a)],this[_0x31b88c(0x136)]=null;const _0x223303=['ck',_0x31b88c(0x132)],_0x1d4991=['ck',_0x31b88c(0x13f)];if(_0x23c287[_0x31b88c(0x133)]&&_0x1d4991[_0x31b88c(0x13c)](_0x31b88c(0x130)),!_0x23c287[_0x31b88c(0x133)]&&_0x23c287[_0x31b88c(0x140)]&&_0x223303[_0x31b88c(0x13c)](_0x31b88c(0x13d)),_0x23c287[_0x31b88c(0x143)]&&_0x1d4991[_0x31b88c(0x13c)](_0x31b88c(0x12c)),_0x4b2abd){const _0x5149fd=new _0x2e2737();_0x5149fd[_0x31b88c(0x13a)]({'attributes':{'class':[_0x31b88c(0x135)]}}),_0x5149fd[_0x31b88c(0x12f)]=_0x58b7b3,this[_0x31b88c(0x136)]={'tag':_0x31b88c(0x13e),'attributes':{'class':['ck',_0x31b88c(0x129)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4b2abd},'children':[_0x5149fd]};}const _0x1d966e=[{'tag':_0x31b88c(0x13e),'attributes':{'class':_0x1d4991,'style':{'background-image':_0x23c287[_0x31b88c(0x143)]?_0x31b88c(0x142)+_0x23c287[_0x31b88c(0x143)]+'\x27)':''}}},{'tag':_0x31b88c(0x13e),'attributes':{'class':_0x23c287[_0x31b88c(0x143)]?_0x31b88c(0x138):_0x31b88c(0x13b),'aria-label':_0x23c287[_0x31b88c(0x12a)]},'children':[{'text':_0x23c287[_0x31b88c(0x12b)]}]}];this[_0x31b88c(0x136)]&&_0x1d966e[_0x31b88c(0x13c)](this[_0x31b88c(0x136)]),this[_0x31b88c(0x139)]({'tag':_0x31b88c(0x13e),'attributes':{'class':_0x223303,'data-user-id':_0x23c287['id']},'children':_0x1d966e});}}
|