@univerjs-pro/collaboration-client 0.5.0-nightly.202411251606 → 0.5.0-nightly.202411271606

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/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xbb724d=_0x195f;(function(_0x4b033c,_0x36c890){const _0x5ef76f=_0x195f,_0x5ad41f=_0x4b033c();while(!![]){try{const _0x5b8c10=-parseInt(_0x5ef76f(0x28d))/0x1*(-parseInt(_0x5ef76f(0x29e))/0x2)+parseInt(_0x5ef76f(0x49d))/0x3*(parseInt(_0x5ef76f(0x2a9))/0x4)+parseInt(_0x5ef76f(0x2a1))/0x5+parseInt(_0x5ef76f(0x4aa))/0x6*(-parseInt(_0x5ef76f(0x1b8))/0x7)+parseInt(_0x5ef76f(0x34b))/0x8*(-parseInt(_0x5ef76f(0x23b))/0x9)+parseInt(_0x5ef76f(0x329))/0xa+-parseInt(_0x5ef76f(0x387))/0xb;if(_0x5b8c10===_0x36c890)break;else _0x5ad41f['push'](_0x5ad41f['shift']());}catch(_0xa7ed1d){_0x5ad41f['push'](_0x5ad41f['shift']());}}}(_0x2701,0x366d6));var ji=Object[_0xbb724d(0x164)],$i=(_0x2e4b28,_0x41c21c,_0x383136)=>_0x41c21c in _0x2e4b28?ji(_0x2e4b28,_0x41c21c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x383136}):_0x2e4b28[_0x41c21c]=_0x383136,I=(_0x1f845d,_0x258bf4,_0x4dfda2)=>$i(_0x1f845d,typeof _0x258bf4!=_0xbb724d(0x264)?_0x258bf4+'':_0x258bf4,_0x4dfda2);Object[_0xbb724d(0x164)](exports,Symbol[_0xbb724d(0x52b)],{'value':'Module'});const a=require(_0xbb724d(0x91)),A=require('rxjs'),V=require('rxjs/operators'),Ce=require(_0xbb724d(0x51a)),z=require(_0xbb724d(0x1f5)),te=require(_0xbb724d(0x45d)),p=require(_0xbb724d(0x145)),Hi=require(_0xbb724d(0xdc)),Ie=require(_0xbb724d(0x535)),J=require(_0xbb724d(0x310)),k=require(_0xbb724d(0x9c)),K=require(_0xbb724d(0x321)),ie=require(_0xbb724d(0x3a1)),Mt=require(_0xbb724d(0xe1)),ye=require('@univerjs/sheets-ui'),ae=require(_0xbb724d(0x41f)),Bi=require(_0xbb724d(0x2fd)),ii=_0xbb724d(0x292),ki=_0xbb724d(0x1af),ni=_0xbb724d(0x297),Wi=_0xbb724d(0x176),Fi=0x7d0,si='COLLAB_WEB_SOCKET_URL',Vi=_0xbb724d(0xd8),Gi=_0xbb724d(0x461),ri=_0xbb724d(0x341),Yi=0x7530,Et=_0xbb724d(0x3bb),oi=0x4e20,Ki=0x4e20,ai=_0xbb724d(0x487),qi=0x3,ci=_0xbb724d(0x3be),zi=0x3e8,li='COLLAB_SUBMIT_CHANGESET_URL',Xi=_0xbb724d(0xd9),hi=_0xbb724d(0x298),Ji=_0xbb724d(0xd7);var _i=(_0x50b432=>(_0x50b432[_0x50b432[_0xbb724d(0xc3)]=0x0]=_0xbb724d(0xc3),_0x50b432[_0x50b432['OK']=0x1]='OK',_0x50b432[_0x50b432[_0xbb724d(0x508)]=0x2]=_0xbb724d(0x508),_0x50b432[_0x50b432['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x50b432[_0x50b432[_0xbb724d(0xa7)]=0x4]='NOT_FOUND',_0x50b432[_0x50b432[_0xbb724d(0x132)]=0x5]='UNAUTHENTICATED',_0x50b432[_0x50b432[_0xbb724d(0x2ed)]=0x6]=_0xbb724d(0x2ed),_0x50b432[_0x50b432['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x50b432[_0x50b432['TOO_MANY_REQUESTS']=0x8]=_0xbb724d(0x23a),_0x50b432[_0x50b432[_0xbb724d(0x1da)]=0x9]=_0xbb724d(0x1da),_0x50b432[_0x50b432[_0xbb724d(0x33b)]=0x1389]=_0xbb724d(0x33b),_0x50b432[_0x50b432[_0xbb724d(0x2bb)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x50b432[_0x50b432[_0xbb724d(0x1d3)]=0x1772]=_0xbb724d(0x1d3),_0x50b432[_0x50b432['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xbb724d(0x31a),_0x50b432[_0x50b432[_0xbb724d(0x27f)]=0x1b59]=_0xbb724d(0x27f),_0x50b432[_0x50b432['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0xbb724d(0x277),_0x50b432[_0x50b432['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xbb724d(0xa5),_0x50b432[_0x50b432['APPLY_PERMISSION_DENIED']=0x1b5c]=_0xbb724d(0x3fc),_0x50b432[_0x50b432[_0xbb724d(0x3b7)]=0x1b5d]='APPLY_DUPLICATED',_0x50b432[_0x50b432[_0xbb724d(0x1dc)]=0x1f41]=_0xbb724d(0x1dc),_0x50b432[_0x50b432[_0xbb724d(0x88)]=0x2329]=_0xbb724d(0x88),_0x50b432[_0x50b432[_0xbb724d(0x186)]=0x232a]=_0xbb724d(0x186),_0x50b432[_0x50b432[_0xbb724d(0x42b)]=0x232b]=_0xbb724d(0x42b),_0x50b432[_0x50b432[_0xbb724d(0x253)]=0x232c]=_0xbb724d(0x253),_0x50b432[_0x50b432['LICENSE_DISTRO_REJECTED']=0x232d]=_0xbb724d(0xf5),_0x50b432[_0x50b432[_0xbb724d(0x48a)]=0x2711]=_0xbb724d(0x48a),_0x50b432[_0x50b432[_0xbb724d(0x1ed)]=0x2712]=_0xbb724d(0x1ed),_0x50b432[_0x50b432[_0xbb724d(0x2ac)]=0x2713]=_0xbb724d(0x2ac),_0x50b432[_0x50b432[_0xbb724d(0x265)]=0x2714]=_0xbb724d(0x265),_0x50b432[_0x50b432[_0xbb724d(0x185)]=-0x1]=_0xbb724d(0x185),_0x50b432))(_i||{}),ne=(_0x445bcd=>(_0x445bcd[_0x445bcd[_0xbb724d(0x3b5)]=0x0]=_0xbb724d(0x3b5),_0x445bcd[_0x445bcd[_0xbb724d(0x44c)]=0x1]=_0xbb724d(0x44c),_0x445bcd[_0x445bcd['UNIVER_SHEET']=0x2]=_0xbb724d(0x1ac),_0x445bcd[_0x445bcd[_0xbb724d(0x46e)]=0x3]=_0xbb724d(0x46e),_0x445bcd[_0x445bcd[_0xbb724d(0x41d)]=0x4]=_0xbb724d(0x41d),_0x445bcd[_0x445bcd['UNRECOGNIZED']=-0x1]=_0xbb724d(0x185),_0x445bcd))(ne||{}),G=(_0x27156e=>(_0x27156e[_0x27156e[_0xbb724d(0x153)]=0x0]='UNKNOWN_CMD',_0x27156e[_0x27156e[_0xbb724d(0x1e4)]=0x1]=_0xbb724d(0x1e4),_0x27156e[_0x27156e[_0xbb724d(0x414)]=0x2]='JOIN',_0x27156e[_0x27156e['LEAVE']=0x3]=_0xbb724d(0x2b9),_0x27156e[_0x27156e[_0xbb724d(0xc2)]=0x4]='INGEST',_0x27156e[_0x27156e[_0xbb724d(0x2de)]=0x5]=_0xbb724d(0x2de),_0x27156e[_0x27156e[_0xbb724d(0x372)]=0x6]=_0xbb724d(0x372),_0x27156e[_0x27156e[_0xbb724d(0x185)]=-0x1]=_0xbb724d(0x185),_0x27156e))(G||{}),bt=(_0x122818=>(_0x122818[_0x122818[_0xbb724d(0x1fb)]=0x0]=_0xbb724d(0x1fb),_0x122818[_0x122818['OK']=0x1]='OK',_0x122818[_0x122818[_0xbb724d(0x259)]=0x2]=_0xbb724d(0x259),_0x122818[_0x122818['JOIN_ROOM_FULL']=0x3e9]=_0xbb724d(0x3da),_0x122818[_0x122818[_0xbb724d(0x94)]=0x3ea]='JOIN_ROOM_NOT_ALLOWED',_0x122818[_0x122818[_0xbb724d(0x185)]=-0x1]=_0xbb724d(0x185),_0x122818))(bt||{}),ui=(_0x57d51c=>(_0x57d51c[_0x57d51c[_0xbb724d(0x25a)]=0x0]=_0xbb724d(0x25a),_0x57d51c[_0x57d51c[_0xbb724d(0x21f)]=0x1]=_0xbb724d(0x21f),_0x57d51c[_0x57d51c[_0xbb724d(0x343)]=0x2]=_0xbb724d(0x343),_0x57d51c[_0x57d51c[_0xbb724d(0x4af)]=0x3]=_0xbb724d(0x4af),_0x57d51c[_0x57d51c[_0xbb724d(0x101)]=0x4]=_0xbb724d(0x101),_0x57d51c[_0x57d51c[_0xbb724d(0x185)]=-0x1]='UNRECOGNIZED',_0x57d51c))(ui||{});const Q=_0xbb724d(0x16f),Zi={};function di(_0x572f91){const _0x58b65b=_0xbb724d;var _0x3194d3,_0x56809f,_0x221eea,_0x4144ad,_0x4ac6db;const _0x1e0500=_0x572f91['data'],_0x28780d=JSON[_0x58b65b(0x2bd)](_0x1e0500);switch(_0x28780d[_0x58b65b(0x3cc)]){case G[_0x58b65b(0x2de)]:case G['HELLO']:{const _0x50eb81=_0x28780d[_0x58b65b(0x3f1)];return{..._0x28780d,'data':_0x50eb81,'cmd':_0x28780d['cmd']};}case G['JOIN']:{const _0x437ff5=_0x28780d[_0x58b65b(0x247)];return{..._0x28780d,'data':_0x437ff5,'cmd':_0x28780d[_0x58b65b(0x3cc)]};}case G['RECV']:{const _0x4547c1=_0x28780d['collaMsg'];switch(_0x4547c1[_0x58b65b(0x470)]){case p[_0x58b65b(0x29f)]['PERMISSION_REJ']:return{..._0x28780d,'data':{..._0x4547c1,'data':(_0x3194d3=_0x4547c1[_0x58b65b(0x4ee)])==null?void 0x0:_0x3194d3['cs']},'cmd':_0x28780d[_0x58b65b(0x3cc)]};case p['CollaborationEvent']['CHANGESET_ACK']:return{..._0x28780d,'data':{..._0x4547c1,'data':(_0x56809f=_0x4547c1[_0x58b65b(0x17c)])==null?void 0x0:_0x56809f['cs']},'cmd':_0x28780d['cmd']};case p['CollaborationEvent']['NEW_CHANGESETS']:return{..._0x28780d,'data':{..._0x4547c1,'data':(_0x221eea=_0x4547c1[_0x58b65b(0x116)])==null?void 0x0:_0x221eea['cs']},'cmd':_0x28780d['cmd']};case p[_0x58b65b(0x29f)]['CHANGESET_REJ']:return{..._0x28780d,'data':{..._0x4547c1,'data':(_0x4144ad=_0x4547c1['csRejEvent'])==null?void 0x0:_0x4144ad['cs']},'cmd':_0x28780d[_0x58b65b(0x3cc)]};case p[_0x58b65b(0x29f)][_0x58b65b(0xdf)]:return{..._0x28780d,'data':{..._0x4547c1,'data':(_0x4ac6db=_0x4547c1[_0x58b65b(0x167)])==null?void 0x0:_0x4ac6db['cs']},'cmd':_0x28780d[_0x58b65b(0x3cc)]};case p[_0x58b65b(0x29f)]['UPDATE_CURSOR']:return{..._0x28780d,'data':{..._0x4547c1,'data':_0x4547c1['updateCursorEvent']},'cmd':_0x28780d['cmd']};case p['CollaborationEvent'][_0x58b65b(0x38c)]:return{..._0x28780d,'data':{..._0x4547c1,'data':_0x4547c1[_0x58b65b(0x4fa)]},'cmd':_0x28780d['cmd']};case p[_0x58b65b(0x29f)][_0x58b65b(0x22e)]:return{..._0x28780d,'data':{..._0x4547c1,'data':_0x4547c1[_0x58b65b(0x1e0)]},'cmd':_0x28780d['cmd']};case p[_0x58b65b(0x29f)][_0x58b65b(0x511)]:return{..._0x28780d,'data':{..._0x4547c1,'data':_0x4547c1[_0x58b65b(0xd1)]},'cmd':_0x28780d[_0x58b65b(0x3cc)]};case p[_0x58b65b(0x29f)][_0x58b65b(0x437)]:case p[_0x58b65b(0x29f)][_0x58b65b(0xb1)]:return{..._0x28780d,'data':{..._0x4547c1,'data':_0x4547c1[_0x58b65b(0x52e)]},'cmd':_0x28780d[_0x58b65b(0x3cc)]};case p['CollaborationEvent'][_0x58b65b(0x50b)]:return{..._0x28780d,'data':{..._0x4547c1,'data':_0x4547c1[_0x58b65b(0xd1)]},'cmd':_0x28780d['cmd']};case p[_0x58b65b(0x29f)][_0x58b65b(0x24b)]:return{..._0x28780d,'data':_0x4547c1,'cmd':_0x28780d['cmd']};case p[_0x58b65b(0x29f)][_0x58b65b(0x1ee)]:return{..._0x28780d,'data':{..._0x4547c1,'data':_0x4547c1['commentUpdateEvent']},'cmd':_0x28780d[_0x58b65b(0x3cc)]};case p[_0x58b65b(0x29f)]['UPDATE_PERMISSION_OBJ']:return{..._0x28780d,'data':{..._0x4547c1,'data':_0x4547c1[_0x58b65b(0x37b)]},'cmd':_0x28780d['cmd']};case p['CollaborationEvent'][_0x58b65b(0xa2)]:return{..._0x28780d,'data':{..._0x4547c1,'data':_0x4547c1[_0x58b65b(0x501)]},'cmd':_0x28780d[_0x58b65b(0x3cc)]};default:return _0x28780d;}}default:return _0x28780d;}}function fi(_0x5c7bce){const _0xa0d5ef=_0xbb724d;switch(_0x5c7bce[_0xa0d5ef(0x3cc)]){case G[_0xa0d5ef(0x2de)]:case G[_0xa0d5ef(0x1e4)]:return JSON[_0xa0d5ef(0x44f)]({'cmd':_0x5c7bce[_0xa0d5ef(0x3cc)],'routeKey':_0x5c7bce[_0xa0d5ef(0x373)]});case G[_0xa0d5ef(0xc2)]:{let _0x4f0ad4;switch(_0x5c7bce[_0xa0d5ef(0x238)][_0xa0d5ef(0x470)]){case p[_0xa0d5ef(0x29f)][_0xa0d5ef(0x34f)]:{_0x4f0ad4={'eventID':p['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x5c7bce['data']['data']};break;}case p[_0xa0d5ef(0x29f)][_0xa0d5ef(0x22e)]:{_0x4f0ad4={'eventID':p['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0x5c7bce[_0xa0d5ef(0x238)][_0xa0d5ef(0x238)]};break;}case p[_0xa0d5ef(0x29f)][_0xa0d5ef(0x38c)]:{_0x4f0ad4={'eventID':p[_0xa0d5ef(0x29f)][_0xa0d5ef(0x38c)],'joinEvent':_0x5c7bce[_0xa0d5ef(0x238)][_0xa0d5ef(0x238)]};break;}case p[_0xa0d5ef(0x29f)][_0xa0d5ef(0x511)]:{_0x4f0ad4={'eventID':p[_0xa0d5ef(0x29f)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x5c7bce[_0xa0d5ef(0x238)][_0xa0d5ef(0x238)]};break;}case p[_0xa0d5ef(0x29f)][_0xa0d5ef(0xb1)]:{_0x4f0ad4={'eventID':p[_0xa0d5ef(0x29f)][_0xa0d5ef(0xb1)],'liveShareOperation':_0x5c7bce[_0xa0d5ef(0x238)]['data']};break;}case p[_0xa0d5ef(0x29f)][_0xa0d5ef(0x50b)]:{_0x4f0ad4={'eventID':p['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5c7bce['data'][_0xa0d5ef(0x238)]};break;}case p[_0xa0d5ef(0x29f)][_0xa0d5ef(0x32c)]:{_0x4f0ad4={'eventID':p[_0xa0d5ef(0x29f)][_0xa0d5ef(0x32c)],'liveShareRequestHost':_0x5c7bce['data'][_0xa0d5ef(0x238)]};break;}case p[_0xa0d5ef(0x29f)][_0xa0d5ef(0x437)]:{_0x4f0ad4={'eventID':p['CollaborationEvent'][_0xa0d5ef(0x437)]};break;}default:_0x4f0ad4={'eventID':_0x5c7bce[_0xa0d5ef(0x238)][_0xa0d5ef(0x470)]};}return JSON[_0xa0d5ef(0x44f)]({'cmd':_0x5c7bce[_0xa0d5ef(0x3cc)],'routeKey':_0x5c7bce['routeKey'],'collaMsg':_0x4f0ad4});}case G[_0xa0d5ef(0x414)]:return JSON['stringify']({'cmd':_0x5c7bce[_0xa0d5ef(0x3cc)],'routeKey':_0x5c7bce[_0xa0d5ef(0x373)],'joinReq':_0x5c7bce[_0xa0d5ef(0x238)]});case G[_0xa0d5ef(0x2b9)]:return JSON['stringify']({'cmd':_0x5c7bce[_0xa0d5ef(0x3cc)],'routeKey':_0x5c7bce[_0xa0d5ef(0x373)],'leaveReq':_0x5c7bce[_0xa0d5ef(0x238)]});default:throw new Error(_0xa0d5ef(0x389));}}var Qi=Object[_0xbb724d(0x164)],en=Object[_0xbb724d(0x13d)],tn=(_0x39fa44,_0x490b91,_0x6ce310,_0x5fe62e)=>{const _0x5afc98=_0xbb724d;for(var _0x3ddad8=_0x5fe62e>0x1?void 0x0:_0x5fe62e?en(_0x490b91,_0x6ce310):_0x490b91,_0x40f632=_0x39fa44[_0x5afc98(0x2d9)]-0x1,_0x400367;_0x40f632>=0x0;_0x40f632--)(_0x400367=_0x39fa44[_0x40f632])&&(_0x3ddad8=(_0x5fe62e?_0x400367(_0x490b91,_0x6ce310,_0x3ddad8):_0x400367(_0x3ddad8))||_0x3ddad8);return _0x5fe62e&&_0x3ddad8&&Qi(_0x490b91,_0x6ce310,_0x3ddad8),_0x3ddad8;},Pe=(_0x55e0a8,_0x3dbed0)=>(_0x10ff2e,_0x18880d)=>_0x3dbed0(_0x10ff2e,_0x18880d,_0x55e0a8);const Tt=a[_0xbb724d(0x4a3)](_0xbb724d(0x194));function nn(_0x2cda4a,_0x139293,_0x3fb7c2){const _0x46124e=_0xbb724d;return _0x2cda4a+'/'+_0x139293+_0x46124e(0x457)+_0x3fb7c2+_0x46124e(0x426);}exports[_0xbb724d(0x4a8)]=class extends a['Disposable']{constructor(_0x4e5021,_0x1e4447,_0x5b9480,_0x41aa38,_0x1b97fe){const _0x359971=_0xbb724d;super(),this['_http']=_0x4e5021,this[_0x359971(0x138)]=_0x1e4447,this[_0x359971(0xe6)]=_0x5b9480,this[_0x359971(0x1a3)]=_0x41aa38,this['_snapshotServerService']=_0x1b97fe;}[_0xbb724d(0x493)](_0x1265e9){const _0x14a564=_0xbb724d,_0x37be45=this[_0x14a564(0x138)][_0x14a564(0x493)](_0x1265e9);if(!_0x37be45)throw new Error(_0x14a564(0x32f));const _0x2174c9=new a['DisposableCollection'](),_0x4d016d=new A[(_0x14a564(0x538))]();_0x2174c9[_0x14a564(0x404)](_0x37be45[_0x14a564(0xb3)]['subscribe'](_0xaac102=>_0x4d016d[_0x14a564(0x32a)](_0xaac102))),_0x2174c9[_0x14a564(0x404)](a[_0x14a564(0x2b7)](()=>_0x4d016d[_0x14a564(0x22b)]()));const _0x5694dc=new A['Subject']();_0x2174c9[_0x14a564(0x404)](_0x37be45[_0x14a564(0xee)]['subscribe'](_0x1f00ae=>_0x5694dc[_0x14a564(0x32a)](_0x1f00ae))),_0x2174c9[_0x14a564(0x404)](a[_0x14a564(0x2b7)](()=>_0x5694dc[_0x14a564(0x22b)]()));const _0x560006=new A['Subject']();_0x2174c9[_0x14a564(0x404)](_0x37be45['message$'][_0x14a564(0x2ae)](_0x3ce825=>{const _0x52843d=_0x14a564,_0x49f3=di(_0x3ce825);_0x560006[_0x52843d(0x32a)](_0x49f3);})),_0x2174c9[_0x14a564(0x404)](a[_0x14a564(0x2b7)](()=>_0x560006[_0x14a564(0x22b)]()));let _0x8c59e4;const _0x14a67e=()=>{const _0x410c77=_0x14a564;_0x5694dc[_0x410c77(0x32a)](new Event(_0x410c77(0x1b6))),_0x4d016d[_0x410c77(0x32a)](new CloseEvent(_0x410c77(0x1b6))),_0x8c59e4[_0x410c77(0x206)]();};return _0x8c59e4={'memberID':'','close$':_0x4d016d[_0x14a564(0x14b)](),'error$':_0x5694dc[_0x14a564(0x14b)](),'open$':_0x37be45[_0x14a564(0x356)],'message$':_0x560006['asObservable'](),'send':_0x53fb1f=>{const _0x27d8fe=_0x14a564;if(_0x53fb1f[_0x27d8fe(0x3cc)]===G['INGEST']){if(_0x53fb1f['data'][_0x27d8fe(0x470)]===p[_0x27d8fe(0x29f)][_0x27d8fe(0x441)]){this[_0x27d8fe(0x351)](_0x8c59e4,_0x53fb1f['data'])[_0x27d8fe(0x215)](_0x3a895b=>{const _0x3a5151=_0x27d8fe;this[_0x3a5151(0x1a3)][_0x3a5151(0x1d8)](_0x3a895b),_0x14a67e();});return;}if(_0x53fb1f['data'][_0x27d8fe(0x470)]===p[_0x27d8fe(0x29f)]['FETCH_MISSING']){const _0x59e0a1=_0x53fb1f['data'];this[_0x27d8fe(0x4e7)](_0x59e0a1)[_0x27d8fe(0x161)](_0x372123=>{const _0x550f9d=_0x27d8fe;_0x560006[_0x550f9d(0x32a)]({'cmd':G[_0x550f9d(0x372)],'code':bt['OK'],'routeKey':_0x59e0a1[_0x550f9d(0x238)][_0x550f9d(0x447)],'routeType':'','data':{'eventID':p[_0x550f9d(0x29f)][_0x550f9d(0x219)],'data':{'changesets':_0x372123}}});})[_0x27d8fe(0x215)](_0x2a1ddc=>{const _0x187c6e=_0x27d8fe;this[_0x187c6e(0x1a3)][_0x187c6e(0x1d8)](_0x2a1ddc),_0x14a67e();});return;}}_0x37be45[_0x27d8fe(0x370)](fi(_0x53fb1f));},'close':()=>{const _0x1b76f0=_0x14a564;_0x37be45['close'](),_0x2174c9[_0x1b76f0(0x16a)]();}},_0x8c59e4;}async[_0xbb724d(0x351)](_0x43e052,_0xdfebcf){const _0x1902ed=_0xbb724d;var _0x113177,_0x2fb4b0;const {unitType:_0x2898db,unitID:_0x371ad2,changeset:_0x376d0e}=_0xdfebcf[_0x1902ed(0x238)],_0x9af315={'unitID':_0x371ad2,'memberID':_0x43e052[_0x1902ed(0x3f8)],'type':_0x2898db,'changeset':p[_0x1902ed(0x28e)](_0x376d0e)},_0xa06b77=this['_configService']['getConfig'](li),_0x33c003=this[_0x1902ed(0xe6)][_0x1902ed(0x27c)](Q),_0x4a0279=nn((_0x2fb4b0=(_0x113177=_0x33c003==null?void 0x0:_0x33c003[_0x1902ed(0x24f)])!=null?_0x113177:_0xa06b77)!=null?_0x2fb4b0:Xi,_0x2898db,_0x371ad2);try{await this['_http'][_0x1902ed(0x4e4)](_0x4a0279,{'body':_0x9af315});}catch(_0x2f3a5d){throw this[_0x1902ed(0x1a3)][_0x1902ed(0x1d8)]('[CollaborationSession]',_0x1902ed(0x28f)),_0x2f3a5d;}}async['_fetchMissChangesets'](_0x22ab35){const _0x564e3f=_0xbb724d,{unitID:_0x7cf63c,from:_0x43dcb9,to:_0x2461f3,unitType:_0x1900d9}=_0x22ab35['data'];return(await this[_0x564e3f(0x454)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x7cf63c,'type':_0x1900d9,'from':_0x43dcb9,'to':_0x2461f3}))[_0x564e3f(0x532)];}},exports[_0xbb724d(0x4a8)]=tn([Pe(0x0,a[_0xbb724d(0x271)](z[_0xbb724d(0x539)])),Pe(0x1,a[_0xbb724d(0x271)](z[_0xbb724d(0x395)])),Pe(0x2,a['IConfigService']),Pe(0x3,a[_0xbb724d(0x2cb)]),Pe(0x4,p[_0xbb724d(0xe7)])],exports[_0xbb724d(0x4a8)]);const sn=_0xbb724d(0xf7);function rn(_0x478f21){const _0x36b7aa=_0xbb724d;return JSON[_0x36b7aa(0x44f)](_0x478f21)[_0x36b7aa(0x2d9)];}class Rt{constructor(){const _0xdbe510=_0xbb724d;I(this,_0xdbe510(0x2d3),new A['Subject']()),I(this,_0xdbe510(0x527),this[_0xdbe510(0x2d3)]['asObservable']());}['onCommentUpdate'](_0x354732){const _0x4819a7=_0xbb724d;this[_0x4819a7(0x2d3)][_0x4819a7(0x32a)](_0x354732);}}var on=Object[_0xbb724d(0x164)],an=Object[_0xbb724d(0x13d)],cn=(_0x5112a3,_0x2829b7,_0x296efa,_0x30b1c1)=>{const _0x27ab74=_0xbb724d;for(var _0x12c1b0=_0x30b1c1>0x1?void 0x0:_0x30b1c1?an(_0x2829b7,_0x296efa):_0x2829b7,_0x3a0628=_0x5112a3[_0x27ab74(0x2d9)]-0x1,_0x240292;_0x3a0628>=0x0;_0x3a0628--)(_0x240292=_0x5112a3[_0x3a0628])&&(_0x12c1b0=(_0x30b1c1?_0x240292(_0x2829b7,_0x296efa,_0x12c1b0):_0x240292(_0x12c1b0))||_0x12c1b0);return _0x30b1c1&&_0x12c1b0&&on(_0x2829b7,_0x296efa,_0x12c1b0),_0x12c1b0;},At=(_0x528d1c,_0x31d245)=>(_0x2f6e5e,_0x303259)=>_0x31d245(_0x2f6e5e,_0x303259,_0x528d1c);exports[_0xbb724d(0x420)]=class extends a['Disposable']{constructor(_0x399c3e,_0x4c226c){const _0x499803=_0xbb724d;super(),I(this,_0x499803(0xeb),new Map()),(this[_0x499803(0x20b)]=_0x399c3e,this[_0x499803(0x2d8)]=_0x4c226c,this[_0x499803(0x2ad)](a[_0x499803(0x2b7)](A[_0x499803(0xa9)](this[_0x499803(0x20b)][_0x499803(0x209)](a[_0x499803(0xd5)]['UNIVER_SHEET'])[_0x499803(0x52f)](V[_0x499803(0x1cf)](_0xcafd45=>_0xcafd45[_0x499803(0x285)]())),this[_0x499803(0x20b)][_0x499803(0x209)](a['UniverInstanceType']['UNIVER_DOC'])[_0x499803(0x52f)](V[_0x499803(0x1cf)](_0x56d055=>_0x56d055[_0x499803(0x285)]())),this[_0x499803(0x20b)][_0x499803(0x209)](a[_0x499803(0xd5)][_0x499803(0x46e)])[_0x499803(0x52f)](V[_0x499803(0x1cf)](_0x13a30e=>_0x13a30e['getUnitId']())))[_0x499803(0x2ae)](_0xfd852f=>this[_0x499803(0x361)](_0xfd852f)))));}[_0xbb724d(0x2b6)](_0x5454bd){const _0x13d402=_0xbb724d;this['_userManagerService'][_0x13d402(0x2b6)](_0x5454bd);}[_0xbb724d(0xb9)](){const _0x2ac97d=_0xbb724d;return this[_0x2ac97d(0x2d8)][_0x2ac97d(0xb9)]();}['updateMember'](_0x294cfe,_0x23ad65){const _0x21e4da=_0xbb724d;let _0x1f874d=this['_roomMembers'][_0x21e4da(0x2c9)](_0x294cfe);_0x1f874d||(_0x1f874d=new ln(),this[_0x21e4da(0xeb)][_0x21e4da(0x117)](_0x294cfe,_0x1f874d)),_0x1f874d[_0x21e4da(0x309)](_0x23ad65);}[_0xbb724d(0x4f6)](_0x5ba9bf,_0x3c19e6){const _0x25d0c0=_0xbb724d,_0x44f4af=this[_0x25d0c0(0xeb)][_0x25d0c0(0x2c9)](_0x5ba9bf);_0x44f4af&&_0x44f4af['removeMember'](_0x3c19e6);}['getRoom'](_0x27e531){const _0x494a7d=_0xbb724d;return this[_0x494a7d(0xeb)][_0x494a7d(0x2c9)](_0x27e531);}[_0xbb724d(0x18b)](_0x2ae389,_0x153b65){const _0x22dcd6=_0xbb724d,_0x1cdbf3=this['_roomMembers'][_0x22dcd6(0x2c9)](_0x2ae389);if(_0x1cdbf3)return _0x1cdbf3['getMember'](_0x153b65);}[_0xbb724d(0x361)](_0x527b74){const _0x26be8b=_0xbb724d,_0x45211b=this[_0x26be8b(0xeb)][_0x26be8b(0x2c9)](_0x527b74);_0x45211b&&(_0x45211b[_0x26be8b(0x16a)](),this[_0x26be8b(0xeb)]['delete'](_0x527b74));}['dispose'](){const _0x47c876=_0xbb724d;this[_0x47c876(0xeb)][_0x47c876(0x53b)](_0x321899=>_0x321899[_0x47c876(0x16a)]()),this['_roomMembers']['clear']();}},exports['MemberService']=cn([At(0x0,a[_0xbb724d(0x4c0)]),At(0x1,a[_0xbb724d(0x271)](a[_0xbb724d(0x466)]))],exports[_0xbb724d(0x420)]);class ln extends a[_0xbb724d(0x4cb)]{constructor(){super(...arguments),I(this,'_members',new Map());}[_0xbb724d(0x16a)](){const _0x1cc47d=_0xbb724d;this[_0x1cc47d(0x2ff)][_0x1cc47d(0x4e1)]();}[_0xbb724d(0x309)](_0x4eb596){const _0x188e86=_0xbb724d;this[_0x188e86(0x2ff)]['set'](_0x4eb596[_0x188e86(0x3f8)],_0x4eb596);}[_0xbb724d(0x4f6)](_0x3a0214){const _0x32bf3f=_0xbb724d;this['_members'][_0x32bf3f(0x1e6)](_0x3a0214);}[_0xbb724d(0x18b)](_0x1ea407){const _0x35cc09=_0xbb724d;return this[_0x35cc09(0x2ff)][_0x35cc09(0x2c9)](_0x1ea407);}[_0xbb724d(0x1c7)](){const _0x539a4b=_0xbb724d;return Array['from'](this[_0x539a4b(0x2ff)]['values']());}}var hn=Object['defineProperty'],_n=Object[_0xbb724d(0x13d)],un=(_0x96f71a,_0x47556a,_0x30b69e,_0x17f440)=>{for(var _0x4f6521=_0x17f440>0x1?void 0x0:_0x17f440?_n(_0x47556a,_0x30b69e):_0x47556a,_0x1b3fde=_0x96f71a['length']-0x1,_0x9b200c;_0x1b3fde>=0x0;_0x1b3fde--)(_0x9b200c=_0x96f71a[_0x1b3fde])&&(_0x4f6521=(_0x17f440?_0x9b200c(_0x47556a,_0x30b69e,_0x4f6521):_0x9b200c(_0x4f6521))||_0x4f6521);return _0x17f440&&_0x4f6521&&hn(_0x47556a,_0x30b69e,_0x4f6521),_0x4f6521;},de=(_0x275b82,_0x5312d5)=>(_0x42d06a,_0x5585e8)=>_0x5312d5(_0x42d06a,_0x5585e8,_0x275b82),se=(_0x2889de=>(_0x2889de[_0x2889de[_0xbb724d(0x483)]=0x0]=_0xbb724d(0x483),_0x2889de[_0x2889de[_0xbb724d(0x288)]=0x1]=_0xbb724d(0x288),_0x2889de[_0x2889de['OFFLINE']=0x2]=_0xbb724d(0x104),_0x2889de[_0x2889de[_0xbb724d(0x498)]=0x3]=_0xbb724d(0x498),_0x2889de))(se||{});exports[_0xbb724d(0x2b8)]=class extends a[_0xbb724d(0x2fb)]{constructor(_0x309022,_0x29f1c2,_0x215758,_0x278245,_0x1f6669,_0x29baad,_0x204531,_0x4961be,_0x527bdd,_0xc06bc0){const _0x3382d0=_0xbb724d;super(),I(this,_0x3382d0(0x3cf),new A[(_0x3382d0(0x11e))](0x0)),I(this,'sessionStatus$',this[_0x3382d0(0x3cf)][_0x3382d0(0x14b)]()),I(this,_0x3382d0(0x4d7),new A['Subject']()),I(this,_0x3382d0(0x3a7),this[_0x3382d0(0x4d7)][_0x3382d0(0x14b)]()),I(this,_0x3382d0(0x1f9)),I(this,_0x3382d0(0x540)),I(this,'_collaborationTimeoutTimer'),I(this,_0x3382d0(0x20a),!0x1),I(this,_0x3382d0(0x523),null),(this[_0x3382d0(0x15e)]=_0x309022,this[_0x3382d0(0x1a3)]=_0x215758,this['_beforeCloseService']=_0x278245,this[_0x3382d0(0x3c1)]=_0x1f6669,this['_configService']=_0x29baad,this['_localeService']=_0x204531,this[_0x3382d0(0x338)]=_0x4961be,this['_commentService']=_0x527bdd,this[_0x3382d0(0x3e7)]=_0xc06bc0,this[_0x3382d0(0x20a)]=!!this['_telemetryService'],_0x29f1c2[_0x3382d0(0x52f)](A[_0x3382d0(0x262)](this[_0x3382d0(0x279)]))[_0x3382d0(0x2ae)](_0x367ad8=>{const _0xe0d3cc=_0x3382d0;var _0x450f92;typeof _0x367ad8>'u'||(this[_0xe0d3cc(0x1f9)]=_0x367ad8,_0x367ad8?(this[_0xe0d3cc(0x3c3)](_0x367ad8),this[_0xe0d3cc(0x540)]=_0x367ad8[_0xe0d3cc(0x4f8)]['subscribe'](_0x1410a2=>{const _0x2b2ab1=_0xe0d3cc;_0x1410a2['routeKey']===this[_0x2b2ab1(0x15e)]&&this[_0x2b2ab1(0x24e)](_0x1410a2);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0xe0d3cc(0x3cf)][_0xe0d3cc(0x32a)](0x2),(_0x450f92=this['_socketMessageSubscription'])==null||_0x450f92[_0xe0d3cc(0x10f)](),this['_socketMessageSubscription']=null));}),this[_0x3382d0(0x2ad)](this[_0x3382d0(0x53a)]['registerOnClose'](()=>{const _0x2768fe=_0x3382d0;var _0x41a65a;(_0x41a65a=this[_0x2768fe(0x1f9)])==null||_0x41a65a[_0x2768fe(0x370)]({'cmd':G[_0x2768fe(0x2b9)],'data':{'roomID':this[_0x2768fe(0x15e)]}});})));}get[_0xbb724d(0x53f)](){const _0x337ab6=_0xbb724d;return this[_0x337ab6(0x3cf)][_0x337ab6(0x333)]();}[_0xbb724d(0x2bf)](){const _0x512ab7=_0xbb724d;var _0x392012,_0x2ef12c;return(_0x2ef12c=(_0x392012=this[_0x512ab7(0x1f9)])==null?void 0x0:_0x392012[_0x512ab7(0x3f8)])!=null?_0x2ef12c:null;}['dispose'](){const _0x31ff99=_0xbb724d;super[_0x31ff99(0x16a)](),this[_0x31ff99(0x279)]['next'](),this[_0x31ff99(0x279)][_0x31ff99(0x22b)]();}[_0xbb724d(0x206)](){const _0x20f265=_0xbb724d;var _0x4ff056,_0x3c96f9;this[_0x20f265(0x47b)](),(_0x4ff056=this['_socket'])==null||_0x4ff056[_0x20f265(0x370)]({'cmd':G[_0x20f265(0x2b9)],'data':{'roomID':this[_0x20f265(0x15e)]}}),(_0x3c96f9=this[_0x20f265(0x1f9)])==null||_0x3c96f9[_0x20f265(0x206)](),this[_0x20f265(0x4d7)][_0x20f265(0x22b)](),this[_0x20f265(0x3cf)][_0x20f265(0x22b)](),this['dispose']();}[_0xbb724d(0x24e)](_0x23eaf1){const _0x565fbe=_0xbb724d;_0x23eaf1[_0x565fbe(0x3cc)]===G[_0x565fbe(0x414)]?this[_0x565fbe(0x3f0)](_0x23eaf1):_0x23eaf1[_0x565fbe(0x3cc)]===G[_0x565fbe(0x372)]&&this[_0x565fbe(0x419)](_0x23eaf1);}[_0xbb724d(0x3c3)](_0x4427f0){const _0x5a663a=_0xbb724d;this[_0x5a663a(0x3cf)][_0x5a663a(0x32a)](0x1),_0x4427f0[_0x5a663a(0x370)]({'cmd':G[_0x5a663a(0x414)],'routeKey':this[_0x5a663a(0x15e)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5a663a(0x15e)]}]}});}[_0xbb724d(0x3f0)](_0x1db151){const _0x16a914=_0xbb724d;var _0x3568f1;if(_0x1db151[_0x16a914(0x365)]===bt['FAIL']){this[_0x16a914(0x3c1)]['show']({'type':Ce['MessageType'][_0x16a914(0xc5)],'content':this['_localeService']['t'](_0x16a914(0x4f3))}),this[_0x16a914(0x3cf)]['next'](0x2);return;}this[_0x16a914(0x3cf)][_0x16a914(0x32a)](0x3);const _0x4795e9=(_0x3568f1=_0x1db151[_0x16a914(0x238)]['roomInfos'][this[_0x16a914(0x15e)]])==null?void 0x0:_0x3568f1[_0x16a914(0xcf)];_0x4795e9&&_0x4795e9[_0x16a914(0x53b)](_0x318a70=>this[_0x16a914(0x338)][_0x16a914(0x309)](this[_0x16a914(0x15e)],_0x318a70));}[_0xbb724d(0x419)](_0x262091){const _0x2de15a=_0xbb724d;try{const _0x73ba11=_0x262091[_0x2de15a(0x238)];switch(_0x73ba11[_0x2de15a(0x470)]){case p[_0x2de15a(0x29f)][_0x2de15a(0x38c)]:this[_0x2de15a(0x325)](_0x73ba11),this['_event$'][_0x2de15a(0x32a)](_0x73ba11);break;case p['CollaborationEvent'][_0x2de15a(0x22e)]:this[_0x2de15a(0x4f1)](_0x73ba11),this[_0x2de15a(0x4d7)][_0x2de15a(0x32a)](_0x73ba11);break;case p['CollaborationEvent'][_0x2de15a(0x4cf)]:case p['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this[_0x2de15a(0xf3)](),this[_0x2de15a(0x40a)](),this[_0x2de15a(0x4d7)][_0x2de15a(0x32a)](_0x73ba11);break;case p['CollaborationEvent']['MSG_FOR_ERROR']:this[_0x2de15a(0x1a3)][_0x2de15a(0x1d8)](_0x2de15a(0x41e)+JSON['stringify'](_0x73ba11)),this[_0x2de15a(0x4d7)][_0x2de15a(0x32a)](_0x73ba11);break;case p[_0x2de15a(0x29f)][_0x2de15a(0x1ee)]:this[_0x2de15a(0x499)][_0x2de15a(0x180)](_0x73ba11[_0x2de15a(0x238)]),this[_0x2de15a(0x4d7)][_0x2de15a(0x32a)](_0x73ba11);break;default:this[_0x2de15a(0x4d7)]['next'](_0x73ba11);}}catch(_0xb92fda){this['_logService'][_0x2de15a(0x1d8)](_0xb92fda,_0x262091);}}['_onUserJoin'](_0x3c4b59){const _0x433f6f=_0xbb724d;this['_memberService'][_0x433f6f(0x309)](this[_0x433f6f(0x15e)],_0x3c4b59[_0x433f6f(0x238)]);}['_onUserLeave'](_0xeb9217){const _0x2f47a2=_0xbb724d;this[_0x2f47a2(0x338)][_0x2f47a2(0x4f6)](this[_0x2f47a2(0x15e)],_0xeb9217[_0x2f47a2(0x238)][_0x2f47a2(0x3f8)]);}async[_0xbb724d(0x370)](_0x3c3bdc,_0x4e774a){const _0x2e1582=_0xbb724d;if(this[_0x2e1582(0x53f)]!==0x3||!this['_socket'])throw new Error(_0x2e1582(0x371));try{_0x3c3bdc['eventID']===p['CollaborationEvent'][_0x2e1582(0x441)]&&(this[_0x2e1582(0xa1)](),this[_0x2e1582(0x450)](_0x3c3bdc)),this[_0x2e1582(0x1f9)][_0x2e1582(0x370)]({'cmd':G[_0x2e1582(0xc2)],'routeKey':_0x4e774a,'routeType':'','data':_0x3c3bdc});}catch(_0x49b56a){this[_0x2e1582(0x1a3)][_0x2e1582(0x1d8)](_0x49b56a);}}[_0xbb724d(0xa1)](){const _0x6699f4=_0xbb724d;var _0x1a79f7;this['_collaborationTimeoutTimer']=window[_0x6699f4(0x31c)](()=>{const _0x2b21ee=_0x6699f4;this['_collaborationTimeoutTimer']=null,this[_0x2b21ee(0x3c1)][_0x2b21ee(0xb7)]({'type':Ce[_0x2b21ee(0xd6)]['Error'],'content':this[_0x2b21ee(0x4f9)]['t']('session.collaboration-timeout')});},(_0x1a79f7=this['_configService'][_0x6699f4(0x27c)](Et))!=null?_0x1a79f7:oi);}['_clearCollaborationTimeoutTimer'](){const _0x7e63a6=_0xbb724d;this[_0x7e63a6(0x340)]&&(clearTimeout(this[_0x7e63a6(0x340)]),this[_0x7e63a6(0x340)]=null);}[_0xbb724d(0x450)](_0x2c206e){const _0x221ed7=_0xbb724d;if(!this['_shouldReportTelemetry'])return;const {data:_0x1e0a32}=_0x2c206e,{unitID:_0x5d43bf,changeset:_0x307f7d}=_0x1e0a32,{mutations:_0x3cf7b3,type:_0x430101}=_0x307f7d;this[_0x221ed7(0x523)]={'unitId':_0x5d43bf,'type':_0x430101,'startTime':performance[_0x221ed7(0x220)](),'stopTime':0x0,'duration':0x0,'size':rn(_0x3cf7b3)};}[_0xbb724d(0xf3)](){const _0x190372=_0xbb724d;if(this[_0x190372(0x20a)]){if(!this[_0x190372(0x523)]){this[_0x190372(0x1a3)]['error'](_0x190372(0x4f7),_0x190372(0x393));return;}this[_0x190372(0x523)][_0x190372(0x524)]=performance[_0x190372(0x220)](),this[_0x190372(0x523)]['duration']=this[_0x190372(0x523)][_0x190372(0x524)]-this[_0x190372(0x523)][_0x190372(0x3f7)],this[_0x190372(0x3e7)]['capture'](sn,this[_0x190372(0x523)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x15f641=_0xbb724d;this[_0x15f641(0x523)]=null;}},exports['CollaborationSession']=un([de(0x2,a[_0xbb724d(0x2cb)]),de(0x3,te[_0xbb724d(0x159)]),de(0x4,te[_0xbb724d(0x1bf)]),de(0x5,a[_0xbb724d(0xbc)]),de(0x6,a[_0xbb724d(0x271)](a[_0xbb724d(0x2a7)])),de(0x7,a[_0xbb724d(0x271)](exports[_0xbb724d(0x420)])),de(0x8,a[_0xbb724d(0x271)](Rt)),de(0x9,a[_0xbb724d(0x18e)](Hi[_0xbb724d(0x4d9)]))],exports['CollaborationSession']);var dn=Object[_0xbb724d(0x164)],fn=Object[_0xbb724d(0x13d)],vn=(_0x15e826,_0xc32478,_0x4b2b06,_0x321d38)=>{for(var _0xcdc3e3=_0x321d38>0x1?void 0x0:_0x321d38?fn(_0xc32478,_0x4b2b06):_0xc32478,_0x2d793c=_0x15e826['length']-0x1,_0x499bdf;_0x2d793c>=0x0;_0x2d793c--)(_0x499bdf=_0x15e826[_0x2d793c])&&(_0xcdc3e3=(_0x321d38?_0x499bdf(_0xc32478,_0x4b2b06,_0xcdc3e3):_0x499bdf(_0xcdc3e3))||_0xcdc3e3);return _0x321d38&&_0xcdc3e3&&dn(_0xc32478,_0x4b2b06,_0xcdc3e3),_0xcdc3e3;},pe=(_0xbd4e1d,_0x920c37)=>(_0x4a071f,_0x2ffdee)=>_0x920c37(_0x4a071f,_0x2ffdee,_0xbd4e1d);exports[_0xbb724d(0x2ec)]=class extends a[_0xbb724d(0x4cb)]{constructor(_0x279df6,_0x285f6f,_0x549ae4,_0x43a135,_0x26ab0e,_0x247174,_0x570558){const _0x16d9cb=_0xbb724d;super(),I(this,_0x16d9cb(0x102),new A[(_0x16d9cb(0x11e))](void 0x0)),I(this,_0x16d9cb(0x3fa),this[_0x16d9cb(0x102)][_0x16d9cb(0x14b)]()),I(this,_0x16d9cb(0x4c3),null),I(this,'_sessions',new Map()),I(this,_0x16d9cb(0x378),new A[(_0x16d9cb(0x11e))](se[_0x16d9cb(0x483)])),I(this,_0x16d9cb(0xc0),this[_0x16d9cb(0x378)][_0x16d9cb(0x14b)]()),I(this,'_socketReady',!0x1),I(this,'_retryConnectingTimer'),I(this,'_retryCount',0x0),I(this,'_sendHeartbeatTimer'),I(this,_0x16d9cb(0x542)),(this['_injector']=_0x279df6,this['_localeService']=_0x285f6f,this[_0x16d9cb(0x3c1)]=_0x549ae4,this[_0x16d9cb(0x1a3)]=_0x43a135,this[_0x16d9cb(0xe6)]=_0x26ab0e,this[_0x16d9cb(0x307)]=_0x247174,this[_0x16d9cb(0x21d)]=_0x570558,this[_0x16d9cb(0x3d3)]());}get[_0xbb724d(0x1f9)](){const _0x441420=_0xbb724d;return this[_0x441420(0x102)][_0x441420(0x333)]();}[_0xbb724d(0x3d3)](){const _0x9cb48a=_0xbb724d;this[_0x9cb48a(0x166)](),this['_listenToOnlineEvent']();}[_0xbb724d(0x16a)](){const _0x23c65f=_0xbb724d;super[_0x23c65f(0x16a)](),this[_0x23c65f(0x1c5)][_0x23c65f(0x53b)](_0x4a6343=>_0x4a6343[_0x23c65f(0x16a)]()),this[_0x23c65f(0x1c5)][_0x23c65f(0x4e1)](),this['_status$'][_0x23c65f(0x22b)]();}async['requireSession'](_0x40dde2){const _0x5e4fa2=_0xbb724d;if(this[_0x5e4fa2(0x1c5)][_0x5e4fa2(0x4cd)](_0x40dde2))return this[_0x5e4fa2(0x1c5)][_0x5e4fa2(0x2c9)](_0x40dde2);this[_0x5e4fa2(0x2ca)]();const _0x18074e=this[_0x5e4fa2(0x299)][_0x5e4fa2(0x196)](exports[_0x5e4fa2(0x2b8)],_0x40dde2,this[_0x5e4fa2(0x102)][_0x5e4fa2(0x14b)]());return this[_0x5e4fa2(0x1c5)]['set'](_0x40dde2,_0x18074e),_0x18074e;}[_0xbb724d(0x446)](_0x4e0dec){const _0x1ed27f=_0xbb724d;var _0x425622;const _0x2b0951=this[_0x1ed27f(0x1c5)]['get'](_0x4e0dec);_0x2b0951&&(this[_0x1ed27f(0x1c5)]['delete'](_0x4e0dec),_0x2b0951[_0x1ed27f(0x206)]()),this[_0x1ed27f(0x1c5)][_0x1ed27f(0x4a6)]||(_0x425622=this[_0x1ed27f(0x1f9)])==null||_0x425622[_0x1ed27f(0x206)]();}[_0xbb724d(0x2d7)](){const _0x2d016d=_0xbb724d;this[_0x2d016d(0x98)]=0x0,this[_0x2d016d(0x4ef)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x2d016d(0x4ef)]=null),this['_tryReconnect']();}async[_0xbb724d(0x15f)](){const _0x657932=_0xbb724d;var _0x620766,_0x17553b,_0x115e43;const _0x3fec0a=this[_0x657932(0xe6)]['getConfig'](Q),_0x94cf2b=(_0x620766=_0x3fec0a==null?void 0x0:_0x3fec0a[_0x657932(0x1c1)])!=null?_0x620766:Gi;return(_0x115e43=(_0x17553b=(await this[_0x657932(0x21d)][_0x657932(0x2c9)](_0x94cf2b,{'headers':{'Content-Type':'application/json'}}))[_0x657932(0x3a6)])==null?void 0x0:_0x17553b[_0x657932(0x252)])!=null?_0x115e43:'';}[_0xbb724d(0x275)](_0x31adba){const _0x2ac4a0=_0xbb724d;var _0xc8fbb8,_0x4b7e9c;const _0xd1f45a=this['_configService'][_0x2ac4a0(0x27c)](si),_0x22e5c6=this[_0x2ac4a0(0xe6)]['getConfig'](Q),_0x803eb1=(_0x4b7e9c=(_0xc8fbb8=_0x22e5c6==null?void 0x0:_0x22e5c6[_0x2ac4a0(0x205)])!=null?_0xc8fbb8:_0xd1f45a)!=null?_0x4b7e9c:Vi,_0x394bee=new URL(_0x803eb1,window[_0x2ac4a0(0x33e)][_0x2ac4a0(0x430)]);return _0x394bee[_0x2ac4a0(0x295)][_0x2ac4a0(0x117)](_0x2ac4a0(0x3dc),_0x31adba),_0x394bee[_0x2ac4a0(0x3bf)]();}async['_createSocket'](){const _0x5cdea0=_0xbb724d,_0x15b2d1=await this['_getSessionTicket'](),_0x12256b=this[_0x5cdea0(0x275)](_0x15b2d1),_0x391c3b=this['_socketService'][_0x5cdea0(0x493)](_0x12256b);return this[_0x5cdea0(0x4c3)]=_0x391c3b,_0x391c3b;}async[_0xbb724d(0x2ca)](){const _0x4cf00f=_0xbb724d;var _0x5e9af8,_0x163e3a;try{const _0x461aae=(_0x163e3a=(_0x5e9af8=this[_0x4cf00f(0x1f9)])!=null?_0x5e9af8:this['_candidateSocket'])!=null?_0x163e3a:await this['_createSocket']();if(_0x461aae){const _0x382ba8=_0x461aae[_0x4cf00f(0x370)];_0x461aae['send']=_0x1ffe6e=>(this[_0x4cf00f(0x4b0)](),_0x382ba8[_0x4cf00f(0xbd)](_0x461aae,[_0x1ffe6e])),_0x461aae['message$'][_0x4cf00f(0x2ae)](_0x50b7a2=>this[_0x4cf00f(0x249)](_0x461aae,_0x50b7a2)),_0x461aae[_0x4cf00f(0xee)][_0x4cf00f(0x52f)](V[_0x4cf00f(0x4de)](0x1))[_0x4cf00f(0x2ae)](_0x3c472c=>this[_0x4cf00f(0x1a3)][_0x4cf00f(0x1d8)](_0x4cf00f(0xa0),_0x3c472c)),_0x461aae[_0x4cf00f(0x356)][_0x4cf00f(0x52f)](V[_0x4cf00f(0x4de)](0x1))[_0x4cf00f(0x2ae)](()=>{const _0x28f9d5=_0x4cf00f;this[_0x28f9d5(0x27d)](_0x461aae);}),_0x461aae['close$'][_0x4cf00f(0x52f)](V[_0x4cf00f(0x4de)](0x1))['subscribe'](_0x3e0299=>{const _0x183a83=_0x4cf00f;this['_logService'][_0x183a83(0x528)](_0x183a83(0x383),_0x183a83(0x42d),_0x3e0299),this['_onConnectionFailed']();});}}catch(_0x159481){this[_0x4cf00f(0x1a3)]['error'](_0x159481),this[_0x4cf00f(0x4ec)]();}}[_0xbb724d(0x27d)](_0x34a745){const _0x1687a0=_0xbb724d;this['_logService'][_0x1687a0(0x528)](_0x1687a0(0x383),_0x1687a0(0x272)),_0x34a745[_0x1687a0(0x370)]({'cmd':G[_0x1687a0(0x1e4)]}),this[_0x1687a0(0x4b0)]();}[_0xbb724d(0x166)](){const _0x59866b=_0xbb724d;window[_0x59866b(0x8a)]('offline',()=>this[_0x59866b(0x124)]());}[_0xbb724d(0x124)](){const _0x9d46ed=_0xbb724d;this[_0x9d46ed(0x330)]=!0x1,this[_0x9d46ed(0x4c3)]=null,this[_0x9d46ed(0x378)][_0x9d46ed(0x32a)](se[_0x9d46ed(0x104)]),this['_socket$'][_0x9d46ed(0x32a)](null),this['_clearTimeoutTimer'](),this[_0x9d46ed(0x93)]();}[_0xbb724d(0x4ec)](){const _0x192e42=_0xbb724d;var _0x5a47b0;this[_0x192e42(0x124)](),this[_0x192e42(0x98)]<((_0x5a47b0=this[_0x192e42(0xe6)][_0x192e42(0x27c)](ai))!=null?_0x5a47b0:qi)?(this[_0x192e42(0x3c1)][_0x192e42(0xb7)]({'key':_0x192e42(0x368),'type':Ce[_0x192e42(0xd6)][_0x192e42(0xc5)],'content':this[_0x192e42(0x4f9)]['t'](_0x192e42(0x158))}),this['_tryReconnect']()):this[_0x192e42(0x3c1)][_0x192e42(0xb7)]({'key':_0x192e42(0x368),'type':Ce[_0x192e42(0xd6)][_0x192e42(0x86)],'content':this[_0x192e42(0x4f9)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0xe4b3b0=_0xbb724d,_0xfc89f9=()=>{const _0x1bede3=_0x195f;this['_socket']||this[_0x1bede3(0x2d7)]();},_0x5db73b=()=>{const _0x5f0beb=_0x195f;this['_socket']||document['visibilityState']==='hidden'||this[_0x5f0beb(0x2d7)]();};window[_0xe4b3b0(0x8a)](_0xe4b3b0(0x475),_0xfc89f9),document[_0xe4b3b0(0x8a)]('visibilitychange',_0x5db73b);}[_0xbb724d(0x3e8)](){const _0x432d3b=_0xbb724d;var _0xae8371;const _0x5b3026=this[_0x432d3b(0x98)],_0x7a232e=this['_configService'][_0x432d3b(0x27c)](Q),_0x30d4e8=_0x5b3026===0x0?0x0:((_0xae8371=_0x7a232e==null?void 0x0:_0x7a232e[_0x432d3b(0x15b)])!=null?_0xae8371:Ki)*0x2**_0x5b3026;this[_0x432d3b(0x4ef)]=window[_0x432d3b(0x31c)](()=>{const _0x9ade3d=_0x432d3b;clearTimeout(this[_0x9ade3d(0x4ef)]),this[_0x9ade3d(0x4ef)]=null,this[_0x9ade3d(0x2ca)]();},_0x30d4e8),this[_0x432d3b(0x98)]+=0x1;}[_0xbb724d(0x249)](_0x351e97,_0x443284){const _0x44660e=_0xbb724d,{cmd:_0x366a24}=_0x443284;_0x366a24===G['HELLO']&&!this['_socketReady']&&(_0x351e97['memberID']=_0x443284[_0x44660e(0x238)][_0x44660e(0x3f8)],this[_0x44660e(0x102)][_0x44660e(0x32a)](_0x351e97),this['_status$'][_0x44660e(0x32a)](se[_0x44660e(0x498)]),this[_0x44660e(0x330)]=!0x0,this[_0x44660e(0x4c3)]=null),_0x366a24===G[_0x44660e(0x2de)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0xbb724d(0x4b0)](){const _0x5d652a=_0xbb724d;var _0x2d3cf8;this['_clearHeartbeatTimer'](),this[_0x5d652a(0x3dd)]=window[_0x5d652a(0x31c)](()=>this[_0x5d652a(0x492)](),(_0x2d3cf8=this['_configService'][_0x5d652a(0x27c)](ri))!=null?_0x2d3cf8:Yi);}['_sendHeartbeat'](){const _0x5f3f10=_0xbb724d;this[_0x5f3f10(0x1f9)][_0x5f3f10(0x370)]({'cmd':G[_0x5f3f10(0x2de)]}),this[_0x5f3f10(0x141)]();}[_0xbb724d(0x141)](){const _0x4fabf2=_0xbb724d;var _0x1b00a0;this[_0x4fabf2(0x542)]=window[_0x4fabf2(0x31c)](()=>this[_0x4fabf2(0x4ec)](),(_0x1b00a0=this[_0x4fabf2(0xe6)][_0x4fabf2(0x27c)](Et))!=null?_0x1b00a0:oi);}[_0xbb724d(0x93)](){const _0x5f302b=_0xbb724d;this[_0x5f302b(0x3dd)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0xbb724d(0x1cc)](){const _0xfa08c1=_0xbb724d;this[_0xfa08c1(0x542)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0xfa08c1(0x542)]=null);}},exports[_0xbb724d(0x2ec)]=vn([pe(0x0,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),pe(0x1,a[_0xbb724d(0x271)](a[_0xbb724d(0x2a7)])),pe(0x2,te[_0xbb724d(0x1bf)]),pe(0x3,a[_0xbb724d(0x2cb)]),pe(0x4,a[_0xbb724d(0xbc)]),pe(0x5,Tt),pe(0x6,a[_0xbb724d(0x271)](z[_0xbb724d(0x539)]))],exports['CollaborationSessionService']);const Y=[];for(let s=0x0;s<0x100;++s)Y['push']((s+0x100)[_0xbb724d(0x3bf)](0x10)[_0xbb724d(0x2c3)](0x1));function Sn(_0x1cc73e,_0x239100=0x0){const _0x535106=_0xbb724d;return(Y[_0x1cc73e[_0x239100+0x0]]+Y[_0x1cc73e[_0x239100+0x1]]+Y[_0x1cc73e[_0x239100+0x2]]+Y[_0x1cc73e[_0x239100+0x3]]+'-'+Y[_0x1cc73e[_0x239100+0x4]]+Y[_0x1cc73e[_0x239100+0x5]]+'-'+Y[_0x1cc73e[_0x239100+0x6]]+Y[_0x1cc73e[_0x239100+0x7]]+'-'+Y[_0x1cc73e[_0x239100+0x8]]+Y[_0x1cc73e[_0x239100+0x9]]+'-'+Y[_0x1cc73e[_0x239100+0xa]]+Y[_0x1cc73e[_0x239100+0xb]]+Y[_0x1cc73e[_0x239100+0xc]]+Y[_0x1cc73e[_0x239100+0xd]]+Y[_0x1cc73e[_0x239100+0xe]]+Y[_0x1cc73e[_0x239100+0xf]])[_0x535106(0x4a4)]();}let Ze;const pn=new Uint8Array(0x10);function mn(){const _0x39bbe7=_0xbb724d;if(!Ze){if(typeof crypto>'u'||!crypto[_0x39bbe7(0x458)])throw new Error(_0x39bbe7(0x241));Ze=crypto['getRandomValues'][_0x39bbe7(0xa8)](crypto);}return Ze(pn);}const gn=typeof crypto<'u'&&crypto[_0xbb724d(0x53e)]&&crypto['randomUUID'][_0xbb724d(0xa8)](crypto),Nt={'randomUUID':gn};function In(_0x2ff707,_0x1a782,_0xadfe89){const _0x5dc0d8=_0xbb724d;if(Nt[_0x5dc0d8(0x53e)]&&!_0x1a782&&!_0x2ff707)return Nt[_0x5dc0d8(0x53e)]();_0x2ff707=_0x2ff707||{};const _0x4a556a=_0x2ff707[_0x5dc0d8(0x227)]||(_0x2ff707[_0x5dc0d8(0x346)]||mn)();return _0x4a556a[0x6]=_0x4a556a[0x6]&0xf|0x40,_0x4a556a[0x8]=_0x4a556a[0x8]&0x3f|0x80,Sn(_0x4a556a);}var Cn=Object[_0xbb724d(0x164)],En=Object['getOwnPropertyDescriptor'],bn=(_0x3e3721,_0x2c66cf,_0x2b95c8,_0x59087a)=>{const _0x57be55=_0xbb724d;for(var _0x15f3ca=_0x59087a>0x1?void 0x0:_0x59087a?En(_0x2c66cf,_0x2b95c8):_0x2c66cf,_0x5c14be=_0x3e3721[_0x57be55(0x2d9)]-0x1,_0x51a86d;_0x5c14be>=0x0;_0x5c14be--)(_0x51a86d=_0x3e3721[_0x5c14be])&&(_0x15f3ca=(_0x59087a?_0x51a86d(_0x2c66cf,_0x2b95c8,_0x15f3ca):_0x51a86d(_0x15f3ca))||_0x15f3ca);return _0x59087a&&_0x15f3ca&&Cn(_0x2c66cf,_0x2b95c8,_0x15f3ca),_0x15f3ca;},Qe=(_0x15f3b6,_0x1f3461)=>(_0xf6cdb,_0x2e6046)=>_0x1f3461(_0xf6cdb,_0x2e6046,_0x15f3b6);let Be=class{constructor(_0x3a081f,_0x5d5a5a,_0x168033){const _0x1bd018=_0xbb724d;this[_0x1bd018(0x299)]=_0x3a081f,this[_0x1bd018(0x522)]=_0x5d5a5a,this[_0x1bd018(0x529)]=_0x168033;}[_0xbb724d(0x477)](_0x28bac3){const _0x5a6c0d=_0xbb724d;this[_0x5a6c0d(0x38f)](_0x28bac3),this[_0x5a6c0d(0x84)](_0x28bac3);}[_0xbb724d(0x397)](_0x223364){const _0x2cd2a3=_0xbb724d,{unitID:_0x35f704}=_0x223364,_0xd9a43f=this[_0x2cd2a3(0x529)]['getRenderById'](_0x35f704)['with'](J[_0x2cd2a3(0x510)]),{redoCache:_0xa98696}=_0xd9a43f['getUndoRedoMutationParamsCache']();if(_0xa98696[_0x2cd2a3(0x2d9)]===0x0)return _0x223364;let _0xf57e00=a[_0x2cd2a3(0x1fd)]['deepClone'](_0x223364['mutations'][0x0]);for(let _0x5274dd=0x0;_0x5274dd<_0xa98696[_0x2cd2a3(0x2d9)];_0x5274dd++){const _0x3b58f1={'id':_0x2cd2a3(0xc4),'params':{..._0xa98696[_0x5274dd]}},_0x4c88df=this['_transformService']['transformMutation'](_0xf57e00,_0x3b58f1,!0x1);if(p[_0x2cd2a3(0x32e)](_0x4c88df))throw _0x4c88df[_0x2cd2a3(0x1d8)];_0xf57e00=_0x4c88df[_0x2cd2a3(0x35e)];}return{...a['Tools']['deepClone'](_0x223364),'mutations':[_0xf57e00]};}[_0xbb724d(0x38f)](_0x5dccc0){const _0x30a630=_0xbb724d,{unitID:_0xaab759}=_0x5dccc0,_0x356a87=this['_renderManagerService'][_0x30a630(0x1a1)](_0xaab759)[_0x30a630(0x10e)](J[_0x30a630(0x510)]),{undoCache:_0x388de4,redoCache:_0x48fb46}=_0x356a87[_0x30a630(0x3cd)]();if(_0x388de4[_0x30a630(0x2d9)]===0x0||_0x48fb46[_0x30a630(0x2d9)]===0x0)return;const _0x16b990=[],_0x46cee7=[];let _0x298d2d=a[_0x30a630(0x1fd)][_0x30a630(0x17e)](_0x5dccc0[_0x30a630(0x374)][0x0]),_0xc8681a=a[_0x30a630(0x1fd)][_0x30a630(0x17e)](_0x5dccc0[_0x30a630(0x374)][0x0]);for(let _0x508373=_0x388de4[_0x30a630(0x2d9)]-0x1;_0x508373>=0x0;_0x508373--){const _0x464929={'id':_0x30a630(0xc4),'params':{..._0x388de4[_0x508373]}},_0x4940c4={'id':'doc.mutation.rich-text-editing','params':{..._0x48fb46[_0x508373]}},_0x3adb73=this[_0x30a630(0x522)]['transformMutation'](_0x298d2d,_0x464929,!0x1),_0xf378f9=this[_0x30a630(0x522)][_0x30a630(0x4b2)](_0xc8681a,_0x4940c4,!0x1);if(p['isTransformMutationFailure'](_0x3adb73))throw _0x3adb73[_0x30a630(0x1d8)];if(p[_0x30a630(0x32e)](_0xf378f9))throw _0xf378f9[_0x30a630(0x1d8)];_0x16b990[_0x30a630(0x239)](_0x3adb73[_0x30a630(0x3ff)][_0x30a630(0x1be)]),_0x46cee7[_0x30a630(0x239)](_0xf378f9[_0x30a630(0x3ff)]['params']),_0x298d2d=_0x3adb73['m1Prime'],_0xc8681a=_0xf378f9[_0x30a630(0x35e)];}_0x356a87[_0x30a630(0x42a)]({'undoCache':_0x16b990,'redoCache':_0x46cee7});}[_0xbb724d(0x84)](_0x1231fe){const _0x46d9d1=_0xbb724d,{unitID:_0x240ff8}=_0x1231fe,_0x3ecc80=this[_0x46d9d1(0x529)][_0x46d9d1(0x1a1)](_0x240ff8)[_0x46d9d1(0x10e)](J[_0x46d9d1(0x510)]),_0x1a0e20=_0x3ecc80['getActiveRange']();if(_0x1a0e20==null)return;const _0x2a8a7e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1231fe[_0x46d9d1(0x447)],'actions':null,'textRanges':[_0x1a0e20]}}],_0x1cf565=this['_transformService'][_0x46d9d1(0x118)](_0x1231fe,_0x2a8a7e);if(!p[_0x46d9d1(0x427)](_0x1cf565))throw _0x1cf565[_0x46d9d1(0x1d8)];const _0x52393a=_0x1cf565[_0x46d9d1(0x3ff)][0x0][_0x46d9d1(0x1be)]['textRanges'];Array[_0x46d9d1(0x99)](_0x52393a)&&_0x52393a[_0x46d9d1(0x2d9)]&&_0x3ecc80[_0x46d9d1(0x471)](_0x52393a[0x0]);}};Be=bn([Qe(0x0,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),Qe(0x1,p[_0xbb724d(0x525)]),Qe(0x2,K[_0xbb724d(0xf6)])],Be);var Tn=Object['defineProperty'],Rn=Object[_0xbb724d(0x13d)],yn=(_0x5d38a3,_0x4952d2,_0xc494,_0x576de1)=>{const _0x5044d0=_0xbb724d;for(var _0x35b48f=_0x576de1>0x1?void 0x0:_0x576de1?Rn(_0x4952d2,_0xc494):_0x4952d2,_0x2439a1=_0x5d38a3[_0x5044d0(0x2d9)]-0x1,_0x2a478c;_0x2439a1>=0x0;_0x2439a1--)(_0x2a478c=_0x5d38a3[_0x2439a1])&&(_0x35b48f=(_0x576de1?_0x2a478c(_0x4952d2,_0xc494,_0x35b48f):_0x2a478c(_0x35b48f))||_0x35b48f);return _0x576de1&&_0x35b48f&&Tn(_0x4952d2,_0xc494,_0x35b48f),_0x35b48f;},we=(_0x227993,_0x50b509)=>(_0x4af771,_0x5345a2)=>_0x50b509(_0x4af771,_0x5345a2,_0x227993);exports[_0xbb724d(0x1d9)]=class extends a[_0xbb724d(0x4cb)]{constructor(_0x2d615f,_0x59176e,_0x15b5c7,_0x545f90,_0x1bd0f2){const _0x1b42ae=_0xbb724d;super(),I(this,_0x1b42ae(0x2c8),new Map()),I(this,'_saveTaskMap',new Map()),I(this,'_disabled',!0x1),(this[_0x1b42ae(0xe6)]=_0x2d615f,this['_localStorageService']=_0x59176e,this[_0x1b42ae(0x53a)]=_0x15b5c7,this['_localeService']=_0x545f90,this[_0x1b42ae(0x40e)]=_0x1bd0f2,this[_0x1b42ae(0x223)]());}[_0xbb724d(0x38e)](){const _0x30c32b=_0xbb724d;this[_0x30c32b(0x18c)]=!0x0;}[_0xbb724d(0x302)](){const _0x12a00a=_0xbb724d;this[_0x12a00a(0x18c)]=!0x1;}[_0xbb724d(0x16a)](){const _0x1f4cf3=_0xbb724d;this[_0x1f4cf3(0x3a5)]()[_0x1f4cf3(0x161)](()=>super[_0x1f4cf3(0x16a)]());}async['loadOfflineData'](_0x26938a){const _0x506043=_0xbb724d;return this[_0x506043(0x18c)]?null:this['_localStorageService'][_0x506043(0x4d5)](Lt(_0x26938a));}async[_0xbb724d(0x468)](_0x10512c,_0x17c0f8){const _0x4fc76f=_0xbb724d;return!!this[_0x4fc76f(0x490)][_0x4fc76f(0x30b)](_0x10512c,_0x17c0f8);}['updateOfflineData'](_0x640346,_0x4cb3e0,_0x41e72d,_0x2f71ba){const _0x52e09e=_0xbb724d,_0x466282=this['_revisionService']['getCurrentRevOfUnit'](_0x640346);this['_cachedData'][_0x52e09e(0x117)](_0x640346,{'unitID':_0x640346,'type':_0x4cb3e0,'awaitingChangeset':_0x41e72d,'mutations':_0x2f71ba,'rev':_0x466282}),this[_0x52e09e(0x315)][_0x52e09e(0x4cd)](_0x640346)||this['_scheduleSaving'](_0x640346);}[_0xbb724d(0x334)](_0x10cbca){const _0x2dbda8=_0xbb724d,_0x20b9ac=this[_0x2dbda8(0x135)]();_0x20b9ac===0x0?this[_0x2dbda8(0x87)](_0x10cbca):this['_saveTaskMap'][_0x2dbda8(0x117)](_0x10cbca,setTimeout(()=>this['_saveCache'](_0x10cbca),_0x20b9ac));}['_getSaveTimeout'](){const _0x176248=_0xbb724d;var _0x340882;return(_0x340882=this[_0x176248(0xe6)]['getConfig'](ci))!=null?_0x340882:zi;}[_0xbb724d(0x87)](_0x214d3e){const _0x172f05=_0xbb724d,_0x1cbef2=this['_saveTaskMap']['get'](_0x214d3e);return _0x1cbef2!==void 0x0&&window[_0x172f05(0x4a1)](_0x1cbef2),this[_0x172f05(0x490)][_0x172f05(0x30b)](Lt(_0x214d3e),this[_0x172f05(0x2c8)][_0x172f05(0x2c9)](_0x214d3e))['then'](()=>this['_saveTaskMap'][_0x172f05(0x1e6)](_0x214d3e));}async[_0xbb724d(0x3a5)](){const _0x3e13a5=_0xbb724d,_0x4a6589=[];this[_0x3e13a5(0x315)]['forEach']((_0x46d9ce,_0x1641cd)=>{const _0x5f4a2c=_0x3e13a5;window[_0x5f4a2c(0x4a1)](_0x46d9ce),_0x4a6589[_0x5f4a2c(0x221)](this[_0x5f4a2c(0x87)](_0x1641cd)[_0x5f4a2c(0x161)](()=>{const _0x1132eb=_0x5f4a2c;this[_0x1132eb(0x315)][_0x1132eb(0x1e6)](_0x1641cd);}));}),await Promise[_0x3e13a5(0xd2)](_0x4a6589);}[_0xbb724d(0x223)](){const _0x21fe76=_0xbb724d;this[_0x21fe76(0x2ad)](this['_beforeCloseService'][_0x21fe76(0x4f5)](()=>{const _0x186ba9=_0x21fe76;if(this[_0x186ba9(0x315)][_0x186ba9(0x4a6)])return this[_0x186ba9(0x4f9)]['t'](_0x186ba9(0x14e));}));}},exports['LocalCacheService']=yn([we(0x0,a['IConfigService']),we(0x1,a['ILocalStorageService']),we(0x2,te[_0xbb724d(0x159)]),we(0x3,a[_0xbb724d(0x271)](a[_0xbb724d(0x2a7)])),we(0x4,a[_0xbb724d(0x271)](p[_0xbb724d(0x46f)]))],exports[_0xbb724d(0x1d9)]);function Lt(_0x1e4cb5){const _0x23eee9=_0xbb724d;return _0x23eee9(0x4f4)+_0x1e4cb5;}var On=Object[_0xbb724d(0x164)],Dn=Object[_0xbb724d(0x13d)],Pn=(_0x382111,_0x206642,_0x3a3521,_0x3b6777)=>{const _0x2286f2=_0xbb724d;for(var _0x5b023d=_0x3b6777>0x1?void 0x0:_0x3b6777?Dn(_0x206642,_0x3a3521):_0x206642,_0x3edad3=_0x382111[_0x2286f2(0x2d9)]-0x1,_0x252d32;_0x3edad3>=0x0;_0x3edad3--)(_0x252d32=_0x382111[_0x3edad3])&&(_0x5b023d=(_0x3b6777?_0x252d32(_0x206642,_0x3a3521,_0x5b023d):_0x252d32(_0x5b023d))||_0x5b023d);return _0x3b6777&&_0x5b023d&&On(_0x206642,_0x3a3521,_0x5b023d),_0x5b023d;},et=(_0x3ef7bd,_0x53b9b0)=>(_0x4ce3a0,_0xb9de0d)=>_0x53b9b0(_0x4ce3a0,_0xb9de0d,_0x3ef7bd);function wn(_0x4101f7){const _0x576fe=_0xbb724d,{unitID:_0x24e8d2,mutations:_0x5a6691}=_0x4101f7;return{'unitId':_0x24e8d2,'subUnitId':_0x5a6691[0x0]['params'][_0x576fe(0x375)]};}let ke=class{constructor(_0x4f0d27,_0x2f1abc,_0x380c2d){const _0x3a4391=_0xbb724d;this[_0x3a4391(0x299)]=_0x4f0d27,this[_0x3a4391(0x522)]=_0x2f1abc,this[_0x3a4391(0x123)]=_0x380c2d;}[_0xbb724d(0x1e7)](_0x26540e){const _0x2697a6=_0xbb724d;var _0x151893,_0x3ee202,_0x15fd05,_0x4d99a4;const _0x4104db=this[_0x2697a6(0x299)][_0x2697a6(0x2c9)](k[_0x2697a6(0x516)]),{unitId:_0x26bb79,subUnitId:_0xab7ae1}=wn(_0x26540e),_0x1b01c2=_0x4104db['getWorkbookSelections'](_0x26bb79)[_0x2697a6(0xc1)](),_0xb325e3=(_0x3ee202=(_0x151893=this[_0x2697a6(0x123)][_0x2697a6(0x26a)](_0x26bb79))==null?void 0x0:_0x151893[_0x2697a6(0x42e)]())==null?void 0x0:_0x3ee202[_0x2697a6(0x17a)]();if(_0x1b01c2[_0x2697a6(0x2d9)]===0x0||!_0x26bb79||!_0xab7ae1)return;const _0x1ad822=[{'id':k[_0x2697a6(0x2a2)]['id'],'params':{'unitId':_0x26bb79,'subUnitId':_0xb325e3,'selections':a[_0x2697a6(0x1fd)]['deepClone'](_0x1b01c2)}}],_0x213ec3=this[_0x2697a6(0x522)][_0x2697a6(0x118)](_0x26540e,_0x1ad822);if(!p['isTransformMutationsWithChangesetSuccess'](_0x213ec3))throw _0x213ec3['error'];const _0xcfc9a8=(_0x4d99a4=(_0x15fd05=_0x213ec3[_0x2697a6(0x3ff)][0x0])==null?void 0x0:_0x15fd05['params'])==null?void 0x0:_0x4d99a4[_0x2697a6(0x3df)];if(Array['isArray'](_0xcfc9a8)&&_0xcfc9a8[_0x2697a6(0x2d9)]){if(_0xcfc9a8[_0x2697a6(0x2d9)]===_0x1ad822[0x0][_0x2697a6(0x1be)][_0x2697a6(0x3df)][_0x2697a6(0x2d9)]&&_0xcfc9a8[_0x2697a6(0xab)]((_0x1df26f,_0x95669d)=>a[_0x2697a6(0x348)][_0x2697a6(0x320)](_0x1df26f[_0x2697a6(0x2f0)],_0x1ad822[0x0][_0x2697a6(0x1be)][_0x2697a6(0x3df)][_0x95669d][_0x2697a6(0x2f0)])))return;this['_injector']['get'](a[_0x2697a6(0x39a)])[_0x2697a6(0x231)](k['SetSelectionsOperation']['id'],{'unitId':_0x26bb79,'subUnitId':_0xb325e3,'selections':_0xcfc9a8});}}};ke=Pn([et(0x0,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),et(0x1,p[_0xbb724d(0x525)]),et(0x2,a[_0xbb724d(0x4c0)])],ke);const ze=a[_0xbb724d(0x4a3)](_0xbb724d(0x4bf));var vi=(_0x3c5c04=>(_0x3c5c04[_0x3c5c04[_0xbb724d(0x445)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3c5c04[_0x3c5c04[_0xbb724d(0x339)]=0x1]='OTHER_CLIENTS_EDITING',_0x3c5c04))(vi||{});const xt=0x7530,jt=_0xbb724d(0x1d1);class Un extends a[_0xbb724d(0x4cb)]{constructor(){const _0x936dab=_0xbb724d;super(),I(this,_0x936dab(0x136),a['Tools'][_0x936dab(0x26d)]()),I(this,_0x936dab(0x3d0),new Set()),I(this,_0x936dab(0x20f),new Map()),I(this,_0x936dab(0x127),null),I(this,_0x936dab(0x45f),new Map()),I(this,'_unitStatus',new Map()),this[_0x936dab(0x3ab)]();}[_0xbb724d(0x16a)](){const _0x126656=_0xbb724d;super['dispose'](),this[_0x126656(0x45f)][_0x126656(0x53b)]((_0x2af2f9,_0xf784fe)=>this[_0x126656(0x364)](_0xf784fe)),this[_0x126656(0x127)]&&window['clearInterval'](this[_0x126656(0x127)]);}[_0xbb724d(0xe2)](_0x3a1588){const _0x1b6d96=_0xbb724d;return this[_0x1b6d96(0x440)](_0x3a1588)['pipe'](A['distinctUntilChanged']());}[_0xbb724d(0x2dd)](_0x226647){const _0x46b62c=_0xbb724d;this['_selfUnitIDs'][_0x46b62c(0x4a6)]===0x0&&this[_0x46b62c(0x240)](),this[_0x46b62c(0x3d0)][_0x46b62c(0x404)](_0x226647),this['_send']({'type':0x0,'memberID':this[_0x46b62c(0x136)],'unitIDs':[_0x226647],'isForwarded':!0x1});}[_0xbb724d(0x27a)](_0x5dae96){const _0x26cb0d=_0xbb724d;this[_0x26cb0d(0x3d0)][_0x26cb0d(0x1e6)](_0x5dae96),this['_selfUnitIDs']['size']===0x0&&this['_heartbeatTimer']&&window[_0x26cb0d(0x3e6)](this[_0x26cb0d(0x127)]);}[_0xbb724d(0x3ab)](){const _0x3837d5=_0xbb724d;this['disposeWithMe'](a[_0x3837d5(0x2b7)](A['fromEvent'](window,_0x3837d5(0x43a))[_0x3837d5(0x2ae)](_0x2527fc=>{const _0x412e70=_0x3837d5;if(_0x2527fc[_0x412e70(0x224)]!==jt||!_0x2527fc[_0x412e70(0x27b)])return;const _0x2cae8a=JSON[_0x412e70(0x2bd)](_0x2527fc[_0x412e70(0x27b)]);this[_0x412e70(0x1c8)](_0x2cae8a);}))),window[_0x3837d5(0x8a)](_0x3837d5(0x534),()=>this['_send']({'type':0x1,'memberID':this[_0x3837d5(0x136)],'unitIDs':Array['from'](this[_0x3837d5(0x3d0)])}));}[_0xbb724d(0x1c8)](_0x607f94){const _0x2cb05a=_0xbb724d;switch(_0x607f94['type']){case 0x0:this[_0x2cb05a(0x110)](_0x607f94);break;case 0x1:this[_0x2cb05a(0x448)](_0x607f94);break;case 0x2:this[_0x2cb05a(0x4c4)](_0x607f94);break;}}[_0xbb724d(0x110)](_0x1d37e8){const _0x252787=_0xbb724d,{unitIDs:_0x50a052,memberID:_0x49a0ce,isForwarded:_0x3f045b}=_0x1d37e8;_0x50a052[_0x252787(0x53b)](_0x4bff72=>{const _0x66acb6=_0x252787;if(!_0x3f045b&&this[_0x66acb6(0x20f)]['has'](_0x4bff72)&&this['_ensureSubject'](_0x4bff72)[_0x66acb6(0x32a)](0x1),!this[_0x66acb6(0x20f)][_0x66acb6(0x4cd)](_0x4bff72)||!this[_0x66acb6(0x20f)]['get'](_0x4bff72)[_0x66acb6(0x4cd)](_0x49a0ce)){const _0x1a512b=this[_0x66acb6(0x20f)][_0x66acb6(0x2c9)](_0x4bff72)||new Set();_0x1a512b[_0x66acb6(0x404)](_0x49a0ce),this['_unitOnClients'][_0x66acb6(0x117)](_0x4bff72,_0x1a512b),this[_0x66acb6(0x322)](_0x49a0ce);}}),_0x3f045b||this[_0x252787(0x22f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x252787(0x3d0)]],'isForwarded':!0x0});}[_0xbb724d(0x322)](_0x435c15){const _0x47d580=_0xbb724d;this[_0x47d580(0x364)](_0x435c15);const _0x4c569f=window[_0x47d580(0x31c)](()=>{const _0x44cec4=_0x47d580;this[_0x44cec4(0x20f)][_0x44cec4(0x53b)](_0x3c32b4=>{const _0x35f189=_0x44cec4;_0x3c32b4[_0x35f189(0x1e6)](_0x435c15);});},xt*0x2);this[_0x47d580(0x45f)]['set'](_0x435c15,_0x4c569f);}[_0xbb724d(0x364)](_0x29f2ce){const _0x9082f=_0xbb724d;if(this['_clearOtherTimers'][_0x9082f(0x4cd)](_0x29f2ce)){const _0x3e828d=this[_0x9082f(0x45f)][_0x9082f(0x2c9)](_0x29f2ce);_0x3e828d&&window[_0x9082f(0x4a1)](_0x3e828d),this['_clearOtherTimers'][_0x9082f(0x117)](_0x29f2ce,null);}}[_0xbb724d(0x448)](_0x45efb9){const _0x5ae7eb=_0xbb724d,{memberID:_0x2d635c,unitIDs:_0x2ab593}=_0x45efb9;_0x2ab593[_0x5ae7eb(0x53b)](_0x1678d8=>{const _0x58c558=_0x5ae7eb;var _0x2d4c2c;const _0x21cf3b=this[_0x58c558(0x20f)][_0x58c558(0x2c9)](_0x1678d8);_0x21cf3b&&(_0x21cf3b['delete'](_0x2d635c),(_0x2d4c2c=this[_0x58c558(0x440)](_0x1678d8))==null||_0x2d4c2c['next'](_0x21cf3b['size']===0x0?0x0:0x1));}),this[_0x5ae7eb(0x364)](_0x2d635c);}[_0xbb724d(0x4c4)](_0x379412){const _0xa90402=_0xbb724d;this[_0xa90402(0x322)](_0x379412[_0xa90402(0x3f8)]);}[_0xbb724d(0x22f)](_0x2e437a){const _0x1b5ff2=_0xbb724d;localStorage['setItem'](jt,JSON[_0x1b5ff2(0x44f)](_0x2e437a));}[_0xbb724d(0x240)](){const _0x56fc89=_0xbb724d;this[_0x56fc89(0x127)]=window[_0x56fc89(0x41c)](()=>{const _0x14005e=_0x56fc89;this[_0x14005e(0x22f)]({'type':0x2,'memberID':this['_id']});},xt);}['_ensureSubject'](_0x4a04ce){const _0x4a2b51=_0xbb724d;return this[_0x4a2b51(0x100)][_0x4a2b51(0x4cd)](_0x4a04ce)||this[_0x4a2b51(0x100)]['set'](_0x4a04ce,new A[(_0x4a2b51(0x11e))](0x0)),this[_0x4a2b51(0x100)]['get'](_0x4a04ce);}}var Mn=Object[_0xbb724d(0x164)],An=Object['getOwnPropertyDescriptor'],Nn=(_0x31165e,_0x5f5c05,_0x480953,_0x31684c)=>{const _0x5b1012=_0xbb724d;for(var _0xe21e35=_0x31684c>0x1?void 0x0:_0x31684c?An(_0x5f5c05,_0x480953):_0x5f5c05,_0x279a46=_0x31165e[_0x5b1012(0x2d9)]-0x1,_0x49d83d;_0x279a46>=0x0;_0x279a46--)(_0x49d83d=_0x31165e[_0x279a46])&&(_0xe21e35=(_0x31684c?_0x49d83d(_0x5f5c05,_0x480953,_0xe21e35):_0x49d83d(_0xe21e35))||_0xe21e35);return _0x31684c&&_0xe21e35&&Mn(_0x5f5c05,_0x480953,_0xe21e35),_0xe21e35;},tt=(_0x439707,_0x487491)=>(_0x24cfe3,_0x1ae165)=>_0x487491(_0x24cfe3,_0x1ae165,_0x439707);let We=class{constructor(_0x6a94c8,_0x5907ff,_0x48f96c){const _0x3d2bb6=_0xbb724d;this[_0x3d2bb6(0x299)]=_0x6a94c8,this[_0x3d2bb6(0x522)]=_0x5907ff,this['_docStateChangeManagerService']=_0x48f96c;}[_0xbb724d(0x183)](_0x1777af){const _0x36bb83=_0xbb724d;this[_0x36bb83(0xae)](_0x1777af);}['transformRemoteChangeset'](_0x5c5ff9){const _0x1202de=_0xbb724d,{unitID:_0x2776bf}=_0x5c5ff9,{collaboration:_0x187127}=this[_0x1202de(0x1dd)]['getStateCache'](_0x2776bf);if(_0x187127[_0x1202de(0x2d9)]===0x0)return _0x5c5ff9;let _0x99c45c=a[_0x1202de(0x1fd)][_0x1202de(0x17e)](_0x5c5ff9[_0x1202de(0x374)][0x0]);for(let _0x31e72e=0x0;_0x31e72e<_0x187127['length'];_0x31e72e++){const _0x400ef9={'id':_0x1202de(0xc4),'params':{'unitId':_0x187127[_0x31e72e][_0x1202de(0x4a0)],..._0x187127[_0x31e72e]['redoState']}},_0x2369e3=this['_transformService'][_0x1202de(0x4b2)](_0x99c45c,_0x400ef9,!0x1);if(p['isTransformMutationFailure'](_0x2369e3))throw _0x2369e3['error'];_0x99c45c=_0x2369e3['m1Prime'];}return{...a[_0x1202de(0x1fd)][_0x1202de(0x17e)](_0x5c5ff9),'mutations':[_0x99c45c]};}['_transformHistoryAndStateStack'](_0x5cfa1e){const _0x50d1ca=_0xbb724d,{unitID:_0x470302}=_0x5cfa1e,{history:_0x18e5ac,collaboration:_0x55f5e9}=this[_0x50d1ca(0x1dd)][_0x50d1ca(0x1d2)](_0x470302);if(_0x18e5ac[_0x50d1ca(0x2d9)]===0x0&&_0x55f5e9[_0x50d1ca(0x2d9)]===0x0)return;const _0x1fde47=[],_0x1a2762=[];let _0x88fb28=a['Tools'][_0x50d1ca(0x17e)](_0x5cfa1e[_0x50d1ca(0x374)][0x0]),_0x537da5=a[_0x50d1ca(0x1fd)][_0x50d1ca(0x17e)](_0x5cfa1e['mutations'][0x0]);for(let _0x1c05af=_0x18e5ac['length']-0x1;_0x1c05af>=0x0;_0x1c05af--){const _0x5d0c17={'id':_0x50d1ca(0xc4),'params':{'unitId':_0x18e5ac[_0x1c05af]['unitId'],..._0x18e5ac[_0x1c05af]['undoState']}},_0x5032e2={'id':_0x50d1ca(0xc4),'params':{'unitId':_0x18e5ac[_0x1c05af][_0x50d1ca(0x4a0)],..._0x18e5ac[_0x1c05af][_0x50d1ca(0x8e)]}},_0x55b90a=this[_0x50d1ca(0x522)][_0x50d1ca(0x4b2)](_0x88fb28,_0x5d0c17,!0x1),_0x3c7a10=this[_0x50d1ca(0x522)][_0x50d1ca(0x4b2)](_0x537da5,_0x5032e2,!0x1);if(p[_0x50d1ca(0x32e)](_0x55b90a))throw _0x55b90a[_0x50d1ca(0x1d8)];if(p['isTransformMutationFailure'](_0x3c7a10))throw _0x3c7a10[_0x50d1ca(0x1d8)];_0x1fde47[_0x50d1ca(0x239)]({..._0x18e5ac[_0x1c05af],'undoState':_0x55b90a[_0x50d1ca(0x3ff)][_0x50d1ca(0x1be)],'redoState':_0x3c7a10[_0x50d1ca(0x3ff)][_0x50d1ca(0x1be)]}),_0x88fb28=_0x55b90a[_0x50d1ca(0x35e)],_0x537da5=_0x3c7a10[_0x50d1ca(0x35e)];}_0x88fb28=a['Tools'][_0x50d1ca(0x17e)](_0x5cfa1e['mutations'][0x0]),_0x537da5=a[_0x50d1ca(0x1fd)][_0x50d1ca(0x17e)](_0x5cfa1e['mutations'][0x0]);for(let _0x59a4fc=_0x55f5e9[_0x50d1ca(0x2d9)]-0x1;_0x59a4fc>=0x0;_0x59a4fc--){const _0xf82e57={'id':_0x50d1ca(0xc4),'params':{'unitId':_0x55f5e9[_0x59a4fc][_0x50d1ca(0x4a0)],..._0x55f5e9[_0x59a4fc][_0x50d1ca(0x280)]}},_0x1c1e0d={'id':_0x50d1ca(0xc4),'params':{'unitId':_0x55f5e9[_0x59a4fc]['unitId'],..._0x55f5e9[_0x59a4fc]['redoState']}},_0x4c3387=this[_0x50d1ca(0x522)][_0x50d1ca(0x4b2)](_0x88fb28,_0xf82e57,!0x1),_0x512fcc=this[_0x50d1ca(0x522)]['transformMutation'](_0x537da5,_0x1c1e0d,!0x1);if(p[_0x50d1ca(0x32e)](_0x4c3387))throw _0x4c3387['error'];if(p['isTransformMutationFailure'](_0x512fcc))throw _0x512fcc[_0x50d1ca(0x1d8)];_0x1a2762[_0x50d1ca(0x239)]({..._0x55f5e9[_0x59a4fc],'undoState':_0x4c3387[_0x50d1ca(0x3ff)][_0x50d1ca(0x1be)],'redoState':_0x512fcc['m2Prime'][_0x50d1ca(0x1be)]}),_0x88fb28=_0x4c3387[_0x50d1ca(0x35e)],_0x537da5=_0x512fcc['m1Prime'];}this[_0x50d1ca(0x1dd)]['setStateCache'](_0x470302,{'history':_0x1fde47,'collaboration':_0x1a2762});}};We=Nn([tt(0x0,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),tt(0x1,p[_0xbb724d(0x525)]),tt(0x2,a['Inject'](J[_0xbb724d(0x424)]))],We);function Si(_0x5cdf21){const _0x4426d9=_0xbb724d;let _0x4fcdf7='';for(const _0x56375d of _0x5cdf21){const {startOffset:_0x1c8232,endOffset:_0x26ebf2,isActive:_0x327695,rangeType:_0x2b2cbc,segmentId:_0x157371,segmentPage:_0xdeb4ba}=_0x56375d;_0x4fcdf7[_0x4426d9(0x2d9)]&&(_0x4fcdf7+=','),_0x4fcdf7+=_0x1c8232+':'+_0x26ebf2+':'+(_0x327695?'1':'0')+':'+_0x2b2cbc+':'+_0x157371+':'+_0xdeb4ba;}return _0x4fcdf7;}function Ln(_0x482426){const _0x2fde53=_0xbb724d,_0x48dd14=_0x482426['split'](','),_0x52e74c=[];for(const _0x4a90ab of _0x48dd14){const [_0x91ad90,_0x5e5486,_0x10f145,_0x15f7cf,_0xfbf5fe,_0x1120e0]=_0x4a90ab['split'](':');_0x52e74c[_0x2fde53(0x221)]({'startOffset':Number(_0x91ad90),'endOffset':Number(_0x5e5486),'collapsed':_0x91ad90===_0x5e5486,'isActive':_0x10f145==='1','rangeType':_0x15f7cf===a['DOC_RANGE_TYPE'][_0x2fde53(0xd4)]?a['DOC_RANGE_TYPE'][_0x2fde53(0xd4)]:a[_0x2fde53(0x2fe)][_0x2fde53(0x2ea)],'segmentId':typeof _0xfbf5fe==_0x2fde53(0x1eb)?String(_0xfbf5fe):'','segmentPage':Number(_0x1120e0!=null?_0x1120e0:-0x1)});}return _0x52e74c[_0x2fde53(0xea)](_0x361a5f=>_0x361a5f[_0x2fde53(0x435)])||(_0x52e74c[0x0][_0x2fde53(0x435)]=!0x0),_0x52e74c;}class yt extends a[_0xbb724d(0x2fb)]{constructor(){const _0x3e4be3=_0xbb724d;super(...arguments),I(this,'_collabCursorState$',new A[(_0x3e4be3(0x11e))](null)),I(this,_0x3e4be3(0x151),this[_0x3e4be3(0xb2)]['asObservable']());}[_0xbb724d(0x313)](_0x5396ae){const {unitID:_0x236fe6,memberID:_0x1d4575,textRanges:_0x5e85be}=_0x5396ae,_0x7aeabe=Si(_0x5e85be);if(_0x7aeabe==='')return;const _0x10a9e1={'unitID':_0x236fe6,'memberID':_0x1d4575,'selection':_0x7aeabe};this['_collabCursorState$']['next'](_0x10a9e1);}}var xn=Object['defineProperty'],jn=Object[_0xbb724d(0x13d)],$n=(_0x19949d,_0x20f6c1,_0xd5bef4,_0x46126c)=>{for(var _0x3d3c8f=_0x46126c>0x1?void 0x0:_0x46126c?jn(_0x20f6c1,_0xd5bef4):_0x20f6c1,_0x2196fc=_0x19949d['length']-0x1,_0x41f9d2;_0x2196fc>=0x0;_0x2196fc--)(_0x41f9d2=_0x19949d[_0x2196fc])&&(_0x3d3c8f=(_0x46126c?_0x41f9d2(_0x20f6c1,_0xd5bef4,_0x3d3c8f):_0x41f9d2(_0x3d3c8f))||_0x3d3c8f);return _0x46126c&&_0x3d3c8f&&xn(_0x20f6c1,_0xd5bef4,_0x3d3c8f),_0x3d3c8f;},$t=(_0x51f20f,_0x424e0f)=>(_0x170d9c,_0x5b027d)=>_0x424e0f(_0x170d9c,_0x5b027d,_0x51f20f);let Fe=class{constructor(_0x487a4a,_0x3e1fe0){const _0x1bc956=_0xbb724d;this[_0x1bc956(0x299)]=_0x487a4a,this[_0x1bc956(0x522)]=_0x3e1fe0;}['transformSelections'](_0x385ea3){const _0x27aafe=_0xbb724d;var _0x1bacf9;const _0x2337a3=this[_0x27aafe(0x299)]['get'](Ie[_0x27aafe(0x266)]),_0x182fce=(_0x1bacf9=_0x2337a3[_0x27aafe(0x29c)]())!=null?_0x1bacf9:[];if(_0x182fce[_0x27aafe(0x2d9)]===0x0)return;const _0x448aa9=_0x385ea3[_0x27aafe(0x447)],_0x5b0599=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x448aa9,'actions':null,'textRanges':_0x182fce}}],_0x416d44=this[_0x27aafe(0x522)][_0x27aafe(0x118)](_0x385ea3,_0x5b0599);if(!p[_0x27aafe(0x427)](_0x416d44))throw _0x416d44[_0x27aafe(0x1d8)];const _0xa4582a=_0x416d44[_0x27aafe(0x3ff)][0x0][_0x27aafe(0x1be)][_0x27aafe(0x2b4)];Array[_0x27aafe(0x99)](_0xa4582a)&&_0xa4582a['length']&&_0x2337a3[_0x27aafe(0x473)](_0xa4582a,{'unitId':_0x448aa9,'subUnitId':_0x448aa9},!0x1);}};Fe=$n([$t(0x0,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),$t(0x1,p['ITransformService'])],Fe);const Hn=new Set([k['InsertSheetMutation']['id']]);function Ht(_0x277177,_0x1b391a,_0xf0b758,_0x10da9f,_0x466204){const _0x5ea962=_0xbb724d;var _0x28232f,_0x44876f,_0x1aa127,_0x30d33d;const _0xacf4d5=[];for(const _0x1da3e1 of _0x277177)if(Hn[_0x5ea962(0x4cd)](_0x1da3e1['id'])){if(_0xacf4d5[_0x5ea962(0x2d9)]>0x0)break;_0xacf4d5[_0x5ea962(0x221)](_0x1da3e1);break;}else _0xacf4d5[_0x5ea962(0x221)](_0x1da3e1);const _0x515546=(_0x44876f=(_0x28232f=_0x466204[_0x5ea962(0xb9)]())==null?void 0x0:_0x28232f[_0x5ea962(0x51d)])!=null?_0x44876f:_0x5ea962(0x246),_0x548c27=(_0x30d33d=(_0x1aa127=_0x466204[_0x5ea962(0xb9)]())==null?void 0x0:_0x1aa127[_0x5ea962(0x3f8)])!=null?_0x30d33d:_0x5ea962(0x246);return{'changeset':{'unitID':_0x1b391a,'type':p[_0x5ea962(0x12e)](_0xf0b758[_0x5ea962(0x85)](_0x1b391a)),'baseRev':_0x10da9f[_0x5ea962(0xff)](_0x1b391a),'revision':0x0,'userID':_0x515546,'memberID':_0x548c27,'mutations':_0xacf4d5},'pendingMutations':_0x277177['slice'](_0xacf4d5['length'])};}function Bn(_0x3b4a51,_0x60c0b3,_0x14e815,_0x323df3,_0x2bb44e){const _0x10ac93=_0xbb724d;var _0x3b8251,_0x44c760,_0x4d3df0,_0x1e9198;const _0x356042=[_0x3b4a51[_0x10ac93(0x139)]((_0x348c6c,_0x5ab2fc)=>{const _0x4c9579=_0x10ac93;var _0x1c0266;const {id:_0x36e994}=_0x348c6c,{id:_0x590476,type:_0x5e1af6}=_0x5ab2fc,_0x73cb73=(_0x1c0266=_0x348c6c[_0x4c9579(0x1be)])!=null?_0x1c0266:{'actions':null},_0x3b6541=_0x5ab2fc[_0x4c9579(0x1be)];if(_0x36e994&&_0x36e994!==_0x590476)throw new Error(_0x4c9579(0x51b)+_0x36e994+_0x4c9579(0x278)+_0x590476+'.');return{..._0x348c6c,'id':_0x590476,'type':_0x5e1af6,'params':{'unitId':_0x3b6541[_0x4c9579(0x4a0)],'textRanges':_0x3b6541[_0x4c9579(0x2b4)],'actions':a[_0x4c9579(0x51f)][_0x4c9579(0x4a9)](_0x73cb73[_0x4c9579(0x1d5)],_0x3b6541[_0x4c9579(0x1d5)])}};},{})],_0x1d2a11=(_0x44c760=(_0x3b8251=_0x2bb44e[_0x10ac93(0xb9)]())==null?void 0x0:_0x3b8251['userID'])!=null?_0x44c760:'unknown',_0x8bd82f=(_0x1e9198=(_0x4d3df0=_0x2bb44e[_0x10ac93(0xb9)]())==null?void 0x0:_0x4d3df0[_0x10ac93(0x3f8)])!=null?_0x1e9198:'unknown';return{'changeset':{'unitID':_0x60c0b3,'type':p[_0x10ac93(0x12e)](_0x14e815[_0x10ac93(0x85)](_0x60c0b3)),'baseRev':_0x323df3[_0x10ac93(0xff)](_0x60c0b3),'revision':0x0,'userID':_0x1d2a11,'memberID':_0x8bd82f,'mutations':_0x356042},'pendingMutations':[]};}function pi(_0x33d8c7,_0x37019f){const _0x308c0a=_0xbb724d,_0x4baa42=new A[(_0x308c0a(0x2df))](0x1);return setTimeout(()=>_0x4baa42[_0x308c0a(0x32a)](_0x37019f),_0x33d8c7),_0x4baa42[_0x308c0a(0x14b)]()['pipe'](A[_0x308c0a(0x4de)](0x1));}const kn={'id':k[_0xbb724d(0x489)]['id'],'type':a[_0xbb724d(0x20d)][_0xbb724d(0x1f2)],'params':{}};var Wn=Object[_0xbb724d(0x164)],Fn=Object[_0xbb724d(0x13d)],Ee=(_0x403d1a,_0x1ea159,_0x9abf19,_0x2853f3)=>{for(var _0x21e693=_0x2853f3>0x1?void 0x0:_0x2853f3?Fn(_0x1ea159,_0x9abf19):_0x1ea159,_0x1cbb40=_0x403d1a['length']-0x1,_0x59bb0e;_0x1cbb40>=0x0;_0x1cbb40--)(_0x59bb0e=_0x403d1a[_0x1cbb40])&&(_0x21e693=(_0x2853f3?_0x59bb0e(_0x1ea159,_0x9abf19,_0x21e693):_0x59bb0e(_0x21e693))||_0x21e693);return _0x2853f3&&_0x21e693&&Wn(_0x1ea159,_0x9abf19,_0x21e693),_0x21e693;},N=(_0x455115,_0x253d61)=>(_0x56fe06,_0x4aa4f3)=>_0x253d61(_0x56fe06,_0x4aa4f3,_0x455115),q=(_0x72ffb9=>(_0x72ffb9[_0xbb724d(0x191)]=_0xbb724d(0xe8),_0x72ffb9[_0xbb724d(0x1bb)]='synced',_0x72ffb9[_0xbb724d(0x314)]=_0xbb724d(0x105),_0x72ffb9['AWAITING']=_0xbb724d(0x3fe),_0x72ffb9[_0xbb724d(0x4c6)]=_0xbb724d(0x229),_0x72ffb9['FETCH_MISS']=_0xbb724d(0x455),_0x72ffb9[_0xbb724d(0x43e)]=_0xbb724d(0x3ad),_0x72ffb9['OFFLINE']=_0xbb724d(0x49e),_0x72ffb9))(q||{});function _0x195f(_0xd06602,_0x17fe8a){const _0x27017c=_0x2701();return _0x195f=function(_0x195f57,_0x41cafc){_0x195f57=_0x195f57-0x84;let _0x37543b=_0x27017c[_0x195f57];return _0x37543b;},_0x195f(_0xd06602,_0x17fe8a);}const mi=0xea60;class be{constructor(_0xf6eb6e,_0x11fb18,_0x5346a7,_0x2a2da7,_0x5c9aca,_0x432cb7,_0x3b46ca,_0x52010c,_0x263829){const _0x5cfc54=_0xbb724d;I(this,_0x5cfc54(0x46b),null),I(this,_0x5cfc54(0x273),[]),(this['unitID']=_0xf6eb6e,this[_0x5cfc54(0x50f)]=_0x11fb18,this['_handler']=_0x5c9aca,this[_0x5cfc54(0x417)]=_0x432cb7,this[_0x5cfc54(0x488)]=_0x3b46ca,this[_0x5cfc54(0x40e)]=_0x52010c,this['_localCacheService']=_0x263829,this[_0x5cfc54(0x46b)]=_0x5346a7,this[_0x5cfc54(0x273)]=_0x2a2da7);}[_0xbb724d(0x459)](_0x45cc7f){const _0xb748b9=_0xbb724d,_0x1fae9d=this['_revisionService']['getCurrentRevOfUnit'](this[_0xb748b9(0x447)]);return _0x45cc7f[_0xb748b9(0x465)]>_0x1fae9d+0x1?(this['_handler']['onMissingChangesets']({'from':_0x1fae9d,'to':_0x45cc7f['revision']-0x1}),!0x0):!0x1;}[_0xbb724d(0x15a)](_0x460d4a){const _0x2d1292=_0xbb724d;this[_0x2d1292(0x488)][_0x2d1292(0x1a4)](this[_0x2d1292(0x447)],_0x460d4a);}[_0xbb724d(0x3e3)](_0x3644f7){const _0x308ad7=_0xbb724d;var _0x1f6dc3,_0x5908a0;(_0x5908a0=(_0x1f6dc3=this['_handler'])[_0x308ad7(0x2eb)])==null||_0x5908a0[_0x308ad7(0x24a)](_0x1f6dc3,_0x3644f7);}['_transformIMECache'](_0x487c61){const _0x1f900f=_0xbb724d;var _0x4d9c76,_0xf5b118;return(_0xf5b118=(_0x4d9c76=this[_0x1f900f(0x4db)])[_0x1f900f(0x47e)])==null?void 0x0:_0xf5b118[_0x1f900f(0x24a)](_0x4d9c76,_0x487c61);}[_0xbb724d(0x2f5)](_0x2b7f1f){const _0x21bca8=_0xbb724d;var _0x516c18,_0x21a9c1;return(_0x21a9c1=(_0x516c18=this[_0x21bca8(0x4db)])[_0x21bca8(0x347)])==null?void 0x0:_0x21a9c1[_0x21bca8(0x24a)](_0x516c18,_0x2b7f1f);}['_transformRemoteChangesetByIMECache'](_0x372fba){const _0x343cb2=_0xbb724d;var _0x28d28e,_0x35c91c,_0x7c92c9;return(_0x7c92c9=(_0x35c91c=(_0x28d28e=this[_0x343cb2(0x4db)])[_0x343cb2(0x226)])==null?void 0x0:_0x35c91c[_0x343cb2(0x24a)](_0x28d28e,_0x372fba))!=null?_0x7c92c9:_0x372fba;}['_transformRemoteChangesetByStateCache'](_0x2460c1){const _0x445b79=_0xbb724d;var _0x5d5d91,_0x5b350a,_0x5a7a89;return(_0x5a7a89=(_0x5b350a=(_0x5d5d91=this['_handler'])[_0x445b79(0x462)])==null?void 0x0:_0x5b350a[_0x445b79(0x24a)](_0x5d5d91,_0x2460c1))!=null?_0x5a7a89:_0x2460c1;}[_0xbb724d(0x276)](_0x44a069){const _0x24578c=_0xbb724d;var _0xbdbde1,_0x33ea8e;if(this[_0x24578c(0x50f)]===ne[_0x24578c(0x44c)]){const {unitID:_0x2517ab,mutations:_0xc95f7f,memberID:_0x5272f0}=_0x44a069,_0x4ea512=_0xc95f7f[0x0][_0x24578c(0x1be)][_0x24578c(0x2b4)];Array[_0x24578c(0x99)](_0x4ea512)&&_0x4ea512[_0x24578c(0x2d9)]>0x0&&((_0x33ea8e=(_0xbdbde1=this['_handler'])[_0x24578c(0x1de)])==null||_0x33ea8e[_0x24578c(0x24a)](_0xbdbde1,{'unitID':_0x2517ab,'memberID':_0x5272f0,'textRanges':_0x4ea512}));}}['_updateLocalCache'](){const _0x4500e1=_0xbb724d;this[_0x4500e1(0x4ba)][_0x4500e1(0x36f)](this[_0x4500e1(0x447)],this[_0x4500e1(0x50f)],this['_awaitingChangeset'],this[_0x4500e1(0x273)]);}[_0xbb724d(0x312)](){const _0x57993e=_0xbb724d;return this[_0x57993e(0x40e)][_0x57993e(0xff)](this[_0x57993e(0x447)]);}[_0xbb724d(0x3e0)](){const _0x196c5a=_0xbb724d;this[_0x196c5a(0x40e)][_0x196c5a(0x30a)](this[_0x196c5a(0x447)]);}['_executeRemoteChangeset'](_0x42bbd8){const _0x23115d=_0xbb724d;var _0x3495a0;let _0x204760=this['_transformRemoteChangesetByIMECache'](_0x42bbd8);_0x204760=this[_0x23115d(0x255)](_0x204760);const _0x2bf7de=a['sequenceExecute'](_0x204760[_0x23115d(0x374)],this[_0x23115d(0x417)],{'fromCollab':!0x0});if(!_0x2bf7de[_0x23115d(0x345)])throw _0x2bf7de[_0x23115d(0x1d8)]instanceof Error?_0x2bf7de['error']:new Error((_0x3495a0=_0x2bf7de[_0x23115d(0x1d8)])!=null?_0x3495a0:_0x23115d(0x23e));this['_transformIMECache'](_0x204760),this[_0x23115d(0x2f5)](_0x204760),this[_0x23115d(0x15a)](_0x42bbd8),this['_transformSelections'](_0x204760),this[_0x23115d(0x276)](_0x204760),this[_0x23115d(0x3e0)]();}}let Oe=class extends be{constructor(_0x3ea6b8,_0x155299,_0xf93d2b,_0x56ca33,_0x578fa5,_0x36fd0f,_0x5a5319,_0x3fc86a,_0x3b3c47,_0x310b2b){const _0x1b6c9b=_0xbb724d;super(_0x3ea6b8,_0x155299,null,[],_0xf93d2b,_0x3fc86a,_0x5a5319,_0x56ca33,_0x578fa5),I(this,_0x1b6c9b(0x19f),_0x1b6c9b(0x3a8)),(this[_0x1b6c9b(0x299)]=_0x36fd0f,this[_0x1b6c9b(0x1a3)]=_0x3b3c47,this['_transformService']=_0x310b2b);}[_0xbb724d(0x9f)](_0x18ad9e){const _0x5e093c=_0xbb724d,_0x44e2ed=this[_0x5e093c(0x299)][_0x5e093c(0x196)](ce,this[_0x5e093c(0x447)],this[_0x5e093c(0x50f)],[_0x18ad9e],this[_0x5e093c(0x4db)]);return _0x44e2ed[_0x5e093c(0x4e5)](),_0x44e2ed[_0x5e093c(0x4d6)](),_0x44e2ed;}['onRemoteChangeset'](_0x23f523){const _0x3820ba=_0xbb724d;if(this[_0x3820ba(0x459)](_0x23f523))return this[_0x3820ba(0x299)]['createInstance'](re,this['unitID'],this[_0x3820ba(0x50f)],null,[],null,[_0x23f523],this[_0x3820ba(0x4db)]);try{const _0x42d120=this[_0x3820ba(0x522)]['transformMutationsWithChangeset'](_0x23f523,[kn]);if(p[_0x3820ba(0x427)](_0x42d120)){const {c1Prime:_0x33e615}=_0x42d120;return this[_0x3820ba(0x121)](_0x33e615),this;}throw _0x42d120['error'];}catch(_0x405758){return this[_0x3820ba(0x1a3)]['error'](_0x405758),this[_0x3820ba(0x505)](!0x1);}}[_0xbb724d(0x505)](_0xb626c2){const _0x53a3df=_0xbb724d;return this[_0x53a3df(0x299)][_0x53a3df(0x196)](ve,this['unitID'],this['type'],null,[],this[_0x53a3df(0x4db)],_0xb626c2);}[_0xbb724d(0x1e5)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0xbb724d(0x4ab)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0xbb724d(0x3e2)](){return this;}['toggleOffline'](){const _0x32525e=_0xbb724d;return this['_injector'][_0x32525e(0x196)](Se,this[_0x32525e(0x447)],this[_0x32525e(0x50f)],null,[],this['_handler']);}[_0xbb724d(0x237)](){return this;}[_0xbb724d(0x44b)](){const _0x160bf5=_0xbb724d;throw new Error(_0x160bf5(0x4ed));}[_0xbb724d(0x33d)](){const _0x2d0178=_0xbb724d,_0x119a31=this[_0x2d0178(0x40e)][_0x2d0178(0xff)](this[_0x2d0178(0x447)]);return this['_handler'][_0x2d0178(0x40f)]({'from':_0x119a31,'to':0x0}),this[_0x2d0178(0x299)][_0x2d0178(0x196)](re,this[_0x2d0178(0x447)],this[_0x2d0178(0x50f)],null,[],null,[],this[_0x2d0178(0x4db)]);}};Oe=Ee([N(0x3,a[_0xbb724d(0x271)](p[_0xbb724d(0x46f)])),N(0x4,a[_0xbb724d(0x271)](exports[_0xbb724d(0x1d9)])),N(0x5,a[_0xbb724d(0x271)](a['Injector'])),N(0x6,a[_0xbb724d(0x301)]),N(0x7,a[_0xbb724d(0x39a)]),N(0x8,a['ILogService']),N(0x9,p['ITransformService'])],Oe);let ce=class extends be{constructor(_0x1eaaad,_0xd08202,_0x35d9c9,_0x2c602d,_0x30e93b,_0x1d384d,_0x1e7190,_0x410a47,_0x23f998,_0x11a6ba,_0x21e28c,_0x2580d8,_0x134912,_0x8ff86f){const _0x307730=_0xbb724d;super(_0x1eaaad,_0xd08202,null,_0x35d9c9,_0x2c602d,_0x11a6ba,_0x8ff86f,_0x1d384d,_0x1e7190),I(this,'status',_0x307730(0x105)),I(this,_0x307730(0x44e),null),I(this,'_sendingTimer',null),(this[_0x307730(0x299)]=_0x30e93b,this[_0x307730(0x338)]=_0x410a47,this[_0x307730(0x1a3)]=_0x23f998,this[_0x307730(0xe6)]=_0x21e28c,this[_0x307730(0x522)]=_0x2580d8,this[_0x307730(0x20b)]=_0x134912);}[_0xbb724d(0x9f)](_0x225306){const _0x50256c=_0xbb724d;return this['_pendingMutations'][_0x50256c(0x221)](_0x225306),this[_0x50256c(0x4d6)](),this;}['onRemoteChangeset'](_0x2a125b){const _0x559265=_0xbb724d;if(this[_0x559265(0x459)](_0x2a125b))return this[_0x559265(0x2f9)](),this[_0x559265(0x299)][_0x559265(0x196)](re,this[_0x559265(0x447)],this[_0x559265(0x50f)],null,this['_pendingMutations'],null,[_0x2a125b],this[_0x559265(0x4db)]);try{const _0x116ce0=this[_0x559265(0x522)][_0x559265(0x118)](_0x2a125b,this[_0x559265(0x273)]);if(p['isTransformMutationsWithChangesetSuccess'](_0x116ce0)){const {c1Prime:_0x3d1a02,m2Prime:_0x595339}=_0x116ce0;this['_executeRemoteChangeset'](_0x3d1a02);const _0x10c41d=this[_0x559265(0x299)]['createInstance'](ce,this['unitID'],this['type'],_0x595339,this[_0x559265(0x4db)]);return this[_0x559265(0x2f9)](),_0x10c41d[_0x559265(0x4e5)](this[_0x559265(0x44e)]?Math[_0x559265(0x119)](0x0,new Date()[_0x559265(0x31f)]()-this[_0x559265(0x44e)]):this[_0x559265(0x35f)]()),_0x10c41d;}throw _0x116ce0['error'];}catch(_0x5de2c9){return this[_0x559265(0x1a3)][_0x559265(0x1d8)](_0x5de2c9),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x37fd1c=_0xbb724d;throw new Error(_0x37fd1c(0x2b1));}[_0xbb724d(0x4ab)](){const _0x5139a4=_0xbb724d;throw new Error(_0x5139a4(0x3b4));}[_0xbb724d(0x3e2)](){return this;}[_0xbb724d(0x1c3)](){const _0x114fb3=_0xbb724d;return this['_clearScheduledTask'](),this['_injector'][_0x114fb3(0x196)](Se,this['unitID'],this[_0x114fb3(0x50f)],null,this[_0x114fb3(0x273)],this[_0x114fb3(0x4db)]);}[_0xbb724d(0x237)](){return this;}[_0xbb724d(0x4e5)](_0x45658f){const _0x40a20d=_0xbb724d,_0x26b64d=_0x45658f!=null?_0x45658f:this['_getSendChangesetTimeout']();this[_0x40a20d(0x44e)]=new Date()['getTime'](),this[_0x40a20d(0x107)]=window[_0x40a20d(0x31c)](()=>{const _0x4dde84=_0x40a20d;this[_0x4dde84(0x2f9)]();let _0xfee430=null;switch(this[_0x4dde84(0x50f)]){case ne[_0x4dde84(0x1ac)]:{_0xfee430=Ht(this['_pendingMutations'],this[_0x4dde84(0x447)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;}case ne[_0x4dde84(0x44c)]:{this[_0x4dde84(0x273)][_0x4dde84(0xab)](_0x506962=>_0x506962['id']===Ie['RichTextEditingMutation']['id'])?_0xfee430=Bn(this[_0x4dde84(0x273)],this[_0x4dde84(0x447)],this['_univerInstanceService'],this[_0x4dde84(0x40e)],this[_0x4dde84(0x338)]):_0xfee430=Ht(this[_0x4dde84(0x273)],this[_0x4dde84(0x447)],this['_univerInstanceService'],this[_0x4dde84(0x40e)],this[_0x4dde84(0x338)]);break;}default:throw new Error(_0x4dde84(0x97)+this['type']+_0x4dde84(0x1d0));}const {changeset:_0x32a656,pendingMutations:_0x178469}=_0xfee430;this[_0x4dde84(0x4db)]['onSendChangeset'](_0x32a656);const _0x13e4ce=_0x178469[_0x4dde84(0x2d9)]?this[_0x4dde84(0x299)][_0x4dde84(0x196)](le,this[_0x4dde84(0x447)],this['type'],_0x32a656,_0x178469,this[_0x4dde84(0x4db)],void 0x0):this[_0x4dde84(0x299)]['createInstance'](fe,this[_0x4dde84(0x447)],this[_0x4dde84(0x50f)],_0x32a656,this['_handler']);_0x13e4ce['_updateLocalCache'](),this['_handler']['onStateChange'](this,_0x13e4ce);},_0x26b64d);}[_0xbb724d(0x35f)](){const _0x548f0c=_0xbb724d;var _0x480419;const _0x537422=this[_0x548f0c(0xe6)]['getConfig'](Q);return(_0x480419=_0x537422==null?void 0x0:_0x537422[_0x548f0c(0x26c)])!=null?_0x480419:Fi;}[_0xbb724d(0x44b)](){const _0x5ee874=_0xbb724d;throw new Error(_0x5ee874(0x11c));}[_0xbb724d(0x2f9)](){const _0x113de1=_0xbb724d;this[_0x113de1(0x107)]!=null&&(clearTimeout(this[_0x113de1(0x107)]),this[_0x113de1(0x107)]=null);}[_0xbb724d(0x505)](_0x2733ab){const _0x559229=_0xbb724d;return this[_0x559229(0x2f9)](),this[_0x559229(0x299)][_0x559229(0x196)](ve,this[_0x559229(0x447)],this['type'],null,this[_0x559229(0x273)],this[_0x559229(0x4db)],_0x2733ab);}};ce=Ee([N(0x4,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),N(0x5,a[_0xbb724d(0x271)](p[_0xbb724d(0x46f)])),N(0x6,a[_0xbb724d(0x271)](exports['LocalCacheService'])),N(0x7,a[_0xbb724d(0x271)](exports['MemberService'])),N(0x8,a['ILogService']),N(0x9,a['ICommandService']),N(0xa,a['IConfigService']),N(0xb,p[_0xbb724d(0x525)]),N(0xc,a[_0xbb724d(0x4c0)]),N(0xd,a[_0xbb724d(0x301)])],ce);let fe=class extends be{constructor(_0x3a4587,_0x3d841d,_0x3abfc6,_0x50b18b,_0xcbf863,_0x4da9b3,_0x530b0e,_0x2d99e0,_0x4f7f8e,_0x343fbb,_0x52fc38){const _0xf6125e=_0xbb724d;super(_0x3a4587,_0x3d841d,_0x3abfc6,[],_0x50b18b,_0x2d99e0,_0x52fc38,_0x4da9b3,_0x530b0e),I(this,_0xf6125e(0x19f),'awaiting'),I(this,_0xf6125e(0x49c),0x0),I(this,'_resendTimer'),I(this,'_sender'),(this[_0xf6125e(0x299)]=_0xcbf863,this[_0xf6125e(0x1a3)]=_0x4f7f8e,this[_0xf6125e(0x522)]=_0x343fbb);}['appendMutation'](_0x309a49){const _0x7947ad=_0xbb724d;this['_clearScheduledTask']();const _0x5375ae=this[_0x7947ad(0x299)][_0x7947ad(0x196)](le,this[_0x7947ad(0x447)],this[_0x7947ad(0x50f)],this['_awaitingChangeset'],[_0x309a49],this[_0x7947ad(0x4db)],this[_0x7947ad(0x443)]);return _0x5375ae[_0x7947ad(0x4d6)](),_0x5375ae;}[_0xbb724d(0xf2)](_0x2a0a98){const _0x27201e=_0xbb724d;if(this[_0x27201e(0x459)](_0x2a0a98))return this['_clearScheduledTask'](),this[_0x27201e(0x299)][_0x27201e(0x196)](re,this[_0x27201e(0x447)],this[_0x27201e(0x50f)],this[_0x27201e(0x46b)],[],null,[_0x2a0a98],this[_0x27201e(0x4db)]);try{const _0x2df743=this['_transformService'][_0x27201e(0x20c)]([_0x2a0a98],[this[_0x27201e(0x46b)]],!0x1);if(p['isTransformChangesetsSuccess'](_0x2df743)){const {c1Prime:_0x532b05,c2Prime:_0x4ad8fa}=_0x2df743;this['_executeRemoteChangeset'](_0x532b05[0x0]),_0x4ad8fa[0x0][_0x27201e(0x1bd)]=this[_0x27201e(0x312)](),this['_clearScheduledTask']();const _0x3aee17=this['_injector']['createInstance'](fe,this['unitID'],this['type'],_0x4ad8fa[0x0],this[_0x27201e(0x4db)]);return _0x3aee17[_0x27201e(0x4d6)](),_0x3aee17;}return this[_0x27201e(0x505)](!0x1);}catch(_0x2bb442){return this[_0x27201e(0x1a3)][_0x27201e(0x1d8)](_0x2bb442),this[_0x27201e(0x505)](!0x1);}}['onRemoteAck'](_0x41a8cc){const _0x27bac0=_0xbb724d;this[_0x27bac0(0x2f9)]();const _0x25b9dc=this['_revisionService'][_0x27bac0(0xff)](this[_0x27bac0(0x447)]);if(_0x41a8cc[_0x27bac0(0x465)]<_0x25b9dc-0x1)return this;if(this[_0x27bac0(0x459)](_0x41a8cc))return this[_0x27bac0(0x299)][_0x27bac0(0x196)](re,this[_0x27bac0(0x447)],this['type'],null,[],this[_0x27bac0(0x46b)],[],this[_0x27bac0(0x4db)]);this[_0x27bac0(0x3e0)]();const _0x54c489=this[_0x27bac0(0x299)][_0x27bac0(0x196)](Oe,this[_0x27bac0(0x447)],this[_0x27bac0(0x50f)],this[_0x27bac0(0x4db)]);return _0x54c489['_updateLocalCache'](),_0x54c489;}['onRemoteRej'](_0x586c9f){const _0x21f46f=_0xbb724d;return this[_0x21f46f(0x505)](!!(_0x586c9f!=null&&_0x586c9f[_0x21f46f(0x2c2)]));}[_0xbb724d(0x3e2)](_0x4182f8){const _0x43c803=_0xbb724d;return this['_resendTimeout']>mi?this[_0x43c803(0x1c3)]():(this[_0x43c803(0x443)]=pi(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x4182f8['reqId']}),this[_0x43c803(0x187)]=this[_0x43c803(0x443)]['subscribe'](({reqId:_0x302e8b,timeout:_0x4d2fc4})=>{const _0x396f21=_0x43c803;this[_0x396f21(0x399)](_0x302e8b,_0x4d2fc4);}),this);}[_0xbb724d(0x1c3)](){const _0x3ab4d9=_0xbb724d;return this[_0x3ab4d9(0x2f9)](),this[_0x3ab4d9(0x299)][_0x3ab4d9(0x196)](Se,this[_0x3ab4d9(0x447)],this['type'],this['_awaitingChangeset'],[],this[_0x3ab4d9(0x4db)]);}['toggleOnline'](){return this;}['resend'](){const _0x21d412=_0xbb724d;this[_0x21d412(0x4db)][_0x21d412(0x3a3)](this[_0x21d412(0x46b)]);}[_0xbb724d(0x505)](_0xfa3d12){const _0x16e9f5=_0xbb724d;return this[_0x16e9f5(0x2f9)](),this[_0x16e9f5(0x299)][_0x16e9f5(0x196)](ve,this[_0x16e9f5(0x447)],this['type'],this[_0x16e9f5(0x46b)],[],this[_0x16e9f5(0x4db)],_0xfa3d12);}[_0xbb724d(0x399)](_0x270f3f,_0x38d5fe){const _0x506737=_0xbb724d;var _0x3c4f29;_0x270f3f===((_0x3c4f29=this['_awaitingChangeset'])==null?void 0x0:_0x3c4f29[_0x506737(0x192)])&&(this[_0x506737(0x44b)](),this[_0x506737(0x49c)]=_0x38d5fe===0x0?0x3e8:_0x38d5fe*0x2);}[_0xbb724d(0x2f9)](){const _0x1b7aa1=_0xbb724d;var _0x3317d5;(_0x3317d5=this[_0x1b7aa1(0x187)])==null||_0x3317d5[_0x1b7aa1(0x10f)](),this[_0x1b7aa1(0x49c)]=0x0;}};fe=Ee([N(0x4,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),N(0x5,a[_0xbb724d(0x271)](p['RevisionService'])),N(0x6,a['Inject'](exports[_0xbb724d(0x1d9)])),N(0x7,a['ICommandService']),N(0x8,a['ILogService']),N(0x9,p['ITransformService']),N(0xa,a[_0xbb724d(0x301)])],fe);let le=class extends be{constructor(_0x21c2a3,_0x2f957d,_0x1a9c98,_0x3221e8,_0x5acdc9,_0x111cac,_0x2dc383,_0x37ca66,_0x4df441,_0x18ff97,_0x279da4,_0x1ebe04,_0x580555){const _0x4519f0=_0xbb724d;super(_0x21c2a3,_0x2f957d,_0x1a9c98,_0x3221e8,_0x5acdc9,_0x18ff97,_0x580555,_0x37ca66,_0x4df441),I(this,'status','awaiting_with_pending'),I(this,_0x4519f0(0x49c),0x0),I(this,_0x4519f0(0x443)),I(this,_0x4519f0(0x187)),(this[_0x4519f0(0x299)]=_0x2dc383,this[_0x4519f0(0x1a3)]=_0x279da4,this[_0x4519f0(0x522)]=_0x1ebe04,_0x111cac&&(this[_0x4519f0(0x443)]=_0x111cac,this[_0x4519f0(0x187)]=this[_0x4519f0(0x443)]['subscribe'](({reqId:_0x2ee7e3,timeout:_0x5468fd})=>{this['_resendWithTimeout'](_0x2ee7e3,_0x5468fd);})));}[_0xbb724d(0x9f)](_0x198370){const _0x1d2d76=_0xbb724d;return this[_0x1d2d76(0x273)]['push'](_0x198370),this;}[_0xbb724d(0xf2)](_0x22e3e7){const _0x37149c=_0xbb724d;if(this[_0x37149c(0x459)](_0x22e3e7))return this[_0x37149c(0x2f9)](),this[_0x37149c(0x299)][_0x37149c(0x196)](re,this[_0x37149c(0x447)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x22e3e7],this['_handler']);try{const _0x2426df=this['_transformService'][_0x37149c(0x20c)]([_0x22e3e7],[this[_0x37149c(0x46b)]],!0x1);if(p[_0x37149c(0x112)](_0x2426df)){const {c1Prime:_0x19c56c,c2Prime:_0x379736}=_0x2426df,_0x412cbc=this[_0x37149c(0x522)][_0x37149c(0x118)](_0x19c56c[0x0],this['_pendingMutations']);if(p[_0x37149c(0x427)](_0x412cbc)){const {c1Prime:_0x261cfb,m2Prime:_0x5f4d94}=_0x412cbc;return this[_0x37149c(0x121)](_0x261cfb),_0x379736[0x0][_0x37149c(0x1bd)]=this[_0x37149c(0x312)](),this[_0x37149c(0x2f9)](),this[_0x37149c(0x299)]['createInstance'](le,this[_0x37149c(0x447)],this['type'],_0x379736[0x0],_0x5f4d94,this[_0x37149c(0x4db)],void 0x0);}throw _0x412cbc[_0x37149c(0x1d8)];}throw _0x2426df[_0x37149c(0x1d8)];}catch(_0x25d782){return this['_logService'][_0x37149c(0x1d8)](_0x25d782),this[_0x37149c(0x505)](!0x1);}}['onRemoteAck'](_0x349cb1){const _0x3c7cd3=_0xbb724d;if(this[_0x3c7cd3(0x2f9)](),this['_checkMissing'](_0x349cb1))return this[_0x3c7cd3(0x299)][_0x3c7cd3(0x196)](re,this[_0x3c7cd3(0x447)],this['type'],null,this[_0x3c7cd3(0x273)],this[_0x3c7cd3(0x46b)],[],this[_0x3c7cd3(0x4db)]);this[_0x3c7cd3(0x3e0)]();const _0x210151=this[_0x3c7cd3(0x299)][_0x3c7cd3(0x196)](ce,this[_0x3c7cd3(0x447)],this[_0x3c7cd3(0x50f)],this[_0x3c7cd3(0x273)],this[_0x3c7cd3(0x4db)]);return _0x210151[_0x3c7cd3(0x4e5)](),_0x210151['_updateLocalCache'](),_0x210151;}['onRemoteRej'](_0x5efd87){return this['_onConflict'](!!(_0x5efd87!=null&&_0x5efd87['isPermissionRej']));}[_0xbb724d(0x3e2)](_0x4245e3){const _0x4f74fb=_0xbb724d;return this[_0x4f74fb(0x49c)]>mi?this[_0x4f74fb(0x1c3)]():(this['_resendTimer']=pi(this['_resendTimeout'],{'timeout':this[_0x4f74fb(0x49c)],'reqId':_0x4245e3[_0x4f74fb(0x192)]}),this[_0x4f74fb(0x187)]=this['_resendTimer'][_0x4f74fb(0x2ae)](({reqId:_0x3fa9b0,timeout:_0x5b8045})=>{const _0x2df111=_0x4f74fb;this[_0x2df111(0x399)](_0x3fa9b0,_0x5b8045);}),this);}[_0xbb724d(0x1c3)](){const _0x7830f7=_0xbb724d;return this[_0x7830f7(0x2f9)](),this[_0x7830f7(0x299)][_0x7830f7(0x196)](Se,this[_0x7830f7(0x447)],this[_0x7830f7(0x50f)],this[_0x7830f7(0x46b)],this[_0x7830f7(0x273)],this[_0x7830f7(0x4db)]);}[_0xbb724d(0x237)](){return this;}[_0xbb724d(0x44b)](){const _0xd01ac7=_0xbb724d;this['_handler'][_0xd01ac7(0x3a3)](this[_0xd01ac7(0x46b)]);}[_0xbb724d(0x505)](_0x34980d){const _0x131695=_0xbb724d;return this[_0x131695(0x2f9)](),this['_injector']['createInstance'](ve,this[_0x131695(0x447)],this[_0x131695(0x50f)],null,this[_0x131695(0x273)],this[_0x131695(0x4db)],_0x34980d);}[_0xbb724d(0x399)](_0x281594,_0x307b2e){const _0x16a9c1=_0xbb724d;var _0x42bb80;_0x281594===((_0x42bb80=this['_awaitingChangeset'])==null?void 0x0:_0x42bb80[_0x16a9c1(0x192)])&&(this['resend'](),this[_0x16a9c1(0x49c)]=_0x307b2e===0x0?0x3e8:_0x307b2e*0x2);}[_0xbb724d(0x2f9)](){const _0x496c11=_0xbb724d;var _0x3ee975;(_0x3ee975=this[_0x496c11(0x187)])==null||_0x3ee975['unsubscribe'](),this['_resendTimeout']=0x0;}};le=Ee([N(0x6,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),N(0x7,a['Inject'](p['RevisionService'])),N(0x8,a['Inject'](exports['LocalCacheService'])),N(0x9,a[_0xbb724d(0x39a)]),N(0xa,a['ILogService']),N(0xb,p[_0xbb724d(0x525)]),N(0xc,a[_0xbb724d(0x301)])],le);let ve=class extends be{constructor(_0xca956b,_0x56a80f,_0x58e3ac,_0x1da79c,_0x1ad612,_0x58cf2d=!0x1,_0x1b9858,_0x27fcc3,_0x14af4e,_0x554e9f,_0x2a2897,_0x358212,_0x5ae6c9){const _0x266d5e=_0xbb724d;super(_0xca956b,_0x56a80f,_0x58e3ac,_0x1da79c,_0x1ad612,_0x27fcc3,_0x14af4e,_0x2a2897,_0x554e9f),I(this,_0x266d5e(0x19f),_0x266d5e(0x3ad)),(this[_0x266d5e(0x520)]=_0x58cf2d,this['_permissionService']=_0x1b9858,this['_localeService']=_0x358212,this['_notificationService']=_0x5ae6c9,this[_0x266d5e(0xf0)](),this[_0x266d5e(0x1a6)](),this[_0x266d5e(0x251)]());}[_0xbb724d(0x9f)](){return this;}[_0xbb724d(0xf2)](){return this;}['onRemoteAck'](){return this;}[_0xbb724d(0x4ab)](){return this;}[_0xbb724d(0x3e2)](){return this;}[_0xbb724d(0x1c3)](){return this;}['toggleOnline'](){return this;}[_0xbb724d(0x44b)](){const _0x22dca2=_0xbb724d;throw new Error(_0x22dca2(0x283));}[_0xbb724d(0x1a6)](){const _0x12e7ce=_0xbb724d;this[_0x12e7ce(0x4ba)]['updateOfflineData'](this[_0x12e7ce(0x447)],this['type'],null,[]);}[_0xbb724d(0xf0)](){const _0x55548f=_0xbb724d;this[_0x55548f(0x520)]?this[_0x55548f(0x2be)][_0x55548f(0xb7)]({'title':this[_0x55548f(0x4f9)]['t'](_0x55548f(0x4b4)),'content':this[_0x55548f(0x4f9)]['t'](_0x55548f(0x3c4)),'type':'error','duration':0x0}):this['_notificationService']['show']({'title':this[_0x55548f(0x4f9)]['t'](_0x55548f(0x2b2)),'content':this[_0x55548f(0x4f9)]['t'](_0x55548f(0x18a)),'type':_0x55548f(0x1d8),'duration':0x0});}[_0xbb724d(0x251)](){const _0x4c8d03=_0xbb724d;this[_0x4c8d03(0x3b1)][_0x4c8d03(0xc9)](new k[(_0x4c8d03(0x3ed))](this[_0x4c8d03(0x447)])['id'],!0x1);}};ve=Ee([N(0x6,a[_0xbb724d(0x271)](a[_0xbb724d(0x9a)])),N(0x7,a[_0xbb724d(0x39a)]),N(0x8,a['IUndoRedoService']),N(0x9,a[_0xbb724d(0x271)](exports[_0xbb724d(0x1d9)])),N(0xa,a['Inject'](p['RevisionService'])),N(0xb,a[_0xbb724d(0x271)](a['LocaleService'])),N(0xc,te[_0xbb724d(0x2dc)])],ve);let Se=class extends be{constructor(_0x339b55,_0x4d28dd,_0x52d5aa,_0x5a7928,_0x275a1f,_0x25bf19,_0x5215d2,_0xd6688f,_0x4f8998,_0x3926bd){const _0x6647a=_0xbb724d;super(_0x339b55,_0x4d28dd,_0x52d5aa,_0x5a7928,_0x275a1f,_0x4f8998,_0x3926bd,_0x5215d2,_0xd6688f),I(this,_0x6647a(0x19f),_0x6647a(0x49e)),this[_0x6647a(0x299)]=_0x25bf19;}['appendMutation'](_0x3385d5){return this['_pendingMutations']['push'](_0x3385d5),this['_updateLocalCache'](),this;}[_0xbb724d(0xf2)](_0x4579c8){const _0x45c3a8=_0xbb724d;throw new Error(_0x45c3a8(0x34a));}[_0xbb724d(0x1e5)](){const _0x4f5271=_0xbb724d;throw new Error(_0x4f5271(0x17b));}[_0xbb724d(0x4ab)](){const _0x1494cb=_0xbb724d;throw new Error(_0x1494cb(0x4ce));}[_0xbb724d(0x3e2)](){return this;}['toggleOffline'](){return this;}[_0xbb724d(0x237)](){const _0x579493=_0xbb724d,{_injector:_0x2258e6,_pendingMutations:_0x5145f5,_awaitingChangeset:_0x314af1,unitID:_0xee2d57,_handler:_0x33f2a7,type:_0x232cbf}=this,_0x4cbc76=gi(_0x2258e6,_0xee2d57,_0x232cbf,_0x314af1,_0x5145f5,_0x33f2a7);return _0x4cbc76 instanceof ce?_0x4cbc76[_0x579493(0x4e5)]():(_0x4cbc76 instanceof le||_0x4cbc76 instanceof fe)&&_0x4cbc76[_0x579493(0x44b)](),_0x4cbc76;}[_0xbb724d(0x44b)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Se=Ee([N(0x5,a[_0xbb724d(0x271)](a['Injector'])),N(0x6,a[_0xbb724d(0x271)](p['RevisionService'])),N(0x7,a[_0xbb724d(0x271)](exports[_0xbb724d(0x1d9)])),N(0x8,a[_0xbb724d(0x39a)]),N(0x9,a[_0xbb724d(0x301)])],Se);let re=class extends be{constructor(_0x3aabe7,_0x5aee75,_0x2b224e,_0x22e0b6,_0x1acfab,_0x4eadfa,_0x342211,_0x3727ba,_0x3788c6,_0x4afade,_0x15fe2a,_0x58666a,_0x34183a,_0x2d6e71){const _0x1ce5a7=_0xbb724d;super(_0x3aabe7,_0x5aee75,_0x2b224e,_0x22e0b6,_0x342211,_0x58666a,_0x34183a,_0x3788c6,_0x4afade),I(this,_0x1ce5a7(0x19f),_0x1ce5a7(0x455)),(this[_0x1ce5a7(0x144)]=_0x1acfab,this[_0x1ce5a7(0x39e)]=_0x4eadfa,this[_0x1ce5a7(0x299)]=_0x3727ba,this[_0x1ce5a7(0x1a3)]=_0x15fe2a,this['_transformService']=_0x2d6e71);}[_0xbb724d(0x14d)](_0x59b814){const _0x363b33=_0xbb724d;try{const _0x47b321=[..._0x59b814,...this[_0x363b33(0x39e)]],_0x21942a=[this[_0x363b33(0x46b)]||this['_acknowledgedAwaitingChangeset']][_0x363b33(0x21e)](_0x5051f9=>!!_0x5051f9);let _0x2bdcbe,_0x11c42f;if(_0x21942a[_0x363b33(0x2d9)]){const _0x3c0c7d=this[_0x363b33(0x522)][_0x363b33(0x20c)](_0x47b321,_0x21942a,!0x1);if(!p['isTransformChangesetsSuccess'](_0x3c0c7d))throw _0x3c0c7d['error'];_0x2bdcbe=_0x3c0c7d['c1Prime'],_0x11c42f=_0x3c0c7d[_0x363b33(0xd3)];}else _0x2bdcbe=_0x47b321,_0x11c42f=[];let _0x38ccd5=this[_0x363b33(0x273)];_0x2bdcbe[_0x363b33(0x53b)](_0x1ebec3=>{const _0x808d84=_0x363b33;let _0x2f86ae;if(_0x38ccd5[_0x808d84(0x2d9)]){const _0x300e05=this[_0x808d84(0x522)]['transformMutationsWithChangeset'](_0x1ebec3,_0x38ccd5);if(!p[_0x808d84(0x427)](_0x300e05))throw _0x300e05[_0x808d84(0x1d8)];_0x2f86ae=_0x300e05[_0x808d84(0x1ae)],_0x38ccd5=_0x300e05['m2Prime'];}else _0x2f86ae=_0x1ebec3;this[_0x808d84(0x121)](_0x2f86ae);}),this[_0x363b33(0x144)]&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x11c42f[_0x363b33(0x2d9)]&&(_0x11c42f[0x0][_0x363b33(0x1bd)]=this['_getCurrentRevision']());let _0x400199;if(this[_0x363b33(0x46b)]&&_0x38ccd5[_0x363b33(0x2d9)]!==0x0)_0x400199=this[_0x363b33(0x299)][_0x363b33(0x196)](le,this[_0x363b33(0x447)],this[_0x363b33(0x50f)],_0x11c42f[0x0],_0x38ccd5,this[_0x363b33(0x4db)],void 0x0);else{if(this[_0x363b33(0x46b)]&&_0x38ccd5[_0x363b33(0x2d9)]===0x0)_0x11c42f[0x0]['baseRev']=this[_0x363b33(0x312)](),_0x400199=this[_0x363b33(0x299)][_0x363b33(0x196)](fe,this[_0x363b33(0x447)],this[_0x363b33(0x50f)],_0x11c42f[0x0],this[_0x363b33(0x4db)]);else{if(_0x38ccd5[_0x363b33(0x2d9)]!==0x0){const _0xb9df68=this[_0x363b33(0x299)][_0x363b33(0x196)](ce,this[_0x363b33(0x447)],this['type'],_0x38ccd5,this[_0x363b33(0x4db)]);_0xb9df68['_schedule'](),_0x400199=_0xb9df68;}else _0x400199=this[_0x363b33(0x299)]['createInstance'](Oe,this[_0x363b33(0x447)],this[_0x363b33(0x50f)],this['_handler']);}}return _0x400199[_0x363b33(0x4d6)](),_0x400199;}catch(_0x2a0245){return this['_logService'][_0x363b33(0x1d8)](_0x363b33(0x25b),_0x363b33(0xaa),_0x2a0245),this['_injector'][_0x363b33(0x196)](ve,this[_0x363b33(0x447)],this['type'],this['_awaitingChangeset'],this[_0x363b33(0x273)],this[_0x363b33(0x4db)],!0x1);}}[_0xbb724d(0x44b)](){const _0x317d71=_0xbb724d;throw new Error(_0x317d71(0xec));}[_0xbb724d(0x9f)](_0x208706){const _0x26ff13=_0xbb724d;return this[_0x26ff13(0x273)]['push'](_0x208706),this;}['onRemoteChangeset'](_0x520f49){const _0x25d57c=_0xbb724d;return this[_0x25d57c(0x39e)]['push'](_0x520f49),this;}['onRemoteAck'](_0x2cee7e){const _0x439bfa=_0xbb724d;if(this[_0x439bfa(0x46b)])return this['_acknowledgedAwaitingChangeset']=this[_0x439bfa(0x46b)],this[_0x439bfa(0x46b)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0xbb724d(0x4ab)](_0xacda84){const _0x2aa8a2=_0xbb724d;return this['_onConflict'](!!(_0xacda84!=null&&_0xacda84[_0x2aa8a2(0x2c2)]));}[_0xbb724d(0x3e2)](){return this;}[_0xbb724d(0x1c3)](){const _0x3c80a9=_0xbb724d;return this[_0x3c80a9(0x299)][_0x3c80a9(0x196)](Se,this['unitID'],this[_0x3c80a9(0x50f)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3c80a9(0x4db)]);}[_0xbb724d(0x237)](){return this;}[_0xbb724d(0x505)](_0x4ae7d3){const _0x32c60e=_0xbb724d;return this[_0x32c60e(0x299)][_0x32c60e(0x196)](ve,this[_0x32c60e(0x447)],this[_0x32c60e(0x50f)],this['_awaitingChangeset'],this[_0x32c60e(0x273)],this[_0x32c60e(0x4db)],_0x4ae7d3);}};re=Ee([N(0x7,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),N(0x8,a[_0xbb724d(0x271)](p['RevisionService'])),N(0x9,a['Inject'](exports[_0xbb724d(0x1d9)])),N(0xa,a['ILogService']),N(0xb,a[_0xbb724d(0x39a)]),N(0xc,a[_0xbb724d(0x301)]),N(0xd,p[_0xbb724d(0x525)])],re);function gi(_0x598d97,_0x246abf,_0x3c8d2a,_0x39c090,_0x228c9d,_0x58687f){const _0x1bca56=_0xbb724d;return _0x39c090&&_0x228c9d[_0x1bca56(0x2d9)]?_0x598d97[_0x1bca56(0x196)](le,_0x246abf,_0x3c8d2a,_0x39c090,_0x228c9d,_0x58687f,void 0x0):_0x39c090?_0x598d97[_0x1bca56(0x196)](fe,_0x246abf,_0x3c8d2a,_0x39c090,_0x58687f):_0x228c9d[_0x1bca56(0x2d9)]?_0x598d97[_0x1bca56(0x196)](ce,_0x246abf,_0x3c8d2a,_0x228c9d,_0x58687f):_0x598d97[_0x1bca56(0x196)](Oe,_0x246abf,_0x3c8d2a,_0x58687f);}var Vn=Object[_0xbb724d(0x164)],Gn=Object[_0xbb724d(0x13d)],Ot=(_0x212c6d,_0x481cc6,_0x318547,_0x450a90)=>{const _0x57f7b7=_0xbb724d;for(var _0x564a24=_0x450a90>0x1?void 0x0:_0x450a90?Gn(_0x481cc6,_0x318547):_0x481cc6,_0x5b788f=_0x212c6d[_0x57f7b7(0x2d9)]-0x1,_0x4c28df;_0x5b788f>=0x0;_0x5b788f--)(_0x4c28df=_0x212c6d[_0x5b788f])&&(_0x564a24=(_0x450a90?_0x4c28df(_0x481cc6,_0x318547,_0x564a24):_0x4c28df(_0x564a24))||_0x564a24);return _0x450a90&&_0x564a24&&Vn(_0x481cc6,_0x318547,_0x564a24),_0x564a24;},H=(_0x54bd31,_0x2a4a5f)=>(_0x262811,_0xf1c990)=>_0x2a4a5f(_0x262811,_0xf1c990,_0x54bd31);exports['CollaborationEntity']=class extends a[_0xbb724d(0x2fb)]{constructor(_0x4e1334,_0xcc1caa,_0x59d008,_0x98961f,_0x5dc4f7,_0x4021d8,_0x3b4497,_0x390aa2,_0x4680da,_0x37f356,_0x400746,_0x4b2e89,_0x3af62a){const _0x116b84=_0xbb724d;super(),I(this,_0x116b84(0x35d),new A[(_0x116b84(0x11e))](null)),I(this,_0x116b84(0x303),this[_0x116b84(0x35d)][_0x116b84(0x14b)]()),I(this,_0x116b84(0x30f)),I(this,_0x116b84(0x34d),!0x1),I(this,_0x116b84(0x518),''),I(this,_0x116b84(0x2e6),0x0),I(this,'status$',this[_0x116b84(0x303)][_0x116b84(0x52f)](A[_0x116b84(0x1cf)](_0x454a7c=>_0x454a7c?_0x454a7c[_0x116b84(0x19f)]:q[_0x116b84(0x104)]),A[_0x116b84(0x3f6)](0x1))),I(this,_0x116b84(0x2ee),!0x1),I(this,_0x116b84(0x469),[]),(this[_0x116b84(0x447)]=_0x4e1334,this[_0x116b84(0xde)]=_0xcc1caa,this[_0x116b84(0x3ef)]=_0x59d008,this[_0x116b84(0x299)]=_0x98961f,this['_localCacheService']=_0x5dc4f7,this[_0x116b84(0x147)]=_0x4021d8,this['_localeService']=_0x3b4497,this[_0x116b84(0x40e)]=_0x390aa2,this[_0x116b84(0x1a3)]=_0x4680da,this[_0x116b84(0x417)]=_0x37f356,this[_0x116b84(0x3c1)]=_0x400746,this['_permissionService']=_0x4b2e89,this[_0x116b84(0x423)]=_0x3af62a);}get[_0xbb724d(0x411)](){return this['_state'];}async[_0xbb724d(0x212)](){const _0x2cfef4=_0xbb724d;if(this['state'])throw new Error(_0x2cfef4(0x3ac));await this[_0x2cfef4(0x3ab)]();}['pauseCollaboration'](){const _0x2b5bbd=_0xbb724d;return this[_0x2b5bbd(0x34d)]=!0x0,a[_0x2b5bbd(0x2b7)](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0xbb724d(0x113)](_0x9ff0c0){const _0x6e4f79=_0xbb724d;this[_0x6e4f79(0x30f)]=_0x9ff0c0,this[_0x6e4f79(0x35d)][_0x6e4f79(0x32a)](_0x9ff0c0);}async[_0xbb724d(0x3ab)](){const _0x40cafa=_0xbb724d;var _0x1268fc;this[_0x40cafa(0x113)](await this[_0x40cafa(0x18d)]()),this[_0x40cafa(0x423)]&&((_0x1268fc=this[_0x40cafa(0x423)])==null||_0x1268fc[_0x40cafa(0x2dd)](this[_0x40cafa(0x447)]),this['disposeWithMe'](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x40cafa(0x447)])[_0x40cafa(0x2ae)](_0x2f8a9b=>{const _0xdfa28f=_0x40cafa;this[_0xdfa28f(0x1a3)][_0xdfa28f(0x528)](_0xdfa28f(0x451),_0xdfa28f(0x294),_0x2f8a9b),_0x2f8a9b===vi[_0xdfa28f(0x339)]?(this[_0xdfa28f(0x3c1)][_0xdfa28f(0xb7)]({'content':this['_localeService']['t'](_0xdfa28f(0x131)),'type':Ce[_0xdfa28f(0xd6)][_0xdfa28f(0xc5)]}),this[_0xdfa28f(0x3b1)][_0xdfa28f(0xc9)](new k['WorkbookEditablePermission'](this[_0xdfa28f(0x447)])['id'],!0x1),this[_0xdfa28f(0x3b1)][_0xdfa28f(0x50e)](!0x1)):(this[_0xdfa28f(0x3b1)][_0xdfa28f(0xc9)](new k[(_0xdfa28f(0x3ed))](this['unitID'])['id'],!0x0),this[_0xdfa28f(0x3b1)]['setShowComponents'](!0x0));})));let _0x2ffe28=!0x1;return this[_0x40cafa(0x2ad)](this['session'][_0x40cafa(0xc6)]['subscribe'](_0x430267=>{const _0x37edde=_0x40cafa;_0x430267===se['ONLINE']?this[_0x37edde(0xbe)](_0x2ffe28):_0x430267===se[_0x37edde(0x104)]&&(_0x2ffe28=!0x0,this['_toggleOffline']());})),this[_0x40cafa(0x2ad)](this[_0x40cafa(0xde)][_0x40cafa(0x3a7)][_0x40cafa(0x2ae)](_0x588c9e=>{const _0x433d33=_0x40cafa;try{switch(_0x588c9e[_0x433d33(0x470)]){case p[_0x433d33(0x29f)][_0x433d33(0x3ca)]:{this['_onRemoteChangeset'](p[_0x433d33(0x2a3)](_0x588c9e['data']));break;}case p['CollaborationEvent'][_0x433d33(0x4cf)]:{this[_0x433d33(0x3a2)](_0x588c9e[_0x433d33(0x238)]);break;}case p['CollaborationEvent']['CHANGESET_REJ']:{this[_0x433d33(0x30c)]();break;}case p[_0x433d33(0x29f)][_0x433d33(0xdf)]:{this[_0x433d33(0x1d6)](_0x588c9e[_0x433d33(0x238)]);break;}case p[_0x433d33(0x29f)][_0x433d33(0x219)]:{this['_onFetchMissResult'](_0x588c9e['data']['changesets']['map'](_0x159b3e=>p[_0x433d33(0x2a3)](_0x159b3e)));break;}case p[_0x433d33(0x29f)][_0x433d33(0x2b0)]:this[_0x433d33(0x30c)]({'isPermissionRej':!0x0});}}catch(_0x421eb5){throw console[_0x433d33(0x1d8)]('Error\x20on\x20receiving\x20event',_0x421eb5),_0x421eb5;}})),this[_0x40cafa(0x30f)];}[_0xbb724d(0x1cd)](){const _0x444f8e=_0xbb724d;this[_0x444f8e(0x2ee)]=!0x1;}[_0xbb724d(0x479)](){const _0x3dd12c=_0xbb724d;if(this['_transitionLocked'])throw new Error(_0x3dd12c(0x1ad));this[_0x3dd12c(0x2ee)]=!0x0;}[_0xbb724d(0x1d7)](_0x458536){const _0x15645b=_0xbb724d;this[_0x15645b(0x479)](),this[_0x15645b(0x113)](this['_state']['appendMutation'](_0x458536)),this[_0x15645b(0x1cd)]();}[_0xbb724d(0x531)](_0x510c03){const _0x2d26ef=_0xbb724d;if(!(_0x510c03[_0x2d26ef(0x465)]<=this[_0x2d26ef(0x40e)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0x2d26ef(0x34d)]){this[_0x2d26ef(0x469)][_0x2d26ef(0x221)](_0x510c03);return;}this['_applyRemoteChangeset'](_0x510c03);}}['_exhaustRemoteChangesetQueue'](){const _0x361f07=_0xbb724d;this['_remoteChangesetQueue']['forEach'](_0x8863d3=>this[_0x361f07(0xcd)](_0x8863d3)),this[_0x361f07(0x469)]=[];}[_0xbb724d(0xcd)](_0x1ea4cf){const _0x316dfb=_0xbb724d,_0x13a854=this[_0x316dfb(0x147)]['interceptor'][_0x316dfb(0x108)](this[_0x316dfb(0x147)][_0x316dfb(0x496)][_0x316dfb(0x4be)]()[_0x316dfb(0x49b)])(_0x1ea4cf[_0x316dfb(0x374)],null)||_0x1ea4cf[_0x316dfb(0x374)],_0x43d998={..._0x1ea4cf,'mutations':_0x13a854};this[_0x316dfb(0x479)](),this[_0x316dfb(0x113)](this[_0x316dfb(0x30f)][_0x316dfb(0xf2)](_0x43d998)),this[_0x316dfb(0x1cd)]();}[_0xbb724d(0x3a2)](_0x45825b){const _0x38d24c=_0xbb724d;this[_0x38d24c(0x479)](),this[_0x38d24c(0x113)](this[_0x38d24c(0x30f)]['onRemoteAck'](_0x45825b)),this[_0x38d24c(0x1cd)]();}['_onRemoteRejected'](_0x2c95f0){const _0x3a7824=_0xbb724d;this[_0x3a7824(0x479)](),this[_0x3a7824(0x113)](this[_0x3a7824(0x30f)]['onRemoteRej'](_0x2c95f0)),this[_0x3a7824(0x1cd)]();}['_onRemoteRetry'](_0x55437a){const _0x3b77b8=_0xbb724d;this['_lockTransition'](),this['_updateState'](this[_0x3b77b8(0x30f)][_0x3b77b8(0x3e2)](_0x55437a)),this[_0x3b77b8(0x1cd)]();}[_0xbb724d(0xb4)](_0x383a22){const _0x41d700=_0xbb724d;if(!(this[_0x41d700(0x30f)]instanceof re))throw new TypeError(_0x41d700(0x122));const _0x36e02b=_0x383a22['map'](_0x1d70c1=>{const _0x29768e=_0x41d700,_0x39ec43=this[_0x29768e(0x147)]['interceptor']['fetchThroughInterceptors'](this[_0x29768e(0x147)][_0x29768e(0x496)][_0x29768e(0x4be)]()['COMPRESS_MUTATION_APPLY'])(_0x1d70c1[_0x29768e(0x374)],null)||_0x1d70c1[_0x29768e(0x374)];return{..._0x1d70c1,'mutations':_0x39ec43};});this[_0x41d700(0x479)](),this['_updateState'](this[_0x41d700(0x30f)][_0x41d700(0x14d)](_0x36e02b)),this[_0x41d700(0x1cd)]();}['_toggleOffline'](){const _0x1e17c8=_0xbb724d;this['_lockTransition'](),this[_0x1e17c8(0x113)](this[_0x1e17c8(0x30f)]['toggleOffline']()),this['_unlockTransition']();}[_0xbb724d(0xbe)](_0x41baed=!0x1){const _0x3ea924=_0xbb724d;this[_0x3ea924(0x479)](),this['_updateState'](this[_0x3ea924(0x30f)][_0x3ea924(0x237)]()),this[_0x3ea924(0x1cd)]();const _0x4c58c9=this[_0x3ea924(0x30f)];_0x41baed&&_0x4c58c9 instanceof Oe&&(this[_0x3ea924(0x479)](),this[_0x3ea924(0x113)](_0x4c58c9[_0x3ea924(0x33d)]()),this[_0x3ea924(0x1cd)]());}async[_0xbb724d(0x18d)](){return new Promise(_0x481dd5=>{const _0x4ee084=_0x195f;this['session'][_0x4ee084(0xc6)][_0x4ee084(0x52f)](A[_0x4ee084(0x4de)](0x1))['subscribe'](async _0x4a9b71=>{const _0x2d3cf2=_0x4ee084;_0x481dd5(await this['_createInitialStateImpl'](_0x4a9b71===se[_0x2d3cf2(0x498)]));});});}[_0xbb724d(0x514)](){const _0x1dfd1b=_0xbb724d,_0x106345=this[_0x1dfd1b(0x447)];return{'onStateChange':(_0x943201,_0x3bc78f)=>{const _0x2b5c09=_0x1dfd1b;if(_0x943201!==this[_0x2b5c09(0x30f)])throw new Error(_0x2b5c09(0x46c)+_0x943201[_0x2b5c09(0x19f)]+'\x0aAfter:\x20'+_0x3bc78f[_0x2b5c09(0x19f)]+_0x2b5c09(0x1b7)+this[_0x2b5c09(0x30f)][_0x2b5c09(0x19f)]);this[_0x2b5c09(0x113)](_0x3bc78f);},'onSendChangeset':_0x3320ae=>{const _0x468167=_0x1dfd1b;_0x3320ae[_0x468167(0x260)]||(_0x3320ae[_0x468167(0x260)]=this[_0x468167(0x518)],_0x3320ae[_0x468167(0x192)]=++this[_0x468167(0x2e6)]);const _0x4f2aa0={'eventID':p[_0x468167(0x29f)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x3320ae[_0x468167(0x447)],'unitType':this['_type'],'changeset':_0x3320ae,'memberID':this[_0x468167(0xde)][_0x468167(0x2bf)]()}};this[_0x468167(0xde)][_0x468167(0x370)](_0x4f2aa0,this['unitID']);},'onMissingChangesets':({from:_0x571dd1,to:_0x2d3ebd})=>{const _0x41a8a6=_0x1dfd1b;this['_logService'][_0x41a8a6(0x528)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x571dd1+_0x41a8a6(0x513)+_0x2d3ebd);const _0x23a1d0={'eventID':p[_0x41a8a6(0x29f)]['FETCH_MISSING'],'data':{'unitID':_0x106345,'unitType':this[_0x41a8a6(0x3ef)],'from':_0x571dd1,'to':_0x2d3ebd}};this[_0x41a8a6(0xde)][_0x41a8a6(0x370)](_0x23a1d0,this[_0x41a8a6(0x447)]);}};}async['_createInitialStateImpl'](_0x373892){const _0x73fcaf=_0xbb724d;var _0x450ba8,_0x2a3942;const _0x35ee60=await this[_0x73fcaf(0x4ba)][_0x73fcaf(0x3f9)](this[_0x73fcaf(0x447)]),_0x4c63a1=(_0x450ba8=_0x35ee60==null?void 0x0:_0x35ee60[_0x73fcaf(0x374)])!=null?_0x450ba8:[],_0x359ed3=(_0x2a3942=_0x35ee60==null?void 0x0:_0x35ee60[_0x73fcaf(0x30e)])!=null?_0x2a3942:null,_0x57cddd=!!(_0x359ed3!=null&&_0x359ed3[_0x73fcaf(0x260)])&&!!(_0x359ed3!=null&&_0x359ed3[_0x73fcaf(0x192)]);this[_0x73fcaf(0x518)]=_0x57cddd?_0x359ed3['sid']:In(),this[_0x73fcaf(0x2e6)]=_0x57cddd?_0x359ed3['reqId']:0x0;const _0x1eb629=this[_0x73fcaf(0x447)];try{this[_0x73fcaf(0x2e7)](_0x359ed3,_0x4c63a1);}catch(_0x183c18){this[_0x73fcaf(0x1a3)][_0x73fcaf(0x1d8)](_0x183c18);}const _0x5dcd90=this[_0x73fcaf(0x514)]();if(_0x373892){const _0x2674fe=gi(this[_0x73fcaf(0x299)],_0x1eb629,this[_0x73fcaf(0x3ef)],_0x359ed3,_0x4c63a1,_0x5dcd90);return _0x2674fe instanceof ce?_0x2674fe[_0x73fcaf(0x4e5)]():(_0x2674fe instanceof le||_0x2674fe instanceof fe)&&_0x2674fe[_0x73fcaf(0x44b)](),_0x2674fe;}return this[_0x73fcaf(0x299)][_0x73fcaf(0x196)](Se,_0x1eb629,this[_0x73fcaf(0x3ef)],_0x359ed3,_0x4c63a1,_0x5dcd90);}[_0xbb724d(0x2e7)](_0x37591f,_0xf50cd8){const _0x3d2a4a=_0xbb724d;var _0x19f135,_0x44e8f7;const _0x38ac61=this[_0x3d2a4a(0x147)][_0x3d2a4a(0x496)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x3d2a4a(0x4be)]()[_0x3d2a4a(0x49b)]);(_0x19f135=_0x38ac61((_0x37591f==null?void 0x0:_0x37591f['mutations'])||[],null))==null||_0x19f135[_0x3d2a4a(0x53b)](_0x436df7=>this[_0x3d2a4a(0x417)][_0x3d2a4a(0x231)](_0x436df7['id'],_0x436df7[_0x3d2a4a(0x1be)])),(_0x44e8f7=_0x38ac61(_0xf50cd8||[],null))==null||_0x44e8f7['forEach'](_0x3aff7c=>this[_0x3d2a4a(0x417)]['executeCommand'](_0x3aff7c['id'],_0x3aff7c['params']));}},exports[_0xbb724d(0xe4)]=Ot([H(0x3,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),H(0x4,a[_0xbb724d(0x271)](exports['LocalCacheService'])),H(0x5,a['Inject'](p[_0xbb724d(0x431)])),H(0x6,a['Inject'](a[_0xbb724d(0x2a7)])),H(0x7,a[_0xbb724d(0x271)](p['RevisionService'])),H(0x8,a[_0xbb724d(0x2cb)]),H(0x9,a[_0xbb724d(0x39a)]),H(0xa,te[_0xbb724d(0x1bf)]),H(0xb,a[_0xbb724d(0x9a)]),H(0xc,a[_0xbb724d(0x18e)](ze))],exports[_0xbb724d(0xe4)]),exports[_0xbb724d(0x394)]=class extends exports['CollaborationEntity']{constructor(_0x35ed3f,_0x3b0e8e,_0x5373b8,_0xa83490,_0x2aa84d,_0x112c83,_0x4ec6ad,_0x151e11,_0x553bac,_0x3a2815,_0x461504,_0x5bcadd,_0x45fdf9,_0x67e9f9,_0x95f772,_0x1a207b,_0x1207be,_0x59b084){const _0xdfe127=_0xbb724d;super(_0x35ed3f,_0x5373b8,_0x3b0e8e,_0xa83490,_0x2aa84d,_0x112c83,_0x4ec6ad,_0x151e11,_0x67e9f9,_0x95f772,_0x1a207b,_0x1207be,_0x59b084),this[_0xdfe127(0x447)]=_0x35ed3f,this[_0xdfe127(0x50f)]=_0x3b0e8e,this[_0xdfe127(0x1dd)]=_0x553bac,this[_0xdfe127(0x222)]=_0x3a2815,this[_0xdfe127(0xf9)]=_0x461504,this[_0xdfe127(0x165)]=_0x5bcadd,this[_0xdfe127(0x9b)]=_0x45fdf9;}['_createHandler'](){const _0x4e64cb=_0xbb724d,_0x4a36b1=super[_0x4e64cb(0x514)]();return _0x4a36b1[_0x4e64cb(0x47e)]=_0x22f154=>this[_0x4e64cb(0x222)][_0x4e64cb(0x477)](_0x22f154),_0x4a36b1[_0x4e64cb(0x347)]=_0x22180f=>this[_0x4e64cb(0xf9)][_0x4e64cb(0x183)](_0x22180f),_0x4a36b1[_0x4e64cb(0x2eb)]=_0x5be09b=>this[_0x4e64cb(0x165)]['transformSelections'](_0x5be09b),_0x4a36b1[_0x4e64cb(0x1de)]=_0x5d4a8d=>this[_0x4e64cb(0x9b)][_0x4e64cb(0x313)](_0x5d4a8d),_0x4a36b1['onTransformRemoteChangesetByIMECache']=_0x3f0ecb=>this[_0x4e64cb(0x222)][_0x4e64cb(0x397)](_0x3f0ecb),_0x4a36b1[_0x4e64cb(0x462)]=_0x1be671=>this[_0x4e64cb(0xf9)][_0x4e64cb(0x397)](_0x1be671),_0x4a36b1;}async[_0xbb724d(0x3ab)](){const _0x5683f4=_0xbb724d,_0x153e98=await super[_0x5683f4(0x3ab)]();return this[_0x5683f4(0x2ad)](this[_0x5683f4(0x1dd)][_0x5683f4(0xc8)][_0x5683f4(0x52f)](A['takeUntil'](this['dispose$']))[_0x5683f4(0x2ae)](_0x2eb2c7=>{const _0x1ba990=_0x5683f4;if(_0x2eb2c7==null)return;const {unitId:_0x24ca5e,redoState:_0x1b0c17,commandId:_0x5e40c4}=_0x2eb2c7;if(_0x24ca5e!==this['unitID'])return;const _0x15e225={'id':_0x5e40c4,'type':a['CommandType'][_0x1ba990(0x1f2)],'params':{'unitId':_0x24ca5e,'actions':_0x1b0c17[_0x1ba990(0x1d5)],'textRanges':null}};this[_0x1ba990(0x1d7)](_0x15e225);})),this[_0x5683f4(0x2ad)](this[_0x5683f4(0x417)][_0x5683f4(0x31b)]((_0x33561c,_0x525bbb)=>{const _0x5a55be=_0x5683f4;if(_0x33561c['type']!==a[_0x5a55be(0x20d)][_0x5a55be(0x1f2)]||_0x525bbb!=null&&_0x525bbb[_0x5a55be(0x360)]||_0x525bbb!=null&&_0x525bbb[_0x5a55be(0x43b)]||_0x33561c['id']===Ie[_0x5a55be(0x250)]['id'])return;const _0x28331a=_0x33561c[_0x5a55be(0x1be)];if((_0x28331a==null?void 0x0:_0x28331a['unitId'])!==this[_0x5a55be(0x447)])return;const _0x50d1f7=_0x33561c,_0x38e3e5=this['_compressMutationService']['interceptor'][_0x5a55be(0x108)](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x50d1f7],null)||[_0x50d1f7];this[_0x5a55be(0x1d7)](_0x38e3e5[0x0]);})),_0x153e98;}},exports[_0xbb724d(0x394)]=Ot([H(0x3,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),H(0x4,a[_0xbb724d(0x271)](exports['LocalCacheService'])),H(0x5,a[_0xbb724d(0x271)](p[_0xbb724d(0x431)])),H(0x6,a[_0xbb724d(0x271)](a['LocaleService'])),H(0x7,a[_0xbb724d(0x271)](p[_0xbb724d(0x46f)])),H(0x8,a[_0xbb724d(0x271)](J['DocStateChangeManagerService'])),H(0x9,a['Inject'](Be)),H(0xa,a[_0xbb724d(0x271)](We)),H(0xb,a['Inject'](Fe)),H(0xc,a[_0xbb724d(0x271)](yt)),H(0xd,a[_0xbb724d(0x2cb)]),H(0xe,a['ICommandService']),H(0xf,te[_0xbb724d(0x1bf)]),H(0x10,a[_0xbb724d(0x9a)]),H(0x11,a[_0xbb724d(0x18e)](ze))],exports[_0xbb724d(0x394)]),exports[_0xbb724d(0x148)]=class extends exports['CollaborationEntity']{constructor(_0x574435,_0x47118e,_0x4eb4cd,_0x8f2dab,_0x2ee6f7,_0x559166,_0x549db2,_0x3fa4fe,_0x34841e,_0x2d561e,_0x34d431,_0x416d32,_0x31de8b,_0x49f873){const _0x768c9e=_0xbb724d;super(_0x574435,_0x4eb4cd,_0x47118e,_0x8f2dab,_0x2ee6f7,_0x559166,_0x549db2,_0x3fa4fe,_0x2d561e,_0x34d431,_0x416d32,_0x31de8b,_0x49f873),this[_0x768c9e(0x447)]=_0x574435,this['type']=_0x47118e,this['_sheetTransformSelectionsService']=_0x34841e;}['_createHandler'](){const _0x1240d4=_0xbb724d,_0x5806ff=super['_createHandler']();return _0x5806ff[_0x1240d4(0x2eb)]=_0x135aea=>this['_sheetTransformSelectionsService'][_0x1240d4(0x1e7)](_0x135aea),_0x5806ff;}async[_0xbb724d(0x3ab)](){const _0x2e0b2f=_0xbb724d,_0x387274=await super[_0x2e0b2f(0x3ab)]();return this[_0x2e0b2f(0x2ad)](this[_0x2e0b2f(0x417)]['onCommandExecuted']((_0x3c04e2,_0x335cf3)=>{const _0x14a815=_0x2e0b2f;if(_0x3c04e2[_0x14a815(0x50f)]!==a['CommandType'][_0x14a815(0x1f2)]||_0x335cf3!=null&&_0x335cf3['fromCollab']||_0x335cf3!=null&&_0x335cf3[_0x14a815(0x43b)])return;const _0x1233e3=_0x3c04e2[_0x14a815(0x1be)];if((_0x1233e3==null?void 0x0:_0x1233e3['unitId'])!==this[_0x14a815(0x447)])return;const _0x532349=_0x3c04e2,_0x54cf5d=this['_compressMutationService'][_0x14a815(0x496)]['fetchThroughInterceptors'](this[_0x14a815(0x147)][_0x14a815(0x496)][_0x14a815(0x4be)]()[_0x14a815(0x42f)])([_0x532349],null)||[_0x532349];this[_0x14a815(0x1d7)](_0x54cf5d[0x0]);})),_0x387274;}},exports[_0xbb724d(0x148)]=Ot([H(0x3,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),H(0x4,a['Inject'](exports['LocalCacheService'])),H(0x5,a['Inject'](p[_0xbb724d(0x431)])),H(0x6,a[_0xbb724d(0x271)](a[_0xbb724d(0x2a7)])),H(0x7,a[_0xbb724d(0x271)](p['RevisionService'])),H(0x8,a[_0xbb724d(0x271)](ke)),H(0x9,a[_0xbb724d(0x2cb)]),H(0xa,a[_0xbb724d(0x39a)]),H(0xb,te['IMessageService']),H(0xc,a[_0xbb724d(0x9a)]),H(0xd,a[_0xbb724d(0x18e)](ze))],exports[_0xbb724d(0x148)]);var Yn=Object[_0xbb724d(0x164)],Kn=Object[_0xbb724d(0x13d)],qn=(_0x1720b7,_0x5ea5c4,_0x178809,_0x5ae497)=>{for(var _0x216b95=_0x5ae497>0x1?void 0x0:_0x5ae497?Kn(_0x5ea5c4,_0x178809):_0x5ea5c4,_0x22f77b=_0x1720b7['length']-0x1,_0x2ad41a;_0x22f77b>=0x0;_0x22f77b--)(_0x2ad41a=_0x1720b7[_0x22f77b])&&(_0x216b95=(_0x5ae497?_0x2ad41a(_0x5ea5c4,_0x178809,_0x216b95):_0x2ad41a(_0x216b95))||_0x216b95);return _0x5ae497&&_0x216b95&&Yn(_0x5ea5c4,_0x178809,_0x216b95),_0x216b95;},it=(_0x12d7b0,_0xaf1ce3)=>(_0x229aa2,_0x59ca19)=>_0xaf1ce3(_0x229aa2,_0x59ca19,_0x12d7b0);exports[_0xbb724d(0x8d)]=class extends a[_0xbb724d(0x2fb)]{constructor(_0x361c7c,_0x4e7f0e,_0x39cdf7){const _0x3137c3=_0xbb724d;super(),I(this,_0x3137c3(0x207),new Map()),I(this,_0x3137c3(0x1df),new A[(_0x3137c3(0x538))]()),(this['_injector']=_0x361c7c,this[_0x3137c3(0x16b)]=_0x4e7f0e,this['_univerInstanceService']=_0x39cdf7,this[_0x3137c3(0x3ab)]());}['dispose'](){const _0x1a73ed=_0xbb724d;super[_0x1a73ed(0x16a)](),this['_entities'][_0x1a73ed(0x53b)](_0x2bcb39=>_0x2bcb39[_0x1a73ed(0x16a)]()),this[_0x1a73ed(0x207)][_0x1a73ed(0x4e1)]();}[_0xbb724d(0x47c)](_0x176c2a){var _0x17582c;return(_0x17582c=this['_entities']['get'](_0x176c2a))!=null?_0x17582c:null;}[_0xbb724d(0x316)](_0x37004d){const _0xbfe2ef=_0xbb724d,_0x12de0b=this['getCollabEntity'](_0x37004d);return _0x12de0b?A['of'](_0x12de0b):this['_entityInit$'][_0xbfe2ef(0x52f)](V[_0xbfe2ef(0x21e)](_0x2eb35d=>_0x2eb35d[_0xbfe2ef(0x447)]===_0x37004d));}['_init'](){const _0x56e430=_0xbb724d;this[_0x56e430(0x20b)][_0x56e430(0x37e)](a[_0x56e430(0xd5)][_0x56e430(0x1ac)])['pipe'](A[_0x56e430(0x262)](this[_0x56e430(0x279)]),V['delay'](0x10))[_0x56e430(0x2ae)](async _0x9febb6=>{const _0x17507c=_0x56e430,_0x56101e=_0x9febb6[_0x17507c(0x285)](),_0x578a36=await this[_0x17507c(0x2db)](_0x56101e,ne[_0x17507c(0x1ac)]);this[_0x17507c(0x207)][_0x17507c(0x117)](_0x56101e,_0x578a36);}),this['_univerInstanceService'][_0x56e430(0x37e)](a['UniverInstanceType'][_0x56e430(0x44c)])[_0x56e430(0x52f)](A['takeUntil'](this[_0x56e430(0x279)]),V[_0x56e430(0x39b)](0x10))[_0x56e430(0x52f)](V[_0x56e430(0x21e)](_0x341fa2=>!_0x341fa2[_0x56e430(0x285)]()[_0x56e430(0x425)]('__')))[_0x56e430(0x2ae)](async _0x40dcb0=>{const _0x4f81f9=_0x56e430,_0x4eb2e7=_0x40dcb0['getUnitId'](),_0xeffe40=await this[_0x4f81f9(0x2db)](_0x4eb2e7,ne[_0x4f81f9(0x44c)]);this['_entities'][_0x4f81f9(0x117)](_0x4eb2e7,_0xeffe40);}),A[_0x56e430(0xa9)](this['_univerInstanceService'][_0x56e430(0x209)](a[_0x56e430(0xd5)][_0x56e430(0x1ac)]),this['_univerInstanceService'][_0x56e430(0x209)](a[_0x56e430(0xd5)]['UNIVER_DOC']))[_0x56e430(0x52f)](A[_0x56e430(0x262)](this[_0x56e430(0x279)]))[_0x56e430(0x2ae)](_0x422ef3=>{const _0x2f59d4=_0x56e430,_0x1d813d=_0x422ef3[_0x2f59d4(0x285)](),_0x206251=this[_0x2f59d4(0x207)][_0x2f59d4(0x2c9)](_0x1d813d);_0x206251&&(_0x206251[_0x2f59d4(0x16a)](),this[_0x2f59d4(0x207)][_0x2f59d4(0x1e6)](_0x1d813d));});}async[_0xbb724d(0x2db)](_0x571679,_0x462232){const _0x172f0c=_0xbb724d,_0x23a414=await this[_0x172f0c(0x16b)][_0x172f0c(0x1ab)](_0x571679),_0x18d239=this[_0x172f0c(0x299)]['createInstance'](this[_0x172f0c(0x328)](_0x462232),_0x571679,_0x462232,_0x23a414);return await _0x18d239[_0x172f0c(0x212)](),this[_0x172f0c(0x1df)][_0x172f0c(0x32a)](_0x18d239),_0x18d239;}['_getCtorByUniverType'](_0x48bdd4){switch(_0x48bdd4){case ne['UNIVER_DOC']:return exports['DocCollaborationEntity'];case ne['UNIVER_SHEET']:return exports['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x48bdd4);}}},exports[_0xbb724d(0x8d)]=qn([it(0x0,a['Inject'](a[_0xbb724d(0x2d2)])),it(0x1,a[_0xbb724d(0x271)](exports[_0xbb724d(0x2ec)])),it(0x2,a[_0xbb724d(0x4c0)])],exports[_0xbb724d(0x8d)]);var zn=Object['defineProperty'],Xn=Object[_0xbb724d(0x13d)],Jn=(_0x4d2412,_0x297b79,_0xff9750,_0x2356f9)=>{const _0x28177c=_0xbb724d;for(var _0x49eac=_0x2356f9>0x1?void 0x0:_0x2356f9?Xn(_0x297b79,_0xff9750):_0x297b79,_0x1d54d7=_0x4d2412[_0x28177c(0x2d9)]-0x1,_0x995c8f;_0x1d54d7>=0x0;_0x1d54d7--)(_0x995c8f=_0x4d2412[_0x1d54d7])&&(_0x49eac=(_0x2356f9?_0x995c8f(_0x297b79,_0xff9750,_0x49eac):_0x995c8f(_0x49eac))||_0x49eac);return _0x2356f9&&_0x49eac&&zn(_0x297b79,_0xff9750,_0x49eac),_0x49eac;},Bt=(_0x3e0eaf,_0xbf2948)=>(_0x2b35d5,_0x370280)=>_0xbf2948(_0x2b35d5,_0x370280,_0x3e0eaf);let Ve=class extends a[_0xbb724d(0x2fb)]{constructor(_0x4b8941,_0x186a0b){const _0x15d991=_0xbb724d;super(),this['_docClipboardService']=_0x4b8941,this[_0x15d991(0x4bb)]=_0x186a0b,this[_0x15d991(0x3ab)]();}[_0xbb724d(0x3ab)](){const _0x34c6b7=_0xbb724d,_0x382617=this;this['disposeWithMe'](this['_docClipboardService'][_0x34c6b7(0x160)]({'onBeforePasteImage':async _0x496c9a=>{const _0x4796db=_0x34c6b7,_0x16c469=await _0x382617[_0x4796db(0x4bb)]['saveImage'](_0x496c9a);return _0x16c469?{'source':_0x16c469['source'],'imageSourceType':_0x16c469[_0x4796db(0x1e3)]}:null;}}));}};Ve=Jn([Bt(0x0,J['IDocClipboardService']),Bt(0x1,ie[_0xbb724d(0x3e4)])],Ve);const kt=[_0xbb724d(0x11b),_0xbb724d(0x40c),_0xbb724d(0xaf),_0xbb724d(0x337),_0xbb724d(0x150),_0xbb724d(0x409)];class Dt extends a[_0xbb724d(0x4cb)]{constructor(){const _0x4984da=_0xbb724d;super(...arguments),I(this,'_assignedColors',new Map()),I(this,_0x4984da(0x45c),0x0);}['assignAColorForMemberID'](_0x34737d){const _0x3b68a6=_0xbb724d;if(this[_0x3b68a6(0x129)][_0x3b68a6(0x4cd)](_0x34737d))return this['_assignedColors'][_0x3b68a6(0x2c9)](_0x34737d);const _0x405b3e=kt[this[_0x3b68a6(0x45c)]];return this[_0x3b68a6(0x45c)]=(this[_0x3b68a6(0x45c)]+0x1)%kt[_0x3b68a6(0x2d9)],this[_0x3b68a6(0x129)][_0x3b68a6(0x117)](_0x34737d,_0x405b3e),_0x405b3e;}}var Zn=Object[_0xbb724d(0x164)],Qn=Object['getOwnPropertyDescriptor'],es=(_0x2d1f43,_0x392e61,_0x2a7012,_0x4341f5)=>{const _0x4f6041=_0xbb724d;for(var _0x365272=_0x4341f5>0x1?void 0x0:_0x4341f5?Qn(_0x392e61,_0x2a7012):_0x392e61,_0xdd5cfc=_0x2d1f43[_0x4f6041(0x2d9)]-0x1,_0x37d00d;_0xdd5cfc>=0x0;_0xdd5cfc--)(_0x37d00d=_0x2d1f43[_0xdd5cfc])&&(_0x365272=(_0x4341f5?_0x37d00d(_0x392e61,_0x2a7012,_0x365272):_0x37d00d(_0x365272))||_0x365272);return _0x4341f5&&_0x365272&&Zn(_0x392e61,_0x2a7012,_0x365272),_0x365272;},me=(_0x2c9d63,_0x24b73d)=>(_0x50f809,_0x157df4)=>_0x24b73d(_0x50f809,_0x157df4,_0x2c9d63);const ts=0x12c,is=0x64;let pt=class extends a[_0xbb724d(0x2fb)]{constructor(_0x2903e7,_0x44445b,_0x23a428,_0x40aba5,_0x5e42f7,_0x2f62ba,_0x587c29,_0xd9c239,_0x133854){const _0x2a7c7a=_0xbb724d;super(),I(this,_0x2a7c7a(0x442),!0x1),I(this,_0x2a7c7a(0x3ab),!0x1),I(this,_0x2a7c7a(0x217),new A[(_0x2a7c7a(0x11e))](new Map())),I(this,_0x2a7c7a(0x2da),this[_0x2a7c7a(0x217)][_0x2a7c7a(0x14b)]()),I(this,_0x2a7c7a(0x2e5),new A[(_0x2a7c7a(0x11e))]([])),I(this,'roomMembers$',this[_0x2a7c7a(0x2e5)][_0x2a7c7a(0x52f)](A[_0x2a7c7a(0x2e8)](ts))),I(this,_0x2a7c7a(0x201),a[_0x2a7c7a(0x507)](_0x31e198=>{const _0x5bb0e1=_0x2a7c7a,_0x56bda7={'eventID':p[_0x5bb0e1(0x29f)][_0x5bb0e1(0x34f)],'data':{'unitID':this['unitID'],'memberID':this[_0x5bb0e1(0x286)][_0x5bb0e1(0x2bf)](),'selection':Si(_0x31e198)}};this[_0x5bb0e1(0x286)][_0x5bb0e1(0x370)](_0x56bda7,this[_0x5bb0e1(0x447)]);},is)),(this[_0x2a7c7a(0x447)]=_0x2903e7,this['_session']=_0x44445b,this['_injector']=_0x23a428,this['_colorAssignService']=_0x40aba5,this[_0x2a7c7a(0x338)]=_0x5e42f7,this[_0x2a7c7a(0x2e1)]=_0x2f62ba,this['_transformService']=_0x587c29,this['_univerInstanceService']=_0xd9c239,this['_commandService']=_0x133854);}get[_0xbb724d(0x2d4)](){return this['_cursorInfo$']['getValue']();}get[_0xbb724d(0x52a)](){const _0x5c9faa=_0xbb724d;return this[_0x5c9faa(0x2e5)][_0x5c9faa(0x333)]();}[_0xbb724d(0x16a)](){const _0x4532fa=_0xbb724d;super[_0x4532fa(0x16a)](),this['_cursorInfo$'][_0x4532fa(0x32a)](new Map()),this[_0x4532fa(0x217)][_0x4532fa(0x22b)](),this['_roomMembers$'][_0x4532fa(0x32a)]([]),this[_0x4532fa(0x2e5)]['complete']();}[_0xbb724d(0x212)](){const _0x1ced9c=_0xbb724d;this['_init']||(this['_init']=!0x0,this['_session'][_0x1ced9c(0xc6)][_0x1ced9c(0x52f)](A['takeUntil'](this[_0x1ced9c(0x279)]))[_0x1ced9c(0x2ae)](_0x2d239c=>{const _0x588cfc=_0x1ced9c;_0x2d239c===se[_0x588cfc(0x498)]?this[_0x588cfc(0xbe)]():this['_toggleOffline']();}),this[_0x1ced9c(0x286)]['event$'][_0x1ced9c(0x52f)](A['takeUntil'](this[_0x1ced9c(0x279)]))['subscribe'](_0x2394fb=>{const _0x2e712d=_0x1ced9c,_0x1139a2=_0x2394fb[_0x2e712d(0x470)];_0x1139a2===p[_0x2e712d(0x29f)][_0x2e712d(0x34f)]&&this[_0x2e712d(0xfe)](_0x2394fb),_0x1139a2===p[_0x2e712d(0x29f)][_0x2e712d(0x22e)]&&this[_0x2e712d(0x2a8)](_0x2394fb);}),this[_0x1ced9c(0x2ad)](this[_0x1ced9c(0x417)]['onCommandExecuted'](_0x5db42d=>{const _0x458432=_0x1ced9c,_0x10b3fc=_0x5db42d['params'];_0x10b3fc!=null&&this[_0x458432(0x442)]&&_0x5db42d['id']===Ie[_0x458432(0x198)]['id']&&_0x10b3fc[_0x458432(0x4a0)]===this[_0x458432(0x447)]&&_0x10b3fc['isEditing']===!0x1&&_0x10b3fc['ranges'][_0x458432(0x2d9)]>0x0&&this[_0x458432(0x201)](_0x10b3fc[_0x458432(0x332)]);})),this['_syncEditingCollabCursorService'][_0x1ced9c(0x151)][_0x1ced9c(0x52f)](A[_0x1ced9c(0x262)](this[_0x1ced9c(0x279)]))[_0x1ced9c(0x2ae)](_0x2f7aee=>{const _0x199e83=_0x1ced9c;if((_0x2f7aee==null?void 0x0:_0x2f7aee['unitID'])!==this['unitID'])return;const _0x4f8917={'eventID':p[_0x199e83(0x29f)][_0x199e83(0x34f)],'data':_0x2f7aee};this[_0x199e83(0xfe)](_0x4f8917);}),this['disposeWithMe'](this[_0x1ced9c(0x417)][_0x1ced9c(0x31b)](_0x5f2438=>{const _0x2fb5c8=_0x1ced9c;if(_0x5f2438['params']==null)return;const _0xb11af7=_0x5f2438[_0x2fb5c8(0x1be)];if(_0x5f2438['id']!==Ie[_0x2fb5c8(0x250)]['id']||_0xb11af7[_0x2fb5c8(0x4a0)]!==this[_0x2fb5c8(0x447)])return;const _0x21b258={'id':'doc.mutation.rich-text-editing','params':_0xb11af7},_0x56df50=this[_0x2fb5c8(0x2d4)];for(const [_0x458596,_0x52cd5f]of _0x56df50){const _0x3f343d={'id':_0x2fb5c8(0xc4),'params':{'unitId':this[_0x2fb5c8(0x447)],'actions':null,'textRanges':_0x52cd5f['ranges']}},_0x575a72=this[_0x2fb5c8(0x522)]['transformMutation'](_0x21b258,_0x3f343d,!0x1);if(p[_0x2fb5c8(0x32e)](_0x575a72))throw _0x575a72[_0x2fb5c8(0x1d8)];_0x56df50['set'](_0x458596,{..._0x52cd5f,'ranges':_0x575a72['m2Prime']['params'][_0x2fb5c8(0x2b4)]});}queueMicrotask(()=>{const _0x27a002=_0x2fb5c8;this[_0x27a002(0x217)][_0x27a002(0x32a)](_0x56df50);});})));}['_onCursorUpdate'](_0x441a89){const _0x52507b=_0xbb724d;var _0x281c8a,_0x252854;const {memberID:_0x475bae,selection:_0x3e2167}=_0x441a89['data'],_0x549994=Ln(_0x3e2167),_0x246e2c=(_0x252854=(_0x281c8a=this[_0x52507b(0x338)][_0x52507b(0x18b)](this[_0x52507b(0x447)],_0x475bae))==null?void 0x0:_0x281c8a[_0x52507b(0x4cc)])!=null?_0x252854:'Unknown\x20user',_0x388480={'color':this[_0x52507b(0x398)]['assignAColorForMemberID'](_0x475bae),'name':_0x246e2c,'ranges':_0x549994},_0x3d7b19=this[_0x52507b(0x2d4)];_0x3d7b19[_0x52507b(0x117)](_0x475bae,_0x388480),this[_0x52507b(0x217)][_0x52507b(0x32a)](_0x3d7b19);}[_0xbb724d(0x2a8)](_0x4a75a5){const _0x36ddcc=_0xbb724d,{memberID:_0x143348}=_0x4a75a5['data'],_0x4c7f26=this['cursorInfo'];_0x4c7f26[_0x36ddcc(0x1e6)](_0x143348),this[_0x36ddcc(0x217)][_0x36ddcc(0x32a)](_0x4c7f26);}['_toggleOnline'](){const _0x2a3b80=_0xbb724d;var _0x4919a9;if(this[_0x2a3b80(0x442)]=!0x0,((_0x4919a9=this[_0x2a3b80(0x20b)]['getFocusedUnit']())==null?void 0x0:_0x4919a9[_0x2a3b80(0x285)]())!==this[_0x2a3b80(0x447)])return;const _0x102509=this['_injector'][_0x2a3b80(0x2c9)](Ie[_0x2a3b80(0x266)])[_0x2a3b80(0x29c)]();Array['isArray'](_0x102509)&&_0x102509[_0x2a3b80(0x2d9)]>0x0&&this[_0x2a3b80(0x201)](_0x102509);}[_0xbb724d(0x3b9)](){const _0x5564be=_0xbb724d;this[_0x5564be(0x442)]=!0x1;}};pt=es([me(0x2,a['Inject'](a[_0xbb724d(0x2d2)])),me(0x3,a[_0xbb724d(0x271)](Dt)),me(0x4,a[_0xbb724d(0x271)](exports[_0xbb724d(0x420)])),me(0x5,a[_0xbb724d(0x271)](yt)),me(0x6,p[_0xbb724d(0x525)]),me(0x7,a[_0xbb724d(0x4c0)]),me(0x8,a[_0xbb724d(0x39a)])],pt);var ns=Object['defineProperty'],ss=Object[_0xbb724d(0x13d)],rs=(_0x345c39,_0x5731b7,_0x29059b,_0xffda6c)=>{const _0x503be7=_0xbb724d;for(var _0x521bcf=_0xffda6c>0x1?void 0x0:_0xffda6c?ss(_0x5731b7,_0x29059b):_0x5731b7,_0x4c7c72=_0x345c39[_0x503be7(0x2d9)]-0x1,_0x31118e;_0x4c7c72>=0x0;_0x4c7c72--)(_0x31118e=_0x345c39[_0x4c7c72])&&(_0x521bcf=(_0xffda6c?_0x31118e(_0x5731b7,_0x29059b,_0x521bcf):_0x31118e(_0x521bcf))||_0x521bcf);return _0xffda6c&&_0x521bcf&&ns(_0x5731b7,_0x29059b,_0x521bcf),_0x521bcf;},Te=(_0x23f62d,_0x596246)=>(_0x4b3e73,_0x4a7db4)=>_0x596246(_0x4b3e73,_0x4a7db4,_0x23f62d);const os=0x12c,as=0x64,cs=()=>{let _0x2461d4=[],_0x5492ea=!0x1;return _0x2c12b6=>{_0x2461d4['push'](_0x2c12b6),_0x5492ea||(_0x5492ea=!0x0,setTimeout(()=>{_0x2461d4['forEach'](_0xfafc30=>_0xfafc30()),_0x2461d4=[],_0x5492ea=!0x1;}));};};let mt=class extends a[_0xbb724d(0x2fb)]{constructor(_0x5b6053,_0x2f1a8d,_0x2069dd,_0x874fe5,_0x51457d,_0x451181,_0x30038b,_0x4693de){const _0x11a058=_0xbb724d;super(),I(this,_0x11a058(0x442),!0x1),I(this,'_init',!0x1),I(this,_0x11a058(0x217),new A[(_0x11a058(0x11e))](new Map())),I(this,'cursorInfo$',this['_cursorInfo$'][_0x11a058(0x14b)]()),I(this,_0x11a058(0x2e5),new A[(_0x11a058(0x11e))]([])),I(this,'roomMembers$',this['_roomMembers$'][_0x11a058(0x52f)](A[_0x11a058(0x2e8)](os))),I(this,_0x11a058(0x201),a[_0x11a058(0x507)]((_0x395d0a,_0x423e16)=>{const _0x3df137=_0x11a058,_0x1f5c74={'eventID':p[_0x3df137(0x29f)][_0x3df137(0x34f)],'data':{'unitID':this[_0x3df137(0x447)],'memberID':this['_session'][_0x3df137(0x2bf)](),'selection':Mt[_0x3df137(0x4e3)](_0x395d0a,_0x423e16[_0x3df137(0x2f0)])}};this[_0x3df137(0x286)]['send'](_0x1f5c74,this[_0x3df137(0x447)]);},as)),(this[_0x11a058(0x447)]=_0x5b6053,this[_0x11a058(0x286)]=_0x2f1a8d,this[_0x11a058(0x299)]=_0x2069dd,this['_colorAssignService']=_0x874fe5,this[_0x11a058(0x338)]=_0x51457d,this['_univerInstanceService']=_0x451181,this[_0x11a058(0x417)]=_0x30038b,this[_0x11a058(0x1c4)]=_0x4693de);}get[_0xbb724d(0x2d4)](){const _0x413a7d=_0xbb724d;return this[_0x413a7d(0x217)][_0x413a7d(0x333)]();}get[_0xbb724d(0x52a)](){const _0x5edf09=_0xbb724d;return this['_roomMembers$'][_0x5edf09(0x333)]();}['dispose'](){const _0x2b4327=_0xbb724d;super[_0x2b4327(0x16a)](),this['_cursorInfo$'][_0x2b4327(0x32a)](new Map()),this[_0x2b4327(0x217)]['complete'](),this['_roomMembers$'][_0x2b4327(0x32a)]([]),this[_0x2b4327(0x2e5)]['complete']();}['init'](){const _0x3e0222=_0xbb724d;this[_0x3e0222(0x3ab)]||(this[_0x3e0222(0x3ab)]=!0x0,this[_0x3e0222(0x286)][_0x3e0222(0xc6)]['pipe'](A['takeUntil'](this[_0x3e0222(0x279)]))[_0x3e0222(0x2ae)](_0x54bda3=>{const _0x100852=_0x3e0222;_0x54bda3===se['ONLINE']?this[_0x100852(0xbe)]():this['_toggleOffline']();}),this[_0x3e0222(0x286)][_0x3e0222(0x3a7)][_0x3e0222(0x52f)](A['takeUntil'](this[_0x3e0222(0x279)]))['subscribe'](_0x506ffe=>{const _0x4d9728=_0x3e0222,_0x1596da=_0x506ffe[_0x4d9728(0x470)];_0x1596da===p['CollaborationEvent'][_0x4d9728(0x34f)]&&this[_0x4d9728(0xfe)](_0x506ffe),_0x1596da===p['CollaborationEvent'][_0x4d9728(0x22e)]&&this[_0x4d9728(0x2a8)](_0x506ffe);}),this['_onRefRangeChange'](),this[_0x3e0222(0x2ad)](this[_0x3e0222(0x417)]['onCommandExecuted'](_0x1b6d08=>{const _0x4f15e6=_0x3e0222;if(this['_online']&&_0x1b6d08['id']===k[_0x4f15e6(0x2a2)]['id']&&_0x1b6d08[_0x4f15e6(0x1be)][_0x4f15e6(0x4a0)]===this[_0x4f15e6(0x447)]){const _0x5177fb=_0x1b6d08[_0x4f15e6(0x1be)];this['_updateLocalCursor'](_0x5177fb[_0x4f15e6(0x375)],_0x5177fb[_0x4f15e6(0x3df)][0x0]);}})));}[_0xbb724d(0xfe)](_0x494033){const _0x508c4a=_0xbb724d;var _0x355fc7,_0x52510e;const {memberID:_0xeacfd9,selection:_0x264e71}=_0x494033['data'],{sheetName:_0x27d7f2,range:_0x3f088f}=Mt['deserializeRangeWithSheet'](_0x264e71),_0x3640f5={'name':(_0x52510e=(_0x355fc7=this['_memberService'][_0x508c4a(0x18b)](this[_0x508c4a(0x447)],_0xeacfd9))==null?void 0x0:_0x355fc7[_0x508c4a(0x4cc)])!=null?_0x52510e:_0x508c4a(0x4ac),'range':this[_0x508c4a(0x3cb)](_0x27d7f2,_0x3f088f),'sheetID':_0x27d7f2,'color':this[_0x508c4a(0x398)][_0x508c4a(0x43c)](_0xeacfd9),'selection':_0x264e71},_0x5abbfd=this['cursorInfo'];_0x5abbfd['set'](_0xeacfd9,_0x3640f5),this[_0x508c4a(0x217)][_0x508c4a(0x32a)](_0x5abbfd);}['_onCursorDelete'](_0x11a175){const _0x3087fa=_0xbb724d,{memberID:_0x1f390b}=_0x11a175['data'],_0x5f268e=this[_0x3087fa(0x2d4)];_0x5f268e[_0x3087fa(0x1e6)](_0x1f390b),this[_0x3087fa(0x217)][_0x3087fa(0x32a)](_0x5f268e);}[_0xbb724d(0x3cb)](_0xf93335,_0x1b5b01){const _0x4942fa=_0xbb724d;var _0x1ea830,_0x448f88;const _0x423591=(_0x448f88=(_0x1ea830=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x4942fa(0x447)]))==null?void 0x0:_0x1ea830[_0x4942fa(0x502)](_0xf93335))==null?void 0x0:_0x448f88[_0x4942fa(0x1b4)]();return(_0x423591==null?void 0x0:_0x423591[_0x4942fa(0x412)](_0x57ed5f=>a[_0x4942fa(0x348)][_0x4942fa(0x13c)](_0x57ed5f,_0x1b5b01)))||_0x1b5b01;}['_onRefRangeChange'](){const _0x3085da=_0xbb724d,_0x3adc24=new a[(_0x3085da(0x2b5))](),_0xf1d40=cs(),_0x379f7f=()=>{const _0x6e5130=_0x3085da;_0x3adc24[_0x6e5130(0x16a)]();const _0x49b24b=(_0x2545a8,_0x107b58,_0x1595f9,_0x5bfddf)=>{const _0x174905=_0x6e5130;let _0x38b65e=[];switch(_0x2545a8['id']){case k['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x38b65e=k[_0x174905(0xdd)](_0x2545a8,_0x5bfddf);break;}case k[_0x174905(0x38a)][_0x174905(0x126)]:{_0x38b65e=k['handleDeleteRangeMoveUp'](_0x2545a8,_0x5bfddf);break;}case k[_0x174905(0x38a)][_0x174905(0x16e)]:{_0x38b65e=k['handleInsertCol'](_0x2545a8,_0x5bfddf);break;}case k['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x38b65e=k['handleInsertRangeMoveDown'](_0x2545a8,_0x5bfddf);break;}case k[_0x174905(0x38a)]['InsertRangeMoveRightCommandId']:{_0x38b65e=k['handleInsertRangeMoveRight'](_0x2545a8,_0x5bfddf);break;}case k[_0x174905(0x38a)]['InsertRowCommandId']:{_0x38b65e=k[_0x174905(0x4d2)](_0x2545a8,_0x5bfddf);break;}case k[_0x174905(0x38a)]['MoveRangeCommandId']:{_0x38b65e=k[_0x174905(0x3c5)](_0x2545a8,_0x5bfddf);break;}case k['EffectRefRangId']['RemoveColCommandId']:{_0x38b65e=k['handleIRemoveCol'](_0x2545a8,_0x5bfddf);break;}case k[_0x174905(0x38a)][_0x174905(0x4a5)]:{_0x38b65e=k[_0x174905(0x193)](_0x2545a8,_0x5bfddf);break;}}const _0x2c56f6=k[_0x174905(0x16d)](_0x38b65e,_0x5bfddf),_0x2580eb=this['cursorInfo'][_0x174905(0x2c9)](_0x107b58);if(_0x2580eb&&_0x2c56f6){const _0x1bfeb9={..._0x2580eb,'range':_0x2c56f6};this[_0x174905(0x2d4)][_0x174905(0x117)](_0x107b58,_0x1bfeb9),_0xf1d40(()=>{const _0x56ba82=_0x174905,_0x3203ef=this[_0x56ba82(0x1c4)]['registerRefRange'](_0x2c56f6,_0x26b9be=>(_0x3203ef['dispose'](),_0x49b24b(_0x26b9be,_0x107b58,_0x1595f9,_0x2c56f6)));_0x3adc24['add'](_0x3203ef);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x6e5130(0x53b)]((_0x32cf07,_0x271cc4)=>{const _0x1127d4=_0x6e5130,{range:_0x565afb,sheetID:_0x1454c3}=_0x32cf07,_0x2f001e=this[_0x1127d4(0x1c4)][_0x1127d4(0x36d)](_0x565afb,_0x5c9bc3=>(_0x2f001e['dispose'](),_0x49b24b(_0x5c9bc3,_0x271cc4,_0x1454c3,_0x565afb)));_0x3adc24['add'](_0x2f001e);});};this[_0x3085da(0x2ad)](a[_0x3085da(0x2b7)](this[_0x3085da(0x217)][_0x3085da(0x2ae)](()=>{_0x379f7f();})));}['_toggleOnline'](){const _0x5687f4=_0xbb724d;var _0x2e819f,_0x4f21e0;if(this[_0x5687f4(0x442)]=!0x0,((_0x2e819f=this[_0x5687f4(0x20b)][_0x5687f4(0x405)]())==null?void 0x0:_0x2e819f[_0x5687f4(0x285)]())!==this[_0x5687f4(0x447)])return;const _0x431702=(_0x4f21e0=this[_0x5687f4(0x299)][_0x5687f4(0x2c9)](k[_0x5687f4(0x516)])[_0x5687f4(0xc1)]())==null?void 0x0:_0x4f21e0[0x0],_0x1b4b48=this[_0x5687f4(0x20b)][_0x5687f4(0x36e)](a[_0x5687f4(0xd5)]['UNIVER_SHEET'])[_0x5687f4(0x42e)]();_0x431702&&_0x1b4b48&&this[_0x5687f4(0x201)](_0x1b4b48[_0x5687f4(0x17a)](),_0x431702);}[_0xbb724d(0x3b9)](){this['_online']=!0x1;}};function _0x2701(){const _0x499e1a=['_redoStacks','HmacSHA1','src','MergeInterceptorFactory','[CollaborationSessionService]','min','/rev/','SHA1','5096212LVuaYe','setWaitCount','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','EffectRefRangId','[UniverCollaborationClientPlugin]','USERS_ENTER','saveImage','disableLocalCache','_transformUndoRedoStack','rev','_mode','_updateCollabCursors','telemetry\x20info\x20is\x20not\x20initialized','DocCollaborationEntity','WebSocketService','EXCHANGE_SIGN_URL_SERVER_URL_KEY','transformRemoteChangeset','_colorAssignService','_resendWithTimeout','ICommandService','delay','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sin','_queuedRemoteChangesets','allowed','useDependency','@univerjs/drawing','_onRemoteACK','onSendChangeset','_scene','exhaustSavingTask','body','event$','synced','getRangePointData','signUrlServerUrl','_init','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','conflict','rgba(255,\x20255,\x20255,\x200.01)','deserializeToCombResponse','getCollabCursors$','_permissionService','UniverIcon','objectType','[PendingState]:\x20received\x20rejection.','UNIVER_UNKNOWN','getRelativeToViewportCoord','APPLY_DUPLICATED','concat','_toggleOffline','IURLService','HEARTBEAT_TIMEOUT','getParam','getOwnPropertySymbols','LOCAL_CACHE_INTERVAL','toString','_clearRedo','_messageService','enableSingleActiveInstanceLock','_joinRoom','permission.content','handleMoveRange','url(#$1','Utf8','_docSkeletonManagerService','/universer-api/snapshot/','NEW_CHANGESETS','_getMergeRange','cmd','getUndoRedoMutationParamsCache','_docSkeleton','_sessionStatus$','_selfUnitIDs','_backgroundColor','_initStatusListener','_initEventListeners','collab-text-range-','blockSize','_substituteUndoStack','children','collabStatus.conflict','abs','JOIN_ROOM_FULL','_registerDependencies','sessionTicket','_sendHeartbeatTimer','registerDependencies','selections','_incrementRevisionNumber','_range','onRemoteRetry','_transformSelections','IImageIoService','_replaceFileID','clearInterval','_telemetryService','_tryReconnect','_getAPIPrefixPath','_keySchedule','_shapes','_loadSheet','WorkbookEditablePermission','resolve','_type','_onJoinRoomEvent','infoRsp','attrs','color','includes','_themeService','shareReplay','startTime','memberID','loadOfflineData','socket$','replace','APPLY_PERMISSION_DENIED','getDeserializedSheetBlock','awaiting','m2Prime','_hover','[CollaborationUndoRedoService]','drawWith','getResourcesRequest','add','getFocusedUnit','authzUrl','loadDoc','jsx','gold400','_clearCollaborationTimeoutTimer','hovered','jiqing500','Hasher','_revisionService','onMissingChangesets','DataLoaderController','state','find','_collaborationController','JOIN','HmacMD5','_getRedoStack','_commandService','lineTo','_onRecvEvent','registerHTTPInterceptor','snapshotServerUrl','setInterval','UNIVER_PROJECT','save\x20fail\x20reason\x20is\x20','react','MemberService','transform','url(#on-line-single_clip0_910_349)','_singleActiveUnitService','DocStateChangeManagerService','startsWith','/new_changes','isTransformMutationsWithChangesetSuccess','_process','_iv','setUndoRedoMutationParamsCache','LICENSE_IMPORT_SIZE_EXCEEDED','_initDependencies','socket\x20close','getActiveSheet','COMPRESS_MUTATION_SEND','origin','CompressMutationService','forwardRef','UPDATE_PERMISSION_OBJ','idSuffix','isActive','objectActions','LIVESHARE_FETCH_OPERATIONS','Rect','SnapshotServerOverHTTPService','storage','onlyLocal','assignAColorForMemberID','_HTTPService','CONFLICT','current','_ensureSubject','SUBMIT_CHANGESET','_online','_resendTimer','_render','NO_OTHER_CLIENTS_EDITING','closeSession','unitID','_handleLeaveEvent','column','defaultProps','resend','UNIVER_DOC','encryptBlock','_scheduleTimestamp','stringify','_startTelemetryCollaborationNewChangeset','[CollaborationEntity]','values','off-line-single_clip0_910_343','_snapshotServerService','fetch_missing','reject','/unit/','getRandomValues','_checkMissing','RegularPolygon','_handleHover','_colorIndex','@univerjs/ui','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','_clearOtherTimers','_getUndoStack','/universer-api/user/session-ticket','onTransformRemoteChangesetByStateCache','_anchorDot','/object/','revision','UserManagerService','for','saveOfflineData','_remoteChangesetQueue','0\x200\x2017\x2016','_awaitingChangeset','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','text','UNIVER_SLIDE','RevisionService','eventID','setActiveRange','UNIVER_COLLABORATION_CLIENT_PLUGIN','replaceDocRanges','_substituteRedoStack','online','SEND_CHANGESET_TIMEOUT_KEY','transformIMECache','MD5','_lockTransition','onMouseMove','_throwTelemetryCollaborationNewChangeset','getCollabEntity','currentSkeleton$','onTransformIME','mixIn','x-univer-host','_initCommandExecutedListener','getSheetObject','IDLE','salt','setConfig','SheetPermissionInitController','RETRY_CONNECTING_MAX_COUNT','_undoRedoService','EmptyMutation','YUUMI_UNABLE_LOAD_URL','#FFF','trim','_decreaseWaiting','Latin1','pluginName','_localStorageService','_hovered','_sendHeartbeat','createSocket','BASE64','pushState','interceptor','getVpScrollXYInfoByPosToVp','ONLINE','_commentService','startColumn','COMPRESS_MUTATION_APPLY','_resendTimeout','44691xMgUBM','offline','NodePositionConvertToRectRange','unitId','clearTimeout','urlChange$','createIdentifier','toLowerCase','RemoveRowCommandId','size','_doProcessBlock','CollaborationSocketService','compose','1842rjLdPv','onRemoteRej','Unknown\x20user','LocalUndoRedoService','&to=','UnitEmbedded','_rescheduleHeartbeat','findNodePositionByCharIndex','transformMutation','default','permission.title','/resources','iterations','_getUploadFileURL','override','Univer','_localCacheService','_imageIoService','ceil','processBlock','getInterceptPoints','univer-pro.collaboration-client.single-active-unit-service','IUniverInstanceService','msCrypto','_clearUndo','_candidateSocket','_handleHeartbeatEvent','react.fragment','AWAITING_WITH_PENDING','_loadDoc','univer-offline','SheetSkeletonManagerService','OnLineSingle','Disposable','name','has','[OfflineState]:\x20received\x20rejection.','CHANGESET_ACK','People','?url=','handleInsertRow','measureText','fromEvent','getItem','_updateLocalCache','_event$','title','ITelemetryService','HMAC','_handler','/block/','collabStatus.notCollab','take','ivSize','OpenSSL','clear','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','serializeRangeWithSheet','post','_schedule','repeat','_fetchMissChangesets','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_key','&source=','SetDocZoomRatioOperation','_onConnectionFailed','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','permissionRejEvent','_retryConnectingTimer','_getSignURL','_onUserLeave','b64DecodeUnicode','session.room-full','unit-cache-','registerBeforeClose','removeMember','[CollaborationSession]','message$','_localeService','joinEvent','$super','currentTheme$','M0\x200H16V16H0z','_updateSubUnitFromURLParams','closePath','_hash','shouldCloseConn','getSheetBySheetId','collaboration.closeRoom','HEARTBEAT_INTERVAL_KEY','_onConflict','sheetId','debounce','INTERNAL_ERROR','randomBytes','subunit','LIVESHARE_TERMINATE','NoPadding','setParam','setShowComponents','type','DocIMEInputManagerService','LIVESHARE_NEW_HOST','_hasher','\x20to\x20','_createHandler','IContextService','SheetsSelectionsService','selection','_changesetSessionId','getCoordByCell','@univerjs/design','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','univer-online-status-title','userID','_data','JSONX','_isPermissionRej','_eventUnsubscribe','_transformService','_telemetryInfo','stopTime','ITransformService','...','commentUpdate$','debug','_renderManagerService','roomMembers','toStringTag','_startSheetCollabCursor','_iKey','liveShareOperation','pipe','TEXT_RANGE_LAYER_INDEX','_onRemoteChangeset','changesets','UniverNetworkPlugin','unload','@univerjs/docs','DesktopCollaborationStatusDisplayController','byteLength','Subject','HTTPService','_beforeCloseService','forEach','__creator','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','randomUUID','sessionStatus','_socketMessageSubscription','loginUrlKey','_timeoutTimer','endRow','join','_transformPreviousActiveRange','getUnitType','Error','_saveCache','LICENSE_MAX_UNITS_EXCEEDED','concatMap','addEventListener','_nDataBytes','image/bmp','CollaborationController','redoState','cfg','objects','@univerjs/core','headers','_clearHeartbeatTimer','JOIN_ROOM_NOT_ALLOWED','labelPosition','enc','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_retryCount','isArray','IPermissionService','_docSyncEditingCollabCursorService','@univerjs/sheets','_cursors','requestParams','appendMutation','[CollaborationSessionService]:\x20socket\x20error','_scheduleCollaborationTimeoutTimer','SHOULD_CLOSE_CONN','deleteCollaborator','isTransformMutationsWithChangesetFailure','APPLY_REVISION_CONFILICT','formatter','NOT_FOUND','bind','merge','failed\x20to\x20apply\x20missed\x20changesets!','every','_updateStatus','ThemeService','_transformHistoryAndStateStack','verdancy600','_hideTimer','LIVESHARE_OPERATION','_collabCursorState$','close$','_onFetchMissResult','href','_change$','show','height','getCurrentUser','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_undoStacks','IConfigService','apply','_toggleOnline','_config','status$','getCurrentSelections','INGEST','UNDEFINED','doc.mutation.rich-text-editing','Warning','sessionStatus$','COLLAB_SUBMIT_CHANGESET_URL_KEY','docStateChange$','updatePermissionPoint','ERROR_IMAGE_TYPE','?size=','xlink:href','_applyRemoteChangeset','keySize','members','CommentService','liveShareNewHost','all','c2Prime','TEXT','UniverInstanceType','MessageType','/universer-api/oidc/authpage','ws://127.0.0.1:8000/universer-api/comb/connect','/universer-api/comb','encrypt','_removeCollabCursors','@univerjs/telemetry','handleDeleteRangeMoveLeft','session','CHANGESET_SHOULD_RETRY','_collabCursorController','@univerjs/engine-formula','getUnitStatus$','off-line-single','CollaborationEntity','setAlpha','_configService','ISnapshotServerService','not_collab','createDecryptor','some','_roomMembers','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','change$','error$','_color','_showConflictNotification','icon','onRemoteChangeset','_stopTelemetryCollaborationNewChangeset','fromEventSubject','LICENSE_DISTRO_REJECTED','IRenderManagerService','collaboration_new_changeset','splice','_docTransformStateCacheService','reset','pad','charAt','_doReset','_onCursorUpdate','getCurrentRevOfUnit','_unitStatus','UnitSnapshot','_socket$','_startDocCollabCursor','OFFLINE','pending','_registerRenderDependencies','_sendingTimer','fetchThroughInterceptors','getAncestorScale','sigBytes','jsxs','_oKey','byteOffset','with','unsubscribe','_handleJoinEvent','originalMeta','isTransformChangesetsSuccess','_updateState','hostname','put','newCsEvent','set','transformMutationsWithChangeset','max','Decryptor','purple300','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','ImageUploadStatusType','BehaviorSubject','fromCharCode','_anchor','_executeRemoteChangeset','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_instanceService','_onOffline','getColor','DeleteRangeMoveUpCommandId','_heartbeatTimer','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_assignedColors','OffLineSingle','HEADER_MENU','fillText','div','mapDocumentTypeToUniverType','Could\x20not\x20dynamically\x20require\x20\x22','/collaborator','collaboration.single-unit.warning','UNAUTHENTICATED','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','univer-online-status-icon','_getSaveTimeout','_id','_collaborationSessionService','_ws','reduce','collabStatus.offline','0\x200\x2016\x2016','contains','getOwnPropertyDescriptor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','fill','univer-online-status','_waitForHeartbeatResponse','ciphertext','_DEC_XFORM_MODE','_acknowledgedAwaitingChangeset','@univerjs-pro/collaboration','VIEW_MAIN','_compressMutationService','SheetCollaborationEntity','Fragment','_refreshCollabCursors','asObservable','triggerDblclick','onMissedChangesetFetched','collaboration-client.offline-data-not-saved','_imageSourceCache','blue400','collabCursorState$','image/jpg','UNKNOWN_CMD','compute','enableOfflineEditing','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_invKeySchedule','session.will-retry','IBeforeCloseService','_transformUndoredo','retryConnectingInterval','BlockCipher','LOCAL_CACHE_INTERVAL_KEY','_unitID','_getSessionTicket','addClipboardHook','then','addObjects','_xformMode','defineProperty','_docTransformSelectionsService','_listenToOfflineEvent','csShouldRetryEvent','_drawTextRange','BlockCipherMode','dispose','_collabSessionService','_textBubble','runRefRangeMutations','InsertColCommandId','collaboration-client.config','focused$','list','file','collabStatus.syncing','ref','getUnitOnRev','SEND_CHANGESET_TIMEOUT','from','_labelPosition','_getScale','getSheetId','[OfflineState]:\x20received\x20acknowledgement.','csAckEvent','onPointerLeave$','deepClone','fillStyle','onCommentUpdate','[DataLoaderController]','crypto','transformStateCache','hasher','UNRECOGNIZED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_sender','_waitCount','EvpKDF','conflict.content','getMember','_disabled','_createInitialState','Optional','_drawAnchor','copyFileMeta','NOT_COLLAB','reqId','handleIRemoveRow','univer-pro.collaboration-client-socket-service','padding','createInstance','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','SetTextSelectionsOperation','skeleton','create','clamp','extend','entries','black','status','ColorKit','getRenderById','hide','_logService','transformUndoRedo','NodePositionConvertToCursor','_clearLocalCache','indexOf','update','none','batchAllowed','requireSession','UNIVER_SHEET','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','c1Prime','/universer-api/snapshot','_context','charCodeAt','words','registerComponent','getMergeData','workbook','connection\x20error','\x0aCurrent:\x20','8953lQmUNZ','ReactCurrentOwner','bottom','SYNCED','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','baseRev','params','IMessageService','action','wsSessionTicketUrl','svg','toggleOffline','_refRangeService','_sessions','AuthzIoHttpService','getAllMembers','_handleEvent','_minBufferSize','replaceState','1em','_clearTimeoutTimer','_unlockTransition','hasOwnProperty','map','\x20in\x20_schedule.','ACTIVE_UNIT_EVENT_CHANNEL','getStateCache','SNAPSHOT_HAS_BEEN_REMOVED','translate(.97)','actions','_onRemoteRetry','_onLocalMutation','error','LocalCacheService','COMPLETION_FINISHED','Base','CONNECTOR_DATA_TOO_LARGE','_docStateChangeManagerService','onSyncEditingCollabCursor','_entityInit$','leaveEvent','kdf','patch','imageSourceType','HELLO','onRemoteAck','delete','transformSelections','_name','endColumn','width','string','__esModule','YUUMI_URL_COL_OUT_OF_RANGE','COMMENT_UPDATE','tag','Workbook','/universer-api/stream/file/upload','MUTATION','addObject','_createHmacHelper','@univerjs/network','_initUnitPermissionChange','fillRule','top','_socket','switchMap','UNKNOWN_CODE','_ENC_XFORM_MODE','Tools','_reverseMap','number','saveSheetBlock','_updateLocalCursor','DocSkeletonManagerService','sheetID','_doFinalize','collabWebSocketUrl','close','_entities','COLLAB_WEB_SOCKET_URL_KEY','getTypeOfUnitDisposed$','_shouldReportTelemetry','_univerInstanceService','transformChangesets','CommandType','moveTo','_unitOnClients','ERROR_IMAGE','IMentionIOService','init','textEncoder','toRgbString','catch','_getDownloadEndpointURL','_cursorInfo$','Shape','PSEUDO_FETCH_MISSING_RESULT','engine','COLORS','MentionType','_httpService','filter','HttpImport','now','push','_docTransformIMECacheService','_setupBeforeClosingHandler','key','_sheetSkeletonManagerService','onTransformRemoteChangesetByIMECache','random','image/png','awaiting_with_pending','socketService','complete','_setupSubUnitSync','createEncryptor','USERS_LEAVE','_send','/universer-api/file/{fileID}/sign-url','executeCommand','backgroundColor','font','collaboratorID','registerRenderModule','Encryptor','toggleOnline','data','unshift','TOO_MANY_REQUESTS','909kycjsE','_initRequestHeader','substring','[CollaborationState]:\x20apply\x20error!','unpad','_scheduleHeartbeat','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','POST','format','SheetCollabCursorShape','colorChannel1','unknown','joinRsp','evenodd','_onMessage','call','MSG_FOR_ERROR','path','auth.needGotoLoginAlert','_onCombEvent','collabSubmitChangesetUrl','RichTextEditingMutation','_disableEditing','ticket','LICENSE_EXPORT_SIZE_EXCEEDED','avatar','_transformRemoteChangesetByStateCache','lib','finalize','transformByState','FAIL','Undefined','[FetchMissState]','reverse','target','_initStatusComponent','_getAPIPrefix','sid','_prevBlock','takeUntil','Cipher','symbol','YUUMI_SUBSCRIPTION_NOT_FOUND','DocSelectionManagerService','UUID','uni.network.url-service','_initCloseConn','getUnit','subject','sendChangesetTimeout','generateRandomId','_append','propertyIsEnumerable','_updateURLWithCurrentState','Inject','socket\x20open.','_pendingMutations','unit','_createSocketURL','_syncEditingCollabCursor','APPLY_NON_SEQUENTIAL_REVISION','\x20-\x20','dispose$','disposeUnit','newValue','getConfig','_onConnectionOpen','image/jpeg','APPLY_REJECT','undoState','resourceIDs','_draw','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','function','getUnitId','_session','setShapeProps','JOINING','defs','url','AES','getSheetBlock','3eGnEKH','parseChangesetToProtocol','submit\x20changeset\x20error!','MentionIoHttpService','onPointerMove$','SNAPSHOT_SERVER_URL_KEY','prototype','editing\x20status\x20changed\x20to','searchParams','PERSON','SNAPSHOT_URL_KEY','LOGIN_URL_KEY','_injector','_keyPriorReset','_getSheetObject','getDocRanges','loadSheet','253382VkljCA','CollaborationEvent','collabStatus.fetchMiss','1598300KPstkE','SetSelectionsOperation','parseProtocolChangeset','ImageIoService','RETRY_CONNECTING_MAX_COUNT_KEY','throttleTime','LocaleService','_onCursorDelete','116BMBHNS','_snapshotService','FileId','YUUMI_RATE_OVER_LIMIT','disposeWithMe','subscribe','onlineStatusIcon','PERMISSION_REJ','[PendingState]:\x20received\x20acknowledgement.','conflict.title','_lastPointer','textRanges','DisposableCollection','setCurrentUser','toDisposable','CollaborationSession','LEAVE','_cipher','SNAPSHOT_INVALID_SNAPSHOT','row','parse','_notificationService','getMemberID','_drawRectRange','StreamCipher','isPermissionRej','slice','ImageSourceType','createElement','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','restore','_cachedData','get','_tryEnsureSocket','ILogService','_transformStack','IRemoteInstanceService','onPointerEnter$','ICollaborationSocketService','onTransformChange$','/-/object/-/batch_allowed','Injector','_commentUpdate$','cursorInfo','getSkeleton','_document','reconnect','_userManagerService','length','cursorInfo$','_startCollaboration','INotificationService','editingUnit','HEARTBEAT','ReplaySubject','addImageSourceCache','_syncEditingCollabCursorService','history','arc','defIds','_roomMembers$','_changesetReqId','_replayCachedMutations','debounceTime','FromArray','RECT','onTransformSelections','CollaborationSessionService','ALREADY_EXISTS','_transitionLocked','SetWorksheetActivateCommand','range','unitId\x20is\x20not\x20found','round','floor','Malformed\x20UTF-8\x20data','_transformStateCache','clipPath','className','currentColor','_clearScheduledTask','_urlService','RxDisposable','_uiPartsService','@univerjs/rpc','DOC_RANGE_TYPE','_members','flatMap','IUndoRedoService','enableLocalCache','state$','Base64','UniverCollaborationClientPlugin','react.element','_socketService','responseType','updateMember','incrementRevOfUnit','setItem','_onRemoteRejected','url(#off-line-single_clip0_910_343)','awaitingChangeset','_state','@univerjs/docs-ui','save','_getCurrentRevision','syncEditingCollabCursor','PENDING','_saveTaskMap','getCollabEntity$','BufferedBlockAlgorithm','combineLatest','DEFAULT_FILE_NAME','ENSURE_SNAPSHOT_EXECUTION','onCommandExecuted','setTimeout','withCredentials','localeService','getTime','equals','@univerjs/engine-render','_scheduleClearOtherTimer','onReady','touchDependencies','_onUserJoin','isInternalEditorID','algo','_getCtorByUniverType','2251860pHrHfG','next','getImageSourceCache','LIVESHARE_REQUEST_HOST','useObservable','isTransformMutationFailure','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_socketReady','roles','ranges','getValue','_scheduleSaving','PasswordBasedCipher','WebURLService','red300','_memberService','OTHER_CLIENTS_EDITING','UniverCollaborationPlugin','CHANGESET_REVISION_CONFILICT','fetchMissingChangesets','fetchMiss','location','_nRounds','_collaborationTimeoutTimer','HEARTBEAT_INTERVAL','subscribeEvent','HttpExport','connectInjector','result','rng','onTransformState','Rectangle','onStarting','[OfflineState]:\x20received\x20changeset.','22024QGyWhD','IAuthzIoService','_collaborationPaused','exports','UPDATE_CURSOR','CollaborationStatusDisplay','_submitChangeset','objectID','collaborators','popstate','SnapshotService','open$','beginPath','collab-rect-range-','_getAnchorBounding','on-line-single','clone','displayName','_state$','m1Prime','_getSendChangesetTimeout','fromCollab','_removeRoom','_cursorShapes','WordArray','_removeClearOtherTimer','code','encode','downloadEndpointUrl','collaboration-session-retry','CBC','univer-online','mergeOverrideWithDependencies','_cursor','registerRefRange','getCurrentUnitForType','updateOfflineData','send','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','RECV','routeKey','mutations','subUnitId','Vector2','decrypt','_status$','/fetchmissing?from=','getUnhiddenWorksheets','updatePermissionObjEvent','AUTHZ_URL_KEY','#fff','getTypeOfUnitAdded$'];_0x2701=function(){return _0x499e1a;};return _0x2701();}mt=rs([Te(0x2,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),Te(0x3,a[_0xbb724d(0x271)](Dt)),Te(0x4,a[_0xbb724d(0x271)](exports[_0xbb724d(0x420)])),Te(0x5,a[_0xbb724d(0x4c0)]),Te(0x6,a['ICommandService']),Te(0x7,a[_0xbb724d(0x271)](k['RefRangeService']))],mt);var ls=Object[_0xbb724d(0x164)],hs=Object[_0xbb724d(0x13d)],_s=(_0x362477,_0x39fb29,_0xa9dd41,_0x447829)=>{for(var _0x1ec65c=_0x447829>0x1?void 0x0:_0x447829?hs(_0x39fb29,_0xa9dd41):_0x39fb29,_0xc151ae=_0x362477['length']-0x1,_0x5a20a6;_0xc151ae>=0x0;_0xc151ae--)(_0x5a20a6=_0x362477[_0xc151ae])&&(_0x1ec65c=(_0x447829?_0x5a20a6(_0x39fb29,_0xa9dd41,_0x1ec65c):_0x5a20a6(_0x1ec65c))||_0x1ec65c);return _0x447829&&_0x1ec65c&&ls(_0x39fb29,_0xa9dd41,_0x1ec65c),_0x1ec65c;},nt=(_0x71cbca,_0x5a8e34)=>(_0x2ca906,_0x11ceaa)=>_0x5a8e34(_0x2ca906,_0x11ceaa,_0x71cbca);let De=class extends a[_0xbb724d(0x2fb)]{constructor(_0x164a75,_0x142551,_0x1486c2){const _0x27cd0e=_0xbb724d;super(),I(this,_0x27cd0e(0x207),new Map()),I(this,_0x27cd0e(0x1df),new A[(_0x27cd0e(0x538))]()),(this['_univerInstanceService']=_0x164a75,this[_0x27cd0e(0x299)]=_0x142551,this[_0x27cd0e(0x16b)]=_0x1486c2,this[_0x27cd0e(0x3ab)]());}[_0xbb724d(0x16a)](){const _0x4695a2=_0xbb724d;super[_0x4695a2(0x16a)](),this['_entityInit$']['complete'](),this['_entities']['forEach'](_0x16a9e4=>_0x16a9e4[_0x4695a2(0x16a)]());}[_0xbb724d(0x3b0)](_0x2f628d){const _0x2386b8=_0xbb724d;return this[_0x2386b8(0x207)][_0x2386b8(0x4cd)](_0x2f628d)?this['_entities']['get'](_0x2f628d)[_0x2386b8(0x2da)]:this[_0x2386b8(0x1df)][_0x2386b8(0x52f)](A['filter'](_0x4f4ab3=>_0x4f4ab3[_0x2386b8(0x447)]===_0x2f628d),A['switchMap'](_0xd1305f=>_0xd1305f[_0x2386b8(0x2da)]));}[_0xbb724d(0x3ab)](){const _0x488be4=_0xbb724d;this[_0x488be4(0x20b)][_0x488be4(0x37e)](a[_0x488be4(0xd5)][_0x488be4(0x1ac)])[_0x488be4(0x52f)](A['takeUntil'](this['dispose$']))[_0x488be4(0x2ae)](async _0x47352c=>{const _0x5346fb=_0x488be4,_0x2ede46=_0x47352c[_0x5346fb(0x285)](),_0x336b84=await this[_0x5346fb(0x52c)](_0x2ede46);this[_0x5346fb(0x1df)][_0x5346fb(0x32a)](_0x336b84),this[_0x5346fb(0x207)]['set'](_0x2ede46,_0x336b84);}),this[_0x488be4(0x20b)][_0x488be4(0x37e)](a[_0x488be4(0xd5)][_0x488be4(0x44c)])[_0x488be4(0x52f)](A[_0x488be4(0x262)](this[_0x488be4(0x279)]))[_0x488be4(0x52f)](A[_0x488be4(0x21e)](_0x4c8e07=>!_0x4c8e07[_0x488be4(0x285)]()['startsWith']('__')))['subscribe'](async _0x5a1e07=>{const _0x490614=_0x488be4,_0x2d45d2=_0x5a1e07[_0x490614(0x285)](),_0x25633e=await this[_0x490614(0x103)](_0x2d45d2);this['_entityInit$'][_0x490614(0x32a)](_0x25633e),this['_entities']['set'](_0x2d45d2,_0x25633e);}),A[_0x488be4(0xa9)](this[_0x488be4(0x20b)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x488be4(0x44c)]),this[_0x488be4(0x20b)]['getTypeOfUnitDisposed$'](a[_0x488be4(0xd5)][_0x488be4(0x1ac)]))[_0x488be4(0x52f)](A[_0x488be4(0x262)](this[_0x488be4(0x279)]))['subscribe'](_0x1ad4ef=>{const _0x2e2117=_0x488be4,_0x34eb3f=_0x1ad4ef[_0x2e2117(0x285)](),_0x4dd3ed=this[_0x2e2117(0x207)][_0x2e2117(0x2c9)](_0x34eb3f);_0x4dd3ed&&(_0x4dd3ed[_0x2e2117(0x16a)](),this[_0x2e2117(0x207)][_0x2e2117(0x1e6)](_0x34eb3f));});}async[_0xbb724d(0x52c)](_0xd5bfcc){const _0x216a83=_0xbb724d,_0x33c9fb=await this[_0x216a83(0x16b)][_0x216a83(0x1ab)](_0xd5bfcc),_0x5cf3ee=this[_0x216a83(0x299)][_0x216a83(0x196)](mt,_0xd5bfcc,_0x33c9fb);return _0x5cf3ee[_0x216a83(0x212)](),_0x5cf3ee;}async[_0xbb724d(0x103)](_0x2aa6fd){const _0x42712f=_0xbb724d,_0x1ef3bb=await this[_0x42712f(0x16b)][_0x42712f(0x1ab)](_0x2aa6fd),_0x4fec7e=this['_injector'][_0x42712f(0x196)](pt,_0x2aa6fd,_0x1ef3bb);return _0x4fec7e[_0x42712f(0x212)](),_0x4fec7e;}};De=_s([nt(0x0,a[_0xbb724d(0x4c0)]),nt(0x1,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),nt(0x2,a[_0xbb724d(0x271)](exports[_0xbb724d(0x2ec)]))],De);const Le=0x14,Wt=0xc8,st=0x4,us=0x5;function ds(_0x9aa963,_0x5ca3af){const _0x3f0c8d=_0xbb724d;let {radius:_0x25c8e2,width:_0x5b61c4,height:_0x4a0aa5}=_0x5ca3af;_0x25c8e2=_0x25c8e2!=null?_0x25c8e2:0x0,_0x5b61c4=_0x5b61c4!=null?_0x5b61c4:0x1e,_0x4a0aa5=_0x4a0aa5!=null?_0x4a0aa5:0x1e;let _0x1f6c5a=0x0,_0x3e745a=0x0,_0x376f79=0x0;_0x1f6c5a=_0x3e745a=_0x376f79=Math[_0x3f0c8d(0x384)](_0x25c8e2,_0x5b61c4/0x2,_0x4a0aa5/0x2),_0x9aa963[_0x3f0c8d(0x357)](),_0x9aa963[_0x3f0c8d(0x20e)](_0x1f6c5a,0x0),_0x9aa963['lineTo'](_0x5b61c4-_0x3e745a,0x0),_0x9aa963['arc'](_0x5b61c4-_0x3e745a,_0x3e745a,_0x3e745a,Math['PI']*0x3/0x2,0x0,!0x1),_0x9aa963[_0x3f0c8d(0x418)](_0x5b61c4,_0x4a0aa5-_0x376f79),_0x9aa963[_0x3f0c8d(0x2e3)](_0x5b61c4-_0x376f79,_0x4a0aa5-_0x376f79,_0x376f79,0x0,Math['PI']/0x2,!0x1),_0x9aa963['lineTo'](0x0,_0x4a0aa5),_0x9aa963[_0x3f0c8d(0x418)](0x0,_0x1f6c5a),_0x9aa963[_0x3f0c8d(0x2e3)](_0x1f6c5a,_0x1f6c5a,_0x1f6c5a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x9aa963[_0x3f0c8d(0x4ff)](),_0x5ca3af[_0x3f0c8d(0x13f)]&&(_0x9aa963[_0x3f0c8d(0x311)](),_0x9aa963['fillStyle']=_0x5ca3af[_0x3f0c8d(0x13f)],_0x5ca3af[_0x3f0c8d(0x1f7)]===_0x3f0c8d(0x248)?_0x9aa963[_0x3f0c8d(0x13f)](_0x3f0c8d(0x248)):_0x9aa963[_0x3f0c8d(0x13f)](),_0x9aa963[_0x3f0c8d(0x2c7)]());}class Xe extends K[_0xbb724d(0x218)]{constructor(_0x2d3cd9,_0x1c68c8){const _0x4c496b=_0xbb724d;super(_0x2d3cd9,_0x1c68c8),I(this,'color'),I(this,_0x4c496b(0x46d)),(this[_0x4c496b(0x3f3)]=_0x1c68c8==null?void 0x0:_0x1c68c8[_0x4c496b(0x3f3)],this[_0x4c496b(0x46d)]=_0x1c68c8==null?void 0x0:_0x1c68c8['text']);}static[_0xbb724d(0x402)](_0x2ff9a5,_0xb656ea){const _0x387b50=_0xbb724d,{text:_0x447eeb,color:_0x4b3586}=_0xb656ea;_0x2ff9a5[_0x387b50(0x311)](),_0x2ff9a5[_0x387b50(0x233)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x33c0a8=_0x2ff9a5[_0x387b50(0x4d3)](_0x447eeb)[_0x387b50(0x1ea)],_0x4fb1cd=Math['min'](_0x33c0a8+0x2*st,Wt);ds(_0x2ff9a5,{'height':Le,'radius':0x4,'width':_0x4fb1cd,'fill':_0x4b3586,'evented':!0x1}),_0x2ff9a5[_0x387b50(0x17f)]=_0x387b50(0x48b);const _0x249fac=st,_0x4d6963=Le-us,_0x216c4a=Wt-0x2*st;if(_0x33c0a8>_0x216c4a){let _0x3b14f9='',_0x55afd7=0x0;for(const _0x5af688 of _0x447eeb){const _0x34b13f=_0x2ff9a5[_0x387b50(0x4d3)](_0x5af688)['width'];if(_0x55afd7+_0x34b13f<=_0x216c4a-_0x2ff9a5[_0x387b50(0x4d3)]('...')[_0x387b50(0x1ea)])_0x3b14f9+=_0x5af688,_0x55afd7+=_0x34b13f;else{_0x3b14f9+=_0x387b50(0x526);break;}}_0x2ff9a5[_0x387b50(0x12c)](_0x3b14f9,_0x249fac,_0x4d6963);}else _0x2ff9a5['fillText'](_0x447eeb,_0x249fac,_0x4d6963);_0x2ff9a5[_0x387b50(0x2c7)]();}[_0xbb724d(0x282)](_0x44465f){const _0x50a803=_0xbb724d;Xe[_0x50a803(0x402)](_0x44465f,this);}}const rt='collab-text-anchor-',fs=_0xbb724d(0x3d4),vs=_0xbb724d(0x358),Ue=0x6,Ss=1.5,ot=0x4,ps=1.5,ms=_0xbb724d(0x3ae);class Ft{constructor(_0x1f44dd,_0x1e0d63,_0x586489,_0x3f426){const _0x4c3e36=_0xbb724d;I(this,_0x4c3e36(0x3eb),[]),I(this,_0x4c3e36(0x120),null),I(this,_0x4c3e36(0x16c),null),I(this,_0x4c3e36(0x463),null),I(this,_0x4c3e36(0xb0),null),I(this,_0x4c3e36(0x521),null),(this[_0x4c3e36(0x36c)]=_0x1f44dd,this[_0x4c3e36(0x3a4)]=_0x1e0d63,this[_0x4c3e36(0x3ce)]=_0x586489,this[_0x4c3e36(0x2d6)]=_0x3f426,this[_0x4c3e36(0x444)]());}set[_0xbb724d(0x400)](_0xddb3ef){const _0x598aab=_0xbb724d;_0xddb3ef?(this[_0x598aab(0x463)]&&this[_0x598aab(0x463)][_0x598aab(0x1a2)](),this['_textBubble']&&this[_0x598aab(0x16c)][_0x598aab(0xb7)]()):(this[_0x598aab(0x463)]&&this[_0x598aab(0x463)][_0x598aab(0xb7)](),this[_0x598aab(0x16c)]&&this[_0x598aab(0x16c)][_0x598aab(0x1a2)]());}['dispose'](){const _0x2a05cc=_0xbb724d;for(const _0x4ef245 of this[_0x2a05cc(0x3eb)])_0x4ef245[_0x2a05cc(0x16a)]();this[_0x2a05cc(0x16c)]&&this[_0x2a05cc(0x16c)][_0x2a05cc(0x16a)](),this[_0x2a05cc(0x463)]&&this[_0x2a05cc(0x463)]['dispose'](),this[_0x2a05cc(0x120)]&&this[_0x2a05cc(0x120)]['dispose'](),this[_0x2a05cc(0x521)]&&this['_eventUnsubscribe']();}['_render'](){const _0x412355=_0xbb724d;var _0x1ca8b2;const {_docSkeleton:_0x570648,_document:_0x3c11e8}=this,{color:_0x177e1e,name:_0x90b7c2,ranges:_0x363edb}=this['_cursor'],_0x17222a=_0x3c11e8['getOffsetConfig'](),{docsLeft:_0x24770d,docsTop:_0xa5e445}=_0x17222a,_0x3259b2=new J[(_0x412355(0x1a5))](_0x17222a,_0x570648);for(const {startOffset:_0x839f07,endOffset:_0x3172ee,rangeType:_0x53e950,segmentId:_0x16bc9a,segmentPage:_0xb8eafd,collapsed:_0x44a03d,isActive:_0x5e5ca1}of _0x363edb){const _0x103d9b=_0x570648[_0x412355(0x4b1)](_0x839f07,!0x0,_0x16bc9a,_0xb8eafd);let _0x54fa18=_0x570648[_0x412355(0x4b1)](_0x3172ee,!0x0,_0x16bc9a,_0xb8eafd);if(_0x54fa18==null&&(_0x54fa18=_0x570648[_0x412355(0x4b1)](_0x3172ee-0x1,!0x1,_0x16bc9a,_0xb8eafd)),_0x5e5ca1){const {contentBoxPointGroup:_0x11fe7a}=_0x3259b2[_0x412355(0x3a9)](_0x54fa18,_0x54fa18);if(_0x11fe7a[_0x412355(0x2d9)]===0x0)continue;this['_drawAnchor'](_0x177e1e,_0x11fe7a,_0x24770d,_0xa5e445,_0x90b7c2),this[_0x412355(0x521)]=this[_0x412355(0x45b)]();}if(_0x103d9b&&_0x54fa18){if(_0x53e950===a['DOC_RANGE_TYPE'][_0x412355(0x2ea)]){const _0x37b4aa=new J[(_0x412355(0x49f))](_0x17222a,_0x570648),{pointGroup:_0x10b3d5}=(_0x1ca8b2=_0x37b4aa[_0x412355(0x3a9)](_0x103d9b,_0x54fa18))!=null?_0x1ca8b2:{};if(_0x10b3d5==null||_0x10b3d5[_0x412355(0x2d9)]===0x0)continue;this[_0x412355(0x2c0)](_0x177e1e,_0x10b3d5,_0x24770d,_0xa5e445);}else{if(!_0x44a03d){const {borderBoxPointGroup:_0x38cc1d}=_0x3259b2[_0x412355(0x3a9)](_0x103d9b,_0x54fa18);if(_0x38cc1d[_0x412355(0x2d9)]===0x0)continue;this[_0x412355(0x168)](_0x177e1e,_0x38cc1d,_0x24770d,_0xa5e445);}}}}}[_0xbb724d(0x18f)](_0x35377d,_0x41b229,_0x4a21bf,_0x44e75d,_0x5e7b6a){const _0x164b99=_0xbb724d,_0x23ca19=this[_0x164b99(0x359)](_0x41b229),{left:_0x11e795,top:_0x5d0e4d,height:_0x565c58}=_0x23ca19,_0x477a20=this['_getScale'](),_0x1507bc=ps/_0x477a20,_0x4101a6=new K[(_0x164b99(0x438))](rt+a[_0x164b99(0x1fd)][_0x164b99(0x26d)](Ue),{'left':_0x11e795+_0x4a21bf-_0x1507bc,'top':_0x5d0e4d+_0x44e75d,'height':_0x565c58,'width':Ss,'fill':_0x35377d||K[_0x164b99(0x125)](a['COLORS']['black'],0x0),'strokeWidth':_0x1507bc,'stroke':ms,'evented':!0x0});this[_0x164b99(0x120)]=_0x4101a6,this[_0x164b99(0x3a4)][_0x164b99(0x1f3)](_0x4101a6,J[_0x164b99(0x530)]);const _0x365e27=new K[(_0x164b99(0x438))](rt+a[_0x164b99(0x1fd)][_0x164b99(0x26d)](Ue),{'left':_0x11e795+_0x4a21bf-_0x1507bc,'top':_0x5d0e4d+_0x44e75d-ot/0x2,'height':ot,'width':ot,'fill':_0x35377d||K[_0x164b99(0x125)](a[_0x164b99(0x21b)][_0x164b99(0x19e)],0x0),'strokeWidth':0x0,'stroke':_0x35377d||K[_0x164b99(0x125)](a[_0x164b99(0x21b)]['black'],0x0),'evented':!0x1});this[_0x164b99(0x463)]=_0x365e27,this[_0x164b99(0x3a4)][_0x164b99(0x1f3)](_0x365e27,J['TEXT_RANGE_LAYER_INDEX']);const _0x22afe5=new Xe(rt+a['Tools']['generateRandomId'](Ue),{'left':_0x11e795+_0x4a21bf-_0x1507bc,'top':_0x5d0e4d+_0x44e75d-Le,'text':_0x5e7b6a,'color':_0x35377d});this[_0x164b99(0x16c)]=_0x22afe5,this['_scene']['addObject'](_0x22afe5,J[_0x164b99(0x530)]),this[_0x164b99(0x400)]=!0x1;}['_handleHover'](){const _0x59033b=_0xbb724d,_0x3f5d76=this['_anchor'][_0x59033b(0x2ce)][_0x59033b(0x342)](()=>{this['_hover']=!0x0;}),_0x383473=this[_0x59033b(0x120)][_0x59033b(0x17d)][_0x59033b(0x342)](()=>{const _0x448e08=_0x59033b;this[_0x448e08(0xb0)]&&clearTimeout(this[_0x448e08(0xb0)]),this['_hideTimer']=setTimeout(()=>{const _0xde8ba9=_0x448e08;this[_0xde8ba9(0x400)]=!0x1;},0x7d0);});return()=>{const _0x38c5f1=_0x59033b;_0x3f5d76[_0x38c5f1(0x10f)](),_0x383473[_0x38c5f1(0x10f)]();};}[_0xbb724d(0x168)](_0x15f4ee,_0x52f4b6,_0x433704,_0x4616f6){const _0x181321=_0xbb724d,_0x271d86=new a[(_0x181321(0x1a0))](_0x15f4ee)[_0x181321(0xe5)](0.2)[_0x181321(0x214)](),_0xfed85f=new K[(_0x181321(0x45a))](fs+a[_0x181321(0x1fd)][_0x181321(0x26d)](Ue),{'pointsGroup':_0x52f4b6,'fill':_0x271d86||K[_0x181321(0x125)](a[_0x181321(0x21b)][_0x181321(0x19e)],0.2),'left':_0x433704,'top':_0x4616f6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x181321(0x3eb)]['push'](_0xfed85f),this['_scene']['addObject'](_0xfed85f,J['TEXT_RANGE_LAYER_INDEX']);}[_0xbb724d(0x2c0)](_0x45f2d8,_0x5413bb,_0x5e79fa,_0x231f3e){const _0x2819a9=_0xbb724d,_0xca897a=new a[(_0x2819a9(0x1a0))](_0x45f2d8)[_0x2819a9(0xe5)](0.2)[_0x2819a9(0x214)](),_0x53a3f3=new K['RegularPolygon'](vs+a[_0x2819a9(0x1fd)][_0x2819a9(0x26d)](Ue),{'pointsGroup':_0x5413bb,'fill':_0xca897a||K[_0x2819a9(0x125)](a['COLORS'][_0x2819a9(0x19e)],0.2),'left':_0x5e79fa,'top':_0x231f3e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2819a9(0x3eb)][_0x2819a9(0x221)](_0x53a3f3),this[_0x2819a9(0x3a4)][_0x2819a9(0x1f3)](_0x53a3f3,J['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x32b5f6){const _0x530080=_0x32b5f6[0x0],_0x581b0f=_0x530080[0x0],_0x227717=_0x530080[0x2],{x:_0x57d487,y:_0x1b0ca7}=_0x581b0f,{x:_0x4f1583,y:_0x16e97b}=_0x227717;return{'left':_0x57d487,'top':_0x1b0ca7,'width':_0x4f1583-_0x57d487,'height':_0x16e97b-_0x1b0ca7};}[_0xbb724d(0x179)](){const _0x4ae752=_0xbb724d,{scaleX:_0x397790,scaleY:_0x27d275}=this[_0x4ae752(0x3a4)][_0x4ae752(0x109)]();return Math[_0x4ae752(0x119)](_0x397790,_0x27d275);}}var gs=Object[_0xbb724d(0x164)],Is=Object[_0xbb724d(0x13d)],Cs=(_0x134f37,_0xefa0c,_0x428eae,_0x816acb)=>{for(var _0x1637c6=_0x816acb>0x1?void 0x0:_0x816acb?Is(_0xefa0c,_0x428eae):_0xefa0c,_0xeafd60=_0x134f37['length']-0x1,_0x2e9b64;_0xeafd60>=0x0;_0xeafd60--)(_0x2e9b64=_0x134f37[_0xeafd60])&&(_0x1637c6=(_0x816acb?_0x2e9b64(_0xefa0c,_0x428eae,_0x1637c6):_0x2e9b64(_0x1637c6))||_0x1637c6);return _0x816acb&&_0x1637c6&&gs(_0xefa0c,_0x428eae,_0x1637c6),_0x1637c6;},je=(_0x12778,_0x1ce92c)=>(_0x577cc4,_0x5d301b)=>_0x1ce92c(_0x577cc4,_0x5d301b,_0x12778);let gt=class extends a[_0xbb724d(0x2fb)]{constructor(_0x2b8389,_0x1828ee,_0x581c65,_0x2e5050,_0x224654){const _0x4e1a26=_0xbb724d;super(),I(this,_0x4e1a26(0x362),[]),I(this,_0x4e1a26(0x9d),[]),(this[_0x4e1a26(0x1b0)]=_0x2b8389,this['_docSkeletonManagerService']=_0x1828ee,this[_0x4e1a26(0xe0)]=_0x581c65,this[_0x4e1a26(0x417)]=_0x2e5050,this[_0x4e1a26(0x3f5)]=_0x224654,this[_0x4e1a26(0x3ab)]());}['_init'](){const _0x3667b9=_0xbb724d,_0x373b51=this['_context']['unitId'],_0x23ab15=this['_docSkeletonManagerService'];this[_0x3667b9(0x2ad)](A[_0x3667b9(0x318)]([this[_0x3667b9(0xe0)][_0x3667b9(0x3b0)](_0x373b51),this[_0x3667b9(0x3f5)][_0x3667b9(0x4fc)]])[_0x3667b9(0x52f)](V['map'](([_0x95e3bc,_0x556c97])=>({'skeleton':_0x23ab15[_0x3667b9(0x2d5)](),'cursors':[..._0x95e3bc[_0x3667b9(0x452)]()][_0x3667b9(0x300)](_0x43c4e8=>({..._0x43c4e8,'color':_0x556c97[_0x43c4e8[_0x3667b9(0x3f3)]]}))})))['subscribe'](_0x510313=>{const _0x40360d=_0x3667b9;if(this[_0x40360d(0xdb)](),_0x510313){const {skeleton:_0x17cbac,cursors:_0x214257}=_0x510313;this[_0x40360d(0x392)](_0x17cbac,_0x214257);}})),this['_initResize'](),this[_0x3667b9(0x481)]();}[_0xbb724d(0x392)](_0x43331f,_0x4aaccd){const _0xb6f6d0=_0xbb724d,{scene:_0x666390,mainComponent:_0x20e9a3}=this[_0xb6f6d0(0x1b0)],_0x2122a7=_0x4aaccd['map'](_0x117f10=>new Ft(_0x117f10,_0x666390,_0x43331f,_0x20e9a3));this[_0xb6f6d0(0x362)]=_0x2122a7,this[_0xb6f6d0(0x9d)]=_0x4aaccd;}[_0xbb724d(0x14a)](){const _0x33d3f0=_0xbb724d;this[_0x33d3f0(0xdb)]();const {scene:_0x26e3ee,mainComponent:_0x1871b1}=this[_0x33d3f0(0x1b0)],_0x8f8b9d=this[_0x33d3f0(0x3c8)]['getSkeleton'](),_0x55eb2e=this[_0x33d3f0(0x9d)][_0x33d3f0(0x1cf)](_0x286976=>new Ft(_0x286976,_0x26e3ee,_0x8f8b9d,_0x1871b1));this[_0x33d3f0(0x362)]=_0x55eb2e;}[_0xbb724d(0xdb)](){const _0x19ecd4=_0xbb724d;this['_cursorShapes'][_0x19ecd4(0x53b)](_0x512a1a=>_0x512a1a['dispose']()),this[_0x19ecd4(0x362)]=[];}[_0xbb724d(0x481)](){const _0x1bb7cf=_0xbb724d,_0x6497f1=[J[_0x1bb7cf(0x4eb)]['id']];this['disposeWithMe'](this[_0x1bb7cf(0x417)]['onCommandExecuted'](_0x50e959=>{const _0x19ed82=_0x1bb7cf;_0x6497f1['includes'](_0x50e959['id'])&&_0x50e959[_0x19ed82(0x1be)][_0x19ed82(0x4a0)]===this[_0x19ed82(0x1b0)]['unitId']&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x18561f=_0xbb724d;this[_0x18561f(0x2ad)](a[_0x18561f(0xf4)](this['_context'][_0x18561f(0x21a)][_0x18561f(0x2d0)])[_0x18561f(0x52f)](V[_0x18561f(0x21e)](_0x5d5db9=>_0x5d5db9[_0x18561f(0x50f)]===K['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),V[_0x18561f(0x2a6)](0x10))[_0x18561f(0x2ae)](()=>{const _0xead2ab=_0x18561f;this[_0xead2ab(0x14a)]();}));}};gt=Cs([je(0x1,a[_0xbb724d(0x271)](Ie[_0xbb724d(0x202)])),je(0x2,a[_0xbb724d(0x271)](De)),je(0x3,a[_0xbb724d(0x39a)]),je(0x4,a[_0xbb724d(0x271)](a[_0xbb724d(0xad)]))],gt);const Es=0x1,bs=1.5;class Ii extends K[_0xbb724d(0x218)]{constructor(_0x24db98,_0x2a017c){const _0x492582=_0xbb724d;super(_0x24db98,_0x2a017c),I(this,_0x492582(0xef)),I(this,_0x492582(0x491),!0x1),I(this,_0x492582(0x3e1)),I(this,'_name',''),I(this,'_labelPosition',_0x492582(0x1f8)),I(this,'_backgroundColor'),(_0x2a017c&&this[_0x492582(0x287)](_0x2a017c),this['onPointerEnter$'][_0x492582(0x342)](()=>this[_0x492582(0x287)]({'hovered':!0x0})),this['onPointerLeave$'][_0x492582(0x342)](()=>this[_0x492582(0x287)]({'hovered':!0x1})));}[_0xbb724d(0x287)](_0x1d2627){const _0xb8958d=_0xbb724d;var _0x22b0ab,_0x353cf1,_0x574b0d,_0xe46aca,_0x11178f,_0x1db45d;this[_0xb8958d(0xef)]=(_0x22b0ab=_0x1d2627[_0xb8958d(0x3f3)])!=null?_0x22b0ab:this[_0xb8958d(0xef)],this[_0xb8958d(0x491)]=(_0x353cf1=_0x1d2627[_0xb8958d(0x40b)])!=null?_0x353cf1:this[_0xb8958d(0x491)],this[_0xb8958d(0x3e1)]=(_0x574b0d=_0x1d2627['range'])!=null?_0x574b0d:this[_0xb8958d(0x3e1)],this[_0xb8958d(0x1e8)]=(_0xe46aca=_0x1d2627[_0xb8958d(0x4cc)])!=null?_0xe46aca:this['_name'],this[_0xb8958d(0x178)]=(_0x11178f=_0x1d2627[_0xb8958d(0x95)])!=null?_0x11178f:this[_0xb8958d(0x178)],this[_0xb8958d(0x3d1)]=(_0x1db45d=_0x1d2627[_0xb8958d(0x232)])!=null?_0x1db45d:this[_0xb8958d(0x3d1)],this[_0xb8958d(0x258)]({'width':_0x1d2627[_0xb8958d(0x1ea)],'height':_0x1d2627[_0xb8958d(0xb8)]});}[_0xbb724d(0x47a)](_0x1b46f6){const _0x3f1587=_0xbb724d,{row:_0x2e4658,column:_0x39e7c8}=_0x1b46f6;if(_0x2e4658>=this[_0x3f1587(0x3e1)]['startRow']&&_0x2e4658<=this[_0x3f1587(0x3e1)][_0x3f1587(0x543)]&&_0x39e7c8>=this['_range'][_0x3f1587(0x49a)]&&_0x39e7c8<=this[_0x3f1587(0x3e1)][_0x3f1587(0x1e9)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3f1587(0x287)]({'hovered':!0x1});}[_0xbb724d(0x14c)](_0x377b81){return!0x1;}[_0xbb724d(0x282)](_0x1ae54a){const _0x9991b8=_0xbb724d;K['Rect'][_0x9991b8(0x402)](_0x1ae54a,{'width':this[_0x9991b8(0x1ea)],'height':this['height'],'strokeWidth':bs,'stroke':this[_0x9991b8(0xef)],'evented':!0x1,'fill':this[_0x9991b8(0x3d1)]}),this[_0x9991b8(0x491)]&&(_0x1ae54a[_0x9991b8(0x311)](),_0x1ae54a[_0x9991b8(0x421)](0x1,0x0,0x0,0x1,this['width'],this[_0x9991b8(0x178)]===_0x9991b8(0x1ba)?0x0:-Le),Xe['drawWith'](_0x1ae54a,{'text':this[_0x9991b8(0x1e8)],'color':this[_0x9991b8(0xef)]}),_0x1ae54a[_0x9991b8(0x2c7)]());}}var Ts=Object[_0xbb724d(0x164)],Rs=Object['getOwnPropertyDescriptor'],ys=(_0x1ef37e,_0x3858f4,_0x2656ca,_0x144faa)=>{const _0x5e4350=_0xbb724d;for(var _0x487ffc=_0x144faa>0x1?void 0x0:_0x144faa?Rs(_0x3858f4,_0x2656ca):_0x3858f4,_0x1aa3c0=_0x1ef37e[_0x5e4350(0x2d9)]-0x1,_0x386940;_0x1aa3c0>=0x0;_0x1aa3c0--)(_0x386940=_0x1ef37e[_0x1aa3c0])&&(_0x487ffc=(_0x144faa?_0x386940(_0x3858f4,_0x2656ca,_0x487ffc):_0x386940(_0x487ffc))||_0x487ffc);return _0x144faa&&_0x487ffc&&Ts(_0x3858f4,_0x2656ca,_0x487ffc),_0x487ffc;},at=(_0x544100,_0x3236f1)=>(_0x332a44,_0x25b9d2)=>_0x3236f1(_0x332a44,_0x25b9d2,_0x544100);const Os=0x1389;let It=class extends a[_0xbb724d(0x2fb)]{constructor(_0x40a1ad,_0x133860,_0x423cf3,_0x322253){const _0x4d7d0d=_0xbb724d;super(),I(this,_0x4d7d0d(0x9d),new Set()),I(this,'_lastPointer',null),(this[_0x4d7d0d(0x1b0)]=_0x40a1ad,this[_0x4d7d0d(0x225)]=_0x133860,this['_collabCursorController']=_0x423cf3,this[_0x4d7d0d(0x3f5)]=_0x322253,this[_0x4d7d0d(0x3ab)]());}[_0xbb724d(0x3ab)](){const _0x373a57=_0xbb724d;this[_0x373a57(0x225)][_0x373a57(0x47d)][_0x373a57(0x52f)](V[_0x373a57(0x262)](this[_0x373a57(0x279)]),V[_0x373a57(0x1fa)](_0x3c2b77=>{const _0x4fc1e6=_0x373a57;if(_0x3c2b77){const _0x25f0a6=_0x3c2b77[_0x4fc1e6(0x506)];return A[_0x4fc1e6(0x318)](this[_0x4fc1e6(0xe0)][_0x4fc1e6(0x3b0)](this[_0x4fc1e6(0x1b0)][_0x4fc1e6(0x4a0)]),this[_0x4fc1e6(0x3f5)]['currentTheme$'])[_0x4fc1e6(0x52f)](V[_0x4fc1e6(0x1cf)](([_0x510492,_0x27d02e])=>{const _0x19998d=_0x4fc1e6,_0x30fad7=new Map();return _0x510492[_0x19998d(0x53b)]((_0x573f05,_0x29fa6c)=>{const _0x34c41e=_0x19998d;if(_0x573f05[_0x34c41e(0x203)]===_0x25f0a6){const _0x2b2a05={..._0x573f05};_0x2b2a05[_0x34c41e(0x3f3)]=_0x27d02e[_0x573f05['color']],_0x30fad7[_0x34c41e(0x117)](_0x29fa6c,_0x2b2a05);}}),{'skeleton':_0x3c2b77,'cursors':_0x30fad7};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0x373a57(0x2ae)](({skeleton:_0xb7dc2a,cursors:_0x264a65})=>{const _0xb99e2a=_0x373a57;this[_0xb99e2a(0xdb)](),_0xb7dc2a&&this[_0xb99e2a(0x392)](_0xb7dc2a,_0x264a65);}),this['_sheetSkeletonManagerService'][_0x373a57(0x47d)]['subscribe'](_0x2ed72c=>{const _0x33f0c2=_0x373a57;if(_0x2ed72c==null)return;const {skeleton:_0xa06a9e}=_0x2ed72c,{scene:_0x5e321b}=this[_0x33f0c2(0x1b0)];_0x5e321b[_0x33f0c2(0x291)]['subscribeEvent'](a['debounce'](_0x426d1b=>{const _0x5a89b6=_0x33f0c2;var _0x45fc6e,_0x465818;const {offsetX:_0x613bc4,offsetY:_0x113b37}=_0x426d1b,{x:_0xd51bda,y:_0x44a2c4}=_0x5e321b[_0x5a89b6(0x3b6)](K[_0x5a89b6(0x376)][_0x5a89b6(0x2e9)]([_0x613bc4,_0x113b37])),{scaleX:_0x25e7ef,scaleY:_0x32d9de}=_0x5e321b['getAncestorScale'](),_0x457df3=_0x5e321b['getViewport'](ye['VIEWPORT_KEY'][_0x5a89b6(0x146)]),_0x2aec2e=_0x5e321b[_0x5a89b6(0x497)](K[_0x5a89b6(0x376)][_0x5a89b6(0x2e9)]([_0xd51bda,_0x44a2c4]),_0x457df3),_0x1621c0=_0xa06a9e['getCellPositionByOffset'](_0x613bc4,_0x113b37,_0x25e7ef,_0x32d9de,_0x2aec2e);((_0x45fc6e=this[_0x5a89b6(0x2b3)])==null?void 0x0:_0x45fc6e['column'])===_0x1621c0[_0x5a89b6(0x449)]&&((_0x465818=this['_lastPointer'])==null?void 0x0:_0x465818[_0x5a89b6(0x2bc)])===_0x1621c0[_0x5a89b6(0x2bc)]||this[_0x5a89b6(0x9d)][_0x5a89b6(0x53b)](_0x16a7b0=>{const _0x36f801=_0x5a89b6;_0x16a7b0[_0x36f801(0x47a)](_0x1621c0);});},0x64));});}[_0xbb724d(0x392)](_0x39e413,_0x15d831){const _0x13c385=_0xbb724d;var _0x27d093;const _0x32e43a=(_0x27d093=this[_0x13c385(0x225)]['getCurrent']())==null?void 0x0:_0x27d093[_0x13c385(0x199)];if(!_0x32e43a)return;const _0x26633c=this[_0x13c385(0x29b)]();if(!_0x26633c)return;this['_cursors'][_0x13c385(0x53b)](_0x52b135=>{_0x52b135['makeDirty']();});const {scene:_0x2a923e}=_0x26633c,_0x5933af=Ds(Array[_0x13c385(0x177)](_0x15d831[_0x13c385(0x452)]()))[_0x13c385(0x1cf)](_0x1cca53=>{const _0x20f570=_0x13c385,{color:_0x2adb71,range:_0x4695cd,name:_0x22f4b5,selection:_0x1b5958,sheetID:_0x5d988a}=_0x1cca53,{startColumn:_0x500577,startRow:_0x4f1540,endColumn:_0x18e9f8,endRow:_0x1a3d38}=_0x4695cd,_0xc503d2=ye['getCoordByCell'](_0x4f1540,_0x500577,_0x2a923e,_0x32e43a),_0x688068=ye[_0x20f570(0x519)](_0x1a3d38,_0x18e9f8,_0x2a923e,_0x32e43a),{columnHeaderHeightAndMarginTop:_0x3af594}=_0x32e43a,{startX:_0xaa27b6,startY:_0x182118}=_0xc503d2,{endX:_0x1adb72,endY:_0x1c4672}=_0x688068,_0x58fd78=_0x1adb72-_0xaa27b6,_0xbb2692=_0x1c4672-_0x182118,_0x3b72d1={'labelPosition':_0x182118-_0x3af594>=Le?_0x20f570(0x1f8):_0x20f570(0x1ba),'sheetID':_0x5d988a,'range':_0x4695cd,'color':_0x2adb71,'name':_0x22f4b5,'selection':_0x1b5958,'left':_0xaa27b6,'top':_0x182118,'width':_0x58fd78,'height':_0xbb2692,'evented':!0x1,'zIndex':Os};return new Ii(_0x22f4b5,_0x3b72d1);});_0x2a923e[_0x13c385(0x162)](_0x5933af,Es),this[_0x13c385(0x9d)]=new Set(_0x5933af);}[_0xbb724d(0xdb)](){const _0x1a192e=_0xbb724d;var _0x392da6;(_0x392da6=this[_0x1a192e(0x9d)])==null||_0x392da6[_0x1a192e(0x53b)](_0x2242ee=>_0x2242ee[_0x1a192e(0x16a)]());}[_0xbb724d(0x29b)](){const _0x22adec=_0xbb724d;return ye[_0x22adec(0x482)](this[_0x22adec(0x1b0)][_0x22adec(0x274)],this[_0x22adec(0x1b0)]);}};It=ys([at(0x1,a[_0xbb724d(0x271)](ye[_0xbb724d(0x4c9)])),at(0x2,a[_0xbb724d(0x271)](De)),at(0x3,a[_0xbb724d(0x271)](a['ThemeService']))],It);function Ds(_0x3588c4){const _0xd5e8fb=_0xbb724d,_0x483593=new Map();return _0x3588c4[_0xd5e8fb(0x53b)](_0x4b840b=>{const _0x88f0da=_0xd5e8fb;if(_0x483593[_0x88f0da(0x4cd)](_0x4b840b[_0x88f0da(0x517)])){const _0x1602a1=_0x483593[_0x88f0da(0x2c9)](_0x4b840b['selection']);_0x1602a1[_0x88f0da(0x4cc)]+=',\x20'+_0x4b840b['name'];}else _0x483593['set'](_0x4b840b[_0x88f0da(0x517)],_0x4b840b);}),Array['from'](_0x483593[_0xd5e8fb(0x452)]());}var Z=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x55d597){const _0x16d62a=_0xbb724d;return _0x55d597&&_0x55d597[_0x16d62a(0x1ec)]&&Object[_0x16d62a(0x293)][_0x16d62a(0x1ce)]['call'](_0x55d597,_0x16d62a(0x4b3))?_0x55d597[_0x16d62a(0x4b3)]:_0x55d597;}var Ci={'exports':{}},Je={},Ps=ae,ws=Symbol[_0xbb724d(0x467)](_0xbb724d(0x306)),Us=Symbol[_0xbb724d(0x467)](_0xbb724d(0x4c5)),Ms=Object['prototype'][_0xbb724d(0x1ce)],As=Ps[_0xbb724d(0x45e)][_0xbb724d(0x1b9)],Ns={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function Ei(_0x28dfd4,_0x181728,_0x1b3968){const _0x4ae2d2=_0xbb724d;var _0x4c8923,_0x5bc1e7={},_0x45ceef=null,_0x442e3d=null;_0x1b3968!==void 0x0&&(_0x45ceef=''+_0x1b3968),_0x181728['key']!==void 0x0&&(_0x45ceef=''+_0x181728[_0x4ae2d2(0x224)]),_0x181728[_0x4ae2d2(0x174)]!==void 0x0&&(_0x442e3d=_0x181728[_0x4ae2d2(0x174)]);for(_0x4c8923 in _0x181728)Ms['call'](_0x181728,_0x4c8923)&&!Ns[_0x4ae2d2(0x1ce)](_0x4c8923)&&(_0x5bc1e7[_0x4c8923]=_0x181728[_0x4c8923]);if(_0x28dfd4&&_0x28dfd4['defaultProps']){for(_0x4c8923 in(_0x181728=_0x28dfd4[_0x4ae2d2(0x44a)],_0x181728))_0x5bc1e7[_0x4c8923]===void 0x0&&(_0x5bc1e7[_0x4c8923]=_0x181728[_0x4c8923]);}return{'$$typeof':ws,'type':_0x28dfd4,'key':_0x45ceef,'ref':_0x442e3d,'props':_0x5bc1e7,'_owner':As[_0x4ae2d2(0x43f)]};}Je[_0xbb724d(0x149)]=Us,Je[_0xbb724d(0x408)]=Ei,Je['jsxs']=Ei,Ci[_0xbb724d(0x34e)]=Je;var ge=Ci[_0xbb724d(0x34e)],ee=function(){const _0x5447b8=_0xbb724d;return ee=Object['assign']||function(_0x158c72){const _0x409f79=_0x195f;for(var _0x532b92,_0x53ea85=0x1,_0x561162=arguments[_0x409f79(0x2d9)];_0x53ea85<_0x561162;_0x53ea85++){_0x532b92=arguments[_0x53ea85];for(var _0x37ac3e in _0x532b92)Object['prototype'][_0x409f79(0x1ce)][_0x409f79(0x24a)](_0x532b92,_0x37ac3e)&&(_0x158c72[_0x37ac3e]=_0x532b92[_0x37ac3e]);}return _0x158c72;},ee[_0x5447b8(0xbd)](this,arguments);},Ls=function(_0x2d4587,_0x4f7324){const _0xa0c5b2=_0xbb724d;var _0x542b2f={};for(var _0x3d100f in _0x2d4587)Object[_0xa0c5b2(0x293)]['hasOwnProperty'][_0xa0c5b2(0x24a)](_0x2d4587,_0x3d100f)&&_0x4f7324[_0xa0c5b2(0x1a7)](_0x3d100f)<0x0&&(_0x542b2f[_0x3d100f]=_0x2d4587[_0x3d100f]);if(_0x2d4587!=null&&typeof Object[_0xa0c5b2(0x3bd)]==_0xa0c5b2(0x284)){for(var _0x1fd340=0x0,_0x3d100f=Object[_0xa0c5b2(0x3bd)](_0x2d4587);_0x1fd340<_0x3d100f[_0xa0c5b2(0x2d9)];_0x1fd340++)_0x4f7324['indexOf'](_0x3d100f[_0x1fd340])<0x0&&Object[_0xa0c5b2(0x293)][_0xa0c5b2(0x26f)]['call'](_0x2d4587,_0x3d100f[_0x1fd340])&&(_0x542b2f[_0x3d100f[_0x1fd340]]=_0x2d4587[_0x3d100f[_0x1fd340]]);}return _0x542b2f;},Pt=ae[_0xbb724d(0x432)](function(_0x31e142,_0x13cb19){const _0x5190b8=_0xbb724d;var _0x20a8bb=_0x31e142[_0x5190b8(0xf1)],_0x2f32b4=_0x31e142['id'],_0x47cb56=_0x31e142[_0x5190b8(0x2f7)],_0x30b2f5=_0x31e142[_0x5190b8(0x19c)],_0xe0a964=Ls(_0x31e142,[_0x5190b8(0xf1),'id','className',_0x5190b8(0x19c)]),_0x345f71='univerjs-icon\x20univerjs-icon-'[_0x5190b8(0x3b8)](_0x2f32b4,'\x20')[_0x5190b8(0x3b8)](_0x47cb56||'')[_0x5190b8(0x48c)](),_0x238793=ae['useRef']('_'[_0x5190b8(0x3b8)]($s()));return bi(_0x20a8bb,''['concat'](_0x2f32b4),{'defIds':_0x20a8bb[_0x5190b8(0x2e4)],'idSuffix':_0x238793[_0x5190b8(0x43f)]},ee({'ref':_0x13cb19,'className':_0x345f71},_0xe0a964),_0x30b2f5);});function bi(_0x42bf1a,_0x180028,_0x4176c2,_0x1be7cd,_0x434f15){const _0x12e577=_0xbb724d;return ae[_0x12e577(0x2c5)](_0x42bf1a[_0x12e577(0x1ef)],ee(ee({'key':_0x180028},xs(_0x42bf1a,_0x4176c2,_0x434f15)),_0x1be7cd),(js(_0x42bf1a,_0x4176c2)[_0x12e577(0x3d7)]||[])[_0x12e577(0x1cf)](function(_0x1dfa69,_0x13fb36){const _0x34adef=_0x12e577;return bi(_0x1dfa69,''[_0x34adef(0x3b8)](_0x180028,'-')[_0x34adef(0x3b8)](_0x42bf1a['tag'],'-')[_0x34adef(0x3b8)](_0x13fb36),_0x4176c2,void 0x0,_0x434f15);}));}function xs(_0x5c12e7,_0x10f49b,_0x4b9907){const _0xa6491b=_0xbb724d;var _0x57fdd1=ee({},_0x5c12e7[_0xa6491b(0x3f2)]);_0x4b9907!=null&&_0x4b9907[_0xa6491b(0x245)]&&_0x57fdd1[_0xa6491b(0x13f)]===_0xa6491b(0x245)&&(_0x57fdd1['fill']=_0x4b9907[_0xa6491b(0x245)]);var _0x533a61=_0x10f49b['defIds'];return!_0x533a61||_0x533a61[_0xa6491b(0x2d9)]===0x0||(_0x5c12e7[_0xa6491b(0x1ef)]==='use'&&_0x57fdd1[_0xa6491b(0xcc)]&&(_0x57fdd1['xlink:href']=_0x57fdd1[_0xa6491b(0xcc)]+_0x10f49b[_0xa6491b(0x434)]),Object[_0xa6491b(0x19d)](_0x57fdd1)[_0xa6491b(0x53b)](function(_0x1fc653){const _0x147b03=_0xa6491b;var _0x3238b3=_0x1fc653[0x0],_0x14f544=_0x1fc653[0x1];typeof _0x14f544=='string'&&(_0x57fdd1[_0x3238b3]=_0x14f544[_0x147b03(0x3fb)](/url\(#(.*)\)/,_0x147b03(0x3c6)[_0x147b03(0x3b8)](_0x10f49b['idSuffix'],')')));})),_0x57fdd1;}function js(_0x599807,_0x2e8610){const _0xb0a105=_0xbb724d;var _0x2e4560,_0x1236d1=_0x2e8610[_0xb0a105(0x2e4)];return!_0x1236d1||_0x1236d1[_0xb0a105(0x2d9)]===0x0?_0x599807:_0x599807[_0xb0a105(0x1ef)]==='defs'&&(!((_0x2e4560=_0x599807[_0xb0a105(0x3d7)])===null||_0x2e4560===void 0x0)&&_0x2e4560['length'])?ee(ee({},_0x599807),{'children':_0x599807[_0xb0a105(0x3d7)][_0xb0a105(0x1cf)](function(_0x1dedd2){const _0x821b73=_0xb0a105;return typeof _0x1dedd2[_0x821b73(0x3f2)]['id']=='string'&&_0x1236d1&&_0x1236d1['indexOf'](_0x1dedd2['attrs']['id'])>-0x1?ee(ee({},_0x1dedd2),{'attrs':ee(ee({},_0x1dedd2[_0x821b73(0x3f2)]),{'id':_0x1dedd2[_0x821b73(0x3f2)]['id']+_0x2e8610[_0x821b73(0x434)]})}):_0x1dedd2;})}):_0x599807;}function $s(){const _0x5b60c0=_0xbb724d;return Math[_0x5b60c0(0x227)]()['toString'](0x24)[_0x5b60c0(0x23d)](0x2,0x8);}Pt[_0xbb724d(0x35c)]=_0xbb724d(0x3b2);var Hs={'tag':_0xbb724d(0x1c2),'attrs':{'fill':_0xbb724d(0x1a9),'viewBox':_0xbb724d(0x13b),'width':_0xbb724d(0x1cb),'height':_0xbb724d(0x1cb)},'children':[{'tag':'g','attrs':{'clipPath':_0xbb724d(0x30d)},'children':[{'tag':_0xbb724d(0x24c),'attrs':{'stroke':_0xbb724d(0x2f8),'d':_0xbb724d(0x197),'strokeLinecap':_0xbb724d(0x2f2),'strokeLinejoin':_0xbb724d(0x2f2),'strokeWidth':1.2}}]},{'tag':_0xbb724d(0x289),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xbb724d(0x453)},'children':[{'tag':_0xbb724d(0x24c),'attrs':{'fill':_0xbb724d(0x37d),'d':_0xbb724d(0x4fd)}}]}]}],'defIds':[_0xbb724d(0x453)]},Ti=ae[_0xbb724d(0x432)](function(_0x236d70,_0x20b00b){const _0x38b70c=_0xbb724d;return ae['createElement'](Pt,Object['assign']({},_0x236d70,{'id':_0x38b70c(0xe3),'ref':_0x20b00b,'icon':Hs}));});Ti[_0xbb724d(0x35c)]=_0xbb724d(0x12a);var Bs={'tag':'svg','attrs':{'fill':_0xbb724d(0x1a9),'viewBox':_0xbb724d(0x46a),'width':_0xbb724d(0x1cb),'height':_0xbb724d(0x1cb)},'children':[{'tag':'g','attrs':{'clipPath':_0xbb724d(0x422)},'children':[{'tag':_0xbb724d(0x24c),'attrs':{'stroke':_0xbb724d(0x2f8),'d':_0xbb724d(0x1bc),'strokeLinecap':_0xbb724d(0x2f2),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xbb724d(0x289),'attrs':{},'children':[{'tag':_0xbb724d(0x2f6),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0xbb724d(0x4fd),'transform':_0xbb724d(0x1d4)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ri=ae[_0xbb724d(0x432)](function(_0x3a15c0,_0x1f2c4f){const _0x518cf3=_0xbb724d;return ae[_0x518cf3(0x2c5)](Pt,Object['assign']({},_0x3a15c0,{'id':_0x518cf3(0x35a),'ref':_0x1f2c4f,'icon':Bs}));});Ri['displayName']=_0xbb724d(0x4ca);function yi(_0x2599a4){const _0x21ed94=_0xbb724d;var _0x5372f3,_0x1cc900,_0x3df540='';if(typeof _0x2599a4=='string'||typeof _0x2599a4==_0x21ed94(0x1ff))_0x3df540+=_0x2599a4;else{if(typeof _0x2599a4=='object'){if(Array[_0x21ed94(0x99)](_0x2599a4)){var _0x116c0f=_0x2599a4['length'];for(_0x5372f3=0x0;_0x5372f3<_0x116c0f;_0x5372f3++)_0x2599a4[_0x5372f3]&&(_0x1cc900=yi(_0x2599a4[_0x5372f3]))&&(_0x3df540&&(_0x3df540+='\x20'),_0x3df540+=_0x1cc900);}else{for(_0x1cc900 in _0x2599a4)_0x2599a4[_0x1cc900]&&(_0x3df540&&(_0x3df540+='\x20'),_0x3df540+=_0x1cc900);}}}return _0x3df540;}function ks(){for(var _0x4b0410,_0x3c803c,_0x21fd53=0x0,_0x201c9d='',_0x39cc5f=arguments['length'];_0x21fd53<_0x39cc5f;_0x21fd53++)(_0x4b0410=arguments[_0x21fd53])&&(_0x3c803c=yi(_0x4b0410))&&(_0x201c9d&&(_0x201c9d+='\x20'),_0x201c9d+=_0x3c803c);return _0x201c9d;}const Ws=_0xbb724d(0x134),Fs=_0xbb724d(0x51c),Vs=_0xbb724d(0x140),Gs=_0xbb724d(0x36a),Ys=_0xbb724d(0x4c8),Me={'onlineStatusIcon':Ws,'onlineStatusTitle':Fs,'onlineStatus':Vs,'online':Gs,'offline':Ys};function Ks(_0x495db6){const _0xac2ce8=_0xbb724d;switch(_0x495db6){case q[_0xac2ce8(0x104)]:return _0xac2ce8(0x13a);case q[_0xac2ce8(0x43e)]:return _0xac2ce8(0x3d8);case q['FETCH_MISS']:return _0xac2ce8(0x2a0);case q['NOT_COLLAB']:return _0xac2ce8(0x4dd);case q['AWAITING']:case q[_0xac2ce8(0x4c6)]:return _0xac2ce8(0x173);case q[_0xac2ce8(0x1bb)]:case q[_0xac2ce8(0x314)]:return'collabStatus.synced';}}function Oi(_0x9dfeab){const _0x2ce600=_0xbb724d,{status$:_0x1ffe28}=_0x9dfeab,_0x318677=te[_0x2ce600(0x32d)](_0x1ffe28,q[_0x2ce600(0x191)]),_0x3d34d0=a[_0x2ce600(0x3a0)](a[_0x2ce600(0x2a7)]),_0x56b04c=a[_0x2ce600(0x3a0)](exports[_0x2ce600(0x2ec)]),_0x4fa49c=_0x318677!==q[_0x2ce600(0x104)],_0xcd896d=_0x3d34d0['t'](Ks(_0x318677)),_0x450ac5=ks(Me['onlineStatus'],{[Me[_0x2ce600(0x475)]]:_0x4fa49c,[Me['offline']]:!_0x4fa49c}),_0x10f62e=_0x4fa49c?ge['jsx'](Ri,{}):ge[_0x2ce600(0x408)](Ti,{}),_0x1ed953=ae['useCallback'](()=>{const _0x54a379=_0x2ce600;_0x4fa49c||_0x56b04c[_0x54a379(0x2d7)]();},[_0x4fa49c,_0x56b04c]);function _0x45c9e8(){const _0x45365c=_0x2ce600;return ge[_0x45365c(0x10b)](_0x45365c(0x12d),{'className':_0x450ac5,'onClick':_0x1ed953,'children':[ge[_0x45365c(0x408)](_0x45365c(0x12d),{'className':Me[_0x45365c(0x2af)],'children':_0x10f62e}),ge['jsx'](_0x45365c(0x12d),{'className':Me['onlineStatusTitle'],'children':_0xcd896d})]});}return _0x4fa49c?_0x45c9e8():ge[_0x2ce600(0x408)](Ce['Tooltip'],{'title':_0x3d34d0['t']('collab-client.tooltip.reconnect'),'children':_0x45c9e8()});}var qs=Object[_0xbb724d(0x164)],zs=Object[_0xbb724d(0x13d)],Xs=(_0x434ccf,_0x5cb016,_0x55bbf6,_0x4d289a)=>{for(var _0xd3da63=_0x4d289a>0x1?void 0x0:_0x4d289a?zs(_0x5cb016,_0x55bbf6):_0x5cb016,_0xbdb328=_0x434ccf['length']-0x1,_0x4c2a01;_0xbdb328>=0x0;_0xbdb328--)(_0x4c2a01=_0x434ccf[_0xbdb328])&&(_0xd3da63=(_0x4d289a?_0x4c2a01(_0x5cb016,_0x55bbf6,_0xd3da63):_0x4c2a01(_0xd3da63))||_0xd3da63);return _0x4d289a&&_0xd3da63&&qs(_0x5cb016,_0x55bbf6,_0xd3da63),_0xd3da63;},$e=(_0x10bf50,_0x43baa9)=>(_0x4aea2d,_0x3acc0b)=>_0x43baa9(_0x4aea2d,_0x3acc0b,_0x10bf50);exports[_0xbb724d(0x536)]=class extends a[_0xbb724d(0x4cb)]{constructor(_0x919102,_0xb2086a,_0x1fcef5,_0x378c0d){const _0x51120f=_0xbb724d;super(),I(this,_0x51120f(0x378),new A[(_0x51120f(0x11e))](q[_0x51120f(0x191)])),(this[_0x51120f(0x20b)]=_0x919102,this[_0x51120f(0x2fc)]=_0xb2086a,this[_0x51120f(0x299)]=_0x1fcef5,this[_0x51120f(0x413)]=_0x378c0d,this[_0x51120f(0x25e)](),this['_initStatusListener']());}[_0xbb724d(0x3d2)](){const _0x40f56c=_0xbb724d;this[_0x40f56c(0x2ad)](this['_univerInstanceService'][_0x40f56c(0x170)][_0x40f56c(0x52f)](A[_0x40f56c(0x1fa)](()=>{const _0x5de635=_0x40f56c,_0x253127=this[_0x5de635(0x20b)][_0x5de635(0x405)]();return _0x253127?this[_0x5de635(0x413)][_0x5de635(0x316)](_0x253127[_0x5de635(0x285)]()):A['of'](null);}),A[_0x40f56c(0x1fa)](_0x23006f=>_0x23006f?_0x23006f[_0x40f56c(0xc0)]:A['of'](q['NOT_COLLAB'])))[_0x40f56c(0x2ae)](_0x131e66=>{this['_status$']['next'](_0x131e66);}));}['_initStatusComponent'](){const _0x403f2a=_0xbb724d;this[_0x403f2a(0x2ad)](this[_0x403f2a(0x2fc)][_0x403f2a(0x1b3)](te['BuiltInUIPart'][_0x403f2a(0x12b)],()=>a[_0x403f2a(0x344)](Js({'status$':this['_status$'][_0x403f2a(0x14b)]()}),this[_0x403f2a(0x299)])));}},exports[_0xbb724d(0x536)]=Xs([$e(0x0,a[_0xbb724d(0x4c0)]),$e(0x1,te['IUIPartsService']),$e(0x2,a[_0xbb724d(0x271)](a['Injector'])),$e(0x3,a[_0xbb724d(0x271)](exports[_0xbb724d(0x8d)]))],exports[_0xbb724d(0x536)]);function Js(_0x3094a0){const {status$:_0xa1e03}=_0x3094a0;return function(){return ge['jsx'](Oi,{'status$':_0xa1e03});};}const wt=a['createIdentifier'](_0xbb724d(0x268));var Zs=Object[_0xbb724d(0x164)],Qs=Object['getOwnPropertyDescriptor'],er=(_0x26b39b,_0x8a43a2,_0x1288be,_0x10191b)=>{const _0x37d326=_0xbb724d;for(var _0x2816fe=_0x10191b>0x1?void 0x0:_0x10191b?Qs(_0x8a43a2,_0x1288be):_0x8a43a2,_0x162a2d=_0x26b39b[_0x37d326(0x2d9)]-0x1,_0x502c4c;_0x162a2d>=0x0;_0x162a2d--)(_0x502c4c=_0x26b39b[_0x162a2d])&&(_0x2816fe=(_0x10191b?_0x502c4c(_0x8a43a2,_0x1288be,_0x2816fe):_0x502c4c(_0x2816fe))||_0x2816fe);return _0x10191b&&_0x2816fe&&Zs(_0x8a43a2,_0x1288be,_0x2816fe),_0x2816fe;},Re=(_0x236c1b,_0x253fe9)=>(_0x473324,_0x46fec4)=>_0x253fe9(_0x473324,_0x46fec4,_0x236c1b);exports['DataLoaderController']=class extends a['RxDisposable']{constructor(_0x21819d,_0x2c8c6e,_0x55b0c4,_0x3b5dde,_0x6e2c4f,_0x4e1029){const _0x299534=_0xbb724d;super(),this[_0x299534(0x2fa)]=_0x21819d,this['_logService']=_0x2c8c6e,this[_0x299534(0x417)]=_0x55b0c4,this['_localCacheService']=_0x3b5dde,this['_snapshotService']=_0x6e2c4f,_0x4e1029?_0x4e1029==null||_0x4e1029['whenReady']()[_0x299534(0x161)](()=>this[_0x299534(0x3ab)]()):(this[_0x299534(0x1a3)][_0x299534(0x528)]('[DataLoaderController]',_0x299534(0x13e)),this[_0x299534(0x3ab)]());}async[_0xbb724d(0x3ab)](){const _0x5e8874=_0xbb724d,_0x879d7a=this[_0x5e8874(0x2fa)]['getParam']('unit'),_0x1dd9d9=this[_0x5e8874(0x2fa)][_0x5e8874(0x3bc)](_0x5e8874(0x50f));if(!_0x879d7a||!_0x1dd9d9){this[_0x5e8874(0x1a3)]['debug'](_0x5e8874(0x181),_0x5e8874(0x2c6));return;}switch(Number(_0x1dd9d9)){case ne[_0x5e8874(0x1ac)]:{const _0x2fed24=await this[_0x5e8874(0x3ec)](_0x879d7a);this[_0x5e8874(0x22c)](_0x2fed24);break;}case ne[_0x5e8874(0x44c)]:{await this[_0x5e8874(0x4c7)](_0x879d7a);break;}default:{this[_0x5e8874(0x1a3)]['error']('[DataLoaderController]',_0x5e8874(0xba));break;}}}async['_setupSubUnitSync'](_0x2a4b10){const _0x5bf1c4=_0xbb724d;await this[_0x5bf1c4(0x4fe)](_0x2a4b10),_0x2a4b10['activeSheet$'][_0x5bf1c4(0x52f)](A[_0x5bf1c4(0x262)](this['dispose$']))[_0x5bf1c4(0x2ae)](_0x32ef71=>{const _0x3536a7=_0x5bf1c4;_0x32ef71&&this[_0x3536a7(0x270)](_0x32ef71);}),this[_0x5bf1c4(0x2fa)]['urlChange$'][_0x5bf1c4(0x52f)](A[_0x5bf1c4(0x262)](this[_0x5bf1c4(0x279)]))[_0x5bf1c4(0x2ae)](()=>this[_0x5bf1c4(0x4fe)](_0x2a4b10));}[_0xbb724d(0x270)](_0x283911,_0x123b21=!0x1){const _0x51dbf2=_0xbb724d,_0x46ab30=this['_urlService'][_0x51dbf2(0x3bc)]('subunit');_0x283911[_0x51dbf2(0x17a)]()!==_0x46ab30&&this['_urlService'][_0x51dbf2(0x50d)]('subunit',_0x283911[_0x51dbf2(0x17a)](),_0x123b21);}async[_0xbb724d(0x4fe)](_0x440078){const _0x1dbb68=_0xbb724d;var _0x21d444;const _0x3eed83=this[_0x1dbb68(0x2fa)][_0x1dbb68(0x3bc)](_0x1dbb68(0x50a));if(!_0x3eed83||!_0x440078['getSheetBySheetId'](_0x3eed83)){const _0x4df597=_0x440078[_0x1dbb68(0x37a)]()[0x0],_0x1e784b=_0x440078['getSheetBySheetId'](_0x4df597);if(!_0x1e784b)return;this[_0x1dbb68(0x270)](_0x1e784b,!0x0),await this['_commandService'][_0x1dbb68(0x231)](k[_0x1dbb68(0x2ef)]['id'],{'unitId':_0x440078[_0x1dbb68(0x285)](),'subUnitId':_0x4df597});return;}((_0x21d444=_0x440078[_0x1dbb68(0x42e)]())==null?void 0x0:_0x21d444[_0x1dbb68(0x17a)]())!==_0x3eed83&&await this[_0x1dbb68(0x417)][_0x1dbb68(0x231)](k['SetWorksheetActivateCommand']['id'],{'unitId':_0x440078['getUnitId'](),'subUnitId':_0x3eed83});}async['_loadSheet'](_0xb52e5){const _0x3b55d6=_0xbb724d;let _0x340a74=0x0;const _0x80bd28=await this['_localCacheService'][_0x3b55d6(0x3f9)](_0xb52e5);return _0x80bd28&&(_0x80bd28[_0x3b55d6(0x30e)]||_0x80bd28[_0x3b55d6(0x374)][_0x3b55d6(0x2d9)]!==0x0)&&(_0x340a74=_0x80bd28[_0x3b55d6(0x390)]),_0x340a74===0x0&&this[_0x3b55d6(0x1a3)]['debug'](_0x3b55d6(0x181),_0x3b55d6(0x4e2)),this[_0x3b55d6(0x2aa)][_0x3b55d6(0x29d)](_0xb52e5,_0x340a74);}async[_0xbb724d(0x4c7)](_0x416f70){const _0x24fb9e=_0xbb724d;let _0x4471c5=0x0;const _0x1b316e=await this[_0x24fb9e(0x4ba)]['loadOfflineData'](_0x416f70);return _0x1b316e&&(_0x1b316e[_0x24fb9e(0x30e)]||_0x1b316e[_0x24fb9e(0x374)][_0x24fb9e(0x2d9)]!==0x0)&&(_0x4471c5=_0x1b316e[_0x24fb9e(0x390)]),_0x4471c5===0x0&&this[_0x24fb9e(0x1a3)][_0x24fb9e(0x528)]('[DataLoaderController]',_0x24fb9e(0x4e2)),this['_snapshotService'][_0x24fb9e(0x407)](_0x416f70,_0x4471c5);}},exports['DataLoaderController']=er([Re(0x0,wt),Re(0x1,a[_0xbb724d(0x2cb)]),Re(0x2,a['ICommandService']),Re(0x3,a['Inject'](exports[_0xbb724d(0x1d9)])),Re(0x4,a[_0xbb724d(0x271)](p[_0xbb724d(0x355)])),Re(0x5,a[_0xbb724d(0x18e)](Bi[_0xbb724d(0x2cd)]))],exports[_0xbb724d(0x410)]);var tr=Object[_0xbb724d(0x164)],ir=Object[_0xbb724d(0x13d)],nr=(_0x8fd3cd,_0x4a0768,_0x2353ce,_0x252c38)=>{const _0x9ddfd=_0xbb724d;for(var _0x51fbb1=_0x252c38>0x1?void 0x0:_0x252c38?ir(_0x4a0768,_0x2353ce):_0x4a0768,_0x5478d3=_0x8fd3cd[_0x9ddfd(0x2d9)]-0x1,_0x562c81;_0x5478d3>=0x0;_0x5478d3--)(_0x562c81=_0x8fd3cd[_0x5478d3])&&(_0x51fbb1=(_0x252c38?_0x562c81(_0x4a0768,_0x2353ce,_0x51fbb1):_0x562c81(_0x51fbb1))||_0x51fbb1);return _0x252c38&&_0x51fbb1&&tr(_0x4a0768,_0x2353ce,_0x51fbb1),_0x51fbb1;},Vt=(_0x4f1016,_0x4cf4af)=>(_0x5f3192,_0x2aebf3)=>_0x4cf4af(_0x5f3192,_0x2aebf3,_0x4f1016);const sr=_0xbb724d(0x319),rr=_0xbb724d(0x4b9);let Ge=class extends a[_0xbb724d(0x4cb)]{constructor(_0xd9ed65,_0x63af19){const _0x1db1dc=_0xbb724d;super(),this[_0x1db1dc(0x20b)]=_0xd9ed65,this[_0x1db1dc(0xe6)]=_0x63af19,this['_init']();}[_0xbb724d(0x3ab)](){const _0x476414=_0xbb724d;this[_0x476414(0x2ad)](this[_0x476414(0x20b)][_0x476414(0x170)][_0x476414(0x2ae)](()=>{const _0x534f6a=_0x476414;var _0xa0ac11;const _0x52881b=this[_0x534f6a(0x20b)]['getFocusedUnit']();let _0x7ea938=(_0xa0ac11=this[_0x534f6a(0xe6)][_0x534f6a(0x27c)](sr))!=null?_0xa0ac11:rr;_0x52881b instanceof a[_0x534f6a(0x1f0)]&&(_0x7ea938=_0x52881b[_0x534f6a(0x4cc)]),document[_0x534f6a(0x4d8)]=_0x7ea938;}));}};Ge=nr([Vt(0x0,a[_0xbb724d(0x4c0)]),Vt(0x1,a[_0xbb724d(0xbc)])],Ge);var or=Object['defineProperty'],ar=Object[_0xbb724d(0x13d)],cr=(_0x2aa664,_0x2b65bc,_0x25e40e,_0x315761)=>{for(var _0x5c717d=_0x315761>0x1?void 0x0:_0x315761?ar(_0x2b65bc,_0x25e40e):_0x2b65bc,_0x42207c=_0x2aa664['length']-0x1,_0x4b6223;_0x42207c>=0x0;_0x42207c--)(_0x4b6223=_0x2aa664[_0x42207c])&&(_0x5c717d=(_0x315761?_0x4b6223(_0x2b65bc,_0x25e40e,_0x5c717d):_0x4b6223(_0x5c717d))||_0x5c717d);return _0x315761&&_0x5c717d&&or(_0x2b65bc,_0x25e40e,_0x5c717d),_0x5c717d;},ct=(_0x20f209,_0x48d494)=>(_0xec4bc5,_0x4c0f6e)=>_0x48d494(_0xec4bc5,_0x4c0f6e,_0x20f209);let Ye=class{constructor(_0x21e731,_0x37b89d,_0x4fc29b){const _0x3f1b03=_0xbb724d;this[_0x3f1b03(0xe6)]=_0x21e731,this[_0x3f1b03(0x21d)]=_0x37b89d,this[_0x3f1b03(0x31e)]=_0x4fc29b,this[_0x3f1b03(0x212)]();}['init'](){const _0x18f38a=_0xbb724d;this[_0x18f38a(0x21d)][_0x18f38a(0x41a)]({'priority':0x1,'interceptor':(_0x2c0fbf,_0x388fc6)=>_0x388fc6(_0x2c0fbf)[_0x18f38a(0x52f)](A[_0x18f38a(0x89)](async _0x1f9dd2=>{const _0x5327c6=_0x18f38a,_0x429c46=_0x1f9dd2;if(_0x429c46[_0x5327c6(0x19f)]===0x191&&window['confirm'](this[_0x5327c6(0x31e)]['t'](_0x5327c6(0x24d)))){const _0x44c313=window['encodeURIComponent'](window[_0x5327c6(0x33e)][_0x5327c6(0xb5)]);window['location'][_0x5327c6(0xb5)]=this['_getLoginPath']()+_0x5327c6(0x4d1)+_0x44c313;}return _0x429c46;}))});}['_getLoginPath'](){const _0x5959e1=_0xbb724d;var _0x3ca406,_0x2f5576;const _0xe9e76b=this[_0x5959e1(0xe6)][_0x5959e1(0x27c)](hi),_0x860ed1=this[_0x5959e1(0xe6)][_0x5959e1(0x27c)](Q);return(_0x2f5576=(_0x3ca406=_0x860ed1==null?void 0x0:_0x860ed1[_0x5959e1(0x541)])!=null?_0x3ca406:_0xe9e76b)!=null?_0x2f5576:Ji;}};Ye=cr([ct(0x0,a[_0xbb724d(0xbc)]),ct(0x1,a[_0xbb724d(0x271)](z[_0xbb724d(0x539)])),ct(0x2,a[_0xbb724d(0x271)](a[_0xbb724d(0x2a7)]))],Ye);var lr=Object[_0xbb724d(0x164)],hr=Object[_0xbb724d(0x13d)],_r=(_0x2c5040,_0x3e10e2,_0x10d3ca,_0x261554)=>{for(var _0x18710f=_0x261554>0x1?void 0x0:_0x261554?hr(_0x3e10e2,_0x10d3ca):_0x3e10e2,_0x390046=_0x2c5040['length']-0x1,_0x19a7ad;_0x390046>=0x0;_0x390046--)(_0x19a7ad=_0x2c5040[_0x390046])&&(_0x18710f=(_0x261554?_0x19a7ad(_0x3e10e2,_0x10d3ca,_0x18710f):_0x19a7ad(_0x18710f))||_0x18710f);return _0x261554&&_0x18710f&&lr(_0x3e10e2,_0x10d3ca,_0x18710f),_0x18710f;},Gt=(_0x48e26a,_0x184f4b)=>(_0x6ea78b,_0x87c443)=>_0x184f4b(_0x6ea78b,_0x87c443,_0x48e26a);const Ut=_0xbb724d(0x37c),ur='/universer-api/authz';exports[_0xbb724d(0x1c6)]=class extends a[_0xbb724d(0x4cb)]{constructor(_0x51bde3,_0x45a0f6){const _0x4d849c=_0xbb724d;super(),this[_0x4d849c(0x43d)]=_0x51bde3,this[_0x4d849c(0xe6)]=_0x45a0f6,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x34329a=_0xbb724d,_0xc9746b=this;this[_0x34329a(0x2ad)](this[_0x34329a(0x43d)][_0x34329a(0x41a)]({'priority':0x3e7,'interceptor':z[_0x34329a(0x382)]({'isMatch'(_0x2fa160){const _0x3bd906=_0x34329a;var _0x290e21;if(_0x2fa160['method']===_0x3bd906(0x242)&&((_0x290e21=_0x2fa160[_0x3bd906(0x9e)])!=null&&_0x290e21[_0x3bd906(0x3a6)])){const {objectID:_0xf34a89,objectType:_0x2c008f}=_0x2fa160[_0x3bd906(0x9e)]['body']||{};if(!_0xf34a89||_0x2c008f===void 0x0)return!0x1;const _0x590e0b=_0xc9746b[_0x3bd906(0x3e9)]()+'/'+_0x2c008f+_0x3bd906(0x464)+_0xf34a89+'/allowed';if(_0x2fa160[_0x3bd906(0x28a)]===_0x590e0b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x22042b){const _0x32c80b=_0x34329a;var _0x26ad8d;return(_0x26ad8d=_0x22042b[_0x32c80b(0x9e)])==null?void 0x0:_0x26ad8d[_0x32c80b(0x3a6)];},'mergeParamsToRequest'(_0xc4bc1f,_0x277040){const _0x5e1ade=_0x34329a,_0x441d8a=_0xc9746b[_0x5e1ade(0x3e9)]()+_0x5e1ade(0x2d1),_0xaf11f5=_0xc4bc1f[_0x5e1ade(0x139)]((_0x250b72,_0x5eb2e2)=>{const _0x48b844=_0x5e1ade,{unitID:_0xec06c5,objectID:_0x1ae238,objectType:_0x39ecb4,actions:_0x39b8bb}=_0x5eb2e2;return _0x250b72[_0xec06c5]||(_0x250b72[_0xec06c5]={}),_0x250b72[_0xec06c5][_0x1ae238]||(_0x250b72[_0xec06c5][_0x1ae238]={'objectID':_0x1ae238,'objectType':_0x39ecb4,'actions':[]}),_0x250b72[_0xec06c5][_0x1ae238][_0x48b844(0x1d5)][_0x48b844(0x221)](..._0x39b8bb),_0x250b72;},{}),_0x509ec4=[];for(const _0x479eb9 in _0xaf11f5)for(const _0x3f0dcf in _0xaf11f5[_0x479eb9]){const {actions:_0x33533b,objectType:_0x1b9c4e}=_0xaf11f5[_0x479eb9][_0x3f0dcf],_0x4a3c51=[...new Set(_0x33533b)];_0x509ec4[_0x5e1ade(0x221)]({'unitID':_0x479eb9,'objectID':_0x3f0dcf,'objectType':_0x1b9c4e,'actions':_0x4a3c51});}return new z['HTTPRequest'](_0x5e1ade(0x242),_0x441d8a,{'headers':_0x277040[_0x5e1ade(0x92)],'withCredentials':_0x277040[_0x5e1ade(0x31d)],'responseType':_0x277040[_0x5e1ade(0x308)],'body':{'requests':_0x509ec4}});}},{'distributeResult'(_0x36aa63,_0x1c96fa){const _0x25d98c=_0x34329a,{objectActions:_0x104902}=_0x36aa63;return _0x1c96fa[_0x25d98c(0x1cf)](_0x55dbc2=>{const _0x31b3d0=_0x25d98c,{unitID:_0x457442,objectID:_0x295ce4,actions:_0x722544}=_0x55dbc2,_0x40d64a=_0x104902[_0x31b3d0(0x412)](_0x136575=>_0x136575['unitID']===_0x457442&&_0x136575[_0x31b3d0(0x352)]===_0x295ce4),_0x2dcb55=_0x722544[_0x31b3d0(0x1cf)](_0x570554=>_0x40d64a==null?void 0x0:_0x40d64a[_0x31b3d0(0x1d5)][_0x31b3d0(0x412)](_0x5ce566=>_0x5ce566[_0x31b3d0(0x1c0)]===_0x570554))[_0x31b3d0(0x21e)](_0x4c9bfd=>!!_0x4c9bfd);return{'config':_0x55dbc2,'result':{'actions':_0x2dcb55,'error':_0x36aa63[_0x31b3d0(0x1d8)]}};});}})}));}[_0xbb724d(0x3e9)](){const _0x28977b=_0xbb724d;var _0x19fea0,_0x586ba5;const _0x10b099=this['_configService'][_0x28977b(0x27c)](Ut),_0x2d43e7=this[_0x28977b(0xe6)][_0x28977b(0x27c)](Q);return(_0x586ba5=(_0x19fea0=_0x2d43e7==null?void 0x0:_0x2d43e7[_0x28977b(0x406)])!=null?_0x19fea0:_0x10b099)!=null?_0x586ba5:ur;}async[_0xbb724d(0x19a)](_0x5eb80b){const _0x3764da=_0xbb724d,_0x1d242a=this['_getAPIPrefixPath']()+'/'+_0x5eb80b[_0x3764da(0x3b3)]+'/object';return(await this[_0x3764da(0x43d)][_0x3764da(0x4e4)](_0x1d242a,{'body':_0x5eb80b}))['body'][_0x3764da(0x352)]||'';}async[_0xbb724d(0x171)](_0x158055){const _0x4c15e=_0xbb724d,_0x4e5bf5=this[_0x4c15e(0x3e9)]()+'/-/object/list';return(await this['_HTTPService'][_0x4c15e(0x4e4)](_0x4e5bf5,{'body':_0x158055}))[_0x4c15e(0x3a6)][_0x4c15e(0x90)];}async[_0xbb724d(0x1a8)](_0x59e6a9){const _0x2816c5=_0xbb724d,_0x2b175d=this[_0x2816c5(0x3e9)]()+'/'+_0x59e6a9['objectType']+_0x2816c5(0x464)+_0x59e6a9['objectID'];await this[_0x2816c5(0x43d)]['put'](_0x2b175d,{'body':_0x59e6a9});}async[_0xbb724d(0x39f)](_0x3d995f){const _0x228ec9=_0xbb724d,_0x3d73e9=this[_0x228ec9(0x3e9)]()+'/'+_0x3d995f['objectType']+_0x228ec9(0x464)+_0x3d995f[_0x228ec9(0x352)]+'/allowed';return(await this[_0x228ec9(0x43d)][_0x228ec9(0x4e4)](_0x3d73e9,{'body':_0x3d995f}))['body']['actions'];}async[_0xbb724d(0x1aa)](_0x343b10){const _0x596e38=_0xbb724d,_0x35e9b5=this[_0x596e38(0x3e9)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService']['post'](_0x35e9b5,{'body':{'requests':_0x343b10}}))['body'][_0x596e38(0x436)];}async['listRoles'](_0x2ce9f5){const _0xaf8e6d=_0xbb724d,_0x32fa0a=this[_0xaf8e6d(0x3e9)]()+'/'+_0x2ce9f5[_0xaf8e6d(0x3b3)]+'/role',_0x4c7ec0=await this['_HTTPService'][_0xaf8e6d(0x4e4)](_0x32fa0a,{'body':_0x2ce9f5});return{'roles':_0x4c7ec0['body'][_0xaf8e6d(0x331)],'actions':_0x4c7ec0[_0xaf8e6d(0x3a6)][_0xaf8e6d(0x1d5)]};}async[_0xbb724d(0xa3)](_0x238cea){const _0x3d7418=_0xbb724d,_0x3e265d=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x3d7418(0x43d)]['delete'](_0x3e265d,{'params':{'collaboratorID':_0x238cea[_0x3d7418(0x234)],'objectID':_0x238cea[_0x3d7418(0x352)],'unitID':_0x238cea['unitID']}});}async['updateCollaborator'](_0x40cd8b){const _0x3dd418=_0xbb724d,_0x25b44e=this[_0x3dd418(0x3e9)]()+_0x3dd418(0x130);await this['_HTTPService'][_0x3dd418(0x1e2)](_0x25b44e,{'body':_0x40cd8b});}async['createCollaborator'](_0x26613e){const _0x324550=_0xbb724d,_0x3af0b2=this[_0x324550(0x3e9)]()+_0x324550(0x130);await this[_0x324550(0x43d)]['post'](_0x3af0b2,{'body':_0x26613e});}async['listCollaborators'](_0x96a8ad){const _0x151c95=_0xbb724d,_0x3c713a=this['_getAPIPrefixPath']()+_0x151c95(0x130);return(await this[_0x151c95(0x43d)][_0x151c95(0x2c9)](_0x3c713a,{'params':{'objectID':_0x96a8ad[_0x151c95(0x352)],'unitID':_0x96a8ad[_0x151c95(0x447)]}}))['body'][_0x151c95(0x353)];}async['putCollaborators'](_0x436f55){const _0x298769=_0xbb724d,_0x2097b0=this[_0x298769(0x3e9)]()+_0x298769(0x130);await this[_0x298769(0x43d)][_0x298769(0x115)](_0x2097b0,{'body':_0x436f55});}},exports[_0xbb724d(0x1c6)]=_r([Gt(0x0,a['Inject'](z[_0xbb724d(0x539)])),Gt(0x1,a['Inject'](a[_0xbb724d(0xbc)]))],exports['AuthzIoHttpService']);var Di={'exports':{}};function dr(_0x47bd37){const _0x34f373=_0xbb724d;throw new Error(_0x34f373(0x12f)+_0x47bd37+_0x34f373(0x53d));}var lt={'exports':{}},Yt;function oe(){return Yt||(Yt=0x1,function(_0x52b238,_0x57d62d){(function(_0x26a8fc,_0x588448){const _0x3b0996=_0x195f;_0x52b238[_0x3b0996(0x34e)]=_0x588448();}(Z,function(){var _0x4873ff=_0x4873ff||function(_0x29ce12,_0x59dcaa){const _0x3c2fc4=_0x195f;var _0x6ec337;if(typeof window<'u'&&window[_0x3c2fc4(0x182)]&&(_0x6ec337=window[_0x3c2fc4(0x182)]),typeof self<'u'&&self['crypto']&&(_0x6ec337=self[_0x3c2fc4(0x182)]),typeof globalThis<'u'&&globalThis[_0x3c2fc4(0x182)]&&(_0x6ec337=globalThis[_0x3c2fc4(0x182)]),!_0x6ec337&&typeof window<'u'&&window[_0x3c2fc4(0x4c1)]&&(_0x6ec337=window[_0x3c2fc4(0x4c1)]),!_0x6ec337&&typeof Z<'u'&&Z['crypto']&&(_0x6ec337=Z['crypto']),!_0x6ec337&&typeof dr=='function')try{_0x6ec337=require(_0x3c2fc4(0x182));}catch{}var _0x4b47df=function(){const _0x26a1cc=_0x3c2fc4;if(_0x6ec337){if(typeof _0x6ec337[_0x26a1cc(0x458)]==_0x26a1cc(0x284))try{return _0x6ec337[_0x26a1cc(0x458)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x6ec337[_0x26a1cc(0x509)]=='function')try{return _0x6ec337[_0x26a1cc(0x509)](0x4)['readInt32LE']();}catch{}}throw new Error(_0x26a1cc(0x133));},_0x4184d5=Object[_0x3c2fc4(0x19a)]||(function(){function _0x5deddb(){}return function(_0x5267fe){const _0xa394db=_0x195f;var _0x20829d;return _0x5deddb[_0xa394db(0x293)]=_0x5267fe,_0x20829d=new _0x5deddb(),_0x5deddb['prototype']=null,_0x20829d;};}()),_0x14a715={},_0x1fbbd9=_0x14a715['lib']={},_0x2be530=_0x1fbbd9[_0x3c2fc4(0x1db)]=(function(){return{'extend':function(_0xf7c1a5){const _0x10c632=_0x195f;var _0x5b048f=_0x4184d5(this);return _0xf7c1a5&&_0x5b048f[_0x10c632(0x47f)](_0xf7c1a5),(!_0x5b048f[_0x10c632(0x1ce)](_0x10c632(0x212))||this[_0x10c632(0x212)]===_0x5b048f['init'])&&(_0x5b048f[_0x10c632(0x212)]=function(){const _0x166da0=_0x10c632;_0x5b048f[_0x166da0(0x4fb)][_0x166da0(0x212)][_0x166da0(0xbd)](this,arguments);}),_0x5b048f[_0x10c632(0x212)]['prototype']=_0x5b048f,_0x5b048f[_0x10c632(0x4fb)]=this,_0x5b048f;},'create':function(){const _0x110f8f=_0x195f;var _0x257d09=this[_0x110f8f(0x19c)]();return _0x257d09[_0x110f8f(0x212)][_0x110f8f(0xbd)](_0x257d09,arguments),_0x257d09;},'init':function(){},'mixIn':function(_0x5655e8){const _0x1d8491=_0x195f;for(var _0x5d4991 in _0x5655e8)_0x5655e8[_0x1d8491(0x1ce)](_0x5d4991)&&(this[_0x5d4991]=_0x5655e8[_0x5d4991]);_0x5655e8[_0x1d8491(0x1ce)]('toString')&&(this[_0x1d8491(0x3bf)]=_0x5655e8['toString']);},'clone':function(){const _0x2e6796=_0x195f;return this[_0x2e6796(0x212)]['prototype'][_0x2e6796(0x19c)](this);}};}()),_0x2017c1=_0x1fbbd9['WordArray']=_0x2be530[_0x3c2fc4(0x19c)]({'init':function(_0x5bca37,_0x2c2d4f){const _0x1587c6=_0x3c2fc4;_0x5bca37=this[_0x1587c6(0x1b2)]=_0x5bca37||[],_0x2c2d4f!=_0x59dcaa?this['sigBytes']=_0x2c2d4f:this[_0x1587c6(0x10a)]=_0x5bca37['length']*0x4;},'toString':function(_0x14ef53){return(_0x14ef53||_0x372a4f)['stringify'](this);},'concat':function(_0x3e14f0){const _0x5ca2c3=_0x3c2fc4;var _0x581568=this['words'],_0x326523=_0x3e14f0[_0x5ca2c3(0x1b2)],_0x272c32=this[_0x5ca2c3(0x10a)],_0x51bc94=_0x3e14f0[_0x5ca2c3(0x10a)];if(this['clamp'](),_0x272c32%0x4)for(var _0x1f8a57=0x0;_0x1f8a57<_0x51bc94;_0x1f8a57++){var _0x302a32=_0x326523[_0x1f8a57>>>0x2]>>>0x18-_0x1f8a57%0x4*0x8&0xff;_0x581568[_0x272c32+_0x1f8a57>>>0x2]|=_0x302a32<<0x18-(_0x272c32+_0x1f8a57)%0x4*0x8;}else{for(var _0x5d37f3=0x0;_0x5d37f3<_0x51bc94;_0x5d37f3+=0x4)_0x581568[_0x272c32+_0x5d37f3>>>0x2]=_0x326523[_0x5d37f3>>>0x2];}return this['sigBytes']+=_0x51bc94,this;},'clamp':function(){const _0x261278=_0x3c2fc4;var _0x4a188f=this[_0x261278(0x1b2)],_0xa831aa=this['sigBytes'];_0x4a188f[_0xa831aa>>>0x2]&=0xffffffff<<0x20-_0xa831aa%0x4*0x8,_0x4a188f['length']=_0x29ce12['ceil'](_0xa831aa/0x4);},'clone':function(){const _0x406d97=_0x3c2fc4;var _0x227337=_0x2be530['clone'][_0x406d97(0x24a)](this);return _0x227337[_0x406d97(0x1b2)]=this[_0x406d97(0x1b2)]['slice'](0x0),_0x227337;},'random':function(_0x139e08){const _0x305cb7=_0x3c2fc4;for(var _0x4cba37=[],_0x2eb934=0x0;_0x2eb934<_0x139e08;_0x2eb934+=0x4)_0x4cba37[_0x305cb7(0x221)](_0x4b47df());return new _0x2017c1[(_0x305cb7(0x212))](_0x4cba37,_0x139e08);}}),_0x34c035=_0x14a715['enc']={},_0x372a4f=_0x34c035['Hex']={'stringify':function(_0x107c20){const _0x30b8ae=_0x3c2fc4;for(var _0x37599f=_0x107c20[_0x30b8ae(0x1b2)],_0x3b9c05=_0x107c20[_0x30b8ae(0x10a)],_0x4207d0=[],_0x3eb231=0x0;_0x3eb231<_0x3b9c05;_0x3eb231++){var _0x15f63e=_0x37599f[_0x3eb231>>>0x2]>>>0x18-_0x3eb231%0x4*0x8&0xff;_0x4207d0[_0x30b8ae(0x221)]((_0x15f63e>>>0x4)[_0x30b8ae(0x3bf)](0x10)),_0x4207d0[_0x30b8ae(0x221)]((_0x15f63e&0xf)[_0x30b8ae(0x3bf)](0x10));}return _0x4207d0[_0x30b8ae(0x544)]('');},'parse':function(_0x317c54){const _0xa51660=_0x3c2fc4;for(var _0x263626=_0x317c54['length'],_0x5f3328=[],_0x5276db=0x0;_0x5276db<_0x263626;_0x5276db+=0x2)_0x5f3328[_0x5276db>>>0x3]|=parseInt(_0x317c54['substr'](_0x5276db,0x2),0x10)<<0x18-_0x5276db%0x8*0x4;return new _0x2017c1[(_0xa51660(0x212))](_0x5f3328,_0x263626/0x2);}},_0x79a55a=_0x34c035[_0x3c2fc4(0x48e)]={'stringify':function(_0x2a4dc5){const _0x362fe8=_0x3c2fc4;for(var _0x30ea8d=_0x2a4dc5[_0x362fe8(0x1b2)],_0x2de4c4=_0x2a4dc5['sigBytes'],_0x4001dd=[],_0x225813=0x0;_0x225813<_0x2de4c4;_0x225813++){var _0x57716b=_0x30ea8d[_0x225813>>>0x2]>>>0x18-_0x225813%0x4*0x8&0xff;_0x4001dd[_0x362fe8(0x221)](String[_0x362fe8(0x11f)](_0x57716b));}return _0x4001dd['join']('');},'parse':function(_0x246430){const _0xe221f0=_0x3c2fc4;for(var _0x2c1040=_0x246430[_0xe221f0(0x2d9)],_0x3fcf71=[],_0x204c67=0x0;_0x204c67<_0x2c1040;_0x204c67++)_0x3fcf71[_0x204c67>>>0x2]|=(_0x246430[_0xe221f0(0x1b1)](_0x204c67)&0xff)<<0x18-_0x204c67%0x4*0x8;return new _0x2017c1[(_0xe221f0(0x212))](_0x3fcf71,_0x2c1040);}},_0x30acdd=_0x34c035[_0x3c2fc4(0x3c7)]={'stringify':function(_0x24f104){const _0x5971ae=_0x3c2fc4;try{return decodeURIComponent(escape(_0x79a55a[_0x5971ae(0x44f)](_0x24f104)));}catch{throw new Error(_0x5971ae(0x2f4));}},'parse':function(_0x4840a4){const _0x2184a3=_0x3c2fc4;return _0x79a55a[_0x2184a3(0x2bd)](unescape(encodeURIComponent(_0x4840a4)));}},_0x1ef3b3=_0x1fbbd9[_0x3c2fc4(0x317)]=_0x2be530[_0x3c2fc4(0x19c)]({'reset':function(){const _0x2c7eb1=_0x3c2fc4;this[_0x2c7eb1(0x51e)]=new _0x2017c1[(_0x2c7eb1(0x212))](),this['_nDataBytes']=0x0;},'_append':function(_0x3416d1){const _0x42f0ae=_0x3c2fc4;typeof _0x3416d1=='string'&&(_0x3416d1=_0x30acdd[_0x42f0ae(0x2bd)](_0x3416d1)),this[_0x42f0ae(0x51e)][_0x42f0ae(0x3b8)](_0x3416d1),this[_0x42f0ae(0x8b)]+=_0x3416d1['sigBytes'];},'_process':function(_0x521f57){const _0x2e3195=_0x3c2fc4;var _0x14b221,_0x18f690=this['_data'],_0x172888=_0x18f690[_0x2e3195(0x1b2)],_0x2e272c=_0x18f690[_0x2e3195(0x10a)],_0x585ef8=this[_0x2e3195(0x3d5)],_0x219515=_0x585ef8*0x4,_0x54e862=_0x2e272c/_0x219515;_0x521f57?_0x54e862=_0x29ce12[_0x2e3195(0x4bc)](_0x54e862):_0x54e862=_0x29ce12['max']((_0x54e862|0x0)-this[_0x2e3195(0x1c9)],0x0);var _0x2a6aa0=_0x54e862*_0x585ef8,_0x239509=_0x29ce12['min'](_0x2a6aa0*0x4,_0x2e272c);if(_0x2a6aa0){for(var _0x12e461=0x0;_0x12e461<_0x2a6aa0;_0x12e461+=_0x585ef8)this[_0x2e3195(0x4a7)](_0x172888,_0x12e461);_0x14b221=_0x172888[_0x2e3195(0xf8)](0x0,_0x2a6aa0),_0x18f690[_0x2e3195(0x10a)]-=_0x239509;}return new _0x2017c1['init'](_0x14b221,_0x239509);},'clone':function(){const _0x201f61=_0x3c2fc4;var _0x2d583b=_0x2be530['clone'][_0x201f61(0x24a)](this);return _0x2d583b[_0x201f61(0x51e)]=this[_0x201f61(0x51e)][_0x201f61(0x35b)](),_0x2d583b;},'_minBufferSize':0x0});_0x1fbbd9[_0x3c2fc4(0x40d)]=_0x1ef3b3[_0x3c2fc4(0x19c)]({'cfg':_0x2be530['extend'](),'init':function(_0x6b8cca){const _0x50e202=_0x3c2fc4;this[_0x50e202(0x8f)]=this['cfg'][_0x50e202(0x19c)](_0x6b8cca),this['reset']();},'reset':function(){const _0x18d368=_0x3c2fc4;_0x1ef3b3[_0x18d368(0xfa)][_0x18d368(0x24a)](this),this[_0x18d368(0xfd)]();},'update':function(_0xd09c70){const _0x5d0325=_0x3c2fc4;return this[_0x5d0325(0x26e)](_0xd09c70),this['_process'](),this;},'finalize':function(_0x430269){const _0x37431=_0x3c2fc4;_0x430269&&this[_0x37431(0x26e)](_0x430269);var _0xef5c52=this['_doFinalize']();return _0xef5c52;},'blockSize':0x10,'_createHelper':function(_0x160c2a){return function(_0x367d35,_0x7ee82d){const _0x2769e8=_0x195f;return new _0x160c2a[(_0x2769e8(0x212))](_0x7ee82d)[_0x2769e8(0x257)](_0x367d35);};},'_createHmacHelper':function(_0x5c327a){return function(_0x1181b0,_0x28e726){const _0xdc2bfc=_0x195f;return new _0x346a25[(_0xdc2bfc(0x4da))][(_0xdc2bfc(0x212))](_0x5c327a,_0x28e726)[_0xdc2bfc(0x257)](_0x1181b0);};}});var _0x346a25=_0x14a715[_0x3c2fc4(0x327)]={};return _0x14a715;}(Math);return _0x4873ff;}));}(lt)),lt['exports'];}var ht={'exports':{}},Kt;function Pi(){const _0x1a20a8=_0xbb724d;return Kt||(Kt=0x1,function(_0x4c3741,_0x2767f2){(function(_0x328751,_0x601ce8){const _0x3c9b9=_0x195f;_0x4c3741[_0x3c9b9(0x34e)]=_0x601ce8(oe());}(Z,function(_0x36b047){const _0x4cd056=_0x195f;return(function(){const _0x292a24=_0x195f;var _0x1cc0f5=_0x36b047,_0x2ddd94=_0x1cc0f5[_0x292a24(0x256)],_0x53fc71=_0x2ddd94['WordArray'],_0x22591f=_0x1cc0f5[_0x292a24(0x96)];_0x22591f[_0x292a24(0x304)]={'stringify':function(_0x74c0eb){const _0x12208d=_0x292a24;var _0x4c07c7=_0x74c0eb[_0x12208d(0x1b2)],_0x54879d=_0x74c0eb[_0x12208d(0x10a)],_0x15595e=this['_map'];_0x74c0eb['clamp']();for(var _0x237433=[],_0x2b16e3=0x0;_0x2b16e3<_0x54879d;_0x2b16e3+=0x3)for(var _0x1f0f79=_0x4c07c7[_0x2b16e3>>>0x2]>>>0x18-_0x2b16e3%0x4*0x8&0xff,_0x434934=_0x4c07c7[_0x2b16e3+0x1>>>0x2]>>>0x18-(_0x2b16e3+0x1)%0x4*0x8&0xff,_0x4f71da=_0x4c07c7[_0x2b16e3+0x2>>>0x2]>>>0x18-(_0x2b16e3+0x2)%0x4*0x8&0xff,_0x5cae18=_0x1f0f79<<0x10|_0x434934<<0x8|_0x4f71da,_0x33e058=0x0;_0x33e058<0x4&&_0x2b16e3+_0x33e058*0.75<_0x54879d;_0x33e058++)_0x237433['push'](_0x15595e[_0x12208d(0xfc)](_0x5cae18>>>0x6*(0x3-_0x33e058)&0x3f));var _0x3f0146=_0x15595e[_0x12208d(0xfc)](0x40);if(_0x3f0146){for(;_0x237433[_0x12208d(0x2d9)]%0x4;)_0x237433['push'](_0x3f0146);}return _0x237433[_0x12208d(0x544)]('');},'parse':function(_0x1192f5){const _0x239e79=_0x292a24;var _0x2a5828=_0x1192f5[_0x239e79(0x2d9)],_0x1d9a57=this['_map'],_0x192f01=this[_0x239e79(0x1fe)];if(!_0x192f01){_0x192f01=this['_reverseMap']=[];for(var _0x41c915=0x0;_0x41c915<_0x1d9a57[_0x239e79(0x2d9)];_0x41c915++)_0x192f01[_0x1d9a57[_0x239e79(0x1b1)](_0x41c915)]=_0x41c915;}var _0x2676e4=_0x1d9a57['charAt'](0x40);if(_0x2676e4){var _0x36013e=_0x1192f5[_0x239e79(0x1a7)](_0x2676e4);_0x36013e!==-0x1&&(_0x2a5828=_0x36013e);}return _0x1eefb5(_0x1192f5,_0x2a5828,_0x192f01);},'_map':_0x292a24(0x4e8)};function _0x1eefb5(_0x438441,_0x284b3f,_0x5cea6f){const _0x29cb33=_0x292a24;for(var _0x5219c6=[],_0x30c3ac=0x0,_0x351fb8=0x0;_0x351fb8<_0x284b3f;_0x351fb8++)if(_0x351fb8%0x4){var _0x9dfeaf=_0x5cea6f[_0x438441[_0x29cb33(0x1b1)](_0x351fb8-0x1)]<<_0x351fb8%0x4*0x2,_0x3edd14=_0x5cea6f[_0x438441[_0x29cb33(0x1b1)](_0x351fb8)]>>>0x6-_0x351fb8%0x4*0x2,_0x1beec1=_0x9dfeaf|_0x3edd14;_0x5219c6[_0x30c3ac>>>0x2]|=_0x1beec1<<0x18-_0x30c3ac%0x4*0x8,_0x30c3ac++;}return _0x53fc71['create'](_0x5219c6,_0x30c3ac);}}()),_0x36b047[_0x4cd056(0x96)]['Base64'];}));}(ht)),ht[_0x1a20a8(0x34e)];}var _t={'exports':{}},qt;function fr(){const _0x58e35e=_0xbb724d;return qt||(qt=0x1,function(_0x559c9f,_0x39bf02){(function(_0x4a479e,_0x4a7cea){const _0x30283f=_0x195f;_0x559c9f[_0x30283f(0x34e)]=_0x4a7cea(oe());}(Z,function(_0x4f65a5){const _0x3383f9=_0x195f;return function(_0x2457a9){const _0x52d747=_0x195f;var _0x583688=_0x4f65a5,_0x3cd07f=_0x583688[_0x52d747(0x256)],_0x16a7e2=_0x3cd07f[_0x52d747(0x363)],_0x535fc9=_0x3cd07f[_0x52d747(0x40d)],_0x49c383=_0x583688['algo'],_0xefceb2=[];(function(){const _0x2144d4=_0x52d747;for(var _0x36de66=0x0;_0x36de66<0x40;_0x36de66++)_0xefceb2[_0x36de66]=_0x2457a9[_0x2144d4(0x3d9)](_0x2457a9[_0x2144d4(0x39d)](_0x36de66+0x1))*0x100000000|0x0;}());var _0x1dfaa7=_0x49c383['MD5']=_0x535fc9[_0x52d747(0x19c)]({'_doReset':function(){const _0x3e6831=_0x52d747;this[_0x3e6831(0x500)]=new _0x16a7e2[(_0x3e6831(0x212))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x30c399,_0x277d88){const _0x1f42e5=_0x52d747;for(var _0x2662cc=0x0;_0x2662cc<0x10;_0x2662cc++){var _0x2addfa=_0x277d88+_0x2662cc,_0x5e82a9=_0x30c399[_0x2addfa];_0x30c399[_0x2addfa]=(_0x5e82a9<<0x8|_0x5e82a9>>>0x18)&0xff00ff|(_0x5e82a9<<0x18|_0x5e82a9>>>0x8)&0xff00ff00;}var _0x542047=this[_0x1f42e5(0x500)]['words'],_0x5f2686=_0x30c399[_0x277d88+0x0],_0x425b2d=_0x30c399[_0x277d88+0x1],_0x2b68dc=_0x30c399[_0x277d88+0x2],_0x4a1144=_0x30c399[_0x277d88+0x3],_0x45fb3a=_0x30c399[_0x277d88+0x4],_0x437a89=_0x30c399[_0x277d88+0x5],_0x50dc6=_0x30c399[_0x277d88+0x6],_0x2d73fe=_0x30c399[_0x277d88+0x7],_0x3cf32a=_0x30c399[_0x277d88+0x8],_0x1c1ef9=_0x30c399[_0x277d88+0x9],_0x315c61=_0x30c399[_0x277d88+0xa],_0x16b3ff=_0x30c399[_0x277d88+0xb],_0x53c1a8=_0x30c399[_0x277d88+0xc],_0x3a0527=_0x30c399[_0x277d88+0xd],_0x433064=_0x30c399[_0x277d88+0xe],_0x3c351a=_0x30c399[_0x277d88+0xf],_0x3e8386=_0x542047[0x0],_0x2c7b52=_0x542047[0x1],_0x47585b=_0x542047[0x2],_0x1c8f46=_0x542047[0x3];_0x3e8386=_0x21482a(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x5f2686,0x7,_0xefceb2[0x0]),_0x1c8f46=_0x21482a(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x425b2d,0xc,_0xefceb2[0x1]),_0x47585b=_0x21482a(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x2b68dc,0x11,_0xefceb2[0x2]),_0x2c7b52=_0x21482a(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x4a1144,0x16,_0xefceb2[0x3]),_0x3e8386=_0x21482a(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x45fb3a,0x7,_0xefceb2[0x4]),_0x1c8f46=_0x21482a(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x437a89,0xc,_0xefceb2[0x5]),_0x47585b=_0x21482a(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x50dc6,0x11,_0xefceb2[0x6]),_0x2c7b52=_0x21482a(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x2d73fe,0x16,_0xefceb2[0x7]),_0x3e8386=_0x21482a(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x3cf32a,0x7,_0xefceb2[0x8]),_0x1c8f46=_0x21482a(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x1c1ef9,0xc,_0xefceb2[0x9]),_0x47585b=_0x21482a(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x315c61,0x11,_0xefceb2[0xa]),_0x2c7b52=_0x21482a(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x16b3ff,0x16,_0xefceb2[0xb]),_0x3e8386=_0x21482a(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x53c1a8,0x7,_0xefceb2[0xc]),_0x1c8f46=_0x21482a(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x3a0527,0xc,_0xefceb2[0xd]),_0x47585b=_0x21482a(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x433064,0x11,_0xefceb2[0xe]),_0x2c7b52=_0x21482a(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x3c351a,0x16,_0xefceb2[0xf]),_0x3e8386=_0x244ab0(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x425b2d,0x5,_0xefceb2[0x10]),_0x1c8f46=_0x244ab0(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x50dc6,0x9,_0xefceb2[0x11]),_0x47585b=_0x244ab0(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x16b3ff,0xe,_0xefceb2[0x12]),_0x2c7b52=_0x244ab0(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x5f2686,0x14,_0xefceb2[0x13]),_0x3e8386=_0x244ab0(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x437a89,0x5,_0xefceb2[0x14]),_0x1c8f46=_0x244ab0(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x315c61,0x9,_0xefceb2[0x15]),_0x47585b=_0x244ab0(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x3c351a,0xe,_0xefceb2[0x16]),_0x2c7b52=_0x244ab0(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x45fb3a,0x14,_0xefceb2[0x17]),_0x3e8386=_0x244ab0(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x1c1ef9,0x5,_0xefceb2[0x18]),_0x1c8f46=_0x244ab0(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x433064,0x9,_0xefceb2[0x19]),_0x47585b=_0x244ab0(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x4a1144,0xe,_0xefceb2[0x1a]),_0x2c7b52=_0x244ab0(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x3cf32a,0x14,_0xefceb2[0x1b]),_0x3e8386=_0x244ab0(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x3a0527,0x5,_0xefceb2[0x1c]),_0x1c8f46=_0x244ab0(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x2b68dc,0x9,_0xefceb2[0x1d]),_0x47585b=_0x244ab0(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x2d73fe,0xe,_0xefceb2[0x1e]),_0x2c7b52=_0x244ab0(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x53c1a8,0x14,_0xefceb2[0x1f]),_0x3e8386=_0x579a15(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x437a89,0x4,_0xefceb2[0x20]),_0x1c8f46=_0x579a15(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x3cf32a,0xb,_0xefceb2[0x21]),_0x47585b=_0x579a15(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x16b3ff,0x10,_0xefceb2[0x22]),_0x2c7b52=_0x579a15(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x433064,0x17,_0xefceb2[0x23]),_0x3e8386=_0x579a15(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x425b2d,0x4,_0xefceb2[0x24]),_0x1c8f46=_0x579a15(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x45fb3a,0xb,_0xefceb2[0x25]),_0x47585b=_0x579a15(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x2d73fe,0x10,_0xefceb2[0x26]),_0x2c7b52=_0x579a15(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x315c61,0x17,_0xefceb2[0x27]),_0x3e8386=_0x579a15(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x3a0527,0x4,_0xefceb2[0x28]),_0x1c8f46=_0x579a15(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x5f2686,0xb,_0xefceb2[0x29]),_0x47585b=_0x579a15(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x4a1144,0x10,_0xefceb2[0x2a]),_0x2c7b52=_0x579a15(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x50dc6,0x17,_0xefceb2[0x2b]),_0x3e8386=_0x579a15(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x1c1ef9,0x4,_0xefceb2[0x2c]),_0x1c8f46=_0x579a15(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x53c1a8,0xb,_0xefceb2[0x2d]),_0x47585b=_0x579a15(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x3c351a,0x10,_0xefceb2[0x2e]),_0x2c7b52=_0x579a15(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x2b68dc,0x17,_0xefceb2[0x2f]),_0x3e8386=_0xdbbee5(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x5f2686,0x6,_0xefceb2[0x30]),_0x1c8f46=_0xdbbee5(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x2d73fe,0xa,_0xefceb2[0x31]),_0x47585b=_0xdbbee5(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x433064,0xf,_0xefceb2[0x32]),_0x2c7b52=_0xdbbee5(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x437a89,0x15,_0xefceb2[0x33]),_0x3e8386=_0xdbbee5(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x53c1a8,0x6,_0xefceb2[0x34]),_0x1c8f46=_0xdbbee5(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x4a1144,0xa,_0xefceb2[0x35]),_0x47585b=_0xdbbee5(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x315c61,0xf,_0xefceb2[0x36]),_0x2c7b52=_0xdbbee5(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x425b2d,0x15,_0xefceb2[0x37]),_0x3e8386=_0xdbbee5(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x3cf32a,0x6,_0xefceb2[0x38]),_0x1c8f46=_0xdbbee5(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x3c351a,0xa,_0xefceb2[0x39]),_0x47585b=_0xdbbee5(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x50dc6,0xf,_0xefceb2[0x3a]),_0x2c7b52=_0xdbbee5(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x3a0527,0x15,_0xefceb2[0x3b]),_0x3e8386=_0xdbbee5(_0x3e8386,_0x2c7b52,_0x47585b,_0x1c8f46,_0x45fb3a,0x6,_0xefceb2[0x3c]),_0x1c8f46=_0xdbbee5(_0x1c8f46,_0x3e8386,_0x2c7b52,_0x47585b,_0x16b3ff,0xa,_0xefceb2[0x3d]),_0x47585b=_0xdbbee5(_0x47585b,_0x1c8f46,_0x3e8386,_0x2c7b52,_0x2b68dc,0xf,_0xefceb2[0x3e]),_0x2c7b52=_0xdbbee5(_0x2c7b52,_0x47585b,_0x1c8f46,_0x3e8386,_0x1c1ef9,0x15,_0xefceb2[0x3f]),_0x542047[0x0]=_0x542047[0x0]+_0x3e8386|0x0,_0x542047[0x1]=_0x542047[0x1]+_0x2c7b52|0x0,_0x542047[0x2]=_0x542047[0x2]+_0x47585b|0x0,_0x542047[0x3]=_0x542047[0x3]+_0x1c8f46|0x0;},'_doFinalize':function(){const _0x1a79d7=_0x52d747;var _0x57f0ae=this['_data'],_0x264d08=_0x57f0ae[_0x1a79d7(0x1b2)],_0xeb419f=this[_0x1a79d7(0x8b)]*0x8,_0x427642=_0x57f0ae['sigBytes']*0x8;_0x264d08[_0x427642>>>0x5]|=0x80<<0x18-_0x427642%0x20;var _0x42f89d=_0x2457a9[_0x1a79d7(0x2f3)](_0xeb419f/0x100000000),_0x186ff5=_0xeb419f;_0x264d08[(_0x427642+0x40>>>0x9<<0x4)+0xf]=(_0x42f89d<<0x8|_0x42f89d>>>0x18)&0xff00ff|(_0x42f89d<<0x18|_0x42f89d>>>0x8)&0xff00ff00,_0x264d08[(_0x427642+0x40>>>0x9<<0x4)+0xe]=(_0x186ff5<<0x8|_0x186ff5>>>0x18)&0xff00ff|(_0x186ff5<<0x18|_0x186ff5>>>0x8)&0xff00ff00,_0x57f0ae[_0x1a79d7(0x10a)]=(_0x264d08[_0x1a79d7(0x2d9)]+0x1)*0x4,this[_0x1a79d7(0x428)]();for(var _0x282b93=this['_hash'],_0x53fe6e=_0x282b93['words'],_0xe7750d=0x0;_0xe7750d<0x4;_0xe7750d++){var _0x24712c=_0x53fe6e[_0xe7750d];_0x53fe6e[_0xe7750d]=(_0x24712c<<0x8|_0x24712c>>>0x18)&0xff00ff|(_0x24712c<<0x18|_0x24712c>>>0x8)&0xff00ff00;}return _0x282b93;},'clone':function(){const _0xe4827=_0x52d747;var _0x569328=_0x535fc9[_0xe4827(0x35b)][_0xe4827(0x24a)](this);return _0x569328[_0xe4827(0x500)]=this['_hash'][_0xe4827(0x35b)](),_0x569328;}});function _0x21482a(_0x54fae3,_0x4fc5c4,_0x37b76d,_0x19e804,_0x2d712a,_0xe3e6ce,_0xf5032d){var _0x2fe6c9=_0x54fae3+(_0x4fc5c4&_0x37b76d|~_0x4fc5c4&_0x19e804)+_0x2d712a+_0xf5032d;return(_0x2fe6c9<<_0xe3e6ce|_0x2fe6c9>>>0x20-_0xe3e6ce)+_0x4fc5c4;}function _0x244ab0(_0x3c259d,_0x14dde3,_0x360667,_0x1125d6,_0x190ce3,_0x49ec9e,_0xe5cc1d){var _0xb35c60=_0x3c259d+(_0x14dde3&_0x1125d6|_0x360667&~_0x1125d6)+_0x190ce3+_0xe5cc1d;return(_0xb35c60<<_0x49ec9e|_0xb35c60>>>0x20-_0x49ec9e)+_0x14dde3;}function _0x579a15(_0x6ed014,_0x5db107,_0x4f1a6d,_0xe0c1d2,_0x5a4c0f,_0x3e0c58,_0x5d1139){var _0x2f0aed=_0x6ed014+(_0x5db107^_0x4f1a6d^_0xe0c1d2)+_0x5a4c0f+_0x5d1139;return(_0x2f0aed<<_0x3e0c58|_0x2f0aed>>>0x20-_0x3e0c58)+_0x5db107;}function _0xdbbee5(_0x117d67,_0xa46f4f,_0x564a64,_0x1bebde,_0x20e9d6,_0x4a997d,_0x37ea79){var _0x1341f5=_0x117d67+(_0x564a64^(_0xa46f4f|~_0x1bebde))+_0x20e9d6+_0x37ea79;return(_0x1341f5<<_0x4a997d|_0x1341f5>>>0x20-_0x4a997d)+_0xa46f4f;}_0x583688[_0x52d747(0x478)]=_0x535fc9['_createHelper'](_0x1dfaa7),_0x583688[_0x52d747(0x415)]=_0x535fc9['_createHmacHelper'](_0x1dfaa7);}(Math),_0x4f65a5[_0x3383f9(0x478)];}));}(_t)),_t[_0x58e35e(0x34e)];}var ut={'exports':{}},dt={'exports':{}},zt;function vr(){return zt||(zt=0x1,function(_0x183366,_0xe43e17){(function(_0xf02a58,_0x520901){_0x183366['exports']=_0x520901(oe());}(Z,function(_0x43a66f){const _0x45f6ef=_0x195f;return(function(){const _0x27f99c=_0x195f;var _0x498090=_0x43a66f,_0x19a8a1=_0x498090['lib'],_0x5cb2d6=_0x19a8a1[_0x27f99c(0x363)],_0x319bc2=_0x19a8a1[_0x27f99c(0x40d)],_0x31b790=_0x498090['algo'],_0x5e9e9b=[],_0xead457=_0x31b790[_0x27f99c(0x386)]=_0x319bc2[_0x27f99c(0x19c)]({'_doReset':function(){const _0x452273=_0x27f99c;this[_0x452273(0x500)]=new _0x5cb2d6[(_0x452273(0x212))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x500ca7,_0x57953d){const _0xf13abb=_0x27f99c;for(var _0x4d884e=this[_0xf13abb(0x500)]['words'],_0x3b6c5e=_0x4d884e[0x0],_0x3f6352=_0x4d884e[0x1],_0x410796=_0x4d884e[0x2],_0x61e917=_0x4d884e[0x3],_0x1c2c96=_0x4d884e[0x4],_0x39031d=0x0;_0x39031d<0x50;_0x39031d++){if(_0x39031d<0x10)_0x5e9e9b[_0x39031d]=_0x500ca7[_0x57953d+_0x39031d]|0x0;else{var _0x1030c7=_0x5e9e9b[_0x39031d-0x3]^_0x5e9e9b[_0x39031d-0x8]^_0x5e9e9b[_0x39031d-0xe]^_0x5e9e9b[_0x39031d-0x10];_0x5e9e9b[_0x39031d]=_0x1030c7<<0x1|_0x1030c7>>>0x1f;}var _0x369344=(_0x3b6c5e<<0x5|_0x3b6c5e>>>0x1b)+_0x1c2c96+_0x5e9e9b[_0x39031d];_0x39031d<0x14?_0x369344+=(_0x3f6352&_0x410796|~_0x3f6352&_0x61e917)+0x5a827999:_0x39031d<0x28?_0x369344+=(_0x3f6352^_0x410796^_0x61e917)+0x6ed9eba1:_0x39031d<0x3c?_0x369344+=(_0x3f6352&_0x410796|_0x3f6352&_0x61e917|_0x410796&_0x61e917)-0x70e44324:_0x369344+=(_0x3f6352^_0x410796^_0x61e917)-0x359d3e2a,_0x1c2c96=_0x61e917,_0x61e917=_0x410796,_0x410796=_0x3f6352<<0x1e|_0x3f6352>>>0x2,_0x3f6352=_0x3b6c5e,_0x3b6c5e=_0x369344;}_0x4d884e[0x0]=_0x4d884e[0x0]+_0x3b6c5e|0x0,_0x4d884e[0x1]=_0x4d884e[0x1]+_0x3f6352|0x0,_0x4d884e[0x2]=_0x4d884e[0x2]+_0x410796|0x0,_0x4d884e[0x3]=_0x4d884e[0x3]+_0x61e917|0x0,_0x4d884e[0x4]=_0x4d884e[0x4]+_0x1c2c96|0x0;},'_doFinalize':function(){const _0x5966fc=_0x27f99c;var _0xe691f2=this[_0x5966fc(0x51e)],_0x41e2e7=_0xe691f2[_0x5966fc(0x1b2)],_0x10ee51=this[_0x5966fc(0x8b)]*0x8,_0x1aa2cf=_0xe691f2[_0x5966fc(0x10a)]*0x8;return _0x41e2e7[_0x1aa2cf>>>0x5]|=0x80<<0x18-_0x1aa2cf%0x20,_0x41e2e7[(_0x1aa2cf+0x40>>>0x9<<0x4)+0xe]=Math[_0x5966fc(0x2f3)](_0x10ee51/0x100000000),_0x41e2e7[(_0x1aa2cf+0x40>>>0x9<<0x4)+0xf]=_0x10ee51,_0xe691f2[_0x5966fc(0x10a)]=_0x41e2e7['length']*0x4,this[_0x5966fc(0x428)](),this[_0x5966fc(0x500)];},'clone':function(){const _0x2d7925=_0x27f99c;var _0x98f420=_0x319bc2[_0x2d7925(0x35b)]['call'](this);return _0x98f420[_0x2d7925(0x500)]=this[_0x2d7925(0x500)][_0x2d7925(0x35b)](),_0x98f420;}});_0x498090[_0x27f99c(0x386)]=_0x319bc2['_createHelper'](_0xead457),_0x498090[_0x27f99c(0x380)]=_0x319bc2[_0x27f99c(0x1f4)](_0xead457);}()),_0x43a66f[_0x45f6ef(0x386)];}));}(dt)),dt['exports'];}var ft={'exports':{}},Xt;function Sr(){const _0x535f53=_0xbb724d;return Xt||(Xt=0x1,function(_0x3ea6ba,_0x1cb135){(function(_0x59e464,_0x369a8e){_0x3ea6ba['exports']=_0x369a8e(oe());}(Z,function(_0x2a9272){(function(){const _0x4962a7=_0x195f;var _0x46f2d0=_0x2a9272,_0x321bd6=_0x46f2d0[_0x4962a7(0x256)],_0x3aed1f=_0x321bd6[_0x4962a7(0x1db)],_0x5e1d23=_0x46f2d0[_0x4962a7(0x96)],_0x1797b6=_0x5e1d23[_0x4962a7(0x3c7)],_0x35ed80=_0x46f2d0['algo'];_0x35ed80[_0x4962a7(0x4da)]=_0x3aed1f[_0x4962a7(0x19c)]({'init':function(_0x1bc217,_0x367d20){const _0x593f1b=_0x4962a7;_0x1bc217=this[_0x593f1b(0x512)]=new _0x1bc217[(_0x593f1b(0x212))](),typeof _0x367d20==_0x593f1b(0x1eb)&&(_0x367d20=_0x1797b6[_0x593f1b(0x2bd)](_0x367d20));var _0x486bf8=_0x1bc217[_0x593f1b(0x3d5)],_0x139625=_0x486bf8*0x4;_0x367d20['sigBytes']>_0x139625&&(_0x367d20=_0x1bc217[_0x593f1b(0x257)](_0x367d20)),_0x367d20[_0x593f1b(0x19b)]();for(var _0x152f8c=this[_0x593f1b(0x10c)]=_0x367d20[_0x593f1b(0x35b)](),_0x4245d0=this['_iKey']=_0x367d20[_0x593f1b(0x35b)](),_0xa0360f=_0x152f8c[_0x593f1b(0x1b2)],_0x53b2db=_0x4245d0[_0x593f1b(0x1b2)],_0x1f8fd0=0x0;_0x1f8fd0<_0x486bf8;_0x1f8fd0++)_0xa0360f[_0x1f8fd0]^=0x5c5c5c5c,_0x53b2db[_0x1f8fd0]^=0x36363636;_0x152f8c[_0x593f1b(0x10a)]=_0x4245d0['sigBytes']=_0x139625,this['reset']();},'reset':function(){const _0x2fb1f6=_0x4962a7;var _0x42f6b7=this[_0x2fb1f6(0x512)];_0x42f6b7['reset'](),_0x42f6b7[_0x2fb1f6(0x1a8)](this[_0x2fb1f6(0x52d)]);},'update':function(_0x383a46){const _0x26d69e=_0x4962a7;return this[_0x26d69e(0x512)][_0x26d69e(0x1a8)](_0x383a46),this;},'finalize':function(_0x11db3f){const _0x415a86=_0x4962a7;var _0x62a6c=this[_0x415a86(0x512)],_0x191646=_0x62a6c[_0x415a86(0x257)](_0x11db3f);_0x62a6c[_0x415a86(0xfa)]();var _0x427e2e=_0x62a6c['finalize'](this[_0x415a86(0x10c)][_0x415a86(0x35b)]()[_0x415a86(0x3b8)](_0x191646));return _0x427e2e;}});}());}));}(ft)),ft[_0x535f53(0x34e)];}var Jt;function wi(){const _0x5d952c=_0xbb724d;return Jt||(Jt=0x1,function(_0x38fcf3,_0x5bd927){(function(_0xd4a890,_0x456c34,_0x2464bd){const _0x1ec380=_0x195f;_0x38fcf3[_0x1ec380(0x34e)]=_0x456c34(oe(),vr(),Sr());}(Z,function(_0xe1817f){const _0x26f25e=_0x195f;return(function(){const _0x153de1=_0x195f;var _0x120246=_0xe1817f,_0x2e6d03=_0x120246[_0x153de1(0x256)],_0x1df9ee=_0x2e6d03[_0x153de1(0x1db)],_0xc86871=_0x2e6d03[_0x153de1(0x363)],_0x4984e5=_0x120246[_0x153de1(0x327)],_0x12488f=_0x4984e5[_0x153de1(0x478)],_0x194812=_0x4984e5[_0x153de1(0x189)]=_0x1df9ee[_0x153de1(0x19c)]({'cfg':_0x1df9ee['extend']({'keySize':0x80/0x20,'hasher':_0x12488f,'iterations':0x1}),'init':function(_0x570aef){const _0x527ce8=_0x153de1;this[_0x527ce8(0x8f)]=this[_0x527ce8(0x8f)][_0x527ce8(0x19c)](_0x570aef);},'compute':function(_0x1624c4,_0x1528ff){const _0x4fa043=_0x153de1;for(var _0x119290,_0x19f1ae=this[_0x4fa043(0x8f)],_0x3be332=_0x19f1ae[_0x4fa043(0x184)][_0x4fa043(0x19a)](),_0x5f9f=_0xc86871['create'](),_0x3ff080=_0x5f9f[_0x4fa043(0x1b2)],_0x2ba9c0=_0x19f1ae[_0x4fa043(0xce)],_0x457e9b=_0x19f1ae[_0x4fa043(0x4b6)];_0x3ff080[_0x4fa043(0x2d9)]<_0x2ba9c0;){_0x119290&&_0x3be332[_0x4fa043(0x1a8)](_0x119290),_0x119290=_0x3be332[_0x4fa043(0x1a8)](_0x1624c4)[_0x4fa043(0x257)](_0x1528ff),_0x3be332['reset']();for(var _0x157073=0x1;_0x157073<_0x457e9b;_0x157073++)_0x119290=_0x3be332['finalize'](_0x119290),_0x3be332['reset']();_0x5f9f['concat'](_0x119290);}return _0x5f9f['sigBytes']=_0x2ba9c0*0x4,_0x5f9f;}});_0x120246[_0x153de1(0x189)]=function(_0x1d31cf,_0x240a90,_0x102250){const _0xd91993=_0x153de1;return _0x194812[_0xd91993(0x19a)](_0x102250)['compute'](_0x1d31cf,_0x240a90);};}()),_0xe1817f[_0x26f25e(0x189)];}));}(ut)),ut[_0x5d952c(0x34e)];}var vt={'exports':{}},Zt;function Ui(){const _0x20864b=_0xbb724d;return Zt||(Zt=0x1,function(_0x1a971c,_0x352ef6){(function(_0x2f9a1f,_0x462c80,_0x622766){_0x1a971c['exports']=_0x462c80(oe(),wi());}(Z,function(_0x4f9512){const _0x111b9f=_0x195f;_0x4f9512[_0x111b9f(0x256)][_0x111b9f(0x263)]||function(_0x585fb9){const _0x18cd9d=_0x111b9f;var _0x2a9d5a=_0x4f9512,_0x2e989c=_0x2a9d5a[_0x18cd9d(0x256)],_0x2bf006=_0x2e989c[_0x18cd9d(0x1db)],_0x1fa9b7=_0x2e989c['WordArray'],_0x2ea379=_0x2e989c[_0x18cd9d(0x317)],_0x47a28f=_0x2a9d5a[_0x18cd9d(0x96)];_0x47a28f[_0x18cd9d(0x3c7)];var _0x49259c=_0x47a28f['Base64'],_0x22e497=_0x2a9d5a['algo'],_0x5b7458=_0x22e497[_0x18cd9d(0x189)],_0x4049ce=_0x2e989c[_0x18cd9d(0x263)]=_0x2ea379[_0x18cd9d(0x19c)]({'cfg':_0x2bf006[_0x18cd9d(0x19c)](),'createEncryptor':function(_0x268f30,_0xb2146a){const _0x2c12ad=_0x18cd9d;return this[_0x2c12ad(0x19a)](this[_0x2c12ad(0x1fc)],_0x268f30,_0xb2146a);},'createDecryptor':function(_0xfc4832,_0x292b46){const _0x4e283c=_0x18cd9d;return this['create'](this[_0x4e283c(0x143)],_0xfc4832,_0x292b46);},'init':function(_0x33a124,_0x1ceb6f,_0x2864b2){const _0x446172=_0x18cd9d;this[_0x446172(0x8f)]=this[_0x446172(0x8f)]['extend'](_0x2864b2),this[_0x446172(0x163)]=_0x33a124,this[_0x446172(0x4e9)]=_0x1ceb6f,this[_0x446172(0xfa)]();},'reset':function(){const _0x44d135=_0x18cd9d;_0x2ea379[_0x44d135(0xfa)][_0x44d135(0x24a)](this),this[_0x44d135(0xfd)]();},'process':function(_0x5a161a){const _0x535984=_0x18cd9d;return this[_0x535984(0x26e)](_0x5a161a),this[_0x535984(0x428)]();},'finalize':function(_0x46d9e3){const _0x325664=_0x18cd9d;_0x46d9e3&&this[_0x325664(0x26e)](_0x46d9e3);var _0x250073=this[_0x325664(0x204)]();return _0x250073;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0xa343ae(_0x326f7c){const _0x5dc4d1=_0x195f;return typeof _0x326f7c==_0x5dc4d1(0x1eb)?_0x1ceaa5:_0x21d495;}return function(_0x14a024){return{'encrypt':function(_0x3125d6,_0x3eaf39,_0x36ec21){const _0x4aa09c=_0x195f;return _0xa343ae(_0x3eaf39)[_0x4aa09c(0xda)](_0x14a024,_0x3125d6,_0x3eaf39,_0x36ec21);},'decrypt':function(_0x56d616,_0x4f7fc3,_0x505ad2){const _0x5e012e=_0x195f;return _0xa343ae(_0x4f7fc3)[_0x5e012e(0x377)](_0x14a024,_0x56d616,_0x4f7fc3,_0x505ad2);}};};}())});_0x2e989c[_0x18cd9d(0x2c1)]=_0x4049ce[_0x18cd9d(0x19c)]({'_doFinalize':function(){const _0xc7f9b3=_0x18cd9d;var _0x26ac0f=this[_0xc7f9b3(0x428)](!0x0);return _0x26ac0f;},'blockSize':0x1});var _0x4b9b83=_0x2a9d5a['mode']={},_0x180a59=_0x2e989c[_0x18cd9d(0x169)]=_0x2bf006['extend']({'createEncryptor':function(_0x1cd7b5,_0x11837d){const _0x1c6abe=_0x18cd9d;return this[_0x1c6abe(0x236)][_0x1c6abe(0x19a)](_0x1cd7b5,_0x11837d);},'createDecryptor':function(_0xf2eb8c,_0x30b2f9){const _0x58b3dd=_0x18cd9d;return this['Decryptor'][_0x58b3dd(0x19a)](_0xf2eb8c,_0x30b2f9);},'init':function(_0x139dfc,_0x3c2ae2){const _0x21baf8=_0x18cd9d;this[_0x21baf8(0x2ba)]=_0x139dfc,this[_0x21baf8(0x429)]=_0x3c2ae2;}}),_0x57b7f6=_0x4b9b83[_0x18cd9d(0x369)]=(function(){const _0xfdafef=_0x18cd9d;var _0x2f39e4=_0x180a59[_0xfdafef(0x19c)]();_0x2f39e4[_0xfdafef(0x236)]=_0x2f39e4[_0xfdafef(0x19c)]({'processBlock':function(_0x48ea32,_0x33d80d){const _0x1de5e5=_0xfdafef;var _0x535385=this[_0x1de5e5(0x2ba)],_0x7dba62=_0x535385[_0x1de5e5(0x3d5)];_0x43ab12[_0x1de5e5(0x24a)](this,_0x48ea32,_0x33d80d,_0x7dba62),_0x535385[_0x1de5e5(0x44d)](_0x48ea32,_0x33d80d),this[_0x1de5e5(0x261)]=_0x48ea32['slice'](_0x33d80d,_0x33d80d+_0x7dba62);}}),_0x2f39e4[_0xfdafef(0x11a)]=_0x2f39e4[_0xfdafef(0x19c)]({'processBlock':function(_0x321117,_0x3681c8){const _0x29a30d=_0xfdafef;var _0x28ac45=this['_cipher'],_0x4e21d5=_0x28ac45[_0x29a30d(0x3d5)],_0x83105b=_0x321117['slice'](_0x3681c8,_0x3681c8+_0x4e21d5);_0x28ac45['decryptBlock'](_0x321117,_0x3681c8),_0x43ab12['call'](this,_0x321117,_0x3681c8,_0x4e21d5),this[_0x29a30d(0x261)]=_0x83105b;}});function _0x43ab12(_0xbdc6c5,_0x341dad,_0x3d88d3){const _0x2f7076=_0xfdafef;var _0x59ad2c,_0x11ad62=this[_0x2f7076(0x429)];_0x11ad62?(_0x59ad2c=_0x11ad62,this[_0x2f7076(0x429)]=_0x585fb9):_0x59ad2c=this[_0x2f7076(0x261)];for(var _0x1979d0=0x0;_0x1979d0<_0x3d88d3;_0x1979d0++)_0xbdc6c5[_0x341dad+_0x1979d0]^=_0x59ad2c[_0x1979d0];}return _0x2f39e4;}()),_0x53c245=_0x2a9d5a[_0x18cd9d(0xfb)]={},_0x29dc3a=_0x53c245['Pkcs7']={'pad':function(_0x4645d8,_0x1be184){const _0x537d52=_0x18cd9d;for(var _0x15dedf=_0x1be184*0x4,_0x2d60fd=_0x15dedf-_0x4645d8[_0x537d52(0x10a)]%_0x15dedf,_0x469725=_0x2d60fd<<0x18|_0x2d60fd<<0x10|_0x2d60fd<<0x8|_0x2d60fd,_0x4ceb75=[],_0x275a43=0x0;_0x275a43<_0x2d60fd;_0x275a43+=0x4)_0x4ceb75[_0x537d52(0x221)](_0x469725);var _0x123552=_0x1fa9b7[_0x537d52(0x19a)](_0x4ceb75,_0x2d60fd);_0x4645d8[_0x537d52(0x3b8)](_0x123552);},'unpad':function(_0x1607bc){const _0x4f59f5=_0x18cd9d;var _0x573d61=_0x1607bc['words'][_0x1607bc[_0x4f59f5(0x10a)]-0x1>>>0x2]&0xff;_0x1607bc[_0x4f59f5(0x10a)]-=_0x573d61;}};_0x2e989c[_0x18cd9d(0x15c)]=_0x4049ce['extend']({'cfg':_0x4049ce['cfg'][_0x18cd9d(0x19c)]({'mode':_0x57b7f6,'padding':_0x29dc3a}),'reset':function(){const _0xe0cc6c=_0x18cd9d;var _0x3172ca;_0x4049ce[_0xe0cc6c(0xfa)]['call'](this);var _0x4cfa0e=this[_0xe0cc6c(0x8f)],_0x1007eb=_0x4cfa0e['iv'],_0x5e3bc5=_0x4cfa0e['mode'];this[_0xe0cc6c(0x163)]==this[_0xe0cc6c(0x1fc)]?_0x3172ca=_0x5e3bc5[_0xe0cc6c(0x22d)]:(_0x3172ca=_0x5e3bc5[_0xe0cc6c(0xe9)],this[_0xe0cc6c(0x1c9)]=0x1),this[_0xe0cc6c(0x391)]&&this[_0xe0cc6c(0x391)][_0xe0cc6c(0x53c)]==_0x3172ca?this[_0xe0cc6c(0x391)][_0xe0cc6c(0x212)](this,_0x1007eb&&_0x1007eb[_0xe0cc6c(0x1b2)]):(this[_0xe0cc6c(0x391)]=_0x3172ca[_0xe0cc6c(0x24a)](_0x5e3bc5,this,_0x1007eb&&_0x1007eb[_0xe0cc6c(0x1b2)]),this[_0xe0cc6c(0x391)][_0xe0cc6c(0x53c)]=_0x3172ca);},'_doProcessBlock':function(_0x148618,_0x363bdc){const _0x4e7b45=_0x18cd9d;this[_0x4e7b45(0x391)][_0x4e7b45(0x4bd)](_0x148618,_0x363bdc);},'_doFinalize':function(){const _0x5ce6a7=_0x18cd9d;var _0x420716,_0x3c67f9=this['cfg'][_0x5ce6a7(0x195)];return this['_xformMode']==this[_0x5ce6a7(0x1fc)]?(_0x3c67f9['pad'](this['_data'],this['blockSize']),_0x420716=this[_0x5ce6a7(0x428)](!0x0)):(_0x420716=this['_process'](!0x0),_0x3c67f9[_0x5ce6a7(0x23f)](_0x420716)),_0x420716;},'blockSize':0x80/0x20});var _0x45f01d=_0x2e989c['CipherParams']=_0x2bf006[_0x18cd9d(0x19c)]({'init':function(_0x1fb345){const _0x6f8388=_0x18cd9d;this[_0x6f8388(0x47f)](_0x1fb345);},'toString':function(_0x202a3e){const _0x3ba1d2=_0x18cd9d;return(_0x202a3e||this[_0x3ba1d2(0xa6)])['stringify'](this);}}),_0x281952=_0x2a9d5a[_0x18cd9d(0x243)]={},_0x3b6e0e=_0x281952[_0x18cd9d(0x4e0)]={'stringify':function(_0x57933c){const _0x1bb6bb=_0x18cd9d;var _0x2c042f,_0x5e4bb7=_0x57933c[_0x1bb6bb(0x142)],_0x930932=_0x57933c[_0x1bb6bb(0x484)];return _0x930932?_0x2c042f=_0x1fa9b7[_0x1bb6bb(0x19a)]([0x53616c74,0x65645f5f])[_0x1bb6bb(0x3b8)](_0x930932)['concat'](_0x5e4bb7):_0x2c042f=_0x5e4bb7,_0x2c042f['toString'](_0x49259c);},'parse':function(_0x2c4d38){const _0x1118cc=_0x18cd9d;var _0x3f03d5,_0x192e6b=_0x49259c[_0x1118cc(0x2bd)](_0x2c4d38),_0x40660d=_0x192e6b[_0x1118cc(0x1b2)];return _0x40660d[0x0]==0x53616c74&&_0x40660d[0x1]==0x65645f5f&&(_0x3f03d5=_0x1fa9b7['create'](_0x40660d['slice'](0x2,0x4)),_0x40660d['splice'](0x0,0x4),_0x192e6b[_0x1118cc(0x10a)]-=0x10),_0x45f01d['create']({'ciphertext':_0x192e6b,'salt':_0x3f03d5});}},_0x21d495=_0x2e989c['SerializableCipher']=_0x2bf006[_0x18cd9d(0x19c)]({'cfg':_0x2bf006[_0x18cd9d(0x19c)]({'format':_0x3b6e0e}),'encrypt':function(_0x86e222,_0x4a6554,_0x190812,_0x556941){const _0x1a30a0=_0x18cd9d;_0x556941=this[_0x1a30a0(0x8f)][_0x1a30a0(0x19c)](_0x556941);var _0x280f8f=_0x86e222[_0x1a30a0(0x22d)](_0x190812,_0x556941),_0x21fd55=_0x280f8f[_0x1a30a0(0x257)](_0x4a6554),_0x4d9833=_0x280f8f[_0x1a30a0(0x8f)];return _0x45f01d[_0x1a30a0(0x19a)]({'ciphertext':_0x21fd55,'key':_0x190812,'iv':_0x4d9833['iv'],'algorithm':_0x86e222,'mode':_0x4d9833['mode'],'padding':_0x4d9833['padding'],'blockSize':_0x86e222[_0x1a30a0(0x3d5)],'formatter':_0x556941[_0x1a30a0(0x243)]});},'decrypt':function(_0x38bb86,_0x1ac29f,_0x249c67,_0x1fd4a7){const _0x50e601=_0x18cd9d;_0x1fd4a7=this[_0x50e601(0x8f)][_0x50e601(0x19c)](_0x1fd4a7),_0x1ac29f=this['_parse'](_0x1ac29f,_0x1fd4a7[_0x50e601(0x243)]);var _0x295959=_0x38bb86['createDecryptor'](_0x249c67,_0x1fd4a7)['finalize'](_0x1ac29f['ciphertext']);return _0x295959;},'_parse':function(_0x463170,_0x357676){const _0x5d60bb=_0x18cd9d;return typeof _0x463170==_0x5d60bb(0x1eb)?_0x357676[_0x5d60bb(0x2bd)](_0x463170,this):_0x463170;}}),_0x1e05bd=_0x2a9d5a[_0x18cd9d(0x1e1)]={},_0x241c33=_0x1e05bd[_0x18cd9d(0x4e0)]={'execute':function(_0x10f784,_0x2b6819,_0x53cea1,_0x347050,_0x2b1a5c){const _0x222195=_0x18cd9d;if(_0x347050||(_0x347050=_0x1fa9b7[_0x222195(0x227)](0x40/0x8)),_0x2b1a5c)var _0x3a6f4a=_0x5b7458[_0x222195(0x19a)]({'keySize':_0x2b6819+_0x53cea1,'hasher':_0x2b1a5c})[_0x222195(0x154)](_0x10f784,_0x347050);else var _0x3a6f4a=_0x5b7458[_0x222195(0x19a)]({'keySize':_0x2b6819+_0x53cea1})['compute'](_0x10f784,_0x347050);var _0x33f6d8=_0x1fa9b7['create'](_0x3a6f4a[_0x222195(0x1b2)][_0x222195(0x2c3)](_0x2b6819),_0x53cea1*0x4);return _0x3a6f4a['sigBytes']=_0x2b6819*0x4,_0x45f01d[_0x222195(0x19a)]({'key':_0x3a6f4a,'iv':_0x33f6d8,'salt':_0x347050});}},_0x1ceaa5=_0x2e989c[_0x18cd9d(0x335)]=_0x21d495[_0x18cd9d(0x19c)]({'cfg':_0x21d495[_0x18cd9d(0x8f)]['extend']({'kdf':_0x241c33}),'encrypt':function(_0x3186df,_0x1a1f17,_0x1645c0,_0x530e51){const _0x1e113f=_0x18cd9d;_0x530e51=this['cfg'][_0x1e113f(0x19c)](_0x530e51);var _0x1062a1=_0x530e51['kdf']['execute'](_0x1645c0,_0x3186df[_0x1e113f(0xce)],_0x3186df['ivSize'],_0x530e51[_0x1e113f(0x484)],_0x530e51[_0x1e113f(0x184)]);_0x530e51['iv']=_0x1062a1['iv'];var _0x5aafa1=_0x21d495[_0x1e113f(0xda)][_0x1e113f(0x24a)](this,_0x3186df,_0x1a1f17,_0x1062a1[_0x1e113f(0x224)],_0x530e51);return _0x5aafa1[_0x1e113f(0x47f)](_0x1062a1),_0x5aafa1;},'decrypt':function(_0x1db801,_0x52e420,_0x4488a6,_0x4f91ae){const _0x172317=_0x18cd9d;_0x4f91ae=this[_0x172317(0x8f)]['extend'](_0x4f91ae),_0x52e420=this['_parse'](_0x52e420,_0x4f91ae[_0x172317(0x243)]);var _0xb41a95=_0x4f91ae['kdf']['execute'](_0x4488a6,_0x1db801[_0x172317(0xce)],_0x1db801[_0x172317(0x4df)],_0x52e420[_0x172317(0x484)],_0x4f91ae['hasher']);_0x4f91ae['iv']=_0xb41a95['iv'];var _0x389e64=_0x21d495[_0x172317(0x377)][_0x172317(0x24a)](this,_0x1db801,_0x52e420,_0xb41a95[_0x172317(0x224)],_0x4f91ae);return _0x389e64;}});}();}));}(vt)),vt[_0x20864b(0x34e)];}(function(_0x3db6b3,_0x527222){(function(_0x36fd37,_0x57e0c6,_0x1f6141){const _0x26a3f9=_0x195f;_0x3db6b3[_0x26a3f9(0x34e)]=_0x57e0c6(oe(),Pi(),fr(),wi(),Ui());}(Z,function(_0x2b36aa){const _0x1acbe1=_0x195f;return(function(){const _0x111e52=_0x195f;var _0x1a20ea=_0x2b36aa,_0xda642d=_0x1a20ea[_0x111e52(0x256)],_0x538049=_0xda642d[_0x111e52(0x15c)],_0x2b8e33=_0x1a20ea['algo'],_0x1ab334=[],_0x9f2b19=[],_0x27311d=[],_0x569a96=[],_0x2569b3=[],_0x901cfe=[],_0x3007ea=[],_0x4055b0=[],_0xb04571=[],_0x3035f4=[];(function(){for(var _0x5b8dec=[],_0x1fcbf1=0x0;_0x1fcbf1<0x100;_0x1fcbf1++)_0x1fcbf1<0x80?_0x5b8dec[_0x1fcbf1]=_0x1fcbf1<<0x1:_0x5b8dec[_0x1fcbf1]=_0x1fcbf1<<0x1^0x11b;for(var _0x2a623b=0x0,_0x5071ab=0x0,_0x1fcbf1=0x0;_0x1fcbf1<0x100;_0x1fcbf1++){var _0x310f20=_0x5071ab^_0x5071ab<<0x1^_0x5071ab<<0x2^_0x5071ab<<0x3^_0x5071ab<<0x4;_0x310f20=_0x310f20>>>0x8^_0x310f20&0xff^0x63,_0x1ab334[_0x2a623b]=_0x310f20,_0x9f2b19[_0x310f20]=_0x2a623b;var _0xda072c=_0x5b8dec[_0x2a623b],_0x2cb961=_0x5b8dec[_0xda072c],_0x4cb36e=_0x5b8dec[_0x2cb961],_0x46e8e5=_0x5b8dec[_0x310f20]*0x101^_0x310f20*0x1010100;_0x27311d[_0x2a623b]=_0x46e8e5<<0x18|_0x46e8e5>>>0x8,_0x569a96[_0x2a623b]=_0x46e8e5<<0x10|_0x46e8e5>>>0x10,_0x2569b3[_0x2a623b]=_0x46e8e5<<0x8|_0x46e8e5>>>0x18,_0x901cfe[_0x2a623b]=_0x46e8e5;var _0x46e8e5=_0x4cb36e*0x1010101^_0x2cb961*0x10001^_0xda072c*0x101^_0x2a623b*0x1010100;_0x3007ea[_0x310f20]=_0x46e8e5<<0x18|_0x46e8e5>>>0x8,_0x4055b0[_0x310f20]=_0x46e8e5<<0x10|_0x46e8e5>>>0x10,_0xb04571[_0x310f20]=_0x46e8e5<<0x8|_0x46e8e5>>>0x18,_0x3035f4[_0x310f20]=_0x46e8e5,_0x2a623b?(_0x2a623b=_0xda072c^_0x5b8dec[_0x5b8dec[_0x5b8dec[_0x4cb36e^_0xda072c]]],_0x5071ab^=_0x5b8dec[_0x5b8dec[_0x5071ab]]):_0x2a623b=_0x5071ab=0x1;}}());var _0x491fdd=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x197724=_0x2b8e33[_0x111e52(0x28b)]=_0x538049[_0x111e52(0x19c)]({'_doReset':function(){const _0x5e34f3=_0x111e52;var _0x4e4c3b;if(!(this[_0x5e34f3(0x33f)]&&this[_0x5e34f3(0x29a)]===this['_key'])){for(var _0x507d0b=this[_0x5e34f3(0x29a)]=this['_key'],_0x2250e4=_0x507d0b['words'],_0xc3f2d4=_0x507d0b[_0x5e34f3(0x10a)]/0x4,_0x1cfb3d=this[_0x5e34f3(0x33f)]=_0xc3f2d4+0x6,_0x7f130b=(_0x1cfb3d+0x1)*0x4,_0x4b0776=this[_0x5e34f3(0x3ea)]=[],_0x2826c6=0x0;_0x2826c6<_0x7f130b;_0x2826c6++)_0x2826c6<_0xc3f2d4?_0x4b0776[_0x2826c6]=_0x2250e4[_0x2826c6]:(_0x4e4c3b=_0x4b0776[_0x2826c6-0x1],_0x2826c6%_0xc3f2d4?_0xc3f2d4>0x6&&_0x2826c6%_0xc3f2d4==0x4&&(_0x4e4c3b=_0x1ab334[_0x4e4c3b>>>0x18]<<0x18|_0x1ab334[_0x4e4c3b>>>0x10&0xff]<<0x10|_0x1ab334[_0x4e4c3b>>>0x8&0xff]<<0x8|_0x1ab334[_0x4e4c3b&0xff]):(_0x4e4c3b=_0x4e4c3b<<0x8|_0x4e4c3b>>>0x18,_0x4e4c3b=_0x1ab334[_0x4e4c3b>>>0x18]<<0x18|_0x1ab334[_0x4e4c3b>>>0x10&0xff]<<0x10|_0x1ab334[_0x4e4c3b>>>0x8&0xff]<<0x8|_0x1ab334[_0x4e4c3b&0xff],_0x4e4c3b^=_0x491fdd[_0x2826c6/_0xc3f2d4|0x0]<<0x18),_0x4b0776[_0x2826c6]=_0x4b0776[_0x2826c6-_0xc3f2d4]^_0x4e4c3b);for(var _0x46df2a=this[_0x5e34f3(0x157)]=[],_0x3de65f=0x0;_0x3de65f<_0x7f130b;_0x3de65f++){var _0x2826c6=_0x7f130b-_0x3de65f;if(_0x3de65f%0x4)var _0x4e4c3b=_0x4b0776[_0x2826c6];else var _0x4e4c3b=_0x4b0776[_0x2826c6-0x4];_0x3de65f<0x4||_0x2826c6<=0x4?_0x46df2a[_0x3de65f]=_0x4e4c3b:_0x46df2a[_0x3de65f]=_0x3007ea[_0x1ab334[_0x4e4c3b>>>0x18]]^_0x4055b0[_0x1ab334[_0x4e4c3b>>>0x10&0xff]]^_0xb04571[_0x1ab334[_0x4e4c3b>>>0x8&0xff]]^_0x3035f4[_0x1ab334[_0x4e4c3b&0xff]];}}},'encryptBlock':function(_0x182dc4,_0x9f19c8){const _0x52367d=_0x111e52;this['_doCryptBlock'](_0x182dc4,_0x9f19c8,this[_0x52367d(0x3ea)],_0x27311d,_0x569a96,_0x2569b3,_0x901cfe,_0x1ab334);},'decryptBlock':function(_0x3e92ca,_0x11a4e7){const _0x51ed07=_0x111e52;var _0x4afe44=_0x3e92ca[_0x11a4e7+0x1];_0x3e92ca[_0x11a4e7+0x1]=_0x3e92ca[_0x11a4e7+0x3],_0x3e92ca[_0x11a4e7+0x3]=_0x4afe44,this['_doCryptBlock'](_0x3e92ca,_0x11a4e7,this[_0x51ed07(0x157)],_0x3007ea,_0x4055b0,_0xb04571,_0x3035f4,_0x9f2b19);var _0x4afe44=_0x3e92ca[_0x11a4e7+0x1];_0x3e92ca[_0x11a4e7+0x1]=_0x3e92ca[_0x11a4e7+0x3],_0x3e92ca[_0x11a4e7+0x3]=_0x4afe44;},'_doCryptBlock':function(_0x2ad5ec,_0x144593,_0x2fa58c,_0xc62e51,_0x33b7a4,_0x176eae,_0x39ce23,_0x495f3e){for(var _0x75a9f4=this['_nRounds'],_0x14a38c=_0x2ad5ec[_0x144593]^_0x2fa58c[0x0],_0x368fa8=_0x2ad5ec[_0x144593+0x1]^_0x2fa58c[0x1],_0x25f6ba=_0x2ad5ec[_0x144593+0x2]^_0x2fa58c[0x2],_0x128c7f=_0x2ad5ec[_0x144593+0x3]^_0x2fa58c[0x3],_0x2e2a2c=0x4,_0x5c1ce6=0x1;_0x5c1ce6<_0x75a9f4;_0x5c1ce6++){var _0x12e972=_0xc62e51[_0x14a38c>>>0x18]^_0x33b7a4[_0x368fa8>>>0x10&0xff]^_0x176eae[_0x25f6ba>>>0x8&0xff]^_0x39ce23[_0x128c7f&0xff]^_0x2fa58c[_0x2e2a2c++],_0x4ac66a=_0xc62e51[_0x368fa8>>>0x18]^_0x33b7a4[_0x25f6ba>>>0x10&0xff]^_0x176eae[_0x128c7f>>>0x8&0xff]^_0x39ce23[_0x14a38c&0xff]^_0x2fa58c[_0x2e2a2c++],_0x4761b1=_0xc62e51[_0x25f6ba>>>0x18]^_0x33b7a4[_0x128c7f>>>0x10&0xff]^_0x176eae[_0x14a38c>>>0x8&0xff]^_0x39ce23[_0x368fa8&0xff]^_0x2fa58c[_0x2e2a2c++],_0x2a1f54=_0xc62e51[_0x128c7f>>>0x18]^_0x33b7a4[_0x14a38c>>>0x10&0xff]^_0x176eae[_0x368fa8>>>0x8&0xff]^_0x39ce23[_0x25f6ba&0xff]^_0x2fa58c[_0x2e2a2c++];_0x14a38c=_0x12e972,_0x368fa8=_0x4ac66a,_0x25f6ba=_0x4761b1,_0x128c7f=_0x2a1f54;}var _0x12e972=(_0x495f3e[_0x14a38c>>>0x18]<<0x18|_0x495f3e[_0x368fa8>>>0x10&0xff]<<0x10|_0x495f3e[_0x25f6ba>>>0x8&0xff]<<0x8|_0x495f3e[_0x128c7f&0xff])^_0x2fa58c[_0x2e2a2c++],_0x4ac66a=(_0x495f3e[_0x368fa8>>>0x18]<<0x18|_0x495f3e[_0x25f6ba>>>0x10&0xff]<<0x10|_0x495f3e[_0x128c7f>>>0x8&0xff]<<0x8|_0x495f3e[_0x14a38c&0xff])^_0x2fa58c[_0x2e2a2c++],_0x4761b1=(_0x495f3e[_0x25f6ba>>>0x18]<<0x18|_0x495f3e[_0x128c7f>>>0x10&0xff]<<0x10|_0x495f3e[_0x14a38c>>>0x8&0xff]<<0x8|_0x495f3e[_0x368fa8&0xff])^_0x2fa58c[_0x2e2a2c++],_0x2a1f54=(_0x495f3e[_0x128c7f>>>0x18]<<0x18|_0x495f3e[_0x14a38c>>>0x10&0xff]<<0x10|_0x495f3e[_0x368fa8>>>0x8&0xff]<<0x8|_0x495f3e[_0x25f6ba&0xff])^_0x2fa58c[_0x2e2a2c++];_0x2ad5ec[_0x144593]=_0x12e972,_0x2ad5ec[_0x144593+0x1]=_0x4ac66a,_0x2ad5ec[_0x144593+0x2]=_0x4761b1,_0x2ad5ec[_0x144593+0x3]=_0x2a1f54;},'keySize':0x100/0x20});_0x1a20ea[_0x111e52(0x28b)]=_0x538049['_createHelper'](_0x197724);}()),_0x2b36aa[_0x1acbe1(0x28b)];}));}(Di));var pr=Di[_0xbb724d(0x34e)];const mr=xe(pr);var gr=Pi();const Qt=xe(gr);var Mi={'exports':{}};(function(_0x1f262a,_0xbf6107){(function(_0x4bc7e6,_0x26e940){_0x1f262a['exports']=_0x26e940(oe());}(Z,function(_0x18f7cc){const _0x4f4088=_0x195f;return _0x18f7cc['enc'][_0x4f4088(0x3c7)];}));}(Mi));var Ir=Mi[_0xbb724d(0x34e)];const Cr=xe(Ir);var Ai={'exports':{}};(function(_0x2f7ec9,_0x43638c){(function(_0x533d3a,_0x2d6b7c){const _0xb9c89b=_0x195f;_0x2f7ec9[_0xb9c89b(0x34e)]=_0x2d6b7c(oe());}(Z,function(_0x92b6b3){const _0x5249bf=_0x195f;return(function(){const _0xfb978d=_0x195f;if(typeof ArrayBuffer==_0xfb978d(0x284)){var _0x526e32=_0x92b6b3,_0x156731=_0x526e32['lib'],_0x5e2d58=_0x156731[_0xfb978d(0x363)],_0x2aec26=_0x5e2d58[_0xfb978d(0x212)],_0x363643=_0x5e2d58['init']=function(_0x40529a){const _0x3a0635=_0xfb978d;if(_0x40529a instanceof ArrayBuffer&&(_0x40529a=new Uint8Array(_0x40529a)),(_0x40529a instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x40529a instanceof Uint8ClampedArray||_0x40529a instanceof Int16Array||_0x40529a instanceof Uint16Array||_0x40529a instanceof Int32Array||_0x40529a instanceof Uint32Array||_0x40529a instanceof Float32Array||_0x40529a instanceof Float64Array)&&(_0x40529a=new Uint8Array(_0x40529a['buffer'],_0x40529a[_0x3a0635(0x10d)],_0x40529a[_0x3a0635(0x537)])),_0x40529a instanceof Uint8Array){for(var _0x1e8d96=_0x40529a[_0x3a0635(0x537)],_0x1b1013=[],_0x364bce=0x0;_0x364bce<_0x1e8d96;_0x364bce++)_0x1b1013[_0x364bce>>>0x2]|=_0x40529a[_0x364bce]<<0x18-_0x364bce%0x4*0x8;_0x2aec26[_0x3a0635(0x24a)](this,_0x1b1013,_0x1e8d96);}else _0x2aec26[_0x3a0635(0xbd)](this,arguments);};_0x363643['prototype']=_0x5e2d58;}}()),_0x92b6b3[_0x5249bf(0x256)][_0x5249bf(0x363)];}));}(Ai));var Er=Ai[_0xbb724d(0x34e)];const br=xe(Er);var Ni={'exports':{}};(function(_0x2a8e50,_0x535a2c){(function(_0x3c6e62,_0x4dd067,_0x27f5d6){const _0x271763=_0x195f;_0x2a8e50[_0x271763(0x34e)]=_0x4dd067(oe(),Ui());}(Z,function(_0x4d87a4){const _0x40b774=_0x195f;return _0x4d87a4['pad'][_0x40b774(0x50c)]={'pad':function(){},'unpad':function(){}},_0x4d87a4[_0x40b774(0xfb)][_0x40b774(0x50c)];}));}(Ni));var Tr=Ni[_0xbb724d(0x34e)];const Rr=xe(Tr);function yr(_0x5c5d02,_0x5e0d4c){const _0x1e4d93=_0xbb724d,_0x3e4ebb=_0x5e0d4c-_0x5c5d02[_0x1e4d93(0x2d9)]%_0x5e0d4c,_0x29cd93=String[_0x1e4d93(0x11f)](_0x3e4ebb)[_0x1e4d93(0x4e6)](_0x3e4ebb);return _0x5c5d02+_0x29cd93;}function Or(_0x4c725f,_0x1aaf35){const _0xcf01ce=_0xbb724d,_0x14a91d=br[_0xcf01ce(0x227)](0x10),_0x401c4d=yr(_0x4c725f,0x10),_0x3ac288=mr['encrypt'](Cr[_0xcf01ce(0x2bd)](_0x401c4d),Qt[_0xcf01ce(0x2bd)](_0x1aaf35),{'iv':_0x14a91d,'padding':Rr});return _0x14a91d[_0xcf01ce(0x3b8)](_0x3ac288[_0xcf01ce(0x142)])[_0xcf01ce(0x3bf)](Qt);}function Dr(){const _0x54151e=_0xbb724d,_0x439053=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)['__Key__'];if(_0x439053){const _0x2fb82d={'time':Math['floor'](Date[_0x54151e(0x220)]()/0x3e8),'domain':location[_0x54151e(0x114)]};return Or(JSON[_0x54151e(0x44f)](_0x2fb82d),_0x439053);}}var Pr=Object[_0xbb724d(0x164)],wr=Object[_0xbb724d(0x13d)],Ur=(_0x1820e6,_0x2f3b2d,_0x2a9a8d,_0x5394b4)=>{const _0x39bf00=_0xbb724d;for(var _0x49e891=_0x5394b4>0x1?void 0x0:_0x5394b4?wr(_0x2f3b2d,_0x2a9a8d):_0x2f3b2d,_0x28cd50=_0x1820e6[_0x39bf00(0x2d9)]-0x1,_0x26532c;_0x28cd50>=0x0;_0x28cd50--)(_0x26532c=_0x1820e6[_0x28cd50])&&(_0x49e891=(_0x5394b4?_0x26532c(_0x2f3b2d,_0x2a9a8d,_0x49e891):_0x26532c(_0x49e891))||_0x49e891);return _0x5394b4&&_0x49e891&&Pr(_0x2f3b2d,_0x2a9a8d,_0x49e891),_0x49e891;},Mr=(_0x305001,_0x2bfcf8)=>(_0x3696da,_0x16de7e)=>_0x2bfcf8(_0x3696da,_0x16de7e,_0x305001);let Ke=class{constructor(_0x3128e3){const _0x5a0797=_0xbb724d;this[_0x5a0797(0x21d)]=_0x3128e3,this[_0x5a0797(0x23c)]();}[_0xbb724d(0x23c)](){const _0xeaf556=_0xbb724d;this[_0xeaf556(0x21d)][_0xeaf556(0x41a)]({'interceptor':(_0x56aa40,_0x3bf2b6)=>{const _0x1a2878=_0xeaf556,_0x1f893a=_0x56aa40[_0x1a2878(0x92)],_0x37b931=Dr();return _0x37b931&&_0x1f893a[_0x1a2878(0x117)](_0x1a2878(0x480),_0x37b931),_0x3bf2b6(_0x56aa40);}});}};Ke=Ur([Mr(0x0,a[_0xbb724d(0x271)](z[_0xbb724d(0x539)]))],Ke);var Ar=Object['defineProperty'],Nr=Object[_0xbb724d(0x13d)],Lr=(_0x3e6121,_0x4b0ed1,_0x3b9b61,_0x1904ce)=>{const _0x41115b=_0xbb724d;for(var _0x24769d=_0x1904ce>0x1?void 0x0:_0x1904ce?Nr(_0x4b0ed1,_0x3b9b61):_0x4b0ed1,_0x4180e1=_0x3e6121[_0x41115b(0x2d9)]-0x1,_0x58acec;_0x4180e1>=0x0;_0x4180e1--)(_0x58acec=_0x3e6121[_0x4180e1])&&(_0x24769d=(_0x1904ce?_0x58acec(_0x4b0ed1,_0x3b9b61,_0x24769d):_0x58acec(_0x24769d))||_0x24769d);return _0x1904ce&&_0x24769d&&Ar(_0x4b0ed1,_0x3b9b61,_0x24769d),_0x24769d;},St=(_0x31907a,_0x198d8d)=>(_0x5cfce5,_0x2e6273)=>_0x198d8d(_0x5cfce5,_0x2e6273,_0x31907a);const xr=[_0xbb724d(0x228),_0xbb724d(0x27e),_0xbb724d(0x152),'image/gif',_0xbb724d(0x8c)],jr=0x5*0x400*0x400,$r=_0xbb724d(0x156),Hr=_0xbb724d(0x1f1),Br=_0xbb724d(0x396),kr=_0xbb724d(0x230);exports[_0xbb724d(0x2a4)]=class{constructor(_0x230c5a,_0x8e6bfc,_0x31ddd5){const _0x4717b6=_0xbb724d;I(this,_0x4717b6(0x188),0x0),I(this,_0x4717b6(0xb6),new A[(_0x4717b6(0x538))]()),I(this,_0x4717b6(0xed),this[_0x4717b6(0xb6)]),I(this,'_imageSourceCache',new Map()),(this[_0x4717b6(0x21d)]=_0x230c5a,this[_0x4717b6(0xe6)]=_0x8e6bfc,this[_0x4717b6(0x20b)]=_0x31ddd5);}[_0xbb724d(0x388)](_0x434820){const _0x1d8449=_0xbb724d;this[_0x1d8449(0x188)]=_0x434820,this[_0x1d8449(0xb6)][_0x1d8449(0x32a)](_0x434820);}[_0xbb724d(0x32b)](_0x387865,_0x4bedb9){const _0x1d2f4c=_0xbb724d;if(_0x4bedb9===ie[_0x1d2f4c(0x2c4)]['BASE64']){const _0x365ffd=new Image();return _0x365ffd[_0x1d2f4c(0x381)]=_0x387865,_0x365ffd;}return this['_imageSourceCache'][_0x1d2f4c(0x2c9)](_0x387865);}[_0xbb724d(0x2e0)](_0x4b660b,_0x105f69,_0x50b746){const _0x534f9e=_0xbb724d;_0x105f69===ie[_0x534f9e(0x2c4)][_0x534f9e(0x494)]||_0x50b746==null||this[_0x534f9e(0x14f)]['set'](_0x4b660b,_0x50b746);}async['getImage'](_0x10b73c){const _0xbd1e7d=_0xbb724d;try{const _0x2958b8=this[_0xbd1e7d(0x3e5)](this[_0xbd1e7d(0x4f0)](),''+_0x10b73c),_0x5e8f94=(await this['_httpService'][_0xbd1e7d(0x2c9)](_0x2958b8))[_0xbd1e7d(0x3a6)];if(_0x5e8f94['error']&&_0x5e8f94[_0xbd1e7d(0x1d8)][_0xbd1e7d(0x365)]===_i['OK']){const _0x2bb455=new URL(_0x5e8f94[_0xbd1e7d(0x28a)],this['_getDownloadEndpointURL']())['toString']();return Promise[_0xbd1e7d(0x3ee)](_0x2bb455);}return Promise[_0xbd1e7d(0x456)](_0x5e8f94[_0xbd1e7d(0x1d8)]);}catch(_0x593f6f){return Promise['reject'](_0x593f6f);}}async[_0xbb724d(0x38d)](_0x271017){const _0x3b04e1=_0xbb724d;let _0x2c51ac='';if(!xr[_0x3b04e1(0x3f4)](_0x271017['type']))return this[_0x3b04e1(0x48d)](),Promise['reject'](new Error(ie[_0x3b04e1(0x11d)][_0x3b04e1(0xca)]));if(_0x271017[_0x3b04e1(0x4a6)]>jr)return this[_0x3b04e1(0x48d)](),Promise[_0x3b04e1(0x456)](new Error(ie[_0x3b04e1(0x11d)]['ERROR_EXCEED_SIZE']));try{const _0xea7fd1=new FormData();_0xea7fd1['append'](_0x3b04e1(0x172),_0x271017);const _0x437aa0=this[_0x3b04e1(0x20b)][_0x3b04e1(0x405)](),_0x517370=_0x437aa0==null?void 0x0:_0x437aa0[_0x3b04e1(0x285)]();if(!_0x517370)throw new Error(_0x3b04e1(0x2f1));const _0x52bbba=this[_0x3b04e1(0x4b7)]()+_0x3b04e1(0xcb)+_0x271017[_0x3b04e1(0x4a6)]['toString']()+_0x3b04e1(0x4ea)+ui[_0x3b04e1(0x4af)]+'&assign='+encodeURIComponent(_0x517370),_0x2c61c6=await(await fetch(_0x52bbba,{'method':_0x3b04e1(0x242),'body':_0xea7fd1}))['json']();if(typeof _0x2c61c6[_0x3b04e1(0x2ab)]!=_0x3b04e1(0x1eb))return this[_0x3b04e1(0x48d)](),Promise[_0x3b04e1(0x456)](new Error(ie[_0x3b04e1(0x11d)][_0x3b04e1(0x210)]));_0x2c51ac=_0x2c61c6['FileId'];}catch{return this[_0x3b04e1(0x48d)](),Promise['reject'](new Error(ie[_0x3b04e1(0x11d)]['ERROR_IMAGE']));}return new Promise((_0x225757,_0x1eca57)=>{const _0x371cbd=new FileReader();_0x371cbd['readAsDataURL'](_0x271017),_0x371cbd['onload']=_0x5ab533=>{const _0x13e8bc=_0x195f;var _0x3a2b8c;const _0x362b34=(_0x3a2b8c=_0x5ab533[_0x13e8bc(0x25d)])==null?void 0x0:_0x3a2b8c[_0x13e8bc(0x345)];if(_0x362b34==null){this[_0x13e8bc(0x48d)](),_0x1eca57(new Error(ie[_0x13e8bc(0x11d)][_0x13e8bc(0x210)]));return;}const _0x3ac5b0=a[_0x13e8bc(0x1fd)]['generateRandomId'](0x6);_0x225757({'imageId':_0x3ac5b0,'imageSourceType':ie['ImageSourceType'][_0x13e8bc(0x267)],'source':_0x2c51ac,'base64Cache':_0x362b34,'status':ie[_0x13e8bc(0x11d)]['SUCCUSS']}),this[_0x13e8bc(0x48d)]();};});}[_0xbb724d(0x4b7)](){const _0x5eb683=_0xbb724d;var _0x5164e1,_0x347919;const _0x531cb5=this[_0x5eb683(0xe6)][_0x5eb683(0x27c)]($r),_0x1d2fd1=this[_0x5eb683(0xe6)][_0x5eb683(0x27c)](Q);return(_0x347919=(_0x5164e1=_0x1d2fd1==null?void 0x0:_0x1d2fd1['uploadFileServerUrl'])!=null?_0x5164e1:_0x531cb5)!=null?_0x347919:Hr;}[_0xbb724d(0x4f0)](){const _0x2d39db=_0xbb724d;var _0xee25fb,_0x350e03;const _0x183187=this['_configService'][_0x2d39db(0x27c)](Br),_0x1e3e08=this[_0x2d39db(0xe6)]['getConfig'](Q);return(_0x350e03=(_0xee25fb=_0x1e3e08==null?void 0x0:_0x1e3e08[_0x2d39db(0x3aa)])!=null?_0xee25fb:_0x183187)!=null?_0x350e03:kr;}[_0xbb724d(0x216)](){const _0x38a7c6=_0xbb724d;var _0x258ec2;const _0x2fb969=this[_0x38a7c6(0xe6)][_0x38a7c6(0x27c)](Q);return(_0x258ec2=_0x2fb969==null?void 0x0:_0x2fb969[_0x38a7c6(0x367)])!=null?_0x258ec2:location[_0x38a7c6(0x430)];}[_0xbb724d(0x3e5)](_0x40a5bb,_0x14c370){const _0x5f1d79=_0xbb724d;return _0x40a5bb[_0x5f1d79(0x3fb)]('{fileID}',_0x14c370);}[_0xbb724d(0x48d)](){const _0x5b9a16=_0xbb724d;this[_0x5b9a16(0x188)]-=0x1,this[_0x5b9a16(0xb6)][_0x5b9a16(0x32a)](this[_0x5b9a16(0x188)]);}},exports[_0xbb724d(0x2a4)]=Lr([St(0x0,a['Inject'](z[_0xbb724d(0x539)])),St(0x1,a['IConfigService']),St(0x2,a[_0xbb724d(0x271)](a[_0xbb724d(0x4c0)]))],exports[_0xbb724d(0x2a4)]);var Wr=Object[_0xbb724d(0x164)],Fr=Object[_0xbb724d(0x13d)],Vr=(_0x851427,_0x19c15d,_0x1aa2fa,_0x13c3e5)=>{const _0x3ad252=_0xbb724d;for(var _0x21aa51=_0x13c3e5>0x1?void 0x0:_0x13c3e5?Fr(_0x19c15d,_0x1aa2fa):_0x19c15d,_0x56ed7d=_0x851427[_0x3ad252(0x2d9)]-0x1,_0x363fec;_0x56ed7d>=0x0;_0x56ed7d--)(_0x363fec=_0x851427[_0x56ed7d])&&(_0x21aa51=(_0x13c3e5?_0x363fec(_0x19c15d,_0x1aa2fa,_0x21aa51):_0x363fec(_0x21aa51))||_0x21aa51);return _0x13c3e5&&_0x21aa51&&Wr(_0x19c15d,_0x1aa2fa,_0x21aa51),_0x21aa51;},ei=(_0x1f0840,_0x228e37)=>(_0x2ba4c5,_0x584d3c)=>_0x228e37(_0x2ba4c5,_0x584d3c,_0x1f0840);const Gr='/universer-api/authz';exports[_0xbb724d(0x290)]=class{constructor(_0x5732df,_0x3a7b8b){const _0x30752d=_0xbb724d;this[_0x30752d(0xe6)]=_0x5732df,this['_HTTPService']=_0x3a7b8b;}[_0xbb724d(0x3e9)](){const _0x2be984=_0xbb724d;var _0x159bd7,_0x4fc3cf;const _0x5ed861=this[_0x2be984(0xe6)][_0x2be984(0x27c)](Ut),_0x5b524d=this[_0x2be984(0xe6)][_0x2be984(0x27c)](Q);return(_0x4fc3cf=(_0x159bd7=_0x5b524d==null?void 0x0:_0x5b524d[_0x2be984(0x406)])!=null?_0x159bd7:_0x5ed861)!=null?_0x4fc3cf:Gr;}async['list'](_0x393306){const _0x13addf=_0xbb724d,_0x4b83b5=this[_0x13addf(0x3e9)]()+_0x13addf(0x130);return{'list':[{'title':_0x13addf(0x4d0),'mentions':(await this[_0x13addf(0x43d)][_0x13addf(0x2c9)](_0x4b83b5,{'params':{'objectID':_0x393306['unitId'],'unitID':_0x393306[_0x13addf(0x4a0)]}}))[_0x13addf(0x3a6)][_0x13addf(0x353)][_0x13addf(0x1cf)](_0x1a72bb=>({'objectId':_0x1a72bb['id'],'name':_0x1a72bb[_0x13addf(0x26b)][_0x13addf(0x4cc)],'metadata':{'icon':_0x1a72bb[_0x13addf(0x26b)][_0x13addf(0x254)]},'label':_0x1a72bb[_0x13addf(0x26b)][_0x13addf(0x4cc)],'objectType':a['MentionType'][_0x13addf(0x296)]})),'metadata':{},'type':a[_0x13addf(0x21c)][_0x13addf(0x296)]}]};}},exports[_0xbb724d(0x290)]=Vr([ei(0x0,a['Inject'](a['IConfigService'])),ei(0x1,a[_0xbb724d(0x271)](z[_0xbb724d(0x539)]))],exports[_0xbb724d(0x290)]);var Yr=Object[_0xbb724d(0x164)],Kr=Object[_0xbb724d(0x13d)],qr=(_0xfc676a,_0x10e5c5,_0x36ff98,_0x54c716)=>{const _0x50fb5e=_0xbb724d;for(var _0x195405=_0x54c716>0x1?void 0x0:_0x54c716?Kr(_0x10e5c5,_0x36ff98):_0x10e5c5,_0x55a079=_0xfc676a[_0x50fb5e(0x2d9)]-0x1,_0x251850;_0x55a079>=0x0;_0x55a079--)(_0x251850=_0xfc676a[_0x55a079])&&(_0x195405=(_0x54c716?_0x251850(_0x10e5c5,_0x36ff98,_0x195405):_0x251850(_0x195405))||_0x195405);return _0x54c716&&_0x195405&&Yr(_0x10e5c5,_0x36ff98,_0x195405),_0x195405;},Ae=(_0x385300,_0xf23896)=>(_0x4f12ae,_0x1b7740)=>_0xf23896(_0x4f12ae,_0x1b7740,_0x385300);let qe=class extends a[_0xbb724d(0x2fb)]{constructor(_0x2136d7,_0x1b1653,_0x36f99f,_0x538f09,_0x190154){const _0x24d479=_0xbb724d;super(),this['_injector']=_0x2136d7,this[_0x24d479(0x20b)]=_0x1b1653,this['_permissionService']=_0x36f99f,this[_0x24d479(0x137)]=_0x538f09,this[_0x24d479(0x4f9)]=_0x190154,this['_initUnitPermissionChange'](),this[_0x24d479(0x269)]();}['_initCloseConn'](){const _0x490d7b=_0xbb724d,_0x18fa48=async _0x384ba9=>{const _0x5e5f2e=_0x195f;(await this[_0x5e5f2e(0x137)][_0x5e5f2e(0x1ab)](_0x384ba9))[_0x5e5f2e(0x3a7)][_0x5e5f2e(0x52f)](V[_0x5e5f2e(0x21e)](_0x1ac48b=>_0x1ac48b['eventID']===p[_0x5e5f2e(0x29f)]['SHOULD_CLOSE_CONN']),V[_0x5e5f2e(0x262)](this[_0x5e5f2e(0x279)]))[_0x5e5f2e(0x2ae)](_0x50f18e=>{const _0x133de8=_0x5e5f2e,_0x860bbb=_0x50f18e,{reason:_0x333692}=_0x860bbb[_0x133de8(0x238)];this[_0x133de8(0x299)][_0x133de8(0x2c9)](te['IMessageService'])[_0x133de8(0xb7)]({'type':Ce[_0x133de8(0xd6)][_0x133de8(0x86)],'content':this[_0x133de8(0x4f9)]['t'](_0x133de8(0x503))+'('+_0x333692+')'}),this[_0x133de8(0x3b1)]['updatePermissionPoint'](new k[(_0x133de8(0x3ed))](_0x384ba9)['id'],!0x1),this[_0x133de8(0x137)][_0x133de8(0x446)](_0x384ba9);});};A[_0x490d7b(0xa9)](this['_univerInstanceService'][_0x490d7b(0x37e)](a[_0x490d7b(0xd5)][_0x490d7b(0x1ac)]),this[_0x490d7b(0x20b)][_0x490d7b(0x37e)](a[_0x490d7b(0xd5)][_0x490d7b(0x44c)]))[_0x490d7b(0x52f)](V['map'](_0x12aae9=>_0x12aae9['getUnitId']()),V[_0x490d7b(0x21e)](_0x3afe4b=>!a[_0x490d7b(0x326)](_0x3afe4b)),V['takeUntil'](this[_0x490d7b(0x279)]))[_0x490d7b(0x2ae)](_0x19f59a=>{_0x18fa48(_0x19f59a);});}[_0xbb724d(0x1f6)](){const _0x33c4a6=_0xbb724d,_0x4b8369=async _0x2e9b72=>{const _0x46da17=_0x195f;(await this[_0x46da17(0x137)]['requireSession'](_0x2e9b72))[_0x46da17(0x3a7)]['pipe'](V['filter'](_0x4d713a=>_0x4d713a[_0x46da17(0x470)]===p[_0x46da17(0x29f)][_0x46da17(0x433)]),V[_0x46da17(0x262)](this[_0x46da17(0x279)]))[_0x46da17(0x2ae)](_0x19e4b3=>{const _0x2290d7=_0x46da17,_0x2fcaff=_0x19e4b3,{objectId:_0x43206c}=_0x2fcaff[_0x2290d7(0x238)],_0x44e481=this[_0x2290d7(0x299)][_0x2290d7(0x2c9)](ye[_0x2290d7(0x486)]);_0x43206c===_0x2e9b72?_0x44e481['initWorkbookPermissionChange'](_0x2e9b72):_0x44e481['refreshPermission'](_0x2e9b72,_0x43206c);});};A[_0x33c4a6(0xa9)](this[_0x33c4a6(0x20b)][_0x33c4a6(0x37e)](a[_0x33c4a6(0xd5)]['UNIVER_SHEET']),this[_0x33c4a6(0x20b)][_0x33c4a6(0x37e)](a[_0x33c4a6(0xd5)][_0x33c4a6(0x44c)]))[_0x33c4a6(0x52f)](V[_0x33c4a6(0x1cf)](_0x1b84ae=>_0x1b84ae[_0x33c4a6(0x285)]()),V[_0x33c4a6(0x21e)](_0xa2aef9=>!a[_0x33c4a6(0x326)](_0xa2aef9)),V[_0x33c4a6(0x262)](this['dispose$']))['subscribe'](_0x13b15f=>{_0x4b8369(_0x13b15f);});}};qe=qr([Ae(0x0,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),Ae(0x1,a[_0xbb724d(0x4c0)]),Ae(0x2,a[_0xbb724d(0x9a)]),Ae(0x3,a['Inject'](exports[_0xbb724d(0x2ec)])),Ae(0x4,a[_0xbb724d(0x271)](a[_0xbb724d(0x2a7)]))],qe);var zr=Object['defineProperty'],Xr=Object['getOwnPropertyDescriptor'],Jr=(_0x181e59,_0x21c07e,_0x4df4b9,_0x51be97)=>{for(var _0x4e5e68=_0x51be97>0x1?void 0x0:_0x51be97?Xr(_0x21c07e,_0x4df4b9):_0x21c07e,_0x2ef739=_0x181e59['length']-0x1,_0x493da8;_0x2ef739>=0x0;_0x2ef739--)(_0x493da8=_0x181e59[_0x2ef739])&&(_0x4e5e68=(_0x51be97?_0x493da8(_0x21c07e,_0x4df4b9,_0x4e5e68):_0x493da8(_0x4e5e68))||_0x4e5e68);return _0x51be97&&_0x4e5e68&&zr(_0x21c07e,_0x4df4b9,_0x4e5e68),_0x4e5e68;},ti=(_0x48824f,_0x4d4fca)=>(_0x263070,_0x4ca58d)=>_0x4d4fca(_0x263070,_0x4ca58d,_0x48824f);exports[_0xbb724d(0x439)]=class{constructor(_0x5d8d8e,_0x3d18c2){const _0x5ccb75=_0xbb724d;this[_0x5ccb75(0xe6)]=_0x5d8d8e,this['_httpService']=_0x3d18c2;}async[_0xbb724d(0x175)](_0xffc4c5,_0x1ac3b8){const _0x166fb9=_0xbb724d;var _0x1bb068;const {unitID:_0x1d713b,type:_0x4a524f,revision:_0x1bfd2a=0x0}=_0x1ac3b8,_0x3748fe=this['_getSnapshotAPIPrefix']()+'/'+_0x4a524f+_0x166fb9(0x457)+_0x1d713b+_0x166fb9(0x385)+_0x1bfd2a,_0x2a1d8c=(await this[_0x166fb9(0x21d)][_0x166fb9(0x2c9)](_0x3748fe))['body'],_0x2a63ae=(_0x1bb068=_0x2a1d8c['snapshot'])==null?void 0x0:_0x1bb068[_0x166fb9(0x1b5)];if(_0x2a63ae){const _0x114a9c=_0x2a63ae==null?void 0x0:_0x2a63ae[_0x166fb9(0x111)],_0x5a0e7a=p[_0x166fb9(0x213)][_0x166fb9(0x366)](p[_0x166fb9(0x4f2)](_0x114a9c));_0x2a63ae[_0x166fb9(0x111)]=_0x5a0e7a,Object['entries'](_0x2a63ae['sheets'])[_0x166fb9(0x53b)](([,_0x5d4aa2])=>{const _0x591b42=_0x166fb9,_0x49ba59=_0x5d4aa2['originalMeta'],_0x268530=p[_0x591b42(0x213)][_0x591b42(0x366)](p[_0x591b42(0x4f2)](_0x49ba59));_0x5d4aa2[_0x591b42(0x111)]=_0x268530;});}return _0x2a1d8c;}async[_0xbb724d(0x28c)](_0x427cd9,_0x69a63e){const _0x3bbbd5=_0xbb724d,{unitID:_0x275341,type:_0x553623,blockID:_0x27b948}=_0x69a63e,_0x177866=this[_0x3bbbd5(0x25f)]()+'/'+_0x553623+'/unit/'+_0x275341+_0x3bbbd5(0x4dc)+_0x27b948;return(await this['_httpService'][_0x3bbbd5(0x2c9)](_0x177866))[_0x3bbbd5(0x3a6)];}async[_0xbb724d(0x3fd)](_0x17a2c9,_0x156360){const _0x11101c=_0xbb724d,{unitID:_0x4e3160,type:_0x2412f2,blockID:_0xd379a}=_0x156360,_0x27941f=this[_0x11101c(0x25f)]()+_0x11101c(0x4dc)+_0x2412f2+'/unit/'+_0x4e3160+_0x11101c(0x4dc)+_0xd379a;return(await this[_0x11101c(0x21d)][_0x11101c(0x2c9)](_0x27941f))[_0x11101c(0x3a6)];}async[_0xbb724d(0x33c)](_0x4050f8,_0x50de0e){const _0x53d2f6=_0xbb724d,{unitID:_0x22d771,type:_0x4a8cd0,from:_0xb7a5ee,to:_0x5a9345}=_0x50de0e,_0x119afc=this[_0x53d2f6(0x25f)]()+'/'+_0x4a8cd0+_0x53d2f6(0x457)+_0x22d771+_0x53d2f6(0x379)+_0xb7a5ee+_0x53d2f6(0x4ae)+_0x5a9345;return(await this[_0x53d2f6(0x21d)]['get'](_0x119afc))[_0x53d2f6(0x3a6)];}['_getSnapshotAPIPrefix'](){const _0x1f5f3d=_0xbb724d;var _0x491e2d;return(_0x491e2d=this[_0x1f5f3d(0xe6)][_0x1f5f3d(0x27c)](ni))!=null?_0x491e2d:this[_0x1f5f3d(0x25f)]();}['_getAPIPrefix'](){const _0x14aafa=_0xbb724d;var _0x3f9771,_0x3f73b1;const _0x184fac=this['_configService']['getConfig'](ii),_0x3d0b=this[_0x14aafa(0xe6)]['getConfig'](Q);return(_0x3f73b1=(_0x3f9771=_0x3d0b==null?void 0x0:_0x3d0b[_0x14aafa(0x41b)])!=null?_0x3f9771:_0x184fac)!=null?_0x3f73b1:ki;}async[_0xbb724d(0x403)](_0x235dc2,_0x47d85c){const _0x2ec92b=_0xbb724d,_0x4df6c4=_0x2ec92b(0x3c9)+_0x47d85c[_0x2ec92b(0x50f)]+'/unit/'+_0x47d85c[_0x2ec92b(0x447)]+_0x2ec92b(0x4b5);return(await this['_httpService'][_0x2ec92b(0x2c9)](_0x4df6c4,{'params':{'resourceId':JSON[_0x2ec92b(0x44f)](_0x47d85c[_0x2ec92b(0x281)])}}))[_0x2ec92b(0x3a6)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xbb724d(0x200)](){const _0x4192e5=_0xbb724d;throw new Error(_0x4192e5(0x39c));}['saveChangeset'](){const _0x2bf53d=_0xbb724d;throw new Error(_0x2bf53d(0x39c));}[_0xbb724d(0x190)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x2dfe97=_0xbb724d;throw new Error(_0x2dfe97(0x39c));}},exports['SnapshotServerOverHTTPService']=Jr([ti(0x0,a['IConfigService']),ti(0x1,a[_0xbb724d(0x271)](z['HTTPService']))],exports[_0xbb724d(0x439)]);var Zr=Object[_0xbb724d(0x164)],Qr=Object[_0xbb724d(0x13d)],eo=(_0x2c194f,_0x584201,_0x16ecfe,_0x294fc0)=>{for(var _0x1c44d8=_0x294fc0>0x1?void 0x0:_0x294fc0?Qr(_0x584201,_0x16ecfe):_0x584201,_0x363ca2=_0x2c194f['length']-0x1,_0x4c2918;_0x363ca2>=0x0;_0x363ca2--)(_0x4c2918=_0x2c194f[_0x363ca2])&&(_0x1c44d8=(_0x294fc0?_0x4c2918(_0x584201,_0x16ecfe,_0x1c44d8):_0x4c2918(_0x1c44d8))||_0x1c44d8);return _0x294fc0&&_0x1c44d8&&Zr(_0x584201,_0x16ecfe,_0x1c44d8),_0x1c44d8;},Ne=(_0x16f6bc,_0x3afd5d)=>(_0x12eb9f,_0x26e9e6)=>_0x3afd5d(_0x12eb9f,_0x26e9e6,_0x16f6bc);let Ct=class extends a[_0xbb724d(0x4ad)]{constructor(_0x53c43b,_0x27524b,_0x1851ba,_0x598dee,_0x1fe458){super(_0x53c43b,_0x27524b,_0x1851ba),this['_transformService']=_0x598dee,this['_logService']=_0x1fe458;}[_0xbb724d(0x1a4)](_0x453a43,_0x4f2a89){const _0x2946e2=_0xbb724d,_0x3ef26d=this[_0x2946e2(0x460)](_0x453a43);if(_0x3ef26d)try{const _0x54306c=this[_0x2946e2(0x2cc)](_0x3ef26d,_0x4f2a89);this[_0x2946e2(0x3d6)](_0x453a43,_0x54306c);}catch(_0x32cc74){this[_0x2946e2(0x1a3)][_0x2946e2(0x1d8)](_0x2946e2(0x401),_0x32cc74),this[_0x2946e2(0x4c2)](_0x453a43);}const _0x128497=this[_0x2946e2(0x416)](_0x453a43);if(_0x128497)try{const _0x1758ae=this[_0x2946e2(0x2cc)](_0x128497,_0x4f2a89);this[_0x2946e2(0x474)](_0x453a43,_0x1758ae);}catch(_0x5dd786){this[_0x2946e2(0x1a3)][_0x2946e2(0x1d8)](_0x5dd786),this[_0x2946e2(0x3c0)](_0x453a43);}}[_0xbb724d(0x4c2)](_0x4feac6){const _0x41b561=_0xbb724d,_0x3753d1=this[_0x41b561(0x460)](_0x4feac6);_0x3753d1&&(_0x3753d1[_0x41b561(0x2d9)]=0x0,this[_0x41b561(0xac)]());}[_0xbb724d(0x3c0)](_0x2a4065){const _0x388a31=_0xbb724d,_0x151086=this[_0x388a31(0x416)](_0x2a4065);_0x151086&&(_0x151086[_0x388a31(0x2d9)]=0x0,this['_updateStatus']());}[_0xbb724d(0x3d6)](_0xfbeaf6,_0x58714c){const _0x2b89c=_0xbb724d;this[_0x2b89c(0xbb)][_0x2b89c(0x117)](_0xfbeaf6,_0x58714c),this[_0x2b89c(0xac)]();}['_substituteRedoStack'](_0x4832e4,_0x522097){const _0x56a277=_0xbb724d;this[_0x56a277(0x37f)][_0x56a277(0x117)](_0x4832e4,_0x522097),this['_updateStatus']();}[_0xbb724d(0x2cc)](_0x464075,_0x4adec2){const _0x2e5264=_0xbb724d,_0x347eed=[];let _0x475da3=_0x4adec2,_0x30ec9f=_0x4adec2;for(let _0x218614=_0x464075[_0x2e5264(0x2d9)]-0x1;_0x218614>=0x0;_0x218614--){const {unitID:_0x304680,undoMutations:_0x37da0e,redoMutations:_0x107259}=_0x464075[_0x218614],_0x3217e6=this[_0x2e5264(0x522)][_0x2e5264(0x118)](_0x475da3,_0x37da0e),_0xf74a1e=this[_0x2e5264(0x522)][_0x2e5264(0x118)](_0x30ec9f,_0x107259);if(p['isTransformMutationsWithChangesetFailure'](_0x3217e6)||p[_0x2e5264(0xa4)](_0xf74a1e)){this[_0x2e5264(0x1a3)]['error'](_0x2e5264(0x401),'transformStack\x20failed!',_0x3217e6,_0xf74a1e);break;}_0x475da3=_0x3217e6[_0x2e5264(0x1ae)],_0x30ec9f=_0xf74a1e['c1Prime'],_0x347eed[_0x2e5264(0x221)]({'unitID':_0x304680,'undoMutations':_0x3217e6[_0x2e5264(0x3ff)],'redoMutations':_0xf74a1e['m2Prime']});}return _0x347eed[_0x2e5264(0x25c)]();}};Ct=eo([Ne(0x0,a['IUniverInstanceService']),Ne(0x1,a[_0xbb724d(0x39a)]),Ne(0x2,a[_0xbb724d(0x515)]),Ne(0x3,p['ITransformService']),Ne(0x4,a[_0xbb724d(0x2cb)])],Ct);class Li extends a[_0xbb724d(0x2fb)]{constructor(){const _0xee4843=_0xbb724d;super(),I(this,'urlChange$'),this[_0xee4843(0x4a2)]=A[_0xee4843(0x4d4)](window,_0xee4843(0x354))[_0xee4843(0x52f)](A[_0xee4843(0x262)](this[_0xee4843(0x279)]),A[_0xee4843(0x3f6)](0x1),A['mapTo'](void 0x0));}['setParam'](_0x3cccc8,_0xdd8627,_0x368ede=!0x1){const _0x3fde82=_0xbb724d,_0x196a43=new URL(window[_0x3fde82(0x33e)]['href']);_0x196a43[_0x3fde82(0x295)]['set'](_0x3cccc8,_0xdd8627),_0x368ede?window[_0x3fde82(0x2e2)][_0x3fde82(0x1ca)]('','',_0x196a43[_0x3fde82(0x3bf)]()):window[_0x3fde82(0x2e2)]['pushState']('','',_0x196a43['toString']());}['removeParam'](_0xc8b9f4,_0x4a5921=!0x1){const _0x76a6c3=_0xbb724d,_0x38d426=new URL(window['location'][_0x76a6c3(0xb5)]);_0x38d426[_0x76a6c3(0x295)]['delete'](_0xc8b9f4),_0x4a5921?window['history'][_0x76a6c3(0x1ca)]('','',_0x38d426[_0x76a6c3(0x3bf)]()):window[_0x76a6c3(0x2e2)][_0x76a6c3(0x495)]('','',_0x38d426[_0x76a6c3(0x3bf)]());}['getParam'](_0x1b6682){const _0x366d5d=_0xbb724d;var _0x1c7aa4;return(_0x1c7aa4=new URL(window[_0x366d5d(0x33e)]['href'])[_0x366d5d(0x295)]['get'](_0x1b6682))!=null?_0x1c7aa4:void 0x0;}}var xi=Object[_0xbb724d(0x164)],to=Object[_0xbb724d(0x13d)],io=(_0x99987e,_0x7b21ef,_0xf704d8)=>_0x7b21ef in _0x99987e?xi(_0x99987e,_0x7b21ef,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf704d8}):_0x99987e[_0x7b21ef]=_0xf704d8,no=(_0x14fbaf,_0x53fa1e,_0x362e8b,_0x17e265)=>{const _0x2381e4=_0xbb724d;for(var _0x4b82dd=_0x17e265>0x1?void 0x0:_0x17e265?to(_0x53fa1e,_0x362e8b):_0x53fa1e,_0xfa38fc=_0x14fbaf[_0x2381e4(0x2d9)]-0x1,_0x49ee5a;_0xfa38fc>=0x0;_0xfa38fc--)(_0x49ee5a=_0x14fbaf[_0xfa38fc])&&(_0x4b82dd=(_0x17e265?_0x49ee5a(_0x53fa1e,_0x362e8b,_0x4b82dd):_0x49ee5a(_0x4b82dd))||_0x4b82dd);return _0x17e265&&_0x4b82dd&&xi(_0x53fa1e,_0x362e8b,_0x4b82dd),_0x4b82dd;},He=(_0x5adda6,_0x233de3)=>(_0x485693,_0x4cae97)=>_0x233de3(_0x485693,_0x4cae97,_0x5adda6),so=(_0xfc4187,_0x21411a,_0x1ee7e0)=>io(_0xfc4187,_0x21411a+'',_0x1ee7e0);const ro=_0xbb724d(0x472);exports['UniverCollaborationClientPlugin']=class extends a['Plugin']{constructor(_0x50092a=Zi,_0x19acd1,_0x29d8c3,_0x4055b2,_0x59df08){const _0x56f40a=_0xbb724d;super(),this[_0x56f40a(0xbf)]=_0x50092a,this['_logService']=_0x19acd1,this[_0x56f40a(0x529)]=_0x29d8c3,this['_injector']=_0x4055b2,this['_configService']=_0x59df08;const {..._0x32421c}=this[_0x56f40a(0xbf)];this[_0x56f40a(0xe6)][_0x56f40a(0x485)](Q,_0x32421c);}[_0xbb724d(0x349)](){const _0x30487=_0xbb724d;this['_registerDependencies'](),this[_0x30487(0x42c)]();}[_0xbb724d(0x323)](){const _0x5edfdc=_0xbb724d;a[_0x5edfdc(0x324)](this[_0x5edfdc(0x299)],[[Ge],[Ve]]);}['onRendered'](){const _0x5295d2=_0xbb724d;this[_0x5295d2(0x106)]();}[_0xbb724d(0x3db)](){const _0x14d443=_0xbb724d;var _0x2345b6,_0x2c8ef2,_0x54320b,_0x3a4345;this[_0x14d443(0x299)][_0x14d443(0x4cd)](a[_0x14d443(0x301)])&&this[_0x14d443(0x1a3)][_0x14d443(0x1d8)](_0x14d443(0x38b),_0x14d443(0x128));const _0x58b0ca=[[a['IUndoRedoService'],{'useClass':Ct}],[exports[_0x14d443(0x2ec)]],[Dt],[wt,{'useClass':Li}],[exports[_0x14d443(0x420)]],[exports[_0x14d443(0x1d9)]],[z[_0x14d443(0x395)]],[ke],[Fe],[Be],[We],[yt],[Ye],[Ke],[Rt],[qe],[Tt,{'useClass':(_0x2c8ef2=(_0x2345b6=this['_config'])==null?void 0x0:_0x2345b6[_0x14d443(0x22a)])!=null?_0x2c8ef2:exports['CollaborationSocketService']}],[p['ISnapshotServerService'],{'useClass':exports[_0x14d443(0x439)]}],[a[_0x14d443(0x34c)],{'useClass':exports['AuthzIoHttpService']}],[ie['IImageIoService'],{'useClass':exports[_0x14d443(0x2a4)]}],[a[_0x14d443(0x211)],{'useClass':exports[_0x14d443(0x290)]}],[exports[_0x14d443(0x8d)]],[exports['DataLoaderController']],[exports[_0x14d443(0x536)]],[Ge],[De],[Ve]];(_0x54320b=this['_config'])!=null&&_0x54320b[_0x14d443(0x3c2)]&&_0x58b0ca[_0x14d443(0x221)]([ze,{'useClass':Un}]),a[_0x14d443(0x3de)](this[_0x14d443(0x299)],a[_0x14d443(0x36b)](_0x58b0ca,(_0x3a4345=this[_0x14d443(0xbf)])==null?void 0x0:_0x3a4345[_0x14d443(0x4b8)]));}[_0xbb724d(0x106)](){const _0x4472de=_0xbb724d;this[_0x4472de(0x2ad)](this[_0x4472de(0x529)][_0x4472de(0x235)](a[_0x4472de(0xd5)][_0x4472de(0x44c)],[gt])),this[_0x4472de(0x2ad)](this['_renderManagerService']['registerRenderModule'](a[_0x4472de(0xd5)][_0x4472de(0x1ac)],[It]));}[_0xbb724d(0x42c)](){const _0x500fdc=_0xbb724d;var _0x599b80,_0x4ff013;this['_injector'][_0x500fdc(0x2c9)](z[_0x500fdc(0x539)])[_0x500fdc(0x41a)]({'priority':0x14,'interceptor':z['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x599b80=this['_config'])!=null&&_0x599b80[_0x500fdc(0x155)]||this[_0x500fdc(0x299)][_0x500fdc(0x2c9)](exports[_0x500fdc(0x1d9)])[_0x500fdc(0x38e)](),(_0x4ff013=this[_0x500fdc(0xbf)])!=null&&_0x4ff013['enableAuthServer']&&a['touchDependencies'](this[_0x500fdc(0x299)],[[Ye]]),a[_0x500fdc(0x324)](this['_injector'],[[Ke],[De],[exports[_0x500fdc(0x410)]],[exports['CollaborationController']],[exports[_0x500fdc(0x536)]],[qe]]);}},so(exports[_0xbb724d(0x305)],_0xbb724d(0x48f),ro),exports['UniverCollaborationClientPlugin']=no([a['DependentOn'](p[_0xbb724d(0x33a)],z[_0xbb724d(0x533)]),He(0x1,a[_0xbb724d(0x2cb)]),He(0x2,K[_0xbb724d(0xf6)]),He(0x3,a[_0xbb724d(0x271)](a[_0xbb724d(0x2d2)])),He(0x4,a[_0xbb724d(0xbc)])],exports[_0xbb724d(0x305)]),exports[_0xbb724d(0x37c)]=Ut,exports['COLLAB_CLIENT_CONFIG_KEY']=Q,exports[_0xbb724d(0xc7)]=li,exports[_0xbb724d(0x208)]=si,exports['CollaborationStatus']=q,exports[_0xbb724d(0x350)]=Oi,exports[_0xbb724d(0xd0)]=Rt,exports[_0xbb724d(0x504)]=ri,exports['HEARTBEAT_TIMEOUT_KEY']=Et,exports[_0xbb724d(0x2cf)]=Tt,exports[_0xbb724d(0x3ba)]=wt,exports[_0xbb724d(0x15d)]=ci,exports['LOGIN_URL_KEY']=hi,exports[_0xbb724d(0x2a5)]=ai,exports[_0xbb724d(0x476)]=Wi,exports[_0xbb724d(0x292)]=ii,exports['SNAPSHOT_URL_KEY']=ni,exports['SessionStatus']=se,exports[_0xbb724d(0x244)]=Ii,exports[_0xbb724d(0x336)]=Li,exports[_0xbb724d(0x3af)]=di,exports['serializeCombRequest']=fi;
1
+ 'use strict';const _0x14a8b9=_0x3122;(function(_0x5e8380,_0x1774dd){const _0x3b306f=_0x3122,_0xdf63fe=_0x5e8380();while(!![]){try{const _0x4472c9=-parseInt(_0x3b306f(0x376))/0x1+parseInt(_0x3b306f(0x617))/0x2+-parseInt(_0x3b306f(0x2d4))/0x3+parseInt(_0x3b306f(0x65c))/0x4*(parseInt(_0x3b306f(0x301))/0x5)+-parseInt(_0x3b306f(0x3fb))/0x6*(parseInt(_0x3b306f(0x2ae))/0x7)+-parseInt(_0x3b306f(0x630))/0x8*(parseInt(_0x3b306f(0x656))/0x9)+parseInt(_0x3b306f(0x4ef))/0xa*(parseInt(_0x3b306f(0x4ba))/0xb);if(_0x4472c9===_0x1774dd)break;else _0xdf63fe['push'](_0xdf63fe['shift']());}catch(_0x53f8d1){_0xdf63fe['push'](_0xdf63fe['shift']());}}}(_0x1640,0x722d8));var Wi=Object[_0x14a8b9(0x4ed)],Fi=(_0x34ec21,_0x352673,_0x3caad8)=>_0x352673 in _0x34ec21?Wi(_0x34ec21,_0x352673,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3caad8}):_0x34ec21[_0x352673]=_0x3caad8,I=(_0x7e57cd,_0x53c88e,_0x15687f)=>Fi(_0x7e57cd,typeof _0x53c88e!='symbol'?_0x53c88e+'':_0x53c88e,_0x15687f);Object[_0x14a8b9(0x4ed)](exports,Symbol[_0x14a8b9(0x675)],{'value':_0x14a8b9(0x599)});const a=require(_0x14a8b9(0x47d)),A=require(_0x14a8b9(0x369)),V=require(_0x14a8b9(0x392)),Ie=require(_0x14a8b9(0x3df)),z=require('@univerjs/network'),ee=require(_0x14a8b9(0x5d8)),m=require('@univerjs-pro/collaboration'),Vi=require('@univerjs/telemetry'),ge=require(_0x14a8b9(0x35a)),J=require(_0x14a8b9(0x3c0)),k=require(_0x14a8b9(0x486)),q=require('@univerjs/engine-render'),te=require('@univerjs/drawing'),$t=require(_0x14a8b9(0x219)),Re=require('@univerjs/sheets-ui'),oe=require(_0x14a8b9(0x1e5)),Gi=require(_0x14a8b9(0x586)),di=_0x14a8b9(0x37f),Yi=_0x14a8b9(0x5d4),fi=_0x14a8b9(0x483),qi='SEND_CHANGESET_TIMEOUT',Ki=0x7d0,vi=_0x14a8b9(0x3a9),zi=_0x14a8b9(0x3f1),Xi=_0x14a8b9(0x326),pi=_0x14a8b9(0x313),Ji=0x7530,Ot=_0x14a8b9(0x267),Si=0x4e20,Zi=0x4e20,mi='RETRY_CONNECTING_MAX_COUNT',Qi=0x3,gi=_0x14a8b9(0x510),en=0x3e8,Ii='COLLAB_SUBMIT_CHANGESET_URL',tn=_0x14a8b9(0x481),Ci=_0x14a8b9(0x577),nn=_0x14a8b9(0x3e0);var Ei=(_0x6794ad=>(_0x6794ad[_0x6794ad['UNDEFINED']=0x0]=_0x14a8b9(0x3f4),_0x6794ad[_0x6794ad['OK']=0x1]='OK',_0x6794ad[_0x6794ad[_0x14a8b9(0x38e)]=0x2]=_0x14a8b9(0x38e),_0x6794ad[_0x6794ad[_0x14a8b9(0x619)]=0x3]='PERMISSION_DENIED',_0x6794ad[_0x6794ad['NOT_FOUND']=0x4]=_0x14a8b9(0x418),_0x6794ad[_0x6794ad[_0x14a8b9(0x41a)]=0x5]='UNAUTHENTICATED',_0x6794ad[_0x6794ad[_0x14a8b9(0x2a8)]=0x6]='ALREADY_EXISTS',_0x6794ad[_0x6794ad[_0x14a8b9(0x500)]=0x7]=_0x14a8b9(0x500),_0x6794ad[_0x6794ad[_0x14a8b9(0x677)]=0x8]='TOO_MANY_REQUESTS',_0x6794ad[_0x6794ad[_0x14a8b9(0x26b)]=0x9]=_0x14a8b9(0x26b),_0x6794ad[_0x6794ad[_0x14a8b9(0x3a5)]=0x1389]=_0x14a8b9(0x3a5),_0x6794ad[_0x6794ad['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x14a8b9(0x3d7),_0x6794ad[_0x6794ad[_0x14a8b9(0x2bd)]=0x1772]=_0x14a8b9(0x2bd),_0x6794ad[_0x6794ad[_0x14a8b9(0x454)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x6794ad[_0x6794ad[_0x14a8b9(0x321)]=0x1b59]='APPLY_REJECT',_0x6794ad[_0x6794ad[_0x14a8b9(0x65a)]=0x1b5a]=_0x14a8b9(0x65a),_0x6794ad[_0x6794ad[_0x14a8b9(0x5f8)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x6794ad[_0x6794ad[_0x14a8b9(0x5c5)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x6794ad[_0x6794ad[_0x14a8b9(0x3c8)]=0x1b5d]='APPLY_DUPLICATED',_0x6794ad[_0x6794ad[_0x14a8b9(0x1f4)]=0x1f41]=_0x14a8b9(0x1f4),_0x6794ad[_0x6794ad[_0x14a8b9(0x571)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x6794ad[_0x6794ad[_0x14a8b9(0x3db)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x6794ad[_0x6794ad['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x14a8b9(0x5ad),_0x6794ad[_0x6794ad[_0x14a8b9(0x1db)]=0x232c]=_0x14a8b9(0x1db),_0x6794ad[_0x6794ad[_0x14a8b9(0x569)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x6794ad[_0x6794ad['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x14a8b9(0x393),_0x6794ad[_0x6794ad[_0x14a8b9(0x206)]=0x2712]=_0x14a8b9(0x206),_0x6794ad[_0x6794ad[_0x14a8b9(0x4f9)]=0x2713]=_0x14a8b9(0x4f9),_0x6794ad[_0x6794ad[_0x14a8b9(0x394)]=0x2714]=_0x14a8b9(0x394),_0x6794ad[_0x6794ad[_0x14a8b9(0x2a5)]=-0x1]=_0x14a8b9(0x2a5),_0x6794ad))(Ei||{}),ie=(_0x215262=>(_0x215262[_0x215262[_0x14a8b9(0x5fa)]=0x0]=_0x14a8b9(0x5fa),_0x215262[_0x215262[_0x14a8b9(0x4b7)]=0x1]=_0x14a8b9(0x4b7),_0x215262[_0x215262[_0x14a8b9(0x2cb)]=0x2]=_0x14a8b9(0x2cb),_0x215262[_0x215262[_0x14a8b9(0x4d9)]=0x3]=_0x14a8b9(0x4d9),_0x215262[_0x215262[_0x14a8b9(0x28d)]=0x4]=_0x14a8b9(0x28d),_0x215262[_0x215262[_0x14a8b9(0x2a5)]=-0x1]='UNRECOGNIZED',_0x215262))(ie||{}),G=(_0x2d362c=>(_0x2d362c[_0x2d362c[_0x14a8b9(0x2ca)]=0x0]=_0x14a8b9(0x2ca),_0x2d362c[_0x2d362c[_0x14a8b9(0x501)]=0x1]=_0x14a8b9(0x501),_0x2d362c[_0x2d362c[_0x14a8b9(0x4eb)]=0x2]=_0x14a8b9(0x4eb),_0x2d362c[_0x2d362c[_0x14a8b9(0x4d7)]=0x3]='LEAVE',_0x2d362c[_0x2d362c[_0x14a8b9(0x343)]=0x4]=_0x14a8b9(0x343),_0x2d362c[_0x2d362c[_0x14a8b9(0x286)]=0x5]=_0x14a8b9(0x286),_0x2d362c[_0x2d362c[_0x14a8b9(0x3b8)]=0x6]=_0x14a8b9(0x3b8),_0x2d362c[_0x2d362c[_0x14a8b9(0x2a5)]=-0x1]=_0x14a8b9(0x2a5),_0x2d362c))(G||{}),Dt=(_0x5cf541=>(_0x5cf541[_0x5cf541[_0x14a8b9(0x22f)]=0x0]=_0x14a8b9(0x22f),_0x5cf541[_0x5cf541['OK']=0x1]='OK',_0x5cf541[_0x5cf541[_0x14a8b9(0x5fd)]=0x2]='FAIL',_0x5cf541[_0x5cf541[_0x14a8b9(0x47c)]=0x3e9]=_0x14a8b9(0x47c),_0x5cf541[_0x5cf541[_0x14a8b9(0x5c8)]=0x3ea]='JOIN_ROOM_NOT_ALLOWED',_0x5cf541[_0x5cf541[_0x14a8b9(0x2a5)]=-0x1]=_0x14a8b9(0x2a5),_0x5cf541))(Dt||{}),bi=(_0x498e7e=>(_0x498e7e[_0x498e7e['Undefined']=0x0]=_0x14a8b9(0x2b3),_0x498e7e[_0x498e7e[_0x14a8b9(0x492)]=0x1]=_0x14a8b9(0x492),_0x498e7e[_0x498e7e['HttpExport']=0x2]=_0x14a8b9(0x1f3),_0x498e7e[_0x498e7e[_0x14a8b9(0x43f)]=0x3]=_0x14a8b9(0x43f),_0x498e7e[_0x498e7e[_0x14a8b9(0x300)]=0x4]='UnitSnapshot',_0x498e7e[_0x498e7e[_0x14a8b9(0x2a5)]=-0x1]=_0x14a8b9(0x2a5),_0x498e7e))(bi||{});const Z=_0x14a8b9(0x383),rn={};function Ti(_0x46b4d5){const _0x18a629=_0x14a8b9;var _0x1c7256,_0x34be4d,_0x18a1d,_0x4cb7bc,_0x57d237;const _0x32e243=_0x46b4d5[_0x18a629(0x396)],_0x4492df=JSON[_0x18a629(0x26f)](_0x32e243);switch(_0x4492df[_0x18a629(0x58e)]){case G[_0x18a629(0x286)]:case G[_0x18a629(0x501)]:{const _0x28aab8=_0x4492df[_0x18a629(0x3ce)];return{..._0x4492df,'data':_0x28aab8,'cmd':_0x4492df['cmd']};}case G['JOIN']:{const _0x10264f=_0x4492df[_0x18a629(0x223)];return{..._0x4492df,'data':_0x10264f,'cmd':_0x4492df[_0x18a629(0x58e)]};}case G[_0x18a629(0x3b8)]:{const _0xc2d60=_0x4492df[_0x18a629(0x48a)];switch(_0xc2d60[_0x18a629(0x63e)]){case m['CollaborationEvent']['PERMISSION_REJ']:return{..._0x4492df,'data':{..._0xc2d60,'data':(_0x1c7256=_0xc2d60[_0x18a629(0x477)])==null?void 0x0:_0x1c7256['cs']},'cmd':_0x4492df[_0x18a629(0x58e)]};case m[_0x18a629(0x3c2)]['CHANGESET_ACK']:return{..._0x4492df,'data':{..._0xc2d60,'data':(_0x34be4d=_0xc2d60['csAckEvent'])==null?void 0x0:_0x34be4d['cs']},'cmd':_0x4492df[_0x18a629(0x58e)]};case m['CollaborationEvent'][_0x18a629(0x44b)]:return{..._0x4492df,'data':{..._0xc2d60,'data':(_0x18a1d=_0xc2d60[_0x18a629(0x3c5)])==null?void 0x0:_0x18a1d['cs']},'cmd':_0x4492df[_0x18a629(0x58e)]};case m['CollaborationEvent']['CHANGESET_REJ']:return{..._0x4492df,'data':{..._0xc2d60,'data':(_0x4cb7bc=_0xc2d60['csRejEvent'])==null?void 0x0:_0x4cb7bc['cs']},'cmd':_0x4492df[_0x18a629(0x58e)]};case m[_0x18a629(0x3c2)][_0x18a629(0x4b2)]:return{..._0x4492df,'data':{..._0xc2d60,'data':(_0x57d237=_0xc2d60[_0x18a629(0x56b)])==null?void 0x0:_0x57d237['cs']},'cmd':_0x4492df[_0x18a629(0x58e)]};case m['CollaborationEvent'][_0x18a629(0x355)]:return{..._0x4492df,'data':{..._0xc2d60,'data':_0xc2d60[_0x18a629(0x69c)]},'cmd':_0x4492df[_0x18a629(0x58e)]};case m['CollaborationEvent'][_0x18a629(0x302)]:return{..._0x4492df,'data':{..._0xc2d60,'data':_0xc2d60[_0x18a629(0x209)]},'cmd':_0x4492df[_0x18a629(0x58e)]};case m[_0x18a629(0x3c2)][_0x18a629(0x21a)]:return{..._0x4492df,'data':{..._0xc2d60,'data':_0xc2d60[_0x18a629(0x5e2)]},'cmd':_0x4492df['cmd']};case m[_0x18a629(0x3c2)][_0x18a629(0x2e2)]:return{..._0x4492df,'data':{..._0xc2d60,'data':_0xc2d60[_0x18a629(0x3eb)]},'cmd':_0x4492df['cmd']};case m[_0x18a629(0x3c2)][_0x18a629(0x55b)]:case m[_0x18a629(0x3c2)][_0x18a629(0x284)]:return{..._0x4492df,'data':{..._0xc2d60,'data':_0xc2d60['liveShareOperation']},'cmd':_0x4492df[_0x18a629(0x58e)]};case m[_0x18a629(0x3c2)][_0x18a629(0x35b)]:return{..._0x4492df,'data':{..._0xc2d60,'data':_0xc2d60[_0x18a629(0x3eb)]},'cmd':_0x4492df[_0x18a629(0x58e)]};case m[_0x18a629(0x3c2)]['MSG_FOR_ERROR']:return{..._0x4492df,'data':_0xc2d60,'cmd':_0x4492df[_0x18a629(0x58e)]};case m[_0x18a629(0x3c2)][_0x18a629(0x3d9)]:return{..._0x4492df,'data':{..._0xc2d60,'data':_0xc2d60[_0x18a629(0x2ee)]},'cmd':_0x4492df[_0x18a629(0x58e)]};case m[_0x18a629(0x3c2)]['UPDATE_PERMISSION_OBJ']:return{..._0x4492df,'data':{..._0xc2d60,'data':_0xc2d60['updatePermissionObjEvent']},'cmd':_0x4492df[_0x18a629(0x58e)]};case m['CollaborationEvent']['SHOULD_CLOSE_CONN']:return{..._0x4492df,'data':{..._0xc2d60,'data':_0xc2d60[_0x18a629(0x2b9)]},'cmd':_0x4492df['cmd']};default:return _0x4492df;}}default:return _0x4492df;}}function Ri(_0x96899a){const _0x144a92=_0x14a8b9;switch(_0x96899a[_0x144a92(0x58e)]){case G['HEARTBEAT']:case G[_0x144a92(0x501)]:return JSON[_0x144a92(0x659)]({'cmd':_0x96899a['cmd'],'routeKey':_0x96899a['routeKey']});case G['INGEST']:{let _0x17cfe0;switch(_0x96899a[_0x144a92(0x396)][_0x144a92(0x63e)]){case m[_0x144a92(0x3c2)][_0x144a92(0x355)]:{_0x17cfe0={'eventID':m[_0x144a92(0x3c2)]['UPDATE_CURSOR'],'updateCursorEvent':_0x96899a[_0x144a92(0x396)][_0x144a92(0x396)]};break;}case m[_0x144a92(0x3c2)]['USERS_LEAVE']:{_0x17cfe0={'eventID':m[_0x144a92(0x3c2)][_0x144a92(0x21a)],'leaveEvent':_0x96899a[_0x144a92(0x396)]['data']};break;}case m['CollaborationEvent'][_0x144a92(0x302)]:{_0x17cfe0={'eventID':m[_0x144a92(0x3c2)][_0x144a92(0x302)],'joinEvent':_0x96899a['data']['data']};break;}case m['CollaborationEvent'][_0x144a92(0x2e2)]:{_0x17cfe0={'eventID':m[_0x144a92(0x3c2)][_0x144a92(0x2e2)],'liveShareNewHost':_0x96899a[_0x144a92(0x396)][_0x144a92(0x396)]};break;}case m[_0x144a92(0x3c2)]['LIVESHARE_OPERATION']:{_0x17cfe0={'eventID':m[_0x144a92(0x3c2)][_0x144a92(0x284)],'liveShareOperation':_0x96899a[_0x144a92(0x396)]['data']};break;}case m[_0x144a92(0x3c2)][_0x144a92(0x35b)]:{_0x17cfe0={'eventID':m[_0x144a92(0x3c2)][_0x144a92(0x35b)],'liveShareTerminate':_0x96899a['data'][_0x144a92(0x396)]};break;}case m[_0x144a92(0x3c2)][_0x144a92(0x673)]:{_0x17cfe0={'eventID':m[_0x144a92(0x3c2)][_0x144a92(0x673)],'liveShareRequestHost':_0x96899a[_0x144a92(0x396)][_0x144a92(0x396)]};break;}case m[_0x144a92(0x3c2)][_0x144a92(0x55b)]:{_0x17cfe0={'eventID':m['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x17cfe0={'eventID':_0x96899a[_0x144a92(0x396)][_0x144a92(0x63e)]};}return JSON[_0x144a92(0x659)]({'cmd':_0x96899a[_0x144a92(0x58e)],'routeKey':_0x96899a[_0x144a92(0x5c2)],'collaMsg':_0x17cfe0});}case G[_0x144a92(0x4eb)]:return JSON[_0x144a92(0x659)]({'cmd':_0x96899a[_0x144a92(0x58e)],'routeKey':_0x96899a[_0x144a92(0x5c2)],'joinReq':_0x96899a[_0x144a92(0x396)]});case G['LEAVE']:return JSON[_0x144a92(0x659)]({'cmd':_0x96899a['cmd'],'routeKey':_0x96899a['routeKey'],'leaveReq':_0x96899a[_0x144a92(0x396)]});default:throw new Error(_0x144a92(0x653));}}var sn=Object['defineProperty'],on=Object[_0x14a8b9(0x5ee)],an=(_0xf6c0e5,_0x523c3a,_0x4ec447,_0x11acb8)=>{const _0x2491f3=_0x14a8b9;for(var _0x45a6f6=_0x11acb8>0x1?void 0x0:_0x11acb8?on(_0x523c3a,_0x4ec447):_0x523c3a,_0x2b477e=_0xf6c0e5[_0x2491f3(0x4a6)]-0x1,_0x56ea53;_0x2b477e>=0x0;_0x2b477e--)(_0x56ea53=_0xf6c0e5[_0x2b477e])&&(_0x45a6f6=(_0x11acb8?_0x56ea53(_0x523c3a,_0x4ec447,_0x45a6f6):_0x56ea53(_0x45a6f6))||_0x45a6f6);return _0x11acb8&&_0x45a6f6&&sn(_0x523c3a,_0x4ec447,_0x45a6f6),_0x45a6f6;},De=(_0x3cfd1a,_0x21a3e7)=>(_0x1ad76f,_0x220343)=>_0x21a3e7(_0x1ad76f,_0x220343,_0x3cfd1a);const Pt=a[_0x14a8b9(0x263)](_0x14a8b9(0x358));function cn(_0x3faa6b,_0x4fb0c5,_0x349f02){const _0x5a8e97=_0x14a8b9;return _0x3faa6b+'/'+_0x4fb0c5+_0x5a8e97(0x1f9)+_0x349f02+_0x5a8e97(0x4ff);}exports['CollaborationSocketService']=class extends a['Disposable']{constructor(_0x387917,_0x2265c4,_0x1dda01,_0x38610c,_0x508815){const _0x1bbf51=_0x14a8b9;super(),this['_http']=_0x387917,this['_ws']=_0x2265c4,this[_0x1bbf51(0x65b)]=_0x1dda01,this[_0x1bbf51(0x618)]=_0x38610c,this[_0x1bbf51(0x4b4)]=_0x508815;}['createSocket'](_0x4ebe1e){const _0x31e4b1=_0x14a8b9,_0x2b6769=this['_ws'][_0x31e4b1(0x553)](_0x4ebe1e);if(!_0x2b6769)throw new Error(_0x31e4b1(0x444));const _0xcd3c6=new a[(_0x31e4b1(0x319))](),_0x1d7440=new A[(_0x31e4b1(0x3fc))]();_0xcd3c6['add'](_0x2b6769[_0x31e4b1(0x34b)]['subscribe'](_0x3eb2e1=>_0x1d7440['next'](_0x3eb2e1))),_0xcd3c6['add'](a['toDisposable'](()=>_0x1d7440['complete']()));const _0x2609fe=new A['Subject']();_0xcd3c6[_0x31e4b1(0x404)](_0x2b6769[_0x31e4b1(0x3e9)]['subscribe'](_0x3fee8c=>_0x2609fe[_0x31e4b1(0x269)](_0x3fee8c))),_0xcd3c6['add'](a[_0x31e4b1(0x537)](()=>_0x2609fe['complete']()));const _0x169120=new A[(_0x31e4b1(0x3fc))]();_0xcd3c6[_0x31e4b1(0x404)](_0x2b6769[_0x31e4b1(0x28a)][_0x31e4b1(0x32b)](_0x1b051c=>{const _0x2bdfbe=_0x31e4b1,_0x4229c4=Ti(_0x1b051c);_0x169120[_0x2bdfbe(0x269)](_0x4229c4);})),_0xcd3c6[_0x31e4b1(0x404)](a[_0x31e4b1(0x537)](()=>_0x169120['complete']()));let _0x28e18a;const _0x3eb4c4=()=>{const _0x20d572=_0x31e4b1;_0x2609fe['next'](new Event(_0x20d572(0x391))),_0x1d7440['next'](new CloseEvent(_0x20d572(0x391))),_0x28e18a[_0x20d572(0x475)]();};return _0x28e18a={'memberID':'','close$':_0x1d7440['asObservable'](),'error$':_0x2609fe['asObservable'](),'open$':_0x2b6769[_0x31e4b1(0x4c5)],'message$':_0x169120[_0x31e4b1(0x28b)](),'send':_0x24d724=>{const _0x434381=_0x31e4b1;if(_0x24d724[_0x434381(0x58e)]===G[_0x434381(0x343)]){if(_0x24d724[_0x434381(0x396)][_0x434381(0x63e)]===m['CollaborationEvent'][_0x434381(0x41f)]){this['_submitChangeset'](_0x28e18a,_0x24d724[_0x434381(0x396)])[_0x434381(0x5cd)](_0x25978e=>{const _0x4f79f9=_0x434381;this[_0x4f79f9(0x618)][_0x4f79f9(0x45c)](_0x25978e),_0x3eb4c4();});return;}if(_0x24d724['data']['eventID']===m[_0x434381(0x3c2)]['FETCH_MISSING']){const _0x45513c=_0x24d724[_0x434381(0x396)];this[_0x434381(0x349)](_0x45513c)[_0x434381(0x570)](_0x56c2f6=>{const _0x5bb3cd=_0x434381;_0x169120['next']({'cmd':G[_0x5bb3cd(0x3b8)],'code':Dt['OK'],'routeKey':_0x45513c[_0x5bb3cd(0x396)][_0x5bb3cd(0x5b7)],'routeType':'','data':{'eventID':m['CollaborationEvent'][_0x5bb3cd(0x21f)],'data':{'changesets':_0x56c2f6}}});})[_0x434381(0x5cd)](_0x12cd57=>{const _0x2dc037=_0x434381;this[_0x2dc037(0x618)]['error'](_0x12cd57),_0x3eb4c4();});return;}}_0x2b6769[_0x434381(0x3c9)](Ri(_0x24d724));},'close':()=>{const _0x3ce7bb=_0x31e4b1;_0x2b6769[_0x3ce7bb(0x475)](),_0xcd3c6['dispose']();}},_0x28e18a;}async[_0x14a8b9(0x461)](_0x2b61e9,_0x2cf806){const _0xddcab4=_0x14a8b9;var _0x1ba950,_0x7c837a;const {unitType:_0x22a09e,unitID:_0x26bf8a,changeset:_0x5e8121}=_0x2cf806['data'],_0x10d28b={'unitID':_0x26bf8a,'memberID':_0x2b61e9[_0xddcab4(0x3ac)],'type':_0x22a09e,'changeset':m['parseChangesetToProtocol'](_0x5e8121)},_0x387928=this['_configService']['getConfig'](Ii),_0x5ece6b=this['_configService'][_0xddcab4(0x2dd)](Z),_0x56585f=cn((_0x7c837a=(_0x1ba950=_0x5ece6b==null?void 0x0:_0x5ece6b['collabSubmitChangesetUrl'])!=null?_0x1ba950:_0x387928)!=null?_0x7c837a:tn,_0x22a09e,_0x26bf8a);try{await this['_http'][_0xddcab4(0x374)](_0x56585f,{'body':_0x10d28b});}catch(_0x4bd27e){throw this[_0xddcab4(0x618)][_0xddcab4(0x45c)](_0xddcab4(0x5b8),_0xddcab4(0x35c)),_0x4bd27e;}}async[_0x14a8b9(0x349)](_0x2432e9){const _0x2794e2=_0x14a8b9,{unitID:_0x28c2ca,from:_0x19342f,to:_0x2a883e,unitType:_0x1b1e9f}=_0x2432e9[_0x2794e2(0x396)];return(await this[_0x2794e2(0x4b4)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x28c2ca,'type':_0x1b1e9f,'from':_0x19342f,'to':_0x2a883e}))[_0x2794e2(0x36c)];}},exports[_0x14a8b9(0x36b)]=an([De(0x0,a['Inject'](z['HTTPService'])),De(0x1,a[_0x14a8b9(0x1e2)](z['WebSocketService'])),De(0x2,a['IConfigService']),De(0x3,a[_0x14a8b9(0x1df)]),De(0x4,m[_0x14a8b9(0x36d)])],exports[_0x14a8b9(0x36b)]);const ln=_0x14a8b9(0x381);function hn(_0x3e6f38){const _0x451ed2=_0x14a8b9;return JSON[_0x451ed2(0x659)](_0x3e6f38)['length'];}class wt{constructor(){const _0x1df074=_0x14a8b9;I(this,_0x1df074(0x67c),new A[(_0x1df074(0x3fc))]()),I(this,'commentUpdate$',this['_commentUpdate$'][_0x1df074(0x28b)]());}[_0x14a8b9(0x23e)](_0x420929){const _0x47fa1e=_0x14a8b9;this['_commentUpdate$'][_0x47fa1e(0x269)](_0x420929);}}var _n=Object[_0x14a8b9(0x4ed)],un=Object[_0x14a8b9(0x5ee)],dn=(_0x1ff91d,_0xcd4df9,_0x3e07a2,_0xf1e6c4)=>{const _0x16a65d=_0x14a8b9;for(var _0x203111=_0xf1e6c4>0x1?void 0x0:_0xf1e6c4?un(_0xcd4df9,_0x3e07a2):_0xcd4df9,_0x9bc34=_0x1ff91d[_0x16a65d(0x4a6)]-0x1,_0x343d81;_0x9bc34>=0x0;_0x9bc34--)(_0x343d81=_0x1ff91d[_0x9bc34])&&(_0x203111=(_0xf1e6c4?_0x343d81(_0xcd4df9,_0x3e07a2,_0x203111):_0x343d81(_0x203111))||_0x203111);return _0xf1e6c4&&_0x203111&&_n(_0xcd4df9,_0x3e07a2,_0x203111),_0x203111;},jt=(_0x294cab,_0x23cfcc)=>(_0x58674d,_0x2798e2)=>_0x23cfcc(_0x58674d,_0x2798e2,_0x294cab);exports['MemberService']=class extends a['Disposable']{constructor(_0x449c17,_0xea9099){const _0x70aaf1=_0x14a8b9;super(),I(this,'_roomMembers',new Map()),(this[_0x70aaf1(0x564)]=_0x449c17,this['_userManagerService']=_0xea9099,this['disposeWithMe'](a[_0x70aaf1(0x537)](A[_0x70aaf1(0x45f)](this['_univerInstanceService'][_0x70aaf1(0x453)](a[_0x70aaf1(0x5c7)][_0x70aaf1(0x2cb)])[_0x70aaf1(0x4e7)](V[_0x70aaf1(0x531)](_0x38769f=>_0x38769f[_0x70aaf1(0x63f)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x70aaf1(0x5c7)][_0x70aaf1(0x4b7)])[_0x70aaf1(0x4e7)](V['map'](_0x5cb75d=>_0x5cb75d[_0x70aaf1(0x63f)]())),this[_0x70aaf1(0x564)][_0x70aaf1(0x453)](a[_0x70aaf1(0x5c7)][_0x70aaf1(0x4d9)])[_0x70aaf1(0x4e7)](V[_0x70aaf1(0x531)](_0x582d4a=>_0x582d4a[_0x70aaf1(0x63f)]())))[_0x70aaf1(0x32b)](_0x491a48=>this[_0x70aaf1(0x211)](_0x491a48)))));}[_0x14a8b9(0x2a3)](_0x28e311){const _0x362334=_0x14a8b9;this[_0x362334(0x64f)][_0x362334(0x2a3)](_0x28e311);}[_0x14a8b9(0x4e2)](){const _0x1a0716=_0x14a8b9;return this[_0x1a0716(0x64f)][_0x1a0716(0x4e2)]();}['updateMember'](_0x5c52cc,_0x5e01f6){const _0x2369d3=_0x14a8b9;let _0x14cb28=this[_0x2369d3(0x285)][_0x2369d3(0x249)](_0x5c52cc);_0x14cb28||(_0x14cb28=new fn(),this['_roomMembers']['set'](_0x5c52cc,_0x14cb28)),_0x14cb28['updateMember'](_0x5e01f6);}[_0x14a8b9(0x4fd)](_0x1998c2,_0x4f3f51){const _0xbc9557=_0x14a8b9,_0x514026=this[_0xbc9557(0x285)][_0xbc9557(0x249)](_0x1998c2);_0x514026&&_0x514026[_0xbc9557(0x4fd)](_0x4f3f51);}[_0x14a8b9(0x296)](_0x3b4bd3){const _0x2486bb=_0x14a8b9;return this[_0x2486bb(0x285)][_0x2486bb(0x249)](_0x3b4bd3);}[_0x14a8b9(0x448)](_0x2ad6c5,_0x2a59f5){const _0x2b1c7c=_0x14a8b9,_0x47016e=this['_roomMembers'][_0x2b1c7c(0x249)](_0x2ad6c5);if(_0x47016e)return _0x47016e[_0x2b1c7c(0x448)](_0x2a59f5);}['_removeRoom'](_0x97846e){const _0x35a8d3=_0x14a8b9,_0x1cf685=this[_0x35a8d3(0x285)][_0x35a8d3(0x249)](_0x97846e);_0x1cf685&&(_0x1cf685[_0x35a8d3(0x52d)](),this[_0x35a8d3(0x285)][_0x35a8d3(0x5b6)](_0x97846e));}[_0x14a8b9(0x52d)](){const _0x4ccdba=_0x14a8b9;this[_0x4ccdba(0x285)][_0x4ccdba(0x4cd)](_0x1bcd81=>_0x1bcd81[_0x4ccdba(0x52d)]()),this[_0x4ccdba(0x285)][_0x4ccdba(0x31e)]();}},exports[_0x14a8b9(0x457)]=dn([jt(0x0,a[_0x14a8b9(0x2e5)]),jt(0x1,a[_0x14a8b9(0x1e2)](a['UserManagerService']))],exports[_0x14a8b9(0x457)]);class fn extends a[_0x14a8b9(0x4d8)]{constructor(){super(...arguments),I(this,'_members',new Map());}['dispose'](){const _0x54ae2a=_0x14a8b9;this[_0x54ae2a(0x684)][_0x54ae2a(0x31e)]();}[_0x14a8b9(0x683)](_0x242cf6){const _0x197259=_0x14a8b9;this[_0x197259(0x684)][_0x197259(0x69e)](_0x242cf6[_0x197259(0x3ac)],_0x242cf6);}['removeMember'](_0x2ef7b0){const _0x2dd163=_0x14a8b9;this[_0x2dd163(0x684)]['delete'](_0x2ef7b0);}[_0x14a8b9(0x448)](_0x152da5){const _0x551257=_0x14a8b9;return this[_0x551257(0x684)][_0x551257(0x249)](_0x152da5);}[_0x14a8b9(0x32c)](){const _0x5d0d84=_0x14a8b9;return Array[_0x5d0d84(0x4ac)](this[_0x5d0d84(0x684)][_0x5d0d84(0x602)]());}}var vn=Object[_0x14a8b9(0x4ed)],pn=Object['getOwnPropertyDescriptor'],Sn=(_0x3d0ace,_0x74e07f,_0x588131,_0x472347)=>{const _0x20fb1c=_0x14a8b9;for(var _0x5027f9=_0x472347>0x1?void 0x0:_0x472347?pn(_0x74e07f,_0x588131):_0x74e07f,_0x43de54=_0x3d0ace[_0x20fb1c(0x4a6)]-0x1,_0x1464a3;_0x43de54>=0x0;_0x43de54--)(_0x1464a3=_0x3d0ace[_0x43de54])&&(_0x5027f9=(_0x472347?_0x1464a3(_0x74e07f,_0x588131,_0x5027f9):_0x1464a3(_0x5027f9))||_0x5027f9);return _0x472347&&_0x5027f9&&vn(_0x74e07f,_0x588131,_0x5027f9),_0x5027f9;},ue=(_0x54a3e1,_0x296f11)=>(_0xf91687,_0x56b7cf)=>_0x296f11(_0xf91687,_0x56b7cf,_0x54a3e1),ne=(_0x48174a=>(_0x48174a[_0x48174a[_0x14a8b9(0x26a)]=0x0]='IDLE',_0x48174a[_0x48174a[_0x14a8b9(0x60b)]=0x1]='JOINING',_0x48174a[_0x48174a[_0x14a8b9(0x257)]=0x2]='OFFLINE',_0x48174a[_0x48174a['ONLINE']=0x3]=_0x14a8b9(0x42f),_0x48174a))(ne||{});exports[_0x14a8b9(0x2f0)]=class extends a[_0x14a8b9(0x51d)]{constructor(_0x3368c4,_0x31d911,_0x44b9bf,_0x228e96,_0x3a391e,_0x5c122c,_0x580b86,_0x548656,_0x49ead4,_0x2e105a){const _0x2028df=_0x14a8b9;super(),I(this,_0x2028df(0x641),new A[(_0x2028df(0x244))](0x0)),I(this,_0x2028df(0x2ad),this[_0x2028df(0x641)][_0x2028df(0x28b)]()),I(this,_0x2028df(0x1f2),new A[(_0x2028df(0x3fc))]()),I(this,'event$',this[_0x2028df(0x1f2)]['asObservable']()),I(this,'_socket'),I(this,_0x2028df(0x669)),I(this,'_collaborationTimeoutTimer'),I(this,_0x2028df(0x48f),!0x1),I(this,_0x2028df(0x4d6),null),(this[_0x2028df(0x38f)]=_0x3368c4,this['_logService']=_0x44b9bf,this['_beforeCloseService']=_0x228e96,this['_messageService']=_0x3a391e,this[_0x2028df(0x65b)]=_0x5c122c,this['_localeService']=_0x580b86,this['_memberService']=_0x548656,this[_0x2028df(0x340)]=_0x49ead4,this['_telemetryService']=_0x2e105a,this[_0x2028df(0x48f)]=!!this[_0x2028df(0x2cf)],_0x31d911[_0x2028df(0x4e7)](A[_0x2028df(0x32a)](this[_0x2028df(0x555)]))[_0x2028df(0x32b)](_0x1d5594=>{const _0x3d2ac9=_0x2028df;var _0x2a1de7;typeof _0x1d5594>'u'||(this[_0x3d2ac9(0x419)]=_0x1d5594,_0x1d5594?(this[_0x3d2ac9(0x37c)](_0x1d5594),this['_socketMessageSubscription']=_0x1d5594[_0x3d2ac9(0x28a)]['subscribe'](_0x37c186=>{const _0xd53d24=_0x3d2ac9;_0x37c186[_0xd53d24(0x5c2)]===this[_0xd53d24(0x38f)]&&this[_0xd53d24(0x482)](_0x37c186);})):(this[_0x3d2ac9(0x288)](),this[_0x3d2ac9(0x641)][_0x3d2ac9(0x269)](0x2),(_0x2a1de7=this[_0x3d2ac9(0x669)])==null||_0x2a1de7[_0x3d2ac9(0x66a)](),this[_0x3d2ac9(0x669)]=null));}),this[_0x2028df(0x622)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x24fb15=_0x2028df;var _0x51f053;(_0x51f053=this[_0x24fb15(0x419)])==null||_0x51f053['send']({'cmd':G[_0x24fb15(0x4d7)],'data':{'roomID':this['_unitID']}});})));}get[_0x14a8b9(0x56f)](){const _0x2465c8=_0x14a8b9;return this[_0x2465c8(0x641)][_0x2465c8(0x364)]();}['getMemberID'](){const _0x3bbaff=_0x14a8b9;var _0x4e7867,_0x48f6a7;return(_0x48f6a7=(_0x4e7867=this[_0x3bbaff(0x419)])==null?void 0x0:_0x4e7867['memberID'])!=null?_0x48f6a7:null;}['dispose'](){const _0x5d076d=_0x14a8b9;super[_0x5d076d(0x52d)](),this['dispose$']['next'](),this[_0x5d076d(0x555)][_0x5d076d(0x3e2)]();}[_0x14a8b9(0x475)](){const _0x41c6f7=_0x14a8b9;var _0x4d7589,_0x544f43;this[_0x41c6f7(0x288)](),(_0x4d7589=this[_0x41c6f7(0x419)])==null||_0x4d7589[_0x41c6f7(0x3c9)]({'cmd':G['LEAVE'],'data':{'roomID':this[_0x41c6f7(0x38f)]}}),(_0x544f43=this[_0x41c6f7(0x419)])==null||_0x544f43[_0x41c6f7(0x475)](),this[_0x41c6f7(0x1f2)]['complete'](),this['_sessionStatus$'][_0x41c6f7(0x3e2)](),this['dispose']();}['_onCombEvent'](_0x36016a){const _0x54d4e1=_0x14a8b9;_0x36016a[_0x54d4e1(0x58e)]===G[_0x54d4e1(0x4eb)]?this[_0x54d4e1(0x598)](_0x36016a):_0x36016a[_0x54d4e1(0x58e)]===G['RECV']&&this[_0x54d4e1(0x689)](_0x36016a);}['_joinRoom'](_0x31ba9f){const _0x3035ce=_0x14a8b9;this[_0x3035ce(0x641)][_0x3035ce(0x269)](0x1),_0x31ba9f[_0x3035ce(0x3c9)]({'cmd':G[_0x3035ce(0x4eb)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x14a8b9(0x598)](_0x28e466){const _0x511ae8=_0x14a8b9;var _0x3033dd;if(_0x28e466[_0x511ae8(0x67a)]===Dt[_0x511ae8(0x5fd)]){this[_0x511ae8(0x52c)][_0x511ae8(0x384)]({'type':Ie[_0x511ae8(0x31a)][_0x511ae8(0x1ed)],'content':this[_0x511ae8(0x290)]['t'](_0x511ae8(0x504))}),this[_0x511ae8(0x641)][_0x511ae8(0x269)](0x2);return;}this[_0x511ae8(0x641)][_0x511ae8(0x269)](0x3);const _0x327aa4=(_0x3033dd=_0x28e466[_0x511ae8(0x396)][_0x511ae8(0x27b)][this[_0x511ae8(0x38f)]])==null?void 0x0:_0x3033dd[_0x511ae8(0x616)];_0x327aa4&&_0x327aa4[_0x511ae8(0x4cd)](_0x3859b1=>this[_0x511ae8(0x291)][_0x511ae8(0x683)](this['_unitID'],_0x3859b1));}[_0x14a8b9(0x689)](_0x365f16){const _0x222922=_0x14a8b9;try{const _0x9b5f=_0x365f16[_0x222922(0x396)];switch(_0x9b5f[_0x222922(0x63e)]){case m['CollaborationEvent'][_0x222922(0x302)]:this[_0x222922(0x3b2)](_0x9b5f),this[_0x222922(0x1f2)][_0x222922(0x269)](_0x9b5f);break;case m[_0x222922(0x3c2)][_0x222922(0x21a)]:this[_0x222922(0x68c)](_0x9b5f),this[_0x222922(0x1f2)][_0x222922(0x269)](_0x9b5f);break;case m[_0x222922(0x3c2)][_0x222922(0x40a)]:case m[_0x222922(0x3c2)][_0x222922(0x4b2)]:this[_0x222922(0x341)](),this[_0x222922(0x25c)](),this[_0x222922(0x1f2)][_0x222922(0x269)](_0x9b5f);break;case m[_0x222922(0x3c2)][_0x222922(0x240)]:this[_0x222922(0x618)][_0x222922(0x45c)](_0x222922(0x499)+JSON[_0x222922(0x659)](_0x9b5f)),this[_0x222922(0x1f2)][_0x222922(0x269)](_0x9b5f);break;case m['CollaborationEvent'][_0x222922(0x3d9)]:this[_0x222922(0x340)]['onCommentUpdate'](_0x9b5f[_0x222922(0x396)]),this[_0x222922(0x1f2)]['next'](_0x9b5f);break;default:this[_0x222922(0x1f2)][_0x222922(0x269)](_0x9b5f);}}catch(_0x47b695){this[_0x222922(0x618)][_0x222922(0x45c)](_0x47b695,_0x365f16);}}[_0x14a8b9(0x3b2)](_0x4712f1){const _0x582966=_0x14a8b9;this['_memberService'][_0x582966(0x683)](this[_0x582966(0x38f)],_0x4712f1['data']);}['_onUserLeave'](_0xd00ffc){const _0x14bc0e=_0x14a8b9;this[_0x14bc0e(0x291)][_0x14bc0e(0x4fd)](this[_0x14bc0e(0x38f)],_0xd00ffc[_0x14bc0e(0x396)][_0x14bc0e(0x3ac)]);}async['send'](_0x570452,_0x4fb1d0){const _0x448e9a=_0x14a8b9;if(this[_0x448e9a(0x56f)]!==0x3||!this[_0x448e9a(0x419)])throw new Error(_0x448e9a(0x232));try{_0x570452['eventID']===m['CollaborationEvent'][_0x448e9a(0x41f)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x448e9a(0x5f7)](_0x570452)),this[_0x448e9a(0x419)]['send']({'cmd':G[_0x448e9a(0x343)],'routeKey':_0x4fb1d0,'routeType':'','data':_0x570452});}catch(_0x46629d){this[_0x448e9a(0x618)][_0x448e9a(0x45c)](_0x46629d);}}[_0x14a8b9(0x23d)](){const _0x190970=_0x14a8b9;var _0x356fe8;this[_0x190970(0x45e)]=window[_0x190970(0x26d)](()=>{const _0x58ab2c=_0x190970;this['_collaborationTimeoutTimer']=null,this[_0x58ab2c(0x52c)][_0x58ab2c(0x384)]({'type':Ie[_0x58ab2c(0x31a)][_0x58ab2c(0x34c)],'content':this[_0x58ab2c(0x290)]['t'](_0x58ab2c(0x631))});},(_0x356fe8=this[_0x190970(0x65b)]['getConfig'](Ot))!=null?_0x356fe8:Si);}['_clearCollaborationTimeoutTimer'](){const _0x2423c0=_0x14a8b9;this[_0x2423c0(0x45e)]&&(clearTimeout(this[_0x2423c0(0x45e)]),this[_0x2423c0(0x45e)]=null);}[_0x14a8b9(0x5f7)](_0x16565d){const _0x48ed5e=_0x14a8b9;if(!this[_0x48ed5e(0x48f)])return;const {data:_0xe3cc66}=_0x16565d,{unitID:_0x17d36b,changeset:_0x3a1a11}=_0xe3cc66,{mutations:_0xb235e7,type:_0x525ccd}=_0x3a1a11;this[_0x48ed5e(0x4d6)]={'unitId':_0x17d36b,'type':_0x525ccd,'startTime':performance[_0x48ed5e(0x4ce)](),'stopTime':0x0,'duration':0x0,'size':hn(_0xb235e7)};}[_0x14a8b9(0x341)](){const _0x372591=_0x14a8b9;if(this[_0x372591(0x48f)]){if(!this[_0x372591(0x4d6)]){this[_0x372591(0x618)][_0x372591(0x45c)](_0x372591(0x5b8),_0x372591(0x5cb));return;}this[_0x372591(0x4d6)][_0x372591(0x3d0)]=performance[_0x372591(0x4ce)](),this[_0x372591(0x4d6)]['duration']=this[_0x372591(0x4d6)][_0x372591(0x3d0)]-this[_0x372591(0x4d6)][_0x372591(0x230)],this[_0x372591(0x2cf)][_0x372591(0x4c2)](ln,this[_0x372591(0x4d6)]),this[_0x372591(0x4d6)]=null;}}[_0x14a8b9(0x288)](){const _0x2817e2=_0x14a8b9;this[_0x2817e2(0x4d6)]=null;}},exports[_0x14a8b9(0x2f0)]=Sn([ue(0x2,a[_0x14a8b9(0x1df)]),ue(0x3,ee[_0x14a8b9(0x56a)]),ue(0x4,ee['IMessageService']),ue(0x5,a[_0x14a8b9(0x2fe)]),ue(0x6,a[_0x14a8b9(0x1e2)](a['LocaleService'])),ue(0x7,a[_0x14a8b9(0x1e2)](exports['MemberService'])),ue(0x8,a[_0x14a8b9(0x1e2)](wt)),ue(0x9,a[_0x14a8b9(0x4d1)](Vi[_0x14a8b9(0x2c0)]))],exports[_0x14a8b9(0x2f0)]);var mn=Object[_0x14a8b9(0x4ed)],gn=Object['getOwnPropertyDescriptor'],In=(_0x4ad809,_0x42e9f0,_0xb2daeb,_0x8ab3e2)=>{const _0x12d683=_0x14a8b9;for(var _0x2c1cd4=_0x8ab3e2>0x1?void 0x0:_0x8ab3e2?gn(_0x42e9f0,_0xb2daeb):_0x42e9f0,_0xb41614=_0x4ad809[_0x12d683(0x4a6)]-0x1,_0x3f738c;_0xb41614>=0x0;_0xb41614--)(_0x3f738c=_0x4ad809[_0xb41614])&&(_0x2c1cd4=(_0x8ab3e2?_0x3f738c(_0x42e9f0,_0xb2daeb,_0x2c1cd4):_0x3f738c(_0x2c1cd4))||_0x2c1cd4);return _0x8ab3e2&&_0x2c1cd4&&mn(_0x42e9f0,_0xb2daeb,_0x2c1cd4),_0x2c1cd4;},pe=(_0x1e773d,_0x234378)=>(_0x98814f,_0x33f1f6)=>_0x234378(_0x98814f,_0x33f1f6,_0x1e773d);exports[_0x14a8b9(0x521)]=class extends a[_0x14a8b9(0x4d8)]{constructor(_0x1be2f8,_0x46a2f1,_0x55ec6a,_0x41bec4,_0x32e4c2,_0x3997da,_0x112db4){const _0x588f29=_0x14a8b9;super(),I(this,_0x588f29(0x4f6),new A['BehaviorSubject'](void 0x0)),I(this,_0x588f29(0x350),this[_0x588f29(0x4f6)][_0x588f29(0x28b)]()),I(this,_0x588f29(0x523),null),I(this,_0x588f29(0x695),new Map()),I(this,'_status$',new A[(_0x588f29(0x244))](ne[_0x588f29(0x26a)])),I(this,_0x588f29(0x5da),this[_0x588f29(0x59f)]['asObservable']()),I(this,_0x588f29(0x4bb),!0x1),I(this,'_retryConnectingTimer'),I(this,_0x588f29(0x696),0x0),I(this,_0x588f29(0x417)),I(this,_0x588f29(0x3c7)),(this[_0x588f29(0x5a5)]=_0x1be2f8,this[_0x588f29(0x290)]=_0x46a2f1,this['_messageService']=_0x55ec6a,this[_0x588f29(0x618)]=_0x41bec4,this[_0x588f29(0x65b)]=_0x32e4c2,this[_0x588f29(0x489)]=_0x3997da,this['_httpService']=_0x112db4,this['_initEventListeners']());}get['_socket'](){const _0x28e8d2=_0x14a8b9;return this[_0x28e8d2(0x4f6)][_0x28e8d2(0x364)]();}[_0x14a8b9(0x638)](){const _0x2f086e=_0x14a8b9;this['_listenToOfflineEvent'](),this[_0x2f086e(0x2d6)]();}[_0x14a8b9(0x52d)](){const _0x34e9d1=_0x14a8b9;super['dispose'](),this[_0x34e9d1(0x695)][_0x34e9d1(0x4cd)](_0x334069=>_0x334069[_0x34e9d1(0x52d)]()),this[_0x34e9d1(0x695)][_0x34e9d1(0x31e)](),this[_0x34e9d1(0x59f)][_0x34e9d1(0x3e2)]();}async[_0x14a8b9(0x621)](_0x4e485c){const _0x1dec79=_0x14a8b9;if(this['_sessions'][_0x1dec79(0x3fd)](_0x4e485c))return this['_sessions'][_0x1dec79(0x249)](_0x4e485c);this[_0x1dec79(0x57a)]();const _0x400178=this[_0x1dec79(0x5a5)][_0x1dec79(0x45a)](exports[_0x1dec79(0x2f0)],_0x4e485c,this[_0x1dec79(0x4f6)]['asObservable']());return this[_0x1dec79(0x695)][_0x1dec79(0x69e)](_0x4e485c,_0x400178),_0x400178;}[_0x14a8b9(0x4a7)](_0x4c292f){const _0x504a74=_0x14a8b9;var _0x5bc0fb;const _0x264822=this[_0x504a74(0x695)][_0x504a74(0x249)](_0x4c292f);_0x264822&&(this[_0x504a74(0x695)][_0x504a74(0x5b6)](_0x4c292f),_0x264822[_0x504a74(0x475)]()),this[_0x504a74(0x695)]['size']||(_0x5bc0fb=this[_0x504a74(0x419)])==null||_0x5bc0fb[_0x504a74(0x475)]();}['reconnect'](){const _0x423f4e=_0x14a8b9;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x423f4e(0x50f)]),this[_0x423f4e(0x50f)]=null),this['_tryReconnect']();}async[_0x14a8b9(0x3f9)](){const _0x44592e=_0x14a8b9;var _0x4f0b60,_0xda418d,_0x3461eb;const _0x349d7=this[_0x44592e(0x65b)][_0x44592e(0x2dd)](Z),_0x56eec0=(_0x4f0b60=_0x349d7==null?void 0x0:_0x349d7['wsSessionTicketUrl'])!=null?_0x4f0b60:Xi;return(_0x3461eb=(_0xda418d=(await this[_0x44592e(0x3d4)]['get'](_0x56eec0,{'headers':{'Content-Type':_0x44592e(0x1fc)}}))[_0x44592e(0x5d9)])==null?void 0x0:_0xda418d[_0x44592e(0x42a)])!=null?_0x3461eb:'';}[_0x14a8b9(0x1fb)](_0x8ab8a){const _0x543c0f=_0x14a8b9;var _0x2ff6b5,_0x2ad18c;const _0x1c28d9=this['_configService']['getConfig'](vi),_0x1e9d3d=this[_0x543c0f(0x65b)][_0x543c0f(0x2dd)](Z),_0x3764b6=(_0x2ad18c=(_0x2ff6b5=_0x1e9d3d==null?void 0x0:_0x1e9d3d['collabWebSocketUrl'])!=null?_0x2ff6b5:_0x1c28d9)!=null?_0x2ad18c:zi,_0x3ea88c=new URL(_0x3764b6,window[_0x543c0f(0x31b)]['origin']);return _0x3ea88c['searchParams'][_0x543c0f(0x69e)]('sessionTicket',_0x8ab8a),_0x3ea88c['toString']();}async[_0x14a8b9(0x380)](){const _0x39315f=_0x14a8b9,_0x596e61=await this[_0x39315f(0x3f9)](),_0x295752=this['_createSocketURL'](_0x596e61),_0x3b91cd=this['_socketService'][_0x39315f(0x553)](_0x295752);return this['_candidateSocket']=_0x3b91cd,_0x3b91cd;}async[_0x14a8b9(0x57a)](){const _0xff734a=_0x14a8b9;var _0x3a9b03,_0x437950;try{const _0x6cf68f=(_0x437950=(_0x3a9b03=this[_0xff734a(0x419)])!=null?_0x3a9b03:this[_0xff734a(0x523)])!=null?_0x437950:await this['_createSocket']();if(_0x6cf68f){const _0x270901=_0x6cf68f[_0xff734a(0x3c9)];_0x6cf68f[_0xff734a(0x3c9)]=_0x39bdb8=>(this[_0xff734a(0x4f3)](),_0x270901[_0xff734a(0x4ae)](_0x6cf68f,[_0x39bdb8])),_0x6cf68f[_0xff734a(0x28a)]['subscribe'](_0x15e93f=>this[_0xff734a(0x2ac)](_0x6cf68f,_0x15e93f)),_0x6cf68f[_0xff734a(0x3e9)][_0xff734a(0x4e7)](V[_0xff734a(0x416)](0x1))[_0xff734a(0x32b)](_0x28584b=>this['_logService'][_0xff734a(0x45c)](_0xff734a(0x23c),_0x28584b)),_0x6cf68f[_0xff734a(0x4c5)]['pipe'](V['take'](0x1))[_0xff734a(0x32b)](()=>{const _0x594d21=_0xff734a;this[_0x594d21(0x2d0)](_0x6cf68f);}),_0x6cf68f['close$'][_0xff734a(0x4e7)](V[_0xff734a(0x416)](0x1))[_0xff734a(0x32b)](_0xa33391=>{const _0xa7e1d5=_0xff734a;this[_0xa7e1d5(0x618)]['debug'](_0xa7e1d5(0x2b1),'socket\x20close',_0xa33391),this[_0xa7e1d5(0x287)]();});}}catch(_0x361180){this[_0xff734a(0x618)]['error'](_0x361180),this[_0xff734a(0x287)]();}}[_0x14a8b9(0x2d0)](_0x24da4a){const _0x2df7c1=_0x14a8b9;this[_0x2df7c1(0x618)][_0x2df7c1(0x29b)]('[CollaborationSessionService]',_0x2df7c1(0x690)),_0x24da4a[_0x2df7c1(0x3c9)]({'cmd':G['HELLO']}),this[_0x2df7c1(0x4f3)]();}['_listenToOfflineEvent'](){const _0x3e6e78=_0x14a8b9;window[_0x3e6e78(0x3ee)](_0x3e6e78(0x50e),()=>this[_0x3e6e78(0x54d)]());}[_0x14a8b9(0x54d)](){const _0xa106bf=_0x14a8b9;this[_0xa106bf(0x4bb)]=!0x1,this['_candidateSocket']=null,this[_0xa106bf(0x59f)][_0xa106bf(0x269)](ne[_0xa106bf(0x257)]),this[_0xa106bf(0x4f6)][_0xa106bf(0x269)](null),this[_0xa106bf(0x59e)](),this['_clearHeartbeatTimer']();}[_0x14a8b9(0x287)](){const _0xb2a880=_0x14a8b9;var _0x43fb71;this[_0xb2a880(0x54d)](),this['_retryCount']<((_0x43fb71=this['_configService'][_0xb2a880(0x2dd)](mi))!=null?_0x43fb71:Qi)?(this['_messageService']['show']({'key':'collaboration-session-retry','type':Ie[_0xb2a880(0x31a)][_0xb2a880(0x1ed)],'content':this['_localeService']['t']('session.will-retry')}),this['_tryReconnect']()):this[_0xb2a880(0x52c)][_0xb2a880(0x384)]({'key':_0xb2a880(0x329),'type':Ie['MessageType'][_0xb2a880(0x34c)],'content':this[_0xb2a880(0x290)]['t'](_0xb2a880(0x29d))});}[_0x14a8b9(0x2d6)](){const _0x34891d=_0x14a8b9,_0x1fc72a=()=>{const _0x24ec51=_0x3122;this[_0x24ec51(0x419)]||this['reconnect']();},_0x5cf186=()=>{const _0xdf7756=_0x3122;this[_0xdf7756(0x419)]||document['visibilityState']===_0xdf7756(0x561)||this[_0xdf7756(0x603)]();};window['addEventListener'](_0x34891d(0x508),_0x1fc72a),document[_0x34891d(0x3ee)](_0x34891d(0x47a),_0x5cf186);}[_0x14a8b9(0x224)](){const _0x31f543=_0x14a8b9;var _0x2d59e8;const _0x4b697d=this['_retryCount'],_0x44dbbf=this['_configService'][_0x31f543(0x2dd)](Z),_0x1219a5=_0x4b697d===0x0?0x0:((_0x2d59e8=_0x44dbbf==null?void 0x0:_0x44dbbf[_0x31f543(0x52f)])!=null?_0x2d59e8:Zi)*0x2**_0x4b697d;this[_0x31f543(0x50f)]=window[_0x31f543(0x26d)](()=>{const _0x252a07=_0x31f543;clearTimeout(this['_retryConnectingTimer']),this[_0x252a07(0x50f)]=null,this['_tryEnsureSocket']();},_0x1219a5),this['_retryCount']+=0x1;}[_0x14a8b9(0x2ac)](_0x340a1a,_0xb055a6){const _0x369ec3=_0x14a8b9,{cmd:_0xc61f0c}=_0xb055a6;_0xc61f0c===G[_0x369ec3(0x501)]&&!this['_socketReady']&&(_0x340a1a[_0x369ec3(0x3ac)]=_0xb055a6['data'][_0x369ec3(0x3ac)],this['_socket$'][_0x369ec3(0x269)](_0x340a1a),this[_0x369ec3(0x59f)]['next'](ne[_0x369ec3(0x42f)]),this[_0x369ec3(0x4bb)]=!0x0,this['_candidateSocket']=null),_0xc61f0c===G[_0x369ec3(0x286)]&&this[_0x369ec3(0x59e)](),this[_0x369ec3(0x4f3)]();}[_0x14a8b9(0x4f3)](){const _0x951f46=_0x14a8b9;var _0x291690;this[_0x951f46(0x55f)](),this[_0x951f46(0x417)]=window['setTimeout'](()=>this[_0x951f46(0x3aa)](),(_0x291690=this[_0x951f46(0x65b)]['getConfig'](pi))!=null?_0x291690:Ji);}['_sendHeartbeat'](){const _0x4f082d=_0x14a8b9;this[_0x4f082d(0x419)][_0x4f082d(0x3c9)]({'cmd':G[_0x4f082d(0x286)]}),this[_0x4f082d(0x346)]();}['_waitForHeartbeatResponse'](){const _0x1e9a17=_0x14a8b9;var _0x3d6283;this[_0x1e9a17(0x3c7)]=window[_0x1e9a17(0x26d)](()=>this['_onConnectionFailed'](),(_0x3d6283=this[_0x1e9a17(0x65b)][_0x1e9a17(0x2dd)](Ot))!=null?_0x3d6283:Si);}[_0x14a8b9(0x55f)](){const _0x299a66=_0x14a8b9;this[_0x299a66(0x417)]!=null&&(clearTimeout(this[_0x299a66(0x417)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x60451d=_0x14a8b9;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x60451d(0x3c7)]),this['_timeoutTimer']=null);}},exports[_0x14a8b9(0x521)]=In([pe(0x0,a[_0x14a8b9(0x1e2)](a['Injector'])),pe(0x1,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x3de)])),pe(0x2,ee[_0x14a8b9(0x474)]),pe(0x3,a[_0x14a8b9(0x1df)]),pe(0x4,a['IConfigService']),pe(0x5,Pt),pe(0x6,a['Inject'](z['HTTPService']))],exports[_0x14a8b9(0x521)]);const Y=[];for(let r=0x0;r<0x100;++r)Y[_0x14a8b9(0x5a8)]((r+0x100)[_0x14a8b9(0x208)](0x10)['slice'](0x1));function Cn(_0x4dd8f4,_0x2f2091=0x0){const _0x2f6384=_0x14a8b9;return(Y[_0x4dd8f4[_0x2f2091+0x0]]+Y[_0x4dd8f4[_0x2f2091+0x1]]+Y[_0x4dd8f4[_0x2f2091+0x2]]+Y[_0x4dd8f4[_0x2f2091+0x3]]+'-'+Y[_0x4dd8f4[_0x2f2091+0x4]]+Y[_0x4dd8f4[_0x2f2091+0x5]]+'-'+Y[_0x4dd8f4[_0x2f2091+0x6]]+Y[_0x4dd8f4[_0x2f2091+0x7]]+'-'+Y[_0x4dd8f4[_0x2f2091+0x8]]+Y[_0x4dd8f4[_0x2f2091+0x9]]+'-'+Y[_0x4dd8f4[_0x2f2091+0xa]]+Y[_0x4dd8f4[_0x2f2091+0xb]]+Y[_0x4dd8f4[_0x2f2091+0xc]]+Y[_0x4dd8f4[_0x2f2091+0xd]]+Y[_0x4dd8f4[_0x2f2091+0xe]]+Y[_0x4dd8f4[_0x2f2091+0xf]])[_0x2f6384(0x549)]();}let ct;const En=new Uint8Array(0x10);function bn(){const _0x464917=_0x14a8b9;if(!ct){if(typeof crypto>'u'||!crypto['getRandomValues'])throw new Error(_0x464917(0x424));ct=crypto[_0x464917(0x5a1)][_0x464917(0x46f)](crypto);}return ct(En);}const Tn=typeof crypto<'u'&&crypto[_0x14a8b9(0x450)]&&crypto['randomUUID'][_0x14a8b9(0x46f)](crypto),Ht={'randomUUID':Tn};function Rn(_0x8aad34,_0x440160,_0x41d665){const _0xccd0cd=_0x14a8b9;if(Ht[_0xccd0cd(0x450)]&&!_0x440160&&!_0x8aad34)return Ht[_0xccd0cd(0x450)]();_0x8aad34=_0x8aad34||{};const _0x1fb2a1=_0x8aad34['random']||(_0x8aad34[_0xccd0cd(0x4f4)]||bn)();return _0x1fb2a1[0x6]=_0x1fb2a1[0x6]&0xf|0x40,_0x1fb2a1[0x8]=_0x1fb2a1[0x8]&0x3f|0x80,Cn(_0x1fb2a1);}var yn=Object[_0x14a8b9(0x4ed)],On=Object['getOwnPropertyDescriptor'],Dn=(_0x2d511c,_0x8f6a32,_0x208661,_0x3245d5)=>{const _0x461600=_0x14a8b9;for(var _0x543208=_0x3245d5>0x1?void 0x0:_0x3245d5?On(_0x8f6a32,_0x208661):_0x8f6a32,_0x14ef4e=_0x2d511c[_0x461600(0x4a6)]-0x1,_0x17ac08;_0x14ef4e>=0x0;_0x14ef4e--)(_0x17ac08=_0x2d511c[_0x14ef4e])&&(_0x543208=(_0x3245d5?_0x17ac08(_0x8f6a32,_0x208661,_0x543208):_0x17ac08(_0x543208))||_0x543208);return _0x3245d5&&_0x543208&&yn(_0x8f6a32,_0x208661,_0x543208),_0x543208;},lt=(_0x2b4e95,_0x556505)=>(_0x54b188,_0x1f0a1a)=>_0x556505(_0x54b188,_0x1f0a1a,_0x2b4e95);let Je=class{constructor(_0x344c54,_0x39868e,_0x47c1fd){const _0x117b2c=_0x14a8b9;this[_0x117b2c(0x5a5)]=_0x344c54,this[_0x117b2c(0x36f)]=_0x39868e,this['_renderManagerService']=_0x47c1fd;}[_0x14a8b9(0x254)](_0x3b1999){const _0xcb29cc=_0x14a8b9;this[_0xcb29cc(0x4f8)](_0x3b1999),this['_transformPreviousActiveRange'](_0x3b1999);}[_0x14a8b9(0x427)](_0x15fbc0){const _0x22b768=_0x14a8b9,{unitID:_0x6106ac}=_0x15fbc0,_0xd50c9c=this[_0x22b768(0x412)][_0x22b768(0x22e)](_0x6106ac)[_0x22b768(0x565)](J[_0x22b768(0x361)]),{redoCache:_0x3ce6d0}=_0xd50c9c[_0x22b768(0x266)]();if(_0x3ce6d0['length']===0x0)return _0x15fbc0;let _0x4d0b79=a['Tools']['deepClone'](_0x15fbc0[_0x22b768(0x61f)][0x0]);for(let _0x4f6c85=0x0;_0x4f6c85<_0x3ce6d0[_0x22b768(0x4a6)];_0x4f6c85++){const _0x752a0c={'id':_0x22b768(0x390),'params':{..._0x3ce6d0[_0x4f6c85]}},_0x42bfca=this['_transformService'][_0x22b768(0x2c9)](_0x4d0b79,_0x752a0c,!0x1);if(m[_0x22b768(0x2eb)](_0x42bfca))throw _0x42bfca[_0x22b768(0x45c)];_0x4d0b79=_0x42bfca['m1Prime'];}return{...a[_0x22b768(0x625)][_0x22b768(0x54c)](_0x15fbc0),'mutations':[_0x4d0b79]};}[_0x14a8b9(0x4f8)](_0x46a775){const _0x43ad52=_0x14a8b9,{unitID:_0x8d6016}=_0x46a775,_0x31d436=this[_0x43ad52(0x412)]['getRenderById'](_0x8d6016)[_0x43ad52(0x565)](J[_0x43ad52(0x361)]),{undoCache:_0x252319,redoCache:_0x2aa592}=_0x31d436[_0x43ad52(0x266)]();if(_0x252319[_0x43ad52(0x4a6)]===0x0||_0x2aa592[_0x43ad52(0x4a6)]===0x0)return;const _0x55a7c9=[],_0x3bb1f3=[];let _0x2effc3=a[_0x43ad52(0x625)]['deepClone'](_0x46a775[_0x43ad52(0x61f)][0x0]),_0x3e747a=a[_0x43ad52(0x625)][_0x43ad52(0x54c)](_0x46a775[_0x43ad52(0x61f)][0x0]);for(let _0x4c7c37=_0x252319['length']-0x1;_0x4c7c37>=0x0;_0x4c7c37--){const _0x2dc36a={'id':_0x43ad52(0x390),'params':{..._0x252319[_0x4c7c37]}},_0x203bc1={'id':_0x43ad52(0x390),'params':{..._0x2aa592[_0x4c7c37]}},_0x297166=this[_0x43ad52(0x36f)][_0x43ad52(0x2c9)](_0x2effc3,_0x2dc36a,!0x1),_0x3bb720=this['_transformService'][_0x43ad52(0x2c9)](_0x3e747a,_0x203bc1,!0x1);if(m['isTransformMutationFailure'](_0x297166))throw _0x297166[_0x43ad52(0x45c)];if(m[_0x43ad52(0x2eb)](_0x3bb720))throw _0x3bb720[_0x43ad52(0x45c)];_0x55a7c9['unshift'](_0x297166[_0x43ad52(0x4b1)][_0x43ad52(0x51a)]),_0x3bb1f3[_0x43ad52(0x5fb)](_0x3bb720[_0x43ad52(0x4b1)]['params']),_0x2effc3=_0x297166[_0x43ad52(0x1e3)],_0x3e747a=_0x3bb720[_0x43ad52(0x1e3)];}_0x31d436[_0x43ad52(0x409)]({'undoCache':_0x55a7c9,'redoCache':_0x3bb1f3});}[_0x14a8b9(0x3ad)](_0xf66dc1){const _0x3ad7fc=_0x14a8b9,{unitID:_0x671d27}=_0xf66dc1,_0x21a178=this['_renderManagerService'][_0x3ad7fc(0x22e)](_0x671d27)[_0x3ad7fc(0x565)](J[_0x3ad7fc(0x361)]),_0x5a3fff=_0x21a178['getActiveRange']();if(_0x5a3fff==null)return;const _0x4fbb63=[{'id':_0x3ad7fc(0x390),'params':{'unitId':_0xf66dc1[_0x3ad7fc(0x5b7)],'actions':null,'textRanges':[_0x5a3fff]}}],_0x37c6fc=this['_transformService'][_0x3ad7fc(0x36a)](_0xf66dc1,_0x4fbb63);if(!m[_0x3ad7fc(0x229)](_0x37c6fc))throw _0x37c6fc[_0x3ad7fc(0x45c)];const _0x3dda8a=_0x37c6fc[_0x3ad7fc(0x4b1)][0x0][_0x3ad7fc(0x51a)]['textRanges'];Array['isArray'](_0x3dda8a)&&_0x3dda8a[_0x3ad7fc(0x4a6)]&&_0x21a178[_0x3ad7fc(0x2ec)](_0x3dda8a[0x0]);}};Je=Dn([lt(0x0,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),lt(0x1,m[_0x14a8b9(0x3f8)]),lt(0x2,q[_0x14a8b9(0x5fc)])],Je);var Pn=Object[_0x14a8b9(0x4ed)],wn=Object[_0x14a8b9(0x5ee)],Un=(_0x45e4be,_0xa8b700,_0x3d5a46,_0x76efd2)=>{const _0x59d7ac=_0x14a8b9;for(var _0x5e10fb=_0x76efd2>0x1?void 0x0:_0x76efd2?wn(_0xa8b700,_0x3d5a46):_0xa8b700,_0x589760=_0x45e4be[_0x59d7ac(0x4a6)]-0x1,_0x38ea64;_0x589760>=0x0;_0x589760--)(_0x38ea64=_0x45e4be[_0x589760])&&(_0x5e10fb=(_0x76efd2?_0x38ea64(_0xa8b700,_0x3d5a46,_0x5e10fb):_0x38ea64(_0x5e10fb))||_0x5e10fb);return _0x76efd2&&_0x5e10fb&&Pn(_0xa8b700,_0x3d5a46,_0x5e10fb),_0x5e10fb;},Pe=(_0x3dce1b,_0xa63089)=>(_0x5e7d4d,_0x2c48d1)=>_0xa63089(_0x5e7d4d,_0x2c48d1,_0x3dce1b);exports['LocalCacheService']=class extends a[_0x14a8b9(0x4d8)]{constructor(_0x5e1572,_0x433c7e,_0x286e00,_0x1c45f6,_0x64d9d7){const _0x7f18da=_0x14a8b9;super(),I(this,_0x7f18da(0x3c1),new Map()),I(this,_0x7f18da(0x5bf),new Map()),I(this,_0x7f18da(0x2d8),!0x1),(this['_configService']=_0x5e1572,this['_localStorageService']=_0x433c7e,this[_0x7f18da(0x24a)]=_0x286e00,this[_0x7f18da(0x290)]=_0x1c45f6,this[_0x7f18da(0x2e4)]=_0x64d9d7,this['_setupBeforeClosingHandler']());}[_0x14a8b9(0x388)](){const _0x420175=_0x14a8b9;this[_0x420175(0x2d8)]=!0x0;}[_0x14a8b9(0x5db)](){const _0x498785=_0x14a8b9;this[_0x498785(0x2d8)]=!0x1;}[_0x14a8b9(0x52d)](){const _0x41ef36=_0x14a8b9;this[_0x41ef36(0x2ef)]()[_0x41ef36(0x570)](()=>super[_0x41ef36(0x52d)]());}async['loadOfflineData'](_0x18ab6d){const _0x2af968=_0x14a8b9;return this[_0x2af968(0x2d8)]?null:this[_0x2af968(0x57f)][_0x2af968(0x2c3)](Bt(_0x18ab6d));}async[_0x14a8b9(0x566)](_0x28c389,_0x479123){const _0x3ac027=_0x14a8b9;return!!this[_0x3ac027(0x57f)][_0x3ac027(0x685)](_0x28c389,_0x479123);}['updateOfflineData'](_0x4ce35e,_0xacc350,_0x42db14,_0x13094c){const _0x13d636=_0x14a8b9,_0x482cd7=this[_0x13d636(0x2e4)][_0x13d636(0x33e)](_0x4ce35e);this[_0x13d636(0x3c1)][_0x13d636(0x69e)](_0x4ce35e,{'unitID':_0x4ce35e,'type':_0xacc350,'awaitingChangeset':_0x42db14,'mutations':_0x13094c,'rev':_0x482cd7}),this[_0x13d636(0x5bf)][_0x13d636(0x3fd)](_0x4ce35e)||this[_0x13d636(0x247)](_0x4ce35e);}['_scheduleSaving'](_0x2497d2){const _0x4a74fe=_0x14a8b9,_0x475d44=this[_0x4a74fe(0x201)]();_0x475d44===0x0?this[_0x4a74fe(0x5d6)](_0x2497d2):this[_0x4a74fe(0x5bf)][_0x4a74fe(0x69e)](_0x2497d2,setTimeout(()=>this[_0x4a74fe(0x5d6)](_0x2497d2),_0x475d44));}[_0x14a8b9(0x201)](){const _0x4062ec=_0x14a8b9;var _0x23577a;return(_0x23577a=this[_0x4062ec(0x65b)][_0x4062ec(0x2dd)](gi))!=null?_0x23577a:en;}[_0x14a8b9(0x5d6)](_0x3f79a7){const _0x45234e=_0x14a8b9,_0xe08d99=this[_0x45234e(0x5bf)][_0x45234e(0x249)](_0x3f79a7);return _0xe08d99!==void 0x0&&window[_0x45234e(0x608)](_0xe08d99),this[_0x45234e(0x57f)][_0x45234e(0x685)](Bt(_0x3f79a7),this[_0x45234e(0x3c1)][_0x45234e(0x249)](_0x3f79a7))[_0x45234e(0x570)](()=>this['_saveTaskMap'][_0x45234e(0x5b6)](_0x3f79a7));}async[_0x14a8b9(0x2ef)](){const _0x4b9b7d=_0x14a8b9,_0x398f6e=[];this[_0x4b9b7d(0x5bf)]['forEach']((_0x127077,_0x3f27be)=>{const _0x5ac1c3=_0x4b9b7d;window[_0x5ac1c3(0x608)](_0x127077),_0x398f6e[_0x5ac1c3(0x5a8)](this[_0x5ac1c3(0x5d6)](_0x3f27be)['then'](()=>{const _0x3546fa=_0x5ac1c3;this[_0x3546fa(0x5bf)]['delete'](_0x3f27be);}));}),await Promise[_0x4b9b7d(0x507)](_0x398f6e);}[_0x14a8b9(0x68b)](){const _0x1d6919=_0x14a8b9;this[_0x1d6919(0x622)](this[_0x1d6919(0x24a)][_0x1d6919(0x591)](()=>{const _0x4ba2be=_0x1d6919;if(this['_saveTaskMap']['size'])return this[_0x4ba2be(0x290)]['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x14a8b9(0x3b9)]=Un([Pe(0x0,a[_0x14a8b9(0x2fe)]),Pe(0x1,a['ILocalStorageService']),Pe(0x2,ee[_0x14a8b9(0x56a)]),Pe(0x3,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x3de)])),Pe(0x4,a[_0x14a8b9(0x1e2)](m['RevisionService']))],exports[_0x14a8b9(0x3b9)]);function Bt(_0x5f4e98){return'unit-cache-'+_0x5f4e98;}var Mn=Object['defineProperty'],An=Object[_0x14a8b9(0x5ee)],Nn=(_0x20b4fa,_0x4cbe0b,_0x29f390,_0x59a281)=>{const _0x43e31a=_0x14a8b9;for(var _0x1c21a7=_0x59a281>0x1?void 0x0:_0x59a281?An(_0x4cbe0b,_0x29f390):_0x4cbe0b,_0x1294a0=_0x20b4fa[_0x43e31a(0x4a6)]-0x1,_0x59c86f;_0x1294a0>=0x0;_0x1294a0--)(_0x59c86f=_0x20b4fa[_0x1294a0])&&(_0x1c21a7=(_0x59a281?_0x59c86f(_0x4cbe0b,_0x29f390,_0x1c21a7):_0x59c86f(_0x1c21a7))||_0x1c21a7);return _0x59a281&&_0x1c21a7&&Mn(_0x4cbe0b,_0x29f390,_0x1c21a7),_0x1c21a7;},ht=(_0x1ec42c,_0x2b10e6)=>(_0x5abc26,_0x4e0ce6)=>_0x2b10e6(_0x5abc26,_0x4e0ce6,_0x1ec42c);function Ln(_0x5c3c74){const _0x344ed0=_0x14a8b9,{unitID:_0x1edc91,mutations:_0x3f4e81}=_0x5c3c74;return{'unitId':_0x1edc91,'subUnitId':_0x3f4e81[0x0][_0x344ed0(0x51a)][_0x344ed0(0x1f7)]};}let Ze=class{constructor(_0x35ce3a,_0x3fb767,_0x4feb00){const _0x1f232a=_0x14a8b9;this[_0x1f232a(0x5a5)]=_0x35ce3a,this[_0x1f232a(0x36f)]=_0x3fb767,this[_0x1f232a(0x363)]=_0x4feb00;}[_0x14a8b9(0x299)](_0x2033d9){const _0x589b90=_0x14a8b9;var _0x5572cf,_0x8ba78b,_0x3231c9,_0x200f60;const _0xf27b4d=this['_injector']['get'](k[_0x589b90(0x1f5)]),{unitId:_0x41ba02,subUnitId:_0x1a0dfe}=Ln(_0x2033d9),_0x4a0fca=_0xf27b4d[_0x589b90(0x33c)](_0x41ba02)['getCurrentSelections'](),_0x56cc9b=(_0x8ba78b=(_0x5572cf=this['_instanceService']['getUnit'](_0x41ba02))==null?void 0x0:_0x5572cf['getActiveSheet']())==null?void 0x0:_0x8ba78b[_0x589b90(0x588)]();if(_0x4a0fca['length']===0x0||!_0x41ba02||!_0x1a0dfe)return;const _0xdc4d4c=[{'id':k[_0x589b90(0x589)]['id'],'params':{'unitId':_0x41ba02,'subUnitId':_0x56cc9b,'selections':a[_0x589b90(0x625)][_0x589b90(0x54c)](_0x4a0fca)}}],_0x4c70bf=this[_0x589b90(0x36f)]['transformMutationsWithChangeset'](_0x2033d9,_0xdc4d4c);if(!m['isTransformMutationsWithChangesetSuccess'](_0x4c70bf))throw _0x4c70bf[_0x589b90(0x45c)];const _0x5303ab=(_0x200f60=(_0x3231c9=_0x4c70bf[_0x589b90(0x4b1)][0x0])==null?void 0x0:_0x3231c9[_0x589b90(0x51a)])==null?void 0x0:_0x200f60['selections'];if(Array['isArray'](_0x5303ab)&&_0x5303ab['length']){if(_0x5303ab[_0x589b90(0x4a6)]===_0xdc4d4c[0x0][_0x589b90(0x51a)][_0x589b90(0x323)][_0x589b90(0x4a6)]&&_0x5303ab[_0x589b90(0x4e0)]((_0x373bd4,_0x5e17bd)=>a['Rectangle'][_0x589b90(0x649)](_0x373bd4['range'],_0xdc4d4c[0x0][_0x589b90(0x51a)][_0x589b90(0x323)][_0x5e17bd][_0x589b90(0x20f)])))return;this[_0x589b90(0x5a5)][_0x589b90(0x249)](a[_0x589b90(0x2a7)])[_0x589b90(0x533)](k[_0x589b90(0x589)]['id'],{'unitId':_0x41ba02,'subUnitId':_0x56cc9b,'selections':_0x5303ab});}}};Ze=Nn([ht(0x0,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),ht(0x1,m[_0x14a8b9(0x3f8)]),ht(0x2,a[_0x14a8b9(0x2e5)])],Ze);const ot=a[_0x14a8b9(0x263)](_0x14a8b9(0x65e));var yi=(_0x488916=>(_0x488916[_0x488916[_0x14a8b9(0x3ea)]=0x0]=_0x14a8b9(0x3ea),_0x488916[_0x488916[_0x14a8b9(0x624)]=0x1]='OTHER_CLIENTS_EDITING',_0x488916))(yi||{});const kt=0x7530,Wt=_0x14a8b9(0x646);class xn extends a[_0x14a8b9(0x4d8)]{constructor(){const _0x408f43=_0x14a8b9;super(),I(this,_0x408f43(0x43b),a['Tools'][_0x408f43(0x626)]()),I(this,_0x408f43(0x2a6),new Set()),I(this,_0x408f43(0x2d7),new Map()),I(this,_0x408f43(0x456),null),I(this,_0x408f43(0x38b),new Map()),I(this,_0x408f43(0x514),new Map()),this[_0x408f43(0x68d)]();}[_0x14a8b9(0x52d)](){const _0x2b8b8d=_0x14a8b9;super[_0x2b8b8d(0x52d)](),this[_0x2b8b8d(0x38b)][_0x2b8b8d(0x4cd)]((_0x2b465a,_0x273e20)=>this[_0x2b8b8d(0x344)](_0x273e20)),this[_0x2b8b8d(0x456)]&&window[_0x2b8b8d(0x289)](this['_heartbeatTimer']);}[_0x14a8b9(0x635)](_0x4100da){const _0x2e3169=_0x14a8b9;return this[_0x2e3169(0x5c3)](_0x4100da)[_0x2e3169(0x4e7)](A[_0x2e3169(0x50b)]());}[_0x14a8b9(0x35d)](_0x1da6d5){const _0x34d957=_0x14a8b9;this['_selfUnitIDs']['size']===0x0&&this[_0x34d957(0x4a1)](),this['_selfUnitIDs'][_0x34d957(0x404)](_0x1da6d5),this['_send']({'type':0x0,'memberID':this[_0x34d957(0x43b)],'unitIDs':[_0x1da6d5],'isForwarded':!0x1});}[_0x14a8b9(0x50a)](_0x1aefe9){const _0x2a4eaa=_0x14a8b9;this[_0x2a4eaa(0x2a6)][_0x2a4eaa(0x5b6)](_0x1aefe9),this[_0x2a4eaa(0x2a6)][_0x2a4eaa(0x535)]===0x0&&this[_0x2a4eaa(0x456)]&&window[_0x2a4eaa(0x289)](this[_0x2a4eaa(0x456)]);}[_0x14a8b9(0x68d)](){const _0x479b11=_0x14a8b9;this[_0x479b11(0x622)](a[_0x479b11(0x537)](A[_0x479b11(0x5c0)](window,_0x479b11(0x465))[_0x479b11(0x32b)](_0x1aaa3e=>{const _0x4983a2=_0x479b11;if(_0x1aaa3e[_0x4983a2(0x438)]!==Wt||!_0x1aaa3e[_0x4983a2(0x2c1)])return;const _0x4148e0=JSON[_0x4983a2(0x26f)](_0x1aaa3e['newValue']);this[_0x4983a2(0x3e1)](_0x4148e0);}))),window[_0x479b11(0x3ee)](_0x479b11(0x2b8),()=>this[_0x479b11(0x200)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x479b11(0x4ac)](this['_selfUnitIDs'])}));}[_0x14a8b9(0x3e1)](_0xa3d12c){const _0x13b8c3=_0x14a8b9;switch(_0xa3d12c[_0x13b8c3(0x64d)]){case 0x0:this[_0x13b8c3(0x558)](_0xa3d12c);break;case 0x1:this[_0x13b8c3(0x405)](_0xa3d12c);break;case 0x2:this[_0x13b8c3(0x54a)](_0xa3d12c);break;}}[_0x14a8b9(0x558)](_0x3afee8){const _0x35e4ad=_0x14a8b9,{unitIDs:_0x3d3d2d,memberID:_0x335b8e,isForwarded:_0x3a13fa}=_0x3afee8;_0x3d3d2d['forEach'](_0x36b4ed=>{const _0x58288a=_0x3122;if(!_0x3a13fa&&this[_0x58288a(0x2d7)]['has'](_0x36b4ed)&&this[_0x58288a(0x5c3)](_0x36b4ed)[_0x58288a(0x269)](0x1),!this['_unitOnClients']['has'](_0x36b4ed)||!this[_0x58288a(0x2d7)]['get'](_0x36b4ed)[_0x58288a(0x3fd)](_0x335b8e)){const _0x3274b6=this['_unitOnClients'][_0x58288a(0x249)](_0x36b4ed)||new Set();_0x3274b6[_0x58288a(0x404)](_0x335b8e),this[_0x58288a(0x2d7)]['set'](_0x36b4ed,_0x3274b6),this[_0x58288a(0x643)](_0x335b8e);}}),_0x3a13fa||this[_0x35e4ad(0x200)]({'type':0x0,'memberID':this[_0x35e4ad(0x43b)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x14a8b9(0x643)](_0x2aee7a){const _0x214e7f=_0x14a8b9;this[_0x214e7f(0x344)](_0x2aee7a);const _0xa5022b=window[_0x214e7f(0x26d)](()=>{const _0x446504=_0x214e7f;this[_0x446504(0x2d7)]['forEach'](_0x4b3f84=>{const _0x539848=_0x446504;_0x4b3f84[_0x539848(0x5b6)](_0x2aee7a);});},kt*0x2);this[_0x214e7f(0x38b)][_0x214e7f(0x69e)](_0x2aee7a,_0xa5022b);}[_0x14a8b9(0x344)](_0x56ea76){const _0x1e315f=_0x14a8b9;if(this[_0x1e315f(0x38b)][_0x1e315f(0x3fd)](_0x56ea76)){const _0x25122e=this[_0x1e315f(0x38b)][_0x1e315f(0x249)](_0x56ea76);_0x25122e&&window[_0x1e315f(0x608)](_0x25122e),this[_0x1e315f(0x38b)][_0x1e315f(0x69e)](_0x56ea76,null);}}[_0x14a8b9(0x405)](_0x2d402c){const _0x527d2f=_0x14a8b9,{memberID:_0x4bd001,unitIDs:_0x6d9f28}=_0x2d402c;_0x6d9f28[_0x527d2f(0x4cd)](_0xf4d389=>{const _0x3226a9=_0x527d2f;var _0x1f6fcd;const _0x453490=this[_0x3226a9(0x2d7)]['get'](_0xf4d389);_0x453490&&(_0x453490[_0x3226a9(0x5b6)](_0x4bd001),(_0x1f6fcd=this[_0x3226a9(0x5c3)](_0xf4d389))==null||_0x1f6fcd['next'](_0x453490[_0x3226a9(0x535)]===0x0?0x0:0x1));}),this[_0x527d2f(0x344)](_0x4bd001);}['_handleHeartbeatEvent'](_0x21cbcc){const _0x1181f0=_0x14a8b9;this[_0x1181f0(0x643)](_0x21cbcc['memberID']);}[_0x14a8b9(0x200)](_0x84e52e){const _0x19c5bd=_0x14a8b9;localStorage[_0x19c5bd(0x685)](Wt,JSON[_0x19c5bd(0x659)](_0x84e52e));}[_0x14a8b9(0x4a1)](){const _0x3c589c=_0x14a8b9;this[_0x3c589c(0x456)]=window[_0x3c589c(0x1f0)](()=>{const _0x1ce3f9=_0x3c589c;this[_0x1ce3f9(0x200)]({'type':0x2,'memberID':this[_0x1ce3f9(0x43b)]});},kt);}[_0x14a8b9(0x5c3)](_0xff0ad2){const _0x5dc4af=_0x14a8b9;return this[_0x5dc4af(0x514)]['has'](_0xff0ad2)||this[_0x5dc4af(0x514)][_0x5dc4af(0x69e)](_0xff0ad2,new A[(_0x5dc4af(0x244))](0x0)),this[_0x5dc4af(0x514)]['get'](_0xff0ad2);}}var $n=Object[_0x14a8b9(0x4ed)],jn=Object[_0x14a8b9(0x5ee)],Hn=(_0x1c6792,_0x4b372,_0x448069,_0x458637)=>{const _0x40d491=_0x14a8b9;for(var _0x4561ac=_0x458637>0x1?void 0x0:_0x458637?jn(_0x4b372,_0x448069):_0x4b372,_0x4f4d11=_0x1c6792[_0x40d491(0x4a6)]-0x1,_0x1838b4;_0x4f4d11>=0x0;_0x4f4d11--)(_0x1838b4=_0x1c6792[_0x4f4d11])&&(_0x4561ac=(_0x458637?_0x1838b4(_0x4b372,_0x448069,_0x4561ac):_0x1838b4(_0x4561ac))||_0x4561ac);return _0x458637&&_0x4561ac&&$n(_0x4b372,_0x448069,_0x4561ac),_0x4561ac;},_t=(_0x27bd04,_0x97dbd7)=>(_0x736074,_0x1101e8)=>_0x97dbd7(_0x736074,_0x1101e8,_0x27bd04);let Qe=class{constructor(_0x1e7cb2,_0x112256,_0x4f242e){const _0x114747=_0x14a8b9;this[_0x114747(0x5a5)]=_0x1e7cb2,this[_0x114747(0x36f)]=_0x112256,this[_0x114747(0x612)]=_0x4f242e;}[_0x14a8b9(0x57c)](_0x241b50){const _0x4073bb=_0x14a8b9;this[_0x4073bb(0x68f)](_0x241b50);}[_0x14a8b9(0x427)](_0x385c64){const _0x5e49d9=_0x14a8b9,{unitID:_0x7f59a0}=_0x385c64,{collaboration:_0x1979ed}=this[_0x5e49d9(0x612)]['getStateCache'](_0x7f59a0);if(_0x1979ed['length']===0x0)return _0x385c64;let _0x11ed31=a[_0x5e49d9(0x625)][_0x5e49d9(0x54c)](_0x385c64[_0x5e49d9(0x61f)][0x0]);for(let _0x5bb191=0x0;_0x5bb191<_0x1979ed['length'];_0x5bb191++){const _0x14f623={'id':_0x5e49d9(0x390),'params':{'unitId':_0x1979ed[_0x5bb191][_0x5e49d9(0x48c)],..._0x1979ed[_0x5bb191][_0x5e49d9(0x5f3)]}},_0x389575=this[_0x5e49d9(0x36f)][_0x5e49d9(0x2c9)](_0x11ed31,_0x14f623,!0x1);if(m[_0x5e49d9(0x2eb)](_0x389575))throw _0x389575[_0x5e49d9(0x45c)];_0x11ed31=_0x389575[_0x5e49d9(0x1e3)];}return{...a['Tools'][_0x5e49d9(0x54c)](_0x385c64),'mutations':[_0x11ed31]};}[_0x14a8b9(0x68f)](_0x48a3f9){const _0x465e1d=_0x14a8b9,{unitID:_0x314291}=_0x48a3f9,{history:_0x4b688a,collaboration:_0x478877}=this[_0x465e1d(0x612)][_0x465e1d(0x28c)](_0x314291);if(_0x4b688a[_0x465e1d(0x4a6)]===0x0&&_0x478877['length']===0x0)return;const _0x3c4309=[],_0x3cf72a=[];let _0xa3ce57=a['Tools'][_0x465e1d(0x54c)](_0x48a3f9[_0x465e1d(0x61f)][0x0]),_0x305eb0=a[_0x465e1d(0x625)]['deepClone'](_0x48a3f9[_0x465e1d(0x61f)][0x0]);for(let _0x349883=_0x4b688a[_0x465e1d(0x4a6)]-0x1;_0x349883>=0x0;_0x349883--){const _0x38bd50={'id':_0x465e1d(0x390),'params':{'unitId':_0x4b688a[_0x349883][_0x465e1d(0x48c)],..._0x4b688a[_0x349883][_0x465e1d(0x268)]}},_0x504cee={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4b688a[_0x349883][_0x465e1d(0x48c)],..._0x4b688a[_0x349883][_0x465e1d(0x5f3)]}},_0x224424=this[_0x465e1d(0x36f)][_0x465e1d(0x2c9)](_0xa3ce57,_0x38bd50,!0x1),_0x2ba145=this[_0x465e1d(0x36f)][_0x465e1d(0x2c9)](_0x305eb0,_0x504cee,!0x1);if(m[_0x465e1d(0x2eb)](_0x224424))throw _0x224424['error'];if(m[_0x465e1d(0x2eb)](_0x2ba145))throw _0x2ba145[_0x465e1d(0x45c)];_0x3c4309[_0x465e1d(0x5fb)]({..._0x4b688a[_0x349883],'undoState':_0x224424[_0x465e1d(0x4b1)][_0x465e1d(0x51a)],'redoState':_0x2ba145[_0x465e1d(0x4b1)][_0x465e1d(0x51a)]}),_0xa3ce57=_0x224424[_0x465e1d(0x1e3)],_0x305eb0=_0x2ba145[_0x465e1d(0x1e3)];}_0xa3ce57=a[_0x465e1d(0x625)][_0x465e1d(0x54c)](_0x48a3f9[_0x465e1d(0x61f)][0x0]),_0x305eb0=a[_0x465e1d(0x625)][_0x465e1d(0x54c)](_0x48a3f9[_0x465e1d(0x61f)][0x0]);for(let _0x5a343b=_0x478877[_0x465e1d(0x4a6)]-0x1;_0x5a343b>=0x0;_0x5a343b--){const _0x1bfc0e={'id':_0x465e1d(0x390),'params':{'unitId':_0x478877[_0x5a343b][_0x465e1d(0x48c)],..._0x478877[_0x5a343b][_0x465e1d(0x268)]}},_0x59e739={'id':_0x465e1d(0x390),'params':{'unitId':_0x478877[_0x5a343b]['unitId'],..._0x478877[_0x5a343b][_0x465e1d(0x5f3)]}},_0x2611c0=this[_0x465e1d(0x36f)][_0x465e1d(0x2c9)](_0xa3ce57,_0x1bfc0e,!0x1),_0x4a5cd2=this['_transformService']['transformMutation'](_0x305eb0,_0x59e739,!0x1);if(m[_0x465e1d(0x2eb)](_0x2611c0))throw _0x2611c0[_0x465e1d(0x45c)];if(m['isTransformMutationFailure'](_0x4a5cd2))throw _0x4a5cd2['error'];_0x3cf72a[_0x465e1d(0x5fb)]({..._0x478877[_0x5a343b],'undoState':_0x2611c0['m2Prime']['params'],'redoState':_0x4a5cd2[_0x465e1d(0x4b1)]['params']}),_0xa3ce57=_0x2611c0[_0x465e1d(0x1e3)],_0x305eb0=_0x4a5cd2['m1Prime'];}this[_0x465e1d(0x612)][_0x465e1d(0x32d)](_0x314291,{'history':_0x3c4309,'collaboration':_0x3cf72a});}};Qe=Hn([_t(0x0,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),_t(0x1,m[_0x14a8b9(0x3f8)]),_t(0x2,a['Inject'](J[_0x14a8b9(0x235)]))],Qe);function Oi(_0x294dcd){const _0xa8c7da=_0x14a8b9;let _0x10f3ca='';for(const _0xdde674 of _0x294dcd){const {startOffset:_0x39c1a8,endOffset:_0x1e9018,isActive:_0x463e7d,rangeType:_0x33e1cb,segmentId:_0x291e73,segmentPage:_0x4c4396}=_0xdde674;_0x10f3ca[_0xa8c7da(0x4a6)]&&(_0x10f3ca+=','),_0x10f3ca+=_0x39c1a8+':'+_0x1e9018+':'+(_0x463e7d?'1':'0')+':'+_0x33e1cb+':'+_0x291e73+':'+_0x4c4396;}return _0x10f3ca;}function Bn(_0x2940d4){const _0x37201e=_0x14a8b9,_0x30cbce=_0x2940d4['split'](','),_0xd4e73a=[];for(const _0x11e1e7 of _0x30cbce){const [_0x474dad,_0xe41d64,_0x1c3e2e,_0x2e2b5d,_0x45a5ff,_0x13c7fb]=_0x11e1e7[_0x37201e(0x516)](':');_0xd4e73a[_0x37201e(0x5a8)]({'startOffset':Number(_0x474dad),'endOffset':Number(_0xe41d64),'collapsed':_0x474dad===_0xe41d64,'isActive':_0x1c3e2e==='1','rangeType':_0x2e2b5d===a[_0x37201e(0x3b7)][_0x37201e(0x2e1)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x37201e(0x3b7)]['RECT'],'segmentId':typeof _0x45a5ff==_0x37201e(0x4bd)?String(_0x45a5ff):'','segmentPage':Number(_0x13c7fb!=null?_0x13c7fb:-0x1)});}return _0xd4e73a[_0x37201e(0x45d)](_0x4b5f40=>_0x4b5f40[_0x37201e(0x5d5)])||(_0xd4e73a[0x0][_0x37201e(0x5d5)]=!0x0),_0xd4e73a;}class Ut extends a['RxDisposable']{constructor(){const _0x105bc5=_0x14a8b9;super(...arguments),I(this,_0x105bc5(0x22a),new A[(_0x105bc5(0x244))](null)),I(this,_0x105bc5(0x496),this['_collabCursorState$']['asObservable']());}[_0x14a8b9(0x498)](_0x3deb33){const _0x5a70ab=_0x14a8b9,{unitID:_0x40ef96,memberID:_0x2c0506,textRanges:_0x138c2e}=_0x3deb33,_0x4f702b=Oi(_0x138c2e);if(_0x4f702b==='')return;const _0x3c4513={'unitID':_0x40ef96,'memberID':_0x2c0506,'selection':_0x4f702b};this[_0x5a70ab(0x22a)][_0x5a70ab(0x269)](_0x3c4513);}}var kn=Object[_0x14a8b9(0x4ed)],Wn=Object[_0x14a8b9(0x5ee)],Fn=(_0x3a0264,_0x34dbe4,_0x2d2a87,_0x510656)=>{const _0x8f7521=_0x14a8b9;for(var _0x5bc225=_0x510656>0x1?void 0x0:_0x510656?Wn(_0x34dbe4,_0x2d2a87):_0x34dbe4,_0x21c544=_0x3a0264[_0x8f7521(0x4a6)]-0x1,_0x14c850;_0x21c544>=0x0;_0x21c544--)(_0x14c850=_0x3a0264[_0x21c544])&&(_0x5bc225=(_0x510656?_0x14c850(_0x34dbe4,_0x2d2a87,_0x5bc225):_0x14c850(_0x5bc225))||_0x5bc225);return _0x510656&&_0x5bc225&&kn(_0x34dbe4,_0x2d2a87,_0x5bc225),_0x5bc225;},Ft=(_0x262f67,_0x1d866d)=>(_0x13cacf,_0x4cbbdd)=>_0x1d866d(_0x13cacf,_0x4cbbdd,_0x262f67);let et=class{constructor(_0x9ab03a,_0x3762c8){const _0x3671bb=_0x14a8b9;this[_0x3671bb(0x5a5)]=_0x9ab03a,this[_0x3671bb(0x36f)]=_0x3762c8;}[_0x14a8b9(0x299)](_0x21a01a){const _0x50c0ae=_0x14a8b9;var _0x290261;const _0x1e5bef=this[_0x50c0ae(0x5a5)][_0x50c0ae(0x249)](ge[_0x50c0ae(0x33a)]),_0x52357a=(_0x290261=_0x1e5bef[_0x50c0ae(0x5e8)]())!=null?_0x290261:[];if(_0x52357a[_0x50c0ae(0x4a6)]===0x0)return;const _0x5721ce=_0x21a01a[_0x50c0ae(0x5b7)],_0x52af5c=[{'id':_0x50c0ae(0x390),'params':{'unitId':_0x5721ce,'actions':null,'textRanges':_0x52357a}}],_0x46ef87=this[_0x50c0ae(0x36f)]['transformMutationsWithChangeset'](_0x21a01a,_0x52af5c);if(!m['isTransformMutationsWithChangesetSuccess'](_0x46ef87))throw _0x46ef87[_0x50c0ae(0x45c)];const _0x2d8af2=_0x46ef87['m2Prime'][0x0]['params'][_0x50c0ae(0x5de)];Array['isArray'](_0x2d8af2)&&_0x2d8af2['length']&&_0x1e5bef[_0x50c0ae(0x214)](_0x2d8af2,{'unitId':_0x5721ce,'subUnitId':_0x5721ce},!0x1);}};et=Fn([Ft(0x0,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),Ft(0x1,m[_0x14a8b9(0x3f8)])],et);const Vn=new Set([k[_0x14a8b9(0x30a)]['id']]);function _0x1640(){const _0x2df303=['_transformIMECache','_onJoinRoomEvent','Module','_localCacheService','_startCollaboration','src','random','_clearTimeoutTimer','_status$','closePath','getRandomValues','CommandType','WorkbookEditablePermission','isArray','_injector','_initDependencies','_getRedoStack','push','NodePositionConvertToRectRange','_assignedColors','COMPRESS_MUTATION_SEND','font','LICENSE_IMPORT_SIZE_EXCEEDED','sigBytes','onTransformIME','collabStatus.conflict','M0\x200H16V16H0z','addClipboardHook','_clearScheduledTask','objectActions','_loadSheet','delete','unitID','[CollaborationSession]','getAncestorScale','endColumn','_process','getSkeleton','target','SerializableCipher','_saveTaskMap','fromEvent','_getAnchorBounding','routeKey','_ensureSubject','encryptBlock','APPLY_PERMISSION_DENIED','pluginName','UniverInstanceType','JOIN_ROOM_NOT_ALLOWED','_registerDependencies','_sheetTransformSelectionsService','telemetry\x20info\x20is\x20not\x20initialized','save','catch','confirm','#FFF','ceil','updateCollaborator','colorChannel1','onSendChangeset','/universer-api/snapshot','isActive','_saveCache','path','@univerjs/ui','body','status$','enableLocalCache','ERROR_EXCEED_SIZE','_queuedRemoteChangesets','textRanges','_lockTransition','SHA1','\x0aCurrent:\x20','leaveEvent','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','DataLoaderController','c1Prime','_getCtorByUniverType','/object/','getDocRanges','resolve','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','ranges','ImageSourceType','_clearRedo','getOwnPropertyDescriptor','onload','uni.network.url-service','_disableEditing','DocSkeletonManagerService','redoState','cfg','restore','[CollaborationUndoRedoService]','_startTelemetryCollaborationNewChangeset','APPLY_REVISION_CONFILICT','enc','UNIVER_UNKNOWN','unshift','IRenderManagerService','FAIL','getParam','findNodePositionByCharIndex','_invKeySchedule','url(#$1','values','reconnect','_executeRemoteChangeset','substr','_handleHover','transformByState','clearTimeout','_keyPriorReset','handleIRemoveRow','JOINING','appendMutation','_decreaseWaiting','function','addObjects','image/jpeg','addImageSourceCache','_docStateChangeManagerService','onTransformRemoteChangesetByStateCache','replaceState','COLLAB_CLIENT_CONFIG_KEY','members','1215904JNwaIb','_logService','PERMISSION_DENIED','TRANSFORM_CHANGE_OBSERVABLE_TYPE','FromArray','incrementRevOfUnit','collab-text-range-','throttleTime','mutations','_lastPointer','requireSession','disposeWithMe','_createInitialStateImpl','OTHER_CLIENTS_EDITING','Tools','generateRandomId','setConfig','icon','handleDeleteRangeMoveLeft','name','event$','currentColor','byteLength','mapDocumentTypeToUniverType','_doFinalize','8EWMRWS','session.collaboration-timeout','create','SheetSkeletonManagerService','slice','getUnitStatus$','saveSnapshot','&to=','_initEventListeners','onTransformState','subscribeEvent','mixIn','updatePermissionPoint','InsertColCommandId','eventID','getUnitId','_drawRectRange','_sessionStatus$','_hover','_scheduleClearOtherTimer','switchMap','_getSendChangesetTimeout','ACTIVE_UNIT_EVENT_CHANNEL','/role','fillRule','equals','min','univer-online-status','_onRemoteACK','type','Base64','_userManagerService','reqId','fetchMiss','createEncryptor','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','[OfflineState]:\x20received\x20changeset.','onTransformSelections','5376087SRkVbC','concatMap','onReady','stringify','APPLY_NON_SEQUENTIAL_REVISION','_configService','2935932VeFete','AES','univer-pro.collaboration-client.single-active-unit-service','purple300','sheets','workbook','_backgroundColor','startRow','_parse','EvpKDF','on-line-single_clip0_910_349','IImageIoService','ref','_socketMessageSubscription','unsubscribe','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_imageIoService','ThemeService','getRangePointData','_getSheetObject','handleInsertRangeMoveDown','IAuthzIoService','loadSheet','LIVESHARE_REQUEST_HOST','MD5','toStringTag','originalMeta','TOO_MANY_REQUESTS','jsxs','_state','code','synced','_commentUpdate$','docStateChange$','cursorInfo','RevisionService','onRemoteRej','registerComponent','_mode','updateMember','_members','setItem','__Key__','kdf','collaboration.single-unit.warning','_onRecvEvent','_collabCursorController','_setupBeforeClosingHandler','_onUserLeave','_init','blue400','_transformHistoryAndStateStack','socket\x20open.','_range','delay','clone','[CollaborationState]:\x20apply\x20error!','_sessions','_retryCount','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onPointerEnter$','file','enableOfflineEditing','updateCursorEvent','DesktopCollaborationStatusDisplayController','set','LICENSE_EXPORT_SIZE_EXCEEDED','getTypeOfUnitAdded$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','transformStack\x20failed!','ILogService','_permissionService','/universer-api/file/{fileID}/sign-url','Inject','m1Prime','_transformStateCache','react','_context','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[UniverCollaborationClientPlugin]','_onCursorDelete','Rect','call','unknown','Warning','cursorInfo$','black','setInterval','url(#off-line-single_clip0_910_343)','_event$','HttpExport','CONNECTOR_DATA_TOO_LARGE','SheetsSelectionsService','_transformUndoredo','subUnitId','assign','/unit/','url','_createSocketURL','application/json','sheetId','HTTPService','OffLineSingle','_send','_getSaveTimeout','_onRefRangeChange','onMouseMove','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','textEncoder','YUUMI_URL_COL_OUT_OF_RANGE','roles','toString','joinEvent','MentionIoHttpService','DependentOn','_resendTimer','SYNCED','_uiPartsService','range','_key','_removeRoom','_onConflict','getSheetBlock','replaceDocRanges','column','encode','evenodd','tag','@univerjs/engine-formula','USERS_LEAVE','Hex','onRemoteRetry','red300','DeleteRangeMoveUpCommandId','PSEUDO_FETCH_MISSING_RESULT','__creator','change$','ReplaySubject','joinRsp','_tryReconnect','StreamCipher','isPermissionRej','InsertRangeMoveDownCommandId','_undoStacks','isTransformMutationsWithChangesetSuccess','_collabCursorState$','b64DecodeUnicode','popstate','copyFileMeta','getRenderById','UNKNOWN_CODE','startTime','toRgbString','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','fetch_missing','pushState','DocStateChangeManagerService','_sendingTimer','_updateSubUnitFromURLParams','HEADER_MENU','handleInsertRangeMoveRight','authzUrl','update','[CollaborationSessionService]:\x20socket\x20error','_scheduleCollaborationTimeoutTimer','onCommentUpdate','collabStatus.notCollab','MSG_FOR_ERROR','HmacSHA1','_syncEditingCollabCursorService','_toggleOffline','BehaviorSubject','enableAuthServer','onPointerLeave$','_scheduleSaving','substring','get','_beforeCloseService','Injector','EffectRefRangId','CollaborationController','_singleActiveUnitService','_keySchedule','snapshot','onCommandExecuted','roomMembers$','includes','transformIMECache','__esModule','transform','OFFLINE','activeSheet$','snapshotServerUrl','_incrementRevisionNumber','CollaborationStatus','_clearCollaborationTimeoutTimer','hasOwnProperty','unpad','PENDING','getOffsetConfig','requestParams','react.element','createIdentifier','c2Prime','\x0aAfter:\x20','getUndoRedoMutationParamsCache','HEARTBEAT_TIMEOUT','undoState','next','IDLE','COMPLETION_FINISHED','_registerRenderDependencies','setTimeout','urlChange$','parse','_sender','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','_onLocalMutation','/collaborator','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','pad','triggerDblclick','ImageIoService','/-/object/-/batch_allowed','_DEC_XFORM_MODE','[SyncedState]:\x20received\x20acknowledgement.','roomInfos','DocCollaborationEntity','_acknowledgedAwaitingChangeset','/resources','fillStyle','[PendingState]:\x20received\x20acknowledgement.','batchAllowed','registerHTTPInterceptor','getLatestCsReqIdBySid','LIVESHARE_OPERATION','_roomMembers','HEARTBEAT','_onConnectionFailed','_throwTelemetryCollaborationNewChangeset','clearInterval','message$','asObservable','getStateCache','UNIVER_PROJECT','startColumn','blockSize','_localeService','_memberService','InsertRowCommandId','_drawTextRange','fetchThroughInterceptors','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getRoom','MergeInterceptorFactory','finalize','transformSelections','compute','debug','extend','session.connection-failed','on-line-single','_config','collabStatus.fetchMiss','not_collab','_transformSelections','setCurrentUser','_render','UNRECOGNIZED','_selfUnitIDs','ICommandService','ALREADY_EXISTS','_drawAnchor','formatter','_compressMutationService','_onMessage','sessionStatus$','112AmPqmF','abs','IContextService','[CollaborationSessionService]','SnapshotService','Undefined','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','filter','UniverCollaborationClientPlugin','[SyncedState]:\x20received\x20rejection.','unload','shouldCloseConn','collabStatus.synced','Encryptor','onRemoteAck','SNAPSHOT_HAS_BEEN_REMOVED','editing\x20status\x20changed\x20to','onTransformChange$','ITelemetryService','newValue','byteOffset','getItem','debounce','prototype','_collaborationPaused','_toggleOnline','max','transformMutation','UNKNOWN_CMD','UNIVER_SHEET','loadOfflineData','0\x200\x2017\x2016','RefRangeService','_telemetryService','_onConnectionOpen','createDecryptor','NOT_COLLAB','append','2648100VlrsoC','idSuffix','_listenToOnlineEvent','_unitOnClients','_disabled','pending','HEARTBEAT_INTERVAL_KEY','put','_initUnitPermissionChange','getConfig','_transformStack','_color','image/gif','TEXT','LIVESHARE_NEW_HOST','_cursorShapes','_revisionService','IUniverInstanceService','MUTATION','labelPosition','forwardRef','handleDeleteRangeMoveUp','SHOULD_CLOSE_CONN','isTransformMutationFailure','setActiveRange','_handler','commentUpdateEvent','exhaustSavingTask','CollaborationSession','_hovered','IMentionIOService','shareReplay','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','isEditing','getTime','crypto','patch','_startDocCollabCursor','ivSize','_replayCachedMutations','MentionType','onStarting','IConfigService','use','UnitSnapshot','5emgwbq','USERS_ENTER','allowed','listCollaborators','_getSignURL','_loadDoc','lineTo','pauseCollaboration','/universer-api/snapshot/','InsertSheetMutation','displayName','0\x200\x2016\x2016','mode','collabStatus.syncing','subject','decrypt','WordArray','COLLAB_WEB_SOCKET_URL_KEY','HEARTBEAT_INTERVAL','_prevBlock','_oKey','_refRangeService','Shape','parseProtocolChangeset','DisposableCollection','MessageType','location','keySize','_getDownloadEndpointURL','clear','lib','localeService','APPLY_REJECT','hide','selections','Utf8','_state$','/universer-api/user/session-ticket','_substituteRedoStack','SetWorksheetActivateCommand','collaboration-session-retry','takeUntil','subscribe','getAllMembers','setStateCache','buffer','baseRev','POST','_doCryptBlock','IURLService','charAt','UUID','height','_createHandler','_nRounds','getInterceptPoints','Univer','DocSelectionManagerService','reset','getWorkbookSelections','selection','getCurrentRevOfUnit','collaboration.closeRoom','_commentService','_stopTelemetryCollaborationNewChangeset','updateOfflineData','INGEST','_removeClearOtherTimer','setShapeProps','_waitForHeartbeatResponse','msCrypto','_textBubble','_fetchMissChangesets','_docTransformIMECacheService','close$','Error','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','indexOf','reverse','socket$','toggleOffline','defs','currentTheme$','_session','UPDATE_CURSOR','round','setShowComponents','univer-pro.collaboration-client-socket-service','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs/docs','LIVESHARE_TERMINATE','submit\x20changeset\x20error!','editingUnit','SnapshotServerOverHTTPService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_imageSourceCache','DocIMEInputManagerService','combineLatest','_instanceService','getValue','addObject','decryptBlock','_hasher','_getLoginPath','rxjs','transformMutationsWithChangeset','CollaborationSocketService','changesets','ISnapshotServerService','_docSkeletonManagerService','_transformService','awaiting','xlink:href','encrypt','_notificationService','post','defIds','789591Byerwx','off-line-single','_anchorDot','fillText','_collaborationSessionService','awaitingChangeset','_joinRoom','VIEW_MAIN','AWAITING','SNAPSHOT_SERVER_URL_KEY','_createSocket','collaboration_new_changeset','_nDataBytes','collaboration-client.config','show','_reverseMap','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','fromCharCode','disableLocalCache','SEND_CHANGESET_TIMEOUT_KEY','_xformMode','_clearOtherTimers','current','onTransformRemoteChangesetByIMECache','INTERNAL_ERROR','_unitID','doc.mutation.rich-text-editing','connection\x20error','rxjs/operators','YUUMI_UNABLE_LOAD_URL','YUUMI_SUBSCRIPTION_NOT_FOUND','touchDependencies','data','drawWith','SessionStatus','putCollaborators','sid','origin','reduce','_initRequestHeader','awaiting_with_pending','_docTransformSelectionsService','withCredentials','roomMembers','_name','IPermissionService','endRow','CHANGESET_REVISION_CONFILICT','/object','NodePositionConvertToCursor','_onRemoteRejected','COLLAB_WEB_SOCKET_URL','_sendHeartbeat','replace','memberID','_transformPreviousActiveRange','onStateChange','_entityInit$','RECT','Workbook','_onUserJoin','_hideTimer','color','LocalUndoRedoService','ImageUploadStatusType','DOC_RANGE_TYPE','RECV','LocalCacheService','_cipher','HMAC','SUCCUSS','_getAPIPrefixPath','resourceIDs','isTransformChangesetsSuccess','@univerjs/docs-ui','_cachedData','CollaborationEvent','arc','state$','newCsEvent','useObservable','_timeoutTimer','APPLY_DUPLICATED','send','_eventUnsubscribe','Decryptor','createElement','Tooltip','infoRsp','_type','stopTime','_ENC_XFORM_MODE','sheetID','_iKey','_httpService','children','getColor','SNAPSHOT_INVALID_SNAPSHOT','react.fragment','COMMENT_UPDATE','init','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_createHelper','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','LocaleService','@univerjs/design','/universer-api/oidc/authpage','_handleEvent','complete','saveSheetBlock','_snapshotService','_refreshCollabCursors','RegularPolygon','imageSourceType','UPDATE_PERMISSION_OBJ','error$','NO_OTHER_CLIENTS_EDITING','liveShareNewHost','entries','method','addEventListener','_transformRemoteChangesetByIMECache','getSheetBySheetId','ws://127.0.0.1:8000/universer-api/comb/connect','registerRefRange','getCoordByCell','UNDEFINED','jsx','_shapes','Hasher','ITransformService','_getSessionTicket','_getUndoStack','179436eXHNgO','Subject','has','_updateLocalCache','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','_onRemoteRetry','toggleOnline','exports','useRef','add','_handleLeaveEvent','NoPadding','{fileID}','_docSkeleton','setUndoRedoMutationParamsCache','CHANGESET_ACK','_onCursorUpdate','_removeCollabCursors','_colorAssignService','execute','history','_updateCollabCursors','fill','_renderManagerService','_undoRedoService','ERROR_IMAGE','ReactCurrentOwner','take','_sendHeartbeatTimer','NOT_FOUND','_socket','UNAUTHENTICATED','interceptor','#fff','isTransformMutationsWithChangesetFailure','COMPRESS_MUTATION_APPLY','SUBMIT_CHANGESET','_urlService','actions','conflict.title','getCellPositionByOffset','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','/-/object/list','transformRemoteChangeset','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','url(#on-line-single_clip0_910_349)','ticket','measureText','_updateLocalCursor','univer-online','_getCurrentRevision','ONLINE','getMemberID','transformChangesets','deserializeRangeWithSheet','_clearUndo','_HTTPService','IDocClipboardService','row','BufferedBlockAlgorithm','key','_replaceFileID','_changesetReqId','_id','onPointerMove$','_substituteUndoStack','onMissingChangesets','UnitEmbedded','setWaitCount','[PendingState]:\x20received\x20rejection.','source','_draw','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','INotificationService','state','text','getMember','resend','list','NEW_CHANGESETS','image/png','subunit','conflict.content','getUnitType','randomUUID','hovered','_initCommandExecutedListener','getTypeOfUnitDisposed$','ENSURE_SNAPSHOT_EXECUTION','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_heartbeatTimer','MemberService','_hash','UniverCollaborationPlugin','createInstance','_docClipboardService','error','some','_collaborationTimeoutTimer','merge','onRemoteChangeset','_submitChangeset','getCurrent','_exhaustRemoteChangesetQueue','sin','storage','encodeURIComponent','_transitionLocked','permission.title','_cursorInfo$','concat','headers','Rectangle','_updateStatus','FETCH_MISSING','bind','handleInsertRow','_resendWithTimeout','_anchor','handleIRemoveCol','IMessageService','close','deserializeToCombResponse','permissionRejEvent','fetchMissingChangesets','[DataLoaderController]','visibilitychange','failed\x20to\x20apply\x20missed\x20changesets!','JOIN_ROOM_FULL','@univerjs/core','_getSnapshotAPIPrefix','TEXT_RANGE_LAYER_INDEX','CompressMutationService','/universer-api/comb','_onCombEvent','SNAPSHOT_URL_KEY','\x20-\x20','_online','@univerjs/sheets','contains','_data','_socketService','collaMsg','floor','unitId','_scene','algo','_shouldReportTelemetry','_transformRemoteChangesetByStateCache','_resendTimeout','HttpImport','setParam','find','unit','collabCursorState$','defaultProps','syncEditingCollabCursor','save\x20fail\x20reason\x20is\x20','bottom','_append','getImage','_applyRemoteChangeset','BlockCipher','ICollaborationSocketService','_change$','_scheduleHeartbeat','AUTHZ_URL_KEY','DEFAULT_FILE_NAME','_cursors','_initStatusListener','length','closeSession','_collabSessionService','getUniverSheetInstance','repeat','beginPath','from','_schedule','apply','none','CHANGESET_REJ','m2Prime','CHANGESET_SHOULD_RETRY','_updateURLWithCurrentState','_snapshotServerService','startsWith','hostname','UNIVER_DOC','searchParams','hasher','11WCREhL','_socketReady','override','string','_document','VIEWPORT_KEY','session','_scheduleTimestamp','capture','off-line-single_clip0_910_343','_changesetSessionId','open$','/allowed','_isPermissionRej','_unlockTransition','translate(.97)','_initCloseConn','getCollabEntity','_checkMissing','forEach','now','_getMergeRange','charCodeAt','Optional','className','unitId\x20is\x20not\x20found','PasswordBasedCipher','padding','_telemetryInfo','LEAVE','Disposable','UNIVER_SLIDE','_roomMembers$','OnLineSingle','Base','IUndoRedoService','_pendingMutations','handleInsertCol','every','_waitCount','getCurrentUser','onMissedChangesetFetched','_map','_themeService','&assign=','pipe','mergeOverrideWithDependencies','action','?size=','JOIN','FETCH_MISS','defineProperty','clipPath','18738670sgDBXd','BuiltInUIPart','CollaborationEntity','_createHmacHelper','_rescheduleHeartbeat','rng','isInternalEditorID','_socket$','responseType','_transformUndoRedoStack','YUUMI_RATE_OVER_LIMIT','div','revision','objectType','removeMember','/universer-api/authz','/new_changes','INVALID_ARGUMENT','HELLO','clamp','flatMap','session.room-full','Unknown\x20user','OpenSSL','all','online','_getAPIPrefix','disposeUnit','distinctUntilChanged','_labelPosition','width','offline','_retryConnectingTimer','LOCAL_CACHE_INTERVAL','RichTextEditingMutation','_docSyncEditingCollabCursorService','HEARTBEAT_TIMEOUT_KEY','_unitStatus','saveChangeset','split','FileId','_startSheetCollabCursor','status','params','COLORS','COLLAB_SUBMIT_CHANGESET_URL_KEY','RxDisposable','join','top','ciphertext','CollaborationSessionService','collaborators','_candidateSocket','objects','_syncEditingCollabCursor','currentSkeleton$','RETRY_CONNECTING_MAX_COUNT_KEY','saveImage','univer-offline','_setupSubUnitSync','getFocusedUnit','_messageService','dispose','_remoteChangesetQueue','retryConnectingInterval','SetTextSelectionsOperation','map','_colorIndex','executeCommand','getActiveSheet','size','moveTo','toDisposable','_getUploadFileURL','_updateState','propertyIsEnumerable','getMergeData','_createInitialState','fromCollab','salt','image/bmp','_initMergeInterceptor','fetching\x20missing\x20changesets\x20from\x20','iterations','svg','1em','for','SheetCollaborationEntity','AuthzIoHttpService','format','toLowerCase','_handleHeartbeatEvent','_commandService','deepClone','_onOffline','debounceTime','_getScale','univer-online-status-title','Fragment','Could\x20not\x20dynamically\x20require\x20\x22','createSocket','/block/','dispose$','onlyLocal','href','_handleJoinEvent','onSyncEditingCollabCursor','objectID','LIVESHARE_FETCH_OPERATIONS','_showConflictNotification','assignAColorForMemberID','_initStatusComponent','_clearHeartbeatTimer','skeleton','hidden','listRoles','People','_univerInstanceService','with','saveOfflineData','mapTo','_initResize','LICENSE_DISTRO_REJECTED','IBeforeCloseService','csShouldRetryEvent','_iv','registerRenderModule','conflict','sessionStatus','then','LICENSE_MAX_UNITS_EXCEEDED','words','_clearLocalCache','_docTransformStateCacheService','avatar','getOwnPropertySymbols','LOGIN_URL_KEY','CipherParams','x-univer-host','_tryEnsureSocket','deleteCollaborator','transformStateCache','[PendingState]:\x20unhandled\x20univer\x20type:\x20','readInt32LE','_localStorageService','ERROR_IMAGE_TYPE','_collaborationController','_entities','_awaitingChangeset','registerDependencies','transformUndoRedo','@univerjs/rpc','rgba(255,\x20255,\x20255,\x200.01)','getSheetId','SetSelectionsOperation','splice','attrs','userID','WebSocketService','cmd','getCollabCursors$','_sheetSkeletonManagerService','registerBeforeClose','CONFLICT','RemoveColCommandId','_onFetchMissResult','Vector2','reject'];_0x1640=function(){return _0x2df303;};return _0x1640();}function _0x3122(_0x538f09,_0xa2a908){const _0x164049=_0x1640();return _0x3122=function(_0x312200,_0x155e69){_0x312200=_0x312200-0x1db;let _0x17da70=_0x164049[_0x312200];return _0x17da70;},_0x3122(_0x538f09,_0xa2a908);}function Vt(_0xdd53b9,_0x25ecd5,_0x1e4609,_0x54fe6f,_0x59b161){const _0x3ad91b=_0x14a8b9;var _0x561e37,_0x1a2a1e,_0x1c4692,_0x1bd32c;const _0x16fd79=[];for(const _0x243b69 of _0xdd53b9)if(Vn['has'](_0x243b69['id'])){if(_0x16fd79['length']>0x0)break;_0x16fd79[_0x3ad91b(0x5a8)](_0x243b69);break;}else _0x16fd79[_0x3ad91b(0x5a8)](_0x243b69);const _0xb45e89=(_0x1a2a1e=(_0x561e37=_0x59b161['getCurrentUser']())==null?void 0x0:_0x561e37[_0x3ad91b(0x58c)])!=null?_0x1a2a1e:'unknown',_0x41b10b=(_0x1bd32c=(_0x1c4692=_0x59b161[_0x3ad91b(0x4e2)]())==null?void 0x0:_0x1c4692[_0x3ad91b(0x3ac)])!=null?_0x1bd32c:'unknown';return{'changeset':{'unitID':_0x25ecd5,'type':m[_0x3ad91b(0x62e)](_0x1e4609[_0x3ad91b(0x44f)](_0x25ecd5)),'baseRev':_0x54fe6f[_0x3ad91b(0x33e)](_0x25ecd5),'revision':0x0,'userID':_0xb45e89,'memberID':_0x41b10b,'mutations':_0x16fd79},'pendingMutations':_0xdd53b9['slice'](_0x16fd79[_0x3ad91b(0x4a6)])};}function Gn(_0x1d9e83,_0x5a3000,_0x4ed7f7,_0xcd515b,_0x36d423){const _0x351b63=_0x14a8b9;var _0x1a45cc,_0x28512c,_0x40c085,_0x476b00;const _0x40ab9c=[_0x1d9e83[_0x351b63(0x39c)]((_0x579a05,_0x314b88)=>{const _0x9c4d44=_0x351b63;var _0x24f5f2;const {id:_0xaf610e}=_0x579a05,{id:_0x2c5838,type:_0xc3c043}=_0x314b88,_0x1c5212=(_0x24f5f2=_0x579a05['params'])!=null?_0x24f5f2:{'actions':null},_0x298e68=_0x314b88['params'];if(_0xaf610e&&_0xaf610e!==_0x2c5838)throw new Error(_0x9c4d44(0x1dd)+_0xaf610e+_0x9c4d44(0x484)+_0x2c5838+'.');return{..._0x579a05,'id':_0x2c5838,'type':_0xc3c043,'params':{'unitId':_0x298e68[_0x9c4d44(0x48c)],'textRanges':_0x298e68[_0x9c4d44(0x5de)],'actions':a['JSONX']['compose'](_0x1c5212[_0x9c4d44(0x421)],_0x298e68[_0x9c4d44(0x421)])}};},{})],_0x111260=(_0x28512c=(_0x1a45cc=_0x36d423[_0x351b63(0x4e2)]())==null?void 0x0:_0x1a45cc[_0x351b63(0x58c)])!=null?_0x28512c:_0x351b63(0x1ec),_0x54e97f=(_0x476b00=(_0x40c085=_0x36d423[_0x351b63(0x4e2)]())==null?void 0x0:_0x40c085[_0x351b63(0x3ac)])!=null?_0x476b00:_0x351b63(0x1ec);return{'changeset':{'unitID':_0x5a3000,'type':m[_0x351b63(0x62e)](_0x4ed7f7[_0x351b63(0x44f)](_0x5a3000)),'baseRev':_0xcd515b[_0x351b63(0x33e)](_0x5a3000),'revision':0x0,'userID':_0x111260,'memberID':_0x54e97f,'mutations':_0x40ab9c},'pendingMutations':[]};}function Di(_0x443912,_0x19226b){const _0x2e1005=_0x14a8b9,_0x37368b=new A[(_0x2e1005(0x222))](0x1);return setTimeout(()=>_0x37368b[_0x2e1005(0x269)](_0x19226b),_0x443912),_0x37368b[_0x2e1005(0x28b)]()[_0x2e1005(0x4e7)](A['take'](0x1));}const Yn={'id':k['EmptyMutation']['id'],'type':a[_0x14a8b9(0x5a2)][_0x14a8b9(0x2e6)],'params':{}};var qn=Object[_0x14a8b9(0x4ed)],Kn=Object[_0x14a8b9(0x5ee)],Ce=(_0x558e1e,_0x47a46d,_0x1b1521,_0x244fc4)=>{const _0x4e995c=_0x14a8b9;for(var _0x3d29fd=_0x244fc4>0x1?void 0x0:_0x244fc4?Kn(_0x47a46d,_0x1b1521):_0x47a46d,_0x22d9e8=_0x558e1e[_0x4e995c(0x4a6)]-0x1,_0x250e61;_0x22d9e8>=0x0;_0x22d9e8--)(_0x250e61=_0x558e1e[_0x22d9e8])&&(_0x3d29fd=(_0x244fc4?_0x250e61(_0x47a46d,_0x1b1521,_0x3d29fd):_0x250e61(_0x3d29fd))||_0x3d29fd);return _0x244fc4&&_0x3d29fd&&qn(_0x47a46d,_0x1b1521,_0x3d29fd),_0x3d29fd;},N=(_0x2e42ac,_0xb5b5d5)=>(_0x571289,_0x4c067b)=>_0xb5b5d5(_0x571289,_0x4c067b,_0x2e42ac),K=(_0x3835bb=>(_0x3835bb['NOT_COLLAB']=_0x14a8b9(0x2a1),_0x3835bb[_0x14a8b9(0x20d)]=_0x14a8b9(0x67b),_0x3835bb[_0x14a8b9(0x25f)]=_0x14a8b9(0x2d9),_0x3835bb[_0x14a8b9(0x37e)]=_0x14a8b9(0x370),_0x3835bb['AWAITING_WITH_PENDING']=_0x14a8b9(0x39e),_0x3835bb[_0x14a8b9(0x4ec)]=_0x14a8b9(0x233),_0x3835bb[_0x14a8b9(0x592)]=_0x14a8b9(0x56e),_0x3835bb[_0x14a8b9(0x257)]=_0x14a8b9(0x50e),_0x3835bb))(K||{});const Pi=0xea60;class Ee{constructor(_0x3ad10e,_0xcdacb9,_0x2ef7ce,_0x492c63,_0xadc7d0,_0x4d8289,_0x34309d,_0x1aea01,_0xc57ffb){const _0x5f2281=_0x14a8b9;I(this,_0x5f2281(0x583),null),I(this,_0x5f2281(0x4de),[]),(this[_0x5f2281(0x5b7)]=_0x3ad10e,this[_0x5f2281(0x64d)]=_0xcdacb9,this[_0x5f2281(0x2ed)]=_0xadc7d0,this[_0x5f2281(0x54b)]=_0x4d8289,this[_0x5f2281(0x413)]=_0x34309d,this[_0x5f2281(0x2e4)]=_0x1aea01,this['_localCacheService']=_0xc57ffb,this['_awaitingChangeset']=_0x2ef7ce,this[_0x5f2281(0x4de)]=_0x492c63);}[_0x14a8b9(0x4cc)](_0x4ed9cc){const _0x3f242c=_0x14a8b9,_0x4fe23f=this[_0x3f242c(0x2e4)][_0x3f242c(0x33e)](this['unitID']);return _0x4ed9cc[_0x3f242c(0x4fb)]>_0x4fe23f+0x1?(this['_handler'][_0x3f242c(0x43e)]({'from':_0x4fe23f,'to':_0x4ed9cc[_0x3f242c(0x4fb)]-0x1}),!0x0):!0x1;}[_0x14a8b9(0x1f6)](_0x21eb63){const _0x59f868=_0x14a8b9;this[_0x59f868(0x413)][_0x59f868(0x585)](this[_0x59f868(0x5b7)],_0x21eb63);}[_0x14a8b9(0x2a2)](_0x1c3468){const _0x15d7db=_0x14a8b9;var _0x301403,_0x1042e2;(_0x1042e2=(_0x301403=this[_0x15d7db(0x2ed)])[_0x15d7db(0x655)])==null||_0x1042e2[_0x15d7db(0x1eb)](_0x301403,_0x1c3468);}[_0x14a8b9(0x597)](_0x1a53ba){var _0x2a7e29,_0x5228a2;return(_0x5228a2=(_0x2a7e29=this['_handler'])['onTransformIME'])==null?void 0x0:_0x5228a2['call'](_0x2a7e29,_0x1a53ba);}[_0x14a8b9(0x1e4)](_0x55ac9c){const _0x6201c9=_0x14a8b9;var _0x10f684,_0x5d965a;return(_0x5d965a=(_0x10f684=this[_0x6201c9(0x2ed)])[_0x6201c9(0x639)])==null?void 0x0:_0x5d965a[_0x6201c9(0x1eb)](_0x10f684,_0x55ac9c);}['_transformRemoteChangesetByIMECache'](_0x5f4714){const _0x2aabfd=_0x14a8b9;var _0x310958,_0x3a9db6,_0xc7b7ea;return(_0xc7b7ea=(_0x3a9db6=(_0x310958=this[_0x2aabfd(0x2ed)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3a9db6[_0x2aabfd(0x1eb)](_0x310958,_0x5f4714))!=null?_0xc7b7ea:_0x5f4714;}[_0x14a8b9(0x490)](_0x3a63de){const _0x6d0557=_0x14a8b9;var _0x539721,_0x1c1a20,_0x24d3c9;return(_0x24d3c9=(_0x1c1a20=(_0x539721=this[_0x6d0557(0x2ed)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x1c1a20['call'](_0x539721,_0x3a63de))!=null?_0x24d3c9:_0x3a63de;}[_0x14a8b9(0x525)](_0x3125ad){const _0x44a925=_0x14a8b9;var _0x17948d,_0x4cdb03;if(this['type']===ie[_0x44a925(0x4b7)]){const {unitID:_0x56b77d,mutations:_0xae6703,memberID:_0x401a0b}=_0x3125ad,_0x5e7347=_0xae6703[0x0]['params'][_0x44a925(0x5de)];Array['isArray'](_0x5e7347)&&_0x5e7347[_0x44a925(0x4a6)]>0x0&&((_0x4cdb03=(_0x17948d=this[_0x44a925(0x2ed)])['onSyncEditingCollabCursor'])==null||_0x4cdb03[_0x44a925(0x1eb)](_0x17948d,{'unitID':_0x56b77d,'memberID':_0x401a0b,'textRanges':_0x5e7347}));}}['_updateLocalCache'](){const _0x7329c9=_0x14a8b9;this[_0x7329c9(0x59a)][_0x7329c9(0x342)](this[_0x7329c9(0x5b7)],this[_0x7329c9(0x64d)],this[_0x7329c9(0x583)],this[_0x7329c9(0x4de)]);}[_0x14a8b9(0x42e)](){const _0x3672f2=_0x14a8b9;return this['_revisionService'][_0x3672f2(0x33e)](this['unitID']);}['_incrementRevisionNumber'](){const _0x4941a6=_0x14a8b9;this['_revisionService'][_0x4941a6(0x61c)](this[_0x4941a6(0x5b7)]);}['_executeRemoteChangeset'](_0x312f9f){const _0x50ff95=_0x14a8b9;var _0x10ca5e;let _0xfbcb19=this[_0x50ff95(0x3ef)](_0x312f9f);_0xfbcb19=this[_0x50ff95(0x490)](_0xfbcb19);const _0x6af476=a['sequenceExecute'](_0xfbcb19[_0x50ff95(0x61f)],this[_0x50ff95(0x54b)],{'fromCollab':!0x0});if(!_0x6af476['result'])throw _0x6af476[_0x50ff95(0x45c)]instanceof Error?_0x6af476[_0x50ff95(0x45c)]:new Error((_0x10ca5e=_0x6af476[_0x50ff95(0x45c)])!=null?_0x10ca5e:_0x50ff95(0x694));this[_0x50ff95(0x597)](_0xfbcb19),this['_transformStateCache'](_0xfbcb19),this[_0x50ff95(0x1f6)](_0x312f9f),this[_0x50ff95(0x2a2)](_0xfbcb19),this['_syncEditingCollabCursor'](_0xfbcb19),this[_0x50ff95(0x25a)]();}}let ye=class extends Ee{constructor(_0x372db0,_0x4ce627,_0x4989ac,_0x1f267e,_0x555e61,_0x207ad3,_0x421b21,_0xe55e6a,_0x1ae047,_0xbafc7b){const _0x87de42=_0x14a8b9;super(_0x372db0,_0x4ce627,null,[],_0x4989ac,_0xe55e6a,_0x421b21,_0x1f267e,_0x555e61),I(this,_0x87de42(0x519),_0x87de42(0x67b)),(this['_injector']=_0x207ad3,this[_0x87de42(0x618)]=_0x1ae047,this[_0x87de42(0x36f)]=_0xbafc7b);}[_0x14a8b9(0x60c)](_0x11797d){const _0x39fdab=_0x14a8b9,_0x35d4c6=this['_injector']['createInstance'](ae,this[_0x39fdab(0x5b7)],this[_0x39fdab(0x64d)],[_0x11797d],this[_0x39fdab(0x2ed)]);return _0x35d4c6[_0x39fdab(0x4ad)](),_0x35d4c6['_updateLocalCache'](),_0x35d4c6;}[_0x14a8b9(0x460)](_0x3a9621){const _0x3b9b42=_0x14a8b9;if(this[_0x3b9b42(0x4cc)](_0x3a9621))return this[_0x3b9b42(0x5a5)][_0x3b9b42(0x45a)](re,this[_0x3b9b42(0x5b7)],this['type'],null,[],null,[_0x3a9621],this[_0x3b9b42(0x2ed)]);try{const _0x518d11=this[_0x3b9b42(0x36f)][_0x3b9b42(0x36a)](_0x3a9621,[Yn]);if(m[_0x3b9b42(0x229)](_0x518d11)){const {c1Prime:_0x1d7c60}=_0x518d11;return this[_0x3b9b42(0x604)](_0x1d7c60),this;}throw _0x518d11[_0x3b9b42(0x45c)];}catch(_0x831a13){return this[_0x3b9b42(0x618)][_0x3b9b42(0x45c)](_0x831a13),this[_0x3b9b42(0x212)](!0x1);}}[_0x14a8b9(0x212)](_0x15406e){const _0x13fb1b=_0x14a8b9;return this[_0x13fb1b(0x5a5)][_0x13fb1b(0x45a)](fe,this[_0x13fb1b(0x5b7)],this['type'],null,[],this['_handler'],_0x15406e);}[_0x14a8b9(0x2bc)](){const _0x4b315e=_0x14a8b9;throw new Error(_0x4b315e(0x27a));}['onRemoteRej'](){const _0x3a1bfb=_0x14a8b9;throw new Error(_0x3a1bfb(0x2b7));}[_0x14a8b9(0x21c)](){return this;}[_0x14a8b9(0x351)](){const _0x4dab6f=_0x14a8b9;return this['_injector']['createInstance'](ve,this[_0x4dab6f(0x5b7)],this['type'],null,[],this[_0x4dab6f(0x2ed)]);}[_0x14a8b9(0x401)](){return this;}[_0x14a8b9(0x449)](){const _0x4a55b5=_0x14a8b9;throw new Error(_0x4a55b5(0x1e7));}[_0x14a8b9(0x651)](){const _0x4e0981=_0x14a8b9,_0x2c0418=this['_revisionService'][_0x4e0981(0x33e)](this[_0x4e0981(0x5b7)]);return this[_0x4e0981(0x2ed)][_0x4e0981(0x43e)]({'from':_0x2c0418,'to':0x0}),this[_0x4e0981(0x5a5)][_0x4e0981(0x45a)](re,this[_0x4e0981(0x5b7)],this['type'],null,[],null,[],this[_0x4e0981(0x2ed)]);}};ye=Ce([N(0x3,a[_0x14a8b9(0x1e2)](m['RevisionService'])),N(0x4,a[_0x14a8b9(0x1e2)](exports[_0x14a8b9(0x3b9)])),N(0x5,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),N(0x6,a['IUndoRedoService']),N(0x7,a[_0x14a8b9(0x2a7)]),N(0x8,a[_0x14a8b9(0x1df)]),N(0x9,m['ITransformService'])],ye);let ae=class extends Ee{constructor(_0x38dd0a,_0xe03591,_0x1b82c4,_0x78bfcf,_0x39f351,_0x819933,_0x54b4d9,_0x56db1f,_0x609988,_0x3ef883,_0x5bfab3,_0x128ec4,_0x2097c3,_0x3efedf){const _0x31bec4=_0x14a8b9;super(_0x38dd0a,_0xe03591,null,_0x1b82c4,_0x78bfcf,_0x3ef883,_0x3efedf,_0x819933,_0x54b4d9),I(this,_0x31bec4(0x519),_0x31bec4(0x2d9)),I(this,_0x31bec4(0x4c1),null),I(this,_0x31bec4(0x236),null),(this[_0x31bec4(0x5a5)]=_0x39f351,this[_0x31bec4(0x291)]=_0x56db1f,this[_0x31bec4(0x618)]=_0x609988,this['_configService']=_0x5bfab3,this[_0x31bec4(0x36f)]=_0x128ec4,this[_0x31bec4(0x564)]=_0x2097c3);}[_0x14a8b9(0x60c)](_0x2b14d5){const _0x241b73=_0x14a8b9;return this[_0x241b73(0x4de)][_0x241b73(0x5a8)](_0x2b14d5),this[_0x241b73(0x3fe)](),this;}[_0x14a8b9(0x460)](_0x402fca){const _0x419dd8=_0x14a8b9;if(this[_0x419dd8(0x4cc)](_0x402fca))return this[_0x419dd8(0x5b3)](),this[_0x419dd8(0x5a5)]['createInstance'](re,this[_0x419dd8(0x5b7)],this[_0x419dd8(0x64d)],null,this[_0x419dd8(0x4de)],null,[_0x402fca],this['_handler']);try{const _0x18d19d=this['_transformService'][_0x419dd8(0x36a)](_0x402fca,this[_0x419dd8(0x4de)]);if(m[_0x419dd8(0x229)](_0x18d19d)){const {c1Prime:_0x534174,m2Prime:_0x3e283a}=_0x18d19d;this[_0x419dd8(0x604)](_0x534174);const _0x3ffbfe=this['_injector']['createInstance'](ae,this[_0x419dd8(0x5b7)],this['type'],_0x3e283a,this['_handler']);return this[_0x419dd8(0x5b3)](),_0x3ffbfe[_0x419dd8(0x4ad)](this[_0x419dd8(0x4c1)]?Math[_0x419dd8(0x2c8)](0x0,new Date()[_0x419dd8(0x2f6)]()-this[_0x419dd8(0x4c1)]):this[_0x419dd8(0x645)]()),_0x3ffbfe;}throw _0x18d19d['error'];}catch(_0x1b006f){return this[_0x419dd8(0x618)][_0x419dd8(0x45c)](_0x1b006f),this[_0x419dd8(0x212)](!0x1);}}['onRemoteAck'](){const _0x28f02e=_0x14a8b9;throw new Error(_0x28f02e(0x280));}[_0x14a8b9(0x680)](){const _0x287291=_0x14a8b9;throw new Error(_0x287291(0x441));}[_0x14a8b9(0x21c)](){return this;}[_0x14a8b9(0x351)](){const _0x27eae7=_0x14a8b9;return this[_0x27eae7(0x5b3)](),this[_0x27eae7(0x5a5)]['createInstance'](ve,this[_0x27eae7(0x5b7)],this[_0x27eae7(0x64d)],null,this[_0x27eae7(0x4de)],this['_handler']);}[_0x14a8b9(0x401)](){return this;}['_schedule'](_0x2118c3){const _0x14773b=_0x14a8b9,_0x52c44f=_0x2118c3!=null?_0x2118c3:this[_0x14773b(0x645)]();this[_0x14773b(0x4c1)]=new Date()[_0x14773b(0x2f6)](),this['_sendingTimer']=window[_0x14773b(0x26d)](()=>{const _0x5aace6=_0x14773b;this[_0x5aace6(0x5b3)]();let _0x5b0fca=null;switch(this[_0x5aace6(0x64d)]){case ie['UNIVER_SHEET']:{_0x5b0fca=Vt(this['_pendingMutations'],this[_0x5aace6(0x5b7)],this[_0x5aace6(0x564)],this[_0x5aace6(0x2e4)],this['_memberService']);break;}case ie['UNIVER_DOC']:{this[_0x5aace6(0x4de)][_0x5aace6(0x4e0)](_0x203bf4=>_0x203bf4['id']===ge[_0x5aace6(0x511)]['id'])?_0x5b0fca=Gn(this['_pendingMutations'],this[_0x5aace6(0x5b7)],this[_0x5aace6(0x564)],this[_0x5aace6(0x2e4)],this[_0x5aace6(0x291)]):_0x5b0fca=Vt(this[_0x5aace6(0x4de)],this[_0x5aace6(0x5b7)],this['_univerInstanceService'],this[_0x5aace6(0x2e4)],this[_0x5aace6(0x291)]);break;}default:throw new Error(_0x5aace6(0x57d)+this[_0x5aace6(0x64d)]+'\x20in\x20_schedule.');}const {changeset:_0x4a2bb3,pendingMutations:_0x230c79}=_0x5b0fca;this[_0x5aace6(0x2ed)][_0x5aace6(0x5d3)](_0x4a2bb3);const _0x1401b1=_0x230c79[_0x5aace6(0x4a6)]?this[_0x5aace6(0x5a5)][_0x5aace6(0x45a)](ce,this[_0x5aace6(0x5b7)],this['type'],_0x4a2bb3,_0x230c79,this['_handler'],void 0x0):this['_injector']['createInstance'](de,this['unitID'],this[_0x5aace6(0x64d)],_0x4a2bb3,this['_handler']);_0x1401b1[_0x5aace6(0x3fe)](),this[_0x5aace6(0x2ed)][_0x5aace6(0x3ae)](this,_0x1401b1);},_0x52c44f);}[_0x14a8b9(0x645)](){const _0x106fc7=_0x14a8b9;var _0x4c8be8;const _0x460a36=this[_0x106fc7(0x65b)][_0x106fc7(0x2dd)](Z);return(_0x4c8be8=_0x460a36==null?void 0x0:_0x460a36['sendChangesetTimeout'])!=null?_0x4c8be8:Ki;}['resend'](){const _0x4fabf8=_0x14a8b9;throw new Error(_0x4fabf8(0x295));}[_0x14a8b9(0x5b3)](){const _0x4e5acc=_0x14a8b9;this[_0x4e5acc(0x236)]!=null&&(clearTimeout(this[_0x4e5acc(0x236)]),this[_0x4e5acc(0x236)]=null);}[_0x14a8b9(0x212)](_0x5b71be){const _0x54f873=_0x14a8b9;return this[_0x54f873(0x5b3)](),this[_0x54f873(0x5a5)][_0x54f873(0x45a)](fe,this['unitID'],this['type'],null,this[_0x54f873(0x4de)],this[_0x54f873(0x2ed)],_0x5b71be);}};ae=Ce([N(0x4,a['Inject'](a[_0x14a8b9(0x24b)])),N(0x5,a[_0x14a8b9(0x1e2)](m[_0x14a8b9(0x67f)])),N(0x6,a['Inject'](exports[_0x14a8b9(0x3b9)])),N(0x7,a['Inject'](exports['MemberService'])),N(0x8,a['ILogService']),N(0x9,a[_0x14a8b9(0x2a7)]),N(0xa,a[_0x14a8b9(0x2fe)]),N(0xb,m[_0x14a8b9(0x3f8)]),N(0xc,a['IUniverInstanceService']),N(0xd,a[_0x14a8b9(0x4dd)])],ae);let de=class extends Ee{constructor(_0x2f39e7,_0x287302,_0x289bed,_0x3b272b,_0x202095,_0x4f6c6,_0x297e99,_0x7c23ce,_0x49db5c,_0xe1445b,_0x1f6fb7){const _0x2b8ee7=_0x14a8b9;super(_0x2f39e7,_0x287302,_0x289bed,[],_0x3b272b,_0x7c23ce,_0x1f6fb7,_0x4f6c6,_0x297e99),I(this,_0x2b8ee7(0x519),_0x2b8ee7(0x370)),I(this,_0x2b8ee7(0x491),0x0),I(this,_0x2b8ee7(0x20c)),I(this,_0x2b8ee7(0x270)),(this['_injector']=_0x202095,this[_0x2b8ee7(0x618)]=_0x49db5c,this[_0x2b8ee7(0x36f)]=_0xe1445b);}[_0x14a8b9(0x60c)](_0x1805f4){const _0x219ad8=_0x14a8b9;this[_0x219ad8(0x5b3)]();const _0xa18dee=this[_0x219ad8(0x5a5)][_0x219ad8(0x45a)](ce,this['unitID'],this['type'],this[_0x219ad8(0x583)],[_0x1805f4],this[_0x219ad8(0x2ed)],this['_resendTimer']);return _0xa18dee[_0x219ad8(0x3fe)](),_0xa18dee;}[_0x14a8b9(0x460)](_0x58e07e){const _0x54024f=_0x14a8b9;if(this[_0x54024f(0x4cc)](_0x58e07e))return this[_0x54024f(0x5b3)](),this['_injector']['createInstance'](re,this[_0x54024f(0x5b7)],this[_0x54024f(0x64d)],this[_0x54024f(0x583)],[],null,[_0x58e07e],this[_0x54024f(0x2ed)]);try{const _0x18d5f6=this[_0x54024f(0x36f)][_0x54024f(0x431)]([_0x58e07e],[this[_0x54024f(0x583)]],!0x1);if(m['isTransformChangesetsSuccess'](_0x18d5f6)){const {c1Prime:_0x1ecea0,c2Prime:_0x525d0e}=_0x18d5f6;this[_0x54024f(0x604)](_0x1ecea0[0x0]),_0x525d0e[0x0][_0x54024f(0x32f)]=this[_0x54024f(0x42e)](),this[_0x54024f(0x5b3)]();const _0x246e81=this[_0x54024f(0x5a5)]['createInstance'](de,this[_0x54024f(0x5b7)],this['type'],_0x525d0e[0x0],this[_0x54024f(0x2ed)]);return _0x246e81[_0x54024f(0x3fe)](),_0x246e81;}return this[_0x54024f(0x212)](!0x1);}catch(_0x1a7207){return this['_logService'][_0x54024f(0x45c)](_0x1a7207),this['_onConflict'](!0x1);}}[_0x14a8b9(0x2bc)](_0x5274b3){const _0x2f7b32=_0x14a8b9;this[_0x2f7b32(0x5b3)]();const _0xfcf69=this['_revisionService'][_0x2f7b32(0x33e)](this[_0x2f7b32(0x5b7)]);if(_0x5274b3[_0x2f7b32(0x4fb)]<_0xfcf69-0x1)return this;if(this[_0x2f7b32(0x4cc)](_0x5274b3))return this[_0x2f7b32(0x5a5)][_0x2f7b32(0x45a)](re,this['unitID'],this[_0x2f7b32(0x64d)],null,[],this[_0x2f7b32(0x583)],[],this[_0x2f7b32(0x2ed)]);this[_0x2f7b32(0x25a)]();const _0x26e497=this['_injector'][_0x2f7b32(0x45a)](ye,this[_0x2f7b32(0x5b7)],this[_0x2f7b32(0x64d)],this['_handler']);return _0x26e497[_0x2f7b32(0x3fe)](),_0x26e497;}[_0x14a8b9(0x680)](_0x55a9e7){const _0x5da139=_0x14a8b9;return this[_0x5da139(0x212)](!!(_0x55a9e7!=null&&_0x55a9e7['isPermissionRej']));}['onRemoteRetry'](_0x116c65){const _0x44d408=_0x14a8b9;return this[_0x44d408(0x491)]>Pi?this[_0x44d408(0x351)]():(this[_0x44d408(0x20c)]=Di(this['_resendTimeout'],{'timeout':this[_0x44d408(0x491)],'reqId':_0x116c65[_0x44d408(0x650)]}),this['_sender']=this['_resendTimer'][_0x44d408(0x32b)](({reqId:_0x153875,timeout:_0x308228})=>{const _0x22a093=_0x44d408;this[_0x22a093(0x471)](_0x153875,_0x308228);}),this);}[_0x14a8b9(0x351)](){const _0xf0cfba=_0x14a8b9;return this[_0xf0cfba(0x5b3)](),this[_0xf0cfba(0x5a5)]['createInstance'](ve,this[_0xf0cfba(0x5b7)],this['type'],this[_0xf0cfba(0x583)],[],this[_0xf0cfba(0x2ed)]);}[_0x14a8b9(0x401)](){return this;}['resend'](){const _0x55516c=_0x14a8b9;this[_0x55516c(0x2ed)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x14a8b9(0x212)](_0xb5bc54){const _0x16afbd=_0x14a8b9;return this[_0x16afbd(0x5b3)](),this[_0x16afbd(0x5a5)][_0x16afbd(0x45a)](fe,this[_0x16afbd(0x5b7)],this[_0x16afbd(0x64d)],this[_0x16afbd(0x583)],[],this['_handler'],_0xb5bc54);}['_resendWithTimeout'](_0x116411,_0x3421d0){const _0x3c17fc=_0x14a8b9;var _0x4a9908;_0x116411===((_0x4a9908=this[_0x3c17fc(0x583)])==null?void 0x0:_0x4a9908['reqId'])&&(this[_0x3c17fc(0x449)](),this[_0x3c17fc(0x491)]=_0x3421d0===0x0?0x3e8:_0x3421d0*0x2);}[_0x14a8b9(0x5b3)](){const _0x3dcd74=_0x14a8b9;var _0x2b7798;(_0x2b7798=this[_0x3dcd74(0x270)])==null||_0x2b7798[_0x3dcd74(0x66a)](),this['_resendTimeout']=0x0;}};de=Ce([N(0x4,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),N(0x5,a[_0x14a8b9(0x1e2)](m[_0x14a8b9(0x67f)])),N(0x6,a[_0x14a8b9(0x1e2)](exports[_0x14a8b9(0x3b9)])),N(0x7,a[_0x14a8b9(0x2a7)]),N(0x8,a[_0x14a8b9(0x1df)]),N(0x9,m['ITransformService']),N(0xa,a[_0x14a8b9(0x4dd)])],de);let ce=class extends Ee{constructor(_0x40e32d,_0x4ebb93,_0x36c5f2,_0x3bbc3e,_0x3492b1,_0x645556,_0x274f5a,_0x43c8e8,_0x36325d,_0x2ecfd1,_0x2b910c,_0x1917a7,_0x1bfe84){const _0x49a98e=_0x14a8b9;super(_0x40e32d,_0x4ebb93,_0x36c5f2,_0x3bbc3e,_0x3492b1,_0x2ecfd1,_0x1bfe84,_0x43c8e8,_0x36325d),I(this,_0x49a98e(0x519),_0x49a98e(0x39e)),I(this,_0x49a98e(0x491),0x0),I(this,'_resendTimer'),I(this,_0x49a98e(0x270)),(this[_0x49a98e(0x5a5)]=_0x274f5a,this[_0x49a98e(0x618)]=_0x2b910c,this[_0x49a98e(0x36f)]=_0x1917a7,_0x645556&&(this[_0x49a98e(0x20c)]=_0x645556,this[_0x49a98e(0x270)]=this[_0x49a98e(0x20c)][_0x49a98e(0x32b)](({reqId:_0x29f7f2,timeout:_0x336d61})=>{const _0x5a3e29=_0x49a98e;this[_0x5a3e29(0x471)](_0x29f7f2,_0x336d61);})));}[_0x14a8b9(0x60c)](_0x297d14){const _0x5b016c=_0x14a8b9;return this[_0x5b016c(0x4de)][_0x5b016c(0x5a8)](_0x297d14),this;}[_0x14a8b9(0x460)](_0x1019f3){const _0x4b9507=_0x14a8b9;if(this['_checkMissing'](_0x1019f3))return this[_0x4b9507(0x5b3)](),this[_0x4b9507(0x5a5)][_0x4b9507(0x45a)](re,this['unitID'],this[_0x4b9507(0x64d)],this[_0x4b9507(0x583)],this[_0x4b9507(0x4de)],null,[_0x1019f3],this[_0x4b9507(0x2ed)]);try{const _0x30c6ed=this[_0x4b9507(0x36f)][_0x4b9507(0x431)]([_0x1019f3],[this['_awaitingChangeset']],!0x1);if(m[_0x4b9507(0x3bf)](_0x30c6ed)){const {c1Prime:_0x4dc8cb,c2Prime:_0x18ab2b}=_0x30c6ed,_0x3f2c4c=this[_0x4b9507(0x36f)][_0x4b9507(0x36a)](_0x4dc8cb[0x0],this[_0x4b9507(0x4de)]);if(m[_0x4b9507(0x229)](_0x3f2c4c)){const {c1Prime:_0x171e6a,m2Prime:_0x275c21}=_0x3f2c4c;return this[_0x4b9507(0x604)](_0x171e6a),_0x18ab2b[0x0][_0x4b9507(0x32f)]=this[_0x4b9507(0x42e)](),this['_clearScheduledTask'](),this['_injector'][_0x4b9507(0x45a)](ce,this[_0x4b9507(0x5b7)],this['type'],_0x18ab2b[0x0],_0x275c21,this[_0x4b9507(0x2ed)],void 0x0);}throw _0x3f2c4c[_0x4b9507(0x45c)];}throw _0x30c6ed['error'];}catch(_0x40831a){return this['_logService']['error'](_0x40831a),this[_0x4b9507(0x212)](!0x1);}}['onRemoteAck'](_0x97d42d){const _0x1f07ef=_0x14a8b9;if(this[_0x1f07ef(0x5b3)](),this[_0x1f07ef(0x4cc)](_0x97d42d))return this[_0x1f07ef(0x5a5)][_0x1f07ef(0x45a)](re,this['unitID'],this[_0x1f07ef(0x64d)],null,this[_0x1f07ef(0x4de)],this[_0x1f07ef(0x583)],[],this[_0x1f07ef(0x2ed)]);this['_incrementRevisionNumber']();const _0x3bfb46=this[_0x1f07ef(0x5a5)][_0x1f07ef(0x45a)](ae,this['unitID'],this[_0x1f07ef(0x64d)],this[_0x1f07ef(0x4de)],this['_handler']);return _0x3bfb46[_0x1f07ef(0x4ad)](),_0x3bfb46[_0x1f07ef(0x3fe)](),_0x3bfb46;}[_0x14a8b9(0x680)](_0x1d1796){const _0x2ceb25=_0x14a8b9;return this['_onConflict'](!!(_0x1d1796!=null&&_0x1d1796[_0x2ceb25(0x226)]));}[_0x14a8b9(0x21c)](_0x378a79){const _0x5ac467=_0x14a8b9;return this[_0x5ac467(0x491)]>Pi?this['toggleOffline']():(this[_0x5ac467(0x20c)]=Di(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x378a79[_0x5ac467(0x650)]}),this['_sender']=this['_resendTimer'][_0x5ac467(0x32b)](({reqId:_0x3dab4e,timeout:_0x7abfa0})=>{const _0x5e1258=_0x5ac467;this[_0x5e1258(0x471)](_0x3dab4e,_0x7abfa0);}),this);}[_0x14a8b9(0x351)](){const _0x492fce=_0x14a8b9;return this[_0x492fce(0x5b3)](),this[_0x492fce(0x5a5)][_0x492fce(0x45a)](ve,this['unitID'],this[_0x492fce(0x64d)],this[_0x492fce(0x583)],this[_0x492fce(0x4de)],this[_0x492fce(0x2ed)]);}[_0x14a8b9(0x401)](){return this;}[_0x14a8b9(0x449)](){const _0x255c0b=_0x14a8b9;this[_0x255c0b(0x2ed)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x14a8b9(0x212)](_0x348d09){const _0x189768=_0x14a8b9;return this['_clearScheduledTask'](),this['_injector'][_0x189768(0x45a)](fe,this['unitID'],this[_0x189768(0x64d)],null,this[_0x189768(0x4de)],this[_0x189768(0x2ed)],_0x348d09);}[_0x14a8b9(0x471)](_0x2a0040,_0x5c4ca0){const _0x175a11=_0x14a8b9;var _0x486d3d;_0x2a0040===((_0x486d3d=this['_awaitingChangeset'])==null?void 0x0:_0x486d3d[_0x175a11(0x650)])&&(this[_0x175a11(0x449)](),this[_0x175a11(0x491)]=_0x5c4ca0===0x0?0x3e8:_0x5c4ca0*0x2);}['_clearScheduledTask'](){const _0x253900=_0x14a8b9;var _0x5a9777;(_0x5a9777=this[_0x253900(0x270)])==null||_0x5a9777[_0x253900(0x66a)](),this[_0x253900(0x491)]=0x0;}};ce=Ce([N(0x6,a[_0x14a8b9(0x1e2)](a['Injector'])),N(0x7,a['Inject'](m['RevisionService'])),N(0x8,a['Inject'](exports[_0x14a8b9(0x3b9)])),N(0x9,a[_0x14a8b9(0x2a7)]),N(0xa,a[_0x14a8b9(0x1df)]),N(0xb,m[_0x14a8b9(0x3f8)]),N(0xc,a[_0x14a8b9(0x4dd)])],ce);let fe=class extends Ee{constructor(_0x4f9ae8,_0x47e948,_0x12a673,_0x29f2b7,_0x50327a,_0x379b59=!0x1,_0x25538e,_0x36725b,_0x4359eb,_0x8da85d,_0x20b6cc,_0x4d5273,_0x434f94){const _0x179981=_0x14a8b9;super(_0x4f9ae8,_0x47e948,_0x12a673,_0x29f2b7,_0x50327a,_0x36725b,_0x4359eb,_0x20b6cc,_0x8da85d),I(this,_0x179981(0x519),_0x179981(0x56e)),(this[_0x179981(0x4c7)]=_0x379b59,this[_0x179981(0x1e0)]=_0x25538e,this[_0x179981(0x290)]=_0x4d5273,this[_0x179981(0x373)]=_0x434f94,this[_0x179981(0x55c)](),this[_0x179981(0x573)](),this[_0x179981(0x5f1)]());}[_0x14a8b9(0x60c)](){return this;}[_0x14a8b9(0x460)](){return this;}[_0x14a8b9(0x2bc)](){return this;}[_0x14a8b9(0x680)](){return this;}['onRemoteRetry'](){return this;}[_0x14a8b9(0x351)](){return this;}[_0x14a8b9(0x401)](){return this;}[_0x14a8b9(0x449)](){const _0x14b3cf=_0x14a8b9;throw new Error(_0x14b3cf(0x359));}['_clearLocalCache'](){const _0x1452f2=_0x14a8b9;this[_0x1452f2(0x59a)][_0x1452f2(0x342)](this[_0x1452f2(0x5b7)],this[_0x1452f2(0x64d)],null,[]);}[_0x14a8b9(0x55c)](){const _0x27999d=_0x14a8b9;this['_isPermissionRej']?this[_0x27999d(0x373)][_0x27999d(0x384)]({'title':this['_localeService']['t'](_0x27999d(0x468)),'content':this[_0x27999d(0x290)]['t']('permission.content'),'type':_0x27999d(0x45c),'duration':0x0}):this[_0x27999d(0x373)][_0x27999d(0x384)]({'title':this[_0x27999d(0x290)]['t'](_0x27999d(0x422)),'content':this[_0x27999d(0x290)]['t'](_0x27999d(0x44e)),'type':'error','duration':0x0});}[_0x14a8b9(0x5f1)](){const _0x1393e4=_0x14a8b9;this[_0x1393e4(0x1e0)][_0x1393e4(0x63c)](new k[(_0x1393e4(0x5a3))](this['unitID'])['id'],!0x1);}};fe=Ce([N(0x6,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x3a3)])),N(0x7,a[_0x14a8b9(0x2a7)]),N(0x8,a[_0x14a8b9(0x4dd)]),N(0x9,a[_0x14a8b9(0x1e2)](exports['LocalCacheService'])),N(0xa,a[_0x14a8b9(0x1e2)](m[_0x14a8b9(0x67f)])),N(0xb,a[_0x14a8b9(0x1e2)](a['LocaleService'])),N(0xc,ee[_0x14a8b9(0x445)])],fe);let ve=class extends Ee{constructor(_0x4732bf,_0x4c3d6c,_0x408ff8,_0x289beb,_0x49486b,_0x3b8d4b,_0x5d67e9,_0xfacc37,_0x36c946,_0x4fe2d7){const _0x458f93=_0x14a8b9;super(_0x4732bf,_0x4c3d6c,_0x408ff8,_0x289beb,_0x49486b,_0x36c946,_0x4fe2d7,_0x5d67e9,_0xfacc37),I(this,_0x458f93(0x519),_0x458f93(0x50e)),this['_injector']=_0x3b8d4b;}[_0x14a8b9(0x60c)](_0x657047){const _0x4b081b=_0x14a8b9;return this[_0x4b081b(0x4de)][_0x4b081b(0x5a8)](_0x657047),this[_0x4b081b(0x3fe)](),this;}[_0x14a8b9(0x460)](_0x59b769){const _0x2232b5=_0x14a8b9;throw new Error(_0x2232b5(0x654));}[_0x14a8b9(0x2bc)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x14a8b9(0x680)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x14a8b9(0x21c)](){return this;}[_0x14a8b9(0x351)](){return this;}['toggleOnline'](){const _0x3f6a7e=_0x14a8b9,{_injector:_0x3ea8e6,_pendingMutations:_0x2c8525,_awaitingChangeset:_0x184bc8,unitID:_0x15b3cb,_handler:_0xc1e564,type:_0xd2892c}=this,_0x9d5697=wi(_0x3ea8e6,_0x15b3cb,_0xd2892c,_0x184bc8,_0x2c8525,_0xc1e564);return _0x9d5697 instanceof ae?_0x9d5697[_0x3f6a7e(0x4ad)]():(_0x9d5697 instanceof ce||_0x9d5697 instanceof de)&&_0x9d5697['resend'](),_0x9d5697;}[_0x14a8b9(0x449)](){const _0x2a3e68=_0x14a8b9;throw new Error(_0x2a3e68(0x698));}};ve=Ce([N(0x5,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),N(0x6,a[_0x14a8b9(0x1e2)](m[_0x14a8b9(0x67f)])),N(0x7,a['Inject'](exports[_0x14a8b9(0x3b9)])),N(0x8,a[_0x14a8b9(0x2a7)]),N(0x9,a[_0x14a8b9(0x4dd)])],ve);let re=class extends Ee{constructor(_0x28fabe,_0x520271,_0x572820,_0x19fb49,_0x1014f3,_0xe8adcd,_0x1f4e3e,_0x442bbf,_0x4ddc19,_0x30d7a3,_0x523dad,_0x543a9c,_0x5c311b,_0x292518){const _0x44b263=_0x14a8b9;super(_0x28fabe,_0x520271,_0x572820,_0x19fb49,_0x1f4e3e,_0x543a9c,_0x5c311b,_0x4ddc19,_0x30d7a3),I(this,_0x44b263(0x519),_0x44b263(0x233)),(this[_0x44b263(0x27d)]=_0x1014f3,this['_queuedRemoteChangesets']=_0xe8adcd,this[_0x44b263(0x5a5)]=_0x442bbf,this[_0x44b263(0x618)]=_0x523dad,this[_0x44b263(0x36f)]=_0x292518);}[_0x14a8b9(0x4e3)](_0xffaeb5){const _0x105e4e=_0x14a8b9;try{const _0x41dc47=[..._0xffaeb5,...this['_queuedRemoteChangesets']],_0x10548c=[this[_0x105e4e(0x583)]||this[_0x105e4e(0x27d)]]['filter'](_0x222d6b=>!!_0x222d6b);let _0x146a70,_0x5c0147;if(_0x10548c[_0x105e4e(0x4a6)]){const _0x2489b1=this['_transformService'][_0x105e4e(0x431)](_0x41dc47,_0x10548c,!0x1);if(!m[_0x105e4e(0x3bf)](_0x2489b1))throw _0x2489b1[_0x105e4e(0x45c)];_0x146a70=_0x2489b1[_0x105e4e(0x5e5)],_0x5c0147=_0x2489b1[_0x105e4e(0x264)];}else _0x146a70=_0x41dc47,_0x5c0147=[];let _0x14212d=this[_0x105e4e(0x4de)];_0x146a70[_0x105e4e(0x4cd)](_0x68cf1c=>{const _0x1b5564=_0x105e4e;let _0x130a10;if(_0x14212d['length']){const _0x3c2af2=this[_0x1b5564(0x36f)][_0x1b5564(0x36a)](_0x68cf1c,_0x14212d);if(!m['isTransformMutationsWithChangesetSuccess'](_0x3c2af2))throw _0x3c2af2['error'];_0x130a10=_0x3c2af2['c1Prime'],_0x14212d=_0x3c2af2[_0x1b5564(0x4b1)];}else _0x130a10=_0x68cf1c;this['_executeRemoteChangeset'](_0x130a10);}),this[_0x105e4e(0x27d)]&&this[_0x105e4e(0x25a)](),this[_0x105e4e(0x583)]&&_0x5c0147['length']&&(_0x5c0147[0x0][_0x105e4e(0x32f)]=this[_0x105e4e(0x42e)]());let _0x11c70d;if(this[_0x105e4e(0x583)]&&_0x14212d[_0x105e4e(0x4a6)]!==0x0)_0x11c70d=this[_0x105e4e(0x5a5)][_0x105e4e(0x45a)](ce,this[_0x105e4e(0x5b7)],this['type'],_0x5c0147[0x0],_0x14212d,this[_0x105e4e(0x2ed)],void 0x0);else{if(this[_0x105e4e(0x583)]&&_0x14212d[_0x105e4e(0x4a6)]===0x0)_0x5c0147[0x0][_0x105e4e(0x32f)]=this[_0x105e4e(0x42e)](),_0x11c70d=this[_0x105e4e(0x5a5)][_0x105e4e(0x45a)](de,this[_0x105e4e(0x5b7)],this['type'],_0x5c0147[0x0],this[_0x105e4e(0x2ed)]);else{if(_0x14212d[_0x105e4e(0x4a6)]!==0x0){const _0x3ce259=this['_injector'][_0x105e4e(0x45a)](ae,this[_0x105e4e(0x5b7)],this[_0x105e4e(0x64d)],_0x14212d,this['_handler']);_0x3ce259[_0x105e4e(0x4ad)](),_0x11c70d=_0x3ce259;}else _0x11c70d=this['_injector'][_0x105e4e(0x45a)](ye,this['unitID'],this[_0x105e4e(0x64d)],this[_0x105e4e(0x2ed)]);}}return _0x11c70d[_0x105e4e(0x3fe)](),_0x11c70d;}catch(_0x3c94b6){return this[_0x105e4e(0x618)][_0x105e4e(0x45c)]('[FetchMissState]',_0x105e4e(0x47b),_0x3c94b6),this[_0x105e4e(0x5a5)]['createInstance'](fe,this[_0x105e4e(0x5b7)],this[_0x105e4e(0x64d)],this[_0x105e4e(0x583)],this[_0x105e4e(0x4de)],this[_0x105e4e(0x2ed)],!0x1);}}['resend'](){const _0x3272fc=_0x14a8b9;throw new Error(_0x3272fc(0x34d));}[_0x14a8b9(0x60c)](_0x507175){const _0x2a3255=_0x14a8b9;return this[_0x2a3255(0x4de)][_0x2a3255(0x5a8)](_0x507175),this;}[_0x14a8b9(0x460)](_0x434f48){const _0x5ecfd9=_0x14a8b9;return this[_0x5ecfd9(0x5dd)][_0x5ecfd9(0x5a8)](_0x434f48),this;}[_0x14a8b9(0x2bc)](_0x5cd314){const _0x4ca93d=_0x14a8b9;if(this[_0x4ca93d(0x583)])return this[_0x4ca93d(0x27d)]=this[_0x4ca93d(0x583)],this[_0x4ca93d(0x583)]=null,this;throw new Error(_0x4ca93d(0x386));}[_0x14a8b9(0x680)](_0x327fa7){const _0x45a3e2=_0x14a8b9;return this[_0x45a3e2(0x212)](!!(_0x327fa7!=null&&_0x327fa7[_0x45a3e2(0x226)]));}['onRemoteRetry'](){return this;}[_0x14a8b9(0x351)](){const _0x2f489d=_0x14a8b9;return this[_0x2f489d(0x5a5)][_0x2f489d(0x45a)](ve,this[_0x2f489d(0x5b7)],this[_0x2f489d(0x64d)],this[_0x2f489d(0x583)],this['_pendingMutations'],this[_0x2f489d(0x2ed)]);}['toggleOnline'](){return this;}['_onConflict'](_0x5801fc){const _0x1fa5f8=_0x14a8b9;return this['_injector'][_0x1fa5f8(0x45a)](fe,this[_0x1fa5f8(0x5b7)],this[_0x1fa5f8(0x64d)],this[_0x1fa5f8(0x583)],this[_0x1fa5f8(0x4de)],this[_0x1fa5f8(0x2ed)],_0x5801fc);}};re=Ce([N(0x7,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),N(0x8,a[_0x14a8b9(0x1e2)](m[_0x14a8b9(0x67f)])),N(0x9,a[_0x14a8b9(0x1e2)](exports[_0x14a8b9(0x3b9)])),N(0xa,a[_0x14a8b9(0x1df)]),N(0xb,a[_0x14a8b9(0x2a7)]),N(0xc,a[_0x14a8b9(0x4dd)]),N(0xd,m[_0x14a8b9(0x3f8)])],re);function wi(_0x329863,_0xf08ddd,_0x15c8de,_0x50ac11,_0x1ea372,_0x4dd15f){const _0x19af6c=_0x14a8b9;return _0x50ac11&&_0x1ea372[_0x19af6c(0x4a6)]?_0x329863[_0x19af6c(0x45a)](ce,_0xf08ddd,_0x15c8de,_0x50ac11,_0x1ea372,_0x4dd15f,void 0x0):_0x50ac11?_0x329863[_0x19af6c(0x45a)](de,_0xf08ddd,_0x15c8de,_0x50ac11,_0x4dd15f):_0x1ea372['length']?_0x329863['createInstance'](ae,_0xf08ddd,_0x15c8de,_0x1ea372,_0x4dd15f):_0x329863['createInstance'](ye,_0xf08ddd,_0x15c8de,_0x4dd15f);}var zn=Object[_0x14a8b9(0x4ed)],Xn=Object['getOwnPropertyDescriptor'],Mt=(_0x8d420a,_0x58d061,_0x38d190,_0x3f61ad)=>{const _0x395327=_0x14a8b9;for(var _0x3225e5=_0x3f61ad>0x1?void 0x0:_0x3f61ad?Xn(_0x58d061,_0x38d190):_0x58d061,_0x5206d7=_0x8d420a[_0x395327(0x4a6)]-0x1,_0xbb4ad2;_0x5206d7>=0x0;_0x5206d7--)(_0xbb4ad2=_0x8d420a[_0x5206d7])&&(_0x3225e5=(_0x3f61ad?_0xbb4ad2(_0x58d061,_0x38d190,_0x3225e5):_0xbb4ad2(_0x3225e5))||_0x3225e5);return _0x3f61ad&&_0x3225e5&&zn(_0x58d061,_0x38d190,_0x3225e5),_0x3225e5;},H=(_0x1abf24,_0x3b057d)=>(_0x2293d7,_0x455a61)=>_0x3b057d(_0x2293d7,_0x455a61,_0x1abf24);exports[_0x14a8b9(0x4f1)]=class extends a['RxDisposable']{constructor(_0x3f7ac0,_0x5db0a5,_0x497d22,_0x1e81e3,_0x46406a,_0x2490dc,_0x4ea115,_0xb569a4,_0x2ad4c4,_0x1eaefd,_0x157abd,_0xf8a88d,_0x47266f){const _0x25effc=_0x14a8b9;super(),I(this,_0x25effc(0x325),new A[(_0x25effc(0x244))](null)),I(this,_0x25effc(0x3c4),this['_state$'][_0x25effc(0x28b)]()),I(this,_0x25effc(0x679)),I(this,_0x25effc(0x2c6),!0x1),I(this,_0x25effc(0x4c4),''),I(this,_0x25effc(0x43a),0x0),I(this,_0x25effc(0x5da),this['state$']['pipe'](A[_0x25effc(0x531)](_0x5b952c=>_0x5b952c?_0x5b952c[_0x25effc(0x519)]:K[_0x25effc(0x257)]),A[_0x25effc(0x2f3)](0x1))),I(this,_0x25effc(0x467),!0x1),I(this,_0x25effc(0x52e),[]),(this[_0x25effc(0x5b7)]=_0x3f7ac0,this[_0x25effc(0x4c0)]=_0x5db0a5,this['_type']=_0x497d22,this['_injector']=_0x1e81e3,this[_0x25effc(0x59a)]=_0x46406a,this['_compressMutationService']=_0x2490dc,this['_localeService']=_0x4ea115,this[_0x25effc(0x2e4)]=_0xb569a4,this['_logService']=_0x2ad4c4,this[_0x25effc(0x54b)]=_0x1eaefd,this[_0x25effc(0x52c)]=_0x157abd,this[_0x25effc(0x1e0)]=_0xf8a88d,this[_0x25effc(0x24e)]=_0x47266f);}get[_0x14a8b9(0x446)](){return this['_state'];}async[_0x14a8b9(0x3da)](){const _0x2c362e=_0x14a8b9;if(this[_0x2c362e(0x446)])throw new Error(_0x2c362e(0x5ea));await this[_0x2c362e(0x68d)]();}[_0x14a8b9(0x308)](){const _0x29709b=_0x14a8b9;return this[_0x29709b(0x2c6)]=!0x0,a[_0x29709b(0x537)](()=>{const _0x19d8b1=_0x29709b;this[_0x19d8b1(0x2c6)]=!0x1,this[_0x19d8b1(0x463)]();});}[_0x14a8b9(0x539)](_0x23b505){const _0x260c24=_0x14a8b9;this['_state']=_0x23b505,this[_0x260c24(0x325)][_0x260c24(0x269)](_0x23b505);}async[_0x14a8b9(0x68d)](){const _0x13ffa2=_0x14a8b9;var _0x40a86;this[_0x13ffa2(0x539)](await this[_0x13ffa2(0x53c)]()),this[_0x13ffa2(0x24e)]&&((_0x40a86=this['_singleActiveUnitService'])==null||_0x40a86[_0x13ffa2(0x35d)](this[_0x13ffa2(0x5b7)]),this[_0x13ffa2(0x622)](this[_0x13ffa2(0x24e)][_0x13ffa2(0x635)](this[_0x13ffa2(0x5b7)])[_0x13ffa2(0x32b)](_0x57394c=>{const _0x5c5395=_0x13ffa2;this[_0x5c5395(0x618)][_0x5c5395(0x29b)]('[CollaborationEntity]',_0x5c5395(0x2be),_0x57394c),_0x57394c===yi['OTHER_CLIENTS_EDITING']?(this[_0x5c5395(0x52c)][_0x5c5395(0x384)]({'content':this[_0x5c5395(0x290)]['t'](_0x5c5395(0x688)),'type':Ie[_0x5c5395(0x31a)]['Warning']}),this[_0x5c5395(0x1e0)][_0x5c5395(0x63c)](new k[(_0x5c5395(0x5a3))](this[_0x5c5395(0x5b7)])['id'],!0x1),this[_0x5c5395(0x1e0)][_0x5c5395(0x357)](!0x1)):(this[_0x5c5395(0x1e0)][_0x5c5395(0x63c)](new k[(_0x5c5395(0x5a3))](this[_0x5c5395(0x5b7)])['id'],!0x0),this[_0x5c5395(0x1e0)][_0x5c5395(0x357)](!0x0));})));let _0x5a8a7d=!0x1;return this['disposeWithMe'](this[_0x13ffa2(0x4c0)][_0x13ffa2(0x2ad)][_0x13ffa2(0x32b)](_0x1e5911=>{const _0x20200d=_0x13ffa2;_0x1e5911===ne[_0x20200d(0x42f)]?this[_0x20200d(0x2c7)](_0x5a8a7d):_0x1e5911===ne[_0x20200d(0x257)]&&(_0x5a8a7d=!0x0,this[_0x20200d(0x243)]());})),this[_0x13ffa2(0x622)](this[_0x13ffa2(0x4c0)][_0x13ffa2(0x62b)][_0x13ffa2(0x32b)](_0x5f4d37=>{const _0x3dc8f2=_0x13ffa2;try{switch(_0x5f4d37[_0x3dc8f2(0x63e)]){case m[_0x3dc8f2(0x3c2)][_0x3dc8f2(0x44b)]:{this['_onRemoteChangeset'](m[_0x3dc8f2(0x318)](_0x5f4d37[_0x3dc8f2(0x396)]));break;}case m[_0x3dc8f2(0x3c2)]['CHANGESET_ACK']:{this[_0x3dc8f2(0x64c)](_0x5f4d37[_0x3dc8f2(0x396)]);break;}case m[_0x3dc8f2(0x3c2)][_0x3dc8f2(0x4b0)]:{this['_onRemoteRejected']();break;}case m[_0x3dc8f2(0x3c2)][_0x3dc8f2(0x4b2)]:{this['_onRemoteRetry'](_0x5f4d37['data']);break;}case m[_0x3dc8f2(0x3c2)][_0x3dc8f2(0x21f)]:{this[_0x3dc8f2(0x594)](_0x5f4d37['data'][_0x3dc8f2(0x36c)][_0x3dc8f2(0x531)](_0x35a8fe=>m[_0x3dc8f2(0x318)](_0x35a8fe)));break;}case m[_0x3dc8f2(0x3c2)]['PERMISSION_REJ']:this[_0x3dc8f2(0x3a8)]({'isPermissionRej':!0x0});}}catch(_0x296305){throw console[_0x3dc8f2(0x45c)]('Error\x20on\x20receiving\x20event',_0x296305),_0x296305;}})),this[_0x13ffa2(0x679)];}[_0x14a8b9(0x4c8)](){const _0x383534=_0x14a8b9;this[_0x383534(0x467)]=!0x1;}[_0x14a8b9(0x5df)](){const _0x5b0f86=_0x14a8b9;if(this[_0x5b0f86(0x467)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this['_transitionLocked']=!0x0;}[_0x14a8b9(0x272)](_0x170e94){const _0xff3e4=_0x14a8b9;this[_0xff3e4(0x5df)](),this[_0xff3e4(0x539)](this[_0xff3e4(0x679)][_0xff3e4(0x60c)](_0x170e94)),this[_0xff3e4(0x4c8)]();}['_onRemoteChangeset'](_0x5f1159){const _0x10dabe=_0x14a8b9;if(!(_0x5f1159['revision']<=this[_0x10dabe(0x2e4)][_0x10dabe(0x33e)](this[_0x10dabe(0x5b7)]))){if(this[_0x10dabe(0x2c6)]){this[_0x10dabe(0x52e)]['push'](_0x5f1159);return;}this[_0x10dabe(0x49d)](_0x5f1159);}}[_0x14a8b9(0x463)](){const _0x22acf2=_0x14a8b9;this[_0x22acf2(0x52e)]['forEach'](_0x15c76a=>this[_0x22acf2(0x49d)](_0x15c76a)),this[_0x22acf2(0x52e)]=[];}[_0x14a8b9(0x49d)](_0x1dd1fc){const _0x2d401d=_0x14a8b9,_0x4a12b3=this[_0x2d401d(0x2ab)][_0x2d401d(0x41b)][_0x2d401d(0x294)](this[_0x2d401d(0x2ab)][_0x2d401d(0x41b)][_0x2d401d(0x338)]()[_0x2d401d(0x41e)])(_0x1dd1fc[_0x2d401d(0x61f)],null)||_0x1dd1fc[_0x2d401d(0x61f)],_0x5e760c={..._0x1dd1fc,'mutations':_0x4a12b3};this[_0x2d401d(0x5df)](),this[_0x2d401d(0x539)](this[_0x2d401d(0x679)][_0x2d401d(0x460)](_0x5e760c)),this[_0x2d401d(0x4c8)]();}['_onRemoteACK'](_0x23f504){const _0x5289a1=_0x14a8b9;this[_0x5289a1(0x5df)](),this['_updateState'](this[_0x5289a1(0x679)][_0x5289a1(0x2bc)](_0x23f504)),this[_0x5289a1(0x4c8)]();}[_0x14a8b9(0x3a8)](_0x5ead86){const _0x2c6d57=_0x14a8b9;this[_0x2c6d57(0x5df)](),this[_0x2c6d57(0x539)](this['_state'][_0x2c6d57(0x680)](_0x5ead86)),this['_unlockTransition']();}[_0x14a8b9(0x400)](_0x4014c8){const _0x196b9c=_0x14a8b9;this[_0x196b9c(0x5df)](),this[_0x196b9c(0x539)](this[_0x196b9c(0x679)][_0x196b9c(0x21c)](_0x4014c8)),this[_0x196b9c(0x4c8)]();}[_0x14a8b9(0x594)](_0x1567e1){const _0x1cd98d=_0x14a8b9;if(!(this[_0x1cd98d(0x679)]instanceof re))throw new TypeError(_0x1cd98d(0x66b));const _0x143449=_0x1567e1[_0x1cd98d(0x531)](_0x3b6112=>{const _0x45ea72=_0x1cd98d,_0x2cdd48=this[_0x45ea72(0x2ab)][_0x45ea72(0x41b)][_0x45ea72(0x294)](this[_0x45ea72(0x2ab)]['interceptor'][_0x45ea72(0x338)]()[_0x45ea72(0x41e)])(_0x3b6112['mutations'],null)||_0x3b6112[_0x45ea72(0x61f)];return{..._0x3b6112,'mutations':_0x2cdd48};});this[_0x1cd98d(0x5df)](),this[_0x1cd98d(0x539)](this[_0x1cd98d(0x679)][_0x1cd98d(0x4e3)](_0x143449)),this[_0x1cd98d(0x4c8)]();}[_0x14a8b9(0x243)](){const _0x5aad19=_0x14a8b9;this[_0x5aad19(0x5df)](),this[_0x5aad19(0x539)](this['_state'][_0x5aad19(0x351)]()),this[_0x5aad19(0x4c8)]();}['_toggleOnline'](_0x4367b3=!0x1){const _0x6c797=_0x14a8b9;this[_0x6c797(0x5df)](),this['_updateState'](this[_0x6c797(0x679)][_0x6c797(0x401)]()),this[_0x6c797(0x4c8)]();const _0x3bb6f7=this[_0x6c797(0x679)];_0x4367b3&&_0x3bb6f7 instanceof ye&&(this[_0x6c797(0x5df)](),this[_0x6c797(0x539)](_0x3bb6f7['fetchMiss']()),this['_unlockTransition']());}async[_0x14a8b9(0x53c)](){return new Promise(_0x46e591=>{const _0x11a45e=_0x3122;this[_0x11a45e(0x4c0)]['sessionStatus$'][_0x11a45e(0x4e7)](A['take'](0x1))[_0x11a45e(0x32b)](async _0x57f670=>{const _0xee1277=_0x11a45e;_0x46e591(await this[_0xee1277(0x623)](_0x57f670===ne[_0xee1277(0x42f)]));});});}[_0x14a8b9(0x336)](){const _0x3e352e=_0x14a8b9,_0x536704=this[_0x3e352e(0x5b7)];return{'onStateChange':(_0x1bf3c5,_0x5cc159)=>{const _0x19fd5f=_0x3e352e;if(_0x1bf3c5!==this['_state'])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1bf3c5[_0x19fd5f(0x519)]+_0x19fd5f(0x265)+_0x5cc159[_0x19fd5f(0x519)]+_0x19fd5f(0x5e1)+this[_0x19fd5f(0x679)]['status']);this[_0x19fd5f(0x539)](_0x5cc159);},'onSendChangeset':_0x377dd8=>{const _0x5a0a81=_0x3e352e;_0x377dd8['sid']||(_0x377dd8[_0x5a0a81(0x39a)]=this[_0x5a0a81(0x4c4)],_0x377dd8['reqId']=++this['_changesetReqId']);const _0x5b3ced={'eventID':m[_0x5a0a81(0x3c2)][_0x5a0a81(0x41f)],'data':{'unitID':_0x377dd8[_0x5a0a81(0x5b7)],'unitType':this[_0x5a0a81(0x3cf)],'changeset':_0x377dd8,'memberID':this[_0x5a0a81(0x4c0)][_0x5a0a81(0x430)]()}};this[_0x5a0a81(0x4c0)][_0x5a0a81(0x3c9)](_0x5b3ced,this[_0x5a0a81(0x5b7)]);},'onMissingChangesets':({from:_0x28cef2,to:_0x5ce07d})=>{const _0x22cf7c=_0x3e352e;this['_logService'][_0x22cf7c(0x29b)]('[CollaborationEntity]',_0x22cf7c(0x541)+_0x28cef2+'\x20to\x20'+_0x5ce07d);const _0xdac6bb={'eventID':m[_0x22cf7c(0x3c2)][_0x22cf7c(0x46e)],'data':{'unitID':_0x536704,'unitType':this[_0x22cf7c(0x3cf)],'from':_0x28cef2,'to':_0x5ce07d}};this[_0x22cf7c(0x4c0)][_0x22cf7c(0x3c9)](_0xdac6bb,this[_0x22cf7c(0x5b7)]);}};}async[_0x14a8b9(0x623)](_0x346791){const _0x4e0f6b=_0x14a8b9;var _0x2a3258,_0x7afaeb;const _0x48abe0=await this[_0x4e0f6b(0x59a)][_0x4e0f6b(0x2cc)](this[_0x4e0f6b(0x5b7)]),_0x1e3e94=(_0x2a3258=_0x48abe0==null?void 0x0:_0x48abe0[_0x4e0f6b(0x61f)])!=null?_0x2a3258:[],_0x1ffb9f=(_0x7afaeb=_0x48abe0==null?void 0x0:_0x48abe0[_0x4e0f6b(0x37b)])!=null?_0x7afaeb:null,_0x599343=!!(_0x1ffb9f!=null&&_0x1ffb9f[_0x4e0f6b(0x39a)])&&!!(_0x1ffb9f!=null&&_0x1ffb9f[_0x4e0f6b(0x650)]);this['_changesetSessionId']=_0x599343?_0x1ffb9f['sid']:Rn(),this[_0x4e0f6b(0x43a)]=_0x599343?_0x1ffb9f[_0x4e0f6b(0x650)]:0x0;const _0x1033f5=this[_0x4e0f6b(0x5b7)];try{this[_0x4e0f6b(0x2fb)](_0x1ffb9f,_0x1e3e94);}catch(_0x5ecd5a){this[_0x4e0f6b(0x618)]['error'](_0x5ecd5a);}const _0x1db0f7=this['_createHandler']();if(_0x346791){const _0x1ce5b8=wi(this[_0x4e0f6b(0x5a5)],_0x1033f5,this[_0x4e0f6b(0x3cf)],_0x1ffb9f,_0x1e3e94,_0x1db0f7);return _0x1ce5b8 instanceof ae?_0x1ce5b8[_0x4e0f6b(0x4ad)]():(_0x1ce5b8 instanceof ce||_0x1ce5b8 instanceof de)&&_0x1ce5b8[_0x4e0f6b(0x449)](),_0x1ce5b8;}return this[_0x4e0f6b(0x5a5)]['createInstance'](ve,_0x1033f5,this['_type'],_0x1ffb9f,_0x1e3e94,_0x1db0f7);}[_0x14a8b9(0x2fb)](_0x549dd3,_0x26c80a){const _0x4f6860=_0x14a8b9;var _0x4373c2,_0x8ae647;const _0x59b48f=this[_0x4f6860(0x2ab)]['interceptor'][_0x4f6860(0x294)](this[_0x4f6860(0x2ab)][_0x4f6860(0x41b)][_0x4f6860(0x338)]()['COMPRESS_MUTATION_APPLY']);(_0x4373c2=_0x59b48f((_0x549dd3==null?void 0x0:_0x549dd3[_0x4f6860(0x61f)])||[],null))==null||_0x4373c2['forEach'](_0x35148b=>this[_0x4f6860(0x54b)]['executeCommand'](_0x35148b['id'],_0x35148b[_0x4f6860(0x51a)])),(_0x8ae647=_0x59b48f(_0x26c80a||[],null))==null||_0x8ae647[_0x4f6860(0x4cd)](_0x266850=>this['_commandService'][_0x4f6860(0x533)](_0x266850['id'],_0x266850['params']));}},exports[_0x14a8b9(0x4f1)]=Mt([H(0x3,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),H(0x4,a['Inject'](exports[_0x14a8b9(0x3b9)])),H(0x5,a['Inject'](m[_0x14a8b9(0x480)])),H(0x6,a[_0x14a8b9(0x1e2)](a['LocaleService'])),H(0x7,a[_0x14a8b9(0x1e2)](m[_0x14a8b9(0x67f)])),H(0x8,a['ILogService']),H(0x9,a['ICommandService']),H(0xa,ee[_0x14a8b9(0x474)]),H(0xb,a[_0x14a8b9(0x3a3)]),H(0xc,a[_0x14a8b9(0x4d1)](ot))],exports[_0x14a8b9(0x4f1)]),exports[_0x14a8b9(0x27c)]=class extends exports[_0x14a8b9(0x4f1)]{constructor(_0x929276,_0x5d630e,_0x21758b,_0x558594,_0x1ac75,_0x2cc77a,_0x2f0297,_0x273655,_0x2d349a,_0x265973,_0x373c04,_0x204bab,_0x1f3cfa,_0x3afcf3,_0x33425e,_0x2ef0aa,_0x4a4e62,_0x1f44cf){const _0x4c2042=_0x14a8b9;super(_0x929276,_0x21758b,_0x5d630e,_0x558594,_0x1ac75,_0x2cc77a,_0x2f0297,_0x273655,_0x3afcf3,_0x33425e,_0x2ef0aa,_0x4a4e62,_0x1f44cf),this[_0x4c2042(0x5b7)]=_0x929276,this[_0x4c2042(0x64d)]=_0x5d630e,this[_0x4c2042(0x612)]=_0x2d349a,this[_0x4c2042(0x34a)]=_0x265973,this[_0x4c2042(0x574)]=_0x373c04,this[_0x4c2042(0x39f)]=_0x204bab,this[_0x4c2042(0x512)]=_0x1f3cfa;}[_0x14a8b9(0x336)](){const _0x269dff=_0x14a8b9,_0x47f1ff=super[_0x269dff(0x336)]();return _0x47f1ff[_0x269dff(0x5af)]=_0x3a38c5=>this['_docTransformIMECacheService'][_0x269dff(0x254)](_0x3a38c5),_0x47f1ff[_0x269dff(0x639)]=_0x215307=>this[_0x269dff(0x574)]['transformStateCache'](_0x215307),_0x47f1ff[_0x269dff(0x655)]=_0x423b5f=>this[_0x269dff(0x39f)]['transformSelections'](_0x423b5f),_0x47f1ff[_0x269dff(0x559)]=_0x3915f7=>this[_0x269dff(0x512)]['syncEditingCollabCursor'](_0x3915f7),_0x47f1ff[_0x269dff(0x38d)]=_0x168962=>this[_0x269dff(0x34a)]['transformRemoteChangeset'](_0x168962),_0x47f1ff[_0x269dff(0x613)]=_0x3f20fb=>this[_0x269dff(0x574)][_0x269dff(0x427)](_0x3f20fb),_0x47f1ff;}async[_0x14a8b9(0x68d)](){const _0x58c7b9=_0x14a8b9,_0x739c4d=await super[_0x58c7b9(0x68d)]();return this[_0x58c7b9(0x622)](this[_0x58c7b9(0x612)][_0x58c7b9(0x67d)][_0x58c7b9(0x4e7)](A[_0x58c7b9(0x32a)](this[_0x58c7b9(0x555)]))['subscribe'](_0x164c43=>{if(_0x164c43==null)return;const {unitId:_0xece2bc,redoState:_0x93d844,commandId:_0xbb63f6}=_0x164c43;if(_0xece2bc!==this['unitID'])return;const _0xd22fe3={'id':_0xbb63f6,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0xece2bc,'actions':_0x93d844['actions'],'textRanges':null}};this['_onLocalMutation'](_0xd22fe3);})),this[_0x58c7b9(0x622)](this[_0x58c7b9(0x54b)][_0x58c7b9(0x251)]((_0x3d533e,_0x1c2fa1)=>{const _0x24720f=_0x58c7b9;if(_0x3d533e[_0x24720f(0x64d)]!==a[_0x24720f(0x5a2)][_0x24720f(0x2e6)]||_0x1c2fa1!=null&&_0x1c2fa1['fromCollab']||_0x1c2fa1!=null&&_0x1c2fa1[_0x24720f(0x556)]||_0x3d533e['id']===ge[_0x24720f(0x511)]['id'])return;const _0x5c4c51=_0x3d533e[_0x24720f(0x51a)];if((_0x5c4c51==null?void 0x0:_0x5c4c51[_0x24720f(0x48c)])!==this[_0x24720f(0x5b7)])return;const _0x4088b8=_0x3d533e,_0x3841da=this[_0x24720f(0x2ab)][_0x24720f(0x41b)][_0x24720f(0x294)](this['_compressMutationService']['interceptor'][_0x24720f(0x338)]()[_0x24720f(0x5ab)])([_0x4088b8],null)||[_0x4088b8];this['_onLocalMutation'](_0x3841da[0x0]);})),_0x739c4d;}},exports['DocCollaborationEntity']=Mt([H(0x3,a['Inject'](a[_0x14a8b9(0x24b)])),H(0x4,a[_0x14a8b9(0x1e2)](exports[_0x14a8b9(0x3b9)])),H(0x5,a[_0x14a8b9(0x1e2)](m['CompressMutationService'])),H(0x6,a[_0x14a8b9(0x1e2)](a['LocaleService'])),H(0x7,a[_0x14a8b9(0x1e2)](m['RevisionService'])),H(0x8,a[_0x14a8b9(0x1e2)](J[_0x14a8b9(0x235)])),H(0x9,a[_0x14a8b9(0x1e2)](Je)),H(0xa,a[_0x14a8b9(0x1e2)](Qe)),H(0xb,a['Inject'](et)),H(0xc,a[_0x14a8b9(0x1e2)](Ut)),H(0xd,a[_0x14a8b9(0x1df)]),H(0xe,a['ICommandService']),H(0xf,ee[_0x14a8b9(0x474)]),H(0x10,a['IPermissionService']),H(0x11,a[_0x14a8b9(0x4d1)](ot))],exports[_0x14a8b9(0x27c)]),exports[_0x14a8b9(0x546)]=class extends exports[_0x14a8b9(0x4f1)]{constructor(_0x76eb8,_0x2e8e63,_0x353bdc,_0x5a4e73,_0x3322e8,_0x543f3b,_0x498471,_0x3425d0,_0x313627,_0x5539a9,_0x1b9275,_0x167c5c,_0x40806c,_0x3ca3c8){const _0x53831b=_0x14a8b9;super(_0x76eb8,_0x353bdc,_0x2e8e63,_0x5a4e73,_0x3322e8,_0x543f3b,_0x498471,_0x3425d0,_0x5539a9,_0x1b9275,_0x167c5c,_0x40806c,_0x3ca3c8),this['unitID']=_0x76eb8,this['type']=_0x2e8e63,this[_0x53831b(0x5ca)]=_0x313627;}['_createHandler'](){const _0x3ea42c=_0x14a8b9,_0x56f73c=super[_0x3ea42c(0x336)]();return _0x56f73c[_0x3ea42c(0x655)]=_0x19ee3b=>this[_0x3ea42c(0x5ca)][_0x3ea42c(0x299)](_0x19ee3b),_0x56f73c;}async[_0x14a8b9(0x68d)](){const _0x4b2fb4=_0x14a8b9,_0x17483a=await super[_0x4b2fb4(0x68d)]();return this[_0x4b2fb4(0x622)](this[_0x4b2fb4(0x54b)][_0x4b2fb4(0x251)]((_0x142386,_0x59427c)=>{const _0x5a32f5=_0x4b2fb4;if(_0x142386['type']!==a['CommandType'][_0x5a32f5(0x2e6)]||_0x59427c!=null&&_0x59427c[_0x5a32f5(0x53d)]||_0x59427c!=null&&_0x59427c[_0x5a32f5(0x556)])return;const _0x5081c4=_0x142386['params'];if((_0x5081c4==null?void 0x0:_0x5081c4['unitId'])!==this[_0x5a32f5(0x5b7)])return;const _0x3a9987=_0x142386,_0x558322=this[_0x5a32f5(0x2ab)][_0x5a32f5(0x41b)][_0x5a32f5(0x294)](this[_0x5a32f5(0x2ab)][_0x5a32f5(0x41b)][_0x5a32f5(0x338)]()['COMPRESS_MUTATION_SEND'])([_0x3a9987],null)||[_0x3a9987];this['_onLocalMutation'](_0x558322[0x0]);})),_0x17483a;}},exports[_0x14a8b9(0x546)]=Mt([H(0x3,a[_0x14a8b9(0x1e2)](a['Injector'])),H(0x4,a['Inject'](exports[_0x14a8b9(0x3b9)])),H(0x5,a[_0x14a8b9(0x1e2)](m[_0x14a8b9(0x480)])),H(0x6,a[_0x14a8b9(0x1e2)](a['LocaleService'])),H(0x7,a[_0x14a8b9(0x1e2)](m[_0x14a8b9(0x67f)])),H(0x8,a[_0x14a8b9(0x1e2)](Ze)),H(0x9,a['ILogService']),H(0xa,a['ICommandService']),H(0xb,ee[_0x14a8b9(0x474)]),H(0xc,a[_0x14a8b9(0x3a3)]),H(0xd,a['Optional'](ot))],exports[_0x14a8b9(0x546)]);var Jn=Object[_0x14a8b9(0x4ed)],Zn=Object[_0x14a8b9(0x5ee)],Qn=(_0x77786e,_0x310b15,_0x560109,_0x5641af)=>{const _0x47905e=_0x14a8b9;for(var _0x371771=_0x5641af>0x1?void 0x0:_0x5641af?Zn(_0x310b15,_0x560109):_0x310b15,_0xd1d0f4=_0x77786e[_0x47905e(0x4a6)]-0x1,_0xd37629;_0xd1d0f4>=0x0;_0xd1d0f4--)(_0xd37629=_0x77786e[_0xd1d0f4])&&(_0x371771=(_0x5641af?_0xd37629(_0x310b15,_0x560109,_0x371771):_0xd37629(_0x371771))||_0x371771);return _0x5641af&&_0x371771&&Jn(_0x310b15,_0x560109,_0x371771),_0x371771;},ut=(_0x2b8ed7,_0x2dd492)=>(_0xde207,_0x52e4e6)=>_0x2dd492(_0xde207,_0x52e4e6,_0x2b8ed7);exports['CollaborationController']=class extends a[_0x14a8b9(0x51d)]{constructor(_0x32932e,_0x3936da,_0x5a0f43){const _0x5a6589=_0x14a8b9;super(),I(this,_0x5a6589(0x582),new Map()),I(this,_0x5a6589(0x3af),new A[(_0x5a6589(0x3fc))]()),(this[_0x5a6589(0x5a5)]=_0x32932e,this[_0x5a6589(0x4a8)]=_0x3936da,this[_0x5a6589(0x564)]=_0x5a0f43,this[_0x5a6589(0x68d)]());}['dispose'](){const _0x2d71df=_0x14a8b9;super[_0x2d71df(0x52d)](),this[_0x2d71df(0x582)]['forEach'](_0x3a3ad9=>_0x3a3ad9[_0x2d71df(0x52d)]()),this[_0x2d71df(0x582)][_0x2d71df(0x31e)]();}['getCollabEntity'](_0xf755b2){const _0x4a81b9=_0x14a8b9;var _0x53f93d;return(_0x53f93d=this[_0x4a81b9(0x582)][_0x4a81b9(0x249)](_0xf755b2))!=null?_0x53f93d:null;}['getCollabEntity$'](_0x86b7e4){const _0x1230db=_0x14a8b9,_0x3650a2=this[_0x1230db(0x4cb)](_0x86b7e4);return _0x3650a2?A['of'](_0x3650a2):this[_0x1230db(0x3af)][_0x1230db(0x4e7)](V[_0x1230db(0x2b5)](_0x50bb4e=>_0x50bb4e[_0x1230db(0x5b7)]===_0x86b7e4));}[_0x14a8b9(0x68d)](){const _0x559796=_0x14a8b9;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x559796(0x5c7)][_0x559796(0x2cb)])[_0x559796(0x4e7)](A[_0x559796(0x32a)](this[_0x559796(0x555)]),V['delay'](0x10))['subscribe'](async _0x51b070=>{const _0x5c3a98=_0x559796,_0xc992d0=_0x51b070[_0x5c3a98(0x63f)](),_0x49d08c=await this[_0x5c3a98(0x59b)](_0xc992d0,ie[_0x5c3a98(0x2cb)]);this['_entities']['set'](_0xc992d0,_0x49d08c);}),this[_0x559796(0x564)][_0x559796(0x1dc)](a[_0x559796(0x5c7)][_0x559796(0x4b7)])[_0x559796(0x4e7)](A[_0x559796(0x32a)](this[_0x559796(0x555)]),V[_0x559796(0x692)](0x10))[_0x559796(0x4e7)](V['filter'](_0x59e177=>!_0x59e177[_0x559796(0x63f)]()[_0x559796(0x4b5)]('__')))[_0x559796(0x32b)](async _0x829ed7=>{const _0x550c82=_0x559796,_0xe1c29=_0x829ed7['getUnitId'](),_0x2d83c0=await this[_0x550c82(0x59b)](_0xe1c29,ie['UNIVER_DOC']);this[_0x550c82(0x582)][_0x550c82(0x69e)](_0xe1c29,_0x2d83c0);}),A[_0x559796(0x45f)](this[_0x559796(0x564)][_0x559796(0x453)](a['UniverInstanceType'][_0x559796(0x2cb)]),this[_0x559796(0x564)][_0x559796(0x453)](a[_0x559796(0x5c7)]['UNIVER_DOC']))[_0x559796(0x4e7)](A[_0x559796(0x32a)](this[_0x559796(0x555)]))[_0x559796(0x32b)](_0x5639fc=>{const _0x4264e9=_0x559796,_0x24e746=_0x5639fc[_0x4264e9(0x63f)](),_0x5d47a7=this[_0x4264e9(0x582)][_0x4264e9(0x249)](_0x24e746);_0x5d47a7&&(_0x5d47a7[_0x4264e9(0x52d)](),this[_0x4264e9(0x582)]['delete'](_0x24e746));});}async['_startCollaboration'](_0x319f0a,_0x235df2){const _0x62ff86=_0x14a8b9,_0x5b9d78=await this[_0x62ff86(0x4a8)][_0x62ff86(0x621)](_0x319f0a),_0x840179=this[_0x62ff86(0x5a5)][_0x62ff86(0x45a)](this['_getCtorByUniverType'](_0x235df2),_0x319f0a,_0x235df2,_0x5b9d78);return await _0x840179[_0x62ff86(0x3da)](),this['_entityInit$'][_0x62ff86(0x269)](_0x840179),_0x840179;}[_0x14a8b9(0x5e6)](_0x43370d){const _0x5a26f1=_0x14a8b9;switch(_0x43370d){case ie[_0x5a26f1(0x4b7)]:return exports['DocCollaborationEntity'];case ie[_0x5a26f1(0x2cb)]:return exports[_0x5a26f1(0x546)];default:throw new Error(_0x5a26f1(0x5e3)+_0x43370d);}}},exports[_0x14a8b9(0x24d)]=Qn([ut(0x0,a['Inject'](a['Injector'])),ut(0x1,a['Inject'](exports[_0x14a8b9(0x521)])),ut(0x2,a['IUniverInstanceService'])],exports[_0x14a8b9(0x24d)]);var er=Object[_0x14a8b9(0x4ed)],tr=Object[_0x14a8b9(0x5ee)],ir=(_0x15cf10,_0x43e1cf,_0x3ad895,_0x5e4393)=>{const _0x8fac5c=_0x14a8b9;for(var _0x12624a=_0x5e4393>0x1?void 0x0:_0x5e4393?tr(_0x43e1cf,_0x3ad895):_0x43e1cf,_0x9b94ed=_0x15cf10[_0x8fac5c(0x4a6)]-0x1,_0x139f21;_0x9b94ed>=0x0;_0x9b94ed--)(_0x139f21=_0x15cf10[_0x9b94ed])&&(_0x12624a=(_0x5e4393?_0x139f21(_0x43e1cf,_0x3ad895,_0x12624a):_0x139f21(_0x12624a))||_0x12624a);return _0x5e4393&&_0x12624a&&er(_0x43e1cf,_0x3ad895,_0x12624a),_0x12624a;},Gt=(_0x506053,_0x496fba)=>(_0x53cadb,_0x375684)=>_0x496fba(_0x53cadb,_0x375684,_0x506053);let tt=class extends a[_0x14a8b9(0x51d)]{constructor(_0x21f388,_0x1b34b1){const _0x2a399a=_0x14a8b9;super(),this[_0x2a399a(0x45b)]=_0x21f388,this['_imageIoService']=_0x1b34b1,this[_0x2a399a(0x68d)]();}[_0x14a8b9(0x68d)](){const _0x3a8243=_0x14a8b9,_0x48aec5=this;this[_0x3a8243(0x622)](this[_0x3a8243(0x45b)][_0x3a8243(0x5b2)]({'onBeforePasteImage':async _0x258205=>{const _0x2289aa=_0x3a8243,_0x1529f7=await _0x48aec5[_0x2289aa(0x66c)][_0x2289aa(0x528)](_0x258205);return _0x1529f7?{'source':_0x1529f7[_0x2289aa(0x442)],'imageSourceType':_0x1529f7[_0x2289aa(0x3e7)]}:null;}}));}};tt=ir([Gt(0x0,J[_0x14a8b9(0x435)]),Gt(0x1,te[_0x14a8b9(0x667)])],tt);const Yt=[_0x14a8b9(0x65f),'jiqing500','verdancy600',_0x14a8b9(0x21d),_0x14a8b9(0x68e),'gold400'];class At extends a[_0x14a8b9(0x4d8)]{constructor(){const _0x12243f=_0x14a8b9;super(...arguments),I(this,_0x12243f(0x5aa),new Map()),I(this,'_colorIndex',0x0);}[_0x14a8b9(0x55d)](_0x392b08){const _0x3c05a0=_0x14a8b9;if(this[_0x3c05a0(0x5aa)][_0x3c05a0(0x3fd)](_0x392b08))return this[_0x3c05a0(0x5aa)][_0x3c05a0(0x249)](_0x392b08);const _0x3a7e21=Yt[this['_colorIndex']];return this[_0x3c05a0(0x532)]=(this[_0x3c05a0(0x532)]+0x1)%Yt[_0x3c05a0(0x4a6)],this[_0x3c05a0(0x5aa)][_0x3c05a0(0x69e)](_0x392b08,_0x3a7e21),_0x3a7e21;}}var nr=Object[_0x14a8b9(0x4ed)],rr=Object[_0x14a8b9(0x5ee)],sr=(_0x38ee65,_0x54eb08,_0x4a2988,_0x4e9c3d)=>{for(var _0x1eae0f=_0x4e9c3d>0x1?void 0x0:_0x4e9c3d?rr(_0x54eb08,_0x4a2988):_0x54eb08,_0x4c646c=_0x38ee65['length']-0x1,_0x219520;_0x4c646c>=0x0;_0x4c646c--)(_0x219520=_0x38ee65[_0x4c646c])&&(_0x1eae0f=(_0x4e9c3d?_0x219520(_0x54eb08,_0x4a2988,_0x1eae0f):_0x219520(_0x1eae0f))||_0x1eae0f);return _0x4e9c3d&&_0x1eae0f&&nr(_0x54eb08,_0x4a2988,_0x1eae0f),_0x1eae0f;},Se=(_0x5f1ed7,_0x23a4ec)=>(_0x1a08e7,_0xbd2ff1)=>_0x23a4ec(_0x1a08e7,_0xbd2ff1,_0x5f1ed7);const or=0x12c,ar=0x64;let Et=class extends a[_0x14a8b9(0x51d)]{constructor(_0x4aaa57,_0x225115,_0x55f259,_0x54753b,_0xf39c88,_0x389c18,_0x3e9323,_0x3b7425,_0x237950){const _0x27f93f=_0x14a8b9;super(),I(this,_0x27f93f(0x485),!0x1),I(this,_0x27f93f(0x68d),!0x1),I(this,'_cursorInfo$',new A[(_0x27f93f(0x244))](new Map())),I(this,_0x27f93f(0x1ee),this[_0x27f93f(0x469)][_0x27f93f(0x28b)]()),I(this,_0x27f93f(0x4da),new A[(_0x27f93f(0x244))]([])),I(this,_0x27f93f(0x252),this[_0x27f93f(0x4da)]['pipe'](A['debounceTime'](or))),I(this,_0x27f93f(0x42c),a[_0x27f93f(0x2c4)](_0x32e5f8=>{const _0x42b723=_0x27f93f,_0x4629d9={'eventID':m[_0x42b723(0x3c2)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x42b723(0x5b7)],'memberID':this[_0x42b723(0x354)][_0x42b723(0x430)](),'selection':Oi(_0x32e5f8)}};this[_0x42b723(0x354)]['send'](_0x4629d9,this[_0x42b723(0x5b7)]);},ar)),(this['unitID']=_0x4aaa57,this[_0x27f93f(0x354)]=_0x225115,this[_0x27f93f(0x5a5)]=_0x55f259,this['_colorAssignService']=_0x54753b,this[_0x27f93f(0x291)]=_0xf39c88,this['_syncEditingCollabCursorService']=_0x389c18,this[_0x27f93f(0x36f)]=_0x3e9323,this['_univerInstanceService']=_0x3b7425,this[_0x27f93f(0x54b)]=_0x237950);}get['cursorInfo'](){const _0x22d653=_0x14a8b9;return this['_cursorInfo$'][_0x22d653(0x364)]();}get[_0x14a8b9(0x3a1)](){const _0x4183b6=_0x14a8b9;return this['_roomMembers$'][_0x4183b6(0x364)]();}[_0x14a8b9(0x52d)](){const _0xeea6ea=_0x14a8b9;super[_0xeea6ea(0x52d)](),this[_0xeea6ea(0x469)][_0xeea6ea(0x269)](new Map()),this['_cursorInfo$'][_0xeea6ea(0x3e2)](),this[_0xeea6ea(0x4da)][_0xeea6ea(0x269)]([]),this[_0xeea6ea(0x4da)][_0xeea6ea(0x3e2)]();}[_0x14a8b9(0x3da)](){const _0x1c56a7=_0x14a8b9;this['_init']||(this['_init']=!0x0,this['_session'][_0x1c56a7(0x2ad)][_0x1c56a7(0x4e7)](A[_0x1c56a7(0x32a)](this[_0x1c56a7(0x555)]))['subscribe'](_0x37ee17=>{const _0x35f808=_0x1c56a7;_0x37ee17===ne[_0x35f808(0x42f)]?this[_0x35f808(0x2c7)]():this[_0x35f808(0x243)]();}),this[_0x1c56a7(0x354)][_0x1c56a7(0x62b)][_0x1c56a7(0x4e7)](A[_0x1c56a7(0x32a)](this[_0x1c56a7(0x555)]))[_0x1c56a7(0x32b)](_0x132d9a=>{const _0x3aa6a1=_0x1c56a7,_0x24245f=_0x132d9a['eventID'];_0x24245f===m[_0x3aa6a1(0x3c2)][_0x3aa6a1(0x355)]&&this[_0x3aa6a1(0x40b)](_0x132d9a),_0x24245f===m[_0x3aa6a1(0x3c2)][_0x3aa6a1(0x21a)]&&this[_0x3aa6a1(0x1e9)](_0x132d9a);}),this[_0x1c56a7(0x622)](this[_0x1c56a7(0x54b)][_0x1c56a7(0x251)](_0x10069a=>{const _0x105ea9=_0x1c56a7,_0x352074=_0x10069a[_0x105ea9(0x51a)];_0x352074!=null&&this['_online']&&_0x10069a['id']===ge[_0x105ea9(0x530)]['id']&&_0x352074[_0x105ea9(0x48c)]===this[_0x105ea9(0x5b7)]&&_0x352074[_0x105ea9(0x2f5)]===!0x1&&_0x352074['ranges']['length']>0x0&&this['_updateLocalCursor'](_0x352074['ranges']);})),this[_0x1c56a7(0x242)]['collabCursorState$'][_0x1c56a7(0x4e7)](A[_0x1c56a7(0x32a)](this[_0x1c56a7(0x555)]))[_0x1c56a7(0x32b)](_0x152734=>{const _0x334847=_0x1c56a7;if((_0x152734==null?void 0x0:_0x152734['unitID'])!==this[_0x334847(0x5b7)])return;const _0x56346e={'eventID':m['CollaborationEvent'][_0x334847(0x355)],'data':_0x152734};this[_0x334847(0x40b)](_0x56346e);}),this[_0x1c56a7(0x622)](this[_0x1c56a7(0x54b)][_0x1c56a7(0x251)](_0x44e78d=>{const _0x496974=_0x1c56a7;if(_0x44e78d['params']==null)return;const _0x19cf09=_0x44e78d[_0x496974(0x51a)];if(_0x44e78d['id']!==ge[_0x496974(0x511)]['id']||_0x19cf09[_0x496974(0x48c)]!==this[_0x496974(0x5b7)])return;const _0x4dacae={'id':_0x496974(0x390),'params':_0x19cf09},_0x17fcca=this[_0x496974(0x67e)];for(const [_0x38eb3a,_0x4c482c]of _0x17fcca){const _0x12a7b9={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x496974(0x5b7)],'actions':null,'textRanges':_0x4c482c[_0x496974(0x5eb)]}},_0x9eef4c=this[_0x496974(0x36f)][_0x496974(0x2c9)](_0x4dacae,_0x12a7b9,!0x1);if(m[_0x496974(0x2eb)](_0x9eef4c))throw _0x9eef4c[_0x496974(0x45c)];_0x17fcca[_0x496974(0x69e)](_0x38eb3a,{..._0x4c482c,'ranges':_0x9eef4c[_0x496974(0x4b1)][_0x496974(0x51a)][_0x496974(0x5de)]});}queueMicrotask(()=>{const _0x334357=_0x496974;this[_0x334357(0x469)]['next'](_0x17fcca);});})));}[_0x14a8b9(0x40b)](_0x1111b6){const _0x482354=_0x14a8b9;var _0x40d096,_0x58e9ca;const {memberID:_0x1f97e3,selection:_0xa55959}=_0x1111b6[_0x482354(0x396)],_0x46c8c4=Bn(_0xa55959),_0x19aa64=(_0x58e9ca=(_0x40d096=this[_0x482354(0x291)][_0x482354(0x448)](this[_0x482354(0x5b7)],_0x1f97e3))==null?void 0x0:_0x40d096[_0x482354(0x62a)])!=null?_0x58e9ca:'Unknown\x20user',_0x52a6ac={'color':this[_0x482354(0x40d)]['assignAColorForMemberID'](_0x1f97e3),'name':_0x19aa64,'ranges':_0x46c8c4},_0xbb688c=this['cursorInfo'];_0xbb688c[_0x482354(0x69e)](_0x1f97e3,_0x52a6ac),this[_0x482354(0x469)]['next'](_0xbb688c);}[_0x14a8b9(0x1e9)](_0x7eeb43){const _0x3d4518=_0x14a8b9,{memberID:_0x4c5334}=_0x7eeb43['data'],_0x423896=this[_0x3d4518(0x67e)];_0x423896[_0x3d4518(0x5b6)](_0x4c5334),this[_0x3d4518(0x469)]['next'](_0x423896);}[_0x14a8b9(0x2c7)](){const _0x1caf73=_0x14a8b9;var _0x4f30be;if(this[_0x1caf73(0x485)]=!0x0,((_0x4f30be=this[_0x1caf73(0x564)][_0x1caf73(0x52b)]())==null?void 0x0:_0x4f30be['getUnitId']())!==this[_0x1caf73(0x5b7)])return;const _0x19af11=this['_injector'][_0x1caf73(0x249)](ge['DocSelectionManagerService'])[_0x1caf73(0x5e8)]();Array['isArray'](_0x19af11)&&_0x19af11[_0x1caf73(0x4a6)]>0x0&&this[_0x1caf73(0x42c)](_0x19af11);}[_0x14a8b9(0x243)](){const _0xabc4a4=_0x14a8b9;this[_0xabc4a4(0x485)]=!0x1;}};Et=sr([Se(0x2,a['Inject'](a['Injector'])),Se(0x3,a[_0x14a8b9(0x1e2)](At)),Se(0x4,a[_0x14a8b9(0x1e2)](exports[_0x14a8b9(0x457)])),Se(0x5,a[_0x14a8b9(0x1e2)](Ut)),Se(0x6,m['ITransformService']),Se(0x7,a[_0x14a8b9(0x2e5)]),Se(0x8,a[_0x14a8b9(0x2a7)])],Et);var cr=Object[_0x14a8b9(0x4ed)],lr=Object[_0x14a8b9(0x5ee)],hr=(_0x1a4f11,_0x3154ff,_0x304de0,_0x71343e)=>{for(var _0x2beb79=_0x71343e>0x1?void 0x0:_0x71343e?lr(_0x3154ff,_0x304de0):_0x3154ff,_0x2ceaab=_0x1a4f11['length']-0x1,_0x43301c;_0x2ceaab>=0x0;_0x2ceaab--)(_0x43301c=_0x1a4f11[_0x2ceaab])&&(_0x2beb79=(_0x71343e?_0x43301c(_0x3154ff,_0x304de0,_0x2beb79):_0x43301c(_0x2beb79))||_0x2beb79);return _0x71343e&&_0x2beb79&&cr(_0x3154ff,_0x304de0,_0x2beb79),_0x2beb79;},be=(_0x5cf2d2,_0x529588)=>(_0x12ec5b,_0x3aa036)=>_0x529588(_0x12ec5b,_0x3aa036,_0x5cf2d2);const _r=0x12c,ur=0x64,dr=()=>{let _0x57fc5f=[],_0x413e21=!0x1;return _0x3e74cf=>{const _0x2d2818=_0x3122;_0x57fc5f[_0x2d2818(0x5a8)](_0x3e74cf),_0x413e21||(_0x413e21=!0x0,setTimeout(()=>{const _0x2aa894=_0x2d2818;_0x57fc5f[_0x2aa894(0x4cd)](_0x24b8bc=>_0x24b8bc()),_0x57fc5f=[],_0x413e21=!0x1;}));};};let bt=class extends a[_0x14a8b9(0x51d)]{constructor(_0x33dbde,_0x40c422,_0x8c2e4c,_0x3a37a3,_0x112ba0,_0x1204f5,_0x2fad92,_0x266c28){const _0x1437f4=_0x14a8b9;super(),I(this,_0x1437f4(0x485),!0x1),I(this,_0x1437f4(0x68d),!0x1),I(this,_0x1437f4(0x469),new A['BehaviorSubject'](new Map())),I(this,'cursorInfo$',this['_cursorInfo$'][_0x1437f4(0x28b)]()),I(this,_0x1437f4(0x4da),new A[(_0x1437f4(0x244))]([])),I(this,_0x1437f4(0x252),this[_0x1437f4(0x4da)]['pipe'](A[_0x1437f4(0x54e)](_r))),I(this,_0x1437f4(0x42c),a[_0x1437f4(0x2c4)]((_0x368f29,_0x4199f9)=>{const _0x80f0d9=_0x1437f4,_0x43162d={'eventID':m[_0x80f0d9(0x3c2)][_0x80f0d9(0x355)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x80f0d9(0x430)](),'selection':$t['serializeRangeWithSheet'](_0x368f29,_0x4199f9['range'])}};this[_0x80f0d9(0x354)][_0x80f0d9(0x3c9)](_0x43162d,this[_0x80f0d9(0x5b7)]);},ur)),(this['unitID']=_0x33dbde,this[_0x1437f4(0x354)]=_0x40c422,this['_injector']=_0x8c2e4c,this[_0x1437f4(0x40d)]=_0x3a37a3,this[_0x1437f4(0x291)]=_0x112ba0,this[_0x1437f4(0x564)]=_0x1204f5,this[_0x1437f4(0x54b)]=_0x2fad92,this['_refRangeService']=_0x266c28);}get[_0x14a8b9(0x67e)](){const _0x5d9fb3=_0x14a8b9;return this[_0x5d9fb3(0x469)]['getValue']();}get['roomMembers'](){const _0x5107b9=_0x14a8b9;return this['_roomMembers$'][_0x5107b9(0x364)]();}[_0x14a8b9(0x52d)](){const _0x4004ce=_0x14a8b9;super[_0x4004ce(0x52d)](),this[_0x4004ce(0x469)]['next'](new Map()),this[_0x4004ce(0x469)][_0x4004ce(0x3e2)](),this[_0x4004ce(0x4da)][_0x4004ce(0x269)]([]),this[_0x4004ce(0x4da)][_0x4004ce(0x3e2)]();}[_0x14a8b9(0x3da)](){const _0x37aaba=_0x14a8b9;this[_0x37aaba(0x68d)]||(this[_0x37aaba(0x68d)]=!0x0,this[_0x37aaba(0x354)][_0x37aaba(0x2ad)]['pipe'](A[_0x37aaba(0x32a)](this[_0x37aaba(0x555)]))[_0x37aaba(0x32b)](_0x3f19fe=>{const _0x247218=_0x37aaba;_0x3f19fe===ne[_0x247218(0x42f)]?this[_0x247218(0x2c7)]():this['_toggleOffline']();}),this['_session'][_0x37aaba(0x62b)][_0x37aaba(0x4e7)](A[_0x37aaba(0x32a)](this[_0x37aaba(0x555)]))[_0x37aaba(0x32b)](_0x2e5fa3=>{const _0x14ae4a=_0x37aaba,_0x4b27e8=_0x2e5fa3[_0x14ae4a(0x63e)];_0x4b27e8===m[_0x14ae4a(0x3c2)][_0x14ae4a(0x355)]&&this['_onCursorUpdate'](_0x2e5fa3),_0x4b27e8===m['CollaborationEvent'][_0x14ae4a(0x21a)]&&this[_0x14ae4a(0x1e9)](_0x2e5fa3);}),this[_0x37aaba(0x202)](),this[_0x37aaba(0x622)](this[_0x37aaba(0x54b)][_0x37aaba(0x251)](_0x1bb6e3=>{const _0x358da9=_0x37aaba;if(this[_0x358da9(0x485)]&&_0x1bb6e3['id']===k[_0x358da9(0x589)]['id']&&_0x1bb6e3[_0x358da9(0x51a)][_0x358da9(0x48c)]===this[_0x358da9(0x5b7)]){const _0x3ee36d=_0x1bb6e3[_0x358da9(0x51a)];this[_0x358da9(0x42c)](_0x3ee36d[_0x358da9(0x1f7)],_0x3ee36d[_0x358da9(0x323)][0x0]);}})));}[_0x14a8b9(0x40b)](_0x28c37b){const _0x5ee9ac=_0x14a8b9;var _0x39cd9e,_0x5d8ed3;const {memberID:_0x4374ff,selection:_0xb0f025}=_0x28c37b[_0x5ee9ac(0x396)],{sheetName:_0x2e42d9,range:_0x1cf4b2}=$t[_0x5ee9ac(0x432)](_0xb0f025),_0x592b75={'name':(_0x5d8ed3=(_0x39cd9e=this[_0x5ee9ac(0x291)]['getMember'](this['unitID'],_0x4374ff))==null?void 0x0:_0x39cd9e['name'])!=null?_0x5d8ed3:_0x5ee9ac(0x505),'range':this['_getMergeRange'](_0x2e42d9,_0x1cf4b2),'sheetID':_0x2e42d9,'color':this['_colorAssignService'][_0x5ee9ac(0x55d)](_0x4374ff),'selection':_0xb0f025},_0x484a51=this[_0x5ee9ac(0x67e)];_0x484a51[_0x5ee9ac(0x69e)](_0x4374ff,_0x592b75),this[_0x5ee9ac(0x469)]['next'](_0x484a51);}[_0x14a8b9(0x1e9)](_0x527440){const _0x24e392=_0x14a8b9,{memberID:_0x34ad83}=_0x527440['data'],_0x53e246=this[_0x24e392(0x67e)];_0x53e246[_0x24e392(0x5b6)](_0x34ad83),this[_0x24e392(0x469)]['next'](_0x53e246);}[_0x14a8b9(0x4cf)](_0x397b96,_0x57805c){const _0x5f2333=_0x14a8b9;var _0x2ff96f,_0xb51862;const _0x3a35f5=(_0xb51862=(_0x2ff96f=this['_univerInstanceService'][_0x5f2333(0x4a9)](this[_0x5f2333(0x5b7)]))==null?void 0x0:_0x2ff96f[_0x5f2333(0x3f0)](_0x397b96))==null?void 0x0:_0xb51862[_0x5f2333(0x53b)]();return(_0x3a35f5==null?void 0x0:_0x3a35f5[_0x5f2333(0x494)](_0x56ce59=>a[_0x5f2333(0x46c)][_0x5f2333(0x487)](_0x56ce59,_0x57805c)))||_0x57805c;}[_0x14a8b9(0x202)](){const _0x916c05=_0x14a8b9,_0x13af19=new a['DisposableCollection'](),_0x1be916=dr(),_0x3caf71=()=>{const _0x4bf92e=_0x3122;_0x13af19[_0x4bf92e(0x52d)]();const _0x15ecfb=(_0x27bca5,_0x5b6226,_0x212f37,_0x48ef0b)=>{const _0xa6e856=_0x4bf92e;let _0x488d2a=[];switch(_0x27bca5['id']){case k['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x488d2a=k[_0xa6e856(0x629)](_0x27bca5,_0x48ef0b);break;}case k[_0xa6e856(0x24c)][_0xa6e856(0x21e)]:{_0x488d2a=k[_0xa6e856(0x2e9)](_0x27bca5,_0x48ef0b);break;}case k['EffectRefRangId'][_0xa6e856(0x63d)]:{_0x488d2a=k[_0xa6e856(0x4df)](_0x27bca5,_0x48ef0b);break;}case k[_0xa6e856(0x24c)][_0xa6e856(0x227)]:{_0x488d2a=k[_0xa6e856(0x670)](_0x27bca5,_0x48ef0b);break;}case k[_0xa6e856(0x24c)]['InsertRangeMoveRightCommandId']:{_0x488d2a=k[_0xa6e856(0x239)](_0x27bca5,_0x48ef0b);break;}case k[_0xa6e856(0x24c)][_0xa6e856(0x292)]:{_0x488d2a=k[_0xa6e856(0x470)](_0x27bca5,_0x48ef0b);break;}case k[_0xa6e856(0x24c)]['MoveRangeCommandId']:{_0x488d2a=k['handleMoveRange'](_0x27bca5,_0x48ef0b);break;}case k['EffectRefRangId'][_0xa6e856(0x593)]:{_0x488d2a=k[_0xa6e856(0x473)](_0x27bca5,_0x48ef0b);break;}case k[_0xa6e856(0x24c)]['RemoveRowCommandId']:{_0x488d2a=k[_0xa6e856(0x60a)](_0x27bca5,_0x48ef0b);break;}}const _0x1ba185=k['runRefRangeMutations'](_0x488d2a,_0x48ef0b),_0xc7d2c7=this[_0xa6e856(0x67e)][_0xa6e856(0x249)](_0x5b6226);if(_0xc7d2c7&&_0x1ba185){const _0x103239={..._0xc7d2c7,'range':_0x1ba185};this[_0xa6e856(0x67e)][_0xa6e856(0x69e)](_0x5b6226,_0x103239),_0x1be916(()=>{const _0x46a89b=_0xa6e856,_0x2ce97e=this[_0x46a89b(0x316)][_0x46a89b(0x3f2)](_0x1ba185,_0x18296f=>(_0x2ce97e[_0x46a89b(0x52d)](),_0x15ecfb(_0x18296f,_0x5b6226,_0x212f37,_0x1ba185)));_0x13af19['add'](_0x2ce97e);});}return{'redos':[],'undos':[]};};this[_0x4bf92e(0x67e)][_0x4bf92e(0x4cd)]((_0x2c0a75,_0x587091)=>{const _0x297254=_0x4bf92e,{range:_0x21af87,sheetID:_0x13bc5e}=_0x2c0a75,_0x3d291c=this[_0x297254(0x316)][_0x297254(0x3f2)](_0x21af87,_0x377194=>(_0x3d291c[_0x297254(0x52d)](),_0x15ecfb(_0x377194,_0x587091,_0x13bc5e,_0x21af87)));_0x13af19[_0x297254(0x404)](_0x3d291c);});};this[_0x916c05(0x622)](a['toDisposable'](this[_0x916c05(0x469)]['subscribe'](()=>{_0x3caf71();})));}[_0x14a8b9(0x2c7)](){const _0x25642c=_0x14a8b9;var _0x4e2d87,_0x58531b;if(this[_0x25642c(0x485)]=!0x0,((_0x4e2d87=this[_0x25642c(0x564)]['getFocusedUnit']())==null?void 0x0:_0x4e2d87[_0x25642c(0x63f)]())!==this[_0x25642c(0x5b7)])return;const _0x3ebfe7=(_0x58531b=this[_0x25642c(0x5a5)]['get'](k[_0x25642c(0x1f5)])['getCurrentSelections']())==null?void 0x0:_0x58531b[0x0],_0x10453a=this[_0x25642c(0x564)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x25642c(0x2cb)])[_0x25642c(0x534)]();_0x3ebfe7&&_0x10453a&&this['_updateLocalCursor'](_0x10453a[_0x25642c(0x588)](),_0x3ebfe7);}[_0x14a8b9(0x243)](){const _0x56572f=_0x14a8b9;this[_0x56572f(0x485)]=!0x1;}};bt=hr([be(0x2,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),be(0x3,a[_0x14a8b9(0x1e2)](At)),be(0x4,a['Inject'](exports[_0x14a8b9(0x457)])),be(0x5,a[_0x14a8b9(0x2e5)]),be(0x6,a[_0x14a8b9(0x2a7)]),be(0x7,a[_0x14a8b9(0x1e2)](k[_0x14a8b9(0x2ce)]))],bt);var fr=Object[_0x14a8b9(0x4ed)],vr=Object[_0x14a8b9(0x5ee)],pr=(_0xbd5883,_0x3aa7a7,_0x19de07,_0x345c27)=>{const _0x3e157c=_0x14a8b9;for(var _0x56fd01=_0x345c27>0x1?void 0x0:_0x345c27?vr(_0x3aa7a7,_0x19de07):_0x3aa7a7,_0x3c83c2=_0xbd5883[_0x3e157c(0x4a6)]-0x1,_0x389c2f;_0x3c83c2>=0x0;_0x3c83c2--)(_0x389c2f=_0xbd5883[_0x3c83c2])&&(_0x56fd01=(_0x345c27?_0x389c2f(_0x3aa7a7,_0x19de07,_0x56fd01):_0x389c2f(_0x56fd01))||_0x56fd01);return _0x345c27&&_0x56fd01&&fr(_0x3aa7a7,_0x19de07,_0x56fd01),_0x56fd01;},dt=(_0x356463,_0x396bea)=>(_0x126961,_0x54493f)=>_0x396bea(_0x126961,_0x54493f,_0x356463);let Oe=class extends a[_0x14a8b9(0x51d)]{constructor(_0x5cc94d,_0xfc57d8,_0x40e2eb){const _0x3c60da=_0x14a8b9;super(),I(this,_0x3c60da(0x582),new Map()),I(this,'_entityInit$',new A[(_0x3c60da(0x3fc))]()),(this[_0x3c60da(0x564)]=_0x5cc94d,this[_0x3c60da(0x5a5)]=_0xfc57d8,this['_collabSessionService']=_0x40e2eb,this[_0x3c60da(0x68d)]());}[_0x14a8b9(0x52d)](){const _0x36e6aa=_0x14a8b9;super[_0x36e6aa(0x52d)](),this[_0x36e6aa(0x3af)][_0x36e6aa(0x3e2)](),this[_0x36e6aa(0x582)][_0x36e6aa(0x4cd)](_0x13b65e=>_0x13b65e[_0x36e6aa(0x52d)]());}[_0x14a8b9(0x58f)](_0x1610f7){const _0x40d47f=_0x14a8b9;return this[_0x40d47f(0x582)]['has'](_0x1610f7)?this[_0x40d47f(0x582)][_0x40d47f(0x249)](_0x1610f7)['cursorInfo$']:this['_entityInit$']['pipe'](A[_0x40d47f(0x2b5)](_0x177425=>_0x177425['unitID']===_0x1610f7),A[_0x40d47f(0x644)](_0x17deac=>_0x17deac[_0x40d47f(0x1ee)]));}[_0x14a8b9(0x68d)](){const _0x51deba=_0x14a8b9;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x51deba(0x5c7)][_0x51deba(0x2cb)])['pipe'](A['takeUntil'](this['dispose$']))[_0x51deba(0x32b)](async _0x53f3a9=>{const _0x5178a5=_0x51deba,_0x29f3d2=_0x53f3a9[_0x5178a5(0x63f)](),_0x3a8ca3=await this[_0x5178a5(0x518)](_0x29f3d2);this[_0x5178a5(0x3af)][_0x5178a5(0x269)](_0x3a8ca3),this['_entities']['set'](_0x29f3d2,_0x3a8ca3);}),this[_0x51deba(0x564)][_0x51deba(0x1dc)](a[_0x51deba(0x5c7)][_0x51deba(0x4b7)])[_0x51deba(0x4e7)](A[_0x51deba(0x32a)](this[_0x51deba(0x555)]))['pipe'](A[_0x51deba(0x2b5)](_0x413ea9=>!_0x413ea9[_0x51deba(0x63f)]()['startsWith']('__')))[_0x51deba(0x32b)](async _0x35b075=>{const _0x3915df=_0x51deba,_0x38557a=_0x35b075[_0x3915df(0x63f)](),_0x42d662=await this['_startDocCollabCursor'](_0x38557a);this['_entityInit$'][_0x3915df(0x269)](_0x42d662),this['_entities']['set'](_0x38557a,_0x42d662);}),A[_0x51deba(0x45f)](this[_0x51deba(0x564)][_0x51deba(0x453)](a['UniverInstanceType'][_0x51deba(0x4b7)]),this['_univerInstanceService'][_0x51deba(0x453)](a[_0x51deba(0x5c7)]['UNIVER_SHEET']))[_0x51deba(0x4e7)](A[_0x51deba(0x32a)](this['dispose$']))[_0x51deba(0x32b)](_0x5ba375=>{const _0x27a928=_0x51deba,_0x5e777b=_0x5ba375[_0x27a928(0x63f)](),_0x10014d=this[_0x27a928(0x582)]['get'](_0x5e777b);_0x10014d&&(_0x10014d[_0x27a928(0x52d)](),this['_entities'][_0x27a928(0x5b6)](_0x5e777b));});}async[_0x14a8b9(0x518)](_0x270436){const _0x36d9a1=_0x14a8b9,_0x564af5=await this[_0x36d9a1(0x4a8)][_0x36d9a1(0x621)](_0x270436),_0x36a43f=this[_0x36d9a1(0x5a5)][_0x36d9a1(0x45a)](bt,_0x270436,_0x564af5);return _0x36a43f[_0x36d9a1(0x3da)](),_0x36a43f;}async[_0x14a8b9(0x2f9)](_0x3e0d7e){const _0x533a9e=_0x14a8b9,_0x45624a=await this[_0x533a9e(0x4a8)][_0x533a9e(0x621)](_0x3e0d7e),_0x3eb6b2=this[_0x533a9e(0x5a5)]['createInstance'](Et,_0x3e0d7e,_0x45624a);return _0x3eb6b2[_0x533a9e(0x3da)](),_0x3eb6b2;}};Oe=pr([dt(0x0,a[_0x14a8b9(0x2e5)]),dt(0x1,a['Inject'](a[_0x14a8b9(0x24b)])),dt(0x2,a[_0x14a8b9(0x1e2)](exports['CollaborationSessionService']))],Oe);const Le=0x14,qt=0xc8,ft=0x4,Sr=0x5;function mr(_0x22d0ff,_0x11dcab){const _0x46a470=_0x14a8b9;let {radius:_0x2adf35,width:_0x529921,height:_0x21cbbd}=_0x11dcab;_0x2adf35=_0x2adf35!=null?_0x2adf35:0x0,_0x529921=_0x529921!=null?_0x529921:0x1e,_0x21cbbd=_0x21cbbd!=null?_0x21cbbd:0x1e;let _0x9a43b3=0x0,_0x4f8632=0x0,_0x515dcb=0x0;_0x9a43b3=_0x4f8632=_0x515dcb=Math[_0x46a470(0x64a)](_0x2adf35,_0x529921/0x2,_0x21cbbd/0x2),_0x22d0ff[_0x46a470(0x4ab)](),_0x22d0ff[_0x46a470(0x536)](_0x9a43b3,0x0),_0x22d0ff[_0x46a470(0x307)](_0x529921-_0x4f8632,0x0),_0x22d0ff[_0x46a470(0x3c3)](_0x529921-_0x4f8632,_0x4f8632,_0x4f8632,Math['PI']*0x3/0x2,0x0,!0x1),_0x22d0ff['lineTo'](_0x529921,_0x21cbbd-_0x515dcb),_0x22d0ff[_0x46a470(0x3c3)](_0x529921-_0x515dcb,_0x21cbbd-_0x515dcb,_0x515dcb,0x0,Math['PI']/0x2,!0x1),_0x22d0ff['lineTo'](0x0,_0x21cbbd),_0x22d0ff['lineTo'](0x0,_0x9a43b3),_0x22d0ff[_0x46a470(0x3c3)](_0x9a43b3,_0x9a43b3,_0x9a43b3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x22d0ff[_0x46a470(0x5a0)](),_0x11dcab[_0x46a470(0x411)]&&(_0x22d0ff[_0x46a470(0x5cc)](),_0x22d0ff[_0x46a470(0x27f)]=_0x11dcab[_0x46a470(0x411)],_0x11dcab[_0x46a470(0x648)]==='evenodd'?_0x22d0ff[_0x46a470(0x411)](_0x46a470(0x217)):_0x22d0ff['fill'](),_0x22d0ff['restore']());}class at extends q['Shape']{constructor(_0x45940c,_0x43f18a){const _0x42cfb6=_0x14a8b9;super(_0x45940c,_0x43f18a),I(this,_0x42cfb6(0x3b4)),I(this,'text'),(this[_0x42cfb6(0x3b4)]=_0x43f18a==null?void 0x0:_0x43f18a[_0x42cfb6(0x3b4)],this[_0x42cfb6(0x447)]=_0x43f18a==null?void 0x0:_0x43f18a[_0x42cfb6(0x447)]);}static[_0x14a8b9(0x397)](_0x226cbe,_0x400c23){const _0xd1cf24=_0x14a8b9,{text:_0x324239,color:_0x495ab1}=_0x400c23;_0x226cbe[_0xd1cf24(0x5cc)](),_0x226cbe[_0xd1cf24(0x5ac)]=_0xd1cf24(0x2b4);const _0x3ee561=_0x226cbe[_0xd1cf24(0x42b)](_0x324239)[_0xd1cf24(0x50d)],_0x259642=Math['min'](_0x3ee561+0x2*ft,qt);mr(_0x226cbe,{'height':Le,'radius':0x4,'width':_0x259642,'fill':_0x495ab1,'evented':!0x1}),_0x226cbe['fillStyle']=_0xd1cf24(0x5cf);const _0xd3edcf=ft,_0x484916=Le-Sr,_0x9e285a=qt-0x2*ft;if(_0x3ee561>_0x9e285a){let _0x274a0a='',_0x2848d2=0x0;for(const _0x42c86d of _0x324239){const _0x33ca6e=_0x226cbe[_0xd1cf24(0x42b)](_0x42c86d)[_0xd1cf24(0x50d)];if(_0x2848d2+_0x33ca6e<=_0x9e285a-_0x226cbe[_0xd1cf24(0x42b)]('...')['width'])_0x274a0a+=_0x42c86d,_0x2848d2+=_0x33ca6e;else{_0x274a0a+='...';break;}}_0x226cbe[_0xd1cf24(0x379)](_0x274a0a,_0xd3edcf,_0x484916);}else _0x226cbe['fillText'](_0x324239,_0xd3edcf,_0x484916);_0x226cbe[_0xd1cf24(0x5f5)]();}[_0x14a8b9(0x443)](_0x4d8d64){at['drawWith'](_0x4d8d64,this);}}const vt='collab-text-anchor-',gr=_0x14a8b9(0x61d),Ir='collab-rect-range-',we=0x6,Cr=1.5,pt=0x4,Er=1.5,br=_0x14a8b9(0x587);class Kt{constructor(_0x16691a,_0xb70b44,_0x1d0298,_0x5ce858){const _0x503241=_0x14a8b9;I(this,_0x503241(0x3f6),[]),I(this,_0x503241(0x472),null),I(this,'_textBubble',null),I(this,_0x503241(0x378),null),I(this,_0x503241(0x3b3),null),I(this,_0x503241(0x3ca),null),(this['_cursor']=_0x16691a,this[_0x503241(0x48d)]=_0xb70b44,this[_0x503241(0x408)]=_0x1d0298,this[_0x503241(0x4be)]=_0x5ce858,this[_0x503241(0x2a4)]());}set['_hover'](_0x5b2d8d){const _0x432699=_0x14a8b9;_0x5b2d8d?(this[_0x432699(0x378)]&&this[_0x432699(0x378)][_0x432699(0x322)](),this['_textBubble']&&this[_0x432699(0x348)]['show']()):(this[_0x432699(0x378)]&&this[_0x432699(0x378)][_0x432699(0x384)](),this[_0x432699(0x348)]&&this['_textBubble']['hide']());}['dispose'](){const _0x18fd5b=_0x14a8b9;for(const _0x5afdd7 of this[_0x18fd5b(0x3f6)])_0x5afdd7[_0x18fd5b(0x52d)]();this[_0x18fd5b(0x348)]&&this[_0x18fd5b(0x348)][_0x18fd5b(0x52d)](),this['_anchorDot']&&this[_0x18fd5b(0x378)][_0x18fd5b(0x52d)](),this[_0x18fd5b(0x472)]&&this[_0x18fd5b(0x472)][_0x18fd5b(0x52d)](),this[_0x18fd5b(0x3ca)]&&this['_eventUnsubscribe']();}[_0x14a8b9(0x2a4)](){const _0x2d08ba=_0x14a8b9;var _0x3e62b5;const {_docSkeleton:_0x5095c8,_document:_0x30ef9e}=this,{color:_0x1de5aa,name:_0x18dc95,ranges:_0x131b30}=this['_cursor'],_0x279d56=_0x30ef9e[_0x2d08ba(0x260)](),{docsLeft:_0x402de9,docsTop:_0x38112e}=_0x279d56,_0x3e0670=new J[(_0x2d08ba(0x3a7))](_0x279d56,_0x5095c8);for(const {startOffset:_0xfc2b94,endOffset:_0x3cae84,rangeType:_0x51af90,segmentId:_0x11b875,segmentPage:_0x5ae5b5,collapsed:_0x2a4769,isActive:_0x117f4d}of _0x131b30){const _0xc89afe=_0x5095c8[_0x2d08ba(0x5ff)](_0xfc2b94,!0x0,_0x11b875,_0x5ae5b5);let _0x402e29=_0x5095c8['findNodePositionByCharIndex'](_0x3cae84,!0x0,_0x11b875,_0x5ae5b5);if(_0x402e29==null&&(_0x402e29=_0x5095c8[_0x2d08ba(0x5ff)](_0x3cae84-0x1,!0x1,_0x11b875,_0x5ae5b5)),_0x117f4d){const {contentBoxPointGroup:_0x4d6030}=_0x3e0670[_0x2d08ba(0x66e)](_0x402e29,_0x402e29);if(_0x4d6030[_0x2d08ba(0x4a6)]===0x0)continue;this[_0x2d08ba(0x2a9)](_0x1de5aa,_0x4d6030,_0x402de9,_0x38112e,_0x18dc95),this['_eventUnsubscribe']=this['_handleHover']();}if(_0xc89afe&&_0x402e29){if(_0x51af90===a[_0x2d08ba(0x3b7)][_0x2d08ba(0x3b0)]){const _0x137a2a=new J[(_0x2d08ba(0x5a9))](_0x279d56,_0x5095c8),{pointGroup:_0x29c45a}=(_0x3e62b5=_0x137a2a['getRangePointData'](_0xc89afe,_0x402e29))!=null?_0x3e62b5:{};if(_0x29c45a==null||_0x29c45a[_0x2d08ba(0x4a6)]===0x0)continue;this['_drawRectRange'](_0x1de5aa,_0x29c45a,_0x402de9,_0x38112e);}else{if(!_0x2a4769){const {borderBoxPointGroup:_0x398941}=_0x3e0670[_0x2d08ba(0x66e)](_0xc89afe,_0x402e29);if(_0x398941['length']===0x0)continue;this['_drawTextRange'](_0x1de5aa,_0x398941,_0x402de9,_0x38112e);}}}}}[_0x14a8b9(0x2a9)](_0x535430,_0x491d80,_0x492619,_0x4b7176,_0x2f7cfb){const _0x3c85da=_0x14a8b9,_0x533ff=this[_0x3c85da(0x5c1)](_0x491d80),{left:_0x1d693d,top:_0x1f27bc,height:_0x3c55e4}=_0x533ff,_0x57d947=this[_0x3c85da(0x54f)](),_0x2b19fc=Er/_0x57d947,_0x3d7183=new q[(_0x3c85da(0x1ea))](vt+a[_0x3c85da(0x625)][_0x3c85da(0x626)](we),{'left':_0x1d693d+_0x492619-_0x2b19fc,'top':_0x1f27bc+_0x4b7176,'height':_0x3c55e4,'width':Cr,'fill':_0x535430||q[_0x3c85da(0x3d6)](a[_0x3c85da(0x51b)]['black'],0x0),'strokeWidth':_0x2b19fc,'stroke':br,'evented':!0x0});this[_0x3c85da(0x472)]=_0x3d7183,this[_0x3c85da(0x48d)][_0x3c85da(0x365)](_0x3d7183,J[_0x3c85da(0x47f)]);const _0x2ee403=new q[(_0x3c85da(0x1ea))](vt+a['Tools']['generateRandomId'](we),{'left':_0x1d693d+_0x492619-_0x2b19fc,'top':_0x1f27bc+_0x4b7176-pt/0x2,'height':pt,'width':pt,'fill':_0x535430||q[_0x3c85da(0x3d6)](a[_0x3c85da(0x51b)][_0x3c85da(0x1ef)],0x0),'strokeWidth':0x0,'stroke':_0x535430||q[_0x3c85da(0x3d6)](a[_0x3c85da(0x51b)][_0x3c85da(0x1ef)],0x0),'evented':!0x1});this['_anchorDot']=_0x2ee403,this[_0x3c85da(0x48d)][_0x3c85da(0x365)](_0x2ee403,J[_0x3c85da(0x47f)]);const _0x305483=new at(vt+a['Tools']['generateRandomId'](we),{'left':_0x1d693d+_0x492619-_0x2b19fc,'top':_0x1f27bc+_0x4b7176-Le,'text':_0x2f7cfb,'color':_0x535430});this['_textBubble']=_0x305483,this[_0x3c85da(0x48d)][_0x3c85da(0x365)](_0x305483,J[_0x3c85da(0x47f)]),this[_0x3c85da(0x642)]=!0x1;}[_0x14a8b9(0x606)](){const _0x3ef596=_0x14a8b9,_0x3b31fd=this[_0x3ef596(0x472)][_0x3ef596(0x699)][_0x3ef596(0x63a)](()=>{this['_hover']=!0x0;}),_0x43cbb8=this[_0x3ef596(0x472)][_0x3ef596(0x246)]['subscribeEvent'](()=>{const _0x2b1dce=_0x3ef596;this[_0x2b1dce(0x3b3)]&&clearTimeout(this[_0x2b1dce(0x3b3)]),this[_0x2b1dce(0x3b3)]=setTimeout(()=>{const _0x5b81a3=_0x2b1dce;this[_0x5b81a3(0x642)]=!0x1;},0x7d0);});return()=>{const _0x40173e=_0x3ef596;_0x3b31fd[_0x40173e(0x66a)](),_0x43cbb8[_0x40173e(0x66a)]();};}[_0x14a8b9(0x293)](_0x5234e4,_0x4fd738,_0x129c12,_0x584878){const _0x22b1c3=_0x14a8b9,_0x3d2eee=new a['ColorKit'](_0x5234e4)['setAlpha'](0.2)['toRgbString'](),_0x263c81=new q['RegularPolygon'](gr+a[_0x22b1c3(0x625)][_0x22b1c3(0x626)](we),{'pointsGroup':_0x4fd738,'fill':_0x3d2eee||q[_0x22b1c3(0x3d6)](a['COLORS'][_0x22b1c3(0x1ef)],0.2),'left':_0x129c12,'top':_0x584878,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x22b1c3(0x3f6)]['push'](_0x263c81),this[_0x22b1c3(0x48d)][_0x22b1c3(0x365)](_0x263c81,J[_0x22b1c3(0x47f)]);}[_0x14a8b9(0x640)](_0x27fdc8,_0x25c8a3,_0x56d297,_0x140530){const _0x555edf=_0x14a8b9,_0x40e31b=new a['ColorKit'](_0x27fdc8)['setAlpha'](0.2)[_0x555edf(0x231)](),_0x4b2eb4=new q[(_0x555edf(0x3e6))](Ir+a[_0x555edf(0x625)][_0x555edf(0x626)](we),{'pointsGroup':_0x25c8a3,'fill':_0x40e31b||q[_0x555edf(0x3d6)](a[_0x555edf(0x51b)][_0x555edf(0x1ef)],0.2),'left':_0x56d297,'top':_0x140530,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x555edf(0x3f6)]['push'](_0x4b2eb4),this[_0x555edf(0x48d)][_0x555edf(0x365)](_0x4b2eb4,J['TEXT_RANGE_LAYER_INDEX']);}[_0x14a8b9(0x5c1)](_0x45c17b){const _0x2924dc=_0x45c17b[0x0],_0x25a1f7=_0x2924dc[0x0],_0xbb88a7=_0x2924dc[0x2],{x:_0x5756d3,y:_0x5a251f}=_0x25a1f7,{x:_0x1e8297,y:_0x24e9c4}=_0xbb88a7;return{'left':_0x5756d3,'top':_0x5a251f,'width':_0x1e8297-_0x5756d3,'height':_0x24e9c4-_0x5a251f};}[_0x14a8b9(0x54f)](){const _0x44962a=_0x14a8b9,{scaleX:_0x46aae3,scaleY:_0x53dda7}=this['_scene'][_0x44962a(0x5b9)]();return Math[_0x44962a(0x2c8)](_0x46aae3,_0x53dda7);}}var Tr=Object['defineProperty'],Rr=Object[_0x14a8b9(0x5ee)],yr=(_0x596a06,_0x589321,_0x556a95,_0x21fdd7)=>{const _0x295a58=_0x14a8b9;for(var _0x3cb23e=_0x21fdd7>0x1?void 0x0:_0x21fdd7?Rr(_0x589321,_0x556a95):_0x589321,_0x5c34f4=_0x596a06[_0x295a58(0x4a6)]-0x1,_0x13e745;_0x5c34f4>=0x0;_0x5c34f4--)(_0x13e745=_0x596a06[_0x5c34f4])&&(_0x3cb23e=(_0x21fdd7?_0x13e745(_0x589321,_0x556a95,_0x3cb23e):_0x13e745(_0x3cb23e))||_0x3cb23e);return _0x21fdd7&&_0x3cb23e&&Tr(_0x589321,_0x556a95,_0x3cb23e),_0x3cb23e;},$e=(_0x5b7c1e,_0x90086b)=>(_0x5b8145,_0x450f38)=>_0x90086b(_0x5b8145,_0x450f38,_0x5b7c1e);let Tt=class extends a[_0x14a8b9(0x51d)]{constructor(_0xc0bcf3,_0x5df055,_0x640c29,_0x3df487,_0x58b577){const _0x536cee=_0x14a8b9;super(),I(this,_0x536cee(0x2e3),[]),I(this,_0x536cee(0x4a4),[]),(this[_0x536cee(0x1e6)]=_0xc0bcf3,this[_0x536cee(0x36e)]=_0x5df055,this['_collabCursorController']=_0x640c29,this[_0x536cee(0x54b)]=_0x3df487,this[_0x536cee(0x4e5)]=_0x58b577,this[_0x536cee(0x68d)]());}['_init'](){const _0x1d1bb4=_0x14a8b9,_0x47262b=this[_0x1d1bb4(0x1e6)][_0x1d1bb4(0x48c)],_0x3bad7b=this[_0x1d1bb4(0x36e)];this[_0x1d1bb4(0x622)](A[_0x1d1bb4(0x362)]([this[_0x1d1bb4(0x68a)][_0x1d1bb4(0x58f)](_0x47262b),this['_themeService'][_0x1d1bb4(0x353)]])[_0x1d1bb4(0x4e7)](V[_0x1d1bb4(0x531)](([_0xdba6b1,_0xc1196e])=>({'skeleton':_0x3bad7b[_0x1d1bb4(0x5bc)](),'cursors':[..._0xdba6b1[_0x1d1bb4(0x602)]()][_0x1d1bb4(0x503)](_0x12e2b5=>({..._0x12e2b5,'color':_0xc1196e[_0x12e2b5[_0x1d1bb4(0x3b4)]]}))})))[_0x1d1bb4(0x32b)](_0x2ba82b=>{const _0x2e9db7=_0x1d1bb4;if(this['_removeCollabCursors'](),_0x2ba82b){const {skeleton:_0x4db323,cursors:_0x39f8b8}=_0x2ba82b;this[_0x2e9db7(0x410)](_0x4db323,_0x39f8b8);}})),this[_0x1d1bb4(0x568)](),this[_0x1d1bb4(0x452)]();}[_0x14a8b9(0x410)](_0xfa200d,_0x150258){const _0x58a3d3=_0x14a8b9,{scene:_0x27d5be,mainComponent:_0x1b7b67}=this['_context'],_0x1a2756=_0x150258['map'](_0x53f4fb=>new Kt(_0x53f4fb,_0x27d5be,_0xfa200d,_0x1b7b67));this[_0x58a3d3(0x2e3)]=_0x1a2756,this[_0x58a3d3(0x4a4)]=_0x150258;}[_0x14a8b9(0x3e5)](){const _0x22e09a=_0x14a8b9;this[_0x22e09a(0x40c)]();const {scene:_0x4d89df,mainComponent:_0x24049d}=this[_0x22e09a(0x1e6)],_0x177e44=this[_0x22e09a(0x36e)][_0x22e09a(0x5bc)](),_0x396fa8=this[_0x22e09a(0x4a4)][_0x22e09a(0x531)](_0x4cd12e=>new Kt(_0x4cd12e,_0x4d89df,_0x177e44,_0x24049d));this[_0x22e09a(0x2e3)]=_0x396fa8;}['_removeCollabCursors'](){const _0x58893c=_0x14a8b9;this[_0x58893c(0x2e3)]['forEach'](_0x8929e7=>_0x8929e7[_0x58893c(0x52d)]()),this['_cursorShapes']=[];}[_0x14a8b9(0x452)](){const _0x13df3=_0x14a8b9,_0x1307fb=[J['SetDocZoomRatioOperation']['id']];this[_0x13df3(0x622)](this[_0x13df3(0x54b)][_0x13df3(0x251)](_0x385cb8=>{const _0x195ecb=_0x13df3;_0x1307fb['includes'](_0x385cb8['id'])&&_0x385cb8[_0x195ecb(0x51a)]['unitId']===this[_0x195ecb(0x1e6)][_0x195ecb(0x48c)]&&this['_refreshCollabCursors']();}));}[_0x14a8b9(0x568)](){const _0x36d6fb=_0x14a8b9;this[_0x36d6fb(0x622)](a['fromEventSubject'](this['_context']['engine'][_0x36d6fb(0x2bf)])[_0x36d6fb(0x4e7)](V[_0x36d6fb(0x2b5)](_0x19390c=>_0x19390c[_0x36d6fb(0x64d)]===q[_0x36d6fb(0x61a)]['resize']),V[_0x36d6fb(0x61e)](0x10))['subscribe'](()=>{const _0x51945a=_0x36d6fb;this[_0x51945a(0x3e5)]();}));}};Tt=yr([$e(0x1,a[_0x14a8b9(0x1e2)](ge[_0x14a8b9(0x5f2)])),$e(0x2,a[_0x14a8b9(0x1e2)](Oe)),$e(0x3,a[_0x14a8b9(0x2a7)]),$e(0x4,a['Inject'](a[_0x14a8b9(0x66d)]))],Tt);const Or=0x1,Dr=1.5;class Ui extends q[_0x14a8b9(0x317)]{constructor(_0x58d12a,_0x4bae76){const _0x8d0972=_0x14a8b9;super(_0x58d12a,_0x4bae76),I(this,_0x8d0972(0x2df)),I(this,_0x8d0972(0x2f1),!0x1),I(this,_0x8d0972(0x691)),I(this,_0x8d0972(0x3a2),''),I(this,_0x8d0972(0x50c),'top'),I(this,_0x8d0972(0x662)),(_0x4bae76&&this[_0x8d0972(0x345)](_0x4bae76),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x8d0972(0x345)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x8d0972(0x345)]({'hovered':!0x1})));}[_0x14a8b9(0x345)](_0x2a73dc){const _0x444d0e=_0x14a8b9;var _0xcd589f,_0x3345e9,_0x46e4fa,_0x4cf0db,_0x3ee202,_0x308c21;this[_0x444d0e(0x2df)]=(_0xcd589f=_0x2a73dc[_0x444d0e(0x3b4)])!=null?_0xcd589f:this[_0x444d0e(0x2df)],this[_0x444d0e(0x2f1)]=(_0x3345e9=_0x2a73dc[_0x444d0e(0x451)])!=null?_0x3345e9:this[_0x444d0e(0x2f1)],this[_0x444d0e(0x691)]=(_0x46e4fa=_0x2a73dc[_0x444d0e(0x20f)])!=null?_0x46e4fa:this[_0x444d0e(0x691)],this['_name']=(_0x4cf0db=_0x2a73dc[_0x444d0e(0x62a)])!=null?_0x4cf0db:this[_0x444d0e(0x3a2)],this[_0x444d0e(0x50c)]=(_0x3ee202=_0x2a73dc[_0x444d0e(0x2e7)])!=null?_0x3ee202:this[_0x444d0e(0x50c)],this[_0x444d0e(0x662)]=(_0x308c21=_0x2a73dc['backgroundColor'])!=null?_0x308c21:this[_0x444d0e(0x662)],this[_0x444d0e(0x607)]({'width':_0x2a73dc[_0x444d0e(0x50d)],'height':_0x2a73dc[_0x444d0e(0x335)]});}[_0x14a8b9(0x203)](_0x5ee749){const _0x4ddccf=_0x14a8b9,{row:_0x2c65ad,column:_0x3d9828}=_0x5ee749;if(_0x2c65ad>=this[_0x4ddccf(0x691)][_0x4ddccf(0x663)]&&_0x2c65ad<=this[_0x4ddccf(0x691)][_0x4ddccf(0x3a4)]&&_0x3d9828>=this[_0x4ddccf(0x691)][_0x4ddccf(0x28e)]&&_0x3d9828<=this[_0x4ddccf(0x691)][_0x4ddccf(0x5ba)]){this[_0x4ddccf(0x345)]({'hovered':!0x0});return;}this[_0x4ddccf(0x345)]({'hovered':!0x1});}[_0x14a8b9(0x276)](_0x441e80){return!0x1;}[_0x14a8b9(0x443)](_0x57f4c9){const _0x3d93c3=_0x14a8b9;q[_0x3d93c3(0x1ea)][_0x3d93c3(0x397)](_0x57f4c9,{'width':this[_0x3d93c3(0x50d)],'height':this[_0x3d93c3(0x335)],'strokeWidth':Dr,'stroke':this[_0x3d93c3(0x2df)],'evented':!0x1,'fill':this[_0x3d93c3(0x662)]}),this[_0x3d93c3(0x2f1)]&&(_0x57f4c9[_0x3d93c3(0x5cc)](),_0x57f4c9[_0x3d93c3(0x256)](0x1,0x0,0x0,0x1,this[_0x3d93c3(0x50d)],this[_0x3d93c3(0x50c)]===_0x3d93c3(0x49a)?0x0:-Le),at['drawWith'](_0x57f4c9,{'text':this[_0x3d93c3(0x3a2)],'color':this[_0x3d93c3(0x2df)]}),_0x57f4c9[_0x3d93c3(0x5f5)]());}}var Pr=Object[_0x14a8b9(0x4ed)],wr=Object['getOwnPropertyDescriptor'],Ur=(_0x1a9218,_0x4f06a7,_0x83a024,_0x515431)=>{const _0x2ad8b8=_0x14a8b9;for(var _0x3c90b6=_0x515431>0x1?void 0x0:_0x515431?wr(_0x4f06a7,_0x83a024):_0x4f06a7,_0x4ae964=_0x1a9218[_0x2ad8b8(0x4a6)]-0x1,_0x908367;_0x4ae964>=0x0;_0x4ae964--)(_0x908367=_0x1a9218[_0x4ae964])&&(_0x3c90b6=(_0x515431?_0x908367(_0x4f06a7,_0x83a024,_0x3c90b6):_0x908367(_0x3c90b6))||_0x3c90b6);return _0x515431&&_0x3c90b6&&Pr(_0x4f06a7,_0x83a024,_0x3c90b6),_0x3c90b6;},St=(_0x1f0925,_0xc63401)=>(_0x22fe2d,_0x336775)=>_0xc63401(_0x22fe2d,_0x336775,_0x1f0925);const Mr=0x1389;let Rt=class extends a[_0x14a8b9(0x51d)]{constructor(_0x41b577,_0x3a417b,_0x17d31b,_0x13a933){const _0x525fe3=_0x14a8b9;super(),I(this,_0x525fe3(0x4a4),new Set()),I(this,'_lastPointer',null),(this[_0x525fe3(0x1e6)]=_0x41b577,this[_0x525fe3(0x590)]=_0x3a417b,this[_0x525fe3(0x68a)]=_0x17d31b,this[_0x525fe3(0x4e5)]=_0x13a933,this[_0x525fe3(0x68d)]());}['_init'](){const _0x563517=_0x14a8b9;this['_sheetSkeletonManagerService'][_0x563517(0x526)][_0x563517(0x4e7)](V[_0x563517(0x32a)](this[_0x563517(0x555)]),V['switchMap'](_0x5409ad=>{const _0x1d70a0=_0x563517;if(_0x5409ad){const _0x164563=_0x5409ad[_0x1d70a0(0x1fd)];return A[_0x1d70a0(0x362)](this[_0x1d70a0(0x68a)][_0x1d70a0(0x58f)](this[_0x1d70a0(0x1e6)][_0x1d70a0(0x48c)]),this[_0x1d70a0(0x4e5)][_0x1d70a0(0x353)])[_0x1d70a0(0x4e7)](V[_0x1d70a0(0x531)](([_0x31689a,_0x41d7de])=>{const _0x4d2749=_0x1d70a0,_0x5b1399=new Map();return _0x31689a[_0x4d2749(0x4cd)]((_0x39e85d,_0x2c2208)=>{const _0x257ca8=_0x4d2749;if(_0x39e85d[_0x257ca8(0x3d2)]===_0x164563){const _0x54da49={..._0x39e85d};_0x54da49[_0x257ca8(0x3b4)]=_0x41d7de[_0x39e85d[_0x257ca8(0x3b4)]],_0x5b1399['set'](_0x2c2208,_0x54da49);}}),{'skeleton':_0x5409ad,'cursors':_0x5b1399};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0x563517(0x32b)](({skeleton:_0x3f378c,cursors:_0x12b0cc})=>{const _0x3daa8e=_0x563517;this[_0x3daa8e(0x40c)](),_0x3f378c&&this['_updateCollabCursors'](_0x3f378c,_0x12b0cc);}),this[_0x563517(0x590)]['currentSkeleton$'][_0x563517(0x32b)](_0x24af44=>{const _0x55178c=_0x563517;if(_0x24af44==null)return;const {skeleton:_0x2279fb}=_0x24af44,{scene:_0xc8e429}=this['_context'];_0xc8e429[_0x55178c(0x43c)]['subscribeEvent'](a['debounce'](_0x14031b=>{const _0x1db465=_0x55178c;var _0x28502d,_0x4ec06e;const {offsetX:_0x24ff0a,offsetY:_0x3bf978}=_0x14031b,{x:_0x19a4cc,y:_0x4e3c6a}=_0xc8e429['getRelativeToViewportCoord'](q['Vector2']['FromArray']([_0x24ff0a,_0x3bf978])),{scaleX:_0x12bbef,scaleY:_0x402e35}=_0xc8e429['getAncestorScale'](),_0x5bfabc=_0xc8e429['getViewport'](Re[_0x1db465(0x4bf)][_0x1db465(0x37d)]),_0x47bf36=_0xc8e429['getVpScrollXYInfoByPosToVp'](q[_0x1db465(0x595)][_0x1db465(0x61b)]([_0x19a4cc,_0x4e3c6a]),_0x5bfabc),_0x503ee5=_0x2279fb[_0x1db465(0x423)](_0x24ff0a,_0x3bf978,_0x12bbef,_0x402e35,_0x47bf36);((_0x28502d=this[_0x1db465(0x620)])==null?void 0x0:_0x28502d[_0x1db465(0x215)])===_0x503ee5[_0x1db465(0x215)]&&((_0x4ec06e=this['_lastPointer'])==null?void 0x0:_0x4ec06e['row'])===_0x503ee5[_0x1db465(0x436)]||this[_0x1db465(0x4a4)][_0x1db465(0x4cd)](_0x2e1c69=>{const _0x50dfd4=_0x1db465;_0x2e1c69[_0x50dfd4(0x203)](_0x503ee5);});},0x64));});}['_updateCollabCursors'](_0x3944b0,_0x504e41){const _0x9f8f9d=_0x14a8b9;var _0x2160b8;const _0x1c6e43=(_0x2160b8=this[_0x9f8f9d(0x590)][_0x9f8f9d(0x462)]())==null?void 0x0:_0x2160b8[_0x9f8f9d(0x560)];if(!_0x1c6e43)return;const _0x12d822=this[_0x9f8f9d(0x66f)]();if(!_0x12d822)return;this[_0x9f8f9d(0x4a4)]['forEach'](_0x580993=>{_0x580993['makeDirty']();});const {scene:_0x2e97f7}=_0x12d822,_0x467001=Ar(Array['from'](_0x504e41[_0x9f8f9d(0x602)]()))['map'](_0x153c80=>{const _0xa06d49=_0x9f8f9d,{color:_0x10007e,range:_0x493e8a,name:_0x4b76c0,selection:_0x3e942e,sheetID:_0x2e1215}=_0x153c80,{startColumn:_0x1f4941,startRow:_0x31a0f6,endColumn:_0x1c3fd3,endRow:_0x592e5d}=_0x493e8a,_0x45f34d=Re[_0xa06d49(0x3f3)](_0x31a0f6,_0x1f4941,_0x2e97f7,_0x1c6e43),_0x5f565a=Re[_0xa06d49(0x3f3)](_0x592e5d,_0x1c3fd3,_0x2e97f7,_0x1c6e43),{columnHeaderHeightAndMarginTop:_0x275a70}=_0x1c6e43,{startX:_0xf6ce55,startY:_0x5eca09}=_0x45f34d,{endX:_0x565dfd,endY:_0x22429d}=_0x5f565a,_0x5bbbd9=_0x565dfd-_0xf6ce55,_0x1632cf=_0x22429d-_0x5eca09,_0x2ee7b1={'labelPosition':_0x5eca09-_0x275a70>=Le?_0xa06d49(0x51f):_0xa06d49(0x49a),'sheetID':_0x2e1215,'range':_0x493e8a,'color':_0x10007e,'name':_0x4b76c0,'selection':_0x3e942e,'left':_0xf6ce55,'top':_0x5eca09,'width':_0x5bbbd9,'height':_0x1632cf,'evented':!0x1,'zIndex':Mr};return new Ui(_0x4b76c0,_0x2ee7b1);});_0x2e97f7[_0x9f8f9d(0x60f)](_0x467001,Or),this[_0x9f8f9d(0x4a4)]=new Set(_0x467001);}['_removeCollabCursors'](){const _0x3ccd22=_0x14a8b9;var _0x52ab1f;(_0x52ab1f=this[_0x3ccd22(0x4a4)])==null||_0x52ab1f[_0x3ccd22(0x4cd)](_0x515c0f=>_0x515c0f[_0x3ccd22(0x52d)]());}['_getSheetObject'](){const _0x5edd46=_0x14a8b9;return Re['getSheetObject'](this[_0x5edd46(0x1e6)]['unit'],this[_0x5edd46(0x1e6)]);}};Rt=Ur([St(0x1,a[_0x14a8b9(0x1e2)](Re[_0x14a8b9(0x633)])),St(0x2,a[_0x14a8b9(0x1e2)](Oe)),St(0x3,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x66d)]))],Rt);function Ar(_0x3b5b9c){const _0x101a55=_0x14a8b9,_0x5df21e=new Map();return _0x3b5b9c[_0x101a55(0x4cd)](_0x400892=>{const _0x32e2e9=_0x101a55;if(_0x5df21e[_0x32e2e9(0x3fd)](_0x400892[_0x32e2e9(0x33d)])){const _0x19e01c=_0x5df21e[_0x32e2e9(0x249)](_0x400892[_0x32e2e9(0x33d)]);_0x19e01c[_0x32e2e9(0x62a)]+=',\x20'+_0x400892[_0x32e2e9(0x62a)];}else _0x5df21e['set'](_0x400892[_0x32e2e9(0x33d)],_0x400892);}),Array['from'](_0x5df21e[_0x101a55(0x602)]());}var mt=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x54263e){const _0x4bae0c=_0x14a8b9;return _0x54263e&&_0x54263e[_0x4bae0c(0x255)]&&Object[_0x4bae0c(0x2c5)][_0x4bae0c(0x25d)][_0x4bae0c(0x1eb)](_0x54263e,'default')?_0x54263e['default']:_0x54263e;}var gt={'exports':{}},Ue={},zt;function Nr(){const _0x443f6a=_0x14a8b9;if(zt)return Ue;zt=0x1;var _0x4027f7=oe,_0x42fc86=Symbol['for'](_0x443f6a(0x262)),_0x1a004b=Symbol[_0x443f6a(0x545)](_0x443f6a(0x3d8)),_0x407ed4=Object[_0x443f6a(0x2c5)][_0x443f6a(0x25d)],_0x3bfa9c=_0x4027f7[_0x443f6a(0x271)][_0x443f6a(0x415)],_0x38cc6b={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x43010a(_0x376c94,_0x52032d,_0x2bf941){const _0xb519be=_0x443f6a;var _0x53abdb,_0xfb5bc2={},_0x2b437e=null,_0x521db2=null;_0x2bf941!==void 0x0&&(_0x2b437e=''+_0x2bf941),_0x52032d[_0xb519be(0x438)]!==void 0x0&&(_0x2b437e=''+_0x52032d[_0xb519be(0x438)]),_0x52032d[_0xb519be(0x668)]!==void 0x0&&(_0x521db2=_0x52032d['ref']);for(_0x53abdb in _0x52032d)_0x407ed4[_0xb519be(0x1eb)](_0x52032d,_0x53abdb)&&!_0x38cc6b[_0xb519be(0x25d)](_0x53abdb)&&(_0xfb5bc2[_0x53abdb]=_0x52032d[_0x53abdb]);if(_0x376c94&&_0x376c94['defaultProps']){for(_0x53abdb in(_0x52032d=_0x376c94[_0xb519be(0x497)],_0x52032d))_0xfb5bc2[_0x53abdb]===void 0x0&&(_0xfb5bc2[_0x53abdb]=_0x52032d[_0x53abdb]);}return{'$$typeof':_0x42fc86,'type':_0x376c94,'key':_0x2b437e,'ref':_0x521db2,'props':_0xfb5bc2,'_owner':_0x3bfa9c[_0xb519be(0x38c)]};}return Ue[_0x443f6a(0x551)]=_0x1a004b,Ue[_0x443f6a(0x3f5)]=_0x43010a,Ue[_0x443f6a(0x678)]=_0x43010a,Ue;}var Xt;function Lr(){const _0x212be8=_0x14a8b9;return Xt||(Xt=0x1,gt[_0x212be8(0x402)]=Nr()),gt['exports'];}var me=Lr(),Q=function(){const _0x2f940b=_0x14a8b9;return Q=Object[_0x2f940b(0x1f8)]||function(_0xd47d37){const _0x372d8d=_0x2f940b;for(var _0x297e1e,_0x19f514=0x1,_0x55a537=arguments[_0x372d8d(0x4a6)];_0x19f514<_0x55a537;_0x19f514++){_0x297e1e=arguments[_0x19f514];for(var _0x169054 in _0x297e1e)Object[_0x372d8d(0x2c5)][_0x372d8d(0x25d)][_0x372d8d(0x1eb)](_0x297e1e,_0x169054)&&(_0xd47d37[_0x169054]=_0x297e1e[_0x169054]);}return _0xd47d37;},Q[_0x2f940b(0x4ae)](this,arguments);},xr=function(_0x5209e7,_0x5d55d4){const _0xca52f8=_0x14a8b9;var _0x230f06={};for(var _0x56407c in _0x5209e7)Object['prototype'][_0xca52f8(0x25d)][_0xca52f8(0x1eb)](_0x5209e7,_0x56407c)&&_0x5d55d4[_0xca52f8(0x34e)](_0x56407c)<0x0&&(_0x230f06[_0x56407c]=_0x5209e7[_0x56407c]);if(_0x5209e7!=null&&typeof Object[_0xca52f8(0x576)]==_0xca52f8(0x60e)){for(var _0x552b9e=0x0,_0x56407c=Object[_0xca52f8(0x576)](_0x5209e7);_0x552b9e<_0x56407c['length'];_0x552b9e++)_0x5d55d4[_0xca52f8(0x34e)](_0x56407c[_0x552b9e])<0x0&&Object['prototype'][_0xca52f8(0x53a)]['call'](_0x5209e7,_0x56407c[_0x552b9e])&&(_0x230f06[_0x56407c[_0x552b9e]]=_0x5209e7[_0x56407c[_0x552b9e]]);}return _0x230f06;},Nt=oe[_0x14a8b9(0x2e8)](function(_0x5ae545,_0x251b53){const _0x58fcc6=_0x14a8b9;var _0xa5b2d2=_0x5ae545[_0x58fcc6(0x628)],_0x56ea0f=_0x5ae545['id'],_0x113d45=_0x5ae545[_0x58fcc6(0x4d2)],_0x2f9f83=_0x5ae545[_0x58fcc6(0x29c)],_0x1ab18f=xr(_0x5ae545,[_0x58fcc6(0x628),'id',_0x58fcc6(0x4d2),_0x58fcc6(0x29c)]),_0x28182c='univerjs-icon\x20univerjs-icon-'['concat'](_0x56ea0f,'\x20')['concat'](_0x113d45||'')['trim'](),_0x57b1d1=oe[_0x58fcc6(0x403)]('_'[_0x58fcc6(0x46a)](Hr()));return Mi(_0xa5b2d2,''['concat'](_0x56ea0f),{'defIds':_0xa5b2d2[_0x58fcc6(0x375)],'idSuffix':_0x57b1d1[_0x58fcc6(0x38c)]},Q({'ref':_0x251b53,'className':_0x28182c},_0x1ab18f),_0x2f9f83);});function Mi(_0x7fd109,_0x7704f9,_0x3c4609,_0x6d2609,_0x3035d7){const _0x14952d=_0x14a8b9;return oe[_0x14952d(0x3cc)](_0x7fd109[_0x14952d(0x218)],Q(Q({'key':_0x7704f9},$r(_0x7fd109,_0x3c4609,_0x3035d7)),_0x6d2609),(jr(_0x7fd109,_0x3c4609)['children']||[])[_0x14952d(0x531)](function(_0x39191f,_0x3c7d44){const _0x5f430a=_0x14952d;return Mi(_0x39191f,''[_0x5f430a(0x46a)](_0x7704f9,'-')[_0x5f430a(0x46a)](_0x7fd109['tag'],'-')[_0x5f430a(0x46a)](_0x3c7d44),_0x3c4609,void 0x0,_0x3035d7);}));}function $r(_0x3b981b,_0x52e565,_0x1d64e9){const _0x458ae6=_0x14a8b9;var _0x285857=Q({},_0x3b981b[_0x458ae6(0x58b)]);_0x1d64e9!=null&&_0x1d64e9[_0x458ae6(0x5d2)]&&_0x285857[_0x458ae6(0x411)]===_0x458ae6(0x5d2)&&(_0x285857['fill']=_0x1d64e9['colorChannel1']);var _0x51edec=_0x52e565[_0x458ae6(0x375)];return!_0x51edec||_0x51edec[_0x458ae6(0x4a6)]===0x0||(_0x3b981b[_0x458ae6(0x218)]===_0x458ae6(0x2ff)&&_0x285857['xlink:href']&&(_0x285857[_0x458ae6(0x371)]=_0x285857[_0x458ae6(0x371)]+_0x52e565[_0x458ae6(0x2d5)]),Object[_0x458ae6(0x3ec)](_0x285857)[_0x458ae6(0x4cd)](function(_0x517f7e){const _0x25f14e=_0x458ae6;var _0x5f90d1=_0x517f7e[0x0],_0x4f279a=_0x517f7e[0x1];typeof _0x4f279a==_0x25f14e(0x4bd)&&(_0x285857[_0x5f90d1]=_0x4f279a[_0x25f14e(0x3ab)](/url\(#(.*)\)/,_0x25f14e(0x601)[_0x25f14e(0x46a)](_0x52e565['idSuffix'],')')));})),_0x285857;}function jr(_0x1b6ced,_0x125101){const _0x1ef36=_0x14a8b9;var _0x20e194,_0x2b4490=_0x125101[_0x1ef36(0x375)];return!_0x2b4490||_0x2b4490[_0x1ef36(0x4a6)]===0x0?_0x1b6ced:_0x1b6ced[_0x1ef36(0x218)]===_0x1ef36(0x352)&&(!((_0x20e194=_0x1b6ced[_0x1ef36(0x3d5)])===null||_0x20e194===void 0x0)&&_0x20e194[_0x1ef36(0x4a6)])?Q(Q({},_0x1b6ced),{'children':_0x1b6ced['children']['map'](function(_0x447e6f){const _0x15e661=_0x1ef36;return typeof _0x447e6f['attrs']['id']=='string'&&_0x2b4490&&_0x2b4490[_0x15e661(0x34e)](_0x447e6f['attrs']['id'])>-0x1?Q(Q({},_0x447e6f),{'attrs':Q(Q({},_0x447e6f[_0x15e661(0x58b)]),{'id':_0x447e6f[_0x15e661(0x58b)]['id']+_0x125101[_0x15e661(0x2d5)]})}):_0x447e6f;})}):_0x1b6ced;}function Hr(){const _0x201aa2=_0x14a8b9;return Math[_0x201aa2(0x59d)]()[_0x201aa2(0x208)](0x24)[_0x201aa2(0x248)](0x2,0x8);}Nt[_0x14a8b9(0x30b)]='UniverIcon';var Br={'tag':_0x14a8b9(0x543),'attrs':{'fill':'none','viewBox':_0x14a8b9(0x30c),'width':_0x14a8b9(0x544),'height':_0x14a8b9(0x544)},'children':[{'tag':'g','attrs':{'clipPath':_0x14a8b9(0x1f1)},'children':[{'tag':'path','attrs':{'stroke':_0x14a8b9(0x62c),'d':_0x14a8b9(0x2f4),'strokeLinecap':_0x14a8b9(0x356),'strokeLinejoin':_0x14a8b9(0x356),'strokeWidth':1.2}}]},{'tag':_0x14a8b9(0x352),'attrs':{},'children':[{'tag':_0x14a8b9(0x4ee),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x14a8b9(0x41c),'d':_0x14a8b9(0x5b1)}}]}]}],'defIds':[_0x14a8b9(0x4c3)]},Ai=oe[_0x14a8b9(0x2e8)](function(_0x3634f2,_0x114bd5){const _0x497cae=_0x14a8b9;return oe[_0x497cae(0x3cc)](Nt,Object[_0x497cae(0x1f8)]({},_0x3634f2,{'id':_0x497cae(0x377),'ref':_0x114bd5,'icon':Br}));});Ai[_0x14a8b9(0x30b)]=_0x14a8b9(0x1ff);var kr={'tag':_0x14a8b9(0x543),'attrs':{'fill':_0x14a8b9(0x4af),'viewBox':_0x14a8b9(0x2cd),'width':_0x14a8b9(0x544),'height':_0x14a8b9(0x544)},'children':[{'tag':'g','attrs':{'clipPath':_0x14a8b9(0x429)},'children':[{'tag':_0x14a8b9(0x5d7),'attrs':{'stroke':_0x14a8b9(0x62c),'d':_0x14a8b9(0x274),'strokeLinecap':_0x14a8b9(0x356),'strokeLinejoin':_0x14a8b9(0x356),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x14a8b9(0x4ee),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x14a8b9(0x5d7),'attrs':{'fill':_0x14a8b9(0x41c),'d':_0x14a8b9(0x5b1),'transform':_0x14a8b9(0x4c9)}}]}]}],'defIds':[_0x14a8b9(0x666)]},Ni=oe[_0x14a8b9(0x2e8)](function(_0x49ee87,_0x319a53){const _0x2d0c77=_0x14a8b9;return oe[_0x2d0c77(0x3cc)](Nt,Object['assign']({},_0x49ee87,{'id':_0x2d0c77(0x29e),'ref':_0x319a53,'icon':kr}));});Ni[_0x14a8b9(0x30b)]=_0x14a8b9(0x4db);function Li(_0x37523f){const _0x346ce0=_0x14a8b9;var _0x379506,_0x4b117e,_0x2fefd0='';if(typeof _0x37523f=='string'||typeof _0x37523f=='number')_0x2fefd0+=_0x37523f;else{if(typeof _0x37523f=='object'){if(Array[_0x346ce0(0x5a4)](_0x37523f)){var _0x3936dd=_0x37523f[_0x346ce0(0x4a6)];for(_0x379506=0x0;_0x379506<_0x3936dd;_0x379506++)_0x37523f[_0x379506]&&(_0x4b117e=Li(_0x37523f[_0x379506]))&&(_0x2fefd0&&(_0x2fefd0+='\x20'),_0x2fefd0+=_0x4b117e);}else{for(_0x4b117e in _0x37523f)_0x37523f[_0x4b117e]&&(_0x2fefd0&&(_0x2fefd0+='\x20'),_0x2fefd0+=_0x4b117e);}}}return _0x2fefd0;}function Wr(){const _0x2b87db=_0x14a8b9;for(var _0xa9a5c9,_0x25cf2e,_0x1c0013=0x0,_0xb0b18a='',_0x499f8a=arguments[_0x2b87db(0x4a6)];_0x1c0013<_0x499f8a;_0x1c0013++)(_0xa9a5c9=arguments[_0x1c0013])&&(_0x25cf2e=Li(_0xa9a5c9))&&(_0xb0b18a&&(_0xb0b18a+='\x20'),_0xb0b18a+=_0x25cf2e);return _0xb0b18a;}const Fr='univer-online-status-icon',Vr=_0x14a8b9(0x550),Gr=_0x14a8b9(0x64b),Yr=_0x14a8b9(0x42d),qr=_0x14a8b9(0x529),Me={'onlineStatusIcon':Fr,'onlineStatusTitle':Vr,'onlineStatus':Gr,'online':Yr,'offline':qr};function Kr(_0x44eae6){const _0x4c46b8=_0x14a8b9;switch(_0x44eae6){case K[_0x4c46b8(0x257)]:return'collabStatus.offline';case K[_0x4c46b8(0x592)]:return _0x4c46b8(0x5b0);case K[_0x4c46b8(0x4ec)]:return _0x4c46b8(0x2a0);case K[_0x4c46b8(0x2d2)]:return _0x4c46b8(0x23f);case K[_0x4c46b8(0x37e)]:case K['AWAITING_WITH_PENDING']:return _0x4c46b8(0x30e);case K[_0x4c46b8(0x20d)]:case K[_0x4c46b8(0x25f)]:return _0x4c46b8(0x2ba);}}function xi(_0x30aa9a){const _0x4c4e30=_0x14a8b9,{status$:_0x23a19b}=_0x30aa9a,_0x1ec087=ee[_0x4c4e30(0x3c6)](_0x23a19b,K[_0x4c4e30(0x2d2)]),_0x36dd71=a['useDependency'](a[_0x4c4e30(0x3de)]),_0xa50d5a=a['useDependency'](exports[_0x4c4e30(0x521)]),_0x4637e8=_0x1ec087!==K[_0x4c4e30(0x257)],_0x7d265f=_0x36dd71['t'](Kr(_0x1ec087)),_0x15abc3=Wr(Me['onlineStatus'],{[Me[_0x4c4e30(0x508)]]:_0x4637e8,[Me[_0x4c4e30(0x50e)]]:!_0x4637e8}),_0x474a21=_0x4637e8?me[_0x4c4e30(0x3f5)](Ni,{}):me[_0x4c4e30(0x3f5)](Ai,{}),_0x20e262=oe['useCallback'](()=>{_0x4637e8||_0xa50d5a['reconnect']();},[_0x4637e8,_0xa50d5a]);function _0x1994d1(){const _0x3d7ddc=_0x4c4e30;return me[_0x3d7ddc(0x678)]('div',{'className':_0x15abc3,'onClick':_0x20e262,'children':[me[_0x3d7ddc(0x3f5)](_0x3d7ddc(0x4fa),{'className':Me['onlineStatusIcon'],'children':_0x474a21}),me[_0x3d7ddc(0x3f5)]('div',{'className':Me['onlineStatusTitle'],'children':_0x7d265f})]});}return _0x4637e8?_0x1994d1():me[_0x4c4e30(0x3f5)](Ie[_0x4c4e30(0x3cd)],{'title':_0x36dd71['t']('collab-client.tooltip.reconnect'),'children':_0x1994d1()});}var zr=Object[_0x14a8b9(0x4ed)],Xr=Object['getOwnPropertyDescriptor'],Jr=(_0x2ebee2,_0x3e2732,_0x5c817c,_0xc7d287)=>{for(var _0x4e21e7=_0xc7d287>0x1?void 0x0:_0xc7d287?Xr(_0x3e2732,_0x5c817c):_0x3e2732,_0x1205ae=_0x2ebee2['length']-0x1,_0x28e25e;_0x1205ae>=0x0;_0x1205ae--)(_0x28e25e=_0x2ebee2[_0x1205ae])&&(_0x4e21e7=(_0xc7d287?_0x28e25e(_0x3e2732,_0x5c817c,_0x4e21e7):_0x28e25e(_0x4e21e7))||_0x4e21e7);return _0xc7d287&&_0x4e21e7&&zr(_0x3e2732,_0x5c817c,_0x4e21e7),_0x4e21e7;},je=(_0x4a4b49,_0x3a702c)=>(_0x155047,_0x3c029b)=>_0x3a702c(_0x155047,_0x3c029b,_0x4a4b49);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x14a8b9(0x4d8)]{constructor(_0x324a7c,_0x9a3dae,_0x2f2471,_0x2ddefc){const _0x1b5212=_0x14a8b9;super(),I(this,_0x1b5212(0x59f),new A['BehaviorSubject'](K[_0x1b5212(0x2d2)])),(this['_univerInstanceService']=_0x324a7c,this[_0x1b5212(0x20e)]=_0x9a3dae,this[_0x1b5212(0x5a5)]=_0x2f2471,this[_0x1b5212(0x581)]=_0x2ddefc,this[_0x1b5212(0x55e)](),this[_0x1b5212(0x4a5)]());}[_0x14a8b9(0x4a5)](){const _0x2949dd=_0x14a8b9;this[_0x2949dd(0x622)](this[_0x2949dd(0x564)]['focused$'][_0x2949dd(0x4e7)](A['switchMap'](()=>{const _0x54b721=_0x2949dd,_0x3edbae=this[_0x54b721(0x564)][_0x54b721(0x52b)]();return _0x3edbae?this[_0x54b721(0x581)]['getCollabEntity$'](_0x3edbae[_0x54b721(0x63f)]()):A['of'](null);}),A[_0x2949dd(0x644)](_0x14167f=>_0x14167f?_0x14167f[_0x2949dd(0x5da)]:A['of'](K[_0x2949dd(0x2d2)])))[_0x2949dd(0x32b)](_0x32bb2b=>{const _0x38ddd4=_0x2949dd;this['_status$'][_0x38ddd4(0x269)](_0x32bb2b);}));}[_0x14a8b9(0x55e)](){const _0x41ce59=_0x14a8b9;this['disposeWithMe'](this[_0x41ce59(0x20e)][_0x41ce59(0x681)](ee[_0x41ce59(0x4f0)][_0x41ce59(0x238)],()=>a['connectInjector'](Zr({'status$':this[_0x41ce59(0x59f)][_0x41ce59(0x28b)]()}),this[_0x41ce59(0x5a5)])));}},exports[_0x14a8b9(0x69d)]=Jr([je(0x0,a[_0x14a8b9(0x2e5)]),je(0x1,ee['IUIPartsService']),je(0x2,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),je(0x3,a[_0x14a8b9(0x1e2)](exports[_0x14a8b9(0x24d)]))],exports[_0x14a8b9(0x69d)]);function Zr(_0x35466c){const {status$:_0x2ae089}=_0x35466c;return function(){return me['jsx'](xi,{'status$':_0x2ae089});};}const Lt=a[_0x14a8b9(0x263)](_0x14a8b9(0x5f0));var Qr=Object[_0x14a8b9(0x4ed)],es=Object['getOwnPropertyDescriptor'],ts=(_0x5ea233,_0x5793c8,_0x467cd2,_0xf74175)=>{for(var _0xe6abf9=_0xf74175>0x1?void 0x0:_0xf74175?es(_0x5793c8,_0x467cd2):_0x5793c8,_0x38284c=_0x5ea233['length']-0x1,_0x234478;_0x38284c>=0x0;_0x38284c--)(_0x234478=_0x5ea233[_0x38284c])&&(_0xe6abf9=(_0xf74175?_0x234478(_0x5793c8,_0x467cd2,_0xe6abf9):_0x234478(_0xe6abf9))||_0xe6abf9);return _0xf74175&&_0xe6abf9&&Qr(_0x5793c8,_0x467cd2,_0xe6abf9),_0xe6abf9;},Te=(_0x4e2427,_0x19ebff)=>(_0xabd373,_0x508afc)=>_0x19ebff(_0xabd373,_0x508afc,_0x4e2427);exports[_0x14a8b9(0x5e4)]=class extends a[_0x14a8b9(0x51d)]{constructor(_0x5057ae,_0x98f2c4,_0x5beb91,_0x4a2ba1,_0x5eb6be,_0x2c3c3d){const _0x3b7f5b=_0x14a8b9;super(),this[_0x3b7f5b(0x420)]=_0x5057ae,this[_0x3b7f5b(0x618)]=_0x98f2c4,this[_0x3b7f5b(0x54b)]=_0x5beb91,this[_0x3b7f5b(0x59a)]=_0x4a2ba1,this[_0x3b7f5b(0x3e4)]=_0x5eb6be,_0x2c3c3d?_0x2c3c3d==null||_0x2c3c3d['whenReady']()['then'](()=>this[_0x3b7f5b(0x68d)]()):(this[_0x3b7f5b(0x618)]['debug'](_0x3b7f5b(0x479),_0x3b7f5b(0x428)),this[_0x3b7f5b(0x68d)]());}async['_init'](){const _0xf7f365=_0x14a8b9,_0x2e4e8d=this['_urlService'][_0xf7f365(0x5fe)](_0xf7f365(0x495)),_0x559ac5=this[_0xf7f365(0x420)][_0xf7f365(0x5fe)]('type');if(!_0x2e4e8d||!_0x559ac5){this[_0xf7f365(0x618)][_0xf7f365(0x29b)](_0xf7f365(0x479),_0xf7f365(0x204));return;}switch(Number(_0x559ac5)){case ie[_0xf7f365(0x2cb)]:{const _0x47d1ba=await this[_0xf7f365(0x5b5)](_0x2e4e8d);this[_0xf7f365(0x52a)](_0x47d1ba);break;}case ie['UNIVER_DOC']:{await this[_0xf7f365(0x306)](_0x2e4e8d);break;}default:{this[_0xf7f365(0x618)][_0xf7f365(0x45c)](_0xf7f365(0x479),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x14a8b9(0x52a)](_0x5a30c5){const _0x57e541=_0x14a8b9;await this[_0x57e541(0x237)](_0x5a30c5),_0x5a30c5[_0x57e541(0x258)][_0x57e541(0x4e7)](A[_0x57e541(0x32a)](this[_0x57e541(0x555)]))['subscribe'](_0x3c2b8c=>{const _0x48bab8=_0x57e541;_0x3c2b8c&&this[_0x48bab8(0x4b3)](_0x3c2b8c);}),this[_0x57e541(0x420)]['urlChange$']['pipe'](A[_0x57e541(0x32a)](this[_0x57e541(0x555)]))[_0x57e541(0x32b)](()=>this[_0x57e541(0x237)](_0x5a30c5));}['_updateURLWithCurrentState'](_0x370ead,_0x45fa21=!0x1){const _0x1e3112=_0x14a8b9,_0x3e9392=this['_urlService'][_0x1e3112(0x5fe)](_0x1e3112(0x44d));_0x370ead[_0x1e3112(0x588)]()!==_0x3e9392&&this[_0x1e3112(0x420)][_0x1e3112(0x493)](_0x1e3112(0x44d),_0x370ead[_0x1e3112(0x588)](),_0x45fa21);}async[_0x14a8b9(0x237)](_0x2a6252){const _0x331d70=_0x14a8b9;var _0x86ec02;const _0x51fcf3=this[_0x331d70(0x420)][_0x331d70(0x5fe)]('subunit');if(!_0x51fcf3||!_0x2a6252[_0x331d70(0x3f0)](_0x51fcf3)){const _0x6a32d1=_0x2a6252['getUnhiddenWorksheets']()[0x0],_0x4fb82b=_0x2a6252[_0x331d70(0x3f0)](_0x6a32d1);if(!_0x4fb82b)return;this[_0x331d70(0x4b3)](_0x4fb82b,!0x0),await this[_0x331d70(0x54b)][_0x331d70(0x533)](k[_0x331d70(0x328)]['id'],{'unitId':_0x2a6252[_0x331d70(0x63f)](),'subUnitId':_0x6a32d1});return;}((_0x86ec02=_0x2a6252[_0x331d70(0x534)]())==null?void 0x0:_0x86ec02[_0x331d70(0x588)]())!==_0x51fcf3&&await this['_commandService'][_0x331d70(0x533)](k[_0x331d70(0x328)]['id'],{'unitId':_0x2a6252['getUnitId'](),'subUnitId':_0x51fcf3});}async[_0x14a8b9(0x5b5)](_0x366357){const _0x25baae=_0x14a8b9;let _0x2f0350=0x0;const _0x100627=await this[_0x25baae(0x59a)]['loadOfflineData'](_0x366357);return _0x100627&&(_0x100627['awaitingChangeset']||_0x100627['mutations'][_0x25baae(0x4a6)]!==0x0)&&(_0x2f0350=_0x100627['rev']),_0x2f0350===0x0&&this[_0x25baae(0x618)]['debug'](_0x25baae(0x479),_0x25baae(0x455)),this['_snapshotService'][_0x25baae(0x672)](_0x366357,_0x2f0350);}async[_0x14a8b9(0x306)](_0x477551){const _0x4c3fb6=_0x14a8b9;let _0x4f2265=0x0;const _0x41bf62=await this[_0x4c3fb6(0x59a)][_0x4c3fb6(0x2cc)](_0x477551);return _0x41bf62&&(_0x41bf62[_0x4c3fb6(0x37b)]||_0x41bf62[_0x4c3fb6(0x61f)][_0x4c3fb6(0x4a6)]!==0x0)&&(_0x4f2265=_0x41bf62['rev']),_0x4f2265===0x0&&this[_0x4c3fb6(0x618)][_0x4c3fb6(0x29b)]('[DataLoaderController]',_0x4c3fb6(0x455)),this[_0x4c3fb6(0x3e4)]['loadDoc'](_0x477551,_0x4f2265);}},exports[_0x14a8b9(0x5e4)]=ts([Te(0x0,Lt),Te(0x1,a[_0x14a8b9(0x1df)]),Te(0x2,a[_0x14a8b9(0x2a7)]),Te(0x3,a[_0x14a8b9(0x1e2)](exports['LocalCacheService'])),Te(0x4,a[_0x14a8b9(0x1e2)](m[_0x14a8b9(0x2b2)])),Te(0x5,a[_0x14a8b9(0x4d1)](Gi['IRemoteInstanceService']))],exports[_0x14a8b9(0x5e4)]);var is=Object['defineProperty'],ns=Object[_0x14a8b9(0x5ee)],rs=(_0x1ac082,_0x422597,_0x15d1ab,_0x428387)=>{const _0x1876cf=_0x14a8b9;for(var _0x4272da=_0x428387>0x1?void 0x0:_0x428387?ns(_0x422597,_0x15d1ab):_0x422597,_0xabd115=_0x1ac082[_0x1876cf(0x4a6)]-0x1,_0xa55809;_0xabd115>=0x0;_0xabd115--)(_0xa55809=_0x1ac082[_0xabd115])&&(_0x4272da=(_0x428387?_0xa55809(_0x422597,_0x15d1ab,_0x4272da):_0xa55809(_0x4272da))||_0x4272da);return _0x428387&&_0x4272da&&is(_0x422597,_0x15d1ab,_0x4272da),_0x4272da;},Jt=(_0x488609,_0x159d58)=>(_0x40d46f,_0x53940e)=>_0x159d58(_0x40d46f,_0x53940e,_0x488609);const ss=_0x14a8b9(0x4a3),os=_0x14a8b9(0x339);let it=class extends a['Disposable']{constructor(_0x1b1e01,_0x322e02){const _0x517bbf=_0x14a8b9;super(),this[_0x517bbf(0x564)]=_0x1b1e01,this[_0x517bbf(0x65b)]=_0x322e02,this['_init']();}['_init'](){const _0x173459=_0x14a8b9;this[_0x173459(0x622)](this[_0x173459(0x564)]['focused$'][_0x173459(0x32b)](()=>{const _0x432b69=_0x173459;var _0x20bf15;const _0x4d9bae=this['_univerInstanceService'][_0x432b69(0x52b)]();let _0x16e739=(_0x20bf15=this[_0x432b69(0x65b)][_0x432b69(0x2dd)](ss))!=null?_0x20bf15:os;_0x4d9bae instanceof a[_0x432b69(0x3b1)]&&(_0x16e739=_0x4d9bae[_0x432b69(0x62a)]),document['title']=_0x16e739;}));}};it=rs([Jt(0x0,a[_0x14a8b9(0x2e5)]),Jt(0x1,a[_0x14a8b9(0x2fe)])],it);var as=Object['defineProperty'],cs=Object['getOwnPropertyDescriptor'],ls=(_0x4edc7f,_0x5c9127,_0xc4c073,_0x45fb21)=>{const _0x220caf=_0x14a8b9;for(var _0x496f94=_0x45fb21>0x1?void 0x0:_0x45fb21?cs(_0x5c9127,_0xc4c073):_0x5c9127,_0x2f0bf6=_0x4edc7f[_0x220caf(0x4a6)]-0x1,_0x5c377c;_0x2f0bf6>=0x0;_0x2f0bf6--)(_0x5c377c=_0x4edc7f[_0x2f0bf6])&&(_0x496f94=(_0x45fb21?_0x5c377c(_0x5c9127,_0xc4c073,_0x496f94):_0x5c377c(_0x496f94))||_0x496f94);return _0x45fb21&&_0x496f94&&as(_0x5c9127,_0xc4c073,_0x496f94),_0x496f94;},It=(_0x5d012b,_0x28a779)=>(_0x49b142,_0x3d2ef3)=>_0x28a779(_0x49b142,_0x3d2ef3,_0x5d012b);let nt=class{constructor(_0x5114ff,_0x5a3689,_0xfd39ef){const _0x4acd9a=_0x14a8b9;this['_configService']=_0x5114ff,this[_0x4acd9a(0x3d4)]=_0x5a3689,this['localeService']=_0xfd39ef,this[_0x4acd9a(0x3da)]();}[_0x14a8b9(0x3da)](){const _0x5a153e=_0x14a8b9;this[_0x5a153e(0x3d4)][_0x5a153e(0x282)]({'priority':0x1,'interceptor':(_0x2daf52,_0x2346a7)=>_0x2346a7(_0x2daf52)[_0x5a153e(0x4e7)](A[_0x5a153e(0x657)](async _0xf494ee=>{const _0xc02ca6=_0x5a153e,_0x157ef8=_0xf494ee;if(_0x157ef8['status']===0x191&&window[_0xc02ca6(0x5ce)](this[_0xc02ca6(0x320)]['t']('auth.needGotoLoginAlert'))){const _0x387a82=window[_0xc02ca6(0x466)](window[_0xc02ca6(0x31b)]['href']);window[_0xc02ca6(0x31b)]['href']=this[_0xc02ca6(0x368)]()+'?url='+_0x387a82;}return _0x157ef8;}))});}[_0x14a8b9(0x368)](){const _0x2939d8=_0x14a8b9;var _0x1d89e5,_0x953757;const _0x488eb4=this['_configService'][_0x2939d8(0x2dd)](Ci),_0x5810c5=this[_0x2939d8(0x65b)]['getConfig'](Z);return(_0x953757=(_0x1d89e5=_0x5810c5==null?void 0x0:_0x5810c5['loginUrlKey'])!=null?_0x1d89e5:_0x488eb4)!=null?_0x953757:nn;}};nt=ls([It(0x0,a['IConfigService']),It(0x1,a[_0x14a8b9(0x1e2)](z[_0x14a8b9(0x1fe)])),It(0x2,a[_0x14a8b9(0x1e2)](a['LocaleService']))],nt);var hs=Object[_0x14a8b9(0x4ed)],_s=Object[_0x14a8b9(0x5ee)],us=(_0x43e38b,_0x46809e,_0x21c76f,_0x447d29)=>{for(var _0x231c4b=_0x447d29>0x1?void 0x0:_0x447d29?_s(_0x46809e,_0x21c76f):_0x46809e,_0x77d325=_0x43e38b['length']-0x1,_0x5aae44;_0x77d325>=0x0;_0x77d325--)(_0x5aae44=_0x43e38b[_0x77d325])&&(_0x231c4b=(_0x447d29?_0x5aae44(_0x46809e,_0x21c76f,_0x231c4b):_0x5aae44(_0x231c4b))||_0x231c4b);return _0x447d29&&_0x231c4b&&hs(_0x46809e,_0x21c76f,_0x231c4b),_0x231c4b;},Zt=(_0x522d83,_0x41a9a9)=>(_0x3e20cc,_0x8eeb42)=>_0x41a9a9(_0x3e20cc,_0x8eeb42,_0x522d83);const xt=_0x14a8b9(0x4a2),ds=_0x14a8b9(0x4fe);exports[_0x14a8b9(0x547)]=class extends a[_0x14a8b9(0x4d8)]{constructor(_0x860b0d,_0x53f274){const _0x279c73=_0x14a8b9;super(),this[_0x279c73(0x434)]=_0x860b0d,this['_configService']=_0x53f274,this[_0x279c73(0x540)]();}['_initMergeInterceptor'](){const _0x27dd08=_0x14a8b9,_0xd07a1f=this;this[_0x27dd08(0x622)](this[_0x27dd08(0x434)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':z[_0x27dd08(0x297)]({'isMatch'(_0x29f9ce){const _0x4940ff=_0x27dd08;var _0x25a5c0;if(_0x29f9ce[_0x4940ff(0x3ed)]==='POST'&&((_0x25a5c0=_0x29f9ce[_0x4940ff(0x261)])!=null&&_0x25a5c0[_0x4940ff(0x5d9)])){const {objectID:_0x468765,objectType:_0xf317}=_0x29f9ce[_0x4940ff(0x261)][_0x4940ff(0x5d9)]||{};if(!_0x468765||_0xf317===void 0x0)return!0x1;const _0x39da65=_0xd07a1f[_0x4940ff(0x3bd)]()+'/'+_0xf317+'/object/'+_0x468765+_0x4940ff(0x4c6);if(_0x29f9ce['url']===_0x39da65)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5b73a0){const _0x6e63a8=_0x27dd08;var _0x59c079;return(_0x59c079=_0x5b73a0[_0x6e63a8(0x261)])==null?void 0x0:_0x59c079[_0x6e63a8(0x5d9)];},'mergeParamsToRequest'(_0x22b6f6,_0x461adf){const _0x44e57e=_0x27dd08,_0x1f15c4=_0xd07a1f[_0x44e57e(0x3bd)]()+'/-/object/-/batch_allowed',_0x4a647b=_0x22b6f6[_0x44e57e(0x39c)]((_0x509fca,_0x59d975)=>{const _0x30bdab=_0x44e57e,{unitID:_0x88aa34,objectID:_0x36f374,objectType:_0x55f764,actions:_0x391bd9}=_0x59d975;return _0x509fca[_0x88aa34]||(_0x509fca[_0x88aa34]={}),_0x509fca[_0x88aa34][_0x36f374]||(_0x509fca[_0x88aa34][_0x36f374]={'objectID':_0x36f374,'objectType':_0x55f764,'actions':[]}),_0x509fca[_0x88aa34][_0x36f374]['actions'][_0x30bdab(0x5a8)](..._0x391bd9),_0x509fca;},{}),_0x294e33=[];for(const _0x490c9f in _0x4a647b)for(const _0x53f150 in _0x4a647b[_0x490c9f]){const {actions:_0x1c12ab,objectType:_0xa4d4b2}=_0x4a647b[_0x490c9f][_0x53f150],_0x885b55=[...new Set(_0x1c12ab)];_0x294e33[_0x44e57e(0x5a8)]({'unitID':_0x490c9f,'objectID':_0x53f150,'objectType':_0xa4d4b2,'actions':_0x885b55});}return new z['HTTPRequest']('POST',_0x1f15c4,{'headers':_0x461adf[_0x44e57e(0x46b)],'withCredentials':_0x461adf[_0x44e57e(0x3a0)],'responseType':_0x461adf[_0x44e57e(0x4f7)],'body':{'requests':_0x294e33}});}},{'distributeResult'(_0x2a586e,_0xd06211){const _0x3cd2b6=_0x27dd08,{objectActions:_0x2dc5a3}=_0x2a586e;return _0xd06211[_0x3cd2b6(0x531)](_0x32efcb=>{const _0x503f93=_0x3cd2b6,{unitID:_0x662040,objectID:_0x5a5894,actions:_0x27ba7e}=_0x32efcb,_0x2f1d00=_0x2dc5a3[_0x503f93(0x494)](_0x4ac392=>_0x4ac392[_0x503f93(0x5b7)]===_0x662040&&_0x4ac392[_0x503f93(0x55a)]===_0x5a5894),_0x54b5ef=_0x27ba7e[_0x503f93(0x531)](_0x418814=>_0x2f1d00==null?void 0x0:_0x2f1d00[_0x503f93(0x421)][_0x503f93(0x494)](_0x29ab0f=>_0x29ab0f[_0x503f93(0x4e9)]===_0x418814))['filter'](_0x565dfe=>!!_0x565dfe);return{'config':_0x32efcb,'result':{'actions':_0x54b5ef,'error':_0x2a586e[_0x503f93(0x45c)]}};});}})}));}[_0x14a8b9(0x3bd)](){const _0x4965fd=_0x14a8b9;var _0x59d7bd,_0x321c3e;const _0x214f2e=this[_0x4965fd(0x65b)]['getConfig'](xt),_0x4a186e=this[_0x4965fd(0x65b)][_0x4965fd(0x2dd)](Z);return(_0x321c3e=(_0x59d7bd=_0x4a186e==null?void 0x0:_0x4a186e['authzUrl'])!=null?_0x59d7bd:_0x214f2e)!=null?_0x321c3e:ds;}async[_0x14a8b9(0x632)](_0x18afc5){const _0x3d6405=_0x14a8b9,_0x3d4018=this[_0x3d6405(0x3bd)]()+'/'+_0x18afc5[_0x3d6405(0x4fc)]+_0x3d6405(0x3a6);return(await this[_0x3d6405(0x434)][_0x3d6405(0x374)](_0x3d4018,{'body':_0x18afc5}))[_0x3d6405(0x5d9)][_0x3d6405(0x55a)]||'';}async[_0x14a8b9(0x44a)](_0x4c3ca5){const _0x127c37=_0x14a8b9,_0x5b311b=this['_getAPIPrefixPath']()+_0x127c37(0x426);return(await this[_0x127c37(0x434)][_0x127c37(0x374)](_0x5b311b,{'body':_0x4c3ca5}))['body'][_0x127c37(0x524)];}async['update'](_0x15980d){const _0x52b086=_0x14a8b9,_0x4a126c=this[_0x52b086(0x3bd)]()+'/'+_0x15980d[_0x52b086(0x4fc)]+_0x52b086(0x5e7)+_0x15980d[_0x52b086(0x55a)];await this[_0x52b086(0x434)][_0x52b086(0x2db)](_0x4a126c,{'body':_0x15980d});}async[_0x14a8b9(0x303)](_0x5ea6c1){const _0x239bf2=_0x14a8b9,_0x55d6b5=this[_0x239bf2(0x3bd)]()+'/'+_0x5ea6c1['objectType']+'/object/'+_0x5ea6c1[_0x239bf2(0x55a)]+'/allowed';return(await this[_0x239bf2(0x434)][_0x239bf2(0x374)](_0x55d6b5,{'body':_0x5ea6c1}))[_0x239bf2(0x5d9)][_0x239bf2(0x421)];}async[_0x14a8b9(0x281)](_0x1d55ad){const _0x4899d9=_0x14a8b9,_0x4e5bf2=this[_0x4899d9(0x3bd)]()+_0x4899d9(0x278);return(await this['_HTTPService'][_0x4899d9(0x374)](_0x4e5bf2,{'body':{'requests':_0x1d55ad}}))[_0x4899d9(0x5d9)][_0x4899d9(0x5b4)];}async[_0x14a8b9(0x562)](_0x1a4246){const _0x53ef5c=_0x14a8b9,_0x35c61f=this['_getAPIPrefixPath']()+'/'+_0x1a4246[_0x53ef5c(0x4fc)]+_0x53ef5c(0x647),_0x205b6c=await this['_HTTPService']['post'](_0x35c61f,{'body':_0x1a4246});return{'roles':_0x205b6c[_0x53ef5c(0x5d9)][_0x53ef5c(0x207)],'actions':_0x205b6c[_0x53ef5c(0x5d9)][_0x53ef5c(0x421)]};}async[_0x14a8b9(0x57b)](_0x29dc33){const _0x17be35=_0x14a8b9,_0x19e4dd=this[_0x17be35(0x3bd)]()+_0x17be35(0x273);await this[_0x17be35(0x434)][_0x17be35(0x5b6)](_0x19e4dd,{'params':{'collaboratorID':_0x29dc33['collaboratorID'],'objectID':_0x29dc33[_0x17be35(0x55a)],'unitID':_0x29dc33['unitID']}});}async[_0x14a8b9(0x5d1)](_0x73d0e2){const _0x585e4a=_0x14a8b9,_0x17f88a=this[_0x585e4a(0x3bd)]()+_0x585e4a(0x273);await this['_HTTPService'][_0x585e4a(0x2f8)](_0x17f88a,{'body':_0x73d0e2});}async['createCollaborator'](_0x5b5822){const _0x12417a=_0x14a8b9,_0xaa91f4=this[_0x12417a(0x3bd)]()+_0x12417a(0x273);await this[_0x12417a(0x434)][_0x12417a(0x374)](_0xaa91f4,{'body':_0x5b5822});}async[_0x14a8b9(0x304)](_0x652d67){const _0x484f6f=_0x14a8b9,_0x2374b2=this[_0x484f6f(0x3bd)]()+_0x484f6f(0x273);return(await this['_HTTPService'][_0x484f6f(0x249)](_0x2374b2,{'params':{'objectID':_0x652d67[_0x484f6f(0x55a)],'unitID':_0x652d67[_0x484f6f(0x5b7)]}}))['body']['collaborators'];}async[_0x14a8b9(0x399)](_0x44f200){const _0xbca40d=_0x14a8b9,_0x564435=this['_getAPIPrefixPath']()+_0xbca40d(0x273);await this[_0xbca40d(0x434)]['put'](_0x564435,{'body':_0x44f200});}},exports[_0x14a8b9(0x547)]=us([Zt(0x0,a['Inject'](z[_0x14a8b9(0x1fe)])),Zt(0x1,a[_0x14a8b9(0x1e2)](a['IConfigService']))],exports[_0x14a8b9(0x547)]);var Be={'exports':{}};function fs(_0xa96bae){const _0x3f8911=_0x14a8b9;throw new Error(_0x3f8911(0x552)+_0xa96bae+_0x3f8911(0x425));}var ke={'exports':{}},vs=ke[_0x14a8b9(0x402)],Qt;function se(){const _0x1b3893=_0x14a8b9;return Qt||(Qt=0x1,function(_0x26cbaf,_0x59c214){(function(_0x26140d,_0xc7d5c){const _0x54d949=_0x3122;_0x26cbaf[_0x54d949(0x402)]=_0xc7d5c();}(vs,function(){var _0x3e4fba=_0x3e4fba||function(_0x151a2d,_0x1fa496){const _0x38f933=_0x3122;var _0x4b3801;if(typeof window<'u'&&window[_0x38f933(0x2f7)]&&(_0x4b3801=window['crypto']),typeof self<'u'&&self['crypto']&&(_0x4b3801=self[_0x38f933(0x2f7)]),typeof globalThis<'u'&&globalThis[_0x38f933(0x2f7)]&&(_0x4b3801=globalThis[_0x38f933(0x2f7)]),!_0x4b3801&&typeof window<'u'&&window[_0x38f933(0x347)]&&(_0x4b3801=window['msCrypto']),!_0x4b3801&&typeof mt<'u'&&mt['crypto']&&(_0x4b3801=mt[_0x38f933(0x2f7)]),!_0x4b3801&&typeof fs==_0x38f933(0x60e))try{_0x4b3801=require(_0x38f933(0x2f7));}catch{}var _0x8bc0ef=function(){const _0x32877a=_0x38f933;if(_0x4b3801){if(typeof _0x4b3801[_0x32877a(0x5a1)]==_0x32877a(0x60e))try{return _0x4b3801[_0x32877a(0x5a1)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x4b3801['randomBytes']==_0x32877a(0x60e))try{return _0x4b3801['randomBytes'](0x4)[_0x32877a(0x57e)]();}catch{}}throw new Error(_0x32877a(0x697));},_0x257fb6=Object['create']||(function(){function _0x3de004(){}return function(_0xe298f5){const _0x8bc5b2=_0x3122;var _0x43280c;return _0x3de004[_0x8bc5b2(0x2c5)]=_0xe298f5,_0x43280c=new _0x3de004(),_0x3de004[_0x8bc5b2(0x2c5)]=null,_0x43280c;};}()),_0x544f64={},_0x5a60e=_0x544f64[_0x38f933(0x31f)]={},_0x549369=_0x5a60e[_0x38f933(0x4dc)]=(function(){return{'extend':function(_0x5981ab){const _0xe71a19=_0x3122;var _0x2c53f4=_0x257fb6(this);return _0x5981ab&&_0x2c53f4[_0xe71a19(0x63b)](_0x5981ab),(!_0x2c53f4[_0xe71a19(0x25d)](_0xe71a19(0x3da))||this[_0xe71a19(0x3da)]===_0x2c53f4['init'])&&(_0x2c53f4[_0xe71a19(0x3da)]=function(){const _0x1a6013=_0xe71a19;_0x2c53f4['$super'][_0x1a6013(0x3da)][_0x1a6013(0x4ae)](this,arguments);}),_0x2c53f4[_0xe71a19(0x3da)]['prototype']=_0x2c53f4,_0x2c53f4['$super']=this,_0x2c53f4;},'create':function(){const _0x13b36f=_0x3122;var _0xff6659=this[_0x13b36f(0x29c)]();return _0xff6659[_0x13b36f(0x3da)][_0x13b36f(0x4ae)](_0xff6659,arguments),_0xff6659;},'init':function(){},'mixIn':function(_0x5a0172){const _0x554186=_0x3122;for(var _0x384a3c in _0x5a0172)_0x5a0172['hasOwnProperty'](_0x384a3c)&&(this[_0x384a3c]=_0x5a0172[_0x384a3c]);_0x5a0172['hasOwnProperty'](_0x554186(0x208))&&(this['toString']=_0x5a0172['toString']);},'clone':function(){const _0x201adf=_0x3122;return this['init'][_0x201adf(0x2c5)][_0x201adf(0x29c)](this);}};}()),_0x5ceb91=_0x5a60e[_0x38f933(0x311)]=_0x549369['extend']({'init':function(_0x5193df,_0x2edb30){const _0x1a64d0=_0x38f933;_0x5193df=this[_0x1a64d0(0x572)]=_0x5193df||[],_0x2edb30!=_0x1fa496?this['sigBytes']=_0x2edb30:this[_0x1a64d0(0x5ae)]=_0x5193df[_0x1a64d0(0x4a6)]*0x4;},'toString':function(_0x3ba34c){const _0x1642b9=_0x38f933;return(_0x3ba34c||_0x31790b)[_0x1642b9(0x659)](this);},'concat':function(_0x454a04){const _0x61647e=_0x38f933;var _0x1ff742=this['words'],_0x61dc6e=_0x454a04[_0x61647e(0x572)],_0x18f488=this[_0x61647e(0x5ae)],_0x3f7cc9=_0x454a04[_0x61647e(0x5ae)];if(this[_0x61647e(0x502)](),_0x18f488%0x4)for(var _0x535513=0x0;_0x535513<_0x3f7cc9;_0x535513++){var _0x521db9=_0x61dc6e[_0x535513>>>0x2]>>>0x18-_0x535513%0x4*0x8&0xff;_0x1ff742[_0x18f488+_0x535513>>>0x2]|=_0x521db9<<0x18-(_0x18f488+_0x535513)%0x4*0x8;}else{for(var _0x2fec45=0x0;_0x2fec45<_0x3f7cc9;_0x2fec45+=0x4)_0x1ff742[_0x18f488+_0x2fec45>>>0x2]=_0x61dc6e[_0x2fec45>>>0x2];}return this['sigBytes']+=_0x3f7cc9,this;},'clamp':function(){const _0x5c9bba=_0x38f933;var _0x24606c=this[_0x5c9bba(0x572)],_0x4ac3a8=this[_0x5c9bba(0x5ae)];_0x24606c[_0x4ac3a8>>>0x2]&=0xffffffff<<0x20-_0x4ac3a8%0x4*0x8,_0x24606c[_0x5c9bba(0x4a6)]=_0x151a2d[_0x5c9bba(0x5d0)](_0x4ac3a8/0x4);},'clone':function(){const _0x3b8abe=_0x38f933;var _0x36c5c1=_0x549369[_0x3b8abe(0x693)][_0x3b8abe(0x1eb)](this);return _0x36c5c1[_0x3b8abe(0x572)]=this[_0x3b8abe(0x572)]['slice'](0x0),_0x36c5c1;},'random':function(_0x34850a){const _0x4804dd=_0x38f933;for(var _0x485fae=[],_0x13db85=0x0;_0x13db85<_0x34850a;_0x13db85+=0x4)_0x485fae[_0x4804dd(0x5a8)](_0x8bc0ef());return new _0x5ceb91['init'](_0x485fae,_0x34850a);}}),_0x522acc=_0x544f64['enc']={},_0x31790b=_0x522acc[_0x38f933(0x21b)]={'stringify':function(_0x4a90b8){const _0x1707ab=_0x38f933;for(var _0x2dd5a9=_0x4a90b8[_0x1707ab(0x572)],_0x327db5=_0x4a90b8[_0x1707ab(0x5ae)],_0x5122ce=[],_0x328185=0x0;_0x328185<_0x327db5;_0x328185++){var _0x2ce0de=_0x2dd5a9[_0x328185>>>0x2]>>>0x18-_0x328185%0x4*0x8&0xff;_0x5122ce[_0x1707ab(0x5a8)]((_0x2ce0de>>>0x4)[_0x1707ab(0x208)](0x10)),_0x5122ce[_0x1707ab(0x5a8)]((_0x2ce0de&0xf)[_0x1707ab(0x208)](0x10));}return _0x5122ce[_0x1707ab(0x51e)]('');},'parse':function(_0x289482){const _0x5dcfd7=_0x38f933;for(var _0x3ed4a0=_0x289482[_0x5dcfd7(0x4a6)],_0x1dd9dd=[],_0x10f115=0x0;_0x10f115<_0x3ed4a0;_0x10f115+=0x2)_0x1dd9dd[_0x10f115>>>0x3]|=parseInt(_0x289482[_0x5dcfd7(0x605)](_0x10f115,0x2),0x10)<<0x18-_0x10f115%0x8*0x4;return new _0x5ceb91[(_0x5dcfd7(0x3da))](_0x1dd9dd,_0x3ed4a0/0x2);}},_0x1f5067=_0x522acc['Latin1']={'stringify':function(_0x26e3da){const _0x580262=_0x38f933;for(var _0x35f3e6=_0x26e3da[_0x580262(0x572)],_0x4b59d0=_0x26e3da['sigBytes'],_0x5722c7=[],_0x24eafe=0x0;_0x24eafe<_0x4b59d0;_0x24eafe++){var _0x25fe14=_0x35f3e6[_0x24eafe>>>0x2]>>>0x18-_0x24eafe%0x4*0x8&0xff;_0x5722c7['push'](String['fromCharCode'](_0x25fe14));}return _0x5722c7[_0x580262(0x51e)]('');},'parse':function(_0x368653){const _0xdcbd84=_0x38f933;for(var _0x5e51f3=_0x368653[_0xdcbd84(0x4a6)],_0x346eea=[],_0x13b308=0x0;_0x13b308<_0x5e51f3;_0x13b308++)_0x346eea[_0x13b308>>>0x2]|=(_0x368653['charCodeAt'](_0x13b308)&0xff)<<0x18-_0x13b308%0x4*0x8;return new _0x5ceb91[(_0xdcbd84(0x3da))](_0x346eea,_0x5e51f3);}},_0x4b0f91=_0x522acc['Utf8']={'stringify':function(_0x20567d){const _0x598c04=_0x38f933;try{return decodeURIComponent(escape(_0x1f5067[_0x598c04(0x659)](_0x20567d)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'parse':function(_0xf3a7fa){const _0x138704=_0x38f933;return _0x1f5067[_0x138704(0x26f)](unescape(encodeURIComponent(_0xf3a7fa)));}},_0x2cab2c=_0x5a60e[_0x38f933(0x437)]=_0x549369[_0x38f933(0x29c)]({'reset':function(){const _0x57d683=_0x38f933;this[_0x57d683(0x488)]=new _0x5ceb91[(_0x57d683(0x3da))](),this['_nDataBytes']=0x0;},'_append':function(_0x16b320){const _0x288fc5=_0x38f933;typeof _0x16b320==_0x288fc5(0x4bd)&&(_0x16b320=_0x4b0f91['parse'](_0x16b320)),this[_0x288fc5(0x488)]['concat'](_0x16b320),this[_0x288fc5(0x382)]+=_0x16b320[_0x288fc5(0x5ae)];},'_process':function(_0x27afbd){const _0x3f24f4=_0x38f933;var _0x3d63ea,_0x3c2bd5=this['_data'],_0x1be063=_0x3c2bd5[_0x3f24f4(0x572)],_0x2761cb=_0x3c2bd5[_0x3f24f4(0x5ae)],_0x155160=this[_0x3f24f4(0x28f)],_0x4fce12=_0x155160*0x4,_0x1000e3=_0x2761cb/_0x4fce12;_0x27afbd?_0x1000e3=_0x151a2d['ceil'](_0x1000e3):_0x1000e3=_0x151a2d['max']((_0x1000e3|0x0)-this['_minBufferSize'],0x0);var _0x421bc2=_0x1000e3*_0x155160,_0x319292=_0x151a2d[_0x3f24f4(0x64a)](_0x421bc2*0x4,_0x2761cb);if(_0x421bc2){for(var _0x194e0d=0x0;_0x194e0d<_0x421bc2;_0x194e0d+=_0x155160)this['_doProcessBlock'](_0x1be063,_0x194e0d);_0x3d63ea=_0x1be063[_0x3f24f4(0x58a)](0x0,_0x421bc2),_0x3c2bd5['sigBytes']-=_0x319292;}return new _0x5ceb91[(_0x3f24f4(0x3da))](_0x3d63ea,_0x319292);},'clone':function(){const _0xa1ad06=_0x38f933;var _0x4e5888=_0x549369['clone'][_0xa1ad06(0x1eb)](this);return _0x4e5888[_0xa1ad06(0x488)]=this[_0xa1ad06(0x488)]['clone'](),_0x4e5888;},'_minBufferSize':0x0});_0x5a60e[_0x38f933(0x3f7)]=_0x2cab2c[_0x38f933(0x29c)]({'cfg':_0x549369['extend'](),'init':function(_0x5b6050){const _0x41a88d=_0x38f933;this[_0x41a88d(0x5f4)]=this[_0x41a88d(0x5f4)]['extend'](_0x5b6050),this[_0x41a88d(0x33b)]();},'reset':function(){const _0x9b252c=_0x38f933;_0x2cab2c[_0x9b252c(0x33b)][_0x9b252c(0x1eb)](this),this['_doReset']();},'update':function(_0x1d05a2){const _0x120f8b=_0x38f933;return this[_0x120f8b(0x49b)](_0x1d05a2),this['_process'](),this;},'finalize':function(_0x201f2c){const _0x5f2cd5=_0x38f933;_0x201f2c&&this['_append'](_0x201f2c);var _0x4f7519=this[_0x5f2cd5(0x62f)]();return _0x4f7519;},'blockSize':0x10,'_createHelper':function(_0x15da57){return function(_0x41a8e5,_0x24e9b0){return new _0x15da57['init'](_0x24e9b0)['finalize'](_0x41a8e5);};},'_createHmacHelper':function(_0x2cb315){return function(_0xaacd96,_0x26709f){const _0x5325c0=_0x3122;return new _0x490e38[(_0x5325c0(0x3bb))][(_0x5325c0(0x3da))](_0x2cb315,_0x26709f)['finalize'](_0xaacd96);};}});var _0x490e38=_0x544f64[_0x38f933(0x48e)]={};return _0x544f64;}(Math);return _0x3e4fba;}));}(ke)),ke[_0x1b3893(0x402)];}var We={'exports':{}},ps=We['exports'],ei;function $i(){const _0x364a61=_0x14a8b9;return ei||(ei=0x1,function(_0x192ab6,_0x50377c){(function(_0x2b7e40,_0x7a61b3){const _0x374c8b=_0x3122;_0x192ab6[_0x374c8b(0x402)]=_0x7a61b3(se());}(ps,function(_0x47359f){return(function(){const _0x469786=_0x3122;var _0x31c26a=_0x47359f,_0x3263b4=_0x31c26a['lib'],_0x184905=_0x3263b4[_0x469786(0x311)],_0x54190b=_0x31c26a[_0x469786(0x5f9)];_0x54190b['Base64']={'stringify':function(_0x492630){const _0x5aeba2=_0x469786;var _0x5d4066=_0x492630['words'],_0x24b80c=_0x492630[_0x5aeba2(0x5ae)],_0x526479=this[_0x5aeba2(0x4e4)];_0x492630[_0x5aeba2(0x502)]();for(var _0x42fcf9=[],_0x49e116=0x0;_0x49e116<_0x24b80c;_0x49e116+=0x3)for(var _0xa90fc3=_0x5d4066[_0x49e116>>>0x2]>>>0x18-_0x49e116%0x4*0x8&0xff,_0xd56175=_0x5d4066[_0x49e116+0x1>>>0x2]>>>0x18-(_0x49e116+0x1)%0x4*0x8&0xff,_0x3c681e=_0x5d4066[_0x49e116+0x2>>>0x2]>>>0x18-(_0x49e116+0x2)%0x4*0x8&0xff,_0x396bfa=_0xa90fc3<<0x10|_0xd56175<<0x8|_0x3c681e,_0x40ed4e=0x0;_0x40ed4e<0x4&&_0x49e116+_0x40ed4e*0.75<_0x24b80c;_0x40ed4e++)_0x42fcf9[_0x5aeba2(0x5a8)](_0x526479[_0x5aeba2(0x333)](_0x396bfa>>>0x6*(0x3-_0x40ed4e)&0x3f));var _0x2aa86f=_0x526479[_0x5aeba2(0x333)](0x40);if(_0x2aa86f){for(;_0x42fcf9[_0x5aeba2(0x4a6)]%0x4;)_0x42fcf9[_0x5aeba2(0x5a8)](_0x2aa86f);}return _0x42fcf9[_0x5aeba2(0x51e)]('');},'parse':function(_0x4f25da){const _0x3695a8=_0x469786;var _0xee120f=_0x4f25da['length'],_0x315b79=this['_map'],_0x5bdea9=this[_0x3695a8(0x385)];if(!_0x5bdea9){_0x5bdea9=this['_reverseMap']=[];for(var _0x1738a9=0x0;_0x1738a9<_0x315b79[_0x3695a8(0x4a6)];_0x1738a9++)_0x5bdea9[_0x315b79[_0x3695a8(0x4d0)](_0x1738a9)]=_0x1738a9;}var _0x5f9889=_0x315b79[_0x3695a8(0x333)](0x40);if(_0x5f9889){var _0x324a60=_0x4f25da['indexOf'](_0x5f9889);_0x324a60!==-0x1&&(_0xee120f=_0x324a60);}return _0x1fc185(_0x4f25da,_0xee120f,_0x5bdea9);},'_map':_0x469786(0x3ff)};function _0x1fc185(_0x398d08,_0x3f0f47,_0x5005dc){const _0x251e3c=_0x469786;for(var _0x28f31c=[],_0xa7f910=0x0,_0x2512be=0x0;_0x2512be<_0x3f0f47;_0x2512be++)if(_0x2512be%0x4){var _0x502e7c=_0x5005dc[_0x398d08[_0x251e3c(0x4d0)](_0x2512be-0x1)]<<_0x2512be%0x4*0x2,_0x4675fe=_0x5005dc[_0x398d08['charCodeAt'](_0x2512be)]>>>0x6-_0x2512be%0x4*0x2,_0x30ffcd=_0x502e7c|_0x4675fe;_0x28f31c[_0xa7f910>>>0x2]|=_0x30ffcd<<0x18-_0xa7f910%0x4*0x8,_0xa7f910++;}return _0x184905['create'](_0x28f31c,_0xa7f910);}}()),_0x47359f['enc']['Base64'];}));}(We)),We[_0x364a61(0x402)];}var Fe={'exports':{}},Ss=Fe[_0x14a8b9(0x402)],ti;function ms(){return ti||(ti=0x1,function(_0x553dd5,_0x58c777){(function(_0x5ec0ee,_0x2e3ffb){const _0x588b06=_0x3122;_0x553dd5[_0x588b06(0x402)]=_0x2e3ffb(se());}(Ss,function(_0x13dc76){const _0x4c4b44=_0x3122;return function(_0x39560a){const _0x58677a=_0x3122;var _0xa80f5=_0x13dc76,_0x832042=_0xa80f5[_0x58677a(0x31f)],_0x2d417f=_0x832042[_0x58677a(0x311)],_0x4b8f8b=_0x832042[_0x58677a(0x3f7)],_0x404fc4=_0xa80f5[_0x58677a(0x48e)],_0x1ab041=[];(function(){const _0x5716f4=_0x58677a;for(var _0x360d87=0x0;_0x360d87<0x40;_0x360d87++)_0x1ab041[_0x360d87]=_0x39560a[_0x5716f4(0x2af)](_0x39560a[_0x5716f4(0x464)](_0x360d87+0x1))*0x100000000|0x0;}());var _0x1e09e9=_0x404fc4[_0x58677a(0x674)]=_0x4b8f8b[_0x58677a(0x29c)]({'_doReset':function(){const _0x1bf628=_0x58677a;this[_0x1bf628(0x458)]=new _0x2d417f['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0xb4839b,_0x5d8185){const _0x539af3=_0x58677a;for(var _0x19b3a6=0x0;_0x19b3a6<0x10;_0x19b3a6++){var _0x56e041=_0x5d8185+_0x19b3a6,_0x1fa3d3=_0xb4839b[_0x56e041];_0xb4839b[_0x56e041]=(_0x1fa3d3<<0x8|_0x1fa3d3>>>0x18)&0xff00ff|(_0x1fa3d3<<0x18|_0x1fa3d3>>>0x8)&0xff00ff00;}var _0x5d9bc0=this[_0x539af3(0x458)]['words'],_0x3d53c4=_0xb4839b[_0x5d8185+0x0],_0x1a6544=_0xb4839b[_0x5d8185+0x1],_0x53ee3e=_0xb4839b[_0x5d8185+0x2],_0xf3e0ac=_0xb4839b[_0x5d8185+0x3],_0x115a12=_0xb4839b[_0x5d8185+0x4],_0x361731=_0xb4839b[_0x5d8185+0x5],_0x4ac3f6=_0xb4839b[_0x5d8185+0x6],_0x5db871=_0xb4839b[_0x5d8185+0x7],_0x445955=_0xb4839b[_0x5d8185+0x8],_0xfd273b=_0xb4839b[_0x5d8185+0x9],_0x546816=_0xb4839b[_0x5d8185+0xa],_0x167ca7=_0xb4839b[_0x5d8185+0xb],_0x5ba8b0=_0xb4839b[_0x5d8185+0xc],_0x1b798a=_0xb4839b[_0x5d8185+0xd],_0xa1c260=_0xb4839b[_0x5d8185+0xe],_0x2c6ce4=_0xb4839b[_0x5d8185+0xf],_0x1aacc2=_0x5d9bc0[0x0],_0x18fdf2=_0x5d9bc0[0x1],_0x48a16c=_0x5d9bc0[0x2],_0x16fd20=_0x5d9bc0[0x3];_0x1aacc2=_0xef338f(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x3d53c4,0x7,_0x1ab041[0x0]),_0x16fd20=_0xef338f(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x1a6544,0xc,_0x1ab041[0x1]),_0x48a16c=_0xef338f(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x53ee3e,0x11,_0x1ab041[0x2]),_0x18fdf2=_0xef338f(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0xf3e0ac,0x16,_0x1ab041[0x3]),_0x1aacc2=_0xef338f(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x115a12,0x7,_0x1ab041[0x4]),_0x16fd20=_0xef338f(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x361731,0xc,_0x1ab041[0x5]),_0x48a16c=_0xef338f(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x4ac3f6,0x11,_0x1ab041[0x6]),_0x18fdf2=_0xef338f(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x5db871,0x16,_0x1ab041[0x7]),_0x1aacc2=_0xef338f(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x445955,0x7,_0x1ab041[0x8]),_0x16fd20=_0xef338f(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0xfd273b,0xc,_0x1ab041[0x9]),_0x48a16c=_0xef338f(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x546816,0x11,_0x1ab041[0xa]),_0x18fdf2=_0xef338f(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x167ca7,0x16,_0x1ab041[0xb]),_0x1aacc2=_0xef338f(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x5ba8b0,0x7,_0x1ab041[0xc]),_0x16fd20=_0xef338f(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x1b798a,0xc,_0x1ab041[0xd]),_0x48a16c=_0xef338f(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0xa1c260,0x11,_0x1ab041[0xe]),_0x18fdf2=_0xef338f(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x2c6ce4,0x16,_0x1ab041[0xf]),_0x1aacc2=_0x15c239(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x1a6544,0x5,_0x1ab041[0x10]),_0x16fd20=_0x15c239(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x4ac3f6,0x9,_0x1ab041[0x11]),_0x48a16c=_0x15c239(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x167ca7,0xe,_0x1ab041[0x12]),_0x18fdf2=_0x15c239(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x3d53c4,0x14,_0x1ab041[0x13]),_0x1aacc2=_0x15c239(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x361731,0x5,_0x1ab041[0x14]),_0x16fd20=_0x15c239(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x546816,0x9,_0x1ab041[0x15]),_0x48a16c=_0x15c239(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x2c6ce4,0xe,_0x1ab041[0x16]),_0x18fdf2=_0x15c239(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x115a12,0x14,_0x1ab041[0x17]),_0x1aacc2=_0x15c239(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0xfd273b,0x5,_0x1ab041[0x18]),_0x16fd20=_0x15c239(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0xa1c260,0x9,_0x1ab041[0x19]),_0x48a16c=_0x15c239(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0xf3e0ac,0xe,_0x1ab041[0x1a]),_0x18fdf2=_0x15c239(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x445955,0x14,_0x1ab041[0x1b]),_0x1aacc2=_0x15c239(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x1b798a,0x5,_0x1ab041[0x1c]),_0x16fd20=_0x15c239(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x53ee3e,0x9,_0x1ab041[0x1d]),_0x48a16c=_0x15c239(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x5db871,0xe,_0x1ab041[0x1e]),_0x18fdf2=_0x15c239(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x5ba8b0,0x14,_0x1ab041[0x1f]),_0x1aacc2=_0x412591(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x361731,0x4,_0x1ab041[0x20]),_0x16fd20=_0x412591(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x445955,0xb,_0x1ab041[0x21]),_0x48a16c=_0x412591(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x167ca7,0x10,_0x1ab041[0x22]),_0x18fdf2=_0x412591(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0xa1c260,0x17,_0x1ab041[0x23]),_0x1aacc2=_0x412591(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x1a6544,0x4,_0x1ab041[0x24]),_0x16fd20=_0x412591(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x115a12,0xb,_0x1ab041[0x25]),_0x48a16c=_0x412591(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x5db871,0x10,_0x1ab041[0x26]),_0x18fdf2=_0x412591(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x546816,0x17,_0x1ab041[0x27]),_0x1aacc2=_0x412591(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x1b798a,0x4,_0x1ab041[0x28]),_0x16fd20=_0x412591(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x3d53c4,0xb,_0x1ab041[0x29]),_0x48a16c=_0x412591(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0xf3e0ac,0x10,_0x1ab041[0x2a]),_0x18fdf2=_0x412591(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x4ac3f6,0x17,_0x1ab041[0x2b]),_0x1aacc2=_0x412591(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0xfd273b,0x4,_0x1ab041[0x2c]),_0x16fd20=_0x412591(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x5ba8b0,0xb,_0x1ab041[0x2d]),_0x48a16c=_0x412591(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x2c6ce4,0x10,_0x1ab041[0x2e]),_0x18fdf2=_0x412591(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x53ee3e,0x17,_0x1ab041[0x2f]),_0x1aacc2=_0x49e842(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x3d53c4,0x6,_0x1ab041[0x30]),_0x16fd20=_0x49e842(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x5db871,0xa,_0x1ab041[0x31]),_0x48a16c=_0x49e842(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0xa1c260,0xf,_0x1ab041[0x32]),_0x18fdf2=_0x49e842(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x361731,0x15,_0x1ab041[0x33]),_0x1aacc2=_0x49e842(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x5ba8b0,0x6,_0x1ab041[0x34]),_0x16fd20=_0x49e842(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0xf3e0ac,0xa,_0x1ab041[0x35]),_0x48a16c=_0x49e842(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x546816,0xf,_0x1ab041[0x36]),_0x18fdf2=_0x49e842(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x1a6544,0x15,_0x1ab041[0x37]),_0x1aacc2=_0x49e842(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x445955,0x6,_0x1ab041[0x38]),_0x16fd20=_0x49e842(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x2c6ce4,0xa,_0x1ab041[0x39]),_0x48a16c=_0x49e842(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x4ac3f6,0xf,_0x1ab041[0x3a]),_0x18fdf2=_0x49e842(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0x1b798a,0x15,_0x1ab041[0x3b]),_0x1aacc2=_0x49e842(_0x1aacc2,_0x18fdf2,_0x48a16c,_0x16fd20,_0x115a12,0x6,_0x1ab041[0x3c]),_0x16fd20=_0x49e842(_0x16fd20,_0x1aacc2,_0x18fdf2,_0x48a16c,_0x167ca7,0xa,_0x1ab041[0x3d]),_0x48a16c=_0x49e842(_0x48a16c,_0x16fd20,_0x1aacc2,_0x18fdf2,_0x53ee3e,0xf,_0x1ab041[0x3e]),_0x18fdf2=_0x49e842(_0x18fdf2,_0x48a16c,_0x16fd20,_0x1aacc2,_0xfd273b,0x15,_0x1ab041[0x3f]),_0x5d9bc0[0x0]=_0x5d9bc0[0x0]+_0x1aacc2|0x0,_0x5d9bc0[0x1]=_0x5d9bc0[0x1]+_0x18fdf2|0x0,_0x5d9bc0[0x2]=_0x5d9bc0[0x2]+_0x48a16c|0x0,_0x5d9bc0[0x3]=_0x5d9bc0[0x3]+_0x16fd20|0x0;},'_doFinalize':function(){const _0x41d7d4=_0x58677a;var _0x12abf3=this[_0x41d7d4(0x488)],_0x4445dd=_0x12abf3[_0x41d7d4(0x572)],_0x1a5acc=this[_0x41d7d4(0x382)]*0x8,_0x55f523=_0x12abf3[_0x41d7d4(0x5ae)]*0x8;_0x4445dd[_0x55f523>>>0x5]|=0x80<<0x18-_0x55f523%0x20;var _0x3b42e0=_0x39560a[_0x41d7d4(0x48b)](_0x1a5acc/0x100000000),_0x3e821c=_0x1a5acc;_0x4445dd[(_0x55f523+0x40>>>0x9<<0x4)+0xf]=(_0x3b42e0<<0x8|_0x3b42e0>>>0x18)&0xff00ff|(_0x3b42e0<<0x18|_0x3b42e0>>>0x8)&0xff00ff00,_0x4445dd[(_0x55f523+0x40>>>0x9<<0x4)+0xe]=(_0x3e821c<<0x8|_0x3e821c>>>0x18)&0xff00ff|(_0x3e821c<<0x18|_0x3e821c>>>0x8)&0xff00ff00,_0x12abf3[_0x41d7d4(0x5ae)]=(_0x4445dd[_0x41d7d4(0x4a6)]+0x1)*0x4,this[_0x41d7d4(0x5bb)]();for(var _0x5987b9=this[_0x41d7d4(0x458)],_0x4312ba=_0x5987b9[_0x41d7d4(0x572)],_0x16a892=0x0;_0x16a892<0x4;_0x16a892++){var _0x4e8e46=_0x4312ba[_0x16a892];_0x4312ba[_0x16a892]=(_0x4e8e46<<0x8|_0x4e8e46>>>0x18)&0xff00ff|(_0x4e8e46<<0x18|_0x4e8e46>>>0x8)&0xff00ff00;}return _0x5987b9;},'clone':function(){const _0x4ffce0=_0x58677a;var _0x5e9940=_0x4b8f8b[_0x4ffce0(0x693)][_0x4ffce0(0x1eb)](this);return _0x5e9940[_0x4ffce0(0x458)]=this[_0x4ffce0(0x458)][_0x4ffce0(0x693)](),_0x5e9940;}});function _0xef338f(_0x37f3f6,_0x3ed934,_0x3f8de2,_0x292e87,_0x5531dc,_0x2ea440,_0x26b879){var _0x140d9f=_0x37f3f6+(_0x3ed934&_0x3f8de2|~_0x3ed934&_0x292e87)+_0x5531dc+_0x26b879;return(_0x140d9f<<_0x2ea440|_0x140d9f>>>0x20-_0x2ea440)+_0x3ed934;}function _0x15c239(_0x3d6897,_0x107705,_0x2710a4,_0x3b9940,_0x367cdf,_0x2ead00,_0x29f066){var _0x4f2027=_0x3d6897+(_0x107705&_0x3b9940|_0x2710a4&~_0x3b9940)+_0x367cdf+_0x29f066;return(_0x4f2027<<_0x2ead00|_0x4f2027>>>0x20-_0x2ead00)+_0x107705;}function _0x412591(_0x4eea17,_0x541afc,_0x2ffb21,_0x1ea83b,_0x2bbde6,_0x176fef,_0x107fa8){var _0x2e9e3b=_0x4eea17+(_0x541afc^_0x2ffb21^_0x1ea83b)+_0x2bbde6+_0x107fa8;return(_0x2e9e3b<<_0x176fef|_0x2e9e3b>>>0x20-_0x176fef)+_0x541afc;}function _0x49e842(_0x4b8541,_0x4c4874,_0x28aef4,_0x5aa7e9,_0x4eae52,_0xf9520a,_0x2d24bc){var _0x27a5bf=_0x4b8541+(_0x28aef4^(_0x4c4874|~_0x5aa7e9))+_0x4eae52+_0x2d24bc;return(_0x27a5bf<<_0xf9520a|_0x27a5bf>>>0x20-_0xf9520a)+_0x4c4874;}_0xa80f5[_0x58677a(0x674)]=_0x4b8f8b[_0x58677a(0x3dc)](_0x1e09e9),_0xa80f5['HmacMD5']=_0x4b8f8b[_0x58677a(0x4f2)](_0x1e09e9);}(Math),_0x13dc76[_0x4c4b44(0x674)];}));}(Fe)),Fe['exports'];}var Ve={'exports':{}},Ge={'exports':{}},gs=Ge['exports'],ii;function Is(){const _0xfe50b6=_0x14a8b9;return ii||(ii=0x1,function(_0x131570,_0x4ad04b){(function(_0x5cced0,_0x127775){const _0x369aac=_0x3122;_0x131570[_0x369aac(0x402)]=_0x127775(se());}(gs,function(_0x6e1a16){const _0x5019c3=_0x3122;return(function(){const _0x49a559=_0x3122;var _0x54a66d=_0x6e1a16,_0x59a36e=_0x54a66d['lib'],_0x5361b6=_0x59a36e[_0x49a559(0x311)],_0x2ca465=_0x59a36e[_0x49a559(0x3f7)],_0x1a104c=_0x54a66d[_0x49a559(0x48e)],_0x2c7886=[],_0x57d4ff=_0x1a104c['SHA1']=_0x2ca465['extend']({'_doReset':function(){const _0x566d63=_0x49a559;this[_0x566d63(0x458)]=new _0x5361b6[(_0x566d63(0x3da))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x5b604f,_0x351946){const _0xc7d12a=_0x49a559;for(var _0x100fa0=this[_0xc7d12a(0x458)][_0xc7d12a(0x572)],_0x13dfe7=_0x100fa0[0x0],_0x402842=_0x100fa0[0x1],_0x1124aa=_0x100fa0[0x2],_0x43a80d=_0x100fa0[0x3],_0x29f065=_0x100fa0[0x4],_0x6634c3=0x0;_0x6634c3<0x50;_0x6634c3++){if(_0x6634c3<0x10)_0x2c7886[_0x6634c3]=_0x5b604f[_0x351946+_0x6634c3]|0x0;else{var _0x5d9cf8=_0x2c7886[_0x6634c3-0x3]^_0x2c7886[_0x6634c3-0x8]^_0x2c7886[_0x6634c3-0xe]^_0x2c7886[_0x6634c3-0x10];_0x2c7886[_0x6634c3]=_0x5d9cf8<<0x1|_0x5d9cf8>>>0x1f;}var _0x2c77ca=(_0x13dfe7<<0x5|_0x13dfe7>>>0x1b)+_0x29f065+_0x2c7886[_0x6634c3];_0x6634c3<0x14?_0x2c77ca+=(_0x402842&_0x1124aa|~_0x402842&_0x43a80d)+0x5a827999:_0x6634c3<0x28?_0x2c77ca+=(_0x402842^_0x1124aa^_0x43a80d)+0x6ed9eba1:_0x6634c3<0x3c?_0x2c77ca+=(_0x402842&_0x1124aa|_0x402842&_0x43a80d|_0x1124aa&_0x43a80d)-0x70e44324:_0x2c77ca+=(_0x402842^_0x1124aa^_0x43a80d)-0x359d3e2a,_0x29f065=_0x43a80d,_0x43a80d=_0x1124aa,_0x1124aa=_0x402842<<0x1e|_0x402842>>>0x2,_0x402842=_0x13dfe7,_0x13dfe7=_0x2c77ca;}_0x100fa0[0x0]=_0x100fa0[0x0]+_0x13dfe7|0x0,_0x100fa0[0x1]=_0x100fa0[0x1]+_0x402842|0x0,_0x100fa0[0x2]=_0x100fa0[0x2]+_0x1124aa|0x0,_0x100fa0[0x3]=_0x100fa0[0x3]+_0x43a80d|0x0,_0x100fa0[0x4]=_0x100fa0[0x4]+_0x29f065|0x0;},'_doFinalize':function(){const _0x1e25c0=_0x49a559;var _0x2b1e6e=this[_0x1e25c0(0x488)],_0x1bb416=_0x2b1e6e[_0x1e25c0(0x572)],_0x50bbed=this[_0x1e25c0(0x382)]*0x8,_0x58544d=_0x2b1e6e[_0x1e25c0(0x5ae)]*0x8;return _0x1bb416[_0x58544d>>>0x5]|=0x80<<0x18-_0x58544d%0x20,_0x1bb416[(_0x58544d+0x40>>>0x9<<0x4)+0xe]=Math[_0x1e25c0(0x48b)](_0x50bbed/0x100000000),_0x1bb416[(_0x58544d+0x40>>>0x9<<0x4)+0xf]=_0x50bbed,_0x2b1e6e['sigBytes']=_0x1bb416[_0x1e25c0(0x4a6)]*0x4,this[_0x1e25c0(0x5bb)](),this[_0x1e25c0(0x458)];},'clone':function(){const _0xd52bda=_0x49a559;var _0x5b4af9=_0x2ca465[_0xd52bda(0x693)][_0xd52bda(0x1eb)](this);return _0x5b4af9[_0xd52bda(0x458)]=this[_0xd52bda(0x458)]['clone'](),_0x5b4af9;}});_0x54a66d['SHA1']=_0x2ca465[_0x49a559(0x3dc)](_0x57d4ff),_0x54a66d[_0x49a559(0x241)]=_0x2ca465[_0x49a559(0x4f2)](_0x57d4ff);}()),_0x6e1a16[_0x5019c3(0x5e0)];}));}(Ge)),Ge[_0xfe50b6(0x402)];}var Ye={'exports':{}},Cs=Ye[_0x14a8b9(0x402)],ni;function Es(){const _0x5be8ac=_0x14a8b9;return ni||(ni=0x1,function(_0x2247b5,_0x3e0722){(function(_0x287a13,_0x4888a1){const _0xfc2823=_0x3122;_0x2247b5[_0xfc2823(0x402)]=_0x4888a1(se());}(Cs,function(_0x24c16c){(function(){const _0x30c7af=_0x3122;var _0x571b6e=_0x24c16c,_0x161c40=_0x571b6e[_0x30c7af(0x31f)],_0x28ab5f=_0x161c40[_0x30c7af(0x4dc)],_0x4d7a03=_0x571b6e[_0x30c7af(0x5f9)],_0x5cc12b=_0x4d7a03[_0x30c7af(0x324)],_0xd89b9c=_0x571b6e[_0x30c7af(0x48e)];_0xd89b9c[_0x30c7af(0x3bb)]=_0x28ab5f[_0x30c7af(0x29c)]({'init':function(_0x5f181c,_0xc8eee4){const _0x1c7001=_0x30c7af;_0x5f181c=this[_0x1c7001(0x367)]=new _0x5f181c['init'](),typeof _0xc8eee4=='string'&&(_0xc8eee4=_0x5cc12b['parse'](_0xc8eee4));var _0x4d6638=_0x5f181c['blockSize'],_0x527a0d=_0x4d6638*0x4;_0xc8eee4[_0x1c7001(0x5ae)]>_0x527a0d&&(_0xc8eee4=_0x5f181c[_0x1c7001(0x298)](_0xc8eee4)),_0xc8eee4[_0x1c7001(0x502)]();for(var _0x2221eb=this[_0x1c7001(0x315)]=_0xc8eee4[_0x1c7001(0x693)](),_0x4c29c4=this[_0x1c7001(0x3d3)]=_0xc8eee4[_0x1c7001(0x693)](),_0x588c9a=_0x2221eb[_0x1c7001(0x572)],_0x819c3a=_0x4c29c4[_0x1c7001(0x572)],_0x5c51af=0x0;_0x5c51af<_0x4d6638;_0x5c51af++)_0x588c9a[_0x5c51af]^=0x5c5c5c5c,_0x819c3a[_0x5c51af]^=0x36363636;_0x2221eb[_0x1c7001(0x5ae)]=_0x4c29c4[_0x1c7001(0x5ae)]=_0x527a0d,this['reset']();},'reset':function(){const _0x10cf9c=_0x30c7af;var _0x23d1e1=this[_0x10cf9c(0x367)];_0x23d1e1[_0x10cf9c(0x33b)](),_0x23d1e1[_0x10cf9c(0x23b)](this['_iKey']);},'update':function(_0x3d88e4){const _0xa40af7=_0x30c7af;return this['_hasher'][_0xa40af7(0x23b)](_0x3d88e4),this;},'finalize':function(_0xaa4d11){const _0x56daf1=_0x30c7af;var _0x3b3523=this[_0x56daf1(0x367)],_0x3c56cb=_0x3b3523['finalize'](_0xaa4d11);_0x3b3523[_0x56daf1(0x33b)]();var _0x54e5f5=_0x3b3523[_0x56daf1(0x298)](this[_0x56daf1(0x315)][_0x56daf1(0x693)]()[_0x56daf1(0x46a)](_0x3c56cb));return _0x54e5f5;}});}());}));}(Ye)),Ye[_0x5be8ac(0x402)];}var bs=Ve['exports'],ri;function ji(){const _0x52100e=_0x14a8b9;return ri||(ri=0x1,function(_0x507a26,_0x257011){(function(_0x384f99,_0x2c2b91,_0x27e8ba){const _0xceb93f=_0x3122;_0x507a26[_0xceb93f(0x402)]=_0x2c2b91(se(),Is(),Es());}(bs,function(_0x33a07c){const _0x185e1c=_0x3122;return(function(){const _0x4ae0ef=_0x3122;var _0x343510=_0x33a07c,_0x3a114d=_0x343510[_0x4ae0ef(0x31f)],_0xee8d6d=_0x3a114d[_0x4ae0ef(0x4dc)],_0xb783a=_0x3a114d[_0x4ae0ef(0x311)],_0x47b9c8=_0x343510[_0x4ae0ef(0x48e)],_0x320f0b=_0x47b9c8[_0x4ae0ef(0x674)],_0x4aac9c=_0x47b9c8[_0x4ae0ef(0x665)]=_0xee8d6d['extend']({'cfg':_0xee8d6d['extend']({'keySize':0x80/0x20,'hasher':_0x320f0b,'iterations':0x1}),'init':function(_0x123449){const _0x1fe246=_0x4ae0ef;this[_0x1fe246(0x5f4)]=this['cfg'][_0x1fe246(0x29c)](_0x123449);},'compute':function(_0x58bc30,_0x9308ba){const _0x513a99=_0x4ae0ef;for(var _0x2d7711,_0x5c0351=this[_0x513a99(0x5f4)],_0x2442ef=_0x5c0351[_0x513a99(0x4b9)][_0x513a99(0x632)](),_0x4fd552=_0xb783a['create'](),_0x4fe930=_0x4fd552['words'],_0x3e2ab2=_0x5c0351[_0x513a99(0x31c)],_0x3ae395=_0x5c0351[_0x513a99(0x542)];_0x4fe930[_0x513a99(0x4a6)]<_0x3e2ab2;){_0x2d7711&&_0x2442ef[_0x513a99(0x23b)](_0x2d7711),_0x2d7711=_0x2442ef[_0x513a99(0x23b)](_0x58bc30)[_0x513a99(0x298)](_0x9308ba),_0x2442ef[_0x513a99(0x33b)]();for(var _0xa96ae1=0x1;_0xa96ae1<_0x3ae395;_0xa96ae1++)_0x2d7711=_0x2442ef[_0x513a99(0x298)](_0x2d7711),_0x2442ef[_0x513a99(0x33b)]();_0x4fd552[_0x513a99(0x46a)](_0x2d7711);}return _0x4fd552[_0x513a99(0x5ae)]=_0x3e2ab2*0x4,_0x4fd552;}});_0x343510[_0x4ae0ef(0x665)]=function(_0x34d2a4,_0x33a7a0,_0x1c97a1){const _0x5f5658=_0x4ae0ef;return _0x4aac9c[_0x5f5658(0x632)](_0x1c97a1)[_0x5f5658(0x29a)](_0x34d2a4,_0x33a7a0);};}()),_0x33a07c[_0x185e1c(0x665)];}));}(Ve)),Ve[_0x52100e(0x402)];}var qe={'exports':{}},Ts=qe[_0x14a8b9(0x402)],si;function Hi(){const _0x266a90=_0x14a8b9;return si||(si=0x1,function(_0x404d01,_0x1e6aaa){(function(_0x18f7f9,_0xbb03a9,_0x409451){const _0x1baa9d=_0x3122;_0x404d01[_0x1baa9d(0x402)]=_0xbb03a9(se(),ji());}(Ts,function(_0x1a6b09){const _0xd9ea3d=_0x3122;_0x1a6b09[_0xd9ea3d(0x31f)]['Cipher']||function(_0x46b809){const _0x4314e2=_0xd9ea3d;var _0x1a9d4d=_0x1a6b09,_0xb4702e=_0x1a9d4d[_0x4314e2(0x31f)],_0x2c9f40=_0xb4702e[_0x4314e2(0x4dc)],_0x34715e=_0xb4702e[_0x4314e2(0x311)],_0xcfe760=_0xb4702e[_0x4314e2(0x437)],_0x149009=_0x1a9d4d[_0x4314e2(0x5f9)];_0x149009[_0x4314e2(0x324)];var _0x4b82fa=_0x149009[_0x4314e2(0x64e)],_0x52a15b=_0x1a9d4d[_0x4314e2(0x48e)],_0x18bf34=_0x52a15b[_0x4314e2(0x665)],_0x1087f3=_0xb4702e['Cipher']=_0xcfe760['extend']({'cfg':_0x2c9f40[_0x4314e2(0x29c)](),'createEncryptor':function(_0x105db7,_0x45977b){const _0x19989a=_0x4314e2;return this[_0x19989a(0x632)](this[_0x19989a(0x3d1)],_0x105db7,_0x45977b);},'createDecryptor':function(_0x30e05b,_0x4cc8bb){const _0x16eb18=_0x4314e2;return this['create'](this[_0x16eb18(0x279)],_0x30e05b,_0x4cc8bb);},'init':function(_0x412735,_0xba5779,_0x48bb1e){const _0x34d806=_0x4314e2;this[_0x34d806(0x5f4)]=this['cfg'][_0x34d806(0x29c)](_0x48bb1e),this[_0x34d806(0x38a)]=_0x412735,this[_0x34d806(0x210)]=_0xba5779,this[_0x34d806(0x33b)]();},'reset':function(){_0xcfe760['reset']['call'](this),this['_doReset']();},'process':function(_0x264be0){const _0x5798ff=_0x4314e2;return this[_0x5798ff(0x49b)](_0x264be0),this[_0x5798ff(0x5bb)]();},'finalize':function(_0x598b43){const _0xda6f30=_0x4314e2;_0x598b43&&this[_0xda6f30(0x49b)](_0x598b43);var _0x58faa0=this['_doFinalize']();return _0x58faa0;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x60910(_0x2430c0){const _0x476af5=_0x3122;return typeof _0x2430c0==_0x476af5(0x4bd)?_0x290325:_0x3e27d2;}return function(_0x32326f){return{'encrypt':function(_0x124282,_0x50eef0,_0x367338){const _0x399241=_0x3122;return _0x60910(_0x50eef0)[_0x399241(0x372)](_0x32326f,_0x124282,_0x50eef0,_0x367338);},'decrypt':function(_0x4fb774,_0xb1cffa,_0x1b15a4){const _0x54ee2c=_0x3122;return _0x60910(_0xb1cffa)[_0x54ee2c(0x310)](_0x32326f,_0x4fb774,_0xb1cffa,_0x1b15a4);}};};}())});_0xb4702e[_0x4314e2(0x225)]=_0x1087f3[_0x4314e2(0x29c)]({'_doFinalize':function(){const _0x5629aa=_0x4314e2;var _0x1b08cd=this[_0x5629aa(0x5bb)](!0x0);return _0x1b08cd;},'blockSize':0x1});var _0x382173=_0x1a9d4d['mode']={},_0x28ec5a=_0xb4702e['BlockCipherMode']=_0x2c9f40[_0x4314e2(0x29c)]({'createEncryptor':function(_0x5b6a1e,_0x44ddd0){const _0x5e9e78=_0x4314e2;return this[_0x5e9e78(0x2bb)]['create'](_0x5b6a1e,_0x44ddd0);},'createDecryptor':function(_0xb5628f,_0x4934a9){const _0x293db4=_0x4314e2;return this[_0x293db4(0x3cb)][_0x293db4(0x632)](_0xb5628f,_0x4934a9);},'init':function(_0x55f5ad,_0x2d5869){const _0x3e82d2=_0x4314e2;this[_0x3e82d2(0x3ba)]=_0x55f5ad,this[_0x3e82d2(0x56c)]=_0x2d5869;}}),_0x10a868=_0x382173['CBC']=(function(){const _0x38310a=_0x4314e2;var _0x4b55c5=_0x28ec5a[_0x38310a(0x29c)]();_0x4b55c5[_0x38310a(0x2bb)]=_0x4b55c5[_0x38310a(0x29c)]({'processBlock':function(_0x46745f,_0x45204b){const _0x471ef8=_0x38310a;var _0x25eda3=this['_cipher'],_0x446243=_0x25eda3[_0x471ef8(0x28f)];_0x5800d6[_0x471ef8(0x1eb)](this,_0x46745f,_0x45204b,_0x446243),_0x25eda3[_0x471ef8(0x5c4)](_0x46745f,_0x45204b),this[_0x471ef8(0x314)]=_0x46745f[_0x471ef8(0x634)](_0x45204b,_0x45204b+_0x446243);}}),_0x4b55c5['Decryptor']=_0x4b55c5[_0x38310a(0x29c)]({'processBlock':function(_0x46d41d,_0x4ab3f4){const _0x4b0d90=_0x38310a;var _0x2d5992=this[_0x4b0d90(0x3ba)],_0x27ad7b=_0x2d5992[_0x4b0d90(0x28f)],_0x511493=_0x46d41d['slice'](_0x4ab3f4,_0x4ab3f4+_0x27ad7b);_0x2d5992[_0x4b0d90(0x366)](_0x46d41d,_0x4ab3f4),_0x5800d6[_0x4b0d90(0x1eb)](this,_0x46d41d,_0x4ab3f4,_0x27ad7b),this[_0x4b0d90(0x314)]=_0x511493;}});function _0x5800d6(_0x598ed3,_0x15b7ab,_0x1eeea1){const _0xcda73a=_0x38310a;var _0x243d06,_0x4baea7=this[_0xcda73a(0x56c)];_0x4baea7?(_0x243d06=_0x4baea7,this[_0xcda73a(0x56c)]=_0x46b809):_0x243d06=this[_0xcda73a(0x314)];for(var _0x55af53=0x0;_0x55af53<_0x1eeea1;_0x55af53++)_0x598ed3[_0x15b7ab+_0x55af53]^=_0x243d06[_0x55af53];}return _0x4b55c5;}()),_0x280c7f=_0x1a9d4d['pad']={},_0x5608d8=_0x280c7f['Pkcs7']={'pad':function(_0x36abc3,_0x231422){const _0x60f038=_0x4314e2;for(var _0x4119e1=_0x231422*0x4,_0x15fb23=_0x4119e1-_0x36abc3[_0x60f038(0x5ae)]%_0x4119e1,_0x1f7267=_0x15fb23<<0x18|_0x15fb23<<0x10|_0x15fb23<<0x8|_0x15fb23,_0x1c6839=[],_0x3dd565=0x0;_0x3dd565<_0x15fb23;_0x3dd565+=0x4)_0x1c6839['push'](_0x1f7267);var _0x1683e6=_0x34715e[_0x60f038(0x632)](_0x1c6839,_0x15fb23);_0x36abc3[_0x60f038(0x46a)](_0x1683e6);},'unpad':function(_0x489458){const _0x461f32=_0x4314e2;var _0x30d832=_0x489458['words'][_0x489458['sigBytes']-0x1>>>0x2]&0xff;_0x489458[_0x461f32(0x5ae)]-=_0x30d832;}};_0xb4702e['BlockCipher']=_0x1087f3[_0x4314e2(0x29c)]({'cfg':_0x1087f3[_0x4314e2(0x5f4)][_0x4314e2(0x29c)]({'mode':_0x10a868,'padding':_0x5608d8}),'reset':function(){const _0x385a4c=_0x4314e2;var _0x24dcc3;_0x1087f3[_0x385a4c(0x33b)][_0x385a4c(0x1eb)](this);var _0x56aa8a=this[_0x385a4c(0x5f4)],_0x3ca773=_0x56aa8a['iv'],_0x3789af=_0x56aa8a[_0x385a4c(0x30d)];this[_0x385a4c(0x38a)]==this[_0x385a4c(0x3d1)]?_0x24dcc3=_0x3789af[_0x385a4c(0x652)]:(_0x24dcc3=_0x3789af[_0x385a4c(0x2d1)],this['_minBufferSize']=0x1),this[_0x385a4c(0x682)]&&this[_0x385a4c(0x682)][_0x385a4c(0x220)]==_0x24dcc3?this[_0x385a4c(0x682)][_0x385a4c(0x3da)](this,_0x3ca773&&_0x3ca773[_0x385a4c(0x572)]):(this[_0x385a4c(0x682)]=_0x24dcc3['call'](_0x3789af,this,_0x3ca773&&_0x3ca773[_0x385a4c(0x572)]),this['_mode'][_0x385a4c(0x220)]=_0x24dcc3);},'_doProcessBlock':function(_0x139d2f,_0x11cbcd){const _0x26a964=_0x4314e2;this[_0x26a964(0x682)]['processBlock'](_0x139d2f,_0x11cbcd);},'_doFinalize':function(){const _0x2ed995=_0x4314e2;var _0xb546c7,_0x47250a=this[_0x2ed995(0x5f4)]['padding'];return this['_xformMode']==this[_0x2ed995(0x3d1)]?(_0x47250a[_0x2ed995(0x275)](this[_0x2ed995(0x488)],this[_0x2ed995(0x28f)]),_0xb546c7=this[_0x2ed995(0x5bb)](!0x0)):(_0xb546c7=this[_0x2ed995(0x5bb)](!0x0),_0x47250a[_0x2ed995(0x25e)](_0xb546c7)),_0xb546c7;},'blockSize':0x80/0x20});var _0x1bc550=_0xb4702e[_0x4314e2(0x578)]=_0x2c9f40[_0x4314e2(0x29c)]({'init':function(_0x12aed9){const _0x5e1d76=_0x4314e2;this[_0x5e1d76(0x63b)](_0x12aed9);},'toString':function(_0x3d4136){const _0x4880fe=_0x4314e2;return(_0x3d4136||this[_0x4880fe(0x2aa)])[_0x4880fe(0x659)](this);}}),_0x29a50f=_0x1a9d4d['format']={},_0x35040e=_0x29a50f[_0x4314e2(0x506)]={'stringify':function(_0x470a33){const _0x103c8a=_0x4314e2;var _0x2e4c7d,_0x4ab68b=_0x470a33['ciphertext'],_0x2c62bb=_0x470a33[_0x103c8a(0x53e)];return _0x2c62bb?_0x2e4c7d=_0x34715e[_0x103c8a(0x632)]([0x53616c74,0x65645f5f])[_0x103c8a(0x46a)](_0x2c62bb)[_0x103c8a(0x46a)](_0x4ab68b):_0x2e4c7d=_0x4ab68b,_0x2e4c7d[_0x103c8a(0x208)](_0x4b82fa);},'parse':function(_0x823be3){const _0x5c0252=_0x4314e2;var _0x34ee71,_0x521fb8=_0x4b82fa[_0x5c0252(0x26f)](_0x823be3),_0x349ca4=_0x521fb8[_0x5c0252(0x572)];return _0x349ca4[0x0]==0x53616c74&&_0x349ca4[0x1]==0x65645f5f&&(_0x34ee71=_0x34715e[_0x5c0252(0x632)](_0x349ca4[_0x5c0252(0x634)](0x2,0x4)),_0x349ca4['splice'](0x0,0x4),_0x521fb8['sigBytes']-=0x10),_0x1bc550[_0x5c0252(0x632)]({'ciphertext':_0x521fb8,'salt':_0x34ee71});}},_0x3e27d2=_0xb4702e[_0x4314e2(0x5be)]=_0x2c9f40[_0x4314e2(0x29c)]({'cfg':_0x2c9f40['extend']({'format':_0x35040e}),'encrypt':function(_0x225a66,_0x43f40e,_0x287a99,_0x818ff8){const _0x55926c=_0x4314e2;_0x818ff8=this[_0x55926c(0x5f4)][_0x55926c(0x29c)](_0x818ff8);var _0x3a51f4=_0x225a66[_0x55926c(0x652)](_0x287a99,_0x818ff8),_0x37aa7b=_0x3a51f4[_0x55926c(0x298)](_0x43f40e),_0x3ce04e=_0x3a51f4[_0x55926c(0x5f4)];return _0x1bc550[_0x55926c(0x632)]({'ciphertext':_0x37aa7b,'key':_0x287a99,'iv':_0x3ce04e['iv'],'algorithm':_0x225a66,'mode':_0x3ce04e[_0x55926c(0x30d)],'padding':_0x3ce04e[_0x55926c(0x4d5)],'blockSize':_0x225a66[_0x55926c(0x28f)],'formatter':_0x818ff8[_0x55926c(0x548)]});},'decrypt':function(_0x430ae2,_0x3776ab,_0x34e447,_0x5bd3e5){const _0x4b94d6=_0x4314e2;_0x5bd3e5=this['cfg']['extend'](_0x5bd3e5),_0x3776ab=this[_0x4b94d6(0x664)](_0x3776ab,_0x5bd3e5[_0x4b94d6(0x548)]);var _0x57c2bd=_0x430ae2[_0x4b94d6(0x2d1)](_0x34e447,_0x5bd3e5)[_0x4b94d6(0x298)](_0x3776ab['ciphertext']);return _0x57c2bd;},'_parse':function(_0x269398,_0x45a632){const _0x2c725b=_0x4314e2;return typeof _0x269398==_0x2c725b(0x4bd)?_0x45a632[_0x2c725b(0x26f)](_0x269398,this):_0x269398;}}),_0x4fd118=_0x1a9d4d[_0x4314e2(0x687)]={},_0x431805=_0x4fd118[_0x4314e2(0x506)]={'execute':function(_0x885b79,_0x23f37b,_0x4ff650,_0x5f0af5,_0x428f18){const _0x3021b6=_0x4314e2;if(_0x5f0af5||(_0x5f0af5=_0x34715e['random'](0x40/0x8)),_0x428f18)var _0xe4b3c8=_0x18bf34[_0x3021b6(0x632)]({'keySize':_0x23f37b+_0x4ff650,'hasher':_0x428f18})['compute'](_0x885b79,_0x5f0af5);else var _0xe4b3c8=_0x18bf34[_0x3021b6(0x632)]({'keySize':_0x23f37b+_0x4ff650})[_0x3021b6(0x29a)](_0x885b79,_0x5f0af5);var _0x421c81=_0x34715e[_0x3021b6(0x632)](_0xe4b3c8[_0x3021b6(0x572)][_0x3021b6(0x634)](_0x23f37b),_0x4ff650*0x4);return _0xe4b3c8['sigBytes']=_0x23f37b*0x4,_0x1bc550['create']({'key':_0xe4b3c8,'iv':_0x421c81,'salt':_0x5f0af5});}},_0x290325=_0xb4702e[_0x4314e2(0x4d4)]=_0x3e27d2['extend']({'cfg':_0x3e27d2[_0x4314e2(0x5f4)][_0x4314e2(0x29c)]({'kdf':_0x431805}),'encrypt':function(_0x2b2609,_0x5d749a,_0x2c0598,_0x5264de){const _0x50815e=_0x4314e2;_0x5264de=this['cfg'][_0x50815e(0x29c)](_0x5264de);var _0x31d9c9=_0x5264de[_0x50815e(0x687)][_0x50815e(0x40e)](_0x2c0598,_0x2b2609[_0x50815e(0x31c)],_0x2b2609[_0x50815e(0x2fa)],_0x5264de[_0x50815e(0x53e)],_0x5264de[_0x50815e(0x4b9)]);_0x5264de['iv']=_0x31d9c9['iv'];var _0x1efc30=_0x3e27d2[_0x50815e(0x372)][_0x50815e(0x1eb)](this,_0x2b2609,_0x5d749a,_0x31d9c9[_0x50815e(0x438)],_0x5264de);return _0x1efc30['mixIn'](_0x31d9c9),_0x1efc30;},'decrypt':function(_0x57cb8b,_0x4c3bcf,_0x4ed53c,_0xbf1f46){const _0x24cf92=_0x4314e2;_0xbf1f46=this[_0x24cf92(0x5f4)][_0x24cf92(0x29c)](_0xbf1f46),_0x4c3bcf=this[_0x24cf92(0x664)](_0x4c3bcf,_0xbf1f46[_0x24cf92(0x548)]);var _0x25f969=_0xbf1f46[_0x24cf92(0x687)][_0x24cf92(0x40e)](_0x4ed53c,_0x57cb8b['keySize'],_0x57cb8b[_0x24cf92(0x2fa)],_0x4c3bcf[_0x24cf92(0x53e)],_0xbf1f46[_0x24cf92(0x4b9)]);_0xbf1f46['iv']=_0x25f969['iv'];var _0x3df9d6=_0x3e27d2['decrypt'][_0x24cf92(0x1eb)](this,_0x57cb8b,_0x4c3bcf,_0x25f969['key'],_0xbf1f46);return _0x3df9d6;}});}();}));}(qe)),qe[_0x266a90(0x402)];}var Rs=Be[_0x14a8b9(0x402)],oi;function ys(){const _0x3c36f2=_0x14a8b9;return oi||(oi=0x1,function(_0x235658,_0x4d5803){(function(_0x223686,_0x3ef0f2,_0xbfb13b){const _0xa67c34=_0x3122;_0x235658[_0xa67c34(0x402)]=_0x3ef0f2(se(),$i(),ms(),ji(),Hi());}(Rs,function(_0x46b85a){const _0x26a4c1=_0x3122;return(function(){const _0x4f0d03=_0x3122;var _0x4bf826=_0x46b85a,_0x5dde4d=_0x4bf826[_0x4f0d03(0x31f)],_0x58bbaa=_0x5dde4d[_0x4f0d03(0x49e)],_0xe8dc75=_0x4bf826[_0x4f0d03(0x48e)],_0x3c0ab6=[],_0x1c5ca8=[],_0x15fa1f=[],_0xd37152=[],_0x32ba65=[],_0x4114b3=[],_0x10a240=[],_0x41f701=[],_0x94858b=[],_0x5177c0=[];(function(){for(var _0x485824=[],_0x3f692f=0x0;_0x3f692f<0x100;_0x3f692f++)_0x3f692f<0x80?_0x485824[_0x3f692f]=_0x3f692f<<0x1:_0x485824[_0x3f692f]=_0x3f692f<<0x1^0x11b;for(var _0x41a07d=0x0,_0x4f9f9d=0x0,_0x3f692f=0x0;_0x3f692f<0x100;_0x3f692f++){var _0x1e5cf1=_0x4f9f9d^_0x4f9f9d<<0x1^_0x4f9f9d<<0x2^_0x4f9f9d<<0x3^_0x4f9f9d<<0x4;_0x1e5cf1=_0x1e5cf1>>>0x8^_0x1e5cf1&0xff^0x63,_0x3c0ab6[_0x41a07d]=_0x1e5cf1,_0x1c5ca8[_0x1e5cf1]=_0x41a07d;var _0xf53017=_0x485824[_0x41a07d],_0x43f739=_0x485824[_0xf53017],_0x53afed=_0x485824[_0x43f739],_0x87b394=_0x485824[_0x1e5cf1]*0x101^_0x1e5cf1*0x1010100;_0x15fa1f[_0x41a07d]=_0x87b394<<0x18|_0x87b394>>>0x8,_0xd37152[_0x41a07d]=_0x87b394<<0x10|_0x87b394>>>0x10,_0x32ba65[_0x41a07d]=_0x87b394<<0x8|_0x87b394>>>0x18,_0x4114b3[_0x41a07d]=_0x87b394;var _0x87b394=_0x53afed*0x1010101^_0x43f739*0x10001^_0xf53017*0x101^_0x41a07d*0x1010100;_0x10a240[_0x1e5cf1]=_0x87b394<<0x18|_0x87b394>>>0x8,_0x41f701[_0x1e5cf1]=_0x87b394<<0x10|_0x87b394>>>0x10,_0x94858b[_0x1e5cf1]=_0x87b394<<0x8|_0x87b394>>>0x18,_0x5177c0[_0x1e5cf1]=_0x87b394,_0x41a07d?(_0x41a07d=_0xf53017^_0x485824[_0x485824[_0x485824[_0x53afed^_0xf53017]]],_0x4f9f9d^=_0x485824[_0x485824[_0x4f9f9d]]):_0x41a07d=_0x4f9f9d=0x1;}}());var _0x4f26de=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x2a2a5c=_0xe8dc75[_0x4f0d03(0x65d)]=_0x58bbaa['extend']({'_doReset':function(){const _0x2dd834=_0x4f0d03;var _0x2268f5;if(!(this['_nRounds']&&this[_0x2dd834(0x609)]===this[_0x2dd834(0x210)])){for(var _0x2eb028=this[_0x2dd834(0x609)]=this[_0x2dd834(0x210)],_0x11c33e=_0x2eb028[_0x2dd834(0x572)],_0x4d66c6=_0x2eb028[_0x2dd834(0x5ae)]/0x4,_0x58a419=this[_0x2dd834(0x337)]=_0x4d66c6+0x6,_0x3e222c=(_0x58a419+0x1)*0x4,_0x274a3a=this[_0x2dd834(0x24f)]=[],_0x1bf198=0x0;_0x1bf198<_0x3e222c;_0x1bf198++)_0x1bf198<_0x4d66c6?_0x274a3a[_0x1bf198]=_0x11c33e[_0x1bf198]:(_0x2268f5=_0x274a3a[_0x1bf198-0x1],_0x1bf198%_0x4d66c6?_0x4d66c6>0x6&&_0x1bf198%_0x4d66c6==0x4&&(_0x2268f5=_0x3c0ab6[_0x2268f5>>>0x18]<<0x18|_0x3c0ab6[_0x2268f5>>>0x10&0xff]<<0x10|_0x3c0ab6[_0x2268f5>>>0x8&0xff]<<0x8|_0x3c0ab6[_0x2268f5&0xff]):(_0x2268f5=_0x2268f5<<0x8|_0x2268f5>>>0x18,_0x2268f5=_0x3c0ab6[_0x2268f5>>>0x18]<<0x18|_0x3c0ab6[_0x2268f5>>>0x10&0xff]<<0x10|_0x3c0ab6[_0x2268f5>>>0x8&0xff]<<0x8|_0x3c0ab6[_0x2268f5&0xff],_0x2268f5^=_0x4f26de[_0x1bf198/_0x4d66c6|0x0]<<0x18),_0x274a3a[_0x1bf198]=_0x274a3a[_0x1bf198-_0x4d66c6]^_0x2268f5);for(var _0x567727=this[_0x2dd834(0x600)]=[],_0x2e375a=0x0;_0x2e375a<_0x3e222c;_0x2e375a++){var _0x1bf198=_0x3e222c-_0x2e375a;if(_0x2e375a%0x4)var _0x2268f5=_0x274a3a[_0x1bf198];else var _0x2268f5=_0x274a3a[_0x1bf198-0x4];_0x2e375a<0x4||_0x1bf198<=0x4?_0x567727[_0x2e375a]=_0x2268f5:_0x567727[_0x2e375a]=_0x10a240[_0x3c0ab6[_0x2268f5>>>0x18]]^_0x41f701[_0x3c0ab6[_0x2268f5>>>0x10&0xff]]^_0x94858b[_0x3c0ab6[_0x2268f5>>>0x8&0xff]]^_0x5177c0[_0x3c0ab6[_0x2268f5&0xff]];}}},'encryptBlock':function(_0x46f93d,_0x3676ea){const _0x595e7f=_0x4f0d03;this[_0x595e7f(0x331)](_0x46f93d,_0x3676ea,this[_0x595e7f(0x24f)],_0x15fa1f,_0xd37152,_0x32ba65,_0x4114b3,_0x3c0ab6);},'decryptBlock':function(_0x3aa1a6,_0x77fdb3){const _0x88c459=_0x4f0d03;var _0x5ae7dd=_0x3aa1a6[_0x77fdb3+0x1];_0x3aa1a6[_0x77fdb3+0x1]=_0x3aa1a6[_0x77fdb3+0x3],_0x3aa1a6[_0x77fdb3+0x3]=_0x5ae7dd,this[_0x88c459(0x331)](_0x3aa1a6,_0x77fdb3,this['_invKeySchedule'],_0x10a240,_0x41f701,_0x94858b,_0x5177c0,_0x1c5ca8);var _0x5ae7dd=_0x3aa1a6[_0x77fdb3+0x1];_0x3aa1a6[_0x77fdb3+0x1]=_0x3aa1a6[_0x77fdb3+0x3],_0x3aa1a6[_0x77fdb3+0x3]=_0x5ae7dd;},'_doCryptBlock':function(_0x1182c9,_0x2d8eb9,_0x4ae349,_0x59780d,_0x4d796d,_0x275f77,_0x330898,_0x1cbb6d){const _0x177f74=_0x4f0d03;for(var _0x5ddc7c=this[_0x177f74(0x337)],_0xbe3bfb=_0x1182c9[_0x2d8eb9]^_0x4ae349[0x0],_0x350471=_0x1182c9[_0x2d8eb9+0x1]^_0x4ae349[0x1],_0x4b4d16=_0x1182c9[_0x2d8eb9+0x2]^_0x4ae349[0x2],_0x371d47=_0x1182c9[_0x2d8eb9+0x3]^_0x4ae349[0x3],_0x69970c=0x4,_0x49e4ba=0x1;_0x49e4ba<_0x5ddc7c;_0x49e4ba++){var _0x55bc77=_0x59780d[_0xbe3bfb>>>0x18]^_0x4d796d[_0x350471>>>0x10&0xff]^_0x275f77[_0x4b4d16>>>0x8&0xff]^_0x330898[_0x371d47&0xff]^_0x4ae349[_0x69970c++],_0x1ccdd6=_0x59780d[_0x350471>>>0x18]^_0x4d796d[_0x4b4d16>>>0x10&0xff]^_0x275f77[_0x371d47>>>0x8&0xff]^_0x330898[_0xbe3bfb&0xff]^_0x4ae349[_0x69970c++],_0x1108b7=_0x59780d[_0x4b4d16>>>0x18]^_0x4d796d[_0x371d47>>>0x10&0xff]^_0x275f77[_0xbe3bfb>>>0x8&0xff]^_0x330898[_0x350471&0xff]^_0x4ae349[_0x69970c++],_0x27183b=_0x59780d[_0x371d47>>>0x18]^_0x4d796d[_0xbe3bfb>>>0x10&0xff]^_0x275f77[_0x350471>>>0x8&0xff]^_0x330898[_0x4b4d16&0xff]^_0x4ae349[_0x69970c++];_0xbe3bfb=_0x55bc77,_0x350471=_0x1ccdd6,_0x4b4d16=_0x1108b7,_0x371d47=_0x27183b;}var _0x55bc77=(_0x1cbb6d[_0xbe3bfb>>>0x18]<<0x18|_0x1cbb6d[_0x350471>>>0x10&0xff]<<0x10|_0x1cbb6d[_0x4b4d16>>>0x8&0xff]<<0x8|_0x1cbb6d[_0x371d47&0xff])^_0x4ae349[_0x69970c++],_0x1ccdd6=(_0x1cbb6d[_0x350471>>>0x18]<<0x18|_0x1cbb6d[_0x4b4d16>>>0x10&0xff]<<0x10|_0x1cbb6d[_0x371d47>>>0x8&0xff]<<0x8|_0x1cbb6d[_0xbe3bfb&0xff])^_0x4ae349[_0x69970c++],_0x1108b7=(_0x1cbb6d[_0x4b4d16>>>0x18]<<0x18|_0x1cbb6d[_0x371d47>>>0x10&0xff]<<0x10|_0x1cbb6d[_0xbe3bfb>>>0x8&0xff]<<0x8|_0x1cbb6d[_0x350471&0xff])^_0x4ae349[_0x69970c++],_0x27183b=(_0x1cbb6d[_0x371d47>>>0x18]<<0x18|_0x1cbb6d[_0xbe3bfb>>>0x10&0xff]<<0x10|_0x1cbb6d[_0x350471>>>0x8&0xff]<<0x8|_0x1cbb6d[_0x4b4d16&0xff])^_0x4ae349[_0x69970c++];_0x1182c9[_0x2d8eb9]=_0x55bc77,_0x1182c9[_0x2d8eb9+0x1]=_0x1ccdd6,_0x1182c9[_0x2d8eb9+0x2]=_0x1108b7,_0x1182c9[_0x2d8eb9+0x3]=_0x27183b;},'keySize':0x100/0x20});_0x4bf826[_0x4f0d03(0x65d)]=_0x58bbaa[_0x4f0d03(0x3dc)](_0x2a2a5c);}()),_0x46b85a[_0x26a4c1(0x65d)];}));}(Be)),Be[_0x3c36f2(0x402)];}var Os=ys();const Ds=xe(Os);var Ps=$i();const ai=xe(Ps);var Ke={'exports':{}},ws=Ke[_0x14a8b9(0x402)],ci;function Us(){const _0x1c2334=_0x14a8b9;return ci||(ci=0x1,function(_0x53a942,_0x5aae4b){(function(_0x4ef55f,_0xfd5536){const _0x2ef21f=_0x3122;_0x53a942[_0x2ef21f(0x402)]=_0xfd5536(se());}(ws,function(_0x48a531){const _0x3a029b=_0x3122;return _0x48a531[_0x3a029b(0x5f9)][_0x3a029b(0x324)];}));}(Ke)),Ke[_0x1c2334(0x402)];}var Ms=Us();const As=xe(Ms);var ze={'exports':{}},Ns=ze['exports'],li;function Ls(){const _0x41c098=_0x14a8b9;return li||(li=0x1,function(_0x5db1be,_0x455db2){(function(_0x4450df,_0x36afd8){const _0x411e81=_0x3122;_0x5db1be[_0x411e81(0x402)]=_0x36afd8(se());}(Ns,function(_0x4a0165){const _0xaf7844=_0x3122;return(function(){const _0x353d7d=_0x3122;if(typeof ArrayBuffer==_0x353d7d(0x60e)){var _0x4a1fc0=_0x4a0165,_0x41d672=_0x4a1fc0[_0x353d7d(0x31f)],_0x3ec456=_0x41d672[_0x353d7d(0x311)],_0x2c09ab=_0x3ec456[_0x353d7d(0x3da)],_0x221d27=_0x3ec456[_0x353d7d(0x3da)]=function(_0x302394){const _0x2df02f=_0x353d7d;if(_0x302394 instanceof ArrayBuffer&&(_0x302394=new Uint8Array(_0x302394)),(_0x302394 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x302394 instanceof Uint8ClampedArray||_0x302394 instanceof Int16Array||_0x302394 instanceof Uint16Array||_0x302394 instanceof Int32Array||_0x302394 instanceof Uint32Array||_0x302394 instanceof Float32Array||_0x302394 instanceof Float64Array)&&(_0x302394=new Uint8Array(_0x302394[_0x2df02f(0x32e)],_0x302394[_0x2df02f(0x2c2)],_0x302394[_0x2df02f(0x62d)])),_0x302394 instanceof Uint8Array){for(var _0x3e8af2=_0x302394[_0x2df02f(0x62d)],_0x35cc81=[],_0x139278=0x0;_0x139278<_0x3e8af2;_0x139278++)_0x35cc81[_0x139278>>>0x2]|=_0x302394[_0x139278]<<0x18-_0x139278%0x4*0x8;_0x2c09ab[_0x2df02f(0x1eb)](this,_0x35cc81,_0x3e8af2);}else _0x2c09ab[_0x2df02f(0x4ae)](this,arguments);};_0x221d27[_0x353d7d(0x2c5)]=_0x3ec456;}}()),_0x4a0165[_0xaf7844(0x31f)][_0xaf7844(0x311)];}));}(ze)),ze[_0x41c098(0x402)];}var xs=Ls();const $s=xe(xs);var Xe={'exports':{}},js=Xe['exports'],hi;function Hs(){return hi||(hi=0x1,function(_0x2b88bb,_0x162867){(function(_0x20599c,_0x1a3e92,_0x27e948){const _0x2c4f2e=_0x3122;_0x2b88bb[_0x2c4f2e(0x402)]=_0x1a3e92(se(),Hi());}(js,function(_0x1112d1){const _0x5c0ea0=_0x3122;return _0x1112d1[_0x5c0ea0(0x275)][_0x5c0ea0(0x406)]={'pad':function(){},'unpad':function(){}},_0x1112d1['pad'][_0x5c0ea0(0x406)];}));}(Xe)),Xe['exports'];}var Bs=Hs();const ks=xe(Bs);function Ws(_0x9e8f6,_0x2ccea4){const _0x33205a=_0x14a8b9,_0x48a15d=_0x2ccea4-_0x9e8f6['length']%_0x2ccea4,_0x2525f1=String[_0x33205a(0x387)](_0x48a15d)[_0x33205a(0x4aa)](_0x48a15d);return _0x9e8f6+_0x2525f1;}function Fs(_0x36362f,_0x2f1017){const _0x3f28ac=_0x14a8b9,_0x2442ad=$s['random'](0x10),_0x37fccf=Ws(_0x36362f,0x10),_0x4fea38=Ds['encrypt'](As[_0x3f28ac(0x26f)](_0x37fccf),ai['parse'](_0x2f1017),{'iv':_0x2442ad,'padding':ks});return _0x2442ad[_0x3f28ac(0x46a)](_0x4fea38[_0x3f28ac(0x520)])[_0x3f28ac(0x208)](ai);}function Vs(){const _0x3625e7=_0x14a8b9,_0x16929c=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0x3625e7(0x686)];if(_0x16929c){const _0x3eee7e={'time':Math[_0x3625e7(0x48b)](Date[_0x3625e7(0x4ce)]()/0x3e8),'domain':location[_0x3625e7(0x4b6)]};return Fs(JSON[_0x3625e7(0x659)](_0x3eee7e),_0x16929c);}}var Gs=Object['defineProperty'],Ys=Object[_0x14a8b9(0x5ee)],qs=(_0x162aad,_0x30a84c,_0x4ac716,_0x14d6d8)=>{const _0x3b437b=_0x14a8b9;for(var _0x4c2baf=_0x14d6d8>0x1?void 0x0:_0x14d6d8?Ys(_0x30a84c,_0x4ac716):_0x30a84c,_0x173cc2=_0x162aad[_0x3b437b(0x4a6)]-0x1,_0x232d20;_0x173cc2>=0x0;_0x173cc2--)(_0x232d20=_0x162aad[_0x173cc2])&&(_0x4c2baf=(_0x14d6d8?_0x232d20(_0x30a84c,_0x4ac716,_0x4c2baf):_0x232d20(_0x4c2baf))||_0x4c2baf);return _0x14d6d8&&_0x4c2baf&&Gs(_0x30a84c,_0x4ac716,_0x4c2baf),_0x4c2baf;},Ks=(_0x1b4a6f,_0x29b923)=>(_0x4f19de,_0x4d3831)=>_0x29b923(_0x4f19de,_0x4d3831,_0x1b4a6f);let rt=class{constructor(_0x22f1c0){const _0x5736b2=_0x14a8b9;this[_0x5736b2(0x3d4)]=_0x22f1c0,this[_0x5736b2(0x39d)]();}[_0x14a8b9(0x39d)](){const _0x121196=_0x14a8b9;this['_httpService'][_0x121196(0x282)]({'interceptor':(_0x11479f,_0x2c6f33)=>{const _0x2867d4=_0x121196,_0x4c1f51=_0x11479f[_0x2867d4(0x46b)],_0x446fef=Vs();return _0x446fef&&_0x4c1f51[_0x2867d4(0x69e)](_0x2867d4(0x579),_0x446fef),_0x2c6f33(_0x11479f);}});}};rt=qs([Ks(0x0,a['Inject'](z[_0x14a8b9(0x1fe)]))],rt);var zs=Object[_0x14a8b9(0x4ed)],Xs=Object['getOwnPropertyDescriptor'],Js=(_0x91f10c,_0x4a6bfe,_0x26e874,_0x3fe0ee)=>{const _0x216811=_0x14a8b9;for(var _0x590b77=_0x3fe0ee>0x1?void 0x0:_0x3fe0ee?Xs(_0x4a6bfe,_0x26e874):_0x4a6bfe,_0x36dee4=_0x91f10c[_0x216811(0x4a6)]-0x1,_0x21ab43;_0x36dee4>=0x0;_0x36dee4--)(_0x21ab43=_0x91f10c[_0x36dee4])&&(_0x590b77=(_0x3fe0ee?_0x21ab43(_0x4a6bfe,_0x26e874,_0x590b77):_0x21ab43(_0x590b77))||_0x590b77);return _0x3fe0ee&&_0x590b77&&zs(_0x4a6bfe,_0x26e874,_0x590b77),_0x590b77;},Ct=(_0x5d40ed,_0x42a79a)=>(_0x4afe08,_0x19894c)=>_0x42a79a(_0x4afe08,_0x19894c,_0x5d40ed);const Zs=[_0x14a8b9(0x44c),_0x14a8b9(0x610),'image/jpg',_0x14a8b9(0x2e0),_0x14a8b9(0x53f)],Qs=0x5*0x400*0x400,eo=_0x14a8b9(0x35f),to='/universer-api/stream/file/upload',io='EXCHANGE_SIGN_URL_SERVER_URL_KEY',no=_0x14a8b9(0x1e1);exports['ImageIoService']=class{constructor(_0xdefa31,_0x4eb9be,_0x301a90){const _0x1ac165=_0x14a8b9;I(this,_0x1ac165(0x4e1),0x0),I(this,_0x1ac165(0x4a0),new A[(_0x1ac165(0x3fc))]()),I(this,_0x1ac165(0x221),this[_0x1ac165(0x4a0)]),I(this,_0x1ac165(0x360),new Map()),(this[_0x1ac165(0x3d4)]=_0xdefa31,this[_0x1ac165(0x65b)]=_0x4eb9be,this[_0x1ac165(0x564)]=_0x301a90);}[_0x14a8b9(0x440)](_0x112cc7){const _0x535d1f=_0x14a8b9;this[_0x535d1f(0x4e1)]=_0x112cc7,this['_change$'][_0x535d1f(0x269)](_0x112cc7);}['getImageSourceCache'](_0x49b776,_0x4317ca){const _0x121484=_0x14a8b9;if(_0x4317ca===te[_0x121484(0x5ec)]['BASE64']){const _0x1fb8e2=new Image();return _0x1fb8e2[_0x121484(0x59c)]=_0x49b776,_0x1fb8e2;}return this['_imageSourceCache'][_0x121484(0x249)](_0x49b776);}[_0x14a8b9(0x611)](_0x207e55,_0x4c8876,_0xdf0b2e){const _0x373326=_0x14a8b9;_0x4c8876===te[_0x373326(0x5ec)]['BASE64']||_0xdf0b2e==null||this[_0x373326(0x360)][_0x373326(0x69e)](_0x207e55,_0xdf0b2e);}async[_0x14a8b9(0x49c)](_0x13cfec){const _0x6bf85b=_0x14a8b9;try{const _0x16b92e=this[_0x6bf85b(0x439)](this[_0x6bf85b(0x305)](),''+_0x13cfec),_0x44ba3e=(await this[_0x6bf85b(0x3d4)][_0x6bf85b(0x249)](_0x16b92e))[_0x6bf85b(0x5d9)];if(_0x44ba3e[_0x6bf85b(0x45c)]&&_0x44ba3e[_0x6bf85b(0x45c)][_0x6bf85b(0x67a)]===Ei['OK']){const _0x2c9afb=new URL(_0x44ba3e[_0x6bf85b(0x1fa)],this[_0x6bf85b(0x31d)]())['toString']();return Promise[_0x6bf85b(0x5e9)](_0x2c9afb);}return Promise[_0x6bf85b(0x596)](_0x44ba3e[_0x6bf85b(0x45c)]);}catch(_0x212c7b){return Promise[_0x6bf85b(0x596)](_0x212c7b);}}async['saveImage'](_0x41cb0b){const _0x5a5b8f=_0x14a8b9;let _0x429850='';if(!Zs[_0x5a5b8f(0x253)](_0x41cb0b[_0x5a5b8f(0x64d)]))return this['_decreaseWaiting'](),Promise[_0x5a5b8f(0x596)](new Error(te['ImageUploadStatusType'][_0x5a5b8f(0x580)]));if(_0x41cb0b['size']>Qs)return this[_0x5a5b8f(0x60d)](),Promise['reject'](new Error(te[_0x5a5b8f(0x3b6)][_0x5a5b8f(0x5dc)]));try{const _0xc23d2c=new FormData();_0xc23d2c[_0x5a5b8f(0x2d3)](_0x5a5b8f(0x69a),_0x41cb0b);const _0x5bfae0=this[_0x5a5b8f(0x564)][_0x5a5b8f(0x52b)](),_0x272908=_0x5bfae0==null?void 0x0:_0x5bfae0[_0x5a5b8f(0x63f)]();if(!_0x272908)throw new Error(_0x5a5b8f(0x4d3));const _0x199c9a=this['_getUploadFileURL']()+_0x5a5b8f(0x4ea)+_0x41cb0b['size'][_0x5a5b8f(0x208)]()+'&source='+bi['UnitEmbedded']+_0x5a5b8f(0x4e6)+encodeURIComponent(_0x272908),_0x487d71=await(await fetch(_0x199c9a,{'method':_0x5a5b8f(0x330),'body':_0xc23d2c}))['json']();if(typeof _0x487d71['FileId']!=_0x5a5b8f(0x4bd))return this[_0x5a5b8f(0x60d)](),Promise[_0x5a5b8f(0x596)](new Error(te[_0x5a5b8f(0x3b6)]['ERROR_IMAGE']));_0x429850=_0x487d71[_0x5a5b8f(0x517)];}catch{return this[_0x5a5b8f(0x60d)](),Promise['reject'](new Error(te['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x24f27f,_0x102d9d)=>{const _0x17d40e=_0x5a5b8f,_0x2e6df3=new FileReader();_0x2e6df3['readAsDataURL'](_0x41cb0b),_0x2e6df3[_0x17d40e(0x5ef)]=_0x16beb1=>{const _0x3626f3=_0x17d40e;var _0x556cb6;const _0x44f007=(_0x556cb6=_0x16beb1[_0x3626f3(0x5bd)])==null?void 0x0:_0x556cb6['result'];if(_0x44f007==null){this['_decreaseWaiting'](),_0x102d9d(new Error(te['ImageUploadStatusType'][_0x3626f3(0x414)]));return;}const _0x1bf462=a[_0x3626f3(0x625)]['generateRandomId'](0x6);_0x24f27f({'imageId':_0x1bf462,'imageSourceType':te['ImageSourceType'][_0x3626f3(0x334)],'source':_0x429850,'base64Cache':_0x44f007,'status':te['ImageUploadStatusType'][_0x3626f3(0x3bc)]}),this[_0x3626f3(0x60d)]();};});}[_0x14a8b9(0x538)](){const _0x9ac78b=_0x14a8b9;var _0x4774ad,_0x3c54c9;const _0x47d5b2=this['_configService']['getConfig'](eo),_0x7c64a3=this['_configService'][_0x9ac78b(0x2dd)](Z);return(_0x3c54c9=(_0x4774ad=_0x7c64a3==null?void 0x0:_0x7c64a3['uploadFileServerUrl'])!=null?_0x4774ad:_0x47d5b2)!=null?_0x3c54c9:to;}[_0x14a8b9(0x305)](){const _0x27617c=_0x14a8b9;var _0x1e2939,_0x550e1e;const _0x3e0af5=this[_0x27617c(0x65b)]['getConfig'](io),_0x5e9470=this[_0x27617c(0x65b)][_0x27617c(0x2dd)](Z);return(_0x550e1e=(_0x1e2939=_0x5e9470==null?void 0x0:_0x5e9470['signUrlServerUrl'])!=null?_0x1e2939:_0x3e0af5)!=null?_0x550e1e:no;}[_0x14a8b9(0x31d)](){const _0x1ea373=_0x14a8b9;var _0x1436cc;const _0x4b63fa=this[_0x1ea373(0x65b)][_0x1ea373(0x2dd)](Z);return(_0x1436cc=_0x4b63fa==null?void 0x0:_0x4b63fa['downloadEndpointUrl'])!=null?_0x1436cc:location[_0x1ea373(0x39b)];}[_0x14a8b9(0x439)](_0x1eabcb,_0x37b9a0){const _0x91b3c2=_0x14a8b9;return _0x1eabcb['replace'](_0x91b3c2(0x407),_0x37b9a0);}[_0x14a8b9(0x60d)](){const _0x20ca79=_0x14a8b9;this[_0x20ca79(0x4e1)]-=0x1,this[_0x20ca79(0x4a0)][_0x20ca79(0x269)](this['_waitCount']);}},exports[_0x14a8b9(0x277)]=Js([Ct(0x0,a[_0x14a8b9(0x1e2)](z[_0x14a8b9(0x1fe)])),Ct(0x1,a[_0x14a8b9(0x2fe)]),Ct(0x2,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x2e5)]))],exports['ImageIoService']);var ro=Object[_0x14a8b9(0x4ed)],so=Object[_0x14a8b9(0x5ee)],oo=(_0x1392ad,_0x5c8d43,_0x2e372a,_0x981f55)=>{const _0x275a75=_0x14a8b9;for(var _0x408993=_0x981f55>0x1?void 0x0:_0x981f55?so(_0x5c8d43,_0x2e372a):_0x5c8d43,_0x306a66=_0x1392ad[_0x275a75(0x4a6)]-0x1,_0x4ce65e;_0x306a66>=0x0;_0x306a66--)(_0x4ce65e=_0x1392ad[_0x306a66])&&(_0x408993=(_0x981f55?_0x4ce65e(_0x5c8d43,_0x2e372a,_0x408993):_0x4ce65e(_0x408993))||_0x408993);return _0x981f55&&_0x408993&&ro(_0x5c8d43,_0x2e372a,_0x408993),_0x408993;},_i=(_0x220fd3,_0x1c1697)=>(_0x120c0f,_0x54bedb)=>_0x1c1697(_0x120c0f,_0x54bedb,_0x220fd3);const ao=_0x14a8b9(0x4fe);exports[_0x14a8b9(0x20a)]=class{constructor(_0x491bab,_0x545e6e){const _0x182ebf=_0x14a8b9;this[_0x182ebf(0x65b)]=_0x491bab,this[_0x182ebf(0x434)]=_0x545e6e;}[_0x14a8b9(0x3bd)](){const _0x5cd43c=_0x14a8b9;var _0x55eeed,_0x50aa70;const _0x599f41=this[_0x5cd43c(0x65b)]['getConfig'](xt),_0x2f5e5e=this[_0x5cd43c(0x65b)]['getConfig'](Z);return(_0x50aa70=(_0x55eeed=_0x2f5e5e==null?void 0x0:_0x2f5e5e[_0x5cd43c(0x23a)])!=null?_0x55eeed:_0x599f41)!=null?_0x50aa70:ao;}async['list'](_0x575a0b){const _0x31695d=_0x14a8b9,_0x59f16e=this[_0x31695d(0x3bd)]()+'/collaborator';return{'list':[{'title':_0x31695d(0x563),'mentions':(await this[_0x31695d(0x434)][_0x31695d(0x249)](_0x59f16e,{'params':{'objectID':_0x575a0b[_0x31695d(0x48c)],'unitID':_0x575a0b[_0x31695d(0x48c)]}}))['body'][_0x31695d(0x522)][_0x31695d(0x531)](_0x3e85f9=>({'objectId':_0x3e85f9['id'],'name':_0x3e85f9[_0x31695d(0x30f)][_0x31695d(0x62a)],'metadata':{'icon':_0x3e85f9[_0x31695d(0x30f)][_0x31695d(0x575)]},'label':_0x3e85f9[_0x31695d(0x30f)][_0x31695d(0x62a)],'objectType':a[_0x31695d(0x2fc)]['PERSON']})),'metadata':{},'type':a[_0x31695d(0x2fc)]['PERSON']}]};}},exports[_0x14a8b9(0x20a)]=oo([_i(0x0,a['Inject'](a[_0x14a8b9(0x2fe)])),_i(0x1,a[_0x14a8b9(0x1e2)](z[_0x14a8b9(0x1fe)]))],exports[_0x14a8b9(0x20a)]);var co=Object[_0x14a8b9(0x4ed)],lo=Object[_0x14a8b9(0x5ee)],ho=(_0x2c9e2d,_0x3a1cd8,_0x231ceb,_0x1dfd67)=>{const _0x47095b=_0x14a8b9;for(var _0x163c1c=_0x1dfd67>0x1?void 0x0:_0x1dfd67?lo(_0x3a1cd8,_0x231ceb):_0x3a1cd8,_0x2c64f3=_0x2c9e2d[_0x47095b(0x4a6)]-0x1,_0x1ef3e9;_0x2c64f3>=0x0;_0x2c64f3--)(_0x1ef3e9=_0x2c9e2d[_0x2c64f3])&&(_0x163c1c=(_0x1dfd67?_0x1ef3e9(_0x3a1cd8,_0x231ceb,_0x163c1c):_0x1ef3e9(_0x163c1c))||_0x163c1c);return _0x1dfd67&&_0x163c1c&&co(_0x3a1cd8,_0x231ceb,_0x163c1c),_0x163c1c;},Ae=(_0x487836,_0x43cafc)=>(_0x5d5045,_0x280e5e)=>_0x43cafc(_0x5d5045,_0x280e5e,_0x487836);let st=class extends a[_0x14a8b9(0x51d)]{constructor(_0x445171,_0x122942,_0x4a2cf9,_0x107810,_0x54d531){const _0x3ed190=_0x14a8b9;super(),this[_0x3ed190(0x5a5)]=_0x445171,this[_0x3ed190(0x564)]=_0x122942,this[_0x3ed190(0x1e0)]=_0x4a2cf9,this[_0x3ed190(0x37a)]=_0x107810,this['_localeService']=_0x54d531,this[_0x3ed190(0x2dc)](),this[_0x3ed190(0x4ca)]();}[_0x14a8b9(0x4ca)](){const _0x1ece3a=_0x14a8b9,_0x5ce511=async _0x26e64f=>{const _0x1ebacd=_0x3122;(await this[_0x1ebacd(0x37a)][_0x1ebacd(0x621)](_0x26e64f))[_0x1ebacd(0x62b)][_0x1ebacd(0x4e7)](V[_0x1ebacd(0x2b5)](_0x23b292=>_0x23b292[_0x1ebacd(0x63e)]===m[_0x1ebacd(0x3c2)][_0x1ebacd(0x2ea)]),V[_0x1ebacd(0x32a)](this['dispose$']))[_0x1ebacd(0x32b)](_0x298c47=>{const _0x2ff18b=_0x1ebacd,_0x21cf13=_0x298c47,{reason:_0x40a1d2}=_0x21cf13[_0x2ff18b(0x396)];this[_0x2ff18b(0x5a5)][_0x2ff18b(0x249)](ee[_0x2ff18b(0x474)])[_0x2ff18b(0x384)]({'type':Ie[_0x2ff18b(0x31a)][_0x2ff18b(0x34c)],'content':this[_0x2ff18b(0x290)]['t'](_0x2ff18b(0x33f))+'('+_0x40a1d2+')'}),this[_0x2ff18b(0x1e0)]['updatePermissionPoint'](new k['WorkbookEditablePermission'](_0x26e64f)['id'],!0x1),this[_0x2ff18b(0x37a)][_0x2ff18b(0x4a7)](_0x26e64f);});};A['merge'](this['_univerInstanceService'][_0x1ece3a(0x1dc)](a[_0x1ece3a(0x5c7)][_0x1ece3a(0x2cb)]),this[_0x1ece3a(0x564)][_0x1ece3a(0x1dc)](a[_0x1ece3a(0x5c7)][_0x1ece3a(0x4b7)]))[_0x1ece3a(0x4e7)](V[_0x1ece3a(0x531)](_0x47f596=>_0x47f596[_0x1ece3a(0x63f)]()),V['filter'](_0x21c213=>!a[_0x1ece3a(0x4f5)](_0x21c213)),V[_0x1ece3a(0x32a)](this['dispose$']))[_0x1ece3a(0x32b)](_0x33067b=>{_0x5ce511(_0x33067b);});}[_0x14a8b9(0x2dc)](){const _0x341ec0=_0x14a8b9,_0x274ec9=async _0x5c3c4b=>{const _0xac2bf3=_0x3122;(await this[_0xac2bf3(0x37a)][_0xac2bf3(0x621)](_0x5c3c4b))[_0xac2bf3(0x62b)]['pipe'](V[_0xac2bf3(0x2b5)](_0xcf514b=>_0xcf514b['eventID']===m[_0xac2bf3(0x3c2)][_0xac2bf3(0x3e8)]),V['takeUntil'](this[_0xac2bf3(0x555)]))['subscribe'](_0x3f65d4=>{const _0x4f44b4=_0xac2bf3,_0x1ce97f=_0x3f65d4,{objectId:_0x161c12}=_0x1ce97f[_0x4f44b4(0x396)],_0x137998=this[_0x4f44b4(0x5a5)]['get'](Re['SheetPermissionInitController']);_0x161c12===_0x5c3c4b?_0x137998['initWorkbookPermissionChange'](_0x5c3c4b):_0x137998['refreshPermission'](_0x5c3c4b,_0x161c12);});};A['merge'](this['_univerInstanceService'][_0x341ec0(0x1dc)](a[_0x341ec0(0x5c7)][_0x341ec0(0x2cb)]),this[_0x341ec0(0x564)][_0x341ec0(0x1dc)](a[_0x341ec0(0x5c7)][_0x341ec0(0x4b7)]))[_0x341ec0(0x4e7)](V['map'](_0x177f6b=>_0x177f6b[_0x341ec0(0x63f)]()),V['filter'](_0x14fead=>!a[_0x341ec0(0x4f5)](_0x14fead)),V[_0x341ec0(0x32a)](this[_0x341ec0(0x555)]))['subscribe'](_0x2e2681=>{_0x274ec9(_0x2e2681);});}};st=ho([Ae(0x0,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),Ae(0x1,a[_0x14a8b9(0x2e5)]),Ae(0x2,a[_0x14a8b9(0x3a3)]),Ae(0x3,a[_0x14a8b9(0x1e2)](exports[_0x14a8b9(0x521)])),Ae(0x4,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x3de)]))],st);var _o=Object['defineProperty'],uo=Object[_0x14a8b9(0x5ee)],fo=(_0x85d4e6,_0x2e370e,_0x2e95ae,_0x5abab1)=>{const _0x573305=_0x14a8b9;for(var _0x3db6a0=_0x5abab1>0x1?void 0x0:_0x5abab1?uo(_0x2e370e,_0x2e95ae):_0x2e370e,_0x2a080b=_0x85d4e6[_0x573305(0x4a6)]-0x1,_0x3fcdda;_0x2a080b>=0x0;_0x2a080b--)(_0x3fcdda=_0x85d4e6[_0x2a080b])&&(_0x3db6a0=(_0x5abab1?_0x3fcdda(_0x2e370e,_0x2e95ae,_0x3db6a0):_0x3fcdda(_0x3db6a0))||_0x3db6a0);return _0x5abab1&&_0x3db6a0&&_o(_0x2e370e,_0x2e95ae,_0x3db6a0),_0x3db6a0;},ui=(_0x15f278,_0x12afb0)=>(_0x5e1593,_0x2bee64)=>_0x12afb0(_0x5e1593,_0x2bee64,_0x15f278);exports[_0x14a8b9(0x35e)]=class{constructor(_0x1cdf89,_0x38f57c){this['_configService']=_0x1cdf89,this['_httpService']=_0x38f57c;}async['getUnitOnRev'](_0x3d5e24,_0x1290a7){const _0x19a340=_0x14a8b9;var _0x5922a2;const {unitID:_0x3849a5,type:_0x568402,revision:_0x3b0b35=0x0}=_0x1290a7,_0x656090=this[_0x19a340(0x47e)]()+'/'+_0x568402+_0x19a340(0x1f9)+_0x3849a5+'/rev/'+_0x3b0b35,_0x240bf0=(await this[_0x19a340(0x3d4)][_0x19a340(0x249)](_0x656090))[_0x19a340(0x5d9)],_0x146cd0=(_0x5922a2=_0x240bf0[_0x19a340(0x250)])==null?void 0x0:_0x5922a2[_0x19a340(0x661)];if(_0x146cd0){const _0xbf876c=_0x146cd0==null?void 0x0:_0x146cd0[_0x19a340(0x676)],_0x2c8133=m[_0x19a340(0x205)][_0x19a340(0x216)](m['b64DecodeUnicode'](_0xbf876c));_0x146cd0[_0x19a340(0x676)]=_0x2c8133,Object[_0x19a340(0x3ec)](_0x146cd0[_0x19a340(0x660)])[_0x19a340(0x4cd)](([,_0x52e403])=>{const _0x5adb0=_0x19a340,_0xa00211=_0x52e403[_0x5adb0(0x676)],_0x4a96c0=m[_0x5adb0(0x205)][_0x5adb0(0x216)](m[_0x5adb0(0x22b)](_0xa00211));_0x52e403[_0x5adb0(0x676)]=_0x4a96c0;});}return _0x240bf0;}async[_0x14a8b9(0x213)](_0x295abe,_0x40877a){const _0x3f6eed=_0x14a8b9,{unitID:_0x108c75,type:_0x2f8e24,blockID:_0x25eb1c}=_0x40877a,_0x453be1=this[_0x3f6eed(0x509)]()+'/'+_0x2f8e24+'/unit/'+_0x108c75+_0x3f6eed(0x554)+_0x25eb1c;return(await this[_0x3f6eed(0x3d4)][_0x3f6eed(0x249)](_0x453be1))[_0x3f6eed(0x5d9)];}async['getDeserializedSheetBlock'](_0x298d36,_0x1c9664){const _0x54f378=_0x14a8b9,{unitID:_0x506071,type:_0x4af5c9,blockID:_0x247348}=_0x1c9664,_0x3d932e=this[_0x54f378(0x509)]()+_0x54f378(0x554)+_0x4af5c9+_0x54f378(0x1f9)+_0x506071+_0x54f378(0x554)+_0x247348;return(await this[_0x54f378(0x3d4)][_0x54f378(0x249)](_0x3d932e))[_0x54f378(0x5d9)];}async[_0x14a8b9(0x478)](_0xac2a22,_0x53f2f2){const _0xc2af6c=_0x14a8b9,{unitID:_0x50206d,type:_0x54acab,from:_0x51888b,to:_0x40b727}=_0x53f2f2,_0x50e0b4=this[_0xc2af6c(0x509)]()+'/'+_0x54acab+_0xc2af6c(0x1f9)+_0x50206d+'/fetchmissing?from='+_0x51888b+_0xc2af6c(0x637)+_0x40b727;return(await this[_0xc2af6c(0x3d4)]['get'](_0x50e0b4))[_0xc2af6c(0x5d9)];}[_0x14a8b9(0x47e)](){const _0x1490bc=_0x14a8b9;var _0x567dca;return(_0x567dca=this['_configService']['getConfig'](fi))!=null?_0x567dca:this[_0x1490bc(0x509)]();}[_0x14a8b9(0x509)](){const _0x599d13=_0x14a8b9;var _0x49ef9c,_0x47fe7b;const _0x29aab5=this[_0x599d13(0x65b)]['getConfig'](di),_0x57fa22=this[_0x599d13(0x65b)][_0x599d13(0x2dd)](Z);return(_0x47fe7b=(_0x49ef9c=_0x57fa22==null?void 0x0:_0x57fa22[_0x599d13(0x259)])!=null?_0x49ef9c:_0x29aab5)!=null?_0x47fe7b:Yi;}async['getResourcesRequest'](_0x211439,_0x4fd8a7){const _0x73e55c=_0x14a8b9,_0xc2e400=_0x73e55c(0x309)+_0x4fd8a7[_0x73e55c(0x64d)]+_0x73e55c(0x1f9)+_0x4fd8a7[_0x73e55c(0x5b7)]+_0x73e55c(0x27e);return(await this[_0x73e55c(0x3d4)][_0x73e55c(0x249)](_0xc2e400,{'params':{'resourceId':JSON[_0x73e55c(0x659)](_0x4fd8a7[_0x73e55c(0x3be)])}}))['body'];}[_0x14a8b9(0x636)](){const _0x3e711f=_0x14a8b9;throw new Error(_0x3e711f(0x3dd));}[_0x14a8b9(0x3e3)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x14a8b9(0x515)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x14a8b9(0x22d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x14a8b9(0x283)](){const _0x4de789=_0x14a8b9;throw new Error(_0x4de789(0x3dd));}},exports['SnapshotServerOverHTTPService']=fo([ui(0x0,a[_0x14a8b9(0x2fe)]),ui(0x1,a['Inject'](z[_0x14a8b9(0x1fe)]))],exports[_0x14a8b9(0x35e)]);var vo=Object['defineProperty'],po=Object[_0x14a8b9(0x5ee)],So=(_0x40f8f5,_0x13ef52,_0x30738c,_0x2d55db)=>{const _0x3be0a2=_0x14a8b9;for(var _0x30e910=_0x2d55db>0x1?void 0x0:_0x2d55db?po(_0x13ef52,_0x30738c):_0x13ef52,_0x64d9db=_0x40f8f5[_0x3be0a2(0x4a6)]-0x1,_0x776c37;_0x64d9db>=0x0;_0x64d9db--)(_0x776c37=_0x40f8f5[_0x64d9db])&&(_0x30e910=(_0x2d55db?_0x776c37(_0x13ef52,_0x30738c,_0x30e910):_0x776c37(_0x30e910))||_0x30e910);return _0x2d55db&&_0x30e910&&vo(_0x13ef52,_0x30738c,_0x30e910),_0x30e910;},Ne=(_0x283c03,_0x38bfe5)=>(_0x22b1fe,_0x22c634)=>_0x38bfe5(_0x22b1fe,_0x22c634,_0x283c03);let yt=class extends a[_0x14a8b9(0x3b5)]{constructor(_0x1afa29,_0x1c0823,_0x1237fe,_0x1a0c7d,_0x1b9cb0){const _0x23a633=_0x14a8b9;super(_0x1afa29,_0x1c0823,_0x1237fe),this[_0x23a633(0x36f)]=_0x1a0c7d,this[_0x23a633(0x618)]=_0x1b9cb0;}[_0x14a8b9(0x585)](_0x1705ce,_0x10a585){const _0x3baf69=_0x14a8b9,_0xfdf15b=this[_0x3baf69(0x3fa)](_0x1705ce);if(_0xfdf15b)try{const _0x134487=this[_0x3baf69(0x2de)](_0xfdf15b,_0x10a585);this['_substituteUndoStack'](_0x1705ce,_0x134487);}catch(_0x45ad73){this[_0x3baf69(0x618)][_0x3baf69(0x45c)](_0x3baf69(0x5f6),_0x45ad73),this[_0x3baf69(0x433)](_0x1705ce);}const _0x2c68e6=this['_getRedoStack'](_0x1705ce);if(_0x2c68e6)try{const _0x5ac056=this[_0x3baf69(0x2de)](_0x2c68e6,_0x10a585);this[_0x3baf69(0x327)](_0x1705ce,_0x5ac056);}catch(_0x1c3a78){this[_0x3baf69(0x618)][_0x3baf69(0x45c)](_0x1c3a78),this[_0x3baf69(0x5ed)](_0x1705ce);}}['_clearUndo'](_0xe76683){const _0x48888d=_0x14a8b9,_0x2a112b=this[_0x48888d(0x3fa)](_0xe76683);_0x2a112b&&(_0x2a112b['length']=0x0,this[_0x48888d(0x46d)]());}[_0x14a8b9(0x5ed)](_0x1561e4){const _0x34f705=_0x14a8b9,_0xc1eb65=this[_0x34f705(0x5a7)](_0x1561e4);_0xc1eb65&&(_0xc1eb65['length']=0x0,this[_0x34f705(0x46d)]());}[_0x14a8b9(0x43d)](_0x1c113e,_0x57bbde){const _0x46cf9e=_0x14a8b9;this[_0x46cf9e(0x228)]['set'](_0x1c113e,_0x57bbde),this['_updateStatus']();}[_0x14a8b9(0x327)](_0x20caf7,_0x13dbb9){const _0x315f7d=_0x14a8b9;this['_redoStacks'][_0x315f7d(0x69e)](_0x20caf7,_0x13dbb9),this[_0x315f7d(0x46d)]();}[_0x14a8b9(0x2de)](_0x45efe8,_0x99f0aa){const _0x181c84=_0x14a8b9,_0x319f41=[];let _0x1ba78c=_0x99f0aa,_0x38949e=_0x99f0aa;for(let _0x2880a4=_0x45efe8[_0x181c84(0x4a6)]-0x1;_0x2880a4>=0x0;_0x2880a4--){const {unitID:_0x379509,undoMutations:_0x46a633,redoMutations:_0x5abcbb}=_0x45efe8[_0x2880a4],_0x5a4923=this[_0x181c84(0x36f)][_0x181c84(0x36a)](_0x1ba78c,_0x46a633),_0x237437=this[_0x181c84(0x36f)]['transformMutationsWithChangeset'](_0x38949e,_0x5abcbb);if(m[_0x181c84(0x41d)](_0x5a4923)||m['isTransformMutationsWithChangesetFailure'](_0x237437)){this[_0x181c84(0x618)]['error']('[CollaborationUndoRedoService]',_0x181c84(0x1de),_0x5a4923,_0x237437);break;}_0x1ba78c=_0x5a4923[_0x181c84(0x5e5)],_0x38949e=_0x237437[_0x181c84(0x5e5)],_0x319f41[_0x181c84(0x5a8)]({'unitID':_0x379509,'undoMutations':_0x5a4923[_0x181c84(0x4b1)],'redoMutations':_0x237437[_0x181c84(0x4b1)]});}return _0x319f41[_0x181c84(0x34f)]();}};yt=So([Ne(0x0,a[_0x14a8b9(0x2e5)]),Ne(0x1,a['ICommandService']),Ne(0x2,a[_0x14a8b9(0x2b0)]),Ne(0x3,m[_0x14a8b9(0x3f8)]),Ne(0x4,a['ILogService'])],yt);class Bi extends a['RxDisposable']{constructor(){const _0x2ce15=_0x14a8b9;super(),I(this,_0x2ce15(0x26e)),this[_0x2ce15(0x26e)]=A[_0x2ce15(0x5c0)](window,_0x2ce15(0x22c))[_0x2ce15(0x4e7)](A[_0x2ce15(0x32a)](this['dispose$']),A[_0x2ce15(0x2f3)](0x1),A[_0x2ce15(0x567)](void 0x0));}[_0x14a8b9(0x493)](_0x5036b0,_0x377489,_0x192d28=!0x1){const _0x1e24ce=_0x14a8b9,_0x1e96d4=new URL(window[_0x1e24ce(0x31b)][_0x1e24ce(0x557)]);_0x1e96d4['searchParams'][_0x1e24ce(0x69e)](_0x5036b0,_0x377489),_0x192d28?window[_0x1e24ce(0x40f)][_0x1e24ce(0x614)]('','',_0x1e96d4['toString']()):window[_0x1e24ce(0x40f)][_0x1e24ce(0x234)]('','',_0x1e96d4[_0x1e24ce(0x208)]());}['removeParam'](_0x1c41b9,_0x56096b=!0x1){const _0x299640=_0x14a8b9,_0x2bb554=new URL(window['location'][_0x299640(0x557)]);_0x2bb554[_0x299640(0x4b8)][_0x299640(0x5b6)](_0x1c41b9),_0x56096b?window[_0x299640(0x40f)][_0x299640(0x614)]('','',_0x2bb554[_0x299640(0x208)]()):window['history'][_0x299640(0x234)]('','',_0x2bb554['toString']());}[_0x14a8b9(0x5fe)](_0x172f84){const _0x3b55cc=_0x14a8b9;var _0x3a6a16;return(_0x3a6a16=new URL(window['location'][_0x3b55cc(0x557)])[_0x3b55cc(0x4b8)][_0x3b55cc(0x249)](_0x172f84))!=null?_0x3a6a16:void 0x0;}}var ki=Object['defineProperty'],mo=Object['getOwnPropertyDescriptor'],go=(_0x3bb655,_0x5c278e,_0x129ba1)=>_0x5c278e in _0x3bb655?ki(_0x3bb655,_0x5c278e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x129ba1}):_0x3bb655[_0x5c278e]=_0x129ba1,Io=(_0x50c8c6,_0x5dce5c,_0x271e1c,_0x257858)=>{for(var _0x4f9052=_0x257858>0x1?void 0x0:_0x257858?mo(_0x5dce5c,_0x271e1c):_0x5dce5c,_0x144d34=_0x50c8c6['length']-0x1,_0x569f91;_0x144d34>=0x0;_0x144d34--)(_0x569f91=_0x50c8c6[_0x144d34])&&(_0x4f9052=(_0x257858?_0x569f91(_0x5dce5c,_0x271e1c,_0x4f9052):_0x569f91(_0x4f9052))||_0x4f9052);return _0x257858&&_0x4f9052&&ki(_0x5dce5c,_0x271e1c,_0x4f9052),_0x4f9052;},He=(_0x4374a3,_0x6c35a1)=>(_0x2627f4,_0x410860)=>_0x6c35a1(_0x2627f4,_0x410860,_0x4374a3),Co=(_0x343712,_0x3eebf9,_0x1e90e4)=>go(_0x343712,_0x3eebf9+'',_0x1e90e4);const Eo='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x14a8b9(0x2b6)]=class extends a['Plugin']{constructor(_0x14d20c=rn,_0xbcc5ab,_0x364e40,_0x884a36,_0x1a280a){const _0x3b1fa0=_0x14a8b9;super(),this[_0x3b1fa0(0x29f)]=_0x14d20c,this[_0x3b1fa0(0x618)]=_0xbcc5ab,this['_renderManagerService']=_0x364e40,this[_0x3b1fa0(0x5a5)]=_0x884a36,this[_0x3b1fa0(0x65b)]=_0x1a280a;const {..._0x2feb92}=this[_0x3b1fa0(0x29f)];this[_0x3b1fa0(0x65b)][_0x3b1fa0(0x627)](Z,_0x2feb92);}[_0x14a8b9(0x2fd)](){const _0x4f40ea=_0x14a8b9;this[_0x4f40ea(0x5c9)](),this[_0x4f40ea(0x5a6)]();}[_0x14a8b9(0x658)](){a['touchDependencies'](this['_injector'],[[it],[tt]]);}['onRendered'](){const _0x285361=_0x14a8b9;this[_0x285361(0x26c)]();}[_0x14a8b9(0x5c9)](){const _0x34caa1=_0x14a8b9;var _0x4c02d5,_0x4154b6,_0x68786a,_0x2630b1;this[_0x34caa1(0x5a5)][_0x34caa1(0x3fd)](a[_0x34caa1(0x4dd)])&&this[_0x34caa1(0x618)][_0x34caa1(0x45c)](_0x34caa1(0x1e8),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');const _0x3befd7=[[a[_0x34caa1(0x4dd)],{'useClass':yt}],[exports[_0x34caa1(0x521)]],[At],[Lt,{'useClass':Bi}],[exports[_0x34caa1(0x457)]],[exports[_0x34caa1(0x3b9)]],[z[_0x34caa1(0x58d)]],[Ze],[et],[Je],[Qe],[Ut],[nt],[rt],[wt],[st],[Pt,{'useClass':(_0x4154b6=(_0x4c02d5=this[_0x34caa1(0x29f)])==null?void 0x0:_0x4c02d5['socketService'])!=null?_0x4154b6:exports['CollaborationSocketService']}],[m[_0x34caa1(0x36d)],{'useClass':exports[_0x34caa1(0x35e)]}],[a[_0x34caa1(0x671)],{'useClass':exports[_0x34caa1(0x547)]}],[te[_0x34caa1(0x667)],{'useClass':exports[_0x34caa1(0x277)]}],[a[_0x34caa1(0x2f2)],{'useClass':exports[_0x34caa1(0x20a)]}],[exports[_0x34caa1(0x24d)]],[exports[_0x34caa1(0x5e4)]],[exports[_0x34caa1(0x69d)]],[it],[Oe],[tt]];(_0x68786a=this[_0x34caa1(0x29f)])!=null&&_0x68786a['enableSingleActiveInstanceLock']&&_0x3befd7[_0x34caa1(0x5a8)]([ot,{'useClass':xn}]),a[_0x34caa1(0x584)](this[_0x34caa1(0x5a5)],a[_0x34caa1(0x4e8)](_0x3befd7,(_0x2630b1=this['_config'])==null?void 0x0:_0x2630b1[_0x34caa1(0x4bc)]));}[_0x14a8b9(0x26c)](){const _0x35ae2e=_0x14a8b9;this[_0x35ae2e(0x622)](this[_0x35ae2e(0x412)][_0x35ae2e(0x56d)](a['UniverInstanceType'][_0x35ae2e(0x4b7)],[Tt])),this['disposeWithMe'](this['_renderManagerService'][_0x35ae2e(0x56d)](a['UniverInstanceType'][_0x35ae2e(0x2cb)],[Rt]));}[_0x14a8b9(0x5a6)](){const _0x10ab52=_0x14a8b9;var _0x356ca4,_0x85e776;this[_0x10ab52(0x5a5)]['get'](z['HTTPService'])[_0x10ab52(0x282)]({'priority':0x14,'interceptor':z['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x356ca4=this[_0x10ab52(0x29f)])!=null&&_0x356ca4[_0x10ab52(0x69b)]||this['_injector'][_0x10ab52(0x249)](exports[_0x10ab52(0x3b9)])[_0x10ab52(0x388)](),(_0x85e776=this[_0x10ab52(0x29f)])!=null&&_0x85e776[_0x10ab52(0x245)]&&a['touchDependencies'](this['_injector'],[[nt]]),a[_0x10ab52(0x395)](this['_injector'],[[rt],[Oe],[exports[_0x10ab52(0x5e4)]],[exports['CollaborationController']],[exports[_0x10ab52(0x69d)]],[st]]);}},Co(exports[_0x14a8b9(0x2b6)],_0x14a8b9(0x5c6),Eo),exports[_0x14a8b9(0x2b6)]=Io([a[_0x14a8b9(0x20b)](m[_0x14a8b9(0x459)],z['UniverNetworkPlugin']),He(0x1,a[_0x14a8b9(0x1df)]),He(0x2,q[_0x14a8b9(0x5fc)]),He(0x3,a[_0x14a8b9(0x1e2)](a[_0x14a8b9(0x24b)])),He(0x4,a[_0x14a8b9(0x2fe)])],exports['UniverCollaborationClientPlugin']),exports[_0x14a8b9(0x4a2)]=xt,exports[_0x14a8b9(0x615)]=Z,exports[_0x14a8b9(0x51c)]=Ii,exports[_0x14a8b9(0x312)]=vi,exports[_0x14a8b9(0x25b)]=K,exports['CollaborationStatusDisplay']=xi,exports['CommentService']=wt,exports[_0x14a8b9(0x2da)]=pi,exports[_0x14a8b9(0x513)]=Ot,exports[_0x14a8b9(0x49f)]=Pt,exports[_0x14a8b9(0x332)]=Lt,exports['LOCAL_CACHE_INTERVAL_KEY']=gi,exports[_0x14a8b9(0x577)]=Ci,exports[_0x14a8b9(0x527)]=mi,exports[_0x14a8b9(0x389)]=qi,exports[_0x14a8b9(0x37f)]=di,exports[_0x14a8b9(0x483)]=fi,exports[_0x14a8b9(0x398)]=ne,exports['SheetCollabCursorShape']=Ui,exports['WebURLService']=Bi,exports[_0x14a8b9(0x476)]=Ti,exports['serializeCombRequest']=Ri;