@ckeditor/ckeditor5-real-time-collaboration 47.4.0-alpha.0 → 47.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x33bc(){const _0x34d7ae=['_registeredSessions','register','2036637yrfZOZ','add','Sessions','defineMe','allConnectedUsers','4328555snyMAO','values','state','_handleSessionAdd','set','sessionAdd:','600RUdisl','14685250wdoXUO','mySessionId','assign','_createUser','isOfficialPlugin','channelSessions','has','sessions-unregister-not-exist','fire','remove','_users','context','507660eWRwyW','init','channelConnectedUsers','requires','stopListening','orderNumber','2NmiBxF','509011jlVMZn','connection','change:state','clear','role','isPremiumPlugin','connected','hiddenInPresenceList','956106ZUKmPi','plugins','addUser','6957QHzvsf','_uniqueUsersCount','getUser','forEach','get','isMe','getUserSessions','listenTo','delete','unregister','sessions-register-already-registered','getUserBySessionId','pluginName','getUserRole','user','5nPodrR','_handleSessionRemove','sessionId','11vgBhsv','size'];_0x33bc=function(){return _0x34d7ae;};return _0x33bc();}const _0xa19923=_0x3604;(function(_0x3c5842,_0x549063){const _0xed99f6=_0x3604,_0xb3d54d=_0x3c5842();while(!![]){try{const _0x321774=-parseInt(_0xed99f6(0x15b))/0x1*(-parseInt(_0xed99f6(0x15a))/0x2)+-parseInt(_0xed99f6(0x13c))/0x3+-parseInt(_0xed99f6(0x154))/0x4+parseInt(_0xed99f6(0x175))/0x5*(-parseInt(_0xed99f6(0x163))/0x6)+-parseInt(_0xed99f6(0x141))/0x7+parseInt(_0xed99f6(0x147))/0x8*(parseInt(_0xed99f6(0x166))/0x9)+parseInt(_0xed99f6(0x148))/0xa*(parseInt(_0xed99f6(0x138))/0xb);if(_0x321774===_0x549063)break;else _0xb3d54d['push'](_0xb3d54d['shift']());}catch(_0x462a33){_0xb3d54d['push'](_0xb3d54d['shift']());}}}(_0x33bc,0x6e5a1));import{ContextPlugin as _0x47e28b}from'ckeditor5/src/core.js';import{Collection as _0x5415a6,CKEditorError as _0xec0fcd}from'ckeditor5/src/utils.js';function _0x3604(_0x22f27d,_0x2cbc0b){const _0x33bc78=_0x33bc();return _0x3604=function(_0x360404,_0x2d7ff2){_0x360404=_0x360404-0x137;let _0x587c26=_0x33bc78[_0x360404];return _0x587c26;},_0x3604(_0x22f27d,_0x2cbc0b);}import{WebSocketGateway as _0x19bbbf}from'./websocketgateway.js';import{Users as _0x2d2d9e}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x47e28b{[_0xa19923(0x14d)];[_0xa19923(0x156)];[_0xa19923(0x140)];[_0xa19923(0x13a)];[_0xa19923(0x167)];[_0xa19923(0x152)];static get[_0xa19923(0x172)](){const _0x4c1e90=_0xa19923;return _0x4c1e90(0x13e);}static get[_0xa19923(0x14c)](){return!0x0;}static get[_0xa19923(0x160)](){return!0x0;}static get[_0xa19923(0x157)](){return[_0x19bbbf,_0x2d2d9e];}constructor(_0xd027e9){const _0x2eb5d7=_0xa19923;super(_0xd027e9),this[_0x2eb5d7(0x14d)]=new Map(),this[_0x2eb5d7(0x156)]=new Map(),this[_0x2eb5d7(0x140)]=new _0x5415a6(),this[_0x2eb5d7(0x13a)]=new Map(),this[_0x2eb5d7(0x167)]=0x0,this[_0x2eb5d7(0x152)]=this[_0x2eb5d7(0x153)][_0x2eb5d7(0x164)][_0x2eb5d7(0x16a)](_0x2d2d9e);}[_0xa19923(0x155)](){const _0x387e42=_0xa19923,_0x14e9f4=this[_0x387e42(0x153)][_0x387e42(0x164)][_0x387e42(0x16a)](_0x19bbbf);this[_0x387e42(0x16d)](_0x14e9f4,_0x387e42(0x15d),(_0x293238,_0x56a5d6,_0x51863d)=>{const _0x3440de=_0x387e42;if(_0x3440de(0x161)!==_0x51863d)this[_0x3440de(0x14d)][_0x3440de(0x169)](_0x149aa5=>_0x149aa5[_0x3440de(0x15e)]()),this[_0x3440de(0x156)][_0x3440de(0x169)](_0x114b7c=>_0x114b7c[_0x3440de(0x15e)]()),this[_0x3440de(0x140)][_0x3440de(0x15e)]();else{for(const [_0x39b237,_0xa7fa8d]of this[_0x3440de(0x13a)])for(const _0x340125 of _0xa7fa8d)this[_0x3440de(0x144)](_0x39b237,_0x340125);}}),this[_0x387e42(0x14b)](_0x14e9f4[_0x387e42(0x15c)]['me'],!0x0);}[_0xa19923(0x13b)](_0x4a78a4,_0x577cc8){const _0x21428d=_0xa19923;if(this[_0x21428d(0x13a)][_0x21428d(0x14e)](_0x4a78a4))throw new _0xec0fcd(_0x21428d(0x170),null,{'channelId':_0x4a78a4});this[_0x21428d(0x13a)][_0x21428d(0x145)](_0x4a78a4,_0x577cc8),this[_0x21428d(0x14d)][_0x21428d(0x145)](_0x4a78a4,new _0x5415a6()),this[_0x21428d(0x156)][_0x21428d(0x145)](_0x4a78a4,new _0x5415a6()),this[_0x21428d(0x16d)](_0x577cc8,_0x21428d(0x13d),(_0x557ed0,_0x25245c)=>this[_0x21428d(0x144)](_0x4a78a4,_0x25245c)),this[_0x21428d(0x16d)](_0x577cc8,_0x21428d(0x151),(_0x12ae20,_0x16cd49)=>this[_0x21428d(0x176)](_0x4a78a4,_0x16cd49));for(const _0x3a13a2 of _0x577cc8)this[_0x21428d(0x144)](_0x4a78a4,_0x3a13a2);}[_0xa19923(0x16f)](_0x52a3fd){const _0x3868ba=_0xa19923;if(!this[_0x3868ba(0x13a)][_0x3868ba(0x14e)](_0x52a3fd))throw new _0xec0fcd(_0x3868ba(0x14f),null,{'channelId':_0x52a3fd});const _0x426d28=this[_0x3868ba(0x13a)][_0x3868ba(0x16a)](_0x52a3fd);this[_0x3868ba(0x158)](_0x426d28);for(const _0x4a29ca of _0x426d28)_0x3868ba(0x161)===this[_0x3868ba(0x153)][_0x3868ba(0x164)][_0x3868ba(0x16a)](_0x19bbbf)[_0x3868ba(0x143)]&&this[_0x3868ba(0x176)](_0x52a3fd,_0x4a29ca);this[_0x3868ba(0x13a)][_0x3868ba(0x16e)](_0x52a3fd),this[_0x3868ba(0x14d)][_0x3868ba(0x16e)](_0x52a3fd),this[_0x3868ba(0x156)][_0x3868ba(0x16e)](_0x52a3fd);}get[_0xa19923(0x149)](){const _0x740b46=_0xa19923;return this[_0x740b46(0x153)][_0x740b46(0x164)][_0x740b46(0x16a)](_0x19bbbf)[_0x740b46(0x15c)][_0x740b46(0x137)];}[_0xa19923(0x171)](_0x37650c){const _0xee72b8=_0xa19923;for(const _0x5ad50f of this[_0xee72b8(0x14d)][_0xee72b8(0x142)]())for(const _0x2c8ed3 of _0x5ad50f)if(_0x2c8ed3['id']===_0x37650c)return _0x2c8ed3[_0xee72b8(0x174)];}[_0xa19923(0x16c)](_0x5051d3,_0x3a09c3){const _0x31d1a6=_0xa19923,_0xbbf677=_0x3a09c3?[this[_0x31d1a6(0x14d)][_0x31d1a6(0x16a)](_0x3a09c3)]:this[_0x31d1a6(0x14d)][_0x31d1a6(0x142)](),_0x2ccf20=new Set();for(const _0x5e2886 of _0xbbf677)for(const _0x201377 of _0x5e2886)_0x201377[_0x31d1a6(0x174)]['id']===_0x5051d3['id']&&_0x2ccf20[_0x31d1a6(0x13d)](_0x201377['id']);return _0x2ccf20;}[_0xa19923(0x173)](_0x58e5b7){const _0x89059e=_0xa19923;for(const _0x2f6411 of this[_0x89059e(0x14d)][_0x89059e(0x142)]())for(const _0x4020a2 of _0x2f6411)if(_0x4020a2[_0x89059e(0x174)]===_0x58e5b7)return _0x4020a2[_0x89059e(0x15f)];}[_0xa19923(0x144)](_0x3d77f7,_0x51b29b){const _0x402d66=_0xa19923;if(_0x402d66(0x161)!==this[_0x402d66(0x153)][_0x402d66(0x164)][_0x402d66(0x16a)](_0x19bbbf)[_0x402d66(0x143)])return;const _0x905329=_0x51b29b[_0x402d66(0x174)],_0x31c371=this[_0x402d66(0x152)][_0x402d66(0x168)](_0x905329['id'])||this[_0x402d66(0x14b)](_0x905329),_0x3c505a=Object[_0x402d66(0x14a)]({},_0x51b29b,{'user':_0x31c371});if(this[_0x402d66(0x14d)][_0x402d66(0x16a)](_0x3d77f7)[_0x402d66(0x13d)](_0x3c505a),!_0x905329[_0x402d66(0x162)]){const _0x111dd8=this[_0x402d66(0x156)][_0x402d66(0x16a)](_0x3d77f7);_0x111dd8[_0x402d66(0x14e)](_0x31c371['id'])||_0x111dd8[_0x402d66(0x13d)](_0x31c371),this[_0x402d66(0x140)][_0x402d66(0x14e)](_0x31c371['id'])||_0x905329[_0x402d66(0x162)]||this[_0x402d66(0x140)][_0x402d66(0x13d)](_0x31c371,_0x31c371[_0x402d66(0x16b)]?0x0:void 0x0);}this[_0x402d66(0x150)](_0x402d66(0x146)+_0x3d77f7,{'channelId':_0x3d77f7,'session':_0x3c505a});}[_0xa19923(0x176)](_0x34a0fe,_0x295bef){const _0x12f61e=_0xa19923;if(_0x12f61e(0x161)!==this[_0x12f61e(0x153)][_0x12f61e(0x164)][_0x12f61e(0x16a)](_0x19bbbf)[_0x12f61e(0x143)])return;const _0x13416d=this[_0x12f61e(0x156)][_0x12f61e(0x16a)](_0x34a0fe),_0x5d881e=_0x295bef[_0x12f61e(0x174)];_0x5d881e['id']&&(this[_0x12f61e(0x14d)][_0x12f61e(0x16a)](_0x34a0fe)[_0x12f61e(0x151)](_0x295bef['id']),_0x13416d[_0x12f61e(0x14e)](_0x5d881e['id'])&&!this[_0x12f61e(0x16c)](_0x5d881e,_0x34a0fe)[_0x12f61e(0x139)]&&_0x13416d[_0x12f61e(0x151)](_0x5d881e['id']),this[_0x12f61e(0x140)][_0x12f61e(0x16a)](_0x5d881e['id'])&&!this[_0x12f61e(0x16c)](_0x5d881e)[_0x12f61e(0x139)]&&this[_0x12f61e(0x140)][_0x12f61e(0x151)](_0x5d881e['id']));}[_0xa19923(0x14b)](_0x3eca26,_0xb56d09){const _0x5b87a3=_0xa19923,_0x27ad4f=this[_0x5b87a3(0x152)][_0x5b87a3(0x165)](_0x3eca26);return _0xb56d09&&this[_0x5b87a3(0x152)][_0x5b87a3(0x13f)](_0x3eca26['id']),_0x27ad4f[_0x5b87a3(0x159)]=this[_0x5b87a3(0x167)]++,_0x27ad4f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1e7cf5=_0x6f7f;(function(_0x32c436,_0xf5de86){const _0x364885=_0x6f7f,_0x1fd280=_0x32c436();while(!![]){try{const _0x1bf9e3=parseInt(_0x364885(0x148))/0x1*(-parseInt(_0x364885(0x178))/0x2)+parseInt(_0x364885(0x1ac))/0x3*(parseInt(_0x364885(0x165))/0x4)+-parseInt(_0x364885(0x1bc))/0x5*(parseInt(_0x364885(0x1b4))/0x6)+-parseInt(_0x364885(0x1a8))/0x7+-parseInt(_0x364885(0x1a7))/0x8+parseInt(_0x364885(0x145))/0x9*(parseInt(_0x364885(0x191))/0xa)+parseInt(_0x364885(0x1aa))/0xb;if(_0x1bf9e3===_0xf5de86)break;else _0x1fd280['push'](_0x1fd280['shift']());}catch(_0x1cab77){_0x1fd280['push'](_0x1fd280['shift']());}}}(_0xef81,0xc6932));function _0xef81(){const _0x42ce2a=['removeClass','user:position','name','57010vxZaWP','fromRange','getUserBySessionId','add','nodeAfter','data-session-id','user:','getSelectionClass','editing','mouseleave','outerHTML','getAttribute','addEventListener','updateMarker','reconvertMarker','hasDomSelection','isCollapsed','user:range','type','getFirstRange','clear','setAttribute','12043704cFFhIM','9220582tqAMvo','user:position:','49273169wByxli','afterInit','39eKMYwg','root','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','UserMarkers','isLimit','view','$graveyard','change:range','1308egpXyX','set','keydown','ck-user__marker\x20','markerNameToElements','_domEmitter','marker','getStart','2745PZtwea','init','getContainedElement','createElement','removeMarker','markerName','remove','isInline','Escape','toRange','toDomElement','checkChild','createRange','delete','change','$text','plugins','document','getNearestSelectionRange','stopListening','textContent','522aSlYTx','hasContent','color','11WnRVqF','rootName','classList','mapper','render','detach','undo','innerHTML','setCustomProperty','userPositionMarker','oldRange','getPositions','isDocumentOperation','size','conversion','markerRange','pluginName','startsWith','_createdBatches','getCustomProperty','addMarker','parent','ck-user__marker-tooltip','isSimilar','getRange','start','createUIElement','user:range:','highest','85452UuzKyL','ck-user__selection','get','orderNumber','split','editor','for','markerToElement','spellcheck','element','isPremiumPlugin','schema','commands','applyOperation','deletionPosition','end','tableCell','createUserMarkerOperations','newRange','242186nbCjbo','model','ck-user__marker_hovered','listenTo','mySessionId','mouseenter','requires','has','selection','span','getMarkerClass','markerToHighlight','enqueueChange','isOfficialPlugin','isObject','contenteditable','batch','markers','update:user:range','editingDowncast','false','destroy'];_0xef81=function(){return _0x42ce2a;};return _0xef81();}import{Plugin as _0x436e1c}from'ckeditor5/src/core.js';function _0x6f7f(_0x1b15a4,_0x3b81cc){const _0xef81f7=_0xef81();return _0x6f7f=function(_0x6f7f5b,_0x41f4b0){_0x6f7f5b=_0x6f7f5b-0x145;let _0x5358f0=_0xef81f7[_0x6f7f5b];return _0x5358f0;},_0x6f7f(_0x1b15a4,_0x3b81cc);}import{global as _0x1708e6,DomEmitterMixin as _0x45e844}from'ckeditor5/src/utils.js';import{Sessions as _0x12392b}from'./sessions.js';import{ModelLiveRange as _0x57f31e}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x436e1c{[_0x1e7cf5(0x1b9)]=new(_0x45e844())();static get[_0x1e7cf5(0x17e)](){return[_0x12392b];}static get[_0x1e7cf5(0x158)](){const _0x92382b=_0x1e7cf5;return _0x92382b(0x1af);}static get[_0x1e7cf5(0x185)](){return!0x0;}static get[_0x1e7cf5(0x16f)](){return!0x0;}[_0x1e7cf5(0x1bd)](){const _0x31650e=_0x1e7cf5,_0x54f4bb=this[_0x31650e(0x16a)],_0x5221f1=_0x54f4bb[_0x31650e(0x1cc)][_0x31650e(0x167)](_0x12392b);_0x54f4bb[_0x31650e(0x156)][_0x31650e(0x16b)](_0x31650e(0x18b))[_0x31650e(0x16c)]({'model':_0x31650e(0x18f),'view':(_0x3b5263,{writer:_0x1f27ba})=>function(_0x3c46b6,_0x178c31,_0x2c73e0,_0x3435ad){const _0x4f9cbd=_0x31650e,_0x3e5643=_0x3c46b6[_0x4f9cbd(0x1c1)][_0x4f9cbd(0x169)](':')[0x2],_0x15e17a=_0x2c73e0[_0x4f9cbd(0x193)](_0x3e5643);if(!_0x15e17a||_0x3e5643===_0x2c73e0[_0x4f9cbd(0x17c)])return;if(!_0x3435ad[_0x4f9cbd(0x179)][_0x4f9cbd(0x170)][_0x4f9cbd(0x1c7)](_0x3c46b6[_0x4f9cbd(0x157)][_0x4f9cbd(0x161)],_0x4f9cbd(0x1cb)))return;const _0x17ac88={'class':_0x4f9cbd(0x1b7)+_0x15e17a[_0x4f9cbd(0x147)][_0x4f9cbd(0x182)](),'data-name':_0x15e17a[_0x4f9cbd(0x190)],'data-session-id':_0x3e5643},_0x39b811=_0x3435ad[_0x4f9cbd(0x179)][_0x4f9cbd(0x189)][_0x4f9cbd(0x167)](_0x3c46b6[_0x4f9cbd(0x1c1)]),_0x4df153=_0x39b811[_0x4f9cbd(0x1bb)](),_0x37a818=_0x4df153[_0x4f9cbd(0x195)],_0x5b214c=_0x3435ad[_0x4f9cbd(0x179)][_0x4f9cbd(0x170)];if(_0x37a818&&_0x5b214c[_0x4f9cbd(0x186)](_0x37a818)&&_0x5b214c[_0x4f9cbd(0x1c3)](_0x37a818)&&!_0x3435ad[_0x4f9cbd(0x179)][_0x4f9cbd(0x189)][_0x4f9cbd(0x167)](_0x4f9cbd(0x163)+_0x3e5643)[_0x4f9cbd(0x160)]()[_0x4f9cbd(0x1a1)])return;const _0x55b061=_0x4df153[_0x4f9cbd(0x15d)];return _0x3435ad[_0x4f9cbd(0x179)][_0x4f9cbd(0x170)][_0x4f9cbd(0x1b0)](_0x55b061)&&!_0x3435ad[_0x4f9cbd(0x179)][_0x4f9cbd(0x146)](_0x55b061)&&(_0x17ac88[_0x4f9cbd(0x187)]=!0x1),function(_0xcd6794,_0x11f921,_0x497e96){const _0x2ea5cf=_0x4f9cbd,_0x385727=_0xcd6794[_0x2ea5cf(0x162)](_0x2ea5cf(0x181),_0x11f921);return _0xcd6794[_0x2ea5cf(0x150)](_0x2ea5cf(0x151),!0x0,_0x385727),_0x385727[_0x2ea5cf(0x14c)]=function(_0x3afe4a){const _0x1b17ae=_0x2ea5cf,_0x45d4b2=this[_0x1b17ae(0x1c6)](_0x3afe4a),_0x4362cb=document[_0x1b17ae(0x1bf)](_0x1b17ae(0x181));return _0x4362cb[_0x1b17ae(0x14a)][_0x1b17ae(0x194)](_0x1b17ae(0x15e)),_0x4362cb[_0x1b17ae(0x1a6)](_0x1b17ae(0x187),_0x1b17ae(0x18c)),_0x4362cb[_0x1b17ae(0x1a6)](_0x1b17ae(0x16d),_0x1b17ae(0x18c)),_0x4362cb[_0x1b17ae(0x1d0)]=_0x497e96[_0x1b17ae(0x190)],_0x45d4b2[_0x1b17ae(0x14f)]=_0x1b17ae(0x1ae)+_0x4362cb[_0x1b17ae(0x19b)]+'',_0x45d4b2[_0x1b17ae(0x19d)](_0x1b17ae(0x17d),()=>{const _0x6f042=_0x1b17ae;_0x45d4b2[_0x6f042(0x14a)][_0x6f042(0x194)](_0x6f042(0x17a));}),_0x45d4b2[_0x1b17ae(0x19d)](_0x1b17ae(0x19a),()=>{const _0x5d2e87=_0x1b17ae;_0x45d4b2[_0x5d2e87(0x14a)][_0x5d2e87(0x1c2)](_0x5d2e87(0x17a));}),_0x45d4b2;},_0x385727[_0x2ea5cf(0x15f)]=function(_0x43d33f){const _0x1935e3=_0x2ea5cf;return!(!this[_0x1935e3(0x15b)](_0x1935e3(0x151))||!_0x43d33f[_0x1935e3(0x15b)](_0x1935e3(0x151))||this[_0x1935e3(0x19c)](_0x1935e3(0x196))!=_0x43d33f[_0x1935e3(0x19c)](_0x1935e3(0x196)));},_0x385727;}(_0x178c31,_0x17ac88,_0x15e17a);}(_0x3b5263,_0x1f27ba,_0x5221f1,_0x54f4bb)}),_0x54f4bb[_0x31650e(0x156)][_0x31650e(0x16b)](_0x31650e(0x18b))[_0x31650e(0x183)]({'model':_0x31650e(0x1a2),'view':_0x4d37ee=>function(_0x4d8502,_0x596198){const _0x5d2160=_0x31650e,_0x241130=_0x4d8502[_0x5d2160(0x1c1)][_0x5d2160(0x169)](':')[0x2];if(_0x241130===_0x596198[_0x5d2160(0x17c)])return null;const _0xd6b8bc=_0x596198[_0x5d2160(0x193)](_0x241130);if(!_0xd6b8bc)return{'id':_0x241130,'classes':[]};return{'id':_0x241130,'classes':[_0x5d2160(0x166),_0xd6b8bc[_0x5d2160(0x147)][_0x5d2160(0x198)]()],'attributes':{'data-session-id':_0x241130},'priority':0x7d0+_0xd6b8bc[_0x5d2160(0x168)]};}(_0x4d37ee,_0x5221f1)}),function(_0x50c4d1){const _0x582caf=_0x31650e,_0x176abc=_0x50c4d1[_0x582caf(0x179)],_0x526b34=new Map(),_0x5123e8=_0x50c4d1[_0x582caf(0x1cc)][_0x582caf(0x167)](_0x12392b);_0x176abc[_0x582caf(0x189)]['on'](_0x582caf(0x18a),(_0x1230d3,_0x657e27,_0x1cfd74,_0x59ee45)=>{const _0x546653=_0x582caf;if(!_0x59ee45&&_0x526b34[_0x546653(0x167)](_0x657e27[_0x546653(0x190)]))return _0x526b34[_0x546653(0x167)](_0x657e27[_0x546653(0x190)])[_0x546653(0x14d)](),void _0x526b34[_0x546653(0x1c9)](_0x657e27[_0x546653(0x190)]);const _0x525503=_0x657e27[_0x546653(0x190)][_0x546653(0x169)](':')[0x2];if(_0x525503===_0x5123e8[_0x546653(0x17c)])return;const _0x10b1d9=_0x546653(0x1a9)+_0x525503;_0x176abc[_0x546653(0x189)][_0x546653(0x17f)](_0x10b1d9)&&_0x50c4d1[_0x546653(0x199)][_0x546653(0x19f)](_0x10b1d9),_0x657e27['on'](_0x546653(0x1b3),(_0x54a0ca,_0x43ae93,_0x157c37)=>{const _0x18afd2=_0x546653;if(_0x18afd2(0x1b2)!=_0x43ae93[_0x18afd2(0x1ad)][_0x18afd2(0x149)]&&_0x18afd2(0x1b2)==_0x657e27[_0x18afd2(0x160)]()[_0x18afd2(0x1ad)][_0x18afd2(0x149)]&&!_0x526b34[_0x18afd2(0x17f)](_0x657e27[_0x18afd2(0x190)])){const _0x5e8689=_0x176abc[_0x18afd2(0x170)][_0x18afd2(0x1ce)](_0x157c37[_0x18afd2(0x173)]);if(_0x5e8689){const _0x2056f4=_0x57f31e[_0x18afd2(0x192)](_0x5e8689);_0x526b34[_0x18afd2(0x1b5)](_0x657e27[_0x18afd2(0x190)],_0x2056f4),_0x2056f4['on'](_0x18afd2(0x1b3),(_0x346519,_0x53c102,_0x49b99c)=>{const _0x4b07bc=_0x18afd2;if(_0x4b07bc(0x1b2)==_0x2056f4[_0x4b07bc(0x1ad)][_0x4b07bc(0x149)]){const _0x3c70ca=_0x176abc[_0x4b07bc(0x170)][_0x4b07bc(0x1ce)](_0x49b99c[_0x4b07bc(0x173)]);_0x3c70ca?(_0x2056f4[_0x4b07bc(0x161)]=_0x3c70ca[_0x4b07bc(0x161)],_0x2056f4[_0x4b07bc(0x174)]=_0x3c70ca[_0x4b07bc(0x174)]):(_0x526b34[_0x4b07bc(0x1c9)](_0x657e27[_0x4b07bc(0x190)]),_0x2056f4[_0x4b07bc(0x14d)]());}});}}});}),_0x176abc[_0x582caf(0x1cd)]['on'](_0x582caf(0x1ca),()=>{const _0x5b4ba8=_0x582caf;_0x526b34[_0x5b4ba8(0x155)]>0x0&&_0x176abc[_0x5b4ba8(0x184)]({'isUndoable':!0x1},_0x141c29=>{const _0xa84190=_0x5b4ba8;for(const [_0x59c22f,_0x32ba7b]of _0x526b34)_0xa84190(0x1b2)==_0x176abc[_0xa84190(0x189)][_0xa84190(0x167)](_0x59c22f)[_0xa84190(0x160)]()[_0xa84190(0x1ad)][_0xa84190(0x149)]&&(Z(_0x59c22f[_0xa84190(0x169)](':')[0x2],_0x32ba7b[_0xa84190(0x1c5)](),_0x176abc,_0x141c29),_0x32ba7b[_0xa84190(0x14d)]());_0x526b34[_0xa84190(0x1a5)]();});});}(_0x54f4bb),this[_0x31650e(0x1b9)][_0x31650e(0x17b)](_0x1708e6[_0x31650e(0x1cd)],_0x31650e(0x1b6),(_0x259134,{key:_0x59dd48})=>{const _0x5c3915=_0x31650e;_0x5c3915(0x1c4)===_0x59dd48&&function(_0x43d1cf){const _0x46ac2c=_0x5c3915;_0x43d1cf[_0x46ac2c(0x199)][_0x46ac2c(0x1b1)][_0x46ac2c(0x1ca)](_0x55baa1=>{const _0x87e7eb=_0x46ac2c;for(const _0x3eab69 of _0x43d1cf[_0x87e7eb(0x179)][_0x87e7eb(0x189)]){if(!_0x3eab69[_0x87e7eb(0x190)][_0x87e7eb(0x159)](_0x87e7eb(0x18f)))continue;const _0x2ccafe=_0x43d1cf[_0x87e7eb(0x199)][_0x87e7eb(0x14b)][_0x87e7eb(0x1b8)](_0x3eab69[_0x87e7eb(0x190)]);if(_0x2ccafe){for(const _0x5383a3 of _0x2ccafe)_0x55baa1[_0x87e7eb(0x18e)](_0x87e7eb(0x17a),_0x5383a3);}}});}(_0x54f4bb);},{'useCapture':!0x0});}[_0x1e7cf5(0x1ab)](){const _0x1326a7=_0x1e7cf5,_0x4c5df8=this[_0x1326a7(0x16a)],_0x5eb3a=_0x4c5df8[_0x1326a7(0x171)][_0x1326a7(0x167)](_0x1326a7(0x14e));_0x5eb3a&&_0x4c5df8[_0x1326a7(0x179)]['on'](_0x1326a7(0x172),(_0x53b4c1,_0x346736)=>{const _0x5b5af6=_0x1326a7,_0x3c0fbe=_0x346736[0x0];if(!_0x3c0fbe[_0x5b5af6(0x154)])return;if(_0x5b5af6(0x1ba)!=_0x3c0fbe[_0x5b5af6(0x1a3)]||!_0x3c0fbe[_0x5b5af6(0x190)][_0x5b5af6(0x159)](_0x5b5af6(0x197)))return;const _0x2f2621=_0x3c0fbe[_0x5b5af6(0x188)];_0x5eb3a[_0x5b5af6(0x15a)][_0x5b5af6(0x17f)](_0x2f2621)&&(_0x3c0fbe[_0x5b5af6(0x177)]=_0x3c0fbe[_0x5b5af6(0x152)]?_0x4c5df8[_0x5b5af6(0x179)][_0x5b5af6(0x1c8)](_0x3c0fbe[_0x5b5af6(0x152)][_0x5b5af6(0x161)],_0x3c0fbe[_0x5b5af6(0x152)][_0x5b5af6(0x174)]):null);},{'priority':_0x1326a7(0x164)});}[_0x1e7cf5(0x18d)](){const _0x48bbea=_0x1e7cf5;return this[_0x48bbea(0x1b9)][_0x48bbea(0x1cf)](),super[_0x48bbea(0x18d)]();}[_0x1e7cf5(0x176)](){const _0x9e513b=_0x1e7cf5,_0x331c19=this[_0x9e513b(0x16a)],_0x4d8d4d=_0x331c19[_0x9e513b(0x179)][_0x9e513b(0x1cd)],_0x505445=_0x331c19[_0x9e513b(0x1cc)][_0x9e513b(0x167)](_0x12392b);_0x331c19[_0x9e513b(0x179)][_0x9e513b(0x184)]({'isUndoable':!0x1},_0xae996b=>{const _0x599216=_0x9e513b,_0x57591a=_0x599216(0x163)+_0x505445[_0x599216(0x17c)],_0x4b4093=_0x599216(0x1a9)+_0x505445[_0x599216(0x17c)],_0x2a651c=_0x331c19[_0x599216(0x179)][_0x599216(0x189)][_0x599216(0x17f)](_0x57591a);_0x331c19[_0x599216(0x199)][_0x599216(0x1b1)][_0x599216(0x1a0)]?Z(_0x505445[_0x599216(0x17c)],_0x4d8d4d[_0x599216(0x180)][_0x599216(0x1a4)](),_0x331c19[_0x599216(0x179)],_0xae996b):_0x2a651c&&(_0xae996b[_0x599216(0x1c0)](_0x57591a),_0xae996b[_0x599216(0x1c0)](_0x4b4093));});}}function Z(_0x3ac909,_0xb40bbd,_0xf6d8e0,_0xe77a0a){const _0x2c9d8c=_0x1e7cf5,_0x561cf9=_0x2c9d8c(0x163)+_0x3ac909,_0x5e9134=_0x2c9d8c(0x1a9)+_0x3ac909,_0xab984b=_0xb40bbd[_0x2c9d8c(0x1be)]();let _0x4edc30=_0xb40bbd[_0x2c9d8c(0x161)];if(_0xab984b&&_0xab984b['is'](_0x2c9d8c(0x16e),_0x2c9d8c(0x175))){const _0x18d0c9=function(_0x303802,_0x18a035){const _0x145144=_0x2c9d8c;for(const _0xc935cb of _0x303802[_0x145144(0x153)]())if(_0x18a035[_0x145144(0x170)][_0x145144(0x1c7)](_0xc935cb,_0x145144(0x1cb)))return _0xc935cb;}(_0xb40bbd,_0xf6d8e0);_0x18d0c9&&(_0x4edc30=_0x18d0c9,_0xb40bbd=_0xe77a0a[_0x2c9d8c(0x1c8)](_0x4edc30));}const _0x334795=_0xe77a0a[_0x2c9d8c(0x1c8)](_0x4edc30);_0xf6d8e0[_0x2c9d8c(0x189)][_0x2c9d8c(0x17f)](_0x561cf9)?(_0xe77a0a[_0x2c9d8c(0x19e)](_0x561cf9,{'range':_0xb40bbd}),_0xe77a0a[_0x2c9d8c(0x19e)](_0x5e9134,{'range':_0x334795})):(_0xe77a0a[_0x2c9d8c(0x15c)](_0x561cf9,{'range':_0xb40bbd,'usingOperation':!0x0}),_0xe77a0a[_0x2c9d8c(0x15c)](_0x5e9134,{'range':_0x334795,'usingOperation':!0x0}));}
|
|
23
|
+
function _0x566a(){const _0x35e657=['133165jBJUtA','end','spellcheck','split','oldRange','commands','type','add','view','isLimit','getPositions','setAttribute','clear','toRange','start','user:position:','mouseenter','highest','color','root','startsWith','selection','editing','applyOperation','span','mouseleave','element','createUIElement','6257800qQXNNJ','markerRange','marker','markerNameToElements','afterInit','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','ck-user__marker\x20','contenteditable','getAttribute','has','requires','getFirstRange','detach','140OGEWBf','getNearestSelectionRange','set','schema','markerToHighlight','fromRange','size','stopListening','isDocumentOperation','tableCell','update:user:range','user:range','12075200pIyByH','user:position','init','$text','setCustomProperty','newRange','_domEmitter','user:','hasDomSelection','editor','isInline','ck-user__marker-tooltip','getSelectionClass','mySessionId','501BEThXZ','removeClass','outerHTML','data-session-id','createElement','change:range','addMarker','nodeAfter','hasContent','toDomElement','createUserMarkerOperations','parent','classList','mapper','addEventListener','undo','innerHTML','isSimilar','enqueueChange','editingDowncast','listenTo','pluginName','markerName','for','getUserBySessionId','name','markerToElement','removeMarker','131089PPPUux','model','isCollapsed','user:range:','ck-user__selection','checkChild','destroy','change','remove','batch','conversion','226cOBeUo','getContainedElement','Escape','rootName','6KsCCxV','getStart','reconvertMarker','updateMarker','deletionPosition','delete','document','false','userPositionMarker','_createdBatches','keydown','329972hYGVsM','textContent','1190196BWEAWv','getRange','isPremiumPlugin','ck-user__marker_hovered','$graveyard','markers','createRange','getCustomProperty','isObject','get','getMarkerClass','render','plugins','orderNumber','UserMarkers','isOfficialPlugin'];_0x566a=function(){return _0x35e657;};return _0x566a();}const _0x3378cf=_0x5349;(function(_0xb7f4cb,_0x223e6c){const _0x38e8dd=_0x5349,_0x2a8955=_0xb7f4cb();while(!![]){try{const _0xec9b1e=-parseInt(_0x38e8dd(0x186))/0x1+-parseInt(_0x38e8dd(0x177))/0x2*(parseInt(_0x38e8dd(0x150))/0x3)+parseInt(_0x38e8dd(0x1c1))/0x4*(-parseInt(_0x38e8dd(0x198))/0x5)+parseInt(_0x38e8dd(0x17b))/0x6*(parseInt(_0x38e8dd(0x16c))/0x7)+parseInt(_0x38e8dd(0x1b4))/0x8+-parseInt(_0x38e8dd(0x188))/0x9+parseInt(_0x38e8dd(0x142))/0xa;if(_0xec9b1e===_0x223e6c)break;else _0x2a8955['push'](_0x2a8955['shift']());}catch(_0x5bf891){_0x2a8955['push'](_0x2a8955['shift']());}}}(_0x566a,0x9151e));import{Plugin as _0x48f7b4}from'ckeditor5/src/core.js';import{global as _0x598bff,DomEmitterMixin as _0x39a044}from'ckeditor5/src/utils.js';import{Sessions as _0x5d3db9}from'./sessions.js';import{ModelLiveRange as _0x265157}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x48f7b4{[_0x3378cf(0x148)]=new(_0x39a044())();static get[_0x3378cf(0x1be)](){return[_0x5d3db9];}static get[_0x3378cf(0x165)](){const _0x6d7eba=_0x3378cf;return _0x6d7eba(0x196);}static get[_0x3378cf(0x197)](){return!0x0;}static get[_0x3378cf(0x18a)](){return!0x0;}[_0x3378cf(0x144)](){const _0x39fc8b=_0x3378cf,_0xdec034=this[_0x39fc8b(0x14b)],_0x1b1709=_0xdec034[_0x39fc8b(0x194)][_0x39fc8b(0x191)](_0x5d3db9);_0xdec034[_0x39fc8b(0x176)][_0x39fc8b(0x167)](_0x39fc8b(0x163))[_0x39fc8b(0x16a)]({'model':_0x39fc8b(0x143),'view':(_0x1beae6,{writer:_0x2c328e})=>function(_0x4cbf7f,_0x43fce7,_0x58992d,_0x510dfc){const _0x317f9d=_0x39fc8b,_0x2c3aff=_0x4cbf7f[_0x317f9d(0x166)][_0x317f9d(0x19b)](':')[0x2],_0x20a5c1=_0x58992d[_0x317f9d(0x168)](_0x2c3aff);if(!_0x20a5c1||_0x2c3aff===_0x58992d[_0x317f9d(0x14f)])return;if(!_0x510dfc[_0x317f9d(0x16d)][_0x317f9d(0x1c4)][_0x317f9d(0x171)](_0x4cbf7f[_0x317f9d(0x1b5)][_0x317f9d(0x1a6)],_0x317f9d(0x145)))return;const _0x5ec307={'class':_0x317f9d(0x1ba)+_0x20a5c1[_0x317f9d(0x1aa)][_0x317f9d(0x192)](),'data-name':_0x20a5c1[_0x317f9d(0x169)],'data-session-id':_0x2c3aff},_0x262e19=_0x510dfc[_0x317f9d(0x16d)][_0x317f9d(0x18d)][_0x317f9d(0x191)](_0x4cbf7f[_0x317f9d(0x166)]),_0x310ba1=_0x262e19[_0x317f9d(0x17c)](),_0x598cf2=_0x310ba1[_0x317f9d(0x157)],_0xd3fc2e=_0x510dfc[_0x317f9d(0x16d)][_0x317f9d(0x1c4)];if(_0x598cf2&&_0xd3fc2e[_0x317f9d(0x190)](_0x598cf2)&&_0xd3fc2e[_0x317f9d(0x14c)](_0x598cf2)&&!_0x510dfc[_0x317f9d(0x16d)][_0x317f9d(0x18d)][_0x317f9d(0x191)](_0x317f9d(0x16f)+_0x2c3aff)[_0x317f9d(0x189)]()[_0x317f9d(0x16e)])return;const _0xd82cc3=_0x310ba1[_0x317f9d(0x15b)];return _0x510dfc[_0x317f9d(0x16d)][_0x317f9d(0x1c4)][_0x317f9d(0x1a1)](_0xd82cc3)&&!_0x510dfc[_0x317f9d(0x16d)][_0x317f9d(0x158)](_0xd82cc3)&&(_0x5ec307[_0x317f9d(0x1bb)]=!0x1),function(_0x4dc305,_0x11ae56,_0x461ebe){const _0x50f760=_0x317f9d,_0x1b8dac=_0x4dc305[_0x50f760(0x1b3)](_0x50f760(0x1b0),_0x11ae56);return _0x4dc305[_0x50f760(0x146)](_0x50f760(0x183),!0x0,_0x1b8dac),_0x1b8dac[_0x50f760(0x193)]=function(_0x5d8bd6){const _0x41fd92=_0x50f760,_0x2a5139=this[_0x41fd92(0x159)](_0x5d8bd6),_0x46c458=document[_0x41fd92(0x154)](_0x41fd92(0x1b0));return _0x46c458[_0x41fd92(0x15c)][_0x41fd92(0x19f)](_0x41fd92(0x14d)),_0x46c458[_0x41fd92(0x1a3)](_0x41fd92(0x1bb),_0x41fd92(0x182)),_0x46c458[_0x41fd92(0x1a3)](_0x41fd92(0x19a),_0x41fd92(0x182)),_0x46c458[_0x41fd92(0x187)]=_0x461ebe[_0x41fd92(0x169)],_0x2a5139[_0x41fd92(0x160)]=_0x41fd92(0x1b9)+_0x46c458[_0x41fd92(0x152)]+'',_0x2a5139[_0x41fd92(0x15e)](_0x41fd92(0x1a8),()=>{const _0x3b0855=_0x41fd92;_0x2a5139[_0x3b0855(0x15c)][_0x3b0855(0x19f)](_0x3b0855(0x18b));}),_0x2a5139[_0x41fd92(0x15e)](_0x41fd92(0x1b1),()=>{const _0x4d076f=_0x41fd92;_0x2a5139[_0x4d076f(0x15c)][_0x4d076f(0x174)](_0x4d076f(0x18b));}),_0x2a5139;},_0x1b8dac[_0x50f760(0x161)]=function(_0xcb57cb){const _0x62fc26=_0x50f760;return!(!this[_0x62fc26(0x18f)](_0x62fc26(0x183))||!_0xcb57cb[_0x62fc26(0x18f)](_0x62fc26(0x183))||this[_0x62fc26(0x1bc)](_0x62fc26(0x153))!=_0xcb57cb[_0x62fc26(0x1bc)](_0x62fc26(0x153)));},_0x1b8dac;}(_0x43fce7,_0x5ec307,_0x20a5c1);}(_0x1beae6,_0x2c328e,_0x1b1709,_0xdec034)}),_0xdec034[_0x39fc8b(0x176)][_0x39fc8b(0x167)](_0x39fc8b(0x163))[_0x39fc8b(0x1c5)]({'model':_0x39fc8b(0x141),'view':_0x103f9f=>function(_0x767c89,_0xe12a2a){const _0x1e1303=_0x39fc8b,_0x1d14aa=_0x767c89[_0x1e1303(0x166)][_0x1e1303(0x19b)](':')[0x2];if(_0x1d14aa===_0xe12a2a[_0x1e1303(0x14f)])return null;const _0x5612c8=_0xe12a2a[_0x1e1303(0x168)](_0x1d14aa);if(!_0x5612c8)return{'id':_0x1d14aa,'classes':[]};return{'id':_0x1d14aa,'classes':[_0x1e1303(0x170),_0x5612c8[_0x1e1303(0x1aa)][_0x1e1303(0x14e)]()],'attributes':{'data-session-id':_0x1d14aa},'priority':0x7d0+_0x5612c8[_0x1e1303(0x195)]};}(_0x103f9f,_0x1b1709)}),function(_0x56676e){const _0x3b2772=_0x39fc8b,_0x4d870b=_0x56676e[_0x3b2772(0x16d)],_0xee289=new Map(),_0x4a1a70=_0x56676e[_0x3b2772(0x194)][_0x3b2772(0x191)](_0x5d3db9);_0x4d870b[_0x3b2772(0x18d)]['on'](_0x3b2772(0x140),(_0x13ca2e,_0x3e0df5,_0x84af3d,_0x4cd63c)=>{const _0x5a5d5a=_0x3b2772;if(!_0x4cd63c&&_0xee289[_0x5a5d5a(0x191)](_0x3e0df5[_0x5a5d5a(0x169)]))return _0xee289[_0x5a5d5a(0x191)](_0x3e0df5[_0x5a5d5a(0x169)])[_0x5a5d5a(0x1c0)](),void _0xee289[_0x5a5d5a(0x180)](_0x3e0df5[_0x5a5d5a(0x169)]);const _0x59144e=_0x3e0df5[_0x5a5d5a(0x169)][_0x5a5d5a(0x19b)](':')[0x2];if(_0x59144e===_0x4a1a70[_0x5a5d5a(0x14f)])return;const _0x26f1b5=_0x5a5d5a(0x1a7)+_0x59144e;_0x4d870b[_0x5a5d5a(0x18d)][_0x5a5d5a(0x1bd)](_0x26f1b5)&&_0x56676e[_0x5a5d5a(0x1ae)][_0x5a5d5a(0x17d)](_0x26f1b5),_0x3e0df5['on'](_0x5a5d5a(0x155),(_0x43981b,_0xc037b2,_0x57e98f)=>{const _0x33e5fd=_0x5a5d5a;if(_0x33e5fd(0x18c)!=_0xc037b2[_0x33e5fd(0x1ab)][_0x33e5fd(0x17a)]&&_0x33e5fd(0x18c)==_0x3e0df5[_0x33e5fd(0x189)]()[_0x33e5fd(0x1ab)][_0x33e5fd(0x17a)]&&!_0xee289[_0x33e5fd(0x1bd)](_0x3e0df5[_0x33e5fd(0x169)])){const _0x3e5ed4=_0x4d870b[_0x33e5fd(0x1c4)][_0x33e5fd(0x1c2)](_0x57e98f[_0x33e5fd(0x17f)]);if(_0x3e5ed4){const _0x367638=_0x265157[_0x33e5fd(0x13b)](_0x3e5ed4);_0xee289[_0x33e5fd(0x1c3)](_0x3e0df5[_0x33e5fd(0x169)],_0x367638),_0x367638['on'](_0x33e5fd(0x155),(_0x329093,_0x5e1aba,_0x1e6df7)=>{const _0x4ae966=_0x33e5fd;if(_0x4ae966(0x18c)==_0x367638[_0x4ae966(0x1ab)][_0x4ae966(0x17a)]){const _0x450f4f=_0x4d870b[_0x4ae966(0x1c4)][_0x4ae966(0x1c2)](_0x1e6df7[_0x4ae966(0x17f)]);_0x450f4f?(_0x367638[_0x4ae966(0x1a6)]=_0x450f4f[_0x4ae966(0x1a6)],_0x367638[_0x4ae966(0x199)]=_0x450f4f[_0x4ae966(0x199)]):(_0xee289[_0x4ae966(0x180)](_0x3e0df5[_0x4ae966(0x169)]),_0x367638[_0x4ae966(0x1c0)]());}});}}});}),_0x4d870b[_0x3b2772(0x181)]['on'](_0x3b2772(0x173),()=>{const _0x2c8a3a=_0x3b2772;_0xee289[_0x2c8a3a(0x13c)]>0x0&&_0x4d870b[_0x2c8a3a(0x162)]({'isUndoable':!0x1},_0x33d91f=>{const _0x1a3d63=_0x2c8a3a;for(const [_0x2faddd,_0x224a60]of _0xee289)_0x1a3d63(0x18c)==_0x4d870b[_0x1a3d63(0x18d)][_0x1a3d63(0x191)](_0x2faddd)[_0x1a3d63(0x189)]()[_0x1a3d63(0x1ab)][_0x1a3d63(0x17a)]&&(J(_0x2faddd[_0x1a3d63(0x19b)](':')[0x2],_0x224a60[_0x1a3d63(0x1a5)](),_0x4d870b,_0x33d91f),_0x224a60[_0x1a3d63(0x1c0)]());_0xee289[_0x1a3d63(0x1a4)]();});});}(_0xdec034),this[_0x39fc8b(0x148)][_0x39fc8b(0x164)](_0x598bff[_0x39fc8b(0x181)],_0x39fc8b(0x185),(_0x8cd608,{key:_0x4c26d7})=>{const _0x244dcf=_0x39fc8b;_0x244dcf(0x179)===_0x4c26d7&&function(_0x494d1d){const _0x5aa660=_0x244dcf;_0x494d1d[_0x5aa660(0x1ae)][_0x5aa660(0x1a0)][_0x5aa660(0x173)](_0x52c75d=>{const _0x1411b0=_0x5aa660;for(const _0xde0533 of _0x494d1d[_0x1411b0(0x16d)][_0x1411b0(0x18d)]){if(!_0xde0533[_0x1411b0(0x169)][_0x1411b0(0x1ac)](_0x1411b0(0x143)))continue;const _0x5a23a4=_0x494d1d[_0x1411b0(0x1ae)][_0x1411b0(0x15d)][_0x1411b0(0x1b7)](_0xde0533[_0x1411b0(0x169)]);if(_0x5a23a4){for(const _0x280f94 of _0x5a23a4)_0x52c75d[_0x1411b0(0x151)](_0x1411b0(0x18b),_0x280f94);}}});}(_0xdec034);},{'useCapture':!0x0});}[_0x3378cf(0x1b8)](){const _0x3766fa=_0x3378cf,_0x1a536f=this[_0x3766fa(0x14b)],_0x14a081=_0x1a536f[_0x3766fa(0x19d)][_0x3766fa(0x191)](_0x3766fa(0x15f));_0x14a081&&_0x1a536f[_0x3766fa(0x16d)]['on'](_0x3766fa(0x1af),(_0xf797ae,_0x224c30)=>{const _0x43163a=_0x3766fa,_0x30f572=_0x224c30[0x0];if(!_0x30f572[_0x43163a(0x13e)])return;if(_0x43163a(0x1b6)!=_0x30f572[_0x43163a(0x19e)]||!_0x30f572[_0x43163a(0x169)][_0x43163a(0x1ac)](_0x43163a(0x149)))return;const _0x329b8c=_0x30f572[_0x43163a(0x175)];_0x14a081[_0x43163a(0x184)][_0x43163a(0x1bd)](_0x329b8c)&&(_0x30f572[_0x43163a(0x147)]=_0x30f572[_0x43163a(0x19c)]?_0x1a536f[_0x43163a(0x16d)][_0x43163a(0x18e)](_0x30f572[_0x43163a(0x19c)][_0x43163a(0x1a6)],_0x30f572[_0x43163a(0x19c)][_0x43163a(0x199)]):null);},{'priority':_0x3766fa(0x1a9)});}[_0x3378cf(0x172)](){const _0x113df9=_0x3378cf;return this[_0x113df9(0x148)][_0x113df9(0x13d)](),super[_0x113df9(0x172)]();}[_0x3378cf(0x15a)](){const _0x263f26=_0x3378cf,_0x3c1e7e=this[_0x263f26(0x14b)],_0x4fc330=_0x3c1e7e[_0x263f26(0x16d)][_0x263f26(0x181)],_0x116133=_0x3c1e7e[_0x263f26(0x194)][_0x263f26(0x191)](_0x5d3db9);_0x3c1e7e[_0x263f26(0x16d)][_0x263f26(0x162)]({'isUndoable':!0x1},_0x67c64c=>{const _0x3b560f=_0x263f26,_0x1ec6dc=_0x3b560f(0x16f)+_0x116133[_0x3b560f(0x14f)],_0x301eab=_0x3b560f(0x1a7)+_0x116133[_0x3b560f(0x14f)],_0x51c419=_0x3c1e7e[_0x3b560f(0x16d)][_0x3b560f(0x18d)][_0x3b560f(0x1bd)](_0x1ec6dc);_0x3c1e7e[_0x3b560f(0x1ae)][_0x3b560f(0x1a0)][_0x3b560f(0x14a)]?J(_0x116133[_0x3b560f(0x14f)],_0x4fc330[_0x3b560f(0x1ad)][_0x3b560f(0x1bf)](),_0x3c1e7e[_0x3b560f(0x16d)],_0x67c64c):_0x51c419&&(_0x67c64c[_0x3b560f(0x16b)](_0x1ec6dc),_0x67c64c[_0x3b560f(0x16b)](_0x301eab));});}}function _0x5349(_0x2e7c89,_0x2360ce){const _0x566ac3=_0x566a();return _0x5349=function(_0x534962,_0x4a8993){_0x534962=_0x534962-0x13b;let _0xe21a25=_0x566ac3[_0x534962];return _0xe21a25;},_0x5349(_0x2e7c89,_0x2360ce);}function J(_0x5e0b39,_0x26cf78,_0x8c7973,_0x974a3f){const _0x2fd031=_0x3378cf,_0x325772=_0x2fd031(0x16f)+_0x5e0b39,_0x5a05c9=_0x2fd031(0x1a7)+_0x5e0b39,_0x4be094=_0x26cf78[_0x2fd031(0x178)]();let _0x3fc14b=_0x26cf78[_0x2fd031(0x1a6)];if(_0x4be094&&_0x4be094['is'](_0x2fd031(0x1b2),_0x2fd031(0x13f))){const _0x14d84c=function(_0x2709d1,_0x4eff20){const _0x22c267=_0x2fd031;for(const _0x445756 of _0x2709d1[_0x22c267(0x1a2)]())if(_0x4eff20[_0x22c267(0x1c4)][_0x22c267(0x171)](_0x445756,_0x22c267(0x145)))return _0x445756;}(_0x26cf78,_0x8c7973);_0x14d84c&&(_0x3fc14b=_0x14d84c,_0x26cf78=_0x974a3f[_0x2fd031(0x18e)](_0x3fc14b));}const _0x530e1a=_0x974a3f[_0x2fd031(0x18e)](_0x3fc14b);_0x8c7973[_0x2fd031(0x18d)][_0x2fd031(0x1bd)](_0x325772)?(_0x974a3f[_0x2fd031(0x17e)](_0x325772,{'range':_0x26cf78}),_0x974a3f[_0x2fd031(0x17e)](_0x5a05c9,{'range':_0x530e1a})):(_0x974a3f[_0x2fd031(0x156)](_0x325772,{'range':_0x26cf78,'usingOperation':!0x0}),_0x974a3f[_0x2fd031(0x156)](_0x5a05c9,{'range':_0x530e1a,'usingOperation':!0x0}));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x46d134=_0x2fad;(function(_0x1c7f3c,_0x4225b9){const _0x153d84=_0x2fad,_0x559872=_0x1c7f3c();while(!![]){try{const _0x542c08=-parseInt(_0x153d84(0x11a))/0x1*(-parseInt(_0x153d84(0x118))/0x2)+parseInt(_0x153d84(0x106))/0x3*(-parseInt(_0x153d84(0xf9))/0x4)+parseInt(_0x153d84(0x105))/0x5*(-parseInt(_0x153d84(0x133))/0x6)+-parseInt(_0x153d84(0x10b))/0x7+-parseInt(_0x153d84(0x111))/0x8+-parseInt(_0x153d84(0x11b))/0x9+parseInt(_0x153d84(0xfa))/0xa;if(_0x542c08===_0x4225b9)break;else _0x559872['push'](_0x559872['shift']());}catch(_0x3e6531){_0x559872['push'](_0x559872['shift']());}}}(_0x7811,0x4804b));function _0x2fad(_0x20b806,_0x2fa2b3){const _0x2fadf3=_0x7811();return _0x2fad=function(_0x370637,_0x2d2958){_0x370637=_0x370637-0xf1;let _0x1a2036=_0x2fadf3[_0x370637];return _0x1a2036;},_0x2fad(_0x20b806,_0x2fa2b3);}import{ContextPlugin as _0x1bb5b2}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x5256ba,CKEditorError as _0x2839bf}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x2a3a27,WEB_SOCKET_GATEWAY_STATES as _0x352d00}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x7811(){const _0x1978f9=['_isBrowserOffline','_shouldPluginsReconnect','connection','connect','websocketgateway-plugin-already-registered','websocketgateway-missing-token','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','error','from','delete','add','pluginName','6066woPXQT','code','listenTo','requires','cloudServices.requestTimeout','_reconnect','CONNECTING','removeFromReconnectionStack','destroy','set','_reconnectionStack','function','cloudServices.connectionTimeout','bind','catch','addToReconnectionStack','1714184ekBHGQ','17597630yKUkQT','config','initialReconnectionInterval','webSocketUrl','DISCONNECTED','has','WebSocketGateway','get','change:me','all','stopListening','1655plOakJ','3VxdsGr','context','isOfficialPlugin','cloudservices-reconnection-error','real-time-collaboration','2601445HggERl','token','_domEmitter','isPremiumPlugin','connected','offline','2050464PCvakZ','CONNECTED','Connected\x20users\x20limit\x20exceeded','state','reconnect','websocketgateway-invalid-plugin-interface','online','511468lrhdZO','disconnect','1fAWRfF','2964420zOjPsO','init','then','cloudservices-init','limitExceeded','constructor','isInReconnectionStack','plugins','websocketgateway-missing-websocket-url','define','showWarning','CloudServices'];_0x7811=function(){return _0x1978f9;};return _0x7811();}import{Notification as _0x2d5860}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x1bb5b2{static [_0x46d134(0x100)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x2a3a27)());static [_0x46d134(0xfc)]=0x3e8;[_0x46d134(0x129)];[_0x46d134(0xf3)];[_0x46d134(0x128)];[_0x46d134(0x10d)];static get[_0x46d134(0x136)](){const _0x24264e=_0x46d134;return[_0x24264e(0x126),_0x2d5860];}static get[_0x46d134(0x132)](){const _0x4ed81d=_0x46d134;return _0x4ed81d(0x100);}static get[_0x46d134(0x108)](){return!0x0;}static get[_0x46d134(0x10e)](){return!0x0;}constructor(_0x27e15c){const _0x4fab00=_0x46d134;super(_0x27e15c),this[_0x4fab00(0xf2)](_0x4fab00(0x114),_0x352d00[_0x4fab00(0x112)]),this[_0x4fab00(0xf2)](_0x4fab00(0x127),!0x1),this[_0x4fab00(0xf3)]=new Set(),this[_0x4fab00(0x128)]=!0x1,this[_0x4fab00(0x10d)]=new(_0x5256ba())();}[_0x46d134(0x11c)](){const _0x4084d1=_0x46d134,_0x340667=this[_0x4084d1(0x107)],_0x2b0c17=_0x340667[_0x4084d1(0x122)][_0x4084d1(0x101)](_0x4084d1(0x126)),_0x21678f=_0x340667[_0x4084d1(0x122)][_0x4084d1(0x101)](_0x2d5860);if(!_0x2b0c17[_0x4084d1(0x10c)])throw new _0x2839bf(_0x4084d1(0x12c),this);if(!_0x2b0c17[_0x4084d1(0xfd)])throw new _0x2839bf(_0x4084d1(0x123),this);return this[_0x4084d1(0x10d)][_0x4084d1(0x135)](window,_0x4084d1(0x110),()=>this[_0x4084d1(0x127)]=!0x0),this[_0x4084d1(0x10d)][_0x4084d1(0x135)](window,_0x4084d1(0x117),()=>this[_0x4084d1(0x127)]=!0x1),this[_0x4084d1(0x107)][_0x4084d1(0xfb)][_0x4084d1(0x124)](_0x4084d1(0xf5),0xa),this[_0x4084d1(0x107)][_0x4084d1(0xfb)][_0x4084d1(0x124)](_0x4084d1(0x137),0x14),WebSocketGateway[_0x4084d1(0x100)][_0x4084d1(0x12a)](_0x2b0c17[_0x4084d1(0x10c)],_0x2b0c17[_0x4084d1(0xfd)],{'timeout':0x3e8*this[_0x4084d1(0x107)][_0x4084d1(0xfb)][_0x4084d1(0x101)](_0x4084d1(0xf5)),'requestTimeout':0x3e8*this[_0x4084d1(0x107)][_0x4084d1(0xfb)][_0x4084d1(0x101)](_0x4084d1(0x137))})[_0x4084d1(0x11d)](_0x16271c=>{const _0x45d078=_0x4084d1;if(this[_0x45d078(0x129)]=_0x16271c,this[_0x45d078(0xf6)](_0x45d078(0x114))['to'](_0x16271c,_0x45d078(0x114),this,_0x45d078(0x127),(_0x5f2ab0,_0x3b7361)=>(_0x45d078(0x10f)!==_0x5f2ab0&&(this[_0x45d078(0x128)]=!0x0),_0x3b7361||_0x5f2ab0!==_0x352d00[_0x45d078(0x112)]?_0x352d00[_0x45d078(0xfe)]:this[_0x45d078(0x114)]==_0x352d00[_0x45d078(0xfe)]&&this[_0x45d078(0x128)]?(this[_0x45d078(0x128)]=!0x1,this[_0x45d078(0x138)](),_0x352d00[_0x45d078(0x139)]):_0x352d00[_0x45d078(0x112)])),this[_0x45d078(0x129)]['on'](_0x45d078(0x12e),(_0x3ea67e,_0x4996fa)=>{const _0x13971d=_0x45d078;if(_0x13971d(0x11f)!==_0x4996fa[_0x13971d(0x134)])throw console[_0x13971d(0x12e)](_0x4996fa),new _0x2839bf(_0x13971d(0x11e),null,{'originalError':_0x4996fa});_0x21678f[_0x13971d(0x125)](_0x13971d(0x12d),{'title':_0x13971d(0x113),'namespace':_0x13971d(0x10a)});}),!_0x16271c['me'])return new Promise(_0x2cb074=>_0x16271c['on'](_0x45d078(0x102),_0x2cb074));})[_0x4084d1(0xf7)](_0x2673c3=>{const _0x532a10=_0x4084d1;throw console[_0x532a10(0x12e)](_0x2673c3),new _0x2839bf(_0x532a10(0x11e),null,{'originalError':_0x2673c3});});}[_0x46d134(0xf8)](_0x51580c){const _0x4bc80d=_0x46d134;if(_0x4bc80d(0xf4)!=typeof _0x51580c[_0x4bc80d(0x115)])throw new _0x2839bf(_0x4bc80d(0x116),this);if(this[_0x4bc80d(0x121)](_0x51580c))throw new _0x2839bf(_0x4bc80d(0x12b),this,{'name':_0x51580c[_0x4bc80d(0x120)][_0x4bc80d(0x132)]});this[_0x4bc80d(0xf3)][_0x4bc80d(0x131)](_0x51580c);}[_0x46d134(0x13a)](_0x491cb1){const _0x11d0a2=_0x46d134;this[_0x11d0a2(0xf3)][_0x11d0a2(0x130)](_0x491cb1);}[_0x46d134(0x121)](_0x321167){const _0x1ead3a=_0x46d134;return this[_0x1ead3a(0xf3)][_0x1ead3a(0xff)](_0x321167);}[_0x46d134(0x138)](){const _0x4c0773=_0x46d134;return this[_0x4c0773(0x129)][_0x4c0773(0x115)]()[_0x4c0773(0x11d)](()=>Promise[_0x4c0773(0x103)](Array[_0x4c0773(0x12f)](this[_0x4c0773(0xf3)],_0x50d7f2=>_0x50d7f2[_0x4c0773(0x115)]())))[_0x4c0773(0x11d)](()=>this[_0x4c0773(0x114)]=_0x352d00[_0x4c0773(0x112)])[_0x4c0773(0xf7)](_0x5cd9ce=>{const _0x39b0c9=_0x4c0773;throw console[_0x39b0c9(0x12e)](_0x5cd9ce),new _0x2839bf(_0x39b0c9(0x109),this[_0x39b0c9(0x107)]);});}[_0x46d134(0x119)](){const _0x3e1179=_0x46d134;this[_0x3e1179(0x129)]&&this[_0x3e1179(0x129)][_0x3e1179(0x119)](),this[_0x3e1179(0x114)]=_0x352d00[_0x3e1179(0xfe)],this[_0x3e1179(0x10d)][_0x3e1179(0x104)]();}[_0x46d134(0xf1)](){const _0x4a78d5=_0x46d134;this[_0x4a78d5(0x119)](),super[_0x4a78d5(0xf1)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x7ab5a6)());[_0x2e1dcc(0x1d9)];[_0x2e1dcc(0x226)];[_0x2e1dcc(0x1fa)];[_0x2e1dcc(0x1e9)];static get[_0x2e1dcc(0x1ee)](){const _0x35eeed=_0x2e1dcc;return[_0x3b2e8b,_0x3abd56,_0x35eeed(0x1e7),_0x342d57,_0x2b0138];}static get[_0x2e1dcc(0x1e5)](){const _0x504915=_0x2e1dcc;return _0x504915(0x206);}static get[_0x2e1dcc(0x213)](){return!0x0;}static get[_0x2e1dcc(0x1f6)](){return!0x0;}constructor(_0x17b5c9){const _0x228a85=_0x2e1dcc;super(_0x17b5c9);const _0x3b5cd2=this[_0x228a85(0x21d)][_0x228a85(0x20b)][_0x228a85(0x208)](_0x228a85(0x1cd));this[_0x228a85(0x1d9)]=null,this[_0x228a85(0x226)]=this[_0x228a85(0x21d)][_0x228a85(0x237)][_0x228a85(0x208)](_0x228a85(0x1e4)),this[_0x228a85(0x1fa)]=new CloudServicesRevisionHistoryAdapter[(_0x228a85(0x233))](_0x3b5cd2);}async[_0x2e1dcc(0x238)](){const _0x39cfed=_0x2e1dcc,_0x446886=this[_0x39cfed(0x21d)][_0x39cfed(0x237)][_0x39cfed(0x208)](_0x3abd56),_0x59701b=_0x446886[_0x39cfed(0x1f7)],_0x24e2b0=this[_0x39cfed(0x21d)][_0x39cfed(0x237)][_0x39cfed(0x208)](_0x3b2e8b);this[_0x39cfed(0x226)][_0x39cfed(0x235)]({'history':_0x59701b,'getLatestVersion':()=>this[_0x39cfed(0x1da)](),'getCurrentRevisionId':()=>_0x446886[_0x39cfed(0x23b)]});const _0x59ecc4=this[_0x39cfed(0x21d)][_0x39cfed(0x20b)][_0x39cfed(0x208)](_0x39cfed(0x23a))||_0x1217d1,_0x2f3964=await _0x41debd[_0x39cfed(0x1f3)](_0x24e2b0[_0x39cfed(0x1f0)],_0x59ecc4);this[_0x39cfed(0x21d)][_0x39cfed(0x237)][_0x39cfed(0x208)](_0x39cfed(0x1e7))[_0x39cfed(0x236)]={'getRevision':async({revisionId:_0x2ad7af})=>(await this[_0x39cfed(0x216)](),await this[_0x39cfed(0x1fa)][_0x39cfed(0x1cc)](_0x2ad7af)),'updateRevisions':async _0x483be0=>{const _0x2ead92=_0x39cfed;await this[_0x2ead92(0x216)]();const _0x11cd92=this[_0x2ead92(0x226)][_0x2ead92(0x218)];if(_0x2f3964&&0x1===_0x483be0[_0x2ead92(0x200)]&&_0x483be0[0x0]['id']===_0x11cd92['id'])return _0x483be0;for(const _0xa873dd of _0x483be0)_0xa873dd['id']===_0x11cd92['id']&&(_0xa873dd[_0x2ead92(0x22b)]=_0xa873dd[_0x2ead92(0x1e1)]===_0xa873dd[_0x2ead92(0x23d)]);return this[_0x2ead92(0x1fa)][_0x2ead92(0x230)](_0x483be0,this[_0x2ead92(0x1d9)])[_0x2ead92(0x21f)](_0x40a279=>(this[_0x2ead92(0x1d9)]=_0x40a279,_0x483be0))[_0x2ead92(0x1dd)](_0x43108e=>{const _0x5c59f8=_0x2ead92;if(et(_0x43108e)||_0x5c59f8(0x1fc)===_0x43108e[_0x5c59f8(0x223)]&&void 0x0!==_0x43108e[_0x5c59f8(0x214)][_0x5c59f8(0x1fb)]){for(const _0x74ef0b of _0x483be0){!this[_0x5c59f8(0x226)][_0x5c59f8(0x1f1)][_0x5c59f8(0x1cc)](_0x74ef0b['id'])||this[_0x5c59f8(0x226)][_0x5c59f8(0x1d4)](_0x74ef0b['id'],_0x74ef0b,!0x1);}if(et(_0x43108e))throw _0x43108e;return _0x483be0;}throw _0x43108e;});}},this[_0x39cfed(0x228)](this[_0x39cfed(0x1fa)],_0x39cfed(0x222),(_0x12b38f,{revisionsData:_0xd32575,requestId:_0x500390})=>{const _0x4f68cf=_0x39cfed;Math[_0x4f68cf(0x1cf)](..._0xd32575[_0x4f68cf(0x1d6)](_0x5108bc=>_0x5108bc[_0x4f68cf(0x23d)]))>this[_0x4f68cf(0x210)]()-0x1?this[_0x4f68cf(0x1da)]()[_0x4f68cf(0x21f)](()=>{const _0x2fdd23=_0x4f68cf;this[_0x2fdd23(0x1f2)](_0xd32575,_0x500390);}):this[_0x4f68cf(0x1f2)](_0xd32575,_0x500390);});const {revisions:_0x3903ca,requestId:_0x5f2f21}=await this[_0x39cfed(0x1fa)][_0x39cfed(0x1f8)](_0x24e2b0[_0x39cfed(0x1f0)]);_0x24e2b0[_0x39cfed(0x211)](this),this[_0x39cfed(0x1d9)]=_0x5f2f21,await this[_0x39cfed(0x201)](_0x3903ca);for(const _0x48b9d7 of _0x3903ca)this[_0x39cfed(0x226)][_0x39cfed(0x209)](_0x48b9d7);this[_0x39cfed(0x228)](_0x446886,_0x39cfed(0x1e6),(_0x2db2d6,_0x23143b,_0x1a9b75)=>{const _0x3fd317=_0x39cfed;_0x1a9b75&&(this[_0x3fd317(0x1e9)]=_0x446886[_0x3fd317(0x1ef)],_0x2db2d6[_0x3fd317(0x220)]());}),this[_0x39cfed(0x226)][_0x39cfed(0x205)](_0x39cfed(0x1e8))['to'](_0x24e2b0,_0x39cfed(0x20c),_0x5211a3=>_0x5211a3===_0x20282d[_0x39cfed(0x229)]);}async[_0x2e1dcc(0x21a)](){const _0x38874d=_0x2e1dcc,_0x5dcc4a=this[_0x38874d(0x21d)][_0x38874d(0x237)][_0x38874d(0x208)](_0x3b2e8b),_0x1a554e=this[_0x38874d(0x21d)][_0x38874d(0x237)][_0x38874d(0x208)](_0x3abd56),_0x5a8b08=async()=>{const _0x5cb2ce=_0x38874d,_0x3f0274=this[_0x5cb2ce(0x226)][_0x5cb2ce(0x218)],_0x55c6c8=_0x3f0274['id'],_0x487e96=_0x55c6c8!==_0x1a554e[_0x5cb2ce(0x23b)];if(_0x487e96){const _0x24e1f6=_0x1a554e[_0x5cb2ce(0x1ef)]-this[_0x5cb2ce(0x1e9)],_0x34bada=this[_0x5cb2ce(0x210)]();this[_0x5cb2ce(0x226)][_0x5cb2ce(0x21b)][_0x5cb2ce(0x203)]();if(_0x3f0274[_0x5cb2ce(0x23d)]+_0x24e1f6!==_0x34bada){const _0x5afa84=_0x3f0274[_0x5cb2ce(0x1e1)]+_0x24e1f6,_0x36a89a=this[_0x5cb2ce(0x21d)][_0x5cb2ce(0x237)][_0x5cb2ce(0x208)](_0x2b0138),_0x486d50=this[_0x5cb2ce(0x226)][_0x5cb2ce(0x1ce)]({'revision':_0x3f0274,'from':_0x5afa84,'to':_0x34bada});_0x486d50['id']=_0x3f0274['id'];const _0x1a9925=_0x486d50[_0x5cb2ce(0x232)][_0x5cb2ce(0x1d6)](_0xedf715=>_0x36a89a[_0x5cb2ce(0x1e3)](_0xedf715));_0x3f0274[_0x5cb2ce(0x1dc)]({..._0x486d50,'authors':_0x1a9925},!0x0),this[_0x5cb2ce(0x226)][_0x5cb2ce(0x1d4)](_0x3f0274['id'],_0x486d50,!0x0);}this[_0x5cb2ce(0x226)][_0x5cb2ce(0x1f5)]=_0x34bada,(_0x3f0274[_0x5cb2ce(0x23d)]===_0x3f0274[_0x5cb2ce(0x1e1)]&&!this[_0x5cb2ce(0x226)][_0x5cb2ce(0x219)][_0x5cb2ce(0x1e0)](_0x55c6c8)&&this[_0x5cb2ce(0x226)][_0x5cb2ce(0x1f1)][_0x5cb2ce(0x1d1)][_0x5cb2ce(0x212)](_0x55c6c8),this[_0x5cb2ce(0x226)][_0x5cb2ce(0x225)](_0x34bada));}const {revisions:_0x566623,requestId:_0x14ac56}=await this[_0x5cb2ce(0x1fa)][_0x5cb2ce(0x21a)](_0x5dcc4a[_0x5cb2ce(0x1f0)],this[_0x5cb2ce(0x1d9)]);_0x487e96&&_0x566623[_0x5cb2ce(0x200)]>0x0?_0x1a554e[_0x5cb2ce(0x1eb)]():(await this[_0x5cb2ce(0x201)](_0x566623),this[_0x5cb2ce(0x1f2)](_0x566623,_0x14ac56),this[_0x5cb2ce(0x226)][_0x5cb2ce(0x20e)]());};return _0x1a554e[_0x38874d(0x1ca)]?_0x5a8b08():new Promise((_0x5d463a,_0x375f56)=>{const _0xf94daf=_0x38874d;_0x1a554e[_0xf94daf(0x207)](_0xf94daf(0x1e6),()=>{const _0x58b323=_0xf94daf;_0x5a8b08()[_0x58b323(0x21f)](_0x5d463a)[_0x58b323(0x1dd)](_0x375f56);});});}[_0x2e1dcc(0x20d)](){const _0x51cb82=_0x2e1dcc;super[_0x51cb82(0x20d)]();}async[_0x2e1dcc(0x216)](){const _0x34a58c=_0x2e1dcc;this[_0x34a58c(0x1fa)][_0x34a58c(0x1d3)]||await new Promise(_0xf61730=>{const _0x53f014=_0x34a58c;this[_0x53f014(0x228)](this[_0x53f014(0x1fa)],_0x53f014(0x217),_0x143d3c=>{const _0x22ef8b=_0x53f014;_0x143d3c[_0x22ef8b(0x220)](),_0xf61730();});});}[_0x2e1dcc(0x210)](){const _0x5410d7=_0x2e1dcc,_0xf6b991=this[_0x5410d7(0x21d)][_0x5410d7(0x237)][_0x5410d7(0x208)](_0x3abd56)[_0x5410d7(0x1f7)][_0x5410d7(0x1f9)]()[_0x5410d7(0x1de)]();for(const _0x13273c of _0xf6b991)if(_0x5410d7(0x234)!==_0x13273c[_0x5410d7(0x221)]||_0x13273c[_0x5410d7(0x1fd)])return _0x13273c[_0x5410d7(0x1ff)]+0x1;}[_0x2e1dcc(0x1da)](){const _0x164dd4=_0x2e1dcc,_0x38ee49=this[_0x164dd4(0x21d)][_0x164dd4(0x237)][_0x164dd4(0x208)](_0x3abd56);return new Promise(_0x43f416=>{const _0x3767f4=_0x164dd4;_0x38ee49[_0x3767f4(0x1d7)]?_0x38ee49[_0x3767f4(0x207)](_0x3767f4(0x1d2),()=>{const _0xb9314=_0x3767f4;_0x43f416(this[_0xb9314(0x210)]());}):_0x43f416(this[_0x3767f4(0x210)]());});}[_0x2e1dcc(0x1f2)](_0x2a718f,_0x2839a7){const _0x8cdd30=_0x2e1dcc,_0x31d27b=this[_0x8cdd30(0x226)][_0x8cdd30(0x1f1)];this[_0x8cdd30(0x1d9)]=_0x2839a7;for(const _0x2b2e94 of _0x2a718f){const _0x21cffc=_0x31d27b[_0x8cdd30(0x1cc)](_0x2b2e94['id']);if(_0x21cffc){if((_0x2b2e94[_0x8cdd30(0x1e1)]||_0x2b2e94[_0x8cdd30(0x23d)])&&(_0x2b2e94[_0x8cdd30(0x1ec)]=null),_0x21cffc===this[_0x8cdd30(0x226)][_0x8cdd30(0x218)]){const _0x48b9e3=Math[_0x8cdd30(0x1cf)](_0x21cffc[_0x8cdd30(0x23d)],_0x2b2e94[_0x8cdd30(0x23d)]),_0x554554=Math[_0x8cdd30(0x1cf)](_0x21cffc[_0x8cdd30(0x1e1)],_0x2b2e94[_0x8cdd30(0x1e1)]);let _0x31923c;_0x21cffc[_0x8cdd30(0x23d)]===_0x2b2e94[_0x8cdd30(0x23d)]&&_0x21cffc[_0x8cdd30(0x1e1)]===_0x2b2e94[_0x8cdd30(0x1e1)]?(_0x31923c=!0x0,this[_0x8cdd30(0x224)](_0x2b2e94)):_0x2b2e94[_0x8cdd30(0x23d)]===_0x48b9e3&&_0x2b2e94[_0x8cdd30(0x1e1)]===_0x554554?_0x31923c=!0x1:(_0x21cffc[_0x8cdd30(0x23d)]===_0x48b9e3&&_0x21cffc[_0x8cdd30(0x1e1)]===_0x554554||this[_0x8cdd30(0x1ea)]({'revision':_0x21cffc,'from':_0x554554,'to':_0x48b9e3}),_0x31923c=!0x0),_0x31923c&&(delete _0x2b2e94[_0x8cdd30(0x1e1)],delete _0x2b2e94[_0x8cdd30(0x23d)],delete _0x2b2e94[_0x8cdd30(0x1ec)],delete _0x2b2e94[_0x8cdd30(0x204)],delete _0x2b2e94[_0x8cdd30(0x232)]);}this[_0x8cdd30(0x226)][_0x8cdd30(0x20f)](_0x2b2e94),this[_0x8cdd30(0x224)](_0x2b2e94);}else this[_0x8cdd30(0x226)][_0x8cdd30(0x209)](_0x2b2e94);}const _0x367663=_0x31d27b[_0x8cdd30(0x1fe)]();_0x367663[_0x8cdd30(0x1de)]();for(let _0xaa28b6=0x0;_0xaa28b6<_0x367663[_0x8cdd30(0x200)]-0x1;_0xaa28b6++){const _0x1f1752=_0x367663[_0xaa28b6],_0x1c2183=_0x367663[_0xaa28b6+0x1];if(_0x1f1752[_0x8cdd30(0x1e1)]<_0x1c2183[_0x8cdd30(0x23d)]){const _0x3b1a31=_0x1c2183[_0x8cdd30(0x23d)],_0x5531cf=Math[_0x8cdd30(0x1cf)](_0x3b1a31,_0x1f1752[_0x8cdd30(0x23d)]);this[_0x8cdd30(0x1ea)]({'revision':_0x1f1752,'from':_0x3b1a31,'to':_0x5531cf});}}}[_0x2e1dcc(0x1ea)]({revision:_0x3d0967,from:_0x180669,to:_0xa0d87}={}){const _0x5102cb=_0x2e1dcc,_0x154d65=this[_0x5102cb(0x21d)][_0x5102cb(0x237)][_0x5102cb(0x208)](_0x2b0138),_0x50c4bb=this[_0x5102cb(0x226)][_0x5102cb(0x1ce)]({'revision':_0x3d0967,'from':_0x180669,'to':_0xa0d87});_0x50c4bb[_0x5102cb(0x22d)]=_0x50c4bb[_0x5102cb(0x232)][_0x5102cb(0x1d6)](_0x100728=>_0x154d65[_0x5102cb(0x1e3)](_0x100728)),_0x3d0967[_0x5102cb(0x1dc)](_0x50c4bb);}[_0x2e1dcc(0x224)](_0x3d3a72){const _0x32bed6=_0x2e1dcc,_0x262c90={};_0x262c90['id']=_0x3d3a72['id'];for(const _0x12cca4 of Object[_0x32bed6(0x1db)](_0x3d3a72))'id'!==_0x12cca4&&(_0x262c90[_0x12cca4]=void 0x0);this[_0x32bed6(0x226)][_0x32bed6(0x1d4)](_0x262c90['id'],_0x262c90,!0x0);}async[_0x2e1dcc(0x201)](_0x4bdc35){const _0x1f1290=_0x2e1dcc,_0x24e6bc=this[_0x1f1290(0x21d)][_0x1f1290(0x237)][_0x1f1290(0x208)](_0x2b0138),{connection:_0x755868}=this[_0x1f1290(0x21d)][_0x1f1290(0x237)][_0x1f1290(0x208)](_0x3b2e8b),_0x5a3004=new Set();for(const _0x493ceb of _0x4bdc35){for(const _0x1aa4c2 of _0x493ceb[_0x1f1290(0x232)])_0x3386f8(_0x1aa4c2);_0x493ceb[_0x1f1290(0x22c)]&&_0x3386f8(_0x493ceb[_0x1f1290(0x22c)]);}if(0x0===_0x5a3004[_0x1f1290(0x1ed)])return;const _0xafed0b=await _0x96283[_0x1f1290(0x23c)](_0x755868,Array[_0x1f1290(0x231)](_0x5a3004));for(const _0x1b5c4b of _0xafed0b)_0x24e6bc[_0x1f1290(0x1e3)](_0x1b5c4b['id'])||_0x24e6bc[_0x1f1290(0x215)](_0x1b5c4b);function _0x3386f8(_0x30e81f){const _0x2b782a=_0x1f1290;_0x24e6bc[_0x2b782a(0x1e3)](_0x30e81f)||_0x5a3004[_0x2b782a(0x22a)](_0x30e81f);}}}function et(_0x223454){const _0x52c338=_0x2e1dcc;return _0x223454[_0x52c338(0x202)][_0x52c338(0x1f4)](_0x52c338(0x22e))||_0x223454[_0x52c338(0x202)][_0x52c338(0x1f4)](_0x52c338(0x1cb))||_0x223454[_0x52c338(0x202)][_0x52c338(0x1f4)](_0x52c338(0x20a));}function _0x4f46(){const _0x4fb51c=['isEmptyCurrent','creatorId','authors','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','327062kittvD','updateRevisions','from','authorsIds','RevisionHistoryService','marker','setSource','adapter','plugins','init','875404vaduVw','cloudServices.bundleVersion','sessionId','getMany','toVersion','_isConnected','cloud-services-internal-error:\x20Not\x20connected.','getRevision','collaboration.channelId','buildRevisionData','max','16owcGNm','_revisions','change:_isPendingUpdate','isConnected','_bufferUpdate','16024ThEcaX','map','_isPendingUpdate','3166740aWIess','_lastRequestId','_getLatestVersion','keys','_update','catch','reverse','9wBIVdI','has','fromVersion','1415mOgVvN','getUser','RevisionTracker','pluginName','change:_isConnected','RevisionHistory','isEnabled','_oldOffset','_fixRevision','_handleReconnectionError','diffData','size','requires','_offset','connection','repository','_handleRevisionsUpdate','isBundleUploaded','startsWith','_startingVersion','isPremiumPlugin','serverHistory','connect','getOperations','_revisionHistoryService','wrongRequestId','400','affectsData','getRevisions','baseVersion','length','_fetchMissingUsers','message','reInit','createdAt','bind','CloudServicesRevisionHistoryAdapter','once','get','addRevisionData','cloud-services-internal-error:\x20Request\x20timeout.','config','state','destroy','sendBufferedUpdates','setRevisionData','_getLatestVersionFromServerOperations','addToReconnectionStack','remove','isOfficialPlugin','data','addUser','_waitForServiceReady','connected','currentRevision','_bufferedUpdates','reconnect','_revisionDataBuilder','5158158YTwUAD','editor','11807660zJFXfK','then','off','type','revisionsUpdated','code','_preventResendingRevisionData','_createCurrentRevision','_revisionTracker','3409070YnzbTI','listenTo','CONNECTED','add'];_0x4f46=function(){return _0x4fb51c;};return _0x4f46();}
|
|
23
|
+
const _0x4a405a=_0x7b71;(function(_0x208dca,_0x51f938){const _0x5eb90b=_0x7b71,_0x4a5b04=_0x208dca();while(!![]){try{const _0x3f31e7=parseInt(_0x5eb90b(0xcd))/0x1*(parseInt(_0x5eb90b(0xb6))/0x2)+-parseInt(_0x5eb90b(0xb9))/0x3*(-parseInt(_0x5eb90b(0x78))/0x4)+parseInt(_0x5eb90b(0x84))/0x5+-parseInt(_0x5eb90b(0xd7))/0x6+-parseInt(_0x5eb90b(0x80))/0x7+parseInt(_0x5eb90b(0xb3))/0x8+-parseInt(_0x5eb90b(0x7c))/0x9;if(_0x3f31e7===_0x51f938)break;else _0x4a5b04['push'](_0x4a5b04['shift']());}catch(_0x164c89){_0x4a5b04['push'](_0x4a5b04['shift']());}}}(_0x38b9,0xccef2));function _0x7b71(_0x33625e,_0x444365){const _0x38b9d8=_0x38b9();return _0x7b71=function(_0x7b711e,_0x4338e4){_0x7b711e=_0x7b711e-0x6f;let _0x1be592=_0x38b9d8[_0x7b711e];return _0x1be592;},_0x7b71(_0x33625e,_0x444365);}import{Plugin as _0xb291ce}from'ckeditor5/src/core.js';import{version as _0x2c0ff5}from'ckeditor5/src/utils.js';import{Users as _0xaf573e}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x14e225}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x350604}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x3b835d}from'../realtimecollaborativeediting/sessions.js';function _0x38b9(){const _0x309bb9=['baseVersion','3718899nMPTWS','isPremiumPlugin','sendBufferedUpdates','wrongRequestId','2171533HlwZps','off','editor','reconnect','3115930GPYROK','catch','sessionId','marker','size','isEnabled','config','keys','affectsData','creatorId','state','_preventResendingRevisionData','connection','then','_waitForServiceReady','bind','_isConnected','cloud-services-internal-error:\x20Request\x20timeout.','RevisionTracker','createdAt','_startingVersion','add','_revisionTracker','_bufferedUpdates','RevisionHistory','connect','connected','isOfficialPlugin','serverHistory','_lastRequestId','getMany','collaboration.channelId','plugins','from','RevisionHistoryService','addRevisionData','addToReconnectionStack','change:_isConnected','_revisions','getOperations','has','_isPendingUpdate','isEmptyCurrent','buildRevisionData','_revisionDataBuilder','setRevisionData','toVersion','2419288sXVIwf','reInit','getUser','109346nlzcQN','_revisionHistoryService','init','121155SsmMdv','revisionsUpdated','_update','change:_isPendingUpdate','type','_fixRevision','400','message','addUser','max','currentRevision','CONNECTED','authorsIds','_oldOffset','once','isConnected','code','_getLatestVersion','_handleReconnectionError','reverse','1twoiOu','listenTo','cloudServices.bundleVersion','length','getRevision','authors','remove','updateRevisions','_offset','repository','5954670XQeGvz','isBundleUploaded','_bufferUpdate','getRevisions','_createCurrentRevision','destroy','setSource','fromVersion','map','data','cloud-services-internal-error:\x20Not\x20connected.','_getLatestVersionFromServerOperations','diffData','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','adapter','pluginName','_fetchMissingUsers','CloudServicesRevisionHistoryAdapter','get','startsWith','156WONqqv','_handleRevisionsUpdate','requires'];_0x38b9=function(){return _0x309bb9;};return _0x38b9();}import{EditorService as _0x47b216,RevisionHistoryService as _0x24215e,User as _0x59b3e6,WEB_SOCKET_GATEWAY_STATES as _0x248ae8}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0xb291ce{static [_0x4a405a(0xa6)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x24215e)());[_0x4a405a(0xa1)];[_0x4a405a(0x9a)];[_0x4a405a(0xb7)];[_0x4a405a(0xc6)];static get[_0x4a405a(0x7a)](){const _0x3dfff8=_0x4a405a;return[_0x350604,_0x14e225,_0x3dfff8(0x9c),_0x3b835d,_0xaf573e];}static get[_0x4a405a(0x73)](){const _0x49b199=_0x4a405a;return _0x49b199(0x75);}static get[_0x4a405a(0x9f)](){return!0x0;}static get[_0x4a405a(0x7d)](){return!0x0;}constructor(_0x2e56c4){const _0xf4be30=_0x4a405a;super(_0x2e56c4);const _0x30c423=this[_0xf4be30(0x82)][_0xf4be30(0x8a)][_0xf4be30(0x76)](_0xf4be30(0xa3));this[_0xf4be30(0xa1)]=null,this[_0xf4be30(0x9a)]=this[_0xf4be30(0x82)][_0xf4be30(0xa4)][_0xf4be30(0x76)](_0xf4be30(0x96)),this[_0xf4be30(0xb7)]=new CloudServicesRevisionHistoryAdapter[(_0xf4be30(0xa6))](_0x30c423);}async[_0x4a405a(0xb8)](){const _0x1c3e0f=_0x4a405a,_0x1e3b30=this[_0x1c3e0f(0x82)][_0x1c3e0f(0xa4)][_0x1c3e0f(0x76)](_0x14e225),_0x590a9f=_0x1e3b30[_0x1c3e0f(0xa0)],_0x56c8e4=this[_0x1c3e0f(0x82)][_0x1c3e0f(0xa4)][_0x1c3e0f(0x76)](_0x350604);this[_0x1c3e0f(0x9a)][_0x1c3e0f(0xdd)]({'history':_0x590a9f,'getLatestVersion':()=>this[_0x1c3e0f(0xca)](),'getCurrentRevisionId':()=>_0x1e3b30[_0x1c3e0f(0x86)]});const _0x3e4a5b=this[_0x1c3e0f(0x82)][_0x1c3e0f(0x8a)][_0x1c3e0f(0x76)](_0x1c3e0f(0xcf))||_0x2c0ff5,_0x579bab=await _0x47b216[_0x1c3e0f(0xd8)](_0x56c8e4[_0x1c3e0f(0x90)],_0x3e4a5b);this[_0x1c3e0f(0x82)][_0x1c3e0f(0xa4)][_0x1c3e0f(0x76)](_0x1c3e0f(0x9c))[_0x1c3e0f(0x72)]={'getRevision':async({revisionId:_0x5e35ff})=>(await this[_0x1c3e0f(0x92)](),await this[_0x1c3e0f(0xb7)][_0x1c3e0f(0xd1)](_0x5e35ff)),'updateRevisions':async _0x5416c8=>{const _0x5f0079=_0x1c3e0f;await this[_0x5f0079(0x92)]();const _0x24bb02=this[_0x5f0079(0x9a)][_0x5f0079(0xc3)];if(_0x579bab&&0x1===_0x5416c8[_0x5f0079(0xd0)]&&_0x5416c8[0x0]['id']===_0x24bb02['id'])return _0x5416c8;for(const _0x7e27f of _0x5416c8)_0x7e27f['id']===_0x24bb02['id']&&(_0x7e27f[_0x5f0079(0xae)]=_0x7e27f[_0x5f0079(0xde)]===_0x7e27f[_0x5f0079(0xb2)]);return this[_0x5f0079(0xb7)][_0x5f0079(0xd4)](_0x5416c8,this[_0x5f0079(0xa1)])[_0x5f0079(0x91)](_0x54ee2d=>(this[_0x5f0079(0xa1)]=_0x54ee2d,_0x5416c8))[_0x5f0079(0x85)](_0x2e4375=>{const _0x206255=_0x5f0079;if(ot(_0x2e4375)||_0x206255(0xbf)===_0x2e4375[_0x206255(0xc9)]&&void 0x0!==_0x2e4375[_0x206255(0xe0)][_0x206255(0x7f)]){for(const _0x183c14 of _0x5416c8){!this[_0x206255(0x9a)][_0x206255(0xd6)][_0x206255(0xd1)](_0x183c14['id'])||this[_0x206255(0x9a)][_0x206255(0xd9)](_0x183c14['id'],_0x183c14,!0x1);}if(ot(_0x2e4375))throw _0x2e4375;return _0x5416c8;}throw _0x2e4375;});}},this[_0x1c3e0f(0xce)](this[_0x1c3e0f(0xb7)],_0x1c3e0f(0xba),(_0x870d18,{revisionsData:_0x22c5f3,requestId:_0x2226a6})=>{const _0x461d99=_0x1c3e0f;Math[_0x461d99(0xc2)](..._0x22c5f3[_0x461d99(0xdf)](_0x3bad7e=>_0x3bad7e[_0x461d99(0xb2)]))>this[_0x461d99(0x6f)]()-0x1?this[_0x461d99(0xca)]()[_0x461d99(0x91)](()=>{const _0x41b754=_0x461d99;this[_0x41b754(0x79)](_0x22c5f3,_0x2226a6);}):this[_0x461d99(0x79)](_0x22c5f3,_0x2226a6);});const {revisions:_0x36606f,requestId:_0x7641ba}=await this[_0x1c3e0f(0xb7)][_0x1c3e0f(0x9d)](_0x56c8e4[_0x1c3e0f(0x90)]);_0x56c8e4[_0x1c3e0f(0xa8)](this),this[_0x1c3e0f(0xa1)]=_0x7641ba,await this[_0x1c3e0f(0x74)](_0x36606f);for(const _0x213b9c of _0x36606f)this[_0x1c3e0f(0x9a)][_0x1c3e0f(0xa7)](_0x213b9c);this[_0x1c3e0f(0xce)](_0x1e3b30,_0x1c3e0f(0xa9),(_0x4f417d,_0x2a690b,_0x2f4229)=>{const _0x2e745a=_0x1c3e0f;_0x2f4229&&(this[_0x2e745a(0xc6)]=_0x1e3b30[_0x2e745a(0xd5)],_0x4f417d[_0x2e745a(0x81)]());}),this[_0x1c3e0f(0x9a)][_0x1c3e0f(0x93)](_0x1c3e0f(0x89))['to'](_0x56c8e4,_0x1c3e0f(0x8e),_0x3800a3=>_0x3800a3===_0x248ae8[_0x1c3e0f(0xc4)]);}async[_0x4a405a(0x83)](){const _0x3b90aa=_0x4a405a,_0x4fd137=this[_0x3b90aa(0x82)][_0x3b90aa(0xa4)][_0x3b90aa(0x76)](_0x350604),_0x1d6b79=this[_0x3b90aa(0x82)][_0x3b90aa(0xa4)][_0x3b90aa(0x76)](_0x14e225),_0x31be5d=async()=>{const _0x51b6a1=_0x3b90aa,_0x6da9c=this[_0x51b6a1(0x9a)][_0x51b6a1(0xc3)],_0x31f93e=_0x6da9c['id'],_0x1aa63e=_0x31f93e!==_0x1d6b79[_0x51b6a1(0x86)];if(_0x1aa63e){const _0x28c67f=_0x1d6b79[_0x51b6a1(0xd5)]-this[_0x51b6a1(0xc6)],_0x1f8b04=this[_0x51b6a1(0x6f)]();this[_0x51b6a1(0x9a)][_0x51b6a1(0xb0)][_0x51b6a1(0xb4)]();if(_0x6da9c[_0x51b6a1(0xb2)]+_0x28c67f!==_0x1f8b04){const _0x35b8c1=_0x6da9c[_0x51b6a1(0xde)]+_0x28c67f,_0x277448=this[_0x51b6a1(0x82)][_0x51b6a1(0xa4)][_0x51b6a1(0x76)](_0xaf573e),_0x59740e=this[_0x51b6a1(0x9a)][_0x51b6a1(0xaf)]({'revision':_0x6da9c,'from':_0x35b8c1,'to':_0x1f8b04});_0x59740e['id']=_0x6da9c['id'];const _0xfd04d2=_0x59740e[_0x51b6a1(0xc5)][_0x51b6a1(0xdf)](_0x1c2b72=>_0x277448[_0x51b6a1(0xb5)](_0x1c2b72));_0x6da9c[_0x51b6a1(0xbb)]({..._0x59740e,'authors':_0xfd04d2},!0x0),this[_0x51b6a1(0x9a)][_0x51b6a1(0xd9)](_0x6da9c['id'],_0x59740e,!0x0);}this[_0x51b6a1(0x9a)][_0x51b6a1(0x98)]=_0x1f8b04,(_0x6da9c[_0x51b6a1(0xb2)]===_0x6da9c[_0x51b6a1(0xde)]&&!this[_0x51b6a1(0x9a)][_0x51b6a1(0x9b)][_0x51b6a1(0xac)](_0x31f93e)&&this[_0x51b6a1(0x9a)][_0x51b6a1(0xd6)][_0x51b6a1(0xaa)][_0x51b6a1(0xd3)](_0x31f93e),this[_0x51b6a1(0x9a)][_0x51b6a1(0xdb)](_0x1f8b04));}const {revisions:_0x65d2cb,requestId:_0x4ccf63}=await this[_0x51b6a1(0xb7)][_0x51b6a1(0x83)](_0x4fd137[_0x51b6a1(0x90)],this[_0x51b6a1(0xa1)]);_0x1aa63e&&_0x65d2cb[_0x51b6a1(0xd0)]>0x0?_0x1d6b79[_0x51b6a1(0xcb)]():(await this[_0x51b6a1(0x74)](_0x65d2cb),this[_0x51b6a1(0x79)](_0x65d2cb,_0x4ccf63),this[_0x51b6a1(0x9a)][_0x51b6a1(0x7e)]());};return _0x1d6b79[_0x3b90aa(0x94)]?_0x31be5d():new Promise((_0x205470,_0x528dc2)=>{const _0x4b148d=_0x3b90aa;_0x1d6b79[_0x4b148d(0xc7)](_0x4b148d(0xa9),()=>{const _0x489576=_0x4b148d;_0x31be5d()[_0x489576(0x91)](_0x205470)[_0x489576(0x85)](_0x528dc2);});});}[_0x4a405a(0xdc)](){const _0x5c822f=_0x4a405a;super[_0x5c822f(0xdc)]();}async[_0x4a405a(0x92)](){const _0x1edc1c=_0x4a405a;this[_0x1edc1c(0xb7)][_0x1edc1c(0xc8)]||await new Promise(_0x56ba4a=>{const _0x154bef=_0x1edc1c;this[_0x154bef(0xce)](this[_0x154bef(0xb7)],_0x154bef(0x9e),_0x3add40=>{const _0x1a8f71=_0x154bef;_0x3add40[_0x1a8f71(0x81)](),_0x56ba4a();});});}[_0x4a405a(0x6f)](){const _0x3291d8=_0x4a405a,_0x12be60=this[_0x3291d8(0x82)][_0x3291d8(0xa4)][_0x3291d8(0x76)](_0x14e225)[_0x3291d8(0xa0)][_0x3291d8(0xab)]()[_0x3291d8(0xcc)]();for(const _0x20d19d of _0x12be60)if(_0x3291d8(0x87)!==_0x20d19d[_0x3291d8(0xbd)]||_0x20d19d[_0x3291d8(0x8c)])return _0x20d19d[_0x3291d8(0x7b)]+0x1;}[_0x4a405a(0xca)](){const _0x1361b6=_0x4a405a,_0x3d8e08=this[_0x1361b6(0x82)][_0x1361b6(0xa4)][_0x1361b6(0x76)](_0x14e225);return new Promise(_0x18baf4=>{const _0x2be162=_0x1361b6;_0x3d8e08[_0x2be162(0xad)]?_0x3d8e08[_0x2be162(0xc7)](_0x2be162(0xbc),()=>{const _0x50948b=_0x2be162;_0x18baf4(this[_0x50948b(0x6f)]());}):_0x18baf4(this[_0x2be162(0x6f)]());});}[_0x4a405a(0x79)](_0x121c1c,_0x3db5b4){const _0x44da56=_0x4a405a,_0xeaa9ec=this[_0x44da56(0x9a)][_0x44da56(0xd6)];this[_0x44da56(0xa1)]=_0x3db5b4;for(const _0x390605 of _0x121c1c){const _0x19f4ad=_0xeaa9ec[_0x44da56(0xd1)](_0x390605['id']);if(_0x19f4ad){if((_0x390605[_0x44da56(0xde)]||_0x390605[_0x44da56(0xb2)])&&(_0x390605[_0x44da56(0x70)]=null),_0x19f4ad===this[_0x44da56(0x9a)][_0x44da56(0xc3)]){const _0x52fb6c=Math[_0x44da56(0xc2)](_0x19f4ad[_0x44da56(0xb2)],_0x390605[_0x44da56(0xb2)]),_0xda9de4=Math[_0x44da56(0xc2)](_0x19f4ad[_0x44da56(0xde)],_0x390605[_0x44da56(0xde)]);let _0x50377d;_0x19f4ad[_0x44da56(0xb2)]===_0x390605[_0x44da56(0xb2)]&&_0x19f4ad[_0x44da56(0xde)]===_0x390605[_0x44da56(0xde)]?(_0x50377d=!0x0,this[_0x44da56(0x8f)](_0x390605)):_0x390605[_0x44da56(0xb2)]===_0x52fb6c&&_0x390605[_0x44da56(0xde)]===_0xda9de4?_0x50377d=!0x1:(_0x19f4ad[_0x44da56(0xb2)]===_0x52fb6c&&_0x19f4ad[_0x44da56(0xde)]===_0xda9de4||this[_0x44da56(0xbe)]({'revision':_0x19f4ad,'from':_0xda9de4,'to':_0x52fb6c}),_0x50377d=!0x0),_0x50377d&&(delete _0x390605[_0x44da56(0xde)],delete _0x390605[_0x44da56(0xb2)],delete _0x390605[_0x44da56(0x70)],delete _0x390605[_0x44da56(0x97)],delete _0x390605[_0x44da56(0xc5)]);}this[_0x44da56(0x9a)][_0x44da56(0xb1)](_0x390605),this[_0x44da56(0x8f)](_0x390605);}else this[_0x44da56(0x9a)][_0x44da56(0xa7)](_0x390605);}const _0x1818e7=_0xeaa9ec[_0x44da56(0xda)]();_0x1818e7[_0x44da56(0xcc)]();for(let _0x5331b1=0x0;_0x5331b1<_0x1818e7[_0x44da56(0xd0)]-0x1;_0x5331b1++){const _0x117237=_0x1818e7[_0x5331b1],_0x1a7e16=_0x1818e7[_0x5331b1+0x1];if(_0x117237[_0x44da56(0xde)]<_0x1a7e16[_0x44da56(0xb2)]){const _0x532649=_0x1a7e16[_0x44da56(0xb2)],_0xb3f807=Math[_0x44da56(0xc2)](_0x532649,_0x117237[_0x44da56(0xb2)]);this[_0x44da56(0xbe)]({'revision':_0x117237,'from':_0x532649,'to':_0xb3f807});}}}[_0x4a405a(0xbe)]({revision:_0x1dc763,from:_0x3881d6,to:_0x2ee335}={}){const _0x489336=_0x4a405a,_0x1a3b43=this[_0x489336(0x82)][_0x489336(0xa4)][_0x489336(0x76)](_0xaf573e),_0x3f7dd7=this[_0x489336(0x9a)][_0x489336(0xaf)]({'revision':_0x1dc763,'from':_0x3881d6,'to':_0x2ee335});_0x3f7dd7[_0x489336(0xd2)]=_0x3f7dd7[_0x489336(0xc5)][_0x489336(0xdf)](_0xe7768=>_0x1a3b43[_0x489336(0xb5)](_0xe7768)),_0x1dc763[_0x489336(0xbb)](_0x3f7dd7);}[_0x4a405a(0x8f)](_0x316c96){const _0x57ece5=_0x4a405a,_0x3c05c0={};_0x3c05c0['id']=_0x316c96['id'];for(const _0xba6f65 of Object[_0x57ece5(0x8b)](_0x316c96))'id'!==_0xba6f65&&(_0x3c05c0[_0xba6f65]=void 0x0);this[_0x57ece5(0x9a)][_0x57ece5(0xd9)](_0x3c05c0['id'],_0x3c05c0,!0x0);}async[_0x4a405a(0x74)](_0x103e53){const _0x52873c=_0x4a405a,_0x41c002=this[_0x52873c(0x82)][_0x52873c(0xa4)][_0x52873c(0x76)](_0xaf573e),{connection:_0x30a9d8}=this[_0x52873c(0x82)][_0x52873c(0xa4)][_0x52873c(0x76)](_0x350604),_0x5572fe=new Set();for(const _0x4b15ae of _0x103e53){for(const _0x432fd5 of _0x4b15ae[_0x52873c(0xc5)])_0x92dbdb(_0x432fd5);_0x4b15ae[_0x52873c(0x8d)]&&_0x92dbdb(_0x4b15ae[_0x52873c(0x8d)]);}if(0x0===_0x5572fe[_0x52873c(0x88)])return;const _0x4832ed=await _0x59b3e6[_0x52873c(0xa2)](_0x30a9d8,Array[_0x52873c(0xa5)](_0x5572fe));for(const _0x43b2d8 of _0x4832ed)_0x41c002[_0x52873c(0xb5)](_0x43b2d8['id'])||_0x41c002[_0x52873c(0xc1)](_0x43b2d8);function _0x92dbdb(_0x599715){const _0x5c80c1=_0x52873c;_0x41c002[_0x5c80c1(0xb5)](_0x599715)||_0x5572fe[_0x5c80c1(0x99)](_0x599715);}}}function ot(_0x57472b){const _0x1b5312=_0x4a405a;return _0x57472b[_0x1b5312(0xc0)][_0x1b5312(0x77)](_0x1b5312(0x71))||_0x57472b[_0x1b5312(0xc0)][_0x1b5312(0x77)](_0x1b5312(0xe1))||_0x57472b[_0x1b5312(0xc0)][_0x1b5312(0x77)](_0x1b5312(0x95));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x7c766f=_0x21f5;(function(_0x2ec3bc,_0x1e9347){const _0x5b878c=_0x21f5,_0x6ba20d=_0x2ec3bc();while(!![]){try{const _0x5287ba=parseInt(_0x5b878c(0xe3))/0x1*(-parseInt(_0x5b878c(0xc4))/0x2)+-parseInt(_0x5b878c(0xce))/0x3*(parseInt(_0x5b878c(0xc3))/0x4)+parseInt(_0x5b878c(0xbe))/0x5*(parseInt(_0x5b878c(0xe7))/0x6)+-parseInt(_0x5b878c(0xc8))/0x7*(parseInt(_0x5b878c(0xd5))/0x8)+-parseInt(_0x5b878c(0xde))/0x9+parseInt(_0x5b878c(0xc6))/0xa*(-parseInt(_0x5b878c(0xc0))/0xb)+parseInt(_0x5b878c(0xbd))/0xc;if(_0x5287ba===_0x1e9347)break;else _0x6ba20d['push'](_0x6ba20d['shift']());}catch(_0x56c725){_0x6ba20d['push'](_0x6ba20d['shift']());}}}(_0x4753,0x77572));import{Plugin as _0x560c3c}from'ckeditor5/src/core.js';import{User as _0x467636,TrackChangesService as _0x5449f2}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5e7d99}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x30c1ae}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';function _0x21f5(_0x709d56,_0x1dff2a){const _0x475336=_0x4753();return _0x21f5=function(_0x21f5a8,_0x5791d7){_0x21f5a8=_0x21f5a8-0xae;let _0x2a5ff2=_0x475336[_0x21f5a8];return _0x2a5ff2;},_0x21f5(_0x709d56,_0x1dff2a);}import{Users as _0x286bc2}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4753(){const _0x406830=['_fetchMissingUsersForThreads','_bufferedRequests','from','adapter','_waitForServiceReady','36002256hRzOSE','1906885fYVdDw','reconnect','5159209utKvWH','type','open','1520800wyfiWZ','1752194fvvoHE','addUser','10IUKhsf','requires','218771XqsLva','_trackChangesService','values','init','originalSuggestionId','off','3ZDRSrO','delete','connected','TrackChangesService','addSuggestionData','then','update','96MUkPlt','get','_saved','CloudServicesTrackChangesAdapter','config','attributes','editor','data','isConnected','7131555WwrZfi','suggestionUpdated','getMany','find','addToReconnectionStack','1oattrR','pluginName','catch','collaboration.channelId','6KkGWec','cloud-services-internal-error:\x20Request\x20timeout.','hasSuggestion','state','isPremiumPlugin','startsWith','getSuggestion','TrackChangesEditing','isOfficialPlugin','plugins','add','getUser','connection','size','listenTo','connect','cloud-services-internal-error:\x20Not\x20connected.','set','message'];_0x4753=function(){return _0x406830;};return _0x4753();}export class CloudServicesTrackChangesAdapter extends _0x560c3c{static [_0x7c766f(0xd1)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x5449f2)());[_0x7c766f(0xb9)];[_0x7c766f(0xc9)];static get[_0x7c766f(0xc7)](){const _0x294d21=_0x7c766f;return[_0x30c1ae,_0x294d21(0xee),_0x5e7d99];}static get[_0x7c766f(0xe4)](){const _0x78118a=_0x7c766f;return _0x78118a(0xd8);}static get[_0x7c766f(0xef)](){return!0x0;}static get[_0x7c766f(0xeb)](){return!0x0;}constructor(_0x56264b){const _0x550484=_0x7c766f;super(_0x56264b);const _0x6aabae=this[_0x550484(0xdb)][_0x550484(0xd9)][_0x550484(0xd6)](_0x550484(0xe6));this[_0x550484(0xb9)]=new Map(),this[_0x550484(0xc9)]=new CloudServicesTrackChangesAdapter[(_0x550484(0xd1))](_0x6aabae);}[_0x7c766f(0xcb)](){const _0x311350=_0x7c766f,_0x5d6fac=this[_0x311350(0xdb)][_0x311350(0xae)][_0x311350(0xd6)](_0x5e7d99),_0x56e8e9=this[_0x311350(0xdb)][_0x311350(0xae)][_0x311350(0xd6)](_0x311350(0xee));return _0x56e8e9[_0x311350(0xbb)]={'getSuggestion':async _0x89d97c=>{const _0x20fbff=_0x311350;await this[_0x20fbff(0xbc)]();const _0x4a9597=await this[_0x20fbff(0xc9)][_0x20fbff(0xd6)](_0x89d97c)[_0x20fbff(0xe5)](tt);return await this[_0x20fbff(0xb8)]([_0x4a9597]),_0x4a9597;},'addSuggestion':async({id:_0x1d4d6b,type:_0x4f5196,data:_0x4db220,originalSuggestionId:_0x416abf,attributes:_0xcd6ac1})=>{const _0x4b8026=_0x311350;await this[_0x4b8026(0xbc)]();const _0xacb32c={'id':_0x1d4d6b,'type':_0x4f5196,'data':_0x4db220,'originalSuggestionId':_0x416abf,'attributes':_0xcd6ac1},_0x20e82b=await this[_0x4b8026(0xc9)][_0x4b8026(0xaf)](_0x1d4d6b,_0x4f5196,_0x4db220,_0x416abf,_0xcd6ac1)[_0x4b8026(0xe5)](_0x175440=>{if(ot(_0x175440))return new Promise(_0x148b84=>{const _0x1483c4=_0x21f5;this[_0x1483c4(0xb9)][_0x1483c4(0xb6)](_0x1d4d6b,{'resolve':_0x148b84,'suggestionData':_0xacb32c});});throw _0x175440;});return this[_0x4b8026(0xb9)][_0x4b8026(0xcf)](_0x1d4d6b),_0x20e82b;},'updateSuggestion':async(_0x213e07,_0x3ea85c)=>{const _0x15722c=_0x311350;if(await this[_0x15722c(0xbc)](),_0x15722c(0xc2)!==_0x3ea85c[_0x15722c(0xea)])return this[_0x15722c(0xc9)][_0x15722c(0xd4)](_0x213e07,_0x3ea85c)[_0x15722c(0xe5)](tt);}},this[_0x311350(0xb3)](this[_0x311350(0xc9)],_0x311350(0xdf),(_0xcaa070,_0x58c559)=>{const _0x29a8fe=_0x311350;_0x56e8e9[_0x29a8fe(0xe9)](_0x58c559['id'])&&(_0x56e8e9[_0x29a8fe(0xed)](_0x58c559['id'])[_0x29a8fe(0xda)]=_0x58c559[_0x29a8fe(0xda)]);}),this[_0x311350(0xc9)][_0x311350(0xb4)](_0x5d6fac[_0x311350(0xb1)])[_0x311350(0xd3)](_0x2e13d9=>(_0x5d6fac[_0x311350(0xe2)](this),this[_0x311350(0xb8)](_0x2e13d9)[_0x311350(0xd3)](()=>{const _0x49e7a0=_0x311350;for(const _0x148467 of _0x2e13d9){_0x56e8e9[_0x49e7a0(0xd2)](_0x148467)[_0x49e7a0(0xd7)]=!0x0;}})));}async[_0x7c766f(0xbf)](){const _0x320310=_0x7c766f,_0x2f597e=this[_0x320310(0xdb)][_0x320310(0xae)][_0x320310(0xd6)](_0x320310(0xee)),{connection:_0x9e464b}=this[_0x320310(0xdb)][_0x320310(0xae)][_0x320310(0xd6)](_0x5e7d99),_0x539bf6=await this[_0x320310(0xc9)][_0x320310(0xb4)](_0x9e464b);await this[_0x320310(0xb8)](_0x539bf6);for(const {suggestionData:_0x5baca1,resolve:_0x3baffe}of this[_0x320310(0xb9)][_0x320310(0xca)]()){let _0x1f3e79=_0x539bf6[_0x320310(0xe1)](_0x582f62=>_0x582f62['id']===_0x5baca1['id']);_0x1f3e79||(_0x1f3e79=await this[_0x320310(0xc9)][_0x320310(0xaf)](_0x5baca1['id'],_0x5baca1[_0x320310(0xc1)],_0x5baca1[_0x320310(0xdc)],_0x5baca1[_0x320310(0xcc)])),_0x3baffe(_0x1f3e79);}for(const _0xfde65f of _0x539bf6)_0x2f597e[_0x320310(0xe9)](_0xfde65f['id'])||_0x2f597e[_0x320310(0xd2)](_0xfde65f);}async[_0x7c766f(0xbc)](){const _0x2e3cd6=_0x7c766f;this[_0x2e3cd6(0xc9)][_0x2e3cd6(0xdd)]||await new Promise(_0x1e09b3=>{const _0x4e6510=_0x2e3cd6;this[_0x4e6510(0xb3)](this[_0x4e6510(0xc9)],_0x4e6510(0xd0),_0x591611=>{const _0x56d592=_0x4e6510;_0x591611[_0x56d592(0xcd)](),_0x1e09b3();});});}async[_0x7c766f(0xb8)](_0x378c8d){const _0xf3d735=_0x7c766f,_0x17cfca=this[_0xf3d735(0xdb)][_0xf3d735(0xae)][_0xf3d735(0xd6)](_0x286bc2),{connection:_0x43560a}=this[_0xf3d735(0xdb)][_0xf3d735(0xae)][_0xf3d735(0xd6)](_0x5e7d99),_0x8861b7=new Set();for(const {authorId:_0x1be6aa}of _0x378c8d)_0x17cfca[_0xf3d735(0xb0)](_0x1be6aa)||_0x8861b7[_0xf3d735(0xaf)](_0x1be6aa);if(0x0===_0x8861b7[_0xf3d735(0xb2)])return;const _0x1bdbcf=await _0x467636[_0xf3d735(0xe0)](_0x43560a,Array[_0xf3d735(0xba)](_0x8861b7));for(const _0x1f4e2f of _0x1bdbcf)_0x17cfca[_0xf3d735(0xb0)](_0x1f4e2f['id'])||_0x17cfca[_0xf3d735(0xc5)](_0x1f4e2f);}}function tt(_0x4d5c28){if(ot(_0x4d5c28))return new Promise(()=>{});throw _0x4d5c28;}function ot(_0x232038){const _0x461f18=_0x7c766f;return _0x232038[_0x461f18(0xb7)][_0x461f18(0xec)](_0x461f18(0xb5))||_0x232038[_0x461f18(0xb7)][_0x461f18(0xec)](_0x461f18(0xe8));}
|