@ckeditor/ckeditor5-collaboration-core 48.2.0-alpha.7 → 48.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/dist/augmentation.d.ts +28 -28
  2. package/dist/collaborationhistory.d.ts +16 -16
  3. package/dist/collaborationoperation.d.ts +16 -16
  4. package/dist/config.d.ts +139 -139
  5. package/dist/documentcompare.d.ts +115 -115
  6. package/dist/index-editor.css +80 -0
  7. package/dist/index.css +80 -0
  8. package/dist/index.d.ts +27 -26
  9. package/dist/index.js +1 -1
  10. package/dist/legacyerrors.d.ts +0 -4
  11. package/dist/permissions.d.ts +49 -49
  12. package/dist/suggestions/integrations/alignment.d.ts +10 -10
  13. package/dist/suggestions/integrations/basicstyles.d.ts +10 -10
  14. package/dist/suggestions/integrations/bookmark.d.ts +10 -10
  15. package/dist/suggestions/integrations/font.d.ts +10 -10
  16. package/dist/suggestions/integrations/footnotes.d.ts +10 -10
  17. package/dist/suggestions/integrations/generalhtmlsupport.d.ts +20 -20
  18. package/dist/suggestions/integrations/highlight.d.ts +10 -10
  19. package/dist/suggestions/integrations/horizontalline.d.ts +10 -10
  20. package/dist/suggestions/integrations/htmlembed.d.ts +10 -10
  21. package/dist/suggestions/integrations/image.d.ts +10 -10
  22. package/dist/suggestions/integrations/indent.d.ts +10 -10
  23. package/dist/suggestions/integrations/lineheight.d.ts +10 -10
  24. package/dist/suggestions/integrations/link.d.ts +10 -10
  25. package/dist/suggestions/integrations/list.d.ts +10 -10
  26. package/dist/suggestions/integrations/listproperties.d.ts +10 -10
  27. package/dist/suggestions/integrations/mediaembed.d.ts +10 -10
  28. package/dist/suggestions/integrations/multilevellist.d.ts +10 -10
  29. package/dist/suggestions/integrations/shiftenter.d.ts +10 -10
  30. package/dist/suggestions/integrations/table.d.ts +10 -10
  31. package/dist/suggestions/integrations/tablecellproperties.d.ts +10 -10
  32. package/dist/suggestions/integrations/tablefooters.d.ts +10 -10
  33. package/dist/suggestions/integrations/tableheadings.d.ts +10 -10
  34. package/dist/suggestions/integrations/tablelayout.d.ts +10 -10
  35. package/dist/suggestions/integrations/tableproperties.d.ts +10 -10
  36. package/dist/suggestions/integrations/uploadcare.d.ts +10 -10
  37. package/dist/suggestions/suggestionsconversion.d.ts +79 -79
  38. package/dist/suggestions/view/ariadescriptionview.d.ts +18 -18
  39. package/dist/suggestions/view/latefocusbuttonview.d.ts +29 -29
  40. package/dist/suggestionstyles.d.ts +17 -16
  41. package/dist/translations/af.js +1 -1
  42. package/dist/translations/af.umd.js +1 -1
  43. package/dist/translations/ar.js +1 -1
  44. package/dist/translations/ar.umd.js +1 -1
  45. package/dist/translations/ast.js +1 -1
  46. package/dist/translations/ast.umd.js +1 -1
  47. package/dist/translations/az.js +1 -1
  48. package/dist/translations/az.umd.js +1 -1
  49. package/dist/translations/be.js +1 -1
  50. package/dist/translations/be.umd.js +1 -1
  51. package/dist/translations/bg.js +1 -1
  52. package/dist/translations/bg.umd.js +1 -1
  53. package/dist/translations/bn.js +1 -1
  54. package/dist/translations/bn.umd.js +1 -1
  55. package/dist/translations/bs.js +1 -1
  56. package/dist/translations/bs.umd.js +1 -1
  57. package/dist/translations/ca.js +1 -1
  58. package/dist/translations/ca.umd.js +1 -1
  59. package/dist/translations/cs.js +1 -1
  60. package/dist/translations/cs.umd.js +1 -1
  61. package/dist/translations/da.js +1 -1
  62. package/dist/translations/da.umd.js +1 -1
  63. package/dist/translations/de-ch.js +1 -1
  64. package/dist/translations/de-ch.umd.js +1 -1
  65. package/dist/translations/de.js +1 -1
  66. package/dist/translations/de.umd.js +1 -1
  67. package/dist/translations/el.js +1 -1
  68. package/dist/translations/el.umd.js +1 -1
  69. package/dist/translations/en-au.js +1 -1
  70. package/dist/translations/en-au.umd.js +1 -1
  71. package/dist/translations/en-gb.js +1 -1
  72. package/dist/translations/en-gb.umd.js +1 -1
  73. package/dist/translations/en.js +1 -1
  74. package/dist/translations/en.umd.js +1 -1
  75. package/dist/translations/eo.js +1 -1
  76. package/dist/translations/eo.umd.js +1 -1
  77. package/dist/translations/es-co.js +1 -1
  78. package/dist/translations/es-co.umd.js +1 -1
  79. package/dist/translations/es.js +1 -1
  80. package/dist/translations/es.umd.js +1 -1
  81. package/dist/translations/et.js +1 -1
  82. package/dist/translations/et.umd.js +1 -1
  83. package/dist/translations/eu.js +1 -1
  84. package/dist/translations/eu.umd.js +1 -1
  85. package/dist/translations/fa.js +1 -1
  86. package/dist/translations/fa.umd.js +1 -1
  87. package/dist/translations/fi.js +1 -1
  88. package/dist/translations/fi.umd.js +1 -1
  89. package/dist/translations/fr.js +1 -1
  90. package/dist/translations/fr.umd.js +1 -1
  91. package/dist/translations/gl.js +1 -1
  92. package/dist/translations/gl.umd.js +1 -1
  93. package/dist/translations/gu.js +1 -1
  94. package/dist/translations/gu.umd.js +1 -1
  95. package/dist/translations/he.js +1 -1
  96. package/dist/translations/he.umd.js +1 -1
  97. package/dist/translations/hi.js +1 -1
  98. package/dist/translations/hi.umd.js +1 -1
  99. package/dist/translations/hr.js +1 -1
  100. package/dist/translations/hr.umd.js +1 -1
  101. package/dist/translations/hu.js +1 -1
  102. package/dist/translations/hu.umd.js +1 -1
  103. package/dist/translations/hy.js +1 -1
  104. package/dist/translations/hy.umd.js +1 -1
  105. package/dist/translations/id.js +1 -1
  106. package/dist/translations/id.umd.js +1 -1
  107. package/dist/translations/it.js +1 -1
  108. package/dist/translations/it.umd.js +1 -1
  109. package/dist/translations/ja.js +1 -1
  110. package/dist/translations/ja.umd.js +1 -1
  111. package/dist/translations/jv.js +1 -1
  112. package/dist/translations/jv.umd.js +1 -1
  113. package/dist/translations/kk.js +1 -1
  114. package/dist/translations/kk.umd.js +1 -1
  115. package/dist/translations/km.js +1 -1
  116. package/dist/translations/km.umd.js +1 -1
  117. package/dist/translations/kn.js +1 -1
  118. package/dist/translations/kn.umd.js +1 -1
  119. package/dist/translations/ko.js +1 -1
  120. package/dist/translations/ko.umd.js +1 -1
  121. package/dist/translations/ku.js +1 -1
  122. package/dist/translations/ku.umd.js +1 -1
  123. package/dist/translations/lt.js +1 -1
  124. package/dist/translations/lt.umd.js +1 -1
  125. package/dist/translations/lv.js +1 -1
  126. package/dist/translations/lv.umd.js +1 -1
  127. package/dist/translations/ms.js +1 -1
  128. package/dist/translations/ms.umd.js +1 -1
  129. package/dist/translations/nb.js +1 -1
  130. package/dist/translations/nb.umd.js +1 -1
  131. package/dist/translations/ne.js +1 -1
  132. package/dist/translations/ne.umd.js +1 -1
  133. package/dist/translations/nl.js +1 -1
  134. package/dist/translations/nl.umd.js +1 -1
  135. package/dist/translations/no.js +1 -1
  136. package/dist/translations/no.umd.js +1 -1
  137. package/dist/translations/oc.js +1 -1
  138. package/dist/translations/oc.umd.js +1 -1
  139. package/dist/translations/pl.js +1 -1
  140. package/dist/translations/pl.umd.js +1 -1
  141. package/dist/translations/pt-br.js +1 -1
  142. package/dist/translations/pt-br.umd.js +1 -1
  143. package/dist/translations/pt.js +1 -1
  144. package/dist/translations/pt.umd.js +1 -1
  145. package/dist/translations/ro.js +1 -1
  146. package/dist/translations/ro.umd.js +1 -1
  147. package/dist/translations/ru.js +1 -1
  148. package/dist/translations/ru.umd.js +1 -1
  149. package/dist/translations/si.js +1 -1
  150. package/dist/translations/si.umd.js +1 -1
  151. package/dist/translations/sk.js +1 -1
  152. package/dist/translations/sk.umd.js +1 -1
  153. package/dist/translations/sl.js +1 -1
  154. package/dist/translations/sl.umd.js +1 -1
  155. package/dist/translations/sq.js +1 -1
  156. package/dist/translations/sq.umd.js +1 -1
  157. package/dist/translations/sr-latn.js +1 -1
  158. package/dist/translations/sr-latn.umd.js +1 -1
  159. package/dist/translations/sr.js +1 -1
  160. package/dist/translations/sr.umd.js +1 -1
  161. package/dist/translations/sv.js +1 -1
  162. package/dist/translations/sv.umd.js +1 -1
  163. package/dist/translations/th.js +1 -1
  164. package/dist/translations/th.umd.js +1 -1
  165. package/dist/translations/ti.js +1 -1
  166. package/dist/translations/ti.umd.js +1 -1
  167. package/dist/translations/tk.js +1 -1
  168. package/dist/translations/tk.umd.js +1 -1
  169. package/dist/translations/tr.js +1 -1
  170. package/dist/translations/tr.umd.js +1 -1
  171. package/dist/translations/tt.js +1 -1
  172. package/dist/translations/tt.umd.js +1 -1
  173. package/dist/translations/ug.js +1 -1
  174. package/dist/translations/ug.umd.js +1 -1
  175. package/dist/translations/uk.js +1 -1
  176. package/dist/translations/uk.umd.js +1 -1
  177. package/dist/translations/ur.js +1 -1
  178. package/dist/translations/ur.umd.js +1 -1
  179. package/dist/translations/uz.js +1 -1
  180. package/dist/translations/uz.umd.js +1 -1
  181. package/dist/translations/vi.js +1 -1
  182. package/dist/translations/vi.umd.js +1 -1
  183. package/dist/translations/zh-cn.js +1 -1
  184. package/dist/translations/zh-cn.umd.js +1 -1
  185. package/dist/translations/zh.js +1 -1
  186. package/dist/translations/zh.umd.js +1 -1
  187. package/dist/ui/pillview.d.ts +103 -0
  188. package/dist/users/view/userview.d.ts +12 -12
  189. package/dist/users.d.ts +173 -173
  190. package/dist/utils/common-translations.d.ts +6 -6
  191. package/dist/utils/confirmmixin.d.ts +27 -17
  192. package/dist/utils/confirmview.d.ts +20 -20
  193. package/dist/utils/getdatetimeformatter.d.ts +31 -31
  194. package/dist/utils/getmarkerdomelement.d.ts +17 -17
  195. package/dist/utils/hashobject.d.ts +5 -5
  196. package/dist/utils/sanitizeeditorconfig.d.ts +11 -11
  197. package/dist/utils/setupthreadkeyboardnavigation.d.ts +31 -31
  198. package/dist/utils/suggestionmarkerutils.d.ts +13 -13
  199. package/dist/utils/surroundingmarkersdetector.d.ts +11 -11
  200. package/dist/utils/trim-html.d.ts +14 -14
  201. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ContextPlugin as _0x2e4bce,Editor as _0x2b853a,Plugin as _0x20a8bb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x47642c,Collection as _0x21886a,uid as _0x41bf63,toArray as _0x36efea,first as _0x146d81,FocusTracker as _0x3543f6,KeystrokeHandler as _0x1c009f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x5734d1,IconView as _0x251ce7,ButtonView as _0x23c71c,DropdownButtonView as _0x7e0906,FocusCycler as _0xe9d287,isViewWithFocusCycler as _0x1ef29b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x3059c5,IconCheck as _0x1dcf90,IconCancel as _0x19dec8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as _0x3e53fa,toWidget as _0xc1a14c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x4a0022}from'luxon';import{InsertOperation as _0x3c8742,MoveOperation as _0x2f2a34,ModelPosition as _0xe5f221,ModelRange as _0x89429c,MarkerOperation as _0x5f5473,MergeOperation as _0x5d611c,SplitOperation as _0x18620c,RenameOperation as _0x26d972,AttributeOperation as _0x212522,ModelTreeWalker as _0x5c5e82,ModelText as _0x3813f2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x4b122f}from'diff';class Permissions extends _0x2e4bce{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0xe34ff5,_0x24a5fd){let _0x2c0039;if(_0x24a5fd||(_0x24a5fd=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x24a5fd?_0x2c0039=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x2c0039=this['context']['editors']['find'](_0x4e3f86=>_0x4e3f86['config']['get']('collaboration.channelId')==_0x24a5fd)),!_0x2c0039)throw new _0x47642c('permissions-set-permissions-invalid-channel-id',null);const _0x38c65=_0x2c0039['plugins'],_0x44ec22=_0x38c65['has']('CommentsRepository')?_0x38c65['get']('CommentsRepository'):void 0x0,_0x41679d=_0x38c65['has']('CommentsOnly')&&_0x38c65['get']('CommentsOnly'),_0x26db19=_0xe34ff5['includes']('document:write'),_0x300bc4=_0xe34ff5['includes']('comment:modify_all'),_0x2e8c65=_0xe34ff5['includes']('comment:admin'),_0x8f4bed=_0xe34ff5['includes']('comment:write'),_0x58a7cb=_0x8f4bed||_0x2e8c65,_0x1aa2df=_0x58a7cb||_0x300bc4,_0x462e4f=_0x26db19||_0x58a7cb;(_0x41679d&&(_0x41679d['isEnabled']=!_0x26db19&&_0x1aa2df),_0x2c0039 instanceof _0x2b853a)&&(!(_0x26db19||_0x1aa2df&&_0x44ec22)?_0x2c0039['enableReadOnlyMode']('no-permissions'):_0x2c0039['disableReadOnlyMode']('no-permissions'));if(_0x44ec22){_0x44ec22['setPermissions']({'admin':_0x2e8c65,'modifyAll':_0x300bc4,'write':_0x8f4bed,'resolve':_0x462e4f},_0x24a5fd);const _0x54f877=_0x2c0039 instanceof _0x2b853a&&_0x2c0039['commands']['get']('addCommentThread');_0x54f877&&(_0x58a7cb?_0x54f877['clearForceDisabled']('noPermissions'):_0x54f877['forceDisabled']('noPermissions'));}}}function B(_0x57e081,_0x1802e9){const t=_0x57e081['t'];switch(_0x1802e9){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 _0x2e4bce{['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(_0x9c1d20){super(_0x9c1d20),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x21886a(),this['_locale']=_0x9c1d20['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:_0x5c68bc,name:_0x4f1081,..._0x1c0e49}){if(!_0x5c68bc||'string'!=typeof _0x5c68bc)throw new _0x47642c('users-add-invalid-id');if(this['users']['has'](_0x5c68bc))throw new _0x47642c('users-add-duplicated-id',null,{'id':_0x5c68bc});const _0x5d838c=this['context']['config']['get']('users.getInitialsCallback'),_0x4ba2e7={..._0x1c0e49,'id':_0x5c68bc,'name':N(this['_locale'],_0x4f1081),'color':this['_getNextColor']()};_0x4ba2e7['name']=N(this['_locale'],_0x4ba2e7['name']);const _0x5aa0b4=new User(_0x4ba2e7,_0x5d838c);return this['users']['add'](_0x5aa0b4),_0x5aa0b4;}['getUser'](_0x595542){return this['users']['get'](_0x595542);}['useAnonymousUser'](){const _0x2cce2f=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x2cce2f);}['defineMe'](_0x420b5f){if(this['_myId'])throw new _0x47642c('users-me-already-defined',null);const _0x103e61=this['getUser'](_0x420b5f);if(!_0x103e61)throw new _0x47642c('users-me-missing-user',null);this['_myId']=_0x420b5f,_0x103e61['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x42b53b=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x42b53b&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x22728c=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x22728c,'name':B(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class User{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x159e67,_0x16164f){this['id']=_0x159e67['id'],this['color']=_0x159e67['color'],this['name']=_0x159e67['name'],this['initials']=_0x16164f?_0x16164f(this['name']):this['_computeInitials'](),this['avatar']=_0x159e67['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x443f74=this['name']['split']('\x20')['filter'](_0x50aa96=>/^[\p{Letter}]/u['test'](_0x50aa96));return 0x1===_0x443f74['length']?this['_getInitial'](_0x443f74[0x0]):0x0===_0x443f74['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x443f74[0x0])+this['_getInitial'](_0x443f74[_0x443f74['length']-0x1]);}['_getInitial'](_0x2944f4){return String['fromCodePoint'](_0x2944f4['codePointAt'](0x0))['toUpperCase']();}}function N(_0x4ef165,_0x139c28=''){return''==(_0x139c28=_0x139c28['trim']())?B(_0x4ef165,'Anonymous'):_0x139c28;}class CollaborationUserColor{['_id'];constructor(_0x3286d1){this['_id']=_0x3286d1;}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 _0x5734d1{['name'];['notificationView'];constructor(_0x346c2d,_0x3b25ec,_0x11e47a){super(_0x346c2d),this['name']=_0x3b25ec['name'],this['notificationView']=null;const _0x5bada7=['ck','ck-user'],_0x48aeab=['ck','ck-user__img'];if(_0x3b25ec['isAnonymous']&&_0x48aeab['push']('ck-user__anonymous'),!_0x3b25ec['isAnonymous']&&_0x3b25ec['isMe']&&_0x5bada7['push']('ck-user_me'),_0x3b25ec['avatar']&&_0x48aeab['push']('ck-user__avatar'),_0x11e47a){const _0x18bc96=new _0x251ce7();_0x18bc96['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x18bc96['content']=_0x3059c5,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x11e47a},'children':[_0x18bc96]};}const _0x400d7e=[{'tag':'div','attributes':{'class':_0x48aeab,'style':{'background-image':_0x3b25ec['avatar']?'url(\x27'+_0x3b25ec['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x3b25ec['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x3b25ec['name']},'children':[{'text':_0x3b25ec['initials']}]}];this['notificationView']&&_0x400d7e['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x5bada7,'data-user-id':_0x3b25ec['id']},'children':_0x400d7e});}}class AriaDescriptionView extends _0x5734d1{['id'];constructor(_0x3eaf01,_0x5e841a){super(_0x3eaf01),this['id']='ck-aria-description-'+_0x41bf63(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x5e841a}]});}}class LateFocusButtonView extends _0x23c71c{['render'](){super['render'](),H(this);}}class LateFocusDropdownButtonView extends _0x7e0906{['render'](){super['render'](),H(this);}}function H(_0x25288c){_0x25288c['listenTo'](_0x25288c['element'],'mousedown',(_0x3fdf7b,_0x3245a0)=>{_0x3245a0['stopPropagation'](),_0x3245a0['preventDefault']();}),_0x25288c['listenTo'](_0x25288c['element'],'mouseup',()=>{_0x25288c['element']['focus']();});}function O(_0x390fc7){const _0x1f54b9=_0x390fc7['split'](':');return{'group':_0x1f54b9[0x0],'type':_0x1f54b9[0x1],'subType':_0x1f54b9['length']>=0x5?_0x1f54b9[0x2]:null,'id':_0x1f54b9['length']<0x5?_0x1f54b9[0x2]:_0x1f54b9[0x3],'authorId':_0x1f54b9['length']<0x5?_0x1f54b9[0x3]:_0x1f54b9[0x4],'markerCount':0x6==_0x1f54b9['length']?_0x1f54b9[0x5]:null};}function U(_0x2a52bb,_0x294656){const _0x705dd6=_0x2a52bb['end']['nodeBefore'];if(_0x705dd6&&_0x705dd6['is']('element')&&_0x294656['schema']['isBlock'](_0x705dd6)&&!_0x294656['schema']['isObject'](_0x705dd6)){const _0x12d59d=_0x294656['createPositionAt'](_0x705dd6,'end');return _0x294656['createRange'](_0x2a52bb['start'],_0x12d59d);}return _0x2a52bb;}class SuggestionsConversionAlignment extends _0x20a8bb{['afterInit'](){const _0x1c945b=this['editor'];if(!_0x1c945b['plugins']['has']('AlignmentEditing'))return;_0x1c945b['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const $=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class SuggestionsConversionBasicStyles extends _0x20a8bb{['afterInit'](){const _0x42896f=this['editor'],_0x442dfa=_0x42896f['plugins']['get']('SuggestionsConversion');for(const _0x5cfb0a of $){if(!_0x42896f['plugins']['has'](_0x5cfb0a))continue;const _0x293f68=_0x5cfb0a['slice'](0x0,-0x7)['toLowerCase']();_0x442dfa['registerInlineAttribute'](_0x293f68);}}}class SuggestionsConversionBookmark extends _0x20a8bb{['afterInit'](){const _0xc76381=this['editor'],_0x177bd4=_0xc76381['plugins']['get']('SuggestionsConversion');_0xc76381['plugins']['has']('BookmarkEditing')&&_0x177bd4['registerBlockAttribute']('bookmarkId');}}const F=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class SuggestionsConversionFont extends _0x20a8bb{['afterInit'](){const _0x1cbb7a=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x42fde9,commandName:_0x59c2e7}of F)this['editor']['plugins']['has'](_0x42fde9)&&_0x1cbb7a['registerInlineAttribute'](_0x59c2e7);}}class SuggestionsConversionFootnotes extends _0x20a8bb{['afterInit'](){const {editor:_0x2d1712}=this;if(!_0x2d1712['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x37eb14=_0x2d1712['plugins']['get']('SuggestionsConversion');_0x37eb14['registerBlockAttribute']('footnotesListStyle'),_0x37eb14['registerBlockAttribute']('footnotesListStart');}}class SuggestionsConversionGeneralHtmlSupport extends _0x20a8bb{['afterInit'](){const _0x455c28=this['editor'];if(!_0x455c28['plugins']['has']('GeneralHtmlSupport')||!_0x455c28['plugins']['has']('DataSchema'))return;const _0xc74747=_0x455c28['plugins']['get']('SuggestionsConversion'),_0x58e827=_0x455c28['plugins']['get']('GeneralHtmlSupport'),_0x3d6b15=_0x455c28['plugins']['get']('DataSchema');for(const _0x1a5ca7 of _0x3d6b15['getDefinitionsForView'](/.*/,!0x1)){const _0x23d79d=_0x58e827['getGhsAttributeNameForElement'](_0x1a5ca7['view']);_0x1a5ca7['isInline']&&!_0x1a5ca7['isObject']&&!('appliesToBlock'in _0x1a5ca7&&_0x1a5ca7['appliesToBlock'])?_0xc74747['registerInlineAttribute'](_0x23d79d):_0xc74747['registerBlockAttribute'](_0x23d79d);}}}class SuggestionsConversionHighlight extends _0x20a8bb{['afterInit'](){const _0x42f4e2=this['editor'];if(!_0x42f4e2['plugins']['has']('HighlightEditing'))return;_0x42f4e2['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class SuggestionsConversionHtmlEmbed extends _0x20a8bb{['afterInit'](){const _0x1c4a14=this['editor'];if(!_0x1c4a14['plugins']['has']('HtmlEmbed'))return;_0x1c4a14['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class SuggestionsConversionImage extends _0x20a8bb{['afterInit'](){const _0x5233ea=this['editor'];if(!_0x5233ea['plugins']['has']('ImageEditing'))return;const _0x7d6c4=_0x5233ea['plugins']['get']('SuggestionsConversion');_0x7d6c4['registerBlockAttribute']('src'),_0x5233ea['plugins']['has']('ImageResize')&&_0x7d6c4['registerBlockAttribute']('resizedWidth'),_0x5233ea['plugins']['has']('ImageTextAlternativeEditing')&&_0x7d6c4['registerBlockAttribute']('alt'),_0x5233ea['plugins']['has']('PictureEditing')&&_0x7d6c4['registerBlockAttribute']('sources'),_0x5233ea['plugins']['has']('ImageSizeAttributes')&&(_0x7d6c4['registerBlockAttribute']('width'),_0x7d6c4['registerBlockAttribute']('height'));}}class SuggestionsConversionIndent extends _0x20a8bb{['afterInit'](){const _0x3be1e=this['editor'],_0x53ffae=_0x3be1e['plugins']['get']('SuggestionsConversion');_0x3be1e['plugins']['has']('IndentBlock')&&(_0x53ffae['registerBlockAttribute']('blockIndent'),_0x3be1e['plugins']['has']('ListEditing')&&(_0x53ffae['registerBlockAttribute']('blockIndentList'),_0x53ffae['registerBlockAttribute']('blockIndentListItem')));}}class SuggestionsConversionLineHeight extends _0x20a8bb{['afterInit'](){const _0x14a8d0=this['editor'];if(!_0x14a8d0['plugins']['has']('LineHeight'))return;_0x14a8d0['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class SuggestionsConversionLink extends _0x20a8bb{['afterInit'](){const _0x442f37=this['editor'];if(!_0x442f37['plugins']['has']('LinkEditing'))return;const _0x2d3c4e=_0x442f37['plugins']['get']('SuggestionsConversion'),_0x35dc14=_0x442f37['commands']['get']('link');_0x2d3c4e['registerInlineAttribute']('linkHref');for(const _0x67b8df of _0x35dc14['manualDecorators'])_0x2d3c4e['registerInlineAttribute'](_0x67b8df['id']);}}class SuggestionsConversionList extends _0x20a8bb{['afterInit'](){const _0x4bd036=this['editor'];if(!_0x4bd036['plugins']['has']('ListEditing'))return;const _0xa14db7=_0x4bd036['plugins']['get']('SuggestionsConversion'),_0x23d465=_0x4bd036['plugins']['has']('TodoListEditing');_0xa14db7['registerBlockAttribute']('listItemId'),_0xa14db7['registerBlockAttribute']('listType'),_0xa14db7['registerBlockAttribute']('listIndent'),_0x23d465&&_0xa14db7['registerBlockAttribute']('todoListChecked');}}class SuggestionsConversionListProperties extends _0x20a8bb{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x552fd6=this['editor']['config']['get']('list.properties'),_0x6da2f0=this['editor']['plugins']['get']('SuggestionsConversion');_0x552fd6['styles']&&_0x6da2f0['registerBlockAttribute']('listStyle'),_0x552fd6['reversed']&&_0x6da2f0['registerBlockAttribute']('listReversed'),_0x552fd6['startIndex']&&_0x6da2f0['registerBlockAttribute']('listStart');}}class SuggestionsConversionMultiLevelList extends _0x20a8bb{['afterInit'](){const _0xc19ed8=this['editor'],_0x42f701=_0xc19ed8['plugins']['get']('SuggestionsConversion');_0xc19ed8['plugins']['has']('MultiLevelList')&&_0x42f701['registerBlockAttribute']('listMarkerStyle');}}class SuggestionsConversionTableHeadings extends _0x20a8bb{['afterInit'](){const _0xd056a1=this['editor'];if(!_0xd056a1['plugins']['has']('TableEditing'))return;const _0x5879db=_0xd056a1['plugins']['get']('SuggestionsConversion');_0x5879db['registerBlockAttribute']('headingRows'),_0x5879db['registerBlockAttribute']('headingColumns');}}class SuggestionsConversionTableProperties extends _0x20a8bb{['afterInit'](){const {plugins:_0xb46ad6}=this['editor'];if(!_0xb46ad6['has']('TablePropertiesEditing'))return;const _0x2088e8=_0xb46ad6['get']('SuggestionsConversion'),_0x39cf0d=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x42f11b of _0x39cf0d)_0x2088e8['registerBlockAttribute'](_0x42f11b);}}class SuggestionsConversionTableLayout extends _0x20a8bb{['afterInit'](){const _0x2b5fa9=this['editor'],_0x852dd4=_0x2b5fa9['plugins']['get']('SuggestionsConversion');_0x2b5fa9['plugins']['has']('TableLayout')&&_0x852dd4['registerBlockAttribute']('tableType');}}class SuggestionsConversionUploadcare extends _0x20a8bb{['afterInit'](){const _0x158868=this['editor'],_0x135fe0=this['editor']['plugins']['get']('SuggestionsConversion');_0x158868['plugins']['has']('Uploadcare')&&_0x158868['plugins']['has']('UploadcareImageEdit')&&_0x135fe0['registerBlockAttribute']('uploadcareImageId');}}class SuggestionsConversionShiftEnter extends _0x20a8bb{['afterInit'](){const _0xbfac4f=this['editor'];if(!_0xbfac4f['plugins']['has']('ShiftEnter'))return;const _0x3f693d=_0xbfac4f['plugins']['get']('SuggestionsConversion'),_0x4709bf=(_0x4951bf,_0x5c841c,_0x3365c1,_0xa28280)=>{if(_0xa28280&&!_0x3365c1['options']['showSuggestionHighlights'])return;if(!_0x3365c1['consumable']['test'](_0x5c841c['markerRange'],_0x4951bf['name']))return;const _0x4588e0=_0xbfac4f['model'];for(const _0x317bde of _0x5c841c['markerRange']['getItems']()){if(!_0x317bde['is']('element','softBreak'))continue;const _0x126842='deletion'==_0x5c841c['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xaa9d75,authorId:_0x4de9a5}=O(_0x5c841c['markerName']),_0x20755d=_0x3365c1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x126842,'data-suggestion':_0xaa9d75,'data-author-id':_0x4de9a5}),_0x16292a=_0x3365c1['mapper']['toViewPosition'](_0x4588e0['createPositionBefore'](_0x317bde));!_0xa28280&&_0x3f693d['_activeMarkers']['includes'](_0x5c841c['markerName'])&&_0x3365c1['writer']['addClass']('ck-suggestion-marker--active',_0x20755d),_0x3365c1['writer']['insert'](_0x16292a,_0x20755d),_0x3365c1['mapper']['bindElementToMarker'](_0x20755d,_0x5c841c['markerName']);}};_0xbfac4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5910c6,_0x5cf5cd,_0x36e893)=>{_0x4709bf(_0x5910c6,_0x5cf5cd,_0x36e893,!0x1);},{'priority':'high'}),_0xbfac4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1189ae,_0x541d86,_0x3a8a5f)=>{_0x4709bf(_0x1189ae,_0x541d86,_0x3a8a5f,!0x1);},{'priority':'high'}),_0xbfac4f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2570a0,_0x356edc,_0x16555c)=>{_0x4709bf(_0x2570a0,_0x356edc,_0x16555c,!0x0);},{'priority':'high'}),_0xbfac4f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5c9f9a,_0x3b26ad,_0x4c81b4)=>{_0x4709bf(_0x5c9f9a,_0x3b26ad,_0x4c81b4,!0x0);},{'priority':'high'});}}class SuggestionsConversionMediaEmbed extends _0x20a8bb{['afterInit'](){const _0x4bb643=this['editor'];if(!_0x4bb643['plugins']['has']('MediaEmbedEditing'))return;const _0x277087=_0x4bb643['plugins']['get']('SuggestionsConversion');_0x4bb643['plugins']['has']('MediaEmbedResizeEditing')&&_0x277087['registerBlockAttribute']('resizedWidth'),_0x4bb643['plugins']['has']('MediaEmbedStyleEditing')&&_0x277087['registerBlockAttribute']('mediaStyle'),_0x4bb643['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4b75de,{writer:_0x1781d6,options:_0x80f2a2})=>{if(_0x80f2a2['showSuggestionHighlights'])return _0x1781d6['createEmptyElement']('div');},'converterPriority':'high'}),_0x4bb643['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5f2a80,_0x48ece2,_0x1163c0)=>{_0x1163c0['options']['showSuggestionHighlights']&&_0x5f2a80['stop']();},{'priority':'high'});}}class SuggestionsConversionTable extends _0x20a8bb{['afterInit'](){const _0x49a619=this['editor'];if(!_0x49a619['plugins']['has']('Table'))return;_0x49a619['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4374e4,_0x1d1d53,_0x17f7dd)=>{((_0x166dd4,_0x22d7df,_0x140cbb)=>{if(!_0x140cbb['options']['showSuggestionHighlights'])return;const _0x4f5c2e=_0x22d7df['item'];if(!_0x4f5c2e||!_0x4f5c2e['is']('element','tableCell'))return;const _0x3171ae=_0x140cbb['mapper']['toViewElement'](_0x4f5c2e);if(_0x3171ae){const {id:_0xe40e8d,authorId:_0x4c4ab6}=O(_0x22d7df['markerName']);_0x3e53fa(_0x3171ae,_0x140cbb['writer'],(_0x5971ef,_0x238f37,_0xe50bfa)=>{_0xe50bfa['addClass'](_0x36efea(_0x238f37['classes']),_0x5971ef),_0xe50bfa['setAttribute']('data-suggestion',_0xe40e8d,_0x5971ef),_0xe50bfa['setAttribute']('data-author-id',_0x4c4ab6,_0x5971ef);});}})(0x0,_0x1d1d53,_0x17f7dd);},{'priority':'highest'});}}class SuggestionsConversionHorizontalLine extends _0x20a8bb{['afterInit'](){const _0x37a883=this['editor'];_0x37a883['plugins']['has']('HorizontalLineEditing')&&_0x37a883['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1e3416,{writer:_0x36dad7,options:_0x447726})=>{if(!_0x447726['showSuggestionHighlights'])return null;const _0x159bd6=_0x36dad7['createContainerElement']('div'),_0x2fb812=_0x36dad7['createEmptyElement']('hr');return _0x36dad7['addClass']('ck-horizontal-line',_0x159bd6),_0x36dad7['insert'](_0x36dad7['createPositionAt'](_0x159bd6,0x0),_0x2fb812),_0x159bd6;},'converterPriority':'high'});}}class SuggestionsConversionTableCellProperties extends _0x20a8bb{['afterInit'](){const {plugins:_0x2a836d,model:_0x3b8f33}=this['editor'];if(!_0x2a836d['has']('TableCellPropertiesEditing'))return;const _0x46161e=_0x2a836d['get']('SuggestionsConversion'),_0x497907=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x5675d8 of _0x497907)_0x46161e['registerBlockAttribute'](_0x5675d8);_0x3b8f33['schema']['checkAttribute']('tableCell','tableCellType')&&_0x46161e['registerBlockAttribute']('tableCellType');}}class SuggestionsConversionTableFooters extends _0x20a8bb{['afterInit'](){const _0x543b30=this['editor'];if(!_0x543b30['plugins']['has']('TableEditing')||!_0x543b30['config']['get']('table.enableFooters'))return;_0x543b30['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class SuggestionsConversion extends _0x20a8bb{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[SuggestionsConversionAlignment,SuggestionsConversionBasicStyles,SuggestionsConversionBookmark,SuggestionsConversionFont,SuggestionsConversionFootnotes,SuggestionsConversionGeneralHtmlSupport,SuggestionsConversionHighlight,SuggestionsConversionHorizontalLine,SuggestionsConversionHtmlEmbed,SuggestionsConversionImage,SuggestionsConversionIndent,SuggestionsConversionLineHeight,SuggestionsConversionLink,SuggestionsConversionList,SuggestionsConversionListProperties,SuggestionsConversionMediaEmbed,SuggestionsConversionMultiLevelList,SuggestionsConversionShiftEnter,SuggestionsConversionTable,SuggestionsConversionTableHeadings,SuggestionsConversionTableFooters,SuggestionsConversionTableLayout,SuggestionsConversionTableCellProperties,SuggestionsConversionTableProperties,SuggestionsConversionUploadcare];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x23150a=this['editor'],_0x16ae27=(_0x4da44b,_0x4c0240,_0x2b2aa3)=>{const {id:_0x47e365,authorId:_0x32835a,type:_0xc7258d,subType:_0x5e5256}=O(_0x4da44b['markerName']),_0x2fc003=['ck-suggestion-marker',this['_getClassName'](_0xc7258d,_0x5e5256)];let _0x1f96e0=0xbb8;return!_0x2b2aa3&&(this['_activeMarkers']['includes'](_0x4da44b['markerName'])&&(_0x2fc003['push']('ck-suggestion-marker--active'),_0x1f96e0=0xbc2)),('deletion'==_0xc7258d&&(_0x1f96e0+=0x5),{'classes':_0x2fc003,'attributes':{'data-suggestion':_0x47e365,'data-author-id':_0x32835a},'priority':_0x1f96e0});};_0x23150a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b20ee,_0x3fb737)=>_0x16ae27(_0x4b20ee,0x0,!0x1)}),_0x23150a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x47b683,_0x2336ba)=>_0x16ae27(_0x47b683,0x0,!0x0)}),_0x23150a['conversion']['for']('dataDowncast')['add'](_0x507b37=>{_0x507b37['on']('addMarker:suggestion',(_0x4acebb,_0x8c27af,_0x2dad58)=>{if(!_0x2dad58['options']['showSuggestionHighlights'])return;const _0x5cf231=_0x8c27af['item'];if(!_0x5cf231)return;const _0x8667f=_0x2dad58['mapper']['toViewElement'](_0x5cf231);_0x23150a['model']['schema']['isObject'](_0x5cf231)&&_0x8667f&&!_0x8667f['getCustomProperty']('widget')&&_0x8667f['is']('containerElement')&&_0xc1a14c(_0x8667f,_0x2dad58['writer']);},{'priority':'high'});});const _0x220b87=(_0x5e8f74,_0xed5d6,_0x39148f,_0xfc507,_0x33a169)=>{if(_0xfc507&&!_0x39148f['options']['showSuggestionHighlights'])return;if(!_0xed5d6['item'])return;const {id:_0x255f34,authorId:_0x1c9cce,subType:_0x3f256c}=O(_0xed5d6['markerName']);if(_0x33a169){const _0x8645c8=_0x3f256c['split']('|')[0x0];if(!this['isBlockAttribute'](_0x8645c8))return;}if(_0xed5d6['item']['is']('selection'))return void _0x39148f['consumable']['consume'](_0xed5d6['item'],_0x5e8f74['name']);const _0x26cdc7=_0x39148f['mapper']['toViewElement'](_0xed5d6['item']);if(_0xed5d6['item']['is']('element')&&_0x23150a['model']['schema']['isBlock'](_0xed5d6['item'])&&!_0x26cdc7['getCustomProperty']('addHighlight')){_0x39148f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x26cdc7),_0x39148f['writer']['setAttribute']('data-suggestion',_0x255f34,_0x26cdc7),_0x39148f['writer']['setAttribute']('data-author-id',_0x1c9cce,_0x26cdc7),_0x39148f['mapper']['bindElementToMarker'](_0x26cdc7,_0xed5d6['markerName']),_0xfc507||(this['_activeMarkers']['includes'](_0xed5d6['markerName'])?_0x39148f['writer']['addClass']('ck-suggestion-marker--active',_0x26cdc7):_0x39148f['writer']['removeClass']('ck-suggestion-marker--active',_0x26cdc7));for(const _0x252b86 of _0x23150a['model']['createRangeIn'](_0xed5d6['item'])['getItems']())_0x39148f['consumable']['consume'](_0x252b86,_0x5e8f74['name']);_0x39148f['consumable']['consume'](_0xed5d6['item'],_0x5e8f74['name']);}},_0x4f50a8=(_0x474509,_0x1f26f6,_0x343d1d,_0x2bc1bf)=>{const _0x2f3c74=_0x343d1d['mapper']['markerNameToElements'](_0x1f26f6['markerName']);if(_0x2f3c74){if(_0x2bc1bf){const {subType:_0x43ec12}=O(_0x1f26f6['markerName']),_0x40848d=_0x43ec12['split']('|')[0x0];if(!this['isBlockAttribute'](_0x40848d))return;}for(const _0x5e3f12 of _0x2f3c74)_0x5e3f12['getCustomProperty']('addHighlight')||(_0x343d1d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e3f12),_0x343d1d['writer']['removeAttribute']('data-suggestion',_0x5e3f12),_0x343d1d['writer']['removeAttribute']('data-author-id',_0x5e3f12),_0x343d1d['mapper']['unbindElementFromMarkerName'](_0x5e3f12,_0x1f26f6['markerName']));}};_0x23150a['conversion']['for']('editingDowncast')['add'](_0x2d9489=>{_0x2d9489['on']('addMarker:suggestion:formatBlock',(_0x3c20a1,_0x40206a,_0x4f3d1d)=>{_0x220b87(_0x3c20a1,_0x40206a,_0x4f3d1d,!0x1,!0x1);},{'priority':'high'});}),_0x23150a['conversion']['for']('editingDowncast')['add'](_0x277a6f=>{_0x277a6f['on']('addMarker:suggestion:attribute',(_0x226e11,_0x298ee5,_0x203c64)=>{_0x220b87(_0x226e11,_0x298ee5,_0x203c64,!0x1,!0x0);},{'priority':'high'});}),_0x23150a['conversion']['for']('editingDowncast')['add'](_0x4f5f9e=>{_0x4f5f9e['on']('removeMarker:suggestion:formatBlock',(_0x46e55b,_0x31ae97,_0x299533)=>{_0x4f50a8(0x0,_0x31ae97,_0x299533,!0x1);},{'priority':'high'});}),_0x23150a['conversion']['for']('editingDowncast')['add'](_0x5c6d05=>{_0x5c6d05['on']('removeMarker:suggestion:attribute',(_0x3145f2,_0x5bce4a,_0x5179e1)=>{_0x4f50a8(0x0,_0x5bce4a,_0x5179e1,!0x0);},{'priority':'high'});}),_0x23150a['conversion']['for']('dataDowncast')['add'](_0x4aa04c=>{_0x4aa04c['on']('addMarker:suggestion:formatBlock',(_0x1eb8ab,_0x563195,_0x8c1755)=>{_0x220b87(_0x1eb8ab,_0x563195,_0x8c1755,!0x0,!0x1);},{'priority':'highest'});}),_0x23150a['conversion']['for']('dataDowncast')['add'](_0x31433e=>{_0x31433e['on']('addMarker:suggestion:attribute',(_0x4aa144,_0x29e1fd,_0x2dbb63)=>{_0x220b87(_0x4aa144,_0x29e1fd,_0x2dbb63,!0x0,!0x0);},{'priority':'highest'});}),_0x23150a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1ce26a,_0x93f463)=>_0x93f463['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1ce26a['substr'](0xb)}});const _0x360194=(_0x4d0415,_0x40c89b,_0xea05ce,_0x44eb47,_0x2058ca)=>{if(_0x44eb47&&!_0xea05ce['options']['showSuggestionHighlights'])return;if(!_0xea05ce['consumable']['test'](_0x40c89b['markerRange'],_0x4d0415['name']))return;const _0x197ac0=this['_activeMarkers'],_0x31f418=_0x40c89b['markerRange']['getWalker'](),_0x554d83=_0x40c89b['markerRange']['start'],_0x2fe720=_0x23150a['model']['schema'];let _0x1002f4=null,_0x3d63e4=null,_0x34b2a9=!0x1,_0x4df9eb=!0x1;for(const _0xebc985 of _0x31f418){const _0x4436f1=_0xebc985['item'];_0x34b2a9=_0x34b2a9||_0x2fe720['isContent'](_0x4436f1);const _0x1e9400=_0xea05ce['mapper']['toViewElement'](_0x4436f1);if(_0x1e9400&&_0x1e9400['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xebc985['type']&&(_0x2fe720['isBlock'](_0x4436f1)&&!_0x2fe720['isLimit'](_0x4436f1)&&(_0x4436f1['nextSibling']||_0x554d83['isAtEnd']?_0x1002f4&&_0x1002f4['parent']==_0x4436f1||(_0x1002f4=_0x4436f1,_0x2b348a(_0xebc985['previousPosition']),_0x4df9eb=!0x0):_0x3d63e4=_0x3d63e4||_0xebc985['previousPosition']));}function _0x2b348a(_0x3e5b03){const {id:_0x4d95fa,authorId:_0x3e74ac}=O(_0x40c89b['markerName']),_0x3a9ffd=_0xea05ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2058ca,'data-suggestion':_0x4d95fa,'data-author-id':_0x3e74ac}),_0x156c5f=_0xea05ce['mapper']['toViewPosition'](_0x3e5b03);!_0x44eb47&&_0x197ac0['includes'](_0x40c89b['markerName'])&&_0xea05ce['writer']['addClass']('ck-suggestion-marker--active',_0x3a9ffd),_0xea05ce['writer']['insert'](_0x156c5f,_0x3a9ffd),_0xea05ce['mapper']['bindElementToMarker'](_0x3a9ffd,_0x40c89b['markerName']);}_0x34b2a9||_0x4df9eb||!_0x3d63e4||_0x2b348a(_0x3d63e4);};_0x23150a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x44993c,_0x2b225e,_0x19bf7e)=>{_0x360194(_0x44993c,_0x2b225e,_0x19bf7e,!0x1,'merge');},{'priority':'high'}),_0x23150a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x14b5cf,_0x2a6c06,_0x227664)=>{_0x360194(_0x14b5cf,_0x2a6c06,_0x227664,!0x0,'merge');},{'priority':'high'}),_0x23150a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29f430,_0xd2c069,_0x24a4a9)=>{_0x360194(_0x29f430,_0xd2c069,_0x24a4a9,!0x1,'split');},{'priority':'high'}),_0x23150a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x544108,_0x1586c2,_0x545231)=>{_0x360194(_0x544108,_0x1586c2,_0x545231,!0x0,'split');},{'priority':'high'}),_0x23150a['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x42e404,_0x8cfd84,_0x102bc0)=>{((_0x5989ef,_0x4f0cec,_0x4d0134)=>{const _0x200a90=_0x4d0134['mapper']['markerNameToElements'](_0x4f0cec['markerName']);if(_0x200a90){for(const _0x4c7fb2 of _0x200a90)(_0x4c7fb2['hasClass']('ck-suggestion-marker-split')||_0x4c7fb2['hasClass']('ck-suggestion-marker-merge'))&&(_0x4d0134['mapper']['unbindElementFromMarkerName'](_0x4c7fb2,_0x4f0cec['markerName']),_0x4d0134['writer']['remove'](_0x4c7fb2));}})(0x0,_0x8cfd84,_0x102bc0);},{'priority':'high'});const _0xa78195=(_0x2f813c,_0x6806ac,_0xf92c1f,_0x732760)=>{if(_0x732760&&!_0xf92c1f['options']['showSuggestionHighlights'])return;const _0xb09917=_0x6806ac['markerRange']['start'],_0x2e906f=_0x6806ac['markerRange']['end'],_0xf3f842=_0x23150a['model']['schema'];if(!_0xb09917['isTouching'](_0x2e906f)||!_0xb09917['nodeAfter'])return;const _0x5e4c19=_0xb09917['nodeAfter'];if(_0xf3f842['isBlock'](_0x5e4c19)&&!_0xf3f842['isLimit'](_0x5e4c19)&&_0xf3f842['checkChild'](_0x5e4c19,'$text')){if(!_0xf92c1f['consumable']['consume'](_0x6806ac['markerRange'],_0x2f813c['name']))return;const {id:_0x4006d1,authorId:_0x4fa9f1}=O(_0x6806ac['markerName']),_0xf6ea31=_0xf92c1f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4006d1,'data-author-id':_0x4fa9f1}),_0x111928=_0xf92c1f['mapper']['toViewPosition'](_0x2e906f);!_0x732760&&this['_activeMarkers']['includes'](_0x6806ac['markerName'])&&_0xf92c1f['writer']['addClass']('ck-suggestion-marker--active',_0xf6ea31),_0xf92c1f['writer']['insert'](_0x111928,_0xf6ea31),_0xf92c1f['mapper']['bindElementToMarker'](_0xf6ea31,_0x6806ac['markerName']);}};_0x23150a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ad410,_0x1790be,_0x2f07d4)=>{_0xa78195(_0x1ad410,_0x1790be,_0x2f07d4,!0x1);},{'priority':'high'}),_0x23150a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2855c7,_0x21b8eb,_0x21df9e)=>{_0xa78195(_0x2855c7,_0x21b8eb,_0x21df9e,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x3ade16,_0x42ada8,_0x4540fa)=>{this['_activeMarkers']=_0x4540fa['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x409682){this['_blockAttributeKeys']['add'](_0x409682);}['registerInlineAttribute'](_0x3a90f4){this['_inlineAttributeKeys']['add'](_0x3a90f4);}['isBlockAttribute'](_0x52b321){return this['_blockAttributeKeys']['has'](_0x52b321);}['isInlineAttribute'](_0x243052){return this['_inlineAttributeKeys']['has'](_0x243052);}['isRegisteredAttribute'](_0x14bbda){return this['isInlineAttribute'](_0x14bbda)||this['isBlockAttribute'](_0x14bbda);}['_getClassName'](_0x4b4b18,_0x1e3f6d){if('attribute'!=_0x4b4b18)return'ck-suggestion-marker-'+_0x4b4b18;const _0xef6fbb=_0x1e3f6d['split']('|')[0x0];return this['isBlockAttribute'](_0xef6fbb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function z(_0xa09b46={},_0x1a00f8){if(void 0x0!==_0xa09b46['dateTimeFormat']&&'function'!=typeof _0xa09b46['dateTimeFormat'])throw new _0x47642c('invalid-date-time-format');return _0x1b59d3=>{const _0x19184e='string'==typeof _0x1b59d3?_0x4a0022['fromISO'](_0x1b59d3):_0x4a0022['fromJSDate'](_0x1b59d3),_0x28e477=_0x4a0022['now'](),_0x1fa7de=Math['floor'](_0x28e477['diff'](_0x19184e,'days')['days']);return _0xa09b46['dateTimeFormat']?_0xa09b46['dateTimeFormat'](_0x19184e['toJSDate'](),_0x1a00f8&&_0x1a00f8['t']?_0x1a00f8['t']:void 0x0):0x0===_0x1fa7de?_0x1a00f8?B(_0x1a00f8,'Today')+'\x20'+_0x19184e['toFormat']('hh:mma'):_0x19184e['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x1fa7de?_0x1a00f8?B(_0x1a00f8,'Yesterday')+'\x20'+_0x19184e['toFormat']('hh:mma'):_0x19184e['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x1fa7de<0x7?_0x1a00f8?B(_0x1a00f8,'Last')+'\x20'+B(_0x1a00f8,_0x19184e['toFormat']('EEEE'))+'\x20'+_0x19184e['toFormat']('hh:mma'):_0x19184e['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x19184e['toFormat']('LL-dd-yyyy\x20hh:mma');};}function R(_0x26fc71,_0x2b8d81){const _0x5e9271=_0x26fc71['mapper']['markerNameToElements'](_0x2b8d81['name']);if(!_0x5e9271)return null;const _0x2b5345=_0x146d81(_0x5e9271['values']());return _0x26fc71['view']['domConverter']['mapViewToDom'](_0x2b5345)||null;}function W(_0xedce13,_0xb5b842){if(0x0===_0xb5b842['length'])return null;const _0x14ad43=[],_0x356630=_0xedce13['view']['domConverter'];for(const _0x24ab2a of _0xb5b842){const _0x1ff3bc=_0xedce13['mapper']['markerNameToElements'](_0x24ab2a['name']);if(!_0x1ff3bc)continue;const _0xd6038=Array['from'](_0x1ff3bc)['map'](_0x9cd6ee=>_0x356630['mapViewToDom'](_0x9cd6ee))['filter'](_0x242198=>!!_0x242198);_0x14ad43['push'](..._0xd6038);}if(0x0===_0x14ad43['length'])return null;const _0x4e3e5e=[];for(const _0x51d270 of _0x14ad43){const _0x217fbf=_0x51d270['getClientRects']()['item'](0x0);_0x217fbf&&_0x4e3e5e['push']({'x':_0x217fbf['x'],'y':_0x217fbf['y'],'domElement':_0x51d270});}return 0x0===_0x4e3e5e['length']?null:(_0x4e3e5e['sort']((_0x45b75f,_0x485efc)=>_0x45b75f['y']-_0x485efc['y']||_0x45b75f['x']-_0x485efc['x']),_0x4e3e5e['map'](_0x4ade68=>_0x4ade68['domElement']));}function j(_0x5c4134,{limit:_0x2d8d69,suffix:_0x35f743='...'}){const _0x54c332=[];let _0x175c93=0x0;const _0x1d8513=_0x5c4134['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x59bfb3=0x0;_0x59bfb3<_0x1d8513['length'];_0x59bfb3++){let _0x2e2557=_0x1d8513[_0x59bfb3];const _0x4a9e08=Y(_0x2e2557);if(_0x2e2557['startsWith']('<')){if(_0x175c93>=_0x2d8d69){const _0x295989=_0x2e2557['match'](/[a-zA-Z]+/);if(!_0x295989){_0x1d8513[_0x59bfb3]='';continue;}const _0x16fb1a=_0x295989[0x0];_0x2e2557['startsWith']('</')?(_0x54c332['length']&&(_0x2e2557=''),_0x54c332['pop']()):(_0x54c332['push'](_0x16fb1a),_0x2e2557='');}}else{if(_0x175c93>=_0x2d8d69)_0x2e2557='';else{if(_0x175c93+_0x4a9e08['length']>=_0x2d8d69){let _0x49926b=_0x2d8d69-_0x175c93;if('\x20'===_0x4a9e08[_0x49926b-0x1])_0x49926b--;else{const _0x11d2c2=_0x4a9e08['slice'](_0x49926b)['indexOf']('\x20');-0x1!==_0x11d2c2?_0x49926b+=_0x11d2c2:_0x49926b=_0x2e2557['length'];}_0x2e2557=_0x4a9e08['slice'](0x0,_0x49926b)['join']('')+_0x35f743,_0x175c93=_0x2d8d69;}else _0x175c93+=_0x4a9e08['length'];}}_0x1d8513[_0x59bfb3]=_0x2e2557;}return _0x1d8513['join']('\x0a')['replace'](/\n/g,'');}function Y(_0x409e03){const _0x135159=[];for(let _0x271f11=0x0;_0x271f11<_0x409e03['length'];_0x271f11++){const _0x117962=_0x409e03['substring'](_0x271f11)['match'](/^&[a-z0-9#]+;/);if(_0x117962){const _0x561f6b=_0x117962[0x0];_0x135159['push'](_0x561f6b),_0x271f11+=_0x561f6b['length']-0x1;}else _0x135159['push'](_0x409e03[_0x271f11]);}return _0x135159;}class ConfirmView extends _0x5734d1{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x46df32){super(_0x46df32);const _0x54e545=this['bindTemplate'];this['set']('message',B(_0x46df32,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x46df32,B(_0x46df32,'Yes'),_0x1dcf90,'submit'),this['cancelView']=this['_createButtonView'](_0x46df32,B(_0x46df32,'No'),_0x19dec8,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x3543f6(),this['keystrokes']=new _0x1c009f(),this['focusCycler']=new _0xe9d287({'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':_0x54e545['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'](_0x227b89,_0x573c53,_0x3a5111,_0xb666df){const _0x3a6d36=new _0x23c71c(_0x227b89);return _0x3a6d36['label']=_0x573c53,_0x3a6d36['icon']=_0x3a5111,_0x3a6d36['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0xb666df}}),_0x3a6d36['on']('execute',()=>this['fire'](_0xb666df)),_0x3a6d36;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0xbec3f8=>{this['keystrokes']['listenTo'](_0xbec3f8['element']),this['focusTracker']['add'](_0xbec3f8['element']);}),this['keystrokes']['set']('esc',(_0x3b767b,_0x5178a7)=>{this['fire']('cancel'),_0x5178a7();});}}function G(_0x2f5e80){return class _0x24f79c extends _0x2f5e80{['showConfirm'](_0x28c205,_0x152f44){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x28c205,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x152f44['appendChild'](this['confirmView']['element']),_0x152f44['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x1f6d76,_0x593283,_0x4beb0e)=>{_0x4beb0e||_0x152f44['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x25219e=>this['confirmView']['on']('submit',_0x25219e));}['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 J(_0x1d411c){let _0x1b451c=0x0,_0x44a178=0x0;for(const _0x14f62b of q(_0x1d411c))_0x1b451c=(_0x1b451c<<0x5)-_0x1b451c+_0x14f62b,_0x1b451c&=_0x1b451c,[_0x1b451c,_0x44a178]=[_0x44a178,_0x1b451c];return X(_0x1b451c)+X(_0x44a178);}function*K(_0x2ef268){null==_0x2ef268||null==_0x2ef268?yield 0x12b9b0a1:0x0===_0x2ef268||!0x1===_0x2ef268?yield 0x0:0x1===_0x2ef268||0x1==_0x2ef268?yield 0x1:Array['isArray'](_0x2ef268)?yield*function*(_0x48d35d){for(const _0x339da6 of _0x48d35d)yield*K(_0x339da6);}(_0x2ef268):'object'==typeof _0x2ef268?yield*q(_0x2ef268):'string'==typeof _0x2ef268?yield*Z(_0x2ef268):'number'==typeof _0x2ef268&&(yield _0x2ef268);}function*q(_0x2427be){if(yield Q('{'),_0x2427be){const _0x14f568=Object['keys'](_0x2427be)['sort']();for(const _0x19a1e2 of _0x14f568){yield*Z(_0x19a1e2),yield Q(':');const _0x52d9e5=_0x2427be[_0x19a1e2];yield*K(_0x52d9e5);}}yield Q('}');}function*Z(_0x43cbd5){yield Q('\x22');for(const _0x30fc54 of _0x43cbd5)yield Q(_0x30fc54);yield Q('\x22');}function Q(_0x1df3aa){return _0x1df3aa['charCodeAt'](0x0);}function X(_0x2d66d6){return(_0x2d66d6*=Math['sign'](_0x2d66d6))['toString'](0x24);}const tt=['root','roots','initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function st(_0x5ea923,_0x2f24f3,_0x547d23,_0x3d8485=[]){const _0x3f0bb4='string'==typeof _0x5ea923?_0x547d23['get'](_0x5ea923)['constructor']:_0x5ea923['prototype']['constructor'];if(_0x2f24f3['has'](_0x3f0bb4))return _0x2f24f3['get'](_0x3f0bb4);_0x2f24f3['set'](_0x3f0bb4,!0x0);const _0x323e35=[...et,..._0x3d8485]['map'](_0x26ea15=>{if(_0x547d23['has'](_0x26ea15))return _0x547d23['get'](_0x26ea15)['constructor'];})['filter'](_0x2b7eea=>_0x2b7eea);if(_0x3f0bb4&&_0x323e35['includes'](_0x3f0bb4))return _0x2f24f3['set'](_0x3f0bb4,!0x1),!0x1;if(!_0x3f0bb4['requires'])return _0x2f24f3['set'](_0x3f0bb4,!0x0),!0x0;const _0xf97940=_0x3f0bb4['requires']['every'](_0x4c69f1=>st(_0x4c69f1,_0x2f24f3,_0x547d23,_0x3d8485));return _0x2f24f3['set'](_0x3f0bb4,_0xf97940),_0xf97940;}function it(_0x2a7c6e,_0x389a57){const _0x521677={};for(const _0x521bb6 of _0x2a7c6e['config']['names']())tt['includes'](_0x521bb6)||(_0x521677[_0x521bb6]=_0x2a7c6e['config']['get'](_0x521bb6));const _0x17b412=_0x521677['plugins']||[],_0x419e10=_0x2a7c6e['constructor']['builtinPlugins']||[],_0x1692f6=_0x17b412['length']?_0x17b412:_0x419e10,_0x2cc198=_0x521677['extraPlugins']||[];delete _0x521677['extraPlugins'];const _0x566c0e=_0x521677['removePlugins']||[];delete _0x521677['removePlugins'];const _0x9d6b77=_0x2a7c6e['_context']['config']['get']('plugins')||[],_0x39a223=_0x1692f6['concat'](_0x2cc198)['concat'](_0x9d6b77)['map'](_0x3f37f8=>'string'==typeof _0x3f37f8?_0x419e10['find'](_0x1ab566=>_0x1ab566['pluginName']==_0x3f37f8):_0x3f37f8)['filter'](_0x375679=>!_0x566c0e['includes'](_0x375679)&&!_0x566c0e['includes'](_0x375679['pluginName'])),_0x4cac6f=Array['from'](new Set(_0x39a223)),_0x5656fb=new Map();return _0x521677['plugins']=_0x4cac6f['filter'](_0x3fb096=>st(_0x3fb096,_0x5656fb,_0x2a7c6e['plugins'],_0x389a57)),_0x521677;}function nt(_0x513581,_0x5d82a7){const _0x2bd572=[];_0x513581['document']['selection']['on']('change:range',()=>{const _0x4d2c6e=function(_0x40dfe0,_0x1c3e2d){const _0xec5485=[];for(const _0x262ca2 of _0x40dfe0['markers']){const _0x125aae=_0x262ca2['getRange']();(_0x125aae['containsPosition'](_0x1c3e2d)||_0x125aae['start']['isEqual'](_0x1c3e2d)||_0x125aae['end']['isEqual'](_0x1c3e2d))&&_0xec5485['push'](_0x262ca2);}return _0xec5485;}(_0x513581,_0x513581['document']['selection']['focus']),_0x32bdd1=[],_0x23f21d=[],_0x2281d7=[];for(const _0x3d313c of _0x2bd572)_0x4d2c6e['includes'](_0x3d313c)||_0x32bdd1['push'](_0x3d313c);for(const _0x14905a of _0x4d2c6e)_0x2bd572['includes'](_0x14905a)||_0x23f21d['push'](_0x14905a),_0x2281d7['push'](_0x14905a);(_0x32bdd1['length']||_0x23f21d['length'])&&_0x5d82a7({'left':_0x32bdd1,'entered':_0x23f21d}),_0x2bd572['length']=0x0,_0x2bd572['push'](..._0x2281d7);});}const ot='Ctrl+Shift+E';function rt(_0x587909,_0x42ac28){const _0x2b1763=_0x587909['element'];_0x587909['keystrokes']['listenTo'](_0x2b1763);for(const _0x43a722 of _0x42ac28)at(_0x587909,_0x43a722);_0x42ac28['on']('change',(_0x37034b,_0x414853)=>{for(const _0x53faa7 of _0x414853['removed'])ct(_0x587909,_0x53faa7);for(const _0x2b5079 of Array['from'](_0x414853['added'])['reverse']())at(_0x587909,_0x2b5079);}),_0x587909['keystrokes']['set']('enter',(_0x444627,_0x73305e)=>{_0x2b1763===_0x444627['target']&&(_0x587909['focusCycler']['focusFirst'](),_0x73305e());},{'filter':_0x468e44=>_0x468e44['target']===_0x2b1763}),_0x587909['keystrokes']['set']('esc',(_0x3dff21,_0x236322)=>{_0x2b1763!==_0x3dff21['target']?_0x587909['focus']():_0x587909['fire']('escape'),_0x236322();}),_0x587909['keystrokes']['set']('arrowdown',(_0x254553,_0x54c7ad)=>{_0x2b1763===_0x254553['target']&&(_0x587909['fire']('arrowdown'),_0x54c7ad());}),_0x587909['keystrokes']['set']('arrowup',(_0x1167e2,_0xe2a16f)=>{_0x2b1763===_0x1167e2['target']&&(_0x587909['fire']('arrowup'),_0xe2a16f());});}function at(_0x1bcd4f,_0x5a152c){_0x5a152c['isRendered']&&(_0x1bcd4f['focusTracker']['add'](_0x5a152c['element']),_0x1bcd4f['keystrokes']['listenTo'](_0x5a152c['element']),_0x1ef29b(_0x5a152c)&&function(_0x132624,_0x188baf){const _0x2df401=_0x132624['actions'],_0x41a441=_0x188baf['actions'];for(const _0x59d86a of Object['keys'](_0x2df401))if(_0x59d86a in _0x41a441&&_0x2df401[_0x59d86a]!==_0x41a441[_0x59d86a])return!0x1;return!0x0;}(_0x1bcd4f['focusCycler'],_0x5a152c['focusCycler'])&&_0x1bcd4f['focusCycler']['chain'](_0x5a152c['focusCycler']));}function ct(_0x8b9160,_0x5be661){_0x8b9160['focusTracker']['remove'](_0x5be661['element']),_0x8b9160['keystrokes']['stopListening'](_0x5be661['element']),_0x1ef29b(_0x5be661)&&_0x8b9160['focusCycler']['unchain'](_0x5be661['focusCycler']);}const lt='$elementId',ut='data-id';class DocumentCompare extends _0x2e4bce{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x2b853a?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x23ecc8,_0x4b0906)=>{_0x4b0906['on']('ready',()=>{this['_integrateEditor'](_0x4b0906);});});}get['editor'](){if(this['context']instanceof _0x2b853a)return this['context'];{const _0x2f40ba=this['context']['editors']['first'];if(!_0x2f40ba)throw new _0x47642c('documentcompare-no-editor',this);return _0x2f40ba;}}['getDiff'](_0x239e79,_0x3ea320,_0x27e964={'anchor':'main','markDeletions':!0x1}){const _0x5e5bef=_0x27e964['targetEditor']||this['editor'];let _0x4109ba,_0x1f1de0;if('string'==typeof _0x27e964['anchor']){const _0x1287c7=_0x5e5bef['model']['document']['getRoot'](_0x27e964['anchor']);if(!_0x1287c7)throw new _0x47642c('documentcompare-compare-no-root',this,{'anchor':_0x27e964['anchor']});_0x4109ba=_0x1287c7,_0x1f1de0=_0x5e5bef['model']['createPositionAt'](_0x1287c7,0x0);}else _0x4109ba=_0x27e964['anchor']['clone'](),_0x1f1de0=_0x27e964['anchor']['clone']();const _0x5220e6=_0x5e5bef['data']['parse'](_0x239e79,_0x4109ba),_0x5608cf=_0x5e5bef['data']['parse'](_0x3ea320,_0x4109ba);return new DocumentDiff({'editor':_0x5e5bef,'before':_0x5220e6,'after':_0x5608cf,'options':{'anchor':_0x1f1de0,'markDeletions':_0x27e964['markDeletions']}});}['isMarkedRemoveOperation'](_0x3099bd){return'marker'==_0x3099bd['type']&&_0x3099bd['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x3dfd46){_0x3dfd46['conversion']['for']('upcast')['add'](_0x49b8d7=>{_0x49b8d7['on']('element',(_0x5abef1,_0x20243,_0x5b7962)=>{if(_0x20243['modelRange']&&_0x5b7962['consumable']['consume'](_0x20243['viewItem'],{'attributes':'data-id'}))for(const _0x431e68 of _0x20243['modelRange']['getItems']({'shallow':!0x0})){if(_0x431e68['is']('$textProxy'))continue;const _0x2dff29=_0x20243['viewItem']['getAttribute'](ut);_0x2dff29&&_0x5b7962['writer']['setAttribute'](lt,_0x2dff29,_0x431e68);}},{'priority':'low'});}),_0x3dfd46['model']['schema']['addAttributeCheck'](()=>!0x0,lt);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x28e584,before:_0x222ad7,after:_0x54405f,options:_0x2b5107}){this['_editor']=_0x28e584,this['_markDeletions']=!!_0x2b5107['markDeletions'],this['_anchor']=_0x2b5107['anchor'];const _0x344ffa=this['_tokenizeModel'](_0x222ad7),_0x2b72c9=this['_tokenizeModel'](_0x54405f);this['_diffItems']=this['_diffModelTokens'](_0x344ffa,_0x2b72c9),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x222ad7['markers'],_0x54405f['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x312a6d=this['_editor']['model']['document'],_0x58ae78=[];let _0xb171ec=_0x312a6d['version'];for(const _0x2a4ecf of this['_operationsData'])switch(_0x2a4ecf['type']){case'attribute':{const _0x416902=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a4ecf['path']),_0xadfecc=_0x416902['getShiftedBy'](_0x2a4ecf['howMany']),_0x2c228e=new _0x89429c(_0x416902,_0xadfecc),_0x423911=JSON['parse'](_0x2a4ecf['oldValue']),_0x437ea0=JSON['parse'](_0x2a4ecf['newValue']);_0x58ae78['push'](new _0x212522(_0x2c228e,_0x2a4ecf['key'],_0x423911,_0x437ea0,_0xb171ec++));break;}case'insert':{const _0x5e31fe=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a4ecf['path']),_0x5e6d0b=this['_makeModelFromTokens'](_0x2a4ecf['tokens']);_0x58ae78['push'](new _0x3c8742(_0x5e31fe,_0x5e6d0b,_0xb171ec++));break;}case'remove':{const _0x31d122=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a4ecf['path']),_0xa16867=new _0xe5f221(_0x312a6d['graveyard'],[0x0]);_0x58ae78['push'](new _0x2f2a34(_0x31d122,_0x2a4ecf['howMany'],_0xa16867,_0xb171ec++));break;}case'rename':{const _0x4ba0c4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a4ecf['path']);_0x58ae78['push'](new _0x26d972(_0x4ba0c4,_0x2a4ecf['oldName'],_0x2a4ecf['newName'],_0xb171ec++));break;}case'split':{const _0x4148f7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a4ecf['path']),_0x4b0721=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a4ecf['path']['slice'](0x0,-0x1));_0x4b0721['offset']++,_0x58ae78['push'](new _0x18620c(_0x4148f7,Number['NEGATIVE_INFINITY'],_0x4b0721,null,_0xb171ec++));break;}case'merge':{const _0x361e2e=_0x2a4ecf['path']['slice'](),_0x94cc71=_0x361e2e['slice'](0x0,-0x1);_0x94cc71[_0x94cc71['length']-0x1]++,_0x94cc71['push'](0x0);const _0x4150d4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x94cc71),_0x416de0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x361e2e),_0x22c1a8=new _0xe5f221(_0x312a6d['graveyard'],[0x0]);_0x58ae78['push'](new _0x5d611c(_0x4150d4,Number['NEGATIVE_INFINITY'],_0x416de0,_0x22c1a8,_0xb171ec++));break;}case'marker':case'markedRemove':{let _0x138532=null;if(_0x2a4ecf['range']){const _0x224446=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a4ecf['range']['start']),_0x146cd8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a4ecf['range']['end']);_0x138532=new _0x89429c(_0x224446,_0x146cd8);}const _0x5643d3='marker'==_0x2a4ecf['type']?_0x2a4ecf['name']:'$markedRemove:'+_0x41bf63();_0x58ae78['push'](new _0x5f5473(_0x5643d3,null,_0x138532,_0x312a6d['model']['markers'],!0x0,_0xb171ec++));break;}case'unwrap':{const _0x193b26=_0x2a4ecf['path']['slice']();_0x193b26['push'](0x0);const _0xa47e23=_0x2a4ecf['path']['slice'](),_0x2fe946=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x193b26),_0x481e76=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xa47e23),_0x32eec2=new _0xe5f221(_0x312a6d['graveyard'],[0x0]);_0x58ae78['push'](new _0x2f2a34(_0x2fe946,_0x2a4ecf['howMany'],_0x481e76,_0xb171ec++)),_0x58ae78['push'](new _0x2f2a34(_0x481e76['getShiftedBy'](_0x2a4ecf['howMany']),0x1,_0x32eec2,_0xb171ec++));break;}case'wrap':{const _0x3dd390=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a4ecf['range']['start']),_0x1158f5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a4ecf['range']['end']),_0x137ee0=_0x2a4ecf['token']['element']['_clone'](!0x1);_0x137ee0['_removeAttribute'](lt);const _0x1d7dac=_0x2a4ecf['range']['end']['slice']();_0x1d7dac['push'](0x0);const _0x1669ec=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1d7dac);_0x58ae78['push'](new _0x3c8742(_0x1158f5,_0x137ee0,_0xb171ec++)),_0x58ae78['push'](new _0x2f2a34(_0x3dd390,_0x1158f5['offset']-_0x3dd390['offset'],_0x1669ec,_0xb171ec++));break;}}return _0x58ae78;}['_tokenizeModel'](_0x4cba07){const _0x59cb52=[],_0x3c4262=_0x89429c['_createIn'](_0x4cba07),_0x6362cf=new _0x5c5e82({'boundaries':_0x3c4262});let _0x59011b='',_0x442171=null;const _0x54bc05=[''],_0x2c223f=new Map();for(const _0x2c21cc of _0x6362cf)if('elementStart'==_0x2c21cc['type']||'elementEnd'==_0x2c21cc['type']){let _0x21e4d7=_0x54bc05[0x0];''!==_0x59011b&&(_0x59cb52['push'](...this['_makeTokensFromTextByWords'](_0x59011b,_0x442171,_0x21e4d7)),_0x59011b='');const _0x3f69a9=_0x2c21cc['item'];let _0x3c7d7a;_0x3f69a9['getAttribute'](lt)?_0x3c7d7a=_0x3f69a9['getAttribute'](lt):'elementStart'==_0x2c21cc['type']?(_0x3c7d7a=dt(_0x3f69a9),_0x2c223f['set'](_0x3f69a9,_0x3c7d7a)):_0x3c7d7a=_0x2c223f['get'](_0x3f69a9);const _0x2e6e17=this['_getElementCategory'](_0x3f69a9);'solid'==_0x2e6e17&&('elementStart'==_0x2c21cc['type']?(_0x21e4d7=_0x3c7d7a,_0x54bc05['unshift'](_0x21e4d7)):_0x54bc05['shift']());const _0x13b955={'type':'element','element':_0x3f69a9,'elementId':_0x3c7d7a,'category':_0x2e6e17,'isStart':'elementStart'==_0x2c21cc['type'],'limitId':_0x21e4d7};_0x59cb52['push'](_0x13b955);}else''==_0x59011b&&(_0x442171=_0x2c21cc['previousPosition']['clone']()),_0x59011b+=_0x2c21cc['item']['data'];return''!==_0x59011b&&_0x59cb52['push'](...this['_makeTokensFromTextByWords'](_0x59011b,_0x442171,_0x54bc05[0x0])),_0x59cb52;}['_makeTokensFromTextByWords'](_0x3dc28d,_0x1ee696,_0x50fc5f){const _0x57988e=_0x3dc28d['matchAll'](/(\s)/g),_0x1aa18f=Array['from'](_0x57988e)['map'](_0x56cab3=>_0x56cab3['index']);_0x1aa18f['push'](_0x3dc28d['length']),0x0==_0x1aa18f[0x0]&&_0x1aa18f['shift']();const _0x5757b4=[],_0x27f6d6=_0x1ee696['parent'];let _0x3c6a74=0x0,_0x1a857f=_0x1ee696['offset'];for(let _0x241c43=0x0;_0x241c43<_0x1aa18f['length'];_0x241c43++)_0x5757b4['push']({'type':'text','data':_0x3dc28d['slice'](_0x3c6a74,_0x1aa18f[_0x241c43]),'parent':_0x27f6d6,'offset':_0x1a857f,'limitId':_0x50fc5f}),_0x3c6a74=_0x1aa18f[_0x241c43],_0x1a857f=_0x1ee696['offset']+_0x1aa18f[_0x241c43];return _0x5757b4;}['_getElementCategory'](_0x3bfb3e){const _0x282e92=this['_editor']['model']['schema'];return _0x282e92['isLimit'](_0x3bfb3e)||_0x282e92['isContent'](_0x3bfb3e)||_0x282e92['isInline'](_0x3bfb3e)?'solid':_0x282e92['isBlock'](_0x3bfb3e)?'block':function(_0x2a4407,_0x48e2ac){const _0x3fcfae=_0x2a4407['parent'];if(!_0x3fcfae||_0x3fcfae['is']('documentFragment'))return!0x1;if(_0x48e2ac['checkChild'](_0x3fcfae,'$text'))return!0x1;for(const _0xcc101a of _0x2a4407['getChildren']())if(_0xcc101a['is']('$text'))return!0x0;return!0x1;}(_0x3bfb3e,_0x282e92)?'solid':'container';}['_diffModelTokens'](_0x34728e,_0x3d50a0){const _0x1366f8=_0x4b122f(_0x34728e,_0x3d50a0,{'comparator':ht});this['_handleUnclosedBlockOpeningTags'](_0x1366f8);const _0x271358=_0x1366f8['flatMap'](_0x537075=>{const _0x297185=_0x537075['added']?'added':_0x537075['removed']?'removed':'unchanged';return _0x537075['value']['map'](_0xe72f17=>({'token':_0xe72f17,'change':_0x297185}));});let _0x4b2a1f=0x0;for(const _0x4ea573 of _0x271358)'added'!=_0x4ea573['change']&&('unchanged'==_0x4ea573['change']&&(_0x4ea573['before']=_0x34728e[_0x4b2a1f]),_0x4b2a1f++);return _0x271358;}['_handleUnclosedBlockOpeningTags'](_0x1b0bc7){for(let _0x1e9f3d=0x0;_0x1e9f3d<_0x1b0bc7['length']-0x1;_0x1e9f3d++)if(_0x1b0bc7[_0x1e9f3d]['removed']&&_0x1b0bc7[_0x1e9f3d+0x1]['added']){const _0x18d8e2=this['_findUnclosedBlockOpeningToken'](_0x1b0bc7[_0x1e9f3d]['value']);if(null!==_0x18d8e2){const _0xa9bdb3=this['_findUnclosedBlockOpeningToken'](_0x1b0bc7[_0x1e9f3d+0x1]['value']),_0x2ee98d=_0x1b0bc7[_0x1e9f3d]['value']['splice'](_0x18d8e2),_0x311970=_0x1b0bc7[_0x1e9f3d+0x1]['value']['splice'](_0xa9bdb3),_0xb6aadf=[_0x311970['shift']()];_0x2ee98d['shift']();const _0x4a3f9b={'value':_0x2ee98d,'removed':!0x0},_0x128695={'value':_0x311970,'added':!0x0},_0x5a819c={'value':_0xb6aadf};_0x1b0bc7['splice'](_0x1e9f3d+0x2,0x0,_0x5a819c,_0x4a3f9b,_0x128695);}}}['_findUnclosedBlockOpeningToken'](_0x2882c4){let _0x59c846=0x0,_0xe5b297=-0x1;for(let _0xd63278=0x0;_0xd63278<_0x2882c4['length'];_0xd63278++){const _0x52c70e=_0x2882c4[_0xd63278];'element'==_0x52c70e['type']&&'block'==_0x52c70e['category']&&(_0x59c846+=_0x52c70e['isStart']?0x1:-0x1,_0x52c70e['isStart']&&(_0xe5b297=_0xd63278));}return 0x0===_0x59c846?null:_0xe5b297;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x164b20=0x0;_0x164b20<this['_diffItems']['length'];_0x164b20++){const _0x39ab38=this['_diffItems'][_0x164b20]['change'],_0x4bba27=[];_0x4bba27['push'](this['_diffItems'][_0x164b20]);let _0x3b9d65=_0x164b20+0x1;for(;this['_diffItems'][_0x3b9d65]&&this['_diffItems'][_0x3b9d65]['change']==_0x39ab38;)_0x4bba27['push'](this['_diffItems'][_0x3b9d65]),_0x3b9d65++,_0x164b20++;const _0x5cbb7a=_0x4bba27['map'](_0x57e527=>_0x57e527['token']);if('unchanged'==_0x39ab38)_0x4bba27['map'](_0x7e03a1=>_0x7e03a1['before'])['forEach'](_0x27114f=>this['_traverseOverItem'](_0x27114f));else{if('removed'==_0x39ab38){if(this['_markDeletions']){const _0x34218c=this['_path']['slice']();_0x5cbb7a['forEach'](_0x41bc7c=>this['_traverseOverItem'](_0x41bc7c));const _0x473811=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x34218c,'end':_0x473811}});}else this['_handleChanged'](_0x5cbb7a,!0x0,this['_path']['slice']());}else{const _0x51af59=_0x5cbb7a['filter'](_0xd9ed0b=>'element'!=_0xd9ed0b['type']||'container'!=_0xd9ed0b['category']);this['_handleChanged'](_0x51af59,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x13c749=0x0;_0x13c749<this['_diffItems']['length'];_0x13c749++){const _0x4131b1=this['_diffItems'][_0x13c749]['change'],_0x403e99=[];_0x403e99['push'](this['_diffItems'][_0x13c749]);let _0x415aed=_0x13c749+0x1;for(;this['_diffItems'][_0x415aed]&&this['_diffItems'][_0x415aed]['change']==_0x4131b1;)_0x403e99['push'](this['_diffItems'][_0x415aed]),_0x415aed++,_0x13c749++;const _0x18645d=_0x403e99['map'](_0x1d6c08=>_0x1d6c08['token']);if('unchanged'==_0x4131b1){const _0x42b8ee=_0x403e99['map'](_0x54f0c8=>_0x54f0c8['before']);this['_handleUnchanged'](_0x42b8ee,_0x18645d);}else('added'==_0x4131b1||this['_markDeletions'])&&_0x18645d['forEach'](_0x3a2b3d=>{'element'==_0x3a2b3d['type']&&_0x3a2b3d['isStart']&&this['_splitPostponedData']['has'](_0x3a2b3d['element'])&&this['_handleSplitPostponedData'](_0x3a2b3d['element'],this['_path']),this['_traverseOverItem'](_0x3a2b3d);});}}['_handleSplitPostponedData'](_0x1a9834,_0x4b195c){const _0x40db9d=this['_splitPostponedData']['get'](_0x1a9834);for(const _0x1e3628 of _0x40db9d)'rename'==_0x1e3628['type']?this['_operationsData']['push']({'type':'rename','path':_0x4b195c['slice'](),'oldName':_0x1e3628['oldValue'],'newName':_0x1a9834['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x4b195c['slice'](),'howMany':0x1,'key':_0x1e3628['key'],'oldValue':_0x1e3628['oldValue'],'newValue':JSON['stringify'](_0x1a9834['getAttribute'](_0x1e3628['key'])??null)});}['_calculateMarkersOperationsData'](_0x2d33d3,_0x3d40db){const _0xaefc40={};for(const [_0x1238bf]of _0x2d33d3)_0xaefc40[_0x1238bf]=null;for(const [_0x56826c,_0x4e4480]of _0x3d40db)_0xaefc40[_0x56826c]=_0x4e4480;const _0x179ca4=Object['entries'](_0xaefc40)['map'](([_0x4b3b79,_0x430a6f])=>({'type':'marker','name':_0x4b3b79,'range':_0x430a6f?{'start':_0x430a6f['start']['path']['slice'](),'end':_0x430a6f['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x179ca4);}['_handleUnwraps'](){const _0x23c8b5=new Map(),_0x58744a=[],_0x24208b=[0x0];let _0x4c06be=this['_diffItems']['length']+0x1;for(let _0x1e5847=this['_diffItems']['length']-0x1;_0x1e5847>=0x0;_0x1e5847--){const {token:_0x4a4677,before:_0x1825cc,change:_0x71ff33}=this['_diffItems'][_0x1e5847];if('removed'!=_0x71ff33&&(_0x4c06be=_0x1e5847),'element'!=_0x4a4677['type']||'container'!=_0x4a4677['category']||'added'==_0x71ff33)continue;const _0x195229=_0x1825cc?_0x1825cc['element']:_0x4a4677['element'];if(_0x4a4677['isStart']){const _0x1d7245=_0x23c8b5['get'](_0x195229),_0x52b267=this['_diffItems'][_0x1d7245];('removed'==_0x71ff33||'removed'==_0x52b267['change'])&&_0x4c06be<_0x1d7245&&(this['_operationsData']['push']({'type':'unwrap','path':_0x195229['getPath'](),'howMany':_0x195229['maxOffset']+_0x24208b[0x0]}),_0x24208b['shift'](),_0x24208b[0x0]+=_0x195229['maxOffset']-0x1,_0x58744a['push'](_0x1e5847),_0x58744a['push'](_0x1d7245));}else _0x23c8b5['set'](_0x195229,_0x1e5847),_0x24208b['unshift'](0x0);}_0x58744a['sort']((_0x583e33,_0x20365f)=>_0x20365f-_0x583e33),_0x58744a['forEach'](_0x1b7bbd=>{const _0x224e77=this['_diffItems'][_0x1b7bbd];'removed'==_0x224e77['change']?this['_diffItems']['splice'](_0x1b7bbd,0x1):(_0x224e77['change']='added',delete _0x224e77['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x14c7d9=[];for(let _0x4443ba=0x0;_0x4443ba<this['_diffItems']['length'];_0x4443ba++){const {change:_0x128337,token:_0x4eb34d}=this['_diffItems'][_0x4443ba];if('added'==_0x128337&&'element'==_0x4eb34d['type']&&'container'==_0x4eb34d['category']){if(_0x4eb34d['isStart'])_0x14c7d9['push'](this['_path']['slice']());else{if(!_0x4eb34d['isStart']){const _0x570547=_0x14c7d9['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x570547,'end':this['_path']['slice']()},'token':_0x4eb34d}),this['_path'][this['_path']['length']-0x1]=_0x570547[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x128337||this['_markDeletions'])&&this['_traverseOverItem'](_0x4eb34d);}}['_handleUnchanged'](_0x380827,_0x3241be){for(let _0x4a6174=0x0;_0x4a6174<_0x380827['length'];_0x4a6174++){const _0x21fe7f=_0x380827[_0x4a6174];if('element'==_0x21fe7f['type']&&_0x21fe7f['isStart']){const _0x2b2cdf=_0x3241be[_0x4a6174];'block'==_0x21fe7f['category']&&this['_handleElementRename'](_0x21fe7f['element'],_0x2b2cdf['element'],this['_path']),this['_handleElementAttributeChanges'](_0x21fe7f['element'],_0x2b2cdf['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x2b2cdf);}else{if('element'!=_0x21fe7f['type']||_0x21fe7f['isStart']){if('text'==_0x21fe7f['type']){const _0x3d192e=this['_path']['slice'](),_0x26ff3b=[],_0x25bfcf=[];for(;_0x380827[_0x4a6174]&&'text'==_0x380827[_0x4a6174]['type'];)_0x26ff3b['push'](_0x380827[_0x4a6174]),_0x25bfcf['push'](_0x3241be[_0x4a6174]),this['_path'][this['_path']['length']-0x1]+=_0x380827[_0x4a6174]['data']['length'],_0x4a6174++;_0x4a6174--,this['_handleTextAttributeChanges'](_0x26ff3b,_0x25bfcf,_0x3d192e);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x5b2178,_0x14c335,_0xdc54c1){const _0x15ade2=[],_0x5e67fc=[],_0x1f4b36=_0xdc54c1['slice']();let _0x1303a2=this['_parents']['length']-0x1;for(let _0x8e1642=0x0;_0x8e1642<_0x5b2178['length'];_0x8e1642++){const _0x5cecba=_0x5b2178[_0x8e1642],_0xf90247=_0xdc54c1['slice']();'element'!=_0x5cecba['type']||_0x5cecba['isStart']?'element'==_0x5cecba['type']&&_0x5cecba['isStart']?(_0xdc54c1['push'](0x0),_0x1303a2++,_0x5e67fc['push']({'before':_0xf90247,'after':_0xdc54c1['slice'](),'index':_0x8e1642})):_0xdc54c1[_0xdc54c1['length']-0x1]+=_0x5cecba['data']['length']:(_0xdc54c1['pop'](),_0xdc54c1[_0xdc54c1['length']-0x1]++,_0x1303a2--,_0x5e67fc['length']?_0x5e67fc['pop']():_0x15ade2['push']({'before':_0xf90247,'after':_0xdc54c1['slice'](),'index':_0x8e1642}));}if(_0x5e67fc['length']!==_0x15ade2['length'])throw new _0x47642c('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x5b2178,'isRemove':_0x14c335});const _0x4f7272=[{'after':_0x1f4b36['slice'](),'index':-0x1},..._0x15ade2,..._0x5e67fc,{'before':_0xdc54c1['slice'](),'index':_0x5b2178['length']}];if(_0x14c335){for(let _0x390ad3=_0x4f7272['length']-0x1;_0x390ad3>=0x1;_0x390ad3--){const _0x147d9c=_0x4f7272[_0x390ad3-0x1]['after'],_0x44baaa=_0x4f7272[_0x390ad3]['before'],_0x3c5924=_0x44baaa[_0x44baaa['length']-0x1]-_0x147d9c[_0x147d9c['length']-0x1];_0x3c5924&&(this['_operationsData']['push']({'type':'remove','path':_0x147d9c,'howMany':_0x3c5924}),_0x44baaa[_0x44baaa['length']-0x1]-=_0x3c5924);}for(const {before:_0xd0a75d}of _0x15ade2)this['_operationsData']['push']({'type':'merge','path':_0xd0a75d});}else for(let _0x52377d=0x0;_0x52377d<_0x4f7272['length']-0x1;_0x52377d++){const _0x463396=_0x4f7272[_0x52377d]['after'],_0x1ddaeb=_0x4f7272[_0x52377d+0x1]['before'],_0x103d4f=_0x4f7272[_0x52377d]['index']+0x1,_0x3082d7=_0x4f7272[_0x52377d+0x1]['index'];if(_0x103d4f!==_0x3082d7&&this['_operationsData']['push']({'type':'insert','path':_0x463396,'tokens':_0x5b2178['slice'](_0x103d4f,_0x3082d7)}),_0x52377d<_0x15ade2['length']){this['_operationsData']['push']({'type':'split','path':_0x1ddaeb});const _0x34f3b2=_0x5b2178[_0x5e67fc[_0x5e67fc['length']-0x1-_0x52377d]['index']],_0x35981b=this['_parents'][_0x1303a2]['element'];_0x35981b['name']!=_0x34f3b2['element']['name']&&this['_addSplitPostponedData'](_0x34f3b2['element'],{'type':'rename','oldValue':_0x35981b['name']});const _0x20b976=this['_getAttributeChanges'](_0x35981b['getAttributes'](),_0x34f3b2['element']['getAttributes']());for(const _0x3100c6 in _0x20b976){const _0x37cd18=_0x20b976[_0x3100c6]['oldValue'];this['_addSplitPostponedData'](_0x34f3b2['element'],{'type':'attribute','key':_0x3100c6,'oldValue':_0x37cd18});}}}}['_addSplitPostponedData'](_0x1cda4a,_0x492851){const _0x264c06=this['_splitPostponedData']['get'](_0x1cda4a)||[];_0x264c06['push'](_0x492851),this['_splitPostponedData']['set'](_0x1cda4a,_0x264c06);}['_traverseOverItem'](_0x4ce75e){'element'==_0x4ce75e['type']&&_0x4ce75e['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x4ce75e)):'element'!=_0x4ce75e['type']||_0x4ce75e['isStart']?'text'==_0x4ce75e['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x4ce75e['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x482ac0,_0x55b420,_0x35db67){_0x482ac0['name']!=_0x55b420['name']&&this['_operationsData']['push']({'type':'rename','path':_0x35db67['slice'](),'oldName':_0x482ac0['name'],'newName':_0x55b420['name']});}['_handleElementAttributeChanges'](_0x51fd35,_0x11dfa9,_0x12c4ae){const _0x41b999=this['_getAttributeChanges'](_0x51fd35['getAttributes'](),_0x11dfa9['getAttributes']());for(const _0x3cec53 in _0x41b999){const {oldValue:_0x24d280,newValue:_0x22c5a5}=_0x41b999[_0x3cec53];this['_operationsData']['push']({'type':'attribute','path':_0x12c4ae['slice'](),'howMany':0x1,'key':_0x3cec53,'oldValue':_0x24d280,'newValue':_0x22c5a5});}}['_handleTextAttributeChanges'](_0x79cf09,_0x3b8463,_0x47a29a){const _0x46e2b8=this['_operationsData'],_0x388bc4=_0x79cf09[0x0]['parent'],_0x3e932a=_0x79cf09[0x0]['offset'],_0x2c5195=_0x3b8463[0x0]['parent'],_0x561eef=_0x3b8463[0x0]['offset'],_0x56aa67=_0x79cf09['reduce']((_0x3a32ba,_0x502516)=>_0x3a32ba+_0x502516['data']['length'],0x0),_0x2d2638=this['_getAttrsForOffsets'](_0x388bc4,_0x3e932a,_0x56aa67),_0x11bc37=this['_getAttrsForOffsets'](_0x2c5195,_0x561eef,_0x56aa67),_0x573488={};for(let _0x188d50=0x0;_0x188d50<_0x56aa67;_0x188d50++){const _0x67db31=_0x2d2638[_0x3e932a+_0x188d50],_0x2078b4=_0x11bc37[_0x561eef+_0x188d50],_0x39f721=this['_getAttributeChanges'](_0x67db31,_0x2078b4);for(const _0x15da93 in _0x573488)_0x39f721[_0x15da93]||_0x171101(_0x15da93);for(const _0x4795a0 in _0x39f721){const {oldValue:_0x5537b0,newValue:_0x3fa9bd}=_0x39f721[_0x4795a0],_0x1207cf=_0x573488[_0x4795a0];_0x1207cf?_0x1207cf['oldValue']==_0x5537b0&&_0x1207cf['newValue']==_0x3fa9bd?_0x1207cf['length']++:(_0x171101(_0x4795a0),_0x573488[_0x4795a0]={'oldValue':_0x5537b0,'newValue':_0x3fa9bd,'start':_0x188d50,'length':0x1}):_0x573488[_0x4795a0]={'oldValue':_0x5537b0,'newValue':_0x3fa9bd,'start':_0x188d50,'length':0x1};}}for(const _0x4971ad in _0x573488)_0x171101(_0x4971ad);function _0x171101(_0x6f0a33){const _0x18dc29=_0x573488[_0x6f0a33],_0x2778c6=_0x47a29a['slice']();_0x2778c6[_0x2778c6['length']-0x1]+=_0x18dc29['start'],_0x46e2b8['push']({'type':'attribute','path':_0x2778c6,'howMany':_0x18dc29['length'],'key':_0x6f0a33,'oldValue':_0x18dc29['oldValue'],'newValue':_0x18dc29['newValue']}),delete _0x573488[_0x6f0a33];}}['_getAttributeChanges'](_0x3f0b02,_0x16b9e9){const _0x30155c={};for(const [_0x24463c,_0x5884d4]of _0x3f0b02)_0x30155c[_0x24463c]={'oldValue':JSON['stringify'](_0x5884d4),'newValue':'null'};for(const [_0x394355,_0x3da8ab]of _0x16b9e9){const _0x38e919=JSON['stringify'](_0x3da8ab);_0x30155c[_0x394355]?_0x30155c[_0x394355]['oldValue']==_0x38e919?delete _0x30155c[_0x394355]:_0x30155c[_0x394355]['newValue']=_0x38e919:_0x30155c[_0x394355]={'oldValue':'null','newValue':_0x38e919};}return delete _0x30155c[lt],_0x30155c;}['_getAttrsForOffsets'](_0x1bf119,_0x3383e3,_0x1a0cd8){const _0x716552=new Array(_0x3383e3+_0x1a0cd8);let _0x575155=_0x1bf119['getChildAtOffset'](_0x3383e3),_0x1bfe00=_0x575155['startOffset'];for(;_0x575155&&_0x1bfe00<_0x3383e3+_0x1a0cd8;){const _0x18da6b=Array['from'](_0x575155['getAttributes']());_0x716552['fill'](_0x18da6b,_0x1bfe00,_0x1bfe00+_0x575155['offsetSize']),_0x1bfe00+=_0x575155['offsetSize'],_0x575155=_0x575155['nextSibling'];}return _0x716552;}['_getPositionFromAnchorAndPath'](_0x1e2f28,_0x13afc9){const _0x460677=[..._0x1e2f28['path']['slice'](0x0,-0x1),_0x1e2f28['offset']+_0x13afc9[0x0],..._0x13afc9['slice'](0x1)];return new _0xe5f221(_0x1e2f28['root'],_0x460677);}['_makeModelFromTokens'](_0x250681){const _0x1557a4=[];let _0x31fdbb=null;for(const _0x417add of _0x250681)if('element'!=_0x417add['type']||_0x417add['isStart']||_0x31fdbb!=_0x417add['element']){if(!_0x31fdbb){if('text'==_0x417add['type']){const _0x55d242=_0xe5f221['_createAt'](_0x417add['parent'],_0x417add['offset']),_0x475275=_0x89429c['_createFromPositionAndShift'](_0x55d242,_0x417add['data']['length']),_0x50116c=Array['from'](_0x475275['getItems']())['map'](_0x4809fe=>new _0x3813f2(_0x4809fe['data'],_0x4809fe['getAttributes']()));_0x1557a4['push'](..._0x50116c);}else{_0x31fdbb=_0x417add['element'];const _0x5f0e32=_0x417add['element']['_clone'](!0x0);_0x5f0e32['_removeAttribute'](lt);for(const _0xe16315 of this['_editor']['model']['createRangeIn'](_0x5f0e32)['getItems']())_0xe16315['is']('element')&&_0xe16315['_removeAttribute'](lt);_0x1557a4['push'](_0x5f0e32);}}}else _0x31fdbb=null;return _0x1557a4;}}function ht(_0x4da486,_0x9641b8){return _0x4da486['type']===_0x9641b8['type']&&(_0x4da486['limitId']===_0x9641b8['limitId']&&('text'==_0x4da486['type']?_0x4da486['data']==_0x9641b8['data']:function(_0x1c71e8,_0x7fd06d){if(_0x1c71e8['isStart']!=_0x7fd06d['isStart'])return!0x1;if(_0x1c71e8['isStart']&&_0x1c71e8['elementId']!=_0x7fd06d['elementId'])return!0x1;if(_0x1c71e8['category']!=_0x7fd06d['category'])return!0x1;if('block'==_0x1c71e8['category'])return!0x0;if('container'==_0x1c71e8['category']&&_0x1c71e8['elementId']!=_0x7fd06d['elementId'])return!0x1;return _0x1c71e8['element']['name']==_0x7fd06d['element']['name'];}(_0x4da486,_0x9641b8)));}function dt(_0x117531){return J({'name':_0x117531['name'],...Object['fromEntries'](_0x117531['getAttributes']())});}export{AriaDescriptionView,CollaborationUserColor,G 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,U as fixElementSuggestionRange,W as getAllMarkersDomElementsSorted,z as getDateTimeFormatter,R as getMarkerDomElement,J as hashObject,it as sanitizeEditorConfig,rt as setupThreadKeyboardNavigation,O as splitSuggestionMarkerName,nt as surroundingMarkersDetector,j as trimHtml};
23
+ import{ContextPlugin as _0x529028,Editor as _0x215d2b,Plugin as _0x11cb42}from'@ckeditor/ckeditor5-core';import{CKEditorError as _0x275ecb,Collection as _0x2fe32f,FocusTracker as _0x249f4b,KeystrokeHandler as _0x523998,first as _0x4397a6,toArray as _0x3251dd,uid as _0x400e20}from'@ckeditor/ckeditor5-utils';import{ButtonView as _0x19ba74,DropdownButtonView as _0x14cb36,FocusCycler as _0x555f79,IconView as _0x4a1a15,View as _0x20b5aa,isViewWithFocusCycler as _0x4620ed}from'@ckeditor/ckeditor5-ui';import{IconCancel as _0x16b4d6,IconCheck as _0x14b686,IconNotification as _0x2fcd06}from'@ckeditor/ckeditor5-icons';import{setHighlightHandling as _0x481acd,toWidget as _0x4d1edb}from'@ckeditor/ckeditor5-widget';import{DateTime as _0x2f7668}from'luxon';import{AttributeOperation as _0xc4dd68,InsertOperation as _0x78b42b,MarkerOperation as _0x5e0f36,MergeOperation as _0x470146,ModelPosition as _0x375446,ModelRange as _0x27f33c,ModelText as _0x47f7f3,ModelTreeWalker as _0x100733,MoveOperation as _0x1319d8,RenameOperation as _0x2de6f1,SplitOperation as _0x5e9c01}from'@ckeditor/ckeditor5-engine';import{diffArrays as _0xedbbfb}from'diff';var D=class extends _0x529028{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x303108,_0x332380){let _0x910a6;if(_0x332380||(_0x332380=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x332380?_0x910a6=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x910a6=this['context']['editors']['find'](_0x393aea=>_0x393aea['config']['get']('collaboration.channelId')==_0x332380)),!_0x910a6)throw new _0x275ecb('permissions-set-permissions-invalid-channel-id',null);const _0x42cf7b=_0x910a6['plugins'],_0x446af9=_0x42cf7b['has']('CommentsRepository')?_0x42cf7b['get']('CommentsRepository'):void 0x0,_0x51b1c2=_0x42cf7b['has']('CommentsOnly')&&_0x42cf7b['get']('CommentsOnly'),_0x443fae=_0x303108['includes']('document:write'),_0x490fd7=_0x303108['includes']('comment:modify_all'),_0x3a2f1c=_0x303108['includes']('comment:admin'),_0x6efbed=_0x303108['includes']('comment:write'),_0x4fbbca=_0x6efbed||_0x3a2f1c,_0x42f2de=_0x4fbbca||_0x490fd7,_0x35f00e=_0x443fae||_0x4fbbca;if(_0x51b1c2&&(_0x51b1c2['isEnabled']=!_0x443fae&&_0x42f2de),_0x910a6 instanceof _0x215d2b&&(_0x443fae||_0x42f2de&&_0x446af9?_0x910a6['disableReadOnlyMode']('no-permissions'):_0x910a6['enableReadOnlyMode']('no-permissions')),_0x446af9){_0x446af9['setPermissions']({'admin':_0x3a2f1c,'modifyAll':_0x490fd7,'write':_0x6efbed,'resolve':_0x35f00e},_0x332380);const _0x3b0110=_0x910a6 instanceof _0x215d2b&&_0x910a6['commands']['get']('addCommentThread');_0x3b0110&&(_0x4fbbca?_0x3b0110['clearForceDisabled']('noPermissions'):_0x3b0110['forceDisabled']('noPermissions'));}}};function $(_0x12e403,_0x106d53){const t=_0x12e403['t'];switch(_0x106d53){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'';}}var O=class extends _0x529028{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[D];}constructor(_0x2157d5){super(_0x2157d5),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x2fe32f(),this['_locale']=_0x2157d5['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:_0x1e7ab2,name:_0x497186,..._0x545f19}){if(!_0x1e7ab2||'string'!=typeof _0x1e7ab2)throw new _0x275ecb('users-add-invalid-id');if(this['users']['has'](_0x1e7ab2))throw new _0x275ecb('users-add-duplicated-id',null,{'id':_0x1e7ab2});const _0x240df5=this['context']['config']['get']('users.getInitialsCallback'),_0x34c2c7={..._0x545f19,'id':_0x1e7ab2,'name':R(this['_locale'],_0x497186),'color':this['_getNextColor']()};_0x34c2c7['name']=R(this['_locale'],_0x34c2c7['name']);const _0x12c854=new L(_0x34c2c7,_0x240df5);return this['users']['add'](_0x12c854),_0x12c854;}['getUser'](_0x1f1ceb){return this['users']['get'](_0x1f1ceb);}['useAnonymousUser'](){const _0x3a1ff7=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x3a1ff7);}['defineMe'](_0x841f90){if(this['_myId'])throw new _0x275ecb('users-me-already-defined',null);const _0x3c0d18=this['getUser'](_0x841f90);if(!_0x3c0d18)throw new _0x275ecb('users-me-missing-user',null);this['_myId']=_0x841f90,_0x3c0d18['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x32e0a1=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x32e0a1&&(this['_lastColor']=0x0),new F(this['_lastColor']++);}['_addAnonymousUser'](){const _0x2633c8=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x2633c8,'name':$(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}},L=class{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x13c1fc,_0x5df2dd){this['id']=_0x13c1fc['id'],this['color']=_0x13c1fc['color'],this['name']=_0x13c1fc['name'],this['initials']=_0x5df2dd?_0x5df2dd(this['name']):this['_computeInitials'](),this['avatar']=_0x13c1fc['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x12b563=this['name']['split']('\x20')['filter'](_0x562a47=>/^[\p{Letter}]/u['test'](_0x562a47));return 0x1===_0x12b563['length']?this['_getInitial'](_0x12b563[0x0]):0x0===_0x12b563['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x12b563[0x0])+this['_getInitial'](_0x12b563[_0x12b563['length']-0x1]);}['_getInitial'](_0x119051){return String['fromCodePoint'](_0x119051['codePointAt'](0x0))['toUpperCase']();}};function R(_0x14c755,_0x50a94c=''){return''==(_0x50a94c=_0x50a94c['trim']())?$(_0x14c755,'Anonymous'):_0x50a94c;}var F=class{['_id'];constructor(_0x5826ce){this['_id']=_0x5826ce;}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))';}},H=class extends _0x20b5aa{['name'];['notificationView'];constructor(_0x2a64a1,_0x11edf1,_0x345f84,_0x323a41){super(_0x2a64a1),this['name']=_0x11edf1['name'],this['notificationView']=null;const _0x6a9dc2=['ck','ck-user'],_0x41f6e4=['ck','ck-user__img'];_0x11edf1['isAnonymous']&&_0x41f6e4['push']('ck-user__anonymous'),!_0x11edf1['isAnonymous']&&_0x11edf1['isMe']&&_0x6a9dc2['push']('ck-user_me'),(_0x11edf1['avatar']||_0x323a41)&&_0x41f6e4['push']('ck-user__avatar');let _0x5f56dd=null;if(_0x323a41&&(_0x5f56dd=new _0x4a1a15(),_0x5f56dd['content']=_0x323a41,_0x5f56dd['extendTemplate']({'attributes':{'class':['ck-user__avatar-icon']}})),_0x345f84){const _0x4d7917=new _0x4a1a15();_0x4d7917['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x4d7917['content']=_0x2fcd06,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x345f84},'children':[_0x4d7917]};}const _0x52aac0=[{'tag':'div','attributes':{'class':_0x41f6e4,'style':{'background-image':_0x11edf1['avatar']&&!_0x323a41?'url(\x27'+_0x11edf1['avatar']+'\x27)':''}},'children':_0x5f56dd?[_0x5f56dd]:[]},{'tag':'div','attributes':{'class':_0x11edf1['avatar']||_0x323a41?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x11edf1['name']},'children':[{'text':_0x11edf1['initials']}]}];this['notificationView']&&_0x52aac0['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x6a9dc2,'data-user-id':_0x11edf1['id']},'children':_0x52aac0});}},U=class extends _0x20b5aa{['children'];['iconView'];['labelView'];constructor(_0x5179d9){super(_0x5179d9);const _0x7b9c93=this['bindTemplate'];this['set']('icon',void 0x0),this['set']('label',void 0x0),this['set']('tooltip',void 0x0),this['set']('tooltipPosition','n'),this['set']('tooltipClass',void 0x0),this['set']('iconPosition','left'),this['set']('class',void 0x0),this['children']=this['createCollection'](),this['iconView']=this['_createIconView'](),this['labelView']=this['_createLabelView'](),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill',_0x7b9c93['to']('class'),_0x7b9c93['to']('iconPosition',_0x30530b=>'right'===_0x30530b?'ck-pill_icon-right':'')],'data-cke-tooltip-text':_0x7b9c93['to']('tooltip'),'data-cke-tooltip-position':_0x7b9c93['to']('tooltipPosition'),'data-cke-tooltip-class':_0x7b9c93['to']('tooltipClass')},'children':this['children']});}['render'](){super['render'](),this['icon']&&this['children']['add'](this['iconView']),this['children']['add'](this['labelView']),this['on']('change:icon',(_0x16d351,_0x21aeb5,_0x835898,_0x1c7403)=>{_0x835898&&!_0x1c7403?this['children']['add'](this['iconView'],0x0):!_0x835898&&_0x1c7403&&this['children']['remove'](this['iconView']);});}['_createIconView'](){const _0x44f273=new _0x4a1a15();return _0x44f273['extendTemplate']({'attributes':{'class':'ck-pill__icon'}}),_0x44f273['bind']('content')['to'](this,'icon'),_0x44f273;}['_createLabelView'](){const _0x52fce9=new _0x20b5aa(this['locale']),_0x5e7095=this['bindTemplate'];return _0x52fce9['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill__label']},'children':[{'text':_0x5e7095['to']('label')}]}),_0x52fce9;}},z=class extends _0x20b5aa{['id'];constructor(_0x5e6543,_0x40f460){super(_0x5e6543),this['id']='ck-aria-description-'+_0x400e20(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x40f460}]});}},W=class extends _0x19ba74{['render'](){super['render'](),j(this);}},Y=class extends _0x14cb36{['render'](){super['render'](),j(this);}};function j(_0x1c0209){_0x1c0209['listenTo'](_0x1c0209['element'],'mousedown',(_0x2e8e69,_0x1c8796)=>{_0x1c8796['stopPropagation'](),_0x1c8796['preventDefault']();}),_0x1c0209['listenTo'](_0x1c0209['element'],'mouseup',()=>{_0x1c0209['element']['focus']();});}function J(_0x40bd98){const _0x10cc33=_0x40bd98['split'](':');return{'group':_0x10cc33[0x0],'type':_0x10cc33[0x1],'subType':_0x10cc33['length']>=0x5?_0x10cc33[0x2]:null,'id':_0x10cc33['length']<0x5?_0x10cc33[0x2]:_0x10cc33[0x3],'authorId':_0x10cc33['length']<0x5?_0x10cc33[0x3]:_0x10cc33[0x4],'markerCount':0x6==_0x10cc33['length']?_0x10cc33[0x5]:null};}function G(_0x11c4fc,_0x2e3aa5){const _0x12df26=_0x11c4fc['end']['nodeBefore'];if(_0x12df26&&_0x12df26['is']('element')&&_0x2e3aa5['schema']['isBlock'](_0x12df26)&&!_0x2e3aa5['schema']['isObject'](_0x12df26)){const _0x42c18d=_0x2e3aa5['createPositionAt'](_0x12df26,'end');return _0x2e3aa5['createRange'](_0x11c4fc['start'],_0x42c18d);}return _0x11c4fc;}var K=class extends _0x11cb42{['afterInit'](){const _0x4eb5cb=this['editor'];_0x4eb5cb['plugins']['has']('AlignmentEditing')&&_0x4eb5cb['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}};const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Z=class extends _0x11cb42{['afterInit'](){const _0x1514a0=this['editor'],_0x20bee8=_0x1514a0['plugins']['get']('SuggestionsConversion');for(const _0x503e2e of q){if(!_0x1514a0['plugins']['has'](_0x503e2e))continue;const _0x1cb2ae=_0x503e2e['slice'](0x0,-0x7)['toLowerCase']();_0x20bee8['registerInlineAttribute'](_0x1cb2ae);}}},Q=class extends _0x11cb42{['afterInit'](){const _0x5dcf67=this['editor'],_0x5033b9=_0x5dcf67['plugins']['get']('SuggestionsConversion');_0x5dcf67['plugins']['has']('BookmarkEditing')&&_0x5033b9['registerBlockAttribute']('bookmarkId');}};const X=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var tt=class extends _0x11cb42{['afterInit'](){const _0x18a80e=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x240fe3,commandName:_0x262a26}of X)this['editor']['plugins']['has'](_0x240fe3)&&_0x18a80e['registerInlineAttribute'](_0x262a26);}},et=class extends _0x11cb42{['afterInit'](){const {editor:_0x26ab64}=this;if(!_0x26ab64['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x319b49=_0x26ab64['plugins']['get']('SuggestionsConversion');_0x319b49['registerBlockAttribute']('footnotesListStyle'),_0x319b49['registerBlockAttribute']('footnotesListStart');}},st=class extends _0x11cb42{['afterInit'](){const _0x5f7ec1=this['editor'];if(!_0x5f7ec1['plugins']['has']('GeneralHtmlSupport')||!_0x5f7ec1['plugins']['has']('DataSchema'))return;const _0x105b57=_0x5f7ec1['plugins']['get']('SuggestionsConversion'),_0x4b2250=_0x5f7ec1['plugins']['get']('GeneralHtmlSupport'),_0x597080=_0x5f7ec1['plugins']['get']('DataSchema');for(const _0x565bc2 of _0x597080['getDefinitionsForView'](/.*/,!0x1)){const _0x462da2=_0x4b2250['getGhsAttributeNameForElement'](_0x565bc2['view']);!_0x565bc2['isInline']||_0x565bc2['isObject']||'appliesToBlock'in _0x565bc2&&_0x565bc2['appliesToBlock']?_0x105b57['registerBlockAttribute'](_0x462da2):_0x105b57['registerInlineAttribute'](_0x462da2);}}},it=class extends _0x11cb42{['afterInit'](){const _0x44f873=this['editor'];_0x44f873['plugins']['has']('HighlightEditing')&&_0x44f873['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}},nt=class extends _0x11cb42{['afterInit'](){const _0x12c430=this['editor'];_0x12c430['plugins']['has']('HtmlEmbed')&&_0x12c430['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}},ot=class extends _0x11cb42{['afterInit'](){const _0x73c0f4=this['editor'];if(!_0x73c0f4['plugins']['has']('ImageEditing'))return;const _0x275a51=_0x73c0f4['plugins']['get']('SuggestionsConversion');_0x275a51['registerBlockAttribute']('src'),_0x73c0f4['plugins']['has']('ImageResize')&&_0x275a51['registerBlockAttribute']('resizedWidth'),_0x73c0f4['plugins']['has']('ImageTextAlternativeEditing')&&_0x275a51['registerBlockAttribute']('alt'),_0x73c0f4['plugins']['has']('PictureEditing')&&_0x275a51['registerBlockAttribute']('sources'),_0x73c0f4['plugins']['has']('ImageSizeAttributes')&&(_0x275a51['registerBlockAttribute']('width'),_0x275a51['registerBlockAttribute']('height'));}},rt=class extends _0x11cb42{['afterInit'](){const _0x4993f9=this['editor'],_0x5bda3b=_0x4993f9['plugins']['get']('SuggestionsConversion');_0x4993f9['plugins']['has']('IndentBlock')&&(_0x5bda3b['registerBlockAttribute']('blockIndent'),_0x4993f9['plugins']['has']('ListEditing')&&(_0x5bda3b['registerBlockAttribute']('blockIndentList'),_0x5bda3b['registerBlockAttribute']('blockIndentListItem')));}},at=class extends _0x11cb42{['afterInit'](){const _0x3b22f5=this['editor'];_0x3b22f5['plugins']['has']('LineHeight')&&_0x3b22f5['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}},ct=class extends _0x11cb42{['afterInit'](){const _0x45aadd=this['editor'];if(!_0x45aadd['plugins']['has']('LinkEditing'))return;const _0x3e63de=_0x45aadd['plugins']['get']('SuggestionsConversion'),_0x102016=_0x45aadd['commands']['get']('link');_0x3e63de['registerInlineAttribute']('linkHref');for(const _0x10dab1 of _0x102016['manualDecorators'])_0x3e63de['registerInlineAttribute'](_0x10dab1['id']);}},lt=class extends _0x11cb42{['afterInit'](){const _0x4eff9f=this['editor'];if(!_0x4eff9f['plugins']['has']('ListEditing'))return;const _0x383d6a=_0x4eff9f['plugins']['get']('SuggestionsConversion'),_0x4387bb=_0x4eff9f['plugins']['has']('TodoListEditing');_0x383d6a['registerBlockAttribute']('listItemId'),_0x383d6a['registerBlockAttribute']('listType'),_0x383d6a['registerBlockAttribute']('listIndent'),_0x4387bb&&_0x383d6a['registerBlockAttribute']('todoListChecked');}},ht=class extends _0x11cb42{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5508cc=this['editor']['config']['get']('list.properties'),_0x5d51ca=this['editor']['plugins']['get']('SuggestionsConversion');_0x5508cc['styles']&&_0x5d51ca['registerBlockAttribute']('listStyle'),_0x5508cc['reversed']&&_0x5d51ca['registerBlockAttribute']('listReversed'),_0x5508cc['startIndex']&&_0x5d51ca['registerBlockAttribute']('listStart');}},ut=class extends _0x11cb42{['afterInit'](){const _0x333ad3=this['editor'],_0x476b70=_0x333ad3['plugins']['get']('SuggestionsConversion');_0x333ad3['plugins']['has']('MultiLevelList')&&_0x476b70['registerBlockAttribute']('listMarkerStyle');}},dt=class extends _0x11cb42{['afterInit'](){const _0xe85a01=this['editor'];if(!_0xe85a01['plugins']['has']('TableEditing'))return;const _0x48afdb=_0xe85a01['plugins']['get']('SuggestionsConversion');_0x48afdb['registerBlockAttribute']('headingRows'),_0x48afdb['registerBlockAttribute']('headingColumns');}},gt=class extends _0x11cb42{['afterInit'](){const {plugins:_0x4764ff}=this['editor'];if(!_0x4764ff['has']('TablePropertiesEditing'))return;const _0x21ff43=_0x4764ff['get']('SuggestionsConversion');for(const _0x59a0dd of['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'])_0x21ff43['registerBlockAttribute'](_0x59a0dd);}},ft=class extends _0x11cb42{['afterInit'](){const _0x224de3=this['editor'],_0x1ff62d=_0x224de3['plugins']['get']('SuggestionsConversion');_0x224de3['plugins']['has']('TableLayout')&&_0x1ff62d['registerBlockAttribute']('tableType');}},mt=class extends _0x11cb42{['afterInit'](){const _0xf0f782=this['editor'],_0xb1a413=this['editor']['plugins']['get']('SuggestionsConversion');_0xf0f782['plugins']['has']('Uploadcare')&&_0xf0f782['plugins']['has']('UploadcareImageEdit')&&_0xb1a413['registerBlockAttribute']('uploadcareImageId');}},pt=class extends _0x11cb42{['afterInit'](){const _0x438c39=this['editor'];if(!_0x438c39['plugins']['has']('ShiftEnter'))return;const _0x2cd0fc=_0x438c39['plugins']['get']('SuggestionsConversion'),_0x573aeb=(_0xd38e3c,_0x39f052,_0x24d534,_0x11cb1d)=>{if(_0x11cb1d&&!_0x24d534['options']['showSuggestionHighlights'])return;if(!_0x24d534['consumable']['test'](_0x39f052['markerRange'],_0xd38e3c['name']))return;const _0x5a4b90=_0x438c39['model'];for(const _0x418c09 of _0x39f052['markerRange']['getItems']()){if(!_0x418c09['is']('element','softBreak'))continue;const _0x1393dc='deletion'==_0x39f052['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xda2ac2,authorId:_0x51a0a2}=J(_0x39f052['markerName']),_0x1cb61a=_0x24d534['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1393dc,'data-suggestion':_0xda2ac2,'data-author-id':_0x51a0a2}),_0x11e73e=_0x24d534['mapper']['toViewPosition'](_0x5a4b90['createPositionBefore'](_0x418c09));!_0x11cb1d&&_0x2cd0fc['_activeMarkers']['includes'](_0x39f052['markerName'])&&_0x24d534['writer']['addClass']('ck-suggestion-marker--active',_0x1cb61a),_0x24d534['writer']['insert'](_0x11e73e,_0x1cb61a),_0x24d534['mapper']['bindElementToMarker'](_0x1cb61a,_0x39f052['markerName']);}};_0x438c39['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x81925e,_0x2d3828,_0x22337e)=>{_0x573aeb(_0x81925e,_0x2d3828,_0x22337e,!0x1);},{'priority':'high'}),_0x438c39['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e8379,_0x1bdfe1,_0x538a07)=>{_0x573aeb(_0x4e8379,_0x1bdfe1,_0x538a07,!0x1);},{'priority':'high'}),_0x438c39['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x45168c,_0x386f36,_0x4f5694)=>{_0x573aeb(_0x45168c,_0x386f36,_0x4f5694,!0x0);},{'priority':'high'}),_0x438c39['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3eb81e,_0x1e4f6d,_0x12bc6b)=>{_0x573aeb(_0x3eb81e,_0x1e4f6d,_0x12bc6b,!0x0);},{'priority':'high'});}},kt=class extends _0x11cb42{['afterInit'](){const _0x30712c=this['editor'];if(!_0x30712c['plugins']['has']('MediaEmbedEditing'))return;const _0x40ce17=_0x30712c['plugins']['get']('SuggestionsConversion');_0x30712c['plugins']['has']('MediaEmbedResizeEditing')&&_0x40ce17['registerBlockAttribute']('resizedWidth'),_0x30712c['plugins']['has']('MediaEmbedStyleEditing')&&_0x40ce17['registerBlockAttribute']('mediaStyle'),_0x30712c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4a1e8b,{writer:_0x2bccad,options:_0x202ad8})=>{if(_0x202ad8['showSuggestionHighlights'])return _0x2bccad['createEmptyElement']('div');},'converterPriority':'high'}),_0x30712c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3826bf,_0x23f84a,_0xc8a914)=>{_0xc8a914['options']['showSuggestionHighlights']&&_0x3826bf['stop']();},{'priority':'high'});}},yt=class extends _0x11cb42{['afterInit'](){const _0x1bebb5=this['editor'];if(!_0x1bebb5['plugins']['has']('Table'))return;_0x1bebb5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2db629,_0x951b8d,_0x2892aa)=>{((_0x173574,_0x4c46c1,_0x4de692)=>{if(!_0x4de692['options']['showSuggestionHighlights'])return;const _0x4796e3=_0x4c46c1['item'];if(!_0x4796e3||!_0x4796e3['is']('element','tableCell'))return;const _0xe7ac7a=_0x4de692['mapper']['toViewElement'](_0x4796e3);if(_0xe7ac7a){const {id:_0x244318,authorId:_0x3ff827}=J(_0x4c46c1['markerName']);_0x481acd(_0xe7ac7a,_0x4de692['writer'],(_0x298d97,_0x3ab0d0,_0x1ab8e1)=>{_0x1ab8e1['addClass'](_0x3251dd(_0x3ab0d0['classes']),_0x298d97),_0x1ab8e1['setAttribute']('data-suggestion',_0x244318,_0x298d97),_0x1ab8e1['setAttribute']('data-author-id',_0x3ff827,_0x298d97);});}})(0x0,_0x951b8d,_0x2892aa);},{'priority':'highest'});}},bt=class extends _0x11cb42{['afterInit'](){const _0x58c290=this['editor'];_0x58c290['plugins']['has']('HorizontalLineEditing')&&_0x58c290['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xcf2365,{writer:_0x64ed63,options:_0x589c00})=>{if(!_0x589c00['showSuggestionHighlights'])return null;const _0x100860=_0x64ed63['createContainerElement']('div'),_0x387714=_0x64ed63['createEmptyElement']('hr');return _0x64ed63['addClass']('ck-horizontal-line',_0x100860),_0x64ed63['insert'](_0x64ed63['createPositionAt'](_0x100860,0x0),_0x387714),_0x100860;},'converterPriority':'high'});}},wt=class extends _0x11cb42{['afterInit'](){const {plugins:_0x7b60b2,model:_0x587344}=this['editor'];if(!_0x7b60b2['has']('TableCellPropertiesEditing'))return;const _0x4153c4=_0x7b60b2['get']('SuggestionsConversion');for(const _0x1c48f3 of['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'])_0x4153c4['registerBlockAttribute'](_0x1c48f3);_0x587344['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4153c4['registerBlockAttribute']('tableCellType');}},vt=class extends _0x11cb42{['afterInit'](){const _0x53d881=this['editor'];_0x53d881['plugins']['has']('TableEditing')&&_0x53d881['config']['get']('table.enableFooters')&&_0x53d881['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}},Ct=class extends _0x11cb42{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[K,Z,Q,tt,et,st,it,bt,nt,ot,rt,at,ct,lt,ht,kt,ut,pt,yt,dt,vt,ft,wt,gt,mt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x560bc4=this['editor'],_0x1e6fb3=(_0xac3b8a,_0x44372c,_0x3f277a)=>{const {id:_0x418e0c,authorId:_0x2983a9,type:_0x29696e,subType:_0x44f8d9}=J(_0xac3b8a['markerName']),_0x1955c8=['ck-suggestion-marker',this['_getClassName'](_0x29696e,_0x44f8d9)];let _0x12702c=0xbb8;return _0x3f277a||this['_activeMarkers']['includes'](_0xac3b8a['markerName'])&&(_0x1955c8['push']('ck-suggestion-marker--active'),_0x12702c=0xbc2),'deletion'==_0x29696e&&(_0x12702c+=0x5),{'classes':_0x1955c8,'attributes':{'data-suggestion':_0x418e0c,'data-author-id':_0x2983a9},'priority':_0x12702c};};_0x560bc4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x49713f,_0xb80585)=>_0x1e6fb3(_0x49713f,0x0,!0x1)}),_0x560bc4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x309a57,_0x4aa46f)=>_0x1e6fb3(_0x309a57,0x0,!0x0)}),_0x560bc4['conversion']['for']('dataDowncast')['add'](_0x5d8795=>{_0x5d8795['on']('addMarker:suggestion',(_0x396508,_0x3ba701,_0x3c83e4)=>{if(!_0x3c83e4['options']['showSuggestionHighlights'])return;const _0xc8e8df=_0x3ba701['item'];if(!_0xc8e8df)return;const _0xd15688=_0x3c83e4['mapper']['toViewElement'](_0xc8e8df);_0x560bc4['model']['schema']['isObject'](_0xc8e8df)&&_0xd15688&&!_0xd15688['getCustomProperty']('widget')&&_0xd15688['is']('containerElement')&&_0x4d1edb(_0xd15688,_0x3c83e4['writer']);},{'priority':'high'});});const _0x4d2468=(_0x3d56d1,_0x539f9a,_0x19a706,_0x45f894,_0x38def4)=>{if(_0x45f894&&!_0x19a706['options']['showSuggestionHighlights'])return;if(!_0x539f9a['item'])return;const {id:_0x2b6afd,authorId:_0x11eb2b,subType:_0x13bfd3}=J(_0x539f9a['markerName']);if(_0x38def4){const _0xdf818d=_0x13bfd3['split']('|')[0x0];if(!this['isBlockAttribute'](_0xdf818d))return;}if(_0x539f9a['item']['is']('selection'))return void _0x19a706['consumable']['consume'](_0x539f9a['item'],_0x3d56d1['name']);const _0x15470a=_0x19a706['mapper']['toViewElement'](_0x539f9a['item']);if(_0x539f9a['item']['is']('element')&&_0x560bc4['model']['schema']['isBlock'](_0x539f9a['item'])&&!_0x15470a['getCustomProperty']('addHighlight')){_0x19a706['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x15470a),_0x19a706['writer']['setAttribute']('data-suggestion',_0x2b6afd,_0x15470a),_0x19a706['writer']['setAttribute']('data-author-id',_0x11eb2b,_0x15470a),_0x19a706['mapper']['bindElementToMarker'](_0x15470a,_0x539f9a['markerName']),_0x45f894||(this['_activeMarkers']['includes'](_0x539f9a['markerName'])?_0x19a706['writer']['addClass']('ck-suggestion-marker--active',_0x15470a):_0x19a706['writer']['removeClass']('ck-suggestion-marker--active',_0x15470a));for(const _0x14f9f7 of _0x560bc4['model']['createRangeIn'](_0x539f9a['item'])['getItems']())_0x19a706['consumable']['consume'](_0x14f9f7,_0x3d56d1['name']);_0x19a706['consumable']['consume'](_0x539f9a['item'],_0x3d56d1['name']);}},_0x56cd13=(_0x1ec5bf,_0x29e0d5,_0x2d1ce1,_0x4c756a)=>{const _0x3a6e2b=_0x2d1ce1['mapper']['markerNameToElements'](_0x29e0d5['markerName']);if(_0x3a6e2b){if(_0x4c756a){const {subType:_0x4cf9a7}=J(_0x29e0d5['markerName']),_0x556f21=_0x4cf9a7['split']('|')[0x0];if(!this['isBlockAttribute'](_0x556f21))return;}for(const _0x6ecb3c of _0x3a6e2b)_0x6ecb3c['getCustomProperty']('addHighlight')||(_0x2d1ce1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x6ecb3c),_0x2d1ce1['writer']['removeAttribute']('data-suggestion',_0x6ecb3c),_0x2d1ce1['writer']['removeAttribute']('data-author-id',_0x6ecb3c),_0x2d1ce1['mapper']['unbindElementFromMarkerName'](_0x6ecb3c,_0x29e0d5['markerName']));}};_0x560bc4['conversion']['for']('editingDowncast')['add'](_0x3f93c2=>{_0x3f93c2['on']('addMarker:suggestion:formatBlock',(_0x3d042a,_0x3c6f2d,_0x364b18)=>{_0x4d2468(_0x3d042a,_0x3c6f2d,_0x364b18,!0x1,!0x1);},{'priority':'high'});}),_0x560bc4['conversion']['for']('editingDowncast')['add'](_0xb25112=>{_0xb25112['on']('addMarker:suggestion:attribute',(_0x1e8181,_0x299127,_0x41b428)=>{_0x4d2468(_0x1e8181,_0x299127,_0x41b428,!0x1,!0x0);},{'priority':'high'});}),_0x560bc4['conversion']['for']('editingDowncast')['add'](_0x413ac2=>{_0x413ac2['on']('removeMarker:suggestion:formatBlock',(_0x32c8e1,_0x1b5ef4,_0x5e2c7e)=>{_0x56cd13(0x0,_0x1b5ef4,_0x5e2c7e,!0x1);},{'priority':'high'});}),_0x560bc4['conversion']['for']('editingDowncast')['add'](_0x2967f0=>{_0x2967f0['on']('removeMarker:suggestion:attribute',(_0x47fd8b,_0x4b5c0c,_0x2d6898)=>{_0x56cd13(0x0,_0x4b5c0c,_0x2d6898,!0x0);},{'priority':'high'});}),_0x560bc4['conversion']['for']('dataDowncast')['add'](_0x5669da=>{_0x5669da['on']('addMarker:suggestion:formatBlock',(_0x56e63a,_0x49599d,_0x43d9c4)=>{_0x4d2468(_0x56e63a,_0x49599d,_0x43d9c4,!0x0,!0x1);},{'priority':'highest'});}),_0x560bc4['conversion']['for']('dataDowncast')['add'](_0x168d20=>{_0x168d20['on']('addMarker:suggestion:attribute',(_0x3fe837,_0x59449f,_0x5e637d)=>{_0x4d2468(_0x3fe837,_0x59449f,_0x5e637d,!0x0,!0x0);},{'priority':'highest'});}),_0x560bc4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x53df09,_0x2c12e8)=>_0x2c12e8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x53df09['substr'](0xb)}});const _0x4a9f49=(_0x2f25cc,_0x29ef71,_0x63bd82,_0x2db96e,_0x309b98)=>{if(_0x2db96e&&!_0x63bd82['options']['showSuggestionHighlights'])return;if(!_0x63bd82['consumable']['test'](_0x29ef71['markerRange'],_0x2f25cc['name']))return;const _0x63481b=this['_activeMarkers'],_0x11fa48=_0x29ef71['markerRange']['getWalker'](),_0x3641a5=_0x29ef71['markerRange']['start'],_0x2a6fc5=_0x560bc4['model']['schema'];let _0x50a4ba=null,_0x459704=null,_0x3f9879=!0x1,_0x42fcb6=!0x1;for(const _0x3dc2fa of _0x11fa48){const _0xdfce72=_0x3dc2fa['item'];_0x3f9879=_0x3f9879||_0x2a6fc5['isContent'](_0xdfce72);const _0x2935bb=_0x63bd82['mapper']['toViewElement'](_0xdfce72);if(_0x2935bb&&_0x2935bb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3dc2fa['type']&&(_0x2a6fc5['isBlock'](_0xdfce72)&&!_0x2a6fc5['isLimit'](_0xdfce72)&&(_0xdfce72['nextSibling']||_0x3641a5['isAtEnd']?_0x50a4ba&&_0x50a4ba['parent']==_0xdfce72||(_0x50a4ba=_0xdfce72,_0x21f039(_0x3dc2fa['previousPosition']),_0x42fcb6=!0x0):_0x459704=_0x459704||_0x3dc2fa['previousPosition']));}function _0x21f039(_0x2032a5){const {id:_0x3e133b,authorId:_0x515da9}=J(_0x29ef71['markerName']),_0x4eee11=_0x63bd82['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x309b98,'data-suggestion':_0x3e133b,'data-author-id':_0x515da9}),_0x199b36=_0x63bd82['mapper']['toViewPosition'](_0x2032a5);!_0x2db96e&&_0x63481b['includes'](_0x29ef71['markerName'])&&_0x63bd82['writer']['addClass']('ck-suggestion-marker--active',_0x4eee11),_0x63bd82['writer']['insert'](_0x199b36,_0x4eee11),_0x63bd82['mapper']['bindElementToMarker'](_0x4eee11,_0x29ef71['markerName']);}_0x3f9879||_0x42fcb6||!_0x459704||_0x21f039(_0x459704);};_0x560bc4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4c183a,_0xb6a6c2,_0x219fba)=>{_0x4a9f49(_0x4c183a,_0xb6a6c2,_0x219fba,!0x1,'merge');},{'priority':'high'}),_0x560bc4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5ba2d7,_0x59ce80,_0xd6ae35)=>{_0x4a9f49(_0x5ba2d7,_0x59ce80,_0xd6ae35,!0x0,'merge');},{'priority':'high'}),_0x560bc4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xe8c96d,_0x4de5b7,_0x4656d1)=>{_0x4a9f49(_0xe8c96d,_0x4de5b7,_0x4656d1,!0x1,'split');},{'priority':'high'}),_0x560bc4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x58758e,_0x32269b,_0x4ff275)=>{_0x4a9f49(_0x58758e,_0x32269b,_0x4ff275,!0x0,'split');},{'priority':'high'}),_0x560bc4['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e7957,_0x8dee0c,_0x3dc893)=>{((_0x887775,_0x229b9b,_0x497df0)=>{const _0x116d71=_0x497df0['mapper']['markerNameToElements'](_0x229b9b['markerName']);if(_0x116d71){for(const _0x4d77b4 of _0x116d71)(_0x4d77b4['hasClass']('ck-suggestion-marker-split')||_0x4d77b4['hasClass']('ck-suggestion-marker-merge'))&&(_0x497df0['mapper']['unbindElementFromMarkerName'](_0x4d77b4,_0x229b9b['markerName']),_0x497df0['writer']['remove'](_0x4d77b4));}})(0x0,_0x8dee0c,_0x3dc893);},{'priority':'high'});const _0x2a0ef1=(_0x24c41e,_0x27ec95,_0x39765a,_0x25a128)=>{if(_0x25a128&&!_0x39765a['options']['showSuggestionHighlights'])return;const _0x29d9f7=_0x27ec95['markerRange']['start'],_0x4c6721=_0x27ec95['markerRange']['end'],_0x3e96eb=_0x560bc4['model']['schema'];if(!_0x29d9f7['isTouching'](_0x4c6721)||!_0x29d9f7['nodeAfter'])return;const _0x5c45cc=_0x29d9f7['nodeAfter'];if(_0x3e96eb['isBlock'](_0x5c45cc)&&!_0x3e96eb['isLimit'](_0x5c45cc)&&_0x3e96eb['checkChild'](_0x5c45cc,'$text')){if(!_0x39765a['consumable']['consume'](_0x27ec95['markerRange'],_0x24c41e['name']))return;const {id:_0x4f757e,authorId:_0x2b171e}=J(_0x27ec95['markerName']),_0x46991c=_0x39765a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4f757e,'data-author-id':_0x2b171e}),_0x206f1c=_0x39765a['mapper']['toViewPosition'](_0x4c6721);!_0x25a128&&this['_activeMarkers']['includes'](_0x27ec95['markerName'])&&_0x39765a['writer']['addClass']('ck-suggestion-marker--active',_0x46991c),_0x39765a['writer']['insert'](_0x206f1c,_0x46991c),_0x39765a['mapper']['bindElementToMarker'](_0x46991c,_0x27ec95['markerName']);}};_0x560bc4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x453065,_0x33e8f8,_0x1f5889)=>{_0x2a0ef1(_0x453065,_0x33e8f8,_0x1f5889,!0x1);},{'priority':'high'}),_0x560bc4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d5200,_0x4a4a15,_0x3ddde5)=>{_0x2a0ef1(_0x5d5200,_0x4a4a15,_0x3ddde5,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x437647,_0xd9ddf6,_0x4337c2)=>{this['_activeMarkers']=_0x4337c2['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x53927b){this['_blockAttributeKeys']['add'](_0x53927b);}['registerInlineAttribute'](_0x18f506){this['_inlineAttributeKeys']['add'](_0x18f506);}['isBlockAttribute'](_0x1b5d0e){return this['_blockAttributeKeys']['has'](_0x1b5d0e);}['isInlineAttribute'](_0x1e07dd){return this['_inlineAttributeKeys']['has'](_0x1e07dd);}['isRegisteredAttribute'](_0xe055b4){return this['isInlineAttribute'](_0xe055b4)||this['isBlockAttribute'](_0xe055b4);}['_getClassName'](_0x1c3239,_0x3625d9){if('attribute'!=_0x1c3239)return'ck-suggestion-marker-'+_0x1c3239;const _0x4ed0b9=_0x3625d9['split']('|')[0x0];return this['isBlockAttribute'](_0x4ed0b9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}};function _t(_0x505ac9={},_0x195875){if(void 0x0!==_0x505ac9['dateTimeFormat']&&'function'!=typeof _0x505ac9['dateTimeFormat'])throw new _0x275ecb('invalid-date-time-format');return _0x4482e9=>{const _0x5b2dd2='string'==typeof _0x4482e9?_0x2f7668['fromISO'](_0x4482e9):_0x2f7668['fromJSDate'](_0x4482e9),_0x176a1a=_0x2f7668['now'](),_0x22e0a2=Math['floor'](_0x176a1a['diff'](_0x5b2dd2,'days')['days']);return _0x505ac9['dateTimeFormat']?_0x505ac9['dateTimeFormat'](_0x5b2dd2['toJSDate'](),_0x195875&&_0x195875['t']?_0x195875['t']:void 0x0):0x0===_0x22e0a2?_0x195875?$(_0x195875,'Today')+'\x20'+_0x5b2dd2['toFormat']('hh:mma'):_0x5b2dd2['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x22e0a2?_0x195875?$(_0x195875,'Yesterday')+'\x20'+_0x5b2dd2['toFormat']('hh:mma'):_0x5b2dd2['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x22e0a2<0x7?_0x195875?$(_0x195875,'Last')+'\x20'+$(_0x195875,_0x5b2dd2['toFormat']('EEEE'))+'\x20'+_0x5b2dd2['toFormat']('hh:mma'):_0x5b2dd2['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x5b2dd2['toFormat']('LL-dd-yyyy\x20hh:mma');};}function It(_0x95e1c4,_0x11aba0){const _0x124b99=_0x95e1c4['mapper']['markerNameToElements'](_0x11aba0['name']);if(!_0x124b99)return null;const _0x2d2185=_0x4397a6(_0x124b99['values']());return _0x95e1c4['view']['domConverter']['mapViewToDom'](_0x2d2185)||null;}function xt(_0x405000,_0x4316aa){if(0x0===_0x4316aa['length'])return null;const _0x23c6d5=[],_0x5a02ba=_0x405000['view']['domConverter'];for(const _0x76b7a2 of _0x4316aa){const _0x278a8c=_0x405000['mapper']['markerNameToElements'](_0x76b7a2['name']);if(!_0x278a8c)continue;const _0x3990de=Array['from'](_0x278a8c)['map'](_0x2156c2=>_0x5a02ba['mapViewToDom'](_0x2156c2))['filter'](_0x2152be=>!!_0x2152be);_0x23c6d5['push'](..._0x3990de);}if(0x0===_0x23c6d5['length'])return null;const _0x4a0952=[];for(const _0x261026 of _0x23c6d5){const _0x4b0e58=_0x261026['getClientRects']()['item'](0x0);_0x4b0e58&&_0x4a0952['push']({'x':_0x4b0e58['x'],'y':_0x4b0e58['y'],'domElement':_0x261026});}return 0x0===_0x4a0952['length']?null:(_0x4a0952['sort']((_0x37488f,_0x119ca7)=>_0x37488f['y']-_0x119ca7['y']||_0x37488f['x']-_0x119ca7['x']),_0x4a0952['map'](_0x5e9024=>_0x5e9024['domElement']));}function St(_0x4403ad,{limit:_0x5fae15,suffix:_0x491e4c='...'}){const _0x42d2d7=[];let _0x43d3cf=0x0;const _0x5713cf=_0x4403ad['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x4fcdfd=0x0;_0x4fcdfd<_0x5713cf['length'];_0x4fcdfd++){let _0x4202b3=_0x5713cf[_0x4fcdfd];const _0x569585=Et(_0x4202b3);if(_0x4202b3['startsWith']('<')){if(_0x43d3cf>=_0x5fae15){const _0x1b73dc=_0x4202b3['match'](/[a-zA-Z]+/);if(!_0x1b73dc){_0x5713cf[_0x4fcdfd]='';continue;}const _0x4b1f3e=_0x1b73dc[0x0];_0x4202b3['startsWith']('</')?(_0x42d2d7['length']&&(_0x4202b3=''),_0x42d2d7['pop']()):(_0x42d2d7['push'](_0x4b1f3e),_0x4202b3='');}}else{if(_0x43d3cf>=_0x5fae15)_0x4202b3='';else{if(_0x43d3cf+_0x569585['length']>=_0x5fae15){let _0x1d4447=_0x5fae15-_0x43d3cf;if('\x20'===_0x569585[_0x1d4447-0x1])_0x1d4447--;else{const _0x5d9c4d=_0x569585['slice'](_0x1d4447)['indexOf']('\x20');-0x1!==_0x5d9c4d?_0x1d4447+=_0x5d9c4d:_0x1d4447=_0x4202b3['length'];}_0x4202b3=_0x569585['slice'](0x0,_0x1d4447)['join']('')+_0x491e4c,_0x43d3cf=_0x5fae15;}else _0x43d3cf+=_0x569585['length'];}}_0x5713cf[_0x4fcdfd]=_0x4202b3;}return _0x5713cf['join']('\x0a')['replace'](/\n/g,'');}function Et(_0x38301a){const _0x5d6311=[];for(let _0x227ac7=0x0;_0x227ac7<_0x38301a['length'];_0x227ac7++){const _0x1f75ed=_0x38301a['substring'](_0x227ac7)['match'](/^&[a-z0-9#]+;/);if(_0x1f75ed){const _0x52fb68=_0x1f75ed[0x0];_0x5d6311['push'](_0x52fb68),_0x227ac7+=_0x52fb68['length']-0x1;}else _0x5d6311['push'](_0x38301a[_0x227ac7]);}return _0x5d6311;}var Mt=class extends _0x20b5aa{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x547d0b){super(_0x547d0b);const _0xb91502=this['bindTemplate'];this['set']('message',$(_0x547d0b,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x547d0b,$(_0x547d0b,'Yes'),_0x14b686,'submit'),this['cancelView']=this['_createButtonView'](_0x547d0b,$(_0x547d0b,'No'),_0x16b4d6,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x249f4b(),this['keystrokes']=new _0x523998(),this['focusCycler']=new _0x555f79({'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':_0xb91502['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'](_0x2c1913,_0x1f0338,_0x23374d,_0x16a48b){const _0x24502d=new _0x19ba74(_0x2c1913);return _0x24502d['label']=_0x1f0338,_0x24502d['icon']=_0x23374d,_0x24502d['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x16a48b}}),_0x24502d['on']('execute',()=>this['fire'](_0x16a48b)),_0x24502d;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x4a45c7=>{this['keystrokes']['listenTo'](_0x4a45c7['element']),this['focusTracker']['add'](_0x4a45c7['element']);}),this['keystrokes']['set']('esc',(_0x3240e9,_0x4ac7da)=>{this['fire']('cancel'),_0x4ac7da();});}};function At(_0xf0047c){return class _0x2f43fc extends _0xf0047c{['showConfirm'](_0x14a6c6,_0x22e985){return this['confirmView']=new Mt(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x14a6c6,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x22e985['appendChild'](this['confirmView']['element']),_0x22e985['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x44e7bb,_0x313f89,_0x8f1604)=>{_0x8f1604||_0x22e985['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x11ab94=>this['confirmView']['on']('submit',_0x11ab94));}['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 Tt(_0x1e6ac3){let _0x209f65=0x0,_0x4d0da2=0x0;for(const _0x256032 of Nt(_0x1e6ac3))_0x209f65=(_0x209f65<<0x5)-_0x209f65+_0x256032,_0x209f65&=_0x209f65,[_0x209f65,_0x4d0da2]=[_0x4d0da2,_0x209f65];return Dt(_0x209f65)+Dt(_0x4d0da2);}function*Pt(_0x3573b2){null==_0x3573b2||null==_0x3573b2?yield 0x12b9b0a1:0x0===_0x3573b2||!0x1===_0x3573b2?yield 0x0:0x1===_0x3573b2||0x1==_0x3573b2?yield 0x1:Array['isArray'](_0x3573b2)?yield*function*(_0x4a08a7){for(const _0x4ecdf0 of _0x4a08a7)yield*Pt(_0x4ecdf0);}(_0x3573b2):'object'==typeof _0x3573b2?yield*Nt(_0x3573b2):'string'==typeof _0x3573b2?yield*Vt(_0x3573b2):'number'==typeof _0x3573b2&&(yield _0x3573b2);}function*Nt(_0x8be1d2){if(yield Bt('{'),_0x8be1d2){const _0x2b63ab=Object['keys'](_0x8be1d2)['sort']();for(const _0x555fd4 of _0x2b63ab){yield*Vt(_0x555fd4),yield Bt(':');const _0x5bf8c4=_0x8be1d2[_0x555fd4];yield*Pt(_0x5bf8c4);}}yield Bt('}');}function*Vt(_0x1fd160){yield Bt('\x22');for(const _0x2756fc of _0x1fd160)yield Bt(_0x2756fc);yield Bt('\x22');}function Bt(_0x467039){return _0x467039['charCodeAt'](0x0);}function Dt(_0x13bcc5){return(_0x13bcc5*=Math['sign'](_0x13bcc5))['toString'](0x24);}const $t=['root','roots','initialData','context','toolbar','rootsAttributes'],Ot=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function Lt(_0x36d840,_0xb41451,_0x503db6,_0x3fcea6=[]){const _0x34d046='string'==typeof _0x36d840?_0x503db6['get'](_0x36d840)['constructor']:_0x36d840['prototype']['constructor'];if(_0xb41451['has'](_0x34d046))return _0xb41451['get'](_0x34d046);_0xb41451['set'](_0x34d046,!0x0);const _0x101ad8=[...Ot,..._0x3fcea6]['map'](_0x2bef82=>{if(_0x503db6['has'](_0x2bef82))return _0x503db6['get'](_0x2bef82)['constructor'];})['filter'](_0x382d0c=>_0x382d0c);if(_0x34d046&&_0x101ad8['includes'](_0x34d046))return _0xb41451['set'](_0x34d046,!0x1),!0x1;if(!_0x34d046['requires'])return _0xb41451['set'](_0x34d046,!0x0),!0x0;const _0x5140aa=_0x34d046['requires']['every'](_0x21aa8b=>Lt(_0x21aa8b,_0xb41451,_0x503db6,_0x3fcea6));return _0xb41451['set'](_0x34d046,_0x5140aa),_0x5140aa;}function Rt(_0x5387be,_0x6c47c3){const _0xd27103={};for(const _0x2380cb of _0x5387be['config']['names']())$t['includes'](_0x2380cb)||(_0xd27103[_0x2380cb]=_0x5387be['config']['get'](_0x2380cb));const _0x5e2d78=_0xd27103['plugins']||[],_0x300814=_0x5387be['constructor']['builtinPlugins']||[],_0x286904=_0x5e2d78['length']?_0x5e2d78:_0x300814,_0x9880a0=_0xd27103['extraPlugins']||[];delete _0xd27103['extraPlugins'];const _0x4026b2=_0xd27103['removePlugins']||[];delete _0xd27103['removePlugins'];const _0x5cde0d=_0x5387be['_context']['config']['get']('plugins')||[],_0x22ffe4=_0x286904['concat'](_0x9880a0)['concat'](_0x5cde0d)['map'](_0x269db4=>'string'==typeof _0x269db4?_0x300814['find'](_0x525edb=>_0x525edb['pluginName']==_0x269db4):_0x269db4)['filter'](_0x517da7=>!_0x4026b2['includes'](_0x517da7)&&!_0x4026b2['includes'](_0x517da7['pluginName'])),_0x32081c=Array['from'](new Set(_0x22ffe4)),_0x682fa1=new Map();return _0xd27103['plugins']=_0x32081c['filter'](_0x26eff0=>Lt(_0x26eff0,_0x682fa1,_0x5387be['plugins'],_0x6c47c3)),_0xd27103;}function Ft(_0x1e6805,_0x526bb7){const _0xd9bb80=[];_0x1e6805['document']['selection']['on']('change:range',()=>{const _0x53e34c=function(_0x1b7f7a,_0x330bec){const _0x268889=[];for(const _0x512726 of _0x1b7f7a['markers']){const _0xbda6c4=_0x512726['getRange']();(_0xbda6c4['containsPosition'](_0x330bec)||_0xbda6c4['start']['isEqual'](_0x330bec)||_0xbda6c4['end']['isEqual'](_0x330bec))&&_0x268889['push'](_0x512726);}return _0x268889;}(_0x1e6805,_0x1e6805['document']['selection']['focus']),_0x2b95f0=[],_0x355006=[],_0x29ada3=[];for(const _0x3d6c9a of _0xd9bb80)_0x53e34c['includes'](_0x3d6c9a)||_0x2b95f0['push'](_0x3d6c9a);for(const _0x3ebf1f of _0x53e34c)_0xd9bb80['includes'](_0x3ebf1f)||_0x355006['push'](_0x3ebf1f),_0x29ada3['push'](_0x3ebf1f);(_0x2b95f0['length']||_0x355006['length'])&&_0x526bb7({'left':_0x2b95f0,'entered':_0x355006}),_0xd9bb80['length']=0x0,_0xd9bb80['push'](..._0x29ada3);});}const Ht='Ctrl+Shift+E';function Ut(_0x3cc9b4,_0x2529a0){const _0x51efa9=_0x3cc9b4['element'];_0x3cc9b4['keystrokes']['listenTo'](_0x51efa9);for(const _0x41b9e1 of _0x2529a0)zt(_0x3cc9b4,_0x41b9e1);_0x2529a0['on']('change',(_0x54b34b,_0x4f146e)=>{for(const _0x5520fc of _0x4f146e['removed'])Wt(_0x3cc9b4,_0x5520fc);for(const _0x2d4e3f of Array['from'](_0x4f146e['added'])['reverse']())zt(_0x3cc9b4,_0x2d4e3f);}),_0x3cc9b4['keystrokes']['set']('enter',(_0x2a47ad,_0xe5d724)=>{_0x51efa9===_0x2a47ad['target']&&(_0x3cc9b4['focusCycler']['focusFirst'](),_0xe5d724());},{'filter':_0xd9b61d=>_0xd9b61d['target']===_0x51efa9}),_0x3cc9b4['keystrokes']['set']('esc',(_0x43b8f4,_0x4a425e)=>{_0x51efa9!==_0x43b8f4['target']?_0x3cc9b4['focus']():_0x3cc9b4['fire']('escape'),_0x4a425e();}),_0x3cc9b4['keystrokes']['set']('arrowdown',(_0x2d22e4,_0xd3c6de)=>{_0x51efa9===_0x2d22e4['target']&&(_0x3cc9b4['fire']('arrowdown'),_0xd3c6de());}),_0x3cc9b4['keystrokes']['set']('arrowup',(_0x3cac4a,_0x1d6a4d)=>{_0x51efa9===_0x3cac4a['target']&&(_0x3cc9b4['fire']('arrowup'),_0x1d6a4d());});}function zt(_0x9b234,_0x4f341f){_0x4f341f['isRendered']&&(_0x9b234['focusTracker']['add'](_0x4f341f['element']),_0x9b234['keystrokes']['listenTo'](_0x4f341f['element']),_0x4620ed(_0x4f341f)&&function(_0x18aed0,_0x4d16b3){const _0x3ef4cf=_0x18aed0['actions'],_0x43b3e9=_0x4d16b3['actions'];for(const _0x17d987 of Object['keys'](_0x3ef4cf))if(_0x17d987 in _0x43b3e9&&_0x3ef4cf[_0x17d987]!==_0x43b3e9[_0x17d987])return!0x1;return!0x0;}(_0x9b234['focusCycler'],_0x4f341f['focusCycler'])&&_0x9b234['focusCycler']['chain'](_0x4f341f['focusCycler']));}function Wt(_0x29a325,_0x56ca79){_0x29a325['focusTracker']['remove'](_0x56ca79['element']),_0x29a325['keystrokes']['stopListening'](_0x56ca79['element']),_0x4620ed(_0x56ca79)&&_0x29a325['focusCycler']['unchain'](_0x56ca79['focusCycler']);}const Yt='$elementId',jt='data-id';var Jt=class extends _0x529028{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x215d2b?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x4220e6,_0x63963d)=>{_0x63963d['on']('ready',()=>{this['_integrateEditor'](_0x63963d);});});}get['editor'](){if(this['context']instanceof _0x215d2b)return this['context'];{const _0x5425f1=this['context']['editors']['first'];if(!_0x5425f1)throw new _0x275ecb('documentcompare-no-editor',this);return _0x5425f1;}}['getDiff'](_0x2a6ca7,_0x192ccb,_0x7900f6={'anchor':'main','markDeletions':!0x1}){const _0x545d6f=_0x7900f6['targetEditor']||this['editor'],_0x8422f=_0x7900f6['anchor']??'main';let _0x51745e,_0x21fff7;if('string'==typeof _0x8422f){const _0xa78f0c=_0x545d6f['model']['document']['getRoot'](_0x8422f);if(!_0xa78f0c)throw new _0x275ecb('documentcompare-compare-no-root',this,{'anchor':_0x8422f});_0x51745e=_0xa78f0c,_0x21fff7=_0x545d6f['model']['createPositionAt'](_0xa78f0c,0x0);}else _0x51745e=_0x8422f['clone'](),_0x21fff7=_0x8422f['clone']();return new Gt({'editor':_0x545d6f,'before':_0x545d6f['data']['parse'](_0x2a6ca7,_0x51745e),'after':_0x545d6f['data']['parse'](_0x192ccb,_0x51745e),'options':{'anchor':_0x21fff7,'markDeletions':_0x7900f6['markDeletions']}});}['isMarkedRemoveOperation'](_0x1d7d55){return'marker'==_0x1d7d55['type']&&_0x1d7d55['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x510700){_0x510700['conversion']['for']('upcast')['add'](_0x52fe75=>{_0x52fe75['on']('element',(_0x241df1,_0x27976a,_0x2fe1d2)=>{if(_0x27976a['modelRange']&&_0x2fe1d2['consumable']['consume'](_0x27976a['viewItem'],{'attributes':'data-id'}))for(const _0x1c8e33 of _0x27976a['modelRange']['getItems']({'shallow':!0x0})){if(_0x1c8e33['is']('$textProxy'))continue;const _0x5b4c8e=_0x27976a['viewItem']['getAttribute'](jt);_0x5b4c8e&&_0x2fe1d2['writer']['setAttribute'](Yt,_0x5b4c8e,_0x1c8e33);}},{'priority':'low'});}),_0x510700['model']['schema']['addAttributeCheck'](()=>!0x0,Yt);}},Gt=class{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x4e86bd,before:_0x299ce5,after:_0x3227f5,options:_0x484a4e}){this['_editor']=_0x4e86bd,this['_markDeletions']=!!_0x484a4e['markDeletions'],this['_anchor']=_0x484a4e['anchor'];const _0x5de23f=this['_tokenizeModel'](_0x299ce5),_0x53fd32=this['_tokenizeModel'](_0x3227f5);this['_diffItems']=this['_diffModelTokens'](_0x5de23f,_0x53fd32),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x299ce5['markers'],_0x3227f5['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0xb0741d=this['_editor']['model']['document'],_0xdec2b6=[];let _0x23c21d=_0xb0741d['version'];for(const _0x4361d7 of this['_operationsData'])switch(_0x4361d7['type']){case'attribute':{const _0x5667b4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']),_0x245db6=new _0x27f33c(_0x5667b4,_0x5667b4['getShiftedBy'](_0x4361d7['howMany'])),_0x2c8b07=JSON['parse'](_0x4361d7['oldValue']),_0x518ce6=JSON['parse'](_0x4361d7['newValue']);_0xdec2b6['push'](new _0xc4dd68(_0x245db6,_0x4361d7['key'],_0x2c8b07,_0x518ce6,_0x23c21d++));break;}case'insert':{const _0x4a7923=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']),_0x137c16=this['_makeModelFromTokens'](_0x4361d7['tokens']);_0xdec2b6['push'](new _0x78b42b(_0x4a7923,_0x137c16,_0x23c21d++));break;}case'remove':{const _0x35c4e0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']),_0x252154=new _0x375446(_0xb0741d['graveyard'],[0x0]);_0xdec2b6['push'](new _0x1319d8(_0x35c4e0,_0x4361d7['howMany'],_0x252154,_0x23c21d++));break;}case'rename':{const _0x1c7cb1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']);_0xdec2b6['push'](new _0x2de6f1(_0x1c7cb1,_0x4361d7['oldName'],_0x4361d7['newName'],_0x23c21d++));break;}case'split':{const _0x2f2629=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']),_0x4909aa=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['path']['slice'](0x0,-0x1));_0x4909aa['offset']++,_0xdec2b6['push'](new _0x5e9c01(_0x2f2629,Number['NEGATIVE_INFINITY'],_0x4909aa,null,_0x23c21d++));break;}case'merge':{const _0x2dbd07=_0x4361d7['path']['slice'](),_0x468659=_0x2dbd07['slice'](0x0,-0x1);_0x468659[_0x468659['length']-0x1]++,_0x468659['push'](0x0);const _0x5afded=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x468659),_0x385fc2=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2dbd07),_0x296422=new _0x375446(_0xb0741d['graveyard'],[0x0]);_0xdec2b6['push'](new _0x470146(_0x5afded,Number['NEGATIVE_INFINITY'],_0x385fc2,_0x296422,_0x23c21d++));break;}case'marker':case'markedRemove':{let _0x51e2f9=null;_0x4361d7['range']&&(_0x51e2f9=new _0x27f33c(this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['range']['start']),this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['range']['end'])));const _0x141729='marker'==_0x4361d7['type']?_0x4361d7['name']:'$markedRemove:'+_0x400e20();_0xdec2b6['push'](new _0x5e0f36(_0x141729,null,_0x51e2f9,_0xb0741d['model']['markers'],!0x0,_0x23c21d++));break;}case'unwrap':{const _0x30d65d=_0x4361d7['path']['slice']();_0x30d65d['push'](0x0);const _0x472fd9=_0x4361d7['path']['slice'](),_0x55bfba=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30d65d),_0x3bf769=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x472fd9),_0x19ccca=new _0x375446(_0xb0741d['graveyard'],[0x0]);_0xdec2b6['push'](new _0x1319d8(_0x55bfba,_0x4361d7['howMany'],_0x3bf769,_0x23c21d++)),_0xdec2b6['push'](new _0x1319d8(_0x3bf769['getShiftedBy'](_0x4361d7['howMany']),0x1,_0x19ccca,_0x23c21d++));break;}case'wrap':{const _0x51bebf=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['range']['start']),_0x466082=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4361d7['range']['end']),_0x47ba00=_0x4361d7['token']['element']['_clone'](!0x1);_0x47ba00['_removeAttribute'](Yt);const _0x23b3e9=_0x4361d7['range']['end']['slice']();_0x23b3e9['push'](0x0);const _0x595aa6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x23b3e9);_0xdec2b6['push'](new _0x78b42b(_0x466082,_0x47ba00,_0x23c21d++)),_0xdec2b6['push'](new _0x1319d8(_0x51bebf,_0x466082['offset']-_0x51bebf['offset'],_0x595aa6,_0x23c21d++));break;}}return _0xdec2b6;}['_tokenizeModel'](_0x3f2e43){const _0x10258f=[],_0x18b1a0=new _0x100733({'boundaries':_0x27f33c['_createIn'](_0x3f2e43)});let _0x260518='',_0x459019=null;const _0x15fe98=[''],_0x63f001=new Map();for(const _0x3bdc4f of _0x18b1a0)if('elementStart'==_0x3bdc4f['type']||'elementEnd'==_0x3bdc4f['type']){let _0x5e5b54=_0x15fe98[0x0];''!==_0x260518&&(_0x10258f['push'](...this['_makeTokensFromTextByWords'](_0x260518,_0x459019,_0x5e5b54)),_0x260518='');const _0x3bb266=_0x3bdc4f['item'];let _0x406ee1;_0x3bb266['getAttribute']('$elementId')?_0x406ee1=_0x3bb266['getAttribute'](Yt):'elementStart'==_0x3bdc4f['type']?(_0x406ee1=qt(_0x3bb266),_0x63f001['set'](_0x3bb266,_0x406ee1)):_0x406ee1=_0x63f001['get'](_0x3bb266);const _0x491feb=this['_getElementCategory'](_0x3bb266);'solid'==_0x491feb&&('elementStart'==_0x3bdc4f['type']?(_0x5e5b54=_0x406ee1,_0x15fe98['unshift'](_0x5e5b54)):_0x15fe98['shift']());const _0x36c3bd={'type':'element','element':_0x3bb266,'elementId':_0x406ee1,'category':_0x491feb,'isStart':'elementStart'==_0x3bdc4f['type'],'limitId':_0x5e5b54};_0x10258f['push'](_0x36c3bd);}else''==_0x260518&&(_0x459019=_0x3bdc4f['previousPosition']['clone']()),_0x260518+=_0x3bdc4f['item']['data'];return''!==_0x260518&&_0x10258f['push'](...this['_makeTokensFromTextByWords'](_0x260518,_0x459019,_0x15fe98[0x0])),_0x10258f;}['_makeTokensFromTextByWords'](_0x24c04e,_0x10fd43,_0x7a02cc){const _0xe65176=_0x24c04e['matchAll'](/(\s)/g),_0x544300=Array['from'](_0xe65176)['map'](_0x1a13dc=>_0x1a13dc['index']);_0x544300['push'](_0x24c04e['length']),0x0==_0x544300[0x0]&&_0x544300['shift']();const _0x2e69b4=[],_0x51168b=_0x10fd43['parent'];let _0x4ba372=0x0,_0x3b023d=_0x10fd43['offset'];for(let _0x25c056=0x0;_0x25c056<_0x544300['length'];_0x25c056++)_0x2e69b4['push']({'type':'text','data':_0x24c04e['slice'](_0x4ba372,_0x544300[_0x25c056]),'parent':_0x51168b,'offset':_0x3b023d,'limitId':_0x7a02cc}),_0x4ba372=_0x544300[_0x25c056],_0x3b023d=_0x10fd43['offset']+_0x544300[_0x25c056];return _0x2e69b4;}['_getElementCategory'](_0xf5375c){const _0x2bbc4a=this['_editor']['model']['schema'];return _0x2bbc4a['isLimit'](_0xf5375c)||_0x2bbc4a['isContent'](_0xf5375c)||_0x2bbc4a['isInline'](_0xf5375c)?'solid':_0x2bbc4a['isBlock'](_0xf5375c)?'block':function(_0x2bdc99,_0x3989a2){const _0x94fa33=_0x2bdc99['parent'];if(!_0x94fa33||_0x94fa33['is']('documentFragment'))return!0x1;if(_0x3989a2['checkChild'](_0x94fa33,'$text'))return!0x1;for(const _0x4f5189 of _0x2bdc99['getChildren']())if(_0x4f5189['is']('$text'))return!0x0;return!0x1;}(_0xf5375c,_0x2bbc4a)?'solid':'container';}['_diffModelTokens'](_0x560137,_0x1efc4e){const _0xad2491=_0xedbbfb(_0x560137,_0x1efc4e,{'comparator':Kt});this['_handleUnclosedBlockOpeningTags'](_0xad2491);const _0x11cb6e=_0xad2491['flatMap'](_0x58080b=>{const _0x91e468=_0x58080b['added']?'added':_0x58080b['removed']?'removed':'unchanged';return _0x58080b['value']['map'](_0x173d3c=>({'token':_0x173d3c,'change':_0x91e468}));});let _0x3f6d2d=0x0;for(const _0x28daf0 of _0x11cb6e)'added'!=_0x28daf0['change']&&('unchanged'==_0x28daf0['change']&&(_0x28daf0['before']=_0x560137[_0x3f6d2d]),_0x3f6d2d++);return _0x11cb6e;}['_handleUnclosedBlockOpeningTags'](_0x2e629e){for(let _0xa87e74=0x0;_0xa87e74<_0x2e629e['length']-0x1;_0xa87e74++)if(_0x2e629e[_0xa87e74]['removed']&&_0x2e629e[_0xa87e74+0x1]['added']){const _0x9fa46f=this['_findUnclosedBlockOpeningToken'](_0x2e629e[_0xa87e74]['value']);if(null!==_0x9fa46f){const _0x257de3=this['_findUnclosedBlockOpeningToken'](_0x2e629e[_0xa87e74+0x1]['value']),_0x18ee88=_0x2e629e[_0xa87e74]['value']['splice'](_0x9fa46f),_0x265b80=_0x2e629e[_0xa87e74+0x1]['value']['splice'](_0x257de3),_0x2788e9=[_0x265b80['shift']()];_0x18ee88['shift']();const _0x39aa6c={'value':_0x18ee88,'removed':!0x0},_0x4b1749={'value':_0x265b80,'added':!0x0},_0x4d4fad={'value':_0x2788e9};_0x2e629e['splice'](_0xa87e74+0x2,0x0,_0x4d4fad,_0x39aa6c,_0x4b1749);}}}['_findUnclosedBlockOpeningToken'](_0x3d7426){let _0x23b0e6=0x0,_0x3ba172=-0x1;for(let _0x3a4065=0x0;_0x3a4065<_0x3d7426['length'];_0x3a4065++){const _0x3e7082=_0x3d7426[_0x3a4065];'element'==_0x3e7082['type']&&'block'==_0x3e7082['category']&&(_0x23b0e6+=_0x3e7082['isStart']?0x1:-0x1,_0x3e7082['isStart']&&(_0x3ba172=_0x3a4065));}return 0x0===_0x23b0e6?null:_0x3ba172;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x39b037=0x0;_0x39b037<this['_diffItems']['length'];_0x39b037++){const _0x492fc5=this['_diffItems'][_0x39b037]['change'],_0x4daa7a=[];_0x4daa7a['push'](this['_diffItems'][_0x39b037]);let _0x4a22cd=_0x39b037+0x1;for(;this['_diffItems'][_0x4a22cd]&&this['_diffItems'][_0x4a22cd]['change']==_0x492fc5;)_0x4daa7a['push'](this['_diffItems'][_0x4a22cd]),_0x4a22cd++,_0x39b037++;const _0x2fe244=_0x4daa7a['map'](_0x4bd630=>_0x4bd630['token']);if('unchanged'==_0x492fc5)_0x4daa7a['map'](_0x39a50f=>_0x39a50f['before'])['forEach'](_0x7fceba=>this['_traverseOverItem'](_0x7fceba));else{if('removed'==_0x492fc5){if(this['_markDeletions']){const _0x27e10a=this['_path']['slice']();_0x2fe244['forEach'](_0x1d92eb=>this['_traverseOverItem'](_0x1d92eb));const _0x14d232=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x27e10a,'end':_0x14d232}});}else this['_handleChanged'](_0x2fe244,!0x0,this['_path']['slice']());}else{const _0x2b7c04=_0x2fe244['filter'](_0x380e23=>'element'!=_0x380e23['type']||'container'!=_0x380e23['category']);this['_handleChanged'](_0x2b7c04,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x1e7a20=0x0;_0x1e7a20<this['_diffItems']['length'];_0x1e7a20++){const _0x1187f8=this['_diffItems'][_0x1e7a20]['change'],_0x12ad0c=[];_0x12ad0c['push'](this['_diffItems'][_0x1e7a20]);let _0x3a6f22=_0x1e7a20+0x1;for(;this['_diffItems'][_0x3a6f22]&&this['_diffItems'][_0x3a6f22]['change']==_0x1187f8;)_0x12ad0c['push'](this['_diffItems'][_0x3a6f22]),_0x3a6f22++,_0x1e7a20++;const _0x1f15a8=_0x12ad0c['map'](_0x37e887=>_0x37e887['token']);if('unchanged'==_0x1187f8){const _0x548b98=_0x12ad0c['map'](_0x3c2b7e=>_0x3c2b7e['before']);this['_handleUnchanged'](_0x548b98,_0x1f15a8);}else('added'==_0x1187f8||this['_markDeletions'])&&_0x1f15a8['forEach'](_0x3b5eed=>{'element'==_0x3b5eed['type']&&_0x3b5eed['isStart']&&this['_splitPostponedData']['has'](_0x3b5eed['element'])&&this['_handleSplitPostponedData'](_0x3b5eed['element'],this['_path']),this['_traverseOverItem'](_0x3b5eed);});}}['_handleSplitPostponedData'](_0x2b16f7,_0x4e3ff7){const _0x11469a=this['_splitPostponedData']['get'](_0x2b16f7);for(const _0x14b413 of _0x11469a)'rename'==_0x14b413['type']?this['_operationsData']['push']({'type':'rename','path':_0x4e3ff7['slice'](),'oldName':_0x14b413['oldValue'],'newName':_0x2b16f7['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x4e3ff7['slice'](),'howMany':0x1,'key':_0x14b413['key'],'oldValue':_0x14b413['oldValue'],'newValue':JSON['stringify'](_0x2b16f7['getAttribute'](_0x14b413['key'])??null)});}['_calculateMarkersOperationsData'](_0x820775,_0x338a05){const _0x5ce6c9={};for(const [_0x356dc4]of _0x820775)_0x5ce6c9[_0x356dc4]=null;for(const [_0x305ca4,_0x19bbf1]of _0x338a05)_0x5ce6c9[_0x305ca4]=_0x19bbf1;const _0x3089b6=Object['entries'](_0x5ce6c9)['map'](([_0x23b341,_0x80e007])=>({'type':'marker','name':_0x23b341,'range':_0x80e007?{'start':_0x80e007['start']['path']['slice'](),'end':_0x80e007['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x3089b6);}['_handleUnwraps'](){const _0x39acf3=new Map(),_0x2e4e34=[],_0x3bb25b=[0x0];let _0x30877d=this['_diffItems']['length']+0x1;for(let _0x340160=this['_diffItems']['length']-0x1;_0x340160>=0x0;_0x340160--){const {token:_0x31a7d5,before:_0x2d277d,change:_0x39a3bf}=this['_diffItems'][_0x340160];if('removed'!=_0x39a3bf&&(_0x30877d=_0x340160),'element'!=_0x31a7d5['type']||'container'!=_0x31a7d5['category']||'added'==_0x39a3bf)continue;const _0x996039=_0x2d277d?_0x2d277d['element']:_0x31a7d5['element'];if(_0x31a7d5['isStart']){const _0x1c9777=_0x39acf3['get'](_0x996039),_0x5740dc=this['_diffItems'][_0x1c9777];('removed'==_0x39a3bf||'removed'==_0x5740dc['change'])&&_0x30877d<_0x1c9777&&(this['_operationsData']['push']({'type':'unwrap','path':_0x996039['getPath'](),'howMany':_0x996039['maxOffset']+_0x3bb25b[0x0]}),_0x3bb25b['shift'](),_0x3bb25b[0x0]+=_0x996039['maxOffset']-0x1,_0x2e4e34['push'](_0x340160),_0x2e4e34['push'](_0x1c9777));}else _0x39acf3['set'](_0x996039,_0x340160),_0x3bb25b['unshift'](0x0);}_0x2e4e34['sort']((_0x1e7c1e,_0x2a5e7f)=>_0x2a5e7f-_0x1e7c1e),_0x2e4e34['forEach'](_0x4e85d7=>{const _0x9ade2e=this['_diffItems'][_0x4e85d7];'removed'==_0x9ade2e['change']?this['_diffItems']['splice'](_0x4e85d7,0x1):(_0x9ade2e['change']='added',delete _0x9ade2e['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x1e3af2=[];for(let _0x28f7c4=0x0;_0x28f7c4<this['_diffItems']['length'];_0x28f7c4++){const {change:_0x56c95f,token:_0x197023}=this['_diffItems'][_0x28f7c4];if('added'==_0x56c95f&&'element'==_0x197023['type']&&'container'==_0x197023['category']){if(_0x197023['isStart'])_0x1e3af2['push'](this['_path']['slice']());else{if(!_0x197023['isStart']){const _0x3172d3=_0x1e3af2['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x3172d3,'end':this['_path']['slice']()},'token':_0x197023}),this['_path'][this['_path']['length']-0x1]=_0x3172d3[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x56c95f||this['_markDeletions'])&&this['_traverseOverItem'](_0x197023);}}['_handleUnchanged'](_0xd9876c,_0x397d22){for(let _0x31cf2b=0x0;_0x31cf2b<_0xd9876c['length'];_0x31cf2b++){const _0x339ab2=_0xd9876c[_0x31cf2b];if('element'==_0x339ab2['type']&&_0x339ab2['isStart']){const _0x44100d=_0x397d22[_0x31cf2b];'block'==_0x339ab2['category']&&this['_handleElementRename'](_0x339ab2['element'],_0x44100d['element'],this['_path']),this['_handleElementAttributeChanges'](_0x339ab2['element'],_0x44100d['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x44100d);}else{if('element'!=_0x339ab2['type']||_0x339ab2['isStart']){if('text'==_0x339ab2['type']){const _0x4071e2=this['_path']['slice'](),_0x60b8a9=[],_0x5eca88=[];for(;_0xd9876c[_0x31cf2b]&&'text'==_0xd9876c[_0x31cf2b]['type'];)_0x60b8a9['push'](_0xd9876c[_0x31cf2b]),_0x5eca88['push'](_0x397d22[_0x31cf2b]),this['_path'][this['_path']['length']-0x1]+=_0xd9876c[_0x31cf2b]['data']['length'],_0x31cf2b++;_0x31cf2b--,this['_handleTextAttributeChanges'](_0x60b8a9,_0x5eca88,_0x4071e2);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x12a786,_0x17d290,_0xf36a73){const _0x251e64=[],_0xf1961a=[],_0x558d45=_0xf36a73['slice']();let _0x1c0c72=this['_parents']['length']-0x1;for(let _0x386323=0x0;_0x386323<_0x12a786['length'];_0x386323++){const _0x494306=_0x12a786[_0x386323],_0x1cf1a4=_0xf36a73['slice']();'element'!=_0x494306['type']||_0x494306['isStart']?'element'==_0x494306['type']&&_0x494306['isStart']?(_0xf36a73['push'](0x0),_0x1c0c72++,_0xf1961a['push']({'before':_0x1cf1a4,'after':_0xf36a73['slice'](),'index':_0x386323})):_0xf36a73[_0xf36a73['length']-0x1]+=_0x494306['data']['length']:(_0xf36a73['pop'](),_0xf36a73[_0xf36a73['length']-0x1]++,_0x1c0c72--,_0xf1961a['length']?_0xf1961a['pop']():_0x251e64['push']({'before':_0x1cf1a4,'after':_0xf36a73['slice'](),'index':_0x386323}));}if(_0xf1961a['length']!==_0x251e64['length'])throw new _0x275ecb('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x12a786,'isRemove':_0x17d290});const _0x4babff=[{'after':_0x558d45['slice'](),'index':-0x1},..._0x251e64,..._0xf1961a,{'before':_0xf36a73['slice'](),'index':_0x12a786['length']}];if(_0x17d290){for(let _0x3976f8=_0x4babff['length']-0x1;_0x3976f8>=0x1;_0x3976f8--){const _0xff0f4d=_0x4babff[_0x3976f8-0x1]['after'],_0x8250d4=_0x4babff[_0x3976f8]['before'],_0x43b95c=_0x8250d4[_0x8250d4['length']-0x1]-_0xff0f4d[_0xff0f4d['length']-0x1];_0x43b95c&&(this['_operationsData']['push']({'type':'remove','path':_0xff0f4d,'howMany':_0x43b95c}),_0x8250d4[_0x8250d4['length']-0x1]-=_0x43b95c);}for(const {before:_0x67622a}of _0x251e64)this['_operationsData']['push']({'type':'merge','path':_0x67622a});}else for(let _0x454603=0x0;_0x454603<_0x4babff['length']-0x1;_0x454603++){const _0x5018e1=_0x4babff[_0x454603]['after'],_0x477e15=_0x4babff[_0x454603+0x1]['before'],_0x26e1d1=_0x4babff[_0x454603]['index']+0x1,_0x471307=_0x4babff[_0x454603+0x1]['index'];if(_0x26e1d1!==_0x471307&&this['_operationsData']['push']({'type':'insert','path':_0x5018e1,'tokens':_0x12a786['slice'](_0x26e1d1,_0x471307)}),_0x454603<_0x251e64['length']){this['_operationsData']['push']({'type':'split','path':_0x477e15});const _0x1b9c17=_0x12a786[_0xf1961a[_0xf1961a['length']-0x1-_0x454603]['index']],_0x5c0e61=this['_parents'][_0x1c0c72]['element'];_0x5c0e61['name']!=_0x1b9c17['element']['name']&&this['_addSplitPostponedData'](_0x1b9c17['element'],{'type':'rename','oldValue':_0x5c0e61['name']});const _0x3d8214=this['_getAttributeChanges'](_0x5c0e61['getAttributes'](),_0x1b9c17['element']['getAttributes']());for(const _0x332023 in _0x3d8214){const _0x17a9bf=_0x3d8214[_0x332023]['oldValue'];this['_addSplitPostponedData'](_0x1b9c17['element'],{'type':'attribute','key':_0x332023,'oldValue':_0x17a9bf});}}}}['_addSplitPostponedData'](_0x2ef80d,_0x14b1b1){const _0xa62f9e=this['_splitPostponedData']['get'](_0x2ef80d)||[];_0xa62f9e['push'](_0x14b1b1),this['_splitPostponedData']['set'](_0x2ef80d,_0xa62f9e);}['_traverseOverItem'](_0x2ed7a6){'element'==_0x2ed7a6['type']&&_0x2ed7a6['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x2ed7a6)):'element'!=_0x2ed7a6['type']||_0x2ed7a6['isStart']?'text'==_0x2ed7a6['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x2ed7a6['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x4bafba,_0x1a75bd,_0xd2df15){_0x4bafba['name']!=_0x1a75bd['name']&&this['_operationsData']['push']({'type':'rename','path':_0xd2df15['slice'](),'oldName':_0x4bafba['name'],'newName':_0x1a75bd['name']});}['_handleElementAttributeChanges'](_0x454ddf,_0x367e42,_0x5badc3){const _0x39ac93=this['_getAttributeChanges'](_0x454ddf['getAttributes'](),_0x367e42['getAttributes']());for(const _0x79bc74 in _0x39ac93){const {oldValue:_0x1d5e9f,newValue:_0x4cf1c5}=_0x39ac93[_0x79bc74];this['_operationsData']['push']({'type':'attribute','path':_0x5badc3['slice'](),'howMany':0x1,'key':_0x79bc74,'oldValue':_0x1d5e9f,'newValue':_0x4cf1c5});}}['_handleTextAttributeChanges'](_0x38da4a,_0x485f26,_0x4457ed){const _0x3237d8=this['_operationsData'],_0x36b1e2=_0x38da4a[0x0]['parent'],_0x2cfd65=_0x38da4a[0x0]['offset'],_0x451810=_0x485f26[0x0]['parent'],_0x388b83=_0x485f26[0x0]['offset'],_0x5cd043=_0x38da4a['reduce']((_0x4baecd,_0x507468)=>_0x4baecd+_0x507468['data']['length'],0x0),_0x281fb8=this['_getAttrsForOffsets'](_0x36b1e2,_0x2cfd65,_0x5cd043),_0x8478b4=this['_getAttrsForOffsets'](_0x451810,_0x388b83,_0x5cd043),_0x102394={};for(let _0x295227=0x0;_0x295227<_0x5cd043;_0x295227++){const _0x4bdbb3=_0x281fb8[_0x2cfd65+_0x295227],_0x5a6a96=_0x8478b4[_0x388b83+_0x295227],_0x3c06d5=this['_getAttributeChanges'](_0x4bdbb3,_0x5a6a96);for(const _0x53923a in _0x102394)_0x3c06d5[_0x53923a]||_0xe6d47(_0x53923a);for(const _0x5b3d68 in _0x3c06d5){const {oldValue:_0x5804a9,newValue:_0x57b874}=_0x3c06d5[_0x5b3d68],_0x5c7330=_0x102394[_0x5b3d68];_0x5c7330?_0x5c7330['oldValue']==_0x5804a9&&_0x5c7330['newValue']==_0x57b874?_0x5c7330['length']++:(_0xe6d47(_0x5b3d68),_0x102394[_0x5b3d68]={'oldValue':_0x5804a9,'newValue':_0x57b874,'start':_0x295227,'length':0x1}):_0x102394[_0x5b3d68]={'oldValue':_0x5804a9,'newValue':_0x57b874,'start':_0x295227,'length':0x1};}}for(const _0x47474a in _0x102394)_0xe6d47(_0x47474a);function _0xe6d47(_0x79ed5a){const _0x570e92=_0x102394[_0x79ed5a],_0x3ca98a=_0x4457ed['slice']();_0x3ca98a[_0x3ca98a['length']-0x1]+=_0x570e92['start'],_0x3237d8['push']({'type':'attribute','path':_0x3ca98a,'howMany':_0x570e92['length'],'key':_0x79ed5a,'oldValue':_0x570e92['oldValue'],'newValue':_0x570e92['newValue']}),delete _0x102394[_0x79ed5a];}}['_getAttributeChanges'](_0x38f58c,_0x473fcc){const _0x1deba0={};for(const [_0x282261,_0xc6c3e]of _0x38f58c)_0x1deba0[_0x282261]={'oldValue':JSON['stringify'](_0xc6c3e),'newValue':'null'};for(const [_0x436538,_0x49a737]of _0x473fcc){const _0x2cf536=JSON['stringify'](_0x49a737);_0x1deba0[_0x436538]?_0x1deba0[_0x436538]['oldValue']==_0x2cf536?delete _0x1deba0[_0x436538]:_0x1deba0[_0x436538]['newValue']=_0x2cf536:_0x1deba0[_0x436538]={'oldValue':'null','newValue':_0x2cf536};}return delete _0x1deba0[Yt],_0x1deba0;}['_getAttrsForOffsets'](_0x4bf983,_0x3b867a,_0x1beee9){const _0x231a0e=new Array(_0x3b867a+_0x1beee9);let _0x1bc5a0=_0x4bf983['getChildAtOffset'](_0x3b867a),_0x596831=_0x1bc5a0['startOffset'];for(;_0x1bc5a0&&_0x596831<_0x3b867a+_0x1beee9;){const _0x223bdc=Array['from'](_0x1bc5a0['getAttributes']());_0x231a0e['fill'](_0x223bdc,_0x596831,_0x596831+_0x1bc5a0['offsetSize']),_0x596831+=_0x1bc5a0['offsetSize'],_0x1bc5a0=_0x1bc5a0['nextSibling'];}return _0x231a0e;}['_getPositionFromAnchorAndPath'](_0x584690,_0x3751ed){const _0x3b093d=[..._0x584690['path']['slice'](0x0,-0x1),_0x584690['offset']+_0x3751ed[0x0],..._0x3751ed['slice'](0x1)];return new _0x375446(_0x584690['root'],_0x3b093d);}['_makeModelFromTokens'](_0x58119d){const _0x2d4877=[];let _0x4d3da2=null;for(const _0x28565e of _0x58119d)if('element'!=_0x28565e['type']||_0x28565e['isStart']||_0x4d3da2!=_0x28565e['element']){if(!_0x4d3da2){if('text'==_0x28565e['type']){const _0x5ad1e1=_0x375446['_createAt'](_0x28565e['parent'],_0x28565e['offset']),_0xc66b7f=_0x27f33c['_createFromPositionAndShift'](_0x5ad1e1,_0x28565e['data']['length']),_0x2f907f=Array['from'](_0xc66b7f['getItems']())['map'](_0x5e870a=>new _0x47f7f3(_0x5e870a['data'],_0x5e870a['getAttributes']()));_0x2d4877['push'](..._0x2f907f);}else{_0x4d3da2=_0x28565e['element'];const _0x32fb4f=_0x28565e['element']['_clone'](!0x0);_0x32fb4f['_removeAttribute'](Yt);for(const _0x135313 of this['_editor']['model']['createRangeIn'](_0x32fb4f)['getItems']())_0x135313['is']('element')&&_0x135313['_removeAttribute'](Yt);_0x2d4877['push'](_0x32fb4f);}}}else _0x4d3da2=null;return _0x2d4877;}};function Kt(_0x3eb9ad,_0x1a9e07){return _0x3eb9ad['type']===_0x1a9e07['type']&&(_0x3eb9ad['limitId']===_0x1a9e07['limitId']&&('text'==_0x3eb9ad['type']?_0x3eb9ad['data']==_0x1a9e07['data']:function(_0x1ad8b2,_0x31aa5f){if(_0x1ad8b2['isStart']!=_0x31aa5f['isStart'])return!0x1;if(_0x1ad8b2['isStart']&&_0x1ad8b2['elementId']!=_0x31aa5f['elementId'])return!0x1;if(_0x1ad8b2['category']!=_0x31aa5f['category'])return!0x1;if('block'==_0x1ad8b2['category'])return!0x0;if('container'==_0x1ad8b2['category']&&_0x1ad8b2['elementId']!=_0x31aa5f['elementId'])return!0x1;return _0x1ad8b2['element']['name']==_0x31aa5f['element']['name'];}(_0x3eb9ad,_0x1a9e07)));}function qt(_0x365ca5){return Tt({'name':_0x365ca5['name'],...Object['fromEntries'](_0x365ca5['getAttributes']())});}export{z as AriaDescriptionView,F as CollaborationUserColor,At as ConfirmMixin,Yt as DATA_ID_MODEL_ATTRIBUTE,jt as DATA_ID_VIEW_ATTRIBUTE,Jt as DocumentCompare,Gt as DocumentDiff,Ht as FOCUS_ANNOTATION_KEYSTROKE,W as LateFocusButtonView,Y as LateFocusDropdownButtonView,D as Permissions,U as PillView,Ct as SuggestionsConversion,L as User,H as UserView,O as Users,G as fixElementSuggestionRange,xt as getAllMarkersDomElementsSorted,_t as getDateTimeFormatter,It as getMarkerDomElement,Tt as hashObject,Rt as sanitizeEditorConfig,Ut as setupThreadKeyboardNavigation,J as splitSuggestionMarkerName,Ft as surroundingMarkersDetector,St as trimHtml};
@@ -1,5 +1 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  export {};
@@ -1,54 +1,54 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module collaboration-core/permissions
7
- * @publicApi
8
- */
9
- import { ContextPlugin } from '@ckeditor/ckeditor5-core';
6
+ * @module collaboration-core/permissions
7
+ * @publicApi
8
+ */
9
+ import { ContextPlugin } from "@ckeditor/ckeditor5-core";
10
10
  /**
11
- * The `Permissions` plugin manages permissions set for the local user.
12
- *
13
- * Following is the list of all defined permissions:
14
- *
15
- * * `document:write` - modify the content of the document, and resolve comment threads created by any user,
16
- * * `comment:write` - create, edit and remove own comments and create, remove own comment threads,
17
- * and resolve comment threads created by any user,
18
- * * `comment:admin` - resolve and remove comment threads created by other users (enables `comment:write`).
19
- * * `comment:modify_all` - edit and remove any comments created by other users.
20
- *
21
- * For example, a user with `comment:write` permission but with no `document:write` permission will be able to add
22
- * comments but will not be able to change the document data (comments-only mode).
23
- *
24
- * By default, the following permissions are set: `document:write`, `comment:write`, `comment:admin`.
25
- *
26
- * Permissions are handled separately for each channel id (for each editor instance and context instance).
27
- *
28
- * See also the {@glink features/collaboration/users#user-permissions User permissions} guide to learn how to use this plugin.
29
- */
11
+ * The `Permissions` plugin manages permissions set for the local user.
12
+ *
13
+ * Following is the list of all defined permissions:
14
+ *
15
+ * * `document:write` - modify the content of the document, and resolve comment threads created by any user,
16
+ * * `comment:write` - create, edit and remove own comments and create, remove own comment threads,
17
+ * and resolve comment threads created by any user,
18
+ * * `comment:admin` - resolve and remove comment threads created by other users (enables `comment:write`).
19
+ * * `comment:modify_all` - edit and remove any comments created by other users.
20
+ *
21
+ * For example, a user with `comment:write` permission but with no `document:write` permission will be able to add
22
+ * comments but will not be able to change the document data (comments-only mode).
23
+ *
24
+ * By default, the following permissions are set: `document:write`, `comment:write`, `comment:admin`.
25
+ *
26
+ * Permissions are handled separately for each channel id (for each editor instance and context instance).
27
+ *
28
+ * See also the {@glink features/collaboration/users#user-permissions User permissions} guide to learn how to use this plugin.
29
+ */
30
30
  export declare class Permissions extends ContextPlugin {
31
- /**
32
- * @inheritDoc
33
- */
34
- static get pluginName(): "Permissions";
35
- /**
36
- * @inheritDoc
37
- */
38
- static get isOfficialPlugin(): true;
39
- /**
40
- * @inheritDoc
41
- */
42
- static get isPremiumPlugin(): true;
43
- /**
44
- * Sets permissions for editor/context instance with given `channelId`.
45
- *
46
- * If `channelId` is not set, the channel id of the editor/context to which the plugin was added will be used.
47
- * This means that it is not required if the plugin is added to the editor configuration and {@link module:core/context~Context}
48
- * is not used.
49
- *
50
- * @param permissions Permissions to set.
51
- * @param channelId The channel ID.
52
- */
53
- setPermissions(permissions: Array<string>, channelId?: string): void;
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ static get pluginName(): "Permissions";
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ static override get isOfficialPlugin(): true;
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ static override get isPremiumPlugin(): true;
43
+ /**
44
+ * Sets permissions for editor/context instance with given `channelId`.
45
+ *
46
+ * If `channelId` is not set, the channel id of the editor/context to which the plugin was added will be used.
47
+ * This means that it is not required if the plugin is added to the editor configuration and {@link module:core/context~Context}
48
+ * is not used.
49
+ *
50
+ * @param permissions Permissions to set.
51
+ * @param channelId The channel ID.
52
+ */
53
+ setPermissions(permissions: Array<string>, channelId?: string): void;
54
54
  }