@ckeditor/ckeditor5-collaboration-core 47.6.0-alpha.9 → 47.6.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 _0x599dd4,Editor as _0x1d60eb,Plugin as _0x203f87}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x36d35e,Collection as _0x2144f7,uid as _0x21e0d6,toArray as rt,first as _0x2825cb,FocusTracker as _0x25a297,KeystrokeHandler as _0x17972b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0xf88a3b,IconView as st,ButtonView as ts,DropdownButtonView as _0x4673e5,FocusCycler as _0x158877,isViewWithFocusCycler as _0x1d74d9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as ct,IconCheck as _0x4527be,IconCancel as _0x32cc21}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as it,toWidget as _0xdfee73}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x26592a,MoveOperation as _0x417e9d,ModelPosition as _0x26ff72,ModelRange as _0x1abbd6,MarkerOperation as _0x293484,MergeOperation as _0x1c2a5b,SplitOperation as _0x2c9c07,RenameOperation as _0x543a65,AttributeOperation as _0x8b2371,ModelTreeWalker as _0x5e3ea0,ModelText as _0x53bdfc}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x877c4}from'diff';class C extends _0x599dd4{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x2fdcd3,_0x4a94a5){let _0x26ab26;if(_0x4a94a5||(_0x4a94a5=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x4a94a5?_0x26ab26=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x26ab26=this['context']['editors']['find'](_0x5be3e5=>_0x5be3e5['config']['get']('collaboration.channelId')==_0x4a94a5)),!_0x26ab26)throw new _0x36d35e('permissions-set-permissions-invalid-channel-id',null);const _0x574cf6=_0x26ab26['plugins'],_0x576dbd=_0x574cf6['has']('CommentsRepository')?_0x574cf6['get']('CommentsRepository'):void 0x0,_0x1e93e1=_0x574cf6['has']('CommentsOnly')&&_0x574cf6['get']('CommentsOnly'),_0x3edb9b=_0x2fdcd3['includes']('document:write'),_0x33b719=_0x2fdcd3['includes']('comment:modify_all'),_0x4031d8=_0x2fdcd3['includes']('comment:admin'),_0x477b66=_0x2fdcd3['includes']('comment:write'),_0x3e368a=_0x477b66||_0x4031d8,_0x39e3e0=_0x3e368a||_0x33b719,_0x2054e7=_0x3edb9b||_0x3e368a;(_0x1e93e1&&(_0x1e93e1['isEnabled']=!_0x3edb9b&&_0x39e3e0),_0x26ab26 instanceof _0x1d60eb)&&(!(_0x3edb9b||_0x39e3e0&&_0x576dbd)?_0x26ab26['enableReadOnlyMode']('no-permissions'):_0x26ab26['disableReadOnlyMode']('no-permissions'));if(_0x576dbd){_0x576dbd['setPermissions']({'admin':_0x4031d8,'modifyAll':_0x33b719,'write':_0x477b66,'resolve':_0x2054e7},_0x4a94a5);const _0x27c3ba=_0x26ab26 instanceof _0x1d60eb&&_0x26ab26['commands']['get']('addCommentThread');_0x27c3ba&&(_0x3e368a?_0x27c3ba['clearForceDisabled']('noPermissions'):_0x27c3ba['forceDisabled']('noPermissions'));}}}function U(_0x47bb59,_0xc5770d){const t=_0x47bb59['t'];switch(_0xc5770d){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 _0x599dd4{['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(_0x14ff4e){super(_0x14ff4e),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x2144f7(),this['_locale']=_0x14ff4e['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:_0x5697d4,name:_0xe64cbe,..._0x5de255}){if(!_0x5697d4||'string'!=typeof _0x5697d4)throw new _0x36d35e('users-add-invalid-id');if(this['users']['has'](_0x5697d4))throw new _0x36d35e('users-add-duplicated-id',null,{'id':_0x5697d4});const _0x351123=this['context']['config']['get']('users.getInitialsCallback'),_0x2ce0f9={..._0x5de255,'id':_0x5697d4,'name':A(this['_locale'],_0xe64cbe),'color':this['_getNextColor']()};_0x2ce0f9['name']=A(this['_locale'],_0x2ce0f9['name']);const _0x5bb873=new lt(_0x2ce0f9,_0x351123);return this['users']['add'](_0x5bb873),_0x5bb873;}['getUser'](_0x1ee14b){return this['users']['get'](_0x1ee14b);}['useAnonymousUser'](){const _0x3f4120=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x3f4120);}['defineMe'](_0x10d805){if(this['_myId'])throw new _0x36d35e('users-me-already-defined',null);const _0x1cf362=this['getUser'](_0x10d805);if(!_0x1cf362)throw new _0x36d35e('users-me-missing-user',null);this['_myId']=_0x10d805,_0x1cf362['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x1a93f3=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x1a93f3&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x5e64fe=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x5e64fe,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x35f9be,_0x1f8798){this['id']=_0x35f9be['id'],this['color']=_0x35f9be['color'],this['name']=_0x35f9be['name'],this['initials']=_0x1f8798?_0x1f8798(this['name']):this['_computeInitials'](),this['avatar']=_0x35f9be['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x4a2a8b=this['name']['split']('\x20')['filter'](_0xb00ab=>/^[\p{Letter}]/u['test'](_0xb00ab));return 0x1===_0x4a2a8b['length']?this['_getInitial'](_0x4a2a8b[0x0]):0x0===_0x4a2a8b['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x4a2a8b[0x0])+this['_getInitial'](_0x4a2a8b[_0x4a2a8b['length']-0x1]);}['_getInitial'](_0x47ab5d){return String['fromCodePoint'](_0x47ab5d['codePointAt'](0x0))['toUpperCase']();}}function A(_0x39a197,_0x40435d=''){return''==(_0x40435d=_0x40435d['trim']())?U(_0x39a197,'Anonymous'):_0x40435d;}class ut{['_id'];constructor(_0x36282e){this['_id']=_0x36282e;}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 _0xf88a3b{['name'];['notificationView'];constructor(_0x39fe41,_0x3c0b98,_0x4c1afe){super(_0x39fe41),this['name']=_0x3c0b98['name'],this['notificationView']=null;const _0x11960a=['ck','ck-user'],_0x2af127=['ck','ck-user__img'];if(_0x3c0b98['isAnonymous']&&_0x2af127['push']('ck-user__anonymous'),!_0x3c0b98['isAnonymous']&&_0x3c0b98['isMe']&&_0x11960a['push']('ck-user_me'),_0x3c0b98['avatar']&&_0x2af127['push']('ck-user__avatar'),_0x4c1afe){const _0x159d60=new st();_0x159d60['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x159d60['content']=ct,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4c1afe},'children':[_0x159d60]};}const _0x71201a=[{'tag':'div','attributes':{'class':_0x2af127,'style':{'background-image':_0x3c0b98['avatar']?'url(\x27'+_0x3c0b98['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x3c0b98['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x3c0b98['name']},'children':[{'text':_0x3c0b98['initials']}]}];this['notificationView']&&_0x71201a['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x11960a,'data-user-id':_0x3c0b98['id']},'children':_0x71201a});}}class dt extends _0xf88a3b{['id'];constructor(_0x1fc56c,_0x457fac){super(_0x1fc56c),this['id']='ck-aria-description-'+_0x21e0d6(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x457fac}]});}}class ft extends ts{['render'](){super['render'](),re(this);}}class gt extends _0x4673e5{['render'](){super['render'](),re(this);}}function re(_0x3915ed){_0x3915ed['listenTo'](_0x3915ed['element'],'mousedown',(_0x38bed5,_0x5030ab)=>{_0x5030ab['stopPropagation'](),_0x5030ab['preventDefault']();}),_0x3915ed['listenTo'](_0x3915ed['element'],'mouseup',()=>{_0x3915ed['element']['focus']();});}function v(_0x28a4ea){const _0x11ba47=_0x28a4ea['split'](':');return{'group':_0x11ba47[0x0],'type':_0x11ba47[0x1],'subType':_0x11ba47['length']>=0x5?_0x11ba47[0x2]:null,'id':_0x11ba47['length']<0x5?_0x11ba47[0x2]:_0x11ba47[0x3],'authorId':_0x11ba47['length']<0x5?_0x11ba47[0x3]:_0x11ba47[0x4],'markerCount':0x6==_0x11ba47['length']?_0x11ba47[0x5]:null};}function mt(_0x382fdd,_0x4f00ca){const _0x42b540=_0x382fdd['end']['nodeBefore'];if(_0x42b540&&_0x42b540['is']('element')&&_0x4f00ca['schema']['isBlock'](_0x42b540)&&!_0x4f00ca['schema']['isObject'](_0x42b540)){const _0x55b63d=_0x4f00ca['createPositionAt'](_0x42b540,'end');return _0x4f00ca['createRange'](_0x382fdd['start'],_0x55b63d);}return _0x382fdd;}class M extends _0x203f87{['afterInit'](){const _0x1bd9f8=this['editor'];if(!_0x1bd9f8['plugins']['has']('AlignmentEditing'))return;_0x1bd9f8['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x203f87{['afterInit'](){const _0x1a20a3=this['editor'],_0x25e68d=_0x1a20a3['plugins']['get']('SuggestionsConversion');for(const _0x4be267 of ii){if(!_0x1a20a3['plugins']['has'](_0x4be267))continue;const _0x5dbabb=_0x4be267['slice'](0x0,-0x7)['toLowerCase']();_0x25e68d['registerInlineAttribute'](_0x5dbabb);}}}class I extends _0x203f87{['afterInit'](){const _0x5bf4f0=this['editor'],_0x58ddd0=_0x5bf4f0['plugins']['get']('SuggestionsConversion');_0x5bf4f0['plugins']['has']('BookmarkEditing')&&_0x58ddd0['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x203f87{['afterInit'](){const _0x73b5ff=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x36144e,commandName:_0x4b1613}of no)this['editor']['plugins']['has'](_0x36144e)&&_0x73b5ff['registerInlineAttribute'](_0x4b1613);}}class T extends _0x203f87{['afterInit'](){const {editor:_0x188639}=this;if(!_0x188639['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x358084=_0x188639['plugins']['get']('SuggestionsConversion');_0x358084['registerBlockAttribute']('footnotesListStyle'),_0x358084['registerBlockAttribute']('footnotesListStart');}}class E extends _0x203f87{['afterInit'](){const _0x4e2993=this['editor'];if(!_0x4e2993['plugins']['has']('HighlightEditing'))return;_0x4e2993['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class S extends _0x203f87{['afterInit'](){const _0x16069d=this['editor'];if(!_0x16069d['plugins']['has']('HtmlEmbed'))return;_0x16069d['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class $ extends _0x203f87{['afterInit'](){const _0x4cb0ca=this['editor'];if(!_0x4cb0ca['plugins']['has']('ImageEditing'))return;const _0x53802a=_0x4cb0ca['plugins']['get']('SuggestionsConversion');_0x53802a['registerBlockAttribute']('src'),_0x4cb0ca['plugins']['has']('ImageResize')&&_0x53802a['registerBlockAttribute']('resizedWidth'),_0x4cb0ca['plugins']['has']('ImageTextAlternativeEditing')&&_0x53802a['registerBlockAttribute']('alt'),_0x4cb0ca['plugins']['has']('PictureEditing')&&_0x53802a['registerBlockAttribute']('sources'),_0x4cb0ca['plugins']['has']('ImageSizeAttributes')&&(_0x53802a['registerBlockAttribute']('width'),_0x53802a['registerBlockAttribute']('height'));}}class x extends _0x203f87{['afterInit'](){const _0x1d0ff7=this['editor'],_0x161aaa=_0x1d0ff7['plugins']['get']('SuggestionsConversion');_0x1d0ff7['plugins']['has']('IndentBlock')&&(_0x161aaa['registerBlockAttribute']('blockIndent'),_0x1d0ff7['plugins']['has']('ListEditing')&&(_0x161aaa['registerBlockAttribute']('blockIndentList'),_0x161aaa['registerBlockAttribute']('blockIndentListItem')));}}class H extends _0x203f87{['afterInit'](){const _0x3a2ec5=this['editor'];if(!_0x3a2ec5['plugins']['has']('LineHeight'))return;_0x3a2ec5['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class N extends _0x203f87{['afterInit'](){const _0x377060=this['editor'];if(!_0x377060['plugins']['has']('LinkEditing'))return;const _0x1cfce2=_0x377060['plugins']['get']('SuggestionsConversion'),_0x4cb444=_0x377060['commands']['get']('link');_0x1cfce2['registerInlineAttribute']('linkHref');for(const _0x41c126 of _0x4cb444['manualDecorators'])_0x1cfce2['registerInlineAttribute'](_0x41c126['id']);}}class P extends _0x203f87{['afterInit'](){const _0x42bfa3=this['editor'];if(!_0x42bfa3['plugins']['has']('ListEditing'))return;const _0x6a23ae=_0x42bfa3['plugins']['get']('SuggestionsConversion'),_0x13b93a=_0x42bfa3['plugins']['has']('TodoListEditing');_0x6a23ae['registerBlockAttribute']('listItemId'),_0x6a23ae['registerBlockAttribute']('listType'),_0x6a23ae['registerBlockAttribute']('listIndent'),_0x13b93a&&_0x6a23ae['registerBlockAttribute']('todoListChecked');}}class K extends _0x203f87{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ee34e=this['editor']['config']['get']('list.properties'),_0xd64add=this['editor']['plugins']['get']('SuggestionsConversion');_0x1ee34e['styles']&&_0xd64add['registerBlockAttribute']('listStyle'),_0x1ee34e['reversed']&&_0xd64add['registerBlockAttribute']('listReversed'),_0x1ee34e['startIndex']&&_0xd64add['registerBlockAttribute']('listStart');}}class q extends _0x203f87{['afterInit'](){const _0x3d347f=this['editor'],_0xbf3c57=_0x3d347f['plugins']['get']('SuggestionsConversion');_0x3d347f['plugins']['has']('MultiLevelList')&&_0xbf3c57['registerBlockAttribute']('listMarkerStyle');}}class z extends _0x203f87{['afterInit'](){const _0x2eb594=this['editor'];if(!_0x2eb594['plugins']['has']('Style')||!_0x2eb594['plugins']['has']('DataSchema')||!_0x2eb594['config']['get']('style.definitions'))return;const _0x2d7708=_0x2eb594['plugins']['get']('SuggestionsConversion'),_0x463ac0=_0x2eb594['config']['get']('style.definitions'),_0x49e1c6=_0x2eb594['plugins']['get']('GeneralHtmlSupport'),_0x1856ad=_0x2eb594['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2eb594['plugins']['get']('DataSchema'),_0x463ac0),_0x3b33c7=new Set();for(const _0x3a9179 of _0x1856ad['block']){const _0x2fb696=_0x49e1c6['getGhsAttributeNameForElement'](_0x3a9179['element']);_0x3b33c7['add'](_0x2fb696);}const _0x4d9462=new Set();for(const _0x58dbdc of _0x1856ad['inline']){const _0x461bf3=_0x49e1c6['getGhsAttributeNameForElement'](_0x58dbdc['element']);_0x4d9462['add'](_0x461bf3);for(const _0x48ac85 of _0x58dbdc['ghsAttributes'])_0x4d9462['add'](_0x48ac85);}for(const _0xe42cb3 of _0x3b33c7)_0x2d7708['registerBlockAttribute'](_0xe42cb3);for(const _0x5dc2fa of _0x4d9462)_0x2d7708['registerInlineAttribute'](_0x5dc2fa);}}class O extends _0x203f87{['afterInit'](){const _0x23dbfd=this['editor'];if(!_0x23dbfd['plugins']['has']('TableEditing'))return;const _0x260399=_0x23dbfd['plugins']['get']('SuggestionsConversion');_0x260399['registerBlockAttribute']('headingRows'),_0x260399['registerBlockAttribute']('headingColumns');}}class R extends _0x203f87{['afterInit'](){const {plugins:_0x4782e0}=this['editor'];if(!_0x4782e0['has']('TablePropertiesEditing'))return;const _0x37634b=_0x4782e0['get']('SuggestionsConversion'),_0x40571c=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x936d10 of _0x40571c)_0x37634b['registerBlockAttribute'](_0x936d10);}}class F extends _0x203f87{['afterInit'](){const _0x24c237=this['editor'],_0x51697e=_0x24c237['plugins']['get']('SuggestionsConversion');_0x24c237['plugins']['has']('TableLayout')&&_0x51697e['registerBlockAttribute']('tableType');}}class G extends _0x203f87{['afterInit'](){const _0x5ba14e=this['editor'],_0x1f1efa=this['editor']['plugins']['get']('SuggestionsConversion');_0x5ba14e['plugins']['has']('Uploadcare')&&_0x5ba14e['plugins']['has']('UploadcareImageEdit')&&_0x1f1efa['registerBlockAttribute']('uploadcareImageId');}}class J extends _0x203f87{['afterInit'](){const _0x422346=this['editor'];if(!_0x422346['plugins']['has']('ShiftEnter'))return;const _0x4b855f=_0x422346['plugins']['get']('SuggestionsConversion'),_0x6e561f=(_0x1141c0,_0x1ea0c2,_0x58d7fa,_0x542d8e)=>{if(_0x542d8e&&!_0x58d7fa['options']['showSuggestionHighlights'])return;if(!_0x58d7fa['consumable']['test'](_0x1ea0c2['markerRange'],_0x1141c0['name']))return;const _0x5a9a87=_0x422346['model'];for(const _0x33280e of _0x1ea0c2['markerRange']['getItems']()){if(!_0x33280e['is']('element','softBreak'))continue;const _0x66022b='deletion'==_0x1ea0c2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3ba6ca,authorId:_0x390669}=v(_0x1ea0c2['markerName']),_0x18e47b=_0x58d7fa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x66022b,'data-suggestion':_0x3ba6ca,'data-author-id':_0x390669}),_0x261cb2=_0x58d7fa['mapper']['toViewPosition'](_0x5a9a87['createPositionBefore'](_0x33280e));!_0x542d8e&&_0x4b855f['_activeMarkers']['includes'](_0x1ea0c2['markerName'])&&_0x58d7fa['writer']['addClass']('ck-suggestion-marker--active',_0x18e47b),_0x58d7fa['writer']['insert'](_0x261cb2,_0x18e47b),_0x58d7fa['mapper']['bindElementToMarker'](_0x18e47b,_0x1ea0c2['markerName']);}};_0x422346['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0xaacfef,_0x4b2a0c,_0x42b531)=>{_0x6e561f(_0xaacfef,_0x4b2a0c,_0x42b531,!0x1);},{'priority':'high'}),_0x422346['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b9ac6,_0x39bd0c,_0x30c77f)=>{_0x6e561f(_0x2b9ac6,_0x39bd0c,_0x30c77f,!0x0);},{'priority':'high'});}}class L extends _0x203f87{['afterInit'](){const _0x1b1c26=this['editor'];_0x1b1c26['plugins']['has']('MediaEmbedEditing')&&(_0x1b1c26['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24d9de,{writer:_0xab2541,options:_0x2e886c})=>{if(_0x2e886c['showSuggestionHighlights'])return _0xab2541['createEmptyElement']('div');},'converterPriority':'high'}),_0x1b1c26['data']['downcastDispatcher']['on']('attribute:url:media',(_0x249933,_0x3b7682,_0x1e6718)=>{_0x1e6718['options']['showSuggestionHighlights']&&_0x249933['stop']();},{'priority':'high'}));}}class Q extends _0x203f87{['afterInit'](){const _0x325237=this['editor'];if(!_0x325237['plugins']['has']('Table'))return;_0x325237['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4514fc,_0x541d3c,_0x2a49aa)=>{((_0x208be6,_0x328e54,_0x37c43a)=>{if(!_0x37c43a['options']['showSuggestionHighlights'])return;const _0x42da02=_0x328e54['item'];if(!_0x42da02||!_0x42da02['is']('element','tableCell'))return;const _0x5acddf=_0x37c43a['mapper']['toViewElement'](_0x42da02);if(_0x5acddf){const {id:_0xf17044,authorId:_0x45d7d7}=v(_0x328e54['markerName']);it(_0x5acddf,_0x37c43a['writer'],(_0xeff35a,_0x55614e,_0x431e8e)=>{_0x431e8e['addClass'](rt(_0x55614e['classes']),_0xeff35a),_0x431e8e['setAttribute']('data-suggestion-id',_0xf17044,_0xeff35a),_0x431e8e['setAttribute']('data-author-id',_0x45d7d7,_0xeff35a);});}})(0x0,_0x541d3c,_0x2a49aa);},{'priority':'highest'});}}class V extends _0x203f87{['afterInit'](){const _0x2b063c=this['editor'];_0x2b063c['plugins']['has']('HorizontalLineEditing')&&_0x2b063c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x46618e,{writer:_0x470812,options:_0x5d1f7b})=>{if(!_0x5d1f7b['showSuggestionHighlights'])return null;const _0x2fd721=_0x470812['createContainerElement']('div'),_0x52d338=_0x470812['createEmptyElement']('hr');return _0x470812['addClass']('ck-horizontal-line',_0x2fd721),_0x470812['insert'](_0x470812['createPositionAt'](_0x2fd721,0x0),_0x52d338),_0x2fd721;},'converterPriority':'high'});}}class W extends _0x203f87{['afterInit'](){const {plugins:_0x304b90,model:_0x4f32fb}=this['editor'];if(!_0x304b90['has']('TableCellPropertiesEditing'))return;const _0x28547c=_0x304b90['get']('SuggestionsConversion'),_0x384d90=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x1c27d3 of _0x384d90)_0x28547c['registerBlockAttribute'](_0x1c27d3);_0x4f32fb['schema']['checkAttribute']('tableCell','tableCellType')&&_0x28547c['registerBlockAttribute']('tableCellType');}}class kt extends _0x203f87{['_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 _0xe42191=this['editor'],_0x1f0526=(_0x2898df,_0x387581,_0x512263)=>{const {id:_0x50e4bc,authorId:_0x128f5a,type:_0x19e8fb,subType:_0x51ff74}=v(_0x2898df['markerName']),_0x4010b7=['ck-suggestion-marker',this['_getClassName'](_0x19e8fb,_0x51ff74)];let _0x23d50e=0xbb8;return!_0x512263&&(this['_activeMarkers']['includes'](_0x2898df['markerName'])&&(_0x4010b7['push']('ck-suggestion-marker--active'),_0x23d50e=0xbc2)),('deletion'==_0x19e8fb&&(_0x23d50e+=0x5),{'classes':_0x4010b7,'attributes':{'data-suggestion':_0x50e4bc,'data-author-id':_0x128f5a},'priority':_0x23d50e});};_0xe42191['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5c731d,_0x3717bc)=>_0x1f0526(_0x5c731d,0x0,!0x1)}),_0xe42191['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xcce370,_0x3b7c72)=>_0x1f0526(_0xcce370,0x0,!0x0)}),_0xe42191['conversion']['for']('dataDowncast')['add'](_0x3941f4=>{_0x3941f4['on']('addMarker:suggestion',(_0x5ae52e,_0x110854,_0x21472f)=>{if(!_0x21472f['options']['showSuggestionHighlights'])return;const _0x5f2dbf=_0x110854['item'];if(!_0x5f2dbf)return;const _0x16425a=_0x21472f['mapper']['toViewElement'](_0x5f2dbf);_0xe42191['model']['schema']['isObject'](_0x5f2dbf)&&_0x16425a&&!_0x16425a['getCustomProperty']('widget')&&_0x16425a['is']('containerElement')&&_0xdfee73(_0x16425a,_0x21472f['writer']);},{'priority':'high'});});const _0x4b2628=(_0x58cd76,_0x291e52,_0x202d57,_0x319ee1,_0x11e365)=>{if(_0x319ee1&&!_0x202d57['options']['showSuggestionHighlights'])return;if(!_0x291e52['item'])return;const {id:_0x1bc643,authorId:_0x28f808,subType:_0x2b5f9d}=v(_0x291e52['markerName']);if(_0x11e365){const _0x2aaa54=_0x2b5f9d['split']('|')[0x0];if(!this['isBlockAttribute'](_0x2aaa54))return;}if(_0x291e52['item']['is']('selection'))return void _0x202d57['consumable']['consume'](_0x291e52['item'],_0x58cd76['name']);const _0x5b3a6b=_0x202d57['mapper']['toViewElement'](_0x291e52['item']);if(_0x291e52['item']['is']('element')&&_0xe42191['model']['schema']['isBlock'](_0x291e52['item'])&&!_0x5b3a6b['getCustomProperty']('addHighlight')){_0x202d57['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5b3a6b),_0x202d57['writer']['setAttribute']('data-suggestion',_0x1bc643,_0x5b3a6b),_0x202d57['writer']['setAttribute']('data-author-id',_0x28f808,_0x5b3a6b),_0x202d57['mapper']['bindElementToMarker'](_0x5b3a6b,_0x291e52['markerName']),_0x319ee1||(this['_activeMarkers']['includes'](_0x291e52['markerName'])?_0x202d57['writer']['addClass']('ck-suggestion-marker--active',_0x5b3a6b):_0x202d57['writer']['removeClass']('ck-suggestion-marker--active',_0x5b3a6b));for(const _0x833e23 of _0xe42191['model']['createRangeIn'](_0x291e52['item'])['getItems']())_0x202d57['consumable']['consume'](_0x833e23,_0x58cd76['name']);_0x202d57['consumable']['consume'](_0x291e52['item'],_0x58cd76['name']);}},_0x47a5f9=(_0x5df93f,_0x4313b6,_0x947114,_0x4bb964)=>{const _0x921302=_0x947114['mapper']['markerNameToElements'](_0x4313b6['markerName']);if(_0x921302){if(_0x4bb964){const {subType:_0x5c0a7d}=v(_0x4313b6['markerName']),_0x2cc7ae=_0x5c0a7d['split']('|')[0x0];if(!this['isBlockAttribute'](_0x2cc7ae))return;}for(const _0x459a3e of _0x921302)_0x459a3e['getCustomProperty']('addHighlight')||(_0x947114['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x459a3e),_0x947114['writer']['removeAttribute']('data-suggestion',_0x459a3e),_0x947114['writer']['removeAttribute']('data-author-id',_0x459a3e),_0x947114['mapper']['unbindElementFromMarkerName'](_0x459a3e,_0x4313b6['markerName']));}};_0xe42191['conversion']['for']('editingDowncast')['add'](_0x3df290=>{_0x3df290['on']('addMarker:suggestion:formatBlock',(_0x5d51b8,_0xc9d262,_0x1bece3)=>{_0x4b2628(_0x5d51b8,_0xc9d262,_0x1bece3,!0x1,!0x1);},{'priority':'high'});}),_0xe42191['conversion']['for']('editingDowncast')['add'](_0x5bdc91=>{_0x5bdc91['on']('addMarker:suggestion:attribute',(_0x416556,_0x3df984,_0x365c8a)=>{_0x4b2628(_0x416556,_0x3df984,_0x365c8a,!0x1,!0x0);},{'priority':'high'});}),_0xe42191['conversion']['for']('editingDowncast')['add'](_0x495b4d=>{_0x495b4d['on']('removeMarker:suggestion:formatBlock',(_0x289e6b,_0x5cec74,_0x39a3bd)=>{_0x47a5f9(0x0,_0x5cec74,_0x39a3bd,!0x1);},{'priority':'high'});}),_0xe42191['conversion']['for']('editingDowncast')['add'](_0x17ff36=>{_0x17ff36['on']('removeMarker:suggestion:attribute',(_0x50fd7b,_0xb8507e,_0xc9ef2c)=>{_0x47a5f9(0x0,_0xb8507e,_0xc9ef2c,!0x0);},{'priority':'high'});}),_0xe42191['conversion']['for']('dataDowncast')['add'](_0xb42a0a=>{_0xb42a0a['on']('addMarker:suggestion:formatBlock',(_0x316280,_0x899887,_0x760d18)=>{_0x4b2628(_0x316280,_0x899887,_0x760d18,!0x0,!0x1);},{'priority':'highest'});}),_0xe42191['conversion']['for']('dataDowncast')['add'](_0xc6347a=>{_0xc6347a['on']('addMarker:suggestion:attribute',(_0x227889,_0x57192d,_0x5472cf)=>{_0x4b2628(_0x227889,_0x57192d,_0x5472cf,!0x0,!0x0);},{'priority':'highest'});}),_0xe42191['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1ee74f,_0x3f8620)=>{if(_0x3f8620['options']['showSuggestionHighlights']){const {id:_0x5ae8a5,authorId:_0x2e2ac2}=v(_0x1ee74f);return _0x1ee74f['includes'](':split')||_0x1ee74f['includes'](':merge')?{'group':'suggestion','name':_0x1ee74f['substr'](0xb),'attributes':{'data-suggestion':_0x5ae8a5,'data-author-id':_0x2e2ac2}}:null;}return{'group':'suggestion','name':_0x1ee74f['substr'](0xb)};}});const _0x47cfb3=(_0x4cffb9,_0x618050,_0x536386,_0x2aed5a,_0x2939a3)=>{if(_0x2aed5a&&!_0x536386['options']['showSuggestionHighlights'])return;if(!_0x536386['consumable']['test'](_0x618050['markerRange'],_0x4cffb9['name']))return;const _0x5eb1b3=this['_activeMarkers'],_0x4f39c3=_0x618050['markerRange']['getWalker'](),_0x2e4404=_0x618050['markerRange']['start'],_0x5abcd3=_0xe42191['model']['schema'];let _0x16ad4c=null,_0x1a5c3b=null,_0x1b20a3=!0x1,_0x3b8d83=!0x1;for(const _0x1cd561 of _0x4f39c3){const _0x235ee9=_0x1cd561['item'];_0x1b20a3=_0x1b20a3||_0x5abcd3['isContent'](_0x235ee9);const _0x42c394=_0x536386['mapper']['toViewElement'](_0x235ee9);if(_0x42c394&&_0x42c394['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1cd561['type']&&(_0x5abcd3['isBlock'](_0x235ee9)&&!_0x5abcd3['isLimit'](_0x235ee9)&&(_0x235ee9['nextSibling']||_0x2e4404['isAtEnd']?_0x16ad4c&&_0x16ad4c['parent']==_0x235ee9||(_0x16ad4c=_0x235ee9,_0x2499e9(_0x1cd561['previousPosition']),_0x3b8d83=!0x0):_0x1a5c3b=_0x1a5c3b||_0x1cd561['previousPosition']));}function _0x2499e9(_0x167c4e){const {id:_0x521321,authorId:_0x1745fa}=v(_0x618050['markerName']),_0x59606a=_0x536386['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2939a3,'data-suggestion':_0x521321,'data-author-id':_0x1745fa}),_0x3e9b82=_0x536386['mapper']['toViewPosition'](_0x167c4e);!_0x2aed5a&&_0x5eb1b3['includes'](_0x618050['markerName'])&&_0x536386['writer']['addClass']('ck-suggestion-marker--active',_0x59606a),_0x536386['writer']['insert'](_0x3e9b82,_0x59606a),_0x536386['mapper']['bindElementToMarker'](_0x59606a,_0x618050['markerName']);}_0x1b20a3||_0x3b8d83||!_0x1a5c3b||_0x2499e9(_0x1a5c3b);};_0xe42191['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5d3699,_0x4c4348,_0x44eb14)=>{_0x47cfb3(_0x5d3699,_0x4c4348,_0x44eb14,!0x1,'merge');},{'priority':'high'}),_0xe42191['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2e5aa4,_0x18f0af,_0x352152)=>{_0x47cfb3(_0x2e5aa4,_0x18f0af,_0x352152,!0x0,'merge');},{'priority':'high'}),_0xe42191['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4561de,_0x47f174,_0x19d393)=>{_0x47cfb3(_0x4561de,_0x47f174,_0x19d393,!0x1,'split');},{'priority':'high'}),_0xe42191['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22e75e,_0x1c9514,_0x3f8c86)=>{_0x47cfb3(_0x22e75e,_0x1c9514,_0x3f8c86,!0x0,'split');},{'priority':'high'}),_0xe42191['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x262248,_0x291f80,_0x1f2528)=>{((_0x272a1f,_0x59c330,_0x3527f8)=>{const _0x6b4230=_0x3527f8['mapper']['markerNameToElements'](_0x59c330['markerName']);if(_0x6b4230){for(const _0x10e687 of _0x6b4230)(_0x10e687['hasClass']('ck-suggestion-marker-split')||_0x10e687['hasClass']('ck-suggestion-marker-merge'))&&(_0x3527f8['mapper']['unbindElementFromMarkerName'](_0x10e687,_0x59c330['markerName']),_0x3527f8['writer']['remove'](_0x10e687));}})(0x0,_0x291f80,_0x1f2528);},{'priority':'high'});const _0x1bd752=(_0x12c1b2,_0x451f4a,_0x2d19e6,_0x595f49)=>{if(_0x595f49&&!_0x2d19e6['options']['showSuggestionHighlights'])return;const _0x633a31=_0x451f4a['markerRange']['start'],_0x54b48d=_0x451f4a['markerRange']['end'],_0x7f2707=_0xe42191['model']['schema'];if(!_0x633a31['isTouching'](_0x54b48d)||!_0x633a31['nodeAfter'])return;const _0x97e623=_0x633a31['nodeAfter'];if(_0x7f2707['isBlock'](_0x97e623)&&!_0x7f2707['isLimit'](_0x97e623)&&_0x7f2707['checkChild'](_0x97e623,'$text')){if(!_0x2d19e6['consumable']['consume'](_0x451f4a['markerRange'],_0x12c1b2['name']))return;const {id:_0x1f713f,authorId:_0x261e48}=v(_0x451f4a['markerName']),_0x43546b=_0x2d19e6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1f713f,'data-author-id':_0x261e48}),_0x437f6c=_0x2d19e6['mapper']['toViewPosition'](_0x54b48d);!_0x595f49&&this['_activeMarkers']['includes'](_0x451f4a['markerName'])&&_0x2d19e6['writer']['addClass']('ck-suggestion-marker--active',_0x43546b),_0x2d19e6['writer']['insert'](_0x437f6c,_0x43546b),_0x2d19e6['mapper']['bindElementToMarker'](_0x43546b,_0x451f4a['markerName']);}};_0xe42191['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x914258,_0x54de8c,_0x3374db)=>{_0x1bd752(_0x914258,_0x54de8c,_0x3374db,!0x1);},{'priority':'high'}),_0xe42191['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b56b6,_0x59f565,_0x184c8e)=>{_0x1bd752(_0x2b56b6,_0x59f565,_0x184c8e,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x90f584,_0x570687,_0x249146)=>{this['_activeMarkers']=_0x249146['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x558209){this['_blockAttributeKeys']['add'](_0x558209);}['registerInlineAttribute'](_0x23c341){this['_inlineAttributeKeys']['add'](_0x23c341);}['isBlockAttribute'](_0x37018b){return this['_blockAttributeKeys']['has'](_0x37018b);}['isInlineAttribute'](_0x5edb2c){return this['_inlineAttributeKeys']['has'](_0x5edb2c);}['isRegisteredAttribute'](_0xdeb380){return this['isInlineAttribute'](_0xdeb380)||this['isBlockAttribute'](_0xdeb380);}['_getClassName'](_0x18be11,_0x3f2855){if('attribute'!=_0x18be11)return'ck-suggestion-marker-'+_0x18be11;const _0x5c8523=_0x3f2855['split']('|')[0x0];return this['isBlockAttribute'](_0x5c8523)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x4c49eb={},_0x349720){if(void 0x0!==_0x4c49eb['dateTimeFormat']&&'function'!=typeof _0x4c49eb['dateTimeFormat'])throw new _0x36d35e('invalid-date-time-format');return _0x445bee=>{const _0x50ffc6='string'==typeof _0x445bee?tt['fromISO'](_0x445bee):tt['fromJSDate'](_0x445bee),_0x319a67=tt['now'](),_0x1ad6b6=Math['floor'](_0x319a67['diff'](_0x50ffc6,'days')['days']);return _0x4c49eb['dateTimeFormat']?_0x4c49eb['dateTimeFormat'](_0x50ffc6['toJSDate'](),_0x349720&&_0x349720['t']?_0x349720['t']:void 0x0):0x0===_0x1ad6b6?_0x349720?U(_0x349720,'Today')+'\x20'+_0x50ffc6['toFormat']('hh:mma'):_0x50ffc6['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x1ad6b6?_0x349720?U(_0x349720,'Yesterday')+'\x20'+_0x50ffc6['toFormat']('hh:mma'):_0x50ffc6['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x1ad6b6<0x7?_0x349720?U(_0x349720,'Last')+'\x20'+U(_0x349720,_0x50ffc6['toFormat']('EEEE'))+'\x20'+_0x50ffc6['toFormat']('hh:mma'):_0x50ffc6['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x50ffc6['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x348b3e,_0x3dcc18){const _0x57180a=_0x348b3e['mapper']['markerNameToElements'](_0x3dcc18['name']);if(!_0x57180a)return null;const _0x34d3dc=_0x2825cb(_0x57180a['values']());return _0x348b3e['view']['domConverter']['mapViewToDom'](_0x34d3dc)||null;}function wt(_0x1bcdda,_0x17e73c){if(0x0===_0x17e73c['length'])return null;const _0x5a2412=[],_0x146d61=_0x1bcdda['view']['domConverter'];for(const _0x2d34ff of _0x17e73c){const _0x46640a=_0x1bcdda['mapper']['markerNameToElements'](_0x2d34ff['name']);if(!_0x46640a)continue;const _0x4220dd=Array['from'](_0x46640a)['map'](_0x41159e=>_0x146d61['mapViewToDom'](_0x41159e))['filter'](_0x410b95=>!!_0x410b95);_0x5a2412['push'](..._0x4220dd);}if(0x0===_0x5a2412['length'])return null;const _0x2db88e=[];for(const _0x363743 of _0x5a2412){const _0x47aac8=_0x363743['getClientRects']()['item'](0x0);_0x47aac8&&_0x2db88e['push']({'x':_0x47aac8['x'],'y':_0x47aac8['y'],'domElement':_0x363743});}return 0x0===_0x2db88e['length']?null:(_0x2db88e['sort']((_0x3e07f6,_0x224951)=>_0x3e07f6['y']-_0x224951['y']||_0x3e07f6['x']-_0x224951['x']),_0x2db88e['map'](_0x5cb420=>_0x5cb420['domElement']));}function bt(_0x23c437,{limit:_0x2f551f,suffix:_0x13a314='...'}){const _0x104060=[];let _0x37ddc6=0x0;const _0x311f4c=_0x23c437['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x22116b=0x0;_0x22116b<_0x311f4c['length'];_0x22116b++){let _0x26e7f0=_0x311f4c[_0x22116b];const _0x53cf11=tn(_0x26e7f0);if(_0x26e7f0['startsWith']('<')){if(_0x37ddc6>=_0x2f551f){const _0x8c1d36=_0x26e7f0['match'](/[a-zA-Z]+/);if(!_0x8c1d36){_0x311f4c[_0x22116b]='';continue;}const _0x3a4d6d=_0x8c1d36[0x0];_0x26e7f0['startsWith']('</')?(_0x104060['length']&&(_0x26e7f0=''),_0x104060['pop']()):(_0x104060['push'](_0x3a4d6d),_0x26e7f0='');}}else{if(_0x37ddc6>=_0x2f551f)_0x26e7f0='';else{if(_0x37ddc6+_0x53cf11['length']>=_0x2f551f){let _0x28d98a=_0x2f551f-_0x37ddc6;if('\x20'===_0x53cf11[_0x28d98a-0x1])_0x28d98a--;else{const _0x4384ff=_0x53cf11['slice'](_0x28d98a)['indexOf']('\x20');-0x1!==_0x4384ff?_0x28d98a+=_0x4384ff:_0x28d98a=_0x26e7f0['length'];}_0x26e7f0=_0x53cf11['slice'](0x0,_0x28d98a)['join']('')+_0x13a314,_0x37ddc6=_0x2f551f;}else _0x37ddc6+=_0x53cf11['length'];}}_0x311f4c[_0x22116b]=_0x26e7f0;}return _0x311f4c['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x364ee6){const _0x110117=[];for(let _0x297478=0x0;_0x297478<_0x364ee6['length'];_0x297478++){const _0x2cad64=_0x364ee6['substring'](_0x297478)['match'](/^&[a-z0-9#]+;/);if(_0x2cad64){const _0x282864=_0x2cad64[0x0];_0x110117['push'](_0x282864),_0x297478+=_0x282864['length']-0x1;}else _0x110117['push'](_0x364ee6[_0x297478]);}return _0x110117;}class X extends _0xf88a3b{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x5e30a1){super(_0x5e30a1);const _0x370266=this['bindTemplate'];this['set']('message',U(_0x5e30a1,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x5e30a1,U(_0x5e30a1,'Yes'),_0x4527be,'submit'),this['cancelView']=this['_createButtonView'](_0x5e30a1,U(_0x5e30a1,'No'),_0x32cc21,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x25a297(),this['keystrokes']=new _0x17972b(),this['focusCycler']=new _0x158877({'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':_0x370266['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'](_0x2ae4e0,_0x5226de,_0x2f86f7,_0x2a891a){const _0x3dce9e=new ts(_0x2ae4e0);return _0x3dce9e['label']=_0x5226de,_0x3dce9e['icon']=_0x2f86f7,_0x3dce9e['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x2a891a}}),_0x3dce9e['on']('execute',()=>this['fire'](_0x2a891a)),_0x3dce9e;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x531f6c=>{this['keystrokes']['listenTo'](_0x531f6c['element']),this['focusTracker']['add'](_0x531f6c['element']);}),this['keystrokes']['set']('esc',(_0xac4e38,_0x2ca13f)=>{this['fire']('cancel'),_0x2ca13f();});}}function vt(_0x306990){return class extends _0x306990{['showConfirm'](_0x4c3fb9,_0x4605e8){return this['confirmView']=new X(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x4c3fb9,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x4605e8['appendChild'](this['confirmView']['element']),_0x4605e8['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x4ce9f6,_0x582f72,_0x352a66)=>{_0x352a66||_0x4605e8['classList']['remove']('ck-confirm-view-active');}),new Promise(_0xe75850=>this['confirmView']['on']('submit',_0xe75850));}['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(_0x45458e){let _0x51277b=0x0,_0x2b96e1=0x0;for(const _0x3c7822 of ne(_0x45458e))_0x51277b=(_0x51277b<<0x5)-_0x51277b+_0x3c7822,_0x51277b&=_0x51277b,[_0x51277b,_0x2b96e1]=[_0x2b96e1,_0x51277b];return ie(_0x51277b)+ie(_0x2b96e1);}function*ee(_0xcad328){null==_0xcad328||null==_0xcad328?yield 0x12b9b0a1:0x0===_0xcad328||!0x1===_0xcad328?yield 0x0:0x1===_0xcad328||0x1==_0xcad328?yield 0x1:Array['isArray'](_0xcad328)?yield*function*(_0x440d70){for(const _0x44a928 of _0x440d70)yield*ee(_0x44a928);}(_0xcad328):'object'==typeof _0xcad328?yield*ne(_0xcad328):'string'==typeof _0xcad328?yield*oe(_0xcad328):'number'==typeof _0xcad328&&(yield _0xcad328);}function*ne(_0x53916b){if(yield te('{'),_0x53916b){const _0x2b0bb4=Object['keys'](_0x53916b)['sort']();for(const _0x5cc7ac of _0x2b0bb4){yield*oe(_0x5cc7ac),yield te(':');const _0x4fc4c5=_0x53916b[_0x5cc7ac];yield*ee(_0x4fc4c5);}}yield te('}');}function*oe(_0x410920){yield te('\x22');for(const _0x15b6a2 of _0x410920)yield te(_0x15b6a2);yield te('\x22');}function te(_0x55d8ce){return _0x55d8ce['charCodeAt'](0x0);}function ie(_0x4a1b2d){return(_0x4a1b2d*=Math['sign'](_0x4a1b2d))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x5ba711,_0x51f09d,_0x2a15f5,_0x2be6cd=[]){const _0x56e4ad='string'==typeof _0x5ba711?_0x2a15f5['get'](_0x5ba711)['constructor']:_0x5ba711['prototype']['constructor'];if(_0x51f09d['has'](_0x56e4ad))return _0x51f09d['get'](_0x56e4ad);_0x51f09d['set'](_0x56e4ad,!0x0);const _0x46c693=[...et,..._0x2be6cd]['map'](_0x78ba8=>{if(_0x2a15f5['has'](_0x78ba8))return _0x2a15f5['get'](_0x78ba8)['constructor'];})['filter'](_0x7fc3aa=>_0x7fc3aa);if(_0x56e4ad&&_0x46c693['includes'](_0x56e4ad))return _0x51f09d['set'](_0x56e4ad,!0x1),!0x1;if(!_0x56e4ad['requires'])return _0x51f09d['set'](_0x56e4ad,!0x0),!0x0;const _0x53e360=_0x56e4ad['requires']['every'](_0x2980b2=>ot(_0x2980b2,_0x51f09d,_0x2a15f5,_0x2be6cd));return _0x51f09d['set'](_0x56e4ad,_0x53e360),_0x53e360;}function Ct(_0x9eea01,_0x2d2b89){const _0x5aeb06={};for(const _0x50f65b of _0x9eea01['config']['names']())nt['includes'](_0x50f65b)||(_0x5aeb06[_0x50f65b]=_0x9eea01['config']['get'](_0x50f65b));const _0x1024b8=_0x5aeb06['plugins']||[],_0x26b55a=_0x9eea01['constructor']['builtinPlugins']||[],_0x16c818=_0x1024b8['length']?_0x1024b8:_0x26b55a,_0x393392=_0x5aeb06['extraPlugins']||[];delete _0x5aeb06['extraPlugins'];const _0x23a503=_0x5aeb06['removePlugins']||[];delete _0x5aeb06['removePlugins'];const _0x406a43=_0x9eea01['_context']['config']['get']('plugins')||[],_0x373bc9=_0x16c818['concat'](_0x393392)['concat'](_0x406a43)['map'](_0x5d15ac=>'string'==typeof _0x5d15ac?_0x26b55a['find'](_0x372f3c=>_0x372f3c['pluginName']==_0x5d15ac):_0x5d15ac)['filter'](_0x3cb0f4=>!_0x23a503['includes'](_0x3cb0f4)&&!_0x23a503['includes'](_0x3cb0f4['pluginName'])),_0x5c9a78=Array['from'](new Set(_0x373bc9)),_0x469038=new Map();return _0x5aeb06['plugins']=_0x5c9a78['filter'](_0x290caf=>ot(_0x290caf,_0x469038,_0x9eea01['plugins'],_0x2d2b89)),_0x5aeb06;}function xt(_0x1a937e,_0x2d0f35){const _0x20d6be=[];_0x1a937e['document']['selection']['on']('change:range',()=>{const _0x3ec8f6=function(_0x4abf3c,_0x1dea56){const _0x22d18c=[];for(const _0x2ad4cd of _0x4abf3c['markers']){const _0x18f320=_0x2ad4cd['getRange']();(_0x18f320['containsPosition'](_0x1dea56)||_0x18f320['start']['isEqual'](_0x1dea56)||_0x18f320['end']['isEqual'](_0x1dea56))&&_0x22d18c['push'](_0x2ad4cd);}return _0x22d18c;}(_0x1a937e,_0x1a937e['document']['selection']['focus']),_0x4400c7=[],_0x21cad0=[],_0x28cbf3=[];for(const _0x4ff2e8 of _0x20d6be)_0x3ec8f6['includes'](_0x4ff2e8)||_0x4400c7['push'](_0x4ff2e8);for(const _0x5a8934 of _0x3ec8f6)_0x20d6be['includes'](_0x5a8934)||_0x21cad0['push'](_0x5a8934),_0x28cbf3['push'](_0x5a8934);(_0x4400c7['length']||_0x21cad0['length'])&&_0x2d0f35({'left':_0x4400c7,'entered':_0x21cad0}),_0x20d6be['length']=0x0,_0x20d6be['push'](..._0x28cbf3);});}const It='Ctrl+Shift+E';function _t(_0xb564f8,_0x4d4fc7){const _0x5239cb=_0xb564f8['element'];_0xb564f8['keystrokes']['listenTo'](_0x5239cb);for(const _0x1f2bbc of _0x4d4fc7)ro(_0xb564f8,_0x1f2bbc);_0x4d4fc7['on']('change',(_0xe7bf03,_0x4903d2)=>{for(const _0x3b37fe of _0x4903d2['removed'])to(_0xb564f8,_0x3b37fe);for(const _0x16a3b5 of Array['from'](_0x4903d2['added'])['reverse']())ro(_0xb564f8,_0x16a3b5);}),_0xb564f8['keystrokes']['set']('enter',(_0x42392a,_0x2ab7f2)=>{_0x5239cb===_0x42392a['target']&&(_0xb564f8['focusCycler']['focusFirst'](),_0x2ab7f2());},{'filter':_0x5a4b29=>_0x5a4b29['target']===_0x5239cb}),_0xb564f8['keystrokes']['set']('esc',(_0x474102,_0x5da644)=>{_0x5239cb!==_0x474102['target']?_0xb564f8['focus']():_0xb564f8['fire']('escape'),_0x5da644();}),_0xb564f8['keystrokes']['set']('arrowdown',(_0x4c614a,_0x34b27c)=>{_0x5239cb===_0x4c614a['target']&&(_0xb564f8['fire']('arrowdown'),_0x34b27c());}),_0xb564f8['keystrokes']['set']('arrowup',(_0x5eb1d7,_0x3f78c6)=>{_0x5239cb===_0x5eb1d7['target']&&(_0xb564f8['fire']('arrowup'),_0x3f78c6());});}function ro(_0xa1bc5f,_0x39651a){_0x39651a['isRendered']&&(_0xa1bc5f['focusTracker']['add'](_0x39651a['element']),_0xa1bc5f['keystrokes']['listenTo'](_0x39651a['element']),_0x1d74d9(_0x39651a)&&function(_0x54dd1b,_0x504e94){const _0x5442a9=_0x54dd1b['actions'],_0x226e68=_0x504e94['actions'];for(const _0x2fcef5 of Object['keys'](_0x5442a9))if(_0x2fcef5 in _0x226e68&&_0x5442a9[_0x2fcef5]!==_0x226e68[_0x2fcef5])return!0x1;return!0x0;}(_0xa1bc5f['focusCycler'],_0x39651a['focusCycler'])&&_0xa1bc5f['focusCycler']['chain'](_0x39651a['focusCycler']));}function to(_0x10937b,_0x3c4712){_0x10937b['focusTracker']['remove'](_0x3c4712['element']),_0x10937b['keystrokes']['stopListening'](_0x3c4712['element']),_0x1d74d9(_0x3c4712)&&_0x10937b['focusCycler']['unchain'](_0x3c4712['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x599dd4{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x1d60eb?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x3e8223,_0x5c300a)=>{_0x5c300a['on']('ready',()=>{this['_integrateEditor'](_0x5c300a);});});}get['editor'](){if(this['context']instanceof _0x1d60eb)return this['context'];{const _0x35c15f=this['context']['editors']['first'];if(!_0x35c15f)throw new _0x36d35e('documentcompare-no-editor',this);return _0x35c15f;}}['getDiff'](_0x108bf3,_0x1ce78c,_0x2f475f={'anchor':'main','markDeletions':!0x1}){let _0x124dba,_0x1bf697;const _0x21b784=this['editor'];if('string'==typeof _0x2f475f['anchor']){const _0x5f4d02=_0x21b784['model']['document']['getRoot'](_0x2f475f['anchor']);if(!_0x5f4d02)throw new _0x36d35e('documentcompare-compare-no-root',this,{'anchor':_0x2f475f['anchor']});_0x124dba=_0x5f4d02,_0x1bf697=_0x21b784['model']['createPositionAt'](_0x5f4d02,0x0);}else _0x124dba=_0x2f475f['anchor']['clone'](),_0x1bf697=_0x2f475f['anchor']['clone']();const _0xc8aa0d=_0x21b784['data']['parse'](_0x108bf3,_0x124dba),_0x1d126e=_0x21b784['data']['parse'](_0x1ce78c,_0x124dba);return new Mt(_0xc8aa0d,_0x1d126e,_0x21b784,{'anchor':_0x1bf697,'markDeletions':_0x2f475f['markDeletions']});}['isMarkedRemoveOperation'](_0x5be33f){return'marker'==_0x5be33f['type']&&_0x5be33f['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x3d9c79){_0x3d9c79['conversion']['for']('upcast')['add'](_0x2741c4=>{_0x2741c4['on']('element',(_0x4764e1,_0x1be421,_0x385065)=>{if(_0x1be421['modelRange'])for(const _0x544ebe of _0x1be421['modelRange']['getItems']({'shallow':!0x0})){if(_0x544ebe['is']('$textProxy'))continue;const _0x1e7a86=_0x1be421['viewItem']['getAttribute'](Et);_0x1e7a86&&_0x385065['writer']['setAttribute'](St,_0x1e7a86,_0x544ebe);}},{'priority':'lowest'});}),_0x3d9c79['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x30427c,_0x3dc143,_0x39720f,_0x4dd18c){this['_editor']=_0x39720f,this['_markDeletions']=!!_0x4dd18c['markDeletions'],this['_anchor']=_0x4dd18c['anchor'];const _0x35558c=this['_tokenizeModel'](_0x30427c),_0x32454d=this['_tokenizeModel'](_0x3dc143);this['_diffItems']=this['_diffModelTokens'](_0x35558c,_0x32454d),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x30427c['markers'],_0x3dc143['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x515ef2=this['_editor']['model']['document'],_0xcc6681=[];let _0x5b8e37=_0x515ef2['version'];for(const _0x36298b of this['_operationsData'])switch(_0x36298b['type']){case'attribute':{const _0x1530d7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x36298b['path']),_0x21711d=_0x1530d7['getShiftedBy'](_0x36298b['howMany']),_0x58a055=new _0x1abbd6(_0x1530d7,_0x21711d),_0x58b85a=JSON['parse'](_0x36298b['oldValue']),_0x3adb0a=JSON['parse'](_0x36298b['newValue']);_0xcc6681['push'](new _0x8b2371(_0x58a055,_0x36298b['key'],_0x58b85a,_0x3adb0a,_0x5b8e37++));break;}case'insert':{const _0x1a4641=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x36298b['path']),_0x3c64c0=this['_makeModelFromTokens'](_0x36298b['tokens']);_0xcc6681['push'](new _0x26592a(_0x1a4641,_0x3c64c0,_0x5b8e37++));break;}case'remove':{const _0x4ebd3f=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x36298b['path']),_0x54d382=new _0x26ff72(_0x515ef2['graveyard'],[0x0]);_0xcc6681['push'](new _0x417e9d(_0x4ebd3f,_0x36298b['howMany'],_0x54d382,_0x5b8e37++));break;}case'rename':{const _0x5470f5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x36298b['path']);_0xcc6681['push'](new _0x543a65(_0x5470f5,_0x36298b['oldName'],_0x36298b['newName'],_0x5b8e37++));break;}case'split':{const _0x53c946=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x36298b['path']),_0x35af02=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x36298b['path']['slice'](0x0,-0x1));_0x35af02['offset']++,_0xcc6681['push'](new _0x2c9c07(_0x53c946,Number['NEGATIVE_INFINITY'],_0x35af02,null,_0x5b8e37++));break;}case'merge':{const _0x444b81=_0x36298b['path']['slice'](),_0x4c5c83=_0x444b81['slice'](0x0,-0x1);_0x4c5c83[_0x4c5c83['length']-0x1]++,_0x4c5c83['push'](0x0);const _0x2e4575=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4c5c83),_0x1c478d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x444b81),_0x3fbafd=new _0x26ff72(_0x515ef2['graveyard'],[0x0]);_0xcc6681['push'](new _0x1c2a5b(_0x2e4575,Number['NEGATIVE_INFINITY'],_0x1c478d,_0x3fbafd,_0x5b8e37++));break;}case'marker':case'markedRemove':{let _0x20a608=null;if(_0x36298b['range']){const _0x50ded7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x36298b['range']['start']),_0x4722e8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x36298b['range']['end']);_0x20a608=new _0x1abbd6(_0x50ded7,_0x4722e8);}const _0x1d2441='marker'==_0x36298b['type']?_0x36298b['name']:'$markedRemove:'+_0x21e0d6();_0xcc6681['push'](new _0x293484(_0x1d2441,null,_0x20a608,_0x515ef2['model']['markers'],!0x0,_0x5b8e37++));break;}case'unwrap':{const _0x41d379=_0x36298b['path']['slice']();_0x41d379['push'](0x0);const _0x17f336=_0x36298b['path']['slice'](),_0x242bb8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x41d379),_0x3244a8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x17f336),_0x90a112=new _0x26ff72(_0x515ef2['graveyard'],[0x0]);_0xcc6681['push'](new _0x417e9d(_0x242bb8,_0x36298b['howMany'],_0x3244a8,_0x5b8e37++)),_0xcc6681['push'](new _0x417e9d(_0x3244a8['getShiftedBy'](_0x36298b['howMany']),0x1,_0x90a112,_0x5b8e37++));break;}case'wrap':{const _0xa4d0c4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x36298b['range']['start']),_0x389e08=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x36298b['range']['end']),_0x16813c=_0x36298b['token']['element']['_clone'](!0x1),_0x5c8003=_0x36298b['range']['end']['slice']();_0x5c8003['push'](0x0);const _0x27f5fe=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5c8003);_0xcc6681['push'](new _0x26592a(_0x389e08,_0x16813c,_0x5b8e37++)),_0xcc6681['push'](new _0x417e9d(_0xa4d0c4,_0x389e08['offset']-_0xa4d0c4['offset'],_0x27f5fe,_0x5b8e37++));break;}}return _0xcc6681;}['_tokenizeModel'](_0x2c9988){const _0x22ab44=[],_0xf3174e=_0x1abbd6['_createIn'](_0x2c9988),_0x41278b=new _0x5e3ea0({'boundaries':_0xf3174e});let _0x2754f0='',_0x17dbd0=null;const _0x1e061d=[''],_0x2d6e3f=new Map();for(const _0x2218c9 of _0x41278b)if('elementStart'==_0x2218c9['type']||'elementEnd'==_0x2218c9['type']){let _0x138313=_0x1e061d[0x0];''!==_0x2754f0&&(_0x22ab44['push'](...this['_makeTokensFromTextByWords'](_0x2754f0,_0x17dbd0,_0x138313)),_0x2754f0='');const _0x54db01=_0x2218c9['item'];let _0x4cfabe;_0x54db01['getAttribute'](St)?_0x4cfabe=_0x54db01['getAttribute'](St):'elementStart'==_0x2218c9['type']?(_0x4cfabe=_(_0x54db01),_0x2d6e3f['set'](_0x54db01,_0x4cfabe)):_0x4cfabe=_0x2d6e3f['get'](_0x54db01);const _0x513aa7=this['_getElementCategory'](_0x54db01);'solid'==_0x513aa7&&('elementStart'==_0x2218c9['type']?(_0x138313=_0x4cfabe,_0x1e061d['unshift'](_0x138313)):_0x1e061d['shift']());const _0x2b0a1c={'type':'element','element':_0x54db01,'elementId':_0x4cfabe,'category':_0x513aa7,'isStart':'elementStart'==_0x2218c9['type'],'limitId':_0x138313};_0x22ab44['push'](_0x2b0a1c);}else''==_0x2754f0&&(_0x17dbd0=_0x2218c9['previousPosition']['clone']()),_0x2754f0+=_0x2218c9['item']['data'];return''!==_0x2754f0&&_0x22ab44['push'](...this['_makeTokensFromTextByWords'](_0x2754f0,_0x17dbd0,_0x1e061d[0x0])),_0x22ab44;}['_makeTokensFromTextByWords'](_0xb55d95,_0x26a9d9,_0x3a4a9b){const _0x3d43e0=_0xb55d95['matchAll'](/(\s)/g),_0x216d95=Array['from'](_0x3d43e0)['map'](_0x1aa0b4=>_0x1aa0b4['index']);_0x216d95['push'](_0xb55d95['length']),0x0==_0x216d95[0x0]&&_0x216d95['shift']();const _0x978588=[],_0x1cc89c=_0x26a9d9['parent'];let _0x4a5dc0=0x0,_0x4cb738=_0x26a9d9['offset'];for(let _0x9bb66=0x0;_0x9bb66<_0x216d95['length'];_0x9bb66++)_0x978588['push']({'type':'text','data':_0xb55d95['slice'](_0x4a5dc0,_0x216d95[_0x9bb66]),'parent':_0x1cc89c,'offset':_0x4cb738,'limitId':_0x3a4a9b}),_0x4a5dc0=_0x216d95[_0x9bb66],_0x4cb738=_0x26a9d9['offset']+_0x216d95[_0x9bb66];return _0x978588;}['_getElementCategory'](_0x1947d4){const _0x33cf1b=this['_editor']['model']['schema'];return _0x33cf1b['isLimit'](_0x1947d4)||_0x33cf1b['isContent'](_0x1947d4)||_0x33cf1b['isInline'](_0x1947d4)?'solid':_0x33cf1b['isBlock'](_0x1947d4)?'block':'container';}['_diffModelTokens'](_0x53fb28,_0x174088){const _0x5169b3=_0x877c4(_0x53fb28,_0x174088,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x5169b3);const _0xdc950a=_0x5169b3['flatMap'](_0x2df621=>{const _0x5c4273=_0x2df621['added']?'added':_0x2df621['removed']?'removed':'unchanged';return _0x2df621['value']['map'](_0x40b4dd=>({'token':_0x40b4dd,'change':_0x5c4273}));});let _0x3233b8=0x0;for(const _0x5afae2 of _0xdc950a)'added'!=_0x5afae2['change']&&('unchanged'==_0x5afae2['change']&&(_0x5afae2['before']=_0x53fb28[_0x3233b8]),_0x3233b8++);return _0xdc950a;}['_handleUnclosedBlockOpeningTags'](_0x115089){for(let _0x35f363=0x0;_0x35f363<_0x115089['length']-0x1;_0x35f363++)if(_0x115089[_0x35f363]['removed']&&_0x115089[_0x35f363+0x1]['added']){const _0x1f2396=this['_findUnclosedBlockOpeningToken'](_0x115089[_0x35f363]['value']);if(null!==_0x1f2396){const _0x4719bf=this['_findUnclosedBlockOpeningToken'](_0x115089[_0x35f363+0x1]['value']),_0x2bd8c0=_0x115089[_0x35f363]['value']['splice'](_0x1f2396),_0x27093f=_0x115089[_0x35f363+0x1]['value']['splice'](_0x4719bf),_0x15e2e8=[_0x27093f['shift']()];_0x2bd8c0['shift']();const _0x4e9361={'value':_0x2bd8c0,'removed':!0x0},_0x45d168={'value':_0x27093f,'added':!0x0},_0x2200bd={'value':_0x15e2e8};_0x115089['splice'](_0x35f363+0x2,0x0,_0x2200bd,_0x4e9361,_0x45d168);}}}['_findUnclosedBlockOpeningToken'](_0x4e37fd){let _0x2c736c=0x0,_0x507ce5=-0x1;for(let _0x2cc461=0x0;_0x2cc461<_0x4e37fd['length'];_0x2cc461++){const _0x290b8d=_0x4e37fd[_0x2cc461];'element'==_0x290b8d['type']&&'block'==_0x290b8d['category']&&(_0x2c736c+=_0x290b8d['isStart']?0x1:-0x1,_0x290b8d['isStart']&&(_0x507ce5=_0x2cc461));}return 0x0===_0x2c736c?null:_0x507ce5;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x1fcb6f=0x0;_0x1fcb6f<this['_diffItems']['length'];_0x1fcb6f++){const _0x1271bf=this['_diffItems'][_0x1fcb6f]['change'],_0x2a5882=[];_0x2a5882['push'](this['_diffItems'][_0x1fcb6f]);let _0x197f43=_0x1fcb6f+0x1;for(;this['_diffItems'][_0x197f43]&&this['_diffItems'][_0x197f43]['change']==_0x1271bf;)_0x2a5882['push'](this['_diffItems'][_0x197f43]),_0x197f43++,_0x1fcb6f++;const _0xb837ef=_0x2a5882['map'](_0x4a7729=>_0x4a7729['token']);if('unchanged'==_0x1271bf)_0x2a5882['map'](_0x4e36f8=>_0x4e36f8['before'])['forEach'](_0x2e7522=>this['_traverseOverItem'](_0x2e7522));else{if('removed'==_0x1271bf){if(this['_markDeletions']){const _0x1eff1d=this['_path']['slice']();_0xb837ef['forEach'](_0x24a6fe=>this['_traverseOverItem'](_0x24a6fe));const _0x3dce65=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x1eff1d,'end':_0x3dce65}});}else this['_handleChanged'](_0xb837ef,!0x0,this['_path']['slice']());}else{const _0x3fe4a1=_0xb837ef['filter'](_0x5ef193=>'element'!=_0x5ef193['type']||'container'!=_0x5ef193['category']);this['_handleChanged'](_0x3fe4a1,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x4cdf27=0x0;_0x4cdf27<this['_diffItems']['length'];_0x4cdf27++){const _0x31776d=this['_diffItems'][_0x4cdf27]['change'],_0x34b94f=[];_0x34b94f['push'](this['_diffItems'][_0x4cdf27]);let _0x86178a=_0x4cdf27+0x1;for(;this['_diffItems'][_0x86178a]&&this['_diffItems'][_0x86178a]['change']==_0x31776d;)_0x34b94f['push'](this['_diffItems'][_0x86178a]),_0x86178a++,_0x4cdf27++;const _0x298853=_0x34b94f['map'](_0x437a7b=>_0x437a7b['token']);if('unchanged'==_0x31776d){const _0x824d47=_0x34b94f['map'](_0x5ae440=>_0x5ae440['before']);this['_handleUnchanged'](_0x824d47,_0x298853);}else('removed'!=_0x31776d||this['_markDeletions'])&&_0x298853['forEach'](_0x4c690c=>{this['_traverseOverItem'](_0x4c690c);});}}['_calculateMarkersOperationsData'](_0xb8c1eb,_0x10d9b2){const _0x339093={};for(const [_0x5d3745]of _0xb8c1eb)_0x339093[_0x5d3745]=null;for(const [_0x53cfc8,_0xdf163a]of _0x10d9b2)_0x339093[_0x53cfc8]=_0xdf163a;const _0x3193eb=Object['entries'](_0x339093)['map'](([_0x45074c,_0x4d658c])=>({'type':'marker','name':_0x45074c,'range':_0x4d658c?{'start':_0x4d658c['start']['path']['slice'](),'end':_0x4d658c['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x3193eb);}['_handleUnwraps'](){const _0x177780=new Map(),_0x55c442=[],_0x795bca=[0x0];let _0x14a2af=this['_diffItems']['length']+0x1;for(let _0x33fc72=this['_diffItems']['length']-0x1;_0x33fc72>=0x0;_0x33fc72--){const {token:_0x4106f5,before:_0x36dc26,change:_0x588828}=this['_diffItems'][_0x33fc72];if('removed'!=_0x588828&&(_0x14a2af=_0x33fc72),'element'!=_0x4106f5['type']||'container'!=_0x4106f5['category']||'added'==_0x588828)continue;const _0x3b0d99=_0x36dc26?_0x36dc26['element']:_0x4106f5['element'];if(_0x4106f5['isStart']){const _0x101613=_0x177780['get'](_0x3b0d99),_0x241a4a=this['_diffItems'][_0x101613];('removed'==_0x588828||'removed'==_0x241a4a['change'])&&_0x14a2af<_0x101613&&(this['_operationsData']['push']({'type':'unwrap','path':_0x3b0d99['getPath'](),'howMany':_0x3b0d99['maxOffset']+_0x795bca[0x0]}),_0x795bca['shift'](),_0x795bca[0x0]+=_0x3b0d99['maxOffset']-0x1,_0x55c442['push'](_0x33fc72),_0x55c442['push'](_0x101613));}else _0x177780['set'](_0x3b0d99,_0x33fc72),_0x795bca['unshift'](0x0);}_0x55c442['sort']((_0x31af93,_0xf1c4e5)=>_0xf1c4e5-_0x31af93),_0x55c442['forEach'](_0x1f3f01=>{const _0x1a048e=this['_diffItems'][_0x1f3f01];'removed'==_0x1a048e['change']?this['_diffItems']['splice'](_0x1f3f01,0x1):(_0x1a048e['change']='added',delete _0x1a048e['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x4448d8=[];for(let _0x2d46ee=0x0;_0x2d46ee<this['_diffItems']['length'];_0x2d46ee++){const {change:_0x4fa559,token:_0x38b1b2}=this['_diffItems'][_0x2d46ee];if('added'==_0x4fa559&&'element'==_0x38b1b2['type']&&'container'==_0x38b1b2['category']){if(_0x38b1b2['isStart'])_0x4448d8['push'](this['_path']['slice']());else{if(!_0x38b1b2['isStart']){const _0x2fc91f=_0x4448d8['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x2fc91f,'end':this['_path']['slice']()},'token':_0x38b1b2}),this['_path'][this['_path']['length']-0x1]=_0x2fc91f[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x4fa559||this['_markDeletions'])&&this['_traverseOverItem'](_0x38b1b2);}}['_handleUnchanged'](_0x28f2dc,_0x4412d1){for(let _0x4aa280=0x0;_0x4aa280<_0x28f2dc['length'];_0x4aa280++){const _0x5be756=_0x28f2dc[_0x4aa280];if('element'==_0x5be756['type']&&_0x5be756['isStart']){const _0x5a4f45=_0x4412d1[_0x4aa280];'block'==_0x5be756['category']&&this['_handleElementRename'](_0x5be756['element'],_0x5a4f45['element'],this['_path']),this['_handleElementAttributeChanges'](_0x5be756['element'],_0x5a4f45['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x5a4f45);}else{if('element'!=_0x5be756['type']||_0x5be756['isStart']){if('text'==_0x5be756['type']){const _0xa148b0=this['_path']['slice'](),_0x45fd39=[],_0x1dc789=[];for(;_0x28f2dc[_0x4aa280]&&'text'==_0x28f2dc[_0x4aa280]['type'];)_0x45fd39['push'](_0x28f2dc[_0x4aa280]),_0x1dc789['push'](_0x4412d1[_0x4aa280]),this['_path'][this['_path']['length']-0x1]+=_0x28f2dc[_0x4aa280]['data']['length'],_0x4aa280++;_0x4aa280--,this['_handleTextAttributeChanges'](_0x45fd39,_0x1dc789,_0xa148b0);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x523e06,_0x244751,_0x2f401b){const _0x44e40c=[],_0x397d6b=[],_0x7e85a9=_0x2f401b['slice']();for(let _0x5acfde=0x0;_0x5acfde<_0x523e06['length'];_0x5acfde++){const _0x3ffc6a=_0x523e06[_0x5acfde],_0x4aded2=_0x2f401b['slice']();if('element'!=_0x3ffc6a['type']||_0x3ffc6a['isStart'])'element'==_0x3ffc6a['type']&&_0x3ffc6a['isStart']?(_0x2f401b['push'](0x0),_0x244751||this['_parents']['push'](_0x3ffc6a),_0x397d6b['push']({'before':_0x4aded2,'after':_0x2f401b['slice'](),'index':_0x5acfde})):_0x2f401b[_0x2f401b['length']-0x1]+=_0x3ffc6a['data']['length'];else{let _0x5873be;_0x2f401b['pop'](),_0x2f401b[_0x2f401b['length']-0x1]++,_0x5873be=_0x244751?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x397d6b['length']?_0x397d6b['pop']():_0x44e40c['push']({'before':_0x4aded2,'after':_0x2f401b['slice'](),'index':_0x5acfde,'related':_0x5873be});}}if(_0x397d6b['length']!==_0x44e40c['length'])throw new _0x36d35e('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x523e06,'isRemove':_0x244751});const _0xcb38db=[{'after':_0x7e85a9['slice'](),'index':-0x1},..._0x44e40c,..._0x397d6b,{'before':_0x2f401b['slice'](),'index':_0x523e06['length']}];if(_0x244751){for(let _0x21ca2a=_0xcb38db['length']-0x1;_0x21ca2a>=0x1;_0x21ca2a--){const _0x17f543=_0xcb38db[_0x21ca2a-0x1]['after'],_0x35e2e9=_0xcb38db[_0x21ca2a]['before'],_0x55788d=_0x35e2e9[_0x35e2e9['length']-0x1]-_0x17f543[_0x17f543['length']-0x1];_0x55788d&&(this['_operationsData']['push']({'type':'remove','path':_0x17f543,'howMany':_0x55788d}),_0x35e2e9[_0x35e2e9['length']-0x1]-=_0x55788d);}for(const {before:_0x6b2c9f}of _0x44e40c)this['_operationsData']['push']({'type':'merge','path':_0x6b2c9f});}else for(let _0x5e07fa=0x0;_0x5e07fa<_0xcb38db['length']-0x1;_0x5e07fa++){const _0x38364d=_0xcb38db[_0x5e07fa]['after'],_0x1f9f9d=_0xcb38db[_0x5e07fa+0x1]['before'],_0x58d5fa=_0xcb38db[_0x5e07fa]['index']+0x1,_0x43f0d4=_0xcb38db[_0x5e07fa+0x1]['index'];if(_0x58d5fa!==_0x43f0d4&&this['_operationsData']['push']({'type':'insert','path':_0x38364d,'tokens':_0x523e06['slice'](_0x58d5fa,_0x43f0d4)}),_0x5e07fa<_0x44e40c['length']){this['_operationsData']['push']({'type':'split','path':_0x1f9f9d});const _0x54fe85=_0x523e06[_0x397d6b[_0x397d6b['length']-0x1-_0x5e07fa]['index']],_0x2e0389=_0x44e40c[_0x5e07fa]['after'],_0x53d04c=_0x44e40c[_0x5e07fa]['related']['element'];this['_handleElementRename'](_0x53d04c,_0x54fe85['element'],_0x2e0389),this['_handleElementAttributeChanges'](_0x53d04c,_0x54fe85['element'],_0x2e0389);}}}['_traverseOverItem'](_0x2b55a7){'element'==_0x2b55a7['type']&&_0x2b55a7['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x2b55a7)):'element'!=_0x2b55a7['type']||_0x2b55a7['isStart']?'text'==_0x2b55a7['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x2b55a7['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x73ce8d,_0x461ebc,_0x296855){_0x73ce8d['name']!=_0x461ebc['name']&&this['_operationsData']['push']({'type':'rename','path':_0x296855['slice'](),'oldName':_0x73ce8d['name'],'newName':_0x461ebc['name']});}['_handleElementAttributeChanges'](_0x28f191,_0x28b089,_0x3dbc81){const _0x17a7ec=this['_getAttributeChanges'](_0x28f191['getAttributes'](),_0x28b089['getAttributes']());for(const _0x43746f in _0x17a7ec){const {oldValue:_0x3cc1af,newValue:_0x391bb2}=_0x17a7ec[_0x43746f];this['_operationsData']['push']({'type':'attribute','path':_0x3dbc81['slice'](),'howMany':0x1,'key':_0x43746f,'oldValue':_0x3cc1af,'newValue':_0x391bb2});}}['_handleTextAttributeChanges'](_0x30c722,_0x284fc7,_0x390ab4){const _0x4d72d3=this['_operationsData'],_0x280715=_0x30c722[0x0]['parent'],_0x430af5=_0x30c722[0x0]['offset'],_0x39e194=_0x284fc7[0x0]['parent'],_0xa5a1b1=_0x284fc7[0x0]['offset'],_0xe69dcb=_0x30c722['reduce']((_0x42d808,_0x2b1d35)=>_0x42d808+_0x2b1d35['data']['length'],0x0),_0x1e9d62=this['_getAttrsForOffsets'](_0x280715,_0x430af5,_0xe69dcb),_0x237be7=this['_getAttrsForOffsets'](_0x39e194,_0xa5a1b1,_0xe69dcb),_0x400a60={};for(let _0x3011f6=0x0;_0x3011f6<_0xe69dcb;_0x3011f6++){const _0xaea733=_0x1e9d62[_0x430af5+_0x3011f6],_0x46c904=_0x237be7[_0xa5a1b1+_0x3011f6],_0x313a64=this['_getAttributeChanges'](_0xaea733,_0x46c904);for(const _0x2ca45d in _0x400a60)_0x313a64[_0x2ca45d]||_0x4893c3(_0x2ca45d);for(const _0x52f059 in _0x313a64){const {oldValue:_0x2ef8d9,newValue:_0x1dffb6}=_0x313a64[_0x52f059],_0xf3329d=_0x400a60[_0x52f059];_0xf3329d?_0xf3329d['oldValue']==_0x2ef8d9&&_0xf3329d['newValue']==_0x1dffb6?_0xf3329d['length']++:(_0x4893c3(_0x52f059),_0x400a60[_0x52f059]={'oldValue':_0x2ef8d9,'newValue':_0x1dffb6,'start':_0x3011f6,'length':0x1}):_0x400a60[_0x52f059]={'oldValue':_0x2ef8d9,'newValue':_0x1dffb6,'start':_0x3011f6,'length':0x1};}}for(const _0x22e856 in _0x400a60)_0x4893c3(_0x22e856);function _0x4893c3(_0x26c183){const _0x4e8a13=_0x400a60[_0x26c183],_0x462928=_0x390ab4['slice']();_0x462928[_0x462928['length']-0x1]+=_0x4e8a13['start'],_0x4d72d3['push']({'type':'attribute','path':_0x462928,'howMany':_0x4e8a13['length'],'key':_0x26c183,'oldValue':_0x4e8a13['oldValue'],'newValue':_0x4e8a13['newValue']}),delete _0x400a60[_0x26c183];}}['_getAttributeChanges'](_0x21399e,_0x808cf5){const _0x3e1656={};for(const [_0xb1c969,_0x54cb29]of _0x21399e)_0x3e1656[_0xb1c969]={'oldValue':JSON['stringify'](_0x54cb29),'newValue':'null'};for(const [_0x2b08c5,_0xef0ff0]of _0x808cf5){const _0x3d2156=JSON['stringify'](_0xef0ff0);_0x3e1656[_0x2b08c5]?_0x3e1656[_0x2b08c5]['oldValue']==_0x3d2156?delete _0x3e1656[_0x2b08c5]:_0x3e1656[_0x2b08c5]['newValue']=_0x3d2156:_0x3e1656[_0x2b08c5]={'oldValue':'null','newValue':_0x3d2156};}return delete _0x3e1656[St],_0x3e1656;}['_getAttrsForOffsets'](_0x3fb95f,_0x1576c8,_0x4eef33){const _0x2eed17=new Array(_0x1576c8+_0x4eef33);let _0x2f6ffc=_0x3fb95f['getChildAtOffset'](_0x1576c8),_0x3c28f6=_0x2f6ffc['startOffset'];for(;_0x2f6ffc&&_0x3c28f6<_0x1576c8+_0x4eef33;){const _0x57d988=Array['from'](_0x2f6ffc['getAttributes']());_0x2eed17['fill'](_0x57d988,_0x3c28f6,_0x3c28f6+_0x2f6ffc['offsetSize']),_0x3c28f6+=_0x2f6ffc['offsetSize'],_0x2f6ffc=_0x2f6ffc['nextSibling'];}return _0x2eed17;}['_getPositionFromAnchorAndPath'](_0x234f0f,_0x39d2a5){const _0x15a2fd=[..._0x234f0f['path']['slice'](0x0,-0x1),_0x234f0f['offset']+_0x39d2a5[0x0],..._0x39d2a5['slice'](0x1)];return new _0x26ff72(_0x234f0f['root'],_0x15a2fd);}['_makeModelFromTokens'](_0x1c3a30){const _0x59ef6a=[];let _0x1b679f=null;for(const _0x5494d8 of _0x1c3a30)if('element'!=_0x5494d8['type']||_0x5494d8['isStart']||_0x1b679f!=_0x5494d8['element']){if(!_0x1b679f){if('text'==_0x5494d8['type']){const _0x4d3784=_0x26ff72['_createAt'](_0x5494d8['parent'],_0x5494d8['offset']),_0x1d2996=_0x1abbd6['_createFromPositionAndShift'](_0x4d3784,_0x5494d8['data']['length']),_0x2a9c11=Array['from'](_0x1d2996['getItems']())['map'](_0x2f8e64=>new _0x53bdfc(_0x2f8e64['data'],_0x2f8e64['getAttributes']()));_0x59ef6a['push'](..._0x2a9c11);}else{_0x1b679f=_0x5494d8['element'];const _0x525f1b=_0x5494d8['element']['_clone'](!0x0);_0x525f1b['_removeAttribute'](St);for(const _0x4b0911 of this['_editor']['model']['createRangeIn'](_0x525f1b)['getItems']())_0x4b0911['is']('element')&&_0x4b0911['_removeAttribute'](St);_0x59ef6a['push'](_0x525f1b);}}}else _0x1b679f=null;return _0x59ef6a;}}function g(_0x5966fd,_0x3cfa39){return _0x5966fd['type']===_0x3cfa39['type']&&(_0x5966fd['limitId']===_0x3cfa39['limitId']&&('text'==_0x5966fd['type']?_0x5966fd['data']==_0x3cfa39['data']:function(_0x4635c1,_0x4d0a39){if(_0x4635c1['isStart']!=_0x4d0a39['isStart'])return!0x1;if(_0x4635c1['isStart']&&_0x4635c1['elementId']!=_0x4d0a39['elementId'])return!0x1;if(_0x4635c1['category']!=_0x4d0a39['category'])return!0x1;if('block'==_0x4635c1['category'])return!0x0;if('container'==_0x4635c1['category']&&_0x4635c1['elementId']!=_0x4d0a39['elementId'])return!0x1;return _0x4635c1['element']['name']==_0x4d0a39['element']['name'];}(_0x5966fd,_0x3cfa39)));}function _(_0x3f4cce){return k({'name':_0x3f4cce['name'],...Object['fromEntries'](_0x3f4cce['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 _0x33fbb5,Editor as _0x41003b,Plugin as _0x402f9a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x59de08,Collection as _0x351cc6,uid as _0x3cf2b9,toArray as rt,first as _0x348435,FocusTracker as _0x3a633f,KeystrokeHandler as _0x4a5ee5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x2ad091,IconView as st,ButtonView as ts,DropdownButtonView as _0x2d88e0,FocusCycler as _0xe40d05,isViewWithFocusCycler as _0x4581c7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as it,IconCheck as _0x50c073,IconCancel as _0x53e99f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as at,toWidget as _0x1784a7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x30b6b1,MoveOperation as _0xe709e7,ModelPosition as _0x293106,ModelRange as _0x12763e,MarkerOperation as _0x41205b,MergeOperation as _0x3ae8c9,SplitOperation as _0x21db56,RenameOperation as _0x4f13eb,AttributeOperation as _0x2360ba,ModelTreeWalker as _0x1ce609,ModelText as _0x11d5d8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x72fdf6}from'diff';class C extends _0x33fbb5{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x5699d4,_0x2abd47){let _0xd2d63a;if(_0x2abd47||(_0x2abd47=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x2abd47?_0xd2d63a=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0xd2d63a=this['context']['editors']['find'](_0x5f46c9=>_0x5f46c9['config']['get']('collaboration.channelId')==_0x2abd47)),!_0xd2d63a)throw new _0x59de08('permissions-set-permissions-invalid-channel-id',null);const _0x2da4ed=_0xd2d63a['plugins'],_0x87cbdd=_0x2da4ed['has']('CommentsRepository')?_0x2da4ed['get']('CommentsRepository'):void 0x0,_0x11376d=_0x2da4ed['has']('CommentsOnly')&&_0x2da4ed['get']('CommentsOnly'),_0x1912ab=_0x5699d4['includes']('document:write'),_0x3c4f10=_0x5699d4['includes']('comment:modify_all'),_0x113076=_0x5699d4['includes']('comment:admin'),_0x5bf248=_0x5699d4['includes']('comment:write'),_0x598829=_0x5bf248||_0x113076,_0x4c56a1=_0x598829||_0x3c4f10,_0x331192=_0x1912ab||_0x598829;(_0x11376d&&(_0x11376d['isEnabled']=!_0x1912ab&&_0x4c56a1),_0xd2d63a instanceof _0x41003b)&&(!(_0x1912ab||_0x4c56a1&&_0x87cbdd)?_0xd2d63a['enableReadOnlyMode']('no-permissions'):_0xd2d63a['disableReadOnlyMode']('no-permissions'));if(_0x87cbdd){_0x87cbdd['setPermissions']({'admin':_0x113076,'modifyAll':_0x3c4f10,'write':_0x5bf248,'resolve':_0x331192},_0x2abd47);const _0x5c0353=_0xd2d63a instanceof _0x41003b&&_0xd2d63a['commands']['get']('addCommentThread');_0x5c0353&&(_0x598829?_0x5c0353['clearForceDisabled']('noPermissions'):_0x5c0353['forceDisabled']('noPermissions'));}}}function U(_0x402431,_0x1a6e03){const t=_0x402431['t'];switch(_0x1a6e03){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 _0x33fbb5{['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(_0x221c56){super(_0x221c56),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x351cc6(),this['_locale']=_0x221c56['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:_0x2e895e,name:_0x17a5e3,..._0x5192d4}){if(!_0x2e895e||'string'!=typeof _0x2e895e)throw new _0x59de08('users-add-invalid-id');if(this['users']['has'](_0x2e895e))throw new _0x59de08('users-add-duplicated-id',null,{'id':_0x2e895e});const _0x43b77c=this['context']['config']['get']('users.getInitialsCallback'),_0x10bc3f={..._0x5192d4,'id':_0x2e895e,'name':A(this['_locale'],_0x17a5e3),'color':this['_getNextColor']()};_0x10bc3f['name']=A(this['_locale'],_0x10bc3f['name']);const _0x49aca9=new lt(_0x10bc3f,_0x43b77c);return this['users']['add'](_0x49aca9),_0x49aca9;}['getUser'](_0x3c1f09){return this['users']['get'](_0x3c1f09);}['useAnonymousUser'](){const _0x5b1bb5=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x5b1bb5);}['defineMe'](_0x29c145){if(this['_myId'])throw new _0x59de08('users-me-already-defined',null);const _0x25c876=this['getUser'](_0x29c145);if(!_0x25c876)throw new _0x59de08('users-me-missing-user',null);this['_myId']=_0x29c145,_0x25c876['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x2513ed=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x2513ed&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x145450=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x145450,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x11e22f,_0x4147ef){this['id']=_0x11e22f['id'],this['color']=_0x11e22f['color'],this['name']=_0x11e22f['name'],this['initials']=_0x4147ef?_0x4147ef(this['name']):this['_computeInitials'](),this['avatar']=_0x11e22f['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x57fc55=this['name']['split']('\x20')['filter'](_0x25a176=>/^[\p{Letter}]/u['test'](_0x25a176));return 0x1===_0x57fc55['length']?this['_getInitial'](_0x57fc55[0x0]):0x0===_0x57fc55['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x57fc55[0x0])+this['_getInitial'](_0x57fc55[_0x57fc55['length']-0x1]);}['_getInitial'](_0x6da622){return String['fromCodePoint'](_0x6da622['codePointAt'](0x0))['toUpperCase']();}}function A(_0x4b1436,_0x132402=''){return''==(_0x132402=_0x132402['trim']())?U(_0x4b1436,'Anonymous'):_0x132402;}class ut{['_id'];constructor(_0x7c6254){this['_id']=_0x7c6254;}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 _0x2ad091{['name'];['notificationView'];constructor(_0x47a45f,_0x5128b0,_0x1c396f){super(_0x47a45f),this['name']=_0x5128b0['name'],this['notificationView']=null;const _0x17476b=['ck','ck-user'],_0x1d31b9=['ck','ck-user__img'];if(_0x5128b0['isAnonymous']&&_0x1d31b9['push']('ck-user__anonymous'),!_0x5128b0['isAnonymous']&&_0x5128b0['isMe']&&_0x17476b['push']('ck-user_me'),_0x5128b0['avatar']&&_0x1d31b9['push']('ck-user__avatar'),_0x1c396f){const _0x2decea=new st();_0x2decea['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x2decea['content']=it,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x1c396f},'children':[_0x2decea]};}const _0x3acbef=[{'tag':'div','attributes':{'class':_0x1d31b9,'style':{'background-image':_0x5128b0['avatar']?'url(\x27'+_0x5128b0['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x5128b0['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x5128b0['name']},'children':[{'text':_0x5128b0['initials']}]}];this['notificationView']&&_0x3acbef['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x17476b,'data-user-id':_0x5128b0['id']},'children':_0x3acbef});}}class dt extends _0x2ad091{['id'];constructor(_0x53a3f3,_0xadb2f3){super(_0x53a3f3),this['id']='ck-aria-description-'+_0x3cf2b9(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0xadb2f3}]});}}class ft extends ts{['render'](){super['render'](),re(this);}}class gt extends _0x2d88e0{['render'](){super['render'](),re(this);}}function re(_0x280aed){_0x280aed['listenTo'](_0x280aed['element'],'mousedown',(_0x5c5c82,_0x2c3f31)=>{_0x2c3f31['stopPropagation'](),_0x2c3f31['preventDefault']();}),_0x280aed['listenTo'](_0x280aed['element'],'mouseup',()=>{_0x280aed['element']['focus']();});}function v(_0x1b2cc7){const _0x454d7d=_0x1b2cc7['split'](':');return{'group':_0x454d7d[0x0],'type':_0x454d7d[0x1],'subType':_0x454d7d['length']>=0x5?_0x454d7d[0x2]:null,'id':_0x454d7d['length']<0x5?_0x454d7d[0x2]:_0x454d7d[0x3],'authorId':_0x454d7d['length']<0x5?_0x454d7d[0x3]:_0x454d7d[0x4],'markerCount':0x6==_0x454d7d['length']?_0x454d7d[0x5]:null};}function mt(_0x2b5657,_0x49230c){const _0x565aab=_0x2b5657['end']['nodeBefore'];if(_0x565aab&&_0x565aab['is']('element')&&_0x49230c['schema']['isBlock'](_0x565aab)&&!_0x49230c['schema']['isObject'](_0x565aab)){const _0xd45cc8=_0x49230c['createPositionAt'](_0x565aab,'end');return _0x49230c['createRange'](_0x2b5657['start'],_0xd45cc8);}return _0x2b5657;}class M extends _0x402f9a{['afterInit'](){const _0x3bd583=this['editor'];if(!_0x3bd583['plugins']['has']('AlignmentEditing'))return;_0x3bd583['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x402f9a{['afterInit'](){const _0x3a9d5b=this['editor'],_0x12f50b=_0x3a9d5b['plugins']['get']('SuggestionsConversion');for(const _0x4ede34 of ii){if(!_0x3a9d5b['plugins']['has'](_0x4ede34))continue;const _0xbe6fbb=_0x4ede34['slice'](0x0,-0x7)['toLowerCase']();_0x12f50b['registerInlineAttribute'](_0xbe6fbb);}}}class I extends _0x402f9a{['afterInit'](){const _0x33dce2=this['editor'],_0xdfb6b1=_0x33dce2['plugins']['get']('SuggestionsConversion');_0x33dce2['plugins']['has']('BookmarkEditing')&&_0xdfb6b1['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x402f9a{['afterInit'](){const _0x5758a9=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x235cb2,commandName:_0x5be882}of no)this['editor']['plugins']['has'](_0x235cb2)&&_0x5758a9['registerInlineAttribute'](_0x5be882);}}class T extends _0x402f9a{['afterInit'](){const {editor:_0x116b62}=this;if(!_0x116b62['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x224d40=_0x116b62['plugins']['get']('SuggestionsConversion');_0x224d40['registerBlockAttribute']('footnotesListStyle'),_0x224d40['registerBlockAttribute']('footnotesListStart');}}class E extends _0x402f9a{['afterInit'](){const _0x53d7d5=this['editor'];if(!_0x53d7d5['plugins']['has']('HighlightEditing'))return;_0x53d7d5['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class S extends _0x402f9a{['afterInit'](){const _0x3fdb70=this['editor'];if(!_0x3fdb70['plugins']['has']('HtmlEmbed'))return;_0x3fdb70['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class $ extends _0x402f9a{['afterInit'](){const _0x31c1ac=this['editor'];if(!_0x31c1ac['plugins']['has']('ImageEditing'))return;const _0x427d9e=_0x31c1ac['plugins']['get']('SuggestionsConversion');_0x427d9e['registerBlockAttribute']('src'),_0x31c1ac['plugins']['has']('ImageResize')&&_0x427d9e['registerBlockAttribute']('resizedWidth'),_0x31c1ac['plugins']['has']('ImageTextAlternativeEditing')&&_0x427d9e['registerBlockAttribute']('alt'),_0x31c1ac['plugins']['has']('PictureEditing')&&_0x427d9e['registerBlockAttribute']('sources'),_0x31c1ac['plugins']['has']('ImageSizeAttributes')&&(_0x427d9e['registerBlockAttribute']('width'),_0x427d9e['registerBlockAttribute']('height'));}}class x extends _0x402f9a{['afterInit'](){const _0x48d0da=this['editor'],_0x41a4cf=_0x48d0da['plugins']['get']('SuggestionsConversion');_0x48d0da['plugins']['has']('IndentBlock')&&(_0x41a4cf['registerBlockAttribute']('blockIndent'),_0x48d0da['plugins']['has']('ListEditing')&&(_0x41a4cf['registerBlockAttribute']('blockIndentList'),_0x41a4cf['registerBlockAttribute']('blockIndentListItem')));}}class H extends _0x402f9a{['afterInit'](){const _0xc6d057=this['editor'];if(!_0xc6d057['plugins']['has']('LineHeight'))return;_0xc6d057['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class N extends _0x402f9a{['afterInit'](){const _0x36e4a1=this['editor'];if(!_0x36e4a1['plugins']['has']('LinkEditing'))return;const _0x159ebb=_0x36e4a1['plugins']['get']('SuggestionsConversion'),_0x58a1b7=_0x36e4a1['commands']['get']('link');_0x159ebb['registerInlineAttribute']('linkHref');for(const _0x1cd54b of _0x58a1b7['manualDecorators'])_0x159ebb['registerInlineAttribute'](_0x1cd54b['id']);}}class P extends _0x402f9a{['afterInit'](){const _0x9ed3f6=this['editor'];if(!_0x9ed3f6['plugins']['has']('ListEditing'))return;const _0x58f93e=_0x9ed3f6['plugins']['get']('SuggestionsConversion'),_0x5bc475=_0x9ed3f6['plugins']['has']('TodoListEditing');_0x58f93e['registerBlockAttribute']('listItemId'),_0x58f93e['registerBlockAttribute']('listType'),_0x58f93e['registerBlockAttribute']('listIndent'),_0x5bc475&&_0x58f93e['registerBlockAttribute']('todoListChecked');}}class K extends _0x402f9a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4a0dcc=this['editor']['config']['get']('list.properties'),_0x5a3edd=this['editor']['plugins']['get']('SuggestionsConversion');_0x4a0dcc['styles']&&_0x5a3edd['registerBlockAttribute']('listStyle'),_0x4a0dcc['reversed']&&_0x5a3edd['registerBlockAttribute']('listReversed'),_0x4a0dcc['startIndex']&&_0x5a3edd['registerBlockAttribute']('listStart');}}class q extends _0x402f9a{['afterInit'](){const _0x31d279=this['editor'],_0x3af765=_0x31d279['plugins']['get']('SuggestionsConversion');_0x31d279['plugins']['has']('MultiLevelList')&&_0x3af765['registerBlockAttribute']('listMarkerStyle');}}class z extends _0x402f9a{['afterInit'](){const _0x404112=this['editor'];if(!_0x404112['plugins']['has']('Style')||!_0x404112['plugins']['has']('DataSchema')||!_0x404112['config']['get']('style.definitions'))return;const _0x5bdd19=_0x404112['plugins']['get']('SuggestionsConversion'),_0x498f59=_0x404112['config']['get']('style.definitions'),_0x43374c=_0x404112['plugins']['get']('GeneralHtmlSupport'),_0x2a53f8=_0x404112['plugins']['get']('StyleUtils')['normalizeConfig'](_0x404112['plugins']['get']('DataSchema'),_0x498f59),_0x2bd30b=new Set();for(const _0x15b2f0 of _0x2a53f8['block']){const _0x37a7b8=_0x43374c['getGhsAttributeNameForElement'](_0x15b2f0['element']);_0x2bd30b['add'](_0x37a7b8);}const _0x948461=new Set();for(const _0x2ccfe5 of _0x2a53f8['inline']){const _0x374ade=_0x43374c['getGhsAttributeNameForElement'](_0x2ccfe5['element']);_0x948461['add'](_0x374ade);for(const _0x2d22c7 of _0x2ccfe5['ghsAttributes'])_0x948461['add'](_0x2d22c7);}for(const _0x5bf3d2 of _0x2bd30b)_0x5bdd19['registerBlockAttribute'](_0x5bf3d2);for(const _0x29de99 of _0x948461)_0x5bdd19['registerInlineAttribute'](_0x29de99);}}class O extends _0x402f9a{['afterInit'](){const _0x2d63c1=this['editor'];if(!_0x2d63c1['plugins']['has']('TableEditing'))return;const _0x55c8d6=_0x2d63c1['plugins']['get']('SuggestionsConversion');_0x55c8d6['registerBlockAttribute']('headingRows'),_0x55c8d6['registerBlockAttribute']('headingColumns');}}class R extends _0x402f9a{['afterInit'](){const {plugins:_0x2a6652}=this['editor'];if(!_0x2a6652['has']('TablePropertiesEditing'))return;const _0xe52cc=_0x2a6652['get']('SuggestionsConversion'),_0x2afaf6=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x1c4412 of _0x2afaf6)_0xe52cc['registerBlockAttribute'](_0x1c4412);}}class F extends _0x402f9a{['afterInit'](){const _0x247ce2=this['editor'],_0x599608=_0x247ce2['plugins']['get']('SuggestionsConversion');_0x247ce2['plugins']['has']('TableLayout')&&_0x599608['registerBlockAttribute']('tableType');}}class G extends _0x402f9a{['afterInit'](){const _0x58c029=this['editor'],_0xcd0aa7=this['editor']['plugins']['get']('SuggestionsConversion');_0x58c029['plugins']['has']('Uploadcare')&&_0x58c029['plugins']['has']('UploadcareImageEdit')&&_0xcd0aa7['registerBlockAttribute']('uploadcareImageId');}}class J extends _0x402f9a{['afterInit'](){const _0x3fc44c=this['editor'];if(!_0x3fc44c['plugins']['has']('ShiftEnter'))return;const _0x12de61=_0x3fc44c['plugins']['get']('SuggestionsConversion'),_0x5c8648=(_0x48e504,_0x4c4cdd,_0xfb80c9,_0x4ff111)=>{if(_0x4ff111&&!_0xfb80c9['options']['showSuggestionHighlights'])return;if(!_0xfb80c9['consumable']['test'](_0x4c4cdd['markerRange'],_0x48e504['name']))return;const _0x29f54=_0x3fc44c['model'];for(const _0x46ba65 of _0x4c4cdd['markerRange']['getItems']()){if(!_0x46ba65['is']('element','softBreak'))continue;const _0x54704f='deletion'==_0x4c4cdd['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x12bfc9,authorId:_0x110c97}=v(_0x4c4cdd['markerName']),_0x81c4e4=_0xfb80c9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54704f,'data-suggestion':_0x12bfc9,'data-author-id':_0x110c97}),_0x55e176=_0xfb80c9['mapper']['toViewPosition'](_0x29f54['createPositionBefore'](_0x46ba65));!_0x4ff111&&_0x12de61['_activeMarkers']['includes'](_0x4c4cdd['markerName'])&&_0xfb80c9['writer']['addClass']('ck-suggestion-marker--active',_0x81c4e4),_0xfb80c9['writer']['insert'](_0x55e176,_0x81c4e4),_0xfb80c9['mapper']['bindElementToMarker'](_0x81c4e4,_0x4c4cdd['markerName']);}};_0x3fc44c['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5de6f2,_0x2ee83e,_0x45ad38)=>{_0x5c8648(_0x5de6f2,_0x2ee83e,_0x45ad38,!0x1);},{'priority':'high'}),_0x3fc44c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30e249,_0x14eef8,_0x5aff8b)=>{_0x5c8648(_0x30e249,_0x14eef8,_0x5aff8b,!0x0);},{'priority':'high'});}}class L extends _0x402f9a{['afterInit'](){const _0x3977d0=this['editor'];_0x3977d0['plugins']['has']('MediaEmbedEditing')&&(_0x3977d0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x299374,{writer:_0x3700b2,options:_0x93da41})=>{if(_0x93da41['showSuggestionHighlights'])return _0x3700b2['createEmptyElement']('div');},'converterPriority':'high'}),_0x3977d0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2b2a11,_0x1693c2,_0x55e6b9)=>{_0x55e6b9['options']['showSuggestionHighlights']&&_0x2b2a11['stop']();},{'priority':'high'}));}}class Q extends _0x402f9a{['afterInit'](){const _0x1cea83=this['editor'];if(!_0x1cea83['plugins']['has']('Table'))return;_0x1cea83['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e37cf,_0x1a51f6,_0xe0ce5b)=>{((_0x30ee06,_0x1d63f8,_0x5c72ed)=>{if(!_0x5c72ed['options']['showSuggestionHighlights'])return;const _0x5523ad=_0x1d63f8['item'];if(!_0x5523ad||!_0x5523ad['is']('element','tableCell'))return;const _0x41de32=_0x5c72ed['mapper']['toViewElement'](_0x5523ad);if(_0x41de32){const {id:_0x551ee3,authorId:_0x5cd0c8}=v(_0x1d63f8['markerName']);at(_0x41de32,_0x5c72ed['writer'],(_0x45b5cb,_0x36ec0f,_0x14f6f5)=>{_0x14f6f5['addClass'](rt(_0x36ec0f['classes']),_0x45b5cb),_0x14f6f5['setAttribute']('data-suggestion-id',_0x551ee3,_0x45b5cb),_0x14f6f5['setAttribute']('data-author-id',_0x5cd0c8,_0x45b5cb);});}})(0x0,_0x1a51f6,_0xe0ce5b);},{'priority':'highest'});}}class V extends _0x402f9a{['afterInit'](){const _0x4900f8=this['editor'];_0x4900f8['plugins']['has']('HorizontalLineEditing')&&_0x4900f8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2c3931,{writer:_0x39cb52,options:_0x9e85fb})=>{if(!_0x9e85fb['showSuggestionHighlights'])return null;const _0x5f1fd0=_0x39cb52['createContainerElement']('div'),_0x38005a=_0x39cb52['createEmptyElement']('hr');return _0x39cb52['addClass']('ck-horizontal-line',_0x5f1fd0),_0x39cb52['insert'](_0x39cb52['createPositionAt'](_0x5f1fd0,0x0),_0x38005a),_0x5f1fd0;},'converterPriority':'high'});}}class W extends _0x402f9a{['afterInit'](){const {plugins:_0x2c8d36,model:_0x49c7a8}=this['editor'];if(!_0x2c8d36['has']('TableCellPropertiesEditing'))return;const _0x110a88=_0x2c8d36['get']('SuggestionsConversion'),_0x2cf4c0=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x3acd2a of _0x2cf4c0)_0x110a88['registerBlockAttribute'](_0x3acd2a);_0x49c7a8['schema']['checkAttribute']('tableCell','tableCellType')&&_0x110a88['registerBlockAttribute']('tableCellType');}}class kt extends _0x402f9a{['_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 _0x29ab88=this['editor'],_0x3354d4=(_0x182dac,_0x5b1d4f,_0x478df0)=>{const {id:_0x334a93,authorId:_0x5a6ea1,type:_0x4f5e50,subType:_0x3f85b3}=v(_0x182dac['markerName']),_0x3a6e51=['ck-suggestion-marker',this['_getClassName'](_0x4f5e50,_0x3f85b3)];let _0x1625c4=0xbb8;return!_0x478df0&&(this['_activeMarkers']['includes'](_0x182dac['markerName'])&&(_0x3a6e51['push']('ck-suggestion-marker--active'),_0x1625c4=0xbc2)),('deletion'==_0x4f5e50&&(_0x1625c4+=0x5),{'classes':_0x3a6e51,'attributes':{'data-suggestion':_0x334a93,'data-author-id':_0x5a6ea1},'priority':_0x1625c4});};_0x29ab88['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xc3c2eb,_0x170121)=>_0x3354d4(_0xc3c2eb,0x0,!0x1)}),_0x29ab88['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x229dec,_0x2632d3)=>_0x3354d4(_0x229dec,0x0,!0x0)}),_0x29ab88['conversion']['for']('dataDowncast')['add'](_0x39642c=>{_0x39642c['on']('addMarker:suggestion',(_0x345ba7,_0x5ae343,_0x3ff568)=>{if(!_0x3ff568['options']['showSuggestionHighlights'])return;const _0x5020f5=_0x5ae343['item'];if(!_0x5020f5)return;const _0x44cfad=_0x3ff568['mapper']['toViewElement'](_0x5020f5);_0x29ab88['model']['schema']['isObject'](_0x5020f5)&&_0x44cfad&&!_0x44cfad['getCustomProperty']('widget')&&_0x44cfad['is']('containerElement')&&_0x1784a7(_0x44cfad,_0x3ff568['writer']);},{'priority':'high'});});const _0x3a9e18=(_0x4d3c46,_0x5738b3,_0x37bdb6,_0x5bee92,_0x13856e)=>{if(_0x5bee92&&!_0x37bdb6['options']['showSuggestionHighlights'])return;if(!_0x5738b3['item'])return;const {id:_0x1322d6,authorId:_0x5aeea3,subType:_0x35542f}=v(_0x5738b3['markerName']);if(_0x13856e){const _0x5b072a=_0x35542f['split']('|')[0x0];if(!this['isBlockAttribute'](_0x5b072a))return;}if(_0x5738b3['item']['is']('selection'))return void _0x37bdb6['consumable']['consume'](_0x5738b3['item'],_0x4d3c46['name']);const _0x1a2f1f=_0x37bdb6['mapper']['toViewElement'](_0x5738b3['item']);if(_0x5738b3['item']['is']('element')&&_0x29ab88['model']['schema']['isBlock'](_0x5738b3['item'])&&!_0x1a2f1f['getCustomProperty']('addHighlight')){_0x37bdb6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1a2f1f),_0x37bdb6['writer']['setAttribute']('data-suggestion',_0x1322d6,_0x1a2f1f),_0x37bdb6['writer']['setAttribute']('data-author-id',_0x5aeea3,_0x1a2f1f),_0x37bdb6['mapper']['bindElementToMarker'](_0x1a2f1f,_0x5738b3['markerName']),_0x5bee92||(this['_activeMarkers']['includes'](_0x5738b3['markerName'])?_0x37bdb6['writer']['addClass']('ck-suggestion-marker--active',_0x1a2f1f):_0x37bdb6['writer']['removeClass']('ck-suggestion-marker--active',_0x1a2f1f));for(const _0x193797 of _0x29ab88['model']['createRangeIn'](_0x5738b3['item'])['getItems']())_0x37bdb6['consumable']['consume'](_0x193797,_0x4d3c46['name']);_0x37bdb6['consumable']['consume'](_0x5738b3['item'],_0x4d3c46['name']);}},_0x2f5a8c=(_0x7d44a7,_0x2d2173,_0x4e2338,_0x2a0bd2)=>{const _0x4fc396=_0x4e2338['mapper']['markerNameToElements'](_0x2d2173['markerName']);if(_0x4fc396){if(_0x2a0bd2){const {subType:_0x620d6d}=v(_0x2d2173['markerName']),_0xae4b00=_0x620d6d['split']('|')[0x0];if(!this['isBlockAttribute'](_0xae4b00))return;}for(const _0x58f658 of _0x4fc396)_0x58f658['getCustomProperty']('addHighlight')||(_0x4e2338['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x58f658),_0x4e2338['writer']['removeAttribute']('data-suggestion',_0x58f658),_0x4e2338['writer']['removeAttribute']('data-author-id',_0x58f658),_0x4e2338['mapper']['unbindElementFromMarkerName'](_0x58f658,_0x2d2173['markerName']));}};_0x29ab88['conversion']['for']('editingDowncast')['add'](_0x5e6a57=>{_0x5e6a57['on']('addMarker:suggestion:formatBlock',(_0x49178d,_0x58ef35,_0x3e9dd1)=>{_0x3a9e18(_0x49178d,_0x58ef35,_0x3e9dd1,!0x1,!0x1);},{'priority':'high'});}),_0x29ab88['conversion']['for']('editingDowncast')['add'](_0x5bc8f8=>{_0x5bc8f8['on']('addMarker:suggestion:attribute',(_0x4adf59,_0x52b152,_0x382da5)=>{_0x3a9e18(_0x4adf59,_0x52b152,_0x382da5,!0x1,!0x0);},{'priority':'high'});}),_0x29ab88['conversion']['for']('editingDowncast')['add'](_0x33302d=>{_0x33302d['on']('removeMarker:suggestion:formatBlock',(_0x298aed,_0x101216,_0x2ef7c7)=>{_0x2f5a8c(0x0,_0x101216,_0x2ef7c7,!0x1);},{'priority':'high'});}),_0x29ab88['conversion']['for']('editingDowncast')['add'](_0x539da0=>{_0x539da0['on']('removeMarker:suggestion:attribute',(_0x352bd7,_0x2fd1bc,_0x49559f)=>{_0x2f5a8c(0x0,_0x2fd1bc,_0x49559f,!0x0);},{'priority':'high'});}),_0x29ab88['conversion']['for']('dataDowncast')['add'](_0x44e44e=>{_0x44e44e['on']('addMarker:suggestion:formatBlock',(_0x499cc8,_0x43117f,_0x3238ec)=>{_0x3a9e18(_0x499cc8,_0x43117f,_0x3238ec,!0x0,!0x1);},{'priority':'highest'});}),_0x29ab88['conversion']['for']('dataDowncast')['add'](_0x13166c=>{_0x13166c['on']('addMarker:suggestion:attribute',(_0x1de816,_0x17923c,_0x20270f)=>{_0x3a9e18(_0x1de816,_0x17923c,_0x20270f,!0x0,!0x0);},{'priority':'highest'});}),_0x29ab88['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x25f025,_0x55600b)=>{if(_0x55600b['options']['showSuggestionHighlights']){const {id:_0x2ef337,authorId:_0xb609ba}=v(_0x25f025);return _0x25f025['includes'](':split')||_0x25f025['includes'](':merge')?{'group':'suggestion','name':_0x25f025['substr'](0xb),'attributes':{'data-suggestion':_0x2ef337,'data-author-id':_0xb609ba}}:null;}return{'group':'suggestion','name':_0x25f025['substr'](0xb)};}});const _0x473fdb=(_0x13d3b1,_0x2dda1b,_0x8466aa,_0x256702,_0x53b67c)=>{if(_0x256702&&!_0x8466aa['options']['showSuggestionHighlights'])return;if(!_0x8466aa['consumable']['test'](_0x2dda1b['markerRange'],_0x13d3b1['name']))return;const _0x5f5920=this['_activeMarkers'],_0x58ac66=_0x2dda1b['markerRange']['getWalker'](),_0x519277=_0x2dda1b['markerRange']['start'],_0xab8f94=_0x29ab88['model']['schema'];let _0x3122fa=null,_0xfe4b7c=null,_0x3f2314=!0x1,_0x1ce087=!0x1;for(const _0x543c84 of _0x58ac66){const _0x5f58b7=_0x543c84['item'];_0x3f2314=_0x3f2314||_0xab8f94['isContent'](_0x5f58b7);const _0x3de548=_0x8466aa['mapper']['toViewElement'](_0x5f58b7);if(_0x3de548&&_0x3de548['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x543c84['type']&&(_0xab8f94['isBlock'](_0x5f58b7)&&!_0xab8f94['isLimit'](_0x5f58b7)&&(_0x5f58b7['nextSibling']||_0x519277['isAtEnd']?_0x3122fa&&_0x3122fa['parent']==_0x5f58b7||(_0x3122fa=_0x5f58b7,_0x58983d(_0x543c84['previousPosition']),_0x1ce087=!0x0):_0xfe4b7c=_0xfe4b7c||_0x543c84['previousPosition']));}function _0x58983d(_0x177f8f){const {id:_0x5506eb,authorId:_0x45a382}=v(_0x2dda1b['markerName']),_0x2c6649=_0x8466aa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x53b67c,'data-suggestion':_0x5506eb,'data-author-id':_0x45a382}),_0x383b55=_0x8466aa['mapper']['toViewPosition'](_0x177f8f);!_0x256702&&_0x5f5920['includes'](_0x2dda1b['markerName'])&&_0x8466aa['writer']['addClass']('ck-suggestion-marker--active',_0x2c6649),_0x8466aa['writer']['insert'](_0x383b55,_0x2c6649),_0x8466aa['mapper']['bindElementToMarker'](_0x2c6649,_0x2dda1b['markerName']);}_0x3f2314||_0x1ce087||!_0xfe4b7c||_0x58983d(_0xfe4b7c);};_0x29ab88['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xa02b17,_0x3ce811,_0x440315)=>{_0x473fdb(_0xa02b17,_0x3ce811,_0x440315,!0x1,'merge');},{'priority':'high'}),_0x29ab88['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x253e7d,_0x444e63,_0x5bc131)=>{_0x473fdb(_0x253e7d,_0x444e63,_0x5bc131,!0x0,'merge');},{'priority':'high'}),_0x29ab88['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x588e3f,_0x3a712c,_0x228b99)=>{_0x473fdb(_0x588e3f,_0x3a712c,_0x228b99,!0x1,'split');},{'priority':'high'}),_0x29ab88['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2a4b25,_0xc0ac50,_0x599ca6)=>{_0x473fdb(_0x2a4b25,_0xc0ac50,_0x599ca6,!0x0,'split');},{'priority':'high'}),_0x29ab88['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xd4337f,_0x40816d,_0x1703c9)=>{((_0x43aef3,_0x18abe6,_0x2314b5)=>{const _0x14fbe0=_0x2314b5['mapper']['markerNameToElements'](_0x18abe6['markerName']);if(_0x14fbe0){for(const _0x3385a6 of _0x14fbe0)(_0x3385a6['hasClass']('ck-suggestion-marker-split')||_0x3385a6['hasClass']('ck-suggestion-marker-merge'))&&(_0x2314b5['mapper']['unbindElementFromMarkerName'](_0x3385a6,_0x18abe6['markerName']),_0x2314b5['writer']['remove'](_0x3385a6));}})(0x0,_0x40816d,_0x1703c9);},{'priority':'high'});const _0x591e3f=(_0x2d5848,_0x526a93,_0x333669,_0x540aeb)=>{if(_0x540aeb&&!_0x333669['options']['showSuggestionHighlights'])return;const _0x17fe92=_0x526a93['markerRange']['start'],_0x96417c=_0x526a93['markerRange']['end'],_0x47295b=_0x29ab88['model']['schema'];if(!_0x17fe92['isTouching'](_0x96417c)||!_0x17fe92['nodeAfter'])return;const _0x5264da=_0x17fe92['nodeAfter'];if(_0x47295b['isBlock'](_0x5264da)&&!_0x47295b['isLimit'](_0x5264da)&&_0x47295b['checkChild'](_0x5264da,'$text')){if(!_0x333669['consumable']['consume'](_0x526a93['markerRange'],_0x2d5848['name']))return;const {id:_0x53f095,authorId:_0x33731a}=v(_0x526a93['markerName']),_0x2f58bd=_0x333669['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x53f095,'data-author-id':_0x33731a}),_0x2e0459=_0x333669['mapper']['toViewPosition'](_0x96417c);!_0x540aeb&&this['_activeMarkers']['includes'](_0x526a93['markerName'])&&_0x333669['writer']['addClass']('ck-suggestion-marker--active',_0x2f58bd),_0x333669['writer']['insert'](_0x2e0459,_0x2f58bd),_0x333669['mapper']['bindElementToMarker'](_0x2f58bd,_0x526a93['markerName']);}};_0x29ab88['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38d7e7,_0x50fbdf,_0x30e1ad)=>{_0x591e3f(_0x38d7e7,_0x50fbdf,_0x30e1ad,!0x1);},{'priority':'high'}),_0x29ab88['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x8f9277,_0x447642,_0x30ba48)=>{_0x591e3f(_0x8f9277,_0x447642,_0x30ba48,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x5bdfbd,_0x339341,_0x4171a2)=>{this['_activeMarkers']=_0x4171a2['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x2a1d87){this['_blockAttributeKeys']['add'](_0x2a1d87);}['registerInlineAttribute'](_0x2df4b2){this['_inlineAttributeKeys']['add'](_0x2df4b2);}['isBlockAttribute'](_0x49ce9e){return this['_blockAttributeKeys']['has'](_0x49ce9e);}['isInlineAttribute'](_0x2035d1){return this['_inlineAttributeKeys']['has'](_0x2035d1);}['isRegisteredAttribute'](_0x174e90){return this['isInlineAttribute'](_0x174e90)||this['isBlockAttribute'](_0x174e90);}['_getClassName'](_0x2cf356,_0xac2d5c){if('attribute'!=_0x2cf356)return'ck-suggestion-marker-'+_0x2cf356;const _0x54d620=_0xac2d5c['split']('|')[0x0];return this['isBlockAttribute'](_0x54d620)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x5ff6a={},_0x5ddf97){if(void 0x0!==_0x5ff6a['dateTimeFormat']&&'function'!=typeof _0x5ff6a['dateTimeFormat'])throw new _0x59de08('invalid-date-time-format');return _0x26ad78=>{const _0x5b1a99='string'==typeof _0x26ad78?tt['fromISO'](_0x26ad78):tt['fromJSDate'](_0x26ad78),_0x2c5851=tt['now'](),_0x2d73bd=Math['floor'](_0x2c5851['diff'](_0x5b1a99,'days')['days']);return _0x5ff6a['dateTimeFormat']?_0x5ff6a['dateTimeFormat'](_0x5b1a99['toJSDate'](),_0x5ddf97&&_0x5ddf97['t']?_0x5ddf97['t']:void 0x0):0x0===_0x2d73bd?_0x5ddf97?U(_0x5ddf97,'Today')+'\x20'+_0x5b1a99['toFormat']('hh:mma'):_0x5b1a99['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x2d73bd?_0x5ddf97?U(_0x5ddf97,'Yesterday')+'\x20'+_0x5b1a99['toFormat']('hh:mma'):_0x5b1a99['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x2d73bd<0x7?_0x5ddf97?U(_0x5ddf97,'Last')+'\x20'+U(_0x5ddf97,_0x5b1a99['toFormat']('EEEE'))+'\x20'+_0x5b1a99['toFormat']('hh:mma'):_0x5b1a99['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x5b1a99['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x20974a,_0x297e3a){const _0x5506ad=_0x20974a['mapper']['markerNameToElements'](_0x297e3a['name']);if(!_0x5506ad)return null;const _0x50f461=_0x348435(_0x5506ad['values']());return _0x20974a['view']['domConverter']['mapViewToDom'](_0x50f461)||null;}function wt(_0xdc1719,_0x12dc0f){if(0x0===_0x12dc0f['length'])return null;const _0x24dc2f=[],_0x2767e8=_0xdc1719['view']['domConverter'];for(const _0x1ff8b1 of _0x12dc0f){const _0x53562f=_0xdc1719['mapper']['markerNameToElements'](_0x1ff8b1['name']);if(!_0x53562f)continue;const _0x2453ae=Array['from'](_0x53562f)['map'](_0xc6cd1=>_0x2767e8['mapViewToDom'](_0xc6cd1))['filter'](_0x15ac9c=>!!_0x15ac9c);_0x24dc2f['push'](..._0x2453ae);}if(0x0===_0x24dc2f['length'])return null;const _0x35ff3d=[];for(const _0x873435 of _0x24dc2f){const _0x2c8429=_0x873435['getClientRects']()['item'](0x0);_0x2c8429&&_0x35ff3d['push']({'x':_0x2c8429['x'],'y':_0x2c8429['y'],'domElement':_0x873435});}return 0x0===_0x35ff3d['length']?null:(_0x35ff3d['sort']((_0x2fccc0,_0x4222c3)=>_0x2fccc0['y']-_0x4222c3['y']||_0x2fccc0['x']-_0x4222c3['x']),_0x35ff3d['map'](_0x486043=>_0x486043['domElement']));}function bt(_0x570c11,{limit:_0x226b4d,suffix:_0x4d9e7b='...'}){const _0x30737f=[];let _0x39b743=0x0;const _0x1daee0=_0x570c11['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x54891a=0x0;_0x54891a<_0x1daee0['length'];_0x54891a++){let _0x5db9d4=_0x1daee0[_0x54891a];const _0x46eda8=tn(_0x5db9d4);if(_0x5db9d4['startsWith']('<')){if(_0x39b743>=_0x226b4d){const _0xf6261c=_0x5db9d4['match'](/[a-zA-Z]+/);if(!_0xf6261c){_0x1daee0[_0x54891a]='';continue;}const _0x545b8e=_0xf6261c[0x0];_0x5db9d4['startsWith']('</')?(_0x30737f['length']&&(_0x5db9d4=''),_0x30737f['pop']()):(_0x30737f['push'](_0x545b8e),_0x5db9d4='');}}else{if(_0x39b743>=_0x226b4d)_0x5db9d4='';else{if(_0x39b743+_0x46eda8['length']>=_0x226b4d){let _0xc67e54=_0x226b4d-_0x39b743;if('\x20'===_0x46eda8[_0xc67e54-0x1])_0xc67e54--;else{const _0x326c74=_0x46eda8['slice'](_0xc67e54)['indexOf']('\x20');-0x1!==_0x326c74?_0xc67e54+=_0x326c74:_0xc67e54=_0x5db9d4['length'];}_0x5db9d4=_0x46eda8['slice'](0x0,_0xc67e54)['join']('')+_0x4d9e7b,_0x39b743=_0x226b4d;}else _0x39b743+=_0x46eda8['length'];}}_0x1daee0[_0x54891a]=_0x5db9d4;}return _0x1daee0['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x2bcd73){const _0x4f801a=[];for(let _0x5bc656=0x0;_0x5bc656<_0x2bcd73['length'];_0x5bc656++){const _0xc5db16=_0x2bcd73['substring'](_0x5bc656)['match'](/^&[a-z0-9#]+;/);if(_0xc5db16){const _0x3fdf00=_0xc5db16[0x0];_0x4f801a['push'](_0x3fdf00),_0x5bc656+=_0x3fdf00['length']-0x1;}else _0x4f801a['push'](_0x2bcd73[_0x5bc656]);}return _0x4f801a;}class X extends _0x2ad091{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x5b5001){super(_0x5b5001);const _0x59d912=this['bindTemplate'];this['set']('message',U(_0x5b5001,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x5b5001,U(_0x5b5001,'Yes'),_0x50c073,'submit'),this['cancelView']=this['_createButtonView'](_0x5b5001,U(_0x5b5001,'No'),_0x53e99f,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x3a633f(),this['keystrokes']=new _0x4a5ee5(),this['focusCycler']=new _0xe40d05({'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':_0x59d912['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'](_0x118d2b,_0x5f3a45,_0x6580b8,_0x28d45c){const _0x492ea2=new ts(_0x118d2b);return _0x492ea2['label']=_0x5f3a45,_0x492ea2['icon']=_0x6580b8,_0x492ea2['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x28d45c}}),_0x492ea2['on']('execute',()=>this['fire'](_0x28d45c)),_0x492ea2;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x34af0f=>{this['keystrokes']['listenTo'](_0x34af0f['element']),this['focusTracker']['add'](_0x34af0f['element']);}),this['keystrokes']['set']('esc',(_0xb3897d,_0x45c53a)=>{this['fire']('cancel'),_0x45c53a();});}}function vt(_0x42eee5){return class extends _0x42eee5{['showConfirm'](_0x86f055,_0x2c4959){return this['confirmView']=new X(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x86f055,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x2c4959['appendChild'](this['confirmView']['element']),_0x2c4959['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x312db7,_0x555eea,_0x93a4ad)=>{_0x93a4ad||_0x2c4959['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x3945cf=>this['confirmView']['on']('submit',_0x3945cf));}['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(_0x2b9c85){let _0x219733=0x0,_0x23f389=0x0;for(const _0x110475 of ne(_0x2b9c85))_0x219733=(_0x219733<<0x5)-_0x219733+_0x110475,_0x219733&=_0x219733,[_0x219733,_0x23f389]=[_0x23f389,_0x219733];return ie(_0x219733)+ie(_0x23f389);}function*ee(_0x184768){null==_0x184768||null==_0x184768?yield 0x12b9b0a1:0x0===_0x184768||!0x1===_0x184768?yield 0x0:0x1===_0x184768||0x1==_0x184768?yield 0x1:Array['isArray'](_0x184768)?yield*function*(_0x30cdc2){for(const _0x4c314b of _0x30cdc2)yield*ee(_0x4c314b);}(_0x184768):'object'==typeof _0x184768?yield*ne(_0x184768):'string'==typeof _0x184768?yield*oe(_0x184768):'number'==typeof _0x184768&&(yield _0x184768);}function*ne(_0x2b9449){if(yield te('{'),_0x2b9449){const _0x1baf88=Object['keys'](_0x2b9449)['sort']();for(const _0x1cd08a of _0x1baf88){yield*oe(_0x1cd08a),yield te(':');const _0x24d277=_0x2b9449[_0x1cd08a];yield*ee(_0x24d277);}}yield te('}');}function*oe(_0x7b6674){yield te('\x22');for(const _0x817e2c of _0x7b6674)yield te(_0x817e2c);yield te('\x22');}function te(_0x14df5d){return _0x14df5d['charCodeAt'](0x0);}function ie(_0x477fa7){return(_0x477fa7*=Math['sign'](_0x477fa7))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x47a427,_0x3caf55,_0x5dee0d,_0x18e45f=[]){const _0x507a52='string'==typeof _0x47a427?_0x5dee0d['get'](_0x47a427)['constructor']:_0x47a427['prototype']['constructor'];if(_0x3caf55['has'](_0x507a52))return _0x3caf55['get'](_0x507a52);_0x3caf55['set'](_0x507a52,!0x0);const _0x415b07=[...et,..._0x18e45f]['map'](_0x29280e=>{if(_0x5dee0d['has'](_0x29280e))return _0x5dee0d['get'](_0x29280e)['constructor'];})['filter'](_0x576318=>_0x576318);if(_0x507a52&&_0x415b07['includes'](_0x507a52))return _0x3caf55['set'](_0x507a52,!0x1),!0x1;if(!_0x507a52['requires'])return _0x3caf55['set'](_0x507a52,!0x0),!0x0;const _0x9001d=_0x507a52['requires']['every'](_0xf42813=>ot(_0xf42813,_0x3caf55,_0x5dee0d,_0x18e45f));return _0x3caf55['set'](_0x507a52,_0x9001d),_0x9001d;}function Ct(_0xe4f19,_0x20bc2d){const _0x2db2b3={};for(const _0x4bf528 of _0xe4f19['config']['names']())nt['includes'](_0x4bf528)||(_0x2db2b3[_0x4bf528]=_0xe4f19['config']['get'](_0x4bf528));const _0x40da51=_0x2db2b3['plugins']||[],_0x2aa443=_0xe4f19['constructor']['builtinPlugins']||[],_0x2f67e8=_0x40da51['length']?_0x40da51:_0x2aa443,_0x366dab=_0x2db2b3['extraPlugins']||[];delete _0x2db2b3['extraPlugins'];const _0x188bfe=_0x2db2b3['removePlugins']||[];delete _0x2db2b3['removePlugins'];const _0x5c6690=_0xe4f19['_context']['config']['get']('plugins')||[],_0x207583=_0x2f67e8['concat'](_0x366dab)['concat'](_0x5c6690)['map'](_0x564183=>'string'==typeof _0x564183?_0x2aa443['find'](_0x5da9b5=>_0x5da9b5['pluginName']==_0x564183):_0x564183)['filter'](_0x2c6d63=>!_0x188bfe['includes'](_0x2c6d63)&&!_0x188bfe['includes'](_0x2c6d63['pluginName'])),_0x1f77b0=Array['from'](new Set(_0x207583)),_0x462928=new Map();return _0x2db2b3['plugins']=_0x1f77b0['filter'](_0x1a05c2=>ot(_0x1a05c2,_0x462928,_0xe4f19['plugins'],_0x20bc2d)),_0x2db2b3;}function xt(_0x2c98d3,_0x563cd5){const _0x34c5f0=[];_0x2c98d3['document']['selection']['on']('change:range',()=>{const _0x490cdb=function(_0x4485c1,_0x202a98){const _0xdaf298=[];for(const _0x4beeed of _0x4485c1['markers']){const _0x885cea=_0x4beeed['getRange']();(_0x885cea['containsPosition'](_0x202a98)||_0x885cea['start']['isEqual'](_0x202a98)||_0x885cea['end']['isEqual'](_0x202a98))&&_0xdaf298['push'](_0x4beeed);}return _0xdaf298;}(_0x2c98d3,_0x2c98d3['document']['selection']['focus']),_0x60614d=[],_0xeeaed6=[],_0xec811c=[];for(const _0x5f3593 of _0x34c5f0)_0x490cdb['includes'](_0x5f3593)||_0x60614d['push'](_0x5f3593);for(const _0x213300 of _0x490cdb)_0x34c5f0['includes'](_0x213300)||_0xeeaed6['push'](_0x213300),_0xec811c['push'](_0x213300);(_0x60614d['length']||_0xeeaed6['length'])&&_0x563cd5({'left':_0x60614d,'entered':_0xeeaed6}),_0x34c5f0['length']=0x0,_0x34c5f0['push'](..._0xec811c);});}const It='Ctrl+Shift+E';function _t(_0x5dbaba,_0x53be3d){const _0x17c4c4=_0x5dbaba['element'];_0x5dbaba['keystrokes']['listenTo'](_0x17c4c4);for(const _0x3a91e3 of _0x53be3d)ro(_0x5dbaba,_0x3a91e3);_0x53be3d['on']('change',(_0x476fdc,_0x57f74e)=>{for(const _0xe62ae0 of _0x57f74e['removed'])to(_0x5dbaba,_0xe62ae0);for(const _0x9c8c73 of Array['from'](_0x57f74e['added'])['reverse']())ro(_0x5dbaba,_0x9c8c73);}),_0x5dbaba['keystrokes']['set']('enter',(_0x14a07c,_0x26c03d)=>{_0x17c4c4===_0x14a07c['target']&&(_0x5dbaba['focusCycler']['focusFirst'](),_0x26c03d());},{'filter':_0x29d1b0=>_0x29d1b0['target']===_0x17c4c4}),_0x5dbaba['keystrokes']['set']('esc',(_0x2d571e,_0x57a715)=>{_0x17c4c4!==_0x2d571e['target']?_0x5dbaba['focus']():_0x5dbaba['fire']('escape'),_0x57a715();}),_0x5dbaba['keystrokes']['set']('arrowdown',(_0x595fa1,_0x668f1f)=>{_0x17c4c4===_0x595fa1['target']&&(_0x5dbaba['fire']('arrowdown'),_0x668f1f());}),_0x5dbaba['keystrokes']['set']('arrowup',(_0x11068c,_0x990914)=>{_0x17c4c4===_0x11068c['target']&&(_0x5dbaba['fire']('arrowup'),_0x990914());});}function ro(_0x119753,_0x9e1ca){_0x9e1ca['isRendered']&&(_0x119753['focusTracker']['add'](_0x9e1ca['element']),_0x119753['keystrokes']['listenTo'](_0x9e1ca['element']),_0x4581c7(_0x9e1ca)&&function(_0x328e85,_0x4b22b9){const _0x1d2bb4=_0x328e85['actions'],_0x4e5d87=_0x4b22b9['actions'];for(const _0x1e786a of Object['keys'](_0x1d2bb4))if(_0x1e786a in _0x4e5d87&&_0x1d2bb4[_0x1e786a]!==_0x4e5d87[_0x1e786a])return!0x1;return!0x0;}(_0x119753['focusCycler'],_0x9e1ca['focusCycler'])&&_0x119753['focusCycler']['chain'](_0x9e1ca['focusCycler']));}function to(_0x2e6080,_0x26afd8){_0x2e6080['focusTracker']['remove'](_0x26afd8['element']),_0x2e6080['keystrokes']['stopListening'](_0x26afd8['element']),_0x4581c7(_0x26afd8)&&_0x2e6080['focusCycler']['unchain'](_0x26afd8['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x33fbb5{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x41003b?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x4e4da8,_0x2c8800)=>{_0x2c8800['on']('ready',()=>{this['_integrateEditor'](_0x2c8800);});});}get['editor'](){if(this['context']instanceof _0x41003b)return this['context'];{const _0x1d0b68=this['context']['editors']['first'];if(!_0x1d0b68)throw new _0x59de08('documentcompare-no-editor',this);return _0x1d0b68;}}['getDiff'](_0x1e6056,_0xa5147d,_0x108810={'anchor':'main','markDeletions':!0x1}){let _0x4782b1,_0x1c3263;const _0x2bffc9=this['editor'];if('string'==typeof _0x108810['anchor']){const _0x4f747a=_0x2bffc9['model']['document']['getRoot'](_0x108810['anchor']);if(!_0x4f747a)throw new _0x59de08('documentcompare-compare-no-root',this,{'anchor':_0x108810['anchor']});_0x4782b1=_0x4f747a,_0x1c3263=_0x2bffc9['model']['createPositionAt'](_0x4f747a,0x0);}else _0x4782b1=_0x108810['anchor']['clone'](),_0x1c3263=_0x108810['anchor']['clone']();const _0x5ee6eb=_0x2bffc9['data']['parse'](_0x1e6056,_0x4782b1),_0x3ed6a6=_0x2bffc9['data']['parse'](_0xa5147d,_0x4782b1);return new Mt(_0x5ee6eb,_0x3ed6a6,_0x2bffc9,{'anchor':_0x1c3263,'markDeletions':_0x108810['markDeletions']});}['isMarkedRemoveOperation'](_0x53699e){return'marker'==_0x53699e['type']&&_0x53699e['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x5906f){_0x5906f['conversion']['for']('upcast')['add'](_0x2da36a=>{_0x2da36a['on']('element',(_0x1898a1,_0x4af92b,_0xde6d2a)=>{if(_0x4af92b['modelRange'])for(const _0x2789cb of _0x4af92b['modelRange']['getItems']({'shallow':!0x0})){if(_0x2789cb['is']('$textProxy'))continue;const _0x4a5a32=_0x4af92b['viewItem']['getAttribute'](Et);_0x4a5a32&&_0xde6d2a['writer']['setAttribute'](St,_0x4a5a32,_0x2789cb);}},{'priority':'lowest'});}),_0x5906f['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x3c2d0f,_0xab806b,_0x39fde3,_0x1ef111){this['_editor']=_0x39fde3,this['_markDeletions']=!!_0x1ef111['markDeletions'],this['_anchor']=_0x1ef111['anchor'];const _0x333e01=this['_tokenizeModel'](_0x3c2d0f),_0x41e52a=this['_tokenizeModel'](_0xab806b);this['_diffItems']=this['_diffModelTokens'](_0x333e01,_0x41e52a),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x3c2d0f['markers'],_0xab806b['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x2627bf=this['_editor']['model']['document'],_0x27b2e1=[];let _0x352c80=_0x2627bf['version'];for(const _0x399199 of this['_operationsData'])switch(_0x399199['type']){case'attribute':{const _0x552b05=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x399199['path']),_0x4322f4=_0x552b05['getShiftedBy'](_0x399199['howMany']),_0x5862a2=new _0x12763e(_0x552b05,_0x4322f4),_0x364c5a=JSON['parse'](_0x399199['oldValue']),_0x1d8a57=JSON['parse'](_0x399199['newValue']);_0x27b2e1['push'](new _0x2360ba(_0x5862a2,_0x399199['key'],_0x364c5a,_0x1d8a57,_0x352c80++));break;}case'insert':{const _0x2845ab=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x399199['path']),_0x508c19=this['_makeModelFromTokens'](_0x399199['tokens']);_0x27b2e1['push'](new _0x30b6b1(_0x2845ab,_0x508c19,_0x352c80++));break;}case'remove':{const _0x34fe63=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x399199['path']),_0x2c4f0a=new _0x293106(_0x2627bf['graveyard'],[0x0]);_0x27b2e1['push'](new _0xe709e7(_0x34fe63,_0x399199['howMany'],_0x2c4f0a,_0x352c80++));break;}case'rename':{const _0x2a19a8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x399199['path']);_0x27b2e1['push'](new _0x4f13eb(_0x2a19a8,_0x399199['oldName'],_0x399199['newName'],_0x352c80++));break;}case'split':{const _0x5a4ff8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x399199['path']),_0x1debc7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x399199['path']['slice'](0x0,-0x1));_0x1debc7['offset']++,_0x27b2e1['push'](new _0x21db56(_0x5a4ff8,Number['NEGATIVE_INFINITY'],_0x1debc7,null,_0x352c80++));break;}case'merge':{const _0x251444=_0x399199['path']['slice'](),_0x23a3e7=_0x251444['slice'](0x0,-0x1);_0x23a3e7[_0x23a3e7['length']-0x1]++,_0x23a3e7['push'](0x0);const _0x3788bb=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x23a3e7),_0x4d3411=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x251444),_0x42bcac=new _0x293106(_0x2627bf['graveyard'],[0x0]);_0x27b2e1['push'](new _0x3ae8c9(_0x3788bb,Number['NEGATIVE_INFINITY'],_0x4d3411,_0x42bcac,_0x352c80++));break;}case'marker':case'markedRemove':{let _0x2d347b=null;if(_0x399199['range']){const _0x2bfb50=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x399199['range']['start']),_0x5eda32=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x399199['range']['end']);_0x2d347b=new _0x12763e(_0x2bfb50,_0x5eda32);}const _0x24677f='marker'==_0x399199['type']?_0x399199['name']:'$markedRemove:'+_0x3cf2b9();_0x27b2e1['push'](new _0x41205b(_0x24677f,null,_0x2d347b,_0x2627bf['model']['markers'],!0x0,_0x352c80++));break;}case'unwrap':{const _0x133920=_0x399199['path']['slice']();_0x133920['push'](0x0);const _0x17c4a4=_0x399199['path']['slice'](),_0x447a5f=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x133920),_0xb05dd6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x17c4a4),_0x4cdc75=new _0x293106(_0x2627bf['graveyard'],[0x0]);_0x27b2e1['push'](new _0xe709e7(_0x447a5f,_0x399199['howMany'],_0xb05dd6,_0x352c80++)),_0x27b2e1['push'](new _0xe709e7(_0xb05dd6['getShiftedBy'](_0x399199['howMany']),0x1,_0x4cdc75,_0x352c80++));break;}case'wrap':{const _0x28c021=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x399199['range']['start']),_0x30d40e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x399199['range']['end']),_0x50037a=_0x399199['token']['element']['_clone'](!0x1),_0x362653=_0x399199['range']['end']['slice']();_0x362653['push'](0x0);const _0x3a63c1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x362653);_0x27b2e1['push'](new _0x30b6b1(_0x30d40e,_0x50037a,_0x352c80++)),_0x27b2e1['push'](new _0xe709e7(_0x28c021,_0x30d40e['offset']-_0x28c021['offset'],_0x3a63c1,_0x352c80++));break;}}return _0x27b2e1;}['_tokenizeModel'](_0x17e15c){const _0x440a36=[],_0x44a517=_0x12763e['_createIn'](_0x17e15c),_0x20ab80=new _0x1ce609({'boundaries':_0x44a517});let _0x2463cc='',_0x2be3b2=null;const _0x1fa795=[''],_0x1cdfe5=new Map();for(const _0x3153bd of _0x20ab80)if('elementStart'==_0x3153bd['type']||'elementEnd'==_0x3153bd['type']){let _0x314810=_0x1fa795[0x0];''!==_0x2463cc&&(_0x440a36['push'](...this['_makeTokensFromTextByWords'](_0x2463cc,_0x2be3b2,_0x314810)),_0x2463cc='');const _0x194ef5=_0x3153bd['item'];let _0xe2ee87;_0x194ef5['getAttribute'](St)?_0xe2ee87=_0x194ef5['getAttribute'](St):'elementStart'==_0x3153bd['type']?(_0xe2ee87=_(_0x194ef5),_0x1cdfe5['set'](_0x194ef5,_0xe2ee87)):_0xe2ee87=_0x1cdfe5['get'](_0x194ef5);const _0x20b500=this['_getElementCategory'](_0x194ef5);'solid'==_0x20b500&&('elementStart'==_0x3153bd['type']?(_0x314810=_0xe2ee87,_0x1fa795['unshift'](_0x314810)):_0x1fa795['shift']());const _0x5ad9ec={'type':'element','element':_0x194ef5,'elementId':_0xe2ee87,'category':_0x20b500,'isStart':'elementStart'==_0x3153bd['type'],'limitId':_0x314810};_0x440a36['push'](_0x5ad9ec);}else''==_0x2463cc&&(_0x2be3b2=_0x3153bd['previousPosition']['clone']()),_0x2463cc+=_0x3153bd['item']['data'];return''!==_0x2463cc&&_0x440a36['push'](...this['_makeTokensFromTextByWords'](_0x2463cc,_0x2be3b2,_0x1fa795[0x0])),_0x440a36;}['_makeTokensFromTextByWords'](_0x14bf7f,_0x484daa,_0x41c741){const _0x4ef8d3=_0x14bf7f['matchAll'](/(\s)/g),_0x17c5eb=Array['from'](_0x4ef8d3)['map'](_0x21c632=>_0x21c632['index']);_0x17c5eb['push'](_0x14bf7f['length']),0x0==_0x17c5eb[0x0]&&_0x17c5eb['shift']();const _0x15fbd8=[],_0x835df3=_0x484daa['parent'];let _0x3ed966=0x0,_0x3606d0=_0x484daa['offset'];for(let _0x2d9bbb=0x0;_0x2d9bbb<_0x17c5eb['length'];_0x2d9bbb++)_0x15fbd8['push']({'type':'text','data':_0x14bf7f['slice'](_0x3ed966,_0x17c5eb[_0x2d9bbb]),'parent':_0x835df3,'offset':_0x3606d0,'limitId':_0x41c741}),_0x3ed966=_0x17c5eb[_0x2d9bbb],_0x3606d0=_0x484daa['offset']+_0x17c5eb[_0x2d9bbb];return _0x15fbd8;}['_getElementCategory'](_0xe6ac7a){const _0x3ee0e0=this['_editor']['model']['schema'];return _0x3ee0e0['isLimit'](_0xe6ac7a)||_0x3ee0e0['isContent'](_0xe6ac7a)||_0x3ee0e0['isInline'](_0xe6ac7a)?'solid':_0x3ee0e0['isBlock'](_0xe6ac7a)?'block':'container';}['_diffModelTokens'](_0x19322a,_0x233cf3){const _0x39e1dd=_0x72fdf6(_0x19322a,_0x233cf3,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x39e1dd);const _0x388f31=_0x39e1dd['flatMap'](_0x41c6d7=>{const _0x7ed6b5=_0x41c6d7['added']?'added':_0x41c6d7['removed']?'removed':'unchanged';return _0x41c6d7['value']['map'](_0x56049c=>({'token':_0x56049c,'change':_0x7ed6b5}));});let _0x4d87b8=0x0;for(const _0x219570 of _0x388f31)'added'!=_0x219570['change']&&('unchanged'==_0x219570['change']&&(_0x219570['before']=_0x19322a[_0x4d87b8]),_0x4d87b8++);return _0x388f31;}['_handleUnclosedBlockOpeningTags'](_0x397330){for(let _0x3a231b=0x0;_0x3a231b<_0x397330['length']-0x1;_0x3a231b++)if(_0x397330[_0x3a231b]['removed']&&_0x397330[_0x3a231b+0x1]['added']){const _0x14d7b3=this['_findUnclosedBlockOpeningToken'](_0x397330[_0x3a231b]['value']);if(null!==_0x14d7b3){const _0x3fda8a=this['_findUnclosedBlockOpeningToken'](_0x397330[_0x3a231b+0x1]['value']),_0x352a5d=_0x397330[_0x3a231b]['value']['splice'](_0x14d7b3),_0x1f1c16=_0x397330[_0x3a231b+0x1]['value']['splice'](_0x3fda8a),_0x2428d6=[_0x1f1c16['shift']()];_0x352a5d['shift']();const _0x59cf43={'value':_0x352a5d,'removed':!0x0},_0xefad3a={'value':_0x1f1c16,'added':!0x0},_0x47476f={'value':_0x2428d6};_0x397330['splice'](_0x3a231b+0x2,0x0,_0x47476f,_0x59cf43,_0xefad3a);}}}['_findUnclosedBlockOpeningToken'](_0x42ab0e){let _0x3b5325=0x0,_0x1627ca=-0x1;for(let _0xc089f4=0x0;_0xc089f4<_0x42ab0e['length'];_0xc089f4++){const _0x179e76=_0x42ab0e[_0xc089f4];'element'==_0x179e76['type']&&'block'==_0x179e76['category']&&(_0x3b5325+=_0x179e76['isStart']?0x1:-0x1,_0x179e76['isStart']&&(_0x1627ca=_0xc089f4));}return 0x0===_0x3b5325?null:_0x1627ca;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x2b668e=0x0;_0x2b668e<this['_diffItems']['length'];_0x2b668e++){const _0xd960ea=this['_diffItems'][_0x2b668e]['change'],_0x1e998b=[];_0x1e998b['push'](this['_diffItems'][_0x2b668e]);let _0x11264e=_0x2b668e+0x1;for(;this['_diffItems'][_0x11264e]&&this['_diffItems'][_0x11264e]['change']==_0xd960ea;)_0x1e998b['push'](this['_diffItems'][_0x11264e]),_0x11264e++,_0x2b668e++;const _0x1ec8b6=_0x1e998b['map'](_0x3c3fba=>_0x3c3fba['token']);if('unchanged'==_0xd960ea)_0x1e998b['map'](_0x5da95e=>_0x5da95e['before'])['forEach'](_0x3b0b1a=>this['_traverseOverItem'](_0x3b0b1a));else{if('removed'==_0xd960ea){if(this['_markDeletions']){const _0x23ba10=this['_path']['slice']();_0x1ec8b6['forEach'](_0x4aedbc=>this['_traverseOverItem'](_0x4aedbc));const _0x34494d=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x23ba10,'end':_0x34494d}});}else this['_handleChanged'](_0x1ec8b6,!0x0,this['_path']['slice']());}else{const _0x317b67=_0x1ec8b6['filter'](_0x330de9=>'element'!=_0x330de9['type']||'container'!=_0x330de9['category']);this['_handleChanged'](_0x317b67,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xbbf5e1=0x0;_0xbbf5e1<this['_diffItems']['length'];_0xbbf5e1++){const _0x37f55e=this['_diffItems'][_0xbbf5e1]['change'],_0x396e24=[];_0x396e24['push'](this['_diffItems'][_0xbbf5e1]);let _0x568240=_0xbbf5e1+0x1;for(;this['_diffItems'][_0x568240]&&this['_diffItems'][_0x568240]['change']==_0x37f55e;)_0x396e24['push'](this['_diffItems'][_0x568240]),_0x568240++,_0xbbf5e1++;const _0x1dbca7=_0x396e24['map'](_0x2b5c64=>_0x2b5c64['token']);if('unchanged'==_0x37f55e){const _0x5f016e=_0x396e24['map'](_0x31a791=>_0x31a791['before']);this['_handleUnchanged'](_0x5f016e,_0x1dbca7);}else('removed'!=_0x37f55e||this['_markDeletions'])&&_0x1dbca7['forEach'](_0x4b9380=>{this['_traverseOverItem'](_0x4b9380);});}}['_calculateMarkersOperationsData'](_0x55e90f,_0xdb7900){const _0x456592={};for(const [_0x5d11ea]of _0x55e90f)_0x456592[_0x5d11ea]=null;for(const [_0x19c87d,_0x46de4d]of _0xdb7900)_0x456592[_0x19c87d]=_0x46de4d;const _0xf82e4d=Object['entries'](_0x456592)['map'](([_0x3758c6,_0x1652f5])=>({'type':'marker','name':_0x3758c6,'range':_0x1652f5?{'start':_0x1652f5['start']['path']['slice'](),'end':_0x1652f5['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0xf82e4d);}['_handleUnwraps'](){const _0x3a3498=new Map(),_0x268370=[],_0x2002f8=[0x0];let _0x18e6fe=this['_diffItems']['length']+0x1;for(let _0x5f1f7a=this['_diffItems']['length']-0x1;_0x5f1f7a>=0x0;_0x5f1f7a--){const {token:_0x4a0751,before:_0x155df,change:_0x4591f3}=this['_diffItems'][_0x5f1f7a];if('removed'!=_0x4591f3&&(_0x18e6fe=_0x5f1f7a),'element'!=_0x4a0751['type']||'container'!=_0x4a0751['category']||'added'==_0x4591f3)continue;const _0x5885e9=_0x155df?_0x155df['element']:_0x4a0751['element'];if(_0x4a0751['isStart']){const _0x31f38c=_0x3a3498['get'](_0x5885e9),_0x44c18c=this['_diffItems'][_0x31f38c];('removed'==_0x4591f3||'removed'==_0x44c18c['change'])&&_0x18e6fe<_0x31f38c&&(this['_operationsData']['push']({'type':'unwrap','path':_0x5885e9['getPath'](),'howMany':_0x5885e9['maxOffset']+_0x2002f8[0x0]}),_0x2002f8['shift'](),_0x2002f8[0x0]+=_0x5885e9['maxOffset']-0x1,_0x268370['push'](_0x5f1f7a),_0x268370['push'](_0x31f38c));}else _0x3a3498['set'](_0x5885e9,_0x5f1f7a),_0x2002f8['unshift'](0x0);}_0x268370['sort']((_0x572691,_0x48dc6b)=>_0x48dc6b-_0x572691),_0x268370['forEach'](_0x329c35=>{const _0x3110bf=this['_diffItems'][_0x329c35];'removed'==_0x3110bf['change']?this['_diffItems']['splice'](_0x329c35,0x1):(_0x3110bf['change']='added',delete _0x3110bf['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5c70cf=[];for(let _0x18d7cc=0x0;_0x18d7cc<this['_diffItems']['length'];_0x18d7cc++){const {change:_0x51be09,token:_0x14d38c}=this['_diffItems'][_0x18d7cc];if('added'==_0x51be09&&'element'==_0x14d38c['type']&&'container'==_0x14d38c['category']){if(_0x14d38c['isStart'])_0x5c70cf['push'](this['_path']['slice']());else{if(!_0x14d38c['isStart']){const _0x518052=_0x5c70cf['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x518052,'end':this['_path']['slice']()},'token':_0x14d38c}),this['_path'][this['_path']['length']-0x1]=_0x518052[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x51be09||this['_markDeletions'])&&this['_traverseOverItem'](_0x14d38c);}}['_handleUnchanged'](_0x4986cc,_0x3f33e0){for(let _0x45c493=0x0;_0x45c493<_0x4986cc['length'];_0x45c493++){const _0x27ee68=_0x4986cc[_0x45c493];if('element'==_0x27ee68['type']&&_0x27ee68['isStart']){const _0x41d8fd=_0x3f33e0[_0x45c493];'block'==_0x27ee68['category']&&this['_handleElementRename'](_0x27ee68['element'],_0x41d8fd['element'],this['_path']),this['_handleElementAttributeChanges'](_0x27ee68['element'],_0x41d8fd['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x41d8fd);}else{if('element'!=_0x27ee68['type']||_0x27ee68['isStart']){if('text'==_0x27ee68['type']){const _0x31027a=this['_path']['slice'](),_0x3bfe20=[],_0x536f51=[];for(;_0x4986cc[_0x45c493]&&'text'==_0x4986cc[_0x45c493]['type'];)_0x3bfe20['push'](_0x4986cc[_0x45c493]),_0x536f51['push'](_0x3f33e0[_0x45c493]),this['_path'][this['_path']['length']-0x1]+=_0x4986cc[_0x45c493]['data']['length'],_0x45c493++;_0x45c493--,this['_handleTextAttributeChanges'](_0x3bfe20,_0x536f51,_0x31027a);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x533443,_0xed829f,_0x87512d){const _0x146586=[],_0x321cc1=[],_0x448d1b=_0x87512d['slice']();for(let _0x18f38a=0x0;_0x18f38a<_0x533443['length'];_0x18f38a++){const _0x58d713=_0x533443[_0x18f38a],_0x26a7b9=_0x87512d['slice']();if('element'!=_0x58d713['type']||_0x58d713['isStart'])'element'==_0x58d713['type']&&_0x58d713['isStart']?(_0x87512d['push'](0x0),_0xed829f||this['_parents']['push'](_0x58d713),_0x321cc1['push']({'before':_0x26a7b9,'after':_0x87512d['slice'](),'index':_0x18f38a})):_0x87512d[_0x87512d['length']-0x1]+=_0x58d713['data']['length'];else{let _0x2801b7;_0x87512d['pop'](),_0x87512d[_0x87512d['length']-0x1]++,_0x2801b7=_0xed829f?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x321cc1['length']?_0x321cc1['pop']():_0x146586['push']({'before':_0x26a7b9,'after':_0x87512d['slice'](),'index':_0x18f38a,'related':_0x2801b7});}}if(_0x321cc1['length']!==_0x146586['length'])throw new _0x59de08('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x533443,'isRemove':_0xed829f});const _0x4691a6=[{'after':_0x448d1b['slice'](),'index':-0x1},..._0x146586,..._0x321cc1,{'before':_0x87512d['slice'](),'index':_0x533443['length']}];if(_0xed829f){for(let _0x2dcecc=_0x4691a6['length']-0x1;_0x2dcecc>=0x1;_0x2dcecc--){const _0x532ae0=_0x4691a6[_0x2dcecc-0x1]['after'],_0x32f14e=_0x4691a6[_0x2dcecc]['before'],_0x3ab002=_0x32f14e[_0x32f14e['length']-0x1]-_0x532ae0[_0x532ae0['length']-0x1];_0x3ab002&&(this['_operationsData']['push']({'type':'remove','path':_0x532ae0,'howMany':_0x3ab002}),_0x32f14e[_0x32f14e['length']-0x1]-=_0x3ab002);}for(const {before:_0x510ed}of _0x146586)this['_operationsData']['push']({'type':'merge','path':_0x510ed});}else for(let _0xc49bc=0x0;_0xc49bc<_0x4691a6['length']-0x1;_0xc49bc++){const _0x81276b=_0x4691a6[_0xc49bc]['after'],_0x40c0d5=_0x4691a6[_0xc49bc+0x1]['before'],_0x41f83c=_0x4691a6[_0xc49bc]['index']+0x1,_0xdef982=_0x4691a6[_0xc49bc+0x1]['index'];if(_0x41f83c!==_0xdef982&&this['_operationsData']['push']({'type':'insert','path':_0x81276b,'tokens':_0x533443['slice'](_0x41f83c,_0xdef982)}),_0xc49bc<_0x146586['length']){this['_operationsData']['push']({'type':'split','path':_0x40c0d5});const _0x4586f9=_0x533443[_0x321cc1[_0x321cc1['length']-0x1-_0xc49bc]['index']],_0x3d6f85=_0x146586[_0xc49bc]['after'],_0x59318b=_0x146586[_0xc49bc]['related']['element'];this['_handleElementRename'](_0x59318b,_0x4586f9['element'],_0x3d6f85),this['_handleElementAttributeChanges'](_0x59318b,_0x4586f9['element'],_0x3d6f85);}}}['_traverseOverItem'](_0x40f6e5){'element'==_0x40f6e5['type']&&_0x40f6e5['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x40f6e5)):'element'!=_0x40f6e5['type']||_0x40f6e5['isStart']?'text'==_0x40f6e5['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x40f6e5['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x2388cc,_0x40c7f9,_0x2609f5){_0x2388cc['name']!=_0x40c7f9['name']&&this['_operationsData']['push']({'type':'rename','path':_0x2609f5['slice'](),'oldName':_0x2388cc['name'],'newName':_0x40c7f9['name']});}['_handleElementAttributeChanges'](_0x2ae7f2,_0x36382a,_0x1d4d85){const _0x29d81d=this['_getAttributeChanges'](_0x2ae7f2['getAttributes'](),_0x36382a['getAttributes']());for(const _0x335a4a in _0x29d81d){const {oldValue:_0x12ec1e,newValue:_0x5e27d4}=_0x29d81d[_0x335a4a];this['_operationsData']['push']({'type':'attribute','path':_0x1d4d85['slice'](),'howMany':0x1,'key':_0x335a4a,'oldValue':_0x12ec1e,'newValue':_0x5e27d4});}}['_handleTextAttributeChanges'](_0x32fa7c,_0x2e1ac5,_0xfea6b0){const _0x25e45b=this['_operationsData'],_0x42c444=_0x32fa7c[0x0]['parent'],_0x1255e6=_0x32fa7c[0x0]['offset'],_0x12c274=_0x2e1ac5[0x0]['parent'],_0x5a5bb0=_0x2e1ac5[0x0]['offset'],_0x37b008=_0x32fa7c['reduce']((_0x5245fe,_0x4aefa6)=>_0x5245fe+_0x4aefa6['data']['length'],0x0),_0x528f47=this['_getAttrsForOffsets'](_0x42c444,_0x1255e6,_0x37b008),_0x1043d5=this['_getAttrsForOffsets'](_0x12c274,_0x5a5bb0,_0x37b008),_0xc4f2ef={};for(let _0x1e9ed0=0x0;_0x1e9ed0<_0x37b008;_0x1e9ed0++){const _0x2527f3=_0x528f47[_0x1255e6+_0x1e9ed0],_0x568d86=_0x1043d5[_0x5a5bb0+_0x1e9ed0],_0x294399=this['_getAttributeChanges'](_0x2527f3,_0x568d86);for(const _0xff82c9 in _0xc4f2ef)_0x294399[_0xff82c9]||_0x3b4cb5(_0xff82c9);for(const _0x5515db in _0x294399){const {oldValue:_0x34fc54,newValue:_0x26fedc}=_0x294399[_0x5515db],_0xdec25e=_0xc4f2ef[_0x5515db];_0xdec25e?_0xdec25e['oldValue']==_0x34fc54&&_0xdec25e['newValue']==_0x26fedc?_0xdec25e['length']++:(_0x3b4cb5(_0x5515db),_0xc4f2ef[_0x5515db]={'oldValue':_0x34fc54,'newValue':_0x26fedc,'start':_0x1e9ed0,'length':0x1}):_0xc4f2ef[_0x5515db]={'oldValue':_0x34fc54,'newValue':_0x26fedc,'start':_0x1e9ed0,'length':0x1};}}for(const _0x36921e in _0xc4f2ef)_0x3b4cb5(_0x36921e);function _0x3b4cb5(_0x4dddd3){const _0x2c7c61=_0xc4f2ef[_0x4dddd3],_0x40d8e2=_0xfea6b0['slice']();_0x40d8e2[_0x40d8e2['length']-0x1]+=_0x2c7c61['start'],_0x25e45b['push']({'type':'attribute','path':_0x40d8e2,'howMany':_0x2c7c61['length'],'key':_0x4dddd3,'oldValue':_0x2c7c61['oldValue'],'newValue':_0x2c7c61['newValue']}),delete _0xc4f2ef[_0x4dddd3];}}['_getAttributeChanges'](_0x543a04,_0x132097){const _0x1b9d4a={};for(const [_0xcfb851,_0x446071]of _0x543a04)_0x1b9d4a[_0xcfb851]={'oldValue':JSON['stringify'](_0x446071),'newValue':'null'};for(const [_0x4861db,_0x3a372c]of _0x132097){const _0x583aa4=JSON['stringify'](_0x3a372c);_0x1b9d4a[_0x4861db]?_0x1b9d4a[_0x4861db]['oldValue']==_0x583aa4?delete _0x1b9d4a[_0x4861db]:_0x1b9d4a[_0x4861db]['newValue']=_0x583aa4:_0x1b9d4a[_0x4861db]={'oldValue':'null','newValue':_0x583aa4};}return delete _0x1b9d4a[St],_0x1b9d4a;}['_getAttrsForOffsets'](_0x18f392,_0x41a807,_0x49a572){const _0x5f1215=new Array(_0x41a807+_0x49a572);let _0x32612e=_0x18f392['getChildAtOffset'](_0x41a807),_0x2a4208=_0x32612e['startOffset'];for(;_0x32612e&&_0x2a4208<_0x41a807+_0x49a572;){const _0x450d0f=Array['from'](_0x32612e['getAttributes']());_0x5f1215['fill'](_0x450d0f,_0x2a4208,_0x2a4208+_0x32612e['offsetSize']),_0x2a4208+=_0x32612e['offsetSize'],_0x32612e=_0x32612e['nextSibling'];}return _0x5f1215;}['_getPositionFromAnchorAndPath'](_0x4181a1,_0x1311b5){const _0x604f83=[..._0x4181a1['path']['slice'](0x0,-0x1),_0x4181a1['offset']+_0x1311b5[0x0],..._0x1311b5['slice'](0x1)];return new _0x293106(_0x4181a1['root'],_0x604f83);}['_makeModelFromTokens'](_0x353c06){const _0xe0eb17=[];let _0x462965=null;for(const _0x18fc5a of _0x353c06)if('element'!=_0x18fc5a['type']||_0x18fc5a['isStart']||_0x462965!=_0x18fc5a['element']){if(!_0x462965){if('text'==_0x18fc5a['type']){const _0x18e697=_0x293106['_createAt'](_0x18fc5a['parent'],_0x18fc5a['offset']),_0x441b0b=_0x12763e['_createFromPositionAndShift'](_0x18e697,_0x18fc5a['data']['length']),_0x2e2b8a=Array['from'](_0x441b0b['getItems']())['map'](_0x15ab17=>new _0x11d5d8(_0x15ab17['data'],_0x15ab17['getAttributes']()));_0xe0eb17['push'](..._0x2e2b8a);}else{_0x462965=_0x18fc5a['element'];const _0x47908a=_0x18fc5a['element']['_clone'](!0x0);_0x47908a['_removeAttribute'](St);for(const _0x224b48 of this['_editor']['model']['createRangeIn'](_0x47908a)['getItems']())_0x224b48['is']('element')&&_0x224b48['_removeAttribute'](St);_0xe0eb17['push'](_0x47908a);}}}else _0x462965=null;return _0xe0eb17;}}function g(_0x5057d6,_0x433716){return _0x5057d6['type']===_0x433716['type']&&(_0x5057d6['limitId']===_0x433716['limitId']&&('text'==_0x5057d6['type']?_0x5057d6['data']==_0x433716['data']:function(_0x540c43,_0x4c236f){if(_0x540c43['isStart']!=_0x4c236f['isStart'])return!0x1;if(_0x540c43['isStart']&&_0x540c43['elementId']!=_0x4c236f['elementId'])return!0x1;if(_0x540c43['category']!=_0x4c236f['category'])return!0x1;if('block'==_0x540c43['category'])return!0x0;if('container'==_0x540c43['category']&&_0x540c43['elementId']!=_0x4c236f['elementId'])return!0x1;return _0x540c43['element']['name']==_0x4c236f['element']['name'];}(_0x5057d6,_0x433716)));}function _(_0x5b1d94){return k({'name':_0x5b1d94['name'],...Object['fromEntries'](_0x5b1d94['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.6.0
|
|
3
|
+
"version": "47.6.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.6.0
|
|
36
|
-
"@ckeditor/ckeditor5-comments": "47.6.0
|
|
37
|
-
"@ckeditor/ckeditor5-core": "47.6.0
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "47.6.0
|
|
39
|
-
"@ckeditor/ckeditor5-link": "47.6.0
|
|
40
|
-
"@ckeditor/ckeditor5-list": "47.6.0
|
|
41
|
-
"@ckeditor/ckeditor5-theme-lark": "47.6.0
|
|
42
|
-
"@ckeditor/ckeditor5-track-changes": "47.6.0
|
|
43
|
-
"@ckeditor/ckeditor5-ui": "47.6.0
|
|
44
|
-
"@ckeditor/ckeditor5-utils": "47.6.0
|
|
45
|
-
"@ckeditor/ckeditor5-widget": "47.6.0
|
|
46
|
-
"ckeditor5": "47.6.0
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "47.6.0",
|
|
36
|
+
"@ckeditor/ckeditor5-comments": "47.6.0",
|
|
37
|
+
"@ckeditor/ckeditor5-core": "47.6.0",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "47.6.0",
|
|
39
|
+
"@ckeditor/ckeditor5-link": "47.6.0",
|
|
40
|
+
"@ckeditor/ckeditor5-list": "47.6.0",
|
|
41
|
+
"@ckeditor/ckeditor5-theme-lark": "47.6.0",
|
|
42
|
+
"@ckeditor/ckeditor5-track-changes": "47.6.0",
|
|
43
|
+
"@ckeditor/ckeditor5-ui": "47.6.0",
|
|
44
|
+
"@ckeditor/ckeditor5-utils": "47.6.0",
|
|
45
|
+
"@ckeditor/ckeditor5-widget": "47.6.0",
|
|
46
|
+
"ckeditor5": "47.6.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
|
-
const
|
|
23
|
+
const _0xfca88a=_0x28d5;(function(_0x45ff1a,_0x2afeaf){const _0x9c4691=_0x28d5,_0x56fa1e=_0x45ff1a();while(!![]){try{const _0x5dc9de=-parseInt(_0x9c4691(0x1ca))/0x1+parseInt(_0x9c4691(0x1b1))/0x2+parseInt(_0x9c4691(0x1c5))/0x3*(-parseInt(_0x9c4691(0x1b6))/0x4)+-parseInt(_0x9c4691(0x1b7))/0x5+parseInt(_0x9c4691(0x1bf))/0x6+parseInt(_0x9c4691(0x1c0))/0x7+-parseInt(_0x9c4691(0x1cf))/0x8;if(_0x5dc9de===_0x2afeaf)break;else _0x56fa1e['push'](_0x56fa1e['shift']());}catch(_0x52ba61){_0x56fa1e['push'](_0x56fa1e['shift']());}}}(_0x4817,0x312c8));function _0x4817(){const _0x3f7020=['element','item','1772622otzxbz','1795360lMhsgX','afterInit','tableCell','data','mapper','60222EoLUUk','setAttribute','highest','Table','editor','109869RuhjfS','data-author-id','downcastDispatcher','options','markerName','167240obXsHY','603344HrMfSx','data-suggestion-id','toViewElement','writer','plugins','44qUimUz','1502925QHiqXv','classes','showSuggestionHighlights','addClass','addMarker:suggestion','has'];_0x4817=function(){return _0x3f7020;};return _0x4817();}import{Plugin as _0x503f17}from'ckeditor5/src/core.js';import{toArray as _0x5bcb22}from'ckeditor5/src/utils.js';function _0x28d5(_0x16e760,_0x3945b8){const _0x481786=_0x4817();return _0x28d5=function(_0x28d503,_0x306a15){_0x28d503=_0x28d503-0x1b1;let _0x47ed00=_0x481786[_0x28d503];return _0x47ed00;},_0x28d5(_0x16e760,_0x3945b8);}import{setHighlightHandling as _0x470b0d}from'ckeditor5/src/widget.js';import{splitSuggestionMarkerName as _0x44e163}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionTable extends _0x503f17{[_0xfca88a(0x1c1)](){const _0x3a995e=_0xfca88a,_0xfbd8b8=this[_0x3a995e(0x1c9)];if(!_0xfbd8b8[_0x3a995e(0x1b5)][_0x3a995e(0x1bc)](_0x3a995e(0x1c8)))return;_0xfbd8b8[_0x3a995e(0x1c3)][_0x3a995e(0x1cc)]['on'](_0x3a995e(0x1bb),(_0x52015f,_0x429087,_0x2dcd00)=>{((_0x5f10e9,_0x5e2a9b,_0x33b515)=>{const _0x4efa58=_0x28d5;if(!_0x33b515[_0x4efa58(0x1cd)][_0x4efa58(0x1b9)])return;const _0x2b2cac=_0x5e2a9b[_0x4efa58(0x1be)];if(!_0x2b2cac||!_0x2b2cac['is'](_0x4efa58(0x1bd),_0x4efa58(0x1c2)))return;const _0x40bc91=_0x33b515[_0x4efa58(0x1c4)][_0x4efa58(0x1b3)](_0x2b2cac);if(_0x40bc91){const {id:_0x14cc97,authorId:_0x43432d}=_0x44e163(_0x5e2a9b[_0x4efa58(0x1ce)]);_0x470b0d(_0x40bc91,_0x33b515[_0x4efa58(0x1b4)],(_0x1fa843,_0x659c39,_0x4cbb2c)=>{const _0x178fd6=_0x4efa58;_0x4cbb2c[_0x178fd6(0x1ba)](_0x5bcb22(_0x659c39[_0x178fd6(0x1b8)]),_0x1fa843),_0x4cbb2c[_0x178fd6(0x1c6)](_0x178fd6(0x1b2),_0x14cc97,_0x1fa843),_0x4cbb2c[_0x178fd6(0x1c6)](_0x178fd6(0x1cb),_0x43432d,_0x1fa843);});}})(0x0,_0x429087,_0x2dcd00);},{'priority':_0x3a995e(0x1c7)});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10ea89=_0x3632;function _0x1e21(){const _0x39e2d4=['12152WfvSio','678RoEZQr','initials','5381055THAwkJ','content','ck-user__img','ck-user__avatar','52619dDAXpY','1407066LhffYL','2PeTlfj','ck\x20ck-user__name','isMe','ck-user__notification','ck-user_me','div','5767392FHesuR','99rllpgK','name','21352XaXcUJ','ck-user','295229slyexL','setTemplate','ck-user__icon','318ZIUUxI','310gsPWld','notificationView','extendTemplate','push','isAnonymous','avatar','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__anonymous','url(\x27'];_0x1e21=function(){return _0x39e2d4;};return _0x1e21();}(function(_0x1c381d,_0x4c280b){const _0x1014cc=_0x3632,_0x442ff1=_0x1c381d();while(!![]){try{const _0x628e33=parseInt(_0x1014cc(0xa1))/0x1*(-parseInt(_0x1014cc(0xa2))/0x2)+parseInt(_0x1014cc(0x9a))/0x3*(-parseInt(_0x1014cc(0x99))/0x4)+parseInt(_0x1014cc(0x9c))/0x5+parseInt(_0x1014cc(0xb0))/0x6*(parseInt(_0x1014cc(0xa0))/0x7)+parseInt(_0x1014cc(0xab))/0x8*(parseInt(_0x1014cc(0xa9))/0x9)+-parseInt(_0x1014cc(0x90))/0xa*(-parseInt(_0x1014cc(0xad))/0xb)+parseInt(_0x1014cc(0xa8))/0xc;if(_0x628e33===_0x4c280b)break;else _0x442ff1['push'](_0x442ff1['shift']());}catch(_0x47425d){_0x442ff1['push'](_0x442ff1['shift']());}}}(_0x1e21,0xb07fe));function _0x3632(_0x1b32e9,_0x3b8f94){const _0x1e21a2=_0x1e21();return _0x3632=function(_0x3632c9,_0xe52834){_0x3632c9=_0x3632c9-0x90;let _0x16ce2b=_0x1e21a2[_0x3632c9];return _0x16ce2b;},_0x3632(_0x1b32e9,_0x3b8f94);}import{View as _0x5bb5e8,IconView as _0x551a1b}from'ckeditor5/src/ui.js';import{IconNotification as _0x16897f}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export class UserView extends _0x5bb5e8{[_0x10ea89(0xaa)];[_0x10ea89(0x91)];constructor(_0x500f1c,_0x4904b3,_0x2e8a85){const _0x2317fe=_0x10ea89;super(_0x500f1c),this[_0x2317fe(0xaa)]=_0x4904b3[_0x2317fe(0xaa)],this[_0x2317fe(0x91)]=null;const _0x73b821=['ck',_0x2317fe(0xac)],_0x227c07=['ck',_0x2317fe(0x9e)];if(_0x4904b3[_0x2317fe(0x94)]&&_0x227c07[_0x2317fe(0x93)](_0x2317fe(0x97)),!_0x4904b3[_0x2317fe(0x94)]&&_0x4904b3[_0x2317fe(0xa4)]&&_0x73b821[_0x2317fe(0x93)](_0x2317fe(0xa6)),_0x4904b3[_0x2317fe(0x95)]&&_0x227c07[_0x2317fe(0x93)](_0x2317fe(0x9f)),_0x2e8a85){const _0x310326=new _0x551a1b();_0x310326[_0x2317fe(0x92)]({'attributes':{'class':[_0x2317fe(0xaf)]}}),_0x310326[_0x2317fe(0x9d)]=_0x16897f,this[_0x2317fe(0x91)]={'tag':_0x2317fe(0xa7),'attributes':{'class':['ck',_0x2317fe(0xa5)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2e8a85},'children':[_0x310326]};}const _0x257d60=[{'tag':_0x2317fe(0xa7),'attributes':{'class':_0x227c07,'style':{'background-image':_0x4904b3[_0x2317fe(0x95)]?_0x2317fe(0x98)+_0x4904b3[_0x2317fe(0x95)]+'\x27)':''}}},{'tag':_0x2317fe(0xa7),'attributes':{'class':_0x4904b3[_0x2317fe(0x95)]?_0x2317fe(0x96):_0x2317fe(0xa3),'aria-label':_0x4904b3[_0x2317fe(0xaa)]},'children':[{'text':_0x4904b3[_0x2317fe(0x9b)]}]}];this[_0x2317fe(0x91)]&&_0x257d60[_0x2317fe(0x93)](this[_0x2317fe(0x91)]),this[_0x2317fe(0xae)]({'tag':_0x2317fe(0xa7),'attributes':{'class':_0x73b821,'data-user-id':_0x4904b3['id']},'children':_0x257d60});}}
|