@ckeditor/ckeditor5-comments 35.3.0 → 35.3.1

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 (38) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsediting.js +1 -1
  18. package/src/comments/commentsrepository.js +1 -1
  19. package/src/comments/commentsui.js +1 -1
  20. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  21. package/src/comments/integrations/importword.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  23. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  25. package/src/comments/ui/commentthreadcontroller.js +1 -1
  26. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  27. package/src/comments/ui/view/basecommentview.js +1 -1
  28. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  29. package/src/comments/ui/view/commentcontentview.js +1 -1
  30. package/src/comments/ui/view/commentinputview.js +1 -1
  31. package/src/comments/ui/view/commentslistview.js +1 -1
  32. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  33. package/src/comments/ui/view/commentthreadview.js +1 -1
  34. package/src/comments/ui/view/commentview.js +1 -1
  35. package/src/comments.js +1 -1
  36. package/src/commentsonly.js +1 -1
  37. package/src/utils/common-translations.js +1 -1
  38. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "35.3.0",
3
+ "version": "35.3.1",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,8 +31,8 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "^35.3.0",
35
- "ckeditor5-collaboration": "^35.3.0",
34
+ "ckeditor5": "^35.3.1",
35
+ "ckeditor5-collaboration": "^35.3.1",
36
36
  "lodash-es": "^4.17.11"
37
37
  }
38
38
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b1f=['annotation-invalid-target','destroy','object','view','focusableElements','type','_assertCorrectTarget','mainView','_type','isActive','add','_isTargetElementVisible','isVisible','item','stopListening','refreshVisibility','render','updateTargetRect','function','_id','element','focusTracker','targetRect','nodeType','getClientRects','_target','remove','target'];(function(_0x15fc96,_0x3b1f62){const _0x1a13c5=function(_0x3a79b2){while(--_0x3a79b2){_0x15fc96['push'](_0x15fc96['shift']());}};_0x1a13c5(++_0x3b1f62);}(_0x3b1f,0xc0));const _0x1a13=function(_0x15fc96,_0x3b1f62){_0x15fc96=_0x15fc96-0x0;let _0x1a13c5=_0x3b1f[_0x15fc96];return _0x1a13c5;};import{CKEditorError as _0x2b517e,Rect as _0x442f16,Collection as _0x3eddd8,mix as _0x13acd9,ObservableMixin as _0x32c729}from'ckeditor5/src/utils';export default class d{constructor({view:_0x3bdbed,target:_0x19693e,type:_0x27bb89,isVisible:_0xb3291f=!0x0}){this[_0x1a13('0x7')]=_0x3bdbed,this[_0x1a13('0x7')][_0x1a13('0x18')]||this['view'][_0x1a13('0x14')](),this[_0x1a13('0xc')]=_0x27bb89,this[_0x1a13('0x1')]=_0x19693e,this['_assertCorrectTarget'](),this[_0x1a13('0x8')]=new _0x3eddd8([this[_0x1a13('0x7')][_0x1a13('0x18')]],{'idProperty':_0x1a13('0x17')}),this['focusableElements']['on'](_0x1a13('0xe'),(_0x1ace90,_0x280a62)=>{this[_0x1a13('0x7')]['focusTracker'][_0x1a13('0xe')](_0x280a62);}),this[_0x1a13('0x8')]['on']('remove',(_0x577347,_0x545b1a)=>{this[_0x1a13('0x7')][_0x1a13('0x19')][_0x1a13('0x2')](_0x545b1a);}),this['set'](_0x1a13('0x10'),_0xb3291f);}get[_0x1a13('0x9')](){return'function'==typeof this[_0x1a13('0xc')]?this['_type']():this[_0x1a13('0xc')];}get['innerView'](){return this[_0x1a13('0x7')]['mainView'];}get[_0x1a13('0x3')](){return _0x1a13('0x16')==typeof this[_0x1a13('0x1')]?this[_0x1a13('0x1')]():this[_0x1a13('0x1')];}get['targetRect'](){const _0x36a3d0=this[_0x1a13('0x3')];return this[_0x1a13('0xa')](),null!==_0x36a3d0&&this['_isTargetElementVisible']()?p(_0x36a3d0)?new _0x442f16(_0x36a3d0[_0x1a13('0x0')]()[_0x1a13('0x11')](0x0)):new _0x442f16(_0x36a3d0):null;}get['isActive'](){return this[_0x1a13('0x7')][_0x1a13('0xd')];}set[_0x1a13('0xd')](_0x3ad913){this[_0x1a13('0x7')][_0x1a13('0xd')]=_0x3ad913,this[_0x1a13('0x7')][_0x1a13('0xb')][_0x1a13('0xd')]=_0x3ad913;}[_0x1a13('0x15')](){this[_0x1a13('0x7')][_0x1a13('0x1a')]=this[_0x1a13('0x1a')];}[_0x1a13('0x5')](){this['focusableElements'][_0x1a13('0x12')](),this[_0x1a13('0x8')]['clear'](),this[_0x1a13('0x12')]();}[_0x1a13('0x13')](){this[_0x1a13('0x10')]=this[_0x1a13('0xf')]();}[_0x1a13('0xf')](){const _0xd13270=this[_0x1a13('0x3')];if(!p(_0xd13270))return!0x0;if(_0xd13270['offsetParent'])return!0x0;return!!_0xd13270['getClientRects']()[_0x1a13('0x11')](0x0);}[_0x1a13('0xa')](){const _0xb352e=this[_0x1a13('0x3')];if(!(null===_0xb352e||_0xb352e instanceof _0x442f16||p(_0xb352e)))throw new _0x2b517e(_0x1a13('0x4'),null,{'target':_0xb352e});}}function p(_0x165e08){return null!==_0x165e08&&_0x1a13('0x6')==typeof _0x165e08&&0x1===_0x165e08[_0x1a13('0x1b')];}_0x13acd9(d,_0x32c729);
23
+ const _0x29f4=['mainView','_isTargetElementVisible','item','getClientRects','clear','target','type','function','nodeType','isActive','offsetParent','_assertCorrectTarget','view','add','remove','targetRect','_type','isVisible','updateTargetRect','element','destroy','render','_id','stopListening','innerView','focusTracker','_target','focusableElements'];(function(_0x4e43fd,_0x29f4d3){const _0xe22918=function(_0x348b54){while(--_0x348b54){_0x4e43fd['push'](_0x4e43fd['shift']());}};_0xe22918(++_0x29f4d3);}(_0x29f4,0x1ad));const _0xe229=function(_0x4e43fd,_0x29f4d3){_0x4e43fd=_0x4e43fd-0x0;let _0xe22918=_0x29f4[_0x4e43fd];return _0xe22918;};import{CKEditorError as _0x1bdaf6,Rect as _0x3fb291,Collection as _0x2928bc,mix as _0x5cc55a,ObservableMixin as _0x2c14f5}from'ckeditor5/src/utils';export default class G{constructor({view:_0x9cfd8b,target:_0x206108,type:_0x9064e0,isVisible:_0x2c6cbb=!0x0}){this['view']=_0x9cfd8b,this[_0xe229('0x3')]['element']||this[_0xe229('0x3')][_0xe229('0xc')](),this[_0xe229('0x7')]=_0x9064e0,this[_0xe229('0x11')]=_0x206108,this['_assertCorrectTarget'](),this[_0xe229('0x12')]=new _0x2928bc([this[_0xe229('0x3')][_0xe229('0xa')]],{'idProperty':_0xe229('0xd')}),this[_0xe229('0x12')]['on'](_0xe229('0x4'),(_0x3960af,_0x5af36c)=>{this['view'][_0xe229('0x10')][_0xe229('0x4')](_0x5af36c);}),this[_0xe229('0x12')]['on'](_0xe229('0x5'),(_0x200b56,_0x399947)=>{this[_0xe229('0x3')]['focusTracker'][_0xe229('0x5')](_0x399947);}),this['set']('isVisible',_0x2c6cbb);}get[_0xe229('0x19')](){return _0xe229('0x1a')==typeof this['_type']?this[_0xe229('0x7')]():this[_0xe229('0x7')];}get[_0xe229('0xf')](){return this[_0xe229('0x3')][_0xe229('0x13')];}get[_0xe229('0x18')](){return _0xe229('0x1a')==typeof this['_target']?this[_0xe229('0x11')]():this[_0xe229('0x11')];}get[_0xe229('0x6')](){const _0x3586d2=this[_0xe229('0x18')];return this['_assertCorrectTarget'](),null!==_0x3586d2&&this[_0xe229('0x14')]()?K(_0x3586d2)?new _0x3fb291(_0x3586d2[_0xe229('0x16')]()[_0xe229('0x15')](0x0)):new _0x3fb291(_0x3586d2):null;}get[_0xe229('0x0')](){return this['view']['isActive'];}set['isActive'](_0x4251b8){this[_0xe229('0x3')][_0xe229('0x0')]=_0x4251b8,this[_0xe229('0x3')][_0xe229('0x13')][_0xe229('0x0')]=_0x4251b8;}[_0xe229('0x9')](){this[_0xe229('0x3')][_0xe229('0x6')]=this[_0xe229('0x6')];}[_0xe229('0xb')](){this[_0xe229('0x12')][_0xe229('0xe')](),this[_0xe229('0x12')][_0xe229('0x17')](),this[_0xe229('0xe')]();}['refreshVisibility'](){this[_0xe229('0x8')]=this[_0xe229('0x14')]();}[_0xe229('0x14')](){const _0xd95eaf=this['target'];if(!K(_0xd95eaf))return!0x0;if(_0xd95eaf[_0xe229('0x1')])return!0x0;return!!_0xd95eaf[_0xe229('0x16')]()[_0xe229('0x15')](0x0);}[_0xe229('0x2')](){const _0x4ef9cc=this[_0xe229('0x18')];if(!(null===_0x4ef9cc||_0x4ef9cc instanceof _0x3fb291||K(_0x4ef9cc)))throw new _0x1bdaf6('annotation-invalid-target',null,{'target':_0x4ef9cc});}}function K(_0x4a1e5d){return null!==_0x4a1e5d&&'object'==typeof _0x4a1e5d&&0x1===_0x4a1e5d[_0xe229('0x1b')];}_0x5cc55a(G,_0x2c14f5);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbc03=['view','change:isFocused','refreshPositioning','add','set','_sort','has','_viewToAnnotation','_innerViewToAnnotation','innerView','top','focusableElements','delete','isFocused','_items','get','remove','targetRect','_getOrderInContent','_focusTracker','left','stopListening','length','fire','getByInnerView','destroy','clear','focusTracker','updateTargetRect','sort','blur','listenTo','focus','getIndex'];(function(_0x211402,_0xbc036e){const _0x2b94d2=function(_0x1521b2){while(--_0x1521b2){_0x211402['push'](_0x211402['shift']());}};_0x2b94d2(++_0xbc036e);}(_0xbc03,0xef));const _0x2b94=function(_0x211402,_0xbc036e){_0x211402=_0x211402-0x0;let _0x2b94d2=_0xbc03[_0x211402];return _0x2b94d2;};import{CKEditorError as _0x41cbe0,Collection as _0x33a713,FocusTracker as _0xfa04aa}from'ckeditor5/src/utils';export default class x extends _0x33a713{constructor(_0x20b289=[]){super(),this[_0x2b94('0x7')]=new Map(),this[_0x2b94('0x6')]=new Map(),this[_0x2b94('0x12')]=new _0xfa04aa(),this[_0x2b94('0x12')]['on'](_0x2b94('0x0'),(_0x545ec8,_0x3bbe11,_0x1a3da9)=>{_0x1a3da9||this[_0x2b94('0x16')](_0x2b94('0x1d'));});for(const _0x2b38d9 of _0x20b289)this['add'](_0x2b38d9);}get[_0x2b94('0xc')](){return this[_0x2b94('0x12')][_0x2b94('0xc')];}[_0x2b94('0x2')](_0x1f3c72){if(this[_0x2b94('0x5')](_0x1f3c72))throw new _0x41cbe0('annotationcollection-duplicated-item',null);this[_0x2b94('0x7')][_0x2b94('0x3')](_0x1f3c72[_0x2b94('0x8')],_0x1f3c72),this[_0x2b94('0x6')][_0x2b94('0x3')](_0x1f3c72[_0x2b94('0x21')],_0x1f3c72);for(const _0x5d797a of _0x1f3c72[_0x2b94('0xa')])this[_0x2b94('0x12')][_0x2b94('0x2')](_0x5d797a);this[_0x2b94('0x1e')](_0x1f3c72['focusableElements'],_0x2b94('0x2'),(_0x570dcd,_0x3e049e)=>{this[_0x2b94('0x12')][_0x2b94('0x2')](_0x3e049e);}),this[_0x2b94('0x1e')](_0x1f3c72[_0x2b94('0xa')],_0x2b94('0xf'),(_0x492ad4,_0x57b388)=>{this['_focusTracker'][_0x2b94('0xf')](_0x57b388);}),this['listenTo'](_0x1f3c72[_0x2b94('0x21')]['focusTracker'],_0x2b94('0x0'),(_0x11c31c,_0x41f6ea,_0x4e48e1)=>{_0x4e48e1&&this['fire'](_0x2b94('0x1f'),_0x1f3c72);}),_0x1f3c72[_0x2b94('0x1b')]();const _0x2d835b=this['_getOrderInContent'](_0x1f3c72[_0x2b94('0x21')][_0x2b94('0x10')]);super[_0x2b94('0x2')](_0x1f3c72,_0x2d835b);}[_0x2b94('0xf')](_0x3f4eca){if(!this[_0x2b94('0x5')](_0x3f4eca))throw new _0x41cbe0('annotationcollection-not-existing-item',null);this[_0x2b94('0x14')](_0x3f4eca[_0x2b94('0x21')][_0x2b94('0x1a')]),this[_0x2b94('0x14')](_0x3f4eca[_0x2b94('0xa')]);for(const _0x5123d4 of _0x3f4eca[_0x2b94('0xa')])this['_focusTracker'][_0x2b94('0xf')](_0x5123d4);this[_0x2b94('0x6')][_0x2b94('0xb')](_0x3f4eca[_0x2b94('0x21')]),this[_0x2b94('0x7')][_0x2b94('0xb')](_0x3f4eca[_0x2b94('0x8')]),super[_0x2b94('0xf')](_0x3f4eca);}[_0x2b94('0x17')](_0x499bc2){return this[_0x2b94('0x7')][_0x2b94('0xe')](_0x499bc2);}['getByView'](_0x1c758f){return this[_0x2b94('0x6')]['get'](_0x1c758f);}[_0x2b94('0x18')](){super[_0x2b94('0x19')](),this[_0x2b94('0x14')](),this[_0x2b94('0x7')][_0x2b94('0x19')](),this[_0x2b94('0x6')][_0x2b94('0x19')](),this[_0x2b94('0x12')][_0x2b94('0x18')]();}[_0x2b94('0x1')](){for(const _0x504fbf of this)_0x504fbf['updateTargetRect']();this[_0x2b94('0x4')]();}[_0x2b94('0x4')](){const _0x573cd6=Array['from'](this)[_0x2b94('0x1c')]((_0x460f19,_0x72548e)=>y(_0x460f19[_0x2b94('0x21')][_0x2b94('0x10')],_0x72548e[_0x2b94('0x21')][_0x2b94('0x10')]));for(let _0x4acc46=_0x573cd6[_0x2b94('0x15')]-0x1;_0x4acc46>0x0;_0x4acc46--){const _0x351c4f=_0x573cd6[_0x4acc46];_0x4acc46!==this[_0x2b94('0x20')](_0x351c4f)&&(this[_0x2b94('0xf')](_0x351c4f),this['add'](_0x351c4f,_0x4acc46));}}[_0x2b94('0x11')](_0x5d7188){let _0x3170a5=0x0;if(!_0x5d7188)return this[_0x2b94('0xd')][_0x2b94('0x15')];for(const _0x35e08b of this){const _0x52216b=_0x35e08b[_0x2b94('0x21')][_0x2b94('0x10')];if(_0x52216b){if(y(_0x5d7188,_0x52216b)<0x0)return _0x3170a5;_0x3170a5++;}}return _0x3170a5;}}export function bindAnnotationCollections({source:_0x3193fc,target:_0x137391,filter:_0x57d398}){for(const _0x55cedb of _0x3193fc)_0x57d398(_0x55cedb)&&_0x137391[_0x2b94('0x2')](_0x55cedb);_0x137391['listenTo'](_0x3193fc,_0x2b94('0x2'),(_0x5e48af,_0x300259)=>{_0x57d398(_0x300259)&&_0x137391['add'](_0x300259);}),_0x137391[_0x2b94('0x1e')](_0x3193fc,_0x2b94('0xf'),(_0x5d5519,_0x1c23b0)=>{_0x137391['has'](_0x1c23b0)&&_0x137391['remove'](_0x1c23b0);});}function y(_0x3f0eae,_0x46107b){if(null===_0x3f0eae&&null===_0x46107b)return 0x0;if(null===_0x3f0eae)return-0x1;if(null===_0x46107b)return 0x1;const _0x539f0d=_0x3f0eae[_0x2b94('0x9')]-_0x46107b[_0x2b94('0x9')];return 0x0==_0x539f0d?_0x3f0eae[_0x2b94('0x13')]-_0x46107b[_0x2b94('0x13')]:_0x539f0d;}
23
+ const _0x59fa=['targetRect','stopListening','listenTo','view','add','_sort','_items','blur','_viewToAnnotation','getByInnerView','annotationcollection-duplicated-item','get','clear','remove','left','_getOrderInContent','change:isFocused','focusableElements','destroy','_focusTracker','focus','innerView','has','updateTargetRect','getIndex','annotationcollection-not-existing-item','delete','set','focusTracker','_innerViewToAnnotation','getByView','top','isFocused','length','from'];(function(_0x45793d,_0x59fa15){const _0x32532e=function(_0x2dc9cf){while(--_0x2dc9cf){_0x45793d['push'](_0x45793d['shift']());}};_0x32532e(++_0x59fa15);}(_0x59fa,0x188));const _0x3253=function(_0x45793d,_0x59fa15){_0x45793d=_0x45793d-0x0;let _0x32532e=_0x59fa[_0x45793d];return _0x32532e;};import{CKEditorError as _0x15cf80,Collection as _0x50777a,FocusTracker as _0xecd5e7}from'ckeditor5/src/utils';export default class X extends _0x50777a{constructor(_0x2a659e=[]){super(),this[_0x3253('0x16')]=new Map(),this[_0x3253('0x1')]=new Map(),this['_focusTracker']=new _0xecd5e7(),this[_0x3253('0xc')]['on']('change:isFocused',(_0x251722,_0x9e24f9,_0x31b6f0)=>{_0x31b6f0||this['fire'](_0x3253('0x0'));});for(const _0x2dd440 of _0x2a659e)this[_0x3253('0x20')](_0x2dd440);}get[_0x3253('0x19')](){return this[_0x3253('0xc')][_0x3253('0x19')];}[_0x3253('0x20')](_0x1c3a91){if(this[_0x3253('0xf')](_0x1c3a91))throw new _0x15cf80(_0x3253('0x3'),null);this[_0x3253('0x16')][_0x3253('0x14')](_0x1c3a91['innerView'],_0x1c3a91),this[_0x3253('0x1')][_0x3253('0x14')](_0x1c3a91['view'],_0x1c3a91);for(const _0x23779d of _0x1c3a91[_0x3253('0xa')])this[_0x3253('0xc')][_0x3253('0x20')](_0x23779d);this[_0x3253('0x1e')](_0x1c3a91[_0x3253('0xa')],_0x3253('0x20'),(_0x3f15bd,_0x24370c)=>{this[_0x3253('0xc')]['add'](_0x24370c);}),this['listenTo'](_0x1c3a91['focusableElements'],_0x3253('0x6'),(_0x65e4e0,_0x5dd7b0)=>{this['_focusTracker'][_0x3253('0x6')](_0x5dd7b0);}),this[_0x3253('0x1e')](_0x1c3a91[_0x3253('0x1f')]['focusTracker'],_0x3253('0x9'),(_0x528790,_0x41f4cc,_0x322f44)=>{_0x322f44&&this['fire'](_0x3253('0xd'),_0x1c3a91);}),_0x1c3a91[_0x3253('0x10')]();const _0x407cfe=this['_getOrderInContent'](_0x1c3a91[_0x3253('0x1f')]['targetRect']);super[_0x3253('0x20')](_0x1c3a91,_0x407cfe);}[_0x3253('0x6')](_0x4b9318){if(!this['has'](_0x4b9318))throw new _0x15cf80(_0x3253('0x12'),null);this[_0x3253('0x1d')](_0x4b9318[_0x3253('0x1f')][_0x3253('0x15')]),this['stopListening'](_0x4b9318[_0x3253('0xa')]);for(const _0x2d1eeb of _0x4b9318['focusableElements'])this[_0x3253('0xc')]['remove'](_0x2d1eeb);this[_0x3253('0x1')]['delete'](_0x4b9318[_0x3253('0x1f')]),this['_innerViewToAnnotation'][_0x3253('0x13')](_0x4b9318[_0x3253('0xe')]),super[_0x3253('0x6')](_0x4b9318);}[_0x3253('0x2')](_0xa1127c){return this['_innerViewToAnnotation'][_0x3253('0x4')](_0xa1127c);}[_0x3253('0x17')](_0x350bab){return this['_viewToAnnotation']['get'](_0x350bab);}[_0x3253('0xb')](){super[_0x3253('0x5')](),this[_0x3253('0x1d')](),this[_0x3253('0x16')][_0x3253('0x5')](),this['_viewToAnnotation'][_0x3253('0x5')](),this[_0x3253('0xc')][_0x3253('0xb')]();}['refreshPositioning'](){for(const _0x486259 of this)_0x486259[_0x3253('0x10')]();this[_0x3253('0x21')]();}[_0x3253('0x21')](){const _0x32eaa7=Array[_0x3253('0x1b')](this)['sort']((_0x14d593,_0x153325)=>Y(_0x14d593[_0x3253('0x1f')][_0x3253('0x1c')],_0x153325[_0x3253('0x1f')][_0x3253('0x1c')]));for(let _0x2f8ab5=_0x32eaa7[_0x3253('0x1a')]-0x1;_0x2f8ab5>0x0;_0x2f8ab5--){const _0xeaae80=_0x32eaa7[_0x2f8ab5];_0x2f8ab5!==this[_0x3253('0x11')](_0xeaae80)&&(this[_0x3253('0x6')](_0xeaae80),this[_0x3253('0x20')](_0xeaae80,_0x2f8ab5));}}[_0x3253('0x8')](_0x23473c){let _0x28f5b7=0x0;if(!_0x23473c)return this[_0x3253('0x22')][_0x3253('0x1a')];for(const _0x51329c of this){const _0x597143=_0x51329c[_0x3253('0x1f')]['targetRect'];if(_0x597143){if(Y(_0x23473c,_0x597143)<0x0)return _0x28f5b7;_0x28f5b7++;}}return _0x28f5b7;}}export function bindAnnotationCollections({source:_0x1999aa,target:_0x12b226,filter:_0x4a1b5b}){for(const _0x2adc6e of _0x1999aa)_0x4a1b5b(_0x2adc6e)&&_0x12b226[_0x3253('0x20')](_0x2adc6e);_0x12b226[_0x3253('0x1e')](_0x1999aa,_0x3253('0x20'),(_0x2e2556,_0x3cf626)=>{_0x4a1b5b(_0x3cf626)&&_0x12b226[_0x3253('0x20')](_0x3cf626);}),_0x12b226[_0x3253('0x1e')](_0x1999aa,_0x3253('0x6'),(_0x12c73c,_0x537bef)=>{_0x12b226['has'](_0x537bef)&&_0x12b226['remove'](_0x537bef);});}function Y(_0x3b3533,_0x4c8694){if(null===_0x3b3533&&null===_0x4c8694)return 0x0;if(null===_0x3b3533)return-0x1;if(null===_0x4c8694)return 0x1;const _0x1557b6=_0x3b3533[_0x3253('0x18')]-_0x4c8694['top'];return 0x0==_0x1557b6?_0x3b3533[_0x3253('0x7')]-_0x4c8694['left']:_0x1557b6;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46b5=['createAnnotationView','collection','fire','has','source','activeAnnotations','_deactivateAllAnnotations','destroy','refreshVisibility','remove','activate','set','isVisible','_activateAnnotation','_bindAnnotationsToVisibleAnnotations','change:isVisible','Annotations','_addActiveAnnotation','_removeActiveAnnotation','createAnnotation','refreshPositioning','add','getByInnerView','deactivateAll','_visibleAnnotations','listenTo'];(function(_0x42be8d,_0x46b573){const _0x568cb3=function(_0x4ec3d6){while(--_0x4ec3d6){_0x42be8d['push'](_0x42be8d['shift']());}};_0x568cb3(++_0x46b573);}(_0x46b5,0x17c));const _0x568c=function(_0x42be8d,_0x46b573){_0x42be8d=_0x42be8d-0x0;let _0x568cb3=_0x46b5[_0x42be8d];return _0x568cb3;};import{ContextPlugin as _0x7ab8b7}from'ckeditor5/src/core';import _0x343109 from'./annotation';import _0x29ce5e from'./annotationcollection';import _0x5d6fe7 from'./view/annotationview';export default class V extends _0x7ab8b7{static get['pluginName'](){return _0x568c('0x0');}constructor(_0x1b56ec){super(_0x1b56ec),this[_0x568c('0xb')]=new _0x29ce5e(),this['_visibleAnnotations']=new _0x29ce5e(),this[_0x568c('0x15')](_0x568c('0xf'),new Set()),this[_0x568c('0x18')]();}[_0x568c('0x5')](_0x5c4fad){this['collection'][_0x568c('0x5')](_0x5c4fad);}[_0x568c('0x13')](_0x1cef29){this[_0x568c('0xb')][_0x568c('0x13')](_0x1cef29),_0x1cef29[_0x568c('0x11')]();}[_0x568c('0x12')](){for(const _0x5f28d0 of this['collection'])_0x5f28d0[_0x568c('0x12')]();}[_0x568c('0x4')](){this['_visibleAnnotations'][_0x568c('0x4')]();}[_0x568c('0x6')](_0x36535a){return this['collection'][_0x568c('0x6')](_0x36535a);}[_0x568c('0x7')](){this[_0x568c('0xc')](_0x568c('0x10'));}[_0x568c('0x11')](){for(const _0x4ed0e4 of this['collection'])_0x4ed0e4[_0x568c('0x11')]();this[_0x568c('0x8')][_0x568c('0x11')](),this['collection'][_0x568c('0x11')](),super[_0x568c('0x11')]();}[_0x568c('0x14')](_0x3b3c5e){this['fire'](_0x568c('0x17'),_0x3b3c5e);}[_0x568c('0x3')](_0x1313a4){return new _0x343109(_0x1313a4);}[_0x568c('0xa')](_0x535a3c,_0x5cb2c4){return new _0x5d6fe7(_0x535a3c,_0x5cb2c4);}[_0x568c('0x1')](_0x3966b3){const _0x4ee205=new Set(this[_0x568c('0xf')]);_0x4ee205[_0x568c('0x5')](_0x3966b3),this[_0x568c('0xf')]=_0x4ee205;}[_0x568c('0x2')](_0x2ff787){const _0x310497=new Set(this[_0x568c('0xf')]);_0x310497['delete'](_0x2ff787),this['activeAnnotations']=_0x310497;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4d8ed6=this[_0x568c('0xb')],_0x4dca8c=this[_0x568c('0x8')];function _0x2b7191(_0x874b52){const _0x3d486d=_0x874b52[_0x568c('0xe')];_0x3d486d[_0x568c('0x16')]&&!_0x4dca8c[_0x568c('0xd')](_0x3d486d)?_0x4dca8c[_0x568c('0x5')](_0x3d486d):!_0x3d486d[_0x568c('0x16')]&&_0x4dca8c[_0x568c('0xd')](_0x3d486d)&&_0x4dca8c[_0x568c('0x13')](_0x3d486d);}this['listenTo'](_0x4d8ed6,_0x568c('0x5'),(_0x14adc9,_0x25da62)=>{_0x25da62[_0x568c('0x16')]&&_0x4dca8c[_0x568c('0x5')](_0x25da62),this['listenTo'](_0x25da62,'change:isVisible',_0x2b7191);}),this[_0x568c('0x9')](_0x4d8ed6,'remove',(_0xcb8d09,_0x491d84)=>{_0x4dca8c[_0x568c('0xd')](_0x491d84)&&_0x4dca8c[_0x568c('0x13')](_0x491d84),this['stopListening'](_0x491d84,_0x568c('0x19'),_0x2b7191);});}}
23
+ const _0x4698=['_activateAnnotation','createAnnotationView','isVisible','_addActiveAnnotation','destroy','source','collection','getByInnerView','add','pluginName','refreshVisibility','_deactivateAllAnnotations','change:isVisible','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations','Annotations','set','remove','refreshPositioning','fire','has','_removeActiveAnnotation','deactivateAll','activeAnnotations','listenTo'];(function(_0x1d591c,_0x469816){const _0x3bf9c4=function(_0x1803ad){while(--_0x1803ad){_0x1d591c['push'](_0x1d591c['shift']());}};_0x3bf9c4(++_0x469816);}(_0x4698,0xdf));const _0x3bf9=function(_0x1d591c,_0x469816){_0x1d591c=_0x1d591c-0x0;let _0x3bf9c4=_0x4698[_0x1d591c];return _0x3bf9c4;};import{ContextPlugin as _0x2d2872}from'ckeditor5/src/core';import _0x4d8756 from'./annotation';import _0x5801dc from'./annotationcollection';import _0x2554cc from'./view/annotationview';export default class H extends _0x2d2872{static get[_0x3bf9('0xb')](){return _0x3bf9('0x11');}constructor(_0xb0c8e){super(_0xb0c8e),this[_0x3bf9('0x8')]=new _0x5801dc(),this[_0x3bf9('0xf')]=new _0x5801dc(),this[_0x3bf9('0x12')](_0x3bf9('0x0'),new Set()),this[_0x3bf9('0x10')]();}[_0x3bf9('0xa')](_0x37eebf){this[_0x3bf9('0x8')][_0x3bf9('0xa')](_0x37eebf);}['remove'](_0x4c51ff){this[_0x3bf9('0x8')][_0x3bf9('0x13')](_0x4c51ff),_0x4c51ff[_0x3bf9('0x6')]();}[_0x3bf9('0xc')](){for(const _0x30e40b of this['collection'])_0x30e40b[_0x3bf9('0xc')]();}[_0x3bf9('0x14')](){this[_0x3bf9('0xf')]['refreshPositioning']();}[_0x3bf9('0x9')](_0x260983){return this[_0x3bf9('0x8')][_0x3bf9('0x9')](_0x260983);}[_0x3bf9('0x18')](){this[_0x3bf9('0x15')](_0x3bf9('0xd'));}[_0x3bf9('0x6')](){for(const _0x249689 of this[_0x3bf9('0x8')])_0x249689['destroy']();this['_visibleAnnotations'][_0x3bf9('0x6')](),this['collection'][_0x3bf9('0x6')](),super['destroy']();}['activate'](_0x42e6ad){this[_0x3bf9('0x15')](_0x3bf9('0x2'),_0x42e6ad);}['createAnnotation'](_0x3498a0){return new _0x4d8756(_0x3498a0);}[_0x3bf9('0x3')](_0x5b3e1b,_0x5e25c9){return new _0x2554cc(_0x5b3e1b,_0x5e25c9);}[_0x3bf9('0x5')](_0xfc4714){const _0x1f507e=new Set(this[_0x3bf9('0x0')]);_0x1f507e[_0x3bf9('0xa')](_0xfc4714),this[_0x3bf9('0x0')]=_0x1f507e;}[_0x3bf9('0x17')](_0x25a3e3){const _0x19346f=new Set(this[_0x3bf9('0x0')]);_0x19346f['delete'](_0x25a3e3),this[_0x3bf9('0x0')]=_0x19346f;}[_0x3bf9('0x10')](){const _0x15aff3=this[_0x3bf9('0x8')],_0x51f27f=this[_0x3bf9('0xf')];function _0x1a2540(_0x10c91a){const _0x3f46d5=_0x10c91a[_0x3bf9('0x7')];_0x3f46d5['isVisible']&&!_0x51f27f['has'](_0x3f46d5)?_0x51f27f[_0x3bf9('0xa')](_0x3f46d5):!_0x3f46d5[_0x3bf9('0x4')]&&_0x51f27f[_0x3bf9('0x16')](_0x3f46d5)&&_0x51f27f[_0x3bf9('0x13')](_0x3f46d5);}this[_0x3bf9('0x1')](_0x15aff3,_0x3bf9('0xa'),(_0x11c548,_0x50f0a6)=>{_0x50f0a6[_0x3bf9('0x4')]&&_0x51f27f[_0x3bf9('0xa')](_0x50f0a6),this['listenTo'](_0x50f0a6,_0x3bf9('0xe'),_0x1a2540);}),this[_0x3bf9('0x1')](_0x15aff3,'remove',(_0x37fecf,_0x17165d)=>{_0x51f27f[_0x3bf9('0x16')](_0x17165d)&&_0x51f27f[_0x3bf9('0x13')](_0x17165d),this['stopListening'](_0x17165d,_0x3bf9('0xe'),_0x1a2540);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4764=['length','delete','_uisData','listenTo','activeAnnotations','get','destroy','annotationsuis-activate-missing-ui','filter','size','add','register','hasActive','annotationsuis-register-invalid-interface','setActiveAnnotation','_activateAnnotation','AnnotationsUIs','stopListening','_setSelectedAnnotations','remove','function','_assertAnnotationDoesNotBelongToMultipleUIs','deactivateAll','detach','context','isActive','activate','_removeActiveAnnotation','collection','has','from','_addActiveAnnotation','plugins','push','pluginName','attach','_uis','set','_visibleAnnotations','change:activeAnnotation','switchTo','requires','activeUIs','deactivate'];(function(_0x42ef3c,_0x476497){const _0x530505=function(_0x1c0f2a){while(--_0x1c0f2a){_0x42ef3c['push'](_0x42ef3c['shift']());}};_0x530505(++_0x476497);}(_0x4764,0x17d));const _0x5305=function(_0x42ef3c,_0x476497){_0x42ef3c=_0x42ef3c-0x0;let _0x530505=_0x4764[_0x42ef3c];return _0x530505;};import{ContextPlugin as _0xb80c3f}from'ckeditor5/src/core';import{CKEditorError as _0x1568a0}from'ckeditor5/src/utils';import _0xaefe7a,{bindAnnotationCollections as _0x1754c0}from'./annotationcollection';import _0x41d26a from'./annotations';export default class I extends _0xb80c3f{static get[_0x5305('0xc')](){return[_0x41d26a];}static get[_0x5305('0x5')](){return _0x5305('0x1f');}constructor(_0x3b56ae){super(_0x3b56ae),this['activeUIs']=new Set(),this[_0x5305('0x7')]=new Map(),this[_0x5305('0x11')]=new Map();}['init'](){const _0x189310=this[_0x5305('0x27')][_0x5305('0x3')][_0x5305('0x14')](_0x41d26a);this[_0x5305('0x12')](_0x189310,_0x5305('0x1e'),(_0x47163a,_0x5a6dea)=>{for(const _0x21eab6 of this[_0x5305('0xd')]){const _0x1f61a5=this['_uis'][_0x5305('0x14')](_0x21eab6);(0x0,this['_uisData']['get'](_0x21eab6)[_0x5305('0x17')])(_0x5a6dea)&&_0x1f61a5[_0x5305('0x1d')](_0x5a6dea);}}),this[_0x5305('0x12')](_0x189310,'_deactivateAllAnnotations',()=>{for(const _0x2c564a of this['activeUIs']){this['_uis'][_0x5305('0x14')](_0x2c564a)[_0x5305('0x1d')](null);}}),this[_0x5305('0x12')](_0x189310[_0x5305('0x9')],_0x5305('0x19'),(_0x699f40,_0x3f578d)=>{this[_0x5305('0x24')](_0x3f578d);});}[_0x5305('0x1b')](){return this[_0x5305('0xd')][_0x5305('0x18')]>0x0;}[_0x5305('0x28')](_0x36d95c){return this[_0x5305('0xd')][_0x5305('0x0')](_0x36d95c);}[_0x5305('0x29')](_0x476a4,_0x40979e=()=>!0x0){const _0x304663=this['context'][_0x5305('0x3')][_0x5305('0x14')](_0x41d26a);if(!this[_0x5305('0x7')][_0x5305('0x0')](_0x476a4))throw new _0x1568a0(_0x5305('0x16'),this,{'uiName':_0x476a4});this[_0x5305('0x28')](_0x476a4)&&this['deactivate'](_0x476a4),this['activeUIs'][_0x5305('0x19')](_0x476a4);const _0x57bcc0=new _0xaefe7a(),_0x29d43e=_0x304663['_visibleAnnotations'];_0x1754c0({'source':_0x29d43e,'target':_0x57bcc0,'filter':_0x40979e}),this[_0x5305('0x11')][_0x5305('0x8')](_0x476a4,{'collection':_0x57bcc0,'filter':_0x40979e});const _0x40f0e9=this[_0x5305('0x7')]['get'](_0x476a4);_0x40f0e9[_0x5305('0x6')](_0x57bcc0),this[_0x5305('0x12')](_0x40f0e9,_0x5305('0xa'),(_0x7c4221,_0xc8aeef,_0x4bc207,_0xc390c9)=>{_0xc390c9&&_0x304663[_0x5305('0x2a')](_0xc390c9),_0x4bc207&&_0x304663[_0x5305('0x2')](_0x4bc207);});}[_0x5305('0xe')](_0x28f62c){this[_0x5305('0xd')][_0x5305('0x10')](_0x28f62c);const _0x35b546=this['_uis'][_0x5305('0x14')](_0x28f62c);_0x35b546['detach'](),this[_0x5305('0x20')](_0x35b546),this[_0x5305('0x11')][_0x5305('0x14')](_0x28f62c)[_0x5305('0x2b')][_0x5305('0x15')](),this['_uisData']['delete'](_0x28f62c);}[_0x5305('0xb')](_0x4a657e){const _0x27db8d=this[_0x5305('0x27')][_0x5305('0x3')]['get'](_0x41d26a),_0x47297e=Array[_0x5305('0x1')](_0x27db8d[_0x5305('0x13')])[0x0]||null;this[_0x5305('0x25')](),this[_0x5305('0x29')](_0x4a657e);const _0x93e4ed=this[_0x5305('0x7')]['get'](_0x4a657e);_0x93e4ed[_0x5305('0x1d')](_0x47297e),_0x93e4ed[_0x5305('0x21')]&&_0x47297e&&_0x93e4ed['_setSelectedAnnotations']([_0x47297e]);}[_0x5305('0x25')](){for(const _0x3a7b73 of this['activeUIs'])this[_0x5305('0xe')](_0x3a7b73);}[_0x5305('0x1a')](_0x2dc35f,_0x14b642){if(this['_uis']['has'](_0x2dc35f))throw new _0x1568a0('annotationsuis-register-already-registered');if(_0x5305('0x23')!=typeof _0x14b642['attach']||_0x5305('0x23')!=typeof _0x14b642[_0x5305('0x26')]||_0x5305('0x23')!=typeof _0x14b642[_0x5305('0x1d')])throw new _0x1568a0(_0x5305('0x1c'),null);this[_0x5305('0x7')][_0x5305('0x8')](_0x2dc35f,_0x14b642);}['refilterAnnotations'](){const _0x1d9268=this[_0x5305('0x27')]['plugins']['get'](_0x41d26a)['collection'],_0x33cc0f=new Map(),_0x4fa829=Array[_0x5305('0x1')](this[_0x5305('0xd')]);for(const _0x36cb82 of this[_0x5305('0xd')]){const _0x582916=this[_0x5305('0x11')]['get'](_0x36cb82)[_0x5305('0x2b')];for(const _0xe54fd of _0x582916)_0x33cc0f[_0x5305('0x8')](_0xe54fd,_0x36cb82);}for(const _0x1653d2 of _0x1d9268){const _0x286f9a=_0x33cc0f[_0x5305('0x14')](_0x1653d2);this[_0x5305('0x24')](_0x1653d2);const _0x57fbad=_0x4fa829['find'](_0x2b5f29=>this[_0x5305('0x11')][_0x5305('0x14')](_0x2b5f29)['filter'](_0x1653d2));_0x286f9a!==_0x57fbad&&(_0x286f9a&&this[_0x5305('0x11')][_0x5305('0x14')](_0x286f9a)[_0x5305('0x2b')][_0x5305('0x22')](_0x1653d2),_0x57fbad&&this[_0x5305('0x11')][_0x5305('0x14')](_0x57fbad)[_0x5305('0x2b')][_0x5305('0x19')](_0x1653d2));}}[_0x5305('0x15')](){this[_0x5305('0x25')](),super[_0x5305('0x15')]();}[_0x5305('0x24')](_0x55bb22){const _0x4fa6d9=[];for(const _0x132c33 of this[_0x5305('0xd')]){(0x0,this[_0x5305('0x11')]['get'](_0x132c33)[_0x5305('0x17')])(_0x55bb22)&&_0x4fa6d9[_0x5305('0x4')](_0x132c33);}if(_0x4fa6d9[_0x5305('0xf')]>0x1)throw new _0x1568a0('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4fa6d9,'annotationType':_0x55bb22['type']});}}
23
+ const _0x4aa7=['deactivate','_uisData','remove','annotationsuis-register-invalid-interface','AnnotationsUIs','annotationsuis-activate-missing-ui','has','refilterAnnotations','isActive','destroy','size','from','stopListening','context','annotationsuis-annotation-mismatch','deactivateAll','annotationsuis-register-already-registered','listenTo','activeUIs','attach','activate','init','function','_deactivateAllAnnotations','get','find','setActiveAnnotation','_visibleAnnotations','_removeActiveAnnotation','push','_activateAnnotation','delete','set','add','_setSelectedAnnotations','collection','plugins','filter','detach','hasActive','activeAnnotations','_addActiveAnnotation','requires','_uis'];(function(_0x35aec0,_0x4aa758){const _0x3672e9=function(_0x6faa64){while(--_0x6faa64){_0x35aec0['push'](_0x35aec0['shift']());}};_0x3672e9(++_0x4aa758);}(_0x4aa7,0x145));const _0x3672=function(_0x35aec0,_0x4aa758){_0x35aec0=_0x35aec0-0x0;let _0x3672e9=_0x4aa7[_0x35aec0];return _0x3672e9;};import{ContextPlugin as _0x2d0850}from'ckeditor5/src/core';import{CKEditorError as _0x1fc76b}from'ckeditor5/src/utils';import _0x450c29,{bindAnnotationCollections as _0x558480}from'./annotationcollection';import _0xa2a645 from'./annotations';export default class $ extends _0x2d0850{static get[_0x3672('0x19')](){return[_0xa2a645];}static get['pluginName'](){return _0x3672('0x1f');}constructor(_0x328b78){super(_0x328b78),this[_0x3672('0x1')]=new Set(),this[_0x3672('0x1a')]=new Map(),this['_uisData']=new Map();}[_0x3672('0x4')](){const _0x51b382=this[_0x3672('0x28')][_0x3672('0x13')][_0x3672('0x7')](_0xa2a645);this[_0x3672('0x0')](_0x51b382,_0x3672('0xd'),(_0x1e1e2b,_0x1e2f33)=>{for(const _0x121173 of this[_0x3672('0x1')]){const _0x1977e2=this[_0x3672('0x1a')]['get'](_0x121173);(0x0,this[_0x3672('0x1c')][_0x3672('0x7')](_0x121173)[_0x3672('0x14')])(_0x1e2f33)&&_0x1977e2['setActiveAnnotation'](_0x1e2f33);}}),this[_0x3672('0x0')](_0x51b382,_0x3672('0x6'),()=>{for(const _0x1028ae of this[_0x3672('0x1')]){this[_0x3672('0x1a')]['get'](_0x1028ae)[_0x3672('0x9')](null);}}),this[_0x3672('0x0')](_0x51b382[_0x3672('0xa')],_0x3672('0x10'),(_0x5801da,_0x4e3951)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4e3951);});}[_0x3672('0x16')](){return this[_0x3672('0x1')][_0x3672('0x25')]>0x0;}[_0x3672('0x23')](_0xf8e521){return this[_0x3672('0x1')][_0x3672('0x21')](_0xf8e521);}['activate'](_0x1d6de4,_0x271b3a=()=>!0x0){const _0x4a0ed7=this['context']['plugins'][_0x3672('0x7')](_0xa2a645);if(!this[_0x3672('0x1a')]['has'](_0x1d6de4))throw new _0x1fc76b(_0x3672('0x20'),this,{'uiName':_0x1d6de4});this['isActive'](_0x1d6de4)&&this[_0x3672('0x1b')](_0x1d6de4),this['activeUIs'][_0x3672('0x10')](_0x1d6de4);const _0x902253=new _0x450c29(),_0x161dc2=_0x4a0ed7['_visibleAnnotations'];_0x558480({'source':_0x161dc2,'target':_0x902253,'filter':_0x271b3a}),this[_0x3672('0x1c')][_0x3672('0xf')](_0x1d6de4,{'collection':_0x902253,'filter':_0x271b3a});const _0x3be62f=this[_0x3672('0x1a')][_0x3672('0x7')](_0x1d6de4);_0x3be62f['attach'](_0x902253),this[_0x3672('0x0')](_0x3be62f,'change:activeAnnotation',(_0x409990,_0x5f22a5,_0x58dfb6,_0x5f1607)=>{_0x5f1607&&_0x4a0ed7[_0x3672('0xb')](_0x5f1607),_0x58dfb6&&_0x4a0ed7[_0x3672('0x18')](_0x58dfb6);});}['deactivate'](_0xef95e3){this[_0x3672('0x1')][_0x3672('0xe')](_0xef95e3);const _0x86821a=this[_0x3672('0x1a')][_0x3672('0x7')](_0xef95e3);_0x86821a[_0x3672('0x15')](),this[_0x3672('0x27')](_0x86821a),this[_0x3672('0x1c')][_0x3672('0x7')](_0xef95e3)[_0x3672('0x12')][_0x3672('0x24')](),this[_0x3672('0x1c')][_0x3672('0xe')](_0xef95e3);}['switchTo'](_0x41e808){const _0x3b4994=this[_0x3672('0x28')][_0x3672('0x13')][_0x3672('0x7')](_0xa2a645),_0x451169=Array['from'](_0x3b4994[_0x3672('0x17')])[0x0]||null;this[_0x3672('0x2a')](),this[_0x3672('0x3')](_0x41e808);const _0x3b29ab=this[_0x3672('0x1a')]['get'](_0x41e808);_0x3b29ab[_0x3672('0x9')](_0x451169),_0x3b29ab['_setSelectedAnnotations']&&_0x451169&&_0x3b29ab[_0x3672('0x11')]([_0x451169]);}[_0x3672('0x2a')](){for(const _0x252e56 of this['activeUIs'])this[_0x3672('0x1b')](_0x252e56);}['register'](_0x1bf51d,_0x4c617){if(this['_uis'][_0x3672('0x21')](_0x1bf51d))throw new _0x1fc76b(_0x3672('0x2b'));if('function'!=typeof _0x4c617[_0x3672('0x2')]||'function'!=typeof _0x4c617[_0x3672('0x15')]||_0x3672('0x5')!=typeof _0x4c617[_0x3672('0x9')])throw new _0x1fc76b(_0x3672('0x1e'),null);this[_0x3672('0x1a')][_0x3672('0xf')](_0x1bf51d,_0x4c617);}[_0x3672('0x22')](){const _0x3e5d2f=this[_0x3672('0x28')][_0x3672('0x13')][_0x3672('0x7')](_0xa2a645)[_0x3672('0x12')],_0xdb4ba3=new Map(),_0x5d6638=Array[_0x3672('0x26')](this[_0x3672('0x1')]);for(const _0x4fdcf3 of this[_0x3672('0x1')]){const _0x1d6cb6=this[_0x3672('0x1c')][_0x3672('0x7')](_0x4fdcf3)[_0x3672('0x12')];for(const _0x1ee27a of _0x1d6cb6)_0xdb4ba3[_0x3672('0xf')](_0x1ee27a,_0x4fdcf3);}for(const _0xc25101 of _0x3e5d2f){const _0x21e301=_0xdb4ba3['get'](_0xc25101);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xc25101);const _0x555d18=_0x5d6638[_0x3672('0x8')](_0x53497e=>this[_0x3672('0x1c')][_0x3672('0x7')](_0x53497e)[_0x3672('0x14')](_0xc25101));_0x21e301!==_0x555d18&&(_0x21e301&&this[_0x3672('0x1c')][_0x3672('0x7')](_0x21e301)[_0x3672('0x12')][_0x3672('0x1d')](_0xc25101),_0x555d18&&this['_uisData'][_0x3672('0x7')](_0x555d18)[_0x3672('0x12')][_0x3672('0x10')](_0xc25101));}}['destroy'](){this[_0x3672('0x2a')](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3b7a49){const _0x1eea97=[];for(const _0x38d1d4 of this[_0x3672('0x1')]){(0x0,this[_0x3672('0x1c')]['get'](_0x38d1d4)[_0x3672('0x14')])(_0x3b7a49)&&_0x1eea97[_0x3672('0xc')](_0x38d1d4);}if(_0x1eea97['length']>0x1)throw new _0x1fc76b(_0x3672('0x29'),null,{'matchedUIs':_0x1eea97,'annotationType':_0x3b7a49['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1af6=['annotation','getByInnerView','element','requires','fire','has','set','selection','editing','change:isFocused','push','listenTo','getOrderedSelectedAnnotations','model','hasDomSelection','uiUpdate','registerAnnotation','pluginName','isCollapsed','containsRange','focusTracker','_dataCollectors','refreshSelectedViews','EditorAnnotations','function','change:range','innerView','range','update','init','delete','remove','view','directChange','from','add','refresh','isReadOnly','isEqual','_editorAnnotations','sort','document','getRanges','editor'];(function(_0xfa2869,_0x1af6eb){const _0x192b56=function(_0x4a32be){while(--_0x4a32be){_0xfa2869['push'](_0xfa2869['shift']());}};_0x192b56(++_0x1af6eb);}(_0x1af6,0xa5));const _0x192b=function(_0xfa2869,_0x1af6eb){_0xfa2869=_0xfa2869-0x0;let _0x192b56=_0x1af6[_0xfa2869];return _0x192b56;};import{Plugin as _0x35f124}from'ckeditor5/src/core';import{CKEditorError as _0x1111b5}from'ckeditor5/src/utils';import{debounce as _0x4b03e4}from'lodash-es';import _0x2ebc30 from'./annotations';export default class k extends _0x35f124{static get[_0x192b('0xe')](){return[_0x2ebc30];}static get[_0x192b('0x1c')](){return _0x192b('0x22');}constructor(_0x23a58c){super(_0x23a58c),this[_0x192b('0x20')]=new Set(),this[_0x192b('0x6')]=new Set();}[_0x192b('0x28')](){const _0x3834e7=this['editor'],_0x203523=_0x3834e7[_0x192b('0x18')]['document'][_0x192b('0x12')],_0x15d364=_0x4b03e4(()=>this['refreshSelectedViews'](),0xa);_0x203523['on'](_0x192b('0x24'),(_0x2f4609,_0x32ed00)=>{_0x32ed00[_0x192b('0x0')]&&(_0x15d364['cancel'](),this[_0x192b('0x21')]());}),this[_0x192b('0x16')](_0x3834e7['editing'][_0x192b('0x2b')][_0x192b('0x8')],_0x192b('0x14'),(_0x2652d2,_0x27eb3a,_0xadd6a4)=>{_0xadd6a4&&_0x15d364();}),this[_0x192b('0x16')](_0x3834e7['ui']['focusTracker'],'change:isFocused',(_0x303797,_0x67cad1,_0x1854a2)=>{_0x1854a2||_0x3834e7[_0x192b('0x4')]||this[_0x192b('0xf')]('blur',{'isAnnotationTracked':_0x47be17=>this['_editorAnnotationsData'][_0x192b('0x10')](_0x47be17[_0x192b('0x25')])});}),this[_0x192b('0x16')](this[_0x192b('0xa')]['ui'],_0x192b('0x27'),()=>this[_0x192b('0xf')](_0x192b('0x1a')));}[_0x192b('0x1b')](_0x33962b){if(this[_0x192b('0x6')][_0x192b('0x10')](_0x33962b))return;this[_0x192b('0x6')]['add'](_0x33962b['view']),this[_0x192b('0xa')]['ui'][_0x192b('0x1f')][_0x192b('0x2')](_0x33962b[_0x192b('0x2b')][_0x192b('0xd')]);const _0x54a455=this['editor']['plugins']['get'](_0x2ebc30);this[_0x192b('0x16')](_0x54a455['collection'],_0x192b('0x2a'),(_0x72091,_0x439909)=>{this[_0x192b('0xa')]['ui']['focusTracker']['remove'](_0x439909[_0x192b('0x2b')][_0x192b('0xd')]),this['_editorAnnotations'][_0x192b('0x29')](_0x439909['view']);});}[_0x192b('0x19')](){return this[_0x192b('0xa')][_0x192b('0x13')][_0x192b('0x2b')][_0x192b('0x19')];}['addSourceCollector'](_0x5eb5a2){if(_0x192b('0x23')!=typeof _0x5eb5a2)throw new _0x1111b5('editorannotations-invalid-source-callback');this[_0x192b('0x20')][_0x192b('0x2')](_0x5eb5a2);}['refreshSelectedViews'](){this[_0x192b('0xf')](_0x192b('0x3'));}[_0x192b('0x17')]({activeAnnotation:_0x83c4c7,annotations:_0x386ab8}){const _0x4159b1=[],_0x249d46=this[_0x192b('0xa')][_0x192b('0x18')][_0x192b('0x8')][_0x192b('0x12')],_0x300d8b=Array[_0x192b('0x1')](_0x249d46[_0x192b('0x9')]());for(const [_0x40af85,_0x1e84db]of this['_editorAnnotationsData']){const _0x25d1d9=_0x2215f5(_0x1e84db),_0x2b680a=_0x386ab8[_0x192b('0xc')](_0x40af85);_0x25d1d9&&_0x2b680a&&_0x4159b1[_0x192b('0x15')]({'annotation':_0x2b680a,'range':_0x25d1d9});}function _0x2215f5(_0x4e1f97){for(const _0x2fa517 of _0x4e1f97)for(const _0x5ebb40 of _0x300d8b)if(_0x2fa517[_0x192b('0x1e')](_0x5ebb40,!_0x249d46[_0x192b('0x1d')]))return _0x2fa517;return null;}return _0x4159b1[_0x192b('0x7')]((_0x4ed471,_0x26dbbe)=>{const _0x48bdd0=_0x4ed471['range'],_0x1f31b1=_0x26dbbe[_0x192b('0x26')];if(!_0x48bdd0[_0x192b('0x5')](_0x1f31b1)){if(_0x48bdd0['containsRange'](_0x1f31b1,!0x0))return 0x1;if(_0x1f31b1[_0x192b('0x1e')](_0x48bdd0,!0x0))return-0x1;}return _0x4ed471[_0x192b('0xb')]==_0x83c4c7?-0x1:_0x26dbbe['annotation']==_0x83c4c7?0x1:0x0;})['map'](_0x4181e6=>_0x4181e6[_0x192b('0xb')]);}get['_editorAnnotationsData'](){const _0x519406=new Map();for(const _0x3e7c39 of Array[_0x192b('0x1')](this[_0x192b('0x20')]))for(const [_0x98ce7a,_0x22f4de]of _0x3e7c39())_0x519406[_0x192b('0x11')](_0x98ce7a,_0x22f4de);return _0x519406;}}
23
+ const _0x2177=['_editorAnnotationsData','uiUpdate','view','containsRange','set','function','has','change:range','EditorAnnotations','fire','requires','addSourceCollector','refreshSelectedViews','pluginName','listenTo','document','model','element','editorannotations-invalid-source-callback','change:isFocused','add','blur','range','isReadOnly','innerView','sort','_dataCollectors','selection','getRanges','map','plugins','editing','getOrderedSelectedAnnotations','hasDomSelection','isEqual','remove','refresh','focusTracker','_editorAnnotations','editor','get','update','cancel','annotation','getByInnerView','directChange','init'];(function(_0x3113e6,_0x21779c){const _0x4eb1a6=function(_0x226606){while(--_0x226606){_0x3113e6['push'](_0x3113e6['shift']());}};_0x4eb1a6(++_0x21779c);}(_0x2177,0x132));const _0x4eb1=function(_0x3113e6,_0x21779c){_0x3113e6=_0x3113e6-0x0;let _0x4eb1a6=_0x2177[_0x3113e6];return _0x4eb1a6;};import{Plugin as _0x1a2381}from'ckeditor5/src/core';import{CKEditorError as _0x372591}from'ckeditor5/src/utils';import{debounce as _0x4193e5}from'lodash-es';import _0x10bb07 from'./annotations';export default class p extends _0x1a2381{static get[_0x4eb1('0x21')](){return[_0x10bb07];}static get[_0x4eb1('0x24')](){return _0x4eb1('0x1f');}constructor(_0x5567b2){super(_0x5567b2),this[_0x4eb1('0x2')]=new Set(),this[_0x4eb1('0xe')]=new Set();}[_0x4eb1('0x16')](){const _0x4d1988=this[_0x4eb1('0xf')],_0x224c74=_0x4d1988[_0x4eb1('0x27')][_0x4eb1('0x26')][_0x4eb1('0x3')],_0x368370=_0x4193e5(()=>this[_0x4eb1('0x23')](),0xa);_0x224c74['on'](_0x4eb1('0x1e'),(_0x642121,_0xb48fc9)=>{_0xb48fc9[_0x4eb1('0x15')]&&(_0x368370[_0x4eb1('0x12')](),this['refreshSelectedViews']());}),this[_0x4eb1('0x25')](_0x4d1988[_0x4eb1('0x7')][_0x4eb1('0x19')][_0x4eb1('0x26')],_0x4eb1('0x2a'),(_0x4e1eaf,_0x4cfeb2,_0x24a469)=>{_0x24a469&&_0x368370();}),this[_0x4eb1('0x25')](_0x4d1988['ui'][_0x4eb1('0xd')],_0x4eb1('0x2a'),(_0x12dcc6,_0x393acd,_0x48cad2)=>{_0x48cad2||_0x4d1988[_0x4eb1('0x2e')]||this[_0x4eb1('0x20')](_0x4eb1('0x2c'),{'isAnnotationTracked':_0x28344e=>this[_0x4eb1('0x17')]['has'](_0x28344e[_0x4eb1('0x0')])});}),this['listenTo'](this[_0x4eb1('0xf')]['ui'],_0x4eb1('0x11'),()=>this[_0x4eb1('0x20')](_0x4eb1('0x18')));}['registerAnnotation'](_0x28772b){if(this[_0x4eb1('0xe')][_0x4eb1('0x1d')](_0x28772b))return;this[_0x4eb1('0xe')][_0x4eb1('0x2b')](_0x28772b['view']),this['editor']['ui'][_0x4eb1('0xd')][_0x4eb1('0x2b')](_0x28772b[_0x4eb1('0x19')][_0x4eb1('0x28')]);const _0x14b668=this[_0x4eb1('0xf')][_0x4eb1('0x6')][_0x4eb1('0x10')](_0x10bb07);this['listenTo'](_0x14b668['collection'],_0x4eb1('0xb'),(_0x41d7ab,_0x55bbce)=>{this[_0x4eb1('0xf')]['ui']['focusTracker'][_0x4eb1('0xb')](_0x55bbce[_0x4eb1('0x19')][_0x4eb1('0x28')]),this['_editorAnnotations']['delete'](_0x55bbce['view']);});}[_0x4eb1('0x9')](){return this[_0x4eb1('0xf')]['editing'][_0x4eb1('0x19')][_0x4eb1('0x9')];}[_0x4eb1('0x22')](_0x3cabdf){if(_0x4eb1('0x1c')!=typeof _0x3cabdf)throw new _0x372591(_0x4eb1('0x29'));this[_0x4eb1('0x2')][_0x4eb1('0x2b')](_0x3cabdf);}[_0x4eb1('0x23')](){this[_0x4eb1('0x20')](_0x4eb1('0xc'));}[_0x4eb1('0x8')]({activeAnnotation:_0x58d8cc,annotations:_0x26b082}){const _0x1e081c=[],_0x1bdcf3=this[_0x4eb1('0xf')]['model']['document'][_0x4eb1('0x3')],_0x148264=Array['from'](_0x1bdcf3[_0x4eb1('0x4')]());for(const [_0x3a689e,_0x18dbe6]of this[_0x4eb1('0x17')]){const _0x1833a6=_0x167c67(_0x18dbe6),_0x2f2692=_0x26b082[_0x4eb1('0x14')](_0x3a689e);_0x1833a6&&_0x2f2692&&_0x1e081c['push']({'annotation':_0x2f2692,'range':_0x1833a6});}function _0x167c67(_0xefe605){for(const _0xd5a7b8 of _0xefe605)for(const _0xf7bc98 of _0x148264)if(_0xd5a7b8[_0x4eb1('0x1a')](_0xf7bc98,!_0x1bdcf3['isCollapsed']))return _0xd5a7b8;return null;}return _0x1e081c[_0x4eb1('0x1')]((_0xe7801d,_0x5cb603)=>{const _0x4224d9=_0xe7801d[_0x4eb1('0x2d')],_0x457d50=_0x5cb603[_0x4eb1('0x2d')];if(!_0x4224d9[_0x4eb1('0xa')](_0x457d50)){if(_0x4224d9[_0x4eb1('0x1a')](_0x457d50,!0x0))return 0x1;if(_0x457d50[_0x4eb1('0x1a')](_0x4224d9,!0x0))return-0x1;}return _0xe7801d[_0x4eb1('0x13')]==_0x58d8cc?-0x1:_0x5cb603['annotation']==_0x58d8cc?0x1:0x0;})[_0x4eb1('0x5')](_0x569780=>_0x569780[_0x4eb1('0x13')]);}get['_editorAnnotationsData'](){const _0x1cb452=new Map();for(const _0x2a4782 of Array['from'](this[_0x4eb1('0x2')]))for(const [_0x3f6445,_0x55880d]of _0x2a4782())_0x1cb452[_0x4eb1('0x1b')](_0x3f6445,_0x55880d);return _0x1cb452;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39f1=['view','focus','listenTo','change:isFocused','focusTracker','plugins','context','clear','isAttached','getOrderedSelectedAnnotations','getSelection','_forceRefresh','_manuallyClosed','isFocused','annotations','target','hasActive','init','delete','_balloon','editing','register','stopListening','inlineannotations-not-allowed-with-context','has','destroy','add','editor','pluginName','getRangeAt','keystrokes','attach','isActive','change:visibleView','_addedAnnotations','updatePosition','afterInit','activeAnnotation','document','requires','includes','length','blur','_selectedAnnotations','get','inlineannotations-detach-not-attached','targetRect','_setSelectedAnnotations','set','Esc','_closeAnnotation','showStack','selection','setActiveAnnotation','every','_removeAnnotationFromBalloon','getByView','InlineAnnotations','remove','inline','hasView','addObserver','detach','visibleView','switchTo'];(function(_0x1e06bd,_0x39f182){const _0x596389=function(_0x2bb07a){while(--_0x2bb07a){_0x1e06bd['push'](_0x1e06bd['shift']());}};_0x596389(++_0x39f182);}(_0x39f1,0xe2));const _0x5963=function(_0x1e06bd,_0x39f182){_0x1e06bd=_0x1e06bd-0x0;let _0x596389=_0x39f1[_0x1e06bd];return _0x596389;};import{Plugin as _0x4a313f}from'ckeditor5/src/core';import _0x37afed from'./annotationsuis';import _0x424a27 from'./editorannotations';import{ContextualBalloon as _0x24fe80}from'ckeditor5/src/ui';import{MouseObserver as _0x4d79e6}from'ckeditor5/src/engine';import{CKEditorError as _0x1b446b}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x4a313f{static get[_0x5963('0x8')](){return[_0x424a27,_0x24fe80,_0x37afed];}static get[_0x5963('0x3e')](){return _0x5963('0x1a');}constructor(_0x253be3){super(_0x253be3),_0x253be3[_0x5963('0x36')]['view'][_0x5963('0x1e')](_0x4d79e6),this[_0x5963('0x2a')]=!0x1,this[_0x5963('0x11')](_0x5963('0x6'),null),this[_0x5963('0x30')]=null,this[_0x5963('0x2e')]=new Set(),this[_0x5963('0x35')]=_0x253be3[_0x5963('0x27')]['get'](_0x24fe80),this[_0x5963('0x3')]=new Set(),this[_0x5963('0xc')]=[],this[_0x5963('0x2d')]=!0x1;}[_0x5963('0x33')](){const _0x46e13f=this[_0x5963('0x3d')]['plugins']['get'](_0x37afed);_0x46e13f[_0x5963('0x28')]===this[_0x5963('0x3d')]&&(_0x46e13f[_0x5963('0x37')](_0x5963('0x1c'),this),this['editor'][_0x5963('0x40')][_0x5963('0x11')](_0x5963('0x12'),(_0x1b32b6,_0x2e828c)=>{const _0x5c4037=this[_0x5963('0x35')];if(this[_0x5963('0x2a')]&&_0x5c4037[_0x5963('0x20')]){const _0x3fcb60=this['annotations']['getByView'](_0x5c4037[_0x5963('0x20')]);this[_0x5963('0x13')](_0x3fcb60),_0x2e828c();}}));}[_0x5963('0x5')](){const _0x3f16e0=this[_0x5963('0x3d')]['plugins'][_0x5963('0xd')](_0x37afed);_0x3f16e0[_0x5963('0x28')]===this[_0x5963('0x3d')]&&(_0x3f16e0[_0x5963('0x32')]()||_0x3f16e0[_0x5963('0x21')]('inline'));}[_0x5963('0x16')](_0x52a6f6){_0x52a6f6!==this[_0x5963('0x6')]&&(this[_0x5963('0x6')]&&(this['activeAnnotation'][_0x5963('0x1')]=!0x1),_0x52a6f6&&this[_0x5963('0x3d')]['ui'][_0x5963('0x26')][_0x5963('0x2f')]&&(this['_addAnnotationToBalloon'](_0x52a6f6,!0x0),_0x52a6f6[_0x5963('0x1')]=!0x0),_0x52a6f6||this[_0x5963('0x10')]([]),this['activeAnnotation']=_0x52a6f6);}[_0x5963('0x0')](_0x2ebeb8){this[_0x5963('0x30')]=_0x2ebeb8;const _0x353eab=this[_0x5963('0x3d')][_0x5963('0x27')][_0x5963('0xd')](_0x37afed),_0x1309d9=this['_balloon'];if(this[_0x5963('0x2a')])throw new _0x1b446b('inlineannotations-attach-already-attached',this);if(_0x353eab[_0x5963('0x28')]!==this['editor'])throw new _0x1b446b(_0x5963('0x39'),this);const _0x100134=this['editor']['plugins'][_0x5963('0xd')]('EditorAnnotations');this[_0x5963('0x24')](_0x100134,'refresh',function(){const _0x3acba6=_0x100134[_0x5963('0x2b')]({'activeAnnotation':this[_0x5963('0x6')],'annotations':this[_0x5963('0x30')]});if(!this[_0x5963('0x2d')]&&(_0x4a690e=_0x3acba6,_0x59d8da=this[_0x5963('0xc')],_0x4a690e[_0x5963('0xa')]===_0x59d8da['length']&&_0x4a690e[_0x5963('0x17')](_0x154f79=>_0x59d8da['includes'](_0x154f79))))return;var _0x4a690e,_0x59d8da;this[_0x5963('0x2d')]=!0x1,this[_0x5963('0x10')](_0x3acba6),this['setActiveAnnotation'](_0x3acba6[0x0]||null);}['bind'](this)),this[_0x5963('0x24')](_0x100134,_0x5963('0xb'),(_0x4c788f,{isAnnotationTracked:_0x20e1ce})=>{this[_0x5963('0x6')]&&_0x20e1ce(this['activeAnnotation'])&&(this[_0x5963('0x10')]([]),this[_0x5963('0x16')](null));}),this[_0x5963('0x24')](this['editor']['ui'][_0x5963('0x26')],_0x5963('0x25'),(_0x3cae37,_0x2968f0,_0x21c074)=>{_0x21c074||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2ebeb8,_0x5963('0x1b'),(_0x3dedec,_0x55e5c4)=>{this[_0x5963('0x18')](_0x55e5c4),_0x55e5c4===this['activeAnnotation']&&this[_0x5963('0x16')](null);}),this[_0x5963('0x24')](_0x1309d9,_0x5963('0x2'),(_0x26bd54,_0x2c852c,_0x3c2deb,_0x3eab87)=>{if(_0x3eab87&&this[_0x5963('0x38')](_0x3eab87),!_0x3c2deb||!_0x2ebeb8['getByView'](_0x3c2deb))return;const _0x4f5bd7=_0x2ebeb8['getByView'](_0x3c2deb);this[_0x5963('0x24')](_0x3c2deb,'change:height',()=>{_0x1309d9[_0x5963('0x4')]();}),this[_0x5963('0x24')](_0x3c2deb,'Esc',()=>{this[_0x5963('0x13')](_0x4f5bd7),this[_0x5963('0x3d')][_0x5963('0x36')][_0x5963('0x22')][_0x5963('0x23')]();}),this[_0x5963('0x6')]!==_0x4f5bd7&&this[_0x5963('0x16')](_0x4f5bd7);}),this[_0x5963('0x24')](this['editor']['ui'],'update',()=>{_0x1309d9['visibleView']&&(_0x2ebeb8[_0x5963('0x19')](_0x1309d9[_0x5963('0x20')])&&_0x1309d9[_0x5963('0x4')]());}),this[_0x5963('0x24')](this[_0x5963('0x3d')][_0x5963('0x36')][_0x5963('0x22')][_0x5963('0x7')],'mousedown',()=>{this['_forceRefresh']=!0x0,this[_0x5963('0x2e')][_0x5963('0x29')]();}),this[_0x5963('0x3d')]['editing'][_0x5963('0x22')][_0x5963('0x7')][_0x5963('0x15')]['editableElement']&&this[_0x5963('0x3d')][_0x5963('0x36')][_0x5963('0x22')][_0x5963('0x23')](),this[_0x5963('0x2a')]=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x1b446b(_0x5963('0xe'),this);this[_0x5963('0x16')](null);for(const _0x88c038 of this[_0x5963('0x3')])this[_0x5963('0x18')](_0x88c038);this[_0x5963('0x38')](),this[_0x5963('0x2a')]=!0x1,this[_0x5963('0x30')]=null;}[_0x5963('0x3b')](){this[_0x5963('0x2a')]&&this[_0x5963('0x1f')]();}[_0x5963('0x10')](_0x16b865){for(const _0x4c4230 of this[_0x5963('0xc')])_0x16b865[_0x5963('0x9')](_0x4c4230)||this[_0x5963('0x2e')][_0x5963('0x34')](_0x4c4230);for(const _0x5867fb of this[_0x5963('0x30')])_0x16b865[_0x5963('0x9')](_0x5867fb)||this[_0x5963('0x18')](_0x5867fb);if(this[_0x5963('0x3d')]['ui']['focusTracker'][_0x5963('0x2f')])for(const _0x1b285a of _0x16b865)this['_addAnnotationToBalloon'](_0x1b285a);this[_0x5963('0xc')]=_0x16b865;}['_addAnnotationToBalloon'](_0x577f89,_0x31538d){this['_manuallyClosed'][_0x5963('0x3a')](_0x577f89)||(this['_addedAnnotations']['has'](_0x577f89)||this['_balloon']['hasView'](_0x577f89[_0x5963('0x22')])||(this[_0x5963('0x3')][_0x5963('0x3c')](_0x577f89),this[_0x5963('0x35')][_0x5963('0x3c')]({'stackId':_0x577f89[_0x5963('0x22')]['id'],'view':_0x577f89['view'],'position':{'target':()=>_0x577f89[_0x5963('0x31')]||_0x577f89[_0x5963('0xf')]||document[_0x5963('0x2c')]()[_0x5963('0x3f')](0x0)}})),_0x31538d&&this['_balloon'][_0x5963('0x14')](_0x577f89[_0x5963('0x22')]['id']));}[_0x5963('0x18')](_0x2b401e){this[_0x5963('0x3')][_0x5963('0x3a')](_0x2b401e)&&this[_0x5963('0x35')][_0x5963('0x1d')](_0x2b401e[_0x5963('0x22')])&&(this[_0x5963('0x3')][_0x5963('0x34')](_0x2b401e),this['_balloon']['remove'](_0x2b401e[_0x5963('0x22')]));}[_0x5963('0x13')](_0x12816f){this[_0x5963('0x2e')][_0x5963('0x3c')](_0x12816f),this['_removeAnnotationFromBalloon'](_0x12816f);}}
23
+ const _0x3be0=['register','isFocused','getSelection','annotations','activeAnnotation','getByView','context','updatePosition','_addAnnotationToBalloon','includes','focus','_removeAnnotationFromBalloon','remove','getRangeAt','focusTracker','mousedown','inlineannotations-attach-already-attached','length','every','get','hasActive','document','bind','InlineAnnotations','_addedAnnotations','listenTo','Esc','selection','add','refresh','isActive','_selectedAnnotations','set','init','_forceRefresh','editing','change:height','delete','_manuallyClosed','inline','view','clear','target','has','keystrokes','update','isAttached','visibleView','hasView','_setSelectedAnnotations','detach','targetRect','EditorAnnotations','change:isFocused','plugins','editor','stopListening','setActiveAnnotation','_balloon','inlineannotations-not-allowed-with-context','getOrderedSelectedAnnotations','_closeAnnotation'];(function(_0xa1a2c4,_0x3be07b){const _0x475c4b=function(_0x5a57ea){while(--_0x5a57ea){_0xa1a2c4['push'](_0xa1a2c4['shift']());}};_0x475c4b(++_0x3be07b);}(_0x3be0,0x8e));const _0x475c=function(_0xa1a2c4,_0x3be07b){_0xa1a2c4=_0xa1a2c4-0x0;let _0x475c4b=_0x3be0[_0xa1a2c4];return _0x475c4b;};import{Plugin as _0x3db419}from'ckeditor5/src/core';import _0x305bf3 from'./annotationsuis';import _0x3f82b7 from'./editorannotations';import{ContextualBalloon as _0x505abe}from'ckeditor5/src/ui';import{MouseObserver as _0x318e02}from'ckeditor5/src/engine';import{CKEditorError as _0x32a249}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x3db419{static get['requires'](){return[_0x3f82b7,_0x505abe,_0x305bf3];}static get['pluginName'](){return _0x475c('0x5');}constructor(_0x55b6fb){super(_0x55b6fb),_0x55b6fb[_0x475c('0x11')][_0x475c('0x16')]['addObserver'](_0x318e02),this[_0x475c('0x1c')]=!0x1,this['set'](_0x475c('0x30'),null),this[_0x475c('0x2f')]=null,this[_0x475c('0x14')]=new Set(),this[_0x475c('0x28')]=_0x55b6fb[_0x475c('0x24')][_0x475c('0x1')](_0x505abe),this[_0x475c('0x6')]=new Set(),this[_0x475c('0xd')]=[],this[_0x475c('0x10')]=!0x1;}[_0x475c('0xf')](){const _0x4fbdeb=this[_0x475c('0x25')]['plugins'][_0x475c('0x1')](_0x305bf3);_0x4fbdeb['context']===this['editor']&&(_0x4fbdeb[_0x475c('0x2c')](_0x475c('0x15'),this),this[_0x475c('0x25')][_0x475c('0x1a')][_0x475c('0xe')](_0x475c('0x8'),(_0x24b38f,_0x313c52)=>{const _0x48abcb=this[_0x475c('0x28')];if(this[_0x475c('0x1c')]&&_0x48abcb[_0x475c('0x1d')]){const _0x4077f9=this[_0x475c('0x2f')][_0x475c('0x31')](_0x48abcb[_0x475c('0x1d')]);this[_0x475c('0x2b')](_0x4077f9),_0x313c52();}}));}['afterInit'](){const _0x1e7052=this['editor']['plugins'][_0x475c('0x1')](_0x305bf3);_0x1e7052['context']===this[_0x475c('0x25')]&&(_0x1e7052[_0x475c('0x2')]()||_0x1e7052['switchTo'](_0x475c('0x15')));}[_0x475c('0x27')](_0x153abf){_0x153abf!==this[_0x475c('0x30')]&&(this[_0x475c('0x30')]&&(this[_0x475c('0x30')][_0x475c('0xc')]=!0x1),_0x153abf&&this[_0x475c('0x25')]['ui'][_0x475c('0x3a')][_0x475c('0x2d')]&&(this[_0x475c('0x34')](_0x153abf,!0x0),_0x153abf[_0x475c('0xc')]=!0x0),_0x153abf||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x153abf);}['attach'](_0x4bb175){this[_0x475c('0x2f')]=_0x4bb175;const _0x808980=this[_0x475c('0x25')][_0x475c('0x24')][_0x475c('0x1')](_0x305bf3),_0x2f5fbc=this[_0x475c('0x28')];if(this[_0x475c('0x1c')])throw new _0x32a249(_0x475c('0x3c'),this);if(_0x808980[_0x475c('0x32')]!==this[_0x475c('0x25')])throw new _0x32a249(_0x475c('0x29'),this);const _0x27975d=this[_0x475c('0x25')][_0x475c('0x24')][_0x475c('0x1')](_0x475c('0x22'));this[_0x475c('0x7')](_0x27975d,_0x475c('0xb'),function(){const _0x3db019=_0x27975d[_0x475c('0x2a')]({'activeAnnotation':this[_0x475c('0x30')],'annotations':this[_0x475c('0x2f')]});if(!this[_0x475c('0x10')]&&(_0x5b7aa7=_0x3db019,_0xaf125c=this[_0x475c('0xd')],_0x5b7aa7[_0x475c('0x3d')]===_0xaf125c[_0x475c('0x3d')]&&_0x5b7aa7[_0x475c('0x0')](_0x2064de=>_0xaf125c['includes'](_0x2064de))))return;var _0x5b7aa7,_0xaf125c;this[_0x475c('0x10')]=!0x1,this[_0x475c('0x1f')](_0x3db019),this[_0x475c('0x27')](_0x3db019[0x0]||null);}[_0x475c('0x4')](this)),this[_0x475c('0x7')](_0x27975d,'blur',(_0x1e6180,{isAnnotationTracked:_0x3242ee})=>{this['activeAnnotation']&&_0x3242ee(this[_0x475c('0x30')])&&(this[_0x475c('0x1f')]([]),this['setActiveAnnotation'](null));}),this[_0x475c('0x7')](this[_0x475c('0x25')]['ui'][_0x475c('0x3a')],_0x475c('0x23'),(_0x31eed9,_0x41f230,_0xf27e71)=>{_0xf27e71||this[_0x475c('0x27')](null);}),this[_0x475c('0x7')](_0x4bb175,_0x475c('0x38'),(_0x35fd6f,_0x1298e3)=>{this[_0x475c('0x37')](_0x1298e3),_0x1298e3===this[_0x475c('0x30')]&&this[_0x475c('0x27')](null);}),this[_0x475c('0x7')](_0x2f5fbc,'change:visibleView',(_0x67d6bb,_0x6af5a,_0x4bfae7,_0x36d488)=>{if(_0x36d488&&this['stopListening'](_0x36d488),!_0x4bfae7||!_0x4bb175['getByView'](_0x4bfae7))return;const _0x22d9aa=_0x4bb175[_0x475c('0x31')](_0x4bfae7);this['listenTo'](_0x4bfae7,_0x475c('0x12'),()=>{_0x2f5fbc[_0x475c('0x33')]();}),this[_0x475c('0x7')](_0x4bfae7,_0x475c('0x8'),()=>{this[_0x475c('0x2b')](_0x22d9aa),this[_0x475c('0x25')]['editing'][_0x475c('0x16')]['focus']();}),this[_0x475c('0x30')]!==_0x22d9aa&&this[_0x475c('0x27')](_0x22d9aa);}),this[_0x475c('0x7')](this[_0x475c('0x25')]['ui'],_0x475c('0x1b'),()=>{_0x2f5fbc['visibleView']&&(_0x4bb175['getByView'](_0x2f5fbc['visibleView'])&&_0x2f5fbc[_0x475c('0x33')]());}),this[_0x475c('0x7')](this[_0x475c('0x25')]['editing'][_0x475c('0x16')][_0x475c('0x3')],_0x475c('0x3b'),()=>{this['_forceRefresh']=!0x0,this[_0x475c('0x14')][_0x475c('0x17')]();}),this[_0x475c('0x25')][_0x475c('0x11')]['view'][_0x475c('0x3')][_0x475c('0x9')]['editableElement']&&this[_0x475c('0x25')]['editing'][_0x475c('0x16')][_0x475c('0x36')](),this[_0x475c('0x1c')]=!0x0;}[_0x475c('0x20')](){if(!this[_0x475c('0x1c')])throw new _0x32a249('inlineannotations-detach-not-attached',this);this[_0x475c('0x27')](null);for(const _0x25cadf of this[_0x475c('0x6')])this[_0x475c('0x37')](_0x25cadf);this[_0x475c('0x26')](),this[_0x475c('0x1c')]=!0x1,this[_0x475c('0x2f')]=null;}['destroy'](){this[_0x475c('0x1c')]&&this[_0x475c('0x20')]();}[_0x475c('0x1f')](_0x42f2bf){for(const _0x2204ba of this[_0x475c('0xd')])_0x42f2bf[_0x475c('0x35')](_0x2204ba)||this['_manuallyClosed']['delete'](_0x2204ba);for(const _0x366cd7 of this[_0x475c('0x2f')])_0x42f2bf[_0x475c('0x35')](_0x366cd7)||this[_0x475c('0x37')](_0x366cd7);if(this['editor']['ui'][_0x475c('0x3a')][_0x475c('0x2d')])for(const _0xbce0d of _0x42f2bf)this['_addAnnotationToBalloon'](_0xbce0d);this['_selectedAnnotations']=_0x42f2bf;}[_0x475c('0x34')](_0x316e57,_0x4246dc){this[_0x475c('0x14')][_0x475c('0x19')](_0x316e57)||(this[_0x475c('0x6')]['has'](_0x316e57)||this[_0x475c('0x28')]['hasView'](_0x316e57[_0x475c('0x16')])||(this[_0x475c('0x6')]['add'](_0x316e57),this['_balloon'][_0x475c('0xa')]({'stackId':_0x316e57[_0x475c('0x16')]['id'],'view':_0x316e57['view'],'position':{'target':()=>_0x316e57[_0x475c('0x18')]||_0x316e57[_0x475c('0x21')]||document[_0x475c('0x2e')]()[_0x475c('0x39')](0x0)}})),_0x4246dc&&this[_0x475c('0x28')]['showStack'](_0x316e57[_0x475c('0x16')]['id']));}[_0x475c('0x37')](_0x4bc6e0){this['_addedAnnotations']['has'](_0x4bc6e0)&&this[_0x475c('0x28')][_0x475c('0x1e')](_0x4bc6e0['view'])&&(this['_addedAnnotations'][_0x475c('0x13')](_0x4bc6e0),this[_0x475c('0x28')][_0x475c('0x38')](_0x4bc6e0[_0x475c('0x16')]));}[_0x475c('0x2b')](_0x2362be){this['_manuallyClosed'][_0x475c('0xa')](_0x2362be),this[_0x475c('0x37')](_0x2362be);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x352c=['isDirty','has','register','southArrowNorth','change:container','pluginName','activeAnnotation','narrowsidebar-detach-not-attached','number','high','_manuallyClosedAnnotationViews','preventDefault','_showBalloon','includes','_refreshPositioning','rearrange','keyCode','locale','northArrowSouth','isAttached','type','_hideBalloon','_annotationToNarrowView','_integrateWithEditorAnnotations','attachToDom','off','listenTo','create','getOrderedSelectedAnnotations','target','element','add','narrowSidebar','bind','attach','contains','refresh','_setSelectedAnnotations','editors','_attachToContainer','northArrowSouthWest','setActiveAnnotation','stop','set:container','destroy','_attachListeners','getSidebarItemView','southArrowNorthWest','getByView','_updateBalloonPosition','resize','view','defaultPositions','context','preventClosingBalloon','cancel','clear','southArrowNorthEast','_destroyEditorAnnotationsIntegration','blur','values','bodyCollection','get','hasDomSelection','addEventListener','removeEventListener','stopPropagation','delete','Esc','_refreshPositioningDebounced','mousedown','pin','addAnnotation','stopListening','execute','focus','isVisible','_annotations','ready','_editorAnnotations','detach','refreshPositioning','first','remove','annotationType','_domEmitter','_selectedAnnotations','content','init','low','annotations','set','plugins','_detachListeners','change:height','northArrowSouthEast','unpin','balloonPanelView','EditorAnnotations','length'];(function(_0x1fc4bf,_0x352c46){const _0x2d6166=function(_0x377171){while(--_0x377171){_0x1fc4bf['push'](_0x1fc4bf['shift']());}};_0x2d6166(++_0x352c46);}(_0x352c,0xe9));const _0x2d61=function(_0x1fc4bf,_0x352c46){_0x1fc4bf=_0x1fc4bf-0x0;let _0x2d6166=_0x352c[_0x1fc4bf];return _0x2d6166;};import{ContextPlugin as _0x365a9a}from'ckeditor5/src/core';import _0x4b8b54 from'./annotationsuis';import _0x2897e0 from'./sidebar';import _0x3adcbc from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x30c455,BodyCollection as _0x11aad2}from'ckeditor5/src/ui';import{CKEditorError as _0x591ebd,DomEmitterMixin as _0x4d3b5f,keyCodes as _0x1847d1,Collection as _0x73316c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x406c9e}from'lodash-es';export default class s extends _0x365a9a{static get['requires'](){return[_0x2897e0,_0x4b8b54];}static get[_0x2d61('0x48')](){return'NarrowSidebar';}constructor(_0x1c6753){super(_0x1c6753),this[_0x2d61('0x56')]=!0x1,this[_0x2d61('0x4d')]=new Set(),this['_domEmitter']=Object[_0x2d61('0x5e')](_0x4d3b5f),this[_0x2d61('0x59')]=new Map(),this[_0x2d61('0x3a')](_0x2d61('0x49'),null),this[_0x2d61('0x39')]=null,this[_0x2d61('0x35')]=[],this['_editorAnnotations']=new _0x73316c(),this[_0x2d61('0x24')]=_0x406c9e(()=>{this[_0x2d61('0x51')]();},0xfa,{'leading':!0x1});}[_0x2d61('0x37')](){this['context']['plugins'][_0x2d61('0x1d')](_0x4b8b54)[_0x2d61('0x45')](_0x2d61('0x63'),this),this['bodyCollection']=new _0x11aad2(this[_0x2d61('0x14')][_0x2d61('0x54')]),this[_0x2d61('0x40')]=new _0x30c455(this[_0x2d61('0x14')][_0x2d61('0x54')]),this[_0x2d61('0x1c')][_0x2d61('0x5b')](),this[_0x2d61('0x1c')][_0x2d61('0x62')](this[_0x2d61('0x40')]);}[_0x2d61('0x1')](_0x373fcc){this[_0x2d61('0x39')]=_0x373fcc;const _0x2ac816=this[_0x2d61('0x14')]['plugins'][_0x2d61('0x1d')](_0x2897e0),_0x3cacc5=this[_0x2d61('0x40')];if(_0x2ac816[_0x2d61('0x2c')]=_0x373fcc,this[_0x2d61('0x56')])throw new _0x591ebd('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2ac816,_0x2d61('0xa'),()=>{this[_0x2d61('0x2f')](),this[_0x2d61('0x5d')](_0x2ac816,_0x2d61('0x47'),_0x40d343=>{_0x40d343[_0x2d61('0x5c')](),this[_0x2d61('0x1')](_0x373fcc);});}),_0x2ac816[_0x2d61('0x6')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x59663f=_0x8e93a6=>{const _0x17202d=new _0x3adcbc(this[_0x2d61('0x14')][_0x2d61('0x54')]);_0x2ac816[_0x2d61('0x27')](_0x8e93a6,_0x17202d),this['_annotationToNarrowView']['set'](_0x8e93a6,_0x17202d),_0x17202d[_0x2d61('0x0')](_0x2d61('0x43'),_0x2d61('0x33'),_0x2d61('0x4b'))['to'](_0x8e93a6[_0x2d61('0x12')],_0x2d61('0x43'),_0x2d61('0x57'),_0x2d61('0x42')),_0x17202d['on'](_0x2d61('0x29'),()=>{this[_0x2d61('0x4d')]['clear'](),_0x3cacc5['content'][_0x2d61('0x31')]!==_0x8e93a6[_0x2d61('0x12')]?(this['_showBalloon'](_0x8e93a6),_0x8e93a6['view'][_0x2d61('0x61')][_0x2d61('0x2a')](),this['setActiveAnnotation'](_0x8e93a6)):this[_0x2d61('0x8')](null);});};for(const _0x11ac4f of _0x373fcc)_0x59663f(_0x11ac4f);this[_0x2d61('0x5d')](_0x373fcc,_0x2d61('0x62'),(_0x1b83e7,_0x518c37)=>{_0x59663f(_0x518c37);}),this[_0x2d61('0x5d')](_0x373fcc,_0x2d61('0x32'),(_0x5cd06c,_0x98c7e9,_0x4e303e)=>{this[_0x2d61('0x59')][_0x2d61('0x1d')](_0x98c7e9)['destroy'](),this['_annotationToNarrowView'][_0x2d61('0x22')](_0x98c7e9),_0x2ac816[_0x2d61('0x52')]({'removedAnnotation':_0x98c7e9,'previousAnnotation':_0x373fcc[_0x2d61('0x1d')](_0x4e303e-0x1),'nextAnnotation':_0x373fcc['get'](_0x4e303e+0x1)}),_0x98c7e9===this['activeAnnotation']&&this[_0x2d61('0x8')](null);},{'priority':_0x2d61('0x38')}),this[_0x2d61('0x5d')](_0x373fcc,'focus',(_0x324222,_0x3da087)=>{this[_0x2d61('0x8')](_0x3da087);}),this[_0x2d61('0x5d')](_0x373fcc,'blur',()=>{this[_0x2d61('0x8')](null);}),this[_0x2d61('0x34')][_0x2d61('0x5d')](document,'keydown',(_0x25da96,_0x4ca1a3)=>{_0x4ca1a3[_0x2d61('0x53')]===_0x1847d1['esc']&&_0x3cacc5[_0x2d61('0x2b')]&&(this[_0x2d61('0x4d')][_0x2d61('0x62')](_0x3cacc5['content'][_0x2d61('0x31')]),this[_0x2d61('0x58')](),_0x4ca1a3[_0x2d61('0x21')](),_0x4ca1a3[_0x2d61('0x4e')]());}),this[_0x2d61('0x34')][_0x2d61('0x5d')](document,'mousedown',(_0x45f88c,_0xb2e948)=>{const _0x31c616=_0xb2e948['target'];_0x3cacc5[_0x2d61('0x2b')]&&_0x3cacc5[_0x2d61('0x61')][_0x2d61('0x2')](_0x31c616)||_0x2ac816['view'][_0x2d61('0x61')][_0x2d61('0x2')](_0x31c616)||_0x45f88c[_0x2d61('0x15')]||(this[_0x2d61('0x4d')][_0x2d61('0x17')](),this[_0x2d61('0x58')](),this[_0x2d61('0x8')](null));});const _0x18b72b=this[_0x2d61('0x14')][_0x2d61('0x5')]?this[_0x2d61('0x14')][_0x2d61('0x5')]:new _0x73316c([this[_0x2d61('0x14')]]);for(const _0x5681fc of _0x18b72b)this[_0x2d61('0x5a')](_0x5681fc);this[_0x2d61('0x5d')](_0x18b72b,_0x2d61('0x62'),(_0x3c0f1f,_0x4c2e38)=>{this[_0x2d61('0x5d')](_0x4c2e38,_0x2d61('0x2d'),()=>{this[_0x2d61('0x5a')](_0x4c2e38);});}),this[_0x2d61('0x5d')](_0x18b72b,_0x2d61('0x32'),(_0x46f692,_0x254da3)=>{_0x254da3[_0x2d61('0x3b')][_0x2d61('0x44')](_0x2d61('0x41'))&&this[_0x2d61('0x19')](_0x254da3[_0x2d61('0x3b')][_0x2d61('0x1d')]('EditorAnnotations'));}),window[_0x2d61('0x1f')](_0x2d61('0x11'),this[_0x2d61('0x24')]),this[_0x2d61('0x51')]();}[_0x2d61('0x8')](_0x565617){if(_0x565617===this[_0x2d61('0x49')])return;const _0x1c41a7=this[_0x2d61('0x14')][_0x2d61('0x3b')][_0x2d61('0x1d')]('Sidebar');if(_0x1c41a7[_0x2d61('0x3')]({'blurredAnnotation':this[_0x2d61('0x49')],'activatedAnnotation':_0x565617,'disableAnimationOnActivatedAnnotation':!0x0}),_0x565617)_0x1c41a7[_0x2d61('0xd')](_0x565617)?this[_0x2d61('0x4f')](_0x565617):this['_hideBalloon']();else this[_0x2d61('0x58')]();this[_0x2d61('0x49')]=_0x565617;}[_0x2d61('0x2f')](){if(!this['isAttached'])throw new _0x591ebd(_0x2d61('0x4a'),this);this['setActiveAnnotation'](null);const _0x5b9eab=this[_0x2d61('0x14')]['plugins'][_0x2d61('0x1d')]('Sidebar');this[_0x2d61('0x58')](),Array['from'](this[_0x2d61('0x59')][_0x2d61('0x1b')](),_0x574870=>_0x574870[_0x2d61('0xb')]()),this[_0x2d61('0x59')]['clear'](),_0x5b9eab['_detachFromContainer'](this[_0x2d61('0x39')]),this[_0x2d61('0x28')](),this['_domEmitter'][_0x2d61('0x28')](),this[_0x2d61('0x28')](this[_0x2d61('0x14')][_0x2d61('0x5')]);for(const _0x4f3af2 of Array['from'](this[_0x2d61('0x2e')]))this[_0x2d61('0x19')](_0x4f3af2);window[_0x2d61('0x20')](_0x2d61('0x11'),this[_0x2d61('0x24')]),this[_0x2d61('0x24')][_0x2d61('0x16')](),this[_0x2d61('0x35')]=[],this[_0x2d61('0x56')]=!0x1,this[_0x2d61('0x39')]=null;}[_0x2d61('0xb')](){this[_0x2d61('0x56')]&&this[_0x2d61('0x2f')](),this[_0x2d61('0x1c')]['detachFromDom']();}[_0x2d61('0x5a')](_0xf4a16f){const _0x510ac7=_0xf4a16f[_0x2d61('0x3b')]['get'](_0x2d61('0x41')),_0x8fb362=this[_0x2d61('0x14')]['plugins'][_0x2d61('0x1d')](_0x2897e0),_0x49199e=this[_0x2d61('0x39')],_0x27c035=this['balloonPanelView'],_0x466b7e=()=>{const _0x5ca658=_0x510ac7[_0x2d61('0x5f')]({'activeAnnotation':this[_0x2d61('0x49')],'annotations':this[_0x2d61('0x39')]});this[_0x2d61('0x4')](_0x5ca658),this[_0x2d61('0x8')](_0x5ca658[0x0]||null);};this['listenTo'](_0x510ac7,'refresh',_0x466b7e),this[_0x2d61('0x5d')](_0x510ac7,'blur',(_0x2248b4,{isAnnotationTracked:_0x88e88e})=>{this['activeAnnotation']&&_0x88e88e(this[_0x2d61('0x49')])&&(this[_0x2d61('0x4')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x510ac7,'uiUpdate',()=>{this[_0x2d61('0x24')]();}),this[_0x2d61('0x5d')](_0x49199e,_0x2d61('0x1a'),_0x38f2fc=>{_0x510ac7[_0x2d61('0x1e')]()&&_0x38f2fc[_0x2d61('0x9')]();},{'priority':'high'}),this[_0x2d61('0x34')][_0x2d61('0x5d')](document,_0x2d61('0x25'),(_0x706538,_0x19bccd)=>{const _0x57ec04=_0x19bccd[_0x2d61('0x60')];_0x27c035[_0x2d61('0x2b')]&&_0x27c035['element'][_0x2d61('0x2')](_0x57ec04)||_0x8fb362[_0x2d61('0x12')][_0x2d61('0x61')][_0x2d61('0x2')](_0x57ec04)||this[_0x2d61('0x49')]&&_0x510ac7[_0x2d61('0x1e')]()&&(_0x466b7e(),_0x706538[_0x2d61('0x15')]=!0x0);},{'priority':_0x2d61('0x4c')}),this[_0x2d61('0x2e')][_0x2d61('0x62')](_0x510ac7);}[_0x2d61('0x19')](_0x3d1c00){_0x3d1c00&&(this[_0x2d61('0x28')](_0x3d1c00),this[_0x2d61('0x2e')][_0x2d61('0x32')](_0x3d1c00));}[_0x2d61('0x4')](_0x4ccc4c){for(const _0x455fec of this[_0x2d61('0x35')])_0x4ccc4c[_0x2d61('0x50')](_0x455fec)||this[_0x2d61('0x4d')]['delete'](_0x455fec[_0x2d61('0x12')]);this[_0x2d61('0x35')]=_0x4ccc4c;}[_0x2d61('0x51')](){const _0x215cda=this[_0x2d61('0x40')];this[_0x2d61('0x39')][_0x2d61('0x30')](),_0x215cda[_0x2d61('0x2b')]&&this[_0x2d61('0x10')]();}[_0x2d61('0x4f')](_0x34fe14){if(this[_0x2d61('0x4d')]['has'](_0x34fe14[_0x2d61('0x12')]))return;const _0x1c6355=this['balloonPanelView']['content'][_0x2d61('0x31')];_0x1c6355!==_0x34fe14[_0x2d61('0x12')]?(_0x1c6355&&this[_0x2d61('0x3c')](_0x1c6355),this[_0x2d61('0xc')](_0x34fe14[_0x2d61('0x12')]),this[_0x2d61('0x40')]['content']['clear'](),this[_0x2d61('0x40')][_0x2d61('0x36')][_0x2d61('0x62')](_0x34fe14[_0x2d61('0x12')]),this['_updateBalloonPosition']()):this[_0x2d61('0x10')]();}[_0x2d61('0x10')](){const _0x16f9fa=this['balloonPanelView'][_0x2d61('0x36')][_0x2d61('0x31')],_0x264b13=this[_0x2d61('0x39')][_0x2d61('0xf')](_0x16f9fa);if(!this['_annotationToNarrowView'][_0x2d61('0x44')](_0x264b13))return;const _0xa37d5b=this['_annotationToNarrowView'][_0x2d61('0x1d')](_0x264b13)[_0x2d61('0x61')],_0x336dc4=function(){const _0xca5daa=_0x30c455[_0x2d61('0x13')];return[_0xca5daa[_0x2d61('0x18')],_0xca5daa[_0x2d61('0x3e')],_0xca5daa[_0x2d61('0x46')],_0xca5daa[_0x2d61('0x55')],_0xca5daa[_0x2d61('0xe')],_0xca5daa[_0x2d61('0x7')]];}();this[_0x2d61('0x40')][_0x2d61('0x26')]({'target':_0xa37d5b,'positions':_0x336dc4});}[_0x2d61('0x58')](){const _0x3f1367=this['balloonPanelView'],_0x44a32a=_0x3f1367[_0x2d61('0x36')][_0x2d61('0x31')];_0x44a32a&&(this[_0x2d61('0x3c')](_0x44a32a),_0x3f1367[_0x2d61('0x3f')](),_0x3f1367['content']['clear']());}[_0x2d61('0xc')](_0x2b6f0c){this['listenTo'](_0x2b6f0c,_0x2d61('0x3d'),()=>this[_0x2d61('0x10')]()),this[_0x2d61('0x5d')](_0x2b6f0c,_0x2d61('0x23'),(_0x48ddc1,_0x3bb67a)=>{this[_0x2d61('0x4d')][_0x2d61('0x62')](_0x2b6f0c),this['_hideBalloon'](),_0x3bb67a();});}[_0x2d61('0x3c')](_0xfd118){this[_0x2d61('0x28')](_0xfd118);}}
23
+ const _0x4910=['attach','_hideBalloon','_refreshPositioningDebounced','_showBalloon','_selectedAnnotations','isDirty','southArrowNorthWest','context','view','rearrange','plugins','cancel','element','southArrowNorthEast','clear','delete','_annotations','keydown','getByView','_integrateWithEditorAnnotations','_editorAnnotations','focus','contains','preventClosingBalloon','listenTo','_destroyEditorAnnotationsIntegration','execute','includes','off','isVisible','bind','isAttached','set','first','NarrowSidebar','unpin','ready','EditorAnnotations','refreshPositioning','hasDomSelection','locale','annotations','content','setActiveAnnotation','_attachToContainer','target','attachToDom','uiUpdate','northArrowSouth','resize','annotationType','refresh','stopListening','create','Sidebar','bodyCollection','remove','_setSelectedAnnotations','length','_manuallyClosedAnnotationViews','register','_detachListeners','destroy','blur','defaultPositions','init','_updateBalloonPosition','activeAnnotation','mousedown','stop','add','detach','_annotationToNarrowView','_refreshPositioning','balloonPanelView','narrowsidebar-detach-not-attached','esc','addEventListener','getSidebarItemView','type','from','ck-sidebar--narrow','change:container','high','editors','requires','get','_domEmitter','preventDefault'];(function(_0x425f7f,_0x491060){const _0x38bd04=function(_0x2c048a){while(--_0x2c048a){_0x425f7f['push'](_0x425f7f['shift']());}};_0x38bd04(++_0x491060);}(_0x4910,0x17b));const _0x38bd=function(_0x425f7f,_0x491060){_0x425f7f=_0x425f7f-0x0;let _0x38bd04=_0x4910[_0x425f7f];return _0x38bd04;};import{ContextPlugin as _0x18e68e}from'ckeditor5/src/core';import _0x155c57 from'./annotationsuis';import _0x443cbb from'./sidebar';import _0x38f6c7 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3bd854,BodyCollection as _0x57ec29}from'ckeditor5/src/ui';import{CKEditorError as _0x503497,DomEmitterMixin as _0x28d884,keyCodes as _0xaa88fb,Collection as _0x378c4a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3b42c7}from'lodash-es';export default class s extends _0x18e68e{static get[_0x38bd('0x3e')](){return[_0x443cbb,_0x155c57];}static get['pluginName'](){return _0x38bd('0xb');}constructor(_0x2ef356){super(_0x2ef356),this['isAttached']=!0x1,this[_0x38bd('0x24')]=new Set(),this['_domEmitter']=Object[_0x38bd('0x1e')](_0x28d884),this[_0x38bd('0x31')]=new Map(),this[_0x38bd('0x9')](_0x38bd('0x2c'),null),this['annotations']=null,this[_0x38bd('0x46')]=[],this[_0x38bd('0x56')]=new _0x378c4a(),this[_0x38bd('0x44')]=_0x3b42c7(()=>{this[_0x38bd('0x32')]();},0xfa,{'leading':!0x1});}[_0x38bd('0x2a')](){this['context'][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x155c57)[_0x38bd('0x25')]('narrowSidebar',this),this['bodyCollection']=new _0x57ec29(this[_0x38bd('0x49')][_0x38bd('0x11')]),this[_0x38bd('0x33')]=new _0x3bd854(this[_0x38bd('0x49')][_0x38bd('0x11')]),this['bodyCollection'][_0x38bd('0x17')](),this[_0x38bd('0x20')][_0x38bd('0x2f')](this[_0x38bd('0x33')]);}[_0x38bd('0x42')](_0x19974a){this[_0x38bd('0x12')]=_0x19974a;const _0x1494a4=this[_0x38bd('0x49')][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x443cbb),_0x49f341=this[_0x38bd('0x33')];if(_0x1494a4[_0x38bd('0x52')]=_0x19974a,this['isAttached'])throw new _0x503497('narrowsidebar-attach-already-attached',this);this[_0x38bd('0x8')]=!0x0,this[_0x38bd('0x1')](_0x1494a4,'set:container',()=>{this[_0x38bd('0x30')](),this[_0x38bd('0x1')](_0x1494a4,_0x38bd('0x3b'),_0x1a26eb=>{_0x1a26eb[_0x38bd('0x5')](),this[_0x38bd('0x42')](_0x19974a);});}),_0x1494a4[_0x38bd('0x15')]({'viewClass':_0x38bd('0x3a'),'spaceBetweenItems':0x5});const _0x4782d2=_0x513144=>{const _0x34ae98=new _0x38f6c7(this[_0x38bd('0x49')][_0x38bd('0x11')]);_0x1494a4['addAnnotation'](_0x513144,_0x34ae98),this[_0x38bd('0x31')][_0x38bd('0x9')](_0x513144,_0x34ae98),_0x34ae98[_0x38bd('0x7')]('isDirty',_0x38bd('0x1b'),'number')['to'](_0x513144['view'],_0x38bd('0x47'),_0x38bd('0x38'),_0x38bd('0x23')),_0x34ae98['on'](_0x38bd('0x3'),()=>{this['_manuallyClosedAnnotationViews'][_0x38bd('0x50')](),_0x49f341[_0x38bd('0x13')][_0x38bd('0xa')]!==_0x513144['view']?(this[_0x38bd('0x45')](_0x513144),_0x513144[_0x38bd('0x4a')][_0x38bd('0x4e')][_0x38bd('0x57')](),this[_0x38bd('0x14')](_0x513144)):this[_0x38bd('0x14')](null);});};for(const _0x49fb9e of _0x19974a)_0x4782d2(_0x49fb9e);this[_0x38bd('0x1')](_0x19974a,_0x38bd('0x2f'),(_0x5b2f29,_0x4b8216)=>{_0x4782d2(_0x4b8216);}),this['listenTo'](_0x19974a,_0x38bd('0x21'),(_0x49e10a,_0x222c77,_0xdae87a)=>{this[_0x38bd('0x31')][_0x38bd('0x3f')](_0x222c77)['destroy'](),this['_annotationToNarrowView'][_0x38bd('0x51')](_0x222c77),_0x1494a4[_0x38bd('0x4b')]({'removedAnnotation':_0x222c77,'previousAnnotation':_0x19974a[_0x38bd('0x3f')](_0xdae87a-0x1),'nextAnnotation':_0x19974a[_0x38bd('0x3f')](_0xdae87a+0x1)}),_0x222c77===this[_0x38bd('0x2c')]&&this[_0x38bd('0x14')](null);},{'priority':'low'}),this['listenTo'](_0x19974a,'focus',(_0x4b3a66,_0x4a7d33)=>{this[_0x38bd('0x14')](_0x4a7d33);}),this['listenTo'](_0x19974a,_0x38bd('0x28'),()=>{this[_0x38bd('0x14')](null);}),this[_0x38bd('0x40')][_0x38bd('0x1')](document,_0x38bd('0x53'),(_0x2fa28c,_0x493254)=>{_0x493254['keyCode']===_0xaa88fb[_0x38bd('0x35')]&&_0x49f341[_0x38bd('0x6')]&&(this[_0x38bd('0x24')]['add'](_0x49f341[_0x38bd('0x13')][_0x38bd('0xa')]),this[_0x38bd('0x43')](),_0x493254['stopPropagation'](),_0x493254[_0x38bd('0x41')]());}),this[_0x38bd('0x40')]['listenTo'](document,'mousedown',(_0x401295,_0x1323e0)=>{const _0x19001c=_0x1323e0['target'];_0x49f341[_0x38bd('0x6')]&&_0x49f341[_0x38bd('0x4e')][_0x38bd('0x58')](_0x19001c)||_0x1494a4[_0x38bd('0x4a')][_0x38bd('0x4e')][_0x38bd('0x58')](_0x19001c)||_0x401295[_0x38bd('0x0')]||(this[_0x38bd('0x24')][_0x38bd('0x50')](),this[_0x38bd('0x43')](),this[_0x38bd('0x14')](null));});const _0x1590cd=this['context'][_0x38bd('0x3d')]?this[_0x38bd('0x49')][_0x38bd('0x3d')]:new _0x378c4a([this[_0x38bd('0x49')]]);for(const _0x515a6c of _0x1590cd)this[_0x38bd('0x55')](_0x515a6c);this['listenTo'](_0x1590cd,'add',(_0x245892,_0x58a4eb)=>{this['listenTo'](_0x58a4eb,_0x38bd('0xd'),()=>{this[_0x38bd('0x55')](_0x58a4eb);});}),this[_0x38bd('0x1')](_0x1590cd,_0x38bd('0x21'),(_0x431e03,_0x5550a7)=>{_0x5550a7[_0x38bd('0x4c')]['has'](_0x38bd('0xe'))&&this[_0x38bd('0x2')](_0x5550a7[_0x38bd('0x4c')]['get'](_0x38bd('0xe')));}),window[_0x38bd('0x36')](_0x38bd('0x1a'),this[_0x38bd('0x44')]),this[_0x38bd('0x32')]();}[_0x38bd('0x14')](_0x3343e4){if(_0x3343e4===this['activeAnnotation'])return;const _0x5c120c=this['context'][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x38bd('0x1f'));if(_0x5c120c[_0x38bd('0x1c')]({'blurredAnnotation':this[_0x38bd('0x2c')],'activatedAnnotation':_0x3343e4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x3343e4)_0x5c120c[_0x38bd('0x37')](_0x3343e4)?this['_showBalloon'](_0x3343e4):this[_0x38bd('0x43')]();else this[_0x38bd('0x43')]();this[_0x38bd('0x2c')]=_0x3343e4;}[_0x38bd('0x30')](){if(!this['isAttached'])throw new _0x503497(_0x38bd('0x34'),this);this['setActiveAnnotation'](null);const _0x4a61df=this[_0x38bd('0x49')]['plugins'][_0x38bd('0x3f')]('Sidebar');this['_hideBalloon'](),Array[_0x38bd('0x39')](this[_0x38bd('0x31')]['values'](),_0x917440=>_0x917440[_0x38bd('0x27')]()),this[_0x38bd('0x31')][_0x38bd('0x50')](),_0x4a61df['_detachFromContainer'](this[_0x38bd('0x12')]),this[_0x38bd('0x1d')](),this['_domEmitter'][_0x38bd('0x1d')](),this[_0x38bd('0x1d')](this[_0x38bd('0x49')][_0x38bd('0x3d')]);for(const _0x180dce of Array[_0x38bd('0x39')](this[_0x38bd('0x56')]))this['_destroyEditorAnnotationsIntegration'](_0x180dce);window['removeEventListener'](_0x38bd('0x1a'),this[_0x38bd('0x44')]),this[_0x38bd('0x44')][_0x38bd('0x4d')](),this[_0x38bd('0x46')]=[],this[_0x38bd('0x8')]=!0x1,this[_0x38bd('0x12')]=null;}['destroy'](){this[_0x38bd('0x8')]&&this['detach'](),this[_0x38bd('0x20')]['detachFromDom']();}[_0x38bd('0x55')](_0x1ad2ef){const _0x898b76=_0x1ad2ef[_0x38bd('0x4c')][_0x38bd('0x3f')](_0x38bd('0xe')),_0x632a04=this[_0x38bd('0x49')][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x443cbb),_0x976898=this['annotations'],_0x13f2bc=this[_0x38bd('0x33')],_0x31e00a=()=>{const _0x26c009=_0x898b76['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x38bd('0x2c')],'annotations':this['annotations']});this[_0x38bd('0x22')](_0x26c009),this[_0x38bd('0x14')](_0x26c009[0x0]||null);};this[_0x38bd('0x1')](_0x898b76,_0x38bd('0x1c'),_0x31e00a),this['listenTo'](_0x898b76,_0x38bd('0x28'),(_0x17670d,{isAnnotationTracked:_0x3639b3})=>{this[_0x38bd('0x2c')]&&_0x3639b3(this[_0x38bd('0x2c')])&&(this[_0x38bd('0x22')]([]),this[_0x38bd('0x14')](null));}),this[_0x38bd('0x1')](_0x898b76,_0x38bd('0x18'),()=>{this[_0x38bd('0x44')]();}),this[_0x38bd('0x1')](_0x976898,_0x38bd('0x28'),_0x4230e1=>{_0x898b76[_0x38bd('0x10')]()&&_0x4230e1[_0x38bd('0x2e')]();},{'priority':'high'}),this[_0x38bd('0x40')][_0x38bd('0x1')](document,_0x38bd('0x2d'),(_0x428613,_0x1eec42)=>{const _0x20ec9b=_0x1eec42[_0x38bd('0x16')];_0x13f2bc[_0x38bd('0x6')]&&_0x13f2bc[_0x38bd('0x4e')][_0x38bd('0x58')](_0x20ec9b)||_0x632a04['view'][_0x38bd('0x4e')][_0x38bd('0x58')](_0x20ec9b)||this[_0x38bd('0x2c')]&&_0x898b76[_0x38bd('0x10')]()&&(_0x31e00a(),_0x428613[_0x38bd('0x0')]=!0x0);},{'priority':_0x38bd('0x3c')}),this['_editorAnnotations']['add'](_0x898b76);}[_0x38bd('0x2')](_0x5b08cb){_0x5b08cb&&(this[_0x38bd('0x1d')](_0x5b08cb),this[_0x38bd('0x56')][_0x38bd('0x21')](_0x5b08cb));}[_0x38bd('0x22')](_0x1acb22){for(const _0x46f781 of this[_0x38bd('0x46')])_0x1acb22[_0x38bd('0x4')](_0x46f781)||this['_manuallyClosedAnnotationViews'][_0x38bd('0x51')](_0x46f781[_0x38bd('0x4a')]);this[_0x38bd('0x46')]=_0x1acb22;}[_0x38bd('0x32')](){const _0x411c2d=this[_0x38bd('0x33')];this['annotations'][_0x38bd('0xf')](),_0x411c2d[_0x38bd('0x6')]&&this[_0x38bd('0x2b')]();}['_showBalloon'](_0x51c89b){if(this[_0x38bd('0x24')]['has'](_0x51c89b['view']))return;const _0x115505=this[_0x38bd('0x33')]['content'][_0x38bd('0xa')];_0x115505!==_0x51c89b[_0x38bd('0x4a')]?(_0x115505&&this[_0x38bd('0x26')](_0x115505),this['_attachListeners'](_0x51c89b['view']),this['balloonPanelView'][_0x38bd('0x13')][_0x38bd('0x50')](),this[_0x38bd('0x33')][_0x38bd('0x13')][_0x38bd('0x2f')](_0x51c89b[_0x38bd('0x4a')]),this[_0x38bd('0x2b')]()):this[_0x38bd('0x2b')]();}[_0x38bd('0x2b')](){const _0x1cc2aa=this['balloonPanelView'][_0x38bd('0x13')]['first'],_0x566e85=this[_0x38bd('0x12')][_0x38bd('0x54')](_0x1cc2aa);if(!this[_0x38bd('0x31')]['has'](_0x566e85))return;const _0x54c1e0=this['_annotationToNarrowView'][_0x38bd('0x3f')](_0x566e85)['element'],_0x1931d8=function(){const _0x7dcc44=_0x3bd854[_0x38bd('0x29')];return[_0x7dcc44[_0x38bd('0x4f')],_0x7dcc44['northArrowSouthEast'],_0x7dcc44['southArrowNorth'],_0x7dcc44[_0x38bd('0x19')],_0x7dcc44[_0x38bd('0x48')],_0x7dcc44['northArrowSouthWest']];}();this[_0x38bd('0x33')]['pin']({'target':_0x54c1e0,'positions':_0x1931d8});}['_hideBalloon'](){const _0x4794c3=this[_0x38bd('0x33')],_0x34e926=_0x4794c3['content']['first'];_0x34e926&&(this[_0x38bd('0x26')](_0x34e926),_0x4794c3[_0x38bd('0xc')](),_0x4794c3[_0x38bd('0x13')][_0x38bd('0x50')]());}['_attachListeners'](_0x3df0ec){this[_0x38bd('0x1')](_0x3df0ec,'change:height',()=>this[_0x38bd('0x2b')]()),this[_0x38bd('0x1')](_0x3df0ec,'Esc',(_0x9652d1,_0x1d0e1a)=>{this['_manuallyClosedAnnotationViews'][_0x38bd('0x2f')](_0x3df0ec),this[_0x38bd('0x43')](),_0x1d0e1a();});}['_detachListeners'](_0x131d85){this[_0x38bd('0x1d')](_0x131d85);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x404c=['change:targetRect','config','sidebar.preventScrollOutOfView','_destroySidebarItemView','_createSidebarView','_annotations','target','getIndex','_alignAfterItem','_spaceBetweenItems','minHeight','change:_lastItem','list','element','_lastItem','context','_getItemAfter','_setItemTop','targetRect','pluginName','updateHeight','setContainer','_sidebarItemViewToAnnotation','object','container','_recalculate','nodeType','view','class','_targetTop','get','isAnimationDisabled','_alignForTopChange','_updateLastItem','init','Sidebar','set','_activeAnnotation','refresh','content','isActive','push','sidebar.container','_recalculateBuffer','define','destroy','addAnnotation','_annotationToSidebarItemView','change:top','_detachFromContainer','bind','_alignToTargetRect','top','bottom','_getItemBefore','max','listenTo','length','getSidebarItemView','_alignForBottomChange','_alignBeforeItem','unbind','clear','render','stopListening','height','add','locale','remove','_getTargetTop','sidebar-setcontainer-invalid-element','_getMaxAvailableTop'];(function(_0x5bdec3,_0x404cc9){const _0x2d04a0=function(_0x4dbf72){while(--_0x4dbf72){_0x5bdec3['push'](_0x5bdec3['shift']());}};_0x2d04a0(++_0x404cc9);}(_0x404c,0x1e6));const _0x2d04=function(_0x5bdec3,_0x404cc9){_0x5bdec3=_0x5bdec3-0x0;let _0x2d04a0=_0x404c[_0x5bdec3];return _0x2d04a0;};import{ContextPlugin as _0xd17d9a}from'ckeditor5/src/core';import _0x253c4a from'./view/sidebarview';import _0x482ec3 from'./view/sidebaritemview';import{Rect as _0x595528,CKEditorError as _0x105609}from'ckeditor5/src/utils';export default class b extends _0xd17d9a{static get[_0x2d04('0x25')](){return _0x2d04('0x35');}constructor(_0x397084){super(_0x397084),this[_0x2d04('0x36')]('_lastItem'),this[_0x2d04('0x2d')]=this[_0x2d04('0x16')](),this['set']('container',null),this[_0x2d04('0x1b')]=0x19,this[_0x2d04('0x28')]=new Map(),this[_0x2d04('0x41')]=new Map(),this[_0x2d04('0x21')][_0x2d04('0x13')][_0x2d04('0x3e')]('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this[_0x2d04('0x37')]=null,this['_recalculateBuffer']=[];}[_0x2d04('0x34')](){const _0x2d22ee=this['context'][_0x2d04('0x13')][_0x2d04('0x30')](_0x2d04('0x3c'));_0x2d22ee&&this[_0x2d04('0x27')](_0x2d22ee);}[_0x2d04('0x27')](_0x4a7403){if(!p(_0x4a7403))throw new _0x105609(_0x2d04('0x10'));this[_0x2d04('0x2a')]=_0x4a7403;}['_attachToContainer']({viewClass:_0x3dbac7='',spaceBetweenItems:_0xd8f059=0x19}={}){if(!p(this['container']))throw new _0x105609('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this[_0x2d04('0x2d')]['element']),this[_0x2d04('0x2d')]['class']=_0x3dbac7,this[_0x2d04('0x1b')]=_0xd8f059;}['rearrange']({removedAnnotation:_0x212d54,previousAnnotation:_0x2de394,nextAnnotation:_0x3fa33e}){const _0x41c9de=this['getSidebarItemView'](_0x212d54);this[_0x2d04('0x2d')]['list'][_0x2d04('0xe')](_0x41c9de),this[_0x2d04('0x15')](_0x212d54),_0x2de394&&this[_0x2d04('0x45')](this[_0x2d04('0x4')](_0x2de394)),_0x3fa33e&&this[_0x2d04('0x45')](this[_0x2d04('0x4')](_0x3fa33e)),this[_0x2d04('0x33')]();}[_0x2d04('0x38')]({blurredAnnotation:_0x3d4fed,activatedAnnotation:_0x390c18,disableAnimationOnActivatedAnnotation:_0x52fea0}){if(this['_activeAnnotation']=_0x390c18,_0x3d4fed){_0x3d4fed[_0x2d04('0x3a')]=!0x1;const _0x39c4b9=this[_0x2d04('0x4')](_0x3d4fed);_0x39c4b9&&_0x52fea0&&(_0x39c4b9[_0x2d04('0x31')]=!0x1);}if(_0x390c18){const _0x375f39=this[_0x2d04('0x4')](_0x390c18);_0x375f39&&(_0x390c18[_0x2d04('0x3a')]=!0x0,_0x52fea0&&(_0x375f39[_0x2d04('0x31')]=!0x0,_0x375f39[_0x2d04('0x46')]+=0x1),this['_alignToTargetRect'](_0x375f39));}}[_0x2d04('0x43')](_0x5efa53){this[_0x2d04('0xa')](),this['view'][_0x2d04('0x1f')][_0x2d04('0xe')]();for(const _0x3d60d2 of _0x5efa53)this[_0x2d04('0x15')](_0x3d60d2);this[_0x2d04('0x2d')][_0x2d04('0x1e')][_0x2d04('0x8')](),this[_0x2d04('0x2d')][_0x2d04('0x2e')]='',this[_0x2d04('0x20')]=null;}[_0x2d04('0x40')](_0x5cf775,_0x1a0848){_0x1a0848||(_0x1a0848=_0x5cf775['view']);const _0xffb74e=new _0x482ec3(this['context'][_0x2d04('0xd')]);this[_0x2d04('0x28')][_0x2d04('0x36')](_0xffb74e,_0x5cf775),this[_0x2d04('0x41')][_0x2d04('0x36')](_0x5cf775,_0xffb74e),_0xffb74e[_0x2d04('0x39')][_0x2d04('0xc')](_0x1a0848),this[_0x2d04('0x2')](_0x5cf775[_0x2d04('0x2d')],_0x2d04('0x12'),(_0x548050,_0xb6fadf,_0x3a0bfe)=>{const _0x2a384b=this[_0x2d04('0xf')](_0x5cf775,_0x3a0bfe);_0xffb74e[_0x2d04('0x2f')]!=_0x2a384b&&(_0xffb74e['_targetTop']=_0x2a384b,this[_0x2d04('0x23')](_0xffb74e,_0x2a384b));}),this[_0x2d04('0x2')](_0xffb74e,_0x2d04('0x42'),()=>{this[_0x2d04('0x2b')](_0xffb74e,_0x2d04('0x46'));}),this['listenTo'](_0xffb74e,'change:bottom',()=>{this[_0x2d04('0x2b')](_0xffb74e,_0x2d04('0x47'));}),this['_alignToTargetRect'](_0xffb74e);const _0xcbbc7a=this[_0x2d04('0x0')](_0xffb74e);if(_0xcbbc7a)this[_0x2d04('0x1a')](_0xcbbc7a,_0xffb74e)||this[_0x2d04('0x45')](_0xffb74e);else this[_0x2d04('0x45')](_0xffb74e);return this[_0x2d04('0x33')](),this[_0x2d04('0x2d')][_0x2d04('0x1e')][_0x2d04('0xc')](_0xffb74e),_0xffb74e;}[_0x2d04('0x32')](_0x5a2cc9){if(!_0x5a2cc9[_0x2d04('0x39')][_0x2d04('0x3')])return;const _0x4e3d2d=this[_0x2d04('0x0')](_0x5a2cc9);if(!_0x4e3d2d)return;const _0x1078db=this[_0x2d04('0x28')]['get'](_0x4e3d2d),_0x569c2b=this[_0x2d04('0x37')];_0x569c2b&&_0x569c2b===_0x1078db?this[_0x2d04('0x1a')](_0x4e3d2d,_0x5a2cc9):this[_0x2d04('0x6')](_0x5a2cc9,_0x4e3d2d);}[_0x2d04('0x5')](_0x4875d5){if(!_0x4875d5[_0x2d04('0x39')]['length'])return;const _0x5014a2=this[_0x2d04('0x22')](_0x4875d5);if(!_0x5014a2)return;const _0x23a483=this['_sidebarItemViewToAnnotation']['get'](_0x5014a2),_0x27f5fe=this[_0x2d04('0x21')][_0x2d04('0x13')]['get'](_0x2d04('0x14')),_0xf612de=this['_activeAnnotation'];_0xf612de&&_0xf612de===_0x23a483&&_0x27f5fe?(this['_alignBeforeItem'](_0x5014a2,_0x4875d5),this[_0x2d04('0x1a')](_0x4875d5,_0x5014a2)):_0xf612de&&_0xf612de===_0x23a483?this[_0x2d04('0x6')](_0x5014a2,_0x4875d5):this['_alignAfterItem'](_0x4875d5,_0x5014a2);}[_0x2d04('0x2b')](_0x561176,_0x294edc){0x0===this[_0x2d04('0x3d')][_0x2d04('0x3')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4f812f,changedProp:_0x40dce3}of this[_0x2d04('0x3d')])'top'===_0x40dce3?this[_0x2d04('0x32')](_0x4f812f):this['_alignForBottomChange'](_0x4f812f);this[_0x2d04('0x3d')]=[];},0xa),this[_0x2d04('0x3d')][_0x2d04('0x3b')]({'sidebarItemView':_0x561176,'changedProp':_0x294edc});}['getSidebarItemView'](_0x4ccff7){return this[_0x2d04('0x41')][_0x2d04('0x30')](_0x4ccff7);}[_0x2d04('0x3f')](){this[_0x2d04('0x2d')][_0x2d04('0x3f')]();}[_0x2d04('0x15')](_0xc3d6b3){const _0xc96852=this[_0x2d04('0x4')](_0xc3d6b3);this[_0x2d04('0xa')](_0xc96852),this[_0x2d04('0xa')](_0xc3d6b3[_0x2d04('0x2d')]),_0xc96852[_0x2d04('0x3f')](),this[_0x2d04('0x41')]['delete'](_0xc3d6b3),this['_sidebarItemViewToAnnotation']['delete'](_0xc96852);}[_0x2d04('0x16')](){const _0x110bca=new _0x253c4a(this[_0x2d04('0x21')][_0x2d04('0xd')]);return _0x110bca[_0x2d04('0x9')](),this['on'](_0x2d04('0x1d'),(_0xa5ce5f,_0x1e27ab,_0x23cb6f,_0x337dff)=>{_0x337dff&&_0x110bca[_0x2d04('0x7')](_0x2d04('0x1c')),_0x23cb6f?_0x110bca[_0x2d04('0x44')](_0x2d04('0x1c'))['to'](_0x23cb6f,'bottom'):_0x110bca[_0x2d04('0x1c')]=null;}),_0x110bca;}[_0x2d04('0x33')](){this['_lastItem']=this[_0x2d04('0x4')](this['_annotations']['last']);}[_0x2d04('0x0')](_0x40b61a){const _0x1db6ba=this[_0x2d04('0x28')][_0x2d04('0x30')](_0x40b61a),_0x271e95=this[_0x2d04('0x17')][_0x2d04('0x30')](this[_0x2d04('0x17')][_0x2d04('0x19')](_0x1db6ba)-0x1);return _0x271e95&&this[_0x2d04('0x4')](_0x271e95);}[_0x2d04('0x22')](_0x47176e){const _0x404f06=this[_0x2d04('0x28')][_0x2d04('0x30')](_0x47176e),_0x42485b=this[_0x2d04('0x17')][_0x2d04('0x30')](this[_0x2d04('0x17')][_0x2d04('0x19')](_0x404f06)+0x1);return _0x42485b&&this['getSidebarItemView'](_0x42485b);}[_0x2d04('0x6')](_0xc825ef,_0xd661a0){_0xc825ef[_0x2d04('0x26')]();const _0x2ceb23=C(_0xd661a0[_0x2d04('0x47')]+this[_0x2d04('0x1b')],_0xc825ef[_0x2d04('0x46')]);return!!_0x2ceb23&&(this['_setItemTop'](_0xd661a0,_0xd661a0[_0x2d04('0x46')]-_0x2ceb23),!0x0);}['_alignAfterItem'](_0xf4ac6f,_0x2d8d4f){_0xf4ac6f[_0x2d04('0x26')]();const _0x4417ee=C(_0xf4ac6f[_0x2d04('0x47')]+this[_0x2d04('0x1b')],_0x2d8d4f[_0x2d04('0x46')]);return!!_0x4417ee&&(this[_0x2d04('0x23')](_0x2d8d4f,_0x2d8d4f['top']+_0x4417ee,!0x1),!0x0);}[_0x2d04('0x45')](_0x1f32ea){const _0x3eecbe=this[_0x2d04('0x28')]['get'](_0x1f32ea);if(!_0x3eecbe||!_0x3eecbe['target'])return;const _0x5e6efb=this[_0x2d04('0xf')](_0x3eecbe,_0x3eecbe[_0x2d04('0x24')]);this[_0x2d04('0x23')](_0x1f32ea,_0x5e6efb);}[_0x2d04('0xf')](_0x7d63d4,_0x16226e){if(null===_0x16226e)return 0x0;if(_0x7d63d4[_0x2d04('0x18')]instanceof _0x595528)return _0x16226e['top'];{const _0x37d9d6=new _0x595528(this[_0x2d04('0x2d')][_0x2d04('0x1f')])[_0x2d04('0x46')];return _0x16226e[_0x2d04('0x46')]-_0x37d9d6;}}[_0x2d04('0x23')](_0x4291cf,_0x39f2cd,_0x28b041=this[_0x2d04('0x21')][_0x2d04('0x13')]['get'](_0x2d04('0x14'))){_0x28b041&&(_0x39f2cd=Math['max'](_0x39f2cd,this[_0x2d04('0x11')](_0x4291cf))),_0x4291cf['top']=_0x39f2cd;}[_0x2d04('0x11')](_0x52ce59){let _0x224faa=this[_0x2d04('0x0')](_0x52ce59),_0x4a638a=0x0;for(;_0x224faa;)_0x224faa['updateHeight'](),_0x4a638a+=this[_0x2d04('0x1b')]+_0x224faa[_0x2d04('0xb')],_0x224faa=this[_0x2d04('0x0')](_0x224faa);return _0x4a638a;}}function C(_0x14efbe,_0x450c47){return Math[_0x2d04('0x1')](_0x14efbe-_0x450c47,0x0);}function p(_0x3ff47c){return null!==_0x3ff47c&&_0x2d04('0x29')==typeof _0x3ff47c&&0x1===_0x3ff47c[_0x2d04('0x2c')];}
23
+ const _0x1f87=['view','list','change:_lastItem','_getMaxAvailableTop','remove','appendChild','element','bottom','rearrange','sidebar.container','change:top','define','context','unbind','add','nodeType','getSidebarItemView','height','listenTo','refresh','init','stopListening','_setItemTop','_updateLastItem','set','_getTargetTop','target','change:targetRect','_attachToContainer','locale','_annotationToSidebarItemView','getIndex','_createSidebarView','minHeight','sidebar-attachtocontainer-missing-container','get','updateHeight','isAnimationDisabled','_alignForTopChange','max','isActive','sidebar.preventScrollOutOfView','container','_detachFromContainer','config','top','render','clear','_annotations','_alignAfterItem','_lastItem','class','_recalculateBuffer','_alignToTargetRect','_activeAnnotation','destroy','_sidebarItemViewToAnnotation','_alignForBottomChange','_alignBeforeItem','change:bottom','_getItemBefore','_targetTop','delete','_destroySidebarItemView','_getItemAfter','length','_recalculate','targetRect','_spaceBetweenItems','content','sidebar-setcontainer-invalid-element'];(function(_0x2583c1,_0x1f8741){const _0x2a6bb1=function(_0x215155){while(--_0x215155){_0x2583c1['push'](_0x2583c1['shift']());}};_0x2a6bb1(++_0x1f8741);}(_0x1f87,0x101));const _0x2a6b=function(_0x2583c1,_0x1f8741){_0x2583c1=_0x2583c1-0x0;let _0x2a6bb1=_0x1f87[_0x2583c1];return _0x2a6bb1;};import{ContextPlugin as _0x781979}from'ckeditor5/src/core';import _0x376145 from'./view/sidebarview';import _0x13e760 from'./view/sidebaritemview';import{Rect as _0x4d0ac9,CKEditorError as _0x3e929b}from'ckeditor5/src/utils';export default class ht extends _0x781979{static get['pluginName'](){return'Sidebar';}constructor(_0x40afa3){super(_0x40afa3),this[_0x2a6b('0x33')](_0x2a6b('0x6')),this[_0x2a6b('0x1b')]=this[_0x2a6b('0x3b')](),this[_0x2a6b('0x33')](_0x2a6b('0x45'),null),this[_0x2a6b('0x18')]=0x19,this[_0x2a6b('0xc')]=new Map(),this[_0x2a6b('0x39')]=new Map(),this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x26')](_0x2a6b('0x44'),!0x1),this[_0x2a6b('0x4')]=null,this[_0x2a6b('0xa')]=null,this[_0x2a6b('0x8')]=[];}[_0x2a6b('0x2f')](){const _0x5e3e2f=this[_0x2a6b('0x27')]['config'][_0x2a6b('0x3e')](_0x2a6b('0x24'));_0x5e3e2f&&this['setContainer'](_0x5e3e2f);}['setContainer'](_0xfc96cd){if(!K(_0xfc96cd))throw new _0x3e929b(_0x2a6b('0x1a'));this[_0x2a6b('0x45')]=_0xfc96cd;}[_0x2a6b('0x37')]({viewClass:_0x54f4e7='',spaceBetweenItems:_0x2e9d03=0x19}={}){if(!K(this[_0x2a6b('0x45')]))throw new _0x3e929b(_0x2a6b('0x3d'),this);this['container'][_0x2a6b('0x20')](this['view'][_0x2a6b('0x21')]),this[_0x2a6b('0x1b')][_0x2a6b('0x7')]=_0x54f4e7,this[_0x2a6b('0x18')]=_0x2e9d03;}[_0x2a6b('0x23')]({removedAnnotation:_0x19fed6,previousAnnotation:_0x4bc3fe,nextAnnotation:_0x21f746}){const _0x1e6cca=this[_0x2a6b('0x2b')](_0x19fed6);this[_0x2a6b('0x1b')][_0x2a6b('0x1c')][_0x2a6b('0x1f')](_0x1e6cca),this['_destroySidebarItemView'](_0x19fed6),_0x4bc3fe&&this['_alignToTargetRect'](this[_0x2a6b('0x2b')](_0x4bc3fe)),_0x21f746&&this[_0x2a6b('0x9')](this[_0x2a6b('0x2b')](_0x21f746)),this[_0x2a6b('0x32')]();}[_0x2a6b('0x2e')]({blurredAnnotation:_0xab2de4,activatedAnnotation:_0x1508a8,disableAnimationOnActivatedAnnotation:_0x1a83dd}){if(this['_activeAnnotation']=_0x1508a8,_0xab2de4){_0xab2de4[_0x2a6b('0x43')]=!0x1;const _0x2fbe89=this[_0x2a6b('0x2b')](_0xab2de4);_0x2fbe89&&_0x1a83dd&&(_0x2fbe89[_0x2a6b('0x40')]=!0x1);}if(_0x1508a8){const _0x46e0f4=this['getSidebarItemView'](_0x1508a8);_0x46e0f4&&(_0x1508a8['isActive']=!0x0,_0x1a83dd&&(_0x46e0f4[_0x2a6b('0x40')]=!0x0,_0x46e0f4[_0x2a6b('0x1')]+=0x1),this[_0x2a6b('0x9')](_0x46e0f4));}}[_0x2a6b('0x46')](_0x2606df){this[_0x2a6b('0x30')](),this[_0x2a6b('0x1b')][_0x2a6b('0x21')][_0x2a6b('0x1f')]();for(const _0x49febe of _0x2606df)this[_0x2a6b('0x13')](_0x49febe);this[_0x2a6b('0x1b')][_0x2a6b('0x1c')][_0x2a6b('0x3')](),this['view'][_0x2a6b('0x7')]='',this[_0x2a6b('0x6')]=null;}['addAnnotation'](_0x55f87f,_0x2f6792){_0x2f6792||(_0x2f6792=_0x55f87f['view']);const _0x21938c=new _0x13e760(this['context'][_0x2a6b('0x38')]);this[_0x2a6b('0xc')][_0x2a6b('0x33')](_0x21938c,_0x55f87f),this[_0x2a6b('0x39')][_0x2a6b('0x33')](_0x55f87f,_0x21938c),_0x21938c[_0x2a6b('0x19')][_0x2a6b('0x29')](_0x2f6792),this['listenTo'](_0x55f87f[_0x2a6b('0x1b')],_0x2a6b('0x36'),(_0x587483,_0x521fb9,_0x26f6e7)=>{const _0x5528b2=this[_0x2a6b('0x34')](_0x55f87f,_0x26f6e7);_0x21938c[_0x2a6b('0x11')]!=_0x5528b2&&(_0x21938c['_targetTop']=_0x5528b2,this['_setItemTop'](_0x21938c,_0x5528b2));}),this[_0x2a6b('0x2d')](_0x21938c,_0x2a6b('0x25'),()=>{this[_0x2a6b('0x16')](_0x21938c,_0x2a6b('0x1'));}),this[_0x2a6b('0x2d')](_0x21938c,_0x2a6b('0xf'),()=>{this[_0x2a6b('0x16')](_0x21938c,_0x2a6b('0x22'));}),this[_0x2a6b('0x9')](_0x21938c);const _0x431c49=this[_0x2a6b('0x10')](_0x21938c);if(_0x431c49)this[_0x2a6b('0x5')](_0x431c49,_0x21938c)||this[_0x2a6b('0x9')](_0x21938c);else this[_0x2a6b('0x9')](_0x21938c);return this[_0x2a6b('0x32')](),this[_0x2a6b('0x1b')]['list'][_0x2a6b('0x29')](_0x21938c),_0x21938c;}[_0x2a6b('0x41')](_0x47c2dd){if(!_0x47c2dd[_0x2a6b('0x19')][_0x2a6b('0x15')])return;const _0x25e910=this[_0x2a6b('0x10')](_0x47c2dd);if(!_0x25e910)return;const _0x476264=this[_0x2a6b('0xc')][_0x2a6b('0x3e')](_0x25e910),_0x27d73e=this[_0x2a6b('0xa')];_0x27d73e&&_0x27d73e===_0x476264?this[_0x2a6b('0x5')](_0x25e910,_0x47c2dd):this['_alignBeforeItem'](_0x47c2dd,_0x25e910);}[_0x2a6b('0xd')](_0x1cd042){if(!_0x1cd042[_0x2a6b('0x19')][_0x2a6b('0x15')])return;const _0x4b75b3=this[_0x2a6b('0x14')](_0x1cd042);if(!_0x4b75b3)return;const _0x3575ef=this[_0x2a6b('0xc')][_0x2a6b('0x3e')](_0x4b75b3),_0x43e703=this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x3e')](_0x2a6b('0x44')),_0x139470=this[_0x2a6b('0xa')];_0x139470&&_0x139470===_0x3575ef&&_0x43e703?(this[_0x2a6b('0xe')](_0x4b75b3,_0x1cd042),this[_0x2a6b('0x5')](_0x1cd042,_0x4b75b3)):_0x139470&&_0x139470===_0x3575ef?this[_0x2a6b('0xe')](_0x4b75b3,_0x1cd042):this[_0x2a6b('0x5')](_0x1cd042,_0x4b75b3);}[_0x2a6b('0x16')](_0x40ab47,_0xcaf369){0x0===this[_0x2a6b('0x8')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x670cea,changedProp:_0x1c7779}of this['_recalculateBuffer'])_0x2a6b('0x1')===_0x1c7779?this['_alignForTopChange'](_0x670cea):this['_alignForBottomChange'](_0x670cea);this[_0x2a6b('0x8')]=[];},0xa),this[_0x2a6b('0x8')]['push']({'sidebarItemView':_0x40ab47,'changedProp':_0xcaf369});}[_0x2a6b('0x2b')](_0x22483b){return this[_0x2a6b('0x39')][_0x2a6b('0x3e')](_0x22483b);}[_0x2a6b('0xb')](){this[_0x2a6b('0x1b')][_0x2a6b('0xb')]();}['_destroySidebarItemView'](_0x5bc93d){const _0x441543=this[_0x2a6b('0x2b')](_0x5bc93d);this[_0x2a6b('0x30')](_0x441543),this[_0x2a6b('0x30')](_0x5bc93d[_0x2a6b('0x1b')]),_0x441543[_0x2a6b('0xb')](),this['_annotationToSidebarItemView'][_0x2a6b('0x12')](_0x5bc93d),this[_0x2a6b('0xc')]['delete'](_0x441543);}[_0x2a6b('0x3b')](){const _0x5fdecb=new _0x376145(this[_0x2a6b('0x27')][_0x2a6b('0x38')]);return _0x5fdecb[_0x2a6b('0x2')](),this['on'](_0x2a6b('0x1d'),(_0x3aa25e,_0x33eccc,_0x1a5800,_0x6c22d)=>{_0x6c22d&&_0x5fdecb[_0x2a6b('0x28')](_0x2a6b('0x3c')),_0x1a5800?_0x5fdecb['bind'](_0x2a6b('0x3c'))['to'](_0x1a5800,'bottom'):_0x5fdecb[_0x2a6b('0x3c')]=null;}),_0x5fdecb;}[_0x2a6b('0x32')](){this[_0x2a6b('0x6')]=this[_0x2a6b('0x2b')](this[_0x2a6b('0x4')]['last']);}[_0x2a6b('0x10')](_0x5ed0b2){const _0xbf5847=this[_0x2a6b('0xc')]['get'](_0x5ed0b2),_0x2ab208=this[_0x2a6b('0x4')][_0x2a6b('0x3e')](this[_0x2a6b('0x4')][_0x2a6b('0x3a')](_0xbf5847)-0x1);return _0x2ab208&&this['getSidebarItemView'](_0x2ab208);}[_0x2a6b('0x14')](_0x225f49){const _0x1d8916=this['_sidebarItemViewToAnnotation'][_0x2a6b('0x3e')](_0x225f49),_0x56c831=this[_0x2a6b('0x4')]['get'](this[_0x2a6b('0x4')]['getIndex'](_0x1d8916)+0x1);return _0x56c831&&this[_0x2a6b('0x2b')](_0x56c831);}[_0x2a6b('0xe')](_0x17770d,_0x3c613d){_0x17770d['updateHeight']();const _0x5ae568=ut(_0x3c613d[_0x2a6b('0x22')]+this[_0x2a6b('0x18')],_0x17770d[_0x2a6b('0x1')]);return!!_0x5ae568&&(this[_0x2a6b('0x31')](_0x3c613d,_0x3c613d[_0x2a6b('0x1')]-_0x5ae568),!0x0);}[_0x2a6b('0x5')](_0x397e3b,_0x5a2747){_0x397e3b['updateHeight']();const _0xe372b5=ut(_0x397e3b[_0x2a6b('0x22')]+this[_0x2a6b('0x18')],_0x5a2747['top']);return!!_0xe372b5&&(this['_setItemTop'](_0x5a2747,_0x5a2747[_0x2a6b('0x1')]+_0xe372b5,!0x1),!0x0);}[_0x2a6b('0x9')](_0x5a577e){const _0x5ed448=this[_0x2a6b('0xc')]['get'](_0x5a577e);if(!_0x5ed448||!_0x5ed448[_0x2a6b('0x35')])return;const _0x2566d0=this['_getTargetTop'](_0x5ed448,_0x5ed448[_0x2a6b('0x17')]);this[_0x2a6b('0x31')](_0x5a577e,_0x2566d0);}[_0x2a6b('0x34')](_0x4f8436,_0x4f4a77){if(null===_0x4f4a77)return 0x0;if(_0x4f8436['target']instanceof _0x4d0ac9)return _0x4f4a77['top'];{const _0x5adb22=new _0x4d0ac9(this['view'][_0x2a6b('0x21')])['top'];return _0x4f4a77[_0x2a6b('0x1')]-_0x5adb22;}}[_0x2a6b('0x31')](_0x11d77c,_0x28a375,_0x44f3f4=this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x3e')](_0x2a6b('0x44'))){_0x44f3f4&&(_0x28a375=Math['max'](_0x28a375,this[_0x2a6b('0x1e')](_0x11d77c))),_0x11d77c[_0x2a6b('0x1')]=_0x28a375;}[_0x2a6b('0x1e')](_0x2deb4e){let _0x162b83=this[_0x2a6b('0x10')](_0x2deb4e),_0x42ca7b=0x0;for(;_0x162b83;)_0x162b83[_0x2a6b('0x3f')](),_0x42ca7b+=this['_spaceBetweenItems']+_0x162b83[_0x2a6b('0x2c')],_0x162b83=this[_0x2a6b('0x10')](_0x162b83);return _0x42ca7b;}}function ut(_0x236b51,_0x26e0b6){return Math[_0x2a6b('0x42')](_0x236b51-_0x26e0b6,0x0);}function K(_0x29e14e){return null!==_0x29e14e&&'object'==typeof _0x29e14e&&0x1===_0x29e14e[_0x2a6b('0x2a')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5dd2=['icon','isDirty','ck-annotation-counter__badge--edit-mode','children','_badge','...','annotationType','extendTemplate','number','set','bind','add'];(function(_0x4a795a,_0x5dd2cd){const _0x32c384=function(_0x466a27){while(--_0x466a27){_0x4a795a['push'](_0x4a795a['shift']());}};_0x32c384(++_0x5dd2cd);}(_0x5dd2,0x19d));const _0x32c3=function(_0x4a795a,_0x5dd2cd){_0x4a795a=_0x4a795a-0x0;let _0x32c384=_0x5dd2[_0x4a795a];return _0x32c384;};import{ButtonView as _0x337c02,View as _0x6adac4}from'ckeditor5/src/ui';import _0x198520 from'../../../theme/icons/add-comment.svg';export default class B extends _0x337c02{constructor(_0x7d835c){super(_0x7d835c);const _0x2a9b7a=this['bindTemplate'];this['set'](_0x32c3('0x8'),!0x1),this[_0x32c3('0x4')](_0x32c3('0x3'),0x0),this[_0x32c3('0x5')](_0x32c3('0xb'))['to'](this,'isDirty',this,_0x32c3('0x3'),(_0x58344a,_0x4efd90)=>_0x58344a?_0x32c3('0x0'):_0x4efd90),this[_0x32c3('0x4')](_0x32c3('0x1'),''),this[_0x32c3('0x7')]=_0x198520,this[_0x32c3('0x2')]({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x6adac4(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x2a9b7a['to'](_0x32c3('0x1'),_0x387f9a=>'ck-annotation-counter__badge--'+_0x387f9a),_0x2a9b7a['if']('isDirty',_0x32c3('0x9'))]},'children':[{'text':_0x2a9b7a['to'](_0x32c3('0xb'))}]}),this[_0x32c3('0xa')][_0x32c3('0x6')](this['counterView']);}}
23
+ const _0x44da=['counterView','setTemplate','ck-annotation-counter','ck-annotation-counter__badge','bindTemplate','set','isDirty','add','span','annotationType','...','bind','number','_badge','icon'];(function(_0x26f07f,_0x44dadc){const _0x346cca=function(_0x3b5cb7){while(--_0x3b5cb7){_0x26f07f['push'](_0x26f07f['shift']());}};_0x346cca(++_0x44dadc);}(_0x44da,0x107));const _0x346c=function(_0x26f07f,_0x44dadc){_0x26f07f=_0x26f07f-0x0;let _0x346cca=_0x44da[_0x26f07f];return _0x346cca;};import{ButtonView as _0x13f7da,View as _0x215b91}from'ckeditor5/src/ui';import _0x54fb55 from'../../../theme/icons/add-comment.svg';export default class nt extends _0x13f7da{constructor(_0x2c0a07){super(_0x2c0a07);const _0x2f70f7=this[_0x346c('0xb')];this[_0x346c('0xc')](_0x346c('0xd'),!0x1),this[_0x346c('0xc')](_0x346c('0x4'),0x0),this[_0x346c('0x3')](_0x346c('0x5'))['to'](this,_0x346c('0xd'),this,_0x346c('0x4'),(_0x538e6d,_0x1a8065)=>_0x538e6d?_0x346c('0x2'):_0x1a8065),this['set'](_0x346c('0x1'),''),this[_0x346c('0x6')]=_0x54fb55,this['extendTemplate']({'attributes':{'class':[_0x346c('0x9')]}}),this[_0x346c('0x7')]=new _0x215b91(),this[_0x346c('0x7')][_0x346c('0x8')]({'tag':_0x346c('0x0'),'attributes':{'class':[_0x346c('0xa'),_0x2f70f7['to'](_0x346c('0x1'),_0x3fe9cd=>'ck-annotation-counter__badge--'+_0x3fe9cd),_0x2f70f7['if'](_0x346c('0xd'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2f70f7['to'](_0x346c('0x5'))}]}),this['children'][_0x346c('0xe')](this[_0x346c('0x7')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36ea=['_mutationObserver','ck-rounded-corners','type','focusTracker','isActive','mainView','detach','div','ck-annotation-wrapper--active','bindTemplate','createCollection','height','_updateHeight','set','element','targetRect','Esc','ck-annotation-wrapper','fire','add','keystrokes','focus','attach','destroy','render','content'];(function(_0x23957b,_0x36ea5f){const _0x46e905=function(_0x1a6bb4){while(--_0x1a6bb4){_0x23957b['push'](_0x23957b['shift']());}};_0x46e905(++_0x36ea5f);}(_0x36ea,0xf9));const _0x46e9=function(_0x23957b,_0x36ea5f){_0x23957b=_0x23957b-0x0;let _0x46e905=_0x36ea[_0x23957b];return _0x46e905;};import{View as _0x2253eb}from'ckeditor5/src/ui';import{FocusTracker as _0x57b2a1,KeystrokeHandler as _0x5739f8,uid as _0x229b5d}from'ckeditor5/src/utils';import _0x508daf from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x2253eb{constructor(_0x1be5c6,_0x52ea05){super(_0x1be5c6),this['id']=_0x229b5d(),this[_0x46e9('0xe')]=new _0x57b2a1(),this[_0x46e9('0x5')]=new _0x5739f8(),this['keystrokes']['set']('Esc',(_0x2df2ad,_0x4ec574)=>this[_0x46e9('0x3')](_0x46e9('0x1'),_0x4ec574)),this['set'](_0x46e9('0x0'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x46e9('0x18')](_0x46e9('0x16'),0x0),this[_0x46e9('0x18')](_0x46e9('0xf'),!0x1),this['set']('isDirty',!0x1),this[_0x46e9('0x18')]('length',0x0),this['set'](_0x46e9('0xd'),''),this['_mutationObserver']=_0x508daf(()=>this[_0x46e9('0x17')]()),this[_0x46e9('0xa')]=this[_0x46e9('0x15')](),this['content'][_0x46e9('0x4')](_0x52ea05),this[_0x46e9('0x10')]=_0x52ea05;const _0x4fd9ec=this[_0x46e9('0x14')];this['setTemplate']({'tag':_0x46e9('0x12'),'attributes':{'class':['ck',_0x46e9('0x2'),_0x46e9('0xc'),_0x4fd9ec['if'](_0x46e9('0xf'),_0x46e9('0x13'))],'tabindex':-0x1},'children':this[_0x46e9('0xa')]});}[_0x46e9('0x9')](){super['render'](),this[_0x46e9('0xe')]['add'](this[_0x46e9('0x19')]),this['keystrokes']['listenTo'](this[_0x46e9('0x19')]),this[_0x46e9('0xb')][_0x46e9('0x7')](this[_0x46e9('0x19')]);}['destroy'](){this['content']['clear'](),this['keystrokes'][_0x46e9('0x8')](),this['focusTracker'][_0x46e9('0x8')](),this[_0x46e9('0xb')][_0x46e9('0x11')](),super[_0x46e9('0x8')]();}[_0x46e9('0x6')](){this[_0x46e9('0x19')][_0x46e9('0x6')]();}[_0x46e9('0x17')](){const _0x2232b4=this[_0x46e9('0x19')]['clientHeight'];_0x2232b4&&(this['height']=_0x2232b4);}}
23
+ const _0x5218=['isActive','listenTo','bindTemplate','element','height','destroy','content','type','_mutationObserver','mainView','ck-annotation-wrapper--active','Esc','focusTracker','keystrokes','add','div','ck-annotation-wrapper','fire','render','ck-rounded-corners','setTemplate','isDirty','clientHeight','_updateHeight','set','createCollection','length'];(function(_0x2a4315,_0x52188b){const _0x3b6af2=function(_0x425044){while(--_0x425044){_0x2a4315['push'](_0x2a4315['shift']());}};_0x3b6af2(++_0x52188b);}(_0x5218,0x115));const _0x3b6a=function(_0x2a4315,_0x52188b){_0x2a4315=_0x2a4315-0x0;let _0x3b6af2=_0x5218[_0x2a4315];return _0x3b6af2;};import{View as _0x261d56}from'ckeditor5/src/ui';import{FocusTracker as _0x36b98d,KeystrokeHandler as _0x2140f4,uid as _0x2b7c4d}from'ckeditor5/src/utils';import _0x5e852d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class j extends _0x261d56{constructor(_0x2c0f65,_0x9d04ee){super(_0x2c0f65),this['id']=_0x2b7c4d(),this[_0x3b6a('0x5')]=new _0x36b98d(),this[_0x3b6a('0x6')]=new _0x2140f4(),this['keystrokes'][_0x3b6a('0x11')](_0x3b6a('0x4'),(_0x5b4c46,_0x227b4b)=>this[_0x3b6a('0xa')](_0x3b6a('0x4'),_0x227b4b)),this[_0x3b6a('0x11')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3b6a('0x11')](_0x3b6a('0x18'),0x0),this[_0x3b6a('0x11')](_0x3b6a('0x14'),!0x1),this[_0x3b6a('0x11')](_0x3b6a('0xe'),!0x1),this[_0x3b6a('0x11')](_0x3b6a('0x13'),0x0),this['set'](_0x3b6a('0x0'),''),this[_0x3b6a('0x1')]=_0x5e852d(()=>this[_0x3b6a('0x10')]()),this[_0x3b6a('0x1a')]=this[_0x3b6a('0x12')](),this[_0x3b6a('0x1a')][_0x3b6a('0x7')](_0x9d04ee),this[_0x3b6a('0x2')]=_0x9d04ee;const _0x5f20d5=this[_0x3b6a('0x16')];this[_0x3b6a('0xd')]({'tag':_0x3b6a('0x8'),'attributes':{'class':['ck',_0x3b6a('0x9'),_0x3b6a('0xc'),_0x5f20d5['if'](_0x3b6a('0x14'),_0x3b6a('0x3'))],'tabindex':-0x1},'children':this['content']});}[_0x3b6a('0xb')](){super['render'](),this[_0x3b6a('0x5')][_0x3b6a('0x7')](this['element']),this['keystrokes'][_0x3b6a('0x15')](this['element']),this[_0x3b6a('0x1')]['attach'](this[_0x3b6a('0x17')]);}['destroy'](){this[_0x3b6a('0x1a')]['clear'](),this['keystrokes']['destroy'](),this['focusTracker'][_0x3b6a('0x19')](),this[_0x3b6a('0x1')]['detach'](),super[_0x3b6a('0x19')]();}['focus'](){this['element']['focus']();}[_0x3b6a('0x10')](){const _0x3f0071=this['element'][_0x3b6a('0xf')];_0x3f0071&&(this[_0x3b6a('0x18')]=_0x3f0071);}}