@ckeditor/ckeditor5-comments
Advanced tools
Comparing version 18.0.0 to 19.0.0
Changelog | ||
========= | ||
## 19.0.0 (2020-04-30) | ||
### BREAKING CHANGES | ||
* `AnnotationView#active` renamed to `#isActive`. | ||
* `AnnotationView#hasChanges` renamed to `#isDirty`. | ||
* Due to changes in how comments are loaded for suggestions, comments need to be now loaded before suggestions in "load and save" integration type (non-adapter integration). | ||
### Features | ||
* Introduced customizable comment views. | ||
* Localized UI for comments. | ||
### Bug fixes | ||
* Improved logic that activates balloon annotations. | ||
* Resolved a race condition issue happening when fetching comment data and causing the editor to crash. | ||
### Other changes | ||
* Removed `Comments` plugin API. | ||
## 18.0.0 (2020-03-19) | ||
@@ -5,0 +28,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-comments", | ||
"version": "18.0.0", | ||
"version": "19.0.0", | ||
"description": "Collaborative comments feature for CKEditor 5.", | ||
@@ -33,12 +33,12 @@ "license": "SEE LICENSE IN LICENSE.md", | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-autoformat": "^18.0.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^18.0.0", | ||
"@ckeditor/ckeditor5-collaboration-core": "^18.0.0", | ||
"@ckeditor/ckeditor5-core": "^18.0.0", | ||
"@ckeditor/ckeditor5-engine": "^18.0.0", | ||
"@ckeditor/ckeditor5-essentials": "^18.0.0", | ||
"@ckeditor/ckeditor5-list": "^18.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^18.0.0", | ||
"@ckeditor/ckeditor5-ui": "^18.0.0", | ||
"@ckeditor/ckeditor5-utils": "^18.0.0", | ||
"@ckeditor/ckeditor5-autoformat": "^19.0.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^19.0.0", | ||
"@ckeditor/ckeditor5-collaboration-core": "^19.0.0", | ||
"@ckeditor/ckeditor5-core": "^19.0.0", | ||
"@ckeditor/ckeditor5-engine": "^19.0.0", | ||
"@ckeditor/ckeditor5-essentials": "^19.0.0", | ||
"@ckeditor/ckeditor5-list": "^19.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^19.0.0", | ||
"@ckeditor/ckeditor5-ui": "^19.0.0", | ||
"@ckeditor/ckeditor5-utils": "^19.0.0", | ||
"date-fns": "^1.29.0", | ||
@@ -45,0 +45,0 @@ "lodash-es": "^4.17.11" |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0xb5db=['removeEventListener','length','_throttledOrderUpdate','detach','set','activeView','focusTracker','function','remove','register','targetRect','destroy','add','customView','resize','change:isFocused','addEventListener','locale','map','switchTo','Annotations','selectedViews','attach','annotations-switchto-missing-ui:\x20UI\x20of\x20a\x20given\x20name\x20has\x20been\x20not\x20registered.','delete','active','annotations-register-already-registered:\x20UI\x20of\x20a\x20given\x20name\x20already\x20registered.','getAnnotationView','max','getIndex','annotations-register-invalid-interface:\x20UI\x20plugin\x20must\x20implement\x20#attach\x20and\x20#detach\x20methods.','fire','top','init','getTarget','uiType','get','pluginName','element','annotations-duplicated-item:\x20Given\x20view\x20was\x20already\x20added\x20to\x20the\x20annotations\x20repository.','sort','refresh','context','change:activeView','has','items'];(function(_0x51faeb,_0x3c2d0f){const _0x3c7c5e=function(_0x5d1ad3){while(--_0x5d1ad3){_0x51faeb['push'](_0x51faeb['shift']());}};_0x3c7c5e(++_0x3c2d0f);}(_0xb5db,0x17f));const _0x3f3f=function(_0x51faeb,_0x3c2d0f){_0x51faeb=_0x51faeb-0x0;let _0x3c7c5e=_0xb5db[_0x51faeb];return _0x3c7c5e;};import _0x35624c from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x592ed9 from'../annotations/view/annotationview';import _0x4fee15 from'@ckeditor/ckeditor5-utils/src/collection';import _0x41dd38 from'@ckeditor/ckeditor5-utils/src/focustracker';import _0x466e63 from'@ckeditor/ckeditor5-utils/src/dom/rect';import _0x3c879e from'@ckeditor/ckeditor5-utils/src/ckeditorerror';import{throttle as _0x293ec8}from'lodash-es';import'../../theme/annotation.css';export default class a extends _0x35624c{static get[_0x3f3f('0x16')](){return _0x3f3f('0x5');}constructor(_0x2814ab){super(_0x2814ab),this['items']=new _0x4fee15(),this['set'](_0x3f3f('0x6'),[]),this['set']('activeView',null),this['on'](_0x3f3f('0x1c'),(_0x10661d,_0xe4981f,_0x1c1a82,_0x2dd6ff)=>{_0x1c1a82&&(this['i'][_0x3f3f('0x15')](_0x1c1a82)[_0x3f3f('0xa')]=!0x0);const _0x5953eb=this['i'][_0x3f3f('0x15')](_0x2dd6ff);_0x2dd6ff&&_0x5953eb&&(_0x5953eb['active']=!0x1);}),this[_0x3f3f('0x25')]=new _0x41dd38(),this['focusTracker']['on'](_0x3f3f('0x0'),(_0x127f84,_0x3befd8,_0x39a019)=>{_0x39a019||(this['activeView']=null);}),this['uiType']='',this['s']=new Map(),this['i']=new Map(),this['o']=new Map(),this[_0x3f3f('0x21')]=_0x293ec8(()=>{this['h'](),this['u']();},0x190,{'leading':!0x1});}[_0x3f3f('0x12')](){window[_0x3f3f('0x1')]('resize',this[_0x3f3f('0x21')]);}[_0x3f3f('0x28')](_0x2d6993,_0x17a45e){if(this['s']['has'](_0x2d6993))throw new _0x3c879e(_0x3f3f('0xb'));if(_0x3f3f('0x26')!=typeof _0x17a45e[_0x3f3f('0x7')]||_0x3f3f('0x26')!=typeof _0x17a45e[_0x3f3f('0x22')])throw new _0x3c879e(_0x3f3f('0xf'));this['s'][_0x3f3f('0x23')](_0x2d6993,_0x17a45e);}[_0x3f3f('0x4')](_0x2a21d9){if(!this['s'][_0x3f3f('0x1d')](_0x2a21d9))throw new _0x3c879e(_0x3f3f('0x8'),this);this[_0x3f3f('0x14')]!==_0x2a21d9&&(this[_0x3f3f('0x14')]&&this['s'][_0x3f3f('0x15')](this[_0x3f3f('0x14')])[_0x3f3f('0x22')](),this['uiType']=_0x2a21d9,this['s'][_0x3f3f('0x15')](this[_0x3f3f('0x14')])['attach']());}[_0x3f3f('0x2b')](_0x4c4c10,_0x56279b){if(this['i'][_0x3f3f('0x1d')](_0x4c4c10))throw new _0x3c879e(_0x3f3f('0x18'),this);const _0x21f60d=new _0x592ed9(this[_0x3f3f('0x1b')][_0x3f3f('0x2')],_0x4c4c10);_0x21f60d['render'](),this[_0x3f3f('0x25')][_0x3f3f('0x2b')](_0x21f60d[_0x3f3f('0x17')]),_0x21f60d[_0x3f3f('0x25')]['on'](_0x3f3f('0x0'),(_0x5ae436,_0x1f3068,_0x6970a1)=>{_0x6970a1&&(this[_0x3f3f('0x24')]=_0x4c4c10);}),this['o']['set'](_0x4c4c10,_0x56279b),this['l'](_0x21f60d);const _0x433783=this['m'](_0x21f60d[_0x3f3f('0x29')]);return this[_0x3f3f('0x1e')][_0x3f3f('0x2b')](_0x21f60d,_0x433783),this['i'][_0x3f3f('0x23')](_0x4c4c10,_0x21f60d),_0x21f60d;}['remove'](_0x5ae56f){if(!this['i'][_0x3f3f('0x1d')](_0x5ae56f))return;const _0x271bae=this['i'][_0x3f3f('0x15')](_0x5ae56f);this[_0x3f3f('0x25')]['remove'](_0x271bae[_0x3f3f('0x17')]),this[_0x3f3f('0x24')]===_0x5ae56f&&(this[_0x3f3f('0x24')]=null),this[_0x3f3f('0x1e')][_0x3f3f('0x27')](_0x271bae),_0x271bae[_0x3f3f('0x2a')](),this['o'][_0x3f3f('0x9')](_0x5ae56f),this['i'][_0x3f3f('0x9')](_0x5ae56f);}['getTarget'](_0x5120c0){const _0x2101f3=this['o'][_0x3f3f('0x15')](_0x5120c0);return _0x3f3f('0x26')==typeof _0x2101f3?_0x2101f3():_0x2101f3;}[_0x3f3f('0xc')](_0x3d6e4d){return this['i']['get'](_0x3d6e4d);}['refresh'](){this[_0x3f3f('0x10')](_0x3f3f('0x1a')),this['_throttledOrderUpdate']();}[_0x3f3f('0x2a')](){super['destroy'](),window[_0x3f3f('0x1f')](_0x3f3f('0x2d'),this[_0x3f3f('0x21')]),this[_0x3f3f('0x21')]['cancel'](),this['items'][_0x3f3f('0x3')](_0x3f92f3=>_0x3f92f3[_0x3f3f('0x2a')]());}['h'](){for(const _0x33ae1f of this['items'])this['l'](_0x33ae1f);}['l'](_0x3bfec2){const _0x516485=this[_0x3f3f('0x13')](_0x3bfec2[_0x3f3f('0x2c')]);_0x3bfec2[_0x3f3f('0x29')]=new _0x466e63(_0x516485);}['u'](){const _0xf85045=Array['from'](this[_0x3f3f('0x1e')])[_0x3f3f('0x19')]((_0x1349a4,_0x1db268)=>c(_0x1349a4['targetRect'],_0x1db268['targetRect']));for(let _0x3cf216=_0xf85045[_0x3f3f('0x20')]-0x1;_0x3cf216>0x0;_0x3cf216--){const _0x4c75ab=_0xf85045[_0x3cf216];_0x3cf216!==this['items'][_0x3f3f('0xe')](_0x4c75ab)&&(this[_0x3f3f('0x1e')]['remove'](_0x4c75ab),this[_0x3f3f('0x1e')]['add'](_0x4c75ab,_0x3cf216));}}['m'](_0x2e58b2){let _0x449a45=0x0;for(const _0x503751 of this[_0x3f3f('0x1e')]){const _0x2da6b2=this[_0x3f3f('0x13')](_0x503751['customView']);if(c(_0x2e58b2,new _0x466e63(_0x2da6b2))<0x0)return _0x449a45;_0x449a45++;}return Math[_0x3f3f('0xd')](0x0,_0x449a45);}}function c(_0x20366d,_0x71a5e3){const _0x55310e=_0x20366d['top']-_0x71a5e3[_0x3f3f('0x11')];return 0x0==_0x55310e?_0x20366d['left']-_0x71a5e3['left']:_0x55310e;} | ||
import _0x28c46e from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x4e3015 from'../annotations/view/annotationview';import _0x1ff50c from'@ckeditor/ckeditor5-utils/src/collection';import _0xef3614 from'@ckeditor/ckeditor5-utils/src/focustracker';import _0x486b2d from'@ckeditor/ckeditor5-utils/src/dom/rect';import _0x25b8b7 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';import{throttle as _0x443f11}from'lodash-es';import'../../theme/annotation.css';export default class a extends _0x28c46e{static get['pluginName'](){return'Annotations';}constructor(_0x4e0f59){super(_0x4e0f59),this['items']=new _0x1ff50c(),this['set']('selectedViews',[]),this['set']('activeView',null),this['on']('change:activeView',(_0x35a007,_0x4e98fb,_0x493b1b,_0x295b6e)=>{_0x493b1b&&(this['i']['get'](_0x493b1b)['isActive']=!0x0);const _0x5c6c5e=this['i']['get'](_0x295b6e);_0x295b6e&&_0x5c6c5e&&(_0x5c6c5e['isActive']=!0x1);}),this['focusTracker']=new _0xef3614(),this['focusTracker']['on']('change:isFocused',(_0x55cb6a,_0x5218c9,_0x2d3e68)=>{_0x2d3e68||(this['activeView']=null);}),this['uiType']='',this['s']=new Map(),this['i']=new Map(),this['o']=new Map(),this['_throttledOrderUpdate']=_0x443f11(()=>{this['h'](),this['u']();},0x190,{'leading':!0x1});}['init'](){window['addEventListener']('resize',this['_throttledOrderUpdate']);}['register'](_0x2c1647,_0x1a76c9){if(this['s']['has'](_0x2c1647))throw new _0x25b8b7('annotations-register-already-registered:\x20UI\x20of\x20a\x20given\x20name\x20already\x20registered.');if('function'!=typeof _0x1a76c9['attach']||'function'!=typeof _0x1a76c9['detach'])throw new _0x25b8b7('annotations-register-invalid-interface:\x20UI\x20plugin\x20must\x20implement\x20#attach\x20and\x20#detach\x20methods.');this['s']['set'](_0x2c1647,_0x1a76c9);}['switchTo'](_0x46286e){if(!this['s']['has'](_0x46286e))throw new _0x25b8b7('annotations-switchto-missing-ui:\x20UI\x20of\x20a\x20given\x20name\x20has\x20been\x20not\x20registered.',this);this['uiType']!==_0x46286e&&(this['uiType']&&this['s']['get'](this['uiType'])['detach'](),this['uiType']=_0x46286e,this['s']['get'](this['uiType'])['attach']());}['add'](_0x5ca69f,_0x2e49fe){if(this['i']['has'](_0x5ca69f))throw new _0x25b8b7('annotations-duplicated-item:\x20Given\x20view\x20was\x20already\x20added\x20to\x20the\x20annotations\x20repository.',this);const _0xbffb7=new _0x4e3015(this['context']['locale'],_0x5ca69f);_0xbffb7['render'](),this['focusTracker']['add'](_0xbffb7['element']),_0xbffb7['focusTracker']['on']('change:isFocused',(_0x27a9c5,_0x1f3c79,_0x265287)=>{_0x265287&&(this['activeView']=_0x5ca69f);}),this['o']['set'](_0x5ca69f,_0x2e49fe),this['l'](_0xbffb7);const _0x48f95d=this['m'](_0xbffb7['targetRect']);return this['items']['add'](_0xbffb7,_0x48f95d),this['i']['set'](_0x5ca69f,_0xbffb7),_0xbffb7;}['remove'](_0x895f2f){if(!this['i']['has'](_0x895f2f))return;const _0x5778a3=this['i']['get'](_0x895f2f);this['focusTracker']['remove'](_0x5778a3['element']),this['activeView']===_0x895f2f&&(this['activeView']=null),this['items']['remove'](_0x5778a3),_0x5778a3['destroy'](),this['o']['delete'](_0x895f2f),this['i']['delete'](_0x895f2f);}['getTarget'](_0x5cb164){const _0x999bc8=this['o']['get'](_0x5cb164);return'function'==typeof _0x999bc8?_0x999bc8():_0x999bc8;}['getAnnotationView'](_0x22269a){return this['i']['get'](_0x22269a);}['refresh'](){this['fire']('refresh'),this['_throttledOrderUpdate']();}['destroy'](){super['destroy'](),window['removeEventListener']('resize',this['_throttledOrderUpdate']),this['_throttledOrderUpdate']['cancel'](),this['items']['map'](_0x197940=>_0x197940['destroy']());}['h'](){for(const _0x16d7b8 of this['items'])this['l'](_0x16d7b8);}['l'](_0x2519a0){const _0xf797f4=this['getTarget'](_0x2519a0['customView']);_0x2519a0['targetRect']=new _0x486b2d(_0xf797f4);}['u'](){const _0x47ef4c=Array['from'](this['items'])['sort']((_0xa317a4,_0x4dd873)=>c(_0xa317a4['targetRect'],_0x4dd873['targetRect']));for(let _0x168b7f=_0x47ef4c['length']-0x1;_0x168b7f>0x0;_0x168b7f--){const _0x2d0c3f=_0x47ef4c[_0x168b7f];_0x168b7f!==this['items']['getIndex'](_0x2d0c3f)&&(this['items']['remove'](_0x2d0c3f),this['items']['add'](_0x2d0c3f,_0x168b7f));}}['m'](_0x23a505){let _0x85f836=0x0;for(const _0x3c2030 of this['items']){const _0x5161b6=this['getTarget'](_0x3c2030['customView']);if(c(_0x23a505,new _0x486b2d(_0x5161b6))<0x0)return _0x85f836;_0x85f836++;}return Math['max'](0x0,_0x85f836);}}function c(_0x1303f9,_0x44c940){const _0x3c963b=_0x1303f9['top']-_0x44c940['top'];return 0x0==_0x3c963b?_0x1303f9['left']-_0x44c940['left']:_0x3c963b;} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x4fbc=['isFocused','Annotations','selectedViews','pluginName','has','lowest','change:isFocused','customView','plugins','change','refreshSelectedViews','remove','addSourceCollector','editor','items','requires','map','editing','push','refresh','focusTracker','set','function','add','isCollapsed','init','get','listenTo','sort','model','element','document','from','view','activeView','selection','editorannotations-invalid-source-callback:\x20Function\x20required.','cancel'];(function(_0x45dae9,_0x2b27e5){const _0x413c6e=function(_0x56b2da){while(--_0x56b2da){_0x45dae9['push'](_0x45dae9['shift']());}};_0x413c6e(++_0x2b27e5);}(_0x4fbc,0x1dc));const _0x55ec=function(_0x45dae9,_0x2b27e5){_0x45dae9=_0x45dae9-0x0;let _0x413c6e=_0x4fbc[_0x45dae9];return _0x413c6e;};import _0x338bba from'@ckeditor/ckeditor5-core/src/plugin';import _0x3cc516 from'./annotations';import _0x28d500 from'./inlineannotations';import _0x2a358e from'@ckeditor/ckeditor5-utils/src/ckeditorerror';import{debounce as _0x42845d}from'lodash-es';export default class l extends _0x338bba{static get[_0x55ec('0x21')](){return[_0x3cc516,_0x28d500];}static get[_0x55ec('0x15')](){return'EditorAnnotations';}constructor(_0x595a40){super(_0x595a40),this['p']=new Set();}[_0x55ec('0x5')](){const _0xc22d96=this['editor'],_0x4be3f4=_0xc22d96[_0x55ec('0x1a')][_0x55ec('0x6')](_0x55ec('0x13')),_0x46ede7=_0xc22d96[_0x55ec('0x9')]['document'][_0x55ec('0xf')],_0x363523=_0x42845d(()=>this[_0x55ec('0x1c')](),0xa);_0x46ede7['on'](_0x55ec('0x1b'),()=>{_0x363523[_0x55ec('0x11')](),this[_0x55ec('0x1c')]();}),this[_0x55ec('0x7')](_0xc22d96[_0x55ec('0x23')]['view'][_0x55ec('0xb')],_0x55ec('0x18'),(_0x3adb76,_0xc35e64,_0x503a4c)=>{_0x503a4c&&_0x363523();}),this[_0x55ec('0x7')](_0xc22d96['ui'][_0x55ec('0x0')],_0x55ec('0x18'),(_0xfdd20a,_0x267c09,_0x1f953f)=>{!_0x1f953f&&this['g'][_0x55ec('0x16')](_0x4be3f4[_0x55ec('0xe')])&&(_0x4be3f4[_0x55ec('0xe')]=null);}),_0x4be3f4['focusTracker']['on'](_0x55ec('0x18'),(_0xa621f1,_0x43082c,_0x1fbb7)=>{!_0x1fbb7&&_0xc22d96[_0x55ec('0x23')][_0x55ec('0xd')]['document'][_0x55ec('0x12')]&&this['refreshSelectedViews']();},{'priority':_0x55ec('0x17')}),this[_0x55ec('0x7')](this['editor']['ui'],'update',()=>_0x4be3f4[_0x55ec('0x25')]());const _0x2137f3=new Set();this[_0x55ec('0x7')](_0x4be3f4[_0x55ec('0x20')],_0x55ec('0x3'),(_0x283927,_0x1f774d)=>{for(const _0xba8e2b of this['g']['keys']())if(_0xba8e2b===_0x1f774d[_0x55ec('0x19')]){_0xc22d96['ui'][_0x55ec('0x0')]['add'](_0x1f774d[_0x55ec('0xa')]),_0x2137f3[_0x55ec('0x3')](_0x1f774d);break;}}),this[_0x55ec('0x7')](_0x4be3f4['items'],_0x55ec('0x1d'),(_0x142b2d,_0xbfff41)=>{_0x2137f3['has'](_0xbfff41)&&(_0xc22d96['ui'][_0x55ec('0x0')][_0x55ec('0x1d')](_0xbfff41[_0x55ec('0xa')]),_0x2137f3['delete'](_0xbfff41));});}[_0x55ec('0x1e')](_0x216fcb){if(_0x55ec('0x2')!=typeof _0x216fcb)throw new _0x2a358e(_0x55ec('0x10'));this['p']['add'](_0x216fcb);}[_0x55ec('0x1c')](){const _0x42fa52=this['editor'][_0x55ec('0x1a')][_0x55ec('0x6')](_0x55ec('0x13'));_0x42fa52[_0x55ec('0x14')]=this['k'](),_0x42fa52[_0x55ec('0xe')]=_0x42fa52[_0x55ec('0x14')][0x0]||null;}get['g'](){const _0x292f94=new Map();for(const _0xa78fac of Array[_0x55ec('0xc')](this['p']))for(const [_0x338093,_0x2bb3b1]of _0xa78fac())_0x292f94[_0x55ec('0x1')](_0x338093,_0x2bb3b1);return _0x292f94;}['k'](){const _0x16329e=[],_0x45378d=this[_0x55ec('0x1f')][_0x55ec('0x9')][_0x55ec('0xb')][_0x55ec('0xf')],_0x4e49ce=Array[_0x55ec('0xc')](_0x45378d['getRanges']());for(const [_0xe46895,_0x186b8a]of this['g']){const _0x695aa0=_0x3baeed(_0x186b8a);_0x695aa0&&_0x16329e[_0x55ec('0x24')]([_0xe46895,_0x695aa0]);}function _0x3baeed(_0x27f072){for(const _0x31a0bf of _0x27f072)for(const _0x5d0aa1 of _0x4e49ce)if(_0x31a0bf['containsRange'](_0x5d0aa1,!_0x45378d[_0x55ec('0x4')]))return _0x31a0bf;return null;}return _0x16329e[_0x55ec('0x8')]((_0x1bbc9b,_0x24f101)=>{const _0x257121=_0x1bbc9b[0x1],_0x52c52d=_0x24f101[0x1];return _0x257121['containsRange'](_0x52c52d)?0x1:_0x52c52d['containsRange'](_0x257121)?-0x1:0x0;})[_0x55ec('0x22')](_0x2c80f1=>_0x2c80f1[0x0]);}} | ||
import _0x11a6a3 from'@ckeditor/ckeditor5-core/src/plugin';import _0x1a99d7 from'./annotations';import _0x573c65 from'./inlineannotations';import _0x5732bf from'@ckeditor/ckeditor5-utils/src/ckeditorerror';import{debounce as _0x51555f}from'lodash-es';export default class l extends _0x11a6a3{static get['requires'](){return[_0x1a99d7,_0x573c65];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0xb3cbe5){super(_0xb3cbe5),this['p']=new Set();}['init'](){const _0x512d38=this['editor'],_0x43f057=_0x512d38['plugins']['get']('Annotations'),_0x2bc436=_0x512d38['model']['document']['selection'],_0x3ae6b4=_0x51555f(()=>this['refreshSelectedViews'](),0xa);_0x2bc436['on']('change:range',(_0x2d9a31,_0xf405d4)=>{_0xf405d4['directChange']&&(_0x3ae6b4['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x512d38['editing']['view']['document'],'change:isFocused',(_0x2118f7,_0x17b0ff,_0x3ab527)=>{_0x3ab527&&_0x3ae6b4();}),this['listenTo'](_0x512d38['ui']['focusTracker'],'change:isFocused',(_0x43bfed,_0x15634d,_0x3f7955)=>{_0x3f7955||_0x512d38['isReadOnly']||this['g']['has'](_0x43f057['activeView'])&&(_0x43f057['activeView']=null);}),_0x43f057['focusTracker']['on']('change:isFocused',(_0x45b0a0,_0x3c6862,_0x554f01)=>{!_0x554f01&&_0x512d38['editing']['view']['hasDomSelection']&&(_0x3ae6b4['cancel'](),this['refreshSelectedViews'](),_0x45b0a0['stop']());},{'priority':'high'}),this['listenTo'](this['editor']['ui'],'update',()=>_0x43f057['refresh']());const _0x21b2df=new Set();this['listenTo'](_0x43f057['items'],'add',(_0x19c0d4,_0x247d8a)=>{for(const _0x1627ca of this['g']['keys']())if(_0x1627ca===_0x247d8a['customView']){_0x512d38['ui']['focusTracker']['add'](_0x247d8a['element']),_0x21b2df['add'](_0x247d8a);break;}}),this['listenTo'](_0x43f057['items'],'remove',(_0x38ae2f,_0x494ab0)=>{_0x21b2df['has'](_0x494ab0)&&(_0x512d38['ui']['focusTracker']['remove'](_0x494ab0['element']),_0x21b2df['delete'](_0x494ab0));});}['addSourceCollector'](_0x523572){if('function'!=typeof _0x523572)throw new _0x5732bf('editorannotations-invalid-source-callback:\x20Function\x20required.');this['p']['add'](_0x523572);}['refreshSelectedViews'](){const _0x122ba7=this['editor']['plugins']['get']('Annotations');_0x122ba7['selectedViews']=this['k'](),_0x122ba7['activeView']=_0x122ba7['selectedViews'][0x0]||null;}get['g'](){const _0x5d0f42=new Map();for(const _0xcfda46 of Array['from'](this['p']))for(const [_0x17ab8d,_0xf9c07c]of _0xcfda46())_0x5d0f42['set'](_0x17ab8d,_0xf9c07c);return _0x5d0f42;}['k'](){const _0x5e7c70=[],_0x13dc6e=this['editor']['model']['document']['selection'],_0x33d190=Array['from'](_0x13dc6e['getRanges']());for(const [_0x41e964,_0x30823b]of this['g']){const _0x16c14e=_0x4b6bad(_0x30823b);_0x16c14e&&_0x5e7c70['push']([_0x41e964,_0x16c14e]);}function _0x4b6bad(_0x1b6b7d){for(const _0x27c692 of _0x1b6b7d)for(const _0x4c1536 of _0x33d190)if(_0x27c692['containsRange'](_0x4c1536,!_0x13dc6e['isCollapsed']))return _0x27c692;return null;}return _0x5e7c70['sort']((_0x5a8f78,_0x2e1ac9)=>{const _0x3c1891=_0x5a8f78[0x1],_0x3bbcbe=_0x2e1ac9[0x1];return _0x3c1891['containsRange'](_0x3bbcbe)?0x1:_0x3bbcbe['containsRange'](_0x3c1891)?-0x1:0x0;})['map'](_0x30651e=>_0x30651e[0x0]);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x1a32=['customView','context','register','destroy','items','editor','view','isFocused','pluginName','Annotations','focusTracker','inlineannotations-detach-not-attached:\x20Cannot\x20detach\x20a\x20UI\x20if\x20it\x20is\x20not\x20attached.','mousedown','change:height','Esc','init','inlineannotations-not-allowed-with-context:\x20Cannot\x20switch\x20Annotations\x20UI\x20to\x20`InlineAnnotations`\x20when\x20using\x20`Context`.','change:activeView','change:selectedViews','listenTo','has','plugins','focus','clear','visibleView','document','delete','isAttached','hasView','get','includes','getTarget','remove','change:isFocused','getAnnotationView','editing','keystrokes','attach','stopListening','targetRect','showStack','inline','add','detach','addObserver','update','change:visibleView','updatePosition','InlineAnnotations','activeView'];(function(_0x126aa2,_0x4e1cba){const _0x1139ae=function(_0x2d2266){while(--_0x2d2266){_0x126aa2['push'](_0x126aa2['shift']());}};_0x1139ae(++_0x4e1cba);}(_0x1a32,0x6c));const _0x1777=function(_0x126aa2,_0x4e1cba){_0x126aa2=_0x126aa2-0x0;let _0x1139ae=_0x1a32[_0x126aa2];return _0x1139ae;};import _0x152d18 from'@ckeditor/ckeditor5-core/src/plugin';import _0x34a8d6 from'../annotations/annotations';import _0x81df71 from'./editorannotations';import _0x5b1760 from'@ckeditor/ckeditor5-ui/src/panel/balloon/contextualballoon';import _0x313262 from'@ckeditor/ckeditor5-engine/src/view/observer/mouseobserver';import _0x46cebd from'@ckeditor/ckeditor5-utils/src/ckeditorerror';import'./../../theme/annotation-inline.css';export default class f extends _0x152d18{static get['requires'](){return[_0x34a8d6,_0x81df71,_0x5b1760];}static get[_0x1777('0x0')](){return _0x1777('0x28');}constructor(_0x42dcad){super(_0x42dcad),_0x42dcad[_0x1777('0x1b')][_0x1777('0x30')][_0x1777('0x24')](_0x313262),this['isAttached']=!0x1,this['v']=new Set(),this['A']=_0x42dcad[_0x1777('0xd')][_0x1777('0x15')](_0x5b1760),this['I']=new Set();}[_0x1777('0x7')](){const _0x26c7c6=this[_0x1777('0x2f')][_0x1777('0xd')][_0x1777('0x15')](_0x34a8d6);_0x26c7c6[_0x1777('0x2b')]===this[_0x1777('0x2f')]&&(_0x26c7c6[_0x1777('0x2c')](_0x1777('0x21'),this),this[_0x1777('0x2f')][_0x1777('0x1c')]['set']('Esc',(_0x2a39ae,_0x1d7804)=>{const _0x5adde7=this['A'];this['isAttached']&&_0x5adde7['visibleView']&&_0x26c7c6[_0x1777('0x2e')][_0x1777('0xc')](_0x5adde7['visibleView'])&&(this['v'][_0x1777('0x22')](_0x5adde7[_0x1777('0x10')]),this['C'](_0x5adde7['visibleView']),_0x1d7804());}));}['afterInit'](){const _0x26ce1a=this[_0x1777('0x2f')][_0x1777('0xd')][_0x1777('0x15')](_0x34a8d6);_0x26ce1a[_0x1777('0x2b')]===this[_0x1777('0x2f')]&&(_0x26ce1a['uiType']||_0x26ce1a['switchTo']('inline'));}[_0x1777('0x2d')](){this[_0x1777('0x13')]&&this[_0x1777('0x23')]();}[_0x1777('0x1d')](){const _0x45ebc0=this['editor'][_0x1777('0xd')]['get'](_0x1777('0x1')),_0x2efa7b=this['A'];if(this[_0x1777('0x13')])throw new _0x46cebd('inlineannotations-attach-already-attached:\x20Cannot\x20attach\x20the\x20same\x20annotation\x20twice.',this);if(_0x45ebc0[_0x1777('0x2b')]!==this[_0x1777('0x2f')])throw new _0x46cebd(_0x1777('0x8'),this);this[_0x1777('0xb')](this[_0x1777('0x2f')]['ui'][_0x1777('0x2')],_0x1777('0x19'),(_0x3d0071,_0x82072d,_0x4bb568)=>{if(!_0x4bb568)for(const _0x503680 of _0x45ebc0[_0x1777('0x2e')])this['C'](_0x503680);}),this[_0x1777('0xb')](_0x45ebc0[_0x1777('0x2e')],_0x1777('0x18'),(_0x48e5ab,_0x4d68af)=>{this['C'](_0x4d68af);}),this[_0x1777('0xb')](_0x45ebc0,_0x1777('0xa'),(_0x13ffe6,_0x5e964a,_0x18893d,_0x349857)=>{for(const _0x11fdd9 of _0x349857)_0x18893d[_0x1777('0x16')](_0x11fdd9)||this['v']['delete'](_0x45ebc0[_0x1777('0x1a')](_0x11fdd9));for(const _0x21367e of _0x45ebc0['items'])_0x18893d[_0x1777('0x16')](_0x21367e[_0x1777('0x2a')])||this['C'](_0x21367e);if(this[_0x1777('0x2f')]['ui'][_0x1777('0x2')]['isFocused'])for(const _0x6a52d1 of _0x18893d)this['V'](_0x45ebc0['getAnnotationView'](_0x6a52d1));}),this[_0x1777('0xb')](_0x45ebc0,_0x1777('0x9'),(_0x245ea,_0x2c83cb,_0x1d1f12)=>{_0x1d1f12&&this['editor']['ui']['focusTracker'][_0x1777('0x31')]&&this['V'](_0x45ebc0['getAnnotationView'](_0x1d1f12),!0x0);}),this[_0x1777('0xb')](_0x2efa7b,_0x1777('0x26'),(_0x203215,_0x3f59fc,_0x231f34,_0x22f51d)=>{_0x22f51d&&this[_0x1777('0x1e')](_0x22f51d),_0x231f34&&_0x45ebc0[_0x1777('0x2e')][_0x1777('0xc')](_0x231f34)&&(this[_0x1777('0xb')](_0x231f34,_0x1777('0x5'),()=>_0x2efa7b[_0x1777('0x27')]()),this[_0x1777('0xb')](_0x231f34,_0x1777('0x6'),()=>{this['v']['add'](_0x231f34),this['C'](_0x231f34),this[_0x1777('0x2f')]['editing'][_0x1777('0x30')][_0x1777('0xe')]();}),_0x45ebc0[_0x1777('0x29')]!==_0x231f34[_0x1777('0x2a')]&&(_0x45ebc0[_0x1777('0x29')]=_0x231f34[_0x1777('0x2a')]));}),this[_0x1777('0xb')](this[_0x1777('0x2f')]['ui'],_0x1777('0x25'),()=>{_0x2efa7b[_0x1777('0x10')]&&_0x45ebc0[_0x1777('0x2e')]['has'](_0x2efa7b[_0x1777('0x10')])&&_0x2efa7b['updatePosition']();}),this[_0x1777('0xb')](this[_0x1777('0x2f')][_0x1777('0x1b')][_0x1777('0x30')][_0x1777('0x11')],_0x1777('0x4'),()=>{this['v'][_0x1777('0xf')](),_0x45ebc0['refresh']();}),this['isAttached']=!0x0;}[_0x1777('0x23')](){if(!this['isAttached'])throw new _0x46cebd(_0x1777('0x3'),this);const _0x5940f6=this[_0x1777('0x2f')]['plugins']['get'](_0x1777('0x1')),_0x83b853=this['A'];for(const _0x5cacfe of this['I'])this['C'](_0x5cacfe);this[_0x1777('0x1e')](_0x5940f6[_0x1777('0x2e')]),this[_0x1777('0x1e')](_0x5940f6),this[_0x1777('0x1e')](_0x83b853),this[_0x1777('0x1e')](this[_0x1777('0x2f')]['ui']),this[_0x1777('0x1e')](this[_0x1777('0x2f')]['ui'][_0x1777('0x2')]),this[_0x1777('0x1e')](this[_0x1777('0x2f')][_0x1777('0x1b')][_0x1777('0x30')][_0x1777('0x11')]),this[_0x1777('0x13')]=!0x1;}['V'](_0x6c6803,_0x32ed83){const _0x203a55=this[_0x1777('0x2f')][_0x1777('0xd')][_0x1777('0x15')](_0x34a8d6);this['v'][_0x1777('0xc')](_0x6c6803)||(this['I'][_0x1777('0xc')](_0x6c6803)||this['A']['hasView'](_0x6c6803)||(this['I'][_0x1777('0x22')](_0x6c6803),this['A'][_0x1777('0x22')]({'stackId':_0x6c6803['id'],'view':_0x6c6803,'position':{'target':()=>_0x203a55[_0x1777('0x17')](_0x6c6803[_0x1777('0x2a')])||_0x6c6803[_0x1777('0x1f')]}})),_0x32ed83&&this['A'][_0x1777('0x20')](_0x6c6803['id']));}['C'](_0x18aed2){this['I'][_0x1777('0xc')](_0x18aed2)&&this['A'][_0x1777('0x14')](_0x18aed2)&&(this['I'][_0x1777('0x12')](_0x18aed2),this['A'][_0x1777('0x18')](_0x18aed2));}} | ||
import _0x48920f from'@ckeditor/ckeditor5-core/src/plugin';import _0xd6d224 from'../annotations/annotations';import _0x26b62d from'./editorannotations';import _0x77e87f from'@ckeditor/ckeditor5-ui/src/panel/balloon/contextualballoon';import _0x48796b from'@ckeditor/ckeditor5-engine/src/view/observer/mouseobserver';import _0x20966d from'@ckeditor/ckeditor5-utils/src/ckeditorerror';import'./../../theme/annotation-inline.css';export default class f extends _0x48920f{static get['requires'](){return[_0xd6d224,_0x26b62d,_0x77e87f];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x2e6f74){super(_0x2e6f74),_0x2e6f74['editing']['view']['addObserver'](_0x48796b),this['isAttached']=!0x1,this['v']=new Set(),this['A']=_0x2e6f74['plugins']['get'](_0x77e87f),this['I']=new Set();}['init'](){const _0x45a854=this['editor']['plugins']['get'](_0xd6d224);_0x45a854['context']===this['editor']&&(_0x45a854['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x269d83,_0x1d38f7)=>{const _0x1962c4=this['A'];this['isAttached']&&_0x1962c4['visibleView']&&_0x45a854['items']['has'](_0x1962c4['visibleView'])&&(this['v']['add'](_0x1962c4['visibleView']),this['C'](_0x1962c4['visibleView']),_0x1d38f7());}));}['afterInit'](){const _0x47c876=this['editor']['plugins']['get'](_0xd6d224);_0x47c876['context']===this['editor']&&(_0x47c876['uiType']||_0x47c876['switchTo']('inline'));}['destroy'](){this['isAttached']&&this['detach']();}['attach'](){const _0x2a4220=this['editor']['plugins']['get']('Annotations'),_0x43c061=this['A'];if(this['isAttached'])throw new _0x20966d('inlineannotations-attach-already-attached:\x20Cannot\x20attach\x20the\x20same\x20annotation\x20twice.',this);if(_0x2a4220['context']!==this['editor'])throw new _0x20966d('inlineannotations-not-allowed-with-context:\x20Cannot\x20switch\x20Annotations\x20UI\x20to\x20`InlineAnnotations`\x20when\x20using\x20`Context`.',this);this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3fdfce,_0x1f154f,_0x5760c3)=>{if(!_0x5760c3)for(const _0x2753cd of _0x2a4220['items'])this['C'](_0x2753cd);}),this['listenTo'](_0x2a4220['items'],'remove',(_0x4cca71,_0xac4065)=>{this['C'](_0xac4065);}),this['listenTo'](_0x2a4220,'change:selectedViews',(_0x303ac2,_0x22dcc6,_0x403e9c,_0x5a2d34)=>{for(const _0xcf87fc of _0x5a2d34)_0x403e9c['includes'](_0xcf87fc)||this['v']['delete'](_0x2a4220['getAnnotationView'](_0xcf87fc));for(const _0x91bb1f of _0x2a4220['items'])_0x403e9c['includes'](_0x91bb1f['customView'])||this['C'](_0x91bb1f);if(this['editor']['ui']['focusTracker']['isFocused'])for(const _0x292fac of _0x403e9c)this['V'](_0x2a4220['getAnnotationView'](_0x292fac));}),this['listenTo'](_0x2a4220,'change:activeView',(_0x4acdbe,_0x1f75a1,_0x744ffe)=>{_0x744ffe&&this['editor']['ui']['focusTracker']['isFocused']&&this['V'](_0x2a4220['getAnnotationView'](_0x744ffe),!0x0);}),this['listenTo'](_0x43c061,'change:visibleView',(_0x12ec23,_0x1645c3,_0x3c4e5d,_0x3b55a3)=>{_0x3b55a3&&this['stopListening'](_0x3b55a3),_0x3c4e5d&&_0x2a4220['items']['has'](_0x3c4e5d)&&(this['listenTo'](_0x3c4e5d,'change:height',()=>_0x43c061['updatePosition']()),this['listenTo'](_0x3c4e5d,'Esc',()=>{this['v']['add'](_0x3c4e5d),this['C'](_0x3c4e5d),this['editor']['editing']['view']['focus']();}),_0x2a4220['activeView']!==_0x3c4e5d['customView']&&(_0x2a4220['activeView']=_0x3c4e5d['customView']));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x43c061['visibleView']&&_0x2a4220['items']['has'](_0x43c061['visibleView'])&&_0x43c061['updatePosition']();}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['v']['clear'](),_0x2a4220['refresh']();}),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x20966d('inlineannotations-detach-not-attached:\x20Cannot\x20detach\x20a\x20UI\x20if\x20it\x20is\x20not\x20attached.',this);const _0x266e02=this['editor']['plugins']['get']('Annotations'),_0xd8e423=this['A'];for(const _0x656c5e of this['I'])this['C'](_0x656c5e);this['stopListening'](_0x266e02['items']),this['stopListening'](_0x266e02),this['stopListening'](_0xd8e423),this['stopListening'](this['editor']['ui']),this['stopListening'](this['editor']['ui']['focusTracker']),this['stopListening'](this['editor']['editing']['view']['document']),this['isAttached']=!0x1;}['V'](_0x31baa2,_0xf424af){const _0x29cbef=this['editor']['plugins']['get'](_0xd6d224);this['v']['has'](_0x31baa2)||(this['I']['has'](_0x31baa2)||this['A']['hasView'](_0x31baa2)||(this['I']['add'](_0x31baa2),this['A']['add']({'stackId':_0x31baa2['id'],'view':_0x31baa2,'position':{'target':()=>_0x29cbef['getTarget'](_0x31baa2['customView'])||_0x31baa2['targetRect']}})),_0xf424af&&this['A']['showStack'](_0x31baa2['id']));}['C'](_0x2be3b3){this['I']['has'](_0x2be3b3)&&this['A']['hasView'](_0x2be3b3)&&(this['I']['delete'](_0x2be3b3),this['A']['remove'](_0x2be3b3));}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x2dfc=['high','change:activeView','ck-sidebar--narrow','unpin','southArrowNorth','create','has','isVisible','bind','content','balloonPanelView','defaultPositions','from','list','contains','add','number','attach','delete','mousedown','off','stopPropagation','detach','detachFromDom','items','change:height','view','execute','plugins','keyCode','values','_detachFromContainer','preventDefault','Esc','southArrowNorthWest','element','narrowSidebar','getAnnotationView','_annotationViewToNarrowView','context','isAnimationDisabled','target','northArrowSouthEast','_attachToContainer','customView','pluginName','stopListening','Annotations','clear','init','listenTo','length','annotationType','attachToDom','type','southArrowNorthEast','NarrowSidebar','pin','Sidebar','refresh','addView','getSidebarItemView','hasChanges','register','bindTo','destroy','locale','includes','activeView','change:selectedViews','bodyCollection','get','first','northArrowSouth','narrowsidebar-attach-already-attached:\x20Cannot\x20attach\x20narrow\x20sidebar\x20twice.','isAttached'];(function(_0x3f8f62,_0x571421){const _0x255882=function(_0x31aca2){while(--_0x31aca2){_0x3f8f62['push'](_0x3f8f62['shift']());}};_0x255882(++_0x571421);}(_0x2dfc,0x125));const _0x4b19=function(_0x3f8f62,_0x571421){_0x3f8f62=_0x3f8f62-0x0;let _0x255882=_0x2dfc[_0x3f8f62];return _0x255882;};import _0x293c84 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x17dd25 from'./annotations';import _0x1a1aec from'./sidebar';import _0x4ddd8d from'./view/annotationcounterbuttonview';import _0x56177 from'@ckeditor/ckeditor5-ui/src/panel/balloon/balloonpanelview';import _0x460e5b from'@ckeditor/ckeditor5-ui/src/editorui/bodycollection';import _0x4dabf5 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';import _0x486a03 from'@ckeditor/ckeditor5-utils/src/dom/emittermixin';import{keyCodes as _0x20d818}from'@ckeditor/ckeditor5-utils/src/keyboard';import'../../theme/sidebar-narrow.css';export default class x extends _0x293c84{static get['requires'](){return[_0x1a1aec,_0x17dd25];}static get[_0x4b19('0x38')](){return _0x4b19('0x43');}constructor(_0x1f6a25){super(_0x1f6a25),this[_0x4b19('0xa')]=!0x1,this['v']=new Set(),this['S']=Object[_0x4b19('0x10')](_0x486a03),this[_0x4b19('0x31')]=new Map();}[_0x4b19('0x3c')](){this['context'][_0x4b19('0x27')][_0x4b19('0x6')]('Annotations')[_0x4b19('0x4a')](_0x4b19('0x2f'),this),this['bodyCollection']=new _0x460e5b(this[_0x4b19('0x32')][_0x4b19('0x1')]),this['bodyCollection'][_0x4b19('0x40')](),this[_0x4b19('0x15')]=new _0x56177(this[_0x4b19('0x32')][_0x4b19('0x1')]),this[_0x4b19('0x5')][_0x4b19('0x1a')](this[_0x4b19('0x15')]);}['attach'](){const _0x29a03d=this[_0x4b19('0x32')]['plugins']['get']('Sidebar'),_0x1676fe=this[_0x4b19('0x32')][_0x4b19('0x27')][_0x4b19('0x6')](_0x4b19('0x3a')),_0x4600d1=this['balloonPanelView'];if(this[_0x4b19('0xa')])throw new _0x4dabf5(_0x4b19('0x9'),this);this[_0x4b19('0xa')]=!0x0,this[_0x4b19('0x3d')](_0x29a03d,'set:container',()=>{this[_0x4b19('0x21')](),this[_0x4b19('0x3d')](_0x29a03d,'change:container',_0x5d6fbc=>{_0x5d6fbc[_0x4b19('0x1f')](),this[_0x4b19('0x1c')]();});}),_0x29a03d[_0x4b19('0x36')]({'viewClass':_0x4b19('0xd'),'spaceBetweenItems':0x5}),_0x29a03d['view'][_0x4b19('0x18')][_0x4b19('0x4b')](_0x1676fe[_0x4b19('0x23')])['using'](_0x3ef555=>{const _0x3e8433=new _0x4ddd8d(this['context'][_0x4b19('0x1')]),_0x534017=_0x29a03d[_0x4b19('0x47')](_0x3ef555,_0x3e8433);return this[_0x4b19('0x31')]['set'](_0x3ef555,_0x3e8433),_0x3e8433[_0x4b19('0x13')]('hasChanges',_0x4b19('0x3f'),_0x4b19('0x1b'))['to'](_0x3ef555,_0x4b19('0x49'),_0x4b19('0x41'),_0x4b19('0x3e')),_0x3e8433['on'](_0x4b19('0x26'),()=>{this['v'][_0x4b19('0x3b')](),_0x4600d1[_0x4b19('0x14')][_0x4b19('0x7')]!==_0x3ef555?(this['_'](_0x3ef555),_0x3ef555[_0x4b19('0x2e')]['focus'](),_0x1676fe[_0x4b19('0x3')]=_0x3ef555[_0x4b19('0x37')]):this['B']();}),_0x534017;}),this[_0x4b19('0x3d')](_0x1676fe[_0x4b19('0x23')],'remove',(_0x4eda0b,_0x2b9150)=>{this['_annotationViewToNarrowView'][_0x4b19('0x6')](_0x2b9150)[_0x4b19('0x0')](),this['_annotationViewToNarrowView'][_0x4b19('0x1d')](_0x2b9150);}),this['listenTo'](_0x1676fe,_0x4b19('0xc'),(_0x7861f4,_0xcb4af,_0x7d985c,_0x22e161)=>{if(_0x22e161){const _0x412740=_0x1676fe[_0x4b19('0x30')](_0x22e161);if(!_0x412740)return;_0x29a03d[_0x4b19('0x48')](_0x412740)['isAnimationDisabled']=!0x1;}if(_0x7d985c){const _0x49cb1d=_0x1676fe['getAnnotationView'](_0x7d985c);_0x29a03d['getSidebarItemView'](_0x49cb1d)[_0x4b19('0x33')]=!0x0;}},{'priority':_0x4b19('0xb')}),this['listenTo'](_0x1676fe,_0x4b19('0xc'),(_0x1304d3,_0x45f216,_0xca27a1)=>{const _0x48146c=_0x1676fe[_0x4b19('0x30')](_0xca27a1),_0x465ab2=_0x29a03d['getSidebarItemView'](_0x48146c);_0xca27a1&&_0x465ab2?this['_'](_0x48146c):this['B']();}),this[_0x4b19('0x3d')](_0x1676fe,_0x4b19('0x4'),(_0x2b76f0,_0x2ad317,_0x42382c,_0x464346)=>{for(const _0x4a00a7 of _0x464346)_0x42382c[_0x4b19('0x2')](_0x4a00a7)||this['v']['delete'](_0x1676fe['getAnnotationView'](_0x4a00a7));}),this[_0x4b19('0x3d')](_0x1676fe,_0x4b19('0x46'),()=>{_0x4600d1[_0x4b19('0x12')]&&this['L']();}),this['S'][_0x4b19('0x3d')](document,'keydown',(_0xf33012,_0x4fd06c)=>{_0x4fd06c[_0x4b19('0x28')]===_0x20d818['esc']&&_0x4600d1['isVisible']&&(this['v'][_0x4b19('0x1a')](_0x4600d1['content'][_0x4b19('0x7')]),this['B'](),_0x4fd06c[_0x4b19('0x20')](),_0x4fd06c[_0x4b19('0x2b')]());}),this['S']['listenTo'](document,_0x4b19('0x1e'),(_0x87aa7e,_0x281b09)=>{const _0x145df7=_0x281b09[_0x4b19('0x34')];_0x4600d1[_0x4b19('0x12')]&&_0x4600d1[_0x4b19('0x2e')][_0x4b19('0x19')](_0x145df7)||_0x29a03d[_0x4b19('0x25')][_0x4b19('0x2e')][_0x4b19('0x19')](_0x145df7)||(this['v'][_0x4b19('0x3b')](),this['B']());});}[_0x4b19('0x21')](){if(!this['isAttached'])throw new _0x4dabf5('narrowsidebar-detach-not-attached:\x20Cannot\x20detach\x20not\x20attached\x20sidebar.',this);const _0x207567=this[_0x4b19('0x32')]['plugins']['get'](_0x4b19('0x45'));this['B'](),Array[_0x4b19('0x17')](this[_0x4b19('0x31')][_0x4b19('0x29')](),_0x22667a=>_0x22667a[_0x4b19('0x0')]()),this[_0x4b19('0x31')][_0x4b19('0x3b')](),_0x207567[_0x4b19('0x2a')](),this['stopListening'](),this['S'][_0x4b19('0x39')](),this['isAttached']=!0x1;}[_0x4b19('0x0')](){this[_0x4b19('0xa')]&&this['detach'](),this['bodyCollection'][_0x4b19('0x22')]();}['_'](_0x1612ca){if(this['v']['has'](_0x1612ca))return;const _0x2897a5=this[_0x4b19('0x15')][_0x4b19('0x14')][_0x4b19('0x7')];_0x2897a5!==_0x1612ca?(_0x2897a5&&this['N'](_0x2897a5),this['j'](_0x1612ca),this[_0x4b19('0x15')][_0x4b19('0x14')][_0x4b19('0x3b')](),this[_0x4b19('0x15')][_0x4b19('0x14')]['add'](_0x1612ca),this['L']()):this['L']();}['L'](){const _0x524620=this[_0x4b19('0x15')][_0x4b19('0x14')]['first'];if(!this[_0x4b19('0x31')][_0x4b19('0x11')](_0x524620))return;const _0xe19ab0=this[_0x4b19('0x31')][_0x4b19('0x6')](_0x524620)[_0x4b19('0x2e')],_0x54fa4b=function(){const _0x54de5a=_0x56177[_0x4b19('0x16')];return[_0x54de5a[_0x4b19('0x42')],_0x54de5a[_0x4b19('0x35')],_0x54de5a[_0x4b19('0xf')],_0x54de5a[_0x4b19('0x8')],_0x54de5a[_0x4b19('0x2d')],_0x54de5a['northArrowSouthWest']];}();this[_0x4b19('0x15')][_0x4b19('0x44')]({'target':_0xe19ab0,'positions':_0x54fa4b});}['B'](){const _0x50be72=this[_0x4b19('0x15')],_0x4032a4=_0x50be72[_0x4b19('0x14')][_0x4b19('0x7')];_0x4032a4&&(this['N'](_0x4032a4),_0x50be72[_0x4b19('0xe')](),_0x50be72[_0x4b19('0x14')][_0x4b19('0x3b')]());}['j'](_0x55c44a){this[_0x4b19('0x3d')](_0x55c44a,_0x4b19('0x24'),()=>this['L']()),this['listenTo'](_0x55c44a,_0x4b19('0x2c'),(_0xd42864,_0x15f683)=>{this['v'][_0x4b19('0x1a')](_0x55c44a),this['B'](),_0x15f683();});}['N'](_0x1d759b){this[_0x4b19('0x39')](_0x1d759b);}} | ||
import _0x55e825 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x509077 from'./annotations';import _0x529230 from'./sidebar';import _0x9ec326 from'./view/annotationcounterbuttonview';import _0x477e40 from'@ckeditor/ckeditor5-ui/src/panel/balloon/balloonpanelview';import _0x45e39e from'@ckeditor/ckeditor5-ui/src/editorui/bodycollection';import _0x118d25 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';import _0x33f978 from'@ckeditor/ckeditor5-utils/src/dom/emittermixin';import{keyCodes as _0xd1532e}from'@ckeditor/ckeditor5-utils/src/keyboard';import'../../theme/sidebar-narrow.css';export default class x extends _0x55e825{static get['requires'](){return[_0x529230,_0x509077];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0x356af6){super(_0x356af6),this['isAttached']=!0x1,this['v']=new Set(),this['S']=Object['create'](_0x33f978),this['_annotationViewToNarrowView']=new Map();}['init'](){this['context']['plugins']['get']('Annotations')['register']('narrowSidebar',this),this['bodyCollection']=new _0x45e39e(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['balloonPanelView']=new _0x477e40(this['context']['locale']),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](){const _0x36c364=this['context']['plugins']['get']('Sidebar'),_0x58b65f=this['context']['plugins']['get']('Annotations'),_0x510679=this['balloonPanelView'];if(this['isAttached'])throw new _0x118d25('narrowsidebar-attach-already-attached:\x20Cannot\x20attach\x20narrow\x20sidebar\x20twice.',this);this['isAttached']=!0x0,this['listenTo'](_0x36c364,'set:container',()=>{this['detach'](),this['listenTo'](_0x36c364,'change:container',_0x4b7f50=>{_0x4b7f50['off'](),this['attach']();});}),_0x36c364['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5}),_0x36c364['view']['list']['bindTo'](_0x58b65f['items'])['using'](_0x47ae92=>{const _0x492949=new _0x9ec326(this['context']['locale']),_0x393d20=_0x36c364['addView'](_0x47ae92,_0x492949);return this['_annotationViewToNarrowView']['set'](_0x47ae92,_0x492949),_0x492949['bind']('isDirty','annotationType','number')['to'](_0x47ae92,'isDirty','type','length'),_0x492949['on']('execute',()=>{this['v']['clear'](),_0x510679['content']['first']!==_0x47ae92?(this['_'](_0x47ae92),_0x47ae92['element']['focus'](),_0x58b65f['activeView']=_0x47ae92['customView']):this['B']();}),_0x393d20;}),this['listenTo'](_0x58b65f['items'],'remove',(_0x110d27,_0x33e9ad)=>{this['_annotationViewToNarrowView']['get'](_0x33e9ad)['destroy'](),this['_annotationViewToNarrowView']['delete'](_0x33e9ad);}),this['listenTo'](_0x58b65f,'change:activeView',(_0x3fbbad,_0x8b9d2a,_0x2c06cd,_0x1c7be9)=>{if(_0x1c7be9){const _0x582c7a=_0x58b65f['getAnnotationView'](_0x1c7be9);if(!_0x582c7a)return;_0x36c364['getSidebarItemView'](_0x582c7a)['isAnimationDisabled']=!0x1;}if(_0x2c06cd){const _0x17c2f8=_0x58b65f['getAnnotationView'](_0x2c06cd);_0x36c364['getSidebarItemView'](_0x17c2f8)['isAnimationDisabled']=!0x0;}},{'priority':'high'}),this['listenTo'](_0x58b65f,'change:activeView',(_0x22d633,_0x1d9d8a,_0x1b0d11)=>{const _0x28ce62=_0x58b65f['getAnnotationView'](_0x1b0d11),_0x10f34c=_0x36c364['getSidebarItemView'](_0x28ce62);_0x1b0d11&&_0x10f34c?this['_'](_0x28ce62):this['B']();}),this['listenTo'](_0x58b65f,'change:selectedViews',(_0x3bc5ba,_0xc39e39,_0x2d29d0,_0x40fdd8)=>{for(const _0x1d4621 of _0x40fdd8)_0x2d29d0['includes'](_0x1d4621)||this['v']['delete'](_0x58b65f['getAnnotationView'](_0x1d4621));}),this['listenTo'](_0x58b65f,'refresh',()=>{_0x510679['isVisible']&&this['D']();}),this['S']['listenTo'](document,'keydown',(_0x404c18,_0x58f10d)=>{_0x58f10d['keyCode']===_0xd1532e['esc']&&_0x510679['isVisible']&&(this['v']['add'](_0x510679['content']['first']),this['B'](),_0x58f10d['stopPropagation'](),_0x58f10d['preventDefault']());}),this['S']['listenTo'](document,'mousedown',(_0x11d1dc,_0x5872fb)=>{const _0x4fbcb2=_0x5872fb['target'];_0x510679['isVisible']&&_0x510679['element']['contains'](_0x4fbcb2)||_0x36c364['view']['element']['contains'](_0x4fbcb2)||(this['v']['clear'](),this['B']());});}['detach'](){if(!this['isAttached'])throw new _0x118d25('narrowsidebar-detach-not-attached:\x20Cannot\x20detach\x20not\x20attached\x20sidebar.',this);const _0x3c29af=this['context']['plugins']['get']('Sidebar');this['B'](),Array['from'](this['_annotationViewToNarrowView']['values'](),_0x250e7e=>_0x250e7e['destroy']()),this['_annotationViewToNarrowView']['clear'](),_0x3c29af['_detachFromContainer'](),this['stopListening'](),this['S']['stopListening'](),this['isAttached']=!0x1;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_'](_0x1ef1f1){if(this['v']['has'](_0x1ef1f1))return;const _0x29be2c=this['balloonPanelView']['content']['first'];_0x29be2c!==_0x1ef1f1?(_0x29be2c&&this['L'](_0x29be2c),this['N'](_0x1ef1f1),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x1ef1f1),this['D']()):this['D']();}['D'](){const _0x1b3471=this['balloonPanelView']['content']['first'];if(!this['_annotationViewToNarrowView']['has'](_0x1b3471))return;const _0x26e708=this['_annotationViewToNarrowView']['get'](_0x1b3471)['element'],_0x4a4958=function(){const _0x3f6f9e=_0x477e40['defaultPositions'];return[_0x3f6f9e['southArrowNorthEast'],_0x3f6f9e['northArrowSouthEast'],_0x3f6f9e['southArrowNorth'],_0x3f6f9e['northArrowSouth'],_0x3f6f9e['southArrowNorthWest'],_0x3f6f9e['northArrowSouthWest']];}();this['balloonPanelView']['pin']({'target':_0x26e708,'positions':_0x4a4958});}['B'](){const _0x5269dd=this['balloonPanelView'],_0x18247b=_0x5269dd['content']['first'];_0x18247b&&(this['L'](_0x18247b),_0x5269dd['unpin'](),_0x5269dd['content']['clear']());}['N'](_0x70dfc3){this['listenTo'](_0x70dfc3,'change:height',()=>this['D']()),this['listenTo'](_0x70dfc3,'Esc',(_0xc83ce9,_0xab9aa8)=>{this['v']['add'](_0x70dfc3),this['B'](),_0xab9aa8();});}['L'](_0x6d7314){this['stopListening'](_0x6d7314);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0xfe26=['sidebar-invalid-layout:\x20Missing\x20positioned\x20container\x20for\x20the\x20editor\x20with\x20a\x20sidebar.','container','remove','stopListening','config','pluginName','customView','Annotations','getIndex','updateHeight','view','getSidebarItemView','plugins','_detachFromContainer','listenTo','sidebar.container','bottom','refresh','delete','bind','last','length','getAnnotationView','init','setContainer','targetTop','destroy','change:top','get','push','parentNode','_lastItem','sidebar-setcontainer-invalid-element:\x20Container\x20element\x20is\x20not\x20a\x20HTMLElement.','list','content','_annotationViewToSidebarItemView','Sidebar','addView','set','resetTop','activeView','items','top','minHeight','locale','context','change:_lastItem','element','targetRect','class'];(function(_0x41ff49,_0x589cd6){const _0xe7d31c=function(_0x332b1f){while(--_0x332b1f){_0x41ff49['push'](_0x41ff49['shift']());}};_0xe7d31c(++_0x589cd6);}(_0xfe26,0x1c3));const _0x59b1=function(_0x41ff49,_0x589cd6){_0x41ff49=_0x41ff49-0x0;let _0xe7d31c=_0xfe26[_0x41ff49];return _0xe7d31c;};import _0x1e6f1b from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x104fbe from'./view/sidebarview';import _0x5376d5 from'./view/sidebaritemview';import _0x261a66 from'../annotations/annotations';import _0x44d9b2 from'@ckeditor/ckeditor5-utils/src/dom/rect';import _0x41342b from'@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor';import{isElement as _0x8cb67d,throttle as _0x50ef0d}from'lodash-es';import _0x58d76a from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class p extends _0x1e6f1b{static get['requires'](){return[_0x261a66];}static get[_0x59b1('0x4')](){return _0x59b1('0x23');}constructor(_0x4c7505){super(_0x4c7505),this['set']('_lastItem'),this['view']=this['M'](),this[_0x59b1('0x25')](_0x59b1('0x0'),null),this['H']=0x19,this['T']=new Map(),this[_0x59b1('0x22')]=new Map();}[_0x59b1('0x16')](){this['R']=this['context'][_0x59b1('0xb')]['get'](_0x59b1('0x6'));const _0x43c45a=this[_0x59b1('0x2c')][_0x59b1('0x3')][_0x59b1('0x1b')](_0x59b1('0xe'));_0x43c45a&&this[_0x59b1('0x17')](_0x43c45a);}['setContainer'](_0x1a6410){if(!_0x8cb67d(_0x1a6410))throw new _0x58d76a(_0x59b1('0x1f'));this[_0x59b1('0x0')]=_0x1a6410;}['_attachToContainer']({viewClass:_0x2ed230='',spaceBetweenItems:_0x8f244e=0x19}={}){const _0xff5a96=this[_0x59b1('0x2c')][_0x59b1('0xb')][_0x59b1('0x1b')](_0x261a66);if(!_0x8cb67d(this[_0x59b1('0x0')]))throw new _0x58d76a('sidebar-attachtocontainer-missing-container:\x20Missing\x20container\x20element.',this);this['container']['appendChild'](this[_0x59b1('0x9')][_0x59b1('0x2e')]),this[_0x59b1('0x9')][_0x59b1('0x30')]=_0x2ed230,this['H']=_0x8f244e,this[_0x59b1('0xd')](_0xff5a96,'change:activeView',(_0x3735e7,_0x3f6d0a,_0x198228)=>{if(_0x198228){const _0x3fdcf6=_0xff5a96[_0x59b1('0x15')](_0x198228),_0x324332=this[_0x59b1('0xa')](_0x3fdcf6);_0x324332&&_0x324332['resetTop']();}}),this[_0x59b1('0xd')](_0xff5a96['items'],_0x59b1('0x1'),(_0x72a3fb,_0x5bb4ad,_0x4f9f2f)=>{this['q'](_0x5bb4ad);const _0x57b642=this['R'][_0x59b1('0x28')][_0x59b1('0x1b')](_0x4f9f2f-0x1),_0x106e9d=this['R']['items']['get'](_0x4f9f2f);_0x57b642&&this[_0x59b1('0xa')](_0x57b642)[_0x59b1('0x26')](),_0x106e9d&&this[_0x59b1('0xa')](_0x106e9d)[_0x59b1('0x26')](),this['F']();}),_0xff5a96[_0x59b1('0x10')]();}[_0x59b1('0xc')](){const _0x5d5880=this['R'];this[_0x59b1('0x2')](),this['view'][_0x59b1('0x2e')][_0x59b1('0x1')]();for(const _0x3e2f88 of _0x5d5880['items'])this['q'](_0x3e2f88);this[_0x59b1('0x9')][_0x59b1('0x20')]['clear'](),this['view'][_0x59b1('0x30')]='',this[_0x59b1('0x1e')]=null,this['W']=null;}[_0x59b1('0x24')](_0x105f5d,_0x320fe2){_0x320fe2||(_0x320fe2=_0x105f5d);const _0x12f133=this['R'],_0x496748=_0x105f5d[_0x59b1('0x5')],_0x42b8e9=_0x12f133['getTarget'](_0x496748),_0x4ff30f=this[_0x59b1('0x0')],_0xd6836f=this['D'](_0x4ff30f,_0x42b8e9);if(!_0xd6836f)throw new _0x58d76a(_0x59b1('0x31'));const _0x2553a8=new _0x5376d5(this[_0x59b1('0x2c')][_0x59b1('0x2b')]);this['T'][_0x59b1('0x25')](_0x2553a8,_0x105f5d),this['_annotationViewToSidebarItemView'][_0x59b1('0x25')](_0x105f5d,_0x2553a8),_0x2553a8[_0x59b1('0x21')]['add'](_0x320fe2),_0x2553a8[_0x59b1('0x12')](_0x59b1('0x18'))['to'](_0x105f5d,_0x59b1('0x2f'),_0x47ba37=>{const _0x1bc069=new _0x44d9b2(_0xd6836f)['top'],_0x45e116=new _0x44d9b2(this[_0x59b1('0x9')][_0x59b1('0x2e')])[_0x59b1('0x29')]-_0x1bc069;return _0x47ba37[_0x59b1('0x29')]-_0x1bc069-_0x45e116;}),this[_0x59b1('0xd')](_0x2553a8,_0x59b1('0x1a'),_0x50ef0d(()=>{if(!_0x2553a8[_0x59b1('0x21')][_0x59b1('0x14')])return;const _0xbaf687=this['G'](_0x2553a8);if(!_0xbaf687)return;const _0x49ff0f=this['T'][_0x59b1('0x1b')](_0xbaf687);_0x12f133[_0x59b1('0x27')]===_0x49ff0f['customView']?this['J'](_0xbaf687,_0x2553a8):this['K'](_0x2553a8,_0xbaf687);},0xa,{'leading':!0x1})),this['listenTo'](_0x2553a8,'change:bottom',_0x50ef0d(()=>{if(!_0x2553a8[_0x59b1('0x21')][_0x59b1('0x14')])return;const _0x4e969b=this['O'](_0x2553a8);if(!_0x4e969b)return;const _0x726835=this['T'][_0x59b1('0x1b')](_0x4e969b);_0x12f133[_0x59b1('0x27')]===_0x726835['customView']?this['K'](_0x4e969b,_0x2553a8):this['J'](_0x2553a8,_0x4e969b);},0xa,{'leading':!0x1}));const _0x13fcc2=this['G'](_0x2553a8);if(_0x13fcc2){this['J'](_0x13fcc2,_0x2553a8)||_0x2553a8[_0x59b1('0x26')]();}else _0x2553a8[_0x59b1('0x26')]();return this['F'](),_0x2553a8;}[_0x59b1('0xa')](_0x3f26e8){return this[_0x59b1('0x22')][_0x59b1('0x1b')](_0x3f26e8);}['destroy'](){this[_0x59b1('0x9')][_0x59b1('0x19')]();}['q'](_0x5e699d){const _0x53a16c=this['getSidebarItemView'](_0x5e699d);this[_0x59b1('0x2')](_0x53a16c),_0x53a16c[_0x59b1('0x19')](),this[_0x59b1('0x22')][_0x59b1('0x11')](_0x5e699d),this['T'][_0x59b1('0x11')](_0x53a16c);}['M'](){const _0x5631b6=new _0x104fbe(this[_0x59b1('0x2c')][_0x59b1('0x2b')]);return _0x5631b6['render'](),this['on'](_0x59b1('0x2d'),(_0x8b59e4,_0x53433a,_0x472736,_0x2a435f)=>{_0x2a435f&&_0x5631b6['unbind']('minHeight'),_0x472736?_0x5631b6[_0x59b1('0x12')](_0x59b1('0x2a'))['to'](_0x472736,_0x59b1('0xf')):_0x5631b6[_0x59b1('0x2a')]=null;}),_0x5631b6;}['F'](){this[_0x59b1('0x1e')]=this['getSidebarItemView'](this['R'][_0x59b1('0x28')][_0x59b1('0x13')]);}['G'](_0x2ae3fe){const _0x2b6047=this['R'][_0x59b1('0x28')],_0x1de266=this['T'][_0x59b1('0x1b')](_0x2ae3fe),_0x1e5f7a=_0x2b6047[_0x59b1('0x1b')](_0x2b6047['getIndex'](_0x1de266)-0x1);return this['getSidebarItemView'](_0x1e5f7a);}['O'](_0x278e65){const _0x4d5415=this['R'][_0x59b1('0x28')],_0x3b68b7=this['T'][_0x59b1('0x1b')](_0x278e65),_0x3e7352=_0x4d5415[_0x59b1('0x1b')](_0x4d5415[_0x59b1('0x7')](_0x3b68b7)+0x1);return this['getSidebarItemView'](_0x3e7352);}['K'](_0x395449,_0x4e52f3){_0x395449['updateHeight']();const _0x50425a=S(_0x4e52f3['bottom']+this['H'],_0x395449[_0x59b1('0x29')]);return!!_0x50425a&&(_0x4e52f3[_0x59b1('0x29')]-=_0x50425a,!0x0);}['J'](_0x268dfc,_0x42c026){_0x268dfc[_0x59b1('0x8')]();const _0x4ee17a=S(_0x268dfc['bottom']+this['H'],_0x42c026[_0x59b1('0x29')]);return!!_0x4ee17a&&(_0x42c026[_0x59b1('0x29')]+=_0x4ee17a,!0x0);}['D'](_0x4e7fd8,_0x23e5a1){if(!this['W']){const _0x4def35=V(_0x4e7fd8),_0x3d2a42=V(_0x23e5a1);this['W']=function(_0x130568,_0x8650c3){for(let _0x25fa2d=0x0;_0x25fa2d<_0x130568[_0x59b1('0x14')];_0x25fa2d++)for(let _0x56a037=0x0;_0x56a037<_0x8650c3['length'];_0x56a037++)if(_0x130568[_0x25fa2d]===_0x8650c3[_0x56a037])return _0x130568[_0x25fa2d];}(_0x4def35,_0x3d2a42);}return this['W'];}}function V(_0x2c50bf){const _0x47e6f1=[];let _0x31cc7a=_0x2c50bf;for(;null!==_0x31cc7a;)_0x31cc7a=_0x41342b(_0x31cc7a[_0x59b1('0x1d')]),_0x31cc7a&&_0x47e6f1[_0x59b1('0x1c')](_0x31cc7a);return _0x47e6f1;}function S(_0x595e4f,_0x2a96dd){return Math['max'](_0x595e4f-_0x2a96dd,0x0);} | ||
import _0x2a4f9a from'@ckeditor/ckeditor5-core/src/contextplugin';import _0xbb6019 from'./view/sidebarview';import _0x5e7d9c from'./view/sidebaritemview';import _0x234f02 from'../annotations/annotations';import _0x1299ae from'@ckeditor/ckeditor5-utils/src/dom/rect';import _0x378aa5 from'@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor';import{isElement as _0x11c7b6,throttle as _0x3e8bd2}from'lodash-es';import _0x25c99c from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class p extends _0x2a4f9a{static get['requires'](){return[_0x234f02];}static get['pluginName'](){return'Sidebar';}constructor(_0x47d1cb){super(_0x47d1cb),this['set']('_lastItem'),this['view']=this['M'](),this['set']('container',null),this['H']=0x19,this['T']=new Map(),this['_annotationViewToSidebarItemView']=new Map();}['init'](){this['R']=this['context']['plugins']['get']('Annotations');const _0x3f5ef4=this['context']['config']['get']('sidebar.container');_0x3f5ef4&&this['setContainer'](_0x3f5ef4);}['setContainer'](_0x57fd56){if(!_0x11c7b6(_0x57fd56))throw new _0x25c99c('sidebar-setcontainer-invalid-element:\x20Container\x20element\x20is\x20not\x20a\x20HTMLElement.');this['container']=_0x57fd56;}['_attachToContainer']({viewClass:_0x41c4ea='',spaceBetweenItems:_0x5794f3=0x19}={}){const _0x5577fc=this['context']['plugins']['get'](_0x234f02);if(!_0x11c7b6(this['container']))throw new _0x25c99c('sidebar-attachtocontainer-missing-container:\x20Missing\x20container\x20element.',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x41c4ea,this['H']=_0x5794f3,this['listenTo'](_0x5577fc,'change:activeView',(_0x12ccc6,_0x3221f,_0x1b89ed)=>{if(_0x1b89ed){const _0x57baf5=_0x5577fc['getAnnotationView'](_0x1b89ed),_0x5a07a3=this['getSidebarItemView'](_0x57baf5);_0x5a07a3&&_0x5a07a3['resetTop']();}}),this['listenTo'](_0x5577fc['items'],'remove',(_0x5d31a2,_0x3516dd,_0xcbbe27)=>{this['q'](_0x3516dd);const _0x2813c6=this['R']['items']['get'](_0xcbbe27-0x1),_0x264881=this['R']['items']['get'](_0xcbbe27);_0x2813c6&&this['getSidebarItemView'](_0x2813c6)['resetTop'](),_0x264881&&this['getSidebarItemView'](_0x264881)['resetTop'](),this['F']();}),_0x5577fc['refresh']();}['_detachFromContainer'](){const _0x11df75=this['R'];this['stopListening'](),this['view']['element']['remove']();for(const _0x27dd75 of _0x11df75['items'])this['q'](_0x27dd75);this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null,this['W']=null;}['addView'](_0x5b6599,_0x4e5ea2){_0x4e5ea2||(_0x4e5ea2=_0x5b6599);const _0x419487=this['R'],_0x10ee7f=_0x5b6599['customView'],_0x2002ad=_0x419487['getTarget'](_0x10ee7f),_0x4964e8=this['container'],_0x4671b3=this['j'](_0x4964e8,_0x2002ad);if(!_0x4671b3)throw new _0x25c99c('sidebar-invalid-layout:\x20Missing\x20positioned\x20container\x20for\x20the\x20editor\x20with\x20a\x20sidebar.');const _0x20ef93=new _0x5e7d9c(this['context']['locale']);this['T']['set'](_0x20ef93,_0x5b6599),this['_annotationViewToSidebarItemView']['set'](_0x5b6599,_0x20ef93),_0x20ef93['content']['add'](_0x4e5ea2),_0x20ef93['bind']('targetTop')['to'](_0x5b6599,'targetRect',_0x1bbad0=>{const _0x4b2ed9=new _0x1299ae(_0x4671b3)['top'],_0x36b8d9=new _0x1299ae(this['view']['element'])['top']-_0x4b2ed9;return _0x1bbad0['top']-_0x4b2ed9-_0x36b8d9;}),this['listenTo'](_0x20ef93,'change:top',_0x3e8bd2(()=>{if(!_0x20ef93['content']['length'])return;const _0x1e8657=this['G'](_0x20ef93);if(!_0x1e8657)return;const _0x2bbce6=this['T']['get'](_0x1e8657);_0x419487['activeView']===_0x2bbce6['customView']?this['J'](_0x1e8657,_0x20ef93):this['K'](_0x20ef93,_0x1e8657);},0xa,{'leading':!0x1})),this['listenTo'](_0x20ef93,'change:bottom',_0x3e8bd2(()=>{if(!_0x20ef93['content']['length'])return;const _0x2cdc05=this['O'](_0x20ef93);if(!_0x2cdc05)return;const _0x429f5c=this['T']['get'](_0x2cdc05);_0x419487['activeView']===_0x429f5c['customView']?this['K'](_0x2cdc05,_0x20ef93):this['J'](_0x20ef93,_0x2cdc05);},0xa,{'leading':!0x1}));const _0x4f1b60=this['G'](_0x20ef93);if(_0x4f1b60){this['J'](_0x4f1b60,_0x20ef93)||_0x20ef93['resetTop']();}else _0x20ef93['resetTop']();return this['F'](),_0x20ef93;}['getSidebarItemView'](_0x5bc318){return this['_annotationViewToSidebarItemView']['get'](_0x5bc318);}['destroy'](){this['view']['destroy']();}['q'](_0x18b244){const _0x20279b=this['getSidebarItemView'](_0x18b244);this['stopListening'](_0x20279b),_0x20279b['destroy'](),this['_annotationViewToSidebarItemView']['delete'](_0x18b244),this['T']['delete'](_0x20279b);}['M'](){const _0x511c5f=new _0xbb6019(this['context']['locale']);return _0x511c5f['render'](),this['on']('change:_lastItem',(_0x4f5c74,_0x1455a2,_0x5a06ca,_0x35a807)=>{_0x35a807&&_0x511c5f['unbind']('minHeight'),_0x5a06ca?_0x511c5f['bind']('minHeight')['to'](_0x5a06ca,'bottom'):_0x511c5f['minHeight']=null;}),_0x511c5f;}['F'](){this['_lastItem']=this['getSidebarItemView'](this['R']['items']['last']);}['G'](_0x1f3ddb){const _0x2f61b2=this['R']['items'],_0x1bb294=this['T']['get'](_0x1f3ddb),_0x522283=_0x2f61b2['get'](_0x2f61b2['getIndex'](_0x1bb294)-0x1);return this['getSidebarItemView'](_0x522283);}['O'](_0x3e6759){const _0x4824d5=this['R']['items'],_0x390d07=this['T']['get'](_0x3e6759),_0x38b8a0=_0x4824d5['get'](_0x4824d5['getIndex'](_0x390d07)+0x1);return this['getSidebarItemView'](_0x38b8a0);}['K'](_0x2d06f5,_0x5af5c5){_0x2d06f5['updateHeight']();const _0x1fb4f6=S(_0x5af5c5['bottom']+this['H'],_0x2d06f5['top']);return!!_0x1fb4f6&&(_0x5af5c5['top']-=_0x1fb4f6,!0x0);}['J'](_0x316e44,_0x4a90fd){_0x316e44['updateHeight']();const _0xad71b7=S(_0x316e44['bottom']+this['H'],_0x4a90fd['top']);return!!_0xad71b7&&(_0x4a90fd['top']+=_0xad71b7,!0x0);}['j'](_0x193007,_0x148c40){if(!this['W']){const _0x5be4bc=V(_0x193007),_0x1591ab=V(_0x148c40);this['W']=function(_0x5a4a55,_0x5a792b){for(let _0x5348c0=0x0;_0x5348c0<_0x5a4a55['length'];_0x5348c0++)for(let _0x3b9bf1=0x0;_0x3b9bf1<_0x5a792b['length'];_0x3b9bf1++)if(_0x5a4a55[_0x5348c0]===_0x5a792b[_0x3b9bf1])return _0x5a4a55[_0x5348c0];}(_0x5be4bc,_0x1591ab);}return this['W'];}}function V(_0x3f9199){const _0x27a39f=[];let _0x2dcaff=_0x3f9199;for(;null!==_0x2dcaff;)_0x2dcaff=_0x378aa5(_0x2dcaff),_0x2dcaff&&_0x27a39f['push'](_0x2dcaff);return _0x27a39f;}function S(_0xa5c479,_0x2bd8ff){return Math['max'](_0xa5c479-_0x2bd8ff,0x0);} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x5e00=['set','children','...','ck-annotation-counter__badge','hasChanges','bindTemplate','bind','number','ck-annotation-counter','span','icon','_badge','counterView','ck-annotation-counter__badge--edit-mode','add','annotationType','setTemplate'];(function(_0x4cc05e,_0x224b0d){const _0x38409b=function(_0x2cdc2f){while(--_0x2cdc2f){_0x4cc05e['push'](_0x4cc05e['shift']());}};_0x38409b(++_0x224b0d);}(_0x5e00,0x9a));const _0x41dd=function(_0x4cc05e,_0x224b0d){_0x4cc05e=_0x4cc05e-0x0;let _0x38409b=_0x5e00[_0x4cc05e];return _0x38409b;};import _0xf7a140 from'@ckeditor/ckeditor5-ui/src/button/buttonview';import _0x4f3782 from'@ckeditor/ckeditor5-ui/src/view';import _0xc70056 from'../../../theme/icons/add-comment-inverted.svg';export default class b extends _0xf7a140{constructor(_0x387067){super(_0x387067);const _0x4304db=this[_0x41dd('0x4')];this[_0x41dd('0x10')](_0x41dd('0x3'),!0x1),this[_0x41dd('0x10')]('number',0x0),this[_0x41dd('0x5')](_0x41dd('0xa'))['to'](this,_0x41dd('0x3'),this,_0x41dd('0x6'),(_0x50dbaf,_0x575e0a)=>_0x50dbaf?_0x41dd('0x1'):_0x575e0a),this[_0x41dd('0x10')](_0x41dd('0xe'),''),this[_0x41dd('0x9')]=_0xc70056,this['extendTemplate']({'attributes':{'class':[_0x41dd('0x7')]}}),this[_0x41dd('0xb')]=new _0x4f3782(),this[_0x41dd('0xb')][_0x41dd('0xf')]({'tag':_0x41dd('0x8'),'attributes':{'class':[_0x41dd('0x2'),_0x4304db['to']('annotationType',_0x2cbf29=>'ck-annotation-counter__badge--'+_0x2cbf29),_0x4304db['if']('hasChanges',_0x41dd('0xc'))]},'children':[{'text':_0x4304db['to'](_0x41dd('0xa'))}]}),this[_0x41dd('0x0')][_0x41dd('0xd')](this[_0x41dd('0xb')]);}} | ||
import _0x27b8fd from'@ckeditor/ckeditor5-ui/src/button/buttonview';import _0x595af2 from'@ckeditor/ckeditor5-ui/src/view';import _0x11625d from'../../../theme/icons/add-comment-inverted.svg';export default class b extends _0x27b8fd{constructor(_0x18257f){super(_0x18257f);const _0x32c148=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x267d44,_0x2fe694)=>_0x267d44?'...':_0x2fe694),this['set']('annotationType',''),this['icon']=_0x11625d,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x595af2(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x32c148['to']('annotationType',_0x324544=>'ck-annotation-counter__badge--'+_0x324544),_0x32c148['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x32c148['to']('_badge')}]}),this['children']['add'](this['counterView']);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x5136=['focusTracker','ck-annotation-wrapper','content','element','set','div','type','Esc','focus','targetRect','listenTo','destroy','setTemplate','customView','render','add','keystrokes','length','ck-annotation-wrapper--active','active','bindTemplate','hasChanges','attach','ck-rounded-corners','fire','first'];(function(_0x457c4b,_0x51bcc2){const _0x265601=function(_0x32f022){while(--_0x32f022){_0x457c4b['push'](_0x457c4b['shift']());}};_0x265601(++_0x51bcc2);}(_0x5136,0x11c));const _0x347c=function(_0x457c4b,_0x51bcc2){_0x457c4b=_0x457c4b-0x0;let _0x265601=_0x5136[_0x457c4b];return _0x265601;};import _0x232e1a from'@ckeditor/ckeditor5-ui/src/view';import _0x233052 from'@ckeditor/ckeditor5-utils/src/focustracker';import _0x5c32fa from'@ckeditor/ckeditor5-utils/src/keystrokehandler';import _0x4adc2d from'@ckeditor/ckeditor5-utils/src/uid';import _0x6cc37c from'../../utils/createmutationobserver';export default class s extends _0x232e1a{constructor(_0x16cd54,_0x3017d0){super(_0x16cd54),this['id']=_0x4adc2d(),this['focusTracker']=new _0x233052(),this[_0x347c('0x12')]=new _0x5c32fa(),this[_0x347c('0x12')][_0x347c('0x6')]('Esc',(_0x3bceb4,_0x631529)=>this[_0x347c('0x0')](_0x347c('0x9'),_0x631529)),this[_0x347c('0x6')](_0x347c('0xb'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x347c('0x6')]('height',0x0),this['set'](_0x347c('0x15')),this['set'](_0x347c('0x17')),this['set'](_0x347c('0x13'),0x0),this[_0x347c('0x6')](_0x347c('0x8'),''),this['P']=_0x6cc37c(()=>this['U']()),this['content']=this['createCollection'](),this[_0x347c('0x4')][_0x347c('0x11')](_0x3017d0);const _0x27f045=this[_0x347c('0x16')];this[_0x347c('0xe')]({'tag':_0x347c('0x7'),'attributes':{'class':['ck',_0x347c('0x3'),_0x347c('0x19'),_0x27f045['if']('active',_0x347c('0x14'))],'tabindex':-0x1},'children':this['content']});}get[_0x347c('0xf')](){return this[_0x347c('0x4')][_0x347c('0x1')];}[_0x347c('0x10')](){super[_0x347c('0x10')](),this[_0x347c('0x2')]['add'](this[_0x347c('0x5')]),this[_0x347c('0x12')][_0x347c('0xc')](this[_0x347c('0x5')]),this['P'][_0x347c('0x18')](this[_0x347c('0x5')]);}[_0x347c('0xd')](){this[_0x347c('0x4')]['clear'](),this[_0x347c('0x12')]['destroy'](),this[_0x347c('0x2')][_0x347c('0xd')](),this['P']['detach'](),super['destroy']();}[_0x347c('0xa')](){this[_0x347c('0x5')][_0x347c('0xa')]();}['U'](){const _0x267da1=this[_0x347c('0x5')]['clientHeight'];_0x267da1&&(this['height']=_0x267da1);}} | ||
import _0x5dc39f from'@ckeditor/ckeditor5-ui/src/view';import _0x22ffe9 from'@ckeditor/ckeditor5-utils/src/focustracker';import _0xbdbe26 from'@ckeditor/ckeditor5-utils/src/keystrokehandler';import _0x3297a1 from'@ckeditor/ckeditor5-utils/src/uid';import _0x5dfdd7 from'../../utils/createmutationobserver';export default class s extends _0x5dc39f{constructor(_0x4acddc,_0x500b07){super(_0x4acddc),this['id']=_0x3297a1(),this['focusTracker']=new _0x22ffe9(),this['keystrokes']=new _0xbdbe26(),this['keystrokes']['set']('Esc',(_0x5591d1,_0x144ae6)=>this['fire']('Esc',_0x144ae6)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['P']=_0x5dfdd7(()=>this['U']()),this['content']=this['createCollection'](),this['content']['add'](_0x500b07);const _0x35b61c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x35b61c['if']('isActive','ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}get['customView'](){return this['content']['first'];}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['P']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['P']['detach'](),super['destroy']();}['focus'](){this['element']['focus']();}['U'](){const _0x2c7873=this['element']['clientHeight'];_0x2c7873&&(this['height']=_0x2c7873);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x40ac=['element','bind','div','height','detach','content','createCollection','top','destroy','bindTemplate','ck-sidebar-item--no-animation','isAnimationDisabled','render','resetTop','change:targetTop','updateHeight','targetTop','set','clientHeight','ck-sidebar-item','bottom'];(function(_0x6c873,_0x32a9c1){const _0x160d34=function(_0x1fb781){while(--_0x1fb781){_0x6c873['push'](_0x6c873['shift']());}};_0x160d34(++_0x32a9c1);}(_0x40ac,0x1c6));const _0x82dd=function(_0x6c873,_0x32a9c1){_0x6c873=_0x6c873-0x0;let _0x160d34=_0x40ac[_0x6c873];return _0x160d34;};import _0x587be7 from'@ckeditor/ckeditor5-ui/src/view';import _0x123ac1 from'@ckeditor/ckeditor5-utils/src/dom/tounit';import _0xdfce7e from'../../utils/createmutationobserver';const D=_0x123ac1('px');export default class I extends _0x587be7{constructor(_0x4e2ea8){super(_0x4e2ea8),this[_0x82dd('0x4')](_0x82dd('0xf')),this[_0x82dd('0x4')](_0x82dd('0xb'),0x0),this[_0x82dd('0x9')](_0x82dd('0x7'))['to'](this,_0x82dd('0xf'),this,_0x82dd('0xb'),(_0x59eee8,_0x53a045)=>(_0x59eee8||0x0)+_0x53a045),this[_0x82dd('0x4')]('targetTop',0x0),this['on'](_0x82dd('0x1'),()=>this[_0x82dd('0x0')]()),this[_0x82dd('0x4')](_0x82dd('0x13'),!0x1),this['P']=_0xdfce7e(()=>this[_0x82dd('0x2')]()),this[_0x82dd('0xd')]=this[_0x82dd('0xe')]();const _0x10c8c7=this[_0x82dd('0x11')];this['setTemplate']({'tag':_0x82dd('0xa'),'attributes':{'class':[_0x82dd('0x6'),_0x10c8c7['to']('isAnimationDisabled',_0x1fa77f=>_0x1fa77f?_0x82dd('0x12'):'')],'style':{'top':_0x10c8c7['to'](_0x82dd('0xf'),D)}},'children':this[_0x82dd('0xd')]});}[_0x82dd('0x14')](){super[_0x82dd('0x14')](),this['P']['attach'](this[_0x82dd('0x8')]);}[_0x82dd('0x2')](){const _0xc17ed0=this[_0x82dd('0x8')][_0x82dd('0x5')];_0xc17ed0&&(this[_0x82dd('0xb')]=_0xc17ed0);}['resetTop'](){this[_0x82dd('0xf')]=this[_0x82dd('0x3')];}[_0x82dd('0x10')](){this[_0x82dd('0xd')]['clear'](),this['P'][_0x82dd('0xc')](),super[_0x82dd('0x10')]();}} | ||
import _0x754eb8 from'@ckeditor/ckeditor5-ui/src/view';import _0x1d1a53 from'@ckeditor/ckeditor5-utils/src/dom/tounit';import _0x39557b from'../../utils/createmutationobserver';const z=_0x1d1a53('px');export default class I extends _0x754eb8{constructor(_0x38fd86){super(_0x38fd86),this['set']('top'),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x546779,_0x284187)=>(_0x546779||0x0)+_0x284187),this['set']('targetTop',0x0),this['on']('change:targetTop',()=>this['resetTop']()),this['set']('isAnimationDisabled',!0x1),this['P']=_0x39557b(()=>this['updateHeight']()),this['content']=this['createCollection']();const _0x44ec37=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x44ec37['to']('isAnimationDisabled',_0x18a4d8=>_0x18a4d8?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x44ec37['to']('top',z)}},'children':this['content']});}['render'](){super['render'](),this['P']['attach'](this['element']);}['updateHeight'](){const _0x171399=this['element']['clientHeight'];_0x171399&&(this['height']=_0x171399);}['resetTop'](){this['top']=this['targetTop'];}['destroy'](){this['content']['clear'](),this['P']['detach'](),super['destroy']();}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x5167=['div','class','list','setTemplate','set','minHeight','ck-reset'];(function(_0x5d1674,_0x4a2191){const _0x577a1e=function(_0xd6a8d0){while(--_0xd6a8d0){_0x5d1674['push'](_0x5d1674['shift']());}};_0x577a1e(++_0x4a2191);}(_0x5167,0x73));const _0x2f8e=function(_0x5d1674,_0x4a2191){_0x5d1674=_0x5d1674-0x0;let _0x577a1e=_0x5167[_0x5d1674];return _0x577a1e;};import _0x2dca34 from'@ckeditor/ckeditor5-ui/src/view';import _0x323fd0 from'@ckeditor/ckeditor5-utils/src/dom/tounit';import'../../../theme/sidebar.css';const D=_0x323fd0('px');export default class _ extends _0x2dca34{constructor(_0x58e02c){super(_0x58e02c);const _0x212068=this['bindTemplate'];this['set'](_0x2f8e('0x2'),0x0),this[_0x2f8e('0x1')](_0x2f8e('0x5'),''),this['list']=this['createCollection'](),this[_0x2f8e('0x0')]({'tag':_0x2f8e('0x4'),'attributes':{'class':['ck','ck-sidebar',_0x2f8e('0x3'),_0x212068['to'](_0x2f8e('0x5'))],'style':{'minHeight':_0x212068['to']('minHeight',_0x3485bc=>_0x3485bc?D(_0x3485bc+0xa):null)}},'children':this[_0x2f8e('0x6')]});}} | ||
import _0x3b55ad from'@ckeditor/ckeditor5-ui/src/view';import _0xc380c2 from'@ckeditor/ckeditor5-utils/src/dom/tounit';import'../../../theme/sidebar.css';const z=_0xc380c2('px');export default class _ extends _0x3b55ad{constructor(_0x641045){super(_0x641045);const _0x51304f=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x51304f['to']('class')],'style':{'minHeight':_0x51304f['to']('minHeight',_0x27ba5a=>_0x27ba5a?z(_0x27ba5a+0xa):null)}},'children':this['list']});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x3aaf=['detach','wideSidebar','container','context','list','attach','change:container','widesidebar-detach-not-attached:\x20Cannot\x20detach\x20not\x20attached\x20sidebar.','stopListening','register','addView','bindTo','switchTo','Sidebar','widesidebar-attach-already-attached:\x20Cannot\x20attach\x20wide\x20sidebar\x20twice.','off','ck-sidebar--wide','isAttached','_attachToContainer','Annotations','view','plugins','destroy','listenTo','set:container','get'];(function(_0x31a1b1,_0x4fe71d){const _0x4c3c6f=function(_0x4ce2cc){while(--_0x4ce2cc){_0x31a1b1['push'](_0x31a1b1['shift']());}};_0x4c3c6f(++_0x4fe71d);}(_0x3aaf,0x1da));const _0x5732=function(_0x31a1b1,_0x4fe71d){_0x31a1b1=_0x31a1b1-0x0;let _0x4c3c6f=_0x3aaf[_0x31a1b1];return _0x4c3c6f;};import _0x40b8c6 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x2f27ba from'../annotations/annotations';import _0x360739 from'./sidebar';import _0x137b75 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class q extends _0x40b8c6{static get['requires'](){return[_0x360739,_0x2f27ba];}static get['pluginName'](){return'WideSidebar';}constructor(_0x424eaf){super(_0x424eaf),this[_0x5732('0xb')]=!0x1;}['init'](){const _0x25da7d=this[_0x5732('0x17')]['plugins']['get']('Annotations'),_0x4419fe=this['context'][_0x5732('0xf')][_0x5732('0x13')](_0x5732('0x7'));_0x25da7d[_0x5732('0x3')](_0x5732('0x15'),this),_0x4419fe[_0x5732('0x16')]&&_0x25da7d[_0x5732('0x6')](_0x5732('0x15'));}[_0x5732('0x19')](){const _0x41bb62=this[_0x5732('0x17')]['plugins'][_0x5732('0x13')](_0x5732('0x7')),_0x2deeed=this[_0x5732('0x17')][_0x5732('0xf')][_0x5732('0x13')](_0x5732('0xd'));if(this['isAttached'])throw new _0x137b75(_0x5732('0x8'),this);this[_0x5732('0xb')]=!0x0,this[_0x5732('0x11')](_0x41bb62,_0x5732('0x12'),()=>{this[_0x5732('0x14')](),this[_0x5732('0x11')](_0x41bb62,_0x5732('0x0'),_0x3ce1a6=>{_0x3ce1a6[_0x5732('0x9')](),this[_0x5732('0x19')]();});}),_0x41bb62[_0x5732('0xc')]({'viewClass':_0x5732('0xa')}),_0x41bb62[_0x5732('0xe')][_0x5732('0x18')][_0x5732('0x5')](_0x2deeed['items'])['using'](_0x4bbbed=>_0x41bb62[_0x5732('0x4')](_0x4bbbed));}[_0x5732('0x14')](){if(!this['isAttached'])throw new _0x137b75(_0x5732('0x1'),this);this[_0x5732('0x17')][_0x5732('0xf')][_0x5732('0x13')](_0x5732('0x7'))['_detachFromContainer'](),this[_0x5732('0x2')](),this[_0x5732('0xb')]=!0x1;}[_0x5732('0x10')](){this[_0x5732('0xb')]&&this[_0x5732('0x14')]();}} | ||
import _0x5671cb from'@ckeditor/ckeditor5-core/src/contextplugin';import _0x384ea5 from'../annotations/annotations';import _0x11e1e0 from'./sidebar';import _0x141698 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class N extends _0x5671cb{static get['requires'](){return[_0x11e1e0,_0x384ea5];}static get['pluginName'](){return'WideSidebar';}constructor(_0x1680d6){super(_0x1680d6),this['isAttached']=!0x1;}['init'](){const _0x7be366=this['context']['plugins']['get']('Annotations'),_0x520a90=this['context']['plugins']['get']('Sidebar');_0x7be366['register']('wideSidebar',this),_0x520a90['container']&&_0x7be366['switchTo']('wideSidebar');}['attach'](){const _0xde573a=this['context']['plugins']['get']('Sidebar'),_0x39fac6=this['context']['plugins']['get']('Annotations');if(this['isAttached'])throw new _0x141698('widesidebar-attach-already-attached:\x20Cannot\x20attach\x20wide\x20sidebar\x20twice.',this);this['isAttached']=!0x0,this['listenTo'](_0xde573a,'set:container',()=>{this['detach'](),this['listenTo'](_0xde573a,'change:container',_0x2c4766=>{_0x2c4766['off'](),this['attach']();});}),_0xde573a['_attachToContainer']({'viewClass':'ck-sidebar--wide'}),_0xde573a['view']['list']['bindTo'](_0x39fac6['items'])['using'](_0x13f1cb=>_0xde573a['addView'](_0x13f1cb));}['detach'](){if(!this['isAttached'])throw new _0x141698('widesidebar-detach-not-attached:\x20Cannot\x20detach\x20not\x20attached\x20sidebar.',this);this['context']['plugins']['get']('Sidebar')['_detachFromContainer'](),this['stopListening'](),this['isAttached']=!0x1;}['destroy'](){this['isAttached']&&this['detach']();}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x3c02=['warn','comments-removeComment-deprecated:\x20This\x20API\x20has\x20been\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.','comments-adapter-deprecated:\x20This\x20API\x20has\x20been\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.','getCommentThread','removeComment','comments-getCommentThreads-deprecated:\x20This\x20API\x20has\x20been\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.','adapter','requires','threadId','comments-getCommentThread-deprecated:\x20This\x20API\x20has\x20been\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.','commentId','comments-addCommentThread-deprecated:\x20This\x20API\x20has\x20been\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.','pluginName','addComment','comments-addComment-deprecated:\x20This\x20API\x20has\x20been\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.','get','updateComment','comments-updateComment-deprecated:\x20This\x20API\x20has\x20been\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.','getComment','Comments','plugins','addCommentThread','remove','editor','assign','getCommentThreads'];(function(_0x48e6b6,_0x302c81){const _0x172339=function(_0x38f826){while(--_0x38f826){_0x48e6b6['push'](_0x48e6b6['shift']());}};_0x172339(++_0x302c81);}(_0x3c02,0xf9));const _0x4dec=function(_0x48e6b6,_0x302c81){_0x48e6b6=_0x48e6b6-0x0;let _0x172339=_0x3c02[_0x48e6b6];return _0x172339;};import _0x441b6f from'@ckeditor/ckeditor5-core/src/plugin';import _0xdc07a2 from'./comments/commentsrepository';import _0x88cad7 from'./comments/commentsediting';import _0x297348 from'./comments/commentsui';import _0x44d2e8 from'./commentsonly';import _0xc145b3 from'./annotations/widesidebar';import _0x2f1e13 from'./annotations/narrowsidebar';import _0x1d5939 from'@ckeditor/ckeditor5-collaboration-core/src/utils/get-channel-id';import{attachLinkToDocumentation as _0x4466ee}from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class F extends _0x441b6f{static get[_0x4dec('0x12')](){return[_0xdc07a2,_0x88cad7,_0x297348,_0x44d2e8,_0xc145b3,_0x2f1e13];}static get[_0x4dec('0x17')](){return _0x4dec('0x4');}set[_0x4dec('0x11')](_0x5c6cea){console[_0x4dec('0xb')](_0x4466ee(_0x4dec('0xd'))),this[_0x4dec('0x8')]['plugins'][_0x4dec('0x0')](_0xdc07a2)[_0x4dec('0x11')]=_0x5c6cea;}get[_0x4dec('0x11')](){return console[_0x4dec('0xb')](_0x4466ee(_0x4dec('0xd'))),this[_0x4dec('0x8')][_0x4dec('0x5')]['get'](_0xdc07a2)[_0x4dec('0x11')];}[_0x4dec('0x6')](_0x343a34){console['warn'](_0x4466ee(_0x4dec('0x16')));const _0x1d945f=_0x1d5939(this[_0x4dec('0x8')]['config']);return this[_0x4dec('0x8')]['plugins'][_0x4dec('0x0')](_0xdc07a2)[_0x4dec('0x6')](Object[_0x4dec('0x9')]({},_0x343a34,{'channelId':_0x1d945f}));}['getCommentThread'](..._0x38cb2d){return console['warn'](_0x4466ee(_0x4dec('0x14'))),this[_0x4dec('0x8')][_0x4dec('0x5')][_0x4dec('0x0')](_0xdc07a2)[_0x4dec('0xe')](..._0x38cb2d);}[_0x4dec('0x18')](_0x4c2963){return console[_0x4dec('0xb')](_0x4466ee(_0x4dec('0x19'))),this[_0x4dec('0x8')]['plugins']['get'](_0xdc07a2)['getCommentThread'](_0x4c2963['threadId'])[_0x4dec('0x18')](_0x4c2963);}[_0x4dec('0x1')](_0x9eeef4){console[_0x4dec('0xb')](_0x4466ee(_0x4dec('0x2'))),this[_0x4dec('0x8')][_0x4dec('0x5')]['get'](_0xdc07a2)[_0x4dec('0xe')](_0x9eeef4[_0x4dec('0x13')])[_0x4dec('0x3')](_0x9eeef4[_0x4dec('0x15')])['update'](_0x9eeef4);}[_0x4dec('0xf')](_0x3fefdd){console[_0x4dec('0xb')](_0x4466ee(_0x4dec('0xc'))),this[_0x4dec('0x8')][_0x4dec('0x5')][_0x4dec('0x0')](_0xdc07a2)['getCommentThread'](_0x3fefdd[_0x4dec('0x13')])[_0x4dec('0x3')](_0x3fefdd[_0x4dec('0x15')])[_0x4dec('0x7')]();}['getCommentThreads'](){return console[_0x4dec('0xb')](_0x4466ee(_0x4dec('0x10'))),this['editor'][_0x4dec('0x5')][_0x4dec('0x0')](_0xdc07a2)[_0x4dec('0xa')]({'channelId':_0x1d5939(this[_0x4dec('0x8')]['config']),'toJSON':!0x0,'skipNotAttached':!0x0,'skipEmpty':!0x0});}} | ||
import _0x4c0a81 from'@ckeditor/ckeditor5-core/src/plugin';import _0x216c0b from'./comments/commentsrepository';import _0x4d1482 from'./comments/commentsediting';import _0x5be475 from'./comments/commentsui';import _0x3d75f3 from'./commentsonly';import _0x28b99d from'./annotations/widesidebar';import _0x1a3b7b from'./annotations/narrowsidebar';export default class K extends _0x4c0a81{static get['requires'](){return[_0x216c0b,_0x4d1482,_0x5be475,_0x3d75f3,_0x28b99d,_0x1a3b7b];}static get['pluginName'](){return'Comments';}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x3574=['end','textProxy','addMarker','backward','schema','editor','item','isObject','isEnabled','comment:','execute','document','refresh','getLastMatchingPosition','start','model','selection','createRange','getRanges'];(function(_0x3c4520,_0x40951f){const _0x3b4dde=function(_0x43bab7){while(--_0x43bab7){_0x3c4520['push'](_0x3c4520['shift']());}};_0x3b4dde(++_0x40951f);}(_0x3574,0x1bd));const _0x4a01=function(_0x3c4520,_0x40951f){_0x3c4520=_0x3c4520-0x0;let _0x3b4dde=_0x3574[_0x3c4520];return _0x3b4dde;};import _0x3328ab from'@ckeditor/ckeditor5-core/src/command';import _0x115364 from'@ckeditor/ckeditor5-utils/src/uid';export default class K extends _0x3328ab{[_0x4a01('0x4')](){const _0x4fb0ce=this[_0x4a01('0x10')][_0x4a01('0x7')][_0x4a01('0x3')][_0x4a01('0x8')];for(const _0x331033 of _0x4fb0ce[_0x4a01('0xa')]())if(this['$'](_0x331033))return void(this[_0x4a01('0x0')]=!0x0);this[_0x4a01('0x0')]=!0x1;}[_0x4a01('0x2')]({threadId:_0x281333=_0x115364()}={}){const _0x68ba06=this['editor'][_0x4a01('0x7')];let _0x25f2d8=null;for(const _0x228ed3 of _0x68ba06[_0x4a01('0x3')]['selection']['getRanges']())if(this['$'](_0x228ed3)){_0x25f2d8=this['X'](_0x228ed3);break;}_0x68ba06['change'](_0x3a2db3=>{_0x3a2db3[_0x4a01('0xd')](_0x4a01('0x1')+_0x281333,{'range':_0x25f2d8,'usingOperation':!0x1,'affectData':!0x1});});}['$'](_0x57e6f8){for(const _0x4910d2 of _0x57e6f8['getItems']())if(this['Y'](_0x4910d2))return!0x0;return!0x1;}['Y'](_0xe68aef){return _0xe68aef['is'](_0x4a01('0xc'))||this[_0x4a01('0x10')][_0x4a01('0x7')][_0x4a01('0xf')][_0x4a01('0x12')](_0xe68aef)&&!_0xe68aef['is']('tableCell');}['X'](_0x22c466){const _0x4ced6d=_0x509a04=>!this['Y'](_0x509a04[_0x4a01('0x11')]),_0x24da40=_0x22c466[_0x4a01('0x6')][_0x4a01('0x5')](_0x4ced6d),_0x644cc9=_0x22c466[_0x4a01('0xb')]['getLastMatchingPosition'](_0x4ced6d,{'direction':_0x4a01('0xe')});return this[_0x4a01('0x10')][_0x4a01('0x7')][_0x4a01('0x9')](_0x24da40,_0x644cc9);}} | ||
import _0x2ae781 from'@ckeditor/ckeditor5-core/src/command';import _0x4d3b0f from'@ckeditor/ckeditor5-utils/src/uid';export default class P extends _0x2ae781{['refresh'](){const _0x16e800=this['editor']['model']['document']['selection'];for(const _0x19a00a of _0x16e800['getRanges']())if(this['X'](_0x19a00a))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x3fde92=_0x4d3b0f()}={}){const _0x1132c1=this['editor']['model'];let _0x335e61=null;for(const _0x47e67c of _0x1132c1['document']['selection']['getRanges']())if(this['X'](_0x47e67c)){_0x335e61=this['Y'](_0x47e67c);break;}_0x1132c1['change'](_0x79f1=>{_0x79f1['addMarker']('comment:'+_0x3fde92,{'range':_0x335e61,'usingOperation':!0x1,'affectData':!0x1});});}['X'](_0x118fcb){for(const _0xd3ef of _0x118fcb['getItems']())if(this['Z'](_0xd3ef))return!0x0;return!0x1;}['Z'](_0x2c7b48){return _0x2c7b48['is']('textProxy')||this['editor']['model']['schema']['isObject'](_0x2c7b48)&&!_0x2c7b48['is']('tableCell');}['Y'](_0x464bf0){const _0x4557a3=_0x2fe18c=>!this['Z'](_0x2fe18c['item']),_0x42800b=_0x464bf0['start']['getLastMatchingPosition'](_0x4557a3),_0x58813a=_0x464bf0['end']['getLastMatchingPosition'](_0x4557a3,{'direction':'backward'});return this['editor']['model']['createRange'](_0x42800b,_0x58813a);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0xc63e=['stop','length','markerName','editing','add','schema','activeMarker','change','editingDowncast','_changedMarkers','name','newRange','_detachCommentThread','addCommentThread','managedUsingOperations','editor','delete','removeMarker','affectsData','document','switchReadOnly','root','markerToElement','init','elementToMarker','text','split','CommentsEditing','hasContent','change:activeMarker','addComment','plugins','createUIElement','conversion','getAttribute','isEqual','hasCommentThread','ck-comment-marker','pluginName','change:isThreadsLoadingPaused','config','model','update:comment','_threads','comment','destroy','ready','updateMarker','createPositionBefore','fetchCommentThread','isThreadsLoadingPaused','isCollapsed','for','data','start','isObject','createRange','getCommentThread','get','registerPostFixer','has','isOpening','listenTo','change:isReadOnly','once','requires','low','markers','getWalker','dataDowncast','differ','CommentsRepository','view','size','markerToHighlight','comment:'];(function(_0x2588fc,_0x3b3033){const _0x1fa495=function(_0x31b4b7){while(--_0x31b4b7){_0x2588fc['push'](_0x2588fc['shift']());}};_0x1fa495(++_0x3b3033);}(_0xc63e,0x96));const _0x51f0=function(_0x2588fc,_0x3b3033){_0x2588fc=_0x2588fc-0x0;let _0x1fa495=_0xc63e[_0x2588fc];return _0x1fa495;};import _0x4ad4e8 from'@ckeditor/ckeditor5-core/src/plugin';import _0x2f83f1 from'./commentsrepository';import _0x2adff1 from'./addcommentthreadcommand';import _0x1033b2 from'../utils/getmarkerdomelement';import _0x143662 from'@ckeditor/ckeditor5-collaboration-core/src/utils/get-channel-id';import _0xb18bf1 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class N extends _0x4ad4e8{static get[_0x51f0('0x43')](){return[_0x2f83f1,_0xb18bf1];}static get[_0x51f0('0x28')](){return _0x51f0('0x1d');}constructor(_0x253b61){super(_0x253b61),this['set']('isThreadsLoadingPaused',!0x0),_0x253b61[_0x51f0('0x37')][_0x51f0('0x42')](_0x51f0('0x30'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x51f0('0x8'),null),this['on'](_0x51f0('0x1f'),(_0x3d6bce,_0x21fbfc,_0x25d075,_0x2c0401)=>{_0x253b61[_0x51f0('0x2b')][_0x51f0('0x9')](_0x28fe16=>{_0x253b61[_0x51f0('0x2b')]['markers'][_0x51f0('0x3e')](_0x25d075)&&_0x28fe16[_0x51f0('0x31')](_0x25d075),_0x253b61[_0x51f0('0x2b')][_0x51f0('0x45')][_0x51f0('0x3e')](_0x2c0401)&&_0x28fe16[_0x51f0('0x31')](_0x2c0401);});});}[_0x51f0('0x19')](){const _0x2c1989=this[_0x51f0('0x11')],_0x2b1e1c=_0x2c1989[_0x51f0('0x21')][_0x51f0('0x3c')](_0x51f0('0x49')),_0x4e5ee1=_0x143662(_0x2c1989[_0x51f0('0x2a')]);_0x2c1989['commands'][_0x51f0('0x6')](_0x51f0('0xf'),new _0x2adff1(_0x2c1989)),this[_0x51f0('0x40')](_0x2c1989,_0x51f0('0x41'),(_0x343723,_0x496abb,_0x559d57)=>{_0x2b1e1c[_0x51f0('0x16')](_0x559d57,_0x143662(_0x2c1989[_0x51f0('0x2a')]));}),this[_0x51f0('0x40')](_0x2b1e1c,U('removeCommentThread',_0x4e5ee1),(_0x2b1beb,{threadId:_0x13f23f})=>{const _0xaacaa3=_0x2c1989[_0x51f0('0x2b')][_0x51f0('0x45')]['get'](_0x51f0('0x1')+_0x13f23f),_0x35c8f1=_0x2b1e1c[_0x51f0('0x3b')](_0x13f23f);_0xaacaa3&&_0x2c1989['model'][_0x51f0('0x9')](_0x451222=>{_0x451222[_0x51f0('0x13')](_0xaacaa3);}),_0x2b1e1c[_0x51f0('0x26')](_0x13f23f)&&!_0x35c8f1[_0x51f0('0x3')]||_0x2b1beb[_0x51f0('0x2')]();},{'priority':'high'}),this['listenTo'](_0x2b1e1c,U(_0x51f0('0x20'),_0x4e5ee1),(_0x5ab834,{threadId:_0x2602aa,isFromAdapter:_0x351da4})=>{const _0x4eef7d=_0x2c1989[_0x51f0('0x2b')]['markers'][_0x51f0('0x3c')](_0x51f0('0x1')+_0x2602aa);!_0x351da4&&_0x4eef7d&&_0x2b1e1c[_0x51f0('0x26')](_0x2602aa)&&0x1===_0x2b1e1c[_0x51f0('0x3b')](_0x2602aa)[_0x51f0('0x3')]&&_0x2c1989[_0x51f0('0x2b')][_0x51f0('0x9')](_0x10e937=>{_0x10e937[_0x51f0('0x31')](_0x4eef7d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x51f0('0x44')}),this['Z'](),this['tt']();}[_0x51f0('0x2f')](){const _0x372288=this[_0x51f0('0x11')][_0x51f0('0x21')]['get'](_0x51f0('0x49')),_0x9bddd7=_0x143662(this[_0x51f0('0x11')]['config']);for(const _0x8803f3 of _0x372288['getCommentThreads']({'channelId':_0x9bddd7}))_0x372288[_0x51f0('0xe')](_0x8803f3['id']),_0x372288[_0x51f0('0x2d')][_0x51f0('0x12')](_0x8803f3['id']);super[_0x51f0('0x2f')]();}['Z'](){const _0x2f70b8=this[_0x51f0('0x11')];_0x2f70b8[_0x51f0('0x23')]['for'](_0x51f0('0xa'))[_0x51f0('0x0')]({'model':_0x51f0('0x2e'),'view':_0x3dd139=>{const {id:_0x32a73}=W(_0x3dd139[_0x51f0('0x4')]),_0x24f472=[_0x51f0('0x27')];return this['activeMarker']===_0x3dd139[_0x51f0('0x4')]&&_0x24f472['push']('ck-comment-marker--active'),{'classes':_0x24f472,'attributes':{'data-comment':_0x32a73}};}}),_0x2f70b8[_0x51f0('0x23')][_0x51f0('0x36')](_0x51f0('0x47'))[_0x51f0('0x18')]({'model':_0x51f0('0x2e'),'view':(_0x53b26e,_0x42ee7b)=>{const _0x5a0872=_0x2f70b8[_0x51f0('0x2b')][_0x51f0('0x45')][_0x51f0('0x3c')](_0x53b26e[_0x51f0('0x4')]),_0x540ea8=W(_0x53b26e['markerName'])['id'];if(_0x5a0872[_0x51f0('0x14')])return _0x42ee7b[_0x51f0('0x22')](_0x51f0('0x2e'),{'id':_0x540ea8,'type':_0x53b26e[_0x51f0('0x3f')]?'start':'end'});}}),_0x2f70b8['conversion'][_0x51f0('0x36')]('upcast')[_0x51f0('0x1a')]({'view':{'name':'comment','attribute':{'id':/^\w/}},'model':_0x168827=>'comment:'+_0x168827[_0x51f0('0x24')]('id')});}['tt'](){const _0x1e071f=this[_0x51f0('0x11')],_0x2b4abe=_0x1e071f[_0x51f0('0x21')][_0x51f0('0x3c')](_0x51f0('0x49')),_0x43c3a8=new Set(),_0x5ca393=new Set();_0x1e071f[_0x51f0('0x2b')][_0x51f0('0x15')][_0x51f0('0x3d')](_0x423ca7=>{let _0x4bd100=!0x1;for(const [_0x26ef99,_0x202fb]of _0x1e071f[_0x51f0('0x2b')]['document'][_0x51f0('0x48')][_0x51f0('0xb')]){const {group:_0x57ce12,id:_0x58ca93}=W(_0x26ef99);let _0x2e2baf=_0x202fb[_0x51f0('0xd')];if(_0x51f0('0x2e')!==_0x57ce12||!_0x2e2baf)continue;const _0x28c7f4=_0x5ca393[_0x51f0('0x3e')](_0x58ca93),_0xe487c4='$graveyard'===_0x2e2baf[_0x51f0('0x17')]['rootName'];_0xe487c4||(_0x2e2baf=X(_0x2e2baf,_0x1e071f[_0x51f0('0x2b')]),!_0x2e2baf||_0x2e2baf[_0x51f0('0x25')](_0x202fb['newRange']))?_0x2e2baf&&(!_0x28c7f4||!_0xe487c4&&_0x1e071f[_0x51f0('0x2b')][_0x51f0('0x1e')](_0x2e2baf))?_0x28c7f4||_0xe487c4||(_0x5ca393[_0x51f0('0x6')](_0x58ca93),this[_0x51f0('0x34')]?_0x43c3a8[_0x51f0('0x6')](_0x26ef99):this['et'](_0x26ef99)):(_0x423ca7[_0x51f0('0x13')](_0x26ef99),_0x4bd100=!0x0):(_0x423ca7[_0x51f0('0x31')](_0x26ef99,{'range':_0x2e2baf}),_0x4bd100=!0x0);}return _0x4bd100;}),this['on'](_0x51f0('0x29'),(_0x7a15cd,_0x13dd65,_0x33a855)=>{if(!_0x33a855&&_0x43c3a8[_0x51f0('0x4b')])for(const _0x37afaa of _0x43c3a8)this['et'](_0x37afaa),_0x43c3a8[_0x51f0('0x12')](_0x37afaa);}),this['listenTo'](_0x1e071f['model']['markers'],_0x51f0('0x2c'),(_0x3f9852,_0x3e19e3,_0x43a120,_0x3ebeff)=>{if(_0x3ebeff)return;const {id:_0x286f44}=W(_0x3e19e3[_0x51f0('0xc')]),_0x51f3ab=_0x1e071f[_0x51f0('0x21')][_0x51f0('0x3c')](_0x51f0('0x49'))['getCommentThread'](_0x286f44);_0x5ca393[_0x51f0('0x12')](_0x286f44),_0x43c3a8[_0x51f0('0x12')](_0x3e19e3['name']),_0x51f3ab&&_0x2b4abe[_0x51f0('0xe')](_0x286f44);});}['et'](_0x1cda2d){const _0x532a86=this['editor'],_0x19866e=_0x532a86[_0x51f0('0x21')][_0x51f0('0x3c')](_0x51f0('0x49')),_0x432ee6=_0x143662(_0x532a86['config']),_0xa4beb2=_0x532a86[_0x51f0('0x2b')][_0x51f0('0x45')][_0x51f0('0x3c')](_0x1cda2d),{id:_0x41c836}=W(_0x1cda2d);_0xa4beb2[_0x51f0('0x10')]?_0x19866e[_0x51f0('0x33')]({'channelId':_0x432ee6,'threadId':_0x41c836})['then'](_0x14f246=>{'destroyed'!==_0x532a86['state']&&(_0x14f246?_0x14f246['attachTo'](()=>_0x1033b2(_0x532a86[_0x51f0('0x5')],_0xa4beb2)):_0x532a86[_0x51f0('0x2b')]['change'](_0x8bf5e=>{_0x8bf5e[_0x51f0('0x13')](_0xa4beb2);}));}):_0x532a86[_0x51f0('0x5')][_0x51f0('0x4a')][_0x51f0('0x42')]('render',()=>{_0x19866e['openNewCommentThread']({'channelId':_0x432ee6,'threadId':_0x41c836,'target':()=>_0x1033b2(_0x532a86[_0x51f0('0x5')],_0xa4beb2)});},{'priority':_0x51f0('0x44')});}}function U(_0x402b82,_0x999d1b){return _0x999d1b?_0x402b82+':'+_0x999d1b:_0x402b82;}function W(_0x94fab1){const _0x4cf243=_0x94fab1[_0x51f0('0x1c')](':');return{'group':_0x4cf243[0x0],'id':_0x4cf243[0x1]};}function X(_0x273b19,_0x135d28){const _0x319e7c=_0x135d28[_0x51f0('0x7')],_0x25024a=_0x135d28[_0x51f0('0x3a')](_0x273b19[_0x51f0('0x38')]);for(const _0x363dfe of _0x273b19[_0x51f0('0x46')]()){const {type:_0x86198f,item:_0x278c11,nextPosition:_0x4b10e8}=_0x363dfe;if(_0x51f0('0x1b')===_0x86198f||_0x319e7c[_0x51f0('0x39')](_0x278c11)){const _0x41710a=_0x135d28[_0x51f0('0x32')](_0x278c11);_0x25024a[_0x51f0('0x35')]&&(_0x25024a[_0x51f0('0x38')]=_0x41710a),_0x25024a['end']=_0x4b10e8;}}return _0x25024a[_0x51f0('0x35')]?null:_0x25024a;} | ||
import _0x5ec103 from'@ckeditor/ckeditor5-core/src/plugin';import _0x141ce2 from'./commentsrepository';import _0x3426b8 from'./addcommentthreadcommand';import _0x248e22 from'../utils/getmarkerdomelement';import _0x9dee6 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class F extends _0x5ec103{static get['requires'](){return[_0x141ce2,_0x9dee6];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x362179){super(_0x362179),this['set']('isThreadsLoadingPaused',!0x0),_0x362179['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x324065,_0x5d9a57,_0x1f0113,_0x3b8ca9)=>{_0x362179['model']['change'](_0x520faf=>{_0x362179['model']['markers']['has'](_0x1f0113)&&_0x520faf['updateMarker'](_0x1f0113),_0x362179['model']['markers']['has'](_0x3b8ca9)&&_0x520faf['updateMarker'](_0x3b8ca9);});});}['init'](){const _0x5e47aa=this['editor'],_0x48fdeb=_0x5e47aa['plugins']['get']('CommentsRepository'),_0x4f6dfd=_0x5e47aa['config']['get']('collaboration.channelId');_0x5e47aa['commands']['add']('addCommentThread',new _0x3426b8(_0x5e47aa)),this['listenTo'](_0x5e47aa,'change:isReadOnly',(_0x2d746f,_0x464818,_0x576548)=>{_0x48fdeb['switchReadOnly'](_0x576548,_0x5e47aa['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x48fdeb,$('removeCommentThread',_0x4f6dfd),(_0x58e528,{threadId:_0x1530b2})=>{const _0x58d3a4=_0x5e47aa['model']['markers']['get']('comment:'+_0x1530b2),_0x11401b=_0x48fdeb['getCommentThread'](_0x1530b2);_0x58d3a4&&_0x5e47aa['model']['change'](_0x2549cc=>{_0x2549cc['removeMarker'](_0x58d3a4);}),_0x48fdeb['hasCommentThread'](_0x1530b2)&&!_0x11401b['length']||_0x58e528['stop']();},{'priority':'high'}),this['listenTo'](_0x48fdeb,$('addComment',_0x4f6dfd),(_0x4d6d20,{threadId:_0x358eee,isFromAdapter:_0x4cecfd})=>{const _0x54d066=_0x5e47aa['model']['markers']['get']('comment:'+_0x358eee);!_0x4cecfd&&_0x54d066&&_0x48fdeb['hasCommentThread'](_0x358eee)&&0x1===_0x48fdeb['getCommentThread'](_0x358eee)['length']&&_0x5e47aa['model']['change'](_0x1fed6a=>{_0x1fed6a['updateMarker'](_0x54d066,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['$'](),this['tt']();}['destroy'](){const _0x4bdc68=this['editor']['plugins']['get']('CommentsRepository'),_0x29c086=this['editor']['config']['get']('collaboration.channelId');for(const _0x391963 of _0x4bdc68['getCommentThreads']({'channelId':_0x29c086}))_0x4bdc68['_detachCommentThread'](_0x391963['id']),_0x4bdc68['_threads']['delete'](_0x391963['id']);super['destroy']();}['$'](){const _0x679d38=this['editor'];_0x679d38['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':_0x2de7b3=>{const {id:_0x429a78}=Q(_0x2de7b3['markerName']),_0x44bf59=['ck-comment-marker'];return this['activeMarker']===_0x2de7b3['markerName']&&_0x44bf59['push']('ck-comment-marker--active'),{'classes':_0x44bf59,'attributes':{'data-comment':_0x429a78}};}}),_0x679d38['conversion']['for']('dataDowncast')['markerToElement']({'model':'comment','view':(_0x2425cf,_0x228646)=>{const _0x3996fc=_0x679d38['model']['markers']['get'](_0x2425cf['markerName']),_0x3d69a4=Q(_0x2425cf['markerName'])['id'];if(_0x3996fc['affectsData'])return _0x228646['createUIElement']('comment',{'id':_0x3d69a4,'type':_0x2425cf['isOpening']?'start':'end'});}}),_0x679d38['conversion']['for']('upcast')['elementToMarker']({'view':{'name':'comment','attribute':{'id':/^\w/}},'model':_0x12d5a1=>'comment:'+_0x12d5a1['getAttribute']('id')});}['tt'](){const _0x1c6bfd=this['editor'],_0x4a2ebe=_0x1c6bfd['plugins']['get']('CommentsRepository'),_0xb4aa5c=new Set(),_0x5e7e05=new Set();_0x1c6bfd['model']['document']['registerPostFixer'](_0x4ab766=>{let _0x3de236=!0x1;for(const [_0x53fda9,_0x4f0f89]of _0x1c6bfd['model']['document']['differ']['_changedMarkers']){const {group:_0x3927fb,id:_0x11ee3f}=Q(_0x53fda9);let _0x332bcd=_0x4f0f89['newRange'];if('comment'!==_0x3927fb||!_0x332bcd)continue;const _0x203afd=_0x5e7e05['has'](_0x11ee3f),_0x221c6c='$graveyard'===_0x332bcd['root']['rootName'];_0x221c6c||(_0x332bcd=U(_0x332bcd,_0x1c6bfd['model']),!_0x332bcd||_0x332bcd['isEqual'](_0x4f0f89['newRange']))?_0x332bcd&&(!_0x203afd||!_0x221c6c&&_0x1c6bfd['model']['hasContent'](_0x332bcd))?_0x203afd||_0x221c6c||(_0x5e7e05['add'](_0x11ee3f),this['isThreadsLoadingPaused']?_0xb4aa5c['add'](_0x53fda9):this['et'](_0x53fda9)):(_0x4ab766['removeMarker'](_0x53fda9),_0x3de236=!0x0):(_0x4ab766['updateMarker'](_0x53fda9,{'range':_0x332bcd}),_0x3de236=!0x0);}return _0x3de236;}),this['on']('change:isThreadsLoadingPaused',(_0x337e87,_0x4be044,_0x56c039)=>{if(!_0x56c039&&_0xb4aa5c['size'])for(const _0x343e4f of _0xb4aa5c)this['et'](_0x343e4f),_0xb4aa5c['delete'](_0x343e4f);}),this['listenTo'](_0x1c6bfd['model']['markers'],'update:comment',(_0x1b9cee,_0xb2c697,_0x1fb14d,_0xd47301)=>{if(_0xd47301)return;const {id:_0x3c3b94}=Q(_0xb2c697['name']),_0x3afe16=_0x1c6bfd['plugins']['get']('CommentsRepository')['getCommentThread'](_0x3c3b94);_0x5e7e05['delete'](_0x3c3b94),_0xb4aa5c['delete'](_0xb2c697['name']),_0x3afe16&&_0x4a2ebe['_detachCommentThread'](_0x3c3b94);});}['et'](_0x10762e){const _0x384fb1=this['editor'],_0x108867=_0x384fb1['plugins']['get']('CommentsRepository'),_0xa9f44f=_0x384fb1['config']['get']('collaboration.channelId'),_0xf58d91=_0x384fb1['model']['markers']['get'](_0x10762e),{id:_0x1533d7}=Q(_0x10762e);_0xf58d91['managedUsingOperations']?_0x108867['fetchCommentThread']({'channelId':_0xa9f44f,'threadId':_0x1533d7})['then'](_0x3e2530=>{'destroyed'!==_0x384fb1['state']&&(_0x3e2530?_0x3e2530['attachTo'](()=>_0x248e22(_0x384fb1['editing'],_0xf58d91)):_0x384fb1['model']['change'](_0x4ca4d5=>{_0x4ca4d5['removeMarker'](_0xf58d91);}));}):_0x384fb1['editing']['view']['once']('render',()=>{_0x108867['openNewCommentThread']({'channelId':_0xa9f44f,'threadId':_0x1533d7,'target':()=>_0x248e22(_0x384fb1['editing'],_0xf58d91)});},{'priority':'low'});}}function $(_0x158afc,_0x1419aa){return _0x1419aa?_0x158afc+':'+_0x1419aa:_0x158afc;}function Q(_0x8cf84d){const _0x154716=_0x8cf84d['split'](':');return{'group':_0x154716[0x0],'id':_0x154716[0x1]};}function U(_0x3cf975,_0x46adb9){const _0x1c6615=_0x46adb9['schema'],_0x2db176=_0x46adb9['createRange'](_0x3cf975['start']);for(const _0x5b97f5 of _0x3cf975['getWalker']()){const {type:_0x4ef67b,item:_0x196377,nextPosition:_0x53e321}=_0x5b97f5;if('text'===_0x4ef67b||_0x1c6615['isObject'](_0x196377)){const _0x361d0f=_0x46adb9['createPositionBefore'](_0x196377);_0x2db176['isCollapsed']&&(_0x2db176['start']=_0x361d0f),_0x2db176['end']=_0x53e321;}}return _0x2db176['isCollapsed']?null:_0x2db176;} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x48b8=['fire','getTime','threadId','addCommentThread','replace','assign','noChannel','values','pop','commentsrepository-invalid-target:\x20Invalid\x20target.','from','change:hasChanges','commentsrepository-update-comment-internal-error:\x20Updating\x20comment\x20resulted\x20in\x20an\x20error','bind','requires','fromCharCode','getCommentThread','then','update','content','commentsrepository-add-comment-user-not-exists:\x20Comment\x20author\x20is\x20not\x20defined\x20in\x20Users\x20plugin.','updateComment','indexOf','commentsrepository-remove-comment-missing-comment-thread:\x20Cannot\x20remove\x20comment\x20from\x20not\x20existing\x20CommentThread.','toJSON','destroy','commentsrepository-missing-thread-and-adapter:\x20','PendingActions','get','length','resolve','activeCommentThread','fetchCommentThread','charCodeAt','commentsrepository-active-missing-comment-thread:\x20Cannot\x20set\x20not\x20existing\x20comment\x20thread\x20as\x20active.','_viewToController','Unsaved\x20change\x20in\x20comment\x20thread.','_controller','commentsrepository-invalid-comment-thread-id:\x20CommentThread\x20id\x20has\x20to\x20be\x20a\x20string.','commentsrepository-remove-comment-internal-error:\x20Removing\x20comment\x20result\x20in\x20an\x20error.','active','commentsrepository-remove-comment-thread-internal-error:\x20Removing\x20comment\x20thread\x20result\x20in\x20an\x20error.','type','view','commentsrepository-adapter-already-set:\x20Cannot\x20set\x20adapter\x20more\x20than\x20once.','function','adapter','commentsrepository-update-comment-invalid-content:\x20Comment\x20content\x20has\x20to\x20be\x20a\x20string.','createStandaloneThread','_add','getComment','add','listenTo','commentsrepository-duplicated-comment-thread-id:\x20CommentThread\x20with\x20a\x20given\x20id\x20is\x20already\x20added.','_attachCommentThread','commentsrepository-remove-missing-comment-thread:\x20Cannot\x20remove\x20not\x20existing\x20comment\x20thread.','change:activeView','createdAt','commentsrepository-remove-missing-comment:\x20Cannot\x20remove\x20not\x20existing\x20Comment.','comment','removeComment','commentsrepository-invalid-comment-authorId:\x20Comment\x20author\x20id\x20has\x20to\x20be\x20a\x20string.','commentsrepository-add-comment-to-missing-comment-thread:\x20Cannot\x20add\x20Comment\x20to\x20not\x20existing\x20CommentThread.','charAt','openNewCommentThread','thread','commentsrepository-get-comment-invalid-id:\x20Comment\x20id\x20has\x20to\x20be\x20a\x20string.','trim','locale','\x22\x20id\x20is\x20not\x20added\x20to\x20the\x20editor\x20nor\x20adapter\x20is\x20defined.','once','comments.editorConfig','_threadToController','commentsrepository-attach-missing-comment-thread:\x20Cannot\x20attach\x20not\x20existing\x20comment\x20thread.','editorReady','isEditable','author','isReadOnly','join','comments','Annotations','catch','activeView','channelId','map','Users','setActiveCommentThread','lowest','switchReadOnly','commentsrepository-missing-target:\x20Missing\x20target.','remove','commentsrepository-update-missing-comment:\x20Cannot\x20update\x20not\x20existing\x20Comment.','push','getIndex','isRemovable','error','delete','licenseKey','_remove','set','isAttached','attachTo','pluginName','commentsrepository-add-comment-internal-error:\x20Adding\x20comment\x20result\x20in\x20an\x20error.','plugins','stopListening','commentsrepository-active-not-attached:\x20Cannot\x20set\x20not\x20attached\x20comment\x20thread\x20as\x20an\x20active.','hasCommentThread','addComment','focus','has','removeCommentThread','hasChanges','context','slice','parse','getCommentThreads','commentsrepository-fetch-comment-thread:\x20Fetching\x20a\x20comment\x20thread\x20failed.','\x22\x20id\x20is\x20not\x20added\x20to\x20the\x20editor\x20nor\x20adapter.getCommentThread()\x20is\x20defined.','_threads','Comment\x20thread\x20with\x20\x22','string'];(function(_0x3586ea,_0x16d933){const _0x1237a0=function(_0x10fbc4){while(--_0x10fbc4){_0x3586ea['push'](_0x3586ea['shift']());}};_0x1237a0(++_0x16d933);}(_0x48b8,0xe8));const _0x2f8d=function(_0x3586ea,_0x16d933){_0x3586ea=_0x3586ea-0x0;let _0x1237a0=_0x48b8[_0x3586ea];return _0x1237a0;};import _0x19de1c from'@ckeditor/ckeditor5-core/src/context';import _0x589d89 from'@ckeditor/ckeditor5-core/src/contextplugin';import _0xa7af4c from'@ckeditor/ckeditor5-core/src/pendingactions';import _0x3ca45f from'../annotations/annotations';import _0x183254 from'@ckeditor/ckeditor5-collaboration-core/src/users';import _0x54cc02 from'@ckeditor/ckeditor5-utils/src/collection';import _0x278de9 from'./ui/commentthreadcontroller';import _0x2df75e from'../utils/getdatetimeformatter';import _0x486132 from'@ckeditor/ckeditor5-utils/src/uid';import _0x2fbe3f from'@ckeditor/ckeditor5-utils/src/ckeditorerror';import _0x451a40 from'@ckeditor/ckeditor5-utils/src/observablemixin';import _0x28671f from'@ckeditor/ckeditor5-utils/src/mix';import _0x3dca72 from'@ckeditor/ckeditor5-utils/src/dom/rect';import{isElement as _0x433d6a}from'lodash-es';import'../../theme/comment.css';import'../../theme/commentthread.css';import'../../theme/commentinput.css';const noChannel=Symbol(_0x2f8d('0x12'));export default class P extends _0x589d89{static get[_0x2f8d('0x1a')](){return[_0x3ca45f,_0x183254,_0xa7af4c];}static get[_0x2f8d('0x72')](){return'CommentsRepository';}constructor(_0x31a5ae){super(_0x31a5ae),this[_0x2f8d('0x9')]=new Map(),this[_0x2f8d('0x54')]=new Map(),this[_0x2f8d('0x2f')]=new Map(),this['nt']=new Set(),this[_0x2f8d('0x6d')]=this[_0x2f8d('0x3')]['config'][_0x2f8d('0x28')]('licenseKey');}['init'](){const _0x365b06=this[_0x2f8d('0x3')][_0x2f8d('0x74')][_0x2f8d('0x28')](_0x2f8d('0x5c'));this[_0x2f8d('0x6f')]('activeCommentThread',null),this['on'](_0x2f8d('0xf'),(_0x47a40f,_0x33dfb7)=>this['rt'](_0x33dfb7)),this['on'](_0x2f8d('0x1'),(_0x3a5ad9,_0x470952)=>this['ot'](_0x470952)),this['on']('addComment',(_0x3e8f2d,_0x5cfffa)=>this['st'](_0x5cfffa)),this['on'](_0x2f8d('0x21'),(_0x5532ec,_0x129fde)=>this['it'](_0x129fde)),this['on'](_0x2f8d('0x48'),(_0x2eab55,_0x4e78fa)=>this['at'](_0x4e78fa)),this['on']('addComment',(_0x5a1d96,{threadId:_0x1bd9df,isFromAdapter:_0x4dc9e8})=>{if(_0x4dc9e8)return;const _0x89b6e=this['getCommentThread'](_0x1bd9df),_0x329b51=this[_0x2f8d('0x54')]['get'](_0x89b6e);_0x329b51&&_0x329b51[_0x2f8d('0x37')]['focus']();},{'priority':_0x2f8d('0x63')}),this[_0x2f8d('0x40')](_0x365b06,_0x2f8d('0x44'),(_0x44974d,_0xe46b1,_0x50a8ed,_0x33f7c3)=>{if(_0x33f7c3&&this[_0x2f8d('0x2f')]['has'](_0x33f7c3)&&(this['_viewToController'][_0x2f8d('0x28')](_0x33f7c3)['active']=!0x1),_0x50a8ed&&this[_0x2f8d('0x2f')][_0x2f8d('0x0')](_0x50a8ed)){const _0x2710aa=this[_0x2f8d('0x2f')][_0x2f8d('0x28')](_0x50a8ed);_0x2710aa[_0x2f8d('0x34')]=!0x0,this[_0x2f8d('0x2b')]=_0x2710aa[_0x2f8d('0x4d')];}else this[_0x2f8d('0x2b')]=null;});}['afterInit'](){x8eE(this[_0x2f8d('0x3')]);}set[_0x2f8d('0x3a')](_0x2668a9){if(this['dt'])throw new _0x2fbe3f(_0x2f8d('0x38'));this['dt']=_0x2668a9;}get['adapter'](){return this['dt'];}[_0x2f8d('0xf')]({channelId:_0x40e8e3=noChannel,threadId:_0x346e06=_0x486132(),comments:_0x4632cd=[],target:_0x3c2ae8,isFromAdapter:_0x36dbbe}={}){return this[_0x2f8d('0xc')](toEventName(_0x2f8d('0xf'),_0x40e8e3),{'channelId':_0x40e8e3,'threadId':_0x346e06,'comments':_0x4632cd,'target':_0x3c2ae8,'isFromAdapter':_0x36dbbe}),this['getCommentThread'](_0x346e06);}[_0x2f8d('0x4c')]({channelId:_0x4ce933=noChannel,threadId:_0x431994=_0x486132(),target:_0x57e8ab}){if(this['nt']['has'](_0x4ce933)||this['nt']['has'](void 0x0))return;if(!_0x57e8ab)throw new _0x2fbe3f(_0x2f8d('0x65'));const _0x4b7ce6=this[_0x2f8d('0xf')]({'channelId':_0x4ce933,'threadId':_0x431994,'target':_0x57e8ab});if(!_0x4b7ce6)return null;const _0x4a6e62=this[_0x2f8d('0x54')][_0x2f8d('0x28')](_0x4b7ce6),{commentInputView:_0x25671d}=_0x4a6e62[_0x2f8d('0x37')];return this[_0x2f8d('0x3')][_0x2f8d('0x74')]['get'](_0x2f8d('0x5c'))[_0x2f8d('0x5e')]=_0x4a6e62[_0x2f8d('0x37')],_0x25671d[_0x2f8d('0x52')](_0x2f8d('0x56'),()=>_0x25671d[_0x2f8d('0x79')]()),_0x4b7ce6;}[_0x2f8d('0x77')](_0x58e090){if(_0x2f8d('0xb')!=typeof _0x58e090)throw new _0x2fbe3f('commentsrepository-invalid-comment-thread-id:\x20CommentThread\x20id\x20has\x20to\x20be\x20a\x20string.');return this[_0x2f8d('0x9')][_0x2f8d('0x0')](_0x58e090);}[_0x2f8d('0x1c')](_0x10ba25){if('string'!=typeof _0x10ba25)throw new _0x2fbe3f(_0x2f8d('0x32'));return this[_0x2f8d('0x9')][_0x2f8d('0x28')](_0x10ba25);}[_0x2f8d('0x2c')]({channelId:_0x3a38b6,threadId:_0x47c62f}={}){const _0xbee3b3=this[_0x2f8d('0x1c')](_0x47c62f);if(_0xbee3b3)return Promise['resolve'](_0xbee3b3);if(!this['adapter'])throw new _0x2fbe3f(_0x2f8d('0x26')+('Comment\x20thread\x20with\x20\x22'+_0x47c62f+_0x2f8d('0x51')),this[_0x2f8d('0x3')]);if('function'!=typeof this[_0x2f8d('0x3a')]['getCommentThread'])throw new _0x2fbe3f('commentsrepository-missing-thread-and-adapter-method:\x20'+(_0x2f8d('0xa')+_0x47c62f+_0x2f8d('0x8')),this[_0x2f8d('0x3')]);return this[_0x2f8d('0x3a')][_0x2f8d('0x1c')]({'channelId':_0x3a38b6,'threadId':_0x47c62f})['then'](_0x2568f8=>{if(_0x2568f8)return this['addCommentThread'](Object[_0x2f8d('0x11')]({'isFromAdapter':!0x0,'channelId':_0x3a38b6},_0x2568f8));})[_0x2f8d('0x5d')](_0x2d778b=>{throw console['error'](_0x2d778b),new _0x2fbe3f(_0x2f8d('0x7'),this['context']);});}[_0x2f8d('0x6')]({channelId:_0x3a76c7,skipNotAttached:_0x12567=!0x1,skipEmpty:_0x2fac2d=!0x1,toJSON:_0x149611=!0x1}={}){const _0x4a22eb=[];for(const _0x2e3012 of this[_0x2f8d('0x9')][_0x2f8d('0x13')]())_0x3a76c7&&_0x2e3012[_0x2f8d('0x5f')]!==_0x3a76c7||_0x12567&&!_0x2e3012[_0x2f8d('0x70')]||_0x2fac2d&&0x0===_0x2e3012['length']||_0x4a22eb[_0x2f8d('0x68')](_0x2e3012);return _0x149611?_0x4a22eb[_0x2f8d('0x60')](_0x56fbaa=>_0x56fbaa['toJSON']()):_0x4a22eb;}[_0x2f8d('0x62')](_0x341c3a){const _0x16c910=this[_0x2f8d('0x3')][_0x2f8d('0x74')]['get']('Annotations');if(!_0x341c3a)return void(this[_0x2f8d('0x2b')]&&(_0x16c910['activeView']=null));const _0x144d02=this[_0x2f8d('0x1c')](_0x341c3a);if(!_0x144d02)throw new _0x2fbe3f(_0x2f8d('0x2e'),null,{'threadId':_0x341c3a});if(!this['_threadToController']['has'](_0x144d02))throw new _0x2fbe3f(_0x2f8d('0x76'),null,{'threadId':_0x341c3a});_0x16c910[_0x2f8d('0x5e')]=this['_threadToController']['get'](_0x144d02)[_0x2f8d('0x37')];}[_0x2f8d('0x64')](_0x2bbd2a,_0x5b8c50){_0x2bbd2a?this['nt'][_0x2f8d('0x3f')](_0x5b8c50):this['nt'][_0x2f8d('0x6c')](_0x5b8c50);for(const _0x4376d0 of this[_0x2f8d('0x6')]({'channelId':_0x5b8c50}))_0x4376d0[_0x2f8d('0x59')]=!!_0x2bbd2a;}['rt']({channelId:_0x34e405,threadId:_0x84e67a,comments:_0xd56560,target:_0x30006a,isFromAdapter:_0x4df034}){if(_0x2f8d('0xb')!=typeof _0x84e67a)throw new _0x2fbe3f(_0x2f8d('0x32'),null,{'threadId':_0x84e67a});if(this[_0x2f8d('0x77')](_0x84e67a))throw new _0x2fbe3f(_0x2f8d('0x41'),null,{'threadId':_0x84e67a});const _0x58823b=new CommentThread(this,{'channelId':_0x34e405,'id':_0x84e67a});(this['nt'][_0x2f8d('0x0')](_0x34e405)||this['nt'][_0x2f8d('0x0')](void 0x0))&&(_0x58823b[_0x2f8d('0x59')]=!0x0),this[_0x2f8d('0x9')][_0x2f8d('0x6f')](_0x84e67a,_0x58823b);for(const _0x351327 of _0xd56560)_0x58823b['addComment'](Object[_0x2f8d('0x11')]({'isFromAdapter':_0x4df034},_0x351327));_0x30006a&&_0x58823b[_0x2f8d('0x71')](_0x30006a);}[_0x2f8d('0x42')]({threadId:_0x3f81b9,target:_0x149007}){const _0x1a80a1=this[_0x2f8d('0x1c')](_0x3f81b9);if(!_0x1a80a1)throw new _0x2fbe3f(_0x2f8d('0x55'),this);if(!isValidTarget(_0x149007))throw new _0x2fbe3f(_0x2f8d('0x15'));const _0x593aa8=this[_0x2f8d('0x3')][_0x2f8d('0x74')][_0x2f8d('0x28')](_0x2f8d('0x27')),_0x4c71cf=this[_0x2f8d('0x3')][_0x2f8d('0x74')][_0x2f8d('0x28')](_0x2f8d('0x5c')),_0x395537=this['context'][_0x2f8d('0x74')][_0x2f8d('0x28')](_0x2f8d('0x61')),{config:_0xd60ab4,locale:_0x7e4a38}=this[_0x2f8d('0x3')],_0x481371=_0x2df75e(_0xd60ab4['get'](_0x2f8d('0x50'))),_0x3cc0cf=_0xd60ab4[_0x2f8d('0x28')](_0x2f8d('0x53')),_0x56bc16=_0x278de9[_0x2f8d('0x3c')]({'locale':_0x7e4a38,'formatDateTime':_0x481371},_0x1a80a1,_0x395537['me'],_0x3cc0cf);let _0x3c35c2;_0x56bc16['on'](_0x2f8d('0x17'),(_0x4c830f,_0x52aa05,_0x17f97f)=>{_0x17f97f?_0x3c35c2=_0x593aa8[_0x2f8d('0x3f')](_0x2f8d('0x30')):_0x5fa4ce();}),_0x56bc16['on'](_0x2f8d('0x25'),_0x5fa4ce),this['_threadToController'][_0x2f8d('0x6f')](_0x1a80a1,_0x56bc16),this[_0x2f8d('0x2f')][_0x2f8d('0x6f')](_0x56bc16[_0x2f8d('0x37')],_0x56bc16);const _0x455040=_0x4c71cf['add'](_0x56bc16[_0x2f8d('0x37')],_0x149007);function _0x5fa4ce(){_0x3c35c2&&(_0x593aa8[_0x2f8d('0x66')](_0x3c35c2),_0x3c35c2=null);}_0x455040[_0x2f8d('0x36')]=_0x2f8d('0x47'),_0x455040[_0x2f8d('0x19')](_0x2f8d('0x29'))['to'](_0x56bc16),_0x455040[_0x2f8d('0x19')](_0x2f8d('0x2'))['to'](_0x56bc16,_0x2f8d('0x2'),_0x56bc16,'length',(_0x139ac9,_0x3eb294)=>_0x139ac9||!_0x3eb294);}['ot']({threadId:_0x188ce1,isFromAdapter:_0x2b7972}){const _0x3c971d=this[_0x2f8d('0x1c')](_0x188ce1);if(!_0x3c971d)throw new _0x2fbe3f(_0x2f8d('0x43'),this);if(this['_detachCommentThread'](_0x188ce1),this[_0x2f8d('0x9')][_0x2f8d('0x6c')](_0x188ce1),!_0x3c971d[_0x2f8d('0x29')]||_0x2b7972||!this[_0x2f8d('0x3a')]||'function'!=typeof this[_0x2f8d('0x3a')][_0x2f8d('0x1')])return Promise[_0x2f8d('0x2a')]();const _0x1e6592=this[_0x2f8d('0x3')][_0x2f8d('0x74')][_0x2f8d('0x28')](_0x2f8d('0x27')),{channelId:_0x2d360d}=_0x3c971d,_0xc0bbda=_0x1e6592[_0x2f8d('0x3f')]('Unsaved\x20change\x20in\x20comment\x20thread.');return this[_0x2f8d('0x3a')][_0x2f8d('0x1')]({'channelId':_0x2d360d,'threadId':_0x188ce1})[_0x2f8d('0x1d')](()=>_0x1e6592[_0x2f8d('0x66')](_0xc0bbda))[_0x2f8d('0x5d')](_0x16207e=>{throw console[_0x2f8d('0x6b')](_0x16207e),new _0x2fbe3f(_0x2f8d('0x35'),this);});}['_detachCommentThread'](_0x3146e0){const _0x1f5c0e=this['context'][_0x2f8d('0x74')]['get'](_0x2f8d('0x5c')),_0x27d2cd=this[_0x2f8d('0x1c')](_0x3146e0);if(this['_threadToController'][_0x2f8d('0x0')](_0x27d2cd)){const _0x452ef8=this['_threadToController'][_0x2f8d('0x28')](_0x27d2cd);this[_0x2f8d('0x54')]['delete'](_0x27d2cd),_0x1f5c0e[_0x2f8d('0x66')](_0x452ef8['view']),this[_0x2f8d('0x2f')][_0x2f8d('0x6c')](_0x452ef8[_0x2f8d('0x37')]),_0x452ef8[_0x2f8d('0x25')]();}}['st']({threadId:_0x3ae446,commentId:_0x149c4b=_0x486132(),content:_0x552a41,authorId:_0x9aa879,createdAt:_0x245d6c,isFromAdapter:_0x21485f}){if(_0x2f8d('0xb')!=typeof _0x149c4b)throw new _0x2fbe3f('commentsrepository-invalid-commentId:\x20Comment\x20id\x20has\x20to\x20be\x20a\x20string.');if(_0x2f8d('0xb')!=typeof _0x9aa879)throw new _0x2fbe3f(_0x2f8d('0x49'));if(_0x2f8d('0xb')!=typeof _0x552a41||!_0x552a41[_0x2f8d('0x4f')]())throw new _0x2fbe3f('commentsrepository-invalid-comment-content:\x20Comment\x20content\x20has\x20to\x20be\x20a\x20string.');const _0x4090ee=this[_0x2f8d('0x1c')](_0x3ae446);if(!_0x4090ee)throw new _0x2fbe3f(_0x2f8d('0x4a'),this);const _0x519728=this[_0x2f8d('0x3')]['plugins'][_0x2f8d('0x28')](_0x183254)['getUser'](_0x9aa879);if(!_0x519728)throw new _0x2fbe3f(_0x2f8d('0x20'),null,{'authorId':_0x9aa879});const _0x304fb5=new Comment(this,{'threadId':_0x3ae446,'id':_0x149c4b,'author':_0x519728,'content':_0x552a41,'createdAt':_0x245d6c||new Date()});if(_0x4090ee['_add'](_0x304fb5),_0x21485f||!this[_0x2f8d('0x3a')]||_0x2f8d('0x39')!=typeof this[_0x2f8d('0x3a')][_0x2f8d('0x78')])return Promise[_0x2f8d('0x2a')]();const _0x32a9c0=this[_0x2f8d('0x3')][_0x2f8d('0x74')][_0x2f8d('0x28')](_0x2f8d('0x27')),{channelId:_0x5f45e5}=_0x4090ee,_0x2c1561=_0x32a9c0['add'](_0x2f8d('0x30'));return this['adapter'][_0x2f8d('0x78')]({'channelId':_0x5f45e5,'threadId':_0x3ae446,'commentId':_0x149c4b,'content':_0x552a41})[_0x2f8d('0x1d')](_0x23c8ca=>{if(_0x32a9c0['remove'](_0x2c1561),this[_0x2f8d('0x77')](_0x3ae446))_0x23c8ca&&_0x23c8ca[_0x2f8d('0x45')]&&this['it']({'threadId':_0x3ae446,'commentId':_0x149c4b,'createdAt':_0x23c8ca[_0x2f8d('0x45')],'isFromAdapter':!0x0});else{const _0x8c17e5={'threadId':_0x3ae446,'commentId':_0x149c4b,'content':_0x552a41,'createdAt':_0x23c8ca&&_0x23c8ca['createdAt']?_0x23c8ca[_0x2f8d('0x45')]:_0x245d6c,'authorId':_0x519728['id']};this[_0x2f8d('0xf')]({'channelId':_0x5f45e5,'threadId':_0x3ae446,'comments':[_0x8c17e5],'isFromAdapter':!0x0});}})[_0x2f8d('0x5d')](_0x11d548=>{throw console['error'](_0x11d548),new _0x2fbe3f(_0x2f8d('0x73'),this);});}['it']({threadId:_0x395391,commentId:_0x3b97fe,content:_0x5519e2,createdAt:_0x157bf8,isFromAdapter:_0x10403e}){if(void 0x0!==_0x5519e2&&(_0x2f8d('0xb')!=typeof _0x5519e2||!_0x5519e2[_0x2f8d('0x4f')]()['length']))throw new _0x2fbe3f(_0x2f8d('0x3b'));const _0x19f167=this['getCommentThread'](_0x395391),_0x4f8f78=_0x19f167['getComment'](_0x3b97fe);if(!_0x4f8f78)throw new _0x2fbe3f(_0x2f8d('0x67'),this);let _0xda4d44=!0x1;if(_0x5519e2&&_0x5519e2!==_0x4f8f78[_0x2f8d('0x1f')]&&(_0x4f8f78[_0x2f8d('0x1f')]=_0x5519e2,_0xda4d44=!0x0),_0x157bf8&&_0x157bf8!==_0x4f8f78[_0x2f8d('0x45')]&&(_0x4f8f78[_0x2f8d('0x45')]=_0x157bf8,_0xda4d44=!0x0),!_0xda4d44)return Promise[_0x2f8d('0x2a')]();if(_0x19f167[_0x2f8d('0xc')]('change'),_0x10403e||!this['adapter']||_0x2f8d('0x39')!=typeof this[_0x2f8d('0x3a')]['updateComment'])return Promise[_0x2f8d('0x2a')]();const _0x183844=this[_0x2f8d('0x3')][_0x2f8d('0x74')][_0x2f8d('0x28')](_0x2f8d('0x27')),{channelId:_0xa9687d}=this[_0x2f8d('0x1c')](_0x4f8f78[_0x2f8d('0xe')]),_0x5b0998=_0x183844[_0x2f8d('0x3f')](_0x2f8d('0x30'));return this[_0x2f8d('0x3a')][_0x2f8d('0x21')]({'channelId':_0xa9687d,'threadId':_0x395391,'commentId':_0x3b97fe,'content':_0x5519e2})[_0x2f8d('0x1d')](()=>_0x183844[_0x2f8d('0x66')](_0x5b0998))[_0x2f8d('0x5d')](_0x2f68f5=>{throw console[_0x2f8d('0x6b')](_0x2f68f5),new _0x2fbe3f(_0x2f8d('0x18'),this);});}['at']({threadId:_0x3df70c,commentId:_0x2a3261,isFromAdapter:_0x5addfc}){const _0x4af1d4=this['getCommentThread'](_0x3df70c),_0x137e16=_0x4af1d4[_0x2f8d('0x3e')](_0x2a3261);if(!_0x137e16)throw new _0x2fbe3f(_0x2f8d('0x46'),this);if(_0x4af1d4['_remove'](_0x137e16),_0x5addfc||!this['adapter']||_0x2f8d('0x39')!=typeof this[_0x2f8d('0x3a')]['removeComment'])return Promise[_0x2f8d('0x2a')]();const _0x7dbf2d=this[_0x2f8d('0x3')][_0x2f8d('0x74')]['get']('PendingActions'),{channelId:_0x32b77c}=_0x4af1d4,_0x169a2b=_0x7dbf2d[_0x2f8d('0x3f')](_0x2f8d('0x30'));return this[_0x2f8d('0x3a')][_0x2f8d('0x48')]({'channelId':_0x32b77c,'threadId':_0x3df70c,'commentId':_0x2a3261})[_0x2f8d('0x1d')](()=>_0x7dbf2d[_0x2f8d('0x66')](_0x169a2b))[_0x2f8d('0x5d')](_0x1400c5=>{throw console[_0x2f8d('0x6b')](_0x1400c5),new _0x2fbe3f(_0x2f8d('0x33'),this);});}}class CommentThread{constructor(_0x5b1dc7,_0xd4d09b){this[_0x2f8d('0x5f')]=_0xd4d09b['channelId'],this['id']=_0xd4d09b['id'],this[_0x2f8d('0x6f')](_0x2f8d('0x59'),!0x1),this[_0x2f8d('0x5b')]=new _0x54cc02(),this['ct']=_0x5b1dc7,this[_0x2f8d('0x31')]=null;}get['length'](){return this[_0x2f8d('0x5b')][_0x2f8d('0x29')];}get['isAttached'](){return!!this['_controller'];}[_0x2f8d('0x66')]({isFromAdapter:_0x45fd16=!0x1}={}){const {channelId:_0x5c1baa,id:_0x3e2ea2}=this;this['ct'][_0x2f8d('0xc')](toEventName(_0x2f8d('0x1'),_0x5c1baa),{'channelId':_0x5c1baa,'threadId':_0x3e2ea2,'isFromAdapter':_0x45fd16});}['attachTo'](_0x283c5b){this['ct']['_attachCommentThread']({'threadId':this['id'],'target':_0x283c5b});}[_0x2f8d('0x78')](_0x388bb2){const {channelId:_0x2c985f,id:_0xbb7472}=this;this['ct'][_0x2f8d('0xc')](toEventName('addComment',_0x2c985f,_0xbb7472),Object['assign']({'channelId':_0x2c985f,'threadId':_0xbb7472},_0x388bb2));}[_0x2f8d('0x3e')](_0x232e78){if('string'!=typeof _0x232e78)throw new _0x2fbe3f(_0x2f8d('0x4e'),null,{'commentId':_0x232e78});return this['comments'][_0x2f8d('0x28')](_0x232e78);}[_0x2f8d('0x24')](){return{'threadId':this['id'],'comments':this['comments'][_0x2f8d('0x60')](_0x237375=>_0x237375[_0x2f8d('0x24')]())};}[_0x2f8d('0x3d')](_0x5dc666){return this[_0x2f8d('0x40')](_0x5dc666,'change',(_0x166126,_0x278cdd)=>{if(_0x2f8d('0x45')==_0x278cdd){const _0x57f0f4=this['ht'](_0x5dc666),_0x5b1730=this['comments'];_0x57f0f4-0x1!=_0x5b1730[_0x2f8d('0x69')](_0x5dc666)&&_0x57f0f4+0x1!=_0x5b1730['getIndex'](_0x5dc666)&&(this[_0x2f8d('0x6e')](_0x5dc666),this[_0x2f8d('0x3d')](_0x5dc666));}}),_0x5dc666[_0x2f8d('0x45')]?this[_0x2f8d('0x5b')]['add'](_0x5dc666,this['ht'](_0x5dc666)):this[_0x2f8d('0x5b')][_0x2f8d('0x3f')](_0x5dc666);}[_0x2f8d('0x6e')](_0x10d163){return this[_0x2f8d('0x75')](_0x10d163),_0x10d163['destroy'](),this[_0x2f8d('0x5b')][_0x2f8d('0x66')](_0x10d163);}['ht'](_0x3df785){const _0x1c9a17=this[_0x2f8d('0x5b')]['find'](_0x44e7bd=>new Date(_0x44e7bd[_0x2f8d('0x45')])[_0x2f8d('0xd')]()>new Date(_0x3df785[_0x2f8d('0x45')])[_0x2f8d('0xd')]());return _0x1c9a17?this[_0x2f8d('0x5b')][_0x2f8d('0x69')](_0x1c9a17):this[_0x2f8d('0x29')];}}_0x28671f(CommentThread,_0x451a40);class Comment{constructor(_0x1bce92,_0x2807bc){const _0x19f5be=_0x1bce92[_0x2f8d('0x3')][_0x2f8d('0x74')]['get']('Users')['me'],_0x9a88df=_0x1bce92[_0x2f8d('0x1c')](_0x2807bc['threadId']);this['id']=_0x2807bc['id'],this[_0x2f8d('0xe')]=_0x2807bc[_0x2f8d('0xe')],this[_0x2f8d('0x58')]=_0x2807bc[_0x2f8d('0x58')],this[_0x2f8d('0x6f')](_0x2f8d('0x1f'),_0x2807bc[_0x2f8d('0x1f')]),this[_0x2f8d('0x6f')]('createdAt',_0x2807bc[_0x2f8d('0x45')]),this['set']('isEditable',_0x19f5be===_0x2807bc[_0x2f8d('0x58')]),this['set'](_0x2f8d('0x6a'),_0x19f5be===_0x2807bc[_0x2f8d('0x58')]),this[_0x2f8d('0x19')](_0x2f8d('0x59'))['to'](_0x9a88df,_0x2f8d('0x59')),this['ct']=_0x1bce92;}[_0x2f8d('0x1e')](_0x1411d7){if(!_0x1411d7['isFromAdapter']&&!this[_0x2f8d('0x57')])return;const {threadId:_0x55956c,id:_0x23161b}=this;if(!this['ct']['hasCommentThread'](_0x55956c))throw new _0x2fbe3f('commentsrepository-update-comment-missing-comment-thread:\x20Cannot\x20update\x20comment\x20of\x20not\x20existing\x20CommentThread.',this);const _0x4cea32=this['ct'][_0x2f8d('0x1c')](_0x55956c),{channelId:_0x49de1e}=_0x4cea32;this['ct']['fire'](toEventName(_0x2f8d('0x21'),_0x49de1e,_0x55956c),Object['assign']({'channelId':_0x49de1e,'threadId':_0x55956c,'commentId':_0x23161b},_0x1411d7));}[_0x2f8d('0x66')](_0x1545e5={}){if(!_0x1545e5['isFromAdapter']&&!this[_0x2f8d('0x6a')])return;const {threadId:_0x4c1ea8,id:_0x317cbc}=this;if(!this['ct']['hasCommentThread'](_0x4c1ea8))throw new _0x2fbe3f(_0x2f8d('0x23'),this);const _0xc2472=this['ct']['getCommentThread'](_0x4c1ea8),{channelId:_0x35ad45}=_0xc2472;this['ct']['fire'](toEventName('removeComment',_0x35ad45,_0x4c1ea8),Object['assign']({'channelId':_0x35ad45,'threadId':_0x4c1ea8,'commentId':_0x317cbc},_0x1545e5));}[_0x2f8d('0x24')](){return{'commentId':this['id'],'content':this[_0x2f8d('0x1f')],'createdAt':this[_0x2f8d('0x45')],'authorId':this[_0x2f8d('0x58')]['id']};}[_0x2f8d('0x25')](){this[_0x2f8d('0x75')]();}}function toEventName(_0x369e74,..._0x5a0c0c){for(const _0x12d8c4 of _0x5a0c0c)_0x2f8d('0xb')==typeof _0x12d8c4&&(_0x369e74+=':'+_0x12d8c4);return _0x369e74;}function isValidTarget(_0x26bfb8){let _0x5b4e54=_0x26bfb8;return _0x2f8d('0x39')==typeof _0x26bfb8&&(_0x5b4e54=_0x26bfb8()),_0x5b4e54 instanceof _0x3dca72||_0x433d6a(_0x5b4e54);}function x8eE(_0x36652a){const _0x4db8fc=_0x36652a instanceof _0x19de1c,_0x2bd5a0=[0x1,0x55,0x4e,0x73,0xc6,0xff,0x32,0x70,0x53,0x57,0xa1],_0x3445c6=_0x28184e([0x34,0x30,0x34,0x30,0x30,0x36,0x33,0x38]),_0x3e5491=[0x7f,0x22,0x6,0xd3,0xa7,0x56,0x92,0xc7,0x84,0xa0,0x12],_0xc43f70=_0x28184e([0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39]),_0x488d5a=_0x3e03e6(_0x36652a['config']['get'](_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])));function _0x3e03e6(_0x331a66){if(_0x36652a[_0x28184e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28184e([0x68,0x61,0x73])](_0x28184e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x36652a[_0x28184e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28184e([0x67,0x65,0x74])](_0x28184e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x28184e([0x73,0x74,0x61,0x74,0x65])]==_0x28184e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return _0x4140ae(_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x56,0x61,0x6c,0x69,0x64]));try{const _0xcea6a8=_0x911556(_0x331a66),_0x148db6=JSON[_0x2f8d('0x5')](_0xcea6a8),_0x162f4d=parseInt(_0x148db6[_0x28184e([0x31])]),_0x137ec7=parseInt(_0x148db6[_0x28184e([0x33])]),_0x180d02=parseInt(_0x148db6[_0x28184e([0x34])])||0x0,_0x5ccd1d=parseInt(_0x148db6[_0x28184e([0x35])])||0x0,_0x378f6e=0x1,_0x45d2ba=0x2;if(!(_0x180d02&_0x378f6e)||_0x36652a[_0x28184e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28184e([0x68,0x61,0x73])](_0x28184e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))&&!(_0x180d02&_0x45d2ba))return _0x4140ae(_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));if(_0x5ccd1d&&!eval(_0x28184e([0x77,0x69,0x6e,0x64,0x6f,0x77]))[_0x28184e([0x6f,0x70,0x65,0x6e])][_0x28184e([0x63,0x6c,0x6f,0x73,0x65,0x64])])return _0x4140ae(_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));if(parseInt(_0x3445c6)/0x2>_0x162f4d)return _0x4140ae(_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));if(_0x36652a[_0x28184e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28184e([0x68,0x61,0x73])](_0x28184e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))){const _0x51517e=_0x36652a[_0x28184e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28184e([0x67,0x65,0x74])](_0x28184e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]));if(parseInt(_0x51517e[_0x28184e([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])])/0x2>_0x162f4d)return _0x4140ae(_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}return _0x4140ae(_0x137ec7?_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c]):_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x56,0x61,0x6c,0x69,0x64]));}catch(_0x3bf3d5){return _0x4140ae(_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}function _0x911556(_0x54b42a){const _0x34b503=[0x1d,0xdd,0xaf,0x5a,0xe7,0x85,0xef,0xf0,0x4b,0xb4],_0x2b11f9=new(eval(_0x28184e([0x77,0x69,0x6e,0x64,0x6f,0x77])))[(_0x28184e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79]))]([..._0x2bd5a0,..._0x34b503,..._0x3e5491]);return _0xeb3b27(_0x54b42a,_0x2b11f9);}function _0xeb3b27(_0x483680,_0x348467){const _0x48bc0e=_0x2aacdc(_0x483680),_0x92bf20=Array[_0x2f8d('0x16')](_0x21795e(_0x48bc0e)),_0x59c0d9=_0x92bf20[_0x2f8d('0x14')](),_0x29fbc1=_0x92bf20[_0x2f8d('0x14')]();return _0x3a2119(_0x4169f5(_0x92bf20,_0x348467,_0x29fbc1+0x100*_0x59c0d9));}function _0x4140ae(_0x50cc11){const _0x35fb34=_0x43dfa8();return _0x36652a[_0x35fb34]=_0x50cc11,_0x50cc11;}function _0x43dfa8(){const _0x2eea50=String(eval(_0x28184e([0x77,0x69,0x6e,0x64,0x6f,0x77]))[_0x28184e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28184e([0x6e,0x6f,0x77])]())[_0x2f8d('0x10')](_0x28184e([0x2e]),'');let _0x43c13d='';for(let _0x332ddb=0x0;_0x332ddb<_0x2eea50[_0x2f8d('0x29')];_0x332ddb+=0x2){let _0x9c3924=parseInt(_0x2eea50['substring'](_0x332ddb,_0x332ddb+0x2));_0x9c3924>=_0xc43f70[_0x2f8d('0x29')]&&(_0x9c3924-=_0xc43f70[_0x2f8d('0x29')]),_0x43c13d+=_0xc43f70[_0x9c3924];}return _0x43c13d;}function _0x3a67b4(_0x1b2872){for(const _0x48faa7 of _0x1b2872[_0x28184e([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])])_0x39f0bf(_0x48faa7);_0x1b2872[_0x28184e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28184e([0x67,0x65,0x74])](_0x28184e([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x28184e([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])](!0x0),_0x1b2872[_0x28184e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28184e([0x67,0x65,0x74])](_0x28184e([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x28184e([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])]=_0xcf014e;}function _0x39f0bf(_0x202826){function _0x3708d8(){_0x202826[_0x28184e([0x6d,0x6f,0x64,0x65,0x6c])][_0x28184e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcf014e,_0x202826[_0x28184e([0x6d,0x6f,0x64,0x65,0x6c])][_0x28184e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcf014e,_0x202826[_0x28184e([0x69,0x73,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])]=!0x0;}_0x202826[_0x28184e([0x73,0x74,0x61,0x74,0x65])]==_0x28184e([0x72,0x65,0x61,0x64,0x79])?_0x3708d8():_0x202826[_0x28184e([0x6f,0x6e,0x63,0x65])](_0x28184e([0x72,0x65,0x61,0x64,0x79]),()=>_0x3708d8());}function _0xcf014e(){return null;}function _0x21795e(_0x3f36b7){const _0x2b57d6=new Uint8Array(_0x3f36b7[_0x2f8d('0x29')]);for(let _0x3b2603=0x0;_0x3b2603<_0x3f36b7[_0x2f8d('0x29')];_0x3b2603++)_0x2b57d6[_0x3b2603]=_0x3f36b7[_0x2f8d('0x2d')](_0x3b2603);return _0x2b57d6;}function _0x3a2119(_0x42cd52){let _0x55eb31='';for(const _0x1c19bb of _0x42cd52)_0x55eb31+=String[_0x2f8d('0x1b')](_0x1c19bb);return _0x55eb31;}function _0x2aacdc(_0x350ad1){const _0x19087f=_0xc43f70+_0x28184e([0x2b,0x2f,0x3d]);if(_0x350ad1=String(_0x350ad1)[_0x2f8d('0x10')](/[\t\n\f\r ]+/g,''),!/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/['test'](_0x350ad1))throw new TypeError(_0x28184e([0x46,0x61,0x69,0x6c,0x65,0x64,0x20,0x74,0x6f,0x20,0x70,0x61,0x72,0x73,0x65,0x20,0x62,0x61,0x73,0x65,0x36,0x34,0x20,0x74,0x6f,0x20,0x73,0x74,0x72,0x69,0x6e,0x67,0x2e]));_0x350ad1+=_0x28184e([0x3d,0x3d])[_0x2f8d('0x4')](0x2-(0x3&_0x350ad1[_0x2f8d('0x29')]));let _0x540bd4,_0x294783,_0x4e7d22,_0x54fe45='';for(let _0x3f0261=0x0;_0x3f0261<_0x350ad1[_0x2f8d('0x29')];)_0x540bd4=_0x19087f[_0x2f8d('0x22')](_0x350ad1[_0x2f8d('0x4b')](_0x3f0261++))<<0x12|_0x19087f['indexOf'](_0x350ad1[_0x2f8d('0x4b')](_0x3f0261++))<<0xc|(_0x294783=_0x19087f[_0x2f8d('0x22')](_0x350ad1['charAt'](_0x3f0261++)))<<0x6|(_0x4e7d22=_0x19087f[_0x2f8d('0x22')](_0x350ad1[_0x2f8d('0x4b')](_0x3f0261++))),_0x54fe45+=0x40===_0x294783?String[_0x2f8d('0x1b')](_0x540bd4>>0x10&0xff):0x40===_0x4e7d22?String[_0x2f8d('0x1b')](_0x540bd4>>0x10&0xff,_0x540bd4>>0x8&0xff):String[_0x2f8d('0x1b')](_0x540bd4>>0x10&0xff,_0x540bd4>>0x8&0xff,0xff&_0x540bd4);return _0x54fe45;}function _0x4169f5(_0x57ab56,_0x575a25,_0x1ece58){const _0x358d47={};_0x358d47[_0x28184e([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])]={16:0xa,24:0xc,32:0xe},_0x358d47[_0x28184e([0x72,0x63,0x6f,0x6e])]=[0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,0x2f,0x5e,0xbc,0x63,0xc6,0x97,0x35,0x6a,0xd4,0xb3,0x7d,0xfa,0xef,0xc5,0x91],_0x358d47[_0x28184e([0x53])]=[0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x1,0x67,0x2b,0xfe,0xd7,0xab,0x76,0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0,0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15,0x4,0xc7,0x23,0xc3,0x18,0x96,0x5,0x9a,0x7,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75,0x9,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84,0x53,0xd1,0x0,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf,0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x2,0x7f,0x50,0x3c,0x9f,0xa8,0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2,0xcd,0xc,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73,0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0xb,0xdb,0xe0,0x32,0x3a,0xa,0x49,0x6,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79,0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x8,0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a,0x70,0x3e,0xb5,0x66,0x48,0x3,0xf6,0xe,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e,0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf,0x8c,0xa1,0x89,0xd,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0xf,0xb0,0x54,0xbb,0x16],_0x358d47[_0x28184e([0x54,0x31])]=[0xc66363a5,0xf87c7c84,0xee777799,0xf67b7b8d,0xfff2f20d,0xd66b6bbd,0xde6f6fb1,0x91c5c554,0x60303050,0x2010103,0xce6767a9,0x562b2b7d,0xe7fefe19,0xb5d7d762,0x4dababe6,0xec76769a,0x8fcaca45,0x1f82829d,0x89c9c940,0xfa7d7d87,0xeffafa15,0xb25959eb,0x8e4747c9,0xfbf0f00b,0x41adadec,0xb3d4d467,0x5fa2a2fd,0x45afafea,0x239c9cbf,0x53a4a4f7,0xe4727296,0x9bc0c05b,0x75b7b7c2,0xe1fdfd1c,0x3d9393ae,0x4c26266a,0x6c36365a,0x7e3f3f41,0xf5f7f702,0x83cccc4f,0x6834345c,0x51a5a5f4,0xd1e5e534,0xf9f1f108,0xe2717193,0xabd8d873,0x62313153,0x2a15153f,0x804040c,0x95c7c752,0x46232365,0x9dc3c35e,0x30181828,0x379696a1,0xa05050f,0x2f9a9ab5,0xe070709,0x24121236,0x1b80809b,0xdfe2e23d,0xcdebeb26,0x4e272769,0x7fb2b2cd,0xea75759f,0x1209091b,0x1d83839e,0x582c2c74,0x341a1a2e,0x361b1b2d,0xdc6e6eb2,0xb45a5aee,0x5ba0a0fb,0xa45252f6,0x763b3b4d,0xb7d6d661,0x7db3b3ce,0x5229297b,0xdde3e33e,0x5e2f2f71,0x13848497,0xa65353f5,0xb9d1d168,0x0,0xc1eded2c,0x40202060,0xe3fcfc1f,0x79b1b1c8,0xb65b5bed,0xd46a6abe,0x8dcbcb46,0x67bebed9,0x7239394b,0x944a4ade,0x984c4cd4,0xb05858e8,0x85cfcf4a,0xbbd0d06b,0xc5efef2a,0x4faaaae5,0xedfbfb16,0x864343c5,0x9a4d4dd7,0x66333355,0x11858594,0x8a4545cf,0xe9f9f910,0x4020206,0xfe7f7f81,0xa05050f0,0x783c3c44,0x259f9fba,0x4ba8a8e3,0xa25151f3,0x5da3a3fe,0x804040c0,0x58f8f8a,0x3f9292ad,0x219d9dbc,0x70383848,0xf1f5f504,0x63bcbcdf,0x77b6b6c1,0xafdada75,0x42212163,0x20101030,0xe5ffff1a,0xfdf3f30e,0xbfd2d26d,0x81cdcd4c,0x180c0c14,0x26131335,0xc3ecec2f,0xbe5f5fe1,0x359797a2,0x884444cc,0x2e171739,0x93c4c457,0x55a7a7f2,0xfc7e7e82,0x7a3d3d47,0xc86464ac,0xba5d5de7,0x3219192b,0xe6737395,0xc06060a0,0x19818198,0x9e4f4fd1,0xa3dcdc7f,0x44222266,0x542a2a7e,0x3b9090ab,0xb888883,0x8c4646ca,0xc7eeee29,0x6bb8b8d3,0x2814143c,0xa7dede79,0xbc5e5ee2,0x160b0b1d,0xaddbdb76,0xdbe0e03b,0x64323256,0x743a3a4e,0x140a0a1e,0x924949db,0xc06060a,0x4824246c,0xb85c5ce4,0x9fc2c25d,0xbdd3d36e,0x43acacef,0xc46262a6,0x399191a8,0x319595a4,0xd3e4e437,0xf279798b,0xd5e7e732,0x8bc8c843,0x6e373759,0xda6d6db7,0x18d8d8c,0xb1d5d564,0x9c4e4ed2,0x49a9a9e0,0xd86c6cb4,0xac5656fa,0xf3f4f407,0xcfeaea25,0xca6565af,0xf47a7a8e,0x47aeaee9,0x10080818,0x6fbabad5,0xf0787888,0x4a25256f,0x5c2e2e72,0x381c1c24,0x57a6a6f1,0x73b4b4c7,0x97c6c651,0xcbe8e823,0xa1dddd7c,0xe874749c,0x3e1f1f21,0x964b4bdd,0x61bdbddc,0xd8b8b86,0xf8a8a85,0xe0707090,0x7c3e3e42,0x71b5b5c4,0xcc6666aa,0x904848d8,0x6030305,0xf7f6f601,0x1c0e0e12,0xc26161a3,0x6a35355f,0xae5757f9,0x69b9b9d0,0x17868691,0x99c1c158,0x3a1d1d27,0x279e9eb9,0xd9e1e138,0xebf8f813,0x2b9898b3,0x22111133,0xd26969bb,0xa9d9d970,0x78e8e89,0x339494a7,0x2d9b9bb6,0x3c1e1e22,0x15878792,0xc9e9e920,0x87cece49,0xaa5555ff,0x50282878,0xa5dfdf7a,0x38c8c8f,0x59a1a1f8,0x9898980,0x1a0d0d17,0x65bfbfda,0xd7e6e631,0x844242c6,0xd06868b8,0x824141c3,0x299999b0,0x5a2d2d77,0x1e0f0f11,0x7bb0b0cb,0xa85454fc,0x6dbbbbd6,0x2c16163a],_0x358d47[_0x28184e([0x54,0x32])]=[0xa5c66363,0x84f87c7c,0x99ee7777,0x8df67b7b,0xdfff2f2,0xbdd66b6b,0xb1de6f6f,0x5491c5c5,0x50603030,0x3020101,0xa9ce6767,0x7d562b2b,0x19e7fefe,0x62b5d7d7,0xe64dabab,0x9aec7676,0x458fcaca,0x9d1f8282,0x4089c9c9,0x87fa7d7d,0x15effafa,0xebb25959,0xc98e4747,0xbfbf0f0,0xec41adad,0x67b3d4d4,0xfd5fa2a2,0xea45afaf,0xbf239c9c,0xf753a4a4,0x96e47272,0x5b9bc0c0,0xc275b7b7,0x1ce1fdfd,0xae3d9393,0x6a4c2626,0x5a6c3636,0x417e3f3f,0x2f5f7f7,0x4f83cccc,0x5c683434,0xf451a5a5,0x34d1e5e5,0x8f9f1f1,0x93e27171,0x73abd8d8,0x53623131,0x3f2a1515,0xc080404,0x5295c7c7,0x65462323,0x5e9dc3c3,0x28301818,0xa1379696,0xf0a0505,0xb52f9a9a,0x90e0707,0x36241212,0x9b1b8080,0x3ddfe2e2,0x26cdebeb,0x694e2727,0xcd7fb2b2,0x9fea7575,0x1b120909,0x9e1d8383,0x74582c2c,0x2e341a1a,0x2d361b1b,0xb2dc6e6e,0xeeb45a5a,0xfb5ba0a0,0xf6a45252,0x4d763b3b,0x61b7d6d6,0xce7db3b3,0x7b522929,0x3edde3e3,0x715e2f2f,0x97138484,0xf5a65353,0x68b9d1d1,0x0,0x2cc1eded,0x60402020,0x1fe3fcfc,0xc879b1b1,0xedb65b5b,0xbed46a6a,0x468dcbcb,0xd967bebe,0x4b723939,0xde944a4a,0xd4984c4c,0xe8b05858,0x4a85cfcf,0x6bbbd0d0,0x2ac5efef,0xe54faaaa,0x16edfbfb,0xc5864343,0xd79a4d4d,0x55663333,0x94118585,0xcf8a4545,0x10e9f9f9,0x6040202,0x81fe7f7f,0xf0a05050,0x44783c3c,0xba259f9f,0xe34ba8a8,0xf3a25151,0xfe5da3a3,0xc0804040,0x8a058f8f,0xad3f9292,0xbc219d9d,0x48703838,0x4f1f5f5,0xdf63bcbc,0xc177b6b6,0x75afdada,0x63422121,0x30201010,0x1ae5ffff,0xefdf3f3,0x6dbfd2d2,0x4c81cdcd,0x14180c0c,0x35261313,0x2fc3ecec,0xe1be5f5f,0xa2359797,0xcc884444,0x392e1717,0x5793c4c4,0xf255a7a7,0x82fc7e7e,0x477a3d3d,0xacc86464,0xe7ba5d5d,0x2b321919,0x95e67373,0xa0c06060,0x98198181,0xd19e4f4f,0x7fa3dcdc,0x66442222,0x7e542a2a,0xab3b9090,0x830b8888,0xca8c4646,0x29c7eeee,0xd36bb8b8,0x3c281414,0x79a7dede,0xe2bc5e5e,0x1d160b0b,0x76addbdb,0x3bdbe0e0,0x56643232,0x4e743a3a,0x1e140a0a,0xdb924949,0xa0c0606,0x6c482424,0xe4b85c5c,0x5d9fc2c2,0x6ebdd3d3,0xef43acac,0xa6c46262,0xa8399191,0xa4319595,0x37d3e4e4,0x8bf27979,0x32d5e7e7,0x438bc8c8,0x596e3737,0xb7da6d6d,0x8c018d8d,0x64b1d5d5,0xd29c4e4e,0xe049a9a9,0xb4d86c6c,0xfaac5656,0x7f3f4f4,0x25cfeaea,0xafca6565,0x8ef47a7a,0xe947aeae,0x18100808,0xd56fbaba,0x88f07878,0x6f4a2525,0x725c2e2e,0x24381c1c,0xf157a6a6,0xc773b4b4,0x5197c6c6,0x23cbe8e8,0x7ca1dddd,0x9ce87474,0x213e1f1f,0xdd964b4b,0xdc61bdbd,0x860d8b8b,0x850f8a8a,0x90e07070,0x427c3e3e,0xc471b5b5,0xaacc6666,0xd8904848,0x5060303,0x1f7f6f6,0x121c0e0e,0xa3c26161,0x5f6a3535,0xf9ae5757,0xd069b9b9,0x91178686,0x5899c1c1,0x273a1d1d,0xb9279e9e,0x38d9e1e1,0x13ebf8f8,0xb32b9898,0x33221111,0xbbd26969,0x70a9d9d9,0x89078e8e,0xa7339494,0xb62d9b9b,0x223c1e1e,0x92158787,0x20c9e9e9,0x4987cece,0xffaa5555,0x78502828,0x7aa5dfdf,0x8f038c8c,0xf859a1a1,0x80098989,0x171a0d0d,0xda65bfbf,0x31d7e6e6,0xc6844242,0xb8d06868,0xc3824141,0xb0299999,0x775a2d2d,0x111e0f0f,0xcb7bb0b0,0xfca85454,0xd66dbbbb,0x3a2c1616],_0x358d47[_0x28184e([0x54,0x33])]=[0x63a5c663,0x7c84f87c,0x7799ee77,0x7b8df67b,0xf20dfff2,0x6bbdd66b,0x6fb1de6f,0xc55491c5,0x30506030,0x1030201,0x67a9ce67,0x2b7d562b,0xfe19e7fe,0xd762b5d7,0xabe64dab,0x769aec76,0xca458fca,0x829d1f82,0xc94089c9,0x7d87fa7d,0xfa15effa,0x59ebb259,0x47c98e47,0xf00bfbf0,0xadec41ad,0xd467b3d4,0xa2fd5fa2,0xafea45af,0x9cbf239c,0xa4f753a4,0x7296e472,0xc05b9bc0,0xb7c275b7,0xfd1ce1fd,0x93ae3d93,0x266a4c26,0x365a6c36,0x3f417e3f,0xf702f5f7,0xcc4f83cc,0x345c6834,0xa5f451a5,0xe534d1e5,0xf108f9f1,0x7193e271,0xd873abd8,0x31536231,0x153f2a15,0x40c0804,0xc75295c7,0x23654623,0xc35e9dc3,0x18283018,0x96a13796,0x50f0a05,0x9ab52f9a,0x7090e07,0x12362412,0x809b1b80,0xe23ddfe2,0xeb26cdeb,0x27694e27,0xb2cd7fb2,0x759fea75,0x91b1209,0x839e1d83,0x2c74582c,0x1a2e341a,0x1b2d361b,0x6eb2dc6e,0x5aeeb45a,0xa0fb5ba0,0x52f6a452,0x3b4d763b,0xd661b7d6,0xb3ce7db3,0x297b5229,0xe33edde3,0x2f715e2f,0x84971384,0x53f5a653,0xd168b9d1,0x0,0xed2cc1ed,0x20604020,0xfc1fe3fc,0xb1c879b1,0x5bedb65b,0x6abed46a,0xcb468dcb,0xbed967be,0x394b7239,0x4ade944a,0x4cd4984c,0x58e8b058,0xcf4a85cf,0xd06bbbd0,0xef2ac5ef,0xaae54faa,0xfb16edfb,0x43c58643,0x4dd79a4d,0x33556633,0x85941185,0x45cf8a45,0xf910e9f9,0x2060402,0x7f81fe7f,0x50f0a050,0x3c44783c,0x9fba259f,0xa8e34ba8,0x51f3a251,0xa3fe5da3,0x40c08040,0x8f8a058f,0x92ad3f92,0x9dbc219d,0x38487038,0xf504f1f5,0xbcdf63bc,0xb6c177b6,0xda75afda,0x21634221,0x10302010,0xff1ae5ff,0xf30efdf3,0xd26dbfd2,0xcd4c81cd,0xc14180c,0x13352613,0xec2fc3ec,0x5fe1be5f,0x97a23597,0x44cc8844,0x17392e17,0xc45793c4,0xa7f255a7,0x7e82fc7e,0x3d477a3d,0x64acc864,0x5de7ba5d,0x192b3219,0x7395e673,0x60a0c060,0x81981981,0x4fd19e4f,0xdc7fa3dc,0x22664422,0x2a7e542a,0x90ab3b90,0x88830b88,0x46ca8c46,0xee29c7ee,0xb8d36bb8,0x143c2814,0xde79a7de,0x5ee2bc5e,0xb1d160b,0xdb76addb,0xe03bdbe0,0x32566432,0x3a4e743a,0xa1e140a,0x49db9249,0x60a0c06,0x246c4824,0x5ce4b85c,0xc25d9fc2,0xd36ebdd3,0xacef43ac,0x62a6c462,0x91a83991,0x95a43195,0xe437d3e4,0x798bf279,0xe732d5e7,0xc8438bc8,0x37596e37,0x6db7da6d,0x8d8c018d,0xd564b1d5,0x4ed29c4e,0xa9e049a9,0x6cb4d86c,0x56faac56,0xf407f3f4,0xea25cfea,0x65afca65,0x7a8ef47a,0xaee947ae,0x8181008,0xbad56fba,0x7888f078,0x256f4a25,0x2e725c2e,0x1c24381c,0xa6f157a6,0xb4c773b4,0xc65197c6,0xe823cbe8,0xdd7ca1dd,0x749ce874,0x1f213e1f,0x4bdd964b,0xbddc61bd,0x8b860d8b,0x8a850f8a,0x7090e070,0x3e427c3e,0xb5c471b5,0x66aacc66,0x48d89048,0x3050603,0xf601f7f6,0xe121c0e,0x61a3c261,0x355f6a35,0x57f9ae57,0xb9d069b9,0x86911786,0xc15899c1,0x1d273a1d,0x9eb9279e,0xe138d9e1,0xf813ebf8,0x98b32b98,0x11332211,0x69bbd269,0xd970a9d9,0x8e89078e,0x94a73394,0x9bb62d9b,0x1e223c1e,0x87921587,0xe920c9e9,0xce4987ce,0x55ffaa55,0x28785028,0xdf7aa5df,0x8c8f038c,0xa1f859a1,0x89800989,0xd171a0d,0xbfda65bf,0xe631d7e6,0x42c68442,0x68b8d068,0x41c38241,0x99b02999,0x2d775a2d,0xf111e0f,0xb0cb7bb0,0x54fca854,0xbbd66dbb,0x163a2c16],_0x358d47[_0x28184e([0x54,0x34])]=[0x6363a5c6,0x7c7c84f8,0x777799ee,0x7b7b8df6,0xf2f20dff,0x6b6bbdd6,0x6f6fb1de,0xc5c55491,0x30305060,0x1010302,0x6767a9ce,0x2b2b7d56,0xfefe19e7,0xd7d762b5,0xababe64d,0x76769aec,0xcaca458f,0x82829d1f,0xc9c94089,0x7d7d87fa,0xfafa15ef,0x5959ebb2,0x4747c98e,0xf0f00bfb,0xadadec41,0xd4d467b3,0xa2a2fd5f,0xafafea45,0x9c9cbf23,0xa4a4f753,0x727296e4,0xc0c05b9b,0xb7b7c275,0xfdfd1ce1,0x9393ae3d,0x26266a4c,0x36365a6c,0x3f3f417e,0xf7f702f5,0xcccc4f83,0x34345c68,0xa5a5f451,0xe5e534d1,0xf1f108f9,0x717193e2,0xd8d873ab,0x31315362,0x15153f2a,0x4040c08,0xc7c75295,0x23236546,0xc3c35e9d,0x18182830,0x9696a137,0x5050f0a,0x9a9ab52f,0x707090e,0x12123624,0x80809b1b,0xe2e23ddf,0xebeb26cd,0x2727694e,0xb2b2cd7f,0x75759fea,0x9091b12,0x83839e1d,0x2c2c7458,0x1a1a2e34,0x1b1b2d36,0x6e6eb2dc,0x5a5aeeb4,0xa0a0fb5b,0x5252f6a4,0x3b3b4d76,0xd6d661b7,0xb3b3ce7d,0x29297b52,0xe3e33edd,0x2f2f715e,0x84849713,0x5353f5a6,0xd1d168b9,0x0,0xeded2cc1,0x20206040,0xfcfc1fe3,0xb1b1c879,0x5b5bedb6,0x6a6abed4,0xcbcb468d,0xbebed967,0x39394b72,0x4a4ade94,0x4c4cd498,0x5858e8b0,0xcfcf4a85,0xd0d06bbb,0xefef2ac5,0xaaaae54f,0xfbfb16ed,0x4343c586,0x4d4dd79a,0x33335566,0x85859411,0x4545cf8a,0xf9f910e9,0x2020604,0x7f7f81fe,0x5050f0a0,0x3c3c4478,0x9f9fba25,0xa8a8e34b,0x5151f3a2,0xa3a3fe5d,0x4040c080,0x8f8f8a05,0x9292ad3f,0x9d9dbc21,0x38384870,0xf5f504f1,0xbcbcdf63,0xb6b6c177,0xdada75af,0x21216342,0x10103020,0xffff1ae5,0xf3f30efd,0xd2d26dbf,0xcdcd4c81,0xc0c1418,0x13133526,0xecec2fc3,0x5f5fe1be,0x9797a235,0x4444cc88,0x1717392e,0xc4c45793,0xa7a7f255,0x7e7e82fc,0x3d3d477a,0x6464acc8,0x5d5de7ba,0x19192b32,0x737395e6,0x6060a0c0,0x81819819,0x4f4fd19e,0xdcdc7fa3,0x22226644,0x2a2a7e54,0x9090ab3b,0x8888830b,0x4646ca8c,0xeeee29c7,0xb8b8d36b,0x14143c28,0xdede79a7,0x5e5ee2bc,0xb0b1d16,0xdbdb76ad,0xe0e03bdb,0x32325664,0x3a3a4e74,0xa0a1e14,0x4949db92,0x6060a0c,0x24246c48,0x5c5ce4b8,0xc2c25d9f,0xd3d36ebd,0xacacef43,0x6262a6c4,0x9191a839,0x9595a431,0xe4e437d3,0x79798bf2,0xe7e732d5,0xc8c8438b,0x3737596e,0x6d6db7da,0x8d8d8c01,0xd5d564b1,0x4e4ed29c,0xa9a9e049,0x6c6cb4d8,0x5656faac,0xf4f407f3,0xeaea25cf,0x6565afca,0x7a7a8ef4,0xaeaee947,0x8081810,0xbabad56f,0x787888f0,0x25256f4a,0x2e2e725c,0x1c1c2438,0xa6a6f157,0xb4b4c773,0xc6c65197,0xe8e823cb,0xdddd7ca1,0x74749ce8,0x1f1f213e,0x4b4bdd96,0xbdbddc61,0x8b8b860d,0x8a8a850f,0x707090e0,0x3e3e427c,0xb5b5c471,0x6666aacc,0x4848d890,0x3030506,0xf6f601f7,0xe0e121c,0x6161a3c2,0x35355f6a,0x5757f9ae,0xb9b9d069,0x86869117,0xc1c15899,0x1d1d273a,0x9e9eb927,0xe1e138d9,0xf8f813eb,0x9898b32b,0x11113322,0x6969bbd2,0xd9d970a9,0x8e8e8907,0x9494a733,0x9b9bb62d,0x1e1e223c,0x87879215,0xe9e920c9,0xcece4987,0x5555ffaa,0x28287850,0xdfdf7aa5,0x8c8c8f03,0xa1a1f859,0x89898009,0xd0d171a,0xbfbfda65,0xe6e631d7,0x4242c684,0x6868b8d0,0x4141c382,0x9999b029,0x2d2d775a,0xf0f111e,0xb0b0cb7b,0x5454fca8,0xbbbbd66d,0x16163a2c],_0x358d47[_0x28184e([0x55,0x31])]=[0x0,0xe090d0b,0x1c121a16,0x121b171d,0x3824342c,0x362d3927,0x24362e3a,0x2a3f2331,0x70486858,0x7e416553,0x6c5a724e,0x62537f45,0x486c5c74,0x4665517f,0x547e4662,0x5a774b69,0xe090d0b0,0xee99ddbb,0xfc82caa6,0xf28bc7ad,0xd8b4e49c,0xd6bde997,0xc4a6fe8a,0xcaaff381,0x90d8b8e8,0x9ed1b5e3,0x8ccaa2fe,0x82c3aff5,0xa8fc8cc4,0xa6f581cf,0xb4ee96d2,0xbae79bd9,0xdb3bbb7b,0xd532b670,0xc729a16d,0xc920ac66,0xe31f8f57,0xed16825c,0xff0d9541,0xf104984a,0xab73d323,0xa57ade28,0xb761c935,0xb968c43e,0x9357e70f,0x9d5eea04,0x8f45fd19,0x814cf012,0x3bab6bcb,0x35a266c0,0x27b971dd,0x29b07cd6,0x38f5fe7,0xd8652ec,0x1f9d45f1,0x119448fa,0x4be30393,0x45ea0e98,0x57f11985,0x59f8148e,0x73c737bf,0x7dce3ab4,0x6fd52da9,0x61dc20a2,0xad766df6,0xa37f60fd,0xb16477e0,0xbf6d7aeb,0x955259da,0x9b5b54d1,0x894043cc,0x87494ec7,0xdd3e05ae,0xd33708a5,0xc12c1fb8,0xcf2512b3,0xe51a3182,0xeb133c89,0xf9082b94,0xf701269f,0x4de6bd46,0x43efb04d,0x51f4a750,0x5ffdaa5b,0x75c2896a,0x7bcb8461,0x69d0937c,0x67d99e77,0x3daed51e,0x33a7d815,0x21bccf08,0x2fb5c203,0x58ae132,0xb83ec39,0x1998fb24,0x1791f62f,0x764dd68d,0x7844db86,0x6a5fcc9b,0x6456c190,0x4e69e2a1,0x4060efaa,0x527bf8b7,0x5c72f5bc,0x605bed5,0x80cb3de,0x1a17a4c3,0x141ea9c8,0x3e218af9,0x302887f2,0x223390ef,0x2c3a9de4,0x96dd063d,0x98d40b36,0x8acf1c2b,0x84c61120,0xaef93211,0xa0f03f1a,0xb2eb2807,0xbce2250c,0xe6956e65,0xe89c636e,0xfa877473,0xf48e7978,0xdeb15a49,0xd0b85742,0xc2a3405f,0xccaa4d54,0x41ecdaf7,0x4fe5d7fc,0x5dfec0e1,0x53f7cdea,0x79c8eedb,0x77c1e3d0,0x65daf4cd,0x6bd3f9c6,0x31a4b2af,0x3fadbfa4,0x2db6a8b9,0x23bfa5b2,0x9808683,0x7898b88,0x15929c95,0x1b9b919e,0xa17c0a47,0xaf75074c,0xbd6e1051,0xb3671d5a,0x99583e6b,0x97513360,0x854a247d,0x8b432976,0xd134621f,0xdf3d6f14,0xcd267809,0xc32f7502,0xe9105633,0xe7195b38,0xf5024c25,0xfb0b412e,0x9ad7618c,0x94de6c87,0x86c57b9a,0x88cc7691,0xa2f355a0,0xacfa58ab,0xbee14fb6,0xb0e842bd,0xea9f09d4,0xe49604df,0xf68d13c2,0xf8841ec9,0xd2bb3df8,0xdcb230f3,0xcea927ee,0xc0a02ae5,0x7a47b13c,0x744ebc37,0x6655ab2a,0x685ca621,0x42638510,0x4c6a881b,0x5e719f06,0x5078920d,0xa0fd964,0x406d46f,0x161dc372,0x1814ce79,0x322bed48,0x3c22e043,0x2e39f75e,0x2030fa55,0xec9ab701,0xe293ba0a,0xf088ad17,0xfe81a01c,0xd4be832d,0xdab78e26,0xc8ac993b,0xc6a59430,0x9cd2df59,0x92dbd252,0x80c0c54f,0x8ec9c844,0xa4f6eb75,0xaaffe67e,0xb8e4f163,0xb6edfc68,0xc0a67b1,0x2036aba,0x10187da7,0x1e1170ac,0x342e539d,0x3a275e96,0x283c498b,0x26354480,0x7c420fe9,0x724b02e2,0x605015ff,0x6e5918f4,0x44663bc5,0x4a6f36ce,0x587421d3,0x567d2cd8,0x37a10c7a,0x39a80171,0x2bb3166c,0x25ba1b67,0xf853856,0x18c355d,0x13972240,0x1d9e2f4b,0x47e96422,0x49e06929,0x5bfb7e34,0x55f2733f,0x7fcd500e,0x71c45d05,0x63df4a18,0x6dd64713,0xd731dcca,0xd938d1c1,0xcb23c6dc,0xc52acbd7,0xef15e8e6,0xe11ce5ed,0xf307f2f0,0xfd0efffb,0xa779b492,0xa970b999,0xbb6bae84,0xb562a38f,0x9f5d80be,0x91548db5,0x834f9aa8,0x8d4697a3],_0x358d47[_0x28184e([0x55,0x32])]=[0x0,0xb0e090d,0x161c121a,0x1d121b17,0x2c382434,0x27362d39,0x3a24362e,0x312a3f23,0x58704868,0x537e4165,0x4e6c5a72,0x4562537f,0x74486c5c,0x7f466551,0x62547e46,0x695a774b,0xb0e090d0,0xbbee99dd,0xa6fc82ca,0xadf28bc7,0x9cd8b4e4,0x97d6bde9,0x8ac4a6fe,0x81caaff3,0xe890d8b8,0xe39ed1b5,0xfe8ccaa2,0xf582c3af,0xc4a8fc8c,0xcfa6f581,0xd2b4ee96,0xd9bae79b,0x7bdb3bbb,0x70d532b6,0x6dc729a1,0x66c920ac,0x57e31f8f,0x5ced1682,0x41ff0d95,0x4af10498,0x23ab73d3,0x28a57ade,0x35b761c9,0x3eb968c4,0xf9357e7,0x49d5eea,0x198f45fd,0x12814cf0,0xcb3bab6b,0xc035a266,0xdd27b971,0xd629b07c,0xe7038f5f,0xec0d8652,0xf11f9d45,0xfa119448,0x934be303,0x9845ea0e,0x8557f119,0x8e59f814,0xbf73c737,0xb47dce3a,0xa96fd52d,0xa261dc20,0xf6ad766d,0xfda37f60,0xe0b16477,0xebbf6d7a,0xda955259,0xd19b5b54,0xcc894043,0xc787494e,0xaedd3e05,0xa5d33708,0xb8c12c1f,0xb3cf2512,0x82e51a31,0x89eb133c,0x94f9082b,0x9ff70126,0x464de6bd,0x4d43efb0,0x5051f4a7,0x5b5ffdaa,0x6a75c289,0x617bcb84,0x7c69d093,0x7767d99e,0x1e3daed5,0x1533a7d8,0x821bccf,0x32fb5c2,0x32058ae1,0x390b83ec,0x241998fb,0x2f1791f6,0x8d764dd6,0x867844db,0x9b6a5fcc,0x906456c1,0xa14e69e2,0xaa4060ef,0xb7527bf8,0xbc5c72f5,0xd50605be,0xde080cb3,0xc31a17a4,0xc8141ea9,0xf93e218a,0xf2302887,0xef223390,0xe42c3a9d,0x3d96dd06,0x3698d40b,0x2b8acf1c,0x2084c611,0x11aef932,0x1aa0f03f,0x7b2eb28,0xcbce225,0x65e6956e,0x6ee89c63,0x73fa8774,0x78f48e79,0x49deb15a,0x42d0b857,0x5fc2a340,0x54ccaa4d,0xf741ecda,0xfc4fe5d7,0xe15dfec0,0xea53f7cd,0xdb79c8ee,0xd077c1e3,0xcd65daf4,0xc66bd3f9,0xaf31a4b2,0xa43fadbf,0xb92db6a8,0xb223bfa5,0x83098086,0x8807898b,0x9515929c,0x9e1b9b91,0x47a17c0a,0x4caf7507,0x51bd6e10,0x5ab3671d,0x6b99583e,0x60975133,0x7d854a24,0x768b4329,0x1fd13462,0x14df3d6f,0x9cd2678,0x2c32f75,0x33e91056,0x38e7195b,0x25f5024c,0x2efb0b41,0x8c9ad761,0x8794de6c,0x9a86c57b,0x9188cc76,0xa0a2f355,0xabacfa58,0xb6bee14f,0xbdb0e842,0xd4ea9f09,0xdfe49604,0xc2f68d13,0xc9f8841e,0xf8d2bb3d,0xf3dcb230,0xeecea927,0xe5c0a02a,0x3c7a47b1,0x37744ebc,0x2a6655ab,0x21685ca6,0x10426385,0x1b4c6a88,0x65e719f,0xd507892,0x640a0fd9,0x6f0406d4,0x72161dc3,0x791814ce,0x48322bed,0x433c22e0,0x5e2e39f7,0x552030fa,0x1ec9ab7,0xae293ba,0x17f088ad,0x1cfe81a0,0x2dd4be83,0x26dab78e,0x3bc8ac99,0x30c6a594,0x599cd2df,0x5292dbd2,0x4f80c0c5,0x448ec9c8,0x75a4f6eb,0x7eaaffe6,0x63b8e4f1,0x68b6edfc,0xb10c0a67,0xba02036a,0xa710187d,0xac1e1170,0x9d342e53,0x963a275e,0x8b283c49,0x80263544,0xe97c420f,0xe2724b02,0xff605015,0xf46e5918,0xc544663b,0xce4a6f36,0xd3587421,0xd8567d2c,0x7a37a10c,0x7139a801,0x6c2bb316,0x6725ba1b,0x560f8538,0x5d018c35,0x40139722,0x4b1d9e2f,0x2247e964,0x2949e069,0x345bfb7e,0x3f55f273,0xe7fcd50,0x571c45d,0x1863df4a,0x136dd647,0xcad731dc,0xc1d938d1,0xdccb23c6,0xd7c52acb,0xe6ef15e8,0xede11ce5,0xf0f307f2,0xfbfd0eff,0x92a779b4,0x99a970b9,0x84bb6bae,0x8fb562a3,0xbe9f5d80,0xb591548d,0xa8834f9a,0xa38d4697],_0x358d47[_0x28184e([0x55,0x33])]=[0x0,0xd0b0e09,0x1a161c12,0x171d121b,0x342c3824,0x3927362d,0x2e3a2436,0x23312a3f,0x68587048,0x65537e41,0x724e6c5a,0x7f456253,0x5c74486c,0x517f4665,0x4662547e,0x4b695a77,0xd0b0e090,0xddbbee99,0xcaa6fc82,0xc7adf28b,0xe49cd8b4,0xe997d6bd,0xfe8ac4a6,0xf381caaf,0xb8e890d8,0xb5e39ed1,0xa2fe8cca,0xaff582c3,0x8cc4a8fc,0x81cfa6f5,0x96d2b4ee,0x9bd9bae7,0xbb7bdb3b,0xb670d532,0xa16dc729,0xac66c920,0x8f57e31f,0x825ced16,0x9541ff0d,0x984af104,0xd323ab73,0xde28a57a,0xc935b761,0xc43eb968,0xe70f9357,0xea049d5e,0xfd198f45,0xf012814c,0x6bcb3bab,0x66c035a2,0x71dd27b9,0x7cd629b0,0x5fe7038f,0x52ec0d86,0x45f11f9d,0x48fa1194,0x3934be3,0xe9845ea,0x198557f1,0x148e59f8,0x37bf73c7,0x3ab47dce,0x2da96fd5,0x20a261dc,0x6df6ad76,0x60fda37f,0x77e0b164,0x7aebbf6d,0x59da9552,0x54d19b5b,0x43cc8940,0x4ec78749,0x5aedd3e,0x8a5d337,0x1fb8c12c,0x12b3cf25,0x3182e51a,0x3c89eb13,0x2b94f908,0x269ff701,0xbd464de6,0xb04d43ef,0xa75051f4,0xaa5b5ffd,0x896a75c2,0x84617bcb,0x937c69d0,0x9e7767d9,0xd51e3dae,0xd81533a7,0xcf0821bc,0xc2032fb5,0xe132058a,0xec390b83,0xfb241998,0xf62f1791,0xd68d764d,0xdb867844,0xcc9b6a5f,0xc1906456,0xe2a14e69,0xefaa4060,0xf8b7527b,0xf5bc5c72,0xbed50605,0xb3de080c,0xa4c31a17,0xa9c8141e,0x8af93e21,0x87f23028,0x90ef2233,0x9de42c3a,0x63d96dd,0xb3698d4,0x1c2b8acf,0x112084c6,0x3211aef9,0x3f1aa0f0,0x2807b2eb,0x250cbce2,0x6e65e695,0x636ee89c,0x7473fa87,0x7978f48e,0x5a49deb1,0x5742d0b8,0x405fc2a3,0x4d54ccaa,0xdaf741ec,0xd7fc4fe5,0xc0e15dfe,0xcdea53f7,0xeedb79c8,0xe3d077c1,0xf4cd65da,0xf9c66bd3,0xb2af31a4,0xbfa43fad,0xa8b92db6,0xa5b223bf,0x86830980,0x8b880789,0x9c951592,0x919e1b9b,0xa47a17c,0x74caf75,0x1051bd6e,0x1d5ab367,0x3e6b9958,0x33609751,0x247d854a,0x29768b43,0x621fd134,0x6f14df3d,0x7809cd26,0x7502c32f,0x5633e910,0x5b38e719,0x4c25f502,0x412efb0b,0x618c9ad7,0x6c8794de,0x7b9a86c5,0x769188cc,0x55a0a2f3,0x58abacfa,0x4fb6bee1,0x42bdb0e8,0x9d4ea9f,0x4dfe496,0x13c2f68d,0x1ec9f884,0x3df8d2bb,0x30f3dcb2,0x27eecea9,0x2ae5c0a0,0xb13c7a47,0xbc37744e,0xab2a6655,0xa621685c,0x85104263,0x881b4c6a,0x9f065e71,0x920d5078,0xd9640a0f,0xd46f0406,0xc372161d,0xce791814,0xed48322b,0xe0433c22,0xf75e2e39,0xfa552030,0xb701ec9a,0xba0ae293,0xad17f088,0xa01cfe81,0x832dd4be,0x8e26dab7,0x993bc8ac,0x9430c6a5,0xdf599cd2,0xd25292db,0xc54f80c0,0xc8448ec9,0xeb75a4f6,0xe67eaaff,0xf163b8e4,0xfc68b6ed,0x67b10c0a,0x6aba0203,0x7da71018,0x70ac1e11,0x539d342e,0x5e963a27,0x498b283c,0x44802635,0xfe97c42,0x2e2724b,0x15ff6050,0x18f46e59,0x3bc54466,0x36ce4a6f,0x21d35874,0x2cd8567d,0xc7a37a1,0x17139a8,0x166c2bb3,0x1b6725ba,0x38560f85,0x355d018c,0x22401397,0x2f4b1d9e,0x642247e9,0x692949e0,0x7e345bfb,0x733f55f2,0x500e7fcd,0x5d0571c4,0x4a1863df,0x47136dd6,0xdccad731,0xd1c1d938,0xc6dccb23,0xcbd7c52a,0xe8e6ef15,0xe5ede11c,0xf2f0f307,0xfffbfd0e,0xb492a779,0xb999a970,0xae84bb6b,0xa38fb562,0x80be9f5d,0x8db59154,0x9aa8834f,0x97a38d46],_0x358d47[_0x28184e([0x55,0x34])]=[0x0,0x90d0b0e,0x121a161c,0x1b171d12,0x24342c38,0x2d392736,0x362e3a24,0x3f23312a,0x48685870,0x4165537e,0x5a724e6c,0x537f4562,0x6c5c7448,0x65517f46,0x7e466254,0x774b695a,0x90d0b0e0,0x99ddbbee,0x82caa6fc,0x8bc7adf2,0xb4e49cd8,0xbde997d6,0xa6fe8ac4,0xaff381ca,0xd8b8e890,0xd1b5e39e,0xcaa2fe8c,0xc3aff582,0xfc8cc4a8,0xf581cfa6,0xee96d2b4,0xe79bd9ba,0x3bbb7bdb,0x32b670d5,0x29a16dc7,0x20ac66c9,0x1f8f57e3,0x16825ced,0xd9541ff,0x4984af1,0x73d323ab,0x7ade28a5,0x61c935b7,0x68c43eb9,0x57e70f93,0x5eea049d,0x45fd198f,0x4cf01281,0xab6bcb3b,0xa266c035,0xb971dd27,0xb07cd629,0x8f5fe703,0x8652ec0d,0x9d45f11f,0x9448fa11,0xe303934b,0xea0e9845,0xf1198557,0xf8148e59,0xc737bf73,0xce3ab47d,0xd52da96f,0xdc20a261,0x766df6ad,0x7f60fda3,0x6477e0b1,0x6d7aebbf,0x5259da95,0x5b54d19b,0x4043cc89,0x494ec787,0x3e05aedd,0x3708a5d3,0x2c1fb8c1,0x2512b3cf,0x1a3182e5,0x133c89eb,0x82b94f9,0x1269ff7,0xe6bd464d,0xefb04d43,0xf4a75051,0xfdaa5b5f,0xc2896a75,0xcb84617b,0xd0937c69,0xd99e7767,0xaed51e3d,0xa7d81533,0xbccf0821,0xb5c2032f,0x8ae13205,0x83ec390b,0x98fb2419,0x91f62f17,0x4dd68d76,0x44db8678,0x5fcc9b6a,0x56c19064,0x69e2a14e,0x60efaa40,0x7bf8b752,0x72f5bc5c,0x5bed506,0xcb3de08,0x17a4c31a,0x1ea9c814,0x218af93e,0x2887f230,0x3390ef22,0x3a9de42c,0xdd063d96,0xd40b3698,0xcf1c2b8a,0xc6112084,0xf93211ae,0xf03f1aa0,0xeb2807b2,0xe2250cbc,0x956e65e6,0x9c636ee8,0x877473fa,0x8e7978f4,0xb15a49de,0xb85742d0,0xa3405fc2,0xaa4d54cc,0xecdaf741,0xe5d7fc4f,0xfec0e15d,0xf7cdea53,0xc8eedb79,0xc1e3d077,0xdaf4cd65,0xd3f9c66b,0xa4b2af31,0xadbfa43f,0xb6a8b92d,0xbfa5b223,0x80868309,0x898b8807,0x929c9515,0x9b919e1b,0x7c0a47a1,0x75074caf,0x6e1051bd,0x671d5ab3,0x583e6b99,0x51336097,0x4a247d85,0x4329768b,0x34621fd1,0x3d6f14df,0x267809cd,0x2f7502c3,0x105633e9,0x195b38e7,0x24c25f5,0xb412efb,0xd7618c9a,0xde6c8794,0xc57b9a86,0xcc769188,0xf355a0a2,0xfa58abac,0xe14fb6be,0xe842bdb0,0x9f09d4ea,0x9604dfe4,0x8d13c2f6,0x841ec9f8,0xbb3df8d2,0xb230f3dc,0xa927eece,0xa02ae5c0,0x47b13c7a,0x4ebc3774,0x55ab2a66,0x5ca62168,0x63851042,0x6a881b4c,0x719f065e,0x78920d50,0xfd9640a,0x6d46f04,0x1dc37216,0x14ce7918,0x2bed4832,0x22e0433c,0x39f75e2e,0x30fa5520,0x9ab701ec,0x93ba0ae2,0x88ad17f0,0x81a01cfe,0xbe832dd4,0xb78e26da,0xac993bc8,0xa59430c6,0xd2df599c,0xdbd25292,0xc0c54f80,0xc9c8448e,0xf6eb75a4,0xffe67eaa,0xe4f163b8,0xedfc68b6,0xa67b10c,0x36aba02,0x187da710,0x1170ac1e,0x2e539d34,0x275e963a,0x3c498b28,0x35448026,0x420fe97c,0x4b02e272,0x5015ff60,0x5918f46e,0x663bc544,0x6f36ce4a,0x7421d358,0x7d2cd856,0xa10c7a37,0xa8017139,0xb3166c2b,0xba1b6725,0x8538560f,0x8c355d01,0x97224013,0x9e2f4b1d,0xe9642247,0xe0692949,0xfb7e345b,0xf2733f55,0xcd500e7f,0xc45d0571,0xdf4a1863,0xd647136d,0x31dccad7,0x38d1c1d9,0x23c6dccb,0x2acbd7c5,0x15e8e6ef,0x1ce5ede1,0x7f2f0f3,0xefffbfd,0x79b492a7,0x70b999a9,0x6bae84bb,0x62a38fb5,0x5d80be9f,0x548db591,0x4f9aa883,0x4697a38d];const _0x22812b=new Uint8Array(0x10);for(let _0x3c8bfa=0xf;_0x3c8bfa>=0x0;--_0x3c8bfa)_0x22812b[_0x3c8bfa]=_0x1ece58%0x100,_0x1ece58=parseInt(_0x1ece58/0x100);let _0x2f886d=null,_0x2a762d=0x10;const _0x240647=new Uint8Array(_0x575a25),_0x184379=[],_0x4021f4=[];!function(){const _0x453fee=_0x358d47[_0x28184e([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])][_0x240647[_0x2f8d('0x29')]];for(let _0x54b14d=0x0;_0x54b14d<=_0x453fee;_0x54b14d++)_0x184379[_0x2f8d('0x68')]([0x0,0x0,0x0,0x0]),_0x4021f4[_0x2f8d('0x68')]([0x0,0x0,0x0,0x0]);const _0x266c8a=0x4*(_0x453fee+0x1),_0x220299=_0x240647[_0x2f8d('0x29')]/0x4,_0x3b655a=_0xdab6c9(_0x240647);let _0x4b0150;for(let _0x12a8b9=0x0;_0x12a8b9<_0x220299;_0x12a8b9++)_0x4b0150=_0x12a8b9>>0x2,_0x184379[_0x4b0150][_0x12a8b9%0x4]=_0x3b655a[_0x12a8b9],_0x4021f4[_0x453fee-_0x4b0150][_0x12a8b9%0x4]=_0x3b655a[_0x12a8b9];let _0x57bb98,_0x5b8f7d=0x0,_0x14a160=_0x220299;for(;_0x14a160<_0x266c8a;){_0x57bb98=_0x3b655a[_0x220299-0x1],_0x3b655a[0x0]^=_0x358d47[_0x28184e([0x53])][_0x57bb98>>0x10&0xff]<<0x18^_0x358d47[_0x28184e([0x53])][_0x57bb98>>0x8&0xff]<<0x10^_0x358d47[_0x28184e([0x53])][0xff&_0x57bb98]<<0x8^_0x358d47[_0x28184e([0x53])][_0x57bb98>>0x18&0xff]^_0x358d47[_0x28184e([0x72,0x63,0x6f,0x6e])][_0x5b8f7d]<<0x18,_0x5b8f7d+=0x1;for(let _0xdf6feb=0x1;_0xdf6feb<_0x220299/0x2;_0xdf6feb++)_0x3b655a[_0xdf6feb]^=_0x3b655a[_0xdf6feb-0x1];_0x57bb98=_0x3b655a[_0x220299/0x2-0x1],_0x3b655a[_0x220299/0x2]^=_0x358d47[_0x28184e([0x53])][0xff&_0x57bb98]^_0x358d47[_0x28184e([0x53])][_0x57bb98>>0x8&0xff]<<0x8^_0x358d47[_0x28184e([0x53])][_0x57bb98>>0x10&0xff]<<0x10^_0x358d47[_0x28184e([0x53])][_0x57bb98>>0x18&0xff]<<0x18;for(let _0x561119=_0x220299/0x2+0x1;_0x561119<_0x220299;_0x561119++)_0x3b655a[_0x561119]^=_0x3b655a[_0x561119-0x1];let _0x36ddf6,_0x15953c,_0x18ff72=0x0;for(;_0x18ff72<_0x220299&&_0x14a160<_0x266c8a;)_0x36ddf6=_0x14a160>>0x2,_0x15953c=_0x14a160%0x4,_0x184379[_0x36ddf6][_0x15953c]=_0x3b655a[_0x18ff72],_0x4021f4[_0x453fee-_0x36ddf6][_0x15953c]=_0x3b655a[_0x18ff72++],_0x14a160++;}for(let _0x341358=0x1;_0x341358<_0x453fee;_0x341358++)for(let _0x3bd845=0x0;_0x3bd845<0x4;_0x3bd845++)_0x57bb98=_0x4021f4[_0x341358][_0x3bd845],_0x4021f4[_0x341358][_0x3bd845]=_0x358d47[_0x28184e([0x55,0x31])][_0x57bb98>>0x18&0xff]^_0x358d47[_0x28184e([0x55,0x32])][_0x57bb98>>0x10&0xff]^_0x358d47[_0x28184e([0x55,0x33])][_0x57bb98>>0x8&0xff]^_0x358d47[_0x28184e([0x55,0x34])][0xff&_0x57bb98];}();for(let _0x428a6b=0x0;_0x428a6b<_0x57ab56['length'];_0x428a6b++)0x10===_0x2a762d&&(_0x2f886d=_0x55faaf(_0x22812b),_0x2a762d=0x0,_0x12e2e5(_0x22812b)),_0x57ab56[_0x428a6b]^=_0x2f886d[_0x2a762d++];return _0x57ab56;function _0xdab6c9(_0x3b9f94){const _0x488c07=[];for(let _0x4d34b8=0x0;_0x4d34b8<_0x3b9f94[_0x2f8d('0x29')];_0x4d34b8+=0x4)_0x488c07[_0x2f8d('0x68')](_0x3b9f94[_0x4d34b8]<<0x18|_0x3b9f94[_0x4d34b8+0x1]<<0x10|_0x3b9f94[_0x4d34b8+0x2]<<0x8|_0x3b9f94[_0x4d34b8+0x3]);return _0x488c07;}function _0x12e2e5(_0x46156f){for(let _0x2358a9=0xf;_0x2358a9>=0x0;_0x2358a9--){if(0xff!==_0x46156f[_0x2358a9]){_0x46156f[_0x2358a9]++;break;}_0x46156f[_0x2358a9]=0x0;}}function _0x55faaf(_0x4ade6c){const _0x55b90a=_0x184379['length']-0x1,_0x313cdb=[0x0,0x0,0x0,0x0];let _0x159b74=_0xdab6c9(_0x4ade6c);for(let _0x276c74=0x0;_0x276c74<0x4;_0x276c74++)_0x159b74[_0x276c74]^=_0x184379[0x0][_0x276c74];for(let _0x3ac3f4=0x1;_0x3ac3f4<_0x55b90a;_0x3ac3f4++){for(let _0x1b9cdb=0x0;_0x1b9cdb<0x4;_0x1b9cdb++)_0x313cdb[_0x1b9cdb]=_0x358d47[_0x28184e([0x54,0x31])][_0x159b74[_0x1b9cdb]>>0x18&0xff]^_0x358d47[_0x28184e([0x54,0x32])][_0x159b74[(_0x1b9cdb+0x1)%0x4]>>0x10&0xff]^_0x358d47[_0x28184e([0x54,0x33])][_0x159b74[(_0x1b9cdb+0x2)%0x4]>>0x8&0xff]^_0x358d47[_0x28184e([0x54,0x34])][0xff&_0x159b74[(_0x1b9cdb+0x3)%0x4]]^_0x184379[_0x3ac3f4][_0x1b9cdb];_0x159b74=_0x313cdb[_0x2f8d('0x4')]();}const _0x33548e=new Uint8Array(0x10);let _0x18c239;for(let _0x2b85fa=0x0;_0x2b85fa<0x4;_0x2b85fa++)_0x18c239=_0x184379[_0x55b90a][_0x2b85fa],_0x33548e[0x4*_0x2b85fa]=0xff&(_0x358d47[_0x28184e([0x53])][_0x159b74[_0x2b85fa]>>0x18&0xff]^_0x18c239>>0x18),_0x33548e[0x4*_0x2b85fa+0x1]=0xff&(_0x358d47[_0x28184e([0x53])][_0x159b74[(_0x2b85fa+0x1)%0x4]>>0x10&0xff]^_0x18c239>>0x10),_0x33548e[0x4*_0x2b85fa+0x2]=0xff&(_0x358d47[_0x28184e([0x53])][_0x159b74[(_0x2b85fa+0x2)%0x4]>>0x8&0xff]^_0x18c239>>0x8),_0x33548e[0x4*_0x2b85fa+0x3]=0xff&(_0x358d47[_0x28184e([0x53])][0xff&_0x159b74[(_0x2b85fa+0x3)%0x4]]^_0x18c239);return _0x33548e;}}function _0x28184e(_0x47b1e1){return _0x47b1e1[_0x2f8d('0x60')](_0x3a121f=>String[_0x2f8d('0x1b')](_0x3a121f))[_0x2f8d('0x5a')]('');}_0x4db8fc?(_0x488d5a==_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?_0x3a67b4(_0x36652a):_0x488d5a==_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c])&&eval(_0x28184e([0x77,0x69,0x6e,0x64,0x6f,0x77]))[_0x28184e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](()=>{_0x3a67b4(_0x36652a),_0x4140ae(_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]));},_0x3e5491[0x6]*_0x2bd5a0[0x8]*_0x2bd5a0[0x6]),_0x36652a[_0x28184e([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])][_0x28184e([0x6f,0x6e])](_0x28184e([0x61,0x64,0x64]),(_0xed84df,_0x9af3f3)=>{_0x488d5a!=_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])&&_0x488d5a!=_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74])||_0x39f0bf(_0x9af3f3);})):_0x488d5a==_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?_0x39f0bf(_0x36652a):_0x488d5a==_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c])&&_0x36652a[_0x28184e([0x6f,0x6e])](_0x28184e([0x72,0x65,0x61,0x64,0x79]),()=>{let _0x1a1324=0x0;_0x36652a[_0x28184e([0x6d,0x6f,0x64,0x65,0x6c])][_0x28184e([0x6f,0x6e])](_0x28184e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x37c66a,_0x3c1fab)=>{_0x3c1fab[0x0][_0x28184e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a1324++,0x1f8===_0x1a1324&&(_0x39f0bf(_0x36652a),_0x4140ae(_0x28184e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74])),_0x37c66a[_0x28184e([0x6f,0x66,0x66])]());},{'priority':_0x28184e([0x68,0x69,0x67,0x68,0x65,0x73,0x74])});});}_0x28671f(Comment,_0x451a40); | ||
import Context from'@ckeditor/ckeditor5-core/src/context';import _0x2e2ff5 from'@ckeditor/ckeditor5-core/src/contextplugin';import PendingActions from'@ckeditor/ckeditor5-core/src/pendingactions';import _0x3cb614 from'../annotations/annotations';import _0xb06dd4 from'@ckeditor/ckeditor5-collaboration-core/src/users';import _0x450b4e from'@ckeditor/ckeditor5-utils/src/collection';import CommentThreadController from'./ui/commentthreadcontroller';import getDateTimeFormatter from'../utils/getdatetimeformatter';import _0xc9256e from'@ckeditor/ckeditor5-utils/src/uid';import _0x538fe5 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';import _0x402431 from'@ckeditor/ckeditor5-utils/src/observablemixin';import _0x378cbe from'@ckeditor/ckeditor5-utils/src/mix';import _0x19cfe6 from'@ckeditor/ckeditor5-utils/src/dom/rect';import{isElement as _0x3bb240}from'lodash-es';import CommentThreadView from'./ui/view/commentthreadview';import CommentView from'./ui/view/commentview';import'../../theme/comment.css';import'../../theme/commentthread.css';import'../../theme/commentinput.css';const noChannel=Symbol('noChannel');export default class B extends _0x2e2ff5{static get['requires'](){return[_0x3cb614,_0xb06dd4,PendingActions];}static get['pluginName'](){return'CommentsRepository';}constructor(_0xf66634){super(_0xf66634),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['nt']=new Set(),this['licenseKey']=this['context']['config']['get']('licenseKey');const _0x4871be=this['context']['config'];_0x4871be['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4871be['define']('comments.maxThreadTotalWeight',0x1f4),_0x4871be['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4871be['define']('comments.CommentThreadView',CommentThreadView),_0x4871be['define']('comments.CommentView',CommentView);}['init'](){const _0xc0407f=this['context']['plugins']['get']('Annotations');this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x182b99,_0x9f5523)=>this['rt'](_0x9f5523)),this['on']('removeCommentThread',(_0x1c7536,_0x220bf6)=>this['ot'](_0x220bf6)),this['on']('addComment',(_0x31e7f3,_0x1574eb)=>this['it'](_0x1574eb)),this['on']('updateComment',(_0x863d1e,_0x3ad6f2)=>this['st'](_0x3ad6f2)),this['on']('removeComment',(_0x543077,_0x119601)=>this['at'](_0x119601)),this['on']('addComment',(_0xf7da7e,{threadId:_0x590c93,isFromAdapter:_0x57955c})=>{if(_0x57955c)return;const _0x207020=this['getCommentThread'](_0x590c93),_0x2751e9=this['_threadToController']['get'](_0x207020);_0x2751e9&&_0x2751e9['view']['focus']();},{'priority':'lowest'}),this['listenTo'](_0xc0407f,'change:activeView',(_0x2d2427,_0x329d5f,_0xe56674,_0x415227)=>{_0x415227&&(_0x415227['isActive']=!0x1),_0xe56674?(_0xe56674['isActive']=!0x0,this['activeCommentThread']=_0xe56674['_model']):this['activeCommentThread']=null;});}['afterInit'](){x8eE(this['context']);}set['adapter'](_0x280b3f){if(this['dt'])throw new _0x538fe5('commentsrepository-adapter-already-set:\x20Cannot\x20set\x20adapter\x20more\x20than\x20once.');this['dt']=_0x280b3f;}get['adapter'](){return this['dt'];}['addCommentThread']({channelId:_0x200907=noChannel,threadId:_0x2bf646=_0xc9256e(),comments:_0x30b29d=[],target:_0x41fb80,isFromAdapter:_0x1170e9}={}){return this['fire'](toEventName('addCommentThread',_0x200907),{'channelId':_0x200907,'threadId':_0x2bf646,'comments':_0x30b29d,'target':_0x41fb80,'isFromAdapter':_0x1170e9}),this['getCommentThread'](_0x2bf646);}['openNewCommentThread']({channelId:_0x3f53fe=noChannel,threadId:_0x41ed1e=_0xc9256e(),target:_0x194955}){if(this['nt']['has'](_0x3f53fe)||this['nt']['has'](void 0x0))return;if(!_0x194955)throw new _0x538fe5('commentsrepository-missing-target:\x20Missing\x20target.');const _0x2dc59b=this['addCommentThread']({'channelId':_0x3f53fe,'threadId':_0x41ed1e,'target':_0x194955});if(!_0x2dc59b)return null;const _0x3c2d3f=this['_threadToController']['get'](_0x2dc59b),_0x4dd676=_0x3c2d3f['view']['commentThreadInputView']['commentInputView'];return this['context']['plugins']['get']('Annotations')['activeView']=_0x3c2d3f['view'],_0x4dd676['once']('editorReady',()=>_0x4dd676['focus']()),_0x2dc59b;}['hasCommentThread'](_0x1edcf9){if('string'!=typeof _0x1edcf9)throw new _0x538fe5('commentsrepository-invalid-comment-thread-id:\x20CommentThread\x20id\x20has\x20to\x20be\x20a\x20string.');return this['_threads']['has'](_0x1edcf9);}['getCommentThread'](_0x139f55){if('string'!=typeof _0x139f55)throw new _0x538fe5('commentsrepository-invalid-comment-thread-id:\x20CommentThread\x20id\x20has\x20to\x20be\x20a\x20string.');return this['_threads']['get'](_0x139f55);}['fetchCommentThread']({channelId:_0x3a0092,threadId:_0x3b7b8f}={}){const _0x56bc30=this['getCommentThread'](_0x3b7b8f);if(_0x56bc30)return Promise['resolve'](_0x56bc30);if(!this['adapter'])throw new _0x538fe5('commentsrepository-missing-thread-and-adapter:\x20Comment\x20thread\x20with\x20\x22'+_0x3b7b8f+'\x22\x20id\x20is\x20not\x20added\x20to\x20the\x20editor\x20nor\x20adapter\x20is\x20defined.',this['context']);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x538fe5('commentsrepository-missing-thread-and-adapter-method:\x20Comment\x20thread\x20with\x20\x22'+_0x3b7b8f+'\x22\x20id\x20is\x20not\x20added\x20to\x20the\x20editor\x20nor\x20adapter.getCommentThread()\x20is\x20defined.',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x3a0092,'threadId':_0x3b7b8f})['then'](_0x20672f=>this['hasCommentThread'](_0x3b7b8f)?this['getCommentThread'](_0x3b7b8f):_0x20672f?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x3a0092},_0x20672f)):void 0x0)['catch'](_0x5ba6df=>{throw console['error'](_0x5ba6df),new _0x538fe5('commentsrepository-fetch-comment-thread:\x20Fetching\x20a\x20comment\x20thread\x20failed.',this['context']);});}['getCommentThreads']({channelId:_0x214776,skipNotAttached:_0x347bcc=!0x1,skipEmpty:_0x24d2c4=!0x1,toJSON:_0x255746=!0x1}={}){const _0x3326cb=[];for(const _0xf9e1a1 of this['_threads']['values']())_0x214776&&_0xf9e1a1['channelId']!==_0x214776||_0x347bcc&&!_0xf9e1a1['isAttached']||_0x24d2c4&&0x0===_0xf9e1a1['length']||_0x3326cb['push'](_0xf9e1a1);return _0x255746?_0x3326cb['map'](_0x2b578b=>_0x2b578b['toJSON']()):_0x3326cb;}['setActiveCommentThread'](_0x1d8a65){const _0x2ac6b9=this['context']['plugins']['get']('Annotations');if(!_0x1d8a65)return void(this['activeCommentThread']&&(_0x2ac6b9['activeView']=null));const _0x4fbb35=this['getCommentThread'](_0x1d8a65);if(!_0x4fbb35)throw new _0x538fe5('commentsrepository-active-missing-comment-thread:\x20Cannot\x20set\x20not\x20existing\x20comment\x20thread\x20as\x20active.',null,{'threadId':_0x1d8a65});if(!this['_threadToController']['has'](_0x4fbb35))throw new _0x538fe5('commentsrepository-active-not-attached:\x20Cannot\x20set\x20not\x20attached\x20comment\x20thread\x20as\x20an\x20active.',null,{'threadId':_0x1d8a65});_0x2ac6b9['activeView']=this['_threadToController']['get'](_0x4fbb35)['view'];}['switchReadOnly'](_0x5c2ea9,_0x54dd77){_0x5c2ea9?this['nt']['add'](_0x54dd77):this['nt']['delete'](_0x54dd77);for(const _0x441c2d of this['getCommentThreads']({'channelId':_0x54dd77}))_0x441c2d['isReadOnly']=!!_0x5c2ea9;}['rt']({channelId:_0x58c879,threadId:_0x4df9c5,comments:_0x5b27fd,target:_0x5b71bc,isFromAdapter:_0x240bbf}){if('string'!=typeof _0x4df9c5)throw new _0x538fe5('commentsrepository-invalid-comment-thread-id:\x20CommentThread\x20id\x20has\x20to\x20be\x20a\x20string.',null,{'threadId':_0x4df9c5});if(this['hasCommentThread'](_0x4df9c5))throw new _0x538fe5('commentsrepository-duplicated-comment-thread-id:\x20CommentThread\x20with\x20a\x20given\x20id\x20is\x20already\x20added.',null,{'threadId':_0x4df9c5});const _0x1f3f13=new CommentThread(this,{'channelId':_0x58c879,'id':_0x4df9c5});(this['nt']['has'](_0x58c879)||this['nt']['has'](void 0x0))&&(_0x1f3f13['isReadOnly']=!0x0),this['_threads']['set'](_0x4df9c5,_0x1f3f13);for(const _0x46ba39 of _0x5b27fd)_0x1f3f13['addComment'](Object['assign']({'isFromAdapter':_0x240bbf},_0x46ba39));_0x5b71bc&&_0x1f3f13['attachTo'](_0x5b71bc);}['_attachCommentThread']({threadId:_0x55757c,target:_0x1c1ce7}){const _0x4d1851=this['getCommentThread'](_0x55757c);if(!_0x4d1851)throw new _0x538fe5('commentsrepository-attach-missing-comment-thread:\x20Cannot\x20attach\x20not\x20existing\x20comment\x20thread.',this);if(!isValidTarget(_0x1c1ce7))throw new _0x538fe5('commentsrepository-invalid-target:\x20Invalid\x20target.');const _0x44bcb=this['context']['plugins']['get']('PendingActions'),_0x54cd81=this['context']['plugins']['get']('Annotations'),_0x130191=this['_createCommentThreadView'](_0x4d1851),_0x24fda3=new CommentThreadController(_0x4d1851,_0x130191);let _0x5cc79b=null;const t=this['context']['locale']['t'];_0x130191['on']('change:isDirty',(_0x31ca7f,_0x316441,_0x25a34f)=>{_0x25a34f?_0x5cc79b=_0x44bcb['add'](t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'})):(_0x44bcb['remove'](_0x5cc79b),_0x5cc79b=null);}),this['_threadToController']['set'](_0x4d1851,_0x24fda3),this['_viewToController']['set'](_0x130191,_0x24fda3);const _0x260624=_0x54cd81['add'](_0x130191,_0x1c1ce7);_0x260624['type']='comment',_0x260624['bind']('length')['to'](_0x130191),_0x260624['bind']('isDirty')['to'](_0x130191,'isDirty',_0x130191,'length',(_0x251375,_0x1665fb)=>_0x251375||!_0x1665fb),_0x260624['bind']('isActive')['to'](_0x130191);}['_createCommentThreadView'](_0x246ad7){const _0x11bf1d=this['context']['plugins']['get']('Users'),{config:_0x2141f8,locale:_0x540f2a}=this['context'],_0x10511c=getDateTimeFormatter(_0x2141f8['get']('locale'));return new(0x0,(_0x2141f8['get']('comments'))['CommentThreadView'])(_0x540f2a,_0x246ad7,_0x11bf1d['me'],{'editorConfig':_0x2141f8['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2141f8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2141f8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2141f8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x10511c,'CommentView':_0x2141f8['get']('comments')['CommentView']});}['ot']({threadId:_0x2e7be5,isFromAdapter:_0x13f8b0}){const _0xa196ff=this['getCommentThread'](_0x2e7be5);if(!_0xa196ff)throw new _0x538fe5('commentsrepository-remove-missing-comment-thread:\x20Cannot\x20remove\x20not\x20existing\x20comment\x20thread.',this);if(this['_detachCommentThread'](_0x2e7be5),this['_threads']['delete'](_0x2e7be5),!_0xa196ff['length']||_0x13f8b0||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x227b79=this['context']['plugins']['get']('PendingActions'),{channelId:_0xf029e7}=_0xa196ff,t=this['context']['locale']['t'],_0xad3e7=_0x227b79['add'](t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'}));return this['adapter']['removeCommentThread']({'channelId':_0xf029e7,'threadId':_0x2e7be5})['then'](()=>_0x227b79['remove'](_0xad3e7))['catch'](_0x4a329f=>{throw console['error'](_0x4a329f),new _0x538fe5('commentsrepository-remove-comment-thread-internal-error:\x20Removing\x20comment\x20thread\x20result\x20in\x20an\x20error.',this);});}['_detachCommentThread'](_0x2d2360){const _0x40b750=this['context']['plugins']['get']('Annotations'),_0x12b5ed=this['getCommentThread'](_0x2d2360);if(this['_threadToController']['has'](_0x12b5ed)){const _0x984bec=this['_threadToController']['get'](_0x12b5ed),_0x4b762d=_0x984bec['view'];this['_threadToController']['delete'](_0x12b5ed),this['_viewToController']['delete'](_0x4b762d),_0x40b750['remove'](_0x4b762d),_0x984bec['destroy'](),_0x4b762d['destroy']();}}['it']({threadId:_0x30bea8,commentId:_0x41b1f7=_0xc9256e(),content:_0x37875d,authorId:_0x269002,createdAt:_0x406dce,isFromAdapter:_0x2ccc3d}){if('string'!=typeof _0x41b1f7)throw new _0x538fe5('commentsrepository-invalid-commentId:\x20Comment\x20id\x20has\x20to\x20be\x20a\x20string.');if('string'!=typeof _0x269002)throw new _0x538fe5('commentsrepository-invalid-comment-authorId:\x20Comment\x20author\x20id\x20has\x20to\x20be\x20a\x20string.');if('string'!=typeof _0x37875d||!_0x37875d['trim']())throw new _0x538fe5('commentsrepository-invalid-comment-content:\x20Comment\x20content\x20has\x20to\x20be\x20a\x20string.');const _0x50f9d5=this['getCommentThread'](_0x30bea8);if(!_0x50f9d5)throw new _0x538fe5('commentsrepository-add-comment-to-missing-comment-thread:\x20Cannot\x20add\x20Comment\x20to\x20not\x20existing\x20CommentThread.',this);const _0x5e00fd=this['context']['plugins']['get'](_0xb06dd4)['getUser'](_0x269002);if(!_0x5e00fd)throw new _0x538fe5('commentsrepository-add-comment-user-not-exists:\x20Comment\x20author\x20is\x20not\x20defined\x20in\x20Users\x20plugin.',null,{'authorId':_0x269002});const _0x15847b=new Comment(this,{'threadId':_0x30bea8,'id':_0x41b1f7,'author':_0x5e00fd,'content':_0x37875d,'createdAt':_0x406dce||new Date()});if(_0x50f9d5['_add'](_0x15847b),_0x2ccc3d||!this['adapter']||'function'!=typeof this['adapter']['addComment'])return Promise['resolve']();const _0x5364b7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5e5dee}=_0x50f9d5,t=this['context']['locale']['t'],_0x131529=_0x5364b7['add'](t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'}));return this['adapter']['addComment']({'channelId':_0x5e5dee,'threadId':_0x30bea8,'commentId':_0x41b1f7,'content':_0x37875d})['then'](_0x47e1aa=>{if(_0x5364b7['remove'](_0x131529),this['hasCommentThread'](_0x30bea8))_0x47e1aa&&_0x47e1aa['createdAt']&&this['st']({'threadId':_0x30bea8,'commentId':_0x41b1f7,'createdAt':_0x47e1aa['createdAt'],'isFromAdapter':!0x0});else{const _0x15d6fa={'threadId':_0x30bea8,'commentId':_0x41b1f7,'content':_0x37875d,'createdAt':_0x47e1aa&&_0x47e1aa['createdAt']?_0x47e1aa['createdAt']:_0x406dce,'authorId':_0x5e00fd['id']};this['addCommentThread']({'channelId':_0x5e5dee,'threadId':_0x30bea8,'comments':[_0x15d6fa],'isFromAdapter':!0x0});}})['catch'](_0x58c940=>{throw console['error'](_0x58c940),new _0x538fe5('commentsrepository-add-comment-internal-error:\x20Adding\x20comment\x20result\x20in\x20an\x20error.',this);});}['st']({threadId:_0x50ee69,commentId:_0x445e65,content:_0x4e24de,createdAt:_0x331843,isFromAdapter:_0x3ed3bb}){if(void 0x0!==_0x4e24de&&('string'!=typeof _0x4e24de||!_0x4e24de['trim']()['length']))throw new _0x538fe5('commentsrepository-update-comment-invalid-content:\x20Comment\x20content\x20has\x20to\x20be\x20a\x20string.');const _0x55a982=this['getCommentThread'](_0x50ee69),_0x12e988=_0x55a982['getComment'](_0x445e65);if(!_0x12e988)throw new _0x538fe5('commentsrepository-update-missing-comment:\x20Cannot\x20update\x20not\x20existing\x20Comment.',this);let _0x4852e8=!0x1;if(_0x4e24de&&_0x4e24de!==_0x12e988['content']&&(_0x12e988['content']=_0x4e24de,_0x4852e8=!0x0),_0x331843&&_0x331843!==_0x12e988['createdAt']&&(_0x12e988['createdAt']=_0x331843,_0x4852e8=!0x0),!_0x4852e8)return Promise['resolve']();if(_0x55a982['fire']('commentUpdated'),_0x3ed3bb||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x68a6fb=this['context']['plugins']['get']('PendingActions'),{channelId:_0x312d43}=this['getCommentThread'](_0x12e988['threadId']),t=this['context']['locale']['t'],_0x5b98c9=_0x68a6fb['add'](t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'}));return this['adapter']['updateComment']({'channelId':_0x312d43,'threadId':_0x50ee69,'commentId':_0x445e65,'content':_0x4e24de})['then'](()=>_0x68a6fb['remove'](_0x5b98c9))['catch'](_0x3cebbd=>{throw console['error'](_0x3cebbd),new _0x538fe5('commentsrepository-update-comment-internal-error:\x20Updating\x20comment\x20resulted\x20in\x20an\x20error',this);});}['at']({threadId:_0x1f8d97,commentId:_0xdacfeb,isFromAdapter:_0x891260}){const _0x59d4cd=this['getCommentThread'](_0x1f8d97),_0x5e92f8=_0x59d4cd['getComment'](_0xdacfeb);if(!_0x5e92f8)throw new _0x538fe5('commentsrepository-remove-missing-comment:\x20Cannot\x20remove\x20not\x20existing\x20Comment.',this);if(_0x59d4cd['_remove'](_0x5e92f8),_0x891260||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x34bd53=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5c2071}=_0x59d4cd,t=this['context']['locale']['t'],_0x121998=_0x34bd53['add'](t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'}));return this['adapter']['removeComment']({'channelId':_0x5c2071,'threadId':_0x1f8d97,'commentId':_0xdacfeb})['then'](()=>_0x34bd53['remove'](_0x121998))['catch'](_0xe8323c=>{throw console['error'](_0xe8323c),new _0x538fe5('commentsrepository-remove-comment-internal-error:\x20Removing\x20comment\x20result\x20in\x20an\x20error.',this);});}}export class CommentThread{constructor(_0x2a917c,_0x5dbfed){this['channelId']=_0x5dbfed['channelId'],this['id']=_0x5dbfed['id'],this['set']('isReadOnly',!0x1),this['comments']=new _0x450b4e(),this['ct']=_0x2a917c,this['_isAttached']=!0x1;}get['weight'](){return Array['from'](this['comments'])['reduce']((_0xbf0b77,_0x1ba112)=>_0xbf0b77+_0x1ba112['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}['remove']({isFromAdapter:_0x21e520=!0x1}={}){const {channelId:_0x1317dc,id:_0x312fc9}=this;this['ct']['fire'](toEventName('removeCommentThread',_0x1317dc),{'channelId':_0x1317dc,'threadId':_0x312fc9,'isFromAdapter':_0x21e520});}['attachTo'](_0x1800b1){this['ct']['_attachCommentThread']({'threadId':this['id'],'target':_0x1800b1});}['addComment'](_0x462cee){const {channelId:_0x1dbe78,id:_0x180f79}=this;this['ct']['fire'](toEventName('addComment',_0x1dbe78,_0x180f79),Object['assign']({'channelId':_0x1dbe78,'threadId':_0x180f79},_0x462cee));}['getComment'](_0x43b2ef){if('string'!=typeof _0x43b2ef)throw new _0x538fe5('commentsrepository-get-comment-invalid-id:\x20Comment\x20id\x20has\x20to\x20be\x20a\x20string.',null,{'commentId':_0x43b2ef});return this['comments']['get'](_0x43b2ef);}['toJSON'](){return{'threadId':this['id'],'comments':this['comments']['map'](_0x483016=>_0x483016['toJSON']())};}['_add'](_0x41c2b9){return this['listenTo'](_0x41c2b9,'change:createdAt',()=>{const _0x2f5be5=this['ht'](_0x41c2b9),_0x574944=this['comments'];_0x2f5be5-0x1!=_0x574944['getIndex'](_0x41c2b9)&&_0x2f5be5+0x1!=_0x574944['getIndex'](_0x41c2b9)&&(this['_remove'](_0x41c2b9),this['_add'](_0x41c2b9));}),_0x41c2b9['createdAt']?this['comments']['add'](_0x41c2b9,this['ht'](_0x41c2b9)):this['comments']['add'](_0x41c2b9);}['_remove'](_0x57c5dc){return this['stopListening'](_0x57c5dc),_0x57c5dc['destroy'](),this['comments']['remove'](_0x57c5dc);}['ht'](_0x2d3189){const _0x344f5e=this['comments']['find'](_0x5681a5=>new Date(_0x5681a5['createdAt'])['getTime']()>new Date(_0x2d3189['createdAt'])['getTime']());return _0x344f5e?this['comments']['getIndex'](_0x344f5e):this['length'];}}_0x378cbe(CommentThread,_0x402431);const MIN_WEIGHT=0xc8;function getContentLength(_0x98601a){const _0x1d5093=document['createElement']('div');return _0x1d5093['innerHTML']=_0x98601a,_0x1d5093['textContent']['length'];}export class Comment{constructor(_0x1d6985,_0x4f45a0){const _0x448554=_0x1d6985['context']['plugins']['get']('Users')['me'],_0xdfaa3f=_0x1d6985['getCommentThread'](_0x4f45a0['threadId']);this['id']=_0x4f45a0['id'],this['threadId']=_0x4f45a0['threadId'],this['author']=_0x4f45a0['author'],this['set']('content',_0x4f45a0['content']),this['set']('createdAt',_0x4f45a0['createdAt']),this['set']('isEditable',_0x448554===_0x4f45a0['author']),this['set']('isRemovable',_0x448554===_0x4f45a0['author']),this['bind']('isReadOnly')['to'](_0xdfaa3f,'isReadOnly'),this['ct']=_0x1d6985;}get['weight'](){return Math['max'](getContentLength(this['content']),MIN_WEIGHT);}['update'](_0x3e16f8){if(!_0x3e16f8['isFromAdapter']&&!this['isEditable'])return;const {threadId:_0x1b70b1,id:_0x10cd4c}=this;if(!this['ct']['hasCommentThread'](_0x1b70b1))throw new _0x538fe5('commentsrepository-update-comment-missing-comment-thread:\x20Cannot\x20update\x20comment\x20of\x20not\x20existing\x20CommentThread.',this);const _0x260b68=this['ct']['getCommentThread'](_0x1b70b1),{channelId:_0x1ab780}=_0x260b68;this['ct']['fire'](toEventName('updateComment',_0x1ab780,_0x1b70b1),Object['assign']({'channelId':_0x1ab780,'threadId':_0x1b70b1,'commentId':_0x10cd4c},_0x3e16f8));}['remove'](_0x2b13a5={}){if(!_0x2b13a5['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x35ec53,id:_0x55fa1c}=this;if(!this['ct']['hasCommentThread'](_0x35ec53))throw new _0x538fe5('commentsrepository-remove-comment-missing-comment-thread:\x20Cannot\x20remove\x20comment\x20from\x20not\x20existing\x20CommentThread.',this);const _0x2a2002=this['ct']['getCommentThread'](_0x35ec53),{channelId:_0x43a5f1}=_0x2a2002;this['ct']['fire'](toEventName('removeComment',_0x43a5f1,_0x35ec53),Object['assign']({'channelId':_0x43a5f1,'threadId':_0x35ec53,'commentId':_0x55fa1c},_0x2b13a5));}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['author']['id']};}['destroy'](){this['stopListening']();}}function toEventName(_0x1cb1a3,..._0x45b454){for(const _0x1e48c6 of _0x45b454)'string'==typeof _0x1e48c6&&(_0x1cb1a3+=':'+_0x1e48c6);return _0x1cb1a3;}function isValidTarget(_0x3df9b3){let _0x5434f5=_0x3df9b3;return'function'==typeof _0x3df9b3&&(_0x5434f5=_0x3df9b3()),_0x5434f5 instanceof _0x19cfe6||_0x3bb240(_0x5434f5);}function x8eE(context){const isContext=context instanceof Context,_0x3b0339=[0x1,0x55,0x4e,0x73,0xc6,0xff,0x32,0x70,0x53,0x57,0xa1],commentsReleaseDate=_0x15a7af([0x34,0x30,0x34,0x30,0x30,0x38,0x36,0x30]),_0x370f26=[0x7f,0x22,0x6,0xd3,0xa7,0x56,0x92,0xc7,0x84,0xa0,0x12],alphanumericString=_0x15a7af([0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39]),status=_0xcb7c22(context['config']['get'](_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])));function _0xcb7c22(_0x41c477){if(context[_0x15a7af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15a7af([0x68,0x61,0x73])](_0x15a7af([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&context[_0x15a7af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15a7af([0x67,0x65,0x74])](_0x15a7af([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15a7af([0x73,0x74,0x61,0x74,0x65])]==_0x15a7af([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return generateLicenseKeyVariable(_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x56,0x61,0x6c,0x69,0x64]));try{const decryptedKey=decryptLicenseKey(_0x41c477),data=JSON['parse'](decryptedKey),expirationDate=parseInt(data[_0x15a7af([0x31])]),_0x43e65b=parseInt(data[_0x15a7af([0x33])]),_0x16a9fc=parseInt(data[_0x15a7af([0x34])])||0x0,isInternal=parseInt(data[_0x15a7af([0x35])])||0x0,commentsPermission=0x1,trackChangesPermission=0x2;if(!(_0x16a9fc&commentsPermission)||context[_0x15a7af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15a7af([0x68,0x61,0x73])](_0x15a7af([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))&&!(_0x16a9fc&trackChangesPermission))return generateLicenseKeyVariable(_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));if(isInternal&&!eval(_0x15a7af([0x77,0x69,0x6e,0x64,0x6f,0x77]))[_0x15a7af([0x6f,0x70,0x65,0x6e])][_0x15a7af([0x63,0x6c,0x6f,0x73,0x65,0x64])])return generateLicenseKeyVariable(_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));if(parseInt(commentsReleaseDate)/0x2>expirationDate)return generateLicenseKeyVariable(_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));if(context[_0x15a7af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15a7af([0x68,0x61,0x73])](_0x15a7af([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))){const _0x23ef34=context[_0x15a7af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15a7af([0x67,0x65,0x74])](_0x15a7af([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]));if(parseInt(_0x23ef34[_0x15a7af([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])])/0x2>expirationDate)return generateLicenseKeyVariable(_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}return generateLicenseKeyVariable(_0x43e65b?_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c]):_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x56,0x61,0x6c,0x69,0x64]));}catch(_0x1f2045){return generateLicenseKeyVariable(_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}function decryptLicenseKey(_0x1f605f){const _0x59d3b0=[0x1d,0xdd,0xaf,0x5a,0xe7,0x85,0xef,0xf0,0x4b,0xb4],_0x3d0733=new(eval(_0x15a7af([0x77,0x69,0x6e,0x64,0x6f,0x77])))[(_0x15a7af([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79]))]([..._0x3b0339,..._0x59d3b0,..._0x370f26]);return decrypt(_0x1f605f,_0x3d0733);}function decrypt(_0x5df5e7,_0x41d175){const _0x55f335=baseToString(_0x5df5e7),_0x5e16dc=Array['from'](stringToArray(_0x55f335)),_0x37fbcd=_0x5e16dc['pop'](),_0x336db1=_0x5e16dc['pop']();return arrayToString(aesCtr256(_0x5e16dc,_0x41d175,_0x336db1+0x100*_0x37fbcd));}function generateLicenseKeyVariable(_0x2050e1){const _0x2b33a7=getRandomVariableName();return context[_0x2b33a7]=_0x2050e1,_0x2050e1;}function getRandomVariableName(){const intAsString=String(eval(_0x15a7af([0x77,0x69,0x6e,0x64,0x6f,0x77]))[_0x15a7af([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15a7af([0x6e,0x6f,0x77])]())['replace'](_0x15a7af([0x2e]),'');let _0x1e8b75='';for(let _0xf2c91b=0x0;_0xf2c91b<intAsString['length'];_0xf2c91b+=0x2){let _0xaaecd8=parseInt(intAsString['substring'](_0xf2c91b,_0xf2c91b+0x2));_0xaaecd8>=alphanumericString['length']&&(_0xaaecd8-=alphanumericString['length']),_0x1e8b75+=alphanumericString[_0xaaecd8];}return _0x1e8b75;}function disableContext(_0x49d48b){for(const _0x2e8ec1 of _0x49d48b[_0x15a7af([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])])disableEditor(_0x2e8ec1);_0x49d48b[_0x15a7af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15a7af([0x67,0x65,0x74])](_0x15a7af([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x15a7af([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])](!0x0),_0x49d48b[_0x15a7af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15a7af([0x67,0x65,0x74])](_0x15a7af([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x15a7af([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])]=emptyFunc;}function disableEditor(_0x2ce35e){function _0x2aed15(){_0x2ce35e[_0x15a7af([0x6d,0x6f,0x64,0x65,0x6c])][_0x15a7af([0x63,0x68,0x61,0x6e,0x67,0x65])]=emptyFunc,_0x2ce35e[_0x15a7af([0x6d,0x6f,0x64,0x65,0x6c])][_0x15a7af([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=emptyFunc,_0x2ce35e[_0x15a7af([0x69,0x73,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])]=!0x0;}_0x2ce35e[_0x15a7af([0x73,0x74,0x61,0x74,0x65])]==_0x15a7af([0x72,0x65,0x61,0x64,0x79])?_0x2aed15():_0x2ce35e[_0x15a7af([0x6f,0x6e,0x63,0x65])](_0x15a7af([0x72,0x65,0x61,0x64,0x79]),()=>_0x2aed15());}function emptyFunc(){return null;}function stringToArray(_0x413f84){const _0x3db5ef=new Uint8Array(_0x413f84['length']);for(let _0x358cc1=0x0;_0x358cc1<_0x413f84['length'];_0x358cc1++)_0x3db5ef[_0x358cc1]=_0x413f84['charCodeAt'](_0x358cc1);return _0x3db5ef;}function arrayToString(_0x2396e2){let _0x1815ba='';for(const _0x5b619c of _0x2396e2)_0x1815ba+=String['fromCharCode'](_0x5b619c);return _0x1815ba;}function baseToString(_0x301a40){const _0x334e17=alphanumericString+_0x15a7af([0x2b,0x2f,0x3d]);if(_0x301a40=String(_0x301a40)['replace'](/[\t\n\f\r ]+/g,''),!/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/['test'](_0x301a40))throw new TypeError(_0x15a7af([0x46,0x61,0x69,0x6c,0x65,0x64,0x20,0x74,0x6f,0x20,0x70,0x61,0x72,0x73,0x65,0x20,0x62,0x61,0x73,0x65,0x36,0x34,0x20,0x74,0x6f,0x20,0x73,0x74,0x72,0x69,0x6e,0x67,0x2e]));_0x301a40+=_0x15a7af([0x3d,0x3d])['slice'](0x2-(0x3&_0x301a40['length']));let _0x1be47a,_0x555cee,_0x19dc19,_0x12f327='';for(let _0x201a3c=0x0;_0x201a3c<_0x301a40['length'];)_0x1be47a=_0x334e17['indexOf'](_0x301a40['charAt'](_0x201a3c++))<<0x12|_0x334e17['indexOf'](_0x301a40['charAt'](_0x201a3c++))<<0xc|(_0x555cee=_0x334e17['indexOf'](_0x301a40['charAt'](_0x201a3c++)))<<0x6|(_0x19dc19=_0x334e17['indexOf'](_0x301a40['charAt'](_0x201a3c++))),_0x12f327+=0x40===_0x555cee?String['fromCharCode'](_0x1be47a>>0x10&0xff):0x40===_0x19dc19?String['fromCharCode'](_0x1be47a>>0x10&0xff,_0x1be47a>>0x8&0xff):String['fromCharCode'](_0x1be47a>>0x10&0xff,_0x1be47a>>0x8&0xff,0xff&_0x1be47a);return _0x12f327;}function aesCtr256(_0x2ad355,_0x22553d,_0x434ba5){const _0x3c49c4={};_0x3c49c4[_0x15a7af([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])]={16:0xa,24:0xc,32:0xe},_0x3c49c4[_0x15a7af([0x72,0x63,0x6f,0x6e])]=[0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,0x2f,0x5e,0xbc,0x63,0xc6,0x97,0x35,0x6a,0xd4,0xb3,0x7d,0xfa,0xef,0xc5,0x91],_0x3c49c4[_0x15a7af([0x53])]=[0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x1,0x67,0x2b,0xfe,0xd7,0xab,0x76,0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0,0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15,0x4,0xc7,0x23,0xc3,0x18,0x96,0x5,0x9a,0x7,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75,0x9,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84,0x53,0xd1,0x0,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf,0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x2,0x7f,0x50,0x3c,0x9f,0xa8,0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2,0xcd,0xc,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73,0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0xb,0xdb,0xe0,0x32,0x3a,0xa,0x49,0x6,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79,0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x8,0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a,0x70,0x3e,0xb5,0x66,0x48,0x3,0xf6,0xe,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e,0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf,0x8c,0xa1,0x89,0xd,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0xf,0xb0,0x54,0xbb,0x16],_0x3c49c4[_0x15a7af([0x54,0x31])]=[0xc66363a5,0xf87c7c84,0xee777799,0xf67b7b8d,0xfff2f20d,0xd66b6bbd,0xde6f6fb1,0x91c5c554,0x60303050,0x2010103,0xce6767a9,0x562b2b7d,0xe7fefe19,0xb5d7d762,0x4dababe6,0xec76769a,0x8fcaca45,0x1f82829d,0x89c9c940,0xfa7d7d87,0xeffafa15,0xb25959eb,0x8e4747c9,0xfbf0f00b,0x41adadec,0xb3d4d467,0x5fa2a2fd,0x45afafea,0x239c9cbf,0x53a4a4f7,0xe4727296,0x9bc0c05b,0x75b7b7c2,0xe1fdfd1c,0x3d9393ae,0x4c26266a,0x6c36365a,0x7e3f3f41,0xf5f7f702,0x83cccc4f,0x6834345c,0x51a5a5f4,0xd1e5e534,0xf9f1f108,0xe2717193,0xabd8d873,0x62313153,0x2a15153f,0x804040c,0x95c7c752,0x46232365,0x9dc3c35e,0x30181828,0x379696a1,0xa05050f,0x2f9a9ab5,0xe070709,0x24121236,0x1b80809b,0xdfe2e23d,0xcdebeb26,0x4e272769,0x7fb2b2cd,0xea75759f,0x1209091b,0x1d83839e,0x582c2c74,0x341a1a2e,0x361b1b2d,0xdc6e6eb2,0xb45a5aee,0x5ba0a0fb,0xa45252f6,0x763b3b4d,0xb7d6d661,0x7db3b3ce,0x5229297b,0xdde3e33e,0x5e2f2f71,0x13848497,0xa65353f5,0xb9d1d168,0x0,0xc1eded2c,0x40202060,0xe3fcfc1f,0x79b1b1c8,0xb65b5bed,0xd46a6abe,0x8dcbcb46,0x67bebed9,0x7239394b,0x944a4ade,0x984c4cd4,0xb05858e8,0x85cfcf4a,0xbbd0d06b,0xc5efef2a,0x4faaaae5,0xedfbfb16,0x864343c5,0x9a4d4dd7,0x66333355,0x11858594,0x8a4545cf,0xe9f9f910,0x4020206,0xfe7f7f81,0xa05050f0,0x783c3c44,0x259f9fba,0x4ba8a8e3,0xa25151f3,0x5da3a3fe,0x804040c0,0x58f8f8a,0x3f9292ad,0x219d9dbc,0x70383848,0xf1f5f504,0x63bcbcdf,0x77b6b6c1,0xafdada75,0x42212163,0x20101030,0xe5ffff1a,0xfdf3f30e,0xbfd2d26d,0x81cdcd4c,0x180c0c14,0x26131335,0xc3ecec2f,0xbe5f5fe1,0x359797a2,0x884444cc,0x2e171739,0x93c4c457,0x55a7a7f2,0xfc7e7e82,0x7a3d3d47,0xc86464ac,0xba5d5de7,0x3219192b,0xe6737395,0xc06060a0,0x19818198,0x9e4f4fd1,0xa3dcdc7f,0x44222266,0x542a2a7e,0x3b9090ab,0xb888883,0x8c4646ca,0xc7eeee29,0x6bb8b8d3,0x2814143c,0xa7dede79,0xbc5e5ee2,0x160b0b1d,0xaddbdb76,0xdbe0e03b,0x64323256,0x743a3a4e,0x140a0a1e,0x924949db,0xc06060a,0x4824246c,0xb85c5ce4,0x9fc2c25d,0xbdd3d36e,0x43acacef,0xc46262a6,0x399191a8,0x319595a4,0xd3e4e437,0xf279798b,0xd5e7e732,0x8bc8c843,0x6e373759,0xda6d6db7,0x18d8d8c,0xb1d5d564,0x9c4e4ed2,0x49a9a9e0,0xd86c6cb4,0xac5656fa,0xf3f4f407,0xcfeaea25,0xca6565af,0xf47a7a8e,0x47aeaee9,0x10080818,0x6fbabad5,0xf0787888,0x4a25256f,0x5c2e2e72,0x381c1c24,0x57a6a6f1,0x73b4b4c7,0x97c6c651,0xcbe8e823,0xa1dddd7c,0xe874749c,0x3e1f1f21,0x964b4bdd,0x61bdbddc,0xd8b8b86,0xf8a8a85,0xe0707090,0x7c3e3e42,0x71b5b5c4,0xcc6666aa,0x904848d8,0x6030305,0xf7f6f601,0x1c0e0e12,0xc26161a3,0x6a35355f,0xae5757f9,0x69b9b9d0,0x17868691,0x99c1c158,0x3a1d1d27,0x279e9eb9,0xd9e1e138,0xebf8f813,0x2b9898b3,0x22111133,0xd26969bb,0xa9d9d970,0x78e8e89,0x339494a7,0x2d9b9bb6,0x3c1e1e22,0x15878792,0xc9e9e920,0x87cece49,0xaa5555ff,0x50282878,0xa5dfdf7a,0x38c8c8f,0x59a1a1f8,0x9898980,0x1a0d0d17,0x65bfbfda,0xd7e6e631,0x844242c6,0xd06868b8,0x824141c3,0x299999b0,0x5a2d2d77,0x1e0f0f11,0x7bb0b0cb,0xa85454fc,0x6dbbbbd6,0x2c16163a],_0x3c49c4[_0x15a7af([0x54,0x32])]=[0xa5c66363,0x84f87c7c,0x99ee7777,0x8df67b7b,0xdfff2f2,0xbdd66b6b,0xb1de6f6f,0x5491c5c5,0x50603030,0x3020101,0xa9ce6767,0x7d562b2b,0x19e7fefe,0x62b5d7d7,0xe64dabab,0x9aec7676,0x458fcaca,0x9d1f8282,0x4089c9c9,0x87fa7d7d,0x15effafa,0xebb25959,0xc98e4747,0xbfbf0f0,0xec41adad,0x67b3d4d4,0xfd5fa2a2,0xea45afaf,0xbf239c9c,0xf753a4a4,0x96e47272,0x5b9bc0c0,0xc275b7b7,0x1ce1fdfd,0xae3d9393,0x6a4c2626,0x5a6c3636,0x417e3f3f,0x2f5f7f7,0x4f83cccc,0x5c683434,0xf451a5a5,0x34d1e5e5,0x8f9f1f1,0x93e27171,0x73abd8d8,0x53623131,0x3f2a1515,0xc080404,0x5295c7c7,0x65462323,0x5e9dc3c3,0x28301818,0xa1379696,0xf0a0505,0xb52f9a9a,0x90e0707,0x36241212,0x9b1b8080,0x3ddfe2e2,0x26cdebeb,0x694e2727,0xcd7fb2b2,0x9fea7575,0x1b120909,0x9e1d8383,0x74582c2c,0x2e341a1a,0x2d361b1b,0xb2dc6e6e,0xeeb45a5a,0xfb5ba0a0,0xf6a45252,0x4d763b3b,0x61b7d6d6,0xce7db3b3,0x7b522929,0x3edde3e3,0x715e2f2f,0x97138484,0xf5a65353,0x68b9d1d1,0x0,0x2cc1eded,0x60402020,0x1fe3fcfc,0xc879b1b1,0xedb65b5b,0xbed46a6a,0x468dcbcb,0xd967bebe,0x4b723939,0xde944a4a,0xd4984c4c,0xe8b05858,0x4a85cfcf,0x6bbbd0d0,0x2ac5efef,0xe54faaaa,0x16edfbfb,0xc5864343,0xd79a4d4d,0x55663333,0x94118585,0xcf8a4545,0x10e9f9f9,0x6040202,0x81fe7f7f,0xf0a05050,0x44783c3c,0xba259f9f,0xe34ba8a8,0xf3a25151,0xfe5da3a3,0xc0804040,0x8a058f8f,0xad3f9292,0xbc219d9d,0x48703838,0x4f1f5f5,0xdf63bcbc,0xc177b6b6,0x75afdada,0x63422121,0x30201010,0x1ae5ffff,0xefdf3f3,0x6dbfd2d2,0x4c81cdcd,0x14180c0c,0x35261313,0x2fc3ecec,0xe1be5f5f,0xa2359797,0xcc884444,0x392e1717,0x5793c4c4,0xf255a7a7,0x82fc7e7e,0x477a3d3d,0xacc86464,0xe7ba5d5d,0x2b321919,0x95e67373,0xa0c06060,0x98198181,0xd19e4f4f,0x7fa3dcdc,0x66442222,0x7e542a2a,0xab3b9090,0x830b8888,0xca8c4646,0x29c7eeee,0xd36bb8b8,0x3c281414,0x79a7dede,0xe2bc5e5e,0x1d160b0b,0x76addbdb,0x3bdbe0e0,0x56643232,0x4e743a3a,0x1e140a0a,0xdb924949,0xa0c0606,0x6c482424,0xe4b85c5c,0x5d9fc2c2,0x6ebdd3d3,0xef43acac,0xa6c46262,0xa8399191,0xa4319595,0x37d3e4e4,0x8bf27979,0x32d5e7e7,0x438bc8c8,0x596e3737,0xb7da6d6d,0x8c018d8d,0x64b1d5d5,0xd29c4e4e,0xe049a9a9,0xb4d86c6c,0xfaac5656,0x7f3f4f4,0x25cfeaea,0xafca6565,0x8ef47a7a,0xe947aeae,0x18100808,0xd56fbaba,0x88f07878,0x6f4a2525,0x725c2e2e,0x24381c1c,0xf157a6a6,0xc773b4b4,0x5197c6c6,0x23cbe8e8,0x7ca1dddd,0x9ce87474,0x213e1f1f,0xdd964b4b,0xdc61bdbd,0x860d8b8b,0x850f8a8a,0x90e07070,0x427c3e3e,0xc471b5b5,0xaacc6666,0xd8904848,0x5060303,0x1f7f6f6,0x121c0e0e,0xa3c26161,0x5f6a3535,0xf9ae5757,0xd069b9b9,0x91178686,0x5899c1c1,0x273a1d1d,0xb9279e9e,0x38d9e1e1,0x13ebf8f8,0xb32b9898,0x33221111,0xbbd26969,0x70a9d9d9,0x89078e8e,0xa7339494,0xb62d9b9b,0x223c1e1e,0x92158787,0x20c9e9e9,0x4987cece,0xffaa5555,0x78502828,0x7aa5dfdf,0x8f038c8c,0xf859a1a1,0x80098989,0x171a0d0d,0xda65bfbf,0x31d7e6e6,0xc6844242,0xb8d06868,0xc3824141,0xb0299999,0x775a2d2d,0x111e0f0f,0xcb7bb0b0,0xfca85454,0xd66dbbbb,0x3a2c1616],_0x3c49c4[_0x15a7af([0x54,0x33])]=[0x63a5c663,0x7c84f87c,0x7799ee77,0x7b8df67b,0xf20dfff2,0x6bbdd66b,0x6fb1de6f,0xc55491c5,0x30506030,0x1030201,0x67a9ce67,0x2b7d562b,0xfe19e7fe,0xd762b5d7,0xabe64dab,0x769aec76,0xca458fca,0x829d1f82,0xc94089c9,0x7d87fa7d,0xfa15effa,0x59ebb259,0x47c98e47,0xf00bfbf0,0xadec41ad,0xd467b3d4,0xa2fd5fa2,0xafea45af,0x9cbf239c,0xa4f753a4,0x7296e472,0xc05b9bc0,0xb7c275b7,0xfd1ce1fd,0x93ae3d93,0x266a4c26,0x365a6c36,0x3f417e3f,0xf702f5f7,0xcc4f83cc,0x345c6834,0xa5f451a5,0xe534d1e5,0xf108f9f1,0x7193e271,0xd873abd8,0x31536231,0x153f2a15,0x40c0804,0xc75295c7,0x23654623,0xc35e9dc3,0x18283018,0x96a13796,0x50f0a05,0x9ab52f9a,0x7090e07,0x12362412,0x809b1b80,0xe23ddfe2,0xeb26cdeb,0x27694e27,0xb2cd7fb2,0x759fea75,0x91b1209,0x839e1d83,0x2c74582c,0x1a2e341a,0x1b2d361b,0x6eb2dc6e,0x5aeeb45a,0xa0fb5ba0,0x52f6a452,0x3b4d763b,0xd661b7d6,0xb3ce7db3,0x297b5229,0xe33edde3,0x2f715e2f,0x84971384,0x53f5a653,0xd168b9d1,0x0,0xed2cc1ed,0x20604020,0xfc1fe3fc,0xb1c879b1,0x5bedb65b,0x6abed46a,0xcb468dcb,0xbed967be,0x394b7239,0x4ade944a,0x4cd4984c,0x58e8b058,0xcf4a85cf,0xd06bbbd0,0xef2ac5ef,0xaae54faa,0xfb16edfb,0x43c58643,0x4dd79a4d,0x33556633,0x85941185,0x45cf8a45,0xf910e9f9,0x2060402,0x7f81fe7f,0x50f0a050,0x3c44783c,0x9fba259f,0xa8e34ba8,0x51f3a251,0xa3fe5da3,0x40c08040,0x8f8a058f,0x92ad3f92,0x9dbc219d,0x38487038,0xf504f1f5,0xbcdf63bc,0xb6c177b6,0xda75afda,0x21634221,0x10302010,0xff1ae5ff,0xf30efdf3,0xd26dbfd2,0xcd4c81cd,0xc14180c,0x13352613,0xec2fc3ec,0x5fe1be5f,0x97a23597,0x44cc8844,0x17392e17,0xc45793c4,0xa7f255a7,0x7e82fc7e,0x3d477a3d,0x64acc864,0x5de7ba5d,0x192b3219,0x7395e673,0x60a0c060,0x81981981,0x4fd19e4f,0xdc7fa3dc,0x22664422,0x2a7e542a,0x90ab3b90,0x88830b88,0x46ca8c46,0xee29c7ee,0xb8d36bb8,0x143c2814,0xde79a7de,0x5ee2bc5e,0xb1d160b,0xdb76addb,0xe03bdbe0,0x32566432,0x3a4e743a,0xa1e140a,0x49db9249,0x60a0c06,0x246c4824,0x5ce4b85c,0xc25d9fc2,0xd36ebdd3,0xacef43ac,0x62a6c462,0x91a83991,0x95a43195,0xe437d3e4,0x798bf279,0xe732d5e7,0xc8438bc8,0x37596e37,0x6db7da6d,0x8d8c018d,0xd564b1d5,0x4ed29c4e,0xa9e049a9,0x6cb4d86c,0x56faac56,0xf407f3f4,0xea25cfea,0x65afca65,0x7a8ef47a,0xaee947ae,0x8181008,0xbad56fba,0x7888f078,0x256f4a25,0x2e725c2e,0x1c24381c,0xa6f157a6,0xb4c773b4,0xc65197c6,0xe823cbe8,0xdd7ca1dd,0x749ce874,0x1f213e1f,0x4bdd964b,0xbddc61bd,0x8b860d8b,0x8a850f8a,0x7090e070,0x3e427c3e,0xb5c471b5,0x66aacc66,0x48d89048,0x3050603,0xf601f7f6,0xe121c0e,0x61a3c261,0x355f6a35,0x57f9ae57,0xb9d069b9,0x86911786,0xc15899c1,0x1d273a1d,0x9eb9279e,0xe138d9e1,0xf813ebf8,0x98b32b98,0x11332211,0x69bbd269,0xd970a9d9,0x8e89078e,0x94a73394,0x9bb62d9b,0x1e223c1e,0x87921587,0xe920c9e9,0xce4987ce,0x55ffaa55,0x28785028,0xdf7aa5df,0x8c8f038c,0xa1f859a1,0x89800989,0xd171a0d,0xbfda65bf,0xe631d7e6,0x42c68442,0x68b8d068,0x41c38241,0x99b02999,0x2d775a2d,0xf111e0f,0xb0cb7bb0,0x54fca854,0xbbd66dbb,0x163a2c16],_0x3c49c4[_0x15a7af([0x54,0x34])]=[0x6363a5c6,0x7c7c84f8,0x777799ee,0x7b7b8df6,0xf2f20dff,0x6b6bbdd6,0x6f6fb1de,0xc5c55491,0x30305060,0x1010302,0x6767a9ce,0x2b2b7d56,0xfefe19e7,0xd7d762b5,0xababe64d,0x76769aec,0xcaca458f,0x82829d1f,0xc9c94089,0x7d7d87fa,0xfafa15ef,0x5959ebb2,0x4747c98e,0xf0f00bfb,0xadadec41,0xd4d467b3,0xa2a2fd5f,0xafafea45,0x9c9cbf23,0xa4a4f753,0x727296e4,0xc0c05b9b,0xb7b7c275,0xfdfd1ce1,0x9393ae3d,0x26266a4c,0x36365a6c,0x3f3f417e,0xf7f702f5,0xcccc4f83,0x34345c68,0xa5a5f451,0xe5e534d1,0xf1f108f9,0x717193e2,0xd8d873ab,0x31315362,0x15153f2a,0x4040c08,0xc7c75295,0x23236546,0xc3c35e9d,0x18182830,0x9696a137,0x5050f0a,0x9a9ab52f,0x707090e,0x12123624,0x80809b1b,0xe2e23ddf,0xebeb26cd,0x2727694e,0xb2b2cd7f,0x75759fea,0x9091b12,0x83839e1d,0x2c2c7458,0x1a1a2e34,0x1b1b2d36,0x6e6eb2dc,0x5a5aeeb4,0xa0a0fb5b,0x5252f6a4,0x3b3b4d76,0xd6d661b7,0xb3b3ce7d,0x29297b52,0xe3e33edd,0x2f2f715e,0x84849713,0x5353f5a6,0xd1d168b9,0x0,0xeded2cc1,0x20206040,0xfcfc1fe3,0xb1b1c879,0x5b5bedb6,0x6a6abed4,0xcbcb468d,0xbebed967,0x39394b72,0x4a4ade94,0x4c4cd498,0x5858e8b0,0xcfcf4a85,0xd0d06bbb,0xefef2ac5,0xaaaae54f,0xfbfb16ed,0x4343c586,0x4d4dd79a,0x33335566,0x85859411,0x4545cf8a,0xf9f910e9,0x2020604,0x7f7f81fe,0x5050f0a0,0x3c3c4478,0x9f9fba25,0xa8a8e34b,0x5151f3a2,0xa3a3fe5d,0x4040c080,0x8f8f8a05,0x9292ad3f,0x9d9dbc21,0x38384870,0xf5f504f1,0xbcbcdf63,0xb6b6c177,0xdada75af,0x21216342,0x10103020,0xffff1ae5,0xf3f30efd,0xd2d26dbf,0xcdcd4c81,0xc0c1418,0x13133526,0xecec2fc3,0x5f5fe1be,0x9797a235,0x4444cc88,0x1717392e,0xc4c45793,0xa7a7f255,0x7e7e82fc,0x3d3d477a,0x6464acc8,0x5d5de7ba,0x19192b32,0x737395e6,0x6060a0c0,0x81819819,0x4f4fd19e,0xdcdc7fa3,0x22226644,0x2a2a7e54,0x9090ab3b,0x8888830b,0x4646ca8c,0xeeee29c7,0xb8b8d36b,0x14143c28,0xdede79a7,0x5e5ee2bc,0xb0b1d16,0xdbdb76ad,0xe0e03bdb,0x32325664,0x3a3a4e74,0xa0a1e14,0x4949db92,0x6060a0c,0x24246c48,0x5c5ce4b8,0xc2c25d9f,0xd3d36ebd,0xacacef43,0x6262a6c4,0x9191a839,0x9595a431,0xe4e437d3,0x79798bf2,0xe7e732d5,0xc8c8438b,0x3737596e,0x6d6db7da,0x8d8d8c01,0xd5d564b1,0x4e4ed29c,0xa9a9e049,0x6c6cb4d8,0x5656faac,0xf4f407f3,0xeaea25cf,0x6565afca,0x7a7a8ef4,0xaeaee947,0x8081810,0xbabad56f,0x787888f0,0x25256f4a,0x2e2e725c,0x1c1c2438,0xa6a6f157,0xb4b4c773,0xc6c65197,0xe8e823cb,0xdddd7ca1,0x74749ce8,0x1f1f213e,0x4b4bdd96,0xbdbddc61,0x8b8b860d,0x8a8a850f,0x707090e0,0x3e3e427c,0xb5b5c471,0x6666aacc,0x4848d890,0x3030506,0xf6f601f7,0xe0e121c,0x6161a3c2,0x35355f6a,0x5757f9ae,0xb9b9d069,0x86869117,0xc1c15899,0x1d1d273a,0x9e9eb927,0xe1e138d9,0xf8f813eb,0x9898b32b,0x11113322,0x6969bbd2,0xd9d970a9,0x8e8e8907,0x9494a733,0x9b9bb62d,0x1e1e223c,0x87879215,0xe9e920c9,0xcece4987,0x5555ffaa,0x28287850,0xdfdf7aa5,0x8c8c8f03,0xa1a1f859,0x89898009,0xd0d171a,0xbfbfda65,0xe6e631d7,0x4242c684,0x6868b8d0,0x4141c382,0x9999b029,0x2d2d775a,0xf0f111e,0xb0b0cb7b,0x5454fca8,0xbbbbd66d,0x16163a2c],_0x3c49c4[_0x15a7af([0x55,0x31])]=[0x0,0xe090d0b,0x1c121a16,0x121b171d,0x3824342c,0x362d3927,0x24362e3a,0x2a3f2331,0x70486858,0x7e416553,0x6c5a724e,0x62537f45,0x486c5c74,0x4665517f,0x547e4662,0x5a774b69,0xe090d0b0,0xee99ddbb,0xfc82caa6,0xf28bc7ad,0xd8b4e49c,0xd6bde997,0xc4a6fe8a,0xcaaff381,0x90d8b8e8,0x9ed1b5e3,0x8ccaa2fe,0x82c3aff5,0xa8fc8cc4,0xa6f581cf,0xb4ee96d2,0xbae79bd9,0xdb3bbb7b,0xd532b670,0xc729a16d,0xc920ac66,0xe31f8f57,0xed16825c,0xff0d9541,0xf104984a,0xab73d323,0xa57ade28,0xb761c935,0xb968c43e,0x9357e70f,0x9d5eea04,0x8f45fd19,0x814cf012,0x3bab6bcb,0x35a266c0,0x27b971dd,0x29b07cd6,0x38f5fe7,0xd8652ec,0x1f9d45f1,0x119448fa,0x4be30393,0x45ea0e98,0x57f11985,0x59f8148e,0x73c737bf,0x7dce3ab4,0x6fd52da9,0x61dc20a2,0xad766df6,0xa37f60fd,0xb16477e0,0xbf6d7aeb,0x955259da,0x9b5b54d1,0x894043cc,0x87494ec7,0xdd3e05ae,0xd33708a5,0xc12c1fb8,0xcf2512b3,0xe51a3182,0xeb133c89,0xf9082b94,0xf701269f,0x4de6bd46,0x43efb04d,0x51f4a750,0x5ffdaa5b,0x75c2896a,0x7bcb8461,0x69d0937c,0x67d99e77,0x3daed51e,0x33a7d815,0x21bccf08,0x2fb5c203,0x58ae132,0xb83ec39,0x1998fb24,0x1791f62f,0x764dd68d,0x7844db86,0x6a5fcc9b,0x6456c190,0x4e69e2a1,0x4060efaa,0x527bf8b7,0x5c72f5bc,0x605bed5,0x80cb3de,0x1a17a4c3,0x141ea9c8,0x3e218af9,0x302887f2,0x223390ef,0x2c3a9de4,0x96dd063d,0x98d40b36,0x8acf1c2b,0x84c61120,0xaef93211,0xa0f03f1a,0xb2eb2807,0xbce2250c,0xe6956e65,0xe89c636e,0xfa877473,0xf48e7978,0xdeb15a49,0xd0b85742,0xc2a3405f,0xccaa4d54,0x41ecdaf7,0x4fe5d7fc,0x5dfec0e1,0x53f7cdea,0x79c8eedb,0x77c1e3d0,0x65daf4cd,0x6bd3f9c6,0x31a4b2af,0x3fadbfa4,0x2db6a8b9,0x23bfa5b2,0x9808683,0x7898b88,0x15929c95,0x1b9b919e,0xa17c0a47,0xaf75074c,0xbd6e1051,0xb3671d5a,0x99583e6b,0x97513360,0x854a247d,0x8b432976,0xd134621f,0xdf3d6f14,0xcd267809,0xc32f7502,0xe9105633,0xe7195b38,0xf5024c25,0xfb0b412e,0x9ad7618c,0x94de6c87,0x86c57b9a,0x88cc7691,0xa2f355a0,0xacfa58ab,0xbee14fb6,0xb0e842bd,0xea9f09d4,0xe49604df,0xf68d13c2,0xf8841ec9,0xd2bb3df8,0xdcb230f3,0xcea927ee,0xc0a02ae5,0x7a47b13c,0x744ebc37,0x6655ab2a,0x685ca621,0x42638510,0x4c6a881b,0x5e719f06,0x5078920d,0xa0fd964,0x406d46f,0x161dc372,0x1814ce79,0x322bed48,0x3c22e043,0x2e39f75e,0x2030fa55,0xec9ab701,0xe293ba0a,0xf088ad17,0xfe81a01c,0xd4be832d,0xdab78e26,0xc8ac993b,0xc6a59430,0x9cd2df59,0x92dbd252,0x80c0c54f,0x8ec9c844,0xa4f6eb75,0xaaffe67e,0xb8e4f163,0xb6edfc68,0xc0a67b1,0x2036aba,0x10187da7,0x1e1170ac,0x342e539d,0x3a275e96,0x283c498b,0x26354480,0x7c420fe9,0x724b02e2,0x605015ff,0x6e5918f4,0x44663bc5,0x4a6f36ce,0x587421d3,0x567d2cd8,0x37a10c7a,0x39a80171,0x2bb3166c,0x25ba1b67,0xf853856,0x18c355d,0x13972240,0x1d9e2f4b,0x47e96422,0x49e06929,0x5bfb7e34,0x55f2733f,0x7fcd500e,0x71c45d05,0x63df4a18,0x6dd64713,0xd731dcca,0xd938d1c1,0xcb23c6dc,0xc52acbd7,0xef15e8e6,0xe11ce5ed,0xf307f2f0,0xfd0efffb,0xa779b492,0xa970b999,0xbb6bae84,0xb562a38f,0x9f5d80be,0x91548db5,0x834f9aa8,0x8d4697a3],_0x3c49c4[_0x15a7af([0x55,0x32])]=[0x0,0xb0e090d,0x161c121a,0x1d121b17,0x2c382434,0x27362d39,0x3a24362e,0x312a3f23,0x58704868,0x537e4165,0x4e6c5a72,0x4562537f,0x74486c5c,0x7f466551,0x62547e46,0x695a774b,0xb0e090d0,0xbbee99dd,0xa6fc82ca,0xadf28bc7,0x9cd8b4e4,0x97d6bde9,0x8ac4a6fe,0x81caaff3,0xe890d8b8,0xe39ed1b5,0xfe8ccaa2,0xf582c3af,0xc4a8fc8c,0xcfa6f581,0xd2b4ee96,0xd9bae79b,0x7bdb3bbb,0x70d532b6,0x6dc729a1,0x66c920ac,0x57e31f8f,0x5ced1682,0x41ff0d95,0x4af10498,0x23ab73d3,0x28a57ade,0x35b761c9,0x3eb968c4,0xf9357e7,0x49d5eea,0x198f45fd,0x12814cf0,0xcb3bab6b,0xc035a266,0xdd27b971,0xd629b07c,0xe7038f5f,0xec0d8652,0xf11f9d45,0xfa119448,0x934be303,0x9845ea0e,0x8557f119,0x8e59f814,0xbf73c737,0xb47dce3a,0xa96fd52d,0xa261dc20,0xf6ad766d,0xfda37f60,0xe0b16477,0xebbf6d7a,0xda955259,0xd19b5b54,0xcc894043,0xc787494e,0xaedd3e05,0xa5d33708,0xb8c12c1f,0xb3cf2512,0x82e51a31,0x89eb133c,0x94f9082b,0x9ff70126,0x464de6bd,0x4d43efb0,0x5051f4a7,0x5b5ffdaa,0x6a75c289,0x617bcb84,0x7c69d093,0x7767d99e,0x1e3daed5,0x1533a7d8,0x821bccf,0x32fb5c2,0x32058ae1,0x390b83ec,0x241998fb,0x2f1791f6,0x8d764dd6,0x867844db,0x9b6a5fcc,0x906456c1,0xa14e69e2,0xaa4060ef,0xb7527bf8,0xbc5c72f5,0xd50605be,0xde080cb3,0xc31a17a4,0xc8141ea9,0xf93e218a,0xf2302887,0xef223390,0xe42c3a9d,0x3d96dd06,0x3698d40b,0x2b8acf1c,0x2084c611,0x11aef932,0x1aa0f03f,0x7b2eb28,0xcbce225,0x65e6956e,0x6ee89c63,0x73fa8774,0x78f48e79,0x49deb15a,0x42d0b857,0x5fc2a340,0x54ccaa4d,0xf741ecda,0xfc4fe5d7,0xe15dfec0,0xea53f7cd,0xdb79c8ee,0xd077c1e3,0xcd65daf4,0xc66bd3f9,0xaf31a4b2,0xa43fadbf,0xb92db6a8,0xb223bfa5,0x83098086,0x8807898b,0x9515929c,0x9e1b9b91,0x47a17c0a,0x4caf7507,0x51bd6e10,0x5ab3671d,0x6b99583e,0x60975133,0x7d854a24,0x768b4329,0x1fd13462,0x14df3d6f,0x9cd2678,0x2c32f75,0x33e91056,0x38e7195b,0x25f5024c,0x2efb0b41,0x8c9ad761,0x8794de6c,0x9a86c57b,0x9188cc76,0xa0a2f355,0xabacfa58,0xb6bee14f,0xbdb0e842,0xd4ea9f09,0xdfe49604,0xc2f68d13,0xc9f8841e,0xf8d2bb3d,0xf3dcb230,0xeecea927,0xe5c0a02a,0x3c7a47b1,0x37744ebc,0x2a6655ab,0x21685ca6,0x10426385,0x1b4c6a88,0x65e719f,0xd507892,0x640a0fd9,0x6f0406d4,0x72161dc3,0x791814ce,0x48322bed,0x433c22e0,0x5e2e39f7,0x552030fa,0x1ec9ab7,0xae293ba,0x17f088ad,0x1cfe81a0,0x2dd4be83,0x26dab78e,0x3bc8ac99,0x30c6a594,0x599cd2df,0x5292dbd2,0x4f80c0c5,0x448ec9c8,0x75a4f6eb,0x7eaaffe6,0x63b8e4f1,0x68b6edfc,0xb10c0a67,0xba02036a,0xa710187d,0xac1e1170,0x9d342e53,0x963a275e,0x8b283c49,0x80263544,0xe97c420f,0xe2724b02,0xff605015,0xf46e5918,0xc544663b,0xce4a6f36,0xd3587421,0xd8567d2c,0x7a37a10c,0x7139a801,0x6c2bb316,0x6725ba1b,0x560f8538,0x5d018c35,0x40139722,0x4b1d9e2f,0x2247e964,0x2949e069,0x345bfb7e,0x3f55f273,0xe7fcd50,0x571c45d,0x1863df4a,0x136dd647,0xcad731dc,0xc1d938d1,0xdccb23c6,0xd7c52acb,0xe6ef15e8,0xede11ce5,0xf0f307f2,0xfbfd0eff,0x92a779b4,0x99a970b9,0x84bb6bae,0x8fb562a3,0xbe9f5d80,0xb591548d,0xa8834f9a,0xa38d4697],_0x3c49c4[_0x15a7af([0x55,0x33])]=[0x0,0xd0b0e09,0x1a161c12,0x171d121b,0x342c3824,0x3927362d,0x2e3a2436,0x23312a3f,0x68587048,0x65537e41,0x724e6c5a,0x7f456253,0x5c74486c,0x517f4665,0x4662547e,0x4b695a77,0xd0b0e090,0xddbbee99,0xcaa6fc82,0xc7adf28b,0xe49cd8b4,0xe997d6bd,0xfe8ac4a6,0xf381caaf,0xb8e890d8,0xb5e39ed1,0xa2fe8cca,0xaff582c3,0x8cc4a8fc,0x81cfa6f5,0x96d2b4ee,0x9bd9bae7,0xbb7bdb3b,0xb670d532,0xa16dc729,0xac66c920,0x8f57e31f,0x825ced16,0x9541ff0d,0x984af104,0xd323ab73,0xde28a57a,0xc935b761,0xc43eb968,0xe70f9357,0xea049d5e,0xfd198f45,0xf012814c,0x6bcb3bab,0x66c035a2,0x71dd27b9,0x7cd629b0,0x5fe7038f,0x52ec0d86,0x45f11f9d,0x48fa1194,0x3934be3,0xe9845ea,0x198557f1,0x148e59f8,0x37bf73c7,0x3ab47dce,0x2da96fd5,0x20a261dc,0x6df6ad76,0x60fda37f,0x77e0b164,0x7aebbf6d,0x59da9552,0x54d19b5b,0x43cc8940,0x4ec78749,0x5aedd3e,0x8a5d337,0x1fb8c12c,0x12b3cf25,0x3182e51a,0x3c89eb13,0x2b94f908,0x269ff701,0xbd464de6,0xb04d43ef,0xa75051f4,0xaa5b5ffd,0x896a75c2,0x84617bcb,0x937c69d0,0x9e7767d9,0xd51e3dae,0xd81533a7,0xcf0821bc,0xc2032fb5,0xe132058a,0xec390b83,0xfb241998,0xf62f1791,0xd68d764d,0xdb867844,0xcc9b6a5f,0xc1906456,0xe2a14e69,0xefaa4060,0xf8b7527b,0xf5bc5c72,0xbed50605,0xb3de080c,0xa4c31a17,0xa9c8141e,0x8af93e21,0x87f23028,0x90ef2233,0x9de42c3a,0x63d96dd,0xb3698d4,0x1c2b8acf,0x112084c6,0x3211aef9,0x3f1aa0f0,0x2807b2eb,0x250cbce2,0x6e65e695,0x636ee89c,0x7473fa87,0x7978f48e,0x5a49deb1,0x5742d0b8,0x405fc2a3,0x4d54ccaa,0xdaf741ec,0xd7fc4fe5,0xc0e15dfe,0xcdea53f7,0xeedb79c8,0xe3d077c1,0xf4cd65da,0xf9c66bd3,0xb2af31a4,0xbfa43fad,0xa8b92db6,0xa5b223bf,0x86830980,0x8b880789,0x9c951592,0x919e1b9b,0xa47a17c,0x74caf75,0x1051bd6e,0x1d5ab367,0x3e6b9958,0x33609751,0x247d854a,0x29768b43,0x621fd134,0x6f14df3d,0x7809cd26,0x7502c32f,0x5633e910,0x5b38e719,0x4c25f502,0x412efb0b,0x618c9ad7,0x6c8794de,0x7b9a86c5,0x769188cc,0x55a0a2f3,0x58abacfa,0x4fb6bee1,0x42bdb0e8,0x9d4ea9f,0x4dfe496,0x13c2f68d,0x1ec9f884,0x3df8d2bb,0x30f3dcb2,0x27eecea9,0x2ae5c0a0,0xb13c7a47,0xbc37744e,0xab2a6655,0xa621685c,0x85104263,0x881b4c6a,0x9f065e71,0x920d5078,0xd9640a0f,0xd46f0406,0xc372161d,0xce791814,0xed48322b,0xe0433c22,0xf75e2e39,0xfa552030,0xb701ec9a,0xba0ae293,0xad17f088,0xa01cfe81,0x832dd4be,0x8e26dab7,0x993bc8ac,0x9430c6a5,0xdf599cd2,0xd25292db,0xc54f80c0,0xc8448ec9,0xeb75a4f6,0xe67eaaff,0xf163b8e4,0xfc68b6ed,0x67b10c0a,0x6aba0203,0x7da71018,0x70ac1e11,0x539d342e,0x5e963a27,0x498b283c,0x44802635,0xfe97c42,0x2e2724b,0x15ff6050,0x18f46e59,0x3bc54466,0x36ce4a6f,0x21d35874,0x2cd8567d,0xc7a37a1,0x17139a8,0x166c2bb3,0x1b6725ba,0x38560f85,0x355d018c,0x22401397,0x2f4b1d9e,0x642247e9,0x692949e0,0x7e345bfb,0x733f55f2,0x500e7fcd,0x5d0571c4,0x4a1863df,0x47136dd6,0xdccad731,0xd1c1d938,0xc6dccb23,0xcbd7c52a,0xe8e6ef15,0xe5ede11c,0xf2f0f307,0xfffbfd0e,0xb492a779,0xb999a970,0xae84bb6b,0xa38fb562,0x80be9f5d,0x8db59154,0x9aa8834f,0x97a38d46],_0x3c49c4[_0x15a7af([0x55,0x34])]=[0x0,0x90d0b0e,0x121a161c,0x1b171d12,0x24342c38,0x2d392736,0x362e3a24,0x3f23312a,0x48685870,0x4165537e,0x5a724e6c,0x537f4562,0x6c5c7448,0x65517f46,0x7e466254,0x774b695a,0x90d0b0e0,0x99ddbbee,0x82caa6fc,0x8bc7adf2,0xb4e49cd8,0xbde997d6,0xa6fe8ac4,0xaff381ca,0xd8b8e890,0xd1b5e39e,0xcaa2fe8c,0xc3aff582,0xfc8cc4a8,0xf581cfa6,0xee96d2b4,0xe79bd9ba,0x3bbb7bdb,0x32b670d5,0x29a16dc7,0x20ac66c9,0x1f8f57e3,0x16825ced,0xd9541ff,0x4984af1,0x73d323ab,0x7ade28a5,0x61c935b7,0x68c43eb9,0x57e70f93,0x5eea049d,0x45fd198f,0x4cf01281,0xab6bcb3b,0xa266c035,0xb971dd27,0xb07cd629,0x8f5fe703,0x8652ec0d,0x9d45f11f,0x9448fa11,0xe303934b,0xea0e9845,0xf1198557,0xf8148e59,0xc737bf73,0xce3ab47d,0xd52da96f,0xdc20a261,0x766df6ad,0x7f60fda3,0x6477e0b1,0x6d7aebbf,0x5259da95,0x5b54d19b,0x4043cc89,0x494ec787,0x3e05aedd,0x3708a5d3,0x2c1fb8c1,0x2512b3cf,0x1a3182e5,0x133c89eb,0x82b94f9,0x1269ff7,0xe6bd464d,0xefb04d43,0xf4a75051,0xfdaa5b5f,0xc2896a75,0xcb84617b,0xd0937c69,0xd99e7767,0xaed51e3d,0xa7d81533,0xbccf0821,0xb5c2032f,0x8ae13205,0x83ec390b,0x98fb2419,0x91f62f17,0x4dd68d76,0x44db8678,0x5fcc9b6a,0x56c19064,0x69e2a14e,0x60efaa40,0x7bf8b752,0x72f5bc5c,0x5bed506,0xcb3de08,0x17a4c31a,0x1ea9c814,0x218af93e,0x2887f230,0x3390ef22,0x3a9de42c,0xdd063d96,0xd40b3698,0xcf1c2b8a,0xc6112084,0xf93211ae,0xf03f1aa0,0xeb2807b2,0xe2250cbc,0x956e65e6,0x9c636ee8,0x877473fa,0x8e7978f4,0xb15a49de,0xb85742d0,0xa3405fc2,0xaa4d54cc,0xecdaf741,0xe5d7fc4f,0xfec0e15d,0xf7cdea53,0xc8eedb79,0xc1e3d077,0xdaf4cd65,0xd3f9c66b,0xa4b2af31,0xadbfa43f,0xb6a8b92d,0xbfa5b223,0x80868309,0x898b8807,0x929c9515,0x9b919e1b,0x7c0a47a1,0x75074caf,0x6e1051bd,0x671d5ab3,0x583e6b99,0x51336097,0x4a247d85,0x4329768b,0x34621fd1,0x3d6f14df,0x267809cd,0x2f7502c3,0x105633e9,0x195b38e7,0x24c25f5,0xb412efb,0xd7618c9a,0xde6c8794,0xc57b9a86,0xcc769188,0xf355a0a2,0xfa58abac,0xe14fb6be,0xe842bdb0,0x9f09d4ea,0x9604dfe4,0x8d13c2f6,0x841ec9f8,0xbb3df8d2,0xb230f3dc,0xa927eece,0xa02ae5c0,0x47b13c7a,0x4ebc3774,0x55ab2a66,0x5ca62168,0x63851042,0x6a881b4c,0x719f065e,0x78920d50,0xfd9640a,0x6d46f04,0x1dc37216,0x14ce7918,0x2bed4832,0x22e0433c,0x39f75e2e,0x30fa5520,0x9ab701ec,0x93ba0ae2,0x88ad17f0,0x81a01cfe,0xbe832dd4,0xb78e26da,0xac993bc8,0xa59430c6,0xd2df599c,0xdbd25292,0xc0c54f80,0xc9c8448e,0xf6eb75a4,0xffe67eaa,0xe4f163b8,0xedfc68b6,0xa67b10c,0x36aba02,0x187da710,0x1170ac1e,0x2e539d34,0x275e963a,0x3c498b28,0x35448026,0x420fe97c,0x4b02e272,0x5015ff60,0x5918f46e,0x663bc544,0x6f36ce4a,0x7421d358,0x7d2cd856,0xa10c7a37,0xa8017139,0xb3166c2b,0xba1b6725,0x8538560f,0x8c355d01,0x97224013,0x9e2f4b1d,0xe9642247,0xe0692949,0xfb7e345b,0xf2733f55,0xcd500e7f,0xc45d0571,0xdf4a1863,0xd647136d,0x31dccad7,0x38d1c1d9,0x23c6dccb,0x2acbd7c5,0x15e8e6ef,0x1ce5ede1,0x7f2f0f3,0xefffbfd,0x79b492a7,0x70b999a9,0x6bae84bb,0x62a38fb5,0x5d80be9f,0x548db591,0x4f9aa883,0x4697a38d];const _0x3cddb9=new Uint8Array(0x10);for(let _0x46364e=0xf;_0x46364e>=0x0;--_0x46364e)_0x3cddb9[_0x46364e]=_0x434ba5%0x100,_0x434ba5=parseInt(_0x434ba5/0x100);let _0x24f204=null,_0x36daa3=0x10;const _0x5538e5=new Uint8Array(_0x22553d),_0x254188=[],_0xe2162a=[];!function(){const _0x787334=_0x3c49c4[_0x15a7af([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])][_0x5538e5['length']];for(let _0x48b429=0x0;_0x48b429<=_0x787334;_0x48b429++)_0x254188['push']([0x0,0x0,0x0,0x0]),_0xe2162a['push']([0x0,0x0,0x0,0x0]);const _0x4703cb=0x4*(_0x787334+0x1),_0x3900fe=_0x5538e5['length']/0x4,_0x1292f6=_0x3c56fb(_0x5538e5);let _0x37216b;for(let _0x9ec1d6=0x0;_0x9ec1d6<_0x3900fe;_0x9ec1d6++)_0x37216b=_0x9ec1d6>>0x2,_0x254188[_0x37216b][_0x9ec1d6%0x4]=_0x1292f6[_0x9ec1d6],_0xe2162a[_0x787334-_0x37216b][_0x9ec1d6%0x4]=_0x1292f6[_0x9ec1d6];let _0x60f81d,_0xab0dea=0x0,t=_0x3900fe;for(;t<_0x4703cb;){_0x60f81d=_0x1292f6[_0x3900fe-0x1],_0x1292f6[0x0]^=_0x3c49c4[_0x15a7af([0x53])][_0x60f81d>>0x10&0xff]<<0x18^_0x3c49c4[_0x15a7af([0x53])][_0x60f81d>>0x8&0xff]<<0x10^_0x3c49c4[_0x15a7af([0x53])][0xff&_0x60f81d]<<0x8^_0x3c49c4[_0x15a7af([0x53])][_0x60f81d>>0x18&0xff]^_0x3c49c4[_0x15a7af([0x72,0x63,0x6f,0x6e])][_0xab0dea]<<0x18,_0xab0dea+=0x1;for(let _0x504c17=0x1;_0x504c17<_0x3900fe/0x2;_0x504c17++)_0x1292f6[_0x504c17]^=_0x1292f6[_0x504c17-0x1];_0x60f81d=_0x1292f6[_0x3900fe/0x2-0x1],_0x1292f6[_0x3900fe/0x2]^=_0x3c49c4[_0x15a7af([0x53])][0xff&_0x60f81d]^_0x3c49c4[_0x15a7af([0x53])][_0x60f81d>>0x8&0xff]<<0x8^_0x3c49c4[_0x15a7af([0x53])][_0x60f81d>>0x10&0xff]<<0x10^_0x3c49c4[_0x15a7af([0x53])][_0x60f81d>>0x18&0xff]<<0x18;for(let _0x3b6db2=_0x3900fe/0x2+0x1;_0x3b6db2<_0x3900fe;_0x3b6db2++)_0x1292f6[_0x3b6db2]^=_0x1292f6[_0x3b6db2-0x1];let _0x915bbb,_0x511081,_0x5a145b=0x0;for(;_0x5a145b<_0x3900fe&&t<_0x4703cb;)_0x915bbb=t>>0x2,_0x511081=t%0x4,_0x254188[_0x915bbb][_0x511081]=_0x1292f6[_0x5a145b],_0xe2162a[_0x787334-_0x915bbb][_0x511081]=_0x1292f6[_0x5a145b++],t++;}for(let _0xc86287=0x1;_0xc86287<_0x787334;_0xc86287++)for(let _0x5337ae=0x0;_0x5337ae<0x4;_0x5337ae++)_0x60f81d=_0xe2162a[_0xc86287][_0x5337ae],_0xe2162a[_0xc86287][_0x5337ae]=_0x3c49c4[_0x15a7af([0x55,0x31])][_0x60f81d>>0x18&0xff]^_0x3c49c4[_0x15a7af([0x55,0x32])][_0x60f81d>>0x10&0xff]^_0x3c49c4[_0x15a7af([0x55,0x33])][_0x60f81d>>0x8&0xff]^_0x3c49c4[_0x15a7af([0x55,0x34])][0xff&_0x60f81d];}();for(let _0x4955d5=0x0;_0x4955d5<_0x2ad355['length'];_0x4955d5++)0x10===_0x36daa3&&(_0x24f204=_0x4c63f7(_0x3cddb9),_0x36daa3=0x0,_0x357aef(_0x3cddb9)),_0x2ad355[_0x4955d5]^=_0x24f204[_0x36daa3++];return _0x2ad355;function _0x3c56fb(_0x3cf4a9){const _0x399e1e=[];for(let _0x3bb6d4=0x0;_0x3bb6d4<_0x3cf4a9['length'];_0x3bb6d4+=0x4)_0x399e1e['push'](_0x3cf4a9[_0x3bb6d4]<<0x18|_0x3cf4a9[_0x3bb6d4+0x1]<<0x10|_0x3cf4a9[_0x3bb6d4+0x2]<<0x8|_0x3cf4a9[_0x3bb6d4+0x3]);return _0x399e1e;}function _0x357aef(_0x340311){for(let _0x5e487c=0xf;_0x5e487c>=0x0;_0x5e487c--){if(0xff!==_0x340311[_0x5e487c]){_0x340311[_0x5e487c]++;break;}_0x340311[_0x5e487c]=0x0;}}function _0x4c63f7(_0x2391d7){const _0x5358ab=_0x254188['length']-0x1,_0xa36198=[0x0,0x0,0x0,0x0];let t=_0x3c56fb(_0x2391d7);for(let _0x3f0b98=0x0;_0x3f0b98<0x4;_0x3f0b98++)t[_0x3f0b98]^=_0x254188[0x0][_0x3f0b98];for(let _0x5dc33f=0x1;_0x5dc33f<_0x5358ab;_0x5dc33f++){for(let _0x141e14=0x0;_0x141e14<0x4;_0x141e14++)_0xa36198[_0x141e14]=_0x3c49c4[_0x15a7af([0x54,0x31])][t[_0x141e14]>>0x18&0xff]^_0x3c49c4[_0x15a7af([0x54,0x32])][t[(_0x141e14+0x1)%0x4]>>0x10&0xff]^_0x3c49c4[_0x15a7af([0x54,0x33])][t[(_0x141e14+0x2)%0x4]>>0x8&0xff]^_0x3c49c4[_0x15a7af([0x54,0x34])][0xff&t[(_0x141e14+0x3)%0x4]]^_0x254188[_0x5dc33f][_0x141e14];t=_0xa36198['slice']();}const _0x22eeea=new Uint8Array(0x10);let _0x14b45c;for(let _0x4b660b=0x0;_0x4b660b<0x4;_0x4b660b++)_0x14b45c=_0x254188[_0x5358ab][_0x4b660b],_0x22eeea[0x4*_0x4b660b]=0xff&(_0x3c49c4[_0x15a7af([0x53])][t[_0x4b660b]>>0x18&0xff]^_0x14b45c>>0x18),_0x22eeea[0x4*_0x4b660b+0x1]=0xff&(_0x3c49c4[_0x15a7af([0x53])][t[(_0x4b660b+0x1)%0x4]>>0x10&0xff]^_0x14b45c>>0x10),_0x22eeea[0x4*_0x4b660b+0x2]=0xff&(_0x3c49c4[_0x15a7af([0x53])][t[(_0x4b660b+0x2)%0x4]>>0x8&0xff]^_0x14b45c>>0x8),_0x22eeea[0x4*_0x4b660b+0x3]=0xff&(_0x3c49c4[_0x15a7af([0x53])][0xff&t[(_0x4b660b+0x3)%0x4]]^_0x14b45c);return _0x22eeea;}}function _0x15a7af(_0x4659e4){return _0x4659e4['map'](_0x5b45a1=>String['fromCharCode'](_0x5b45a1))['join']('');}isContext?(status==_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?disableContext(context):status==_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c])&&eval(_0x15a7af([0x77,0x69,0x6e,0x64,0x6f,0x77]))[_0x15a7af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](()=>{disableContext(context),generateLicenseKeyVariable(_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]));},_0x370f26[0x6]*_0x3b0339[0x8]*_0x3b0339[0x6]),context[_0x15a7af([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])][_0x15a7af([0x6f,0x6e])](_0x15a7af([0x61,0x64,0x64]),(_0x5a8083,_0x1a43aa)=>{status!=_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])&&status!=_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74])||disableEditor(_0x1a43aa);})):status==_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?disableEditor(context):status==_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c])&&context[_0x15a7af([0x6f,0x6e])](_0x15a7af([0x72,0x65,0x61,0x64,0x79]),()=>{let _0x2ef645=0x0;context[_0x15a7af([0x6d,0x6f,0x64,0x65,0x6c])][_0x15a7af([0x6f,0x6e])](_0x15a7af([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4860b7,_0x11db04)=>{_0x11db04[0x0][_0x15a7af([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ef645++,0x1f8===_0x2ef645&&(disableEditor(context),generateLicenseKeyVariable(_0x15a7af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79,0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74])),_0x4860b7[_0x15a7af([0x6f,0x66,0x66])]());},{'priority':_0x15a7af([0x68,0x69,0x67,0x68,0x65,0x73,0x74])});});}_0x378cbe(Comment,_0x402431); |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x53f1=['removeCommentThread','CommentsRepository','locale','pluginName','getRange','editor','Inline\x20comment','activeMarker','icon','push','_threadToController','CommentsUI','comment','Comment','requires','editing','focus','change:activeView','add','view','get','plugins','stop','focusTracker','comment:','getCommentThread','markers','_viewToController','model','componentFactory','low','addSourceCollector','listenTo','Annotations','execute','highest','addCommentThread','isFocused','EditorAnnotations','isEnabled','bind','has','commands'];(function(_0x180ee2,_0x4386e7){const _0x24f890=function(_0x67baf5){while(--_0x67baf5){_0x180ee2['push'](_0x180ee2['shift']());}};_0x24f890(++_0x4386e7);}(_0x53f1,0x17f));const _0x39a3=function(_0x180ee2,_0x4386e7){_0x180ee2=_0x180ee2-0x0;let _0x24f890=_0x53f1[_0x180ee2];return _0x24f890;};import _0x2955e8 from'@ckeditor/ckeditor5-core/src/plugin';import _0x56e0b3 from'../annotations/annotations';import _0x2c3135 from'./commentsrepository';import _0x23095a from'./commentsediting';import _0x3a01e5 from'../annotations/editorannotations';import _0x351c0e from'@ckeditor/ckeditor5-ui/src/button/buttonview';import _0x56173b from'../../theme/icons/add-comment.svg';export default class O extends _0x2955e8{static get[_0x39a3('0x7')](){return _0x39a3('0xf');}static get[_0x39a3('0x12')](){return[_0x56e0b3,_0x2c3135,_0x23095a,_0x3a01e5];}['init'](){const _0x4bd6fd=this[_0x39a3('0x9')],_0x3898aa=_0x4bd6fd[_0x39a3('0x20')],_0x342547=_0x4bd6fd[_0x39a3('0x19')][_0x39a3('0x18')](_0x39a3('0x5')),_0xc59b5a=_0x4bd6fd[_0x39a3('0x19')][_0x39a3('0x18')]('CommentsEditing'),_0x1e1413=_0x4bd6fd[_0x39a3('0x19')][_0x39a3('0x18')](_0x39a3('0x25')),_0x393269=_0x4bd6fd[_0x39a3('0x19')][_0x39a3('0x18')](_0x39a3('0x2a'));_0x4bd6fd['ui'][_0x39a3('0x21')][_0x39a3('0x16')](_0x39a3('0x10'),()=>this['ut']()),_0x393269[_0x39a3('0x23')](()=>{const _0x57affe=[];for(const [_0x2a4e08,_0x42aefc]of _0x342547[_0x39a3('0xe')]){const _0x570e9a=_0x3898aa[_0x39a3('0x1e')]['get']('comment:'+_0x2a4e08['id']);_0x570e9a&&_0x57affe[_0x39a3('0xd')]([_0x42aefc[_0x39a3('0x17')],[_0x570e9a[_0x39a3('0x8')]()]]);}return _0x57affe;}),this[_0x39a3('0x24')](_0x1e1413,_0x39a3('0x15'),(_0x264720,_0x5993f0,_0x43f615)=>{if(!_0x342547[_0x39a3('0x1f')][_0x39a3('0x2')](_0x43f615))return void(_0xc59b5a['activeMarker']=null);const _0x1334fc=_0x39a3('0x1c')+_0x342547[_0x39a3('0x1f')][_0x39a3('0x18')](_0x43f615)['id'];_0x3898aa[_0x39a3('0x1e')]['has'](_0x1334fc)&&_0xc59b5a[_0x39a3('0xb')]!=_0x1334fc?_0xc59b5a[_0x39a3('0xb')]=_0x1334fc:_0xc59b5a[_0x39a3('0xb')]&&(_0xc59b5a[_0x39a3('0xb')]=null);}),this[_0x39a3('0x24')](_0x342547,_0x39a3('0x4'),(_0x3d4b43,{threadId:_0x5f044f,isFromAdapter:_0x426d99})=>{if(_0x426d99||!_0x4bd6fd['ui'][_0x39a3('0x1b')][_0x39a3('0x29')])return;_0x4bd6fd['model'][_0x39a3('0x1e')][_0x39a3('0x18')]('comment:'+_0x5f044f)&&_0x4bd6fd[_0x39a3('0x13')]['view'][_0x39a3('0x14')]();},{'priority':_0x39a3('0x27')}),this[_0x39a3('0x24')](_0x342547,'addComment',(_0x2eb0c3,{threadId:_0x48ca3d,isFromAdapter:_0x4c0440})=>{const _0x32976e=_0x3898aa[_0x39a3('0x1e')][_0x39a3('0x18')]('comment:'+_0x48ca3d);!_0x4c0440&&_0x32976e&&_0x342547['hasCommentThread'](_0x48ca3d)&&0x1===_0x342547[_0x39a3('0x1d')](_0x48ca3d)['length']&&(_0x4bd6fd[_0x39a3('0x13')][_0x39a3('0x17')][_0x39a3('0x14')](),_0x2eb0c3[_0x39a3('0x1a')]());},{'priority':_0x39a3('0x22')});}['ut'](){const _0x539ab8=this['editor'],_0x865587=new _0x351c0e(_0x539ab8[_0x39a3('0x6')]),_0x34003c=_0x539ab8[_0x39a3('0x3')][_0x39a3('0x18')](_0x39a3('0x28'));return _0x865587['label']=_0x39a3('0xa'),_0x865587['tooltip']=_0x39a3('0x11'),_0x865587[_0x39a3('0xc')]=_0x56173b,_0x865587[_0x39a3('0x1')](_0x39a3('0x0'))['to'](_0x34003c),this[_0x39a3('0x24')](_0x865587,_0x39a3('0x26'),()=>_0x34003c[_0x39a3('0x26')]()),_0x865587;}} | ||
import _0x4eab99 from'@ckeditor/ckeditor5-core/src/plugin';import _0x53e66b from'../annotations/annotations';import _0x2cdaa4 from'./commentsrepository';import _0x46e1db from'./commentsediting';import _0x14b336 from'../annotations/editorannotations';import _0x1c3159 from'@ckeditor/ckeditor5-ui/src/button/buttonview';import _0x478caf from'../../theme/icons/add-comment.svg';export default class G extends _0x4eab99{static get['pluginName'](){return'CommentsUI';}static get['requires'](){return[_0x53e66b,_0x2cdaa4,_0x46e1db,_0x14b336];}['init'](){const _0x2ba37b=this['editor'],_0x53906d=_0x2ba37b['model'],_0x46c584=_0x2ba37b['plugins']['get']('CommentsRepository'),_0x1b63df=_0x2ba37b['plugins']['get']('CommentsEditing'),_0x5400ce=_0x2ba37b['plugins']['get']('Annotations'),_0x3c0414=_0x2ba37b['plugins']['get']('EditorAnnotations');_0x2ba37b['ui']['componentFactory']['add']('comment',()=>this['ut']()),_0x3c0414['addSourceCollector'](()=>{const _0x2a9a37=[];for(const [_0x42ac0d,_0x3621b0]of _0x46c584['_threadToController']){const _0x39e1e7=_0x53906d['markers']['get']('comment:'+_0x42ac0d['id']);_0x39e1e7&&_0x2a9a37['push']([_0x3621b0['view'],[_0x39e1e7['getRange']()]]);}return _0x2a9a37;}),this['listenTo'](_0x5400ce,'change:activeView',(_0x1fa7b2,_0x238780,_0x41ed72)=>{if(!_0x46c584['_viewToController']['has'](_0x41ed72))return void(_0x1b63df['activeMarker']=null);const _0x22b736='comment:'+_0x46c584['_viewToController']['get'](_0x41ed72)['model']['id'];_0x53906d['markers']['has'](_0x22b736)&&_0x1b63df['activeMarker']!=_0x22b736?_0x1b63df['activeMarker']=_0x22b736:_0x1b63df['activeMarker']&&(_0x1b63df['activeMarker']=null);}),this['listenTo'](_0x46c584,'removeCommentThread',(_0x3e03ba,{threadId:_0x4f9fd5,isFromAdapter:_0x4493ac})=>{if(_0x4493ac||!_0x2ba37b['ui']['focusTracker']['isFocused'])return;_0x2ba37b['model']['markers']['get']('comment:'+_0x4f9fd5)&&_0x2ba37b['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x46c584,'addComment',(_0x5edecc,{threadId:_0x2850e5,isFromAdapter:_0x1dc2b4})=>{const _0x3ce14d=_0x53906d['markers']['get']('comment:'+_0x2850e5);!_0x1dc2b4&&_0x3ce14d&&_0x46c584['hasCommentThread'](_0x2850e5)&&0x1===_0x46c584['getCommentThread'](_0x2850e5)['length']&&(_0x2ba37b['editing']['view']['focus'](),_0x5edecc['stop']());},{'priority':'low'});}['ut'](){const _0x4ae818=this['editor'],_0x45dad1=new _0x1c3159(_0x4ae818['locale']),_0x30cf0b=_0x4ae818['commands']['get']('addCommentThread'),{t:t}=this['editor']['locale'];return _0x45dad1['label']=t('Comment'),_0x45dad1['tooltip']=t('Comment'),_0x45dad1['icon']=_0x478caf,_0x45dad1['bind']('isEnabled')['to'](_0x30cf0b),this['listenTo'](_0x45dad1,'execute',()=>_0x30cf0b['execute']()),_0x45dad1;}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x1916=['addCommentThread','plugins','editor','enableCommand','RestrictedEditingModeEditing','has','afterInit'];(function(_0x752c33,_0x27c30d){const _0x126180=function(_0x2e9fb8){while(--_0x2e9fb8){_0x752c33['push'](_0x752c33['shift']());}};_0x126180(++_0x27c30d);}(_0x1916,0x1ed));const _0x2882=function(_0x752c33,_0x27c30d){_0x752c33=_0x752c33-0x0;let _0x126180=_0x1916[_0x752c33];return _0x126180;};import _0x118ce1 from'@ckeditor/ckeditor5-core/src/plugin';export default class Q extends _0x118ce1{[_0x2882('0x3')](){const _0x2a86d0=this[_0x2882('0x6')];_0x2a86d0[_0x2882('0x5')][_0x2882('0x2')](_0x2882('0x1'))&&_0x2a86d0[_0x2882('0x5')]['get']('RestrictedEditingModeEditing')[_0x2882('0x0')](_0x2882('0x4'));}} | ||
import _0x5cef47 from'@ckeditor/ckeditor5-core/src/plugin';export default class L extends _0x5cef47{['afterInit'](){const _0x540c56=this['editor'];_0x540c56['plugins']['has']('RestrictedEditingModeEditing')&&_0x540c56['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x4976=['getChild','focus','childCount','placeholderElement','defaultPlugins','then','name','low','create','change:placeholder','model','placeholder','init','set','view','document','editing','end','data','destroy','change','getRoot','initPlugins','fire','createRoot','plugins','setSelection'];(function(_0x216ac8,_0x13f28b){const _0x3f940d=function(_0x12458e){while(--_0x12458e){_0x216ac8['push'](_0x216ac8['shift']());}};_0x3f940d(++_0x13f28b);}(_0x4976,0x9e));const _0x179c=function(_0x216ac8,_0x13f28b){_0x216ac8=_0x216ac8-0x0;let _0x3f940d=_0x4976[_0x216ac8];return _0x3f940d;};import _0x508faa from'@ckeditor/ckeditor5-core/src/editor/editor';import _0xd682b8 from'@ckeditor/ckeditor5-core/src/editor/utils/dataapimixin';import _0x4b10d0 from'@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';import _0x38b19c from'./commenteditorui';import _0x35974c from'@ckeditor/ckeditor5-utils/src/observablemixin';import _0x11db27 from'@ckeditor/ckeditor5-utils/src/mix';import{enablePlaceholder as _0x50d4b0,disablePlaceholder as _0x206843}from'@ckeditor/ckeditor5-engine/src/view/placeholder';import _0x50c771 from'@ckeditor/ckeditor5-essentials/src/essentials';import _0x4107e7 from'@ckeditor/ckeditor5-paragraph/src/paragraph';import _0x29b4c5 from'@ckeditor/ckeditor5-basic-styles/src/bold';import _0x148b28 from'@ckeditor/ckeditor5-basic-styles/src/italic';import _0x4788c1 from'@ckeditor/ckeditor5-list/src/list';import _0x20efd9 from'@ckeditor/ckeditor5-autoformat/src/autoformat';export default class xt extends _0x508faa{constructor(_0x181065={}){_0x181065[_0x179c('0x2')]||(_0x181065[_0x179c('0x2')]=xt[_0x179c('0x8')]),super(_0x181065),this['ui']=new _0x38b19c(this),this[_0x179c('0x11')](_0x179c('0xf'),''),this[_0x179c('0xe')][_0x179c('0x13')]['on'](_0x179c('0x18'),()=>this['kt'](),{'priority':_0x179c('0xb')}),this['on'](_0x179c('0xd'),()=>this['kt']()),this[_0x179c('0xe')][_0x179c('0x13')][_0x179c('0x1')](),this[_0x179c('0x16')]['processor']=new _0x4b10d0(this[_0x179c('0x14')][_0x179c('0x12')]['document']);}[_0x179c('0xc')](){return this[_0x179c('0x1a')]()['then'](()=>this['ui'][_0x179c('0x10')]())[_0x179c('0x9')](()=>this['data'][_0x179c('0x10')](''))[_0x179c('0x9')](()=>this[_0x179c('0x0')]('ready'));}['destroy'](){return super[_0x179c('0x17')]()['then'](()=>this['ui'][_0x179c('0x17')]());}[_0x179c('0x5')](){this['model']['change'](_0x3700bf=>{const _0xd04e9d=this['model']['document'][_0x179c('0x19')](),_0x1dd6f4=_0xd04e9d[_0x179c('0x4')](_0xd04e9d[_0x179c('0x6')]-0x1);_0x3700bf[_0x179c('0x3')](_0x1dd6f4,_0x179c('0x15')),this[_0x179c('0x14')][_0x179c('0x12')][_0x179c('0x5')]();});}['kt'](){const _0x30433d=this['editing'][_0x179c('0x12')],_0x121acc=_0x30433d[_0x179c('0x13')]['getRoot'](),_0xc2b6eb=_0x121acc[_0x179c('0x4')](0x0);_0x121acc['childCount']>0x1||!_0xc2b6eb||'p'!=_0xc2b6eb[_0x179c('0xa')]?this[_0x179c('0x7')]&&(_0x206843(_0x30433d,this['placeholderElement']),this[_0x179c('0x7')]=void 0x0):(_0x50d4b0({'view':_0x30433d,'element':_0xc2b6eb,'text':this[_0x179c('0xf')]}),this[_0x179c('0x7')]=_0xc2b6eb);}}_0x11db27(xt,_0x35974c),_0x11db27(xt,_0xd682b8),xt[_0x179c('0x8')]=[_0x50c771,_0x20efd9,_0x4107e7,_0x29b4c5,_0x148b28,_0x4788c1]; | ||
import _0x294d91 from'@ckeditor/ckeditor5-core/src/editor/editor';import _0x10514b from'@ckeditor/ckeditor5-core/src/editor/utils/dataapimixin';import _0x2d3514 from'@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';import tt from'./commenteditorui';import rt from'@ckeditor/ckeditor5-utils/src/observablemixin';import it from'@ckeditor/ckeditor5-utils/src/mix';import{enablePlaceholder as ot,disablePlaceholder as et}from'@ckeditor/ckeditor5-engine/src/view/placeholder';import st from'@ckeditor/ckeditor5-essentials/src/essentials';import ct from'@ckeditor/ckeditor5-paragraph/src/paragraph';import dt from'@ckeditor/ckeditor5-basic-styles/src/bold';import at from'@ckeditor/ckeditor5-basic-styles/src/italic';import mt from'@ckeditor/ckeditor5-list/src/list';import ht from'@ckeditor/ckeditor5-autoformat/src/autoformat';export default class pt extends _0x294d91{constructor(_0x597a11={}){(_0x597a11=Object['assign']({},_0x597a11))['plugins']||(_0x597a11['plugins']=pt['defaultPlugins']),super(_0x597a11),this['ui']=new tt(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['pt'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['pt']()),this['model']['document']['createRoot'](),this['data']['processor']=new _0x2d3514(this['editing']['view']['document']);}['create'](){const _0x458549=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x458549))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x7f0227=>{const _0x174535=this['model']['document']['getRoot'](),_0x308df0=_0x174535['getChild'](_0x174535['childCount']-0x1);_0x7f0227['setSelection'](_0x308df0,'end'),this['editing']['view']['focus']();});}['pt'](){const _0x480a01=this['editing']['view'],_0x380069=_0x480a01['document']['getRoot'](),_0x3bea10=_0x380069['getChild'](0x0);_0x380069['childCount']>0x1||!_0x3bea10||'p'!=_0x3bea10['name']?this['placeholderElement']&&(et(_0x480a01,this['placeholderElement']),this['placeholderElement']=void 0x0):(ot({'view':_0x480a01,'element':_0x3bea10,'text':this['placeholder']}),this['placeholderElement']=_0x3bea10);}}it(pt,rt),it(pt,_0x10514b),pt['defaultPlugins']=[st,ht,ct,dt,at,mt]; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x3ce9=['init','attachDomRoot','rootName','name','bind','element','getRoot','focusTracker','editable','add','view','editing','ready','destroy','isFocused','editor','setEditableElement'];(function(_0x583a6f,_0x40795b){const _0x4e3eef=function(_0x455e4d){while(--_0x455e4d){_0x583a6f['push'](_0x583a6f['shift']());}};_0x4e3eef(++_0x40795b);}(_0x3ce9,0x14c));const _0x58ca=function(_0x583a6f,_0x40795b){_0x583a6f=_0x583a6f-0x0;let _0x4e3eef=_0x3ce9[_0x583a6f];return _0x4e3eef;};import _0xccb2d from'@ckeditor/ckeditor5-core/src/editor/editorui';import _0x4d5fc7 from'./commenteditoruiview';export default class dt extends _0xccb2d{constructor(_0x4dc874){super(_0x4dc874),this[_0x58ca('0x1')]=new _0x4d5fc7(_0x4dc874['locale'],_0x4dc874[_0x58ca('0x2')][_0x58ca('0x1')]);}get['element'](){return this[_0x58ca('0x1')][_0x58ca('0xd')];}[_0x58ca('0x8')](){const _0x21aea1=this[_0x58ca('0x6')][_0x58ca('0x2')]['view'],_0x2a9cd8=this[_0x58ca('0x1')][_0x58ca('0x10')],_0x39e795=_0x21aea1['document'][_0x58ca('0xe')]();_0x2a9cd8[_0x58ca('0xb')]=_0x39e795[_0x58ca('0xa')],this[_0x58ca('0x1')]['render']();const _0x223d2d=_0x2a9cd8[_0x58ca('0xd')];this[_0x58ca('0x7')](_0x2a9cd8[_0x58ca('0xb')],_0x223d2d),this[_0x58ca('0xf')][_0x58ca('0x0')](_0x223d2d),this[_0x58ca('0x1')]['editable'][_0x58ca('0xc')](_0x58ca('0x5'))['to'](this[_0x58ca('0xf')]),_0x21aea1[_0x58ca('0x9')](_0x223d2d),this['fire'](_0x58ca('0x3'));}[_0x58ca('0x4')](){this[_0x58ca('0x1')][_0x58ca('0x4')](),super[_0x58ca('0x4')]();}} | ||
import nt from'@ckeditor/ckeditor5-core/src/editor/editorui';import ut from'./commenteditoruiview';export default class tt extends nt{constructor(_0x425287){super(_0x425287),this['view']=new ut(_0x425287['locale'],_0x425287['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x374873=this['editor']['editing']['view'],_0x76dd35=this['view']['editable'],_0x569f27=_0x374873['document']['getRoot']();_0x76dd35['name']=_0x569f27['rootName'],this['view']['render']();const _0xcc8f50=_0x76dd35['element'];this['setEditableElement'](_0x76dd35['name'],_0xcc8f50),this['focusTracker']['add'](_0xcc8f50),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x374873['attachDomRoot'](_0xcc8f50),this['fire']('ready');}['destroy'](){this['view']['destroy'](),super['destroy']();}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x43a7=['div','comment','uiLanguageDirection','extendTemplate','focus','ck-rounded-corners','setTemplate','ck-editor','ck-comment__input','createCollection','cke-editor__aria-label_','render','main','ck-reset','uiLanguage','editable','presentation','Comment\x20editor','ck-editor__aria-label_','element','text','ck-editor__main','ck-voice-label'];(function(_0x14faa9,_0x570d48){const _0x30a807=function(_0x440745){while(--_0x440745){_0x14faa9['push'](_0x14faa9['shift']());}};_0x30a807(++_0x570d48);}(_0x43a7,0x1f4));const _0x2943=function(_0x14faa9,_0x570d48){_0x14faa9=_0x14faa9-0x0;let _0x30a807=_0x43a7[_0x14faa9];return _0x30a807;};import _0x1f6f08 from'@ckeditor/ckeditor5-ui/src/editableui/inline/inlineeditableuiview';import _0xecd7f0 from'@ckeditor/ckeditor5-utils/src/uid';import _0xe03cd4 from'@ckeditor/ckeditor5-ui/src/editorui/editoruiview';import _0x1b32b9 from'@ckeditor/ckeditor5-ui/src/label/labelview';export default class yt extends _0xe03cd4{constructor(_0x393f30,_0x46106f){super(_0x393f30);const _0xdeb81e=_0xecd7f0();this['main']=this[_0x2943('0xf')](),this[_0x2943('0x15')]=new _0x1f6f08(_0x393f30,_0x46106f),this['ii']=this['ei'](_0xdeb81e),this[_0x2943('0xc')]({'tag':_0x2943('0x6'),'attributes':{'class':[_0x2943('0x13'),_0x2943('0xd'),_0x2943('0xb'),_0x2943('0xe')],'role':_0x2943('0x7'),'dir':_0x393f30[_0x2943('0x8')],'lang':_0x393f30[_0x2943('0x14')],'aria-labelledby':_0x2943('0x10')+_0xdeb81e},'children':[this['ii'],{'tag':_0x2943('0x6'),'attributes':{'class':_0x2943('0x4'),'role':_0x2943('0x16')},'children':this[_0x2943('0x12')]}]});}[_0x2943('0x11')](){super[_0x2943('0x11')](),this[_0x2943('0x12')]['add'](this[_0x2943('0x15')]);}[_0x2943('0xa')](){this[_0x2943('0x15')][_0x2943('0x2')][_0x2943('0xa')]();}['ei'](_0x108b7a){const _0x35fc3c=new _0x1b32b9();return _0x35fc3c[_0x2943('0x3')]=_0x2943('0x0'),_0x35fc3c[_0x2943('0x9')]({'attributes':{'id':_0x2943('0x1')+_0x108b7a,'class':_0x2943('0x5')}}),_0x35fc3c;}} | ||
import _0x55a222 from'@ckeditor/ckeditor5-ui/src/editableui/inline/inlineeditableuiview';import _0x5be7f7 from'@ckeditor/ckeditor5-utils/src/uid';import _0x4c52c1 from'@ckeditor/ckeditor5-ui/src/editorui/editoruiview';import ti from'@ckeditor/ckeditor5-ui/src/label/labelview';export default class ut extends _0x4c52c1{constructor(_0x56fda1,_0xddfccf){super(_0x56fda1);const _0x11300d=_0x5be7f7();this['main']=this['createCollection'](),this['editable']=new _0x55a222(_0x56fda1,_0xddfccf),this['ii']=this['ei'](_0x11300d,_0x56fda1),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0x56fda1['uiLanguageDirection'],'lang':_0x56fda1['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x11300d},'children':[this['ii'],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}['ei'](_0x4eba2d,_0x471ca3){const _0x43670d=new ti(),{t:t}=_0x471ca3;return _0x43670d['text']=t('Comment\x20editor'),_0x43670d['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x4eba2d,'class':'ck-voice-label'}}),_0x43670d;}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x375a=['hasChanges','change:isRemovable','visibleCommentControllers','change','placeholder','fire','isReadOnly','setData','change:active','bindTo','first','bind','commentControllers','Reply...','getIndex','every','last','collapsed','map','count','thread','_controller','cancel','stop','destroy','removeButton','stopListening','find','change:isReadOnly','comments','set','then','Write\x20a\x20comment...','add','containerElement','focusTracker','isCollapsed','commentthreadcontroller-comment-already-collapsed:\x20Cannot\x20collapse\x20collapsed\x20comment.','view','change:hasChanges','collapse','all','using','cancelConfirm','Delete\x20comment\x20thread?','disabledSubmit','weight','expand','user','nextAction','commentInputView','value','active','listenTo','visibleInput','get','execute','totalWeight','remove','change:value','localeData','from','high','createStandaloneThread','has','reduce','locale','visibleActions','isFocused','length','comment'];(function(_0x50d4bc,_0x342148){const _0x501af4=function(_0x3a8ef2){while(--_0x3a8ef2){_0x50d4bc['push'](_0x50d4bc['shift']());}};_0x501af4(++_0x342148);}(_0x375a,0x17a));const _0x4164=function(_0x50d4bc,_0x342148){_0x50d4bc=_0x50d4bc-0x0;let _0x501af4=_0x375a[_0x50d4bc];return _0x501af4;};import _0x290b7c from'@ckeditor/ckeditor5-utils/src/observablemixin';import _0x1af78a from'@ckeditor/ckeditor5-utils/src/mix';import _0x2aa111 from'@ckeditor/ckeditor5-utils/src/collection';import _0x5914af from'./commentcontroller';import _0x297f51 from'./view/commentthreadview';import _0x18bf93 from'./view/collapsedcommentsview';import _0x3bf8e9 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default class bt{constructor(_0x3889e7,_0x1540de,_0x2d6b7c,_0x56bea8){this[_0x4164('0x25')]=_0x3889e7,this['thread']=_0x1540de,this[_0x4164('0x44')][_0x4164('0x45')]=this,this[_0x4164('0x19')]=_0x2d6b7c,this[_0x4164('0x3c')]=new _0x2aa111(),this['commentControllers'][_0x4164('0x39')](this[_0x4164('0x44')][_0x4164('0x6')])[_0x4164('0x13')](_0x4cf1b8=>{const _0x1ad45f=new _0x5914af(_0x3889e7,_0x4cf1b8,_0x56bea8);return _0x1ad45f['on'](_0x4164('0x10'),()=>this['ft']()),_0x1ad45f;}),this['visibleCommentControllers']=function(_0x61520b){const _0x16f2fb=new _0x2aa111();for(const _0x229989 of _0x61520b)_0x16f2fb[_0x4164('0xa')](_0x229989);return _0x16f2fb;}(this[_0x4164('0x3c')]),this[_0x4164('0x7')](_0x4164('0x2e'),this[_0x4164('0x3c')][_0x4164('0x2e')]),this[_0x4164('0x7')](_0x4164('0x30'),!0x1),this[_0x4164('0x7')]('isCollapsed',!0x1),this['set'](_0x4164('0x1d'),!0x1),this[_0x4164('0x7')](_0x4164('0x1f'),!0x1),this[_0x4164('0x7')]('visibleActions',!0x1),this['view']=this['vt'](_0x56bea8),this['collapse'](),this['on'](_0x4164('0x38'),(_0x21c47b,_0x4257ef,_0x375ecd)=>{this['Ct'](),_0x375ecd||this['yt']();}),this[_0x4164('0x1e')](this[_0x4164('0x44')],_0x4164('0x33'),()=>{this['Ct']();}),this[_0x4164('0x1e')](this[_0x4164('0x3c')],_0x4164('0xa'),(_0x42118a,_0x249dd0)=>{this[_0x4164('0x2e')]=this[_0x4164('0x3c')][_0x4164('0x2e')],this['_t'](_0x249dd0);}),this[_0x4164('0x1e')](this[_0x4164('0x3c')],_0x4164('0x23'),(_0x359180,_0x2088a0)=>{this[_0x4164('0x2e')]=this[_0x4164('0x3c')][_0x4164('0x2e')],this['At'](_0x2088a0),this['ft'](),_0x2088a0[_0x4164('0x1')]();}),this[_0x4164('0x1e')](_0x1540de,_0x4164('0x5'),()=>this['yt']());}get['id'](){return this['thread']['id'];}get[_0x4164('0x22')](){return Array[_0x4164('0x26')](this['commentControllers'])[_0x4164('0x2a')]((_0x451a4b,_0x329e92)=>_0x451a4b+_0x329e92[_0x4164('0x17')],0x0);}get['xt'](){return!this['active']&&this[_0x4164('0x22')]>0x1f4&&Array[_0x4164('0x26')](this[_0x4164('0x3c')])[_0x4164('0x3f')](_0x3a4d97=>!_0x3a4d97[_0x4164('0x30')]);}['collapse'](){if(this[_0x4164('0xd')])throw new _0x3bf8e9(_0x4164('0xe'),this);const _0xdd04=this[_0x4164('0x2e')]-0x2;for(let _0x270b8e=0x1;_0x270b8e<=_0xdd04;_0x270b8e++)this[_0x4164('0x32')][_0x4164('0x23')](this[_0x4164('0x3c')][_0x4164('0x20')](_0x270b8e));this[_0x4164('0x32')][_0x4164('0x2e')]<this[_0x4164('0x2e')]&&this['It'](),this[_0x4164('0x22')]>0x1f4&&(this[_0x4164('0x32')][_0x4164('0x3a')][_0x4164('0x11')](),this[_0x4164('0x32')]['last'][_0x4164('0x11')](),this[_0x4164('0xd')]=!0x0);}[_0x4164('0x18')](){this[_0x4164('0x32')][_0x4164('0x20')](_0x4164('0x41'))&&this['Rt']();for(let _0xbc0daf=0x0;_0xbc0daf<this['length'];_0xbc0daf++){const _0x1bcf40=this[_0x4164('0x3c')]['get'](_0xbc0daf);this[_0x4164('0x32')][_0x4164('0x20')](_0xbc0daf)!=_0x1bcf40&&this[_0x4164('0x32')][_0x4164('0xa')](_0x1bcf40,_0xbc0daf);}for(const _0x33520b of this[_0x4164('0x3c')])_0x33520b[_0x4164('0x18')]();this['isCollapsed']=!0x1;}[_0x4164('0x1')](){return this[_0x4164('0x35')](_0x4164('0x1')),this[_0x4164('0x3')](),this['thread'][_0x4164('0x45')]=null,Promise[_0x4164('0x12')]([this[_0x4164('0xf')],...this[_0x4164('0x3c')]][_0x4164('0x42')](_0x4bbdf7=>_0x4bbdf7[_0x4164('0x1')]()));}['vt'](_0x31005e){const _0x271253=new _0x297f51(this[_0x4164('0x25')][_0x4164('0x2b')],this['user'],this['id'],_0x31005e);return _0x271253[_0x4164('0x3b')](_0x4164('0x1d'),_0x4164('0x1f'),_0x4164('0x2c'))['to'](this),_0x271253[_0x4164('0x6')][_0x4164('0x39')](this[_0x4164('0x32')])[_0x4164('0x13')](_0x34aea5=>{if(_0x4164('0x41')===_0x34aea5['id']){const _0x41c69a=new _0x18bf93(this['localeData'][_0x4164('0x2b')]);return _0x41c69a[_0x4164('0x3b')](_0x4164('0x43'))['to'](this,'length',_0x15fe93=>_0x15fe93-0x2),_0x41c69a;}return _0x34aea5[_0x4164('0xf')];}),this['Ot'](_0x271253[_0x4164('0x1b')]),_0x271253;}['Ot'](_0x271a99){_0x271a99[_0x4164('0x34')]=_0x4164('0x3d'),_0x271a99['on']('submit',(_0xf651d3,_0x2f7ca0)=>{this[_0x4164('0x44')]['addComment']({'content':_0x2f7ca0,'authorId':this[_0x4164('0x19')]['id']}),_0x271a99['editor'][_0x4164('0x37')]('');}),_0x271a99['on'](_0x4164('0x46'),()=>this[_0x4164('0xf')]['focus']()),_0x271a99['on'](_0x4164('0x24'),()=>this['ft']()),_0x271a99[_0x4164('0x3b')](_0x4164('0x16'))['to'](this[_0x4164('0x44')],_0x4164('0x36')),this[_0x4164('0x3b')]('visibleInput')['to'](this,_0x4164('0x1d'),this[_0x4164('0x44')],'isReadOnly',_0x271a99,_0x4164('0x1c'),(_0x104f55,_0x214e68,_0x2a9727)=>{const _0x15fed2=!!_0x2a9727;return _0x15fed2||!_0x15fed2&&_0x104f55&&!_0x214e68;}),this[_0x4164('0x3b')](_0x4164('0x2c'))['to'](_0x271a99[_0x4164('0xc')],_0x4164('0x2d'),_0x271a99,'value',(_0x17dc68,_0x243af8)=>_0x17dc68||!!_0x243af8);}['Ct'](){this[_0x4164('0xd')]&&!this['xt']?this['expand']():!this[_0x4164('0xd')]&&this['xt']&&this[_0x4164('0x11')]();}['_t'](_0x20c428){this['visibleCommentControllers'][_0x4164('0xa')](_0x20c428),this[_0x4164('0xd')]?(_0x20c428['collapse'](),this[_0x4164('0x32')][_0x4164('0x29')](_0x4164('0x41'))||this['It'](),this['visibleCommentControllers'][_0x4164('0x23')](this['visibleCommentControllers'][_0x4164('0x2e')]-0x2)):this['xt']&&this[_0x4164('0x11')]();}['At'](_0x35561a){let _0x137625=!0x1;if(this['visibleCommentControllers']['get'](_0x35561a['id'])&&(this[_0x4164('0x32')][_0x4164('0x23')](_0x35561a),_0x137625=!0x0),!this['isCollapsed'])return;if(!this['xt'])return void this[_0x4164('0x18')]();const _0xa747b8=this['visibleCommentControllers'][_0x4164('0x3e')]('collapsed'),_0x11d3ee=_0xa747b8>-0x1;_0x11d3ee&&this[_0x4164('0x2e')]<=0x2&&this['Rt'](),_0x137625&&_0x11d3ee&&(0x0===_0xa747b8?this[_0x4164('0x32')][_0x4164('0xa')](this[_0x4164('0x3c')][_0x4164('0x3a')],0x0):this[_0x4164('0x32')][_0x4164('0xa')](this['commentControllers'][_0x4164('0x40')]));}['It'](){this[_0x4164('0x32')]['add']({'Wt':_0x4164('0x41'),'id':_0x4164('0x41')},0x1);}['Rt'](){this['visibleCommentControllers'][_0x4164('0x23')](_0x4164('0x41'));}['yt'](){this['view'][_0x4164('0x14')]();for(const _0x274c1f of this[_0x4164('0x3c')])_0x274c1f['view'][_0x4164('0x14')]();}['ft'](){this[_0x4164('0x30')]=!!this[_0x4164('0xf')][_0x4164('0x1b')][_0x4164('0x1c')]||!!this[_0x4164('0x3c')][_0x4164('0x4')](_0x282e75=>_0x282e75[_0x4164('0x30')]);}static[_0x4164('0x28')](_0x2ec643,_0x2a9148,_0x3c21cb,_0x3cb675){const _0x55bd3f=new this(_0x2ec643,_0x2a9148,_0x3c21cb,_0x3cb675);return function(_0x5239f8){const {thread:_0x223e67}=_0x5239f8,{commentInputView:_0x36cfa2}=_0x5239f8[_0x4164('0xf')];_0x5239f8[_0x4164('0x2e')]?_t(_0x5239f8):_0x5239f8['once']('change:length',()=>_t(_0x5239f8));_0x36cfa2[_0x4164('0x3b')](_0x4164('0x34'))['to'](_0x5239f8,_0x4164('0x2e'),_0x2ab4a1=>_0x2ab4a1?_0x4164('0x3d'):'Write\x20a\x20comment...'),_0x36cfa2['on']('cancel',_0x2fe90d=>{_0x5239f8[_0x4164('0x2e')]||(_0x223e67[_0x4164('0x23')](),_0x2fe90d[_0x4164('0x0')]());}),_0x5239f8['on'](_0x4164('0x38'),(_0x1ca41a,_0x2825d3,_0x540c32)=>{_0x540c32||_0x5239f8[_0x4164('0x2e')]||_0x36cfa2[_0x4164('0x1c')]||_0x223e67[_0x4164('0x23')]();});}(_0x55bd3f),_0x55bd3f;}}function _t(_0x530a5c){const _0x56d350=_0x530a5c[_0x4164('0x3c')][_0x4164('0x20')](0x0);_0x56d350[_0x4164('0x34')]=_0x4164('0x9'),_0x530a5c[_0x4164('0xf')][_0x4164('0x3b')](_0x4164('0x1a'))['to'](_0x56d350['view'],_0x4164('0x1a'),_0x548bf4=>_0x4164('0x23')===_0x548bf4?_0x4164('0x23'):null),_0x56d350[_0x4164('0xf')][_0x4164('0x2')]['on'](_0x4164('0x21'),_0x2479f1=>{_0x2479f1[_0x4164('0x0')](),_0x530a5c[_0x4164('0xf')]['showConfirm'](_0x4164('0x15'),_0x530a5c[_0x4164('0xf')][_0x4164('0xb')])[_0x4164('0x8')](()=>{_0x530a5c['thread']['remove']();});},{'priority':_0x4164('0x27')}),_0x56d350[_0x4164('0x2f')]['on'](_0x4164('0x31'),()=>{_0x530a5c[_0x4164('0xf')][_0x4164('0x14')]();});}_0x1af78a(bt,_0x290b7c); | ||
import rt from'@ckeditor/ckeditor5-utils/src/observablemixin';import it from'@ckeditor/ckeditor5-utils/src/mix';export default class Ct{constructor(_0x3ba5c3,_0x278429){this['model']=_0x3ba5c3,this['model']['_isAttached']=!0x0,this['view']=_0x278429,this['listenTo'](_0x278429,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x278429,'addComment',(_0x93305d,_0x3c9ab7)=>this['addComment'](_0x3c9ab7)),this['listenTo'](_0x278429,'updateComment',(_0x49446b,_0x14e569,_0x510130)=>this['updateComment'](_0x14e569,_0x510130)),this['listenTo'](_0x278429,'removeComment',(_0x446d51,_0x3540e7)=>this['removeComment'](_0x3540e7));}['remove'](){this['model']['remove']();}['addComment'](_0x4532db){this['model']['addComment']({'content':_0x4532db,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x1d0f4e,_0x2cd2a2){this['model']['getComment'](_0x1d0f4e)['update']({'content':_0x2cd2a2});}['removeComment'](_0x21a388){this['model']['getComment'](_0x21a388)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}it(Ct,rt); |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x43e7=['count','setTemplate','\x20Comments','\x20Comment'];(function(_0x3c48bd,_0x51de05){const _0x265404=function(_0x5bbd70){while(--_0x5bbd70){_0x3c48bd['push'](_0x3c48bd['shift']());}};_0x265404(++_0x51de05);}(_0x43e7,0xc4));const _0x53c0=function(_0x3c48bd,_0x51de05){_0x3c48bd=_0x3c48bd-0x0;let _0x265404=_0x43e7[_0x3c48bd];return _0x265404;};import _0x59c345 from'@ckeditor/ckeditor5-ui/src/view';export default class Ct extends _0x59c345{constructor(_0x22543a){super(_0x22543a),this['set'](_0x53c0('0x0'));const _0x1a2585=this['bindTemplate'];this[_0x53c0('0x1')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1a2585['to'](_0x53c0('0x0'),_0x5dd284=>0x1==_0x5dd284?_0x5dd284+_0x53c0('0x3'):_0x5dd284+_0x53c0('0x2'))}]});}} | ||
import _0x40b3e0 from'@ckeditor/ckeditor5-ui/src/view';export default class _t extends _0x40b3e0{constructor(_0x274568){super(_0x274568);const {t:t}=_0x274568,_0x12490c=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x12490c['to']('count',_0x312c27=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x312c27))}]});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x3013=['content','render','ck-comment__content','div','set','setTemplate','change:content','element','innerHTML','ck-annotation__content'];(function(_0x361261,_0x447fe7){var _0x33c288=function(_0xed5a19){while(--_0xed5a19){_0x361261['push'](_0x361261['shift']());}};_0x33c288(++_0x447fe7);}(_0x3013,0x7d));var _0x500f=function(_0x361261,_0x447fe7){_0x361261=_0x361261-0x0;var _0x33c288=_0x3013[_0x361261];return _0x33c288;};import _0x5d234d from'@ckeditor/ckeditor5-ui/src/view';export default class et extends _0x5d234d{constructor(_0x2bab98){super(_0x2bab98),this[_0x500f('0x9')](_0x500f('0x5'),''),this[_0x500f('0x0')]({'tag':_0x500f('0x8'),'attributes':{'class':[_0x500f('0x7'),_0x500f('0x4')]}});}[_0x500f('0x6')](){super[_0x500f('0x6')](),this['on'](_0x500f('0x1'),(_0x4b8a12,_0x5dca57,_0x2e5f87)=>{this[_0x500f('0x2')][_0x500f('0x3')]=_0x2e5f87;}),this[_0x500f('0x2')][_0x500f('0x3')]=this[_0x500f('0x5')];}} | ||
import _0x159246 from'@ckeditor/ckeditor5-ui/src/view';export default class ft extends _0x159246{constructor(_0x3016eb){super(_0x3016eb),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x3d85b4,_0x4c54ad,_0x51f2cf)=>{this['element']['innerHTML']=_0x51f2cf;}),this['element']['innerHTML']=this['content'];}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x2474=['label','value','disabledSubmit','submitButtonView','ck-comment__input-actions--cancel','editor','execute','focusPrevious','icon','locale','add','editorReady','extendTemplate','isEnabled','change','fire','destroy','ck-comment__input-wrapper','ck-comment__input-actions','div','shift\x20+\x20tab','view','firstChild','focusNext','focus','ck-comment__input-actions--submit','bind','getData','submit','resolve','trim','render','setData','then','document','isRendered','Cancel','placeholder','Submit','low','stop','forEach','set','listenTo','cancelButtonView','keystrokes','focusTracker','length','element','high'];(function(_0x53a0aa,_0x4371d2){const _0x4465a0=function(_0x56cc84){while(--_0x56cc84){_0x53a0aa['push'](_0x53a0aa['shift']());}};_0x4465a0(++_0x4371d2);}(_0x2474,0xe3));const _0x3a26=function(_0x53a0aa,_0x4371d2){_0x53a0aa=_0x53a0aa-0x0;let _0x4465a0=_0x2474[_0x53a0aa];return _0x4465a0;};import _0x4fb96d from'@ckeditor/ckeditor5-ui/src/view';import _0x3d3357 from'@ckeditor/ckeditor5-ui/src/viewcollection';import _0x47a04d from'../commenteditor/commenteditor';import _0x545aa1 from'@ckeditor/ckeditor5-ui/src/button/buttonview';import _0x53b4f5 from'@ckeditor/ckeditor5-utils/src/focustracker';import _0x271203 from'@ckeditor/ckeditor5-ui/src/focuscycler';import _0x319f80 from'@ckeditor/ckeditor5-utils/src/keystrokehandler';import _0x2e9828 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x48bb12 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';export default class st extends _0x4fb96d{constructor(_0x5df617,_0x4325ad){super(_0x5df617),this[_0x3a26('0x1c')]=new _0x47a04d(_0x4325ad),this[_0x3a26('0x12')]=new _0x319f80(),this['focusTracker']=new _0x53b4f5(),this[_0x3a26('0xf')](_0x3a26('0x18'),''),this['set']('disabledSubmit',!0x1),this['set'](_0x3a26('0xa'),''),this[_0x3a26('0x1a')]=this['St'](),this['cancelButtonView']=this['Bt'](),this['setTemplate']({'tag':_0x3a26('0x2a'),'attributes':{'class':[_0x3a26('0x28')]},'children':[{'tag':'div','attributes':{'class':[_0x3a26('0x29')]},'children':[this['submitButtonView'],this[_0x3a26('0x11')]]}]}),this[_0x3a26('0x12')][_0x3a26('0xf')]('Esc',(_0x57d9a4,_0x4238fb)=>{this['cancelButtonView'][_0x3a26('0x26')](_0x3a26('0x1d')),_0x4238fb();}),this['on'](_0x3a26('0x1'),(_0x2390d6,_0x1df20a)=>{_0x1df20a[_0x3a26('0x14')]>0xfa0&&(alert('Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20a\x20'+_0x1df20a[_0x3a26('0x14')]+'\x20characters\x20but\x20the\x20limit\x20is\x20a\x204000\x20characters.'),_0x2390d6[_0x3a26('0xd')]());},{'priority':_0x3a26('0x16')});}[_0x3a26('0x4')](){super[_0x3a26('0x4')]();const {editor:_0x484216,element:_0x2e2aca}=this;this['keystrokes'][_0x3a26('0x10')](_0x2e2aca),this[_0x3a26('0x13')]['add'](_0x2e2aca),_0x484216['create']()[_0x3a26('0x6')](()=>{_0x2e2aca['insertBefore'](_0x484216['ui'][_0x3a26('0x15')],_0x2e2aca[_0x3a26('0x2d')]),_0x484216['model'][_0x3a26('0x7')]['on'](_0x3a26('0x25'),()=>this[_0x3a26('0x18')]=_0x484216[_0x3a26('0x0')]()),_0x484216['bind'](_0x3a26('0xa'))['to'](this),this['Et'](_0x484216),this[_0x3a26('0x26')](_0x3a26('0x22'));});}[_0x3a26('0x2f')](){this['editor'][_0x3a26('0x2f')]();}[_0x3a26('0x27')](){return this['Pt']?Promise[_0x3a26('0x2')]():(this['Pt']=!0x0,this[_0x3a26('0x8')]?this[_0x3a26('0x1c')][_0x3a26('0x27')]()[_0x3a26('0x6')](()=>super[_0x3a26('0x27')]()):Promise[_0x3a26('0x2')](super[_0x3a26('0x27')]()));}['St'](){const _0x4545b6=new _0x545aa1(this[_0x3a26('0x20')]);return _0x4545b6[_0x3a26('0x23')]({'attributes':{'class':[_0x3a26('0x30')]}}),_0x4545b6[_0x3a26('0x17')]=_0x3a26('0xb'),_0x4545b6[_0x3a26('0x1f')]=_0x2e9828,_0x4545b6['on'](_0x3a26('0x1d'),()=>this[_0x3a26('0x26')]('submit',this[_0x3a26('0x18')])),_0x4545b6[_0x3a26('0x31')](_0x3a26('0x24'))['to'](this,_0x3a26('0x18'),this,_0x3a26('0x19'),(_0x46e3eb,_0x3e618)=>!_0x3e618&&!!_0x46e3eb[_0x3a26('0x3')]()),_0x4545b6;}['Bt'](){const _0x402c4c=new _0x545aa1(this['locale']);return _0x402c4c['extendTemplate']({'attributes':{'class':[_0x3a26('0x1b')]}}),_0x402c4c[_0x3a26('0x17')]=_0x3a26('0x9'),_0x402c4c[_0x3a26('0x1f')]=_0x48bb12,_0x402c4c['on'](_0x3a26('0x1d'),()=>{this[_0x3a26('0x1c')][_0x3a26('0x5')](''),this[_0x3a26('0x26')]('cancel');}),_0x402c4c;}['Et'](_0x9e898e){const _0xafecfd=this['focusTracker'],_0x1f1c08=new _0x3d3357();[_0x9e898e['ui'][_0x3a26('0x2c')],this[_0x3a26('0x1a')],this[_0x3a26('0x11')]][_0x3a26('0xe')](_0x3965ac=>{_0x1f1c08[_0x3a26('0x21')](_0x3965ac),_0xafecfd[_0x3a26('0x21')](_0x3965ac['element']);});const _0x50ea5f=new _0x271203({'focusables':_0x1f1c08,'focusTracker':_0xafecfd});this[_0x3a26('0x12')][_0x3a26('0xf')]('tab',(_0x4d9fb3,_0x1cb3f2)=>{_0x50ea5f[_0x3a26('0x2e')](),_0x1cb3f2();},{'priority':_0x3a26('0xc')}),this[_0x3a26('0x12')][_0x3a26('0xf')](_0x3a26('0x2b'),(_0x4f1708,_0x588d39)=>{_0x50ea5f[_0x3a26('0x1e')](),_0x588d39();},{'priority':_0x3a26('0xc')});}} | ||
import _0x2f9477 from'@ckeditor/ckeditor5-ui/src/view';import kt from'@ckeditor/ckeditor5-ui/src/viewcollection';import pt from'../commenteditor/commenteditor';import _0x125317 from'@ckeditor/ckeditor5-ui/src/button/buttonview';import _0x5bac4d from'@ckeditor/ckeditor5-utils/src/focustracker';import gt from'@ckeditor/ckeditor5-ui/src/focuscycler';import _0xf35b13 from'@ckeditor/ckeditor5-utils/src/keystrokehandler';import Bt from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import Et from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';export default class yt extends _0x2f9477{constructor(_0x191339,_0x1f1387={}){super(_0x191339);const {t:t}=_0x191339;this['editor']=new pt(_0x1f1387),this['keystrokes']=new _0xf35b13(),this['focusTracker']=new _0x5bac4d(),this['set']('value',_0x1f1387['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',t('Reply...')),this['submitButtonView']=this['kt'](),this['cancelButtonView']=this['bt'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x3eda81,_0x1ce8a7)=>{this['cancelButtonView']['fire']('execute'),_0x1ce8a7();}),this['on']('submit',(_0x1e69d5,_0x1cca18)=>{_0x1cca18['length']>0xfa0?(alert(t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},[_0x1cca18['length'],0xfa0])),_0x1e69d5['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x24de28,element:_0x595a24}=this;this['keystrokes']['listenTo'](_0x595a24),this['focusTracker']['add'](_0x595a24),_0x24de28['create']()['then'](()=>{_0x595a24['insertBefore'](_0x24de28['ui']['element'],_0x595a24['firstChild']),_0x24de28['model']['document']['on']('change',()=>this['value']=_0x24de28['getData']()),_0x24de28['bind']('placeholder')['to'](this),this['ft'](_0x24de28),this['fire']('editorReady');});}['focus'](){this['editor']['focus']();}['destroy'](){return this['_t']?Promise['resolve']():(this['_t']=!0x0,this['isRendered']?this['editor']['destroy']()['then'](()=>super['destroy']()):Promise['resolve'](super['destroy']()));}['kt'](){const _0x21483e=new _0x125317(this['locale']),{t:t}=this['locale'];return _0x21483e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x21483e['label']=t('Submit'),_0x21483e['icon']=Bt,_0x21483e['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x21483e['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4c216b,_0x2a57bb)=>!_0x2a57bb&&!!_0x4c216b['trim']()),_0x21483e;}['bt'](){const _0x177e68=new _0x125317(this['locale']),{t:t}=this['locale'];return _0x177e68['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x177e68['label']=t('Cancel'),_0x177e68['icon']=Et,_0x177e68['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x177e68;}['ft'](_0x12d879){const _0x502557=this['focusTracker'],_0x1d9082=new kt();[_0x12d879['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x3eb5e4=>{_0x1d9082['add'](_0x3eb5e4),_0x502557['add'](_0x3eb5e4['element']);});const _0xf9cd3c=new gt({'focusables':_0x1d9082,'focusTracker':_0x502557});this['keystrokes']['set']('tab',(_0x53fbbb,_0x26f03a)=>{_0xf9cd3c['focusNext'](),_0x26f03a();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x3635b1,_0x31e37c)=>{_0xf9cd3c['focusPrevious'](),_0x31e37c();},{'priority':'low'});}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x17bb=['focus','.ck-thread__container','ck-thread__comments','element','setTemplate','set','template','render','commentInputView','ck-thread__input','userView','locale','querySelector','getSelection','ck-thread__container','ck-thread--active','createCollection','focusTracker','extend','removeAllRanges','ck-thread--remove-confirmation','nextAction','bindTemplate','visibleInput','extendTemplate','ck-thread--','ck-comment__input-container--active','div','isConfirm','visibleActions','ck-thread','containerElement','active'];(function(_0x3b1fa9,_0x527cec){const _0x3e53f3=function(_0x15cdeb){while(--_0x15cdeb){_0x3b1fa9['push'](_0x3b1fa9['shift']());}};_0x3e53f3(++_0x527cec);}(_0x17bb,0x14a));const _0x5ccd=function(_0x3b1fa9,_0x527cec){_0x3b1fa9=_0x3b1fa9-0x0;let _0x3e53f3=_0x17bb[_0x3b1fa9];return _0x3e53f3;};import _0x4bc85e from'@ckeditor/ckeditor5-ui/src/view';import _0x3c09fc from'@ckeditor/ckeditor5-ui/src/template';import _0x424b9a from'@ckeditor/ckeditor5-utils/src/focustracker';import _0x55ef60 from'@ckeditor/ckeditor5-utils/src/mix';import _0x160614 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import _0x52c301 from'./commentinputview';import _0x37ac5d from'./confirmmixin';export default class vt extends _0x4bc85e{constructor(_0x59d4e5,_0x4022f9,_0x52840f,_0x455197){super(_0x59d4e5),this['set'](_0x5ccd('0x20'),!0x1),this[_0x5ccd('0x5')](_0x5ccd('0x17'),!0x1),this[_0x5ccd('0x5')]('visibleActions',!0x1),this[_0x5ccd('0x5')](_0x5ccd('0x15'),null),this[_0x5ccd('0x11')]=new _0x424b9a(),this['comments']=this[_0x5ccd('0x10')](),this['commentInputView']=this['gt'](_0x455197),this[_0x5ccd('0xa')]=new _0x160614(_0x59d4e5,_0x4022f9),this[_0x5ccd('0xa')][_0x5ccd('0x18')]({'attributes':{'class':'ck-thread__user'}});const _0x17ccf4=this[_0x5ccd('0x16')];this[_0x5ccd('0x4')]({'tag':_0x5ccd('0x1b'),'attributes':{'class':[_0x5ccd('0x1e'),_0x17ccf4['if'](_0x5ccd('0x20'),_0x5ccd('0xf')),_0x17ccf4['if'](_0x5ccd('0x1c'),_0x5ccd('0x14')),_0x17ccf4['to'](_0x5ccd('0x15'),_0x4e8c1b=>_0x4e8c1b?_0x5ccd('0x19')+_0x4e8c1b:'')],'data-thread-id':_0x52840f,'tabindex':-0x1},'children':[{'tag':_0x5ccd('0x1b'),'attributes':{'class':_0x5ccd('0xe')},'children':[{'tag':'ul','attributes':{'class':[_0x5ccd('0x2')]},'children':this['comments']},{'tag':'div','attributes':{'class':['ck-comment__input-container',_0x17ccf4['if'](_0x5ccd('0x17'),_0x5ccd('0x1a')),_0x17ccf4['if'](_0x5ccd('0x1d'),'ck-comment__input-container--active-actions')]},'children':[this[_0x5ccd('0xa')],this[_0x5ccd('0x8')]]}]}]});}[_0x5ccd('0x7')](){super['render'](),this[_0x5ccd('0x11')]['add'](this['element']),this[_0x5ccd('0x1f')]=this[_0x5ccd('0x3')][_0x5ccd('0xc')](_0x5ccd('0x1'));}[_0x5ccd('0x0')](){document[_0x5ccd('0xd')]()[_0x5ccd('0x13')](),this[_0x5ccd('0x3')][_0x5ccd('0x0')]();}['gt'](_0x31a599){const _0x15c019=new _0x52c301(this[_0x5ccd('0xb')],_0x31a599),_0x4a6d9c=this[_0x5ccd('0x16')];return _0x15c019[_0x5ccd('0x18')]({'attributes':{'class':_0x5ccd('0x9')}}),_0x3c09fc[_0x5ccd('0x12')](_0x15c019[_0x5ccd('0x6')]['children'][0x0],{'attributes':{'class':[_0x4a6d9c['if'](_0x5ccd('0x1d'),'ck-comment__input-actions--active')]}}),_0x15c019;}}_0x55ef60(vt,_0x37ac5d); | ||
import wt from'./basecommentthreadview';import it from'@ckeditor/ckeditor5-utils/src/mix';import Tt from'./confirmmixin';export default class Ft extends wt{constructor(_0x57e40c,_0x5ac715,_0x2baf55,_0x1d7b64){super(_0x57e40c,_0x5ac715,_0x2baf55,_0x1d7b64),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x57e40c,this['setTemplate'](this['_getTemplate']()),this['on']('change:isActive',(_0x548a37,_0x9f2d1e,_0x2f013d)=>{_0x2f013d||this['It']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0xd9d84a,_0x2d5e21,_0x2d6faf)=>{_0x2d6faf&&this['It']();}),this['length']>0x0?this['Tt']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x4d66e3=>{this['Tt'](),_0x4d66e3['off']();});}['_getTemplate'](){const _0x26ad0b=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x26ad0b['if']('isActive','ck-thread--active'),_0x26ad0b['if']('isConfirm','ck-thread--remove-confirmation'),_0x26ad0b['to']('actionIndicator',_0x1f849d=>_0x1f849d?'ck-thread--'+_0x1f849d:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['It'](){this['cancelConfirm']();for(const _0x24138c of this['commentsListView']['commentViews'])_0x24138c['cancelConfirm']();}['Tt'](){const {t:t}=this['locale'],_0x1d62d8=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x1d62d8,'actionIndicator',_0x264f96=>'remove'===_0x264f96?'remove':null),_0x1d62d8['placeholder']=t('Write\x20a\x20comment...'),_0x1d62d8['removeButton']['on']('execute',_0x3489ce=>{_0x3489ce['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}it(Ft,Tt); |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x5c3c=['element','ck-comment__info','ck-annotation','span','createCollection','focus','setTemplate','ck-annotation__content-wrapper','ck-comment--','ck-annotation__info-time','time','hasChanges','isConfirm','render','locale','ck-annotation__actions--hidden','nextAction','ck-comment','extendTemplate','bindTemplate','ck-comment__actions--hidden','blur','editButton','listenTo','createdAt','set','ck-annotation__info','label','div','ck-comment--remove-confirmation','removeButton','ck-comment--edit','mouseenter','name','userView','ck-comment__main','mouseleave','icon','ck-comment__actions','ck-annotation__actions'];(function(_0x3c2933,_0x50894d){const _0x210d5a=function(_0x49ba91){while(--_0x49ba91){_0x3c2933['push'](_0x3c2933['shift']());}};_0x210d5a(++_0x50894d);}(_0x5c3c,0xe6));const _0x417c=function(_0x3c2933,_0x50894d){_0x3c2933=_0x3c2933-0x0;let _0x210d5a=_0x5c3c[_0x3c2933];return _0x210d5a;};import _0x25b102 from'@ckeditor/ckeditor5-ui/src/view';import _0x1348b9 from'@ckeditor/ckeditor5-utils/src/mix';import _0x55d5e1 from'@ckeditor/ckeditor5-ui/src/button/buttonview';import _0x21dd9c from'./confirmmixin';import _0x2a41b4 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import _0x526236 from'@ckeditor/ckeditor5-core/theme/icons/pencil.svg';import _0x2917ed from'../../../../theme/icons/remove-comment.svg';export default class it extends _0x25b102{constructor(_0x208b5f,{author:_0x31e274,commentId:_0x75a211,formatDateTime:_0x21558f}){super(_0x208b5f),this['set'](_0x417c('0x15'),!0x1),this[_0x417c('0x23')](_0x417c('0x1a'),null),this[_0x417c('0x23')](_0x417c('0x22'),null),this['content']=this[_0x417c('0xe')](),this[_0x417c('0x20')]=this['Dt'](),this['removeButton']=this['Tt'](),this[_0x417c('0x4')]=new _0x2a41b4(_0x208b5f,_0x31e274),this[_0x417c('0x4')][_0x417c('0x1c')]({'attributes':{'class':['ck-comment__user','ck-annotation__user']}});const _0x24fdea=this[_0x417c('0x1d')];this[_0x417c('0x10')]({'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x24fdea['if'](_0x417c('0x16'),_0x417c('0x27'))],'tabindex':-0x1},'children':[{'tag':_0x417c('0x26'),'attributes':{'class':[_0x417c('0x1b'),_0x417c('0xc'),_0x24fdea['if'](_0x417c('0x15'),_0x417c('0x1')),_0x24fdea['to'](_0x417c('0x1a'),_0x1e3c10=>_0x1e3c10?_0x417c('0x12')+_0x1e3c10:'')],'data-author-id':_0x31e274['id'],'data-comment-id':_0x75a211},'children':[this[_0x417c('0x4')],{'tag':'div','attributes':{'class':[_0x417c('0x5'),'ck-annotation__main']},'children':[{'tag':_0x417c('0x26'),'attributes':{'class':[_0x417c('0xb'),_0x417c('0x24')]},'children':[{'tag':_0x417c('0xd'),'children':[{'text':this['userView'][_0x417c('0x3')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':_0x417c('0x14'),'attributes':{'datetime':_0x24fdea['to'](_0x417c('0x22')),'class':['ck-comment__info-time',_0x417c('0x13')]},'children':[{'text':_0x24fdea['to'](_0x417c('0x22'),_0xf2cb04=>_0x21558f(_0xf2cb04))}]}]},{'tag':'div','attributes':{'class':[_0x417c('0x8'),_0x417c('0x9'),_0x24fdea['if'](_0x417c('0x15'),_0x417c('0x1e')),_0x24fdea['if']('hasChanges',_0x417c('0x19'))]},'children':[this[_0x417c('0x20')],this[_0x417c('0x0')]]},{'tag':_0x417c('0x26'),'attributes':{'class':[_0x417c('0x11')]},'children':this['content']}]}]}]});}['Dt'](){const _0x2cc979=new _0x55d5e1(this[_0x417c('0x18')]);return _0x2cc979[_0x417c('0x25')]='Edit',_0x2cc979[_0x417c('0x7')]=_0x526236,_0x2cc979['extendTemplate']({'attributes':{'class':_0x417c('0x1')}}),_0x2cc979;}['Tt'](){const _0x83a2a7=new _0x55d5e1(this[_0x417c('0x18')]);return _0x83a2a7[_0x417c('0x25')]='Remove',_0x83a2a7[_0x417c('0x7')]=_0x2917ed,_0x83a2a7[_0x417c('0x1c')]({'attributes':{'class':'ck-comment--remove'}}),_0x83a2a7;}['$t'](_0x22ca0c,_0x157cf5){this[_0x417c('0x21')](_0x22ca0c,_0x417c('0x2'),()=>this[_0x417c('0x1a')]=_0x157cf5),this[_0x417c('0x21')](_0x22ca0c,'focus',()=>this[_0x417c('0x1a')]=_0x157cf5),this[_0x417c('0x21')](_0x22ca0c,_0x417c('0x6'),()=>this[_0x417c('0x1a')]=null),this['listenTo'](_0x22ca0c,_0x417c('0x1f'),()=>this[_0x417c('0x1a')]=null);}['focus'](){this[_0x417c('0xa')][_0x417c('0xf')]();}[_0x417c('0x17')](){super['render'](),this['$t'](this['editButton'][_0x417c('0xa')],'edit'),this['$t'](this['removeButton'][_0x417c('0xa')],'remove');}}_0x1348b9(it,_0x21dd9c); | ||
import it from'@ckeditor/ckeditor5-utils/src/mix';import _0x31363c from'@ckeditor/ckeditor5-ui/src/button/buttonview';import xt from'./basecommentview';import It from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import Rt from'@ckeditor/ckeditor5-core/theme/icons/pencil.svg';import Mt from'../../../../theme/icons/remove-comment.svg';import Tt from'./confirmmixin';export default class Vt extends xt{constructor(_0x2e4928,_0x5be5d7,_0x627043){super(_0x2e4928,_0x5be5d7,_0x627043);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x5be5d7),this['editButton']=this['Et'](),this['removeButton']=this['Rt'](),this['userView']=new It(_0x2e4928,_0x5be5d7['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x5be5d7,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x47feed=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x47feed['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x47feed['if']('isEditMode','ck-comment--edit'),_0x47feed['to']('actionIndicator',_0x441043=>_0x441043?'ck-comment--'+_0x441043:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x47feed['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x47feed['to']('createdAt',_0xe12350=>this['_config']['formatDateTime'](_0xe12350))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x47feed['if']('isEditMode','ck-comment__actions--hidden'),_0x47feed['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['Et'](){const {t:t}=this['locale'],_0x46adae=new _0x31363c(this['locale']);return _0x46adae['label']=t('Edit'),_0x46adae['icon']=Rt,_0x46adae['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x46adae['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5ec1fb=>!_0x5ec1fb),_0x46adae['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x46adae['on']('execute',()=>this['switchToEditMode']()),_0x46adae;}['Rt'](){const {t:t}=this['locale'],_0x474cf7=new _0x31363c(this['locale']);return _0x474cf7['label']=t('Remove'),_0x474cf7['icon']=Mt,_0x474cf7['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x474cf7['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4b3a86=>!_0x4b3a86),_0x474cf7['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x474cf7['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x474cf7;}['Mt'](_0x49af30,_0x7a661c){this['listenTo'](_0x49af30,'mouseenter',()=>this['actionIndicator']=_0x7a661c),this['listenTo'](_0x49af30,'focus',()=>this['actionIndicator']=_0x7a661c),this['listenTo'](_0x49af30,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x49af30,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x4fd9ef=super['_createCommentInputView']();return _0x4fd9ef['bind']('placeholder')['to'](this),_0x4fd9ef;}['render'](){super['render'](),this['Mt'](this['editButton']['element'],'edit'),this['Mt'](this['removeButton']['element'],'remove');}}it(Vt,Tt); |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
var _0x13bb=['registerChild','deregisterChild','cancel','render','once','destroy','message','element','confirmView','isConfirm','fire'];(function(_0x207c2d,_0x70049f){var _0x5a6476=function(_0x12637d){while(--_0x12637d){_0x207c2d['push'](_0x207c2d['shift']());}};_0x5a6476(++_0x70049f);}(_0x13bb,0x1d7));var _0x2e81=function(_0x207c2d,_0x70049f){_0x207c2d=_0x207c2d-0x0;var _0x5a6476=_0x13bb[_0x207c2d];return _0x5a6476;};import _0x28d3cb from'./confirmview';export default{'showConfirm'(_0x4388bf,_0x402549){return this[_0x2e81('0xa')]=new _0x28d3cb(this['locale']),this[_0x2e81('0xa')][_0x2e81('0x5')](),this[_0x2e81('0xa')][_0x2e81('0x8')]=_0x4388bf,this['confirmView'][_0x2e81('0x6')](_0x2e81('0x4'),()=>{this[_0x2e81('0xa')]['stopListening'](this[_0x2e81('0x9')]),this[_0x2e81('0xa')][_0x2e81('0x7')](),this[_0x2e81('0xa')]['element']['remove'](),this[_0x2e81('0x3')](this[_0x2e81('0xa')]),this[_0x2e81('0xa')]=void 0x0,this[_0x2e81('0x0')]=!0x1;}),_0x402549['appendChild'](this[_0x2e81('0xa')]['element']),this[_0x2e81('0x2')](this[_0x2e81('0xa')]),this['set'](_0x2e81('0x0'),!0x0),new Promise(_0x453e1e=>this[_0x2e81('0xa')]['on']('submit',_0x453e1e));},'cancelConfirm'(){this[_0x2e81('0x0')]&&this[_0x2e81('0xa')][_0x2e81('0x1')](_0x2e81('0x4'));}}; | ||
import _0x5e410f from'./confirmview';export default{'showConfirm'(_0x519aad,_0x2a6c89){return this['confirmView']=new _0x5e410f(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x519aad,this['confirmView']['once']('cancel',()=>{this['ti']();}),this['confirmView']['once']('submit',()=>{this['ti']();}),_0x2a6c89['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['set']('isConfirm',!0x0),new Promise(_0x1de922=>this['confirmView']['on']('submit',_0x1de922));},'cancelConfirm'(){this['isConfirm']&&this['confirmView']['fire']('cancel');},'ti'(){this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['confirmView']['destroy'](),delete this['confirmView'];}}; |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x54ac=['icon','fire','cancel','cancelView','ck-thread__remove-confirm','extendTemplate','submit','ck-thread__remove-confirm-actions','bindTemplate','submitView','div','ck-thread__remove-confirm-inner','message','Are\x20you\x20sure?','ck-thread__remove-confirm-'];(function(_0x5ac8ad,_0x16e46f){const _0x4f3d7f=function(_0x597551){while(--_0x597551){_0x5ac8ad['push'](_0x5ac8ad['shift']());}};_0x4f3d7f(++_0x16e46f);}(_0x54ac,0x139));const _0x4444=function(_0x5ac8ad,_0x16e46f){_0x5ac8ad=_0x5ac8ad-0x0;let _0x4f3d7f=_0x54ac[_0x5ac8ad];return _0x4f3d7f;};import _0x2260f4 from'@ckeditor/ckeditor5-ui/src/view';import _0x1d0e7c from'@ckeditor/ckeditor5-ui/src/button/buttonview';import _0x34f0cf from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x2c31b3 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';export default class si extends _0x2260f4{constructor(_0x60e1e7){super(_0x60e1e7);const _0x3379c2=this[_0x4444('0xa')];this['submitView']=this['Nt'](_0x60e1e7,'Yes',_0x34f0cf,_0x4444('0x8')),this[_0x4444('0x5')]=this['Nt'](_0x60e1e7,'No',_0x2c31b3,_0x4444('0x4')),this['set'](_0x4444('0xe'),_0x4444('0x0')),this['setTemplate']({'tag':_0x4444('0xc'),'attributes':{'class':[_0x4444('0x6')]},'children':[{'tag':_0x4444('0xc'),'attributes':{'class':_0x4444('0xd')},'children':[{'tag':'p','children':[{'text':_0x3379c2['to'](_0x4444('0xe'))}]},{'tag':_0x4444('0xc'),'attributes':{'class':_0x4444('0x9')},'children':[this[_0x4444('0xb')],this[_0x4444('0x5')]]}]}]});}['Nt'](_0x356cb1,_0x9cd6af,_0x445fc3,_0x509482){const _0x29d532=new _0x1d0e7c(_0x356cb1);return _0x29d532['label']=_0x9cd6af,_0x29d532[_0x4444('0x2')]=_0x445fc3,_0x29d532[_0x4444('0x7')]({'attributes':{'class':_0x4444('0x1')+_0x509482}}),_0x29d532['on']('execute',()=>this[_0x4444('0x3')](_0x509482)),_0x29d532;}} | ||
import _0x576bde from'@ckeditor/ckeditor5-ui/src/view';import _0x53658f from'@ckeditor/ckeditor5-ui/src/button/buttonview';import Nt from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import Mt from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';export default class si extends _0x576bde{constructor(_0x3d00e0){super(_0x3d00e0);const {t:t}=_0x3d00e0,_0x4e86a4=this['bindTemplate'];this['submitView']=this['Bt'](_0x3d00e0,t('Yes'),Nt,'submit'),this['cancelView']=this['Bt'](_0x3d00e0,t('No'),Mt,'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x4e86a4['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['Bt'](_0x2524a8,_0x2b551e,_0x5d844b,_0x569aa6){const _0x477f2d=new _0x53658f(_0x2524a8);return _0x477f2d['label']=_0x2b551e,_0x477f2d['icon']=_0x5d844b,_0x477f2d['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x569aa6}}),_0x477f2d['on']('execute',()=>this['fire'](_0x569aa6)),_0x477f2d;}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x52fa=['delete','document','listenTo','cut','view','stop','commentsOnlyMode','editing','config','set','pluginName','commentsOnly','editor','afterInit','clipboardInput','isEnabled','commands','change:isEnabled','stopListening','highest'];(function(_0x4aebc6,_0xe48eae){const _0x8d2271=function(_0x1f44a9){while(--_0x1f44a9){_0x4aebc6['push'](_0x4aebc6['shift']());}};_0x8d2271(++_0xe48eae);}(_0x52fa,0x1b0));const _0x5ab4=function(_0x4aebc6,_0xe48eae){_0x4aebc6=_0x4aebc6-0x0;let _0x8d2271=_0x52fa[_0x4aebc6];return _0x8d2271;};import _0x5aba09 from'@ckeditor/ckeditor5-core/src/plugin';import _0x3c6187 from'./comments/commentsediting';import _0x35da51 from'./comments/addcommentthreadcommand';export default class J extends _0x5aba09{constructor(_0x4541cb){super(_0x4541cb),this[_0x5ab4('0x11')](_0x5ab4('0x3'),null),this['on'](_0x5ab4('0x5'),(_0x44818f,_0x127e8b,_0x5a7ccb)=>{_0x5a7ccb?this['Mt']():this['qt']();});}static get[_0x5ab4('0x12')](){return'CommentsOnly';}static get['requires'](){return[_0x3c6187];}[_0x5ab4('0x1')](){null===this[_0x5ab4('0x3')]&&(this[_0x5ab4('0x3')]=!!this['editor'][_0x5ab4('0x10')]['get'](_0x5ab4('0x13')));}['Mt'](){for(const _0x256f74 of this[_0x5ab4('0x0')][_0x5ab4('0x4')][_0x5ab4('0x4')]())_0x256f74['constructor']!==_0x35da51&&_0x256f74['forceDisabled']('commentsOnlyMode');const _0x437c56=this[_0x5ab4('0x0')][_0x5ab4('0xf')][_0x5ab4('0xc')][_0x5ab4('0x9')];this[_0x5ab4('0xa')](_0x437c56,_0x5ab4('0xb'),_0x230ab4=>_0x230ab4[_0x5ab4('0xd')](),{'priority':'highest'}),this[_0x5ab4('0xa')](_0x437c56,_0x5ab4('0x2'),_0xd4d9b0=>_0xd4d9b0['stop'](),{'priority':_0x5ab4('0x7')}),this[_0x5ab4('0xa')](_0x437c56,_0x5ab4('0x8'),_0x242038=>_0x242038[_0x5ab4('0xd')](),{'priority':_0x5ab4('0x7')});}['qt'](){for(const _0x26adc6 of this[_0x5ab4('0x0')]['commands']['commands']())_0x26adc6['constructor']!==_0x35da51&&_0x26adc6['clearForceDisabled'](_0x5ab4('0xe'));this[_0x5ab4('0x6')](this[_0x5ab4('0x0')][_0x5ab4('0xf')][_0x5ab4('0xc')][_0x5ab4('0x9')]);}} | ||
import _0x2fb89d from'@ckeditor/ckeditor5-core/src/plugin';import _0x472b6b from'./comments/commentsediting';export default class J extends _0x2fb89d{static get['pluginName'](){return'CommentsOnly';}static get['requires'](){return[_0x472b6b];}constructor(_0x2c5b7d){super(_0x2c5b7d),this['set']('isEnabled',null),this['on']('change:isEnabled',(_0x1cb951,_0x2cce95,_0x44ec23)=>{_0x44ec23?this['Ot']():this['qt']();}),this['Nt']=new Set(['addCommentThread','selectAll']);}['afterInit'](){null===this['isEnabled']&&(this['isEnabled']=!!this['editor']['config']['get']('commentsOnly'));}['Ot'](){for(const [_0x534738,_0x5eabd4]of this['editor']['commands'])this['Nt']['has'](_0x534738)||_0x5eabd4['forceDisabled']('commentsOnlyMode');const _0x5dba55=this['editor']['editing']['view']['document'];this['listenTo'](_0x5dba55,'cut',_0x3c1b30=>_0x3c1b30['stop'](),{'priority':'highest'}),this['listenTo'](_0x5dba55,'clipboardInput',_0x59271e=>_0x59271e['stop'](),{'priority':'highest'}),this['listenTo'](_0x5dba55,'delete',_0x543cb1=>_0x543cb1['stop'](),{'priority':'highest'});}['qt'](){for(const [_0x1e139a,_0x5a8e6f]of this['editor']['commands'])this['Nt']['has'](_0x1e139a)||_0x5a8e6f['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x4418=['type','disconnect','attributeName','observe','attributes','class'];(function(_0x145e20,_0x2a4135){const _0x4ef4cd=function(_0x3abbe5){while(--_0x3abbe5){_0x145e20['push'](_0x145e20['shift']());}};_0x4ef4cd(++_0x2a4135);}(_0x4418,0xba));const _0x5b9d=function(_0x145e20,_0x2a4135){_0x145e20=_0x145e20-0x0;let _0x4ef4cd=_0x4418[_0x145e20];return _0x4ef4cd;};import{throttle as _0x3c36a0}from'lodash-es';export default function R(_0x59aad2){const _0x4f075f=_0x3c36a0(_0x59aad2,0x1e),_0x5f4d83=new MutationObserver(_0x34d2a9=>{for(const _0x1afc36 of _0x34d2a9)(_0x5b9d('0x4')==_0x1afc36['type']&&_0x5b9d('0x5')==_0x1afc36[_0x5b9d('0x2')]||'childList'==_0x1afc36[_0x5b9d('0x0')])&&_0x4f075f();});return{'attach'(_0x39faa7){_0x5f4d83[_0x5b9d('0x3')](_0x39faa7,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x5f4d83[_0x5b9d('0x1')](),_0x4f075f['cancel']();}};} | ||
import{throttle as _0x57615b}from'lodash-es';export default function H(_0x2386d5){const _0x452e8b=_0x57615b(_0x2386d5,0x1e),_0x44ae6f=new MutationObserver(_0x420d2=>{for(const _0x2df538 of _0x420d2)('attributes'==_0x2df538['type']&&'class'==_0x2df538['attributeName']||'childList'==_0x2df538['type'])&&_0x452e8b();});return{'attach'(_0x19e073){_0x44ae6f['observe'](_0x19e073,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x44ae6f['disconnect'](),_0x452e8b['cancel']();}};} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x47ed=['[Last]\x20dddd\x20hh:mmA','function','invalid-date-time-format:\x20Date\x20format\x20must\x20be\x20a\x20function.','[Today]\x20hh:mmA','[Yesterday]\x20hh:mmA','dateTimeFormat'];(function(_0xf9ef7a,_0x14c4f9){const _0x3e5b40=function(_0x45e71a){while(--_0x45e71a){_0xf9ef7a['push'](_0xf9ef7a['shift']());}};_0x3e5b40(++_0x14c4f9);}(_0x47ed,0x11c));const _0x5ade=function(_0xf9ef7a,_0x14c4f9){_0xf9ef7a=_0xf9ef7a-0x0;let _0x3e5b40=_0x47ed[_0xf9ef7a];return _0x3e5b40;};import _0x53c667 from'date-fns/format';import _0x3c1f77 from'date-fns/difference_in_calendar_days';import _0x485610 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function Lt(_0x5ca42a={}){if(void 0x0!==_0x5ca42a[_0x5ade('0x3')]&&_0x5ade('0x5')!=typeof _0x5ca42a[_0x5ade('0x3')])throw new _0x485610(_0x5ade('0x0'));return _0xbc9717=>{const _0x587896=new Date(),_0x3837e1=_0x3c1f77(_0x587896,_0xbc9717);return _0x5ca42a['dateTimeFormat']?_0x5ca42a[_0x5ade('0x3')](_0xbc9717):_0x53c667(_0xbc9717,0x0===_0x3837e1?_0x5ade('0x1'):0x1===_0x3837e1?_0x5ade('0x2'):_0x3837e1<0x7?_0x5ade('0x4'):'MM-DD-YYYY\x20hh:mmA');};} | ||
import Yt from'date-fns/format';import Lt from'date-fns/difference_in_calendar_days';import _0x1e042d from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function jt(_0x5763a4={}){if(void 0x0!==_0x5763a4['dateTimeFormat']&&'function'!=typeof _0x5763a4['dateTimeFormat'])throw new _0x1e042d('invalid-date-time-format:\x20Date\x20format\x20must\x20be\x20a\x20function.');return _0x19425e=>{const _0x2de793=new Date(),_0xd2390=Lt(_0x2de793,_0x19425e);return _0x5763a4['dateTimeFormat']?_0x5763a4['dateTimeFormat'](_0x19425e):Yt(_0x19425e,0x0===_0xd2390?'[Today]\x20hh:mmA':0x1===_0xd2390?'[Yesterday]\x20hh:mmA':_0xd2390<0x7?'[Last]\x20dddd\x20hh:mmA':'MM-DD-YYYY\x20hh:mmA');};} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x412b=['domConverter','values','name','mapper','view','mapViewToDom','markerNameToElements'];(function(_0x42f294,_0x467841){const _0x193bbd=function(_0x1c70c6){while(--_0x1c70c6){_0x42f294['push'](_0x42f294['shift']());}};_0x193bbd(++_0x467841);}(_0x412b,0x97));const _0x1272=function(_0x42f294,_0x467841){_0x42f294=_0x42f294-0x0;let _0x193bbd=_0x412b[_0x42f294];return _0x193bbd;};import _0x361868 from'@ckeditor/ckeditor5-utils/src/first';export default function L(_0x5a4b79,_0x3f9d6b){const _0x35eb88=_0x5a4b79[_0x1272('0x6')][_0x1272('0x2')](_0x3f9d6b[_0x1272('0x5')]),_0x2d1c50=_0x361868(_0x35eb88[_0x1272('0x4')]());return _0x5a4b79[_0x1272('0x0')][_0x1272('0x3')][_0x1272('0x1')](_0x2d1c50);} | ||
import qt from'@ckeditor/ckeditor5-utils/src/first';export default function R(_0x463d74,_0x1e3548){const _0x7f982=_0x463d74['mapper']['markerNameToElements'](_0x1e3548['name']),_0x62a944=qt(_0x7f982['values']());return _0x463d74['view']['domConverter']['mapViewToDom'](_0x62a944);} |
@@ -23,2 +23,2 @@ /* | ||
*/ | ||
const _0x4349=['startsWith','indexOf','match','length','join','slice','replace','push','pop','...'];(function(_0x233afd,_0x206bb0){const _0x1211fa=function(_0x53096e){while(--_0x53096e){_0x233afd['push'](_0x233afd['shift']());}};_0x1211fa(++_0x206bb0);}(_0x4349,0x1e0));const _0xc5d1=function(_0x233afd,_0x206bb0){_0x233afd=_0x233afd-0x0;let _0x1211fa=_0x4349[_0x233afd];return _0x1211fa;};export default function ht(_0x48802d,{limit:_0x10ec8b,suffix:_0xe6f1f3=_0xc5d1('0x9')}){const _0x4e1735=[];let _0x38a6d4=0x0;const _0x40e332=_0x48802d[_0xc5d1('0x6')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0xc5d1('0x6')](/^\n/g,'')[_0xc5d1('0x6')](/\n$/g,'')['split']('\x0a');for(let _0x388a0e=0x0;_0x388a0e<_0x40e332['length'];_0x388a0e++){let _0x35b4e9=_0x40e332[_0x388a0e];const _0x58fc90=nn(_0x35b4e9);if(_0x35b4e9[_0xc5d1('0x0')]('<')){if(_0x38a6d4>=_0x10ec8b){const _0x2f02c4=_0x35b4e9[_0xc5d1('0x2')](/[a-zA-Z]+/)[0x0];_0x35b4e9[_0xc5d1('0x0')]('</')?(_0x4e1735[_0xc5d1('0x3')]&&(_0x35b4e9=''),_0x4e1735[_0xc5d1('0x8')]()):(_0x4e1735[_0xc5d1('0x7')](_0x2f02c4),_0x35b4e9='');}}else if(_0x38a6d4>=_0x10ec8b)_0x35b4e9='';else if(_0x38a6d4+_0x58fc90[_0xc5d1('0x3')]>=_0x10ec8b){let _0x4b9605=_0x10ec8b-_0x38a6d4;if('\x20'===_0x58fc90[_0x4b9605-0x1])_0x4b9605--;else{const _0x389af2=_0x58fc90['slice'](_0x4b9605)[_0xc5d1('0x1')]('\x20');-0x1!==_0x389af2?_0x4b9605+=_0x389af2:_0x4b9605=_0x35b4e9[_0xc5d1('0x3')];}_0x35b4e9=_0x58fc90[_0xc5d1('0x5')](0x0,_0x4b9605)['join']('')+_0xe6f1f3,_0x38a6d4=_0x10ec8b;}else _0x38a6d4+=_0x58fc90[_0xc5d1('0x3')];_0x40e332[_0x388a0e]=_0x35b4e9;}return _0x40e332[_0xc5d1('0x4')]('\x0a')[_0xc5d1('0x6')](/\n/g,'');}function nn(_0x860527){const _0x1da144=[];for(let _0x1fa88c=0x0;_0x1fa88c<_0x860527['length'];_0x1fa88c++){const _0x29f45b=_0x860527['substring'](_0x1fa88c)['match'](/^&[a-z0-9#]+;/);if(_0x29f45b){const _0x267c24=_0x29f45b[0x0];_0x1da144[_0xc5d1('0x7')](_0x267c24),_0x1fa88c+=_0x267c24[_0xc5d1('0x3')]-0x1;}else _0x1da144[_0xc5d1('0x7')](_0x860527[_0x1fa88c]);}return _0x1da144;} | ||
export default function bt(_0x3c4f89,{limit:_0x41980c,suffix:_0x376355='...'}){const _0x55ec70=[];let _0x35275b=0x0;const _0x18dfa4=_0x3c4f89['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x58d61b=0x0;_0x58d61b<_0x18dfa4['length'];_0x58d61b++){let _0x493d4c=_0x18dfa4[_0x58d61b];const _0x45171d=nn(_0x493d4c);if(_0x493d4c['startsWith']('<')){if(_0x35275b>=_0x41980c){const _0x326db4=_0x493d4c['match'](/[a-zA-Z]+/)[0x0];_0x493d4c['startsWith']('</')?(_0x55ec70['length']&&(_0x493d4c=''),_0x55ec70['pop']()):(_0x55ec70['push'](_0x326db4),_0x493d4c='');}}else if(_0x35275b>=_0x41980c)_0x493d4c='';else if(_0x35275b+_0x45171d['length']>=_0x41980c){let _0x5882c5=_0x41980c-_0x35275b;if('\x20'===_0x45171d[_0x5882c5-0x1])_0x5882c5--;else{const _0x68779b=_0x45171d['slice'](_0x5882c5)['indexOf']('\x20');-0x1!==_0x68779b?_0x5882c5+=_0x68779b:_0x5882c5=_0x493d4c['length'];}_0x493d4c=_0x45171d['slice'](0x0,_0x5882c5)['join']('')+_0x376355,_0x35275b=_0x41980c;}else _0x35275b+=_0x45171d['length'];_0x18dfa4[_0x58d61b]=_0x493d4c;}return _0x18dfa4['join']('\x0a')['replace'](/\n/g,'');}function nn(_0x1c1435){const _0x15f16c=[];for(let _0x2d24c7=0x0;_0x2d24c7<_0x1c1435['length'];_0x2d24c7++){const _0x225282=_0x1c1435['substring'](_0x2d24c7)['match'](/^&[a-z0-9#]+;/);if(_0x225282){const _0xeb6dbb=_0x225282[0x0];_0x15f16c['push'](_0xeb6dbb),_0x2d24c7+=_0xeb6dbb['length']-0x1;}else _0x15f16c['push'](_0x1c1435[_0x2d24c7]);}return _0x15f16c;} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
282810
55
1423
+ Added@ckeditor/ckeditor5-autoformat@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-basic-styles@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-clipboard@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-collaboration-core@19.0.2(transitive)
+ Added@ckeditor/ckeditor5-core@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-engine@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-enter@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-essentials@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-list@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-paragraph@19.1.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-typing@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-ui@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-undo@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-utils@19.0.2(transitive)
- Removed@ckeditor/ckeditor5-autoformat@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-basic-styles@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-collaboration-core@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-enter@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-essentials@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-list@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-typing@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-undo@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@18.0.0(transitive)