@ckeditor/ckeditor5-real-time-collaboration 46.0.0-alpha.5 → 46.0.0-alpha.6

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.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xd067(){const _0xf290ca=['isOfficialPlugin','isInline','getUserBySessionId','addMarker','setCustomProperty','addEventListener','delete','color','user:','609133ELLuJg','clear','toDomElement','deletionPosition','keydown','ck-user__marker-tooltip','spellcheck','update:user:range','createUserMarkerOperations','536JFMMYY','checkChild','isCollapsed','createUIElement','add','for','listenTo','426786LUrynz','false','editor','conversion','$text','editingDowncast','has','user:range:','markers','marker','mySessionId','35321gEXfhk','reconvertMarker','mapper','batch','contenteditable','applyOperation','getCustomProperty','getRange','Escape','innerHTML','UserMarkers','markerNameToElements','removeMarker','get','user:position:','getAttribute','rootName','setAttribute','parent','classList','outerHTML','16925vrkwuO','remove','change:range','updateMarker','highest','tableCell','newRange','createRange','ck-user__selection','removeClass','type','destroy','mouseenter','data-session-id','5330ayqgJF','schema','start','createElement','getFirstRange','markerName','36XwaUbg','getContainedElement','isDocumentOperation','14687QAiIMQ','commands','getMarkerClass','markerToElement','init','fromRange','detach','markerRange','view','change','670752wRlKTm','isSimilar','_createdBatches','isLimit','getNearestSelectionRange','split','8stMqcw','plugins','$graveyard','editing','isObject','requires','oldRange','undo','orderNumber','ck-user__marker\x20','name','afterInit','hasContent','document','user:range','userPositionMarker','_domEmitter','toRange','mouseleave','hasDomSelection','getStart','textContent','set','ck-user__marker_hovered','enqueueChange','markerToHighlight','pluginName','nodeAfter','stopListening','isPremiumPlugin','getSelectionClass','user:position','render','element','⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','root','selection','getPositions','3900132gvAoTy','model','size','end','startsWith','span'];_0xd067=function(){return _0xf290ca;};return _0xd067();}const _0x23900f=_0x3c6d;(function(_0x4bc9b5,_0x5a6d9e){const _0x2da9df=_0x3c6d,_0x55d5e2=_0x4bc9b5();while(!![]){try{const _0x58e02b=-parseInt(_0x2da9df(0x12d))/0x1*(parseInt(_0x2da9df(0x13d))/0x2)+parseInt(_0x2da9df(0x182))/0x3+-parseInt(_0x2da9df(0x17b))/0x4*(parseInt(_0x2da9df(0x1a2))/0x5)+-parseInt(_0x2da9df(0x12a))/0x6*(parseInt(_0x2da9df(0x172))/0x7)+-parseInt(_0x2da9df(0x137))/0x8+-parseInt(_0x2da9df(0x163))/0x9+-parseInt(_0x2da9df(0x124))/0xa*(-parseInt(_0x2da9df(0x18d))/0xb);if(_0x58e02b===_0x5a6d9e)break;else _0x55d5e2['push'](_0x55d5e2['shift']());}catch(_0x3f2026){_0x55d5e2['push'](_0x55d5e2['shift']());}}}(_0xd067,0x49c01));import{Plugin as _0x3b0c83}from'ckeditor5/src/core.js';import{global as _0x13a9c3,DomEmitterMixin as _0x206e3d}from'ckeditor5/src/utils.js';function _0x3c6d(_0x4d1c98,_0x5d83d7){const _0xd06703=_0xd067();return _0x3c6d=function(_0x3c6d5e,_0x5eb5cd){_0x3c6d5e=_0x3c6d5e-0x11c;let _0x299206=_0xd06703[_0x3c6d5e];return _0x299206;},_0x3c6d(_0x4d1c98,_0x5d83d7);}import{Sessions as _0x55341d}from'./sessions.js';import{ModelLiveRange as _0x365cdb}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x3b0c83{[_0x23900f(0x14d)]=new(_0x206e3d())();static get[_0x23900f(0x142)](){return[_0x55341d];}static get[_0x23900f(0x157)](){const _0x47255d=_0x23900f;return _0x47255d(0x197);}static get[_0x23900f(0x169)](){return!0x0;}static get[_0x23900f(0x15a)](){return!0x0;}[_0x23900f(0x131)](){const _0x5e8884=_0x23900f,_0x67b830=this[_0x5e8884(0x184)],_0x2f0a71=_0x67b830[_0x5e8884(0x13e)][_0x5e8884(0x19a)](_0x55341d);_0x67b830[_0x5e8884(0x185)][_0x5e8884(0x180)](_0x5e8884(0x187))[_0x5e8884(0x130)]({'model':_0x5e8884(0x15c),'view':(_0x276e20,{writer:_0xd89d68})=>function(_0x385751,_0x1d2280,_0x12863a,_0xfbbd1e){const _0x309f6=_0x5e8884,_0x445046=_0x385751[_0x309f6(0x129)][_0x309f6(0x13c)](':')[0x2],_0x575e2a=_0x12863a[_0x309f6(0x16b)](_0x445046);if(!_0x575e2a||_0x445046===_0x12863a[_0x309f6(0x18c)])return;if(!_0xfbbd1e[_0x309f6(0x164)][_0x309f6(0x125)][_0x309f6(0x17c)](_0x385751[_0x309f6(0x134)][_0x309f6(0x126)],_0x309f6(0x186)))return;const _0x4f5635={'class':_0x309f6(0x146)+_0x575e2a[_0x309f6(0x170)][_0x309f6(0x12f)](),'data-name':_0x575e2a[_0x309f6(0x147)],'data-session-id':_0x445046},_0x53c8e7=_0xfbbd1e[_0x309f6(0x164)][_0x309f6(0x18a)][_0x309f6(0x19a)](_0x385751[_0x309f6(0x129)]),_0x32aad1=_0x53c8e7[_0x309f6(0x151)](),_0x376842=_0x32aad1[_0x309f6(0x158)],_0x46b8b7=_0xfbbd1e[_0x309f6(0x164)][_0x309f6(0x125)];if(_0x376842&&_0x46b8b7[_0x309f6(0x141)](_0x376842)&&_0x46b8b7[_0x309f6(0x16a)](_0x376842)&&!_0xfbbd1e[_0x309f6(0x164)][_0x309f6(0x18a)][_0x309f6(0x19a)](_0x309f6(0x189)+_0x445046)[_0x309f6(0x194)]()[_0x309f6(0x17d)])return;const _0x5983c6=_0x32aad1[_0x309f6(0x19f)];return _0xfbbd1e[_0x309f6(0x164)][_0x309f6(0x125)][_0x309f6(0x13a)](_0x5983c6)&&!_0xfbbd1e[_0x309f6(0x164)][_0x309f6(0x149)](_0x5983c6)&&(_0x4f5635[_0x309f6(0x191)]=!0x1),function(_0x4262f5,_0x29d253,_0x27d33c){const _0x3b668e=_0x309f6,_0x2d32bd=_0x4262f5[_0x3b668e(0x17e)](_0x3b668e(0x168),_0x29d253);return _0x4262f5[_0x3b668e(0x16d)](_0x3b668e(0x14c),!0x0,_0x2d32bd),_0x2d32bd[_0x3b668e(0x15d)]=function(_0x243f74){const _0x106a30=_0x3b668e,_0x20adcf=this[_0x106a30(0x174)](_0x243f74),_0x4632a5=document[_0x106a30(0x127)](_0x106a30(0x168));return _0x4632a5[_0x106a30(0x1a0)][_0x106a30(0x17f)](_0x106a30(0x177)),_0x4632a5[_0x106a30(0x19e)](_0x106a30(0x191),_0x106a30(0x183)),_0x4632a5[_0x106a30(0x19e)](_0x106a30(0x178),_0x106a30(0x183)),_0x4632a5[_0x106a30(0x152)]=_0x27d33c[_0x106a30(0x147)],_0x20adcf[_0x106a30(0x196)]=_0x106a30(0x15f)+_0x4632a5[_0x106a30(0x1a1)]+'⁠',_0x20adcf[_0x106a30(0x16e)](_0x106a30(0x122),()=>{const _0x4e23ec=_0x106a30;_0x20adcf[_0x4e23ec(0x1a0)][_0x4e23ec(0x17f)](_0x4e23ec(0x154));}),_0x20adcf[_0x106a30(0x16e)](_0x106a30(0x14f),()=>{const _0x2fc564=_0x106a30;_0x20adcf[_0x2fc564(0x1a0)][_0x2fc564(0x1a3)](_0x2fc564(0x154));}),_0x20adcf;},_0x2d32bd[_0x3b668e(0x138)]=function(_0x3dbaf6){const _0x13423c=_0x3b668e;return!(!this[_0x13423c(0x193)](_0x13423c(0x14c))||!_0x3dbaf6[_0x13423c(0x193)](_0x13423c(0x14c))||this[_0x13423c(0x19c)](_0x13423c(0x123))!=_0x3dbaf6[_0x13423c(0x19c)](_0x13423c(0x123)));},_0x2d32bd;}(_0x1d2280,_0x4f5635,_0x575e2a);}(_0x276e20,_0xd89d68,_0x2f0a71,_0x67b830)}),_0x67b830[_0x5e8884(0x185)][_0x5e8884(0x180)](_0x5e8884(0x187))[_0x5e8884(0x156)]({'model':_0x5e8884(0x14b),'view':_0x4c978a=>function(_0x15637c,_0x5eb64a){const _0x3f56df=_0x5e8884,_0x323756=_0x15637c[_0x3f56df(0x129)][_0x3f56df(0x13c)](':')[0x2];if(_0x323756===_0x5eb64a[_0x3f56df(0x18c)])return null;const _0x1be2b8=_0x5eb64a[_0x3f56df(0x16b)](_0x323756);if(!_0x1be2b8)return{'id':_0x323756,'classes':[]};return{'id':_0x323756,'classes':[_0x3f56df(0x11e),_0x1be2b8[_0x3f56df(0x170)][_0x3f56df(0x15b)]()],'attributes':{'data-session-id':_0x323756},'priority':0x7d0+_0x1be2b8[_0x3f56df(0x145)]};}(_0x4c978a,_0x2f0a71)}),function(_0x315926){const _0x1fa378=_0x5e8884,_0x36d385=_0x315926[_0x1fa378(0x164)],_0x5a1bdf=new Map(),_0x5e78f8=_0x315926[_0x1fa378(0x13e)][_0x1fa378(0x19a)](_0x55341d);_0x36d385[_0x1fa378(0x18a)]['on'](_0x1fa378(0x179),(_0x4db3c0,_0x5b6a46,_0x32eabd,_0x3b0a08)=>{const _0x438736=_0x1fa378;if(!_0x3b0a08&&_0x5a1bdf[_0x438736(0x19a)](_0x5b6a46[_0x438736(0x147)]))return _0x5a1bdf[_0x438736(0x19a)](_0x5b6a46[_0x438736(0x147)])[_0x438736(0x133)](),void _0x5a1bdf[_0x438736(0x16f)](_0x5b6a46[_0x438736(0x147)]);const _0x326f12=_0x5b6a46[_0x438736(0x147)][_0x438736(0x13c)](':')[0x2];if(_0x326f12===_0x5e78f8[_0x438736(0x18c)])return;const _0x4efdae=_0x438736(0x19b)+_0x326f12;_0x36d385[_0x438736(0x18a)][_0x438736(0x188)](_0x4efdae)&&_0x315926[_0x438736(0x140)][_0x438736(0x18e)](_0x4efdae),_0x5b6a46['on'](_0x438736(0x1a4),(_0x534786,_0x3b35f2,_0x42908b)=>{const _0x1dac84=_0x438736;if(_0x1dac84(0x13f)!=_0x3b35f2[_0x1dac84(0x160)][_0x1dac84(0x19d)]&&_0x1dac84(0x13f)==_0x5b6a46[_0x1dac84(0x194)]()[_0x1dac84(0x160)][_0x1dac84(0x19d)]&&!_0x5a1bdf[_0x1dac84(0x188)](_0x5b6a46[_0x1dac84(0x147)])){const _0x5c7131=_0x36d385[_0x1dac84(0x125)][_0x1dac84(0x13b)](_0x42908b[_0x1dac84(0x175)]);if(_0x5c7131){const _0x37513c=_0x365cdb[_0x1dac84(0x132)](_0x5c7131);_0x5a1bdf[_0x1dac84(0x153)](_0x5b6a46[_0x1dac84(0x147)],_0x37513c),_0x37513c['on'](_0x1dac84(0x1a4),(_0x5c0457,_0x5c24c1,_0x305dcf)=>{const _0x5ac88a=_0x1dac84;if(_0x5ac88a(0x13f)==_0x37513c[_0x5ac88a(0x160)][_0x5ac88a(0x19d)]){const _0x4f7271=_0x36d385[_0x5ac88a(0x125)][_0x5ac88a(0x13b)](_0x305dcf[_0x5ac88a(0x175)]);_0x4f7271?(_0x37513c[_0x5ac88a(0x126)]=_0x4f7271[_0x5ac88a(0x126)],_0x37513c[_0x5ac88a(0x166)]=_0x4f7271[_0x5ac88a(0x166)]):(_0x5a1bdf[_0x5ac88a(0x16f)](_0x5b6a46[_0x5ac88a(0x147)]),_0x37513c[_0x5ac88a(0x133)]());}});}}});}),_0x36d385[_0x1fa378(0x14a)]['on'](_0x1fa378(0x136),()=>{const _0x411ef6=_0x1fa378;_0x5a1bdf[_0x411ef6(0x165)]>0x0&&_0x36d385[_0x411ef6(0x155)]({'isUndoable':!0x1},_0x4ae1d7=>{const _0x33d71a=_0x411ef6;for(const [_0x417c50,_0x22c2c0]of _0x5a1bdf)_0x33d71a(0x13f)==_0x36d385[_0x33d71a(0x18a)][_0x33d71a(0x19a)](_0x417c50)[_0x33d71a(0x194)]()[_0x33d71a(0x160)][_0x33d71a(0x19d)]&&(J(_0x417c50[_0x33d71a(0x13c)](':')[0x2],_0x22c2c0[_0x33d71a(0x14e)](),_0x36d385,_0x4ae1d7),_0x22c2c0[_0x33d71a(0x133)]());_0x5a1bdf[_0x33d71a(0x173)]();});});}(_0x67b830),this[_0x5e8884(0x14d)][_0x5e8884(0x181)](_0x13a9c3[_0x5e8884(0x14a)],_0x5e8884(0x176),(_0x3b8a47,{key:_0x5674aa})=>{const _0x124383=_0x5e8884;_0x124383(0x195)===_0x5674aa&&function(_0xc1e93){const _0x314c47=_0x124383;_0xc1e93[_0x314c47(0x140)][_0x314c47(0x135)][_0x314c47(0x136)](_0xb111ae=>{const _0x25b651=_0x314c47;for(const _0x358962 of _0xc1e93[_0x25b651(0x164)][_0x25b651(0x18a)]){if(!_0x358962[_0x25b651(0x147)][_0x25b651(0x167)](_0x25b651(0x15c)))continue;const _0x443ff9=_0xc1e93[_0x25b651(0x140)][_0x25b651(0x18f)][_0x25b651(0x198)](_0x358962[_0x25b651(0x147)]);if(_0x443ff9){for(const _0x198a47 of _0x443ff9)_0xb111ae[_0x25b651(0x11f)](_0x25b651(0x154),_0x198a47);}}});}(_0x67b830);},{'useCapture':!0x0});}[_0x23900f(0x148)](){const _0x365902=_0x23900f,_0x5e69e9=this[_0x365902(0x184)],_0x1e9f8b=_0x5e69e9[_0x365902(0x12e)][_0x365902(0x19a)](_0x365902(0x144));_0x1e9f8b&&_0x5e69e9[_0x365902(0x164)]['on'](_0x365902(0x192),(_0x131b98,_0x3d7607)=>{const _0x49ae80=_0x365902,_0x2c0e15=_0x3d7607[0x0];if(!_0x2c0e15[_0x49ae80(0x12c)])return;if(_0x49ae80(0x18b)!=_0x2c0e15[_0x49ae80(0x120)]||!_0x2c0e15[_0x49ae80(0x147)][_0x49ae80(0x167)](_0x49ae80(0x171)))return;const _0x5cc96d=_0x2c0e15[_0x49ae80(0x190)];_0x1e9f8b[_0x49ae80(0x139)][_0x49ae80(0x188)](_0x5cc96d)&&(_0x2c0e15[_0x49ae80(0x11c)]=_0x2c0e15[_0x49ae80(0x143)]?_0x5e69e9[_0x49ae80(0x164)][_0x49ae80(0x11d)](_0x2c0e15[_0x49ae80(0x143)][_0x49ae80(0x126)],_0x2c0e15[_0x49ae80(0x143)][_0x49ae80(0x166)]):null);},{'priority':_0x365902(0x1a6)});}[_0x23900f(0x121)](){const _0x1909b2=_0x23900f;return this[_0x1909b2(0x14d)][_0x1909b2(0x159)](),super[_0x1909b2(0x121)]();}[_0x23900f(0x17a)](){const _0xd000d3=_0x23900f,_0x42dcb3=this[_0xd000d3(0x184)],_0x1cd7b8=_0x42dcb3[_0xd000d3(0x164)][_0xd000d3(0x14a)],_0x574c07=_0x42dcb3[_0xd000d3(0x13e)][_0xd000d3(0x19a)](_0x55341d);_0x42dcb3[_0xd000d3(0x164)][_0xd000d3(0x155)]({'isUndoable':!0x1},_0xf8e752=>{const _0x760bf9=_0xd000d3,_0x367530=_0x760bf9(0x189)+_0x574c07[_0x760bf9(0x18c)],_0x13b435=_0x760bf9(0x19b)+_0x574c07[_0x760bf9(0x18c)],_0x74d798=_0x42dcb3[_0x760bf9(0x164)][_0x760bf9(0x18a)][_0x760bf9(0x188)](_0x367530);_0x42dcb3[_0x760bf9(0x140)][_0x760bf9(0x135)][_0x760bf9(0x150)]?J(_0x574c07[_0x760bf9(0x18c)],_0x1cd7b8[_0x760bf9(0x161)][_0x760bf9(0x128)](),_0x42dcb3[_0x760bf9(0x164)],_0xf8e752):_0x74d798&&(_0xf8e752[_0x760bf9(0x199)](_0x367530),_0xf8e752[_0x760bf9(0x199)](_0x13b435));});}}function J(_0x1f39d3,_0x457d49,_0x4eee30,_0x5c80de){const _0x2b0f6d=_0x23900f,_0x4b499b=_0x2b0f6d(0x189)+_0x1f39d3,_0x3f27d7=_0x2b0f6d(0x19b)+_0x1f39d3,_0x134681=_0x457d49[_0x2b0f6d(0x12b)]();let _0x25cd6d=_0x457d49[_0x2b0f6d(0x126)];if(_0x134681&&_0x134681['is'](_0x2b0f6d(0x15e),_0x2b0f6d(0x1a7))){const _0x52b3ce=function(_0x14f8a1,_0x5790c1){const _0x4eda7=_0x2b0f6d;for(const _0xfc0239 of _0x14f8a1[_0x4eda7(0x162)]())if(_0x5790c1[_0x4eda7(0x125)][_0x4eda7(0x17c)](_0xfc0239,_0x4eda7(0x186)))return _0xfc0239;}(_0x457d49,_0x4eee30);_0x52b3ce&&(_0x25cd6d=_0x52b3ce,_0x457d49=_0x5c80de[_0x2b0f6d(0x11d)](_0x25cd6d));}const _0x4ed290=_0x5c80de[_0x2b0f6d(0x11d)](_0x25cd6d);_0x4eee30[_0x2b0f6d(0x18a)][_0x2b0f6d(0x188)](_0x4b499b)?(_0x5c80de[_0x2b0f6d(0x1a5)](_0x4b499b,{'range':_0x457d49}),_0x5c80de[_0x2b0f6d(0x1a5)](_0x3f27d7,{'range':_0x4ed290})):(_0x5c80de[_0x2b0f6d(0x16c)](_0x4b499b,{'range':_0x457d49,'usingOperation':!0x0}),_0x5c80de[_0x2b0f6d(0x16c)](_0x3f27d7,{'range':_0x4ed290,'usingOperation':!0x0}));}
23
+ const _0x1ed243=_0x2c03;(function(_0x2cad80,_0x50e415){const _0x4401a7=_0x2c03,_0x38e076=_0x2cad80();while(!![]){try{const _0x2d1a90=parseInt(_0x4401a7(0x1c3))/0x1*(-parseInt(_0x4401a7(0x1d6))/0x2)+parseInt(_0x4401a7(0x1ee))/0x3*(-parseInt(_0x4401a7(0x1dc))/0x4)+-parseInt(_0x4401a7(0x221))/0x5*(-parseInt(_0x4401a7(0x1c9))/0x6)+-parseInt(_0x4401a7(0x1af))/0x7*(-parseInt(_0x4401a7(0x20f))/0x8)+parseInt(_0x4401a7(0x1ac))/0x9+-parseInt(_0x4401a7(0x1f0))/0xa+parseInt(_0x4401a7(0x200))/0xb;if(_0x2d1a90===_0x50e415)break;else _0x38e076['push'](_0x38e076['shift']());}catch(_0x382478){_0x38e076['push'](_0x38e076['shift']());}}}(_0x2779,0x6aeb3));import{Plugin as _0x514fab}from'ckeditor5/src/core.js';import{global as _0x2394ad,DomEmitterMixin as _0x13b138}from'ckeditor5/src/utils.js';import{Sessions as _0x355080}from'./sessions.js';import{ModelLiveRange as _0x1d38cf}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';function _0x2c03(_0x307ff3,_0x3df7c1){const _0x277938=_0x2779();return _0x2c03=function(_0x2c03f1,_0x325874){_0x2c03f1=_0x2c03f1-0x1ab;let _0x5b8dbd=_0x277938[_0x2c03f1];return _0x5b8dbd;},_0x2c03(_0x307ff3,_0x3df7c1);}export class UserMarkers extends _0x514fab{[_0x1ed243(0x232)]=new(_0x13b138())();static get[_0x1ed243(0x233)](){return[_0x355080];}static get[_0x1ed243(0x1ad)](){const _0x573f66=_0x1ed243;return _0x573f66(0x21f);}static get[_0x1ed243(0x224)](){return!0x0;}static get[_0x1ed243(0x22d)](){return!0x0;}[_0x1ed243(0x202)](){const _0x149fc9=_0x1ed243,_0x3fe26a=this[_0x149fc9(0x208)],_0x48b7d6=_0x3fe26a[_0x149fc9(0x1e1)][_0x149fc9(0x1b2)](_0x355080);_0x3fe26a[_0x149fc9(0x214)][_0x149fc9(0x1de)](_0x149fc9(0x22a))[_0x149fc9(0x1db)]({'model':_0x149fc9(0x1b4),'view':(_0x186d99,{writer:_0x10d843})=>function(_0x47a9f0,_0x3d39b,_0x2c32ef,_0x2acd5e){const _0xcacda0=_0x149fc9,_0x4695d1=_0x47a9f0[_0xcacda0(0x1ce)][_0xcacda0(0x20b)](':')[0x2],_0x105af4=_0x2c32ef[_0xcacda0(0x21c)](_0x4695d1);if(!_0x105af4||_0x4695d1===_0x2c32ef[_0xcacda0(0x1cf)])return;if(!_0x2acd5e[_0xcacda0(0x1f6)][_0xcacda0(0x1cd)][_0xcacda0(0x235)](_0x47a9f0[_0xcacda0(0x1d9)][_0xcacda0(0x1c4)],_0xcacda0(0x210)))return;const _0x38c651={'class':_0xcacda0(0x206)+_0x105af4[_0xcacda0(0x215)][_0xcacda0(0x22b)](),'data-name':_0x105af4[_0xcacda0(0x1eb)],'data-session-id':_0x4695d1},_0x2e4af5=_0x2acd5e[_0xcacda0(0x1f6)][_0xcacda0(0x1dd)][_0xcacda0(0x1b2)](_0x47a9f0[_0xcacda0(0x1ce)]),_0x5db449=_0x2e4af5[_0xcacda0(0x226)](),_0x59db8a=_0x5db449[_0xcacda0(0x212)],_0xbd208f=_0x2acd5e[_0xcacda0(0x1f6)][_0xcacda0(0x1cd)];if(_0x59db8a&&_0xbd208f[_0xcacda0(0x1b9)](_0x59db8a)&&_0xbd208f[_0xcacda0(0x1c2)](_0x59db8a)&&!_0x2acd5e[_0xcacda0(0x1f6)][_0xcacda0(0x1dd)][_0xcacda0(0x1b2)](_0xcacda0(0x21e)+_0x4695d1)[_0xcacda0(0x211)]()[_0xcacda0(0x229)])return;const _0x8ff5d0=_0x5db449[_0xcacda0(0x22c)];return _0x2acd5e[_0xcacda0(0x1f6)][_0xcacda0(0x1cd)][_0xcacda0(0x22f)](_0x8ff5d0)&&!_0x2acd5e[_0xcacda0(0x1f6)][_0xcacda0(0x1c8)](_0x8ff5d0)&&(_0x38c651[_0xcacda0(0x1fd)]=!0x1),function(_0x4aeb6f,_0xfa337f,_0x3c6bb6){const _0x4832ca=_0xcacda0,_0x5009f4=_0x4aeb6f[_0x4832ca(0x1f2)](_0x4832ca(0x1d7),_0xfa337f);return _0x4aeb6f[_0x4832ca(0x1b3)](_0x4832ca(0x227),!0x0,_0x5009f4),_0x5009f4[_0x4832ca(0x236)]=function(_0x510dda){const _0x256340=_0x4832ca,_0x4476b2=this[_0x256340(0x1bd)](_0x510dda),_0x2de5f6=document[_0x256340(0x1b7)](_0x256340(0x1d7));return _0x2de5f6[_0x256340(0x217)][_0x256340(0x219)](_0x256340(0x1c5)),_0x2de5f6[_0x256340(0x218)](_0x256340(0x1fd),_0x256340(0x1b8)),_0x2de5f6[_0x256340(0x218)](_0x256340(0x1b5),_0x256340(0x1b8)),_0x2de5f6[_0x256340(0x1f1)]=_0x3c6bb6[_0x256340(0x1eb)],_0x4476b2[_0x256340(0x1c0)]=_0x256340(0x1ca)+_0x2de5f6[_0x256340(0x1f9)]+'⁠',_0x4476b2[_0x256340(0x201)](_0x256340(0x1cb),()=>{const _0x275066=_0x256340;_0x4476b2[_0x275066(0x217)][_0x275066(0x219)](_0x275066(0x1ba));}),_0x4476b2[_0x256340(0x201)](_0x256340(0x20d),()=>{const _0xdff1a5=_0x256340;_0x4476b2[_0xdff1a5(0x217)][_0xdff1a5(0x1e3)](_0xdff1a5(0x1ba));}),_0x4476b2;},_0x5009f4[_0x4832ca(0x213)]=function(_0x2aa208){const _0x2ba065=_0x4832ca;return!(!this[_0x2ba065(0x1d2)](_0x2ba065(0x227))||!_0x2aa208[_0x2ba065(0x1d2)](_0x2ba065(0x227))||this[_0x2ba065(0x1e0)](_0x2ba065(0x1d0))!=_0x2aa208[_0x2ba065(0x1e0)](_0x2ba065(0x1d0)));},_0x5009f4;}(_0x3d39b,_0x38c651,_0x105af4);}(_0x186d99,_0x10d843,_0x48b7d6,_0x3fe26a)}),_0x3fe26a[_0x149fc9(0x214)][_0x149fc9(0x1de)](_0x149fc9(0x22a))[_0x149fc9(0x234)]({'model':_0x149fc9(0x231),'view':_0x3b33cc=>function(_0x16598b,_0x17fbf0){const _0x59b2f2=_0x149fc9,_0x17ff99=_0x16598b[_0x59b2f2(0x1ce)][_0x59b2f2(0x20b)](':')[0x2];if(_0x17ff99===_0x17fbf0[_0x59b2f2(0x1cf)])return null;const _0x241374=_0x17fbf0[_0x59b2f2(0x21c)](_0x17ff99);if(!_0x241374)return{'id':_0x17ff99,'classes':[]};return{'id':_0x17ff99,'classes':[_0x59b2f2(0x1d3),_0x241374[_0x59b2f2(0x215)][_0x59b2f2(0x21a)]()],'attributes':{'data-session-id':_0x17ff99},'priority':0x7d0+_0x241374[_0x59b2f2(0x21b)]};}(_0x3b33cc,_0x48b7d6)}),function(_0x50ff50){const _0x43ed76=_0x149fc9,_0x588244=_0x50ff50[_0x43ed76(0x1f6)],_0x59a59e=new Map(),_0x58857c=_0x50ff50[_0x43ed76(0x1e1)][_0x43ed76(0x1b2)](_0x355080);_0x588244[_0x43ed76(0x1dd)]['on'](_0x43ed76(0x20c),(_0x7d74a1,_0x53819d,_0xc190aa,_0x243d51)=>{const _0x38eda9=_0x43ed76;if(!_0x243d51&&_0x59a59e[_0x38eda9(0x1b2)](_0x53819d[_0x38eda9(0x1eb)]))return _0x59a59e[_0x38eda9(0x1b2)](_0x53819d[_0x38eda9(0x1eb)])[_0x38eda9(0x1da)](),void _0x59a59e[_0x38eda9(0x216)](_0x53819d[_0x38eda9(0x1eb)]);const _0x3b2ace=_0x53819d[_0x38eda9(0x1eb)][_0x38eda9(0x20b)](':')[0x2];if(_0x3b2ace===_0x58857c[_0x38eda9(0x1cf)])return;const _0x4e98a4=_0x38eda9(0x1e6)+_0x3b2ace;_0x588244[_0x38eda9(0x1dd)][_0x38eda9(0x1b0)](_0x4e98a4)&&_0x50ff50[_0x38eda9(0x1fa)][_0x38eda9(0x223)](_0x4e98a4),_0x53819d['on'](_0x38eda9(0x1d8),(_0x4f100c,_0x3684b4,_0x2b44f8)=>{const _0x47ee09=_0x38eda9;if(_0x47ee09(0x1f5)!=_0x3684b4[_0x47ee09(0x1df)][_0x47ee09(0x1f7)]&&_0x47ee09(0x1f5)==_0x53819d[_0x47ee09(0x211)]()[_0x47ee09(0x1df)][_0x47ee09(0x1f7)]&&!_0x59a59e[_0x47ee09(0x1b0)](_0x53819d[_0x47ee09(0x1eb)])){const _0x33bb16=_0x588244[_0x47ee09(0x1cd)][_0x47ee09(0x1ec)](_0x2b44f8[_0x47ee09(0x207)]);if(_0x33bb16){const _0x2670ef=_0x1d38cf[_0x47ee09(0x1ed)](_0x33bb16);_0x59a59e[_0x47ee09(0x203)](_0x53819d[_0x47ee09(0x1eb)],_0x2670ef),_0x2670ef['on'](_0x47ee09(0x1d8),(_0x32be1c,_0x301985,_0x21b5c5)=>{const _0x26285b=_0x47ee09;if(_0x26285b(0x1f5)==_0x2670ef[_0x26285b(0x1df)][_0x26285b(0x1f7)]){const _0x1174c6=_0x588244[_0x26285b(0x1cd)][_0x26285b(0x1ec)](_0x21b5c5[_0x26285b(0x207)]);_0x1174c6?(_0x2670ef[_0x26285b(0x1c4)]=_0x1174c6[_0x26285b(0x1c4)],_0x2670ef[_0x26285b(0x1c1)]=_0x1174c6[_0x26285b(0x1c1)]):(_0x59a59e[_0x26285b(0x216)](_0x53819d[_0x26285b(0x1eb)]),_0x2670ef[_0x26285b(0x1da)]());}});}}});}),_0x588244[_0x43ed76(0x1d5)]['on'](_0x43ed76(0x1e9),()=>{const _0x138d92=_0x43ed76;_0x59a59e[_0x138d92(0x1fc)]>0x0&&_0x588244[_0x138d92(0x204)]({'isUndoable':!0x1},_0xbc04a3=>{const _0x31f12a=_0x138d92;for(const [_0x193480,_0x151a1f]of _0x59a59e)_0x31f12a(0x1f5)==_0x588244[_0x31f12a(0x1dd)][_0x31f12a(0x1b2)](_0x193480)[_0x31f12a(0x211)]()[_0x31f12a(0x1df)][_0x31f12a(0x1f7)]&&(Z(_0x193480[_0x31f12a(0x20b)](':')[0x2],_0x151a1f[_0x31f12a(0x1b6)](),_0x588244,_0xbc04a3),_0x151a1f[_0x31f12a(0x1da)]());_0x59a59e[_0x31f12a(0x1cc)]();});});}(_0x3fe26a),this[_0x149fc9(0x232)][_0x149fc9(0x20a)](_0x2394ad[_0x149fc9(0x1d5)],_0x149fc9(0x1bf),(_0x58c8ba,{key:_0x1036c8})=>{const _0x30e72d=_0x149fc9;_0x30e72d(0x1ef)===_0x1036c8&&function(_0x2c0936){const _0x47565d=_0x30e72d;_0x2c0936[_0x47565d(0x1fa)][_0x47565d(0x1be)][_0x47565d(0x1e9)](_0x3aa5d0=>{const _0x366d32=_0x47565d;for(const _0x40f995 of _0x2c0936[_0x366d32(0x1f6)][_0x366d32(0x1dd)]){if(!_0x40f995[_0x366d32(0x1eb)][_0x366d32(0x222)](_0x366d32(0x1b4)))continue;const _0x489497=_0x2c0936[_0x366d32(0x1fa)][_0x366d32(0x1ff)][_0x366d32(0x225)](_0x40f995[_0x366d32(0x1eb)]);if(_0x489497){for(const _0x24b721 of _0x489497)_0x3aa5d0[_0x366d32(0x1f8)](_0x366d32(0x1ba),_0x24b721);}}});}(_0x3fe26a);},{'useCapture':!0x0});}[_0x1ed243(0x1fb)](){const _0x5a0422=_0x1ed243,_0x546d32=this[_0x5a0422(0x208)],_0xcc6ce8=_0x546d32[_0x5a0422(0x1bc)][_0x5a0422(0x1b2)](_0x5a0422(0x1ea));_0xcc6ce8&&_0x546d32[_0x5a0422(0x1f6)]['on'](_0x5a0422(0x230),(_0x37621a,_0x2535f7)=>{const _0x5f4ea8=_0x5a0422,_0x1c28b5=_0x2535f7[0x0];if(!_0x1c28b5[_0x5f4ea8(0x1f4)])return;if(_0x5f4ea8(0x1c7)!=_0x1c28b5[_0x5f4ea8(0x1e2)]||!_0x1c28b5[_0x5f4ea8(0x1eb)][_0x5f4ea8(0x222)](_0x5f4ea8(0x1ae)))return;const _0x58cd92=_0x1c28b5[_0x5f4ea8(0x1f3)];_0xcc6ce8[_0x5f4ea8(0x1e5)][_0x5f4ea8(0x1b0)](_0x58cd92)&&(_0x1c28b5[_0x5f4ea8(0x21d)]=_0x1c28b5[_0x5f4ea8(0x205)]?_0x546d32[_0x5f4ea8(0x1f6)][_0x5f4ea8(0x22e)](_0x1c28b5[_0x5f4ea8(0x205)][_0x5f4ea8(0x1c4)],_0x1c28b5[_0x5f4ea8(0x205)][_0x5f4ea8(0x1c1)]):null);},{'priority':_0x5a0422(0x1d1)});}[_0x1ed243(0x1b1)](){const _0xd38ef2=_0x1ed243;return this[_0xd38ef2(0x232)][_0xd38ef2(0x1c6)](),super[_0xd38ef2(0x1b1)]();}[_0x1ed243(0x209)](){const _0x3ee005=_0x1ed243,_0x8cf360=this[_0x3ee005(0x208)],_0x2fc249=_0x8cf360[_0x3ee005(0x1f6)][_0x3ee005(0x1d5)],_0x1d666b=_0x8cf360[_0x3ee005(0x1e1)][_0x3ee005(0x1b2)](_0x355080);_0x8cf360[_0x3ee005(0x1f6)][_0x3ee005(0x204)]({'isUndoable':!0x1},_0x1f70f1=>{const _0x10f1fa=_0x3ee005,_0x3f5da4=_0x10f1fa(0x21e)+_0x1d666b[_0x10f1fa(0x1cf)],_0x4ba174=_0x10f1fa(0x1e6)+_0x1d666b[_0x10f1fa(0x1cf)],_0x34c2fc=_0x8cf360[_0x10f1fa(0x1f6)][_0x10f1fa(0x1dd)][_0x10f1fa(0x1b0)](_0x3f5da4);_0x8cf360[_0x10f1fa(0x1fa)][_0x10f1fa(0x1be)][_0x10f1fa(0x1fe)]?Z(_0x1d666b[_0x10f1fa(0x1cf)],_0x2fc249[_0x10f1fa(0x1d4)][_0x10f1fa(0x228)](),_0x8cf360[_0x10f1fa(0x1f6)],_0x1f70f1):_0x34c2fc&&(_0x1f70f1[_0x10f1fa(0x220)](_0x3f5da4),_0x1f70f1[_0x10f1fa(0x220)](_0x4ba174));});}}function _0x2779(){const _0x5dcc62=['innerHTML','end','isInline','1151NJgibp','start','ck-user__marker-tooltip','stopListening','marker','hasContent','7758bvVKfp','⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','mouseenter','clear','schema','markerName','mySessionId','data-session-id','highest','getCustomProperty','ck-user__selection','selection','document','458JyFmAt','span','change:range','markerRange','detach','markerToElement','364YmfeNT','markers','for','root','getAttribute','plugins','type','remove','getPositions','_createdBatches','user:position:','getContainedElement','updateMarker','change','undo','name','getNearestSelectionRange','fromRange','27543lGfmsc','Escape','7812600xehUBn','textContent','createUIElement','batch','isDocumentOperation','$graveyard','model','rootName','removeClass','outerHTML','editing','afterInit','size','contenteditable','hasDomSelection','mapper','11483021MIUngf','addEventListener','init','set','enqueueChange','oldRange','ck-user__marker\x20','deletionPosition','editor','createUserMarkerOperations','listenTo','split','update:user:range','mouseleave','addMarker','125368VignpV','$text','getRange','nodeAfter','isSimilar','conversion','color','delete','classList','setAttribute','add','getSelectionClass','orderNumber','getUserBySessionId','newRange','user:range:','UserMarkers','removeMarker','1875RSpxzZ','startsWith','reconvertMarker','isOfficialPlugin','markerNameToElements','getStart','userPositionMarker','getFirstRange','isCollapsed','editingDowncast','getMarkerClass','parent','isPremiumPlugin','createRange','isLimit','applyOperation','user:range','_domEmitter','requires','markerToHighlight','checkChild','render','element','4989582LiFaPk','pluginName','user:','105ODLIWm','has','destroy','get','setCustomProperty','user:position','spellcheck','toRange','createElement','false','isObject','ck-user__marker_hovered','tableCell','commands','toDomElement','view','keydown'];_0x2779=function(){return _0x5dcc62;};return _0x2779();}function Z(_0x32d80d,_0x3aaffe,_0x4e6b93,_0x495d6f){const _0x229f83=_0x1ed243,_0x5e5313=_0x229f83(0x21e)+_0x32d80d,_0xe38477=_0x229f83(0x1e6)+_0x32d80d,_0x7b750=_0x3aaffe[_0x229f83(0x1e7)]();let _0x139192=_0x3aaffe[_0x229f83(0x1c4)];if(_0x7b750&&_0x7b750['is'](_0x229f83(0x1ab),_0x229f83(0x1bb))){const _0x54eb17=function(_0x48898d,_0x440726){const _0x1620f4=_0x229f83;for(const _0x41aaa5 of _0x48898d[_0x1620f4(0x1e4)]())if(_0x440726[_0x1620f4(0x1cd)][_0x1620f4(0x235)](_0x41aaa5,_0x1620f4(0x210)))return _0x41aaa5;}(_0x3aaffe,_0x4e6b93);_0x54eb17&&(_0x139192=_0x54eb17,_0x3aaffe=_0x495d6f[_0x229f83(0x22e)](_0x139192));}const _0x337f9a=_0x495d6f[_0x229f83(0x22e)](_0x139192);_0x4e6b93[_0x229f83(0x1dd)][_0x229f83(0x1b0)](_0x5e5313)?(_0x495d6f[_0x229f83(0x1e8)](_0x5e5313,{'range':_0x3aaffe}),_0x495d6f[_0x229f83(0x1e8)](_0xe38477,{'range':_0x337f9a})):(_0x495d6f[_0x229f83(0x20e)](_0x5e5313,{'range':_0x3aaffe,'usingOperation':!0x0}),_0x495d6f[_0x229f83(0x20e)](_0xe38477,{'range':_0x337f9a,'usingOperation':!0x0}));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x498b18=_0x6f77;(function(_0xf97a17,_0x336d52){const _0x4ed6e8=_0x6f77,_0x23a607=_0xf97a17();while(!![]){try{const _0x557496=-parseInt(_0x4ed6e8(0x1bc))/0x1*(parseInt(_0x4ed6e8(0x19a))/0x2)+parseInt(_0x4ed6e8(0x1c4))/0x3*(-parseInt(_0x4ed6e8(0x197))/0x4)+-parseInt(_0x4ed6e8(0x1cc))/0x5*(-parseInt(_0x4ed6e8(0x195))/0x6)+-parseInt(_0x4ed6e8(0x1ac))/0x7+parseInt(_0x4ed6e8(0x198))/0x8+parseInt(_0x4ed6e8(0x1b2))/0x9+parseInt(_0x4ed6e8(0x1b5))/0xa;if(_0x557496===_0x336d52)break;else _0x23a607['push'](_0x23a607['shift']());}catch(_0x5676a2){_0x23a607['push'](_0x23a607['shift']());}}}(_0x2781,0x93eb4));import{ContextPlugin as _0x5115fc}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x45abe1,CKEditorError as _0xe441f8}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x313b9c,WEB_SOCKET_GATEWAY_STATES as _0x383c2b}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x1bfab1}from'ckeditor5/src/ui.js';class n extends _0x5115fc{static [_0x498b18(0x18d)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x313b9c)());static [_0x498b18(0x1b4)]=0x3e8;[_0x498b18(0x1c0)];[_0x498b18(0x1ca)];[_0x498b18(0x1b6)];[_0x498b18(0x19d)];static get[_0x498b18(0x1a5)](){const _0x3b5e4a=_0x498b18;return[_0x3b5e4a(0x1a9),_0x1bfab1];}static get[_0x498b18(0x1af)](){const _0x3853f3=_0x498b18;return _0x3853f3(0x18d);}static get[_0x498b18(0x1aa)](){return!0x0;}static get[_0x498b18(0x18f)](){return!0x0;}constructor(_0x43fe57){const _0x5d476e=_0x498b18;super(_0x43fe57),this[_0x5d476e(0x1cb)](_0x5d476e(0x1c5),_0x383c2b[_0x5d476e(0x18e)]),this[_0x5d476e(0x1cb)](_0x5d476e(0x1a1),!0x1),this[_0x5d476e(0x1ca)]=new Set(),this[_0x5d476e(0x1b6)]=!0x1,this[_0x5d476e(0x19d)]=new(_0x45abe1())();}[_0x498b18(0x1c7)](){const _0x50b900=_0x498b18,_0x1a2868=this[_0x50b900(0x1c3)],_0x2adc10=_0x1a2868[_0x50b900(0x192)][_0x50b900(0x1a7)](_0x50b900(0x1a9)),_0x2196b2=_0x1a2868[_0x50b900(0x192)][_0x50b900(0x1a7)](_0x1bfab1);if(!_0x2adc10[_0x50b900(0x1cd)])throw new _0xe441f8(_0x50b900(0x199),this);if(!_0x2adc10[_0x50b900(0x18c)])throw new _0xe441f8(_0x50b900(0x1b9),this);return this[_0x50b900(0x19d)][_0x50b900(0x1a6)](window,_0x50b900(0x1ae),()=>this[_0x50b900(0x1a1)]=!0x0),this[_0x50b900(0x19d)][_0x50b900(0x1a6)](window,_0x50b900(0x1ce),()=>this[_0x50b900(0x1a1)]=!0x1),this[_0x50b900(0x1c3)][_0x50b900(0x1c9)][_0x50b900(0x18a)](_0x50b900(0x1a3),0xa),this[_0x50b900(0x1c3)][_0x50b900(0x1c9)][_0x50b900(0x18a)](_0x50b900(0x194),0x14),n[_0x50b900(0x18d)][_0x50b900(0x186)](_0x2adc10[_0x50b900(0x1cd)],_0x2adc10[_0x50b900(0x18c)],{'timeout':0x3e8*this[_0x50b900(0x1c3)][_0x50b900(0x1c9)][_0x50b900(0x1a7)](_0x50b900(0x1a3)),'requestTimeout':0x3e8*this[_0x50b900(0x1c3)][_0x50b900(0x1c9)][_0x50b900(0x1a7)](_0x50b900(0x194))})[_0x50b900(0x1ba)](_0x401143=>{const _0x4431a7=_0x50b900;if(this[_0x4431a7(0x1c0)]=_0x401143,this[_0x4431a7(0x1be)](_0x4431a7(0x1c5))['to'](_0x401143,_0x4431a7(0x1c5),this,_0x4431a7(0x1a1),(_0x4023b0,_0x3397da)=>(_0x4431a7(0x1a0)!==_0x4023b0&&(this[_0x4431a7(0x1b6)]=!0x0),_0x3397da||_0x4023b0!==_0x383c2b[_0x4431a7(0x18e)]?_0x383c2b[_0x4431a7(0x196)]:this[_0x4431a7(0x1c5)]==_0x383c2b[_0x4431a7(0x196)]&&this[_0x4431a7(0x1b6)]?(this[_0x4431a7(0x1b6)]=!0x1,this[_0x4431a7(0x19f)](),_0x383c2b[_0x4431a7(0x1c2)]):_0x383c2b[_0x4431a7(0x18e)])),this[_0x4431a7(0x1c0)]['on'](_0x4431a7(0x1c8),(_0x166b3b,_0x1f5f37)=>{const _0x29c010=_0x4431a7;if(_0x29c010(0x19c)!==_0x1f5f37[_0x29c010(0x18b)])throw console[_0x29c010(0x1c8)](_0x1f5f37),new _0xe441f8(_0x29c010(0x188),null,{'originalError':_0x1f5f37});_0x2196b2[_0x29c010(0x19e)](_0x29c010(0x1bd),{'title':_0x29c010(0x1b8),'namespace':_0x29c010(0x189)});}),!_0x401143['me'])return new Promise(_0xecaee5=>_0x401143['on'](_0x4431a7(0x1a2),_0xecaee5));})[_0x50b900(0x193)](_0x474e42=>{const _0x5b3cbf=_0x50b900;throw console[_0x5b3cbf(0x1c8)](_0x474e42),new _0xe441f8(_0x5b3cbf(0x188),null,{'originalError':_0x474e42});});}[_0x498b18(0x1ad)](_0x17185f){const _0x410f86=_0x498b18;if(_0x410f86(0x19b)!=typeof _0x17185f[_0x410f86(0x1b1)])throw new _0xe441f8(_0x410f86(0x1ab),this);if(this[_0x410f86(0x191)](_0x17185f))throw new _0xe441f8(_0x410f86(0x1bb),this,{'name':_0x17185f[_0x410f86(0x1b3)][_0x410f86(0x1af)]});this[_0x410f86(0x1ca)][_0x410f86(0x187)](_0x17185f);}[_0x498b18(0x1a8)](_0x344a29){const _0x2be31a=_0x498b18;this[_0x2be31a(0x1ca)][_0x2be31a(0x1b0)](_0x344a29);}[_0x498b18(0x191)](_0x25a975){const _0x384e30=_0x498b18;return this[_0x384e30(0x1ca)][_0x384e30(0x1bf)](_0x25a975);}[_0x498b18(0x19f)](){const _0x2fca08=_0x498b18;return this[_0x2fca08(0x1c0)][_0x2fca08(0x1b1)]()[_0x2fca08(0x1ba)](()=>Promise[_0x2fca08(0x1b7)](Array[_0x2fca08(0x1c6)](this[_0x2fca08(0x1ca)],_0x55ddb1=>_0x55ddb1[_0x2fca08(0x1b1)]())))[_0x2fca08(0x1ba)](()=>this[_0x2fca08(0x1c5)]=_0x383c2b[_0x2fca08(0x18e)])[_0x2fca08(0x193)](_0x1b9e84=>{const _0x3c3961=_0x2fca08;throw console[_0x3c3961(0x1c8)](_0x1b9e84),new _0xe441f8(_0x3c3961(0x185),this[_0x3c3961(0x1c3)]);});}[_0x498b18(0x190)](){const _0x222bdf=_0x498b18;this[_0x222bdf(0x1c0)]&&this[_0x222bdf(0x1c0)][_0x222bdf(0x190)](),this[_0x222bdf(0x1c5)]=_0x383c2b[_0x222bdf(0x196)],this[_0x222bdf(0x19d)][_0x222bdf(0x1c1)]();}[_0x498b18(0x1a4)](){const _0x13d4db=_0x498b18;this[_0x13d4db(0x190)](),super[_0x13d4db(0x1a4)]();}}function _0x6f77(_0x124d29,_0xaff0f2){const _0x278105=_0x2781();return _0x6f77=function(_0x6f773c,_0x1cea49){_0x6f773c=_0x6f773c-0x185;let _0x912a84=_0x278105[_0x6f773c];return _0x912a84;},_0x6f77(_0x124d29,_0xaff0f2);}function _0x2781(){const _0x15eebc=['plugins','catch','cloudServices.requestTimeout','1668tzxxXB','DISCONNECTED','444CuFgBM','5676600MrlwvT','websocketgateway-missing-token','67378LwIjHx','function','limitExceeded','_domEmitter','showWarning','_reconnect','connected','_isBrowserOffline','change:me','cloudServices.connectionTimeout','destroy','requires','listenTo','get','removeFromReconnectionStack','CloudServices','isOfficialPlugin','websocketgateway-invalid-plugin-interface','5296746lGxdhG','addToReconnectionStack','offline','pluginName','delete','reconnect','7369587DYazse','constructor','initialReconnectionInterval','13345280NUeuuE','_shouldPluginsReconnect','all','Connected\x20users\x20limit\x20exceeded','websocketgateway-missing-websocket-url','then','websocketgateway-plugin-already-registered','23uZSUbA','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.','bind','has','connection','stopListening','CONNECTING','context','19707UwHZBF','state','from','init','error','config','_reconnectionStack','set','65VSgBen','token','online','cloudservices-reconnection-error','connect','add','cloudservices-init','real-time-collaboration','define','code','webSocketUrl','WebSocketGateway','CONNECTED','isPremiumPlugin','disconnect','isInReconnectionStack'];_0x2781=function(){return _0x15eebc;};return _0x2781();}export{n as WebSocketGateway};
23
+ const _0x1b9384=_0x4e8b;(function(_0x1ab903,_0x14f286){const _0x263151=_0x4e8b,_0x55c7ef=_0x1ab903();while(!![]){try{const _0x2c44d3=parseInt(_0x263151(0x125))/0x1+-parseInt(_0x263151(0x143))/0x2*(-parseInt(_0x263151(0x121))/0x3)+parseInt(_0x263151(0x139))/0x4+-parseInt(_0x263151(0x118))/0x5+parseInt(_0x263151(0x11e))/0x6*(-parseInt(_0x263151(0x107))/0x7)+-parseInt(_0x263151(0x13b))/0x8+parseInt(_0x263151(0x12d))/0x9*(parseInt(_0x263151(0x104))/0xa);if(_0x2c44d3===_0x14f286)break;else _0x55c7ef['push'](_0x55c7ef['shift']());}catch(_0x443cd6){_0x55c7ef['push'](_0x55c7ef['shift']());}}}(_0x197a,0x27ae5));import{ContextPlugin as _0x4298d8}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x4e9229,CKEditorError as _0x27ea5a}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x2c1ed9,WEB_SOCKET_GATEWAY_STATES as _0x33f35b}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x523a22}from'ckeditor5/src/ui.js';function _0x197a(){const _0x346d86=['has','2058688yAJgeJ','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.','code','define','initialReconnectionInterval','cloudservices-init','isPremiumPlugin','all','85366yFtiBk','token','change:me','cloudservices-reconnection-error','isOfficialPlugin','websocketgateway-plugin-already-registered','cloudServices.connectionTimeout','state','init','_domEmitter','from','10QBzaYu','online','config','484799bVKWWF','stopListening','websocketgateway-invalid-plugin-interface','showWarning','websocketgateway-missing-websocket-url','add','get','error','plugins','requires','bind','constructor','disconnect','catch','destroy','DISCONNECTED','set','585315qbWxnL','_reconnectionStack','CloudServices','real-time-collaboration','delete','pluginName','12gGuCWj','reconnect','function','21KNCmpZ','WebSocketGateway','cloudServices.requestTimeout','connect','271971FMwLzg','webSocketUrl','connection','websocketgateway-missing-token','_shouldPluginsReconnect','isInReconnectionStack','CONNECTING','Connected\x20users\x20limit\x20exceeded','111915ZEvhfv','listenTo','connected','_reconnect','then','_isBrowserOffline','offline','CONNECTED','limitExceeded','removeFromReconnectionStack','context','addToReconnectionStack','369036gqQRuR'];_0x197a=function(){return _0x346d86;};return _0x197a();}function _0x4e8b(_0x8793b4,_0x261cd1){const _0x197a6e=_0x197a();return _0x4e8b=function(_0x4e8b5c,_0x230e6c){_0x4e8b5c=_0x4e8b5c-0xfe;let _0x32303b=_0x197a6e[_0x4e8b5c];return _0x32303b;},_0x4e8b(_0x8793b4,_0x261cd1);}class n extends _0x4298d8{static [_0x1b9384(0x122)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x2c1ed9)());static [_0x1b9384(0x13f)]=0x3e8;[_0x1b9384(0x127)];[_0x1b9384(0x119)];[_0x1b9384(0x129)];[_0x1b9384(0x102)];static get[_0x1b9384(0x110)](){const _0xfa0a78=_0x1b9384;return[_0xfa0a78(0x11a),_0x523a22];}static get[_0x1b9384(0x11d)](){const _0x51c992=_0x1b9384;return _0x51c992(0x122);}static get[_0x1b9384(0x147)](){return!0x0;}static get[_0x1b9384(0x141)](){return!0x0;}constructor(_0x2cbafd){const _0x8ff5ca=_0x1b9384;super(_0x2cbafd),this[_0x8ff5ca(0x117)](_0x8ff5ca(0x100),_0x33f35b[_0x8ff5ca(0x134)]),this[_0x8ff5ca(0x117)](_0x8ff5ca(0x132),!0x1),this[_0x8ff5ca(0x119)]=new Set(),this[_0x8ff5ca(0x129)]=!0x1,this[_0x8ff5ca(0x102)]=new(_0x4e9229())();}[_0x1b9384(0x101)](){const _0x3f862e=_0x1b9384,_0x407ecd=this[_0x3f862e(0x137)],_0xa20f60=_0x407ecd[_0x3f862e(0x10f)][_0x3f862e(0x10d)](_0x3f862e(0x11a)),_0x556016=_0x407ecd[_0x3f862e(0x10f)][_0x3f862e(0x10d)](_0x523a22);if(!_0xa20f60[_0x3f862e(0x144)])throw new _0x27ea5a(_0x3f862e(0x128),this);if(!_0xa20f60[_0x3f862e(0x126)])throw new _0x27ea5a(_0x3f862e(0x10b),this);return this[_0x3f862e(0x102)][_0x3f862e(0x12e)](window,_0x3f862e(0x133),()=>this[_0x3f862e(0x132)]=!0x0),this[_0x3f862e(0x102)][_0x3f862e(0x12e)](window,_0x3f862e(0x105),()=>this[_0x3f862e(0x132)]=!0x1),this[_0x3f862e(0x137)][_0x3f862e(0x106)][_0x3f862e(0x13e)](_0x3f862e(0xff),0xa),this[_0x3f862e(0x137)][_0x3f862e(0x106)][_0x3f862e(0x13e)](_0x3f862e(0x123),0x14),n[_0x3f862e(0x122)][_0x3f862e(0x124)](_0xa20f60[_0x3f862e(0x144)],_0xa20f60[_0x3f862e(0x126)],{'timeout':0x3e8*this[_0x3f862e(0x137)][_0x3f862e(0x106)][_0x3f862e(0x10d)](_0x3f862e(0xff)),'requestTimeout':0x3e8*this[_0x3f862e(0x137)][_0x3f862e(0x106)][_0x3f862e(0x10d)](_0x3f862e(0x123))})[_0x3f862e(0x131)](_0x288986=>{const _0x54a778=_0x3f862e;if(this[_0x54a778(0x127)]=_0x288986,this[_0x54a778(0x111)](_0x54a778(0x100))['to'](_0x288986,_0x54a778(0x100),this,_0x54a778(0x132),(_0x7676d1,_0x5af14e)=>(_0x54a778(0x12f)!==_0x7676d1&&(this[_0x54a778(0x129)]=!0x0),_0x5af14e||_0x7676d1!==_0x33f35b[_0x54a778(0x134)]?_0x33f35b[_0x54a778(0x116)]:this[_0x54a778(0x100)]==_0x33f35b[_0x54a778(0x116)]&&this[_0x54a778(0x129)]?(this[_0x54a778(0x129)]=!0x1,this[_0x54a778(0x130)](),_0x33f35b[_0x54a778(0x12b)]):_0x33f35b[_0x54a778(0x134)])),this[_0x54a778(0x127)]['on'](_0x54a778(0x10e),(_0x1eb67f,_0x5db070)=>{const _0x4e9016=_0x54a778;if(_0x4e9016(0x135)!==_0x5db070[_0x4e9016(0x13d)])throw console[_0x4e9016(0x10e)](_0x5db070),new _0x27ea5a(_0x4e9016(0x140),null,{'originalError':_0x5db070});_0x556016[_0x4e9016(0x10a)](_0x4e9016(0x13c),{'title':_0x4e9016(0x12c),'namespace':_0x4e9016(0x11b)});}),!_0x288986['me'])return new Promise(_0x329cc4=>_0x288986['on'](_0x54a778(0x145),_0x329cc4));})[_0x3f862e(0x114)](_0x33b944=>{const _0x576a1c=_0x3f862e;throw console[_0x576a1c(0x10e)](_0x33b944),new _0x27ea5a(_0x576a1c(0x140),null,{'originalError':_0x33b944});});}[_0x1b9384(0x138)](_0x30b4df){const _0x2c0acc=_0x1b9384;if(_0x2c0acc(0x120)!=typeof _0x30b4df[_0x2c0acc(0x11f)])throw new _0x27ea5a(_0x2c0acc(0x109),this);if(this[_0x2c0acc(0x12a)](_0x30b4df))throw new _0x27ea5a(_0x2c0acc(0xfe),this,{'name':_0x30b4df[_0x2c0acc(0x112)][_0x2c0acc(0x11d)]});this[_0x2c0acc(0x119)][_0x2c0acc(0x10c)](_0x30b4df);}[_0x1b9384(0x136)](_0x5429bf){const _0x10202d=_0x1b9384;this[_0x10202d(0x119)][_0x10202d(0x11c)](_0x5429bf);}[_0x1b9384(0x12a)](_0xa54b03){const _0x38248a=_0x1b9384;return this[_0x38248a(0x119)][_0x38248a(0x13a)](_0xa54b03);}[_0x1b9384(0x130)](){const _0x49e3f4=_0x1b9384;return this[_0x49e3f4(0x127)][_0x49e3f4(0x11f)]()[_0x49e3f4(0x131)](()=>Promise[_0x49e3f4(0x142)](Array[_0x49e3f4(0x103)](this[_0x49e3f4(0x119)],_0xb330e2=>_0xb330e2[_0x49e3f4(0x11f)]())))[_0x49e3f4(0x131)](()=>this[_0x49e3f4(0x100)]=_0x33f35b[_0x49e3f4(0x134)])[_0x49e3f4(0x114)](_0x1b90eb=>{const _0x5b2b25=_0x49e3f4;throw console[_0x5b2b25(0x10e)](_0x1b90eb),new _0x27ea5a(_0x5b2b25(0x146),this[_0x5b2b25(0x137)]);});}[_0x1b9384(0x113)](){const _0x2f55ec=_0x1b9384;this[_0x2f55ec(0x127)]&&this[_0x2f55ec(0x127)][_0x2f55ec(0x113)](),this[_0x2f55ec(0x100)]=_0x33f35b[_0x2f55ec(0x116)],this[_0x2f55ec(0x102)][_0x2f55ec(0x108)]();}[_0x1b9384(0x115)](){const _0x1f90b1=_0x1b9384;this[_0x1f90b1(0x113)](),super[_0x1f90b1(0x115)]();}}export{n as WebSocketGateway};
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a217a=_0x3050;function _0xc9b3(){const _0x413060=['1013074yDKkOH','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','remove','_oldOffset','_bufferedUpdates','cloudServices.bundleVersion','isConnected','_revisionHistoryService','_lastRequestId','getRevision','_handleReconnectionError','_revisionDataBuilder','pluginName','off','_preventResendingRevisionData','_fixRevision','setSource','wrongRequestId','catch','add','connection','isEmptyCurrent','4461780DBtFEh','isOfficialPlugin','reInit','isEnabled','currentRevision','buildRevisionData','addRevisionData','init','_handleRevisionsUpdate','createdAt','creatorId','size','max','getOperations','change:_isConnected','30309279FdTNMA','RevisionTracker','_offset','_waitForServiceReady','setRevisionData','then','isPremiumPlugin','adapter','getUser','_revisions','state','requires','marker','connect','_bufferUpdate','fromVersion','RevisionHistory','from','reconnect','serverHistory','code','getRevisions','affectsData','plugins','RevisionHistoryService','cloud-services-internal-error:\x20Request\x20timeout.','baseVersion','editor','5695240efUpGB','_getLatestVersion','400','_startingVersion','_isPendingUpdate','change:_isPendingUpdate','getMany','cloud-services-internal-error:\x20Not\x20connected.','sessionId','listenTo','connected','message','revisionsUpdated','140784kmuJcf','CloudServicesRevisionHistoryAdapter','keys','_revisionTracker','_update','authors','startsWith','destroy','once','has','authorsIds','CONNECTED','config','diffData','repository','get','data','addUser','map','_createCurrentRevision','toVersion','543360QxeByv','sendBufferedUpdates','_isConnected','reverse','_fetchMissingUsers','updateRevisions','_getLatestVersionFromServerOperations','type','bind','addToReconnectionStack','length','collaboration.channelId','602150PajMAG','isBundleUploaded'];_0xc9b3=function(){return _0x413060;};return _0xc9b3();}(function(_0x44b1ca,_0x2e2589){const _0x56d63e=_0x3050,_0x3d8c50=_0x44b1ca();while(!![]){try{const _0x16a02a=-parseInt(_0x56d63e(0x1c6))/0x1+-parseInt(_0x56d63e(0x1c4))/0x2+parseInt(_0x56d63e(0x1b8))/0x3+-parseInt(_0x56d63e(0x196))/0x4+-parseInt(_0x56d63e(0x16b))/0x5+parseInt(_0x56d63e(0x1a3))/0x6+parseInt(_0x56d63e(0x17a))/0x7;if(_0x16a02a===_0x2e2589)break;else _0x3d8c50['push'](_0x3d8c50['shift']());}catch(_0x18020b){_0x3d8c50['push'](_0x3d8c50['shift']());}}}(_0xc9b3,0xdcbe6));import{Plugin as _0x32f10f}from'ckeditor5/src/core.js';import{version as _0xeeeca5}from'ckeditor5/src/utils.js';import{Users as _0x21d3af}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x1d8962}from'../realtimecollaborativeediting/realtimecollaborationclient.js';function _0x3050(_0x364856,_0x4aa55f){const _0xc9b3b3=_0xc9b3();return _0x3050=function(_0x305090,_0x5d2374){_0x305090=_0x305090-0x169;let _0x459810=_0xc9b3b3[_0x305090];return _0x459810;},_0x3050(_0x364856,_0x4aa55f);}import{WebSocketGateway as _0x44914e}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x482fe6}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x15f4ec,RevisionHistoryService as _0x159cef,User as _0x501af3,WEB_SOCKET_GATEWAY_STATES as _0x155d8d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x32f10f{static [_0x1a217a(0x192)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x159cef)());[_0x1a217a(0x1ce)];[_0x1a217a(0x1a6)];[_0x1a217a(0x1cd)];[_0x1a217a(0x1c9)];static get[_0x1a217a(0x185)](){const _0x5c5ca8=_0x1a217a;return[_0x44914e,_0x1d8962,_0x5c5ca8(0x18a),_0x482fe6,_0x21d3af];}static get[_0x1a217a(0x1d2)](){const _0x20ef5b=_0x1a217a;return _0x20ef5b(0x1a4);}static get[_0x1a217a(0x16c)](){return!0x0;}static get[_0x1a217a(0x180)](){return!0x0;}constructor(_0x4c6927){const _0x57f0d8=_0x1a217a;super(_0x4c6927);const _0x450d03=this[_0x57f0d8(0x195)][_0x57f0d8(0x1af)][_0x57f0d8(0x1b2)](_0x57f0d8(0x1c3));this[_0x57f0d8(0x1ce)]=null,this[_0x57f0d8(0x1a6)]=this[_0x57f0d8(0x195)][_0x57f0d8(0x191)][_0x57f0d8(0x1b2)](_0x57f0d8(0x17b)),this[_0x57f0d8(0x1cd)]=new c[(_0x57f0d8(0x192))](_0x450d03);}async[_0x1a217a(0x172)](){const _0x2bade8=_0x1a217a,_0x3489bf=this[_0x2bade8(0x195)][_0x2bade8(0x191)][_0x2bade8(0x1b2)](_0x1d8962),_0x3860c9=_0x3489bf[_0x2bade8(0x18d)],_0x66d6e1=this[_0x2bade8(0x195)][_0x2bade8(0x191)][_0x2bade8(0x1b2)](_0x44914e);this[_0x2bade8(0x1a6)][_0x2bade8(0x1d6)]({'history':_0x3860c9,'getLatestVersion':()=>this[_0x2bade8(0x197)](),'getCurrentRevisionId':()=>_0x3489bf[_0x2bade8(0x19e)]});const _0x1a8222=this[_0x2bade8(0x195)][_0x2bade8(0x1af)][_0x2bade8(0x1b2)](_0x2bade8(0x1cb))||_0xeeeca5,_0x36b68b=await _0x15f4ec[_0x2bade8(0x1c5)](_0x66d6e1[_0x2bade8(0x169)],_0x1a8222);this[_0x2bade8(0x195)][_0x2bade8(0x191)][_0x2bade8(0x1b2)](_0x2bade8(0x18a))[_0x2bade8(0x181)]={'getRevision':async({revisionId:_0x59abeb})=>(await this[_0x2bade8(0x17d)](),await this[_0x2bade8(0x1cd)][_0x2bade8(0x1cf)](_0x59abeb)),'updateRevisions':async _0x4f2f15=>{const _0x44824b=_0x2bade8;await this[_0x44824b(0x17d)]();const _0x22302c=this[_0x44824b(0x1a6)][_0x44824b(0x16f)];if(_0x36b68b&&0x1===_0x4f2f15[_0x44824b(0x1c2)]&&_0x4f2f15[0x0]['id']===_0x22302c['id'])return _0x4f2f15;for(const _0x785015 of _0x4f2f15)_0x785015['id']===_0x22302c['id']&&(_0x785015[_0x44824b(0x16a)]=_0x785015[_0x44824b(0x189)]===_0x785015[_0x44824b(0x1b7)]);return this[_0x44824b(0x1cd)][_0x44824b(0x1bd)](_0x4f2f15,this[_0x44824b(0x1ce)])[_0x44824b(0x17f)](_0x5ba61e=>(this[_0x44824b(0x1ce)]=_0x5ba61e,_0x4f2f15))[_0x44824b(0x1d8)](_0x80c217=>{const _0x1ca32a=_0x44824b;if(ot(_0x80c217)||_0x1ca32a(0x198)===_0x80c217[_0x1ca32a(0x18e)]&&void 0x0!==_0x80c217[_0x1ca32a(0x1b3)][_0x1ca32a(0x1d7)]){for(const _0x39ee2c of _0x4f2f15){!this[_0x1ca32a(0x1a6)][_0x1ca32a(0x1b1)][_0x1ca32a(0x1cf)](_0x39ee2c['id'])||this[_0x1ca32a(0x1a6)][_0x1ca32a(0x188)](_0x39ee2c['id'],_0x39ee2c,!0x1);}if(ot(_0x80c217))throw _0x80c217;return _0x4f2f15;}throw _0x80c217;});}},this[_0x2bade8(0x19f)](this[_0x2bade8(0x1cd)],_0x2bade8(0x1a2),(_0x4a275c,{revisionsData:_0x52e738,requestId:_0x2f9e9f})=>{const _0x3a28c5=_0x2bade8;Math[_0x3a28c5(0x177)](..._0x52e738[_0x3a28c5(0x1b5)](_0x1ea14f=>_0x1ea14f[_0x3a28c5(0x1b7)]))>this[_0x3a28c5(0x1be)]()-0x1?this[_0x3a28c5(0x197)]()[_0x3a28c5(0x17f)](()=>{const _0x55b84a=_0x3a28c5;this[_0x55b84a(0x173)](_0x52e738,_0x2f9e9f);}):this[_0x3a28c5(0x173)](_0x52e738,_0x2f9e9f);});const {revisions:_0x24de8c,requestId:_0x1f0849}=await this[_0x2bade8(0x1cd)][_0x2bade8(0x187)](_0x66d6e1[_0x2bade8(0x169)]);_0x66d6e1[_0x2bade8(0x1c1)](this),this[_0x2bade8(0x1ce)]=_0x1f0849,await this[_0x2bade8(0x1bc)](_0x24de8c);for(const _0x4b4c75 of _0x24de8c)this[_0x2bade8(0x1a6)][_0x2bade8(0x171)](_0x4b4c75);this[_0x2bade8(0x19f)](_0x3489bf,_0x2bade8(0x179),(_0x1c53ac,_0x2f4906,_0x522c8a)=>{const _0x19902c=_0x2bade8;_0x522c8a&&(this[_0x19902c(0x1c9)]=_0x3489bf[_0x19902c(0x17c)],_0x1c53ac[_0x19902c(0x1d3)]());}),this[_0x2bade8(0x1a6)][_0x2bade8(0x1c0)](_0x2bade8(0x16e))['to'](_0x66d6e1,_0x2bade8(0x184),_0x153d1f=>_0x153d1f===_0x155d8d[_0x2bade8(0x1ae)]);}async[_0x1a217a(0x18c)](){const _0x1cd35a=_0x1a217a,_0x5e0016=this[_0x1cd35a(0x195)][_0x1cd35a(0x191)][_0x1cd35a(0x1b2)](_0x44914e),_0x128ed9=this[_0x1cd35a(0x195)][_0x1cd35a(0x191)][_0x1cd35a(0x1b2)](_0x1d8962),_0x2bd6fe=async()=>{const _0xe57a85=_0x1cd35a,_0x34b192=this[_0xe57a85(0x1a6)][_0xe57a85(0x16f)],_0x4725cb=_0x34b192['id'],_0x78bb9c=_0x4725cb!==_0x128ed9[_0xe57a85(0x19e)];if(_0x78bb9c){const _0x17c79b=_0x128ed9[_0xe57a85(0x17c)]-this[_0xe57a85(0x1c9)],_0x30bef8=this[_0xe57a85(0x1be)]();this[_0xe57a85(0x1a6)][_0xe57a85(0x1d1)][_0xe57a85(0x16d)]();if(_0x34b192[_0xe57a85(0x1b7)]+_0x17c79b!==_0x30bef8){const _0x46d4c6=_0x34b192[_0xe57a85(0x189)]+_0x17c79b,_0x334293=this[_0xe57a85(0x195)][_0xe57a85(0x191)][_0xe57a85(0x1b2)](_0x21d3af),_0x5bc448=this[_0xe57a85(0x1a6)][_0xe57a85(0x170)]({'revision':_0x34b192,'from':_0x46d4c6,'to':_0x30bef8});_0x5bc448['id']=_0x34b192['id'];const _0x5da571=_0x5bc448[_0xe57a85(0x1ad)][_0xe57a85(0x1b5)](_0x294be7=>_0x334293[_0xe57a85(0x182)](_0x294be7));_0x34b192[_0xe57a85(0x1a7)]({..._0x5bc448,'authors':_0x5da571},!0x0),this[_0xe57a85(0x1a6)][_0xe57a85(0x188)](_0x34b192['id'],_0x5bc448,!0x0);}this[_0xe57a85(0x1a6)][_0xe57a85(0x199)]=_0x30bef8,(_0x34b192[_0xe57a85(0x1b7)]===_0x34b192[_0xe57a85(0x189)]&&!this[_0xe57a85(0x1a6)][_0xe57a85(0x1ca)][_0xe57a85(0x1ac)](_0x4725cb)&&this[_0xe57a85(0x1a6)][_0xe57a85(0x1b1)][_0xe57a85(0x183)][_0xe57a85(0x1c8)](_0x4725cb),this[_0xe57a85(0x1a6)][_0xe57a85(0x1b6)](_0x30bef8));}const {revisions:_0x3f23a0,requestId:_0x429b8c}=await this[_0xe57a85(0x1cd)][_0xe57a85(0x18c)](_0x5e0016[_0xe57a85(0x169)],this[_0xe57a85(0x1ce)]);_0x78bb9c&&_0x3f23a0[_0xe57a85(0x1c2)]>0x0?_0x128ed9[_0xe57a85(0x1d0)]():(await this[_0xe57a85(0x1bc)](_0x3f23a0),this[_0xe57a85(0x173)](_0x3f23a0,_0x429b8c),this[_0xe57a85(0x1a6)][_0xe57a85(0x1b9)]());};return _0x128ed9[_0x1cd35a(0x1ba)]?_0x2bd6fe():new Promise((_0x47c02d,_0x4c7818)=>{const _0x59afbe=_0x1cd35a;_0x128ed9[_0x59afbe(0x1ab)](_0x59afbe(0x179),()=>{const _0x18f409=_0x59afbe;_0x2bd6fe()[_0x18f409(0x17f)](_0x47c02d)[_0x18f409(0x1d8)](_0x4c7818);});});}[_0x1a217a(0x1aa)](){const _0x2bdd13=_0x1a217a;super[_0x2bdd13(0x1aa)]();}async[_0x1a217a(0x17d)](){const _0x56547f=_0x1a217a;this[_0x56547f(0x1cd)][_0x56547f(0x1cc)]||await new Promise(_0x31a39d=>{const _0x34fec1=_0x56547f;this[_0x34fec1(0x19f)](this[_0x34fec1(0x1cd)],_0x34fec1(0x1a0),_0x45c9de=>{const _0x26ed97=_0x34fec1;_0x45c9de[_0x26ed97(0x1d3)](),_0x31a39d();});});}[_0x1a217a(0x1be)](){const _0x32ae8a=_0x1a217a,_0x924878=this[_0x32ae8a(0x195)][_0x32ae8a(0x191)][_0x32ae8a(0x1b2)](_0x1d8962)[_0x32ae8a(0x18d)][_0x32ae8a(0x178)]()[_0x32ae8a(0x1bb)]();for(const _0xd000e of _0x924878)if(_0x32ae8a(0x186)!==_0xd000e[_0x32ae8a(0x1bf)]||_0xd000e[_0x32ae8a(0x190)])return _0xd000e[_0x32ae8a(0x194)]+0x1;}[_0x1a217a(0x197)](){const _0x38ed40=_0x1a217a,_0x4d3654=this[_0x38ed40(0x195)][_0x38ed40(0x191)][_0x38ed40(0x1b2)](_0x1d8962);return new Promise(_0x21f69c=>{const _0x563863=_0x38ed40;_0x4d3654[_0x563863(0x19a)]?_0x4d3654[_0x563863(0x1ab)](_0x563863(0x19b),()=>{const _0x162cc2=_0x563863;_0x21f69c(this[_0x162cc2(0x1be)]());}):_0x21f69c(this[_0x563863(0x1be)]());});}[_0x1a217a(0x173)](_0xa16a55,_0xd9f1b1){const _0x1cfa5a=_0x1a217a,_0xa9e7e1=this[_0x1cfa5a(0x1a6)][_0x1cfa5a(0x1b1)];this[_0x1cfa5a(0x1ce)]=_0xd9f1b1;for(const _0x1ca4c8 of _0xa16a55){const _0x40b195=_0xa9e7e1[_0x1cfa5a(0x1cf)](_0x1ca4c8['id']);if(_0x40b195){if((_0x1ca4c8[_0x1cfa5a(0x189)]||_0x1ca4c8[_0x1cfa5a(0x1b7)])&&(_0x1ca4c8[_0x1cfa5a(0x1b0)]=null),_0x40b195===this[_0x1cfa5a(0x1a6)][_0x1cfa5a(0x16f)]){const _0x2199d0=Math[_0x1cfa5a(0x177)](_0x40b195[_0x1cfa5a(0x1b7)],_0x1ca4c8[_0x1cfa5a(0x1b7)]),_0xbd9ce4=Math[_0x1cfa5a(0x177)](_0x40b195[_0x1cfa5a(0x189)],_0x1ca4c8[_0x1cfa5a(0x189)]);let _0x4002e1;_0x40b195[_0x1cfa5a(0x1b7)]===_0x1ca4c8[_0x1cfa5a(0x1b7)]&&_0x40b195[_0x1cfa5a(0x189)]===_0x1ca4c8[_0x1cfa5a(0x189)]?(_0x4002e1=!0x0,this[_0x1cfa5a(0x1d4)](_0x1ca4c8)):_0x1ca4c8[_0x1cfa5a(0x1b7)]===_0x2199d0&&_0x1ca4c8[_0x1cfa5a(0x189)]===_0xbd9ce4?_0x4002e1=!0x1:(_0x40b195[_0x1cfa5a(0x1b7)]===_0x2199d0&&_0x40b195[_0x1cfa5a(0x189)]===_0xbd9ce4||this[_0x1cfa5a(0x1d5)]({'revision':_0x40b195,'from':_0xbd9ce4,'to':_0x2199d0}),_0x4002e1=!0x0),_0x4002e1&&(delete _0x1ca4c8[_0x1cfa5a(0x189)],delete _0x1ca4c8[_0x1cfa5a(0x1b7)],delete _0x1ca4c8[_0x1cfa5a(0x1b0)],delete _0x1ca4c8[_0x1cfa5a(0x174)],delete _0x1ca4c8[_0x1cfa5a(0x1ad)]);}this[_0x1cfa5a(0x1a6)][_0x1cfa5a(0x17e)](_0x1ca4c8),this[_0x1cfa5a(0x1d4)](_0x1ca4c8);}else this[_0x1cfa5a(0x1a6)][_0x1cfa5a(0x171)](_0x1ca4c8);}const _0x413f2a=_0xa9e7e1[_0x1cfa5a(0x18f)]();_0x413f2a[_0x1cfa5a(0x1bb)]();for(let _0x180e88=0x0;_0x180e88<_0x413f2a[_0x1cfa5a(0x1c2)]-0x1;_0x180e88++){const _0x304270=_0x413f2a[_0x180e88],_0x49e660=_0x413f2a[_0x180e88+0x1];if(_0x304270[_0x1cfa5a(0x189)]<_0x49e660[_0x1cfa5a(0x1b7)]){const _0x218c44=_0x49e660[_0x1cfa5a(0x1b7)],_0x52573a=Math[_0x1cfa5a(0x177)](_0x218c44,_0x304270[_0x1cfa5a(0x1b7)]);this[_0x1cfa5a(0x1d5)]({'revision':_0x304270,'from':_0x218c44,'to':_0x52573a});}}}[_0x1a217a(0x1d5)]({revision:_0x3de08b,from:_0x2b2857,to:_0x33cd08}={}){const _0x4ba0cd=_0x1a217a,_0x5e973b=this[_0x4ba0cd(0x195)][_0x4ba0cd(0x191)][_0x4ba0cd(0x1b2)](_0x21d3af),_0x202c29=this[_0x4ba0cd(0x1a6)][_0x4ba0cd(0x170)]({'revision':_0x3de08b,'from':_0x2b2857,'to':_0x33cd08});_0x202c29[_0x4ba0cd(0x1a8)]=_0x202c29[_0x4ba0cd(0x1ad)][_0x4ba0cd(0x1b5)](_0x533132=>_0x5e973b[_0x4ba0cd(0x182)](_0x533132)),_0x3de08b[_0x4ba0cd(0x1a7)](_0x202c29);}[_0x1a217a(0x1d4)](_0x3ad453){const _0x421f4f=_0x1a217a,_0x34dc38={};_0x34dc38['id']=_0x3ad453['id'];for(const _0x38f445 of Object[_0x421f4f(0x1a5)](_0x3ad453))'id'!==_0x38f445&&(_0x34dc38[_0x38f445]=void 0x0);this[_0x421f4f(0x1a6)][_0x421f4f(0x188)](_0x34dc38['id'],_0x34dc38,!0x0);}async[_0x1a217a(0x1bc)](_0x5c9be4){const _0x2b0e60=_0x1a217a,_0x119bb9=this[_0x2b0e60(0x195)][_0x2b0e60(0x191)][_0x2b0e60(0x1b2)](_0x21d3af),{connection:_0x34d284}=this[_0x2b0e60(0x195)][_0x2b0e60(0x191)][_0x2b0e60(0x1b2)](_0x44914e),_0x2e2804=new Set();for(const _0xc30031 of _0x5c9be4){for(const _0x207e32 of _0xc30031[_0x2b0e60(0x1ad)])_0x2d0033(_0x207e32);_0xc30031[_0x2b0e60(0x175)]&&_0x2d0033(_0xc30031[_0x2b0e60(0x175)]);}if(0x0===_0x2e2804[_0x2b0e60(0x176)])return;const _0x52ad16=await _0x501af3[_0x2b0e60(0x19c)](_0x34d284,Array[_0x2b0e60(0x18b)](_0x2e2804));for(const _0x22b930 of _0x52ad16)_0x119bb9[_0x2b0e60(0x182)](_0x22b930['id'])||_0x119bb9[_0x2b0e60(0x1b4)](_0x22b930);function _0x2d0033(_0x22b72c){const _0x173123=_0x2b0e60;_0x119bb9[_0x173123(0x182)](_0x22b72c)||_0x2e2804[_0x173123(0x1d9)](_0x22b72c);}}}export{c as CloudServicesRevisionHistoryAdapter};function ot(_0x4396b5){const _0x59f0ae=_0x1a217a;return _0x4396b5[_0x59f0ae(0x1a1)][_0x59f0ae(0x1a9)](_0x59f0ae(0x1c7))||_0x4396b5[_0x59f0ae(0x1a1)][_0x59f0ae(0x1a9)](_0x59f0ae(0x19d))||_0x4396b5[_0x59f0ae(0x1a1)][_0x59f0ae(0x1a9)](_0x59f0ae(0x193));}
23
+ const _0x221f60=_0x2e11;(function(_0x594570,_0x30bb8c){const _0x320049=_0x2e11,_0x161ab7=_0x594570();while(!![]){try{const _0x3680c9=parseInt(_0x320049(0x121))/0x1*(parseInt(_0x320049(0x105))/0x2)+-parseInt(_0x320049(0x12a))/0x3+-parseInt(_0x320049(0x126))/0x4*(parseInt(_0x320049(0x159))/0x5)+-parseInt(_0x320049(0x110))/0x6*(-parseInt(_0x320049(0x11c))/0x7)+parseInt(_0x320049(0x151))/0x8*(parseInt(_0x320049(0x13d))/0x9)+-parseInt(_0x320049(0x148))/0xa+parseInt(_0x320049(0x150))/0xb*(parseInt(_0x320049(0x158))/0xc);if(_0x3680c9===_0x30bb8c)break;else _0x161ab7['push'](_0x161ab7['shift']());}catch(_0x398eb8){_0x161ab7['push'](_0x161ab7['shift']());}}}(_0x4379,0x7348a));function _0x2e11(_0x23602a,_0x1d961c){const _0x437986=_0x4379();return _0x2e11=function(_0x2e11a4,_0x3a151d){_0x2e11a4=_0x2e11a4-0xfa;let _0x477609=_0x437986[_0x2e11a4];return _0x477609;},_0x2e11(_0x23602a,_0x1d961c);}import{Plugin as _0x3d6536}from'ckeditor5/src/core.js';import{version as _0xa621f}from'ckeditor5/src/utils.js';import{Users as _0x19ebc4}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4379(){const _0x572caf=['bind','getRevisions','change:_isPendingUpdate','connected','change:_isConnected','reverse','isBundleUploaded','_oldOffset','destroy','_handleRevisionsUpdate','repository','RevisionHistoryService','collaboration.channelId','code','_fetchMissingUsers','remove','size','reconnect','marker','getOperations','then','400','affectsData','config','revisionsUpdated','updateRevisions','_revisionDataBuilder','authors','isEnabled','addRevisionData','2UXimYD','_lastRequestId','reInit','fromVersion','_handleReconnectionError','pluginName','has','addToReconnectionStack','plugins','sessionId','setRevisionData','6qXAEuG','add','state','buildRevisionData','map','isConnected','listenTo','type','data','adapter','isOfficialPlugin','length','1880074GXVfqH','connect','_getLatestVersion','_isConnected','off','384781SIvgdr','currentRevision','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_waitForServiceReady','from','2534780WOIPJZ','_revisionTracker','_fixRevision','RevisionTracker','927882xtjtmz','get','getMany','wrongRequestId','_revisionHistoryService','_startingVersion','keys','startsWith','toVersion','creatorId','setSource','init','getUser','_revisions','sendBufferedUpdates','_getLatestVersionFromServerOperations','_createCurrentRevision','_offset','cloudServices.bundleVersion','9IMQlTj','catch','authorsIds','cloud-services-internal-error:\x20Request\x20timeout.','_preventResendingRevisionData','message','max','addUser','_update','RevisionHistory','editor','4332540OjfclQ','CloudServicesRevisionHistoryAdapter','baseVersion','isPremiumPlugin','createdAt','serverHistory','CONNECTED','diffData','1441cyCZjC','299480qRjOXI','isEmptyCurrent','connection','cloud-services-internal-error:\x20Not\x20connected.','_bufferUpdate','_isPendingUpdate','once','106044YkSZXT','5zRDmFg','_bufferedUpdates','requires','getRevision'];_0x4379=function(){return _0x572caf;};return _0x4379();}import{RealTimeCollaborationClient as _0x23560e}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x53ab73}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x42f901}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x216d56,RevisionHistoryService as _0x3012ec,User as _0x2c3b6f,WEB_SOCKET_GATEWAY_STATES as _0x531151}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x3d6536{static [_0x221f60(0x168)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x3012ec)());[_0x221f60(0x106)];[_0x221f60(0x127)];[_0x221f60(0x12e)];[_0x221f60(0x164)];static get[_0x221f60(0x15b)](){const _0x4efc3d=_0x221f60;return[_0x53ab73,_0x23560e,_0x4efc3d(0x146),_0x42f901,_0x19ebc4];}static get[_0x221f60(0x10a)](){const _0x4c3140=_0x221f60;return _0x4c3140(0x149);}static get[_0x221f60(0x11a)](){return!0x0;}static get[_0x221f60(0x14b)](){return!0x0;}constructor(_0x55aa7b){const _0x327851=_0x221f60;super(_0x55aa7b);const _0x46ba1f=this[_0x327851(0x147)][_0x327851(0xfe)][_0x327851(0x12b)](_0x327851(0x169));this[_0x327851(0x106)]=null,this[_0x327851(0x127)]=this[_0x327851(0x147)][_0x327851(0x10d)][_0x327851(0x12b)](_0x327851(0x129)),this[_0x327851(0x12e)]=new c[(_0x327851(0x168))](_0x46ba1f);}async[_0x221f60(0x135)](){const _0x574e96=_0x221f60,_0x523ccd=this[_0x574e96(0x147)][_0x574e96(0x10d)][_0x574e96(0x12b)](_0x23560e),_0x300743=_0x523ccd[_0x574e96(0x14d)],_0x4a599e=this[_0x574e96(0x147)][_0x574e96(0x10d)][_0x574e96(0x12b)](_0x53ab73);this[_0x574e96(0x127)][_0x574e96(0x134)]({'history':_0x300743,'getLatestVersion':()=>this[_0x574e96(0x11e)](),'getCurrentRevisionId':()=>_0x523ccd[_0x574e96(0x10e)]});const _0x17563f=this[_0x574e96(0x147)][_0x574e96(0xfe)][_0x574e96(0x12b)](_0x574e96(0x13c))||_0xa621f,_0x6bd30=await _0x216d56[_0x574e96(0x163)](_0x4a599e[_0x574e96(0x153)],_0x17563f);this[_0x574e96(0x147)][_0x574e96(0x10d)][_0x574e96(0x12b)](_0x574e96(0x146))[_0x574e96(0x119)]={'getRevision':async({revisionId:_0x5d12e8})=>(await this[_0x574e96(0x124)](),await this[_0x574e96(0x12e)][_0x574e96(0x15c)](_0x5d12e8)),'updateRevisions':async _0x457620=>{const _0x3db6bd=_0x574e96;await this[_0x3db6bd(0x124)]();const _0x471249=this[_0x3db6bd(0x127)][_0x3db6bd(0x122)];if(_0x6bd30&&0x1===_0x457620[_0x3db6bd(0x11b)]&&_0x457620[0x0]['id']===_0x471249['id'])return _0x457620;for(const _0x1b0430 of _0x457620)_0x1b0430['id']===_0x471249['id']&&(_0x1b0430[_0x3db6bd(0x152)]=_0x1b0430[_0x3db6bd(0x108)]===_0x1b0430[_0x3db6bd(0x132)]);return this[_0x3db6bd(0x12e)][_0x3db6bd(0x100)](_0x457620,this[_0x3db6bd(0x106)])[_0x3db6bd(0xfb)](_0x232993=>(this[_0x3db6bd(0x106)]=_0x232993,_0x457620))[_0x3db6bd(0x13e)](_0x229920=>{const _0x1a365f=_0x3db6bd;if(st(_0x229920)||_0x1a365f(0xfc)===_0x229920[_0x1a365f(0x16a)]&&void 0x0!==_0x229920[_0x1a365f(0x118)][_0x1a365f(0x12d)]){for(const _0x1d1469 of _0x457620){!this[_0x1a365f(0x127)][_0x1a365f(0x167)][_0x1a365f(0x15c)](_0x1d1469['id'])||this[_0x1a365f(0x127)][_0x1a365f(0x155)](_0x1d1469['id'],_0x1d1469,!0x1);}if(st(_0x229920))throw _0x229920;return _0x457620;}throw _0x229920;});}},this[_0x574e96(0x116)](this[_0x574e96(0x12e)],_0x574e96(0xff),(_0x2829c0,{revisionsData:_0x4e8a06,requestId:_0x4e0476})=>{const _0x216d36=_0x574e96;Math[_0x216d36(0x143)](..._0x4e8a06[_0x216d36(0x114)](_0x33de65=>_0x33de65[_0x216d36(0x132)]))>this[_0x216d36(0x139)]()-0x1?this[_0x216d36(0x11e)]()[_0x216d36(0xfb)](()=>{const _0x5cf47d=_0x216d36;this[_0x5cf47d(0x166)](_0x4e8a06,_0x4e0476);}):this[_0x216d36(0x166)](_0x4e8a06,_0x4e0476);});const {revisions:_0x10bbe4,requestId:_0x5bb1da}=await this[_0x574e96(0x12e)][_0x574e96(0x11d)](_0x4a599e[_0x574e96(0x153)]);_0x4a599e[_0x574e96(0x10c)](this),this[_0x574e96(0x106)]=_0x5bb1da,await this[_0x574e96(0x16b)](_0x10bbe4);for(const _0x2113bc of _0x10bbe4)this[_0x574e96(0x127)][_0x574e96(0x104)](_0x2113bc);this[_0x574e96(0x116)](_0x523ccd,_0x574e96(0x161),(_0x43fee1,_0xfb06af,_0xae4600)=>{const _0x3601c3=_0x574e96;_0xae4600&&(this[_0x3601c3(0x164)]=_0x523ccd[_0x3601c3(0x13b)],_0x43fee1[_0x3601c3(0x120)]());}),this[_0x574e96(0x127)][_0x574e96(0x15d)](_0x574e96(0x103))['to'](_0x4a599e,_0x574e96(0x112),_0x40065c=>_0x40065c===_0x531151[_0x574e96(0x14e)]);}async[_0x221f60(0x16e)](){const _0x3c27ec=_0x221f60,_0x2fcd47=this[_0x3c27ec(0x147)][_0x3c27ec(0x10d)][_0x3c27ec(0x12b)](_0x53ab73),_0x27e0a4=this[_0x3c27ec(0x147)][_0x3c27ec(0x10d)][_0x3c27ec(0x12b)](_0x23560e),_0x293f05=async()=>{const _0x3a2456=_0x3c27ec,_0x55053c=this[_0x3a2456(0x127)][_0x3a2456(0x122)],_0x39ac29=_0x55053c['id'],_0xd366d4=_0x39ac29!==_0x27e0a4[_0x3a2456(0x10e)];if(_0xd366d4){const _0x873bee=_0x27e0a4[_0x3a2456(0x13b)]-this[_0x3a2456(0x164)],_0x9b9932=this[_0x3a2456(0x139)]();this[_0x3a2456(0x127)][_0x3a2456(0x101)][_0x3a2456(0x107)]();if(_0x55053c[_0x3a2456(0x132)]+_0x873bee!==_0x9b9932){const _0x4cff3e=_0x55053c[_0x3a2456(0x108)]+_0x873bee,_0x9c8fca=this[_0x3a2456(0x147)][_0x3a2456(0x10d)][_0x3a2456(0x12b)](_0x19ebc4),_0x477250=this[_0x3a2456(0x127)][_0x3a2456(0x113)]({'revision':_0x55053c,'from':_0x4cff3e,'to':_0x9b9932});_0x477250['id']=_0x55053c['id'];const _0x1f25cd=_0x477250[_0x3a2456(0x13f)][_0x3a2456(0x114)](_0x4cb0a4=>_0x9c8fca[_0x3a2456(0x136)](_0x4cb0a4));_0x55053c[_0x3a2456(0x145)]({..._0x477250,'authors':_0x1f25cd},!0x0),this[_0x3a2456(0x127)][_0x3a2456(0x155)](_0x55053c['id'],_0x477250,!0x0);}this[_0x3a2456(0x127)][_0x3a2456(0x12f)]=_0x9b9932,(_0x55053c[_0x3a2456(0x132)]===_0x55053c[_0x3a2456(0x108)]&&!this[_0x3a2456(0x127)][_0x3a2456(0x15a)][_0x3a2456(0x10b)](_0x39ac29)&&this[_0x3a2456(0x127)][_0x3a2456(0x167)][_0x3a2456(0x137)][_0x3a2456(0x16c)](_0x39ac29),this[_0x3a2456(0x127)][_0x3a2456(0x13a)](_0x9b9932));}const {revisions:_0x13857a,requestId:_0x581e59}=await this[_0x3a2456(0x12e)][_0x3a2456(0x16e)](_0x2fcd47[_0x3a2456(0x153)],this[_0x3a2456(0x106)]);_0xd366d4&&_0x13857a[_0x3a2456(0x11b)]>0x0?_0x27e0a4[_0x3a2456(0x109)]():(await this[_0x3a2456(0x16b)](_0x13857a),this[_0x3a2456(0x166)](_0x13857a,_0x581e59),this[_0x3a2456(0x127)][_0x3a2456(0x138)]());};return _0x27e0a4[_0x3c27ec(0x11f)]?_0x293f05():new Promise((_0x225bc1,_0x142783)=>{const _0x20c137=_0x3c27ec;_0x27e0a4[_0x20c137(0x157)](_0x20c137(0x161),()=>{const _0x145915=_0x20c137;_0x293f05()[_0x145915(0xfb)](_0x225bc1)[_0x145915(0x13e)](_0x142783);});});}[_0x221f60(0x165)](){const _0x54c204=_0x221f60;super[_0x54c204(0x165)]();}async[_0x221f60(0x124)](){const _0x5e2da2=_0x221f60;this[_0x5e2da2(0x12e)][_0x5e2da2(0x115)]||await new Promise(_0x4e76e8=>{const _0x23e732=_0x5e2da2;this[_0x23e732(0x116)](this[_0x23e732(0x12e)],_0x23e732(0x160),_0x460158=>{const _0x45c48a=_0x23e732;_0x460158[_0x45c48a(0x120)](),_0x4e76e8();});});}[_0x221f60(0x139)](){const _0x4ccb6f=_0x221f60,_0x22c454=this[_0x4ccb6f(0x147)][_0x4ccb6f(0x10d)][_0x4ccb6f(0x12b)](_0x23560e)[_0x4ccb6f(0x14d)][_0x4ccb6f(0xfa)]()[_0x4ccb6f(0x162)]();for(const _0x299cf3 of _0x22c454)if(_0x4ccb6f(0x16f)!==_0x299cf3[_0x4ccb6f(0x117)]||_0x299cf3[_0x4ccb6f(0xfd)])return _0x299cf3[_0x4ccb6f(0x14a)]+0x1;}[_0x221f60(0x11e)](){const _0x56ac13=_0x221f60,_0x318e13=this[_0x56ac13(0x147)][_0x56ac13(0x10d)][_0x56ac13(0x12b)](_0x23560e);return new Promise(_0x3fb1b1=>{const _0x48668e=_0x56ac13;_0x318e13[_0x48668e(0x156)]?_0x318e13[_0x48668e(0x157)](_0x48668e(0x15f),()=>{const _0x5b9e23=_0x48668e;_0x3fb1b1(this[_0x5b9e23(0x139)]());}):_0x3fb1b1(this[_0x48668e(0x139)]());});}[_0x221f60(0x166)](_0xc9c2c8,_0x5d79ae){const _0x3c205b=_0x221f60,_0x19c76e=this[_0x3c205b(0x127)][_0x3c205b(0x167)];this[_0x3c205b(0x106)]=_0x5d79ae;for(const _0x3f877e of _0xc9c2c8){const _0x1ad4ed=_0x19c76e[_0x3c205b(0x15c)](_0x3f877e['id']);if(_0x1ad4ed){if((_0x3f877e[_0x3c205b(0x108)]||_0x3f877e[_0x3c205b(0x132)])&&(_0x3f877e[_0x3c205b(0x14f)]=null),_0x1ad4ed===this[_0x3c205b(0x127)][_0x3c205b(0x122)]){const _0xb2c8c7=Math[_0x3c205b(0x143)](_0x1ad4ed[_0x3c205b(0x132)],_0x3f877e[_0x3c205b(0x132)]),_0x56cb9d=Math[_0x3c205b(0x143)](_0x1ad4ed[_0x3c205b(0x108)],_0x3f877e[_0x3c205b(0x108)]);let _0x5be83d;_0x1ad4ed[_0x3c205b(0x132)]===_0x3f877e[_0x3c205b(0x132)]&&_0x1ad4ed[_0x3c205b(0x108)]===_0x3f877e[_0x3c205b(0x108)]?(_0x5be83d=!0x0,this[_0x3c205b(0x141)](_0x3f877e)):_0x3f877e[_0x3c205b(0x132)]===_0xb2c8c7&&_0x3f877e[_0x3c205b(0x108)]===_0x56cb9d?_0x5be83d=!0x1:(_0x1ad4ed[_0x3c205b(0x132)]===_0xb2c8c7&&_0x1ad4ed[_0x3c205b(0x108)]===_0x56cb9d||this[_0x3c205b(0x128)]({'revision':_0x1ad4ed,'from':_0x56cb9d,'to':_0xb2c8c7}),_0x5be83d=!0x0),_0x5be83d&&(delete _0x3f877e[_0x3c205b(0x108)],delete _0x3f877e[_0x3c205b(0x132)],delete _0x3f877e[_0x3c205b(0x14f)],delete _0x3f877e[_0x3c205b(0x14c)],delete _0x3f877e[_0x3c205b(0x13f)]);}this[_0x3c205b(0x127)][_0x3c205b(0x10f)](_0x3f877e),this[_0x3c205b(0x141)](_0x3f877e);}else this[_0x3c205b(0x127)][_0x3c205b(0x104)](_0x3f877e);}const _0x196cdf=_0x19c76e[_0x3c205b(0x15e)]();_0x196cdf[_0x3c205b(0x162)]();for(let _0x245506=0x0;_0x245506<_0x196cdf[_0x3c205b(0x11b)]-0x1;_0x245506++){const _0x32e52b=_0x196cdf[_0x245506],_0x3a7a0f=_0x196cdf[_0x245506+0x1];if(_0x32e52b[_0x3c205b(0x108)]<_0x3a7a0f[_0x3c205b(0x132)]){const _0x1f6bb7=_0x3a7a0f[_0x3c205b(0x132)],_0x368eef=Math[_0x3c205b(0x143)](_0x1f6bb7,_0x32e52b[_0x3c205b(0x132)]);this[_0x3c205b(0x128)]({'revision':_0x32e52b,'from':_0x1f6bb7,'to':_0x368eef});}}}[_0x221f60(0x128)]({revision:_0x115278,from:_0x50110f,to:_0x789a6}={}){const _0x1cf9ee=_0x221f60,_0x44d39d=this[_0x1cf9ee(0x147)][_0x1cf9ee(0x10d)][_0x1cf9ee(0x12b)](_0x19ebc4),_0x54dba9=this[_0x1cf9ee(0x127)][_0x1cf9ee(0x113)]({'revision':_0x115278,'from':_0x50110f,'to':_0x789a6});_0x54dba9[_0x1cf9ee(0x102)]=_0x54dba9[_0x1cf9ee(0x13f)][_0x1cf9ee(0x114)](_0xc3680b=>_0x44d39d[_0x1cf9ee(0x136)](_0xc3680b)),_0x115278[_0x1cf9ee(0x145)](_0x54dba9);}[_0x221f60(0x141)](_0x435324){const _0x35f5ad=_0x221f60,_0x278c1d={};_0x278c1d['id']=_0x435324['id'];for(const _0x176e9b of Object[_0x35f5ad(0x130)](_0x435324))'id'!==_0x176e9b&&(_0x278c1d[_0x176e9b]=void 0x0);this[_0x35f5ad(0x127)][_0x35f5ad(0x155)](_0x278c1d['id'],_0x278c1d,!0x0);}async[_0x221f60(0x16b)](_0x318a24){const _0x4c6096=_0x221f60,_0xf3fcb=this[_0x4c6096(0x147)][_0x4c6096(0x10d)][_0x4c6096(0x12b)](_0x19ebc4),{connection:_0x566b20}=this[_0x4c6096(0x147)][_0x4c6096(0x10d)][_0x4c6096(0x12b)](_0x53ab73),_0x11487d=new Set();for(const _0x13d50b of _0x318a24){for(const _0x4b9b36 of _0x13d50b[_0x4c6096(0x13f)])_0x4d4d68(_0x4b9b36);_0x13d50b[_0x4c6096(0x133)]&&_0x4d4d68(_0x13d50b[_0x4c6096(0x133)]);}if(0x0===_0x11487d[_0x4c6096(0x16d)])return;const _0x13eba7=await _0x2c3b6f[_0x4c6096(0x12c)](_0x566b20,Array[_0x4c6096(0x125)](_0x11487d));for(const _0x36c396 of _0x13eba7)_0xf3fcb[_0x4c6096(0x136)](_0x36c396['id'])||_0xf3fcb[_0x4c6096(0x144)](_0x36c396);function _0x4d4d68(_0x481f35){const _0x352f4b=_0x4c6096;_0xf3fcb[_0x352f4b(0x136)](_0x481f35)||_0x11487d[_0x352f4b(0x111)](_0x481f35);}}}export{c as CloudServicesRevisionHistoryAdapter};function st(_0x44c5dd){const _0x309683=_0x221f60;return _0x44c5dd[_0x309683(0x142)][_0x309683(0x131)](_0x309683(0x123))||_0x44c5dd[_0x309683(0x142)][_0x309683(0x131)](_0x309683(0x154))||_0x44c5dd[_0x309683(0x142)][_0x309683(0x131)](_0x309683(0x140));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5773(){const _0x4696b8=['connect','getMany','2622612xyesje','state','attributes','data','suggestionUpdated','_bufferedRequests','511725yDxMCc','hasSuggestion','addSuggestionData','editor','off','type','reconnect','isConnected','listenTo','size','init','cloud-services-internal-error:\x20Request\x20timeout.','_saved','open','startsWith','message','delete','requires','_trackChangesService','add','TrackChangesService','originalSuggestionId','update','1544120BYVFhA','then','410445JXcoxp','CloudServicesTrackChangesAdapter','240802vfsZuF','_waitForServiceReady','addUser','addToReconnectionStack','get','config','getUser','catch','isPremiumPlugin','getSuggestion','find','6MDAIWq','from','collaboration.channelId','set','connection','cloud-services-internal-error:\x20Not\x20connected.','isOfficialPlugin','values','plugins','connected','_fetchMissingUsersForThreads','3524928XLKcLG','TrackChangesEditing','2423680NdXvNN','pluginName','adapter'];_0x5773=function(){return _0x4696b8;};return _0x5773();}function _0x1d72(_0xffd293,_0x592885){const _0x57733e=_0x5773();return _0x1d72=function(_0x1d722c,_0x166202){_0x1d722c=_0x1d722c-0x1e7;let _0x4c0b0d=_0x57733e[_0x1d722c];return _0x4c0b0d;},_0x1d72(_0xffd293,_0x592885);}const _0xae5bdb=_0x1d72;(function(_0x419056,_0x9cfb55){const _0x5b4fff=_0x1d72,_0x18d7ed=_0x419056();while(!![]){try{const _0x63c5ae=parseInt(_0x5b4fff(0x211))/0x1+-parseInt(_0x5b4fff(0x1ee))/0x2*(-parseInt(_0x5b4fff(0x1f9))/0x3)+-parseInt(_0x5b4fff(0x206))/0x4+parseInt(_0x5b4fff(0x1ea))/0x5+-parseInt(_0x5b4fff(0x20b))/0x6+parseInt(_0x5b4fff(0x1ec))/0x7+parseInt(_0x5b4fff(0x204))/0x8;if(_0x63c5ae===_0x9cfb55)break;else _0x18d7ed['push'](_0x18d7ed['shift']());}catch(_0x5e1a17){_0x18d7ed['push'](_0x18d7ed['shift']());}}}(_0x5773,0x7e5cc));import{Plugin as _0x48dc32}from'ckeditor5/src/core.js';import{User as _0x3d1fcf,TrackChangesService as _0x1c8ce9}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x3083d0}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x393d65}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x39d801}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x48dc32{static [_0xae5bdb(0x1e7)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x1c8ce9)());[_0xae5bdb(0x210)];[_0xae5bdb(0x223)];static get[_0xae5bdb(0x222)](){const _0x47dbbb=_0xae5bdb;return[_0x393d65,_0x47dbbb(0x205),_0x3083d0];}static get[_0xae5bdb(0x207)](){const _0x44f466=_0xae5bdb;return _0x44f466(0x1ed);}static get[_0xae5bdb(0x1ff)](){return!0x0;}static get[_0xae5bdb(0x1f6)](){return!0x0;}constructor(_0x41bc8d){const _0x20faec=_0xae5bdb;super(_0x41bc8d);const _0x336fa8=this[_0x20faec(0x214)][_0x20faec(0x1f3)][_0x20faec(0x1f2)](_0x20faec(0x1fb));this[_0x20faec(0x210)]=new Map(),this[_0x20faec(0x223)]=new m[(_0x20faec(0x1e7))](_0x336fa8);}[_0xae5bdb(0x21b)](){const _0x128eca=_0xae5bdb,_0x50ab3a=this[_0x128eca(0x214)][_0x128eca(0x201)][_0x128eca(0x1f2)](_0x3083d0),_0x100523=this[_0x128eca(0x214)][_0x128eca(0x201)][_0x128eca(0x1f2)](_0x128eca(0x205));return _0x100523[_0x128eca(0x208)]={'getSuggestion':async _0x440716=>{const _0xcb12d4=_0x128eca;await this[_0xcb12d4(0x1ef)]();const _0x19139c=await this[_0xcb12d4(0x223)][_0xcb12d4(0x1f2)](_0x440716)[_0xcb12d4(0x1f5)](tt);return await this[_0xcb12d4(0x203)]([_0x19139c]),_0x19139c;},'addSuggestion':async({id:_0x76a50,type:_0x44f338,data:_0x504b4e,originalSuggestionId:_0x106b50,attributes:_0x5e1ff7})=>{const _0xe83490=_0x128eca;await this[_0xe83490(0x1ef)]();const _0x3214d7={'id':_0x76a50,'type':_0x44f338,'data':_0x504b4e,'originalSuggestionId':_0x106b50,'attributes':_0x5e1ff7},_0x473734=await this[_0xe83490(0x223)][_0xe83490(0x224)](_0x76a50,_0x44f338,_0x504b4e,_0x106b50,_0x5e1ff7)[_0xe83490(0x1f5)](_0x5766a1=>{if(ot(_0x5766a1))return new Promise(_0x3ad6d5=>{const _0x1eae2e=_0x1d72;this[_0x1eae2e(0x210)][_0x1eae2e(0x1fc)](_0x76a50,{'resolve':_0x3ad6d5,'suggestionData':_0x3214d7});});throw _0x5766a1;});return this[_0xe83490(0x210)][_0xe83490(0x221)](_0x76a50),_0x473734;},'updateSuggestion':async(_0x268e06,_0x4b1da0)=>{const _0x49e42a=_0x128eca;if(await this[_0x49e42a(0x1ef)](),_0x49e42a(0x21e)!==_0x4b1da0[_0x49e42a(0x20c)])return this[_0x49e42a(0x223)][_0x49e42a(0x1e9)](_0x268e06,_0x4b1da0)[_0x49e42a(0x1f5)](tt);}},this[_0x128eca(0x219)](this[_0x128eca(0x223)],_0x128eca(0x20f),(_0x5f5802,_0x2f4224)=>{const _0x131ed8=_0x128eca;_0x100523[_0x131ed8(0x212)](_0x2f4224['id'])&&(_0x100523[_0x131ed8(0x1f7)](_0x2f4224['id'])[_0x131ed8(0x20d)]=_0x2f4224[_0x131ed8(0x20d)]);}),this[_0x128eca(0x223)][_0x128eca(0x209)](_0x50ab3a[_0x128eca(0x1fd)])[_0x128eca(0x1eb)](_0x2313b8=>(_0x50ab3a[_0x128eca(0x1f1)](this),this[_0x128eca(0x203)](_0x2313b8)[_0x128eca(0x1eb)](()=>{const _0xb3e2c6=_0x128eca;for(const _0x2fdc01 of _0x2313b8){_0x100523[_0xb3e2c6(0x213)](_0x2fdc01)[_0xb3e2c6(0x21d)]=!0x0;}})));}async[_0xae5bdb(0x217)](){const _0x3bfe40=_0xae5bdb,_0x48cc62=this[_0x3bfe40(0x214)][_0x3bfe40(0x201)][_0x3bfe40(0x1f2)](_0x3bfe40(0x205)),{connection:_0x1765f8}=this[_0x3bfe40(0x214)][_0x3bfe40(0x201)][_0x3bfe40(0x1f2)](_0x3083d0),_0x4156ca=await this[_0x3bfe40(0x223)][_0x3bfe40(0x209)](_0x1765f8);await this[_0x3bfe40(0x203)](_0x4156ca);for(const {suggestionData:_0x238da8,resolve:_0x2833e0}of this[_0x3bfe40(0x210)][_0x3bfe40(0x200)]()){let _0x36d9f0=_0x4156ca[_0x3bfe40(0x1f8)](_0x3910e5=>_0x3910e5['id']===_0x238da8['id']);_0x36d9f0||(_0x36d9f0=await this[_0x3bfe40(0x223)][_0x3bfe40(0x224)](_0x238da8['id'],_0x238da8[_0x3bfe40(0x216)],_0x238da8[_0x3bfe40(0x20e)],_0x238da8[_0x3bfe40(0x1e8)])),_0x2833e0(_0x36d9f0);}for(const _0xdbb9a of _0x4156ca)_0x48cc62[_0x3bfe40(0x212)](_0xdbb9a['id'])||_0x48cc62[_0x3bfe40(0x213)](_0xdbb9a);}async[_0xae5bdb(0x1ef)](){const _0x5472b5=_0xae5bdb;this[_0x5472b5(0x223)][_0x5472b5(0x218)]||await new Promise(_0x155b5f=>{const _0xc8bf7f=_0x5472b5;this[_0xc8bf7f(0x219)](this[_0xc8bf7f(0x223)],_0xc8bf7f(0x202),_0x24019c=>{const _0x5460fd=_0xc8bf7f;_0x24019c[_0x5460fd(0x215)](),_0x155b5f();});});}async[_0xae5bdb(0x203)](_0x67ea4){const _0x412145=_0xae5bdb,_0x14d220=this[_0x412145(0x214)][_0x412145(0x201)][_0x412145(0x1f2)](_0x39d801),{connection:_0x3fce99}=this[_0x412145(0x214)][_0x412145(0x201)][_0x412145(0x1f2)](_0x3083d0),_0xd52fed=new Set();for(const {authorId:_0x1445f3}of _0x67ea4)_0x14d220[_0x412145(0x1f4)](_0x1445f3)||_0xd52fed[_0x412145(0x224)](_0x1445f3);if(0x0===_0xd52fed[_0x412145(0x21a)])return;const _0x3dd498=await _0x3d1fcf[_0x412145(0x20a)](_0x3fce99,Array[_0x412145(0x1fa)](_0xd52fed));for(const _0x1313e6 of _0x3dd498)_0x14d220[_0x412145(0x1f4)](_0x1313e6['id'])||_0x14d220[_0x412145(0x1f0)](_0x1313e6);}}export{m as CloudServicesTrackChangesAdapter};function tt(_0x15949c){if(ot(_0x15949c))return new Promise(()=>{});throw _0x15949c;}function ot(_0x420a41){const _0x567d92=_0xae5bdb;return _0x420a41[_0x567d92(0x220)][_0x567d92(0x21f)](_0x567d92(0x1fe))||_0x420a41[_0x567d92(0x220)][_0x567d92(0x21f)](_0x567d92(0x21c));}
23
+ const _0x212140=_0x50ce;(function(_0x8b1870,_0x30f165){const _0xe7b1b6=_0x50ce,_0x383592=_0x8b1870();while(!![]){try{const _0x80264b=parseInt(_0xe7b1b6(0x15a))/0x1*(-parseInt(_0xe7b1b6(0x176))/0x2)+-parseInt(_0xe7b1b6(0x151))/0x3*(parseInt(_0xe7b1b6(0x177))/0x4)+-parseInt(_0xe7b1b6(0x186))/0x5+-parseInt(_0xe7b1b6(0x154))/0x6+parseInt(_0xe7b1b6(0x185))/0x7*(parseInt(_0xe7b1b6(0x159))/0x8)+-parseInt(_0xe7b1b6(0x17b))/0x9*(-parseInt(_0xe7b1b6(0x15c))/0xa)+parseInt(_0xe7b1b6(0x150))/0xb;if(_0x80264b===_0x30f165)break;else _0x383592['push'](_0x383592['shift']());}catch(_0x12698b){_0x383592['push'](_0x383592['shift']());}}}(_0x3a47,0x75a61));import{Plugin as _0x13aa04}from'ckeditor5/src/core.js';import{User as _0x2f060b,TrackChangesService as _0x2cabc3}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x122207}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x376e6d}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';function _0x3a47(){const _0x3eb474=['hasSuggestion','catch','delete','values','suggestionUpdated','connected','set','find','8267578HKYxRo','3lIwJbK','getMany','config','3781476FAsUIR','_waitForServiceReady','update','_saved','editor','7380056SujXwK','22426PAKwYA','from','2947090IuMZjf','pluginName','cloud-services-internal-error:\x20Request\x20timeout.','size','requires','CloudServicesTrackChangesAdapter','_fetchMissingUsersForThreads','connect','listenTo','isOfficialPlugin','isPremiumPlugin','message','isConnected','open','collaboration.channelId','type','state','TrackChangesEditing','get','_trackChangesService','connection','attributes','add','addToReconnectionStack','getSuggestion','reconnect','82RUGNkg','521400CCNTSB','data','off','TrackChangesService','18fBazYj','adapter','then','init','getUser','plugins','_bufferedRequests','cloud-services-internal-error:\x20Not\x20connected.','originalSuggestionId','startsWith','7wVfkPZ','507860REPwEs','addUser','addSuggestionData'];_0x3a47=function(){return _0x3eb474;};return _0x3a47();}import{Users as _0x456d2c}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x50ce(_0x331957,_0x3e9d1f){const _0x3a470c=_0x3a47();return _0x50ce=function(_0x50ce8b,_0x360430){_0x50ce8b=_0x50ce8b-0x148;let _0x32e917=_0x3a470c[_0x50ce8b];return _0x32e917;},_0x50ce(_0x331957,_0x3e9d1f);}class m extends _0x13aa04{static [_0x212140(0x17a)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x2cabc3)());[_0x212140(0x181)];[_0x212140(0x16f)];static get[_0x212140(0x160)](){const _0x45a087=_0x212140;return[_0x376e6d,_0x45a087(0x16d),_0x122207];}static get[_0x212140(0x15d)](){const _0xf3972b=_0x212140;return _0xf3972b(0x161);}static get[_0x212140(0x165)](){return!0x0;}static get[_0x212140(0x166)](){return!0x0;}constructor(_0x18fce6){const _0x46f1de=_0x212140;super(_0x18fce6);const _0xb342cf=this[_0x46f1de(0x158)][_0x46f1de(0x153)][_0x46f1de(0x16e)](_0x46f1de(0x16a));this[_0x46f1de(0x181)]=new Map(),this[_0x46f1de(0x16f)]=new m[(_0x46f1de(0x17a))](_0xb342cf);}[_0x212140(0x17e)](){const _0x5a478d=_0x212140,_0x4ef065=this[_0x5a478d(0x158)][_0x5a478d(0x180)][_0x5a478d(0x16e)](_0x122207),_0x1e0b43=this[_0x5a478d(0x158)][_0x5a478d(0x180)][_0x5a478d(0x16e)](_0x5a478d(0x16d));return _0x1e0b43[_0x5a478d(0x17c)]={'getSuggestion':async _0x2f35f5=>{const _0x3a743b=_0x5a478d;await this[_0x3a743b(0x155)]();const _0x12c901=await this[_0x3a743b(0x16f)][_0x3a743b(0x16e)](_0x2f35f5)[_0x3a743b(0x149)](k);return await this[_0x3a743b(0x162)]([_0x12c901]),_0x12c901;},'addSuggestion':async({id:_0x36aae7,type:_0x54ae78,data:_0x4e0fbc,originalSuggestionId:_0x20a64f,attributes:_0x4985e1})=>{const _0x11e84b=_0x5a478d;await this[_0x11e84b(0x155)]();const _0x49fe49={'id':_0x36aae7,'type':_0x54ae78,'data':_0x4e0fbc,'originalSuggestionId':_0x20a64f,'attributes':_0x4985e1},_0x4d5c09=await this[_0x11e84b(0x16f)][_0x11e84b(0x172)](_0x36aae7,_0x54ae78,_0x4e0fbc,_0x20a64f,_0x4985e1)[_0x11e84b(0x149)](_0xafe60a=>{if(st(_0xafe60a))return new Promise(_0x9f1a59=>{const _0x288be0=_0x50ce;this[_0x288be0(0x181)][_0x288be0(0x14e)](_0x36aae7,{'resolve':_0x9f1a59,'suggestionData':_0x49fe49});});throw _0xafe60a;});return this[_0x11e84b(0x181)][_0x11e84b(0x14a)](_0x36aae7),_0x4d5c09;},'updateSuggestion':async(_0x576a00,_0x1e8696)=>{const _0x409871=_0x5a478d;if(await this[_0x409871(0x155)](),_0x409871(0x169)!==_0x1e8696[_0x409871(0x16c)])return this[_0x409871(0x16f)][_0x409871(0x156)](_0x576a00,_0x1e8696)[_0x409871(0x149)](k);}},this[_0x5a478d(0x164)](this[_0x5a478d(0x16f)],_0x5a478d(0x14c),(_0x1d5c66,_0x365210)=>{const _0x4d57f4=_0x5a478d;_0x1e0b43[_0x4d57f4(0x148)](_0x365210['id'])&&(_0x1e0b43[_0x4d57f4(0x174)](_0x365210['id'])[_0x4d57f4(0x171)]=_0x365210[_0x4d57f4(0x171)]);}),this[_0x5a478d(0x16f)][_0x5a478d(0x163)](_0x4ef065[_0x5a478d(0x170)])[_0x5a478d(0x17d)](_0x495d0e=>(_0x4ef065[_0x5a478d(0x173)](this),this[_0x5a478d(0x162)](_0x495d0e)[_0x5a478d(0x17d)](()=>{const _0xc9dd75=_0x5a478d;for(const _0x5a121a of _0x495d0e){_0x1e0b43[_0xc9dd75(0x188)](_0x5a121a)[_0xc9dd75(0x157)]=!0x0;}})));}async[_0x212140(0x175)](){const _0x341c64=_0x212140,_0x1f1a05=this[_0x341c64(0x158)][_0x341c64(0x180)][_0x341c64(0x16e)](_0x341c64(0x16d)),{connection:_0x4ccfab}=this[_0x341c64(0x158)][_0x341c64(0x180)][_0x341c64(0x16e)](_0x122207),_0x19bf0e=await this[_0x341c64(0x16f)][_0x341c64(0x163)](_0x4ccfab);await this[_0x341c64(0x162)](_0x19bf0e);for(const {suggestionData:_0x6afd27,resolve:_0x3828f1}of this[_0x341c64(0x181)][_0x341c64(0x14b)]()){let _0x481842=_0x19bf0e[_0x341c64(0x14f)](_0x5cca23=>_0x5cca23['id']===_0x6afd27['id']);_0x481842||(_0x481842=await this[_0x341c64(0x16f)][_0x341c64(0x172)](_0x6afd27['id'],_0x6afd27[_0x341c64(0x16b)],_0x6afd27[_0x341c64(0x178)],_0x6afd27[_0x341c64(0x183)])),_0x3828f1(_0x481842);}for(const _0x549cea of _0x19bf0e)_0x1f1a05[_0x341c64(0x148)](_0x549cea['id'])||_0x1f1a05[_0x341c64(0x188)](_0x549cea);}async[_0x212140(0x155)](){const _0x3f2ce0=_0x212140;this[_0x3f2ce0(0x16f)][_0x3f2ce0(0x168)]||await new Promise(_0x285c1f=>{const _0x1d5d48=_0x3f2ce0;this[_0x1d5d48(0x164)](this[_0x1d5d48(0x16f)],_0x1d5d48(0x14d),_0x1a7ed1=>{const _0x29f4d8=_0x1d5d48;_0x1a7ed1[_0x29f4d8(0x179)](),_0x285c1f();});});}async[_0x212140(0x162)](_0x593926){const _0x2b6d59=_0x212140,_0x57cf56=this[_0x2b6d59(0x158)][_0x2b6d59(0x180)][_0x2b6d59(0x16e)](_0x456d2c),{connection:_0x225da6}=this[_0x2b6d59(0x158)][_0x2b6d59(0x180)][_0x2b6d59(0x16e)](_0x122207),_0x5c359c=new Set();for(const {authorId:_0x13d9cd}of _0x593926)_0x57cf56[_0x2b6d59(0x17f)](_0x13d9cd)||_0x5c359c[_0x2b6d59(0x172)](_0x13d9cd);if(0x0===_0x5c359c[_0x2b6d59(0x15f)])return;const _0x299a4c=await _0x2f060b[_0x2b6d59(0x152)](_0x225da6,Array[_0x2b6d59(0x15b)](_0x5c359c));for(const _0x99fe3a of _0x299a4c)_0x57cf56[_0x2b6d59(0x17f)](_0x99fe3a['id'])||_0x57cf56[_0x2b6d59(0x187)](_0x99fe3a);}}export{m as CloudServicesTrackChangesAdapter};function k(_0x52980f){if(st(_0x52980f))return new Promise(()=>{});throw _0x52980f;}function st(_0x278cfc){const _0x3ddf96=_0x212140;return _0x278cfc[_0x3ddf96(0x167)][_0x3ddf96(0x184)](_0x3ddf96(0x182))||_0x278cfc[_0x3ddf96(0x167)][_0x3ddf96(0x184)](_0x3ddf96(0x15e));}