@univerjs-pro/collaboration-client 0.4.1-nightly.202410241606 → 0.4.1-nightly.202410251606
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/member/member.service.d.ts +39 -0
- package/lib/umd/index.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x3cc0f6=_0x10ac;(function(_0x4ea655,_0x21108a){const _0x227ef2=_0x10ac,_0x4a3bc9=_0x4ea655();while(!![]){try{const _0xac3d3f=-parseInt(_0x227ef2(0x5df))/0x1+-parseInt(_0x227ef2(0x4c6))/0x2+-parseInt(_0x227ef2(0x222))/0x3*(-parseInt(_0x227ef2(0x41a))/0x4)+parseInt(_0x227ef2(0x53f))/0x5+-parseInt(_0x227ef2(0x205))/0x6*(-parseInt(_0x227ef2(0x5ae))/0x7)+parseInt(_0x227ef2(0x231))/0x8+-parseInt(_0x227ef2(0x4bd))/0x9;if(_0xac3d3f===_0x21108a)break;else _0x4a3bc9['push'](_0x4a3bc9['shift']());}catch(_0x315ba7){_0x4a3bc9['push'](_0x4a3bc9['shift']());}}}(_0x48f6,0x5c5ef));var Yt=Object[_0x3cc0f6(0x1c6)],Kt=(_0x2dc60b,_0x6ca6d6,_0x425e5b)=>_0x6ca6d6 in _0x2dc60b?Yt(_0x2dc60b,_0x6ca6d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425e5b}):_0x2dc60b[_0x6ca6d6]=_0x425e5b,u=(_0x10b12c,_0x161ac2,_0x525c70)=>Kt(_0x10b12c,typeof _0x161ac2!=_0x3cc0f6(0x269)?_0x161ac2+'':_0x161ac2,_0x525c70);Object[_0x3cc0f6(0x1c6)](exports,Symbol[_0x3cc0f6(0x27f)],{'value':_0x3cc0f6(0x2a5)});const a=require(_0x3cc0f6(0x271)),v=require(_0x3cc0f6(0x386)),E=require(_0x3cc0f6(0x2fa)),J=require(_0x3cc0f6(0x2a2)),A=require(_0x3cc0f6(0x334)),U=require(_0x3cc0f6(0x371)),_=require('@univerjs-pro/collaboration'),Xt=require(_0x3cc0f6(0x265)),N=require(_0x3cc0f6(0x59e)),C=require('@univerjs/sheets'),O=require(_0x3cc0f6(0x404)),re=require(_0x3cc0f6(0x1c2)),j=require('@univerjs/drawing'),et=require(_0x3cc0f6(0x461)),ne=require(_0x3cc0f6(0x24b)),y=require(_0x3cc0f6(0x4a8)),qt=require(_0x3cc0f6(0x2e4)),zt=require('@univerjs-pro/license'),St=_0x3cc0f6(0x2c2),Jt='/universer-api/snapshot',vt=_0x3cc0f6(0x327),Zt=_0x3cc0f6(0x475),Qt=0x7d0,mt=_0x3cc0f6(0x4ca),es=_0x3cc0f6(0x2ec),gt='HEARTBEAT_INTERVAL',ts=0x7530,Ge=_0x3cc0f6(0x3d1),ft=0x4e20,ss=0x4e20,It=_0x3cc0f6(0x28d),is=0x3,pt='LOCAL_CACHE_INTERVAL',ns=0x3e8,Ct='COLLAB_SUBMIT_CHANGESET_URL',rs=_0x3cc0f6(0x5a0),Et='LOGIN_URL_KEY',os=_0x3cc0f6(0x37c);var bt=(_0x4a3f09=>(_0x4a3f09[_0x4a3f09['UNDEFINED']=0x0]='UNDEFINED',_0x4a3f09[_0x4a3f09['OK']=0x1]='OK',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x360)]=0x2]=_0x3cc0f6(0x360),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x1f7)]=0x3]=_0x3cc0f6(0x1f7),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x5ab)]=0x4]=_0x3cc0f6(0x5ab),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x34e)]=0x5]=_0x3cc0f6(0x34e),_0x4a3f09[_0x4a3f09['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x54b)]=0x7]=_0x3cc0f6(0x54b),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x213)]=0x8]=_0x3cc0f6(0x213),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x1cc)]=0x9]='COMPLETION_FINISHED',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x278)]=0x1389]=_0x3cc0f6(0x278),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x291)]=0x1771]=_0x3cc0f6(0x291),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x558)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x392)]=0x1773]=_0x3cc0f6(0x392),_0x4a3f09[_0x4a3f09['APPLY_REJECT']=0x1b59]=_0x3cc0f6(0x4c7),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x441)]=0x1b5a]=_0x3cc0f6(0x441),_0x4a3f09[_0x4a3f09['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x549)]=0x1b5c]=_0x3cc0f6(0x549),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x30a)]=0x1b5d]=_0x3cc0f6(0x30a),_0x4a3f09[_0x4a3f09['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3cc0f6(0x22d),_0x4a3f09[_0x4a3f09['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3cc0f6(0x365),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x53d)]=0x232a]=_0x3cc0f6(0x53d),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x2ee)]=0x232b]=_0x3cc0f6(0x2ee),_0x4a3f09[_0x4a3f09['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3cc0f6(0x453),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x47b)]=0x232d]=_0x3cc0f6(0x47b),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x326)]=0x2711]=_0x3cc0f6(0x326),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x2a7)]=0x2712]=_0x3cc0f6(0x2a7),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x37f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4a3f09[_0x4a3f09['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x4a3f09))(bt||{}),H=(_0x560814=>(_0x560814[_0x560814[_0x3cc0f6(0x258)]=0x0]=_0x3cc0f6(0x258),_0x560814[_0x560814[_0x3cc0f6(0x3c6)]=0x1]=_0x3cc0f6(0x3c6),_0x560814[_0x560814[_0x3cc0f6(0x336)]=0x2]=_0x3cc0f6(0x336),_0x560814[_0x560814[_0x3cc0f6(0x477)]=0x3]=_0x3cc0f6(0x477),_0x560814[_0x560814[_0x3cc0f6(0x37e)]=0x4]=_0x3cc0f6(0x37e),_0x560814[_0x560814[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x560814))(H||{}),b=(_0x2da020=>(_0x2da020[_0x2da020[_0x3cc0f6(0x4ce)]=0x0]=_0x3cc0f6(0x4ce),_0x2da020[_0x2da020[_0x3cc0f6(0x491)]=0x1]='HELLO',_0x2da020[_0x2da020[_0x3cc0f6(0x516)]=0x2]=_0x3cc0f6(0x516),_0x2da020[_0x2da020[_0x3cc0f6(0x409)]=0x3]=_0x3cc0f6(0x409),_0x2da020[_0x2da020['INGEST']=0x4]=_0x3cc0f6(0x3ab),_0x2da020[_0x2da020['HEARTBEAT']=0x5]=_0x3cc0f6(0x3e2),_0x2da020[_0x2da020[_0x3cc0f6(0x515)]=0x6]='RECV',_0x2da020[_0x2da020[_0x3cc0f6(0x505)]=-0x1]='UNRECOGNIZED',_0x2da020))(b||{}),Ye=(_0x13f139=>(_0x13f139[_0x13f139['UNKNOWN_CODE']=0x0]=_0x3cc0f6(0x4fb),_0x13f139[_0x13f139['OK']=0x1]='OK',_0x13f139[_0x13f139['FAIL']=0x2]=_0x3cc0f6(0x499),_0x13f139[_0x13f139[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x13f139))(Ye||{}),Tt=(_0x4a68ad=>(_0x4a68ad[_0x4a68ad['Undefined']=0x0]='Undefined',_0x4a68ad[_0x4a68ad['HttpImport']=0x1]='HttpImport',_0x4a68ad[_0x4a68ad[_0x3cc0f6(0x307)]=0x2]='HttpExport',_0x4a68ad[_0x4a68ad['UnitEmbedded']=0x3]=_0x3cc0f6(0x43c),_0x4a68ad[_0x4a68ad['UnitSnapshot']=0x4]=_0x3cc0f6(0x398),_0x4a68ad[_0x4a68ad[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x4a68ad))(Tt||{});const $=_0x3cc0f6(0x30b),as={};function Rt(_0xac5a74){const _0x53ca49=_0x3cc0f6;var _0x34b95e,_0x219445,_0x170154,_0x360f6a,_0x2583ce;const _0x517040=_0xac5a74[_0x53ca49(0x35a)],_0xd98a66=JSON[_0x53ca49(0x5b4)](_0x517040);switch(_0xd98a66['cmd']){case b[_0x53ca49(0x3e2)]:case b[_0x53ca49(0x491)]:{const _0x7be9ed=_0xd98a66[_0x53ca49(0x5b9)];return{..._0xd98a66,'data':_0x7be9ed,'cmd':_0xd98a66['cmd']};}case b[_0x53ca49(0x516)]:{const _0x3769f3=_0xd98a66['joinRsp'];return{..._0xd98a66,'data':_0x3769f3,'cmd':_0xd98a66[_0x53ca49(0x1e5)]};}case b[_0x53ca49(0x515)]:{const _0x321f53=_0xd98a66[_0x53ca49(0x3a3)];switch(_0x321f53[_0x53ca49(0x21b)]){case _['CollaborationEvent'][_0x53ca49(0x5ac)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x34b95e=_0x321f53[_0x53ca49(0x538)])==null?void 0x0:_0x34b95e['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)][_0x53ca49(0x29c)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x219445=_0x321f53['csAckEvent'])==null?void 0x0:_0x219445['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)][_0x53ca49(0x3aa)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x170154=_0x321f53['newCsEvent'])==null?void 0x0:_0x170154['cs']},'cmd':_0xd98a66['cmd']};case _[_0x53ca49(0x400)][_0x53ca49(0x43a)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x360f6a=_0x321f53[_0x53ca49(0x594)])==null?void 0x0:_0x360f6a['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)]['CHANGESET_SHOULD_RETRY']:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x2583ce=_0x321f53[_0x53ca49(0x3f8)])==null?void 0x0:_0x2583ce['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _['CollaborationEvent'][_0x53ca49(0x284)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x41f)]},'cmd':_0xd98a66['cmd']};case _['CollaborationEvent'][_0x53ca49(0x3a0)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53['joinEvent']},'cmd':_0xd98a66['cmd']};case _[_0x53ca49(0x400)][_0x53ca49(0x5cf)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x2a1)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _['CollaborationEvent'][_0x53ca49(0x2e3)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x59f)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)][_0x53ca49(0x542)]:case _[_0x53ca49(0x400)][_0x53ca49(0x349)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x22b)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x59f)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)]['MSG_FOR_ERROR']:return{..._0xd98a66,'data':_0x321f53,'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)]['COMMENT_UPDATE']:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x4c1)]},'cmd':_0xd98a66['cmd']};case _['CollaborationEvent'][_0x53ca49(0x1d8)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53['updatePermissionObjEvent']},'cmd':_0xd98a66['cmd']};case _['CollaborationEvent'][_0x53ca49(0x2f5)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x528)]},'cmd':_0xd98a66['cmd']};default:return _0xd98a66;}}default:return _0xd98a66;}}function Ot(_0x29414b){const _0x18a975=_0x3cc0f6;switch(_0x29414b[_0x18a975(0x1e5)]){case b[_0x18a975(0x3e2)]:case b['HELLO']:return JSON[_0x18a975(0x492)]({'cmd':_0x29414b['cmd'],'routeKey':_0x29414b[_0x18a975(0x242)]});case b['INGEST']:{let _0x7c91d4;switch(_0x29414b['data'][_0x18a975(0x21b)]){case _[_0x18a975(0x400)][_0x18a975(0x284)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)]['UPDATE_CURSOR'],'updateCursorEvent':_0x29414b[_0x18a975(0x35a)]['data']};break;}case _[_0x18a975(0x400)]['USERS_LEAVE']:{_0x7c91d4={'eventID':_['CollaborationEvent'][_0x18a975(0x5cf)],'leaveEvent':_0x29414b[_0x18a975(0x35a)][_0x18a975(0x35a)]};break;}case _[_0x18a975(0x400)][_0x18a975(0x3a0)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x3a0)],'joinEvent':_0x29414b[_0x18a975(0x35a)]['data']};break;}case _[_0x18a975(0x400)]['LIVESHARE_NEW_HOST']:{_0x7c91d4={'eventID':_[_0x18a975(0x400)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x29414b['data'][_0x18a975(0x35a)]};break;}case _['CollaborationEvent'][_0x18a975(0x349)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x349)],'liveShareOperation':_0x29414b['data'][_0x18a975(0x35a)]};break;}case _[_0x18a975(0x400)][_0x18a975(0x3c9)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x3c9)],'liveShareTerminate':_0x29414b[_0x18a975(0x35a)]['data']};break;}case _[_0x18a975(0x400)][_0x18a975(0x2b6)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x2b6)],'liveShareRequestHost':_0x29414b[_0x18a975(0x35a)][_0x18a975(0x35a)]};break;}case _[_0x18a975(0x400)][_0x18a975(0x542)]:{_0x7c91d4={'eventID':_['CollaborationEvent'][_0x18a975(0x542)]};break;}default:_0x7c91d4={'eventID':_0x29414b[_0x18a975(0x35a)][_0x18a975(0x21b)]};}return JSON[_0x18a975(0x492)]({'cmd':_0x29414b['cmd'],'routeKey':_0x29414b['routeKey'],'collaMsg':_0x7c91d4});}case b['JOIN']:return JSON[_0x18a975(0x492)]({'cmd':_0x29414b[_0x18a975(0x1e5)],'routeKey':_0x29414b['routeKey'],'joinReq':_0x29414b[_0x18a975(0x35a)]});case b[_0x18a975(0x409)]:return JSON[_0x18a975(0x492)]({'cmd':_0x29414b[_0x18a975(0x1e5)],'routeKey':_0x29414b[_0x18a975(0x242)],'leaveReq':_0x29414b['data']});default:throw new Error(_0x18a975(0x2cf));}}var cs=Object['defineProperty'],ls=Object['getOwnPropertyDescriptor'],hs=(_0x26a37c,_0x2361e9,_0x166845,_0x2cf996)=>{const _0x21bfdc=_0x3cc0f6;for(var _0x5cfc86=_0x2cf996>0x1?void 0x0:_0x2cf996?ls(_0x2361e9,_0x166845):_0x2361e9,_0x583d36=_0x26a37c[_0x21bfdc(0x411)]-0x1,_0xecfe99;_0x583d36>=0x0;_0x583d36--)(_0xecfe99=_0x26a37c[_0x583d36])&&(_0x5cfc86=(_0x2cf996?_0xecfe99(_0x2361e9,_0x166845,_0x5cfc86):_0xecfe99(_0x5cfc86))||_0x5cfc86);return _0x2cf996&&_0x5cfc86&&cs(_0x2361e9,_0x166845,_0x5cfc86),_0x5cfc86;},ce=(_0x49b76a,_0xd814a8)=>(_0x24b534,_0x1887f9)=>_0xd814a8(_0x24b534,_0x1887f9,_0x49b76a);const Ke=a[_0x3cc0f6(0x292)](_0x3cc0f6(0x36e));function _s(_0x358b98,_0x554245,_0x4fe9d2){const _0x41400d=_0x3cc0f6;return _0x358b98+'/'+_0x554245+_0x41400d(0x3b4)+_0x4fe9d2+'/new_changes';}exports['CollaborationSocketService']=class extends a[_0x3cc0f6(0x31b)]{constructor(_0x58d306,_0x5347d1,_0x7d7a2b,_0x75bbc7,_0x2a05b5){const _0x4bd7d1=_0x3cc0f6;super(),this[_0x4bd7d1(0x440)]=_0x58d306,this[_0x4bd7d1(0x425)]=_0x5347d1,this[_0x4bd7d1(0x5e0)]=_0x7d7a2b,this[_0x4bd7d1(0x518)]=_0x75bbc7,this[_0x4bd7d1(0x32e)]=_0x2a05b5;}[_0x3cc0f6(0x4a5)](_0x5d6fcf){const _0x1a02f2=_0x3cc0f6,_0x22f70a=this[_0x1a02f2(0x425)]['createSocket'](_0x5d6fcf);if(!_0x22f70a)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x13443a=new a[(_0x1a02f2(0x2df))](),_0x1857b5=new v[(_0x1a02f2(0x2c3))]();_0x13443a[_0x1a02f2(0x44c)](_0x22f70a['close$'][_0x1a02f2(0x342)](_0x554ae5=>_0x1857b5['next'](_0x554ae5))),_0x13443a[_0x1a02f2(0x44c)](a[_0x1a02f2(0x2ba)](()=>_0x1857b5[_0x1a02f2(0x5d2)]()));const _0x402acf=new v[(_0x1a02f2(0x2c3))]();_0x13443a['add'](_0x22f70a[_0x1a02f2(0x4c3)][_0x1a02f2(0x342)](_0x51edad=>_0x402acf[_0x1a02f2(0x517)](_0x51edad))),_0x13443a[_0x1a02f2(0x44c)](a[_0x1a02f2(0x2ba)](()=>_0x402acf[_0x1a02f2(0x5d2)]()));const _0x4ce34d=new v[(_0x1a02f2(0x2c3))]();_0x13443a[_0x1a02f2(0x44c)](_0x22f70a['message$']['subscribe'](_0x39e64b=>{const _0xa1500c=_0x1a02f2,_0x36b7ef=Rt(_0x39e64b);_0x4ce34d[_0xa1500c(0x517)](_0x36b7ef);})),_0x13443a[_0x1a02f2(0x44c)](a[_0x1a02f2(0x2ba)](()=>_0x4ce34d[_0x1a02f2(0x5d2)]()));let _0x5b69d1;const _0x49cf8e=()=>{const _0x21c9c5=_0x1a02f2;_0x402acf['next'](new Event(_0x21c9c5(0x2c8))),_0x1857b5['next'](new CloseEvent(_0x21c9c5(0x2c8))),_0x5b69d1['close']();};return _0x5b69d1={'memberID':'','close$':_0x1857b5[_0x1a02f2(0x459)](),'error$':_0x402acf['asObservable'](),'open$':_0x22f70a[_0x1a02f2(0x340)],'message$':_0x4ce34d[_0x1a02f2(0x459)](),'send':_0x196a81=>{const _0x277448=_0x1a02f2;if(_0x196a81['cmd']===b[_0x277448(0x3ab)]){if(_0x196a81[_0x277448(0x35a)][_0x277448(0x21b)]===_['CollaborationEvent'][_0x277448(0x23f)]){this[_0x277448(0x55d)](_0x5b69d1,_0x196a81[_0x277448(0x35a)])[_0x277448(0x4fc)](_0x4fcdc0=>{const _0x1987ec=_0x277448;this[_0x1987ec(0x518)][_0x1987ec(0x2c9)](_0x4fcdc0),_0x49cf8e();});return;}if(_0x196a81[_0x277448(0x35a)]['eventID']===_['CollaborationEvent'][_0x277448(0x229)]){const _0x31f0b4=_0x196a81[_0x277448(0x35a)];this[_0x277448(0x598)](_0x31f0b4)['then'](_0x3bf4e4=>{const _0x287a55=_0x277448;_0x4ce34d[_0x287a55(0x517)]({'cmd':b[_0x287a55(0x515)],'code':Ye['OK'],'routeKey':_0x31f0b4[_0x287a55(0x35a)][_0x287a55(0x426)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x287a55(0x275)],'data':{'changesets':_0x3bf4e4}}});})[_0x277448(0x4fc)](_0x3e65ba=>{const _0x1d6689=_0x277448;this['_logService'][_0x1d6689(0x2c9)](_0x3e65ba),_0x49cf8e();});return;}}_0x22f70a[_0x277448(0x5d7)](Ot(_0x196a81));},'close':()=>{const _0x55d94a=_0x1a02f2;_0x22f70a['close'](),_0x13443a[_0x55d94a(0x32b)]();}},_0x5b69d1;}async[_0x3cc0f6(0x55d)](_0x244792,_0x6e90a2){const _0x49ec32=_0x3cc0f6;var _0xcc4321,_0x4dbe51;const {unitType:_0x217fa0,unitID:_0x2214be,changeset:_0x33a058}=_0x6e90a2[_0x49ec32(0x35a)],_0x450f53={'unitID':_0x2214be,'memberID':_0x244792[_0x49ec32(0x335)],'type':_0x217fa0,'changeset':_['parseChangesetToProtocol'](_0x33a058)},_0x537f2f=this[_0x49ec32(0x5e0)][_0x49ec32(0x458)](Ct),_0x336af=this['_configService'][_0x49ec32(0x458)]($),_0x152e86=_s((_0x4dbe51=(_0xcc4321=_0x336af==null?void 0x0:_0x336af[_0x49ec32(0x2d1)])!=null?_0xcc4321:_0x537f2f)!=null?_0x4dbe51:rs,_0x217fa0,_0x2214be);try{await this[_0x49ec32(0x440)]['post'](_0x152e86,{'body':_0x450f53});}catch(_0x436680){throw this[_0x49ec32(0x518)][_0x49ec32(0x2c9)]('[CollaborationSession]',_0x49ec32(0x364)),_0x436680;}}async[_0x3cc0f6(0x598)](_0xd9fc92){const _0x14b6e1=_0x3cc0f6,{unitID:_0x34950b,from:_0x176f24,to:_0x450259,unitType:_0x37828a}=_0xd9fc92['data'];return(await this['_snapshotServerService'][_0x14b6e1(0x2c7)]({'metadata':void 0x0},{'unitID':_0x34950b,'type':_0x37828a,'from':_0x176f24,'to':_0x450259}))['changesets'];}},exports[_0x3cc0f6(0x322)]=hs([ce(0x0,a[_0x3cc0f6(0x573)](U[_0x3cc0f6(0x43f)])),ce(0x1,a['Inject'](U[_0x3cc0f6(0x3d2)])),ce(0x2,a[_0x3cc0f6(0x5d3)]),ce(0x3,a[_0x3cc0f6(0x24d)]),ce(0x4,_['ISnapshotServerService'])],exports[_0x3cc0f6(0x322)]);const us='collaboration_new_changeset';function ds(_0x3694df){const _0x707163=_0x3cc0f6;return JSON['stringify'](_0x3694df)[_0x707163(0x411)];}class Xe{constructor(){const _0x1b62a4=_0x3cc0f6;u(this,_0x1b62a4(0x418),new v['Subject']()),u(this,'commentUpdate$',this[_0x1b62a4(0x418)][_0x1b62a4(0x459)]());}[_0x3cc0f6(0x58f)](_0x48ef7d){const _0x35e3bf=_0x3cc0f6;this[_0x35e3bf(0x418)][_0x35e3bf(0x517)](_0x48ef7d);}}var Ss=Object[_0x3cc0f6(0x1c6)],vs=Object[_0x3cc0f6(0x544)],ms=(_0xbf2a80,_0x34828f,_0x29254b,_0x188032)=>{for(var _0x1d8467=_0x188032>0x1?void 0x0:_0x188032?vs(_0x34828f,_0x29254b):_0x34828f,_0x2ccfe3=_0xbf2a80['length']-0x1,_0x5e7eb6;_0x2ccfe3>=0x0;_0x2ccfe3--)(_0x5e7eb6=_0xbf2a80[_0x2ccfe3])&&(_0x1d8467=(_0x188032?_0x5e7eb6(_0x34828f,_0x29254b,_0x1d8467):_0x5e7eb6(_0x1d8467))||_0x1d8467);return _0x188032&&_0x1d8467&&Ss(_0x34828f,_0x29254b,_0x1d8467),_0x1d8467;},tt=(_0x5a8172,_0x477bcc)=>(_0x585df7,_0x331a06)=>_0x477bcc(_0x585df7,_0x331a06,_0x5a8172);let Z=class extends a['Disposable']{constructor(_0x4bc567,_0x1c34c1){const _0x47360d=_0x3cc0f6;super(),u(this,_0x47360d(0x343),new Map()),(this[_0x47360d(0x34b)]=_0x4bc567,this[_0x47360d(0x319)]=_0x1c34c1,this[_0x47360d(0x217)](a['toDisposable'](v[_0x47360d(0x570)](this['_univerInstanceService'][_0x47360d(0x1f9)](a['UniverInstanceType'][_0x47360d(0x336)])[_0x47360d(0x57c)](E['map'](_0x4b323a=>_0x4b323a[_0x47360d(0x527)]())),this[_0x47360d(0x34b)][_0x47360d(0x1f9)](a[_0x47360d(0x31e)][_0x47360d(0x3c6)])['pipe'](E[_0x47360d(0x282)](_0x680870=>_0x680870[_0x47360d(0x527)]())),this[_0x47360d(0x34b)][_0x47360d(0x1f9)](a['UniverInstanceType'][_0x47360d(0x477)])['pipe'](E['map'](_0xc334ec=>_0xc334ec[_0x47360d(0x527)]())))[_0x47360d(0x342)](_0x4e3829=>this[_0x47360d(0x3ce)](_0x4e3829)))));}[_0x3cc0f6(0x3fe)](_0x505085){const _0x329dd4=_0x3cc0f6;this[_0x329dd4(0x319)][_0x329dd4(0x3fe)](_0x505085);}[_0x3cc0f6(0x3c2)](){const _0x4c5727=_0x3cc0f6;return this[_0x4c5727(0x319)][_0x4c5727(0x3c2)]();}[_0x3cc0f6(0x274)](_0x2803b9,_0x41968d){const _0x247b5c=_0x3cc0f6;let _0x474502=this['_roomMembers']['get'](_0x2803b9);_0x474502||(_0x474502=new gs(),this['_roomMembers'][_0x247b5c(0x420)](_0x2803b9,_0x474502)),_0x474502[_0x247b5c(0x274)](_0x41968d);}[_0x3cc0f6(0x401)](_0x2fb5ac,_0x107c13){const _0x2211d8=_0x3cc0f6,_0x44e4e4=this['_roomMembers'][_0x2211d8(0x3de)](_0x2fb5ac);_0x44e4e4&&_0x44e4e4[_0x2211d8(0x401)](_0x107c13);}[_0x3cc0f6(0x4d3)](_0x1a0ea1){const _0x22a747=_0x3cc0f6;return this[_0x22a747(0x343)][_0x22a747(0x3de)](_0x1a0ea1);}[_0x3cc0f6(0x5cc)](_0x110e6,_0x5eb5ca){const _0x178fc9=_0x3cc0f6,_0x2671a1=this[_0x178fc9(0x343)][_0x178fc9(0x3de)](_0x110e6);if(_0x2671a1)return _0x2671a1['getMember'](_0x5eb5ca);}[_0x3cc0f6(0x3ce)](_0x343414){const _0x5ac0d5=_0x3cc0f6,_0x3668b4=this[_0x5ac0d5(0x343)][_0x5ac0d5(0x3de)](_0x343414);_0x3668b4&&(_0x3668b4['dispose'](),this[_0x5ac0d5(0x343)][_0x5ac0d5(0x3c4)](_0x343414));}['dispose'](){const _0x2e6d01=_0x3cc0f6;this[_0x2e6d01(0x343)][_0x2e6d01(0x300)](_0x197a13=>_0x197a13[_0x2e6d01(0x32b)]()),this[_0x2e6d01(0x343)]['clear']();}};Z=ms([tt(0x0,a[_0x3cc0f6(0x2f2)]),tt(0x1,a['Inject'](a['UserManagerService']))],Z);class gs extends a['Disposable']{constructor(){const _0x15afb2=_0x3cc0f6;super(...arguments),u(this,_0x15afb2(0x4eb),new Map());}[_0x3cc0f6(0x32b)](){const _0x3247a0=_0x3cc0f6;this[_0x3247a0(0x4eb)][_0x3247a0(0x48b)]();}[_0x3cc0f6(0x274)](_0x3449c9){const _0x2f5d06=_0x3cc0f6;this[_0x2f5d06(0x4eb)][_0x2f5d06(0x420)](_0x3449c9[_0x2f5d06(0x335)],_0x3449c9);}[_0x3cc0f6(0x401)](_0x3b05d1){const _0x391b84=_0x3cc0f6;this[_0x391b84(0x4eb)][_0x391b84(0x3c4)](_0x3b05d1);}[_0x3cc0f6(0x5cc)](_0x478297){const _0x4cc045=_0x3cc0f6;return this[_0x4cc045(0x4eb)][_0x4cc045(0x3de)](_0x478297);}}var fs=Object[_0x3cc0f6(0x1c6)],Is=Object[_0x3cc0f6(0x544)],ps=(_0x1def16,_0x5ed8b7,_0x27480c,_0x354389)=>{for(var _0x16709d=_0x354389>0x1?void 0x0:_0x354389?Is(_0x5ed8b7,_0x27480c):_0x5ed8b7,_0x5d5bca=_0x1def16['length']-0x1,_0x49858b;_0x5d5bca>=0x0;_0x5d5bca--)(_0x49858b=_0x1def16[_0x5d5bca])&&(_0x16709d=(_0x354389?_0x49858b(_0x5ed8b7,_0x27480c,_0x16709d):_0x49858b(_0x16709d))||_0x16709d);return _0x354389&&_0x16709d&&fs(_0x5ed8b7,_0x27480c,_0x16709d),_0x16709d;},G=(_0x3279d4,_0x5990a9)=>(_0x920dde,_0x111442)=>_0x5990a9(_0x920dde,_0x111442,_0x3279d4),x=(_0x7745c9=>(_0x7745c9[_0x7745c9[_0x3cc0f6(0x1bf)]=0x0]=_0x3cc0f6(0x1bf),_0x7745c9[_0x7745c9[_0x3cc0f6(0x405)]=0x1]=_0x3cc0f6(0x405),_0x7745c9[_0x7745c9['OFFLINE']=0x2]=_0x3cc0f6(0x50c),_0x7745c9[_0x7745c9[_0x3cc0f6(0x478)]=0x3]='ONLINE',_0x7745c9))(x||{});exports[_0x3cc0f6(0x206)]=class extends a['RxDisposable']{constructor(_0x2c56ea,_0x168739,_0x51e824,_0x5f26a9,_0x13e18c,_0x139bba,_0x28317e,_0x2833cd,_0x55cd61,_0x13e4d9){const _0x3b8c51=_0x3cc0f6;super(),u(this,'_sessionStatus$',new v['BehaviorSubject'](0x0)),u(this,_0x3b8c51(0x1eb),this['_sessionStatus$'][_0x3b8c51(0x459)]()),u(this,_0x3b8c51(0x596),new v[(_0x3b8c51(0x2c3))]()),u(this,'event$',this[_0x3b8c51(0x596)][_0x3b8c51(0x459)]()),u(this,_0x3b8c51(0x286)),u(this,_0x3b8c51(0x5e9)),u(this,_0x3b8c51(0x24a)),u(this,_0x3b8c51(0x4e5),!0x1),u(this,_0x3b8c51(0x20e),null),(this['_unitID']=_0x2c56ea,this[_0x3b8c51(0x518)]=_0x51e824,this[_0x3b8c51(0x3a7)]=_0x5f26a9,this[_0x3b8c51(0x1cd)]=_0x13e18c,this['_configService']=_0x139bba,this['_localeService']=_0x28317e,this[_0x3b8c51(0x5a7)]=_0x2833cd,this[_0x3b8c51(0x1c5)]=_0x55cd61,this[_0x3b8c51(0x3b2)]=_0x13e4d9,this[_0x3b8c51(0x4e5)]=!!this[_0x3b8c51(0x3b2)],_0x168739['pipe'](v['takeUntil'](this[_0x3b8c51(0x38b)]))[_0x3b8c51(0x342)](_0x13212e=>{const _0x40e68=_0x3b8c51;var _0x13af71;typeof _0x13212e>'u'||(this[_0x40e68(0x286)]=_0x13212e,_0x13212e?(this[_0x40e68(0x450)](_0x13212e),this['_socketMessageSubscription']=_0x13212e[_0x40e68(0x354)][_0x40e68(0x342)](_0x103bfe=>{const _0x56287e=_0x40e68;_0x103bfe[_0x56287e(0x242)]===this[_0x56287e(0x3db)]&&this[_0x56287e(0x4cb)](_0x103bfe);})):(this[_0x40e68(0x497)](),this[_0x40e68(0x382)][_0x40e68(0x517)](0x2),(_0x13af71=this[_0x40e68(0x5e9)])==null||_0x13af71['unsubscribe'](),this[_0x40e68(0x5e9)]=null));}),this[_0x3b8c51(0x217)](this[_0x3b8c51(0x3a7)][_0x3b8c51(0x2e7)](()=>{const _0x133ae6=_0x3b8c51;var _0x7c2193;(_0x7c2193=this[_0x133ae6(0x286)])==null||_0x7c2193['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x133ae6(0x3db)]}});})));}get[_0x3cc0f6(0x37a)](){const _0x11ff45=_0x3cc0f6;return this['_sessionStatus$'][_0x11ff45(0x535)]();}[_0x3cc0f6(0x1f1)](){const _0x10d373=_0x3cc0f6;var _0x3dd42c,_0x381165;return(_0x381165=(_0x3dd42c=this[_0x10d373(0x286)])==null?void 0x0:_0x3dd42c['memberID'])!=null?_0x381165:null;}[_0x3cc0f6(0x32b)](){const _0x1a7c51=_0x3cc0f6;super[_0x1a7c51(0x32b)](),this[_0x1a7c51(0x38b)][_0x1a7c51(0x517)](),this[_0x1a7c51(0x38b)]['complete']();}[_0x3cc0f6(0x44d)](){const _0x51403f=_0x3cc0f6;var _0x173121,_0x1d042c;this['_throwTelemetryCollaborationNewChangeset'](),(_0x173121=this[_0x51403f(0x286)])==null||_0x173121[_0x51403f(0x5d7)]({'cmd':b[_0x51403f(0x409)],'data':{'roomID':this[_0x51403f(0x3db)]}}),(_0x1d042c=this[_0x51403f(0x286)])==null||_0x1d042c[_0x51403f(0x44d)](),this[_0x51403f(0x596)]['complete'](),this[_0x51403f(0x382)][_0x51403f(0x5d2)](),this[_0x51403f(0x32b)]();}['_onCombEvent'](_0x2791b4){const _0x304112=_0x3cc0f6;_0x2791b4[_0x304112(0x1e5)]===b[_0x304112(0x516)]?this[_0x304112(0x51f)](_0x2791b4):_0x2791b4[_0x304112(0x1e5)]===b[_0x304112(0x515)]&&this[_0x304112(0x2ed)](_0x2791b4);}['_joinRoom'](_0x40e990){const _0x38865b=_0x3cc0f6;this[_0x38865b(0x382)]['next'](0x1),_0x40e990[_0x38865b(0x5d7)]({'cmd':b[_0x38865b(0x516)],'routeKey':this[_0x38865b(0x3db)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x29a9eb){const _0x5223d5=_0x3cc0f6;var _0x5de765;if(_0x29a9eb[_0x5223d5(0x5bf)]===Ye[_0x5223d5(0x499)]){this[_0x5223d5(0x1cd)][_0x5223d5(0x438)]({'type':J[_0x5223d5(0x2ce)]['Warning'],'content':this[_0x5223d5(0x36b)]['t'](_0x5223d5(0x584))}),this[_0x5223d5(0x382)][_0x5223d5(0x517)](0x2);return;}this[_0x5223d5(0x382)]['next'](0x3);const _0x3103f8=(_0x5de765=_0x29a9eb[_0x5223d5(0x35a)]['roomInfos'][this[_0x5223d5(0x3db)]])==null?void 0x0:_0x5de765[_0x5223d5(0x2b3)];_0x3103f8&&_0x3103f8[_0x5223d5(0x300)](_0x59cbde=>this[_0x5223d5(0x5a7)][_0x5223d5(0x274)](this[_0x5223d5(0x3db)],_0x59cbde));}[_0x3cc0f6(0x2ed)](_0x54ae52){const _0x4bb776=_0x3cc0f6;try{const _0x4d0de4=_0x54ae52['data'];switch(_0x4d0de4[_0x4bb776(0x21b)]){case _[_0x4bb776(0x400)]['USERS_ENTER']:this[_0x4bb776(0x435)](_0x4d0de4),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;case _['CollaborationEvent'][_0x4bb776(0x5cf)]:this[_0x4bb776(0x483)](_0x4d0de4),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;case _[_0x4bb776(0x400)]['CHANGESET_ACK']:case _['CollaborationEvent'][_0x4bb776(0x5bc)]:this[_0x4bb776(0x575)](),this[_0x4bb776(0x500)](),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;case _['CollaborationEvent'][_0x4bb776(0x3c8)]:this[_0x4bb776(0x518)]['error'](_0x4bb776(0x370)+JSON[_0x4bb776(0x492)](_0x4d0de4)),this['_event$'][_0x4bb776(0x517)](_0x4d0de4);break;case _[_0x4bb776(0x400)][_0x4bb776(0x53c)]:this['_commentService'][_0x4bb776(0x58f)](_0x4d0de4[_0x4bb776(0x35a)]),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;default:this[_0x4bb776(0x596)]['next'](_0x4d0de4);}}catch(_0x2eb878){this[_0x4bb776(0x518)][_0x4bb776(0x2c9)](_0x2eb878,_0x54ae52);}}[_0x3cc0f6(0x435)](_0x28a15f){const _0x235740=_0x3cc0f6;this[_0x235740(0x5a7)]['updateMember'](this[_0x235740(0x3db)],_0x28a15f[_0x235740(0x35a)]);}['_onUserLeave'](_0xf3f87a){const _0xa43a83=_0x3cc0f6;this['_memberService'][_0xa43a83(0x401)](this[_0xa43a83(0x3db)],_0xf3f87a[_0xa43a83(0x35a)][_0xa43a83(0x335)]);}async[_0x3cc0f6(0x5d7)](_0x361bbf,_0x4d9cae){const _0x2bc2e6=_0x3cc0f6;if(this[_0x2bc2e6(0x37a)]!==0x3||!this[_0x2bc2e6(0x286)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x361bbf[_0x2bc2e6(0x21b)]===_['CollaborationEvent'][_0x2bc2e6(0x23f)]&&(this[_0x2bc2e6(0x503)](),this[_0x2bc2e6(0x1d4)](_0x361bbf)),this['_socket'][_0x2bc2e6(0x5d7)]({'cmd':b[_0x2bc2e6(0x3ab)],'routeKey':_0x4d9cae,'routeType':'','data':_0x361bbf});}catch(_0x5a0565){this['_logService'][_0x2bc2e6(0x2c9)](_0x5a0565);}}[_0x3cc0f6(0x503)](){const _0x2013d5=_0x3cc0f6;var _0x50e889;this[_0x2013d5(0x24a)]=window[_0x2013d5(0x556)](()=>{const _0x51ba12=_0x2013d5;this['_collaborationTimeoutTimer']=null,this[_0x51ba12(0x1cd)][_0x51ba12(0x438)]({'type':J['MessageType']['Error'],'content':this[_0x51ba12(0x36b)]['t'](_0x51ba12(0x3e8))});},(_0x50e889=this[_0x2013d5(0x5e0)][_0x2013d5(0x458)](Ge))!=null?_0x50e889:ft);}[_0x3cc0f6(0x500)](){const _0x3b3f3e=_0x3cc0f6;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x3b3f3e(0x24a)]),this[_0x3b3f3e(0x24a)]=null);}[_0x3cc0f6(0x1d4)](_0x462791){const _0x5142b0=_0x3cc0f6;if(!this[_0x5142b0(0x4e5)])return;const {data:_0x4141df}=_0x462791,{unitID:_0x181af6,changeset:_0x6f07e7}=_0x4141df,{mutations:_0x5c125d,type:_0xedd242}=_0x6f07e7;this[_0x5142b0(0x20e)]={'unitId':_0x181af6,'type':_0xedd242,'startTime':performance[_0x5142b0(0x2fd)](),'stopTime':0x0,'duration':0x0,'size':ds(_0x5c125d)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x309ea7=_0x3cc0f6;if(this[_0x309ea7(0x4e5)]){if(!this[_0x309ea7(0x20e)]){this[_0x309ea7(0x518)][_0x309ea7(0x2c9)](_0x309ea7(0x539),_0x309ea7(0x560));return;}this['_telemetryInfo'][_0x309ea7(0x48f)]=performance['now'](),this[_0x309ea7(0x20e)][_0x309ea7(0x3a2)]=this['_telemetryInfo'][_0x309ea7(0x48f)]-this['_telemetryInfo'][_0x309ea7(0x23b)],this[_0x309ea7(0x3b2)]['capture'](us,this[_0x309ea7(0x20e)]),this[_0x309ea7(0x20e)]=null;}}[_0x3cc0f6(0x497)](){this['_telemetryInfo']=null;}},exports[_0x3cc0f6(0x206)]=ps([G(0x2,a[_0x3cc0f6(0x24d)]),G(0x3,A['IBeforeCloseService']),G(0x4,A['IMessageService']),G(0x5,a[_0x3cc0f6(0x5d3)]),G(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),G(0x7,a[_0x3cc0f6(0x573)](Z)),G(0x8,a[_0x3cc0f6(0x573)](Xe)),G(0x9,a[_0x3cc0f6(0x273)](Xt[_0x3cc0f6(0x32c)]))],exports['CollaborationSession']);var Cs=Object[_0x3cc0f6(0x1c6)],Es=Object['getOwnPropertyDescriptor'],bs=(_0x3866ac,_0x32b78a,_0x57d840,_0x33e884)=>{const _0x4f6756=_0x3cc0f6;for(var _0x55cb0d=_0x33e884>0x1?void 0x0:_0x33e884?Es(_0x32b78a,_0x57d840):_0x32b78a,_0x5dab1c=_0x3866ac[_0x4f6756(0x411)]-0x1,_0x532d47;_0x5dab1c>=0x0;_0x5dab1c--)(_0x532d47=_0x3866ac[_0x5dab1c])&&(_0x55cb0d=(_0x33e884?_0x532d47(_0x32b78a,_0x57d840,_0x55cb0d):_0x532d47(_0x55cb0d))||_0x55cb0d);return _0x33e884&&_0x55cb0d&&Cs(_0x32b78a,_0x57d840,_0x55cb0d),_0x55cb0d;},te=(_0x136d1e,_0x4290ae)=>(_0xda620b,_0x55e204)=>_0x4290ae(_0xda620b,_0x55e204,_0x136d1e);exports[_0x3cc0f6(0x3c0)]=class extends a['Disposable']{constructor(_0x466c6d,_0x1caa24,_0x587178,_0x34b54b,_0x5d46b6,_0x265da2){const _0x12fa0f=_0x3cc0f6;super(),u(this,_0x12fa0f(0x454),new v[(_0x12fa0f(0x3ea))](void 0x0)),u(this,_0x12fa0f(0x504),this['_socket$'][_0x12fa0f(0x459)]()),u(this,_0x12fa0f(0x5e3),null),u(this,'_sessions',new Map()),u(this,_0x12fa0f(0x4a2),new v[(_0x12fa0f(0x3ea))](x[_0x12fa0f(0x1bf)])),u(this,_0x12fa0f(0x40f),this['_status$']['asObservable']()),u(this,_0x12fa0f(0x489),!0x1),u(this,_0x12fa0f(0x45a)),u(this,_0x12fa0f(0x3b0),0x0),u(this,_0x12fa0f(0x543)),u(this,_0x12fa0f(0x230)),(this[_0x12fa0f(0x5ba)]=_0x466c6d,this[_0x12fa0f(0x36b)]=_0x1caa24,this[_0x12fa0f(0x1cd)]=_0x587178,this[_0x12fa0f(0x518)]=_0x34b54b,this[_0x12fa0f(0x5e0)]=_0x5d46b6,this[_0x12fa0f(0x1ca)]=_0x265da2,this[_0x12fa0f(0x27e)]());}get[_0x3cc0f6(0x286)](){const _0x527327=_0x3cc0f6;return this[_0x527327(0x454)]['getValue']();}[_0x3cc0f6(0x27e)](){const _0x1651ae=_0x3cc0f6;this[_0x1651ae(0x3a5)](),this['_listenToOnlineEvent']();}[_0x3cc0f6(0x32b)](){const _0x355d4b=_0x3cc0f6;super[_0x355d4b(0x32b)](),this[_0x355d4b(0x5d1)]['forEach'](_0x332ee5=>_0x332ee5[_0x355d4b(0x32b)]()),this[_0x355d4b(0x5d1)][_0x355d4b(0x48b)](),this['_status$']['complete']();}async['requireSession'](_0x4ef255){const _0x267ae3=_0x3cc0f6;if(this['_sessions'][_0x267ae3(0x2d0)](_0x4ef255))return this[_0x267ae3(0x5d1)][_0x267ae3(0x3de)](_0x4ef255);this[_0x267ae3(0x227)]();const _0x1facac=this[_0x267ae3(0x5ba)][_0x267ae3(0x2e1)](exports['CollaborationSession'],_0x4ef255,this[_0x267ae3(0x454)][_0x267ae3(0x459)]());return this['_sessions'][_0x267ae3(0x420)](_0x4ef255,_0x1facac),_0x1facac;}[_0x3cc0f6(0x362)](_0x4a4f69){const _0x5d9071=_0x3cc0f6;var _0x19f30b;const _0x14839b=this[_0x5d9071(0x5d1)][_0x5d9071(0x3de)](_0x4a4f69);_0x14839b&&(this[_0x5d9071(0x5d1)][_0x5d9071(0x3c4)](_0x4a4f69),_0x14839b[_0x5d9071(0x44d)]()),this[_0x5d9071(0x5d1)][_0x5d9071(0x437)]||(_0x19f30b=this['_socket'])==null||_0x19f30b[_0x5d9071(0x44d)]();}[_0x3cc0f6(0x448)](){const _0x3ad4d9=_0x3cc0f6;this['_retryCount']=0x0,this[_0x3ad4d9(0x45a)]!=null&&(clearTimeout(this[_0x3ad4d9(0x45a)]),this[_0x3ad4d9(0x45a)]=null),this[_0x3ad4d9(0x3f0)]();}['_createSocket'](){const _0x291a76=_0x3cc0f6;var _0x5a0d9c,_0x228a90;const _0x2af94f=this[_0x291a76(0x5e0)]['getConfig'](mt),_0xaa9385=this['_configService'][_0x291a76(0x458)]($),_0x3e2aae=(_0x228a90=(_0x5a0d9c=_0xaa9385==null?void 0x0:_0xaa9385[_0x291a76(0x3fd)])!=null?_0x5a0d9c:_0x2af94f)!=null?_0x228a90:es,_0x50f58f=this[_0x291a76(0x1ca)][_0x291a76(0x4a5)](_0x3e2aae);return this['_candidateSocket']=_0x50f58f,_0x50f58f;}[_0x3cc0f6(0x227)](){const _0x3e1846=_0x3cc0f6;var _0xeb58e0,_0xda28ba;try{const _0x1bcde1=(_0xda28ba=(_0xeb58e0=this[_0x3e1846(0x286)])!=null?_0xeb58e0:this[_0x3e1846(0x5e3)])!=null?_0xda28ba:this['_createSocket']();if(_0x1bcde1){const _0x3091ae=_0x1bcde1[_0x3e1846(0x5d7)];_0x1bcde1[_0x3e1846(0x5d7)]=_0x3f1d0f=>(this[_0x3e1846(0x2fe)](),_0x3091ae[_0x3e1846(0x3f1)](_0x1bcde1,[_0x3f1d0f])),_0x1bcde1[_0x3e1846(0x354)]['subscribe'](_0x332ff0=>this[_0x3e1846(0x4f5)](_0x1bcde1,_0x332ff0)),_0x1bcde1[_0x3e1846(0x4c3)][_0x3e1846(0x57c)](E[_0x3e1846(0x4e6)](0x1))[_0x3e1846(0x342)](_0x470382=>this['_logService'][_0x3e1846(0x2c9)](_0x3e1846(0x1dc),_0x470382)),_0x1bcde1['open$']['pipe'](E[_0x3e1846(0x4e6)](0x1))[_0x3e1846(0x342)](()=>{const _0x3f9390=_0x3e1846;this[_0x3f9390(0x471)](_0x1bcde1);}),_0x1bcde1['close$'][_0x3e1846(0x57c)](E[_0x3e1846(0x4e6)](0x1))[_0x3e1846(0x342)](_0x2d59de=>{const _0x2be50e=_0x3e1846;this[_0x2be50e(0x518)][_0x2be50e(0x2cc)](_0x2be50e(0x33b),_0x2be50e(0x525),_0x2d59de),this[_0x2be50e(0x55e)]();});}}catch(_0x6f45d3){this[_0x3e1846(0x518)][_0x3e1846(0x2c9)](_0x6f45d3),this[_0x3e1846(0x55e)]();}}[_0x3cc0f6(0x471)](_0x1d90b2){const _0x205002=_0x3cc0f6;this[_0x205002(0x518)][_0x205002(0x2cc)](_0x205002(0x33b),'socket\x20open.'),_0x1d90b2[_0x205002(0x5d7)]({'cmd':b[_0x205002(0x491)]}),this[_0x205002(0x2fe)]();}[_0x3cc0f6(0x3a5)](){const _0x569445=_0x3cc0f6;window[_0x569445(0x581)](_0x569445(0x550),()=>this[_0x569445(0x580)]());}[_0x3cc0f6(0x580)](){const _0x2f7481=_0x3cc0f6;this[_0x2f7481(0x489)]=!0x1,this[_0x2f7481(0x5e3)]=null,this[_0x2f7481(0x4a2)][_0x2f7481(0x517)](x[_0x2f7481(0x50c)]),this[_0x2f7481(0x454)]['next'](null),this[_0x2f7481(0x2b7)](),this[_0x2f7481(0x31d)]();}[_0x3cc0f6(0x55e)](){const _0x25bbdf=_0x3cc0f6;var _0x54d63e;this['_onOffline'](),this[_0x25bbdf(0x3b0)]<((_0x54d63e=this[_0x25bbdf(0x5e0)]['getConfig'](It))!=null?_0x54d63e:is)?(this['_messageService'][_0x25bbdf(0x438)]({'key':'collaboration-session-retry','type':J['MessageType'][_0x25bbdf(0x56e)],'content':this[_0x25bbdf(0x36b)]['t'](_0x25bbdf(0x58d))}),this['_tryReconnect']()):this['_messageService'][_0x25bbdf(0x438)]({'key':_0x25bbdf(0x36c),'type':J[_0x25bbdf(0x2ce)][_0x25bbdf(0x5c2)],'content':this[_0x25bbdf(0x36b)]['t'](_0x25bbdf(0x1f3))});}['_listenToOnlineEvent'](){const _0x5bdb4a=_0x3cc0f6,_0x25bcaf=()=>{const _0x583267=_0x10ac;this[_0x583267(0x286)]||this[_0x583267(0x448)]();},_0x6eeeb0=()=>{const _0x15b719=_0x10ac;this[_0x15b719(0x286)]||document[_0x15b719(0x1ed)]===_0x15b719(0x2ef)||this['reconnect']();};window[_0x5bdb4a(0x581)]('online',_0x25bcaf),document[_0x5bdb4a(0x581)](_0x5bdb4a(0x372),_0x6eeeb0);}[_0x3cc0f6(0x3f0)](){const _0x129bcf=_0x3cc0f6;var _0x3f615a;const _0x7e5ff9=this[_0x129bcf(0x3b0)],_0x594c8a=this[_0x129bcf(0x5e0)]['getConfig']($),_0x44f865=_0x7e5ff9===0x0?0x0:((_0x3f615a=_0x594c8a==null?void 0x0:_0x594c8a[_0x129bcf(0x26c)])!=null?_0x3f615a:ss)*0x2**_0x7e5ff9;this[_0x129bcf(0x45a)]=window['setTimeout'](()=>{const _0x40d226=_0x129bcf;clearTimeout(this[_0x40d226(0x45a)]),this[_0x40d226(0x45a)]=null,this[_0x40d226(0x227)]();},_0x44f865),this[_0x129bcf(0x3b0)]+=0x1;}[_0x3cc0f6(0x4f5)](_0x13893c,_0x4ef051){const _0x5fd06=_0x3cc0f6,{cmd:_0x1f0a6e}=_0x4ef051;_0x1f0a6e===b['HELLO']&&!this[_0x5fd06(0x489)]&&(_0x13893c[_0x5fd06(0x335)]=_0x4ef051['data'][_0x5fd06(0x335)],this['_socket$'][_0x5fd06(0x517)](_0x13893c),this[_0x5fd06(0x4a2)]['next'](x[_0x5fd06(0x478)]),this[_0x5fd06(0x489)]=!0x0,this[_0x5fd06(0x5e3)]=null),_0x1f0a6e===b[_0x5fd06(0x3e2)]&&this[_0x5fd06(0x2b7)](),this[_0x5fd06(0x2fe)]();}[_0x3cc0f6(0x2fe)](){const _0x29cfca=_0x3cc0f6;var _0x1b4c55;this[_0x29cfca(0x31d)](),this[_0x29cfca(0x543)]=window[_0x29cfca(0x556)](()=>this[_0x29cfca(0x509)](),(_0x1b4c55=this['_configService']['getConfig'](gt))!=null?_0x1b4c55:ts);}['_sendHeartbeat'](){const _0xa0be75=_0x3cc0f6;this[_0xa0be75(0x286)][_0xa0be75(0x5d7)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x31595f=_0x3cc0f6;var _0x52b4ef;this['_timeoutTimer']=window[_0x31595f(0x556)](()=>this['_onConnectionFailed'](),(_0x52b4ef=this[_0x31595f(0x5e0)][_0x31595f(0x458)](Ge))!=null?_0x52b4ef:ft);}[_0x3cc0f6(0x31d)](){const _0x4e2457=_0x3cc0f6;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x4e2457(0x543)]),this[_0x4e2457(0x543)]=null);}[_0x3cc0f6(0x2b7)](){const _0x43bb55=_0x3cc0f6;this[_0x43bb55(0x230)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x43bb55(0x230)]=null);}},exports['CollaborationSessionService']=bs([te(0x0,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),te(0x1,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),te(0x2,A[_0x3cc0f6(0x2af)]),te(0x3,a[_0x3cc0f6(0x24d)]),te(0x4,a['IConfigService']),te(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R[_0x3cc0f6(0x430)]((Ue+0x100)[_0x3cc0f6(0x39c)](0x10)[_0x3cc0f6(0x1c3)](0x1));function Ts(_0xbd59ca,_0x28b02d=0x0){const _0x41f374=_0x3cc0f6;return(R[_0xbd59ca[_0x28b02d+0x0]]+R[_0xbd59ca[_0x28b02d+0x1]]+R[_0xbd59ca[_0x28b02d+0x2]]+R[_0xbd59ca[_0x28b02d+0x3]]+'-'+R[_0xbd59ca[_0x28b02d+0x4]]+R[_0xbd59ca[_0x28b02d+0x5]]+'-'+R[_0xbd59ca[_0x28b02d+0x6]]+R[_0xbd59ca[_0x28b02d+0x7]]+'-'+R[_0xbd59ca[_0x28b02d+0x8]]+R[_0xbd59ca[_0x28b02d+0x9]]+'-'+R[_0xbd59ca[_0x28b02d+0xa]]+R[_0xbd59ca[_0x28b02d+0xb]]+R[_0xbd59ca[_0x28b02d+0xc]]+R[_0xbd59ca[_0x28b02d+0xd]]+R[_0xbd59ca[_0x28b02d+0xe]]+R[_0xbd59ca[_0x28b02d+0xf]])[_0x41f374(0x299)]();}var ve,Rs=new Uint8Array(0x10);function Os(){const _0x27cf9b=_0x3cc0f6;if(!ve&&(ve=typeof crypto<'u'&&crypto[_0x27cf9b(0x1d0)]&&crypto['getRandomValues'][_0x27cf9b(0x4ba)](crypto),!ve))throw new Error(_0x27cf9b(0x4a9));return ve(Rs);}var Ds=typeof crypto<'u'&&crypto[_0x3cc0f6(0x408)]&&crypto['randomUUID']['bind'](crypto);const st={'randomUUID':Ds};function ys(_0x54f4fe,_0x4e160a,_0x20da7f){const _0x59e778=_0x3cc0f6;if(st[_0x59e778(0x408)]&&!_0x4e160a&&!_0x54f4fe)return st['randomUUID']();_0x54f4fe=_0x54f4fe||{};var _0xd9011f=_0x54f4fe[_0x59e778(0x1ef)]||(_0x54f4fe[_0x59e778(0x3a6)]||Os)();return _0xd9011f[0x6]=_0xd9011f[0x6]&0xf|0x40,_0xd9011f[0x8]=_0xd9011f[0x8]&0x3f|0x80,Ts(_0xd9011f);}var Us=Object[_0x3cc0f6(0x1c6)],Ps=Object[_0x3cc0f6(0x544)],ws=(_0x14d761,_0x3c6f7f,_0x1c8f6f,_0x4337db)=>{const _0x3679c5=_0x3cc0f6;for(var _0x75f328=_0x4337db>0x1?void 0x0:_0x4337db?Ps(_0x3c6f7f,_0x1c8f6f):_0x3c6f7f,_0x44106a=_0x14d761[_0x3679c5(0x411)]-0x1,_0xfde4f4;_0x44106a>=0x0;_0x44106a--)(_0xfde4f4=_0x14d761[_0x44106a])&&(_0x75f328=(_0x4337db?_0xfde4f4(_0x3c6f7f,_0x1c8f6f,_0x75f328):_0xfde4f4(_0x75f328))||_0x75f328);return _0x4337db&&_0x75f328&&Us(_0x3c6f7f,_0x1c8f6f,_0x75f328),_0x75f328;},Pe=(_0x5a1f9c,_0xefc73f)=>(_0x581813,_0x4d527a)=>_0xefc73f(_0x581813,_0x4d527a,_0x5a1f9c);let Ie=class{constructor(_0x399b4d,_0xab9c91,_0x59eb58){const _0x13f887=_0x3cc0f6;this[_0x13f887(0x5ba)]=_0x399b4d,this[_0x13f887(0x5c3)]=_0xab9c91,this[_0x13f887(0x1d5)]=_0x59eb58;}[_0x3cc0f6(0x2bb)](_0x185e40){const _0x3f6ffb=_0x3cc0f6;this[_0x3f6ffb(0x3f7)](_0x185e40),this['_transformPreviousActiveRange'](_0x185e40);}[_0x3cc0f6(0x1fc)](_0x317f3c){const _0x1d75f2=_0x3cc0f6,{unitID:_0x5aa1be}=_0x317f3c,_0x3b291c=this['_renderManagerService']['getRenderById'](_0x5aa1be)[_0x1d75f2(0x245)](N[_0x1d75f2(0x4fd)]),{redoCache:_0x66ac57}=_0x3b291c[_0x1d75f2(0x394)]();if(_0x66ac57[_0x1d75f2(0x411)]===0x0)return _0x317f3c;let _0x5388c3=a[_0x1d75f2(0x241)][_0x1d75f2(0x26b)](_0x317f3c['mutations'][0x0]);for(let _0x5d4dd8=0x0;_0x5d4dd8<_0x66ac57[_0x1d75f2(0x411)];_0x5d4dd8++){const _0x504c4d={'id':'doc.mutation.rich-text-editing','params':{..._0x66ac57[_0x5d4dd8]}},_0x4fe566=this['_transformService'][_0x1d75f2(0x3ef)](_0x5388c3,_0x504c4d,!0x1);if(_[_0x1d75f2(0x4dd)](_0x4fe566))throw _0x4fe566[_0x1d75f2(0x2c9)];_0x5388c3=_0x4fe566[_0x1d75f2(0x2b5)];}return{...a[_0x1d75f2(0x241)]['deepClone'](_0x317f3c),'mutations':[_0x5388c3]};}['_transformUndoRedoStack'](_0x4c0da4){const _0x231276=_0x3cc0f6,{unitID:_0xa2f7cb}=_0x4c0da4,_0x373090=this[_0x231276(0x1d5)]['getRenderById'](_0xa2f7cb)[_0x231276(0x245)](N['DocIMEInputManagerService']),{undoCache:_0x3b7c9d,redoCache:_0x2220ea}=_0x373090[_0x231276(0x394)]();if(_0x3b7c9d[_0x231276(0x411)]===0x0||_0x2220ea[_0x231276(0x411)]===0x0)return;const _0x836ddb=[],_0x3b749f=[];let _0xf645f=a['Tools'][_0x231276(0x26b)](_0x4c0da4[_0x231276(0x3fb)][0x0]),_0x1952f1=a[_0x231276(0x241)]['deepClone'](_0x4c0da4[_0x231276(0x3fb)][0x0]);for(let _0x2c2e75=_0x3b7c9d[_0x231276(0x411)]-0x1;_0x2c2e75>=0x0;_0x2c2e75--){const _0x14c2f5={'id':_0x231276(0x2b2),'params':{..._0x3b7c9d[_0x2c2e75]}},_0x32c644={'id':_0x231276(0x2b2),'params':{..._0x2220ea[_0x2c2e75]}},_0x4724ef=this['_transformService'][_0x231276(0x3ef)](_0xf645f,_0x14c2f5,!0x1),_0x26b4db=this[_0x231276(0x5c3)][_0x231276(0x3ef)](_0x1952f1,_0x32c644,!0x1);if(_[_0x231276(0x4dd)](_0x4724ef))throw _0x4724ef[_0x231276(0x2c9)];if(_['isTransformMutationFailure'](_0x26b4db))throw _0x26b4db['error'];_0x836ddb[_0x231276(0x4ec)](_0x4724ef[_0x231276(0x201)][_0x231276(0x3f2)]),_0x3b749f['unshift'](_0x26b4db[_0x231276(0x201)][_0x231276(0x3f2)]),_0xf645f=_0x4724ef[_0x231276(0x2b5)],_0x1952f1=_0x26b4db[_0x231276(0x2b5)];}_0x373090['setUndoRedoMutationParamsCache']({'undoCache':_0x836ddb,'redoCache':_0x3b749f});}[_0x3cc0f6(0x31c)](_0x43f235){const _0x5a49c9=_0x3cc0f6,{unitID:_0x476122}=_0x43f235,_0x543906=this['_renderManagerService'][_0x5a49c9(0x266)](_0x476122)[_0x5a49c9(0x245)](N[_0x5a49c9(0x4fd)]),_0x1d3ba2=_0x543906['getActiveRange']();if(_0x1d3ba2==null)return;const _0x4d1814=[{'id':_0x5a49c9(0x2b2),'params':{'unitId':_0x43f235[_0x5a49c9(0x426)],'actions':null,'textRanges':[_0x1d3ba2]}}],_0x215fbb=this['_transformService'][_0x5a49c9(0x338)](_0x43f235,_0x4d1814);if(!_[_0x5a49c9(0x50f)](_0x215fbb))throw _0x215fbb[_0x5a49c9(0x2c9)];const _0x2eb744=_0x215fbb[_0x5a49c9(0x201)][0x0][_0x5a49c9(0x3f2)][_0x5a49c9(0x3b1)];Array['isArray'](_0x2eb744)&&_0x2eb744[_0x5a49c9(0x411)]&&_0x543906[_0x5a49c9(0x221)](_0x2eb744[0x0]);}};Ie=ws([Pe(0x0,a[_0x3cc0f6(0x573)](a['Injector'])),Pe(0x1,_[_0x3cc0f6(0x3ba)]),Pe(0x2,O[_0x3cc0f6(0x3c1)])],Ie);var Ns=Object['defineProperty'],Ms=Object['getOwnPropertyDescriptor'],As=(_0x42ce37,_0x2a8b50,_0x34dc6d,_0x5e06a6)=>{const _0x1e2c2f=_0x3cc0f6;for(var _0x371146=_0x5e06a6>0x1?void 0x0:_0x5e06a6?Ms(_0x2a8b50,_0x34dc6d):_0x2a8b50,_0x4df831=_0x42ce37[_0x1e2c2f(0x411)]-0x1,_0x950c6c;_0x4df831>=0x0;_0x4df831--)(_0x950c6c=_0x42ce37[_0x4df831])&&(_0x371146=(_0x5e06a6?_0x950c6c(_0x2a8b50,_0x34dc6d,_0x371146):_0x950c6c(_0x371146))||_0x371146);return _0x5e06a6&&_0x371146&&Ns(_0x2a8b50,_0x34dc6d,_0x371146),_0x371146;},le=(_0x23a24a,_0x3e3522)=>(_0x1566cb,_0x59a1a6)=>_0x3e3522(_0x1566cb,_0x59a1a6,_0x23a24a);exports[_0x3cc0f6(0x1f8)]=class extends a['Disposable']{constructor(_0x5ba1d5,_0x48b31b,_0x353921,_0x35db7b,_0x1dac67){const _0x174b59=_0x3cc0f6;super(),u(this,_0x174b59(0x564),new Map()),u(this,_0x174b59(0x389),new Map()),u(this,_0x174b59(0x1ee),!0x1),(this[_0x174b59(0x5e0)]=_0x5ba1d5,this[_0x174b59(0x597)]=_0x48b31b,this[_0x174b59(0x3a7)]=_0x353921,this[_0x174b59(0x36b)]=_0x35db7b,this['_revisionService']=_0x1dac67,this['_setupBeforeClosingHandler']());}['disableLocalCache'](){const _0x1ca53e=_0x3cc0f6;this[_0x1ca53e(0x1ee)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x3cc0f6(0x32b)](){const _0xcb4e56=_0x3cc0f6;this[_0xcb4e56(0x1fb)]()['then'](()=>super[_0xcb4e56(0x32b)]());}async['loadOfflineData'](_0x11fdfa){const _0x5f5b61=_0x3cc0f6;return this[_0x5f5b61(0x1ee)]?null:this[_0x5f5b61(0x597)][_0x5f5b61(0x1da)](it(_0x11fdfa));}async[_0x3cc0f6(0x2d5)](_0x480907,_0x4be578){const _0x3fc2ef=_0x3cc0f6;return!!this[_0x3fc2ef(0x597)][_0x3fc2ef(0x250)](_0x480907,_0x4be578);}[_0x3cc0f6(0x5bd)](_0x695c61,_0x5e6b13,_0x19cdbb,_0x409068){const _0x1a902f=_0x3cc0f6,_0x4efeac=this[_0x1a902f(0x449)]['getCurrentRevOfUnit'](_0x695c61);this['_cachedData'][_0x1a902f(0x420)](_0x695c61,{'unitID':_0x695c61,'type':_0x5e6b13,'awaitingChangeset':_0x19cdbb,'mutations':_0x409068,'rev':_0x4efeac}),this[_0x1a902f(0x389)][_0x1a902f(0x2d0)](_0x695c61)||this[_0x1a902f(0x555)](_0x695c61);}['_scheduleSaving'](_0x21e0d5){const _0xc994be=_0x3cc0f6,_0x4dfdf5=this[_0xc994be(0x3dc)]();_0x4dfdf5===0x0?this['_saveCache'](_0x21e0d5):this[_0xc994be(0x389)][_0xc994be(0x420)](_0x21e0d5,setTimeout(()=>this[_0xc994be(0x540)](_0x21e0d5),_0x4dfdf5));}[_0x3cc0f6(0x3dc)](){const _0x11f46b=_0x3cc0f6;var _0x5ac687;return(_0x5ac687=this['_configService'][_0x11f46b(0x458)](pt))!=null?_0x5ac687:ns;}['_saveCache'](_0x55aeae){const _0x1d5ed3=_0x3cc0f6,_0x1b20da=this['_saveTaskMap'][_0x1d5ed3(0x3de)](_0x55aeae);return _0x1b20da!==void 0x0&&window[_0x1d5ed3(0x468)](_0x1b20da),this['_localStorageService'][_0x1d5ed3(0x250)](it(_0x55aeae),this[_0x1d5ed3(0x564)][_0x1d5ed3(0x3de)](_0x55aeae))['then'](()=>this[_0x1d5ed3(0x389)][_0x1d5ed3(0x3c4)](_0x55aeae));}async[_0x3cc0f6(0x1fb)](){const _0x3f32ba=_0x3cc0f6,_0x1ee072=[];this[_0x3f32ba(0x389)][_0x3f32ba(0x300)]((_0x3fcc3a,_0xfe8f06)=>{const _0x483f6a=_0x3f32ba;window[_0x483f6a(0x468)](_0x3fcc3a),_0x1ee072[_0x483f6a(0x430)](this[_0x483f6a(0x540)](_0xfe8f06)[_0x483f6a(0x25f)](()=>{const _0x3bd699=_0x483f6a;this[_0x3bd699(0x389)]['delete'](_0xfe8f06);}));}),await Promise[_0x3f32ba(0x260)](_0x1ee072);}['_setupBeforeClosingHandler'](){const _0xf2ca71=_0x3cc0f6;this[_0xf2ca71(0x217)](this[_0xf2ca71(0x3a7)][_0xf2ca71(0x2f9)](()=>{const _0xd91fec=_0xf2ca71;if(this[_0xd91fec(0x389)]['size'])return this[_0xd91fec(0x36b)]['t'](_0xd91fec(0x4fe));}));}},exports[_0x3cc0f6(0x1f8)]=As([le(0x0,a[_0x3cc0f6(0x5d3)]),le(0x1,a['ILocalStorageService']),le(0x2,A[_0x3cc0f6(0x54e)]),le(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),le(0x4,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)]))],exports[_0x3cc0f6(0x1f8)]);function it(_0x53087b){const _0x3f1c09=_0x3cc0f6;return _0x3f1c09(0x351)+_0x53087b;}var Ls=Object['defineProperty'],$s=Object[_0x3cc0f6(0x544)],js=(_0x57b3d8,_0x205001,_0x272854,_0x1c0a68)=>{const _0x1e6022=_0x3cc0f6;for(var _0x2ce093=_0x1c0a68>0x1?void 0x0:_0x1c0a68?$s(_0x205001,_0x272854):_0x205001,_0x3e3502=_0x57b3d8[_0x1e6022(0x411)]-0x1,_0x583d2a;_0x3e3502>=0x0;_0x3e3502--)(_0x583d2a=_0x57b3d8[_0x3e3502])&&(_0x2ce093=(_0x1c0a68?_0x583d2a(_0x205001,_0x272854,_0x2ce093):_0x583d2a(_0x2ce093))||_0x2ce093);return _0x1c0a68&&_0x2ce093&&Ls(_0x205001,_0x272854,_0x2ce093),_0x2ce093;},we=(_0xf67350,_0x4ad217)=>(_0x5790d8,_0x127afd)=>_0x4ad217(_0x5790d8,_0x127afd,_0xf67350);function Hs(_0xa78d09){const _0x45f418=_0x3cc0f6,{unitID:_0x33c309,mutations:_0x3eac52}=_0xa78d09;return{'unitId':_0x33c309,'subUnitId':_0x3eac52[0x0][_0x45f418(0x3f2)][_0x45f418(0x3b8)]};}let pe=class{constructor(_0x432825,_0x74248c,_0x2c969c){const _0xdc0d7b=_0x3cc0f6;this[_0xdc0d7b(0x5ba)]=_0x432825,this[_0xdc0d7b(0x5c3)]=_0x74248c,this[_0xdc0d7b(0x512)]=_0x2c969c;}[_0x3cc0f6(0x29d)](_0x136b93){const _0x5c19dc=_0x3cc0f6;var _0x4818fb,_0x36a9bf,_0x1ef3e2,_0x3d57a8;const _0x4aceeb=this[_0x5c19dc(0x5ba)][_0x5c19dc(0x3de)](C[_0x5c19dc(0x2fc)]),{unitId:_0x5f2252,subUnitId:_0x52201}=Hs(_0x136b93),_0x43278f=_0x4aceeb[_0x5c19dc(0x281)](_0x5f2252)[_0x5c19dc(0x416)](),_0xcab8d6=(_0x36a9bf=(_0x4818fb=this[_0x5c19dc(0x512)][_0x5c19dc(0x27c)](_0x5f2252))==null?void 0x0:_0x4818fb[_0x5c19dc(0x57f)]())==null?void 0x0:_0x36a9bf[_0x5c19dc(0x255)]();if(_0x43278f[_0x5c19dc(0x411)]===0x0||!_0x5f2252||!_0x52201)return;const _0x1522c2=[{'id':C[_0x5c19dc(0x56f)]['id'],'params':{'unitId':_0x5f2252,'subUnitId':_0xcab8d6,'selections':a[_0x5c19dc(0x241)][_0x5c19dc(0x26b)](_0x43278f)}}],_0x5713a0=this[_0x5c19dc(0x5c3)]['transformMutationsWithChangeset'](_0x136b93,_0x1522c2);if(!_[_0x5c19dc(0x50f)](_0x5713a0))throw _0x5713a0[_0x5c19dc(0x2c9)];const _0x951358=(_0x3d57a8=(_0x1ef3e2=_0x5713a0['m2Prime'][0x0])==null?void 0x0:_0x1ef3e2[_0x5c19dc(0x3f2)])==null?void 0x0:_0x3d57a8[_0x5c19dc(0x1df)];if(Array[_0x5c19dc(0x414)](_0x951358)&&_0x951358[_0x5c19dc(0x411)]){if(_0x951358[_0x5c19dc(0x411)]===_0x1522c2[0x0]['params'][_0x5c19dc(0x1df)][_0x5c19dc(0x411)]&&_0x951358['every']((_0x14fdfb,_0x107950)=>a[_0x5c19dc(0x45c)][_0x5c19dc(0x31f)](_0x14fdfb[_0x5c19dc(0x36a)],_0x1522c2[0x0][_0x5c19dc(0x3f2)][_0x5c19dc(0x1df)][_0x107950][_0x5c19dc(0x36a)])))return;this[_0x5c19dc(0x5ba)]['get'](a['ICommandService'])['executeCommand'](C['SetSelectionsOperation']['id'],{'unitId':_0x5f2252,'subUnitId':_0xcab8d6,'selections':_0x951358});}}};pe=js([we(0x0,a['Inject'](a[_0x3cc0f6(0x5e8)])),we(0x1,_[_0x3cc0f6(0x3ba)]),we(0x2,a[_0x3cc0f6(0x2f2)])],pe);const Oe=a[_0x3cc0f6(0x292)](_0x3cc0f6(0x356));var Dt=(_0x177094=>(_0x177094[_0x177094[_0x3cc0f6(0x2bf)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x177094[_0x177094['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x177094))(Dt||{});const nt=0x7530,rt=_0x3cc0f6(0x45e);class xs extends a[_0x3cc0f6(0x31b)]{constructor(){const _0x15b3a9=_0x3cc0f6;super(),u(this,_0x15b3a9(0x22f),a['Tools'][_0x15b3a9(0x256)]()),u(this,_0x15b3a9(0x521),new Set()),u(this,_0x15b3a9(0x40b),new Map()),u(this,'_heartbeatTimer',null),u(this,_0x15b3a9(0x48d),new Map()),u(this,_0x15b3a9(0x309),new Map()),this[_0x15b3a9(0x53a)]();}[_0x3cc0f6(0x32b)](){const _0x41c62a=_0x3cc0f6;super[_0x41c62a(0x32b)](),this[_0x41c62a(0x48d)][_0x41c62a(0x300)]((_0x1cd9e4,_0x333659)=>this[_0x41c62a(0x314)](_0x333659)),this[_0x41c62a(0x4db)]&&window[_0x41c62a(0x3c3)](this[_0x41c62a(0x4db)]);}['getUnitStatus$'](_0x3273e2){const _0x2b57da=_0x3cc0f6;return this['_ensureSubject'](_0x3273e2)[_0x2b57da(0x57c)](v[_0x2b57da(0x534)]());}[_0x3cc0f6(0x589)](_0x3d8f0c){const _0x2a0387=_0x3cc0f6;this[_0x2a0387(0x521)]['size']===0x0&&this[_0x2a0387(0x599)](),this[_0x2a0387(0x521)][_0x2a0387(0x44c)](_0x3d8f0c),this[_0x2a0387(0x3f4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3d8f0c],'isForwarded':!0x1});}[_0x3cc0f6(0x3c7)](_0x4cda52){const _0x114530=_0x3cc0f6;this['_selfUnitIDs'][_0x114530(0x3c4)](_0x4cda52),this['_selfUnitIDs'][_0x114530(0x437)]===0x0&&this['_heartbeatTimer']&&window[_0x114530(0x3c3)](this[_0x114530(0x4db)]);}[_0x3cc0f6(0x53a)](){const _0x145b8e=_0x3cc0f6;this[_0x145b8e(0x217)](a[_0x145b8e(0x2ba)](v['fromEvent'](window,_0x145b8e(0x46f))[_0x145b8e(0x342)](_0x4c2c05=>{const _0x21727f=_0x145b8e;if(_0x4c2c05[_0x21727f(0x49f)]!==rt||!_0x4c2c05[_0x21727f(0x37d)])return;const _0x42e5f4=JSON[_0x21727f(0x5b4)](_0x4c2c05['newValue']);this[_0x21727f(0x5a1)](_0x42e5f4);}))),window[_0x145b8e(0x581)](_0x145b8e(0x4ea),()=>this['_send']({'type':0x1,'memberID':this[_0x145b8e(0x22f)],'unitIDs':Array[_0x145b8e(0x5b7)](this[_0x145b8e(0x521)])}));}['_handleEvent'](_0x60367d){const _0x7ad21c=_0x3cc0f6;switch(_0x60367d['type']){case 0x0:this['_handleJoinEvent'](_0x60367d);break;case 0x1:this[_0x7ad21c(0x5c8)](_0x60367d);break;case 0x2:this[_0x7ad21c(0x1cf)](_0x60367d);break;}}['_handleJoinEvent'](_0x525d23){const _0x2c3f82=_0x3cc0f6,{unitIDs:_0x11bbff,memberID:_0x5c02fa,isForwarded:_0x142c72}=_0x525d23;_0x11bbff[_0x2c3f82(0x300)](_0x4d4c4d=>{const _0x116c73=_0x2c3f82;if(!_0x142c72&&this['_unitOnClients']['has'](_0x4d4c4d)&&this[_0x116c73(0x38a)](_0x4d4c4d)['next'](0x1),!this[_0x116c73(0x40b)][_0x116c73(0x2d0)](_0x4d4c4d)||!this[_0x116c73(0x40b)][_0x116c73(0x3de)](_0x4d4c4d)[_0x116c73(0x2d0)](_0x5c02fa)){const _0x5905a0=this[_0x116c73(0x40b)][_0x116c73(0x3de)](_0x4d4c4d)||new Set();_0x5905a0['add'](_0x5c02fa),this[_0x116c73(0x40b)][_0x116c73(0x420)](_0x4d4c4d,_0x5905a0),this[_0x116c73(0x3f3)](_0x5c02fa);}}),_0x142c72||this[_0x2c3f82(0x3f4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2c3f82(0x521)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xc1311d){const _0x40ab83=_0x3cc0f6;this[_0x40ab83(0x314)](_0xc1311d);const _0x44e973=window['setTimeout'](()=>{const _0x387735=_0x40ab83;this[_0x387735(0x40b)][_0x387735(0x300)](_0x2c2603=>{const _0x559185=_0x387735;_0x2c2603[_0x559185(0x3c4)](_0xc1311d);});},nt*0x2);this[_0x40ab83(0x48d)][_0x40ab83(0x420)](_0xc1311d,_0x44e973);}[_0x3cc0f6(0x314)](_0x1a463b){const _0x5e0917=_0x3cc0f6;if(this[_0x5e0917(0x48d)][_0x5e0917(0x2d0)](_0x1a463b)){const _0x1c75bb=this['_clearOtherTimers'][_0x5e0917(0x3de)](_0x1a463b);_0x1c75bb&&window[_0x5e0917(0x468)](_0x1c75bb),this[_0x5e0917(0x48d)][_0x5e0917(0x420)](_0x1a463b,null);}}['_handleLeaveEvent'](_0x36d5cb){const _0x3d89c7=_0x3cc0f6,{memberID:_0x31e861,unitIDs:_0xc73fbe}=_0x36d5cb;_0xc73fbe[_0x3d89c7(0x300)](_0x2e1458=>{const _0x378d43=_0x3d89c7;var _0x510bf1;const _0x4306eb=this[_0x378d43(0x40b)][_0x378d43(0x3de)](_0x2e1458);_0x4306eb&&(_0x4306eb['delete'](_0x31e861),(_0x510bf1=this[_0x378d43(0x38a)](_0x2e1458))==null||_0x510bf1['next'](_0x4306eb[_0x378d43(0x437)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x31e861);}['_handleHeartbeatEvent'](_0x56104e){const _0x46add8=_0x3cc0f6;this['_scheduleClearOtherTimer'](_0x56104e[_0x46add8(0x335)]);}['_send'](_0x499173){localStorage['setItem'](rt,JSON['stringify'](_0x499173));}['_scheduleHeartbeat'](){const _0x373afa=_0x3cc0f6;this[_0x373afa(0x4db)]=window[_0x373afa(0x5a4)](()=>{const _0x79afce=_0x373afa;this['_send']({'type':0x2,'memberID':this[_0x79afce(0x22f)]});},nt);}[_0x3cc0f6(0x38a)](_0x455079){const _0xcc60f1=_0x3cc0f6;return this['_unitStatus'][_0xcc60f1(0x2d0)](_0x455079)||this[_0xcc60f1(0x309)]['set'](_0x455079,new v[(_0xcc60f1(0x3ea))](0x0)),this[_0xcc60f1(0x309)][_0xcc60f1(0x3de)](_0x455079);}}function yt(_0x318e47){const _0x58aacb=_0x3cc0f6;let _0x1dd491='';for(const _0x194173 of _0x318e47){const {startOffset:_0x588b79,endOffset:_0x40c747,isActive:_0x152406,rangeType:_0x2bc699,segmentId:_0x13260b,segmentPage:_0x218fa7}=_0x194173;_0x1dd491[_0x58aacb(0x411)]&&(_0x1dd491+=','),_0x1dd491+=_0x588b79+':'+_0x40c747+':'+(_0x152406?'1':'0')+':'+_0x2bc699+':'+_0x13260b+':'+_0x218fa7;}return _0x1dd491;}function ks(_0x43ca14){const _0x35fa8b=_0x3cc0f6,_0x4385a8=_0x43ca14[_0x35fa8b(0x252)](','),_0x104517=[];for(const _0x357c39 of _0x4385a8){const [_0xf1d5a0,_0x27a432,_0x17fa78,_0x18e088,_0x4fc7ee,_0x293d7f]=_0x357c39[_0x35fa8b(0x252)](':');_0x104517[_0x35fa8b(0x430)]({'startOffset':Number(_0xf1d5a0),'endOffset':Number(_0x27a432),'collapsed':_0xf1d5a0===_0x27a432,'isActive':_0x17fa78==='1','rangeType':_0x18e088===a[_0x35fa8b(0x45f)][_0x35fa8b(0x262)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x35fa8b(0x45f)][_0x35fa8b(0x51b)],'segmentId':typeof _0x4fc7ee==_0x35fa8b(0x3d4)?String(_0x4fc7ee):'','segmentPage':Number(_0x293d7f!=null?_0x293d7f:-0x1)});}return _0x104517[_0x35fa8b(0x3f5)](_0x3523c3=>_0x3523c3['isActive'])||(_0x104517[0x0][_0x35fa8b(0x5dd)]=!0x0),_0x104517;}class qe extends a['RxDisposable']{constructor(){const _0x367744=_0x3cc0f6;super(...arguments),u(this,_0x367744(0x1e2),new v[(_0x367744(0x3ea))](null)),u(this,_0x367744(0x5a5),this[_0x367744(0x1e2)][_0x367744(0x459)]());}['syncEditingCollabCursor'](_0x399097){const _0x3c0a1f=_0x3cc0f6,{unitID:_0x1509f2,memberID:_0x470d39,textRanges:_0x200e0f}=_0x399097,_0x2850f0=yt(_0x200e0f);if(_0x2850f0==='')return;const _0x295016={'unitID':_0x1509f2,'memberID':_0x470d39,'selection':_0x2850f0};this[_0x3c0a1f(0x1e2)][_0x3c0a1f(0x517)](_0x295016);}}var Bs=Object[_0x3cc0f6(0x1c6)],Vs=Object[_0x3cc0f6(0x544)],Ws=(_0x519c8b,_0x2c11a6,_0x58273e,_0x45f7e8)=>{for(var _0x30fdaa=_0x45f7e8>0x1?void 0x0:_0x45f7e8?Vs(_0x2c11a6,_0x58273e):_0x2c11a6,_0x27a6a9=_0x519c8b['length']-0x1,_0x28cbe6;_0x27a6a9>=0x0;_0x27a6a9--)(_0x28cbe6=_0x519c8b[_0x27a6a9])&&(_0x30fdaa=(_0x45f7e8?_0x28cbe6(_0x2c11a6,_0x58273e,_0x30fdaa):_0x28cbe6(_0x30fdaa))||_0x30fdaa);return _0x45f7e8&&_0x30fdaa&&Bs(_0x2c11a6,_0x58273e,_0x30fdaa),_0x30fdaa;},ot=(_0x1c1696,_0x3bc190)=>(_0x4bd786,_0x225965)=>_0x3bc190(_0x4bd786,_0x225965,_0x1c1696);let Ce=class{constructor(_0xe97a3d,_0x3894c8){const _0x3500a8=_0x3cc0f6;this[_0x3500a8(0x5ba)]=_0xe97a3d,this['_transformService']=_0x3894c8;}[_0x3cc0f6(0x29d)](_0x267134){const _0x2a31ad=_0x3cc0f6;var _0x47c0e6;const _0x1b5d77=this[_0x2a31ad(0x5ba)][_0x2a31ad(0x3de)](re['DocSelectionManagerService']),_0x48b292=(_0x47c0e6=_0x1b5d77['getDocRanges']())!=null?_0x47c0e6:[];if(_0x48b292[_0x2a31ad(0x411)]===0x0)return;const _0x11a79a=[{'id':_0x2a31ad(0x2b2),'params':{'unitId':_0x267134[_0x2a31ad(0x426)],'actions':null,'textRanges':_0x48b292}}],_0x2835a5=this[_0x2a31ad(0x5c3)]['transformMutationsWithChangeset'](_0x267134,_0x11a79a);if(!_[_0x2a31ad(0x50f)](_0x2835a5))throw _0x2835a5[_0x2a31ad(0x2c9)];const _0x48f260=_0x2835a5['m2Prime'][0x0][_0x2a31ad(0x3f2)][_0x2a31ad(0x3b1)];Array[_0x2a31ad(0x414)](_0x48f260)&&_0x48f260[_0x2a31ad(0x411)]&&_0x1b5d77[_0x2a31ad(0x5b6)](_0x48f260,!0x1);}};Ce=Ws([ot(0x0,a['Inject'](a[_0x3cc0f6(0x5e8)])),ot(0x1,_['ITransformService'])],Ce);const Fs=new Set([C[_0x3cc0f6(0x52e)]['id']]);function at(_0x5b214c,_0x37aad8,_0x7069ca,_0xa35687,_0x25071d){const _0x2aea8b=_0x3cc0f6;var _0x57e413,_0x37280a,_0x3c04dd,_0x179430;const _0x5bd75f=[];for(const _0x1dc17c of _0x5b214c)if(Fs[_0x2aea8b(0x2d0)](_0x1dc17c['id'])){if(_0x5bd75f[_0x2aea8b(0x411)]>0x0)break;_0x5bd75f[_0x2aea8b(0x430)](_0x1dc17c);break;}else _0x5bd75f[_0x2aea8b(0x430)](_0x1dc17c);const _0x3276c8=(_0x37280a=(_0x57e413=_0x25071d[_0x2aea8b(0x3c2)]())==null?void 0x0:_0x57e413[_0x2aea8b(0x4b4)])!=null?_0x37280a:_0x2aea8b(0x317),_0x35b8a4=(_0x179430=(_0x3c04dd=_0x25071d[_0x2aea8b(0x3c2)]())==null?void 0x0:_0x3c04dd[_0x2aea8b(0x335)])!=null?_0x179430:_0x2aea8b(0x317);return{'changeset':{'unitID':_0x37aad8,'type':_[_0x2aea8b(0x301)](_0x7069ca[_0x2aea8b(0x220)](_0x37aad8)),'baseRev':_0xa35687[_0x2aea8b(0x3cb)](_0x37aad8),'revision':0x0,'userID':_0x3276c8,'memberID':_0x35b8a4,'mutations':_0x5bd75f},'pendingMutations':_0x5b214c[_0x2aea8b(0x1c3)](_0x5bd75f[_0x2aea8b(0x411)])};}function Gs(_0x2e4640,_0x253b2e,_0x1a4285,_0x34ca73,_0x63b500){const _0x1ea386=_0x3cc0f6;var _0x2cf0f2,_0x495f21,_0x56c012,_0x6b877;const _0x1e00b9=[_0x2e4640['reduce']((_0x448074,_0x114fa6)=>{const _0x39f9ce=_0x10ac;var _0x37e70e;const {id:_0x3a5b8c}=_0x448074,{id:_0x2921ab,type:_0x7b65b7}=_0x114fa6,_0x5ecb4a=(_0x37e70e=_0x448074['params'])!=null?_0x37e70e:{'actions':null},_0x5b5b25=_0x114fa6[_0x39f9ce(0x3f2)];if(_0x3a5b8c&&_0x3a5b8c!==_0x2921ab)throw new Error(_0x39f9ce(0x593)+_0x3a5b8c+'\x20-\x20'+_0x2921ab+'.');return{..._0x448074,'id':_0x2921ab,'type':_0x7b65b7,'params':{'unitId':_0x5b5b25[_0x39f9ce(0x3e7)],'textRanges':_0x5b5b25[_0x39f9ce(0x3b1)],'actions':a[_0x39f9ce(0x211)][_0x39f9ce(0x366)](_0x5ecb4a[_0x39f9ce(0x419)],_0x5b5b25['actions'])}};},{})],_0x55a478=(_0x495f21=(_0x2cf0f2=_0x63b500['getCurrentUser']())==null?void 0x0:_0x2cf0f2[_0x1ea386(0x4b4)])!=null?_0x495f21:_0x1ea386(0x317),_0x76ab0b=(_0x6b877=(_0x56c012=_0x63b500[_0x1ea386(0x3c2)]())==null?void 0x0:_0x56c012['memberID'])!=null?_0x6b877:'unknown';return{'changeset':{'unitID':_0x253b2e,'type':_['mapDocumentTypeToUniverType'](_0x1a4285[_0x1ea386(0x220)](_0x253b2e)),'baseRev':_0x34ca73['getCurrentRevOfUnit'](_0x253b2e),'revision':0x0,'userID':_0x55a478,'memberID':_0x76ab0b,'mutations':_0x1e00b9},'pendingMutations':[]};}function Ut(_0x1832a5,_0x419f66){const _0xff28dc=_0x3cc0f6,_0x4993b6=new v[(_0xff28dc(0x421))](0x1);return setTimeout(()=>_0x4993b6[_0xff28dc(0x517)](_0x419f66),_0x1832a5),_0x4993b6[_0xff28dc(0x459)]()[_0xff28dc(0x57c)](v[_0xff28dc(0x4e6)](0x1));}const Ys={'id':C[_0x3cc0f6(0x31a)]['id'],'type':a['CommandType'][_0x3cc0f6(0x41d)],'params':{}};var Ks=Object[_0x3cc0f6(0x1c6)],Xs=Object[_0x3cc0f6(0x544)],Q=(_0x2701e6,_0x25a111,_0x109d6f,_0x5bb21c)=>{const _0x35deb5=_0x3cc0f6;for(var _0x13f70f=_0x5bb21c>0x1?void 0x0:_0x5bb21c?Xs(_0x25a111,_0x109d6f):_0x25a111,_0x1549ee=_0x2701e6[_0x35deb5(0x411)]-0x1,_0x3d9974;_0x1549ee>=0x0;_0x1549ee--)(_0x3d9974=_0x2701e6[_0x1549ee])&&(_0x13f70f=(_0x5bb21c?_0x3d9974(_0x25a111,_0x109d6f,_0x13f70f):_0x3d9974(_0x13f70f))||_0x13f70f);return _0x5bb21c&&_0x13f70f&&Ks(_0x25a111,_0x109d6f,_0x13f70f),_0x13f70f;},g=(_0x2aab43,_0x510973)=>(_0x1b63d7,_0x19bd40)=>_0x510973(_0x1b63d7,_0x19bd40,_0x2aab43),D=(_0x5e7157=>(_0x5e7157['NOT_COLLAB']=_0x3cc0f6(0x226),_0x5e7157[_0x3cc0f6(0x2d7)]=_0x3cc0f6(0x219),_0x5e7157[_0x3cc0f6(0x3eb)]=_0x3cc0f6(0x1ce),_0x5e7157[_0x3cc0f6(0x59c)]='awaiting',_0x5e7157[_0x3cc0f6(0x4e8)]=_0x3cc0f6(0x552),_0x5e7157[_0x3cc0f6(0x56c)]=_0x3cc0f6(0x2cb),_0x5e7157[_0x3cc0f6(0x2c5)]=_0x3cc0f6(0x5d8),_0x5e7157[_0x3cc0f6(0x50c)]=_0x3cc0f6(0x550),_0x5e7157))(D||{});const Pt=0xea60;class ee{constructor(_0x5e3f3b,_0x4f676e,_0x51e505,_0x450c33,_0x36f78b,_0x28c429,_0x42498b,_0x1d22b3,_0x3735b6){const _0x472c58=_0x3cc0f6;u(this,_0x472c58(0x29a),null),u(this,'_pendingMutations',[]),(this[_0x472c58(0x426)]=_0x5e3f3b,this['type']=_0x4f676e,this[_0x472c58(0x3dd)]=_0x36f78b,this[_0x472c58(0x495)]=_0x28c429,this[_0x472c58(0x4e0)]=_0x42498b,this['_revisionService']=_0x1d22b3,this[_0x472c58(0x1e8)]=_0x3735b6,this[_0x472c58(0x29a)]=_0x51e505,this[_0x472c58(0x359)]=_0x450c33);}[_0x3cc0f6(0x3a4)](_0x417449){const _0x18292c=_0x3cc0f6,_0x27f67a=this['_revisionService'][_0x18292c(0x3cb)](this['unitID']);return _0x417449['revision']>_0x27f67a+0x1?(this[_0x18292c(0x3dd)][_0x18292c(0x48c)]({'from':_0x27f67a,'to':_0x417449[_0x18292c(0x511)]-0x1}),!0x0):!0x1;}[_0x3cc0f6(0x240)](_0x449b50){const _0x4aaae3=_0x3cc0f6;this[_0x4aaae3(0x4e0)][_0x4aaae3(0x46d)](this['unitID'],_0x449b50);}[_0x3cc0f6(0x486)](_0x2e23f6){const _0x21955f=_0x3cc0f6;var _0x52a0d8,_0x29b874;(_0x29b874=(_0x52a0d8=this[_0x21955f(0x3dd)])[_0x21955f(0x42a)])==null||_0x29b874['call'](_0x52a0d8,_0x2e23f6);}[_0x3cc0f6(0x4ee)](_0x591939){const _0x565538=_0x3cc0f6;var _0x33643f,_0x303218;return(_0x303218=(_0x33643f=this[_0x565538(0x3dd)])[_0x565538(0x56d)])==null?void 0x0:_0x303218[_0x565538(0x484)](_0x33643f,_0x591939);}[_0x3cc0f6(0x1e9)](_0x3c3baa){const _0x56f799=_0x3cc0f6;var _0x2c8eaf,_0x4d5f81,_0x384edd;return(_0x384edd=(_0x4d5f81=(_0x2c8eaf=this['_handler'])[_0x56f799(0x320)])==null?void 0x0:_0x4d5f81[_0x56f799(0x484)](_0x2c8eaf,_0x3c3baa))!=null?_0x384edd:_0x3c3baa;}[_0x3cc0f6(0x54d)](_0x641faa){const _0x5df423=_0x3cc0f6;var _0x58bc58,_0x3cf07a;if(this[_0x5df423(0x523)]===H['UNIVER_DOC']){const {unitID:_0x1f981f,mutations:_0x471048,memberID:_0x194f37}=_0x641faa,_0x28da61=_0x471048[0x0][_0x5df423(0x3f2)][_0x5df423(0x3b1)];Array[_0x5df423(0x414)](_0x28da61)&&_0x28da61[_0x5df423(0x411)]>0x0&&((_0x3cf07a=(_0x58bc58=this['_handler'])[_0x5df423(0x5ea)])==null||_0x3cf07a[_0x5df423(0x484)](_0x58bc58,{'unitID':_0x1f981f,'memberID':_0x194f37,'textRanges':_0x28da61}));}}[_0x3cc0f6(0x20d)](){const _0x32f863=_0x3cc0f6;this[_0x32f863(0x1e8)][_0x32f863(0x5bd)](this[_0x32f863(0x426)],this[_0x32f863(0x523)],this[_0x32f863(0x29a)],this[_0x32f863(0x359)]);}[_0x3cc0f6(0x502)](){const _0x2b879b=_0x3cc0f6;return this[_0x2b879b(0x449)][_0x2b879b(0x3cb)](this[_0x2b879b(0x426)]);}[_0x3cc0f6(0x2f4)](){const _0x4a4873=_0x3cc0f6;this[_0x4a4873(0x449)][_0x4a4873(0x2c1)](this[_0x4a4873(0x426)]);}[_0x3cc0f6(0x1e7)](_0x202aee){const _0x2f7f28=_0x3cc0f6;var _0x381824;const _0x4b5819=this[_0x2f7f28(0x1e9)](_0x202aee),_0x1e3d9d=a[_0x2f7f28(0x35f)](_0x4b5819['mutations'],this[_0x2f7f28(0x495)],{'fromCollab':!0x0});if(!_0x1e3d9d['result'])throw _0x1e3d9d[_0x2f7f28(0x2c9)]instanceof Error?_0x1e3d9d[_0x2f7f28(0x2c9)]:new Error((_0x381824=_0x1e3d9d[_0x2f7f28(0x2c9)])!=null?_0x381824:_0x2f7f28(0x58b));this[_0x2f7f28(0x4ee)](_0x4b5819),this[_0x2f7f28(0x240)](_0x202aee),this[_0x2f7f28(0x486)](_0x4b5819),this[_0x2f7f28(0x54d)](_0x4b5819),this[_0x2f7f28(0x2f4)]();}}let oe=class extends ee{constructor(_0x44e8a9,_0x24ed18,_0xa0d232,_0x51bc8a,_0x48fe6e,_0x4786e3,_0x2e6315,_0xd846c0,_0x23a623,_0x139ea7){const _0x25050d=_0x3cc0f6;super(_0x44e8a9,_0x24ed18,null,[],_0xa0d232,_0xd846c0,_0x2e6315,_0x51bc8a,_0x48fe6e),u(this,_0x25050d(0x5d6),_0x25050d(0x219)),(this[_0x25050d(0x5ba)]=_0x4786e3,this['_logService']=_0x23a623,this[_0x25050d(0x5c3)]=_0x139ea7);}[_0x3cc0f6(0x4dc)](_0x1eac69){const _0x9fd722=_0x3cc0f6,_0x174560=this['_injector'][_0x9fd722(0x2e1)](W,this[_0x9fd722(0x426)],this[_0x9fd722(0x523)],[_0x1eac69],this['_handler']);return _0x174560[_0x9fd722(0x1f0)](),_0x174560[_0x9fd722(0x20d)](),_0x174560;}[_0x3cc0f6(0x369)](_0xffb0b8){const _0x39186a=_0x3cc0f6;if(this[_0x39186a(0x3a4)](_0xffb0b8))return this['_injector'][_0x39186a(0x2e1)](k,this['unitID'],this[_0x39186a(0x523)],null,[],null,[_0xffb0b8],this[_0x39186a(0x3dd)]);try{const _0x3a9579=this[_0x39186a(0x5c3)]['transformMutationsWithChangeset'](_0xffb0b8,[Ys]);if(_['isTransformMutationsWithChangesetSuccess'](_0x3a9579)){const {c1Prime:_0x946d21}=_0x3a9579;return this[_0x39186a(0x1e7)](_0x946d21),this;}throw _0x3a9579[_0x39186a(0x2c9)];}catch(_0x367260){return this[_0x39186a(0x518)][_0x39186a(0x2c9)](_0x367260),this[_0x39186a(0x496)](!0x1);}}[_0x3cc0f6(0x496)](_0x373494){const _0x52c0de=_0x3cc0f6;return this[_0x52c0de(0x5ba)][_0x52c0de(0x2e1)](K,this[_0x52c0de(0x426)],this[_0x52c0de(0x523)],null,[],this[_0x52c0de(0x3dd)],_0x373494);}[_0x3cc0f6(0x4d6)](){const _0x26f110=_0x3cc0f6;throw new Error(_0x26f110(0x2d3));}[_0x3cc0f6(0x2e5)](){const _0x54b0e7=_0x3cc0f6;throw new Error(_0x54b0e7(0x402));}[_0x3cc0f6(0x332)](){return this;}['toggleOffline'](){const _0x26171f=_0x3cc0f6;return this[_0x26171f(0x5ba)][_0x26171f(0x2e1)](X,this[_0x26171f(0x426)],this[_0x26171f(0x523)],null,[],this[_0x26171f(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}['resend'](){const _0x450115=_0x3cc0f6;throw new Error(_0x450115(0x49c));}[_0x3cc0f6(0x436)](){const _0x59d401=_0x3cc0f6,_0xc05966=this[_0x59d401(0x449)]['getCurrentRevOfUnit'](this[_0x59d401(0x426)]);return this['_handler']['onMissingChangesets']({'from':_0xc05966,'to':0x0}),this['_injector'][_0x59d401(0x2e1)](k,this['unitID'],this[_0x59d401(0x523)],null,[],null,[],this[_0x59d401(0x3dd)]);}};oe=Q([g(0x3,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x4,a['Inject'](exports[_0x3cc0f6(0x1f8)])),g(0x5,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x6,a[_0x3cc0f6(0x238)]),g(0x7,a[_0x3cc0f6(0x1d6)]),g(0x8,a['ILogService']),g(0x9,_[_0x3cc0f6(0x3ba)])],oe);let W=class extends ee{constructor(_0x4efd18,_0x13167b,_0x520c76,_0x4642d8,_0x63b76e,_0xf8f5b7,_0x23952e,_0x16aa7f,_0x176615,_0x4ff9f2,_0x485e7a,_0x3e25a2,_0x2edbe2,_0x1fd4d0){const _0x3d37d1=_0x3cc0f6;super(_0x4efd18,_0x13167b,null,_0x520c76,_0x4642d8,_0x4ff9f2,_0x1fd4d0,_0xf8f5b7,_0x23952e),u(this,_0x3d37d1(0x5d6),_0x3d37d1(0x1ce)),u(this,_0x3d37d1(0x388),null),u(this,'_sendingTimer',null),(this[_0x3d37d1(0x5ba)]=_0x63b76e,this[_0x3d37d1(0x5a7)]=_0x16aa7f,this['_logService']=_0x176615,this[_0x3d37d1(0x5e0)]=_0x485e7a,this[_0x3d37d1(0x5c3)]=_0x3e25a2,this[_0x3d37d1(0x34b)]=_0x2edbe2);}[_0x3cc0f6(0x4dc)](_0x5f2fba){const _0xf78549=_0x3cc0f6;return this[_0xf78549(0x359)]['push'](_0x5f2fba),this[_0xf78549(0x20d)](),this;}[_0x3cc0f6(0x369)](_0xef3d72){const _0x3e19c4=_0x3cc0f6;if(this[_0x3e19c4(0x3a4)](_0xef3d72))return this['_clearScheduledTask'](),this[_0x3e19c4(0x5ba)][_0x3e19c4(0x2e1)](k,this['unitID'],this['type'],null,this[_0x3e19c4(0x359)],null,[_0xef3d72],this[_0x3e19c4(0x3dd)]);try{const _0x985903=this[_0x3e19c4(0x5c3)][_0x3e19c4(0x338)](_0xef3d72,this['_pendingMutations']);if(_[_0x3e19c4(0x50f)](_0x985903)){const {c1Prime:_0x36bf7a,m2Prime:_0x383223}=_0x985903;this[_0x3e19c4(0x1e7)](_0x36bf7a);const _0x39461d=this[_0x3e19c4(0x5ba)][_0x3e19c4(0x2e1)](W,this['unitID'],this[_0x3e19c4(0x523)],_0x383223,this[_0x3e19c4(0x3dd)]);return this[_0x3e19c4(0x4d0)](),_0x39461d[_0x3e19c4(0x1f0)](this[_0x3e19c4(0x388)]?Math[_0x3e19c4(0x493)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x3e19c4(0x5c1)]()),_0x39461d;}throw _0x985903[_0x3e19c4(0x2c9)];}catch(_0x4fb0ef){return this['_logService']['error'](_0x4fb0ef),this[_0x3e19c4(0x496)](!0x1);}}[_0x3cc0f6(0x4d6)](){const _0xfac648=_0x3cc0f6;throw new Error(_0xfac648(0x5e6));}['onRemoteRej'](){const _0x746908=_0x3cc0f6;throw new Error(_0x746908(0x20a));}[_0x3cc0f6(0x332)](){return this;}[_0x3cc0f6(0x4ef)](){const _0x33c905=_0x3cc0f6;return this[_0x33c905(0x4d0)](),this[_0x33c905(0x5ba)]['createInstance'](X,this[_0x33c905(0x426)],this['type'],null,this[_0x33c905(0x359)],this[_0x33c905(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x1f0)](_0x26293c){const _0x340de8=_0x3cc0f6,_0x164a92=_0x26293c!=null?_0x26293c:this['_getSendChangesetTimeout']();this[_0x340de8(0x388)]=new Date()[_0x340de8(0x3e6)](),this['_sendingTimer']=window['setTimeout'](()=>{const _0x4736a9=_0x340de8;this['_clearScheduledTask']();let _0x482cf7=null;switch(this[_0x4736a9(0x523)]){case H['UNIVER_SHEET']:{_0x482cf7=at(this[_0x4736a9(0x359)],this[_0x4736a9(0x426)],this[_0x4736a9(0x34b)],this[_0x4736a9(0x449)],this[_0x4736a9(0x5a7)]);break;}case H['UNIVER_DOC']:{this[_0x4736a9(0x359)][_0x4736a9(0x4e7)](_0x4a0871=>_0x4a0871['id']===re[_0x4736a9(0x4c0)]['id'])?_0x482cf7=Gs(this['_pendingMutations'],this[_0x4736a9(0x426)],this[_0x4736a9(0x34b)],this[_0x4736a9(0x449)],this[_0x4736a9(0x5a7)]):_0x482cf7=at(this[_0x4736a9(0x359)],this[_0x4736a9(0x426)],this[_0x4736a9(0x34b)],this[_0x4736a9(0x449)],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4736a9(0x523)]+_0x4736a9(0x37b));}const {changeset:_0x5ce34d,pendingMutations:_0x4018ac}=_0x482cf7;this[_0x4736a9(0x3dd)][_0x4736a9(0x224)](_0x5ce34d);const _0x292fff=_0x4018ac[_0x4736a9(0x411)]?this[_0x4736a9(0x5ba)]['createInstance'](F,this[_0x4736a9(0x426)],this['type'],_0x5ce34d,_0x4018ac,this['_handler'],void 0x0):this[_0x4736a9(0x5ba)][_0x4736a9(0x2e1)](Y,this['unitID'],this[_0x4736a9(0x523)],_0x5ce34d,this['_handler']);_0x292fff[_0x4736a9(0x20d)](),this[_0x4736a9(0x3dd)]['onStateChange'](this,_0x292fff);},_0x164a92);}[_0x3cc0f6(0x5c1)](){const _0x4d8070=_0x3cc0f6;var _0x17344f;const _0x5f51ac=this[_0x4d8070(0x5e0)][_0x4d8070(0x458)]($);return(_0x17344f=_0x5f51ac==null?void 0x0:_0x5f51ac[_0x4d8070(0x302)])!=null?_0x17344f:Qt;}[_0x3cc0f6(0x259)](){const _0x24f56f=_0x3cc0f6;throw new Error(_0x24f56f(0x487));}[_0x3cc0f6(0x4d0)](){const _0x575199=_0x3cc0f6;this[_0x575199(0x209)]!=null&&(clearTimeout(this[_0x575199(0x209)]),this[_0x575199(0x209)]=null);}[_0x3cc0f6(0x496)](_0x3cf4bf){const _0x137b40=_0x3cc0f6;return this[_0x137b40(0x4d0)](),this['_injector'][_0x137b40(0x2e1)](K,this['unitID'],this['type'],null,this[_0x137b40(0x359)],this[_0x137b40(0x3dd)],_0x3cf4bf);}};W=Q([g(0x4,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x5,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x6,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),g(0x7,a[_0x3cc0f6(0x573)](Z)),g(0x8,a[_0x3cc0f6(0x24d)]),g(0x9,a[_0x3cc0f6(0x1d6)]),g(0xa,a[_0x3cc0f6(0x5d3)]),g(0xb,_[_0x3cc0f6(0x3ba)]),g(0xc,a[_0x3cc0f6(0x2f2)]),g(0xd,a['IUndoRedoService'])],W);let Y=class extends ee{constructor(_0x104ac0,_0x45ea84,_0x25df49,_0x397265,_0x2d41c5,_0x6757f3,_0x496150,_0x147f8a,_0x14e2c1,_0x2c7960,_0x2af7ea){const _0x48a947=_0x3cc0f6;super(_0x104ac0,_0x45ea84,_0x25df49,[],_0x397265,_0x147f8a,_0x2af7ea,_0x6757f3,_0x496150),u(this,_0x48a947(0x5d6),_0x48a947(0x2d2)),u(this,_0x48a947(0x21e),0x0),u(this,'_resendTimer'),u(this,_0x48a947(0x254)),(this[_0x48a947(0x5ba)]=_0x2d41c5,this[_0x48a947(0x518)]=_0x14e2c1,this[_0x48a947(0x5c3)]=_0x2c7960);}['appendMutation'](_0x2a5c16){const _0x48ae54=_0x3cc0f6;this['_clearScheduledTask']();const _0xde90a8=this[_0x48ae54(0x5ba)]['createInstance'](F,this[_0x48ae54(0x426)],this[_0x48ae54(0x523)],this[_0x48ae54(0x29a)],[_0x2a5c16],this['_handler'],this[_0x48ae54(0x339)]);return _0xde90a8[_0x48ae54(0x20d)](),_0xde90a8;}['onRemoteChangeset'](_0x149527){const _0x1d05dc=_0x3cc0f6;if(this[_0x1d05dc(0x3a4)](_0x149527))return this[_0x1d05dc(0x4d0)](),this[_0x1d05dc(0x5ba)]['createInstance'](k,this[_0x1d05dc(0x426)],this[_0x1d05dc(0x523)],this[_0x1d05dc(0x29a)],[],null,[_0x149527],this[_0x1d05dc(0x3dd)]);try{const _0x4b222e=this[_0x1d05dc(0x5c3)][_0x1d05dc(0x304)]([_0x149527],[this[_0x1d05dc(0x29a)]],!0x1);if(_[_0x1d05dc(0x537)](_0x4b222e)){const {c1Prime:_0x9b4e45,c2Prime:_0x1bf54a}=_0x4b222e;this[_0x1d05dc(0x1e7)](_0x9b4e45[0x0]),_0x1bf54a[0x0][_0x1d05dc(0x4a1)]=this[_0x1d05dc(0x502)](),this[_0x1d05dc(0x4d0)]();const _0x31bf25=this[_0x1d05dc(0x5ba)][_0x1d05dc(0x2e1)](Y,this['unitID'],this[_0x1d05dc(0x523)],_0x1bf54a[0x0],this[_0x1d05dc(0x3dd)]);return _0x31bf25[_0x1d05dc(0x20d)](),_0x31bf25;}return this['_onConflict'](!0x1);}catch(_0x34b2c5){return this[_0x1d05dc(0x518)][_0x1d05dc(0x2c9)](_0x34b2c5),this[_0x1d05dc(0x496)](!0x1);}}[_0x3cc0f6(0x4d6)](_0x5aa4f2){const _0x262b0f=_0x3cc0f6;this[_0x262b0f(0x4d0)]();const _0x49a256=this[_0x262b0f(0x449)][_0x262b0f(0x3cb)](this[_0x262b0f(0x426)]);if(_0x5aa4f2[_0x262b0f(0x511)]<_0x49a256-0x1)return this;if(this['_checkMissing'](_0x5aa4f2))return this[_0x262b0f(0x5ba)]['createInstance'](k,this[_0x262b0f(0x426)],this[_0x262b0f(0x523)],null,[],this[_0x262b0f(0x29a)],[],this[_0x262b0f(0x3dd)]);this[_0x262b0f(0x2f4)]();const _0x4e656f=this[_0x262b0f(0x5ba)][_0x262b0f(0x2e1)](oe,this[_0x262b0f(0x426)],this[_0x262b0f(0x523)],this[_0x262b0f(0x3dd)]);return _0x4e656f['_updateLocalCache'](),_0x4e656f;}['onRemoteRej'](_0x1dfa01){const _0x368a19=_0x3cc0f6;return this[_0x368a19(0x496)](!!(_0x1dfa01!=null&&_0x1dfa01['isPermissionRej']));}[_0x3cc0f6(0x332)](_0x1ade24){const _0x529f45=_0x3cc0f6;return this[_0x529f45(0x21e)]>Pt?this[_0x529f45(0x4ef)]():(this[_0x529f45(0x339)]=Ut(this[_0x529f45(0x21e)],{'timeout':this[_0x529f45(0x21e)],'reqId':_0x1ade24['reqId']}),this[_0x529f45(0x254)]=this[_0x529f45(0x339)][_0x529f45(0x342)](({reqId:_0xec0f84,timeout:_0x2293a2})=>{const _0x5b63e0=_0x529f45;this[_0x5b63e0(0x2e2)](_0xec0f84,_0x2293a2);}),this);}['toggleOffline'](){const _0x1e90c5=_0x3cc0f6;return this[_0x1e90c5(0x4d0)](),this['_injector'][_0x1e90c5(0x2e1)](X,this[_0x1e90c5(0x426)],this[_0x1e90c5(0x523)],this[_0x1e90c5(0x29a)],[],this[_0x1e90c5(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x259)](){const _0xe44609=_0x3cc0f6;this[_0xe44609(0x3dd)][_0xe44609(0x224)](this[_0xe44609(0x29a)]);}[_0x3cc0f6(0x496)](_0x4081c1){const _0x4b3f26=_0x3cc0f6;return this[_0x4b3f26(0x4d0)](),this[_0x4b3f26(0x5ba)][_0x4b3f26(0x2e1)](K,this[_0x4b3f26(0x426)],this[_0x4b3f26(0x523)],this[_0x4b3f26(0x29a)],[],this[_0x4b3f26(0x3dd)],_0x4081c1);}['_resendWithTimeout'](_0x83c971,_0x4ff7c6){const _0x5ebef2=_0x3cc0f6;var _0x19dbb7;_0x83c971===((_0x19dbb7=this[_0x5ebef2(0x29a)])==null?void 0x0:_0x19dbb7[_0x5ebef2(0x236)])&&(this[_0x5ebef2(0x259)](),this[_0x5ebef2(0x21e)]=_0x4ff7c6===0x0?0x3e8:_0x4ff7c6*0x2);}['_clearScheduledTask'](){const _0xaa847e=_0x3cc0f6;var _0xdd8008;(_0xdd8008=this[_0xaa847e(0x254)])==null||_0xdd8008['unsubscribe'](),this[_0xaa847e(0x21e)]=0x0;}};Y=Q([g(0x4,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x5,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x6,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),g(0x7,a['ICommandService']),g(0x8,a[_0x3cc0f6(0x24d)]),g(0x9,_[_0x3cc0f6(0x3ba)]),g(0xa,a[_0x3cc0f6(0x238)])],Y);let F=class extends ee{constructor(_0x2aa704,_0x51f320,_0x576e59,_0x36ab21,_0x328496,_0x5820c8,_0x3b386f,_0x52443c,_0x2bde30,_0x41fb15,_0x49379a,_0x5b7cdb,_0x54022e){const _0x2bb459=_0x3cc0f6;super(_0x2aa704,_0x51f320,_0x576e59,_0x36ab21,_0x328496,_0x41fb15,_0x54022e,_0x52443c,_0x2bde30),u(this,_0x2bb459(0x5d6),_0x2bb459(0x552)),u(this,_0x2bb459(0x21e),0x0),u(this,_0x2bb459(0x339)),u(this,'_sender'),(this[_0x2bb459(0x5ba)]=_0x3b386f,this['_logService']=_0x49379a,this[_0x2bb459(0x5c3)]=_0x5b7cdb,_0x5820c8&&(this[_0x2bb459(0x339)]=_0x5820c8,this['_sender']=this[_0x2bb459(0x339)][_0x2bb459(0x342)](({reqId:_0x510159,timeout:_0x4174e7})=>{const _0x3feb8b=_0x2bb459;this[_0x3feb8b(0x2e2)](_0x510159,_0x4174e7);})));}[_0x3cc0f6(0x4dc)](_0x1d3fc3){const _0x3b3716=_0x3cc0f6;return this[_0x3b3716(0x359)][_0x3b3716(0x430)](_0x1d3fc3),this;}[_0x3cc0f6(0x369)](_0x413ac7){const _0x233a5d=_0x3cc0f6;if(this[_0x233a5d(0x3a4)](_0x413ac7))return this[_0x233a5d(0x4d0)](),this[_0x233a5d(0x5ba)][_0x233a5d(0x2e1)](k,this[_0x233a5d(0x426)],this[_0x233a5d(0x523)],this['_awaitingChangeset'],this[_0x233a5d(0x359)],null,[_0x413ac7],this[_0x233a5d(0x3dd)]);try{const _0x5ee759=this[_0x233a5d(0x5c3)]['transformChangesets']([_0x413ac7],[this[_0x233a5d(0x29a)]],!0x1);if(_[_0x233a5d(0x537)](_0x5ee759)){const {c1Prime:_0x387561,c2Prime:_0x4d89c0}=_0x5ee759,_0x2a1c27=this['_transformService'][_0x233a5d(0x338)](_0x387561[0x0],this[_0x233a5d(0x359)]);if(_[_0x233a5d(0x50f)](_0x2a1c27)){const {c1Prime:_0x2f1be7,m2Prime:_0x5503fc}=_0x2a1c27;return this[_0x233a5d(0x1e7)](_0x2f1be7),_0x4d89c0[0x0][_0x233a5d(0x4a1)]=this['_getCurrentRevision'](),this[_0x233a5d(0x4d0)](),this[_0x233a5d(0x5ba)]['createInstance'](F,this[_0x233a5d(0x426)],this[_0x233a5d(0x523)],_0x4d89c0[0x0],_0x5503fc,this[_0x233a5d(0x3dd)],void 0x0);}throw _0x2a1c27['error'];}throw _0x5ee759['error'];}catch(_0x40402e){return this['_logService'][_0x233a5d(0x2c9)](_0x40402e),this[_0x233a5d(0x496)](!0x1);}}[_0x3cc0f6(0x4d6)](_0x51887f){const _0x30afbd=_0x3cc0f6;if(this['_clearScheduledTask'](),this[_0x30afbd(0x3a4)](_0x51887f))return this[_0x30afbd(0x5ba)]['createInstance'](k,this[_0x30afbd(0x426)],this[_0x30afbd(0x523)],null,this[_0x30afbd(0x359)],this[_0x30afbd(0x29a)],[],this[_0x30afbd(0x3dd)]);this[_0x30afbd(0x2f4)]();const _0x2e7e5a=this['_injector'][_0x30afbd(0x2e1)](W,this['unitID'],this[_0x30afbd(0x523)],this[_0x30afbd(0x359)],this[_0x30afbd(0x3dd)]);return _0x2e7e5a[_0x30afbd(0x1f0)](),_0x2e7e5a[_0x30afbd(0x20d)](),_0x2e7e5a;}['onRemoteRej'](_0x179bd8){const _0x505ab9=_0x3cc0f6;return this[_0x505ab9(0x496)](!!(_0x179bd8!=null&&_0x179bd8[_0x505ab9(0x4c8)]));}[_0x3cc0f6(0x332)](_0x468794){const _0x25dafc=_0x3cc0f6;return this['_resendTimeout']>Pt?this[_0x25dafc(0x4ef)]():(this[_0x25dafc(0x339)]=Ut(this[_0x25dafc(0x21e)],{'timeout':this['_resendTimeout'],'reqId':_0x468794[_0x25dafc(0x236)]}),this['_sender']=this[_0x25dafc(0x339)]['subscribe'](({reqId:_0x3a1fb5,timeout:_0x3211de})=>{const _0x5795d4=_0x25dafc;this[_0x5795d4(0x2e2)](_0x3a1fb5,_0x3211de);}),this);}[_0x3cc0f6(0x4ef)](){const _0x24dc69=_0x3cc0f6;return this[_0x24dc69(0x4d0)](),this[_0x24dc69(0x5ba)][_0x24dc69(0x2e1)](X,this[_0x24dc69(0x426)],this['type'],this['_awaitingChangeset'],this[_0x24dc69(0x359)],this[_0x24dc69(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x259)](){const _0x449e82=_0x3cc0f6;this[_0x449e82(0x3dd)][_0x449e82(0x224)](this[_0x449e82(0x29a)]);}[_0x3cc0f6(0x496)](_0x4ad6d1){const _0x453e4d=_0x3cc0f6;return this[_0x453e4d(0x4d0)](),this[_0x453e4d(0x5ba)][_0x453e4d(0x2e1)](K,this[_0x453e4d(0x426)],this[_0x453e4d(0x523)],null,this[_0x453e4d(0x359)],this[_0x453e4d(0x3dd)],_0x4ad6d1);}[_0x3cc0f6(0x2e2)](_0x448d9b,_0xf98ede){const _0x14f75d=_0x3cc0f6;var _0x348bb3;_0x448d9b===((_0x348bb3=this['_awaitingChangeset'])==null?void 0x0:_0x348bb3[_0x14f75d(0x236)])&&(this[_0x14f75d(0x259)](),this[_0x14f75d(0x21e)]=_0xf98ede===0x0?0x3e8:_0xf98ede*0x2);}[_0x3cc0f6(0x4d0)](){const _0x3716ab=_0x3cc0f6;var _0x502257;(_0x502257=this[_0x3716ab(0x254)])==null||_0x502257[_0x3716ab(0x5ad)](),this[_0x3716ab(0x21e)]=0x0;}};F=Q([g(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x7,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x8,a['Inject'](exports[_0x3cc0f6(0x1f8)])),g(0x9,a[_0x3cc0f6(0x1d6)]),g(0xa,a[_0x3cc0f6(0x24d)]),g(0xb,_[_0x3cc0f6(0x3ba)]),g(0xc,a[_0x3cc0f6(0x238)])],F);let K=class extends ee{constructor(_0x68bc39,_0x2062e1,_0x3be0f2,_0x1403c7,_0x5f1aa5,_0x179efa=!0x1,_0x2b57aa,_0x1d193f,_0x4cbae0,_0x266300,_0x2994ba,_0x4968d9,_0x29b5a9){const _0x20be8a=_0x3cc0f6;super(_0x68bc39,_0x2062e1,_0x3be0f2,_0x1403c7,_0x5f1aa5,_0x1d193f,_0x4cbae0,_0x2994ba,_0x266300),u(this,_0x20be8a(0x5d6),_0x20be8a(0x5d8)),(this[_0x20be8a(0x561)]=_0x179efa,this[_0x20be8a(0x1dd)]=_0x2b57aa,this[_0x20be8a(0x36b)]=_0x4968d9,this[_0x20be8a(0x5e5)]=_0x29b5a9,this['_showConflictNotification'](),this[_0x20be8a(0x313)](),this['_disableEditing']());}[_0x3cc0f6(0x4dc)](){return this;}[_0x3cc0f6(0x369)](){return this;}[_0x3cc0f6(0x4d6)](){return this;}[_0x3cc0f6(0x2e5)](){return this;}[_0x3cc0f6(0x332)](){return this;}[_0x3cc0f6(0x4ef)](){return this;}[_0x3cc0f6(0x43b)](){return this;}['resend'](){const _0x6bb541=_0x3cc0f6;throw new Error(_0x6bb541(0x547));}[_0x3cc0f6(0x313)](){const _0x28d4f3=_0x3cc0f6;this[_0x28d4f3(0x1e8)][_0x28d4f3(0x5bd)](this[_0x28d4f3(0x426)],this[_0x28d4f3(0x523)],null,[]);}['_showConflictNotification'](){const _0x4d9508=_0x3cc0f6;this[_0x4d9508(0x561)]?this[_0x4d9508(0x5e5)][_0x4d9508(0x438)]({'title':this[_0x4d9508(0x36b)]['t']('permission.title'),'content':this[_0x4d9508(0x36b)]['t'](_0x4d9508(0x268)),'type':_0x4d9508(0x2c9),'duration':0x0}):this[_0x4d9508(0x5e5)][_0x4d9508(0x438)]({'title':this['_localeService']['t'](_0x4d9508(0x4df)),'content':this[_0x4d9508(0x36b)]['t']('conflict.content'),'type':_0x4d9508(0x2c9),'duration':0x0});}[_0x3cc0f6(0x247)](){const _0x2bff2c=_0x3cc0f6;this[_0x2bff2c(0x1dd)]['updatePermissionPoint'](new C[(_0x2bff2c(0x289))](this[_0x2bff2c(0x426)])['id'],!0x1);}};K=Q([g(0x6,a['Inject'](a[_0x3cc0f6(0x27b)])),g(0x7,a[_0x3cc0f6(0x1d6)]),g(0x8,a[_0x3cc0f6(0x238)]),g(0x9,a['Inject'](exports[_0x3cc0f6(0x1f8)])),g(0xa,a['Inject'](_[_0x3cc0f6(0x1c9)])),g(0xb,a['Inject'](a[_0x3cc0f6(0x2b9)])),g(0xc,A['INotificationService'])],K);let X=class extends ee{constructor(_0x5d0080,_0x252d6e,_0x39475a,_0x1f0c69,_0x504e0e,_0x30835a,_0x444a14,_0x22b35a,_0x1d6428,_0x345ec3){const _0x3d0fbd=_0x3cc0f6;super(_0x5d0080,_0x252d6e,_0x39475a,_0x1f0c69,_0x504e0e,_0x1d6428,_0x345ec3,_0x444a14,_0x22b35a),u(this,_0x3d0fbd(0x5d6),'offline'),this[_0x3d0fbd(0x5ba)]=_0x30835a;}[_0x3cc0f6(0x4dc)](_0x57d955){const _0x606307=_0x3cc0f6;return this[_0x606307(0x359)]['push'](_0x57d955),this[_0x606307(0x20d)](),this;}[_0x3cc0f6(0x369)](_0x419465){const _0x1972f2=_0x3cc0f6;throw new Error(_0x1972f2(0x46e));}[_0x3cc0f6(0x4d6)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x3cc0f6(0x2e5)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3cc0f6(0x4ef)](){return this;}[_0x3cc0f6(0x43b)](){const _0x585cb8=_0x3cc0f6,{_injector:_0x3ec4ea,_pendingMutations:_0x915ccb,_awaitingChangeset:_0x5b6fa4,unitID:_0x4d118a,_handler:_0x15eb20,type:_0x5a6512}=this,_0x1a2a8a=wt(_0x3ec4ea,_0x4d118a,_0x5a6512,_0x5b6fa4,_0x915ccb,_0x15eb20);return _0x1a2a8a instanceof W?_0x1a2a8a[_0x585cb8(0x1f0)]():(_0x1a2a8a instanceof F||_0x1a2a8a instanceof Y)&&_0x1a2a8a['resend'](),_0x1a2a8a;}[_0x3cc0f6(0x259)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};X=Q([g(0x5,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x6,a['Inject'](_[_0x3cc0f6(0x1c9)])),g(0x7,a['Inject'](exports['LocalCacheService'])),g(0x8,a['ICommandService']),g(0x9,a[_0x3cc0f6(0x238)])],X);function _0x48f6(){const _0x3a98ab=['saveSnapshot','_shouldReportTelemetry','take','every','AWAITING_WITH_PENDING','[CollaborationUndoRedoService]','unload','_members','unshift','readAsDataURL','_transformIMECache','toggleOffline','UniverCollaborationPlugin','getInterceptPoints','updatePermissionPoint','_shapes','_backgroundColor','_onMessage','COLLAB_SUBMIT_CHANGESET_URL_KEY','_getMergeRange','find','update','debounceTime','UNKNOWN_CODE','catch','DocIMEInputManagerService','collaboration-client.offline-data-not-saved','_render','_clearCollaborationTimeoutTimer','handleDeleteRangeMoveLeft','_getCurrentRevision','_scheduleCollaborationTimeoutTimer','socket$','UNRECOGNIZED','ImageIoService','black','reduce','_sendHeartbeat','_onCursorUpdate','shareReplay','OFFLINE','debounce','toRgbString','isTransformMutationsWithChangesetSuccess','extend','revision','_instanceService','file','_uiPartsService','RECV','JOIN','next','_logService','color','name','RECT','EXCHANGE_SIGN_URL_SERVER_URL_KEY','DeleteRangeMoveUpCommandId','engine','_onJoinRoomEvent','json','_selfUnitIDs','DocSkeletonManagerService','type','transformStack\x20failed!','socket\x20close','createCollaborator','getUnitId','shouldCloseConn','TRANSFORM_CHANGE_OBSERVABLE_TYPE','flatMap','_initStatusComponent','_context','initWorkbookPermissionChange','InsertSheetMutation','getDocRanges','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','originalMeta','_docSkeleton','InsertRowCommandId','distinctUntilChanged','getValue','registerComponent','isTransformChangesetsSuccess','permissionRejEvent','[CollaborationSession]','_init','M0\x200H16V16H0z','COMMENT_UPDATE','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','round','2498900XKrMOv','_saveCache','getTypeOfUnitAdded$','LIVESHARE_FETCH_OPERATIONS','_sendHeartbeatTimer','getOwnPropertyDescriptor','filter','LOGIN_URL_KEY','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_collaborationSessionService','APPLY_PERMISSION_DENIED','serializeCombRequest','INVALID_ARGUMENT','_singleActiveUnitService','_syncEditingCollabCursor','IBeforeCloseService','session','offline','COLORS','awaiting_with_pending','useRef','list','_scheduleSaving','setTimeout','_updateCollabCursors','SNAPSHOT_HAS_BEEN_REMOVED','whenReady','_changesetReqId','_decreaseWaiting','isInternalEditorID','_submitChangeset','_onConnectionFailed','/object/','telemetry\x20info\x20is\x20not\x20initialized','_isPermissionRej','indexOf','currentTheme$','_cachedData','min','CommandType','useObservable','saveChangeset','restore','WebURLService','SheetSkeletonManagerService','FETCH_MISS','onTransformIME','Warning','SetSelectionsOperation','merge','editing\x20status\x20changed\x20to','_drawAnchor','Inject','event$','_stopTelemetryCollaborationNewChangeset','BASE64','reject','_type','getViewport','objectType','requireSession','pipe','0\x200\x2016\x2016','[UniverCollaborationClientPlugin]','getActiveSheet','_onOffline','addEventListener','_loadDoc','AuthzIoHttpService','session.room-full','takeUntil','collabStatus.notCollab','startsWith','_substituteUndoStack','editingUnit','withCredentials','[CollaborationState]:\x20apply\x20error!','IContextService','session.will-retry','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','onCommentUpdate','_waitCount','image/jpg','InsertRangeMoveDownCommandId','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','csRejEvent','_getScale','_event$','_localStorageService','_fetchMissChangesets','_scheduleHeartbeat','Tooltip','objects','AWAITING','cursorInfo$','@univerjs/docs-ui','liveShareNewHost','/universer-api/comb','_handleEvent','textEncoder','_initStatusListener','setInterval','collabCursorState$','Unknown\x20user','_memberService','collab-rect-range-','_exhaustRemoteChangesetQueue','runRefRangeMutations','NOT_FOUND','PERMISSION_REJ','unsubscribe','98UbgTHf','ERROR_EXCEED_SIZE','_undoStacks','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_document','skeleton','parse','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','replaceTextRanges','from','save','infoRsp','_injector','univer-offline','CHANGESET_SHOULD_RETRY','updateOfflineData','target','code','online','_getSendChangesetTimeout','Error','_transformService','univer-online-status-title','c1Prime','action','_textBubble','_handleLeaveEvent','_HTTPService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','throttleTime','getMember','_session','_registerDependencies','USERS_LEAVE','enableAuthServer','_sessions','complete','IConfigService','init','DataLoaderController','status','send','conflict','getParam','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','icon','_removeCollabCursors','isActive','getVpScrollXYInfoByPosToVp','576780HCjpqK','_configService','registerHTTPInterceptor','/universer-api/file/{fileID}/sign-url','_candidateSocket','loginUrlKey','_notificationService','[PendingState]:\x20received\x20acknowledgement.','?url=','Injector','_socketMessageSubscription','onSyncEditingCollabCursor','mapTo','_onRefRangeChange','state$','IDLE','_lastPointer','url','@univerjs/docs','slice','UUID','_commentService','defineProperty','image/jpeg','DeleteRangeMoveLeftCommandId','RevisionService','_socketService','&to=','COMPLETION_FINISHED','_messageService','pending','_handleHeartbeatEvent','getRandomValues','_drawTextRange','contains','_unlockTransition','_startTelemetryCollaborationNewChangeset','_renderManagerService','ICommandService','getRangePointData','UPDATE_PERMISSION_OBJ','&assign=','getItem','SheetCollabCursorShape','[CollaborationSessionService]:\x20socket\x20error','_permissionService','findNodePositionByCharIndex','selections','_replayCachedMutations','_colorAssignService','_collabCursorState$','_updateSubUnitFromURLParams','ERROR_IMAGE_TYPE','cmd','focused$','_executeRemoteChangeset','_localCacheService','_transformRemoteChangesetByIMECache','_scene','sessionStatus$','selection','visibilityState','_disabled','random','_schedule','getMemberID','post','session.connection-failed','jiqing500','_initCloseConn','_assignedColors','PERMISSION_DENIED','LocalCacheService','getTypeOfUnitDisposed$','_httpService','exhaustSavingTask','transformRemoteChangeset','_collabSessionService','univer-online','triggerDblclick','snapshot','m2Prime','mergeOverrideWithDependencies','getSheetBlock','_substituteRedoStack','312582hvTzdm','CollaborationSession','/universer-api/snapshot/','history','_sendingTimer','[PendingState]:\x20received\x20rejection.','_hovered','rev','_updateLocalCache','_telemetryInfo','setParam','hide','JSONX','univerjs-icon\x20univerjs-icon-','TOO_MANY_REQUESTS','_loadSheet','InsertRangeMoveRightCommandId','children','disposeWithMe','_getRedoStack','synced','handleDeleteRangeMoveUp','eventID','FileId','translate(.97)','_resendTimeout','HEARTBEAT_INTERVAL_KEY','getUnitType','setActiveRange','3vMDXuL','_toggleOnline','onSendChangeset','handleIRemoveCol','not_collab','_tryEnsureSocket','_change$','FETCH_MISSING','prototype','liveShareOperation','_clearRedo','CONNECTOR_DATA_TOO_LARGE','tag','_id','_timeoutTimer','2504888gLJjmG','backgroundColor','getUnhiddenWorksheets','colorChannel1','getAncestorScale','reqId','touchDependencies','IUndoRedoService','TEXT_RANGE_LAYER_INDEX','unitId\x20is\x20not\x20found','startTime','collab-client.tooltip.reconnect','getSheetBySheetId','off-line-single_clip0_910_343','SUBMIT_CHANGESET','_transformUndoredo','Tools','routeKey','_initCommandExecutedListener','currentColor','with','red300','_disableEditing','evenodd','onTransformChange$','_collaborationTimeoutTimer','@univerjs/sheets-ui','_getSignURL','ILogService','getDeserializedSheetBlock','COLLAB_WEB_SOCKET_URL_KEY','setItem','/block/','split','_applyRemoteChangeset','_sender','getSheetId','generateRandomId','univer-online-status','UNIVER_UNKNOWN','resend','listRoles','CollaborationStatus','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','concatMap','fillRule','then','all','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','TEXT','getCoordByCell','auth.needGotoLoginAlert','@univerjs/telemetry','getRenderById','body','permission.content','symbol','substring','deepClone','retryConnectingInterval','text','onCommandExecuted','NodePositionConvertToCursor','disableLocalCache','@univerjs/core','makeDirty','Optional','updateMember','PSEUDO_FETCH_MISSING_RESULT','combineLatest','deserializeToCombResponse','CHANGESET_REVISION_CONFILICT','\x0aAfter:\x20','POST','IPermissionService','getUnit','CompressMutationService','_initEventListeners','toStringTag','uni.network.url-service','getWorkbookSelections','map','enableOfflineEditing','UPDATE_CURSOR','popstate','_socket','localeService','interceptor','WorkbookEditablePermission','_updateLocalCursor','docStateChange$','snapshotServerUrl','RETRY_CONNECTING_MAX_COUNT','image/bmp','_imageSourceCache','_refRangeService','SNAPSHOT_INVALID_SNAPSHOT','createIdentifier','url(#on-line-single_clip0_910_349)','_initResize','handleInsertCol','_cursors','requestParams','measureText','toLowerCase','_awaitingChangeset','_collaborationPaused','CHANGESET_ACK','transformSelections','OTHER_CLIENTS_EDITING','_anchorDot','_getSheetObject','leaveEvent','@univerjs/design','addImageSourceCache','_initMergeInterceptor','Module','collaboration.single-unit.warning','YUUMI_URL_COL_OUT_OF_RANGE','_config','getCollabEntity$','assignAColorForMemberID','CollaborationStatusDisplay','_docTransformIMECacheService','none','_startSheetCollabCursor','IMessageService','NOT_COLLAB','includes','doc.mutation.rich-text-editing','members','IHTTPImplementation','m1Prime','LIVESHARE_REQUEST_HOST','_clearTimeoutTimer','_onRemoteRejected','LocaleService','toDisposable','transformIMECache','path','currentSkeleton$','onPointerMove$','NO_OTHER_CLIENTS_EDITING','batchAllowed','incrementRevOfUnit','SNAPSHOT_SERVER_URL_KEY','Subject','concat','CONFLICT','url(#off-line-single_clip0_910_343)','fetchMissingChangesets','connection\x20error','error','href','fetch_missing','debug','_state$','MessageType','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','has','collabSubmitChangesetUrl','awaiting','[SyncedState]:\x20received\x20acknowledgement.','searchParams','saveOfflineData','_roomMembers$','SYNCED','enableSingleActiveInstanceLock','Shape','/object','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','c2Prime','column','DesktopCollaborationStatusDisplayController','DisposableCollection','beginPath','createInstance','_resendWithTimeout','LIVESHARE_NEW_HOST','@univerjs/rpc','onRemoteRej','objectID','registerOnClose','AUTHZ_URL_KEY','1em','setAlpha','IURLService','ws://127.0.0.1:8000/universer-api/comb/connect','_onRecvEvent','LICENSE_IMPORT_SIZE_EXCEEDED','hidden','RxDisposable','drawWith','IUniverInstanceService','_cursorShapes','_incrementRevisionNumber','SHOULD_CLOSE_CONN','values','_getAPIPrefixPath','result','registerBeforeClose','rxjs/operators','connectInjector','SheetsSelectionsService','now','_rescheduleHeartbeat','deserializeRangeWithSheet','forEach','mapDocumentTypeToUniverType','sendChangesetTimeout','handleInsertRow','transformChangesets','_cursorInfo$','collabStatus.synced','HttpExport','pauseCollaboration','_unitStatus','APPLY_DUPLICATED','collaboration-client.config','_anchor','override','_onRemoteRetry','startColumn','collab-text-range-','_acknowledgedAwaitingChangeset','parseProtocolChangeset','_clearLocalCache','_removeClearOtherTimer','_handleHover','endRow','unknown','_entities','_userManagerService','EmptyMutation','Disposable','_transformPreviousActiveRange','_clearHeartbeatTimer','UniverInstanceType','equals','onTransformRemoteChangesetByIMECache','setConfig','CollaborationSocketService','className','useCallback','_state','YUUMI_UNABLE_LOAD_URL','SNAPSHOT_URL_KEY','arc','roomMembers$','addObject','dispose','ITelemetryService','/-/object/-/batch_allowed','_snapshotServerService','function','_startDocCollabCursor','rgba(255,\x20255,\x20255,\x200.01)','onRemoteRetry','Vector2','@univerjs/ui','memberID','UNIVER_SHEET','lineTo','transformMutationsWithChangeset','_resendTimer','[CollaborationEntity]','[CollaborationSessionService]','InsertColCommandId','_entityInit$','_updateURLWithCurrentState','COMPRESS_MUTATION_SEND','open$','_onRemoteACK','subscribe','_roomMembers','_onCursorDelete','hasOwnProperty','_initUnitPermissionChange','resourceIDs','_setupSubUnitSync','LIVESHARE_OPERATION','failed\x20to\x20apply\x20missed\x20changesets!','_univerInstanceService','/universer-api/stream/file/upload','collaboration.closeRoom','UNAUTHENTICATED','getCurrent','sheetId','unit-cache-','_getUploadFileURL','sheetID','message$','_toggleOffline','univer-pro.collaboration-client.single-active-unit-service','_redoStacks','cursorInfo','_pendingMutations','data','attrs','verdancy600','resolve','onRendered','sequenceExecute','INTERNAL_ERROR','activeSheet$','closeSession','collabStatus.fetchMiss','submit\x20changeset\x20error!','LICENSE_MAX_UNITS_EXCEEDED','compose','headers','width','onRemoteChangeset','range','_localeService','collaboration-session-retry','_color','univer-pro.collaboration-client-socket-service','COMPRESS_MUTATION_APPLY','save\x20fail\x20reason\x20is\x20','@univerjs/network','visibilitychange','sid','_lockTransition','_registerRenderDependencies','create','getOwnPropertySymbols','endColumn','purple300','sessionStatus','\x20in\x20_schedule.','/universer-api/oidc/authpage','newValue','UNIVER_PROJECT','YUUMI_RATE_OVER_LIMIT','_getAPIPrefix','IImageIoService','_sessionStatus$','getCollabEntity','Univer','VIEW_MAIN','rxjs','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_scheduleTimestamp','_saveTaskMap','_ensureSubject','dispose$','_drawRectRange','fromCollab','_docSkeletonManagerService','_syncEditingCollabCursorService','/rev/','HEADER_MENU','ENSURE_SNAPSHOT_EXECUTION','saveSheetBlock','getUndoRedoMutationParamsCache','IAuthzIoService','b64DecodeUnicode','_clearUndo','UnitSnapshot','getCellPositionByOffset','_startCollaboration','SetTextSelectionsOperation','toString','_docTransformSelectionsService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_initModules','USERS_ENTER','ColorKit','duration','collaMsg','_checkMissing','_listenToOfflineEvent','rng','_beforeCloseService','_range','row','NEW_CHANGESETS','INGEST','put','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getImageSourceCache','closePath','_retryCount','textRanges','_telemetryService','ThemeService','/unit/','_cursor','ThresholdInterceptorFactory','div','subUnitId','replaceState','ITransformService','transform','_getCtorByUniverType','fillStyle','ERROR_IMAGE','pushState','CollaborationSessionService','IRenderManagerService','getCurrentUser','clearInterval','delete','UniverCollaborationClientPlugin','UNIVER_DOC','disposeUnit','MSG_FOR_ERROR','LIVESHARE_TERMINATE','image/gif','getCurrentRevOfUnit','MergeInterceptorFactory','DocCollaborationEntity','_removeRoom','socketService','collabStatus.conflict','HEARTBEAT_TIMEOUT','WebSocketService','OffLineSingle','string','handleInsertRangeMoveDown','_online','idSuffix','on-line-single_clip0_910_349','fillText','origin','_unitID','_getSaveTimeout','_handler','get','SessionStatus','hovered','_refreshCollabCursors','HEARTBEAT','_createInitialStateImpl','fromEvent','getLatestCsReqIdBySid','getTime','unitId','session.collaboration-timeout','Plugin','BehaviorSubject','PENDING','_createInitialState','onlineStatusTitle','_collaborationController','transformMutation','_tryReconnect','apply','params','_scheduleClearOtherTimer','_send','some','LocalUndoRedoService','_transformUndoRedoStack','csShouldRetryEvent','urlChange$','getUniverSheetInstance','mutations','CollaborationController','collabWebSocketUrl','setCurrentUser','ICollaborationSocketService','CollaborationEvent','removeMember','[SyncedState]:\x20received\x20rejection.','assign','@univerjs/engine-render','JOINING','RegularPolygon','EffectRefRangId','randomUUID','LEAVE','title','_unitOnClients','gold400','fetchThroughInterceptors','loadOfflineData','status$','RemoveRowCommandId','length','displayName','getSheetObject','isArray','refreshPermission','getCurrentSelections','defs','_commentUpdate$','actions','2529028TVdsBt','transformByState','_getUndoStack','MUTATION','onlineStatusIcon','updateCursorEvent','set','ReplaySubject','replace','setShapeProps','bottom','_ws','unitID','executeCommand','_updateStatus','#FFF','onTransformSelections','_createHandler','UNIVER_COLLABORATION_CLIENT_PLUGIN','_themeService','NodePositionConvertToRectRange','_replaceFileID','push','CommentService','subscribeEvent','_hideTimer','getFocusedUnit','_onUserJoin','fetchMiss','size','show','registerRenderModule','CHANGESET_REJ','toggleOnline','UnitEmbedded','_onLocalMutation','_onRemoteChangeset','HTTPService','_http','APPLY_NON_SEQUENTIAL_REVISION','state','objectActions','getCollabCursors$','_transformStack','_labelPosition','[DataLoaderController]','reconnect','_revisionService','setWaitCount','_queuedRemoteChangesets','add','close','confirm','VIEWPORT_KEY','_joinRoom','_updateState','_eventUnsubscribe','LICENSE_EXPORT_SIZE_EXCEEDED','_socket$','awaitingChangeset','useDependency','_remoteChangesetQueue','getConfig','asObservable','_retryConnectingTimer','ImageSourceType','Rectangle','reverse','ACTIVE_UNIT_EVENT_CHANNEL','DOC_RANGE_TYPE','FromArray','@univerjs/engine-formula','onPointerLeave$','_compressMutationService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','encodeURIComponent','syncEditingCollabCursor','_sheetSkeletonManagerService','clearTimeout','_transitionLocked','_onFetchMissResult','location','_hover','transformUndoRedo','[OfflineState]:\x20received\x20changeset.','storage','_snapshotService','_onConnectionOpen','getColor','serializeRangeWithSheet','_colorIndex','SEND_CHANGESET_TIMEOUT','_docSyncEditingCollabCursorService','UNIVER_SLIDE','ONLINE','getResourcesRequest','deleteCollaborator','LICENSE_DISTRO_REJECTED','getImage','handleInsertRangeMoveRight','SnapshotServerOverHTTPService','onStarting','fill','current','createElement','_onUserLeave','call','SetWorksheetActivateCommand','_transformSelections','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_getSnapshotAPIPrefix','_socketReady','xlink:href','clear','onMissingChangesets','_clearOtherTimers','_getLoginPath','stopTime','delay','HELLO','stringify','max','getUnitStatus$','_commandService','_onConflict','_throwTelemetryCollaborationNewChangeset','/role','FAIL','_collabCursorController','onPointerEnter$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[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.','/collaborator','key','CollaborationEntity','baseRev','_status$','getRelativeToViewportCoord','ImageUploadStatusType','createSocket','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','onlineStatus','react','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','append','blue400','subunit','roomMembers','_urlService','#fff','registerRefRange','_name','forwardRef','MoveRangeCommandId','userID','fromEventSubject','_getAnchorBounding','getAttachHeader','/universer-api/authz','clipPath','bind','collabStatus.syncing','onload','10374525WbVNXK','height','DocStateChangeManagerService','RichTextEditingMutation','commentUpdateEvent','top','error$','_docStateChangeManagerService','_changesetSessionId','133300ZyJFDs','APPLY_REJECT','isPermissionRej','defIds','COLLAB_WEB_SOCKET_URL','_onCombEvent','allowed','BuiltInUIPart','UNKNOWN_CMD','getSkeleton','_clearScheduledTask','RETRY_CONNECTING_MAX_COUNT_KEY','ranges','getRoom','switchMap','_sheetTransformSelectionsService','onRemoteAck','downloadEndpointUrl','collabStatus.offline','patch','XHRHTTPImplementation','_heartbeatTimer','appendMutation','isTransformMutationFailure','off-line-single','conflict.title','_undoRedoService','propertyIsEnumerable','SheetCollaborationEntity','encode'];_0x48f6=function(){return _0x3a98ab;};return _0x48f6();}let k=class extends ee{constructor(_0x4fddf9,_0x4c89ff,_0x3a96d8,_0x31cb36,_0x1ccda9,_0x3da330,_0x4eeebd,_0x29ffd6,_0x392844,_0x25d138,_0x3d0170,_0x2a054b,_0x3e5aba,_0x142fff){const _0x5c7bb3=_0x3cc0f6;super(_0x4fddf9,_0x4c89ff,_0x3a96d8,_0x31cb36,_0x4eeebd,_0x2a054b,_0x3e5aba,_0x392844,_0x25d138),u(this,'status',_0x5c7bb3(0x2cb)),(this[_0x5c7bb3(0x311)]=_0x1ccda9,this[_0x5c7bb3(0x44b)]=_0x3da330,this[_0x5c7bb3(0x5ba)]=_0x29ffd6,this[_0x5c7bb3(0x518)]=_0x3d0170,this[_0x5c7bb3(0x5c3)]=_0x142fff);}['onMissedChangesetFetched'](_0x12b015){const _0x4c67fe=_0x3cc0f6;try{const _0x4e73ef=[..._0x12b015,...this[_0x4c67fe(0x44b)]],_0x4789e1=[this[_0x4c67fe(0x29a)]||this[_0x4c67fe(0x311)]][_0x4c67fe(0x545)](_0x240d57=>!!_0x240d57);let _0x1a5abf,_0x276625;if(_0x4789e1['length']){const _0x43bb38=this[_0x4c67fe(0x5c3)]['transformChangesets'](_0x4e73ef,_0x4789e1,!0x1);if(!_['isTransformChangesetsSuccess'](_0x43bb38))throw _0x43bb38[_0x4c67fe(0x2c9)];_0x1a5abf=_0x43bb38['c1Prime'],_0x276625=_0x43bb38[_0x4c67fe(0x2dc)];}else _0x1a5abf=_0x4e73ef,_0x276625=[];let _0x37a9cb=this[_0x4c67fe(0x359)];_0x1a5abf['forEach'](_0x1c5f5b=>{const _0x25cc82=_0x4c67fe;let _0x49baa3;if(_0x37a9cb['length']){const _0x582c94=this[_0x25cc82(0x5c3)][_0x25cc82(0x338)](_0x1c5f5b,_0x37a9cb);if(!_[_0x25cc82(0x50f)](_0x582c94))throw _0x582c94[_0x25cc82(0x2c9)];_0x49baa3=_0x582c94[_0x25cc82(0x5c5)],_0x37a9cb=_0x582c94[_0x25cc82(0x201)];}else _0x49baa3=_0x1c5f5b;this['_executeRemoteChangeset'](_0x49baa3);}),this['_acknowledgedAwaitingChangeset']&&this[_0x4c67fe(0x2f4)](),this['_awaitingChangeset']&&_0x276625[_0x4c67fe(0x411)]&&(_0x276625[0x0][_0x4c67fe(0x4a1)]=this[_0x4c67fe(0x502)]());let _0xe4145a;if(this[_0x4c67fe(0x29a)]&&_0x37a9cb[_0x4c67fe(0x411)]!==0x0)_0xe4145a=this['_injector'][_0x4c67fe(0x2e1)](F,this[_0x4c67fe(0x426)],this[_0x4c67fe(0x523)],_0x276625[0x0],_0x37a9cb,this[_0x4c67fe(0x3dd)],void 0x0);else{if(this[_0x4c67fe(0x29a)]&&_0x37a9cb['length']===0x0)_0x276625[0x0][_0x4c67fe(0x4a1)]=this[_0x4c67fe(0x502)](),_0xe4145a=this[_0x4c67fe(0x5ba)][_0x4c67fe(0x2e1)](Y,this[_0x4c67fe(0x426)],this[_0x4c67fe(0x523)],_0x276625[0x0],this[_0x4c67fe(0x3dd)]);else{if(_0x37a9cb['length']!==0x0){const _0x116a7a=this[_0x4c67fe(0x5ba)][_0x4c67fe(0x2e1)](W,this['unitID'],this[_0x4c67fe(0x523)],_0x37a9cb,this[_0x4c67fe(0x3dd)]);_0x116a7a[_0x4c67fe(0x1f0)](),_0xe4145a=_0x116a7a;}else _0xe4145a=this[_0x4c67fe(0x5ba)]['createInstance'](oe,this[_0x4c67fe(0x426)],this['type'],this[_0x4c67fe(0x3dd)]);}}return _0xe4145a[_0x4c67fe(0x20d)](),_0xe4145a;}catch(_0x23c7c2){return this[_0x4c67fe(0x518)][_0x4c67fe(0x2c9)]('[FetchMissState]',_0x4c67fe(0x34a),_0x23c7c2),this[_0x4c67fe(0x5ba)][_0x4c67fe(0x2e1)](K,this['unitID'],this[_0x4c67fe(0x523)],this[_0x4c67fe(0x29a)],this[_0x4c67fe(0x359)],this[_0x4c67fe(0x3dd)],!0x1);}}['resend'](){const _0x182906=_0x3cc0f6;throw new Error(_0x182906(0x5b5));}['appendMutation'](_0x3787cf){const _0x3fbe9e=_0x3cc0f6;return this['_pendingMutations'][_0x3fbe9e(0x430)](_0x3787cf),this;}[_0x3cc0f6(0x369)](_0x242a48){const _0x2dfc66=_0x3cc0f6;return this[_0x2dfc66(0x44b)]['push'](_0x242a48),this;}[_0x3cc0f6(0x4d6)](_0x5a794e){const _0x5779fc=_0x3cc0f6;if(this['_awaitingChangeset'])return this[_0x5779fc(0x311)]=this['_awaitingChangeset'],this[_0x5779fc(0x29a)]=null,this;throw new Error(_0x5779fc(0x261));}['onRemoteRej'](_0x4798ad){const _0x1c70e3=_0x3cc0f6;return this[_0x1c70e3(0x496)](!!(_0x4798ad!=null&&_0x4798ad[_0x1c70e3(0x4c8)]));}['onRemoteRetry'](){return this;}[_0x3cc0f6(0x4ef)](){const _0x31e86a=_0x3cc0f6;return this[_0x31e86a(0x5ba)][_0x31e86a(0x2e1)](X,this[_0x31e86a(0x426)],this[_0x31e86a(0x523)],this['_awaitingChangeset'],this[_0x31e86a(0x359)],this[_0x31e86a(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x496)](_0xff4903){const _0x25cfd2=_0x3cc0f6;return this[_0x25cfd2(0x5ba)]['createInstance'](K,this['unitID'],this[_0x25cfd2(0x523)],this[_0x25cfd2(0x29a)],this[_0x25cfd2(0x359)],this[_0x25cfd2(0x3dd)],_0xff4903);}};k=Q([g(0x7,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x8,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x9,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),g(0xa,a[_0x3cc0f6(0x24d)]),g(0xb,a[_0x3cc0f6(0x1d6)]),g(0xc,a[_0x3cc0f6(0x238)]),g(0xd,_[_0x3cc0f6(0x3ba)])],k);function wt(_0x1b5e01,_0x23740b,_0x4ba5c9,_0xfc83d2,_0x1f38fb,_0x17da73){const _0x23399f=_0x3cc0f6;return _0xfc83d2&&_0x1f38fb[_0x23399f(0x411)]?_0x1b5e01['createInstance'](F,_0x23740b,_0x4ba5c9,_0xfc83d2,_0x1f38fb,_0x17da73,void 0x0):_0xfc83d2?_0x1b5e01[_0x23399f(0x2e1)](Y,_0x23740b,_0x4ba5c9,_0xfc83d2,_0x17da73):_0x1f38fb[_0x23399f(0x411)]?_0x1b5e01[_0x23399f(0x2e1)](W,_0x23740b,_0x4ba5c9,_0x1f38fb,_0x17da73):_0x1b5e01[_0x23399f(0x2e1)](oe,_0x23740b,_0x4ba5c9,_0x17da73);}var qs=Object[_0x3cc0f6(0x1c6)],zs=Object[_0x3cc0f6(0x544)],ze=(_0x478b0d,_0x33fcf5,_0x4953bf,_0x34067e)=>{const _0x44a6a0=_0x3cc0f6;for(var _0x2fcbd2=_0x34067e>0x1?void 0x0:_0x34067e?zs(_0x33fcf5,_0x4953bf):_0x33fcf5,_0x2cee8b=_0x478b0d[_0x44a6a0(0x411)]-0x1,_0x5c7a04;_0x2cee8b>=0x0;_0x2cee8b--)(_0x5c7a04=_0x478b0d[_0x2cee8b])&&(_0x2fcbd2=(_0x34067e?_0x5c7a04(_0x33fcf5,_0x4953bf,_0x2fcbd2):_0x5c7a04(_0x2fcbd2))||_0x2fcbd2);return _0x34067e&&_0x2fcbd2&&qs(_0x33fcf5,_0x4953bf,_0x2fcbd2),_0x2fcbd2;},p=(_0x478f9f,_0x52925c)=>(_0x284f36,_0x1af6cf)=>_0x52925c(_0x284f36,_0x1af6cf,_0x478f9f);exports[_0x3cc0f6(0x4a0)]=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x22751f,_0x5ad23d,_0x144b9e,_0x10eecd,_0x5035a8,_0x28bffb,_0x3dbeb0,_0x32810b,_0x487509,_0x3ffb0a,_0x1ba163,_0x164205,_0x52f695){const _0x46566d=_0x3cc0f6;super(),u(this,_0x46566d(0x2cd),new v[(_0x46566d(0x3ea))](null)),u(this,_0x46566d(0x1be),this[_0x46566d(0x2cd)][_0x46566d(0x459)]()),u(this,_0x46566d(0x325)),u(this,'_collaborationPaused',!0x1),u(this,_0x46566d(0x4c5),''),u(this,_0x46566d(0x55a),0x0),u(this,_0x46566d(0x40f),this[_0x46566d(0x1be)][_0x46566d(0x57c)](v[_0x46566d(0x282)](_0x5ccddc=>_0x5ccddc?_0x5ccddc[_0x46566d(0x5d6)]:D[_0x46566d(0x50c)]),v[_0x46566d(0x50b)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x46566d(0x457),[]),(this['unitID']=_0x22751f,this[_0x46566d(0x54f)]=_0x5ad23d,this[_0x46566d(0x578)]=_0x144b9e,this[_0x46566d(0x5ba)]=_0x10eecd,this['_localCacheService']=_0x5035a8,this[_0x46566d(0x463)]=_0x28bffb,this['_localeService']=_0x3dbeb0,this[_0x46566d(0x449)]=_0x32810b,this[_0x46566d(0x518)]=_0x487509,this[_0x46566d(0x495)]=_0x3ffb0a,this[_0x46566d(0x1cd)]=_0x1ba163,this[_0x46566d(0x1dd)]=_0x164205,this[_0x46566d(0x54c)]=_0x52f695);}get[_0x3cc0f6(0x442)](){return this['_state'];}async[_0x3cc0f6(0x5d4)](){const _0x2bcfcf=_0x3cc0f6;if(this[_0x2bcfcf(0x442)])throw new Error(_0x2bcfcf(0x39e));await this[_0x2bcfcf(0x53a)]();}[_0x3cc0f6(0x308)](){const _0x592c16=_0x3cc0f6;return this[_0x592c16(0x29b)]=!0x0,a[_0x592c16(0x2ba)](()=>{const _0x4e373c=_0x592c16;this[_0x4e373c(0x29b)]=!0x1,this[_0x4e373c(0x5a9)]();});}[_0x3cc0f6(0x451)](_0x596657){const _0x6a96e6=_0x3cc0f6;this['_state']=_0x596657,this[_0x6a96e6(0x2cd)][_0x6a96e6(0x517)](_0x596657);}async[_0x3cc0f6(0x53a)](){const _0x222e03=_0x3cc0f6;var _0x1ca55c;this['_updateState'](await this['_createInitialState']()),this[_0x222e03(0x54c)]&&((_0x1ca55c=this[_0x222e03(0x54c)])==null||_0x1ca55c['editingUnit'](this[_0x222e03(0x426)]),this[_0x222e03(0x217)](this[_0x222e03(0x54c)][_0x222e03(0x494)](this[_0x222e03(0x426)])[_0x222e03(0x342)](_0x2cd656=>{const _0x360dbc=_0x222e03;this[_0x360dbc(0x518)]['debug'](_0x360dbc(0x33a),_0x360dbc(0x571),_0x2cd656),_0x2cd656===Dt[_0x360dbc(0x29e)]?(this[_0x360dbc(0x1cd)]['show']({'content':this[_0x360dbc(0x36b)]['t'](_0x360dbc(0x2a6)),'type':J[_0x360dbc(0x2ce)]['Warning']}),this['_permissionService'][_0x360dbc(0x4f2)](new C[(_0x360dbc(0x289))](this[_0x360dbc(0x426)])['id'],!0x1)):this['_permissionService'][_0x360dbc(0x4f2)](new C[(_0x360dbc(0x289))](this[_0x360dbc(0x426)])['id'],!0x0);})));let _0x5000a5=!0x1;return this[_0x222e03(0x217)](this[_0x222e03(0x54f)][_0x222e03(0x1eb)][_0x222e03(0x342)](_0x2cd711=>{const _0x297d0c=_0x222e03;_0x2cd711===x[_0x297d0c(0x478)]?this[_0x297d0c(0x223)](_0x5000a5):_0x2cd711===x['OFFLINE']&&(_0x5000a5=!0x0,this[_0x297d0c(0x355)]());})),this[_0x222e03(0x217)](this[_0x222e03(0x54f)][_0x222e03(0x574)]['subscribe'](_0x5888df=>{const _0x3f2337=_0x222e03;try{switch(_0x5888df['eventID']){case _[_0x3f2337(0x400)][_0x3f2337(0x3aa)]:{this[_0x3f2337(0x43e)](_[_0x3f2337(0x312)](_0x5888df[_0x3f2337(0x35a)]));break;}case _[_0x3f2337(0x400)][_0x3f2337(0x29c)]:{this[_0x3f2337(0x341)](_0x5888df[_0x3f2337(0x35a)]);break;}case _[_0x3f2337(0x400)][_0x3f2337(0x43a)]:{this['_onRemoteRejected']();break;}case _[_0x3f2337(0x400)][_0x3f2337(0x5bc)]:{this[_0x3f2337(0x30e)](_0x5888df[_0x3f2337(0x35a)]);break;}case _[_0x3f2337(0x400)][_0x3f2337(0x275)]:{this[_0x3f2337(0x46a)](_0x5888df['data']['changesets'][_0x3f2337(0x282)](_0x839f2=>_['parseProtocolChangeset'](_0x839f2)));break;}case _[_0x3f2337(0x400)][_0x3f2337(0x5ac)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x3d6f11){throw console[_0x3f2337(0x2c9)]('Error\x20on\x20receiving\x20event',_0x3d6f11),_0x3d6f11;}})),this[_0x222e03(0x325)];}[_0x3cc0f6(0x1d3)](){const _0x94967b=_0x3cc0f6;this[_0x94967b(0x469)]=!0x1;}[_0x3cc0f6(0x374)](){const _0x572128=_0x3cc0f6;if(this[_0x572128(0x469)])throw new Error(_0x572128(0x49d));this['_transitionLocked']=!0x0;}[_0x3cc0f6(0x43d)](_0x387b7d){const _0x342b8c=_0x3cc0f6;this[_0x342b8c(0x374)](),this[_0x342b8c(0x451)](this[_0x342b8c(0x325)][_0x342b8c(0x4dc)](_0x387b7d)),this[_0x342b8c(0x1d3)]();}['_onRemoteChangeset'](_0x21c73e){const _0x3f86fa=_0x3cc0f6;if(!(_0x21c73e[_0x3f86fa(0x511)]<=this[_0x3f86fa(0x449)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0x3f86fa(0x29b)]){this['_remoteChangesetQueue'][_0x3f86fa(0x430)](_0x21c73e);return;}this['_applyRemoteChangeset'](_0x21c73e);}}['_exhaustRemoteChangesetQueue'](){const _0x25abd1=_0x3cc0f6;this[_0x25abd1(0x457)][_0x25abd1(0x300)](_0x3bcea9=>this[_0x25abd1(0x253)](_0x3bcea9)),this[_0x25abd1(0x457)]=[];}['_applyRemoteChangeset'](_0x46c664){const _0x25655f=_0x3cc0f6,_0x110bb3=this[_0x25655f(0x463)][_0x25655f(0x288)][_0x25655f(0x40d)](this[_0x25655f(0x463)]['interceptor'][_0x25655f(0x4f1)]()[_0x25655f(0x36f)])(_0x46c664[_0x25655f(0x3fb)],null)||_0x46c664[_0x25655f(0x3fb)],_0x547c3e={..._0x46c664,'mutations':_0x110bb3};this[_0x25655f(0x374)](),this['_updateState'](this[_0x25655f(0x325)][_0x25655f(0x369)](_0x547c3e)),this[_0x25655f(0x1d3)]();}[_0x3cc0f6(0x341)](_0x4296df){const _0x571e35=_0x3cc0f6;this['_lockTransition'](),this['_updateState'](this[_0x571e35(0x325)][_0x571e35(0x4d6)](_0x4296df)),this[_0x571e35(0x1d3)]();}[_0x3cc0f6(0x2b8)](_0x3e6a5d){const _0x1392f4=_0x3cc0f6;this[_0x1392f4(0x374)](),this[_0x1392f4(0x451)](this['_state'][_0x1392f4(0x2e5)](_0x3e6a5d)),this[_0x1392f4(0x1d3)]();}['_onRemoteRetry'](_0x2c06e7){const _0x22d377=_0x3cc0f6;this[_0x22d377(0x374)](),this[_0x22d377(0x451)](this[_0x22d377(0x325)][_0x22d377(0x332)](_0x2c06e7)),this[_0x22d377(0x1d3)]();}[_0x3cc0f6(0x46a)](_0x214b4a){const _0x39984f=_0x3cc0f6;if(!(this[_0x39984f(0x325)]instanceof k))throw new TypeError(_0x39984f(0x4a6));const _0x55b632=_0x214b4a[_0x39984f(0x282)](_0x5923fd=>{const _0x5f5bed=_0x39984f,_0x5054b9=this[_0x5f5bed(0x463)][_0x5f5bed(0x288)][_0x5f5bed(0x40d)](this[_0x5f5bed(0x463)][_0x5f5bed(0x288)][_0x5f5bed(0x4f1)]()[_0x5f5bed(0x36f)])(_0x5923fd[_0x5f5bed(0x3fb)],null)||_0x5923fd[_0x5f5bed(0x3fb)];return{..._0x5923fd,'mutations':_0x5054b9};});this[_0x39984f(0x374)](),this[_0x39984f(0x451)](this['_state']['onMissedChangesetFetched'](_0x55b632)),this[_0x39984f(0x1d3)]();}[_0x3cc0f6(0x355)](){const _0x3d0f93=_0x3cc0f6;this[_0x3d0f93(0x374)](),this['_updateState'](this['_state'][_0x3d0f93(0x4ef)]()),this[_0x3d0f93(0x1d3)]();}['_toggleOnline'](_0x2d6b52=!0x1){const _0x24ae2c=_0x3cc0f6;this[_0x24ae2c(0x374)](),this[_0x24ae2c(0x451)](this[_0x24ae2c(0x325)][_0x24ae2c(0x43b)]()),this[_0x24ae2c(0x1d3)]();const _0x5857ad=this[_0x24ae2c(0x325)];_0x2d6b52&&_0x5857ad instanceof oe&&(this[_0x24ae2c(0x374)](),this[_0x24ae2c(0x451)](_0x5857ad['fetchMiss']()),this[_0x24ae2c(0x1d3)]());}async[_0x3cc0f6(0x3ec)](){return new Promise(_0xcaef0=>{const _0x4e2c71=_0x10ac;this['session'][_0x4e2c71(0x1eb)]['pipe'](v[_0x4e2c71(0x4e6)](0x1))[_0x4e2c71(0x342)](async _0x446c43=>{const _0x5e2674=_0x4e2c71;_0xcaef0(await this[_0x5e2674(0x3e3)](_0x446c43===x[_0x5e2674(0x478)]));});});}['_createHandler'](){const _0x133862=_0x3cc0f6,_0x47808d=this[_0x133862(0x426)];return{'onStateChange':(_0x5c7e36,_0x4ac156)=>{const _0x4f1077=_0x133862;if(_0x5c7e36!==this['_state'])throw new Error(_0x4f1077(0x58e)+_0x5c7e36[_0x4f1077(0x5d6)]+_0x4f1077(0x279)+_0x4ac156[_0x4f1077(0x5d6)]+'\x0aCurrent:\x20'+this[_0x4f1077(0x325)]['status']);this[_0x4f1077(0x451)](_0x4ac156);},'onSendChangeset':_0x5987a5=>{const _0x55c03d=_0x133862;_0x5987a5[_0x55c03d(0x373)]||(_0x5987a5[_0x55c03d(0x373)]=this[_0x55c03d(0x4c5)],_0x5987a5[_0x55c03d(0x236)]=++this[_0x55c03d(0x55a)]);const _0x200218={'eventID':_['CollaborationEvent'][_0x55c03d(0x23f)],'data':{'unitID':_0x5987a5[_0x55c03d(0x426)],'unitType':this['_type'],'changeset':_0x5987a5,'memberID':this['session'][_0x55c03d(0x1f1)]()}};this[_0x55c03d(0x54f)]['send'](_0x200218,this[_0x55c03d(0x426)]);},'onMissingChangesets':({from:_0x5279f1,to:_0x5a3dab})=>{const _0x362095=_0x133862;this[_0x362095(0x518)][_0x362095(0x2cc)](_0x362095(0x33a),'fetching\x20missing\x20changesets\x20from\x20'+_0x5279f1+'\x20to\x20'+_0x5a3dab);const _0x5b93f4={'eventID':_['CollaborationEvent'][_0x362095(0x229)],'data':{'unitID':_0x47808d,'unitType':this['_type'],'from':_0x5279f1,'to':_0x5a3dab}};this[_0x362095(0x54f)]['send'](_0x5b93f4,this[_0x362095(0x426)]);}};}async['_createInitialStateImpl'](_0x44c09a){const _0x5e3786=_0x3cc0f6;var _0x248053,_0x378c79;const _0x16ad71=await this[_0x5e3786(0x1e8)][_0x5e3786(0x40e)](this[_0x5e3786(0x426)]),_0x1481c4=(_0x248053=_0x16ad71==null?void 0x0:_0x16ad71[_0x5e3786(0x3fb)])!=null?_0x248053:[],_0x41b4ac=(_0x378c79=_0x16ad71==null?void 0x0:_0x16ad71[_0x5e3786(0x455)])!=null?_0x378c79:null,_0xccfc74=!!(_0x41b4ac!=null&&_0x41b4ac[_0x5e3786(0x373)])&&!!(_0x41b4ac!=null&&_0x41b4ac[_0x5e3786(0x236)]);this['_changesetSessionId']=_0xccfc74?_0x41b4ac[_0x5e3786(0x373)]:ys(),this['_changesetReqId']=_0xccfc74?_0x41b4ac[_0x5e3786(0x236)]:0x0;const _0x2ec127=this[_0x5e3786(0x426)];try{this[_0x5e3786(0x1e0)](_0x41b4ac,_0x1481c4);}catch(_0x22723b){this['_logService']['error'](_0x22723b);}const _0x22e541=this['_createHandler']();if(_0x44c09a){const _0xfad4b9=wt(this[_0x5e3786(0x5ba)],_0x2ec127,this[_0x5e3786(0x578)],_0x41b4ac,_0x1481c4,_0x22e541);return _0xfad4b9 instanceof W?_0xfad4b9[_0x5e3786(0x1f0)]():(_0xfad4b9 instanceof F||_0xfad4b9 instanceof Y)&&_0xfad4b9[_0x5e3786(0x259)](),_0xfad4b9;}return this['_injector'][_0x5e3786(0x2e1)](X,_0x2ec127,this[_0x5e3786(0x578)],_0x41b4ac,_0x1481c4,_0x22e541);}[_0x3cc0f6(0x1e0)](_0x358233,_0x18e1bd){const _0x53fb19=_0x3cc0f6;var _0x2c0f73,_0x57c9e0;const _0x141ac0=this['_compressMutationService']['interceptor'][_0x53fb19(0x40d)](this['_compressMutationService'][_0x53fb19(0x288)][_0x53fb19(0x4f1)]()[_0x53fb19(0x36f)]);(_0x2c0f73=_0x141ac0((_0x358233==null?void 0x0:_0x358233[_0x53fb19(0x3fb)])||[],null))==null||_0x2c0f73['forEach'](_0x329320=>this[_0x53fb19(0x495)][_0x53fb19(0x427)](_0x329320['id'],_0x329320['params'])),(_0x57c9e0=_0x141ac0(_0x18e1bd||[],null))==null||_0x57c9e0[_0x53fb19(0x300)](_0x3ab627=>this[_0x53fb19(0x495)][_0x53fb19(0x427)](_0x3ab627['id'],_0x3ab627[_0x53fb19(0x3f2)]));}},exports['CollaborationEntity']=ze([p(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),p(0x4,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),p(0x5,a['Inject'](_[_0x3cc0f6(0x27d)])),p(0x6,a['Inject'](a[_0x3cc0f6(0x2b9)])),p(0x7,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),p(0x8,a['ILogService']),p(0x9,a['ICommandService']),p(0xa,A[_0x3cc0f6(0x2af)]),p(0xb,a[_0x3cc0f6(0x27b)]),p(0xc,a[_0x3cc0f6(0x273)](Oe))],exports[_0x3cc0f6(0x4a0)]),exports[_0x3cc0f6(0x3cd)]=class extends exports['CollaborationEntity']{constructor(_0x480bf2,_0x57ae3b,_0x5670dc,_0x11d79c,_0x11bac8,_0x1b72d7,_0x7c11cf,_0x26a2d4,_0x1df334,_0x46c982,_0x3d81bd,_0x1a14f3,_0x74244a,_0x582c16,_0x16d28b,_0x389409,_0x240b19){const _0x2db8a7=_0x3cc0f6;super(_0x480bf2,_0x5670dc,_0x57ae3b,_0x11d79c,_0x11bac8,_0x1b72d7,_0x7c11cf,_0x26a2d4,_0x74244a,_0x582c16,_0x16d28b,_0x389409,_0x240b19),this[_0x2db8a7(0x426)]=_0x480bf2,this[_0x2db8a7(0x523)]=_0x57ae3b,this[_0x2db8a7(0x4c4)]=_0x1df334,this[_0x2db8a7(0x2ac)]=_0x46c982,this[_0x2db8a7(0x39d)]=_0x3d81bd,this[_0x2db8a7(0x476)]=_0x1a14f3;}['_createHandler'](){const _0x55959d=_0x3cc0f6,_0x48c608=super[_0x55959d(0x42b)]();return _0x48c608[_0x55959d(0x56d)]=_0x1d4e97=>this[_0x55959d(0x2ac)]['transformIMECache'](_0x1d4e97),_0x48c608[_0x55959d(0x42a)]=_0x1e8e1e=>this[_0x55959d(0x39d)][_0x55959d(0x29d)](_0x1e8e1e),_0x48c608['onSyncEditingCollabCursor']=_0x52cb94=>this[_0x55959d(0x476)][_0x55959d(0x466)](_0x52cb94),_0x48c608['onTransformRemoteChangesetByIMECache']=_0x1595de=>this[_0x55959d(0x2ac)][_0x55959d(0x1fc)](_0x1595de),_0x48c608;}async[_0x3cc0f6(0x53a)](){const _0x4c6da1=_0x3cc0f6,_0x2678d3=await super[_0x4c6da1(0x53a)]();return this[_0x4c6da1(0x4c4)][_0x4c6da1(0x28b)]['pipe'](v['takeUntil'](this[_0x4c6da1(0x38b)]))[_0x4c6da1(0x342)](_0x2f82e5=>{const _0x5cb63f=_0x4c6da1;if(_0x2f82e5==null)return;const {unitId:_0x508f78,redoState:_0x5c2fba,commandId:_0x148066}=_0x2f82e5;if(_0x508f78!==this[_0x5cb63f(0x426)])return;const _0x63566={'id':_0x148066,'type':a['CommandType'][_0x5cb63f(0x41d)],'params':{'unitId':_0x508f78,'actions':_0x5c2fba['actions'],'textRanges':null}};this[_0x5cb63f(0x43d)](_0x63566);}),_0x2678d3;}},exports[_0x3cc0f6(0x3cd)]=ze([p(0x3,a[_0x3cc0f6(0x573)](a['Injector'])),p(0x4,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),p(0x5,a['Inject'](_[_0x3cc0f6(0x27d)])),p(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),p(0x7,a[_0x3cc0f6(0x573)](_['RevisionService'])),p(0x8,a[_0x3cc0f6(0x573)](N[_0x3cc0f6(0x4bf)])),p(0x9,a['Inject'](Ie)),p(0xa,a['Inject'](Ce)),p(0xb,a['Inject'](qe)),p(0xc,a[_0x3cc0f6(0x24d)]),p(0xd,a[_0x3cc0f6(0x1d6)]),p(0xe,A[_0x3cc0f6(0x2af)]),p(0xf,a['IPermissionService']),p(0x10,a['Optional'](Oe))],exports[_0x3cc0f6(0x3cd)]),exports[_0x3cc0f6(0x4e2)]=class extends exports[_0x3cc0f6(0x4a0)]{constructor(_0x3a8108,_0x4017eb,_0x2dce43,_0x506018,_0x128241,_0x560671,_0x29b008,_0x22b5af,_0x1334de,_0x15fc56,_0x380412,_0x2ec9bf,_0x3d7e86,_0x372c0f){const _0x2e06b5=_0x3cc0f6;super(_0x3a8108,_0x2dce43,_0x4017eb,_0x506018,_0x128241,_0x560671,_0x29b008,_0x22b5af,_0x15fc56,_0x380412,_0x2ec9bf,_0x3d7e86,_0x372c0f),this[_0x2e06b5(0x426)]=_0x3a8108,this[_0x2e06b5(0x523)]=_0x4017eb,this[_0x2e06b5(0x4d5)]=_0x1334de;}[_0x3cc0f6(0x42b)](){const _0x133ce0=_0x3cc0f6,_0x3facab=super['_createHandler']();return _0x3facab[_0x133ce0(0x42a)]=_0x50fa0f=>this[_0x133ce0(0x4d5)][_0x133ce0(0x29d)](_0x50fa0f),_0x3facab;}async['_init'](){const _0x4f40d5=_0x3cc0f6,_0xf03377=await super[_0x4f40d5(0x53a)]();return this[_0x4f40d5(0x217)](this[_0x4f40d5(0x495)][_0x4f40d5(0x26e)]((_0x583d56,_0x9a6551)=>{const _0x489b18=_0x4f40d5;if(_0x583d56[_0x489b18(0x523)]!==a[_0x489b18(0x566)][_0x489b18(0x41d)]||_0x9a6551!=null&&_0x9a6551[_0x489b18(0x38d)]||_0x9a6551!=null&&_0x9a6551['onlyLocal'])return;const _0xe9128b=_0x583d56[_0x489b18(0x3f2)];if((_0xe9128b==null?void 0x0:_0xe9128b[_0x489b18(0x3e7)])!==this[_0x489b18(0x426)])return;const _0x9782b5=_0x583d56,_0x43901c=this['_compressMutationService']['interceptor'][_0x489b18(0x40d)](this[_0x489b18(0x463)]['interceptor'][_0x489b18(0x4f1)]()[_0x489b18(0x33f)])([_0x9782b5],null)||[_0x9782b5];this[_0x489b18(0x43d)](_0x43901c[0x0]);})),_0xf03377;}},exports[_0x3cc0f6(0x4e2)]=ze([p(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),p(0x4,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),p(0x5,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x27d)])),p(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),p(0x7,a[_0x3cc0f6(0x573)](_['RevisionService'])),p(0x8,a[_0x3cc0f6(0x573)](pe)),p(0x9,a[_0x3cc0f6(0x24d)]),p(0xa,a[_0x3cc0f6(0x1d6)]),p(0xb,A[_0x3cc0f6(0x2af)]),p(0xc,a[_0x3cc0f6(0x27b)]),p(0xd,a[_0x3cc0f6(0x273)](Oe))],exports['SheetCollaborationEntity']);var Js=Object[_0x3cc0f6(0x1c6)],Zs=Object['getOwnPropertyDescriptor'],Qs=(_0x14ded4,_0x56eaf1,_0x2e9c7e,_0x2503e8)=>{const _0x1f493b=_0x3cc0f6;for(var _0x19ad6f=_0x2503e8>0x1?void 0x0:_0x2503e8?Zs(_0x56eaf1,_0x2e9c7e):_0x56eaf1,_0xb6b1b=_0x14ded4[_0x1f493b(0x411)]-0x1,_0x1f0eb4;_0xb6b1b>=0x0;_0xb6b1b--)(_0x1f0eb4=_0x14ded4[_0xb6b1b])&&(_0x19ad6f=(_0x2503e8?_0x1f0eb4(_0x56eaf1,_0x2e9c7e,_0x19ad6f):_0x1f0eb4(_0x19ad6f))||_0x19ad6f);return _0x2503e8&&_0x19ad6f&&Js(_0x56eaf1,_0x2e9c7e,_0x19ad6f),_0x19ad6f;},Ne=(_0x46993a,_0x43b7f3)=>(_0x147e92,_0x571553)=>_0x43b7f3(_0x147e92,_0x571553,_0x46993a);exports[_0x3cc0f6(0x3fc)]=class extends a['RxDisposable']{constructor(_0x58e624,_0x59db86,_0x47cf20){const _0x340b5d=_0x3cc0f6;super(),u(this,_0x340b5d(0x318),new Map()),u(this,_0x340b5d(0x33d),new v[(_0x340b5d(0x2c3))]()),(this[_0x340b5d(0x5ba)]=_0x58e624,this['_collabSessionService']=_0x59db86,this[_0x340b5d(0x34b)]=_0x47cf20,this[_0x340b5d(0x53a)]());}[_0x3cc0f6(0x32b)](){const _0x279792=_0x3cc0f6;super[_0x279792(0x32b)](),this[_0x279792(0x318)][_0x279792(0x300)](_0x1fa1b1=>_0x1fa1b1[_0x279792(0x32b)]()),this['_entities'][_0x279792(0x48b)]();}[_0x3cc0f6(0x383)](_0x3245bc){const _0x6ab9f7=_0x3cc0f6;var _0x1666ba;return(_0x1666ba=this[_0x6ab9f7(0x318)][_0x6ab9f7(0x3de)](_0x3245bc))!=null?_0x1666ba:null;}[_0x3cc0f6(0x2a9)](_0x6e67cb){const _0x1f1ef7=_0x3cc0f6,_0x560073=this[_0x1f1ef7(0x383)](_0x6e67cb);return _0x560073?v['of'](_0x560073):this[_0x1f1ef7(0x33d)][_0x1f1ef7(0x57c)](E[_0x1f1ef7(0x545)](_0x32bd8e=>_0x32bd8e[_0x1f1ef7(0x426)]===_0x6e67cb));}[_0x3cc0f6(0x53a)](){const _0x91c9eb=_0x3cc0f6;this[_0x91c9eb(0x34b)][_0x91c9eb(0x541)](a[_0x91c9eb(0x31e)][_0x91c9eb(0x336)])[_0x91c9eb(0x57c)](v[_0x91c9eb(0x585)](this[_0x91c9eb(0x38b)]),E[_0x91c9eb(0x490)](0x10))[_0x91c9eb(0x342)](async _0x5e398a=>{const _0x11cd45=_0x91c9eb,_0x3824c5=_0x5e398a[_0x11cd45(0x527)](),_0x15affc=await this[_0x11cd45(0x39a)](_0x3824c5,H[_0x11cd45(0x336)]);this[_0x11cd45(0x318)][_0x11cd45(0x420)](_0x3824c5,_0x15affc);}),this[_0x91c9eb(0x34b)][_0x91c9eb(0x541)](a[_0x91c9eb(0x31e)]['UNIVER_DOC'])['pipe'](v[_0x91c9eb(0x585)](this[_0x91c9eb(0x38b)]),E[_0x91c9eb(0x490)](0x10))[_0x91c9eb(0x57c)](E['filter'](_0x403d1a=>!_0x403d1a[_0x91c9eb(0x527)]()[_0x91c9eb(0x587)]('__')))[_0x91c9eb(0x342)](async _0x848f44=>{const _0x21fea8=_0x91c9eb,_0x7532e9=_0x848f44[_0x21fea8(0x527)](),_0x14d4ab=await this['_startCollaboration'](_0x7532e9,H['UNIVER_DOC']);this['_entities'][_0x21fea8(0x420)](_0x7532e9,_0x14d4ab);}),v[_0x91c9eb(0x570)](this[_0x91c9eb(0x34b)][_0x91c9eb(0x1f9)](a[_0x91c9eb(0x31e)][_0x91c9eb(0x336)]),this[_0x91c9eb(0x34b)][_0x91c9eb(0x1f9)](a[_0x91c9eb(0x31e)][_0x91c9eb(0x3c6)]))[_0x91c9eb(0x57c)](v[_0x91c9eb(0x585)](this[_0x91c9eb(0x38b)]))[_0x91c9eb(0x342)](_0x42d2d1=>{const _0x1ecb2d=_0x91c9eb,_0x456de8=_0x42d2d1[_0x1ecb2d(0x527)](),_0x2ec769=this[_0x1ecb2d(0x318)]['get'](_0x456de8);_0x2ec769&&(_0x2ec769[_0x1ecb2d(0x32b)](),this[_0x1ecb2d(0x318)]['delete'](_0x456de8));});}async[_0x3cc0f6(0x39a)](_0x46b1b7,_0x114bde){const _0x3223c9=_0x3cc0f6,_0x5c1a94=await this[_0x3223c9(0x1fd)][_0x3223c9(0x57b)](_0x46b1b7),_0x6090f6=this[_0x3223c9(0x5ba)]['createInstance'](this[_0x3223c9(0x3bc)](_0x114bde),_0x46b1b7,_0x114bde,_0x5c1a94);return await _0x6090f6[_0x3223c9(0x5d4)](),this[_0x3223c9(0x33d)][_0x3223c9(0x517)](_0x6090f6),_0x6090f6;}[_0x3cc0f6(0x3bc)](_0x977bff){const _0x8ff0eb=_0x3cc0f6;switch(_0x977bff){case H['UNIVER_DOC']:return exports['DocCollaborationEntity'];case H[_0x8ff0eb(0x336)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x8ff0eb(0x3ad)+_0x977bff);}}},exports[_0x3cc0f6(0x3fc)]=Qs([Ne(0x0,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),Ne(0x1,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x3c0)])),Ne(0x2,a[_0x3cc0f6(0x2f2)])],exports[_0x3cc0f6(0x3fc)]);const ct=[_0x3cc0f6(0x379),_0x3cc0f6(0x1f4),_0x3cc0f6(0x35c),_0x3cc0f6(0x246),_0x3cc0f6(0x4ab),_0x3cc0f6(0x40c)];class Je extends a[_0x3cc0f6(0x31b)]{constructor(){const _0x1c3dbb=_0x3cc0f6;super(...arguments),u(this,'_assignedColors',new Map()),u(this,_0x1c3dbb(0x474),0x0);}[_0x3cc0f6(0x2aa)](_0x4bddd7){const _0x5374b5=_0x3cc0f6;if(this[_0x5374b5(0x1f6)]['has'](_0x4bddd7))return this[_0x5374b5(0x1f6)][_0x5374b5(0x3de)](_0x4bddd7);const _0x3c7622=ct[this[_0x5374b5(0x474)]];return this['_colorIndex']=(this[_0x5374b5(0x474)]+0x1)%ct['length'],this['_assignedColors'][_0x5374b5(0x420)](_0x4bddd7,_0x3c7622),_0x3c7622;}}var ei=Object[_0x3cc0f6(0x1c6)],ti=Object[_0x3cc0f6(0x544)],si=(_0xfe02cb,_0x383a21,_0x10db27,_0x434d10)=>{const _0x31c4f6=_0x3cc0f6;for(var _0x502b36=_0x434d10>0x1?void 0x0:_0x434d10?ti(_0x383a21,_0x10db27):_0x383a21,_0x629759=_0xfe02cb[_0x31c4f6(0x411)]-0x1,_0x1828f8;_0x629759>=0x0;_0x629759--)(_0x1828f8=_0xfe02cb[_0x629759])&&(_0x502b36=(_0x434d10?_0x1828f8(_0x383a21,_0x10db27,_0x502b36):_0x1828f8(_0x502b36))||_0x502b36);return _0x434d10&&_0x502b36&&ei(_0x383a21,_0x10db27,_0x502b36),_0x502b36;},z=(_0x29eb11,_0x252443)=>(_0x122287,_0x4e7cae)=>_0x252443(_0x122287,_0x4e7cae,_0x29eb11);const ii=0x12c,ni=0x64;let ke=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x38e65b,_0x2686e4,_0x43e05e,_0x5a7feb,_0x370b7d,_0x198817,_0x49bdd0,_0xf9e7d,_0x6bb67e){const _0x404f35=_0x3cc0f6;super(),u(this,_0x404f35(0x3d6),!0x1),u(this,'_init',!0x1),u(this,_0x404f35(0x305),new v[(_0x404f35(0x3ea))](new Map())),u(this,_0x404f35(0x59d),this[_0x404f35(0x305)][_0x404f35(0x459)]()),u(this,_0x404f35(0x2d6),new v[(_0x404f35(0x3ea))]([])),u(this,_0x404f35(0x329),this['_roomMembers$']['pipe'](v[_0x404f35(0x4fa)](ii))),u(this,_0x404f35(0x28a),a[_0x404f35(0x50d)](_0x42f1af=>{const _0x41aa35=_0x404f35,_0x26338b={'eventID':_[_0x41aa35(0x400)][_0x41aa35(0x284)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':yt(_0x42f1af)}};this[_0x41aa35(0x5cd)][_0x41aa35(0x5d7)](_0x26338b,this[_0x41aa35(0x426)]);},ni)),(this[_0x404f35(0x426)]=_0x38e65b,this[_0x404f35(0x5cd)]=_0x2686e4,this[_0x404f35(0x5ba)]=_0x43e05e,this[_0x404f35(0x1e1)]=_0x5a7feb,this[_0x404f35(0x5a7)]=_0x370b7d,this['_syncEditingCollabCursorService']=_0x198817,this[_0x404f35(0x5c3)]=_0x49bdd0,this[_0x404f35(0x34b)]=_0xf9e7d,this[_0x404f35(0x495)]=_0x6bb67e);}get[_0x3cc0f6(0x358)](){const _0x5cb8df=_0x3cc0f6;return this['_cursorInfo$'][_0x5cb8df(0x535)]();}get[_0x3cc0f6(0x4ad)](){const _0x2fc0fe=_0x3cc0f6;return this['_roomMembers$'][_0x2fc0fe(0x535)]();}['dispose'](){const _0x330f40=_0x3cc0f6;super['dispose'](),this[_0x330f40(0x305)]['next'](new Map()),this[_0x330f40(0x305)]['complete'](),this[_0x330f40(0x2d6)][_0x330f40(0x517)]([]),this[_0x330f40(0x2d6)]['complete']();}[_0x3cc0f6(0x5d4)](){const _0xd2c7e=_0x3cc0f6;this[_0xd2c7e(0x53a)]||(this[_0xd2c7e(0x53a)]=!0x0,this[_0xd2c7e(0x5cd)][_0xd2c7e(0x1eb)][_0xd2c7e(0x57c)](v[_0xd2c7e(0x585)](this['dispose$']))[_0xd2c7e(0x342)](_0x485132=>{const _0x5e1e8b=_0xd2c7e;_0x485132===x[_0x5e1e8b(0x478)]?this[_0x5e1e8b(0x223)]():this[_0x5e1e8b(0x355)]();}),this[_0xd2c7e(0x5cd)]['event$'][_0xd2c7e(0x57c)](v[_0xd2c7e(0x585)](this['dispose$']))[_0xd2c7e(0x342)](_0x535b42=>{const _0x619966=_0xd2c7e,_0x381cf6=_0x535b42[_0x619966(0x21b)];_0x381cf6===_[_0x619966(0x400)][_0x619966(0x284)]&&this[_0x619966(0x50a)](_0x535b42),_0x381cf6===_['CollaborationEvent'][_0x619966(0x5cf)]&&this[_0x619966(0x344)](_0x535b42);}),this[_0xd2c7e(0x217)](this['_commandService']['onCommandExecuted'](_0x55c1d3=>{const _0x11884a=_0xd2c7e,_0x7bf13c=_0x55c1d3[_0x11884a(0x3f2)];_0x7bf13c!=null&&this[_0x11884a(0x3d6)]&&_0x55c1d3['id']===re[_0x11884a(0x39b)]['id']&&_0x7bf13c[_0x11884a(0x3e7)]===this[_0x11884a(0x426)]&&_0x7bf13c['isEditing']===!0x1&&_0x7bf13c[_0x11884a(0x4d2)]['length']>0x0&&this['_updateLocalCursor'](_0x7bf13c[_0x11884a(0x4d2)]);})),this[_0xd2c7e(0x38f)][_0xd2c7e(0x5a5)][_0xd2c7e(0x57c)](v[_0xd2c7e(0x585)](this[_0xd2c7e(0x38b)]))[_0xd2c7e(0x342)](_0x3d4638=>{const _0x5102ee=_0xd2c7e;if((_0x3d4638==null?void 0x0:_0x3d4638['unitID'])!==this[_0x5102ee(0x426)])return;const _0x4bd2fe={'eventID':_[_0x5102ee(0x400)][_0x5102ee(0x284)],'data':_0x3d4638};this[_0x5102ee(0x50a)](_0x4bd2fe);}),this[_0xd2c7e(0x217)](this['_commandService'][_0xd2c7e(0x26e)](_0x4974e1=>{const _0x2b1183=_0xd2c7e;if(_0x4974e1[_0x2b1183(0x3f2)]==null)return;const _0x4fe4a7=_0x4974e1['params'];if(_0x4974e1['id']!==re[_0x2b1183(0x4c0)]['id']||_0x4fe4a7[_0x2b1183(0x3e7)]!==this[_0x2b1183(0x426)])return;const _0xac72c9={'id':_0x2b1183(0x2b2),'params':_0x4fe4a7},_0x32f72a=this[_0x2b1183(0x358)];for(const [_0x44a03a,_0x5971f4]of _0x32f72a){const _0x18bdd8={'id':_0x2b1183(0x2b2),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5971f4[_0x2b1183(0x4d2)]}},_0x7d048e=this['_transformService'][_0x2b1183(0x3ef)](_0xac72c9,_0x18bdd8,!0x1);if(_[_0x2b1183(0x4dd)](_0x7d048e))throw _0x7d048e[_0x2b1183(0x2c9)];_0x32f72a[_0x2b1183(0x420)](_0x44a03a,{..._0x5971f4,'ranges':_0x7d048e[_0x2b1183(0x201)][_0x2b1183(0x3f2)][_0x2b1183(0x3b1)]});}queueMicrotask(()=>{const _0x4d17f2=_0x2b1183;this[_0x4d17f2(0x305)]['next'](_0x32f72a);});})));}[_0x3cc0f6(0x50a)](_0x29dece){const _0x186c60=_0x3cc0f6;var _0x91b626,_0x5b9754;const {memberID:_0x21612d,selection:_0x4e89a7}=_0x29dece[_0x186c60(0x35a)],_0x1fade2=ks(_0x4e89a7),_0x3633b4=(_0x5b9754=(_0x91b626=this[_0x186c60(0x5a7)][_0x186c60(0x5cc)](this[_0x186c60(0x426)],_0x21612d))==null?void 0x0:_0x91b626['name'])!=null?_0x5b9754:_0x186c60(0x5a6),_0x1e098a={'color':this[_0x186c60(0x1e1)]['assignAColorForMemberID'](_0x21612d),'name':_0x3633b4,'ranges':_0x1fade2},_0x52c57c=this[_0x186c60(0x358)];_0x52c57c[_0x186c60(0x420)](_0x21612d,_0x1e098a),this[_0x186c60(0x305)][_0x186c60(0x517)](_0x52c57c);}[_0x3cc0f6(0x344)](_0x4fc827){const _0x582b81=_0x3cc0f6,{memberID:_0x580cea}=_0x4fc827[_0x582b81(0x35a)],_0x48aae1=this[_0x582b81(0x358)];_0x48aae1[_0x582b81(0x3c4)](_0x580cea),this['_cursorInfo$'][_0x582b81(0x517)](_0x48aae1);}[_0x3cc0f6(0x223)](){const _0x513fbe=_0x3cc0f6;var _0x249b82;if(this[_0x513fbe(0x3d6)]=!0x0,((_0x249b82=this[_0x513fbe(0x34b)]['getFocusedUnit']())==null?void 0x0:_0x249b82[_0x513fbe(0x527)]())!==this[_0x513fbe(0x426)])return;const _0x237e29=this[_0x513fbe(0x5ba)][_0x513fbe(0x3de)](re['DocSelectionManagerService'])[_0x513fbe(0x52f)]();Array['isArray'](_0x237e29)&&_0x237e29['length']>0x0&&this[_0x513fbe(0x28a)](_0x237e29);}['_toggleOffline'](){this['_online']=!0x1;}};ke=si([z(0x2,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),z(0x3,a[_0x3cc0f6(0x573)](Je)),z(0x4,a[_0x3cc0f6(0x573)](Z)),z(0x5,a['Inject'](qe)),z(0x6,_['ITransformService']),z(0x7,a[_0x3cc0f6(0x2f2)]),z(0x8,a[_0x3cc0f6(0x1d6)])],ke);var ri=Object[_0x3cc0f6(0x1c6)],oi=Object['getOwnPropertyDescriptor'],ai=(_0x25fbf5,_0x43ecf8,_0xb2ac5c,_0x107059)=>{const _0x8d0e6d=_0x3cc0f6;for(var _0x5851b6=_0x107059>0x1?void 0x0:_0x107059?oi(_0x43ecf8,_0xb2ac5c):_0x43ecf8,_0x161df0=_0x25fbf5[_0x8d0e6d(0x411)]-0x1,_0x5e6a04;_0x161df0>=0x0;_0x161df0--)(_0x5e6a04=_0x25fbf5[_0x161df0])&&(_0x5851b6=(_0x107059?_0x5e6a04(_0x43ecf8,_0xb2ac5c,_0x5851b6):_0x5e6a04(_0x5851b6))||_0x5851b6);return _0x107059&&_0x5851b6&&ri(_0x43ecf8,_0xb2ac5c,_0x5851b6),_0x5851b6;},se=(_0x220822,_0x5a991b)=>(_0x5f5964,_0x8f4ef8)=>_0x5a991b(_0x5f5964,_0x8f4ef8,_0x220822);const ci=0x12c,li=0x64,hi=()=>{let _0x2580ff=[],_0x424dc5=!0x1;return _0x2f25c3=>{const _0x495adc=_0x10ac;_0x2580ff[_0x495adc(0x430)](_0x2f25c3),_0x424dc5||(_0x424dc5=!0x0,setTimeout(()=>{const _0x179cb7=_0x495adc;_0x2580ff[_0x179cb7(0x300)](_0x4142f9=>_0x4142f9()),_0x2580ff=[],_0x424dc5=!0x1;}));};};let Be=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x2f37cb,_0x4c9b23,_0x549b3b,_0x5dc37f,_0x438603,_0x52eee5,_0x155b1d,_0x2fa33){const _0x12cc98=_0x3cc0f6;super(),u(this,'_online',!0x1),u(this,_0x12cc98(0x53a),!0x1),u(this,_0x12cc98(0x305),new v['BehaviorSubject'](new Map())),u(this,_0x12cc98(0x59d),this[_0x12cc98(0x305)]['asObservable']()),u(this,_0x12cc98(0x2d6),new v[(_0x12cc98(0x3ea))]([])),u(this,_0x12cc98(0x329),this['_roomMembers$'][_0x12cc98(0x57c)](v[_0x12cc98(0x4fa)](ci))),u(this,_0x12cc98(0x28a),a[_0x12cc98(0x50d)]((_0x49f5db,_0x17b196)=>{const _0x552679=_0x12cc98,_0x4ea7b8={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x552679(0x426)],'memberID':this[_0x552679(0x5cd)][_0x552679(0x1f1)](),'selection':et[_0x552679(0x473)](_0x49f5db,_0x17b196[_0x552679(0x36a)])}};this['_session'][_0x552679(0x5d7)](_0x4ea7b8,this[_0x552679(0x426)]);},li)),(this[_0x12cc98(0x426)]=_0x2f37cb,this[_0x12cc98(0x5cd)]=_0x4c9b23,this[_0x12cc98(0x5ba)]=_0x549b3b,this[_0x12cc98(0x1e1)]=_0x5dc37f,this[_0x12cc98(0x5a7)]=_0x438603,this[_0x12cc98(0x34b)]=_0x52eee5,this[_0x12cc98(0x495)]=_0x155b1d,this['_refRangeService']=_0x2fa33);}get['cursorInfo'](){const _0x113a15=_0x3cc0f6;return this[_0x113a15(0x305)]['getValue']();}get['roomMembers'](){const _0x381a31=_0x3cc0f6;return this[_0x381a31(0x2d6)][_0x381a31(0x535)]();}[_0x3cc0f6(0x32b)](){const _0x5c416e=_0x3cc0f6;super['dispose'](),this[_0x5c416e(0x305)][_0x5c416e(0x517)](new Map()),this[_0x5c416e(0x305)][_0x5c416e(0x5d2)](),this[_0x5c416e(0x2d6)]['next']([]),this['_roomMembers$']['complete']();}[_0x3cc0f6(0x5d4)](){const _0x2d63a8=_0x3cc0f6;this[_0x2d63a8(0x53a)]||(this[_0x2d63a8(0x53a)]=!0x0,this[_0x2d63a8(0x5cd)][_0x2d63a8(0x1eb)][_0x2d63a8(0x57c)](v['takeUntil'](this[_0x2d63a8(0x38b)]))[_0x2d63a8(0x342)](_0x59a997=>{const _0x5cdff4=_0x2d63a8;_0x59a997===x[_0x5cdff4(0x478)]?this[_0x5cdff4(0x223)]():this['_toggleOffline']();}),this[_0x2d63a8(0x5cd)][_0x2d63a8(0x574)]['pipe'](v[_0x2d63a8(0x585)](this[_0x2d63a8(0x38b)]))[_0x2d63a8(0x342)](_0x22f436=>{const _0x515e11=_0x2d63a8,_0xcdda08=_0x22f436[_0x515e11(0x21b)];_0xcdda08===_[_0x515e11(0x400)]['UPDATE_CURSOR']&&this[_0x515e11(0x50a)](_0x22f436),_0xcdda08===_[_0x515e11(0x400)][_0x515e11(0x5cf)]&&this[_0x515e11(0x344)](_0x22f436);}),this[_0x2d63a8(0x1bd)](),this[_0x2d63a8(0x217)](this[_0x2d63a8(0x495)]['onCommandExecuted'](_0x57bf1a=>{const _0x10045b=_0x2d63a8;if(this[_0x10045b(0x3d6)]&&_0x57bf1a['id']===C['SetSelectionsOperation']['id']&&_0x57bf1a['params'][_0x10045b(0x3e7)]===this[_0x10045b(0x426)]){const _0x4e8a12=_0x57bf1a[_0x10045b(0x3f2)];this[_0x10045b(0x28a)](_0x4e8a12[_0x10045b(0x3b8)],_0x4e8a12[_0x10045b(0x1df)][0x0]);}})));}[_0x3cc0f6(0x50a)](_0x2eefe9){const _0x1bdee7=_0x3cc0f6;var _0x3a9b15,_0x2ba6ea;const {memberID:_0x5323e5,selection:_0x2650ea}=_0x2eefe9[_0x1bdee7(0x35a)],{sheetName:_0x46696f,range:_0x2e7bc8}=et[_0x1bdee7(0x2ff)](_0x2650ea),_0x5f20d6={'name':(_0x2ba6ea=(_0x3a9b15=this[_0x1bdee7(0x5a7)][_0x1bdee7(0x5cc)](this[_0x1bdee7(0x426)],_0x5323e5))==null?void 0x0:_0x3a9b15[_0x1bdee7(0x51a)])!=null?_0x2ba6ea:_0x1bdee7(0x5a6),'range':this[_0x1bdee7(0x4f7)](_0x46696f,_0x2e7bc8),'sheetID':_0x46696f,'color':this[_0x1bdee7(0x1e1)][_0x1bdee7(0x2aa)](_0x5323e5),'selection':_0x2650ea},_0x33e35b=this['cursorInfo'];_0x33e35b[_0x1bdee7(0x420)](_0x5323e5,_0x5f20d6),this[_0x1bdee7(0x305)][_0x1bdee7(0x517)](_0x33e35b);}['_onCursorDelete'](_0x597af9){const _0x473611=_0x3cc0f6,{memberID:_0x140ae5}=_0x597af9[_0x473611(0x35a)],_0xa6c063=this['cursorInfo'];_0xa6c063[_0x473611(0x3c4)](_0x140ae5),this[_0x473611(0x305)][_0x473611(0x517)](_0xa6c063);}['_getMergeRange'](_0x121171,_0x288bd5){const _0x51fd0b=_0x3cc0f6;var _0x2fd1ed,_0x8e5af3;const _0x4971f4=(_0x8e5af3=(_0x2fd1ed=this[_0x51fd0b(0x34b)][_0x51fd0b(0x3fa)](this[_0x51fd0b(0x426)]))==null?void 0x0:_0x2fd1ed[_0x51fd0b(0x23d)](_0x121171))==null?void 0x0:_0x8e5af3['getMergeData']();return(_0x4971f4==null?void 0x0:_0x4971f4['find'](_0x3e8634=>a[_0x51fd0b(0x45c)][_0x51fd0b(0x1d2)](_0x3e8634,_0x288bd5)))||_0x288bd5;}[_0x3cc0f6(0x1bd)](){const _0x2a3fd4=_0x3cc0f6,_0x47d001=new a['DisposableCollection'](),_0x5c8b00=hi(),_0x1e058c=()=>{const _0x71ae42=_0x10ac;_0x47d001['dispose']();const _0x1343f6=(_0x4cfd10,_0x3afa25,_0x4ab9bf,_0x18d9cc)=>{const _0x33a18f=_0x10ac;let _0x5c985f=[];switch(_0x4cfd10['id']){case C[_0x33a18f(0x407)][_0x33a18f(0x1c8)]:{_0x5c985f=C[_0x33a18f(0x501)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x51d)]:{_0x5c985f=C[_0x33a18f(0x21a)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x33c)]:{_0x5c985f=C[_0x33a18f(0x295)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x592)]:{_0x5c985f=C[_0x33a18f(0x3d5)](_0x4cfd10,_0x18d9cc);break;}case C['EffectRefRangId'][_0x33a18f(0x215)]:{_0x5c985f=C[_0x33a18f(0x47d)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x533)]:{_0x5c985f=C[_0x33a18f(0x303)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x4b3)]:{_0x5c985f=C['handleMoveRange'](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)]['RemoveColCommandId']:{_0x5c985f=C[_0x33a18f(0x225)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x410)]:{_0x5c985f=C['handleIRemoveRow'](_0x4cfd10,_0x18d9cc);break;}}const _0x22c9ab=C[_0x33a18f(0x5aa)](_0x5c985f,_0x18d9cc),_0x13e1ff=this[_0x33a18f(0x358)][_0x33a18f(0x3de)](_0x3afa25);if(_0x13e1ff&&_0x22c9ab){const _0x13334f={..._0x13e1ff,'range':_0x22c9ab};this['cursorInfo'][_0x33a18f(0x420)](_0x3afa25,_0x13334f),_0x5c8b00(()=>{const _0x1ffcba=_0x33a18f,_0x9dc470=this[_0x1ffcba(0x290)]['registerRefRange'](_0x22c9ab,_0x1f2113=>(_0x9dc470[_0x1ffcba(0x32b)](),_0x1343f6(_0x1f2113,_0x3afa25,_0x4ab9bf,_0x22c9ab)));_0x47d001[_0x1ffcba(0x44c)](_0x9dc470);});}return{'redos':[],'undos':[]};};this[_0x71ae42(0x358)][_0x71ae42(0x300)]((_0x36ad20,_0xb3afa0)=>{const _0x66afe=_0x71ae42,{range:_0x1788ae,sheetID:_0x18fa81}=_0x36ad20,_0x3a6714=this[_0x66afe(0x290)][_0x66afe(0x4b0)](_0x1788ae,_0x54613a=>(_0x3a6714['dispose'](),_0x1343f6(_0x54613a,_0xb3afa0,_0x18fa81,_0x1788ae)));_0x47d001[_0x66afe(0x44c)](_0x3a6714);});};this[_0x2a3fd4(0x217)](a[_0x2a3fd4(0x2ba)](this[_0x2a3fd4(0x305)][_0x2a3fd4(0x342)](()=>{_0x1e058c();})));}[_0x3cc0f6(0x223)](){const _0x2be51f=_0x3cc0f6;var _0x337cbb,_0x145d5d;if(this[_0x2be51f(0x3d6)]=!0x0,((_0x337cbb=this[_0x2be51f(0x34b)][_0x2be51f(0x434)]())==null?void 0x0:_0x337cbb[_0x2be51f(0x527)]())!==this[_0x2be51f(0x426)])return;const _0x39ddfe=(_0x145d5d=this['_injector'][_0x2be51f(0x3de)](C[_0x2be51f(0x2fc)])[_0x2be51f(0x416)]())==null?void 0x0:_0x145d5d[0x0],_0xd5ff2e=this[_0x2be51f(0x34b)]['getCurrentUnitForType'](a[_0x2be51f(0x31e)][_0x2be51f(0x336)])['getActiveSheet']();_0x39ddfe&&_0xd5ff2e&&this['_updateLocalCursor'](_0xd5ff2e[_0x2be51f(0x255)](),_0x39ddfe);}[_0x3cc0f6(0x355)](){const _0x1c26b2=_0x3cc0f6;this[_0x1c26b2(0x3d6)]=!0x1;}};Be=ai([se(0x2,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),se(0x3,a[_0x3cc0f6(0x573)](Je)),se(0x4,a[_0x3cc0f6(0x573)](Z)),se(0x5,a['IUniverInstanceService']),se(0x6,a[_0x3cc0f6(0x1d6)]),se(0x7,a[_0x3cc0f6(0x573)](C['RefRangeService']))],Be);var _i=Object['defineProperty'],ui=Object[_0x3cc0f6(0x544)],di=(_0x1bc572,_0x416a4b,_0x556f53,_0x3dcb86)=>{const _0x4f1d58=_0x3cc0f6;for(var _0x35aa8b=_0x3dcb86>0x1?void 0x0:_0x3dcb86?ui(_0x416a4b,_0x556f53):_0x416a4b,_0x31ae1a=_0x1bc572[_0x4f1d58(0x411)]-0x1,_0x5297c3;_0x31ae1a>=0x0;_0x31ae1a--)(_0x5297c3=_0x1bc572[_0x31ae1a])&&(_0x35aa8b=(_0x3dcb86?_0x5297c3(_0x416a4b,_0x556f53,_0x35aa8b):_0x5297c3(_0x35aa8b))||_0x35aa8b);return _0x3dcb86&&_0x35aa8b&&_i(_0x416a4b,_0x556f53,_0x35aa8b),_0x35aa8b;},Me=(_0x5eee9e,_0x58b1cf)=>(_0x33f918,_0x14270b)=>_0x58b1cf(_0x33f918,_0x14270b,_0x5eee9e);let ae=class extends a['RxDisposable']{constructor(_0x1faa0a,_0x3fd880,_0x53a6a8){const _0x1af8a2=_0x3cc0f6;super(),u(this,_0x1af8a2(0x318),new Map()),u(this,'_entityInit$',new v[(_0x1af8a2(0x2c3))]()),(this[_0x1af8a2(0x34b)]=_0x1faa0a,this[_0x1af8a2(0x5ba)]=_0x3fd880,this['_collabSessionService']=_0x53a6a8,this['_init']());}['dispose'](){const _0x32f21e=_0x3cc0f6;super[_0x32f21e(0x32b)](),this[_0x32f21e(0x33d)][_0x32f21e(0x5d2)](),this[_0x32f21e(0x318)][_0x32f21e(0x300)](_0x5694bb=>_0x5694bb['dispose']());}['getCollabCursors$'](_0x476a76){const _0x9420cf=_0x3cc0f6;return this['_entities'][_0x9420cf(0x2d0)](_0x476a76)?this['_entities']['get'](_0x476a76)['cursorInfo$']:this[_0x9420cf(0x33d)][_0x9420cf(0x57c)](v['filter'](_0x330489=>_0x330489[_0x9420cf(0x426)]===_0x476a76),v[_0x9420cf(0x4d4)](_0x123e1c=>_0x123e1c['cursorInfo$']));}[_0x3cc0f6(0x53a)](){const _0x45be90=_0x3cc0f6;this['_univerInstanceService'][_0x45be90(0x541)](a['UniverInstanceType'][_0x45be90(0x336)])[_0x45be90(0x57c)](v[_0x45be90(0x585)](this[_0x45be90(0x38b)]))[_0x45be90(0x342)](async _0x5a295e=>{const _0x31330b=_0x45be90,_0x4de5bc=_0x5a295e[_0x31330b(0x527)](),_0xec287c=await this[_0x31330b(0x2ae)](_0x4de5bc);this[_0x31330b(0x33d)][_0x31330b(0x517)](_0xec287c),this[_0x31330b(0x318)][_0x31330b(0x420)](_0x4de5bc,_0xec287c);}),this[_0x45be90(0x34b)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x45be90(0x3c6)])['pipe'](v[_0x45be90(0x585)](this[_0x45be90(0x38b)]))[_0x45be90(0x57c)](v[_0x45be90(0x545)](_0x42e7bf=>!_0x42e7bf[_0x45be90(0x527)]()['startsWith']('__')))['subscribe'](async _0x79f812=>{const _0x15b6e8=_0x45be90,_0x44a4c8=_0x79f812[_0x15b6e8(0x527)](),_0x384c85=await this[_0x15b6e8(0x330)](_0x44a4c8);this[_0x15b6e8(0x33d)][_0x15b6e8(0x517)](_0x384c85),this[_0x15b6e8(0x318)]['set'](_0x44a4c8,_0x384c85);}),v[_0x45be90(0x570)](this[_0x45be90(0x34b)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x45be90(0x3c6)]),this[_0x45be90(0x34b)][_0x45be90(0x1f9)](a[_0x45be90(0x31e)]['UNIVER_SHEET']))[_0x45be90(0x57c)](v[_0x45be90(0x585)](this['dispose$']))[_0x45be90(0x342)](_0x509def=>{const _0x373cc4=_0x45be90,_0x1ef80b=_0x509def['getUnitId'](),_0x4c7555=this[_0x373cc4(0x318)][_0x373cc4(0x3de)](_0x1ef80b);_0x4c7555&&(_0x4c7555[_0x373cc4(0x32b)](),this[_0x373cc4(0x318)][_0x373cc4(0x3c4)](_0x1ef80b));});}async[_0x3cc0f6(0x2ae)](_0x1a43ab){const _0x1a9125=_0x3cc0f6,_0x1cc169=await this[_0x1a9125(0x1fd)][_0x1a9125(0x57b)](_0x1a43ab),_0x110f2c=this['_injector']['createInstance'](Be,_0x1a43ab,_0x1cc169);return _0x110f2c[_0x1a9125(0x5d4)](),_0x110f2c;}async['_startDocCollabCursor'](_0x360e17){const _0x51da6a=_0x3cc0f6,_0x4518d4=await this[_0x51da6a(0x1fd)][_0x51da6a(0x57b)](_0x360e17),_0x1b8cd0=this['_injector']['createInstance'](ke,_0x360e17,_0x4518d4);return _0x1b8cd0[_0x51da6a(0x5d4)](),_0x1b8cd0;}};ae=di([Me(0x0,a[_0x3cc0f6(0x2f2)]),Me(0x1,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),Me(0x2,a['Inject'](exports[_0x3cc0f6(0x3c0)]))],ae);const Se=0x14,lt=0xc8,Ae=0x4,Si=0x5;function vi(_0xdd897d,_0x3a84c1){const _0x7988cb=_0x3cc0f6;let {radius:_0x2c3716,width:_0x5388b8,height:_0x1b3f8b}=_0x3a84c1;_0x2c3716=_0x2c3716!=null?_0x2c3716:0x0,_0x5388b8=_0x5388b8!=null?_0x5388b8:0x1e,_0x1b3f8b=_0x1b3f8b!=null?_0x1b3f8b:0x1e;let _0x374aa4=0x0,_0x354b04=0x0,_0x3a54c7=0x0;_0x374aa4=_0x354b04=_0x3a54c7=Math['min'](_0x2c3716,_0x5388b8/0x2,_0x1b3f8b/0x2),_0xdd897d[_0x7988cb(0x2e0)](),_0xdd897d['moveTo'](_0x374aa4,0x0),_0xdd897d[_0x7988cb(0x337)](_0x5388b8-_0x354b04,0x0),_0xdd897d['arc'](_0x5388b8-_0x354b04,_0x354b04,_0x354b04,Math['PI']*0x3/0x2,0x0,!0x1),_0xdd897d[_0x7988cb(0x337)](_0x5388b8,_0x1b3f8b-_0x3a54c7),_0xdd897d['arc'](_0x5388b8-_0x3a54c7,_0x1b3f8b-_0x3a54c7,_0x3a54c7,0x0,Math['PI']/0x2,!0x1),_0xdd897d['lineTo'](0x0,_0x1b3f8b),_0xdd897d[_0x7988cb(0x337)](0x0,_0x374aa4),_0xdd897d[_0x7988cb(0x328)](_0x374aa4,_0x374aa4,_0x374aa4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xdd897d[_0x7988cb(0x3af)](),_0x3a84c1[_0x7988cb(0x480)]&&(_0xdd897d[_0x7988cb(0x5b8)](),_0xdd897d[_0x7988cb(0x3bd)]=_0x3a84c1[_0x7988cb(0x480)],_0x3a84c1[_0x7988cb(0x25e)]===_0x7988cb(0x248)?_0xdd897d[_0x7988cb(0x480)](_0x7988cb(0x248)):_0xdd897d[_0x7988cb(0x480)](),_0xdd897d[_0x7988cb(0x569)]());}class De extends O['Shape']{constructor(_0x2ca18e,_0x1df52b){const _0x174269=_0x3cc0f6;super(_0x2ca18e,_0x1df52b),u(this,_0x174269(0x519)),u(this,_0x174269(0x26d)),(this[_0x174269(0x519)]=_0x1df52b==null?void 0x0:_0x1df52b[_0x174269(0x519)],this[_0x174269(0x26d)]=_0x1df52b==null?void 0x0:_0x1df52b[_0x174269(0x26d)]);}static[_0x3cc0f6(0x2f1)](_0xbca734,_0x11a682){const _0x441991=_0x3cc0f6,{text:_0x3d60bc,color:_0x50ade1}=_0x11a682;_0xbca734[_0x441991(0x5b8)](),_0xbca734['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x50c2cb=_0xbca734[_0x441991(0x298)](_0x3d60bc)['width'],_0x2bcd6b=Math[_0x441991(0x565)](_0x50c2cb+0x2*Ae,lt);vi(_0xbca734,{'height':Se,'radius':0x4,'width':_0x2bcd6b,'fill':_0x50ade1,'evented':!0x1}),_0xbca734[_0x441991(0x3bd)]=_0x441991(0x429);const _0x1619f0=Ae,_0xab15db=Se-Si,_0x43c13a=lt-0x2*Ae;if(_0x50c2cb>_0x43c13a){let _0x15468f='',_0x27d801=0x0;for(const _0x14d03c of _0x3d60bc){const _0x2f75f4=_0xbca734['measureText'](_0x14d03c)[_0x441991(0x368)];if(_0x27d801+_0x2f75f4<=_0x43c13a-_0xbca734[_0x441991(0x298)]('...')[_0x441991(0x368)])_0x15468f+=_0x14d03c,_0x27d801+=_0x2f75f4;else{_0x15468f+='...';break;}}_0xbca734['fillText'](_0x15468f,_0x1619f0,_0xab15db);}else _0xbca734[_0x441991(0x3d9)](_0x3d60bc,_0x1619f0,_0xab15db);_0xbca734['restore']();}['_draw'](_0x42a3fb){De['drawWith'](_0x42a3fb,this);}}const Le='collab-text-anchor-',mi=_0x3cc0f6(0x310),gi=_0x3cc0f6(0x5a8),he=0x6,fi=1.5,$e=0x4,Ii=1.5,pi=_0x3cc0f6(0x331);class ht{constructor(_0x9cc904,_0x4902c0,_0x8179d0,_0x2a2a53){const _0xe9f7a5=_0x3cc0f6;u(this,_0xe9f7a5(0x4f3),[]),u(this,'_anchor',null),u(this,'_textBubble',null),u(this,_0xe9f7a5(0x29f),null),u(this,'_hideTimer',null),u(this,_0xe9f7a5(0x452),null),(this[_0xe9f7a5(0x3b5)]=_0x9cc904,this[_0xe9f7a5(0x1ea)]=_0x4902c0,this[_0xe9f7a5(0x532)]=_0x8179d0,this[_0xe9f7a5(0x5b2)]=_0x2a2a53,this[_0xe9f7a5(0x4ff)]());}set[_0x3cc0f6(0x46c)](_0x4abdab){const _0x3dce5c=_0x3cc0f6;_0x4abdab?(this['_anchorDot']&&this[_0x3dce5c(0x29f)][_0x3dce5c(0x210)](),this[_0x3dce5c(0x5c7)]&&this['_textBubble'][_0x3dce5c(0x438)]()):(this[_0x3dce5c(0x29f)]&&this['_anchorDot'][_0x3dce5c(0x438)](),this[_0x3dce5c(0x5c7)]&&this[_0x3dce5c(0x5c7)]['hide']());}[_0x3cc0f6(0x32b)](){const _0x19c032=_0x3cc0f6;for(const _0x1d3e88 of this[_0x19c032(0x4f3)])_0x1d3e88[_0x19c032(0x32b)]();this['_textBubble']&&this[_0x19c032(0x5c7)][_0x19c032(0x32b)](),this[_0x19c032(0x29f)]&&this['_anchorDot'][_0x19c032(0x32b)](),this['_anchor']&&this[_0x19c032(0x30c)]['dispose'](),this[_0x19c032(0x452)]&&this[_0x19c032(0x452)]();}[_0x3cc0f6(0x4ff)](){const _0x37ae1c=_0x3cc0f6;var _0x3fbbb1;const {_docSkeleton:_0x109f47,_document:_0xac3abc}=this,{color:_0x6dffe6,name:_0x4f1d56,ranges:_0x20825a}=this[_0x37ae1c(0x3b5)],_0x2f124c=_0xac3abc['getOffsetConfig'](),{docsLeft:_0x30806b,docsTop:_0x335477}=_0x2f124c,_0x5319e4=new N[(_0x37ae1c(0x26f))](_0x2f124c,_0x109f47);for(const {startOffset:_0x2e4eef,endOffset:_0x283816,rangeType:_0x2e8b4c,segmentId:_0x492485,segmentPage:_0x3cf6d3,collapsed:_0x84172f,isActive:_0x7f9afd}of _0x20825a){const _0x3e8a59=_0x109f47['findNodePositionByCharIndex'](_0x2e4eef,!0x0,_0x492485,_0x3cf6d3);let _0x90431f=_0x109f47[_0x37ae1c(0x1de)](_0x283816,!0x0,_0x492485,_0x3cf6d3);if(_0x90431f==null&&(_0x90431f=_0x109f47['findNodePositionByCharIndex'](_0x283816-0x1,!0x1,_0x492485,_0x3cf6d3)),_0x7f9afd){const {contentBoxPointGroup:_0x33853e}=_0x5319e4[_0x37ae1c(0x1d7)](_0x90431f,_0x90431f);if(_0x33853e[_0x37ae1c(0x411)]===0x0)continue;this[_0x37ae1c(0x572)](_0x6dffe6,_0x33853e,_0x30806b,_0x335477,_0x4f1d56),this[_0x37ae1c(0x452)]=this[_0x37ae1c(0x315)]();}if(!_0x84172f&&_0x3e8a59&&_0x90431f){if(_0x2e8b4c===a[_0x37ae1c(0x45f)][_0x37ae1c(0x51b)]){const _0xf2c1ee=new N[(_0x37ae1c(0x42e))](_0x2f124c,_0x109f47),{pointGroup:_0x1505d6}=(_0x3fbbb1=_0xf2c1ee['getRangePointData'](_0x3e8a59,_0x90431f))!=null?_0x3fbbb1:{};if(_0x1505d6==null||_0x1505d6[_0x37ae1c(0x411)]===0x0)continue;this['_drawRectRange'](_0x6dffe6,_0x1505d6,_0x30806b,_0x335477);}else{const {borderBoxPointGroup:_0x35b62c}=_0x5319e4[_0x37ae1c(0x1d7)](_0x3e8a59,_0x90431f);if(_0x35b62c[_0x37ae1c(0x411)]===0x0)continue;this[_0x37ae1c(0x1d1)](_0x6dffe6,_0x35b62c,_0x30806b,_0x335477);}}}}[_0x3cc0f6(0x572)](_0xac8f89,_0x9433dc,_0x52fb0e,_0x30eb2b,_0x221b87){const _0x470503=_0x3cc0f6,_0x1b4ef2=this[_0x470503(0x4b6)](_0x9433dc),{left:_0x1f9d1b,top:_0x2b31d5,height:_0x27bb25}=_0x1b4ef2,_0x164f65=this[_0x470503(0x595)](),_0x195141=Ii/_0x164f65,_0x3ae930=new O['Rect'](Le+a[_0x470503(0x241)][_0x470503(0x256)](he),{'left':_0x1f9d1b+_0x52fb0e-_0x195141,'top':_0x2b31d5+_0x30eb2b,'height':_0x27bb25,'width':fi,'fill':_0xac8f89||O[_0x470503(0x472)](a[_0x470503(0x551)][_0x470503(0x507)],0x0),'strokeWidth':_0x195141,'stroke':pi,'evented':!0x0});this['_anchor']=_0x3ae930,this[_0x470503(0x1ea)][_0x470503(0x32a)](_0x3ae930,N[_0x470503(0x239)]);const _0x4eaef8=new O['Rect'](Le+a[_0x470503(0x241)][_0x470503(0x256)](he),{'left':_0x1f9d1b+_0x52fb0e-_0x195141,'top':_0x2b31d5+_0x30eb2b-$e/0x2,'height':$e,'width':$e,'fill':_0xac8f89||O[_0x470503(0x472)](a[_0x470503(0x551)][_0x470503(0x507)],0x0),'strokeWidth':0x0,'stroke':_0xac8f89||O['getColor'](a[_0x470503(0x551)][_0x470503(0x507)],0x0),'evented':!0x1});this[_0x470503(0x29f)]=_0x4eaef8,this[_0x470503(0x1ea)][_0x470503(0x32a)](_0x4eaef8,N['TEXT_RANGE_LAYER_INDEX']);const _0x320434=new De(Le+a[_0x470503(0x241)][_0x470503(0x256)](he),{'left':_0x1f9d1b+_0x52fb0e-_0x195141,'top':_0x2b31d5+_0x30eb2b-Se,'text':_0x221b87,'color':_0xac8f89});this[_0x470503(0x5c7)]=_0x320434,this['_scene']['addObject'](_0x320434,N[_0x470503(0x239)]),this[_0x470503(0x46c)]=!0x1;}[_0x3cc0f6(0x315)](){const _0x6a9c2b=_0x3cc0f6,_0x449043=this[_0x6a9c2b(0x30c)]['onPointerEnter$'][_0x6a9c2b(0x432)](()=>{const _0x4ea04c=_0x6a9c2b;this[_0x4ea04c(0x46c)]=!0x0;}),_0x2f2b8d=this[_0x6a9c2b(0x30c)][_0x6a9c2b(0x462)][_0x6a9c2b(0x432)](()=>{const _0x4ddb6f=_0x6a9c2b;this[_0x4ddb6f(0x433)]&&clearTimeout(this[_0x4ddb6f(0x433)]),this[_0x4ddb6f(0x433)]=setTimeout(()=>{const _0x529526=_0x4ddb6f;this[_0x529526(0x46c)]=!0x1;},0x7d0);});return()=>{const _0x48193f=_0x6a9c2b;_0x449043['unsubscribe'](),_0x2f2b8d[_0x48193f(0x5ad)]();};}['_drawTextRange'](_0x5ea4b1,_0x2f657b,_0xae3496,_0x24c053){const _0x4268d4=_0x3cc0f6,_0x1c4c18=new a[(_0x4268d4(0x3a1))](_0x5ea4b1)[_0x4268d4(0x2ea)](0.2)['toRgbString'](),_0x52e129=new O['RegularPolygon'](mi+a[_0x4268d4(0x241)][_0x4268d4(0x256)](he),{'pointsGroup':_0x2f657b,'fill':_0x1c4c18||O[_0x4268d4(0x472)](a[_0x4268d4(0x551)]['black'],0.2),'left':_0xae3496,'top':_0x24c053,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4268d4(0x430)](_0x52e129),this[_0x4268d4(0x1ea)][_0x4268d4(0x32a)](_0x52e129,N[_0x4268d4(0x239)]);}[_0x3cc0f6(0x38c)](_0x544064,_0x195eb9,_0x47b8cc,_0x46bb6d){const _0x43685a=_0x3cc0f6,_0x5d7c77=new a[(_0x43685a(0x3a1))](_0x544064)['setAlpha'](0.2)[_0x43685a(0x50e)](),_0x39b872=new O[(_0x43685a(0x406))](gi+a[_0x43685a(0x241)][_0x43685a(0x256)](he),{'pointsGroup':_0x195eb9,'fill':_0x5d7c77||O[_0x43685a(0x472)](a['COLORS'][_0x43685a(0x507)],0.2),'left':_0x47b8cc,'top':_0x46bb6d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x43685a(0x4f3)]['push'](_0x39b872),this['_scene'][_0x43685a(0x32a)](_0x39b872,N[_0x43685a(0x239)]);}[_0x3cc0f6(0x4b6)](_0x5dc569){const _0x1cfc07=_0x5dc569[0x0],_0x526c5f=_0x1cfc07[0x0],_0x21b48f=_0x1cfc07[0x2],{x:_0x23f0cc,y:_0x4d136d}=_0x526c5f,{x:_0x1a3e67,y:_0x659046}=_0x21b48f;return{'left':_0x23f0cc,'top':_0x4d136d,'width':_0x1a3e67-_0x23f0cc,'height':_0x659046-_0x4d136d};}['_getScale'](){const _0x43267d=_0x3cc0f6,{scaleX:_0x3d900c,scaleY:_0x1e6c12}=this[_0x43267d(0x1ea)][_0x43267d(0x235)]();return Math['max'](_0x3d900c,_0x1e6c12);}}var Ci=Object['defineProperty'],Ei=Object['getOwnPropertyDescriptor'],bi=(_0x429003,_0x9ec3af,_0x5e55b9,_0x48f0c4)=>{const _0x5506af=_0x3cc0f6;for(var _0x40d2ae=_0x48f0c4>0x1?void 0x0:_0x48f0c4?Ei(_0x9ec3af,_0x5e55b9):_0x9ec3af,_0x321a7f=_0x429003[_0x5506af(0x411)]-0x1,_0x5bbe47;_0x321a7f>=0x0;_0x321a7f--)(_0x5bbe47=_0x429003[_0x321a7f])&&(_0x40d2ae=(_0x48f0c4?_0x5bbe47(_0x9ec3af,_0x5e55b9,_0x40d2ae):_0x5bbe47(_0x40d2ae))||_0x40d2ae);return _0x48f0c4&&_0x40d2ae&&Ci(_0x9ec3af,_0x5e55b9,_0x40d2ae),_0x40d2ae;},me=(_0x43d424,_0x34c12b)=>(_0x1c695f,_0x5c99b7)=>_0x34c12b(_0x1c695f,_0x5c99b7,_0x43d424);let Ve=class extends a['RxDisposable']{constructor(_0x5bccd6,_0x57e61,_0x1487aa,_0x19f7b0,_0x40279a){const _0x31199a=_0x3cc0f6;super(),u(this,_0x31199a(0x2f3),[]),u(this,_0x31199a(0x296),[]),(this[_0x31199a(0x52c)]=_0x5bccd6,this[_0x31199a(0x38e)]=_0x57e61,this[_0x31199a(0x49a)]=_0x1487aa,this[_0x31199a(0x495)]=_0x19f7b0,this[_0x31199a(0x42d)]=_0x40279a,this[_0x31199a(0x53a)]());}['_init'](){const _0xdb44d5=_0x3cc0f6,_0x27d040=this[_0xdb44d5(0x52c)][_0xdb44d5(0x3e7)],_0x28e801=this[_0xdb44d5(0x38e)];this[_0xdb44d5(0x217)](v[_0xdb44d5(0x276)]([this['_collabCursorController'][_0xdb44d5(0x444)](_0x27d040),this[_0xdb44d5(0x42d)][_0xdb44d5(0x563)]])[_0xdb44d5(0x57c)](E[_0xdb44d5(0x282)](([_0x9b9e6b,_0x548678])=>({'skeleton':_0x28e801['getSkeleton'](),'cursors':[..._0x9b9e6b[_0xdb44d5(0x2f6)]()][_0xdb44d5(0x52a)](_0x103f5d=>({..._0x103f5d,'color':_0x548678[_0x103f5d[_0xdb44d5(0x519)]]}))})))[_0xdb44d5(0x342)](_0x15c7ce=>{const _0x148d69=_0xdb44d5;if(this[_0x148d69(0x5dc)](),_0x15c7ce){const {skeleton:_0x2a4f8e,cursors:_0x114063}=_0x15c7ce;this[_0x148d69(0x557)](_0x2a4f8e,_0x114063);}})),this[_0xdb44d5(0x294)](),this[_0xdb44d5(0x243)]();}[_0x3cc0f6(0x557)](_0x1699a8,_0x5bd30f){const _0x598ee4=_0x3cc0f6,{scene:_0x13c3e2,mainComponent:_0x1e2ea7}=this[_0x598ee4(0x52c)],_0x468788=_0x5bd30f[_0x598ee4(0x282)](_0xe5b532=>new ht(_0xe5b532,_0x13c3e2,_0x1699a8,_0x1e2ea7));this[_0x598ee4(0x2f3)]=_0x468788,this[_0x598ee4(0x296)]=_0x5bd30f;}[_0x3cc0f6(0x3e1)](){const _0xc679f4=_0x3cc0f6;this['_removeCollabCursors']();const {scene:_0x4c242b,mainComponent:_0x3e039f}=this[_0xc679f4(0x52c)],_0x2472ae=this[_0xc679f4(0x38e)][_0xc679f4(0x4cf)](),_0x3a43aa=this[_0xc679f4(0x296)][_0xc679f4(0x282)](_0x103bf8=>new ht(_0x103bf8,_0x4c242b,_0x2472ae,_0x3e039f));this[_0xc679f4(0x2f3)]=_0x3a43aa;}[_0x3cc0f6(0x5dc)](){const _0x4c1ca6=_0x3cc0f6;this[_0x4c1ca6(0x2f3)]['forEach'](_0x476584=>_0x476584[_0x4c1ca6(0x32b)]()),this[_0x4c1ca6(0x2f3)]=[];}['_initCommandExecutedListener'](){const _0x2208a7=_0x3cc0f6,_0x3ad792=[N['SetDocZoomRatioOperation']['id']];this[_0x2208a7(0x217)](this[_0x2208a7(0x495)][_0x2208a7(0x26e)](_0x1cb1d8=>{const _0x18a2dc=_0x2208a7;_0x3ad792[_0x18a2dc(0x2b1)](_0x1cb1d8['id'])&&_0x1cb1d8[_0x18a2dc(0x3f2)]['unitId']===this['_context']['unitId']&&this[_0x18a2dc(0x3e1)]();}));}[_0x3cc0f6(0x294)](){const _0x495789=_0x3cc0f6;this[_0x495789(0x217)](a[_0x495789(0x4b5)](this[_0x495789(0x52c)][_0x495789(0x51e)][_0x495789(0x249)])['pipe'](E[_0x495789(0x545)](_0x57a43c=>_0x57a43c[_0x495789(0x523)]===O[_0x495789(0x529)]['resize']),E[_0x495789(0x5cb)](0x10))[_0x495789(0x342)](()=>{const _0x125352=_0x495789;this[_0x125352(0x3e1)]();}));}};Ve=bi([me(0x1,a[_0x3cc0f6(0x573)](re[_0x3cc0f6(0x522)])),me(0x2,a['Inject'](ae)),me(0x3,a['ICommandService']),me(0x4,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x3b3)]))],Ve);const Ti=0x1,Ri=1.5;class Nt extends O[_0x3cc0f6(0x2d9)]{constructor(_0x585f96,_0x3d4df3){const _0x50a57e=_0x3cc0f6;super(_0x585f96,_0x3d4df3),u(this,_0x50a57e(0x36d)),u(this,'_hovered',!0x1),u(this,'_range'),u(this,_0x50a57e(0x4b1),''),u(this,_0x50a57e(0x446),_0x50a57e(0x4c2)),u(this,'_backgroundColor'),(_0x3d4df3&&this[_0x50a57e(0x423)](_0x3d4df3),this[_0x50a57e(0x49b)][_0x50a57e(0x432)](()=>this[_0x50a57e(0x423)]({'hovered':!0x0})),this['onPointerLeave$'][_0x50a57e(0x432)](()=>this[_0x50a57e(0x423)]({'hovered':!0x1})));}['setShapeProps'](_0x175475){const _0x1f1636=_0x3cc0f6;var _0xad83fb,_0x167b44,_0x43fc1c,_0x399552,_0x13ed17,_0x11c7e0;this[_0x1f1636(0x36d)]=(_0xad83fb=_0x175475[_0x1f1636(0x519)])!=null?_0xad83fb:this[_0x1f1636(0x36d)],this[_0x1f1636(0x20b)]=(_0x167b44=_0x175475[_0x1f1636(0x3e0)])!=null?_0x167b44:this[_0x1f1636(0x20b)],this[_0x1f1636(0x3a8)]=(_0x43fc1c=_0x175475['range'])!=null?_0x43fc1c:this[_0x1f1636(0x3a8)],this[_0x1f1636(0x4b1)]=(_0x399552=_0x175475[_0x1f1636(0x51a)])!=null?_0x399552:this[_0x1f1636(0x4b1)],this[_0x1f1636(0x446)]=(_0x13ed17=_0x175475['labelPosition'])!=null?_0x13ed17:this['_labelPosition'],this[_0x1f1636(0x4f4)]=(_0x11c7e0=_0x175475[_0x1f1636(0x232)])!=null?_0x11c7e0:this[_0x1f1636(0x4f4)],this[_0x1f1636(0x41b)]({'width':_0x175475[_0x1f1636(0x368)],'height':_0x175475[_0x1f1636(0x4be)]});}['onMouseMove'](_0x162130){const _0x4a3ba2=_0x3cc0f6,{row:_0x49f578,column:_0x40fdb4}=_0x162130;if(_0x49f578>=this['_range']['startRow']&&_0x49f578<=this['_range'][_0x4a3ba2(0x316)]&&_0x40fdb4>=this[_0x4a3ba2(0x3a8)][_0x4a3ba2(0x30f)]&&_0x40fdb4<=this[_0x4a3ba2(0x3a8)][_0x4a3ba2(0x378)]){this[_0x4a3ba2(0x423)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3cc0f6(0x1ff)](_0xfccdf){return!0x1;}['_draw'](_0xaf3856){const _0x547af7=_0x3cc0f6;O['Rect'][_0x547af7(0x2f1)](_0xaf3856,{'width':this['width'],'height':this[_0x547af7(0x4be)],'strokeWidth':Ri,'stroke':this[_0x547af7(0x36d)],'evented':!0x1,'fill':this[_0x547af7(0x4f4)]}),this['_hovered']&&(_0xaf3856[_0x547af7(0x5b8)](),_0xaf3856[_0x547af7(0x3bb)](0x1,0x0,0x0,0x1,this[_0x547af7(0x368)],this[_0x547af7(0x446)]==='bottom'?0x0:-Se),De[_0x547af7(0x2f1)](_0xaf3856,{'text':this[_0x547af7(0x4b1)],'color':this[_0x547af7(0x36d)]}),_0xaf3856['restore']());}}var Oi=Object[_0x3cc0f6(0x1c6)],Di=Object[_0x3cc0f6(0x544)],yi=(_0x3ad8cd,_0x284f1a,_0x153e0a,_0x575110)=>{for(var _0x37fc20=_0x575110>0x1?void 0x0:_0x575110?Di(_0x284f1a,_0x153e0a):_0x284f1a,_0x1c30c9=_0x3ad8cd['length']-0x1,_0x490a37;_0x1c30c9>=0x0;_0x1c30c9--)(_0x490a37=_0x3ad8cd[_0x1c30c9])&&(_0x37fc20=(_0x575110?_0x490a37(_0x284f1a,_0x153e0a,_0x37fc20):_0x490a37(_0x37fc20))||_0x37fc20);return _0x575110&&_0x37fc20&&Oi(_0x284f1a,_0x153e0a,_0x37fc20),_0x37fc20;},je=(_0x4c735e,_0x58481e)=>(_0x551a28,_0xa2f941)=>_0x58481e(_0x551a28,_0xa2f941,_0x4c735e);const Ui=0x1389;let We=class extends a['RxDisposable']{constructor(_0x40ce9a,_0x54900a,_0x144b30,_0x2e8627){const _0xe2da81=_0x3cc0f6;super(),u(this,'_cursors',new Set()),u(this,_0xe2da81(0x1c0),null),(this[_0xe2da81(0x52c)]=_0x40ce9a,this[_0xe2da81(0x467)]=_0x54900a,this[_0xe2da81(0x49a)]=_0x144b30,this[_0xe2da81(0x42d)]=_0x2e8627,this[_0xe2da81(0x53a)]());}['_init'](){const _0x3a5e58=_0x3cc0f6;this['_sheetSkeletonManagerService'][_0x3a5e58(0x2bd)]['pipe'](E[_0x3a5e58(0x585)](this['dispose$']),E['switchMap'](_0x416f21=>{const _0x1055e6=_0x3a5e58;if(_0x416f21){const _0x1d2c94=_0x416f21[_0x1055e6(0x350)];return v[_0x1055e6(0x276)](this[_0x1055e6(0x49a)][_0x1055e6(0x444)](this['_context']['unitId']),this['_themeService'][_0x1055e6(0x563)])[_0x1055e6(0x57c)](E[_0x1055e6(0x282)](([_0x322270,_0x5b0ae2])=>{const _0xd28d66=_0x1055e6,_0x5a4cb1=new Map();return _0x322270[_0xd28d66(0x300)]((_0x64d7a8,_0x58c241)=>{const _0x46aa59=_0xd28d66;if(_0x64d7a8[_0x46aa59(0x353)]===_0x1d2c94){const _0x5c28d3={..._0x64d7a8};_0x5c28d3[_0x46aa59(0x519)]=_0x5b0ae2[_0x64d7a8['color']],_0x5a4cb1[_0x46aa59(0x420)](_0x58c241,_0x5c28d3);}}),{'skeleton':_0x416f21,'cursors':_0x5a4cb1};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3694cd,cursors:_0x5ea0f0})=>{this['_removeCollabCursors'](),_0x3694cd&&this['_updateCollabCursors'](_0x3694cd,_0x5ea0f0);}),this[_0x3a5e58(0x467)]['currentSkeleton$'][_0x3a5e58(0x342)](_0x524f05=>{const _0xf78435=_0x3a5e58;if(_0x524f05==null)return;const {skeleton:_0x3600c0}=_0x524f05,{scene:_0x5785bb}=this[_0xf78435(0x52c)];_0x5785bb[_0xf78435(0x2be)][_0xf78435(0x432)](a[_0xf78435(0x50d)](_0x2cb4f1=>{const _0x2be90d=_0xf78435;var _0x6160f8,_0x43beae;const {offsetX:_0x2cb32d,offsetY:_0x4c6b08}=_0x2cb4f1,{x:_0x327f05,y:_0x3cb88a}=_0x5785bb[_0x2be90d(0x4a3)](O[_0x2be90d(0x333)]['FromArray']([_0x2cb32d,_0x4c6b08])),{scaleX:_0x37d02d,scaleY:_0x493a68}=_0x5785bb['getAncestorScale'](),_0x135dca=_0x5785bb[_0x2be90d(0x579)](ne[_0x2be90d(0x44f)][_0x2be90d(0x385)]),_0x12d656=_0x5785bb[_0x2be90d(0x5de)](O[_0x2be90d(0x333)][_0x2be90d(0x460)]([_0x327f05,_0x3cb88a]),_0x135dca),_0x11401a=_0x3600c0[_0x2be90d(0x399)](_0x2cb32d,_0x4c6b08,_0x37d02d,_0x493a68,_0x12d656);((_0x6160f8=this[_0x2be90d(0x1c0)])==null?void 0x0:_0x6160f8[_0x2be90d(0x2dd)])===_0x11401a[_0x2be90d(0x2dd)]&&((_0x43beae=this[_0x2be90d(0x1c0)])==null?void 0x0:_0x43beae[_0x2be90d(0x3a9)])===_0x11401a['row']||this[_0x2be90d(0x296)][_0x2be90d(0x300)](_0x1eadad=>{_0x1eadad['onMouseMove'](_0x11401a);});},0x64));});}['_updateCollabCursors'](_0x4cb192,_0xb98fd8){const _0x1539c0=_0x3cc0f6;var _0x473dbc;const _0x44f41e=(_0x473dbc=this[_0x1539c0(0x467)][_0x1539c0(0x34f)]())==null?void 0x0:_0x473dbc[_0x1539c0(0x5b3)];if(!_0x44f41e)return;const _0x3b95d1=this[_0x1539c0(0x2a0)]();if(!_0x3b95d1)return;this['_cursors'][_0x1539c0(0x300)](_0x11e603=>{const _0x327484=_0x1539c0;_0x11e603[_0x327484(0x272)]();});const {scene:_0x1685a1}=_0x3b95d1,_0x25c9ed=Pi(Array[_0x1539c0(0x5b7)](_0xb98fd8['values']()))['map'](_0xaf595f=>{const _0x705d04=_0x1539c0,{color:_0x4a0188,range:_0x3b192b,name:_0x1ead50,selection:_0x4d13b2,sheetID:_0x1b370f}=_0xaf595f,{startColumn:_0xe05685,startRow:_0x482dd0,endColumn:_0x35da34,endRow:_0x32ab68}=_0x3b192b,_0x27cde6=ne['getCoordByCell'](_0x482dd0,_0xe05685,_0x1685a1,_0x44f41e),_0x54b79c=ne[_0x705d04(0x263)](_0x32ab68,_0x35da34,_0x1685a1,_0x44f41e),{columnHeaderHeightAndMarginTop:_0x3c4be9}=_0x44f41e,{startX:_0x1ce933,startY:_0x32ae05}=_0x27cde6,{endX:_0x9c71a0,endY:_0x5d39a9}=_0x54b79c,_0x45b2e0=_0x9c71a0-_0x1ce933,_0x4e1e12=_0x5d39a9-_0x32ae05,_0x65d143={'labelPosition':_0x32ae05-_0x3c4be9>=Se?_0x705d04(0x4c2):_0x705d04(0x424),'sheetID':_0x1b370f,'range':_0x3b192b,'color':_0x4a0188,'name':_0x1ead50,'selection':_0x4d13b2,'left':_0x1ce933,'top':_0x32ae05,'width':_0x45b2e0,'height':_0x4e1e12,'evented':!0x1,'zIndex':Ui};return new Nt(_0x1ead50,_0x65d143);});_0x1685a1['addObjects'](_0x25c9ed,Ti),this[_0x1539c0(0x296)]=new Set(_0x25c9ed);}[_0x3cc0f6(0x5dc)](){const _0x429ae2=_0x3cc0f6;var _0x276e44;(_0x276e44=this[_0x429ae2(0x296)])==null||_0x276e44[_0x429ae2(0x300)](_0xeb249e=>_0xeb249e[_0x429ae2(0x32b)]());}[_0x3cc0f6(0x2a0)](){const _0x4c207b=_0x3cc0f6;return ne[_0x4c207b(0x413)](this[_0x4c207b(0x52c)]['unit'],this[_0x4c207b(0x52c)]);}};We=yi([je(0x1,a[_0x3cc0f6(0x573)](ne[_0x3cc0f6(0x56b)])),je(0x2,a[_0x3cc0f6(0x573)](ae)),je(0x3,a['Inject'](a[_0x3cc0f6(0x3b3)]))],We);function Pi(_0x583184){const _0x5fff16=_0x3cc0f6,_0x14a8ca=new Map();return _0x583184[_0x5fff16(0x300)](_0x3ce69b=>{const _0x5eb20f=_0x5fff16;if(_0x14a8ca[_0x5eb20f(0x2d0)](_0x3ce69b[_0x5eb20f(0x1ec)])){const _0x5b6ef9=_0x14a8ca[_0x5eb20f(0x3de)](_0x3ce69b[_0x5eb20f(0x1ec)]);_0x5b6ef9[_0x5eb20f(0x51a)]+=',\x20'+_0x3ce69b[_0x5eb20f(0x51a)];}else _0x14a8ca['set'](_0x3ce69b[_0x5eb20f(0x1ec)],_0x3ce69b);}),Array[_0x5fff16(0x5b7)](_0x14a8ca[_0x5fff16(0x2f6)]());}var M=function(){const _0x2f2229=_0x3cc0f6;return M=Object[_0x2f2229(0x403)]||function(_0xb2116f){const _0x3e12c4=_0x2f2229;for(var _0x1e24bb,_0x2ce950=0x1,_0x55942c=arguments[_0x3e12c4(0x411)];_0x2ce950<_0x55942c;_0x2ce950++){_0x1e24bb=arguments[_0x2ce950];for(var _0x4e18d8 in _0x1e24bb)Object[_0x3e12c4(0x22a)][_0x3e12c4(0x345)][_0x3e12c4(0x484)](_0x1e24bb,_0x4e18d8)&&(_0xb2116f[_0x4e18d8]=_0x1e24bb[_0x4e18d8]);}return _0xb2116f;},M['apply'](this,arguments);},wi=function(_0x412f19,_0xe05100){const _0x4d1465=_0x3cc0f6;var _0x2c4178={};for(var _0x1c36c6 in _0x412f19)Object[_0x4d1465(0x22a)]['hasOwnProperty'][_0x4d1465(0x484)](_0x412f19,_0x1c36c6)&&_0xe05100['indexOf'](_0x1c36c6)<0x0&&(_0x2c4178[_0x1c36c6]=_0x412f19[_0x1c36c6]);if(_0x412f19!=null&&typeof Object[_0x4d1465(0x377)]==_0x4d1465(0x32f)){for(var _0x517231=0x0,_0x1c36c6=Object[_0x4d1465(0x377)](_0x412f19);_0x517231<_0x1c36c6['length'];_0x517231++)_0xe05100[_0x4d1465(0x562)](_0x1c36c6[_0x517231])<0x0&&Object[_0x4d1465(0x22a)][_0x4d1465(0x4e1)][_0x4d1465(0x484)](_0x412f19,_0x1c36c6[_0x517231])&&(_0x2c4178[_0x1c36c6[_0x517231]]=_0x412f19[_0x1c36c6[_0x517231]]);}return _0x2c4178;},Ze=y[_0x3cc0f6(0x4b2)](function(_0x1aaf61,_0x30097e){const _0x2f936e=_0x3cc0f6;var _0x1ccfcf=_0x1aaf61[_0x2f936e(0x5db)],_0x3d3954=_0x1aaf61['id'],_0xfd452b=_0x1aaf61[_0x2f936e(0x323)],_0x15ca61=_0x1aaf61[_0x2f936e(0x510)],_0x4bc28b=wi(_0x1aaf61,['icon','id',_0x2f936e(0x323),_0x2f936e(0x510)]),_0x1c9537=_0x2f936e(0x212)[_0x2f936e(0x2c4)](_0x3d3954,'\x20')[_0x2f936e(0x2c4)](_0xfd452b||'')['trim'](),_0x49ba6c=y[_0x2f936e(0x553)]('_'['concat'](Ai()));return Mt(_0x1ccfcf,''[_0x2f936e(0x2c4)](_0x3d3954),{'defIds':_0x1ccfcf['defIds'],'idSuffix':_0x49ba6c[_0x2f936e(0x481)]},M({'ref':_0x30097e,'className':_0x1c9537},_0x4bc28b),_0x15ca61);});function Mt(_0x230df5,_0x21cf48,_0x11159b,_0xb68b26,_0x24cdd0){const _0x40c28f=_0x3cc0f6;return y[_0x40c28f(0x482)](_0x230df5['tag'],M(M({'key':_0x21cf48},Ni(_0x230df5,_0x11159b,_0x24cdd0)),_0xb68b26),(Mi(_0x230df5,_0x11159b)[_0x40c28f(0x216)]||[])[_0x40c28f(0x282)](function(_0xf6032,_0x5382d6){const _0xf6bc45=_0x40c28f;return Mt(_0xf6032,''[_0xf6bc45(0x2c4)](_0x21cf48,'-')[_0xf6bc45(0x2c4)](_0x230df5['tag'],'-')[_0xf6bc45(0x2c4)](_0x5382d6),_0x11159b,void 0x0,_0x24cdd0);}));}function Ni(_0x4863a2,_0x28630d,_0xd71eaa){const _0x36b454=_0x3cc0f6;var _0x448a18=M({},_0x4863a2[_0x36b454(0x35b)]);_0xd71eaa!=null&&_0xd71eaa['colorChannel1']&&_0x448a18[_0x36b454(0x480)]===_0x36b454(0x234)&&(_0x448a18['fill']=_0xd71eaa[_0x36b454(0x234)]);var _0xffea87=_0x28630d[_0x36b454(0x4c9)];return!_0xffea87||_0xffea87[_0x36b454(0x411)]===0x0||(_0x4863a2[_0x36b454(0x22e)]==='use'&&_0x448a18['xlink:href']&&(_0x448a18[_0x36b454(0x48a)]=_0x448a18[_0x36b454(0x48a)]+_0x28630d[_0x36b454(0x3d7)]),Object['entries'](_0x448a18)[_0x36b454(0x300)](function(_0x451597){const _0x5d0ab9=_0x36b454;var _0x156ea7=_0x451597[0x0],_0x4dcbf1=_0x451597[0x1];typeof _0x4dcbf1==_0x5d0ab9(0x3d4)&&(_0x448a18[_0x156ea7]=_0x4dcbf1['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5d0ab9(0x2c4)](_0x28630d['idSuffix'],')')));})),_0x448a18;}function Mi(_0xfc9545,_0x3b4e87){const _0x5e5e4e=_0x3cc0f6;var _0x1f1609,_0x41ea8a=_0x3b4e87['defIds'];return!_0x41ea8a||_0x41ea8a['length']===0x0?_0xfc9545:_0xfc9545['tag']===_0x5e5e4e(0x417)&&(!((_0x1f1609=_0xfc9545[_0x5e5e4e(0x216)])===null||_0x1f1609===void 0x0)&&_0x1f1609[_0x5e5e4e(0x411)])?M(M({},_0xfc9545),{'children':_0xfc9545[_0x5e5e4e(0x216)][_0x5e5e4e(0x282)](function(_0x2028ba){const _0x55e2f4=_0x5e5e4e;return typeof _0x2028ba[_0x55e2f4(0x35b)]['id']=='string'&&_0x41ea8a&&_0x41ea8a[_0x55e2f4(0x562)](_0x2028ba['attrs']['id'])>-0x1?M(M({},_0x2028ba),{'attrs':M(M({},_0x2028ba[_0x55e2f4(0x35b)]),{'id':_0x2028ba[_0x55e2f4(0x35b)]['id']+_0x3b4e87[_0x55e2f4(0x3d7)]})}):_0x2028ba;})}):_0xfc9545;}function Ai(){const _0x5ade05=_0x3cc0f6;return Math['random']()[_0x5ade05(0x39c)](0x24)[_0x5ade05(0x26a)](0x2,0x8);}Ze[_0x3cc0f6(0x412)]='UniverIcon';var Li={'tag':'svg','attrs':{'fill':'none','viewBox':_0x3cc0f6(0x57d),'width':_0x3cc0f6(0x2e9),'height':_0x3cc0f6(0x2e9)},'children':[{'tag':'g','attrs':{'clipPath':_0x3cc0f6(0x2c6)},'children':[{'tag':_0x3cc0f6(0x2bc),'attrs':{'stroke':_0x3cc0f6(0x244),'d':_0x3cc0f6(0x5da),'strokeLinecap':_0x3cc0f6(0x53e),'strokeLinejoin':_0x3cc0f6(0x53e),'strokeWidth':1.2}}]},{'tag':_0x3cc0f6(0x417),'attrs':{},'children':[{'tag':_0x3cc0f6(0x4b9),'attrs':{'id':_0x3cc0f6(0x23e)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x3cc0f6(0x53b)}}]}]}],'defIds':['off-line-single_clip0_910_343']},At=y[_0x3cc0f6(0x4b2)](function(_0x458397,_0x4e46af){const _0xf5169e=_0x3cc0f6;return y[_0xf5169e(0x482)](Ze,Object[_0xf5169e(0x403)]({},_0x458397,{'id':_0xf5169e(0x4de),'ref':_0x4e46af,'icon':Li}));});At[_0x3cc0f6(0x412)]=_0x3cc0f6(0x3d3);var $i={'tag':'svg','attrs':{'fill':_0x3cc0f6(0x2ad),'viewBox':'0\x200\x2017\x2016','width':_0x3cc0f6(0x2e9),'height':_0x3cc0f6(0x2e9)},'children':[{'tag':'g','attrs':{'clipPath':_0x3cc0f6(0x293)},'children':[{'tag':_0x3cc0f6(0x2bc),'attrs':{'stroke':'currentColor','d':_0x3cc0f6(0x2db),'strokeLinecap':'round','strokeLinejoin':_0x3cc0f6(0x53e),'strokeWidth':1.2}}]},{'tag':_0x3cc0f6(0x417),'attrs':{},'children':[{'tag':_0x3cc0f6(0x4b9),'attrs':{'id':_0x3cc0f6(0x3d8)},'children':[{'tag':_0x3cc0f6(0x2bc),'attrs':{'fill':_0x3cc0f6(0x4af),'d':_0x3cc0f6(0x53b),'transform':_0x3cc0f6(0x21d)}}]}]}],'defIds':[_0x3cc0f6(0x3d8)]},Lt=y['forwardRef'](function(_0x4b5179,_0x2c0d7e){const _0x4604be=_0x3cc0f6;return y[_0x4604be(0x482)](Ze,Object['assign']({},_0x4b5179,{'id':'on-line-single','ref':_0x2c0d7e,'icon':$i}));});Lt['displayName']='OnLineSingle';function $t(_0x5adbbc){const _0x36979c=_0x3cc0f6;var _0x3733c3,_0x34c25a,_0x3bde64='';if(typeof _0x5adbbc=='string'||typeof _0x5adbbc=='number')_0x3bde64+=_0x5adbbc;else{if(typeof _0x5adbbc=='object'){if(Array[_0x36979c(0x414)](_0x5adbbc)){var _0x2cb46e=_0x5adbbc['length'];for(_0x3733c3=0x0;_0x3733c3<_0x2cb46e;_0x3733c3++)_0x5adbbc[_0x3733c3]&&(_0x34c25a=$t(_0x5adbbc[_0x3733c3]))&&(_0x3bde64&&(_0x3bde64+='\x20'),_0x3bde64+=_0x34c25a);}else{for(_0x34c25a in _0x5adbbc)_0x5adbbc[_0x34c25a]&&(_0x3bde64&&(_0x3bde64+='\x20'),_0x3bde64+=_0x34c25a);}}}return _0x3bde64;}function ji(){const _0x2f0866=_0x3cc0f6;for(var _0x3563ed,_0x4e5083,_0x1d7e68=0x0,_0x3c57f4='',_0x7f1f50=arguments[_0x2f0866(0x411)];_0x1d7e68<_0x7f1f50;_0x1d7e68++)(_0x3563ed=arguments[_0x1d7e68])&&(_0x4e5083=$t(_0x3563ed))&&(_0x3c57f4&&(_0x3c57f4+='\x20'),_0x3c57f4+=_0x4e5083);return _0x3c57f4;}const Hi='univer-online-status-icon',xi=_0x3cc0f6(0x5c4),ki=_0x3cc0f6(0x257),Bi=_0x3cc0f6(0x1fe),Vi=_0x3cc0f6(0x5bb),_e={'onlineStatusIcon':Hi,'onlineStatusTitle':xi,'onlineStatus':ki,'online':Bi,'offline':Vi};function Wi(_0xc38c91){const _0x7a2e5d=_0x3cc0f6;switch(_0xc38c91){case D[_0x7a2e5d(0x50c)]:return _0x7a2e5d(0x4d8);case D[_0x7a2e5d(0x2c5)]:return _0x7a2e5d(0x3d0);case D['FETCH_MISS']:return _0x7a2e5d(0x363);case D[_0x7a2e5d(0x2b0)]:return _0x7a2e5d(0x586);case D[_0x7a2e5d(0x59c)]:case D[_0x7a2e5d(0x4e8)]:return _0x7a2e5d(0x4bb);case D[_0x7a2e5d(0x2d7)]:case D[_0x7a2e5d(0x3eb)]:return _0x7a2e5d(0x306);}}function jt(_0x58fa65){const _0x55c3c6=_0x3cc0f6,{status$:_0x49125b}=_0x58fa65,_0x3c84e6=A[_0x55c3c6(0x567)](_0x49125b,D['NOT_COLLAB']),_0x34a248=a['useDependency'](a[_0x55c3c6(0x2b9)]),_0x5cc26a=a[_0x55c3c6(0x456)](exports[_0x55c3c6(0x3c0)]),_0x94c77c=_0x3c84e6!==D[_0x55c3c6(0x50c)],_0x43a379=_0x34a248['t'](Wi(_0x3c84e6)),_0x212593=ji(_e[_0x55c3c6(0x4a7)],{[_e[_0x55c3c6(0x5c0)]]:_0x94c77c,[_e[_0x55c3c6(0x550)]]:!_0x94c77c}),_0x384346=_0x94c77c?y['createElement'](Lt,null):y[_0x55c3c6(0x482)](At,null),_0x4c97ac=y[_0x55c3c6(0x324)](()=>{const _0x587617=_0x55c3c6;_0x94c77c||_0x5cc26a[_0x587617(0x448)]();},[_0x94c77c,_0x5cc26a]);function _0x188123(){const _0xc379ac=_0x55c3c6;return y[_0xc379ac(0x482)](_0xc379ac(0x3b7),{'className':_0x212593,'onClick':_0x4c97ac},y[_0xc379ac(0x482)](_0xc379ac(0x3b7),{'className':_e[_0xc379ac(0x41e)]},_0x384346),y[_0xc379ac(0x482)](_0xc379ac(0x3b7),{'className':_e[_0xc379ac(0x3ed)]},_0x43a379));}return _0x94c77c?_0x188123():y[_0x55c3c6(0x482)](J[_0x55c3c6(0x59a)],{'title':_0x34a248['t'](_0x55c3c6(0x23c))},_0x188123());}var Fi=Object[_0x3cc0f6(0x1c6)],Gi=Object['getOwnPropertyDescriptor'],Yi=(_0x528d21,_0x3129c2,_0x5160db,_0x425df4)=>{const _0x1cfea6=_0x3cc0f6;for(var _0x42fd18=_0x425df4>0x1?void 0x0:_0x425df4?Gi(_0x3129c2,_0x5160db):_0x3129c2,_0x4e497a=_0x528d21[_0x1cfea6(0x411)]-0x1,_0x47ecac;_0x4e497a>=0x0;_0x4e497a--)(_0x47ecac=_0x528d21[_0x4e497a])&&(_0x42fd18=(_0x425df4?_0x47ecac(_0x3129c2,_0x5160db,_0x42fd18):_0x47ecac(_0x42fd18))||_0x42fd18);return _0x425df4&&_0x42fd18&&Fi(_0x3129c2,_0x5160db,_0x42fd18),_0x42fd18;},ge=(_0x3fbc08,_0x3b7f5f)=>(_0x1763a5,_0x421ca6)=>_0x3b7f5f(_0x1763a5,_0x421ca6,_0x3fbc08);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3cc0f6(0x31b)]{constructor(_0x3c518b,_0x30d8e2,_0x544cc2,_0x1488c2){const _0x1b8b19=_0x3cc0f6;super(),u(this,_0x1b8b19(0x4a2),new v['BehaviorSubject'](D['NOT_COLLAB'])),(this['_univerInstanceService']=_0x3c518b,this[_0x1b8b19(0x514)]=_0x30d8e2,this[_0x1b8b19(0x5ba)]=_0x544cc2,this[_0x1b8b19(0x3ee)]=_0x1488c2,this['_initStatusComponent'](),this[_0x1b8b19(0x5a3)]());}[_0x3cc0f6(0x5a3)](){const _0x2454f5=_0x3cc0f6;this['disposeWithMe'](this[_0x2454f5(0x34b)][_0x2454f5(0x1e6)]['pipe'](v[_0x2454f5(0x4d4)](()=>{const _0x957419=_0x2454f5,_0x57ff29=this['_univerInstanceService']['getFocusedUnit']();return _0x57ff29?this[_0x957419(0x3ee)][_0x957419(0x2a9)](_0x57ff29[_0x957419(0x527)]()):v['of'](null);}),v[_0x2454f5(0x4d4)](_0x7c9480=>_0x7c9480?_0x7c9480[_0x2454f5(0x40f)]:v['of'](D[_0x2454f5(0x2b0)])))[_0x2454f5(0x342)](_0x5e27f6=>{const _0x4640ae=_0x2454f5;this['_status$'][_0x4640ae(0x517)](_0x5e27f6);}));}[_0x3cc0f6(0x52b)](){const _0x4a6130=_0x3cc0f6;this[_0x4a6130(0x217)](this[_0x4a6130(0x514)][_0x4a6130(0x536)](A[_0x4a6130(0x4cd)][_0x4a6130(0x391)],()=>a[_0x4a6130(0x2fb)](Ki({'status$':this[_0x4a6130(0x4a2)][_0x4a6130(0x459)]()}),this[_0x4a6130(0x5ba)])));}},exports['DesktopCollaborationStatusDisplayController']=Yi([ge(0x0,a[_0x3cc0f6(0x2f2)]),ge(0x1,A['IUIPartsService']),ge(0x2,a[_0x3cc0f6(0x573)](a['Injector'])),ge(0x3,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x3fc)]))],exports[_0x3cc0f6(0x2de)]);function Ki(_0x1c298e){const {status$:_0x4cb8c8}=_0x1c298e;return function(){const _0x43fcc5=_0x10ac;return y[_0x43fcc5(0x482)](jt,{'status$':_0x4cb8c8});};}const Qe=a['createIdentifier'](_0x3cc0f6(0x280));var Xi=Object[_0x3cc0f6(0x1c6)],qi=Object[_0x3cc0f6(0x544)],zi=(_0x3c5659,_0x26b706,_0x324d0a,_0x5e30d8)=>{const _0x3df1ed=_0x3cc0f6;for(var _0x185fc7=_0x5e30d8>0x1?void 0x0:_0x5e30d8?qi(_0x26b706,_0x324d0a):_0x26b706,_0x269bcc=_0x3c5659[_0x3df1ed(0x411)]-0x1,_0x35fd4d;_0x269bcc>=0x0;_0x269bcc--)(_0x35fd4d=_0x3c5659[_0x269bcc])&&(_0x185fc7=(_0x5e30d8?_0x35fd4d(_0x26b706,_0x324d0a,_0x185fc7):_0x35fd4d(_0x185fc7))||_0x185fc7);return _0x5e30d8&&_0x185fc7&&Xi(_0x26b706,_0x324d0a,_0x185fc7),_0x185fc7;},ie=(_0x4d27e6,_0x3682a2)=>(_0x276f32,_0x1bddca)=>_0x3682a2(_0x276f32,_0x1bddca,_0x4d27e6);exports[_0x3cc0f6(0x5d5)]=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x403d8a,_0x186a64,_0x5f15a3,_0x59ce14,_0x2f3199,_0x5da009){const _0x1bcb30=_0x3cc0f6;super(),this['_urlService']=_0x403d8a,this[_0x1bcb30(0x518)]=_0x186a64,this[_0x1bcb30(0x495)]=_0x5f15a3,this[_0x1bcb30(0x1e8)]=_0x59ce14,this[_0x1bcb30(0x470)]=_0x2f3199,_0x5da009?_0x5da009==null||_0x5da009[_0x1bcb30(0x559)]()[_0x1bcb30(0x25f)](()=>this[_0x1bcb30(0x53a)]()):(this[_0x1bcb30(0x518)][_0x1bcb30(0x2cc)](_0x1bcb30(0x447),_0x1bcb30(0x25c)),this[_0x1bcb30(0x53a)]());}async['_init'](){const _0xf6bf61=_0x3cc0f6,_0x3a879a=this[_0xf6bf61(0x4ae)]['getParam']('unit'),_0x510e7f=this[_0xf6bf61(0x4ae)][_0xf6bf61(0x5d9)]('type');if(!_0x3a879a||!_0x510e7f){this[_0xf6bf61(0x518)][_0xf6bf61(0x2cc)](_0xf6bf61(0x447),_0xf6bf61(0x5ca));return;}switch(Number(_0x510e7f)){case H[_0xf6bf61(0x336)]:{const _0x55b87b=await this['_loadSheet'](_0x3a879a);this['_setupSubUnitSync'](_0x55b87b);break;}case H['UNIVER_DOC']:{await this[_0xf6bf61(0x582)](_0x3a879a);break;}default:{this[_0xf6bf61(0x518)][_0xf6bf61(0x2c9)](_0xf6bf61(0x447),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x3cc0f6(0x348)](_0xebee5f){const _0xea3410=_0x3cc0f6;await this['_updateSubUnitFromURLParams'](_0xebee5f),_0xebee5f[_0xea3410(0x361)]['pipe'](v[_0xea3410(0x585)](this['dispose$']))[_0xea3410(0x342)](_0x52c2b7=>{_0x52c2b7&&this['_updateURLWithCurrentState'](_0x52c2b7);}),this[_0xea3410(0x4ae)]['urlChange$']['pipe'](v['takeUntil'](this['dispose$']))['subscribe'](()=>this[_0xea3410(0x1e3)](_0xebee5f));}[_0x3cc0f6(0x33e)](_0x5e3508,_0x18c0e8=!0x1){const _0x503fe2=_0x3cc0f6,_0xd0158c=this['_urlService'][_0x503fe2(0x5d9)](_0x503fe2(0x4ac));_0x5e3508[_0x503fe2(0x255)]()!==_0xd0158c&&this[_0x503fe2(0x4ae)][_0x503fe2(0x20f)](_0x503fe2(0x4ac),_0x5e3508[_0x503fe2(0x255)](),_0x18c0e8);}async[_0x3cc0f6(0x1e3)](_0x372386){const _0xc2e552=_0x3cc0f6;var _0x427a8b;const _0x27dda4=this['_urlService'][_0xc2e552(0x5d9)](_0xc2e552(0x4ac));if(!_0x27dda4||!_0x372386[_0xc2e552(0x23d)](_0x27dda4)){const _0x5ddba9=_0x372386[_0xc2e552(0x233)]()[0x0],_0x1884b4=_0x372386[_0xc2e552(0x23d)](_0x5ddba9);if(!_0x1884b4)return;this[_0xc2e552(0x33e)](_0x1884b4,!0x0),await this[_0xc2e552(0x495)][_0xc2e552(0x427)](C[_0xc2e552(0x485)]['id'],{'unitId':_0x372386[_0xc2e552(0x527)](),'subUnitId':_0x5ddba9});return;}((_0x427a8b=_0x372386[_0xc2e552(0x57f)]())==null?void 0x0:_0x427a8b['getSheetId']())!==_0x27dda4&&await this['_commandService']['executeCommand'](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x372386[_0xc2e552(0x527)](),'subUnitId':_0x27dda4});}async[_0x3cc0f6(0x214)](_0x4f8008){const _0x37fb87=_0x3cc0f6;let _0x181e0e=0x0;const _0x2126bc=await this[_0x37fb87(0x1e8)]['loadOfflineData'](_0x4f8008);return _0x2126bc&&(_0x2126bc[_0x37fb87(0x455)]||_0x2126bc['mutations'][_0x37fb87(0x411)]!==0x0)&&(_0x181e0e=_0x2126bc[_0x37fb87(0x20c)]),_0x181e0e===0x0&&this['_logService'][_0x37fb87(0x2cc)](_0x37fb87(0x447),_0x37fb87(0x5b1)),this[_0x37fb87(0x470)]['loadSheet'](_0x4f8008,_0x181e0e);}async[_0x3cc0f6(0x582)](_0x29b73a){const _0xca3ebb=_0x3cc0f6;let _0x2d9138=0x0;const _0x45502a=await this[_0xca3ebb(0x1e8)][_0xca3ebb(0x40e)](_0x29b73a);return _0x45502a&&(_0x45502a[_0xca3ebb(0x455)]||_0x45502a['mutations'][_0xca3ebb(0x411)]!==0x0)&&(_0x2d9138=_0x45502a['rev']),_0x2d9138===0x0&&this[_0xca3ebb(0x518)]['debug']('[DataLoaderController]',_0xca3ebb(0x5b1)),this[_0xca3ebb(0x470)]['loadDoc'](_0x29b73a,_0x2d9138);}},exports[_0x3cc0f6(0x5d5)]=zi([ie(0x0,Qe),ie(0x1,a['ILogService']),ie(0x2,a['ICommandService']),ie(0x3,a['Inject'](exports[_0x3cc0f6(0x1f8)])),ie(0x4,a[_0x3cc0f6(0x573)](_['SnapshotService'])),ie(0x5,a[_0x3cc0f6(0x273)](qt['IRemoteInstanceService']))],exports[_0x3cc0f6(0x5d5)]);var Ji=Object[_0x3cc0f6(0x1c6)],Zi=Object[_0x3cc0f6(0x544)],Qi=(_0x10efc1,_0x583309,_0x5b566a,_0x4d2f80)=>{const _0x35895c=_0x3cc0f6;for(var _0x31750a=_0x4d2f80>0x1?void 0x0:_0x4d2f80?Zi(_0x583309,_0x5b566a):_0x583309,_0x58df5c=_0x10efc1[_0x35895c(0x411)]-0x1,_0xd6ac70;_0x58df5c>=0x0;_0x58df5c--)(_0xd6ac70=_0x10efc1[_0x58df5c])&&(_0x31750a=(_0x4d2f80?_0xd6ac70(_0x583309,_0x5b566a,_0x31750a):_0xd6ac70(_0x31750a))||_0x31750a);return _0x4d2f80&&_0x31750a&&Ji(_0x583309,_0x5b566a,_0x31750a),_0x31750a;},_t=(_0x4d412f,_0x268000)=>(_0x43c1b8,_0x3aec76)=>_0x268000(_0x43c1b8,_0x3aec76,_0x4d412f);const en='DEFAULT_FILE_NAME',tn=_0x3cc0f6(0x384);let Ee=class extends a['Disposable']{constructor(_0x4cab24,_0x3414ca){const _0x565384=_0x3cc0f6;super(),this[_0x565384(0x34b)]=_0x4cab24,this[_0x565384(0x5e0)]=_0x3414ca,this[_0x565384(0x53a)]();}['_init'](){const _0x2d7aa2=_0x3cc0f6;this[_0x2d7aa2(0x217)](this['_univerInstanceService'][_0x2d7aa2(0x1e6)][_0x2d7aa2(0x342)](()=>{const _0x41dd76=_0x2d7aa2;var _0x53bb7b;const _0x5f3b4a=this[_0x41dd76(0x34b)]['getFocusedUnit']();let _0x56e3ab=(_0x53bb7b=this['_configService'][_0x41dd76(0x458)](en))!=null?_0x53bb7b:tn;_0x5f3b4a instanceof a['Workbook']&&(_0x56e3ab=_0x5f3b4a[_0x41dd76(0x51a)]),document[_0x41dd76(0x40a)]=_0x56e3ab;}));}};Ee=Qi([_t(0x0,a[_0x3cc0f6(0x2f2)]),_t(0x1,a[_0x3cc0f6(0x5d3)])],Ee);var sn=Object[_0x3cc0f6(0x1c6)],nn=Object['getOwnPropertyDescriptor'],rn=(_0xdb53fc,_0x24f92b,_0xd30fb,_0x17e1a6)=>{const _0x251798=_0x3cc0f6;for(var _0x2df00e=_0x17e1a6>0x1?void 0x0:_0x17e1a6?nn(_0x24f92b,_0xd30fb):_0x24f92b,_0x56dfe4=_0xdb53fc[_0x251798(0x411)]-0x1,_0x5aafab;_0x56dfe4>=0x0;_0x56dfe4--)(_0x5aafab=_0xdb53fc[_0x56dfe4])&&(_0x2df00e=(_0x17e1a6?_0x5aafab(_0x24f92b,_0xd30fb,_0x2df00e):_0x5aafab(_0x2df00e))||_0x2df00e);return _0x17e1a6&&_0x2df00e&&sn(_0x24f92b,_0xd30fb,_0x2df00e),_0x2df00e;},He=(_0x2ff74b,_0x5a6e2f)=>(_0x2884b6,_0x4c8501)=>_0x5a6e2f(_0x2884b6,_0x4c8501,_0x2ff74b);let be=class{constructor(_0x16099f,_0x1dbfce,_0x11b69d){const _0x4e59c2=_0x3cc0f6;this[_0x4e59c2(0x5e0)]=_0x16099f,this['_httpService']=_0x1dbfce,this['localeService']=_0x11b69d,this['init']();}[_0x3cc0f6(0x5d4)](){const _0x29343a=_0x3cc0f6;this[_0x29343a(0x1fa)][_0x29343a(0x5e1)]({'priority':0x1,'interceptor':(_0x45f799,_0x5e9754)=>_0x5e9754(_0x45f799)[_0x29343a(0x57c)](v[_0x29343a(0x25d)](async _0x2fbc64=>{const _0x58ce6f=_0x29343a,_0x19b6ad=_0x2fbc64;if(_0x19b6ad['status']===0x191&&window[_0x58ce6f(0x44e)](this[_0x58ce6f(0x287)]['t'](_0x58ce6f(0x264)))){const _0x120411=window[_0x58ce6f(0x465)](window[_0x58ce6f(0x46b)][_0x58ce6f(0x2ca)]);window[_0x58ce6f(0x46b)][_0x58ce6f(0x2ca)]=this[_0x58ce6f(0x48e)]()+_0x58ce6f(0x5e7)+_0x120411;}return _0x19b6ad;}))});}[_0x3cc0f6(0x48e)](){const _0x4fcdd1=_0x3cc0f6;var _0x16578c,_0x539897;const _0x5a6a7a=this[_0x4fcdd1(0x5e0)][_0x4fcdd1(0x458)](Et),_0x559f22=this[_0x4fcdd1(0x5e0)][_0x4fcdd1(0x458)]($);return(_0x539897=(_0x16578c=_0x559f22==null?void 0x0:_0x559f22[_0x4fcdd1(0x5e4)])!=null?_0x16578c:_0x5a6a7a)!=null?_0x539897:os;}};be=rn([He(0x0,a[_0x3cc0f6(0x5d3)]),He(0x1,a[_0x3cc0f6(0x573)](U[_0x3cc0f6(0x43f)])),He(0x2,a['Inject'](a[_0x3cc0f6(0x2b9)]))],be);var on=Object[_0x3cc0f6(0x1c6)],an=Object[_0x3cc0f6(0x544)],cn=(_0x786a20,_0x44b833,_0xb9a837,_0x4a2676)=>{const _0x5bd7c4=_0x3cc0f6;for(var _0xd19bc8=_0x4a2676>0x1?void 0x0:_0x4a2676?an(_0x44b833,_0xb9a837):_0x44b833,_0x30913f=_0x786a20[_0x5bd7c4(0x411)]-0x1,_0x5c8be4;_0x30913f>=0x0;_0x30913f--)(_0x5c8be4=_0x786a20[_0x30913f])&&(_0xd19bc8=(_0x4a2676?_0x5c8be4(_0x44b833,_0xb9a837,_0xd19bc8):_0x5c8be4(_0xd19bc8))||_0xd19bc8);return _0x4a2676&&_0xd19bc8&&on(_0x44b833,_0xb9a837,_0xd19bc8),_0xd19bc8;},ut=(_0x2b0df0,_0x3be348)=>(_0x4368e6,_0xcda43a)=>_0x3be348(_0x4368e6,_0xcda43a,_0x2b0df0);function _0x10ac(_0x58514f,_0x46c815){const _0x48f69f=_0x48f6();return _0x10ac=function(_0x10acb7,_0x520dff){_0x10acb7=_0x10acb7-0x1bc;let _0x108654=_0x48f69f[_0x10acb7];return _0x108654;},_0x10ac(_0x58514f,_0x46c815);}const Ht=_0x3cc0f6(0x2e8),ln=_0x3cc0f6(0x4b8);exports[_0x3cc0f6(0x583)]=class extends a[_0x3cc0f6(0x31b)]{constructor(_0x187923,_0x137e3f){const _0x44e667=_0x3cc0f6;super(),this[_0x44e667(0x5c9)]=_0x187923,this['_configService']=_0x137e3f,this[_0x44e667(0x2a4)]();}['_initMergeInterceptor'](){const _0x2b4572=_0x3cc0f6,_0x4bf7fc=this;this[_0x2b4572(0x217)](this[_0x2b4572(0x5c9)][_0x2b4572(0x5e1)]({'priority':0x3e7,'interceptor':U[_0x2b4572(0x3cc)]({'isMatch'(_0x21f8e0){const _0x51ed07=_0x2b4572;var _0x8bda15;if(_0x21f8e0['method']===_0x51ed07(0x27a)&&((_0x8bda15=_0x21f8e0[_0x51ed07(0x297)])!=null&&_0x8bda15[_0x51ed07(0x267)])){const {objectID:_0x5bfe2f,objectType:_0x5d92ac}=_0x21f8e0[_0x51ed07(0x297)][_0x51ed07(0x267)]||{};if(!_0x5bfe2f||_0x5d92ac===void 0x0)return!0x1;const _0x3f738e=_0x4bf7fc[_0x51ed07(0x2f7)]()+'/'+_0x5d92ac+_0x51ed07(0x55f)+_0x5bfe2f+'/allowed';if(_0x21f8e0[_0x51ed07(0x1c1)]===_0x3f738e)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x546ee1){const _0x37145f=_0x2b4572;var _0x4c8087;return(_0x4c8087=_0x546ee1['requestParams'])==null?void 0x0:_0x4c8087[_0x37145f(0x267)];},'mergeParamsToRequest'(_0x56b946,_0x596fef){const _0x51452f=_0x2b4572,_0xb9e06a=_0x4bf7fc[_0x51452f(0x2f7)]()+_0x51452f(0x32d),_0x3ea4f2=_0x56b946[_0x51452f(0x508)]((_0x1984e6,_0x4248f7)=>{const _0x3c93a5=_0x51452f,{unitID:_0x1df3a7,objectID:_0xff8a9c,objectType:_0xef599,actions:_0x36f569}=_0x4248f7;return _0x1984e6[_0x1df3a7]||(_0x1984e6[_0x1df3a7]={}),_0x1984e6[_0x1df3a7][_0xff8a9c]||(_0x1984e6[_0x1df3a7][_0xff8a9c]={'objectID':_0xff8a9c,'objectType':_0xef599,'actions':[]}),_0x1984e6[_0x1df3a7][_0xff8a9c][_0x3c93a5(0x419)][_0x3c93a5(0x430)](..._0x36f569),_0x1984e6;},{}),_0x2985ef=[];for(const _0x43a61a in _0x3ea4f2)for(const _0x471817 in _0x3ea4f2[_0x43a61a]){const {actions:_0x33cf7a,objectType:_0x59e808}=_0x3ea4f2[_0x43a61a][_0x471817],_0x3b114b=[...new Set(_0x33cf7a)];_0x2985ef[_0x51452f(0x430)]({'unitID':_0x43a61a,'objectID':_0x471817,'objectType':_0x59e808,'actions':_0x3b114b});}return new U['HTTPRequest'](_0x51452f(0x27a),_0xb9e06a,{'headers':_0x596fef[_0x51452f(0x367)],'withCredentials':_0x596fef[_0x51452f(0x58a)],'responseType':_0x596fef['responseType'],'body':{'requests':_0x2985ef}});}},{'distributeResult'(_0x52d7e2,_0x3c3b27){const _0x27ed42=_0x2b4572,{objectActions:_0x27ace2}=_0x52d7e2;return _0x3c3b27[_0x27ed42(0x282)](_0x2a096c=>{const _0x53d224=_0x27ed42,{unitID:_0x3391e2,objectID:_0x31204b,actions:_0x4cd2b7}=_0x2a096c,_0x149f9c=_0x27ace2['find'](_0x107f75=>_0x107f75[_0x53d224(0x426)]===_0x3391e2&&_0x107f75['objectID']===_0x31204b),_0x511ed3=_0x4cd2b7[_0x53d224(0x282)](_0x1285ec=>_0x149f9c==null?void 0x0:_0x149f9c['actions'][_0x53d224(0x4f8)](_0x182af5=>_0x182af5[_0x53d224(0x5c6)]===_0x1285ec))['filter'](_0x489674=>!!_0x489674);return{'config':_0x2a096c,'result':{'actions':_0x511ed3,'error':_0x52d7e2[_0x53d224(0x2c9)]}};});}})}));}[_0x3cc0f6(0x2f7)](){const _0x136063=_0x3cc0f6;var _0x441f6b,_0x4ed96e;const _0x183fee=this[_0x136063(0x5e0)][_0x136063(0x458)](Ht),_0x3e343e=this[_0x136063(0x5e0)][_0x136063(0x458)]($);return(_0x4ed96e=(_0x441f6b=_0x3e343e==null?void 0x0:_0x3e343e['authzUrl'])!=null?_0x441f6b:_0x183fee)!=null?_0x4ed96e:ln;}async[_0x3cc0f6(0x376)](_0x61b6b1){const _0x27fef8=_0x3cc0f6,_0x47f1f6=this[_0x27fef8(0x2f7)]()+'/'+_0x61b6b1[_0x27fef8(0x57a)]+_0x27fef8(0x2da);return(await this[_0x27fef8(0x5c9)]['post'](_0x47f1f6,{'body':_0x61b6b1}))['body'][_0x27fef8(0x2e6)]||'';}async[_0x3cc0f6(0x554)](_0x1b0293){const _0x5f16ac=_0x3cc0f6,_0xc2c433=this[_0x5f16ac(0x2f7)]()+'/-/object/list';return(await this[_0x5f16ac(0x5c9)][_0x5f16ac(0x1f2)](_0xc2c433,{'body':_0x1b0293}))[_0x5f16ac(0x267)][_0x5f16ac(0x59b)];}async[_0x3cc0f6(0x4f9)](_0x1b2921){const _0x37d236=_0x3cc0f6,_0x5e3e16=this['_getAPIPrefixPath']()+'/'+_0x1b2921[_0x37d236(0x57a)]+_0x37d236(0x55f)+_0x1b2921[_0x37d236(0x2e6)];await this['_HTTPService'][_0x37d236(0x3ac)](_0x5e3e16,{'body':_0x1b2921});}async[_0x3cc0f6(0x4cc)](_0x29eba1){const _0x25f24a=_0x3cc0f6,_0x3027fd=this['_getAPIPrefixPath']()+'/'+_0x29eba1['objectType']+_0x25f24a(0x55f)+_0x29eba1[_0x25f24a(0x2e6)]+'/allowed';return(await this['_HTTPService'][_0x25f24a(0x1f2)](_0x3027fd,{'body':_0x29eba1}))[_0x25f24a(0x267)][_0x25f24a(0x419)];}async[_0x3cc0f6(0x2c0)](_0x49fbeb){const _0x31b058=_0x3cc0f6,_0x5e232b=this[_0x31b058(0x2f7)]()+_0x31b058(0x32d);return(await this[_0x31b058(0x5c9)][_0x31b058(0x1f2)](_0x5e232b,{'body':{'requests':_0x49fbeb}}))[_0x31b058(0x267)][_0x31b058(0x443)];}async[_0x3cc0f6(0x25a)](_0x25783f){const _0x391177=_0x3cc0f6,_0x2b4492=this[_0x391177(0x2f7)]()+'/'+_0x25783f[_0x391177(0x57a)]+_0x391177(0x498),_0x3d5266=await this[_0x391177(0x5c9)][_0x391177(0x1f2)](_0x2b4492,{'body':_0x25783f});return{'roles':_0x3d5266['body']['roles'],'actions':_0x3d5266['body'][_0x391177(0x419)]};}async[_0x3cc0f6(0x47a)](_0x3ced35){const _0x5e224f=_0x3cc0f6,_0x411468=this[_0x5e224f(0x2f7)]()+_0x5e224f(0x49e);await this['_HTTPService'][_0x5e224f(0x3c4)](_0x411468,{'params':{'collaboratorID':_0x3ced35['collaboratorID'],'objectID':_0x3ced35['objectID'],'unitID':_0x3ced35[_0x5e224f(0x426)]}});}async['updateCollaborator'](_0x50f381){const _0x1ec1f3=_0x3cc0f6,_0x34abd3=this[_0x1ec1f3(0x2f7)]()+_0x1ec1f3(0x49e);await this['_HTTPService'][_0x1ec1f3(0x4d9)](_0x34abd3,{'body':_0x50f381});}async[_0x3cc0f6(0x526)](_0x42e392){const _0xacaee9=_0x3cc0f6,_0x151f1f=this[_0xacaee9(0x2f7)]()+_0xacaee9(0x49e);await this[_0xacaee9(0x5c9)][_0xacaee9(0x1f2)](_0x151f1f,{'body':_0x42e392});}async['listCollaborators'](_0x40a46c){const _0x5937b3=_0x3cc0f6,_0x2635e9=this[_0x5937b3(0x2f7)]()+_0x5937b3(0x49e);return(await this[_0x5937b3(0x5c9)][_0x5937b3(0x3de)](_0x2635e9,{'params':{'objectID':_0x40a46c[_0x5937b3(0x2e6)],'unitID':_0x40a46c['unitID']}}))[_0x5937b3(0x267)]['collaborators'];}async['putCollaborators'](_0x36a0ee){const _0x45a0e4=_0x3cc0f6,_0x183094=this[_0x45a0e4(0x2f7)]()+_0x45a0e4(0x49e);await this[_0x45a0e4(0x5c9)][_0x45a0e4(0x3ac)](_0x183094,{'body':_0x36a0ee});}},exports['AuthzIoHttpService']=cn([ut(0x0,a['Inject'](U[_0x3cc0f6(0x43f)])),ut(0x1,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5d3)]))],exports[_0x3cc0f6(0x583)]);var hn=Object[_0x3cc0f6(0x1c6)],_n=Object[_0x3cc0f6(0x544)],un=(_0x43171c,_0x536ce7,_0x3d2dd2,_0x196221)=>{const _0x299bba=_0x3cc0f6;for(var _0x403cb0=_0x196221>0x1?void 0x0:_0x196221?_n(_0x536ce7,_0x3d2dd2):_0x536ce7,_0x3fe88c=_0x43171c[_0x299bba(0x411)]-0x1,_0x114707;_0x3fe88c>=0x0;_0x3fe88c--)(_0x114707=_0x43171c[_0x3fe88c])&&(_0x403cb0=(_0x196221?_0x114707(_0x536ce7,_0x3d2dd2,_0x403cb0):_0x114707(_0x403cb0))||_0x403cb0);return _0x196221&&_0x403cb0&&hn(_0x536ce7,_0x3d2dd2,_0x403cb0),_0x403cb0;},dn=(_0x4e3a3e,_0x1ba931)=>(_0x273e9c,_0xe81dc1)=>_0x1ba931(_0x273e9c,_0xe81dc1,_0x4e3a3e);let Te=class{constructor(_0x1f1f72){const _0x7891ac=_0x3cc0f6;this[_0x7891ac(0x1fa)]=_0x1f1f72,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x52d32c=_0x3cc0f6;this[_0x52d32c(0x1fa)][_0x52d32c(0x5e1)]({'interceptor':(_0xd50168,_0x155300)=>{const _0x3737bb=_0x52d32c,_0x1ec651=_0xd50168[_0x3737bb(0x367)],_0x10d5fb=zt[_0x3737bb(0x4b7)]();return _0x10d5fb&&_0x1ec651[_0x3737bb(0x420)]('x-univer-host',_0x10d5fb),_0x155300(_0xd50168);}});}};Te=un([dn(0x0,a['Inject'](U[_0x3cc0f6(0x43f)]))],Te);var Sn=Object[_0x3cc0f6(0x1c6)],vn=Object[_0x3cc0f6(0x544)],mn=(_0x4aa689,_0x1ed2ec,_0x15dd62,_0x557e6a)=>{const _0x5c58d8=_0x3cc0f6;for(var _0x53f52a=_0x557e6a>0x1?void 0x0:_0x557e6a?vn(_0x1ed2ec,_0x15dd62):_0x1ed2ec,_0x20d7e0=_0x4aa689[_0x5c58d8(0x411)]-0x1,_0xefd53;_0x20d7e0>=0x0;_0x20d7e0--)(_0xefd53=_0x4aa689[_0x20d7e0])&&(_0x53f52a=(_0x557e6a?_0xefd53(_0x1ed2ec,_0x15dd62,_0x53f52a):_0xefd53(_0x53f52a))||_0x53f52a);return _0x557e6a&&_0x53f52a&&Sn(_0x1ed2ec,_0x15dd62,_0x53f52a),_0x53f52a;},xe=(_0x3d0259,_0x578b01)=>(_0x1ea691,_0x29629c)=>_0x578b01(_0x1ea691,_0x29629c,_0x3d0259);const gn=['image/png',_0x3cc0f6(0x1c7),_0x3cc0f6(0x591),_0x3cc0f6(0x3ca),_0x3cc0f6(0x28e)],fn=0x5*0x400*0x400,In=_0x3cc0f6(0x387),pn=_0x3cc0f6(0x34c),Cn=_0x3cc0f6(0x51c),En=_0x3cc0f6(0x5e2);exports['ImageIoService']=class{constructor(_0x414dd7,_0x169a07,_0x4b6d53){const _0x545492=_0x3cc0f6;u(this,'_waitCount',0x0),u(this,_0x545492(0x228),new v[(_0x545492(0x2c3))]()),u(this,'change$',this[_0x545492(0x228)]),u(this,'_imageSourceCache',new Map()),(this[_0x545492(0x1fa)]=_0x414dd7,this['_configService']=_0x169a07,this[_0x545492(0x34b)]=_0x4b6d53);}[_0x3cc0f6(0x44a)](_0x972b47){const _0x2ef89c=_0x3cc0f6;this[_0x2ef89c(0x590)]=_0x972b47,this[_0x2ef89c(0x228)][_0x2ef89c(0x517)](_0x972b47);}[_0x3cc0f6(0x3ae)](_0x2595a9,_0x53f538){const _0x33ad5c=_0x3cc0f6;if(_0x53f538===j[_0x33ad5c(0x45b)]['BASE64']){const _0x29d8d9=new Image();return _0x29d8d9['src']=_0x2595a9,_0x29d8d9;}return this['_imageSourceCache'][_0x33ad5c(0x3de)](_0x2595a9);}[_0x3cc0f6(0x2a3)](_0x34c504,_0x4c6571,_0x3f041b){const _0x4cf813=_0x3cc0f6;_0x4c6571===j[_0x4cf813(0x45b)][_0x4cf813(0x576)]||_0x3f041b==null||this[_0x4cf813(0x28f)][_0x4cf813(0x420)](_0x34c504,_0x3f041b);}async[_0x3cc0f6(0x47c)](_0x130b2c){const _0x364956=_0x3cc0f6;try{const _0x25462a=this[_0x364956(0x42f)](this[_0x364956(0x24c)](),''+_0x130b2c),_0x4f1ecc=(await this[_0x364956(0x1fa)]['get'](_0x25462a))[_0x364956(0x267)];if(_0x4f1ecc[_0x364956(0x2c9)]&&_0x4f1ecc[_0x364956(0x2c9)][_0x364956(0x5bf)]===bt['OK']){const _0x295bd4=new URL(_0x4f1ecc['url'],this['_getDownloadEndpointURL']())['toString']();return Promise[_0x364956(0x35d)](_0x295bd4);}return Promise[_0x364956(0x577)](_0x4f1ecc['error']);}catch(_0x1ab66f){return Promise[_0x364956(0x577)](_0x1ab66f);}}async['saveImage'](_0x23e91d){const _0x39ef10=_0x3cc0f6;let _0x7a6542='';if(!gn[_0x39ef10(0x2b1)](_0x23e91d['type']))return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x1e4)]));if(_0x23e91d[_0x39ef10(0x437)]>fn)return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x5af)]));try{const _0x22740e=new FormData();_0x22740e[_0x39ef10(0x4aa)](_0x39ef10(0x513),_0x23e91d);const _0x18c7b3=this[_0x39ef10(0x34b)][_0x39ef10(0x434)](),_0x47bd8f=_0x18c7b3==null?void 0x0:_0x18c7b3[_0x39ef10(0x527)]();if(!_0x47bd8f)throw new Error(_0x39ef10(0x23a));const _0x4da987=this[_0x39ef10(0x352)]()+'?size='+_0x23e91d[_0x39ef10(0x437)][_0x39ef10(0x39c)]()+'&source='+Tt[_0x39ef10(0x43c)]+_0x39ef10(0x1d9)+encodeURIComponent(_0x47bd8f),_0x3efcdb=await(await fetch(_0x4da987,{'method':'POST','body':_0x22740e}))[_0x39ef10(0x520)]();if(typeof _0x3efcdb[_0x39ef10(0x21c)]!=_0x39ef10(0x3d4))return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x3be)]));_0x7a6542=_0x3efcdb[_0x39ef10(0x21c)];}catch{return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x3be)]));}return new Promise((_0x1a6550,_0x1644b1)=>{const _0x38cd9b=_0x39ef10,_0x36ccf8=new FileReader();_0x36ccf8[_0x38cd9b(0x4ed)](_0x23e91d),_0x36ccf8[_0x38cd9b(0x4bc)]=_0xd32086=>{const _0x219378=_0x38cd9b;var _0x28d095;const _0x4c57c2=(_0x28d095=_0xd32086[_0x219378(0x5be)])==null?void 0x0:_0x28d095[_0x219378(0x2f8)];if(_0x4c57c2==null){this[_0x219378(0x55b)](),_0x1644b1(new Error(j[_0x219378(0x4a4)][_0x219378(0x3be)]));return;}const _0x4b53e7=a['Tools']['generateRandomId'](0x6);_0x1a6550({'imageId':_0x4b53e7,'imageSourceType':j['ImageSourceType'][_0x219378(0x1c4)],'source':_0x7a6542,'base64Cache':_0x4c57c2,'status':j[_0x219378(0x4a4)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x3cc0f6(0x352)](){const _0x21fbfb=_0x3cc0f6;var _0x10b7ea,_0x268902;const _0x4a193a=this[_0x21fbfb(0x5e0)][_0x21fbfb(0x458)](In),_0x349776=this['_configService'][_0x21fbfb(0x458)]($);return(_0x268902=(_0x10b7ea=_0x349776==null?void 0x0:_0x349776['uploadFileServerUrl'])!=null?_0x10b7ea:_0x4a193a)!=null?_0x268902:pn;}[_0x3cc0f6(0x24c)](){const _0x2e3ecc=_0x3cc0f6;var _0x4222ec,_0x2f39f5;const _0x4e7cfc=this[_0x2e3ecc(0x5e0)][_0x2e3ecc(0x458)](Cn),_0x47763c=this[_0x2e3ecc(0x5e0)]['getConfig']($);return(_0x2f39f5=(_0x4222ec=_0x47763c==null?void 0x0:_0x47763c['signUrlServerUrl'])!=null?_0x4222ec:_0x4e7cfc)!=null?_0x2f39f5:En;}['_getDownloadEndpointURL'](){const _0x57d969=_0x3cc0f6;var _0x250252;const _0x587394=this[_0x57d969(0x5e0)][_0x57d969(0x458)]($);return(_0x250252=_0x587394==null?void 0x0:_0x587394[_0x57d969(0x4d7)])!=null?_0x250252:location[_0x57d969(0x3da)];}[_0x3cc0f6(0x42f)](_0x36ae10,_0x5e8eeb){const _0x28e98a=_0x3cc0f6;return _0x36ae10[_0x28e98a(0x422)]('{fileID}',_0x5e8eeb);}[_0x3cc0f6(0x55b)](){const _0xa8f344=_0x3cc0f6;this[_0xa8f344(0x590)]-=0x1,this[_0xa8f344(0x228)]['next'](this['_waitCount']);}},exports[_0x3cc0f6(0x506)]=mn([xe(0x0,a['Inject'](U[_0x3cc0f6(0x43f)])),xe(0x1,a[_0x3cc0f6(0x5d3)]),xe(0x2,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2f2)]))],exports[_0x3cc0f6(0x506)]);var bn=Object[_0x3cc0f6(0x1c6)],Tn=Object[_0x3cc0f6(0x544)],Rn=(_0x8af7d4,_0x395bd4,_0xa7d9f5,_0xfcce42)=>{const _0x15bee8=_0x3cc0f6;for(var _0x2e488e=_0xfcce42>0x1?void 0x0:_0xfcce42?Tn(_0x395bd4,_0xa7d9f5):_0x395bd4,_0x2978f2=_0x8af7d4[_0x15bee8(0x411)]-0x1,_0x4a38bb;_0x2978f2>=0x0;_0x2978f2--)(_0x4a38bb=_0x8af7d4[_0x2978f2])&&(_0x2e488e=(_0xfcce42?_0x4a38bb(_0x395bd4,_0xa7d9f5,_0x2e488e):_0x4a38bb(_0x2e488e))||_0x2e488e);return _0xfcce42&&_0x2e488e&&bn(_0x395bd4,_0xa7d9f5,_0x2e488e),_0x2e488e;},ue=(_0x4332dd,_0x540730)=>(_0x3346f,_0x211a76)=>_0x540730(_0x3346f,_0x211a76,_0x4332dd);let Re=class extends a['RxDisposable']{constructor(_0x27a129,_0x3eca74,_0x558474,_0x2dec7e,_0x130005){const _0x5ddb1d=_0x3cc0f6;super(),this[_0x5ddb1d(0x5ba)]=_0x27a129,this[_0x5ddb1d(0x34b)]=_0x3eca74,this['_permissionService']=_0x558474,this['_collaborationSessionService']=_0x2dec7e,this['_localeService']=_0x130005,this[_0x5ddb1d(0x346)](),this[_0x5ddb1d(0x1f5)]();}[_0x3cc0f6(0x1f5)](){const _0x1c21fa=_0x3cc0f6,_0xbbdd40=async _0x3c601f=>{const _0x2bf0e2=_0x10ac;(await this[_0x2bf0e2(0x548)][_0x2bf0e2(0x57b)](_0x3c601f))[_0x2bf0e2(0x574)]['pipe'](E['filter'](_0x2b3bad=>_0x2b3bad[_0x2bf0e2(0x21b)]===_[_0x2bf0e2(0x400)][_0x2bf0e2(0x2f5)]),E[_0x2bf0e2(0x585)](this[_0x2bf0e2(0x38b)]))[_0x2bf0e2(0x342)](_0x34add6=>{const _0xb89eec=_0x2bf0e2,_0x5cc33b=_0x34add6,{reason:_0x15fe91}=_0x5cc33b[_0xb89eec(0x35a)];this[_0xb89eec(0x5ba)]['get'](A[_0xb89eec(0x2af)])['show']({'type':J[_0xb89eec(0x2ce)]['Error'],'content':this[_0xb89eec(0x36b)]['t'](_0xb89eec(0x34d))+'('+_0x15fe91+')'}),this[_0xb89eec(0x1dd)][_0xb89eec(0x4f2)](new C[(_0xb89eec(0x289))](_0x3c601f)['id'],!0x1),this[_0xb89eec(0x548)][_0xb89eec(0x362)](_0x3c601f);});};v[_0x1c21fa(0x570)](this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x1c21fa(0x31e)][_0x1c21fa(0x336)]),this[_0x1c21fa(0x34b)][_0x1c21fa(0x541)](a[_0x1c21fa(0x31e)][_0x1c21fa(0x3c6)]))[_0x1c21fa(0x57c)](E['map'](_0x366541=>_0x366541[_0x1c21fa(0x527)]()),E[_0x1c21fa(0x545)](_0x3839ff=>!a[_0x1c21fa(0x55c)](_0x3839ff)),E['takeUntil'](this[_0x1c21fa(0x38b)]))['subscribe'](_0x3a779b=>{_0xbbdd40(_0x3a779b);});}[_0x3cc0f6(0x346)](){const _0x5b515d=_0x3cc0f6,_0x5edff7=async _0x1fd620=>{const _0x4e4737=_0x10ac;(await this[_0x4e4737(0x548)][_0x4e4737(0x57b)](_0x1fd620))['event$']['pipe'](E['filter'](_0x5eae22=>_0x5eae22['eventID']===_[_0x4e4737(0x400)][_0x4e4737(0x1d8)]),E[_0x4e4737(0x585)](this[_0x4e4737(0x38b)]))['subscribe'](_0x4d7131=>{const _0x3619ff=_0x4e4737,_0x4c4866=_0x4d7131,{objectId:_0x180e15}=_0x4c4866[_0x3619ff(0x35a)],_0x177f7e=this[_0x3619ff(0x5ba)]['get'](ne['SheetPermissionInitController']);_0x180e15===_0x1fd620?_0x177f7e[_0x3619ff(0x52d)](_0x1fd620):_0x177f7e[_0x3619ff(0x415)](_0x1fd620,_0x180e15);});};v[_0x5b515d(0x570)](this[_0x5b515d(0x34b)][_0x5b515d(0x541)](a[_0x5b515d(0x31e)]['UNIVER_SHEET']),this[_0x5b515d(0x34b)]['getTypeOfUnitAdded$'](a[_0x5b515d(0x31e)][_0x5b515d(0x3c6)]))[_0x5b515d(0x57c)](E['map'](_0x59c23d=>_0x59c23d[_0x5b515d(0x527)]()),E[_0x5b515d(0x545)](_0x101446=>!a[_0x5b515d(0x55c)](_0x101446)),E['takeUntil'](this[_0x5b515d(0x38b)]))[_0x5b515d(0x342)](_0x3ee82e=>{_0x5edff7(_0x3ee82e);});}};Re=Rn([ue(0x0,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),ue(0x1,a['IUniverInstanceService']),ue(0x2,a[_0x3cc0f6(0x27b)]),ue(0x3,a['Inject'](exports[_0x3cc0f6(0x3c0)])),ue(0x4,a['Inject'](a[_0x3cc0f6(0x2b9)]))],Re);var On=Object[_0x3cc0f6(0x1c6)],Dn=Object[_0x3cc0f6(0x544)],yn=(_0x1de764,_0x56501a,_0x156ff9,_0xec17c8)=>{for(var _0x10b675=_0xec17c8>0x1?void 0x0:_0xec17c8?Dn(_0x56501a,_0x156ff9):_0x56501a,_0xd8e642=_0x1de764['length']-0x1,_0x4fd8d0;_0xd8e642>=0x0;_0xd8e642--)(_0x4fd8d0=_0x1de764[_0xd8e642])&&(_0x10b675=(_0xec17c8?_0x4fd8d0(_0x56501a,_0x156ff9,_0x10b675):_0x4fd8d0(_0x10b675))||_0x10b675);return _0xec17c8&&_0x10b675&&On(_0x56501a,_0x156ff9,_0x10b675),_0x10b675;},dt=(_0x4f4dcc,_0x19b851)=>(_0x25eba2,_0x1f5fe3)=>_0x19b851(_0x25eba2,_0x1f5fe3,_0x4f4dcc);exports[_0x3cc0f6(0x47e)]=class{constructor(_0x49fba5,_0x52547f){const _0x4569c5=_0x3cc0f6;this['_configService']=_0x49fba5,this[_0x4569c5(0x1fa)]=_0x52547f;}async['getUnitOnRev'](_0x2713e8,_0x4150dd){const _0x5516e1=_0x3cc0f6;var _0x1e4d9c;const {unitID:_0x3b34db,type:_0x41477e,revision:_0x38a9dc=0x0}=_0x4150dd,_0x5a579f=this['_getSnapshotAPIPrefix']()+'/'+_0x41477e+_0x5516e1(0x3b4)+_0x3b34db+_0x5516e1(0x390)+_0x38a9dc,_0x37d951=(await this['_httpService']['get'](_0x5a579f))[_0x5516e1(0x267)],_0x192552=(_0x1e4d9c=_0x37d951[_0x5516e1(0x200)])==null?void 0x0:_0x1e4d9c['workbook'];if(_0x192552){const _0x5bc3f7=_0x192552==null?void 0x0:_0x192552[_0x5516e1(0x531)],_0x236c17=_[_0x5516e1(0x5a2)][_0x5516e1(0x4e3)](_[_0x5516e1(0x396)](_0x5bc3f7));_0x192552['originalMeta']=_0x236c17,Object['entries'](_0x192552['sheets'])[_0x5516e1(0x300)](([,_0x43c3ac])=>{const _0x1de87f=_0x5516e1,_0x40c8ce=_0x43c3ac[_0x1de87f(0x531)],_0x971f72=_[_0x1de87f(0x5a2)]['encode'](_[_0x1de87f(0x396)](_0x40c8ce));_0x43c3ac[_0x1de87f(0x531)]=_0x971f72;});}return _0x37d951;}async[_0x3cc0f6(0x203)](_0x1c4fe0,_0x31727e){const _0x5cc4e3=_0x3cc0f6,{unitID:_0x370ba4,type:_0x3f9459,blockID:_0x223c2c}=_0x31727e,_0x2983b7=this[_0x5cc4e3(0x380)]()+'/'+_0x3f9459+'/unit/'+_0x370ba4+_0x5cc4e3(0x251)+_0x223c2c;return(await this[_0x5cc4e3(0x1fa)]['get'](_0x2983b7))[_0x5cc4e3(0x267)];}async[_0x3cc0f6(0x24e)](_0x21b6c2,_0x21c21a){const _0x2ad39d=_0x3cc0f6,{unitID:_0xad0784,type:_0x10d533,blockID:_0x5e766c}=_0x21c21a,_0x41eb8b=this[_0x2ad39d(0x380)]()+_0x2ad39d(0x251)+_0x10d533+_0x2ad39d(0x3b4)+_0xad0784+_0x2ad39d(0x251)+_0x5e766c;return(await this[_0x2ad39d(0x1fa)][_0x2ad39d(0x3de)](_0x41eb8b))[_0x2ad39d(0x267)];}async['fetchMissingChangesets'](_0x263785,_0x2314e9){const _0x2ef4cb=_0x3cc0f6,{unitID:_0x1d9e51,type:_0x103422,from:_0x473edd,to:_0x53db36}=_0x2314e9,_0x172f1c=this[_0x2ef4cb(0x380)]()+'/'+_0x103422+'/unit/'+_0x1d9e51+'/fetchmissing?from='+_0x473edd+_0x2ef4cb(0x1cb)+_0x53db36;return(await this[_0x2ef4cb(0x1fa)][_0x2ef4cb(0x3de)](_0x172f1c))[_0x2ef4cb(0x267)];}[_0x3cc0f6(0x488)](){const _0x25f527=_0x3cc0f6;var _0x4e59b0;return(_0x4e59b0=this[_0x25f527(0x5e0)][_0x25f527(0x458)](vt))!=null?_0x4e59b0:this[_0x25f527(0x380)]();}[_0x3cc0f6(0x380)](){const _0x30b974=_0x3cc0f6;var _0x375101,_0x314f04;const _0x5db247=this[_0x30b974(0x5e0)][_0x30b974(0x458)](St),_0x324dbf=this[_0x30b974(0x5e0)]['getConfig']($);return(_0x314f04=(_0x375101=_0x324dbf==null?void 0x0:_0x324dbf[_0x30b974(0x28c)])!=null?_0x375101:_0x5db247)!=null?_0x314f04:Jt;}async[_0x3cc0f6(0x479)](_0xd6a43f,_0x3e6d2c){const _0x6f7935=_0x3cc0f6,_0xa3c973=_0x6f7935(0x207)+_0x3e6d2c[_0x6f7935(0x523)]+_0x6f7935(0x3b4)+_0x3e6d2c['unitID']+'/resources';return(await this[_0x6f7935(0x1fa)]['get'](_0xa3c973,{'params':{'resourceId':JSON[_0x6f7935(0x492)](_0x3e6d2c[_0x6f7935(0x347)])}}))[_0x6f7935(0x267)];}[_0x3cc0f6(0x4e4)](){const _0x594000=_0x3cc0f6;throw new Error(_0x594000(0x464));}[_0x3cc0f6(0x393)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3cc0f6(0x568)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x594b29=_0x3cc0f6;throw new Error(_0x594b29(0x464));}[_0x3cc0f6(0x3e5)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x3cc0f6(0x47e)]=yn([dt(0x0,a[_0x3cc0f6(0x5d3)]),dt(0x1,a['Inject'](U[_0x3cc0f6(0x43f)]))],exports['SnapshotServerOverHTTPService']);var Un=Object[_0x3cc0f6(0x1c6)],Pn=Object[_0x3cc0f6(0x544)],wn=(_0x295ee1,_0x33d5f5,_0x148300,_0x28f3ed)=>{const _0x54c601=_0x3cc0f6;for(var _0x38a33f=_0x28f3ed>0x1?void 0x0:_0x28f3ed?Pn(_0x33d5f5,_0x148300):_0x33d5f5,_0x4499ec=_0x295ee1[_0x54c601(0x411)]-0x1,_0x328931;_0x4499ec>=0x0;_0x4499ec--)(_0x328931=_0x295ee1[_0x4499ec])&&(_0x38a33f=(_0x28f3ed?_0x328931(_0x33d5f5,_0x148300,_0x38a33f):_0x328931(_0x38a33f))||_0x38a33f);return _0x28f3ed&&_0x38a33f&&Un(_0x33d5f5,_0x148300,_0x38a33f),_0x38a33f;},de=(_0x43878a,_0x3b1b93)=>(_0x16aa45,_0xe61f62)=>_0x3b1b93(_0x16aa45,_0xe61f62,_0x43878a);let Fe=class extends a[_0x3cc0f6(0x3f6)]{constructor(_0xe90148,_0x57bc1d,_0x54ead8,_0x55a8f6,_0xda7cf8){const _0x2316be=_0x3cc0f6;super(_0xe90148,_0x57bc1d,_0x54ead8),this[_0x2316be(0x5c3)]=_0x55a8f6,this[_0x2316be(0x518)]=_0xda7cf8;}['transformUndoRedo'](_0x52e41e,_0x2d347c){const _0x2629ac=_0x3cc0f6,_0x3951ef=this[_0x2629ac(0x41c)](_0x52e41e);if(_0x3951ef)try{const _0x1a7f24=this['_transformStack'](_0x3951ef,_0x2d347c);this[_0x2629ac(0x588)](_0x52e41e,_0x1a7f24);}catch(_0x15f947){this[_0x2629ac(0x518)][_0x2629ac(0x2c9)](_0x2629ac(0x4e9),_0x15f947),this[_0x2629ac(0x397)](_0x52e41e);}const _0x350bc8=this[_0x2629ac(0x218)](_0x52e41e);if(_0x350bc8)try{const _0x56c13f=this[_0x2629ac(0x445)](_0x350bc8,_0x2d347c);this['_substituteRedoStack'](_0x52e41e,_0x56c13f);}catch(_0x4128d2){this[_0x2629ac(0x518)]['error'](_0x4128d2),this[_0x2629ac(0x22c)](_0x52e41e);}}[_0x3cc0f6(0x397)](_0xb2a112){const _0x4bac4f=_0x3cc0f6,_0x53b8cb=this[_0x4bac4f(0x41c)](_0xb2a112);_0x53b8cb&&(_0x53b8cb[_0x4bac4f(0x411)]=0x0,this[_0x4bac4f(0x428)]());}[_0x3cc0f6(0x22c)](_0x572ffb){const _0x5c5892=_0x3cc0f6,_0x1f2f72=this[_0x5c5892(0x218)](_0x572ffb);_0x1f2f72&&(_0x1f2f72['length']=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x26c280,_0x24d78d){const _0x5ae3d9=_0x3cc0f6;this[_0x5ae3d9(0x5b0)][_0x5ae3d9(0x420)](_0x26c280,_0x24d78d),this[_0x5ae3d9(0x428)]();}[_0x3cc0f6(0x204)](_0x4015bc,_0x3ffac9){const _0x22629d=_0x3cc0f6;this[_0x22629d(0x357)][_0x22629d(0x420)](_0x4015bc,_0x3ffac9),this['_updateStatus']();}[_0x3cc0f6(0x445)](_0x19dbe0,_0x1ce28e){const _0x76d277=_0x3cc0f6,_0x1ee0fb=[];let _0x23116b=_0x1ce28e,_0x46d0a8=_0x1ce28e;for(let _0x182af7=_0x19dbe0['length']-0x1;_0x182af7>=0x0;_0x182af7--){const {unitID:_0x4d659f,undoMutations:_0x2af8a0,redoMutations:_0x259f9b}=_0x19dbe0[_0x182af7],_0x371f8d=this[_0x76d277(0x5c3)][_0x76d277(0x338)](_0x23116b,_0x2af8a0),_0xc6025b=this[_0x76d277(0x5c3)]['transformMutationsWithChangeset'](_0x46d0a8,_0x259f9b);if(_['isTransformMutationsWithChangesetFailure'](_0x371f8d)||_['isTransformMutationsWithChangesetFailure'](_0xc6025b)){this[_0x76d277(0x518)][_0x76d277(0x2c9)](_0x76d277(0x4e9),_0x76d277(0x524),_0x371f8d,_0xc6025b);break;}_0x23116b=_0x371f8d[_0x76d277(0x5c5)],_0x46d0a8=_0xc6025b[_0x76d277(0x5c5)],_0x1ee0fb[_0x76d277(0x430)]({'unitID':_0x4d659f,'undoMutations':_0x371f8d[_0x76d277(0x201)],'redoMutations':_0xc6025b[_0x76d277(0x201)]});}return _0x1ee0fb[_0x76d277(0x45d)]();}};Fe=wn([de(0x0,a[_0x3cc0f6(0x2f2)]),de(0x1,a[_0x3cc0f6(0x1d6)]),de(0x2,a[_0x3cc0f6(0x58c)]),de(0x3,_[_0x3cc0f6(0x3ba)]),de(0x4,a[_0x3cc0f6(0x24d)])],Fe);class xt extends a[_0x3cc0f6(0x2f0)]{constructor(){const _0x19973e=_0x3cc0f6;super(),u(this,_0x19973e(0x3f9)),this[_0x19973e(0x3f9)]=v[_0x19973e(0x3e4)](window,_0x19973e(0x285))[_0x19973e(0x57c)](v[_0x19973e(0x585)](this[_0x19973e(0x38b)]),v[_0x19973e(0x50b)](0x1),v[_0x19973e(0x1bc)](void 0x0));}[_0x3cc0f6(0x20f)](_0x233140,_0x574d8f,_0x2021e3=!0x1){const _0x14822a=_0x3cc0f6,_0x344591=new URL(window[_0x14822a(0x46b)]['href']);_0x344591['searchParams'][_0x14822a(0x420)](_0x233140,_0x574d8f),_0x2021e3?window[_0x14822a(0x208)][_0x14822a(0x3b9)]('','',_0x344591[_0x14822a(0x39c)]()):window[_0x14822a(0x208)][_0x14822a(0x3bf)]('','',_0x344591[_0x14822a(0x39c)]());}['removeParam'](_0x19ad2e,_0x102f55=!0x1){const _0x4584c9=_0x3cc0f6,_0x523ee4=new URL(window['location'][_0x4584c9(0x2ca)]);_0x523ee4[_0x4584c9(0x2d4)]['delete'](_0x19ad2e),_0x102f55?window[_0x4584c9(0x208)]['replaceState']('','',_0x523ee4['toString']()):window[_0x4584c9(0x208)]['pushState']('','',_0x523ee4[_0x4584c9(0x39c)]());}['getParam'](_0x509102){const _0x1879da=_0x3cc0f6;var _0x46fea7;return(_0x46fea7=new URL(window[_0x1879da(0x46b)][_0x1879da(0x2ca)])[_0x1879da(0x2d4)]['get'](_0x509102))!=null?_0x46fea7:void 0x0;}}var kt=Object['defineProperty'],Nn=Object[_0x3cc0f6(0x544)],Mn=(_0x2731f8,_0xf57c1d,_0x1ad88b)=>_0xf57c1d in _0x2731f8?kt(_0x2731f8,_0xf57c1d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad88b}):_0x2731f8[_0xf57c1d]=_0x1ad88b,An=(_0x15a6f0,_0x4f69b3,_0x2d2a6f,_0x48e898)=>{const _0x4cca84=_0x3cc0f6;for(var _0x1fe013=_0x48e898>0x1?void 0x0:_0x48e898?Nn(_0x4f69b3,_0x2d2a6f):_0x4f69b3,_0x3792a1=_0x15a6f0[_0x4cca84(0x411)]-0x1,_0x38508c;_0x3792a1>=0x0;_0x3792a1--)(_0x38508c=_0x15a6f0[_0x3792a1])&&(_0x1fe013=(_0x48e898?_0x38508c(_0x4f69b3,_0x2d2a6f,_0x1fe013):_0x38508c(_0x1fe013))||_0x1fe013);return _0x48e898&&_0x1fe013&&kt(_0x4f69b3,_0x2d2a6f,_0x1fe013),_0x1fe013;},fe=(_0x59e5fe,_0x52ebc7)=>(_0x2c2bdd,_0x10455c)=>_0x52ebc7(_0x2c2bdd,_0x10455c,_0x59e5fe),Ln=(_0x7944a8,_0x2b49c2,_0x7f74e2)=>Mn(_0x7944a8,_0x2b49c2+'',_0x7f74e2);const $n=_0x3cc0f6(0x42c);exports[_0x3cc0f6(0x3c5)]=class extends a[_0x3cc0f6(0x3e9)]{constructor(_0x34aefd=as,_0x26eca2,_0x8768a4,_0x2acfb8,_0x4d51de){const _0x336746=_0x3cc0f6;super(),this[_0x336746(0x2a8)]=_0x34aefd,this[_0x336746(0x518)]=_0x26eca2,this['_renderManagerService']=_0x8768a4,this[_0x336746(0x5ba)]=_0x2acfb8,this[_0x336746(0x5e0)]=_0x4d51de;const {..._0xf1c74f}=this[_0x336746(0x2a8)];this[_0x336746(0x5e0)][_0x336746(0x321)]($,_0xf1c74f);}[_0x3cc0f6(0x47f)](){const _0x4d8e0f=_0x3cc0f6;this[_0x4d8e0f(0x5ce)](),a[_0x4d8e0f(0x237)](this[_0x4d8e0f(0x5ba)],[[ae],[exports['DataLoaderController']],[Re]]);}['onReady'](){const _0x3f8d4a=_0x3cc0f6;a[_0x3f8d4a(0x237)](this['_injector'],[[Ee]]);}[_0x3cc0f6(0x35e)](){const _0x138b99=_0x3cc0f6;this[_0x138b99(0x375)]();}[_0x3cc0f6(0x5ce)](){const _0x1d80ef=_0x3cc0f6;var _0x887d42,_0x171afb,_0x38574b,_0x4c3842;this[_0x1d80ef(0x5ba)][_0x1d80ef(0x2d0)](a[_0x1d80ef(0x238)])&&this[_0x1d80ef(0x518)][_0x1d80ef(0x2c9)](_0x1d80ef(0x57e),_0x1d80ef(0x530));let _0x453b65=[[a[_0x1d80ef(0x238)],{'useClass':Fe}],[exports[_0x1d80ef(0x3c0)]],[Je],[U[_0x1d80ef(0x43f)]],[Qe,{'useClass':xt}],[Z],[exports[_0x1d80ef(0x1f8)]],[U[_0x1d80ef(0x3d2)]],[pe],[Ce],[Ie],[qe],[be],[Te],[Xe],[Re],[Ke,{'useClass':(_0x171afb=(_0x887d42=this['_config'])==null?void 0x0:_0x887d42[_0x1d80ef(0x3cf)])!=null?_0x171afb:exports[_0x1d80ef(0x322)]}],[U[_0x1d80ef(0x2b4)],{'useClass':U[_0x1d80ef(0x4da)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x1d80ef(0x47e)]}],[a[_0x1d80ef(0x395)],{'useClass':exports['AuthzIoHttpService']}],[j[_0x1d80ef(0x381)],{'useClass':exports[_0x1d80ef(0x506)]}],[exports[_0x1d80ef(0x3fc)]],[exports[_0x1d80ef(0x5d5)]],[exports['DesktopCollaborationStatusDisplayController']],[Ee],[ae]];(_0x38574b=this[_0x1d80ef(0x2a8)])!=null&&_0x38574b[_0x1d80ef(0x2d8)]&&_0x453b65['push']([Oe,{'useClass':xs}]),_0x453b65=a[_0x1d80ef(0x202)](_0x453b65,(_0x4c3842=this[_0x1d80ef(0x2a8)])==null?void 0x0:_0x4c3842[_0x1d80ef(0x30d)]),_0x453b65[_0x1d80ef(0x300)](_0x16376a=>this[_0x1d80ef(0x5ba)][_0x1d80ef(0x44c)](_0x16376a)),this['_initModules']();}[_0x3cc0f6(0x375)](){const _0x16e9e7=_0x3cc0f6;this[_0x16e9e7(0x217)](this[_0x16e9e7(0x1d5)][_0x16e9e7(0x439)](a[_0x16e9e7(0x31e)][_0x16e9e7(0x3c6)],[Ve])),this[_0x16e9e7(0x217)](this[_0x16e9e7(0x1d5)][_0x16e9e7(0x439)](a[_0x16e9e7(0x31e)][_0x16e9e7(0x336)],[We]));}[_0x3cc0f6(0x39f)](){const _0x596fca=_0x3cc0f6;var _0x340927,_0x3aa14b;this[_0x596fca(0x5ba)][_0x596fca(0x3de)](U[_0x596fca(0x43f)])[_0x596fca(0x5e1)]({'priority':0x14,'interceptor':U[_0x596fca(0x3b6)]({'maxParallel':0x6})}),this[_0x596fca(0x5ba)][_0x596fca(0x3de)](Te),(_0x340927=this['_config'])!=null&&_0x340927[_0x596fca(0x283)]||this[_0x596fca(0x5ba)][_0x596fca(0x3de)](exports[_0x596fca(0x1f8)])[_0x596fca(0x270)](),(_0x3aa14b=this[_0x596fca(0x2a8)])!=null&&_0x3aa14b[_0x596fca(0x5d0)]&&this[_0x596fca(0x5ba)][_0x596fca(0x3de)](be),this[_0x596fca(0x5ba)][_0x596fca(0x3de)](exports[_0x596fca(0x3fc)]),this['_injector'][_0x596fca(0x2d0)](exports[_0x596fca(0x2de)])&&this['_injector'][_0x596fca(0x3de)](exports['DesktopCollaborationStatusDisplayController']);}},Ln(exports[_0x3cc0f6(0x3c5)],'pluginName',$n),exports[_0x3cc0f6(0x3c5)]=An([a['DependentOn'](_[_0x3cc0f6(0x4f0)]),fe(0x1,a[_0x3cc0f6(0x24d)]),fe(0x2,O[_0x3cc0f6(0x3c1)]),fe(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),fe(0x4,a[_0x3cc0f6(0x5d3)])],exports['UniverCollaborationClientPlugin']),exports[_0x3cc0f6(0x2e8)]=Ht,exports[_0x3cc0f6(0x4f6)]=Ct,exports[_0x3cc0f6(0x24f)]=mt,exports[_0x3cc0f6(0x25b)]=D,exports[_0x3cc0f6(0x2ab)]=jt,exports[_0x3cc0f6(0x431)]=Xe,exports[_0x3cc0f6(0x21f)]=gt,exports['HEARTBEAT_TIMEOUT_KEY']=Ge,exports[_0x3cc0f6(0x3ff)]=Ke,exports[_0x3cc0f6(0x2eb)]=Qe,exports['LOCAL_CACHE_INTERVAL_KEY']=pt,exports[_0x3cc0f6(0x546)]=Et,exports[_0x3cc0f6(0x4d1)]=It,exports['SEND_CHANGESET_TIMEOUT_KEY']=Zt,exports[_0x3cc0f6(0x2c2)]=St,exports[_0x3cc0f6(0x327)]=vt,exports[_0x3cc0f6(0x3df)]=x,exports[_0x3cc0f6(0x1db)]=Nt,exports[_0x3cc0f6(0x56a)]=xt,exports[_0x3cc0f6(0x277)]=Rt,exports[_0x3cc0f6(0x54a)]=Ot;
|
1
|
+
'use strict';const _0x3b57cd=_0x4497;(function(_0x11e49b,_0x1ad100){const _0x19060f=_0x4497,_0x12f9e2=_0x11e49b();while(!![]){try{const _0x57bf38=-parseInt(_0x19060f(0x1d4))/0x1+parseInt(_0x19060f(0x34f))/0x2*(parseInt(_0x19060f(0x31f))/0x3)+parseInt(_0x19060f(0x202))/0x4+parseInt(_0x19060f(0x4c9))/0x5*(parseInt(_0x19060f(0x2cf))/0x6)+parseInt(_0x19060f(0x2bb))/0x7*(parseInt(_0x19060f(0x358))/0x8)+-parseInt(_0x19060f(0x542))/0x9+-parseInt(_0x19060f(0x2a7))/0xa*(parseInt(_0x19060f(0x4ac))/0xb);if(_0x57bf38===_0x1ad100)break;else _0x12f9e2['push'](_0x12f9e2['shift']());}catch(_0x421d3f){_0x12f9e2['push'](_0x12f9e2['shift']());}}}(_0xac00,0x4ee71));var Gt=Object['defineProperty'],Yt=(_0x480ea9,_0x39c29b,_0x4558d5)=>_0x39c29b in _0x480ea9?Gt(_0x480ea9,_0x39c29b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4558d5}):_0x480ea9[_0x39c29b]=_0x4558d5,u=(_0x56b00f,_0x83b6af,_0x43c7a6)=>Yt(_0x56b00f,typeof _0x83b6af!=_0x3b57cd(0x2c6)?_0x83b6af+'':_0x83b6af,_0x43c7a6);Object[_0x3b57cd(0x44e)](exports,Symbol[_0x3b57cd(0x428)],{'value':'Module'});const a=require(_0x3b57cd(0x4ca)),v=require(_0x3b57cd(0x4b0)),E=require(_0x3b57cd(0x31b)),J=require('@univerjs/design'),A=require('@univerjs/ui'),U=require('@univerjs/network'),_=require('@univerjs-pro/collaboration'),Kt=require(_0x3b57cd(0x3ad)),N=require(_0x3b57cd(0x1c9)),C=require(_0x3b57cd(0x4e5)),O=require('@univerjs/engine-render'),ne=require(_0x3b57cd(0x183)),j=require(_0x3b57cd(0x262)),Qe=require(_0x3b57cd(0x42b)),ie=require('@univerjs/sheets-ui'),y=require(_0x3b57cd(0x222)),Xt=require('@univerjs/rpc'),qt=require(_0x3b57cd(0x569)),dt=_0x3b57cd(0x4bb),zt=_0x3b57cd(0x485),St=_0x3b57cd(0x4ab),Jt=_0x3b57cd(0x507),Zt=0x7d0,vt=_0x3b57cd(0x17f),Qt=_0x3b57cd(0x259),mt=_0x3b57cd(0x400),es=0x7530,Fe=_0x3b57cd(0x539),gt=0x4e20,ts=0x4e20,ft='RETRY_CONNECTING_MAX_COUNT',ss=0x3,It=_0x3b57cd(0x50d),is=0x3e8,pt=_0x3b57cd(0x531),ns=_0x3b57cd(0x181),Ct='LOGIN_URL_KEY',rs=_0x3b57cd(0x4b4);var Et=(_0x35ac08=>(_0x35ac08[_0x35ac08['UNDEFINED']=0x0]='UNDEFINED',_0x35ac08[_0x35ac08['OK']=0x1]='OK',_0x35ac08[_0x35ac08[_0x3b57cd(0x16c)]=0x2]=_0x3b57cd(0x16c),_0x35ac08[_0x35ac08[_0x3b57cd(0x4d0)]=0x3]=_0x3b57cd(0x4d0),_0x35ac08[_0x35ac08[_0x3b57cd(0x599)]=0x4]=_0x3b57cd(0x599),_0x35ac08[_0x35ac08[_0x3b57cd(0x54e)]=0x5]='UNAUTHENTICATED',_0x35ac08[_0x35ac08[_0x3b57cd(0x538)]=0x6]=_0x3b57cd(0x538),_0x35ac08[_0x35ac08[_0x3b57cd(0x3d1)]=0x7]=_0x3b57cd(0x3d1),_0x35ac08[_0x35ac08[_0x3b57cd(0x2c1)]=0x8]=_0x3b57cd(0x2c1),_0x35ac08[_0x35ac08[_0x3b57cd(0x170)]=0x9]=_0x3b57cd(0x170),_0x35ac08[_0x35ac08[_0x3b57cd(0x26f)]=0x1389]=_0x3b57cd(0x26f),_0x35ac08[_0x35ac08[_0x3b57cd(0x4fc)]=0x1771]=_0x3b57cd(0x4fc),_0x35ac08[_0x35ac08[_0x3b57cd(0x563)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x35ac08[_0x35ac08[_0x3b57cd(0x392)]=0x1773]=_0x3b57cd(0x392),_0x35ac08[_0x35ac08['APPLY_REJECT']=0x1b59]=_0x3b57cd(0x3fb),_0x35ac08[_0x35ac08[_0x3b57cd(0x171)]=0x1b5a]=_0x3b57cd(0x171),_0x35ac08[_0x35ac08['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x35ac08[_0x35ac08[_0x3b57cd(0x4a1)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x35ac08[_0x35ac08['APPLY_DUPLICATED']=0x1b5d]=_0x3b57cd(0x49f),_0x35ac08[_0x35ac08[_0x3b57cd(0x492)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x35ac08[_0x35ac08[_0x3b57cd(0x385)]=0x2329]=_0x3b57cd(0x385),_0x35ac08[_0x35ac08['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x3b57cd(0x523),_0x35ac08[_0x35ac08[_0x3b57cd(0x3a4)]=0x232b]=_0x3b57cd(0x3a4),_0x35ac08[_0x35ac08[_0x3b57cd(0x37b)]=0x232c]=_0x3b57cd(0x37b),_0x35ac08[_0x35ac08[_0x3b57cd(0x2cc)]=0x232d]=_0x3b57cd(0x2cc),_0x35ac08[_0x35ac08[_0x3b57cd(0x573)]=0x2711]=_0x3b57cd(0x573),_0x35ac08[_0x35ac08[_0x3b57cd(0x371)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x35ac08[_0x35ac08[_0x3b57cd(0x4eb)]=0x2713]=_0x3b57cd(0x4eb),_0x35ac08[_0x35ac08[_0x3b57cd(0x3dd)]=0x2714]=_0x3b57cd(0x3dd),_0x35ac08[_0x35ac08['UNRECOGNIZED']=-0x1]=_0x3b57cd(0x3ce),_0x35ac08))(Et||{}),H=(_0x3a140f=>(_0x3a140f[_0x3a140f[_0x3b57cd(0x414)]=0x0]=_0x3b57cd(0x414),_0x3a140f[_0x3a140f[_0x3b57cd(0x1a9)]=0x1]=_0x3b57cd(0x1a9),_0x3a140f[_0x3a140f[_0x3b57cd(0x53b)]=0x2]=_0x3b57cd(0x53b),_0x3a140f[_0x3a140f[_0x3b57cd(0x2fd)]=0x3]=_0x3b57cd(0x2fd),_0x3a140f[_0x3a140f['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x3a140f[_0x3a140f[_0x3b57cd(0x3ce)]=-0x1]=_0x3b57cd(0x3ce),_0x3a140f))(H||{}),b=(_0x11970f=>(_0x11970f[_0x11970f[_0x3b57cd(0x3dc)]=0x0]=_0x3b57cd(0x3dc),_0x11970f[_0x11970f['HELLO']=0x1]=_0x3b57cd(0x43e),_0x11970f[_0x11970f[_0x3b57cd(0x193)]=0x2]='JOIN',_0x11970f[_0x11970f[_0x3b57cd(0x290)]=0x3]=_0x3b57cd(0x290),_0x11970f[_0x11970f[_0x3b57cd(0x591)]=0x4]='INGEST',_0x11970f[_0x11970f[_0x3b57cd(0x410)]=0x5]='HEARTBEAT',_0x11970f[_0x11970f['RECV']=0x6]=_0x3b57cd(0x595),_0x11970f[_0x11970f[_0x3b57cd(0x3ce)]=-0x1]=_0x3b57cd(0x3ce),_0x11970f))(b||{}),Ge=(_0x1f250c=>(_0x1f250c[_0x1f250c[_0x3b57cd(0x263)]=0x0]=_0x3b57cd(0x263),_0x1f250c[_0x1f250c['OK']=0x1]='OK',_0x1f250c[_0x1f250c[_0x3b57cd(0x33d)]=0x2]='FAIL',_0x1f250c[_0x1f250c[_0x3b57cd(0x3ce)]=-0x1]=_0x3b57cd(0x3ce),_0x1f250c))(Ge||{}),bt=(_0x423b24=>(_0x423b24[_0x423b24['Undefined']=0x0]=_0x3b57cd(0x1ec),_0x423b24[_0x423b24[_0x3b57cd(0x4a9)]=0x1]=_0x3b57cd(0x4a9),_0x423b24[_0x423b24['HttpExport']=0x2]='HttpExport',_0x423b24[_0x423b24['UnitEmbedded']=0x3]='UnitEmbedded',_0x423b24[_0x423b24['UnitSnapshot']=0x4]='UnitSnapshot',_0x423b24[_0x423b24[_0x3b57cd(0x3ce)]=-0x1]=_0x3b57cd(0x3ce),_0x423b24))(bt||{});const $=_0x3b57cd(0x465),os={};function Tt(_0x1cc2fd){const _0x21e05e=_0x3b57cd;var _0x36eb97,_0x7d5f50,_0x4a5cf4,_0x5292d3,_0x4ade2f;const _0x34a016=_0x1cc2fd[_0x21e05e(0x30a)],_0x1e1364=JSON[_0x21e05e(0x42d)](_0x34a016);switch(_0x1e1364[_0x21e05e(0x20b)]){case b[_0x21e05e(0x410)]:case b[_0x21e05e(0x43e)]:{const _0x2f2caa=_0x1e1364['infoRsp'];return{..._0x1e1364,'data':_0x2f2caa,'cmd':_0x1e1364[_0x21e05e(0x20b)]};}case b[_0x21e05e(0x193)]:{const _0xeefad4=_0x1e1364[_0x21e05e(0x4bf)];return{..._0x1e1364,'data':_0xeefad4,'cmd':_0x1e1364['cmd']};}case b['RECV']:{const _0x46b34b=_0x1e1364[_0x21e05e(0x274)];switch(_0x46b34b['eventID']){case _['CollaborationEvent']['PERMISSION_REJ']:return{..._0x1e1364,'data':{..._0x46b34b,'data':(_0x36eb97=_0x46b34b[_0x21e05e(0x326)])==null?void 0x0:_0x36eb97['cs']},'cmd':_0x1e1364['cmd']};case _[_0x21e05e(0x556)][_0x21e05e(0x1a1)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':(_0x7d5f50=_0x46b34b[_0x21e05e(0x1cd)])==null?void 0x0:_0x7d5f50['cs']},'cmd':_0x1e1364['cmd']};case _[_0x21e05e(0x556)][_0x21e05e(0x27a)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':(_0x4a5cf4=_0x46b34b[_0x21e05e(0x58f)])==null?void 0x0:_0x4a5cf4['cs']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _['CollaborationEvent'][_0x21e05e(0x239)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':(_0x5292d3=_0x46b34b['csRejEvent'])==null?void 0x0:_0x5292d3['cs']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x2c0)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':(_0x4ade2f=_0x46b34b[_0x21e05e(0x25e)])==null?void 0x0:_0x4ade2f['cs']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b['updateCursorEvent']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)]['USERS_ENTER']:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b['joinEvent']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x40e)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b['leaveEvent']},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x4a4)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b[_0x21e05e(0x2f3)]},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x1d5)]:case _['CollaborationEvent'][_0x21e05e(0x1a7)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b[_0x21e05e(0x37e)]},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x43d)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b[_0x21e05e(0x2f3)]},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _['CollaborationEvent'][_0x21e05e(0x3f5)]:return{..._0x1e1364,'data':_0x46b34b,'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x574)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b['commentUpdateEvent']},'cmd':_0x1e1364['cmd']};case _[_0x21e05e(0x556)][_0x21e05e(0x22a)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b[_0x21e05e(0x4d9)]},'cmd':_0x1e1364[_0x21e05e(0x20b)]};case _[_0x21e05e(0x556)][_0x21e05e(0x2f5)]:return{..._0x1e1364,'data':{..._0x46b34b,'data':_0x46b34b[_0x21e05e(0x4f7)]},'cmd':_0x1e1364[_0x21e05e(0x20b)]};default:return _0x1e1364;}}default:return _0x1e1364;}}function Rt(_0x495102){const _0x2040ba=_0x3b57cd;switch(_0x495102[_0x2040ba(0x20b)]){case b[_0x2040ba(0x410)]:case b[_0x2040ba(0x43e)]:return JSON['stringify']({'cmd':_0x495102[_0x2040ba(0x20b)],'routeKey':_0x495102[_0x2040ba(0x451)]});case b[_0x2040ba(0x591)]:{let _0x577a69;switch(_0x495102['data'][_0x2040ba(0x2f8)]){case _[_0x2040ba(0x556)][_0x2040ba(0x2d2)]:{_0x577a69={'eventID':_[_0x2040ba(0x556)][_0x2040ba(0x2d2)],'updateCursorEvent':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x30a)]};break;}case _[_0x2040ba(0x556)]['USERS_LEAVE']:{_0x577a69={'eventID':_[_0x2040ba(0x556)]['USERS_LEAVE'],'leaveEvent':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x30a)]};break;}case _[_0x2040ba(0x556)][_0x2040ba(0x4ff)]:{_0x577a69={'eventID':_['CollaborationEvent'][_0x2040ba(0x4ff)],'joinEvent':_0x495102[_0x2040ba(0x30a)]['data']};break;}case _[_0x2040ba(0x556)]['LIVESHARE_NEW_HOST']:{_0x577a69={'eventID':_[_0x2040ba(0x556)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x30a)]};break;}case _[_0x2040ba(0x556)][_0x2040ba(0x1a7)]:{_0x577a69={'eventID':_['CollaborationEvent'][_0x2040ba(0x1a7)],'liveShareOperation':_0x495102[_0x2040ba(0x30a)]['data']};break;}case _[_0x2040ba(0x556)][_0x2040ba(0x43d)]:{_0x577a69={'eventID':_[_0x2040ba(0x556)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x30a)]};break;}case _[_0x2040ba(0x556)][_0x2040ba(0x2af)]:{_0x577a69={'eventID':_['CollaborationEvent'][_0x2040ba(0x2af)],'liveShareRequestHost':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x30a)]};break;}case _[_0x2040ba(0x556)][_0x2040ba(0x1d5)]:{_0x577a69={'eventID':_[_0x2040ba(0x556)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x577a69={'eventID':_0x495102[_0x2040ba(0x30a)][_0x2040ba(0x2f8)]};}return JSON[_0x2040ba(0x2fc)]({'cmd':_0x495102[_0x2040ba(0x20b)],'routeKey':_0x495102['routeKey'],'collaMsg':_0x577a69});}case b['JOIN']:return JSON['stringify']({'cmd':_0x495102[_0x2040ba(0x20b)],'routeKey':_0x495102[_0x2040ba(0x451)],'joinReq':_0x495102[_0x2040ba(0x30a)]});case b['LEAVE']:return JSON[_0x2040ba(0x2fc)]({'cmd':_0x495102[_0x2040ba(0x20b)],'routeKey':_0x495102[_0x2040ba(0x451)],'leaveReq':_0x495102[_0x2040ba(0x30a)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var as=Object[_0x3b57cd(0x44e)],cs=Object[_0x3b57cd(0x35f)],ls=(_0x323f86,_0x115890,_0x50630f,_0x3a8327)=>{const _0x4e165e=_0x3b57cd;for(var _0x59a96b=_0x3a8327>0x1?void 0x0:_0x3a8327?cs(_0x115890,_0x50630f):_0x115890,_0x45f574=_0x323f86[_0x4e165e(0x54c)]-0x1,_0x244af0;_0x45f574>=0x0;_0x45f574--)(_0x244af0=_0x323f86[_0x45f574])&&(_0x59a96b=(_0x3a8327?_0x244af0(_0x115890,_0x50630f,_0x59a96b):_0x244af0(_0x59a96b))||_0x59a96b);return _0x3a8327&&_0x59a96b&&as(_0x115890,_0x50630f,_0x59a96b),_0x59a96b;},ae=(_0x973642,_0x8ef710)=>(_0x1a4625,_0x44f55e)=>_0x8ef710(_0x1a4625,_0x44f55e,_0x973642);const Ye=a[_0x3b57cd(0x227)](_0x3b57cd(0x570));function hs(_0x529547,_0x437e94,_0x71251e){const _0x367f4b=_0x3b57cd;return _0x529547+'/'+_0x437e94+_0x367f4b(0x3c6)+_0x71251e+_0x367f4b(0x1a4);}exports[_0x3b57cd(0x1f5)]=class extends a[_0x3b57cd(0x54b)]{constructor(_0xe2613e,_0x272f87,_0xf7ee93,_0x1e3b96,_0x51ca4c){const _0x3027a4=_0x3b57cd;super(),this[_0x3027a4(0x4dd)]=_0xe2613e,this[_0x3027a4(0x3df)]=_0x272f87,this['_configService']=_0xf7ee93,this[_0x3027a4(0x45c)]=_0x1e3b96,this[_0x3027a4(0x2ba)]=_0x51ca4c;}[_0x3b57cd(0x273)](_0x254e8c){const _0x3fd5b9=_0x3b57cd,_0x503652=this[_0x3fd5b9(0x3df)]['createSocket'](_0x254e8c);if(!_0x503652)throw new Error(_0x3fd5b9(0x2d4));const _0x2ea763=new a[(_0x3fd5b9(0x300))](),_0x28c475=new v[(_0x3fd5b9(0x56b))]();_0x2ea763[_0x3fd5b9(0x477)](_0x503652[_0x3fd5b9(0x1e2)][_0x3fd5b9(0x508)](_0x135494=>_0x28c475[_0x3fd5b9(0x3b8)](_0x135494))),_0x2ea763[_0x3fd5b9(0x477)](a[_0x3fd5b9(0x44c)](()=>_0x28c475[_0x3fd5b9(0x23a)]()));const _0x346b75=new v[(_0x3fd5b9(0x56b))]();_0x2ea763[_0x3fd5b9(0x477)](_0x503652[_0x3fd5b9(0x2dc)]['subscribe'](_0x24b59b=>_0x346b75[_0x3fd5b9(0x3b8)](_0x24b59b))),_0x2ea763['add'](a[_0x3fd5b9(0x44c)](()=>_0x346b75[_0x3fd5b9(0x23a)]()));const _0x133b2c=new v[(_0x3fd5b9(0x56b))]();_0x2ea763[_0x3fd5b9(0x477)](_0x503652['message$']['subscribe'](_0x56f77c=>{const _0x238de7=_0x3fd5b9,_0x139c8b=Tt(_0x56f77c);_0x133b2c[_0x238de7(0x3b8)](_0x139c8b);})),_0x2ea763[_0x3fd5b9(0x477)](a['toDisposable'](()=>_0x133b2c['complete']()));let _0x8f4a77;const _0x800ebf=()=>{const _0x437a44=_0x3fd5b9;_0x346b75[_0x437a44(0x3b8)](new Event(_0x437a44(0x397))),_0x28c475[_0x437a44(0x3b8)](new CloseEvent(_0x437a44(0x397))),_0x8f4a77[_0x437a44(0x3bd)]();};return _0x8f4a77={'memberID':'','close$':_0x28c475['asObservable'](),'error$':_0x346b75['asObservable'](),'open$':_0x503652[_0x3fd5b9(0x283)],'message$':_0x133b2c[_0x3fd5b9(0x355)](),'send':_0x40e8f1=>{const _0x40720d=_0x3fd5b9;if(_0x40e8f1[_0x40720d(0x20b)]===b['INGEST']){if(_0x40e8f1[_0x40720d(0x30a)]['eventID']===_[_0x40720d(0x556)][_0x40720d(0x1bb)]){this[_0x40720d(0x4f2)](_0x8f4a77,_0x40e8f1[_0x40720d(0x30a)])['catch'](_0x202bd8=>{const _0x1410a7=_0x40720d;this[_0x1410a7(0x45c)]['error'](_0x202bd8),_0x800ebf();});return;}if(_0x40e8f1[_0x40720d(0x30a)][_0x40720d(0x2f8)]===_['CollaborationEvent'][_0x40720d(0x3fd)]){const _0x13fa8f=_0x40e8f1[_0x40720d(0x30a)];this['_fetchMissChangesets'](_0x13fa8f)[_0x40720d(0x210)](_0x46b1e9=>{const _0x38643a=_0x40720d;_0x133b2c[_0x38643a(0x3b8)]({'cmd':b['RECV'],'code':Ge['OK'],'routeKey':_0x13fa8f[_0x38643a(0x30a)][_0x38643a(0x234)],'routeType':'','data':{'eventID':_[_0x38643a(0x556)][_0x38643a(0x24a)],'data':{'changesets':_0x46b1e9}}});})[_0x40720d(0x1e6)](_0x5a7879=>{const _0x598ff6=_0x40720d;this['_logService'][_0x598ff6(0x37f)](_0x5a7879),_0x800ebf();});return;}}_0x503652[_0x40720d(0x1e8)](Rt(_0x40e8f1));},'close':()=>{const _0x4b49e3=_0x3fd5b9;_0x503652[_0x4b49e3(0x3bd)](),_0x2ea763[_0x4b49e3(0x378)]();}},_0x8f4a77;}async['_submitChangeset'](_0x158212,_0x2b0ce0){const _0x177897=_0x3b57cd;var _0x274b5c,_0x37b534;const {unitType:_0x402705,unitID:_0x93310a,changeset:_0x274b7e}=_0x2b0ce0[_0x177897(0x30a)],_0x1b8059={'unitID':_0x93310a,'memberID':_0x158212[_0x177897(0x42a)],'type':_0x402705,'changeset':_[_0x177897(0x1b5)](_0x274b7e)},_0x119b7b=this['_configService'][_0x177897(0x38e)](pt),_0x1b12cf=this[_0x177897(0x490)][_0x177897(0x38e)]($),_0x58f07e=hs((_0x37b534=(_0x274b5c=_0x1b12cf==null?void 0x0:_0x1b12cf[_0x177897(0x188)])!=null?_0x274b5c:_0x119b7b)!=null?_0x37b534:ns,_0x402705,_0x93310a);try{await this[_0x177897(0x4dd)][_0x177897(0x1cb)](_0x58f07e,{'body':_0x1b8059});}catch(_0x331edd){throw this['_logService'][_0x177897(0x37f)](_0x177897(0x292),_0x177897(0x2b2)),_0x331edd;}}async['_fetchMissChangesets'](_0x1a11c3){const _0x878aa=_0x3b57cd,{unitID:_0x488205,from:_0x2cca5b,to:_0x2ee647,unitType:_0x5ef1be}=_0x1a11c3[_0x878aa(0x30a)];return(await this['_snapshotServerService'][_0x878aa(0x405)]({'metadata':void 0x0},{'unitID':_0x488205,'type':_0x5ef1be,'from':_0x2cca5b,'to':_0x2ee647}))['changesets'];}},exports[_0x3b57cd(0x1f5)]=ls([ae(0x0,a[_0x3b57cd(0x4ad)](U[_0x3b57cd(0x44a)])),ae(0x1,a['Inject'](U[_0x3b57cd(0x483)])),ae(0x2,a[_0x3b57cd(0x2f9)]),ae(0x3,a[_0x3b57cd(0x4e7)]),ae(0x4,_['ISnapshotServerService'])],exports['CollaborationSocketService']);const _s=_0x3b57cd(0x1c3);function us(_0x505a61){const _0x3de727=_0x3b57cd;return JSON[_0x3de727(0x2fc)](_0x505a61)['length'];}class Ke{constructor(){const _0x16f86d=_0x3b57cd;u(this,_0x16f86d(0x47d),new v[(_0x16f86d(0x56b))]()),u(this,_0x16f86d(0x45f),this[_0x16f86d(0x47d)][_0x16f86d(0x355)]());}['onCommentUpdate'](_0x1507c1){const _0x3cc45f=_0x3b57cd;this[_0x3cc45f(0x47d)][_0x3cc45f(0x3b8)](_0x1507c1);}}var ds=Object['defineProperty'],Ss=Object[_0x3b57cd(0x35f)],vs=(_0x4251c2,_0x5a69dc,_0x4ef0d8,_0xa4a9a3)=>{const _0x1507b9=_0x3b57cd;for(var _0x4525dd=_0xa4a9a3>0x1?void 0x0:_0xa4a9a3?Ss(_0x5a69dc,_0x4ef0d8):_0x5a69dc,_0x10005c=_0x4251c2[_0x1507b9(0x54c)]-0x1,_0x5ba318;_0x10005c>=0x0;_0x10005c--)(_0x5ba318=_0x4251c2[_0x10005c])&&(_0x4525dd=(_0xa4a9a3?_0x5ba318(_0x5a69dc,_0x4ef0d8,_0x4525dd):_0x5ba318(_0x4525dd))||_0x4525dd);return _0xa4a9a3&&_0x4525dd&&ds(_0x5a69dc,_0x4ef0d8,_0x4525dd),_0x4525dd;},et=(_0x484478,_0x4d14eb)=>(_0x405ce0,_0x483ae3)=>_0x4d14eb(_0x405ce0,_0x483ae3,_0x484478);exports['MemberService']=class extends a[_0x3b57cd(0x54b)]{constructor(_0x71d3f8,_0x2e8006){const _0x3569b2=_0x3b57cd;super(),u(this,_0x3569b2(0x2bf),new Map()),(this['_univerInstanceService']=_0x71d3f8,this['_userManagerService']=_0x2e8006,this[_0x3569b2(0x431)](a[_0x3569b2(0x44c)](v[_0x3569b2(0x547)](this[_0x3569b2(0x562)][_0x3569b2(0x44f)](a[_0x3569b2(0x2b4)][_0x3569b2(0x53b)])[_0x3569b2(0x3b4)](E['map'](_0x26bd84=>_0x26bd84[_0x3569b2(0x2fa)]())),this['_univerInstanceService'][_0x3569b2(0x44f)](a['UniverInstanceType'][_0x3569b2(0x1a9)])[_0x3569b2(0x3b4)](E[_0x3569b2(0x439)](_0x36f25f=>_0x36f25f[_0x3569b2(0x2fa)]())),this[_0x3569b2(0x562)][_0x3569b2(0x44f)](a[_0x3569b2(0x2b4)][_0x3569b2(0x2fd)])[_0x3569b2(0x3b4)](E[_0x3569b2(0x439)](_0x32e0b4=>_0x32e0b4['getUnitId']())))['subscribe'](_0x68f47b=>this['_removeRoom'](_0x68f47b)))));}[_0x3b57cd(0x1f4)](_0x3fbd7f){const _0xa37c1b=_0x3b57cd;this[_0xa37c1b(0x1ca)][_0xa37c1b(0x1f4)](_0x3fbd7f);}[_0x3b57cd(0x176)](){const _0x5ecbc6=_0x3b57cd;return this[_0x5ecbc6(0x1ca)][_0x5ecbc6(0x176)]();}[_0x3b57cd(0x2ee)](_0x2aa1d3,_0x41c18d){const _0x4189fb=_0x3b57cd;let _0x2fdcb9=this['_roomMembers'][_0x4189fb(0x4e6)](_0x2aa1d3);_0x2fdcb9||(_0x2fdcb9=new ms(),this[_0x4189fb(0x2bf)][_0x4189fb(0x4af)](_0x2aa1d3,_0x2fdcb9)),_0x2fdcb9[_0x4189fb(0x2ee)](_0x41c18d);}[_0x3b57cd(0x580)](_0x180a19,_0x17f35e){const _0x22de84=_0x3b57cd,_0x4ebf2d=this['_roomMembers']['get'](_0x180a19);_0x4ebf2d&&_0x4ebf2d[_0x22de84(0x580)](_0x17f35e);}[_0x3b57cd(0x1fd)](_0x118e1b){const _0x299294=_0x3b57cd;return this['_roomMembers'][_0x299294(0x4e6)](_0x118e1b);}[_0x3b57cd(0x29c)](_0xc95a82,_0x517cde){const _0x4281d8=_0x3b57cd,_0x5c40dd=this[_0x4281d8(0x2bf)][_0x4281d8(0x4e6)](_0xc95a82);if(_0x5c40dd)return _0x5c40dd[_0x4281d8(0x29c)](_0x517cde);}[_0x3b57cd(0x1a0)](_0x389a26){const _0x5c6947=_0x3b57cd,_0x4cf235=this['_roomMembers'][_0x5c6947(0x4e6)](_0x389a26);_0x4cf235&&(_0x4cf235[_0x5c6947(0x378)](),this[_0x5c6947(0x2bf)][_0x5c6947(0x524)](_0x389a26));}[_0x3b57cd(0x378)](){const _0x351575=_0x3b57cd;this[_0x351575(0x2bf)][_0x351575(0x571)](_0x1021de=>_0x1021de['dispose']()),this[_0x351575(0x2bf)]['clear']();}},exports[_0x3b57cd(0x2e4)]=vs([et(0x0,a[_0x3b57cd(0x424)]),et(0x1,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x34b)]))],exports[_0x3b57cd(0x2e4)]);class ms extends a[_0x3b57cd(0x54b)]{constructor(){const _0x5357a0=_0x3b57cd;super(...arguments),u(this,_0x5357a0(0x1de),new Map());}[_0x3b57cd(0x378)](){const _0x136152=_0x3b57cd;this[_0x136152(0x1de)][_0x136152(0x1c2)]();}[_0x3b57cd(0x2ee)](_0x48ecd0){const _0x121ae5=_0x3b57cd;this[_0x121ae5(0x1de)]['set'](_0x48ecd0[_0x121ae5(0x42a)],_0x48ecd0);}['removeMember'](_0x804255){const _0x453693=_0x3b57cd;this[_0x453693(0x1de)][_0x453693(0x524)](_0x804255);}[_0x3b57cd(0x29c)](_0x54646a){const _0x286aec=_0x3b57cd;return this[_0x286aec(0x1de)][_0x286aec(0x4e6)](_0x54646a);}[_0x3b57cd(0x4ed)](){const _0x261f48=_0x3b57cd;return Array[_0x261f48(0x348)](this[_0x261f48(0x1de)][_0x261f48(0x345)]());}}var gs=Object[_0x3b57cd(0x44e)],fs=Object[_0x3b57cd(0x35f)],Is=(_0x568b84,_0x12522a,_0x2f3688,_0x4db8a0)=>{for(var _0x5f27a2=_0x4db8a0>0x1?void 0x0:_0x4db8a0?fs(_0x12522a,_0x2f3688):_0x12522a,_0x2d9d35=_0x568b84['length']-0x1,_0xf5c4cb;_0x2d9d35>=0x0;_0x2d9d35--)(_0xf5c4cb=_0x568b84[_0x2d9d35])&&(_0x5f27a2=(_0x4db8a0?_0xf5c4cb(_0x12522a,_0x2f3688,_0x5f27a2):_0xf5c4cb(_0x5f27a2))||_0x5f27a2);return _0x4db8a0&&_0x5f27a2&&gs(_0x12522a,_0x2f3688,_0x5f27a2),_0x5f27a2;},G=(_0x7844b7,_0x5367df)=>(_0x109a0d,_0x359dde)=>_0x5367df(_0x109a0d,_0x359dde,_0x7844b7),x=(_0x58852d=>(_0x58852d[_0x58852d[_0x3b57cd(0x2b5)]=0x0]='IDLE',_0x58852d[_0x58852d[_0x3b57cd(0x1e7)]=0x1]=_0x3b57cd(0x1e7),_0x58852d[_0x58852d['OFFLINE']=0x2]=_0x3b57cd(0x590),_0x58852d[_0x58852d['ONLINE']=0x3]='ONLINE',_0x58852d))(x||{});exports[_0x3b57cd(0x2e9)]=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x3c333c,_0x57cbc6,_0x4e491b,_0x37a30a,_0x2ab352,_0x3be881,_0x4c2315,_0x5ddb47,_0x9141d8,_0x328e2c){const _0x3d6e01=_0x3b57cd;super(),u(this,_0x3d6e01(0x1ad),new v[(_0x3d6e01(0x470))](0x0)),u(this,_0x3d6e01(0x407),this[_0x3d6e01(0x1ad)][_0x3d6e01(0x355)]()),u(this,_0x3d6e01(0x519),new v[(_0x3d6e01(0x56b))]()),u(this,'event$',this[_0x3d6e01(0x519)]['asObservable']()),u(this,'_socket'),u(this,_0x3d6e01(0x1a3)),u(this,_0x3d6e01(0x58e)),u(this,_0x3d6e01(0x3d4),!0x1),u(this,_0x3d6e01(0x298),null),(this[_0x3d6e01(0x526)]=_0x3c333c,this[_0x3d6e01(0x45c)]=_0x4e491b,this['_beforeCloseService']=_0x37a30a,this[_0x3d6e01(0x4e1)]=_0x2ab352,this[_0x3d6e01(0x490)]=_0x3be881,this[_0x3d6e01(0x4fd)]=_0x4c2315,this[_0x3d6e01(0x312)]=_0x5ddb47,this['_commentService']=_0x9141d8,this[_0x3d6e01(0x1d6)]=_0x328e2c,this[_0x3d6e01(0x3d4)]=!!this[_0x3d6e01(0x1d6)],_0x57cbc6[_0x3d6e01(0x3b4)](v[_0x3d6e01(0x1b3)](this[_0x3d6e01(0x3fc)]))[_0x3d6e01(0x508)](_0x406587=>{const _0x1b1abc=_0x3d6e01;var _0x9ef4a4;typeof _0x406587>'u'||(this['_socket']=_0x406587,_0x406587?(this[_0x1b1abc(0x39b)](_0x406587),this[_0x1b1abc(0x1a3)]=_0x406587[_0x1b1abc(0x264)][_0x1b1abc(0x508)](_0x50b08f=>{const _0xdce2ee=_0x1b1abc;_0x50b08f['routeKey']===this[_0xdce2ee(0x526)]&&this[_0xdce2ee(0x2ab)](_0x50b08f);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x1b1abc(0x1ad)][_0x1b1abc(0x3b8)](0x2),(_0x9ef4a4=this['_socketMessageSubscription'])==null||_0x9ef4a4['unsubscribe'](),this[_0x1b1abc(0x1a3)]=null));}),this[_0x3d6e01(0x431)](this[_0x3d6e01(0x4ec)][_0x3d6e01(0x277)](()=>{const _0x3ec9b6=_0x3d6e01;var _0x22aa9a;(_0x22aa9a=this['_socket'])==null||_0x22aa9a[_0x3ec9b6(0x1e8)]({'cmd':b[_0x3ec9b6(0x290)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x3a4894=_0x3b57cd;return this[_0x3a4894(0x1ad)][_0x3a4894(0x2d9)]();}[_0x3b57cd(0x339)](){const _0x167d0b=_0x3b57cd;var _0x4a5b67,_0x514727;return(_0x514727=(_0x4a5b67=this[_0x167d0b(0x236)])==null?void 0x0:_0x4a5b67['memberID'])!=null?_0x514727:null;}[_0x3b57cd(0x378)](){const _0x462230=_0x3b57cd;super[_0x462230(0x378)](),this['dispose$'][_0x462230(0x3b8)](),this[_0x462230(0x3fc)][_0x462230(0x23a)]();}[_0x3b57cd(0x3bd)](){const _0x3bf6c6=_0x3b57cd;var _0x12925e,_0xd362e3;this[_0x3bf6c6(0x1f1)](),(_0x12925e=this[_0x3bf6c6(0x236)])==null||_0x12925e[_0x3bf6c6(0x1e8)]({'cmd':b[_0x3bf6c6(0x290)],'data':{'roomID':this['_unitID']}}),(_0xd362e3=this['_socket'])==null||_0xd362e3['close'](),this['_event$'][_0x3bf6c6(0x23a)](),this[_0x3bf6c6(0x1ad)][_0x3bf6c6(0x23a)](),this[_0x3bf6c6(0x378)]();}[_0x3b57cd(0x2ab)](_0x4ca3d7){const _0x46b009=_0x3b57cd;_0x4ca3d7[_0x46b009(0x20b)]===b['JOIN']?this[_0x46b009(0x55c)](_0x4ca3d7):_0x4ca3d7['cmd']===b[_0x46b009(0x595)]&&this[_0x46b009(0x32f)](_0x4ca3d7);}['_joinRoom'](_0x3d1c58){const _0x539f0a=_0x3b57cd;this[_0x539f0a(0x1ad)][_0x539f0a(0x3b8)](0x1),_0x3d1c58['send']({'cmd':b[_0x539f0a(0x193)],'routeKey':this[_0x539f0a(0x526)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x3b57cd(0x55c)](_0x1cfa51){const _0x280bcc=_0x3b57cd;var _0x1bea44;if(_0x1cfa51['code']===Ge['FAIL']){this[_0x280bcc(0x4e1)][_0x280bcc(0x2e8)]({'type':J[_0x280bcc(0x502)]['Warning'],'content':this['_localeService']['t'](_0x280bcc(0x17d))}),this[_0x280bcc(0x1ad)][_0x280bcc(0x3b8)](0x2);return;}this['_sessionStatus$'][_0x280bcc(0x3b8)](0x3);const _0xe37486=(_0x1bea44=_0x1cfa51[_0x280bcc(0x30a)][_0x280bcc(0x190)][this['_unitID']])==null?void 0x0:_0x1bea44[_0x280bcc(0x38c)];_0xe37486&&_0xe37486[_0x280bcc(0x571)](_0x186f3f=>this[_0x280bcc(0x312)][_0x280bcc(0x2ee)](this[_0x280bcc(0x526)],_0x186f3f));}[_0x3b57cd(0x32f)](_0x27b7a4){const _0x4e4f34=_0x3b57cd;try{const _0x12268a=_0x27b7a4[_0x4e4f34(0x30a)];switch(_0x12268a[_0x4e4f34(0x2f8)]){case _[_0x4e4f34(0x556)][_0x4e4f34(0x4ff)]:this[_0x4e4f34(0x317)](_0x12268a),this[_0x4e4f34(0x519)][_0x4e4f34(0x3b8)](_0x12268a);break;case _[_0x4e4f34(0x556)][_0x4e4f34(0x40e)]:this['_onUserLeave'](_0x12268a),this['_event$']['next'](_0x12268a);break;case _[_0x4e4f34(0x556)][_0x4e4f34(0x1a1)]:case _[_0x4e4f34(0x556)][_0x4e4f34(0x2c0)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x4e4f34(0x3b8)](_0x12268a);break;case _[_0x4e4f34(0x556)][_0x4e4f34(0x3f5)]:this['_logService'][_0x4e4f34(0x37f)](_0x4e4f34(0x528)+JSON[_0x4e4f34(0x2fc)](_0x12268a)),this[_0x4e4f34(0x519)][_0x4e4f34(0x3b8)](_0x12268a);break;case _['CollaborationEvent'][_0x4e4f34(0x574)]:this['_commentService'][_0x4e4f34(0x40a)](_0x12268a[_0x4e4f34(0x30a)]),this[_0x4e4f34(0x519)][_0x4e4f34(0x3b8)](_0x12268a);break;default:this[_0x4e4f34(0x519)][_0x4e4f34(0x3b8)](_0x12268a);}}catch(_0x436b53){this[_0x4e4f34(0x45c)][_0x4e4f34(0x37f)](_0x436b53,_0x27b7a4);}}[_0x3b57cd(0x317)](_0x700516){const _0x143466=_0x3b57cd;this['_memberService'][_0x143466(0x2ee)](this[_0x143466(0x526)],_0x700516[_0x143466(0x30a)]);}[_0x3b57cd(0x2a6)](_0x57c941){const _0x57e3d9=_0x3b57cd;this[_0x57e3d9(0x312)][_0x57e3d9(0x580)](this[_0x57e3d9(0x526)],_0x57c941[_0x57e3d9(0x30a)][_0x57e3d9(0x42a)]);}async[_0x3b57cd(0x1e8)](_0x529b14,_0x1c1ed2){const _0x13e7fe=_0x3b57cd;if(this[_0x13e7fe(0x36e)]!==0x3||!this[_0x13e7fe(0x236)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x529b14[_0x13e7fe(0x2f8)]===_[_0x13e7fe(0x556)]['SUBMIT_CHANGESET']&&(this[_0x13e7fe(0x411)](),this['_startTelemetryCollaborationNewChangeset'](_0x529b14)),this['_socket']['send']({'cmd':b[_0x13e7fe(0x591)],'routeKey':_0x1c1ed2,'routeType':'','data':_0x529b14});}catch(_0x25edbb){this[_0x13e7fe(0x45c)][_0x13e7fe(0x37f)](_0x25edbb);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2d9217=_0x3b57cd;var _0x3db5ce;this[_0x2d9217(0x58e)]=window['setTimeout'](()=>{const _0x4f001a=_0x2d9217;this[_0x4f001a(0x58e)]=null,this['_messageService'][_0x4f001a(0x2e8)]({'type':J[_0x4f001a(0x502)]['Error'],'content':this[_0x4f001a(0x4fd)]['t'](_0x4f001a(0x265))});},(_0x3db5ce=this[_0x2d9217(0x490)][_0x2d9217(0x38e)](Fe))!=null?_0x3db5ce:gt);}[_0x3b57cd(0x575)](){const _0x55b84b=_0x3b57cd;this[_0x55b84b(0x58e)]&&(clearTimeout(this[_0x55b84b(0x58e)]),this['_collaborationTimeoutTimer']=null);}[_0x3b57cd(0x354)](_0x3b9c6b){const _0x1f5021=_0x3b57cd;if(!this[_0x1f5021(0x3d4)])return;const {data:_0x33b7f1}=_0x3b9c6b,{unitID:_0x3d292e,changeset:_0x310c66}=_0x33b7f1,{mutations:_0x5794ec,type:_0x46eb05}=_0x310c66;this[_0x1f5021(0x298)]={'unitId':_0x3d292e,'type':_0x46eb05,'startTime':performance[_0x1f5021(0x1c7)](),'stopTime':0x0,'duration':0x0,'size':us(_0x5794ec)};}[_0x3b57cd(0x349)](){const _0x2b35c1=_0x3b57cd;if(this[_0x2b35c1(0x3d4)]){if(!this[_0x2b35c1(0x298)]){this[_0x2b35c1(0x45c)]['error'](_0x2b35c1(0x292),_0x2b35c1(0x56e));return;}this[_0x2b35c1(0x298)]['stopTime']=performance[_0x2b35c1(0x1c7)](),this['_telemetryInfo'][_0x2b35c1(0x4de)]=this['_telemetryInfo'][_0x2b35c1(0x440)]-this[_0x2b35c1(0x298)][_0x2b35c1(0x54f)],this['_telemetryService'][_0x2b35c1(0x457)](_s,this['_telemetryInfo']),this[_0x2b35c1(0x298)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x4458c1=_0x3b57cd;this[_0x4458c1(0x298)]=null;}},exports[_0x3b57cd(0x2e9)]=Is([G(0x2,a[_0x3b57cd(0x4e7)]),G(0x3,A[_0x3b57cd(0x560)]),G(0x4,A[_0x3b57cd(0x1ee)]),G(0x5,a[_0x3b57cd(0x2f9)]),G(0x6,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)])),G(0x7,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x2e4)])),G(0x8,a[_0x3b57cd(0x4ad)](Ke)),G(0x9,a[_0x3b57cd(0x200)](Kt[_0x3b57cd(0x3e2)]))],exports['CollaborationSession']);var ps=Object['defineProperty'],Cs=Object[_0x3b57cd(0x35f)],Es=(_0xac1b66,_0x248c99,_0x5f50a4,_0x1973f5)=>{const _0x388f72=_0x3b57cd;for(var _0x4f6204=_0x1973f5>0x1?void 0x0:_0x1973f5?Cs(_0x248c99,_0x5f50a4):_0x248c99,_0x5ea66f=_0xac1b66[_0x388f72(0x54c)]-0x1,_0x256ff2;_0x5ea66f>=0x0;_0x5ea66f--)(_0x256ff2=_0xac1b66[_0x5ea66f])&&(_0x4f6204=(_0x1973f5?_0x256ff2(_0x248c99,_0x5f50a4,_0x4f6204):_0x256ff2(_0x4f6204))||_0x4f6204);return _0x1973f5&&_0x4f6204&&ps(_0x248c99,_0x5f50a4,_0x4f6204),_0x4f6204;},ee=(_0x454c00,_0x9b1077)=>(_0x4e9f67,_0x225e74)=>_0x9b1077(_0x4e9f67,_0x225e74,_0x454c00);exports[_0x3b57cd(0x28d)]=class extends a['Disposable']{constructor(_0x251cd7,_0x13ced6,_0x5100ea,_0x438717,_0x2d7eaa,_0x479f69){const _0x454d43=_0x3b57cd;super(),u(this,_0x454d43(0x2a1),new v['BehaviorSubject'](void 0x0)),u(this,_0x454d43(0x472),this[_0x454d43(0x2a1)][_0x454d43(0x355)]()),u(this,_0x454d43(0x21a),null),u(this,_0x454d43(0x1db),new Map()),u(this,_0x454d43(0x27e),new v[(_0x454d43(0x470))](x[_0x454d43(0x2b5)])),u(this,_0x454d43(0x533),this[_0x454d43(0x27e)]['asObservable']()),u(this,_0x454d43(0x38b),!0x1),u(this,_0x454d43(0x1ab)),u(this,_0x454d43(0x453),0x0),u(this,_0x454d43(0x501)),u(this,_0x454d43(0x551)),(this[_0x454d43(0x486)]=_0x251cd7,this[_0x454d43(0x4fd)]=_0x13ced6,this[_0x454d43(0x4e1)]=_0x5100ea,this['_logService']=_0x438717,this[_0x454d43(0x490)]=_0x2d7eaa,this['_socketService']=_0x479f69,this[_0x454d43(0x40c)]());}get['_socket'](){const _0x2656ee=_0x3b57cd;return this[_0x2656ee(0x2a1)]['getValue']();}[_0x3b57cd(0x40c)](){const _0x2f02c0=_0x3b57cd;this[_0x2f02c0(0x4d4)](),this['_listenToOnlineEvent']();}[_0x3b57cd(0x378)](){const _0x113572=_0x3b57cd;super['dispose'](),this['_sessions'][_0x113572(0x571)](_0x2ae46a=>_0x2ae46a[_0x113572(0x378)]()),this[_0x113572(0x1db)][_0x113572(0x1c2)](),this['_status$']['complete']();}async[_0x3b57cd(0x55b)](_0x480178){const _0x1339af=_0x3b57cd;if(this[_0x1339af(0x1db)]['has'](_0x480178))return this[_0x1339af(0x1db)][_0x1339af(0x4e6)](_0x480178);this[_0x1339af(0x544)]();const _0x5d6b35=this['_injector']['createInstance'](exports[_0x1339af(0x2e9)],_0x480178,this['_socket$'][_0x1339af(0x355)]());return this[_0x1339af(0x1db)][_0x1339af(0x4af)](_0x480178,_0x5d6b35),_0x5d6b35;}[_0x3b57cd(0x2da)](_0x2de6a3){const _0x320bf1=_0x3b57cd;var _0x240fad;const _0x39f3ad=this[_0x320bf1(0x1db)][_0x320bf1(0x4e6)](_0x2de6a3);_0x39f3ad&&(this[_0x320bf1(0x1db)][_0x320bf1(0x524)](_0x2de6a3),_0x39f3ad['close']()),this[_0x320bf1(0x1db)][_0x320bf1(0x4ba)]||(_0x240fad=this[_0x320bf1(0x236)])==null||_0x240fad[_0x320bf1(0x3bd)]();}[_0x3b57cd(0x36d)](){const _0x33202b=_0x3b57cd;this[_0x33202b(0x453)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x33202b(0x1ab)]),this['_retryConnectingTimer']=null),this[_0x33202b(0x173)]();}['_createSocket'](){const _0x4a5f72=_0x3b57cd;var _0x2013ec,_0x32c74b;const _0x622da5=this['_configService'][_0x4a5f72(0x38e)](vt),_0x180e94=this['_configService']['getConfig']($),_0x3cbaae=(_0x32c74b=(_0x2013ec=_0x180e94==null?void 0x0:_0x180e94[_0x4a5f72(0x20e)])!=null?_0x2013ec:_0x622da5)!=null?_0x32c74b:Qt,_0x1e1789=this[_0x4a5f72(0x3ac)][_0x4a5f72(0x273)](_0x3cbaae);return this[_0x4a5f72(0x21a)]=_0x1e1789,_0x1e1789;}['_tryEnsureSocket'](){const _0x37cf49=_0x3b57cd;var _0x1015ac,_0x2e5943;try{const _0x543729=(_0x2e5943=(_0x1015ac=this[_0x37cf49(0x236)])!=null?_0x1015ac:this[_0x37cf49(0x21a)])!=null?_0x2e5943:this['_createSocket']();if(_0x543729){const _0x42d0f6=_0x543729[_0x37cf49(0x1e8)];_0x543729[_0x37cf49(0x1e8)]=_0x2229e7=>(this[_0x37cf49(0x229)](),_0x42d0f6[_0x37cf49(0x586)](_0x543729,[_0x2229e7])),_0x543729[_0x37cf49(0x264)][_0x37cf49(0x508)](_0x228c8c=>this[_0x37cf49(0x396)](_0x543729,_0x228c8c)),_0x543729[_0x37cf49(0x2dc)][_0x37cf49(0x3b4)](E['take'](0x1))[_0x37cf49(0x508)](_0x131d6b=>this[_0x37cf49(0x45c)]['error'](_0x37cf49(0x55d),_0x131d6b)),_0x543729['open$']['pipe'](E[_0x37cf49(0x341)](0x1))[_0x37cf49(0x508)](()=>{this['_onConnectionOpen'](_0x543729);}),_0x543729[_0x37cf49(0x1e2)][_0x37cf49(0x3b4)](E['take'](0x1))['subscribe'](_0x5b727e=>{const _0x1dfc95=_0x37cf49;this[_0x1dfc95(0x45c)][_0x1dfc95(0x3ec)](_0x1dfc95(0x426),_0x1dfc95(0x530),_0x5b727e),this[_0x1dfc95(0x2e2)]();});}}catch(_0x35ae6b){this['_logService'][_0x37cf49(0x37f)](_0x35ae6b),this[_0x37cf49(0x2e2)]();}}[_0x3b57cd(0x2a4)](_0x277d3c){const _0x4e0eef=_0x3b57cd;this[_0x4e0eef(0x45c)][_0x4e0eef(0x3ec)](_0x4e0eef(0x426),'socket\x20open.'),_0x277d3c[_0x4e0eef(0x1e8)]({'cmd':b[_0x4e0eef(0x43e)]}),this['_rescheduleHeartbeat']();}[_0x3b57cd(0x4d4)](){const _0x64f3f9=_0x3b57cd;window[_0x64f3f9(0x1ba)](_0x64f3f9(0x359),()=>this['_onOffline']());}['_onOffline'](){const _0x51877c=_0x3b57cd;this['_socketReady']=!0x1,this['_candidateSocket']=null,this[_0x51877c(0x27e)][_0x51877c(0x3b8)](x[_0x51877c(0x590)]),this[_0x51877c(0x2a1)][_0x51877c(0x3b8)](null),this[_0x51877c(0x2c7)](),this[_0x51877c(0x25c)]();}[_0x3b57cd(0x2e2)](){const _0xab719b=_0x3b57cd;var _0x596148;this[_0xab719b(0x32a)](),this['_retryCount']<((_0x596148=this[_0xab719b(0x490)][_0xab719b(0x38e)](ft))!=null?_0x596148:ss)?(this[_0xab719b(0x4e1)][_0xab719b(0x2e8)]({'key':_0xab719b(0x48f),'type':J[_0xab719b(0x502)][_0xab719b(0x46b)],'content':this[_0xab719b(0x4fd)]['t'](_0xab719b(0x19d))}),this[_0xab719b(0x173)]()):this[_0xab719b(0x4e1)][_0xab719b(0x2e8)]({'key':_0xab719b(0x48f),'type':J[_0xab719b(0x502)][_0xab719b(0x4db)],'content':this[_0xab719b(0x4fd)]['t']('session.connection-failed')});}[_0x3b57cd(0x17c)](){const _0xbd358b=_0x3b57cd,_0x20ab50=()=>{const _0x36b2c3=_0x4497;this['_socket']||this[_0x36b2c3(0x36d)]();},_0x2dfec3=()=>{const _0x520152=_0x4497;this[_0x520152(0x236)]||document['visibilityState']===_0x520152(0x353)||this[_0x520152(0x36d)]();};window[_0xbd358b(0x1ba)]('online',_0x20ab50),document[_0xbd358b(0x1ba)](_0xbd358b(0x437),_0x2dfec3);}[_0x3b57cd(0x173)](){const _0xa0bfe9=_0x3b57cd;var _0x43a028;const _0x584521=this[_0xa0bfe9(0x453)],_0x28d34c=this[_0xa0bfe9(0x490)][_0xa0bfe9(0x38e)]($),_0x4ec14d=_0x584521===0x0?0x0:((_0x43a028=_0x28d34c==null?void 0x0:_0x28d34c[_0xa0bfe9(0x1b6)])!=null?_0x43a028:ts)*0x2**_0x584521;this[_0xa0bfe9(0x1ab)]=window[_0xa0bfe9(0x247)](()=>{const _0x202e36=_0xa0bfe9;clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this[_0x202e36(0x544)]();},_0x4ec14d),this[_0xa0bfe9(0x453)]+=0x1;}[_0x3b57cd(0x396)](_0x8cddc9,_0x3fbfcb){const _0x5bf146=_0x3b57cd,{cmd:_0x54fcf4}=_0x3fbfcb;_0x54fcf4===b[_0x5bf146(0x43e)]&&!this[_0x5bf146(0x38b)]&&(_0x8cddc9[_0x5bf146(0x42a)]=_0x3fbfcb[_0x5bf146(0x30a)][_0x5bf146(0x42a)],this[_0x5bf146(0x2a1)][_0x5bf146(0x3b8)](_0x8cddc9),this[_0x5bf146(0x27e)][_0x5bf146(0x3b8)](x[_0x5bf146(0x2a9)]),this[_0x5bf146(0x38b)]=!0x0,this[_0x5bf146(0x21a)]=null),_0x54fcf4===b['HEARTBEAT']&&this[_0x5bf146(0x2c7)](),this[_0x5bf146(0x229)]();}[_0x3b57cd(0x229)](){const _0xd6da4f=_0x3b57cd;var _0x5d7888;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0xd6da4f(0x247)](()=>this[_0xd6da4f(0x2cd)](),(_0x5d7888=this[_0xd6da4f(0x490)][_0xd6da4f(0x38e)](mt))!=null?_0x5d7888:es);}['_sendHeartbeat'](){const _0x482367=_0x3b57cd;this[_0x482367(0x236)][_0x482367(0x1e8)]({'cmd':b[_0x482367(0x410)]}),this[_0x482367(0x218)]();}[_0x3b57cd(0x218)](){const _0x49b476=_0x3b57cd;var _0xf9bc30;this['_timeoutTimer']=window[_0x49b476(0x247)](()=>this['_onConnectionFailed'](),(_0xf9bc30=this['_configService']['getConfig'](Fe))!=null?_0xf9bc30:gt);}[_0x3b57cd(0x25c)](){const _0x456b18=_0x3b57cd;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x456b18(0x501)]),this[_0x456b18(0x501)]=null);}[_0x3b57cd(0x2c7)](){const _0x2a5162=_0x3b57cd;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x2a5162(0x551)]),this[_0x2a5162(0x551)]=null);}},exports['CollaborationSessionService']=Es([ee(0x0,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),ee(0x1,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)])),ee(0x2,A['IMessageService']),ee(0x3,a[_0x3b57cd(0x4e7)]),ee(0x4,a['IConfigService']),ee(0x5,Ye)],exports['CollaborationSessionService']);var R=[];for(var ye=0x0;ye<0x100;++ye)R[_0x3b57cd(0x41e)]((ye+0x100)[_0x3b57cd(0x3b0)](0x10)[_0x3b57cd(0x31a)](0x1));function bs(_0x196b67,_0x450331=0x0){const _0x297b22=_0x3b57cd;return(R[_0x196b67[_0x450331+0x0]]+R[_0x196b67[_0x450331+0x1]]+R[_0x196b67[_0x450331+0x2]]+R[_0x196b67[_0x450331+0x3]]+'-'+R[_0x196b67[_0x450331+0x4]]+R[_0x196b67[_0x450331+0x5]]+'-'+R[_0x196b67[_0x450331+0x6]]+R[_0x196b67[_0x450331+0x7]]+'-'+R[_0x196b67[_0x450331+0x8]]+R[_0x196b67[_0x450331+0x9]]+'-'+R[_0x196b67[_0x450331+0xa]]+R[_0x196b67[_0x450331+0xb]]+R[_0x196b67[_0x450331+0xc]]+R[_0x196b67[_0x450331+0xd]]+R[_0x196b67[_0x450331+0xe]]+R[_0x196b67[_0x450331+0xf]])[_0x297b22(0x287)]();}var Se,Ts=new Uint8Array(0x10);function Rs(){const _0x1ce2a0=_0x3b57cd;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x1ce2a0(0x4a7)]&&crypto[_0x1ce2a0(0x4a7)]['bind'](crypto),!Se))throw new Error(_0x1ce2a0(0x329));return Se(Ts);}var Os=typeof crypto<'u'&&crypto[_0x3b57cd(0x489)]&&crypto['randomUUID'][_0x3b57cd(0x555)](crypto);const tt={'randomUUID':Os};function Ds(_0x34693d,_0x248039,_0x1a72c4){const _0x4aec2=_0x3b57cd;if(tt['randomUUID']&&!_0x248039&&!_0x34693d)return tt[_0x4aec2(0x489)]();_0x34693d=_0x34693d||{};var _0x36de73=_0x34693d[_0x4aec2(0x308)]||(_0x34693d[_0x4aec2(0x228)]||Rs)();return _0x36de73[0x6]=_0x36de73[0x6]&0xf|0x40,_0x36de73[0x8]=_0x36de73[0x8]&0x3f|0x80,bs(_0x36de73);}var ys=Object[_0x3b57cd(0x44e)],Us=Object[_0x3b57cd(0x35f)],Ps=(_0x40237d,_0x470929,_0x1e219f,_0x3b3f77)=>{const _0x2b407c=_0x3b57cd;for(var _0x183b68=_0x3b3f77>0x1?void 0x0:_0x3b3f77?Us(_0x470929,_0x1e219f):_0x470929,_0x3bfffd=_0x40237d[_0x2b407c(0x54c)]-0x1,_0x53ad76;_0x3bfffd>=0x0;_0x3bfffd--)(_0x53ad76=_0x40237d[_0x3bfffd])&&(_0x183b68=(_0x3b3f77?_0x53ad76(_0x470929,_0x1e219f,_0x183b68):_0x53ad76(_0x183b68))||_0x183b68);return _0x3b3f77&&_0x183b68&&ys(_0x470929,_0x1e219f,_0x183b68),_0x183b68;},Ue=(_0x2734da,_0x102565)=>(_0x595062,_0x34f166)=>_0x102565(_0x595062,_0x34f166,_0x2734da);let fe=class{constructor(_0x455608,_0x19768d,_0x306393){const _0x538e43=_0x3b57cd;this[_0x538e43(0x486)]=_0x455608,this[_0x538e43(0x4be)]=_0x19768d,this[_0x538e43(0x189)]=_0x306393;}[_0x3b57cd(0x29d)](_0x4c5f7f){const _0x52cb76=_0x3b57cd;this[_0x52cb76(0x18e)](_0x4c5f7f),this[_0x52cb76(0x32e)](_0x4c5f7f);}[_0x3b57cd(0x393)](_0x1fb3c9){const _0x583d3e=_0x3b57cd,{unitID:_0xe90380}=_0x1fb3c9,_0x2437fe=this['_renderManagerService'][_0x583d3e(0x19a)](_0xe90380)[_0x583d3e(0x466)](N[_0x583d3e(0x3f3)]),{redoCache:_0x1fd6ed}=_0x2437fe[_0x583d3e(0x521)]();if(_0x1fd6ed[_0x583d3e(0x54c)]===0x0)return _0x1fb3c9;let _0x5077e7=a[_0x583d3e(0x2a0)]['deepClone'](_0x1fb3c9[_0x583d3e(0x3fa)][0x0]);for(let _0x3b056c=0x0;_0x3b056c<_0x1fd6ed[_0x583d3e(0x54c)];_0x3b056c++){const _0x3617a1={'id':_0x583d3e(0x3e1),'params':{..._0x1fd6ed[_0x3b056c]}},_0x243ed9=this['_transformService'][_0x583d3e(0x49c)](_0x5077e7,_0x3617a1,!0x1);if(_[_0x583d3e(0x3d0)](_0x243ed9))throw _0x243ed9['error'];_0x5077e7=_0x243ed9[_0x583d3e(0x3a2)];}return{...a[_0x583d3e(0x2a0)][_0x583d3e(0x413)](_0x1fb3c9),'mutations':[_0x5077e7]};}['_transformUndoRedoStack'](_0x5689b7){const _0x34b271=_0x3b57cd,{unitID:_0x42a1ae}=_0x5689b7,_0x22b5cd=this[_0x34b271(0x189)][_0x34b271(0x19a)](_0x42a1ae)['with'](N[_0x34b271(0x3f3)]),{undoCache:_0x5acf68,redoCache:_0x447fa5}=_0x22b5cd['getUndoRedoMutationParamsCache']();if(_0x5acf68[_0x34b271(0x54c)]===0x0||_0x447fa5[_0x34b271(0x54c)]===0x0)return;const _0x31e36e=[],_0x15ea6b=[];let _0x4412d4=a[_0x34b271(0x2a0)][_0x34b271(0x413)](_0x5689b7['mutations'][0x0]),_0x3e3bcd=a[_0x34b271(0x2a0)][_0x34b271(0x413)](_0x5689b7[_0x34b271(0x3fa)][0x0]);for(let _0x19d12d=_0x5acf68[_0x34b271(0x54c)]-0x1;_0x19d12d>=0x0;_0x19d12d--){const _0x5dae10={'id':_0x34b271(0x3e1),'params':{..._0x5acf68[_0x19d12d]}},_0x3da811={'id':_0x34b271(0x3e1),'params':{..._0x447fa5[_0x19d12d]}},_0x124e97=this[_0x34b271(0x4be)][_0x34b271(0x49c)](_0x4412d4,_0x5dae10,!0x1),_0x3e1917=this[_0x34b271(0x4be)][_0x34b271(0x49c)](_0x3e3bcd,_0x3da811,!0x1);if(_[_0x34b271(0x3d0)](_0x124e97))throw _0x124e97[_0x34b271(0x37f)];if(_[_0x34b271(0x3d0)](_0x3e1917))throw _0x3e1917[_0x34b271(0x37f)];_0x31e36e[_0x34b271(0x3ff)](_0x124e97[_0x34b271(0x4d8)][_0x34b271(0x333)]),_0x15ea6b['unshift'](_0x3e1917['m2Prime']['params']),_0x4412d4=_0x124e97[_0x34b271(0x3a2)],_0x3e3bcd=_0x3e1917[_0x34b271(0x3a2)];}_0x22b5cd[_0x34b271(0x28e)]({'undoCache':_0x31e36e,'redoCache':_0x15ea6b});}['_transformPreviousActiveRange'](_0x3bc4a6){const _0x53b32c=_0x3b57cd,{unitID:_0x47c4ef}=_0x3bc4a6,_0x5e186e=this[_0x53b32c(0x189)][_0x53b32c(0x19a)](_0x47c4ef)[_0x53b32c(0x466)](N[_0x53b32c(0x3f3)]),_0x428431=_0x5e186e[_0x53b32c(0x351)]();if(_0x428431==null)return;const _0xf58d10=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3bc4a6['unitID'],'actions':null,'textRanges':[_0x428431]}}],_0x48b99f=this[_0x53b32c(0x4be)][_0x53b32c(0x29a)](_0x3bc4a6,_0xf58d10);if(!_[_0x53b32c(0x323)](_0x48b99f))throw _0x48b99f['error'];const _0x4ece51=_0x48b99f[_0x53b32c(0x4d8)][0x0]['params'][_0x53b32c(0x4c4)];Array[_0x53b32c(0x452)](_0x4ece51)&&_0x4ece51['length']&&_0x5e186e[_0x53b32c(0x444)](_0x4ece51[0x0]);}};fe=Ps([Ue(0x0,a['Inject'](a['Injector'])),Ue(0x1,_[_0x3b57cd(0x4d5)]),Ue(0x2,O[_0x3b57cd(0x429)])],fe);var ws=Object[_0x3b57cd(0x44e)],Ns=Object[_0x3b57cd(0x35f)],Ms=(_0x15ded5,_0x442e84,_0x379349,_0x22f494)=>{const _0x14bd78=_0x3b57cd;for(var _0x188a85=_0x22f494>0x1?void 0x0:_0x22f494?Ns(_0x442e84,_0x379349):_0x442e84,_0x1bcd45=_0x15ded5[_0x14bd78(0x54c)]-0x1,_0x316f98;_0x1bcd45>=0x0;_0x1bcd45--)(_0x316f98=_0x15ded5[_0x1bcd45])&&(_0x188a85=(_0x22f494?_0x316f98(_0x442e84,_0x379349,_0x188a85):_0x316f98(_0x188a85))||_0x188a85);return _0x22f494&&_0x188a85&&ws(_0x442e84,_0x379349,_0x188a85),_0x188a85;},ce=(_0x2023a0,_0x3dc4d6)=>(_0x4b350e,_0x347bf8)=>_0x3dc4d6(_0x4b350e,_0x347bf8,_0x2023a0);exports[_0x3b57cd(0x33e)]=class extends a[_0x3b57cd(0x54b)]{constructor(_0x39ad13,_0x6da66,_0x2a5e4a,_0x56a02f,_0x2b7bb4){const _0x55800c=_0x3b57cd;super(),u(this,_0x55800c(0x224),new Map()),u(this,_0x55800c(0x36f),new Map()),u(this,'_disabled',!0x1),(this[_0x55800c(0x490)]=_0x39ad13,this['_localStorageService']=_0x6da66,this[_0x55800c(0x4ec)]=_0x2a5e4a,this[_0x55800c(0x4fd)]=_0x56a02f,this[_0x55800c(0x294)]=_0x2b7bb4,this['_setupBeforeClosingHandler']());}[_0x3b57cd(0x191)](){this['_disabled']=!0x0;}[_0x3b57cd(0x201)](){const _0x45e962=_0x3b57cd;this[_0x45e962(0x3f4)]=!0x1;}['dispose'](){const _0x25ee5b=_0x3b57cd;this['exhaustSavingTask']()[_0x25ee5b(0x210)](()=>super[_0x25ee5b(0x378)]());}async[_0x3b57cd(0x39d)](_0xae8226){const _0x5e6f9b=_0x3b57cd;return this[_0x5e6f9b(0x3f4)]?null:this[_0x5e6f9b(0x36a)][_0x5e6f9b(0x430)](st(_0xae8226));}async[_0x3b57cd(0x4b5)](_0x39a50b,_0x35b6b3){const _0x35b953=_0x3b57cd;return!!this[_0x35b953(0x36a)][_0x35b953(0x22e)](_0x39a50b,_0x35b6b3);}[_0x3b57cd(0x16d)](_0x11dafe,_0x5b347a,_0x4983ba,_0x8bbb39){const _0x15f4da=_0x3b57cd,_0x1aeaf4=this[_0x15f4da(0x294)][_0x15f4da(0x180)](_0x11dafe);this[_0x15f4da(0x224)]['set'](_0x11dafe,{'unitID':_0x11dafe,'type':_0x5b347a,'awaitingChangeset':_0x4983ba,'mutations':_0x8bbb39,'rev':_0x1aeaf4}),this['_saveTaskMap'][_0x15f4da(0x1cf)](_0x11dafe)||this[_0x15f4da(0x276)](_0x11dafe);}[_0x3b57cd(0x276)](_0x5ba6f7){const _0x6c9102=_0x3b57cd,_0x5b14de=this[_0x6c9102(0x3c7)]();_0x5b14de===0x0?this[_0x6c9102(0x1e4)](_0x5ba6f7):this[_0x6c9102(0x36f)][_0x6c9102(0x4af)](_0x5ba6f7,setTimeout(()=>this[_0x6c9102(0x1e4)](_0x5ba6f7),_0x5b14de));}['_getSaveTimeout'](){const _0x484130=_0x3b57cd;var _0x58c458;return(_0x58c458=this['_configService'][_0x484130(0x38e)](It))!=null?_0x58c458:is;}['_saveCache'](_0x49317e){const _0x2175a3=_0x3b57cd,_0x56d72d=this[_0x2175a3(0x36f)][_0x2175a3(0x4e6)](_0x49317e);return _0x56d72d!==void 0x0&&window[_0x2175a3(0x4a2)](_0x56d72d),this[_0x2175a3(0x36a)][_0x2175a3(0x22e)](st(_0x49317e),this[_0x2175a3(0x224)][_0x2175a3(0x4e6)](_0x49317e))[_0x2175a3(0x210)](()=>this[_0x2175a3(0x36f)]['delete'](_0x49317e));}async[_0x3b57cd(0x2d5)](){const _0x28d13c=_0x3b57cd,_0xe9238c=[];this[_0x28d13c(0x36f)][_0x28d13c(0x571)]((_0x19e663,_0xeda99)=>{const _0x421d18=_0x28d13c;window[_0x421d18(0x4a2)](_0x19e663),_0xe9238c[_0x421d18(0x41e)](this[_0x421d18(0x1e4)](_0xeda99)[_0x421d18(0x210)](()=>{const _0x557175=_0x421d18;this[_0x557175(0x36f)]['delete'](_0xeda99);}));}),await Promise[_0x28d13c(0x29b)](_0xe9238c);}[_0x3b57cd(0x2a5)](){const _0xb811fc=_0x3b57cd;this[_0xb811fc(0x431)](this[_0xb811fc(0x4ec)][_0xb811fc(0x58d)](()=>{const _0x32cc9a=_0xb811fc;if(this['_saveTaskMap'][_0x32cc9a(0x4ba)])return this[_0x32cc9a(0x4fd)]['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x3b57cd(0x33e)]=Ms([ce(0x0,a[_0x3b57cd(0x2f9)]),ce(0x1,a['ILocalStorageService']),ce(0x2,A['IBeforeCloseService']),ce(0x3,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)])),ce(0x4,a[_0x3b57cd(0x4ad)](_['RevisionService']))],exports[_0x3b57cd(0x33e)]);function st(_0x19a7fa){const _0x23d1ed=_0x3b57cd;return _0x23d1ed(0x2dd)+_0x19a7fa;}var As=Object[_0x3b57cd(0x44e)],Ls=Object[_0x3b57cd(0x35f)],$s=(_0x3ce533,_0x274b72,_0x508be8,_0x35b2bc)=>{for(var _0x1fe6f7=_0x35b2bc>0x1?void 0x0:_0x35b2bc?Ls(_0x274b72,_0x508be8):_0x274b72,_0x13b084=_0x3ce533['length']-0x1,_0x3eebcc;_0x13b084>=0x0;_0x13b084--)(_0x3eebcc=_0x3ce533[_0x13b084])&&(_0x1fe6f7=(_0x35b2bc?_0x3eebcc(_0x274b72,_0x508be8,_0x1fe6f7):_0x3eebcc(_0x1fe6f7))||_0x1fe6f7);return _0x35b2bc&&_0x1fe6f7&&As(_0x274b72,_0x508be8,_0x1fe6f7),_0x1fe6f7;},Pe=(_0x29991a,_0x45525c)=>(_0x5580bf,_0x396210)=>_0x45525c(_0x5580bf,_0x396210,_0x29991a);function js(_0x49b07e){const _0x4ea186=_0x3b57cd,{unitID:_0x5426c5,mutations:_0x5892c5}=_0x49b07e;return{'unitId':_0x5426c5,'subUnitId':_0x5892c5[0x0]['params'][_0x4ea186(0x376)]};}let Ie=class{constructor(_0x5cefa3,_0x210804,_0x5c25b4){const _0x2d9477=_0x3b57cd;this[_0x2d9477(0x486)]=_0x5cefa3,this['_transformService']=_0x210804,this[_0x2d9477(0x46f)]=_0x5c25b4;}[_0x3b57cd(0x578)](_0xbb2a02){const _0x343697=_0x3b57cd;var _0x236465,_0x19e395,_0x29cf2a,_0x439b74;const _0x30dfec=this['_injector']['get'](C['SheetsSelectionsService']),{unitId:_0x547362,subUnitId:_0x172e59}=js(_0xbb2a02),_0x5ebf9e=_0x30dfec[_0x343697(0x1ce)](_0x547362)[_0x343697(0x417)](),_0x29c6ce=(_0x19e395=(_0x236465=this[_0x343697(0x46f)][_0x343697(0x455)](_0x547362))==null?void 0x0:_0x236465['getActiveSheet']())==null?void 0x0:_0x19e395[_0x343697(0x49b)]();if(_0x5ebf9e[_0x343697(0x54c)]===0x0||!_0x547362||!_0x172e59)return;const _0x446e12=[{'id':C[_0x343697(0x4e2)]['id'],'params':{'unitId':_0x547362,'subUnitId':_0x29c6ce,'selections':a[_0x343697(0x2a0)][_0x343697(0x413)](_0x5ebf9e)}}],_0x59591d=this[_0x343697(0x4be)][_0x343697(0x29a)](_0xbb2a02,_0x446e12);if(!_[_0x343697(0x323)](_0x59591d))throw _0x59591d[_0x343697(0x37f)];const _0xc590b2=(_0x439b74=(_0x29cf2a=_0x59591d[_0x343697(0x4d8)][0x0])==null?void 0x0:_0x29cf2a['params'])==null?void 0x0:_0x439b74[_0x343697(0x255)];if(Array[_0x343697(0x452)](_0xc590b2)&&_0xc590b2['length']){if(_0xc590b2['length']===_0x446e12[0x0]['params'][_0x343697(0x255)][_0x343697(0x54c)]&&_0xc590b2[_0x343697(0x212)]((_0x1eb8ce,_0x3c5908)=>a[_0x343697(0x186)]['equals'](_0x1eb8ce[_0x343697(0x53d)],_0x446e12[0x0][_0x343697(0x333)][_0x343697(0x255)][_0x3c5908][_0x343697(0x53d)])))return;this[_0x343697(0x486)][_0x343697(0x4e6)](a[_0x343697(0x17e)])['executeCommand'](C[_0x343697(0x4e2)]['id'],{'unitId':_0x547362,'subUnitId':_0x29c6ce,'selections':_0xc590b2});}}};Ie=$s([Pe(0x0,a[_0x3b57cd(0x4ad)](a['Injector'])),Pe(0x1,_[_0x3b57cd(0x4d5)]),Pe(0x2,a[_0x3b57cd(0x424)])],Ie);const Re=a['createIdentifier'](_0x3b57cd(0x360));var Ot=(_0x321e66=>(_0x321e66[_0x321e66[_0x3b57cd(0x2b1)]=0x0]=_0x3b57cd(0x2b1),_0x321e66[_0x321e66[_0x3b57cd(0x474)]=0x1]='OTHER_CLIENTS_EDITING',_0x321e66))(Ot||{});const it=0x7530,nt='ACTIVE_UNIT_EVENT_CHANNEL';class Hs extends a[_0x3b57cd(0x54b)]{constructor(){const _0xc07bb=_0x3b57cd;super(),u(this,_0xc07bb(0x3c9),a['Tools'][_0xc07bb(0x3e4)]()),u(this,_0xc07bb(0x4cb),new Set()),u(this,_0xc07bb(0x1fa),new Map()),u(this,_0xc07bb(0x3b6),null),u(this,'_clearOtherTimers',new Map()),u(this,'_unitStatus',new Map()),this['_init']();}[_0x3b57cd(0x378)](){const _0x33fa63=_0x3b57cd;super[_0x33fa63(0x378)](),this[_0x33fa63(0x254)][_0x33fa63(0x571)]((_0x2da420,_0x40cb41)=>this['_removeClearOtherTimer'](_0x40cb41)),this['_heartbeatTimer']&&window[_0x33fa63(0x2ea)](this[_0x33fa63(0x3b6)]);}[_0x3b57cd(0x282)](_0x56688a){const _0xe0c08a=_0x3b57cd;return this[_0xe0c08a(0x184)](_0x56688a)[_0xe0c08a(0x3b4)](v['distinctUntilChanged']());}[_0x3b57cd(0x253)](_0x45b7){const _0x54d1f8=_0x3b57cd;this['_selfUnitIDs'][_0x54d1f8(0x4ba)]===0x0&&this[_0x54d1f8(0x1b4)](),this[_0x54d1f8(0x4cb)]['add'](_0x45b7),this[_0x54d1f8(0x1ac)]({'type':0x0,'memberID':this[_0x54d1f8(0x3c9)],'unitIDs':[_0x45b7],'isForwarded':!0x1});}[_0x3b57cd(0x27b)](_0x55401f){const _0x283bf4=_0x3b57cd;this[_0x283bf4(0x4cb)][_0x283bf4(0x524)](_0x55401f),this[_0x283bf4(0x4cb)][_0x283bf4(0x4ba)]===0x0&&this[_0x283bf4(0x3b6)]&&window[_0x283bf4(0x2ea)](this[_0x283bf4(0x3b6)]);}['_init'](){const _0x578ff8=_0x3b57cd;this['disposeWithMe'](a[_0x578ff8(0x44c)](v['fromEvent'](window,_0x578ff8(0x2c8))[_0x578ff8(0x508)](_0x29b910=>{const _0x32f711=_0x578ff8;if(_0x29b910[_0x32f711(0x198)]!==nt||!_0x29b910[_0x32f711(0x394)])return;const _0x451aa4=JSON[_0x32f711(0x42d)](_0x29b910['newValue']);this['_handleEvent'](_0x451aa4);}))),window[_0x578ff8(0x1ba)](_0x578ff8(0x3f0),()=>this[_0x578ff8(0x1ac)]({'type':0x1,'memberID':this[_0x578ff8(0x3c9)],'unitIDs':Array[_0x578ff8(0x348)](this[_0x578ff8(0x4cb)])}));}[_0x3b57cd(0x553)](_0x5dc029){const _0x997d7e=_0x3b57cd;switch(_0x5dc029['type']){case 0x0:this[_0x997d7e(0x3da)](_0x5dc029);break;case 0x1:this['_handleLeaveEvent'](_0x5dc029);break;case 0x2:this[_0x997d7e(0x1fb)](_0x5dc029);break;}}['_handleJoinEvent'](_0x366a90){const _0x2a3f2a=_0x3b57cd,{unitIDs:_0x98f9b4,memberID:_0x5268b1,isForwarded:_0x4f7316}=_0x366a90;_0x98f9b4[_0x2a3f2a(0x571)](_0x20bc2a=>{const _0x53ef05=_0x2a3f2a;if(!_0x4f7316&&this[_0x53ef05(0x1fa)][_0x53ef05(0x1cf)](_0x20bc2a)&&this[_0x53ef05(0x184)](_0x20bc2a)[_0x53ef05(0x3b8)](0x1),!this[_0x53ef05(0x1fa)]['has'](_0x20bc2a)||!this[_0x53ef05(0x1fa)][_0x53ef05(0x4e6)](_0x20bc2a)[_0x53ef05(0x1cf)](_0x5268b1)){const _0x551c88=this['_unitOnClients'][_0x53ef05(0x4e6)](_0x20bc2a)||new Set();_0x551c88['add'](_0x5268b1),this['_unitOnClients'][_0x53ef05(0x4af)](_0x20bc2a,_0x551c88),this[_0x53ef05(0x2ac)](_0x5268b1);}}),_0x4f7316||this[_0x2a3f2a(0x1ac)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2a3f2a(0x4cb)]],'isForwarded':!0x0});}[_0x3b57cd(0x2ac)](_0x23b4c2){const _0x5508f3=_0x3b57cd;this['_removeClearOtherTimer'](_0x23b4c2);const _0x1f9761=window[_0x5508f3(0x247)](()=>{const _0x3ca6dd=_0x5508f3;this['_unitOnClients'][_0x3ca6dd(0x571)](_0x4bbbcd=>{const _0x295d0e=_0x3ca6dd;_0x4bbbcd[_0x295d0e(0x524)](_0x23b4c2);});},it*0x2);this['_clearOtherTimers'][_0x5508f3(0x4af)](_0x23b4c2,_0x1f9761);}['_removeClearOtherTimer'](_0x2ba97e){const _0x44854f=_0x3b57cd;if(this[_0x44854f(0x254)]['has'](_0x2ba97e)){const _0x1cf6c8=this[_0x44854f(0x254)][_0x44854f(0x4e6)](_0x2ba97e);_0x1cf6c8&&window[_0x44854f(0x4a2)](_0x1cf6c8),this[_0x44854f(0x254)][_0x44854f(0x4af)](_0x2ba97e,null);}}[_0x3b57cd(0x23c)](_0x3a9501){const _0x15eb53=_0x3b57cd,{memberID:_0x20c720,unitIDs:_0x4a0e43}=_0x3a9501;_0x4a0e43[_0x15eb53(0x571)](_0x57fb28=>{const _0x1f9910=_0x15eb53;var _0x5c2229;const _0x16e6c9=this[_0x1f9910(0x1fa)]['get'](_0x57fb28);_0x16e6c9&&(_0x16e6c9[_0x1f9910(0x524)](_0x20c720),(_0x5c2229=this[_0x1f9910(0x184)](_0x57fb28))==null||_0x5c2229['next'](_0x16e6c9[_0x1f9910(0x4ba)]===0x0?0x0:0x1));}),this[_0x15eb53(0x1ff)](_0x20c720);}['_handleHeartbeatEvent'](_0x35bd1f){const _0x48334c=_0x3b57cd;this[_0x48334c(0x2ac)](_0x35bd1f[_0x48334c(0x42a)]);}['_send'](_0x7a7bb7){const _0x37b43d=_0x3b57cd;localStorage[_0x37b43d(0x22e)](nt,JSON['stringify'](_0x7a7bb7));}[_0x3b57cd(0x1b4)](){const _0x1f99a6=_0x3b57cd;this[_0x1f99a6(0x3b6)]=window[_0x1f99a6(0x3ea)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},it);}[_0x3b57cd(0x184)](_0x4abf21){const _0x1be7b2=_0x3b57cd;return this[_0x1be7b2(0x484)]['has'](_0x4abf21)||this['_unitStatus'][_0x1be7b2(0x4af)](_0x4abf21,new v['BehaviorSubject'](0x0)),this[_0x1be7b2(0x484)][_0x1be7b2(0x4e6)](_0x4abf21);}}function Dt(_0x2da95d){const _0x4e2b0b=_0x3b57cd;let _0xf3bf22='';for(const _0x2d947a of _0x2da95d){const {startOffset:_0x545aa8,endOffset:_0x5c2ec7,isActive:_0x1c520b,rangeType:_0x765912,segmentId:_0x160749,segmentPage:_0x10555b}=_0x2d947a;_0xf3bf22[_0x4e2b0b(0x54c)]&&(_0xf3bf22+=','),_0xf3bf22+=_0x545aa8+':'+_0x5c2ec7+':'+(_0x1c520b?'1':'0')+':'+_0x765912+':'+_0x160749+':'+_0x10555b;}return _0xf3bf22;}function xs(_0x43d0f4){const _0x415669=_0x3b57cd,_0x49af54=_0x43d0f4['split'](','),_0x534c66=[];for(const _0x29c8f3 of _0x49af54){const [_0x51be07,_0x2d8db0,_0x1f1d1d,_0x11675f,_0x57925a,_0x2602fc]=_0x29c8f3[_0x415669(0x36b)](':');_0x534c66['push']({'startOffset':Number(_0x51be07),'endOffset':Number(_0x2d8db0),'collapsed':_0x51be07===_0x2d8db0,'isActive':_0x1f1d1d==='1','rangeType':_0x11675f===a[_0x415669(0x3d6)][_0x415669(0x235)]?a['DOC_RANGE_TYPE'][_0x415669(0x235)]:a[_0x415669(0x3d6)][_0x415669(0x576)],'segmentId':typeof _0x57925a==_0x415669(0x52f)?String(_0x57925a):'','segmentPage':Number(_0x2602fc!=null?_0x2602fc:-0x1)});}return _0x534c66[_0x415669(0x442)](_0x4e4f20=>_0x4e4f20[_0x415669(0x4df)])||(_0x534c66[0x0][_0x415669(0x4df)]=!0x0),_0x534c66;}class Xe extends a['RxDisposable']{constructor(){const _0x2b87d6=_0x3b57cd;super(...arguments),u(this,'_collabCursorState$',new v[(_0x2b87d6(0x470))](null)),u(this,'collabCursorState$',this[_0x2b87d6(0x1bd)]['asObservable']());}['syncEditingCollabCursor'](_0x3ac6ea){const _0x3672eb=_0x3b57cd,{unitID:_0x507c42,memberID:_0x5753e6,textRanges:_0x3c0d1e}=_0x3ac6ea,_0x21edfd=Dt(_0x3c0d1e);if(_0x21edfd==='')return;const _0x23545e={'unitID':_0x507c42,'memberID':_0x5753e6,'selection':_0x21edfd};this[_0x3672eb(0x1bd)][_0x3672eb(0x3b8)](_0x23545e);}}var ks=Object[_0x3b57cd(0x44e)],Bs=Object[_0x3b57cd(0x35f)],Vs=(_0x4e0ab8,_0x23877f,_0x465ad3,_0x201ec5)=>{const _0x3be48=_0x3b57cd;for(var _0x305068=_0x201ec5>0x1?void 0x0:_0x201ec5?Bs(_0x23877f,_0x465ad3):_0x23877f,_0x2c342f=_0x4e0ab8[_0x3be48(0x54c)]-0x1,_0x1adeab;_0x2c342f>=0x0;_0x2c342f--)(_0x1adeab=_0x4e0ab8[_0x2c342f])&&(_0x305068=(_0x201ec5?_0x1adeab(_0x23877f,_0x465ad3,_0x305068):_0x1adeab(_0x305068))||_0x305068);return _0x201ec5&&_0x305068&&ks(_0x23877f,_0x465ad3,_0x305068),_0x305068;},rt=(_0x4353a8,_0xfc2b62)=>(_0x3a0ec5,_0x2b911e)=>_0xfc2b62(_0x3a0ec5,_0x2b911e,_0x4353a8);let pe=class{constructor(_0x5c1389,_0x3685fa){this['_injector']=_0x5c1389,this['_transformService']=_0x3685fa;}[_0x3b57cd(0x578)](_0x24dbca){const _0x32b97e=_0x3b57cd;var _0x26f49c;const _0x2b14d5=this[_0x32b97e(0x486)][_0x32b97e(0x4e6)](ne['DocSelectionManagerService']),_0x3763e6=(_0x26f49c=_0x2b14d5[_0x32b97e(0x4fa)]())!=null?_0x26f49c:[];if(_0x3763e6[_0x32b97e(0x54c)]===0x0)return;const _0xf7d471=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x24dbca[_0x32b97e(0x234)],'actions':null,'textRanges':_0x3763e6}}],_0x146ed9=this['_transformService'][_0x32b97e(0x29a)](_0x24dbca,_0xf7d471);if(!_['isTransformMutationsWithChangesetSuccess'](_0x146ed9))throw _0x146ed9['error'];const _0x40b319=_0x146ed9[_0x32b97e(0x4d8)][0x0][_0x32b97e(0x333)]['textRanges'];Array['isArray'](_0x40b319)&&_0x40b319[_0x32b97e(0x54c)]&&_0x2b14d5['replaceTextRanges'](_0x40b319,!0x1);}};pe=Vs([rt(0x0,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),rt(0x1,_[_0x3b57cd(0x4d5)])],pe);const Ws=new Set([C[_0x3b57cd(0x178)]['id']]);function ot(_0x27302f,_0x399c49,_0x475227,_0x21ce51,_0x523f83){const _0x3a6a72=_0x3b57cd;var _0x1b55c0,_0x2f8cee,_0x1c1655,_0x56a3b4;const _0x31473c=[];for(const _0x1b0a13 of _0x27302f)if(Ws[_0x3a6a72(0x1cf)](_0x1b0a13['id'])){if(_0x31473c[_0x3a6a72(0x54c)]>0x0)break;_0x31473c['push'](_0x1b0a13);break;}else _0x31473c['push'](_0x1b0a13);const _0x231615=(_0x2f8cee=(_0x1b55c0=_0x523f83[_0x3a6a72(0x176)]())==null?void 0x0:_0x1b55c0[_0x3a6a72(0x2d0)])!=null?_0x2f8cee:_0x3a6a72(0x56c),_0xf995f3=(_0x56a3b4=(_0x1c1655=_0x523f83[_0x3a6a72(0x176)]())==null?void 0x0:_0x1c1655[_0x3a6a72(0x42a)])!=null?_0x56a3b4:'unknown';return{'changeset':{'unitID':_0x399c49,'type':_[_0x3a6a72(0x37a)](_0x475227[_0x3a6a72(0x2fe)](_0x399c49)),'baseRev':_0x21ce51[_0x3a6a72(0x180)](_0x399c49),'revision':0x0,'userID':_0x231615,'memberID':_0xf995f3,'mutations':_0x31473c},'pendingMutations':_0x27302f[_0x3a6a72(0x31a)](_0x31473c['length'])};}function Fs(_0x3e2af1,_0x1ad7eb,_0x1e2789,_0x44d581,_0x79ef06){const _0x1cb06b=_0x3b57cd;var _0x27c6a3,_0x4f7b26,_0x37a859,_0x8ecbb4;const _0x356856=[_0x3e2af1[_0x1cb06b(0x3c4)]((_0x317a15,_0x3a07b1)=>{const _0x336067=_0x1cb06b;var _0x36d7ca;const {id:_0x4f5e43}=_0x317a15,{id:_0x2ebfb4,type:_0x256ce7}=_0x3a07b1,_0x383074=(_0x36d7ca=_0x317a15[_0x336067(0x333)])!=null?_0x36d7ca:{'actions':null},_0x287253=_0x3a07b1[_0x336067(0x333)];if(_0x4f5e43&&_0x4f5e43!==_0x2ebfb4)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x4f5e43+_0x336067(0x3af)+_0x2ebfb4+'.');return{..._0x317a15,'id':_0x2ebfb4,'type':_0x256ce7,'params':{'unitId':_0x287253[_0x336067(0x267)],'textRanges':_0x287253[_0x336067(0x4c4)],'actions':a[_0x336067(0x2c9)][_0x336067(0x374)](_0x383074[_0x336067(0x383)],_0x287253[_0x336067(0x383)])}};},{})],_0x1407c9=(_0x4f7b26=(_0x27c6a3=_0x79ef06['getCurrentUser']())==null?void 0x0:_0x27c6a3[_0x1cb06b(0x2d0)])!=null?_0x4f7b26:_0x1cb06b(0x56c),_0x37a9de=(_0x8ecbb4=(_0x37a859=_0x79ef06[_0x1cb06b(0x176)]())==null?void 0x0:_0x37a859[_0x1cb06b(0x42a)])!=null?_0x8ecbb4:_0x1cb06b(0x56c);return{'changeset':{'unitID':_0x1ad7eb,'type':_[_0x1cb06b(0x37a)](_0x1e2789[_0x1cb06b(0x2fe)](_0x1ad7eb)),'baseRev':_0x44d581[_0x1cb06b(0x180)](_0x1ad7eb),'revision':0x0,'userID':_0x1407c9,'memberID':_0x37a9de,'mutations':_0x356856},'pendingMutations':[]};}function yt(_0x587c51,_0x28664d){const _0x35b917=_0x3b57cd,_0x459a5d=new v['ReplaySubject'](0x1);return setTimeout(()=>_0x459a5d['next'](_0x28664d),_0x587c51),_0x459a5d[_0x35b917(0x355)]()[_0x35b917(0x3b4)](v[_0x35b917(0x341)](0x1));}const Gs={'id':C[_0x3b57cd(0x251)]['id'],'type':a[_0x3b57cd(0x21d)][_0x3b57cd(0x335)],'params':{}};var Ys=Object[_0x3b57cd(0x44e)],Ks=Object['getOwnPropertyDescriptor'],Z=(_0x3c88bf,_0x1afaf9,_0x2dc800,_0x335389)=>{for(var _0x2aa743=_0x335389>0x1?void 0x0:_0x335389?Ks(_0x1afaf9,_0x2dc800):_0x1afaf9,_0x2db7d2=_0x3c88bf['length']-0x1,_0xcb04d0;_0x2db7d2>=0x0;_0x2db7d2--)(_0xcb04d0=_0x3c88bf[_0x2db7d2])&&(_0x2aa743=(_0x335389?_0xcb04d0(_0x1afaf9,_0x2dc800,_0x2aa743):_0xcb04d0(_0x2aa743))||_0x2aa743);return _0x335389&&_0x2aa743&&Ys(_0x1afaf9,_0x2dc800,_0x2aa743),_0x2aa743;},g=(_0x25db29,_0x14b304)=>(_0xa1776f,_0x1ee05d)=>_0x14b304(_0xa1776f,_0x1ee05d,_0x25db29),D=(_0x2fb24e=>(_0x2fb24e[_0x3b57cd(0x53e)]='not_collab',_0x2fb24e['SYNCED']=_0x3b57cd(0x3f2),_0x2fb24e['PENDING']=_0x3b57cd(0x51c),_0x2fb24e[_0x3b57cd(0x557)]=_0x3b57cd(0x2eb),_0x2fb24e[_0x3b57cd(0x35a)]=_0x3b57cd(0x366),_0x2fb24e[_0x3b57cd(0x2a2)]=_0x3b57cd(0x362),_0x2fb24e[_0x3b57cd(0x225)]=_0x3b57cd(0x2fb),_0x2fb24e['OFFLINE']=_0x3b57cd(0x359),_0x2fb24e))(D||{});const Ut=0xea60;class Q{constructor(_0x191b29,_0x33c68f,_0x3a99c1,_0x1a4ea2,_0x23769c,_0x11da60,_0x267cc2,_0x386dad,_0xac1b07){const _0x59ff5f=_0x3b57cd;u(this,'_awaitingChangeset',null),u(this,'_pendingMutations',[]),(this[_0x59ff5f(0x234)]=_0x191b29,this[_0x59ff5f(0x537)]=_0x33c68f,this[_0x59ff5f(0x4cd)]=_0x23769c,this[_0x59ff5f(0x33b)]=_0x11da60,this[_0x59ff5f(0x47e)]=_0x267cc2,this[_0x59ff5f(0x294)]=_0x386dad,this[_0x59ff5f(0x20c)]=_0xac1b07,this[_0x59ff5f(0x365)]=_0x3a99c1,this['_pendingMutations']=_0x1a4ea2);}[_0x3b57cd(0x47b)](_0x5a14aa){const _0xe57182=_0x3b57cd,_0x1a9f3b=this[_0xe57182(0x294)]['getCurrentRevOfUnit'](this[_0xe57182(0x234)]);return _0x5a14aa[_0xe57182(0x1e1)]>_0x1a9f3b+0x1?(this[_0xe57182(0x4cd)][_0xe57182(0x588)]({'from':_0x1a9f3b,'to':_0x5a14aa[_0xe57182(0x1e1)]-0x1}),!0x0):!0x1;}[_0x3b57cd(0x554)](_0x290735){const _0x21d433=_0x3b57cd;this[_0x21d433(0x47e)][_0x21d433(0x24f)](this[_0x21d433(0x234)],_0x290735);}[_0x3b57cd(0x545)](_0xe07cde){const _0x317778=_0x3b57cd;var _0x442837,_0x2646f8;(_0x2646f8=(_0x442837=this[_0x317778(0x4cd)])[_0x317778(0x36c)])==null||_0x2646f8[_0x317778(0x30b)](_0x442837,_0xe07cde);}[_0x3b57cd(0x57e)](_0x472f74){const _0x3f178f=_0x3b57cd;var _0x52a255,_0x4c89a8;return(_0x4c89a8=(_0x52a255=this[_0x3f178f(0x4cd)])['onTransformIME'])==null?void 0x0:_0x4c89a8[_0x3f178f(0x30b)](_0x52a255,_0x472f74);}['_transformRemoteChangesetByIMECache'](_0x4cccef){const _0x36f394=_0x3b57cd;var _0x333fe1,_0x4fa25f,_0x2cca22;return(_0x2cca22=(_0x4fa25f=(_0x333fe1=this['_handler'])[_0x36f394(0x408)])==null?void 0x0:_0x4fa25f[_0x36f394(0x30b)](_0x333fe1,_0x4cccef))!=null?_0x2cca22:_0x4cccef;}[_0x3b57cd(0x48b)](_0x4df3a8){const _0x1fc876=_0x3b57cd;var _0x4f857b,_0x2b0687;if(this[_0x1fc876(0x537)]===H['UNIVER_DOC']){const {unitID:_0x6ada48,mutations:_0x2b83ed,memberID:_0x32fd95}=_0x4df3a8,_0x4f77e5=_0x2b83ed[0x0][_0x1fc876(0x333)][_0x1fc876(0x4c4)];Array[_0x1fc876(0x452)](_0x4f77e5)&&_0x4f77e5[_0x1fc876(0x54c)]>0x0&&((_0x2b0687=(_0x4f857b=this[_0x1fc876(0x4cd)])['onSyncEditingCollabCursor'])==null||_0x2b0687[_0x1fc876(0x30b)](_0x4f857b,{'unitID':_0x6ada48,'memberID':_0x32fd95,'textRanges':_0x4f77e5}));}}[_0x3b57cd(0x32c)](){const _0x19f5d1=_0x3b57cd;this[_0x19f5d1(0x20c)][_0x19f5d1(0x16d)](this['unitID'],this[_0x19f5d1(0x537)],this['_awaitingChangeset'],this[_0x19f5d1(0x344)]);}[_0x3b57cd(0x505)](){const _0x40e4e0=_0x3b57cd;return this[_0x40e4e0(0x294)][_0x40e4e0(0x180)](this[_0x40e4e0(0x234)]);}[_0x3b57cd(0x447)](){const _0x1c3119=_0x3b57cd;this[_0x1c3119(0x294)]['incrementRevOfUnit'](this[_0x1c3119(0x234)]);}['_executeRemoteChangeset'](_0x363190){const _0x458d2a=_0x3b57cd;var _0x5ac855;const _0x351299=this['_transformRemoteChangesetByIMECache'](_0x363190),_0x55bc58=a['sequenceExecute'](_0x351299[_0x458d2a(0x3fa)],this[_0x458d2a(0x33b)],{'fromCollab':!0x0});if(!_0x55bc58[_0x458d2a(0x1da)])throw _0x55bc58[_0x458d2a(0x37f)]instanceof Error?_0x55bc58[_0x458d2a(0x37f)]:new Error((_0x5ac855=_0x55bc58[_0x458d2a(0x37f)])!=null?_0x5ac855:_0x458d2a(0x4f0));this[_0x458d2a(0x57e)](_0x351299),this[_0x458d2a(0x554)](_0x363190),this[_0x458d2a(0x545)](_0x351299),this['_syncEditingCollabCursor'](_0x351299),this[_0x458d2a(0x447)]();}}let re=class extends Q{constructor(_0x433b01,_0x3e06ce,_0x31418a,_0x1d29f5,_0x3d0c18,_0x4f25ff,_0x4e6cc2,_0xbff9d8,_0x979290,_0x106e00){const _0x4d895d=_0x3b57cd;super(_0x433b01,_0x3e06ce,null,[],_0x31418a,_0xbff9d8,_0x4e6cc2,_0x1d29f5,_0x3d0c18),u(this,'status',_0x4d895d(0x3f2)),(this[_0x4d895d(0x486)]=_0x4f25ff,this[_0x4d895d(0x45c)]=_0x979290,this['_transformService']=_0x106e00);}[_0x3b57cd(0x46e)](_0x3b67b4){const _0x373d25=_0x3b57cd,_0x14e806=this[_0x373d25(0x486)][_0x373d25(0x39c)](W,this[_0x373d25(0x234)],this[_0x373d25(0x537)],[_0x3b67b4],this[_0x373d25(0x4cd)]);return _0x14e806[_0x373d25(0x461)](),_0x14e806[_0x373d25(0x32c)](),_0x14e806;}[_0x3b57cd(0x423)](_0x56453d){const _0x37ff69=_0x3b57cd;if(this[_0x37ff69(0x47b)](_0x56453d))return this['_injector'][_0x37ff69(0x39c)](k,this[_0x37ff69(0x234)],this[_0x37ff69(0x537)],null,[],null,[_0x56453d],this[_0x37ff69(0x4cd)]);try{const _0x3fd01a=this[_0x37ff69(0x4be)][_0x37ff69(0x29a)](_0x56453d,[Gs]);if(_['isTransformMutationsWithChangesetSuccess'](_0x3fd01a)){const {c1Prime:_0xfe575e}=_0x3fd01a;return this[_0x37ff69(0x241)](_0xfe575e),this;}throw _0x3fd01a[_0x37ff69(0x37f)];}catch(_0x5018ad){return this[_0x37ff69(0x45c)][_0x37ff69(0x37f)](_0x5018ad),this['_onConflict'](!0x1);}}[_0x3b57cd(0x446)](_0x1bfa57){const _0x373359=_0x3b57cd;return this['_injector']['createInstance'](K,this[_0x373359(0x234)],this[_0x373359(0x537)],null,[],this[_0x373359(0x4cd)],_0x1bfa57);}[_0x3b57cd(0x558)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x3b57cd(0x2f7)](){return this;}[_0x3b57cd(0x343)](){const _0x524a3d=_0x3b57cd;return this[_0x524a3d(0x486)][_0x524a3d(0x39c)](X,this[_0x524a3d(0x234)],this[_0x524a3d(0x537)],null,[],this[_0x524a3d(0x4cd)]);}[_0x3b57cd(0x175)](){return this;}[_0x3b57cd(0x3e8)](){const _0x50e8b2=_0x3b57cd;throw new Error(_0x50e8b2(0x45e));}['fetchMiss'](){const _0x5c1cbe=_0x3b57cd,_0x37e340=this['_revisionService'][_0x5c1cbe(0x180)](this[_0x5c1cbe(0x234)]);return this[_0x5c1cbe(0x4cd)][_0x5c1cbe(0x588)]({'from':_0x37e340,'to':0x0}),this[_0x5c1cbe(0x486)][_0x5c1cbe(0x39c)](k,this['unitID'],this[_0x5c1cbe(0x537)],null,[],null,[],this[_0x5c1cbe(0x4cd)]);}};re=Z([g(0x3,a['Inject'](_[_0x3b57cd(0x29e)])),g(0x4,a[_0x3b57cd(0x4ad)](exports['LocalCacheService'])),g(0x5,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),g(0x6,a[_0x3b57cd(0x327)]),g(0x7,a[_0x3b57cd(0x17e)]),g(0x8,a['ILogService']),g(0x9,_[_0x3b57cd(0x4d5)])],re);let W=class extends Q{constructor(_0x2db36c,_0x571fa6,_0x2d2227,_0x2550a5,_0x47ff74,_0x409f1a,_0x2d9361,_0x5213fd,_0x22b233,_0x104924,_0x5446ce,_0xe3e4d5,_0x27f293,_0x1735f0){const _0x23d361=_0x3b57cd;super(_0x2db36c,_0x571fa6,null,_0x2d2227,_0x2550a5,_0x104924,_0x1735f0,_0x409f1a,_0x2d9361),u(this,_0x23d361(0x368),_0x23d361(0x51c)),u(this,'_scheduleTimestamp',null),u(this,_0x23d361(0x318),null),(this['_injector']=_0x47ff74,this[_0x23d361(0x312)]=_0x5213fd,this[_0x23d361(0x45c)]=_0x22b233,this[_0x23d361(0x490)]=_0x5446ce,this['_transformService']=_0xe3e4d5,this[_0x23d361(0x562)]=_0x27f293);}[_0x3b57cd(0x46e)](_0x355252){const _0x2945f8=_0x3b57cd;return this[_0x2945f8(0x344)][_0x2945f8(0x41e)](_0x355252),this[_0x2945f8(0x32c)](),this;}[_0x3b57cd(0x423)](_0x2f654f){const _0x449707=_0x3b57cd;if(this[_0x449707(0x47b)](_0x2f654f))return this['_clearScheduledTask'](),this[_0x449707(0x486)]['createInstance'](k,this[_0x449707(0x234)],this['type'],null,this[_0x449707(0x344)],null,[_0x2f654f],this[_0x449707(0x4cd)]);try{const _0x5bbd51=this[_0x449707(0x4be)][_0x449707(0x29a)](_0x2f654f,this[_0x449707(0x344)]);if(_[_0x449707(0x323)](_0x5bbd51)){const {c1Prime:_0x1b1ab7,m2Prime:_0x5d44e2}=_0x5bbd51;this['_executeRemoteChangeset'](_0x1b1ab7);const _0x288d9b=this['_injector'][_0x449707(0x39c)](W,this[_0x449707(0x234)],this['type'],_0x5d44e2,this[_0x449707(0x4cd)]);return this['_clearScheduledTask'](),_0x288d9b['_schedule'](this[_0x449707(0x1b2)]?Math[_0x449707(0x52a)](0x0,new Date()[_0x449707(0x16f)]()-this['_scheduleTimestamp']):this[_0x449707(0x185)]()),_0x288d9b;}throw _0x5bbd51['error'];}catch(_0x5b2898){return this['_logService'][_0x449707(0x37f)](_0x5b2898),this[_0x449707(0x446)](!0x1);}}['onRemoteAck'](){const _0x665cd1=_0x3b57cd;throw new Error(_0x665cd1(0x41b));}[_0x3b57cd(0x46c)](){const _0x2f5db6=_0x3b57cd;throw new Error(_0x2f5db6(0x546));}[_0x3b57cd(0x2f7)](){return this;}[_0x3b57cd(0x343)](){const _0x532de1=_0x3b57cd;return this[_0x532de1(0x52d)](),this[_0x532de1(0x486)]['createInstance'](X,this[_0x532de1(0x234)],this[_0x532de1(0x537)],null,this[_0x532de1(0x344)],this['_handler']);}[_0x3b57cd(0x175)](){return this;}[_0x3b57cd(0x461)](_0x577513){const _0x28ff75=_0x3b57cd,_0x1774f8=_0x577513!=null?_0x577513:this[_0x28ff75(0x185)]();this[_0x28ff75(0x1b2)]=new Date()[_0x28ff75(0x16f)](),this[_0x28ff75(0x318)]=window[_0x28ff75(0x247)](()=>{const _0x311533=_0x28ff75;this['_clearScheduledTask']();let _0x5333ee=null;switch(this[_0x311533(0x537)]){case H[_0x311533(0x53b)]:{_0x5333ee=ot(this[_0x311533(0x344)],this[_0x311533(0x234)],this[_0x311533(0x562)],this['_revisionService'],this[_0x311533(0x312)]);break;}case H['UNIVER_DOC']:{this['_pendingMutations'][_0x311533(0x212)](_0x33497b=>_0x33497b['id']===ne[_0x311533(0x50f)]['id'])?_0x5333ee=Fs(this[_0x311533(0x344)],this[_0x311533(0x234)],this[_0x311533(0x562)],this[_0x311533(0x294)],this['_memberService']):_0x5333ee=ot(this[_0x311533(0x344)],this[_0x311533(0x234)],this[_0x311533(0x562)],this[_0x311533(0x294)],this[_0x311533(0x312)]);break;}default:throw new Error(_0x311533(0x491)+this[_0x311533(0x537)]+_0x311533(0x2de));}const {changeset:_0x32e13a,pendingMutations:_0x3ba185}=_0x5333ee;this[_0x311533(0x4cd)][_0x311533(0x520)](_0x32e13a);const _0x59a448=_0x3ba185[_0x311533(0x54c)]?this[_0x311533(0x486)][_0x311533(0x39c)](F,this['unitID'],this[_0x311533(0x537)],_0x32e13a,_0x3ba185,this['_handler'],void 0x0):this[_0x311533(0x486)]['createInstance'](Y,this[_0x311533(0x234)],this[_0x311533(0x537)],_0x32e13a,this[_0x311533(0x4cd)]);_0x59a448[_0x311533(0x32c)](),this['_handler'][_0x311533(0x22f)](this,_0x59a448);},_0x1774f8);}[_0x3b57cd(0x185)](){const _0x335dd8=_0x3b57cd;var _0x39c98b;const _0x4b6de4=this[_0x335dd8(0x490)][_0x335dd8(0x38e)]($);return(_0x39c98b=_0x4b6de4==null?void 0x0:_0x4b6de4[_0x335dd8(0x195)])!=null?_0x39c98b:Zt;}[_0x3b57cd(0x3e8)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b57cd(0x52d)](){const _0x434f38=_0x3b57cd;this[_0x434f38(0x318)]!=null&&(clearTimeout(this[_0x434f38(0x318)]),this[_0x434f38(0x318)]=null);}[_0x3b57cd(0x446)](_0x454730){const _0x5b906f=_0x3b57cd;return this[_0x5b906f(0x52d)](),this[_0x5b906f(0x486)][_0x5b906f(0x39c)](K,this[_0x5b906f(0x234)],this[_0x5b906f(0x537)],null,this[_0x5b906f(0x344)],this['_handler'],_0x454730);}};W=Z([g(0x4,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),g(0x5,a['Inject'](_['RevisionService'])),g(0x6,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x33e)])),g(0x7,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x2e4)])),g(0x8,a[_0x3b57cd(0x4e7)]),g(0x9,a[_0x3b57cd(0x17e)]),g(0xa,a[_0x3b57cd(0x2f9)]),g(0xb,_[_0x3b57cd(0x4d5)]),g(0xc,a[_0x3b57cd(0x424)]),g(0xd,a[_0x3b57cd(0x327)])],W);let Y=class extends Q{constructor(_0x3c948e,_0x873146,_0x2791bb,_0x33d779,_0x270fcb,_0x50956a,_0x48c4dd,_0x54fe8c,_0x15c94b,_0x394c80,_0x4b44ef){const _0xe934d5=_0x3b57cd;super(_0x3c948e,_0x873146,_0x2791bb,[],_0x33d779,_0x54fe8c,_0x4b44ef,_0x50956a,_0x48c4dd),u(this,'status','awaiting'),u(this,'_resendTimeout',0x0),u(this,_0xe934d5(0x182)),u(this,_0xe934d5(0x40f)),(this[_0xe934d5(0x486)]=_0x270fcb,this[_0xe934d5(0x45c)]=_0x15c94b,this['_transformService']=_0x394c80);}[_0x3b57cd(0x46e)](_0x3875dd){const _0x4b32c9=_0x3b57cd;this[_0x4b32c9(0x52d)]();const _0x5ab2e4=this[_0x4b32c9(0x486)]['createInstance'](F,this[_0x4b32c9(0x234)],this[_0x4b32c9(0x537)],this['_awaitingChangeset'],[_0x3875dd],this['_handler'],this[_0x4b32c9(0x182)]);return _0x5ab2e4[_0x4b32c9(0x32c)](),_0x5ab2e4;}[_0x3b57cd(0x423)](_0x18f949){const _0x38930c=_0x3b57cd;if(this[_0x38930c(0x47b)](_0x18f949))return this[_0x38930c(0x52d)](),this[_0x38930c(0x486)]['createInstance'](k,this[_0x38930c(0x234)],this[_0x38930c(0x537)],this[_0x38930c(0x365)],[],null,[_0x18f949],this[_0x38930c(0x4cd)]);try{const _0x535bd4=this[_0x38930c(0x4be)]['transformChangesets']([_0x18f949],[this[_0x38930c(0x365)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x535bd4)){const {c1Prime:_0x35987c,c2Prime:_0x54882b}=_0x535bd4;this['_executeRemoteChangeset'](_0x35987c[0x0]),_0x54882b[0x0][_0x38930c(0x565)]=this[_0x38930c(0x505)](),this['_clearScheduledTask']();const _0x438aeb=this['_injector'][_0x38930c(0x39c)](Y,this[_0x38930c(0x234)],this['type'],_0x54882b[0x0],this[_0x38930c(0x4cd)]);return _0x438aeb[_0x38930c(0x32c)](),_0x438aeb;}return this[_0x38930c(0x446)](!0x1);}catch(_0x487201){return this[_0x38930c(0x45c)][_0x38930c(0x37f)](_0x487201),this[_0x38930c(0x446)](!0x1);}}[_0x3b57cd(0x558)](_0x582e12){const _0x2146c1=_0x3b57cd;this['_clearScheduledTask']();const _0x5d3d6a=this[_0x2146c1(0x294)][_0x2146c1(0x180)](this[_0x2146c1(0x234)]);if(_0x582e12['revision']<_0x5d3d6a-0x1)return this;if(this[_0x2146c1(0x47b)](_0x582e12))return this['_injector'][_0x2146c1(0x39c)](k,this['unitID'],this[_0x2146c1(0x537)],null,[],this['_awaitingChangeset'],[],this[_0x2146c1(0x4cd)]);this[_0x2146c1(0x447)]();const _0x249c42=this['_injector'][_0x2146c1(0x39c)](re,this['unitID'],this['type'],this[_0x2146c1(0x4cd)]);return _0x249c42[_0x2146c1(0x32c)](),_0x249c42;}[_0x3b57cd(0x46c)](_0x53af87){const _0x16fc3e=_0x3b57cd;return this[_0x16fc3e(0x446)](!!(_0x53af87!=null&&_0x53af87['isPermissionRej']));}['onRemoteRetry'](_0x2db9c0){const _0x274e37=_0x3b57cd;return this[_0x274e37(0x319)]>Ut?this['toggleOffline']():(this[_0x274e37(0x182)]=yt(this[_0x274e37(0x319)],{'timeout':this[_0x274e37(0x319)],'reqId':_0x2db9c0['reqId']}),this[_0x274e37(0x40f)]=this[_0x274e37(0x182)]['subscribe'](({reqId:_0xc52f04,timeout:_0x3c218b})=>{const _0x137596=_0x274e37;this[_0x137596(0x16a)](_0xc52f04,_0x3c218b);}),this);}['toggleOffline'](){const _0x2c3ff1=_0x3b57cd;return this[_0x2c3ff1(0x52d)](),this[_0x2c3ff1(0x486)][_0x2c3ff1(0x39c)](X,this[_0x2c3ff1(0x234)],this[_0x2c3ff1(0x537)],this['_awaitingChangeset'],[],this[_0x2c3ff1(0x4cd)]);}['toggleOnline'](){return this;}[_0x3b57cd(0x3e8)](){const _0x5dfcc8=_0x3b57cd;this[_0x5dfcc8(0x4cd)]['onSendChangeset'](this[_0x5dfcc8(0x365)]);}[_0x3b57cd(0x446)](_0xaab82e){const _0xe52426=_0x3b57cd;return this['_clearScheduledTask'](),this['_injector'][_0xe52426(0x39c)](K,this[_0xe52426(0x234)],this[_0xe52426(0x537)],this[_0xe52426(0x365)],[],this['_handler'],_0xaab82e);}[_0x3b57cd(0x16a)](_0x497c49,_0x2bb7d5){const _0x3cfcc2=_0x3b57cd;var _0x34d4e6;_0x497c49===((_0x34d4e6=this['_awaitingChangeset'])==null?void 0x0:_0x34d4e6['reqId'])&&(this['resend'](),this[_0x3cfcc2(0x319)]=_0x2bb7d5===0x0?0x3e8:_0x2bb7d5*0x2);}[_0x3b57cd(0x52d)](){const _0xb30b0=_0x3b57cd;var _0x2e812a;(_0x2e812a=this[_0xb30b0(0x40f)])==null||_0x2e812a[_0xb30b0(0x18d)](),this[_0xb30b0(0x319)]=0x0;}};Y=Z([g(0x4,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),g(0x5,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),g(0x6,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x33e)])),g(0x7,a[_0x3b57cd(0x17e)]),g(0x8,a[_0x3b57cd(0x4e7)]),g(0x9,_['ITransformService']),g(0xa,a[_0x3b57cd(0x327)])],Y);let F=class extends Q{constructor(_0x52c2ae,_0x5e9a53,_0x43db55,_0x1411e7,_0x385554,_0x28eeba,_0x41fe61,_0x3f9a9a,_0x562503,_0x1be06f,_0x1d3ee8,_0x74b5b9,_0x564f7a){const _0x2033b7=_0x3b57cd;super(_0x52c2ae,_0x5e9a53,_0x43db55,_0x1411e7,_0x385554,_0x1be06f,_0x564f7a,_0x3f9a9a,_0x562503),u(this,_0x2033b7(0x368),_0x2033b7(0x366)),u(this,_0x2033b7(0x319),0x0),u(this,_0x2033b7(0x182)),u(this,_0x2033b7(0x40f)),(this[_0x2033b7(0x486)]=_0x41fe61,this[_0x2033b7(0x45c)]=_0x1d3ee8,this['_transformService']=_0x74b5b9,_0x28eeba&&(this[_0x2033b7(0x182)]=_0x28eeba,this[_0x2033b7(0x40f)]=this[_0x2033b7(0x182)][_0x2033b7(0x508)](({reqId:_0x42dee1,timeout:_0x4d5e18})=>{this['_resendWithTimeout'](_0x42dee1,_0x4d5e18);})));}[_0x3b57cd(0x46e)](_0x5e775e){const _0x5e50e1=_0x3b57cd;return this[_0x5e50e1(0x344)][_0x5e50e1(0x41e)](_0x5e775e),this;}['onRemoteChangeset'](_0x3e32ec){const _0x37b9ee=_0x3b57cd;if(this[_0x37b9ee(0x47b)](_0x3e32ec))return this[_0x37b9ee(0x52d)](),this['_injector'][_0x37b9ee(0x39c)](k,this[_0x37b9ee(0x234)],this[_0x37b9ee(0x537)],this[_0x37b9ee(0x365)],this[_0x37b9ee(0x344)],null,[_0x3e32ec],this[_0x37b9ee(0x4cd)]);try{const _0xe101ff=this[_0x37b9ee(0x4be)][_0x37b9ee(0x244)]([_0x3e32ec],[this[_0x37b9ee(0x365)]],!0x1);if(_[_0x37b9ee(0x2ce)](_0xe101ff)){const {c1Prime:_0x3d0f61,c2Prime:_0x440d2e}=_0xe101ff,_0x512d4e=this[_0x37b9ee(0x4be)]['transformMutationsWithChangeset'](_0x3d0f61[0x0],this[_0x37b9ee(0x344)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x512d4e)){const {c1Prime:_0x133302,m2Prime:_0x29859c}=_0x512d4e;return this[_0x37b9ee(0x241)](_0x133302),_0x440d2e[0x0][_0x37b9ee(0x565)]=this[_0x37b9ee(0x505)](),this[_0x37b9ee(0x52d)](),this['_injector'][_0x37b9ee(0x39c)](F,this[_0x37b9ee(0x234)],this[_0x37b9ee(0x537)],_0x440d2e[0x0],_0x29859c,this[_0x37b9ee(0x4cd)],void 0x0);}throw _0x512d4e[_0x37b9ee(0x37f)];}throw _0xe101ff['error'];}catch(_0x58a4fc){return this['_logService'][_0x37b9ee(0x37f)](_0x58a4fc),this['_onConflict'](!0x1);}}[_0x3b57cd(0x558)](_0x47803d){const _0x500eb6=_0x3b57cd;if(this['_clearScheduledTask'](),this['_checkMissing'](_0x47803d))return this['_injector'][_0x500eb6(0x39c)](k,this['unitID'],this['type'],null,this[_0x500eb6(0x344)],this[_0x500eb6(0x365)],[],this['_handler']);this[_0x500eb6(0x447)]();const _0x471737=this['_injector'][_0x500eb6(0x39c)](W,this['unitID'],this[_0x500eb6(0x537)],this[_0x500eb6(0x344)],this['_handler']);return _0x471737[_0x500eb6(0x461)](),_0x471737[_0x500eb6(0x32c)](),_0x471737;}[_0x3b57cd(0x46c)](_0x497f71){const _0x516299=_0x3b57cd;return this[_0x516299(0x446)](!!(_0x497f71!=null&&_0x497f71[_0x516299(0x16e)]));}[_0x3b57cd(0x2f7)](_0x153e20){const _0x2608d5=_0x3b57cd;return this[_0x2608d5(0x319)]>Ut?this[_0x2608d5(0x343)]():(this[_0x2608d5(0x182)]=yt(this[_0x2608d5(0x319)],{'timeout':this['_resendTimeout'],'reqId':_0x153e20[_0x2608d5(0x3ee)]}),this[_0x2608d5(0x40f)]=this['_resendTimer']['subscribe'](({reqId:_0x338131,timeout:_0x4ebd70})=>{this['_resendWithTimeout'](_0x338131,_0x4ebd70);}),this);}[_0x3b57cd(0x343)](){const _0x23c3a2=_0x3b57cd;return this[_0x23c3a2(0x52d)](),this[_0x23c3a2(0x486)][_0x23c3a2(0x39c)](X,this[_0x23c3a2(0x234)],this['type'],this[_0x23c3a2(0x365)],this[_0x23c3a2(0x344)],this[_0x23c3a2(0x4cd)]);}[_0x3b57cd(0x175)](){return this;}[_0x3b57cd(0x3e8)](){const _0x1d3ddf=_0x3b57cd;this[_0x1d3ddf(0x4cd)][_0x1d3ddf(0x520)](this[_0x1d3ddf(0x365)]);}[_0x3b57cd(0x446)](_0x2e7499){const _0x41644f=_0x3b57cd;return this['_clearScheduledTask'](),this['_injector'][_0x41644f(0x39c)](K,this[_0x41644f(0x234)],this[_0x41644f(0x537)],null,this[_0x41644f(0x344)],this['_handler'],_0x2e7499);}[_0x3b57cd(0x16a)](_0x29fba5,_0x40bb28){const _0x188f1d=_0x3b57cd;var _0x5b4870;_0x29fba5===((_0x5b4870=this['_awaitingChangeset'])==null?void 0x0:_0x5b4870[_0x188f1d(0x3ee)])&&(this[_0x188f1d(0x3e8)](),this[_0x188f1d(0x319)]=_0x40bb28===0x0?0x3e8:_0x40bb28*0x2);}[_0x3b57cd(0x52d)](){const _0x76bd7c=_0x3b57cd;var _0x250838;(_0x250838=this[_0x76bd7c(0x40f)])==null||_0x250838[_0x76bd7c(0x18d)](),this['_resendTimeout']=0x0;}};F=Z([g(0x6,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),g(0x7,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),g(0x8,a['Inject'](exports['LocalCacheService'])),g(0x9,a[_0x3b57cd(0x17e)]),g(0xa,a[_0x3b57cd(0x4e7)]),g(0xb,_['ITransformService']),g(0xc,a[_0x3b57cd(0x327)])],F);let K=class extends Q{constructor(_0x9a5dc0,_0x36b938,_0x111542,_0x14503c,_0x405830,_0x19b418=!0x1,_0x577953,_0x587a50,_0x4f6465,_0x8a95e0,_0x320660,_0x3fdedf,_0x20d9a5){const _0x3a4e6b=_0x3b57cd;super(_0x9a5dc0,_0x36b938,_0x111542,_0x14503c,_0x405830,_0x587a50,_0x4f6465,_0x320660,_0x8a95e0),u(this,'status',_0x3a4e6b(0x2fb)),(this[_0x3a4e6b(0x1cc)]=_0x19b418,this[_0x3a4e6b(0x3f9)]=_0x577953,this[_0x3a4e6b(0x4fd)]=_0x3fdedf,this[_0x3a4e6b(0x299)]=_0x20d9a5,this[_0x3a4e6b(0x1ae)](),this[_0x3a4e6b(0x1c5)](),this[_0x3a4e6b(0x535)]());}[_0x3b57cd(0x46e)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x3b57cd(0x46c)](){return this;}['onRemoteRetry'](){return this;}[_0x3b57cd(0x343)](){return this;}[_0x3b57cd(0x175)](){return this;}[_0x3b57cd(0x3e8)](){const _0x16c284=_0x3b57cd;throw new Error(_0x16c284(0x321));}[_0x3b57cd(0x1c5)](){const _0x1f1198=_0x3b57cd;this[_0x1f1198(0x20c)]['updateOfflineData'](this['unitID'],this['type'],null,[]);}[_0x3b57cd(0x1ae)](){const _0x4fb666=_0x3b57cd;this['_isPermissionRej']?this['_notificationService']['show']({'title':this[_0x4fb666(0x4fd)]['t']('permission.title'),'content':this[_0x4fb666(0x4fd)]['t']('permission.content'),'type':_0x4fb666(0x37f),'duration':0x0}):this[_0x4fb666(0x299)]['show']({'title':this[_0x4fb666(0x4fd)]['t'](_0x4fb666(0x541)),'content':this[_0x4fb666(0x4fd)]['t'](_0x4fb666(0x23b)),'type':_0x4fb666(0x37f),'duration':0x0});}[_0x3b57cd(0x535)](){const _0x27f96c=_0x3b57cd;this[_0x27f96c(0x3f9)][_0x27f96c(0x1fc)](new C[(_0x27f96c(0x1aa))](this[_0x27f96c(0x234)])['id'],!0x1);}};K=Z([g(0x6,a[_0x3b57cd(0x4ad)](a['IPermissionService'])),g(0x7,a[_0x3b57cd(0x17e)]),g(0x8,a[_0x3b57cd(0x327)]),g(0x9,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x33e)])),g(0xa,a['Inject'](_[_0x3b57cd(0x29e)])),g(0xb,a['Inject'](a['LocaleService'])),g(0xc,A[_0x3b57cd(0x30c)])],K);let X=class extends Q{constructor(_0x303803,_0x5698fd,_0x363627,_0x5edfbf,_0x2785e4,_0x5b8f5e,_0x285e64,_0x724e3,_0x2811b7,_0x61e284){const _0x8ddaad=_0x3b57cd;super(_0x303803,_0x5698fd,_0x363627,_0x5edfbf,_0x2785e4,_0x2811b7,_0x61e284,_0x285e64,_0x724e3),u(this,_0x8ddaad(0x368),_0x8ddaad(0x359)),this[_0x8ddaad(0x486)]=_0x5b8f5e;}[_0x3b57cd(0x46e)](_0xcb42aa){const _0x5255f5=_0x3b57cd;return this['_pendingMutations'][_0x5255f5(0x41e)](_0xcb42aa),this[_0x5255f5(0x32c)](),this;}['onRemoteChangeset'](_0xd16314){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x14dd88=_0x3b57cd;throw new Error(_0x14dd88(0x482));}[_0x3b57cd(0x46c)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3b57cd(0x2f7)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x32391f=_0x3b57cd,{_injector:_0x141f97,_pendingMutations:_0x19b016,_awaitingChangeset:_0x3116f9,unitID:_0x1d71c7,_handler:_0x42860b,type:_0xbe4cc}=this,_0x3edf25=Pt(_0x141f97,_0x1d71c7,_0xbe4cc,_0x3116f9,_0x19b016,_0x42860b);return _0x3edf25 instanceof W?_0x3edf25[_0x32391f(0x461)]():(_0x3edf25 instanceof F||_0x3edf25 instanceof Y)&&_0x3edf25[_0x32391f(0x3e8)](),_0x3edf25;}[_0x3b57cd(0x3e8)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};X=Z([g(0x5,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),g(0x6,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),g(0x7,a[_0x3b57cd(0x4ad)](exports['LocalCacheService'])),g(0x8,a['ICommandService']),g(0x9,a[_0x3b57cd(0x327)])],X);let k=class extends Q{constructor(_0xa31ae7,_0x510c9c,_0x10b60e,_0x4ef80a,_0x2e0a83,_0x2ea256,_0x5bfc86,_0x34a3b9,_0x27621f,_0x5469ef,_0x441985,_0x39ef60,_0x403e40,_0x1ad43d){const _0x576804=_0x3b57cd;super(_0xa31ae7,_0x510c9c,_0x10b60e,_0x4ef80a,_0x5bfc86,_0x39ef60,_0x403e40,_0x27621f,_0x5469ef),u(this,_0x576804(0x368),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x2e0a83,this[_0x576804(0x3c3)]=_0x2ea256,this[_0x576804(0x486)]=_0x34a3b9,this[_0x576804(0x45c)]=_0x441985,this[_0x576804(0x4be)]=_0x1ad43d);}['onMissedChangesetFetched'](_0x73d4f9){const _0x33d09d=_0x3b57cd;try{const _0x33b69c=[..._0x73d4f9,...this[_0x33d09d(0x3c3)]],_0xd70472=[this['_awaitingChangeset']||this[_0x33d09d(0x4d2)]][_0x33d09d(0x445)](_0x4d3e17=>!!_0x4d3e17);let _0x37660b,_0x5d0b12;if(_0xd70472[_0x33d09d(0x54c)]){const _0x3cb81b=this['_transformService'][_0x33d09d(0x244)](_0x33b69c,_0xd70472,!0x1);if(!_[_0x33d09d(0x2ce)](_0x3cb81b))throw _0x3cb81b[_0x33d09d(0x37f)];_0x37660b=_0x3cb81b['c1Prime'],_0x5d0b12=_0x3cb81b[_0x33d09d(0x38a)];}else _0x37660b=_0x33b69c,_0x5d0b12=[];let _0x3b984b=this[_0x33d09d(0x344)];_0x37660b['forEach'](_0xc8bb3=>{const _0x57df0f=_0x33d09d;let _0x522272;if(_0x3b984b[_0x57df0f(0x54c)]){const _0xbd0459=this[_0x57df0f(0x4be)][_0x57df0f(0x29a)](_0xc8bb3,_0x3b984b);if(!_['isTransformMutationsWithChangesetSuccess'](_0xbd0459))throw _0xbd0459[_0x57df0f(0x37f)];_0x522272=_0xbd0459['c1Prime'],_0x3b984b=_0xbd0459[_0x57df0f(0x4d8)];}else _0x522272=_0xc8bb3;this['_executeRemoteChangeset'](_0x522272);}),this[_0x33d09d(0x4d2)]&&this[_0x33d09d(0x447)](),this[_0x33d09d(0x365)]&&_0x5d0b12[_0x33d09d(0x54c)]&&(_0x5d0b12[0x0][_0x33d09d(0x565)]=this[_0x33d09d(0x505)]());let _0x54abcc;if(this['_awaitingChangeset']&&_0x3b984b[_0x33d09d(0x54c)]!==0x0)_0x54abcc=this[_0x33d09d(0x486)]['createInstance'](F,this['unitID'],this[_0x33d09d(0x537)],_0x5d0b12[0x0],_0x3b984b,this[_0x33d09d(0x4cd)],void 0x0);else{if(this['_awaitingChangeset']&&_0x3b984b[_0x33d09d(0x54c)]===0x0)_0x5d0b12[0x0][_0x33d09d(0x565)]=this[_0x33d09d(0x505)](),_0x54abcc=this[_0x33d09d(0x486)]['createInstance'](Y,this['unitID'],this[_0x33d09d(0x537)],_0x5d0b12[0x0],this[_0x33d09d(0x4cd)]);else{if(_0x3b984b['length']!==0x0){const _0x179b4f=this['_injector']['createInstance'](W,this[_0x33d09d(0x234)],this[_0x33d09d(0x537)],_0x3b984b,this['_handler']);_0x179b4f[_0x33d09d(0x461)](),_0x54abcc=_0x179b4f;}else _0x54abcc=this[_0x33d09d(0x486)][_0x33d09d(0x39c)](re,this[_0x33d09d(0x234)],this['type'],this[_0x33d09d(0x4cd)]);}}return _0x54abcc['_updateLocalCache'](),_0x54abcc;}catch(_0x39244d){return this[_0x33d09d(0x45c)][_0x33d09d(0x37f)](_0x33d09d(0x3de),_0x33d09d(0x332),_0x39244d),this['_injector']['createInstance'](K,this[_0x33d09d(0x234)],this['type'],this[_0x33d09d(0x365)],this[_0x33d09d(0x344)],this[_0x33d09d(0x4cd)],!0x1);}}['resend'](){const _0x4a3520=_0x3b57cd;throw new Error(_0x4a3520(0x2aa));}[_0x3b57cd(0x46e)](_0x2f46ba){const _0x4289a0=_0x3b57cd;return this[_0x4289a0(0x344)][_0x4289a0(0x41e)](_0x2f46ba),this;}[_0x3b57cd(0x423)](_0x203086){const _0x141756=_0x3b57cd;return this[_0x141756(0x3c3)][_0x141756(0x41e)](_0x203086),this;}['onRemoteAck'](_0x1dd586){const _0x5ae5c9=_0x3b57cd;if(this[_0x5ae5c9(0x365)])return this[_0x5ae5c9(0x4d2)]=this[_0x5ae5c9(0x365)],this[_0x5ae5c9(0x365)]=null,this;throw new Error(_0x5ae5c9(0x324));}[_0x3b57cd(0x46c)](_0x5e4f1a){const _0x19a20c=_0x3b57cd;return this[_0x19a20c(0x446)](!!(_0x5e4f1a!=null&&_0x5e4f1a[_0x19a20c(0x16e)]));}[_0x3b57cd(0x2f7)](){return this;}[_0x3b57cd(0x343)](){const _0x563e85=_0x3b57cd;return this['_injector'][_0x563e85(0x39c)](X,this[_0x563e85(0x234)],this[_0x563e85(0x537)],this[_0x563e85(0x365)],this['_pendingMutations'],this['_handler']);}[_0x3b57cd(0x175)](){return this;}[_0x3b57cd(0x446)](_0x2bab32){const _0x43a809=_0x3b57cd;return this[_0x43a809(0x486)]['createInstance'](K,this[_0x43a809(0x234)],this['type'],this[_0x43a809(0x365)],this['_pendingMutations'],this['_handler'],_0x2bab32);}};k=Z([g(0x7,a[_0x3b57cd(0x4ad)](a['Injector'])),g(0x8,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),g(0x9,a['Inject'](exports[_0x3b57cd(0x33e)])),g(0xa,a[_0x3b57cd(0x4e7)]),g(0xb,a['ICommandService']),g(0xc,a[_0x3b57cd(0x327)]),g(0xd,_['ITransformService'])],k);function Pt(_0x13e740,_0x48e28b,_0x365b62,_0x327b99,_0x59d269,_0x5648b6){const _0x114b93=_0x3b57cd;return _0x327b99&&_0x59d269[_0x114b93(0x54c)]?_0x13e740[_0x114b93(0x39c)](F,_0x48e28b,_0x365b62,_0x327b99,_0x59d269,_0x5648b6,void 0x0):_0x327b99?_0x13e740[_0x114b93(0x39c)](Y,_0x48e28b,_0x365b62,_0x327b99,_0x5648b6):_0x59d269[_0x114b93(0x54c)]?_0x13e740[_0x114b93(0x39c)](W,_0x48e28b,_0x365b62,_0x59d269,_0x5648b6):_0x13e740[_0x114b93(0x39c)](re,_0x48e28b,_0x365b62,_0x5648b6);}var Xs=Object['defineProperty'],qs=Object[_0x3b57cd(0x35f)],qe=(_0x55e7ca,_0x4f5fb3,_0x578250,_0x376eb7)=>{const _0x387c0c=_0x3b57cd;for(var _0x42648c=_0x376eb7>0x1?void 0x0:_0x376eb7?qs(_0x4f5fb3,_0x578250):_0x4f5fb3,_0xadfef5=_0x55e7ca[_0x387c0c(0x54c)]-0x1,_0x2201de;_0xadfef5>=0x0;_0xadfef5--)(_0x2201de=_0x55e7ca[_0xadfef5])&&(_0x42648c=(_0x376eb7?_0x2201de(_0x4f5fb3,_0x578250,_0x42648c):_0x2201de(_0x42648c))||_0x42648c);return _0x376eb7&&_0x42648c&&Xs(_0x4f5fb3,_0x578250,_0x42648c),_0x42648c;},p=(_0x417780,_0x50447f)=>(_0x400aa2,_0x41347c)=>_0x50447f(_0x400aa2,_0x41347c,_0x417780);exports['CollaborationEntity']=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x3c99f3,_0x5b2ab4,_0x71e30,_0x2dca42,_0x1fc389,_0x48cace,_0x34ddf8,_0x2ab84d,_0x55252f,_0x536003,_0x5b240d,_0x57b5a9,_0x5995f9){const _0x334a25=_0x3b57cd;super(),u(this,_0x334a25(0x27c),new v[(_0x334a25(0x470))](null)),u(this,_0x334a25(0x1fe),this[_0x334a25(0x27c)]['asObservable']()),u(this,'_state'),u(this,_0x334a25(0x2ec),!0x1),u(this,_0x334a25(0x3b1),''),u(this,'_changesetReqId',0x0),u(this,_0x334a25(0x533),this[_0x334a25(0x1fe)]['pipe'](v[_0x334a25(0x439)](_0x3b93e4=>_0x3b93e4?_0x3b93e4['status']:D[_0x334a25(0x590)]),v['shareReplay'](0x1))),u(this,_0x334a25(0x4d1),!0x1),u(this,_0x334a25(0x506),[]),(this[_0x334a25(0x234)]=_0x3c99f3,this[_0x334a25(0x4e0)]=_0x5b2ab4,this[_0x334a25(0x3c8)]=_0x71e30,this['_injector']=_0x2dca42,this[_0x334a25(0x20c)]=_0x1fc389,this['_compressMutationService']=_0x48cace,this[_0x334a25(0x4fd)]=_0x34ddf8,this[_0x334a25(0x294)]=_0x2ab84d,this[_0x334a25(0x45c)]=_0x55252f,this['_commandService']=_0x536003,this[_0x334a25(0x4e1)]=_0x5b240d,this[_0x334a25(0x3f9)]=_0x57b5a9,this['_singleActiveUnitService']=_0x5995f9);}get[_0x3b57cd(0x2ca)](){return this['_state'];}async['init'](){const _0x1d9f83=_0x3b57cd;if(this[_0x1d9f83(0x2ca)])throw new Error(_0x1d9f83(0x469));await this['_init']();}['pauseCollaboration'](){const _0x3fc7ba=_0x3b57cd;return this[_0x3fc7ba(0x2ec)]=!0x0,a[_0x3fc7ba(0x44c)](()=>{const _0x3ae439=_0x3fc7ba;this[_0x3ae439(0x2ec)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x3bb2e1){const _0x2f99e4=_0x3b57cd;this['_state']=_0x3bb2e1,this['_state$'][_0x2f99e4(0x3b8)](_0x3bb2e1);}async[_0x3b57cd(0x1d3)](){const _0x5150b1=_0x3b57cd;var _0x30363c;this[_0x5150b1(0x381)](await this[_0x5150b1(0x2d3)]()),this[_0x5150b1(0x4b9)]&&((_0x30363c=this[_0x5150b1(0x4b9)])==null||_0x30363c[_0x5150b1(0x253)](this[_0x5150b1(0x234)]),this[_0x5150b1(0x431)](this[_0x5150b1(0x4b9)][_0x5150b1(0x282)](this[_0x5150b1(0x234)])[_0x5150b1(0x508)](_0x51389c=>{const _0x1720d1=_0x5150b1;this[_0x1720d1(0x45c)][_0x1720d1(0x3ec)](_0x1720d1(0x517),_0x1720d1(0x18f),_0x51389c),_0x51389c===Ot[_0x1720d1(0x474)]?(this[_0x1720d1(0x4e1)][_0x1720d1(0x2e8)]({'content':this[_0x1720d1(0x4fd)]['t'](_0x1720d1(0x4fe)),'type':J['MessageType'][_0x1720d1(0x46b)]}),this[_0x1720d1(0x3f9)][_0x1720d1(0x1fc)](new C[(_0x1720d1(0x1aa))](this[_0x1720d1(0x234)])['id'],!0x1),this[_0x1720d1(0x3f9)][_0x1720d1(0x2b7)](!0x1)):(this[_0x1720d1(0x3f9)][_0x1720d1(0x1fc)](new C[(_0x1720d1(0x1aa))](this[_0x1720d1(0x234)])['id'],!0x0),this[_0x1720d1(0x3f9)][_0x1720d1(0x2b7)](!0x0));})));let _0x805f16=!0x1;return this['disposeWithMe'](this[_0x5150b1(0x4e0)][_0x5150b1(0x407)][_0x5150b1(0x508)](_0x302b3a=>{const _0xe9548=_0x5150b1;_0x302b3a===x['ONLINE']?this[_0xe9548(0x425)](_0x805f16):_0x302b3a===x['OFFLINE']&&(_0x805f16=!0x0,this['_toggleOffline']());})),this[_0x5150b1(0x431)](this[_0x5150b1(0x4e0)][_0x5150b1(0x320)][_0x5150b1(0x508)](_0x4add77=>{const _0x357584=_0x5150b1;try{switch(_0x4add77['eventID']){case _[_0x357584(0x556)][_0x357584(0x27a)]:{this[_0x357584(0x21f)](_[_0x357584(0x529)](_0x4add77['data']));break;}case _[_0x357584(0x556)][_0x357584(0x1a1)]:{this[_0x357584(0x3cb)](_0x4add77[_0x357584(0x30a)]);break;}case _['CollaborationEvent'][_0x357584(0x239)]:{this[_0x357584(0x1be)]();break;}case _[_0x357584(0x556)][_0x357584(0x2c0)]:{this[_0x357584(0x1ef)](_0x4add77[_0x357584(0x30a)]);break;}case _[_0x357584(0x556)][_0x357584(0x24a)]:{this[_0x357584(0x3b9)](_0x4add77[_0x357584(0x30a)][_0x357584(0x34a)]['map'](_0x493c3e=>_[_0x357584(0x529)](_0x493c3e)));break;}case _[_0x357584(0x556)][_0x357584(0x449)]:this[_0x357584(0x1be)]({'isPermissionRej':!0x0});}}catch(_0x8d705){throw console['error'](_0x357584(0x475),_0x8d705),_0x8d705;}})),this[_0x5150b1(0x38d)];}[_0x3b57cd(0x2e1)](){const _0x533b40=_0x3b57cd;this[_0x533b40(0x4d1)]=!0x1;}[_0x3b57cd(0x463)](){const _0x1cf65a=_0x3b57cd;if(this['_transitionLocked'])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[_0x1cf65a(0x4d1)]=!0x0;}[_0x3b57cd(0x206)](_0x1ff673){const _0x458bcf=_0x3b57cd;this['_lockTransition'](),this[_0x458bcf(0x381)](this[_0x458bcf(0x38d)][_0x458bcf(0x46e)](_0x1ff673)),this[_0x458bcf(0x2e1)]();}[_0x3b57cd(0x21f)](_0x4042e8){const _0x3743c1=_0x3b57cd;if(!(_0x4042e8[_0x3743c1(0x1e1)]<=this['_revisionService'][_0x3743c1(0x180)](this[_0x3743c1(0x234)]))){if(this[_0x3743c1(0x2ec)]){this[_0x3743c1(0x506)][_0x3743c1(0x41e)](_0x4042e8);return;}this[_0x3743c1(0x1af)](_0x4042e8);}}[_0x3b57cd(0x2d8)](){const _0x3f3c15=_0x3b57cd;this[_0x3f3c15(0x506)][_0x3f3c15(0x571)](_0x12efca=>this[_0x3f3c15(0x1af)](_0x12efca)),this[_0x3f3c15(0x506)]=[];}[_0x3b57cd(0x1af)](_0x3cc294){const _0x598e84=_0x3b57cd,_0x4856bb=this[_0x598e84(0x496)]['interceptor'][_0x598e84(0x458)](this['_compressMutationService'][_0x598e84(0x203)][_0x598e84(0x422)]()[_0x598e84(0x301)])(_0x3cc294[_0x598e84(0x3fa)],null)||_0x3cc294[_0x598e84(0x3fa)],_0x367eb3={..._0x3cc294,'mutations':_0x4856bb};this[_0x598e84(0x463)](),this[_0x598e84(0x381)](this[_0x598e84(0x38d)]['onRemoteChangeset'](_0x367eb3)),this[_0x598e84(0x2e1)]();}[_0x3b57cd(0x3cb)](_0x1cf38a){const _0x20db3b=_0x3b57cd;this[_0x20db3b(0x463)](),this[_0x20db3b(0x381)](this[_0x20db3b(0x38d)][_0x20db3b(0x558)](_0x1cf38a)),this['_unlockTransition']();}[_0x3b57cd(0x1be)](_0x27f618){const _0x4fccca=_0x3b57cd;this[_0x4fccca(0x463)](),this['_updateState'](this[_0x4fccca(0x38d)][_0x4fccca(0x46c)](_0x27f618)),this[_0x4fccca(0x2e1)]();}[_0x3b57cd(0x1ef)](_0x184066){const _0x1a49c1=_0x3b57cd;this['_lockTransition'](),this[_0x1a49c1(0x381)](this[_0x1a49c1(0x38d)][_0x1a49c1(0x2f7)](_0x184066)),this['_unlockTransition']();}[_0x3b57cd(0x3b9)](_0x3a2bb0){const _0x734b31=_0x3b57cd;if(!(this[_0x734b31(0x38d)]instanceof k))throw new TypeError(_0x734b31(0x4e8));const _0x19c096=_0x3a2bb0[_0x734b31(0x439)](_0x10de4c=>{const _0x6fcc3a=_0x734b31,_0x120217=this[_0x6fcc3a(0x496)][_0x6fcc3a(0x203)][_0x6fcc3a(0x458)](this[_0x6fcc3a(0x496)][_0x6fcc3a(0x203)][_0x6fcc3a(0x422)]()[_0x6fcc3a(0x301)])(_0x10de4c[_0x6fcc3a(0x3fa)],null)||_0x10de4c[_0x6fcc3a(0x3fa)];return{..._0x10de4c,'mutations':_0x120217};});this[_0x734b31(0x463)](),this[_0x734b31(0x381)](this[_0x734b31(0x38d)][_0x734b31(0x404)](_0x19c096)),this[_0x734b31(0x2e1)]();}[_0x3b57cd(0x31c)](){const _0x198148=_0x3b57cd;this['_lockTransition'](),this[_0x198148(0x381)](this[_0x198148(0x38d)][_0x198148(0x343)]()),this[_0x198148(0x2e1)]();}[_0x3b57cd(0x425)](_0xaf8de8=!0x1){const _0x3d70ae=_0x3b57cd;this['_lockTransition'](),this[_0x3d70ae(0x381)](this[_0x3d70ae(0x38d)][_0x3d70ae(0x175)]()),this[_0x3d70ae(0x2e1)]();const _0x2e379f=this[_0x3d70ae(0x38d)];_0xaf8de8&&_0x2e379f instanceof re&&(this[_0x3d70ae(0x463)](),this[_0x3d70ae(0x381)](_0x2e379f[_0x3d70ae(0x1b7)]()),this[_0x3d70ae(0x2e1)]());}async[_0x3b57cd(0x2d3)](){return new Promise(_0x53ee22=>{const _0xeb22d1=_0x4497;this[_0xeb22d1(0x4e0)]['sessionStatus$'][_0xeb22d1(0x3b4)](v[_0xeb22d1(0x341)](0x1))[_0xeb22d1(0x508)](async _0x531ea4=>{const _0x1526bc=_0xeb22d1;_0x53ee22(await this['_createInitialStateImpl'](_0x531ea4===x[_0x1526bc(0x2a9)]));});});}[_0x3b57cd(0x3b7)](){const _0x1538d9=_0x3b57cd,_0x275d61=this[_0x1538d9(0x234)];return{'onStateChange':(_0x466d0d,_0xc13905)=>{const _0x4d5269=_0x1538d9;if(_0x466d0d!==this[_0x4d5269(0x38d)])throw new Error(_0x4d5269(0x214)+_0x466d0d[_0x4d5269(0x368)]+'\x0aAfter:\x20'+_0xc13905[_0x4d5269(0x368)]+'\x0aCurrent:\x20'+this['_state'][_0x4d5269(0x368)]);this[_0x4d5269(0x381)](_0xc13905);},'onSendChangeset':_0x6090d3=>{const _0x2249f5=_0x1538d9;_0x6090d3[_0x2249f5(0x330)]||(_0x6090d3[_0x2249f5(0x330)]=this[_0x2249f5(0x3b1)],_0x6090d3[_0x2249f5(0x3ee)]=++this[_0x2249f5(0x242)]);const _0x58a4d5={'eventID':_[_0x2249f5(0x556)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x6090d3[_0x2249f5(0x234)],'unitType':this[_0x2249f5(0x3c8)],'changeset':_0x6090d3,'memberID':this[_0x2249f5(0x4e0)][_0x2249f5(0x339)]()}};this[_0x2249f5(0x4e0)][_0x2249f5(0x1e8)](_0x58a4d5,this[_0x2249f5(0x234)]);},'onMissingChangesets':({from:_0x580b9e,to:_0x2a20c1})=>{const _0x4178a4=_0x1538d9;this[_0x4178a4(0x45c)][_0x4178a4(0x3ec)](_0x4178a4(0x517),_0x4178a4(0x4a0)+_0x580b9e+_0x4178a4(0x35e)+_0x2a20c1);const _0x27f0d6={'eventID':_[_0x4178a4(0x556)][_0x4178a4(0x3fd)],'data':{'unitID':_0x275d61,'unitType':this['_type'],'from':_0x580b9e,'to':_0x2a20c1}};this[_0x4178a4(0x4e0)][_0x4178a4(0x1e8)](_0x27f0d6,this[_0x4178a4(0x234)]);}};}async[_0x3b57cd(0x552)](_0x27abfc){const _0x177251=_0x3b57cd;var _0x5d2505,_0x276366;const _0x11ad9f=await this[_0x177251(0x20c)][_0x177251(0x39d)](this[_0x177251(0x234)]),_0x4a691f=(_0x5d2505=_0x11ad9f==null?void 0x0:_0x11ad9f['mutations'])!=null?_0x5d2505:[],_0x5307e9=(_0x276366=_0x11ad9f==null?void 0x0:_0x11ad9f[_0x177251(0x4f4)])!=null?_0x276366:null,_0xdddc98=!!(_0x5307e9!=null&&_0x5307e9[_0x177251(0x330)])&&!!(_0x5307e9!=null&&_0x5307e9[_0x177251(0x3ee)]);this[_0x177251(0x3b1)]=_0xdddc98?_0x5307e9[_0x177251(0x330)]:Ds(),this['_changesetReqId']=_0xdddc98?_0x5307e9[_0x177251(0x3ee)]:0x0;const _0x54fe46=this['unitID'];try{this[_0x177251(0x2be)](_0x5307e9,_0x4a691f);}catch(_0x1d1d14){this[_0x177251(0x45c)][_0x177251(0x37f)](_0x1d1d14);}const _0x4cd864=this['_createHandler']();if(_0x27abfc){const _0x1ffdee=Pt(this[_0x177251(0x486)],_0x54fe46,this[_0x177251(0x3c8)],_0x5307e9,_0x4a691f,_0x4cd864);return _0x1ffdee instanceof W?_0x1ffdee[_0x177251(0x461)]():(_0x1ffdee instanceof F||_0x1ffdee instanceof Y)&&_0x1ffdee[_0x177251(0x3e8)](),_0x1ffdee;}return this[_0x177251(0x486)][_0x177251(0x39c)](X,_0x54fe46,this[_0x177251(0x3c8)],_0x5307e9,_0x4a691f,_0x4cd864);}[_0x3b57cd(0x2be)](_0x1506e5,_0x4cba43){const _0x1d4fb5=_0x3b57cd;var _0x410be0,_0x1d1fe7;const _0x5908e1=this[_0x1d4fb5(0x496)][_0x1d4fb5(0x203)][_0x1d4fb5(0x458)](this[_0x1d4fb5(0x496)][_0x1d4fb5(0x203)][_0x1d4fb5(0x422)]()[_0x1d4fb5(0x301)]);(_0x410be0=_0x5908e1((_0x1506e5==null?void 0x0:_0x1506e5['mutations'])||[],null))==null||_0x410be0[_0x1d4fb5(0x571)](_0x1fdcbd=>this['_commandService']['executeCommand'](_0x1fdcbd['id'],_0x1fdcbd[_0x1d4fb5(0x333)])),(_0x1d1fe7=_0x5908e1(_0x4cba43||[],null))==null||_0x1d1fe7[_0x1d4fb5(0x571)](_0x2d012f=>this[_0x1d4fb5(0x33b)][_0x1d4fb5(0x3be)](_0x2d012f['id'],_0x2d012f[_0x1d4fb5(0x333)]));}},exports[_0x3b57cd(0x44d)]=qe([p(0x3,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),p(0x4,a[_0x3b57cd(0x4ad)](exports['LocalCacheService'])),p(0x5,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x488)])),p(0x6,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)])),p(0x7,a[_0x3b57cd(0x4ad)](_['RevisionService'])),p(0x8,a['ILogService']),p(0x9,a['ICommandService']),p(0xa,A[_0x3b57cd(0x1ee)]),p(0xb,a['IPermissionService']),p(0xc,a[_0x3b57cd(0x200)](Re))],exports[_0x3b57cd(0x44d)]),exports[_0x3b57cd(0x57f)]=class extends exports[_0x3b57cd(0x44d)]{constructor(_0xbcaf71,_0x24222f,_0x1b2ec4,_0x66952f,_0x89f663,_0x21ed7c,_0x5b16f6,_0x3bb657,_0x380853,_0x13159a,_0x2b8550,_0x4cff07,_0x31f9c6,_0x2ee117,_0x28d214,_0x416c39,_0x42ef76){const _0x506c9e=_0x3b57cd;super(_0xbcaf71,_0x1b2ec4,_0x24222f,_0x66952f,_0x89f663,_0x21ed7c,_0x5b16f6,_0x3bb657,_0x31f9c6,_0x2ee117,_0x28d214,_0x416c39,_0x42ef76),this['unitID']=_0xbcaf71,this['type']=_0x24222f,this[_0x506c9e(0x4a6)]=_0x380853,this[_0x506c9e(0x3f6)]=_0x13159a,this[_0x506c9e(0x230)]=_0x2b8550,this[_0x506c9e(0x456)]=_0x4cff07;}[_0x3b57cd(0x3b7)](){const _0x37ddb2=_0x3b57cd,_0x1045a1=super[_0x37ddb2(0x3b7)]();return _0x1045a1[_0x37ddb2(0x58a)]=_0x39ba7b=>this[_0x37ddb2(0x3f6)][_0x37ddb2(0x29d)](_0x39ba7b),_0x1045a1[_0x37ddb2(0x36c)]=_0x448968=>this[_0x37ddb2(0x230)]['transformSelections'](_0x448968),_0x1045a1[_0x37ddb2(0x4c2)]=_0x3f7acb=>this[_0x37ddb2(0x456)][_0x37ddb2(0x4e4)](_0x3f7acb),_0x1045a1[_0x37ddb2(0x408)]=_0x27c1da=>this[_0x37ddb2(0x3f6)]['transformRemoteChangeset'](_0x27c1da),_0x1045a1;}async['_init'](){const _0x7b67f5=_0x3b57cd,_0x3fe1b0=await super[_0x7b67f5(0x1d3)]();return this[_0x7b67f5(0x4a6)][_0x7b67f5(0x275)]['pipe'](v[_0x7b67f5(0x1b3)](this[_0x7b67f5(0x3fc)]))[_0x7b67f5(0x508)](_0x341681=>{const _0x178b74=_0x7b67f5;if(_0x341681==null)return;const {unitId:_0x45d38d,redoState:_0x481531,commandId:_0x14aa6c}=_0x341681;if(_0x45d38d!==this[_0x178b74(0x234)])return;const _0x51051c={'id':_0x14aa6c,'type':a[_0x178b74(0x21d)][_0x178b74(0x335)],'params':{'unitId':_0x45d38d,'actions':_0x481531['actions'],'textRanges':null}};this[_0x178b74(0x206)](_0x51051c);}),_0x3fe1b0;}},exports['DocCollaborationEntity']=qe([p(0x3,a['Inject'](a[_0x3b57cd(0x232)])),p(0x4,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x33e)])),p(0x5,a['Inject'](_[_0x3b57cd(0x488)])),p(0x6,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)])),p(0x7,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),p(0x8,a[_0x3b57cd(0x4ad)](N[_0x3b57cd(0x479)])),p(0x9,a[_0x3b57cd(0x4ad)](fe)),p(0xa,a[_0x3b57cd(0x4ad)](pe)),p(0xb,a[_0x3b57cd(0x4ad)](Xe)),p(0xc,a['ILogService']),p(0xd,a[_0x3b57cd(0x17e)]),p(0xe,A[_0x3b57cd(0x1ee)]),p(0xf,a[_0x3b57cd(0x460)]),p(0x10,a[_0x3b57cd(0x200)](Re))],exports[_0x3b57cd(0x57f)]),exports[_0x3b57cd(0x510)]=class extends exports[_0x3b57cd(0x44d)]{constructor(_0x435646,_0x1717a1,_0x200d2e,_0x28b90a,_0x39ba50,_0x28fc6,_0xa6126f,_0x283477,_0x3d5273,_0x474957,_0x573f39,_0x26de29,_0x5e0f9c,_0x2f9043){const _0x4dc5c2=_0x3b57cd;super(_0x435646,_0x200d2e,_0x1717a1,_0x28b90a,_0x39ba50,_0x28fc6,_0xa6126f,_0x283477,_0x474957,_0x573f39,_0x26de29,_0x5e0f9c,_0x2f9043),this[_0x4dc5c2(0x234)]=_0x435646,this[_0x4dc5c2(0x537)]=_0x1717a1,this[_0x4dc5c2(0x43c)]=_0x3d5273;}['_createHandler'](){const _0x44a34d=_0x3b57cd,_0x4cffdb=super[_0x44a34d(0x3b7)]();return _0x4cffdb[_0x44a34d(0x36c)]=_0x26431d=>this['_sheetTransformSelectionsService']['transformSelections'](_0x26431d),_0x4cffdb;}async['_init'](){const _0x39e013=_0x3b57cd,_0x279855=await super['_init']();return this[_0x39e013(0x431)](this['_commandService'][_0x39e013(0x33f)]((_0x55be2f,_0x538582)=>{const _0x43a98d=_0x39e013;if(_0x55be2f[_0x43a98d(0x537)]!==a[_0x43a98d(0x21d)][_0x43a98d(0x335)]||_0x538582!=null&&_0x538582['fromCollab']||_0x538582!=null&&_0x538582[_0x43a98d(0x2f1)])return;const _0x2de376=_0x55be2f[_0x43a98d(0x333)];if((_0x2de376==null?void 0x0:_0x2de376[_0x43a98d(0x267)])!==this['unitID'])return;const _0x283d67=_0x55be2f,_0x26bb80=this['_compressMutationService'][_0x43a98d(0x203)][_0x43a98d(0x458)](this[_0x43a98d(0x496)]['interceptor'][_0x43a98d(0x422)]()['COMPRESS_MUTATION_SEND'])([_0x283d67],null)||[_0x283d67];this['_onLocalMutation'](_0x26bb80[0x0]);})),_0x279855;}},exports['SheetCollaborationEntity']=qe([p(0x3,a[_0x3b57cd(0x4ad)](a['Injector'])),p(0x4,a['Inject'](exports['LocalCacheService'])),p(0x5,a['Inject'](_['CompressMutationService'])),p(0x6,a['Inject'](a[_0x3b57cd(0x1f9)])),p(0x7,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x29e)])),p(0x8,a[_0x3b57cd(0x4ad)](Ie)),p(0x9,a['ILogService']),p(0xa,a[_0x3b57cd(0x17e)]),p(0xb,A[_0x3b57cd(0x1ee)]),p(0xc,a[_0x3b57cd(0x460)]),p(0xd,a[_0x3b57cd(0x200)](Re))],exports[_0x3b57cd(0x510)]);var zs=Object[_0x3b57cd(0x44e)],Js=Object['getOwnPropertyDescriptor'],Zs=(_0x57f71f,_0x2e63bd,_0x25c75d,_0x5f4858)=>{const _0x3af69b=_0x3b57cd;for(var _0x4989ec=_0x5f4858>0x1?void 0x0:_0x5f4858?Js(_0x2e63bd,_0x25c75d):_0x2e63bd,_0x318bfe=_0x57f71f[_0x3af69b(0x54c)]-0x1,_0x1f2157;_0x318bfe>=0x0;_0x318bfe--)(_0x1f2157=_0x57f71f[_0x318bfe])&&(_0x4989ec=(_0x5f4858?_0x1f2157(_0x2e63bd,_0x25c75d,_0x4989ec):_0x1f2157(_0x4989ec))||_0x4989ec);return _0x5f4858&&_0x4989ec&&zs(_0x2e63bd,_0x25c75d,_0x4989ec),_0x4989ec;},we=(_0x10c3e9,_0x2adcc7)=>(_0x3d71c1,_0x110088)=>_0x2adcc7(_0x3d71c1,_0x110088,_0x10c3e9);exports[_0x3b57cd(0x386)]=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x5dfa67,_0x21b558,_0x237949){const _0x34ff36=_0x3b57cd;super(),u(this,_0x34ff36(0x4cc),new Map()),u(this,_0x34ff36(0x177),new v['Subject']()),(this[_0x34ff36(0x486)]=_0x5dfa67,this['_collabSessionService']=_0x21b558,this[_0x34ff36(0x562)]=_0x237949,this['_init']());}[_0x3b57cd(0x378)](){const _0x18d816=_0x3b57cd;super[_0x18d816(0x378)](),this['_entities']['forEach'](_0x11505d=>_0x11505d['dispose']()),this['_entities'][_0x18d816(0x1c2)]();}['getCollabEntity'](_0x53236b){const _0x404cba=_0x3b57cd;var _0x1f0008;return(_0x1f0008=this[_0x404cba(0x4cc)][_0x404cba(0x4e6)](_0x53236b))!=null?_0x1f0008:null;}['getCollabEntity$'](_0x5b2d39){const _0x2bd031=_0x3b57cd,_0x14ea64=this[_0x2bd031(0x19b)](_0x5b2d39);return _0x14ea64?v['of'](_0x14ea64):this[_0x2bd031(0x177)]['pipe'](E['filter'](_0x40653b=>_0x40653b['unitID']===_0x5b2d39));}[_0x3b57cd(0x1d3)](){const _0x30bcf9=_0x3b57cd;this[_0x30bcf9(0x562)]['getTypeOfUnitAdded$'](a[_0x30bcf9(0x2b4)][_0x30bcf9(0x53b)])['pipe'](v[_0x30bcf9(0x1b3)](this['dispose$']),E[_0x30bcf9(0x495)](0x10))[_0x30bcf9(0x508)](async _0x5ae229=>{const _0x57579e=_0x30bcf9,_0x421fa8=_0x5ae229['getUnitId'](),_0x5c33d5=await this[_0x57579e(0x3a9)](_0x421fa8,H['UNIVER_SHEET']);this['_entities']['set'](_0x421fa8,_0x5c33d5);}),this[_0x30bcf9(0x562)][_0x30bcf9(0x1e3)](a[_0x30bcf9(0x2b4)][_0x30bcf9(0x1a9)])['pipe'](v[_0x30bcf9(0x1b3)](this[_0x30bcf9(0x3fc)]),E[_0x30bcf9(0x495)](0x10))['pipe'](E[_0x30bcf9(0x445)](_0x166df0=>!_0x166df0[_0x30bcf9(0x2fa)]()[_0x30bcf9(0x58c)]('__')))[_0x30bcf9(0x508)](async _0x277fe9=>{const _0x41afad=_0x30bcf9,_0x465ffd=_0x277fe9[_0x41afad(0x2fa)](),_0x2051b8=await this['_startCollaboration'](_0x465ffd,H['UNIVER_DOC']);this[_0x41afad(0x4cc)][_0x41afad(0x4af)](_0x465ffd,_0x2051b8);}),v[_0x30bcf9(0x547)](this[_0x30bcf9(0x562)][_0x30bcf9(0x44f)](a['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService'][_0x30bcf9(0x44f)](a[_0x30bcf9(0x2b4)][_0x30bcf9(0x1a9)]))['pipe'](v[_0x30bcf9(0x1b3)](this[_0x30bcf9(0x3fc)]))[_0x30bcf9(0x508)](_0x2a10b9=>{const _0x3e3430=_0x30bcf9,_0x8eeaec=_0x2a10b9['getUnitId'](),_0x392818=this[_0x3e3430(0x4cc)]['get'](_0x8eeaec);_0x392818&&(_0x392818[_0x3e3430(0x378)](),this['_entities']['delete'](_0x8eeaec));});}async[_0x3b57cd(0x3a9)](_0x1c03f6,_0x2cedec){const _0x516c70=_0x3b57cd,_0x37e505=await this[_0x516c70(0x1e5)]['requireSession'](_0x1c03f6),_0x15dbb3=this['_injector'][_0x516c70(0x39c)](this['_getCtorByUniverType'](_0x2cedec),_0x1c03f6,_0x2cedec,_0x37e505);return await _0x15dbb3['init'](),this[_0x516c70(0x177)][_0x516c70(0x3b8)](_0x15dbb3),_0x15dbb3;}[_0x3b57cd(0x42c)](_0x1ddca6){const _0x368dad=_0x3b57cd;switch(_0x1ddca6){case H['UNIVER_DOC']:return exports['DocCollaborationEntity'];case H[_0x368dad(0x53b)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x368dad(0x379)+_0x1ddca6);}}},exports['CollaborationController']=Zs([we(0x0,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),we(0x1,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x28d)])),we(0x2,a[_0x3b57cd(0x424)])],exports['CollaborationController']);const at=[_0x3b57cd(0x2a8),'jiqing500',_0x3b57cd(0x468),_0x3b57cd(0x271),_0x3b57cd(0x28a),_0x3b57cd(0x322)];class ze extends a[_0x3b57cd(0x54b)]{constructor(){const _0x434107=_0x3b57cd;super(...arguments),u(this,_0x434107(0x268),new Map()),u(this,_0x434107(0x536),0x0);}[_0x3b57cd(0x48a)](_0x5624d3){const _0x46ffac=_0x3b57cd;if(this['_assignedColors'][_0x46ffac(0x1cf)](_0x5624d3))return this[_0x46ffac(0x268)][_0x46ffac(0x4e6)](_0x5624d3);const _0x4bec2c=at[this[_0x46ffac(0x536)]];return this[_0x46ffac(0x536)]=(this['_colorIndex']+0x1)%at[_0x46ffac(0x54c)],this[_0x46ffac(0x268)][_0x46ffac(0x4af)](_0x5624d3,_0x4bec2c),_0x4bec2c;}}var Qs=Object[_0x3b57cd(0x44e)],ei=Object[_0x3b57cd(0x35f)],ti=(_0x4a1dd4,_0x4e202c,_0x5b8a7a,_0x145750)=>{const _0x3a3d97=_0x3b57cd;for(var _0x2c08d8=_0x145750>0x1?void 0x0:_0x145750?ei(_0x4e202c,_0x5b8a7a):_0x4e202c,_0x35766e=_0x4a1dd4[_0x3a3d97(0x54c)]-0x1,_0x42251d;_0x35766e>=0x0;_0x35766e--)(_0x42251d=_0x4a1dd4[_0x35766e])&&(_0x2c08d8=(_0x145750?_0x42251d(_0x4e202c,_0x5b8a7a,_0x2c08d8):_0x42251d(_0x2c08d8))||_0x2c08d8);return _0x145750&&_0x2c08d8&&Qs(_0x4e202c,_0x5b8a7a,_0x2c08d8),_0x2c08d8;},z=(_0x2db059,_0x2f7719)=>(_0x4dde78,_0x3e5198)=>_0x2f7719(_0x4dde78,_0x3e5198,_0x2db059);const si=0x12c,ii=0x64;let xe=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x463e79,_0x3d5eed,_0x3c3d2a,_0x15334c,_0x1adcdd,_0x40d75d,_0x155b5d,_0x15a076,_0x2ee93c){const _0x16f8c0=_0x3b57cd;super(),u(this,_0x16f8c0(0x306),!0x1),u(this,_0x16f8c0(0x1d3),!0x1),u(this,_0x16f8c0(0x48d),new v['BehaviorSubject'](new Map())),u(this,'cursorInfo$',this['_cursorInfo$'][_0x16f8c0(0x355)]()),u(this,_0x16f8c0(0x597),new v[(_0x16f8c0(0x470))]([])),u(this,'roomMembers$',this[_0x16f8c0(0x597)][_0x16f8c0(0x3b4)](v[_0x16f8c0(0x4f9)](si))),u(this,'_updateLocalCursor',a[_0x16f8c0(0x187)](_0x5c468c=>{const _0x5cab05=_0x16f8c0,_0x1c074b={'eventID':_['CollaborationEvent'][_0x5cab05(0x2d2)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x5cab05(0x339)](),'selection':Dt(_0x5c468c)}};this[_0x5cab05(0x409)][_0x5cab05(0x1e8)](_0x1c074b,this[_0x5cab05(0x234)]);},ii)),(this[_0x16f8c0(0x234)]=_0x463e79,this[_0x16f8c0(0x409)]=_0x3d5eed,this[_0x16f8c0(0x486)]=_0x3c3d2a,this['_colorAssignService']=_0x15334c,this[_0x16f8c0(0x312)]=_0x1adcdd,this[_0x16f8c0(0x4ea)]=_0x40d75d,this[_0x16f8c0(0x4be)]=_0x155b5d,this[_0x16f8c0(0x562)]=_0x15a076,this[_0x16f8c0(0x33b)]=_0x2ee93c);}get['cursorInfo'](){const _0x3d74e8=_0x3b57cd;return this[_0x3d74e8(0x48d)][_0x3d74e8(0x2d9)]();}get[_0x3b57cd(0x58b)](){const _0x58e37c=_0x3b57cd;return this['_roomMembers$'][_0x58e37c(0x2d9)]();}[_0x3b57cd(0x378)](){const _0x38b63b=_0x3b57cd;super[_0x38b63b(0x378)](),this[_0x38b63b(0x48d)][_0x38b63b(0x3b8)](new Map()),this['_cursorInfo$']['complete'](),this[_0x38b63b(0x597)]['next']([]),this[_0x38b63b(0x597)][_0x38b63b(0x23a)]();}[_0x3b57cd(0x1dc)](){const _0x1ad009=_0x3b57cd;this[_0x1ad009(0x1d3)]||(this[_0x1ad009(0x1d3)]=!0x0,this[_0x1ad009(0x409)][_0x1ad009(0x407)][_0x1ad009(0x3b4)](v[_0x1ad009(0x1b3)](this[_0x1ad009(0x3fc)]))[_0x1ad009(0x508)](_0x7296bb=>{const _0x306c14=_0x1ad009;_0x7296bb===x[_0x306c14(0x2a9)]?this[_0x306c14(0x425)]():this[_0x306c14(0x31c)]();}),this[_0x1ad009(0x409)][_0x1ad009(0x320)]['pipe'](v[_0x1ad009(0x1b3)](this['dispose$']))[_0x1ad009(0x508)](_0x10d50f=>{const _0x1aec53=_0x1ad009,_0x4d4a63=_0x10d50f['eventID'];_0x4d4a63===_[_0x1aec53(0x556)]['UPDATE_CURSOR']&&this[_0x1aec53(0x297)](_0x10d50f),_0x4d4a63===_[_0x1aec53(0x556)][_0x1aec53(0x40e)]&&this['_onCursorDelete'](_0x10d50f);}),this[_0x1ad009(0x431)](this[_0x1ad009(0x33b)][_0x1ad009(0x33f)](_0x49b03d=>{const _0x4f6ba7=_0x1ad009,_0x188808=_0x49b03d[_0x4f6ba7(0x333)];_0x188808!=null&&this[_0x4f6ba7(0x306)]&&_0x49b03d['id']===ne[_0x4f6ba7(0x1a8)]['id']&&_0x188808['unitId']===this['unitID']&&_0x188808[_0x4f6ba7(0x3e6)]===!0x1&&_0x188808[_0x4f6ba7(0x280)][_0x4f6ba7(0x54c)]>0x0&&this[_0x4f6ba7(0x2d7)](_0x188808[_0x4f6ba7(0x280)]);})),this[_0x1ad009(0x4ea)]['collabCursorState$'][_0x1ad009(0x3b4)](v['takeUntil'](this['dispose$']))[_0x1ad009(0x508)](_0x5a5a64=>{const _0x524162=_0x1ad009;if((_0x5a5a64==null?void 0x0:_0x5a5a64[_0x524162(0x234)])!==this[_0x524162(0x234)])return;const _0x38553e={'eventID':_['CollaborationEvent'][_0x524162(0x2d2)],'data':_0x5a5a64};this[_0x524162(0x297)](_0x38553e);}),this[_0x1ad009(0x431)](this['_commandService']['onCommandExecuted'](_0x1a8266=>{const _0x233918=_0x1ad009;if(_0x1a8266[_0x233918(0x333)]==null)return;const _0x2bbc60=_0x1a8266[_0x233918(0x333)];if(_0x1a8266['id']!==ne[_0x233918(0x50f)]['id']||_0x2bbc60[_0x233918(0x267)]!==this[_0x233918(0x234)])return;const _0x4568ed={'id':_0x233918(0x3e1),'params':_0x2bbc60},_0x58b22b=this['cursorInfo'];for(const [_0x5e8834,_0x4ebb90]of _0x58b22b){const _0xfefea3={'id':_0x233918(0x3e1),'params':{'unitId':this[_0x233918(0x234)],'actions':null,'textRanges':_0x4ebb90['ranges']}},_0xf36555=this[_0x233918(0x4be)][_0x233918(0x49c)](_0x4568ed,_0xfefea3,!0x1);if(_[_0x233918(0x3d0)](_0xf36555))throw _0xf36555[_0x233918(0x37f)];_0x58b22b[_0x233918(0x4af)](_0x5e8834,{..._0x4ebb90,'ranges':_0xf36555[_0x233918(0x4d8)][_0x233918(0x333)]['textRanges']});}queueMicrotask(()=>{const _0xeb1c57=_0x233918;this[_0xeb1c57(0x48d)]['next'](_0x58b22b);});})));}['_onCursorUpdate'](_0x1d9ea5){const _0x21ed44=_0x3b57cd;var _0x3609d3,_0x218a2b;const {memberID:_0x59e696,selection:_0x138bd0}=_0x1d9ea5['data'],_0x198deb=xs(_0x138bd0),_0x2bdf5f=(_0x218a2b=(_0x3609d3=this['_memberService'][_0x21ed44(0x29c)](this[_0x21ed44(0x234)],_0x59e696))==null?void 0x0:_0x3609d3[_0x21ed44(0x35d)])!=null?_0x218a2b:_0x21ed44(0x2bd),_0x3f14b5={'color':this[_0x21ed44(0x3a7)][_0x21ed44(0x48a)](_0x59e696),'name':_0x2bdf5f,'ranges':_0x198deb},_0x385e4c=this[_0x21ed44(0x443)];_0x385e4c['set'](_0x59e696,_0x3f14b5),this[_0x21ed44(0x48d)]['next'](_0x385e4c);}['_onCursorDelete'](_0x3cca7e){const _0x20cf0c=_0x3b57cd,{memberID:_0x2a885b}=_0x3cca7e['data'],_0x5d3b14=this[_0x20cf0c(0x443)];_0x5d3b14[_0x20cf0c(0x524)](_0x2a885b),this[_0x20cf0c(0x48d)][_0x20cf0c(0x3b8)](_0x5d3b14);}['_toggleOnline'](){const _0x44fc80=_0x3b57cd;var _0x9a973;if(this[_0x44fc80(0x306)]=!0x0,((_0x9a973=this[_0x44fc80(0x562)][_0x44fc80(0x55a)]())==null?void 0x0:_0x9a973[_0x44fc80(0x2fa)]())!==this[_0x44fc80(0x234)])return;const _0x56ff12=this[_0x44fc80(0x486)][_0x44fc80(0x4e6)](ne[_0x44fc80(0x243)])[_0x44fc80(0x4fa)]();Array[_0x44fc80(0x452)](_0x56ff12)&&_0x56ff12['length']>0x0&&this[_0x44fc80(0x2d7)](_0x56ff12);}['_toggleOffline'](){const _0x46c0d4=_0x3b57cd;this[_0x46c0d4(0x306)]=!0x1;}};xe=ti([z(0x2,a['Inject'](a['Injector'])),z(0x3,a[_0x3b57cd(0x4ad)](ze)),z(0x4,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x2e4)])),z(0x5,a[_0x3b57cd(0x4ad)](Xe)),z(0x6,_[_0x3b57cd(0x4d5)]),z(0x7,a['IUniverInstanceService']),z(0x8,a[_0x3b57cd(0x17e)])],xe);var ni=Object[_0x3b57cd(0x44e)],ri=Object[_0x3b57cd(0x35f)],oi=(_0x31ac63,_0x43ec5e,_0x1a0aa2,_0x158b9d)=>{const _0x206569=_0x3b57cd;for(var _0x44ecf5=_0x158b9d>0x1?void 0x0:_0x158b9d?ri(_0x43ec5e,_0x1a0aa2):_0x43ec5e,_0x3086a0=_0x31ac63[_0x206569(0x54c)]-0x1,_0xf57502;_0x3086a0>=0x0;_0x3086a0--)(_0xf57502=_0x31ac63[_0x3086a0])&&(_0x44ecf5=(_0x158b9d?_0xf57502(_0x43ec5e,_0x1a0aa2,_0x44ecf5):_0xf57502(_0x44ecf5))||_0x44ecf5);return _0x158b9d&&_0x44ecf5&&ni(_0x43ec5e,_0x1a0aa2,_0x44ecf5),_0x44ecf5;},te=(_0x1ae5b7,_0x35a05e)=>(_0x582d92,_0x6d63f7)=>_0x35a05e(_0x582d92,_0x6d63f7,_0x1ae5b7);const ai=0x12c,ci=0x64,li=()=>{let _0x3625c9=[],_0x25c242=!0x1;return _0x316909=>{_0x3625c9['push'](_0x316909),_0x25c242||(_0x25c242=!0x0,setTimeout(()=>{const _0x4c7609=_0x4497;_0x3625c9[_0x4c7609(0x571)](_0x3be7c6=>_0x3be7c6()),_0x3625c9=[],_0x25c242=!0x1;}));};};let ke=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x431cb6,_0x362612,_0x34bcae,_0x4774cc,_0x2a1eb3,_0x213c93,_0x457d74,_0x4c4bcb){const _0x4b39de=_0x3b57cd;super(),u(this,_0x4b39de(0x306),!0x1),u(this,_0x4b39de(0x1d3),!0x1),u(this,_0x4b39de(0x48d),new v[(_0x4b39de(0x470))](new Map())),u(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),u(this,_0x4b39de(0x597),new v[(_0x4b39de(0x470))]([])),u(this,_0x4b39de(0x38f),this[_0x4b39de(0x597)][_0x4b39de(0x3b4)](v[_0x4b39de(0x4f9)](ai))),u(this,_0x4b39de(0x2d7),a[_0x4b39de(0x187)]((_0x25f898,_0x53fc4e)=>{const _0x513862=_0x4b39de,_0x37547c={'eventID':_[_0x513862(0x556)][_0x513862(0x2d2)],'data':{'unitID':this[_0x513862(0x234)],'memberID':this[_0x513862(0x409)][_0x513862(0x339)](),'selection':Qe[_0x513862(0x53a)](_0x25f898,_0x53fc4e[_0x513862(0x53d)])}};this[_0x513862(0x409)]['send'](_0x37547c,this[_0x513862(0x234)]);},ci)),(this[_0x4b39de(0x234)]=_0x431cb6,this[_0x4b39de(0x409)]=_0x362612,this[_0x4b39de(0x486)]=_0x34bcae,this[_0x4b39de(0x3a7)]=_0x4774cc,this[_0x4b39de(0x312)]=_0x2a1eb3,this[_0x4b39de(0x562)]=_0x213c93,this[_0x4b39de(0x33b)]=_0x457d74,this['_refRangeService']=_0x4c4bcb);}get['cursorInfo'](){const _0x44a93a=_0x3b57cd;return this['_cursorInfo$'][_0x44a93a(0x2d9)]();}get[_0x3b57cd(0x58b)](){const _0x34bd59=_0x3b57cd;return this[_0x34bd59(0x597)][_0x34bd59(0x2d9)]();}[_0x3b57cd(0x378)](){const _0x1aad85=_0x3b57cd;super[_0x1aad85(0x378)](),this['_cursorInfo$'][_0x1aad85(0x3b8)](new Map()),this[_0x1aad85(0x48d)]['complete'](),this[_0x1aad85(0x597)][_0x1aad85(0x3b8)]([]),this[_0x1aad85(0x597)][_0x1aad85(0x23a)]();}['init'](){const _0x18fee2=_0x3b57cd;this['_init']||(this[_0x18fee2(0x1d3)]=!0x0,this['_session'][_0x18fee2(0x407)][_0x18fee2(0x3b4)](v[_0x18fee2(0x1b3)](this[_0x18fee2(0x3fc)]))[_0x18fee2(0x508)](_0x35dd80=>{const _0x922503=_0x18fee2;_0x35dd80===x['ONLINE']?this[_0x922503(0x425)]():this[_0x922503(0x31c)]();}),this['_session'][_0x18fee2(0x320)][_0x18fee2(0x3b4)](v[_0x18fee2(0x1b3)](this['dispose$']))[_0x18fee2(0x508)](_0x3cb2f7=>{const _0x115968=_0x18fee2,_0xb79035=_0x3cb2f7[_0x115968(0x2f8)];_0xb79035===_[_0x115968(0x556)]['UPDATE_CURSOR']&&this[_0x115968(0x297)](_0x3cb2f7),_0xb79035===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x115968(0x47a)](_0x3cb2f7);}),this[_0x18fee2(0x515)](),this['disposeWithMe'](this[_0x18fee2(0x33b)][_0x18fee2(0x33f)](_0x318797=>{const _0x2c499c=_0x18fee2;if(this[_0x2c499c(0x306)]&&_0x318797['id']===C[_0x2c499c(0x4e2)]['id']&&_0x318797[_0x2c499c(0x333)][_0x2c499c(0x267)]===this[_0x2c499c(0x234)]){const _0x23b987=_0x318797[_0x2c499c(0x333)];this['_updateLocalCursor'](_0x23b987['subUnitId'],_0x23b987[_0x2c499c(0x255)][0x0]);}})));}['_onCursorUpdate'](_0x175909){const _0x407f44=_0x3b57cd;var _0xd686b3,_0x54cfbb;const {memberID:_0xe0ca73,selection:_0x5a0f56}=_0x175909[_0x407f44(0x30a)],{sheetName:_0x3195ae,range:_0x3481fe}=Qe[_0x407f44(0x513)](_0x5a0f56),_0x56a739={'name':(_0x54cfbb=(_0xd686b3=this[_0x407f44(0x312)][_0x407f44(0x29c)](this[_0x407f44(0x234)],_0xe0ca73))==null?void 0x0:_0xd686b3[_0x407f44(0x35d)])!=null?_0x54cfbb:_0x407f44(0x2bd),'range':this['_getMergeRange'](_0x3195ae,_0x3481fe),'sheetID':_0x3195ae,'color':this[_0x407f44(0x3a7)][_0x407f44(0x48a)](_0xe0ca73),'selection':_0x5a0f56},_0xf09244=this[_0x407f44(0x443)];_0xf09244[_0x407f44(0x4af)](_0xe0ca73,_0x56a739),this[_0x407f44(0x48d)][_0x407f44(0x3b8)](_0xf09244);}[_0x3b57cd(0x47a)](_0x4d6457){const _0x5b309d=_0x3b57cd,{memberID:_0x28553c}=_0x4d6457['data'],_0x56743a=this['cursorInfo'];_0x56743a[_0x5b309d(0x524)](_0x28553c),this[_0x5b309d(0x48d)][_0x5b309d(0x3b8)](_0x56743a);}[_0x3b57cd(0x30d)](_0x5df3aa,_0x30701e){const _0x3e23e3=_0x3b57cd;var _0x4ff7c0,_0x407e0c;const _0x41edcc=(_0x407e0c=(_0x4ff7c0=this[_0x3e23e3(0x562)][_0x3e23e3(0x1a6)](this[_0x3e23e3(0x234)]))==null?void 0x0:_0x4ff7c0[_0x3e23e3(0x316)](_0x5df3aa))==null?void 0x0:_0x407e0c[_0x3e23e3(0x4d3)]();return(_0x41edcc==null?void 0x0:_0x41edcc[_0x3e23e3(0x303)](_0x210562=>a[_0x3e23e3(0x186)]['contains'](_0x210562,_0x30701e)))||_0x30701e;}[_0x3b57cd(0x515)](){const _0x4477e1=_0x3b57cd,_0x42835b=new a[(_0x4477e1(0x300))](),_0x472bbe=li(),_0x1bdcd4=()=>{const _0x6b58dc=_0x4477e1;_0x42835b[_0x6b58dc(0x378)]();const _0x1f4f12=(_0x32281e,_0x6812f,_0x419649,_0xfc80bc)=>{const _0x333b7a=_0x6b58dc;let _0x117b7f=[];switch(_0x32281e['id']){case C[_0x333b7a(0x238)]['DeleteRangeMoveLeftCommandId']:{_0x117b7f=C[_0x333b7a(0x22c)](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)][_0x333b7a(0x3fe)]:{_0x117b7f=C[_0x333b7a(0x516)](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)][_0x333b7a(0x391)]:{_0x117b7f=C['handleInsertCol'](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)]['InsertRangeMoveDownCommandId']:{_0x117b7f=C['handleInsertRangeMoveDown'](_0x32281e,_0xfc80bc);break;}case C['EffectRefRangId'][_0x333b7a(0x4c6)]:{_0x117b7f=C[_0x333b7a(0x436)](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)][_0x333b7a(0x32b)]:{_0x117b7f=C['handleInsertRow'](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)][_0x333b7a(0x1f6)]:{_0x117b7f=C[_0x333b7a(0x3d7)](_0x32281e,_0xfc80bc);break;}case C[_0x333b7a(0x238)][_0x333b7a(0x4b2)]:{_0x117b7f=C['handleIRemoveCol'](_0x32281e,_0xfc80bc);break;}case C['EffectRefRangId'][_0x333b7a(0x3b5)]:{_0x117b7f=C['handleIRemoveRow'](_0x32281e,_0xfc80bc);break;}}const _0x5d91a4=C[_0x333b7a(0x3cd)](_0x117b7f,_0xfc80bc),_0x1416b6=this[_0x333b7a(0x443)]['get'](_0x6812f);if(_0x1416b6&&_0x5d91a4){const _0xdce8f1={..._0x1416b6,'range':_0x5d91a4};this[_0x333b7a(0x443)][_0x333b7a(0x4af)](_0x6812f,_0xdce8f1),_0x472bbe(()=>{const _0x42aea1=_0x333b7a,_0x149cc7=this[_0x42aea1(0x252)][_0x42aea1(0x4ee)](_0x5d91a4,_0x26df28=>(_0x149cc7['dispose'](),_0x1f4f12(_0x26df28,_0x6812f,_0x419649,_0x5d91a4)));_0x42835b[_0x42aea1(0x477)](_0x149cc7);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x6b58dc(0x571)]((_0x2decce,_0x58e2f8)=>{const _0x536bb1=_0x6b58dc,{range:_0x4765f9,sheetID:_0x1e1579}=_0x2decce,_0x18a547=this[_0x536bb1(0x252)][_0x536bb1(0x4ee)](_0x4765f9,_0x34b97d=>(_0x18a547[_0x536bb1(0x378)](),_0x1f4f12(_0x34b97d,_0x58e2f8,_0x1e1579,_0x4765f9)));_0x42835b['add'](_0x18a547);});};this['disposeWithMe'](a['toDisposable'](this[_0x4477e1(0x48d)]['subscribe'](()=>{_0x1bdcd4();})));}[_0x3b57cd(0x425)](){const _0x5204ce=_0x3b57cd;var _0x16a675,_0x1e735d;if(this['_online']=!0x0,((_0x16a675=this[_0x5204ce(0x562)][_0x5204ce(0x55a)]())==null?void 0x0:_0x16a675[_0x5204ce(0x2fa)]())!==this[_0x5204ce(0x234)])return;const _0x1d6374=(_0x1e735d=this['_injector'][_0x5204ce(0x4e6)](C[_0x5204ce(0x33a)])[_0x5204ce(0x417)]())==null?void 0x0:_0x1e735d[0x0],_0x5cc4c9=this[_0x5204ce(0x562)]['getCurrentUnitForType'](a[_0x5204ce(0x2b4)]['UNIVER_SHEET'])[_0x5204ce(0x3ab)]();_0x1d6374&&_0x5cc4c9&&this['_updateLocalCursor'](_0x5cc4c9['getSheetId'](),_0x1d6374);}['_toggleOffline'](){const _0x3203f6=_0x3b57cd;this[_0x3203f6(0x306)]=!0x1;}};ke=oi([te(0x2,a['Inject'](a[_0x3b57cd(0x232)])),te(0x3,a['Inject'](ze)),te(0x4,a[_0x3b57cd(0x4ad)](exports['MemberService'])),te(0x5,a['IUniverInstanceService']),te(0x6,a[_0x3b57cd(0x17e)]),te(0x7,a['Inject'](C[_0x3b57cd(0x382)]))],ke);var hi=Object[_0x3b57cd(0x44e)],_i=Object['getOwnPropertyDescriptor'],ui=(_0x293af0,_0x1181eb,_0x304e65,_0x825c49)=>{const _0x56a7b7=_0x3b57cd;for(var _0x2945b1=_0x825c49>0x1?void 0x0:_0x825c49?_i(_0x1181eb,_0x304e65):_0x1181eb,_0x385a78=_0x293af0[_0x56a7b7(0x54c)]-0x1,_0x521216;_0x385a78>=0x0;_0x385a78--)(_0x521216=_0x293af0[_0x385a78])&&(_0x2945b1=(_0x825c49?_0x521216(_0x1181eb,_0x304e65,_0x2945b1):_0x521216(_0x2945b1))||_0x2945b1);return _0x825c49&&_0x2945b1&&hi(_0x1181eb,_0x304e65,_0x2945b1),_0x2945b1;},Ne=(_0x30f2c8,_0x329ee0)=>(_0x513b91,_0x13c5c3)=>_0x329ee0(_0x513b91,_0x13c5c3,_0x30f2c8);let oe=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x1dfebe,_0x4a78d5,_0x34aff5){const _0x47668a=_0x3b57cd;super(),u(this,_0x47668a(0x4cc),new Map()),u(this,'_entityInit$',new v[(_0x47668a(0x56b))]()),(this[_0x47668a(0x562)]=_0x1dfebe,this[_0x47668a(0x486)]=_0x4a78d5,this['_collabSessionService']=_0x34aff5,this[_0x47668a(0x1d3)]());}[_0x3b57cd(0x378)](){const _0x47ffda=_0x3b57cd;super[_0x47ffda(0x378)](),this[_0x47ffda(0x177)][_0x47ffda(0x23a)](),this[_0x47ffda(0x4cc)][_0x47ffda(0x571)](_0x4cb745=>_0x4cb745[_0x47ffda(0x378)]());}[_0x3b57cd(0x56a)](_0x4946e1){const _0x5d0ba6=_0x3b57cd;return this[_0x5d0ba6(0x4cc)][_0x5d0ba6(0x1cf)](_0x4946e1)?this['_entities'][_0x5d0ba6(0x4e6)](_0x4946e1)[_0x5d0ba6(0x471)]:this[_0x5d0ba6(0x177)][_0x5d0ba6(0x3b4)](v[_0x5d0ba6(0x445)](_0x258a62=>_0x258a62['unitID']===_0x4946e1),v[_0x5d0ba6(0x2c5)](_0x44166f=>_0x44166f['cursorInfo$']));}[_0x3b57cd(0x1d3)](){const _0x582b06=_0x3b57cd;this['_univerInstanceService'][_0x582b06(0x1e3)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x582b06(0x3b4)](v['takeUntil'](this[_0x582b06(0x3fc)]))[_0x582b06(0x508)](async _0x4f38b2=>{const _0x2492f8=_0x582b06,_0x354a06=_0x4f38b2['getUnitId'](),_0x503d9d=await this[_0x2492f8(0x367)](_0x354a06);this['_entityInit$'][_0x2492f8(0x3b8)](_0x503d9d),this['_entities'][_0x2492f8(0x4af)](_0x354a06,_0x503d9d);}),this['_univerInstanceService'][_0x582b06(0x1e3)](a[_0x582b06(0x2b4)][_0x582b06(0x1a9)])[_0x582b06(0x3b4)](v[_0x582b06(0x1b3)](this[_0x582b06(0x3fc)]))['pipe'](v['filter'](_0x5524ca=>!_0x5524ca[_0x582b06(0x2fa)]()['startsWith']('__')))[_0x582b06(0x508)](async _0x2763f1=>{const _0x42aee6=_0x582b06,_0x11f654=_0x2763f1[_0x42aee6(0x2fa)](),_0x41001b=await this[_0x42aee6(0x2e0)](_0x11f654);this[_0x42aee6(0x177)][_0x42aee6(0x3b8)](_0x41001b),this['_entities']['set'](_0x11f654,_0x41001b);}),v[_0x582b06(0x547)](this[_0x582b06(0x562)][_0x582b06(0x44f)](a[_0x582b06(0x2b4)][_0x582b06(0x1a9)]),this[_0x582b06(0x562)][_0x582b06(0x44f)](a[_0x582b06(0x2b4)][_0x582b06(0x53b)]))['pipe'](v[_0x582b06(0x1b3)](this[_0x582b06(0x3fc)]))[_0x582b06(0x508)](_0x17e112=>{const _0x449cbd=_0x582b06,_0x474f89=_0x17e112['getUnitId'](),_0x4c3d38=this[_0x449cbd(0x4cc)][_0x449cbd(0x4e6)](_0x474f89);_0x4c3d38&&(_0x4c3d38[_0x449cbd(0x378)](),this[_0x449cbd(0x4cc)][_0x449cbd(0x524)](_0x474f89));});}async['_startSheetCollabCursor'](_0x3ef23d){const _0x8cc2d9=_0x3b57cd,_0x66240b=await this[_0x8cc2d9(0x1e5)][_0x8cc2d9(0x55b)](_0x3ef23d),_0x41d895=this['_injector'][_0x8cc2d9(0x39c)](ke,_0x3ef23d,_0x66240b);return _0x41d895[_0x8cc2d9(0x1dc)](),_0x41d895;}async['_startDocCollabCursor'](_0x4e6c7b){const _0x36a0ac=_0x3b57cd,_0x385188=await this[_0x36a0ac(0x1e5)][_0x36a0ac(0x55b)](_0x4e6c7b),_0x137e41=this[_0x36a0ac(0x486)][_0x36a0ac(0x39c)](xe,_0x4e6c7b,_0x385188);return _0x137e41[_0x36a0ac(0x1dc)](),_0x137e41;}};oe=ui([Ne(0x0,a[_0x3b57cd(0x424)]),Ne(0x1,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),Ne(0x2,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x28d)]))],oe);const de=0x14,ct=0xc8,Me=0x4,di=0x5;function Si(_0x42d13f,_0x58c2b3){const _0x2f746c=_0x3b57cd;let {radius:_0x4e6684,width:_0x98c4b2,height:_0x47a8df}=_0x58c2b3;_0x4e6684=_0x4e6684!=null?_0x4e6684:0x0,_0x98c4b2=_0x98c4b2!=null?_0x98c4b2:0x1e,_0x47a8df=_0x47a8df!=null?_0x47a8df:0x1e;let _0x2bd2ab=0x0,_0x3fcccd=0x0,_0x561f9c=0x0;_0x2bd2ab=_0x3fcccd=_0x561f9c=Math[_0x2f746c(0x41a)](_0x4e6684,_0x98c4b2/0x2,_0x47a8df/0x2),_0x42d13f[_0x2f746c(0x2e5)](),_0x42d13f[_0x2f746c(0x248)](_0x2bd2ab,0x0),_0x42d13f[_0x2f746c(0x192)](_0x98c4b2-_0x3fcccd,0x0),_0x42d13f['arc'](_0x98c4b2-_0x3fcccd,_0x3fcccd,_0x3fcccd,Math['PI']*0x3/0x2,0x0,!0x1),_0x42d13f[_0x2f746c(0x192)](_0x98c4b2,_0x47a8df-_0x561f9c),_0x42d13f['arc'](_0x98c4b2-_0x561f9c,_0x47a8df-_0x561f9c,_0x561f9c,0x0,Math['PI']/0x2,!0x1),_0x42d13f[_0x2f746c(0x192)](0x0,_0x47a8df),_0x42d13f[_0x2f746c(0x192)](0x0,_0x2bd2ab),_0x42d13f[_0x2f746c(0x398)](_0x2bd2ab,_0x2bd2ab,_0x2bd2ab,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x42d13f[_0x2f746c(0x2a3)](),_0x58c2b3[_0x2f746c(0x2e7)]&&(_0x42d13f[_0x2f746c(0x415)](),_0x42d13f[_0x2f746c(0x3a8)]=_0x58c2b3[_0x2f746c(0x2e7)],_0x58c2b3['fillRule']===_0x2f746c(0x23d)?_0x42d13f[_0x2f746c(0x2e7)]('evenodd'):_0x42d13f[_0x2f746c(0x2e7)](),_0x42d13f[_0x2f746c(0x388)]());}class Oe extends O[_0x3b57cd(0x1a5)]{constructor(_0x28e6dd,_0x5223e7){const _0x57975a=_0x3b57cd;super(_0x28e6dd,_0x5223e7),u(this,_0x57975a(0x34e)),u(this,_0x57975a(0x1f8)),(this[_0x57975a(0x34e)]=_0x5223e7==null?void 0x0:_0x5223e7[_0x57975a(0x34e)],this['text']=_0x5223e7==null?void 0x0:_0x5223e7[_0x57975a(0x1f8)]);}static[_0x3b57cd(0x585)](_0x1aa888,_0x12b897){const _0x582d64=_0x3b57cd,{text:_0x455ae4,color:_0x2d102d}=_0x12b897;_0x1aa888['save'](),_0x1aa888[_0x582d64(0x3c1)]=_0x582d64(0x41c);const _0x23e093=_0x1aa888[_0x582d64(0x4b7)](_0x455ae4)[_0x582d64(0x197)],_0x1b75a3=Math[_0x582d64(0x41a)](_0x23e093+0x2*Me,ct);Si(_0x1aa888,{'height':de,'radius':0x4,'width':_0x1b75a3,'fill':_0x2d102d,'evented':!0x1}),_0x1aa888[_0x582d64(0x3a8)]='#FFF';const _0x3da852=Me,_0x315108=de-di,_0x5a4ea0=ct-0x2*Me;if(_0x23e093>_0x5a4ea0){let _0x4cbbd6='',_0x392fc7=0x0;for(const _0x1291f6 of _0x455ae4){const _0x4d7136=_0x1aa888[_0x582d64(0x4b7)](_0x1291f6)[_0x582d64(0x197)];if(_0x392fc7+_0x4d7136<=_0x5a4ea0-_0x1aa888[_0x582d64(0x4b7)](_0x582d64(0x240))[_0x582d64(0x197)])_0x4cbbd6+=_0x1291f6,_0x392fc7+=_0x4d7136;else{_0x4cbbd6+=_0x582d64(0x240);break;}}_0x1aa888['fillText'](_0x4cbbd6,_0x3da852,_0x315108);}else _0x1aa888[_0x582d64(0x481)](_0x455ae4,_0x3da852,_0x315108);_0x1aa888[_0x582d64(0x388)]();}[_0x3b57cd(0x3d2)](_0x55305c){const _0x4a9fda=_0x3b57cd;Oe[_0x4a9fda(0x585)](_0x55305c,this);}}function _0x4497(_0x27139a,_0x43efde){const _0xac00d1=_0xac00();return _0x4497=function(_0x4497d3,_0x362357){_0x4497d3=_0x4497d3-0x16a;let _0x3826fe=_0xac00d1[_0x4497d3];return _0x3826fe;},_0x4497(_0x27139a,_0x43efde);}const Ae=_0x3b57cd(0x4f3),vi=_0x3b57cd(0x209),mi=_0x3b57cd(0x23e),le=0x6,gi=1.5,Le=0x4,fi=1.5,Ii=_0x3b57cd(0x3d5);class lt{constructor(_0x553fc9,_0x18474e,_0x24b3b9,_0x3995a6){const _0x875a35=_0x3b57cd;u(this,_0x875a35(0x1a2),[]),u(this,_0x875a35(0x412),null),u(this,_0x875a35(0x512),null),u(this,_0x875a35(0x1b9),null),u(this,_0x875a35(0x28f),null),u(this,_0x875a35(0x26c),null),(this['_cursor']=_0x553fc9,this[_0x875a35(0x1c4)]=_0x18474e,this[_0x875a35(0x49d)]=_0x24b3b9,this['_document']=_0x3995a6,this[_0x875a35(0x48c)]());}set['_hover'](_0x4d9b63){const _0x3fa7f1=_0x3b57cd;_0x4d9b63?(this[_0x3fa7f1(0x1b9)]&&this[_0x3fa7f1(0x1b9)]['hide'](),this['_textBubble']&&this[_0x3fa7f1(0x512)]['show']()):(this['_anchorDot']&&this['_anchorDot'][_0x3fa7f1(0x2e8)](),this[_0x3fa7f1(0x512)]&&this[_0x3fa7f1(0x512)][_0x3fa7f1(0x19f)]());}['dispose'](){const _0x571851=_0x3b57cd;for(const _0x22fa1c of this[_0x571851(0x1a2)])_0x22fa1c[_0x571851(0x378)]();this[_0x571851(0x512)]&&this[_0x571851(0x512)]['dispose'](),this['_anchorDot']&&this[_0x571851(0x1b9)][_0x571851(0x378)](),this[_0x571851(0x412)]&&this[_0x571851(0x412)][_0x571851(0x378)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x3f66f2=_0x3b57cd;var _0x483347;const {_docSkeleton:_0x61f8b2,_document:_0x55c01f}=this,{color:_0x361292,name:_0xfd388,ranges:_0x4a325b}=this[_0x3f66f2(0x559)],_0x53ebeb=_0x55c01f[_0x3f66f2(0x568)](),{docsLeft:_0x47bb70,docsTop:_0xeb3b73}=_0x53ebeb,_0x5452e9=new N[(_0x3f66f2(0x1dd))](_0x53ebeb,_0x61f8b2);for(const {startOffset:_0x38f949,endOffset:_0x544f2d,rangeType:_0x4889f0,segmentId:_0x492916,segmentPage:_0xd8e1c,collapsed:_0x164007,isActive:_0x12b893}of _0x4a325b){const _0x444db8=_0x61f8b2[_0x3f66f2(0x4c5)](_0x38f949,!0x0,_0x492916,_0xd8e1c);let _0x35ae0b=_0x61f8b2[_0x3f66f2(0x4c5)](_0x544f2d,!0x0,_0x492916,_0xd8e1c);if(_0x35ae0b==null&&(_0x35ae0b=_0x61f8b2[_0x3f66f2(0x4c5)](_0x544f2d-0x1,!0x1,_0x492916,_0xd8e1c)),_0x12b893){const {contentBoxPointGroup:_0x4208ed}=_0x5452e9[_0x3f66f2(0x41f)](_0x35ae0b,_0x35ae0b);if(_0x4208ed[_0x3f66f2(0x54c)]===0x0)continue;this[_0x3f66f2(0x361)](_0x361292,_0x4208ed,_0x47bb70,_0xeb3b73,_0xfd388),this['_eventUnsubscribe']=this[_0x3f66f2(0x50b)]();}if(!_0x164007&&_0x444db8&&_0x35ae0b){if(_0x4889f0===a[_0x3f66f2(0x3d6)][_0x3f66f2(0x576)]){const _0x42da0a=new N[(_0x3f66f2(0x57a))](_0x53ebeb,_0x61f8b2),{pointGroup:_0x51ecb0}=(_0x483347=_0x42da0a['getRangePointData'](_0x444db8,_0x35ae0b))!=null?_0x483347:{};if(_0x51ecb0==null||_0x51ecb0[_0x3f66f2(0x54c)]===0x0)continue;this[_0x3f66f2(0x27f)](_0x361292,_0x51ecb0,_0x47bb70,_0xeb3b73);}else{const {borderBoxPointGroup:_0x3129e5}=_0x5452e9[_0x3f66f2(0x41f)](_0x444db8,_0x35ae0b);if(_0x3129e5[_0x3f66f2(0x54c)]===0x0)continue;this['_drawTextRange'](_0x361292,_0x3129e5,_0x47bb70,_0xeb3b73);}}}}[_0x3b57cd(0x361)](_0x37431b,_0xaa46d,_0x5e7166,_0x2b968f,_0x1fda7e){const _0x2426f9=_0x3b57cd,_0x286e2c=this['_getAnchorBounding'](_0xaa46d),{left:_0x5bd57f,top:_0x115f94,height:_0x1677ce}=_0x286e2c,_0x5bd369=this['_getScale'](),_0x6e94cb=fi/_0x5bd369,_0x99a58e=new O[(_0x2426f9(0x363))](Ae+a[_0x2426f9(0x2a0)][_0x2426f9(0x3e4)](le),{'left':_0x5bd57f+_0x5e7166-_0x6e94cb,'top':_0x115f94+_0x2b968f,'height':_0x1677ce,'width':gi,'fill':_0x37431b||O['getColor'](a['COLORS'][_0x2426f9(0x42f)],0x0),'strokeWidth':_0x6e94cb,'stroke':Ii,'evented':!0x0});this[_0x2426f9(0x412)]=_0x99a58e,this[_0x2426f9(0x1c4)][_0x2426f9(0x419)](_0x99a58e,N[_0x2426f9(0x338)]);const _0x42f90d=new O[(_0x2426f9(0x363))](Ae+a[_0x2426f9(0x2a0)][_0x2426f9(0x3e4)](le),{'left':_0x5bd57f+_0x5e7166-_0x6e94cb,'top':_0x115f94+_0x2b968f-Le/0x2,'height':Le,'width':Le,'fill':_0x37431b||O[_0x2426f9(0x1eb)](a[_0x2426f9(0x3c5)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x37431b||O['getColor'](a['COLORS'][_0x2426f9(0x42f)],0x0),'evented':!0x1});this['_anchorDot']=_0x42f90d,this[_0x2426f9(0x1c4)][_0x2426f9(0x419)](_0x42f90d,N[_0x2426f9(0x338)]);const _0x33ec1d=new Oe(Ae+a[_0x2426f9(0x2a0)][_0x2426f9(0x3e4)](le),{'left':_0x5bd57f+_0x5e7166-_0x6e94cb,'top':_0x115f94+_0x2b968f-de,'text':_0x1fda7e,'color':_0x37431b});this[_0x2426f9(0x512)]=_0x33ec1d,this[_0x2426f9(0x1c4)]['addObject'](_0x33ec1d,N['TEXT_RANGE_LAYER_INDEX']),this[_0x2426f9(0x3a0)]=!0x1;}[_0x3b57cd(0x50b)](){const _0x430382=_0x3b57cd,_0x2b504c=this[_0x430382(0x412)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x1c966b=_0x430382;this[_0x1c966b(0x3a0)]=!0x0;}),_0x351b8e=this[_0x430382(0x412)]['onPointerLeave$'][_0x430382(0x1d1)](()=>{const _0x47ae85=_0x430382;this['_hideTimer']&&clearTimeout(this[_0x47ae85(0x28f)]),this[_0x47ae85(0x28f)]=setTimeout(()=>{const _0x2059e8=_0x47ae85;this[_0x2059e8(0x3a0)]=!0x1;},0x7d0);});return()=>{const _0x121899=_0x430382;_0x2b504c['unsubscribe'](),_0x351b8e[_0x121899(0x18d)]();};}[_0x3b57cd(0x51a)](_0x51e9e6,_0x1f5e2b,_0x440ac1,_0x74f530){const _0x3522f5=_0x3b57cd,_0x5c220d=new a[(_0x3522f5(0x387))](_0x51e9e6)[_0x3522f5(0x27d)](0.2)[_0x3522f5(0x2ff)](),_0x740d23=new O[(_0x3522f5(0x258))](vi+a[_0x3522f5(0x2a0)][_0x3522f5(0x3e4)](le),{'pointsGroup':_0x1f5e2b,'fill':_0x5c220d||O['getColor'](a[_0x3522f5(0x3c5)]['black'],0.2),'left':_0x440ac1,'top':_0x74f530,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3522f5(0x1a2)][_0x3522f5(0x41e)](_0x740d23),this[_0x3522f5(0x1c4)][_0x3522f5(0x419)](_0x740d23,N['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x1d1c84,_0x11d8dc,_0x2b5886,_0x8ed2a8){const _0x5cc5ad=_0x3b57cd,_0xe90345=new a[(_0x5cc5ad(0x387))](_0x1d1c84)[_0x5cc5ad(0x27d)](0.2)['toRgbString'](),_0x182ff8=new O['RegularPolygon'](mi+a['Tools']['generateRandomId'](le),{'pointsGroup':_0x11d8dc,'fill':_0xe90345||O[_0x5cc5ad(0x1eb)](a[_0x5cc5ad(0x3c5)][_0x5cc5ad(0x42f)],0.2),'left':_0x2b5886,'top':_0x8ed2a8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5cc5ad(0x41e)](_0x182ff8),this['_scene'][_0x5cc5ad(0x419)](_0x182ff8,N[_0x5cc5ad(0x338)]);}[_0x3b57cd(0x4e3)](_0x3238ff){const _0x2a24c1=_0x3238ff[0x0],_0x381e32=_0x2a24c1[0x0],_0x1e3204=_0x2a24c1[0x2],{x:_0x269b29,y:_0x3f3a84}=_0x381e32,{x:_0x2614a7,y:_0x13a946}=_0x1e3204;return{'left':_0x269b29,'top':_0x3f3a84,'width':_0x2614a7-_0x269b29,'height':_0x13a946-_0x3f3a84};}['_getScale'](){const _0x17a24f=_0x3b57cd,{scaleX:_0x3fba07,scaleY:_0x43e4d6}=this[_0x17a24f(0x1c4)][_0x17a24f(0x19c)]();return Math[_0x17a24f(0x52a)](_0x3fba07,_0x43e4d6);}}var pi=Object[_0x3b57cd(0x44e)],Ci=Object[_0x3b57cd(0x35f)],Ei=(_0x4e3f42,_0x5be560,_0xc46647,_0x24bf23)=>{const _0x4ed9fd=_0x3b57cd;for(var _0x19492d=_0x24bf23>0x1?void 0x0:_0x24bf23?Ci(_0x5be560,_0xc46647):_0x5be560,_0xc5e850=_0x4e3f42[_0x4ed9fd(0x54c)]-0x1,_0x332a8d;_0xc5e850>=0x0;_0xc5e850--)(_0x332a8d=_0x4e3f42[_0xc5e850])&&(_0x19492d=(_0x24bf23?_0x332a8d(_0x5be560,_0xc46647,_0x19492d):_0x332a8d(_0x19492d))||_0x19492d);return _0x24bf23&&_0x19492d&&pi(_0x5be560,_0xc46647,_0x19492d),_0x19492d;},ve=(_0x976bed,_0x1f4b08)=>(_0x595911,_0x172980)=>_0x1f4b08(_0x595911,_0x172980,_0x976bed);let Be=class extends a['RxDisposable']{constructor(_0x54e268,_0x4612b4,_0x302878,_0x409d07,_0x110d86){const _0x2420ab=_0x3b57cd;super(),u(this,_0x2420ab(0x336),[]),u(this,_0x2420ab(0x3ae),[]),(this[_0x2420ab(0x245)]=_0x54e268,this[_0x2420ab(0x42e)]=_0x4612b4,this['_collabCursorController']=_0x302878,this['_commandService']=_0x409d07,this[_0x2420ab(0x291)]=_0x110d86,this['_init']());}[_0x3b57cd(0x1d3)](){const _0xf6c505=_0x3b57cd,_0x2e2da3=this['_context'][_0xf6c505(0x267)],_0x268a05=this[_0xf6c505(0x42e)];this[_0xf6c505(0x431)](v[_0xf6c505(0x309)]([this[_0xf6c505(0x503)][_0xf6c505(0x56a)](_0x2e2da3),this[_0xf6c505(0x291)][_0xf6c505(0x34c)]])[_0xf6c505(0x3b4)](E[_0xf6c505(0x439)](([_0x208039,_0x7bb7dc])=>({'skeleton':_0x268a05['getSkeleton'](),'cursors':[..._0x208039[_0xf6c505(0x345)]()][_0xf6c505(0x4a3)](_0x2599cc=>({..._0x2599cc,'color':_0x7bb7dc[_0x2599cc[_0xf6c505(0x34e)]]}))})))['subscribe'](_0x4e7d42=>{const _0x463048=_0xf6c505;if(this[_0x463048(0x24b)](),_0x4e7d42){const {skeleton:_0x2165da,cursors:_0x2371fd}=_0x4e7d42;this[_0x463048(0x598)](_0x2165da,_0x2371fd);}})),this[_0xf6c505(0x59a)](),this[_0xf6c505(0x56d)]();}[_0x3b57cd(0x598)](_0x1cd8d1,_0x465018){const _0x1479f6=_0x3b57cd,{scene:_0x15f3d4,mainComponent:_0x5d6b23}=this[_0x1479f6(0x245)],_0x4053ac=_0x465018['map'](_0x1a13c0=>new lt(_0x1a13c0,_0x15f3d4,_0x1cd8d1,_0x5d6b23));this[_0x1479f6(0x336)]=_0x4053ac,this['_cursors']=_0x465018;}[_0x3b57cd(0x17b)](){const _0x31d488=_0x3b57cd;this[_0x31d488(0x24b)]();const {scene:_0x45b969,mainComponent:_0x3fd8d6}=this[_0x31d488(0x245)],_0x4af6bc=this[_0x31d488(0x42e)]['getSkeleton'](),_0x55465d=this[_0x31d488(0x3ae)][_0x31d488(0x439)](_0x4a8730=>new lt(_0x4a8730,_0x45b969,_0x4af6bc,_0x3fd8d6));this[_0x31d488(0x336)]=_0x55465d;}['_removeCollabCursors'](){const _0x5afaa5=_0x3b57cd;this[_0x5afaa5(0x336)]['forEach'](_0x240058=>_0x240058[_0x5afaa5(0x378)]()),this[_0x5afaa5(0x336)]=[];}[_0x3b57cd(0x56d)](){const _0x1d5b92=_0x3b57cd,_0x373c5d=[N['SetDocZoomRatioOperation']['id']];this[_0x1d5b92(0x431)](this[_0x1d5b92(0x33b)][_0x1d5b92(0x33f)](_0x52ab0e=>{const _0x20e0a9=_0x1d5b92;_0x373c5d[_0x20e0a9(0x4f5)](_0x52ab0e['id'])&&_0x52ab0e[_0x20e0a9(0x333)][_0x20e0a9(0x267)]===this['_context'][_0x20e0a9(0x267)]&&this['_refreshCollabCursors']();}));}[_0x3b57cd(0x59a)](){const _0x5730ca=_0x3b57cd;this[_0x5730ca(0x431)](a['fromEventSubject'](this['_context'][_0x5730ca(0x31e)][_0x5730ca(0x261)])[_0x5730ca(0x3b4)](E[_0x5730ca(0x445)](_0x2a8d54=>_0x2a8d54[_0x5730ca(0x537)]===O[_0x5730ca(0x313)][_0x5730ca(0x418)]),E[_0x5730ca(0x49e)](0x10))['subscribe'](()=>{const _0x1b2156=_0x5730ca;this[_0x1b2156(0x17b)]();}));}};Be=Ei([ve(0x1,a[_0x3b57cd(0x4ad)](ne['DocSkeletonManagerService'])),ve(0x2,a[_0x3b57cd(0x4ad)](oe)),ve(0x3,a[_0x3b57cd(0x17e)]),ve(0x4,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x314)]))],Be);const bi=0x1,Ti=1.5;class wt extends O['Shape']{constructor(_0x2b10f4,_0xee2856){const _0x42f6a6=_0x3b57cd;super(_0x2b10f4,_0xee2856),u(this,'_color'),u(this,_0x42f6a6(0x220),!0x1),u(this,_0x42f6a6(0x380)),u(this,_0x42f6a6(0x1b1),''),u(this,'_labelPosition','top'),u(this,_0x42f6a6(0x205)),(_0xee2856&&this[_0x42f6a6(0x596)](_0xee2856),this[_0x42f6a6(0x4bd)][_0x42f6a6(0x1d1)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x42f6a6(0x364)][_0x42f6a6(0x1d1)](()=>this[_0x42f6a6(0x596)]({'hovered':!0x1})));}[_0x3b57cd(0x596)](_0x4efe07){const _0x1f87c2=_0x3b57cd;var _0x28446a,_0x378f97,_0x2dc5f9,_0x5365ef,_0x864c3d,_0x1e3d83;this[_0x1f87c2(0x459)]=(_0x28446a=_0x4efe07['color'])!=null?_0x28446a:this['_color'],this[_0x1f87c2(0x220)]=(_0x378f97=_0x4efe07[_0x1f87c2(0x196)])!=null?_0x378f97:this[_0x1f87c2(0x220)],this[_0x1f87c2(0x380)]=(_0x2dc5f9=_0x4efe07[_0x1f87c2(0x53d)])!=null?_0x2dc5f9:this[_0x1f87c2(0x380)],this['_name']=(_0x5365ef=_0x4efe07[_0x1f87c2(0x35d)])!=null?_0x5365ef:this[_0x1f87c2(0x1b1)],this[_0x1f87c2(0x566)]=(_0x864c3d=_0x4efe07['labelPosition'])!=null?_0x864c3d:this['_labelPosition'],this['_backgroundColor']=(_0x1e3d83=_0x4efe07[_0x1f87c2(0x47c)])!=null?_0x1e3d83:this[_0x1f87c2(0x205)],this[_0x1f87c2(0x2c3)]({'width':_0x4efe07[_0x1f87c2(0x197)],'height':_0x4efe07['height']});}[_0x3b57cd(0x3e9)](_0xb9cece){const _0xafbc6b=_0x3b57cd,{row:_0x5166a6,column:_0x1c49e3}=_0xb9cece;if(_0x5166a6>=this['_range']['startRow']&&_0x5166a6<=this[_0xafbc6b(0x380)]['endRow']&&_0x1c49e3>=this[_0xafbc6b(0x380)][_0xafbc6b(0x52b)]&&_0x1c49e3<=this['_range'][_0xafbc6b(0x347)]){this[_0xafbc6b(0x596)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3b57cd(0x4c3)](_0x28ab07){return!0x1;}[_0x3b57cd(0x3d2)](_0x53f8c8){const _0x3b477d=_0x3b57cd;O[_0x3b477d(0x363)][_0x3b477d(0x585)](_0x53f8c8,{'width':this[_0x3b477d(0x197)],'height':this[_0x3b477d(0x494)],'strokeWidth':Ti,'stroke':this[_0x3b477d(0x459)],'evented':!0x1,'fill':this[_0x3b477d(0x205)]}),this[_0x3b477d(0x220)]&&(_0x53f8c8['save'](),_0x53f8c8[_0x3b477d(0x500)](0x1,0x0,0x0,0x1,this[_0x3b477d(0x197)],this[_0x3b477d(0x566)]===_0x3b477d(0x2b8)?0x0:-de),Oe['drawWith'](_0x53f8c8,{'text':this[_0x3b477d(0x1b1)],'color':this[_0x3b477d(0x459)]}),_0x53f8c8['restore']());}}var Ri=Object['defineProperty'],Oi=Object[_0x3b57cd(0x35f)],Di=(_0x4eef6f,_0xaef5db,_0x2e777b,_0x559517)=>{for(var _0x4beb88=_0x559517>0x1?void 0x0:_0x559517?Oi(_0xaef5db,_0x2e777b):_0xaef5db,_0x58d388=_0x4eef6f['length']-0x1,_0x2119b3;_0x58d388>=0x0;_0x58d388--)(_0x2119b3=_0x4eef6f[_0x58d388])&&(_0x4beb88=(_0x559517?_0x2119b3(_0xaef5db,_0x2e777b,_0x4beb88):_0x2119b3(_0x4beb88))||_0x4beb88);return _0x559517&&_0x4beb88&&Ri(_0xaef5db,_0x2e777b,_0x4beb88),_0x4beb88;},$e=(_0x646cc4,_0xf3f9)=>(_0x29f8cd,_0x309535)=>_0xf3f9(_0x29f8cd,_0x309535,_0x646cc4);const yi=0x1389;let Ve=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x50740f,_0x197d84,_0x4b6960,_0x382f30){const _0x5c7a13=_0x3b57cd;super(),u(this,'_cursors',new Set()),u(this,_0x5c7a13(0x369),null),(this[_0x5c7a13(0x245)]=_0x50740f,this['_sheetSkeletonManagerService']=_0x197d84,this[_0x5c7a13(0x503)]=_0x4b6960,this['_themeService']=_0x382f30,this[_0x5c7a13(0x1d3)]());}[_0x3b57cd(0x1d3)](){const _0x208d68=_0x3b57cd;this[_0x208d68(0x572)][_0x208d68(0x279)]['pipe'](E[_0x208d68(0x1b3)](this[_0x208d68(0x3fc)]),E[_0x208d68(0x2c5)](_0x3b47e0=>{const _0x54afaf=_0x208d68;if(_0x3b47e0){const _0x2b7ac2=_0x3b47e0[_0x54afaf(0x3e5)];return v[_0x54afaf(0x309)](this[_0x54afaf(0x503)][_0x54afaf(0x56a)](this[_0x54afaf(0x245)]['unitId']),this[_0x54afaf(0x291)][_0x54afaf(0x34c)])[_0x54afaf(0x3b4)](E[_0x54afaf(0x439)](([_0x3c89a7,_0xad2a4a])=>{const _0xef2fea=_0x54afaf,_0x5ec4eb=new Map();return _0x3c89a7[_0xef2fea(0x571)]((_0x35a8b0,_0x3f542e)=>{const _0xc9aca4=_0xef2fea;if(_0x35a8b0[_0xc9aca4(0x18c)]===_0x2b7ac2){const _0x5aea1b={..._0x35a8b0};_0x5aea1b[_0xc9aca4(0x34e)]=_0xad2a4a[_0x35a8b0[_0xc9aca4(0x34e)]],_0x5ec4eb[_0xc9aca4(0x4af)](_0x3f542e,_0x5aea1b);}}),{'skeleton':_0x3b47e0,'cursors':_0x5ec4eb};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x208d68(0x508)](({skeleton:_0xfd83dc,cursors:_0x2d0b60})=>{const _0x583534=_0x208d68;this[_0x583534(0x24b)](),_0xfd83dc&&this[_0x583534(0x598)](_0xfd83dc,_0x2d0b60);}),this[_0x208d68(0x572)]['currentSkeleton$']['subscribe'](_0x490848=>{const _0x13dfcc=_0x208d68;if(_0x490848==null)return;const {skeleton:_0x48f566}=_0x490848,{scene:_0xfd8ae3}=this[_0x13dfcc(0x245)];_0xfd8ae3[_0x13dfcc(0x2f6)][_0x13dfcc(0x1d1)](a[_0x13dfcc(0x187)](_0x2eb17f=>{const _0xacd1a5=_0x13dfcc;var _0x5948b5,_0x9a9742;const {offsetX:_0x3ae418,offsetY:_0x48c0b8}=_0x2eb17f,{x:_0x5b55de,y:_0x3b41d9}=_0xfd8ae3['getRelativeToViewportCoord'](O[_0xacd1a5(0x39f)][_0xacd1a5(0x288)]([_0x3ae418,_0x48c0b8])),{scaleX:_0x5bffa3,scaleY:_0x330099}=_0xfd8ae3[_0xacd1a5(0x19c)](),_0x41bead=_0xfd8ae3[_0xacd1a5(0x285)](ie[_0xacd1a5(0x2c4)][_0xacd1a5(0x522)]),_0x2ce940=_0xfd8ae3[_0xacd1a5(0x233)](O['Vector2'][_0xacd1a5(0x288)]([_0x5b55de,_0x3b41d9]),_0x41bead),_0xb860df=_0x48f566['getCellPositionByOffset'](_0x3ae418,_0x48c0b8,_0x5bffa3,_0x330099,_0x2ce940);((_0x5948b5=this[_0xacd1a5(0x369)])==null?void 0x0:_0x5948b5[_0xacd1a5(0x3ef)])===_0xb860df[_0xacd1a5(0x3ef)]&&((_0x9a9742=this[_0xacd1a5(0x369)])==null?void 0x0:_0x9a9742[_0xacd1a5(0x57c)])===_0xb860df[_0xacd1a5(0x57c)]||this[_0xacd1a5(0x3ae)][_0xacd1a5(0x571)](_0xa09f30=>{_0xa09f30['onMouseMove'](_0xb860df);});},0x64));});}['_updateCollabCursors'](_0x19d6c5,_0x1b3a07){const _0x8cdb61=_0x3b57cd;var _0x22742b;const _0x322911=(_0x22742b=this[_0x8cdb61(0x572)][_0x8cdb61(0x44b)]())==null?void 0x0:_0x22742b[_0x8cdb61(0x592)];if(!_0x322911)return;const _0x5ad12c=this[_0x8cdb61(0x352)]();if(!_0x5ad12c)return;this[_0x8cdb61(0x3ae)]['forEach'](_0x13c4c9=>{const _0x2edf58=_0x8cdb61;_0x13c4c9[_0x2edf58(0x21e)]();});const {scene:_0x2cbc94}=_0x5ad12c,_0x54bef1=Ui(Array[_0x8cdb61(0x348)](_0x1b3a07['values']()))['map'](_0x189218=>{const _0xc638a9=_0x8cdb61,{color:_0x480da9,range:_0x18894d,name:_0x2aadfb,selection:_0x17d385,sheetID:_0x2f74d9}=_0x189218,{startColumn:_0x45262b,startRow:_0x5a8b19,endColumn:_0x3e4755,endRow:_0x5eecbf}=_0x18894d,_0x22b03a=ie[_0xc638a9(0x480)](_0x5a8b19,_0x45262b,_0x2cbc94,_0x322911),_0x1537ff=ie[_0xc638a9(0x480)](_0x5eecbf,_0x3e4755,_0x2cbc94,_0x322911),{columnHeaderHeightAndMarginTop:_0x136430}=_0x322911,{startX:_0x46353d,startY:_0x173afc}=_0x22b03a,{endX:_0x30752e,endY:_0x343293}=_0x1537ff,_0x3d4fc1=_0x30752e-_0x46353d,_0x50fb6a=_0x343293-_0x173afc,_0x3aec14={'labelPosition':_0x173afc-_0x136430>=de?_0xc638a9(0x3b2):_0xc638a9(0x2b8),'sheetID':_0x2f74d9,'range':_0x18894d,'color':_0x480da9,'name':_0x2aadfb,'selection':_0x17d385,'left':_0x46353d,'top':_0x173afc,'width':_0x3d4fc1,'height':_0x50fb6a,'evented':!0x1,'zIndex':yi};return new wt(_0x2aadfb,_0x3aec14);});_0x2cbc94[_0x8cdb61(0x1f0)](_0x54bef1,bi),this[_0x8cdb61(0x3ae)]=new Set(_0x54bef1);}[_0x3b57cd(0x24b)](){const _0x294223=_0x3b57cd;var _0x53ec43;(_0x53ec43=this[_0x294223(0x3ae)])==null||_0x53ec43[_0x294223(0x571)](_0x372bfb=>_0x372bfb[_0x294223(0x378)]());}[_0x3b57cd(0x352)](){const _0x33e7b1=_0x3b57cd;return ie[_0x33e7b1(0x284)](this['_context']['unit'],this[_0x33e7b1(0x245)]);}};Ve=Di([$e(0x1,a[_0x3b57cd(0x4ad)](ie[_0x3b57cd(0x24d)])),$e(0x2,a['Inject'](oe)),$e(0x3,a['Inject'](a['ThemeService']))],Ve);function Ui(_0x382e55){const _0x37d066=_0x3b57cd,_0x54cb4d=new Map();return _0x382e55[_0x37d066(0x571)](_0x2fc770=>{const _0x43164e=_0x37d066;if(_0x54cb4d[_0x43164e(0x1cf)](_0x2fc770[_0x43164e(0x304)])){const _0xa3c861=_0x54cb4d[_0x43164e(0x4e6)](_0x2fc770[_0x43164e(0x304)]);_0xa3c861['name']+=',\x20'+_0x2fc770[_0x43164e(0x35d)];}else _0x54cb4d['set'](_0x2fc770['selection'],_0x2fc770);}),Array['from'](_0x54cb4d[_0x37d066(0x345)]());}var M=function(){const _0x262706=_0x3b57cd;return M=Object[_0x262706(0x403)]||function(_0x1c0444){const _0x1a949e=_0x262706;for(var _0x25356b,_0x3fc775=0x1,_0x1b1a57=arguments[_0x1a949e(0x54c)];_0x3fc775<_0x1b1a57;_0x3fc775++){_0x25356b=arguments[_0x3fc775];for(var _0x50de97 in _0x25356b)Object[_0x1a949e(0x207)]['hasOwnProperty'][_0x1a949e(0x30b)](_0x25356b,_0x50de97)&&(_0x1c0444[_0x50de97]=_0x25356b[_0x50de97]);}return _0x1c0444;},M[_0x262706(0x586)](this,arguments);},Pi=function(_0x52de25,_0x469734){const _0x464f04=_0x3b57cd;var _0x2a942d={};for(var _0x311a3c in _0x52de25)Object['prototype'][_0x464f04(0x564)]['call'](_0x52de25,_0x311a3c)&&_0x469734[_0x464f04(0x3c0)](_0x311a3c)<0x0&&(_0x2a942d[_0x311a3c]=_0x52de25[_0x311a3c]);if(_0x52de25!=null&&typeof Object[_0x464f04(0x584)]==_0x464f04(0x2d6)){for(var _0x505187=0x0,_0x311a3c=Object['getOwnPropertySymbols'](_0x52de25);_0x505187<_0x311a3c[_0x464f04(0x54c)];_0x505187++)_0x469734[_0x464f04(0x3c0)](_0x311a3c[_0x505187])<0x0&&Object[_0x464f04(0x207)]['propertyIsEnumerable']['call'](_0x52de25,_0x311a3c[_0x505187])&&(_0x2a942d[_0x311a3c[_0x505187]]=_0x52de25[_0x311a3c[_0x505187]]);}return _0x2a942d;},Je=y[_0x3b57cd(0x45d)](function(_0x114843,_0x49a8a9){const _0x4b9258=_0x3b57cd;var _0x56a345=_0x114843['icon'],_0x5b286d=_0x114843['id'],_0x4c9e9a=_0x114843[_0x4b9258(0x370)],_0x5813a3=_0x114843['extend'],_0xaafa37=Pi(_0x114843,[_0x4b9258(0x375),'id','className',_0x4b9258(0x179)]),_0x3cdd0f='univerjs-icon\x20univerjs-icon-'[_0x4b9258(0x16b)](_0x5b286d,'\x20')['concat'](_0x4c9e9a||'')[_0x4b9258(0x3d9)](),_0x30a258=y[_0x4b9258(0x2d1)]('_'[_0x4b9258(0x16b)](Mi()));return Nt(_0x56a345,''['concat'](_0x5b286d),{'defIds':_0x56a345[_0x4b9258(0x4c1)],'idSuffix':_0x30a258[_0x4b9258(0x1d8)]},M({'ref':_0x49a8a9,'className':_0x3cdd0f},_0xaafa37),_0x5813a3);});function Nt(_0x81ef41,_0x331862,_0x33dc4e,_0x47bbe7,_0x1ce1e4){const _0x3a4021=_0x3b57cd;return y[_0x3a4021(0x3a1)](_0x81ef41[_0x3a4021(0x35b)],M(M({'key':_0x331862},wi(_0x81ef41,_0x33dc4e,_0x1ce1e4)),_0x47bbe7),(Ni(_0x81ef41,_0x33dc4e)['children']||[])[_0x3a4021(0x439)](function(_0x5b1a2b,_0x12d3b2){const _0x48893a=_0x3a4021;return Nt(_0x5b1a2b,''[_0x48893a(0x16b)](_0x331862,'-')[_0x48893a(0x16b)](_0x81ef41['tag'],'-')[_0x48893a(0x16b)](_0x12d3b2),_0x33dc4e,void 0x0,_0x1ce1e4);}));}function wi(_0x5cfec3,_0x1ccc05,_0x4915f6){const _0x55ca5d=_0x3b57cd;var _0x288bca=M({},_0x5cfec3[_0x55ca5d(0x399)]);_0x4915f6!=null&&_0x4915f6[_0x55ca5d(0x55f)]&&_0x288bca[_0x55ca5d(0x2e7)]===_0x55ca5d(0x55f)&&(_0x288bca[_0x55ca5d(0x2e7)]=_0x4915f6[_0x55ca5d(0x55f)]);var _0x548591=_0x1ccc05[_0x55ca5d(0x4c1)];return!_0x548591||_0x548591[_0x55ca5d(0x54c)]===0x0||(_0x5cfec3['tag']===_0x55ca5d(0x47f)&&_0x288bca[_0x55ca5d(0x527)]&&(_0x288bca[_0x55ca5d(0x527)]=_0x288bca[_0x55ca5d(0x527)]+_0x1ccc05[_0x55ca5d(0x25d)]),Object[_0x55ca5d(0x2b9)](_0x288bca)['forEach'](function(_0x1af3ba){const _0x4fe5fd=_0x55ca5d;var _0x181076=_0x1af3ba[0x0],_0x47af3d=_0x1af3ba[0x1];typeof _0x47af3d==_0x4fe5fd(0x52f)&&(_0x288bca[_0x181076]=_0x47af3d[_0x4fe5fd(0x1bf)](/url\(#(.*)\)/,_0x4fe5fd(0x24c)[_0x4fe5fd(0x16b)](_0x1ccc05[_0x4fe5fd(0x25d)],')')));})),_0x288bca;}function Ni(_0x16afef,_0x55efb1){const _0xb5ca52=_0x3b57cd;var _0x55668b,_0x3e8d07=_0x55efb1[_0xb5ca52(0x4c1)];return!_0x3e8d07||_0x3e8d07['length']===0x0?_0x16afef:_0x16afef[_0xb5ca52(0x35b)]===_0xb5ca52(0x1ea)&&(!((_0x55668b=_0x16afef['children'])===null||_0x55668b===void 0x0)&&_0x55668b[_0xb5ca52(0x54c)])?M(M({},_0x16afef),{'children':_0x16afef[_0xb5ca52(0x26a)][_0xb5ca52(0x439)](function(_0x29f405){const _0x40ad36=_0xb5ca52;return typeof _0x29f405[_0x40ad36(0x399)]['id']==_0x40ad36(0x52f)&&_0x3e8d07&&_0x3e8d07[_0x40ad36(0x3c0)](_0x29f405[_0x40ad36(0x399)]['id'])>-0x1?M(M({},_0x29f405),{'attrs':M(M({},_0x29f405[_0x40ad36(0x399)]),{'id':_0x29f405[_0x40ad36(0x399)]['id']+_0x55efb1[_0x40ad36(0x25d)]})}):_0x29f405;})}):_0x16afef;}function Mi(){const _0x12ce33=_0x3b57cd;return Math['random']()[_0x12ce33(0x3b0)](0x24)['substring'](0x2,0x8);}Je[_0x3b57cd(0x199)]='UniverIcon';var Ai={'tag':'svg','attrs':{'fill':_0x3b57cd(0x1d9),'viewBox':_0x3b57cd(0x1c8),'width':_0x3b57cd(0x194),'height':_0x3b57cd(0x194)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b57cd(0x52c)},'children':[{'tag':_0x3b57cd(0x384),'attrs':{'stroke':'currentColor','d':_0x3b57cd(0x272),'strokeLinecap':_0x3b57cd(0x2e6),'strokeLinejoin':_0x3b57cd(0x2e6),'strokeWidth':1.2}}]},{'tag':_0x3b57cd(0x1ea),'attrs':{},'children':[{'tag':_0x3b57cd(0x3cf),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3b57cd(0x384),'attrs':{'fill':_0x3b57cd(0x246),'d':_0x3b57cd(0x450)}}]}]}],'defIds':[_0x3b57cd(0x567)]},Mt=y['forwardRef'](function(_0xe73bd3,_0x833ac4){const _0x30b3f1=_0x3b57cd;return y['createElement'](Je,Object[_0x30b3f1(0x403)]({},_0xe73bd3,{'id':_0x30b3f1(0x305),'ref':_0x833ac4,'icon':Ai}));});Mt[_0x3b57cd(0x199)]=_0x3b57cd(0x50e);var Li={'tag':'svg','attrs':{'fill':'none','viewBox':_0x3b57cd(0x59c),'width':_0x3b57cd(0x194),'height':_0x3b57cd(0x194)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b57cd(0x543)},'children':[{'tag':_0x3b57cd(0x384),'attrs':{'stroke':_0x3b57cd(0x377),'d':_0x3b57cd(0x4da),'strokeLinecap':_0x3b57cd(0x2e6),'strokeLinejoin':_0x3b57cd(0x2e6),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3b57cd(0x3cf),'attrs':{'id':_0x3b57cd(0x174)},'children':[{'tag':'path','attrs':{'fill':_0x3b57cd(0x246),'d':_0x3b57cd(0x450),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3b57cd(0x174)]},At=y[_0x3b57cd(0x45d)](function(_0x4a8045,_0x308d2d){const _0x1d0a9c=_0x3b57cd;return y[_0x1d0a9c(0x3a1)](Je,Object[_0x1d0a9c(0x403)]({},_0x4a8045,{'id':'on-line-single','ref':_0x308d2d,'icon':Li}));});At[_0x3b57cd(0x199)]=_0x3b57cd(0x46d);function Lt(_0x56a579){const _0xc0e6bd=_0x3b57cd;var _0x933d3e,_0x2cc4b3,_0x5dbc77='';if(typeof _0x56a579==_0xc0e6bd(0x52f)||typeof _0x56a579==_0xc0e6bd(0x390))_0x5dbc77+=_0x56a579;else{if(typeof _0x56a579=='object'){if(Array[_0xc0e6bd(0x452)](_0x56a579)){var _0x4856c4=_0x56a579[_0xc0e6bd(0x54c)];for(_0x933d3e=0x0;_0x933d3e<_0x4856c4;_0x933d3e++)_0x56a579[_0x933d3e]&&(_0x2cc4b3=Lt(_0x56a579[_0x933d3e]))&&(_0x5dbc77&&(_0x5dbc77+='\x20'),_0x5dbc77+=_0x2cc4b3);}else{for(_0x2cc4b3 in _0x56a579)_0x56a579[_0x2cc4b3]&&(_0x5dbc77&&(_0x5dbc77+='\x20'),_0x5dbc77+=_0x2cc4b3);}}}return _0x5dbc77;}function $i(){for(var _0x35a3a7,_0x79b0f2,_0x1ebf3e=0x0,_0x2772fd='',_0x3515ec=arguments['length'];_0x1ebf3e<_0x3515ec;_0x1ebf3e++)(_0x35a3a7=arguments[_0x1ebf3e])&&(_0x79b0f2=Lt(_0x35a3a7))&&(_0x2772fd&&(_0x2772fd+='\x20'),_0x2772fd+=_0x79b0f2);return _0x2772fd;}const ji='univer-online-status-icon',Hi='univer-online-status-title',xi=_0x3b57cd(0x593),ki='univer-online',Bi='univer-offline',he={'onlineStatusIcon':ji,'onlineStatusTitle':Hi,'onlineStatus':xi,'online':ki,'offline':Bi};function Vi(_0x356d44){const _0x135561=_0x3b57cd;switch(_0x356d44){case D[_0x135561(0x590)]:return _0x135561(0x487);case D[_0x135561(0x225)]:return'collabStatus.conflict';case D[_0x135561(0x2a2)]:return _0x135561(0x52e);case D[_0x135561(0x53e)]:return'collabStatus.notCollab';case D[_0x135561(0x557)]:case D[_0x135561(0x35a)]:return _0x135561(0x4c8);case D[_0x135561(0x221)]:case D['PENDING']:return _0x135561(0x3bc);}}function $t(_0x4f0fd1){const _0x4f80e2=_0x3b57cd,{status$:_0x3d3f34}=_0x4f0fd1,_0x5168f5=A[_0x4f80e2(0x231)](_0x3d3f34,D['NOT_COLLAB']),_0x3c7e5e=a[_0x4f80e2(0x30f)](a[_0x4f80e2(0x1f9)]),_0x59e154=a[_0x4f80e2(0x30f)](exports['CollaborationSessionService']),_0x2b8912=_0x5168f5!==D[_0x4f80e2(0x590)],_0x27f8d4=_0x3c7e5e['t'](Vi(_0x5168f5)),_0x447ada=$i(he[_0x4f80e2(0x53f)],{[he[_0x4f80e2(0x581)]]:_0x2b8912,[he[_0x4f80e2(0x359)]]:!_0x2b8912}),_0xef5b4=_0x2b8912?y[_0x4f80e2(0x3a1)](At,null):y[_0x4f80e2(0x3a1)](Mt,null),_0x383e45=y[_0x4f80e2(0x534)](()=>{const _0x569a65=_0x4f80e2;_0x2b8912||_0x59e154[_0x569a65(0x36d)]();},[_0x2b8912,_0x59e154]);function _0x296e73(){const _0x45bda2=_0x4f80e2;return y[_0x45bda2(0x3a1)](_0x45bda2(0x54a),{'className':_0x447ada,'onClick':_0x383e45},y[_0x45bda2(0x3a1)](_0x45bda2(0x54a),{'className':he['onlineStatusIcon']},_0xef5b4),y[_0x45bda2(0x3a1)](_0x45bda2(0x54a),{'className':he[_0x45bda2(0x4d7)]},_0x27f8d4));}return _0x2b8912?_0x296e73():y[_0x4f80e2(0x3a1)](J[_0x4f80e2(0x587)],{'title':_0x3c7e5e['t']('collab-client.tooltip.reconnect')},_0x296e73());}var Wi=Object[_0x3b57cd(0x44e)],Fi=Object[_0x3b57cd(0x35f)],Gi=(_0x114abf,_0x3d3bd7,_0x3b3721,_0x3a9396)=>{const _0x24413c=_0x3b57cd;for(var _0x4dffb6=_0x3a9396>0x1?void 0x0:_0x3a9396?Fi(_0x3d3bd7,_0x3b3721):_0x3d3bd7,_0x18a787=_0x114abf[_0x24413c(0x54c)]-0x1,_0x48d8e6;_0x18a787>=0x0;_0x18a787--)(_0x48d8e6=_0x114abf[_0x18a787])&&(_0x4dffb6=(_0x3a9396?_0x48d8e6(_0x3d3bd7,_0x3b3721,_0x4dffb6):_0x48d8e6(_0x4dffb6))||_0x4dffb6);return _0x3a9396&&_0x4dffb6&&Wi(_0x3d3bd7,_0x3b3721,_0x4dffb6),_0x4dffb6;},me=(_0x4e8df3,_0x35ce8c)=>(_0x2e7456,_0x1741aa)=>_0x35ce8c(_0x2e7456,_0x1741aa,_0x4e8df3);exports[_0x3b57cd(0x2ad)]=class extends a['Disposable']{constructor(_0x146f9f,_0x41bb14,_0x396c26,_0x5a0919){const _0xb3ffea=_0x3b57cd;super(),u(this,_0xb3ffea(0x27e),new v[(_0xb3ffea(0x470))](D[_0xb3ffea(0x53e)])),(this[_0xb3ffea(0x562)]=_0x146f9f,this[_0xb3ffea(0x434)]=_0x41bb14,this[_0xb3ffea(0x486)]=_0x396c26,this[_0xb3ffea(0x4dc)]=_0x5a0919,this['_initStatusComponent'](),this[_0xb3ffea(0x427)]());}[_0x3b57cd(0x427)](){const _0x53349e=_0x3b57cd;this[_0x53349e(0x431)](this['_univerInstanceService'][_0x53349e(0x473)][_0x53349e(0x3b4)](v['switchMap'](()=>{const _0x16f348=_0x53349e,_0x3bb892=this['_univerInstanceService'][_0x16f348(0x55a)]();return _0x3bb892?this['_collaborationController'][_0x16f348(0x1e9)](_0x3bb892[_0x16f348(0x2fa)]()):v['of'](null);}),v[_0x53349e(0x2c5)](_0x5a80d6=>_0x5a80d6?_0x5a80d6['status$']:v['of'](D['NOT_COLLAB'])))['subscribe'](_0x46d002=>{const _0x570956=_0x53349e;this[_0x570956(0x27e)][_0x570956(0x3b8)](_0x46d002);}));}[_0x3b57cd(0x3e3)](){const _0xbc3b3f=_0x3b57cd;this[_0xbc3b3f(0x431)](this[_0xbc3b3f(0x434)][_0xbc3b3f(0x20a)](A['BuiltInUIPart']['HEADER_MENU'],()=>a['connectInjector'](Yi({'status$':this[_0xbc3b3f(0x27e)]['asObservable']()}),this[_0xbc3b3f(0x486)])));}},exports[_0x3b57cd(0x2ad)]=Gi([me(0x0,a[_0x3b57cd(0x424)]),me(0x1,A['IUIPartsService']),me(0x2,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),me(0x3,a['Inject'](exports[_0x3b57cd(0x386)]))],exports[_0x3b57cd(0x2ad)]);function Yi(_0x1e63a4){const {status$:_0x1dd6f5}=_0x1e63a4;return function(){const _0x5e0291=_0x4497;return y[_0x5e0291(0x3a1)]($t,{'status$':_0x1dd6f5});};}const Ze=a[_0x3b57cd(0x227)](_0x3b57cd(0x1e0));var Ki=Object[_0x3b57cd(0x44e)],Xi=Object[_0x3b57cd(0x35f)],qi=(_0x3dad9e,_0x5c19de,_0x4126f2,_0x1fc804)=>{const _0x393937=_0x3b57cd;for(var _0x352272=_0x1fc804>0x1?void 0x0:_0x1fc804?Xi(_0x5c19de,_0x4126f2):_0x5c19de,_0x1557f8=_0x3dad9e[_0x393937(0x54c)]-0x1,_0x3bb4fc;_0x1557f8>=0x0;_0x1557f8--)(_0x3bb4fc=_0x3dad9e[_0x1557f8])&&(_0x352272=(_0x1fc804?_0x3bb4fc(_0x5c19de,_0x4126f2,_0x352272):_0x3bb4fc(_0x352272))||_0x352272);return _0x1fc804&&_0x352272&&Ki(_0x5c19de,_0x4126f2,_0x352272),_0x352272;},se=(_0x2ff554,_0x12fab4)=>(_0x48cc04,_0x594db8)=>_0x12fab4(_0x48cc04,_0x594db8,_0x2ff554);exports[_0x3b57cd(0x4a8)]=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x3c400e,_0x2fc778,_0x4c78e7,_0x5b5896,_0x50dd8a,_0x3dddc7){const _0x5133eb=_0x3b57cd;super(),this['_urlService']=_0x3c400e,this[_0x5133eb(0x45c)]=_0x2fc778,this['_commandService']=_0x4c78e7,this[_0x5133eb(0x20c)]=_0x5b5896,this[_0x5133eb(0x40d)]=_0x50dd8a,_0x3dddc7?_0x3dddc7==null||_0x3dddc7[_0x5133eb(0x34d)]()[_0x5133eb(0x210)](()=>this[_0x5133eb(0x1d3)]()):(this[_0x5133eb(0x45c)][_0x5133eb(0x3ec)](_0x5133eb(0x4b3),_0x5133eb(0x256)),this[_0x5133eb(0x1d3)]());}async['_init'](){const _0x3d7f13=_0x3b57cd,_0x38e23d=this['_urlService']['getParam']('unit'),_0x5753fc=this[_0x3d7f13(0x310)][_0x3d7f13(0x357)]('type');if(!_0x38e23d||!_0x5753fc){this[_0x3d7f13(0x45c)]['debug'](_0x3d7f13(0x4b3),_0x3d7f13(0x3f1));return;}switch(Number(_0x5753fc)){case H['UNIVER_SHEET']:{const _0x5756a2=await this[_0x3d7f13(0x1bc)](_0x38e23d);this[_0x3d7f13(0x433)](_0x5756a2);break;}case H[_0x3d7f13(0x1a9)]:{await this[_0x3d7f13(0x467)](_0x38e23d);break;}default:{this['_logService']['error'](_0x3d7f13(0x4b3),_0x3d7f13(0x438));break;}}}async[_0x3b57cd(0x433)](_0x31e783){const _0x485972=_0x3b57cd;await this[_0x485972(0x1c1)](_0x31e783),_0x31e783['activeSheet$'][_0x485972(0x3b4)](v[_0x485972(0x1b3)](this[_0x485972(0x3fc)]))[_0x485972(0x508)](_0x282ca8=>{_0x282ca8&&this['_updateURLWithCurrentState'](_0x282ca8);}),this[_0x485972(0x310)]['urlChange$'][_0x485972(0x3b4)](v[_0x485972(0x1b3)](this['dispose$']))[_0x485972(0x508)](()=>this[_0x485972(0x1c1)](_0x31e783));}[_0x3b57cd(0x532)](_0x5702c3,_0x263baf=!0x1){const _0xbc85fa=_0x3b57cd,_0x512e92=this[_0xbc85fa(0x310)][_0xbc85fa(0x357)](_0xbc85fa(0x346));_0x5702c3['getSheetId']()!==_0x512e92&&this[_0xbc85fa(0x310)][_0xbc85fa(0x17a)](_0xbc85fa(0x346),_0x5702c3[_0xbc85fa(0x49b)](),_0x263baf);}async['_updateSubUnitFromURLParams'](_0x2da13c){const _0x396308=_0x3b57cd;var _0x39fd99;const _0x33b04d=this[_0x396308(0x310)]['getParam'](_0x396308(0x346));if(!_0x33b04d||!_0x2da13c['getSheetBySheetId'](_0x33b04d)){const _0x573173=_0x2da13c['getUnhiddenWorksheets']()[0x0],_0x99f01a=_0x2da13c[_0x396308(0x316)](_0x573173);if(!_0x99f01a)return;this[_0x396308(0x532)](_0x99f01a,!0x0),await this['_commandService'][_0x396308(0x3be)](C[_0x396308(0x1b8)]['id'],{'unitId':_0x2da13c[_0x396308(0x2fa)](),'subUnitId':_0x573173});return;}((_0x39fd99=_0x2da13c[_0x396308(0x3ab)]())==null?void 0x0:_0x39fd99[_0x396308(0x49b)]())!==_0x33b04d&&await this[_0x396308(0x33b)][_0x396308(0x3be)](C[_0x396308(0x1b8)]['id'],{'unitId':_0x2da13c[_0x396308(0x2fa)](),'subUnitId':_0x33b04d});}async['_loadSheet'](_0xf43494){const _0x3f3a28=_0x3b57cd;let _0x5c716f=0x0;const _0x53fa78=await this['_localCacheService']['loadOfflineData'](_0xf43494);return _0x53fa78&&(_0x53fa78['awaitingChangeset']||_0x53fa78[_0x3f3a28(0x3fa)][_0x3f3a28(0x54c)]!==0x0)&&(_0x5c716f=_0x53fa78[_0x3f3a28(0x3d8)]),_0x5c716f===0x0&&this[_0x3f3a28(0x45c)][_0x3f3a28(0x3ec)]('[DataLoaderController]',_0x3f3a28(0x1f2)),this[_0x3f3a28(0x40d)]['loadSheet'](_0xf43494,_0x5c716f);}async[_0x3b57cd(0x467)](_0x4307a4){const _0x385531=_0x3b57cd;let _0x39ea94=0x0;const _0x49a128=await this[_0x385531(0x20c)]['loadOfflineData'](_0x4307a4);return _0x49a128&&(_0x49a128[_0x385531(0x4f4)]||_0x49a128[_0x385531(0x3fa)][_0x385531(0x54c)]!==0x0)&&(_0x39ea94=_0x49a128[_0x385531(0x3d8)]),_0x39ea94===0x0&&this[_0x385531(0x45c)]['debug'](_0x385531(0x4b3),_0x385531(0x1f2)),this[_0x385531(0x40d)]['loadDoc'](_0x4307a4,_0x39ea94);}},exports[_0x3b57cd(0x4a8)]=qi([se(0x0,Ze),se(0x1,a[_0x3b57cd(0x4e7)]),se(0x2,a[_0x3b57cd(0x17e)]),se(0x3,a[_0x3b57cd(0x4ad)](exports[_0x3b57cd(0x33e)])),se(0x4,a[_0x3b57cd(0x4ad)](_[_0x3b57cd(0x2cb)])),se(0x5,a['Optional'](Xt[_0x3b57cd(0x217)]))],exports[_0x3b57cd(0x4a8)]);var zi=Object[_0x3b57cd(0x44e)],Ji=Object[_0x3b57cd(0x35f)],Zi=(_0x59ca83,_0x37a3b9,_0x905eb7,_0x4f1555)=>{for(var _0x9d1919=_0x4f1555>0x1?void 0x0:_0x4f1555?Ji(_0x37a3b9,_0x905eb7):_0x37a3b9,_0x42b388=_0x59ca83['length']-0x1,_0x37b1c5;_0x42b388>=0x0;_0x42b388--)(_0x37b1c5=_0x59ca83[_0x42b388])&&(_0x9d1919=(_0x4f1555?_0x37b1c5(_0x37a3b9,_0x905eb7,_0x9d1919):_0x37b1c5(_0x9d1919))||_0x9d1919);return _0x4f1555&&_0x9d1919&&zi(_0x37a3b9,_0x905eb7,_0x9d1919),_0x9d1919;},ht=(_0x94c553,_0xf05fe3)=>(_0xfff460,_0x16512a)=>_0xf05fe3(_0xfff460,_0x16512a,_0x94c553);const Qi='DEFAULT_FILE_NAME',en=_0x3b57cd(0x56f);let Ce=class extends a['Disposable']{constructor(_0x5a27cc,_0x26d9e3){const _0x25e499=_0x3b57cd;super(),this[_0x25e499(0x562)]=_0x5a27cc,this[_0x25e499(0x490)]=_0x26d9e3,this[_0x25e499(0x1d3)]();}[_0x3b57cd(0x1d3)](){const _0x337c40=_0x3b57cd;this[_0x337c40(0x431)](this[_0x337c40(0x562)][_0x337c40(0x473)][_0x337c40(0x508)](()=>{const _0x14eebb=_0x337c40;var _0x2a83ba;const _0x48e714=this[_0x14eebb(0x562)][_0x14eebb(0x55a)]();let _0x12d776=(_0x2a83ba=this[_0x14eebb(0x490)][_0x14eebb(0x38e)](Qi))!=null?_0x2a83ba:en;_0x48e714 instanceof a[_0x14eebb(0x26e)]&&(_0x12d776=_0x48e714[_0x14eebb(0x35d)]),document[_0x14eebb(0x307)]=_0x12d776;}));}};Ce=Zi([ht(0x0,a[_0x3b57cd(0x424)]),ht(0x1,a[_0x3b57cd(0x2f9)])],Ce);var tn=Object[_0x3b57cd(0x44e)],sn=Object['getOwnPropertyDescriptor'],nn=(_0x593ac9,_0x5bc9a7,_0x338312,_0x493844)=>{for(var _0x4fc321=_0x493844>0x1?void 0x0:_0x493844?sn(_0x5bc9a7,_0x338312):_0x5bc9a7,_0x547151=_0x593ac9['length']-0x1,_0xa4299;_0x547151>=0x0;_0x547151--)(_0xa4299=_0x593ac9[_0x547151])&&(_0x4fc321=(_0x493844?_0xa4299(_0x5bc9a7,_0x338312,_0x4fc321):_0xa4299(_0x4fc321))||_0x4fc321);return _0x493844&&_0x4fc321&&tn(_0x5bc9a7,_0x338312,_0x4fc321),_0x4fc321;},je=(_0x2b42f4,_0x4c7043)=>(_0x9f5430,_0x514393)=>_0x4c7043(_0x9f5430,_0x514393,_0x2b42f4);let Ee=class{constructor(_0x1c33bd,_0x564a88,_0x3d5e85){const _0x3d2543=_0x3b57cd;this['_configService']=_0x1c33bd,this['_httpService']=_0x564a88,this[_0x3d2543(0x4f8)]=_0x3d5e85,this[_0x3d2543(0x1dc)]();}['init'](){const _0x43a396=_0x3b57cd;this['_httpService'][_0x43a396(0x499)]({'priority':0x1,'interceptor':(_0x218ac7,_0x21ef33)=>_0x21ef33(_0x218ac7)['pipe'](v[_0x43a396(0x302)](async _0x5f5add=>{const _0x1af8e0=_0x43a396,_0x25b39e=_0x5f5add;if(_0x25b39e[_0x1af8e0(0x368)]===0x191&&window[_0x1af8e0(0x39a)](this['localeService']['t'](_0x1af8e0(0x41d)))){const _0x3f8006=window[_0x1af8e0(0x37c)](window[_0x1af8e0(0x548)]['href']);window['location'][_0x1af8e0(0x3ca)]=this[_0x1af8e0(0x3bf)]()+_0x1af8e0(0x266)+_0x3f8006;}return _0x25b39e;}))});}[_0x3b57cd(0x3bf)](){const _0x3d3804=_0x3b57cd;var _0x3cb1dd,_0x5f55d1;const _0x509ba9=this[_0x3d3804(0x490)][_0x3d3804(0x38e)](Ct),_0x46a1d2=this[_0x3d3804(0x490)][_0x3d3804(0x38e)]($);return(_0x5f55d1=(_0x3cb1dd=_0x46a1d2==null?void 0x0:_0x46a1d2[_0x3d3804(0x40b)])!=null?_0x3cb1dd:_0x509ba9)!=null?_0x5f55d1:rs;}};Ee=nn([je(0x0,a[_0x3b57cd(0x2f9)]),je(0x1,a[_0x3b57cd(0x4ad)](U[_0x3b57cd(0x44a)])),je(0x2,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x1f9)]))],Ee);var rn=Object['defineProperty'],on=Object[_0x3b57cd(0x35f)],an=(_0x35a026,_0xa3b10c,_0x25ef4e,_0x3e59a9)=>{const _0x4bbe30=_0x3b57cd;for(var _0x225525=_0x3e59a9>0x1?void 0x0:_0x3e59a9?on(_0xa3b10c,_0x25ef4e):_0xa3b10c,_0x522d58=_0x35a026[_0x4bbe30(0x54c)]-0x1,_0x96dfb0;_0x522d58>=0x0;_0x522d58--)(_0x96dfb0=_0x35a026[_0x522d58])&&(_0x225525=(_0x3e59a9?_0x96dfb0(_0xa3b10c,_0x25ef4e,_0x225525):_0x96dfb0(_0x225525))||_0x225525);return _0x3e59a9&&_0x225525&&rn(_0xa3b10c,_0x25ef4e,_0x225525),_0x225525;},_t=(_0x370288,_0x209bd0)=>(_0xde8196,_0x23b4b0)=>_0x209bd0(_0xde8196,_0x23b4b0,_0x370288);const jt=_0x3b57cd(0x43b),cn=_0x3b57cd(0x48e);exports['AuthzIoHttpService']=class extends a[_0x3b57cd(0x54b)]{constructor(_0x5485a8,_0x503d2f){const _0x6a4e5d=_0x3b57cd;super(),this['_HTTPService']=_0x5485a8,this[_0x6a4e5d(0x490)]=_0x503d2f,this[_0x6a4e5d(0x342)]();}[_0x3b57cd(0x342)](){const _0x5ae933=_0x3b57cd,_0x58c0cc=this;this[_0x5ae933(0x431)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':U[_0x5ae933(0x286)]({'isMatch'(_0x3786fb){const _0x110b18=_0x5ae933;var _0x4beedd;if(_0x3786fb[_0x110b18(0x4bc)]===_0x110b18(0x18a)&&((_0x4beedd=_0x3786fb[_0x110b18(0x4c7)])!=null&&_0x4beedd[_0x110b18(0x4f1)])){const {objectID:_0x3e58fd,objectType:_0x2901f9}=_0x3786fb[_0x110b18(0x4c7)][_0x110b18(0x4f1)]||{};if(!_0x3e58fd||_0x2901f9===void 0x0)return!0x1;const _0x58eca8=_0x58c0cc[_0x110b18(0x511)]()+'/'+_0x2901f9+'/object/'+_0x3e58fd+_0x110b18(0x4fb);if(_0x3786fb[_0x110b18(0x583)]===_0x58eca8)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3d376e){const _0x2bfdeb=_0x5ae933;var _0x348799;return(_0x348799=_0x3d376e[_0x2bfdeb(0x4c7)])==null?void 0x0:_0x348799[_0x2bfdeb(0x4f1)];},'mergeParamsToRequest'(_0x5e656a,_0x20a115){const _0x4b23e2=_0x5ae933,_0x58360a=_0x58c0cc[_0x4b23e2(0x511)]()+'/-/object/-/batch_allowed',_0x4790b4=_0x5e656a[_0x4b23e2(0x3c4)]((_0x3a2e76,_0xc4bb6e)=>{const _0x58d1f0=_0x4b23e2,{unitID:_0x30b9af,objectID:_0x54430b,objectType:_0x23e832,actions:_0x5daba6}=_0xc4bb6e;return _0x3a2e76[_0x30b9af]||(_0x3a2e76[_0x30b9af]={}),_0x3a2e76[_0x30b9af][_0x54430b]||(_0x3a2e76[_0x30b9af][_0x54430b]={'objectID':_0x54430b,'objectType':_0x23e832,'actions':[]}),_0x3a2e76[_0x30b9af][_0x54430b][_0x58d1f0(0x383)]['push'](..._0x5daba6),_0x3a2e76;},{}),_0x246256=[];for(const _0xb4a247 in _0x4790b4)for(const _0x36b667 in _0x4790b4[_0xb4a247]){const {actions:_0x2906d5,objectType:_0x4892b1}=_0x4790b4[_0xb4a247][_0x36b667],_0x108486=[...new Set(_0x2906d5)];_0x246256[_0x4b23e2(0x41e)]({'unitID':_0xb4a247,'objectID':_0x36b667,'objectType':_0x4892b1,'actions':_0x108486});}return new U[(_0x4b23e2(0x3c2))](_0x4b23e2(0x18a),_0x58360a,{'headers':_0x20a115['headers'],'withCredentials':_0x20a115[_0x4b23e2(0x389)],'responseType':_0x20a115[_0x4b23e2(0x51b)],'body':{'requests':_0x246256}});}},{'distributeResult'(_0x51e79a,_0x2ce945){const _0x2d8add=_0x5ae933,{objectActions:_0x5aa609}=_0x51e79a;return _0x2ce945[_0x2d8add(0x439)](_0x118fc9=>{const _0x3379ce=_0x2d8add,{unitID:_0x38636d,objectID:_0x4dd4d5,actions:_0x4b089b}=_0x118fc9,_0x3089a8=_0x5aa609[_0x3379ce(0x303)](_0x452dc7=>_0x452dc7['unitID']===_0x38636d&&_0x452dc7[_0x3379ce(0x2f2)]===_0x4dd4d5),_0x526bd7=_0x4b089b[_0x3379ce(0x439)](_0x4de589=>_0x3089a8==null?void 0x0:_0x3089a8[_0x3379ce(0x383)][_0x3379ce(0x303)](_0x1abe2c=>_0x1abe2c[_0x3379ce(0x2e3)]===_0x4de589))[_0x3379ce(0x445)](_0x1ab58e=>!!_0x1ab58e);return{'config':_0x118fc9,'result':{'actions':_0x526bd7,'error':_0x51e79a[_0x3379ce(0x37f)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3d024a=_0x3b57cd;var _0x32f80f,_0x29c713;const _0x2d2b67=this[_0x3d024a(0x490)]['getConfig'](jt),_0x484d69=this[_0x3d024a(0x490)][_0x3d024a(0x38e)]($);return(_0x29c713=(_0x32f80f=_0x484d69==null?void 0x0:_0x484d69[_0x3d024a(0x4c0)])!=null?_0x32f80f:_0x2d2b67)!=null?_0x29c713:cn;}async[_0x3b57cd(0x59b)](_0x21e065){const _0x3d20ef=_0x3b57cd,_0xc2ddbf=this['_getAPIPrefixPath']()+'/'+_0x21e065['objectType']+_0x3d20ef(0x22d);return(await this['_HTTPService'][_0x3d20ef(0x1cb)](_0xc2ddbf,{'body':_0x21e065}))['body']['objectID']||'';}async[_0x3b57cd(0x223)](_0x598784){const _0x153933=_0x3b57cd,_0x1fcf46=this['_getAPIPrefixPath']()+_0x153933(0x2ae);return(await this[_0x153933(0x4ef)][_0x153933(0x1cb)](_0x1fcf46,{'body':_0x598784}))[_0x153933(0x4f1)][_0x153933(0x331)];}async[_0x3b57cd(0x270)](_0x36f6c6){const _0x478538=_0x3b57cd,_0x74c32b=this[_0x478538(0x511)]()+'/'+_0x36f6c6[_0x478538(0x406)]+'/object/'+_0x36f6c6['objectID'];await this[_0x478538(0x4ef)][_0x478538(0x50a)](_0x74c32b,{'body':_0x36f6c6});}async[_0x3b57cd(0x340)](_0x507517){const _0x3734b4=_0x3b57cd,_0x25d562=this[_0x3734b4(0x511)]()+'/'+_0x507517['objectType']+'/object/'+_0x507517[_0x3734b4(0x2f2)]+_0x3734b4(0x4fb);return(await this['_HTTPService'][_0x3734b4(0x1cb)](_0x25d562,{'body':_0x507517}))[_0x3734b4(0x4f1)]['actions'];}async[_0x3b57cd(0x215)](_0x2995df){const _0x491916=_0x3b57cd,_0x201929=this[_0x491916(0x511)]()+_0x491916(0x2ef);return(await this[_0x491916(0x4ef)][_0x491916(0x1cb)](_0x201929,{'body':{'requests':_0x2995df}}))[_0x491916(0x4f1)]['objectActions'];}async[_0x3b57cd(0x26b)](_0xa7c7f6){const _0x5af67c=_0x3b57cd,_0x5cd9bd=this[_0x5af67c(0x511)]()+'/'+_0xa7c7f6['objectType']+_0x5af67c(0x464),_0x1be663=await this[_0x5af67c(0x4ef)][_0x5af67c(0x1cb)](_0x5cd9bd,{'body':_0xa7c7f6});return{'roles':_0x1be663[_0x5af67c(0x4f1)]['roles'],'actions':_0x1be663[_0x5af67c(0x4f1)][_0x5af67c(0x383)]};}async['deleteCollaborator'](_0x3755e6){const _0x23d2b=_0x3b57cd,_0x21e290=this[_0x23d2b(0x511)]()+'/collaborator';await this[_0x23d2b(0x4ef)][_0x23d2b(0x524)](_0x21e290,{'params':{'collaboratorID':_0x3755e6['collaboratorID'],'objectID':_0x3755e6[_0x23d2b(0x2f2)],'unitID':_0x3755e6['unitID']}});}async['updateCollaborator'](_0xd83141){const _0x3cd734=_0x3b57cd,_0x4d3d0a=this[_0x3cd734(0x511)]()+_0x3cd734(0x23f);await this[_0x3cd734(0x4ef)][_0x3cd734(0x260)](_0x4d3d0a,{'body':_0xd83141});}async['createCollaborator'](_0x524d23){const _0xa8179=_0x3b57cd,_0x80976a=this[_0xa8179(0x511)]()+'/collaborator';await this[_0xa8179(0x4ef)][_0xa8179(0x1cb)](_0x80976a,{'body':_0x524d23});}async['listCollaborators'](_0x11ad69){const _0x4cad7b=_0x3b57cd,_0x430092=this[_0x4cad7b(0x511)]()+_0x4cad7b(0x23f);return(await this['_HTTPService'][_0x4cad7b(0x4e6)](_0x430092,{'params':{'objectID':_0x11ad69[_0x4cad7b(0x2f2)],'unitID':_0x11ad69[_0x4cad7b(0x234)]}}))[_0x4cad7b(0x4f1)][_0x4cad7b(0x504)];}async[_0x3b57cd(0x420)](_0x39a1fa){const _0x37d906=_0x3b57cd,_0x2025e3=this['_getAPIPrefixPath']()+_0x37d906(0x23f);await this[_0x37d906(0x4ef)][_0x37d906(0x50a)](_0x2025e3,{'body':_0x39a1fa});}},exports['AuthzIoHttpService']=an([_t(0x0,a[_0x3b57cd(0x4ad)](U[_0x3b57cd(0x44a)])),_t(0x1,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x2f9)]))],exports['AuthzIoHttpService']);var ln=Object[_0x3b57cd(0x44e)],hn=Object[_0x3b57cd(0x35f)],_n=(_0x66435c,_0x19f2c5,_0x320d55,_0x5d8b23)=>{const _0x134f5c=_0x3b57cd;for(var _0x44e809=_0x5d8b23>0x1?void 0x0:_0x5d8b23?hn(_0x19f2c5,_0x320d55):_0x19f2c5,_0x4c92ee=_0x66435c[_0x134f5c(0x54c)]-0x1,_0x4630e2;_0x4c92ee>=0x0;_0x4c92ee--)(_0x4630e2=_0x66435c[_0x4c92ee])&&(_0x44e809=(_0x5d8b23?_0x4630e2(_0x19f2c5,_0x320d55,_0x44e809):_0x4630e2(_0x44e809))||_0x44e809);return _0x5d8b23&&_0x44e809&&ln(_0x19f2c5,_0x320d55,_0x44e809),_0x44e809;},un=(_0x304f4e,_0x1ad762)=>(_0x1e8533,_0x45c131)=>_0x1ad762(_0x1e8533,_0x45c131,_0x304f4e);let be=class{constructor(_0x3524f4){const _0xfa4c92=_0x3b57cd;this[_0xfa4c92(0x493)]=_0x3524f4,this[_0xfa4c92(0x213)]();}[_0x3b57cd(0x213)](){const _0x1255bc=_0x3b57cd;this[_0x1255bc(0x493)][_0x1255bc(0x499)]({'interceptor':(_0x5aabfe,_0x2da7f8)=>{const _0x4914b6=_0x1255bc,_0x14b35b=_0x5aabfe[_0x4914b6(0x497)],_0x3ed0bd=qt['getAttachHeader']();return _0x3ed0bd&&_0x14b35b[_0x4914b6(0x4af)](_0x4914b6(0x237),_0x3ed0bd),_0x2da7f8(_0x5aabfe);}});}};be=_n([un(0x0,a[_0x3b57cd(0x4ad)](U[_0x3b57cd(0x44a)]))],be);var dn=Object[_0x3b57cd(0x44e)],Sn=Object['getOwnPropertyDescriptor'],vn=(_0x17c006,_0x44ddfa,_0x5263a4,_0x4ee4d5)=>{const _0x4889e3=_0x3b57cd;for(var _0x423338=_0x4ee4d5>0x1?void 0x0:_0x4ee4d5?Sn(_0x44ddfa,_0x5263a4):_0x44ddfa,_0x1d3fe3=_0x17c006[_0x4889e3(0x54c)]-0x1,_0x2df8c6;_0x1d3fe3>=0x0;_0x1d3fe3--)(_0x2df8c6=_0x17c006[_0x1d3fe3])&&(_0x423338=(_0x4ee4d5?_0x2df8c6(_0x44ddfa,_0x5263a4,_0x423338):_0x2df8c6(_0x423338))||_0x423338);return _0x4ee4d5&&_0x423338&&dn(_0x44ddfa,_0x5263a4,_0x423338),_0x423338;},He=(_0x13b1f4,_0x3c059b)=>(_0x421b8c,_0x327d72)=>_0x3c059b(_0x421b8c,_0x327d72,_0x13b1f4);const mn=[_0x3b57cd(0x45b),_0x3b57cd(0x525),_0x3b57cd(0x3cc),_0x3b57cd(0x226),_0x3b57cd(0x46a)],gn=0x5*0x400*0x400,fn=_0x3b57cd(0x550),In=_0x3b57cd(0x1c6),pn=_0x3b57cd(0x2b3),Cn=_0x3b57cd(0x518);exports[_0x3b57cd(0x2f0)]=class{constructor(_0x317bed,_0x3b0034,_0x514316){const _0x3841b5=_0x3b57cd;u(this,_0x3841b5(0x25f),0x0),u(this,_0x3841b5(0x37d),new v[(_0x3841b5(0x56b))]()),u(this,'change$',this[_0x3841b5(0x37d)]),u(this,_0x3841b5(0x3d3),new Map()),(this['_httpService']=_0x317bed,this['_configService']=_0x3b0034,this[_0x3841b5(0x562)]=_0x514316);}['setWaitCount'](_0x8891b4){const _0x5d571c=_0x3b57cd;this[_0x5d571c(0x25f)]=_0x8891b4,this[_0x5d571c(0x37d)][_0x5d571c(0x3b8)](_0x8891b4);}[_0x3b57cd(0x328)](_0xebe2c5,_0x28d4ed){const _0x535892=_0x3b57cd;if(_0x28d4ed===j[_0x535892(0x293)]['BASE64']){const _0x5c8545=new Image();return _0x5c8545[_0x535892(0x3a6)]=_0xebe2c5,_0x5c8545;}return this[_0x535892(0x3d3)][_0x535892(0x4e6)](_0xebe2c5);}[_0x3b57cd(0x454)](_0x15e51e,_0x5ea46b,_0x1923bc){const _0x2bb964=_0x3b57cd;_0x5ea46b===j['ImageSourceType']['BASE64']||_0x1923bc==null||this[_0x2bb964(0x3d3)]['set'](_0x15e51e,_0x1923bc);}async['getImage'](_0x341ff1){const _0x3ca085=_0x3b57cd;try{const _0x5a006c=this[_0x3ca085(0x350)](this[_0x3ca085(0x39e)](),''+_0x341ff1),_0x3cd981=(await this[_0x3ca085(0x493)][_0x3ca085(0x4e6)](_0x5a006c))[_0x3ca085(0x4f1)];if(_0x3cd981[_0x3ca085(0x37f)]&&_0x3cd981[_0x3ca085(0x37f)][_0x3ca085(0x29f)]===Et['OK']){const _0x4d7855=new URL(_0x3cd981[_0x3ca085(0x583)],this[_0x3ca085(0x594)]())[_0x3ca085(0x3b0)]();return Promise[_0x3ca085(0x30e)](_0x4d7855);}return Promise[_0x3ca085(0x50c)](_0x3cd981['error']);}catch(_0x26da9f){return Promise['reject'](_0x26da9f);}}async[_0x3b57cd(0x25a)](_0x44ab49){const _0x54ca00=_0x3b57cd;let _0x550a84='';if(!mn[_0x54ca00(0x4f5)](_0x44ab49['type']))return this[_0x54ca00(0x514)](),Promise[_0x54ca00(0x50c)](new Error(j[_0x54ca00(0x3eb)]['ERROR_IMAGE_TYPE']));if(_0x44ab49[_0x54ca00(0x4ba)]>gn)return this[_0x54ca00(0x514)](),Promise[_0x54ca00(0x50c)](new Error(j[_0x54ca00(0x3eb)]['ERROR_EXCEED_SIZE']));try{const _0x1c87dc=new FormData();_0x1c87dc['append'](_0x54ca00(0x3a5),_0x44ab49);const _0x3a86ac=this['_univerInstanceService'][_0x54ca00(0x55a)](),_0x5f8eac=_0x3a86ac==null?void 0x0:_0x3a86ac[_0x54ca00(0x2fa)]();if(!_0x5f8eac)throw new Error('unitId\x20is\x20not\x20found');const _0x4806a9=this['_getUploadFileURL']()+_0x54ca00(0x1df)+_0x44ab49[_0x54ca00(0x4ba)][_0x54ca00(0x3b0)]()+_0x54ca00(0x26d)+bt[_0x54ca00(0x448)]+_0x54ca00(0x51f)+encodeURIComponent(_0x5f8eac),_0xe4f2c9=await(await fetch(_0x4806a9,{'method':_0x54ca00(0x18a),'body':_0x1c87dc}))['json']();if(typeof _0xe4f2c9['FileId']!=_0x54ca00(0x52f))return this[_0x54ca00(0x514)](),Promise[_0x54ca00(0x50c)](new Error(j[_0x54ca00(0x3eb)][_0x54ca00(0x1ed)]));_0x550a84=_0xe4f2c9[_0x54ca00(0x577)];}catch{return this[_0x54ca00(0x514)](),Promise[_0x54ca00(0x50c)](new Error(j['ImageUploadStatusType'][_0x54ca00(0x1ed)]));}return new Promise((_0x445525,_0x18b6a6)=>{const _0x57b51b=_0x54ca00,_0x552c25=new FileReader();_0x552c25[_0x57b51b(0x4f6)](_0x44ab49),_0x552c25[_0x57b51b(0x216)]=_0x277556=>{const _0xf568a3=_0x57b51b;var _0x5a8eed;const _0x59a7c1=(_0x5a8eed=_0x277556[_0xf568a3(0x53c)])==null?void 0x0:_0x5a8eed[_0xf568a3(0x1da)];if(_0x59a7c1==null){this[_0xf568a3(0x514)](),_0x18b6a6(new Error(j[_0xf568a3(0x3eb)][_0xf568a3(0x1ed)]));return;}const _0x50bce4=a[_0xf568a3(0x2a0)][_0xf568a3(0x3e4)](0x6);_0x445525({'imageId':_0x50bce4,'imageSourceType':j[_0xf568a3(0x293)][_0xf568a3(0x54d)],'source':_0x550a84,'base64Cache':_0x59a7c1,'status':j[_0xf568a3(0x3eb)][_0xf568a3(0x3aa)]}),this[_0xf568a3(0x514)]();};});}['_getUploadFileURL'](){const _0x341da5=_0x3b57cd;var _0x121125,_0x465539;const _0xb1cea4=this[_0x341da5(0x490)][_0x341da5(0x38e)](fn),_0x2cc81f=this[_0x341da5(0x490)][_0x341da5(0x38e)]($);return(_0x465539=(_0x121125=_0x2cc81f==null?void 0x0:_0x2cc81f['uploadFileServerUrl'])!=null?_0x121125:_0xb1cea4)!=null?_0x465539:In;}[_0x3b57cd(0x39e)](){const _0x31945d=_0x3b57cd;var _0x50fe9f,_0x273e36;const _0xfc5a37=this[_0x31945d(0x490)]['getConfig'](pn),_0x4a6358=this[_0x31945d(0x490)]['getConfig']($);return(_0x273e36=(_0x50fe9f=_0x4a6358==null?void 0x0:_0x4a6358[_0x31945d(0x211)])!=null?_0x50fe9f:_0xfc5a37)!=null?_0x273e36:Cn;}[_0x3b57cd(0x594)](){const _0x28d091=_0x3b57cd;var _0x5920ad;const _0x39b267=this[_0x28d091(0x490)][_0x28d091(0x38e)]($);return(_0x5920ad=_0x39b267==null?void 0x0:_0x39b267[_0x28d091(0x43a)])!=null?_0x5920ad:location[_0x28d091(0x2b6)];}[_0x3b57cd(0x350)](_0x3d5ae3,_0x3281dd){const _0x23f536=_0x3b57cd;return _0x3d5ae3['replace'](_0x23f536(0x2c2),_0x3281dd);}[_0x3b57cd(0x514)](){const _0xee627=_0x3b57cd;this[_0xee627(0x25f)]-=0x1,this[_0xee627(0x37d)][_0xee627(0x3b8)](this[_0xee627(0x25f)]);}},exports[_0x3b57cd(0x2f0)]=vn([He(0x0,a[_0x3b57cd(0x4ad)](U[_0x3b57cd(0x44a)])),He(0x1,a[_0x3b57cd(0x2f9)]),He(0x2,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x424)]))],exports['ImageIoService']);var En=Object[_0x3b57cd(0x44e)],bn=Object[_0x3b57cd(0x35f)],Tn=(_0x27f3d8,_0x317729,_0x5847fc,_0x54c012)=>{const _0x49f8c5=_0x3b57cd;for(var _0x3c29e7=_0x54c012>0x1?void 0x0:_0x54c012?bn(_0x317729,_0x5847fc):_0x317729,_0x361753=_0x27f3d8[_0x49f8c5(0x54c)]-0x1,_0x4bdbeb;_0x361753>=0x0;_0x361753--)(_0x4bdbeb=_0x27f3d8[_0x361753])&&(_0x3c29e7=(_0x54c012?_0x4bdbeb(_0x317729,_0x5847fc,_0x3c29e7):_0x4bdbeb(_0x3c29e7))||_0x3c29e7);return _0x54c012&&_0x3c29e7&&En(_0x317729,_0x5847fc,_0x3c29e7),_0x3c29e7;},_e=(_0x225aa7,_0x3916d3)=>(_0x31c187,_0x3152ec)=>_0x3916d3(_0x31c187,_0x3152ec,_0x225aa7);let Te=class extends a[_0x3b57cd(0x3a3)]{constructor(_0x36059f,_0x5696af,_0x4ffc28,_0x543ad6,_0x42e599){const _0x35a905=_0x3b57cd;super(),this[_0x35a905(0x486)]=_0x36059f,this[_0x35a905(0x562)]=_0x5696af,this[_0x35a905(0x3f9)]=_0x4ffc28,this[_0x35a905(0x55e)]=_0x543ad6,this[_0x35a905(0x4fd)]=_0x42e599,this[_0x35a905(0x4a5)](),this[_0x35a905(0x337)]();}['_initCloseConn'](){const _0x3d7451=_0x3b57cd,_0x324e14=async _0x3fa95f=>{const _0x554c02=_0x4497;(await this['_collaborationSessionService'][_0x554c02(0x55b)](_0x3fa95f))['event$'][_0x554c02(0x3b4)](E['filter'](_0x4223d8=>_0x4223d8[_0x554c02(0x2f8)]===_[_0x554c02(0x556)][_0x554c02(0x2f5)]),E[_0x554c02(0x1b3)](this[_0x554c02(0x3fc)]))[_0x554c02(0x508)](_0x13fe01=>{const _0xf03c0b=_0x554c02,_0x40cf48=_0x13fe01,{reason:_0x46c2f2}=_0x40cf48[_0xf03c0b(0x30a)];this[_0xf03c0b(0x486)][_0xf03c0b(0x4e6)](A['IMessageService'])[_0xf03c0b(0x2e8)]({'type':J[_0xf03c0b(0x502)][_0xf03c0b(0x4db)],'content':this['_localeService']['t'](_0xf03c0b(0x219))+'('+_0x46c2f2+')'}),this[_0xf03c0b(0x3f9)][_0xf03c0b(0x1fc)](new C['WorkbookEditablePermission'](_0x3fa95f)['id'],!0x1),this[_0xf03c0b(0x55e)][_0xf03c0b(0x2da)](_0x3fa95f);});};v[_0x3d7451(0x547)](this['_univerInstanceService'][_0x3d7451(0x1e3)](a[_0x3d7451(0x2b4)][_0x3d7451(0x53b)]),this[_0x3d7451(0x562)][_0x3d7451(0x1e3)](a[_0x3d7451(0x2b4)][_0x3d7451(0x1a9)]))[_0x3d7451(0x3b4)](E[_0x3d7451(0x439)](_0x2d0bb6=>_0x2d0bb6[_0x3d7451(0x2fa)]()),E[_0x3d7451(0x445)](_0x83e5ad=>!a['isInternalEditorID'](_0x83e5ad)),E[_0x3d7451(0x1b3)](this[_0x3d7451(0x3fc)]))['subscribe'](_0x34b1d8=>{_0x324e14(_0x34b1d8);});}['_initUnitPermissionChange'](){const _0x437e76=_0x3b57cd,_0x4e72d5=async _0x3c7f9d=>{const _0x364216=_0x4497;(await this[_0x364216(0x55e)][_0x364216(0x55b)](_0x3c7f9d))['event$'][_0x364216(0x3b4)](E[_0x364216(0x445)](_0x5892b5=>_0x5892b5['eventID']===_[_0x364216(0x556)][_0x364216(0x22a)]),E[_0x364216(0x1b3)](this[_0x364216(0x3fc)]))[_0x364216(0x508)](_0x4ad40d=>{const _0x14cea6=_0x364216,_0x329af9=_0x4ad40d,{objectId:_0x46114e}=_0x329af9[_0x14cea6(0x30a)],_0x6be313=this[_0x14cea6(0x486)][_0x14cea6(0x4e6)](ie['SheetPermissionInitController']);_0x46114e===_0x3c7f9d?_0x6be313['initWorkbookPermissionChange'](_0x3c7f9d):_0x6be313[_0x14cea6(0x2f4)](_0x3c7f9d,_0x46114e);});};v['merge'](this[_0x437e76(0x562)][_0x437e76(0x1e3)](a[_0x437e76(0x2b4)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x437e76(0x1e3)](a['UniverInstanceType'][_0x437e76(0x1a9)]))[_0x437e76(0x3b4)](E['map'](_0x4ba91a=>_0x4ba91a[_0x437e76(0x2fa)]()),E[_0x437e76(0x445)](_0x27f806=>!a['isInternalEditorID'](_0x27f806)),E[_0x437e76(0x1b3)](this[_0x437e76(0x3fc)]))[_0x437e76(0x508)](_0xfe7bb2=>{_0x4e72d5(_0xfe7bb2);});}};Te=Tn([_e(0x0,a['Inject'](a[_0x3b57cd(0x232)])),_e(0x1,a[_0x3b57cd(0x424)]),_e(0x2,a[_0x3b57cd(0x460)]),_e(0x3,a[_0x3b57cd(0x4ad)](exports['CollaborationSessionService'])),_e(0x4,a[_0x3b57cd(0x4ad)](a['LocaleService']))],Te);var Rn=Object[_0x3b57cd(0x44e)],On=Object[_0x3b57cd(0x35f)],Dn=(_0x24ebf5,_0x2a1ee6,_0x2db86b,_0x9385f5)=>{const _0x5961a2=_0x3b57cd;for(var _0x155d78=_0x9385f5>0x1?void 0x0:_0x9385f5?On(_0x2a1ee6,_0x2db86b):_0x2a1ee6,_0xaedbd1=_0x24ebf5[_0x5961a2(0x54c)]-0x1,_0x1c8f80;_0xaedbd1>=0x0;_0xaedbd1--)(_0x1c8f80=_0x24ebf5[_0xaedbd1])&&(_0x155d78=(_0x9385f5?_0x1c8f80(_0x2a1ee6,_0x2db86b,_0x155d78):_0x1c8f80(_0x155d78))||_0x155d78);return _0x9385f5&&_0x155d78&&Rn(_0x2a1ee6,_0x2db86b,_0x155d78),_0x155d78;},ut=(_0x29789b,_0x1ef289)=>(_0x4eaa97,_0x8186dd)=>_0x1ef289(_0x4eaa97,_0x8186dd,_0x29789b);exports[_0x3b57cd(0x249)]=class{constructor(_0xde7683,_0x5c9943){const _0x2255f5=_0x3b57cd;this[_0x2255f5(0x490)]=_0xde7683,this['_httpService']=_0x5c9943;}async[_0x3b57cd(0x4e9)](_0x1a26ae,_0x5b465e){const _0x42395d=_0x3b57cd;var _0x5eb6cf;const {unitID:_0x350916,type:_0x52c40d,revision:_0x275eb5=0x0}=_0x5b465e,_0x4f41c2=this[_0x42395d(0x582)]()+'/'+_0x52c40d+_0x42395d(0x3c6)+_0x350916+'/rev/'+_0x275eb5,_0x334f8b=(await this[_0x42395d(0x493)][_0x42395d(0x4e6)](_0x4f41c2))[_0x42395d(0x4f1)],_0xae4433=(_0x5eb6cf=_0x334f8b[_0x42395d(0x372)])==null?void 0x0:_0x5eb6cf[_0x42395d(0x4ce)];if(_0xae4433){const _0x1c8898=_0xae4433==null?void 0x0:_0xae4433[_0x42395d(0x21b)],_0x5b37e1=_[_0x42395d(0x1d0)][_0x42395d(0x462)](_[_0x42395d(0x4b1)](_0x1c8898));_0xae4433[_0x42395d(0x21b)]=_0x5b37e1,Object[_0x42395d(0x2b9)](_0xae4433[_0x42395d(0x20d)])[_0x42395d(0x571)](([,_0x14c466])=>{const _0x49dd19=_0x42395d,_0x119859=_0x14c466['originalMeta'],_0x5a0ca3=_['textEncoder'][_0x49dd19(0x462)](_[_0x49dd19(0x4b1)](_0x119859));_0x14c466['originalMeta']=_0x5a0ca3;});}return _0x334f8b;}async[_0x3b57cd(0x3e7)](_0x290587,_0x19d35a){const _0x1d0e5c=_0x3b57cd,{unitID:_0x312ba2,type:_0x387b2f,blockID:_0x5cc7f4}=_0x19d35a,_0x52b688=this[_0x1d0e5c(0x278)]()+'/'+_0x387b2f+'/unit/'+_0x312ba2+_0x1d0e5c(0x250)+_0x5cc7f4;return(await this['_httpService'][_0x1d0e5c(0x4e6)](_0x52b688))[_0x1d0e5c(0x4f1)];}async[_0x3b57cd(0x51d)](_0x2f1b5d,_0x513900){const _0x994ba1=_0x3b57cd,{unitID:_0x3c6524,type:_0x5cc7f1,blockID:_0x3c346d}=_0x513900,_0x550450=this[_0x994ba1(0x278)]()+_0x994ba1(0x250)+_0x5cc7f1+'/unit/'+_0x3c6524+_0x994ba1(0x250)+_0x3c346d;return(await this[_0x994ba1(0x493)][_0x994ba1(0x4e6)](_0x550450))[_0x994ba1(0x4f1)];}async[_0x3b57cd(0x405)](_0x32ce18,_0x575934){const _0x5d9aa1=_0x3b57cd,{unitID:_0x289728,type:_0x48026e,from:_0x1b609f,to:_0x19c286}=_0x575934,_0x48565e=this[_0x5d9aa1(0x278)]()+'/'+_0x48026e+'/unit/'+_0x289728+_0x5d9aa1(0x21c)+_0x1b609f+_0x5d9aa1(0x57b)+_0x19c286;return(await this[_0x5d9aa1(0x493)]['get'](_0x48565e))[_0x5d9aa1(0x4f1)];}[_0x3b57cd(0x582)](){const _0x2aefb3=_0x3b57cd;var _0x18a286;return(_0x18a286=this[_0x2aefb3(0x490)][_0x2aefb3(0x38e)](St))!=null?_0x18a286:this['_getAPIPrefix']();}[_0x3b57cd(0x278)](){const _0x26a883=_0x3b57cd;var _0x3a3f2a,_0x412fe4;const _0x137306=this[_0x26a883(0x490)][_0x26a883(0x38e)](dt),_0x530375=this[_0x26a883(0x490)]['getConfig']($);return(_0x412fe4=(_0x3a3f2a=_0x530375==null?void 0x0:_0x530375['snapshotServerUrl'])!=null?_0x3a3f2a:_0x137306)!=null?_0x412fe4:zt;}async[_0x3b57cd(0x476)](_0x310f23,_0x121ecd){const _0x29b252=_0x3b57cd,_0x12ad82='/universer-api/snapshot/'+_0x121ecd[_0x29b252(0x537)]+_0x29b252(0x3c6)+_0x121ecd['unitID']+_0x29b252(0x4b6);return(await this['_httpService'][_0x29b252(0x4e6)](_0x12ad82,{'params':{'resourceId':JSON['stringify'](_0x121ecd[_0x29b252(0x325)])}}))['body'];}[_0x3b57cd(0x4cf)](){const _0xdc5e69=_0x3b57cd;throw new Error(_0xdc5e69(0x51e));}[_0x3b57cd(0x3f7)](){const _0x5286de=_0x3b57cd;throw new Error(_0x5286de(0x51e));}[_0x3b57cd(0x1d7)](){const _0x2adde9=_0x3b57cd;throw new Error(_0x2adde9(0x51e));}[_0x3b57cd(0x589)](){const _0x6fd324=_0x3b57cd;throw new Error(_0x6fd324(0x51e));}[_0x3b57cd(0x3bb)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x3b57cd(0x249)]=Dn([ut(0x0,a[_0x3b57cd(0x2f9)]),ut(0x1,a['Inject'](U[_0x3b57cd(0x44a)]))],exports['SnapshotServerOverHTTPService']);var yn=Object[_0x3b57cd(0x44e)],Un=Object['getOwnPropertyDescriptor'],Pn=(_0x3d145e,_0x12544a,_0x181454,_0xef2484)=>{const _0x260171=_0x3b57cd;for(var _0x3fcc94=_0xef2484>0x1?void 0x0:_0xef2484?Un(_0x12544a,_0x181454):_0x12544a,_0x2a1ed9=_0x3d145e[_0x260171(0x54c)]-0x1,_0x3d2f89;_0x2a1ed9>=0x0;_0x2a1ed9--)(_0x3d2f89=_0x3d145e[_0x2a1ed9])&&(_0x3fcc94=(_0xef2484?_0x3d2f89(_0x12544a,_0x181454,_0x3fcc94):_0x3d2f89(_0x3fcc94))||_0x3fcc94);return _0xef2484&&_0x3fcc94&&yn(_0x12544a,_0x181454,_0x3fcc94),_0x3fcc94;},ue=(_0x53daa9,_0x191bba)=>(_0x119097,_0x4f937f)=>_0x191bba(_0x119097,_0x4f937f,_0x53daa9);let We=class extends a[_0x3b57cd(0x4d6)]{constructor(_0x4974cf,_0x496e94,_0x37e6a7,_0x581f82,_0xdc0fbd){const _0x4b4124=_0x3b57cd;super(_0x4974cf,_0x496e94,_0x37e6a7),this[_0x4b4124(0x4be)]=_0x581f82,this[_0x4b4124(0x45c)]=_0xdc0fbd;}[_0x3b57cd(0x24f)](_0x23be2f,_0x17f10b){const _0x188dad=_0x3b57cd,_0x400482=this['_getUndoStack'](_0x23be2f);if(_0x400482)try{const _0x26d14d=this[_0x188dad(0x395)](_0x400482,_0x17f10b);this[_0x188dad(0x435)](_0x23be2f,_0x26d14d);}catch(_0xb513dc){this['_logService'][_0x188dad(0x37f)](_0x188dad(0x18b),_0xb513dc),this[_0x188dad(0x1c0)](_0x23be2f);}const _0x498deb=this[_0x188dad(0x401)](_0x23be2f);if(_0x498deb)try{const _0x5acfc0=this['_transformStack'](_0x498deb,_0x17f10b);this['_substituteRedoStack'](_0x23be2f,_0x5acfc0);}catch(_0x1e72f3){this['_logService'][_0x188dad(0x37f)](_0x1e72f3),this['_clearRedo'](_0x23be2f);}}[_0x3b57cd(0x1c0)](_0x20a766){const _0x5c70cc=_0x3b57cd,_0x15a114=this[_0x5c70cc(0x3b3)](_0x20a766);_0x15a114&&(_0x15a114[_0x5c70cc(0x54c)]=0x0,this[_0x5c70cc(0x57d)]());}['_clearRedo'](_0x4f3e71){const _0x5b714d=_0x3b57cd,_0x4916da=this[_0x5b714d(0x401)](_0x4f3e71);_0x4916da&&(_0x4916da[_0x5b714d(0x54c)]=0x0,this[_0x5b714d(0x57d)]());}[_0x3b57cd(0x435)](_0x192a5d,_0xb19d8d){const _0x548e99=_0x3b57cd;this[_0x548e99(0x19e)]['set'](_0x192a5d,_0xb19d8d),this[_0x548e99(0x57d)]();}[_0x3b57cd(0x43f)](_0x2ded03,_0x35982f){const _0x8c854c=_0x3b57cd;this[_0x8c854c(0x3e0)][_0x8c854c(0x4af)](_0x2ded03,_0x35982f),this[_0x8c854c(0x57d)]();}['_transformStack'](_0x2abe2,_0x2371fc){const _0x17054b=_0x3b57cd,_0x4c1619=[];let _0x711bcf=_0x2371fc,_0x5e248a=_0x2371fc;for(let _0x48a609=_0x2abe2[_0x17054b(0x54c)]-0x1;_0x48a609>=0x0;_0x48a609--){const {unitID:_0x2f1e0c,undoMutations:_0x5d83b4,redoMutations:_0x32f496}=_0x2abe2[_0x48a609],_0xe7f262=this['_transformService']['transformMutationsWithChangeset'](_0x711bcf,_0x5d83b4),_0x25ef90=this['_transformService'][_0x17054b(0x29a)](_0x5e248a,_0x32f496);if(_[_0x17054b(0x478)](_0xe7f262)||_['isTransformMutationsWithChangesetFailure'](_0x25ef90)){this[_0x17054b(0x45c)][_0x17054b(0x37f)](_0x17054b(0x18b),_0x17054b(0x3f8),_0xe7f262,_0x25ef90);break;}_0x711bcf=_0xe7f262[_0x17054b(0x295)],_0x5e248a=_0x25ef90['c1Prime'],_0x4c1619[_0x17054b(0x41e)]({'unitID':_0x2f1e0c,'undoMutations':_0xe7f262['m2Prime'],'redoMutations':_0x25ef90['m2Prime']});}return _0x4c1619['reverse']();}};We=Pn([ue(0x0,a[_0x3b57cd(0x424)]),ue(0x1,a[_0x3b57cd(0x17e)]),ue(0x2,a[_0x3b57cd(0x22b)]),ue(0x3,_[_0x3b57cd(0x4d5)]),ue(0x4,a[_0x3b57cd(0x4e7)])],We);class Ht extends a[_0x3b57cd(0x3a3)]{constructor(){const _0x39ad4f=_0x3b57cd;super(),u(this,_0x39ad4f(0x25b)),this['urlChange$']=v[_0x39ad4f(0x1b0)](window,_0x39ad4f(0x28b))[_0x39ad4f(0x3b4)](v[_0x39ad4f(0x1b3)](this[_0x39ad4f(0x3fc)]),v[_0x39ad4f(0x579)](0x1),v[_0x39ad4f(0x269)](void 0x0));}['setParam'](_0x1b5497,_0x521cd2,_0xb5397e=!0x1){const _0xb29a33=_0x3b57cd,_0x13a294=new URL(window[_0xb29a33(0x548)][_0xb29a33(0x3ca)]);_0x13a294[_0xb29a33(0x1f7)][_0xb29a33(0x4af)](_0x1b5497,_0x521cd2),_0xb5397e?window['history'][_0xb29a33(0x432)]('','',_0x13a294[_0xb29a33(0x3b0)]()):window['history'][_0xb29a33(0x2ed)]('','',_0x13a294[_0xb29a33(0x3b0)]());}[_0x3b57cd(0x373)](_0x3caf40,_0x37e351=!0x1){const _0x5a44db=_0x3b57cd,_0xbe3599=new URL(window[_0x5a44db(0x548)][_0x5a44db(0x3ca)]);_0xbe3599[_0x5a44db(0x1f7)]['delete'](_0x3caf40),_0x37e351?window[_0x5a44db(0x208)][_0x5a44db(0x432)]('','',_0xbe3599[_0x5a44db(0x3b0)]()):window[_0x5a44db(0x208)]['pushState']('','',_0xbe3599['toString']());}[_0x3b57cd(0x357)](_0x489d6a){const _0x5c3246=_0x3b57cd;var _0x6f52ef;return(_0x6f52ef=new URL(window[_0x5c3246(0x548)][_0x5c3246(0x3ca)])[_0x5c3246(0x1f7)][_0x5c3246(0x4e6)](_0x489d6a))!=null?_0x6f52ef:void 0x0;}}function _0xac00(){const _0x2c8b86=['getTypeOfUnitDisposed$','M0\x200H16V16H0z','routeKey','isArray','_retryCount','addImageSourceCache','getUnit','_docSyncEditingCollabCursorService','capture','fetchThroughInterceptors','_color','_registerDependencies','image/png','_logService','forwardRef','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','commentUpdate$','IPermissionService','_schedule','encode','_lockTransition','/role','collaboration-client.config','with','_loadDoc','verdancy600','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','image/bmp','Warning','onRemoteRej','OnLineSingle','appendMutation','_instanceService','BehaviorSubject','cursorInfo$','socket$','focused$','OTHER_CLIENTS_EDITING','Error\x20on\x20receiving\x20event','getResourcesRequest','add','isTransformMutationsWithChangesetFailure','DocStateChangeManagerService','_onCursorDelete','_checkMissing','backgroundColor','_commentUpdate$','_undoRedoService','use','getCoordByCell','fillText','[OfflineState]:\x20received\x20acknowledgement.','WebSocketService','_unitStatus','/universer-api/snapshot','_injector','collabStatus.offline','CompressMutationService','randomUUID','assignAColorForMemberID','_syncEditingCollabCursor','_render','_cursorInfo$','/universer-api/authz','collaboration-session-retry','_configService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','CONNECTOR_DATA_TOO_LARGE','_httpService','height','delay','_compressMutationService','headers','DependentOn','registerHTTPInterceptor','enableSingleActiveInstanceLock','getSheetId','transformMutation','_docSkeleton','throttleTime','APPLY_DUPLICATED','fetching\x20missing\x20changesets\x20from\x20','APPLY_PERMISSION_DENIED','clearTimeout','flatMap','LIVESHARE_NEW_HOST','_initUnitPermissionChange','_docStateChangeManagerService','getRandomValues','DataLoaderController','HttpImport','ISnapshotServerService','SNAPSHOT_URL_KEY','2096501kJdACk','Inject','HEARTBEAT_INTERVAL_KEY','set','rxjs','b64DecodeUnicode','RemoveColCommandId','[DataLoaderController]','/universer-api/oidc/authpage','saveOfflineData','/resources','measureText','UniverCollaborationPlugin','_singleActiveUnitService','size','SNAPSHOT_SERVER_URL_KEY','method','onPointerEnter$','_transformService','joinRsp','authzUrl','defIds','onSyncEditingCollabCursor','triggerDblclick','textRanges','findNodePositionByCharIndex','InsertRangeMoveRightCommandId','requestParams','collabStatus.syncing','10QObxlx','@univerjs/core','_selfUnitIDs','_entities','_handler','workbook','saveSnapshot','PERMISSION_DENIED','_transitionLocked','_acknowledgedAwaitingChangeset','getMergeData','_listenToOfflineEvent','ITransformService','LocalUndoRedoService','onlineStatusTitle','m2Prime','updatePermissionObjEvent','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','Error','_collaborationController','_http','duration','isActive','session','_messageService','SetSelectionsOperation','_getAnchorBounding','syncEditingCollabCursor','@univerjs/sheets','get','ILogService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getUnitOnRev','_syncEditingCollabCursorService','YUUMI_RATE_OVER_LIMIT','_beforeCloseService','getAllMembers','registerRefRange','_HTTPService','[CollaborationState]:\x20apply\x20error!','body','_submitChangeset','collab-text-anchor-','awaitingChangeset','includes','readAsDataURL','shouldCloseConn','localeService','debounceTime','getDocRanges','/allowed','SNAPSHOT_INVALID_SNAPSHOT','_localeService','collaboration.single-unit.warning','USERS_ENTER','transform','_sendHeartbeatTimer','MessageType','_collabCursorController','collaborators','_getCurrentRevision','_remoteChangesetQueue','SEND_CHANGESET_TIMEOUT','subscribe','socketService','put','_handleHover','reject','LOCAL_CACHE_INTERVAL','OffLineSingle','RichTextEditingMutation','SheetCollaborationEntity','_getAPIPrefixPath','_textBubble','deserializeRangeWithSheet','_decreaseWaiting','_onRefRangeChange','handleDeleteRangeMoveUp','[CollaborationEntity]','/universer-api/file/{fileID}/sign-url','_event$','_drawTextRange','responseType','pending','getDeserializedSheetBlock','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','&assign=','onSendChangeset','getUndoRedoMutationParamsCache','VIEW_MAIN','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','delete','image/jpeg','_unitID','xlink:href','save\x20fail\x20reason\x20is\x20','parseProtocolChangeset','max','startColumn','url(#off-line-single_clip0_910_343)','_clearScheduledTask','collabStatus.fetchMiss','string','socket\x20close','COLLAB_SUBMIT_CHANGESET_URL','_updateURLWithCurrentState','status$','useCallback','_disableEditing','_colorIndex','type','ALREADY_EXISTS','HEARTBEAT_TIMEOUT','serializeRangeWithSheet','UNIVER_SHEET','target','range','NOT_COLLAB','onlineStatus','SheetCollabCursorShape','conflict.title','2405934KoCDGi','url(#on-line-single_clip0_910_349)','_tryEnsureSocket','_transformSelections','[PendingState]:\x20received\x20rejection.','merge','location','ThresholdInterceptorFactory','div','Disposable','length','UUID','UNAUTHENTICATED','startTime','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_timeoutTimer','_createInitialStateImpl','_handleEvent','_transformUndoredo','bind','CollaborationEvent','AWAITING','onRemoteAck','_cursor','getFocusedUnit','requireSession','_onJoinRoomEvent','[CollaborationSessionService]:\x20socket\x20error','_collaborationSessionService','colorChannel1','IBeforeCloseService','override','_univerInstanceService','SNAPSHOT_HAS_BEEN_REMOVED','hasOwnProperty','baseRev','_labelPosition','off-line-single_clip0_910_343','getOffsetConfig','@univerjs-pro/license','getCollabCursors$','Subject','unknown','_initCommandExecutedListener','telemetry\x20info\x20is\x20not\x20initialized','Univer','univer-pro.collaboration-client-socket-service','forEach','_sheetSkeletonManagerService','YUUMI_UNABLE_LOAD_URL','COMMENT_UPDATE','_clearCollaborationTimeoutTimer','RECT','FileId','transformSelections','shareReplay','NodePositionConvertToRectRange','&to=','row','_updateStatus','_transformIMECache','DocCollaborationEntity','removeMember','online','_getSnapshotAPIPrefix','url','getOwnPropertySymbols','drawWith','apply','Tooltip','onMissingChangesets','copyFileMeta','onTransformIME','roomMembers','startsWith','registerBeforeClose','_collaborationTimeoutTimer','newCsEvent','OFFLINE','INGEST','skeleton','univer-online-status','_getDownloadEndpointURL','RECV','setShapeProps','_roomMembers$','_updateCollabCursors','NOT_FOUND','_initResize','create','0\x200\x2017\x2016','_resendWithTimeout','concat','INTERNAL_ERROR','updateOfflineData','isPermissionRej','getTime','COMPLETION_FINISHED','APPLY_NON_SEQUENTIAL_REVISION','setConfig','_tryReconnect','on-line-single_clip0_910_349','toggleOnline','getCurrentUser','_entityInit$','InsertSheetMutation','extend','setParam','_refreshCollabCursors','_listenToOnlineEvent','session.room-full','ICommandService','COLLAB_WEB_SOCKET_URL','getCurrentRevOfUnit','/universer-api/comb','_resendTimer','@univerjs/docs','_ensureSubject','_getSendChangesetTimeout','Rectangle','debounce','collabSubmitChangesetUrl','_renderManagerService','POST','[CollaborationUndoRedoService]','sheetID','unsubscribe','_transformUndoRedoStack','editing\x20status\x20changed\x20to','roomInfos','disableLocalCache','lineTo','JOIN','1em','sendChangesetTimeout','hovered','width','key','displayName','getRenderById','getCollabEntity','getAncestorScale','session.will-retry','_undoStacks','hide','_removeRoom','CHANGESET_ACK','_shapes','_socketMessageSubscription','/new_changes','Shape','getUniverSheetInstance','LIVESHARE_OPERATION','SetTextSelectionsOperation','UNIVER_DOC','WorkbookEditablePermission','_retryConnectingTimer','_send','_sessionStatus$','_showConflictNotification','_applyRemoteChangeset','fromEvent','_name','_scheduleTimestamp','takeUntil','_scheduleHeartbeat','parseChangesetToProtocol','retryConnectingInterval','fetchMiss','SetWorksheetActivateCommand','_anchorDot','addEventListener','SUBMIT_CHANGESET','_loadSheet','_collabCursorState$','_onRemoteRejected','replace','_clearUndo','_updateSubUnitFromURLParams','clear','collaboration_new_changeset','_scene','_clearLocalCache','/universer-api/stream/file/upload','now','0\x200\x2016\x2016','@univerjs/docs-ui','_userManagerService','post','_isPermissionRej','csAckEvent','getWorkbookSelections','has','textEncoder','subscribeEvent','SessionStatus','_init','560934EpZgCv','LIVESHARE_FETCH_OPERATIONS','_telemetryService','saveChangeset','current','none','result','_sessions','init','NodePositionConvertToCursor','_members','?size=','uni.network.url-service','revision','close$','getTypeOfUnitAdded$','_saveCache','_collabSessionService','catch','JOINING','send','getCollabEntity$','defs','getColor','Undefined','ERROR_IMAGE','IMessageService','_onRemoteRetry','addObjects','_throwTelemetryCollaborationNewChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','LOGIN_URL_KEY','setCurrentUser','CollaborationSocketService','MoveRangeCommandId','searchParams','text','LocaleService','_unitOnClients','_handleHeartbeatEvent','updatePermissionPoint','getRoom','state$','_removeClearOtherTimer','Optional','enableLocalCache','1890972Qtnzpj','interceptor','_config','_backgroundColor','_onLocalMutation','prototype','history','collab-text-range-','registerComponent','cmd','_localCacheService','sheets','collabWebSocketUrl','UNIVER_COLLABORATION_CLIENT_PLUGIN','then','signUrlServerUrl','every','_initRequestHeader','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','batchAllowed','onload','IRemoteInstanceService','_waitForHeartbeatResponse','collaboration.closeRoom','_candidateSocket','originalMeta','/fetchmissing?from=','CommandType','makeDirty','_onRemoteChangeset','_hovered','SYNCED','react','list','_cachedData','CONFLICT','image/gif','createIdentifier','rng','_rescheduleHeartbeat','UPDATE_PERMISSION_OBJ','IContextService','handleDeleteRangeMoveLeft','/object','setItem','onStateChange','_docTransformSelectionsService','useObservable','Injector','getVpScrollXYInfoByPosToVp','unitID','TEXT','_socket','x-univer-host','EffectRefRangId','CHANGESET_REJ','complete','conflict.content','_handleLeaveEvent','evenodd','collab-rect-range-','/collaborator','...','_executeRemoteChangeset','_changesetReqId','DocSelectionManagerService','transformChangesets','_context','#fff','setTimeout','moveTo','SnapshotServerOverHTTPService','PSEUDO_FETCH_MISSING_RESULT','_removeCollabCursors','url(#$1','SheetSkeletonManagerService','_initModules','transformUndoRedo','/block/','EmptyMutation','_refRangeService','editingUnit','_clearOtherTimers','selections','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','onStarting','RegularPolygon','ws://127.0.0.1:8000/universer-api/comb/connect','saveImage','urlChange$','_clearHeartbeatTimer','idSuffix','csShouldRetryEvent','_waitCount','patch','onTransformChange$','@univerjs/drawing','UNKNOWN_CODE','message$','session.collaboration-timeout','?url=','unitId','_assignedColors','mapTo','children','listRoles','_eventUnsubscribe','&source=','Workbook','CHANGESET_REVISION_CONFILICT','update','red300','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','createSocket','collaMsg','docStateChange$','_scheduleSaving','registerOnClose','_getAPIPrefix','currentSkeleton$','NEW_CHANGESETS','disposeUnit','_state$','setAlpha','_status$','_drawRectRange','ranges','AuthzIoHttpService','getUnitStatus$','open$','getSheetObject','getViewport','MergeInterceptorFactory','toLowerCase','FromArray','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','blue400','popstate','_registerRenderDependencies','CollaborationSessionService','setUndoRedoMutationParamsCache','_hideTimer','LEAVE','_themeService','[CollaborationSession]','ImageSourceType','_revisionService','c1Prime','pluginName','_onCursorUpdate','_telemetryInfo','_notificationService','transformMutationsWithChangeset','all','getMember','transformIMECache','RevisionService','code','Tools','_socket$','FETCH_MISS','closePath','_onConnectionOpen','_setupBeforeClosingHandler','_onUserLeave','10EkPJaq','purple300','ONLINE','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_onCombEvent','_scheduleClearOtherTimer','DesktopCollaborationStatusDisplayController','/-/object/list','LIVESHARE_REQUEST_HOST','onRendered','NO_OTHER_CLIENTS_EDITING','submit\x20changeset\x20error!','EXCHANGE_SIGN_URL_SERVER_URL_KEY','UniverInstanceType','IDLE','origin','setShowComponents','bottom','entries','_snapshotServerService','8869VoHWXC','mergeOverrideWithDependencies','Unknown\x20user','_replayCachedMutations','_roomMembers','CHANGESET_SHOULD_RETRY','TOO_MANY_REQUESTS','{fileID}','transformByState','VIEWPORT_KEY','switchMap','symbol','_clearTimeoutTimer','storage','JSONX','state','SnapshotService','LICENSE_DISTRO_REJECTED','_sendHeartbeat','isTransformChangesetsSuccess','1185066KWSQHS','userID','useRef','UPDATE_CURSOR','_createInitialState','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','exhaustSavingTask','function','_updateLocalCursor','_exhaustRemoteChangesetQueue','getValue','closeSession','LOCAL_CACHE_INTERVAL_KEY','error$','unit-cache-','\x20in\x20_schedule.','COLLAB_WEB_SOCKET_URL_KEY','_startDocCollabCursor','_unlockTransition','_onConnectionFailed','action','MemberService','beginPath','round','fill','show','CollaborationSession','clearInterval','awaiting','_collaborationPaused','pushState','updateMember','/-/object/-/batch_allowed','ImageIoService','onlyLocal','objectID','liveShareNewHost','refreshPermission','SHOULD_CLOSE_CONN','onPointerMove$','onRemoteRetry','eventID','IConfigService','getUnitId','conflict','stringify','UNIVER_SLIDE','getUnitType','toRgbString','DisposableCollection','COMPRESS_MUTATION_APPLY','concatMap','find','selection','off-line-single','_online','title','random','combineLatest','data','call','INotificationService','_getMergeRange','resolve','useDependency','_urlService','SEND_CHANGESET_TIMEOUT_KEY','_memberService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ThemeService','enableOfflineEditing','getSheetBySheetId','_onUserJoin','_sendingTimer','_resendTimeout','slice','rxjs/operators','_toggleOffline','IImageIoService','engine','20331PCuNSz','event$','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','gold400','isTransformMutationsWithChangesetSuccess','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','resourceIDs','permissionRejEvent','IUndoRedoService','getImageSourceCache','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_onOffline','InsertRowCommandId','_updateLocalCache','deserializeToCombResponse','_transformPreviousActiveRange','_onRecvEvent','sid','objects','failed\x20to\x20apply\x20missed\x20changesets!','params','UniverCollaborationClientPlugin','MUTATION','_cursorShapes','_initCloseConn','TEXT_RANGE_LAYER_INDEX','getMemberID','SheetsSelectionsService','_commandService','registerRenderModule','FAIL','LocalCacheService','onCommandExecuted','allowed','take','_initMergeInterceptor','toggleOffline','_pendingMutations','values','subunit','endColumn','from','_stopTelemetryCollaborationNewChangeset','changesets','UserManagerService','currentTheme$','whenReady','color','42MCrrwh','_replaceFileID','getActiveRange','_getSheetObject','hidden','_startTelemetryCollaborationNewChangeset','asObservable','enableAuthServer','getParam','2096ZSuKci','offline','AWAITING_WITH_PENDING','tag','COLLAB_SUBMIT_CHANGESET_URL_KEY','name','\x20to\x20','getOwnPropertyDescriptor','univer-pro.collaboration-client.single-active-unit-service','_drawAnchor','fetch_missing','Rect','onPointerLeave$','_awaitingChangeset','awaiting_with_pending','_startSheetCollabCursor','status','_lastPointer','_localStorageService','split','onTransformSelections','reconnect','sessionStatus','_saveTaskMap','className','YUUMI_URL_COL_OUT_OF_RANGE','snapshot','removeParam','compose','icon','subUnitId','currentColor','dispose','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','mapDocumentTypeToUniverType','LICENSE_EXPORT_SIZE_EXCEEDED','encodeURIComponent','_change$','liveShareOperation','error','_range','_updateState','RefRangeService','actions','path','LICENSE_MAX_UNITS_EXCEEDED','CollaborationController','ColorKit','restore','withCredentials','c2Prime','_socketReady','members','_state','getConfig','roomMembers$','number','InsertColCommandId','ENSURE_SNAPSHOT_EXECUTION','transformRemoteChangeset','newValue','_transformStack','_onMessage','connection\x20error','arc','attrs','confirm','_joinRoom','createInstance','loadOfflineData','_getSignURL','Vector2','_hover','createElement','m1Prime','RxDisposable','LICENSE_IMPORT_SIZE_EXCEEDED','file','src','_colorAssignService','fillStyle','_startCollaboration','SUCCUSS','getActiveSheet','_socketService','@univerjs/telemetry','_cursors','\x20-\x20','toString','_changesetSessionId','top','_getUndoStack','pipe','RemoveRowCommandId','_heartbeatTimer','_createHandler','next','_onFetchMissResult','WebURLService','getLatestCsReqIdBySid','collabStatus.synced','close','executeCommand','_getLoginPath','indexOf','font','HTTPRequest','_queuedRemoteChangesets','reduce','COLORS','/unit/','_getSaveTimeout','_type','_id','href','_onRemoteACK','image/jpg','runRefRangeMutations','UNRECOGNIZED','clipPath','isTransformMutationFailure','INVALID_ARGUMENT','_draw','_imageSourceCache','_shouldReportTelemetry','rgba(255,\x20255,\x20255,\x200.01)','DOC_RANGE_TYPE','handleMoveRange','rev','trim','_handleJoinEvent','serializeCombRequest','UNKNOWN_CMD','YUUMI_SUBSCRIPTION_NOT_FOUND','[FetchMissState]','_ws','_redoStacks','doc.mutation.rich-text-editing','ITelemetryService','_initStatusComponent','generateRandomId','sheetId','isEditing','getSheetBlock','resend','onMouseMove','setInterval','ImageUploadStatusType','debug','ICollaborationSocketService','reqId','column','unload','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','synced','DocIMEInputManagerService','_disabled','MSG_FOR_ERROR','_docTransformIMECacheService','saveSheetBlock','transformStack\x20failed!','_permissionService','mutations','APPLY_REJECT','dispose$','FETCH_MISSING','DeleteRangeMoveUpCommandId','unshift','HEARTBEAT_INTERVAL','_getRedoStack','IURLService','assign','onMissedChangesetFetched','fetchMissingChangesets','objectType','sessionStatus$','onTransformRemoteChangesetByIMECache','_session','onCommentUpdate','loginUrlKey','_initEventListeners','_snapshotService','USERS_LEAVE','_sender','HEARTBEAT','_scheduleCollaborationTimeoutTimer','_anchor','deepClone','UNIVER_UNKNOWN','save','onReady','getCurrentSelections','resize','addObject','min','[PendingState]:\x20received\x20acknowledgement.','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','auth.needGotoLoginAlert','push','getRangePointData','putCollaborators','Plugin','getInterceptPoints','onRemoteChangeset','IUniverInstanceService','_toggleOnline','[CollaborationSessionService]','_initStatusListener','toStringTag','IRenderManagerService','memberID','@univerjs/engine-formula','_getCtorByUniverType','parse','_docSkeletonManagerService','black','getItem','disposeWithMe','replaceState','_setupSubUnitSync','_uiPartsService','_substituteUndoStack','handleInsertRangeMoveRight','visibilitychange','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','map','downloadEndpointUrl','AUTHZ_URL_KEY','_sheetTransformSelectionsService','LIVESHARE_TERMINATE','HELLO','_substituteRedoStack','stopTime','[UniverCollaborationClientPlugin]','some','cursorInfo','setActiveRange','filter','_onConflict','_incrementRevisionNumber','UnitEmbedded','PERMISSION_REJ','HTTPService','getCurrent','toDisposable','CollaborationEntity','defineProperty'];_0xac00=function(){return _0x2c8b86;};return _0xac00();}var xt=Object[_0x3b57cd(0x44e)],wn=Object[_0x3b57cd(0x35f)],Nn=(_0x4383ae,_0x39430d,_0x226563)=>_0x39430d in _0x4383ae?xt(_0x4383ae,_0x39430d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x226563}):_0x4383ae[_0x39430d]=_0x226563,Mn=(_0x24003e,_0x27a6c0,_0x58a17d,_0x2dd83a)=>{const _0x5c3c81=_0x3b57cd;for(var _0x3cf6b2=_0x2dd83a>0x1?void 0x0:_0x2dd83a?wn(_0x27a6c0,_0x58a17d):_0x27a6c0,_0x38c2ca=_0x24003e[_0x5c3c81(0x54c)]-0x1,_0x15775a;_0x38c2ca>=0x0;_0x38c2ca--)(_0x15775a=_0x24003e[_0x38c2ca])&&(_0x3cf6b2=(_0x2dd83a?_0x15775a(_0x27a6c0,_0x58a17d,_0x3cf6b2):_0x15775a(_0x3cf6b2))||_0x3cf6b2);return _0x2dd83a&&_0x3cf6b2&&xt(_0x27a6c0,_0x58a17d,_0x3cf6b2),_0x3cf6b2;},ge=(_0x2b2380,_0x6c8d2c)=>(_0x392c81,_0x50b116)=>_0x6c8d2c(_0x392c81,_0x50b116,_0x2b2380),An=(_0x5595ea,_0x2911f6,_0x20dbaa)=>Nn(_0x5595ea,_0x2911f6+'',_0x20dbaa);const Ln=_0x3b57cd(0x20f);exports[_0x3b57cd(0x334)]=class extends a[_0x3b57cd(0x421)]{constructor(_0x1edb53=os,_0x2cc9bd,_0x1fe720,_0x50116d,_0x655df4){const _0x285207=_0x3b57cd;super(),this[_0x285207(0x204)]=_0x1edb53,this[_0x285207(0x45c)]=_0x2cc9bd,this['_renderManagerService']=_0x1fe720,this['_injector']=_0x50116d,this[_0x285207(0x490)]=_0x655df4;const {..._0x58cab1}=this[_0x285207(0x204)];this[_0x285207(0x490)][_0x285207(0x172)]($,_0x58cab1);}[_0x3b57cd(0x257)](){const _0x2ff300=_0x3b57cd;this[_0x2ff300(0x45a)](),a['touchDependencies'](this[_0x2ff300(0x486)],[[oe],[exports[_0x2ff300(0x4a8)]],[Te]]);}[_0x3b57cd(0x416)](){const _0x15be79=_0x3b57cd;a['touchDependencies'](this[_0x15be79(0x486)],[[Ce]]);}[_0x3b57cd(0x2b0)](){const _0x9a0fe6=_0x3b57cd;this[_0x9a0fe6(0x28c)]();}['_registerDependencies'](){const _0x5aafb3=_0x3b57cd;var _0x22f782,_0x1cf9db,_0x55b0ef,_0x16fe05;this[_0x5aafb3(0x486)][_0x5aafb3(0x1cf)](a[_0x5aafb3(0x327)])&&this[_0x5aafb3(0x45c)][_0x5aafb3(0x37f)](_0x5aafb3(0x441),_0x5aafb3(0x289));let _0x7746a4=[[a[_0x5aafb3(0x327)],{'useClass':We}],[exports[_0x5aafb3(0x28d)]],[ze],[U[_0x5aafb3(0x44a)]],[Ze,{'useClass':Ht}],[exports[_0x5aafb3(0x2e4)]],[exports[_0x5aafb3(0x33e)]],[U[_0x5aafb3(0x483)]],[Ie],[pe],[fe],[Xe],[Ee],[be],[Ke],[Te],[Ye,{'useClass':(_0x1cf9db=(_0x22f782=this[_0x5aafb3(0x204)])==null?void 0x0:_0x22f782[_0x5aafb3(0x509)])!=null?_0x1cf9db:exports[_0x5aafb3(0x1f5)]}],[U['IHTTPImplementation'],{'useClass':U['XHRHTTPImplementation']}],[_[_0x5aafb3(0x4aa)],{'useClass':exports[_0x5aafb3(0x249)]}],[a['IAuthzIoService'],{'useClass':exports[_0x5aafb3(0x281)]}],[j[_0x5aafb3(0x31d)],{'useClass':exports[_0x5aafb3(0x2f0)]}],[exports[_0x5aafb3(0x386)]],[exports[_0x5aafb3(0x4a8)]],[exports['DesktopCollaborationStatusDisplayController']],[Ce],[oe]];(_0x55b0ef=this[_0x5aafb3(0x204)])!=null&&_0x55b0ef[_0x5aafb3(0x49a)]&&_0x7746a4[_0x5aafb3(0x41e)]([Re,{'useClass':Hs}]),_0x7746a4=a[_0x5aafb3(0x2bc)](_0x7746a4,(_0x16fe05=this[_0x5aafb3(0x204)])==null?void 0x0:_0x16fe05[_0x5aafb3(0x561)]),_0x7746a4['forEach'](_0x235fb6=>this[_0x5aafb3(0x486)][_0x5aafb3(0x477)](_0x235fb6)),this[_0x5aafb3(0x24e)]();}['_registerRenderDependencies'](){const _0x2ee828=_0x3b57cd;this['disposeWithMe'](this['_renderManagerService'][_0x2ee828(0x33c)](a[_0x2ee828(0x2b4)]['UNIVER_DOC'],[Be])),this[_0x2ee828(0x431)](this['_renderManagerService'][_0x2ee828(0x33c)](a[_0x2ee828(0x2b4)]['UNIVER_SHEET'],[Ve]));}[_0x3b57cd(0x24e)](){const _0x5e01ac=_0x3b57cd;var _0x184b0c,_0x345f58;this[_0x5e01ac(0x486)]['get'](U[_0x5e01ac(0x44a)])[_0x5e01ac(0x499)]({'priority':0x14,'interceptor':U[_0x5e01ac(0x549)]({'maxParallel':0x6})}),this[_0x5e01ac(0x486)][_0x5e01ac(0x4e6)](be),(_0x184b0c=this[_0x5e01ac(0x204)])!=null&&_0x184b0c[_0x5e01ac(0x315)]||this[_0x5e01ac(0x486)][_0x5e01ac(0x4e6)](exports[_0x5e01ac(0x33e)])[_0x5e01ac(0x191)](),(_0x345f58=this[_0x5e01ac(0x204)])!=null&&_0x345f58[_0x5e01ac(0x356)]&&this['_injector'][_0x5e01ac(0x4e6)](Ee),this[_0x5e01ac(0x486)]['get'](exports[_0x5e01ac(0x386)]),this[_0x5e01ac(0x486)][_0x5e01ac(0x1cf)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x5e01ac(0x486)][_0x5e01ac(0x4e6)](exports[_0x5e01ac(0x2ad)]);}},An(exports[_0x3b57cd(0x334)],_0x3b57cd(0x296),Ln),exports['UniverCollaborationClientPlugin']=Mn([a[_0x3b57cd(0x498)](_[_0x3b57cd(0x4b8)]),ge(0x1,a['ILogService']),ge(0x2,O[_0x3b57cd(0x429)]),ge(0x3,a[_0x3b57cd(0x4ad)](a[_0x3b57cd(0x232)])),ge(0x4,a[_0x3b57cd(0x2f9)])],exports['UniverCollaborationClientPlugin']),exports[_0x3b57cd(0x43b)]=jt,exports[_0x3b57cd(0x35c)]=pt,exports[_0x3b57cd(0x2df)]=vt,exports['CollaborationStatus']=D,exports['CollaborationStatusDisplay']=$t,exports['CommentService']=Ke,exports[_0x3b57cd(0x4ae)]=mt,exports['HEARTBEAT_TIMEOUT_KEY']=Fe,exports[_0x3b57cd(0x3ed)]=Ye,exports[_0x3b57cd(0x402)]=Ze,exports[_0x3b57cd(0x2db)]=It,exports[_0x3b57cd(0x1f3)]=Ct,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=ft,exports[_0x3b57cd(0x311)]=Jt,exports['SNAPSHOT_SERVER_URL_KEY']=dt,exports[_0x3b57cd(0x4ab)]=St,exports[_0x3b57cd(0x1d2)]=x,exports[_0x3b57cd(0x540)]=wt,exports[_0x3b57cd(0x3ba)]=Ht,exports[_0x3b57cd(0x32d)]=Tt,exports[_0x3b57cd(0x3db)]=Rt;
|