@ckeditor/ckeditor5-collaboration-core 47.7.2-alpha.0 → 47.7.2
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 +1 -1
- package/package.json +13 -13
- package/src/suggestions/integrations/alignment.js +1 -1
- package/src/suggestions/integrations/basicstyles.js +1 -1
- package/src/suggestions/integrations/bookmark.js +1 -1
- package/src/suggestions/integrations/font.js +1 -1
- package/src/suggestions/integrations/footnotes.js +1 -1
- package/src/suggestions/integrations/highlight.js +1 -1
- package/src/suggestions/integrations/horizontalline.js +1 -1
- package/src/suggestions/integrations/htmlembed.js +1 -1
- package/src/suggestions/integrations/image.js +1 -1
- package/src/suggestions/integrations/indent.js +1 -1
- package/src/suggestions/integrations/lineheight.js +1 -1
- package/src/suggestions/integrations/link.js +1 -1
- package/src/suggestions/integrations/list.js +1 -1
- package/src/suggestions/integrations/listproperties.js +1 -1
- package/src/suggestions/integrations/mediaembed.js +1 -1
- package/src/suggestions/integrations/multilevellist.js +1 -1
- package/src/suggestions/integrations/shiftenter.js +1 -1
- package/src/suggestions/integrations/style.js +1 -1
- package/src/suggestions/integrations/table.js +1 -1
- package/src/suggestions/integrations/tablecellproperties.js +1 -1
- package/src/suggestions/integrations/tableheadings.js +1 -1
- package/src/suggestions/integrations/tablelayout.js +1 -1
- package/src/suggestions/integrations/tableproperties.js +1 -1
- package/src/suggestions/integrations/uploadcare.js +1 -1
- package/src/suggestions/suggestionsconversion.js +1 -1
- package/src/suggestions/view/ariadescriptionview.js +1 -1
- package/src/suggestions/view/latefocusbuttonview.js +1 -1
- package/src/users/view/userview.js +1 -1
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.js +1 -1
- package/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/sanitizeEditorConfig.js +1 -1
- package/src/utils/setupthreadkeyboardnavigation.js +1 -1
- package/src/utils/trim-html.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x2c0898,Editor as _0x45dc94,Plugin as _0x27ae8d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x169919,Collection as _0x1cf087,uid as _0x3a62cd,toArray as xt,first as _0xdb6b72,FocusTracker as _0x4db12f,KeystrokeHandler as _0x4f0358}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x33596c,IconView as _t,ButtonView as _0x259d2f,DropdownButtonView as _0x396537,FocusCycler as _0x176048,isViewWithFocusCycler as _0x3c7613}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as bt,IconCheck as _0x11baab,IconCancel as _0x24b636}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as Ct,toWidget as _0x9c6bc0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x3207f5}from'luxon';import{InsertOperation as _0x3220fd,MoveOperation as _0x2f6e49,ModelPosition as _0x1fa420,ModelRange as _0x3c8d6d,MarkerOperation as _0x3d1e60,MergeOperation as _0x581992,SplitOperation as _0x457aaa,RenameOperation as _0x375429,AttributeOperation as _0x13e21e,ModelTreeWalker as _0x5b7162,ModelText as _0x5ab2da}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x56908c}from'diff';class C extends _0x2c0898{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x46a173,_0x434b0f){let _0x16d1db;if(_0x434b0f||(_0x434b0f=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x434b0f?_0x16d1db=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x16d1db=this['context']['editors']['find'](_0x1bd3ef=>_0x1bd3ef['config']['get']('collaboration.channelId')==_0x434b0f)),!_0x16d1db)throw new _0x169919('permissions-set-permissions-invalid-channel-id',null);const _0x4fd261=_0x16d1db['plugins'],_0x599b33=_0x4fd261['has']('CommentsRepository')?_0x4fd261['get']('CommentsRepository'):void 0x0,_0x251ef2=_0x4fd261['has']('CommentsOnly')&&_0x4fd261['get']('CommentsOnly'),_0x483387=_0x46a173['includes']('document:write'),_0x5cbe2e=_0x46a173['includes']('comment:modify_all'),_0x1b1a89=_0x46a173['includes']('comment:admin'),_0x27a1d7=_0x46a173['includes']('comment:write'),_0x22d2a4=_0x27a1d7||_0x1b1a89,_0xf2789a=_0x22d2a4||_0x5cbe2e,_0x521ba3=_0x483387||_0x22d2a4;(_0x251ef2&&(_0x251ef2['isEnabled']=!_0x483387&&_0xf2789a),_0x16d1db instanceof _0x45dc94)&&(!(_0x483387||_0xf2789a&&_0x599b33)?_0x16d1db['enableReadOnlyMode']('no-permissions'):_0x16d1db['disableReadOnlyMode']('no-permissions'));if(_0x599b33){_0x599b33['setPermissions']({'admin':_0x1b1a89,'modifyAll':_0x5cbe2e,'write':_0x27a1d7,'resolve':_0x521ba3},_0x434b0f);const _0x506c72=_0x16d1db instanceof _0x45dc94&&_0x16d1db['commands']['get']('addCommentThread');_0x506c72&&(_0x22d2a4?_0x506c72['clearForceDisabled']('noPermissions'):_0x506c72['forceDisabled']('noPermissions'));}}}function U(_0x99da7d,_0x499d15){const t=_0x99da7d['t'];switch(_0x499d15){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 Users extends _0x2c0898{['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(_0x414638){super(_0x414638),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x1cf087(),this['_locale']=_0x414638['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:_0x33cce3,name:_0x46e42c,..._0x59c1ca}){if(!_0x33cce3||'string'!=typeof _0x33cce3)throw new _0x169919('users-add-invalid-id');if(this['users']['has'](_0x33cce3))throw new _0x169919('users-add-duplicated-id',null,{'id':_0x33cce3});const _0x485fd3=this['context']['config']['get']('users.getInitialsCallback'),_0x31df92={..._0x59c1ca,'id':_0x33cce3,'name':A(this['_locale'],_0x46e42c),'color':this['_getNextColor']()};_0x31df92['name']=A(this['_locale'],_0x31df92['name']);const _0x661c23=new User(_0x31df92,_0x485fd3);return this['users']['add'](_0x661c23),_0x661c23;}['getUser'](_0x3043ac){return this['users']['get'](_0x3043ac);}['useAnonymousUser'](){const _0x1baf73=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x1baf73);}['defineMe'](_0x440838){if(this['_myId'])throw new _0x169919('users-me-already-defined',null);const _0x11d53b=this['getUser'](_0x440838);if(!_0x11d53b)throw new _0x169919('users-me-missing-user',null);this['_myId']=_0x440838,_0x11d53b['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x5e8ed6=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x5e8ed6&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x551ef8=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x551ef8,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class User{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x5aa721,_0xe9bf99){this['id']=_0x5aa721['id'],this['color']=_0x5aa721['color'],this['name']=_0x5aa721['name'],this['initials']=_0xe9bf99?_0xe9bf99(this['name']):this['_computeInitials'](),this['avatar']=_0x5aa721['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x181e1f=this['name']['split']('\x20')['filter'](_0x3129bf=>/^[\p{Letter}]/u['test'](_0x3129bf));return 0x1===_0x181e1f['length']?this['_getInitial'](_0x181e1f[0x0]):0x0===_0x181e1f['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x181e1f[0x0])+this['_getInitial'](_0x181e1f[_0x181e1f['length']-0x1]);}['_getInitial'](_0x4e82ed){return String['fromCodePoint'](_0x4e82ed['codePointAt'](0x0))['toUpperCase']();}}function A(_0x2da635,_0x32e16f=''){return''==(_0x32e16f=_0x32e16f['trim']())?U(_0x2da635,'Anonymous'):_0x32e16f;}class CollaborationUserColor{['_id'];constructor(_0x18f8d4){this['_id']=_0x18f8d4;}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 UserView extends _0x33596c{['name'];['notificationView'];constructor(_0x1d1e4c,_0x3dc5b2,_0x4fb53d){super(_0x1d1e4c),this['name']=_0x3dc5b2['name'],this['notificationView']=null;const _0x57fe9a=['ck','ck-user'],_0xcd421c=['ck','ck-user__img'];if(_0x3dc5b2['isAnonymous']&&_0xcd421c['push']('ck-user__anonymous'),!_0x3dc5b2['isAnonymous']&&_0x3dc5b2['isMe']&&_0x57fe9a['push']('ck-user_me'),_0x3dc5b2['avatar']&&_0xcd421c['push']('ck-user__avatar'),_0x4fb53d){const _0x414169=new _t();_0x414169['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x414169['content']=bt,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4fb53d},'children':[_0x414169]};}const _0x3aa4d3=[{'tag':'div','attributes':{'class':_0xcd421c,'style':{'background-image':_0x3dc5b2['avatar']?'url(\x27'+_0x3dc5b2['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x3dc5b2['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x3dc5b2['name']},'children':[{'text':_0x3dc5b2['initials']}]}];this['notificationView']&&_0x3aa4d3['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x57fe9a,'data-user-id':_0x3dc5b2['id']},'children':_0x3aa4d3});}}class AriaDescriptionView extends _0x33596c{['id'];constructor(_0x192746,_0x53f123){super(_0x192746),this['id']='ck-aria-description-'+_0x3a62cd(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x53f123}]});}}class LateFocusButtonView extends _0x259d2f{['render'](){super['render'](),se(this);}}class LateFocusDropdownButtonView extends _0x396537{['render'](){super['render'](),se(this);}}function se(_0x2202ec){_0x2202ec['listenTo'](_0x2202ec['element'],'mousedown',(_0x4584b0,_0xfbd8b8)=>{_0xfbd8b8['stopPropagation'](),_0xfbd8b8['preventDefault']();}),_0x2202ec['listenTo'](_0x2202ec['element'],'mouseup',()=>{_0x2202ec['element']['focus']();});}function J(_0x19ab21){const _0x38da96=_0x19ab21['split'](':');return{'group':_0x38da96[0x0],'type':_0x38da96[0x1],'subType':_0x38da96['length']>=0x5?_0x38da96[0x2]:null,'id':_0x38da96['length']<0x5?_0x38da96[0x2]:_0x38da96[0x3],'authorId':_0x38da96['length']<0x5?_0x38da96[0x3]:_0x38da96[0x4],'markerCount':0x6==_0x38da96['length']?_0x38da96[0x5]:null};}function yt(_0x2d5d5c,_0x2d638e){const _0x3ef461=_0x2d5d5c['end']['nodeBefore'];if(_0x3ef461&&_0x3ef461['is']('element')&&_0x2d638e['schema']['isBlock'](_0x3ef461)&&!_0x2d638e['schema']['isObject'](_0x3ef461)){const _0x475194=_0x2d638e['createPositionAt'](_0x3ef461,'end');return _0x2d638e['createRange'](_0x2d5d5c['start'],_0x475194);}return _0x2d5d5c;}class L extends _0x27ae8d{['afterInit'](){const _0x46a05d=this['editor'];if(!_0x46a05d['plugins']['has']('AlignmentEditing'))return;_0x46a05d['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Q extends _0x27ae8d{['afterInit'](){const _0x174155=this['editor'],_0x53c4bd=_0x174155['plugins']['get']('SuggestionsConversion');for(const _0x1b74fe of ii){if(!_0x174155['plugins']['has'](_0x1b74fe))continue;const _0x2ea8dd=_0x1b74fe['slice'](0x0,-0x7)['toLowerCase']();_0x53c4bd['registerInlineAttribute'](_0x2ea8dd);}}}class X extends _0x27ae8d{['afterInit'](){const _0x3c406b=this['editor'],_0x3a16df=_0x3c406b['plugins']['get']('SuggestionsConversion');_0x3c406b['plugins']['has']('BookmarkEditing')&&_0x3a16df['registerBlockAttribute']('bookmarkId');}}const oo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x27ae8d{['afterInit'](){const _0x5e985c=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x35c75d,commandName:_0x4537e0}of oo)this['editor']['plugins']['has'](_0x35c75d)&&_0x5e985c['registerInlineAttribute'](_0x4537e0);}}class Z extends _0x27ae8d{['afterInit'](){const {editor:_0x4ba7c4}=this;if(!_0x4ba7c4['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x24a67a=_0x4ba7c4['plugins']['get']('SuggestionsConversion');_0x24a67a['registerBlockAttribute']('footnotesListStyle'),_0x24a67a['registerBlockAttribute']('footnotesListStart');}}class tt extends _0x27ae8d{['afterInit'](){const _0x3ad0bc=this['editor'];if(!_0x3ad0bc['plugins']['has']('HighlightEditing'))return;_0x3ad0bc['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class it extends _0x27ae8d{['afterInit'](){const _0x1020ce=this['editor'];if(!_0x1020ce['plugins']['has']('HtmlEmbed'))return;_0x1020ce['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class rt extends _0x27ae8d{['afterInit'](){const _0x4612c4=this['editor'];if(!_0x4612c4['plugins']['has']('ImageEditing'))return;const _0x8e87d0=_0x4612c4['plugins']['get']('SuggestionsConversion');_0x8e87d0['registerBlockAttribute']('src'),_0x4612c4['plugins']['has']('ImageResize')&&_0x8e87d0['registerBlockAttribute']('resizedWidth'),_0x4612c4['plugins']['has']('ImageTextAlternativeEditing')&&_0x8e87d0['registerBlockAttribute']('alt'),_0x4612c4['plugins']['has']('PictureEditing')&&_0x8e87d0['registerBlockAttribute']('sources'),_0x4612c4['plugins']['has']('ImageSizeAttributes')&&(_0x8e87d0['registerBlockAttribute']('width'),_0x8e87d0['registerBlockAttribute']('height'));}}class et extends _0x27ae8d{['afterInit'](){const _0x4283cf=this['editor'],_0x3ccf03=_0x4283cf['plugins']['get']('SuggestionsConversion');_0x4283cf['plugins']['has']('IndentBlock')&&(_0x3ccf03['registerBlockAttribute']('blockIndent'),_0x4283cf['plugins']['has']('ListEditing')&&(_0x3ccf03['registerBlockAttribute']('blockIndentList'),_0x3ccf03['registerBlockAttribute']('blockIndentListItem')));}}class st extends _0x27ae8d{['afterInit'](){const _0x593253=this['editor'];if(!_0x593253['plugins']['has']('LineHeight'))return;_0x593253['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class ot extends _0x27ae8d{['afterInit'](){const _0x347aca=this['editor'];if(!_0x347aca['plugins']['has']('LinkEditing'))return;const _0x12f12a=_0x347aca['plugins']['get']('SuggestionsConversion'),_0x4bec3d=_0x347aca['commands']['get']('link');_0x12f12a['registerInlineAttribute']('linkHref');for(const _0x4027bb of _0x4bec3d['manualDecorators'])_0x12f12a['registerInlineAttribute'](_0x4027bb['id']);}}class nt extends _0x27ae8d{['afterInit'](){const _0x46e301=this['editor'];if(!_0x46e301['plugins']['has']('ListEditing'))return;const _0xa67cb=_0x46e301['plugins']['get']('SuggestionsConversion'),_0x2075c7=_0x46e301['plugins']['has']('TodoListEditing');_0xa67cb['registerBlockAttribute']('listItemId'),_0xa67cb['registerBlockAttribute']('listType'),_0xa67cb['registerBlockAttribute']('listIndent'),_0x2075c7&&_0xa67cb['registerBlockAttribute']('todoListChecked');}}class at extends _0x27ae8d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x51c1f3=this['editor']['config']['get']('list.properties'),_0x3e4ec7=this['editor']['plugins']['get']('SuggestionsConversion');_0x51c1f3['styles']&&_0x3e4ec7['registerBlockAttribute']('listStyle'),_0x51c1f3['reversed']&&_0x3e4ec7['registerBlockAttribute']('listReversed'),_0x51c1f3['startIndex']&&_0x3e4ec7['registerBlockAttribute']('listStart');}}class gt extends _0x27ae8d{['afterInit'](){const _0x5e0ce5=this['editor'],_0x18b5a7=_0x5e0ce5['plugins']['get']('SuggestionsConversion');_0x5e0ce5['plugins']['has']('MultiLevelList')&&_0x18b5a7['registerBlockAttribute']('listMarkerStyle');}}class ut extends _0x27ae8d{['afterInit'](){const _0x6a54d4=this['editor'];if(!_0x6a54d4['plugins']['has']('Style')||!_0x6a54d4['plugins']['has']('DataSchema')||!_0x6a54d4['config']['get']('style.definitions'))return;const _0x48eca5=_0x6a54d4['plugins']['get']('SuggestionsConversion'),_0x2c50a6=_0x6a54d4['config']['get']('style.definitions'),_0x1ce160=_0x6a54d4['plugins']['get']('GeneralHtmlSupport'),_0x43546f=_0x6a54d4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x6a54d4['plugins']['get']('DataSchema'),_0x2c50a6),_0x56dc3b=new Set();for(const _0x494b48 of _0x43546f['block']){const _0x1db125=_0x1ce160['getGhsAttributeNameForElement'](_0x494b48['element']);_0x56dc3b['add'](_0x1db125);}const _0x560f0f=new Set();for(const _0x41d44b of _0x43546f['inline']){const _0xc64a98=_0x1ce160['getGhsAttributeNameForElement'](_0x41d44b['element']);_0x560f0f['add'](_0xc64a98);for(const _0x93de47 of _0x41d44b['ghsAttributes'])_0x560f0f['add'](_0x93de47);}for(const _0x427315 of _0x56dc3b)_0x48eca5['registerBlockAttribute'](_0x427315);for(const _0x3b0a6e of _0x560f0f)_0x48eca5['registerInlineAttribute'](_0x3b0a6e);}}class mt extends _0x27ae8d{['afterInit'](){const _0x2d2794=this['editor'];if(!_0x2d2794['plugins']['has']('TableEditing'))return;const _0x31b308=_0x2d2794['plugins']['get']('SuggestionsConversion');_0x31b308['registerBlockAttribute']('headingRows'),_0x31b308['registerBlockAttribute']('headingColumns');}}class ct extends _0x27ae8d{['afterInit'](){const {plugins:_0x359650}=this['editor'];if(!_0x359650['has']('TablePropertiesEditing'))return;const _0x758d76=_0x359650['get']('SuggestionsConversion'),_0x4c6995=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x156899 of _0x4c6995)_0x758d76['registerBlockAttribute'](_0x156899);}}class dt extends _0x27ae8d{['afterInit'](){const _0x596c21=this['editor'],_0x2c2ffc=_0x596c21['plugins']['get']('SuggestionsConversion');_0x596c21['plugins']['has']('TableLayout')&&_0x2c2ffc['registerBlockAttribute']('tableType');}}class ht extends _0x27ae8d{['afterInit'](){const _0x1fc995=this['editor'],_0x449bf7=this['editor']['plugins']['get']('SuggestionsConversion');_0x1fc995['plugins']['has']('Uploadcare')&&_0x1fc995['plugins']['has']('UploadcareImageEdit')&&_0x449bf7['registerBlockAttribute']('uploadcareImageId');}}class lt extends _0x27ae8d{['afterInit'](){const _0x5dfb57=this['editor'];if(!_0x5dfb57['plugins']['has']('ShiftEnter'))return;const _0x5b8b95=_0x5dfb57['plugins']['get']('SuggestionsConversion'),_0x540db5=(_0x17c583,_0x579e46,_0x331977,_0x3697c7)=>{if(_0x3697c7&&!_0x331977['options']['showSuggestionHighlights'])return;if(!_0x331977['consumable']['test'](_0x579e46['markerRange'],_0x17c583['name']))return;const _0x4bc050=_0x5dfb57['model'];for(const _0x1067d5 of _0x579e46['markerRange']['getItems']()){if(!_0x1067d5['is']('element','softBreak'))continue;const _0x5df646='deletion'==_0x579e46['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x33776d,authorId:_0x2b697b}=J(_0x579e46['markerName']),_0x138055=_0x331977['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5df646,'data-suggestion':_0x33776d,'data-author-id':_0x2b697b}),_0x194277=_0x331977['mapper']['toViewPosition'](_0x4bc050['createPositionBefore'](_0x1067d5));!_0x3697c7&&_0x5b8b95['_activeMarkers']['includes'](_0x579e46['markerName'])&&_0x331977['writer']['addClass']('ck-suggestion-marker--active',_0x138055),_0x331977['writer']['insert'](_0x194277,_0x138055),_0x331977['mapper']['bindElementToMarker'](_0x138055,_0x579e46['markerName']);}};_0x5dfb57['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18ef7c,_0x4ef52d,_0x2f0879)=>{_0x540db5(_0x18ef7c,_0x4ef52d,_0x2f0879,!0x1);},{'priority':'high'}),_0x5dfb57['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x324e84,_0x471094,_0x22a72b)=>{_0x540db5(_0x324e84,_0x471094,_0x22a72b,!0x0);},{'priority':'high'});}}class ft extends _0x27ae8d{['afterInit'](){const _0x1366d0=this['editor'];_0x1366d0['plugins']['has']('MediaEmbedEditing')&&(_0x1366d0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xd5db57,{writer:_0x15bb55,options:_0x4081fc})=>{if(_0x4081fc['showSuggestionHighlights'])return _0x15bb55['createEmptyElement']('div');},'converterPriority':'high'}),_0x1366d0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2591a9,_0x3f903b,_0x4d289a)=>{_0x4d289a['options']['showSuggestionHighlights']&&_0x2591a9['stop']();},{'priority':'high'}));}}class kt extends _0x27ae8d{['afterInit'](){const _0x2cc19b=this['editor'];if(!_0x2cc19b['plugins']['has']('Table'))return;_0x2cc19b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1ab86f,_0x3b656b,_0x1fa609)=>{((_0x22529a,_0x3e0689,_0x263dec)=>{if(!_0x263dec['options']['showSuggestionHighlights'])return;const _0x459903=_0x3e0689['item'];if(!_0x459903||!_0x459903['is']('element','tableCell'))return;const _0x525020=_0x263dec['mapper']['toViewElement'](_0x459903);if(_0x525020){const {id:_0x48171e,authorId:_0x28476e}=J(_0x3e0689['markerName']);Ct(_0x525020,_0x263dec['writer'],(_0x492964,_0x3fb238,_0x6006e7)=>{_0x6006e7['addClass'](xt(_0x3fb238['classes']),_0x492964),_0x6006e7['setAttribute']('data-suggestion-id',_0x48171e,_0x492964),_0x6006e7['setAttribute']('data-author-id',_0x28476e,_0x492964);});}})(0x0,_0x3b656b,_0x1fa609);},{'priority':'highest'});}}class pt extends _0x27ae8d{['afterInit'](){const _0x17e230=this['editor'];_0x17e230['plugins']['has']('HorizontalLineEditing')&&_0x17e230['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x318e96,{writer:_0x38b24d,options:_0x569f4e})=>{if(!_0x569f4e['showSuggestionHighlights'])return null;const _0x3ce643=_0x38b24d['createContainerElement']('div'),_0x184eaf=_0x38b24d['createEmptyElement']('hr');return _0x38b24d['addClass']('ck-horizontal-line',_0x3ce643),_0x38b24d['insert'](_0x38b24d['createPositionAt'](_0x3ce643,0x0),_0x184eaf),_0x3ce643;},'converterPriority':'high'});}}class jt extends _0x27ae8d{['afterInit'](){const {plugins:_0x2e56dc,model:_0x2ef94d}=this['editor'];if(!_0x2e56dc['has']('TableCellPropertiesEditing'))return;const _0x5852be=_0x2e56dc['get']('SuggestionsConversion'),_0x3a0f01=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x41642e of _0x3a0f01)_0x5852be['registerBlockAttribute'](_0x41642e);_0x2ef94d['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5852be['registerBlockAttribute']('tableCellType');}}class SuggestionsConversion extends _0x27ae8d{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[L,Q,X,Y,Z,tt,pt,it,rt,et,st,ot,nt,at,ft,gt,lt,ut,kt,mt,dt,jt,ct,ht];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3ff4a1=this['editor'],_0x368911=(_0x5714a6,_0x1edee1,_0x556204)=>{const {id:_0x34fbbd,authorId:_0x4207de,type:_0x84e3fd,subType:_0xfb8e02}=J(_0x5714a6['markerName']),_0xad1320=['ck-suggestion-marker',this['_getClassName'](_0x84e3fd,_0xfb8e02)];let _0x21a38b=0xbb8;return!_0x556204&&(this['_activeMarkers']['includes'](_0x5714a6['markerName'])&&(_0xad1320['push']('ck-suggestion-marker--active'),_0x21a38b=0xbc2)),('deletion'==_0x84e3fd&&(_0x21a38b+=0x5),{'classes':_0xad1320,'attributes':{'data-suggestion':_0x34fbbd,'data-author-id':_0x4207de},'priority':_0x21a38b});};_0x3ff4a1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x89515,_0x1e20d9)=>_0x368911(_0x89515,0x0,!0x1)}),_0x3ff4a1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x23a8e6,_0x7a014d)=>_0x368911(_0x23a8e6,0x0,!0x0)}),_0x3ff4a1['conversion']['for']('dataDowncast')['add'](_0x25a482=>{_0x25a482['on']('addMarker:suggestion',(_0x305b21,_0x2e1e7a,_0x18bbff)=>{if(!_0x18bbff['options']['showSuggestionHighlights'])return;const _0x17afb6=_0x2e1e7a['item'];if(!_0x17afb6)return;const _0x3c2078=_0x18bbff['mapper']['toViewElement'](_0x17afb6);_0x3ff4a1['model']['schema']['isObject'](_0x17afb6)&&_0x3c2078&&!_0x3c2078['getCustomProperty']('widget')&&_0x3c2078['is']('containerElement')&&_0x9c6bc0(_0x3c2078,_0x18bbff['writer']);},{'priority':'high'});});const _0x345e0a=(_0x55e1c3,_0x2ca865,_0x5b4ad5,_0x59a62a,_0x4b432a)=>{if(_0x59a62a&&!_0x5b4ad5['options']['showSuggestionHighlights'])return;if(!_0x2ca865['item'])return;const {id:_0x38bac8,authorId:_0x14612d,subType:_0x4f80aa}=J(_0x2ca865['markerName']);if(_0x4b432a){const _0x28798c=_0x4f80aa['split']('|')[0x0];if(!this['isBlockAttribute'](_0x28798c))return;}if(_0x2ca865['item']['is']('selection'))return void _0x5b4ad5['consumable']['consume'](_0x2ca865['item'],_0x55e1c3['name']);const _0xdf1abd=_0x5b4ad5['mapper']['toViewElement'](_0x2ca865['item']);if(_0x2ca865['item']['is']('element')&&_0x3ff4a1['model']['schema']['isBlock'](_0x2ca865['item'])&&!_0xdf1abd['getCustomProperty']('addHighlight')){_0x5b4ad5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xdf1abd),_0x5b4ad5['writer']['setAttribute']('data-suggestion',_0x38bac8,_0xdf1abd),_0x5b4ad5['writer']['setAttribute']('data-author-id',_0x14612d,_0xdf1abd),_0x5b4ad5['mapper']['bindElementToMarker'](_0xdf1abd,_0x2ca865['markerName']),_0x59a62a||(this['_activeMarkers']['includes'](_0x2ca865['markerName'])?_0x5b4ad5['writer']['addClass']('ck-suggestion-marker--active',_0xdf1abd):_0x5b4ad5['writer']['removeClass']('ck-suggestion-marker--active',_0xdf1abd));for(const _0xa3547a of _0x3ff4a1['model']['createRangeIn'](_0x2ca865['item'])['getItems']())_0x5b4ad5['consumable']['consume'](_0xa3547a,_0x55e1c3['name']);_0x5b4ad5['consumable']['consume'](_0x2ca865['item'],_0x55e1c3['name']);}},_0x31a204=(_0x281da1,_0x4245f3,_0x117172,_0x3da9ab)=>{const _0x379fc6=_0x117172['mapper']['markerNameToElements'](_0x4245f3['markerName']);if(_0x379fc6){if(_0x3da9ab){const {subType:_0x15d33c}=J(_0x4245f3['markerName']),_0x402c2e=_0x15d33c['split']('|')[0x0];if(!this['isBlockAttribute'](_0x402c2e))return;}for(const _0x241305 of _0x379fc6)_0x241305['getCustomProperty']('addHighlight')||(_0x117172['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x241305),_0x117172['writer']['removeAttribute']('data-suggestion',_0x241305),_0x117172['writer']['removeAttribute']('data-author-id',_0x241305),_0x117172['mapper']['unbindElementFromMarkerName'](_0x241305,_0x4245f3['markerName']));}};_0x3ff4a1['conversion']['for']('editingDowncast')['add'](_0x50e88d=>{_0x50e88d['on']('addMarker:suggestion:formatBlock',(_0x59790c,_0x4bcd52,_0xe401bb)=>{_0x345e0a(_0x59790c,_0x4bcd52,_0xe401bb,!0x1,!0x1);},{'priority':'high'});}),_0x3ff4a1['conversion']['for']('editingDowncast')['add'](_0x4df07a=>{_0x4df07a['on']('addMarker:suggestion:attribute',(_0x8d7aa6,_0x13b931,_0x48bef5)=>{_0x345e0a(_0x8d7aa6,_0x13b931,_0x48bef5,!0x1,!0x0);},{'priority':'high'});}),_0x3ff4a1['conversion']['for']('editingDowncast')['add'](_0x4eec36=>{_0x4eec36['on']('removeMarker:suggestion:formatBlock',(_0x3184b6,_0x46d472,_0xd4a477)=>{_0x31a204(0x0,_0x46d472,_0xd4a477,!0x1);},{'priority':'high'});}),_0x3ff4a1['conversion']['for']('editingDowncast')['add'](_0x411768=>{_0x411768['on']('removeMarker:suggestion:attribute',(_0x23349c,_0x2c0af0,_0x488c5a)=>{_0x31a204(0x0,_0x2c0af0,_0x488c5a,!0x0);},{'priority':'high'});}),_0x3ff4a1['conversion']['for']('dataDowncast')['add'](_0x319e5c=>{_0x319e5c['on']('addMarker:suggestion:formatBlock',(_0x448a92,_0x56d6ff,_0x334109)=>{_0x345e0a(_0x448a92,_0x56d6ff,_0x334109,!0x0,!0x1);},{'priority':'highest'});}),_0x3ff4a1['conversion']['for']('dataDowncast')['add'](_0x4ae47f=>{_0x4ae47f['on']('addMarker:suggestion:attribute',(_0x556a26,_0x405ca1,_0x453885)=>{_0x345e0a(_0x556a26,_0x405ca1,_0x453885,!0x0,!0x0);},{'priority':'highest'});}),_0x3ff4a1['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x322dcd,_0x4f1fea)=>{if(_0x4f1fea['options']['showSuggestionHighlights']){const {id:_0x38a85c,authorId:_0x42e139}=J(_0x322dcd);return _0x322dcd['includes'](':split')||_0x322dcd['includes'](':merge')?{'group':'suggestion','name':_0x322dcd['substr'](0xb),'attributes':{'data-suggestion':_0x38a85c,'data-author-id':_0x42e139}}:null;}return{'group':'suggestion','name':_0x322dcd['substr'](0xb)};}});const _0x2cd7df=(_0x51fa9e,_0x1d991d,_0x38910a,_0x16a098,_0x2405d6)=>{if(_0x16a098&&!_0x38910a['options']['showSuggestionHighlights'])return;if(!_0x38910a['consumable']['test'](_0x1d991d['markerRange'],_0x51fa9e['name']))return;const _0x84df50=this['_activeMarkers'],_0x1c76f8=_0x1d991d['markerRange']['getWalker'](),_0xb662e2=_0x1d991d['markerRange']['start'],_0x415793=_0x3ff4a1['model']['schema'];let _0x2bf50c=null,_0x44ca8f=null,_0x4d740b=!0x1,_0x58b4cf=!0x1;for(const _0x127d1b of _0x1c76f8){const _0x17e489=_0x127d1b['item'];_0x4d740b=_0x4d740b||_0x415793['isContent'](_0x17e489);const _0x1d6882=_0x38910a['mapper']['toViewElement'](_0x17e489);if(_0x1d6882&&_0x1d6882['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x127d1b['type']&&(_0x415793['isBlock'](_0x17e489)&&!_0x415793['isLimit'](_0x17e489)&&(_0x17e489['nextSibling']||_0xb662e2['isAtEnd']?_0x2bf50c&&_0x2bf50c['parent']==_0x17e489||(_0x2bf50c=_0x17e489,_0x11b655(_0x127d1b['previousPosition']),_0x58b4cf=!0x0):_0x44ca8f=_0x44ca8f||_0x127d1b['previousPosition']));}function _0x11b655(_0x3e7fda){const {id:_0x171f3a,authorId:_0xb2473c}=J(_0x1d991d['markerName']),_0x4ffce4=_0x38910a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2405d6,'data-suggestion':_0x171f3a,'data-author-id':_0xb2473c}),_0x550332=_0x38910a['mapper']['toViewPosition'](_0x3e7fda);!_0x16a098&&_0x84df50['includes'](_0x1d991d['markerName'])&&_0x38910a['writer']['addClass']('ck-suggestion-marker--active',_0x4ffce4),_0x38910a['writer']['insert'](_0x550332,_0x4ffce4),_0x38910a['mapper']['bindElementToMarker'](_0x4ffce4,_0x1d991d['markerName']);}_0x4d740b||_0x58b4cf||!_0x44ca8f||_0x11b655(_0x44ca8f);};_0x3ff4a1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2e41e9,_0x3aad89,_0x58f451)=>{_0x2cd7df(_0x2e41e9,_0x3aad89,_0x58f451,!0x1,'merge');},{'priority':'high'}),_0x3ff4a1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1cbccd,_0x5ecd62,_0xb5af09)=>{_0x2cd7df(_0x1cbccd,_0x5ecd62,_0xb5af09,!0x0,'merge');},{'priority':'high'}),_0x3ff4a1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4bfe79,_0x27fffa,_0x33d7c2)=>{_0x2cd7df(_0x4bfe79,_0x27fffa,_0x33d7c2,!0x1,'split');},{'priority':'high'}),_0x3ff4a1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35451e,_0x218a70,_0x4a9af5)=>{_0x2cd7df(_0x35451e,_0x218a70,_0x4a9af5,!0x0,'split');},{'priority':'high'}),_0x3ff4a1['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13b1e0,_0x3351a6,_0x52865e)=>{((_0x346f47,_0xa7142d,_0x427b1b)=>{const _0x372c4e=_0x427b1b['mapper']['markerNameToElements'](_0xa7142d['markerName']);if(_0x372c4e){for(const _0x539988 of _0x372c4e)(_0x539988['hasClass']('ck-suggestion-marker-split')||_0x539988['hasClass']('ck-suggestion-marker-merge'))&&(_0x427b1b['mapper']['unbindElementFromMarkerName'](_0x539988,_0xa7142d['markerName']),_0x427b1b['writer']['remove'](_0x539988));}})(0x0,_0x3351a6,_0x52865e);},{'priority':'high'});const _0x5b36bb=(_0x2cc1ee,_0x194b9b,_0x188037,_0x179b3d)=>{if(_0x179b3d&&!_0x188037['options']['showSuggestionHighlights'])return;const _0xe23177=_0x194b9b['markerRange']['start'],_0x457454=_0x194b9b['markerRange']['end'],_0x1c10d5=_0x3ff4a1['model']['schema'];if(!_0xe23177['isTouching'](_0x457454)||!_0xe23177['nodeAfter'])return;const _0x5d8cbe=_0xe23177['nodeAfter'];if(_0x1c10d5['isBlock'](_0x5d8cbe)&&!_0x1c10d5['isLimit'](_0x5d8cbe)&&_0x1c10d5['checkChild'](_0x5d8cbe,'$text')){if(!_0x188037['consumable']['consume'](_0x194b9b['markerRange'],_0x2cc1ee['name']))return;const {id:_0x37f647,authorId:_0x236e44}=J(_0x194b9b['markerName']),_0x659704=_0x188037['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x37f647,'data-author-id':_0x236e44}),_0x1e9807=_0x188037['mapper']['toViewPosition'](_0x457454);!_0x179b3d&&this['_activeMarkers']['includes'](_0x194b9b['markerName'])&&_0x188037['writer']['addClass']('ck-suggestion-marker--active',_0x659704),_0x188037['writer']['insert'](_0x1e9807,_0x659704),_0x188037['mapper']['bindElementToMarker'](_0x659704,_0x194b9b['markerName']);}};_0x3ff4a1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e9684,_0x44c735,_0x308335)=>{_0x5b36bb(_0x3e9684,_0x44c735,_0x308335,!0x1);},{'priority':'high'}),_0x3ff4a1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5cdf43,_0x4b3985,_0x3131d3)=>{_0x5b36bb(_0x5cdf43,_0x4b3985,_0x3131d3,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x20522b,_0x4e3438,_0x43c6b1)=>{this['_activeMarkers']=_0x43c6b1['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x4cf163){this['_blockAttributeKeys']['add'](_0x4cf163);}['registerInlineAttribute'](_0x45b936){this['_inlineAttributeKeys']['add'](_0x45b936);}['isBlockAttribute'](_0x4f911f){return this['_blockAttributeKeys']['has'](_0x4f911f);}['isInlineAttribute'](_0x3d2902){return this['_inlineAttributeKeys']['has'](_0x3d2902);}['isRegisteredAttribute'](_0x196b75){return this['isInlineAttribute'](_0x196b75)||this['isBlockAttribute'](_0x196b75);}['_getClassName'](_0x596453,_0x1f013d){if('attribute'!=_0x596453)return'ck-suggestion-marker-'+_0x596453;const _0x2a5636=_0x1f013d['split']('|')[0x0];return this['isBlockAttribute'](_0x2a5636)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function vt(_0x241ba0={},_0x1985e1){if(void 0x0!==_0x241ba0['dateTimeFormat']&&'function'!=typeof _0x241ba0['dateTimeFormat'])throw new _0x169919('invalid-date-time-format');return _0x4e852d=>{const _0x57dd1d='string'==typeof _0x4e852d?_0x3207f5['fromISO'](_0x4e852d):_0x3207f5['fromJSDate'](_0x4e852d),_0x406006=_0x3207f5['now'](),_0x2ee3d6=Math['floor'](_0x406006['diff'](_0x57dd1d,'days')['days']);return _0x241ba0['dateTimeFormat']?_0x241ba0['dateTimeFormat'](_0x57dd1d['toJSDate'](),_0x1985e1&&_0x1985e1['t']?_0x1985e1['t']:void 0x0):0x0===_0x2ee3d6?_0x1985e1?U(_0x1985e1,'Today')+'\x20'+_0x57dd1d['toFormat']('hh:mma'):_0x57dd1d['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x2ee3d6?_0x1985e1?U(_0x1985e1,'Yesterday')+'\x20'+_0x57dd1d['toFormat']('hh:mma'):_0x57dd1d['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x2ee3d6<0x7?_0x1985e1?U(_0x1985e1,'Last')+'\x20'+U(_0x1985e1,_0x57dd1d['toFormat']('EEEE'))+'\x20'+_0x57dd1d['toFormat']('hh:mma'):_0x57dd1d['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x57dd1d['toFormat']('LL-dd-yyyy\x20hh:mma');};}function wt(_0x242b1e,_0x4a70ea){const _0x22aaa6=_0x242b1e['mapper']['markerNameToElements'](_0x4a70ea['name']);if(!_0x22aaa6)return null;const _0x1f5910=_0xdb6b72(_0x22aaa6['values']());return _0x242b1e['view']['domConverter']['mapViewToDom'](_0x1f5910)||null;}function St(_0x45c2bd,_0x4ec7d4){if(0x0===_0x4ec7d4['length'])return null;const _0x26ea33=[],_0x3f5cb8=_0x45c2bd['view']['domConverter'];for(const _0x39a4f6 of _0x4ec7d4){const _0x336471=_0x45c2bd['mapper']['markerNameToElements'](_0x39a4f6['name']);if(!_0x336471)continue;const _0x1af256=Array['from'](_0x336471)['map'](_0x5ea643=>_0x3f5cb8['mapViewToDom'](_0x5ea643))['filter'](_0x523623=>!!_0x523623);_0x26ea33['push'](..._0x1af256);}if(0x0===_0x26ea33['length'])return null;const _0x38c280=[];for(const _0x2e8faf of _0x26ea33){const _0x19a424=_0x2e8faf['getClientRects']()['item'](0x0);_0x19a424&&_0x38c280['push']({'x':_0x19a424['x'],'y':_0x19a424['y'],'domElement':_0x2e8faf});}return 0x0===_0x38c280['length']?null:(_0x38c280['sort']((_0x21093b,_0x4e0d0e)=>_0x21093b['y']-_0x4e0d0e['y']||_0x21093b['x']-_0x4e0d0e['x']),_0x38c280['map'](_0x3ed2aa=>_0x3ed2aa['domElement']));}function It(_0x1530b7,{limit:_0x92f7e5,suffix:_0x1cac4e='...'}){const _0x526686=[];let _0x4c0866=0x0;const _0x3ec5a7=_0x1530b7['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x29b150=0x0;_0x29b150<_0x3ec5a7['length'];_0x29b150++){let _0xcdc5fe=_0x3ec5a7[_0x29b150];const _0x4d656b=H(_0xcdc5fe);if(_0xcdc5fe['startsWith']('<')){if(_0x4c0866>=_0x92f7e5){const _0x286f2d=_0xcdc5fe['match'](/[a-zA-Z]+/);if(!_0x286f2d){_0x3ec5a7[_0x29b150]='';continue;}const _0x564e99=_0x286f2d[0x0];_0xcdc5fe['startsWith']('</')?(_0x526686['length']&&(_0xcdc5fe=''),_0x526686['pop']()):(_0x526686['push'](_0x564e99),_0xcdc5fe='');}}else{if(_0x4c0866>=_0x92f7e5)_0xcdc5fe='';else{if(_0x4c0866+_0x4d656b['length']>=_0x92f7e5){let _0x4eca73=_0x92f7e5-_0x4c0866;if('\x20'===_0x4d656b[_0x4eca73-0x1])_0x4eca73--;else{const _0x16ba8b=_0x4d656b['slice'](_0x4eca73)['indexOf']('\x20');-0x1!==_0x16ba8b?_0x4eca73+=_0x16ba8b:_0x4eca73=_0xcdc5fe['length'];}_0xcdc5fe=_0x4d656b['slice'](0x0,_0x4eca73)['join']('')+_0x1cac4e,_0x4c0866=_0x92f7e5;}else _0x4c0866+=_0x4d656b['length'];}}_0x3ec5a7[_0x29b150]=_0xcdc5fe;}return _0x3ec5a7['join']('\x0a')['replace'](/\n/g,'');}function H(_0xb81b5c){const _0x513278=[];for(let _0x2d3f38=0x0;_0x2d3f38<_0xb81b5c['length'];_0x2d3f38++){const _0x576b46=_0xb81b5c['substring'](_0x2d3f38)['match'](/^&[a-z0-9#]+;/);if(_0x576b46){const _0x866b2d=_0x576b46[0x0];_0x513278['push'](_0x866b2d),_0x2d3f38+=_0x866b2d['length']-0x1;}else _0x513278['push'](_0xb81b5c[_0x2d3f38]);}return _0x513278;}class v extends _0x33596c{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x157825){super(_0x157825);const _0x50bf2e=this['bindTemplate'];this['set']('message',U(_0x157825,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x157825,U(_0x157825,'Yes'),_0x11baab,'submit'),this['cancelView']=this['_createButtonView'](_0x157825,U(_0x157825,'No'),_0x24b636,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x4db12f(),this['keystrokes']=new _0x4f0358(),this['focusCycler']=new _0x176048({'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':_0x50bf2e['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'](_0x2855f8,_0xbc448,_0x5363bb,_0x194f7d){const _0x461df9=new _0x259d2f(_0x2855f8);return _0x461df9['label']=_0xbc448,_0x461df9['icon']=_0x5363bb,_0x461df9['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x194f7d}}),_0x461df9['on']('execute',()=>this['fire'](_0x194f7d)),_0x461df9;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x34b201=>{this['keystrokes']['listenTo'](_0x34b201['element']),this['focusTracker']['add'](_0x34b201['element']);}),this['keystrokes']['set']('esc',(_0x38ee25,_0x361077)=>{this['fire']('cancel'),_0x361077();});}}function Et(_0x2761fa){return class _0x181cc1 extends _0x2761fa{['showConfirm'](_0x3d3743,_0x30e0c5){return this['confirmView']=new v(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x3d3743,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x30e0c5['appendChild'](this['confirmView']['element']),_0x30e0c5['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x2b330a,_0xc3e79c,_0x475640)=>{_0x475640||_0x30e0c5['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x5f3855=>this['confirmView']['on']('submit',_0x5f3855));}['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(_0x4ed246){let _0x4c411a=0x0,_0x143278=0x0;for(const _0x27ccf4 of M(_0x4ed246))_0x4c411a=(_0x4c411a<<0x5)-_0x4c411a+_0x27ccf4,_0x4c411a&=_0x4c411a,[_0x4c411a,_0x143278]=[_0x143278,_0x4c411a];return F(_0x4c411a)+F(_0x143278);}function*O(_0x199561){null==_0x199561||null==_0x199561?yield 0x12b9b0a1:0x0===_0x199561||!0x1===_0x199561?yield 0x0:0x1===_0x199561||0x1==_0x199561?yield 0x1:Array['isArray'](_0x199561)?yield*function*(_0x48f396){for(const _0x1c587f of _0x48f396)yield*O(_0x1c587f);}(_0x199561):'object'==typeof _0x199561?yield*M(_0x199561):'string'==typeof _0x199561?yield*q(_0x199561):'number'==typeof _0x199561&&(yield _0x199561);}function*M(_0x498fb1){if(yield z('{'),_0x498fb1){const _0x150bd1=Object['keys'](_0x498fb1)['sort']();for(const _0x49908b of _0x150bd1){yield*q(_0x49908b),yield z(':');const _0x28ac30=_0x498fb1[_0x49908b];yield*O(_0x28ac30);}}yield z('}');}function*q(_0x2e91b4){yield z('\x22');for(const _0x326078 of _0x2e91b4)yield z(_0x326078);yield z('\x22');}function z(_0x2976b8){return _0x2976b8['charCodeAt'](0x0);}function F(_0x16ec9a){return(_0x16ec9a*=Math['sign'](_0x16ec9a))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],S=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function G(_0x2d2d97,_0x204a88,_0x4bca93,_0x1baadf=[]){const _0x46bb4f='string'==typeof _0x2d2d97?_0x4bca93['get'](_0x2d2d97)['constructor']:_0x2d2d97['prototype']['constructor'];if(_0x204a88['has'](_0x46bb4f))return _0x204a88['get'](_0x46bb4f);_0x204a88['set'](_0x46bb4f,!0x0);const _0x5b7839=[...S,..._0x1baadf]['map'](_0x6fde1e=>{if(_0x4bca93['has'](_0x6fde1e))return _0x4bca93['get'](_0x6fde1e)['constructor'];})['filter'](_0x33c97a=>_0x33c97a);if(_0x46bb4f&&_0x5b7839['includes'](_0x46bb4f))return _0x204a88['set'](_0x46bb4f,!0x1),!0x1;if(!_0x46bb4f['requires'])return _0x204a88['set'](_0x46bb4f,!0x0),!0x0;const _0x28e83f=_0x46bb4f['requires']['every'](_0x3c398d=>G(_0x3c398d,_0x204a88,_0x4bca93,_0x1baadf));return _0x204a88['set'](_0x46bb4f,_0x28e83f),_0x28e83f;}function At(_0x4e7c0a,_0x1042dc){const _0x4176cc={};for(const _0x433aba of _0x4e7c0a['config']['names']())W['includes'](_0x433aba)||(_0x4176cc[_0x433aba]=_0x4e7c0a['config']['get'](_0x433aba));const _0xa1af2=_0x4176cc['plugins']||[],_0x2911b9=_0x4e7c0a['constructor']['builtinPlugins']||[],_0x3085c9=_0xa1af2['length']?_0xa1af2:_0x2911b9,_0x8e9e27=_0x4176cc['extraPlugins']||[];delete _0x4176cc['extraPlugins'];const _0x4d589f=_0x4176cc['removePlugins']||[];delete _0x4176cc['removePlugins'];const _0x2b4db8=_0x4e7c0a['_context']['config']['get']('plugins')||[],_0x49f925=_0x3085c9['concat'](_0x8e9e27)['concat'](_0x2b4db8)['map'](_0x20493e=>'string'==typeof _0x20493e?_0x2911b9['find'](_0x629c20=>_0x629c20['pluginName']==_0x20493e):_0x20493e)['filter'](_0x25a387=>!_0x4d589f['includes'](_0x25a387)&&!_0x4d589f['includes'](_0x25a387['pluginName'])),_0x47db25=Array['from'](new Set(_0x49f925)),_0x4266b9=new Map();return _0x4176cc['plugins']=_0x47db25['filter'](_0x4f2d8d=>G(_0x4f2d8d,_0x4266b9,_0x4e7c0a['plugins'],_0x1042dc)),_0x4176cc;}function Mt(_0x5cf6c6,_0x3784dd){const _0x3997b6=[];_0x5cf6c6['document']['selection']['on']('change:range',()=>{const _0x1f882b=function(_0x1c1c10,_0x25b337){const _0x40b548=[];for(const _0x5e8e62 of _0x1c1c10['markers']){const _0x362557=_0x5e8e62['getRange']();(_0x362557['containsPosition'](_0x25b337)||_0x362557['start']['isEqual'](_0x25b337)||_0x362557['end']['isEqual'](_0x25b337))&&_0x40b548['push'](_0x5e8e62);}return _0x40b548;}(_0x5cf6c6,_0x5cf6c6['document']['selection']['focus']),_0x1616a9=[],_0x1f65be=[],_0x735231=[];for(const _0x509053 of _0x3997b6)_0x1f882b['includes'](_0x509053)||_0x1616a9['push'](_0x509053);for(const _0x1c29ca of _0x1f882b)_0x3997b6['includes'](_0x1c29ca)||_0x1f65be['push'](_0x1c29ca),_0x735231['push'](_0x1c29ca);(_0x1616a9['length']||_0x1f65be['length'])&&_0x3784dd({'left':_0x1616a9,'entered':_0x1f65be}),_0x3997b6['length']=0x0,_0x3997b6['push'](..._0x735231);});}const Tt='Ctrl+Shift+E';function Lt(_0x4a5ed0,_0x29bfe4){const _0x3033ca=_0x4a5ed0['element'];_0x4a5ed0['keystrokes']['listenTo'](_0x3033ca);for(const _0x246e70 of _0x29bfe4)I(_0x4a5ed0,_0x246e70);_0x29bfe4['on']('change',(_0x13b9a0,_0x253ddd)=>{for(const _0x4c637e of _0x253ddd['removed'])R(_0x4a5ed0,_0x4c637e);for(const _0x523b47 of Array['from'](_0x253ddd['added'])['reverse']())I(_0x4a5ed0,_0x523b47);}),_0x4a5ed0['keystrokes']['set']('enter',(_0xc5f4ed,_0x43d8a2)=>{_0x3033ca===_0xc5f4ed['target']&&(_0x4a5ed0['focusCycler']['focusFirst'](),_0x43d8a2());},{'filter':_0xacc6fa=>_0xacc6fa['target']===_0x3033ca}),_0x4a5ed0['keystrokes']['set']('esc',(_0x1c4612,_0x368915)=>{_0x3033ca!==_0x1c4612['target']?_0x4a5ed0['focus']():_0x4a5ed0['fire']('escape'),_0x368915();}),_0x4a5ed0['keystrokes']['set']('arrowdown',(_0x157ff8,_0x12404f)=>{_0x3033ca===_0x157ff8['target']&&(_0x4a5ed0['fire']('arrowdown'),_0x12404f());}),_0x4a5ed0['keystrokes']['set']('arrowup',(_0x34aad4,_0x3681e7)=>{_0x3033ca===_0x34aad4['target']&&(_0x4a5ed0['fire']('arrowup'),_0x3681e7());});}function I(_0x45e268,_0x5a1acf){_0x5a1acf['isRendered']&&(_0x45e268['focusTracker']['add'](_0x5a1acf['element']),_0x45e268['keystrokes']['listenTo'](_0x5a1acf['element']),_0x3c7613(_0x5a1acf)&&function(_0x29ba60,_0x2dae6a){const _0x30f278=_0x29ba60['actions'],_0x1c082c=_0x2dae6a['actions'];for(const _0x12cf62 of Object['keys'](_0x30f278))if(_0x12cf62 in _0x1c082c&&_0x30f278[_0x12cf62]!==_0x1c082c[_0x12cf62])return!0x1;return!0x0;}(_0x45e268['focusCycler'],_0x5a1acf['focusCycler'])&&_0x45e268['focusCycler']['chain'](_0x5a1acf['focusCycler']));}function R(_0x5ac3c2,_0x1c47a0){_0x5ac3c2['focusTracker']['remove'](_0x1c47a0['element']),_0x5ac3c2['keystrokes']['stopListening'](_0x1c47a0['element']),_0x3c7613(_0x1c47a0)&&_0x5ac3c2['focusCycler']['unchain'](_0x1c47a0['focusCycler']);}const Pt='$elementId',Dt='data-id';class DocumentCompare extends _0x2c0898{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x45dc94?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x49b5c8,_0x20b5f7)=>{_0x20b5f7['on']('ready',()=>{this['_integrateEditor'](_0x20b5f7);});});}get['editor'](){if(this['context']instanceof _0x45dc94)return this['context'];{const _0x4cc26a=this['context']['editors']['first'];if(!_0x4cc26a)throw new _0x169919('documentcompare-no-editor',this);return _0x4cc26a;}}['getDiff'](_0x1b5bc2,_0x40123a,_0xb9e963={'anchor':'main','markDeletions':!0x1}){let _0x4b114c,_0x2b5a5d;const _0x1236b0=this['editor'];if('string'==typeof _0xb9e963['anchor']){const _0x904038=_0x1236b0['model']['document']['getRoot'](_0xb9e963['anchor']);if(!_0x904038)throw new _0x169919('documentcompare-compare-no-root',this,{'anchor':_0xb9e963['anchor']});_0x4b114c=_0x904038,_0x2b5a5d=_0x1236b0['model']['createPositionAt'](_0x904038,0x0);}else _0x4b114c=_0xb9e963['anchor']['clone'](),_0x2b5a5d=_0xb9e963['anchor']['clone']();const _0x52d6a0=_0x1236b0['data']['parse'](_0x1b5bc2,_0x4b114c),_0x5f3642=_0x1236b0['data']['parse'](_0x40123a,_0x4b114c);return new DocumentDiff(_0x52d6a0,_0x5f3642,_0x1236b0,{'anchor':_0x2b5a5d,'markDeletions':_0xb9e963['markDeletions']});}['isMarkedRemoveOperation'](_0x470c8c){return'marker'==_0x470c8c['type']&&_0x470c8c['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0xfcbae0){_0xfcbae0['conversion']['for']('upcast')['add'](_0x10c268=>{_0x10c268['on']('element',(_0x133177,_0xc6ded3,_0x3427d5)=>{if(_0xc6ded3['modelRange'])for(const _0x3c27d4 of _0xc6ded3['modelRange']['getItems']({'shallow':!0x0})){if(_0x3c27d4['is']('$textProxy'))continue;const _0x580869=_0xc6ded3['viewItem']['getAttribute'](Dt);_0x580869&&_0x3427d5['writer']['setAttribute'](Pt,_0x580869,_0x3c27d4);}},{'priority':'lowest'});}),_0xfcbae0['model']['schema']['addAttributeCheck'](()=>!0x0,Pt);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x1e3592,_0x146e8b,_0x1c866e,_0x42f344){this['_editor']=_0x1c866e,this['_markDeletions']=!!_0x42f344['markDeletions'],this['_anchor']=_0x42f344['anchor'];const _0x473780=this['_tokenizeModel'](_0x1e3592),_0x30d42e=this['_tokenizeModel'](_0x146e8b);this['_diffItems']=this['_diffModelTokens'](_0x473780,_0x30d42e),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x1e3592['markers'],_0x146e8b['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x4db24e=this['_editor']['model']['document'],_0x2b45c4=[];let _0x5c30e5=_0x4db24e['version'];for(const _0x4e5567 of this['_operationsData'])switch(_0x4e5567['type']){case'attribute':{const _0x2cdd56=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5567['path']),_0x165456=_0x2cdd56['getShiftedBy'](_0x4e5567['howMany']),_0x44dd10=new _0x3c8d6d(_0x2cdd56,_0x165456),_0x32f0c9=JSON['parse'](_0x4e5567['oldValue']),_0x1ec096=JSON['parse'](_0x4e5567['newValue']);_0x2b45c4['push'](new _0x13e21e(_0x44dd10,_0x4e5567['key'],_0x32f0c9,_0x1ec096,_0x5c30e5++));break;}case'insert':{const _0x1a3194=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5567['path']),_0x2256ff=this['_makeModelFromTokens'](_0x4e5567['tokens']);_0x2b45c4['push'](new _0x3220fd(_0x1a3194,_0x2256ff,_0x5c30e5++));break;}case'remove':{const _0x5948d1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5567['path']),_0x412ada=new _0x1fa420(_0x4db24e['graveyard'],[0x0]);_0x2b45c4['push'](new _0x2f6e49(_0x5948d1,_0x4e5567['howMany'],_0x412ada,_0x5c30e5++));break;}case'rename':{const _0x1b2680=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5567['path']);_0x2b45c4['push'](new _0x375429(_0x1b2680,_0x4e5567['oldName'],_0x4e5567['newName'],_0x5c30e5++));break;}case'split':{const _0x32073c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5567['path']),_0x4aa2bf=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5567['path']['slice'](0x0,-0x1));_0x4aa2bf['offset']++,_0x2b45c4['push'](new _0x457aaa(_0x32073c,Number['NEGATIVE_INFINITY'],_0x4aa2bf,null,_0x5c30e5++));break;}case'merge':{const _0x3a3e4b=_0x4e5567['path']['slice'](),_0x488c50=_0x3a3e4b['slice'](0x0,-0x1);_0x488c50[_0x488c50['length']-0x1]++,_0x488c50['push'](0x0);const _0x332bbb=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x488c50),_0x46a437=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3a3e4b),_0x13dfb0=new _0x1fa420(_0x4db24e['graveyard'],[0x0]);_0x2b45c4['push'](new _0x581992(_0x332bbb,Number['NEGATIVE_INFINITY'],_0x46a437,_0x13dfb0,_0x5c30e5++));break;}case'marker':case'markedRemove':{let _0x33aee4=null;if(_0x4e5567['range']){const _0x3a16ed=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5567['range']['start']),_0x1071d9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5567['range']['end']);_0x33aee4=new _0x3c8d6d(_0x3a16ed,_0x1071d9);}const _0x3045a7='marker'==_0x4e5567['type']?_0x4e5567['name']:'$markedRemove:'+_0x3a62cd();_0x2b45c4['push'](new _0x3d1e60(_0x3045a7,null,_0x33aee4,_0x4db24e['model']['markers'],!0x0,_0x5c30e5++));break;}case'unwrap':{const _0x32c9ed=_0x4e5567['path']['slice']();_0x32c9ed['push'](0x0);const _0x534058=_0x4e5567['path']['slice'](),_0x40996e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ed),_0x3ad426=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x534058),_0x2eefff=new _0x1fa420(_0x4db24e['graveyard'],[0x0]);_0x2b45c4['push'](new _0x2f6e49(_0x40996e,_0x4e5567['howMany'],_0x3ad426,_0x5c30e5++)),_0x2b45c4['push'](new _0x2f6e49(_0x3ad426['getShiftedBy'](_0x4e5567['howMany']),0x1,_0x2eefff,_0x5c30e5++));break;}case'wrap':{const _0x5938e1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5567['range']['start']),_0x5bc6d0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5567['range']['end']),_0x34490b=_0x4e5567['token']['element']['_clone'](!0x1),_0x1ae6ea=_0x4e5567['range']['end']['slice']();_0x1ae6ea['push'](0x0);const _0x4b32e4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1ae6ea);_0x2b45c4['push'](new _0x3220fd(_0x5bc6d0,_0x34490b,_0x5c30e5++)),_0x2b45c4['push'](new _0x2f6e49(_0x5938e1,_0x5bc6d0['offset']-_0x5938e1['offset'],_0x4b32e4,_0x5c30e5++));break;}}return _0x2b45c4;}['_tokenizeModel'](_0x5352d2){const _0x12e6d5=[],_0x363f7c=_0x3c8d6d['_createIn'](_0x5352d2),_0x51e55e=new _0x5b7162({'boundaries':_0x363f7c});let _0x18a1ae='',_0xc95f46=null;const _0x580442=[''],_0xf62475=new Map();for(const _0x4e085b of _0x51e55e)if('elementStart'==_0x4e085b['type']||'elementEnd'==_0x4e085b['type']){let _0x163fd1=_0x580442[0x0];''!==_0x18a1ae&&(_0x12e6d5['push'](...this['_makeTokensFromTextByWords'](_0x18a1ae,_0xc95f46,_0x163fd1)),_0x18a1ae='');const _0xab1ed7=_0x4e085b['item'];let _0x5a7587;_0xab1ed7['getAttribute'](Pt)?_0x5a7587=_0xab1ed7['getAttribute'](Pt):'elementStart'==_0x4e085b['type']?(_0x5a7587=_(_0xab1ed7),_0xf62475['set'](_0xab1ed7,_0x5a7587)):_0x5a7587=_0xf62475['get'](_0xab1ed7);const _0x184c59=this['_getElementCategory'](_0xab1ed7);'solid'==_0x184c59&&('elementStart'==_0x4e085b['type']?(_0x163fd1=_0x5a7587,_0x580442['unshift'](_0x163fd1)):_0x580442['shift']());const _0x39091e={'type':'element','element':_0xab1ed7,'elementId':_0x5a7587,'category':_0x184c59,'isStart':'elementStart'==_0x4e085b['type'],'limitId':_0x163fd1};_0x12e6d5['push'](_0x39091e);}else''==_0x18a1ae&&(_0xc95f46=_0x4e085b['previousPosition']['clone']()),_0x18a1ae+=_0x4e085b['item']['data'];return''!==_0x18a1ae&&_0x12e6d5['push'](...this['_makeTokensFromTextByWords'](_0x18a1ae,_0xc95f46,_0x580442[0x0])),_0x12e6d5;}['_makeTokensFromTextByWords'](_0x382492,_0x22b67a,_0x1deab4){const _0x1715b8=_0x382492['matchAll'](/(\s)/g),_0x4691a9=Array['from'](_0x1715b8)['map'](_0x3af629=>_0x3af629['index']);_0x4691a9['push'](_0x382492['length']),0x0==_0x4691a9[0x0]&&_0x4691a9['shift']();const _0x13d7b8=[],_0x1a7130=_0x22b67a['parent'];let _0xa4aa56=0x0,_0x92871b=_0x22b67a['offset'];for(let _0x4306cf=0x0;_0x4306cf<_0x4691a9['length'];_0x4306cf++)_0x13d7b8['push']({'type':'text','data':_0x382492['slice'](_0xa4aa56,_0x4691a9[_0x4306cf]),'parent':_0x1a7130,'offset':_0x92871b,'limitId':_0x1deab4}),_0xa4aa56=_0x4691a9[_0x4306cf],_0x92871b=_0x22b67a['offset']+_0x4691a9[_0x4306cf];return _0x13d7b8;}['_getElementCategory'](_0x50b81f){const _0x5e1552=this['_editor']['model']['schema'];return _0x5e1552['isLimit'](_0x50b81f)||_0x5e1552['isContent'](_0x50b81f)||_0x5e1552['isInline'](_0x50b81f)?'solid':_0x5e1552['isBlock'](_0x50b81f)?'block':'container';}['_diffModelTokens'](_0x1592a8,_0x4d4bcd){const _0x367b02=_0x56908c(_0x1592a8,_0x4d4bcd,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x367b02);const _0x3b355f=_0x367b02['flatMap'](_0x2ca37e=>{const _0x518d6c=_0x2ca37e['added']?'added':_0x2ca37e['removed']?'removed':'unchanged';return _0x2ca37e['value']['map'](_0x11de47=>({'token':_0x11de47,'change':_0x518d6c}));});let _0x1bb32e=0x0;for(const _0x405269 of _0x3b355f)'added'!=_0x405269['change']&&('unchanged'==_0x405269['change']&&(_0x405269['before']=_0x1592a8[_0x1bb32e]),_0x1bb32e++);return _0x3b355f;}['_handleUnclosedBlockOpeningTags'](_0x91f3e3){for(let _0x2ac19d=0x0;_0x2ac19d<_0x91f3e3['length']-0x1;_0x2ac19d++)if(_0x91f3e3[_0x2ac19d]['removed']&&_0x91f3e3[_0x2ac19d+0x1]['added']){const _0x30bcc3=this['_findUnclosedBlockOpeningToken'](_0x91f3e3[_0x2ac19d]['value']);if(null!==_0x30bcc3){const _0x37bd00=this['_findUnclosedBlockOpeningToken'](_0x91f3e3[_0x2ac19d+0x1]['value']),_0x596595=_0x91f3e3[_0x2ac19d]['value']['splice'](_0x30bcc3),_0x56b00b=_0x91f3e3[_0x2ac19d+0x1]['value']['splice'](_0x37bd00),_0x69b914=[_0x56b00b['shift']()];_0x596595['shift']();const _0x3d28af={'value':_0x596595,'removed':!0x0},_0xa835cf={'value':_0x56b00b,'added':!0x0},_0x470463={'value':_0x69b914};_0x91f3e3['splice'](_0x2ac19d+0x2,0x0,_0x470463,_0x3d28af,_0xa835cf);}}}['_findUnclosedBlockOpeningToken'](_0x41dc37){let _0x1a24e2=0x0,_0x559ab6=-0x1;for(let _0x182db4=0x0;_0x182db4<_0x41dc37['length'];_0x182db4++){const _0x292a3a=_0x41dc37[_0x182db4];'element'==_0x292a3a['type']&&'block'==_0x292a3a['category']&&(_0x1a24e2+=_0x292a3a['isStart']?0x1:-0x1,_0x292a3a['isStart']&&(_0x559ab6=_0x182db4));}return 0x0===_0x1a24e2?null:_0x559ab6;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x115c33=0x0;_0x115c33<this['_diffItems']['length'];_0x115c33++){const _0x1d8311=this['_diffItems'][_0x115c33]['change'],_0x326ae8=[];_0x326ae8['push'](this['_diffItems'][_0x115c33]);let _0x10c2a1=_0x115c33+0x1;for(;this['_diffItems'][_0x10c2a1]&&this['_diffItems'][_0x10c2a1]['change']==_0x1d8311;)_0x326ae8['push'](this['_diffItems'][_0x10c2a1]),_0x10c2a1++,_0x115c33++;const _0x3754d5=_0x326ae8['map'](_0x14d70f=>_0x14d70f['token']);if('unchanged'==_0x1d8311)_0x326ae8['map'](_0x114129=>_0x114129['before'])['forEach'](_0x532adc=>this['_traverseOverItem'](_0x532adc));else{if('removed'==_0x1d8311){if(this['_markDeletions']){const _0x14c0c9=this['_path']['slice']();_0x3754d5['forEach'](_0x36e281=>this['_traverseOverItem'](_0x36e281));const _0x552cb2=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x14c0c9,'end':_0x552cb2}});}else this['_handleChanged'](_0x3754d5,!0x0,this['_path']['slice']());}else{const _0x5dd14d=_0x3754d5['filter'](_0x3c2698=>'element'!=_0x3c2698['type']||'container'!=_0x3c2698['category']);this['_handleChanged'](_0x5dd14d,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x40978f=0x0;_0x40978f<this['_diffItems']['length'];_0x40978f++){const _0x508099=this['_diffItems'][_0x40978f]['change'],_0x13e058=[];_0x13e058['push'](this['_diffItems'][_0x40978f]);let _0x2010de=_0x40978f+0x1;for(;this['_diffItems'][_0x2010de]&&this['_diffItems'][_0x2010de]['change']==_0x508099;)_0x13e058['push'](this['_diffItems'][_0x2010de]),_0x2010de++,_0x40978f++;const _0x1aab61=_0x13e058['map'](_0x518d5e=>_0x518d5e['token']);if('unchanged'==_0x508099){const _0x3dcb87=_0x13e058['map'](_0x38b401=>_0x38b401['before']);this['_handleUnchanged'](_0x3dcb87,_0x1aab61);}else('removed'!=_0x508099||this['_markDeletions'])&&_0x1aab61['forEach'](_0xbe5e3d=>{this['_traverseOverItem'](_0xbe5e3d);});}}['_calculateMarkersOperationsData'](_0x526ee8,_0x1bc184){const _0x26cabe={};for(const [_0xa0f7b]of _0x526ee8)_0x26cabe[_0xa0f7b]=null;for(const [_0x4c4f60,_0x163a9f]of _0x1bc184)_0x26cabe[_0x4c4f60]=_0x163a9f;const _0x5d9348=Object['entries'](_0x26cabe)['map'](([_0x5266c7,_0x45e41d])=>({'type':'marker','name':_0x5266c7,'range':_0x45e41d?{'start':_0x45e41d['start']['path']['slice'](),'end':_0x45e41d['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x5d9348);}['_handleUnwraps'](){const _0x3aed67=new Map(),_0x2cef9a=[],_0x755271=[0x0];let _0x573a4b=this['_diffItems']['length']+0x1;for(let _0x22d63e=this['_diffItems']['length']-0x1;_0x22d63e>=0x0;_0x22d63e--){const {token:_0x102c92,before:_0x3ebaac,change:_0x93f059}=this['_diffItems'][_0x22d63e];if('removed'!=_0x93f059&&(_0x573a4b=_0x22d63e),'element'!=_0x102c92['type']||'container'!=_0x102c92['category']||'added'==_0x93f059)continue;const _0x509518=_0x3ebaac?_0x3ebaac['element']:_0x102c92['element'];if(_0x102c92['isStart']){const _0x1f867d=_0x3aed67['get'](_0x509518),_0x57c8c4=this['_diffItems'][_0x1f867d];('removed'==_0x93f059||'removed'==_0x57c8c4['change'])&&_0x573a4b<_0x1f867d&&(this['_operationsData']['push']({'type':'unwrap','path':_0x509518['getPath'](),'howMany':_0x509518['maxOffset']+_0x755271[0x0]}),_0x755271['shift'](),_0x755271[0x0]+=_0x509518['maxOffset']-0x1,_0x2cef9a['push'](_0x22d63e),_0x2cef9a['push'](_0x1f867d));}else _0x3aed67['set'](_0x509518,_0x22d63e),_0x755271['unshift'](0x0);}_0x2cef9a['sort']((_0x130ce4,_0x15d7f7)=>_0x15d7f7-_0x130ce4),_0x2cef9a['forEach'](_0x3369cf=>{const _0x3a8830=this['_diffItems'][_0x3369cf];'removed'==_0x3a8830['change']?this['_diffItems']['splice'](_0x3369cf,0x1):(_0x3a8830['change']='added',delete _0x3a8830['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x2d4f88=[];for(let _0x35eccf=0x0;_0x35eccf<this['_diffItems']['length'];_0x35eccf++){const {change:_0x203056,token:_0x3d3b7a}=this['_diffItems'][_0x35eccf];if('added'==_0x203056&&'element'==_0x3d3b7a['type']&&'container'==_0x3d3b7a['category']){if(_0x3d3b7a['isStart'])_0x2d4f88['push'](this['_path']['slice']());else{if(!_0x3d3b7a['isStart']){const _0x1903a4=_0x2d4f88['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x1903a4,'end':this['_path']['slice']()},'token':_0x3d3b7a}),this['_path'][this['_path']['length']-0x1]=_0x1903a4[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x203056||this['_markDeletions'])&&this['_traverseOverItem'](_0x3d3b7a);}}['_handleUnchanged'](_0x40136e,_0x2b6a30){for(let _0x38c41d=0x0;_0x38c41d<_0x40136e['length'];_0x38c41d++){const _0x40d7a0=_0x40136e[_0x38c41d];if('element'==_0x40d7a0['type']&&_0x40d7a0['isStart']){const _0x1a79df=_0x2b6a30[_0x38c41d];'block'==_0x40d7a0['category']&&this['_handleElementRename'](_0x40d7a0['element'],_0x1a79df['element'],this['_path']),this['_handleElementAttributeChanges'](_0x40d7a0['element'],_0x1a79df['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x1a79df);}else{if('element'!=_0x40d7a0['type']||_0x40d7a0['isStart']){if('text'==_0x40d7a0['type']){const _0x247fb6=this['_path']['slice'](),_0x3929b2=[],_0x301628=[];for(;_0x40136e[_0x38c41d]&&'text'==_0x40136e[_0x38c41d]['type'];)_0x3929b2['push'](_0x40136e[_0x38c41d]),_0x301628['push'](_0x2b6a30[_0x38c41d]),this['_path'][this['_path']['length']-0x1]+=_0x40136e[_0x38c41d]['data']['length'],_0x38c41d++;_0x38c41d--,this['_handleTextAttributeChanges'](_0x3929b2,_0x301628,_0x247fb6);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x2f629b,_0x48f7bc,_0x33cb01){const _0x33ed9b=[],_0xb8cc69=[],_0x2d5c3b=_0x33cb01['slice']();for(let _0x3193db=0x0;_0x3193db<_0x2f629b['length'];_0x3193db++){const _0x55b472=_0x2f629b[_0x3193db],_0x48bcf4=_0x33cb01['slice']();if('element'!=_0x55b472['type']||_0x55b472['isStart'])'element'==_0x55b472['type']&&_0x55b472['isStart']?(_0x33cb01['push'](0x0),_0x48f7bc||this['_parents']['push'](_0x55b472),_0xb8cc69['push']({'before':_0x48bcf4,'after':_0x33cb01['slice'](),'index':_0x3193db})):_0x33cb01[_0x33cb01['length']-0x1]+=_0x55b472['data']['length'];else{let _0x42d25e;_0x33cb01['pop'](),_0x33cb01[_0x33cb01['length']-0x1]++,_0x42d25e=_0x48f7bc?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0xb8cc69['length']?_0xb8cc69['pop']():_0x33ed9b['push']({'before':_0x48bcf4,'after':_0x33cb01['slice'](),'index':_0x3193db,'related':_0x42d25e});}}if(_0xb8cc69['length']!==_0x33ed9b['length'])throw new _0x169919('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x2f629b,'isRemove':_0x48f7bc});const _0xfa305e=[{'after':_0x2d5c3b['slice'](),'index':-0x1},..._0x33ed9b,..._0xb8cc69,{'before':_0x33cb01['slice'](),'index':_0x2f629b['length']}];if(_0x48f7bc){for(let _0x20bc4e=_0xfa305e['length']-0x1;_0x20bc4e>=0x1;_0x20bc4e--){const _0xb2c06b=_0xfa305e[_0x20bc4e-0x1]['after'],_0x25445e=_0xfa305e[_0x20bc4e]['before'],_0x4b6c21=_0x25445e[_0x25445e['length']-0x1]-_0xb2c06b[_0xb2c06b['length']-0x1];_0x4b6c21&&(this['_operationsData']['push']({'type':'remove','path':_0xb2c06b,'howMany':_0x4b6c21}),_0x25445e[_0x25445e['length']-0x1]-=_0x4b6c21);}for(const {before:_0x1147ec}of _0x33ed9b)this['_operationsData']['push']({'type':'merge','path':_0x1147ec});}else for(let _0x33661a=0x0;_0x33661a<_0xfa305e['length']-0x1;_0x33661a++){const _0x797ec8=_0xfa305e[_0x33661a]['after'],_0x23189f=_0xfa305e[_0x33661a+0x1]['before'],_0x19f0a4=_0xfa305e[_0x33661a]['index']+0x1,_0x878585=_0xfa305e[_0x33661a+0x1]['index'];if(_0x19f0a4!==_0x878585&&this['_operationsData']['push']({'type':'insert','path':_0x797ec8,'tokens':_0x2f629b['slice'](_0x19f0a4,_0x878585)}),_0x33661a<_0x33ed9b['length']){this['_operationsData']['push']({'type':'split','path':_0x23189f});const _0x25a472=_0x2f629b[_0xb8cc69[_0xb8cc69['length']-0x1-_0x33661a]['index']],_0x343454=_0x33ed9b[_0x33661a]['after'],_0x330e5f=_0x33ed9b[_0x33661a]['related']['element'];this['_handleElementRename'](_0x330e5f,_0x25a472['element'],_0x343454),this['_handleElementAttributeChanges'](_0x330e5f,_0x25a472['element'],_0x343454);}}}['_traverseOverItem'](_0x1a127b){'element'==_0x1a127b['type']&&_0x1a127b['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x1a127b)):'element'!=_0x1a127b['type']||_0x1a127b['isStart']?'text'==_0x1a127b['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x1a127b['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0xa548d9,_0x317439,_0x502fa2){_0xa548d9['name']!=_0x317439['name']&&this['_operationsData']['push']({'type':'rename','path':_0x502fa2['slice'](),'oldName':_0xa548d9['name'],'newName':_0x317439['name']});}['_handleElementAttributeChanges'](_0x6fb471,_0x41ba5e,_0x4889f7){const _0x33b783=this['_getAttributeChanges'](_0x6fb471['getAttributes'](),_0x41ba5e['getAttributes']());for(const _0x77e073 in _0x33b783){const {oldValue:_0x2de98f,newValue:_0x15553b}=_0x33b783[_0x77e073];this['_operationsData']['push']({'type':'attribute','path':_0x4889f7['slice'](),'howMany':0x1,'key':_0x77e073,'oldValue':_0x2de98f,'newValue':_0x15553b});}}['_handleTextAttributeChanges'](_0x56b03c,_0x5f42ab,_0x4dc23a){const _0x14be50=this['_operationsData'],_0x5e1261=_0x56b03c[0x0]['parent'],_0x5582f5=_0x56b03c[0x0]['offset'],_0x1b111b=_0x5f42ab[0x0]['parent'],_0x2abec3=_0x5f42ab[0x0]['offset'],_0x424444=_0x56b03c['reduce']((_0x48e14d,_0x9c8496)=>_0x48e14d+_0x9c8496['data']['length'],0x0),_0x1851af=this['_getAttrsForOffsets'](_0x5e1261,_0x5582f5,_0x424444),_0x4f4f0=this['_getAttrsForOffsets'](_0x1b111b,_0x2abec3,_0x424444),_0x152950={};for(let _0x5084be=0x0;_0x5084be<_0x424444;_0x5084be++){const _0x6f7202=_0x1851af[_0x5582f5+_0x5084be],_0x1a949a=_0x4f4f0[_0x2abec3+_0x5084be],_0x198a9c=this['_getAttributeChanges'](_0x6f7202,_0x1a949a);for(const _0x2510b0 in _0x152950)_0x198a9c[_0x2510b0]||_0x226e48(_0x2510b0);for(const _0x12bf4e in _0x198a9c){const {oldValue:_0x4b4192,newValue:_0x4be074}=_0x198a9c[_0x12bf4e],_0x532583=_0x152950[_0x12bf4e];_0x532583?_0x532583['oldValue']==_0x4b4192&&_0x532583['newValue']==_0x4be074?_0x532583['length']++:(_0x226e48(_0x12bf4e),_0x152950[_0x12bf4e]={'oldValue':_0x4b4192,'newValue':_0x4be074,'start':_0x5084be,'length':0x1}):_0x152950[_0x12bf4e]={'oldValue':_0x4b4192,'newValue':_0x4be074,'start':_0x5084be,'length':0x1};}}for(const _0x48565f in _0x152950)_0x226e48(_0x48565f);function _0x226e48(_0x29b9d){const _0x3f9895=_0x152950[_0x29b9d],_0x47f2ec=_0x4dc23a['slice']();_0x47f2ec[_0x47f2ec['length']-0x1]+=_0x3f9895['start'],_0x14be50['push']({'type':'attribute','path':_0x47f2ec,'howMany':_0x3f9895['length'],'key':_0x29b9d,'oldValue':_0x3f9895['oldValue'],'newValue':_0x3f9895['newValue']}),delete _0x152950[_0x29b9d];}}['_getAttributeChanges'](_0x3fd092,_0x4a1e9c){const _0x5304fc={};for(const [_0x370ad1,_0x40b133]of _0x3fd092)_0x5304fc[_0x370ad1]={'oldValue':JSON['stringify'](_0x40b133),'newValue':'null'};for(const [_0xb56403,_0x1c5298]of _0x4a1e9c){const _0x1007d5=JSON['stringify'](_0x1c5298);_0x5304fc[_0xb56403]?_0x5304fc[_0xb56403]['oldValue']==_0x1007d5?delete _0x5304fc[_0xb56403]:_0x5304fc[_0xb56403]['newValue']=_0x1007d5:_0x5304fc[_0xb56403]={'oldValue':'null','newValue':_0x1007d5};}return delete _0x5304fc[Pt],_0x5304fc;}['_getAttrsForOffsets'](_0x21deb2,_0x308a7b,_0x157da1){const _0x261579=new Array(_0x308a7b+_0x157da1);let _0x2cac95=_0x21deb2['getChildAtOffset'](_0x308a7b),_0x3d5946=_0x2cac95['startOffset'];for(;_0x2cac95&&_0x3d5946<_0x308a7b+_0x157da1;){const _0x239774=Array['from'](_0x2cac95['getAttributes']());_0x261579['fill'](_0x239774,_0x3d5946,_0x3d5946+_0x2cac95['offsetSize']),_0x3d5946+=_0x2cac95['offsetSize'],_0x2cac95=_0x2cac95['nextSibling'];}return _0x261579;}['_getPositionFromAnchorAndPath'](_0x279ea4,_0x15f262){const _0x313d57=[..._0x279ea4['path']['slice'](0x0,-0x1),_0x279ea4['offset']+_0x15f262[0x0],..._0x15f262['slice'](0x1)];return new _0x1fa420(_0x279ea4['root'],_0x313d57);}['_makeModelFromTokens'](_0x28bc27){const _0x23ec91=[];let _0x3f41c6=null;for(const _0x2be99f of _0x28bc27)if('element'!=_0x2be99f['type']||_0x2be99f['isStart']||_0x3f41c6!=_0x2be99f['element']){if(!_0x3f41c6){if('text'==_0x2be99f['type']){const _0x2908a1=_0x1fa420['_createAt'](_0x2be99f['parent'],_0x2be99f['offset']),_0x2e12bd=_0x3c8d6d['_createFromPositionAndShift'](_0x2908a1,_0x2be99f['data']['length']),_0x57629b=Array['from'](_0x2e12bd['getItems']())['map'](_0x129637=>new _0x5ab2da(_0x129637['data'],_0x129637['getAttributes']()));_0x23ec91['push'](..._0x57629b);}else{_0x3f41c6=_0x2be99f['element'];const _0x528f8f=_0x2be99f['element']['_clone'](!0x0);_0x528f8f['_removeAttribute'](Pt);for(const _0x454a36 of this['_editor']['model']['createRangeIn'](_0x528f8f)['getItems']())_0x454a36['is']('element')&&_0x454a36['_removeAttribute'](Pt);_0x23ec91['push'](_0x528f8f);}}}else _0x3f41c6=null;return _0x23ec91;}}function g(_0x25b16d,_0x5dd1fa){return _0x25b16d['type']===_0x5dd1fa['type']&&(_0x25b16d['limitId']===_0x5dd1fa['limitId']&&('text'==_0x25b16d['type']?_0x25b16d['data']==_0x5dd1fa['data']:function(_0x1b9f69,_0x4d1c20){if(_0x1b9f69['isStart']!=_0x4d1c20['isStart'])return!0x1;if(_0x1b9f69['isStart']&&_0x1b9f69['elementId']!=_0x4d1c20['elementId'])return!0x1;if(_0x1b9f69['category']!=_0x4d1c20['category'])return!0x1;if('block'==_0x1b9f69['category'])return!0x0;if('container'==_0x1b9f69['category']&&_0x1b9f69['elementId']!=_0x4d1c20['elementId'])return!0x1;return _0x1b9f69['element']['name']==_0x4d1c20['element']['name'];}(_0x25b16d,_0x5dd1fa)));}function _(_0xc436f9){return k({'name':_0xc436f9['name'],...Object['fromEntries'](_0xc436f9['getAttributes']())});}export{AriaDescriptionView,Et as ConfirmMixin,Pt as DATA_ID_MODEL_ATTRIBUTE,Dt as DATA_ID_VIEW_ATTRIBUTE,DocumentCompare,Tt as FOCUS_ANNOTATION_KEYSTROKE,LateFocusButtonView,LateFocusDropdownButtonView,C as Permissions,SuggestionsConversion,UserView,Users,yt as fixElementSuggestionRange,St as getAllMarkersDomElementsSorted,vt as getDateTimeFormatter,wt as getMarkerDomElement,k as hashObject,At as sanitizeEditorConfig,Lt as setupThreadKeyboardNavigation,J as splitSuggestionMarkerName,Mt as surroundingMarkersDetector,It as trimHtml};
|
|
23
|
+
import{ContextPlugin as _0xe601fc,Editor as _0x2cdd1e,Plugin as _0x4fcb1b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xfd82d4,Collection as _0x59ec75,uid as _0x404fec,toArray as rt,first as _0x2f10d5,FocusTracker as _0x4b9fce,KeystrokeHandler as _0x35ac81}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x244cb3,IconView as st,ButtonView as ts,DropdownButtonView as _0x2ed6b3,FocusCycler as _0x581fcc,isViewWithFocusCycler as _0x50f849}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as ct,IconCheck as _0x2cc1c9,IconCancel as _0x795f28}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as it,toWidget as _0x3422a6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0xadc4f8,MoveOperation as _0x2d1c40,ModelPosition as _0x5b8971,ModelRange as _0xb2175,MarkerOperation as _0x52a7b2,MergeOperation as _0x8008f4,SplitOperation as _0x375842,RenameOperation as _0x2fc465,AttributeOperation as _0x2b3642,ModelTreeWalker as _0x380201,ModelText as _0x37bbe6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x11a034}from'diff';class C extends _0xe601fc{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x269e91,_0x1fd7a4){let _0x29c0a8;if(_0x1fd7a4||(_0x1fd7a4=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x1fd7a4?_0x29c0a8=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x29c0a8=this['context']['editors']['find'](_0x1c7b9f=>_0x1c7b9f['config']['get']('collaboration.channelId')==_0x1fd7a4)),!_0x29c0a8)throw new _0xfd82d4('permissions-set-permissions-invalid-channel-id',null);const _0x39e86c=_0x29c0a8['plugins'],_0x13876c=_0x39e86c['has']('CommentsRepository')?_0x39e86c['get']('CommentsRepository'):void 0x0,_0xca4a55=_0x39e86c['has']('CommentsOnly')&&_0x39e86c['get']('CommentsOnly'),_0x4ff8d0=_0x269e91['includes']('document:write'),_0x3f0fc0=_0x269e91['includes']('comment:modify_all'),_0x1aeb2b=_0x269e91['includes']('comment:admin'),_0x440a46=_0x269e91['includes']('comment:write'),_0x377d57=_0x440a46||_0x1aeb2b,_0x3efa50=_0x377d57||_0x3f0fc0,_0x587a5e=_0x4ff8d0||_0x377d57;(_0xca4a55&&(_0xca4a55['isEnabled']=!_0x4ff8d0&&_0x3efa50),_0x29c0a8 instanceof _0x2cdd1e)&&(!(_0x4ff8d0||_0x3efa50&&_0x13876c)?_0x29c0a8['enableReadOnlyMode']('no-permissions'):_0x29c0a8['disableReadOnlyMode']('no-permissions'));if(_0x13876c){_0x13876c['setPermissions']({'admin':_0x1aeb2b,'modifyAll':_0x3f0fc0,'write':_0x440a46,'resolve':_0x587a5e},_0x1fd7a4);const _0x1f15f6=_0x29c0a8 instanceof _0x2cdd1e&&_0x29c0a8['commands']['get']('addCommentThread');_0x1f15f6&&(_0x377d57?_0x1f15f6['clearForceDisabled']('noPermissions'):_0x1f15f6['forceDisabled']('noPermissions'));}}}function U(_0x3e9b94,_0x38c313){const t=_0x3e9b94['t'];switch(_0x38c313){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 Users extends _0xe601fc{['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(_0x408804){super(_0x408804),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x59ec75(),this['_locale']=_0x408804['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:_0x193864,name:_0x20f6a2,..._0x6bf7e3}){if(!_0x193864||'string'!=typeof _0x193864)throw new _0xfd82d4('users-add-invalid-id');if(this['users']['has'](_0x193864))throw new _0xfd82d4('users-add-duplicated-id',null,{'id':_0x193864});const _0x126e68=this['context']['config']['get']('users.getInitialsCallback'),_0xcd93b2={..._0x6bf7e3,'id':_0x193864,'name':A(this['_locale'],_0x20f6a2),'color':this['_getNextColor']()};_0xcd93b2['name']=A(this['_locale'],_0xcd93b2['name']);const _0x4c69cd=new User(_0xcd93b2,_0x126e68);return this['users']['add'](_0x4c69cd),_0x4c69cd;}['getUser'](_0x38b412){return this['users']['get'](_0x38b412);}['useAnonymousUser'](){const _0x242d55=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x242d55);}['defineMe'](_0x2237df){if(this['_myId'])throw new _0xfd82d4('users-me-already-defined',null);const _0xf154c0=this['getUser'](_0x2237df);if(!_0xf154c0)throw new _0xfd82d4('users-me-missing-user',null);this['_myId']=_0x2237df,_0xf154c0['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x2b8b2d=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x2b8b2d&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x29acc9=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x29acc9,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class User{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x450af6,_0xa44c38){this['id']=_0x450af6['id'],this['color']=_0x450af6['color'],this['name']=_0x450af6['name'],this['initials']=_0xa44c38?_0xa44c38(this['name']):this['_computeInitials'](),this['avatar']=_0x450af6['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x3bcaa7=this['name']['split']('\x20')['filter'](_0x33d163=>/^[\p{Letter}]/u['test'](_0x33d163));return 0x1===_0x3bcaa7['length']?this['_getInitial'](_0x3bcaa7[0x0]):0x0===_0x3bcaa7['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x3bcaa7[0x0])+this['_getInitial'](_0x3bcaa7[_0x3bcaa7['length']-0x1]);}['_getInitial'](_0x1688db){return String['fromCodePoint'](_0x1688db['codePointAt'](0x0))['toUpperCase']();}}function A(_0x1f204d,_0x2be422=''){return''==(_0x2be422=_0x2be422['trim']())?U(_0x1f204d,'Anonymous'):_0x2be422;}class CollaborationUserColor{['_id'];constructor(_0x2f9f07){this['_id']=_0x2f9f07;}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 UserView extends _0x244cb3{['name'];['notificationView'];constructor(_0x194b02,_0x16d58d,_0x43035f){super(_0x194b02),this['name']=_0x16d58d['name'],this['notificationView']=null;const _0x34c375=['ck','ck-user'],_0x57a017=['ck','ck-user__img'];if(_0x16d58d['isAnonymous']&&_0x57a017['push']('ck-user__anonymous'),!_0x16d58d['isAnonymous']&&_0x16d58d['isMe']&&_0x34c375['push']('ck-user_me'),_0x16d58d['avatar']&&_0x57a017['push']('ck-user__avatar'),_0x43035f){const _0x110523=new st();_0x110523['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x110523['content']=ct,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x43035f},'children':[_0x110523]};}const _0x3b6eb0=[{'tag':'div','attributes':{'class':_0x57a017,'style':{'background-image':_0x16d58d['avatar']?'url(\x27'+_0x16d58d['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x16d58d['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x16d58d['name']},'children':[{'text':_0x16d58d['initials']}]}];this['notificationView']&&_0x3b6eb0['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x34c375,'data-user-id':_0x16d58d['id']},'children':_0x3b6eb0});}}class AriaDescriptionView extends _0x244cb3{['id'];constructor(_0x5d33c8,_0x46e942){super(_0x5d33c8),this['id']='ck-aria-description-'+_0x404fec(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x46e942}]});}}class LateFocusButtonView extends ts{['render'](){super['render'](),re(this);}}class LateFocusDropdownButtonView extends _0x2ed6b3{['render'](){super['render'](),re(this);}}function re(_0x5e57b4){_0x5e57b4['listenTo'](_0x5e57b4['element'],'mousedown',(_0x2a2146,_0x10497d)=>{_0x10497d['stopPropagation'](),_0x10497d['preventDefault']();}),_0x5e57b4['listenTo'](_0x5e57b4['element'],'mouseup',()=>{_0x5e57b4['element']['focus']();});}function v(_0x430eb6){const _0xb37e48=_0x430eb6['split'](':');return{'group':_0xb37e48[0x0],'type':_0xb37e48[0x1],'subType':_0xb37e48['length']>=0x5?_0xb37e48[0x2]:null,'id':_0xb37e48['length']<0x5?_0xb37e48[0x2]:_0xb37e48[0x3],'authorId':_0xb37e48['length']<0x5?_0xb37e48[0x3]:_0xb37e48[0x4],'markerCount':0x6==_0xb37e48['length']?_0xb37e48[0x5]:null};}function at(_0x1ae5e8,_0x3b0b28){const _0x3c87f6=_0x1ae5e8['end']['nodeBefore'];if(_0x3c87f6&&_0x3c87f6['is']('element')&&_0x3b0b28['schema']['isBlock'](_0x3c87f6)&&!_0x3b0b28['schema']['isObject'](_0x3c87f6)){const _0x26ca23=_0x3b0b28['createPositionAt'](_0x3c87f6,'end');return _0x3b0b28['createRange'](_0x1ae5e8['start'],_0x26ca23);}return _0x1ae5e8;}class M extends _0x4fcb1b{['afterInit'](){const _0x21d1ab=this['editor'];if(!_0x21d1ab['plugins']['has']('AlignmentEditing'))return;_0x21d1ab['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x4fcb1b{['afterInit'](){const _0x5f4ba8=this['editor'],_0x403a68=_0x5f4ba8['plugins']['get']('SuggestionsConversion');for(const _0x3927d9 of ii){if(!_0x5f4ba8['plugins']['has'](_0x3927d9))continue;const _0x1999eb=_0x3927d9['slice'](0x0,-0x7)['toLowerCase']();_0x403a68['registerInlineAttribute'](_0x1999eb);}}}class I extends _0x4fcb1b{['afterInit'](){const _0x1568ed=this['editor'],_0x27e819=_0x1568ed['plugins']['get']('SuggestionsConversion');_0x1568ed['plugins']['has']('BookmarkEditing')&&_0x27e819['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x4fcb1b{['afterInit'](){const _0x1b1dea=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x4d5f8f,commandName:_0x41c9a0}of no)this['editor']['plugins']['has'](_0x4d5f8f)&&_0x1b1dea['registerInlineAttribute'](_0x41c9a0);}}class T extends _0x4fcb1b{['afterInit'](){const {editor:_0xc75079}=this;if(!_0xc75079['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x1bbb53=_0xc75079['plugins']['get']('SuggestionsConversion');_0x1bbb53['registerBlockAttribute']('footnotesListStyle'),_0x1bbb53['registerBlockAttribute']('footnotesListStart');}}class E extends _0x4fcb1b{['afterInit'](){const _0x3f2a2a=this['editor'];if(!_0x3f2a2a['plugins']['has']('HighlightEditing'))return;_0x3f2a2a['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class S extends _0x4fcb1b{['afterInit'](){const _0x37bda2=this['editor'];if(!_0x37bda2['plugins']['has']('HtmlEmbed'))return;_0x37bda2['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class $ extends _0x4fcb1b{['afterInit'](){const _0x309be7=this['editor'];if(!_0x309be7['plugins']['has']('ImageEditing'))return;const _0x1515a3=_0x309be7['plugins']['get']('SuggestionsConversion');_0x1515a3['registerBlockAttribute']('src'),_0x309be7['plugins']['has']('ImageResize')&&_0x1515a3['registerBlockAttribute']('resizedWidth'),_0x309be7['plugins']['has']('ImageTextAlternativeEditing')&&_0x1515a3['registerBlockAttribute']('alt'),_0x309be7['plugins']['has']('PictureEditing')&&_0x1515a3['registerBlockAttribute']('sources'),_0x309be7['plugins']['has']('ImageSizeAttributes')&&(_0x1515a3['registerBlockAttribute']('width'),_0x1515a3['registerBlockAttribute']('height'));}}class x extends _0x4fcb1b{['afterInit'](){const _0xb5b479=this['editor'],_0x80f10d=_0xb5b479['plugins']['get']('SuggestionsConversion');_0xb5b479['plugins']['has']('IndentBlock')&&(_0x80f10d['registerBlockAttribute']('blockIndent'),_0xb5b479['plugins']['has']('ListEditing')&&(_0x80f10d['registerBlockAttribute']('blockIndentList'),_0x80f10d['registerBlockAttribute']('blockIndentListItem')));}}class H extends _0x4fcb1b{['afterInit'](){const _0x56438f=this['editor'];if(!_0x56438f['plugins']['has']('LineHeight'))return;_0x56438f['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class N extends _0x4fcb1b{['afterInit'](){const _0x513c9b=this['editor'];if(!_0x513c9b['plugins']['has']('LinkEditing'))return;const _0x29e174=_0x513c9b['plugins']['get']('SuggestionsConversion'),_0x26afcd=_0x513c9b['commands']['get']('link');_0x29e174['registerInlineAttribute']('linkHref');for(const _0x27cf35 of _0x26afcd['manualDecorators'])_0x29e174['registerInlineAttribute'](_0x27cf35['id']);}}class P extends _0x4fcb1b{['afterInit'](){const _0x5a8ea7=this['editor'];if(!_0x5a8ea7['plugins']['has']('ListEditing'))return;const _0x3c0d67=_0x5a8ea7['plugins']['get']('SuggestionsConversion'),_0x47957b=_0x5a8ea7['plugins']['has']('TodoListEditing');_0x3c0d67['registerBlockAttribute']('listItemId'),_0x3c0d67['registerBlockAttribute']('listType'),_0x3c0d67['registerBlockAttribute']('listIndent'),_0x47957b&&_0x3c0d67['registerBlockAttribute']('todoListChecked');}}class K extends _0x4fcb1b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x46a3a9=this['editor']['config']['get']('list.properties'),_0x302e4e=this['editor']['plugins']['get']('SuggestionsConversion');_0x46a3a9['styles']&&_0x302e4e['registerBlockAttribute']('listStyle'),_0x46a3a9['reversed']&&_0x302e4e['registerBlockAttribute']('listReversed'),_0x46a3a9['startIndex']&&_0x302e4e['registerBlockAttribute']('listStart');}}class q extends _0x4fcb1b{['afterInit'](){const _0x29a472=this['editor'],_0x226150=_0x29a472['plugins']['get']('SuggestionsConversion');_0x29a472['plugins']['has']('MultiLevelList')&&_0x226150['registerBlockAttribute']('listMarkerStyle');}}class z extends _0x4fcb1b{['afterInit'](){const _0x1d1b76=this['editor'];if(!_0x1d1b76['plugins']['has']('Style')||!_0x1d1b76['plugins']['has']('DataSchema')||!_0x1d1b76['config']['get']('style.definitions'))return;const _0x321cfc=_0x1d1b76['plugins']['get']('SuggestionsConversion'),_0x2ba07e=_0x1d1b76['config']['get']('style.definitions'),_0x32b004=_0x1d1b76['plugins']['get']('GeneralHtmlSupport'),_0x36f47d=_0x1d1b76['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1d1b76['plugins']['get']('DataSchema'),_0x2ba07e),_0x1be66e=new Set();for(const _0x5a2e65 of _0x36f47d['block']){const _0x3bd69e=_0x32b004['getGhsAttributeNameForElement'](_0x5a2e65['element']);_0x1be66e['add'](_0x3bd69e);}const _0x25f0b9=new Set();for(const _0x11df85 of _0x36f47d['inline']){const _0x2f790b=_0x32b004['getGhsAttributeNameForElement'](_0x11df85['element']);_0x25f0b9['add'](_0x2f790b);for(const _0x3f6dcd of _0x11df85['ghsAttributes'])_0x25f0b9['add'](_0x3f6dcd);}for(const _0x434808 of _0x1be66e)_0x321cfc['registerBlockAttribute'](_0x434808);for(const _0x44bb65 of _0x25f0b9)_0x321cfc['registerInlineAttribute'](_0x44bb65);}}class O extends _0x4fcb1b{['afterInit'](){const _0x361750=this['editor'];if(!_0x361750['plugins']['has']('TableEditing'))return;const _0x29b75c=_0x361750['plugins']['get']('SuggestionsConversion');_0x29b75c['registerBlockAttribute']('headingRows'),_0x29b75c['registerBlockAttribute']('headingColumns');}}class R extends _0x4fcb1b{['afterInit'](){const {plugins:_0x4983a3}=this['editor'];if(!_0x4983a3['has']('TablePropertiesEditing'))return;const _0x1b38df=_0x4983a3['get']('SuggestionsConversion'),_0x11ba19=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x13397c of _0x11ba19)_0x1b38df['registerBlockAttribute'](_0x13397c);}}class F extends _0x4fcb1b{['afterInit'](){const _0x314977=this['editor'],_0x17144a=_0x314977['plugins']['get']('SuggestionsConversion');_0x314977['plugins']['has']('TableLayout')&&_0x17144a['registerBlockAttribute']('tableType');}}class G extends _0x4fcb1b{['afterInit'](){const _0x179790=this['editor'],_0x5b97ad=this['editor']['plugins']['get']('SuggestionsConversion');_0x179790['plugins']['has']('Uploadcare')&&_0x179790['plugins']['has']('UploadcareImageEdit')&&_0x5b97ad['registerBlockAttribute']('uploadcareImageId');}}class J extends _0x4fcb1b{['afterInit'](){const _0xea0186=this['editor'];if(!_0xea0186['plugins']['has']('ShiftEnter'))return;const _0x2435e0=_0xea0186['plugins']['get']('SuggestionsConversion'),_0x1dc88d=(_0x57eb33,_0x2608db,_0x3d407a,_0x3c19bc)=>{if(_0x3c19bc&&!_0x3d407a['options']['showSuggestionHighlights'])return;if(!_0x3d407a['consumable']['test'](_0x2608db['markerRange'],_0x57eb33['name']))return;const _0x520542=_0xea0186['model'];for(const _0x53c547 of _0x2608db['markerRange']['getItems']()){if(!_0x53c547['is']('element','softBreak'))continue;const _0x1f0be3='deletion'==_0x2608db['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x46d468,authorId:_0x1cd135}=v(_0x2608db['markerName']),_0x34e7be=_0x3d407a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f0be3,'data-suggestion':_0x46d468,'data-author-id':_0x1cd135}),_0x3fa693=_0x3d407a['mapper']['toViewPosition'](_0x520542['createPositionBefore'](_0x53c547));!_0x3c19bc&&_0x2435e0['_activeMarkers']['includes'](_0x2608db['markerName'])&&_0x3d407a['writer']['addClass']('ck-suggestion-marker--active',_0x34e7be),_0x3d407a['writer']['insert'](_0x3fa693,_0x34e7be),_0x3d407a['mapper']['bindElementToMarker'](_0x34e7be,_0x2608db['markerName']);}};_0xea0186['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37aa09,_0x2249a2,_0x1e7d7e)=>{_0x1dc88d(_0x37aa09,_0x2249a2,_0x1e7d7e,!0x1);},{'priority':'high'}),_0xea0186['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x57e462,_0x4538cd,_0x483008)=>{_0x1dc88d(_0x57e462,_0x4538cd,_0x483008,!0x0);},{'priority':'high'});}}class L extends _0x4fcb1b{['afterInit'](){const _0x48c33d=this['editor'];_0x48c33d['plugins']['has']('MediaEmbedEditing')&&(_0x48c33d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4b1feb,{writer:_0x5b627b,options:_0x40178e})=>{if(_0x40178e['showSuggestionHighlights'])return _0x5b627b['createEmptyElement']('div');},'converterPriority':'high'}),_0x48c33d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x24a3a5,_0x2932f6,_0x14f8be)=>{_0x14f8be['options']['showSuggestionHighlights']&&_0x24a3a5['stop']();},{'priority':'high'}));}}class Q extends _0x4fcb1b{['afterInit'](){const _0xfe4a49=this['editor'];if(!_0xfe4a49['plugins']['has']('Table'))return;_0xfe4a49['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x189522,_0x4ef7cd,_0x3acd33)=>{((_0x1b9aa3,_0x171dde,_0x1cb1b1)=>{if(!_0x1cb1b1['options']['showSuggestionHighlights'])return;const _0x1622a0=_0x171dde['item'];if(!_0x1622a0||!_0x1622a0['is']('element','tableCell'))return;const _0x18d041=_0x1cb1b1['mapper']['toViewElement'](_0x1622a0);if(_0x18d041){const {id:_0x420cf9,authorId:_0x43e5f2}=v(_0x171dde['markerName']);it(_0x18d041,_0x1cb1b1['writer'],(_0x4119f4,_0x515797,_0xc23490)=>{_0xc23490['addClass'](rt(_0x515797['classes']),_0x4119f4),_0xc23490['setAttribute']('data-suggestion-id',_0x420cf9,_0x4119f4),_0xc23490['setAttribute']('data-author-id',_0x43e5f2,_0x4119f4);});}})(0x0,_0x4ef7cd,_0x3acd33);},{'priority':'highest'});}}class V extends _0x4fcb1b{['afterInit'](){const _0x4cd83a=this['editor'];_0x4cd83a['plugins']['has']('HorizontalLineEditing')&&_0x4cd83a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4636a8,{writer:_0x236f89,options:_0x4ec059})=>{if(!_0x4ec059['showSuggestionHighlights'])return null;const _0x2135c3=_0x236f89['createContainerElement']('div'),_0xd06263=_0x236f89['createEmptyElement']('hr');return _0x236f89['addClass']('ck-horizontal-line',_0x2135c3),_0x236f89['insert'](_0x236f89['createPositionAt'](_0x2135c3,0x0),_0xd06263),_0x2135c3;},'converterPriority':'high'});}}class W extends _0x4fcb1b{['afterInit'](){const {plugins:_0x419187,model:_0x44512b}=this['editor'];if(!_0x419187['has']('TableCellPropertiesEditing'))return;const _0x32da80=_0x419187['get']('SuggestionsConversion'),_0x137ba5=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x23302c of _0x137ba5)_0x32da80['registerBlockAttribute'](_0x23302c);_0x44512b['schema']['checkAttribute']('tableCell','tableCellType')&&_0x32da80['registerBlockAttribute']('tableCellType');}}class SuggestionsConversion extends _0x4fcb1b{['_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 _0x4342a6=this['editor'],_0x35d485=(_0x2b674b,_0x3f147e,_0x6e472e)=>{const {id:_0x193ebc,authorId:_0xe59ca6,type:_0x568721,subType:_0x4ec14d}=v(_0x2b674b['markerName']),_0xbf5170=['ck-suggestion-marker',this['_getClassName'](_0x568721,_0x4ec14d)];let _0x4a953d=0xbb8;return!_0x6e472e&&(this['_activeMarkers']['includes'](_0x2b674b['markerName'])&&(_0xbf5170['push']('ck-suggestion-marker--active'),_0x4a953d=0xbc2)),('deletion'==_0x568721&&(_0x4a953d+=0x5),{'classes':_0xbf5170,'attributes':{'data-suggestion':_0x193ebc,'data-author-id':_0xe59ca6},'priority':_0x4a953d});};_0x4342a6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x34c8c5,_0x4b3de9)=>_0x35d485(_0x34c8c5,0x0,!0x1)}),_0x4342a6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x20eaa0,_0x2881cb)=>_0x35d485(_0x20eaa0,0x0,!0x0)}),_0x4342a6['conversion']['for']('dataDowncast')['add'](_0x2104e1=>{_0x2104e1['on']('addMarker:suggestion',(_0x13e14a,_0x449ddf,_0x3f8fba)=>{if(!_0x3f8fba['options']['showSuggestionHighlights'])return;const _0xfe11aa=_0x449ddf['item'];if(!_0xfe11aa)return;const _0x4d4fbc=_0x3f8fba['mapper']['toViewElement'](_0xfe11aa);_0x4342a6['model']['schema']['isObject'](_0xfe11aa)&&_0x4d4fbc&&!_0x4d4fbc['getCustomProperty']('widget')&&_0x4d4fbc['is']('containerElement')&&_0x3422a6(_0x4d4fbc,_0x3f8fba['writer']);},{'priority':'high'});});const _0x16e683=(_0x3cf161,_0xda649c,_0x23715d,_0x246159,_0x210243)=>{if(_0x246159&&!_0x23715d['options']['showSuggestionHighlights'])return;if(!_0xda649c['item'])return;const {id:_0x26ea24,authorId:_0x209652,subType:_0x37c665}=v(_0xda649c['markerName']);if(_0x210243){const _0x24afec=_0x37c665['split']('|')[0x0];if(!this['isBlockAttribute'](_0x24afec))return;}if(_0xda649c['item']['is']('selection'))return void _0x23715d['consumable']['consume'](_0xda649c['item'],_0x3cf161['name']);const _0x1c239f=_0x23715d['mapper']['toViewElement'](_0xda649c['item']);if(_0xda649c['item']['is']('element')&&_0x4342a6['model']['schema']['isBlock'](_0xda649c['item'])&&!_0x1c239f['getCustomProperty']('addHighlight')){_0x23715d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1c239f),_0x23715d['writer']['setAttribute']('data-suggestion',_0x26ea24,_0x1c239f),_0x23715d['writer']['setAttribute']('data-author-id',_0x209652,_0x1c239f),_0x23715d['mapper']['bindElementToMarker'](_0x1c239f,_0xda649c['markerName']),_0x246159||(this['_activeMarkers']['includes'](_0xda649c['markerName'])?_0x23715d['writer']['addClass']('ck-suggestion-marker--active',_0x1c239f):_0x23715d['writer']['removeClass']('ck-suggestion-marker--active',_0x1c239f));for(const _0x44d0f4 of _0x4342a6['model']['createRangeIn'](_0xda649c['item'])['getItems']())_0x23715d['consumable']['consume'](_0x44d0f4,_0x3cf161['name']);_0x23715d['consumable']['consume'](_0xda649c['item'],_0x3cf161['name']);}},_0x141646=(_0x33a0bc,_0x20d884,_0x3128d3,_0x2ea6ad)=>{const _0x15da13=_0x3128d3['mapper']['markerNameToElements'](_0x20d884['markerName']);if(_0x15da13){if(_0x2ea6ad){const {subType:_0x5ca9d7}=v(_0x20d884['markerName']),_0x1d0cec=_0x5ca9d7['split']('|')[0x0];if(!this['isBlockAttribute'](_0x1d0cec))return;}for(const _0x98e8b8 of _0x15da13)_0x98e8b8['getCustomProperty']('addHighlight')||(_0x3128d3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x98e8b8),_0x3128d3['writer']['removeAttribute']('data-suggestion',_0x98e8b8),_0x3128d3['writer']['removeAttribute']('data-author-id',_0x98e8b8),_0x3128d3['mapper']['unbindElementFromMarkerName'](_0x98e8b8,_0x20d884['markerName']));}};_0x4342a6['conversion']['for']('editingDowncast')['add'](_0x574565=>{_0x574565['on']('addMarker:suggestion:formatBlock',(_0x3499ba,_0x3e2069,_0x45c97f)=>{_0x16e683(_0x3499ba,_0x3e2069,_0x45c97f,!0x1,!0x1);},{'priority':'high'});}),_0x4342a6['conversion']['for']('editingDowncast')['add'](_0x346eb3=>{_0x346eb3['on']('addMarker:suggestion:attribute',(_0x20a74b,_0x1c38f6,_0x4c22ba)=>{_0x16e683(_0x20a74b,_0x1c38f6,_0x4c22ba,!0x1,!0x0);},{'priority':'high'});}),_0x4342a6['conversion']['for']('editingDowncast')['add'](_0x3a9088=>{_0x3a9088['on']('removeMarker:suggestion:formatBlock',(_0x51f42c,_0x5bbe11,_0x28614e)=>{_0x141646(0x0,_0x5bbe11,_0x28614e,!0x1);},{'priority':'high'});}),_0x4342a6['conversion']['for']('editingDowncast')['add'](_0x2ebd3c=>{_0x2ebd3c['on']('removeMarker:suggestion:attribute',(_0x3ae4fa,_0x5ec34b,_0x55ab33)=>{_0x141646(0x0,_0x5ec34b,_0x55ab33,!0x0);},{'priority':'high'});}),_0x4342a6['conversion']['for']('dataDowncast')['add'](_0x5e3c04=>{_0x5e3c04['on']('addMarker:suggestion:formatBlock',(_0x36832d,_0x23667d,_0x47fde2)=>{_0x16e683(_0x36832d,_0x23667d,_0x47fde2,!0x0,!0x1);},{'priority':'highest'});}),_0x4342a6['conversion']['for']('dataDowncast')['add'](_0x36d9a0=>{_0x36d9a0['on']('addMarker:suggestion:attribute',(_0x45f286,_0x58f6e9,_0x4a4919)=>{_0x16e683(_0x45f286,_0x58f6e9,_0x4a4919,!0x0,!0x0);},{'priority':'highest'});}),_0x4342a6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x35ce71,_0x56a1a5)=>{if(_0x56a1a5['options']['showSuggestionHighlights']){const {id:_0x2711ac,authorId:_0x5bf42f}=v(_0x35ce71);return _0x35ce71['includes'](':split')||_0x35ce71['includes'](':merge')?{'group':'suggestion','name':_0x35ce71['substr'](0xb),'attributes':{'data-suggestion':_0x2711ac,'data-author-id':_0x5bf42f}}:null;}return{'group':'suggestion','name':_0x35ce71['substr'](0xb)};}});const _0x54f9ed=(_0x5732d3,_0x5849fc,_0x3eb9a4,_0x4d029e,_0x42f89c)=>{if(_0x4d029e&&!_0x3eb9a4['options']['showSuggestionHighlights'])return;if(!_0x3eb9a4['consumable']['test'](_0x5849fc['markerRange'],_0x5732d3['name']))return;const _0x2ba276=this['_activeMarkers'],_0x411dcc=_0x5849fc['markerRange']['getWalker'](),_0x102b0a=_0x5849fc['markerRange']['start'],_0x5e3687=_0x4342a6['model']['schema'];let _0xffe1be=null,_0x392f80=null,_0x4baac2=!0x1,_0x23b1fa=!0x1;for(const _0x1870d8 of _0x411dcc){const _0x3de3bd=_0x1870d8['item'];_0x4baac2=_0x4baac2||_0x5e3687['isContent'](_0x3de3bd);const _0x5e7f08=_0x3eb9a4['mapper']['toViewElement'](_0x3de3bd);if(_0x5e7f08&&_0x5e7f08['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1870d8['type']&&(_0x5e3687['isBlock'](_0x3de3bd)&&!_0x5e3687['isLimit'](_0x3de3bd)&&(_0x3de3bd['nextSibling']||_0x102b0a['isAtEnd']?_0xffe1be&&_0xffe1be['parent']==_0x3de3bd||(_0xffe1be=_0x3de3bd,_0x1ae02d(_0x1870d8['previousPosition']),_0x23b1fa=!0x0):_0x392f80=_0x392f80||_0x1870d8['previousPosition']));}function _0x1ae02d(_0xfd876a){const {id:_0x5aa43e,authorId:_0x4ae356}=v(_0x5849fc['markerName']),_0x2631b5=_0x3eb9a4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42f89c,'data-suggestion':_0x5aa43e,'data-author-id':_0x4ae356}),_0x51fffb=_0x3eb9a4['mapper']['toViewPosition'](_0xfd876a);!_0x4d029e&&_0x2ba276['includes'](_0x5849fc['markerName'])&&_0x3eb9a4['writer']['addClass']('ck-suggestion-marker--active',_0x2631b5),_0x3eb9a4['writer']['insert'](_0x51fffb,_0x2631b5),_0x3eb9a4['mapper']['bindElementToMarker'](_0x2631b5,_0x5849fc['markerName']);}_0x4baac2||_0x23b1fa||!_0x392f80||_0x1ae02d(_0x392f80);};_0x4342a6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e3667,_0x5429be,_0x312afc)=>{_0x54f9ed(_0x4e3667,_0x5429be,_0x312afc,!0x1,'merge');},{'priority':'high'}),_0x4342a6['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3818fc,_0x944f91,_0x42479e)=>{_0x54f9ed(_0x3818fc,_0x944f91,_0x42479e,!0x0,'merge');},{'priority':'high'}),_0x4342a6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x17c5a8,_0x5749e1,_0x4fa70a)=>{_0x54f9ed(_0x17c5a8,_0x5749e1,_0x4fa70a,!0x1,'split');},{'priority':'high'}),_0x4342a6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46edc6,_0x59b122,_0x3b04d6)=>{_0x54f9ed(_0x46edc6,_0x59b122,_0x3b04d6,!0x0,'split');},{'priority':'high'}),_0x4342a6['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x545f7a,_0x1e6ec6,_0x141a11)=>{((_0x489345,_0x37b0c2,_0x49893b)=>{const _0x13c43f=_0x49893b['mapper']['markerNameToElements'](_0x37b0c2['markerName']);if(_0x13c43f){for(const _0x4b16e1 of _0x13c43f)(_0x4b16e1['hasClass']('ck-suggestion-marker-split')||_0x4b16e1['hasClass']('ck-suggestion-marker-merge'))&&(_0x49893b['mapper']['unbindElementFromMarkerName'](_0x4b16e1,_0x37b0c2['markerName']),_0x49893b['writer']['remove'](_0x4b16e1));}})(0x0,_0x1e6ec6,_0x141a11);},{'priority':'high'});const _0x5bb660=(_0x3c9419,_0x57b150,_0x5ef38d,_0x3a3ae7)=>{if(_0x3a3ae7&&!_0x5ef38d['options']['showSuggestionHighlights'])return;const _0x3353fd=_0x57b150['markerRange']['start'],_0x201b6f=_0x57b150['markerRange']['end'],_0x5ef2ec=_0x4342a6['model']['schema'];if(!_0x3353fd['isTouching'](_0x201b6f)||!_0x3353fd['nodeAfter'])return;const _0x2b62b3=_0x3353fd['nodeAfter'];if(_0x5ef2ec['isBlock'](_0x2b62b3)&&!_0x5ef2ec['isLimit'](_0x2b62b3)&&_0x5ef2ec['checkChild'](_0x2b62b3,'$text')){if(!_0x5ef38d['consumable']['consume'](_0x57b150['markerRange'],_0x3c9419['name']))return;const {id:_0x3946a7,authorId:_0x2ffc49}=v(_0x57b150['markerName']),_0x1b336b=_0x5ef38d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3946a7,'data-author-id':_0x2ffc49}),_0x124f75=_0x5ef38d['mapper']['toViewPosition'](_0x201b6f);!_0x3a3ae7&&this['_activeMarkers']['includes'](_0x57b150['markerName'])&&_0x5ef38d['writer']['addClass']('ck-suggestion-marker--active',_0x1b336b),_0x5ef38d['writer']['insert'](_0x124f75,_0x1b336b),_0x5ef38d['mapper']['bindElementToMarker'](_0x1b336b,_0x57b150['markerName']);}};_0x4342a6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b097f,_0x260d6d,_0x37e961)=>{_0x5bb660(_0x1b097f,_0x260d6d,_0x37e961,!0x1);},{'priority':'high'}),_0x4342a6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1eb4eb,_0x93e015,_0x5e3912)=>{_0x5bb660(_0x1eb4eb,_0x93e015,_0x5e3912,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x2826bb,_0x1c2af6,_0x2c82b0)=>{this['_activeMarkers']=_0x2c82b0['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x279d53){this['_blockAttributeKeys']['add'](_0x279d53);}['registerInlineAttribute'](_0xcfe03b){this['_inlineAttributeKeys']['add'](_0xcfe03b);}['isBlockAttribute'](_0x462423){return this['_blockAttributeKeys']['has'](_0x462423);}['isInlineAttribute'](_0x429b79){return this['_inlineAttributeKeys']['has'](_0x429b79);}['isRegisteredAttribute'](_0x5a1fe3){return this['isInlineAttribute'](_0x5a1fe3)||this['isBlockAttribute'](_0x5a1fe3);}['_getClassName'](_0x231081,_0x13a0b6){if('attribute'!=_0x231081)return'ck-suggestion-marker-'+_0x231081;const _0x50608f=_0x13a0b6['split']('|')[0x0];return this['isBlockAttribute'](_0x50608f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function lt(_0x8f884a={},_0x17341c){if(void 0x0!==_0x8f884a['dateTimeFormat']&&'function'!=typeof _0x8f884a['dateTimeFormat'])throw new _0xfd82d4('invalid-date-time-format');return _0x4eac1f=>{const _0x17a177='string'==typeof _0x4eac1f?tt['fromISO'](_0x4eac1f):tt['fromJSDate'](_0x4eac1f),_0x3fe112=tt['now'](),_0x10858a=Math['floor'](_0x3fe112['diff'](_0x17a177,'days')['days']);return _0x8f884a['dateTimeFormat']?_0x8f884a['dateTimeFormat'](_0x17a177['toJSDate'](),_0x17341c&&_0x17341c['t']?_0x17341c['t']:void 0x0):0x0===_0x10858a?_0x17341c?U(_0x17341c,'Today')+'\x20'+_0x17a177['toFormat']('hh:mma'):_0x17a177['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x10858a?_0x17341c?U(_0x17341c,'Yesterday')+'\x20'+_0x17a177['toFormat']('hh:mma'):_0x17a177['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x10858a<0x7?_0x17341c?U(_0x17341c,'Last')+'\x20'+U(_0x17341c,_0x17a177['toFormat']('EEEE'))+'\x20'+_0x17a177['toFormat']('hh:mma'):_0x17a177['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x17a177['toFormat']('LL-dd-yyyy\x20hh:mma');};}function ut(_0x30b414,_0x2f3059){const _0x55e3e9=_0x30b414['mapper']['markerNameToElements'](_0x2f3059['name']);if(!_0x55e3e9)return null;const _0x5db6a5=_0x2f10d5(_0x55e3e9['values']());return _0x30b414['view']['domConverter']['mapViewToDom'](_0x5db6a5)||null;}function ht(_0x54df13,_0x354bb2){if(0x0===_0x354bb2['length'])return null;const _0x1d4a02=[],_0xa6ce4b=_0x54df13['view']['domConverter'];for(const _0xddd3b of _0x354bb2){const _0x5ccd91=_0x54df13['mapper']['markerNameToElements'](_0xddd3b['name']);if(!_0x5ccd91)continue;const _0x456b99=Array['from'](_0x5ccd91)['map'](_0x4d0688=>_0xa6ce4b['mapViewToDom'](_0x4d0688))['filter'](_0x572b02=>!!_0x572b02);_0x1d4a02['push'](..._0x456b99);}if(0x0===_0x1d4a02['length'])return null;const _0xde4652=[];for(const _0x1e5cf4 of _0x1d4a02){const _0x33a8c2=_0x1e5cf4['getClientRects']()['item'](0x0);_0x33a8c2&&_0xde4652['push']({'x':_0x33a8c2['x'],'y':_0x33a8c2['y'],'domElement':_0x1e5cf4});}return 0x0===_0xde4652['length']?null:(_0xde4652['sort']((_0x3cba23,_0x22f503)=>_0x3cba23['y']-_0x22f503['y']||_0x3cba23['x']-_0x22f503['x']),_0xde4652['map'](_0x1ed6fc=>_0x1ed6fc['domElement']));}function dt(_0x3d93bd,{limit:_0xa5ad26,suffix:_0x131db4='...'}){const _0x31c55e=[];let _0x57c746=0x0;const _0x55dd2c=_0x3d93bd['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x34469f=0x0;_0x34469f<_0x55dd2c['length'];_0x34469f++){let _0x46d227=_0x55dd2c[_0x34469f];const _0x444dbd=tn(_0x46d227);if(_0x46d227['startsWith']('<')){if(_0x57c746>=_0xa5ad26){const _0x4a4b1b=_0x46d227['match'](/[a-zA-Z]+/);if(!_0x4a4b1b){_0x55dd2c[_0x34469f]='';continue;}const _0x3d9fb2=_0x4a4b1b[0x0];_0x46d227['startsWith']('</')?(_0x31c55e['length']&&(_0x46d227=''),_0x31c55e['pop']()):(_0x31c55e['push'](_0x3d9fb2),_0x46d227='');}}else{if(_0x57c746>=_0xa5ad26)_0x46d227='';else{if(_0x57c746+_0x444dbd['length']>=_0xa5ad26){let _0x259385=_0xa5ad26-_0x57c746;if('\x20'===_0x444dbd[_0x259385-0x1])_0x259385--;else{const _0x1c9447=_0x444dbd['slice'](_0x259385)['indexOf']('\x20');-0x1!==_0x1c9447?_0x259385+=_0x1c9447:_0x259385=_0x46d227['length'];}_0x46d227=_0x444dbd['slice'](0x0,_0x259385)['join']('')+_0x131db4,_0x57c746=_0xa5ad26;}else _0x57c746+=_0x444dbd['length'];}}_0x55dd2c[_0x34469f]=_0x46d227;}return _0x55dd2c['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x696d80){const _0x4bef5f=[];for(let _0x5daa76=0x0;_0x5daa76<_0x696d80['length'];_0x5daa76++){const _0x3b43eb=_0x696d80['substring'](_0x5daa76)['match'](/^&[a-z0-9#]+;/);if(_0x3b43eb){const _0x4ade12=_0x3b43eb[0x0];_0x4bef5f['push'](_0x4ade12),_0x5daa76+=_0x4ade12['length']-0x1;}else _0x4bef5f['push'](_0x696d80[_0x5daa76]);}return _0x4bef5f;}class X extends _0x244cb3{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x222eee){super(_0x222eee);const _0x4e0049=this['bindTemplate'];this['set']('message',U(_0x222eee,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x222eee,U(_0x222eee,'Yes'),_0x2cc1c9,'submit'),this['cancelView']=this['_createButtonView'](_0x222eee,U(_0x222eee,'No'),_0x795f28,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x4b9fce(),this['keystrokes']=new _0x35ac81(),this['focusCycler']=new _0x581fcc({'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':_0x4e0049['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'](_0x597776,_0x2533d7,_0x4d46d7,_0x5e16a9){const _0x416aa4=new ts(_0x597776);return _0x416aa4['label']=_0x2533d7,_0x416aa4['icon']=_0x4d46d7,_0x416aa4['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x5e16a9}}),_0x416aa4['on']('execute',()=>this['fire'](_0x5e16a9)),_0x416aa4;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x14c983=>{this['keystrokes']['listenTo'](_0x14c983['element']),this['focusTracker']['add'](_0x14c983['element']);}),this['keystrokes']['set']('esc',(_0x53c203,_0x2a9774)=>{this['fire']('cancel'),_0x2a9774();});}}function gt(_0x4ed37b){return class _0x18f2bc extends _0x4ed37b{['showConfirm'](_0x8ab09e,_0x5072fc){return this['confirmView']=new X(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x8ab09e,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x5072fc['appendChild'](this['confirmView']['element']),_0x5072fc['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x391dc7,_0x86fda9,_0x2db109)=>{_0x2db109||_0x5072fc['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x4197d2=>this['confirmView']['on']('submit',_0x4197d2));}['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(_0x358c51){let _0x5994ab=0x0,_0x53af98=0x0;for(const _0x5dea6e of ne(_0x358c51))_0x5994ab=(_0x5994ab<<0x5)-_0x5994ab+_0x5dea6e,_0x5994ab&=_0x5994ab,[_0x5994ab,_0x53af98]=[_0x53af98,_0x5994ab];return ie(_0x5994ab)+ie(_0x53af98);}function*ee(_0x49a9ea){null==_0x49a9ea||null==_0x49a9ea?yield 0x12b9b0a1:0x0===_0x49a9ea||!0x1===_0x49a9ea?yield 0x0:0x1===_0x49a9ea||0x1==_0x49a9ea?yield 0x1:Array['isArray'](_0x49a9ea)?yield*function*(_0x5822d0){for(const _0x3a4a56 of _0x5822d0)yield*ee(_0x3a4a56);}(_0x49a9ea):'object'==typeof _0x49a9ea?yield*ne(_0x49a9ea):'string'==typeof _0x49a9ea?yield*oe(_0x49a9ea):'number'==typeof _0x49a9ea&&(yield _0x49a9ea);}function*ne(_0x2b5a3f){if(yield te('{'),_0x2b5a3f){const _0x50f18f=Object['keys'](_0x2b5a3f)['sort']();for(const _0x4c6df4 of _0x50f18f){yield*oe(_0x4c6df4),yield te(':');const _0x1db309=_0x2b5a3f[_0x4c6df4];yield*ee(_0x1db309);}}yield te('}');}function*oe(_0x2eb7c7){yield te('\x22');for(const _0x225ca0 of _0x2eb7c7)yield te(_0x225ca0);yield te('\x22');}function te(_0x2cd9f6){return _0x2cd9f6['charCodeAt'](0x0);}function ie(_0x2f8d3d){return(_0x2f8d3d*=Math['sign'](_0x2f8d3d))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x16a9ee,_0x773949,_0x4e8969,_0x4ce93c=[]){const _0x17c683='string'==typeof _0x16a9ee?_0x4e8969['get'](_0x16a9ee)['constructor']:_0x16a9ee['prototype']['constructor'];if(_0x773949['has'](_0x17c683))return _0x773949['get'](_0x17c683);_0x773949['set'](_0x17c683,!0x0);const _0x57d9dd=[...et,..._0x4ce93c]['map'](_0x528020=>{if(_0x4e8969['has'](_0x528020))return _0x4e8969['get'](_0x528020)['constructor'];})['filter'](_0x1037e2=>_0x1037e2);if(_0x17c683&&_0x57d9dd['includes'](_0x17c683))return _0x773949['set'](_0x17c683,!0x1),!0x1;if(!_0x17c683['requires'])return _0x773949['set'](_0x17c683,!0x0),!0x0;const _0x7a2cef=_0x17c683['requires']['every'](_0x3ea6a0=>ot(_0x3ea6a0,_0x773949,_0x4e8969,_0x4ce93c));return _0x773949['set'](_0x17c683,_0x7a2cef),_0x7a2cef;}function ft(_0x4a87e4,_0x5f0ebe){const _0xeb8378={};for(const _0x4873ff of _0x4a87e4['config']['names']())nt['includes'](_0x4873ff)||(_0xeb8378[_0x4873ff]=_0x4a87e4['config']['get'](_0x4873ff));const _0x2b94c9=_0xeb8378['plugins']||[],_0x21b89c=_0x4a87e4['constructor']['builtinPlugins']||[],_0x46a2ec=_0x2b94c9['length']?_0x2b94c9:_0x21b89c,_0x25a1dd=_0xeb8378['extraPlugins']||[];delete _0xeb8378['extraPlugins'];const _0x44368a=_0xeb8378['removePlugins']||[];delete _0xeb8378['removePlugins'];const _0x10ccef=_0x4a87e4['_context']['config']['get']('plugins')||[],_0x2cdc9e=_0x46a2ec['concat'](_0x25a1dd)['concat'](_0x10ccef)['map'](_0x3f90b3=>'string'==typeof _0x3f90b3?_0x21b89c['find'](_0x582e70=>_0x582e70['pluginName']==_0x3f90b3):_0x3f90b3)['filter'](_0x38df5f=>!_0x44368a['includes'](_0x38df5f)&&!_0x44368a['includes'](_0x38df5f['pluginName'])),_0x5b72ba=Array['from'](new Set(_0x2cdc9e)),_0x5f17b8=new Map();return _0xeb8378['plugins']=_0x5b72ba['filter'](_0x20e56f=>ot(_0x20e56f,_0x5f17b8,_0x4a87e4['plugins'],_0x5f0ebe)),_0xeb8378;}function mt(_0x2b7a47,_0x5d966f){const _0x19667c=[];_0x2b7a47['document']['selection']['on']('change:range',()=>{const _0x5b5de5=function(_0x9fa24d,_0x3838c6){const _0x3d2711=[];for(const _0x26fa71 of _0x9fa24d['markers']){const _0x4e5f37=_0x26fa71['getRange']();(_0x4e5f37['containsPosition'](_0x3838c6)||_0x4e5f37['start']['isEqual'](_0x3838c6)||_0x4e5f37['end']['isEqual'](_0x3838c6))&&_0x3d2711['push'](_0x26fa71);}return _0x3d2711;}(_0x2b7a47,_0x2b7a47['document']['selection']['focus']),_0x56737d=[],_0x1c0c17=[],_0x3732d6=[];for(const _0x7fbd7b of _0x19667c)_0x5b5de5['includes'](_0x7fbd7b)||_0x56737d['push'](_0x7fbd7b);for(const _0x4258c8 of _0x5b5de5)_0x19667c['includes'](_0x4258c8)||_0x1c0c17['push'](_0x4258c8),_0x3732d6['push'](_0x4258c8);(_0x56737d['length']||_0x1c0c17['length'])&&_0x5d966f({'left':_0x56737d,'entered':_0x1c0c17}),_0x19667c['length']=0x0,_0x19667c['push'](..._0x3732d6);});}const kt='Ctrl+Shift+E';function pt(_0x365649,_0x4be0f1){const _0x505857=_0x365649['element'];_0x365649['keystrokes']['listenTo'](_0x505857);for(const _0x28b6f6 of _0x4be0f1)ro(_0x365649,_0x28b6f6);_0x4be0f1['on']('change',(_0x34ed16,_0x2f473c)=>{for(const _0x3c64e0 of _0x2f473c['removed'])to(_0x365649,_0x3c64e0);for(const _0x3a3a5c of Array['from'](_0x2f473c['added'])['reverse']())ro(_0x365649,_0x3a3a5c);}),_0x365649['keystrokes']['set']('enter',(_0x301f3f,_0xb36355)=>{_0x505857===_0x301f3f['target']&&(_0x365649['focusCycler']['focusFirst'](),_0xb36355());},{'filter':_0x21b3f1=>_0x21b3f1['target']===_0x505857}),_0x365649['keystrokes']['set']('esc',(_0x4ed621,_0x40ec4d)=>{_0x505857!==_0x4ed621['target']?_0x365649['focus']():_0x365649['fire']('escape'),_0x40ec4d();}),_0x365649['keystrokes']['set']('arrowdown',(_0x271d33,_0x499201)=>{_0x505857===_0x271d33['target']&&(_0x365649['fire']('arrowdown'),_0x499201());}),_0x365649['keystrokes']['set']('arrowup',(_0x1dad82,_0x4a0da4)=>{_0x505857===_0x1dad82['target']&&(_0x365649['fire']('arrowup'),_0x4a0da4());});}function ro(_0x189122,_0x2ca032){_0x2ca032['isRendered']&&(_0x189122['focusTracker']['add'](_0x2ca032['element']),_0x189122['keystrokes']['listenTo'](_0x2ca032['element']),_0x50f849(_0x2ca032)&&function(_0x4f0be3,_0x3f1bc0){const _0x405240=_0x4f0be3['actions'],_0x6808a=_0x3f1bc0['actions'];for(const _0x4f31df of Object['keys'](_0x405240))if(_0x4f31df in _0x6808a&&_0x405240[_0x4f31df]!==_0x6808a[_0x4f31df])return!0x1;return!0x0;}(_0x189122['focusCycler'],_0x2ca032['focusCycler'])&&_0x189122['focusCycler']['chain'](_0x2ca032['focusCycler']));}function to(_0x387311,_0x28de7a){_0x387311['focusTracker']['remove'](_0x28de7a['element']),_0x387311['keystrokes']['stopListening'](_0x28de7a['element']),_0x50f849(_0x28de7a)&&_0x387311['focusCycler']['unchain'](_0x28de7a['focusCycler']);}const yt='$elementId',vt='data-id';class DocumentCompare extends _0xe601fc{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x2cdd1e?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x108944,_0x65170b)=>{_0x65170b['on']('ready',()=>{this['_integrateEditor'](_0x65170b);});});}get['editor'](){if(this['context']instanceof _0x2cdd1e)return this['context'];{const _0xd7f13f=this['context']['editors']['first'];if(!_0xd7f13f)throw new _0xfd82d4('documentcompare-no-editor',this);return _0xd7f13f;}}['getDiff'](_0xdd9688,_0x15bc18,_0x5dd22e={'anchor':'main','markDeletions':!0x1}){let _0x379427,_0x53b725;const _0x4d82ef=this['editor'];if('string'==typeof _0x5dd22e['anchor']){const _0x5eaae7=_0x4d82ef['model']['document']['getRoot'](_0x5dd22e['anchor']);if(!_0x5eaae7)throw new _0xfd82d4('documentcompare-compare-no-root',this,{'anchor':_0x5dd22e['anchor']});_0x379427=_0x5eaae7,_0x53b725=_0x4d82ef['model']['createPositionAt'](_0x5eaae7,0x0);}else _0x379427=_0x5dd22e['anchor']['clone'](),_0x53b725=_0x5dd22e['anchor']['clone']();const _0x397d50=_0x4d82ef['data']['parse'](_0xdd9688,_0x379427),_0x1bc86a=_0x4d82ef['data']['parse'](_0x15bc18,_0x379427);return new DocumentDiff(_0x397d50,_0x1bc86a,_0x4d82ef,{'anchor':_0x53b725,'markDeletions':_0x5dd22e['markDeletions']});}['isMarkedRemoveOperation'](_0x7c6be){return'marker'==_0x7c6be['type']&&_0x7c6be['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x4d0360){_0x4d0360['conversion']['for']('upcast')['add'](_0x256901=>{_0x256901['on']('element',(_0x5bc762,_0x245f1b,_0x4f01f6)=>{if(_0x245f1b['modelRange'])for(const _0x3647ba of _0x245f1b['modelRange']['getItems']({'shallow':!0x0})){if(_0x3647ba['is']('$textProxy'))continue;const _0x881f84=_0x245f1b['viewItem']['getAttribute'](vt);_0x881f84&&_0x4f01f6['writer']['setAttribute'](yt,_0x881f84,_0x3647ba);}},{'priority':'lowest'});}),_0x4d0360['model']['schema']['addAttributeCheck'](()=>!0x0,yt);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x1e3b3e,_0x24fb96,_0x1eb38e,_0x213c94){this['_editor']=_0x1eb38e,this['_markDeletions']=!!_0x213c94['markDeletions'],this['_anchor']=_0x213c94['anchor'];const _0x3a432d=this['_tokenizeModel'](_0x1e3b3e),_0x4e8124=this['_tokenizeModel'](_0x24fb96);this['_diffItems']=this['_diffModelTokens'](_0x3a432d,_0x4e8124),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x1e3b3e['markers'],_0x24fb96['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0xe64255=this['_editor']['model']['document'],_0x551290=[];let _0x2537d0=_0xe64255['version'];for(const _0x5deb5f of this['_operationsData'])switch(_0x5deb5f['type']){case'attribute':{const _0x27d0d3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5deb5f['path']),_0x509294=_0x27d0d3['getShiftedBy'](_0x5deb5f['howMany']),_0x43f597=new _0xb2175(_0x27d0d3,_0x509294),_0x386d47=JSON['parse'](_0x5deb5f['oldValue']),_0x50cdbc=JSON['parse'](_0x5deb5f['newValue']);_0x551290['push'](new _0x2b3642(_0x43f597,_0x5deb5f['key'],_0x386d47,_0x50cdbc,_0x2537d0++));break;}case'insert':{const _0x4cfda6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5deb5f['path']),_0x5de7cd=this['_makeModelFromTokens'](_0x5deb5f['tokens']);_0x551290['push'](new _0xadc4f8(_0x4cfda6,_0x5de7cd,_0x2537d0++));break;}case'remove':{const _0x21109d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5deb5f['path']),_0x454268=new _0x5b8971(_0xe64255['graveyard'],[0x0]);_0x551290['push'](new _0x2d1c40(_0x21109d,_0x5deb5f['howMany'],_0x454268,_0x2537d0++));break;}case'rename':{const _0x107d22=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5deb5f['path']);_0x551290['push'](new _0x2fc465(_0x107d22,_0x5deb5f['oldName'],_0x5deb5f['newName'],_0x2537d0++));break;}case'split':{const _0x2a12f7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5deb5f['path']),_0x45fe06=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5deb5f['path']['slice'](0x0,-0x1));_0x45fe06['offset']++,_0x551290['push'](new _0x375842(_0x2a12f7,Number['NEGATIVE_INFINITY'],_0x45fe06,null,_0x2537d0++));break;}case'merge':{const _0x1217a6=_0x5deb5f['path']['slice'](),_0x13d8d2=_0x1217a6['slice'](0x0,-0x1);_0x13d8d2[_0x13d8d2['length']-0x1]++,_0x13d8d2['push'](0x0);const _0x2462d0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x13d8d2),_0x595b49=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1217a6),_0x46507a=new _0x5b8971(_0xe64255['graveyard'],[0x0]);_0x551290['push'](new _0x8008f4(_0x2462d0,Number['NEGATIVE_INFINITY'],_0x595b49,_0x46507a,_0x2537d0++));break;}case'marker':case'markedRemove':{let _0x3de55f=null;if(_0x5deb5f['range']){const _0x23e411=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5deb5f['range']['start']),_0x2edee5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5deb5f['range']['end']);_0x3de55f=new _0xb2175(_0x23e411,_0x2edee5);}const _0x45ea57='marker'==_0x5deb5f['type']?_0x5deb5f['name']:'$markedRemove:'+_0x404fec();_0x551290['push'](new _0x52a7b2(_0x45ea57,null,_0x3de55f,_0xe64255['model']['markers'],!0x0,_0x2537d0++));break;}case'unwrap':{const _0x557569=_0x5deb5f['path']['slice']();_0x557569['push'](0x0);const _0x2fdb6e=_0x5deb5f['path']['slice'](),_0x4b7eef=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x557569),_0xec111d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2fdb6e),_0x45e4cb=new _0x5b8971(_0xe64255['graveyard'],[0x0]);_0x551290['push'](new _0x2d1c40(_0x4b7eef,_0x5deb5f['howMany'],_0xec111d,_0x2537d0++)),_0x551290['push'](new _0x2d1c40(_0xec111d['getShiftedBy'](_0x5deb5f['howMany']),0x1,_0x45e4cb,_0x2537d0++));break;}case'wrap':{const _0xd7f150=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5deb5f['range']['start']),_0x268920=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5deb5f['range']['end']),_0x86b62=_0x5deb5f['token']['element']['_clone'](!0x1),_0x1db3e8=_0x5deb5f['range']['end']['slice']();_0x1db3e8['push'](0x0);const _0x3d4cfc=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1db3e8);_0x551290['push'](new _0xadc4f8(_0x268920,_0x86b62,_0x2537d0++)),_0x551290['push'](new _0x2d1c40(_0xd7f150,_0x268920['offset']-_0xd7f150['offset'],_0x3d4cfc,_0x2537d0++));break;}}return _0x551290;}['_tokenizeModel'](_0x128493){const _0x5bbc27=[],_0x57b65b=_0xb2175['_createIn'](_0x128493),_0xb5d000=new _0x380201({'boundaries':_0x57b65b});let _0x20f5dc='',_0x3a825e=null;const _0xeed977=[''],_0x4d33c1=new Map();for(const _0x323bf0 of _0xb5d000)if('elementStart'==_0x323bf0['type']||'elementEnd'==_0x323bf0['type']){let _0x3c7f49=_0xeed977[0x0];''!==_0x20f5dc&&(_0x5bbc27['push'](...this['_makeTokensFromTextByWords'](_0x20f5dc,_0x3a825e,_0x3c7f49)),_0x20f5dc='');const _0x43bb0c=_0x323bf0['item'];let _0x1f994d;_0x43bb0c['getAttribute'](yt)?_0x1f994d=_0x43bb0c['getAttribute'](yt):'elementStart'==_0x323bf0['type']?(_0x1f994d=_(_0x43bb0c),_0x4d33c1['set'](_0x43bb0c,_0x1f994d)):_0x1f994d=_0x4d33c1['get'](_0x43bb0c);const _0x5eb3e2=this['_getElementCategory'](_0x43bb0c);'solid'==_0x5eb3e2&&('elementStart'==_0x323bf0['type']?(_0x3c7f49=_0x1f994d,_0xeed977['unshift'](_0x3c7f49)):_0xeed977['shift']());const _0x8fe799={'type':'element','element':_0x43bb0c,'elementId':_0x1f994d,'category':_0x5eb3e2,'isStart':'elementStart'==_0x323bf0['type'],'limitId':_0x3c7f49};_0x5bbc27['push'](_0x8fe799);}else''==_0x20f5dc&&(_0x3a825e=_0x323bf0['previousPosition']['clone']()),_0x20f5dc+=_0x323bf0['item']['data'];return''!==_0x20f5dc&&_0x5bbc27['push'](...this['_makeTokensFromTextByWords'](_0x20f5dc,_0x3a825e,_0xeed977[0x0])),_0x5bbc27;}['_makeTokensFromTextByWords'](_0x36f96f,_0x4bb91c,_0x372f0a){const _0x5715ce=_0x36f96f['matchAll'](/(\s)/g),_0x1b71ad=Array['from'](_0x5715ce)['map'](_0x3e20b4=>_0x3e20b4['index']);_0x1b71ad['push'](_0x36f96f['length']),0x0==_0x1b71ad[0x0]&&_0x1b71ad['shift']();const _0x18ffbf=[],_0x30c635=_0x4bb91c['parent'];let _0x1afe17=0x0,_0x24ed06=_0x4bb91c['offset'];for(let _0x53c3eb=0x0;_0x53c3eb<_0x1b71ad['length'];_0x53c3eb++)_0x18ffbf['push']({'type':'text','data':_0x36f96f['slice'](_0x1afe17,_0x1b71ad[_0x53c3eb]),'parent':_0x30c635,'offset':_0x24ed06,'limitId':_0x372f0a}),_0x1afe17=_0x1b71ad[_0x53c3eb],_0x24ed06=_0x4bb91c['offset']+_0x1b71ad[_0x53c3eb];return _0x18ffbf;}['_getElementCategory'](_0x37810e){const _0x55ee80=this['_editor']['model']['schema'];return _0x55ee80['isLimit'](_0x37810e)||_0x55ee80['isContent'](_0x37810e)||_0x55ee80['isInline'](_0x37810e)?'solid':_0x55ee80['isBlock'](_0x37810e)?'block':'container';}['_diffModelTokens'](_0xdd2b01,_0x3ce858){const _0x10656c=_0x11a034(_0xdd2b01,_0x3ce858,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x10656c);const _0x58968a=_0x10656c['flatMap'](_0xfe2c68=>{const _0x410bf8=_0xfe2c68['added']?'added':_0xfe2c68['removed']?'removed':'unchanged';return _0xfe2c68['value']['map'](_0x352816=>({'token':_0x352816,'change':_0x410bf8}));});let _0x838712=0x0;for(const _0x5f2fa0 of _0x58968a)'added'!=_0x5f2fa0['change']&&('unchanged'==_0x5f2fa0['change']&&(_0x5f2fa0['before']=_0xdd2b01[_0x838712]),_0x838712++);return _0x58968a;}['_handleUnclosedBlockOpeningTags'](_0x99dcab){for(let _0x5870af=0x0;_0x5870af<_0x99dcab['length']-0x1;_0x5870af++)if(_0x99dcab[_0x5870af]['removed']&&_0x99dcab[_0x5870af+0x1]['added']){const _0xb3bb7d=this['_findUnclosedBlockOpeningToken'](_0x99dcab[_0x5870af]['value']);if(null!==_0xb3bb7d){const _0x202f79=this['_findUnclosedBlockOpeningToken'](_0x99dcab[_0x5870af+0x1]['value']),_0x3d9dac=_0x99dcab[_0x5870af]['value']['splice'](_0xb3bb7d),_0x17064d=_0x99dcab[_0x5870af+0x1]['value']['splice'](_0x202f79),_0x5da955=[_0x17064d['shift']()];_0x3d9dac['shift']();const _0xfca07={'value':_0x3d9dac,'removed':!0x0},_0x21e4a1={'value':_0x17064d,'added':!0x0},_0x3a62cd={'value':_0x5da955};_0x99dcab['splice'](_0x5870af+0x2,0x0,_0x3a62cd,_0xfca07,_0x21e4a1);}}}['_findUnclosedBlockOpeningToken'](_0x484e43){let _0x516ecd=0x0,_0x3ef5af=-0x1;for(let _0xcef8ae=0x0;_0xcef8ae<_0x484e43['length'];_0xcef8ae++){const _0x2b2e48=_0x484e43[_0xcef8ae];'element'==_0x2b2e48['type']&&'block'==_0x2b2e48['category']&&(_0x516ecd+=_0x2b2e48['isStart']?0x1:-0x1,_0x2b2e48['isStart']&&(_0x3ef5af=_0xcef8ae));}return 0x0===_0x516ecd?null:_0x3ef5af;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xd9704a=0x0;_0xd9704a<this['_diffItems']['length'];_0xd9704a++){const _0x2c2639=this['_diffItems'][_0xd9704a]['change'],_0x442a2b=[];_0x442a2b['push'](this['_diffItems'][_0xd9704a]);let _0x3af58f=_0xd9704a+0x1;for(;this['_diffItems'][_0x3af58f]&&this['_diffItems'][_0x3af58f]['change']==_0x2c2639;)_0x442a2b['push'](this['_diffItems'][_0x3af58f]),_0x3af58f++,_0xd9704a++;const _0x2e1783=_0x442a2b['map'](_0x262242=>_0x262242['token']);if('unchanged'==_0x2c2639)_0x442a2b['map'](_0x1d94d4=>_0x1d94d4['before'])['forEach'](_0x459d1c=>this['_traverseOverItem'](_0x459d1c));else{if('removed'==_0x2c2639){if(this['_markDeletions']){const _0xa5bf30=this['_path']['slice']();_0x2e1783['forEach'](_0x68bfdf=>this['_traverseOverItem'](_0x68bfdf));const _0xa9673e=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0xa5bf30,'end':_0xa9673e}});}else this['_handleChanged'](_0x2e1783,!0x0,this['_path']['slice']());}else{const _0x1dfb00=_0x2e1783['filter'](_0x244c70=>'element'!=_0x244c70['type']||'container'!=_0x244c70['category']);this['_handleChanged'](_0x1dfb00,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x3339aa=0x0;_0x3339aa<this['_diffItems']['length'];_0x3339aa++){const _0x166479=this['_diffItems'][_0x3339aa]['change'],_0x2065c1=[];_0x2065c1['push'](this['_diffItems'][_0x3339aa]);let _0x3fd9b1=_0x3339aa+0x1;for(;this['_diffItems'][_0x3fd9b1]&&this['_diffItems'][_0x3fd9b1]['change']==_0x166479;)_0x2065c1['push'](this['_diffItems'][_0x3fd9b1]),_0x3fd9b1++,_0x3339aa++;const _0x514763=_0x2065c1['map'](_0x3538cc=>_0x3538cc['token']);if('unchanged'==_0x166479){const _0x4a9fa5=_0x2065c1['map'](_0x32c0b5=>_0x32c0b5['before']);this['_handleUnchanged'](_0x4a9fa5,_0x514763);}else('removed'!=_0x166479||this['_markDeletions'])&&_0x514763['forEach'](_0x3d8b55=>{this['_traverseOverItem'](_0x3d8b55);});}}['_calculateMarkersOperationsData'](_0x3d44a8,_0x4048bd){const _0x3dd160={};for(const [_0x2ad2e9]of _0x3d44a8)_0x3dd160[_0x2ad2e9]=null;for(const [_0x50cf52,_0x26f5eb]of _0x4048bd)_0x3dd160[_0x50cf52]=_0x26f5eb;const _0x5b7c71=Object['entries'](_0x3dd160)['map'](([_0xafc95c,_0x5ae238])=>({'type':'marker','name':_0xafc95c,'range':_0x5ae238?{'start':_0x5ae238['start']['path']['slice'](),'end':_0x5ae238['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x5b7c71);}['_handleUnwraps'](){const _0x378373=new Map(),_0x499036=[],_0x53b7c0=[0x0];let _0x1a61be=this['_diffItems']['length']+0x1;for(let _0x4167c2=this['_diffItems']['length']-0x1;_0x4167c2>=0x0;_0x4167c2--){const {token:_0x50c964,before:_0x27f4e9,change:_0x1d4b70}=this['_diffItems'][_0x4167c2];if('removed'!=_0x1d4b70&&(_0x1a61be=_0x4167c2),'element'!=_0x50c964['type']||'container'!=_0x50c964['category']||'added'==_0x1d4b70)continue;const _0x3c1349=_0x27f4e9?_0x27f4e9['element']:_0x50c964['element'];if(_0x50c964['isStart']){const _0x503ece=_0x378373['get'](_0x3c1349),_0x2e06b6=this['_diffItems'][_0x503ece];('removed'==_0x1d4b70||'removed'==_0x2e06b6['change'])&&_0x1a61be<_0x503ece&&(this['_operationsData']['push']({'type':'unwrap','path':_0x3c1349['getPath'](),'howMany':_0x3c1349['maxOffset']+_0x53b7c0[0x0]}),_0x53b7c0['shift'](),_0x53b7c0[0x0]+=_0x3c1349['maxOffset']-0x1,_0x499036['push'](_0x4167c2),_0x499036['push'](_0x503ece));}else _0x378373['set'](_0x3c1349,_0x4167c2),_0x53b7c0['unshift'](0x0);}_0x499036['sort']((_0x46989d,_0x7cf288)=>_0x7cf288-_0x46989d),_0x499036['forEach'](_0x965c81=>{const _0x59be23=this['_diffItems'][_0x965c81];'removed'==_0x59be23['change']?this['_diffItems']['splice'](_0x965c81,0x1):(_0x59be23['change']='added',delete _0x59be23['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5c7740=[];for(let _0x57e6fe=0x0;_0x57e6fe<this['_diffItems']['length'];_0x57e6fe++){const {change:_0x4fa45d,token:_0x2b2864}=this['_diffItems'][_0x57e6fe];if('added'==_0x4fa45d&&'element'==_0x2b2864['type']&&'container'==_0x2b2864['category']){if(_0x2b2864['isStart'])_0x5c7740['push'](this['_path']['slice']());else{if(!_0x2b2864['isStart']){const _0x49892b=_0x5c7740['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x49892b,'end':this['_path']['slice']()},'token':_0x2b2864}),this['_path'][this['_path']['length']-0x1]=_0x49892b[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x4fa45d||this['_markDeletions'])&&this['_traverseOverItem'](_0x2b2864);}}['_handleUnchanged'](_0x79950f,_0xef392b){for(let _0x38666=0x0;_0x38666<_0x79950f['length'];_0x38666++){const _0x47bdee=_0x79950f[_0x38666];if('element'==_0x47bdee['type']&&_0x47bdee['isStart']){const _0x3ee41b=_0xef392b[_0x38666];'block'==_0x47bdee['category']&&this['_handleElementRename'](_0x47bdee['element'],_0x3ee41b['element'],this['_path']),this['_handleElementAttributeChanges'](_0x47bdee['element'],_0x3ee41b['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x3ee41b);}else{if('element'!=_0x47bdee['type']||_0x47bdee['isStart']){if('text'==_0x47bdee['type']){const _0x36eea3=this['_path']['slice'](),_0x1ded73=[],_0x39ca13=[];for(;_0x79950f[_0x38666]&&'text'==_0x79950f[_0x38666]['type'];)_0x1ded73['push'](_0x79950f[_0x38666]),_0x39ca13['push'](_0xef392b[_0x38666]),this['_path'][this['_path']['length']-0x1]+=_0x79950f[_0x38666]['data']['length'],_0x38666++;_0x38666--,this['_handleTextAttributeChanges'](_0x1ded73,_0x39ca13,_0x36eea3);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x50fe7d,_0xf4d732,_0x40f453){const _0x32584f=[],_0x3d502b=[],_0x547462=_0x40f453['slice']();for(let _0x429271=0x0;_0x429271<_0x50fe7d['length'];_0x429271++){const _0x280b7b=_0x50fe7d[_0x429271],_0x3fc033=_0x40f453['slice']();if('element'!=_0x280b7b['type']||_0x280b7b['isStart'])'element'==_0x280b7b['type']&&_0x280b7b['isStart']?(_0x40f453['push'](0x0),_0xf4d732||this['_parents']['push'](_0x280b7b),_0x3d502b['push']({'before':_0x3fc033,'after':_0x40f453['slice'](),'index':_0x429271})):_0x40f453[_0x40f453['length']-0x1]+=_0x280b7b['data']['length'];else{let _0x48e164;_0x40f453['pop'](),_0x40f453[_0x40f453['length']-0x1]++,_0x48e164=_0xf4d732?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x3d502b['length']?_0x3d502b['pop']():_0x32584f['push']({'before':_0x3fc033,'after':_0x40f453['slice'](),'index':_0x429271,'related':_0x48e164});}}if(_0x3d502b['length']!==_0x32584f['length'])throw new _0xfd82d4('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x50fe7d,'isRemove':_0xf4d732});const _0x3f84c9=[{'after':_0x547462['slice'](),'index':-0x1},..._0x32584f,..._0x3d502b,{'before':_0x40f453['slice'](),'index':_0x50fe7d['length']}];if(_0xf4d732){for(let _0x41324b=_0x3f84c9['length']-0x1;_0x41324b>=0x1;_0x41324b--){const _0x3cfa3f=_0x3f84c9[_0x41324b-0x1]['after'],_0x35d8ec=_0x3f84c9[_0x41324b]['before'],_0x47ffd5=_0x35d8ec[_0x35d8ec['length']-0x1]-_0x3cfa3f[_0x3cfa3f['length']-0x1];_0x47ffd5&&(this['_operationsData']['push']({'type':'remove','path':_0x3cfa3f,'howMany':_0x47ffd5}),_0x35d8ec[_0x35d8ec['length']-0x1]-=_0x47ffd5);}for(const {before:_0x47c351}of _0x32584f)this['_operationsData']['push']({'type':'merge','path':_0x47c351});}else for(let _0x309471=0x0;_0x309471<_0x3f84c9['length']-0x1;_0x309471++){const _0xf224c2=_0x3f84c9[_0x309471]['after'],_0x2bfa92=_0x3f84c9[_0x309471+0x1]['before'],_0x2046e8=_0x3f84c9[_0x309471]['index']+0x1,_0x31c5ed=_0x3f84c9[_0x309471+0x1]['index'];if(_0x2046e8!==_0x31c5ed&&this['_operationsData']['push']({'type':'insert','path':_0xf224c2,'tokens':_0x50fe7d['slice'](_0x2046e8,_0x31c5ed)}),_0x309471<_0x32584f['length']){this['_operationsData']['push']({'type':'split','path':_0x2bfa92});const _0x1e8739=_0x50fe7d[_0x3d502b[_0x3d502b['length']-0x1-_0x309471]['index']],_0x1ed4d6=_0x32584f[_0x309471]['after'],_0x2ab952=_0x32584f[_0x309471]['related']['element'];this['_handleElementRename'](_0x2ab952,_0x1e8739['element'],_0x1ed4d6),this['_handleElementAttributeChanges'](_0x2ab952,_0x1e8739['element'],_0x1ed4d6);}}}['_traverseOverItem'](_0x68e234){'element'==_0x68e234['type']&&_0x68e234['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x68e234)):'element'!=_0x68e234['type']||_0x68e234['isStart']?'text'==_0x68e234['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x68e234['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x5e6b0c,_0x38dd22,_0x15c087){_0x5e6b0c['name']!=_0x38dd22['name']&&this['_operationsData']['push']({'type':'rename','path':_0x15c087['slice'](),'oldName':_0x5e6b0c['name'],'newName':_0x38dd22['name']});}['_handleElementAttributeChanges'](_0x29e6f3,_0x5bd78a,_0x3be6ba){const _0x53c1a5=this['_getAttributeChanges'](_0x29e6f3['getAttributes'](),_0x5bd78a['getAttributes']());for(const _0x4e8724 in _0x53c1a5){const {oldValue:_0x505265,newValue:_0x5c54f9}=_0x53c1a5[_0x4e8724];this['_operationsData']['push']({'type':'attribute','path':_0x3be6ba['slice'](),'howMany':0x1,'key':_0x4e8724,'oldValue':_0x505265,'newValue':_0x5c54f9});}}['_handleTextAttributeChanges'](_0x3891f3,_0x50b14a,_0x3aa1de){const _0x41d7ee=this['_operationsData'],_0x10b1f7=_0x3891f3[0x0]['parent'],_0x1ea7fd=_0x3891f3[0x0]['offset'],_0x1eb1a8=_0x50b14a[0x0]['parent'],_0x30efdb=_0x50b14a[0x0]['offset'],_0x2d3391=_0x3891f3['reduce']((_0x4ca12d,_0x3ddf68)=>_0x4ca12d+_0x3ddf68['data']['length'],0x0),_0x87b241=this['_getAttrsForOffsets'](_0x10b1f7,_0x1ea7fd,_0x2d3391),_0xfa2c0f=this['_getAttrsForOffsets'](_0x1eb1a8,_0x30efdb,_0x2d3391),_0x590780={};for(let _0x52a7b7=0x0;_0x52a7b7<_0x2d3391;_0x52a7b7++){const _0x47161b=_0x87b241[_0x1ea7fd+_0x52a7b7],_0x180560=_0xfa2c0f[_0x30efdb+_0x52a7b7],_0x30034d=this['_getAttributeChanges'](_0x47161b,_0x180560);for(const _0x324dbb in _0x590780)_0x30034d[_0x324dbb]||_0x2be154(_0x324dbb);for(const _0x16b173 in _0x30034d){const {oldValue:_0x570bff,newValue:_0x4c2ac5}=_0x30034d[_0x16b173],_0x5c9e0e=_0x590780[_0x16b173];_0x5c9e0e?_0x5c9e0e['oldValue']==_0x570bff&&_0x5c9e0e['newValue']==_0x4c2ac5?_0x5c9e0e['length']++:(_0x2be154(_0x16b173),_0x590780[_0x16b173]={'oldValue':_0x570bff,'newValue':_0x4c2ac5,'start':_0x52a7b7,'length':0x1}):_0x590780[_0x16b173]={'oldValue':_0x570bff,'newValue':_0x4c2ac5,'start':_0x52a7b7,'length':0x1};}}for(const _0x1f817c in _0x590780)_0x2be154(_0x1f817c);function _0x2be154(_0x270863){const _0x52a69f=_0x590780[_0x270863],_0x598d30=_0x3aa1de['slice']();_0x598d30[_0x598d30['length']-0x1]+=_0x52a69f['start'],_0x41d7ee['push']({'type':'attribute','path':_0x598d30,'howMany':_0x52a69f['length'],'key':_0x270863,'oldValue':_0x52a69f['oldValue'],'newValue':_0x52a69f['newValue']}),delete _0x590780[_0x270863];}}['_getAttributeChanges'](_0xa067e1,_0xbf803a){const _0x3905d3={};for(const [_0x463064,_0x357ae3]of _0xa067e1)_0x3905d3[_0x463064]={'oldValue':JSON['stringify'](_0x357ae3),'newValue':'null'};for(const [_0x33098d,_0x423bcb]of _0xbf803a){const _0x4a8ce2=JSON['stringify'](_0x423bcb);_0x3905d3[_0x33098d]?_0x3905d3[_0x33098d]['oldValue']==_0x4a8ce2?delete _0x3905d3[_0x33098d]:_0x3905d3[_0x33098d]['newValue']=_0x4a8ce2:_0x3905d3[_0x33098d]={'oldValue':'null','newValue':_0x4a8ce2};}return delete _0x3905d3[yt],_0x3905d3;}['_getAttrsForOffsets'](_0x16a816,_0x46ce8c,_0x38d2a5){const _0x407300=new Array(_0x46ce8c+_0x38d2a5);let _0x39b7a1=_0x16a816['getChildAtOffset'](_0x46ce8c),_0x426306=_0x39b7a1['startOffset'];for(;_0x39b7a1&&_0x426306<_0x46ce8c+_0x38d2a5;){const _0x3bb5ac=Array['from'](_0x39b7a1['getAttributes']());_0x407300['fill'](_0x3bb5ac,_0x426306,_0x426306+_0x39b7a1['offsetSize']),_0x426306+=_0x39b7a1['offsetSize'],_0x39b7a1=_0x39b7a1['nextSibling'];}return _0x407300;}['_getPositionFromAnchorAndPath'](_0x33d020,_0x329d5f){const _0x131717=[..._0x33d020['path']['slice'](0x0,-0x1),_0x33d020['offset']+_0x329d5f[0x0],..._0x329d5f['slice'](0x1)];return new _0x5b8971(_0x33d020['root'],_0x131717);}['_makeModelFromTokens'](_0x486553){const _0x112d4a=[];let _0x1bfed1=null;for(const _0xfc755d of _0x486553)if('element'!=_0xfc755d['type']||_0xfc755d['isStart']||_0x1bfed1!=_0xfc755d['element']){if(!_0x1bfed1){if('text'==_0xfc755d['type']){const _0x3a0f19=_0x5b8971['_createAt'](_0xfc755d['parent'],_0xfc755d['offset']),_0x5c9e85=_0xb2175['_createFromPositionAndShift'](_0x3a0f19,_0xfc755d['data']['length']),_0x42a261=Array['from'](_0x5c9e85['getItems']())['map'](_0x5c61d9=>new _0x37bbe6(_0x5c61d9['data'],_0x5c61d9['getAttributes']()));_0x112d4a['push'](..._0x42a261);}else{_0x1bfed1=_0xfc755d['element'];const _0x3c3641=_0xfc755d['element']['_clone'](!0x0);_0x3c3641['_removeAttribute'](yt);for(const _0x440b6f of this['_editor']['model']['createRangeIn'](_0x3c3641)['getItems']())_0x440b6f['is']('element')&&_0x440b6f['_removeAttribute'](yt);_0x112d4a['push'](_0x3c3641);}}}else _0x1bfed1=null;return _0x112d4a;}}function g(_0x11a5df,_0x2efeed){return _0x11a5df['type']===_0x2efeed['type']&&(_0x11a5df['limitId']===_0x2efeed['limitId']&&('text'==_0x11a5df['type']?_0x11a5df['data']==_0x2efeed['data']:function(_0x43eaf4,_0x4c9861){if(_0x43eaf4['isStart']!=_0x4c9861['isStart'])return!0x1;if(_0x43eaf4['isStart']&&_0x43eaf4['elementId']!=_0x4c9861['elementId'])return!0x1;if(_0x43eaf4['category']!=_0x4c9861['category'])return!0x1;if('block'==_0x43eaf4['category'])return!0x0;if('container'==_0x43eaf4['category']&&_0x43eaf4['elementId']!=_0x4c9861['elementId'])return!0x1;return _0x43eaf4['element']['name']==_0x4c9861['element']['name'];}(_0x11a5df,_0x2efeed)));}function _(_0xdd9827){return k({'name':_0xdd9827['name'],...Object['fromEntries'](_0xdd9827['getAttributes']())});}export{AriaDescriptionView,gt as ConfirmMixin,yt as DATA_ID_MODEL_ATTRIBUTE,vt as DATA_ID_VIEW_ATTRIBUTE,DocumentCompare,kt as FOCUS_ANNOTATION_KEYSTROKE,LateFocusButtonView,LateFocusDropdownButtonView,C as Permissions,SuggestionsConversion,UserView,Users,at as fixElementSuggestionRange,ht as getAllMarkersDomElementsSorted,lt as getDateTimeFormatter,ut as getMarkerDomElement,k as hashObject,ft as sanitizeEditorConfig,pt as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,mt as surroundingMarkersDetector,dt as trimHtml};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
|
3
|
-
"version": "47.7.2
|
|
3
|
+
"version": "47.7.2",
|
|
4
4
|
"description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"type": "module",
|
|
33
33
|
"main": "src/index.js",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ckeditor/ckeditor5-engine": "47.7.2
|
|
36
|
-
"@ckeditor/ckeditor5-comments": "47.7.2
|
|
37
|
-
"@ckeditor/ckeditor5-core": "47.7.2
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "47.7.2
|
|
39
|
-
"@ckeditor/ckeditor5-link": "47.7.2
|
|
40
|
-
"@ckeditor/ckeditor5-list": "47.7.2
|
|
41
|
-
"@ckeditor/ckeditor5-theme-lark": "47.7.2
|
|
42
|
-
"@ckeditor/ckeditor5-track-changes": "47.7.2
|
|
43
|
-
"@ckeditor/ckeditor5-ui": "47.7.2
|
|
44
|
-
"@ckeditor/ckeditor5-utils": "47.7.2
|
|
45
|
-
"@ckeditor/ckeditor5-widget": "47.7.2
|
|
46
|
-
"ckeditor5": "47.7.2
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "47.7.2",
|
|
36
|
+
"@ckeditor/ckeditor5-comments": "47.7.2",
|
|
37
|
+
"@ckeditor/ckeditor5-core": "47.7.2",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "47.7.2",
|
|
39
|
+
"@ckeditor/ckeditor5-link": "47.7.2",
|
|
40
|
+
"@ckeditor/ckeditor5-list": "47.7.2",
|
|
41
|
+
"@ckeditor/ckeditor5-theme-lark": "47.7.2",
|
|
42
|
+
"@ckeditor/ckeditor5-track-changes": "47.7.2",
|
|
43
|
+
"@ckeditor/ckeditor5-ui": "47.7.2",
|
|
44
|
+
"@ckeditor/ckeditor5-utils": "47.7.2",
|
|
45
|
+
"@ckeditor/ckeditor5-widget": "47.7.2",
|
|
46
|
+
"ckeditor5": "47.7.2",
|
|
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
|
+
function _0x35c9(){const _0x408ccf=['SuggestionsConversion','669884kBjocX','594040JdlJYo','get','77PeOnaZ','alignment','584952RzZEiy','5202485KiavcH','3457961eQwzdw','12QjDYwu','2TNeaxU','268370MOOZXr','36QkGVNB','afterInit','plugins','152671OQTCaC','registerBlockAttribute','AlignmentEditing','12NoigeI','has','143FyZhrN','editor'];_0x35c9=function(){return _0x408ccf;};return _0x35c9();}const _0x5864d0=_0x3a80;(function(_0xf09fca,_0x375cb4){const _0x18022c=_0x3a80,_0x83a577=_0xf09fca();while(!![]){try{const _0x52b363=parseInt(_0x18022c(0x1f0))/0x1*(-parseInt(_0x18022c(0x1eb))/0x2)+parseInt(_0x18022c(0x1f3))/0x3*(parseInt(_0x18022c(0x1e2))/0x4)+-parseInt(_0x18022c(0x1e8))/0x5+parseInt(_0x18022c(0x1e7))/0x6*(parseInt(_0x18022c(0x1e5))/0x7)+-parseInt(_0x18022c(0x1e3))/0x8*(-parseInt(_0x18022c(0x1ed))/0x9)+parseInt(_0x18022c(0x1ec))/0xa*(-parseInt(_0x18022c(0x1f5))/0xb)+-parseInt(_0x18022c(0x1ea))/0xc*(-parseInt(_0x18022c(0x1e9))/0xd);if(_0x52b363===_0x375cb4)break;else _0x83a577['push'](_0x83a577['shift']());}catch(_0x441b56){_0x83a577['push'](_0x83a577['shift']());}}}(_0x35c9,0xba580));function _0x3a80(_0x307ba1,_0x39d365){const _0x35c964=_0x35c9();return _0x3a80=function(_0x3a8022,_0xb58b40){_0x3a8022=_0x3a8022-0x1e2;let _0x4a3649=_0x35c964[_0x3a8022];return _0x4a3649;},_0x3a80(_0x307ba1,_0x39d365);}import{Plugin as _0xc94e5f}from'ckeditor5/src/core.js';export class SuggestionsConversionAlignment extends _0xc94e5f{[_0x5864d0(0x1ee)](){const _0xa0df34=_0x5864d0,_0x974255=this[_0xa0df34(0x1f6)];if(!_0x974255[_0xa0df34(0x1ef)][_0xa0df34(0x1f4)](_0xa0df34(0x1f2)))return;_0x974255[_0xa0df34(0x1ef)][_0xa0df34(0x1e4)](_0xa0df34(0x1f7))[_0xa0df34(0x1f1)](_0xa0df34(0x1e6));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x44b098=_0x3dc8;(function(_0x5817ef,_0x488674){const _0x408f0a=_0x3dc8,_0x36ec3b=_0x5817ef();while(!![]){try{const _0xed56a6=parseInt(_0x408f0a(0x10e))/0x1+parseInt(_0x408f0a(0x119))/0x2*(-parseInt(_0x408f0a(0x10a))/0x3)+parseInt(_0x408f0a(0x112))/0x4+-parseInt(_0x408f0a(0x108))/0x5+-parseInt(_0x408f0a(0x10d))/0x6*(parseInt(_0x408f0a(0x107))/0x7)+-parseInt(_0x408f0a(0x116))/0x8+parseInt(_0x408f0a(0x11b))/0x9;if(_0xed56a6===_0x488674)break;else _0x36ec3b['push'](_0x36ec3b['shift']());}catch(_0x615ab0){_0x36ec3b['push'](_0x36ec3b['shift']());}}}(_0x5531,0x70419));function _0x5531(){const _0x131854=['63931gfLnQn','3634875EZEIJJ','BoldEditing','560847kxsnJH','afterInit','SuperscriptEditing','462jVPNrP','553618Xvezbd','has','plugins','registerInlineAttribute','2562360xFbTIv','UnderlineEditing','ItalicEditing','slice','2386736BCkPkq','toLowerCase','StrikethroughEditing','6TCdIcN','CodeEditing','13994982HJlTFh','editor','get','SubscriptEditing','SuggestionsConversion'];_0x5531=function(){return _0x131854;};return _0x5531();}import{Plugin as _0x417618}from'ckeditor5/src/core.js';const ii=[_0x44b098(0x109),_0x44b098(0x114),_0x44b098(0x113),_0x44b098(0x11a),_0x44b098(0x118),_0x44b098(0x11e),_0x44b098(0x10c)];function _0x3dc8(_0x112cbd,_0x519e57){const _0x553140=_0x5531();return _0x3dc8=function(_0x3dc80f,_0x5da43c){_0x3dc80f=_0x3dc80f-0x107;let _0x4c7469=_0x553140[_0x3dc80f];return _0x4c7469;},_0x3dc8(_0x112cbd,_0x519e57);}export class SuggestionsConversionBasicStyles extends _0x417618{[_0x44b098(0x10b)](){const _0x5cb252=_0x44b098,_0x3ff6c7=this[_0x5cb252(0x11c)],_0x94884=_0x3ff6c7[_0x5cb252(0x110)][_0x5cb252(0x11d)](_0x5cb252(0x11f));for(const _0x3ebf61 of ii){if(!_0x3ff6c7[_0x5cb252(0x110)][_0x5cb252(0x10f)](_0x3ebf61))continue;const _0x30a42c=_0x3ebf61[_0x5cb252(0x115)](0x0,-0x7)[_0x5cb252(0x117)]();_0x94884[_0x5cb252(0x111)](_0x30a42c);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x595868=_0x1511;function _0x29ce(){const _0x2c90fc=['376691kkJNAP','BookmarkEditing','12903QPGksi','868454KUcitO','has','editor','afterInit','2036kwvmaW','get','SuggestionsConversion','plugins','820bGhLkX','registerBlockAttribute','385677ONhwXl','30lrwiRK','2580RnZMOh','bookmarkId','588789dHRtGY','197370NOKheF','88iuGVzH'];_0x29ce=function(){return _0x2c90fc;};return _0x29ce();}(function(_0x31467f,_0x2a4169){const _0x89d2a0=_0x1511,_0x12d80b=_0x31467f();while(!![]){try{const _0x3550f8=parseInt(_0x89d2a0(0xeb))/0x1+parseInt(_0x89d2a0(0xdd))/0x2+parseInt(_0x89d2a0(0xe9))/0x3*(-parseInt(_0x89d2a0(0xe1))/0x4)+parseInt(_0x89d2a0(0xec))/0x5*(parseInt(_0x89d2a0(0xe8))/0x6)+-parseInt(_0x89d2a0(0xda))/0x7*(parseInt(_0x89d2a0(0xed))/0x8)+parseInt(_0x89d2a0(0xe7))/0x9+-parseInt(_0x89d2a0(0xe5))/0xa*(-parseInt(_0x89d2a0(0xdc))/0xb);if(_0x3550f8===_0x2a4169)break;else _0x12d80b['push'](_0x12d80b['shift']());}catch(_0x503e63){_0x12d80b['push'](_0x12d80b['shift']());}}}(_0x29ce,0x5080e));function _0x1511(_0xd39d63,_0x29ad54){const _0x29ce83=_0x29ce();return _0x1511=function(_0x151135,_0x4f61f0){_0x151135=_0x151135-0xda;let _0xf431e5=_0x29ce83[_0x151135];return _0xf431e5;},_0x1511(_0xd39d63,_0x29ad54);}import{Plugin as _0x4d3064}from'ckeditor5/src/core.js';export class SuggestionsConversionBookmark extends _0x4d3064{[_0x595868(0xe0)](){const _0x2df0b6=_0x595868,_0x27974f=this[_0x2df0b6(0xdf)],_0x418188=_0x27974f[_0x2df0b6(0xe4)][_0x2df0b6(0xe2)](_0x2df0b6(0xe3));_0x27974f[_0x2df0b6(0xe4)][_0x2df0b6(0xde)](_0x2df0b6(0xdb))&&_0x418188[_0x2df0b6(0xe6)](_0x2df0b6(0xea));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6e3ce5=_0x576b;(function(_0x2598e9,_0x11f41e){const _0x121844=_0x576b,_0x558a22=_0x2598e9();while(!![]){try{const _0x3f79af=-parseInt(_0x121844(0xdc))/0x1*(parseInt(_0x121844(0xd6))/0x2)+-parseInt(_0x121844(0xcb))/0x3+-parseInt(_0x121844(0xd7))/0x4+-parseInt(_0x121844(0xcf))/0x5*(parseInt(_0x121844(0xdf))/0x6)+parseInt(_0x121844(0xe0))/0x7+parseInt(_0x121844(0xd4))/0x8*(-parseInt(_0x121844(0xc9))/0x9)+parseInt(_0x121844(0xde))/0xa*(parseInt(_0x121844(0xd8))/0xb);if(_0x3f79af===_0x11f41e)break;else _0x558a22['push'](_0x558a22['shift']());}catch(_0x4bb10f){_0x558a22['push'](_0x558a22['shift']());}}}(_0x42a4,0xb2d0b));function _0x576b(_0x26a099,_0xe3c81e){const _0x42a400=_0x42a4();return _0x576b=function(_0x576b13,_0x41e385){_0x576b13=_0x576b13-0xc9;let _0x5d657e=_0x42a400[_0x576b13];return _0x5d657e;},_0x576b(_0x26a099,_0xe3c81e);}import{Plugin as _0x51d183}from'ckeditor5/src/core.js';function _0x42a4(){const _0x36621f=['fontBackgroundColor','has','afterInit','2099752OSyUlF','FontColorEditing','5594gCljjq','3339128jEQoYh','28021939ijtYYY','fontColor','fontSize','get','211RrONQX','editor','20rmoruX','10866vWQmuf','219695TuuBaO','plugins','FontSizeEditing','45vFdoFQ','FontBackgroundColorEditing','2367279dGSAxc','registerInlineAttribute','FontFamilyEditing','fontFamily','2395IClTPD','SuggestionsConversion'];_0x42a4=function(){return _0x36621f;};return _0x42a4();}const no=[{'pluginName':_0x6e3ce5(0xe2),'commandName':_0x6e3ce5(0xda)},{'pluginName':_0x6e3ce5(0xcd),'commandName':_0x6e3ce5(0xce)},{'pluginName':_0x6e3ce5(0xd5),'commandName':_0x6e3ce5(0xd9)},{'pluginName':_0x6e3ce5(0xca),'commandName':_0x6e3ce5(0xd1)}];export class SuggestionsConversionFont extends _0x51d183{[_0x6e3ce5(0xd3)](){const _0x24ae42=_0x6e3ce5,_0x348e5e=this[_0x24ae42(0xdd)][_0x24ae42(0xe1)][_0x24ae42(0xdb)](_0x24ae42(0xd0));for(const {pluginName:_0x557eb1,commandName:_0x470eab}of no)this[_0x24ae42(0xdd)][_0x24ae42(0xe1)][_0x24ae42(0xd2)](_0x557eb1)&&_0x348e5e[_0x24ae42(0xcc)](_0x470eab);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1693(){const _0x19cdc2=['5126992gRYQvf','376819dxzqzC','get','40PDimCs','footnotesListStart','196FUQcyF','plugins','SuggestionsConversion','registerBlockAttribute','5763771RLgDlu','6320935ryTOEW','afterInit','7tCGtvx','37428TsKQLO','FootnotesPropertiesEditing','817138McLmuL','footnotesListStyle','8060352NkHyBS','has'];_0x1693=function(){return _0x19cdc2;};return _0x1693();}function _0xd862(_0x13ac74,_0x40cafe){const _0x1693bb=_0x1693();return _0xd862=function(_0xd86237,_0xfa71b9){_0xd86237=_0xd86237-0x171;let _0x205d23=_0x1693bb[_0xd86237];return _0x205d23;},_0xd862(_0x13ac74,_0x40cafe);}const _0x5b0875=_0xd862;(function(_0xca954a,_0x31cea3){const _0x39ba21=_0xd862,_0x49194d=_0xca954a();while(!![]){try{const _0x444e0f=parseInt(_0x39ba21(0x17f))/0x1+parseInt(_0x39ba21(0x17a))/0x2+-parseInt(_0x39ba21(0x178))/0x3*(-parseInt(_0x39ba21(0x183))/0x4)+-parseInt(_0x39ba21(0x175))/0x5+parseInt(_0x39ba21(0x17c))/0x6*(-parseInt(_0x39ba21(0x177))/0x7)+-parseInt(_0x39ba21(0x17e))/0x8+parseInt(_0x39ba21(0x174))/0x9*(parseInt(_0x39ba21(0x181))/0xa);if(_0x444e0f===_0x31cea3)break;else _0x49194d['push'](_0x49194d['shift']());}catch(_0x2cdbf1){_0x49194d['push'](_0x49194d['shift']());}}}(_0x1693,0xad52f));import{Plugin as _0x40fb75}from'ckeditor5/src/core.js';export class SuggestionsConversionFootnotes extends _0x40fb75{[_0x5b0875(0x176)](){const _0x55664b=_0x5b0875,{editor:_0x2c5bf5}=this;if(!_0x2c5bf5[_0x55664b(0x171)][_0x55664b(0x17d)](_0x55664b(0x179)))return;const _0x153a66=_0x2c5bf5[_0x55664b(0x171)][_0x55664b(0x180)](_0x55664b(0x172));_0x153a66[_0x55664b(0x173)](_0x55664b(0x17b)),_0x153a66[_0x55664b(0x173)](_0x55664b(0x182));}}
|