@univerjs-pro/collaboration-client 0.4.0-nightly.202410141110 → 0.4.0-nightly.202410151606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3b22f=_0x2c53;(function(_0x542c55,_0x381953){const _0x2f8498=_0x2c53,_0x21ef96=_0x542c55();while(!![]){try{const _0x4a1877=parseInt(_0x2f8498(0x5bb))/0x1+-parseInt(_0x2f8498(0x493))/0x2+-parseInt(_0x2f8498(0x24d))/0x3+parseInt(_0x2f8498(0x500))/0x4+parseInt(_0x2f8498(0x454))/0x5+parseInt(_0x2f8498(0x485))/0x6*(-parseInt(_0x2f8498(0x393))/0x7)+parseInt(_0x2f8498(0x2c7))/0x8*(parseInt(_0x2f8498(0x596))/0x9);if(_0x4a1877===_0x381953)break;else _0x21ef96['push'](_0x21ef96['shift']());}catch(_0x3655a1){_0x21ef96['push'](_0x21ef96['shift']());}}}(_0x1d05,0xb9f87));var kt=Object[_0x3b22f(0x1ff)],Bt=(_0x24d878,_0x5b5829,_0x24ba3c)=>_0x5b5829 in _0x24d878?kt(_0x24d878,_0x5b5829,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24ba3c}):_0x24d878[_0x5b5829]=_0x24ba3c,d=(_0x5dbfcf,_0x48ff5d,_0x4320a9)=>Bt(_0x5dbfcf,typeof _0x48ff5d!='symbol'?_0x48ff5d+'':_0x48ff5d,_0x4320a9);Object[_0x3b22f(0x1ff)](exports,Symbol[_0x3b22f(0x545)],{'value':_0x3b22f(0x2a7)});const a=require(_0x3b22f(0x3f8)),v=require(_0x3b22f(0x25b)),E=require(_0x3b22f(0x4af)),X=require(_0x3b22f(0x1ec)),N=require('@univerjs/ui'),P=require(_0x3b22f(0x384)),_=require(_0x3b22f(0x23a)),Vt=require(_0x3b22f(0x49c)),V=require(_0x3b22f(0x1f9)),w=require(_0x3b22f(0x591)),C=require(_0x3b22f(0x473)),R=require(_0x3b22f(0x3cf)),L=require(_0x3b22f(0x3ed)),Je=require('@univerjs/engine-formula'),te=require('@univerjs/sheets-ui'),U=require(_0x3b22f(0x4e5)),Wt=require(_0x3b22f(0x2e0)),Ft=require(_0x3b22f(0x251)),ht=_0x3b22f(0x227),Gt=_0x3b22f(0x452),_t=_0x3b22f(0x367),Yt='SEND_CHANGESET_TIMEOUT',Kt=0x7d0,ut=_0x3b22f(0x2da),Xt=_0x3b22f(0x32f),dt=_0x3b22f(0x488),qt=0x7530,Ve=_0x3b22f(0x4b7),St=0x4e20,zt=0x4e20,vt=_0x3b22f(0x56a),Jt=0x3,ft=_0x3b22f(0x296),Zt=0x3e8,gt=_0x3b22f(0x4a8),Qt=_0x3b22f(0x39b),mt='LOGIN_URL_KEY',es=_0x3b22f(0x365);var It=(_0x3b0409=>(_0x3b0409[_0x3b0409[_0x3b22f(0x517)]=0x0]='UNDEFINED',_0x3b0409[_0x3b0409['OK']=0x1]='OK',_0x3b0409[_0x3b0409[_0x3b22f(0x512)]=0x2]=_0x3b22f(0x512),_0x3b0409[_0x3b0409[_0x3b22f(0x3a7)]=0x3]='PERMISSION_DENIED',_0x3b0409[_0x3b0409[_0x3b22f(0x402)]=0x4]=_0x3b22f(0x402),_0x3b0409[_0x3b0409['UNAUTHENTICATED']=0x5]=_0x3b22f(0x380),_0x3b0409[_0x3b0409[_0x3b22f(0x4e3)]=0x6]=_0x3b22f(0x4e3),_0x3b0409[_0x3b0409[_0x3b22f(0x201)]=0x7]=_0x3b22f(0x201),_0x3b0409[_0x3b0409[_0x3b22f(0x1fe)]=0x8]='TOO_MANY_REQUESTS',_0x3b0409[_0x3b0409[_0x3b22f(0x204)]=0x9]=_0x3b22f(0x204),_0x3b0409[_0x3b0409[_0x3b22f(0x275)]=0x1389]=_0x3b22f(0x275),_0x3b0409[_0x3b0409['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3b22f(0x232),_0x3b0409[_0x3b0409[_0x3b22f(0x433)]=0x1772]=_0x3b22f(0x433),_0x3b0409[_0x3b0409['APPLY_REJECT']=0x1b59]=_0x3b22f(0x2eb),_0x3b0409[_0x3b0409[_0x3b22f(0x470)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3b0409[_0x3b0409[_0x3b22f(0x4f9)]=0x1b5b]=_0x3b22f(0x4f9),_0x3b0409[_0x3b0409['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3b22f(0x430),_0x3b0409[_0x3b0409[_0x3b22f(0x56f)]=0x1f41]=_0x3b22f(0x56f),_0x3b0409[_0x3b0409['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3b22f(0x44d),_0x3b0409[_0x3b0409[_0x3b22f(0x587)]=0x232a]=_0x3b22f(0x587),_0x3b0409[_0x3b0409[_0x3b22f(0x2e4)]=0x232b]=_0x3b22f(0x2e4),_0x3b0409[_0x3b0409[_0x3b22f(0x2ae)]=0x232c]=_0x3b22f(0x2ae),_0x3b0409[_0x3b0409[_0x3b22f(0x5cc)]=0x232d]=_0x3b22f(0x5cc),_0x3b0409[_0x3b0409[_0x3b22f(0x54d)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3b0409[_0x3b0409['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3b0409[_0x3b0409[_0x3b22f(0x3c7)]=0x2713]=_0x3b22f(0x3c7),_0x3b0409[_0x3b0409[_0x3b22f(0x3a3)]=0x2714]=_0x3b22f(0x3a3),_0x3b0409[_0x3b0409['UNRECOGNIZED']=-0x1]=_0x3b22f(0x23f),_0x3b0409))(It||{}),j=(_0x5461ba=>(_0x5461ba[_0x5461ba[_0x3b22f(0x5c9)]=0x0]='UNIVER_UNKNOWN',_0x5461ba[_0x5461ba['UNIVER_DOC']=0x1]=_0x3b22f(0x332),_0x5461ba[_0x5461ba[_0x3b22f(0x3c0)]=0x2]=_0x3b22f(0x3c0),_0x5461ba[_0x5461ba[_0x3b22f(0x575)]=0x3]='UNIVER_SLIDE',_0x5461ba[_0x5461ba['UNIVER_PROJECT']=0x4]=_0x3b22f(0x5cf),_0x5461ba[_0x5461ba[_0x3b22f(0x23f)]=-0x1]='UNRECOGNIZED',_0x5461ba))(j||{}),b=(_0x25bb8e=>(_0x25bb8e[_0x25bb8e[_0x3b22f(0x362)]=0x0]=_0x3b22f(0x362),_0x25bb8e[_0x25bb8e[_0x3b22f(0x2bd)]=0x1]=_0x3b22f(0x2bd),_0x25bb8e[_0x25bb8e['JOIN']=0x2]=_0x3b22f(0x23b),_0x25bb8e[_0x25bb8e[_0x3b22f(0x2e6)]=0x3]=_0x3b22f(0x2e6),_0x25bb8e[_0x25bb8e['INGEST']=0x4]=_0x3b22f(0x4ef),_0x25bb8e[_0x25bb8e[_0x3b22f(0x233)]=0x5]='HEARTBEAT',_0x25bb8e[_0x25bb8e['RECV']=0x6]='RECV',_0x25bb8e[_0x25bb8e[_0x3b22f(0x23f)]=-0x1]=_0x3b22f(0x23f),_0x25bb8e))(b||{}),We=(_0xa48f7c=>(_0xa48f7c[_0xa48f7c['UNKNOWN_CODE']=0x0]=_0x3b22f(0x2a8),_0xa48f7c[_0xa48f7c['OK']=0x1]='OK',_0xa48f7c[_0xa48f7c[_0x3b22f(0x438)]=0x2]=_0x3b22f(0x438),_0xa48f7c[_0xa48f7c[_0x3b22f(0x23f)]=-0x1]='UNRECOGNIZED',_0xa48f7c))(We||{}),pt=(_0x2795c6=>(_0x2795c6[_0x2795c6['Undefined']=0x0]=_0x3b22f(0x317),_0x2795c6[_0x2795c6[_0x3b22f(0x4bf)]=0x1]=_0x3b22f(0x4bf),_0x2795c6[_0x2795c6['HttpExport']=0x2]='HttpExport',_0x2795c6[_0x2795c6[_0x3b22f(0x4bd)]=0x3]=_0x3b22f(0x4bd),_0x2795c6[_0x2795c6[_0x3b22f(0x4ba)]=0x4]=_0x3b22f(0x4ba),_0x2795c6[_0x2795c6['UNRECOGNIZED']=-0x1]=_0x3b22f(0x23f),_0x2795c6))(pt||{});const A='collaboration-client.config',ts={};function Ct(_0x3bf457){const _0x39daaf=_0x3b22f;var _0x2a2901,_0x1219a8,_0x123bab,_0x735a22;const _0x51b696=_0x3bf457[_0x39daaf(0x45b)],_0xe9cb32=JSON[_0x39daaf(0x4f1)](_0x51b696);switch(_0xe9cb32[_0x39daaf(0x4d4)]){case b[_0x39daaf(0x233)]:case b[_0x39daaf(0x2bd)]:{const _0x3ce738=_0xe9cb32[_0x39daaf(0x37e)];return{..._0xe9cb32,'data':_0x3ce738,'cmd':_0xe9cb32['cmd']};}case b[_0x39daaf(0x23b)]:{const _0x155ec7=_0xe9cb32[_0x39daaf(0x387)];return{..._0xe9cb32,'data':_0x155ec7,'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};}case b[_0x39daaf(0x2f0)]:{const _0x5ac54d=_0xe9cb32[_0x39daaf(0x2d7)];switch(_0x5ac54d[_0x39daaf(0x3cc)]){case _[_0x39daaf(0x44c)][_0x39daaf(0x4a2)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x2a2901=_0x5ac54d[_0x39daaf(0x5aa)])==null?void 0x0:_0x2a2901['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x428)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x1219a8=_0x5ac54d['csAckEvent'])==null?void 0x0:_0x1219a8['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['NEW_CHANGESETS']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x123bab=_0x5ac54d[_0x39daaf(0x27e)])==null?void 0x0:_0x123bab['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x36e)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x735a22=_0x5ac54d[_0x39daaf(0x408)])==null?void 0x0:_0x735a22['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x5b6)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x306)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['USERS_ENTER']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x436)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x51c)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x24e)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x5b7)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x5e6)]},'cmd':_0xe9cb32['cmd']};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x39daaf(0x44c)]['LIVESHARE_OPERATION']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x2e9)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x47b)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['liveShareNewHost']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['MSG_FOR_ERROR']:return{..._0xe9cb32,'data':_0x5ac54d,'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x431)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x5b0)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['UPDATE_PERMISSION_OBJ']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['updatePermissionObjEvent']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x50c)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['shouldCloseConn']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};default:return _0xe9cb32;}}default:return _0xe9cb32;}}function Et(_0x427781){const _0x4755b4=_0x3b22f;switch(_0x427781[_0x4755b4(0x4d4)]){case b['HEARTBEAT']:case b[_0x4755b4(0x2bd)]:return JSON['stringify']({'cmd':_0x427781['cmd'],'routeKey':_0x427781[_0x4755b4(0x32a)]});case b[_0x4755b4(0x4ef)]:{let _0x4f6ece;switch(_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x3cc)]){case _['CollaborationEvent'][_0x4755b4(0x5b6)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5b6)],'updateCursorEvent':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _['CollaborationEvent'][_0x4755b4(0x51c)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x51c)],'leaveEvent':_0x427781[_0x4755b4(0x45b)]['data']};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x3a6)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)]['USERS_ENTER'],'joinEvent':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _['CollaborationEvent'][_0x4755b4(0x5b7)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5b7)],'liveShareNewHost':_0x427781['data'][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)]['LIVESHARE_OPERATION']:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x427781['data']['data']};break;}case _['CollaborationEvent'][_0x4755b4(0x47b)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x47b)],'liveShareTerminate':_0x427781['data'][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x432)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x432)],'liveShareRequestHost':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x5db)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5db)]};break;}default:_0x4f6ece={'eventID':_0x427781[_0x4755b4(0x45b)]['eventID']};}return JSON[_0x4755b4(0x56d)]({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781['routeKey'],'collaMsg':_0x4f6ece});}case b[_0x4755b4(0x23b)]:return JSON[_0x4755b4(0x56d)]({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781['routeKey'],'joinReq':_0x427781[_0x4755b4(0x45b)]});case b[_0x4755b4(0x2e6)]:return JSON['stringify']({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781[_0x4755b4(0x32a)],'leaveReq':_0x427781[_0x4755b4(0x45b)]});default:throw new Error(_0x4755b4(0x4c7));}}var ss=Object[_0x3b22f(0x1ff)],is=Object[_0x3b22f(0x246)],ns=(_0x11a2ed,_0x2ae0c8,_0x596a5a,_0x8ded37)=>{const _0x506c3f=_0x3b22f;for(var _0x38a5c1=_0x8ded37>0x1?void 0x0:_0x8ded37?is(_0x2ae0c8,_0x596a5a):_0x2ae0c8,_0xd6724f=_0x11a2ed[_0x506c3f(0x291)]-0x1,_0x3aa1c6;_0xd6724f>=0x0;_0xd6724f--)(_0x3aa1c6=_0x11a2ed[_0xd6724f])&&(_0x38a5c1=(_0x8ded37?_0x3aa1c6(_0x2ae0c8,_0x596a5a,_0x38a5c1):_0x3aa1c6(_0x38a5c1))||_0x38a5c1);return _0x8ded37&&_0x38a5c1&&ss(_0x2ae0c8,_0x596a5a,_0x38a5c1),_0x38a5c1;},oe=(_0x3c0691,_0x46f825)=>(_0x12f522,_0x481c88)=>_0x46f825(_0x12f522,_0x481c88,_0x3c0691);const Fe=a[_0x3b22f(0x3cd)](_0x3b22f(0x2f8));function rs(_0x2dfe66,_0x1f63d9,_0x5a012e){const _0x2b4446=_0x3b22f;return _0x2dfe66+'/'+_0x1f63d9+_0x2b4446(0x37a)+_0x5a012e+_0x2b4446(0x33e);}exports[_0x3b22f(0x272)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x4e339c,_0x501391,_0x58a1d6,_0x39fa80,_0x1f65d6){const _0x3dbd5f=_0x3b22f;super(),this[_0x3dbd5f(0x220)]=_0x4e339c,this[_0x3dbd5f(0x2b3)]=_0x501391,this[_0x3dbd5f(0x266)]=_0x58a1d6,this[_0x3dbd5f(0x445)]=_0x39fa80,this[_0x3dbd5f(0x214)]=_0x1f65d6;}[_0x3b22f(0x3a1)](_0x4785a9){const _0xf5e52e=_0x3b22f,_0x3d7734=this[_0xf5e52e(0x2b3)][_0xf5e52e(0x3a1)](_0x4785a9);if(!_0x3d7734)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3c1e55=new a['DisposableCollection'](),_0x1318e1=new v[(_0xf5e52e(0x25f))]();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x324)]['subscribe'](_0x5ed026=>_0x1318e1[_0xf5e52e(0x52d)](_0x5ed026))),_0x3c1e55['add'](a['toDisposable'](()=>_0x1318e1[_0xf5e52e(0x2ec)]()));const _0x5f2ca0=new v['Subject']();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x505)][_0xf5e52e(0x42c)](_0x84bbd0=>_0x5f2ca0[_0xf5e52e(0x52d)](_0x84bbd0))),_0x3c1e55['add'](a['toDisposable'](()=>_0x5f2ca0[_0xf5e52e(0x2ec)]()));const _0x1b6752=new v[(_0xf5e52e(0x25f))]();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x1fa)]['subscribe'](_0x1b6071=>{const _0x1049d6=_0xf5e52e,_0x429724=Ct(_0x1b6071);_0x1b6752[_0x1049d6(0x52d)](_0x429724);})),_0x3c1e55[_0xf5e52e(0x405)](a['toDisposable'](()=>_0x1b6752[_0xf5e52e(0x2ec)]()));let _0x22e797;const _0x5874d3=()=>{const _0x11f8d=_0xf5e52e;_0x5f2ca0[_0x11f8d(0x52d)](new Event(_0x11f8d(0x5c4))),_0x1318e1['next'](new CloseEvent(_0x11f8d(0x5c4))),_0x22e797[_0x11f8d(0x3ec)]();};return _0x22e797={'memberID':'','close$':_0x1318e1[_0xf5e52e(0x56e)](),'error$':_0x5f2ca0[_0xf5e52e(0x56e)](),'open$':_0x3d7734[_0xf5e52e(0x486)],'message$':_0x1b6752[_0xf5e52e(0x56e)](),'send':_0x4a73e2=>{const _0x8cd0f7=_0xf5e52e;if(_0x4a73e2[_0x8cd0f7(0x4d4)]===b[_0x8cd0f7(0x4ef)]){if(_0x4a73e2['data'][_0x8cd0f7(0x3cc)]===_[_0x8cd0f7(0x44c)][_0x8cd0f7(0x5ac)]){this['_submitChangeset'](_0x22e797,_0x4a73e2[_0x8cd0f7(0x45b)])['catch'](_0x1b171f=>{const _0x5e942e=_0x8cd0f7;this[_0x5e942e(0x445)][_0x5e942e(0x49d)](_0x1b171f),_0x5874d3();});return;}if(_0x4a73e2['data'][_0x8cd0f7(0x3cc)]===_['CollaborationEvent'][_0x8cd0f7(0x2c1)]){const _0x5be338=_0x4a73e2[_0x8cd0f7(0x45b)];this[_0x8cd0f7(0x269)](_0x5be338)[_0x8cd0f7(0x395)](_0x3aa016=>{const _0x235ac=_0x8cd0f7;_0x1b6752[_0x235ac(0x52d)]({'cmd':b[_0x235ac(0x2f0)],'code':We['OK'],'routeKey':_0x5be338[_0x235ac(0x45b)][_0x235ac(0x40e)],'routeType':'','data':{'eventID':_[_0x235ac(0x44c)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x3aa016}}});})[_0x8cd0f7(0x3c9)](_0xa2bc4c=>{const _0x4ccfb2=_0x8cd0f7;this[_0x4ccfb2(0x445)]['error'](_0xa2bc4c),_0x5874d3();});return;}}_0x3d7734[_0x8cd0f7(0x3c5)](Et(_0x4a73e2));},'close':()=>{const _0x23c50c=_0xf5e52e;_0x3d7734[_0x23c50c(0x3ec)](),_0x3c1e55[_0x23c50c(0x4f2)]();}},_0x22e797;}async[_0x3b22f(0x43c)](_0x512d74,_0x543f42){const _0x106995=_0x3b22f;var _0x8b63e3,_0x21ab0e;const {unitType:_0x359b89,unitID:_0x2b6504,changeset:_0x2dc7e3}=_0x543f42['data'],_0x32b0a7={'unitID':_0x2b6504,'memberID':_0x512d74[_0x106995(0x598)],'type':_0x359b89,'changeset':_[_0x106995(0x5e3)](_0x2dc7e3)},_0x503400=this[_0x106995(0x266)][_0x106995(0x504)](gt),_0x2bdac7=this['_configService'][_0x106995(0x504)](A),_0x20428e=rs((_0x21ab0e=(_0x8b63e3=_0x2bdac7==null?void 0x0:_0x2bdac7[_0x106995(0x4e4)])!=null?_0x8b63e3:_0x503400)!=null?_0x21ab0e:Qt,_0x359b89,_0x2b6504);try{await this['_http'][_0x106995(0x221)](_0x20428e,{'body':_0x32b0a7});}catch(_0x16310a){throw this[_0x106995(0x445)]['error'](_0x106995(0x3e7),_0x106995(0x5b5)),_0x16310a;}}async[_0x3b22f(0x269)](_0xf9977d){const _0x18686b=_0x3b22f,{unitID:_0x268aaa,from:_0x5e0560,to:_0x5b50ee,unitType:_0x5c3842}=_0xf9977d[_0x18686b(0x45b)];return(await this[_0x18686b(0x214)][_0x18686b(0x5c2)]({'metadata':void 0x0},{'unitID':_0x268aaa,'type':_0x5c3842,'from':_0x5e0560,'to':_0x5b50ee}))[_0x18686b(0x528)];}},exports['CollaborationSocketService']=ns([oe(0x0,a[_0x3b22f(0x492)](P[_0x3b22f(0x5ae)])),oe(0x1,a[_0x3b22f(0x492)](P['WebSocketService'])),oe(0x2,a[_0x3b22f(0x5ad)]),oe(0x3,a['ILogService']),oe(0x4,_[_0x3b22f(0x2ce)])],exports[_0x3b22f(0x272)]);const os=_0x3b22f(0x50d);function as(_0x50bc8c){const _0x16272e=_0x3b22f;return JSON[_0x16272e(0x56d)](_0x50bc8c)['length'];}class Ge{constructor(){const _0x17da58=_0x3b22f;d(this,'_commentUpdate$',new v[(_0x17da58(0x25f))]()),d(this,_0x17da58(0x5df),this['_commentUpdate$'][_0x17da58(0x56e)]());}[_0x3b22f(0x3f6)](_0x5ed6b8){const _0x4fc529=_0x3b22f;this[_0x4fc529(0x1ee)][_0x4fc529(0x52d)](_0x5ed6b8);}}var cs=Object[_0x3b22f(0x1ff)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x200362,_0x309f93,_0x59004b,_0x39614b)=>{const _0x229d40=_0x3b22f;for(var _0x2bd977=_0x39614b>0x1?void 0x0:_0x39614b?ls(_0x309f93,_0x59004b):_0x309f93,_0x3e7add=_0x200362[_0x229d40(0x291)]-0x1,_0x30975f;_0x3e7add>=0x0;_0x3e7add--)(_0x30975f=_0x200362[_0x3e7add])&&(_0x2bd977=(_0x39614b?_0x30975f(_0x309f93,_0x59004b,_0x2bd977):_0x30975f(_0x2bd977))||_0x2bd977);return _0x39614b&&_0x2bd977&&cs(_0x309f93,_0x59004b,_0x2bd977),_0x2bd977;},Ze=(_0x428da7,_0x385df1)=>(_0x1f8fc3,_0x257734)=>_0x385df1(_0x1f8fc3,_0x257734,_0x428da7);let q=class extends a[_0x3b22f(0x4b0)]{constructor(_0x536e12,_0x45edb2){const _0x36155f=_0x3b22f;super(),d(this,_0x36155f(0x469),new Map()),(this[_0x36155f(0x340)]=_0x536e12,this[_0x36155f(0x437)]=_0x45edb2,this[_0x36155f(0x283)](a[_0x36155f(0x526)](v[_0x36155f(0x2c4)](this['_univerInstanceService'][_0x36155f(0x24f)](a[_0x36155f(0x38e)]['UNIVER_SHEET'])['pipe'](E['map'](_0x397def=>_0x397def[_0x36155f(0x52b)]())),this[_0x36155f(0x340)][_0x36155f(0x24f)](a[_0x36155f(0x38e)][_0x36155f(0x332)])[_0x36155f(0x3de)](E[_0x36155f(0x57b)](_0x5a6a04=>_0x5a6a04['getUnitId']())),this[_0x36155f(0x340)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SLIDE'])[_0x36155f(0x3de)](E['map'](_0x1cc48d=>_0x1cc48d[_0x36155f(0x52b)]())))[_0x36155f(0x42c)](_0x3fb67c=>this[_0x36155f(0x577)](_0x3fb67c)))));}[_0x3b22f(0x474)](_0x2de3c9){const _0x3ad99d=_0x3b22f;this[_0x3ad99d(0x437)]['setCurrentUser'](_0x2de3c9);}['getCurrentUser'](){const _0x361e07=_0x3b22f;return this[_0x361e07(0x437)]['getCurrentUser']();}[_0x3b22f(0x349)](_0x4719b1,_0x4a00c7){const _0x51ef9b=_0x3b22f;let _0xee3cd5=this['_roomMembers'][_0x51ef9b(0x34d)](_0x4719b1);_0xee3cd5||(_0xee3cd5=new _s(),this[_0x51ef9b(0x469)]['set'](_0x4719b1,_0xee3cd5)),_0xee3cd5[_0x51ef9b(0x349)](_0x4a00c7);}['removeMember'](_0xb0541c,_0x2644ae){const _0x1c69fd=_0x3b22f,_0x641818=this[_0x1c69fd(0x469)]['get'](_0xb0541c);_0x641818&&_0x641818[_0x1c69fd(0x345)](_0x2644ae);}[_0x3b22f(0x3a5)](_0x26ae54){const _0x5ad93b=_0x3b22f;return this[_0x5ad93b(0x469)][_0x5ad93b(0x34d)](_0x26ae54);}[_0x3b22f(0x303)](_0x4b2bd2,_0x31d0e2){const _0x58e84f=_0x3b22f,_0xd00d03=this[_0x58e84f(0x469)]['get'](_0x4b2bd2);if(_0xd00d03)return _0xd00d03[_0x58e84f(0x303)](_0x31d0e2);}[_0x3b22f(0x577)](_0x375d1c){const _0x55212c=_0x3b22f,_0x3ee3ff=this[_0x55212c(0x469)][_0x55212c(0x34d)](_0x375d1c);_0x3ee3ff&&(_0x3ee3ff[_0x55212c(0x4f2)](),this[_0x55212c(0x469)][_0x55212c(0x2cc)](_0x375d1c));}[_0x3b22f(0x4f2)](){const _0x13745a=_0x3b22f;this[_0x13745a(0x469)][_0x13745a(0x339)](_0x3821cb=>_0x3821cb[_0x13745a(0x4f2)]()),this[_0x13745a(0x469)][_0x13745a(0x249)]();}};q=hs([Ze(0x0,a['IUniverInstanceService']),Ze(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x564)]))],q);class _s extends a[_0x3b22f(0x4b0)]{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x3b22f(0x4f2)](){const _0x468a62=_0x3b22f;this[_0x468a62(0x311)][_0x468a62(0x249)]();}[_0x3b22f(0x349)](_0x13a000){const _0x502bc5=_0x3b22f;this[_0x502bc5(0x311)][_0x502bc5(0x305)](_0x13a000[_0x502bc5(0x598)],_0x13a000);}['removeMember'](_0x3fdb0b){const _0x5a9273=_0x3b22f;this[_0x5a9273(0x311)][_0x5a9273(0x2cc)](_0x3fdb0b);}['getMember'](_0x59394b){const _0x21926f=_0x3b22f;return this[_0x21926f(0x311)][_0x21926f(0x34d)](_0x59394b);}}var us=Object['defineProperty'],ds=Object[_0x3b22f(0x246)],Ss=(_0x405f15,_0x43379c,_0x110ca3,_0x4aee20)=>{const _0xc53a3e=_0x3b22f;for(var _0x2cd119=_0x4aee20>0x1?void 0x0:_0x4aee20?ds(_0x43379c,_0x110ca3):_0x43379c,_0x2cbca2=_0x405f15[_0xc53a3e(0x291)]-0x1,_0x26e6c0;_0x2cbca2>=0x0;_0x2cbca2--)(_0x26e6c0=_0x405f15[_0x2cbca2])&&(_0x2cd119=(_0x4aee20?_0x26e6c0(_0x43379c,_0x110ca3,_0x2cd119):_0x26e6c0(_0x2cd119))||_0x2cd119);return _0x4aee20&&_0x2cd119&&us(_0x43379c,_0x110ca3,_0x2cd119),_0x2cd119;},B=(_0x3034cf,_0x2dd923)=>(_0xab550a,_0x2bb3d4)=>_0x2dd923(_0xab550a,_0x2bb3d4,_0x3034cf),$=(_0x56472d=>(_0x56472d[_0x56472d[_0x3b22f(0x2d3)]=0x0]=_0x3b22f(0x2d3),_0x56472d[_0x56472d['JOINING']=0x1]=_0x3b22f(0x4f5),_0x56472d[_0x56472d[_0x3b22f(0x3ea)]=0x2]='OFFLINE',_0x56472d[_0x56472d[_0x3b22f(0x22f)]=0x3]=_0x3b22f(0x22f),_0x56472d))($||{});exports['CollaborationSession']=class extends a[_0x3b22f(0x398)]{constructor(_0x446a69,_0x1c3b81,_0x539b68,_0x20d871,_0x282e6f,_0x3fff74,_0x4cb2ed,_0xb03532,_0x332836,_0x5aa327){const _0x3f0e2a=_0x3b22f;super(),d(this,'_sessionStatus$',new v[(_0x3f0e2a(0x502))](0x0)),d(this,'sessionStatus$',this[_0x3f0e2a(0x400)][_0x3f0e2a(0x56e)]()),d(this,_0x3f0e2a(0x4ca),new v[(_0x3f0e2a(0x25f))]()),d(this,_0x3f0e2a(0x3b5),this[_0x3f0e2a(0x4ca)][_0x3f0e2a(0x56e)]()),d(this,'_socket'),d(this,'_socketMessageSubscription'),d(this,_0x3f0e2a(0x228)),d(this,_0x3f0e2a(0x47c),!0x1),d(this,'_telemetryInfo',null),(this['_unitID']=_0x446a69,this[_0x3f0e2a(0x445)]=_0x539b68,this[_0x3f0e2a(0x4e0)]=_0x20d871,this['_messageService']=_0x282e6f,this[_0x3f0e2a(0x266)]=_0x3fff74,this['_localeService']=_0x4cb2ed,this['_memberService']=_0xb03532,this[_0x3f0e2a(0x546)]=_0x332836,this[_0x3f0e2a(0x59a)]=_0x5aa327,this['_shouldReportTelemetry']=!!this[_0x3f0e2a(0x59a)],_0x1c3b81['pipe'](v['takeUntil'](this[_0x3f0e2a(0x2e1)]))[_0x3f0e2a(0x42c)](_0x356333=>{const _0x268640=_0x3f0e2a;var _0x3164d0;typeof _0x356333>'u'||(this[_0x268640(0x218)]=_0x356333,_0x356333?(this[_0x268640(0x59b)](_0x356333),this[_0x268640(0x3fa)]=_0x356333[_0x268640(0x1fa)][_0x268640(0x42c)](_0x2fd5fc=>{const _0x5db11e=_0x268640;_0x2fd5fc['routeKey']===this[_0x5db11e(0x2f9)]&&this['_onCombEvent'](_0x2fd5fc);})):(this[_0x268640(0x46f)](),this[_0x268640(0x400)][_0x268640(0x52d)](0x2),(_0x3164d0=this[_0x268640(0x3fa)])==null||_0x3164d0[_0x268640(0x3d4)](),this[_0x268640(0x3fa)]=null));}),this[_0x3f0e2a(0x283)](this[_0x3f0e2a(0x4e0)][_0x3f0e2a(0x4c4)](()=>{const _0x2c143a=_0x3f0e2a;var _0x27d0a7;(_0x27d0a7=this[_0x2c143a(0x218)])==null||_0x27d0a7['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x2c143a(0x2f9)]}});})));}get[_0x3b22f(0x55a)](){const _0x4f2907=_0x3b22f;return this['_sessionStatus$'][_0x4f2907(0x2a9)]();}[_0x3b22f(0x597)](){const _0x32b3da=_0x3b22f;var _0x731e24,_0x22ffe2;return(_0x22ffe2=(_0x731e24=this[_0x32b3da(0x218)])==null?void 0x0:_0x731e24[_0x32b3da(0x598)])!=null?_0x22ffe2:null;}[_0x3b22f(0x4f2)](){const _0x548d5d=_0x3b22f;super[_0x548d5d(0x4f2)](),this[_0x548d5d(0x2e1)]['next'](),this['dispose$']['complete']();}[_0x3b22f(0x3ec)](){const _0xe2321c=_0x3b22f;var _0x5b8650,_0x12a237;this[_0xe2321c(0x46f)](),(_0x5b8650=this[_0xe2321c(0x218)])==null||_0x5b8650['send']({'cmd':b[_0xe2321c(0x2e6)],'data':{'roomID':this[_0xe2321c(0x2f9)]}}),(_0x12a237=this['_socket'])==null||_0x12a237[_0xe2321c(0x3ec)](),this['_event$'][_0xe2321c(0x2ec)](),this[_0xe2321c(0x400)][_0xe2321c(0x2ec)](),this[_0xe2321c(0x4f2)]();}[_0x3b22f(0x276)](_0x1490c9){const _0x48e5b2=_0x3b22f;_0x1490c9[_0x48e5b2(0x4d4)]===b[_0x48e5b2(0x23b)]?this[_0x48e5b2(0x53c)](_0x1490c9):_0x1490c9[_0x48e5b2(0x4d4)]===b[_0x48e5b2(0x2f0)]&&this[_0x48e5b2(0x2cf)](_0x1490c9);}[_0x3b22f(0x59b)](_0x19d757){const _0x3b6434=_0x3b22f;this['_sessionStatus$'][_0x3b6434(0x52d)](0x1),_0x19d757[_0x3b6434(0x3c5)]({'cmd':b[_0x3b6434(0x23b)],'routeKey':this[_0x3b6434(0x2f9)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3b6434(0x2f9)]}]}});}['_onJoinRoomEvent'](_0x53b1c2){const _0x280934=_0x3b22f;var _0x2b1386;if(_0x53b1c2['code']===We[_0x280934(0x438)]){this['_messageService']['show']({'type':X['MessageType'][_0x280934(0x3b7)],'content':this['_localeService']['t']('session.room-full')}),this[_0x280934(0x400)][_0x280934(0x52d)](0x2);return;}this[_0x280934(0x400)]['next'](0x3);const _0x256cc8=(_0x2b1386=_0x53b1c2[_0x280934(0x45b)][_0x280934(0x411)][this[_0x280934(0x2f9)]])==null?void 0x0:_0x2b1386[_0x280934(0x212)];_0x256cc8&&_0x256cc8[_0x280934(0x339)](_0x4e7841=>this[_0x280934(0x4ec)][_0x280934(0x349)](this['_unitID'],_0x4e7841));}['_onRecvEvent'](_0x51e2a2){const _0x1d951b=_0x3b22f;try{const _0x1b621c=_0x51e2a2[_0x1d951b(0x45b)];switch(_0x1b621c[_0x1d951b(0x3cc)]){case _[_0x1d951b(0x44c)][_0x1d951b(0x3a6)]:this['_onUserJoin'](_0x1b621c),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x51c)]:this[_0x1d951b(0x423)](_0x1b621c),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _[_0x1d951b(0x44c)][_0x1d951b(0x428)]:this[_0x1d951b(0x3b0)](),this[_0x1d951b(0x516)](),this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x290)]:this[_0x1d951b(0x445)][_0x1d951b(0x49d)](_0x1d951b(0x268)+JSON[_0x1d951b(0x56d)](_0x1b621c)),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x431)]:this['_commentService'][_0x1d951b(0x3f6)](_0x1b621c[_0x1d951b(0x45b)]),this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);break;default:this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);}}catch(_0x4b1e27){this[_0x1d951b(0x445)][_0x1d951b(0x49d)](_0x4b1e27,_0x51e2a2);}}[_0x3b22f(0x368)](_0x14e18c){const _0x32c3e1=_0x3b22f;this[_0x32c3e1(0x4ec)][_0x32c3e1(0x349)](this[_0x32c3e1(0x2f9)],_0x14e18c['data']);}['_onUserLeave'](_0x2d51a4){const _0x5ae512=_0x3b22f;this['_memberService']['removeMember'](this[_0x5ae512(0x2f9)],_0x2d51a4[_0x5ae512(0x45b)][_0x5ae512(0x598)]);}async[_0x3b22f(0x3c5)](_0x8d37e3,_0x3352dd){const _0xb92a1d=_0x3b22f;if(this[_0xb92a1d(0x55a)]!==0x3||!this[_0xb92a1d(0x218)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x8d37e3[_0xb92a1d(0x3cc)]===_[_0xb92a1d(0x44c)]['SUBMIT_CHANGESET']&&(this[_0xb92a1d(0x538)](),this['_startTelemetryCollaborationNewChangeset'](_0x8d37e3)),this['_socket'][_0xb92a1d(0x3c5)]({'cmd':b[_0xb92a1d(0x4ef)],'routeKey':_0x3352dd,'routeType':'','data':_0x8d37e3});}catch(_0x2b1335){this[_0xb92a1d(0x445)][_0xb92a1d(0x49d)](_0x2b1335);}}[_0x3b22f(0x538)](){const _0xe73dcd=_0x3b22f;var _0x48934e;this['_collaborationTimeoutTimer']=window[_0xe73dcd(0x576)](()=>{const _0x305a7b=_0xe73dcd;this[_0x305a7b(0x228)]=null,this[_0x305a7b(0x31d)][_0x305a7b(0x224)]({'type':X['MessageType'][_0x305a7b(0x460)],'content':this[_0x305a7b(0x316)]['t']('session.collaboration-timeout')});},(_0x48934e=this['_configService'][_0xe73dcd(0x504)](Ve))!=null?_0x48934e:St);}[_0x3b22f(0x516)](){const _0x5dc8af=_0x3b22f;this[_0x5dc8af(0x228)]&&(clearTimeout(this[_0x5dc8af(0x228)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x192c22){const _0x4dfd5f=_0x3b22f;if(!this[_0x4dfd5f(0x47c)])return;const {data:_0x471c3c}=_0x192c22,{unitID:_0x1e1f74,changeset:_0x12f911}=_0x471c3c,{mutations:_0x56e6ab,type:_0x1a1e96}=_0x12f911;this[_0x4dfd5f(0x3f3)]={'unitId':_0x1e1f74,'type':_0x1a1e96,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':as(_0x56e6ab)};}[_0x3b22f(0x3b0)](){const _0x147156=_0x3b22f;if(this[_0x147156(0x47c)]){if(!this[_0x147156(0x3f3)]){this[_0x147156(0x445)][_0x147156(0x49d)]('[CollaborationSession]',_0x147156(0x3bf));return;}this['_telemetryInfo'][_0x147156(0x567)]=performance['now'](),this[_0x147156(0x3f3)]['duration']=this[_0x147156(0x3f3)][_0x147156(0x567)]-this[_0x147156(0x3f3)]['startTime'],this[_0x147156(0x59a)]['capture'](os,this['_telemetryInfo']),this[_0x147156(0x3f3)]=null;}}[_0x3b22f(0x46f)](){this['_telemetryInfo']=null;}},exports[_0x3b22f(0x572)]=Ss([B(0x2,a[_0x3b22f(0x308)]),B(0x3,N['IBeforeCloseService']),B(0x4,N[_0x3b22f(0x2e3)]),B(0x5,a['IConfigService']),B(0x6,a[_0x3b22f(0x492)](a['LocaleService'])),B(0x7,a['Inject'](q)),B(0x8,a[_0x3b22f(0x492)](Ge)),B(0x9,a['Optional'](Vt[_0x3b22f(0x467)]))],exports['CollaborationSession']);var vs=Object['defineProperty'],fs=Object[_0x3b22f(0x246)],gs=(_0xae273c,_0x4641a3,_0x534fb6,_0x8951c6)=>{const _0xcc463e=_0x3b22f;for(var _0x9cd485=_0x8951c6>0x1?void 0x0:_0x8951c6?fs(_0x4641a3,_0x534fb6):_0x4641a3,_0x52dbbb=_0xae273c[_0xcc463e(0x291)]-0x1,_0xe3b069;_0x52dbbb>=0x0;_0x52dbbb--)(_0xe3b069=_0xae273c[_0x52dbbb])&&(_0x9cd485=(_0x8951c6?_0xe3b069(_0x4641a3,_0x534fb6,_0x9cd485):_0xe3b069(_0x9cd485))||_0x9cd485);return _0x8951c6&&_0x9cd485&&vs(_0x4641a3,_0x534fb6,_0x9cd485),_0x9cd485;},Z=(_0xf76452,_0x108d1a)=>(_0x578b46,_0x25e6de)=>_0x108d1a(_0x578b46,_0x25e6de,_0xf76452);exports[_0x3b22f(0x298)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x114d39,_0x169a7f,_0x5a4f9d,_0x19f23c,_0x32fd69,_0xf6fe67){const _0x28eac2=_0x3b22f;super(),d(this,_0x28eac2(0x50e),new v[(_0x28eac2(0x502))](void 0x0)),d(this,_0x28eac2(0x2c8),this[_0x28eac2(0x50e)]['asObservable']()),d(this,_0x28eac2(0x392),null),d(this,'_sessions',new Map()),d(this,'_status$',new v[(_0x28eac2(0x502))]($[_0x28eac2(0x2d3)])),d(this,_0x28eac2(0x386),this[_0x28eac2(0x4d5)][_0x28eac2(0x56e)]()),d(this,'_socketReady',!0x1),d(this,_0x28eac2(0x440)),d(this,_0x28eac2(0x34b),0x0),d(this,_0x28eac2(0x463)),d(this,_0x28eac2(0x1fb)),(this[_0x28eac2(0x397)]=_0x114d39,this[_0x28eac2(0x316)]=_0x169a7f,this[_0x28eac2(0x31d)]=_0x5a4f9d,this[_0x28eac2(0x445)]=_0x19f23c,this[_0x28eac2(0x266)]=_0x32fd69,this['_socketService']=_0xf6fe67,this[_0x28eac2(0x370)]());}get[_0x3b22f(0x218)](){const _0x1fafcd=_0x3b22f;return this[_0x1fafcd(0x50e)][_0x1fafcd(0x2a9)]();}[_0x3b22f(0x370)](){const _0x46f807=_0x3b22f;this[_0x46f807(0x2a0)](),this[_0x46f807(0x39a)]();}[_0x3b22f(0x4f2)](){const _0x5029b8=_0x3b22f;super[_0x5029b8(0x4f2)](),this[_0x5029b8(0x2f4)][_0x5029b8(0x339)](_0x295a7d=>_0x295a7d[_0x5029b8(0x4f2)]()),this['_sessions']['clear'](),this[_0x5029b8(0x4d5)][_0x5029b8(0x2ec)]();}async['requireSession'](_0x2aeb52){const _0xa0d345=_0x3b22f;if(this[_0xa0d345(0x2f4)][_0xa0d345(0x3e5)](_0x2aeb52))return this[_0xa0d345(0x2f4)][_0xa0d345(0x34d)](_0x2aeb52);this[_0xa0d345(0x40f)]();const _0x3a1e28=this[_0xa0d345(0x397)]['createInstance'](exports[_0xa0d345(0x572)],_0x2aeb52,this['_socket$']['asObservable']());return this[_0xa0d345(0x2f4)][_0xa0d345(0x305)](_0x2aeb52,_0x3a1e28),_0x3a1e28;}[_0x3b22f(0x3c6)](_0x575174){const _0x4cbfb6=_0x3b22f;var _0x24bd41;const _0x39b85a=this[_0x4cbfb6(0x2f4)][_0x4cbfb6(0x34d)](_0x575174);_0x39b85a&&(this[_0x4cbfb6(0x2f4)][_0x4cbfb6(0x2cc)](_0x575174),_0x39b85a[_0x4cbfb6(0x3ec)]()),this['_sessions'][_0x4cbfb6(0x45a)]||(_0x24bd41=this[_0x4cbfb6(0x218)])==null||_0x24bd41[_0x4cbfb6(0x3ec)]();}[_0x3b22f(0x359)](){const _0x152675=_0x3b22f;this[_0x152675(0x34b)]=0x0,this[_0x152675(0x440)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x152675(0x440)]=null),this[_0x152675(0x39c)]();}[_0x3b22f(0x539)](){const _0xddaf46=_0x3b22f;var _0x1b1849,_0x1392bd;const _0x439601=this[_0xddaf46(0x266)][_0xddaf46(0x504)](ut),_0xa12ea0=this[_0xddaf46(0x266)]['getConfig'](A),_0x481525=(_0x1392bd=(_0x1b1849=_0xa12ea0==null?void 0x0:_0xa12ea0[_0xddaf46(0x33b)])!=null?_0x1b1849:_0x439601)!=null?_0x1392bd:Xt,_0x26ee56=this['_socketService'][_0xddaf46(0x3a1)](_0x481525);return this[_0xddaf46(0x392)]=_0x26ee56,_0x26ee56;}['_tryEnsureSocket'](){const _0x474edf=_0x3b22f;var _0x589294,_0x47f152;try{const _0x15baae=(_0x47f152=(_0x589294=this[_0x474edf(0x218)])!=null?_0x589294:this[_0x474edf(0x392)])!=null?_0x47f152:this[_0x474edf(0x539)]();if(_0x15baae){const _0x2e2c22=_0x15baae['send'];_0x15baae[_0x474edf(0x3c5)]=_0x4d839e=>(this[_0x474edf(0x285)](),_0x2e2c22['apply'](_0x15baae,[_0x4d839e])),_0x15baae[_0x474edf(0x1fa)][_0x474edf(0x42c)](_0x4ac291=>this[_0x474edf(0x5bd)](_0x15baae,_0x4ac291)),_0x15baae[_0x474edf(0x505)][_0x474edf(0x3de)](E[_0x474edf(0x5b9)](0x1))[_0x474edf(0x42c)](_0x4441bb=>this['_logService'][_0x474edf(0x49d)](_0x474edf(0x5d0),_0x4441bb)),_0x15baae[_0x474edf(0x486)][_0x474edf(0x3de)](E['take'](0x1))[_0x474edf(0x42c)](()=>{const _0x1517ca=_0x474edf;this[_0x1517ca(0x2c6)](_0x15baae);}),_0x15baae[_0x474edf(0x324)]['pipe'](E[_0x474edf(0x5b9)](0x1))[_0x474edf(0x42c)](_0x3bc474=>{const _0x1d0fab=_0x474edf;this[_0x1d0fab(0x445)][_0x1d0fab(0x320)](_0x1d0fab(0x557),_0x1d0fab(0x336),_0x3bc474),this[_0x1d0fab(0x5ed)]();});}}catch(_0x16f00a){this['_logService'][_0x474edf(0x49d)](_0x16f00a),this[_0x474edf(0x5ed)]();}}[_0x3b22f(0x2c6)](_0x481fbe){const _0x40b0ed=_0x3b22f;this[_0x40b0ed(0x445)][_0x40b0ed(0x320)](_0x40b0ed(0x557),_0x40b0ed(0x3b2)),_0x481fbe[_0x40b0ed(0x3c5)]({'cmd':b[_0x40b0ed(0x2bd)]}),this['_rescheduleHeartbeat']();}[_0x3b22f(0x2a0)](){const _0x5c4f2b=_0x3b22f;window[_0x5c4f2b(0x4e8)](_0x5c4f2b(0x45f),()=>this['_onOffline']());}['_onOffline'](){const _0x47a947=_0x3b22f;this[_0x47a947(0x394)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x47a947(0x52d)]($['OFFLINE']),this[_0x47a947(0x50e)][_0x47a947(0x52d)](null),this[_0x47a947(0x3cb)](),this[_0x47a947(0x34e)]();}[_0x3b22f(0x5ed)](){const _0x772c52=_0x3b22f;var _0x50d9a1;this['_onOffline'](),this[_0x772c52(0x34b)]<((_0x50d9a1=this['_configService'][_0x772c52(0x504)](vt))!=null?_0x50d9a1:Jt)?(this['_messageService']['show']({'key':'collaboration-session-retry','type':X['MessageType'][_0x772c52(0x3b7)],'content':this[_0x772c52(0x316)]['t'](_0x772c52(0x435))}),this['_tryReconnect']()):this[_0x772c52(0x31d)][_0x772c52(0x224)]({'key':_0x772c52(0x1f8),'type':X[_0x772c52(0x5b4)][_0x772c52(0x460)],'content':this['_localeService']['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x5124fb=_0x3b22f,_0xb7b9a=()=>{const _0x153335=_0x2c53;this[_0x153335(0x218)]||this[_0x153335(0x359)]();},_0x31ea94=()=>{const _0x22b314=_0x2c53;this[_0x22b314(0x218)]||document['visibilityState']==='hidden'||this[_0x22b314(0x359)]();};window['addEventListener'](_0x5124fb(0x5d1),_0xb7b9a),document['addEventListener'](_0x5124fb(0x315),_0x31ea94);}[_0x3b22f(0x39c)](){const _0x42938c=_0x3b22f;var _0x43f0e8;const _0x2229c7=this['_retryCount'],_0x100b33=this[_0x42938c(0x266)][_0x42938c(0x504)](A),_0x1f00e4=_0x2229c7===0x0?0x0:((_0x43f0e8=_0x100b33==null?void 0x0:_0x100b33[_0x42938c(0x1f7)])!=null?_0x43f0e8:zt)*0x2**_0x2229c7;this[_0x42938c(0x440)]=window['setTimeout'](()=>{const _0x61e493=_0x42938c;clearTimeout(this[_0x61e493(0x440)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x1f00e4),this[_0x42938c(0x34b)]+=0x1;}[_0x3b22f(0x5bd)](_0x1b9187,_0x4b6639){const _0x371ae7=_0x3b22f,{cmd:_0x15f02f}=_0x4b6639;_0x15f02f===b[_0x371ae7(0x2bd)]&&!this[_0x371ae7(0x394)]&&(_0x1b9187[_0x371ae7(0x598)]=_0x4b6639[_0x371ae7(0x45b)][_0x371ae7(0x598)],this[_0x371ae7(0x50e)]['next'](_0x1b9187),this[_0x371ae7(0x4d5)]['next']($[_0x371ae7(0x22f)]),this[_0x371ae7(0x394)]=!0x0,this[_0x371ae7(0x392)]=null),_0x15f02f===b[_0x371ae7(0x233)]&&this[_0x371ae7(0x3cb)](),this['_rescheduleHeartbeat']();}[_0x3b22f(0x285)](){const _0x5b37f1=_0x3b22f;var _0x44c210;this[_0x5b37f1(0x34e)](),this[_0x5b37f1(0x463)]=window[_0x5b37f1(0x576)](()=>this[_0x5b37f1(0x240)](),(_0x44c210=this[_0x5b37f1(0x266)][_0x5b37f1(0x504)](dt))!=null?_0x44c210:qt);}[_0x3b22f(0x240)](){const _0x2905ca=_0x3b22f;this[_0x2905ca(0x218)][_0x2905ca(0x3c5)]({'cmd':b[_0x2905ca(0x233)]}),this['_waitForHeartbeatResponse']();}[_0x3b22f(0x3d7)](){const _0x28f817=_0x3b22f;var _0x6a762f;this[_0x28f817(0x1fb)]=window[_0x28f817(0x576)](()=>this[_0x28f817(0x5ed)](),(_0x6a762f=this[_0x28f817(0x266)]['getConfig'](Ve))!=null?_0x6a762f:St);}['_clearHeartbeatTimer'](){const _0x158353=_0x3b22f;this[_0x158353(0x463)]!=null&&(clearTimeout(this[_0x158353(0x463)]),this[_0x158353(0x463)]=null);}['_clearTimeoutTimer'](){const _0x599711=_0x3b22f;this[_0x599711(0x1fb)]!=null&&(clearTimeout(this[_0x599711(0x1fb)]),this[_0x599711(0x1fb)]=null);}},exports[_0x3b22f(0x298)]=gs([Z(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Z(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x3b22f(0x308)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object['defineProperty'],Is=Object['getOwnPropertyDescriptor'],ps=(_0x377f1b,_0x217785,_0x13661e,_0x2c937)=>{const _0x21a7b9=_0x3b22f;for(var _0x25e65e=_0x2c937>0x1?void 0x0:_0x2c937?Is(_0x217785,_0x13661e):_0x217785,_0x534194=_0x377f1b[_0x21a7b9(0x291)]-0x1,_0x36c6ff;_0x534194>=0x0;_0x534194--)(_0x36c6ff=_0x377f1b[_0x534194])&&(_0x25e65e=(_0x2c937?_0x36c6ff(_0x217785,_0x13661e,_0x25e65e):_0x36c6ff(_0x25e65e))||_0x25e65e);return _0x2c937&&_0x25e65e&&ms(_0x217785,_0x13661e,_0x25e65e),_0x25e65e;},De=(_0x3d3983,_0x3378d9)=>(_0x1a54ac,_0x443272)=>_0x3378d9(_0x1a54ac,_0x443272,_0x3d3983);let fe=class{constructor(_0x691281,_0x14ad1f,_0x485e12){const _0x4e01ee=_0x3b22f;this['_injector']=_0x691281,this[_0x4e01ee(0x294)]=_0x14ad1f,this[_0x4e01ee(0x376)]=_0x485e12;}['transformIMECache'](_0x4debe5){const _0x489f30=_0x3b22f;this[_0x489f30(0x352)](_0x4debe5),this[_0x489f30(0x593)](_0x4debe5);}[_0x3b22f(0x471)](_0x419aa3){const _0x19f635=_0x3b22f,{unitID:_0x45fdeb}=_0x419aa3,_0x4de5de=this[_0x19f635(0x376)][_0x19f635(0x360)](_0x45fdeb)[_0x19f635(0x3d0)](w[_0x19f635(0x52a)]),{redoCache:_0x4e2033}=_0x4de5de[_0x19f635(0x536)]();if(_0x4e2033[_0x19f635(0x291)]===0x0)return _0x419aa3;let _0x5d0d3e=a[_0x19f635(0x27d)]['deepClone'](_0x419aa3[_0x19f635(0x3a2)][0x0]);for(let _0x6f7b74=0x0;_0x6f7b74<_0x4e2033[_0x19f635(0x291)];_0x6f7b74++){const _0x21ff3e={'id':_0x19f635(0x29f),'params':{..._0x4e2033[_0x6f7b74]}},_0x1e51cd=this[_0x19f635(0x294)]['transformMutation'](_0x5d0d3e,_0x21ff3e,!0x1);if(_['isTransformMutationFailure'](_0x1e51cd))throw _0x1e51cd['error'];_0x5d0d3e=_0x1e51cd[_0x19f635(0x5ce)];}return{...a['Tools'][_0x19f635(0x343)](_0x419aa3),'mutations':[_0x5d0d3e]};}['_transformUndoRedoStack'](_0x2fa535){const _0x3128eb=_0x3b22f,{unitID:_0xec4b56}=_0x2fa535,_0x2d7ed9=this[_0x3128eb(0x376)][_0x3128eb(0x360)](_0xec4b56)[_0x3128eb(0x3d0)](w[_0x3128eb(0x52a)]),{undoCache:_0x40a102,redoCache:_0x5d8221}=_0x2d7ed9['getUndoRedoMutationParamsCache']();if(_0x40a102[_0x3128eb(0x291)]===0x0||_0x5d8221[_0x3128eb(0x291)]===0x0)return;const _0x26d994=[],_0x39b4c3=[];let _0x39d238=a[_0x3128eb(0x27d)][_0x3128eb(0x343)](_0x2fa535[_0x3128eb(0x3a2)][0x0]),_0x1a45d8=a[_0x3128eb(0x27d)][_0x3128eb(0x343)](_0x2fa535[_0x3128eb(0x3a2)][0x0]);for(let _0x33c417=_0x40a102['length']-0x1;_0x33c417>=0x0;_0x33c417--){const _0x10d94d={'id':'doc.mutation.rich-text-editing','params':{..._0x40a102[_0x33c417]}},_0x2bec7e={'id':_0x3128eb(0x29f),'params':{..._0x5d8221[_0x33c417]}},_0x14dc7b=this['_transformService'][_0x3128eb(0x2c5)](_0x39d238,_0x10d94d,!0x1),_0x4d0c6a=this[_0x3128eb(0x294)]['transformMutation'](_0x1a45d8,_0x2bec7e,!0x1);if(_[_0x3128eb(0x5cb)](_0x14dc7b))throw _0x14dc7b['error'];if(_[_0x3128eb(0x5cb)](_0x4d0c6a))throw _0x4d0c6a[_0x3128eb(0x49d)];_0x26d994['unshift'](_0x14dc7b['m2Prime'][_0x3128eb(0x3b6)]),_0x39b4c3[_0x3128eb(0x20f)](_0x4d0c6a[_0x3128eb(0x2e8)][_0x3128eb(0x3b6)]),_0x39d238=_0x14dc7b['m1Prime'],_0x1a45d8=_0x4d0c6a[_0x3128eb(0x5ce)];}_0x2d7ed9['setUndoRedoMutationParamsCache']({'undoCache':_0x26d994,'redoCache':_0x39b4c3});}[_0x3b22f(0x593)](_0x40fe24){const _0x5aa454=_0x3b22f,{unitID:_0x491599}=_0x40fe24,_0x2ce10a=this[_0x5aa454(0x376)][_0x5aa454(0x360)](_0x491599)[_0x5aa454(0x3d0)](w[_0x5aa454(0x52a)]),_0x227bdd=_0x2ce10a[_0x5aa454(0x47e)]();if(_0x227bdd==null)return;const _0x50079c=[{'id':_0x5aa454(0x29f),'params':{'unitId':_0x40fe24[_0x5aa454(0x40e)],'actions':null,'textRanges':[_0x227bdd]}}],_0x3709dd=this[_0x5aa454(0x294)][_0x5aa454(0x261)](_0x40fe24,_0x50079c);if(!_[_0x5aa454(0x3db)](_0x3709dd))throw _0x3709dd[_0x5aa454(0x49d)];const _0x53a7a2=_0x3709dd['m2Prime'][0x0][_0x5aa454(0x3b6)][_0x5aa454(0x4a4)];Array[_0x5aa454(0x33f)](_0x53a7a2)&&_0x53a7a2[_0x5aa454(0x291)]&&_0x2ce10a['setActiveRange'](_0x53a7a2[0x0]);}};fe=ps([De(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),De(0x1,_[_0x3b22f(0x378)]),De(0x2,R[_0x3b22f(0x2be)])],fe);var Cs=Object[_0x3b22f(0x1ff)],Es=Object[_0x3b22f(0x246)],bs=(_0x59f009,_0x3d5d34,_0x1799b5,_0x2d17c7)=>{for(var _0x49229f=_0x2d17c7>0x1?void 0x0:_0x2d17c7?Es(_0x3d5d34,_0x1799b5):_0x3d5d34,_0x782dfc=_0x59f009['length']-0x1,_0x18fd67;_0x782dfc>=0x0;_0x782dfc--)(_0x18fd67=_0x59f009[_0x782dfc])&&(_0x49229f=(_0x2d17c7?_0x18fd67(_0x3d5d34,_0x1799b5,_0x49229f):_0x18fd67(_0x49229f))||_0x49229f);return _0x2d17c7&&_0x49229f&&Cs(_0x3d5d34,_0x1799b5,_0x49229f),_0x49229f;},ae=(_0x468f0d,_0x543ff9)=>(_0x3c6dc9,_0x55edf7)=>_0x543ff9(_0x3c6dc9,_0x55edf7,_0x468f0d);exports[_0x3b22f(0x462)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x267a58,_0x2eece6,_0x40e311,_0x18bfe6,_0x5d042f){const _0x5881c7=_0x3b22f;super(),d(this,_0x5881c7(0x21d),new Map()),d(this,_0x5881c7(0x3af),new Map()),d(this,_0x5881c7(0x5ea),!0x1),(this[_0x5881c7(0x266)]=_0x267a58,this[_0x5881c7(0x54a)]=_0x2eece6,this[_0x5881c7(0x4e0)]=_0x40e311,this[_0x5881c7(0x316)]=_0x18bfe6,this[_0x5881c7(0x2d5)]=_0x5d042f,this['_setupBeforeClosingHandler']());}[_0x3b22f(0x333)](){const _0x2359ed=_0x3b22f;this[_0x2359ed(0x5ea)]=!0x0;}[_0x3b22f(0x54e)](){const _0x577e6c=_0x3b22f;this[_0x577e6c(0x5ea)]=!0x1;}[_0x3b22f(0x4f2)](){const _0x39e9fd=_0x3b22f;this[_0x39e9fd(0x328)]()['then'](()=>super[_0x39e9fd(0x4f2)]());}async['loadOfflineData'](_0x10f864){const _0x4db2be=_0x3b22f;return this[_0x4db2be(0x5ea)]?null:this[_0x4db2be(0x54a)][_0x4db2be(0x5b3)](Qe(_0x10f864));}async[_0x3b22f(0x2d2)](_0x9d28d0,_0x37ce1f){const _0x51e598=_0x3b22f;return!!this[_0x51e598(0x54a)][_0x51e598(0x307)](_0x9d28d0,_0x37ce1f);}[_0x3b22f(0x371)](_0x4ce66e,_0x5a9bd1,_0x3d36f5,_0x3933a5){const _0xf161e=_0x3b22f,_0x1a697c=this[_0xf161e(0x2d5)][_0xf161e(0x42d)](_0x4ce66e);this[_0xf161e(0x21d)][_0xf161e(0x305)](_0x4ce66e,{'unitID':_0x4ce66e,'type':_0x5a9bd1,'awaitingChangeset':_0x3d36f5,'mutations':_0x3933a5,'rev':_0x1a697c}),this[_0xf161e(0x3af)]['has'](_0x4ce66e)||this[_0xf161e(0x1e1)](_0x4ce66e);}[_0x3b22f(0x1e1)](_0x734f58){const _0x1c1c08=_0x3b22f,_0x2d8c07=this[_0x1c1c08(0x5a3)]();_0x2d8c07===0x0?this[_0x1c1c08(0x51b)](_0x734f58):this[_0x1c1c08(0x3af)][_0x1c1c08(0x305)](_0x734f58,setTimeout(()=>this[_0x1c1c08(0x51b)](_0x734f58),_0x2d8c07));}[_0x3b22f(0x5a3)](){const _0x5aa33e=_0x3b22f;var _0x51de74;return(_0x51de74=this[_0x5aa33e(0x266)][_0x5aa33e(0x504)](ft))!=null?_0x51de74:Zt;}[_0x3b22f(0x51b)](_0xad4568){const _0x43fa6a=_0x3b22f,_0x2bc5bb=this[_0x43fa6a(0x3af)][_0x43fa6a(0x34d)](_0xad4568);return _0x2bc5bb!==void 0x0&&window[_0x43fa6a(0x475)](_0x2bc5bb),this['_localStorageService'][_0x43fa6a(0x307)](Qe(_0xad4568),this[_0x43fa6a(0x21d)]['get'](_0xad4568))[_0x43fa6a(0x395)](()=>this[_0x43fa6a(0x3af)][_0x43fa6a(0x2cc)](_0xad4568));}async[_0x3b22f(0x328)](){const _0x1e9a40=_0x3b22f,_0x2eadbe=[];this['_saveTaskMap'][_0x1e9a40(0x339)]((_0x17473c,_0x200383)=>{const _0x592550=_0x1e9a40;window[_0x592550(0x475)](_0x17473c),_0x2eadbe[_0x592550(0x1ed)](this[_0x592550(0x51b)](_0x200383)[_0x592550(0x395)](()=>{const _0x2f89ee=_0x592550;this[_0x2f89ee(0x3af)][_0x2f89ee(0x2cc)](_0x200383);}));}),await Promise['all'](_0x2eadbe);}[_0x3b22f(0x23e)](){const _0x4731a0=_0x3b22f;this[_0x4731a0(0x283)](this[_0x4731a0(0x4e0)][_0x4731a0(0x361)](()=>{const _0x3d0bee=_0x4731a0;if(this[_0x3d0bee(0x3af)]['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x3b22f(0x462)]=bs([ae(0x0,a[_0x3b22f(0x5ad)]),ae(0x1,a['ILocalStorageService']),ae(0x2,N[_0x3b22f(0x279)]),ae(0x3,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),ae(0x4,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)]))],exports[_0x3b22f(0x462)]);function Qe(_0x4e02f9){const _0x517f88=_0x3b22f;return _0x517f88(0x4fd)+_0x4e02f9;}var Ts=Object[_0x3b22f(0x1ff)],Rs=Object['getOwnPropertyDescriptor'],Os=(_0x58d968,_0x8f3eb5,_0xaa560d,_0x378c20)=>{const _0x4bbdf3=_0x3b22f;for(var _0x35a25b=_0x378c20>0x1?void 0x0:_0x378c20?Rs(_0x8f3eb5,_0xaa560d):_0x8f3eb5,_0x2f1d67=_0x58d968[_0x4bbdf3(0x291)]-0x1,_0x2f8761;_0x2f1d67>=0x0;_0x2f1d67--)(_0x2f8761=_0x58d968[_0x2f1d67])&&(_0x35a25b=(_0x378c20?_0x2f8761(_0x8f3eb5,_0xaa560d,_0x35a25b):_0x2f8761(_0x35a25b))||_0x35a25b);return _0x378c20&&_0x35a25b&&Ts(_0x8f3eb5,_0xaa560d,_0x35a25b),_0x35a25b;},ye=(_0x528de3,_0x187ff0)=>(_0x266bd6,_0x8fe75d)=>_0x187ff0(_0x266bd6,_0x8fe75d,_0x528de3);function Ds(_0x3f5cee){const {unitID:_0x3eea22,mutations:_0x7a92fc}=_0x3f5cee;return{'unitId':_0x3eea22,'subUnitId':_0x7a92fc[0x0]['params']['subUnitId']};}let ge=class{constructor(_0x2e5ab4,_0x16a58a,_0x30b373){const _0x3df8aa=_0x3b22f;this[_0x3df8aa(0x397)]=_0x2e5ab4,this[_0x3df8aa(0x294)]=_0x16a58a,this[_0x3df8aa(0x4f8)]=_0x30b373;}[_0x3b22f(0x4fb)](_0x181223){const _0xdcc4fb=_0x3b22f;var _0xb5b0c3,_0x32ee7a,_0x84b48c,_0x11ba06;const _0x6bbe52=this[_0xdcc4fb(0x397)][_0xdcc4fb(0x34d)](C[_0xdcc4fb(0x264)]),{unitId:_0x36673c,subUnitId:_0x16eeb6}=Ds(_0x181223),_0x59e164=_0x6bbe52['getWorkbookSelections'](_0x36673c)[_0xdcc4fb(0x3f4)](),_0x1a41be=(_0x32ee7a=(_0xb5b0c3=this[_0xdcc4fb(0x4f8)][_0xdcc4fb(0x1f4)](_0x36673c))==null?void 0x0:_0xb5b0c3[_0xdcc4fb(0x242)]())==null?void 0x0:_0x32ee7a[_0xdcc4fb(0x3b3)]();if(_0x59e164[_0xdcc4fb(0x291)]===0x0||!_0x36673c||!_0x16eeb6)return;const _0x3a502b=[{'id':C[_0xdcc4fb(0x33c)]['id'],'params':{'unitId':_0x36673c,'subUnitId':_0x1a41be,'selections':a[_0xdcc4fb(0x27d)][_0xdcc4fb(0x343)](_0x59e164)}}],_0xde81ad=this[_0xdcc4fb(0x294)][_0xdcc4fb(0x261)](_0x181223,_0x3a502b);if(!_[_0xdcc4fb(0x3db)](_0xde81ad))throw _0xde81ad[_0xdcc4fb(0x49d)];const _0x2a7783=(_0x11ba06=(_0x84b48c=_0xde81ad[_0xdcc4fb(0x2e8)][0x0])==null?void 0x0:_0x84b48c[_0xdcc4fb(0x3b6)])==null?void 0x0:_0x11ba06[_0xdcc4fb(0x3c4)];Array[_0xdcc4fb(0x33f)](_0x2a7783)&&_0x2a7783[_0xdcc4fb(0x291)]&&this[_0xdcc4fb(0x397)][_0xdcc4fb(0x34d)](a[_0xdcc4fb(0x323)])['executeCommand'](C[_0xdcc4fb(0x33c)]['id'],{'unitId':_0x36673c,'subUnitId':_0x1a41be,'selections':_0x2a7783});}};ge=Os([ye(0x0,a[_0x3b22f(0x492)](a['Injector'])),ye(0x1,_[_0x3b22f(0x378)]),ye(0x2,a[_0x3b22f(0x26b)])],ge);const be=a['createIdentifier'](_0x3b22f(0x30e));var bt=(_0x12c884=>(_0x12c884[_0x12c884['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3b22f(0x356),_0x12c884[_0x12c884[_0x3b22f(0x2b0)]=0x1]=_0x3b22f(0x2b0),_0x12c884))(bt||{});const et=0x7530,tt='ACTIVE_UNIT_EVENT_CHANNEL';class ys extends a[_0x3b22f(0x4b0)]{constructor(){const _0x54f077=_0x3b22f;super(),d(this,_0x54f077(0x206),a[_0x54f077(0x27d)][_0x54f077(0x409)]()),d(this,_0x54f077(0x2c2),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x54f077(0x566),null),d(this,_0x54f077(0x389),new Map()),d(this,_0x54f077(0x419),new Map()),this['_init']();}['dispose'](){const _0x4b0430=_0x3b22f;super['dispose'](),this['_clearOtherTimers'][_0x4b0430(0x339)]((_0x56f02f,_0x51cfdb)=>this[_0x4b0430(0x4a0)](_0x51cfdb)),this[_0x4b0430(0x566)]&&window['clearInterval'](this[_0x4b0430(0x566)]);}[_0x3b22f(0x568)](_0x5c5825){const _0x2fa287=_0x3b22f;return this['_ensureSubject'](_0x5c5825)[_0x2fa287(0x3de)](v[_0x2fa287(0x5a4)]());}['editingUnit'](_0x273d0d){const _0x5d018a=_0x3b22f;this['_selfUnitIDs'][_0x5d018a(0x45a)]===0x0&&this[_0x5d018a(0x484)](),this['_selfUnitIDs'][_0x5d018a(0x405)](_0x273d0d),this[_0x5d018a(0x267)]({'type':0x0,'memberID':this[_0x5d018a(0x206)],'unitIDs':[_0x273d0d],'isForwarded':!0x1});}['disposeUnit'](_0x2288ab){const _0x47aafc=_0x3b22f;this[_0x47aafc(0x2c2)][_0x47aafc(0x2cc)](_0x2288ab),this['_selfUnitIDs']['size']===0x0&&this[_0x47aafc(0x566)]&&window[_0x47aafc(0x28f)](this[_0x47aafc(0x566)]);}[_0x3b22f(0x341)](){const _0x2578d9=_0x3b22f;this[_0x2578d9(0x283)](a[_0x2578d9(0x526)](v[_0x2578d9(0x2b9)](window,_0x2578d9(0x4c8))[_0x2578d9(0x42c)](_0x1af7d4=>{const _0x11687a=_0x2578d9;if(_0x1af7d4['key']!==tt||!_0x1af7d4[_0x11687a(0x3bc)])return;const _0x221c36=JSON[_0x11687a(0x4f1)](_0x1af7d4[_0x11687a(0x3bc)]);this[_0x11687a(0x1f6)](_0x221c36);}))),window[_0x2578d9(0x4e8)]('unload',()=>this[_0x2578d9(0x267)]({'type':0x1,'memberID':this[_0x2578d9(0x206)],'unitIDs':Array[_0x2578d9(0x1e8)](this[_0x2578d9(0x2c2)])}));}[_0x3b22f(0x1f6)](_0x121a09){const _0x36a55b=_0x3b22f;switch(_0x121a09[_0x36a55b(0x331)]){case 0x0:this[_0x36a55b(0x2c9)](_0x121a09);break;case 0x1:this['_handleLeaveEvent'](_0x121a09);break;case 0x2:this[_0x36a55b(0x390)](_0x121a09);break;}}[_0x3b22f(0x2c9)](_0x230686){const _0x3d718c=_0x3b22f,{unitIDs:_0x562680,memberID:_0x439466,isForwarded:_0x1c868b}=_0x230686;_0x562680[_0x3d718c(0x339)](_0x3dc276=>{const _0x454968=_0x3d718c;if(!_0x1c868b&&this[_0x454968(0x22d)]['has'](_0x3dc276)&&this['_ensureSubject'](_0x3dc276)['next'](0x1),!this[_0x454968(0x22d)]['has'](_0x3dc276)||!this[_0x454968(0x22d)]['get'](_0x3dc276)[_0x454968(0x3e5)](_0x439466)){const _0x1ea330=this[_0x454968(0x22d)]['get'](_0x3dc276)||new Set();_0x1ea330[_0x454968(0x405)](_0x439466),this[_0x454968(0x22d)]['set'](_0x3dc276,_0x1ea330),this[_0x454968(0x47f)](_0x439466);}}),_0x1c868b||this[_0x3d718c(0x267)]({'type':0x0,'memberID':this[_0x3d718c(0x206)],'unitIDs':[...this[_0x3d718c(0x2c2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5c17bc){const _0x42552b=_0x3b22f;this[_0x42552b(0x4a0)](_0x5c17bc);const _0x356b65=window[_0x42552b(0x576)](()=>{const _0x2996b1=_0x42552b;this['_unitOnClients'][_0x2996b1(0x339)](_0x2cd193=>{const _0x42cd89=_0x2996b1;_0x2cd193[_0x42cd89(0x2cc)](_0x5c17bc);});},et*0x2);this[_0x42552b(0x389)]['set'](_0x5c17bc,_0x356b65);}[_0x3b22f(0x4a0)](_0x57083f){const _0x5f15e0=_0x3b22f;if(this[_0x5f15e0(0x389)]['has'](_0x57083f)){const _0x3c49c6=this[_0x5f15e0(0x389)]['get'](_0x57083f);_0x3c49c6&&window[_0x5f15e0(0x475)](_0x3c49c6),this[_0x5f15e0(0x389)]['set'](_0x57083f,null);}}[_0x3b22f(0x4b1)](_0x1876da){const _0x5b568e=_0x3b22f,{memberID:_0x33ca7f,unitIDs:_0x15c036}=_0x1876da;_0x15c036[_0x5b568e(0x339)](_0x162322=>{const _0x4c5277=_0x5b568e;var _0x37e004;const _0xce3d33=this['_unitOnClients'][_0x4c5277(0x34d)](_0x162322);_0xce3d33&&(_0xce3d33[_0x4c5277(0x2cc)](_0x33ca7f),(_0x37e004=this['_ensureSubject'](_0x162322))==null||_0x37e004[_0x4c5277(0x52d)](_0xce3d33['size']===0x0?0x0:0x1));}),this[_0x5b568e(0x4a0)](_0x33ca7f);}[_0x3b22f(0x390)](_0x3e7dca){this['_scheduleClearOtherTimer'](_0x3e7dca['memberID']);}['_send'](_0x3ba1ee){const _0x5bf9df=_0x3b22f;localStorage[_0x5bf9df(0x307)](tt,JSON[_0x5bf9df(0x56d)](_0x3ba1ee));}[_0x3b22f(0x484)](){const _0x280008=_0x3b22f;this[_0x280008(0x566)]=window[_0x280008(0x507)](()=>{const _0x10f7f4=_0x280008;this[_0x10f7f4(0x267)]({'type':0x2,'memberID':this[_0x10f7f4(0x206)]});},et);}[_0x3b22f(0x26e)](_0x3c0c6f){const _0x466285=_0x3b22f;return this[_0x466285(0x419)][_0x466285(0x3e5)](_0x3c0c6f)||this['_unitStatus'][_0x466285(0x305)](_0x3c0c6f,new v[(_0x466285(0x502))](0x0)),this[_0x466285(0x419)][_0x466285(0x34d)](_0x3c0c6f);}}function Tt(_0x4a20a1){const _0x4850c7=_0x3b22f;let _0x4622f0='';for(const _0x1a189d of _0x4a20a1){const {startOffset:_0x3fdea7,endOffset:_0xec157b,isActive:_0x3af91b}=_0x1a189d;_0x4622f0[_0x4850c7(0x291)]&&(_0x4622f0+=','),_0x4622f0+=_0x3fdea7+':'+_0xec157b+':'+(_0x3af91b?'1':'0');}return _0x4622f0;}function Us(_0x4c095e){const _0x577fa6=_0x3b22f,_0x33c5c2=_0x4c095e[_0x577fa6(0x4d7)](','),_0x52d33f=[];for(const _0x389ab5 of _0x33c5c2){const [_0x510e0b,_0x47aa66,_0x39391d]=_0x389ab5[_0x577fa6(0x4d7)](':');_0x52d33f[_0x577fa6(0x1ed)]({'startOffset':Number(_0x510e0b),'endOffset':Number(_0x47aa66),'collapsed':_0x510e0b===_0x47aa66,'isActive':_0x39391d==='1'});}return _0x52d33f[_0x577fa6(0x301)](_0x29f209=>_0x29f209[_0x577fa6(0x48b)])||(_0x52d33f[0x0][_0x577fa6(0x48b)]=!0x0),_0x52d33f;}class Ye extends a[_0x3b22f(0x398)]{constructor(){const _0x3f396c=_0x3b22f;super(...arguments),d(this,_0x3f396c(0x3fb),new v['BehaviorSubject'](null)),d(this,_0x3f396c(0x45e),this[_0x3f396c(0x3fb)][_0x3f396c(0x56e)]());}['syncEditingCollabCursor'](_0x4a42b6){const _0x364fee=_0x3b22f,{unitID:_0x396427,memberID:_0x3f3417,textRanges:_0x328baa}=_0x4a42b6,_0x225384=Tt(_0x328baa),_0x4489eb={'unitID':_0x396427,'memberID':_0x3f3417,'selection':_0x225384};this[_0x364fee(0x3fb)][_0x364fee(0x52d)](_0x4489eb);}}var Ps=Object[_0x3b22f(0x1ff)],ws=Object[_0x3b22f(0x246)],Ms=(_0x4664e3,_0x2e0164,_0x2a1c1d,_0x1af101)=>{for(var _0x188859=_0x1af101>0x1?void 0x0:_0x1af101?ws(_0x2e0164,_0x2a1c1d):_0x2e0164,_0x57f2db=_0x4664e3['length']-0x1,_0x1b9ee0;_0x57f2db>=0x0;_0x57f2db--)(_0x1b9ee0=_0x4664e3[_0x57f2db])&&(_0x188859=(_0x1af101?_0x1b9ee0(_0x2e0164,_0x2a1c1d,_0x188859):_0x1b9ee0(_0x188859))||_0x188859);return _0x1af101&&_0x188859&&Ps(_0x2e0164,_0x2a1c1d,_0x188859),_0x188859;},st=(_0x8a15c3,_0x24ca50)=>(_0xf22e6a,_0xc56421)=>_0x24ca50(_0xf22e6a,_0xc56421,_0x8a15c3);let me=class{constructor(_0x5615cd,_0x4294f0){const _0x322686=_0x3b22f;this[_0x322686(0x397)]=_0x5615cd,this[_0x322686(0x294)]=_0x4294f0;}[_0x3b22f(0x4fb)](_0x24b640){const _0x6435e6=_0x3b22f;var _0x588f17;const _0x20263e=this[_0x6435e6(0x397)]['get'](V['DocSelectionManagerService']),_0x1a6054=(_0x588f17=_0x20263e[_0x6435e6(0x37b)]())!=null?_0x588f17:[];if(_0x1a6054[_0x6435e6(0x291)]===0x0)return;const _0x5241c1=[{'id':_0x6435e6(0x29f),'params':{'unitId':_0x24b640[_0x6435e6(0x40e)],'actions':null,'textRanges':_0x1a6054}}],_0x2b6893=this[_0x6435e6(0x294)][_0x6435e6(0x261)](_0x24b640,_0x5241c1);if(!_[_0x6435e6(0x3db)](_0x2b6893))throw _0x2b6893[_0x6435e6(0x49d)];const _0x454877=_0x2b6893['m2Prime'][0x0][_0x6435e6(0x3b6)]['textRanges'];Array[_0x6435e6(0x33f)](_0x454877)&&_0x454877['length']&&_0x20263e[_0x6435e6(0x4b8)](_0x454877,!0x1);}};function _0x1d05(){const _0x5ec935=['loadOfflineData','_entities','transformIMECache','_beforeCloseService','_collaborationPaused','toString','ALREADY_EXISTS','collabSubmitChangesetUrl','react','getCurrentUnitForType','history','addEventListener','[PendingState]:\x20received\x20rejection.','AWAITING_WITH_PENDING','NOT_COLLAB','_memberService','touchDependencies','assignAColorForMemberID','INGEST','_initStatusListener','parse','dispose','_registerDependencies','getCollabCursors$','JOINING','Tooltip','DataLoaderController','_instanceService','APPLY_REVISION_CONFILICT','ERROR_EXCEED_SIZE','transformSelections','/collaborator','unit-cache-','useObservable','action','867116ItzxUp','/universer-api/snapshot/','BehaviorSubject','_imageSourceCache','getConfig','error$','[OfflineState]:\x20received\x20rejection.','setInterval','SessionStatus','result','reduce','evenodd','SHOULD_CLOSE_CONN','collaboration_new_changeset','_socket$','defs','IContextService','put','INTERNAL_ERROR','Error\x20on\x20receiving\x20event','_initModules','_executeRemoteChangeset','_clearCollaborationTimeoutTimer','UNDEFINED','isTransformChangesetsSuccess','IUndoRedoService','_handler','_saveCache','USERS_LEAVE','SEND_CHANGESET_TIMEOUT_KEY','onPointerMove$','_labelPosition','_drawTextRange','saveSnapshot','_localCacheService','handleInsertRangeMoveRight','getUnitOnRev','_sendingTimer','toDisposable','debounce','changesets','object','DocIMEInputManagerService','getUnitId','sheetID','next','DependentOn','DesktopCollaborationStatusDisplayController','/block/','_getSnapshotAPIPrefix','toRgbString','concat','getTime','_onRemoteACK','getUndoRedoMutationParamsCache','getSheetBlock','_scheduleCollaborationTimeoutTimer','_createSocket','/-/object/-/batch_allowed','SetWorksheetActivateCommand','_onJoinRoomEvent','resolve','univer-online-status','hasOwnProperty','findNodePositionByCharIndex','COLORS','interceptor','parseProtocolChangeset','pending','toStringTag','_commentService','div','_onRemoteChangeset','_updateURLWithCurrentState','_localStorageService','originalMeta','UniverCollaborationClientPlugin','YUUMI_UNABLE_LOAD_URL','enableLocalCache','entries','url(#on-line-single_clip0_910_349)','_initMergeInterceptor','0\x200\x2017\x2016','_toggleOnline','function','unitId\x20is\x20not\x20found','_getSheetObject','[CollaborationSessionService]','editingUnit','Vector2','sessionStatus','XHRHTTPImplementation','_transformStack','onSendChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','SnapshotServerOverHTTPService','_updateCollabCursors','startsWith','getCoordByCell','propertyIsEnumerable','UserManagerService','includes','_heartbeatTimer','stopTime','getUnitStatus$','_transformUndoredo','RETRY_CONNECTING_MAX_COUNT','_assignedColors','concatMap','stringify','asObservable','CONNECTOR_DATA_TOO_LARGE','synced','_startCollaboration','CollaborationSession','_scene','SetTextSelectionsOperation','UNIVER_SLIDE','setTimeout','_removeRoom','requireSession','rgba(255,\x20255,\x20255,\x200.01)','roles','map','_anchorDot','ImageUploadStatusType','moveTo','setParam','COMPRESS_MUTATION_APPLY','_cursor','_onRemoteRejected','LocaleService','_loadDoc','saveChangeset','onload','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','mergeOverrideWithDependencies','/-/object/list','registerRefRange','_type','enableOfflineEditing','NodePositionConvertToCursor','_getCtorByUniverType','clipPath','_notificationService','@univerjs/docs-ui','setShapeProps','_transformPreviousActiveRange','_colorAssignService','startColumn','3757869ONEMxK','getMemberID','memberID','_singleActiveUnitService','_telemetryService','_joinRoom','VIEW_MAIN','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','conflict.content','unit','TEXT_RANGE_LAYER_INDEX','ImageSourceType','0\x200\x2016\x2016','_getSaveTimeout','distinctUntilChanged','handleInsertRow','InsertColCommandId','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_render','encodeURIComponent','permissionRejEvent','url','SUBMIT_CHANGESET','IConfigService','HTTPService','_getMergeRange','commentUpdateEvent','_remoteChangesetQueue','MergeInterceptorFactory','getItem','MessageType','submit\x20changeset\x20error!','UPDATE_CURSOR','LIVESHARE_NEW_HOST','forwardRef','take','measureText','612743RJtBQn','univer-online-status-icon','_onMessage','onTransformChange$','roomMembers$','_cursorShapes','_getSendChangesetTimeout','fetchMissingChangesets','?url=','connection\x20error','OffLineSingle','Optional','flatMap','jiqing500','UNIVER_UNKNOWN','image/jpg','isTransformMutationFailure','LICENSE_DISTRO_REJECTED','getImageSourceCache','m1Prime','UNIVER_PROJECT','[CollaborationSessionService]:\x20socket\x20error','online','WorkbookEditablePermission','attrs','c1Prime','getUnitType','_state','column','/role','red300','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','find','drawWith','min','commentUpdate$','off-line-single_clip0_910_343','defIds','#fff','parseChangesetToProtocol','createInstance','_substituteRedoStack','liveShareNewHost','LOCAL_CACHE_INTERVAL_KEY','getTypeOfUnitAdded$','ERROR_IMAGE','_disabled','awaitingChangeset','_initCloseConn','_onConnectionFailed','DEFAULT_FILE_NAME','SheetCollaborationEntity','COMPRESS_MUTATION_SEND','_scheduleSaving','image/bmp','_isPermissionRej','_redoStacks','reverse','listRoles','on-line-single','from','color','append','title','@univerjs/design','push','_commentUpdate$','_collaborationSessionService','height','sessionStatus$','/universer-api/authz','syncEditingCollabCursor','getUnit','save','_handleEvent','retryConnectingInterval','collaboration-session-retry','@univerjs/docs','message$','_timeoutTimer','_drawRectRange','_refRangeService','TOO_MANY_REQUESTS','defineProperty','_updateStatus','INVALID_ARGUMENT','[PendingState]:\x20received\x20acknowledgement.','withCredentials','COMPLETION_FINISHED','objectID','_id','_hovered','/rev/','requestParams','_registerRenderDependencies','colorChannel1','getDeserializedSheetBlock','slice','responseType','unshift','_getRedoStack','AUTHZ_URL_KEY','members','LocalUndoRedoService','_snapshotServerService','_sheetTransformSelectionsService','initWorkbookPermissionChange','WebURLService','_socket','url(#off-line-single_clip0_910_343)','SheetSkeletonManagerService','method','encode','_cachedData','UPDATE_PERMISSION_OBJ','collaboration.closeRoom','_http','post','M0\x200H16V16H0z','_schedule','show','enableSingleActiveInstanceLock','onMissedChangesetFetched','SNAPSHOT_SERVER_URL_KEY','_collaborationTimeoutTimer','getSkeleton','workbook','collabStatus.notCollab','fetchMiss','_unitOnClients','onRemoteAck','ONLINE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','throttleTime','SNAPSHOT_INVALID_SNAPSHOT','HEARTBEAT','connectInjector','_checkMissing','setAlpha','_incrementRevisionNumber','indexOf','\x20to\x20','@univerjs-pro/collaboration','JOIN','reject','_onConflict','_setupBeforeClosingHandler','UNRECOGNIZED','_sendHeartbeat','[OfflineState]:\x20received\x20changeset.','getActiveSheet','loadSheet','_initUnitPermissionChange','createCollaborator','getOwnPropertyDescriptor','onPointerLeave$','_eventUnsubscribe','clear','onTransformSelections','updateCollaborator','_getScale','2221419nSJKjM','leaveEvent','getTypeOfUnitDisposed$','Unknown\x20user','@univerjs-pro/license','Injector','...','create','getFocusedUnit','_clearRedo','ThresholdInterceptorFactory','handleMoveRange','assign','registerComponent','rxjs','_docTransformSelectionsService','_urlService','range','Subject','_compressMutationService','transformMutationsWithChangeset','replace','_collaborationController','SheetsSelectionsService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_configService','_send','save\x20fail\x20reason\x20is\x20','_fetchMissChangesets','_name','IUniverInstanceService','SheetPermissionInitController','triggerDblclick','_ensureSubject','transformByState','_httpService','conflict.title','CollaborationSocketService','setWaitCount','b64DecodeUnicode','CHANGESET_REVISION_CONFILICT','_onCombEvent','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','\x20in\x20_schedule.','IBeforeCloseService','onPointerEnter$','popstate','_collabSessionService','Tools','newCsEvent','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','ICollaborationSocketService','_startDocCollabCursor','NodePositionConvertToRectRange','disposeWithMe','fetchThroughInterceptors','_rescheduleHeartbeat','_handleHover','getSheetObject','_roomMembers$','focused$','saveImage','_transformIMECache','isValidRectRange','CommentService','Shape','clearInterval','MSG_FOR_ERROR','length','delay','_config','_transformService','fillText','LOCAL_CACHE_INTERVAL','removeParam','CollaborationSessionService','Rect','_clearScheduledTask','transformChangesets','_getLoginPath','getViewport','[SyncedState]:\x20received\x20rejection.','doc.mutation.rich-text-editing','_listenToOfflineEvent','_onCursorDelete','file','getCurrentUser','textEncoder','socketService','PENDING','Module','UNKNOWN_CODE','getValue','InsertRangeMoveDownCommandId','_color','getUniverSheetInstance','collabStatus.fetchMiss','LICENSE_EXPORT_SIZE_EXCEEDED','onRemoteChangeset','OTHER_CLIENTS_EDITING','HEARTBEAT_INTERVAL_KEY','actions','_ws','subUnitId','EffectRefRangId','resend','translate(.97)','ranges','fromEvent','hide','collaborators','serializeCombRequest','HELLO','IRenderManagerService','session','none','FETCH_MISSING','_selfUnitIDs','objectType','merge','transformMutation','_onConnectionOpen','8ZOkjun','socket$','_handleJoinEvent','_unlockTransition','CollaborationEntity','delete','_clearLocalCache','ISnapshotServerService','_onRecvEvent','userID','OnLineSingle','saveOfflineData','IDLE','ERROR_IMAGE_TYPE','_revisionService','resourceIDs','collaMsg','_context','_snapshotService','COLLAB_WEB_SOCKET_URL','_getDownloadEndpointURL','_removeCollabCursors','onCommandExecuted','COLLAB_SUBMIT_CHANGESET_URL_KEY','_exhaustRemoteChangesetQueue','@univerjs/rpc','dispose$','_decreaseWaiting','IMessageService','LICENSE_IMPORT_SIZE_EXCEEDED','INotificationService','LEAVE','_disableEditing','m2Prime','liveShareOperation','toggleOffline','APPLY_REJECT','complete','incrementRevOfUnit','origin','uploadFileServerUrl','RECV','getSheetBySheetId','fill','transformUndoRedo','_sessions','on-line-single_clip0_910_349','awaiting_with_pending','_getUndoStack','univer-pro.collaboration-client-socket-service','_unitID','getCollabEntity','_transitionLocked','executeCommand','getRelativeToViewportCoord','RemoveRowCommandId','addObject','IPermissionService','some','_createHandler','getMember','_cursors','set','updateCursorEvent','setItem','ILogService','unknown','body','onlineStatus','CONFLICT','getCollabEntity$','univer-pro.collaboration-client.single-active-unit-service','getRangePointData','/object/','_members','mapDocumentTypeToUniverType','FromArray','InsertRangeMoveRightCommandId','visibilitychange','_localeService','Undefined','_pendingMutations','_lockTransition','_initCommandExecutedListener','compose','engine','_messageService','max','/universer-api/stream/file/upload','debug','path','CollaborationController','ICommandService','close$','[OfflineState]:\x20received\x20acknowledgement.','x-univer-host','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','exhaustSavingTask','NEW_CHANGESETS','routeKey','SetDocZoomRatioOperation','useDependency','confirm','current','ws://127.0.0.1:8000/universer-api/comb/connect','_sheetSkeletonManagerService','type','UNIVER_DOC','disableLocalCache','_updateState','_docSyncEditingCollabCursorService','socket\x20close','Rectangle','_session','forEach','_getSignURL','collabWebSocketUrl','SetSelectionsOperation','FileId','/new_changes','isArray','_univerInstanceService','_init','lineTo','deepClone','[CollaborationState]:\x20apply\x20error!','removeMember','every','WebSocketService','/resources','updateMember','getImage','_retryCount','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','get','_clearHeartbeatTimer','AWAITING','currentSkeleton$','_lastPointer','_transformUndoRedoStack','location','pushState','off-line-single','NO_OTHER_CLIENTS_EDITING','onTransformRemoteChangesetByIMECache','init','reconnect','ColorKit','DisposableCollection','_colorIndex','substring','fromCollab','{fileID}','getRenderById','registerBeforeClose','UNKNOWN_CMD','univer-online','json','/universer-api/oidc/authpage','name','SNAPSHOT_URL_KEY','_onUserJoin','_backgroundColor','_setupSubUnitSync','copyFileMeta','update','_uiPartsService','CHANGESET_REJ','conflict','_initEventListeners','updateOfflineData','restore','onSyncEditingCollabCursor','state','endColumn','_renderManagerService','onRemoteRej','ITransformService','gold400','/unit/','getDocRanges','takeUntil','_updateLocalCursor','infoRsp','_toggleOffline','UNAUTHENTICATED','src','backgroundColor','permission.content','@univerjs/network','useRef','status$','joinRsp','BuiltInUIPart','_clearOtherTimers','_onRefRangeChange','AuthzIoHttpService','_applyRemoteChangeset','DeleteRangeMoveLeftCommandId','UniverInstanceType','fillStyle','_handleHeartbeatEvent','useCallback','_candidateSocket','941395XkwyOm','_socketReady','then','handleInsertRangeMoveDown','_injector','RxDisposable','IURLService','_listenToOnlineEvent','/universer-api/comb','_tryReconnect','_scheduleTimestamp','1em','_hideTimer','_initStatusComponent','createSocket','mutations','YUUMI_SUBSCRIPTION_NOT_FOUND','isInternalEditorID','getRoom','USERS_ENTER','PERMISSION_DENIED','rev','_HTTPService','sendChangesetTimeout','hovered','_range','subunit','collabStatus.offline','_saveTaskMap','_stopTelemetryCollaborationNewChangeset','arc','socket\x20open.','getSheetId','\x20-\x20','event$','params','Warning','CommandType','onMouseMove','HTTPRequest','appendMutation','newValue','bottom','subscribeEvent','telemetry\x20info\x20is\x20not\x20initialized','UNIVER_SHEET','icon','_waitCount','handleIRemoveCol','selections','send','closeSession','YUUMI_RATE_OVER_LIMIT','_showConflictNotification','catch','[DataLoaderController]','_clearTimeoutTimer','eventID','createIdentifier','state$','@univerjs/engine-render','with','xlink:href','status','_getAnchorBounding','unsubscribe','SheetCollabCursorShape','POST','_waitForHeartbeatResponse','fetch_missing','_themeService','collaboratorID','isTransformMutationsWithChangesetSuccess','/universer-api/file/{fileID}/sign-url','_startSheetCollabCursor','pipe','unitId','batchAllowed','RegularPolygon','EmptyMutation','addImageSourceCache','currentTheme$','has','round','[CollaborationSession]','onMissingChangesets','serializeRangeWithSheet','OFFLINE','LOGIN_URL_KEY','close','@univerjs/drawing','CollaborationStatus','registerHTTPInterceptor','number','purple300','DeleteRangeMoveUpCommandId','_telemetryInfo','getCurrentSelections','list','onCommentUpdate','url(#$1','@univerjs/core','filter','_socketMessageSubscription','_collabCursorState$','trim','_entityInit$','switchMap','toggleOnline','_sessionStatus$','fromEventSubject','NOT_FOUND','DocCollaborationEntity','_cursorInfo$','add','_replaceFileID','values','csRejEvent','generateRandomId','string','getInterceptPoints','isEditing','revision','unitID','_tryEnsureSocket','_onFetchMissResult','roomInfos','href','_getAPIPrefixPath','isPermissionRej','_transformSelections','FETCH_MISS','combineLatest','signUrlServerUrl','_unitStatus','localeService','_drawAnchor','collab-text-range-','MUTATION','text','setConfig','/allowed','_syncEditingCollabCursorService','getParam','_onUserLeave','RETRY_CONNECTING_MAX_COUNT_KEY','enableAuthServer','_onCursorUpdate','getColor','CHANGESET_ACK','/object','fetching\x20missing\x20changesets\x20from\x20','CollaborationStatusDisplay','subscribe','getCurrentRevOfUnit','shareReplay','debounceTime','APPLY_PERMISSION_DENIED','COMMENT_UPDATE','LIVESHARE_REQUEST_HOST','SNAPSHOT_HAS_BEEN_REMOVED','SYNCED','session.will-retry','joinEvent','_userManagerService','FAIL','c2Prime','collabStatus.syncing','_createInitialState','_submitChangeset','tag','_awaitingChangeset','BASE64','_retryConnectingTimer','_refreshCollabCursors','_updateSubUnitFromURLParams','univerjs-icon\x20univerjs-icon-','_permissionService','_logService','_acknowledgedAwaitingChangeset','_initResize','svg','updatePermissionPoint','Univer','RefRangeService','CollaborationEvent','LICENSE_MAX_UNITS_EXCEEDED','children','collaboration.single-unit.warning','RevisionService','_getAPIPrefix','/universer-api/snapshot','sheetId','4417510qZoeCW','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','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','_shapes','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_docTransformIMECacheService','size','data','_collabCursorController','HEARTBEAT_TIMEOUT_KEY','collabCursorState$','offline','Error','CompressMutationService','LocalCacheService','_sendHeartbeatTimer','_docSkeletonManagerService','pauseCollaboration','_online','ITelemetryService','_hover','_roomMembers','_anchor','_clearUndo','_substituteUndoStack','_textBubble','onStateChange','_throwTelemetryCollaborationNewChangeset','APPLY_NON_SEQUENTIAL_REVISION','transformRemoteChangeset','startRow','@univerjs/sheets','setCurrentUser','clearTimeout','selection','_onLocalMutation','currentColor','runRefRangeMutations','deserializeToCombResponse','LIVESHARE_TERMINATE','_shouldReportTelemetry','failed\x20to\x20apply\x20missed\x20changesets!','getActiveRange','_scheduleClearOtherTimer','univer-online-status-title','width','random','permission.title','_scheduleHeartbeat','24qkdJuj','open$','whenReady','HEARTBEAT_INTERVAL','HEADER_MENU','_change$','isActive','readAsDataURL','RichTextEditingMutation','makeDirty','InsertRowCommandId','_getCurrentRevision','\x0aCurrent:\x20','Inject','180834HJcsna','createElement','DocSkeletonManagerService','awaiting','MoveRangeCommandId','searchParams','displayName','cursorInfo','InsertSheetMutation','@univerjs/telemetry','error','onStarting','code','_removeClearOtherTimer','getAncestorScale','PERMISSION_REJ','ImageIoService','textRanges','onlineStatusTitle','&assign=','DocSelectionManagerService','COLLAB_SUBMIT_CHANGESET_URL','addObjects','cursorInfo$','ThemeService','collab-client.tooltip.reconnect','_updateLocalCache','_syncEditingCollabCursor','rxjs/operators','Disposable','_handleLeaveEvent','IRemoteInstanceService','black','_replayCachedMutations','registerRenderModule','_undoRedoService','HEARTBEAT_TIMEOUT','replaceTextRanges','_commandService','UnitSnapshot','isTransformMutationsWithChangesetFailure','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','UnitEmbedded','roomMembers','HttpImport','/fetchmissing?from=','baseRev','JSONX','pluginName','registerOnClose','row','IUIPartsService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','storage','collab-text-anchor-','_event$','urlChange$','_draw','apply','_getUploadFileURL','prototype','call','allowed','_initRequestHeader','onReady','cmd','_status$','_state$','split','getMergeData','top','_queuedRemoteChangesets','idSuffix','sheets'];_0x1d05=function(){return _0x5ec935;};return _0x1d05();}me=Ms([st(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),st(0x1,_[_0x3b22f(0x378)])],me);const Ns=new Set([C[_0x3b22f(0x49b)]['id']]);function it(_0x25696a,_0x595084,_0x434828,_0x3836e6,_0x49bc5c){const _0x4b8579=_0x3b22f;var _0x5aab71,_0x5bfbc6,_0x40a952,_0xe5719;const _0x3cb025=[];for(const _0x15a786 of _0x25696a)if(Ns[_0x4b8579(0x3e5)](_0x15a786['id'])){if(_0x3cb025[_0x4b8579(0x291)]>0x0)break;_0x3cb025[_0x4b8579(0x1ed)](_0x15a786);break;}else _0x3cb025[_0x4b8579(0x1ed)](_0x15a786);const _0x303fe7=(_0x5bfbc6=(_0x5aab71=_0x49bc5c['getCurrentUser']())==null?void 0x0:_0x5aab71[_0x4b8579(0x2d0)])!=null?_0x5bfbc6:_0x4b8579(0x309),_0x427a5c=(_0xe5719=(_0x40a952=_0x49bc5c[_0x4b8579(0x2a3)]())==null?void 0x0:_0x40a952[_0x4b8579(0x598)])!=null?_0xe5719:_0x4b8579(0x309);return{'changeset':{'unitID':_0x595084,'type':_[_0x4b8579(0x312)](_0x434828[_0x4b8579(0x5d5)](_0x595084)),'baseRev':_0x3836e6[_0x4b8579(0x42d)](_0x595084),'revision':0x0,'userID':_0x303fe7,'memberID':_0x427a5c,'mutations':_0x3cb025},'pendingMutations':_0x25696a[_0x4b8579(0x20d)](_0x3cb025['length'])};}function As(_0x57ca4d,_0x4417eb,_0xdea9b4,_0x4f540d,_0x4647e6){const _0x29ddfe=_0x3b22f;var _0x4c6275,_0x32a64a,_0x461819,_0x4f00e2;const _0x5676a6=[_0x57ca4d[_0x29ddfe(0x50a)]((_0x2f6609,_0x24fd71)=>{const _0x557a04=_0x29ddfe;var _0x3cfe69;const {id:_0x4eb605}=_0x2f6609,{id:_0x2c478e,type:_0x17e491}=_0x24fd71,_0x14d5ea=(_0x3cfe69=_0x2f6609['params'])!=null?_0x3cfe69:{'actions':null},_0x27f32c=_0x24fd71['params'];if(_0x4eb605&&_0x4eb605!==_0x2c478e)throw new Error(_0x557a04(0x455)+_0x4eb605+_0x557a04(0x3b4)+_0x2c478e+'.');return{..._0x2f6609,'id':_0x2c478e,'type':_0x17e491,'params':{'unitId':_0x27f32c[_0x557a04(0x3df)],'textRanges':_0x27f32c[_0x557a04(0x4a4)],'actions':a[_0x557a04(0x4c2)][_0x557a04(0x31b)](_0x14d5ea['actions'],_0x27f32c['actions'])}};},{})],_0x475966=(_0x32a64a=(_0x4c6275=_0x4647e6['getCurrentUser']())==null?void 0x0:_0x4c6275['userID'])!=null?_0x32a64a:_0x29ddfe(0x309),_0x1b4036=(_0x4f00e2=(_0x461819=_0x4647e6[_0x29ddfe(0x2a3)]())==null?void 0x0:_0x461819[_0x29ddfe(0x598)])!=null?_0x4f00e2:_0x29ddfe(0x309);return{'changeset':{'unitID':_0x4417eb,'type':_[_0x29ddfe(0x312)](_0xdea9b4[_0x29ddfe(0x5d5)](_0x4417eb)),'baseRev':_0x4f540d[_0x29ddfe(0x42d)](_0x4417eb),'revision':0x0,'userID':_0x475966,'memberID':_0x1b4036,'mutations':_0x5676a6},'pendingMutations':[]};}const Ls={'id':C[_0x3b22f(0x3e2)]['id'],'type':a[_0x3b22f(0x3b8)][_0x3b22f(0x41d)],'params':{}};var js=Object['defineProperty'],$s=Object['getOwnPropertyDescriptor'],z=(_0xd3d7d8,_0x5a4267,_0xf6b739,_0x27ffdc)=>{const _0x2d74ff=_0x3b22f;for(var _0x3f98b4=_0x27ffdc>0x1?void 0x0:_0x27ffdc?$s(_0x5a4267,_0xf6b739):_0x5a4267,_0x17fd46=_0xd3d7d8[_0x2d74ff(0x291)]-0x1,_0x73812;_0x17fd46>=0x0;_0x17fd46--)(_0x73812=_0xd3d7d8[_0x17fd46])&&(_0x3f98b4=(_0x27ffdc?_0x73812(_0x5a4267,_0xf6b739,_0x3f98b4):_0x73812(_0x3f98b4))||_0x3f98b4);return _0x27ffdc&&_0x3f98b4&&js(_0x5a4267,_0xf6b739,_0x3f98b4),_0x3f98b4;},g=(_0x166fce,_0x139423)=>(_0x24e020,_0x37a106)=>_0x139423(_0x24e020,_0x37a106,_0x166fce),y=(_0xd344dc=>(_0xd344dc['NOT_COLLAB']='not_collab',_0xd344dc['SYNCED']=_0x3b22f(0x570),_0xd344dc['PENDING']='pending',_0xd344dc['AWAITING']=_0x3b22f(0x496),_0xd344dc[_0x3b22f(0x4ea)]=_0x3b22f(0x2f6),_0xd344dc[_0x3b22f(0x416)]=_0x3b22f(0x3d8),_0xd344dc[_0x3b22f(0x30c)]=_0x3b22f(0x36f),_0xd344dc[_0x3b22f(0x3ea)]='offline',_0xd344dc))(y||{});class J{constructor(_0x13c117,_0x5991a6,_0x4767e4,_0x11be97,_0x20981b,_0x466441,_0x58c5f4,_0x395477,_0x347aee){const _0x1b1722=_0x3b22f;d(this,_0x1b1722(0x43e),null),d(this,'_pendingMutations',[]),(this[_0x1b1722(0x40e)]=_0x13c117,this[_0x1b1722(0x331)]=_0x5991a6,this[_0x1b1722(0x51a)]=_0x20981b,this['_commandService']=_0x466441,this[_0x1b1722(0x4b6)]=_0x58c5f4,this[_0x1b1722(0x2d5)]=_0x395477,this[_0x1b1722(0x522)]=_0x347aee,this[_0x1b1722(0x43e)]=_0x4767e4,this[_0x1b1722(0x318)]=_0x11be97);}['_checkMissing'](_0x476e48){const _0x47e19f=_0x3b22f,_0x55fc4d=this['_revisionService'][_0x47e19f(0x42d)](this[_0x47e19f(0x40e)]);return _0x476e48['revision']>_0x55fc4d+0x1?(this[_0x47e19f(0x51a)]['onMissingChangesets']({'from':_0x55fc4d,'to':_0x476e48[_0x47e19f(0x40d)]-0x1}),!0x0):!0x1;}[_0x3b22f(0x569)](_0x144fa8){const _0x3a7d36=_0x3b22f;this['_undoRedoService'][_0x3a7d36(0x2f3)](this[_0x3a7d36(0x40e)],_0x144fa8);}[_0x3b22f(0x415)](_0x55ada7){const _0xdbdc3b=_0x3b22f;var _0x363c87,_0x5393db;(_0x5393db=(_0x363c87=this['_handler'])[_0xdbdc3b(0x24a)])==null||_0x5393db[_0xdbdc3b(0x4d0)](_0x363c87,_0x55ada7);}[_0x3b22f(0x28b)](_0x6308dc){var _0x15206b,_0x10b8d6;return(_0x10b8d6=(_0x15206b=this['_handler'])['onTransformIME'])==null?void 0x0:_0x10b8d6['call'](_0x15206b,_0x6308dc);}['_transformRemoteChangesetByIMECache'](_0x490e36){const _0x4cfc0d=_0x3b22f;var _0x19139d,_0x229305,_0x3b1f9f;return(_0x3b1f9f=(_0x229305=(_0x19139d=this[_0x4cfc0d(0x51a)])[_0x4cfc0d(0x357)])==null?void 0x0:_0x229305[_0x4cfc0d(0x4d0)](_0x19139d,_0x490e36))!=null?_0x3b1f9f:_0x490e36;}[_0x3b22f(0x4ae)](_0x1cea3d){const _0x18635d=_0x3b22f;var _0x263b3e,_0x60ad9b;if(this[_0x18635d(0x331)]===j['UNIVER_DOC']){const {unitID:_0x832911,mutations:_0x6f515b,memberID:_0x15d86f}=_0x1cea3d,_0x204c0a=_0x6f515b[0x0]['params'][_0x18635d(0x4a4)];Array[_0x18635d(0x33f)](_0x204c0a)&&_0x204c0a['length']>0x0&&((_0x60ad9b=(_0x263b3e=this[_0x18635d(0x51a)])['onSyncEditingCollabCursor'])==null||_0x60ad9b['call'](_0x263b3e,{'unitID':_0x832911,'memberID':_0x15d86f,'textRanges':_0x204c0a}));}}[_0x3b22f(0x4ad)](){const _0x2d131e=_0x3b22f;this['_localCacheService'][_0x2d131e(0x371)](this['unitID'],this[_0x2d131e(0x331)],this['_awaitingChangeset'],this[_0x2d131e(0x318)]);}['_getCurrentRevision'](){const _0x2def71=_0x3b22f;return this[_0x2def71(0x2d5)][_0x2def71(0x42d)](this['unitID']);}[_0x3b22f(0x237)](){const _0x138ecc=_0x3b22f;this[_0x138ecc(0x2d5)][_0x138ecc(0x2ed)](this[_0x138ecc(0x40e)]);}[_0x3b22f(0x515)](_0x3ca554){const _0x3e49a3=_0x3b22f;var _0x1b4f1f;const _0x464a26=this['_transformRemoteChangesetByIMECache'](_0x3ca554),_0x462edb=a['sequenceExecute'](_0x464a26[_0x3e49a3(0x3a2)],this[_0x3e49a3(0x4b9)],{'fromCollab':!0x0});if(!_0x462edb[_0x3e49a3(0x509)])throw _0x462edb[_0x3e49a3(0x49d)]instanceof Error?_0x462edb['error']:new Error((_0x1b4f1f=_0x462edb[_0x3e49a3(0x49d)])!=null?_0x1b4f1f:_0x3e49a3(0x344));this[_0x3e49a3(0x28b)](_0x464a26),this['_transformUndoredo'](_0x3ca554),this[_0x3e49a3(0x415)](_0x464a26),this['_syncEditingCollabCursor'](_0x464a26),this[_0x3e49a3(0x237)]();}}let se=class extends J{constructor(_0x2d9ca7,_0x120dc5,_0xdffedc,_0x29b7aa,_0x35a4f1,_0x52f2e8,_0x15817d,_0x55be91,_0x5b34da,_0x530c1e){const _0x47de9=_0x3b22f;super(_0x2d9ca7,_0x120dc5,null,[],_0xdffedc,_0x55be91,_0x15817d,_0x29b7aa,_0x35a4f1),d(this,_0x47de9(0x3d2),_0x47de9(0x570)),(this['_injector']=_0x52f2e8,this[_0x47de9(0x445)]=_0x5b34da,this['_transformService']=_0x530c1e);}[_0x3b22f(0x3bb)](_0x1a6594){const _0x45adfb=_0x3b22f,_0xf97f2c=this[_0x45adfb(0x397)][_0x45adfb(0x5e4)](x,this[_0x45adfb(0x40e)],this['type'],[_0x1a6594],this[_0x45adfb(0x51a)]);return _0xf97f2c[_0x45adfb(0x223)](),_0xf97f2c[_0x45adfb(0x4ad)](),_0xf97f2c;}[_0x3b22f(0x2af)](_0x3725ce){const _0xd5e7fa=_0x3b22f;if(this[_0xd5e7fa(0x235)](_0x3725ce))return this[_0xd5e7fa(0x397)][_0xd5e7fa(0x5e4)](H,this[_0xd5e7fa(0x40e)],this[_0xd5e7fa(0x331)],null,[],null,[_0x3725ce],this[_0xd5e7fa(0x51a)]);try{const _0x2ee259=this['_transformService'][_0xd5e7fa(0x261)](_0x3725ce,[Ls]);if(_[_0xd5e7fa(0x3db)](_0x2ee259)){const {c1Prime:_0x279504}=_0x2ee259;return this['_executeRemoteChangeset'](_0x279504),this;}throw _0x2ee259[_0xd5e7fa(0x49d)];}catch(_0x469d52){return this['_logService'][_0xd5e7fa(0x49d)](_0x469d52),this[_0xd5e7fa(0x23d)](!0x1);}}[_0x3b22f(0x23d)](_0x290d22){const _0x46f18e=_0x3b22f;return this['_injector'][_0x46f18e(0x5e4)](F,this[_0x46f18e(0x40e)],this['type'],null,[],this[_0x46f18e(0x51a)],_0x290d22);}[_0x3b22f(0x22e)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3b22f(0x377)](){const _0x3dec29=_0x3b22f;throw new Error(_0x3dec29(0x29e));}[_0x3b22f(0x2ea)](){const _0x2b6617=_0x3b22f;return this[_0x2b6617(0x397)]['createInstance'](G,this[_0x2b6617(0x40e)],this[_0x2b6617(0x331)],null,[],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}['resend'](){const _0x3da45c=_0x3b22f;throw new Error(_0x3da45c(0x327));}[_0x3b22f(0x22c)](){const _0x3da272=_0x3b22f,_0x270951=this[_0x3da272(0x2d5)][_0x3da272(0x42d)](this[_0x3da272(0x40e)]);return this[_0x3da272(0x51a)][_0x3da272(0x3e8)]({'from':_0x270951,'to':0x0}),this[_0x3da272(0x397)][_0x3da272(0x5e4)](H,this[_0x3da272(0x40e)],this[_0x3da272(0x331)],null,[],null,[],this[_0x3da272(0x51a)]);}};se=z([g(0x3,a['Inject'](_[_0x3b22f(0x450)])),g(0x4,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x5,a[_0x3b22f(0x492)](a['Injector'])),g(0x6,a[_0x3b22f(0x519)]),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a['ILogService']),g(0x9,_['ITransformService'])],se);let x=class extends J{constructor(_0x43b37d,_0x5e3230,_0x1e9bd4,_0x42a490,_0x51afa1,_0xb01cfc,_0x49c0b6,_0x15bf12,_0x8aa958,_0x4cca81,_0x8d6bb,_0x51917c,_0x39bf13,_0x4314a6){const _0x1dd224=_0x3b22f;super(_0x43b37d,_0x5e3230,null,_0x1e9bd4,_0x42a490,_0x4cca81,_0x4314a6,_0xb01cfc,_0x49c0b6),d(this,'status',_0x1dd224(0x544)),d(this,_0x1dd224(0x39d),null),d(this,'_sendingTimer',null),(this['_injector']=_0x51afa1,this['_memberService']=_0x15bf12,this['_logService']=_0x8aa958,this['_configService']=_0x8d6bb,this['_transformService']=_0x51917c,this[_0x1dd224(0x340)]=_0x39bf13);}[_0x3b22f(0x3bb)](_0x27e10a){const _0xa1b5b4=_0x3b22f;return this[_0xa1b5b4(0x318)]['push'](_0x27e10a),this[_0xa1b5b4(0x4ad)](),this;}[_0x3b22f(0x2af)](_0x556e93){const _0x19517b=_0x3b22f;if(this[_0x19517b(0x235)](_0x556e93))return this['_clearScheduledTask'](),this[_0x19517b(0x397)][_0x19517b(0x5e4)](H,this['unitID'],this[_0x19517b(0x331)],null,this[_0x19517b(0x318)],null,[_0x556e93],this['_handler']);try{const _0x1b5be7=this[_0x19517b(0x294)]['transformMutationsWithChangeset'](_0x556e93,this[_0x19517b(0x318)]);if(_[_0x19517b(0x3db)](_0x1b5be7)){const {c1Prime:_0x3ce0a1,m2Prime:_0x1d409b}=_0x1b5be7;this['_executeRemoteChangeset'](_0x3ce0a1);const _0x3cc821=this[_0x19517b(0x397)][_0x19517b(0x5e4)](x,this['unitID'],this[_0x19517b(0x331)],_0x1d409b,this[_0x19517b(0x51a)]);return this[_0x19517b(0x29a)](),_0x3cc821['_schedule'](this[_0x19517b(0x39d)]?Math[_0x19517b(0x31e)](0x0,new Date()['getTime']()-this[_0x19517b(0x39d)]):this[_0x19517b(0x5c1)]()),_0x3cc821;}throw _0x1b5be7[_0x19517b(0x49d)];}catch(_0x186e81){return this[_0x19517b(0x445)]['error'](_0x186e81),this[_0x19517b(0x23d)](!0x1);}}[_0x3b22f(0x22e)](){const _0x40b0e7=_0x3b22f;throw new Error(_0x40b0e7(0x202));}['onRemoteRej'](){const _0x321ffb=_0x3b22f;throw new Error(_0x321ffb(0x4e9));}[_0x3b22f(0x2ea)](){const _0x2cbf8c=_0x3b22f;return this['_clearScheduledTask'](),this[_0x2cbf8c(0x397)][_0x2cbf8c(0x5e4)](G,this['unitID'],this[_0x2cbf8c(0x331)],null,this[_0x2cbf8c(0x318)],this[_0x2cbf8c(0x51a)]);}[_0x3b22f(0x3ff)](){return this;}[_0x3b22f(0x223)](_0x5c075f){const _0x28c955=_0x3b22f,_0x4b56e6=_0x5c075f!=null?_0x5c075f:this[_0x28c955(0x5c1)]();this[_0x28c955(0x39d)]=new Date()[_0x28c955(0x534)](),this[_0x28c955(0x525)]=window[_0x28c955(0x576)](()=>{const _0x53af03=_0x28c955;this['_clearScheduledTask']();let _0x27ebdd=null;switch(this[_0x53af03(0x331)]){case j[_0x53af03(0x3c0)]:{_0x27ebdd=it(this[_0x53af03(0x318)],this['unitID'],this['_univerInstanceService'],this[_0x53af03(0x2d5)],this['_memberService']);break;}case j['UNIVER_DOC']:{this['_pendingMutations'][_0x53af03(0x346)](_0x2c9219=>_0x2c9219['id']===V['RichTextEditingMutation']['id'])?_0x27ebdd=As(this['_pendingMutations'],this[_0x53af03(0x40e)],this[_0x53af03(0x340)],this[_0x53af03(0x2d5)],this[_0x53af03(0x4ec)]):_0x27ebdd=it(this[_0x53af03(0x318)],this[_0x53af03(0x40e)],this[_0x53af03(0x340)],this[_0x53af03(0x2d5)],this[_0x53af03(0x4ec)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x53af03(0x331)]+_0x53af03(0x278));}const {changeset:_0x247111,pendingMutations:_0x4a2163}=_0x27ebdd;this[_0x53af03(0x51a)]['onSendChangeset'](_0x247111);const _0x15a48e=_0x4a2163['length']?this[_0x53af03(0x397)]['createInstance'](k,this[_0x53af03(0x40e)],this[_0x53af03(0x331)],_0x247111,_0x4a2163,this[_0x53af03(0x51a)]):this[_0x53af03(0x397)]['createInstance'](W,this[_0x53af03(0x40e)],this[_0x53af03(0x331)],_0x247111,this[_0x53af03(0x51a)]);_0x15a48e[_0x53af03(0x4ad)](),this[_0x53af03(0x51a)][_0x53af03(0x46e)](this,_0x15a48e);},_0x4b56e6);}['_getSendChangesetTimeout'](){const _0x5018ed=_0x3b22f;var _0x431666;const _0x3e3ba4=this[_0x5018ed(0x266)][_0x5018ed(0x504)](A);return(_0x431666=_0x3e3ba4==null?void 0x0:_0x3e3ba4[_0x5018ed(0x3aa)])!=null?_0x431666:Kt;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x5b78f6=_0x3b22f;this[_0x5b78f6(0x525)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x3b22f(0x23d)](_0x79f4cd){const _0x222335=_0x3b22f;return this[_0x222335(0x29a)](),this[_0x222335(0x397)][_0x222335(0x5e4)](F,this[_0x222335(0x40e)],this['type'],null,this[_0x222335(0x318)],this[_0x222335(0x51a)],_0x79f4cd);}};x=z([g(0x4,a['Inject'](a[_0x3b22f(0x252)])),g(0x5,a['Inject'](_['RevisionService'])),g(0x6,a[_0x3b22f(0x492)](exports['LocalCacheService'])),g(0x7,a[_0x3b22f(0x492)](q)),g(0x8,a[_0x3b22f(0x308)]),g(0x9,a[_0x3b22f(0x323)]),g(0xa,a[_0x3b22f(0x5ad)]),g(0xb,_['ITransformService']),g(0xc,a[_0x3b22f(0x26b)]),g(0xd,a[_0x3b22f(0x519)])],x);let W=class extends J{constructor(_0x17c108,_0x3438d4,_0x288115,_0x245dd3,_0x37c6df,_0x382836,_0x4f469b,_0x2466d3,_0x33066c,_0x4f1a23,_0x5be437){const _0xe75393=_0x3b22f;super(_0x17c108,_0x3438d4,_0x288115,[],_0x245dd3,_0x2466d3,_0x5be437,_0x382836,_0x4f469b),d(this,_0xe75393(0x3d2),_0xe75393(0x496)),(this[_0xe75393(0x397)]=_0x37c6df,this['_logService']=_0x33066c,this['_transformService']=_0x4f1a23);}['appendMutation'](_0x5d7270){const _0x4d0a65=_0x3b22f,_0x10918e=this[_0x4d0a65(0x397)][_0x4d0a65(0x5e4)](k,this['unitID'],this['type'],this[_0x4d0a65(0x43e)],[_0x5d7270],this[_0x4d0a65(0x51a)]);return _0x10918e['_updateLocalCache'](),_0x10918e;}['onRemoteChangeset'](_0xe3426f){const _0x1fb06c=_0x3b22f;if(this['_checkMissing'](_0xe3426f))return this[_0x1fb06c(0x397)][_0x1fb06c(0x5e4)](H,this[_0x1fb06c(0x40e)],this[_0x1fb06c(0x331)],this[_0x1fb06c(0x43e)],[],null,[_0xe3426f],this[_0x1fb06c(0x51a)]);try{const _0xecb6e9=this[_0x1fb06c(0x294)][_0x1fb06c(0x29b)]([_0xe3426f],[this[_0x1fb06c(0x43e)]],!0x1);if(_[_0x1fb06c(0x518)](_0xecb6e9)){const {c1Prime:_0x3634cd,c2Prime:_0x421ce7}=_0xecb6e9;this[_0x1fb06c(0x515)](_0x3634cd[0x0]),_0x421ce7[0x0][_0x1fb06c(0x4c1)]=this[_0x1fb06c(0x490)]();const _0x46556c=this['_injector']['createInstance'](W,this[_0x1fb06c(0x40e)],this[_0x1fb06c(0x331)],_0x421ce7[0x0],this[_0x1fb06c(0x51a)]);return _0x46556c[_0x1fb06c(0x4ad)](),_0x46556c;}return this[_0x1fb06c(0x23d)](!0x1);}catch(_0x38101b){return this[_0x1fb06c(0x445)][_0x1fb06c(0x49d)](_0x38101b),this[_0x1fb06c(0x23d)](!0x1);}}['onRemoteAck'](_0x259296){const _0x519d1c=_0x3b22f,_0x46d085=this[_0x519d1c(0x2d5)]['getCurrentRevOfUnit'](this[_0x519d1c(0x40e)]);if(_0x259296[_0x519d1c(0x40d)]<_0x46d085-0x1)return this;if(this[_0x519d1c(0x235)](_0x259296))return this['_injector'][_0x519d1c(0x5e4)](H,this['unitID'],this[_0x519d1c(0x331)],null,[],this[_0x519d1c(0x43e)],[],this[_0x519d1c(0x51a)]);this[_0x519d1c(0x237)]();const _0x1a11ce=this['_injector'][_0x519d1c(0x5e4)](se,this['unitID'],this['type'],this[_0x519d1c(0x51a)]);return _0x1a11ce[_0x519d1c(0x4ad)](),_0x1a11ce;}['onRemoteRej'](_0x5b711a){const _0x2ec05e=_0x3b22f;return this[_0x2ec05e(0x23d)](!!(_0x5b711a!=null&&_0x5b711a['isPermissionRej']));}['toggleOffline'](){const _0x526254=_0x3b22f;return this[_0x526254(0x397)][_0x526254(0x5e4)](G,this[_0x526254(0x40e)],this[_0x526254(0x331)],this[_0x526254(0x43e)],[],this[_0x526254(0x51a)]);}[_0x3b22f(0x3ff)](){return this;}['resend'](){const _0x30d5ed=_0x3b22f;this['_handler'][_0x30d5ed(0x55d)](this[_0x30d5ed(0x43e)]);}['_onConflict'](_0x5b100f){const _0x526352=_0x3b22f;return this['_injector'][_0x526352(0x5e4)](F,this['unitID'],this['type'],this[_0x526352(0x43e)],[],this[_0x526352(0x51a)],_0x5b100f);}};W=z([g(0x4,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x5,a[_0x3b22f(0x492)](_['RevisionService'])),g(0x6,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a[_0x3b22f(0x308)]),g(0x9,_[_0x3b22f(0x378)]),g(0xa,a[_0x3b22f(0x519)])],W);let k=class extends J{constructor(_0x2a525f,_0x5a0d4a,_0x2ecec6,_0x421402,_0xa0f3f6,_0x499f13,_0x3059f4,_0x1fcb43,_0x45e0ac,_0x2913c1,_0xa04f29,_0x172417){const _0x134223=_0x3b22f;super(_0x2a525f,_0x5a0d4a,_0x2ecec6,_0x421402,_0xa0f3f6,_0x45e0ac,_0x172417,_0x3059f4,_0x1fcb43),d(this,_0x134223(0x3d2),_0x134223(0x2f6)),(this[_0x134223(0x397)]=_0x499f13,this['_logService']=_0x2913c1,this[_0x134223(0x294)]=_0xa04f29);}['appendMutation'](_0x2f60e3){const _0x368216=_0x3b22f;return this['_pendingMutations'][_0x368216(0x1ed)](_0x2f60e3),this;}[_0x3b22f(0x2af)](_0x531480){const _0x481f18=_0x3b22f;if(this[_0x481f18(0x235)](_0x531480))return this[_0x481f18(0x397)]['createInstance'](H,this[_0x481f18(0x40e)],this['type'],this[_0x481f18(0x43e)],this[_0x481f18(0x318)],null,[_0x531480],this[_0x481f18(0x51a)]);try{const _0x4b13ea=this[_0x481f18(0x294)][_0x481f18(0x29b)]([_0x531480],[this[_0x481f18(0x43e)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4b13ea)){const {c1Prime:_0x5178da,c2Prime:_0x157aa2}=_0x4b13ea,_0x4f63c6=this[_0x481f18(0x294)][_0x481f18(0x261)](_0x5178da[0x0],this['_pendingMutations']);if(_[_0x481f18(0x3db)](_0x4f63c6)){const {c1Prime:_0xe4f1fd,m2Prime:_0x10dc68}=_0x4f63c6;return this['_executeRemoteChangeset'](_0xe4f1fd),_0x157aa2[0x0][_0x481f18(0x4c1)]=this[_0x481f18(0x490)](),this['_injector']['createInstance'](k,this[_0x481f18(0x40e)],this['type'],_0x157aa2[0x0],_0x10dc68,this['_handler']);}throw _0x4f63c6[_0x481f18(0x49d)];}throw _0x4b13ea[_0x481f18(0x49d)];}catch(_0x515589){return this[_0x481f18(0x445)][_0x481f18(0x49d)](_0x515589),this[_0x481f18(0x23d)](!0x1);}}[_0x3b22f(0x22e)](_0x39188b){const _0x3d719=_0x3b22f;if(this[_0x3d719(0x235)](_0x39188b))return this[_0x3d719(0x397)][_0x3d719(0x5e4)](H,this[_0x3d719(0x40e)],this['type'],null,this[_0x3d719(0x318)],this[_0x3d719(0x43e)],[],this[_0x3d719(0x51a)]);this[_0x3d719(0x237)]();const _0xf9ed1=this[_0x3d719(0x397)][_0x3d719(0x5e4)](x,this[_0x3d719(0x40e)],this['type'],this[_0x3d719(0x318)],this[_0x3d719(0x51a)]);return _0xf9ed1['_schedule'](),_0xf9ed1[_0x3d719(0x4ad)](),_0xf9ed1;}['onRemoteRej'](_0x425b42){const _0x40165b=_0x3b22f;return this[_0x40165b(0x23d)](!!(_0x425b42!=null&&_0x425b42['isPermissionRej']));}[_0x3b22f(0x2ea)](){const _0x57dc10=_0x3b22f;return this['_injector']['createInstance'](G,this[_0x57dc10(0x40e)],this[_0x57dc10(0x331)],this[_0x57dc10(0x43e)],this[_0x57dc10(0x318)],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}[_0x3b22f(0x2b6)](){const _0x552a80=_0x3b22f;this[_0x552a80(0x51a)][_0x552a80(0x55d)](this[_0x552a80(0x43e)]);}[_0x3b22f(0x23d)](_0x2f419d){const _0x52494c=_0x3b22f;return this[_0x52494c(0x397)][_0x52494c(0x5e4)](F,this[_0x52494c(0x40e)],this['type'],null,this[_0x52494c(0x318)],this[_0x52494c(0x51a)],_0x2f419d);}};k=z([g(0x5,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x6,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0x7,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x8,a[_0x3b22f(0x323)]),g(0x9,a[_0x3b22f(0x308)]),g(0xa,_[_0x3b22f(0x378)]),g(0xb,a[_0x3b22f(0x519)])],k);let F=class extends J{constructor(_0xb28f6a,_0x2247aa,_0x36cdb6,_0x299f6d,_0xd9bfe5,_0x3bcc04=!0x1,_0x311f1a,_0x277556,_0x350fa5,_0x50273f,_0x2924e3,_0x1b511a,_0x1f9a5b){const _0xe18a4b=_0x3b22f;super(_0xb28f6a,_0x2247aa,_0x36cdb6,_0x299f6d,_0xd9bfe5,_0x277556,_0x350fa5,_0x2924e3,_0x50273f),d(this,_0xe18a4b(0x3d2),_0xe18a4b(0x36f)),(this[_0xe18a4b(0x1e3)]=_0x3bcc04,this[_0xe18a4b(0x444)]=_0x311f1a,this[_0xe18a4b(0x316)]=_0x1b511a,this[_0xe18a4b(0x590)]=_0x1f9a5b,this[_0xe18a4b(0x3c8)](),this['_clearLocalCache'](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x3b22f(0x22e)](){return this;}[_0x3b22f(0x377)](){return this;}[_0x3b22f(0x2ea)](){return this;}['toggleOnline'](){return this;}[_0x3b22f(0x2b6)](){const _0x18e8a6=_0x3b22f;throw new Error(_0x18e8a6(0x277));}[_0x3b22f(0x2cd)](){const _0x4d4a23=_0x3b22f;this['_localCacheService'][_0x4d4a23(0x371)](this['unitID'],this[_0x4d4a23(0x331)],null,[]);}[_0x3b22f(0x3c8)](){const _0x4ee0c6=_0x3b22f;this[_0x4ee0c6(0x1e3)]?this[_0x4ee0c6(0x590)][_0x4ee0c6(0x224)]({'title':this['_localeService']['t'](_0x4ee0c6(0x483)),'content':this[_0x4ee0c6(0x316)]['t'](_0x4ee0c6(0x383)),'type':'error','duration':0x0}):this['_notificationService']['show']({'title':this[_0x4ee0c6(0x316)]['t'](_0x4ee0c6(0x271)),'content':this['_localeService']['t'](_0x4ee0c6(0x59e)),'type':_0x4ee0c6(0x49d),'duration':0x0});}[_0x3b22f(0x2e7)](){const _0x12c4e7=_0x3b22f;this['_permissionService'][_0x12c4e7(0x449)](new C[(_0x12c4e7(0x5d2))](this[_0x12c4e7(0x40e)])['id'],!0x1);}};F=z([g(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x300)])),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a[_0x3b22f(0x519)]),g(0x9,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0xa,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0xb,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),g(0xc,N[_0x3b22f(0x2e5)])],F);let G=class extends J{constructor(_0x17e8fe,_0x5e720b,_0x206b4c,_0x19b8ce,_0x278137,_0x1cc8e8,_0x192cb0,_0xa1f126,_0x3f97fc,_0x531033){const _0x3d6138=_0x3b22f;super(_0x17e8fe,_0x5e720b,_0x206b4c,_0x19b8ce,_0x278137,_0x3f97fc,_0x531033,_0x192cb0,_0xa1f126),d(this,_0x3d6138(0x3d2),_0x3d6138(0x45f)),this[_0x3d6138(0x397)]=_0x1cc8e8;}[_0x3b22f(0x3bb)](_0x226807){const _0x2c3411=_0x3b22f;return this['_pendingMutations'][_0x2c3411(0x1ed)](_0x226807),this[_0x2c3411(0x4ad)](),this;}[_0x3b22f(0x2af)](_0x3bd28d){const _0x19dcb1=_0x3b22f;throw new Error(_0x19dcb1(0x241));}[_0x3b22f(0x22e)](){const _0x4e9009=_0x3b22f;throw new Error(_0x4e9009(0x325));}[_0x3b22f(0x377)](){const _0x4ed715=_0x3b22f;throw new Error(_0x4ed715(0x506));}['toggleOffline'](){return this;}[_0x3b22f(0x3ff)](){const _0x5f0faa=_0x3b22f,{_injector:_0x5902e4,_pendingMutations:_0x295786,_awaitingChangeset:_0xf5a5ce,unitID:_0x4b2638,_handler:_0x75b81b,type:_0x3fa9d0}=this,_0x1c4b23=Rt(_0x5902e4,_0x4b2638,_0x3fa9d0,_0xf5a5ce,_0x295786,_0x75b81b);return _0x1c4b23 instanceof x?_0x1c4b23['_schedule']():(_0x1c4b23 instanceof k||_0x1c4b23 instanceof W)&&_0x1c4b23[_0x5f0faa(0x2b6)](),_0x1c4b23;}['resend'](){const _0x7189f5=_0x3b22f;throw new Error(_0x7189f5(0x4bc));}};G=z([g(0x5,a[_0x3b22f(0x492)](a['Injector'])),g(0x6,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0x7,a['Inject'](exports[_0x3b22f(0x462)])),g(0x8,a[_0x3b22f(0x323)]),g(0x9,a[_0x3b22f(0x519)])],G);let H=class extends J{constructor(_0x186884,_0x5733e7,_0x469dfd,_0x1caff2,_0x4909ac,_0x5537b4,_0x3426e2,_0x4e43c0,_0x2eec28,_0x360c35,_0x4c8330,_0x2029c1,_0x2122c9,_0x2d2827){const _0x42b86b=_0x3b22f;super(_0x186884,_0x5733e7,_0x469dfd,_0x1caff2,_0x3426e2,_0x2029c1,_0x2122c9,_0x2eec28,_0x360c35),d(this,_0x42b86b(0x3d2),_0x42b86b(0x3d8)),(this['_acknowledgedAwaitingChangeset']=_0x4909ac,this['_queuedRemoteChangesets']=_0x5537b4,this['_injector']=_0x4e43c0,this[_0x42b86b(0x445)]=_0x4c8330,this[_0x42b86b(0x294)]=_0x2d2827);}[_0x3b22f(0x226)](_0x74d4a9){const _0x5df137=_0x3b22f;try{const _0x145cb2=[..._0x74d4a9,...this[_0x5df137(0x4da)]],_0x202f2e=[this[_0x5df137(0x43e)]||this['_acknowledgedAwaitingChangeset']][_0x5df137(0x3f9)](_0x338476=>!!_0x338476);let _0x66311c,_0xdd8f41;if(_0x202f2e[_0x5df137(0x291)]){const _0x3780da=this[_0x5df137(0x294)][_0x5df137(0x29b)](_0x145cb2,_0x202f2e,!0x1);if(!_[_0x5df137(0x518)](_0x3780da))throw _0x3780da[_0x5df137(0x49d)];_0x66311c=_0x3780da[_0x5df137(0x5d4)],_0xdd8f41=_0x3780da[_0x5df137(0x439)];}else _0x66311c=_0x145cb2,_0xdd8f41=[];let _0x3c0939=this['_pendingMutations'];_0x66311c[_0x5df137(0x339)](_0x416e03=>{const _0x34e6c3=_0x5df137;let _0x57d081;if(_0x3c0939[_0x34e6c3(0x291)]){const _0x84af52=this['_transformService']['transformMutationsWithChangeset'](_0x416e03,_0x3c0939);if(!_[_0x34e6c3(0x3db)](_0x84af52))throw _0x84af52['error'];_0x57d081=_0x84af52[_0x34e6c3(0x5d4)],_0x3c0939=_0x84af52[_0x34e6c3(0x2e8)];}else _0x57d081=_0x416e03;this['_executeRemoteChangeset'](_0x57d081);}),this[_0x5df137(0x446)]&&this[_0x5df137(0x237)](),this['_awaitingChangeset']&&_0xdd8f41['length']&&(_0xdd8f41[0x0][_0x5df137(0x4c1)]=this['_getCurrentRevision']());let _0x1f5e8c;if(this['_awaitingChangeset']&&_0x3c0939[_0x5df137(0x291)]!==0x0)_0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](k,this['unitID'],this[_0x5df137(0x331)],_0xdd8f41[0x0],_0x3c0939,this[_0x5df137(0x51a)]);else{if(this['_awaitingChangeset']&&_0x3c0939[_0x5df137(0x291)]===0x0)_0xdd8f41[0x0][_0x5df137(0x4c1)]=this['_getCurrentRevision'](),_0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](W,this['unitID'],this[_0x5df137(0x331)],_0xdd8f41[0x0],this[_0x5df137(0x51a)]);else{if(_0x3c0939[_0x5df137(0x291)]!==0x0){const _0x4e28c7=this[_0x5df137(0x397)][_0x5df137(0x5e4)](x,this[_0x5df137(0x40e)],this[_0x5df137(0x331)],_0x3c0939,this[_0x5df137(0x51a)]);_0x4e28c7[_0x5df137(0x223)](),_0x1f5e8c=_0x4e28c7;}else _0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](se,this[_0x5df137(0x40e)],this['type'],this[_0x5df137(0x51a)]);}}return _0x1f5e8c[_0x5df137(0x4ad)](),_0x1f5e8c;}catch(_0x914e92){return this[_0x5df137(0x445)][_0x5df137(0x49d)]('[FetchMissState]',_0x5df137(0x47d),_0x914e92),this[_0x5df137(0x397)][_0x5df137(0x5e4)](F,this[_0x5df137(0x40e)],this[_0x5df137(0x331)],this['_awaitingChangeset'],this[_0x5df137(0x318)],this[_0x5df137(0x51a)],!0x1);}}[_0x3b22f(0x2b6)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b22f(0x3bb)](_0x1be356){const _0x3b7bc3=_0x3b22f;return this[_0x3b7bc3(0x318)][_0x3b7bc3(0x1ed)](_0x1be356),this;}['onRemoteChangeset'](_0x538ccf){const _0x1e5685=_0x3b22f;return this[_0x1e5685(0x4da)][_0x1e5685(0x1ed)](_0x538ccf),this;}['onRemoteAck'](_0x1f1a63){const _0x17a352=_0x3b22f;if(this[_0x17a352(0x43e)])return this[_0x17a352(0x446)]=this[_0x17a352(0x43e)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x3b22f(0x377)](_0x381f48){const _0x446f74=_0x3b22f;return this[_0x446f74(0x23d)](!!(_0x381f48!=null&&_0x381f48[_0x446f74(0x414)]));}[_0x3b22f(0x2ea)](){const _0x1a8ffe=_0x3b22f;return this[_0x1a8ffe(0x397)][_0x1a8ffe(0x5e4)](G,this[_0x1a8ffe(0x40e)],this[_0x1a8ffe(0x331)],this[_0x1a8ffe(0x43e)],this[_0x1a8ffe(0x318)],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}['_onConflict'](_0x4f38c3){const _0x4ca130=_0x3b22f;return this[_0x4ca130(0x397)][_0x4ca130(0x5e4)](F,this[_0x4ca130(0x40e)],this[_0x4ca130(0x331)],this[_0x4ca130(0x43e)],this['_pendingMutations'],this['_handler'],_0x4f38c3);}};H=z([g(0x7,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x8,a[_0x3b22f(0x492)](_['RevisionService'])),g(0x9,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0xa,a[_0x3b22f(0x308)]),g(0xb,a[_0x3b22f(0x323)]),g(0xc,a[_0x3b22f(0x519)]),g(0xd,_[_0x3b22f(0x378)])],H);function Rt(_0x3ef584,_0x5ac996,_0x2d70ef,_0x4617c1,_0x3398ed,_0x5ecee6){const _0x4c9515=_0x3b22f;return _0x4617c1&&_0x3398ed[_0x4c9515(0x291)]?_0x3ef584[_0x4c9515(0x5e4)](k,_0x5ac996,_0x2d70ef,_0x4617c1,_0x3398ed,_0x5ecee6):_0x4617c1?_0x3ef584[_0x4c9515(0x5e4)](W,_0x5ac996,_0x2d70ef,_0x4617c1,_0x5ecee6):_0x3398ed[_0x4c9515(0x291)]?_0x3ef584['createInstance'](x,_0x5ac996,_0x2d70ef,_0x3398ed,_0x5ecee6):_0x3ef584['createInstance'](se,_0x5ac996,_0x2d70ef,_0x5ecee6);}var Hs=Object[_0x3b22f(0x1ff)],xs=Object[_0x3b22f(0x246)],Ke=(_0x160de5,_0xfd1bc0,_0x2ebcac,_0x58d4f8)=>{const _0x2da4df=_0x3b22f;for(var _0xb2c9f5=_0x58d4f8>0x1?void 0x0:_0x58d4f8?xs(_0xfd1bc0,_0x2ebcac):_0xfd1bc0,_0x536d4d=_0x160de5[_0x2da4df(0x291)]-0x1,_0xd4da79;_0x536d4d>=0x0;_0x536d4d--)(_0xd4da79=_0x160de5[_0x536d4d])&&(_0xb2c9f5=(_0x58d4f8?_0xd4da79(_0xfd1bc0,_0x2ebcac,_0xb2c9f5):_0xd4da79(_0xb2c9f5))||_0xb2c9f5);return _0x58d4f8&&_0xb2c9f5&&Hs(_0xfd1bc0,_0x2ebcac,_0xb2c9f5),_0xb2c9f5;},I=(_0x403704,_0x14f853)=>(_0x48265e,_0x5bf123)=>_0x14f853(_0x48265e,_0x5bf123,_0x403704);exports[_0x3b22f(0x2cb)]=class extends a[_0x3b22f(0x398)]{constructor(_0x48580e,_0x532a8f,_0x14e226,_0x422fc3,_0x3ae266,_0x565fa5,_0x49ed9a,_0x3491e0,_0x5992d3,_0x13eb14,_0xf4cf7c,_0x57887e,_0x2aa255){const _0x54dfef=_0x3b22f;super(),d(this,_0x54dfef(0x4d6),new v[(_0x54dfef(0x502))](null)),d(this,_0x54dfef(0x3ce),this[_0x54dfef(0x4d6)][_0x54dfef(0x56e)]()),d(this,_0x54dfef(0x5d6)),d(this,_0x54dfef(0x4e1),!0x1),d(this,_0x54dfef(0x386),this[_0x54dfef(0x3ce)][_0x54dfef(0x3de)](v[_0x54dfef(0x57b)](_0x3d1917=>_0x3d1917?_0x3d1917[_0x54dfef(0x3d2)]:y[_0x54dfef(0x3ea)]),v[_0x54dfef(0x42e)](0x1))),d(this,_0x54dfef(0x2fb),!0x1),d(this,_0x54dfef(0x5b1),[]),(this['unitID']=_0x48580e,this[_0x54dfef(0x2bf)]=_0x532a8f,this[_0x54dfef(0x58b)]=_0x14e226,this['_injector']=_0x422fc3,this[_0x54dfef(0x522)]=_0x3ae266,this[_0x54dfef(0x260)]=_0x565fa5,this[_0x54dfef(0x316)]=_0x49ed9a,this[_0x54dfef(0x2d5)]=_0x3491e0,this[_0x54dfef(0x445)]=_0x5992d3,this[_0x54dfef(0x4b9)]=_0x13eb14,this[_0x54dfef(0x31d)]=_0xf4cf7c,this[_0x54dfef(0x444)]=_0x57887e,this[_0x54dfef(0x599)]=_0x2aa255);}get[_0x3b22f(0x374)](){const _0x4166e6=_0x3b22f;return this[_0x4166e6(0x5d6)];}async['init'](){const _0x5319f8=_0x3b22f;if(this[_0x5319f8(0x374)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x5319f8(0x341)]();}[_0x3b22f(0x465)](){const _0x4671fa=_0x3b22f;return this[_0x4671fa(0x4e1)]=!0x0,a[_0x4671fa(0x526)](()=>{const _0x55db6b=_0x4671fa;this['_collaborationPaused']=!0x1,this[_0x55db6b(0x2df)]();});}[_0x3b22f(0x334)](_0x564dad){const _0x2f2f1f=_0x3b22f;this[_0x2f2f1f(0x5d6)]=_0x564dad,this[_0x2f2f1f(0x4d6)][_0x2f2f1f(0x52d)](_0x564dad);}async[_0x3b22f(0x341)](){const _0x31c6df=_0x3b22f;var _0x10642f;this[_0x31c6df(0x334)](await this[_0x31c6df(0x43b)]()),this[_0x31c6df(0x599)]&&((_0x10642f=this['_singleActiveUnitService'])==null||_0x10642f[_0x31c6df(0x558)](this[_0x31c6df(0x40e)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x31c6df(0x568)](this[_0x31c6df(0x40e)])['subscribe'](_0x40ca4e=>{const _0x3c805f=_0x31c6df;this[_0x3c805f(0x445)][_0x3c805f(0x320)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x40ca4e),_0x40ca4e===bt[_0x3c805f(0x2b0)]?(this[_0x3c805f(0x31d)]['show']({'content':this[_0x3c805f(0x316)]['t'](_0x3c805f(0x44f)),'type':X['MessageType'][_0x3c805f(0x3b7)]}),this[_0x3c805f(0x444)][_0x3c805f(0x449)](new C[(_0x3c805f(0x5d2))](this['unitID'])['id'],!0x1)):this['_permissionService'][_0x3c805f(0x449)](new C[(_0x3c805f(0x5d2))](this[_0x3c805f(0x40e)])['id'],!0x0);})));let _0x383cbb=!0x1;return this['disposeWithMe'](this[_0x31c6df(0x2bf)][_0x31c6df(0x1f1)][_0x31c6df(0x42c)](_0x20810e=>{const _0x1cc7f1=_0x31c6df;_0x20810e===$[_0x1cc7f1(0x22f)]?this[_0x1cc7f1(0x553)](_0x383cbb):_0x20810e===$['OFFLINE']&&(_0x383cbb=!0x0,this[_0x1cc7f1(0x37f)]());})),this[_0x31c6df(0x283)](this[_0x31c6df(0x2bf)][_0x31c6df(0x3b5)]['subscribe'](_0x285246=>{const _0x3b9096=_0x31c6df;try{switch(_0x285246[_0x3b9096(0x3cc)]){case _[_0x3b9096(0x44c)][_0x3b9096(0x329)]:{this[_0x3b9096(0x548)](_[_0x3b9096(0x543)](_0x285246[_0x3b9096(0x45b)]));break;}case _[_0x3b9096(0x44c)]['CHANGESET_ACK']:{this[_0x3b9096(0x535)](_0x285246['data']);break;}case _[_0x3b9096(0x44c)][_0x3b9096(0x36e)]:{this[_0x3b9096(0x582)]();break;}case _[_0x3b9096(0x44c)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x285246[_0x3b9096(0x45b)][_0x3b9096(0x528)][_0x3b9096(0x57b)](_0x2ba293=>_[_0x3b9096(0x543)](_0x2ba293)));break;}case _[_0x3b9096(0x44c)][_0x3b9096(0x4a2)]:this[_0x3b9096(0x582)]({'isPermissionRej':!0x0});}}catch(_0x392294){throw console[_0x3b9096(0x49d)](_0x3b9096(0x513),_0x392294),_0x392294;}})),this[_0x31c6df(0x5d6)];}['_unlockTransition'](){const _0xd3b062=_0x3b22f;this[_0xd3b062(0x2fb)]=!0x1;}['_lockTransition'](){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['_transitionLocked']=!0x0;}[_0x3b22f(0x477)](_0x77989e){const _0x1ed8de=_0x3b22f;this[_0x1ed8de(0x319)](),this[_0x1ed8de(0x334)](this[_0x1ed8de(0x5d6)][_0x1ed8de(0x3bb)](_0x77989e)),this[_0x1ed8de(0x2ca)]();}['_onRemoteChangeset'](_0x4af0dc){const _0x48716e=_0x3b22f;if(!(_0x4af0dc['revision']<=this[_0x48716e(0x2d5)][_0x48716e(0x42d)](this[_0x48716e(0x40e)]))){if(this[_0x48716e(0x4e1)]){this['_remoteChangesetQueue'][_0x48716e(0x1ed)](_0x4af0dc);return;}this['_applyRemoteChangeset'](_0x4af0dc);}}[_0x3b22f(0x2df)](){const _0x78af4e=_0x3b22f;this['_remoteChangesetQueue'][_0x78af4e(0x339)](_0x5620b2=>this[_0x78af4e(0x38c)](_0x5620b2)),this[_0x78af4e(0x5b1)]=[];}[_0x3b22f(0x38c)](_0x2f424b){const _0xf15ca3=_0x3b22f,_0x49fc85=this[_0xf15ca3(0x260)]['interceptor'][_0xf15ca3(0x284)](this[_0xf15ca3(0x260)][_0xf15ca3(0x542)][_0xf15ca3(0x40b)]()[_0xf15ca3(0x580)])(_0x2f424b[_0xf15ca3(0x3a2)],null)||_0x2f424b['mutations'],_0x7c8381={..._0x2f424b,'mutations':_0x49fc85};this['_lockTransition'](),this[_0xf15ca3(0x334)](this[_0xf15ca3(0x5d6)][_0xf15ca3(0x2af)](_0x7c8381)),this[_0xf15ca3(0x2ca)]();}[_0x3b22f(0x535)](_0x3c226a){const _0x31c2e8=_0x3b22f;this[_0x31c2e8(0x319)](),this['_updateState'](this[_0x31c2e8(0x5d6)][_0x31c2e8(0x22e)](_0x3c226a)),this[_0x31c2e8(0x2ca)]();}[_0x3b22f(0x582)](_0x41e1e6){const _0x29e309=_0x3b22f;this[_0x29e309(0x319)](),this[_0x29e309(0x334)](this['_state'][_0x29e309(0x377)](_0x41e1e6)),this['_unlockTransition']();}[_0x3b22f(0x410)](_0x1f895f){const _0x24fa9a=_0x3b22f;if(!(this[_0x24fa9a(0x5d6)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x58e2db=_0x1f895f['map'](_0x59d6b2=>{const _0x5c5afc=_0x24fa9a,_0x655a8c=this[_0x5c5afc(0x260)]['interceptor'][_0x5c5afc(0x284)](this[_0x5c5afc(0x260)][_0x5c5afc(0x542)][_0x5c5afc(0x40b)]()[_0x5c5afc(0x580)])(_0x59d6b2[_0x5c5afc(0x3a2)],null)||_0x59d6b2[_0x5c5afc(0x3a2)];return{..._0x59d6b2,'mutations':_0x655a8c};});this['_lockTransition'](),this[_0x24fa9a(0x334)](this[_0x24fa9a(0x5d6)]['onMissedChangesetFetched'](_0x58e2db)),this['_unlockTransition']();}[_0x3b22f(0x37f)](){const _0x360964=_0x3b22f;this['_lockTransition'](),this['_updateState'](this['_state'][_0x360964(0x2ea)]()),this[_0x360964(0x2ca)]();}['_toggleOnline'](_0x5d10bc=!0x1){const _0x4537d5=_0x3b22f;this[_0x4537d5(0x319)](),this[_0x4537d5(0x334)](this[_0x4537d5(0x5d6)][_0x4537d5(0x3ff)]()),this['_unlockTransition']();const _0x20894f=this['_state'];_0x5d10bc&&_0x20894f instanceof se&&(this['_lockTransition'](),this[_0x4537d5(0x334)](_0x20894f[_0x4537d5(0x22c)]()),this['_unlockTransition']());}async[_0x3b22f(0x43b)](){return new Promise(_0x41372b=>{const _0x4b7d8b=_0x2c53;this[_0x4b7d8b(0x2bf)][_0x4b7d8b(0x1f1)][_0x4b7d8b(0x3de)](v['take'](0x1))['subscribe'](async _0x55a680=>{const _0x434186=_0x4b7d8b;_0x41372b(await this['_createInitialStateImpl'](_0x55a680===$[_0x434186(0x22f)]));});});}['_createHandler'](){const _0x1de144=_0x3b22f,_0x2b0b49=this[_0x1de144(0x40e)];return{'onStateChange':(_0x115799,_0x1f839f)=>{const _0x46f159=_0x1de144;if(_0x115799!==this[_0x46f159(0x5d6)])throw new Error(_0x46f159(0x265)+_0x115799['status']+'\x0aAfter:\x20'+_0x1f839f[_0x46f159(0x3d2)]+_0x46f159(0x491)+this[_0x46f159(0x5d6)][_0x46f159(0x3d2)]);this[_0x46f159(0x334)](_0x1f839f);},'onSendChangeset':_0x114f7b=>{const _0x442177=_0x1de144,_0x4a598a={'eventID':_[_0x442177(0x44c)][_0x442177(0x5ac)],'data':{'unitID':_0x114f7b[_0x442177(0x40e)],'unitType':this[_0x442177(0x58b)],'changeset':_0x114f7b,'memberID':this['session']['getMemberID']()}};this[_0x442177(0x2bf)][_0x442177(0x3c5)](_0x4a598a,this[_0x442177(0x40e)]);},'onMissingChangesets':({from:_0x1382ec,to:_0x5b4eb6})=>{const _0x4018a4=_0x1de144;this['_logService'][_0x4018a4(0x320)]('[CollaborationEntity]',_0x4018a4(0x42a)+_0x1382ec+_0x4018a4(0x239)+_0x5b4eb6);const _0x1af9c6={'eventID':_[_0x4018a4(0x44c)]['FETCH_MISSING'],'data':{'unitID':_0x2b0b49,'unitType':this[_0x4018a4(0x58b)],'from':_0x1382ec,'to':_0x5b4eb6}};this[_0x4018a4(0x2bf)][_0x4018a4(0x3c5)](_0x1af9c6,this[_0x4018a4(0x40e)]);}};}async['_createInitialStateImpl'](_0x41b1ac){const _0x276bc3=_0x3b22f;var _0xf7cc9d,_0x50f3c4;const _0x63dd6d=await this[_0x276bc3(0x522)][_0x276bc3(0x4dd)](this[_0x276bc3(0x40e)]),_0x249941=(_0xf7cc9d=_0x63dd6d==null?void 0x0:_0x63dd6d[_0x276bc3(0x3a2)])!=null?_0xf7cc9d:[],_0x34b982=(_0x50f3c4=_0x63dd6d==null?void 0x0:_0x63dd6d[_0x276bc3(0x5eb)])!=null?_0x50f3c4:null,_0x2fa82f=this[_0x276bc3(0x40e)];try{this[_0x276bc3(0x4b4)](_0x34b982,_0x249941);}catch(_0x579cfa){this[_0x276bc3(0x445)][_0x276bc3(0x49d)](_0x579cfa);}const _0x48f18e=this['_createHandler']();if(_0x41b1ac){const _0x644fe4=Rt(this[_0x276bc3(0x397)],_0x2fa82f,this[_0x276bc3(0x58b)],_0x34b982,_0x249941,_0x48f18e);return _0x644fe4 instanceof x?_0x644fe4[_0x276bc3(0x223)]():(_0x644fe4 instanceof k||_0x644fe4 instanceof W)&&_0x644fe4[_0x276bc3(0x2b6)](),_0x644fe4;}return this['_injector'][_0x276bc3(0x5e4)](G,_0x2fa82f,this[_0x276bc3(0x58b)],_0x34b982,_0x249941,_0x48f18e);}[_0x3b22f(0x4b4)](_0x5c3cd2,_0x55560b){const _0x40514d=_0x3b22f;var _0x2ec1bb,_0x56c5fd;const _0x583add=this[_0x40514d(0x260)][_0x40514d(0x542)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x40514d(0x40b)]()['COMPRESS_MUTATION_APPLY']);(_0x2ec1bb=_0x583add((_0x5c3cd2==null?void 0x0:_0x5c3cd2[_0x40514d(0x3a2)])||[],null))==null||_0x2ec1bb[_0x40514d(0x339)](_0x51410=>this[_0x40514d(0x4b9)]['executeCommand'](_0x51410['id'],_0x51410[_0x40514d(0x3b6)])),(_0x56c5fd=_0x583add(_0x55560b||[],null))==null||_0x56c5fd[_0x40514d(0x339)](_0x507e63=>this[_0x40514d(0x4b9)][_0x40514d(0x2fc)](_0x507e63['id'],_0x507e63[_0x40514d(0x3b6)]));}},exports['CollaborationEntity']=Ke([I(0x3,a['Inject'](a[_0x3b22f(0x252)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a['Inject'](_[_0x3b22f(0x461)])),I(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x308)]),I(0x9,a[_0x3b22f(0x323)]),I(0xa,N[_0x3b22f(0x2e3)]),I(0xb,a[_0x3b22f(0x300)]),I(0xc,a[_0x3b22f(0x5c6)](be))],exports['CollaborationEntity']),exports['DocCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0xcc370e,_0x5d1ef5,_0x547cfb,_0xe04cec,_0x4a889e,_0x1ca0aa,_0x1ee2cf,_0x9d3a51,_0x6a105,_0x2b28d7,_0x2aa0f2,_0x1f1957,_0x17f4bc,_0x13821c,_0x48850f,_0x326065,_0x5405da){const _0xeec46f=_0x3b22f;super(_0xcc370e,_0x547cfb,_0x5d1ef5,_0xe04cec,_0x4a889e,_0x1ca0aa,_0x1ee2cf,_0x9d3a51,_0x17f4bc,_0x13821c,_0x48850f,_0x326065,_0x5405da),this['unitID']=_0xcc370e,this['type']=_0x5d1ef5,this['_docStateChangeManagerService']=_0x6a105,this[_0xeec46f(0x459)]=_0x2b28d7,this['_docTransformSelectionsService']=_0x2aa0f2,this[_0xeec46f(0x335)]=_0x1f1957;}[_0x3b22f(0x302)](){const _0x56d0d1=_0x3b22f,_0x5a9a39=super['_createHandler']();return _0x5a9a39['onTransformIME']=_0xb18ea3=>this['_docTransformIMECacheService'][_0x56d0d1(0x4df)](_0xb18ea3),_0x5a9a39[_0x56d0d1(0x24a)]=_0x301c0f=>this[_0x56d0d1(0x25c)][_0x56d0d1(0x4fb)](_0x301c0f),_0x5a9a39[_0x56d0d1(0x373)]=_0x49cdb1=>this['_docSyncEditingCollabCursorService'][_0x56d0d1(0x1f3)](_0x49cdb1),_0x5a9a39[_0x56d0d1(0x357)]=_0x540ee1=>this[_0x56d0d1(0x459)][_0x56d0d1(0x471)](_0x540ee1),_0x5a9a39;}async[_0x3b22f(0x341)](){const _0x462fcb=_0x3b22f,_0x239f7b=await super[_0x462fcb(0x341)]();return this['disposeWithMe'](this['_commandService'][_0x462fcb(0x2dd)]((_0x40ddb3,_0x75dab1)=>{const _0x55ec0f=_0x462fcb;if(_0x40ddb3[_0x55ec0f(0x331)]!==a[_0x55ec0f(0x3b8)][_0x55ec0f(0x41d)]||_0x75dab1!=null&&_0x75dab1[_0x55ec0f(0x35e)]||_0x75dab1!=null&&_0x75dab1['onlyLocal'])return;const _0x114a41=_0x40ddb3[_0x55ec0f(0x3b6)];if((_0x114a41==null?void 0x0:_0x114a41[_0x55ec0f(0x3df)])!==this[_0x55ec0f(0x40e)])return;let _0x489b59=_0x40ddb3;if(_0x489b59['id']===V['RichTextEditingMutation']['id']){const _0x30add9=_0x489b59[_0x55ec0f(0x3b6)];_0x489b59={'id':V['RichTextEditingMutation']['id'],'type':a[_0x55ec0f(0x3b8)][_0x55ec0f(0x41d)],'params':{'unitId':_0x30add9['unitId'],'actions':_0x30add9[_0x55ec0f(0x2b2)],'textRanges':null}};}const _0xa85dc8=this['_compressMutationService'][_0x55ec0f(0x542)][_0x55ec0f(0x284)](this[_0x55ec0f(0x260)][_0x55ec0f(0x542)][_0x55ec0f(0x40b)]()[_0x55ec0f(0x5f0)])([_0x489b59],null)||[_0x489b59];this[_0x55ec0f(0x477)](_0xa85dc8[0x0]);})),_0x239f7b;}},exports[_0x3b22f(0x403)]=Ke([I(0x3,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),I(0x4,a[_0x3b22f(0x492)](exports['LocalCacheService'])),I(0x5,a[_0x3b22f(0x492)](_[_0x3b22f(0x461)])),I(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x492)](w['DocStateChangeManagerService'])),I(0x9,a['Inject'](fe)),I(0xa,a['Inject'](me)),I(0xb,a['Inject'](Ye)),I(0xc,a['ILogService']),I(0xd,a[_0x3b22f(0x323)]),I(0xe,N['IMessageService']),I(0xf,a[_0x3b22f(0x300)]),I(0x10,a[_0x3b22f(0x5c6)](be))],exports[_0x3b22f(0x403)]),exports[_0x3b22f(0x5ef)]=class extends exports[_0x3b22f(0x2cb)]{constructor(_0x142e7f,_0x48a416,_0x277ecd,_0x200ccc,_0x46af11,_0x5abfb2,_0x5f092f,_0x478996,_0x31b5ff,_0xa66414,_0x2d08e7,_0x345459,_0x515fe8,_0x58aedc){const _0x4e1f7c=_0x3b22f;super(_0x142e7f,_0x277ecd,_0x48a416,_0x200ccc,_0x46af11,_0x5abfb2,_0x5f092f,_0x478996,_0xa66414,_0x2d08e7,_0x345459,_0x515fe8,_0x58aedc),this['unitID']=_0x142e7f,this[_0x4e1f7c(0x331)]=_0x48a416,this[_0x4e1f7c(0x215)]=_0x31b5ff;}[_0x3b22f(0x302)](){const _0x5e1304=_0x3b22f,_0x3af271=super[_0x5e1304(0x302)]();return _0x3af271[_0x5e1304(0x24a)]=_0xd8c40a=>this[_0x5e1304(0x215)][_0x5e1304(0x4fb)](_0xd8c40a),_0x3af271;}async[_0x3b22f(0x341)](){const _0x3e771e=_0x3b22f,_0x198363=await super['_init']();return this[_0x3e771e(0x283)](this[_0x3e771e(0x4b9)]['onCommandExecuted']((_0x26c8e4,_0x410b74)=>{const _0x578496=_0x3e771e;if(_0x26c8e4[_0x578496(0x331)]!==a[_0x578496(0x3b8)]['MUTATION']||_0x410b74!=null&&_0x410b74[_0x578496(0x35e)]||_0x410b74!=null&&_0x410b74['onlyLocal'])return;const _0x29ad82=_0x26c8e4[_0x578496(0x3b6)];if((_0x29ad82==null?void 0x0:_0x29ad82[_0x578496(0x3df)])!==this['unitID'])return;const _0x298b25=_0x26c8e4,_0x49c54=this[_0x578496(0x260)]['interceptor'][_0x578496(0x284)](this[_0x578496(0x260)]['interceptor']['getInterceptPoints']()[_0x578496(0x5f0)])([_0x298b25],null)||[_0x298b25];this[_0x578496(0x477)](_0x49c54[0x0]);})),_0x198363;}},exports[_0x3b22f(0x5ef)]=Ke([I(0x3,a['Inject'](a[_0x3b22f(0x252)])),I(0x4,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),I(0x5,a[_0x3b22f(0x492)](_['CompressMutationService'])),I(0x6,a[_0x3b22f(0x492)](a['LocaleService'])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x492)](ge)),I(0x9,a[_0x3b22f(0x308)]),I(0xa,a['ICommandService']),I(0xb,N[_0x3b22f(0x2e3)]),I(0xc,a[_0x3b22f(0x300)]),I(0xd,a[_0x3b22f(0x5c6)](be))],exports[_0x3b22f(0x5ef)]);var ks=Object[_0x3b22f(0x1ff)],Bs=Object[_0x3b22f(0x246)],Vs=(_0x558bfa,_0x22f976,_0x18e73b,_0x34ab58)=>{const _0x20a365=_0x3b22f;for(var _0x5522a8=_0x34ab58>0x1?void 0x0:_0x34ab58?Bs(_0x22f976,_0x18e73b):_0x22f976,_0x28597b=_0x558bfa[_0x20a365(0x291)]-0x1,_0x345db6;_0x28597b>=0x0;_0x28597b--)(_0x345db6=_0x558bfa[_0x28597b])&&(_0x5522a8=(_0x34ab58?_0x345db6(_0x22f976,_0x18e73b,_0x5522a8):_0x345db6(_0x5522a8))||_0x5522a8);return _0x34ab58&&_0x5522a8&&ks(_0x22f976,_0x18e73b,_0x5522a8),_0x5522a8;},Ue=(_0x3adbfe,_0x3bef86)=>(_0x13c532,_0x138c08)=>_0x3bef86(_0x13c532,_0x138c08,_0x3adbfe);exports[_0x3b22f(0x322)]=class extends a['RxDisposable']{constructor(_0x206825,_0x408b5e,_0x2c84ad){const _0x53983d=_0x3b22f;super(),d(this,_0x53983d(0x4de),new Map()),d(this,_0x53983d(0x3fd),new v['Subject']()),(this['_injector']=_0x206825,this[_0x53983d(0x27c)]=_0x408b5e,this[_0x53983d(0x340)]=_0x2c84ad,this[_0x53983d(0x341)]());}[_0x3b22f(0x4f2)](){const _0x5112bc=_0x3b22f;super[_0x5112bc(0x4f2)](),this['_entities']['forEach'](_0x44cf82=>_0x44cf82[_0x5112bc(0x4f2)]()),this[_0x5112bc(0x4de)][_0x5112bc(0x249)]();}[_0x3b22f(0x2fa)](_0x3493e9){const _0x357302=_0x3b22f;var _0x436337;return(_0x436337=this[_0x357302(0x4de)][_0x357302(0x34d)](_0x3493e9))!=null?_0x436337:null;}[_0x3b22f(0x30d)](_0x2e238b){const _0x1025c5=_0x3b22f,_0x50c41d=this[_0x1025c5(0x2fa)](_0x2e238b);return _0x50c41d?v['of'](_0x50c41d):this[_0x1025c5(0x3fd)][_0x1025c5(0x3de)](E[_0x1025c5(0x3f9)](_0x48278b=>_0x48278b[_0x1025c5(0x40e)]===_0x2e238b));}[_0x3b22f(0x341)](){const _0x356467=_0x3b22f;this['_univerInstanceService'][_0x356467(0x5e8)](a[_0x356467(0x38e)]['UNIVER_SHEET'])[_0x356467(0x3de)](v[_0x356467(0x37c)](this['dispose$']),E[_0x356467(0x292)](0x10))[_0x356467(0x42c)](async _0x3a30e6=>{const _0xf82571=_0x356467,_0x56e659=_0x3a30e6[_0xf82571(0x52b)](),_0x51c6ac=await this[_0xf82571(0x571)](_0x56e659,j[_0xf82571(0x3c0)]);this['_entities'][_0xf82571(0x305)](_0x56e659,_0x51c6ac);}),this['_univerInstanceService'][_0x356467(0x5e8)](a[_0x356467(0x38e)][_0x356467(0x332)])['pipe'](v[_0x356467(0x37c)](this['dispose$']),E['delay'](0x10))[_0x356467(0x3de)](E[_0x356467(0x3f9)](_0x213bb1=>!_0x213bb1[_0x356467(0x52b)]()[_0x356467(0x561)]('__')))[_0x356467(0x42c)](async _0x39a2b5=>{const _0x34828e=_0x356467,_0x30a74b=_0x39a2b5[_0x34828e(0x52b)](),_0x16702f=await this[_0x34828e(0x571)](_0x30a74b,j[_0x34828e(0x332)]);this['_entities'][_0x34828e(0x305)](_0x30a74b,_0x16702f);}),v[_0x356467(0x2c4)](this[_0x356467(0x340)][_0x356467(0x24f)](a['UniverInstanceType'][_0x356467(0x3c0)]),this[_0x356467(0x340)]['getTypeOfUnitDisposed$'](a[_0x356467(0x38e)]['UNIVER_DOC']))['pipe'](v['takeUntil'](this[_0x356467(0x2e1)]))[_0x356467(0x42c)](_0x5c68b9=>{const _0x22b09a=_0x356467,_0x3abd33=_0x5c68b9[_0x22b09a(0x52b)](),_0x521cb8=this[_0x22b09a(0x4de)][_0x22b09a(0x34d)](_0x3abd33);_0x521cb8&&(_0x521cb8[_0x22b09a(0x4f2)](),this[_0x22b09a(0x4de)][_0x22b09a(0x2cc)](_0x3abd33));});}async[_0x3b22f(0x571)](_0x304e52,_0x26684b){const _0x17d99c=_0x3b22f,_0xfe4467=await this[_0x17d99c(0x27c)][_0x17d99c(0x578)](_0x304e52),_0x4e66b6=this[_0x17d99c(0x397)][_0x17d99c(0x5e4)](this[_0x17d99c(0x58e)](_0x26684b),_0x304e52,_0x26684b,_0xfe4467);return await _0x4e66b6[_0x17d99c(0x358)](),this[_0x17d99c(0x3fd)][_0x17d99c(0x52d)](_0x4e66b6),_0x4e66b6;}[_0x3b22f(0x58e)](_0x112bf6){const _0x90de61=_0x3b22f;switch(_0x112bf6){case j[_0x90de61(0x332)]:return exports[_0x90de61(0x403)];case j[_0x90de61(0x3c0)]:return exports[_0x90de61(0x5ef)];default:throw new Error(_0x90de61(0x59d)+_0x112bf6);}}},exports[_0x3b22f(0x322)]=Vs([Ue(0x0,a['Inject'](a[_0x3b22f(0x252)])),Ue(0x1,a['Inject'](exports[_0x3b22f(0x298)])),Ue(0x2,a[_0x3b22f(0x26b)])],exports[_0x3b22f(0x322)]);const nt=[_0x3b22f(0x3f1),_0x3b22f(0x5c8),'verdancy600',_0x3b22f(0x5d9),'blue400',_0x3b22f(0x379)];class Xe extends a[_0x3b22f(0x4b0)]{constructor(){const _0x2eb2e3=_0x3b22f;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x2eb2e3(0x35c),0x0);}[_0x3b22f(0x4ee)](_0x5923d){const _0xb403a5=_0x3b22f;if(this[_0xb403a5(0x56b)][_0xb403a5(0x3e5)](_0x5923d))return this[_0xb403a5(0x56b)]['get'](_0x5923d);const _0x410f45=nt[this[_0xb403a5(0x35c)]];return this[_0xb403a5(0x35c)]=(this[_0xb403a5(0x35c)]+0x1)%nt[_0xb403a5(0x291)],this[_0xb403a5(0x56b)][_0xb403a5(0x305)](_0x5923d,_0x410f45),_0x410f45;}}var Ws=Object[_0x3b22f(0x1ff)],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x4f6fc6,_0xa24e62,_0x3259ff,_0x4d9bab)=>{for(var _0x4e77b1=_0x4d9bab>0x1?void 0x0:_0x4d9bab?Fs(_0xa24e62,_0x3259ff):_0xa24e62,_0x55ae4a=_0x4f6fc6['length']-0x1,_0x2f7092;_0x55ae4a>=0x0;_0x55ae4a--)(_0x2f7092=_0x4f6fc6[_0x55ae4a])&&(_0x4e77b1=(_0x4d9bab?_0x2f7092(_0xa24e62,_0x3259ff,_0x4e77b1):_0x2f7092(_0x4e77b1))||_0x4e77b1);return _0x4d9bab&&_0x4e77b1&&Ws(_0xa24e62,_0x3259ff,_0x4e77b1),_0x4e77b1;},K=(_0x160b83,_0x36908f)=>(_0x9f4c98,_0x440cb1)=>_0x36908f(_0x9f4c98,_0x440cb1,_0x160b83);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x3b22f(0x398)]{constructor(_0x3cb284,_0x2c5102,_0x3b550b,_0x45abfa,_0x4ba55b,_0x44a5c,_0x4c58f2,_0x1aacba,_0x20a6cd){const _0x51c73f=_0x3b22f;super(),d(this,_0x51c73f(0x466),!0x1),d(this,'_init',!0x1),d(this,_0x51c73f(0x404),new v[(_0x51c73f(0x502))](new Map())),d(this,_0x51c73f(0x4aa),this[_0x51c73f(0x404)][_0x51c73f(0x56e)]()),d(this,_0x51c73f(0x288),new v['BehaviorSubject']([])),d(this,_0x51c73f(0x5bf),this[_0x51c73f(0x288)][_0x51c73f(0x3de)](v['debounceTime'](Ys))),d(this,_0x51c73f(0x37d),a[_0x51c73f(0x527)](_0x5cc1c5=>{const _0x1a1057=_0x51c73f,_0x531918={'eventID':_[_0x1a1057(0x44c)][_0x1a1057(0x5b6)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x1a1057(0x597)](),'selection':Tt(_0x5cc1c5)}};this[_0x1a1057(0x338)][_0x1a1057(0x3c5)](_0x531918,this[_0x1a1057(0x40e)]);},Ks)),(this[_0x51c73f(0x40e)]=_0x3cb284,this[_0x51c73f(0x338)]=_0x2c5102,this[_0x51c73f(0x397)]=_0x3b550b,this[_0x51c73f(0x594)]=_0x45abfa,this[_0x51c73f(0x4ec)]=_0x4ba55b,this['_syncEditingCollabCursorService']=_0x44a5c,this[_0x51c73f(0x294)]=_0x4c58f2,this[_0x51c73f(0x340)]=_0x1aacba,this[_0x51c73f(0x4b9)]=_0x20a6cd);}get[_0x3b22f(0x49a)](){const _0x186f6f=_0x3b22f;return this[_0x186f6f(0x404)][_0x186f6f(0x2a9)]();}get['roomMembers'](){const _0x59f09a=_0x3b22f;return this['_roomMembers$'][_0x59f09a(0x2a9)]();}[_0x3b22f(0x4f2)](){const _0x5ca9ba=_0x3b22f;super['dispose'](),this['_cursorInfo$'][_0x5ca9ba(0x52d)](new Map()),this['_cursorInfo$'][_0x5ca9ba(0x2ec)](),this[_0x5ca9ba(0x288)][_0x5ca9ba(0x52d)]([]),this[_0x5ca9ba(0x288)][_0x5ca9ba(0x2ec)]();}['init'](){const _0x313705=_0x3b22f;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](v[_0x313705(0x37c)](this['dispose$']))[_0x313705(0x42c)](_0x399fab=>{const _0x156b89=_0x313705;_0x399fab===$[_0x156b89(0x22f)]?this[_0x156b89(0x553)]():this['_toggleOffline']();}),this[_0x313705(0x338)][_0x313705(0x3b5)][_0x313705(0x3de)](v[_0x313705(0x37c)](this[_0x313705(0x2e1)]))[_0x313705(0x42c)](_0x492298=>{const _0x19bf29=_0x313705,_0x197da1=_0x492298[_0x19bf29(0x3cc)];_0x197da1===_['CollaborationEvent'][_0x19bf29(0x5b6)]&&this[_0x19bf29(0x426)](_0x492298),_0x197da1===_[_0x19bf29(0x44c)][_0x19bf29(0x51c)]&&this[_0x19bf29(0x2a1)](_0x492298);}),this[_0x313705(0x283)](this[_0x313705(0x4b9)]['onCommandExecuted'](_0x11f1e1=>{const _0x3189c1=_0x313705,_0xc7263c=_0x11f1e1[_0x3189c1(0x3b6)];_0xc7263c!=null&&this[_0x3189c1(0x466)]&&_0x11f1e1['id']===V[_0x3189c1(0x574)]['id']&&_0xc7263c[_0x3189c1(0x3df)]===this[_0x3189c1(0x40e)]&&_0xc7263c[_0x3189c1(0x40c)]===!0x1&&this[_0x3189c1(0x37d)](_0xc7263c[_0x3189c1(0x2b8)]);})),this[_0x313705(0x421)][_0x313705(0x45e)][_0x313705(0x3de)](v['takeUntil'](this['dispose$']))[_0x313705(0x42c)](_0x301da6=>{const _0x3c19ec=_0x313705;if((_0x301da6==null?void 0x0:_0x301da6[_0x3c19ec(0x40e)])!==this[_0x3c19ec(0x40e)])return;const _0x18360d={'eventID':_[_0x3c19ec(0x44c)][_0x3c19ec(0x5b6)],'data':_0x301da6};this[_0x3c19ec(0x426)](_0x18360d);}),this[_0x313705(0x283)](this['_commandService'][_0x313705(0x2dd)](_0xa4a618=>{const _0x475dce=_0x313705;if(_0xa4a618[_0x475dce(0x3b6)]==null)return;const _0x338bc1=_0xa4a618[_0x475dce(0x3b6)];if(_0xa4a618['id']!==V[_0x475dce(0x48d)]['id']||_0x338bc1[_0x475dce(0x3df)]!==this[_0x475dce(0x40e)])return;const _0x613e94={'id':_0x475dce(0x29f),'params':_0x338bc1},_0x1f4448=this[_0x475dce(0x49a)];for(const [_0xc75a64,_0x5cb49d]of _0x1f4448){const _0x3099a1={'id':_0x475dce(0x29f),'params':{'unitId':this[_0x475dce(0x40e)],'actions':null,'textRanges':_0x5cb49d[_0x475dce(0x2b8)]}},_0x123e43=this[_0x475dce(0x294)][_0x475dce(0x2c5)](_0x613e94,_0x3099a1,!0x1);if(_[_0x475dce(0x5cb)](_0x123e43))throw _0x123e43[_0x475dce(0x49d)];_0x1f4448[_0x475dce(0x305)](_0xc75a64,{..._0x5cb49d,'ranges':_0x123e43[_0x475dce(0x2e8)]['params'][_0x475dce(0x4a4)]});}queueMicrotask(()=>{const _0x442e43=_0x475dce;this[_0x442e43(0x404)][_0x442e43(0x52d)](_0x1f4448);});})));}['_onCursorUpdate'](_0x8cb4c4){const _0x4f155d=_0x3b22f;var _0x203a57,_0x19ab8e;const {memberID:_0x36da3f,selection:_0x27f51b}=_0x8cb4c4['data'],_0x26cf0e=Us(_0x27f51b),_0x5c829a=(_0x19ab8e=(_0x203a57=this[_0x4f155d(0x4ec)][_0x4f155d(0x303)](this[_0x4f155d(0x40e)],_0x36da3f))==null?void 0x0:_0x203a57['name'])!=null?_0x19ab8e:'Unknown\x20user',_0x1e8500={'color':this[_0x4f155d(0x594)][_0x4f155d(0x4ee)](_0x36da3f),'name':_0x5c829a,'ranges':_0x26cf0e},_0x2af4db=this[_0x4f155d(0x49a)];_0x2af4db['set'](_0x36da3f,_0x1e8500),this[_0x4f155d(0x404)][_0x4f155d(0x52d)](_0x2af4db);}[_0x3b22f(0x2a1)](_0x4247ca){const _0xb871b1=_0x3b22f,{memberID:_0x837a43}=_0x4247ca[_0xb871b1(0x45b)],_0x19c3ec=this[_0xb871b1(0x49a)];_0x19c3ec[_0xb871b1(0x2cc)](_0x837a43),this[_0xb871b1(0x404)][_0xb871b1(0x52d)](_0x19c3ec);}[_0x3b22f(0x553)](){const _0x2ccd45=_0x3b22f;var _0x403a08;if(this['_online']=!0x0,((_0x403a08=this['_univerInstanceService'][_0x2ccd45(0x255)]())==null?void 0x0:_0x403a08[_0x2ccd45(0x52b)]())!==this[_0x2ccd45(0x40e)])return;const _0x1dff6a=this[_0x2ccd45(0x397)][_0x2ccd45(0x34d)](V[_0x2ccd45(0x4a7)])['getDocRanges']();Array[_0x2ccd45(0x33f)](_0x1dff6a)&&_0x1dff6a[_0x2ccd45(0x291)]>0x0&&this['_updateLocalCursor'](_0x1dff6a);}[_0x3b22f(0x37f)](){const _0x297cde=_0x3b22f;this[_0x297cde(0x466)]=!0x1;}};$e=Gs([K(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),K(0x3,a[_0x3b22f(0x492)](Xe)),K(0x4,a[_0x3b22f(0x492)](q)),K(0x5,a['Inject'](Ye)),K(0x6,_[_0x3b22f(0x378)]),K(0x7,a['IUniverInstanceService']),K(0x8,a['ICommandService'])],$e);var Xs=Object['defineProperty'],qs=Object[_0x3b22f(0x246)],zs=(_0x1ffa44,_0x428231,_0x531baa,_0x12ca06)=>{for(var _0x495128=_0x12ca06>0x1?void 0x0:_0x12ca06?qs(_0x428231,_0x531baa):_0x428231,_0x4473a4=_0x1ffa44['length']-0x1,_0x242509;_0x4473a4>=0x0;_0x4473a4--)(_0x242509=_0x1ffa44[_0x4473a4])&&(_0x495128=(_0x12ca06?_0x242509(_0x428231,_0x531baa,_0x495128):_0x242509(_0x495128))||_0x495128);return _0x12ca06&&_0x495128&&Xs(_0x428231,_0x531baa,_0x495128),_0x495128;},Q=(_0x2077e0,_0x27fb54)=>(_0xa934ff,_0x1b669a)=>_0x27fb54(_0xa934ff,_0x1b669a,_0x2077e0);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x15a14d=[],_0x1bd2e8=!0x1;return _0x27d5b1=>{const _0x42054=_0x2c53;_0x15a14d[_0x42054(0x1ed)](_0x27d5b1),_0x1bd2e8||(_0x1bd2e8=!0x0,setTimeout(()=>{const _0x10e457=_0x42054;_0x15a14d[_0x10e457(0x339)](_0x5101c1=>_0x5101c1()),_0x15a14d=[],_0x1bd2e8=!0x1;}));};};let He=class extends a['RxDisposable']{constructor(_0x172152,_0x3ea4e7,_0x27acc6,_0x26af3e,_0x495579,_0x5245e9,_0x202d78,_0x3ee5b9){const _0x284fad=_0x3b22f;super(),d(this,_0x284fad(0x466),!0x1),d(this,_0x284fad(0x341),!0x1),d(this,_0x284fad(0x404),new v[(_0x284fad(0x502))](new Map())),d(this,'cursorInfo$',this[_0x284fad(0x404)][_0x284fad(0x56e)]()),d(this,_0x284fad(0x288),new v[(_0x284fad(0x502))]([])),d(this,'roomMembers$',this[_0x284fad(0x288)]['pipe'](v[_0x284fad(0x42f)](Js))),d(this,_0x284fad(0x37d),a['debounce']((_0xf7495d,_0x9df48f)=>{const _0x45d052=_0x284fad,_0x1db732={'eventID':_[_0x45d052(0x44c)][_0x45d052(0x5b6)],'data':{'unitID':this[_0x45d052(0x40e)],'memberID':this[_0x45d052(0x338)]['getMemberID'](),'selection':Je[_0x45d052(0x3e9)](_0xf7495d,_0x9df48f[_0x45d052(0x25e)])}};this['_session'][_0x45d052(0x3c5)](_0x1db732,this[_0x45d052(0x40e)]);},Zs)),(this[_0x284fad(0x40e)]=_0x172152,this[_0x284fad(0x338)]=_0x3ea4e7,this[_0x284fad(0x397)]=_0x27acc6,this[_0x284fad(0x594)]=_0x26af3e,this[_0x284fad(0x4ec)]=_0x495579,this[_0x284fad(0x340)]=_0x5245e9,this[_0x284fad(0x4b9)]=_0x202d78,this[_0x284fad(0x1fd)]=_0x3ee5b9);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x3b22f(0x4be)](){const _0x41b15c=_0x3b22f;return this[_0x41b15c(0x288)][_0x41b15c(0x2a9)]();}[_0x3b22f(0x4f2)](){const _0x433e81=_0x3b22f;super[_0x433e81(0x4f2)](),this['_cursorInfo$'][_0x433e81(0x52d)](new Map()),this['_cursorInfo$'][_0x433e81(0x2ec)](),this[_0x433e81(0x288)][_0x433e81(0x52d)]([]),this[_0x433e81(0x288)][_0x433e81(0x2ec)]();}[_0x3b22f(0x358)](){const _0x3ae396=_0x3b22f;this[_0x3ae396(0x341)]||(this[_0x3ae396(0x341)]=!0x0,this[_0x3ae396(0x338)][_0x3ae396(0x1f1)]['pipe'](v[_0x3ae396(0x37c)](this[_0x3ae396(0x2e1)]))[_0x3ae396(0x42c)](_0x49d375=>{const _0x23903a=_0x3ae396;_0x49d375===$[_0x23903a(0x22f)]?this[_0x23903a(0x553)]():this[_0x23903a(0x37f)]();}),this[_0x3ae396(0x338)]['event$']['pipe'](v['takeUntil'](this[_0x3ae396(0x2e1)]))['subscribe'](_0x152e13=>{const _0x48f413=_0x3ae396,_0x5dec91=_0x152e13[_0x48f413(0x3cc)];_0x5dec91===_[_0x48f413(0x44c)][_0x48f413(0x5b6)]&&this[_0x48f413(0x426)](_0x152e13),_0x5dec91===_[_0x48f413(0x44c)]['USERS_LEAVE']&&this[_0x48f413(0x2a1)](_0x152e13);}),this[_0x3ae396(0x38a)](),this[_0x3ae396(0x283)](this[_0x3ae396(0x4b9)]['onCommandExecuted'](_0x182058=>{const _0x528576=_0x3ae396;if(this[_0x528576(0x466)]&&_0x182058['id']===C['SetSelectionsOperation']['id']&&_0x182058[_0x528576(0x3b6)][_0x528576(0x3df)]===this['unitID']){const _0x168db3=_0x182058[_0x528576(0x3b6)];this['_updateLocalCursor'](_0x168db3[_0x528576(0x2b4)],_0x168db3[_0x528576(0x3c4)][0x0]);}})));}[_0x3b22f(0x426)](_0x2ab470){const _0x423408=_0x3b22f;var _0x59a792,_0x2298b4;const {memberID:_0x14ee3d,selection:_0x27a88e}=_0x2ab470['data'],{sheetName:_0x26c0d9,range:_0x44933a}=Je['deserializeRangeWithSheet'](_0x27a88e),_0x53b09e={'name':(_0x2298b4=(_0x59a792=this[_0x423408(0x4ec)][_0x423408(0x303)](this[_0x423408(0x40e)],_0x14ee3d))==null?void 0x0:_0x59a792[_0x423408(0x366)])!=null?_0x2298b4:_0x423408(0x250),'range':this[_0x423408(0x5af)](_0x26c0d9,_0x44933a),'sheetID':_0x26c0d9,'color':this[_0x423408(0x594)][_0x423408(0x4ee)](_0x14ee3d),'selection':_0x27a88e},_0x136ade=this['cursorInfo'];_0x136ade['set'](_0x14ee3d,_0x53b09e),this[_0x423408(0x404)][_0x423408(0x52d)](_0x136ade);}[_0x3b22f(0x2a1)](_0x2c8d79){const _0x43b51d=_0x3b22f,{memberID:_0x5d8b24}=_0x2c8d79[_0x43b51d(0x45b)],_0x1e54fe=this['cursorInfo'];_0x1e54fe[_0x43b51d(0x2cc)](_0x5d8b24),this[_0x43b51d(0x404)][_0x43b51d(0x52d)](_0x1e54fe);}['_getMergeRange'](_0x52a7c8,_0x54c487){const _0x1b0e79=_0x3b22f;var _0x283da9,_0x119618;const _0x285baa=(_0x119618=(_0x283da9=this['_univerInstanceService'][_0x1b0e79(0x2ac)](this[_0x1b0e79(0x40e)]))==null?void 0x0:_0x283da9[_0x1b0e79(0x2f1)](_0x52a7c8))==null?void 0x0:_0x119618[_0x1b0e79(0x4d8)]();return(_0x285baa==null?void 0x0:_0x285baa[_0x1b0e79(0x5dc)](_0xddfd87=>a[_0x1b0e79(0x337)]['contains'](_0xddfd87,_0x54c487)))||_0x54c487;}[_0x3b22f(0x38a)](){const _0x2cbaa9=_0x3b22f,_0x1214e5=new a[(_0x2cbaa9(0x35b))](),_0x2ea889=Qs(),_0x100e4c=()=>{const _0x2b75ec=_0x2cbaa9;_0x1214e5[_0x2b75ec(0x4f2)]();const _0x3e0c90=(_0x5b03ed,_0x23eeae,_0x1efddb,_0x436f26)=>{const _0x5498ad=_0x2b75ec;let _0x3f519a=[];switch(_0x5b03ed['id']){case C[_0x5498ad(0x2b5)][_0x5498ad(0x38d)]:{_0x3f519a=C['handleDeleteRangeMoveLeft'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x3f2)]:{_0x3f519a=C['handleDeleteRangeMoveUp'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x5a6)]:{_0x3f519a=C['handleInsertCol'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x2aa)]:{_0x3f519a=C[_0x5498ad(0x396)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x314)]:{_0x3f519a=C[_0x5498ad(0x523)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x48f)]:{_0x3f519a=C[_0x5498ad(0x5a5)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x497)]:{_0x3f519a=C[_0x5498ad(0x258)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)]['RemoveColCommandId']:{_0x3f519a=C[_0x5498ad(0x3c3)](_0x5b03ed,_0x436f26);break;}case C['EffectRefRangId'][_0x5498ad(0x2fe)]:{_0x3f519a=C['handleIRemoveRow'](_0x5b03ed,_0x436f26);break;}}const _0x3acc04=C[_0x5498ad(0x479)](_0x3f519a,_0x436f26),_0x54c530=this['cursorInfo'][_0x5498ad(0x34d)](_0x23eeae);if(_0x54c530&&_0x3acc04){const _0x104b14={..._0x54c530,'range':_0x3acc04};this[_0x5498ad(0x49a)][_0x5498ad(0x305)](_0x23eeae,_0x104b14),_0x2ea889(()=>{const _0x4edc55=_0x5498ad,_0x7a1eb7=this['_refRangeService'][_0x4edc55(0x58a)](_0x3acc04,_0xe8f3b9=>(_0x7a1eb7['dispose'](),_0x3e0c90(_0xe8f3b9,_0x23eeae,_0x1efddb,_0x3acc04)));_0x1214e5[_0x4edc55(0x405)](_0x7a1eb7);});}return{'redos':[],'undos':[]};};this[_0x2b75ec(0x49a)][_0x2b75ec(0x339)]((_0x4a84cf,_0x38b2f8)=>{const _0x1e3607=_0x2b75ec,{range:_0x10bca9,sheetID:_0x3d70c8}=_0x4a84cf,_0x4cc52f=this['_refRangeService'][_0x1e3607(0x58a)](_0x10bca9,_0x2c8db4=>(_0x4cc52f[_0x1e3607(0x4f2)](),_0x3e0c90(_0x2c8db4,_0x38b2f8,_0x3d70c8,_0x10bca9)));_0x1214e5[_0x1e3607(0x405)](_0x4cc52f);});};this['disposeWithMe'](a[_0x2cbaa9(0x526)](this[_0x2cbaa9(0x404)]['subscribe'](()=>{_0x100e4c();})));}[_0x3b22f(0x553)](){const _0x51f462=_0x3b22f;var _0x98aea9,_0x462724;if(this[_0x51f462(0x466)]=!0x0,((_0x98aea9=this[_0x51f462(0x340)][_0x51f462(0x255)]())==null?void 0x0:_0x98aea9[_0x51f462(0x52b)]())!==this[_0x51f462(0x40e)])return;const _0x4fad4a=(_0x462724=this[_0x51f462(0x397)][_0x51f462(0x34d)](C[_0x51f462(0x264)])[_0x51f462(0x3f4)]())==null?void 0x0:_0x462724[0x0],_0x38f4fe=this['_univerInstanceService'][_0x51f462(0x4e6)](a[_0x51f462(0x38e)][_0x51f462(0x3c0)])[_0x51f462(0x242)]();_0x4fad4a&&_0x38f4fe&&this[_0x51f462(0x37d)](_0x38f4fe['getSheetId'](),_0x4fad4a);}['_toggleOffline'](){const _0x8e385f=_0x3b22f;this[_0x8e385f(0x466)]=!0x1;}};He=zs([Q(0x2,a['Inject'](a[_0x3b22f(0x252)])),Q(0x3,a['Inject'](Xe)),Q(0x4,a['Inject'](q)),Q(0x5,a[_0x3b22f(0x26b)]),Q(0x6,a[_0x3b22f(0x323)]),Q(0x7,a[_0x3b22f(0x492)](C[_0x3b22f(0x44b)]))],He);var ei=Object[_0x3b22f(0x1ff)],ti=Object[_0x3b22f(0x246)],si=(_0x2253f8,_0x5ae97f,_0xde16c2,_0x2e8c02)=>{const _0x410075=_0x3b22f;for(var _0x3e14b3=_0x2e8c02>0x1?void 0x0:_0x2e8c02?ti(_0x5ae97f,_0xde16c2):_0x5ae97f,_0x1c68bf=_0x2253f8[_0x410075(0x291)]-0x1,_0x2b53f3;_0x1c68bf>=0x0;_0x1c68bf--)(_0x2b53f3=_0x2253f8[_0x1c68bf])&&(_0x3e14b3=(_0x2e8c02?_0x2b53f3(_0x5ae97f,_0xde16c2,_0x3e14b3):_0x2b53f3(_0x3e14b3))||_0x3e14b3);return _0x2e8c02&&_0x3e14b3&&ei(_0x5ae97f,_0xde16c2,_0x3e14b3),_0x3e14b3;},Pe=(_0x25ccac,_0x345f4c)=>(_0x3df078,_0x5593b4)=>_0x345f4c(_0x3df078,_0x5593b4,_0x25ccac);let ie=class extends a[_0x3b22f(0x398)]{constructor(_0x231ee1,_0x57d257,_0x2b613c){const _0xe83739=_0x3b22f;super(),d(this,_0xe83739(0x4de),new Map()),d(this,_0xe83739(0x3fd),new v[(_0xe83739(0x25f))]()),(this['_univerInstanceService']=_0x231ee1,this['_injector']=_0x57d257,this[_0xe83739(0x27c)]=_0x2b613c,this[_0xe83739(0x341)]());}[_0x3b22f(0x4f2)](){const _0x3321a6=_0x3b22f;super[_0x3321a6(0x4f2)](),this[_0x3321a6(0x3fd)][_0x3321a6(0x2ec)](),this[_0x3321a6(0x4de)][_0x3321a6(0x339)](_0x40c9c0=>_0x40c9c0[_0x3321a6(0x4f2)]());}[_0x3b22f(0x4f4)](_0x4017d2){const _0x49d94c=_0x3b22f;return this[_0x49d94c(0x4de)][_0x49d94c(0x3e5)](_0x4017d2)?this[_0x49d94c(0x4de)]['get'](_0x4017d2)[_0x49d94c(0x4aa)]:this[_0x49d94c(0x3fd)][_0x49d94c(0x3de)](v[_0x49d94c(0x3f9)](_0x9f6f51=>_0x9f6f51[_0x49d94c(0x40e)]===_0x4017d2),v[_0x49d94c(0x3fe)](_0x334b3c=>_0x334b3c['cursorInfo$']));}[_0x3b22f(0x341)](){const _0x25df68=_0x3b22f;this[_0x25df68(0x340)][_0x25df68(0x5e8)](a['UniverInstanceType'][_0x25df68(0x3c0)])[_0x25df68(0x3de)](v[_0x25df68(0x37c)](this[_0x25df68(0x2e1)]))[_0x25df68(0x42c)](async _0x4d97c0=>{const _0x531a02=_0x25df68,_0x4494bc=_0x4d97c0[_0x531a02(0x52b)](),_0x185d52=await this[_0x531a02(0x3dd)](_0x4494bc);this[_0x531a02(0x3fd)][_0x531a02(0x52d)](_0x185d52),this[_0x531a02(0x4de)]['set'](_0x4494bc,_0x185d52);}),this[_0x25df68(0x340)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x25df68(0x332)])[_0x25df68(0x3de)](v['takeUntil'](this['dispose$']))[_0x25df68(0x3de)](v[_0x25df68(0x3f9)](_0x188499=>!_0x188499['getUnitId']()[_0x25df68(0x561)]('__')))[_0x25df68(0x42c)](async _0x16d219=>{const _0x2ab719=_0x25df68,_0x1cadb0=_0x16d219[_0x2ab719(0x52b)](),_0x4811c2=await this[_0x2ab719(0x281)](_0x1cadb0);this[_0x2ab719(0x3fd)][_0x2ab719(0x52d)](_0x4811c2),this['_entities']['set'](_0x1cadb0,_0x4811c2);}),v['merge'](this[_0x25df68(0x340)][_0x25df68(0x24f)](a[_0x25df68(0x38e)][_0x25df68(0x332)]),this[_0x25df68(0x340)][_0x25df68(0x24f)](a[_0x25df68(0x38e)][_0x25df68(0x3c0)]))[_0x25df68(0x3de)](v[_0x25df68(0x37c)](this[_0x25df68(0x2e1)]))[_0x25df68(0x42c)](_0x2ed698=>{const _0x48390f=_0x25df68,_0x39329b=_0x2ed698[_0x48390f(0x52b)](),_0x4ce304=this[_0x48390f(0x4de)]['get'](_0x39329b);_0x4ce304&&(_0x4ce304['dispose'](),this[_0x48390f(0x4de)][_0x48390f(0x2cc)](_0x39329b));});}async[_0x3b22f(0x3dd)](_0x64a107){const _0x292ecd=_0x3b22f,_0x3ddf3b=await this[_0x292ecd(0x27c)][_0x292ecd(0x578)](_0x64a107),_0x23df5e=this['_injector'][_0x292ecd(0x5e4)](He,_0x64a107,_0x3ddf3b);return _0x23df5e[_0x292ecd(0x358)](),_0x23df5e;}async[_0x3b22f(0x281)](_0x2fe84a){const _0x22e3ab=_0x3b22f,_0x172bc8=await this['_collabSessionService'][_0x22e3ab(0x578)](_0x2fe84a),_0x3af732=this[_0x22e3ab(0x397)]['createInstance']($e,_0x2fe84a,_0x172bc8);return _0x3af732[_0x22e3ab(0x358)](),_0x3af732;}};ie=si([Pe(0x0,a[_0x3b22f(0x26b)]),Pe(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Pe(0x2,a[_0x3b22f(0x492)](exports[_0x3b22f(0x298)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x3de569,_0x249b26){const _0x1f8afa=_0x3b22f;let {radius:_0x4764d6,width:_0x4038fb,height:_0xc37411}=_0x249b26;_0x4764d6=_0x4764d6!=null?_0x4764d6:0x0,_0x4038fb=_0x4038fb!=null?_0x4038fb:0x1e,_0xc37411=_0xc37411!=null?_0xc37411:0x1e;let _0x244882=0x0,_0x31c797=0x0,_0x262140=0x0;_0x244882=_0x31c797=_0x262140=Math[_0x1f8afa(0x5de)](_0x4764d6,_0x4038fb/0x2,_0xc37411/0x2),_0x3de569['beginPath'](),_0x3de569[_0x1f8afa(0x57e)](_0x244882,0x0),_0x3de569[_0x1f8afa(0x342)](_0x4038fb-_0x31c797,0x0),_0x3de569[_0x1f8afa(0x3b1)](_0x4038fb-_0x31c797,_0x31c797,_0x31c797,Math['PI']*0x3/0x2,0x0,!0x1),_0x3de569['lineTo'](_0x4038fb,_0xc37411-_0x262140),_0x3de569['arc'](_0x4038fb-_0x262140,_0xc37411-_0x262140,_0x262140,0x0,Math['PI']/0x2,!0x1),_0x3de569[_0x1f8afa(0x342)](0x0,_0xc37411),_0x3de569[_0x1f8afa(0x342)](0x0,_0x244882),_0x3de569[_0x1f8afa(0x3b1)](_0x244882,_0x244882,_0x244882,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3de569['closePath'](),_0x249b26['fill']&&(_0x3de569[_0x1f8afa(0x1f5)](),_0x3de569[_0x1f8afa(0x38f)]=_0x249b26[_0x1f8afa(0x2f2)],_0x249b26['fillRule']===_0x1f8afa(0x50b)?_0x3de569['fill'](_0x1f8afa(0x50b)):_0x3de569['fill'](),_0x3de569[_0x1f8afa(0x372)]());}class Te extends R[_0x3b22f(0x28e)]{constructor(_0x2bf1f6,_0xd9ee83){const _0x189588=_0x3b22f;super(_0x2bf1f6,_0xd9ee83),d(this,'color'),d(this,_0x189588(0x41e)),(this['color']=_0xd9ee83==null?void 0x0:_0xd9ee83[_0x189588(0x1e9)],this[_0x189588(0x41e)]=_0xd9ee83==null?void 0x0:_0xd9ee83['text']);}static[_0x3b22f(0x5dd)](_0x3c04ed,_0x14dfaf){const _0x1e575b=_0x3b22f,{text:_0x33787b,color:_0x314a03}=_0x14dfaf;_0x3c04ed[_0x1e575b(0x1f5)](),_0x3c04ed['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x41ad12=_0x3c04ed[_0x1e575b(0x5ba)](_0x33787b)[_0x1e575b(0x481)],_0x457a51=Math[_0x1e575b(0x5de)](_0x41ad12+0x2*we,rt);ni(_0x3c04ed,{'height':ue,'radius':0x4,'width':_0x457a51,'fill':_0x314a03,'evented':!0x1}),_0x3c04ed[_0x1e575b(0x38f)]='#FFF';const _0xc0d7aa=we,_0x512864=ue-ii,_0x3ca160=rt-0x2*we;if(_0x41ad12>_0x3ca160){let _0x3085aa='',_0x20d62b=0x0;for(const _0x5e2947 of _0x33787b){const _0x105e0b=_0x3c04ed[_0x1e575b(0x5ba)](_0x5e2947)[_0x1e575b(0x481)];if(_0x20d62b+_0x105e0b<=_0x3ca160-_0x3c04ed[_0x1e575b(0x5ba)](_0x1e575b(0x253))[_0x1e575b(0x481)])_0x3085aa+=_0x5e2947,_0x20d62b+=_0x105e0b;else{_0x3085aa+=_0x1e575b(0x253);break;}}_0x3c04ed[_0x1e575b(0x295)](_0x3085aa,_0xc0d7aa,_0x512864);}else _0x3c04ed[_0x1e575b(0x295)](_0x33787b,_0xc0d7aa,_0x512864);_0x3c04ed[_0x1e575b(0x372)]();}[_0x3b22f(0x4cc)](_0x480ef1){const _0x4fc489=_0x3b22f;Te[_0x4fc489(0x5dd)](_0x480ef1,this);}}const Me=_0x3b22f(0x4c9),ri=_0x3b22f(0x41c),oi='collab-rect-range-',ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x3b22f(0x579);function _0x2c53(_0x3be5e2,_0x117f23){const _0x1d05c6=_0x1d05();return _0x2c53=function(_0x2c539a,_0x1cbb06){_0x2c539a=_0x2c539a-0x1e1;let _0x510421=_0x1d05c6[_0x2c539a];return _0x510421;},_0x2c53(_0x3be5e2,_0x117f23);}class ot{constructor(_0x50eac7,_0x2aa3c7,_0x123588,_0x32312d){const _0x261ec7=_0x3b22f;d(this,_0x261ec7(0x457),[]),d(this,_0x261ec7(0x46a),null),d(this,_0x261ec7(0x46d),null),d(this,_0x261ec7(0x57c),null),d(this,_0x261ec7(0x39f),null),d(this,'_eventUnsubscribe',null),(this[_0x261ec7(0x581)]=_0x50eac7,this[_0x261ec7(0x573)]=_0x2aa3c7,this['_docSkeleton']=_0x123588,this['_document']=_0x32312d,this[_0x261ec7(0x5a8)]());}set['_hover'](_0x5690e4){const _0x5d9edb=_0x3b22f;_0x5690e4?(this['_anchorDot']&&this[_0x5d9edb(0x57c)][_0x5d9edb(0x2ba)](),this[_0x5d9edb(0x46d)]&&this[_0x5d9edb(0x46d)][_0x5d9edb(0x224)]()):(this[_0x5d9edb(0x57c)]&&this['_anchorDot'][_0x5d9edb(0x224)](),this['_textBubble']&&this['_textBubble'][_0x5d9edb(0x2ba)]());}['dispose'](){const _0x4215c2=_0x3b22f;for(const _0x52fba3 of this[_0x4215c2(0x457)])_0x52fba3[_0x4215c2(0x4f2)]();this[_0x4215c2(0x46d)]&&this[_0x4215c2(0x46d)]['dispose'](),this[_0x4215c2(0x57c)]&&this[_0x4215c2(0x57c)][_0x4215c2(0x4f2)](),this[_0x4215c2(0x46a)]&&this[_0x4215c2(0x46a)]['dispose'](),this[_0x4215c2(0x248)]&&this['_eventUnsubscribe']();}['_render'](){const _0x593cfd=_0x3b22f;var _0x501c9f;const {_docSkeleton:_0x20e755,_document:_0x819570}=this,{color:_0x2ab924,name:_0x55abb7,ranges:_0xef9f8d}=this['_cursor'],_0x933742=_0x819570['getOffsetConfig'](),{docsLeft:_0x68fcb5,docsTop:_0xad7b62}=_0x933742,_0x273820=new w[(_0x593cfd(0x58d))](_0x933742,_0x20e755);for(const {startOffset:_0x3b787b,endOffset:_0x2931a9,collapsed:_0x41a7dd,isActive:_0x1425dc}of _0xef9f8d){const _0xd115ed=_0x20e755['findNodePositionByCharIndex'](_0x3b787b),_0x40b812=_0x20e755[_0x593cfd(0x540)](_0x2931a9);if(_0x1425dc){const {contentBoxPointGroup:_0x22acb0}=_0x273820[_0x593cfd(0x30f)](_0x40b812,_0x40b812);if(_0x22acb0[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x41b)](_0x2ab924,_0x22acb0,_0x68fcb5,_0xad7b62,_0x55abb7),this[_0x593cfd(0x248)]=this[_0x593cfd(0x286)]();}if(!_0x41a7dd&&_0xd115ed&&_0x40b812){if(w[_0x593cfd(0x28c)](_0xd115ed,_0x40b812)){const _0x2bd01b=new w[(_0x593cfd(0x282))](_0x933742,_0x20e755),{pointGroup:_0x38c0d1}=(_0x501c9f=_0x2bd01b[_0x593cfd(0x30f)](_0xd115ed,_0x40b812))!=null?_0x501c9f:{};if(_0x38c0d1==null||_0x38c0d1[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x1fc)](_0x2ab924,_0x38c0d1,_0x68fcb5,_0xad7b62);}else{const {contentBoxPointGroup:_0x41f668}=_0x273820[_0x593cfd(0x30f)](_0xd115ed,_0x40b812);if(_0x41f668[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x520)](_0x2ab924,_0x41f668,_0x68fcb5,_0xad7b62);}}}}[_0x3b22f(0x41b)](_0x59f3c5,_0x20e5e7,_0x157193,_0x4bb5de,_0x559fd0){const _0x2e8769=_0x3b22f,_0x246896=this[_0x2e8769(0x3d3)](_0x20e5e7),{left:_0x51a1d0,top:_0x5a1d3d,height:_0x40a047}=_0x246896,_0x13b53d=this['_getScale'](),_0x1bba98=ci/_0x13b53d,_0x1bfe24=new R['Rect'](Me+a['Tools'][_0x2e8769(0x409)](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de,'height':_0x40a047,'width':ai,'fill':_0x59f3c5||R['getColor'](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'strokeWidth':_0x1bba98,'stroke':li,'evented':!0x0});this['_anchor']=_0x1bfe24,this[_0x2e8769(0x573)][_0x2e8769(0x2ff)](_0x1bfe24,w[_0x2e8769(0x5a0)]);const _0x21f2de=new R['Rect'](Me+a[_0x2e8769(0x27d)]['generateRandomId'](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x59f3c5||R['getColor'](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'strokeWidth':0x0,'stroke':_0x59f3c5||R[_0x2e8769(0x427)](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'evented':!0x1});this[_0x2e8769(0x57c)]=_0x21f2de,this[_0x2e8769(0x573)][_0x2e8769(0x2ff)](_0x21f2de,w[_0x2e8769(0x5a0)]);const _0x401a3a=new Te(Me+a[_0x2e8769(0x27d)][_0x2e8769(0x409)](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de-ue,'text':_0x559fd0,'color':_0x59f3c5});this[_0x2e8769(0x46d)]=_0x401a3a,this['_scene'][_0x2e8769(0x2ff)](_0x401a3a,w[_0x2e8769(0x5a0)]),this[_0x2e8769(0x468)]=!0x1;}[_0x3b22f(0x286)](){const _0x59e1f3=_0x3b22f,_0x4527e2=this['_anchor'][_0x59e1f3(0x27a)][_0x59e1f3(0x3be)](()=>{const _0x398f6f=_0x59e1f3;this[_0x398f6f(0x468)]=!0x0;}),_0x55490b=this[_0x59e1f3(0x46a)]['onPointerLeave$'][_0x59e1f3(0x3be)](()=>{const _0x52193e=_0x59e1f3;this['_hideTimer']&&clearTimeout(this[_0x52193e(0x39f)]),this[_0x52193e(0x39f)]=setTimeout(()=>{const _0x586c4c=_0x52193e;this[_0x586c4c(0x468)]=!0x1;},0x7d0);});return()=>{const _0x2c9d62=_0x59e1f3;_0x4527e2['unsubscribe'](),_0x55490b[_0x2c9d62(0x3d4)]();};}[_0x3b22f(0x520)](_0x268032,_0x400ab3,_0x244da5,_0x256e2a){const _0x333598=_0x3b22f,_0x47c078=new a[(_0x333598(0x35a))](_0x268032)[_0x333598(0x236)](0.2)[_0x333598(0x532)](),_0x43f15c=new R[(_0x333598(0x3e1))](ri+a[_0x333598(0x27d)][_0x333598(0x409)](ce),{'pointsGroup':_0x400ab3,'fill':_0x47c078||R['getColor'](a[_0x333598(0x541)][_0x333598(0x4b3)],0.2),'left':_0x244da5,'top':_0x256e2a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x333598(0x1ed)](_0x43f15c),this['_scene']['addObject'](_0x43f15c,w[_0x333598(0x5a0)]);}[_0x3b22f(0x1fc)](_0x1d3bd0,_0x307bb7,_0x539e4d,_0x231f52){const _0x41c927=_0x3b22f,_0x1b7b1b=new a[(_0x41c927(0x35a))](_0x1d3bd0)[_0x41c927(0x236)](0.2)[_0x41c927(0x532)](),_0x2b9429=new R[(_0x41c927(0x3e1))](oi+a[_0x41c927(0x27d)][_0x41c927(0x409)](ce),{'pointsGroup':_0x307bb7,'fill':_0x1b7b1b||R['getColor'](a[_0x41c927(0x541)]['black'],0.2),'left':_0x539e4d,'top':_0x231f52,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x41c927(0x1ed)](_0x2b9429),this[_0x41c927(0x573)][_0x41c927(0x2ff)](_0x2b9429,w[_0x41c927(0x5a0)]);}[_0x3b22f(0x3d3)](_0x49d193){const _0xfd6647=_0x49d193[0x0],_0x524ca3=_0xfd6647[0x0],_0x45e720=_0xfd6647[0x2],{x:_0x48ac2b,y:_0x44c32d}=_0x524ca3,{x:_0x25df25,y:_0x389c1a}=_0x45e720;return{'left':_0x48ac2b,'top':_0x44c32d,'width':_0x25df25-_0x48ac2b,'height':_0x389c1a-_0x44c32d};}[_0x3b22f(0x24c)](){const _0x2a9200=_0x3b22f,{scaleX:_0x57d8f3,scaleY:_0x36063d}=this[_0x2a9200(0x573)][_0x2a9200(0x4a1)]();return Math[_0x2a9200(0x31e)](_0x57d8f3,_0x36063d);}}var hi=Object['defineProperty'],_i=Object[_0x3b22f(0x246)],ui=(_0xfadf41,_0x2b7ab9,_0x111a35,_0x1eb655)=>{const _0x44533e=_0x3b22f;for(var _0xd18abb=_0x1eb655>0x1?void 0x0:_0x1eb655?_i(_0x2b7ab9,_0x111a35):_0x2b7ab9,_0x4cd94b=_0xfadf41[_0x44533e(0x291)]-0x1,_0x5e6014;_0x4cd94b>=0x0;_0x4cd94b--)(_0x5e6014=_0xfadf41[_0x4cd94b])&&(_0xd18abb=(_0x1eb655?_0x5e6014(_0x2b7ab9,_0x111a35,_0xd18abb):_0x5e6014(_0xd18abb))||_0xd18abb);return _0x1eb655&&_0xd18abb&&hi(_0x2b7ab9,_0x111a35,_0xd18abb),_0xd18abb;},de=(_0x87f741,_0x38aa3b)=>(_0x30b7be,_0x44c04e)=>_0x38aa3b(_0x30b7be,_0x44c04e,_0x87f741);let xe=class extends a['RxDisposable']{constructor(_0x5f43eb,_0x28de74,_0x48a793,_0x2c5cac,_0x3b094c){const _0x11f209=_0x3b22f;super(),d(this,_0x11f209(0x5c0),[]),d(this,'_cursors',[]),(this[_0x11f209(0x2d8)]=_0x5f43eb,this[_0x11f209(0x464)]=_0x28de74,this[_0x11f209(0x45c)]=_0x48a793,this['_commandService']=_0x2c5cac,this[_0x11f209(0x3d9)]=_0x3b094c,this[_0x11f209(0x341)]());}[_0x3b22f(0x341)](){const _0x830ca6=_0x3b22f,_0xf05871=this['_context'][_0x830ca6(0x3df)],_0x413ef3=this[_0x830ca6(0x464)];this[_0x830ca6(0x283)](v[_0x830ca6(0x417)]([this[_0x830ca6(0x45c)][_0x830ca6(0x4f4)](_0xf05871),this[_0x830ca6(0x3d9)][_0x830ca6(0x3e4)]])[_0x830ca6(0x3de)](E[_0x830ca6(0x57b)](([_0x468008,_0x52d44b])=>({'skeleton':_0x413ef3['getSkeleton'](),'cursors':[..._0x468008[_0x830ca6(0x407)]()][_0x830ca6(0x5c7)](_0x367939=>({..._0x367939,'color':_0x52d44b[_0x367939[_0x830ca6(0x1e9)]]}))})))[_0x830ca6(0x42c)](_0x68dc15=>{const _0x19b43d=_0x830ca6;if(this[_0x19b43d(0x2dc)](),_0x68dc15){const {skeleton:_0x46090d,cursors:_0x43f752}=_0x68dc15;this[_0x19b43d(0x560)](_0x46090d,_0x43f752);}})),this[_0x830ca6(0x447)](),this[_0x830ca6(0x31a)]();}['_updateCollabCursors'](_0x5894fc,_0x2ac514){const _0x32fee=_0x3b22f,{scene:_0x4523d3,mainComponent:_0x50b5b}=this[_0x32fee(0x2d8)],_0x18eb3a=_0x2ac514[_0x32fee(0x57b)](_0x48258c=>new ot(_0x48258c,_0x4523d3,_0x5894fc,_0x50b5b));this['_cursorShapes']=_0x18eb3a,this[_0x32fee(0x304)]=_0x2ac514;}[_0x3b22f(0x441)](){const _0x5aa550=_0x3b22f;this[_0x5aa550(0x2dc)]();const {scene:_0x5927db,mainComponent:_0x48afa1}=this[_0x5aa550(0x2d8)],_0x2d0e9e=this[_0x5aa550(0x464)][_0x5aa550(0x229)](),_0x4b762a=this['_cursors'][_0x5aa550(0x57b)](_0x1c3839=>new ot(_0x1c3839,_0x5927db,_0x2d0e9e,_0x48afa1));this[_0x5aa550(0x5c0)]=_0x4b762a;}['_removeCollabCursors'](){const _0x5127ee=_0x3b22f;this[_0x5127ee(0x5c0)]['forEach'](_0x2d6545=>_0x2d6545['dispose']()),this[_0x5127ee(0x5c0)]=[];}[_0x3b22f(0x31a)](){const _0x322feb=_0x3b22f,_0x31582f=[w[_0x322feb(0x32b)]['id']];this['disposeWithMe'](this[_0x322feb(0x4b9)][_0x322feb(0x2dd)](_0x1496e1=>{const _0x31d215=_0x322feb;_0x31582f[_0x31d215(0x565)](_0x1496e1['id'])&&_0x1496e1[_0x31d215(0x3b6)][_0x31d215(0x3df)]===this[_0x31d215(0x2d8)]['unitId']&&this[_0x31d215(0x441)]();}));}[_0x3b22f(0x447)](){const _0x20487b=_0x3b22f;this['disposeWithMe'](a[_0x20487b(0x401)](this[_0x20487b(0x2d8)][_0x20487b(0x31c)][_0x20487b(0x5be)])[_0x20487b(0x3de)](E[_0x20487b(0x3f9)](_0x4ff955=>_0x4ff955['type']===R[_0x20487b(0x458)]['resize']),E[_0x20487b(0x231)](0x10))[_0x20487b(0x42c)](()=>{const _0x3963c8=_0x20487b;this[_0x3963c8(0x441)]();}));}};xe=ui([de(0x1,a['Inject'](V[_0x3b22f(0x495)])),de(0x2,a[_0x3b22f(0x492)](ie)),de(0x3,a[_0x3b22f(0x323)]),de(0x4,a[_0x3b22f(0x492)](a[_0x3b22f(0x4ab)]))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x3b22f(0x28e)]{constructor(_0x3046af,_0x35f64e){const _0x5a5949=_0x3b22f;super(_0x3046af,_0x35f64e),d(this,_0x5a5949(0x2ab)),d(this,_0x5a5949(0x207),!0x1),d(this,_0x5a5949(0x3ac)),d(this,_0x5a5949(0x26a),''),d(this,_0x5a5949(0x51f),_0x5a5949(0x4d9)),d(this,_0x5a5949(0x369)),(_0x35f64e&&this[_0x5a5949(0x592)](_0x35f64e),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x5a5949(0x592)]({'hovered':!0x0})),this[_0x5a5949(0x247)][_0x5a5949(0x3be)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3b22f(0x592)](_0x429d1e){const _0x371e78=_0x3b22f;var _0x471993,_0x11c66f,_0x2a24d5,_0x19dc6e,_0x2a7e0d,_0x47ccff;this[_0x371e78(0x2ab)]=(_0x471993=_0x429d1e['color'])!=null?_0x471993:this[_0x371e78(0x2ab)],this['_hovered']=(_0x11c66f=_0x429d1e[_0x371e78(0x3ab)])!=null?_0x11c66f:this[_0x371e78(0x207)],this[_0x371e78(0x3ac)]=(_0x2a24d5=_0x429d1e['range'])!=null?_0x2a24d5:this['_range'],this['_name']=(_0x19dc6e=_0x429d1e[_0x371e78(0x366)])!=null?_0x19dc6e:this[_0x371e78(0x26a)],this[_0x371e78(0x51f)]=(_0x2a7e0d=_0x429d1e['labelPosition'])!=null?_0x2a7e0d:this[_0x371e78(0x51f)],this[_0x371e78(0x369)]=(_0x47ccff=_0x429d1e[_0x371e78(0x382)])!=null?_0x47ccff:this[_0x371e78(0x369)],this[_0x371e78(0x26f)]({'width':_0x429d1e[_0x371e78(0x481)],'height':_0x429d1e[_0x371e78(0x1f0)]});}[_0x3b22f(0x3b9)](_0x16e32b){const _0x99d0f1=_0x3b22f,{row:_0x1f9cd9,column:_0x48a038}=_0x16e32b;if(_0x1f9cd9>=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x472)]&&_0x1f9cd9<=this[_0x99d0f1(0x3ac)]['endRow']&&_0x48a038>=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x595)]&&_0x48a038<=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x375)]){this[_0x99d0f1(0x592)]({'hovered':!0x0});return;}this[_0x99d0f1(0x592)]({'hovered':!0x1});}[_0x3b22f(0x26d)](_0x3a871f){return!0x1;}[_0x3b22f(0x4cc)](_0x202747){const _0xe4eb5a=_0x3b22f;R[_0xe4eb5a(0x299)]['drawWith'](_0x202747,{'width':this[_0xe4eb5a(0x481)],'height':this[_0xe4eb5a(0x1f0)],'strokeWidth':Si,'stroke':this[_0xe4eb5a(0x2ab)],'evented':!0x1,'fill':this[_0xe4eb5a(0x369)]}),this['_hovered']&&(_0x202747[_0xe4eb5a(0x1f5)](),_0x202747['transform'](0x1,0x0,0x0,0x1,this[_0xe4eb5a(0x481)],this['_labelPosition']===_0xe4eb5a(0x3bd)?0x0:-ue),Te[_0xe4eb5a(0x5dd)](_0x202747,{'text':this['_name'],'color':this['_color']}),_0x202747[_0xe4eb5a(0x372)]());}}var vi=Object[_0x3b22f(0x1ff)],fi=Object[_0x3b22f(0x246)],gi=(_0x4a1bcb,_0x2fe850,_0x7204d9,_0x1c60d9)=>{const _0x4c5f5a=_0x3b22f;for(var _0x475012=_0x1c60d9>0x1?void 0x0:_0x1c60d9?fi(_0x2fe850,_0x7204d9):_0x2fe850,_0x3b31a4=_0x4a1bcb[_0x4c5f5a(0x291)]-0x1,_0x42c6f9;_0x3b31a4>=0x0;_0x3b31a4--)(_0x42c6f9=_0x4a1bcb[_0x3b31a4])&&(_0x475012=(_0x1c60d9?_0x42c6f9(_0x2fe850,_0x7204d9,_0x475012):_0x42c6f9(_0x475012))||_0x475012);return _0x1c60d9&&_0x475012&&vi(_0x2fe850,_0x7204d9,_0x475012),_0x475012;},Ae=(_0x14427a,_0x354eb2)=>(_0x297ce,_0x58e85e)=>_0x354eb2(_0x297ce,_0x58e85e,_0x14427a);const mi=0x1389;let ke=class extends a[_0x3b22f(0x398)]{constructor(_0x4671ae,_0x134d1f,_0xe3c33b,_0xce97ca){const _0x5f16c5=_0x3b22f;super(),d(this,_0x5f16c5(0x304),new Set()),d(this,_0x5f16c5(0x351),null),(this['_context']=_0x4671ae,this[_0x5f16c5(0x330)]=_0x134d1f,this[_0x5f16c5(0x45c)]=_0xe3c33b,this[_0x5f16c5(0x3d9)]=_0xce97ca,this[_0x5f16c5(0x341)]());}[_0x3b22f(0x341)](){const _0x46b214=_0x3b22f;this[_0x46b214(0x330)][_0x46b214(0x350)][_0x46b214(0x3de)](E[_0x46b214(0x37c)](this[_0x46b214(0x2e1)]),E[_0x46b214(0x3fe)](_0x36798e=>{const _0x30ad38=_0x46b214;if(_0x36798e){const _0x4b198e=_0x36798e[_0x30ad38(0x453)];return v[_0x30ad38(0x417)](this['_collabCursorController']['getCollabCursors$'](this[_0x30ad38(0x2d8)][_0x30ad38(0x3df)]),this[_0x30ad38(0x3d9)][_0x30ad38(0x3e4)])[_0x30ad38(0x3de)](E[_0x30ad38(0x57b)](([_0x565e87,_0x157614])=>{const _0x37d621=_0x30ad38,_0x5d3382=new Map();return _0x565e87[_0x37d621(0x339)]((_0x24f436,_0xa78849)=>{const _0x154853=_0x37d621;if(_0x24f436[_0x154853(0x52c)]===_0x4b198e){const _0x45cd01={..._0x24f436};_0x45cd01[_0x154853(0x1e9)]=_0x157614[_0x24f436[_0x154853(0x1e9)]],_0x5d3382['set'](_0xa78849,_0x45cd01);}}),{'skeleton':_0x36798e,'cursors':_0x5d3382};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x46b214(0x42c)](({skeleton:_0x10f994,cursors:_0x417dd5})=>{const _0x1e3b39=_0x46b214;this[_0x1e3b39(0x2dc)](),_0x10f994&&this[_0x1e3b39(0x560)](_0x10f994,_0x417dd5);}),this[_0x46b214(0x330)][_0x46b214(0x350)][_0x46b214(0x42c)](_0x5a8e0b=>{const _0x39fe68=_0x46b214;if(_0x5a8e0b==null)return;const {skeleton:_0x411564}=_0x5a8e0b,{scene:_0x9f5268}=this[_0x39fe68(0x2d8)];_0x9f5268[_0x39fe68(0x51e)][_0x39fe68(0x3be)](a['debounce'](_0x115ea2=>{const _0x5e0248=_0x39fe68;var _0x4c8516,_0x27661a;const {offsetX:_0x2c9223,offsetY:_0x33c2ef}=_0x115ea2,{x:_0x1f2c5a,y:_0x37ccff}=_0x9f5268[_0x5e0248(0x2fd)](R[_0x5e0248(0x559)]['FromArray']([_0x2c9223,_0x33c2ef])),{scaleX:_0x281d56,scaleY:_0x5ac98c}=_0x9f5268['getAncestorScale'](),_0x5b3715=_0x9f5268[_0x5e0248(0x29d)](te['VIEWPORT_KEY'][_0x5e0248(0x59c)]),_0x5ec5f3=_0x9f5268['getVpScrollXYInfoByPosToVp'](R['Vector2'][_0x5e0248(0x313)]([_0x1f2c5a,_0x37ccff]),_0x5b3715),_0x3b00b9=_0x411564['getCellPositionByOffset'](_0x2c9223,_0x33c2ef,_0x281d56,_0x5ac98c,_0x5ec5f3);((_0x4c8516=this[_0x5e0248(0x351)])==null?void 0x0:_0x4c8516['column'])===_0x3b00b9[_0x5e0248(0x5d7)]&&((_0x27661a=this['_lastPointer'])==null?void 0x0:_0x27661a['row'])===_0x3b00b9[_0x5e0248(0x4c5)]||this[_0x5e0248(0x304)]['forEach'](_0xcdaf7e=>{const _0xfccfed=_0x5e0248;_0xcdaf7e[_0xfccfed(0x3b9)](_0x3b00b9);});},0x64));});}[_0x3b22f(0x560)](_0x387538,_0x2d8912){const _0x19d216=_0x3b22f;var _0x3931e4;const _0x219a89=(_0x3931e4=this[_0x19d216(0x330)]['getCurrent']())==null?void 0x0:_0x3931e4['skeleton'];if(!_0x219a89)return;const _0x10616e=this[_0x19d216(0x556)]();if(!_0x10616e)return;this[_0x19d216(0x304)][_0x19d216(0x339)](_0x367948=>{const _0x41630e=_0x19d216;_0x367948[_0x41630e(0x48e)]();});const {scene:_0x40566b}=_0x10616e,_0x22f49a=Ii(Array['from'](_0x2d8912[_0x19d216(0x407)]()))[_0x19d216(0x57b)](_0x3b646b=>{const _0x1c5677=_0x19d216,{color:_0x184522,range:_0x381b22,name:_0x2330fe,selection:_0x4e8ca6,sheetID:_0xf34080}=_0x3b646b,{startColumn:_0x493009,startRow:_0x4b9cff,endColumn:_0x3a58cd,endRow:_0x470f79}=_0x381b22,_0x448fdc=te[_0x1c5677(0x562)](_0x4b9cff,_0x493009,_0x40566b,_0x219a89),_0x1ef8c8=te[_0x1c5677(0x562)](_0x470f79,_0x3a58cd,_0x40566b,_0x219a89),{columnHeaderHeightAndMarginTop:_0x2d5c20}=_0x219a89,{startX:_0x125264,startY:_0xb99fe7}=_0x448fdc,{endX:_0x329c49,endY:_0x1bf0cd}=_0x1ef8c8,_0x141345=_0x329c49-_0x125264,_0x309566=_0x1bf0cd-_0xb99fe7,_0x5ac3c1={'labelPosition':_0xb99fe7-_0x2d5c20>=ue?_0x1c5677(0x4d9):'bottom','sheetID':_0xf34080,'range':_0x381b22,'color':_0x184522,'name':_0x2330fe,'selection':_0x4e8ca6,'left':_0x125264,'top':_0xb99fe7,'width':_0x141345,'height':_0x309566,'evented':!0x1,'zIndex':mi};return new Ot(_0x2330fe,_0x5ac3c1);});_0x40566b[_0x19d216(0x4a9)](_0x22f49a,di),this[_0x19d216(0x304)]=new Set(_0x22f49a);}[_0x3b22f(0x2dc)](){const _0x18e6f5=_0x3b22f;var _0x42c1e0;(_0x42c1e0=this[_0x18e6f5(0x304)])==null||_0x42c1e0[_0x18e6f5(0x339)](_0x232f6e=>_0x232f6e[_0x18e6f5(0x4f2)]());}[_0x3b22f(0x556)](){const _0x2fa5e6=_0x3b22f;return te[_0x2fa5e6(0x287)](this[_0x2fa5e6(0x2d8)][_0x2fa5e6(0x59f)],this[_0x2fa5e6(0x2d8)]);}};ke=gi([Ae(0x1,a[_0x3b22f(0x492)](te[_0x3b22f(0x21a)])),Ae(0x2,a[_0x3b22f(0x492)](ie)),Ae(0x3,a['Inject'](a[_0x3b22f(0x4ab)]))],ke);function Ii(_0x51a7a2){const _0x25738d=_0x3b22f,_0x37d589=new Map();return _0x51a7a2[_0x25738d(0x339)](_0x2dba96=>{const _0x3728f8=_0x25738d;if(_0x37d589[_0x3728f8(0x3e5)](_0x2dba96['selection'])){const _0x5e8aaf=_0x37d589[_0x3728f8(0x34d)](_0x2dba96[_0x3728f8(0x476)]);_0x5e8aaf[_0x3728f8(0x366)]+=',\x20'+_0x2dba96[_0x3728f8(0x366)];}else _0x37d589[_0x3728f8(0x305)](_0x2dba96[_0x3728f8(0x476)],_0x2dba96);}),Array[_0x25738d(0x1e8)](_0x37d589[_0x25738d(0x407)]());}var M=function(){const _0x16e31a=_0x3b22f;return M=Object[_0x16e31a(0x259)]||function(_0x4eee2d){const _0x5c684=_0x16e31a;for(var _0x18806c,_0x3d0aa4=0x1,_0x292f9c=arguments[_0x5c684(0x291)];_0x3d0aa4<_0x292f9c;_0x3d0aa4++){_0x18806c=arguments[_0x3d0aa4];for(var _0x3b796d in _0x18806c)Object[_0x5c684(0x4cf)]['hasOwnProperty'][_0x5c684(0x4d0)](_0x18806c,_0x3b796d)&&(_0x4eee2d[_0x3b796d]=_0x18806c[_0x3b796d]);}return _0x4eee2d;},M[_0x16e31a(0x4cd)](this,arguments);},pi=function(_0x1e0d0e,_0x12c5cb){const _0x3c763d=_0x3b22f;var _0x191ec8={};for(var _0xf3104f in _0x1e0d0e)Object['prototype'][_0x3c763d(0x53f)][_0x3c763d(0x4d0)](_0x1e0d0e,_0xf3104f)&&_0x12c5cb[_0x3c763d(0x238)](_0xf3104f)<0x0&&(_0x191ec8[_0xf3104f]=_0x1e0d0e[_0xf3104f]);if(_0x1e0d0e!=null&&typeof Object[_0x3c763d(0x5da)]==_0x3c763d(0x554)){for(var _0x14bed1=0x0,_0xf3104f=Object[_0x3c763d(0x5da)](_0x1e0d0e);_0x14bed1<_0xf3104f[_0x3c763d(0x291)];_0x14bed1++)_0x12c5cb['indexOf'](_0xf3104f[_0x14bed1])<0x0&&Object[_0x3c763d(0x4cf)][_0x3c763d(0x563)]['call'](_0x1e0d0e,_0xf3104f[_0x14bed1])&&(_0x191ec8[_0xf3104f[_0x14bed1]]=_0x1e0d0e[_0xf3104f[_0x14bed1]]);}return _0x191ec8;},qe=U[_0x3b22f(0x5b8)](function(_0x584ce1,_0x319f75){const _0x15d226=_0x3b22f;var _0x5f5282=_0x584ce1[_0x15d226(0x3c1)],_0x407e4a=_0x584ce1['id'],_0x14b22b=_0x584ce1['className'],_0x345b4b=_0x584ce1['extend'],_0x9dc4e8=pi(_0x584ce1,[_0x15d226(0x3c1),'id','className','extend']),_0x360506=_0x15d226(0x443)[_0x15d226(0x533)](_0x407e4a,'\x20')[_0x15d226(0x533)](_0x14b22b||'')[_0x15d226(0x3fc)](),_0x306198=U[_0x15d226(0x385)]('_'[_0x15d226(0x533)](bi()));return Dt(_0x5f5282,''['concat'](_0x407e4a),{'defIds':_0x5f5282[_0x15d226(0x5e1)],'idSuffix':_0x306198[_0x15d226(0x32e)]},M({'ref':_0x319f75,'className':_0x360506},_0x9dc4e8),_0x345b4b);});function Dt(_0x157d61,_0x3eb8e6,_0x2e08c4,_0x49a5f5,_0x34f3eb){const _0x5a308a=_0x3b22f;return U[_0x5a308a(0x494)](_0x157d61['tag'],M(M({'key':_0x3eb8e6},Ci(_0x157d61,_0x2e08c4,_0x34f3eb)),_0x49a5f5),(Ei(_0x157d61,_0x2e08c4)[_0x5a308a(0x44e)]||[])[_0x5a308a(0x57b)](function(_0x319ddc,_0x45a123){const _0x4a97fa=_0x5a308a;return Dt(_0x319ddc,''[_0x4a97fa(0x533)](_0x3eb8e6,'-')[_0x4a97fa(0x533)](_0x157d61[_0x4a97fa(0x43d)],'-')['concat'](_0x45a123),_0x2e08c4,void 0x0,_0x34f3eb);}));}function Ci(_0x5c9eee,_0x1c5e18,_0x700f90){const _0x15c40d=_0x3b22f;var _0x217ef6=M({},_0x5c9eee[_0x15c40d(0x5d3)]);_0x700f90!=null&&_0x700f90[_0x15c40d(0x20b)]&&_0x217ef6[_0x15c40d(0x2f2)]==='colorChannel1'&&(_0x217ef6[_0x15c40d(0x2f2)]=_0x700f90[_0x15c40d(0x20b)]);var _0x51088a=_0x1c5e18[_0x15c40d(0x5e1)];return!_0x51088a||_0x51088a['length']===0x0||(_0x5c9eee[_0x15c40d(0x43d)]==='use'&&_0x217ef6[_0x15c40d(0x3d1)]&&(_0x217ef6[_0x15c40d(0x3d1)]=_0x217ef6[_0x15c40d(0x3d1)]+_0x1c5e18[_0x15c40d(0x4db)]),Object['entries'](_0x217ef6)[_0x15c40d(0x339)](function(_0x8d3765){const _0x1a7fab=_0x15c40d;var _0x26f651=_0x8d3765[0x0],_0x54c482=_0x8d3765[0x1];typeof _0x54c482=='string'&&(_0x217ef6[_0x26f651]=_0x54c482[_0x1a7fab(0x262)](/url\(#(.*)\)/,_0x1a7fab(0x3f7)[_0x1a7fab(0x533)](_0x1c5e18[_0x1a7fab(0x4db)],')')));})),_0x217ef6;}function Ei(_0xe08c60,_0x164eca){const _0x226177=_0x3b22f;var _0x38605f,_0xe3318a=_0x164eca[_0x226177(0x5e1)];return!_0xe3318a||_0xe3318a[_0x226177(0x291)]===0x0?_0xe08c60:_0xe08c60[_0x226177(0x43d)]===_0x226177(0x50f)&&(!((_0x38605f=_0xe08c60['children'])===null||_0x38605f===void 0x0)&&_0x38605f[_0x226177(0x291)])?M(M({},_0xe08c60),{'children':_0xe08c60[_0x226177(0x44e)][_0x226177(0x57b)](function(_0x84ecb3){const _0x44647b=_0x226177;return typeof _0x84ecb3[_0x44647b(0x5d3)]['id']=='string'&&_0xe3318a&&_0xe3318a['indexOf'](_0x84ecb3['attrs']['id'])>-0x1?M(M({},_0x84ecb3),{'attrs':M(M({},_0x84ecb3['attrs']),{'id':_0x84ecb3[_0x44647b(0x5d3)]['id']+_0x164eca[_0x44647b(0x4db)]})}):_0x84ecb3;})}):_0xe08c60;}function bi(){const _0x265476=_0x3b22f;return Math[_0x265476(0x482)]()[_0x265476(0x4e2)](0x24)[_0x265476(0x35d)](0x2,0x8);}qe[_0x3b22f(0x499)]='UniverIcon';var Ti={'tag':_0x3b22f(0x448),'attrs':{'fill':'none','viewBox':_0x3b22f(0x5a2),'width':_0x3b22f(0x39e),'height':_0x3b22f(0x39e)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b22f(0x219)},'children':[{'tag':_0x3b22f(0x321),'attrs':{'stroke':_0x3b22f(0x478),'d':'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','strokeLinecap':_0x3b22f(0x3e6),'strokeLinejoin':_0x3b22f(0x3e6),'strokeWidth':1.2}}]},{'tag':_0x3b22f(0x50f),'attrs':{},'children':[{'tag':_0x3b22f(0x58f),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x3b22f(0x5e2),'d':_0x3b22f(0x222)}}]}]}],'defIds':[_0x3b22f(0x5e0)]},yt=U['forwardRef'](function(_0x476043,_0x87e49e){const _0x770cdd=_0x3b22f;return U[_0x770cdd(0x494)](qe,Object[_0x770cdd(0x259)]({},_0x476043,{'id':_0x770cdd(0x355),'ref':_0x87e49e,'icon':Ti}));});yt[_0x3b22f(0x499)]=_0x3b22f(0x5c5);var Ri={'tag':'svg','attrs':{'fill':_0x3b22f(0x2c0),'viewBox':_0x3b22f(0x552),'width':_0x3b22f(0x39e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3b22f(0x550)},'children':[{'tag':'path','attrs':{'stroke':_0x3b22f(0x478),'d':_0x3b22f(0x456),'strokeLinecap':_0x3b22f(0x3e6),'strokeLinejoin':_0x3b22f(0x3e6),'strokeWidth':1.2}}]},{'tag':_0x3b22f(0x50f),'attrs':{},'children':[{'tag':_0x3b22f(0x58f),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x3b22f(0x321),'attrs':{'fill':_0x3b22f(0x5e2),'d':_0x3b22f(0x222),'transform':_0x3b22f(0x2b7)}}]}]}],'defIds':[_0x3b22f(0x2f5)]},Ut=U[_0x3b22f(0x5b8)](function(_0x567135,_0x426d4e){const _0x608fdd=_0x3b22f;return U['createElement'](qe,Object[_0x608fdd(0x259)]({},_0x567135,{'id':_0x608fdd(0x1e7),'ref':_0x426d4e,'icon':Ri}));});Ut[_0x3b22f(0x499)]=_0x3b22f(0x2d1);function Pt(_0x4abb31){const _0x17fdac=_0x3b22f;var _0x3a2b3b,_0x23ff24,_0x5580bb='';if(typeof _0x4abb31==_0x17fdac(0x40a)||typeof _0x4abb31==_0x17fdac(0x3f0))_0x5580bb+=_0x4abb31;else{if(typeof _0x4abb31==_0x17fdac(0x529)){if(Array[_0x17fdac(0x33f)](_0x4abb31)){var _0x3bf54a=_0x4abb31[_0x17fdac(0x291)];for(_0x3a2b3b=0x0;_0x3a2b3b<_0x3bf54a;_0x3a2b3b++)_0x4abb31[_0x3a2b3b]&&(_0x23ff24=Pt(_0x4abb31[_0x3a2b3b]))&&(_0x5580bb&&(_0x5580bb+='\x20'),_0x5580bb+=_0x23ff24);}else{for(_0x23ff24 in _0x4abb31)_0x4abb31[_0x23ff24]&&(_0x5580bb&&(_0x5580bb+='\x20'),_0x5580bb+=_0x23ff24);}}}return _0x5580bb;}function Oi(){const _0x1a39d6=_0x3b22f;for(var _0x57a9c5,_0x3e8149,_0x4e3bfe=0x0,_0xf99454='',_0xac0a6f=arguments[_0x1a39d6(0x291)];_0x4e3bfe<_0xac0a6f;_0x4e3bfe++)(_0x57a9c5=arguments[_0x4e3bfe])&&(_0x3e8149=Pt(_0x57a9c5))&&(_0xf99454&&(_0xf99454+='\x20'),_0xf99454+=_0x3e8149);return _0xf99454;}const Di=_0x3b22f(0x5bc),yi=_0x3b22f(0x480),Ui=_0x3b22f(0x53e),Pi=_0x3b22f(0x363),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x2ec702){const _0x5bc0b9=_0x3b22f;switch(_0x2ec702){case y['OFFLINE']:return _0x5bc0b9(0x3ae);case y[_0x5bc0b9(0x30c)]:return'collabStatus.conflict';case y[_0x5bc0b9(0x416)]:return _0x5bc0b9(0x2ad);case y[_0x5bc0b9(0x4eb)]:return _0x5bc0b9(0x22b);case y[_0x5bc0b9(0x2a6)]:case y[_0x5bc0b9(0x34f)]:case y[_0x5bc0b9(0x4ea)]:return _0x5bc0b9(0x43a);case y[_0x5bc0b9(0x434)]:return'collabStatus.synced';}}function wt(_0x469b64){const _0x17cd9e=_0x3b22f,{status$:_0x18dda2}=_0x469b64,_0x2df0d4=N[_0x17cd9e(0x4fe)](_0x18dda2,y[_0x17cd9e(0x4eb)]),_0x489bc7=a[_0x17cd9e(0x32c)](a[_0x17cd9e(0x583)]),_0x2ca222=a['useDependency'](exports[_0x17cd9e(0x298)]),_0x25c798=_0x2df0d4!==y[_0x17cd9e(0x3ea)],_0x4e54e1=_0x489bc7['t'](Mi(_0x2df0d4)),_0x1702d9=Oi(le[_0x17cd9e(0x30b)],{[le[_0x17cd9e(0x5d1)]]:_0x25c798,[le[_0x17cd9e(0x45f)]]:!_0x25c798}),_0xdf07e6=_0x25c798?U[_0x17cd9e(0x494)](Ut,null):U[_0x17cd9e(0x494)](yt,null),_0x3ee3e4=U[_0x17cd9e(0x391)](()=>{const _0x2a21d4=_0x17cd9e;_0x25c798||_0x2ca222[_0x2a21d4(0x359)]();},[_0x25c798,_0x2ca222]);function _0x3289df(){const _0x128d91=_0x17cd9e;return U[_0x128d91(0x494)](_0x128d91(0x547),{'className':_0x1702d9,'onClick':_0x3ee3e4},U[_0x128d91(0x494)](_0x128d91(0x547),{'className':le['onlineStatusIcon']},_0xdf07e6),U[_0x128d91(0x494)](_0x128d91(0x547),{'className':le[_0x128d91(0x4a5)]},_0x4e54e1));}return _0x25c798?_0x3289df():U[_0x17cd9e(0x494)](X[_0x17cd9e(0x4f6)],{'title':_0x489bc7['t'](_0x17cd9e(0x4ac))},_0x3289df());}var Ni=Object[_0x3b22f(0x1ff)],Ai=Object['getOwnPropertyDescriptor'],Li=(_0x59ea5d,_0x624443,_0x3cef67,_0xeabd1e)=>{const _0x58dfad=_0x3b22f;for(var _0x3c8ba6=_0xeabd1e>0x1?void 0x0:_0xeabd1e?Ai(_0x624443,_0x3cef67):_0x624443,_0x1a520b=_0x59ea5d[_0x58dfad(0x291)]-0x1,_0x14e22a;_0x1a520b>=0x0;_0x1a520b--)(_0x14e22a=_0x59ea5d[_0x1a520b])&&(_0x3c8ba6=(_0xeabd1e?_0x14e22a(_0x624443,_0x3cef67,_0x3c8ba6):_0x14e22a(_0x3c8ba6))||_0x3c8ba6);return _0xeabd1e&&_0x3c8ba6&&Ni(_0x624443,_0x3cef67,_0x3c8ba6),_0x3c8ba6;},Se=(_0x22be0b,_0x38a26e)=>(_0x2db1c9,_0x5b0bba)=>_0x38a26e(_0x2db1c9,_0x5b0bba,_0x22be0b);exports[_0x3b22f(0x52f)]=class extends a['Disposable']{constructor(_0x569987,_0x1fb11e,_0x35d0a3,_0x26b0b1){const _0x4a807e=_0x3b22f;super(),d(this,_0x4a807e(0x4d5),new v[(_0x4a807e(0x502))](y['NOT_COLLAB'])),(this[_0x4a807e(0x340)]=_0x569987,this[_0x4a807e(0x36d)]=_0x1fb11e,this[_0x4a807e(0x397)]=_0x35d0a3,this[_0x4a807e(0x263)]=_0x26b0b1,this[_0x4a807e(0x3a0)](),this['_initStatusListener']());}[_0x3b22f(0x4f0)](){const _0x44f7ea=_0x3b22f;this['disposeWithMe'](this[_0x44f7ea(0x340)][_0x44f7ea(0x289)][_0x44f7ea(0x3de)](v[_0x44f7ea(0x3fe)](()=>{const _0x2139df=_0x44f7ea,_0x17ff28=this[_0x2139df(0x340)]['getFocusedUnit']();return _0x17ff28?this[_0x2139df(0x263)]['getCollabEntity$'](_0x17ff28['getUnitId']()):v['of'](null);}),v[_0x44f7ea(0x3fe)](_0x1e4e4f=>_0x1e4e4f?_0x1e4e4f['status$']:v['of'](y[_0x44f7ea(0x4eb)])))[_0x44f7ea(0x42c)](_0xd1d126=>{const _0x2c7033=_0x44f7ea;this[_0x2c7033(0x4d5)][_0x2c7033(0x52d)](_0xd1d126);}));}[_0x3b22f(0x3a0)](){const _0xff0234=_0x3b22f;this[_0xff0234(0x283)](this[_0xff0234(0x36d)][_0xff0234(0x25a)](N[_0xff0234(0x388)][_0xff0234(0x489)],()=>a[_0xff0234(0x234)](ji({'status$':this[_0xff0234(0x4d5)][_0xff0234(0x56e)]()}),this[_0xff0234(0x397)])));}},exports['DesktopCollaborationStatusDisplayController']=Li([Se(0x0,a[_0x3b22f(0x26b)]),Se(0x1,N[_0x3b22f(0x4c6)]),Se(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Se(0x3,a[_0x3b22f(0x492)](exports[_0x3b22f(0x322)]))],exports[_0x3b22f(0x52f)]);function ji(_0x4a3287){const {status$:_0x268bbb}=_0x4a3287;return function(){return U['createElement'](wt,{'status$':_0x268bbb});};}const ze=a[_0x3b22f(0x3cd)]('uni.network.url-service');var $i=Object['defineProperty'],Hi=Object[_0x3b22f(0x246)],xi=(_0x1d02f9,_0x3e17f6,_0x38ab8e,_0x546875)=>{const _0x33913c=_0x3b22f;for(var _0x27ddad=_0x546875>0x1?void 0x0:_0x546875?Hi(_0x3e17f6,_0x38ab8e):_0x3e17f6,_0x525591=_0x1d02f9[_0x33913c(0x291)]-0x1,_0x41f358;_0x525591>=0x0;_0x525591--)(_0x41f358=_0x1d02f9[_0x525591])&&(_0x27ddad=(_0x546875?_0x41f358(_0x3e17f6,_0x38ab8e,_0x27ddad):_0x41f358(_0x27ddad))||_0x27ddad);return _0x546875&&_0x27ddad&&$i(_0x3e17f6,_0x38ab8e,_0x27ddad),_0x27ddad;},ee=(_0x4181d8,_0x3b989d)=>(_0x2763da,_0x11286e)=>_0x3b989d(_0x2763da,_0x11286e,_0x4181d8);exports[_0x3b22f(0x4f7)]=class extends a[_0x3b22f(0x398)]{constructor(_0x2be409,_0x40ed7e,_0x43aa6e,_0x2fe4a4,_0x278714,_0x18fc27){const _0x164883=_0x3b22f;super(),this[_0x164883(0x25d)]=_0x2be409,this['_logService']=_0x40ed7e,this[_0x164883(0x4b9)]=_0x43aa6e,this[_0x164883(0x522)]=_0x2fe4a4,this[_0x164883(0x2d9)]=_0x278714,_0x18fc27?_0x18fc27==null||_0x18fc27[_0x164883(0x487)]()['then'](()=>this[_0x164883(0x341)]()):(this[_0x164883(0x445)][_0x164883(0x320)](_0x164883(0x3ca),_0x164883(0x230)),this['_init']());}async[_0x3b22f(0x341)](){const _0x26c3fa=_0x3b22f,_0x451100=this['_urlService'][_0x26c3fa(0x422)](_0x26c3fa(0x59f)),_0x24d3e5=this[_0x26c3fa(0x25d)][_0x26c3fa(0x422)](_0x26c3fa(0x331));if(!_0x451100||!_0x24d3e5){this[_0x26c3fa(0x445)][_0x26c3fa(0x320)](_0x26c3fa(0x3ca),_0x26c3fa(0x34c));return;}switch(Number(_0x24d3e5)){case j['UNIVER_SHEET']:{const _0x240c0b=await this['_loadSheet'](_0x451100);this[_0x26c3fa(0x36a)](_0x240c0b);break;}case j[_0x26c3fa(0x332)]:{await this[_0x26c3fa(0x584)](_0x451100);break;}default:{this['_logService'][_0x26c3fa(0x49d)](_0x26c3fa(0x3ca),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async['_setupSubUnitSync'](_0x10fa00){const _0x5c6e12=_0x3b22f;await this[_0x5c6e12(0x442)](_0x10fa00),_0x10fa00['activeSheet$'][_0x5c6e12(0x3de)](v['takeUntil'](this[_0x5c6e12(0x2e1)]))[_0x5c6e12(0x42c)](_0x2b559f=>{const _0x1f0374=_0x5c6e12;_0x2b559f&&this[_0x1f0374(0x549)](_0x2b559f);}),this[_0x5c6e12(0x25d)][_0x5c6e12(0x4cb)][_0x5c6e12(0x3de)](v[_0x5c6e12(0x37c)](this[_0x5c6e12(0x2e1)]))['subscribe'](()=>this[_0x5c6e12(0x442)](_0x10fa00));}[_0x3b22f(0x549)](_0x204dcf,_0x31daac=!0x1){const _0x4249d7=_0x3b22f,_0x47effc=this[_0x4249d7(0x25d)]['getParam'](_0x4249d7(0x3ad));_0x204dcf[_0x4249d7(0x3b3)]()!==_0x47effc&&this[_0x4249d7(0x25d)][_0x4249d7(0x57f)]('subunit',_0x204dcf['getSheetId'](),_0x31daac);}async[_0x3b22f(0x442)](_0x2d9e02){const _0x512ca1=_0x3b22f;var _0x345365;const _0x1c3b2c=this[_0x512ca1(0x25d)][_0x512ca1(0x422)](_0x512ca1(0x3ad));if(!_0x1c3b2c||!_0x2d9e02[_0x512ca1(0x2f1)](_0x1c3b2c)){const _0x2d576f=_0x2d9e02['getUnhiddenWorksheets']()[0x0],_0x142243=_0x2d9e02[_0x512ca1(0x2f1)](_0x2d576f);if(!_0x142243)return;this[_0x512ca1(0x549)](_0x142243,!0x0),await this[_0x512ca1(0x4b9)][_0x512ca1(0x2fc)](C[_0x512ca1(0x53b)]['id'],{'unitId':_0x2d9e02[_0x512ca1(0x52b)](),'subUnitId':_0x2d576f});return;}((_0x345365=_0x2d9e02['getActiveSheet']())==null?void 0x0:_0x345365[_0x512ca1(0x3b3)]())!==_0x1c3b2c&&await this[_0x512ca1(0x4b9)][_0x512ca1(0x2fc)](C[_0x512ca1(0x53b)]['id'],{'unitId':_0x2d9e02['getUnitId'](),'subUnitId':_0x1c3b2c});}async['_loadSheet'](_0x4d4b80){const _0x4c738b=_0x3b22f;let _0x571fd8=0x0;const _0x3f2f46=await this[_0x4c738b(0x522)][_0x4c738b(0x4dd)](_0x4d4b80);return _0x3f2f46&&(_0x3f2f46[_0x4c738b(0x5eb)]||_0x3f2f46[_0x4c738b(0x3a2)][_0x4c738b(0x291)]!==0x0)&&(_0x571fd8=_0x3f2f46[_0x4c738b(0x3a8)]),_0x571fd8===0x0&&this[_0x4c738b(0x445)][_0x4c738b(0x320)](_0x4c738b(0x3ca),_0x4c738b(0x5a7)),this['_snapshotService'][_0x4c738b(0x243)](_0x4d4b80,_0x571fd8);}async['_loadDoc'](_0x968f7a){const _0x3fc017=_0x3b22f;let _0x3ff59f=0x0;const _0x502afe=await this['_localCacheService']['loadOfflineData'](_0x968f7a);return _0x502afe&&(_0x502afe[_0x3fc017(0x5eb)]||_0x502afe[_0x3fc017(0x3a2)][_0x3fc017(0x291)]!==0x0)&&(_0x3ff59f=_0x502afe['rev']),_0x3ff59f===0x0&&this[_0x3fc017(0x445)][_0x3fc017(0x320)](_0x3fc017(0x3ca),_0x3fc017(0x5a7)),this[_0x3fc017(0x2d9)]['loadDoc'](_0x968f7a,_0x3ff59f);}},exports[_0x3b22f(0x4f7)]=xi([ee(0x0,ze),ee(0x1,a[_0x3b22f(0x308)]),ee(0x2,a['ICommandService']),ee(0x3,a['Inject'](exports['LocalCacheService'])),ee(0x4,a['Inject'](_['SnapshotService'])),ee(0x5,a[_0x3b22f(0x5c6)](Wt[_0x3b22f(0x4b2)]))],exports['DataLoaderController']);var ki=Object[_0x3b22f(0x1ff)],Bi=Object[_0x3b22f(0x246)],Vi=(_0x547bdd,_0xe8de67,_0x4b39f0,_0x50c939)=>{const _0x48d6a6=_0x3b22f;for(var _0x24dc93=_0x50c939>0x1?void 0x0:_0x50c939?Bi(_0xe8de67,_0x4b39f0):_0xe8de67,_0x58c631=_0x547bdd[_0x48d6a6(0x291)]-0x1,_0x382dd9;_0x58c631>=0x0;_0x58c631--)(_0x382dd9=_0x547bdd[_0x58c631])&&(_0x24dc93=(_0x50c939?_0x382dd9(_0xe8de67,_0x4b39f0,_0x24dc93):_0x382dd9(_0x24dc93))||_0x24dc93);return _0x50c939&&_0x24dc93&&ki(_0xe8de67,_0x4b39f0,_0x24dc93),_0x24dc93;},at=(_0x40b4ef,_0x106097)=>(_0x2fbecc,_0x3f4ebb)=>_0x106097(_0x2fbecc,_0x3f4ebb,_0x40b4ef);const Wi=_0x3b22f(0x5ee),Fi=_0x3b22f(0x44a);let Ie=class extends a[_0x3b22f(0x4b0)]{constructor(_0x1ca05f,_0x298f35){const _0x4a3f69=_0x3b22f;super(),this[_0x4a3f69(0x340)]=_0x1ca05f,this[_0x4a3f69(0x266)]=_0x298f35,this[_0x4a3f69(0x341)]();}['_init'](){const _0x3ee5db=_0x3b22f;this['disposeWithMe'](this[_0x3ee5db(0x340)]['focused$'][_0x3ee5db(0x42c)](()=>{const _0x311a65=_0x3ee5db;var _0x5ccb6c;const _0x3eae23=this[_0x311a65(0x340)][_0x311a65(0x255)]();let _0x1bac01=(_0x5ccb6c=this[_0x311a65(0x266)][_0x311a65(0x504)](Wi))!=null?_0x5ccb6c:Fi;_0x3eae23 instanceof a['Workbook']&&(_0x1bac01=_0x3eae23[_0x311a65(0x366)]),document[_0x311a65(0x1eb)]=_0x1bac01;}));}};Ie=Vi([at(0x0,a[_0x3b22f(0x26b)]),at(0x1,a['IConfigService'])],Ie);var Gi=Object[_0x3b22f(0x1ff)],Yi=Object[_0x3b22f(0x246)],Ki=(_0xf6c05e,_0x18f5e0,_0x466d8b,_0x415f20)=>{const _0x3f50af=_0x3b22f;for(var _0x270380=_0x415f20>0x1?void 0x0:_0x415f20?Yi(_0x18f5e0,_0x466d8b):_0x18f5e0,_0x1f43ed=_0xf6c05e[_0x3f50af(0x291)]-0x1,_0x5d2179;_0x1f43ed>=0x0;_0x1f43ed--)(_0x5d2179=_0xf6c05e[_0x1f43ed])&&(_0x270380=(_0x415f20?_0x5d2179(_0x18f5e0,_0x466d8b,_0x270380):_0x5d2179(_0x270380))||_0x270380);return _0x415f20&&_0x270380&&Gi(_0x18f5e0,_0x466d8b,_0x270380),_0x270380;},Le=(_0xefe9da,_0x24ddc3)=>(_0x182af4,_0x3cee86)=>_0x24ddc3(_0x182af4,_0x3cee86,_0xefe9da);let pe=class{constructor(_0x63eb80,_0x4626ef,_0x364540){const _0xdf8888=_0x3b22f;this['_configService']=_0x63eb80,this['_httpService']=_0x4626ef,this[_0xdf8888(0x41a)]=_0x364540,this['init']();}['init'](){const _0x8025a6=_0x3b22f;this['_httpService'][_0x8025a6(0x3ef)]({'priority':0x1,'interceptor':(_0x2a9e63,_0xf70e3e)=>_0xf70e3e(_0x2a9e63)['pipe'](v[_0x8025a6(0x56c)](async _0x3009bd=>{const _0x4b3252=_0x8025a6,_0x5981fd=_0x3009bd;if(_0x5981fd[_0x4b3252(0x3d2)]===0x191&&window[_0x4b3252(0x32d)](this[_0x4b3252(0x41a)]['t']('auth.needGotoLoginAlert'))){const _0x33bc44=window[_0x4b3252(0x5a9)](window[_0x4b3252(0x353)][_0x4b3252(0x412)]);window['location'][_0x4b3252(0x412)]=this[_0x4b3252(0x29c)]()+_0x4b3252(0x5c3)+_0x33bc44;}return _0x5981fd;}))});}[_0x3b22f(0x29c)](){const _0x1a93f6=_0x3b22f;var _0x5d2f3a,_0x35957f;const _0x45c509=this[_0x1a93f6(0x266)][_0x1a93f6(0x504)](mt),_0x2f534a=this[_0x1a93f6(0x266)][_0x1a93f6(0x504)](A);return(_0x35957f=(_0x5d2f3a=_0x2f534a==null?void 0x0:_0x2f534a['loginUrlKey'])!=null?_0x5d2f3a:_0x45c509)!=null?_0x35957f:es;}};pe=Ki([Le(0x0,a[_0x3b22f(0x5ad)]),Le(0x1,a['Inject'](P['HTTPService'])),Le(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)]))],pe);var Xi=Object[_0x3b22f(0x1ff)],qi=Object[_0x3b22f(0x246)],zi=(_0x34ff20,_0x432a77,_0x33ecff,_0x2709b4)=>{for(var _0xca2fdb=_0x2709b4>0x1?void 0x0:_0x2709b4?qi(_0x432a77,_0x33ecff):_0x432a77,_0x22ddb8=_0x34ff20['length']-0x1,_0x5df3d4;_0x22ddb8>=0x0;_0x22ddb8--)(_0x5df3d4=_0x34ff20[_0x22ddb8])&&(_0xca2fdb=(_0x2709b4?_0x5df3d4(_0x432a77,_0x33ecff,_0xca2fdb):_0x5df3d4(_0xca2fdb))||_0xca2fdb);return _0x2709b4&&_0xca2fdb&&Xi(_0x432a77,_0x33ecff,_0xca2fdb),_0xca2fdb;},ct=(_0x5bd9fb,_0x233ab8)=>(_0x53fa5b,_0x3df850)=>_0x233ab8(_0x53fa5b,_0x3df850,_0x5bd9fb);const Mt=_0x3b22f(0x211),Ji=_0x3b22f(0x1f2);exports[_0x3b22f(0x38b)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0xc80b97,_0x5bd7f7){const _0x133148=_0x3b22f;super(),this[_0x133148(0x3a9)]=_0xc80b97,this[_0x133148(0x266)]=_0x5bd7f7,this[_0x133148(0x551)]();}['_initMergeInterceptor'](){const _0x3bef95=_0x3b22f,_0x3d9ba5=this;this[_0x3bef95(0x283)](this[_0x3bef95(0x3a9)][_0x3bef95(0x3ef)]({'priority':0x3e7,'interceptor':P[_0x3bef95(0x5b2)]({'isMatch'(_0x3c780f){const _0x3e6c97=_0x3bef95;var _0x597ad9;if(_0x3c780f[_0x3e6c97(0x21b)]===_0x3e6c97(0x3d6)&&((_0x597ad9=_0x3c780f[_0x3e6c97(0x209)])!=null&&_0x597ad9[_0x3e6c97(0x30a)])){const {objectID:_0xd8b2a1,objectType:_0x344e27}=_0x3c780f[_0x3e6c97(0x209)][_0x3e6c97(0x30a)]||{};if(!_0xd8b2a1||_0x344e27===void 0x0)return!0x1;const _0x42df27=_0x3d9ba5[_0x3e6c97(0x413)]()+'/'+_0x344e27+_0x3e6c97(0x310)+_0xd8b2a1+_0x3e6c97(0x420);if(_0x3c780f[_0x3e6c97(0x5ab)]===_0x42df27)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x19176d){const _0xd36113=_0x3bef95;var _0x1cd948;return(_0x1cd948=_0x19176d[_0xd36113(0x209)])==null?void 0x0:_0x1cd948[_0xd36113(0x30a)];},'mergeParamsToRequest'(_0x27e6ea,_0x93fc6e){const _0x519106=_0x3bef95,_0x2abffd=_0x3d9ba5[_0x519106(0x413)]()+_0x519106(0x53a),_0x250488=_0x27e6ea['reduce']((_0x5dccf1,_0x1114aa)=>{const _0x5c3cf8=_0x519106,{unitID:_0x51891a,objectID:_0x3f593e,objectType:_0x3e4c03,actions:_0x13a720}=_0x1114aa;return _0x5dccf1[_0x51891a]||(_0x5dccf1[_0x51891a]={}),_0x5dccf1[_0x51891a][_0x3f593e]||(_0x5dccf1[_0x51891a][_0x3f593e]={'objectID':_0x3f593e,'objectType':_0x3e4c03,'actions':[]}),_0x5dccf1[_0x51891a][_0x3f593e][_0x5c3cf8(0x2b2)][_0x5c3cf8(0x1ed)](..._0x13a720),_0x5dccf1;},{}),_0x43083b=[];for(const _0x283fed in _0x250488)for(const _0x9b6352 in _0x250488[_0x283fed]){const {actions:_0x51ec5e,objectType:_0x138ce0}=_0x250488[_0x283fed][_0x9b6352],_0x5c2b3e=[...new Set(_0x51ec5e)];_0x43083b[_0x519106(0x1ed)]({'unitID':_0x283fed,'objectID':_0x9b6352,'objectType':_0x138ce0,'actions':_0x5c2b3e});}return new P[(_0x519106(0x3ba))](_0x519106(0x3d6),_0x2abffd,{'headers':_0x93fc6e['headers'],'withCredentials':_0x93fc6e[_0x519106(0x203)],'responseType':_0x93fc6e[_0x519106(0x20e)],'body':{'requests':_0x43083b}});}},{'distributeResult'(_0x2c2376,_0x180ebe){const _0x34babb=_0x3bef95,{objectActions:_0x484a83}=_0x2c2376;return _0x180ebe[_0x34babb(0x57b)](_0x4efdad=>{const _0x3b4446=_0x34babb,{unitID:_0x4a6de7,objectID:_0x3cd83b,actions:_0x28f13e}=_0x4efdad,_0x6611f4=_0x484a83[_0x3b4446(0x5dc)](_0x39eada=>_0x39eada[_0x3b4446(0x40e)]===_0x4a6de7&&_0x39eada[_0x3b4446(0x205)]===_0x3cd83b),_0x31e5f2=_0x28f13e['map'](_0x43fbc4=>_0x6611f4==null?void 0x0:_0x6611f4[_0x3b4446(0x2b2)][_0x3b4446(0x5dc)](_0x375dc3=>_0x375dc3[_0x3b4446(0x4ff)]===_0x43fbc4))[_0x3b4446(0x3f9)](_0x316cce=>!!_0x316cce);return{'config':_0x4efdad,'result':{'actions':_0x31e5f2,'error':_0x2c2376[_0x3b4446(0x49d)]}};});}})}));}[_0x3b22f(0x413)](){const _0x324bc2=_0x3b22f;var _0x10af99,_0x269adc;const _0x219375=this['_configService'][_0x324bc2(0x504)](Mt),_0x5b046f=this[_0x324bc2(0x266)][_0x324bc2(0x504)](A);return(_0x269adc=(_0x10af99=_0x5b046f==null?void 0x0:_0x5b046f['authzUrl'])!=null?_0x10af99:_0x219375)!=null?_0x269adc:Ji;}async[_0x3b22f(0x254)](_0x3e0d05){const _0x31813c=_0x3b22f,_0x13b754=this[_0x31813c(0x413)]()+'/'+_0x3e0d05[_0x31813c(0x2c3)]+_0x31813c(0x429);return(await this[_0x31813c(0x3a9)][_0x31813c(0x221)](_0x13b754,{'body':_0x3e0d05}))['body'][_0x31813c(0x205)]||'';}async[_0x3b22f(0x3f5)](_0x17bc6f){const _0x482af1=_0x3b22f,_0x8f3ecc=this[_0x482af1(0x413)]()+_0x482af1(0x589);return(await this[_0x482af1(0x3a9)]['post'](_0x8f3ecc,{'body':_0x17bc6f}))[_0x482af1(0x30a)]['objects'];}async[_0x3b22f(0x36c)](_0x49dc67){const _0x601fc1=_0x3b22f,_0x167c19=this[_0x601fc1(0x413)]()+'/'+_0x49dc67['objectType']+_0x601fc1(0x310)+_0x49dc67[_0x601fc1(0x205)];await this[_0x601fc1(0x3a9)][_0x601fc1(0x511)](_0x167c19,{'body':_0x49dc67});}async[_0x3b22f(0x4d1)](_0x40ba96){const _0xea5957=_0x3b22f,_0x5d475a=this[_0xea5957(0x413)]()+'/'+_0x40ba96['objectType']+_0xea5957(0x310)+_0x40ba96[_0xea5957(0x205)]+_0xea5957(0x420);return(await this[_0xea5957(0x3a9)][_0xea5957(0x221)](_0x5d475a,{'body':_0x40ba96}))['body'][_0xea5957(0x2b2)];}async[_0x3b22f(0x3e0)](_0x163f37){const _0xe42f33=_0x3b22f,_0x48b494=this[_0xe42f33(0x413)]()+_0xe42f33(0x53a);return(await this['_HTTPService'][_0xe42f33(0x221)](_0x48b494,{'body':{'requests':_0x163f37}}))[_0xe42f33(0x30a)]['objectActions'];}async[_0x3b22f(0x1e6)](_0x3fe5c3){const _0x39ffe2=_0x3b22f,_0x32d447=this[_0x39ffe2(0x413)]()+'/'+_0x3fe5c3[_0x39ffe2(0x2c3)]+_0x39ffe2(0x5d8),_0xb41e5f=await this[_0x39ffe2(0x3a9)][_0x39ffe2(0x221)](_0x32d447,{'body':_0x3fe5c3});return{'roles':_0xb41e5f['body'][_0x39ffe2(0x57a)],'actions':_0xb41e5f[_0x39ffe2(0x30a)][_0x39ffe2(0x2b2)]};}async['deleteCollaborator'](_0x464ca6){const _0x5510cc=_0x3b22f,_0x14a3f6=this['_getAPIPrefixPath']()+_0x5510cc(0x4fc);await this[_0x5510cc(0x3a9)][_0x5510cc(0x2cc)](_0x14a3f6,{'params':{'collaboratorID':_0x464ca6[_0x5510cc(0x3da)],'objectID':_0x464ca6[_0x5510cc(0x205)],'unitID':_0x464ca6['unitID']}});}async[_0x3b22f(0x24b)](_0x41549c){const _0x4c7af2=_0x3b22f,_0x3849bc=this['_getAPIPrefixPath']()+_0x4c7af2(0x4fc);await this['_HTTPService']['patch'](_0x3849bc,{'body':_0x41549c});}async[_0x3b22f(0x245)](_0x107054){const _0x26cea6=_0x3b22f,_0x36d6c8=this[_0x26cea6(0x413)]()+_0x26cea6(0x4fc);await this['_HTTPService'][_0x26cea6(0x221)](_0x36d6c8,{'body':_0x107054});}async['listCollaborators'](_0x3f5ff2){const _0x1c2e4a=_0x3b22f,_0x5e220d=this[_0x1c2e4a(0x413)]()+_0x1c2e4a(0x4fc);return(await this['_HTTPService'][_0x1c2e4a(0x34d)](_0x5e220d,{'params':{'objectID':_0x3f5ff2[_0x1c2e4a(0x205)],'unitID':_0x3f5ff2[_0x1c2e4a(0x40e)]}}))[_0x1c2e4a(0x30a)][_0x1c2e4a(0x2bb)];}async['putCollaborators'](_0x278dae){const _0x1a4b02=_0x3b22f,_0x21ba64=this['_getAPIPrefixPath']()+_0x1a4b02(0x4fc);await this[_0x1a4b02(0x3a9)][_0x1a4b02(0x511)](_0x21ba64,{'body':_0x278dae});}},exports[_0x3b22f(0x38b)]=zi([ct(0x0,a[_0x3b22f(0x492)](P[_0x3b22f(0x5ae)])),ct(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x5ad)]))],exports['AuthzIoHttpService']);var Zi=Object[_0x3b22f(0x1ff)],Qi=Object['getOwnPropertyDescriptor'],en=(_0x22a0ef,_0x284697,_0x54a718,_0x5a2dce)=>{const _0x5329f5=_0x3b22f;for(var _0x2e14f5=_0x5a2dce>0x1?void 0x0:_0x5a2dce?Qi(_0x284697,_0x54a718):_0x284697,_0x132233=_0x22a0ef[_0x5329f5(0x291)]-0x1,_0xcc3847;_0x132233>=0x0;_0x132233--)(_0xcc3847=_0x22a0ef[_0x132233])&&(_0x2e14f5=(_0x5a2dce?_0xcc3847(_0x284697,_0x54a718,_0x2e14f5):_0xcc3847(_0x2e14f5))||_0x2e14f5);return _0x5a2dce&&_0x2e14f5&&Zi(_0x284697,_0x54a718,_0x2e14f5),_0x2e14f5;},tn=(_0x16d48e,_0x327252)=>(_0xc3829e,_0x4c3c05)=>_0x327252(_0xc3829e,_0x4c3c05,_0x16d48e);let Ce=class{constructor(_0x2caa81){const _0x499d40=_0x3b22f;this[_0x499d40(0x270)]=_0x2caa81,this['_initRequestHeader']();}[_0x3b22f(0x4d2)](){const _0x59c2bb=_0x3b22f;this[_0x59c2bb(0x270)][_0x59c2bb(0x3ef)]({'interceptor':(_0x1035c5,_0x6819a7)=>{const _0x525a5e=_0x59c2bb,_0x1f4488=_0x1035c5['headers'],_0x795cf1=Ft['getAttachHeader']();return _0x795cf1&&_0x1f4488[_0x525a5e(0x305)](_0x525a5e(0x326),_0x795cf1),_0x6819a7(_0x1035c5);}});}};Ce=en([tn(0x0,a[_0x3b22f(0x492)](P['HTTPService']))],Ce);var sn=Object['defineProperty'],nn=Object['getOwnPropertyDescriptor'],rn=(_0x330bb7,_0x49de4e,_0x29a0d2,_0x31fcc3)=>{for(var _0x1861cf=_0x31fcc3>0x1?void 0x0:_0x31fcc3?nn(_0x49de4e,_0x29a0d2):_0x49de4e,_0x4a2bd6=_0x330bb7['length']-0x1,_0x4720be;_0x4a2bd6>=0x0;_0x4a2bd6--)(_0x4720be=_0x330bb7[_0x4a2bd6])&&(_0x1861cf=(_0x31fcc3?_0x4720be(_0x49de4e,_0x29a0d2,_0x1861cf):_0x4720be(_0x1861cf))||_0x1861cf);return _0x31fcc3&&_0x1861cf&&sn(_0x49de4e,_0x29a0d2,_0x1861cf),_0x1861cf;},je=(_0x2793f5,_0x251ca5)=>(_0x460939,_0xeef283)=>_0x251ca5(_0x460939,_0xeef283,_0x2793f5);const on=['image/png','image/jpeg',_0x3b22f(0x5ca),'image/gif',_0x3b22f(0x1e2)],an=0x5*0x400*0x400,cn='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ln=_0x3b22f(0x31f),hn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_n=_0x3b22f(0x3dc);exports[_0x3b22f(0x4a3)]=class{constructor(_0x4b858e,_0x32429e,_0x3e2541){const _0x2ea17e=_0x3b22f;d(this,_0x2ea17e(0x3c2),0x0),d(this,'_change$',new v['Subject']()),d(this,'change$',this['_change$']),d(this,_0x2ea17e(0x503),new Map()),(this[_0x2ea17e(0x270)]=_0x4b858e,this['_configService']=_0x32429e,this[_0x2ea17e(0x340)]=_0x3e2541);}[_0x3b22f(0x273)](_0x21d25a){const _0x4c9643=_0x3b22f;this[_0x4c9643(0x3c2)]=_0x21d25a,this[_0x4c9643(0x48a)]['next'](_0x21d25a);}[_0x3b22f(0x5cd)](_0x5ce8f3,_0xfe80e6){const _0x4b7f4a=_0x3b22f;if(_0xfe80e6===L[_0x4b7f4a(0x5a1)]['BASE64']){const _0x92f031=new Image();return _0x92f031[_0x4b7f4a(0x381)]=_0x5ce8f3,_0x92f031;}return this[_0x4b7f4a(0x503)][_0x4b7f4a(0x34d)](_0x5ce8f3);}[_0x3b22f(0x3e3)](_0x2dc026,_0x3ab81d,_0x3bb5a7){const _0x4034c6=_0x3b22f;_0x3ab81d===L[_0x4034c6(0x5a1)][_0x4034c6(0x43f)]||_0x3bb5a7==null||this[_0x4034c6(0x503)][_0x4034c6(0x305)](_0x2dc026,_0x3bb5a7);}async[_0x3b22f(0x34a)](_0x30fc7e){const _0x31d148=_0x3b22f;try{const _0x469ac0=this[_0x31d148(0x406)](this[_0x31d148(0x33a)](),''+_0x30fc7e),_0x40a9fc=(await this[_0x31d148(0x270)]['get'](_0x469ac0))[_0x31d148(0x30a)];if(_0x40a9fc['error']&&_0x40a9fc[_0x31d148(0x49d)][_0x31d148(0x49f)]===It['OK']){const _0x1a2be4=new URL(_0x40a9fc['url'],this[_0x31d148(0x2db)]())[_0x31d148(0x4e2)]();return Promise[_0x31d148(0x53d)](_0x1a2be4);}return Promise['reject'](_0x40a9fc[_0x31d148(0x49d)]);}catch(_0x372f75){return Promise[_0x31d148(0x23c)](_0x372f75);}}async[_0x3b22f(0x28a)](_0x1497fc){const _0x5ee6fb=_0x3b22f;let _0x3aa8ae='';if(!on[_0x5ee6fb(0x565)](_0x1497fc[_0x5ee6fb(0x331)]))return this[_0x5ee6fb(0x2e2)](),Promise[_0x5ee6fb(0x23c)](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x2d4)]));if(_0x1497fc[_0x5ee6fb(0x45a)]>an)return this[_0x5ee6fb(0x2e2)](),Promise[_0x5ee6fb(0x23c)](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x4fa)]));try{const _0x397941=new FormData();_0x397941[_0x5ee6fb(0x1ea)](_0x5ee6fb(0x2a2),_0x1497fc);const _0xb73cf7=this[_0x5ee6fb(0x340)]['getFocusedUnit'](),_0x19d3a3=_0xb73cf7==null?void 0x0:_0xb73cf7[_0x5ee6fb(0x52b)]();if(!_0x19d3a3)throw new Error(_0x5ee6fb(0x555));const _0x47cb6f=this[_0x5ee6fb(0x4ce)]()+'?size='+_0x1497fc[_0x5ee6fb(0x45a)][_0x5ee6fb(0x4e2)]()+'&source='+pt[_0x5ee6fb(0x4bd)]+_0x5ee6fb(0x4a6)+encodeURIComponent(_0x19d3a3),_0x5c0540=await(await fetch(_0x47cb6f,{'method':_0x5ee6fb(0x3d6),'body':_0x397941}))[_0x5ee6fb(0x364)]();if(typeof _0x5c0540[_0x5ee6fb(0x33d)]!=_0x5ee6fb(0x40a))return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x5e9)]));_0x3aa8ae=_0x5c0540[_0x5ee6fb(0x33d)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x5e9)]));}return new Promise((_0x23aaaf,_0x48577c)=>{const _0x33c446=_0x5ee6fb,_0x1a0447=new FileReader();_0x1a0447[_0x33c446(0x48c)](_0x1497fc),_0x1a0447[_0x33c446(0x586)]=_0x4d18e8=>{const _0x3bd7f7=_0x33c446;var _0x4dd9f0;const _0x14b964=(_0x4dd9f0=_0x4d18e8['target'])==null?void 0x0:_0x4dd9f0['result'];if(_0x14b964==null){this[_0x3bd7f7(0x2e2)](),_0x48577c(new Error(L[_0x3bd7f7(0x57d)][_0x3bd7f7(0x5e9)]));return;}const _0x99265=a[_0x3bd7f7(0x27d)]['generateRandomId'](0x6);_0x23aaaf({'imageId':_0x99265,'imageSourceType':L[_0x3bd7f7(0x5a1)]['UUID'],'source':_0x3aa8ae,'base64Cache':_0x14b964,'status':L['ImageUploadStatusType']['SUCCUSS']}),this[_0x3bd7f7(0x2e2)]();};});}[_0x3b22f(0x4ce)](){const _0x357c87=_0x3b22f;var _0x4a1fba,_0x1fd33f;const _0x17e8b9=this[_0x357c87(0x266)]['getConfig'](cn),_0x2fe597=this[_0x357c87(0x266)][_0x357c87(0x504)](A);return(_0x1fd33f=(_0x4a1fba=_0x2fe597==null?void 0x0:_0x2fe597[_0x357c87(0x2ef)])!=null?_0x4a1fba:_0x17e8b9)!=null?_0x1fd33f:ln;}[_0x3b22f(0x33a)](){const _0x170805=_0x3b22f;var _0x5311b1,_0x27af7c;const _0x48c619=this[_0x170805(0x266)][_0x170805(0x504)](hn),_0x514c21=this[_0x170805(0x266)][_0x170805(0x504)](A);return(_0x27af7c=(_0x5311b1=_0x514c21==null?void 0x0:_0x514c21[_0x170805(0x418)])!=null?_0x5311b1:_0x48c619)!=null?_0x27af7c:_n;}[_0x3b22f(0x2db)](){const _0x3d0d13=_0x3b22f;var _0x3908d9;const _0x2a5782=this[_0x3d0d13(0x266)][_0x3d0d13(0x504)](A);return(_0x3908d9=_0x2a5782==null?void 0x0:_0x2a5782['downloadEndpointUrl'])!=null?_0x3908d9:location[_0x3d0d13(0x2ee)];}[_0x3b22f(0x406)](_0x3e934c,_0x4cea30){const _0xcf549=_0x3b22f;return _0x3e934c['replace'](_0xcf549(0x35f),_0x4cea30);}[_0x3b22f(0x2e2)](){const _0x3959f7=_0x3b22f;this[_0x3959f7(0x3c2)]-=0x1,this[_0x3959f7(0x48a)][_0x3959f7(0x52d)](this[_0x3959f7(0x3c2)]);}},exports[_0x3b22f(0x4a3)]=rn([je(0x0,a['Inject'](P[_0x3b22f(0x5ae)])),je(0x1,a['IConfigService']),je(0x2,a[_0x3b22f(0x492)](a['IUniverInstanceService']))],exports[_0x3b22f(0x4a3)]);var un=Object[_0x3b22f(0x1ff)],dn=Object['getOwnPropertyDescriptor'],Sn=(_0x463d24,_0x3b3c83,_0x1e2269,_0x2d691e)=>{const _0x4c3133=_0x3b22f;for(var _0x49b87a=_0x2d691e>0x1?void 0x0:_0x2d691e?dn(_0x3b3c83,_0x1e2269):_0x3b3c83,_0x57c7e6=_0x463d24[_0x4c3133(0x291)]-0x1,_0x1c1659;_0x57c7e6>=0x0;_0x57c7e6--)(_0x1c1659=_0x463d24[_0x57c7e6])&&(_0x49b87a=(_0x2d691e?_0x1c1659(_0x3b3c83,_0x1e2269,_0x49b87a):_0x1c1659(_0x49b87a))||_0x49b87a);return _0x2d691e&&_0x49b87a&&un(_0x3b3c83,_0x1e2269,_0x49b87a),_0x49b87a;},he=(_0x2dac19,_0x2f705e)=>(_0x1adeed,_0x5905ec)=>_0x2f705e(_0x1adeed,_0x5905ec,_0x2dac19);let Ee=class extends a[_0x3b22f(0x398)]{constructor(_0x5707de,_0x4251e3,_0x28c484,_0x57026b,_0x5afd59){const _0x462a70=_0x3b22f;super(),this['_injector']=_0x5707de,this['_univerInstanceService']=_0x4251e3,this[_0x462a70(0x444)]=_0x28c484,this[_0x462a70(0x1ef)]=_0x57026b,this[_0x462a70(0x316)]=_0x5afd59,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x3b22f(0x5ec)](){const _0x48a042=_0x3b22f,_0x320335=async _0x348988=>{const _0xc20541=_0x2c53;(await this[_0xc20541(0x1ef)][_0xc20541(0x578)](_0x348988))[_0xc20541(0x3b5)][_0xc20541(0x3de)](E['filter'](_0x378db6=>_0x378db6[_0xc20541(0x3cc)]===_[_0xc20541(0x44c)]['SHOULD_CLOSE_CONN']),E[_0xc20541(0x37c)](this[_0xc20541(0x2e1)]))[_0xc20541(0x42c)](_0x27631c=>{const _0x18c2a3=_0xc20541,_0x547b7d=_0x27631c,{reason:_0x3e8662}=_0x547b7d[_0x18c2a3(0x45b)];this[_0x18c2a3(0x397)][_0x18c2a3(0x34d)](N[_0x18c2a3(0x2e3)])[_0x18c2a3(0x224)]({'type':X[_0x18c2a3(0x5b4)][_0x18c2a3(0x460)],'content':this[_0x18c2a3(0x316)]['t'](_0x18c2a3(0x21f))+'('+_0x3e8662+')'}),this[_0x18c2a3(0x444)]['updatePermissionPoint'](new C[(_0x18c2a3(0x5d2))](_0x348988)['id'],!0x1),this[_0x18c2a3(0x1ef)][_0x18c2a3(0x3c6)](_0x348988);});};v[_0x48a042(0x2c4)](this[_0x48a042(0x340)][_0x48a042(0x5e8)](a['UniverInstanceType'][_0x48a042(0x3c0)]),this[_0x48a042(0x340)][_0x48a042(0x5e8)](a['UniverInstanceType'][_0x48a042(0x332)]))[_0x48a042(0x3de)](E[_0x48a042(0x57b)](_0x3015d4=>_0x3015d4[_0x48a042(0x52b)]()),E['filter'](_0xe3f8bd=>!a[_0x48a042(0x3a4)](_0xe3f8bd)),E[_0x48a042(0x37c)](this[_0x48a042(0x2e1)]))[_0x48a042(0x42c)](_0xd498ff=>{_0x320335(_0xd498ff);});}[_0x3b22f(0x244)](){const _0x47b57c=_0x3b22f,_0x18d24d=async _0x3b9da9=>{const _0x465926=_0x2c53;(await this[_0x465926(0x1ef)]['requireSession'](_0x3b9da9))[_0x465926(0x3b5)][_0x465926(0x3de)](E[_0x465926(0x3f9)](_0x249a72=>_0x249a72[_0x465926(0x3cc)]===_[_0x465926(0x44c)][_0x465926(0x21e)]),E[_0x465926(0x37c)](this[_0x465926(0x2e1)]))['subscribe'](_0x2439ef=>{const _0x5cb680=_0x465926,_0x3d1697=_0x2439ef,{objectId:_0x33c6ca}=_0x3d1697[_0x5cb680(0x45b)],_0x3ed512=this['_injector']['get'](te[_0x5cb680(0x26c)]);_0x33c6ca===_0x3b9da9?_0x3ed512[_0x5cb680(0x216)](_0x3b9da9):_0x3ed512['refreshPermission'](_0x3b9da9,_0x33c6ca);});};v[_0x47b57c(0x2c4)](this[_0x47b57c(0x340)][_0x47b57c(0x5e8)](a[_0x47b57c(0x38e)][_0x47b57c(0x3c0)]),this['_univerInstanceService'][_0x47b57c(0x5e8)](a[_0x47b57c(0x38e)][_0x47b57c(0x332)]))[_0x47b57c(0x3de)](E[_0x47b57c(0x57b)](_0x2f34e7=>_0x2f34e7[_0x47b57c(0x52b)]()),E['filter'](_0x14ec5c=>!a[_0x47b57c(0x3a4)](_0x14ec5c)),E[_0x47b57c(0x37c)](this['dispose$']))[_0x47b57c(0x42c)](_0xf2bf68=>{_0x18d24d(_0xf2bf68);});}};Ee=Sn([he(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),he(0x1,a[_0x3b22f(0x26b)]),he(0x2,a[_0x3b22f(0x300)]),he(0x3,a[_0x3b22f(0x492)](exports[_0x3b22f(0x298)])),he(0x4,a[_0x3b22f(0x492)](a['LocaleService']))],Ee);var vn=Object[_0x3b22f(0x1ff)],fn=Object[_0x3b22f(0x246)],gn=(_0x5e2741,_0x6fa5f9,_0x1b1822,_0x4e7107)=>{for(var _0xd2eb7c=_0x4e7107>0x1?void 0x0:_0x4e7107?fn(_0x6fa5f9,_0x1b1822):_0x6fa5f9,_0x12b3fc=_0x5e2741['length']-0x1,_0x3c8bcc;_0x12b3fc>=0x0;_0x12b3fc--)(_0x3c8bcc=_0x5e2741[_0x12b3fc])&&(_0xd2eb7c=(_0x4e7107?_0x3c8bcc(_0x6fa5f9,_0x1b1822,_0xd2eb7c):_0x3c8bcc(_0xd2eb7c))||_0xd2eb7c);return _0x4e7107&&_0xd2eb7c&&vn(_0x6fa5f9,_0x1b1822,_0xd2eb7c),_0xd2eb7c;},lt=(_0xf6aee6,_0x2b3991)=>(_0x80df5,_0x1b2b73)=>_0x2b3991(_0x80df5,_0x1b2b73,_0xf6aee6);exports[_0x3b22f(0x55f)]=class{constructor(_0x54975b,_0x282a0a){const _0x4e38e4=_0x3b22f;this[_0x4e38e4(0x266)]=_0x54975b,this[_0x4e38e4(0x270)]=_0x282a0a;}async[_0x3b22f(0x524)](_0x18b78a,_0x4d72e1){const _0x162694=_0x3b22f;var _0x2c333b;const {unitID:_0x475c4e,type:_0x515a4a,revision:_0x2cf1d7=0x0}=_0x4d72e1,_0x46d1da=this[_0x162694(0x531)]()+'/'+_0x515a4a+_0x162694(0x37a)+_0x475c4e+_0x162694(0x208)+_0x2cf1d7,_0x5a3d43=(await this[_0x162694(0x270)][_0x162694(0x34d)](_0x46d1da))[_0x162694(0x30a)],_0x39ebba=(_0x2c333b=_0x5a3d43['snapshot'])==null?void 0x0:_0x2c333b[_0x162694(0x22a)];if(_0x39ebba){const _0x4ee1e3=_0x39ebba==null?void 0x0:_0x39ebba['originalMeta'],_0x572cb1=_['textEncoder']['encode'](_['b64DecodeUnicode'](_0x4ee1e3));_0x39ebba[_0x162694(0x54b)]=_0x572cb1,Object[_0x162694(0x54f)](_0x39ebba[_0x162694(0x4dc)])[_0x162694(0x339)](([,_0x4a1a07])=>{const _0xf8c526=_0x162694,_0x11ad4f=_0x4a1a07[_0xf8c526(0x54b)],_0x106d18=_[_0xf8c526(0x2a4)][_0xf8c526(0x21c)](_[_0xf8c526(0x274)](_0x11ad4f));_0x4a1a07[_0xf8c526(0x54b)]=_0x106d18;});}return _0x5a3d43;}async[_0x3b22f(0x537)](_0x100664,_0x5d7b69){const _0x56c01e=_0x3b22f,{unitID:_0x2f5256,type:_0x4cea0b,blockID:_0x38c0e6}=_0x5d7b69,_0x945b77=this[_0x56c01e(0x451)]()+'/'+_0x4cea0b+_0x56c01e(0x37a)+_0x2f5256+_0x56c01e(0x530)+_0x38c0e6;return(await this[_0x56c01e(0x270)][_0x56c01e(0x34d)](_0x945b77))[_0x56c01e(0x30a)];}async[_0x3b22f(0x20c)](_0x1784e3,_0x3c949f){const _0x1a6bf3=_0x3b22f,{unitID:_0xc7ecd6,type:_0x5547cd,blockID:_0x18ccc7}=_0x3c949f,_0x29d934=this[_0x1a6bf3(0x451)]()+_0x1a6bf3(0x530)+_0x5547cd+'/unit/'+_0xc7ecd6+_0x1a6bf3(0x530)+_0x18ccc7;return(await this[_0x1a6bf3(0x270)][_0x1a6bf3(0x34d)](_0x29d934))[_0x1a6bf3(0x30a)];}async[_0x3b22f(0x5c2)](_0x4022f3,_0x5c316e){const _0x516623=_0x3b22f,{unitID:_0x4b8248,type:_0x1dba33,from:_0x529d11,to:_0x3f033c}=_0x5c316e,_0x3eb510=this[_0x516623(0x451)]()+'/'+_0x1dba33+'/unit/'+_0x4b8248+_0x516623(0x4c0)+_0x529d11+'&to='+_0x3f033c;return(await this['_httpService'][_0x516623(0x34d)](_0x3eb510))[_0x516623(0x30a)];}[_0x3b22f(0x531)](){const _0x24e0d7=_0x3b22f;var _0x159de9;return(_0x159de9=this[_0x24e0d7(0x266)][_0x24e0d7(0x504)](_t))!=null?_0x159de9:this[_0x24e0d7(0x451)]();}[_0x3b22f(0x451)](){const _0x4daa0a=_0x3b22f;var _0x3762d5,_0x3f139a;const _0x15b4a1=this[_0x4daa0a(0x266)][_0x4daa0a(0x504)](ht),_0x5793ce=this[_0x4daa0a(0x266)][_0x4daa0a(0x504)](A);return(_0x3f139a=(_0x3762d5=_0x5793ce==null?void 0x0:_0x5793ce['snapshotServerUrl'])!=null?_0x3762d5:_0x15b4a1)!=null?_0x3f139a:Gt;}async['getResourcesRequest'](_0x510288,_0x5ccc1a){const _0x1f5f61=_0x3b22f,_0x1d301c=_0x1f5f61(0x501)+_0x5ccc1a[_0x1f5f61(0x331)]+_0x1f5f61(0x37a)+_0x5ccc1a['unitID']+_0x1f5f61(0x348);return(await this[_0x1f5f61(0x270)]['get'](_0x1d301c,{'params':{'resourceId':JSON[_0x1f5f61(0x56d)](_0x5ccc1a[_0x1f5f61(0x2d6)])}}))[_0x1f5f61(0x30a)];}[_0x3b22f(0x521)](){const _0x142806=_0x3b22f;throw new Error(_0x142806(0x27f));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b22f(0x585)](){const _0x5b75d5=_0x3b22f;throw new Error(_0x5b75d5(0x27f));}[_0x3b22f(0x36b)](){const _0x50de2c=_0x3b22f;throw new Error(_0x50de2c(0x27f));}},exports[_0x3b22f(0x55f)]=gn([lt(0x0,a[_0x3b22f(0x5ad)]),lt(0x1,a['Inject'](P[_0x3b22f(0x5ae)]))],exports['SnapshotServerOverHTTPService']);var mn=Object[_0x3b22f(0x1ff)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5aaa96,_0x46e492,_0x85ef45,_0x3ae3f5)=>{const _0x3d34ae=_0x3b22f;for(var _0x454548=_0x3ae3f5>0x1?void 0x0:_0x3ae3f5?In(_0x46e492,_0x85ef45):_0x46e492,_0x3a9c53=_0x5aaa96[_0x3d34ae(0x291)]-0x1,_0x370e12;_0x3a9c53>=0x0;_0x3a9c53--)(_0x370e12=_0x5aaa96[_0x3a9c53])&&(_0x454548=(_0x3ae3f5?_0x370e12(_0x46e492,_0x85ef45,_0x454548):_0x370e12(_0x454548))||_0x454548);return _0x3ae3f5&&_0x454548&&mn(_0x46e492,_0x85ef45,_0x454548),_0x454548;},_e=(_0x5cc016,_0x2bcba2)=>(_0x36cd5c,_0x179b2f)=>_0x2bcba2(_0x36cd5c,_0x179b2f,_0x5cc016);let Be=class extends a[_0x3b22f(0x213)]{constructor(_0x3a8daa,_0x20198b,_0x2d784d,_0x3f4208,_0xf0e6bd){super(_0x3a8daa,_0x20198b,_0x2d784d),this['_transformService']=_0x3f4208,this['_logService']=_0xf0e6bd;}[_0x3b22f(0x2f3)](_0x3bb3ac,_0x1905c1){const _0x3b91a1=_0x3b22f,_0xfa06a2=this[_0x3b91a1(0x2f7)](_0x3bb3ac);if(_0xfa06a2)try{const _0x295f63=this[_0x3b91a1(0x55c)](_0xfa06a2,_0x1905c1);this[_0x3b91a1(0x46c)](_0x3bb3ac,_0x295f63);}catch(_0x3b3865){this['_logService']['error']('[CollaborationUndoRedoService]',_0x3b3865),this[_0x3b91a1(0x46b)](_0x3bb3ac);}const _0x2d6d77=this[_0x3b91a1(0x210)](_0x3bb3ac);if(_0x2d6d77)try{const _0x155c03=this[_0x3b91a1(0x55c)](_0x2d6d77,_0x1905c1);this[_0x3b91a1(0x5e5)](_0x3bb3ac,_0x155c03);}catch(_0xae406){this[_0x3b91a1(0x445)]['error'](_0xae406),this[_0x3b91a1(0x256)](_0x3bb3ac);}}['_clearUndo'](_0x161c70){const _0xa84b19=_0x3b22f,_0x247985=this[_0xa84b19(0x2f7)](_0x161c70);_0x247985&&(_0x247985[_0xa84b19(0x291)]=0x0,this[_0xa84b19(0x200)]());}[_0x3b22f(0x256)](_0x5e807f){const _0x15679b=_0x3b22f,_0x3e1141=this[_0x15679b(0x210)](_0x5e807f);_0x3e1141&&(_0x3e1141[_0x15679b(0x291)]=0x0,this[_0x15679b(0x200)]());}[_0x3b22f(0x46c)](_0x2bdf43,_0x4aabac){const _0x180e1d=_0x3b22f;this['_undoStacks']['set'](_0x2bdf43,_0x4aabac),this[_0x180e1d(0x200)]();}[_0x3b22f(0x5e5)](_0x3fbfeb,_0x5a4dd2){const _0x15455b=_0x3b22f;this[_0x15455b(0x1e4)][_0x15455b(0x305)](_0x3fbfeb,_0x5a4dd2),this[_0x15455b(0x200)]();}['_transformStack'](_0x4ed192,_0x2b2ea2){const _0xc14208=_0x3b22f,_0x7ddaa3=[];let _0xe9845a=_0x2b2ea2,_0x3e9a2e=_0x2b2ea2;for(let _0x5edace=_0x4ed192[_0xc14208(0x291)]-0x1;_0x5edace>=0x0;_0x5edace--){const {unitID:_0x249778,undoMutations:_0x27e285,redoMutations:_0x5d1adf}=_0x4ed192[_0x5edace],_0x2e814b=this[_0xc14208(0x294)][_0xc14208(0x261)](_0xe9845a,_0x27e285),_0x40c08d=this['_transformService'][_0xc14208(0x261)](_0x3e9a2e,_0x5d1adf);if(_[_0xc14208(0x4bb)](_0x2e814b)||_[_0xc14208(0x4bb)](_0x40c08d)){this[_0xc14208(0x445)]['error']('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x2e814b,_0x40c08d);break;}_0xe9845a=_0x2e814b['c1Prime'],_0x3e9a2e=_0x40c08d[_0xc14208(0x5d4)],_0x7ddaa3[_0xc14208(0x1ed)]({'unitID':_0x249778,'undoMutations':_0x2e814b[_0xc14208(0x2e8)],'redoMutations':_0x40c08d[_0xc14208(0x2e8)]});}return _0x7ddaa3[_0xc14208(0x1e5)]();}};Be=pn([_e(0x0,a[_0x3b22f(0x26b)]),_e(0x1,a['ICommandService']),_e(0x2,a[_0x3b22f(0x510)]),_e(0x3,_[_0x3b22f(0x378)]),_e(0x4,a[_0x3b22f(0x308)])],Be);class Nt extends a[_0x3b22f(0x398)]{constructor(){const _0x39b33c=_0x3b22f;super(),d(this,_0x39b33c(0x4cb)),this['urlChange$']=v[_0x39b33c(0x2b9)](window,_0x39b33c(0x27b))['pipe'](v[_0x39b33c(0x37c)](this[_0x39b33c(0x2e1)]),v['shareReplay'](0x1),v['mapTo'](void 0x0));}[_0x3b22f(0x57f)](_0x328d38,_0x511fae,_0x254684=!0x1){const _0x26da11=_0x3b22f,_0x10a5d9=new URL(window[_0x26da11(0x353)]['href']);_0x10a5d9[_0x26da11(0x498)][_0x26da11(0x305)](_0x328d38,_0x511fae),_0x254684?window[_0x26da11(0x4e7)]['replaceState']('','',_0x10a5d9[_0x26da11(0x4e2)]()):window[_0x26da11(0x4e7)][_0x26da11(0x354)]('','',_0x10a5d9[_0x26da11(0x4e2)]());}[_0x3b22f(0x297)](_0x491e9e,_0x5a74e7=!0x1){const _0x1dd205=_0x3b22f,_0x46d3d7=new URL(window[_0x1dd205(0x353)][_0x1dd205(0x412)]);_0x46d3d7[_0x1dd205(0x498)][_0x1dd205(0x2cc)](_0x491e9e),_0x5a74e7?window[_0x1dd205(0x4e7)]['replaceState']('','',_0x46d3d7[_0x1dd205(0x4e2)]()):window['history'][_0x1dd205(0x354)]('','',_0x46d3d7[_0x1dd205(0x4e2)]());}[_0x3b22f(0x422)](_0x4435c1){const _0x922b4f=_0x3b22f;var _0x2f7033;return(_0x2f7033=new URL(window[_0x922b4f(0x353)][_0x922b4f(0x412)])[_0x922b4f(0x498)]['get'](_0x4435c1))!=null?_0x2f7033:void 0x0;}}var At=Object[_0x3b22f(0x1ff)],Cn=Object[_0x3b22f(0x246)],En=(_0x202534,_0x16e8f7,_0x57d077)=>_0x16e8f7 in _0x202534?At(_0x202534,_0x16e8f7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d077}):_0x202534[_0x16e8f7]=_0x57d077,bn=(_0x3b4d89,_0x198f3b,_0x4745a7,_0x97812f)=>{for(var _0x5acd03=_0x97812f>0x1?void 0x0:_0x97812f?Cn(_0x198f3b,_0x4745a7):_0x198f3b,_0xe2ff66=_0x3b4d89['length']-0x1,_0x59d6c0;_0xe2ff66>=0x0;_0xe2ff66--)(_0x59d6c0=_0x3b4d89[_0xe2ff66])&&(_0x5acd03=(_0x97812f?_0x59d6c0(_0x198f3b,_0x4745a7,_0x5acd03):_0x59d6c0(_0x5acd03))||_0x5acd03);return _0x97812f&&_0x5acd03&&At(_0x198f3b,_0x4745a7,_0x5acd03),_0x5acd03;},ve=(_0x4efbeb,_0xefecb6)=>(_0x514fd2,_0x2936fa)=>_0xefecb6(_0x514fd2,_0x2936fa,_0x4efbeb),Tn=(_0x49b416,_0x268150,_0x1ae4f7)=>En(_0x49b416,_0x268150+'',_0x1ae4f7);const Rn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x3b22f(0x54c)]=class extends a['Plugin']{constructor(_0x2b7c2f=ts,_0x241d51,_0x16a2ac,_0x90128,_0x395b1c){const _0x19b695=_0x3b22f;super(),this[_0x19b695(0x293)]=_0x2b7c2f,this[_0x19b695(0x445)]=_0x241d51,this['_renderManagerService']=_0x16a2ac,this['_injector']=_0x90128,this['_configService']=_0x395b1c;const {..._0x1e968e}=this[_0x19b695(0x293)];this[_0x19b695(0x266)][_0x19b695(0x41f)](A,_0x1e968e);}[_0x3b22f(0x49e)](){const _0x577a6d=_0x3b22f;this['_registerDependencies'](),a[_0x577a6d(0x4ed)](this[_0x577a6d(0x397)],[[ie],[exports[_0x577a6d(0x4f7)]],[Ee]]);}[_0x3b22f(0x4d3)](){const _0x4748fa=_0x3b22f;a['touchDependencies'](this[_0x4748fa(0x397)],[[Ie]]);}['onRendered'](){const _0x6c8a25=_0x3b22f;this[_0x6c8a25(0x20a)]();}[_0x3b22f(0x4f3)](){const _0x3118cf=_0x3b22f;var _0x5e8f99,_0x793f4c,_0x556c97,_0x835de4;this[_0x3118cf(0x397)][_0x3118cf(0x3e5)](a[_0x3118cf(0x519)])&&this['_logService'][_0x3118cf(0x49d)]('[UniverCollaborationClientPlugin]',_0x3118cf(0x55e));let _0x53b982=[[a[_0x3118cf(0x519)],{'useClass':Be}],[exports[_0x3118cf(0x298)]],[Xe],[P[_0x3118cf(0x5ae)]],[ze,{'useClass':Nt}],[q],[exports[_0x3118cf(0x462)]],[P[_0x3118cf(0x347)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x793f4c=(_0x5e8f99=this[_0x3118cf(0x293)])==null?void 0x0:_0x5e8f99[_0x3118cf(0x2a5)])!=null?_0x793f4c:exports[_0x3118cf(0x272)]}],[P['IHTTPImplementation'],{'useClass':P[_0x3118cf(0x55b)]}],[_[_0x3118cf(0x2ce)],{'useClass':exports['SnapshotServerOverHTTPService']}],[a['IAuthzIoService'],{'useClass':exports[_0x3118cf(0x38b)]}],[L['IImageIoService'],{'useClass':exports[_0x3118cf(0x4a3)]}],[exports[_0x3118cf(0x322)]],[exports[_0x3118cf(0x4f7)]],[exports[_0x3118cf(0x52f)]],[Ie],[ie]];(_0x556c97=this[_0x3118cf(0x293)])!=null&&_0x556c97[_0x3118cf(0x225)]&&_0x53b982['push']([be,{'useClass':ys}]),_0x53b982=a[_0x3118cf(0x588)](_0x53b982,(_0x835de4=this[_0x3118cf(0x293)])==null?void 0x0:_0x835de4['override']),_0x53b982[_0x3118cf(0x339)](_0x4b147e=>this['_injector'][_0x3118cf(0x405)](_0x4b147e)),this[_0x3118cf(0x514)]();}[_0x3b22f(0x20a)](){const _0x20d3a8=_0x3b22f;this['disposeWithMe'](this[_0x20d3a8(0x376)][_0x20d3a8(0x4b5)](a[_0x20d3a8(0x38e)][_0x20d3a8(0x332)],[xe])),this['disposeWithMe'](this[_0x20d3a8(0x376)]['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[ke]));}[_0x3b22f(0x514)](){const _0x2717a0=_0x3b22f;var _0x20032d,_0x2fa160;this[_0x2717a0(0x397)][_0x2717a0(0x34d)](P[_0x2717a0(0x5ae)])[_0x2717a0(0x3ef)]({'priority':0x14,'interceptor':P[_0x2717a0(0x257)]({'maxParallel':0x6})}),this[_0x2717a0(0x397)]['get'](Ce),(_0x20032d=this[_0x2717a0(0x293)])!=null&&_0x20032d[_0x2717a0(0x58c)]||this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports[_0x2717a0(0x462)])['disableLocalCache'](),(_0x2fa160=this[_0x2717a0(0x293)])!=null&&_0x2fa160[_0x2717a0(0x425)]&&this[_0x2717a0(0x397)]['get'](pe),this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports['CollaborationController']),this[_0x2717a0(0x397)][_0x2717a0(0x3e5)](exports[_0x2717a0(0x52f)])&&this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports[_0x2717a0(0x52f)]);}},Tn(exports[_0x3b22f(0x54c)],_0x3b22f(0x4c3),Rn),exports[_0x3b22f(0x54c)]=bn([a[_0x3b22f(0x52e)](_['UniverCollaborationPlugin']),ve(0x1,a[_0x3b22f(0x308)]),ve(0x2,R['IRenderManagerService']),ve(0x3,a[_0x3b22f(0x492)](a['Injector'])),ve(0x4,a['IConfigService'])],exports[_0x3b22f(0x54c)]),exports[_0x3b22f(0x211)]=Mt,exports[_0x3b22f(0x2de)]=gt,exports['COLLAB_WEB_SOCKET_URL_KEY']=ut,exports[_0x3b22f(0x3ee)]=y,exports[_0x3b22f(0x42b)]=wt,exports[_0x3b22f(0x28d)]=Ge,exports[_0x3b22f(0x2b1)]=dt,exports[_0x3b22f(0x45d)]=Ve,exports[_0x3b22f(0x280)]=Fe,exports[_0x3b22f(0x399)]=ze,exports[_0x3b22f(0x5e7)]=ft,exports[_0x3b22f(0x3eb)]=mt,exports[_0x3b22f(0x424)]=vt,exports[_0x3b22f(0x51d)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x3b22f(0x367)]=_t,exports[_0x3b22f(0x508)]=$,exports[_0x3b22f(0x3d5)]=Ot,exports[_0x3b22f(0x217)]=Nt,exports[_0x3b22f(0x47a)]=Ct,exports[_0x3b22f(0x2bc)]=Et;
1
+ 'use strict';const _0x3a2165=_0x4ca1;(function(_0x4cda34,_0x3a8fff){const _0x141a1c=_0x4ca1,_0xb1554e=_0x4cda34();while(!![]){try{const _0x3882b8=-parseInt(_0x141a1c(0x2ad))/0x1+-parseInt(_0x141a1c(0x149))/0x2*(-parseInt(_0x141a1c(0x265))/0x3)+-parseInt(_0x141a1c(0x45f))/0x4+parseInt(_0x141a1c(0x148))/0x5+-parseInt(_0x141a1c(0x170))/0x6*(-parseInt(_0x141a1c(0x123))/0x7)+parseInt(_0x141a1c(0x4bc))/0x8*(-parseInt(_0x141a1c(0x35f))/0x9)+parseInt(_0x141a1c(0x11d))/0xa;if(_0x3882b8===_0x3a8fff)break;else _0xb1554e['push'](_0xb1554e['shift']());}catch(_0xe34614){_0xb1554e['push'](_0xb1554e['shift']());}}}(_0x26d6,0xc81e3));function _0x26d6(){const _0x254b95=['COMPRESS_MUTATION_APPLY','_textBubble','BuiltInUIPart','object','isTransformMutationFailure','catch','_localStorageService','6476252jBokOV','MoveRangeCommandId','UniverInstanceType','resend','_docSkeletonManagerService','socket\x20close','SYNCED','getImage','InsertColCommandId','post','serializeCombRequest','cursorInfo$','_toggleOffline','_scheduleCollaborationTimeoutTimer','createSocket','touchDependencies','ColorKit','color','roomInfos','1em','getOwnPropertySymbols','_session','removeParam','CHANGESET_ACK','_context','submit\x20changeset\x20error!','defs','onStarting','CommentService','onlyLocal','getSheetId','setAlpha','_cursorShapes','_clearScheduledTask','univer-online-status-icon','substring','Tools','FETCH_MISSING','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_clearOtherTimers','sheets','SetWorksheetActivateCommand','currentSkeleton$','RefRangeService','connection\x20error','/allowed','pluginName','COMPRESS_MUTATION_SEND','replaceState','ILogService','dispose','status','getSheetBlock','name','COLLAB_WEB_SOCKET_URL','assign','DataLoaderController','tag','hovered','updateMember','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_compressMutationService','createElement','/universer-api/snapshot/','searchParams','ImageUploadStatusType','parseChangesetToProtocol','_handleHeartbeatEvent','SessionStatus','InsertRangeMoveDownCommandId','_updateStatus','RECV','_onCursorUpdate','_disabled','init','saveSnapshot','_state','has','origin','_docTransformIMECacheService','headers','_document','routeKey','YUUMI_RATE_OVER_LIMIT','_onRecvEvent','list','Univer','Optional','ERROR_IMAGE_TYPE','SNAPSHOT_HAS_BEEN_REMOVED','collaboration.single-unit.warning','DocCollaborationEntity','handleMoveRange','12131808eylxER','_id','collabStatus.conflict','fromEventSubject','_onConflict','DeleteRangeMoveLeftCommandId','setInterval','APPLY_PERMISSION_DENIED','commentUpdate$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','createIdentifier','[CollaborationSessionService]','session.collaboration-timeout','concatMap','moveTo','OTHER_CLIENTS_EDITING','UNDEFINED','_getUploadFileURL','getUnhiddenWorksheets','closeSession','RETRY_CONNECTING_MAX_COUNT','state','_cachedData','append','_themeService','APPLY_REJECT','trim','_onRemoteRejected','_onOffline','CollaborationStatus','reduce','_notificationService','_render','_singleActiveUnitService','/resources','_getAPIPrefix','getCollabEntity','path','[CollaborationEntity]','_awaitingChangeset','userID','createInstance','toRgbString','_updateCollabCursors','SUBMIT_CHANGESET','delay','NOT_COLLAB','[CollaborationUndoRedoService]','_scheduleClearOtherTimer','ITransformService','onRendered','_labelPosition','RevisionService','_cursors','@univerjs-pro/license','getVpScrollXYInfoByPosToVp','YUUMI_SUBSCRIPTION_NOT_FOUND','selection','_scheduleSaving','debounce','IConfigService','registerHTTPInterceptor','_handleEvent','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Module','_retryCount','_drawRectRange','location','unshift','[OfflineState]:\x20received\x20rejection.','_config','SetTextSelectionsOperation','_scheduleTimestamp','getCurrentRevOfUnit','HELLO','createCollaborator','isInternalEditorID','XHRHTTPImplementation','slice','_transformRemoteChangesetByIMECache','_HTTPService','then','filter','extend','CHANGESET_REVISION_CONFILICT','IAuthzIoService','unitId','Rectangle','_updateState','_startSheetCollabCursor','stopTime','collaboratorID','_showConflictNotification','COLORS','univer-pro.collaboration-client.single-active-unit-service','transformMutationsWithChangeset','_heartbeatTimer','members','_refreshCollabCursors','div','getCollabEntity$','_socketMessageSubscription','/universer-api/oidc/authpage','asObservable','_unitID','round','session.room-full','params','UniverCollaborationPlugin','LIVESHARE_OPERATION','Error','_configService','CollaborationSocketService','transformIMECache','LEAVE','result','UNAUTHENTICATED','_getAnchorBounding','_getUndoStack','encode','_collaborationPaused','pending','0\x200\x2017\x2016','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','LIVESHARE_NEW_HOST','show','toDisposable','RegularPolygon','setActiveRange','CollaborationEntity','\x20to\x20','downloadEndpointUrl','_send','awaiting_with_pending','fillRule','27622630NSWEOJ','_name','_setupBeforeClosingHandler','_lockTransition','runRefRangeMutations','action','42ZLbVsG','data','UNIVER_SLIDE','_hover','registerOnClose','urlChange$','_setupSubUnitSync','_cursorInfo$','_transformIMECache','POST','[PendingState]:\x20received\x20acknowledgement.','memberID','interceptor','@univerjs-pro/collaboration','visibilitychange','doc.mutation.rich-text-editing','collab-text-anchor-','confirm','body','_range','IUniverInstanceService','UniverCollaborationClientPlugin','\x20in\x20_schedule.','?url=','_createInitialState','Undefined','isValidRectRange','_selfUnitIDs','close$','delete','getOffsetConfig','baseRev','LICENSE_MAX_UNITS_EXCEEDED','width','_change$','isPermissionRej','[DataLoaderController]','4750615lntvec','587374eWPspt','_startTelemetryCollaborationNewChangeset','attrs','/new_changes','getUniverSheetInstance','create','COMMENT_UPDATE','_getAPIPrefixPath','_registerDependencies','loadOfflineData','_cursor','_toggleOnline','getUnitOnRev','collaboration-client.offline-data-not-saved','_socket$','onTransformIME','_fetchMissChangesets','dispose$','INVALID_ARGUMENT','synced','loginUrlKey','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','collabStatus.fetchMiss','off-line-single','AWAITING_WITH_PENDING','IHTTPImplementation','_transformUndoredo','setShapeProps','contains','range','disposeWithMe','_initMergeInterceptor','sheetID','&assign=','isTransformMutationsWithChangesetSuccess','CollaborationSessionService','colorChannel1','_docStateChangeManagerService','INTERNAL_ERROR','144270ewfjOX','CONFLICT','refreshPermission','blue400','getCoordByCell','_getSnapshotAPIPrefix','_unitStatus','exhaustSavingTask','MUTATION','CHANGESET_REJ','PSEUDO_FETCH_MISSING_RESULT','useRef','onPointerEnter$','_waitForHeartbeatResponse','_entities','_onCombEvent','CollaborationSession','href','onSendChangeset','JOINING','saveSheetBlock','_onRemoteChangeset','_onCursorDelete','_registerRenderDependencies','UUID','_sessions','SNAPSHOT_URL_KEY','_color','_drawAnchor','_initCommandExecutedListener','message$','SNAPSHOT_INVALID_SNAPSHOT','\x0aAfter:\x20','APPLY_NON_SEQUENTIAL_REVISION','_snapshotServerService','PENDING','set','_initStatusComponent','_uiPartsService','isTransformChangesetsSuccess','_scene','measureText','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onlineStatusIcon','_members','save','liveShareOperation','uploadFileServerUrl','getFocusedUnit','/collaborator','UNKNOWN_CMD','_sessionStatus$','_initRequestHeader','compose','_hideTimer','sessionStatus','setUndoRedoMutationParamsCache','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_applyRemoteChangeset','EmptyMutation','retryConnectingInterval','_handler','ONLINE','none','text','_collabSessionService','online','LICENSE_EXPORT_SIZE_EXCEEDED','JSONX','handleDeleteRangeMoveUp','requestParams','disableLocalCache','number','_getCurrentRevision','[SyncedState]:\x20received\x20rejection.','put','getCurrent','_redoStacks','[OfflineState]:\x20received\x20changeset.','endRow','displayName','_getSheetObject','executeCommand','session','WorkbookEditablePermission','newValue','signUrlServerUrl','collaboration-session-retry','SUCCUSS','_transitionLocked','authzUrl','_permissionService','socketService','_tryEnsureSocket','values','icon','_socketService','_backgroundColor','assignAColorForMemberID','_checkMissing','restore','symbol','_localeService','LocalUndoRedoService','HTTPService','_init','collab-text-range-','_incrementRevisionNumber','getItem','startColumn','clearTimeout','sessionStatus$','toggleOnline','deserializeRangeWithSheet','defineProperty','_docTransformSelectionsService','LOGIN_URL_KEY','_substituteRedoStack','_unitOnClients','x-univer-host','_localCacheService','getParam','_shouldReportTelemetry','_startDocCollabCursor','csAckEvent','DocSkeletonManagerService','subscribe','call','getCurrentSelections','IUIPartsService','red300','_state$','rev','sequenceExecute','onMissedChangesetFetched','max','_getDownloadEndpointURL','transformRemoteChangeset','OnLineSingle','_event$','svg','prototype','IBeforeCloseService','SheetPermissionInitController','updateOfflineData','_draw','getColor','isArray','deepClone','IRenderManagerService','SHOULD_CLOSE_CONN','readAsDataURL','objectType','saveChangeset','getViewport','onReady','idSuffix','_userManagerService','size','addImageSourceCache','_onUserJoin','NodePositionConvertToRectRange','UNIVER_PROJECT','enableSingleActiveInstanceLock','_queuedRemoteChangesets','transformStack\x20failed!','_undoRedoService','eventID','onCommentUpdate','IRemoteInstanceService','beginPath','evenodd','Tooltip','RichTextEditingMutation','CONNECTOR_DATA_TOO_LARGE','UNIVER_SHEET','_collaborationTimeoutTimer','UniverIcon','_assignedColors','_getLoginPath','image/jpeg','setWaitCount','xlink:href','_updateSubUnitFromURLParams','OffLineSingle','offline','getAttachHeader','sheetId','addObject','...','_pendingMutations','PERMISSION_REJ','_clearRedo','m1Prime','LOCAL_CACHE_INTERVAL_KEY','_onRefRangeChange','_online','onload','url','toggleOffline','generateRandomId','_anchor','getActiveSheet','_syncEditingCollabCursor','getInterceptPoints','updateCollaborator','replaceTextRanges','UNIVER_UNKNOWN','onMouseMove','_replaceFileID','allowed','YUUMI_URL_COL_OUT_OF_RANGE','IUndoRedoService','getUnitStatus$','PERMISSION_DENIED','isTransformMutationsWithChangesetFailure','_roomMembers$','LIVESHARE_FETCH_OPERATIONS','loadSheet','arc','FETCH_MISS','use','/object/','ILocalStorageService','DesktopCollaborationStatusDisplayController','revision','onMissingChangesets','_initCloseConn','[CollaborationSession]','ALREADY_EXISTS','onPointerLeave$','Unknown\x20user','_loadSheet','b64DecodeUnicode','&to=','getAncestorScale','setTimeout','collabWebSocketUrl','_scheduleHeartbeat','_telemetryInfo','indexOf','WebURLService','_clearCollaborationTimeoutTimer','rxjs','_collabCursorState$','9buOvOK','_initEventListeners','_urlService','fill','min','@univerjs/sheets','_removeCollabCursors','univer-pro.collaboration-client-socket-service','/universer-api/stream/file/upload','fetchMissingChangesets','error$','_onRemoteACK','_getScale','RETRY_CONNECTING_MAX_COUNT_KEY','newCsEvent','_collaborationSessionService','textEncoder','title','IPermissionService','ImageIoService','putCollaborators','takeUntil','_transformSelections','registerBeforeClose','send','COLLAB_SUBMIT_CHANGESET_URL','_onLocalMutation','startRow','handleInsertRangeMoveDown','shareReplay','fetchThroughInterceptors','ERROR_IMAGE','/-/object/-/batch_allowed','onStateChange','Disposable','defIds','transformSelections','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','localeService','/rev/','Subject','_initUnitPermissionChange','cmd','_clearLocalCache','transform','resourceIDs','children','#FFF','replace','fillStyle','_getSignURL','setCurrentUser','OFFLINE','onSyncEditingCollabCursor','registerRefRange','labelPosition','override','all','concat','split','socket$','_getSaveTimeout','_commentUpdate$','reverse','_throwTelemetryCollaborationNewChangeset','HEARTBEAT_INTERVAL','getWorkbookSelections','findNodePositionByCharIndex','registerRenderModule','getRenderById','_startCollaboration','_telemetryService','782495tMIkYJ','SEND_CHANGESET_TIMEOUT','image/jpg','UNKNOWN_CODE','_snapshotService','joinEvent','toStringTag','enableAuthServer','setParam','drawWith','shouldCloseConn','auth.needGotoLoginAlert','ITelemetryService','UserManagerService','_messageService','VIEW_MAIN','_saveTaskMap','_sheetTransformSelectionsService','@univerjs/docs-ui','getCellPositionByOffset','CompressMutationService','mapDocumentTypeToUniverType','_memberService','permissionRejEvent','workbook','next','_refRangeService','_initResize','_removeClearOtherTimer','UnitEmbedded','hide','fromEvent','snapshot','/universer-api/snapshot','unit','_revisionService','getResourcesRequest','_updateLocalCursor','_updateURLWithCurrentState','@univerjs/engine-render','SnapshotService','enableOfflineEditing','/block/','registerComponent','syncEditingCollabCursor','updateCursorEvent','with','isActive','onTransformRemoteChangesetByIMECache','history','fetchMiss','UnitSnapshot','onRemoteAck','merge','_remoteChangesetQueue','getMergeData','add','/universer-api/file/{fileID}/sign-url','_socketReady','@univerjs/drawing','collaMsg','some','DisposableCollection','src','telemetry\x20info\x20is\x20not\x20initialized','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','SheetsSelectionsService','_collabCursorController','hasOwnProperty','code','_anchorDot','debounceTime','BehaviorSubject','mapTo','_unlockTransition','_collaborationController','from','DEFAULT_FILE_NAME','unit-cache-','_onMessage','onlineStatusTitle','/universer-api/comb','HEARTBEAT','AUTHZ_URL_KEY','_imageSourceCache','session.connection-failed','CommandType','collabStatus.offline','get','originalMeta','#fff','univer-online','liveShareNewHost','_createSocket','rgba(255,\x20255,\x20255,\x200.01)','SetDocZoomRatioOperation','LocalCacheService','_commentService','getTypeOfUnitDisposed$','failed\x20to\x20apply\x20missed\x20changesets!','getSheetBySheetId','_updateLocalCache','_substituteUndoStack','csRejEvent','patch','_transformService','@univerjs/network','RemoveColCommandId','clearInterval','url(#off-line-single_clip0_910_343)','resolve','getTypeOfUnitAdded$','CollaborationController','mutations','image/png','ThemeService','_getMergeRange','_undoStacks','lineTo','_decreaseWaiting','@univerjs/core','IImageIoService','USERS_LEAVE','_transformUndoRedoStack','whenReady','state$','COMPLETION_FINISHED','appendMutation','_onFetchMissResult','pushState','removeMember','leaveEvent','map','skeleton','apply','INGEST','[OfflineState]:\x20received\x20acknowledgement.','onRemoteChangeset','forEach','off-line-single_clip0_910_343','push','@univerjs/telemetry','roomMembers','fetch_missing','HTTPRequest','pauseCollaboration','updatePermissionPoint','height','_beforeCloseService','MergeInterceptorFactory','popstate','NOT_FOUND','onTransformSelections','_type','getConfig','getSheetObject','/object','deserializeToCombResponse','objectActions','getActiveRange','_disableEditing','UNIVER_DOC','/-/object/list','INotificationService','VIEWPORT_KEY','ranges','c1Prime','event$','infoRsp','_timeoutTimer','LIVESHARE_REQUEST_HOST','engine','@univerjs/docs','[FetchMissState]','objects','_saveCache','focused$','USERS_ENTER','9JlWaLS','_handleJoinEvent','unknown','listRoles','LICENSE_IMPORT_SIZE_EXCEEDED','column','univer-online-status-title','InsertSheetMutation','_getSendChangesetTimeout','NO_OTHER_CLIENTS_EDITING','EffectRefRangId','_acknowledgedAwaitingChangeset','every','Error\x20on\x20receiving\x20event','unload','className','_colorIndex','initWorkbookPermissionChange','SNAPSHOT_SERVER_URL_KEY','_colorAssignService','getUndoRedoMutationParamsCache','_docSyncEditingCollabCursorService','currentTheme$','HEARTBEAT_TIMEOUT_KEY','_ws','cursorInfo','_stopTelemetryCollaborationNewChangeset','reject','_status$','jiqing500','FileId','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','currentColor','_drawTextRange','collaboration.closeRoom','textRanges','getOwnPropertyDescriptor','/unit/','on-line-single_clip0_910_349','_waitCount','flatMap','MessageType','_handleHover','ERROR_EXCEED_SIZE','getDeserializedSheetBlock','?size=','\x20-\x20','serializeRangeWithSheet','MSG_FOR_ERROR','m2Prime','addEventListener','_lastPointer','LIVESHARE_TERMINATE','_sendHeartbeat','_createInitialStateImpl','updatePermissionObjEvent','getCollabCursors$','HttpExport','setConfig','collaborators','CollaborationEvent','_transformPreviousActiveRange','COLLAB_SUBMIT_CHANGESET_URL_KEY','IMessageService','univer-online-status','_transformStack','_syncEditingCollabCursorService','_submitChangeset','/universer-api/authz','type','length','stringify','Vector2','fillText','actions','debug','HttpImport','_executeRemoteChangeset','\x0aCurrent:\x20','getUnitId','listCollaborators','Injector','sendChangesetTimeout','getDocRanges','getSkeleton','_sendHeartbeatTimer','toString','awaiting','useDependency','M0\x200H16V16H0z','forwardRef','unitId\x20is\x20not\x20found','AuthzIoHttpService','enableLocalCache','NEW_CHANGESETS','_injector','getValue','backgroundColor','HEARTBEAT_TIMEOUT','UNRECOGNIZED','bottom','getMember','_loadDoc','resize','_onConnectionFailed','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_tryReconnect','responseType','transformUndoRedo','clear','_joinRoom','collabCursorState$','BASE64','_createHandler','onTransformChange$','clipPath','SnapshotServerOverHTTPService','ImageSourceType','switchMap','SetSelectionsOperation','commentUpdateEvent','purple300','_exhaustRemoteChangesetQueue','Rect','row','getTime','DocIMEInputManagerService','_commandService','_http','setItem','black','ICommandService','RemoveRowCommandId','objectID','getUnit','handleInsertCol','awaitingChangeset','IDLE','verdancy600','_candidateSocket','find','font','collabSubmitChangesetUrl','fromCollab','editingUnit','entries','image/gif','open$','includes','top','_sendingTimer','ISnapshotServerService','onRemoteRej','UPDATE_CURSOR','incrementRevOfUnit','_clearUndo','status$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','subunit','_onUserLeave','LocaleService','collaboration_new_changeset','_onJoinRoomEvent','url(#on-line-single_clip0_910_349)','_removeRoom','[CollaborationState]:\x20apply\x20error!','HEADER_MENU','_univerInstanceService','_shapes','_roomMembers','FromArray','@univerjs/ui','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','string','getUnitType','_httpService','_retryConnectingTimer','_clearHeartbeatTimer','handleIRemoveRow','_socket','_getRedoStack','handleDeleteRangeMoveLeft','triggerDblclick','_clearTimeoutTimer','_renderManagerService','_ensureSubject','key','requireSession','subUnitId','complete','_listenToOfflineEvent','transformChangesets','UPDATE_PERMISSION_OBJ','_rescheduleHeartbeat','onPointerMove$','_entityInit$','file','activeSheet$','startTime','Inject','collabStatus.notCollab','_sheetSkeletonManagerService','function','getCurrentUser','conflict','YUUMI_UNABLE_LOAD_URL','_logService','_schedule','TOO_MANY_REQUESTS','uni.network.url-service','collaboration-client.config','FAIL','_hovered','APPLY_REVISION_CONFILICT','handleIRemoveCol','_onConnectionOpen','SheetCollaborationEntity','unitID','saveImage','transformMutation','subscribeEvent','closePath','image/bmp','TEXT_RANGE_LAYER_INDEX','ws://127.0.0.1:8000/universer-api/comb/connect','throttleTime','RxDisposable','error','_eventUnsubscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','now','getMemberID','pipe','handleInsertRangeMoveRight','take','JOIN','c2Prime','DeleteRangeMoveUpCommandId','deleteCollaborator','onCommandExecuted','_replayCachedMutations','Shape','unsubscribe','startsWith','close','[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.','roomMembers$','combineLatest','_initModules'];_0x26d6=function(){return _0x254b95;};return _0x26d6();}var kt=Object[_0x3a2165(0x1e2)],Bt=(_0x468774,_0x16fa68,_0x4f4766)=>_0x16fa68 in _0x468774?kt(_0x468774,_0x16fa68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f4766}):_0x468774[_0x16fa68]=_0x4f4766,d=(_0x92d239,_0x381da0,_0x50b314)=>Bt(_0x92d239,typeof _0x381da0!=_0x3a2165(0x1d5)?_0x381da0+'':_0x381da0,_0x50b314);Object['defineProperty'](exports,Symbol[_0x3a2165(0x2b3)],{'value':_0x3a2165(0xd6)});const a=require(_0x3a2165(0x325)),v=require(_0x3a2165(0x263)),E=require('rxjs/operators'),X=require('@univerjs/design'),N=require(_0x3a2165(0x40a)),P=require(_0x3a2165(0x317)),_=require(_0x3a2165(0x130)),Vt=require(_0x3a2165(0x33a)),V=require(_0x3a2165(0x359)),w=require(_0x3a2165(0x2bf)),C=require(_0x3a2165(0x26a)),R=require(_0x3a2165(0x2d4)),L=require(_0x3a2165(0x2e8)),Je=require('@univerjs/engine-formula'),te=require('@univerjs/sheets-ui'),U=require('react'),Wt=require('@univerjs/rpc'),Ft=require(_0x3a2165(0xcb)),ht=_0x3a2165(0x371),Gt=_0x3a2165(0x2ce),_t=_0x3a2165(0x18a),Yt=_0x3a2165(0x2ae),Kt=0x7d0,ut=_0x3a2165(0x495),Xt=_0x3a2165(0x43f),dt=_0x3a2165(0x2a6),qt=0x7530,Ve=_0x3a2165(0x3c1),St=0x4e20,zt=0x4e20,vt=_0x3a2165(0xa9),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt=_0x3a2165(0x27e),Qt=_0x3a2165(0x2fe),mt='LOGIN_URL_KEY',es=_0x3a2165(0xfc);var It=(_0x1dccf3=>(_0x1dccf3[_0x1dccf3[_0x3a2165(0xa5)]=0x0]=_0x3a2165(0xa5),_0x1dccf3[_0x1dccf3['OK']=0x1]='OK',_0x1dccf3[_0x1dccf3[_0x3a2165(0x16f)]=0x2]='INTERNAL_ERROR',_0x1dccf3[_0x1dccf3[_0x3a2165(0x246)]=0x3]='PERMISSION_DENIED',_0x1dccf3[_0x1dccf3[_0x3a2165(0x344)]=0x4]=_0x3a2165(0x344),_0x1dccf3[_0x1dccf3['UNAUTHENTICATED']=0x5]=_0x3a2165(0x10a),_0x1dccf3[_0x1dccf3[_0x3a2165(0x255)]=0x6]=_0x3a2165(0x255),_0x1dccf3[_0x1dccf3[_0x3a2165(0x15b)]=0x7]='INVALID_ARGUMENT',_0x1dccf3[_0x1dccf3[_0x3a2165(0x42f)]=0x8]=_0x3a2165(0x42f),_0x1dccf3[_0x1dccf3[_0x3a2165(0x32b)]=0x9]=_0x3a2165(0x32b),_0x1dccf3[_0x1dccf3[_0x3a2165(0xea)]=0x1389]=_0x3a2165(0xea),_0x1dccf3[_0x1dccf3[_0x3a2165(0x18f)]=0x1771]=_0x3a2165(0x18f),_0x1dccf3[_0x1dccf3[_0x3a2165(0x4b8)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1dccf3[_0x1dccf3['APPLY_REJECT']=0x1b59]=_0x3a2165(0xae),_0x1dccf3[_0x1dccf3[_0x3a2165(0x191)]=0x1b5a]=_0x3a2165(0x191),_0x1dccf3[_0x1dccf3[_0x3a2165(0x434)]=0x1b5b]=_0x3a2165(0x434),_0x1dccf3[_0x1dccf3[_0x3a2165(0x9c)]=0x1b5c]=_0x3a2165(0x9c),_0x1dccf3[_0x1dccf3['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3a2165(0x21e),_0x1dccf3[_0x1dccf3[_0x3a2165(0x143)]=0x2329]=_0x3a2165(0x143),_0x1dccf3[_0x1dccf3[_0x3a2165(0x444)]=0x232a]=_0x3a2165(0x444),_0x1dccf3[_0x1dccf3[_0x3a2165(0x363)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1dccf3[_0x1dccf3[_0x3a2165(0x1b3)]=0x232c]=_0x3a2165(0x1b3),_0x1dccf3[_0x1dccf3['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x1dccf3[_0x1dccf3[_0x3a2165(0x42c)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1dccf3[_0x1dccf3[_0x3a2165(0x243)]=0x2712]=_0x3a2165(0x243),_0x1dccf3[_0x1dccf3[_0x3a2165(0x4b2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1dccf3[_0x1dccf3[_0x3a2165(0xcd)]=0x2714]=_0x3a2165(0xcd),_0x1dccf3[_0x1dccf3[_0x3a2165(0x3c2)]=-0x1]=_0x3a2165(0x3c2),_0x1dccf3))(It||{}),j=(_0xc4e8fb=>(_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x23f)]=0x0]=_0x3a2165(0x23f),_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x34e)]=0x1]=_0x3a2165(0x34e),_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x21f)]=0x2]='UNIVER_SHEET',_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x125)]=0x3]=_0x3a2165(0x125),_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x212)]=0x4]='UNIVER_PROJECT',_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x3c2)]=-0x1]=_0x3a2165(0x3c2),_0xc4e8fb))(j||{}),b=(_0xd9a309=>(_0xd9a309[_0xd9a309['UNKNOWN_CMD']=0x0]=_0x3a2165(0x1a2),_0xd9a309[_0xd9a309[_0x3a2165(0xe0)]=0x1]=_0x3a2165(0xe0),_0xd9a309[_0xd9a309[_0x3a2165(0x44a)]=0x2]='JOIN',_0xd9a309[_0xd9a309[_0x3a2165(0x108)]=0x3]=_0x3a2165(0x108),_0xd9a309[_0xd9a309[_0x3a2165(0x334)]=0x4]=_0x3a2165(0x334),_0xd9a309[_0xd9a309[_0x3a2165(0x2ff)]=0x5]=_0x3a2165(0x2ff),_0xd9a309[_0xd9a309['RECV']=0x6]=_0x3a2165(0x4a6),_0xd9a309[_0xd9a309['UNRECOGNIZED']=-0x1]=_0x3a2165(0x3c2),_0xd9a309))(b||{}),We=(_0x2c6228=>(_0x2c6228[_0x2c6228[_0x3a2165(0x2b0)]=0x0]='UNKNOWN_CODE',_0x2c6228[_0x2c6228['OK']=0x1]='OK',_0x2c6228[_0x2c6228[_0x3a2165(0x432)]=0x2]=_0x3a2165(0x432),_0x2c6228[_0x2c6228[_0x3a2165(0x3c2)]=-0x1]=_0x3a2165(0x3c2),_0x2c6228))(We||{}),pt=(_0x3c9fb1=>(_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x13c)]=0x0]=_0x3a2165(0x13c),_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x3ab)]=0x1]=_0x3a2165(0x3ab),_0x3c9fb1[_0x3c9fb1['HttpExport']=0x2]=_0x3a2165(0x398),_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x2ca)]=0x3]=_0x3a2165(0x2ca),_0x3c9fb1[_0x3c9fb1['UnitSnapshot']=0x4]=_0x3a2165(0x2e0),_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x3c2)]=-0x1]='UNRECOGNIZED',_0x3c9fb1))(pt||{});const A=_0x3a2165(0x431),ts={};function Ct(_0x29a4aa){const _0x430880=_0x3a2165;var _0x225af9,_0x52714f,_0x4f7fa2,_0x954e8c;const _0x18f088=_0x29a4aa['data'],_0x160e26=JSON['parse'](_0x18f088);switch(_0x160e26['cmd']){case b['HEARTBEAT']:case b[_0x430880(0xe0)]:{const _0x5e7a27=_0x160e26[_0x430880(0x355)];return{..._0x160e26,'data':_0x5e7a27,'cmd':_0x160e26[_0x430880(0x28f)]};}case b[_0x430880(0x44a)]:{const _0x3c96a4=_0x160e26['joinRsp'];return{..._0x160e26,'data':_0x3c96a4,'cmd':_0x160e26[_0x430880(0x28f)]};}case b[_0x430880(0x4a6)]:{const _0x50922f=_0x160e26[_0x430880(0x2e9)];switch(_0x50922f[_0x430880(0x217)]){case _[_0x430880(0x39b)][_0x430880(0x22f)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x225af9=_0x50922f[_0x430880(0x2c4)])==null?void 0x0:_0x225af9['cs']},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x476)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x52714f=_0x50922f[_0x430880(0x1ec)])==null?void 0x0:_0x52714f['cs']},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x3bd)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x4f7fa2=_0x50922f[_0x430880(0x273)])==null?void 0x0:_0x4f7fa2['cs']},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x179)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x954e8c=_0x50922f[_0x430880(0x314)])==null?void 0x0:_0x954e8c['cs']},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)]['UPDATE_CURSOR']:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x2da)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x35e)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x2b2)]},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)]['USERS_LEAVE']:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x330)]},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x112)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x309)]},'cmd':_0x160e26['cmd']};case _['CollaborationEvent'][_0x430880(0x249)]:case _[_0x430880(0x39b)][_0x430880(0x103)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x19e)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x393)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x309)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x38f)]:return{..._0x160e26,'data':_0x50922f,'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x14f)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x3d7)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x41f)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x396)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x206)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x2b7)]},'cmd':_0x160e26[_0x430880(0x28f)]};default:return _0x160e26;}}default:return _0x160e26;}}function Et(_0x12b6aa){const _0xc6696c=_0x3a2165;switch(_0x12b6aa[_0xc6696c(0x28f)]){case b[_0xc6696c(0x2ff)]:case b[_0xc6696c(0xe0)]:return JSON[_0xc6696c(0x3a6)]({'cmd':_0x12b6aa['cmd'],'routeKey':_0x12b6aa['routeKey']});case b[_0xc6696c(0x334)]:{let _0x5d94f8;switch(_0x12b6aa['data'][_0xc6696c(0x217)]){case _['CollaborationEvent'][_0xc6696c(0x3f8)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x3f8)],'updateCursorEvent':_0x12b6aa[_0xc6696c(0x124)]['data']};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x327)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x327)],'leaveEvent':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x35e)]:{_0x5d94f8={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x112)]:{_0x5d94f8={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x103)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x103)],'liveShareOperation':_0x12b6aa['data'][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x393)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x393)],'liveShareTerminate':_0x12b6aa['data'][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x357)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x357)],'liveShareRequestHost':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x249)]:{_0x5d94f8={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5d94f8={'eventID':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x217)]};}return JSON[_0xc6696c(0x3a6)]({'cmd':_0x12b6aa[_0xc6696c(0x28f)],'routeKey':_0x12b6aa[_0xc6696c(0x4b1)],'collaMsg':_0x5d94f8});}case b[_0xc6696c(0x44a)]:return JSON[_0xc6696c(0x3a6)]({'cmd':_0x12b6aa[_0xc6696c(0x28f)],'routeKey':_0x12b6aa[_0xc6696c(0x4b1)],'joinReq':_0x12b6aa[_0xc6696c(0x124)]});case b[_0xc6696c(0x108)]:return JSON['stringify']({'cmd':_0x12b6aa[_0xc6696c(0x28f)],'routeKey':_0x12b6aa[_0xc6696c(0x4b1)],'leaveReq':_0x12b6aa[_0xc6696c(0x124)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var ss=Object['defineProperty'],is=Object[_0x3a2165(0x383)],ns=(_0x556760,_0x14ba51,_0x1eb632,_0x59c842)=>{const _0x44cd1e=_0x3a2165;for(var _0x12f80f=_0x59c842>0x1?void 0x0:_0x59c842?is(_0x14ba51,_0x1eb632):_0x14ba51,_0x4dab70=_0x556760[_0x44cd1e(0x3a5)]-0x1,_0x13a685;_0x4dab70>=0x0;_0x4dab70--)(_0x13a685=_0x556760[_0x4dab70])&&(_0x12f80f=(_0x59c842?_0x13a685(_0x14ba51,_0x1eb632,_0x12f80f):_0x13a685(_0x12f80f))||_0x12f80f);return _0x59c842&&_0x12f80f&&ss(_0x14ba51,_0x1eb632,_0x12f80f),_0x12f80f;},oe=(_0x159e7d,_0x20944f)=>(_0x375f09,_0x5f072d)=>_0x20944f(_0x375f09,_0x5f072d,_0x159e7d);const Fe=a[_0x3a2165(0x9f)](_0x3a2165(0x26c));function rs(_0x2e0d4a,_0x24483f,_0x4e913e){const _0x35b93f=_0x3a2165;return _0x2e0d4a+'/'+_0x24483f+_0x35b93f(0x384)+_0x4e913e+_0x35b93f(0x14c);}exports['CollaborationSocketService']=class extends a[_0x3a2165(0x287)]{constructor(_0x45addf,_0x5e6063,_0x6f0d10,_0x1b7c9b,_0x41749f){const _0x2b61b7=_0x3a2165;super(),this['_http']=_0x45addf,this['_ws']=_0x5e6063,this[_0x2b61b7(0x105)]=_0x6f0d10,this[_0x2b61b7(0x42d)]=_0x1b7c9b,this[_0x2b61b7(0x192)]=_0x41749f;}['createSocket'](_0x11ba9f){const _0x41be86=_0x3a2165,_0x55ca57=this[_0x41be86(0x377)][_0x41be86(0x46d)](_0x11ba9f);if(!_0x55ca57)throw new Error(_0x41be86(0x40b));const _0x8fef3=new a['DisposableCollection'](),_0x158130=new v[(_0x41be86(0x28d))]();_0x8fef3[_0x41be86(0x2e5)](_0x55ca57[_0x41be86(0x13f)][_0x41be86(0x1ee)](_0x4bfcb4=>_0x158130[_0x41be86(0x2c6)](_0x4bfcb4))),_0x8fef3[_0x41be86(0x2e5)](a[_0x41be86(0x114)](()=>_0x158130[_0x41be86(0x41c)]()));const _0x367c7f=new v[(_0x41be86(0x28d))]();_0x8fef3[_0x41be86(0x2e5)](_0x55ca57['error$'][_0x41be86(0x1ee)](_0x31b7cf=>_0x367c7f['next'](_0x31b7cf))),_0x8fef3[_0x41be86(0x2e5)](a[_0x41be86(0x114)](()=>_0x367c7f[_0x41be86(0x41c)]()));const _0x40c145=new v[(_0x41be86(0x28d))]();_0x8fef3[_0x41be86(0x2e5)](_0x55ca57[_0x41be86(0x18e)][_0x41be86(0x1ee)](_0x517ea1=>{const _0x25b53c=_0x41be86,_0x4c7e6f=Ct(_0x517ea1);_0x40c145[_0x25b53c(0x2c6)](_0x4c7e6f);})),_0x8fef3['add'](a['toDisposable'](()=>_0x40c145[_0x41be86(0x41c)]()));let _0x4f5067;const _0x288896=()=>{const _0x414d00=_0x41be86;_0x367c7f[_0x414d00(0x2c6)](new Event(_0x414d00(0x48b))),_0x158130[_0x414d00(0x2c6)](new CloseEvent(_0x414d00(0x48b))),_0x4f5067[_0x414d00(0x453)]();};return _0x4f5067={'memberID':'','close$':_0x158130[_0x41be86(0xfd)](),'error$':_0x367c7f['asObservable'](),'open$':_0x55ca57[_0x41be86(0x3f2)],'message$':_0x40c145['asObservable'](),'send':_0x373f77=>{const _0x1a66b3=_0x41be86;if(_0x373f77[_0x1a66b3(0x28f)]===b[_0x1a66b3(0x334)]){if(_0x373f77[_0x1a66b3(0x124)]['eventID']===_['CollaborationEvent'][_0x1a66b3(0xc1)]){this[_0x1a66b3(0x3a2)](_0x4f5067,_0x373f77[_0x1a66b3(0x124)])[_0x1a66b3(0x45d)](_0x46e57d=>{const _0x2ad0a9=_0x1a66b3;this[_0x2ad0a9(0x42d)][_0x2ad0a9(0x442)](_0x46e57d),_0x288896();});return;}if(_0x373f77[_0x1a66b3(0x124)][_0x1a66b3(0x217)]===_[_0x1a66b3(0x39b)]['FETCH_MISSING']){const _0x208d73=_0x373f77[_0x1a66b3(0x124)];this[_0x1a66b3(0x159)](_0x208d73)[_0x1a66b3(0xe7)](_0x5c21d3=>{const _0x264121=_0x1a66b3;_0x40c145[_0x264121(0x2c6)]({'cmd':b['RECV'],'code':We['OK'],'routeKey':_0x208d73[_0x264121(0x124)][_0x264121(0x438)],'routeType':'','data':{'eventID':_['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5c21d3}}});})[_0x1a66b3(0x45d)](_0x3c7849=>{const _0x1a0738=_0x1a66b3;this[_0x1a0738(0x42d)]['error'](_0x3c7849),_0x288896();});return;}}_0x55ca57[_0x1a66b3(0x27d)](Et(_0x373f77));},'close':()=>{const _0x43c3e9=_0x41be86;_0x55ca57['close'](),_0x8fef3[_0x43c3e9(0x491)]();}},_0x4f5067;}async['_submitChangeset'](_0x3663a1,_0x36bf48){const _0x2b0eae=_0x3a2165;var _0x1cb50c,_0x421e1c;const {unitType:_0x5e140f,unitID:_0x1d2982,changeset:_0x36787d}=_0x36bf48[_0x2b0eae(0x124)],_0x51073d={'unitID':_0x1d2982,'memberID':_0x3663a1[_0x2b0eae(0x12e)],'type':_0x5e140f,'changeset':_[_0x2b0eae(0x4a1)](_0x36787d)},_0x40181e=this['_configService'][_0x2b0eae(0x347)](gt),_0xc786a1=this[_0x2b0eae(0x105)][_0x2b0eae(0x347)](A),_0x896d7c=rs((_0x421e1c=(_0x1cb50c=_0xc786a1==null?void 0x0:_0xc786a1[_0x2b0eae(0x3ed)])!=null?_0x1cb50c:_0x40181e)!=null?_0x421e1c:Qt,_0x5e140f,_0x1d2982);try{await this[_0x2b0eae(0x3df)][_0x2b0eae(0x468)](_0x896d7c,{'body':_0x51073d});}catch(_0x39eb8a){throw this[_0x2b0eae(0x42d)]['error'](_0x2b0eae(0x254),_0x2b0eae(0x478)),_0x39eb8a;}}async[_0x3a2165(0x159)](_0x4bb003){const _0xc0f60e=_0x3a2165,{unitID:_0x12274f,from:_0x290477,to:_0x48ff68,unitType:_0x5b8a3c}=_0x4bb003[_0xc0f60e(0x124)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x12274f,'type':_0x5b8a3c,'from':_0x290477,'to':_0x48ff68}))['changesets'];}},exports[_0x3a2165(0x106)]=ns([oe(0x0,a[_0x3a2165(0x426)](P['HTTPService'])),oe(0x1,a[_0x3a2165(0x426)](P['WebSocketService'])),oe(0x2,a[_0x3a2165(0xd1)]),oe(0x3,a['ILogService']),oe(0x4,_[_0x3a2165(0x3f6)])],exports[_0x3a2165(0x106)]);const os=_0x3a2165(0x400);function as(_0x13ac07){const _0x16e2f4=_0x3a2165;return JSON[_0x16e2f4(0x3a6)](_0x13ac07)[_0x16e2f4(0x3a5)];}class Ge{constructor(){const _0x10383c=_0x3a2165;d(this,_0x10383c(0x2a3),new v['Subject']()),d(this,_0x10383c(0x9d),this['_commentUpdate$'][_0x10383c(0xfd)]());}['onCommentUpdate'](_0x2aac1d){const _0x45630f=_0x3a2165;this[_0x45630f(0x2a3)][_0x45630f(0x2c6)](_0x2aac1d);}}var cs=Object[_0x3a2165(0x1e2)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x153b44,_0xd5777f,_0x9c09d4,_0x49732e)=>{const _0x34d4ad=_0x3a2165;for(var _0x2e42f2=_0x49732e>0x1?void 0x0:_0x49732e?ls(_0xd5777f,_0x9c09d4):_0xd5777f,_0x190847=_0x153b44[_0x34d4ad(0x3a5)]-0x1,_0x4ef504;_0x190847>=0x0;_0x190847--)(_0x4ef504=_0x153b44[_0x190847])&&(_0x2e42f2=(_0x49732e?_0x4ef504(_0xd5777f,_0x9c09d4,_0x2e42f2):_0x4ef504(_0x2e42f2))||_0x2e42f2);return _0x49732e&&_0x2e42f2&&cs(_0xd5777f,_0x9c09d4,_0x2e42f2),_0x2e42f2;},Ze=(_0x1b66bb,_0x3af97b)=>(_0x159782,_0xa86dff)=>_0x3af97b(_0x159782,_0xa86dff,_0x1b66bb);let q=class extends a[_0x3a2165(0x287)]{constructor(_0x11b56a,_0x3702a8){const _0x3cb432=_0x3a2165;super(),d(this,_0x3cb432(0x408),new Map()),(this[_0x3cb432(0x406)]=_0x11b56a,this['_userManagerService']=_0x3702a8,this[_0x3cb432(0x167)](a[_0x3cb432(0x114)](v['merge'](this[_0x3cb432(0x406)][_0x3cb432(0x30f)](a[_0x3cb432(0x461)][_0x3cb432(0x21f)])[_0x3cb432(0x447)](E[_0x3cb432(0x331)](_0x3287c3=>_0x3287c3[_0x3cb432(0x3ae)]())),this[_0x3cb432(0x406)][_0x3cb432(0x30f)](a[_0x3cb432(0x461)][_0x3cb432(0x34e)])[_0x3cb432(0x447)](E[_0x3cb432(0x331)](_0x5686b0=>_0x5686b0[_0x3cb432(0x3ae)]())),this['_univerInstanceService'][_0x3cb432(0x30f)](a[_0x3cb432(0x461)]['UNIVER_SLIDE'])['pipe'](E[_0x3cb432(0x331)](_0x53150e=>_0x53150e[_0x3cb432(0x3ae)]())))[_0x3cb432(0x1ee)](_0x3f547a=>this[_0x3cb432(0x403)](_0x3f547a)))));}[_0x3a2165(0x298)](_0x596787){const _0x12c629=_0x3a2165;this[_0x12c629(0x20d)][_0x12c629(0x298)](_0x596787);}[_0x3a2165(0x42a)](){const _0x19b6d6=_0x3a2165;return this[_0x19b6d6(0x20d)]['getCurrentUser']();}['updateMember'](_0x3117ec,_0x2f23ca){const _0x1a08b5=_0x3a2165;let _0x55dc16=this[_0x1a08b5(0x408)][_0x1a08b5(0x305)](_0x3117ec);_0x55dc16||(_0x55dc16=new _s(),this[_0x1a08b5(0x408)][_0x1a08b5(0x194)](_0x3117ec,_0x55dc16)),_0x55dc16[_0x1a08b5(0x49a)](_0x2f23ca);}[_0x3a2165(0x32f)](_0x4c8cca,_0x4ff81f){const _0x40e5c2=_0x3a2165,_0x4675e9=this[_0x40e5c2(0x408)][_0x40e5c2(0x305)](_0x4c8cca);_0x4675e9&&_0x4675e9[_0x40e5c2(0x32f)](_0x4ff81f);}['getRoom'](_0x2777c9){const _0x5e4f73=_0x3a2165;return this[_0x5e4f73(0x408)][_0x5e4f73(0x305)](_0x2777c9);}[_0x3a2165(0x3c4)](_0x46a56e,_0x5d4303){const _0xc16e63=_0x3a2165,_0x25fcc3=this[_0xc16e63(0x408)][_0xc16e63(0x305)](_0x46a56e);if(_0x25fcc3)return _0x25fcc3[_0xc16e63(0x3c4)](_0x5d4303);}[_0x3a2165(0x403)](_0x1936e4){const _0x19934c=_0x3a2165,_0x3f197a=this[_0x19934c(0x408)]['get'](_0x1936e4);_0x3f197a&&(_0x3f197a[_0x19934c(0x491)](),this[_0x19934c(0x408)]['delete'](_0x1936e4));}['dispose'](){const _0x105e59=_0x3a2165;this[_0x105e59(0x408)]['forEach'](_0x10224b=>_0x10224b['dispose']()),this[_0x105e59(0x408)][_0x105e59(0x3cc)]();}};q=hs([Ze(0x0,a[_0x3a2165(0x137)]),Ze(0x1,a['Inject'](a[_0x3a2165(0x2ba)]))],q);class _s extends a[_0x3a2165(0x287)]{constructor(){const _0x47fe22=_0x3a2165;super(...arguments),d(this,_0x47fe22(0x19c),new Map());}[_0x3a2165(0x491)](){const _0x222d9e=_0x3a2165;this[_0x222d9e(0x19c)]['clear']();}[_0x3a2165(0x49a)](_0xa5f80e){const _0x4d114f=_0x3a2165;this[_0x4d114f(0x19c)]['set'](_0xa5f80e[_0x4d114f(0x12e)],_0xa5f80e);}[_0x3a2165(0x32f)](_0x43275f){const _0x2a70c2=_0x3a2165;this[_0x2a70c2(0x19c)]['delete'](_0x43275f);}[_0x3a2165(0x3c4)](_0x2dffdd){const _0x5e0c38=_0x3a2165;return this[_0x5e0c38(0x19c)]['get'](_0x2dffdd);}}var us=Object[_0x3a2165(0x1e2)],ds=Object[_0x3a2165(0x383)],Ss=(_0x300953,_0x5da1e0,_0x9a96ac,_0x30741a)=>{const _0xb7331c=_0x3a2165;for(var _0x423e9f=_0x30741a>0x1?void 0x0:_0x30741a?ds(_0x5da1e0,_0x9a96ac):_0x5da1e0,_0x4a23d4=_0x300953[_0xb7331c(0x3a5)]-0x1,_0x1eb942;_0x4a23d4>=0x0;_0x4a23d4--)(_0x1eb942=_0x300953[_0x4a23d4])&&(_0x423e9f=(_0x30741a?_0x1eb942(_0x5da1e0,_0x9a96ac,_0x423e9f):_0x1eb942(_0x423e9f))||_0x423e9f);return _0x30741a&&_0x423e9f&&us(_0x5da1e0,_0x9a96ac,_0x423e9f),_0x423e9f;},B=(_0x525187,_0x3049b6)=>(_0x467e60,_0x1d22cc)=>_0x3049b6(_0x467e60,_0x1d22cc,_0x525187),$=(_0x52155e=>(_0x52155e[_0x52155e[_0x3a2165(0x3e8)]=0x0]='IDLE',_0x52155e[_0x52155e[_0x3a2165(0x183)]=0x1]=_0x3a2165(0x183),_0x52155e[_0x52155e[_0x3a2165(0x299)]=0x2]=_0x3a2165(0x299),_0x52155e[_0x52155e[_0x3a2165(0x1ae)]=0x3]=_0x3a2165(0x1ae),_0x52155e))($||{});exports[_0x3a2165(0x180)]=class extends a[_0x3a2165(0x441)]{constructor(_0x1a631f,_0x16d918,_0x368126,_0x128978,_0x5c112c,_0x21806b,_0x345816,_0x51ae7a,_0x55ec15,_0x54a76f){const _0x2fe09f=_0x3a2165;super(),d(this,_0x2fe09f(0x1a3),new v[(_0x2fe09f(0x2f5))](0x0)),d(this,_0x2fe09f(0x1df),this[_0x2fe09f(0x1a3)][_0x2fe09f(0xfd)]()),d(this,_0x2fe09f(0x1fb),new v[(_0x2fe09f(0x28d))]()),d(this,'event$',this[_0x2fe09f(0x1fb)][_0x2fe09f(0xfd)]()),d(this,_0x2fe09f(0x412)),d(this,_0x2fe09f(0xfb)),d(this,'_collaborationTimeoutTimer'),d(this,'_shouldReportTelemetry',!0x1),d(this,_0x2fe09f(0x25f),null),(this['_unitID']=_0x1a631f,this['_logService']=_0x368126,this[_0x2fe09f(0x341)]=_0x128978,this['_messageService']=_0x5c112c,this['_configService']=_0x21806b,this[_0x2fe09f(0x1d6)]=_0x345816,this[_0x2fe09f(0x2c3)]=_0x51ae7a,this['_commentService']=_0x55ec15,this[_0x2fe09f(0x2ac)]=_0x54a76f,this[_0x2fe09f(0x1ea)]=!!this['_telemetryService'],_0x16d918['pipe'](v[_0x2fe09f(0x27a)](this['dispose$']))[_0x2fe09f(0x1ee)](_0x15394e=>{const _0x501a5e=_0x2fe09f;var _0x120ae8;typeof _0x15394e>'u'||(this[_0x501a5e(0x412)]=_0x15394e,_0x15394e?(this[_0x501a5e(0x3cd)](_0x15394e),this[_0x501a5e(0xfb)]=_0x15394e[_0x501a5e(0x18e)][_0x501a5e(0x1ee)](_0x637c47=>{const _0x53a6d2=_0x501a5e;_0x637c47[_0x53a6d2(0x4b1)]===this['_unitID']&&this[_0x53a6d2(0x17f)](_0x637c47);})):(this[_0x501a5e(0x2a5)](),this['_sessionStatus$'][_0x501a5e(0x2c6)](0x2),(_0x120ae8=this[_0x501a5e(0xfb)])==null||_0x120ae8['unsubscribe'](),this[_0x501a5e(0xfb)]=null));}),this[_0x2fe09f(0x167)](this[_0x2fe09f(0x341)][_0x2fe09f(0x127)](()=>{const _0x4bead8=_0x2fe09f;var _0x13d099;(_0x13d099=this[_0x4bead8(0x412)])==null||_0x13d099['send']({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x3a2165(0x1a7)](){const _0x25999b=_0x3a2165;return this[_0x25999b(0x1a3)][_0x25999b(0x3bf)]();}[_0x3a2165(0x446)](){const _0x1de0d5=_0x3a2165;var _0x2c6d7d,_0x6d62e0;return(_0x6d62e0=(_0x2c6d7d=this['_socket'])==null?void 0x0:_0x2c6d7d[_0x1de0d5(0x12e)])!=null?_0x6d62e0:null;}[_0x3a2165(0x491)](){const _0x3d4087=_0x3a2165;super[_0x3d4087(0x491)](),this['dispose$'][_0x3d4087(0x2c6)](),this['dispose$']['complete']();}[_0x3a2165(0x453)](){const _0x8feb0e=_0x3a2165;var _0xa7acc1,_0x1f173a;this[_0x8feb0e(0x2a5)](),(_0xa7acc1=this['_socket'])==null||_0xa7acc1[_0x8feb0e(0x27d)]({'cmd':b[_0x8feb0e(0x108)],'data':{'roomID':this[_0x8feb0e(0xfe)]}}),(_0x1f173a=this[_0x8feb0e(0x412)])==null||_0x1f173a['close'](),this[_0x8feb0e(0x1fb)][_0x8feb0e(0x41c)](),this[_0x8feb0e(0x1a3)]['complete'](),this['dispose']();}['_onCombEvent'](_0x3d4c7c){const _0x59a221=_0x3a2165;_0x3d4c7c['cmd']===b[_0x59a221(0x44a)]?this[_0x59a221(0x401)](_0x3d4c7c):_0x3d4c7c[_0x59a221(0x28f)]===b[_0x59a221(0x4a6)]&&this[_0x59a221(0x4b3)](_0x3d4c7c);}[_0x3a2165(0x3cd)](_0x53502e){const _0x1bb7a8=_0x3a2165;this[_0x1bb7a8(0x1a3)]['next'](0x1),_0x53502e[_0x1bb7a8(0x27d)]({'cmd':b[_0x1bb7a8(0x44a)],'routeKey':this[_0x1bb7a8(0xfe)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1bb7a8(0xfe)]}]}});}[_0x3a2165(0x401)](_0x4dabb5){const _0x37b297=_0x3a2165;var _0x123a9b;if(_0x4dabb5[_0x37b297(0x2f2)]===We[_0x37b297(0x432)]){this['_messageService'][_0x37b297(0x113)]({'type':X[_0x37b297(0x388)]['Warning'],'content':this[_0x37b297(0x1d6)]['t'](_0x37b297(0x100))}),this['_sessionStatus$'][_0x37b297(0x2c6)](0x2);return;}this[_0x37b297(0x1a3)][_0x37b297(0x2c6)](0x3);const _0x110fdb=(_0x123a9b=_0x4dabb5['data'][_0x37b297(0x471)][this['_unitID']])==null?void 0x0:_0x123a9b[_0x37b297(0xf7)];_0x110fdb&&_0x110fdb[_0x37b297(0x337)](_0x48c2c7=>this[_0x37b297(0x2c3)][_0x37b297(0x49a)](this['_unitID'],_0x48c2c7));}[_0x3a2165(0x4b3)](_0x1bf2b3){const _0x36774a=_0x3a2165;try{const _0x40e9d6=_0x1bf2b3['data'];switch(_0x40e9d6[_0x36774a(0x217)]){case _[_0x36774a(0x39b)][_0x36774a(0x35e)]:this[_0x36774a(0x210)](_0x40e9d6),this[_0x36774a(0x1fb)]['next'](_0x40e9d6);break;case _[_0x36774a(0x39b)]['USERS_LEAVE']:this[_0x36774a(0x3fe)](_0x40e9d6),this[_0x36774a(0x1fb)]['next'](_0x40e9d6);break;case _['CollaborationEvent']['CHANGESET_ACK']:this[_0x36774a(0x379)](),this['_clearCollaborationTimeoutTimer'](),this[_0x36774a(0x1fb)][_0x36774a(0x2c6)](_0x40e9d6);break;case _[_0x36774a(0x39b)]['MSG_FOR_ERROR']:this[_0x36774a(0x42d)][_0x36774a(0x442)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x36774a(0x3a6)](_0x40e9d6)),this['_event$']['next'](_0x40e9d6);break;case _[_0x36774a(0x39b)][_0x36774a(0x14f)]:this[_0x36774a(0x30e)][_0x36774a(0x218)](_0x40e9d6[_0x36774a(0x124)]),this['_event$'][_0x36774a(0x2c6)](_0x40e9d6);break;default:this[_0x36774a(0x1fb)]['next'](_0x40e9d6);}}catch(_0x2b0965){this[_0x36774a(0x42d)]['error'](_0x2b0965,_0x1bf2b3);}}[_0x3a2165(0x210)](_0x2d3938){const _0xd482fe=_0x3a2165;this[_0xd482fe(0x2c3)][_0xd482fe(0x49a)](this[_0xd482fe(0xfe)],_0x2d3938['data']);}['_onUserLeave'](_0x54fe1a){const _0x432ea7=_0x3a2165;this[_0x432ea7(0x2c3)][_0x432ea7(0x32f)](this[_0x432ea7(0xfe)],_0x54fe1a[_0x432ea7(0x124)][_0x432ea7(0x12e)]);}async[_0x3a2165(0x27d)](_0x38a1df,_0x2a4b79){const _0x39228e=_0x3a2165;if(this[_0x39228e(0x1a7)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x38a1df['eventID']===_['CollaborationEvent'][_0x39228e(0xc1)]&&(this[_0x39228e(0x46c)](),this[_0x39228e(0x14a)](_0x38a1df)),this[_0x39228e(0x412)][_0x39228e(0x27d)]({'cmd':b[_0x39228e(0x334)],'routeKey':_0x2a4b79,'routeType':'','data':_0x38a1df});}catch(_0x5ecbf7){this['_logService']['error'](_0x5ecbf7);}}[_0x3a2165(0x46c)](){const _0x286c2d=_0x3a2165;var _0x1bc543;this[_0x286c2d(0x220)]=window[_0x286c2d(0x25c)](()=>{const _0x11e489=_0x286c2d;this[_0x11e489(0x220)]=null,this[_0x11e489(0x2bb)]['show']({'type':X[_0x11e489(0x388)][_0x11e489(0x104)],'content':this['_localeService']['t'](_0x11e489(0xa1))});},(_0x1bc543=this[_0x286c2d(0x105)][_0x286c2d(0x347)](Ve))!=null?_0x1bc543:St);}[_0x3a2165(0x262)](){const _0x5757f8=_0x3a2165;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5757f8(0x220)]),this[_0x5757f8(0x220)]=null);}[_0x3a2165(0x14a)](_0x22c178){if(!this['_shouldReportTelemetry'])return;const {data:_0x6e8918}=_0x22c178,{unitID:_0x53157f,changeset:_0x59b79d}=_0x6e8918,{mutations:_0x241654,type:_0x1da18a}=_0x59b79d;this['_telemetryInfo']={'unitId':_0x53157f,'type':_0x1da18a,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':as(_0x241654)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x119ee2=_0x3a2165;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x119ee2(0x42d)]['error'](_0x119ee2(0x254),_0x119ee2(0x2ed));return;}this['_telemetryInfo'][_0x119ee2(0xf0)]=performance[_0x119ee2(0x445)](),this[_0x119ee2(0x25f)]['duration']=this[_0x119ee2(0x25f)][_0x119ee2(0xf0)]-this['_telemetryInfo'][_0x119ee2(0x425)],this[_0x119ee2(0x2ac)]['capture'](os,this[_0x119ee2(0x25f)]),this[_0x119ee2(0x25f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}},exports['CollaborationSession']=Ss([B(0x2,a['ILogService']),B(0x3,N['IBeforeCloseService']),B(0x4,N['IMessageService']),B(0x5,a[_0x3a2165(0xd1)]),B(0x6,a[_0x3a2165(0x426)](a['LocaleService'])),B(0x7,a[_0x3a2165(0x426)](q)),B(0x8,a[_0x3a2165(0x426)](Ge)),B(0x9,a[_0x3a2165(0x4b6)](Vt[_0x3a2165(0x2b9)]))],exports[_0x3a2165(0x180)]);var vs=Object[_0x3a2165(0x1e2)],fs=Object[_0x3a2165(0x383)],gs=(_0x2415ae,_0x4ee83e,_0x413de9,_0x5f4904)=>{const _0x28f962=_0x3a2165;for(var _0x1e0ead=_0x5f4904>0x1?void 0x0:_0x5f4904?fs(_0x4ee83e,_0x413de9):_0x4ee83e,_0x25cb45=_0x2415ae[_0x28f962(0x3a5)]-0x1,_0x771440;_0x25cb45>=0x0;_0x25cb45--)(_0x771440=_0x2415ae[_0x25cb45])&&(_0x1e0ead=(_0x5f4904?_0x771440(_0x4ee83e,_0x413de9,_0x1e0ead):_0x771440(_0x1e0ead))||_0x1e0ead);return _0x5f4904&&_0x1e0ead&&vs(_0x4ee83e,_0x413de9,_0x1e0ead),_0x1e0ead;},Z=(_0x3a2ee0,_0x42c3db)=>(_0x403ec5,_0x4f4358)=>_0x42c3db(_0x403ec5,_0x4f4358,_0x3a2ee0);exports[_0x3a2165(0x16c)]=class extends a[_0x3a2165(0x287)]{constructor(_0x476462,_0x511761,_0x36598e,_0x323bc2,_0x53cb0e,_0x51f4b1){const _0x1c9fd9=_0x3a2165;super(),d(this,_0x1c9fd9(0x157),new v['BehaviorSubject'](void 0x0)),d(this,_0x1c9fd9(0x2a1),this[_0x1c9fd9(0x157)][_0x1c9fd9(0xfd)]()),d(this,_0x1c9fd9(0x3ea),null),d(this,'_sessions',new Map()),d(this,_0x1c9fd9(0x37b),new v[(_0x1c9fd9(0x2f5))]($[_0x1c9fd9(0x3e8)])),d(this,_0x1c9fd9(0x3fb),this[_0x1c9fd9(0x37b)][_0x1c9fd9(0xfd)]()),d(this,_0x1c9fd9(0x2e7),!0x1),d(this,'_retryConnectingTimer'),d(this,'_retryCount',0x0),d(this,'_sendHeartbeatTimer'),d(this,_0x1c9fd9(0x356)),(this[_0x1c9fd9(0x3be)]=_0x476462,this[_0x1c9fd9(0x1d6)]=_0x511761,this[_0x1c9fd9(0x2bb)]=_0x36598e,this['_logService']=_0x323bc2,this[_0x1c9fd9(0x105)]=_0x53cb0e,this['_socketService']=_0x51f4b1,this['_initEventListeners']());}get[_0x3a2165(0x412)](){const _0x2cf177=_0x3a2165;return this['_socket$'][_0x2cf177(0x3bf)]();}[_0x3a2165(0x266)](){const _0x2f340b=_0x3a2165;this[_0x2f340b(0x41d)](),this['_listenToOnlineEvent']();}[_0x3a2165(0x491)](){const _0x2b3598=_0x3a2165;super['dispose'](),this[_0x2b3598(0x189)][_0x2b3598(0x337)](_0x1d64f3=>_0x1d64f3['dispose']()),this[_0x2b3598(0x189)][_0x2b3598(0x3cc)](),this[_0x2b3598(0x37b)][_0x2b3598(0x41c)]();}async[_0x3a2165(0x41a)](_0x50b27f){const _0x4ccb05=_0x3a2165;if(this[_0x4ccb05(0x189)][_0x4ccb05(0x4ac)](_0x50b27f))return this[_0x4ccb05(0x189)][_0x4ccb05(0x305)](_0x50b27f);this[_0x4ccb05(0x1cd)]();const _0x5eb05b=this['_injector']['createInstance'](exports[_0x4ccb05(0x180)],_0x50b27f,this['_socket$'][_0x4ccb05(0xfd)]());return this['_sessions'][_0x4ccb05(0x194)](_0x50b27f,_0x5eb05b),_0x5eb05b;}[_0x3a2165(0xa8)](_0x283814){const _0x53d826=_0x3a2165;var _0x28d355;const _0x3a7b56=this[_0x53d826(0x189)]['get'](_0x283814);_0x3a7b56&&(this[_0x53d826(0x189)]['delete'](_0x283814),_0x3a7b56['close']()),this[_0x53d826(0x189)][_0x53d826(0x20e)]||(_0x28d355=this[_0x53d826(0x412)])==null||_0x28d355['close']();}['reconnect'](){const _0x4a5278=_0x3a2165;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x4a5278(0x40f)]),this[_0x4a5278(0x40f)]=null),this[_0x4a5278(0x3c9)]();}[_0x3a2165(0x30a)](){const _0xf75f75=_0x3a2165;var _0x22c086,_0x7e695d;const _0x20dab8=this[_0xf75f75(0x105)][_0xf75f75(0x347)](ut),_0x57103f=this[_0xf75f75(0x105)][_0xf75f75(0x347)](A),_0x5db0cb=(_0x7e695d=(_0x22c086=_0x57103f==null?void 0x0:_0x57103f[_0xf75f75(0x25d)])!=null?_0x22c086:_0x20dab8)!=null?_0x7e695d:Xt,_0x742348=this[_0xf75f75(0x1d0)][_0xf75f75(0x46d)](_0x5db0cb);return this[_0xf75f75(0x3ea)]=_0x742348,_0x742348;}[_0x3a2165(0x1cd)](){const _0x1c4aa6=_0x3a2165;var _0x5bf577,_0x454282;try{const _0x1fc8a2=(_0x454282=(_0x5bf577=this[_0x1c4aa6(0x412)])!=null?_0x5bf577:this['_candidateSocket'])!=null?_0x454282:this['_createSocket']();if(_0x1fc8a2){const _0x3e5a4a=_0x1fc8a2[_0x1c4aa6(0x27d)];_0x1fc8a2['send']=_0x563fe8=>(this[_0x1c4aa6(0x420)](),_0x3e5a4a[_0x1c4aa6(0x333)](_0x1fc8a2,[_0x563fe8])),_0x1fc8a2[_0x1c4aa6(0x18e)][_0x1c4aa6(0x1ee)](_0x3256b9=>this[_0x1c4aa6(0x2fc)](_0x1fc8a2,_0x3256b9)),_0x1fc8a2[_0x1c4aa6(0x26f)][_0x1c4aa6(0x447)](E['take'](0x1))[_0x1c4aa6(0x1ee)](_0x351e66=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x351e66)),_0x1fc8a2[_0x1c4aa6(0x3f2)][_0x1c4aa6(0x447)](E['take'](0x1))[_0x1c4aa6(0x1ee)](()=>{this['_onConnectionOpen'](_0x1fc8a2);}),_0x1fc8a2['close$'][_0x1c4aa6(0x447)](E[_0x1c4aa6(0x449)](0x1))['subscribe'](_0x1ad662=>{const _0x2f26d0=_0x1c4aa6;this['_logService'][_0x2f26d0(0x3aa)](_0x2f26d0(0xa0),_0x2f26d0(0x464),_0x1ad662),this[_0x2f26d0(0x3c7)]();});}}catch(_0x3a21da){this[_0x1c4aa6(0x42d)][_0x1c4aa6(0x442)](_0x3a21da),this[_0x1c4aa6(0x3c7)]();}}[_0x3a2165(0x436)](_0x3036e7){const _0x594b7e=_0x3a2165;this['_logService']['debug'](_0x594b7e(0xa0),'socket\x20open.'),_0x3036e7[_0x594b7e(0x27d)]({'cmd':b['HELLO']}),this[_0x594b7e(0x420)]();}['_listenToOfflineEvent'](){const _0x17d21e=_0x3a2165;window[_0x17d21e(0x391)]('offline',()=>this['_onOffline']());}[_0x3a2165(0xb1)](){const _0x42cd8b=_0x3a2165;this[_0x42cd8b(0x2e7)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x42cd8b(0x2c6)]($[_0x42cd8b(0x299)]),this[_0x42cd8b(0x157)][_0x42cd8b(0x2c6)](null),this[_0x42cd8b(0x416)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x3dd8b2=_0x3a2165;var _0x2409e9;this[_0x3dd8b2(0xb1)](),this['_retryCount']<((_0x2409e9=this[_0x3dd8b2(0x105)]['getConfig'](vt))!=null?_0x2409e9:Jt)?(this[_0x3dd8b2(0x2bb)][_0x3dd8b2(0x113)]({'key':_0x3dd8b2(0x1c7),'type':X['MessageType']['Warning'],'content':this[_0x3dd8b2(0x1d6)]['t']('session.will-retry')}),this['_tryReconnect']()):this[_0x3dd8b2(0x2bb)][_0x3dd8b2(0x113)]({'key':_0x3dd8b2(0x1c7),'type':X['MessageType'][_0x3dd8b2(0x104)],'content':this[_0x3dd8b2(0x1d6)]['t'](_0x3dd8b2(0x302))});}['_listenToOnlineEvent'](){const _0x493c4b=_0x3a2165,_0x16ccc5=()=>{const _0x14e773=_0x4ca1;this[_0x14e773(0x412)]||this['reconnect']();},_0x4023ca=()=>{const _0x4ccdac=_0x4ca1;this[_0x4ccdac(0x412)]||document['visibilityState']==='hidden'||this['reconnect']();};window[_0x493c4b(0x391)](_0x493c4b(0x1b2),_0x16ccc5),document['addEventListener'](_0x493c4b(0x131),_0x4023ca);}[_0x3a2165(0x3c9)](){const _0x42ebe5=_0x3a2165;var _0x17d506;const _0x1c0f52=this[_0x42ebe5(0xd7)],_0x2d5514=this[_0x42ebe5(0x105)][_0x42ebe5(0x347)](A),_0x523cfd=_0x1c0f52===0x0?0x0:((_0x17d506=_0x2d5514==null?void 0x0:_0x2d5514[_0x42ebe5(0x1ac)])!=null?_0x17d506:zt)*0x2**_0x1c0f52;this['_retryConnectingTimer']=window[_0x42ebe5(0x25c)](()=>{const _0x52ac96=_0x42ebe5;clearTimeout(this['_retryConnectingTimer']),this[_0x52ac96(0x40f)]=null,this[_0x52ac96(0x1cd)]();},_0x523cfd),this[_0x42ebe5(0xd7)]+=0x1;}['_onMessage'](_0x31e57c,_0x293d33){const _0x3bf13f=_0x3a2165,{cmd:_0x68f1fb}=_0x293d33;_0x68f1fb===b['HELLO']&&!this[_0x3bf13f(0x2e7)]&&(_0x31e57c[_0x3bf13f(0x12e)]=_0x293d33['data']['memberID'],this['_socket$'][_0x3bf13f(0x2c6)](_0x31e57c),this['_status$'][_0x3bf13f(0x2c6)]($[_0x3bf13f(0x1ae)]),this[_0x3bf13f(0x2e7)]=!0x0,this[_0x3bf13f(0x3ea)]=null),_0x68f1fb===b[_0x3bf13f(0x2ff)]&&this[_0x3bf13f(0x416)](),this['_rescheduleHeartbeat']();}[_0x3a2165(0x420)](){const _0x32267d=_0x3a2165;var _0x28b73b;this[_0x32267d(0x410)](),this[_0x32267d(0x3b4)]=window[_0x32267d(0x25c)](()=>this[_0x32267d(0x394)](),(_0x28b73b=this[_0x32267d(0x105)][_0x32267d(0x347)](dt))!=null?_0x28b73b:qt);}[_0x3a2165(0x394)](){const _0x10cd62=_0x3a2165;this[_0x10cd62(0x412)][_0x10cd62(0x27d)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x3a2165(0x17d)](){const _0x4b2cca=_0x3a2165;var _0x2a90a6;this[_0x4b2cca(0x356)]=window[_0x4b2cca(0x25c)](()=>this[_0x4b2cca(0x3c7)](),(_0x2a90a6=this['_configService'][_0x4b2cca(0x347)](Ve))!=null?_0x2a90a6:St);}[_0x3a2165(0x410)](){const _0x44e49b=_0x3a2165;this[_0x44e49b(0x3b4)]!=null&&(clearTimeout(this[_0x44e49b(0x3b4)]),this[_0x44e49b(0x3b4)]=null);}[_0x3a2165(0x416)](){const _0x30c5f8=_0x3a2165;this[_0x30c5f8(0x356)]!=null&&(clearTimeout(this[_0x30c5f8(0x356)]),this[_0x30c5f8(0x356)]=null);}},exports[_0x3a2165(0x16c)]=gs([Z(0x0,a['Inject'](a[_0x3a2165(0x3b0)])),Z(0x1,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x3a2165(0x490)]),Z(0x4,a[_0x3a2165(0xd1)]),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0x3a2165(0x1e2)],Is=Object[_0x3a2165(0x383)],ps=(_0x40ed89,_0x3428e0,_0x6f9317,_0x4682ed)=>{const _0x2b5cb3=_0x3a2165;for(var _0x218e7c=_0x4682ed>0x1?void 0x0:_0x4682ed?Is(_0x3428e0,_0x6f9317):_0x3428e0,_0x37e570=_0x40ed89[_0x2b5cb3(0x3a5)]-0x1,_0x434ed2;_0x37e570>=0x0;_0x37e570--)(_0x434ed2=_0x40ed89[_0x37e570])&&(_0x218e7c=(_0x4682ed?_0x434ed2(_0x3428e0,_0x6f9317,_0x218e7c):_0x434ed2(_0x218e7c))||_0x218e7c);return _0x4682ed&&_0x218e7c&&ms(_0x3428e0,_0x6f9317,_0x218e7c),_0x218e7c;},De=(_0x425e21,_0x37ece2)=>(_0x31ebda,_0x20a17b)=>_0x37ece2(_0x31ebda,_0x20a17b,_0x425e21);let fe=class{constructor(_0xce1ecd,_0x43c2f4,_0x4536fe){const _0x5582b3=_0x3a2165;this['_injector']=_0xce1ecd,this[_0x5582b3(0x316)]=_0x43c2f4,this['_renderManagerService']=_0x4536fe;}[_0x3a2165(0x107)](_0x5ef986){const _0x4346d7=_0x3a2165;this[_0x4346d7(0x328)](_0x5ef986),this[_0x4346d7(0x39c)](_0x5ef986);}['transformRemoteChangeset'](_0x1dc880){const _0x414440=_0x3a2165,{unitID:_0x1eef79}=_0x1dc880,_0x3a967d=this[_0x414440(0x417)][_0x414440(0x2aa)](_0x1eef79)[_0x414440(0x2db)](w[_0x414440(0x3dd)]),{redoCache:_0x481770}=_0x3a967d[_0x414440(0x373)]();if(_0x481770[_0x414440(0x3a5)]===0x0)return _0x1dc880;let _0x409745=a[_0x414440(0x483)][_0x414440(0x204)](_0x1dc880[_0x414440(0x31e)][0x0]);for(let _0x41e843=0x0;_0x41e843<_0x481770['length'];_0x41e843++){const _0x1c01e9={'id':_0x414440(0x132),'params':{..._0x481770[_0x41e843]}},_0x3a41b6=this[_0x414440(0x316)][_0x414440(0x43a)](_0x409745,_0x1c01e9,!0x1);if(_[_0x414440(0x45c)](_0x3a41b6))throw _0x3a41b6[_0x414440(0x442)];_0x409745=_0x3a41b6[_0x414440(0x231)];}return{...a[_0x414440(0x483)][_0x414440(0x204)](_0x1dc880),'mutations':[_0x409745]};}[_0x3a2165(0x328)](_0x139329){const _0x22ab1c=_0x3a2165,{unitID:_0x57bacc}=_0x139329,_0x47936b=this[_0x22ab1c(0x417)]['getRenderById'](_0x57bacc)[_0x22ab1c(0x2db)](w[_0x22ab1c(0x3dd)]),{undoCache:_0x42db13,redoCache:_0x32eea2}=_0x47936b[_0x22ab1c(0x373)]();if(_0x42db13['length']===0x0||_0x32eea2[_0x22ab1c(0x3a5)]===0x0)return;const _0x5023fd=[],_0x56e4ee=[];let _0x53df6b=a[_0x22ab1c(0x483)][_0x22ab1c(0x204)](_0x139329[_0x22ab1c(0x31e)][0x0]),_0x20dc60=a[_0x22ab1c(0x483)][_0x22ab1c(0x204)](_0x139329[_0x22ab1c(0x31e)][0x0]);for(let _0x4852d7=_0x42db13[_0x22ab1c(0x3a5)]-0x1;_0x4852d7>=0x0;_0x4852d7--){const _0x49d6b0={'id':_0x22ab1c(0x132),'params':{..._0x42db13[_0x4852d7]}},_0x35674d={'id':_0x22ab1c(0x132),'params':{..._0x32eea2[_0x4852d7]}},_0x599226=this[_0x22ab1c(0x316)][_0x22ab1c(0x43a)](_0x53df6b,_0x49d6b0,!0x1),_0x3b27a4=this['_transformService'][_0x22ab1c(0x43a)](_0x20dc60,_0x35674d,!0x1);if(_[_0x22ab1c(0x45c)](_0x599226))throw _0x599226['error'];if(_[_0x22ab1c(0x45c)](_0x3b27a4))throw _0x3b27a4['error'];_0x5023fd[_0x22ab1c(0xda)](_0x599226[_0x22ab1c(0x390)][_0x22ab1c(0x101)]),_0x56e4ee[_0x22ab1c(0xda)](_0x3b27a4[_0x22ab1c(0x390)][_0x22ab1c(0x101)]),_0x53df6b=_0x599226['m1Prime'],_0x20dc60=_0x3b27a4['m1Prime'];}_0x47936b[_0x22ab1c(0x1a8)]({'undoCache':_0x5023fd,'redoCache':_0x56e4ee});}['_transformPreviousActiveRange'](_0xd583cf){const _0xee2bfb=_0x3a2165,{unitID:_0x3e9469}=_0xd583cf,_0x5ef86c=this[_0xee2bfb(0x417)][_0xee2bfb(0x2aa)](_0x3e9469)[_0xee2bfb(0x2db)](w[_0xee2bfb(0x3dd)]),_0x67910a=_0x5ef86c[_0xee2bfb(0x34c)]();if(_0x67910a==null)return;const _0x2b2573=[{'id':_0xee2bfb(0x132),'params':{'unitId':_0xd583cf[_0xee2bfb(0x438)],'actions':null,'textRanges':[_0x67910a]}}],_0x244797=this['_transformService'][_0xee2bfb(0xf5)](_0xd583cf,_0x2b2573);if(!_[_0xee2bfb(0x16b)](_0x244797))throw _0x244797[_0xee2bfb(0x442)];const _0x10b86c=_0x244797[_0xee2bfb(0x390)][0x0][_0xee2bfb(0x101)]['textRanges'];Array[_0xee2bfb(0x203)](_0x10b86c)&&_0x10b86c[_0xee2bfb(0x3a5)]&&_0x5ef86c[_0xee2bfb(0x116)](_0x10b86c[0x0]);}};fe=ps([De(0x0,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),De(0x1,_[_0x3a2165(0xc6)]),De(0x2,R['IRenderManagerService'])],fe);var Cs=Object[_0x3a2165(0x1e2)],Es=Object['getOwnPropertyDescriptor'],bs=(_0x10a163,_0x4740f8,_0x3afc27,_0xa30897)=>{for(var _0x2fc41f=_0xa30897>0x1?void 0x0:_0xa30897?Es(_0x4740f8,_0x3afc27):_0x4740f8,_0x198879=_0x10a163['length']-0x1,_0x38f30f;_0x198879>=0x0;_0x198879--)(_0x38f30f=_0x10a163[_0x198879])&&(_0x2fc41f=(_0xa30897?_0x38f30f(_0x4740f8,_0x3afc27,_0x2fc41f):_0x38f30f(_0x2fc41f))||_0x2fc41f);return _0xa30897&&_0x2fc41f&&Cs(_0x4740f8,_0x3afc27,_0x2fc41f),_0x2fc41f;},ae=(_0x3d42e5,_0x41d291)=>(_0x368fe1,_0x20e283)=>_0x41d291(_0x368fe1,_0x20e283,_0x3d42e5);exports[_0x3a2165(0x30d)]=class extends a['Disposable']{constructor(_0xedf4f,_0x24eed9,_0x1b62fe,_0x1910c7,_0x34dcf8){const _0x542ac7=_0x3a2165;super(),d(this,_0x542ac7(0xab),new Map()),d(this,_0x542ac7(0x2bd),new Map()),d(this,_0x542ac7(0x4a8),!0x1),(this['_configService']=_0xedf4f,this[_0x542ac7(0x45e)]=_0x24eed9,this[_0x542ac7(0x341)]=_0x1b62fe,this[_0x542ac7(0x1d6)]=_0x1910c7,this['_revisionService']=_0x34dcf8,this[_0x542ac7(0x11f)]());}[_0x3a2165(0x1b7)](){const _0x1772fb=_0x3a2165;this[_0x1772fb(0x4a8)]=!0x0;}[_0x3a2165(0x3bc)](){const _0x51f3cb=_0x3a2165;this[_0x51f3cb(0x4a8)]=!0x1;}[_0x3a2165(0x491)](){const _0x59a407=_0x3a2165;this[_0x59a407(0x177)]()[_0x59a407(0xe7)](()=>super[_0x59a407(0x491)]());}async[_0x3a2165(0x152)](_0x3e19a7){const _0x4b12b2=_0x3a2165;return this[_0x4b12b2(0x4a8)]?null:this[_0x4b12b2(0x45e)][_0x4b12b2(0x1dc)](Qe(_0x3e19a7));}async['saveOfflineData'](_0x23fb5d,_0x188066){const _0x19f01a=_0x3a2165;return!!this['_localStorageService'][_0x19f01a(0x3e0)](_0x23fb5d,_0x188066);}[_0x3a2165(0x200)](_0x25ceff,_0x2affb1,_0x2169ce,_0xde052e){const _0x4eddc5=_0x3a2165,_0x52efd4=this[_0x4eddc5(0x2d0)]['getCurrentRevOfUnit'](_0x25ceff);this['_cachedData'][_0x4eddc5(0x194)](_0x25ceff,{'unitID':_0x25ceff,'type':_0x2affb1,'awaitingChangeset':_0x2169ce,'mutations':_0xde052e,'rev':_0x52efd4}),this[_0x4eddc5(0x2bd)]['has'](_0x25ceff)||this[_0x4eddc5(0xcf)](_0x25ceff);}['_scheduleSaving'](_0x13aeb7){const _0x5751a8=_0x3a2165,_0x396b3e=this[_0x5751a8(0x2a2)]();_0x396b3e===0x0?this[_0x5751a8(0x35c)](_0x13aeb7):this[_0x5751a8(0x2bd)][_0x5751a8(0x194)](_0x13aeb7,setTimeout(()=>this[_0x5751a8(0x35c)](_0x13aeb7),_0x396b3e));}['_getSaveTimeout'](){const _0x1d5824=_0x3a2165;var _0x1056ea;return(_0x1056ea=this[_0x1d5824(0x105)][_0x1d5824(0x347)](ft))!=null?_0x1056ea:Zt;}[_0x3a2165(0x35c)](_0x5d5cca){const _0x201b37=_0x3a2165,_0x30cfe0=this[_0x201b37(0x2bd)][_0x201b37(0x305)](_0x5d5cca);return _0x30cfe0!==void 0x0&&window[_0x201b37(0x1de)](_0x30cfe0),this[_0x201b37(0x45e)][_0x201b37(0x3e0)](Qe(_0x5d5cca),this['_cachedData']['get'](_0x5d5cca))['then'](()=>this[_0x201b37(0x2bd)]['delete'](_0x5d5cca));}async['exhaustSavingTask'](){const _0x5682cf=_0x3a2165,_0x3db66e=[];this[_0x5682cf(0x2bd)]['forEach']((_0x16e7f9,_0x16fba7)=>{const _0x26aab5=_0x5682cf;window['clearTimeout'](_0x16e7f9),_0x3db66e[_0x26aab5(0x339)](this[_0x26aab5(0x35c)](_0x16fba7)['then'](()=>{const _0x4702dc=_0x26aab5;this['_saveTaskMap'][_0x4702dc(0x140)](_0x16fba7);}));}),await Promise[_0x5682cf(0x29e)](_0x3db66e);}[_0x3a2165(0x11f)](){const _0x2880da=_0x3a2165;this['disposeWithMe'](this[_0x2880da(0x341)][_0x2880da(0x27c)](()=>{const _0x161c46=_0x2880da;if(this['_saveTaskMap']['size'])return this[_0x161c46(0x1d6)]['t'](_0x161c46(0x156));}));}},exports[_0x3a2165(0x30d)]=bs([ae(0x0,a[_0x3a2165(0xd1)]),ae(0x1,a[_0x3a2165(0x24f)]),ae(0x2,N[_0x3a2165(0x1fe)]),ae(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),ae(0x4,a['Inject'](_[_0x3a2165(0xc9)]))],exports[_0x3a2165(0x30d)]);function Qe(_0x3c373d){const _0x2e0606=_0x3a2165;return _0x2e0606(0x2fb)+_0x3c373d;}var Ts=Object[_0x3a2165(0x1e2)],Rs=Object[_0x3a2165(0x383)],Os=(_0x3b3dcc,_0x3937c5,_0x44c655,_0x430259)=>{const _0x3ea421=_0x3a2165;for(var _0x582b78=_0x430259>0x1?void 0x0:_0x430259?Rs(_0x3937c5,_0x44c655):_0x3937c5,_0x6b4400=_0x3b3dcc[_0x3ea421(0x3a5)]-0x1,_0x31f958;_0x6b4400>=0x0;_0x6b4400--)(_0x31f958=_0x3b3dcc[_0x6b4400])&&(_0x582b78=(_0x430259?_0x31f958(_0x3937c5,_0x44c655,_0x582b78):_0x31f958(_0x582b78))||_0x582b78);return _0x430259&&_0x582b78&&Ts(_0x3937c5,_0x44c655,_0x582b78),_0x582b78;},ye=(_0x1c82e7,_0x37ab1b)=>(_0x373d57,_0x67ea29)=>_0x37ab1b(_0x373d57,_0x67ea29,_0x1c82e7);function Ds(_0x168086){const _0x1d918a=_0x3a2165,{unitID:_0x504e34,mutations:_0x2d2f4a}=_0x168086;return{'unitId':_0x504e34,'subUnitId':_0x2d2f4a[0x0][_0x1d918a(0x101)][_0x1d918a(0x41b)]};}let ge=class{constructor(_0x38d395,_0x37285c,_0x4dc07d){const _0x58c854=_0x3a2165;this['_injector']=_0x38d395,this[_0x58c854(0x316)]=_0x37285c,this['_instanceService']=_0x4dc07d;}[_0x3a2165(0x289)](_0x355665){const _0x24a63d=_0x3a2165;var _0xe81f94,_0x1f920c,_0x3a93f5,_0x3c6026;const _0x273467=this[_0x24a63d(0x3be)][_0x24a63d(0x305)](C[_0x24a63d(0x2ef)]),{unitId:_0x44491b,subUnitId:_0x51dfd6}=Ds(_0x355665),_0x101073=_0x273467[_0x24a63d(0x2a7)](_0x44491b)[_0x24a63d(0x1f0)](),_0x233744=(_0x1f920c=(_0xe81f94=this['_instanceService'][_0x24a63d(0x3e5)](_0x44491b))==null?void 0x0:_0xe81f94['getActiveSheet']())==null?void 0x0:_0x1f920c['getSheetId']();if(_0x101073[_0x24a63d(0x3a5)]===0x0||!_0x44491b||!_0x51dfd6)return;const _0x1c51db=[{'id':C[_0x24a63d(0x3d6)]['id'],'params':{'unitId':_0x44491b,'subUnitId':_0x233744,'selections':a[_0x24a63d(0x483)][_0x24a63d(0x204)](_0x101073)}}],_0x149135=this[_0x24a63d(0x316)][_0x24a63d(0xf5)](_0x355665,_0x1c51db);if(!_['isTransformMutationsWithChangesetSuccess'](_0x149135))throw _0x149135[_0x24a63d(0x442)];const _0x3b4f32=(_0x3c6026=(_0x3a93f5=_0x149135['m2Prime'][0x0])==null?void 0x0:_0x3a93f5[_0x24a63d(0x101)])==null?void 0x0:_0x3c6026['selections'];Array['isArray'](_0x3b4f32)&&_0x3b4f32[_0x24a63d(0x3a5)]&&this[_0x24a63d(0x3be)][_0x24a63d(0x305)](a[_0x24a63d(0x3e2)])[_0x24a63d(0x1c2)](C[_0x24a63d(0x3d6)]['id'],{'unitId':_0x44491b,'subUnitId':_0x233744,'selections':_0x3b4f32});}};ge=Os([ye(0x0,a['Inject'](a[_0x3a2165(0x3b0)])),ye(0x1,_[_0x3a2165(0xc6)]),ye(0x2,a[_0x3a2165(0x137)])],ge);const be=a['createIdentifier'](_0x3a2165(0xf4));var bt=(_0x1578ed=>(_0x1578ed[_0x1578ed['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3a2165(0x368),_0x1578ed[_0x1578ed[_0x3a2165(0xa4)]=0x1]=_0x3a2165(0xa4),_0x1578ed))(bt||{});const et=0x7530,tt='ACTIVE_UNIT_EVENT_CHANNEL';class ys extends a[_0x3a2165(0x287)]{constructor(){const _0x39d659=_0x3a2165;super(),d(this,'_id',a[_0x39d659(0x483)][_0x39d659(0x238)]()),d(this,'_selfUnitIDs',new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x39d659(0xf6),null),d(this,'_clearOtherTimers',new Map()),d(this,'_unitStatus',new Map()),this[_0x39d659(0x1d9)]();}[_0x3a2165(0x491)](){const _0x438c7a=_0x3a2165;super[_0x438c7a(0x491)](),this[_0x438c7a(0x486)][_0x438c7a(0x337)]((_0x5438e5,_0x2d5ad0)=>this[_0x438c7a(0x2c9)](_0x2d5ad0)),this[_0x438c7a(0xf6)]&&window[_0x438c7a(0x319)](this['_heartbeatTimer']);}[_0x3a2165(0x245)](_0x338bba){const _0x4424b0=_0x3a2165;return this[_0x4424b0(0x418)](_0x338bba)[_0x4424b0(0x447)](v['distinctUntilChanged']());}['editingUnit'](_0x2bcecb){const _0x8d9299=_0x3a2165;this['_selfUnitIDs'][_0x8d9299(0x20e)]===0x0&&this[_0x8d9299(0x25e)](),this[_0x8d9299(0x13e)][_0x8d9299(0x2e5)](_0x2bcecb),this[_0x8d9299(0x11a)]({'type':0x0,'memberID':this[_0x8d9299(0x96)],'unitIDs':[_0x2bcecb],'isForwarded':!0x1});}['disposeUnit'](_0x113095){const _0x1309bc=_0x3a2165;this['_selfUnitIDs'][_0x1309bc(0x140)](_0x113095),this[_0x1309bc(0x13e)][_0x1309bc(0x20e)]===0x0&&this['_heartbeatTimer']&&window[_0x1309bc(0x319)](this[_0x1309bc(0xf6)]);}[_0x3a2165(0x1d9)](){const _0x3878f5=_0x3a2165;this[_0x3878f5(0x167)](a['toDisposable'](v[_0x3878f5(0x2cc)](window,'storage')[_0x3878f5(0x1ee)](_0x5d6245=>{const _0x5ede1c=_0x3878f5;if(_0x5d6245[_0x5ede1c(0x419)]!==tt||!_0x5d6245[_0x5ede1c(0x1c5)])return;const _0x5a8d8e=JSON['parse'](_0x5d6245[_0x5ede1c(0x1c5)]);this[_0x5ede1c(0xd3)](_0x5a8d8e);}))),window[_0x3878f5(0x391)](_0x3878f5(0x36d),()=>this[_0x3878f5(0x11a)]({'type':0x1,'memberID':this[_0x3878f5(0x96)],'unitIDs':Array[_0x3878f5(0x2f9)](this[_0x3878f5(0x13e)])}));}[_0x3a2165(0xd3)](_0x1cf1b8){switch(_0x1cf1b8['type']){case 0x0:this['_handleJoinEvent'](_0x1cf1b8);break;case 0x1:this['_handleLeaveEvent'](_0x1cf1b8);break;case 0x2:this['_handleHeartbeatEvent'](_0x1cf1b8);break;}}[_0x3a2165(0x360)](_0x2ebba4){const _0xfe1234=_0x3a2165,{unitIDs:_0x5306b0,memberID:_0x2a1730,isForwarded:_0x4c41d3}=_0x2ebba4;_0x5306b0[_0xfe1234(0x337)](_0x345072=>{const _0x29383c=_0xfe1234;if(!_0x4c41d3&&this[_0x29383c(0x1e6)][_0x29383c(0x4ac)](_0x345072)&&this[_0x29383c(0x418)](_0x345072)[_0x29383c(0x2c6)](0x1),!this[_0x29383c(0x1e6)]['has'](_0x345072)||!this['_unitOnClients'][_0x29383c(0x305)](_0x345072)[_0x29383c(0x4ac)](_0x2a1730)){const _0x37d811=this[_0x29383c(0x1e6)][_0x29383c(0x305)](_0x345072)||new Set();_0x37d811[_0x29383c(0x2e5)](_0x2a1730),this[_0x29383c(0x1e6)][_0x29383c(0x194)](_0x345072,_0x37d811),this[_0x29383c(0xc5)](_0x2a1730);}}),_0x4c41d3||this[_0xfe1234(0x11a)]({'type':0x0,'memberID':this[_0xfe1234(0x96)],'unitIDs':[...this[_0xfe1234(0x13e)]],'isForwarded':!0x0});}[_0x3a2165(0xc5)](_0xd6cff1){const _0x24d706=_0x3a2165;this['_removeClearOtherTimer'](_0xd6cff1);const _0x46a9ac=window[_0x24d706(0x25c)](()=>{const _0x4bbc7f=_0x24d706;this[_0x4bbc7f(0x1e6)]['forEach'](_0x455a66=>{_0x455a66['delete'](_0xd6cff1);});},et*0x2);this[_0x24d706(0x486)][_0x24d706(0x194)](_0xd6cff1,_0x46a9ac);}[_0x3a2165(0x2c9)](_0x3510d1){const _0x2c023e=_0x3a2165;if(this[_0x2c023e(0x486)][_0x2c023e(0x4ac)](_0x3510d1)){const _0x28e267=this['_clearOtherTimers'][_0x2c023e(0x305)](_0x3510d1);_0x28e267&&window[_0x2c023e(0x1de)](_0x28e267),this[_0x2c023e(0x486)][_0x2c023e(0x194)](_0x3510d1,null);}}['_handleLeaveEvent'](_0x551543){const _0x44123e=_0x3a2165,{memberID:_0x411a37,unitIDs:_0x49fdb7}=_0x551543;_0x49fdb7[_0x44123e(0x337)](_0x52de4c=>{const _0x82e0de=_0x44123e;var _0x31c5b1;const _0x358a09=this[_0x82e0de(0x1e6)][_0x82e0de(0x305)](_0x52de4c);_0x358a09&&(_0x358a09[_0x82e0de(0x140)](_0x411a37),(_0x31c5b1=this[_0x82e0de(0x418)](_0x52de4c))==null||_0x31c5b1['next'](_0x358a09[_0x82e0de(0x20e)]===0x0?0x0:0x1));}),this[_0x44123e(0x2c9)](_0x411a37);}[_0x3a2165(0x4a2)](_0x16c4c4){const _0x12bf19=_0x3a2165;this[_0x12bf19(0xc5)](_0x16c4c4[_0x12bf19(0x12e)]);}[_0x3a2165(0x11a)](_0x4d99f8){const _0x266d7e=_0x3a2165;localStorage['setItem'](tt,JSON[_0x266d7e(0x3a6)](_0x4d99f8));}[_0x3a2165(0x25e)](){const _0x508465=_0x3a2165;this[_0x508465(0xf6)]=window[_0x508465(0x9b)](()=>{const _0x4ca768=_0x508465;this[_0x4ca768(0x11a)]({'type':0x2,'memberID':this['_id']});},et);}['_ensureSubject'](_0x313fbd){const _0x183ab6=_0x3a2165;return this[_0x183ab6(0x176)][_0x183ab6(0x4ac)](_0x313fbd)||this[_0x183ab6(0x176)][_0x183ab6(0x194)](_0x313fbd,new v[(_0x183ab6(0x2f5))](0x0)),this[_0x183ab6(0x176)][_0x183ab6(0x305)](_0x313fbd);}}function Tt(_0x2d5823){const _0xd26471=_0x3a2165;let _0x30dd2a='';for(const _0x423bd7 of _0x2d5823){const {startOffset:_0x4186f7,endOffset:_0x46780a,isActive:_0x1058df}=_0x423bd7;_0x30dd2a[_0xd26471(0x3a5)]&&(_0x30dd2a+=','),_0x30dd2a+=_0x4186f7+':'+_0x46780a+':'+(_0x1058df?'1':'0');}return _0x30dd2a;}function Us(_0x5b9b4a){const _0x168daa=_0x3a2165,_0x369c0d=_0x5b9b4a['split'](','),_0x286b94=[];for(const _0x5c4317 of _0x369c0d){const [_0x1d7135,_0x3957f9,_0x52bcd9]=_0x5c4317[_0x168daa(0x2a0)](':');_0x286b94['push']({'startOffset':Number(_0x1d7135),'endOffset':Number(_0x3957f9),'collapsed':_0x1d7135===_0x3957f9,'isActive':_0x52bcd9==='1'});}return _0x286b94[_0x168daa(0x2ea)](_0x18d714=>_0x18d714[_0x168daa(0x2dc)])||(_0x286b94[0x0][_0x168daa(0x2dc)]=!0x0),_0x286b94;}class Ye extends a[_0x3a2165(0x441)]{constructor(){const _0x512083=_0x3a2165;super(...arguments),d(this,_0x512083(0x264),new v[(_0x512083(0x2f5))](null)),d(this,_0x512083(0x3ce),this[_0x512083(0x264)][_0x512083(0xfd)]());}[_0x3a2165(0x2d9)](_0x2df7b5){const _0x17849b=_0x3a2165,{unitID:_0x2082b7,memberID:_0x2f1f37,textRanges:_0x1319b0}=_0x2df7b5,_0x5836b8=Tt(_0x1319b0),_0x52374f={'unitID':_0x2082b7,'memberID':_0x2f1f37,'selection':_0x5836b8};this[_0x17849b(0x264)][_0x17849b(0x2c6)](_0x52374f);}}var Ps=Object[_0x3a2165(0x1e2)],ws=Object[_0x3a2165(0x383)],Ms=(_0x35602d,_0x211347,_0x42be4c,_0x155ac6)=>{for(var _0x15d14e=_0x155ac6>0x1?void 0x0:_0x155ac6?ws(_0x211347,_0x42be4c):_0x211347,_0x29d52e=_0x35602d['length']-0x1,_0x5bd325;_0x29d52e>=0x0;_0x29d52e--)(_0x5bd325=_0x35602d[_0x29d52e])&&(_0x15d14e=(_0x155ac6?_0x5bd325(_0x211347,_0x42be4c,_0x15d14e):_0x5bd325(_0x15d14e))||_0x15d14e);return _0x155ac6&&_0x15d14e&&Ps(_0x211347,_0x42be4c,_0x15d14e),_0x15d14e;},st=(_0x456d70,_0x571f92)=>(_0x5c90c2,_0x8b82da)=>_0x571f92(_0x5c90c2,_0x8b82da,_0x456d70);let me=class{constructor(_0x4bed70,_0x3c8625){const _0x4c4d11=_0x3a2165;this['_injector']=_0x4bed70,this[_0x4c4d11(0x316)]=_0x3c8625;}[_0x3a2165(0x289)](_0x17d1ef){const _0x1c6a4b=_0x3a2165;var _0x113346;const _0x502272=this[_0x1c6a4b(0x3be)][_0x1c6a4b(0x305)](V['DocSelectionManagerService']),_0x527179=(_0x113346=_0x502272[_0x1c6a4b(0x3b2)]())!=null?_0x113346:[];if(_0x527179[_0x1c6a4b(0x3a5)]===0x0)return;const _0x3968cc=[{'id':_0x1c6a4b(0x132),'params':{'unitId':_0x17d1ef[_0x1c6a4b(0x438)],'actions':null,'textRanges':_0x527179}}],_0x19a3a7=this[_0x1c6a4b(0x316)][_0x1c6a4b(0xf5)](_0x17d1ef,_0x3968cc);if(!_[_0x1c6a4b(0x16b)](_0x19a3a7))throw _0x19a3a7[_0x1c6a4b(0x442)];const _0x1c0abf=_0x19a3a7['m2Prime'][0x0][_0x1c6a4b(0x101)][_0x1c6a4b(0x382)];Array['isArray'](_0x1c0abf)&&_0x1c0abf[_0x1c6a4b(0x3a5)]&&_0x502272[_0x1c6a4b(0x23e)](_0x1c0abf,!0x1);}};me=Ms([st(0x0,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),st(0x1,_['ITransformService'])],me);const Ns=new Set([C[_0x3a2165(0x366)]['id']]);function it(_0x32824f,_0x51297d,_0x1ad622,_0x11ab97,_0xc811d8){const _0x26f2b0=_0x3a2165;var _0x5d7d8f,_0x78dae8,_0xeb4746,_0x4f9323;const _0x4c8ffd=[];for(const _0x35ed65 of _0x32824f)if(Ns['has'](_0x35ed65['id'])){if(_0x4c8ffd['length']>0x0)break;_0x4c8ffd[_0x26f2b0(0x339)](_0x35ed65);break;}else _0x4c8ffd[_0x26f2b0(0x339)](_0x35ed65);const _0x5489de=(_0x78dae8=(_0x5d7d8f=_0xc811d8[_0x26f2b0(0x42a)]())==null?void 0x0:_0x5d7d8f[_0x26f2b0(0xbd)])!=null?_0x78dae8:_0x26f2b0(0x361),_0x269375=(_0x4f9323=(_0xeb4746=_0xc811d8['getCurrentUser']())==null?void 0x0:_0xeb4746[_0x26f2b0(0x12e)])!=null?_0x4f9323:_0x26f2b0(0x361);return{'changeset':{'unitID':_0x51297d,'type':_[_0x26f2b0(0x2c2)](_0x1ad622[_0x26f2b0(0x40d)](_0x51297d)),'baseRev':_0x11ab97[_0x26f2b0(0xdf)](_0x51297d),'revision':0x0,'userID':_0x5489de,'memberID':_0x269375,'mutations':_0x4c8ffd},'pendingMutations':_0x32824f[_0x26f2b0(0xe4)](_0x4c8ffd['length'])};}function As(_0xae3ce8,_0x35c84b,_0x255dfc,_0x505d7e,_0x292692){const _0x12e710=_0x3a2165;var _0x4bdbea,_0x4aac46,_0x307290,_0x7347ac;const _0x3f0ac8=[_0xae3ce8[_0x12e710(0xb3)]((_0x47d338,_0x1dff0d)=>{const _0x6b9fa3=_0x12e710;var _0x2ae054;const {id:_0x5eeafc}=_0x47d338,{id:_0x45f060,type:_0xfae4b7}=_0x1dff0d,_0x477ea9=(_0x2ae054=_0x47d338[_0x6b9fa3(0x101)])!=null?_0x2ae054:{'actions':null},_0x127f3a=_0x1dff0d['params'];if(_0x5eeafc&&_0x5eeafc!==_0x45f060)throw new Error(_0x6b9fa3(0x9e)+_0x5eeafc+_0x6b9fa3(0x38d)+_0x45f060+'.');return{..._0x47d338,'id':_0x45f060,'type':_0xfae4b7,'params':{'unitId':_0x127f3a[_0x6b9fa3(0xec)],'textRanges':_0x127f3a[_0x6b9fa3(0x382)],'actions':a[_0x6b9fa3(0x1b4)][_0x6b9fa3(0x1a5)](_0x477ea9[_0x6b9fa3(0x3a9)],_0x127f3a['actions'])}};},{})],_0x39a855=(_0x4aac46=(_0x4bdbea=_0x292692[_0x12e710(0x42a)]())==null?void 0x0:_0x4bdbea[_0x12e710(0xbd)])!=null?_0x4aac46:_0x12e710(0x361),_0x2d6311=(_0x7347ac=(_0x307290=_0x292692[_0x12e710(0x42a)]())==null?void 0x0:_0x307290[_0x12e710(0x12e)])!=null?_0x7347ac:_0x12e710(0x361);return{'changeset':{'unitID':_0x35c84b,'type':_[_0x12e710(0x2c2)](_0x255dfc[_0x12e710(0x40d)](_0x35c84b)),'baseRev':_0x505d7e[_0x12e710(0xdf)](_0x35c84b),'revision':0x0,'userID':_0x39a855,'memberID':_0x2d6311,'mutations':_0x3f0ac8},'pendingMutations':[]};}const Ls={'id':C[_0x3a2165(0x1ab)]['id'],'type':a[_0x3a2165(0x303)][_0x3a2165(0x178)],'params':{}};var js=Object[_0x3a2165(0x1e2)],$s=Object[_0x3a2165(0x383)],z=(_0x59f00a,_0x210482,_0x1ef07b,_0x5bdba4)=>{const _0x35f450=_0x3a2165;for(var _0x1baaad=_0x5bdba4>0x1?void 0x0:_0x5bdba4?$s(_0x210482,_0x1ef07b):_0x210482,_0x5bc1ce=_0x59f00a[_0x35f450(0x3a5)]-0x1,_0x1bb0cd;_0x5bc1ce>=0x0;_0x5bc1ce--)(_0x1bb0cd=_0x59f00a[_0x5bc1ce])&&(_0x1baaad=(_0x5bdba4?_0x1bb0cd(_0x210482,_0x1ef07b,_0x1baaad):_0x1bb0cd(_0x1baaad))||_0x1baaad);return _0x5bdba4&&_0x1baaad&&js(_0x210482,_0x1ef07b,_0x1baaad),_0x1baaad;},g=(_0x216207,_0x36db76)=>(_0x3c1b4e,_0x191be5)=>_0x36db76(_0x3c1b4e,_0x191be5,_0x216207),y=(_0x52ed49=>(_0x52ed49['NOT_COLLAB']='not_collab',_0x52ed49['SYNCED']=_0x3a2165(0x15c),_0x52ed49[_0x3a2165(0x193)]='pending',_0x52ed49['AWAITING']=_0x3a2165(0x3b6),_0x52ed49['AWAITING_WITH_PENDING']=_0x3a2165(0x11b),_0x52ed49[_0x3a2165(0x24c)]=_0x3a2165(0x33c),_0x52ed49[_0x3a2165(0x171)]='conflict',_0x52ed49['OFFLINE']='offline',_0x52ed49))(y||{});class J{constructor(_0x468b18,_0xbed35e,_0x18d605,_0x1187ab,_0x343b69,_0x22ae51,_0x33fbfd,_0x4747b6,_0x47a870){const _0x13f935=_0x3a2165;d(this,_0x13f935(0xbc),null),d(this,_0x13f935(0x22e),[]),(this[_0x13f935(0x438)]=_0x468b18,this[_0x13f935(0x3a4)]=_0xbed35e,this['_handler']=_0x343b69,this[_0x13f935(0x3de)]=_0x22ae51,this['_undoRedoService']=_0x33fbfd,this[_0x13f935(0x2d0)]=_0x4747b6,this[_0x13f935(0x1e8)]=_0x47a870,this[_0x13f935(0xbc)]=_0x18d605,this[_0x13f935(0x22e)]=_0x1187ab);}[_0x3a2165(0x1d3)](_0x4c5879){const _0x14fd2e=_0x3a2165,_0xcc82a6=this[_0x14fd2e(0x2d0)][_0x14fd2e(0xdf)](this[_0x14fd2e(0x438)]);return _0x4c5879['revision']>_0xcc82a6+0x1?(this[_0x14fd2e(0x1ad)][_0x14fd2e(0x252)]({'from':_0xcc82a6,'to':_0x4c5879[_0x14fd2e(0x251)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x9561b5){const _0x1a8536=_0x3a2165;this[_0x1a8536(0x216)][_0x1a8536(0x3cb)](this[_0x1a8536(0x438)],_0x9561b5);}['_transformSelections'](_0x1c1d8d){const _0x4a9379=_0x3a2165;var _0x370026,_0x29ca15;(_0x29ca15=(_0x370026=this[_0x4a9379(0x1ad)])[_0x4a9379(0x345)])==null||_0x29ca15['call'](_0x370026,_0x1c1d8d);}[_0x3a2165(0x12b)](_0x10ad0a){const _0xda1150=_0x3a2165;var _0x555512,_0x238170;return(_0x238170=(_0x555512=this[_0xda1150(0x1ad)])[_0xda1150(0x158)])==null?void 0x0:_0x238170[_0xda1150(0x1ef)](_0x555512,_0x10ad0a);}[_0x3a2165(0xe5)](_0x5d015b){var _0x3e4213,_0x49d38d,_0x4377a3;return(_0x4377a3=(_0x49d38d=(_0x3e4213=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x49d38d['call'](_0x3e4213,_0x5d015b))!=null?_0x4377a3:_0x5d015b;}[_0x3a2165(0x23b)](_0x44f6f3){const _0x18ad7d=_0x3a2165;var _0x47b4df,_0x228e1f;if(this[_0x18ad7d(0x3a4)]===j[_0x18ad7d(0x34e)]){const {unitID:_0x3bdfcc,mutations:_0x102006,memberID:_0x38e790}=_0x44f6f3,_0x1303b3=_0x102006[0x0][_0x18ad7d(0x101)][_0x18ad7d(0x382)];Array[_0x18ad7d(0x203)](_0x1303b3)&&_0x1303b3['length']>0x0&&((_0x228e1f=(_0x47b4df=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x228e1f['call'](_0x47b4df,{'unitID':_0x3bdfcc,'memberID':_0x38e790,'textRanges':_0x1303b3}));}}[_0x3a2165(0x312)](){const _0x2fc374=_0x3a2165;this['_localCacheService'][_0x2fc374(0x200)](this[_0x2fc374(0x438)],this[_0x2fc374(0x3a4)],this[_0x2fc374(0xbc)],this[_0x2fc374(0x22e)]);}[_0x3a2165(0x1b9)](){const _0xa409d8=_0x3a2165;return this[_0xa409d8(0x2d0)][_0xa409d8(0xdf)](this['unitID']);}[_0x3a2165(0x1db)](){const _0x2875a7=_0x3a2165;this['_revisionService'][_0x2875a7(0x3f9)](this[_0x2875a7(0x438)]);}[_0x3a2165(0x3ac)](_0x126712){const _0x4b71b2=_0x3a2165;var _0x4a622c;const _0x4adf42=this[_0x4b71b2(0xe5)](_0x126712),_0x5ad283=a[_0x4b71b2(0x1f5)](_0x4adf42[_0x4b71b2(0x31e)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5ad283[_0x4b71b2(0x109)])throw _0x5ad283[_0x4b71b2(0x442)]instanceof Error?_0x5ad283[_0x4b71b2(0x442)]:new Error((_0x4a622c=_0x5ad283['error'])!=null?_0x4a622c:_0x4b71b2(0x404));this[_0x4b71b2(0x12b)](_0x4adf42),this[_0x4b71b2(0x163)](_0x126712),this[_0x4b71b2(0x27b)](_0x4adf42),this[_0x4b71b2(0x23b)](_0x4adf42),this[_0x4b71b2(0x1db)]();}}let se=class extends J{constructor(_0x3870ac,_0x341872,_0x1598e5,_0xf4dd61,_0x4d91a0,_0x409a2b,_0x48f9d6,_0x47dd14,_0x2a2571,_0x15a3db){const _0x408021=_0x3a2165;super(_0x3870ac,_0x341872,null,[],_0x1598e5,_0x47dd14,_0x48f9d6,_0xf4dd61,_0x4d91a0),d(this,'status',_0x408021(0x15c)),(this[_0x408021(0x3be)]=_0x409a2b,this['_logService']=_0x2a2571,this[_0x408021(0x316)]=_0x15a3db);}[_0x3a2165(0x32c)](_0x5c4d9d){const _0x2da358=_0x3a2165,_0x3179fc=this[_0x2da358(0x3be)][_0x2da358(0xbe)](x,this['unitID'],this[_0x2da358(0x3a4)],[_0x5c4d9d],this[_0x2da358(0x1ad)]);return _0x3179fc['_schedule'](),_0x3179fc[_0x2da358(0x312)](),_0x3179fc;}[_0x3a2165(0x336)](_0x2e21e1){const _0x5ab9c7=_0x3a2165;if(this[_0x5ab9c7(0x1d3)](_0x2e21e1))return this[_0x5ab9c7(0x3be)][_0x5ab9c7(0xbe)](H,this[_0x5ab9c7(0x438)],this[_0x5ab9c7(0x3a4)],null,[],null,[_0x2e21e1],this[_0x5ab9c7(0x1ad)]);try{const _0x57d7c4=this[_0x5ab9c7(0x316)][_0x5ab9c7(0xf5)](_0x2e21e1,[Ls]);if(_[_0x5ab9c7(0x16b)](_0x57d7c4)){const {c1Prime:_0x54a8cc}=_0x57d7c4;return this[_0x5ab9c7(0x3ac)](_0x54a8cc),this;}throw _0x57d7c4[_0x5ab9c7(0x442)];}catch(_0x4863a2){return this['_logService']['error'](_0x4863a2),this[_0x5ab9c7(0x99)](!0x1);}}['_onConflict'](_0x41c2fe){const _0xe4f331=_0x3a2165;return this[_0xe4f331(0x3be)]['createInstance'](F,this['unitID'],this[_0xe4f331(0x3a4)],null,[],this[_0xe4f331(0x1ad)],_0x41c2fe);}[_0x3a2165(0x2e1)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3a2165(0x3f7)](){const _0x4fe676=_0x3a2165;throw new Error(_0x4fe676(0x1ba));}[_0x3a2165(0x237)](){const _0x5024bc=_0x3a2165;return this[_0x5024bc(0x3be)][_0x5024bc(0xbe)](G,this[_0x5024bc(0x438)],this['type'],null,[],this[_0x5024bc(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}['resend'](){const _0x43c402=_0x3a2165;throw new Error(_0x43c402(0x49b));}[_0x3a2165(0x2df)](){const _0x40312f=_0x3a2165,_0x5a280e=this[_0x40312f(0x2d0)]['getCurrentRevOfUnit'](this[_0x40312f(0x438)]);return this[_0x40312f(0x1ad)][_0x40312f(0x252)]({'from':_0x5a280e,'to':0x0}),this[_0x40312f(0x3be)][_0x40312f(0xbe)](H,this[_0x40312f(0x438)],this['type'],null,[],null,[],this['_handler']);}};se=z([g(0x3,a['Inject'](_[_0x3a2165(0xc9)])),g(0x4,a['Inject'](exports['LocalCacheService'])),g(0x5,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),g(0x6,a['IUndoRedoService']),g(0x7,a[_0x3a2165(0x3e2)]),g(0x8,a[_0x3a2165(0x490)]),g(0x9,_[_0x3a2165(0xc6)])],se);let x=class extends J{constructor(_0x2ab85f,_0x347fa0,_0x1567ac,_0xe39257,_0x2ee000,_0x5d3e98,_0x96b175,_0x233338,_0x98dc91,_0x2f5bee,_0x22c735,_0x59d2f5,_0x1d65a8,_0x10f8e0){const _0x965f5=_0x3a2165;super(_0x2ab85f,_0x347fa0,null,_0x1567ac,_0xe39257,_0x2f5bee,_0x10f8e0,_0x5d3e98,_0x96b175),d(this,_0x965f5(0x492),_0x965f5(0x10f)),d(this,_0x965f5(0xde),null),d(this,_0x965f5(0x3f5),null),(this[_0x965f5(0x3be)]=_0x2ee000,this[_0x965f5(0x2c3)]=_0x233338,this[_0x965f5(0x42d)]=_0x98dc91,this[_0x965f5(0x105)]=_0x22c735,this[_0x965f5(0x316)]=_0x59d2f5,this[_0x965f5(0x406)]=_0x1d65a8);}[_0x3a2165(0x32c)](_0x1b7698){const _0xf28356=_0x3a2165;return this[_0xf28356(0x22e)][_0xf28356(0x339)](_0x1b7698),this[_0xf28356(0x312)](),this;}['onRemoteChangeset'](_0x23eb26){const _0x33500b=_0x3a2165;if(this[_0x33500b(0x1d3)](_0x23eb26))return this[_0x33500b(0x480)](),this[_0x33500b(0x3be)][_0x33500b(0xbe)](H,this['unitID'],this[_0x33500b(0x3a4)],null,this[_0x33500b(0x22e)],null,[_0x23eb26],this[_0x33500b(0x1ad)]);try{const _0x942b20=this['_transformService'][_0x33500b(0xf5)](_0x23eb26,this[_0x33500b(0x22e)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x942b20)){const {c1Prime:_0x186fcb,m2Prime:_0xc86709}=_0x942b20;this[_0x33500b(0x3ac)](_0x186fcb);const _0x1cb36e=this[_0x33500b(0x3be)][_0x33500b(0xbe)](x,this[_0x33500b(0x438)],this[_0x33500b(0x3a4)],_0xc86709,this[_0x33500b(0x1ad)]);return this['_clearScheduledTask'](),_0x1cb36e[_0x33500b(0x42e)](this[_0x33500b(0xde)]?Math['max'](0x0,new Date()['getTime']()-this[_0x33500b(0xde)]):this['_getSendChangesetTimeout']()),_0x1cb36e;}throw _0x942b20['error'];}catch(_0x10b957){return this[_0x33500b(0x42d)]['error'](_0x10b957),this[_0x33500b(0x99)](!0x1);}}[_0x3a2165(0x2e1)](){const _0xfda7e4=_0x3a2165;throw new Error(_0xfda7e4(0x12d));}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x3a2165(0x237)](){const _0x1c9da8=_0x3a2165;return this[_0x1c9da8(0x480)](),this[_0x1c9da8(0x3be)]['createInstance'](G,this[_0x1c9da8(0x438)],this['type'],null,this[_0x1c9da8(0x22e)],this[_0x1c9da8(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x42e)](_0x19bbed){const _0x468617=_0x3a2165,_0x4e5e8e=_0x19bbed!=null?_0x19bbed:this[_0x468617(0x367)]();this['_scheduleTimestamp']=new Date()[_0x468617(0x3dc)](),this[_0x468617(0x3f5)]=window['setTimeout'](()=>{const _0x142d43=_0x468617;this['_clearScheduledTask']();let _0xd7ccdc=null;switch(this[_0x142d43(0x3a4)]){case j[_0x142d43(0x21f)]:{_0xd7ccdc=it(this['_pendingMutations'],this['unitID'],this[_0x142d43(0x406)],this['_revisionService'],this['_memberService']);break;}case j[_0x142d43(0x34e)]:{this[_0x142d43(0x22e)][_0x142d43(0x36b)](_0x50b741=>_0x50b741['id']===V[_0x142d43(0x21d)]['id'])?_0xd7ccdc=As(this[_0x142d43(0x22e)],this[_0x142d43(0x438)],this[_0x142d43(0x406)],this['_revisionService'],this[_0x142d43(0x2c3)]):_0xd7ccdc=it(this[_0x142d43(0x22e)],this['unitID'],this[_0x142d43(0x406)],this[_0x142d43(0x2d0)],this[_0x142d43(0x2c3)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x142d43(0x139));}const {changeset:_0x5c4f36,pendingMutations:_0x25795c}=_0xd7ccdc;this['_handler'][_0x142d43(0x182)](_0x5c4f36);const _0x37f661=_0x25795c[_0x142d43(0x3a5)]?this[_0x142d43(0x3be)]['createInstance'](k,this['unitID'],this[_0x142d43(0x3a4)],_0x5c4f36,_0x25795c,this['_handler']):this['_injector'][_0x142d43(0xbe)](W,this[_0x142d43(0x438)],this[_0x142d43(0x3a4)],_0x5c4f36,this[_0x142d43(0x1ad)]);_0x37f661[_0x142d43(0x312)](),this['_handler'][_0x142d43(0x286)](this,_0x37f661);},_0x4e5e8e);}[_0x3a2165(0x367)](){const _0x1cf078=_0x3a2165;var _0x7dba7d;const _0x15f0c0=this[_0x1cf078(0x105)][_0x1cf078(0x347)](A);return(_0x7dba7d=_0x15f0c0==null?void 0x0:_0x15f0c0[_0x1cf078(0x3b1)])!=null?_0x7dba7d:Kt;}[_0x3a2165(0x462)](){const _0x1b1a5b=_0x3a2165;throw new Error(_0x1b1a5b(0x111));}['_clearScheduledTask'](){const _0x5a01b0=_0x3a2165;this[_0x5a01b0(0x3f5)]!=null&&(clearTimeout(this[_0x5a01b0(0x3f5)]),this['_sendingTimer']=null);}[_0x3a2165(0x99)](_0xba2aed){const _0x29004f=_0x3a2165;return this['_clearScheduledTask'](),this[_0x29004f(0x3be)][_0x29004f(0xbe)](F,this['unitID'],this[_0x29004f(0x3a4)],null,this[_0x29004f(0x22e)],this[_0x29004f(0x1ad)],_0xba2aed);}};x=z([g(0x4,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),g(0x5,a[_0x3a2165(0x426)](_['RevisionService'])),g(0x6,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x7,a[_0x3a2165(0x426)](q)),g(0x8,a[_0x3a2165(0x490)]),g(0x9,a[_0x3a2165(0x3e2)]),g(0xa,a[_0x3a2165(0xd1)]),g(0xb,_['ITransformService']),g(0xc,a[_0x3a2165(0x137)]),g(0xd,a[_0x3a2165(0x244)])],x);let W=class extends J{constructor(_0x58427e,_0x44410e,_0xd6dcc8,_0x5b427e,_0x2e7798,_0x130532,_0x42300e,_0x5d4438,_0x46aa97,_0x80c756,_0x51c68a){const _0x452e78=_0x3a2165;super(_0x58427e,_0x44410e,_0xd6dcc8,[],_0x5b427e,_0x5d4438,_0x51c68a,_0x130532,_0x42300e),d(this,'status',_0x452e78(0x3b6)),(this[_0x452e78(0x3be)]=_0x2e7798,this[_0x452e78(0x42d)]=_0x46aa97,this[_0x452e78(0x316)]=_0x80c756);}[_0x3a2165(0x32c)](_0x1bdb3c){const _0x5ef90c=_0x3a2165,_0x3edbee=this[_0x5ef90c(0x3be)]['createInstance'](k,this[_0x5ef90c(0x438)],this[_0x5ef90c(0x3a4)],this['_awaitingChangeset'],[_0x1bdb3c],this[_0x5ef90c(0x1ad)]);return _0x3edbee[_0x5ef90c(0x312)](),_0x3edbee;}[_0x3a2165(0x336)](_0x5b3a3c){const _0x1d56d3=_0x3a2165;if(this[_0x1d56d3(0x1d3)](_0x5b3a3c))return this[_0x1d56d3(0x3be)][_0x1d56d3(0xbe)](H,this[_0x1d56d3(0x438)],this[_0x1d56d3(0x3a4)],this[_0x1d56d3(0xbc)],[],null,[_0x5b3a3c],this[_0x1d56d3(0x1ad)]);try{const _0x4eb159=this[_0x1d56d3(0x316)]['transformChangesets']([_0x5b3a3c],[this[_0x1d56d3(0xbc)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4eb159)){const {c1Prime:_0x5da2e4,c2Prime:_0x12e38a}=_0x4eb159;this[_0x1d56d3(0x3ac)](_0x5da2e4[0x0]),_0x12e38a[0x0]['baseRev']=this['_getCurrentRevision']();const _0x9a683b=this[_0x1d56d3(0x3be)][_0x1d56d3(0xbe)](W,this['unitID'],this[_0x1d56d3(0x3a4)],_0x12e38a[0x0],this[_0x1d56d3(0x1ad)]);return _0x9a683b[_0x1d56d3(0x312)](),_0x9a683b;}return this[_0x1d56d3(0x99)](!0x1);}catch(_0x1d318e){return this[_0x1d56d3(0x42d)][_0x1d56d3(0x442)](_0x1d318e),this['_onConflict'](!0x1);}}[_0x3a2165(0x2e1)](_0x1def1b){const _0x3e63e4=_0x3a2165,_0x228880=this['_revisionService'][_0x3e63e4(0xdf)](this[_0x3e63e4(0x438)]);if(_0x1def1b[_0x3e63e4(0x251)]<_0x228880-0x1)return this;if(this[_0x3e63e4(0x1d3)](_0x1def1b))return this[_0x3e63e4(0x3be)][_0x3e63e4(0xbe)](H,this[_0x3e63e4(0x438)],this['type'],null,[],this['_awaitingChangeset'],[],this[_0x3e63e4(0x1ad)]);this[_0x3e63e4(0x1db)]();const _0x5e2493=this['_injector']['createInstance'](se,this[_0x3e63e4(0x438)],this['type'],this[_0x3e63e4(0x1ad)]);return _0x5e2493[_0x3e63e4(0x312)](),_0x5e2493;}[_0x3a2165(0x3f7)](_0x552ae0){const _0x55c8c0=_0x3a2165;return this[_0x55c8c0(0x99)](!!(_0x552ae0!=null&&_0x552ae0[_0x55c8c0(0x146)]));}['toggleOffline'](){const _0x2d47c0=_0x3a2165;return this[_0x2d47c0(0x3be)][_0x2d47c0(0xbe)](G,this[_0x2d47c0(0x438)],this['type'],this['_awaitingChangeset'],[],this[_0x2d47c0(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x462)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}[_0x3a2165(0x99)](_0x317ef1){const _0x2bc583=_0x3a2165;return this['_injector'][_0x2bc583(0xbe)](F,this[_0x2bc583(0x438)],this['type'],this[_0x2bc583(0xbc)],[],this[_0x2bc583(0x1ad)],_0x317ef1);}};W=z([g(0x4,a[_0x3a2165(0x426)](a['Injector'])),g(0x5,a['Inject'](_[_0x3a2165(0xc9)])),g(0x6,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x7,a['ICommandService']),g(0x8,a[_0x3a2165(0x490)]),g(0x9,_[_0x3a2165(0xc6)]),g(0xa,a['IUndoRedoService'])],W);let k=class extends J{constructor(_0x497ca7,_0x441204,_0x15cc80,_0x441a78,_0x23160e,_0x551bf5,_0x49bcbb,_0x2ea5dc,_0x3df484,_0x269890,_0x22143b,_0x15702d){const _0x484af4=_0x3a2165;super(_0x497ca7,_0x441204,_0x15cc80,_0x441a78,_0x23160e,_0x3df484,_0x15702d,_0x49bcbb,_0x2ea5dc),d(this,_0x484af4(0x492),_0x484af4(0x11b)),(this[_0x484af4(0x3be)]=_0x551bf5,this['_logService']=_0x269890,this[_0x484af4(0x316)]=_0x22143b);}[_0x3a2165(0x32c)](_0x442e4d){const _0x43decf=_0x3a2165;return this[_0x43decf(0x22e)][_0x43decf(0x339)](_0x442e4d),this;}['onRemoteChangeset'](_0x5c3d5d){const _0xcb5da9=_0x3a2165;if(this['_checkMissing'](_0x5c3d5d))return this[_0xcb5da9(0x3be)][_0xcb5da9(0xbe)](H,this['unitID'],this[_0xcb5da9(0x3a4)],this[_0xcb5da9(0xbc)],this[_0xcb5da9(0x22e)],null,[_0x5c3d5d],this[_0xcb5da9(0x1ad)]);try{const _0x3a7d84=this[_0xcb5da9(0x316)][_0xcb5da9(0x41e)]([_0x5c3d5d],[this[_0xcb5da9(0xbc)]],!0x1);if(_[_0xcb5da9(0x197)](_0x3a7d84)){const {c1Prime:_0x3a3de6,c2Prime:_0x483c9a}=_0x3a7d84,_0x34f591=this[_0xcb5da9(0x316)][_0xcb5da9(0xf5)](_0x3a3de6[0x0],this['_pendingMutations']);if(_[_0xcb5da9(0x16b)](_0x34f591)){const {c1Prime:_0x310365,m2Prime:_0x6d1b7c}=_0x34f591;return this[_0xcb5da9(0x3ac)](_0x310365),_0x483c9a[0x0][_0xcb5da9(0x142)]=this[_0xcb5da9(0x1b9)](),this[_0xcb5da9(0x3be)][_0xcb5da9(0xbe)](k,this['unitID'],this[_0xcb5da9(0x3a4)],_0x483c9a[0x0],_0x6d1b7c,this['_handler']);}throw _0x34f591[_0xcb5da9(0x442)];}throw _0x3a7d84['error'];}catch(_0x2b1fed){return this[_0xcb5da9(0x42d)]['error'](_0x2b1fed),this[_0xcb5da9(0x99)](!0x1);}}[_0x3a2165(0x2e1)](_0x1c366a){const _0x50df87=_0x3a2165;if(this['_checkMissing'](_0x1c366a))return this[_0x50df87(0x3be)][_0x50df87(0xbe)](H,this[_0x50df87(0x438)],this['type'],null,this[_0x50df87(0x22e)],this[_0x50df87(0xbc)],[],this[_0x50df87(0x1ad)]);this[_0x50df87(0x1db)]();const _0x1237f9=this[_0x50df87(0x3be)][_0x50df87(0xbe)](x,this['unitID'],this[_0x50df87(0x3a4)],this[_0x50df87(0x22e)],this['_handler']);return _0x1237f9[_0x50df87(0x42e)](),_0x1237f9[_0x50df87(0x312)](),_0x1237f9;}[_0x3a2165(0x3f7)](_0x1ff990){const _0xbea86f=_0x3a2165;return this[_0xbea86f(0x99)](!!(_0x1ff990!=null&&_0x1ff990[_0xbea86f(0x146)]));}[_0x3a2165(0x237)](){const _0x22a954=_0x3a2165;return this[_0x22a954(0x3be)][_0x22a954(0xbe)](G,this[_0x22a954(0x438)],this['type'],this[_0x22a954(0xbc)],this[_0x22a954(0x22e)],this['_handler']);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x462)](){const _0x4cce90=_0x3a2165;this[_0x4cce90(0x1ad)][_0x4cce90(0x182)](this[_0x4cce90(0xbc)]);}['_onConflict'](_0x522062){const _0xeadb36=_0x3a2165;return this[_0xeadb36(0x3be)]['createInstance'](F,this[_0xeadb36(0x438)],this['type'],null,this[_0xeadb36(0x22e)],this[_0xeadb36(0x1ad)],_0x522062);}};k=z([g(0x5,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),g(0x6,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),g(0x7,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x8,a['ICommandService']),g(0x9,a['ILogService']),g(0xa,_[_0x3a2165(0xc6)]),g(0xb,a['IUndoRedoService'])],k);let F=class extends J{constructor(_0xbbb60a,_0x430a26,_0x593715,_0x47f283,_0x5b6f76,_0x3db5fd=!0x1,_0x38e5ad,_0x4f11e7,_0x29db6b,_0x3dadde,_0x24ce67,_0xad56fe,_0x3d6fc6){const _0x4d21b9=_0x3a2165;super(_0xbbb60a,_0x430a26,_0x593715,_0x47f283,_0x5b6f76,_0x4f11e7,_0x29db6b,_0x24ce67,_0x3dadde),d(this,_0x4d21b9(0x492),_0x4d21b9(0x42b)),(this['_isPermissionRej']=_0x3db5fd,this[_0x4d21b9(0x1cb)]=_0x38e5ad,this[_0x4d21b9(0x1d6)]=_0xad56fe,this['_notificationService']=_0x3d6fc6,this[_0x4d21b9(0xf2)](),this[_0x4d21b9(0x290)](),this[_0x4d21b9(0x34d)]());}[_0x3a2165(0x32c)](){return this;}[_0x3a2165(0x336)](){return this;}['onRemoteAck'](){return this;}[_0x3a2165(0x3f7)](){return this;}[_0x3a2165(0x237)](){return this;}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x462)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3a2165(0x290)](){const _0x441a71=_0x3a2165;this['_localCacheService'][_0x441a71(0x200)](this[_0x441a71(0x438)],this[_0x441a71(0x3a4)],null,[]);}['_showConflictNotification'](){const _0x5d6a30=_0x3a2165;this['_isPermissionRej']?this[_0x5d6a30(0xb4)][_0x5d6a30(0x113)]({'title':this[_0x5d6a30(0x1d6)]['t']('permission.title'),'content':this[_0x5d6a30(0x1d6)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x5d6a30(0xb4)][_0x5d6a30(0x113)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x5d6a30(0x1d6)]['t']('conflict.content'),'type':_0x5d6a30(0x442),'duration':0x0});}['_disableEditing'](){const _0xf38f8b=_0x3a2165;this['_permissionService'][_0xf38f8b(0x33f)](new C[(_0xf38f8b(0x1c4))](this['unitID'])['id'],!0x1);}};F=z([g(0x6,a[_0x3a2165(0x426)](a[_0x3a2165(0x277)])),g(0x7,a[_0x3a2165(0x3e2)]),g(0x8,a[_0x3a2165(0x244)]),g(0x9,a['Inject'](exports[_0x3a2165(0x30d)])),g(0xa,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),g(0xb,a['Inject'](a[_0x3a2165(0x3ff)])),g(0xc,N[_0x3a2165(0x350)])],F);let G=class extends J{constructor(_0x3688f4,_0x5ded04,_0xf04523,_0x4aab9c,_0x5204a4,_0x2190d6,_0x42ac7b,_0xec3d6c,_0x642853,_0xb98d44){const _0x112170=_0x3a2165;super(_0x3688f4,_0x5ded04,_0xf04523,_0x4aab9c,_0x5204a4,_0x642853,_0xb98d44,_0x42ac7b,_0xec3d6c),d(this,_0x112170(0x492),_0x112170(0x229)),this[_0x112170(0x3be)]=_0x2190d6;}[_0x3a2165(0x32c)](_0x420c4f){const _0x43721c=_0x3a2165;return this[_0x43721c(0x22e)][_0x43721c(0x339)](_0x420c4f),this[_0x43721c(0x312)](),this;}[_0x3a2165(0x336)](_0x703485){const _0x33ac64=_0x3a2165;throw new Error(_0x33ac64(0x1be));}[_0x3a2165(0x2e1)](){const _0xd91fcd=_0x3a2165;throw new Error(_0xd91fcd(0x335));}[_0x3a2165(0x3f7)](){const _0x2896a6=_0x3a2165;throw new Error(_0x2896a6(0xdb));}['toggleOffline'](){return this;}[_0x3a2165(0x1e0)](){const _0x5e1109=_0x3a2165,{_injector:_0x8ea2b0,_pendingMutations:_0x38a78b,_awaitingChangeset:_0x84e37d,unitID:_0x5d6295,_handler:_0x3fe5ad,type:_0x11aad2}=this,_0x55c2f3=Rt(_0x8ea2b0,_0x5d6295,_0x11aad2,_0x84e37d,_0x38a78b,_0x3fe5ad);return _0x55c2f3 instanceof x?_0x55c2f3[_0x5e1109(0x42e)]():(_0x55c2f3 instanceof k||_0x55c2f3 instanceof W)&&_0x55c2f3[_0x5e1109(0x462)](),_0x55c2f3;}[_0x3a2165(0x462)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};G=z([g(0x5,a['Inject'](a[_0x3a2165(0x3b0)])),g(0x6,a['Inject'](_[_0x3a2165(0xc9)])),g(0x7,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x8,a[_0x3a2165(0x3e2)]),g(0x9,a[_0x3a2165(0x244)])],G);let H=class extends J{constructor(_0x4f6708,_0xa3e38d,_0x4f2800,_0x374649,_0xad7022,_0x5b9ff1,_0x21aac5,_0x5723a7,_0x157e72,_0x45b2cb,_0x367c45,_0x10a241,_0x2240eb,_0x396124){const _0x5a446d=_0x3a2165;super(_0x4f6708,_0xa3e38d,_0x4f2800,_0x374649,_0x21aac5,_0x10a241,_0x2240eb,_0x157e72,_0x45b2cb),d(this,'status',_0x5a446d(0x33c)),(this[_0x5a446d(0x36a)]=_0xad7022,this[_0x5a446d(0x214)]=_0x5b9ff1,this[_0x5a446d(0x3be)]=_0x5723a7,this[_0x5a446d(0x42d)]=_0x367c45,this[_0x5a446d(0x316)]=_0x396124);}['onMissedChangesetFetched'](_0x1a15ed){const _0x5ab875=_0x3a2165;try{const _0x2fa622=[..._0x1a15ed,...this[_0x5ab875(0x214)]],_0xbbc837=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x5ab875(0xe8)](_0xc751ba=>!!_0xc751ba);let _0x56ab27,_0x81e4b1;if(_0xbbc837[_0x5ab875(0x3a5)]){const _0x477c8e=this['_transformService'][_0x5ab875(0x41e)](_0x2fa622,_0xbbc837,!0x1);if(!_[_0x5ab875(0x197)](_0x477c8e))throw _0x477c8e[_0x5ab875(0x442)];_0x56ab27=_0x477c8e[_0x5ab875(0x353)],_0x81e4b1=_0x477c8e[_0x5ab875(0x44b)];}else _0x56ab27=_0x2fa622,_0x81e4b1=[];let _0x31ce7b=this[_0x5ab875(0x22e)];_0x56ab27['forEach'](_0x520621=>{const _0x17303f=_0x5ab875;let _0x3793d4;if(_0x31ce7b[_0x17303f(0x3a5)]){const _0xba1dec=this[_0x17303f(0x316)][_0x17303f(0xf5)](_0x520621,_0x31ce7b);if(!_[_0x17303f(0x16b)](_0xba1dec))throw _0xba1dec['error'];_0x3793d4=_0xba1dec[_0x17303f(0x353)],_0x31ce7b=_0xba1dec['m2Prime'];}else _0x3793d4=_0x520621;this[_0x17303f(0x3ac)](_0x3793d4);}),this[_0x5ab875(0x36a)]&&this[_0x5ab875(0x1db)](),this['_awaitingChangeset']&&_0x81e4b1[_0x5ab875(0x3a5)]&&(_0x81e4b1[0x0][_0x5ab875(0x142)]=this[_0x5ab875(0x1b9)]());let _0x5c9dea;if(this[_0x5ab875(0xbc)]&&_0x31ce7b[_0x5ab875(0x3a5)]!==0x0)_0x5c9dea=this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](k,this[_0x5ab875(0x438)],this['type'],_0x81e4b1[0x0],_0x31ce7b,this[_0x5ab875(0x1ad)]);else{if(this[_0x5ab875(0xbc)]&&_0x31ce7b[_0x5ab875(0x3a5)]===0x0)_0x81e4b1[0x0][_0x5ab875(0x142)]=this['_getCurrentRevision'](),_0x5c9dea=this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](W,this[_0x5ab875(0x438)],this[_0x5ab875(0x3a4)],_0x81e4b1[0x0],this['_handler']);else{if(_0x31ce7b['length']!==0x0){const _0x3030ba=this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](x,this[_0x5ab875(0x438)],this['type'],_0x31ce7b,this['_handler']);_0x3030ba[_0x5ab875(0x42e)](),_0x5c9dea=_0x3030ba;}else _0x5c9dea=this['_injector'][_0x5ab875(0xbe)](se,this[_0x5ab875(0x438)],this[_0x5ab875(0x3a4)],this[_0x5ab875(0x1ad)]);}}return _0x5c9dea[_0x5ab875(0x312)](),_0x5c9dea;}catch(_0x89339d){return this[_0x5ab875(0x42d)][_0x5ab875(0x442)](_0x5ab875(0x35a),_0x5ab875(0x310),_0x89339d),this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](F,this[_0x5ab875(0x438)],this[_0x5ab875(0x3a4)],this[_0x5ab875(0xbc)],this['_pendingMutations'],this[_0x5ab875(0x1ad)],!0x1);}}[_0x3a2165(0x462)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3a2165(0x32c)](_0x706c61){const _0x2bbd32=_0x3a2165;return this[_0x2bbd32(0x22e)]['push'](_0x706c61),this;}[_0x3a2165(0x336)](_0x30ef26){const _0x2e12fc=_0x3a2165;return this[_0x2e12fc(0x214)]['push'](_0x30ef26),this;}[_0x3a2165(0x2e1)](_0x7d6970){const _0x524282=_0x3a2165;if(this[_0x524282(0xbc)])return this['_acknowledgedAwaitingChangeset']=this[_0x524282(0xbc)],this[_0x524282(0xbc)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x3a2165(0x3f7)](_0x413127){const _0x18ff9c=_0x3a2165;return this[_0x18ff9c(0x99)](!!(_0x413127!=null&&_0x413127[_0x18ff9c(0x146)]));}['toggleOffline'](){const _0x4ff528=_0x3a2165;return this['_injector']['createInstance'](G,this['unitID'],this[_0x4ff528(0x3a4)],this[_0x4ff528(0xbc)],this['_pendingMutations'],this[_0x4ff528(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x99)](_0x18f0af){const _0x45d991=_0x3a2165;return this[_0x45d991(0x3be)][_0x45d991(0xbe)](F,this[_0x45d991(0x438)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x45d991(0x1ad)],_0x18f0af);}};H=z([g(0x7,a[_0x3a2165(0x426)](a['Injector'])),g(0x8,a[_0x3a2165(0x426)](_['RevisionService'])),g(0x9,a['Inject'](exports[_0x3a2165(0x30d)])),g(0xa,a[_0x3a2165(0x490)]),g(0xb,a[_0x3a2165(0x3e2)]),g(0xc,a[_0x3a2165(0x244)]),g(0xd,_[_0x3a2165(0xc6)])],H);function Rt(_0x24e969,_0x3c5414,_0x3a02eb,_0x597601,_0x12c513,_0x37cc63){const _0xe2a7dd=_0x3a2165;return _0x597601&&_0x12c513[_0xe2a7dd(0x3a5)]?_0x24e969[_0xe2a7dd(0xbe)](k,_0x3c5414,_0x3a02eb,_0x597601,_0x12c513,_0x37cc63):_0x597601?_0x24e969[_0xe2a7dd(0xbe)](W,_0x3c5414,_0x3a02eb,_0x597601,_0x37cc63):_0x12c513['length']?_0x24e969[_0xe2a7dd(0xbe)](x,_0x3c5414,_0x3a02eb,_0x12c513,_0x37cc63):_0x24e969[_0xe2a7dd(0xbe)](se,_0x3c5414,_0x3a02eb,_0x37cc63);}var Hs=Object[_0x3a2165(0x1e2)],xs=Object[_0x3a2165(0x383)],Ke=(_0x147839,_0x45eaa3,_0x6321ae,_0x580204)=>{const _0x30950d=_0x3a2165;for(var _0x136f48=_0x580204>0x1?void 0x0:_0x580204?xs(_0x45eaa3,_0x6321ae):_0x45eaa3,_0x2e5646=_0x147839[_0x30950d(0x3a5)]-0x1,_0x4aaf05;_0x2e5646>=0x0;_0x2e5646--)(_0x4aaf05=_0x147839[_0x2e5646])&&(_0x136f48=(_0x580204?_0x4aaf05(_0x45eaa3,_0x6321ae,_0x136f48):_0x4aaf05(_0x136f48))||_0x136f48);return _0x580204&&_0x136f48&&Hs(_0x45eaa3,_0x6321ae,_0x136f48),_0x136f48;},I=(_0xd046a,_0x1a0110)=>(_0x4809e1,_0x28cd18)=>_0x1a0110(_0x4809e1,_0x28cd18,_0xd046a);exports[_0x3a2165(0x117)]=class extends a[_0x3a2165(0x441)]{constructor(_0x1a3143,_0x7442a9,_0x3a1a09,_0x224c49,_0x4e111b,_0x1190c2,_0x1bf0d0,_0x13a5ac,_0x1bece6,_0x51b462,_0x367faa,_0x5a3cbc,_0x624d63){const _0x40e016=_0x3a2165;super(),d(this,_0x40e016(0x1f3),new v[(_0x40e016(0x2f5))](null)),d(this,_0x40e016(0x32a),this['_state$']['asObservable']()),d(this,_0x40e016(0x4ab)),d(this,_0x40e016(0x10e),!0x1),d(this,_0x40e016(0x3fb),this[_0x40e016(0x32a)][_0x40e016(0x447)](v[_0x40e016(0x331)](_0x2a22c1=>_0x2a22c1?_0x2a22c1[_0x40e016(0x492)]:y[_0x40e016(0x299)]),v[_0x40e016(0x282)](0x1))),d(this,_0x40e016(0x1c9),!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0x40e016(0x438)]=_0x1a3143,this[_0x40e016(0x1c3)]=_0x7442a9,this[_0x40e016(0x346)]=_0x3a1a09,this[_0x40e016(0x3be)]=_0x224c49,this[_0x40e016(0x1e8)]=_0x4e111b,this[_0x40e016(0x49c)]=_0x1190c2,this['_localeService']=_0x1bf0d0,this[_0x40e016(0x2d0)]=_0x13a5ac,this[_0x40e016(0x42d)]=_0x1bece6,this[_0x40e016(0x3de)]=_0x51b462,this[_0x40e016(0x2bb)]=_0x367faa,this[_0x40e016(0x1cb)]=_0x5a3cbc,this['_singleActiveUnitService']=_0x624d63);}get[_0x3a2165(0xaa)](){const _0x327362=_0x3a2165;return this[_0x327362(0x4ab)];}async[_0x3a2165(0x4a9)](){const _0x250661=_0x3a2165;if(this[_0x250661(0xaa)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x250661(0x1d9)]();}[_0x3a2165(0x33e)](){const _0xd1da76=_0x3a2165;return this[_0xd1da76(0x10e)]=!0x0,a['toDisposable'](()=>{const _0x361e15=_0xd1da76;this[_0x361e15(0x10e)]=!0x1,this[_0x361e15(0x3d9)]();});}[_0x3a2165(0xee)](_0x4b6543){const _0x4f94c3=_0x3a2165;this[_0x4f94c3(0x4ab)]=_0x4b6543,this[_0x4f94c3(0x1f3)][_0x4f94c3(0x2c6)](_0x4b6543);}async[_0x3a2165(0x1d9)](){const _0x3eda2d=_0x3a2165;var _0x3c147b;this[_0x3eda2d(0xee)](await this[_0x3eda2d(0x13b)]()),this['_singleActiveUnitService']&&((_0x3c147b=this[_0x3eda2d(0xb6)])==null||_0x3c147b[_0x3eda2d(0x3ef)](this[_0x3eda2d(0x438)]),this[_0x3eda2d(0x167)](this[_0x3eda2d(0xb6)][_0x3eda2d(0x245)](this[_0x3eda2d(0x438)])[_0x3eda2d(0x1ee)](_0x31eb2b=>{const _0x3ac422=_0x3eda2d;this[_0x3ac422(0x42d)]['debug'](_0x3ac422(0xbb),'editing\x20status\x20changed\x20to',_0x31eb2b),_0x31eb2b===bt[_0x3ac422(0xa4)]?(this[_0x3ac422(0x2bb)][_0x3ac422(0x113)]({'content':this[_0x3ac422(0x1d6)]['t'](_0x3ac422(0x4b9)),'type':X[_0x3ac422(0x388)]['Warning']}),this['_permissionService'][_0x3ac422(0x33f)](new C[(_0x3ac422(0x1c4))](this[_0x3ac422(0x438)])['id'],!0x1)):this[_0x3ac422(0x1cb)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this[_0x3ac422(0x438)])['id'],!0x0);})));let _0xc33a61=!0x1;return this[_0x3eda2d(0x167)](this['session'][_0x3eda2d(0x1df)][_0x3eda2d(0x1ee)](_0x4b733f=>{const _0x8777e3=_0x3eda2d;_0x4b733f===$['ONLINE']?this['_toggleOnline'](_0xc33a61):_0x4b733f===$[_0x8777e3(0x299)]&&(_0xc33a61=!0x0,this[_0x8777e3(0x46b)]());})),this[_0x3eda2d(0x167)](this['session'][_0x3eda2d(0x354)][_0x3eda2d(0x1ee)](_0x43cc91=>{const _0x4f6145=_0x3eda2d;try{switch(_0x43cc91[_0x4f6145(0x217)]){case _[_0x4f6145(0x39b)][_0x4f6145(0x3bd)]:{this['_onRemoteChangeset'](_['parseProtocolChangeset'](_0x43cc91[_0x4f6145(0x124)]));break;}case _[_0x4f6145(0x39b)][_0x4f6145(0x476)]:{this[_0x4f6145(0x270)](_0x43cc91[_0x4f6145(0x124)]);break;}case _['CollaborationEvent'][_0x4f6145(0x179)]:{this[_0x4f6145(0xb0)]();break;}case _['CollaborationEvent'][_0x4f6145(0x17a)]:{this[_0x4f6145(0x32d)](_0x43cc91[_0x4f6145(0x124)]['changesets'][_0x4f6145(0x331)](_0x3f9d2a=>_['parseProtocolChangeset'](_0x3f9d2a)));break;}case _['CollaborationEvent']['PERMISSION_REJ']:this[_0x4f6145(0xb0)]({'isPermissionRej':!0x0});}}catch(_0x127739){throw console[_0x4f6145(0x442)](_0x4f6145(0x36c),_0x127739),_0x127739;}})),this[_0x3eda2d(0x4ab)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x3a2165(0x120)](){const _0x38ba4f=_0x3a2165;if(this['_transitionLocked'])throw new Error(_0x38ba4f(0x454));this[_0x38ba4f(0x1c9)]=!0x0;}[_0x3a2165(0x27f)](_0x41cac5){const _0x8d5200=_0x3a2165;this[_0x8d5200(0x120)](),this[_0x8d5200(0xee)](this[_0x8d5200(0x4ab)][_0x8d5200(0x32c)](_0x41cac5)),this[_0x8d5200(0x2f7)]();}[_0x3a2165(0x185)](_0x2af7a5){const _0x53797b=_0x3a2165;if(!(_0x2af7a5[_0x53797b(0x251)]<=this[_0x53797b(0x2d0)]['getCurrentRevOfUnit'](this[_0x53797b(0x438)]))){if(this['_collaborationPaused']){this[_0x53797b(0x2e3)]['push'](_0x2af7a5);return;}this[_0x53797b(0x1aa)](_0x2af7a5);}}[_0x3a2165(0x3d9)](){const _0x4037b8=_0x3a2165;this[_0x4037b8(0x2e3)][_0x4037b8(0x337)](_0x14feab=>this[_0x4037b8(0x1aa)](_0x14feab)),this[_0x4037b8(0x2e3)]=[];}[_0x3a2165(0x1aa)](_0x547ca3){const _0x5dae45=_0x3a2165,_0x3ce0e6=this[_0x5dae45(0x49c)][_0x5dae45(0x12f)][_0x5dae45(0x283)](this[_0x5dae45(0x49c)][_0x5dae45(0x12f)][_0x5dae45(0x23c)]()['COMPRESS_MUTATION_APPLY'])(_0x547ca3[_0x5dae45(0x31e)],null)||_0x547ca3[_0x5dae45(0x31e)],_0xe8cc5c={..._0x547ca3,'mutations':_0x3ce0e6};this[_0x5dae45(0x120)](),this[_0x5dae45(0xee)](this[_0x5dae45(0x4ab)][_0x5dae45(0x336)](_0xe8cc5c)),this[_0x5dae45(0x2f7)]();}[_0x3a2165(0x270)](_0x316337){const _0x2cf2e5=_0x3a2165;this['_lockTransition'](),this[_0x2cf2e5(0xee)](this[_0x2cf2e5(0x4ab)][_0x2cf2e5(0x2e1)](_0x316337)),this[_0x2cf2e5(0x2f7)]();}[_0x3a2165(0xb0)](_0x3a5410){const _0x5f4634=_0x3a2165;this[_0x5f4634(0x120)](),this['_updateState'](this[_0x5f4634(0x4ab)][_0x5f4634(0x3f7)](_0x3a5410)),this[_0x5f4634(0x2f7)]();}['_onFetchMissResult'](_0x54d90a){const _0x16a105=_0x3a2165;if(!(this[_0x16a105(0x4ab)]instanceof H))throw new TypeError(_0x16a105(0x3fc));const _0x1791ef=_0x54d90a['map'](_0x413487=>{const _0xfd0928=_0x16a105,_0x27541a=this[_0xfd0928(0x49c)][_0xfd0928(0x12f)][_0xfd0928(0x283)](this[_0xfd0928(0x49c)][_0xfd0928(0x12f)]['getInterceptPoints']()[_0xfd0928(0x458)])(_0x413487[_0xfd0928(0x31e)],null)||_0x413487[_0xfd0928(0x31e)];return{..._0x413487,'mutations':_0x27541a};});this[_0x16a105(0x120)](),this[_0x16a105(0xee)](this['_state'][_0x16a105(0x1f6)](_0x1791ef)),this[_0x16a105(0x2f7)]();}[_0x3a2165(0x46b)](){const _0x5beaba=_0x3a2165;this[_0x5beaba(0x120)](),this['_updateState'](this['_state']['toggleOffline']()),this[_0x5beaba(0x2f7)]();}[_0x3a2165(0x154)](_0x2ce9a7=!0x1){const _0x5cb1b5=_0x3a2165;this[_0x5cb1b5(0x120)](),this['_updateState'](this['_state'][_0x5cb1b5(0x1e0)]()),this['_unlockTransition']();const _0x46dd0a=this[_0x5cb1b5(0x4ab)];_0x2ce9a7&&_0x46dd0a instanceof se&&(this['_lockTransition'](),this['_updateState'](_0x46dd0a['fetchMiss']()),this[_0x5cb1b5(0x2f7)]());}async[_0x3a2165(0x13b)](){return new Promise(_0x530a81=>{const _0x2d2e76=_0x4ca1;this['session']['sessionStatus$'][_0x2d2e76(0x447)](v['take'](0x1))['subscribe'](async _0x147d02=>{const _0x7bc555=_0x2d2e76;_0x530a81(await this[_0x7bc555(0x395)](_0x147d02===$[_0x7bc555(0x1ae)]));});});}[_0x3a2165(0x3d0)](){const _0x39eb55=_0x3a2165,_0x96fad0=this[_0x39eb55(0x438)];return{'onStateChange':(_0x208f7f,_0x5c8d50)=>{const _0x48d11d=_0x39eb55;if(_0x208f7f!==this[_0x48d11d(0x4ab)])throw new Error(_0x48d11d(0x37e)+_0x208f7f[_0x48d11d(0x492)]+_0x48d11d(0x190)+_0x5c8d50[_0x48d11d(0x492)]+_0x48d11d(0x3ad)+this[_0x48d11d(0x4ab)][_0x48d11d(0x492)]);this['_updateState'](_0x5c8d50);},'onSendChangeset':_0x46379c=>{const _0xc36608=_0x39eb55,_0x41b0d1={'eventID':_[_0xc36608(0x39b)][_0xc36608(0xc1)],'data':{'unitID':_0x46379c[_0xc36608(0x438)],'unitType':this['_type'],'changeset':_0x46379c,'memberID':this[_0xc36608(0x1c3)][_0xc36608(0x446)]()}};this['session']['send'](_0x41b0d1,this[_0xc36608(0x438)]);},'onMissingChangesets':({from:_0x3c68ff,to:_0xe2fe08})=>{const _0x17d0de=_0x39eb55;this[_0x17d0de(0x42d)][_0x17d0de(0x3aa)](_0x17d0de(0xbb),'fetching\x20missing\x20changesets\x20from\x20'+_0x3c68ff+_0x17d0de(0x118)+_0xe2fe08);const _0x3415aa={'eventID':_[_0x17d0de(0x39b)][_0x17d0de(0x484)],'data':{'unitID':_0x96fad0,'unitType':this['_type'],'from':_0x3c68ff,'to':_0xe2fe08}};this[_0x17d0de(0x1c3)][_0x17d0de(0x27d)](_0x3415aa,this[_0x17d0de(0x438)]);}};}async['_createInitialStateImpl'](_0x35340b){const _0x45d5d7=_0x3a2165;var _0x402c44,_0x23d1d6;const _0x194508=await this[_0x45d5d7(0x1e8)][_0x45d5d7(0x152)](this[_0x45d5d7(0x438)]),_0x1fba1b=(_0x402c44=_0x194508==null?void 0x0:_0x194508['mutations'])!=null?_0x402c44:[],_0x443fb8=(_0x23d1d6=_0x194508==null?void 0x0:_0x194508[_0x45d5d7(0x3e7)])!=null?_0x23d1d6:null,_0x4907f4=this[_0x45d5d7(0x438)];try{this[_0x45d5d7(0x44f)](_0x443fb8,_0x1fba1b);}catch(_0x4b3886){this[_0x45d5d7(0x42d)][_0x45d5d7(0x442)](_0x4b3886);}const _0x159541=this[_0x45d5d7(0x3d0)]();if(_0x35340b){const _0x1bf2b5=Rt(this[_0x45d5d7(0x3be)],_0x4907f4,this[_0x45d5d7(0x346)],_0x443fb8,_0x1fba1b,_0x159541);return _0x1bf2b5 instanceof x?_0x1bf2b5[_0x45d5d7(0x42e)]():(_0x1bf2b5 instanceof k||_0x1bf2b5 instanceof W)&&_0x1bf2b5[_0x45d5d7(0x462)](),_0x1bf2b5;}return this[_0x45d5d7(0x3be)][_0x45d5d7(0xbe)](G,_0x4907f4,this[_0x45d5d7(0x346)],_0x443fb8,_0x1fba1b,_0x159541);}[_0x3a2165(0x44f)](_0x446636,_0x357834){const _0x1b3eb6=_0x3a2165;var _0x5952af,_0x5e981b;const _0x57eace=this['_compressMutationService'][_0x1b3eb6(0x12f)][_0x1b3eb6(0x283)](this[_0x1b3eb6(0x49c)][_0x1b3eb6(0x12f)]['getInterceptPoints']()[_0x1b3eb6(0x458)]);(_0x5952af=_0x57eace((_0x446636==null?void 0x0:_0x446636[_0x1b3eb6(0x31e)])||[],null))==null||_0x5952af[_0x1b3eb6(0x337)](_0x2ae1c6=>this[_0x1b3eb6(0x3de)][_0x1b3eb6(0x1c2)](_0x2ae1c6['id'],_0x2ae1c6['params'])),(_0x5e981b=_0x57eace(_0x357834||[],null))==null||_0x5e981b[_0x1b3eb6(0x337)](_0x290caf=>this['_commandService'][_0x1b3eb6(0x1c2)](_0x290caf['id'],_0x290caf[_0x1b3eb6(0x101)]));}},exports['CollaborationEntity']=Ke([I(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),I(0x4,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),I(0x5,a[_0x3a2165(0x426)](_[_0x3a2165(0x2c1)])),I(0x6,a[_0x3a2165(0x426)](a['LocaleService'])),I(0x7,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),I(0x8,a[_0x3a2165(0x490)]),I(0x9,a['ICommandService']),I(0xa,N[_0x3a2165(0x39e)]),I(0xb,a[_0x3a2165(0x277)]),I(0xc,a['Optional'](be))],exports[_0x3a2165(0x117)]),exports[_0x3a2165(0x4ba)]=class extends exports[_0x3a2165(0x117)]{constructor(_0xdbf58,_0x347e70,_0x4e684d,_0x5b2a2b,_0x5d432f,_0x1babaf,_0x379944,_0x48af54,_0x364bf1,_0x4746ca,_0x3562bc,_0x215074,_0x36349c,_0x313a24,_0x3c1908,_0x202f02,_0x241647){const _0x28ddd9=_0x3a2165;super(_0xdbf58,_0x4e684d,_0x347e70,_0x5b2a2b,_0x5d432f,_0x1babaf,_0x379944,_0x48af54,_0x36349c,_0x313a24,_0x3c1908,_0x202f02,_0x241647),this[_0x28ddd9(0x438)]=_0xdbf58,this['type']=_0x347e70,this[_0x28ddd9(0x16e)]=_0x364bf1,this['_docTransformIMECacheService']=_0x4746ca,this[_0x28ddd9(0x1e3)]=_0x3562bc,this[_0x28ddd9(0x374)]=_0x215074;}[_0x3a2165(0x3d0)](){const _0x55864f=_0x3a2165,_0x46a748=super['_createHandler']();return _0x46a748['onTransformIME']=_0x4d8825=>this['_docTransformIMECacheService'][_0x55864f(0x107)](_0x4d8825),_0x46a748[_0x55864f(0x345)]=_0x29dfb7=>this[_0x55864f(0x1e3)][_0x55864f(0x289)](_0x29dfb7),_0x46a748[_0x55864f(0x29a)]=_0x5e65b7=>this[_0x55864f(0x374)]['syncEditingCollabCursor'](_0x5e65b7),_0x46a748[_0x55864f(0x2dd)]=_0x4a3996=>this[_0x55864f(0x4ae)][_0x55864f(0x1f9)](_0x4a3996),_0x46a748;}async[_0x3a2165(0x1d9)](){const _0x1964d4=_0x3a2165,_0x342387=await super[_0x1964d4(0x1d9)]();return this[_0x1964d4(0x167)](this[_0x1964d4(0x3de)][_0x1964d4(0x44e)]((_0x8332b9,_0x4963bc)=>{const _0x1f8cd8=_0x1964d4;if(_0x8332b9['type']!==a[_0x1f8cd8(0x303)][_0x1f8cd8(0x178)]||_0x4963bc!=null&&_0x4963bc['fromCollab']||_0x4963bc!=null&&_0x4963bc[_0x1f8cd8(0x47c)])return;const _0x55f69e=_0x8332b9[_0x1f8cd8(0x101)];if((_0x55f69e==null?void 0x0:_0x55f69e[_0x1f8cd8(0xec)])!==this[_0x1f8cd8(0x438)])return;let _0x5ee744=_0x8332b9;if(_0x5ee744['id']===V['RichTextEditingMutation']['id']){const _0x342ce2=_0x5ee744[_0x1f8cd8(0x101)];_0x5ee744={'id':V[_0x1f8cd8(0x21d)]['id'],'type':a['CommandType'][_0x1f8cd8(0x178)],'params':{'unitId':_0x342ce2[_0x1f8cd8(0xec)],'actions':_0x342ce2[_0x1f8cd8(0x3a9)],'textRanges':null}};}const _0x3c34bf=this[_0x1f8cd8(0x49c)]['interceptor'][_0x1f8cd8(0x283)](this['_compressMutationService'][_0x1f8cd8(0x12f)][_0x1f8cd8(0x23c)]()['COMPRESS_MUTATION_SEND'])([_0x5ee744],null)||[_0x5ee744];this[_0x1f8cd8(0x27f)](_0x3c34bf[0x0]);})),_0x342387;}},exports['DocCollaborationEntity']=Ke([I(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),I(0x4,a['Inject'](exports[_0x3a2165(0x30d)])),I(0x5,a['Inject'](_[_0x3a2165(0x2c1)])),I(0x6,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),I(0x7,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),I(0x8,a[_0x3a2165(0x426)](w['DocStateChangeManagerService'])),I(0x9,a['Inject'](fe)),I(0xa,a[_0x3a2165(0x426)](me)),I(0xb,a[_0x3a2165(0x426)](Ye)),I(0xc,a[_0x3a2165(0x490)]),I(0xd,a[_0x3a2165(0x3e2)]),I(0xe,N['IMessageService']),I(0xf,a[_0x3a2165(0x277)]),I(0x10,a['Optional'](be))],exports['DocCollaborationEntity']),exports[_0x3a2165(0x437)]=class extends exports[_0x3a2165(0x117)]{constructor(_0xb4bcf4,_0x2444c9,_0x451195,_0x15d589,_0x4aa3e5,_0x1595c8,_0x1cb76a,_0x1fd431,_0x3fdd7e,_0x5d56cd,_0xc3d262,_0x2961b3,_0x42c59e,_0x475d83){const _0x3ecf86=_0x3a2165;super(_0xb4bcf4,_0x451195,_0x2444c9,_0x15d589,_0x4aa3e5,_0x1595c8,_0x1cb76a,_0x1fd431,_0x5d56cd,_0xc3d262,_0x2961b3,_0x42c59e,_0x475d83),this[_0x3ecf86(0x438)]=_0xb4bcf4,this[_0x3ecf86(0x3a4)]=_0x2444c9,this[_0x3ecf86(0x2be)]=_0x3fdd7e;}[_0x3a2165(0x3d0)](){const _0x2a5f78=_0x3a2165,_0x3a105d=super['_createHandler']();return _0x3a105d['onTransformSelections']=_0x282af2=>this[_0x2a5f78(0x2be)][_0x2a5f78(0x289)](_0x282af2),_0x3a105d;}async[_0x3a2165(0x1d9)](){const _0x5298aa=_0x3a2165,_0x495feb=await super[_0x5298aa(0x1d9)]();return this[_0x5298aa(0x167)](this['_commandService'][_0x5298aa(0x44e)]((_0x1615ea,_0x196edd)=>{const _0x453e8b=_0x5298aa;if(_0x1615ea[_0x453e8b(0x3a4)]!==a[_0x453e8b(0x303)][_0x453e8b(0x178)]||_0x196edd!=null&&_0x196edd[_0x453e8b(0x3ee)]||_0x196edd!=null&&_0x196edd['onlyLocal'])return;const _0x2eb5d3=_0x1615ea[_0x453e8b(0x101)];if((_0x2eb5d3==null?void 0x0:_0x2eb5d3[_0x453e8b(0xec)])!==this['unitID'])return;const _0x3f8438=_0x1615ea,_0x142c17=this['_compressMutationService'][_0x453e8b(0x12f)]['fetchThroughInterceptors'](this[_0x453e8b(0x49c)][_0x453e8b(0x12f)][_0x453e8b(0x23c)]()[_0x453e8b(0x48e)])([_0x3f8438],null)||[_0x3f8438];this[_0x453e8b(0x27f)](_0x142c17[0x0]);})),_0x495feb;}},exports[_0x3a2165(0x437)]=Ke([I(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),I(0x4,a[_0x3a2165(0x426)](exports['LocalCacheService'])),I(0x5,a[_0x3a2165(0x426)](_[_0x3a2165(0x2c1)])),I(0x6,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),I(0x7,a['Inject'](_[_0x3a2165(0xc9)])),I(0x8,a[_0x3a2165(0x426)](ge)),I(0x9,a[_0x3a2165(0x490)]),I(0xa,a['ICommandService']),I(0xb,N[_0x3a2165(0x39e)]),I(0xc,a[_0x3a2165(0x277)]),I(0xd,a['Optional'](be))],exports[_0x3a2165(0x437)]);var ks=Object[_0x3a2165(0x1e2)],Bs=Object['getOwnPropertyDescriptor'],Vs=(_0xa96759,_0x7f1e7d,_0x4f6ac2,_0x520438)=>{const _0x3808c0=_0x3a2165;for(var _0x2911f6=_0x520438>0x1?void 0x0:_0x520438?Bs(_0x7f1e7d,_0x4f6ac2):_0x7f1e7d,_0x3315b6=_0xa96759[_0x3808c0(0x3a5)]-0x1,_0x1a94bf;_0x3315b6>=0x0;_0x3315b6--)(_0x1a94bf=_0xa96759[_0x3315b6])&&(_0x2911f6=(_0x520438?_0x1a94bf(_0x7f1e7d,_0x4f6ac2,_0x2911f6):_0x1a94bf(_0x2911f6))||_0x2911f6);return _0x520438&&_0x2911f6&&ks(_0x7f1e7d,_0x4f6ac2,_0x2911f6),_0x2911f6;},Ue=(_0x39a247,_0x9b9bbc)=>(_0x1c8b79,_0x49dcc1)=>_0x9b9bbc(_0x1c8b79,_0x49dcc1,_0x39a247);exports[_0x3a2165(0x31d)]=class extends a[_0x3a2165(0x441)]{constructor(_0x356130,_0x1b783b,_0x50ac4b){const _0x3bd43f=_0x3a2165;super(),d(this,_0x3bd43f(0x17e),new Map()),d(this,'_entityInit$',new v[(_0x3bd43f(0x28d))]()),(this[_0x3bd43f(0x3be)]=_0x356130,this[_0x3bd43f(0x1b1)]=_0x1b783b,this['_univerInstanceService']=_0x50ac4b,this['_init']());}[_0x3a2165(0x491)](){const _0x7fc04d=_0x3a2165;super['dispose'](),this['_entities'][_0x7fc04d(0x337)](_0x30458a=>_0x30458a[_0x7fc04d(0x491)]()),this[_0x7fc04d(0x17e)][_0x7fc04d(0x3cc)]();}[_0x3a2165(0xb9)](_0x3d8a4a){const _0x34dcc6=_0x3a2165;var _0x51a414;return(_0x51a414=this[_0x34dcc6(0x17e)][_0x34dcc6(0x305)](_0x3d8a4a))!=null?_0x51a414:null;}[_0x3a2165(0xfa)](_0x3ca0ad){const _0x519500=_0x3a2165,_0x5b04b4=this[_0x519500(0xb9)](_0x3ca0ad);return _0x5b04b4?v['of'](_0x5b04b4):this[_0x519500(0x422)]['pipe'](E[_0x519500(0xe8)](_0x3da9f6=>_0x3da9f6[_0x519500(0x438)]===_0x3ca0ad));}[_0x3a2165(0x1d9)](){const _0x23d022=_0x3a2165;this['_univerInstanceService'][_0x23d022(0x31c)](a[_0x23d022(0x461)]['UNIVER_SHEET'])[_0x23d022(0x447)](v[_0x23d022(0x27a)](this[_0x23d022(0x15a)]),E['delay'](0x10))[_0x23d022(0x1ee)](async _0x485a16=>{const _0x31af5d=_0x23d022,_0x1a5553=_0x485a16[_0x31af5d(0x3ae)](),_0x5c9bba=await this[_0x31af5d(0x2ab)](_0x1a5553,j[_0x31af5d(0x21f)]);this[_0x31af5d(0x17e)][_0x31af5d(0x194)](_0x1a5553,_0x5c9bba);}),this['_univerInstanceService'][_0x23d022(0x31c)](a[_0x23d022(0x461)][_0x23d022(0x34e)])['pipe'](v[_0x23d022(0x27a)](this[_0x23d022(0x15a)]),E[_0x23d022(0xc2)](0x10))[_0x23d022(0x447)](E['filter'](_0x27d3b7=>!_0x27d3b7[_0x23d022(0x3ae)]()['startsWith']('__')))[_0x23d022(0x1ee)](async _0x4ee5b1=>{const _0x104f36=_0x23d022,_0x18a1b8=_0x4ee5b1[_0x104f36(0x3ae)](),_0x1fbbb0=await this[_0x104f36(0x2ab)](_0x18a1b8,j[_0x104f36(0x34e)]);this[_0x104f36(0x17e)]['set'](_0x18a1b8,_0x1fbbb0);}),v[_0x23d022(0x2e2)](this['_univerInstanceService'][_0x23d022(0x30f)](a[_0x23d022(0x461)][_0x23d022(0x21f)]),this[_0x23d022(0x406)][_0x23d022(0x30f)](a[_0x23d022(0x461)][_0x23d022(0x34e)]))['pipe'](v['takeUntil'](this[_0x23d022(0x15a)]))[_0x23d022(0x1ee)](_0x17b4e7=>{const _0x4b6482=_0x23d022,_0x294ff8=_0x17b4e7[_0x4b6482(0x3ae)](),_0x5cdbc5=this[_0x4b6482(0x17e)][_0x4b6482(0x305)](_0x294ff8);_0x5cdbc5&&(_0x5cdbc5[_0x4b6482(0x491)](),this[_0x4b6482(0x17e)][_0x4b6482(0x140)](_0x294ff8));});}async['_startCollaboration'](_0x2d6515,_0x5c7d5e){const _0x13587d=_0x3a2165,_0x499ddc=await this[_0x13587d(0x1b1)][_0x13587d(0x41a)](_0x2d6515),_0x41d7b5=this[_0x13587d(0x3be)][_0x13587d(0xbe)](this['_getCtorByUniverType'](_0x5c7d5e),_0x2d6515,_0x5c7d5e,_0x499ddc);return await _0x41d7b5[_0x13587d(0x4a9)](),this[_0x13587d(0x422)]['next'](_0x41d7b5),_0x41d7b5;}['_getCtorByUniverType'](_0x530cdd){const _0x38ff55=_0x3a2165;switch(_0x530cdd){case j['UNIVER_DOC']:return exports[_0x38ff55(0x4ba)];case j['UNIVER_SHEET']:return exports[_0x38ff55(0x437)];default:throw new Error(_0x38ff55(0x1a9)+_0x530cdd);}}},exports[_0x3a2165(0x31d)]=Vs([Ue(0x0,a['Inject'](a[_0x3a2165(0x3b0)])),Ue(0x1,a[_0x3a2165(0x426)](exports[_0x3a2165(0x16c)])),Ue(0x2,a[_0x3a2165(0x137)])],exports[_0x3a2165(0x31d)]);const nt=[_0x3a2165(0x3d8),_0x3a2165(0x37c),_0x3a2165(0x3e9),_0x3a2165(0x1f2),_0x3a2165(0x173),'gold400'];class Xe extends a[_0x3a2165(0x287)]{constructor(){const _0x4d2735=_0x3a2165;super(...arguments),d(this,_0x4d2735(0x222),new Map()),d(this,_0x4d2735(0x36f),0x0);}['assignAColorForMemberID'](_0x16d31b){const _0x3fd159=_0x3a2165;if(this['_assignedColors'][_0x3fd159(0x4ac)](_0x16d31b))return this[_0x3fd159(0x222)][_0x3fd159(0x305)](_0x16d31b);const _0x43dce8=nt[this[_0x3fd159(0x36f)]];return this[_0x3fd159(0x36f)]=(this[_0x3fd159(0x36f)]+0x1)%nt[_0x3fd159(0x3a5)],this[_0x3fd159(0x222)][_0x3fd159(0x194)](_0x16d31b,_0x43dce8),_0x43dce8;}}var Ws=Object['defineProperty'],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x41e927,_0x1d7b39,_0x573ea6,_0x4d3b2e)=>{const _0x5258f6=_0x3a2165;for(var _0x1f624d=_0x4d3b2e>0x1?void 0x0:_0x4d3b2e?Fs(_0x1d7b39,_0x573ea6):_0x1d7b39,_0x3f72fb=_0x41e927[_0x5258f6(0x3a5)]-0x1,_0x46a22a;_0x3f72fb>=0x0;_0x3f72fb--)(_0x46a22a=_0x41e927[_0x3f72fb])&&(_0x1f624d=(_0x4d3b2e?_0x46a22a(_0x1d7b39,_0x573ea6,_0x1f624d):_0x46a22a(_0x1f624d))||_0x1f624d);return _0x4d3b2e&&_0x1f624d&&Ws(_0x1d7b39,_0x573ea6,_0x1f624d),_0x1f624d;},K=(_0x243917,_0x277454)=>(_0x20b568,_0x53a554)=>_0x277454(_0x20b568,_0x53a554,_0x243917);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x3a2165(0x441)]{constructor(_0x16b00f,_0x4b8bd9,_0x3bd535,_0xd4047f,_0x48fac0,_0x1228bc,_0x1cc259,_0x1f8ae3,_0x4f311f){const _0x35aa5f=_0x3a2165;super(),d(this,_0x35aa5f(0x234),!0x1),d(this,_0x35aa5f(0x1d9),!0x1),d(this,_0x35aa5f(0x12a),new v[(_0x35aa5f(0x2f5))](new Map())),d(this,_0x35aa5f(0x46a),this['_cursorInfo$']['asObservable']()),d(this,_0x35aa5f(0x248),new v['BehaviorSubject']([])),d(this,_0x35aa5f(0x455),this['_roomMembers$']['pipe'](v[_0x35aa5f(0x2f4)](Ys))),d(this,_0x35aa5f(0x2d2),a[_0x35aa5f(0xd0)](_0x58559d=>{const _0x55068e=_0x35aa5f,_0x5957ac={'eventID':_['CollaborationEvent'][_0x55068e(0x3f8)],'data':{'unitID':this[_0x55068e(0x438)],'memberID':this[_0x55068e(0x474)][_0x55068e(0x446)](),'selection':Tt(_0x58559d)}};this[_0x55068e(0x474)][_0x55068e(0x27d)](_0x5957ac,this[_0x55068e(0x438)]);},Ks)),(this[_0x35aa5f(0x438)]=_0x16b00f,this[_0x35aa5f(0x474)]=_0x4b8bd9,this['_injector']=_0x3bd535,this[_0x35aa5f(0x372)]=_0xd4047f,this[_0x35aa5f(0x2c3)]=_0x48fac0,this[_0x35aa5f(0x3a1)]=_0x1228bc,this[_0x35aa5f(0x316)]=_0x1cc259,this[_0x35aa5f(0x406)]=_0x1f8ae3,this[_0x35aa5f(0x3de)]=_0x4f311f);}get[_0x3a2165(0x378)](){const _0x473485=_0x3a2165;return this[_0x473485(0x12a)]['getValue']();}get[_0x3a2165(0x33b)](){const _0x392367=_0x3a2165;return this[_0x392367(0x248)][_0x392367(0x3bf)]();}[_0x3a2165(0x491)](){const _0x47d07e=_0x3a2165;super[_0x47d07e(0x491)](),this[_0x47d07e(0x12a)]['next'](new Map()),this['_cursorInfo$'][_0x47d07e(0x41c)](),this[_0x47d07e(0x248)][_0x47d07e(0x2c6)]([]),this[_0x47d07e(0x248)][_0x47d07e(0x41c)]();}[_0x3a2165(0x4a9)](){const _0x1da71f=_0x3a2165;this[_0x1da71f(0x1d9)]||(this[_0x1da71f(0x1d9)]=!0x0,this[_0x1da71f(0x474)][_0x1da71f(0x1df)][_0x1da71f(0x447)](v[_0x1da71f(0x27a)](this[_0x1da71f(0x15a)]))[_0x1da71f(0x1ee)](_0x11b66a=>{const _0x2f456=_0x1da71f;_0x11b66a===$[_0x2f456(0x1ae)]?this['_toggleOnline']():this[_0x2f456(0x46b)]();}),this[_0x1da71f(0x474)][_0x1da71f(0x354)][_0x1da71f(0x447)](v[_0x1da71f(0x27a)](this[_0x1da71f(0x15a)]))[_0x1da71f(0x1ee)](_0x355b10=>{const _0x3a565f=_0x1da71f,_0x279cb0=_0x355b10['eventID'];_0x279cb0===_[_0x3a565f(0x39b)][_0x3a565f(0x3f8)]&&this[_0x3a565f(0x4a7)](_0x355b10),_0x279cb0===_[_0x3a565f(0x39b)][_0x3a565f(0x327)]&&this[_0x3a565f(0x186)](_0x355b10);}),this[_0x1da71f(0x167)](this['_commandService'][_0x1da71f(0x44e)](_0x5a2628=>{const _0x4f9f04=_0x1da71f,_0x3568a4=_0x5a2628[_0x4f9f04(0x101)];_0x3568a4!=null&&this[_0x4f9f04(0x234)]&&_0x5a2628['id']===V[_0x4f9f04(0xdd)]['id']&&_0x3568a4['unitId']===this['unitID']&&_0x3568a4['isEditing']===!0x1&&this[_0x4f9f04(0x2d2)](_0x3568a4['ranges']);})),this[_0x1da71f(0x3a1)]['collabCursorState$'][_0x1da71f(0x447)](v['takeUntil'](this[_0x1da71f(0x15a)]))[_0x1da71f(0x1ee)](_0x25dbe6=>{const _0x3ff65c=_0x1da71f;if((_0x25dbe6==null?void 0x0:_0x25dbe6[_0x3ff65c(0x438)])!==this[_0x3ff65c(0x438)])return;const _0x4e1a8e={'eventID':_[_0x3ff65c(0x39b)][_0x3ff65c(0x3f8)],'data':_0x25dbe6};this['_onCursorUpdate'](_0x4e1a8e);}),this[_0x1da71f(0x167)](this['_commandService'][_0x1da71f(0x44e)](_0x5009b0=>{const _0x4c759e=_0x1da71f;if(_0x5009b0[_0x4c759e(0x101)]==null)return;const _0x352aa6=_0x5009b0[_0x4c759e(0x101)];if(_0x5009b0['id']!==V[_0x4c759e(0x21d)]['id']||_0x352aa6[_0x4c759e(0xec)]!==this[_0x4c759e(0x438)])return;const _0x8e5b5a={'id':'doc.mutation.rich-text-editing','params':_0x352aa6},_0x46aa70=this[_0x4c759e(0x378)];for(const [_0x5394b4,_0x199bbb]of _0x46aa70){const _0x481037={'id':_0x4c759e(0x132),'params':{'unitId':this[_0x4c759e(0x438)],'actions':null,'textRanges':_0x199bbb[_0x4c759e(0x352)]}},_0x535b74=this[_0x4c759e(0x316)]['transformMutation'](_0x8e5b5a,_0x481037,!0x1);if(_[_0x4c759e(0x45c)](_0x535b74))throw _0x535b74['error'];_0x46aa70[_0x4c759e(0x194)](_0x5394b4,{..._0x199bbb,'ranges':_0x535b74['m2Prime'][_0x4c759e(0x101)]['textRanges']});}queueMicrotask(()=>{const _0x1ea398=_0x4c759e;this[_0x1ea398(0x12a)][_0x1ea398(0x2c6)](_0x46aa70);});})));}['_onCursorUpdate'](_0x295164){const _0x259304=_0x3a2165;var _0x2f01b0,_0x48e7cb;const {memberID:_0x3ec1c4,selection:_0x4d3cd2}=_0x295164[_0x259304(0x124)],_0x1d125d=Us(_0x4d3cd2),_0x4c0628=(_0x48e7cb=(_0x2f01b0=this[_0x259304(0x2c3)][_0x259304(0x3c4)](this[_0x259304(0x438)],_0x3ec1c4))==null?void 0x0:_0x2f01b0[_0x259304(0x494)])!=null?_0x48e7cb:_0x259304(0x257),_0x50a749={'color':this[_0x259304(0x372)][_0x259304(0x1d2)](_0x3ec1c4),'name':_0x4c0628,'ranges':_0x1d125d},_0x227ea0=this[_0x259304(0x378)];_0x227ea0[_0x259304(0x194)](_0x3ec1c4,_0x50a749),this['_cursorInfo$'][_0x259304(0x2c6)](_0x227ea0);}[_0x3a2165(0x186)](_0x39e317){const _0x162502=_0x3a2165,{memberID:_0x281f56}=_0x39e317['data'],_0x206aeb=this['cursorInfo'];_0x206aeb[_0x162502(0x140)](_0x281f56),this[_0x162502(0x12a)][_0x162502(0x2c6)](_0x206aeb);}['_toggleOnline'](){const _0x195743=_0x3a2165;var _0x52244d;if(this[_0x195743(0x234)]=!0x0,((_0x52244d=this['_univerInstanceService'][_0x195743(0x1a0)]())==null?void 0x0:_0x52244d[_0x195743(0x3ae)]())!==this[_0x195743(0x438)])return;const _0xb5c640=this[_0x195743(0x3be)][_0x195743(0x305)](V['DocSelectionManagerService'])[_0x195743(0x3b2)]();Array['isArray'](_0xb5c640)&&_0xb5c640['length']>0x0&&this[_0x195743(0x2d2)](_0xb5c640);}['_toggleOffline'](){const _0x2043d2=_0x3a2165;this[_0x2043d2(0x234)]=!0x1;}};$e=Gs([K(0x2,a['Inject'](a[_0x3a2165(0x3b0)])),K(0x3,a[_0x3a2165(0x426)](Xe)),K(0x4,a[_0x3a2165(0x426)](q)),K(0x5,a[_0x3a2165(0x426)](Ye)),K(0x6,_['ITransformService']),K(0x7,a[_0x3a2165(0x137)]),K(0x8,a[_0x3a2165(0x3e2)])],$e);var Xs=Object[_0x3a2165(0x1e2)],qs=Object[_0x3a2165(0x383)],zs=(_0x503c81,_0x412a95,_0x297af0,_0x5d197e)=>{const _0x253aa4=_0x3a2165;for(var _0x20acd2=_0x5d197e>0x1?void 0x0:_0x5d197e?qs(_0x412a95,_0x297af0):_0x412a95,_0x4949e8=_0x503c81[_0x253aa4(0x3a5)]-0x1,_0x4f144f;_0x4949e8>=0x0;_0x4949e8--)(_0x4f144f=_0x503c81[_0x4949e8])&&(_0x20acd2=(_0x5d197e?_0x4f144f(_0x412a95,_0x297af0,_0x20acd2):_0x4f144f(_0x20acd2))||_0x20acd2);return _0x5d197e&&_0x20acd2&&Xs(_0x412a95,_0x297af0,_0x20acd2),_0x20acd2;},Q=(_0x2cbb3a,_0x30270f)=>(_0x247312,_0x390a75)=>_0x30270f(_0x247312,_0x390a75,_0x2cbb3a);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x249c78=[],_0x56b842=!0x1;return _0x480446=>{const _0x2144f5=_0x4ca1;_0x249c78[_0x2144f5(0x339)](_0x480446),_0x56b842||(_0x56b842=!0x0,setTimeout(()=>{const _0x409b89=_0x2144f5;_0x249c78[_0x409b89(0x337)](_0x379212=>_0x379212()),_0x249c78=[],_0x56b842=!0x1;}));};};let He=class extends a[_0x3a2165(0x441)]{constructor(_0xbfb98e,_0x10db15,_0xcd1683,_0x1d252e,_0x2f1cfc,_0x5a6b58,_0x30069e,_0x240c46){const _0x503b4b=_0x3a2165;super(),d(this,'_online',!0x1),d(this,_0x503b4b(0x1d9),!0x1),d(this,_0x503b4b(0x12a),new v['BehaviorSubject'](new Map())),d(this,_0x503b4b(0x46a),this[_0x503b4b(0x12a)][_0x503b4b(0xfd)]()),d(this,'_roomMembers$',new v[(_0x503b4b(0x2f5))]([])),d(this,'roomMembers$',this[_0x503b4b(0x248)][_0x503b4b(0x447)](v['debounceTime'](Js))),d(this,'_updateLocalCursor',a['debounce']((_0x344f92,_0x9152ce)=>{const _0x5c9e38=_0x503b4b,_0x1f6bfc={'eventID':_[_0x5c9e38(0x39b)][_0x5c9e38(0x3f8)],'data':{'unitID':this['unitID'],'memberID':this[_0x5c9e38(0x474)][_0x5c9e38(0x446)](),'selection':Je[_0x5c9e38(0x38e)](_0x344f92,_0x9152ce[_0x5c9e38(0x166)])}};this['_session'][_0x5c9e38(0x27d)](_0x1f6bfc,this['unitID']);},Zs)),(this[_0x503b4b(0x438)]=_0xbfb98e,this['_session']=_0x10db15,this[_0x503b4b(0x3be)]=_0xcd1683,this[_0x503b4b(0x372)]=_0x1d252e,this['_memberService']=_0x2f1cfc,this[_0x503b4b(0x406)]=_0x5a6b58,this[_0x503b4b(0x3de)]=_0x30069e,this[_0x503b4b(0x2c7)]=_0x240c46);}get[_0x3a2165(0x378)](){const _0x58b304=_0x3a2165;return this['_cursorInfo$'][_0x58b304(0x3bf)]();}get[_0x3a2165(0x33b)](){const _0x586c38=_0x3a2165;return this[_0x586c38(0x248)][_0x586c38(0x3bf)]();}[_0x3a2165(0x491)](){const _0x5c1842=_0x3a2165;super[_0x5c1842(0x491)](),this['_cursorInfo$'][_0x5c1842(0x2c6)](new Map()),this[_0x5c1842(0x12a)][_0x5c1842(0x41c)](),this[_0x5c1842(0x248)]['next']([]),this[_0x5c1842(0x248)][_0x5c1842(0x41c)]();}['init'](){const _0x30ae08=_0x3a2165;this['_init']||(this[_0x30ae08(0x1d9)]=!0x0,this[_0x30ae08(0x474)]['sessionStatus$']['pipe'](v[_0x30ae08(0x27a)](this['dispose$']))['subscribe'](_0x39cdd1=>{const _0x1b56e3=_0x30ae08;_0x39cdd1===$[_0x1b56e3(0x1ae)]?this[_0x1b56e3(0x154)]():this['_toggleOffline']();}),this[_0x30ae08(0x474)][_0x30ae08(0x354)][_0x30ae08(0x447)](v[_0x30ae08(0x27a)](this[_0x30ae08(0x15a)]))[_0x30ae08(0x1ee)](_0x32edd3=>{const _0x37c1c8=_0x30ae08,_0x3e0e70=_0x32edd3[_0x37c1c8(0x217)];_0x3e0e70===_[_0x37c1c8(0x39b)][_0x37c1c8(0x3f8)]&&this[_0x37c1c8(0x4a7)](_0x32edd3),_0x3e0e70===_[_0x37c1c8(0x39b)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x32edd3);}),this[_0x30ae08(0x233)](),this['disposeWithMe'](this['_commandService'][_0x30ae08(0x44e)](_0x3f7d6e=>{const _0x182a91=_0x30ae08;if(this[_0x182a91(0x234)]&&_0x3f7d6e['id']===C[_0x182a91(0x3d6)]['id']&&_0x3f7d6e[_0x182a91(0x101)][_0x182a91(0xec)]===this['unitID']){const _0x53408c=_0x3f7d6e[_0x182a91(0x101)];this['_updateLocalCursor'](_0x53408c[_0x182a91(0x41b)],_0x53408c['selections'][0x0]);}})));}[_0x3a2165(0x4a7)](_0x1c7386){const _0x54c0b6=_0x3a2165;var _0x45331d,_0x5549a0;const {memberID:_0x33a0f8,selection:_0x33dafe}=_0x1c7386['data'],{sheetName:_0xe1a2e4,range:_0x5f1def}=Je[_0x54c0b6(0x1e1)](_0x33dafe),_0x324637={'name':(_0x5549a0=(_0x45331d=this['_memberService'][_0x54c0b6(0x3c4)](this['unitID'],_0x33a0f8))==null?void 0x0:_0x45331d[_0x54c0b6(0x494)])!=null?_0x5549a0:'Unknown\x20user','range':this['_getMergeRange'](_0xe1a2e4,_0x5f1def),'sheetID':_0xe1a2e4,'color':this[_0x54c0b6(0x372)]['assignAColorForMemberID'](_0x33a0f8),'selection':_0x33dafe},_0x5651b7=this['cursorInfo'];_0x5651b7[_0x54c0b6(0x194)](_0x33a0f8,_0x324637),this[_0x54c0b6(0x12a)][_0x54c0b6(0x2c6)](_0x5651b7);}[_0x3a2165(0x186)](_0x111830){const _0x36a2c1=_0x3a2165,{memberID:_0x3db4c6}=_0x111830[_0x36a2c1(0x124)],_0x2ee7cb=this[_0x36a2c1(0x378)];_0x2ee7cb[_0x36a2c1(0x140)](_0x3db4c6),this[_0x36a2c1(0x12a)]['next'](_0x2ee7cb);}[_0x3a2165(0x321)](_0x16927f,_0xaa13f7){const _0x251788=_0x3a2165;var _0x36fcd1,_0x3d1abb;const _0x20ffc7=(_0x3d1abb=(_0x36fcd1=this[_0x251788(0x406)][_0x251788(0x14d)](this['unitID']))==null?void 0x0:_0x36fcd1[_0x251788(0x311)](_0x16927f))==null?void 0x0:_0x3d1abb[_0x251788(0x2e4)]();return(_0x20ffc7==null?void 0x0:_0x20ffc7['find'](_0x9fa2ce=>a[_0x251788(0xed)][_0x251788(0x165)](_0x9fa2ce,_0xaa13f7)))||_0xaa13f7;}[_0x3a2165(0x233)](){const _0x2af431=_0x3a2165,_0x30f384=new a[(_0x2af431(0x2eb))](),_0x1888c7=Qs(),_0x1d7c01=()=>{const _0x31150e=_0x2af431;_0x30f384[_0x31150e(0x491)]();const _0x22e942=(_0x4e65b2,_0x1bb1c4,_0x3ec02f,_0x24bbbf)=>{const _0xd0c67=_0x31150e;let _0x3b35b8=[];switch(_0x4e65b2['id']){case C[_0xd0c67(0x369)][_0xd0c67(0x9a)]:{_0x3b35b8=C[_0xd0c67(0x414)](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x44c)]:{_0x3b35b8=C[_0xd0c67(0x1b5)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId'][_0xd0c67(0x467)]:{_0x3b35b8=C[_0xd0c67(0x3e6)](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x4a4)]:{_0x3b35b8=C[_0xd0c67(0x281)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x3b35b8=C[_0xd0c67(0x448)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId']['InsertRowCommandId']:{_0x3b35b8=C['handleInsertRow'](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x460)]:{_0x3b35b8=C[_0xd0c67(0x4bb)](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x318)]:{_0x3b35b8=C[_0xd0c67(0x435)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId'][_0xd0c67(0x3e3)]:{_0x3b35b8=C[_0xd0c67(0x411)](_0x4e65b2,_0x24bbbf);break;}}const _0x35fd2c=C[_0xd0c67(0x121)](_0x3b35b8,_0x24bbbf),_0xe6416f=this['cursorInfo'][_0xd0c67(0x305)](_0x1bb1c4);if(_0xe6416f&&_0x35fd2c){const _0x33ce6c={..._0xe6416f,'range':_0x35fd2c};this[_0xd0c67(0x378)][_0xd0c67(0x194)](_0x1bb1c4,_0x33ce6c),_0x1888c7(()=>{const _0x3198c4=_0xd0c67,_0x33b7be=this[_0x3198c4(0x2c7)][_0x3198c4(0x29b)](_0x35fd2c,_0x17f0f8=>(_0x33b7be[_0x3198c4(0x491)](),_0x22e942(_0x17f0f8,_0x1bb1c4,_0x3ec02f,_0x35fd2c)));_0x30f384[_0x3198c4(0x2e5)](_0x33b7be);});}return{'redos':[],'undos':[]};};this[_0x31150e(0x378)]['forEach']((_0x401d2b,_0x18b871)=>{const _0x593c9d=_0x31150e,{range:_0x1c2966,sheetID:_0x397239}=_0x401d2b,_0x3769b6=this['_refRangeService'][_0x593c9d(0x29b)](_0x1c2966,_0x251a8c=>(_0x3769b6[_0x593c9d(0x491)](),_0x22e942(_0x251a8c,_0x18b871,_0x397239,_0x1c2966)));_0x30f384[_0x593c9d(0x2e5)](_0x3769b6);});};this[_0x2af431(0x167)](a[_0x2af431(0x114)](this[_0x2af431(0x12a)][_0x2af431(0x1ee)](()=>{_0x1d7c01();})));}[_0x3a2165(0x154)](){const _0x267680=_0x3a2165;var _0x1e48f2,_0x110599;if(this['_online']=!0x0,((_0x1e48f2=this[_0x267680(0x406)]['getFocusedUnit']())==null?void 0x0:_0x1e48f2['getUnitId']())!==this['unitID'])return;const _0x272651=(_0x110599=this[_0x267680(0x3be)][_0x267680(0x305)](C['SheetsSelectionsService'])[_0x267680(0x1f0)]())==null?void 0x0:_0x110599[0x0],_0x19967d=this[_0x267680(0x406)]['getCurrentUnitForType'](a[_0x267680(0x461)][_0x267680(0x21f)])[_0x267680(0x23a)]();_0x272651&&_0x19967d&&this['_updateLocalCursor'](_0x19967d['getSheetId'](),_0x272651);}[_0x3a2165(0x46b)](){const _0x2bc23d=_0x3a2165;this[_0x2bc23d(0x234)]=!0x1;}};He=zs([Q(0x2,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),Q(0x3,a[_0x3a2165(0x426)](Xe)),Q(0x4,a['Inject'](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a[_0x3a2165(0x3e2)]),Q(0x7,a[_0x3a2165(0x426)](C[_0x3a2165(0x48a)]))],He);var ei=Object[_0x3a2165(0x1e2)],ti=Object[_0x3a2165(0x383)],si=(_0x312342,_0x17c7c1,_0xa56cf2,_0x5e6aad)=>{const _0x6c76b1=_0x3a2165;for(var _0x14e405=_0x5e6aad>0x1?void 0x0:_0x5e6aad?ti(_0x17c7c1,_0xa56cf2):_0x17c7c1,_0x5bf8f6=_0x312342[_0x6c76b1(0x3a5)]-0x1,_0x280456;_0x5bf8f6>=0x0;_0x5bf8f6--)(_0x280456=_0x312342[_0x5bf8f6])&&(_0x14e405=(_0x5e6aad?_0x280456(_0x17c7c1,_0xa56cf2,_0x14e405):_0x280456(_0x14e405))||_0x14e405);return _0x5e6aad&&_0x14e405&&ei(_0x17c7c1,_0xa56cf2,_0x14e405),_0x14e405;},Pe=(_0x1e717c,_0x2bfba4)=>(_0x58ecc7,_0x2068be)=>_0x2bfba4(_0x58ecc7,_0x2068be,_0x1e717c);let ie=class extends a[_0x3a2165(0x441)]{constructor(_0x4bb235,_0x3e055e,_0x453e1c){const _0x76f9d2=_0x3a2165;super(),d(this,_0x76f9d2(0x17e),new Map()),d(this,_0x76f9d2(0x422),new v[(_0x76f9d2(0x28d))]()),(this[_0x76f9d2(0x406)]=_0x4bb235,this[_0x76f9d2(0x3be)]=_0x3e055e,this[_0x76f9d2(0x1b1)]=_0x453e1c,this[_0x76f9d2(0x1d9)]());}[_0x3a2165(0x491)](){const _0x17e6b3=_0x3a2165;super[_0x17e6b3(0x491)](),this[_0x17e6b3(0x422)][_0x17e6b3(0x41c)](),this[_0x17e6b3(0x17e)]['forEach'](_0x313f2d=>_0x313f2d[_0x17e6b3(0x491)]());}['getCollabCursors$'](_0x3e630a){const _0x396fbb=_0x3a2165;return this[_0x396fbb(0x17e)]['has'](_0x3e630a)?this[_0x396fbb(0x17e)][_0x396fbb(0x305)](_0x3e630a)[_0x396fbb(0x46a)]:this['_entityInit$'][_0x396fbb(0x447)](v[_0x396fbb(0xe8)](_0x26c2b1=>_0x26c2b1[_0x396fbb(0x438)]===_0x3e630a),v[_0x396fbb(0x3d5)](_0x43a052=>_0x43a052[_0x396fbb(0x46a)]));}[_0x3a2165(0x1d9)](){const _0x1ea2e2=_0x3a2165;this[_0x1ea2e2(0x406)]['getTypeOfUnitAdded$'](a[_0x1ea2e2(0x461)][_0x1ea2e2(0x21f)])[_0x1ea2e2(0x447)](v[_0x1ea2e2(0x27a)](this['dispose$']))['subscribe'](async _0x3e36bb=>{const _0x6cc463=_0x1ea2e2,_0x3326c7=_0x3e36bb[_0x6cc463(0x3ae)](),_0x468626=await this['_startSheetCollabCursor'](_0x3326c7);this[_0x6cc463(0x422)][_0x6cc463(0x2c6)](_0x468626),this[_0x6cc463(0x17e)]['set'](_0x3326c7,_0x468626);}),this[_0x1ea2e2(0x406)]['getTypeOfUnitAdded$'](a[_0x1ea2e2(0x461)][_0x1ea2e2(0x34e)])['pipe'](v[_0x1ea2e2(0x27a)](this[_0x1ea2e2(0x15a)]))[_0x1ea2e2(0x447)](v[_0x1ea2e2(0xe8)](_0x66a8c6=>!_0x66a8c6[_0x1ea2e2(0x3ae)]()[_0x1ea2e2(0x452)]('__')))[_0x1ea2e2(0x1ee)](async _0x1fa48e=>{const _0x3bd9ea=_0x1ea2e2,_0xaea9b8=_0x1fa48e['getUnitId'](),_0x513498=await this[_0x3bd9ea(0x1eb)](_0xaea9b8);this['_entityInit$'][_0x3bd9ea(0x2c6)](_0x513498),this[_0x3bd9ea(0x17e)][_0x3bd9ea(0x194)](_0xaea9b8,_0x513498);}),v[_0x1ea2e2(0x2e2)](this[_0x1ea2e2(0x406)]['getTypeOfUnitDisposed$'](a[_0x1ea2e2(0x461)]['UNIVER_DOC']),this[_0x1ea2e2(0x406)]['getTypeOfUnitDisposed$'](a[_0x1ea2e2(0x461)][_0x1ea2e2(0x21f)]))[_0x1ea2e2(0x447)](v[_0x1ea2e2(0x27a)](this[_0x1ea2e2(0x15a)]))[_0x1ea2e2(0x1ee)](_0x2a07a5=>{const _0x3e6b0e=_0x1ea2e2,_0x5195b2=_0x2a07a5['getUnitId'](),_0x15581b=this[_0x3e6b0e(0x17e)][_0x3e6b0e(0x305)](_0x5195b2);_0x15581b&&(_0x15581b['dispose'](),this[_0x3e6b0e(0x17e)][_0x3e6b0e(0x140)](_0x5195b2));});}async[_0x3a2165(0xef)](_0x179ee6){const _0x38cd11=_0x3a2165,_0x551ce5=await this['_collabSessionService'][_0x38cd11(0x41a)](_0x179ee6),_0x1502de=this['_injector'][_0x38cd11(0xbe)](He,_0x179ee6,_0x551ce5);return _0x1502de[_0x38cd11(0x4a9)](),_0x1502de;}async[_0x3a2165(0x1eb)](_0xf81f2c){const _0x3588c1=_0x3a2165,_0x549194=await this[_0x3588c1(0x1b1)][_0x3588c1(0x41a)](_0xf81f2c),_0x52205b=this[_0x3588c1(0x3be)]['createInstance']($e,_0xf81f2c,_0x549194);return _0x52205b[_0x3588c1(0x4a9)](),_0x52205b;}};ie=si([Pe(0x0,a[_0x3a2165(0x137)]),Pe(0x1,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),Pe(0x2,a[_0x3a2165(0x426)](exports['CollaborationSessionService']))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x329eba,_0x486f80){const _0x15bf6e=_0x3a2165;let {radius:_0x27eb16,width:_0xe76b0c,height:_0x1c02fa}=_0x486f80;_0x27eb16=_0x27eb16!=null?_0x27eb16:0x0,_0xe76b0c=_0xe76b0c!=null?_0xe76b0c:0x1e,_0x1c02fa=_0x1c02fa!=null?_0x1c02fa:0x1e;let _0xdeda83=0x0,_0x2f9d0f=0x0,_0x3d77d5=0x0;_0xdeda83=_0x2f9d0f=_0x3d77d5=Math[_0x15bf6e(0x269)](_0x27eb16,_0xe76b0c/0x2,_0x1c02fa/0x2),_0x329eba[_0x15bf6e(0x21a)](),_0x329eba[_0x15bf6e(0xa3)](_0xdeda83,0x0),_0x329eba[_0x15bf6e(0x323)](_0xe76b0c-_0x2f9d0f,0x0),_0x329eba[_0x15bf6e(0x24b)](_0xe76b0c-_0x2f9d0f,_0x2f9d0f,_0x2f9d0f,Math['PI']*0x3/0x2,0x0,!0x1),_0x329eba[_0x15bf6e(0x323)](_0xe76b0c,_0x1c02fa-_0x3d77d5),_0x329eba['arc'](_0xe76b0c-_0x3d77d5,_0x1c02fa-_0x3d77d5,_0x3d77d5,0x0,Math['PI']/0x2,!0x1),_0x329eba[_0x15bf6e(0x323)](0x0,_0x1c02fa),_0x329eba[_0x15bf6e(0x323)](0x0,_0xdeda83),_0x329eba[_0x15bf6e(0x24b)](_0xdeda83,_0xdeda83,_0xdeda83,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x329eba[_0x15bf6e(0x43c)](),_0x486f80[_0x15bf6e(0x268)]&&(_0x329eba[_0x15bf6e(0x19d)](),_0x329eba[_0x15bf6e(0x296)]=_0x486f80['fill'],_0x486f80[_0x15bf6e(0x11c)]==='evenodd'?_0x329eba[_0x15bf6e(0x268)](_0x15bf6e(0x21b)):_0x329eba[_0x15bf6e(0x268)](),_0x329eba[_0x15bf6e(0x1d4)]());}class Te extends R[_0x3a2165(0x450)]{constructor(_0x464710,_0x3b09e1){const _0x40f70d=_0x3a2165;super(_0x464710,_0x3b09e1),d(this,'color'),d(this,'text'),(this[_0x40f70d(0x470)]=_0x3b09e1==null?void 0x0:_0x3b09e1[_0x40f70d(0x470)],this[_0x40f70d(0x1b0)]=_0x3b09e1==null?void 0x0:_0x3b09e1[_0x40f70d(0x1b0)]);}static[_0x3a2165(0x2b6)](_0xf99f17,_0x5767aa){const _0x2461e1=_0x3a2165,{text:_0x314858,color:_0x26acb9}=_0x5767aa;_0xf99f17['save'](),_0xf99f17[_0x2461e1(0x3ec)]=_0x2461e1(0xd5);const _0x350ed5=_0xf99f17['measureText'](_0x314858)[_0x2461e1(0x144)],_0x5d5d30=Math[_0x2461e1(0x269)](_0x350ed5+0x2*we,rt);ni(_0xf99f17,{'height':ue,'radius':0x4,'width':_0x5d5d30,'fill':_0x26acb9,'evented':!0x1}),_0xf99f17['fillStyle']=_0x2461e1(0x294);const _0x179110=we,_0x260504=ue-ii,_0x362d7b=rt-0x2*we;if(_0x350ed5>_0x362d7b){let _0x1ae793='',_0x251224=0x0;for(const _0x142d8f of _0x314858){const _0x239508=_0xf99f17[_0x2461e1(0x199)](_0x142d8f)[_0x2461e1(0x144)];if(_0x251224+_0x239508<=_0x362d7b-_0xf99f17['measureText']('...')[_0x2461e1(0x144)])_0x1ae793+=_0x142d8f,_0x251224+=_0x239508;else{_0x1ae793+=_0x2461e1(0x22d);break;}}_0xf99f17[_0x2461e1(0x3a8)](_0x1ae793,_0x179110,_0x260504);}else _0xf99f17[_0x2461e1(0x3a8)](_0x314858,_0x179110,_0x260504);_0xf99f17[_0x2461e1(0x1d4)]();}[_0x3a2165(0x201)](_0xba753f){const _0x12cd52=_0x3a2165;Te[_0x12cd52(0x2b6)](_0xba753f,this);}}const Me=_0x3a2165(0x133),ri=_0x3a2165(0x1da),oi='collab-rect-range-',ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x3a2165(0x30b);class ot{constructor(_0x30db04,_0x228a4b,_0x2bb644,_0x3cb043){const _0x26eb13=_0x3a2165;d(this,_0x26eb13(0x407),[]),d(this,'_anchor',null),d(this,_0x26eb13(0x459),null),d(this,'_anchorDot',null),d(this,_0x26eb13(0x1a6),null),d(this,_0x26eb13(0x443),null),(this[_0x26eb13(0x153)]=_0x30db04,this['_scene']=_0x228a4b,this['_docSkeleton']=_0x2bb644,this[_0x26eb13(0x4b0)]=_0x3cb043,this[_0x26eb13(0xb5)]());}set[_0x3a2165(0x126)](_0x3bf877){const _0x18e94f=_0x3a2165;_0x3bf877?(this['_anchorDot']&&this[_0x18e94f(0x2f3)]['hide'](),this[_0x18e94f(0x459)]&&this[_0x18e94f(0x459)][_0x18e94f(0x113)]()):(this[_0x18e94f(0x2f3)]&&this[_0x18e94f(0x2f3)][_0x18e94f(0x113)](),this[_0x18e94f(0x459)]&&this[_0x18e94f(0x459)][_0x18e94f(0x2cb)]());}[_0x3a2165(0x491)](){const _0xfc7576=_0x3a2165;for(const _0x22c969 of this[_0xfc7576(0x407)])_0x22c969[_0xfc7576(0x491)]();this[_0xfc7576(0x459)]&&this['_textBubble'][_0xfc7576(0x491)](),this[_0xfc7576(0x2f3)]&&this[_0xfc7576(0x2f3)]['dispose'](),this[_0xfc7576(0x239)]&&this[_0xfc7576(0x239)]['dispose'](),this[_0xfc7576(0x443)]&&this[_0xfc7576(0x443)]();}['_render'](){const _0x413545=_0x3a2165;var _0x1c4f38;const {_docSkeleton:_0x1deeac,_document:_0x551cad}=this,{color:_0x87c11e,name:_0x43b4ae,ranges:_0x5e4e9f}=this['_cursor'],_0x4066b2=_0x551cad[_0x413545(0x141)](),{docsLeft:_0x16e9f3,docsTop:_0x116a72}=_0x4066b2,_0xe21d9b=new w['NodePositionConvertToCursor'](_0x4066b2,_0x1deeac);for(const {startOffset:_0x34fab0,endOffset:_0x3c9857,collapsed:_0x2b8fc2,isActive:_0x3e8ba6}of _0x5e4e9f){const _0x5d6585=_0x1deeac[_0x413545(0x2a8)](_0x34fab0),_0x44e46d=_0x1deeac[_0x413545(0x2a8)](_0x3c9857);if(_0x3e8ba6){const {contentBoxPointGroup:_0x4b6cd0}=_0xe21d9b['getRangePointData'](_0x44e46d,_0x44e46d);if(_0x4b6cd0[_0x413545(0x3a5)]===0x0)continue;this[_0x413545(0x18c)](_0x87c11e,_0x4b6cd0,_0x16e9f3,_0x116a72,_0x43b4ae),this[_0x413545(0x443)]=this['_handleHover']();}if(!_0x2b8fc2&&_0x5d6585&&_0x44e46d){if(w[_0x413545(0x13d)](_0x5d6585,_0x44e46d)){const _0x49760=new w[(_0x413545(0x211))](_0x4066b2,_0x1deeac),{pointGroup:_0x462ebb}=(_0x1c4f38=_0x49760['getRangePointData'](_0x5d6585,_0x44e46d))!=null?_0x1c4f38:{};if(_0x462ebb==null||_0x462ebb[_0x413545(0x3a5)]===0x0)continue;this[_0x413545(0xd8)](_0x87c11e,_0x462ebb,_0x16e9f3,_0x116a72);}else{const {contentBoxPointGroup:_0x1f4e71}=_0xe21d9b['getRangePointData'](_0x5d6585,_0x44e46d);if(_0x1f4e71['length']===0x0)continue;this[_0x413545(0x380)](_0x87c11e,_0x1f4e71,_0x16e9f3,_0x116a72);}}}}[_0x3a2165(0x18c)](_0x380d90,_0x5dd100,_0x16b6b2,_0x53c695,_0x4c5a21){const _0x53ea46=_0x3a2165,_0x5db27a=this[_0x53ea46(0x10b)](_0x5dd100),{left:_0xbea09e,top:_0x43d978,height:_0x4bfcda}=_0x5db27a,_0x119380=this[_0x53ea46(0x271)](),_0x449061=ci/_0x119380,_0x2fe2e8=new R['Rect'](Me+a[_0x53ea46(0x483)][_0x53ea46(0x238)](ce),{'left':_0xbea09e+_0x16b6b2-_0x449061,'top':_0x43d978+_0x53c695,'height':_0x4bfcda,'width':ai,'fill':_0x380d90||R[_0x53ea46(0x202)](a[_0x53ea46(0xf3)]['black'],0x0),'strokeWidth':_0x449061,'stroke':li,'evented':!0x0});this[_0x53ea46(0x239)]=_0x2fe2e8,this[_0x53ea46(0x198)][_0x53ea46(0x22c)](_0x2fe2e8,w[_0x53ea46(0x43e)]);const _0x28cd91=new R['Rect'](Me+a['Tools'][_0x53ea46(0x238)](ce),{'left':_0xbea09e+_0x16b6b2-_0x449061,'top':_0x43d978+_0x53c695-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x380d90||R['getColor'](a['COLORS'][_0x53ea46(0x3e1)],0x0),'strokeWidth':0x0,'stroke':_0x380d90||R[_0x53ea46(0x202)](a[_0x53ea46(0xf3)][_0x53ea46(0x3e1)],0x0),'evented':!0x1});this[_0x53ea46(0x2f3)]=_0x28cd91,this['_scene'][_0x53ea46(0x22c)](_0x28cd91,w[_0x53ea46(0x43e)]);const _0x146570=new Te(Me+a[_0x53ea46(0x483)][_0x53ea46(0x238)](ce),{'left':_0xbea09e+_0x16b6b2-_0x449061,'top':_0x43d978+_0x53c695-ue,'text':_0x4c5a21,'color':_0x380d90});this[_0x53ea46(0x459)]=_0x146570,this[_0x53ea46(0x198)][_0x53ea46(0x22c)](_0x146570,w[_0x53ea46(0x43e)]),this[_0x53ea46(0x126)]=!0x1;}[_0x3a2165(0x389)](){const _0xdedf68=_0x3a2165,_0x41dea9=this[_0xdedf68(0x239)][_0xdedf68(0x17c)]['subscribeEvent'](()=>{const _0x45e02a=_0xdedf68;this[_0x45e02a(0x126)]=!0x0;}),_0x7c814f=this['_anchor'][_0xdedf68(0x256)][_0xdedf68(0x43b)](()=>{const _0x29e889=_0xdedf68;this[_0x29e889(0x1a6)]&&clearTimeout(this[_0x29e889(0x1a6)]),this[_0x29e889(0x1a6)]=setTimeout(()=>{const _0x2fc5b1=_0x29e889;this[_0x2fc5b1(0x126)]=!0x1;},0x7d0);});return()=>{const _0x3585b5=_0xdedf68;_0x41dea9[_0x3585b5(0x451)](),_0x7c814f[_0x3585b5(0x451)]();};}[_0x3a2165(0x380)](_0x5443d3,_0x1172d3,_0x1e1a2f,_0x2183a6){const _0xc7b04b=_0x3a2165,_0x417025=new a[(_0xc7b04b(0x46f))](_0x5443d3)[_0xc7b04b(0x47e)](0.2)[_0xc7b04b(0xbf)](),_0x4c6dcc=new R[(_0xc7b04b(0x115))](ri+a['Tools'][_0xc7b04b(0x238)](ce),{'pointsGroup':_0x1172d3,'fill':_0x417025||R[_0xc7b04b(0x202)](a[_0xc7b04b(0xf3)][_0xc7b04b(0x3e1)],0.2),'left':_0x1e1a2f,'top':_0x2183a6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xc7b04b(0x407)][_0xc7b04b(0x339)](_0x4c6dcc),this[_0xc7b04b(0x198)]['addObject'](_0x4c6dcc,w['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x1bf07d,_0x1d5c41,_0x599b38,_0x3d2647){const _0x32de3f=_0x3a2165,_0x123b51=new a[(_0x32de3f(0x46f))](_0x1bf07d)[_0x32de3f(0x47e)](0.2)[_0x32de3f(0xbf)](),_0x792fa0=new R[(_0x32de3f(0x115))](oi+a['Tools']['generateRandomId'](ce),{'pointsGroup':_0x1d5c41,'fill':_0x123b51||R[_0x32de3f(0x202)](a[_0x32de3f(0xf3)][_0x32de3f(0x3e1)],0.2),'left':_0x599b38,'top':_0x3d2647,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x32de3f(0x407)][_0x32de3f(0x339)](_0x792fa0),this['_scene'][_0x32de3f(0x22c)](_0x792fa0,w[_0x32de3f(0x43e)]);}[_0x3a2165(0x10b)](_0x2b7646){const _0x3f27df=_0x2b7646[0x0],_0x5bad76=_0x3f27df[0x0],_0x38c0ab=_0x3f27df[0x2],{x:_0x37422d,y:_0x2bed4e}=_0x5bad76,{x:_0x312eed,y:_0x53d53e}=_0x38c0ab;return{'left':_0x37422d,'top':_0x2bed4e,'width':_0x312eed-_0x37422d,'height':_0x53d53e-_0x2bed4e};}[_0x3a2165(0x271)](){const _0x4c0d57=_0x3a2165,{scaleX:_0x1f9614,scaleY:_0x19ee7b}=this[_0x4c0d57(0x198)][_0x4c0d57(0x25b)]();return Math[_0x4c0d57(0x1f7)](_0x1f9614,_0x19ee7b);}}var hi=Object[_0x3a2165(0x1e2)],_i=Object[_0x3a2165(0x383)],ui=(_0x274ec3,_0x5f2019,_0x81e9e2,_0x244349)=>{const _0x32d248=_0x3a2165;for(var _0x599b89=_0x244349>0x1?void 0x0:_0x244349?_i(_0x5f2019,_0x81e9e2):_0x5f2019,_0x2cb07b=_0x274ec3[_0x32d248(0x3a5)]-0x1,_0x4da862;_0x2cb07b>=0x0;_0x2cb07b--)(_0x4da862=_0x274ec3[_0x2cb07b])&&(_0x599b89=(_0x244349?_0x4da862(_0x5f2019,_0x81e9e2,_0x599b89):_0x4da862(_0x599b89))||_0x599b89);return _0x244349&&_0x599b89&&hi(_0x5f2019,_0x81e9e2,_0x599b89),_0x599b89;},de=(_0x480404,_0x3a3acc)=>(_0x3144a7,_0x545468)=>_0x3a3acc(_0x3144a7,_0x545468,_0x480404);let xe=class extends a[_0x3a2165(0x441)]{constructor(_0x49b4be,_0x48105a,_0xb47128,_0x5d5381,_0x43a418){const _0x2324f0=_0x3a2165;super(),d(this,_0x2324f0(0x47f),[]),d(this,'_cursors',[]),(this[_0x2324f0(0x477)]=_0x49b4be,this[_0x2324f0(0x463)]=_0x48105a,this[_0x2324f0(0x2f0)]=_0xb47128,this[_0x2324f0(0x3de)]=_0x5d5381,this['_themeService']=_0x43a418,this['_init']());}[_0x3a2165(0x1d9)](){const _0x3debdd=_0x3a2165,_0x5d63da=this[_0x3debdd(0x477)][_0x3debdd(0xec)],_0x16139e=this['_docSkeletonManagerService'];this[_0x3debdd(0x167)](v[_0x3debdd(0x456)]([this['_collabCursorController'][_0x3debdd(0x397)](_0x5d63da),this[_0x3debdd(0xad)]['currentTheme$']])['pipe'](E[_0x3debdd(0x331)](([_0x3917f6,_0x623986])=>({'skeleton':_0x16139e['getSkeleton'](),'cursors':[..._0x3917f6[_0x3debdd(0x1ce)]()][_0x3debdd(0x387)](_0x2efdd5=>({..._0x2efdd5,'color':_0x623986[_0x2efdd5[_0x3debdd(0x470)]]}))})))[_0x3debdd(0x1ee)](_0x521ae8=>{const _0x5edc08=_0x3debdd;if(this[_0x5edc08(0x26b)](),_0x521ae8){const {skeleton:_0x421477,cursors:_0x486a3c}=_0x521ae8;this[_0x5edc08(0xc0)](_0x421477,_0x486a3c);}})),this['_initResize'](),this[_0x3debdd(0x18d)]();}[_0x3a2165(0xc0)](_0x41d397,_0x4d2b0a){const _0x4b21cd=_0x3a2165,{scene:_0x4a0744,mainComponent:_0x33960e}=this['_context'],_0x423582=_0x4d2b0a[_0x4b21cd(0x331)](_0x2de04f=>new ot(_0x2de04f,_0x4a0744,_0x41d397,_0x33960e));this[_0x4b21cd(0x47f)]=_0x423582,this[_0x4b21cd(0xca)]=_0x4d2b0a;}[_0x3a2165(0xf8)](){const _0x250acb=_0x3a2165;this['_removeCollabCursors']();const {scene:_0x17cd41,mainComponent:_0x157601}=this[_0x250acb(0x477)],_0x2194e9=this[_0x250acb(0x463)][_0x250acb(0x3b3)](),_0x4b80b2=this[_0x250acb(0xca)][_0x250acb(0x331)](_0x428f6c=>new ot(_0x428f6c,_0x17cd41,_0x2194e9,_0x157601));this['_cursorShapes']=_0x4b80b2;}[_0x3a2165(0x26b)](){const _0x100a30=_0x3a2165;this['_cursorShapes']['forEach'](_0x359189=>_0x359189[_0x100a30(0x491)]()),this['_cursorShapes']=[];}[_0x3a2165(0x18d)](){const _0x19bc00=_0x3a2165,_0xf56de9=[w[_0x19bc00(0x30c)]['id']];this[_0x19bc00(0x167)](this['_commandService'][_0x19bc00(0x44e)](_0x555637=>{const _0x4c85fe=_0x19bc00;_0xf56de9[_0x4c85fe(0x3f3)](_0x555637['id'])&&_0x555637[_0x4c85fe(0x101)][_0x4c85fe(0xec)]===this[_0x4c85fe(0x477)]['unitId']&&this[_0x4c85fe(0xf8)]();}));}[_0x3a2165(0x2c8)](){const _0x1e55a4=_0x3a2165;this[_0x1e55a4(0x167)](a[_0x1e55a4(0x98)](this['_context'][_0x1e55a4(0x358)][_0x1e55a4(0x3d1)])[_0x1e55a4(0x447)](E['filter'](_0x42a7aa=>_0x42a7aa['type']===R['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1e55a4(0x3c6)]),E[_0x1e55a4(0x440)](0x10))[_0x1e55a4(0x1ee)](()=>{const _0x557e3f=_0x1e55a4;this[_0x557e3f(0xf8)]();}));}};xe=ui([de(0x1,a[_0x3a2165(0x426)](V[_0x3a2165(0x1ed)])),de(0x2,a[_0x3a2165(0x426)](ie)),de(0x3,a[_0x3a2165(0x3e2)]),de(0x4,a[_0x3a2165(0x426)](a[_0x3a2165(0x320)]))],xe);function _0x4ca1(_0x5e362e,_0x26f901){const _0x26d6f1=_0x26d6();return _0x4ca1=function(_0x4ca187,_0x4f6e50){_0x4ca187=_0x4ca187-0x96;let _0x26ddf6=_0x26d6f1[_0x4ca187];return _0x26ddf6;},_0x4ca1(_0x5e362e,_0x26f901);}const di=0x1,Si=1.5;class Ot extends R[_0x3a2165(0x450)]{constructor(_0x489341,_0x2430bc){const _0x3f90d0=_0x3a2165;super(_0x489341,_0x2430bc),d(this,'_color'),d(this,_0x3f90d0(0x433),!0x1),d(this,_0x3f90d0(0x136)),d(this,'_name',''),d(this,_0x3f90d0(0xc8),_0x3f90d0(0x3f4)),d(this,_0x3f90d0(0x1d1)),(_0x2430bc&&this[_0x3f90d0(0x164)](_0x2430bc),this[_0x3f90d0(0x17c)]['subscribeEvent'](()=>this[_0x3f90d0(0x164)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x3f90d0(0x164)]({'hovered':!0x1})));}[_0x3a2165(0x164)](_0x34cca3){const _0x4089e4=_0x3a2165;var _0x3ecee7,_0x52b7af,_0x33c1dc,_0x1feb08,_0x153c32,_0x38d676;this[_0x4089e4(0x18b)]=(_0x3ecee7=_0x34cca3[_0x4089e4(0x470)])!=null?_0x3ecee7:this[_0x4089e4(0x18b)],this[_0x4089e4(0x433)]=(_0x52b7af=_0x34cca3[_0x4089e4(0x499)])!=null?_0x52b7af:this['_hovered'],this[_0x4089e4(0x136)]=(_0x33c1dc=_0x34cca3[_0x4089e4(0x166)])!=null?_0x33c1dc:this[_0x4089e4(0x136)],this[_0x4089e4(0x11e)]=(_0x1feb08=_0x34cca3[_0x4089e4(0x494)])!=null?_0x1feb08:this[_0x4089e4(0x11e)],this[_0x4089e4(0xc8)]=(_0x153c32=_0x34cca3[_0x4089e4(0x29c)])!=null?_0x153c32:this[_0x4089e4(0xc8)],this[_0x4089e4(0x1d1)]=(_0x38d676=_0x34cca3[_0x4089e4(0x3c0)])!=null?_0x38d676:this[_0x4089e4(0x1d1)],this['transformByState']({'width':_0x34cca3['width'],'height':_0x34cca3[_0x4089e4(0x340)]});}['onMouseMove'](_0x46f4eb){const _0x57d14d=_0x3a2165,{row:_0x40c3ce,column:_0x5ea585}=_0x46f4eb;if(_0x40c3ce>=this[_0x57d14d(0x136)][_0x57d14d(0x280)]&&_0x40c3ce<=this[_0x57d14d(0x136)][_0x57d14d(0x1bf)]&&_0x5ea585>=this[_0x57d14d(0x136)][_0x57d14d(0x1dd)]&&_0x5ea585<=this[_0x57d14d(0x136)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x57d14d(0x164)]({'hovered':!0x1});}[_0x3a2165(0x415)](_0xc46c82){return!0x1;}[_0x3a2165(0x201)](_0x33a56a){const _0x553fa6=_0x3a2165;R[_0x553fa6(0x3da)][_0x553fa6(0x2b6)](_0x33a56a,{'width':this[_0x553fa6(0x144)],'height':this['height'],'strokeWidth':Si,'stroke':this[_0x553fa6(0x18b)],'evented':!0x1,'fill':this[_0x553fa6(0x1d1)]}),this[_0x553fa6(0x433)]&&(_0x33a56a[_0x553fa6(0x19d)](),_0x33a56a[_0x553fa6(0x291)](0x1,0x0,0x0,0x1,this['width'],this[_0x553fa6(0xc8)]==='bottom'?0x0:-ue),Te[_0x553fa6(0x2b6)](_0x33a56a,{'text':this[_0x553fa6(0x11e)],'color':this['_color']}),_0x33a56a['restore']());}}var vi=Object[_0x3a2165(0x1e2)],fi=Object[_0x3a2165(0x383)],gi=(_0x21b4f7,_0x60223e,_0x37d488,_0x590e11)=>{for(var _0x391aa4=_0x590e11>0x1?void 0x0:_0x590e11?fi(_0x60223e,_0x37d488):_0x60223e,_0x901424=_0x21b4f7['length']-0x1,_0x3eb349;_0x901424>=0x0;_0x901424--)(_0x3eb349=_0x21b4f7[_0x901424])&&(_0x391aa4=(_0x590e11?_0x3eb349(_0x60223e,_0x37d488,_0x391aa4):_0x3eb349(_0x391aa4))||_0x391aa4);return _0x590e11&&_0x391aa4&&vi(_0x60223e,_0x37d488,_0x391aa4),_0x391aa4;},Ae=(_0x110198,_0x2d9be5)=>(_0x2e9a86,_0xa999b)=>_0x2d9be5(_0x2e9a86,_0xa999b,_0x110198);const mi=0x1389;let ke=class extends a['RxDisposable']{constructor(_0x36e523,_0x18f412,_0xfc15c1,_0x4c2c01){const _0xdfc610=_0x3a2165;super(),d(this,_0xdfc610(0xca),new Set()),d(this,'_lastPointer',null),(this[_0xdfc610(0x477)]=_0x36e523,this[_0xdfc610(0x428)]=_0x18f412,this['_collabCursorController']=_0xfc15c1,this['_themeService']=_0x4c2c01,this[_0xdfc610(0x1d9)]());}['_init'](){const _0x11b8c3=_0x3a2165;this[_0x11b8c3(0x428)][_0x11b8c3(0x489)][_0x11b8c3(0x447)](E[_0x11b8c3(0x27a)](this[_0x11b8c3(0x15a)]),E[_0x11b8c3(0x3d5)](_0xf5bffb=>{const _0x191d79=_0x11b8c3;if(_0xf5bffb){const _0x1d31c3=_0xf5bffb[_0x191d79(0x22b)];return v[_0x191d79(0x456)](this[_0x191d79(0x2f0)][_0x191d79(0x397)](this['_context'][_0x191d79(0xec)]),this[_0x191d79(0xad)][_0x191d79(0x375)])[_0x191d79(0x447)](E[_0x191d79(0x331)](([_0xaeefd3,_0x35ccda])=>{const _0x4ee7b5=new Map();return _0xaeefd3['forEach']((_0x7b8240,_0x2bfeb8)=>{const _0x14e6cb=_0x4ca1;if(_0x7b8240[_0x14e6cb(0x169)]===_0x1d31c3){const _0x1ae863={..._0x7b8240};_0x1ae863[_0x14e6cb(0x470)]=_0x35ccda[_0x7b8240[_0x14e6cb(0x470)]],_0x4ee7b5['set'](_0x2bfeb8,_0x1ae863);}}),{'skeleton':_0xf5bffb,'cursors':_0x4ee7b5};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x11b8c3(0x1ee)](({skeleton:_0x2336ce,cursors:_0x5685fb})=>{const _0x5a107c=_0x11b8c3;this[_0x5a107c(0x26b)](),_0x2336ce&&this[_0x5a107c(0xc0)](_0x2336ce,_0x5685fb);}),this[_0x11b8c3(0x428)][_0x11b8c3(0x489)][_0x11b8c3(0x1ee)](_0x4b3595=>{const _0x2602f2=_0x11b8c3;if(_0x4b3595==null)return;const {skeleton:_0x258628}=_0x4b3595,{scene:_0x19fa20}=this['_context'];_0x19fa20[_0x2602f2(0x421)][_0x2602f2(0x43b)](a[_0x2602f2(0xd0)](_0xa331cd=>{const _0x5f5b76=_0x2602f2;var _0x4a7a0e,_0x5c13b0;const {offsetX:_0x25af83,offsetY:_0x43662a}=_0xa331cd,{x:_0x2e1e2d,y:_0x4626f2}=_0x19fa20['getRelativeToViewportCoord'](R[_0x5f5b76(0x3a7)][_0x5f5b76(0x409)]([_0x25af83,_0x43662a])),{scaleX:_0x33320d,scaleY:_0x4f0f8b}=_0x19fa20[_0x5f5b76(0x25b)](),_0x56a818=_0x19fa20[_0x5f5b76(0x20a)](te[_0x5f5b76(0x351)][_0x5f5b76(0x2bc)]),_0x4c6f10=_0x19fa20[_0x5f5b76(0xcc)](R[_0x5f5b76(0x3a7)][_0x5f5b76(0x409)]([_0x2e1e2d,_0x4626f2]),_0x56a818),_0x47d257=_0x258628[_0x5f5b76(0x2c0)](_0x25af83,_0x43662a,_0x33320d,_0x4f0f8b,_0x4c6f10);((_0x4a7a0e=this[_0x5f5b76(0x392)])==null?void 0x0:_0x4a7a0e[_0x5f5b76(0x364)])===_0x47d257[_0x5f5b76(0x364)]&&((_0x5c13b0=this[_0x5f5b76(0x392)])==null?void 0x0:_0x5c13b0['row'])===_0x47d257[_0x5f5b76(0x3db)]||this[_0x5f5b76(0xca)][_0x5f5b76(0x337)](_0x466054=>{const _0x4687f2=_0x5f5b76;_0x466054[_0x4687f2(0x240)](_0x47d257);});},0x64));});}[_0x3a2165(0xc0)](_0x193ffc,_0xdbfa79){const _0x592989=_0x3a2165;var _0x88e3e1;const _0x146c4d=(_0x88e3e1=this[_0x592989(0x428)][_0x592989(0x1bc)]())==null?void 0x0:_0x88e3e1[_0x592989(0x332)];if(!_0x146c4d)return;const _0x5bf9bf=this[_0x592989(0x1c1)]();if(!_0x5bf9bf)return;this[_0x592989(0xca)]['forEach'](_0x269272=>{_0x269272['makeDirty']();});const {scene:_0x32180a}=_0x5bf9bf,_0x420595=Ii(Array[_0x592989(0x2f9)](_0xdbfa79['values']()))[_0x592989(0x331)](_0x5b074c=>{const _0x645152=_0x592989,{color:_0x795524,range:_0x55bfe3,name:_0x24e681,selection:_0x38ba76,sheetID:_0x1984f7}=_0x5b074c,{startColumn:_0x47e0eb,startRow:_0x67d459,endColumn:_0x2412dd,endRow:_0x3ac2a7}=_0x55bfe3,_0x45fae9=te[_0x645152(0x174)](_0x67d459,_0x47e0eb,_0x32180a,_0x146c4d),_0x473154=te[_0x645152(0x174)](_0x3ac2a7,_0x2412dd,_0x32180a,_0x146c4d),{columnHeaderHeightAndMarginTop:_0x4711cb}=_0x146c4d,{startX:_0x592516,startY:_0xfaef21}=_0x45fae9,{endX:_0x2c615b,endY:_0x1ce67a}=_0x473154,_0x11d7d8=_0x2c615b-_0x592516,_0x1a8fe9=_0x1ce67a-_0xfaef21,_0x42ea7b={'labelPosition':_0xfaef21-_0x4711cb>=ue?'top':_0x645152(0x3c3),'sheetID':_0x1984f7,'range':_0x55bfe3,'color':_0x795524,'name':_0x24e681,'selection':_0x38ba76,'left':_0x592516,'top':_0xfaef21,'width':_0x11d7d8,'height':_0x1a8fe9,'evented':!0x1,'zIndex':mi};return new Ot(_0x24e681,_0x42ea7b);});_0x32180a['addObjects'](_0x420595,di),this[_0x592989(0xca)]=new Set(_0x420595);}[_0x3a2165(0x26b)](){const _0x395c94=_0x3a2165;var _0x52cdeb;(_0x52cdeb=this[_0x395c94(0xca)])==null||_0x52cdeb[_0x395c94(0x337)](_0x310893=>_0x310893['dispose']());}[_0x3a2165(0x1c1)](){const _0x34ea2c=_0x3a2165;return te[_0x34ea2c(0x348)](this[_0x34ea2c(0x477)][_0x34ea2c(0x2cf)],this[_0x34ea2c(0x477)]);}};ke=gi([Ae(0x1,a[_0x3a2165(0x426)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](ie)),Ae(0x3,a['Inject'](a['ThemeService']))],ke);function Ii(_0x448399){const _0x278de3=_0x3a2165,_0x15cf13=new Map();return _0x448399['forEach'](_0x2c2a95=>{const _0x5ecd4d=_0x4ca1;if(_0x15cf13[_0x5ecd4d(0x4ac)](_0x2c2a95[_0x5ecd4d(0xce)])){const _0x29e555=_0x15cf13['get'](_0x2c2a95[_0x5ecd4d(0xce)]);_0x29e555[_0x5ecd4d(0x494)]+=',\x20'+_0x2c2a95[_0x5ecd4d(0x494)];}else _0x15cf13['set'](_0x2c2a95[_0x5ecd4d(0xce)],_0x2c2a95);}),Array['from'](_0x15cf13[_0x278de3(0x1ce)]());}var M=function(){const _0x27545c=_0x3a2165;return M=Object['assign']||function(_0x28fd78){const _0x4736e5=_0x4ca1;for(var _0x4a25c4,_0x32004c=0x1,_0x173a2a=arguments[_0x4736e5(0x3a5)];_0x32004c<_0x173a2a;_0x32004c++){_0x4a25c4=arguments[_0x32004c];for(var _0x1e71e1 in _0x4a25c4)Object[_0x4736e5(0x1fd)]['hasOwnProperty'][_0x4736e5(0x1ef)](_0x4a25c4,_0x1e71e1)&&(_0x28fd78[_0x1e71e1]=_0x4a25c4[_0x1e71e1]);}return _0x28fd78;},M[_0x27545c(0x333)](this,arguments);},pi=function(_0x438110,_0x755d87){const _0x243f24=_0x3a2165;var _0x3eb7d5={};for(var _0x449f33 in _0x438110)Object['prototype'][_0x243f24(0x2f1)][_0x243f24(0x1ef)](_0x438110,_0x449f33)&&_0x755d87[_0x243f24(0x260)](_0x449f33)<0x0&&(_0x3eb7d5[_0x449f33]=_0x438110[_0x449f33]);if(_0x438110!=null&&typeof Object[_0x243f24(0x473)]==_0x243f24(0x429)){for(var _0x216826=0x0,_0x449f33=Object['getOwnPropertySymbols'](_0x438110);_0x216826<_0x449f33['length'];_0x216826++)_0x755d87['indexOf'](_0x449f33[_0x216826])<0x0&&Object[_0x243f24(0x1fd)]['propertyIsEnumerable']['call'](_0x438110,_0x449f33[_0x216826])&&(_0x3eb7d5[_0x449f33[_0x216826]]=_0x438110[_0x449f33[_0x216826]]);}return _0x3eb7d5;},qe=U[_0x3a2165(0x3b9)](function(_0x104c2e,_0x5e474c){const _0x10c7a0=_0x3a2165;var _0xa6c755=_0x104c2e['icon'],_0x43b609=_0x104c2e['id'],_0x34982a=_0x104c2e[_0x10c7a0(0x36e)],_0x4975ad=_0x104c2e['extend'],_0x3e153f=pi(_0x104c2e,[_0x10c7a0(0x1cf),'id',_0x10c7a0(0x36e),_0x10c7a0(0xe9)]),_0xbb90b7='univerjs-icon\x20univerjs-icon-'[_0x10c7a0(0x29f)](_0x43b609,'\x20')[_0x10c7a0(0x29f)](_0x34982a||'')[_0x10c7a0(0xaf)](),_0x2533f1=U[_0x10c7a0(0x17b)]('_'['concat'](bi()));return Dt(_0xa6c755,''[_0x10c7a0(0x29f)](_0x43b609),{'defIds':_0xa6c755[_0x10c7a0(0x288)],'idSuffix':_0x2533f1['current']},M({'ref':_0x5e474c,'className':_0xbb90b7},_0x3e153f),_0x4975ad);});function Dt(_0xc58014,_0x3ac29e,_0x329ce4,_0x5ba8af,_0x28b231){const _0x1d63be=_0x3a2165;return U[_0x1d63be(0x49d)](_0xc58014[_0x1d63be(0x498)],M(M({'key':_0x3ac29e},Ci(_0xc58014,_0x329ce4,_0x28b231)),_0x5ba8af),(Ei(_0xc58014,_0x329ce4)[_0x1d63be(0x293)]||[])['map'](function(_0xf2c2e,_0x2ed7ef){const _0x2d340b=_0x1d63be;return Dt(_0xf2c2e,''[_0x2d340b(0x29f)](_0x3ac29e,'-')['concat'](_0xc58014[_0x2d340b(0x498)],'-')['concat'](_0x2ed7ef),_0x329ce4,void 0x0,_0x28b231);}));}function Ci(_0x128423,_0x3dbbe4,_0x1cfb89){const _0x55b78c=_0x3a2165;var _0x5e46bd=M({},_0x128423[_0x55b78c(0x14b)]);_0x1cfb89!=null&&_0x1cfb89[_0x55b78c(0x16d)]&&_0x5e46bd[_0x55b78c(0x268)]===_0x55b78c(0x16d)&&(_0x5e46bd[_0x55b78c(0x268)]=_0x1cfb89[_0x55b78c(0x16d)]);var _0xfce612=_0x3dbbe4['defIds'];return!_0xfce612||_0xfce612[_0x55b78c(0x3a5)]===0x0||(_0x128423['tag']===_0x55b78c(0x24d)&&_0x5e46bd[_0x55b78c(0x226)]&&(_0x5e46bd[_0x55b78c(0x226)]=_0x5e46bd['xlink:href']+_0x3dbbe4[_0x55b78c(0x20c)]),Object[_0x55b78c(0x3f0)](_0x5e46bd)[_0x55b78c(0x337)](function(_0x2ab3eb){const _0x44e29d=_0x55b78c;var _0x4a828c=_0x2ab3eb[0x0],_0x1b4607=_0x2ab3eb[0x1];typeof _0x1b4607=='string'&&(_0x5e46bd[_0x4a828c]=_0x1b4607[_0x44e29d(0x295)](/url\(#(.*)\)/,'url(#$1'[_0x44e29d(0x29f)](_0x3dbbe4[_0x44e29d(0x20c)],')')));})),_0x5e46bd;}function Ei(_0x3d62cc,_0x136178){const _0x3287b9=_0x3a2165;var _0x3b600b,_0x8324cd=_0x136178[_0x3287b9(0x288)];return!_0x8324cd||_0x8324cd[_0x3287b9(0x3a5)]===0x0?_0x3d62cc:_0x3d62cc['tag']===_0x3287b9(0x479)&&(!((_0x3b600b=_0x3d62cc[_0x3287b9(0x293)])===null||_0x3b600b===void 0x0)&&_0x3b600b[_0x3287b9(0x3a5)])?M(M({},_0x3d62cc),{'children':_0x3d62cc[_0x3287b9(0x293)][_0x3287b9(0x331)](function(_0xe5f826){const _0x22a3b9=_0x3287b9;return typeof _0xe5f826[_0x22a3b9(0x14b)]['id']==_0x22a3b9(0x40c)&&_0x8324cd&&_0x8324cd[_0x22a3b9(0x260)](_0xe5f826[_0x22a3b9(0x14b)]['id'])>-0x1?M(M({},_0xe5f826),{'attrs':M(M({},_0xe5f826['attrs']),{'id':_0xe5f826['attrs']['id']+_0x136178[_0x22a3b9(0x20c)]})}):_0xe5f826;})}):_0x3d62cc;}function bi(){const _0x27304c=_0x3a2165;return Math['random']()[_0x27304c(0x3b5)](0x24)[_0x27304c(0x482)](0x2,0x8);}qe[_0x3a2165(0x1c0)]=_0x3a2165(0x221);var Ti={'tag':_0x3a2165(0x1fc),'attrs':{'fill':_0x3a2165(0x1af),'viewBox':'0\x200\x2016\x2016','width':_0x3a2165(0x472),'height':_0x3a2165(0x472)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a2165(0x31a)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'stroke':_0x3a2165(0x37f),'d':'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','strokeLinecap':_0x3a2165(0xff),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3a2165(0x479),'attrs':{},'children':[{'tag':_0x3a2165(0x3d2),'attrs':{'id':_0x3a2165(0x338)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'fill':_0x3a2165(0x307),'d':_0x3a2165(0x3b8)}}]}]}],'defIds':[_0x3a2165(0x338)]},yt=U['forwardRef'](function(_0x110327,_0xe060da){const _0x4282cf=_0x3a2165;return U[_0x4282cf(0x49d)](qe,Object['assign']({},_0x110327,{'id':_0x4282cf(0x160),'ref':_0xe060da,'icon':Ti}));});yt['displayName']=_0x3a2165(0x228);var Ri={'tag':_0x3a2165(0x1fc),'attrs':{'fill':_0x3a2165(0x1af),'viewBox':_0x3a2165(0x110),'width':_0x3a2165(0x472),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3a2165(0x402)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'stroke':_0x3a2165(0x37f),'d':_0x3a2165(0x15e),'strokeLinecap':_0x3a2165(0xff),'strokeLinejoin':_0x3a2165(0xff),'strokeWidth':1.2}}]},{'tag':_0x3a2165(0x479),'attrs':{},'children':[{'tag':_0x3a2165(0x3d2),'attrs':{'id':_0x3a2165(0x385)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'fill':_0x3a2165(0x307),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ut=U['forwardRef'](function(_0x1a05dd,_0x62e7f8){const _0x56fb35=_0x3a2165;return U[_0x56fb35(0x49d)](qe,Object[_0x56fb35(0x496)]({},_0x1a05dd,{'id':'on-line-single','ref':_0x62e7f8,'icon':Ri}));});Ut[_0x3a2165(0x1c0)]=_0x3a2165(0x1fa);function Pt(_0x4c22f4){const _0x22e573=_0x3a2165;var _0x40dbfe,_0x2932b,_0x2b1bf2='';if(typeof _0x4c22f4==_0x22e573(0x40c)||typeof _0x4c22f4==_0x22e573(0x1b8))_0x2b1bf2+=_0x4c22f4;else{if(typeof _0x4c22f4==_0x22e573(0x45b)){if(Array['isArray'](_0x4c22f4)){var _0x2b9e7f=_0x4c22f4[_0x22e573(0x3a5)];for(_0x40dbfe=0x0;_0x40dbfe<_0x2b9e7f;_0x40dbfe++)_0x4c22f4[_0x40dbfe]&&(_0x2932b=Pt(_0x4c22f4[_0x40dbfe]))&&(_0x2b1bf2&&(_0x2b1bf2+='\x20'),_0x2b1bf2+=_0x2932b);}else{for(_0x2932b in _0x4c22f4)_0x4c22f4[_0x2932b]&&(_0x2b1bf2&&(_0x2b1bf2+='\x20'),_0x2b1bf2+=_0x2932b);}}}return _0x2b1bf2;}function Oi(){const _0x584077=_0x3a2165;for(var _0x4454c8,_0x3c4693,_0x4a3eb6=0x0,_0x36ae3c='',_0x26e912=arguments[_0x584077(0x3a5)];_0x4a3eb6<_0x26e912;_0x4a3eb6++)(_0x4454c8=arguments[_0x4a3eb6])&&(_0x3c4693=Pt(_0x4454c8))&&(_0x36ae3c&&(_0x36ae3c+='\x20'),_0x36ae3c+=_0x3c4693);return _0x36ae3c;}const Di=_0x3a2165(0x481),yi=_0x3a2165(0x365),Ui=_0x3a2165(0x39f),Pi=_0x3a2165(0x308),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0xa2ba04){const _0x3cec82=_0x3a2165;switch(_0xa2ba04){case y[_0x3cec82(0x299)]:return _0x3cec82(0x304);case y[_0x3cec82(0x171)]:return _0x3cec82(0x97);case y[_0x3cec82(0x24c)]:return _0x3cec82(0x15f);case y[_0x3cec82(0xc3)]:return _0x3cec82(0x427);case y['PENDING']:case y['AWAITING']:case y[_0x3cec82(0x161)]:return'collabStatus.syncing';case y[_0x3cec82(0x465)]:return'collabStatus.synced';}}function wt(_0x5c1b5a){const _0x7c2e42=_0x3a2165,{status$:_0xe7d4c}=_0x5c1b5a,_0x1fe586=N['useObservable'](_0xe7d4c,y[_0x7c2e42(0xc3)]),_0x12216a=a[_0x7c2e42(0x3b7)](a[_0x7c2e42(0x3ff)]),_0x40e9d8=a[_0x7c2e42(0x3b7)](exports[_0x7c2e42(0x16c)]),_0x262217=_0x1fe586!==y['OFFLINE'],_0x4395e0=_0x12216a['t'](Mi(_0x1fe586)),_0x197be2=Oi(le['onlineStatus'],{[le[_0x7c2e42(0x1b2)]]:_0x262217,[le[_0x7c2e42(0x229)]]:!_0x262217}),_0x4908ba=_0x262217?U['createElement'](Ut,null):U[_0x7c2e42(0x49d)](yt,null),_0x34b78d=U['useCallback'](()=>{_0x262217||_0x40e9d8['reconnect']();},[_0x262217,_0x40e9d8]);function _0x4d65fb(){const _0x3d872c=_0x7c2e42;return U[_0x3d872c(0x49d)](_0x3d872c(0xf9),{'className':_0x197be2,'onClick':_0x34b78d},U['createElement']('div',{'className':le[_0x3d872c(0x19b)]},_0x4908ba),U[_0x3d872c(0x49d)](_0x3d872c(0xf9),{'className':le[_0x3d872c(0x2fd)]},_0x4395e0));}return _0x262217?_0x4d65fb():U['createElement'](X[_0x7c2e42(0x21c)],{'title':_0x12216a['t']('collab-client.tooltip.reconnect')},_0x4d65fb());}var Ni=Object['defineProperty'],Ai=Object[_0x3a2165(0x383)],Li=(_0x5f49d2,_0x1bdaa1,_0x2d66bc,_0x191779)=>{for(var _0x5fc912=_0x191779>0x1?void 0x0:_0x191779?Ai(_0x1bdaa1,_0x2d66bc):_0x1bdaa1,_0x216778=_0x5f49d2['length']-0x1,_0x18a575;_0x216778>=0x0;_0x216778--)(_0x18a575=_0x5f49d2[_0x216778])&&(_0x5fc912=(_0x191779?_0x18a575(_0x1bdaa1,_0x2d66bc,_0x5fc912):_0x18a575(_0x5fc912))||_0x5fc912);return _0x191779&&_0x5fc912&&Ni(_0x1bdaa1,_0x2d66bc,_0x5fc912),_0x5fc912;},Se=(_0x4e4ead,_0x3e311e)=>(_0x41b549,_0x575c12)=>_0x3e311e(_0x41b549,_0x575c12,_0x4e4ead);exports[_0x3a2165(0x250)]=class extends a[_0x3a2165(0x287)]{constructor(_0x1c8eb5,_0x36fca9,_0x206fe6,_0x108846){const _0x896319=_0x3a2165;super(),d(this,_0x896319(0x37b),new v[(_0x896319(0x2f5))](y[_0x896319(0xc3)])),(this['_univerInstanceService']=_0x1c8eb5,this[_0x896319(0x196)]=_0x36fca9,this[_0x896319(0x3be)]=_0x206fe6,this[_0x896319(0x2f8)]=_0x108846,this[_0x896319(0x195)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x1180a8=_0x3a2165;this['disposeWithMe'](this[_0x1180a8(0x406)][_0x1180a8(0x35d)]['pipe'](v[_0x1180a8(0x3d5)](()=>{const _0x1795e4=_0x1180a8,_0x35af8d=this[_0x1795e4(0x406)][_0x1795e4(0x1a0)]();return _0x35af8d?this[_0x1795e4(0x2f8)]['getCollabEntity$'](_0x35af8d[_0x1795e4(0x3ae)]()):v['of'](null);}),v[_0x1180a8(0x3d5)](_0x144242=>_0x144242?_0x144242[_0x1180a8(0x3fb)]:v['of'](y['NOT_COLLAB'])))[_0x1180a8(0x1ee)](_0x421e50=>{const _0x56362e=_0x1180a8;this[_0x56362e(0x37b)][_0x56362e(0x2c6)](_0x421e50);}));}[_0x3a2165(0x195)](){const _0x12ec1e=_0x3a2165;this[_0x12ec1e(0x167)](this[_0x12ec1e(0x196)][_0x12ec1e(0x2d8)](N[_0x12ec1e(0x45a)][_0x12ec1e(0x405)],()=>a['connectInjector'](ji({'status$':this[_0x12ec1e(0x37b)][_0x12ec1e(0xfd)]()}),this[_0x12ec1e(0x3be)])));}},exports[_0x3a2165(0x250)]=Li([Se(0x0,a['IUniverInstanceService']),Se(0x1,N[_0x3a2165(0x1f1)]),Se(0x2,a['Inject'](a['Injector'])),Se(0x3,a[_0x3a2165(0x426)](exports[_0x3a2165(0x31d)]))],exports['DesktopCollaborationStatusDisplayController']);function ji(_0x5869e2){const {status$:_0x1da6b}=_0x5869e2;return function(){const _0x1cbc73=_0x4ca1;return U[_0x1cbc73(0x49d)](wt,{'status$':_0x1da6b});};}const ze=a['createIdentifier'](_0x3a2165(0x430));var $i=Object[_0x3a2165(0x1e2)],Hi=Object['getOwnPropertyDescriptor'],xi=(_0x537c7f,_0x507f41,_0x44ea77,_0x5391a8)=>{const _0xae3d95=_0x3a2165;for(var _0x1d0250=_0x5391a8>0x1?void 0x0:_0x5391a8?Hi(_0x507f41,_0x44ea77):_0x507f41,_0x263aa2=_0x537c7f[_0xae3d95(0x3a5)]-0x1,_0x1cc876;_0x263aa2>=0x0;_0x263aa2--)(_0x1cc876=_0x537c7f[_0x263aa2])&&(_0x1d0250=(_0x5391a8?_0x1cc876(_0x507f41,_0x44ea77,_0x1d0250):_0x1cc876(_0x1d0250))||_0x1d0250);return _0x5391a8&&_0x1d0250&&$i(_0x507f41,_0x44ea77,_0x1d0250),_0x1d0250;},ee=(_0x1f8a96,_0x1ed1a6)=>(_0x332d3c,_0x48a1a6)=>_0x1ed1a6(_0x332d3c,_0x48a1a6,_0x1f8a96);exports[_0x3a2165(0x497)]=class extends a[_0x3a2165(0x441)]{constructor(_0x19973c,_0x536688,_0x5d1e66,_0x35ceb7,_0x517fa0,_0x18903f){const _0x364834=_0x3a2165;super(),this[_0x364834(0x267)]=_0x19973c,this[_0x364834(0x42d)]=_0x536688,this[_0x364834(0x3de)]=_0x5d1e66,this[_0x364834(0x1e8)]=_0x35ceb7,this[_0x364834(0x2b1)]=_0x517fa0,_0x18903f?_0x18903f==null||_0x18903f[_0x364834(0x329)]()[_0x364834(0xe7)](()=>this['_init']()):(this[_0x364834(0x42d)][_0x364834(0x3aa)](_0x364834(0x147),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x364834(0x1d9)]());}async[_0x3a2165(0x1d9)](){const _0x2883b7=_0x3a2165,_0x29262c=this['_urlService'][_0x2883b7(0x1e9)]('unit'),_0x426e8f=this['_urlService'][_0x2883b7(0x1e9)]('type');if(!_0x29262c||!_0x426e8f){this[_0x2883b7(0x42d)][_0x2883b7(0x3aa)]('[DataLoaderController]',_0x2883b7(0x3c8));return;}switch(Number(_0x426e8f)){case j['UNIVER_SHEET']:{const _0x2881af=await this[_0x2883b7(0x258)](_0x29262c);this['_setupSubUnitSync'](_0x2881af);break;}case j[_0x2883b7(0x34e)]:{await this[_0x2883b7(0x3c5)](_0x29262c);break;}default:{this[_0x2883b7(0x42d)]['error'](_0x2883b7(0x147),_0x2883b7(0xd4));break;}}}async[_0x3a2165(0x129)](_0x2d2e54){const _0x49a146=_0x3a2165;await this['_updateSubUnitFromURLParams'](_0x2d2e54),_0x2d2e54[_0x49a146(0x424)][_0x49a146(0x447)](v['takeUntil'](this[_0x49a146(0x15a)]))[_0x49a146(0x1ee)](_0x32183b=>{const _0x7d889b=_0x49a146;_0x32183b&&this[_0x7d889b(0x2d3)](_0x32183b);}),this[_0x49a146(0x267)][_0x49a146(0x128)][_0x49a146(0x447)](v[_0x49a146(0x27a)](this['dispose$']))[_0x49a146(0x1ee)](()=>this[_0x49a146(0x227)](_0x2d2e54));}[_0x3a2165(0x2d3)](_0x5bf85a,_0x99b6ef=!0x1){const _0x575b12=_0x3a2165,_0x8c1536=this['_urlService']['getParam'](_0x575b12(0x3fd));_0x5bf85a[_0x575b12(0x47d)]()!==_0x8c1536&&this[_0x575b12(0x267)][_0x575b12(0x2b5)]('subunit',_0x5bf85a[_0x575b12(0x47d)](),_0x99b6ef);}async['_updateSubUnitFromURLParams'](_0x35f64d){const _0x475d67=_0x3a2165;var _0x5125dd;const _0x983e5a=this[_0x475d67(0x267)][_0x475d67(0x1e9)](_0x475d67(0x3fd));if(!_0x983e5a||!_0x35f64d['getSheetBySheetId'](_0x983e5a)){const _0x373a98=_0x35f64d[_0x475d67(0xa7)]()[0x0],_0x434aa6=_0x35f64d['getSheetBySheetId'](_0x373a98);if(!_0x434aa6)return;this['_updateURLWithCurrentState'](_0x434aa6,!0x0),await this[_0x475d67(0x3de)][_0x475d67(0x1c2)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x35f64d[_0x475d67(0x3ae)](),'subUnitId':_0x373a98});return;}((_0x5125dd=_0x35f64d[_0x475d67(0x23a)]())==null?void 0x0:_0x5125dd[_0x475d67(0x47d)]())!==_0x983e5a&&await this['_commandService'][_0x475d67(0x1c2)](C[_0x475d67(0x488)]['id'],{'unitId':_0x35f64d[_0x475d67(0x3ae)](),'subUnitId':_0x983e5a});}async[_0x3a2165(0x258)](_0x48f7c7){const _0x3fafc1=_0x3a2165;let _0x4c0248=0x0;const _0x46c108=await this['_localCacheService']['loadOfflineData'](_0x48f7c7);return _0x46c108&&(_0x46c108[_0x3fafc1(0x3e7)]||_0x46c108[_0x3fafc1(0x31e)][_0x3fafc1(0x3a5)]!==0x0)&&(_0x4c0248=_0x46c108[_0x3fafc1(0x1f4)]),_0x4c0248===0x0&&this[_0x3fafc1(0x42d)][_0x3fafc1(0x3aa)]('[DataLoaderController]',_0x3fafc1(0x28a)),this[_0x3fafc1(0x2b1)][_0x3fafc1(0x24a)](_0x48f7c7,_0x4c0248);}async[_0x3a2165(0x3c5)](_0xb8e52c){const _0x14a115=_0x3a2165;let _0x8ae191=0x0;const _0x534f00=await this[_0x14a115(0x1e8)][_0x14a115(0x152)](_0xb8e52c);return _0x534f00&&(_0x534f00['awaitingChangeset']||_0x534f00[_0x14a115(0x31e)][_0x14a115(0x3a5)]!==0x0)&&(_0x8ae191=_0x534f00[_0x14a115(0x1f4)]),_0x8ae191===0x0&&this[_0x14a115(0x42d)][_0x14a115(0x3aa)](_0x14a115(0x147),_0x14a115(0x28a)),this['_snapshotService']['loadDoc'](_0xb8e52c,_0x8ae191);}},exports['DataLoaderController']=xi([ee(0x0,ze),ee(0x1,a['ILogService']),ee(0x2,a[_0x3a2165(0x3e2)]),ee(0x3,a['Inject'](exports['LocalCacheService'])),ee(0x4,a[_0x3a2165(0x426)](_[_0x3a2165(0x2d5)])),ee(0x5,a[_0x3a2165(0x4b6)](Wt[_0x3a2165(0x219)]))],exports[_0x3a2165(0x497)]);var ki=Object['defineProperty'],Bi=Object[_0x3a2165(0x383)],Vi=(_0x16c208,_0x158b9e,_0xe5bfbf,_0x40656c)=>{const _0x129b8e=_0x3a2165;for(var _0x516c32=_0x40656c>0x1?void 0x0:_0x40656c?Bi(_0x158b9e,_0xe5bfbf):_0x158b9e,_0x2f9226=_0x16c208[_0x129b8e(0x3a5)]-0x1,_0xab3d0d;_0x2f9226>=0x0;_0x2f9226--)(_0xab3d0d=_0x16c208[_0x2f9226])&&(_0x516c32=(_0x40656c?_0xab3d0d(_0x158b9e,_0xe5bfbf,_0x516c32):_0xab3d0d(_0x516c32))||_0x516c32);return _0x40656c&&_0x516c32&&ki(_0x158b9e,_0xe5bfbf,_0x516c32),_0x516c32;},at=(_0x4f28a7,_0x912457)=>(_0x23fc0c,_0x5a98eb)=>_0x912457(_0x23fc0c,_0x5a98eb,_0x4f28a7);const Wi=_0x3a2165(0x2fa),Fi=_0x3a2165(0x4b5);let Ie=class extends a[_0x3a2165(0x287)]{constructor(_0x5d6ee3,_0x538fd6){const _0x1f598b=_0x3a2165;super(),this[_0x1f598b(0x406)]=_0x5d6ee3,this[_0x1f598b(0x105)]=_0x538fd6,this[_0x1f598b(0x1d9)]();}[_0x3a2165(0x1d9)](){const _0x278043=_0x3a2165;this[_0x278043(0x167)](this[_0x278043(0x406)][_0x278043(0x35d)][_0x278043(0x1ee)](()=>{const _0x2a93db=_0x278043;var _0x3f8147;const _0x39054d=this[_0x2a93db(0x406)][_0x2a93db(0x1a0)]();let _0x345323=(_0x3f8147=this['_configService'][_0x2a93db(0x347)](Wi))!=null?_0x3f8147:Fi;_0x39054d instanceof a['Workbook']&&(_0x345323=_0x39054d['name']),document[_0x2a93db(0x276)]=_0x345323;}));}};Ie=Vi([at(0x0,a[_0x3a2165(0x137)]),at(0x1,a[_0x3a2165(0xd1)])],Ie);var Gi=Object['defineProperty'],Yi=Object[_0x3a2165(0x383)],Ki=(_0x470bf0,_0x33b497,_0x114e93,_0x246013)=>{const _0xfb478=_0x3a2165;for(var _0x5501be=_0x246013>0x1?void 0x0:_0x246013?Yi(_0x33b497,_0x114e93):_0x33b497,_0x3a8dc6=_0x470bf0[_0xfb478(0x3a5)]-0x1,_0x416f9e;_0x3a8dc6>=0x0;_0x3a8dc6--)(_0x416f9e=_0x470bf0[_0x3a8dc6])&&(_0x5501be=(_0x246013?_0x416f9e(_0x33b497,_0x114e93,_0x5501be):_0x416f9e(_0x5501be))||_0x5501be);return _0x246013&&_0x5501be&&Gi(_0x33b497,_0x114e93,_0x5501be),_0x5501be;},Le=(_0x57350e,_0x35f57a)=>(_0x37cd21,_0x3087e6)=>_0x35f57a(_0x37cd21,_0x3087e6,_0x57350e);let pe=class{constructor(_0x29866b,_0x1ac639,_0x37d183){const _0x1557fb=_0x3a2165;this[_0x1557fb(0x105)]=_0x29866b,this[_0x1557fb(0x40e)]=_0x1ac639,this[_0x1557fb(0x28b)]=_0x37d183,this['init']();}[_0x3a2165(0x4a9)](){const _0x483199=_0x3a2165;this[_0x483199(0x40e)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x2185b9,_0x456496)=>_0x456496(_0x2185b9)[_0x483199(0x447)](v[_0x483199(0xa2)](async _0xe0e94c=>{const _0x24e817=_0x483199,_0x59a3d0=_0xe0e94c;if(_0x59a3d0['status']===0x191&&window[_0x24e817(0x134)](this['localeService']['t'](_0x24e817(0x2b8)))){const _0x2c3852=window['encodeURIComponent'](window[_0x24e817(0xd9)][_0x24e817(0x181)]);window[_0x24e817(0xd9)][_0x24e817(0x181)]=this[_0x24e817(0x223)]()+_0x24e817(0x13a)+_0x2c3852;}return _0x59a3d0;}))});}[_0x3a2165(0x223)](){const _0x4f6cfd=_0x3a2165;var _0x11a9b3,_0x6d9bd3;const _0x2462ce=this[_0x4f6cfd(0x105)]['getConfig'](mt),_0x257cf5=this[_0x4f6cfd(0x105)][_0x4f6cfd(0x347)](A);return(_0x6d9bd3=(_0x11a9b3=_0x257cf5==null?void 0x0:_0x257cf5[_0x4f6cfd(0x15d)])!=null?_0x11a9b3:_0x2462ce)!=null?_0x6d9bd3:es;}};pe=Ki([Le(0x0,a[_0x3a2165(0xd1)]),Le(0x1,a[_0x3a2165(0x426)](P[_0x3a2165(0x1d8)])),Le(0x2,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)]))],pe);var Xi=Object[_0x3a2165(0x1e2)],qi=Object[_0x3a2165(0x383)],zi=(_0xff4e6,_0x3a0fb0,_0x210766,_0x3a6399)=>{const _0x3317c2=_0x3a2165;for(var _0x29c490=_0x3a6399>0x1?void 0x0:_0x3a6399?qi(_0x3a0fb0,_0x210766):_0x3a0fb0,_0x3d3c6a=_0xff4e6[_0x3317c2(0x3a5)]-0x1,_0x229cfc;_0x3d3c6a>=0x0;_0x3d3c6a--)(_0x229cfc=_0xff4e6[_0x3d3c6a])&&(_0x29c490=(_0x3a6399?_0x229cfc(_0x3a0fb0,_0x210766,_0x29c490):_0x229cfc(_0x29c490))||_0x29c490);return _0x3a6399&&_0x29c490&&Xi(_0x3a0fb0,_0x210766,_0x29c490),_0x29c490;},ct=(_0xd1a66e,_0x42a344)=>(_0x327a3f,_0x39d293)=>_0x42a344(_0x327a3f,_0x39d293,_0xd1a66e);const Mt=_0x3a2165(0x300),Ji=_0x3a2165(0x3a3);exports['AuthzIoHttpService']=class extends a[_0x3a2165(0x287)]{constructor(_0x4d9cf0,_0x2d04fd){const _0x2c710d=_0x3a2165;super(),this[_0x2c710d(0xe6)]=_0x4d9cf0,this[_0x2c710d(0x105)]=_0x2d04fd,this[_0x2c710d(0x168)]();}[_0x3a2165(0x168)](){const _0x2c4718=_0x3a2165,_0xc86bef=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':P[_0x2c4718(0x342)]({'isMatch'(_0x78ce26){const _0x12727d=_0x2c4718;var _0x3515c1;if(_0x78ce26['method']===_0x12727d(0x12c)&&((_0x3515c1=_0x78ce26[_0x12727d(0x1b6)])!=null&&_0x3515c1[_0x12727d(0x135)])){const {objectID:_0x3d1de1,objectType:_0x503bdc}=_0x78ce26['requestParams'][_0x12727d(0x135)]||{};if(!_0x3d1de1||_0x503bdc===void 0x0)return!0x1;const _0x3dca77=_0xc86bef[_0x12727d(0x150)]()+'/'+_0x503bdc+_0x12727d(0x24e)+_0x3d1de1+'/allowed';if(_0x78ce26[_0x12727d(0x236)]===_0x3dca77)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x532f1b){const _0x2edeed=_0x2c4718;var _0x4e4d74;return(_0x4e4d74=_0x532f1b[_0x2edeed(0x1b6)])==null?void 0x0:_0x4e4d74[_0x2edeed(0x135)];},'mergeParamsToRequest'(_0x5f41a7,_0x1b33ec){const _0x390a5a=_0x2c4718,_0x43991a=_0xc86bef[_0x390a5a(0x150)]()+_0x390a5a(0x285),_0x118474=_0x5f41a7['reduce']((_0xc8e0a2,_0x528505)=>{const _0x476622=_0x390a5a,{unitID:_0xf0ebe9,objectID:_0x341173,objectType:_0x3d6831,actions:_0x493e7f}=_0x528505;return _0xc8e0a2[_0xf0ebe9]||(_0xc8e0a2[_0xf0ebe9]={}),_0xc8e0a2[_0xf0ebe9][_0x341173]||(_0xc8e0a2[_0xf0ebe9][_0x341173]={'objectID':_0x341173,'objectType':_0x3d6831,'actions':[]}),_0xc8e0a2[_0xf0ebe9][_0x341173][_0x476622(0x3a9)][_0x476622(0x339)](..._0x493e7f),_0xc8e0a2;},{}),_0x56ebea=[];for(const _0x55bdd9 in _0x118474)for(const _0x5e448b in _0x118474[_0x55bdd9]){const {actions:_0xa75c06,objectType:_0x4bed2d}=_0x118474[_0x55bdd9][_0x5e448b],_0x283025=[...new Set(_0xa75c06)];_0x56ebea['push']({'unitID':_0x55bdd9,'objectID':_0x5e448b,'objectType':_0x4bed2d,'actions':_0x283025});}return new P[(_0x390a5a(0x33d))](_0x390a5a(0x12c),_0x43991a,{'headers':_0x1b33ec[_0x390a5a(0x4af)],'withCredentials':_0x1b33ec['withCredentials'],'responseType':_0x1b33ec[_0x390a5a(0x3ca)],'body':{'requests':_0x56ebea}});}},{'distributeResult'(_0x1b0ed9,_0xa82d97){const _0x26ef71=_0x2c4718,{objectActions:_0xf7ac29}=_0x1b0ed9;return _0xa82d97[_0x26ef71(0x331)](_0x20b972=>{const _0x5bdb44=_0x26ef71,{unitID:_0x391594,objectID:_0xb2cfeb,actions:_0x171740}=_0x20b972,_0x186be7=_0xf7ac29['find'](_0x5b4c67=>_0x5b4c67['unitID']===_0x391594&&_0x5b4c67[_0x5bdb44(0x3e4)]===_0xb2cfeb),_0x296afb=_0x171740[_0x5bdb44(0x331)](_0x433ab8=>_0x186be7==null?void 0x0:_0x186be7[_0x5bdb44(0x3a9)][_0x5bdb44(0x3eb)](_0x49d01f=>_0x49d01f[_0x5bdb44(0x122)]===_0x433ab8))[_0x5bdb44(0xe8)](_0x115f66=>!!_0x115f66);return{'config':_0x20b972,'result':{'actions':_0x296afb,'error':_0x1b0ed9[_0x5bdb44(0x442)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4212a0=_0x3a2165;var _0x5031d2,_0x2d6f28;const _0x5e8e7a=this[_0x4212a0(0x105)]['getConfig'](Mt),_0x92ad5d=this[_0x4212a0(0x105)][_0x4212a0(0x347)](A);return(_0x2d6f28=(_0x5031d2=_0x92ad5d==null?void 0x0:_0x92ad5d[_0x4212a0(0x1ca)])!=null?_0x5031d2:_0x5e8e7a)!=null?_0x2d6f28:Ji;}async[_0x3a2165(0x14e)](_0x856a61){const _0x39cec5=_0x3a2165,_0x35ad6f=this[_0x39cec5(0x150)]()+'/'+_0x856a61[_0x39cec5(0x208)]+_0x39cec5(0x349);return(await this[_0x39cec5(0xe6)][_0x39cec5(0x468)](_0x35ad6f,{'body':_0x856a61}))['body'][_0x39cec5(0x3e4)]||'';}async[_0x3a2165(0x4b4)](_0x1e43d0){const _0x25aef9=_0x3a2165,_0x1b838a=this[_0x25aef9(0x150)]()+_0x25aef9(0x34f);return(await this['_HTTPService'][_0x25aef9(0x468)](_0x1b838a,{'body':_0x1e43d0}))[_0x25aef9(0x135)][_0x25aef9(0x35b)];}async['update'](_0x318b95){const _0x5cfc3f=_0x3a2165,_0x1c27fa=this[_0x5cfc3f(0x150)]()+'/'+_0x318b95[_0x5cfc3f(0x208)]+_0x5cfc3f(0x24e)+_0x318b95[_0x5cfc3f(0x3e4)];await this['_HTTPService']['put'](_0x1c27fa,{'body':_0x318b95});}async[_0x3a2165(0x242)](_0x579b4d){const _0x54734c=_0x3a2165,_0x3ea9dc=this[_0x54734c(0x150)]()+'/'+_0x579b4d['objectType']+_0x54734c(0x24e)+_0x579b4d['objectID']+_0x54734c(0x48c);return(await this[_0x54734c(0xe6)][_0x54734c(0x468)](_0x3ea9dc,{'body':_0x579b4d}))[_0x54734c(0x135)]['actions'];}async['batchAllowed'](_0x3f5398){const _0xc0b278=_0x3a2165,_0x14b10b=this[_0xc0b278(0x150)]()+_0xc0b278(0x285);return(await this[_0xc0b278(0xe6)]['post'](_0x14b10b,{'body':{'requests':_0x3f5398}}))[_0xc0b278(0x135)][_0xc0b278(0x34b)];}async[_0x3a2165(0x362)](_0x17d9a4){const _0x87b81=_0x3a2165,_0x15870e=this[_0x87b81(0x150)]()+'/'+_0x17d9a4[_0x87b81(0x208)]+'/role',_0x39ddfc=await this[_0x87b81(0xe6)][_0x87b81(0x468)](_0x15870e,{'body':_0x17d9a4});return{'roles':_0x39ddfc[_0x87b81(0x135)]['roles'],'actions':_0x39ddfc['body'][_0x87b81(0x3a9)]};}async[_0x3a2165(0x44d)](_0x10d80c){const _0x137873=_0x3a2165,_0x56928e=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x137873(0xe6)][_0x137873(0x140)](_0x56928e,{'params':{'collaboratorID':_0x10d80c[_0x137873(0xf1)],'objectID':_0x10d80c[_0x137873(0x3e4)],'unitID':_0x10d80c[_0x137873(0x438)]}});}async[_0x3a2165(0x23d)](_0x1e35f){const _0x3fbf43=_0x3a2165,_0x19c60d=this[_0x3fbf43(0x150)]()+_0x3fbf43(0x1a1);await this[_0x3fbf43(0xe6)][_0x3fbf43(0x315)](_0x19c60d,{'body':_0x1e35f});}async[_0x3a2165(0xe1)](_0x3edebb){const _0x351171=_0x3a2165,_0x59b625=this[_0x351171(0x150)]()+_0x351171(0x1a1);await this['_HTTPService'][_0x351171(0x468)](_0x59b625,{'body':_0x3edebb});}async[_0x3a2165(0x3af)](_0x5dc5bc){const _0x3b852b=_0x3a2165,_0x40950f=this[_0x3b852b(0x150)]()+'/collaborator';return(await this['_HTTPService'][_0x3b852b(0x305)](_0x40950f,{'params':{'objectID':_0x5dc5bc['objectID'],'unitID':_0x5dc5bc['unitID']}}))[_0x3b852b(0x135)][_0x3b852b(0x39a)];}async[_0x3a2165(0x279)](_0x4109ae){const _0x5790f6=_0x3a2165,_0x4a39a8=this[_0x5790f6(0x150)]()+_0x5790f6(0x1a1);await this[_0x5790f6(0xe6)][_0x5790f6(0x1bb)](_0x4a39a8,{'body':_0x4109ae});}},exports['AuthzIoHttpService']=zi([ct(0x0,a[_0x3a2165(0x426)](P['HTTPService'])),ct(0x1,a[_0x3a2165(0x426)](a['IConfigService']))],exports[_0x3a2165(0x3bb)]);var Zi=Object[_0x3a2165(0x1e2)],Qi=Object['getOwnPropertyDescriptor'],en=(_0xf66ab5,_0x2ac4a1,_0x193bb7,_0x383e83)=>{const _0x55fbca=_0x3a2165;for(var _0x3919c8=_0x383e83>0x1?void 0x0:_0x383e83?Qi(_0x2ac4a1,_0x193bb7):_0x2ac4a1,_0x19b1f4=_0xf66ab5[_0x55fbca(0x3a5)]-0x1,_0x26896f;_0x19b1f4>=0x0;_0x19b1f4--)(_0x26896f=_0xf66ab5[_0x19b1f4])&&(_0x3919c8=(_0x383e83?_0x26896f(_0x2ac4a1,_0x193bb7,_0x3919c8):_0x26896f(_0x3919c8))||_0x3919c8);return _0x383e83&&_0x3919c8&&Zi(_0x2ac4a1,_0x193bb7,_0x3919c8),_0x3919c8;},tn=(_0x11965e,_0x59a6d9)=>(_0x5445fe,_0x3c6373)=>_0x59a6d9(_0x5445fe,_0x3c6373,_0x11965e);let Ce=class{constructor(_0x22df14){const _0x33a113=_0x3a2165;this['_httpService']=_0x22df14,this[_0x33a113(0x1a4)]();}['_initRequestHeader'](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0xfae93e,_0x2caef6)=>{const _0x5a7907=_0x4ca1,_0x1ae030=_0xfae93e[_0x5a7907(0x4af)],_0x30d5c8=Ft[_0x5a7907(0x22a)]();return _0x30d5c8&&_0x1ae030['set'](_0x5a7907(0x1e7),_0x30d5c8),_0x2caef6(_0xfae93e);}});}};Ce=en([tn(0x0,a[_0x3a2165(0x426)](P['HTTPService']))],Ce);var sn=Object[_0x3a2165(0x1e2)],nn=Object['getOwnPropertyDescriptor'],rn=(_0x40059d,_0x4d3e7,_0x291fdb,_0xcf18fb)=>{const _0x1af97f=_0x3a2165;for(var _0x2412ed=_0xcf18fb>0x1?void 0x0:_0xcf18fb?nn(_0x4d3e7,_0x291fdb):_0x4d3e7,_0x124df7=_0x40059d[_0x1af97f(0x3a5)]-0x1,_0x2a7dd5;_0x124df7>=0x0;_0x124df7--)(_0x2a7dd5=_0x40059d[_0x124df7])&&(_0x2412ed=(_0xcf18fb?_0x2a7dd5(_0x4d3e7,_0x291fdb,_0x2412ed):_0x2a7dd5(_0x2412ed))||_0x2412ed);return _0xcf18fb&&_0x2412ed&&sn(_0x4d3e7,_0x291fdb,_0x2412ed),_0x2412ed;},je=(_0x31cb4e,_0x76535e)=>(_0xb3d490,_0x209648)=>_0x76535e(_0xb3d490,_0x209648,_0x31cb4e);const on=[_0x3a2165(0x31f),_0x3a2165(0x224),_0x3a2165(0x2af),_0x3a2165(0x3f1),_0x3a2165(0x43d)],an=0x5*0x400*0x400,cn='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ln=_0x3a2165(0x26d),hn=_0x3a2165(0x485),_n=_0x3a2165(0x2e6);exports[_0x3a2165(0x278)]=class{constructor(_0xe045cc,_0x13bbb4,_0x4c5112){const _0x468931=_0x3a2165;d(this,'_waitCount',0x0),d(this,_0x468931(0x145),new v['Subject']()),d(this,'change$',this['_change$']),d(this,_0x468931(0x301),new Map()),(this[_0x468931(0x40e)]=_0xe045cc,this[_0x468931(0x105)]=_0x13bbb4,this['_univerInstanceService']=_0x4c5112);}[_0x3a2165(0x225)](_0xc7cf45){const _0x24adb4=_0x3a2165;this[_0x24adb4(0x386)]=_0xc7cf45,this[_0x24adb4(0x145)][_0x24adb4(0x2c6)](_0xc7cf45);}['getImageSourceCache'](_0x36eed8,_0x29ed24){const _0x2cae03=_0x3a2165;if(_0x29ed24===L[_0x2cae03(0x3d4)]['BASE64']){const _0x28dd70=new Image();return _0x28dd70[_0x2cae03(0x2ec)]=_0x36eed8,_0x28dd70;}return this[_0x2cae03(0x301)][_0x2cae03(0x305)](_0x36eed8);}[_0x3a2165(0x20f)](_0x437c38,_0x910a43,_0x211ea9){const _0x57a620=_0x3a2165;_0x910a43===L[_0x57a620(0x3d4)][_0x57a620(0x3cf)]||_0x211ea9==null||this['_imageSourceCache']['set'](_0x437c38,_0x211ea9);}async[_0x3a2165(0x466)](_0x4cb8c9){const _0x17c3e1=_0x3a2165;try{const _0x4acb42=this[_0x17c3e1(0x241)](this[_0x17c3e1(0x297)](),''+_0x4cb8c9),_0x3fb65e=(await this[_0x17c3e1(0x40e)]['get'](_0x4acb42))[_0x17c3e1(0x135)];if(_0x3fb65e[_0x17c3e1(0x442)]&&_0x3fb65e[_0x17c3e1(0x442)]['code']===It['OK']){const _0x44f607=new URL(_0x3fb65e['url'],this[_0x17c3e1(0x1f8)]())[_0x17c3e1(0x3b5)]();return Promise[_0x17c3e1(0x31b)](_0x44f607);}return Promise['reject'](_0x3fb65e[_0x17c3e1(0x442)]);}catch(_0x1c83af){return Promise[_0x17c3e1(0x37a)](_0x1c83af);}}async[_0x3a2165(0x439)](_0x337cde){const _0x131d98=_0x3a2165;let _0x58a072='';if(!on[_0x131d98(0x3f3)](_0x337cde[_0x131d98(0x3a4)]))return this[_0x131d98(0x324)](),Promise[_0x131d98(0x37a)](new Error(L['ImageUploadStatusType'][_0x131d98(0x4b7)]));if(_0x337cde[_0x131d98(0x20e)]>an)return this[_0x131d98(0x324)](),Promise[_0x131d98(0x37a)](new Error(L['ImageUploadStatusType'][_0x131d98(0x38a)]));try{const _0x243ff6=new FormData();_0x243ff6[_0x131d98(0xac)](_0x131d98(0x423),_0x337cde);const _0x20f456=this[_0x131d98(0x406)][_0x131d98(0x1a0)](),_0xa3c261=_0x20f456==null?void 0x0:_0x20f456['getUnitId']();if(!_0xa3c261)throw new Error(_0x131d98(0x3ba));const _0x58abd3=this[_0x131d98(0xa6)]()+_0x131d98(0x38c)+_0x337cde[_0x131d98(0x20e)][_0x131d98(0x3b5)]()+'&source='+pt[_0x131d98(0x2ca)]+_0x131d98(0x16a)+encodeURIComponent(_0xa3c261),_0x4f90b9=await(await fetch(_0x58abd3,{'method':_0x131d98(0x12c),'body':_0x243ff6}))['json']();if(typeof _0x4f90b9[_0x131d98(0x37d)]!=_0x131d98(0x40c))return this[_0x131d98(0x324)](),Promise[_0x131d98(0x37a)](new Error(L[_0x131d98(0x4a0)][_0x131d98(0x284)]));_0x58a072=_0x4f90b9['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x131d98(0x37a)](new Error(L['ImageUploadStatusType'][_0x131d98(0x284)]));}return new Promise((_0x15be77,_0x23be6d)=>{const _0x28080e=_0x131d98,_0xc63b2f=new FileReader();_0xc63b2f[_0x28080e(0x207)](_0x337cde),_0xc63b2f[_0x28080e(0x235)]=_0x3a124e=>{const _0x49a3a3=_0x28080e;var _0x5949b9;const _0x168705=(_0x5949b9=_0x3a124e['target'])==null?void 0x0:_0x5949b9[_0x49a3a3(0x109)];if(_0x168705==null){this[_0x49a3a3(0x324)](),_0x23be6d(new Error(L['ImageUploadStatusType'][_0x49a3a3(0x284)]));return;}const _0x15574b=a[_0x49a3a3(0x483)]['generateRandomId'](0x6);_0x15be77({'imageId':_0x15574b,'imageSourceType':L['ImageSourceType'][_0x49a3a3(0x188)],'source':_0x58a072,'base64Cache':_0x168705,'status':L['ImageUploadStatusType'][_0x49a3a3(0x1c8)]}),this[_0x49a3a3(0x324)]();};});}[_0x3a2165(0xa6)](){const _0x21cce8=_0x3a2165;var _0x587ec7,_0x269969;const _0x2f604f=this['_configService']['getConfig'](cn),_0x299533=this['_configService'][_0x21cce8(0x347)](A);return(_0x269969=(_0x587ec7=_0x299533==null?void 0x0:_0x299533[_0x21cce8(0x19f)])!=null?_0x587ec7:_0x2f604f)!=null?_0x269969:ln;}[_0x3a2165(0x297)](){const _0xf9e931=_0x3a2165;var _0x2f0230,_0x1d8f95;const _0x2ccfc6=this['_configService'][_0xf9e931(0x347)](hn),_0x4ac56e=this[_0xf9e931(0x105)]['getConfig'](A);return(_0x1d8f95=(_0x2f0230=_0x4ac56e==null?void 0x0:_0x4ac56e[_0xf9e931(0x1c6)])!=null?_0x2f0230:_0x2ccfc6)!=null?_0x1d8f95:_n;}[_0x3a2165(0x1f8)](){const _0x2fd07b=_0x3a2165;var _0x2c9ee0;const _0x4333d9=this[_0x2fd07b(0x105)][_0x2fd07b(0x347)](A);return(_0x2c9ee0=_0x4333d9==null?void 0x0:_0x4333d9[_0x2fd07b(0x119)])!=null?_0x2c9ee0:location[_0x2fd07b(0x4ad)];}[_0x3a2165(0x241)](_0x111008,_0x3d8c9d){const _0x2e3ff2=_0x3a2165;return _0x111008[_0x2e3ff2(0x295)]('{fileID}',_0x3d8c9d);}[_0x3a2165(0x324)](){const _0x365af3=_0x3a2165;this[_0x365af3(0x386)]-=0x1,this['_change$'][_0x365af3(0x2c6)](this[_0x365af3(0x386)]);}},exports[_0x3a2165(0x278)]=rn([je(0x0,a[_0x3a2165(0x426)](P[_0x3a2165(0x1d8)])),je(0x1,a[_0x3a2165(0xd1)]),je(0x2,a[_0x3a2165(0x426)](a[_0x3a2165(0x137)]))],exports['ImageIoService']);var un=Object[_0x3a2165(0x1e2)],dn=Object[_0x3a2165(0x383)],Sn=(_0x4a61a0,_0x213915,_0x147291,_0x44ab21)=>{for(var _0x1f6d32=_0x44ab21>0x1?void 0x0:_0x44ab21?dn(_0x213915,_0x147291):_0x213915,_0x368420=_0x4a61a0['length']-0x1,_0x11d368;_0x368420>=0x0;_0x368420--)(_0x11d368=_0x4a61a0[_0x368420])&&(_0x1f6d32=(_0x44ab21?_0x11d368(_0x213915,_0x147291,_0x1f6d32):_0x11d368(_0x1f6d32))||_0x1f6d32);return _0x44ab21&&_0x1f6d32&&un(_0x213915,_0x147291,_0x1f6d32),_0x1f6d32;},he=(_0x268440,_0x3deb2e)=>(_0x1853f7,_0x8f91d1)=>_0x3deb2e(_0x1853f7,_0x8f91d1,_0x268440);let Ee=class extends a[_0x3a2165(0x441)]{constructor(_0x15f608,_0x13b7e4,_0x3bfa09,_0x228ec0,_0x86c594){const _0x4b8217=_0x3a2165;super(),this[_0x4b8217(0x3be)]=_0x15f608,this[_0x4b8217(0x406)]=_0x13b7e4,this[_0x4b8217(0x1cb)]=_0x3bfa09,this[_0x4b8217(0x274)]=_0x228ec0,this[_0x4b8217(0x1d6)]=_0x86c594,this[_0x4b8217(0x28e)](),this[_0x4b8217(0x253)]();}[_0x3a2165(0x253)](){const _0x3a2f4d=_0x3a2165,_0x50f8a5=async _0x2e7c47=>{const _0x5c266e=_0x4ca1;(await this[_0x5c266e(0x274)][_0x5c266e(0x41a)](_0x2e7c47))[_0x5c266e(0x354)]['pipe'](E[_0x5c266e(0xe8)](_0x9c4b54=>_0x9c4b54['eventID']===_[_0x5c266e(0x39b)][_0x5c266e(0x206)]),E[_0x5c266e(0x27a)](this[_0x5c266e(0x15a)]))[_0x5c266e(0x1ee)](_0x1fd8be=>{const _0x305997=_0x5c266e,_0x5b02a=_0x1fd8be,{reason:_0x513573}=_0x5b02a[_0x305997(0x124)];this['_injector']['get'](N[_0x305997(0x39e)])[_0x305997(0x113)]({'type':X['MessageType'][_0x305997(0x104)],'content':this[_0x305997(0x1d6)]['t'](_0x305997(0x381))+'('+_0x513573+')'}),this[_0x305997(0x1cb)][_0x305997(0x33f)](new C[(_0x305997(0x1c4))](_0x2e7c47)['id'],!0x1),this[_0x305997(0x274)]['closeSession'](_0x2e7c47);});};v['merge'](this['_univerInstanceService'][_0x3a2f4d(0x31c)](a[_0x3a2f4d(0x461)][_0x3a2f4d(0x21f)]),this[_0x3a2f4d(0x406)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC']))[_0x3a2f4d(0x447)](E[_0x3a2f4d(0x331)](_0x166396=>_0x166396['getUnitId']()),E['filter'](_0x2743ed=>!a[_0x3a2f4d(0xe2)](_0x2743ed)),E[_0x3a2f4d(0x27a)](this[_0x3a2f4d(0x15a)]))[_0x3a2f4d(0x1ee)](_0x5299e8=>{_0x50f8a5(_0x5299e8);});}[_0x3a2165(0x28e)](){const _0x5e6418=_0x3a2165,_0x218a81=async _0x39c67c=>{const _0x114c7d=_0x4ca1;(await this[_0x114c7d(0x274)][_0x114c7d(0x41a)](_0x39c67c))[_0x114c7d(0x354)][_0x114c7d(0x447)](E['filter'](_0x30879f=>_0x30879f['eventID']===_[_0x114c7d(0x39b)][_0x114c7d(0x41f)]),E[_0x114c7d(0x27a)](this['dispose$']))['subscribe'](_0x18cacf=>{const _0x466ed6=_0x114c7d,_0x2d1500=_0x18cacf,{objectId:_0x7c35d9}=_0x2d1500[_0x466ed6(0x124)],_0x4dc35b=this[_0x466ed6(0x3be)]['get'](te[_0x466ed6(0x1ff)]);_0x7c35d9===_0x39c67c?_0x4dc35b[_0x466ed6(0x370)](_0x39c67c):_0x4dc35b[_0x466ed6(0x172)](_0x39c67c,_0x7c35d9);});};v[_0x5e6418(0x2e2)](this[_0x5e6418(0x406)][_0x5e6418(0x31c)](a[_0x5e6418(0x461)][_0x5e6418(0x21f)]),this['_univerInstanceService'][_0x5e6418(0x31c)](a[_0x5e6418(0x461)][_0x5e6418(0x34e)]))[_0x5e6418(0x447)](E[_0x5e6418(0x331)](_0x57d32f=>_0x57d32f[_0x5e6418(0x3ae)]()),E[_0x5e6418(0xe8)](_0x9a5c99=>!a['isInternalEditorID'](_0x9a5c99)),E[_0x5e6418(0x27a)](this['dispose$']))[_0x5e6418(0x1ee)](_0x4a921f=>{_0x218a81(_0x4a921f);});}};Ee=Sn([he(0x0,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),he(0x1,a[_0x3a2165(0x137)]),he(0x2,a[_0x3a2165(0x277)]),he(0x3,a[_0x3a2165(0x426)](exports[_0x3a2165(0x16c)])),he(0x4,a['Inject'](a[_0x3a2165(0x3ff)]))],Ee);var vn=Object['defineProperty'],fn=Object[_0x3a2165(0x383)],gn=(_0x24200a,_0x1e3536,_0x208693,_0x18bdd0)=>{for(var _0x1e4885=_0x18bdd0>0x1?void 0x0:_0x18bdd0?fn(_0x1e3536,_0x208693):_0x1e3536,_0x2909f8=_0x24200a['length']-0x1,_0x4eb976;_0x2909f8>=0x0;_0x2909f8--)(_0x4eb976=_0x24200a[_0x2909f8])&&(_0x1e4885=(_0x18bdd0?_0x4eb976(_0x1e3536,_0x208693,_0x1e4885):_0x4eb976(_0x1e4885))||_0x1e4885);return _0x18bdd0&&_0x1e4885&&vn(_0x1e3536,_0x208693,_0x1e4885),_0x1e4885;},lt=(_0x355162,_0xa55135)=>(_0xbdd491,_0x1bbe74)=>_0xa55135(_0xbdd491,_0x1bbe74,_0x355162);exports[_0x3a2165(0x3d3)]=class{constructor(_0x181aac,_0x8d67c6){const _0x2107eb=_0x3a2165;this[_0x2107eb(0x105)]=_0x181aac,this['_httpService']=_0x8d67c6;}async[_0x3a2165(0x155)](_0x394021,_0x599875){const _0x421b96=_0x3a2165;var _0xbb130b;const {unitID:_0x23c03d,type:_0x4150b9,revision:_0x35208c=0x0}=_0x599875,_0x2371bf=this['_getSnapshotAPIPrefix']()+'/'+_0x4150b9+'/unit/'+_0x23c03d+_0x421b96(0x28c)+_0x35208c,_0x36d9ad=(await this[_0x421b96(0x40e)][_0x421b96(0x305)](_0x2371bf))[_0x421b96(0x135)],_0x31a6d0=(_0xbb130b=_0x36d9ad[_0x421b96(0x2cd)])==null?void 0x0:_0xbb130b[_0x421b96(0x2c5)];if(_0x31a6d0){const _0x21a968=_0x31a6d0==null?void 0x0:_0x31a6d0['originalMeta'],_0x5d7c07=_[_0x421b96(0x275)]['encode'](_[_0x421b96(0x259)](_0x21a968));_0x31a6d0['originalMeta']=_0x5d7c07,Object[_0x421b96(0x3f0)](_0x31a6d0[_0x421b96(0x487)])[_0x421b96(0x337)](([,_0x1a6eb])=>{const _0x1f5658=_0x421b96,_0x60850a=_0x1a6eb[_0x1f5658(0x306)],_0x5ee78b=_[_0x1f5658(0x275)][_0x1f5658(0x10d)](_[_0x1f5658(0x259)](_0x60850a));_0x1a6eb['originalMeta']=_0x5ee78b;});}return _0x36d9ad;}async[_0x3a2165(0x493)](_0x2f46b8,_0x1b17ac){const _0x5909e8=_0x3a2165,{unitID:_0x5926b6,type:_0x1d3208,blockID:_0x24fcb5}=_0x1b17ac,_0x51fc74=this[_0x5909e8(0xb8)]()+'/'+_0x1d3208+'/unit/'+_0x5926b6+'/block/'+_0x24fcb5;return(await this[_0x5909e8(0x40e)][_0x5909e8(0x305)](_0x51fc74))[_0x5909e8(0x135)];}async[_0x3a2165(0x38b)](_0x46e395,_0x3ab55d){const _0x9dc354=_0x3a2165,{unitID:_0x212993,type:_0x50f535,blockID:_0x34884b}=_0x3ab55d,_0x21456f=this[_0x9dc354(0xb8)]()+'/block/'+_0x50f535+_0x9dc354(0x384)+_0x212993+_0x9dc354(0x2d7)+_0x34884b;return(await this[_0x9dc354(0x40e)][_0x9dc354(0x305)](_0x21456f))[_0x9dc354(0x135)];}async[_0x3a2165(0x26e)](_0x5ddd82,_0x2180d0){const _0x41efe5=_0x3a2165,{unitID:_0x49cdf1,type:_0x57dec6,from:_0x3f7b41,to:_0xbe22e0}=_0x2180d0,_0x514aac=this[_0x41efe5(0xb8)]()+'/'+_0x57dec6+_0x41efe5(0x384)+_0x49cdf1+'/fetchmissing?from='+_0x3f7b41+_0x41efe5(0x25a)+_0xbe22e0;return(await this[_0x41efe5(0x40e)][_0x41efe5(0x305)](_0x514aac))[_0x41efe5(0x135)];}[_0x3a2165(0x175)](){const _0x2e6e12=_0x3a2165;var _0x482802;return(_0x482802=this[_0x2e6e12(0x105)][_0x2e6e12(0x347)](_t))!=null?_0x482802:this['_getAPIPrefix']();}[_0x3a2165(0xb8)](){const _0x22ae62=_0x3a2165;var _0x539b20,_0x1c1e41;const _0x504ee5=this[_0x22ae62(0x105)][_0x22ae62(0x347)](ht),_0x409c25=this[_0x22ae62(0x105)]['getConfig'](A);return(_0x1c1e41=(_0x539b20=_0x409c25==null?void 0x0:_0x409c25['snapshotServerUrl'])!=null?_0x539b20:_0x504ee5)!=null?_0x1c1e41:Gt;}async[_0x3a2165(0x2d1)](_0x5e73f7,_0x48e52c){const _0x44a88e=_0x3a2165,_0x54f251=_0x44a88e(0x49e)+_0x48e52c[_0x44a88e(0x3a4)]+_0x44a88e(0x384)+_0x48e52c['unitID']+_0x44a88e(0xb7);return(await this[_0x44a88e(0x40e)][_0x44a88e(0x305)](_0x54f251,{'params':{'resourceId':JSON[_0x44a88e(0x3a6)](_0x48e52c[_0x44a88e(0x292)])}}))[_0x44a88e(0x135)];}[_0x3a2165(0x4aa)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3a2165(0x184)](){const _0x38e3e6=_0x3a2165;throw new Error(_0x38e3e6(0x2ee));}[_0x3a2165(0x209)](){const _0x330e54=_0x3a2165;throw new Error(_0x330e54(0x2ee));}['copyFileMeta'](){const _0x2d91c9=_0x3a2165;throw new Error(_0x2d91c9(0x2ee));}},exports['SnapshotServerOverHTTPService']=gn([lt(0x0,a[_0x3a2165(0xd1)]),lt(0x1,a['Inject'](P[_0x3a2165(0x1d8)]))],exports[_0x3a2165(0x3d3)]);var mn=Object[_0x3a2165(0x1e2)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5023a1,_0x4d2d65,_0x581d7f,_0x5c7a89)=>{const _0x1ddbd2=_0x3a2165;for(var _0x222562=_0x5c7a89>0x1?void 0x0:_0x5c7a89?In(_0x4d2d65,_0x581d7f):_0x4d2d65,_0x24e4d3=_0x5023a1[_0x1ddbd2(0x3a5)]-0x1,_0x4c7573;_0x24e4d3>=0x0;_0x24e4d3--)(_0x4c7573=_0x5023a1[_0x24e4d3])&&(_0x222562=(_0x5c7a89?_0x4c7573(_0x4d2d65,_0x581d7f,_0x222562):_0x4c7573(_0x222562))||_0x222562);return _0x5c7a89&&_0x222562&&mn(_0x4d2d65,_0x581d7f,_0x222562),_0x222562;},_e=(_0x26cdf9,_0x32d094)=>(_0x2a9d8d,_0x2c99fd)=>_0x32d094(_0x2a9d8d,_0x2c99fd,_0x26cdf9);let Be=class extends a[_0x3a2165(0x1d7)]{constructor(_0x23d347,_0x4b36db,_0xe53547,_0x783801,_0x4de4ea){const _0x55d5d2=_0x3a2165;super(_0x23d347,_0x4b36db,_0xe53547),this[_0x55d5d2(0x316)]=_0x783801,this[_0x55d5d2(0x42d)]=_0x4de4ea;}['transformUndoRedo'](_0x28716d,_0x28284d){const _0x120ad2=_0x3a2165,_0x394bba=this['_getUndoStack'](_0x28716d);if(_0x394bba)try{const _0x2462ac=this[_0x120ad2(0x3a0)](_0x394bba,_0x28284d);this[_0x120ad2(0x313)](_0x28716d,_0x2462ac);}catch(_0x3320bc){this[_0x120ad2(0x42d)][_0x120ad2(0x442)]('[CollaborationUndoRedoService]',_0x3320bc),this[_0x120ad2(0x3fa)](_0x28716d);}const _0x48b231=this['_getRedoStack'](_0x28716d);if(_0x48b231)try{const _0x402fb4=this['_transformStack'](_0x48b231,_0x28284d);this[_0x120ad2(0x1e5)](_0x28716d,_0x402fb4);}catch(_0x4be833){this[_0x120ad2(0x42d)][_0x120ad2(0x442)](_0x4be833),this[_0x120ad2(0x230)](_0x28716d);}}[_0x3a2165(0x3fa)](_0x4c43bb){const _0x2e0520=_0x3a2165,_0x43f4a2=this[_0x2e0520(0x10c)](_0x4c43bb);_0x43f4a2&&(_0x43f4a2[_0x2e0520(0x3a5)]=0x0,this[_0x2e0520(0x4a5)]());}['_clearRedo'](_0x3b7ca6){const _0xdb7b89=_0x3a2165,_0x51296f=this[_0xdb7b89(0x413)](_0x3b7ca6);_0x51296f&&(_0x51296f[_0xdb7b89(0x3a5)]=0x0,this['_updateStatus']());}[_0x3a2165(0x313)](_0x267378,_0x4765cc){const _0x419328=_0x3a2165;this[_0x419328(0x322)]['set'](_0x267378,_0x4765cc),this['_updateStatus']();}[_0x3a2165(0x1e5)](_0x44697a,_0x254463){const _0x45a23c=_0x3a2165;this[_0x45a23c(0x1bd)][_0x45a23c(0x194)](_0x44697a,_0x254463),this['_updateStatus']();}[_0x3a2165(0x3a0)](_0x5f4f22,_0x22e052){const _0x1d311a=_0x3a2165,_0x40e947=[];let _0x3e07d2=_0x22e052,_0x1c96e1=_0x22e052;for(let _0x4e2147=_0x5f4f22[_0x1d311a(0x3a5)]-0x1;_0x4e2147>=0x0;_0x4e2147--){const {unitID:_0x40e0ff,undoMutations:_0x4557d9,redoMutations:_0x2c9ad2}=_0x5f4f22[_0x4e2147],_0x54d0d0=this[_0x1d311a(0x316)]['transformMutationsWithChangeset'](_0x3e07d2,_0x4557d9),_0x302f22=this['_transformService'][_0x1d311a(0xf5)](_0x1c96e1,_0x2c9ad2);if(_[_0x1d311a(0x247)](_0x54d0d0)||_[_0x1d311a(0x247)](_0x302f22)){this[_0x1d311a(0x42d)][_0x1d311a(0x442)](_0x1d311a(0xc4),_0x1d311a(0x215),_0x54d0d0,_0x302f22);break;}_0x3e07d2=_0x54d0d0['c1Prime'],_0x1c96e1=_0x302f22[_0x1d311a(0x353)],_0x40e947[_0x1d311a(0x339)]({'unitID':_0x40e0ff,'undoMutations':_0x54d0d0[_0x1d311a(0x390)],'redoMutations':_0x302f22[_0x1d311a(0x390)]});}return _0x40e947[_0x1d311a(0x2a4)]();}};Be=pn([_e(0x0,a[_0x3a2165(0x137)]),_e(0x1,a[_0x3a2165(0x3e2)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x3a2165(0xc6)]),_e(0x4,a[_0x3a2165(0x490)])],Be);class Nt extends a['RxDisposable']{constructor(){const _0x52668d=_0x3a2165;super(),d(this,_0x52668d(0x128)),this[_0x52668d(0x128)]=v[_0x52668d(0x2cc)](window,_0x52668d(0x343))[_0x52668d(0x447)](v[_0x52668d(0x27a)](this['dispose$']),v[_0x52668d(0x282)](0x1),v[_0x52668d(0x2f6)](void 0x0));}[_0x3a2165(0x2b5)](_0xa715d3,_0x1dc084,_0x2be975=!0x1){const _0x3daafe=_0x3a2165,_0x36dfb4=new URL(window[_0x3daafe(0xd9)][_0x3daafe(0x181)]);_0x36dfb4['searchParams']['set'](_0xa715d3,_0x1dc084),_0x2be975?window[_0x3daafe(0x2de)]['replaceState']('','',_0x36dfb4[_0x3daafe(0x3b5)]()):window[_0x3daafe(0x2de)]['pushState']('','',_0x36dfb4[_0x3daafe(0x3b5)]());}[_0x3a2165(0x475)](_0x3e8444,_0x25529d=!0x1){const _0x47bc0d=_0x3a2165,_0x19befe=new URL(window[_0x47bc0d(0xd9)][_0x47bc0d(0x181)]);_0x19befe[_0x47bc0d(0x49f)][_0x47bc0d(0x140)](_0x3e8444),_0x25529d?window[_0x47bc0d(0x2de)][_0x47bc0d(0x48f)]('','',_0x19befe[_0x47bc0d(0x3b5)]()):window[_0x47bc0d(0x2de)][_0x47bc0d(0x32e)]('','',_0x19befe[_0x47bc0d(0x3b5)]());}['getParam'](_0x48449a){const _0x5b8f45=_0x3a2165;var _0x4a8470;return(_0x4a8470=new URL(window[_0x5b8f45(0xd9)]['href'])['searchParams']['get'](_0x48449a))!=null?_0x4a8470:void 0x0;}}var At=Object[_0x3a2165(0x1e2)],Cn=Object[_0x3a2165(0x383)],En=(_0x350138,_0x406411,_0x1a85ff)=>_0x406411 in _0x350138?At(_0x350138,_0x406411,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a85ff}):_0x350138[_0x406411]=_0x1a85ff,bn=(_0x42836b,_0x5ac0b4,_0x37f346,_0x1b4d47)=>{const _0x5bc49c=_0x3a2165;for(var _0x3ea560=_0x1b4d47>0x1?void 0x0:_0x1b4d47?Cn(_0x5ac0b4,_0x37f346):_0x5ac0b4,_0x1871e2=_0x42836b[_0x5bc49c(0x3a5)]-0x1,_0x3834f4;_0x1871e2>=0x0;_0x1871e2--)(_0x3834f4=_0x42836b[_0x1871e2])&&(_0x3ea560=(_0x1b4d47?_0x3834f4(_0x5ac0b4,_0x37f346,_0x3ea560):_0x3834f4(_0x3ea560))||_0x3ea560);return _0x1b4d47&&_0x3ea560&&At(_0x5ac0b4,_0x37f346,_0x3ea560),_0x3ea560;},ve=(_0x550851,_0x2ff37b)=>(_0x2a6872,_0x5d22b6)=>_0x2ff37b(_0x2a6872,_0x5d22b6,_0x550851),Tn=(_0x5524f5,_0x4bfd21,_0x459253)=>En(_0x5524f5,_0x4bfd21+'',_0x459253);const Rn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x3a2165(0x138)]=class extends a['Plugin']{constructor(_0x26971e=ts,_0x542a2f,_0x420e78,_0x25491c,_0x29dafe){const _0x1a27ab=_0x3a2165;super(),this['_config']=_0x26971e,this[_0x1a27ab(0x42d)]=_0x542a2f,this[_0x1a27ab(0x417)]=_0x420e78,this['_injector']=_0x25491c,this[_0x1a27ab(0x105)]=_0x29dafe;const {..._0x3c530d}=this[_0x1a27ab(0xdc)];this[_0x1a27ab(0x105)][_0x1a27ab(0x399)](A,_0x3c530d);}[_0x3a2165(0x47a)](){const _0x3506f1=_0x3a2165;this[_0x3506f1(0x151)](),a['touchDependencies'](this[_0x3506f1(0x3be)],[[ie],[exports[_0x3506f1(0x497)]],[Ee]]);}[_0x3a2165(0x20b)](){const _0x37b024=_0x3a2165;a[_0x37b024(0x46e)](this['_injector'],[[Ie]]);}[_0x3a2165(0xc7)](){const _0x531ab8=_0x3a2165;this[_0x531ab8(0x187)]();}[_0x3a2165(0x151)](){const _0x1e2fe9=_0x3a2165;var _0x5817fe,_0x286fcb,_0x2429dc,_0x490f96;this[_0x1e2fe9(0x3be)][_0x1e2fe9(0x4ac)](a[_0x1e2fe9(0x244)])&&this['_logService'][_0x1e2fe9(0x442)]('[UniverCollaborationClientPlugin]',_0x1e2fe9(0x19a));let _0x3dc494=[[a[_0x1e2fe9(0x244)],{'useClass':Be}],[exports['CollaborationSessionService']],[Xe],[P[_0x1e2fe9(0x1d8)]],[ze,{'useClass':Nt}],[q],[exports[_0x1e2fe9(0x30d)]],[P['WebSocketService']],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x286fcb=(_0x5817fe=this['_config'])==null?void 0x0:_0x5817fe[_0x1e2fe9(0x1cc)])!=null?_0x286fcb:exports['CollaborationSocketService']}],[P[_0x1e2fe9(0x162)],{'useClass':P[_0x1e2fe9(0xe3)]}],[_[_0x1e2fe9(0x3f6)],{'useClass':exports[_0x1e2fe9(0x3d3)]}],[a[_0x1e2fe9(0xeb)],{'useClass':exports['AuthzIoHttpService']}],[L[_0x1e2fe9(0x326)],{'useClass':exports[_0x1e2fe9(0x278)]}],[exports[_0x1e2fe9(0x31d)]],[exports[_0x1e2fe9(0x497)]],[exports[_0x1e2fe9(0x250)]],[Ie],[ie]];(_0x2429dc=this[_0x1e2fe9(0xdc)])!=null&&_0x2429dc[_0x1e2fe9(0x213)]&&_0x3dc494[_0x1e2fe9(0x339)]([be,{'useClass':ys}]),_0x3dc494=a['mergeOverrideWithDependencies'](_0x3dc494,(_0x490f96=this[_0x1e2fe9(0xdc)])==null?void 0x0:_0x490f96[_0x1e2fe9(0x29d)]),_0x3dc494[_0x1e2fe9(0x337)](_0x144007=>this[_0x1e2fe9(0x3be)][_0x1e2fe9(0x2e5)](_0x144007)),this[_0x1e2fe9(0x457)]();}[_0x3a2165(0x187)](){const _0x4f0c8a=_0x3a2165;this[_0x4f0c8a(0x167)](this['_renderManagerService'][_0x4f0c8a(0x2a9)](a[_0x4f0c8a(0x461)]['UNIVER_DOC'],[xe])),this[_0x4f0c8a(0x167)](this[_0x4f0c8a(0x417)]['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[ke]));}[_0x3a2165(0x457)](){const _0x1e18ab=_0x3a2165;var _0x4ce395,_0x416851;this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](P[_0x1e18ab(0x1d8)])[_0x1e18ab(0xd2)]({'priority':0x14,'interceptor':P['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_injector'][_0x1e18ab(0x305)](Ce),(_0x4ce395=this[_0x1e18ab(0xdc)])!=null&&_0x4ce395[_0x1e18ab(0x2d6)]||this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](exports[_0x1e18ab(0x30d)])[_0x1e18ab(0x1b7)](),(_0x416851=this[_0x1e18ab(0xdc)])!=null&&_0x416851[_0x1e18ab(0x2b4)]&&this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](pe),this['_injector'][_0x1e18ab(0x305)](exports[_0x1e18ab(0x31d)]),this['_injector'][_0x1e18ab(0x4ac)](exports[_0x1e18ab(0x250)])&&this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](exports['DesktopCollaborationStatusDisplayController']);}},Tn(exports[_0x3a2165(0x138)],_0x3a2165(0x48d),Rn),exports[_0x3a2165(0x138)]=bn([a['DependentOn'](_[_0x3a2165(0x102)]),ve(0x1,a[_0x3a2165(0x490)]),ve(0x2,R[_0x3a2165(0x205)]),ve(0x3,a[_0x3a2165(0x426)](a['Injector'])),ve(0x4,a[_0x3a2165(0xd1)])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=Mt,exports[_0x3a2165(0x39d)]=gt,exports['COLLAB_WEB_SOCKET_URL_KEY']=ut,exports[_0x3a2165(0xb2)]=y,exports['CollaborationStatusDisplay']=wt,exports[_0x3a2165(0x47b)]=Ge,exports['HEARTBEAT_INTERVAL_KEY']=dt,exports[_0x3a2165(0x376)]=Ve,exports['ICollaborationSocketService']=Fe,exports['IURLService']=ze,exports[_0x3a2165(0x232)]=ft,exports[_0x3a2165(0x1e4)]=mt,exports[_0x3a2165(0x272)]=vt,exports['SEND_CHANGESET_TIMEOUT_KEY']=Yt,exports[_0x3a2165(0x371)]=ht,exports[_0x3a2165(0x18a)]=_t,exports[_0x3a2165(0x4a3)]=$,exports['SheetCollabCursorShape']=Ot,exports[_0x3a2165(0x261)]=Nt,exports[_0x3a2165(0x34a)]=Ct,exports[_0x3a2165(0x469)]=Et;