@ckeditor/ckeditor5-collaboration-core 48.8.1-alpha.3 → 48.8.1-alpha.4
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/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x457ea2,Editor as _0x4fef2f,Plugin as _0x5df03c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x398820,Collection as _0x3efaa1,uid as _0x4c7fdb,toArray as _0x49242c,first as _0x5a94f4,FocusTracker as _0x53965e,KeystrokeHandler as _0x1530c5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x419a48,IconView as _0x4bc51c,ButtonView as _0xe6496c,DropdownButtonView as _0x1d5d84,FocusCycler as _0x4c79c1,isViewWithFocusCycler as _0x4da2d2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0xba78b1,IconCheck as _0x1e0f05,IconCancel as _0x223b22}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x298e2a,toWidget as _0x18ae6a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x439436}from'luxon';import{InsertOperation as _0x213791,MoveOperation as _0x251268,ModelPosition as _0x1dcc9f,ModelRange as _0x38d06d,MarkerOperation as _0x16644f,MergeOperation as _0x21f947,SplitOperation as _0x329678,RenameOperation as _0x4be650,AttributeOperation as _0x6e5aa6,ModelTreeWalker as _0x1cbe11,ModelText as _0x15387e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x32551e}from'diff';class Permissions extends _0x457ea2{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x9e2608,_0xbd1752){let _0x222d81;if(_0xbd1752||(_0xbd1752=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0xbd1752?_0x222d81=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x222d81=this['context']['editors']['find'](_0x3be1f7=>_0x3be1f7['config']['get']('collaboration.channelId')==_0xbd1752)),!_0x222d81)throw new _0x398820('permissions-set-permissions-invalid-channel-id',null);const _0x429e48=_0x222d81['plugins'],_0x27734c=_0x429e48['has']('CommentsRepository')?_0x429e48['get']('CommentsRepository'):void 0x0,_0x3f0408=_0x429e48['has']('CommentsOnly')&&_0x429e48['get']('CommentsOnly'),_0x38d0c1=_0x9e2608['includes']('document:write'),_0x35dc6d=_0x9e2608['includes']('comment:modify_all'),_0x3deae5=_0x9e2608['includes']('comment:admin'),_0x4a787c=_0x9e2608['includes']('comment:write'),_0x48ed0c=_0x4a787c||_0x3deae5,_0x4428a1=_0x48ed0c||_0x35dc6d,_0x31b0ca=_0x38d0c1||_0x48ed0c;(_0x3f0408&&(_0x3f0408['isEnabled']=!_0x38d0c1&&_0x4428a1),_0x222d81 instanceof _0x4fef2f)&&(!(_0x38d0c1||_0x4428a1&&_0x27734c)?_0x222d81['enableReadOnlyMode']('no-permissions'):_0x222d81['disableReadOnlyMode']('no-permissions'));if(_0x27734c){_0x27734c['setPermissions']({'admin':_0x3deae5,'modifyAll':_0x35dc6d,'write':_0x4a787c,'resolve':_0x31b0ca},_0xbd1752);const _0x304a31=_0x222d81 instanceof _0x4fef2f&&_0x222d81['commands']['get']('addCommentThread');_0x304a31&&(_0x48ed0c?_0x304a31['clearForceDisabled']('noPermissions'):_0x304a31['forceDisabled']('noPermissions'));}}}function B(_0x1de1e8,_0x2968e9){const t=_0x1de1e8['t'];switch(_0x2968e9){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 _0x457ea2{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Permissions];}constructor(_0x33ef2d){super(_0x33ef2d),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x3efaa1(),this['_locale']=_0x33ef2d['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:_0x242a96,name:_0x1f6086,..._0x59bca4}){if(!_0x242a96||'string'!=typeof _0x242a96)throw new _0x398820('users-add-invalid-id');if(this['users']['has'](_0x242a96))throw new _0x398820('users-add-duplicated-id',null,{'id':_0x242a96});const _0x25bdb6=this['context']['config']['get']('users.getInitialsCallback'),_0x606ada={..._0x59bca4,'id':_0x242a96,'name':N(this['_locale'],_0x1f6086),'color':this['_getNextColor']()};_0x606ada['name']=N(this['_locale'],_0x606ada['name']);const _0x3ca0b2=new User(_0x606ada,_0x25bdb6);return this['users']['add'](_0x3ca0b2),_0x3ca0b2;}['getUser'](_0x2b4c7f){return this['users']['get'](_0x2b4c7f);}['useAnonymousUser'](){const _0x4be853=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x4be853);}['defineMe'](_0x3c5677){if(this['_myId'])throw new _0x398820('users-me-already-defined',null);const _0x43e3a1=this['getUser'](_0x3c5677);if(!_0x43e3a1)throw new _0x398820('users-me-missing-user',null);this['_myId']=_0x3c5677,_0x43e3a1['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x21063e=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x21063e&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x3191c3=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3191c3,'name':B(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class User{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x3fe232,_0x2c2064){this['id']=_0x3fe232['id'],this['color']=_0x3fe232['color'],this['name']=_0x3fe232['name'],this['initials']=_0x2c2064?_0x2c2064(this['name']):this['_computeInitials'](),this['avatar']=_0x3fe232['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x165011=this['name']['split']('\x20')['filter'](_0x4e29bd=>/^[\p{Letter}]/u['test'](_0x4e29bd));return 0x1===_0x165011['length']?this['_getInitial'](_0x165011[0x0]):0x0===_0x165011['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x165011[0x0])+this['_getInitial'](_0x165011[_0x165011['length']-0x1]);}['_getInitial'](_0x5b4b94){return String['fromCodePoint'](_0x5b4b94['codePointAt'](0x0))['toUpperCase']();}}function N(_0x16e7ea,_0x48cc40=''){return''==(_0x48cc40=_0x48cc40['trim']())?B(_0x16e7ea,'Anonymous'):_0x48cc40;}class CollaborationUserColor{['_id'];constructor(_0x5ef810){this['_id']=_0x5ef810;}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'];}['getColorVariable'](){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}['getColorAlphaVariable'](){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}}class UserView extends _0x419a48{['name'];['notificationView'];constructor(_0x37cfac,_0x1beabd,_0x5e845f){super(_0x37cfac),this['name']=_0x1beabd['name'],this['notificationView']=null;const _0x3d399e=['ck','ck-user'],_0x2fa2af=['ck','ck-user__img'];if(_0x1beabd['isAnonymous']&&_0x2fa2af['push']('ck-user__anonymous'),!_0x1beabd['isAnonymous']&&_0x1beabd['isMe']&&_0x3d399e['push']('ck-user_me'),_0x1beabd['avatar']&&_0x2fa2af['push']('ck-user__avatar'),_0x5e845f){const _0x46e921=new _0x4bc51c();_0x46e921['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x46e921['content']=_0xba78b1,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x5e845f},'children':[_0x46e921]};}const _0x56d268=[{'tag':'div','attributes':{'class':_0x2fa2af,'style':{'background-image':_0x1beabd['avatar']?'url(\x27'+_0x1beabd['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x1beabd['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x1beabd['name']},'children':[{'text':_0x1beabd['initials']}]}];this['notificationView']&&_0x56d268['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x3d399e,'data-user-id':_0x1beabd['id']},'children':_0x56d268});}}class AriaDescriptionView extends _0x419a48{['id'];constructor(_0x296ae8,_0x11fe5b){super(_0x296ae8),this['id']='ck-aria-description-'+_0x4c7fdb(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x11fe5b}]});}}class LateFocusButtonView extends _0xe6496c{['render'](){super['render'](),U(this);}}class LateFocusDropdownButtonView extends _0x1d5d84{['render'](){super['render'](),U(this);}}function U(_0x5c474b){_0x5c474b['listenTo'](_0x5c474b['element'],'mousedown',(_0x596edc,_0x21665d)=>{_0x21665d['stopPropagation'](),_0x21665d['preventDefault']();}),_0x5c474b['listenTo'](_0x5c474b['element'],'mouseup',()=>{_0x5c474b['element']['focus']();});}function O(_0x5b0790){const _0x4534a1=_0x5b0790['split'](':');return{'group':_0x4534a1[0x0],'type':_0x4534a1[0x1],'subType':_0x4534a1['length']>=0x5?_0x4534a1[0x2]:null,'id':_0x4534a1['length']<0x5?_0x4534a1[0x2]:_0x4534a1[0x3],'authorId':_0x4534a1['length']<0x5?_0x4534a1[0x3]:_0x4534a1[0x4],'markerCount':0x6==_0x4534a1['length']?_0x4534a1[0x5]:null};}function $(_0x4862f5,_0x225ca4){const _0x462d83=_0x4862f5['end']['nodeBefore'];if(_0x462d83&&_0x462d83['is']('element')&&_0x225ca4['schema']['isBlock'](_0x462d83)&&!_0x225ca4['schema']['isObject'](_0x462d83)){const _0x1bfcef=_0x225ca4['createPositionAt'](_0x462d83,'end');return _0x225ca4['createRange'](_0x4862f5['start'],_0x1bfcef);}return _0x4862f5;}class SuggestionsConversionAlignment extends _0x5df03c{['afterInit'](){const _0x4ea715=this['editor'];if(!_0x4ea715['plugins']['has']('AlignmentEditing'))return;_0x4ea715['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const F=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class SuggestionsConversionBasicStyles extends _0x5df03c{['afterInit'](){const _0x3ab138=this['editor'],_0x23bd7b=_0x3ab138['plugins']['get']('SuggestionsConversion');for(const _0x59bbfe of F){if(!_0x3ab138['plugins']['has'](_0x59bbfe))continue;const _0x4df6d1=_0x59bbfe['slice'](0x0,-0x7)['toLowerCase']();_0x23bd7b['registerInlineAttribute'](_0x4df6d1);}}}class SuggestionsConversionBookmark extends _0x5df03c{['afterInit'](){const _0x1ddcf1=this['editor'],_0xaae851=_0x1ddcf1['plugins']['get']('SuggestionsConversion');_0x1ddcf1['plugins']['has']('BookmarkEditing')&&_0xaae851['registerBlockAttribute']('bookmarkId');}}const H=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class SuggestionsConversionFont extends _0x5df03c{['afterInit'](){const _0x52d073=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x9d09f9,commandName:_0x38c3bf}of H)this['editor']['plugins']['has'](_0x9d09f9)&&_0x52d073['registerInlineAttribute'](_0x38c3bf);}}class SuggestionsConversionFootnotes extends _0x5df03c{['afterInit'](){const {editor:_0x28f0b0}=this;if(!_0x28f0b0['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x427a38=_0x28f0b0['plugins']['get']('SuggestionsConversion');_0x427a38['registerBlockAttribute']('footnotesListStyle'),_0x427a38['registerBlockAttribute']('footnotesListStart');}}class SuggestionsConversionHighlight extends _0x5df03c{['afterInit'](){const _0xf36bb=this['editor'];if(!_0xf36bb['plugins']['has']('HighlightEditing'))return;_0xf36bb['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class SuggestionsConversionHtmlEmbed extends _0x5df03c{['afterInit'](){const _0x2da608=this['editor'];if(!_0x2da608['plugins']['has']('HtmlEmbed'))return;_0x2da608['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class SuggestionsConversionImage extends _0x5df03c{['afterInit'](){const _0x1b674c=this['editor'];if(!_0x1b674c['plugins']['has']('ImageEditing'))return;const _0x20b2f0=_0x1b674c['plugins']['get']('SuggestionsConversion');_0x20b2f0['registerBlockAttribute']('src'),_0x1b674c['plugins']['has']('ImageResize')&&_0x20b2f0['registerBlockAttribute']('resizedWidth'),_0x1b674c['plugins']['has']('ImageTextAlternativeEditing')&&_0x20b2f0['registerBlockAttribute']('alt'),_0x1b674c['plugins']['has']('PictureEditing')&&_0x20b2f0['registerBlockAttribute']('sources'),_0x1b674c['plugins']['has']('ImageSizeAttributes')&&(_0x20b2f0['registerBlockAttribute']('width'),_0x20b2f0['registerBlockAttribute']('height'));}}class SuggestionsConversionIndent extends _0x5df03c{['afterInit'](){const _0x447b72=this['editor'],_0x2cbd64=_0x447b72['plugins']['get']('SuggestionsConversion');_0x447b72['plugins']['has']('IndentBlock')&&(_0x2cbd64['registerBlockAttribute']('blockIndent'),_0x447b72['plugins']['has']('ListEditing')&&(_0x2cbd64['registerBlockAttribute']('blockIndentList'),_0x2cbd64['registerBlockAttribute']('blockIndentListItem')));}}class SuggestionsConversionLineHeight extends _0x5df03c{['afterInit'](){const _0x501155=this['editor'];if(!_0x501155['plugins']['has']('LineHeight'))return;_0x501155['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class SuggestionsConversionLink extends _0x5df03c{['afterInit'](){const _0x262ef6=this['editor'];if(!_0x262ef6['plugins']['has']('LinkEditing'))return;const _0xaf08ed=_0x262ef6['plugins']['get']('SuggestionsConversion'),_0x1c54e5=_0x262ef6['commands']['get']('link');_0xaf08ed['registerInlineAttribute']('linkHref');for(const _0x25789f of _0x1c54e5['manualDecorators'])_0xaf08ed['registerInlineAttribute'](_0x25789f['id']);}}class SuggestionsConversionList extends _0x5df03c{['afterInit'](){const _0x203ce2=this['editor'];if(!_0x203ce2['plugins']['has']('ListEditing'))return;const _0x511f84=_0x203ce2['plugins']['get']('SuggestionsConversion'),_0x4bd194=_0x203ce2['plugins']['has']('TodoListEditing');_0x511f84['registerBlockAttribute']('listItemId'),_0x511f84['registerBlockAttribute']('listType'),_0x511f84['registerBlockAttribute']('listIndent'),_0x4bd194&&_0x511f84['registerBlockAttribute']('todoListChecked');}}class SuggestionsConversionListProperties extends _0x5df03c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1bd997=this['editor']['config']['get']('list.properties'),_0x837a31=this['editor']['plugins']['get']('SuggestionsConversion');_0x1bd997['styles']&&_0x837a31['registerBlockAttribute']('listStyle'),_0x1bd997['reversed']&&_0x837a31['registerBlockAttribute']('listReversed'),_0x1bd997['startIndex']&&_0x837a31['registerBlockAttribute']('listStart');}}class SuggestionsConversionMultiLevelList extends _0x5df03c{['afterInit'](){const _0x27cc8f=this['editor'],_0x15cd8b=_0x27cc8f['plugins']['get']('SuggestionsConversion');_0x27cc8f['plugins']['has']('MultiLevelList')&&_0x15cd8b['registerBlockAttribute']('listMarkerStyle');}}class SuggestionsConversionStylesDropdown extends _0x5df03c{['afterInit'](){const _0x158802=this['editor'];if(!_0x158802['plugins']['has']('Style')||!_0x158802['plugins']['has']('DataSchema')||!_0x158802['config']['get']('style.definitions'))return;const _0x1a0e9a=_0x158802['plugins']['get']('SuggestionsConversion'),_0x3ccd89=_0x158802['config']['get']('style.definitions'),_0x23c789=_0x158802['plugins']['get']('GeneralHtmlSupport'),_0x57ed6b=_0x158802['plugins']['get']('StyleUtils')['normalizeConfig'](_0x158802['plugins']['get']('DataSchema'),_0x3ccd89),_0x413141=new Set();for(const _0x28fa49 of _0x57ed6b['block']){const _0x300f50=_0x23c789['getGhsAttributeNameForElement'](_0x28fa49['element']);_0x413141['add'](_0x300f50);}const _0x2c397d=new Set();for(const _0x7d6ac7 of _0x57ed6b['inline']){const _0xa3d162=_0x23c789['getGhsAttributeNameForElement'](_0x7d6ac7['element']);_0x2c397d['add'](_0xa3d162);for(const _0x3557e3 of _0x7d6ac7['ghsAttributes'])_0x2c397d['add'](_0x3557e3);}for(const _0x12416a of _0x413141)_0x1a0e9a['registerBlockAttribute'](_0x12416a);for(const _0x35e6c5 of _0x2c397d)_0x1a0e9a['registerInlineAttribute'](_0x35e6c5);}}class SuggestionsConversionTableHeadings extends _0x5df03c{['afterInit'](){const _0x2884f5=this['editor'];if(!_0x2884f5['plugins']['has']('TableEditing'))return;const _0x4154fc=_0x2884f5['plugins']['get']('SuggestionsConversion');_0x4154fc['registerBlockAttribute']('headingRows'),_0x4154fc['registerBlockAttribute']('headingColumns');}}class SuggestionsConversionTableProperties extends _0x5df03c{['afterInit'](){const {plugins:_0xdfd411}=this['editor'];if(!_0xdfd411['has']('TablePropertiesEditing'))return;const _0x507edb=_0xdfd411['get']('SuggestionsConversion'),_0x5080b4=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x5dc016 of _0x5080b4)_0x507edb['registerBlockAttribute'](_0x5dc016);}}class SuggestionsConversionTableLayout extends _0x5df03c{['afterInit'](){const _0x10a081=this['editor'],_0x518dff=_0x10a081['plugins']['get']('SuggestionsConversion');_0x10a081['plugins']['has']('TableLayout')&&_0x518dff['registerBlockAttribute']('tableType');}}class SuggestionsConversionUploadcare extends _0x5df03c{['afterInit'](){const _0x307483=this['editor'],_0x3a9a9a=this['editor']['plugins']['get']('SuggestionsConversion');_0x307483['plugins']['has']('Uploadcare')&&_0x307483['plugins']['has']('UploadcareImageEdit')&&_0x3a9a9a['registerBlockAttribute']('uploadcareImageId');}}class SuggestionsConversionShiftEnter extends _0x5df03c{['afterInit'](){const _0x233bb0=this['editor'];if(!_0x233bb0['plugins']['has']('ShiftEnter'))return;const _0x15575a=_0x233bb0['plugins']['get']('SuggestionsConversion'),_0x1ca296=(_0x577433,_0x46350c,_0x38fbaa,_0x457a1a)=>{if(_0x457a1a&&!_0x38fbaa['options']['showSuggestionHighlights'])return;if(!_0x38fbaa['consumable']['test'](_0x46350c['markerRange'],_0x577433['name']))return;const _0x47473a=_0x233bb0['model'];for(const _0xfaa87 of _0x46350c['markerRange']['getItems']()){if(!_0xfaa87['is']('element','softBreak'))continue;const _0x305f7e='deletion'==_0x46350c['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2980ab,authorId:_0x53e97c}=O(_0x46350c['markerName']),_0x62eee7=_0x38fbaa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x305f7e,'data-suggestion':_0x2980ab,'data-author-id':_0x53e97c}),_0x35b095=_0x38fbaa['mapper']['toViewPosition'](_0x47473a['createPositionBefore'](_0xfaa87));!_0x457a1a&&_0x15575a['_activeMarkers']['includes'](_0x46350c['markerName'])&&_0x38fbaa['writer']['addClass']('ck-suggestion-marker--active',_0x62eee7),_0x38fbaa['writer']['insert'](_0x35b095,_0x62eee7),_0x38fbaa['mapper']['bindElementToMarker'](_0x62eee7,_0x46350c['markerName']);}};_0x233bb0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a9a29,_0x3fb1cb,_0x559314)=>{_0x1ca296(_0x3a9a29,_0x3fb1cb,_0x559314,!0x1);},{'priority':'high'}),_0x233bb0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3407b0,_0x5689b1,_0x4cced1)=>{_0x1ca296(_0x3407b0,_0x5689b1,_0x4cced1,!0x1);},{'priority':'high'}),_0x233bb0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19db27,_0x957e21,_0xc90396)=>{_0x1ca296(_0x19db27,_0x957e21,_0xc90396,!0x0);},{'priority':'high'}),_0x233bb0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5005ad,_0x50411c,_0x175837)=>{_0x1ca296(_0x5005ad,_0x50411c,_0x175837,!0x0);},{'priority':'high'});}}class SuggestionsConversionMediaEmbed extends _0x5df03c{['afterInit'](){const _0x47e00e=this['editor'];_0x47e00e['plugins']['has']('MediaEmbedEditing')&&(_0x47e00e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x6d187f,{writer:_0x2b9c29,options:_0x2f1c5e})=>{if(_0x2f1c5e['showSuggestionHighlights'])return _0x2b9c29['createEmptyElement']('div');},'converterPriority':'high'}),_0x47e00e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x34a75e,_0x271b27,_0x29b760)=>{_0x29b760['options']['showSuggestionHighlights']&&_0x34a75e['stop']();},{'priority':'high'}));}}class SuggestionsConversionTable extends _0x5df03c{['afterInit'](){const _0x49cfa4=this['editor'];if(!_0x49cfa4['plugins']['has']('Table'))return;_0x49cfa4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1dd47,_0xc083f3,_0x589b3b)=>{((_0x507d52,_0x48df22,_0x355e04)=>{if(!_0x355e04['options']['showSuggestionHighlights'])return;const _0x3c96c0=_0x48df22['item'];if(!_0x3c96c0||!_0x3c96c0['is']('element','tableCell'))return;const _0x4bfbba=_0x355e04['mapper']['toViewElement'](_0x3c96c0);if(_0x4bfbba){const {id:_0x329344,authorId:_0x20fb53}=O(_0x48df22['markerName']);_0x298e2a(_0x4bfbba,_0x355e04['writer'],(_0x55e7a5,_0x132934,_0x24da4)=>{_0x24da4['addClass'](_0x49242c(_0x132934['classes']),_0x55e7a5),_0x24da4['setAttribute']('data-suggestion',_0x329344,_0x55e7a5),_0x24da4['setAttribute']('data-author-id',_0x20fb53,_0x55e7a5);});}})(0x0,_0xc083f3,_0x589b3b);},{'priority':'highest'});}}class SuggestionsConversionHorizontalLine extends _0x5df03c{['afterInit'](){const _0x253ad8=this['editor'];_0x253ad8['plugins']['has']('HorizontalLineEditing')&&_0x253ad8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x61196b,{writer:_0x3202ea,options:_0x3d9b66})=>{if(!_0x3d9b66['showSuggestionHighlights'])return null;const _0xae0ef0=_0x3202ea['createContainerElement']('div'),_0x4082bc=_0x3202ea['createEmptyElement']('hr');return _0x3202ea['addClass']('ck-horizontal-line',_0xae0ef0),_0x3202ea['insert'](_0x3202ea['createPositionAt'](_0xae0ef0,0x0),_0x4082bc),_0xae0ef0;},'converterPriority':'high'});}}class SuggestionsConversionTableCellProperties extends _0x5df03c{['afterInit'](){const {plugins:_0x5b27c6,model:_0x55329e}=this['editor'];if(!_0x5b27c6['has']('TableCellPropertiesEditing'))return;const _0x204ebd=_0x5b27c6['get']('SuggestionsConversion'),_0x2244ec=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x384077 of _0x2244ec)_0x204ebd['registerBlockAttribute'](_0x384077);_0x55329e['schema']['checkAttribute']('tableCell','tableCellType')&&_0x204ebd['registerBlockAttribute']('tableCellType');}}class SuggestionsConversionTableFooters extends _0x5df03c{['afterInit'](){const _0xd8f925=this['editor'];if(!_0xd8f925['plugins']['has']('TableEditing')||!_0xd8f925['config']['get']('table.enableFooters'))return;_0xd8f925['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class SuggestionsConversion extends _0x5df03c{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[SuggestionsConversionAlignment,SuggestionsConversionBasicStyles,SuggestionsConversionBookmark,SuggestionsConversionFont,SuggestionsConversionFootnotes,SuggestionsConversionHighlight,SuggestionsConversionHorizontalLine,SuggestionsConversionHtmlEmbed,SuggestionsConversionImage,SuggestionsConversionIndent,SuggestionsConversionLineHeight,SuggestionsConversionLink,SuggestionsConversionList,SuggestionsConversionListProperties,SuggestionsConversionMediaEmbed,SuggestionsConversionMultiLevelList,SuggestionsConversionShiftEnter,SuggestionsConversionStylesDropdown,SuggestionsConversionTable,SuggestionsConversionTableHeadings,SuggestionsConversionTableFooters,SuggestionsConversionTableLayout,SuggestionsConversionTableCellProperties,SuggestionsConversionTableProperties,SuggestionsConversionUploadcare];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1d8545=this['editor'],_0x369be4=(_0x83e1ca,_0x3773d8,_0x42936b)=>{const {id:_0x48660c,authorId:_0x37da46,type:_0x2adca4,subType:_0x187b8e}=O(_0x83e1ca['markerName']),_0x5483c3=['ck-suggestion-marker',this['_getClassName'](_0x2adca4,_0x187b8e)];let _0x4a8c91=0xbb8;return!_0x42936b&&(this['_activeMarkers']['includes'](_0x83e1ca['markerName'])&&(_0x5483c3['push']('ck-suggestion-marker--active'),_0x4a8c91=0xbc2)),('deletion'==_0x2adca4&&(_0x4a8c91+=0x5),{'classes':_0x5483c3,'attributes':{'data-suggestion':_0x48660c,'data-author-id':_0x37da46},'priority':_0x4a8c91});};_0x1d8545['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x490a09,_0x4d40e0)=>_0x369be4(_0x490a09,0x0,!0x1)}),_0x1d8545['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xac19f5,_0x1f87b6)=>_0x369be4(_0xac19f5,0x0,!0x0)}),_0x1d8545['conversion']['for']('dataDowncast')['add'](_0x447768=>{_0x447768['on']('addMarker:suggestion',(_0x119244,_0x240ca1,_0x4566fb)=>{if(!_0x4566fb['options']['showSuggestionHighlights'])return;const _0x45949e=_0x240ca1['item'];if(!_0x45949e)return;const _0x190454=_0x4566fb['mapper']['toViewElement'](_0x45949e);_0x1d8545['model']['schema']['isObject'](_0x45949e)&&_0x190454&&!_0x190454['getCustomProperty']('widget')&&_0x190454['is']('containerElement')&&_0x18ae6a(_0x190454,_0x4566fb['writer']);},{'priority':'high'});});const _0x4578ce=(_0x30b163,_0x47c52d,_0x1a80a1,_0xacc880,_0x58b1b3)=>{if(_0xacc880&&!_0x1a80a1['options']['showSuggestionHighlights'])return;if(!_0x47c52d['item'])return;const {id:_0x473422,authorId:_0x158116,subType:_0x538ca4}=O(_0x47c52d['markerName']);if(_0x58b1b3){const _0x1f813a=_0x538ca4['split']('|')[0x0];if(!this['isBlockAttribute'](_0x1f813a))return;}if(_0x47c52d['item']['is']('selection'))return void _0x1a80a1['consumable']['consume'](_0x47c52d['item'],_0x30b163['name']);const _0x44f151=_0x1a80a1['mapper']['toViewElement'](_0x47c52d['item']);if(_0x47c52d['item']['is']('element')&&_0x1d8545['model']['schema']['isBlock'](_0x47c52d['item'])&&!_0x44f151['getCustomProperty']('addHighlight')){_0x1a80a1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x44f151),_0x1a80a1['writer']['setAttribute']('data-suggestion',_0x473422,_0x44f151),_0x1a80a1['writer']['setAttribute']('data-author-id',_0x158116,_0x44f151),_0x1a80a1['mapper']['bindElementToMarker'](_0x44f151,_0x47c52d['markerName']),_0xacc880||(this['_activeMarkers']['includes'](_0x47c52d['markerName'])?_0x1a80a1['writer']['addClass']('ck-suggestion-marker--active',_0x44f151):_0x1a80a1['writer']['removeClass']('ck-suggestion-marker--active',_0x44f151));for(const _0x3a255c of _0x1d8545['model']['createRangeIn'](_0x47c52d['item'])['getItems']())_0x1a80a1['consumable']['consume'](_0x3a255c,_0x30b163['name']);_0x1a80a1['consumable']['consume'](_0x47c52d['item'],_0x30b163['name']);}},_0xf5495b=(_0x3da1f9,_0x203d10,_0x18e9a3,_0x1a84c4)=>{const _0x388cc8=_0x18e9a3['mapper']['markerNameToElements'](_0x203d10['markerName']);if(_0x388cc8){if(_0x1a84c4){const {subType:_0x4a9ccd}=O(_0x203d10['markerName']),_0x229ae3=_0x4a9ccd['split']('|')[0x0];if(!this['isBlockAttribute'](_0x229ae3))return;}for(const _0x18d60a of _0x388cc8)_0x18d60a['getCustomProperty']('addHighlight')||(_0x18e9a3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x18d60a),_0x18e9a3['writer']['removeAttribute']('data-suggestion',_0x18d60a),_0x18e9a3['writer']['removeAttribute']('data-author-id',_0x18d60a),_0x18e9a3['mapper']['unbindElementFromMarkerName'](_0x18d60a,_0x203d10['markerName']));}};_0x1d8545['conversion']['for']('editingDowncast')['add'](_0x52348d=>{_0x52348d['on']('addMarker:suggestion:formatBlock',(_0x5deee0,_0x2680c7,_0x27f643)=>{_0x4578ce(_0x5deee0,_0x2680c7,_0x27f643,!0x1,!0x1);},{'priority':'high'});}),_0x1d8545['conversion']['for']('editingDowncast')['add'](_0x119248=>{_0x119248['on']('addMarker:suggestion:attribute',(_0x5e85bf,_0x28a0a3,_0x195bad)=>{_0x4578ce(_0x5e85bf,_0x28a0a3,_0x195bad,!0x1,!0x0);},{'priority':'high'});}),_0x1d8545['conversion']['for']('editingDowncast')['add'](_0x39ab81=>{_0x39ab81['on']('removeMarker:suggestion:formatBlock',(_0x38148f,_0x41c2ca,_0x5a9cf7)=>{_0xf5495b(0x0,_0x41c2ca,_0x5a9cf7,!0x1);},{'priority':'high'});}),_0x1d8545['conversion']['for']('editingDowncast')['add'](_0x6672d4=>{_0x6672d4['on']('removeMarker:suggestion:attribute',(_0x1e93a8,_0x4278c6,_0x2a35e0)=>{_0xf5495b(0x0,_0x4278c6,_0x2a35e0,!0x0);},{'priority':'high'});}),_0x1d8545['conversion']['for']('dataDowncast')['add'](_0x5e6d51=>{_0x5e6d51['on']('addMarker:suggestion:formatBlock',(_0x5be87f,_0x420c8b,_0x27f6a8)=>{_0x4578ce(_0x5be87f,_0x420c8b,_0x27f6a8,!0x0,!0x1);},{'priority':'highest'});}),_0x1d8545['conversion']['for']('dataDowncast')['add'](_0x29c27e=>{_0x29c27e['on']('addMarker:suggestion:attribute',(_0x2fcf46,_0x17d133,_0x4f986c)=>{_0x4578ce(_0x2fcf46,_0x17d133,_0x4f986c,!0x0,!0x0);},{'priority':'highest'});}),_0x1d8545['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x19d16a,_0x2fb71c)=>_0x2fb71c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x19d16a['substr'](0xb)}});const _0x5bb973=(_0x5553fa,_0x585fa0,_0x57b00b,_0x306567,_0x4ebd68)=>{if(_0x306567&&!_0x57b00b['options']['showSuggestionHighlights'])return;if(!_0x57b00b['consumable']['test'](_0x585fa0['markerRange'],_0x5553fa['name']))return;const _0x2f237f=this['_activeMarkers'],_0xa8b230=_0x585fa0['markerRange']['getWalker'](),_0x1661c5=_0x585fa0['markerRange']['start'],_0x4eb460=_0x1d8545['model']['schema'];let _0x328ac9=null,_0x4c465a=null,_0x560801=!0x1,_0x1b737a=!0x1;for(const _0x557e57 of _0xa8b230){const _0x4c07ac=_0x557e57['item'];_0x560801=_0x560801||_0x4eb460['isContent'](_0x4c07ac);const _0x268269=_0x57b00b['mapper']['toViewElement'](_0x4c07ac);if(_0x268269&&_0x268269['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x557e57['type']&&(_0x4eb460['isBlock'](_0x4c07ac)&&!_0x4eb460['isLimit'](_0x4c07ac)&&(_0x4c07ac['nextSibling']||_0x1661c5['isAtEnd']?_0x328ac9&&_0x328ac9['parent']==_0x4c07ac||(_0x328ac9=_0x4c07ac,_0x2adee1(_0x557e57['previousPosition']),_0x1b737a=!0x0):_0x4c465a=_0x4c465a||_0x557e57['previousPosition']));}function _0x2adee1(_0x5eadae){const {id:_0x1f766b,authorId:_0x47fc4e}=O(_0x585fa0['markerName']),_0xa1afd8=_0x57b00b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ebd68,'data-suggestion':_0x1f766b,'data-author-id':_0x47fc4e}),_0x5ba124=_0x57b00b['mapper']['toViewPosition'](_0x5eadae);!_0x306567&&_0x2f237f['includes'](_0x585fa0['markerName'])&&_0x57b00b['writer']['addClass']('ck-suggestion-marker--active',_0xa1afd8),_0x57b00b['writer']['insert'](_0x5ba124,_0xa1afd8),_0x57b00b['mapper']['bindElementToMarker'](_0xa1afd8,_0x585fa0['markerName']);}_0x560801||_0x1b737a||!_0x4c465a||_0x2adee1(_0x4c465a);};_0x1d8545['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x40da26,_0x4a3292,_0x21b717)=>{_0x5bb973(_0x40da26,_0x4a3292,_0x21b717,!0x1,'merge');},{'priority':'high'}),_0x1d8545['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5a32b9,_0x23c537,_0x40371b)=>{_0x5bb973(_0x5a32b9,_0x23c537,_0x40371b,!0x0,'merge');},{'priority':'high'}),_0x1d8545['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x294e40,_0x8d9671,_0x521bfb)=>{_0x5bb973(_0x294e40,_0x8d9671,_0x521bfb,!0x1,'split');},{'priority':'high'}),_0x1d8545['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59dde0,_0x77020f,_0x2072d1)=>{_0x5bb973(_0x59dde0,_0x77020f,_0x2072d1,!0x0,'split');},{'priority':'high'}),_0x1d8545['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5357d5,_0xc3eda,_0x5bcd0c)=>{((_0x1d2953,_0x2f6ef8,_0x15bcfd)=>{const _0x571073=_0x15bcfd['mapper']['markerNameToElements'](_0x2f6ef8['markerName']);if(_0x571073){for(const _0x5c7310 of _0x571073)(_0x5c7310['hasClass']('ck-suggestion-marker-split')||_0x5c7310['hasClass']('ck-suggestion-marker-merge'))&&(_0x15bcfd['mapper']['unbindElementFromMarkerName'](_0x5c7310,_0x2f6ef8['markerName']),_0x15bcfd['writer']['remove'](_0x5c7310));}})(0x0,_0xc3eda,_0x5bcd0c);},{'priority':'high'});const _0xd21b4a=(_0x12c926,_0x465505,_0x438c03,_0x12e215)=>{if(_0x12e215&&!_0x438c03['options']['showSuggestionHighlights'])return;const _0x391fa9=_0x465505['markerRange']['start'],_0xe1dc8b=_0x465505['markerRange']['end'],_0x215d6e=_0x1d8545['model']['schema'];if(!_0x391fa9['isTouching'](_0xe1dc8b)||!_0x391fa9['nodeAfter'])return;const _0x288042=_0x391fa9['nodeAfter'];if(_0x215d6e['isBlock'](_0x288042)&&!_0x215d6e['isLimit'](_0x288042)&&_0x215d6e['checkChild'](_0x288042,'$text')){if(!_0x438c03['consumable']['consume'](_0x465505['markerRange'],_0x12c926['name']))return;const {id:_0x3d5b6e,authorId:_0x522fd0}=O(_0x465505['markerName']),_0x5e2c56=_0x438c03['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3d5b6e,'data-author-id':_0x522fd0}),_0x5d1c2c=_0x438c03['mapper']['toViewPosition'](_0xe1dc8b);!_0x12e215&&this['_activeMarkers']['includes'](_0x465505['markerName'])&&_0x438c03['writer']['addClass']('ck-suggestion-marker--active',_0x5e2c56),_0x438c03['writer']['insert'](_0x5d1c2c,_0x5e2c56),_0x438c03['mapper']['bindElementToMarker'](_0x5e2c56,_0x465505['markerName']);}};_0x1d8545['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e1239,_0x114c47,_0x208d6b)=>{_0xd21b4a(_0x2e1239,_0x114c47,_0x208d6b,!0x1);},{'priority':'high'}),_0x1d8545['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2f825f,_0xa3085f,_0x3d2b6b)=>{_0xd21b4a(_0x2f825f,_0xa3085f,_0x3d2b6b,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x1cbd9b,_0x1c7702,_0x21d39a)=>{this['_activeMarkers']=_0x21d39a['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x19bcd6){this['_blockAttributeKeys']['add'](_0x19bcd6);}['registerInlineAttribute'](_0x1814da){this['_inlineAttributeKeys']['add'](_0x1814da);}['isBlockAttribute'](_0x4681aa){return this['_blockAttributeKeys']['has'](_0x4681aa);}['isInlineAttribute'](_0x24e669){return this['_inlineAttributeKeys']['has'](_0x24e669);}['isRegisteredAttribute'](_0x2e4c73){return this['isInlineAttribute'](_0x2e4c73)||this['isBlockAttribute'](_0x2e4c73);}['_getClassName'](_0x163237,_0x10e753){if('attribute'!=_0x163237)return'ck-suggestion-marker-'+_0x163237;const _0x4b0604=_0x10e753['split']('|')[0x0];return this['isBlockAttribute'](_0x4b0604)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function R(_0x31e193={},_0x2e42b7){if(void 0x0!==_0x31e193['dateTimeFormat']&&'function'!=typeof _0x31e193['dateTimeFormat'])throw new _0x398820('invalid-date-time-format');return _0x2fe571=>{const _0x48d68f='string'==typeof _0x2fe571?_0x439436['fromISO'](_0x2fe571):_0x439436['fromJSDate'](_0x2fe571),_0x2b8cb2=_0x439436['now'](),_0x3bfcc9=Math['floor'](_0x2b8cb2['diff'](_0x48d68f,'days')['days']);return _0x31e193['dateTimeFormat']?_0x31e193['dateTimeFormat'](_0x48d68f['toJSDate'](),_0x2e42b7&&_0x2e42b7['t']?_0x2e42b7['t']:void 0x0):0x0===_0x3bfcc9?_0x2e42b7?B(_0x2e42b7,'Today')+'\x20'+_0x48d68f['toFormat']('hh:mma'):_0x48d68f['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x3bfcc9?_0x2e42b7?B(_0x2e42b7,'Yesterday')+'\x20'+_0x48d68f['toFormat']('hh:mma'):_0x48d68f['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x3bfcc9<0x7?_0x2e42b7?B(_0x2e42b7,'Last')+'\x20'+B(_0x2e42b7,_0x48d68f['toFormat']('EEEE'))+'\x20'+_0x48d68f['toFormat']('hh:mma'):_0x48d68f['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x48d68f['toFormat']('LL-dd-yyyy\x20hh:mma');};}function z(_0x360b54,_0x1701dc){const _0x7c9933=_0x360b54['mapper']['markerNameToElements'](_0x1701dc['name']);if(!_0x7c9933)return null;const _0x261936=_0x5a94f4(_0x7c9933['values']());return _0x360b54['view']['domConverter']['mapViewToDom'](_0x261936)||null;}function W(_0x46caf7,_0x5019fb){if(0x0===_0x5019fb['length'])return null;const _0x17e46c=[],_0x3f5d17=_0x46caf7['view']['domConverter'];for(const _0x1640eb of _0x5019fb){const _0x5ea74c=_0x46caf7['mapper']['markerNameToElements'](_0x1640eb['name']);if(!_0x5ea74c)continue;const _0x24addd=Array['from'](_0x5ea74c)['map'](_0xa9e7a2=>_0x3f5d17['mapViewToDom'](_0xa9e7a2))['filter'](_0x6296ff=>!!_0x6296ff);_0x17e46c['push'](..._0x24addd);}if(0x0===_0x17e46c['length'])return null;const _0xcc4d62=[];for(const _0x1787ff of _0x17e46c){const _0x27d93a=_0x1787ff['getClientRects']()['item'](0x0);_0x27d93a&&_0xcc4d62['push']({'x':_0x27d93a['x'],'y':_0x27d93a['y'],'domElement':_0x1787ff});}return 0x0===_0xcc4d62['length']?null:(_0xcc4d62['sort']((_0x415d0e,_0x4b1235)=>_0x415d0e['y']-_0x4b1235['y']||_0x415d0e['x']-_0x4b1235['x']),_0xcc4d62['map'](_0x48bbc9=>_0x48bbc9['domElement']));}function j(_0x3369f8,{limit:_0x150278,suffix:_0x5488b5='...'}){const _0x2766c2=[];let _0x57f500=0x0;const _0x18b526=_0x3369f8['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x1da004=0x0;_0x1da004<_0x18b526['length'];_0x1da004++){let _0x2d0629=_0x18b526[_0x1da004];const _0x1791cb=Y(_0x2d0629);if(_0x2d0629['startsWith']('<')){if(_0x57f500>=_0x150278){const _0x19a608=_0x2d0629['match'](/[a-zA-Z]+/);if(!_0x19a608){_0x18b526[_0x1da004]='';continue;}const _0xe2fe95=_0x19a608[0x0];_0x2d0629['startsWith']('</')?(_0x2766c2['length']&&(_0x2d0629=''),_0x2766c2['pop']()):(_0x2766c2['push'](_0xe2fe95),_0x2d0629='');}}else{if(_0x57f500>=_0x150278)_0x2d0629='';else{if(_0x57f500+_0x1791cb['length']>=_0x150278){let _0x4c67f3=_0x150278-_0x57f500;if('\x20'===_0x1791cb[_0x4c67f3-0x1])_0x4c67f3--;else{const _0x1b3954=_0x1791cb['slice'](_0x4c67f3)['indexOf']('\x20');-0x1!==_0x1b3954?_0x4c67f3+=_0x1b3954:_0x4c67f3=_0x2d0629['length'];}_0x2d0629=_0x1791cb['slice'](0x0,_0x4c67f3)['join']('')+_0x5488b5,_0x57f500=_0x150278;}else _0x57f500+=_0x1791cb['length'];}}_0x18b526[_0x1da004]=_0x2d0629;}return _0x18b526['join']('\x0a')['replace'](/\n/g,'');}function Y(_0x23ab70){const _0x3870dc=[];for(let _0x40d7a1=0x0;_0x40d7a1<_0x23ab70['length'];_0x40d7a1++){const _0x337a61=_0x23ab70['substring'](_0x40d7a1)['match'](/^&[a-z0-9#]+;/);if(_0x337a61){const _0x2fd9a8=_0x337a61[0x0];_0x3870dc['push'](_0x2fd9a8),_0x40d7a1+=_0x2fd9a8['length']-0x1;}else _0x3870dc['push'](_0x23ab70[_0x40d7a1]);}return _0x3870dc;}class ConfirmView extends _0x419a48{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x40cf1e){super(_0x40cf1e);const _0x38e22a=this['bindTemplate'];this['set']('message',B(_0x40cf1e,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x40cf1e,B(_0x40cf1e,'Yes'),_0x1e0f05,'submit'),this['cancelView']=this['_createButtonView'](_0x40cf1e,B(_0x40cf1e,'No'),_0x223b22,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x53965e(),this['keystrokes']=new _0x1530c5(),this['focusCycler']=new _0x4c79c1({'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':_0x38e22a['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'](_0x86d370,_0x5b3224,_0x28e8bf,_0x14c685){const _0x16e5d9=new _0xe6496c(_0x86d370);return _0x16e5d9['label']=_0x5b3224,_0x16e5d9['icon']=_0x28e8bf,_0x16e5d9['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x14c685}}),_0x16e5d9['on']('execute',()=>this['fire'](_0x14c685)),_0x16e5d9;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x1cee99=>{this['keystrokes']['listenTo'](_0x1cee99['element']),this['focusTracker']['add'](_0x1cee99['element']);}),this['keystrokes']['set']('esc',(_0x3f5c9c,_0x333ad9)=>{this['fire']('cancel'),_0x333ad9();});}}function J(_0x49000e){return class _0xf112a5 extends _0x49000e{['showConfirm'](_0x3f286d,_0x426f85){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x3f286d,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x426f85['appendChild'](this['confirmView']['element']),_0x426f85['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x2a1d81,_0x4d1dcd,_0x45eede)=>{_0x45eede||_0x426f85['classList']['remove']('ck-confirm-view-active');}),new Promise(_0xb009ba=>this['confirmView']['on']('submit',_0xb009ba));}['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(_0xc70bec){let _0x385312=0x0,_0x2acd0f=0x0;for(const _0xafa8f3 of G(_0xc70bec))_0x385312=(_0x385312<<0x5)-_0x385312+_0xafa8f3,_0x385312&=_0x385312,[_0x385312,_0x2acd0f]=[_0x2acd0f,_0x385312];return X(_0x385312)+X(_0x2acd0f);}function*q(_0x305f2b){null==_0x305f2b||null==_0x305f2b?yield 0x12b9b0a1:0x0===_0x305f2b||!0x1===_0x305f2b?yield 0x0:0x1===_0x305f2b||0x1==_0x305f2b?yield 0x1:Array['isArray'](_0x305f2b)?yield*function*(_0xf43579){for(const _0x286bb1 of _0xf43579)yield*q(_0x286bb1);}(_0x305f2b):'object'==typeof _0x305f2b?yield*G(_0x305f2b):'string'==typeof _0x305f2b?yield*Z(_0x305f2b):'number'==typeof _0x305f2b&&(yield _0x305f2b);}function*G(_0xcb0395){if(yield Q('{'),_0xcb0395){const _0x24f795=Object['keys'](_0xcb0395)['sort']();for(const _0x5372eb of _0x24f795){yield*Z(_0x5372eb),yield Q(':');const _0x55fe90=_0xcb0395[_0x5372eb];yield*q(_0x55fe90);}}yield Q('}');}function*Z(_0x1b2f04){yield Q('\x22');for(const _0x30f1be of _0x1b2f04)yield Q(_0x30f1be);yield Q('\x22');}function Q(_0x20e921){return _0x20e921['charCodeAt'](0x0);}function X(_0x45f2ec){return(_0x45f2ec*=Math['sign'](_0x45f2ec))['toString'](0x24);}const tt=['root','roots','initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function st(_0xefcf2e,_0x1daed9,_0x15c8af,_0x1e3ef9=[]){const _0xc0237='string'==typeof _0xefcf2e?_0x15c8af['get'](_0xefcf2e)['constructor']:_0xefcf2e['prototype']['constructor'];if(_0x1daed9['has'](_0xc0237))return _0x1daed9['get'](_0xc0237);_0x1daed9['set'](_0xc0237,!0x0);const _0x4d1a08=[...et,..._0x1e3ef9]['map'](_0x36afa4=>{if(_0x15c8af['has'](_0x36afa4))return _0x15c8af['get'](_0x36afa4)['constructor'];})['filter'](_0x49fbb6=>_0x49fbb6);if(_0xc0237&&_0x4d1a08['includes'](_0xc0237))return _0x1daed9['set'](_0xc0237,!0x1),!0x1;if(!_0xc0237['requires'])return _0x1daed9['set'](_0xc0237,!0x0),!0x0;const _0x33695f=_0xc0237['requires']['every'](_0x529b19=>st(_0x529b19,_0x1daed9,_0x15c8af,_0x1e3ef9));return _0x1daed9['set'](_0xc0237,_0x33695f),_0x33695f;}function it(_0x48a5aa,_0x3272c3){const _0x2ed636={};for(const _0x58d396 of _0x48a5aa['config']['names']())tt['includes'](_0x58d396)||(_0x2ed636[_0x58d396]=_0x48a5aa['config']['get'](_0x58d396));const _0x1f5bee=_0x2ed636['plugins']||[],_0x3983ce=_0x48a5aa['constructor']['builtinPlugins']||[],_0x74a73a=_0x1f5bee['length']?_0x1f5bee:_0x3983ce,_0x3fbcbf=_0x2ed636['extraPlugins']||[];delete _0x2ed636['extraPlugins'];const _0x420dfc=_0x2ed636['removePlugins']||[];delete _0x2ed636['removePlugins'];const _0x2cf267=_0x48a5aa['_context']['config']['get']('plugins')||[],_0x159ad6=_0x74a73a['concat'](_0x3fbcbf)['concat'](_0x2cf267)['map'](_0x1e5175=>'string'==typeof _0x1e5175?_0x3983ce['find'](_0xf4b40f=>_0xf4b40f['pluginName']==_0x1e5175):_0x1e5175)['filter'](_0x3ca639=>!_0x420dfc['includes'](_0x3ca639)&&!_0x420dfc['includes'](_0x3ca639['pluginName'])),_0x8dc7f0=Array['from'](new Set(_0x159ad6)),_0x471174=new Map();return _0x2ed636['plugins']=_0x8dc7f0['filter'](_0x2836b6=>st(_0x2836b6,_0x471174,_0x48a5aa['plugins'],_0x3272c3)),_0x2ed636;}function nt(_0x375525,_0x3ba42a){const _0x401b46=[];_0x375525['document']['selection']['on']('change:range',()=>{const _0x2c5600=function(_0x498da9,_0x383177){const _0x2bb231=[];for(const _0x5c4140 of _0x498da9['markers']){const _0x20c579=_0x5c4140['getRange']();(_0x20c579['containsPosition'](_0x383177)||_0x20c579['start']['isEqual'](_0x383177)||_0x20c579['end']['isEqual'](_0x383177))&&_0x2bb231['push'](_0x5c4140);}return _0x2bb231;}(_0x375525,_0x375525['document']['selection']['focus']),_0x175a09=[],_0x130c36=[],_0x54d824=[];for(const _0x2125c2 of _0x401b46)_0x2c5600['includes'](_0x2125c2)||_0x175a09['push'](_0x2125c2);for(const _0xaf1fdb of _0x2c5600)_0x401b46['includes'](_0xaf1fdb)||_0x130c36['push'](_0xaf1fdb),_0x54d824['push'](_0xaf1fdb);(_0x175a09['length']||_0x130c36['length'])&&_0x3ba42a({'left':_0x175a09,'entered':_0x130c36}),_0x401b46['length']=0x0,_0x401b46['push'](..._0x54d824);});}const ot='Ctrl+Shift+E';function rt(_0x23a96a,_0x3f0243){const _0x39666a=_0x23a96a['element'];_0x23a96a['keystrokes']['listenTo'](_0x39666a);for(const _0x36c6e1 of _0x3f0243)at(_0x23a96a,_0x36c6e1);_0x3f0243['on']('change',(_0x4757a1,_0xd7d0fc)=>{for(const _0x3c062d of _0xd7d0fc['removed'])ct(_0x23a96a,_0x3c062d);for(const _0x41de1c of Array['from'](_0xd7d0fc['added'])['reverse']())at(_0x23a96a,_0x41de1c);}),_0x23a96a['keystrokes']['set']('enter',(_0x4dfd95,_0x30f382)=>{_0x39666a===_0x4dfd95['target']&&(_0x23a96a['focusCycler']['focusFirst'](),_0x30f382());},{'filter':_0x29bac4=>_0x29bac4['target']===_0x39666a}),_0x23a96a['keystrokes']['set']('esc',(_0x3f7b5,_0x552fc3)=>{_0x39666a!==_0x3f7b5['target']?_0x23a96a['focus']():_0x23a96a['fire']('escape'),_0x552fc3();}),_0x23a96a['keystrokes']['set']('arrowdown',(_0x35809e,_0x237cb0)=>{_0x39666a===_0x35809e['target']&&(_0x23a96a['fire']('arrowdown'),_0x237cb0());}),_0x23a96a['keystrokes']['set']('arrowup',(_0x4dfb47,_0x482001)=>{_0x39666a===_0x4dfb47['target']&&(_0x23a96a['fire']('arrowup'),_0x482001());});}function at(_0x12f1ca,_0x423cef){_0x423cef['isRendered']&&(_0x12f1ca['focusTracker']['add'](_0x423cef['element']),_0x12f1ca['keystrokes']['listenTo'](_0x423cef['element']),_0x4da2d2(_0x423cef)&&function(_0xbbdc29,_0xf40103){const _0x2cfdc6=_0xbbdc29['actions'],_0x26ff5d=_0xf40103['actions'];for(const _0xd3138d of Object['keys'](_0x2cfdc6))if(_0xd3138d in _0x26ff5d&&_0x2cfdc6[_0xd3138d]!==_0x26ff5d[_0xd3138d])return!0x1;return!0x0;}(_0x12f1ca['focusCycler'],_0x423cef['focusCycler'])&&_0x12f1ca['focusCycler']['chain'](_0x423cef['focusCycler']));}function ct(_0x33491f,_0xacc72a){_0x33491f['focusTracker']['remove'](_0xacc72a['element']),_0x33491f['keystrokes']['stopListening'](_0xacc72a['element']),_0x4da2d2(_0xacc72a)&&_0x33491f['focusCycler']['unchain'](_0xacc72a['focusCycler']);}const lt='$elementId',ut='data-id';class DocumentCompare extends _0x457ea2{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x4fef2f?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x2df01e,_0x24880a)=>{_0x24880a['on']('ready',()=>{this['_integrateEditor'](_0x24880a);});});}get['editor'](){if(this['context']instanceof _0x4fef2f)return this['context'];{const _0x259f6f=this['context']['editors']['first'];if(!_0x259f6f)throw new _0x398820('documentcompare-no-editor',this);return _0x259f6f;}}['getDiff'](_0x4646ed,_0x43289e,_0x37e402={'anchor':'main','markDeletions':!0x1}){const _0x533835=_0x37e402['targetEditor']||this['editor'];let _0x21e706,_0x2dc188;if('string'==typeof _0x37e402['anchor']){const _0x7a8f88=_0x533835['model']['document']['getRoot'](_0x37e402['anchor']);if(!_0x7a8f88)throw new _0x398820('documentcompare-compare-no-root',this,{'anchor':_0x37e402['anchor']});_0x21e706=_0x7a8f88,_0x2dc188=_0x533835['model']['createPositionAt'](_0x7a8f88,0x0);}else _0x21e706=_0x37e402['anchor']['clone'](),_0x2dc188=_0x37e402['anchor']['clone']();const _0xbc5218=_0x533835['data']['parse'](_0x4646ed,_0x21e706),_0x28429e=_0x533835['data']['parse'](_0x43289e,_0x21e706);return new DocumentDiff({'editor':_0x533835,'before':_0xbc5218,'after':_0x28429e,'options':{'anchor':_0x2dc188,'markDeletions':_0x37e402['markDeletions']}});}['isMarkedRemoveOperation'](_0x591a03){return'marker'==_0x591a03['type']&&_0x591a03['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x39216e){_0x39216e['conversion']['for']('upcast')['add'](_0xd3211c=>{_0xd3211c['on']('element',(_0x5b2fb1,_0x4e90a0,_0x365cbd)=>{if(_0x4e90a0['modelRange'])for(const _0x293ecd of _0x4e90a0['modelRange']['getItems']({'shallow':!0x0})){if(_0x293ecd['is']('$textProxy'))continue;const _0x437be0=_0x4e90a0['viewItem']['getAttribute'](ut);_0x437be0&&_0x365cbd['writer']['setAttribute'](lt,_0x437be0,_0x293ecd);}},{'priority':'lowest'});}),_0x39216e['model']['schema']['addAttributeCheck'](()=>!0x0,lt);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x310923,before:_0x9eab34,after:_0x1f1537,options:_0x3c8811}){this['_editor']=_0x310923,this['_markDeletions']=!!_0x3c8811['markDeletions'],this['_anchor']=_0x3c8811['anchor'];const _0x1b9b8b=this['_tokenizeModel'](_0x9eab34),_0x1d65f6=this['_tokenizeModel'](_0x1f1537);this['_diffItems']=this['_diffModelTokens'](_0x1b9b8b,_0x1d65f6),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x9eab34['markers'],_0x1f1537['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x528163=this['_editor']['model']['document'],_0x356644=[];let _0x30bad7=_0x528163['version'];for(const _0x370ef0 of this['_operationsData'])switch(_0x370ef0['type']){case'attribute':{const _0x39bec6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370ef0['path']),_0x14afbe=_0x39bec6['getShiftedBy'](_0x370ef0['howMany']),_0x4a4c89=new _0x38d06d(_0x39bec6,_0x14afbe),_0x234964=JSON['parse'](_0x370ef0['oldValue']),_0x5c5280=JSON['parse'](_0x370ef0['newValue']);_0x356644['push'](new _0x6e5aa6(_0x4a4c89,_0x370ef0['key'],_0x234964,_0x5c5280,_0x30bad7++));break;}case'insert':{const _0xe7dde=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370ef0['path']),_0x42bc5a=this['_makeModelFromTokens'](_0x370ef0['tokens']);_0x356644['push'](new _0x213791(_0xe7dde,_0x42bc5a,_0x30bad7++));break;}case'remove':{const _0x582f77=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370ef0['path']),_0x28eb60=new _0x1dcc9f(_0x528163['graveyard'],[0x0]);_0x356644['push'](new _0x251268(_0x582f77,_0x370ef0['howMany'],_0x28eb60,_0x30bad7++));break;}case'rename':{const _0x26a738=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370ef0['path']);_0x356644['push'](new _0x4be650(_0x26a738,_0x370ef0['oldName'],_0x370ef0['newName'],_0x30bad7++));break;}case'split':{const _0x5b941c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370ef0['path']),_0xa979c3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370ef0['path']['slice'](0x0,-0x1));_0xa979c3['offset']++,_0x356644['push'](new _0x329678(_0x5b941c,Number['NEGATIVE_INFINITY'],_0xa979c3,null,_0x30bad7++));break;}case'merge':{const _0x41ac40=_0x370ef0['path']['slice'](),_0x144516=_0x41ac40['slice'](0x0,-0x1);_0x144516[_0x144516['length']-0x1]++,_0x144516['push'](0x0);const _0x49b371=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x144516),_0x3cf470=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x41ac40),_0x27b3f9=new _0x1dcc9f(_0x528163['graveyard'],[0x0]);_0x356644['push'](new _0x21f947(_0x49b371,Number['NEGATIVE_INFINITY'],_0x3cf470,_0x27b3f9,_0x30bad7++));break;}case'marker':case'markedRemove':{let _0xfed88b=null;if(_0x370ef0['range']){const _0x5e9c77=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370ef0['range']['start']),_0x279481=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370ef0['range']['end']);_0xfed88b=new _0x38d06d(_0x5e9c77,_0x279481);}const _0x368158='marker'==_0x370ef0['type']?_0x370ef0['name']:'$markedRemove:'+_0x4c7fdb();_0x356644['push'](new _0x16644f(_0x368158,null,_0xfed88b,_0x528163['model']['markers'],!0x0,_0x30bad7++));break;}case'unwrap':{const _0x305973=_0x370ef0['path']['slice']();_0x305973['push'](0x0);const _0x8f6f61=_0x370ef0['path']['slice'](),_0x351b71=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x305973),_0x2bc4fb=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8f6f61),_0x599221=new _0x1dcc9f(_0x528163['graveyard'],[0x0]);_0x356644['push'](new _0x251268(_0x351b71,_0x370ef0['howMany'],_0x2bc4fb,_0x30bad7++)),_0x356644['push'](new _0x251268(_0x2bc4fb['getShiftedBy'](_0x370ef0['howMany']),0x1,_0x599221,_0x30bad7++));break;}case'wrap':{const _0x4afeee=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370ef0['range']['start']),_0x50cdf5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x370ef0['range']['end']),_0x16103d=_0x370ef0['token']['element']['_clone'](!0x1),_0x3c16d0=_0x370ef0['range']['end']['slice']();_0x3c16d0['push'](0x0);const _0x5d0b1e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3c16d0);_0x356644['push'](new _0x213791(_0x50cdf5,_0x16103d,_0x30bad7++)),_0x356644['push'](new _0x251268(_0x4afeee,_0x50cdf5['offset']-_0x4afeee['offset'],_0x5d0b1e,_0x30bad7++));break;}}return _0x356644;}['_tokenizeModel'](_0x124050){const _0x140a66=[],_0x37dd39=_0x38d06d['_createIn'](_0x124050),_0x50335c=new _0x1cbe11({'boundaries':_0x37dd39});let _0x2a2cc8='',_0x5e5380=null;const _0x57f22c=[''],_0x2fd443=new Map();for(const _0x2134b3 of _0x50335c)if('elementStart'==_0x2134b3['type']||'elementEnd'==_0x2134b3['type']){let _0x568a59=_0x57f22c[0x0];''!==_0x2a2cc8&&(_0x140a66['push'](...this['_makeTokensFromTextByWords'](_0x2a2cc8,_0x5e5380,_0x568a59)),_0x2a2cc8='');const _0x51c458=_0x2134b3['item'];let _0x2e870e;_0x51c458['getAttribute'](lt)?_0x2e870e=_0x51c458['getAttribute'](lt):'elementStart'==_0x2134b3['type']?(_0x2e870e=dt(_0x51c458),_0x2fd443['set'](_0x51c458,_0x2e870e)):_0x2e870e=_0x2fd443['get'](_0x51c458);const _0x145d80=this['_getElementCategory'](_0x51c458);'solid'==_0x145d80&&('elementStart'==_0x2134b3['type']?(_0x568a59=_0x2e870e,_0x57f22c['unshift'](_0x568a59)):_0x57f22c['shift']());const _0x57ec3a={'type':'element','element':_0x51c458,'elementId':_0x2e870e,'category':_0x145d80,'isStart':'elementStart'==_0x2134b3['type'],'limitId':_0x568a59};_0x140a66['push'](_0x57ec3a);}else''==_0x2a2cc8&&(_0x5e5380=_0x2134b3['previousPosition']['clone']()),_0x2a2cc8+=_0x2134b3['item']['data'];return''!==_0x2a2cc8&&_0x140a66['push'](...this['_makeTokensFromTextByWords'](_0x2a2cc8,_0x5e5380,_0x57f22c[0x0])),_0x140a66;}['_makeTokensFromTextByWords'](_0x46d658,_0x4e7984,_0x556dda){const _0x1a4e91=_0x46d658['matchAll'](/(\s)/g),_0x5b2770=Array['from'](_0x1a4e91)['map'](_0x252f73=>_0x252f73['index']);_0x5b2770['push'](_0x46d658['length']),0x0==_0x5b2770[0x0]&&_0x5b2770['shift']();const _0x3e661e=[],_0x78bfaf=_0x4e7984['parent'];let _0x53cba5=0x0,_0x466976=_0x4e7984['offset'];for(let _0x265804=0x0;_0x265804<_0x5b2770['length'];_0x265804++)_0x3e661e['push']({'type':'text','data':_0x46d658['slice'](_0x53cba5,_0x5b2770[_0x265804]),'parent':_0x78bfaf,'offset':_0x466976,'limitId':_0x556dda}),_0x53cba5=_0x5b2770[_0x265804],_0x466976=_0x4e7984['offset']+_0x5b2770[_0x265804];return _0x3e661e;}['_getElementCategory'](_0x55c490){const _0x21077e=this['_editor']['model']['schema'];return _0x21077e['isLimit'](_0x55c490)||_0x21077e['isContent'](_0x55c490)||_0x21077e['isInline'](_0x55c490)?'solid':_0x21077e['isBlock'](_0x55c490)?'block':'container';}['_diffModelTokens'](_0x24389f,_0x57c874){const _0x1771d4=_0x32551e(_0x24389f,_0x57c874,{'comparator':ht});this['_handleUnclosedBlockOpeningTags'](_0x1771d4);const _0xba06f5=_0x1771d4['flatMap'](_0x1d0283=>{const _0x3e45dd=_0x1d0283['added']?'added':_0x1d0283['removed']?'removed':'unchanged';return _0x1d0283['value']['map'](_0x20239b=>({'token':_0x20239b,'change':_0x3e45dd}));});let _0x351410=0x0;for(const _0x5bba51 of _0xba06f5)'added'!=_0x5bba51['change']&&('unchanged'==_0x5bba51['change']&&(_0x5bba51['before']=_0x24389f[_0x351410]),_0x351410++);return _0xba06f5;}['_handleUnclosedBlockOpeningTags'](_0x54ffd2){for(let _0x5025f1=0x0;_0x5025f1<_0x54ffd2['length']-0x1;_0x5025f1++)if(_0x54ffd2[_0x5025f1]['removed']&&_0x54ffd2[_0x5025f1+0x1]['added']){const _0x37a032=this['_findUnclosedBlockOpeningToken'](_0x54ffd2[_0x5025f1]['value']);if(null!==_0x37a032){const _0x3069f7=this['_findUnclosedBlockOpeningToken'](_0x54ffd2[_0x5025f1+0x1]['value']),_0x4183c9=_0x54ffd2[_0x5025f1]['value']['splice'](_0x37a032),_0x17da07=_0x54ffd2[_0x5025f1+0x1]['value']['splice'](_0x3069f7),_0x3a5e9d=[_0x17da07['shift']()];_0x4183c9['shift']();const _0x4c0273={'value':_0x4183c9,'removed':!0x0},_0x41e8b2={'value':_0x17da07,'added':!0x0},_0x5a3ea8={'value':_0x3a5e9d};_0x54ffd2['splice'](_0x5025f1+0x2,0x0,_0x5a3ea8,_0x4c0273,_0x41e8b2);}}}['_findUnclosedBlockOpeningToken'](_0x4d000f){let _0x49fe44=0x0,_0x7866e6=-0x1;for(let _0x238c22=0x0;_0x238c22<_0x4d000f['length'];_0x238c22++){const _0x259a52=_0x4d000f[_0x238c22];'element'==_0x259a52['type']&&'block'==_0x259a52['category']&&(_0x49fe44+=_0x259a52['isStart']?0x1:-0x1,_0x259a52['isStart']&&(_0x7866e6=_0x238c22));}return 0x0===_0x49fe44?null:_0x7866e6;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x264f27=0x0;_0x264f27<this['_diffItems']['length'];_0x264f27++){const _0x3336a6=this['_diffItems'][_0x264f27]['change'],_0x21bd1a=[];_0x21bd1a['push'](this['_diffItems'][_0x264f27]);let _0x422216=_0x264f27+0x1;for(;this['_diffItems'][_0x422216]&&this['_diffItems'][_0x422216]['change']==_0x3336a6;)_0x21bd1a['push'](this['_diffItems'][_0x422216]),_0x422216++,_0x264f27++;const _0x5827bb=_0x21bd1a['map'](_0x402b8f=>_0x402b8f['token']);if('unchanged'==_0x3336a6)_0x21bd1a['map'](_0xf7f649=>_0xf7f649['before'])['forEach'](_0xab1c38=>this['_traverseOverItem'](_0xab1c38));else{if('removed'==_0x3336a6){if(this['_markDeletions']){const _0x265154=this['_path']['slice']();_0x5827bb['forEach'](_0x2d61b4=>this['_traverseOverItem'](_0x2d61b4));const _0x4e484b=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x265154,'end':_0x4e484b}});}else this['_handleChanged'](_0x5827bb,!0x0,this['_path']['slice']());}else{const _0x230069=_0x5827bb['filter'](_0x5cee7f=>'element'!=_0x5cee7f['type']||'container'!=_0x5cee7f['category']);this['_handleChanged'](_0x230069,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x504420=0x0;_0x504420<this['_diffItems']['length'];_0x504420++){const _0x6b8188=this['_diffItems'][_0x504420]['change'],_0x30fc3a=[];_0x30fc3a['push'](this['_diffItems'][_0x504420]);let _0x365b59=_0x504420+0x1;for(;this['_diffItems'][_0x365b59]&&this['_diffItems'][_0x365b59]['change']==_0x6b8188;)_0x30fc3a['push'](this['_diffItems'][_0x365b59]),_0x365b59++,_0x504420++;const _0x159f2f=_0x30fc3a['map'](_0x1f9573=>_0x1f9573['token']);if('unchanged'==_0x6b8188){const _0x374f91=_0x30fc3a['map'](_0x1c245b=>_0x1c245b['before']);this['_handleUnchanged'](_0x374f91,_0x159f2f);}else('added'==_0x6b8188||this['_markDeletions'])&&_0x159f2f['forEach'](_0x351377=>{'element'==_0x351377['type']&&_0x351377['isStart']&&this['_splitPostponedData']['has'](_0x351377['element'])&&this['_handleSplitPostponedData'](_0x351377['element'],this['_path']),this['_traverseOverItem'](_0x351377);});}}['_handleSplitPostponedData'](_0xa2c3f1,_0x267542){const _0x46b4d5=this['_splitPostponedData']['get'](_0xa2c3f1);for(const _0x3e454f of _0x46b4d5)'rename'==_0x3e454f['type']?this['_operationsData']['push']({'type':'rename','path':_0x267542['slice'](),'oldName':_0x3e454f['oldValue'],'newName':_0xa2c3f1['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x267542['slice'](),'howMany':0x1,'key':_0x3e454f['key'],'oldValue':_0x3e454f['oldValue'],'newValue':JSON['stringify'](_0xa2c3f1['getAttribute'](_0x3e454f['key'])??null)});}['_calculateMarkersOperationsData'](_0x30519e,_0x7ecdef){const _0xf49861={};for(const [_0x282cd1]of _0x30519e)_0xf49861[_0x282cd1]=null;for(const [_0x1c25e7,_0x3ac43f]of _0x7ecdef)_0xf49861[_0x1c25e7]=_0x3ac43f;const _0x317edb=Object['entries'](_0xf49861)['map'](([_0x4e23ab,_0xbf0eda])=>({'type':'marker','name':_0x4e23ab,'range':_0xbf0eda?{'start':_0xbf0eda['start']['path']['slice'](),'end':_0xbf0eda['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x317edb);}['_handleUnwraps'](){const _0xffc5db=new Map(),_0x2dbb2d=[],_0x220ca5=[0x0];let _0x4e6aeb=this['_diffItems']['length']+0x1;for(let _0xda1b6a=this['_diffItems']['length']-0x1;_0xda1b6a>=0x0;_0xda1b6a--){const {token:_0x30ec44,before:_0x51917a,change:_0x4add97}=this['_diffItems'][_0xda1b6a];if('removed'!=_0x4add97&&(_0x4e6aeb=_0xda1b6a),'element'!=_0x30ec44['type']||'container'!=_0x30ec44['category']||'added'==_0x4add97)continue;const _0xbe23ae=_0x51917a?_0x51917a['element']:_0x30ec44['element'];if(_0x30ec44['isStart']){const _0x24a0c0=_0xffc5db['get'](_0xbe23ae),_0x3753c2=this['_diffItems'][_0x24a0c0];('removed'==_0x4add97||'removed'==_0x3753c2['change'])&&_0x4e6aeb<_0x24a0c0&&(this['_operationsData']['push']({'type':'unwrap','path':_0xbe23ae['getPath'](),'howMany':_0xbe23ae['maxOffset']+_0x220ca5[0x0]}),_0x220ca5['shift'](),_0x220ca5[0x0]+=_0xbe23ae['maxOffset']-0x1,_0x2dbb2d['push'](_0xda1b6a),_0x2dbb2d['push'](_0x24a0c0));}else _0xffc5db['set'](_0xbe23ae,_0xda1b6a),_0x220ca5['unshift'](0x0);}_0x2dbb2d['sort']((_0x1e5b74,_0x52db98)=>_0x52db98-_0x1e5b74),_0x2dbb2d['forEach'](_0x36c150=>{const _0x13d47d=this['_diffItems'][_0x36c150];'removed'==_0x13d47d['change']?this['_diffItems']['splice'](_0x36c150,0x1):(_0x13d47d['change']='added',delete _0x13d47d['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x1176d3=[];for(let _0x2fbcc6=0x0;_0x2fbcc6<this['_diffItems']['length'];_0x2fbcc6++){const {change:_0x4f65fd,token:_0x5470cf}=this['_diffItems'][_0x2fbcc6];if('added'==_0x4f65fd&&'element'==_0x5470cf['type']&&'container'==_0x5470cf['category']){if(_0x5470cf['isStart'])_0x1176d3['push'](this['_path']['slice']());else{if(!_0x5470cf['isStart']){const _0x32d7a7=_0x1176d3['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x32d7a7,'end':this['_path']['slice']()},'token':_0x5470cf}),this['_path'][this['_path']['length']-0x1]=_0x32d7a7[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x4f65fd||this['_markDeletions'])&&this['_traverseOverItem'](_0x5470cf);}}['_handleUnchanged'](_0x2045fb,_0x4effef){for(let _0x5bcff2=0x0;_0x5bcff2<_0x2045fb['length'];_0x5bcff2++){const _0xe6cc63=_0x2045fb[_0x5bcff2];if('element'==_0xe6cc63['type']&&_0xe6cc63['isStart']){const _0x106762=_0x4effef[_0x5bcff2];'block'==_0xe6cc63['category']&&this['_handleElementRename'](_0xe6cc63['element'],_0x106762['element'],this['_path']),this['_handleElementAttributeChanges'](_0xe6cc63['element'],_0x106762['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x106762);}else{if('element'!=_0xe6cc63['type']||_0xe6cc63['isStart']){if('text'==_0xe6cc63['type']){const _0x8ba8d3=this['_path']['slice'](),_0x210e8b=[],_0x24601b=[];for(;_0x2045fb[_0x5bcff2]&&'text'==_0x2045fb[_0x5bcff2]['type'];)_0x210e8b['push'](_0x2045fb[_0x5bcff2]),_0x24601b['push'](_0x4effef[_0x5bcff2]),this['_path'][this['_path']['length']-0x1]+=_0x2045fb[_0x5bcff2]['data']['length'],_0x5bcff2++;_0x5bcff2--,this['_handleTextAttributeChanges'](_0x210e8b,_0x24601b,_0x8ba8d3);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x33002b,_0x4d705f,_0x302e6b){const _0x997934=[],_0xfe6aab=[],_0x2a250c=_0x302e6b['slice']();let _0x4e8646=this['_parents']['length']-0x1;for(let _0x18af4e=0x0;_0x18af4e<_0x33002b['length'];_0x18af4e++){const _0x17dfba=_0x33002b[_0x18af4e],_0x4cadf6=_0x302e6b['slice']();'element'!=_0x17dfba['type']||_0x17dfba['isStart']?'element'==_0x17dfba['type']&&_0x17dfba['isStart']?(_0x302e6b['push'](0x0),_0x4e8646++,_0xfe6aab['push']({'before':_0x4cadf6,'after':_0x302e6b['slice'](),'index':_0x18af4e})):_0x302e6b[_0x302e6b['length']-0x1]+=_0x17dfba['data']['length']:(_0x302e6b['pop'](),_0x302e6b[_0x302e6b['length']-0x1]++,_0x4e8646--,_0xfe6aab['length']?_0xfe6aab['pop']():_0x997934['push']({'before':_0x4cadf6,'after':_0x302e6b['slice'](),'index':_0x18af4e}));}if(_0xfe6aab['length']!==_0x997934['length'])throw new _0x398820('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x33002b,'isRemove':_0x4d705f});const _0x4d42c8=[{'after':_0x2a250c['slice'](),'index':-0x1},..._0x997934,..._0xfe6aab,{'before':_0x302e6b['slice'](),'index':_0x33002b['length']}];if(_0x4d705f){for(let _0x2096bd=_0x4d42c8['length']-0x1;_0x2096bd>=0x1;_0x2096bd--){const _0x5d9aa6=_0x4d42c8[_0x2096bd-0x1]['after'],_0x15b50=_0x4d42c8[_0x2096bd]['before'],_0x576267=_0x15b50[_0x15b50['length']-0x1]-_0x5d9aa6[_0x5d9aa6['length']-0x1];_0x576267&&(this['_operationsData']['push']({'type':'remove','path':_0x5d9aa6,'howMany':_0x576267}),_0x15b50[_0x15b50['length']-0x1]-=_0x576267);}for(const {before:_0x5a7299}of _0x997934)this['_operationsData']['push']({'type':'merge','path':_0x5a7299});}else for(let _0x263351=0x0;_0x263351<_0x4d42c8['length']-0x1;_0x263351++){const _0x5ad52d=_0x4d42c8[_0x263351]['after'],_0x38d54d=_0x4d42c8[_0x263351+0x1]['before'],_0x2c741b=_0x4d42c8[_0x263351]['index']+0x1,_0x18a554=_0x4d42c8[_0x263351+0x1]['index'];if(_0x2c741b!==_0x18a554&&this['_operationsData']['push']({'type':'insert','path':_0x5ad52d,'tokens':_0x33002b['slice'](_0x2c741b,_0x18a554)}),_0x263351<_0x997934['length']){this['_operationsData']['push']({'type':'split','path':_0x38d54d});const _0x54f2a7=_0x33002b[_0xfe6aab[_0xfe6aab['length']-0x1-_0x263351]['index']],_0x252abc=this['_parents'][_0x4e8646]['element'];_0x252abc['name']!=_0x54f2a7['element']['name']&&this['_addSplitPostponedData'](_0x54f2a7['element'],{'type':'rename','oldValue':_0x252abc['name']});const _0x15a406=this['_getAttributeChanges'](_0x252abc['getAttributes'](),_0x54f2a7['element']['getAttributes']());for(const _0x2ef760 in _0x15a406){const _0x10a8d3=_0x15a406[_0x2ef760]['oldValue'];this['_addSplitPostponedData'](_0x54f2a7['element'],{'type':'attribute','key':_0x2ef760,'oldValue':_0x10a8d3});}}}}['_addSplitPostponedData'](_0x1b57f5,_0x915980){const _0x3b0aa9=this['_splitPostponedData']['get'](_0x1b57f5)||[];_0x3b0aa9['push'](_0x915980),this['_splitPostponedData']['set'](_0x1b57f5,_0x3b0aa9);}['_traverseOverItem'](_0x4510cd){'element'==_0x4510cd['type']&&_0x4510cd['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x4510cd)):'element'!=_0x4510cd['type']||_0x4510cd['isStart']?'text'==_0x4510cd['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x4510cd['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x10dbf8,_0x4f277e,_0x59a1f6){_0x10dbf8['name']!=_0x4f277e['name']&&this['_operationsData']['push']({'type':'rename','path':_0x59a1f6['slice'](),'oldName':_0x10dbf8['name'],'newName':_0x4f277e['name']});}['_handleElementAttributeChanges'](_0x229d49,_0x2fe40f,_0x171ce8){const _0x5be197=this['_getAttributeChanges'](_0x229d49['getAttributes'](),_0x2fe40f['getAttributes']());for(const _0x2d47cb in _0x5be197){const {oldValue:_0x44f2f0,newValue:_0x44009d}=_0x5be197[_0x2d47cb];this['_operationsData']['push']({'type':'attribute','path':_0x171ce8['slice'](),'howMany':0x1,'key':_0x2d47cb,'oldValue':_0x44f2f0,'newValue':_0x44009d});}}['_handleTextAttributeChanges'](_0x5ce969,_0x27c8ee,_0x3a3eea){const _0x4a8694=this['_operationsData'],_0x3146bb=_0x5ce969[0x0]['parent'],_0xa51283=_0x5ce969[0x0]['offset'],_0x3dac16=_0x27c8ee[0x0]['parent'],_0x55942f=_0x27c8ee[0x0]['offset'],_0x48bde1=_0x5ce969['reduce']((_0x1105bc,_0x4711d8)=>_0x1105bc+_0x4711d8['data']['length'],0x0),_0x3c62b4=this['_getAttrsForOffsets'](_0x3146bb,_0xa51283,_0x48bde1),_0x45851a=this['_getAttrsForOffsets'](_0x3dac16,_0x55942f,_0x48bde1),_0x409ed0={};for(let _0x2d89c6=0x0;_0x2d89c6<_0x48bde1;_0x2d89c6++){const _0x482ed4=_0x3c62b4[_0xa51283+_0x2d89c6],_0xf4514=_0x45851a[_0x55942f+_0x2d89c6],_0x1e0f67=this['_getAttributeChanges'](_0x482ed4,_0xf4514);for(const _0x492453 in _0x409ed0)_0x1e0f67[_0x492453]||_0x2055b8(_0x492453);for(const _0x251bef in _0x1e0f67){const {oldValue:_0x335258,newValue:_0x4e92f0}=_0x1e0f67[_0x251bef],_0x83fb23=_0x409ed0[_0x251bef];_0x83fb23?_0x83fb23['oldValue']==_0x335258&&_0x83fb23['newValue']==_0x4e92f0?_0x83fb23['length']++:(_0x2055b8(_0x251bef),_0x409ed0[_0x251bef]={'oldValue':_0x335258,'newValue':_0x4e92f0,'start':_0x2d89c6,'length':0x1}):_0x409ed0[_0x251bef]={'oldValue':_0x335258,'newValue':_0x4e92f0,'start':_0x2d89c6,'length':0x1};}}for(const _0x417f8a in _0x409ed0)_0x2055b8(_0x417f8a);function _0x2055b8(_0x52d097){const _0x4690fd=_0x409ed0[_0x52d097],_0x2f57d4=_0x3a3eea['slice']();_0x2f57d4[_0x2f57d4['length']-0x1]+=_0x4690fd['start'],_0x4a8694['push']({'type':'attribute','path':_0x2f57d4,'howMany':_0x4690fd['length'],'key':_0x52d097,'oldValue':_0x4690fd['oldValue'],'newValue':_0x4690fd['newValue']}),delete _0x409ed0[_0x52d097];}}['_getAttributeChanges'](_0x5c01f4,_0x547f95){const _0x414827={};for(const [_0x5b6d24,_0x85b85b]of _0x5c01f4)_0x414827[_0x5b6d24]={'oldValue':JSON['stringify'](_0x85b85b),'newValue':'null'};for(const [_0x27181b,_0xf83280]of _0x547f95){const _0x2e47ad=JSON['stringify'](_0xf83280);_0x414827[_0x27181b]?_0x414827[_0x27181b]['oldValue']==_0x2e47ad?delete _0x414827[_0x27181b]:_0x414827[_0x27181b]['newValue']=_0x2e47ad:_0x414827[_0x27181b]={'oldValue':'null','newValue':_0x2e47ad};}return delete _0x414827[lt],_0x414827;}['_getAttrsForOffsets'](_0x5131a1,_0x409d46,_0x542ea4){const _0x3b3541=new Array(_0x409d46+_0x542ea4);let _0x433cb6=_0x5131a1['getChildAtOffset'](_0x409d46),_0x46d1d8=_0x433cb6['startOffset'];for(;_0x433cb6&&_0x46d1d8<_0x409d46+_0x542ea4;){const _0x40c3c8=Array['from'](_0x433cb6['getAttributes']());_0x3b3541['fill'](_0x40c3c8,_0x46d1d8,_0x46d1d8+_0x433cb6['offsetSize']),_0x46d1d8+=_0x433cb6['offsetSize'],_0x433cb6=_0x433cb6['nextSibling'];}return _0x3b3541;}['_getPositionFromAnchorAndPath'](_0x45bfad,_0x140ae3){const _0x2a9bd8=[..._0x45bfad['path']['slice'](0x0,-0x1),_0x45bfad['offset']+_0x140ae3[0x0],..._0x140ae3['slice'](0x1)];return new _0x1dcc9f(_0x45bfad['root'],_0x2a9bd8);}['_makeModelFromTokens'](_0xb0e985){const _0x2f7cd2=[];let _0x4dc16d=null;for(const _0x1a4e42 of _0xb0e985)if('element'!=_0x1a4e42['type']||_0x1a4e42['isStart']||_0x4dc16d!=_0x1a4e42['element']){if(!_0x4dc16d){if('text'==_0x1a4e42['type']){const _0x14e0e9=_0x1dcc9f['_createAt'](_0x1a4e42['parent'],_0x1a4e42['offset']),_0x2e1028=_0x38d06d['_createFromPositionAndShift'](_0x14e0e9,_0x1a4e42['data']['length']),_0x424919=Array['from'](_0x2e1028['getItems']())['map'](_0x597f72=>new _0x15387e(_0x597f72['data'],_0x597f72['getAttributes']()));_0x2f7cd2['push'](..._0x424919);}else{_0x4dc16d=_0x1a4e42['element'];const _0x4fd23b=_0x1a4e42['element']['_clone'](!0x0);_0x4fd23b['_removeAttribute'](lt);for(const _0x44f724 of this['_editor']['model']['createRangeIn'](_0x4fd23b)['getItems']())_0x44f724['is']('element')&&_0x44f724['_removeAttribute'](lt);_0x2f7cd2['push'](_0x4fd23b);}}}else _0x4dc16d=null;return _0x2f7cd2;}}function ht(_0x4a9f4a,_0xdc6722){return _0x4a9f4a['type']===_0xdc6722['type']&&(_0x4a9f4a['limitId']===_0xdc6722['limitId']&&('text'==_0x4a9f4a['type']?_0x4a9f4a['data']==_0xdc6722['data']:function(_0x4ecf73,_0x7aa905){if(_0x4ecf73['isStart']!=_0x7aa905['isStart'])return!0x1;if(_0x4ecf73['isStart']&&_0x4ecf73['elementId']!=_0x7aa905['elementId'])return!0x1;if(_0x4ecf73['category']!=_0x7aa905['category'])return!0x1;if('block'==_0x4ecf73['category'])return!0x0;if('container'==_0x4ecf73['category']&&_0x4ecf73['elementId']!=_0x7aa905['elementId'])return!0x1;return _0x4ecf73['element']['name']==_0x7aa905['element']['name'];}(_0x4a9f4a,_0xdc6722)));}function dt(_0x1c16a5){return K({'name':_0x1c16a5['name'],...Object['fromEntries'](_0x1c16a5['getAttributes']())});}export{AriaDescriptionView,CollaborationUserColor,J as ConfirmMixin,lt as DATA_ID_MODEL_ATTRIBUTE,ut as DATA_ID_VIEW_ATTRIBUTE,DocumentCompare,DocumentDiff,ot as FOCUS_ANNOTATION_KEYSTROKE,LateFocusButtonView,LateFocusDropdownButtonView,Permissions,SuggestionsConversion,User,UserView,Users,$ as fixElementSuggestionRange,W as getAllMarkersDomElementsSorted,R as getDateTimeFormatter,z as getMarkerDomElement,K as hashObject,it as sanitizeEditorConfig,rt as setupThreadKeyboardNavigation,O as splitSuggestionMarkerName,nt as surroundingMarkersDetector,j as trimHtml};
|
|
23
|
+
import{ContextPlugin as _0xa091fc,Editor as _0x4b94ca,Plugin as _0x5a75c7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xf213dd,Collection as _0xb7c8aa,uid as _0x491f85,toArray as _0x481ca5,first as _0x58753a,FocusTracker as _0x1ba31b,KeystrokeHandler as _0x257e0a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x91f963,IconView as _0x239192,ButtonView as _0x22536d,DropdownButtonView as _0x31e24f,FocusCycler as _0x32eadb,isViewWithFocusCycler as _0xf510de}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x5352c7,IconCheck as _0x2ed4a4,IconCancel as _0x3a876b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x53350e,toWidget as _0x5364cc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x47580d}from'luxon';import{InsertOperation as _0x5a190c,MoveOperation as _0x521e13,ModelPosition as _0x1e77f0,ModelRange as _0xac2e06,MarkerOperation as _0x59b104,MergeOperation as _0x8945a8,SplitOperation as _0x370e0f,RenameOperation as _0x1e13d1,AttributeOperation as _0x2448f6,ModelTreeWalker as _0x318fdd,ModelText as _0x5e08d6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x26bc3a}from'diff';class Permissions extends _0xa091fc{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x286a8e,_0x1df6fe){let _0x58bcfd;if(_0x1df6fe||(_0x1df6fe=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x1df6fe?_0x58bcfd=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x58bcfd=this['context']['editors']['find'](_0x5024f3=>_0x5024f3['config']['get']('collaboration.channelId')==_0x1df6fe)),!_0x58bcfd)throw new _0xf213dd('permissions-set-permissions-invalid-channel-id',null);const _0x2014e8=_0x58bcfd['plugins'],_0x1f1e91=_0x2014e8['has']('CommentsRepository')?_0x2014e8['get']('CommentsRepository'):void 0x0,_0x5b071b=_0x2014e8['has']('CommentsOnly')&&_0x2014e8['get']('CommentsOnly'),_0x158fd7=_0x286a8e['includes']('document:write'),_0x47c136=_0x286a8e['includes']('comment:modify_all'),_0x47a448=_0x286a8e['includes']('comment:admin'),_0x4e7bd3=_0x286a8e['includes']('comment:write'),_0x39115d=_0x4e7bd3||_0x47a448,_0x3a3ac3=_0x39115d||_0x47c136,_0x40e094=_0x158fd7||_0x39115d;(_0x5b071b&&(_0x5b071b['isEnabled']=!_0x158fd7&&_0x3a3ac3),_0x58bcfd instanceof _0x4b94ca)&&(!(_0x158fd7||_0x3a3ac3&&_0x1f1e91)?_0x58bcfd['enableReadOnlyMode']('no-permissions'):_0x58bcfd['disableReadOnlyMode']('no-permissions'));if(_0x1f1e91){_0x1f1e91['setPermissions']({'admin':_0x47a448,'modifyAll':_0x47c136,'write':_0x4e7bd3,'resolve':_0x40e094},_0x1df6fe);const _0x4029fa=_0x58bcfd instanceof _0x4b94ca&&_0x58bcfd['commands']['get']('addCommentThread');_0x4029fa&&(_0x39115d?_0x4029fa['clearForceDisabled']('noPermissions'):_0x4029fa['forceDisabled']('noPermissions'));}}}function B(_0x5740c5,_0x3a0751){const t=_0x5740c5['t'];switch(_0x3a0751){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 _0xa091fc{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Permissions];}constructor(_0xe1e3f5){super(_0xe1e3f5),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0xb7c8aa(),this['_locale']=_0xe1e3f5['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:_0x51448f,name:_0x4cd088,..._0x505ffd}){if(!_0x51448f||'string'!=typeof _0x51448f)throw new _0xf213dd('users-add-invalid-id');if(this['users']['has'](_0x51448f))throw new _0xf213dd('users-add-duplicated-id',null,{'id':_0x51448f});const _0x4118f5=this['context']['config']['get']('users.getInitialsCallback'),_0x1b4fe2={..._0x505ffd,'id':_0x51448f,'name':N(this['_locale'],_0x4cd088),'color':this['_getNextColor']()};_0x1b4fe2['name']=N(this['_locale'],_0x1b4fe2['name']);const _0x8dfa73=new User(_0x1b4fe2,_0x4118f5);return this['users']['add'](_0x8dfa73),_0x8dfa73;}['getUser'](_0x571489){return this['users']['get'](_0x571489);}['useAnonymousUser'](){const _0x3b4205=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x3b4205);}['defineMe'](_0x1b181a){if(this['_myId'])throw new _0xf213dd('users-me-already-defined',null);const _0x3fd223=this['getUser'](_0x1b181a);if(!_0x3fd223)throw new _0xf213dd('users-me-missing-user',null);this['_myId']=_0x1b181a,_0x3fd223['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x14037d=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x14037d&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x82c0c2=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x82c0c2,'name':B(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class User{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x1b19f8,_0x10d198){this['id']=_0x1b19f8['id'],this['color']=_0x1b19f8['color'],this['name']=_0x1b19f8['name'],this['initials']=_0x10d198?_0x10d198(this['name']):this['_computeInitials'](),this['avatar']=_0x1b19f8['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x1b7a51=this['name']['split']('\x20')['filter'](_0x33b178=>/^[\p{Letter}]/u['test'](_0x33b178));return 0x1===_0x1b7a51['length']?this['_getInitial'](_0x1b7a51[0x0]):0x0===_0x1b7a51['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x1b7a51[0x0])+this['_getInitial'](_0x1b7a51[_0x1b7a51['length']-0x1]);}['_getInitial'](_0x144a8a){return String['fromCodePoint'](_0x144a8a['codePointAt'](0x0))['toUpperCase']();}}function N(_0x58150a,_0x68d887=''){return''==(_0x68d887=_0x68d887['trim']())?B(_0x58150a,'Anonymous'):_0x68d887;}class CollaborationUserColor{['_id'];constructor(_0xce6303){this['_id']=_0xce6303;}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'];}['getColorVariable'](){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}['getColorAlphaVariable'](){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}}class UserView extends _0x91f963{['name'];['notificationView'];constructor(_0x34c179,_0x40dc05,_0x4052e9){super(_0x34c179),this['name']=_0x40dc05['name'],this['notificationView']=null;const _0x3f9f6f=['ck','ck-user'],_0x543968=['ck','ck-user__img'];if(_0x40dc05['isAnonymous']&&_0x543968['push']('ck-user__anonymous'),!_0x40dc05['isAnonymous']&&_0x40dc05['isMe']&&_0x3f9f6f['push']('ck-user_me'),_0x40dc05['avatar']&&_0x543968['push']('ck-user__avatar'),_0x4052e9){const _0x433e31=new _0x239192();_0x433e31['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x433e31['content']=_0x5352c7,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4052e9},'children':[_0x433e31]};}const _0x327907=[{'tag':'div','attributes':{'class':_0x543968,'style':{'background-image':_0x40dc05['avatar']?'url(\x27'+_0x40dc05['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x40dc05['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x40dc05['name']},'children':[{'text':_0x40dc05['initials']}]}];this['notificationView']&&_0x327907['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x3f9f6f,'data-user-id':_0x40dc05['id']},'children':_0x327907});}}class AriaDescriptionView extends _0x91f963{['id'];constructor(_0x33ec49,_0x3b030b){super(_0x33ec49),this['id']='ck-aria-description-'+_0x491f85(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x3b030b}]});}}class LateFocusButtonView extends _0x22536d{['render'](){super['render'](),U(this);}}class LateFocusDropdownButtonView extends _0x31e24f{['render'](){super['render'](),U(this);}}function U(_0xddbf04){_0xddbf04['listenTo'](_0xddbf04['element'],'mousedown',(_0x1d4070,_0x13396b)=>{_0x13396b['stopPropagation'](),_0x13396b['preventDefault']();}),_0xddbf04['listenTo'](_0xddbf04['element'],'mouseup',()=>{_0xddbf04['element']['focus']();});}function O(_0x5158e3){const _0x19b67f=_0x5158e3['split'](':');return{'group':_0x19b67f[0x0],'type':_0x19b67f[0x1],'subType':_0x19b67f['length']>=0x5?_0x19b67f[0x2]:null,'id':_0x19b67f['length']<0x5?_0x19b67f[0x2]:_0x19b67f[0x3],'authorId':_0x19b67f['length']<0x5?_0x19b67f[0x3]:_0x19b67f[0x4],'markerCount':0x6==_0x19b67f['length']?_0x19b67f[0x5]:null};}function $(_0x440242,_0x97c743){const _0xb0c524=_0x440242['end']['nodeBefore'];if(_0xb0c524&&_0xb0c524['is']('element')&&_0x97c743['schema']['isBlock'](_0xb0c524)&&!_0x97c743['schema']['isObject'](_0xb0c524)){const _0x4d8304=_0x97c743['createPositionAt'](_0xb0c524,'end');return _0x97c743['createRange'](_0x440242['start'],_0x4d8304);}return _0x440242;}class SuggestionsConversionAlignment extends _0x5a75c7{['afterInit'](){const _0x57917f=this['editor'];if(!_0x57917f['plugins']['has']('AlignmentEditing'))return;_0x57917f['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const F=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class SuggestionsConversionBasicStyles extends _0x5a75c7{['afterInit'](){const _0x44ced0=this['editor'],_0x3ef5d1=_0x44ced0['plugins']['get']('SuggestionsConversion');for(const _0x1fcfcb of F){if(!_0x44ced0['plugins']['has'](_0x1fcfcb))continue;const _0x1a4d90=_0x1fcfcb['slice'](0x0,-0x7)['toLowerCase']();_0x3ef5d1['registerInlineAttribute'](_0x1a4d90);}}}class SuggestionsConversionBookmark extends _0x5a75c7{['afterInit'](){const _0x16034b=this['editor'],_0x45fe59=_0x16034b['plugins']['get']('SuggestionsConversion');_0x16034b['plugins']['has']('BookmarkEditing')&&_0x45fe59['registerBlockAttribute']('bookmarkId');}}const H=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class SuggestionsConversionFont extends _0x5a75c7{['afterInit'](){const _0x4ecee2=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x410101,commandName:_0xda633c}of H)this['editor']['plugins']['has'](_0x410101)&&_0x4ecee2['registerInlineAttribute'](_0xda633c);}}class SuggestionsConversionFootnotes extends _0x5a75c7{['afterInit'](){const {editor:_0x41c471}=this;if(!_0x41c471['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x237a55=_0x41c471['plugins']['get']('SuggestionsConversion');_0x237a55['registerBlockAttribute']('footnotesListStyle'),_0x237a55['registerBlockAttribute']('footnotesListStart');}}class SuggestionsConversionHighlight extends _0x5a75c7{['afterInit'](){const _0x114f24=this['editor'];if(!_0x114f24['plugins']['has']('HighlightEditing'))return;_0x114f24['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class SuggestionsConversionHtmlEmbed extends _0x5a75c7{['afterInit'](){const _0x55bb3b=this['editor'];if(!_0x55bb3b['plugins']['has']('HtmlEmbed'))return;_0x55bb3b['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class SuggestionsConversionImage extends _0x5a75c7{['afterInit'](){const _0x2f83d0=this['editor'];if(!_0x2f83d0['plugins']['has']('ImageEditing'))return;const _0x3447d9=_0x2f83d0['plugins']['get']('SuggestionsConversion');_0x3447d9['registerBlockAttribute']('src'),_0x2f83d0['plugins']['has']('ImageResize')&&_0x3447d9['registerBlockAttribute']('resizedWidth'),_0x2f83d0['plugins']['has']('ImageTextAlternativeEditing')&&_0x3447d9['registerBlockAttribute']('alt'),_0x2f83d0['plugins']['has']('PictureEditing')&&_0x3447d9['registerBlockAttribute']('sources'),_0x2f83d0['plugins']['has']('ImageSizeAttributes')&&(_0x3447d9['registerBlockAttribute']('width'),_0x3447d9['registerBlockAttribute']('height'));}}class SuggestionsConversionIndent extends _0x5a75c7{['afterInit'](){const _0x138dbb=this['editor'],_0x29cdbe=_0x138dbb['plugins']['get']('SuggestionsConversion');_0x138dbb['plugins']['has']('IndentBlock')&&(_0x29cdbe['registerBlockAttribute']('blockIndent'),_0x138dbb['plugins']['has']('ListEditing')&&(_0x29cdbe['registerBlockAttribute']('blockIndentList'),_0x29cdbe['registerBlockAttribute']('blockIndentListItem')));}}class SuggestionsConversionLineHeight extends _0x5a75c7{['afterInit'](){const _0x51fc8e=this['editor'];if(!_0x51fc8e['plugins']['has']('LineHeight'))return;_0x51fc8e['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class SuggestionsConversionLink extends _0x5a75c7{['afterInit'](){const _0xbd934c=this['editor'];if(!_0xbd934c['plugins']['has']('LinkEditing'))return;const _0x17e24f=_0xbd934c['plugins']['get']('SuggestionsConversion'),_0x32e5fc=_0xbd934c['commands']['get']('link');_0x17e24f['registerInlineAttribute']('linkHref');for(const _0x444b3a of _0x32e5fc['manualDecorators'])_0x17e24f['registerInlineAttribute'](_0x444b3a['id']);}}class SuggestionsConversionList extends _0x5a75c7{['afterInit'](){const _0x1f21e1=this['editor'];if(!_0x1f21e1['plugins']['has']('ListEditing'))return;const _0x1ef048=_0x1f21e1['plugins']['get']('SuggestionsConversion'),_0x3f7b2d=_0x1f21e1['plugins']['has']('TodoListEditing');_0x1ef048['registerBlockAttribute']('listItemId'),_0x1ef048['registerBlockAttribute']('listType'),_0x1ef048['registerBlockAttribute']('listIndent'),_0x3f7b2d&&_0x1ef048['registerBlockAttribute']('todoListChecked');}}class SuggestionsConversionListProperties extends _0x5a75c7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x141ba7=this['editor']['config']['get']('list.properties'),_0x13978d=this['editor']['plugins']['get']('SuggestionsConversion');_0x141ba7['styles']&&_0x13978d['registerBlockAttribute']('listStyle'),_0x141ba7['reversed']&&_0x13978d['registerBlockAttribute']('listReversed'),_0x141ba7['startIndex']&&_0x13978d['registerBlockAttribute']('listStart');}}class SuggestionsConversionMultiLevelList extends _0x5a75c7{['afterInit'](){const _0x104b2a=this['editor'],_0x278cd5=_0x104b2a['plugins']['get']('SuggestionsConversion');_0x104b2a['plugins']['has']('MultiLevelList')&&_0x278cd5['registerBlockAttribute']('listMarkerStyle');}}class SuggestionsConversionStylesDropdown extends _0x5a75c7{['afterInit'](){const _0xfd2dbe=this['editor'];if(!_0xfd2dbe['plugins']['has']('Style')||!_0xfd2dbe['plugins']['has']('DataSchema')||!_0xfd2dbe['config']['get']('style.definitions'))return;const _0x7c17d=_0xfd2dbe['plugins']['get']('SuggestionsConversion'),_0x4a7da1=_0xfd2dbe['config']['get']('style.definitions'),_0x13c6b8=_0xfd2dbe['plugins']['get']('GeneralHtmlSupport'),_0xb22b88=_0xfd2dbe['plugins']['get']('StyleUtils')['normalizeConfig'](_0xfd2dbe['plugins']['get']('DataSchema'),_0x4a7da1),_0x4f9f3e=new Set();for(const _0x17db5b of _0xb22b88['block']){const _0x22593b=_0x13c6b8['getGhsAttributeNameForElement'](_0x17db5b['element']);_0x4f9f3e['add'](_0x22593b);}const _0x1c3361=new Set();for(const _0x54a4f6 of _0xb22b88['inline']){const _0x2bca62=_0x13c6b8['getGhsAttributeNameForElement'](_0x54a4f6['element']);_0x1c3361['add'](_0x2bca62);for(const _0xbe0193 of _0x54a4f6['ghsAttributes'])_0x1c3361['add'](_0xbe0193);}for(const _0x59df67 of _0x4f9f3e)_0x7c17d['registerBlockAttribute'](_0x59df67);for(const _0x3cf55b of _0x1c3361)_0x7c17d['registerInlineAttribute'](_0x3cf55b);}}class SuggestionsConversionTableHeadings extends _0x5a75c7{['afterInit'](){const _0x371e85=this['editor'];if(!_0x371e85['plugins']['has']('TableEditing'))return;const _0x3e82b1=_0x371e85['plugins']['get']('SuggestionsConversion');_0x3e82b1['registerBlockAttribute']('headingRows'),_0x3e82b1['registerBlockAttribute']('headingColumns');}}class SuggestionsConversionTableProperties extends _0x5a75c7{['afterInit'](){const {plugins:_0x4ac9ea}=this['editor'];if(!_0x4ac9ea['has']('TablePropertiesEditing'))return;const _0x5a621c=_0x4ac9ea['get']('SuggestionsConversion'),_0x1d6c71=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x27603e of _0x1d6c71)_0x5a621c['registerBlockAttribute'](_0x27603e);}}class SuggestionsConversionTableLayout extends _0x5a75c7{['afterInit'](){const _0x90bc3d=this['editor'],_0xc32ec1=_0x90bc3d['plugins']['get']('SuggestionsConversion');_0x90bc3d['plugins']['has']('TableLayout')&&_0xc32ec1['registerBlockAttribute']('tableType');}}class SuggestionsConversionUploadcare extends _0x5a75c7{['afterInit'](){const _0x1ea85c=this['editor'],_0x253277=this['editor']['plugins']['get']('SuggestionsConversion');_0x1ea85c['plugins']['has']('Uploadcare')&&_0x1ea85c['plugins']['has']('UploadcareImageEdit')&&_0x253277['registerBlockAttribute']('uploadcareImageId');}}class SuggestionsConversionShiftEnter extends _0x5a75c7{['afterInit'](){const _0x4724e0=this['editor'];if(!_0x4724e0['plugins']['has']('ShiftEnter'))return;const _0x407658=_0x4724e0['plugins']['get']('SuggestionsConversion'),_0x26cf02=(_0x2df7c0,_0x434796,_0x2071f5,_0x10781f)=>{if(_0x10781f&&!_0x2071f5['options']['showSuggestionHighlights'])return;if(!_0x2071f5['consumable']['test'](_0x434796['markerRange'],_0x2df7c0['name']))return;const _0x16d5ab=_0x4724e0['model'];for(const _0x4e4d55 of _0x434796['markerRange']['getItems']()){if(!_0x4e4d55['is']('element','softBreak'))continue;const _0x1d11bd='deletion'==_0x434796['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5c3a59,authorId:_0x3be151}=O(_0x434796['markerName']),_0x35a942=_0x2071f5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d11bd,'data-suggestion':_0x5c3a59,'data-author-id':_0x3be151}),_0x7ff98=_0x2071f5['mapper']['toViewPosition'](_0x16d5ab['createPositionBefore'](_0x4e4d55));!_0x10781f&&_0x407658['_activeMarkers']['includes'](_0x434796['markerName'])&&_0x2071f5['writer']['addClass']('ck-suggestion-marker--active',_0x35a942),_0x2071f5['writer']['insert'](_0x7ff98,_0x35a942),_0x2071f5['mapper']['bindElementToMarker'](_0x35a942,_0x434796['markerName']);}};_0x4724e0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2d3979,_0x492d6f,_0x62f2ce)=>{_0x26cf02(_0x2d3979,_0x492d6f,_0x62f2ce,!0x1);},{'priority':'high'}),_0x4724e0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4406aa,_0x263b19,_0xa9fd4b)=>{_0x26cf02(_0x4406aa,_0x263b19,_0xa9fd4b,!0x1);},{'priority':'high'}),_0x4724e0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2f2299,_0x22860f,_0x3847b2)=>{_0x26cf02(_0x2f2299,_0x22860f,_0x3847b2,!0x0);},{'priority':'high'}),_0x4724e0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x442bc3,_0x13d7ec,_0x1bcad2)=>{_0x26cf02(_0x442bc3,_0x13d7ec,_0x1bcad2,!0x0);},{'priority':'high'});}}class SuggestionsConversionMediaEmbed extends _0x5a75c7{['afterInit'](){const _0x335370=this['editor'];_0x335370['plugins']['has']('MediaEmbedEditing')&&(_0x335370['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2eb639,{writer:_0x3ef88b,options:_0x248acb})=>{if(_0x248acb['showSuggestionHighlights'])return _0x3ef88b['createEmptyElement']('div');},'converterPriority':'high'}),_0x335370['data']['downcastDispatcher']['on']('attribute:url:media',(_0x398b32,_0x162001,_0x17e646)=>{_0x17e646['options']['showSuggestionHighlights']&&_0x398b32['stop']();},{'priority':'high'}));}}class SuggestionsConversionTable extends _0x5a75c7{['afterInit'](){const _0x2f2648=this['editor'];if(!_0x2f2648['plugins']['has']('Table'))return;_0x2f2648['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe991c6,_0x3564b0,_0x3e3383)=>{((_0x105823,_0x67991,_0x288cb7)=>{if(!_0x288cb7['options']['showSuggestionHighlights'])return;const _0x80e7c8=_0x67991['item'];if(!_0x80e7c8||!_0x80e7c8['is']('element','tableCell'))return;const _0x157060=_0x288cb7['mapper']['toViewElement'](_0x80e7c8);if(_0x157060){const {id:_0x3582c5,authorId:_0x26056d}=O(_0x67991['markerName']);_0x53350e(_0x157060,_0x288cb7['writer'],(_0x3834ee,_0x14adc2,_0x1f555a)=>{_0x1f555a['addClass'](_0x481ca5(_0x14adc2['classes']),_0x3834ee),_0x1f555a['setAttribute']('data-suggestion',_0x3582c5,_0x3834ee),_0x1f555a['setAttribute']('data-author-id',_0x26056d,_0x3834ee);});}})(0x0,_0x3564b0,_0x3e3383);},{'priority':'highest'});}}class SuggestionsConversionHorizontalLine extends _0x5a75c7{['afterInit'](){const _0x51eaf4=this['editor'];_0x51eaf4['plugins']['has']('HorizontalLineEditing')&&_0x51eaf4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x326080,{writer:_0x4140fc,options:_0x12b6d5})=>{if(!_0x12b6d5['showSuggestionHighlights'])return null;const _0x42b872=_0x4140fc['createContainerElement']('div'),_0x226a84=_0x4140fc['createEmptyElement']('hr');return _0x4140fc['addClass']('ck-horizontal-line',_0x42b872),_0x4140fc['insert'](_0x4140fc['createPositionAt'](_0x42b872,0x0),_0x226a84),_0x42b872;},'converterPriority':'high'});}}class SuggestionsConversionTableCellProperties extends _0x5a75c7{['afterInit'](){const {plugins:_0x2007b9,model:_0x35e042}=this['editor'];if(!_0x2007b9['has']('TableCellPropertiesEditing'))return;const _0x16d6ab=_0x2007b9['get']('SuggestionsConversion'),_0x432e01=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x3b66ea of _0x432e01)_0x16d6ab['registerBlockAttribute'](_0x3b66ea);_0x35e042['schema']['checkAttribute']('tableCell','tableCellType')&&_0x16d6ab['registerBlockAttribute']('tableCellType');}}class SuggestionsConversionTableFooters extends _0x5a75c7{['afterInit'](){const _0x3003a4=this['editor'];if(!_0x3003a4['plugins']['has']('TableEditing')||!_0x3003a4['config']['get']('table.enableFooters'))return;_0x3003a4['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class SuggestionsConversion extends _0x5a75c7{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[SuggestionsConversionAlignment,SuggestionsConversionBasicStyles,SuggestionsConversionBookmark,SuggestionsConversionFont,SuggestionsConversionFootnotes,SuggestionsConversionHighlight,SuggestionsConversionHorizontalLine,SuggestionsConversionHtmlEmbed,SuggestionsConversionImage,SuggestionsConversionIndent,SuggestionsConversionLineHeight,SuggestionsConversionLink,SuggestionsConversionList,SuggestionsConversionListProperties,SuggestionsConversionMediaEmbed,SuggestionsConversionMultiLevelList,SuggestionsConversionShiftEnter,SuggestionsConversionStylesDropdown,SuggestionsConversionTable,SuggestionsConversionTableHeadings,SuggestionsConversionTableFooters,SuggestionsConversionTableLayout,SuggestionsConversionTableCellProperties,SuggestionsConversionTableProperties,SuggestionsConversionUploadcare];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x876cf8=this['editor'],_0x27b9ad=(_0xee7bf4,_0x3d6871,_0x40a7b7)=>{const {id:_0x513005,authorId:_0x2c9f4d,type:_0x52be07,subType:_0x48d407}=O(_0xee7bf4['markerName']),_0x5a30b5=['ck-suggestion-marker',this['_getClassName'](_0x52be07,_0x48d407)];let _0x362536=0xbb8;return!_0x40a7b7&&(this['_activeMarkers']['includes'](_0xee7bf4['markerName'])&&(_0x5a30b5['push']('ck-suggestion-marker--active'),_0x362536=0xbc2)),('deletion'==_0x52be07&&(_0x362536+=0x5),{'classes':_0x5a30b5,'attributes':{'data-suggestion':_0x513005,'data-author-id':_0x2c9f4d},'priority':_0x362536});};_0x876cf8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3d0d3b,_0x16601e)=>_0x27b9ad(_0x3d0d3b,0x0,!0x1)}),_0x876cf8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x23f385,_0x4a9e79)=>_0x27b9ad(_0x23f385,0x0,!0x0)}),_0x876cf8['conversion']['for']('dataDowncast')['add'](_0x115d10=>{_0x115d10['on']('addMarker:suggestion',(_0x59dc02,_0x54e269,_0x226e2f)=>{if(!_0x226e2f['options']['showSuggestionHighlights'])return;const _0x26da17=_0x54e269['item'];if(!_0x26da17)return;const _0x5deb73=_0x226e2f['mapper']['toViewElement'](_0x26da17);_0x876cf8['model']['schema']['isObject'](_0x26da17)&&_0x5deb73&&!_0x5deb73['getCustomProperty']('widget')&&_0x5deb73['is']('containerElement')&&_0x5364cc(_0x5deb73,_0x226e2f['writer']);},{'priority':'high'});});const _0x375656=(_0x576e7f,_0x42dee0,_0x2df53a,_0xc2879e,_0x431e1f)=>{if(_0xc2879e&&!_0x2df53a['options']['showSuggestionHighlights'])return;if(!_0x42dee0['item'])return;const {id:_0x2ad650,authorId:_0x32dab1,subType:_0x416f55}=O(_0x42dee0['markerName']);if(_0x431e1f){const _0x328ad8=_0x416f55['split']('|')[0x0];if(!this['isBlockAttribute'](_0x328ad8))return;}if(_0x42dee0['item']['is']('selection'))return void _0x2df53a['consumable']['consume'](_0x42dee0['item'],_0x576e7f['name']);const _0x469741=_0x2df53a['mapper']['toViewElement'](_0x42dee0['item']);if(_0x42dee0['item']['is']('element')&&_0x876cf8['model']['schema']['isBlock'](_0x42dee0['item'])&&!_0x469741['getCustomProperty']('addHighlight')){_0x2df53a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x469741),_0x2df53a['writer']['setAttribute']('data-suggestion',_0x2ad650,_0x469741),_0x2df53a['writer']['setAttribute']('data-author-id',_0x32dab1,_0x469741),_0x2df53a['mapper']['bindElementToMarker'](_0x469741,_0x42dee0['markerName']),_0xc2879e||(this['_activeMarkers']['includes'](_0x42dee0['markerName'])?_0x2df53a['writer']['addClass']('ck-suggestion-marker--active',_0x469741):_0x2df53a['writer']['removeClass']('ck-suggestion-marker--active',_0x469741));for(const _0x1cbaf9 of _0x876cf8['model']['createRangeIn'](_0x42dee0['item'])['getItems']())_0x2df53a['consumable']['consume'](_0x1cbaf9,_0x576e7f['name']);_0x2df53a['consumable']['consume'](_0x42dee0['item'],_0x576e7f['name']);}},_0x28c9a2=(_0x5800da,_0x379f9f,_0x5e19eb,_0x14e003)=>{const _0x4274c6=_0x5e19eb['mapper']['markerNameToElements'](_0x379f9f['markerName']);if(_0x4274c6){if(_0x14e003){const {subType:_0x33e09c}=O(_0x379f9f['markerName']),_0x52a7c8=_0x33e09c['split']('|')[0x0];if(!this['isBlockAttribute'](_0x52a7c8))return;}for(const _0x28d6cd of _0x4274c6)_0x28d6cd['getCustomProperty']('addHighlight')||(_0x5e19eb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x28d6cd),_0x5e19eb['writer']['removeAttribute']('data-suggestion',_0x28d6cd),_0x5e19eb['writer']['removeAttribute']('data-author-id',_0x28d6cd),_0x5e19eb['mapper']['unbindElementFromMarkerName'](_0x28d6cd,_0x379f9f['markerName']));}};_0x876cf8['conversion']['for']('editingDowncast')['add'](_0x468ffd=>{_0x468ffd['on']('addMarker:suggestion:formatBlock',(_0x94b04a,_0x2529c6,_0x4bfe07)=>{_0x375656(_0x94b04a,_0x2529c6,_0x4bfe07,!0x1,!0x1);},{'priority':'high'});}),_0x876cf8['conversion']['for']('editingDowncast')['add'](_0x265360=>{_0x265360['on']('addMarker:suggestion:attribute',(_0x39ca03,_0x226708,_0x5e9ce9)=>{_0x375656(_0x39ca03,_0x226708,_0x5e9ce9,!0x1,!0x0);},{'priority':'high'});}),_0x876cf8['conversion']['for']('editingDowncast')['add'](_0x814e54=>{_0x814e54['on']('removeMarker:suggestion:formatBlock',(_0x588b93,_0x4f8396,_0x44c378)=>{_0x28c9a2(0x0,_0x4f8396,_0x44c378,!0x1);},{'priority':'high'});}),_0x876cf8['conversion']['for']('editingDowncast')['add'](_0x37c048=>{_0x37c048['on']('removeMarker:suggestion:attribute',(_0x1d5aff,_0x45e9ff,_0x32282b)=>{_0x28c9a2(0x0,_0x45e9ff,_0x32282b,!0x0);},{'priority':'high'});}),_0x876cf8['conversion']['for']('dataDowncast')['add'](_0x461077=>{_0x461077['on']('addMarker:suggestion:formatBlock',(_0x5ddbb4,_0x50e488,_0x5065b6)=>{_0x375656(_0x5ddbb4,_0x50e488,_0x5065b6,!0x0,!0x1);},{'priority':'highest'});}),_0x876cf8['conversion']['for']('dataDowncast')['add'](_0x69a44b=>{_0x69a44b['on']('addMarker:suggestion:attribute',(_0x204da3,_0x16fb97,_0x5037e2)=>{_0x375656(_0x204da3,_0x16fb97,_0x5037e2,!0x0,!0x0);},{'priority':'highest'});}),_0x876cf8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x21acf7,_0x57a8cd)=>_0x57a8cd['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x21acf7['substr'](0xb)}});const _0xd882af=(_0x5714d8,_0x26ed4a,_0x5516c8,_0x3cdfdc,_0xf4ea0c)=>{if(_0x3cdfdc&&!_0x5516c8['options']['showSuggestionHighlights'])return;if(!_0x5516c8['consumable']['test'](_0x26ed4a['markerRange'],_0x5714d8['name']))return;const _0x582523=this['_activeMarkers'],_0x56a394=_0x26ed4a['markerRange']['getWalker'](),_0x1941a5=_0x26ed4a['markerRange']['start'],_0x514914=_0x876cf8['model']['schema'];let _0x1274be=null,_0x583d0d=null,_0x7f9927=!0x1,_0x3db9f3=!0x1;for(const _0x40ed44 of _0x56a394){const _0x5832c9=_0x40ed44['item'];_0x7f9927=_0x7f9927||_0x514914['isContent'](_0x5832c9);const _0x5f013b=_0x5516c8['mapper']['toViewElement'](_0x5832c9);if(_0x5f013b&&_0x5f013b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40ed44['type']&&(_0x514914['isBlock'](_0x5832c9)&&!_0x514914['isLimit'](_0x5832c9)&&(_0x5832c9['nextSibling']||_0x1941a5['isAtEnd']?_0x1274be&&_0x1274be['parent']==_0x5832c9||(_0x1274be=_0x5832c9,_0x3074ad(_0x40ed44['previousPosition']),_0x3db9f3=!0x0):_0x583d0d=_0x583d0d||_0x40ed44['previousPosition']));}function _0x3074ad(_0x2ef739){const {id:_0x54181f,authorId:_0x1c46f4}=O(_0x26ed4a['markerName']),_0x5d1694=_0x5516c8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf4ea0c,'data-suggestion':_0x54181f,'data-author-id':_0x1c46f4}),_0x4246d3=_0x5516c8['mapper']['toViewPosition'](_0x2ef739);!_0x3cdfdc&&_0x582523['includes'](_0x26ed4a['markerName'])&&_0x5516c8['writer']['addClass']('ck-suggestion-marker--active',_0x5d1694),_0x5516c8['writer']['insert'](_0x4246d3,_0x5d1694),_0x5516c8['mapper']['bindElementToMarker'](_0x5d1694,_0x26ed4a['markerName']);}_0x7f9927||_0x3db9f3||!_0x583d0d||_0x3074ad(_0x583d0d);};_0x876cf8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1517b4,_0x1b6ed4,_0x24796a)=>{_0xd882af(_0x1517b4,_0x1b6ed4,_0x24796a,!0x1,'merge');},{'priority':'high'}),_0x876cf8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3570ce,_0x4af8ba,_0x71a6c7)=>{_0xd882af(_0x3570ce,_0x4af8ba,_0x71a6c7,!0x0,'merge');},{'priority':'high'}),_0x876cf8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x11c95e,_0x32cbe4,_0x2e0422)=>{_0xd882af(_0x11c95e,_0x32cbe4,_0x2e0422,!0x1,'split');},{'priority':'high'}),_0x876cf8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x434903,_0x196389,_0x492960)=>{_0xd882af(_0x434903,_0x196389,_0x492960,!0x0,'split');},{'priority':'high'}),_0x876cf8['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c0b67,_0x46e19c,_0x52eeb4)=>{((_0x491a0e,_0x449b90,_0x3f7433)=>{const _0x2d6c36=_0x3f7433['mapper']['markerNameToElements'](_0x449b90['markerName']);if(_0x2d6c36){for(const _0xf2e8d1 of _0x2d6c36)(_0xf2e8d1['hasClass']('ck-suggestion-marker-split')||_0xf2e8d1['hasClass']('ck-suggestion-marker-merge'))&&(_0x3f7433['mapper']['unbindElementFromMarkerName'](_0xf2e8d1,_0x449b90['markerName']),_0x3f7433['writer']['remove'](_0xf2e8d1));}})(0x0,_0x46e19c,_0x52eeb4);},{'priority':'high'});const _0x58da42=(_0x39b593,_0x483102,_0x48f2d5,_0x9ed61d)=>{if(_0x9ed61d&&!_0x48f2d5['options']['showSuggestionHighlights'])return;const _0x4c5a59=_0x483102['markerRange']['start'],_0x105d0b=_0x483102['markerRange']['end'],_0x3a6496=_0x876cf8['model']['schema'];if(!_0x4c5a59['isTouching'](_0x105d0b)||!_0x4c5a59['nodeAfter'])return;const _0x35e9eb=_0x4c5a59['nodeAfter'];if(_0x3a6496['isBlock'](_0x35e9eb)&&!_0x3a6496['isLimit'](_0x35e9eb)&&_0x3a6496['checkChild'](_0x35e9eb,'$text')){if(!_0x48f2d5['consumable']['consume'](_0x483102['markerRange'],_0x39b593['name']))return;const {id:_0x4573e0,authorId:_0x277289}=O(_0x483102['markerName']),_0x24568d=_0x48f2d5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4573e0,'data-author-id':_0x277289}),_0x56175a=_0x48f2d5['mapper']['toViewPosition'](_0x105d0b);!_0x9ed61d&&this['_activeMarkers']['includes'](_0x483102['markerName'])&&_0x48f2d5['writer']['addClass']('ck-suggestion-marker--active',_0x24568d),_0x48f2d5['writer']['insert'](_0x56175a,_0x24568d),_0x48f2d5['mapper']['bindElementToMarker'](_0x24568d,_0x483102['markerName']);}};_0x876cf8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1a0f77,_0x1f0a60,_0x426def)=>{_0x58da42(_0x1a0f77,_0x1f0a60,_0x426def,!0x1);},{'priority':'high'}),_0x876cf8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e6ebc,_0x598706,_0x48e9b1)=>{_0x58da42(_0x1e6ebc,_0x598706,_0x48e9b1,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x309085,_0x397d60,_0x54845f)=>{this['_activeMarkers']=_0x54845f['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x517a8f){this['_blockAttributeKeys']['add'](_0x517a8f);}['registerInlineAttribute'](_0x672855){this['_inlineAttributeKeys']['add'](_0x672855);}['isBlockAttribute'](_0x32155e){return this['_blockAttributeKeys']['has'](_0x32155e);}['isInlineAttribute'](_0x19a277){return this['_inlineAttributeKeys']['has'](_0x19a277);}['isRegisteredAttribute'](_0x530c28){return this['isInlineAttribute'](_0x530c28)||this['isBlockAttribute'](_0x530c28);}['_getClassName'](_0x4ca1f8,_0x49aa22){if('attribute'!=_0x4ca1f8)return'ck-suggestion-marker-'+_0x4ca1f8;const _0x58ae36=_0x49aa22['split']('|')[0x0];return this['isBlockAttribute'](_0x58ae36)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function R(_0x238a1f={},_0x55f30a){if(void 0x0!==_0x238a1f['dateTimeFormat']&&'function'!=typeof _0x238a1f['dateTimeFormat'])throw new _0xf213dd('invalid-date-time-format');return _0x386e3a=>{const _0x5a370b='string'==typeof _0x386e3a?_0x47580d['fromISO'](_0x386e3a):_0x47580d['fromJSDate'](_0x386e3a),_0x3345a4=_0x47580d['now'](),_0x4a4446=Math['floor'](_0x3345a4['diff'](_0x5a370b,'days')['days']);return _0x238a1f['dateTimeFormat']?_0x238a1f['dateTimeFormat'](_0x5a370b['toJSDate'](),_0x55f30a&&_0x55f30a['t']?_0x55f30a['t']:void 0x0):0x0===_0x4a4446?_0x55f30a?B(_0x55f30a,'Today')+'\x20'+_0x5a370b['toFormat']('hh:mma'):_0x5a370b['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x4a4446?_0x55f30a?B(_0x55f30a,'Yesterday')+'\x20'+_0x5a370b['toFormat']('hh:mma'):_0x5a370b['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x4a4446<0x7?_0x55f30a?B(_0x55f30a,'Last')+'\x20'+B(_0x55f30a,_0x5a370b['toFormat']('EEEE'))+'\x20'+_0x5a370b['toFormat']('hh:mma'):_0x5a370b['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x5a370b['toFormat']('LL-dd-yyyy\x20hh:mma');};}function z(_0x525880,_0x2ffb58){const _0x3981c8=_0x525880['mapper']['markerNameToElements'](_0x2ffb58['name']);if(!_0x3981c8)return null;const _0xc7bf7a=_0x58753a(_0x3981c8['values']());return _0x525880['view']['domConverter']['mapViewToDom'](_0xc7bf7a)||null;}function W(_0x2435c5,_0x14679d){if(0x0===_0x14679d['length'])return null;const _0x517eb0=[],_0xeed593=_0x2435c5['view']['domConverter'];for(const _0x1e959d of _0x14679d){const _0x3ad7ec=_0x2435c5['mapper']['markerNameToElements'](_0x1e959d['name']);if(!_0x3ad7ec)continue;const _0x152619=Array['from'](_0x3ad7ec)['map'](_0x2b007b=>_0xeed593['mapViewToDom'](_0x2b007b))['filter'](_0x6ce1f5=>!!_0x6ce1f5);_0x517eb0['push'](..._0x152619);}if(0x0===_0x517eb0['length'])return null;const _0x5c2d94=[];for(const _0x230add of _0x517eb0){const _0x277b56=_0x230add['getClientRects']()['item'](0x0);_0x277b56&&_0x5c2d94['push']({'x':_0x277b56['x'],'y':_0x277b56['y'],'domElement':_0x230add});}return 0x0===_0x5c2d94['length']?null:(_0x5c2d94['sort']((_0x1e61fc,_0x1d1c8d)=>_0x1e61fc['y']-_0x1d1c8d['y']||_0x1e61fc['x']-_0x1d1c8d['x']),_0x5c2d94['map'](_0x3f602f=>_0x3f602f['domElement']));}function j(_0x23270f,{limit:_0x8a6dee,suffix:_0x37ef84='...'}){const _0xefb35=[];let _0x2b894a=0x0;const _0x4c4982=_0x23270f['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x23ec6b=0x0;_0x23ec6b<_0x4c4982['length'];_0x23ec6b++){let _0x2fdd65=_0x4c4982[_0x23ec6b];const _0x2f4b1a=Y(_0x2fdd65);if(_0x2fdd65['startsWith']('<')){if(_0x2b894a>=_0x8a6dee){const _0x207554=_0x2fdd65['match'](/[a-zA-Z]+/);if(!_0x207554){_0x4c4982[_0x23ec6b]='';continue;}const _0x3ae954=_0x207554[0x0];_0x2fdd65['startsWith']('</')?(_0xefb35['length']&&(_0x2fdd65=''),_0xefb35['pop']()):(_0xefb35['push'](_0x3ae954),_0x2fdd65='');}}else{if(_0x2b894a>=_0x8a6dee)_0x2fdd65='';else{if(_0x2b894a+_0x2f4b1a['length']>=_0x8a6dee){let _0x4bdc4c=_0x8a6dee-_0x2b894a;if('\x20'===_0x2f4b1a[_0x4bdc4c-0x1])_0x4bdc4c--;else{const _0x5f59a2=_0x2f4b1a['slice'](_0x4bdc4c)['indexOf']('\x20');-0x1!==_0x5f59a2?_0x4bdc4c+=_0x5f59a2:_0x4bdc4c=_0x2fdd65['length'];}_0x2fdd65=_0x2f4b1a['slice'](0x0,_0x4bdc4c)['join']('')+_0x37ef84,_0x2b894a=_0x8a6dee;}else _0x2b894a+=_0x2f4b1a['length'];}}_0x4c4982[_0x23ec6b]=_0x2fdd65;}return _0x4c4982['join']('\x0a')['replace'](/\n/g,'');}function Y(_0x5055c4){const _0x1924c4=[];for(let _0x1e4395=0x0;_0x1e4395<_0x5055c4['length'];_0x1e4395++){const _0x2ca7de=_0x5055c4['substring'](_0x1e4395)['match'](/^&[a-z0-9#]+;/);if(_0x2ca7de){const _0x40e666=_0x2ca7de[0x0];_0x1924c4['push'](_0x40e666),_0x1e4395+=_0x40e666['length']-0x1;}else _0x1924c4['push'](_0x5055c4[_0x1e4395]);}return _0x1924c4;}class ConfirmView extends _0x91f963{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x341f3e){super(_0x341f3e);const _0x3cc656=this['bindTemplate'];this['set']('message',B(_0x341f3e,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x341f3e,B(_0x341f3e,'Yes'),_0x2ed4a4,'submit'),this['cancelView']=this['_createButtonView'](_0x341f3e,B(_0x341f3e,'No'),_0x3a876b,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x1ba31b(),this['keystrokes']=new _0x257e0a(),this['focusCycler']=new _0x32eadb({'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':_0x3cc656['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'](_0x4f161a,_0x122d6a,_0x51c1e8,_0x1549e8){const _0x2d4644=new _0x22536d(_0x4f161a);return _0x2d4644['label']=_0x122d6a,_0x2d4644['icon']=_0x51c1e8,_0x2d4644['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x1549e8}}),_0x2d4644['on']('execute',()=>this['fire'](_0x1549e8)),_0x2d4644;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x77a173=>{this['keystrokes']['listenTo'](_0x77a173['element']),this['focusTracker']['add'](_0x77a173['element']);}),this['keystrokes']['set']('esc',(_0x1a655f,_0x33eff0)=>{this['fire']('cancel'),_0x33eff0();});}}function J(_0x1e4428){return class _0x28a106 extends _0x1e4428{['showConfirm'](_0x1175de,_0x4d0919){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x1175de,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x4d0919['appendChild'](this['confirmView']['element']),_0x4d0919['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x36f2fa,_0x45ec19,_0x5cbce0)=>{_0x5cbce0||_0x4d0919['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x552222=>this['confirmView']['on']('submit',_0x552222));}['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(_0x1b34bd){let _0x38234e=0x0,_0x30c55b=0x0;for(const _0x18ec51 of G(_0x1b34bd))_0x38234e=(_0x38234e<<0x5)-_0x38234e+_0x18ec51,_0x38234e&=_0x38234e,[_0x38234e,_0x30c55b]=[_0x30c55b,_0x38234e];return X(_0x38234e)+X(_0x30c55b);}function*q(_0x82f095){null==_0x82f095||null==_0x82f095?yield 0x12b9b0a1:0x0===_0x82f095||!0x1===_0x82f095?yield 0x0:0x1===_0x82f095||0x1==_0x82f095?yield 0x1:Array['isArray'](_0x82f095)?yield*function*(_0x29e216){for(const _0x5e3cc0 of _0x29e216)yield*q(_0x5e3cc0);}(_0x82f095):'object'==typeof _0x82f095?yield*G(_0x82f095):'string'==typeof _0x82f095?yield*Z(_0x82f095):'number'==typeof _0x82f095&&(yield _0x82f095);}function*G(_0x5c0b4d){if(yield Q('{'),_0x5c0b4d){const _0x28bea2=Object['keys'](_0x5c0b4d)['sort']();for(const _0x431442 of _0x28bea2){yield*Z(_0x431442),yield Q(':');const _0x5432d7=_0x5c0b4d[_0x431442];yield*q(_0x5432d7);}}yield Q('}');}function*Z(_0x65d03){yield Q('\x22');for(const _0x37f01f of _0x65d03)yield Q(_0x37f01f);yield Q('\x22');}function Q(_0x5e79b3){return _0x5e79b3['charCodeAt'](0x0);}function X(_0x2d6e6c){return(_0x2d6e6c*=Math['sign'](_0x2d6e6c))['toString'](0x24);}const tt=['root','roots','initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function st(_0x5d1e04,_0x65ee84,_0x417d9a,_0x19d41a=[]){const _0x1303e4='string'==typeof _0x5d1e04?_0x417d9a['get'](_0x5d1e04)['constructor']:_0x5d1e04['prototype']['constructor'];if(_0x65ee84['has'](_0x1303e4))return _0x65ee84['get'](_0x1303e4);_0x65ee84['set'](_0x1303e4,!0x0);const _0x565750=[...et,..._0x19d41a]['map'](_0x234baa=>{if(_0x417d9a['has'](_0x234baa))return _0x417d9a['get'](_0x234baa)['constructor'];})['filter'](_0x51d254=>_0x51d254);if(_0x1303e4&&_0x565750['includes'](_0x1303e4))return _0x65ee84['set'](_0x1303e4,!0x1),!0x1;if(!_0x1303e4['requires'])return _0x65ee84['set'](_0x1303e4,!0x0),!0x0;const _0x22f175=_0x1303e4['requires']['every'](_0x579281=>st(_0x579281,_0x65ee84,_0x417d9a,_0x19d41a));return _0x65ee84['set'](_0x1303e4,_0x22f175),_0x22f175;}function it(_0x4bf799,_0x222981){const _0x235cfa={};for(const _0x33bad2 of _0x4bf799['config']['names']())tt['includes'](_0x33bad2)||(_0x235cfa[_0x33bad2]=_0x4bf799['config']['get'](_0x33bad2));const _0x49de5d=_0x235cfa['plugins']||[],_0x8d584c=_0x4bf799['constructor']['builtinPlugins']||[],_0x409171=_0x49de5d['length']?_0x49de5d:_0x8d584c,_0x477691=_0x235cfa['extraPlugins']||[];delete _0x235cfa['extraPlugins'];const _0xd2c294=_0x235cfa['removePlugins']||[];delete _0x235cfa['removePlugins'];const _0x1e2b51=_0x4bf799['_context']['config']['get']('plugins')||[],_0x1e1e8b=_0x409171['concat'](_0x477691)['concat'](_0x1e2b51)['map'](_0x403a8e=>'string'==typeof _0x403a8e?_0x8d584c['find'](_0x5b80de=>_0x5b80de['pluginName']==_0x403a8e):_0x403a8e)['filter'](_0xdf71d9=>!_0xd2c294['includes'](_0xdf71d9)&&!_0xd2c294['includes'](_0xdf71d9['pluginName'])),_0x1adb6b=Array['from'](new Set(_0x1e1e8b)),_0x519b55=new Map();return _0x235cfa['plugins']=_0x1adb6b['filter'](_0x3de92a=>st(_0x3de92a,_0x519b55,_0x4bf799['plugins'],_0x222981)),_0x235cfa;}function nt(_0x3d6bdd,_0x3b4186){const _0x34b55b=[];_0x3d6bdd['document']['selection']['on']('change:range',()=>{const _0x20f1aa=function(_0x4dcecc,_0x93b065){const _0x3e3950=[];for(const _0x51dbba of _0x4dcecc['markers']){const _0x1ad40a=_0x51dbba['getRange']();(_0x1ad40a['containsPosition'](_0x93b065)||_0x1ad40a['start']['isEqual'](_0x93b065)||_0x1ad40a['end']['isEqual'](_0x93b065))&&_0x3e3950['push'](_0x51dbba);}return _0x3e3950;}(_0x3d6bdd,_0x3d6bdd['document']['selection']['focus']),_0x1d4773=[],_0x502968=[],_0x1e3212=[];for(const _0x5cc8c0 of _0x34b55b)_0x20f1aa['includes'](_0x5cc8c0)||_0x1d4773['push'](_0x5cc8c0);for(const _0x557da7 of _0x20f1aa)_0x34b55b['includes'](_0x557da7)||_0x502968['push'](_0x557da7),_0x1e3212['push'](_0x557da7);(_0x1d4773['length']||_0x502968['length'])&&_0x3b4186({'left':_0x1d4773,'entered':_0x502968}),_0x34b55b['length']=0x0,_0x34b55b['push'](..._0x1e3212);});}const ot='Ctrl+Shift+E';function rt(_0x504b53,_0x33d834){const _0x1c8b46=_0x504b53['element'];_0x504b53['keystrokes']['listenTo'](_0x1c8b46);for(const _0x4382f2 of _0x33d834)at(_0x504b53,_0x4382f2);_0x33d834['on']('change',(_0x14ab79,_0x5dc2ef)=>{for(const _0x3d0aaa of _0x5dc2ef['removed'])ct(_0x504b53,_0x3d0aaa);for(const _0x1cc278 of Array['from'](_0x5dc2ef['added'])['reverse']())at(_0x504b53,_0x1cc278);}),_0x504b53['keystrokes']['set']('enter',(_0x557840,_0xbd354d)=>{_0x1c8b46===_0x557840['target']&&(_0x504b53['focusCycler']['focusFirst'](),_0xbd354d());},{'filter':_0x3faed3=>_0x3faed3['target']===_0x1c8b46}),_0x504b53['keystrokes']['set']('esc',(_0x48b276,_0x53e630)=>{_0x1c8b46!==_0x48b276['target']?_0x504b53['focus']():_0x504b53['fire']('escape'),_0x53e630();}),_0x504b53['keystrokes']['set']('arrowdown',(_0x400b7c,_0x4df487)=>{_0x1c8b46===_0x400b7c['target']&&(_0x504b53['fire']('arrowdown'),_0x4df487());}),_0x504b53['keystrokes']['set']('arrowup',(_0x242ba3,_0x4e29b7)=>{_0x1c8b46===_0x242ba3['target']&&(_0x504b53['fire']('arrowup'),_0x4e29b7());});}function at(_0x3fac20,_0x3d30a7){_0x3d30a7['isRendered']&&(_0x3fac20['focusTracker']['add'](_0x3d30a7['element']),_0x3fac20['keystrokes']['listenTo'](_0x3d30a7['element']),_0xf510de(_0x3d30a7)&&function(_0x3a0dde,_0x9d548f){const _0xdea08c=_0x3a0dde['actions'],_0x33eb5e=_0x9d548f['actions'];for(const _0x5a6086 of Object['keys'](_0xdea08c))if(_0x5a6086 in _0x33eb5e&&_0xdea08c[_0x5a6086]!==_0x33eb5e[_0x5a6086])return!0x1;return!0x0;}(_0x3fac20['focusCycler'],_0x3d30a7['focusCycler'])&&_0x3fac20['focusCycler']['chain'](_0x3d30a7['focusCycler']));}function ct(_0x1154ac,_0x3c1fe6){_0x1154ac['focusTracker']['remove'](_0x3c1fe6['element']),_0x1154ac['keystrokes']['stopListening'](_0x3c1fe6['element']),_0xf510de(_0x3c1fe6)&&_0x1154ac['focusCycler']['unchain'](_0x3c1fe6['focusCycler']);}const lt='$elementId',ut='data-id';class DocumentCompare extends _0xa091fc{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x4b94ca?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x1e1523,_0x514348)=>{_0x514348['on']('ready',()=>{this['_integrateEditor'](_0x514348);});});}get['editor'](){if(this['context']instanceof _0x4b94ca)return this['context'];{const _0x119da8=this['context']['editors']['first'];if(!_0x119da8)throw new _0xf213dd('documentcompare-no-editor',this);return _0x119da8;}}['getDiff'](_0x185503,_0x295340,_0xb6cfb={'anchor':'main','markDeletions':!0x1}){const _0x507e4d=_0xb6cfb['targetEditor']||this['editor'];let _0x174e6a,_0x173a5e;if('string'==typeof _0xb6cfb['anchor']){const _0x23b508=_0x507e4d['model']['document']['getRoot'](_0xb6cfb['anchor']);if(!_0x23b508)throw new _0xf213dd('documentcompare-compare-no-root',this,{'anchor':_0xb6cfb['anchor']});_0x174e6a=_0x23b508,_0x173a5e=_0x507e4d['model']['createPositionAt'](_0x23b508,0x0);}else _0x174e6a=_0xb6cfb['anchor']['clone'](),_0x173a5e=_0xb6cfb['anchor']['clone']();const _0x24dae1=_0x507e4d['data']['parse'](_0x185503,_0x174e6a),_0x37f366=_0x507e4d['data']['parse'](_0x295340,_0x174e6a);return new DocumentDiff({'editor':_0x507e4d,'before':_0x24dae1,'after':_0x37f366,'options':{'anchor':_0x173a5e,'markDeletions':_0xb6cfb['markDeletions']}});}['isMarkedRemoveOperation'](_0x262826){return'marker'==_0x262826['type']&&_0x262826['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x180f86){_0x180f86['conversion']['for']('upcast')['add'](_0xa093fb=>{_0xa093fb['on']('element',(_0x33f7f6,_0x418bb8,_0x154ad8)=>{if(_0x418bb8['modelRange'])for(const _0x3d8ed5 of _0x418bb8['modelRange']['getItems']({'shallow':!0x0})){if(_0x3d8ed5['is']('$textProxy'))continue;const _0xd22607=_0x418bb8['viewItem']['getAttribute'](ut);_0xd22607&&_0x154ad8['writer']['setAttribute'](lt,_0xd22607,_0x3d8ed5);}},{'priority':'lowest'});}),_0x180f86['model']['schema']['addAttributeCheck'](()=>!0x0,lt);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x4b6afe,before:_0x2577dc,after:_0x52270d,options:_0x33b69c}){this['_editor']=_0x4b6afe,this['_markDeletions']=!!_0x33b69c['markDeletions'],this['_anchor']=_0x33b69c['anchor'];const _0x505d55=this['_tokenizeModel'](_0x2577dc),_0x1ce0d2=this['_tokenizeModel'](_0x52270d);this['_diffItems']=this['_diffModelTokens'](_0x505d55,_0x1ce0d2),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x2577dc['markers'],_0x52270d['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x3bb66c=this['_editor']['model']['document'],_0x39ce66=[];let _0x453b78=_0x3bb66c['version'];for(const _0x35cec8 of this['_operationsData'])switch(_0x35cec8['type']){case'attribute':{const _0xb3be33=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x35cec8['path']),_0x503e8a=_0xb3be33['getShiftedBy'](_0x35cec8['howMany']),_0x126cdf=new _0xac2e06(_0xb3be33,_0x503e8a),_0x20d666=JSON['parse'](_0x35cec8['oldValue']),_0x37543d=JSON['parse'](_0x35cec8['newValue']);_0x39ce66['push'](new _0x2448f6(_0x126cdf,_0x35cec8['key'],_0x20d666,_0x37543d,_0x453b78++));break;}case'insert':{const _0x2b7bb5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x35cec8['path']),_0x415e02=this['_makeModelFromTokens'](_0x35cec8['tokens']);_0x39ce66['push'](new _0x5a190c(_0x2b7bb5,_0x415e02,_0x453b78++));break;}case'remove':{const _0x4d3fd8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x35cec8['path']),_0x182bdf=new _0x1e77f0(_0x3bb66c['graveyard'],[0x0]);_0x39ce66['push'](new _0x521e13(_0x4d3fd8,_0x35cec8['howMany'],_0x182bdf,_0x453b78++));break;}case'rename':{const _0x200442=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x35cec8['path']);_0x39ce66['push'](new _0x1e13d1(_0x200442,_0x35cec8['oldName'],_0x35cec8['newName'],_0x453b78++));break;}case'split':{const _0x2cbc06=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x35cec8['path']),_0x3fc471=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x35cec8['path']['slice'](0x0,-0x1));_0x3fc471['offset']++,_0x39ce66['push'](new _0x370e0f(_0x2cbc06,Number['NEGATIVE_INFINITY'],_0x3fc471,null,_0x453b78++));break;}case'merge':{const _0x410a49=_0x35cec8['path']['slice'](),_0x1a076d=_0x410a49['slice'](0x0,-0x1);_0x1a076d[_0x1a076d['length']-0x1]++,_0x1a076d['push'](0x0);const _0x546661=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1a076d),_0x588c89=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x410a49),_0x23d248=new _0x1e77f0(_0x3bb66c['graveyard'],[0x0]);_0x39ce66['push'](new _0x8945a8(_0x546661,Number['NEGATIVE_INFINITY'],_0x588c89,_0x23d248,_0x453b78++));break;}case'marker':case'markedRemove':{let _0x4c1598=null;if(_0x35cec8['range']){const _0x1fb895=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x35cec8['range']['start']),_0x3313ee=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x35cec8['range']['end']);_0x4c1598=new _0xac2e06(_0x1fb895,_0x3313ee);}const _0xea9de1='marker'==_0x35cec8['type']?_0x35cec8['name']:'$markedRemove:'+_0x491f85();_0x39ce66['push'](new _0x59b104(_0xea9de1,null,_0x4c1598,_0x3bb66c['model']['markers'],!0x0,_0x453b78++));break;}case'unwrap':{const _0x2937e8=_0x35cec8['path']['slice']();_0x2937e8['push'](0x0);const _0x529727=_0x35cec8['path']['slice'](),_0x217f44=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2937e8),_0x41c8ab=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x529727),_0x4d16d1=new _0x1e77f0(_0x3bb66c['graveyard'],[0x0]);_0x39ce66['push'](new _0x521e13(_0x217f44,_0x35cec8['howMany'],_0x41c8ab,_0x453b78++)),_0x39ce66['push'](new _0x521e13(_0x41c8ab['getShiftedBy'](_0x35cec8['howMany']),0x1,_0x4d16d1,_0x453b78++));break;}case'wrap':{const _0x38d84a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x35cec8['range']['start']),_0x499cf8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x35cec8['range']['end']),_0xc9be16=_0x35cec8['token']['element']['_clone'](!0x1),_0x4f2a25=_0x35cec8['range']['end']['slice']();_0x4f2a25['push'](0x0);const _0x371e02=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4f2a25);_0x39ce66['push'](new _0x5a190c(_0x499cf8,_0xc9be16,_0x453b78++)),_0x39ce66['push'](new _0x521e13(_0x38d84a,_0x499cf8['offset']-_0x38d84a['offset'],_0x371e02,_0x453b78++));break;}}return _0x39ce66;}['_tokenizeModel'](_0x2aa714){const _0x33083d=[],_0x498362=_0xac2e06['_createIn'](_0x2aa714),_0x46b3ba=new _0x318fdd({'boundaries':_0x498362});let _0x32bac7='',_0xab5599=null;const _0x567dcf=[''],_0x1c0ab5=new Map();for(const _0x392a7c of _0x46b3ba)if('elementStart'==_0x392a7c['type']||'elementEnd'==_0x392a7c['type']){let _0x16cfa2=_0x567dcf[0x0];''!==_0x32bac7&&(_0x33083d['push'](...this['_makeTokensFromTextByWords'](_0x32bac7,_0xab5599,_0x16cfa2)),_0x32bac7='');const _0x30b5f8=_0x392a7c['item'];let _0x2370fd;_0x30b5f8['getAttribute'](lt)?_0x2370fd=_0x30b5f8['getAttribute'](lt):'elementStart'==_0x392a7c['type']?(_0x2370fd=dt(_0x30b5f8),_0x1c0ab5['set'](_0x30b5f8,_0x2370fd)):_0x2370fd=_0x1c0ab5['get'](_0x30b5f8);const _0x28ce45=this['_getElementCategory'](_0x30b5f8);'solid'==_0x28ce45&&('elementStart'==_0x392a7c['type']?(_0x16cfa2=_0x2370fd,_0x567dcf['unshift'](_0x16cfa2)):_0x567dcf['shift']());const _0x2e26bd={'type':'element','element':_0x30b5f8,'elementId':_0x2370fd,'category':_0x28ce45,'isStart':'elementStart'==_0x392a7c['type'],'limitId':_0x16cfa2};_0x33083d['push'](_0x2e26bd);}else''==_0x32bac7&&(_0xab5599=_0x392a7c['previousPosition']['clone']()),_0x32bac7+=_0x392a7c['item']['data'];return''!==_0x32bac7&&_0x33083d['push'](...this['_makeTokensFromTextByWords'](_0x32bac7,_0xab5599,_0x567dcf[0x0])),_0x33083d;}['_makeTokensFromTextByWords'](_0x421558,_0x3fe4f4,_0x154a28){const _0x32c4a2=_0x421558['matchAll'](/(\s)/g),_0x723fb6=Array['from'](_0x32c4a2)['map'](_0x5ce2a5=>_0x5ce2a5['index']);_0x723fb6['push'](_0x421558['length']),0x0==_0x723fb6[0x0]&&_0x723fb6['shift']();const _0x355d7a=[],_0x21681f=_0x3fe4f4['parent'];let _0x342888=0x0,_0xc392c0=_0x3fe4f4['offset'];for(let _0x284f36=0x0;_0x284f36<_0x723fb6['length'];_0x284f36++)_0x355d7a['push']({'type':'text','data':_0x421558['slice'](_0x342888,_0x723fb6[_0x284f36]),'parent':_0x21681f,'offset':_0xc392c0,'limitId':_0x154a28}),_0x342888=_0x723fb6[_0x284f36],_0xc392c0=_0x3fe4f4['offset']+_0x723fb6[_0x284f36];return _0x355d7a;}['_getElementCategory'](_0x2f4526){const _0x5ea0d7=this['_editor']['model']['schema'];return _0x5ea0d7['isLimit'](_0x2f4526)||_0x5ea0d7['isContent'](_0x2f4526)||_0x5ea0d7['isInline'](_0x2f4526)?'solid':_0x5ea0d7['isBlock'](_0x2f4526)?'block':'container';}['_diffModelTokens'](_0x4d6c31,_0x7c61f){const _0x49d735=_0x26bc3a(_0x4d6c31,_0x7c61f,{'comparator':ht});this['_handleUnclosedBlockOpeningTags'](_0x49d735);const _0x551c58=_0x49d735['flatMap'](_0x49732e=>{const _0xb56cb7=_0x49732e['added']?'added':_0x49732e['removed']?'removed':'unchanged';return _0x49732e['value']['map'](_0x3f326b=>({'token':_0x3f326b,'change':_0xb56cb7}));});let _0x5a9613=0x0;for(const _0x24f9ed of _0x551c58)'added'!=_0x24f9ed['change']&&('unchanged'==_0x24f9ed['change']&&(_0x24f9ed['before']=_0x4d6c31[_0x5a9613]),_0x5a9613++);return _0x551c58;}['_handleUnclosedBlockOpeningTags'](_0x389e23){for(let _0x24c941=0x0;_0x24c941<_0x389e23['length']-0x1;_0x24c941++)if(_0x389e23[_0x24c941]['removed']&&_0x389e23[_0x24c941+0x1]['added']){const _0x6ea9c4=this['_findUnclosedBlockOpeningToken'](_0x389e23[_0x24c941]['value']);if(null!==_0x6ea9c4){const _0xcebe22=this['_findUnclosedBlockOpeningToken'](_0x389e23[_0x24c941+0x1]['value']),_0x32764b=_0x389e23[_0x24c941]['value']['splice'](_0x6ea9c4),_0x28d782=_0x389e23[_0x24c941+0x1]['value']['splice'](_0xcebe22),_0x45e26e=[_0x28d782['shift']()];_0x32764b['shift']();const _0x33e8d7={'value':_0x32764b,'removed':!0x0},_0x429eb1={'value':_0x28d782,'added':!0x0},_0x2dc270={'value':_0x45e26e};_0x389e23['splice'](_0x24c941+0x2,0x0,_0x2dc270,_0x33e8d7,_0x429eb1);}}}['_findUnclosedBlockOpeningToken'](_0x21d387){let _0x49e8df=0x0,_0x431f13=-0x1;for(let _0x1f9b0c=0x0;_0x1f9b0c<_0x21d387['length'];_0x1f9b0c++){const _0xb08851=_0x21d387[_0x1f9b0c];'element'==_0xb08851['type']&&'block'==_0xb08851['category']&&(_0x49e8df+=_0xb08851['isStart']?0x1:-0x1,_0xb08851['isStart']&&(_0x431f13=_0x1f9b0c));}return 0x0===_0x49e8df?null:_0x431f13;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x5a304d=0x0;_0x5a304d<this['_diffItems']['length'];_0x5a304d++){const _0x425e61=this['_diffItems'][_0x5a304d]['change'],_0x4577c8=[];_0x4577c8['push'](this['_diffItems'][_0x5a304d]);let _0x512268=_0x5a304d+0x1;for(;this['_diffItems'][_0x512268]&&this['_diffItems'][_0x512268]['change']==_0x425e61;)_0x4577c8['push'](this['_diffItems'][_0x512268]),_0x512268++,_0x5a304d++;const _0x5d0357=_0x4577c8['map'](_0x2c4e18=>_0x2c4e18['token']);if('unchanged'==_0x425e61)_0x4577c8['map'](_0x567c58=>_0x567c58['before'])['forEach'](_0x27470d=>this['_traverseOverItem'](_0x27470d));else{if('removed'==_0x425e61){if(this['_markDeletions']){const _0x19b4d2=this['_path']['slice']();_0x5d0357['forEach'](_0x3f60b6=>this['_traverseOverItem'](_0x3f60b6));const _0x1cb4ef=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x19b4d2,'end':_0x1cb4ef}});}else this['_handleChanged'](_0x5d0357,!0x0,this['_path']['slice']());}else{const _0x20503f=_0x5d0357['filter'](_0x565642=>'element'!=_0x565642['type']||'container'!=_0x565642['category']);this['_handleChanged'](_0x20503f,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x510271=0x0;_0x510271<this['_diffItems']['length'];_0x510271++){const _0x182c22=this['_diffItems'][_0x510271]['change'],_0x1337d5=[];_0x1337d5['push'](this['_diffItems'][_0x510271]);let _0x34f2cf=_0x510271+0x1;for(;this['_diffItems'][_0x34f2cf]&&this['_diffItems'][_0x34f2cf]['change']==_0x182c22;)_0x1337d5['push'](this['_diffItems'][_0x34f2cf]),_0x34f2cf++,_0x510271++;const _0x443672=_0x1337d5['map'](_0x1a0a44=>_0x1a0a44['token']);if('unchanged'==_0x182c22){const _0x4db5dc=_0x1337d5['map'](_0x223327=>_0x223327['before']);this['_handleUnchanged'](_0x4db5dc,_0x443672);}else('added'==_0x182c22||this['_markDeletions'])&&_0x443672['forEach'](_0x309ef6=>{'element'==_0x309ef6['type']&&_0x309ef6['isStart']&&this['_splitPostponedData']['has'](_0x309ef6['element'])&&this['_handleSplitPostponedData'](_0x309ef6['element'],this['_path']),this['_traverseOverItem'](_0x309ef6);});}}['_handleSplitPostponedData'](_0x92e0c6,_0x187388){const _0x5fb1b2=this['_splitPostponedData']['get'](_0x92e0c6);for(const _0x3c2795 of _0x5fb1b2)'rename'==_0x3c2795['type']?this['_operationsData']['push']({'type':'rename','path':_0x187388['slice'](),'oldName':_0x3c2795['oldValue'],'newName':_0x92e0c6['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x187388['slice'](),'howMany':0x1,'key':_0x3c2795['key'],'oldValue':_0x3c2795['oldValue'],'newValue':JSON['stringify'](_0x92e0c6['getAttribute'](_0x3c2795['key'])??null)});}['_calculateMarkersOperationsData'](_0x318e4e,_0x18b220){const _0x29c2f9={};for(const [_0xb25ffc]of _0x318e4e)_0x29c2f9[_0xb25ffc]=null;for(const [_0x35f9d6,_0x208385]of _0x18b220)_0x29c2f9[_0x35f9d6]=_0x208385;const _0x16ce82=Object['entries'](_0x29c2f9)['map'](([_0x3eeb0e,_0x310722])=>({'type':'marker','name':_0x3eeb0e,'range':_0x310722?{'start':_0x310722['start']['path']['slice'](),'end':_0x310722['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x16ce82);}['_handleUnwraps'](){const _0x1bde71=new Map(),_0x3390dd=[],_0x239dbb=[0x0];let _0x3beef9=this['_diffItems']['length']+0x1;for(let _0x5aaaeb=this['_diffItems']['length']-0x1;_0x5aaaeb>=0x0;_0x5aaaeb--){const {token:_0x471680,before:_0x187abb,change:_0x289a22}=this['_diffItems'][_0x5aaaeb];if('removed'!=_0x289a22&&(_0x3beef9=_0x5aaaeb),'element'!=_0x471680['type']||'container'!=_0x471680['category']||'added'==_0x289a22)continue;const _0x12f77e=_0x187abb?_0x187abb['element']:_0x471680['element'];if(_0x471680['isStart']){const _0x535d2f=_0x1bde71['get'](_0x12f77e),_0x5137ea=this['_diffItems'][_0x535d2f];('removed'==_0x289a22||'removed'==_0x5137ea['change'])&&_0x3beef9<_0x535d2f&&(this['_operationsData']['push']({'type':'unwrap','path':_0x12f77e['getPath'](),'howMany':_0x12f77e['maxOffset']+_0x239dbb[0x0]}),_0x239dbb['shift'](),_0x239dbb[0x0]+=_0x12f77e['maxOffset']-0x1,_0x3390dd['push'](_0x5aaaeb),_0x3390dd['push'](_0x535d2f));}else _0x1bde71['set'](_0x12f77e,_0x5aaaeb),_0x239dbb['unshift'](0x0);}_0x3390dd['sort']((_0xf68f5c,_0x209ea1)=>_0x209ea1-_0xf68f5c),_0x3390dd['forEach'](_0x3fc879=>{const _0x2d3ff8=this['_diffItems'][_0x3fc879];'removed'==_0x2d3ff8['change']?this['_diffItems']['splice'](_0x3fc879,0x1):(_0x2d3ff8['change']='added',delete _0x2d3ff8['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x2bd856=[];for(let _0x102e78=0x0;_0x102e78<this['_diffItems']['length'];_0x102e78++){const {change:_0x451474,token:_0x17c5d3}=this['_diffItems'][_0x102e78];if('added'==_0x451474&&'element'==_0x17c5d3['type']&&'container'==_0x17c5d3['category']){if(_0x17c5d3['isStart'])_0x2bd856['push'](this['_path']['slice']());else{if(!_0x17c5d3['isStart']){const _0x4e455e=_0x2bd856['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x4e455e,'end':this['_path']['slice']()},'token':_0x17c5d3}),this['_path'][this['_path']['length']-0x1]=_0x4e455e[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x451474||this['_markDeletions'])&&this['_traverseOverItem'](_0x17c5d3);}}['_handleUnchanged'](_0x2a0cfa,_0x373be7){for(let _0x56d0a5=0x0;_0x56d0a5<_0x2a0cfa['length'];_0x56d0a5++){const _0x588991=_0x2a0cfa[_0x56d0a5];if('element'==_0x588991['type']&&_0x588991['isStart']){const _0x553604=_0x373be7[_0x56d0a5];'block'==_0x588991['category']&&this['_handleElementRename'](_0x588991['element'],_0x553604['element'],this['_path']),this['_handleElementAttributeChanges'](_0x588991['element'],_0x553604['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x553604);}else{if('element'!=_0x588991['type']||_0x588991['isStart']){if('text'==_0x588991['type']){const _0x34bcfa=this['_path']['slice'](),_0x4b2db5=[],_0xf68de=[];for(;_0x2a0cfa[_0x56d0a5]&&'text'==_0x2a0cfa[_0x56d0a5]['type'];)_0x4b2db5['push'](_0x2a0cfa[_0x56d0a5]),_0xf68de['push'](_0x373be7[_0x56d0a5]),this['_path'][this['_path']['length']-0x1]+=_0x2a0cfa[_0x56d0a5]['data']['length'],_0x56d0a5++;_0x56d0a5--,this['_handleTextAttributeChanges'](_0x4b2db5,_0xf68de,_0x34bcfa);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x4faac2,_0x194187,_0x29c458){const _0x297514=[],_0xfb8f47=[],_0x4ac31d=_0x29c458['slice']();let _0x3c19e2=this['_parents']['length']-0x1;for(let _0x51f811=0x0;_0x51f811<_0x4faac2['length'];_0x51f811++){const _0x2cd1af=_0x4faac2[_0x51f811],_0x2a0301=_0x29c458['slice']();'element'!=_0x2cd1af['type']||_0x2cd1af['isStart']?'element'==_0x2cd1af['type']&&_0x2cd1af['isStart']?(_0x29c458['push'](0x0),_0x3c19e2++,_0xfb8f47['push']({'before':_0x2a0301,'after':_0x29c458['slice'](),'index':_0x51f811})):_0x29c458[_0x29c458['length']-0x1]+=_0x2cd1af['data']['length']:(_0x29c458['pop'](),_0x29c458[_0x29c458['length']-0x1]++,_0x3c19e2--,_0xfb8f47['length']?_0xfb8f47['pop']():_0x297514['push']({'before':_0x2a0301,'after':_0x29c458['slice'](),'index':_0x51f811}));}if(_0xfb8f47['length']!==_0x297514['length'])throw new _0xf213dd('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x4faac2,'isRemove':_0x194187});const _0x3a43a0=[{'after':_0x4ac31d['slice'](),'index':-0x1},..._0x297514,..._0xfb8f47,{'before':_0x29c458['slice'](),'index':_0x4faac2['length']}];if(_0x194187){for(let _0x37b158=_0x3a43a0['length']-0x1;_0x37b158>=0x1;_0x37b158--){const _0x1e9fc8=_0x3a43a0[_0x37b158-0x1]['after'],_0x17e68d=_0x3a43a0[_0x37b158]['before'],_0x1f756f=_0x17e68d[_0x17e68d['length']-0x1]-_0x1e9fc8[_0x1e9fc8['length']-0x1];_0x1f756f&&(this['_operationsData']['push']({'type':'remove','path':_0x1e9fc8,'howMany':_0x1f756f}),_0x17e68d[_0x17e68d['length']-0x1]-=_0x1f756f);}for(const {before:_0x523d34}of _0x297514)this['_operationsData']['push']({'type':'merge','path':_0x523d34});}else for(let _0x2d8770=0x0;_0x2d8770<_0x3a43a0['length']-0x1;_0x2d8770++){const _0x43cb8b=_0x3a43a0[_0x2d8770]['after'],_0x3a601b=_0x3a43a0[_0x2d8770+0x1]['before'],_0x5a860a=_0x3a43a0[_0x2d8770]['index']+0x1,_0xae40e3=_0x3a43a0[_0x2d8770+0x1]['index'];if(_0x5a860a!==_0xae40e3&&this['_operationsData']['push']({'type':'insert','path':_0x43cb8b,'tokens':_0x4faac2['slice'](_0x5a860a,_0xae40e3)}),_0x2d8770<_0x297514['length']){this['_operationsData']['push']({'type':'split','path':_0x3a601b});const _0x412c0d=_0x4faac2[_0xfb8f47[_0xfb8f47['length']-0x1-_0x2d8770]['index']],_0x53757b=this['_parents'][_0x3c19e2]['element'];_0x53757b['name']!=_0x412c0d['element']['name']&&this['_addSplitPostponedData'](_0x412c0d['element'],{'type':'rename','oldValue':_0x53757b['name']});const _0x594aad=this['_getAttributeChanges'](_0x53757b['getAttributes'](),_0x412c0d['element']['getAttributes']());for(const _0x246877 in _0x594aad){const _0x341dd0=_0x594aad[_0x246877]['oldValue'];this['_addSplitPostponedData'](_0x412c0d['element'],{'type':'attribute','key':_0x246877,'oldValue':_0x341dd0});}}}}['_addSplitPostponedData'](_0x1ae72f,_0xeac599){const _0x5f1538=this['_splitPostponedData']['get'](_0x1ae72f)||[];_0x5f1538['push'](_0xeac599),this['_splitPostponedData']['set'](_0x1ae72f,_0x5f1538);}['_traverseOverItem'](_0x36b263){'element'==_0x36b263['type']&&_0x36b263['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x36b263)):'element'!=_0x36b263['type']||_0x36b263['isStart']?'text'==_0x36b263['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x36b263['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x111a66,_0x139bc0,_0x201858){_0x111a66['name']!=_0x139bc0['name']&&this['_operationsData']['push']({'type':'rename','path':_0x201858['slice'](),'oldName':_0x111a66['name'],'newName':_0x139bc0['name']});}['_handleElementAttributeChanges'](_0x534e20,_0x37f795,_0x4ae187){const _0x14914f=this['_getAttributeChanges'](_0x534e20['getAttributes'](),_0x37f795['getAttributes']());for(const _0x570448 in _0x14914f){const {oldValue:_0xef6ea0,newValue:_0xc945c}=_0x14914f[_0x570448];this['_operationsData']['push']({'type':'attribute','path':_0x4ae187['slice'](),'howMany':0x1,'key':_0x570448,'oldValue':_0xef6ea0,'newValue':_0xc945c});}}['_handleTextAttributeChanges'](_0x4601d7,_0xb48176,_0x66c897){const _0x5c4c12=this['_operationsData'],_0x44c421=_0x4601d7[0x0]['parent'],_0x19a0c6=_0x4601d7[0x0]['offset'],_0x1d2f98=_0xb48176[0x0]['parent'],_0x3ff1bf=_0xb48176[0x0]['offset'],_0x45a99b=_0x4601d7['reduce']((_0x13a522,_0x31ef3b)=>_0x13a522+_0x31ef3b['data']['length'],0x0),_0x4312ed=this['_getAttrsForOffsets'](_0x44c421,_0x19a0c6,_0x45a99b),_0x24dd06=this['_getAttrsForOffsets'](_0x1d2f98,_0x3ff1bf,_0x45a99b),_0x2f6468={};for(let _0x37a89f=0x0;_0x37a89f<_0x45a99b;_0x37a89f++){const _0x1b81b6=_0x4312ed[_0x19a0c6+_0x37a89f],_0x3a1560=_0x24dd06[_0x3ff1bf+_0x37a89f],_0x940d3b=this['_getAttributeChanges'](_0x1b81b6,_0x3a1560);for(const _0x48f982 in _0x2f6468)_0x940d3b[_0x48f982]||_0x453cbb(_0x48f982);for(const _0x16a2c3 in _0x940d3b){const {oldValue:_0x13c4a7,newValue:_0x5bc77d}=_0x940d3b[_0x16a2c3],_0x25a156=_0x2f6468[_0x16a2c3];_0x25a156?_0x25a156['oldValue']==_0x13c4a7&&_0x25a156['newValue']==_0x5bc77d?_0x25a156['length']++:(_0x453cbb(_0x16a2c3),_0x2f6468[_0x16a2c3]={'oldValue':_0x13c4a7,'newValue':_0x5bc77d,'start':_0x37a89f,'length':0x1}):_0x2f6468[_0x16a2c3]={'oldValue':_0x13c4a7,'newValue':_0x5bc77d,'start':_0x37a89f,'length':0x1};}}for(const _0x301bc5 in _0x2f6468)_0x453cbb(_0x301bc5);function _0x453cbb(_0x181424){const _0x274fb3=_0x2f6468[_0x181424],_0x26967b=_0x66c897['slice']();_0x26967b[_0x26967b['length']-0x1]+=_0x274fb3['start'],_0x5c4c12['push']({'type':'attribute','path':_0x26967b,'howMany':_0x274fb3['length'],'key':_0x181424,'oldValue':_0x274fb3['oldValue'],'newValue':_0x274fb3['newValue']}),delete _0x2f6468[_0x181424];}}['_getAttributeChanges'](_0x1d5e7f,_0x4ef346){const _0xa76e13={};for(const [_0x34db3f,_0xea52f6]of _0x1d5e7f)_0xa76e13[_0x34db3f]={'oldValue':JSON['stringify'](_0xea52f6),'newValue':'null'};for(const [_0x34e538,_0x496832]of _0x4ef346){const _0x5dee67=JSON['stringify'](_0x496832);_0xa76e13[_0x34e538]?_0xa76e13[_0x34e538]['oldValue']==_0x5dee67?delete _0xa76e13[_0x34e538]:_0xa76e13[_0x34e538]['newValue']=_0x5dee67:_0xa76e13[_0x34e538]={'oldValue':'null','newValue':_0x5dee67};}return delete _0xa76e13[lt],_0xa76e13;}['_getAttrsForOffsets'](_0x171a7a,_0x3a16a4,_0x10d127){const _0x4d9a04=new Array(_0x3a16a4+_0x10d127);let _0x18fdc0=_0x171a7a['getChildAtOffset'](_0x3a16a4),_0x6a6e1e=_0x18fdc0['startOffset'];for(;_0x18fdc0&&_0x6a6e1e<_0x3a16a4+_0x10d127;){const _0x36829b=Array['from'](_0x18fdc0['getAttributes']());_0x4d9a04['fill'](_0x36829b,_0x6a6e1e,_0x6a6e1e+_0x18fdc0['offsetSize']),_0x6a6e1e+=_0x18fdc0['offsetSize'],_0x18fdc0=_0x18fdc0['nextSibling'];}return _0x4d9a04;}['_getPositionFromAnchorAndPath'](_0x569ec2,_0x3aeed1){const _0x3ad390=[..._0x569ec2['path']['slice'](0x0,-0x1),_0x569ec2['offset']+_0x3aeed1[0x0],..._0x3aeed1['slice'](0x1)];return new _0x1e77f0(_0x569ec2['root'],_0x3ad390);}['_makeModelFromTokens'](_0x18f0c1){const _0x4e8181=[];let _0x47b590=null;for(const _0x5f2123 of _0x18f0c1)if('element'!=_0x5f2123['type']||_0x5f2123['isStart']||_0x47b590!=_0x5f2123['element']){if(!_0x47b590){if('text'==_0x5f2123['type']){const _0x45e36c=_0x1e77f0['_createAt'](_0x5f2123['parent'],_0x5f2123['offset']),_0x429fe1=_0xac2e06['_createFromPositionAndShift'](_0x45e36c,_0x5f2123['data']['length']),_0x527784=Array['from'](_0x429fe1['getItems']())['map'](_0x40e429=>new _0x5e08d6(_0x40e429['data'],_0x40e429['getAttributes']()));_0x4e8181['push'](..._0x527784);}else{_0x47b590=_0x5f2123['element'];const _0x3d98a7=_0x5f2123['element']['_clone'](!0x0);_0x3d98a7['_removeAttribute'](lt);for(const _0x1a2d4e of this['_editor']['model']['createRangeIn'](_0x3d98a7)['getItems']())_0x1a2d4e['is']('element')&&_0x1a2d4e['_removeAttribute'](lt);_0x4e8181['push'](_0x3d98a7);}}}else _0x47b590=null;return _0x4e8181;}}function ht(_0x5d86b3,_0x5ecf66){return _0x5d86b3['type']===_0x5ecf66['type']&&(_0x5d86b3['limitId']===_0x5ecf66['limitId']&&('text'==_0x5d86b3['type']?_0x5d86b3['data']==_0x5ecf66['data']:function(_0x22324c,_0x22d13b){if(_0x22324c['isStart']!=_0x22d13b['isStart'])return!0x1;if(_0x22324c['isStart']&&_0x22324c['elementId']!=_0x22d13b['elementId'])return!0x1;if(_0x22324c['category']!=_0x22d13b['category'])return!0x1;if('block'==_0x22324c['category'])return!0x0;if('container'==_0x22324c['category']&&_0x22324c['elementId']!=_0x22d13b['elementId'])return!0x1;return _0x22324c['element']['name']==_0x22d13b['element']['name'];}(_0x5d86b3,_0x5ecf66)));}function dt(_0x1b6758){return K({'name':_0x1b6758['name'],...Object['fromEntries'](_0x1b6758['getAttributes']())});}export{AriaDescriptionView,CollaborationUserColor,J as ConfirmMixin,lt as DATA_ID_MODEL_ATTRIBUTE,ut as DATA_ID_VIEW_ATTRIBUTE,DocumentCompare,DocumentDiff,ot as FOCUS_ANNOTATION_KEYSTROKE,LateFocusButtonView,LateFocusDropdownButtonView,Permissions,SuggestionsConversion,User,UserView,Users,$ as fixElementSuggestionRange,W as getAllMarkersDomElementsSorted,R as getDateTimeFormatter,z as getMarkerDomElement,K as hashObject,it as sanitizeEditorConfig,rt as setupThreadKeyboardNavigation,O as splitSuggestionMarkerName,nt as surroundingMarkersDetector,j as trimHtml};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x485b6c=>0x1!=_0x485b6c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48dfb4=>{const {af:{dictionary:_0x502af3,getPluralForm:_0x1b9937}}={'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x464ea6=>0x1!=_0x464ea6}};_0x48dfb4['af']||={'dictionary':{},'getPluralForm':null},_0x48dfb4['af']['dictionary']=Object['assign'](_0x48dfb4['af']['dictionary'],_0x502af3),_0x48dfb4['af']['getPluralForm']=_0x1b9937;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x23b0ca=>0x0==_0x23b0ca?0x0:0x1==_0x23b0ca?0x1:0x2==_0x23b0ca?0x2:_0x23b0ca%0x64>=0x3&&_0x23b0ca%0x64<=0xa?0x3:_0x23b0ca%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x206a57=>{const {ar:{dictionary:_0x1e18f9,getPluralForm:_0x10b16b}}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'},'getPluralForm':_0x190786=>0x0==_0x190786?0x0:0x1==_0x190786?0x1:0x2==_0x190786?0x2:_0x190786%0x64>=0x3&&_0x190786%0x64<=0xa?0x3:_0x190786%0x64>=0xb?0x4:0x5}};_0x206a57['ar']||={'dictionary':{},'getPluralForm':null},_0x206a57['ar']['dictionary']=Object['assign'](_0x206a57['ar']['dictionary'],_0x1e18f9),_0x206a57['ar']['getPluralForm']=_0x10b16b;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x3135c1=>0x1!=_0x3135c1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x357c70=>{const {ast:{dictionary:_0x2bfa76,getPluralForm:_0x394b59}}={'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x1875ab=>0x1!=_0x1875ab}};_0x357c70['ast']||={'dictionary':{},'getPluralForm':null},_0x357c70['ast']['dictionary']=Object['assign'](_0x357c70['ast']['dictionary'],_0x2bfa76),_0x357c70['ast']['getPluralForm']=_0x394b59;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x37cbe0=>0x1!=_0x37cbe0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x24ec1e=>{const {az:{dictionary:_0x27f07c,getPluralForm:_0x55f3c9}}={'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x5a2935=>0x1!=_0x5a2935}};_0x24ec1e['az']||={'dictionary':{},'getPluralForm':null},_0x24ec1e['az']['dictionary']=Object['assign'](_0x24ec1e['az']['dictionary'],_0x27f07c),_0x24ec1e['az']['getPluralForm']=_0x55f3c9;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x25e1fb=>_0x25e1fb%0xa==0x1&&_0x25e1fb%0x64!=0xb?0x0:_0x25e1fb%0xa>=0x2&&_0x25e1fb%0xa<=0x4&&(_0x25e1fb%0x64<0xa||_0x25e1fb%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4607ca=>{const {be:{dictionary:_0x34cfd9,getPluralForm:_0x1c532f}}={'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''},'getPluralForm':_0x5cc228=>_0x5cc228%0xa==0x1&&_0x5cc228%0x64!=0xb?0x0:_0x5cc228%0xa>=0x2&&_0x5cc228%0xa<=0x4&&(_0x5cc228%0x64<0xa||_0x5cc228%0x64>=0x14)?0x1:0x2}};_0x4607ca['be']||={'dictionary':{},'getPluralForm':null},_0x4607ca['be']['dictionary']=Object['assign'](_0x4607ca['be']['dictionary'],_0x34cfd9),_0x4607ca['be']['getPluralForm']=_0x1c532f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'},'getPluralForm':_0x546a4d=>0x1!=_0x546a4d}};
|