@univerjs-pro/collaboration-client 0.4.1-nightly.202410221606 → 0.4.1-nightly.202410241606

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 _0x2094db=_0x57dd;(function(_0x580e21,_0x3c633f){const _0x363aea=_0x57dd,_0x2d1076=_0x580e21();while(!![]){try{const _0x5b6bab=parseInt(_0x363aea(0x2da))/0x1+parseInt(_0x363aea(0x3d3))/0x2+-parseInt(_0x363aea(0xa8))/0x3*(-parseInt(_0x363aea(0x134))/0x4)+parseInt(_0x363aea(0x243))/0x5+parseInt(_0x363aea(0x32b))/0x6+parseInt(_0x363aea(0xd4))/0x7+-parseInt(_0x363aea(0x3c9))/0x8;if(_0x5b6bab===_0x3c633f)break;else _0x2d1076['push'](_0x2d1076['shift']());}catch(_0x48d637){_0x2d1076['push'](_0x2d1076['shift']());}}}(_0x390c,0xbc783));var Yt=Object[_0x2094db(0x19c)],Kt=(_0x502346,_0x31e096,_0x3063ad)=>_0x31e096 in _0x502346?Yt(_0x502346,_0x31e096,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3063ad}):_0x502346[_0x31e096]=_0x3063ad,u=(_0x46763b,_0x4c7074,_0x31b5d2)=>Kt(_0x46763b,typeof _0x4c7074!=_0x2094db(0x1c6)?_0x4c7074+'':_0x4c7074,_0x31b5d2);Object[_0x2094db(0x19c)](exports,Symbol[_0x2094db(0x268)],{'value':'Module'});const a=require('@univerjs/core'),v=require('rxjs'),E=require(_0x2094db(0x142)),q=require('@univerjs/design'),A=require(_0x2094db(0x1dd)),w=require(_0x2094db(0x132)),_=require('@univerjs-pro/collaboration'),qt=require(_0x2094db(0x1f9)),N=require(_0x2094db(0x1e7)),C=require(_0x2094db(0x3f8)),D=require(_0x2094db(0x1c4)),se=require(_0x2094db(0x1be)),j=require(_0x2094db(0x363)),et=require(_0x2094db(0x356)),te=require('@univerjs/sheets-ui'),P=require('react'),Xt=require(_0x2094db(0x3d6)),zt=require(_0x2094db(0x15b)),St=_0x2094db(0x357),Jt=_0x2094db(0x395),vt='SNAPSHOT_URL_KEY',Zt=_0x2094db(0x163),Qt=0x7d0,mt=_0x2094db(0x3d9),es='ws://127.0.0.1:8000/universer-api/comb/connect',gt=_0x2094db(0x169),ts=0x7530,Ge=_0x2094db(0x30f),ft=0x4e20,ss=0x4e20,It='RETRY_CONNECTING_MAX_COUNT',is=0x3,pt=_0x2094db(0x2ca),ns=0x3e8,Ct='COLLAB_SUBMIT_CHANGESET_URL',rs='/universer-api/comb',Et='LOGIN_URL_KEY',os='/universer-api/oidc/authpage';var bt=(_0x25206d=>(_0x25206d[_0x25206d['UNDEFINED']=0x0]=_0x2094db(0x28d),_0x25206d[_0x25206d['OK']=0x1]='OK',_0x25206d[_0x25206d['INTERNAL_ERROR']=0x2]=_0x2094db(0x285),_0x25206d[_0x25206d[_0x2094db(0x10b)]=0x3]=_0x2094db(0x10b),_0x25206d[_0x25206d[_0x2094db(0x3fa)]=0x4]='NOT_FOUND',_0x25206d[_0x25206d[_0x2094db(0x450)]=0x5]=_0x2094db(0x450),_0x25206d[_0x25206d[_0x2094db(0x3f6)]=0x6]=_0x2094db(0x3f6),_0x25206d[_0x25206d[_0x2094db(0x433)]=0x7]=_0x2094db(0x433),_0x25206d[_0x25206d[_0x2094db(0x1eb)]=0x8]=_0x2094db(0x1eb),_0x25206d[_0x25206d[_0x2094db(0x3cb)]=0x9]=_0x2094db(0x3cb),_0x25206d[_0x25206d[_0x2094db(0x35b)]=0x1389]=_0x2094db(0x35b),_0x25206d[_0x25206d['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x2094db(0x391),_0x25206d[_0x25206d['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2094db(0x392),_0x25206d[_0x25206d['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x2094db(0x42e),_0x25206d[_0x25206d[_0x2094db(0x10a)]=0x1b59]=_0x2094db(0x10a),_0x25206d[_0x25206d[_0x2094db(0x128)]=0x1b5a]=_0x2094db(0x128),_0x25206d[_0x25206d[_0x2094db(0x159)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x25206d[_0x25206d['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x2094db(0xcb),_0x25206d[_0x25206d[_0x2094db(0x17e)]=0x1b5d]=_0x2094db(0x17e),_0x25206d[_0x25206d[_0x2094db(0x3c5)]=0x1f41]=_0x2094db(0x3c5),_0x25206d[_0x25206d[_0x2094db(0x200)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x25206d[_0x25206d[_0x2094db(0x2d6)]=0x232a]=_0x2094db(0x2d6),_0x25206d[_0x25206d['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2094db(0x19e),_0x25206d[_0x25206d[_0x2094db(0x34c)]=0x232c]=_0x2094db(0x34c),_0x25206d[_0x25206d[_0x2094db(0x40a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x25206d[_0x25206d[_0x2094db(0xbb)]=0x2711]=_0x2094db(0xbb),_0x25206d[_0x25206d['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2094db(0x24a),_0x25206d[_0x25206d[_0x2094db(0x2bc)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x25206d[_0x25206d[_0x2094db(0x3bb)]=0x2714]=_0x2094db(0x3bb),_0x25206d[_0x25206d[_0x2094db(0x250)]=-0x1]=_0x2094db(0x250),_0x25206d))(bt||{}),$=(_0x3173d7=>(_0x3173d7[_0x3173d7[_0x2094db(0xa5)]=0x0]=_0x2094db(0xa5),_0x3173d7[_0x3173d7['UNIVER_DOC']=0x1]=_0x2094db(0x3d0),_0x3173d7[_0x3173d7[_0x2094db(0x264)]=0x2]=_0x2094db(0x264),_0x3173d7[_0x3173d7[_0x2094db(0xe7)]=0x3]=_0x2094db(0xe7),_0x3173d7[_0x3173d7['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x3173d7[_0x3173d7[_0x2094db(0x250)]=-0x1]=_0x2094db(0x250),_0x3173d7))($||{}),b=(_0x2ae0ba=>(_0x2ae0ba[_0x2ae0ba[_0x2094db(0x305)]=0x0]=_0x2094db(0x305),_0x2ae0ba[_0x2ae0ba[_0x2094db(0x22d)]=0x1]=_0x2094db(0x22d),_0x2ae0ba[_0x2ae0ba[_0x2094db(0x151)]=0x2]=_0x2094db(0x151),_0x2ae0ba[_0x2ae0ba[_0x2094db(0x373)]=0x3]=_0x2094db(0x373),_0x2ae0ba[_0x2ae0ba['INGEST']=0x4]=_0x2094db(0x1cb),_0x2ae0ba[_0x2ae0ba[_0x2094db(0x2f5)]=0x5]=_0x2094db(0x2f5),_0x2ae0ba[_0x2ae0ba[_0x2094db(0x3da)]=0x6]=_0x2094db(0x3da),_0x2ae0ba[_0x2ae0ba[_0x2094db(0x250)]=-0x1]=_0x2094db(0x250),_0x2ae0ba))(b||{}),Ye=(_0xec14b6=>(_0xec14b6[_0xec14b6[_0x2094db(0x3e8)]=0x0]=_0x2094db(0x3e8),_0xec14b6[_0xec14b6['OK']=0x1]='OK',_0xec14b6[_0xec14b6[_0x2094db(0x428)]=0x2]=_0x2094db(0x428),_0xec14b6[_0xec14b6[_0x2094db(0x250)]=-0x1]=_0x2094db(0x250),_0xec14b6))(Ye||{}),Tt=(_0x19f8d6=>(_0x19f8d6[_0x19f8d6[_0x2094db(0x444)]=0x0]=_0x2094db(0x444),_0x19f8d6[_0x19f8d6[_0x2094db(0x153)]=0x1]=_0x2094db(0x153),_0x19f8d6[_0x19f8d6[_0x2094db(0x260)]=0x2]=_0x2094db(0x260),_0x19f8d6[_0x19f8d6[_0x2094db(0x294)]=0x3]=_0x2094db(0x294),_0x19f8d6[_0x19f8d6[_0x2094db(0x125)]=0x4]=_0x2094db(0x125),_0x19f8d6[_0x19f8d6[_0x2094db(0x250)]=-0x1]='UNRECOGNIZED',_0x19f8d6))(Tt||{});const L=_0x2094db(0x8d),as={};function Rt(_0x574bdb){const _0xf990f8=_0x2094db;var _0x237324,_0x4a4c78,_0x4f43e7,_0x4d5c08,_0xb469f9;const _0x502c20=_0x574bdb[_0xf990f8(0x212)],_0x53af69=JSON['parse'](_0x502c20);switch(_0x53af69[_0xf990f8(0x18f)]){case b[_0xf990f8(0x2f5)]:case b[_0xf990f8(0x22d)]:{const _0x32f394=_0x53af69['infoRsp'];return{..._0x53af69,'data':_0x32f394,'cmd':_0x53af69['cmd']};}case b['JOIN']:{const _0x576333=_0x53af69['joinRsp'];return{..._0x53af69,'data':_0x576333,'cmd':_0x53af69[_0xf990f8(0x18f)]};}case b['RECV']:{const _0x1ba4a3=_0x53af69['collaMsg'];switch(_0x1ba4a3['eventID']){case _[_0xf990f8(0x1e2)][_0xf990f8(0xa1)]:return{..._0x53af69,'data':{..._0x1ba4a3,'data':(_0x237324=_0x1ba4a3[_0xf990f8(0x326)])==null?void 0x0:_0x237324['cs']},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _[_0xf990f8(0x1e2)][_0xf990f8(0x193)]:return{..._0x53af69,'data':{..._0x1ba4a3,'data':(_0x4a4c78=_0x1ba4a3['csAckEvent'])==null?void 0x0:_0x4a4c78['cs']},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _['CollaborationEvent']['NEW_CHANGESETS']:return{..._0x53af69,'data':{..._0x1ba4a3,'data':(_0x4f43e7=_0x1ba4a3['newCsEvent'])==null?void 0x0:_0x4f43e7['cs']},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _[_0xf990f8(0x1e2)][_0xf990f8(0xc3)]:return{..._0x53af69,'data':{..._0x1ba4a3,'data':(_0x4d5c08=_0x1ba4a3[_0xf990f8(0x336)])==null?void 0x0:_0x4d5c08['cs']},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _[_0xf990f8(0x1e2)][_0xf990f8(0x3fd)]:return{..._0x53af69,'data':{..._0x1ba4a3,'data':(_0xb469f9=_0x1ba4a3[_0xf990f8(0x472)])==null?void 0x0:_0xb469f9['cs']},'cmd':_0x53af69['cmd']};case _[_0xf990f8(0x1e2)]['UPDATE_CURSOR']:return{..._0x53af69,'data':{..._0x1ba4a3,'data':_0x1ba4a3[_0xf990f8(0xdc)]},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _[_0xf990f8(0x1e2)][_0xf990f8(0x33b)]:return{..._0x53af69,'data':{..._0x1ba4a3,'data':_0x1ba4a3[_0xf990f8(0x3d1)]},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _[_0xf990f8(0x1e2)]['USERS_LEAVE']:return{..._0x53af69,'data':{..._0x1ba4a3,'data':_0x1ba4a3['leaveEvent']},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _['CollaborationEvent'][_0xf990f8(0x350)]:return{..._0x53af69,'data':{..._0x1ba4a3,'data':_0x1ba4a3[_0xf990f8(0x23b)]},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _[_0xf990f8(0x1e2)][_0xf990f8(0x434)]:case _['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x53af69,'data':{..._0x1ba4a3,'data':_0x1ba4a3['liveShareOperation']},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _[_0xf990f8(0x1e2)][_0xf990f8(0x417)]:return{..._0x53af69,'data':{..._0x1ba4a3,'data':_0x1ba4a3[_0xf990f8(0x23b)]},'cmd':_0x53af69['cmd']};case _['CollaborationEvent'][_0xf990f8(0x43c)]:return{..._0x53af69,'data':_0x1ba4a3,'cmd':_0x53af69['cmd']};case _[_0xf990f8(0x1e2)][_0xf990f8(0x2e3)]:return{..._0x53af69,'data':{..._0x1ba4a3,'data':_0x1ba4a3[_0xf990f8(0x34b)]},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _[_0xf990f8(0x1e2)][_0xf990f8(0x178)]:return{..._0x53af69,'data':{..._0x1ba4a3,'data':_0x1ba4a3[_0xf990f8(0x388)]},'cmd':_0x53af69[_0xf990f8(0x18f)]};case _[_0xf990f8(0x1e2)]['SHOULD_CLOSE_CONN']:return{..._0x53af69,'data':{..._0x1ba4a3,'data':_0x1ba4a3['shouldCloseConn']},'cmd':_0x53af69['cmd']};default:return _0x53af69;}}default:return _0x53af69;}}function Ot(_0x1c832a){const _0x3ee2b1=_0x2094db;switch(_0x1c832a['cmd']){case b[_0x3ee2b1(0x2f5)]:case b[_0x3ee2b1(0x22d)]:return JSON[_0x3ee2b1(0x36a)]({'cmd':_0x1c832a[_0x3ee2b1(0x18f)],'routeKey':_0x1c832a[_0x3ee2b1(0x460)]});case b['INGEST']:{let _0x10ad66;switch(_0x1c832a[_0x3ee2b1(0x212)][_0x3ee2b1(0x93)]){case _['CollaborationEvent']['UPDATE_CURSOR']:{_0x10ad66={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x1c832a[_0x3ee2b1(0x212)]['data']};break;}case _[_0x3ee2b1(0x1e2)][_0x3ee2b1(0x1c0)]:{_0x10ad66={'eventID':_['CollaborationEvent'][_0x3ee2b1(0x1c0)],'leaveEvent':_0x1c832a[_0x3ee2b1(0x212)]['data']};break;}case _[_0x3ee2b1(0x1e2)][_0x3ee2b1(0x33b)]:{_0x10ad66={'eventID':_[_0x3ee2b1(0x1e2)]['USERS_ENTER'],'joinEvent':_0x1c832a[_0x3ee2b1(0x212)][_0x3ee2b1(0x212)]};break;}case _[_0x3ee2b1(0x1e2)]['LIVESHARE_NEW_HOST']:{_0x10ad66={'eventID':_[_0x3ee2b1(0x1e2)][_0x3ee2b1(0x350)],'liveShareNewHost':_0x1c832a[_0x3ee2b1(0x212)][_0x3ee2b1(0x212)]};break;}case _[_0x3ee2b1(0x1e2)][_0x3ee2b1(0x106)]:{_0x10ad66={'eventID':_[_0x3ee2b1(0x1e2)][_0x3ee2b1(0x106)],'liveShareOperation':_0x1c832a[_0x3ee2b1(0x212)][_0x3ee2b1(0x212)]};break;}case _['CollaborationEvent'][_0x3ee2b1(0x417)]:{_0x10ad66={'eventID':_['CollaborationEvent'][_0x3ee2b1(0x417)],'liveShareTerminate':_0x1c832a[_0x3ee2b1(0x212)][_0x3ee2b1(0x212)]};break;}case _[_0x3ee2b1(0x1e2)][_0x3ee2b1(0x483)]:{_0x10ad66={'eventID':_[_0x3ee2b1(0x1e2)][_0x3ee2b1(0x483)],'liveShareRequestHost':_0x1c832a[_0x3ee2b1(0x212)]['data']};break;}case _[_0x3ee2b1(0x1e2)][_0x3ee2b1(0x434)]:{_0x10ad66={'eventID':_[_0x3ee2b1(0x1e2)][_0x3ee2b1(0x434)]};break;}default:_0x10ad66={'eventID':_0x1c832a[_0x3ee2b1(0x212)]['eventID']};}return JSON[_0x3ee2b1(0x36a)]({'cmd':_0x1c832a[_0x3ee2b1(0x18f)],'routeKey':_0x1c832a[_0x3ee2b1(0x460)],'collaMsg':_0x10ad66});}case b[_0x3ee2b1(0x151)]:return JSON[_0x3ee2b1(0x36a)]({'cmd':_0x1c832a[_0x3ee2b1(0x18f)],'routeKey':_0x1c832a[_0x3ee2b1(0x460)],'joinReq':_0x1c832a[_0x3ee2b1(0x212)]});case b['LEAVE']:return JSON[_0x3ee2b1(0x36a)]({'cmd':_0x1c832a[_0x3ee2b1(0x18f)],'routeKey':_0x1c832a[_0x3ee2b1(0x460)],'leaveReq':_0x1c832a[_0x3ee2b1(0x212)]});default:throw new Error(_0x3ee2b1(0x26a));}}var cs=Object[_0x2094db(0x19c)],ls=Object[_0x2094db(0x468)],hs=(_0x197524,_0x7f2ebc,_0x4e8003,_0x4a1ee7)=>{for(var _0xa83a21=_0x4a1ee7>0x1?void 0x0:_0x4a1ee7?ls(_0x7f2ebc,_0x4e8003):_0x7f2ebc,_0x31c058=_0x197524['length']-0x1,_0x9d767;_0x31c058>=0x0;_0x31c058--)(_0x9d767=_0x197524[_0x31c058])&&(_0xa83a21=(_0x4a1ee7?_0x9d767(_0x7f2ebc,_0x4e8003,_0xa83a21):_0x9d767(_0xa83a21))||_0xa83a21);return _0x4a1ee7&&_0xa83a21&&cs(_0x7f2ebc,_0x4e8003,_0xa83a21),_0xa83a21;},ae=(_0x2e0bcd,_0x239f60)=>(_0x1c8325,_0x2174a8)=>_0x239f60(_0x1c8325,_0x2174a8,_0x2e0bcd);const Ke=a['createIdentifier'](_0x2094db(0x22c));function _s(_0xb2adae,_0x11f5eb,_0x3b792c){const _0x5a00db=_0x2094db;return _0xb2adae+'/'+_0x11f5eb+_0x5a00db(0x167)+_0x3b792c+_0x5a00db(0x17b);}exports[_0x2094db(0xd8)]=class extends a[_0x2094db(0x46d)]{constructor(_0x14f410,_0x836376,_0x205d65,_0x1c2d06,_0xff6235){const _0x555e04=_0x2094db;super(),this[_0x555e04(0x11a)]=_0x14f410,this[_0x555e04(0x34a)]=_0x836376,this['_configService']=_0x205d65,this[_0x555e04(0xe0)]=_0x1c2d06,this[_0x555e04(0x3ed)]=_0xff6235;}[_0x2094db(0x1b0)](_0x26a913){const _0x2b0965=_0x2094db,_0x597325=this[_0x2b0965(0x34a)][_0x2b0965(0x1b0)](_0x26a913);if(!_0x597325)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3d346f=new a[(_0x2b0965(0x323))](),_0x36649a=new v[(_0x2b0965(0xc7))]();_0x3d346f[_0x2b0965(0x95)](_0x597325[_0x2b0965(0x436)][_0x2b0965(0x253)](_0x32e20b=>_0x36649a['next'](_0x32e20b))),_0x3d346f[_0x2b0965(0x95)](a[_0x2b0965(0x4a7)](()=>_0x36649a[_0x2b0965(0x456)]()));const _0x128972=new v['Subject']();_0x3d346f[_0x2b0965(0x95)](_0x597325[_0x2b0965(0x2ac)][_0x2b0965(0x253)](_0x5c55f4=>_0x128972[_0x2b0965(0x31f)](_0x5c55f4))),_0x3d346f[_0x2b0965(0x95)](a[_0x2b0965(0x4a7)](()=>_0x128972[_0x2b0965(0x456)]()));const _0x1f3ae9=new v['Subject']();_0x3d346f[_0x2b0965(0x95)](_0x597325[_0x2b0965(0x32d)][_0x2b0965(0x253)](_0x57bf51=>{const _0x4c9072=Rt(_0x57bf51);_0x1f3ae9['next'](_0x4c9072);})),_0x3d346f[_0x2b0965(0x95)](a[_0x2b0965(0x4a7)](()=>_0x1f3ae9[_0x2b0965(0x456)]()));let _0x266eb6;const _0x5d9716=()=>{const _0x195956=_0x2b0965;_0x128972['next'](new Event('connection\x20error')),_0x36649a['next'](new CloseEvent(_0x195956(0x475))),_0x266eb6[_0x195956(0x8c)]();};return _0x266eb6={'memberID':'','close$':_0x36649a['asObservable'](),'error$':_0x128972[_0x2b0965(0x416)](),'open$':_0x597325[_0x2b0965(0x313)],'message$':_0x1f3ae9[_0x2b0965(0x416)](),'send':_0x494e50=>{const _0x10cc83=_0x2b0965;if(_0x494e50[_0x10cc83(0x18f)]===b[_0x10cc83(0x1cb)]){if(_0x494e50['data'][_0x10cc83(0x93)]===_['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x10cc83(0x1fa)](_0x266eb6,_0x494e50[_0x10cc83(0x212)])['catch'](_0x5a2230=>{const _0x4b940d=_0x10cc83;this[_0x4b940d(0xe0)]['error'](_0x5a2230),_0x5d9716();});return;}if(_0x494e50[_0x10cc83(0x212)][_0x10cc83(0x93)]===_[_0x10cc83(0x1e2)][_0x10cc83(0xae)]){const _0x4ca9d6=_0x494e50[_0x10cc83(0x212)];this[_0x10cc83(0x227)](_0x4ca9d6)[_0x10cc83(0x10f)](_0x2e0db2=>{const _0x3035b5=_0x10cc83;_0x1f3ae9[_0x3035b5(0x31f)]({'cmd':b[_0x3035b5(0x3da)],'code':Ye['OK'],'routeKey':_0x4ca9d6[_0x3035b5(0x212)][_0x3035b5(0x198)],'routeType':'','data':{'eventID':_['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x2e0db2}}});})[_0x10cc83(0x1e1)](_0x52ff21=>{const _0x24386e=_0x10cc83;this[_0x24386e(0xe0)][_0x24386e(0x158)](_0x52ff21),_0x5d9716();});return;}}_0x597325[_0x10cc83(0x290)](Ot(_0x494e50));},'close':()=>{const _0x3917b3=_0x2b0965;_0x597325[_0x3917b3(0x8c)](),_0x3d346f[_0x3917b3(0x387)]();}},_0x266eb6;}async['_submitChangeset'](_0x8134b3,_0x26e242){const _0x5b2ebe=_0x2094db;var _0x588a9e,_0x7f3707;const {unitType:_0x58c08f,unitID:_0x23ff73,changeset:_0x2d57b}=_0x26e242[_0x5b2ebe(0x212)],_0x249f6b={'unitID':_0x23ff73,'memberID':_0x8134b3['memberID'],'type':_0x58c08f,'changeset':_[_0x5b2ebe(0x1ab)](_0x2d57b)},_0x14ef14=this[_0x5b2ebe(0x481)][_0x5b2ebe(0x24b)](Ct),_0x27fbac=this[_0x5b2ebe(0x481)][_0x5b2ebe(0x24b)](L),_0x5efab1=_s((_0x7f3707=(_0x588a9e=_0x27fbac==null?void 0x0:_0x27fbac[_0x5b2ebe(0x197)])!=null?_0x588a9e:_0x14ef14)!=null?_0x7f3707:rs,_0x58c08f,_0x23ff73);try{await this[_0x5b2ebe(0x11a)][_0x5b2ebe(0x168)](_0x5efab1,{'body':_0x249f6b});}catch(_0x5ba4ee){throw this['_logService'][_0x5b2ebe(0x158)](_0x5b2ebe(0x308),_0x5b2ebe(0x344)),_0x5ba4ee;}}async['_fetchMissChangesets'](_0x4c7919){const _0x2039de=_0x2094db,{unitID:_0x474420,from:_0x12048e,to:_0x3cf9bc,unitType:_0x2b6c8e}=_0x4c7919[_0x2039de(0x212)];return(await this[_0x2039de(0x3ed)][_0x2039de(0xb8)]({'metadata':void 0x0},{'unitID':_0x474420,'type':_0x2b6c8e,'from':_0x12048e,'to':_0x3cf9bc}))['changesets'];}},exports[_0x2094db(0xd8)]=hs([ae(0x0,a[_0x2094db(0xa7)](w[_0x2094db(0x1a0)])),ae(0x1,a['Inject'](w['WebSocketService'])),ae(0x2,a[_0x2094db(0x1ef)]),ae(0x3,a[_0x2094db(0x254)]),ae(0x4,_[_0x2094db(0x214)])],exports['CollaborationSocketService']);const us=_0x2094db(0x2b9);function ds(_0x1e7cf5){const _0x4a6ed8=_0x2094db;return JSON[_0x4a6ed8(0x36a)](_0x1e7cf5)[_0x4a6ed8(0xfc)];}class qe{constructor(){const _0x819928=_0x2094db;u(this,_0x819928(0x389),new v[(_0x819928(0xc7))]()),u(this,_0x819928(0x335),this[_0x819928(0x389)]['asObservable']());}[_0x2094db(0x40c)](_0x38b665){const _0x29b8de=_0x2094db;this[_0x29b8de(0x389)]['next'](_0x38b665);}}var Ss=Object['defineProperty'],vs=Object['getOwnPropertyDescriptor'],ms=(_0x21225a,_0x30d590,_0x54aaef,_0x1af1d6)=>{const _0x1736b7=_0x2094db;for(var _0x30fe46=_0x1af1d6>0x1?void 0x0:_0x1af1d6?vs(_0x30d590,_0x54aaef):_0x30d590,_0x5d862a=_0x21225a[_0x1736b7(0xfc)]-0x1,_0x5e7418;_0x5d862a>=0x0;_0x5d862a--)(_0x5e7418=_0x21225a[_0x5d862a])&&(_0x30fe46=(_0x1af1d6?_0x5e7418(_0x30d590,_0x54aaef,_0x30fe46):_0x5e7418(_0x30fe46))||_0x30fe46);return _0x1af1d6&&_0x30fe46&&Ss(_0x30d590,_0x54aaef,_0x30fe46),_0x30fe46;},tt=(_0x1ff54c,_0x230e11)=>(_0x412de0,_0x3c2db1)=>_0x230e11(_0x412de0,_0x3c2db1,_0x1ff54c);let X=class extends a[_0x2094db(0x46d)]{constructor(_0xb0bf72,_0x593131){const _0x3070d9=_0x2094db;super(),u(this,_0x3070d9(0x331),new Map()),(this[_0x3070d9(0x45f)]=_0xb0bf72,this[_0x3070d9(0x341)]=_0x593131,this[_0x3070d9(0x45b)](a[_0x3070d9(0x4a7)](v['merge'](this[_0x3070d9(0x45f)][_0x3070d9(0x185)](a[_0x3070d9(0x14b)][_0x3070d9(0x264)])[_0x3070d9(0x2be)](E[_0x3070d9(0x418)](_0x41ef46=>_0x41ef46[_0x3070d9(0x14d)]())),this[_0x3070d9(0x45f)][_0x3070d9(0x185)](a[_0x3070d9(0x14b)][_0x3070d9(0x3d0)])[_0x3070d9(0x2be)](E['map'](_0x11e0ef=>_0x11e0ef['getUnitId']())),this[_0x3070d9(0x45f)][_0x3070d9(0x185)](a[_0x3070d9(0x14b)][_0x3070d9(0xe7)])['pipe'](E[_0x3070d9(0x418)](_0xd10f8b=>_0xd10f8b[_0x3070d9(0x14d)]())))[_0x3070d9(0x253)](_0x823748=>this[_0x3070d9(0x22f)](_0x823748)))));}[_0x2094db(0x270)](_0x463dd5){const _0x54a06f=_0x2094db;this[_0x54a06f(0x341)]['setCurrentUser'](_0x463dd5);}[_0x2094db(0x26b)](){const _0x4b27cd=_0x2094db;return this[_0x4b27cd(0x341)][_0x4b27cd(0x26b)]();}[_0x2094db(0x39d)](_0x5422f7,_0x530310){const _0x4fc853=_0x2094db;let _0x5f237b=this[_0x4fc853(0x331)]['get'](_0x5422f7);_0x5f237b||(_0x5f237b=new gs(),this['_roomMembers'][_0x4fc853(0x26e)](_0x5422f7,_0x5f237b)),_0x5f237b[_0x4fc853(0x39d)](_0x530310);}[_0x2094db(0x21e)](_0x108f8b,_0xba7a2){const _0x278a8d=_0x2094db,_0x5c658b=this[_0x278a8d(0x331)][_0x278a8d(0x408)](_0x108f8b);_0x5c658b&&_0x5c658b[_0x278a8d(0x21e)](_0xba7a2);}['getRoom'](_0x5618a0){const _0x5719b5=_0x2094db;return this[_0x5719b5(0x331)][_0x5719b5(0x408)](_0x5618a0);}['getMember'](_0x33444d,_0x4e759f){const _0x4c7641=_0x2094db,_0x3e29ae=this[_0x4c7641(0x331)]['get'](_0x33444d);if(_0x3e29ae)return _0x3e29ae[_0x4c7641(0xd0)](_0x4e759f);}[_0x2094db(0x22f)](_0x1da053){const _0x14f1c7=_0x2094db,_0x5e96eb=this[_0x14f1c7(0x331)][_0x14f1c7(0x408)](_0x1da053);_0x5e96eb&&(_0x5e96eb[_0x14f1c7(0x387)](),this[_0x14f1c7(0x331)]['delete'](_0x1da053));}[_0x2094db(0x387)](){const _0x548b39=_0x2094db;this[_0x548b39(0x331)][_0x548b39(0x44f)](_0x52246f=>_0x52246f['dispose']()),this['_roomMembers']['clear']();}};X=ms([tt(0x0,a[_0x2094db(0x42f)]),tt(0x1,a[_0x2094db(0xa7)](a[_0x2094db(0x2b8)]))],X);class gs extends a[_0x2094db(0x46d)]{constructor(){const _0x113bd8=_0x2094db;super(...arguments),u(this,_0x113bd8(0x2a8),new Map());}[_0x2094db(0x387)](){const _0x4ddd13=_0x2094db;this[_0x4ddd13(0x2a8)]['clear']();}[_0x2094db(0x39d)](_0x1d7bbe){const _0x51d40d=_0x2094db;this[_0x51d40d(0x2a8)]['set'](_0x1d7bbe['memberID'],_0x1d7bbe);}[_0x2094db(0x21e)](_0x995e8b){const _0x6199aa=_0x2094db;this[_0x6199aa(0x2a8)][_0x6199aa(0x330)](_0x995e8b);}[_0x2094db(0xd0)](_0x19ba0f){return this['_members']['get'](_0x19ba0f);}}var fs=Object[_0x2094db(0x19c)],Is=Object[_0x2094db(0x468)],ps=(_0x4a1bd3,_0x42faec,_0x2b2f96,_0x334079)=>{for(var _0x59e299=_0x334079>0x1?void 0x0:_0x334079?Is(_0x42faec,_0x2b2f96):_0x42faec,_0x14385e=_0x4a1bd3['length']-0x1,_0xdd148c;_0x14385e>=0x0;_0x14385e--)(_0xdd148c=_0x4a1bd3[_0x14385e])&&(_0x59e299=(_0x334079?_0xdd148c(_0x42faec,_0x2b2f96,_0x59e299):_0xdd148c(_0x59e299))||_0x59e299);return _0x334079&&_0x59e299&&fs(_0x42faec,_0x2b2f96,_0x59e299),_0x59e299;},V=(_0x5e3b2b,_0x336498)=>(_0x201ab9,_0x42d80b)=>_0x336498(_0x201ab9,_0x42d80b,_0x5e3b2b),H=(_0x59e811=>(_0x59e811[_0x59e811['IDLE']=0x0]='IDLE',_0x59e811[_0x59e811[_0x2094db(0x23f)]=0x1]=_0x2094db(0x23f),_0x59e811[_0x59e811[_0x2094db(0x458)]=0x2]=_0x2094db(0x458),_0x59e811[_0x59e811[_0x2094db(0x496)]=0x3]=_0x2094db(0x496),_0x59e811))(H||{});exports[_0x2094db(0x3a0)]=class extends a[_0x2094db(0x13e)]{constructor(_0x55e014,_0x8293d5,_0x40c2b4,_0x494c5d,_0xaa40fb,_0x3363ef,_0x8dadaa,_0x285d35,_0x1c602c,_0xcf3af6){const _0x2bb1b3=_0x2094db;super(),u(this,_0x2bb1b3(0x1c9),new v[(_0x2bb1b3(0x31e))](0x0)),u(this,_0x2bb1b3(0xb2),this[_0x2bb1b3(0x1c9)]['asObservable']()),u(this,'_event$',new v[(_0x2bb1b3(0xc7))]()),u(this,_0x2bb1b3(0x3e3),this['_event$'][_0x2bb1b3(0x416)]()),u(this,_0x2bb1b3(0x299)),u(this,_0x2bb1b3(0x347)),u(this,_0x2bb1b3(0x9f)),u(this,_0x2bb1b3(0x194),!0x1),u(this,'_telemetryInfo',null),(this['_unitID']=_0x55e014,this['_logService']=_0x40c2b4,this[_0x2bb1b3(0x109)]=_0x494c5d,this['_messageService']=_0xaa40fb,this[_0x2bb1b3(0x481)]=_0x3363ef,this[_0x2bb1b3(0x3f7)]=_0x8dadaa,this['_memberService']=_0x285d35,this[_0x2bb1b3(0x1cc)]=_0x1c602c,this[_0x2bb1b3(0x3a6)]=_0xcf3af6,this[_0x2bb1b3(0x194)]=!!this['_telemetryService'],_0x8293d5[_0x2bb1b3(0x2be)](v[_0x2bb1b3(0x1f1)](this[_0x2bb1b3(0x271)]))[_0x2bb1b3(0x253)](_0x369276=>{const _0x4b6bdd=_0x2bb1b3;var _0x4df56f;typeof _0x369276>'u'||(this['_socket']=_0x369276,_0x369276?(this[_0x4b6bdd(0x160)](_0x369276),this[_0x4b6bdd(0x347)]=_0x369276[_0x4b6bdd(0x32d)][_0x4b6bdd(0x253)](_0x5b15ad=>{const _0xe6a921=_0x4b6bdd;_0x5b15ad[_0xe6a921(0x460)]===this[_0xe6a921(0x137)]&&this['_onCombEvent'](_0x5b15ad);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4b6bdd(0x1c9)]['next'](0x2),(_0x4df56f=this['_socketMessageSubscription'])==null||_0x4df56f[_0x4b6bdd(0x3ef)](),this['_socketMessageSubscription']=null));}),this[_0x2bb1b3(0x45b)](this[_0x2bb1b3(0x109)]['registerOnClose'](()=>{const _0x3d420c=_0x2bb1b3;var _0x43fda1;(_0x43fda1=this[_0x3d420c(0x299)])==null||_0x43fda1[_0x3d420c(0x290)]({'cmd':b[_0x3d420c(0x373)],'data':{'roomID':this[_0x3d420c(0x137)]}});})));}get['sessionStatus'](){const _0x27825d=_0x2094db;return this[_0x27825d(0x1c9)][_0x27825d(0x1ed)]();}[_0x2094db(0x2ba)](){const _0x5235ed=_0x2094db;var _0x17c876,_0x208a29;return(_0x208a29=(_0x17c876=this[_0x5235ed(0x299)])==null?void 0x0:_0x17c876[_0x5235ed(0x1a7)])!=null?_0x208a29:null;}['dispose'](){const _0x4e7498=_0x2094db;super[_0x4e7498(0x387)](),this['dispose$']['next'](),this['dispose$'][_0x4e7498(0x456)]();}[_0x2094db(0x8c)](){const _0x2ec4a4=_0x2094db;var _0x4c9f99,_0x32138c;this[_0x2ec4a4(0x482)](),(_0x4c9f99=this[_0x2ec4a4(0x299)])==null||_0x4c9f99[_0x2ec4a4(0x290)]({'cmd':b[_0x2ec4a4(0x373)],'data':{'roomID':this[_0x2ec4a4(0x137)]}}),(_0x32138c=this[_0x2ec4a4(0x299)])==null||_0x32138c[_0x2ec4a4(0x8c)](),this[_0x2ec4a4(0x183)]['complete'](),this[_0x2ec4a4(0x1c9)][_0x2ec4a4(0x456)](),this[_0x2ec4a4(0x387)]();}[_0x2094db(0x384)](_0xe76fd2){const _0x374b45=_0x2094db;_0xe76fd2[_0x374b45(0x18f)]===b[_0x374b45(0x151)]?this[_0x374b45(0xcf)](_0xe76fd2):_0xe76fd2[_0x374b45(0x18f)]===b[_0x374b45(0x3da)]&&this[_0x374b45(0x381)](_0xe76fd2);}[_0x2094db(0x160)](_0x319b53){const _0x222b04=_0x2094db;this[_0x222b04(0x1c9)]['next'](0x1),_0x319b53[_0x222b04(0x290)]({'cmd':b[_0x222b04(0x151)],'routeKey':this[_0x222b04(0x137)],'routeType':'','data':{'rooms':[{'roomID':this[_0x222b04(0x137)]}]}});}[_0x2094db(0xcf)](_0x480bf6){const _0x3ddd84=_0x2094db;var _0x1c6c5f;if(_0x480bf6[_0x3ddd84(0xb4)]===Ye[_0x3ddd84(0x428)]){this[_0x3ddd84(0x2d5)]['show']({'type':q[_0x3ddd84(0x346)][_0x3ddd84(0x41d)],'content':this[_0x3ddd84(0x3f7)]['t'](_0x3ddd84(0x19a))}),this[_0x3ddd84(0x1c9)][_0x3ddd84(0x31f)](0x2);return;}this[_0x3ddd84(0x1c9)][_0x3ddd84(0x31f)](0x3);const _0x15bff4=(_0x1c6c5f=_0x480bf6[_0x3ddd84(0x212)][_0x3ddd84(0x236)][this[_0x3ddd84(0x137)]])==null?void 0x0:_0x1c6c5f[_0x3ddd84(0x21c)];_0x15bff4&&_0x15bff4[_0x3ddd84(0x44f)](_0x203545=>this[_0x3ddd84(0x112)][_0x3ddd84(0x39d)](this[_0x3ddd84(0x137)],_0x203545));}[_0x2094db(0x381)](_0x5f5af5){const _0x58aac0=_0x2094db;try{const _0x2d223f=_0x5f5af5[_0x58aac0(0x212)];switch(_0x2d223f[_0x58aac0(0x93)]){case _[_0x58aac0(0x1e2)][_0x58aac0(0x33b)]:this[_0x58aac0(0x2d7)](_0x2d223f),this[_0x58aac0(0x183)][_0x58aac0(0x31f)](_0x2d223f);break;case _[_0x58aac0(0x1e2)][_0x58aac0(0x1c0)]:this[_0x58aac0(0x1ea)](_0x2d223f),this['_event$'][_0x58aac0(0x31f)](_0x2d223f);break;case _[_0x58aac0(0x1e2)][_0x58aac0(0x193)]:case _[_0x58aac0(0x1e2)][_0x58aac0(0x3fd)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this['_event$']['next'](_0x2d223f);break;case _[_0x58aac0(0x1e2)][_0x58aac0(0x43c)]:this[_0x58aac0(0xe0)][_0x58aac0(0x158)](_0x58aac0(0x1e4)+JSON[_0x58aac0(0x36a)](_0x2d223f)),this[_0x58aac0(0x183)][_0x58aac0(0x31f)](_0x2d223f);break;case _[_0x58aac0(0x1e2)][_0x58aac0(0x2e3)]:this[_0x58aac0(0x1cc)]['onCommentUpdate'](_0x2d223f[_0x58aac0(0x212)]),this[_0x58aac0(0x183)][_0x58aac0(0x31f)](_0x2d223f);break;default:this[_0x58aac0(0x183)]['next'](_0x2d223f);}}catch(_0x1b3f44){this[_0x58aac0(0xe0)][_0x58aac0(0x158)](_0x1b3f44,_0x5f5af5);}}[_0x2094db(0x2d7)](_0x4af87b){const _0x19a11b=_0x2094db;this[_0x19a11b(0x112)]['updateMember'](this[_0x19a11b(0x137)],_0x4af87b['data']);}['_onUserLeave'](_0x1a191c){const _0x339cf2=_0x2094db;this['_memberService'][_0x339cf2(0x21e)](this[_0x339cf2(0x137)],_0x1a191c[_0x339cf2(0x212)][_0x339cf2(0x1a7)]);}async[_0x2094db(0x290)](_0x1e5032,_0xa37582){const _0x27a08e=_0x2094db;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x27a08e(0x376));try{_0x1e5032['eventID']===_[_0x27a08e(0x1e2)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x1e5032)),this[_0x27a08e(0x299)][_0x27a08e(0x290)]({'cmd':b[_0x27a08e(0x1cb)],'routeKey':_0xa37582,'routeType':'','data':_0x1e5032});}catch(_0x2433ef){this[_0x27a08e(0xe0)][_0x27a08e(0x158)](_0x2433ef);}}[_0x2094db(0x16c)](){const _0x27797d=_0x2094db;var _0x37a750;this[_0x27797d(0x9f)]=window['setTimeout'](()=>{const _0x399b9a=_0x27797d;this[_0x399b9a(0x9f)]=null,this[_0x399b9a(0x2d5)][_0x399b9a(0x296)]({'type':q[_0x399b9a(0x346)][_0x399b9a(0x20b)],'content':this[_0x399b9a(0x3f7)]['t']('session.collaboration-timeout')});},(_0x37a750=this['_configService'][_0x27797d(0x24b)](Ge))!=null?_0x37a750:ft);}['_clearCollaborationTimeoutTimer'](){const _0x16ec5c=_0x2094db;this[_0x16ec5c(0x9f)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x2094db(0x195)](_0x5fcb3e){const _0x391f52=_0x2094db;if(!this[_0x391f52(0x194)])return;const {data:_0x35da9c}=_0x5fcb3e,{unitID:_0x17a855,changeset:_0x1d484a}=_0x35da9c,{mutations:_0x19770a,type:_0x48e4e2}=_0x1d484a;this[_0x391f52(0x440)]={'unitId':_0x17a855,'type':_0x48e4e2,'startTime':performance[_0x391f52(0x1e3)](),'stopTime':0x0,'duration':0x0,'size':ds(_0x19770a)};}[_0x2094db(0x111)](){const _0x44cfb3=_0x2094db;if(this[_0x44cfb3(0x194)]){if(!this[_0x44cfb3(0x440)]){this[_0x44cfb3(0xe0)][_0x44cfb3(0x158)](_0x44cfb3(0x308),_0x44cfb3(0x267));return;}this[_0x44cfb3(0x440)][_0x44cfb3(0x298)]=performance[_0x44cfb3(0x1e3)](),this[_0x44cfb3(0x440)][_0x44cfb3(0x1f5)]=this[_0x44cfb3(0x440)][_0x44cfb3(0x298)]-this['_telemetryInfo']['startTime'],this[_0x44cfb3(0x3a6)][_0x44cfb3(0xf1)](us,this[_0x44cfb3(0x440)]),this[_0x44cfb3(0x440)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}},exports['CollaborationSession']=ps([V(0x2,a[_0x2094db(0x254)]),V(0x3,A[_0x2094db(0x26d)]),V(0x4,A[_0x2094db(0x461)]),V(0x5,a[_0x2094db(0x1ef)]),V(0x6,a[_0x2094db(0xa7)](a['LocaleService'])),V(0x7,a[_0x2094db(0xa7)](X)),V(0x8,a[_0x2094db(0xa7)](qe)),V(0x9,a[_0x2094db(0x25c)](qt['ITelemetryService']))],exports[_0x2094db(0x3a0)]);var Cs=Object['defineProperty'],Es=Object['getOwnPropertyDescriptor'],bs=(_0x3764f2,_0x97cff6,_0x55c0f6,_0x2228ae)=>{const _0x371816=_0x2094db;for(var _0x5bed8b=_0x2228ae>0x1?void 0x0:_0x2228ae?Es(_0x97cff6,_0x55c0f6):_0x97cff6,_0x2668ef=_0x3764f2[_0x371816(0xfc)]-0x1,_0x133388;_0x2668ef>=0x0;_0x2668ef--)(_0x133388=_0x3764f2[_0x2668ef])&&(_0x5bed8b=(_0x2228ae?_0x133388(_0x97cff6,_0x55c0f6,_0x5bed8b):_0x133388(_0x5bed8b))||_0x5bed8b);return _0x2228ae&&_0x5bed8b&&Cs(_0x97cff6,_0x55c0f6,_0x5bed8b),_0x5bed8b;},Z=(_0x59d55a,_0x36ee5e)=>(_0x42e362,_0x5231ab)=>_0x36ee5e(_0x42e362,_0x5231ab,_0x59d55a);exports['CollaborationSessionService']=class extends a[_0x2094db(0x46d)]{constructor(_0x18859e,_0xaa8315,_0xe193,_0x25c0c0,_0xad3c7d,_0xfd9a9d){const _0x374d91=_0x2094db;super(),u(this,_0x374d91(0x337),new v[(_0x374d91(0x31e))](void 0x0)),u(this,_0x374d91(0x252),this['_socket$'][_0x374d91(0x416)]()),u(this,'_candidateSocket',null),u(this,_0x374d91(0x47f),new Map()),u(this,_0x374d91(0x1d9),new v[(_0x374d91(0x31e))](H['IDLE'])),u(this,_0x374d91(0x435),this[_0x374d91(0x1d9)][_0x374d91(0x416)]()),u(this,_0x374d91(0x1bc),!0x1),u(this,'_retryConnectingTimer'),u(this,_0x374d91(0x3d8),0x0),u(this,_0x374d91(0x225)),u(this,'_timeoutTimer'),(this[_0x374d91(0x3c6)]=_0x18859e,this[_0x374d91(0x3f7)]=_0xaa8315,this[_0x374d91(0x2d5)]=_0xe193,this[_0x374d91(0xe0)]=_0x25c0c0,this[_0x374d91(0x481)]=_0xad3c7d,this[_0x374d91(0x143)]=_0xfd9a9d,this['_initEventListeners']());}get['_socket'](){const _0x3563ba=_0x2094db;return this[_0x3563ba(0x337)]['getValue']();}[_0x2094db(0x1f6)](){const _0x44c3c3=_0x2094db;this[_0x44c3c3(0x45a)](),this[_0x44c3c3(0x150)]();}['dispose'](){const _0x19ec05=_0x2094db;super['dispose'](),this['_sessions'][_0x19ec05(0x44f)](_0x351174=>_0x351174[_0x19ec05(0x387)]()),this[_0x19ec05(0x47f)][_0x19ec05(0x29e)](),this['_status$'][_0x19ec05(0x456)]();}async[_0x2094db(0x3ad)](_0x58e253){const _0xeefbcb=_0x2094db;if(this[_0xeefbcb(0x47f)][_0xeefbcb(0x24d)](_0x58e253))return this[_0xeefbcb(0x47f)]['get'](_0x58e253);this[_0xeefbcb(0x1fc)]();const _0x5e219d=this[_0xeefbcb(0x3c6)][_0xeefbcb(0x47d)](exports[_0xeefbcb(0x3a0)],_0x58e253,this[_0xeefbcb(0x337)][_0xeefbcb(0x416)]());return this[_0xeefbcb(0x47f)][_0xeefbcb(0x26e)](_0x58e253,_0x5e219d),_0x5e219d;}[_0x2094db(0x259)](_0x16f78b){const _0x521c0f=_0x2094db;var _0x2e2835;const _0x4207be=this[_0x521c0f(0x47f)][_0x521c0f(0x408)](_0x16f78b);_0x4207be&&(this[_0x521c0f(0x47f)][_0x521c0f(0x330)](_0x16f78b),_0x4207be[_0x521c0f(0x8c)]()),this[_0x521c0f(0x47f)][_0x521c0f(0x369)]||(_0x2e2835=this[_0x521c0f(0x299)])==null||_0x2e2835['close']();}[_0x2094db(0x119)](){const _0xd43fa4=_0x2094db;this[_0xd43fa4(0x3d8)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0xd43fa4(0x439)]),this[_0xd43fa4(0x439)]=null),this['_tryReconnect']();}[_0x2094db(0x306)](){const _0x584b9f=_0x2094db;var _0x42fb00,_0x1d4207;const _0x4fef20=this['_configService'][_0x584b9f(0x24b)](mt),_0x452e3e=this['_configService'][_0x584b9f(0x24b)](L),_0x265d49=(_0x1d4207=(_0x42fb00=_0x452e3e==null?void 0x0:_0x452e3e[_0x584b9f(0x23c)])!=null?_0x42fb00:_0x4fef20)!=null?_0x1d4207:es,_0x39bb2a=this[_0x584b9f(0x143)][_0x584b9f(0x1b0)](_0x265d49);return this[_0x584b9f(0x4ab)]=_0x39bb2a,_0x39bb2a;}[_0x2094db(0x1fc)](){const _0x534cef=_0x2094db;var _0x32e19d,_0x347e62;try{const _0x6c2166=(_0x347e62=(_0x32e19d=this[_0x534cef(0x299)])!=null?_0x32e19d:this[_0x534cef(0x4ab)])!=null?_0x347e62:this[_0x534cef(0x306)]();if(_0x6c2166){const _0x53a8df=_0x6c2166[_0x534cef(0x290)];_0x6c2166[_0x534cef(0x290)]=_0x45eaa0=>(this[_0x534cef(0x126)](),_0x53a8df[_0x534cef(0x2a3)](_0x6c2166,[_0x45eaa0])),_0x6c2166[_0x534cef(0x32d)]['subscribe'](_0x48766a=>this['_onMessage'](_0x6c2166,_0x48766a)),_0x6c2166['error$'][_0x534cef(0x2be)](E[_0x534cef(0x189)](0x1))[_0x534cef(0x253)](_0x5b5e00=>this['_logService']['error'](_0x534cef(0x470),_0x5b5e00)),_0x6c2166[_0x534cef(0x313)][_0x534cef(0x2be)](E[_0x534cef(0x189)](0x1))[_0x534cef(0x253)](()=>{const _0xebcde4=_0x534cef;this[_0xebcde4(0x3a2)](_0x6c2166);}),_0x6c2166[_0x534cef(0x436)]['pipe'](E[_0x534cef(0x189)](0x1))[_0x534cef(0x253)](_0x2c3862=>{const _0x2b5e04=_0x534cef;this[_0x2b5e04(0xe0)]['debug'](_0x2b5e04(0x397),_0x2b5e04(0x96),_0x2c3862),this[_0x2b5e04(0x2ea)]();});}}catch(_0x189a90){this[_0x534cef(0xe0)][_0x534cef(0x158)](_0x189a90),this[_0x534cef(0x2ea)]();}}[_0x2094db(0x3a2)](_0x408e96){const _0x4d8061=_0x2094db;this['_logService'][_0x4d8061(0x43e)](_0x4d8061(0x397),_0x4d8061(0x2bf)),_0x408e96[_0x4d8061(0x290)]({'cmd':b[_0x4d8061(0x22d)]}),this[_0x4d8061(0x126)]();}['_listenToOfflineEvent'](){const _0x57d9ff=_0x2094db;window[_0x57d9ff(0x2b7)](_0x57d9ff(0x21a),()=>this[_0x57d9ff(0x20c)]());}[_0x2094db(0x20c)](){const _0x21f91e=_0x2094db;this[_0x21f91e(0x1bc)]=!0x1,this['_candidateSocket']=null,this[_0x21f91e(0x1d9)][_0x21f91e(0x31f)](H[_0x21f91e(0x458)]),this[_0x21f91e(0x337)][_0x21f91e(0x31f)](null),this['_clearTimeoutTimer'](),this[_0x21f91e(0x3f5)]();}[_0x2094db(0x2ea)](){const _0x170e13=_0x2094db;var _0x2483cb;this[_0x170e13(0x20c)](),this['_retryCount']<((_0x2483cb=this[_0x170e13(0x481)][_0x170e13(0x24b)](It))!=null?_0x2483cb:is)?(this[_0x170e13(0x2d5)][_0x170e13(0x296)]({'key':_0x170e13(0x39c),'type':q[_0x170e13(0x346)]['Warning'],'content':this[_0x170e13(0x3f7)]['t']('session.will-retry')}),this[_0x170e13(0x274)]()):this[_0x170e13(0x2d5)]['show']({'key':'collaboration-session-retry','type':q[_0x170e13(0x346)][_0x170e13(0x20b)],'content':this[_0x170e13(0x3f7)]['t'](_0x170e13(0x43f))});}['_listenToOnlineEvent'](){const _0x4582a1=_0x2094db,_0x5d2758=()=>{const _0x30b198=_0x57dd;this[_0x30b198(0x299)]||this[_0x30b198(0x119)]();},_0x4974ce=()=>{const _0x312338=_0x57dd;this[_0x312338(0x299)]||document['visibilityState']===_0x312338(0x411)||this[_0x312338(0x119)]();};window['addEventListener'](_0x4582a1(0x353),_0x5d2758),document[_0x4582a1(0x2b7)]('visibilitychange',_0x4974ce);}[_0x2094db(0x274)](){const _0x558053=_0x2094db;var _0x297519;const _0x487850=this['_retryCount'],_0x134a44=this[_0x558053(0x481)]['getConfig'](L),_0x529184=_0x487850===0x0?0x0:((_0x297519=_0x134a44==null?void 0x0:_0x134a44['retryConnectingInterval'])!=null?_0x297519:ss)*0x2**_0x487850;this[_0x558053(0x439)]=window[_0x558053(0x140)](()=>{const _0x10af24=_0x558053;clearTimeout(this[_0x10af24(0x439)]),this[_0x10af24(0x439)]=null,this[_0x10af24(0x1fc)]();},_0x529184),this[_0x558053(0x3d8)]+=0x1;}[_0x2094db(0x166)](_0x3ae545,_0x3de05c){const _0x3175fb=_0x2094db,{cmd:_0x3ae2d}=_0x3de05c;_0x3ae2d===b[_0x3175fb(0x22d)]&&!this['_socketReady']&&(_0x3ae545[_0x3175fb(0x1a7)]=_0x3de05c[_0x3175fb(0x212)][_0x3175fb(0x1a7)],this[_0x3175fb(0x337)][_0x3175fb(0x31f)](_0x3ae545),this[_0x3175fb(0x1d9)][_0x3175fb(0x31f)](H[_0x3175fb(0x496)]),this[_0x3175fb(0x1bc)]=!0x0,this[_0x3175fb(0x4ab)]=null),_0x3ae2d===b[_0x3175fb(0x2f5)]&&this[_0x3175fb(0x261)](),this[_0x3175fb(0x126)]();}[_0x2094db(0x126)](){const _0x4de491=_0x2094db;var _0x54ad00;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0x4de491(0x140)](()=>this[_0x4de491(0x222)](),(_0x54ad00=this[_0x4de491(0x481)][_0x4de491(0x24b)](gt))!=null?_0x54ad00:ts);}[_0x2094db(0x222)](){const _0x2621af=_0x2094db;this['_socket'][_0x2621af(0x290)]({'cmd':b[_0x2621af(0x2f5)]}),this['_waitForHeartbeatResponse']();}[_0x2094db(0x2de)](){const _0x32f888=_0x2094db;var _0x45bb28;this[_0x32f888(0x427)]=window[_0x32f888(0x140)](()=>this[_0x32f888(0x2ea)](),(_0x45bb28=this[_0x32f888(0x481)][_0x32f888(0x24b)](Ge))!=null?_0x45bb28:ft);}['_clearHeartbeatTimer'](){const _0x26658f=_0x2094db;this[_0x26658f(0x225)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x26658f(0x225)]=null);}[_0x2094db(0x261)](){const _0x3c591c=_0x2094db;this[_0x3c591c(0x427)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3c591c(0x427)]=null);}},exports['CollaborationSessionService']=bs([Z(0x0,a['Inject'](a['Injector'])),Z(0x1,a['Inject'](a[_0x2094db(0x1f8)])),Z(0x2,A[_0x2094db(0x461)]),Z(0x3,a[_0x2094db(0x254)]),Z(0x4,a[_0x2094db(0x1ef)]),Z(0x5,Ke)],exports['CollaborationSessionService']);var O=[];for(var Ue=0x0;Ue<0x100;++Ue)O[_0x2094db(0x3b2)]((Ue+0x100)[_0x2094db(0x362)](0x10)[_0x2094db(0x1c3)](0x1));function Ts(_0xdd462a,_0x36fb0e=0x0){const _0x1c621c=_0x2094db;return(O[_0xdd462a[_0x36fb0e+0x0]]+O[_0xdd462a[_0x36fb0e+0x1]]+O[_0xdd462a[_0x36fb0e+0x2]]+O[_0xdd462a[_0x36fb0e+0x3]]+'-'+O[_0xdd462a[_0x36fb0e+0x4]]+O[_0xdd462a[_0x36fb0e+0x5]]+'-'+O[_0xdd462a[_0x36fb0e+0x6]]+O[_0xdd462a[_0x36fb0e+0x7]]+'-'+O[_0xdd462a[_0x36fb0e+0x8]]+O[_0xdd462a[_0x36fb0e+0x9]]+'-'+O[_0xdd462a[_0x36fb0e+0xa]]+O[_0xdd462a[_0x36fb0e+0xb]]+O[_0xdd462a[_0x36fb0e+0xc]]+O[_0xdd462a[_0x36fb0e+0xd]]+O[_0xdd462a[_0x36fb0e+0xe]]+O[_0xdd462a[_0x36fb0e+0xf]])[_0x1c621c(0x25a)]();}var Se,Rs=new Uint8Array(0x10);function Os(){const _0x30c57c=_0x2094db;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x30c57c(0x46a)]&&crypto[_0x30c57c(0x46a)][_0x30c57c(0x38b)](crypto),!Se))throw new Error(_0x30c57c(0x396));return Se(Rs);}var Ds=typeof crypto<'u'&&crypto[_0x2094db(0x4a1)]&&crypto[_0x2094db(0x4a1)]['bind'](crypto);const st={'randomUUID':Ds};function ys(_0x3294f8,_0x5a337c,_0x152e3c){const _0x3133b3=_0x2094db;if(st['randomUUID']&&!_0x5a337c&&!_0x3294f8)return st['randomUUID']();_0x3294f8=_0x3294f8||{};var _0x406689=_0x3294f8[_0x3133b3(0x1d1)]||(_0x3294f8[_0x3133b3(0x26c)]||Os)();return _0x406689[0x6]=_0x406689[0x6]&0xf|0x40,_0x406689[0x8]=_0x406689[0x8]&0x3f|0x80,Ts(_0x406689);}var Us=Object[_0x2094db(0x19c)],Ps=Object[_0x2094db(0x468)],ws=(_0x76adc3,_0x1d52e1,_0x54c32b,_0x30314a)=>{const _0x141a92=_0x2094db;for(var _0x48d24e=_0x30314a>0x1?void 0x0:_0x30314a?Ps(_0x1d52e1,_0x54c32b):_0x1d52e1,_0x340ae1=_0x76adc3[_0x141a92(0xfc)]-0x1,_0x4888e6;_0x340ae1>=0x0;_0x340ae1--)(_0x4888e6=_0x76adc3[_0x340ae1])&&(_0x48d24e=(_0x30314a?_0x4888e6(_0x1d52e1,_0x54c32b,_0x48d24e):_0x4888e6(_0x48d24e))||_0x48d24e);return _0x30314a&&_0x48d24e&&Us(_0x1d52e1,_0x54c32b,_0x48d24e),_0x48d24e;},Pe=(_0x2de9ab,_0x4f00da)=>(_0x3f3b5d,_0x470fcc)=>_0x4f00da(_0x3f3b5d,_0x470fcc,_0x2de9ab);let fe=class{constructor(_0x53bc03,_0x42bd31,_0x2956fc){const _0x50bc38=_0x2094db;this[_0x50bc38(0x3c6)]=_0x53bc03,this[_0x50bc38(0x3af)]=_0x42bd31,this[_0x50bc38(0x48a)]=_0x2956fc;}[_0x2094db(0x288)](_0x43530a){const _0x4d98fb=_0x2094db;this[_0x4d98fb(0x40e)](_0x43530a),this[_0x4d98fb(0x478)](_0x43530a);}[_0x2094db(0x462)](_0x739dba){const _0x3f02ee=_0x2094db,{unitID:_0x2933bc}=_0x739dba,_0x41a5cc=this[_0x3f02ee(0x48a)]['getRenderById'](_0x2933bc)[_0x3f02ee(0x1fb)](N[_0x3f02ee(0x491)]),{redoCache:_0x9d0dcc}=_0x41a5cc[_0x3f02ee(0x230)]();if(_0x9d0dcc[_0x3f02ee(0xfc)]===0x0)return _0x739dba;let _0x44f483=a[_0x3f02ee(0x28b)][_0x3f02ee(0x36c)](_0x739dba['mutations'][0x0]);for(let _0x49182a=0x0;_0x49182a<_0x9d0dcc['length'];_0x49182a++){const _0x3dc4e9={'id':_0x3f02ee(0x162),'params':{..._0x9d0dcc[_0x49182a]}},_0x36a167=this[_0x3f02ee(0x3af)][_0x3f02ee(0xca)](_0x44f483,_0x3dc4e9,!0x1);if(_['isTransformMutationFailure'](_0x36a167))throw _0x36a167[_0x3f02ee(0x158)];_0x44f483=_0x36a167[_0x3f02ee(0xc8)];}return{...a['Tools']['deepClone'](_0x739dba),'mutations':[_0x44f483]};}[_0x2094db(0x40e)](_0x38f70a){const _0x1ea0f6=_0x2094db,{unitID:_0x34f2a8}=_0x38f70a,_0x1f2768=this[_0x1ea0f6(0x48a)]['getRenderById'](_0x34f2a8)[_0x1ea0f6(0x1fb)](N[_0x1ea0f6(0x491)]),{undoCache:_0x167b0d,redoCache:_0x2a2200}=_0x1f2768[_0x1ea0f6(0x230)]();if(_0x167b0d[_0x1ea0f6(0xfc)]===0x0||_0x2a2200['length']===0x0)return;const _0x17b523=[],_0xbfa1f5=[];let _0xfaae37=a[_0x1ea0f6(0x28b)][_0x1ea0f6(0x36c)](_0x38f70a[_0x1ea0f6(0x2cf)][0x0]),_0x1edd0b=a['Tools'][_0x1ea0f6(0x36c)](_0x38f70a[_0x1ea0f6(0x2cf)][0x0]);for(let _0x3fa9d8=_0x167b0d[_0x1ea0f6(0xfc)]-0x1;_0x3fa9d8>=0x0;_0x3fa9d8--){const _0x10b22c={'id':_0x1ea0f6(0x162),'params':{..._0x167b0d[_0x3fa9d8]}},_0x1949bb={'id':'doc.mutation.rich-text-editing','params':{..._0x2a2200[_0x3fa9d8]}},_0x29d233=this[_0x1ea0f6(0x3af)][_0x1ea0f6(0xca)](_0xfaae37,_0x10b22c,!0x1),_0x39614b=this[_0x1ea0f6(0x3af)][_0x1ea0f6(0xca)](_0x1edd0b,_0x1949bb,!0x1);if(_[_0x1ea0f6(0x3c3)](_0x29d233))throw _0x29d233[_0x1ea0f6(0x158)];if(_[_0x1ea0f6(0x3c3)](_0x39614b))throw _0x39614b[_0x1ea0f6(0x158)];_0x17b523[_0x1ea0f6(0x42c)](_0x29d233['m2Prime'][_0x1ea0f6(0x113)]),_0xbfa1f5[_0x1ea0f6(0x42c)](_0x39614b[_0x1ea0f6(0x275)][_0x1ea0f6(0x113)]),_0xfaae37=_0x29d233[_0x1ea0f6(0xc8)],_0x1edd0b=_0x39614b[_0x1ea0f6(0xc8)];}_0x1f2768[_0x1ea0f6(0x43d)]({'undoCache':_0x17b523,'redoCache':_0xbfa1f5});}[_0x2094db(0x478)](_0x39ba63){const _0x733bcd=_0x2094db,{unitID:_0x1d49b5}=_0x39ba63,_0x42ed6a=this[_0x733bcd(0x48a)]['getRenderById'](_0x1d49b5)[_0x733bcd(0x1fb)](N[_0x733bcd(0x491)]),_0x33652a=_0x42ed6a['getActiveRange']();if(_0x33652a==null)return;const _0xf4b96b=[{'id':_0x733bcd(0x162),'params':{'unitId':_0x39ba63[_0x733bcd(0x198)],'actions':null,'textRanges':[_0x33652a]}}],_0x58e061=this[_0x733bcd(0x3af)][_0x733bcd(0x18c)](_0x39ba63,_0xf4b96b);if(!_[_0x733bcd(0x2f1)](_0x58e061))throw _0x58e061[_0x733bcd(0x158)];const _0x101855=_0x58e061[_0x733bcd(0x275)][0x0][_0x733bcd(0x113)][_0x733bcd(0xce)];Array[_0x733bcd(0x23a)](_0x101855)&&_0x101855[_0x733bcd(0xfc)]&&_0x42ed6a['setActiveRange'](_0x101855[0x0]);}};fe=ws([Pe(0x0,a['Inject'](a[_0x2094db(0x393)])),Pe(0x1,_[_0x2094db(0x12b)]),Pe(0x2,D[_0x2094db(0x2d9)])],fe);var Ns=Object['defineProperty'],Ms=Object[_0x2094db(0x468)],As=(_0x244308,_0x46a379,_0x1bdd5c,_0x404aa4)=>{const _0x34f3ca=_0x2094db;for(var _0x1931d8=_0x404aa4>0x1?void 0x0:_0x404aa4?Ms(_0x46a379,_0x1bdd5c):_0x46a379,_0x27c159=_0x244308[_0x34f3ca(0xfc)]-0x1,_0x15cc9f;_0x27c159>=0x0;_0x27c159--)(_0x15cc9f=_0x244308[_0x27c159])&&(_0x1931d8=(_0x404aa4?_0x15cc9f(_0x46a379,_0x1bdd5c,_0x1931d8):_0x15cc9f(_0x1931d8))||_0x1931d8);return _0x404aa4&&_0x1931d8&&Ns(_0x46a379,_0x1bdd5c,_0x1931d8),_0x1931d8;},ce=(_0xa13567,_0x1a9ef9)=>(_0x5c79e3,_0x140ea7)=>_0x1a9ef9(_0x5c79e3,_0x140ea7,_0xa13567);exports[_0x2094db(0x3c0)]=class extends a[_0x2094db(0x46d)]{constructor(_0x2f774c,_0xbd3771,_0x20d47,_0x307d71,_0x553402){const _0x3fc3bd=_0x2094db;super(),u(this,'_cachedData',new Map()),u(this,'_saveTaskMap',new Map()),u(this,_0x3fc3bd(0xbc),!0x1),(this[_0x3fc3bd(0x481)]=_0x2f774c,this['_localStorageService']=_0xbd3771,this[_0x3fc3bd(0x109)]=_0x20d47,this[_0x3fc3bd(0x3f7)]=_0x307d71,this[_0x3fc3bd(0x2af)]=_0x553402,this[_0x3fc3bd(0x2c6)]());}['disableLocalCache'](){const _0x506968=_0x2094db;this[_0x506968(0xbc)]=!0x0;}['enableLocalCache'](){const _0x50f52e=_0x2094db;this[_0x50f52e(0xbc)]=!0x1;}['dispose'](){const _0x34cb5d=_0x2094db;this[_0x34cb5d(0x302)]()[_0x34cb5d(0x10f)](()=>super['dispose']());}async[_0x2094db(0x34d)](_0x2d0d22){const _0x462115=_0x2094db;return this[_0x462115(0xbc)]?null:this[_0x462115(0x426)][_0x462115(0x301)](it(_0x2d0d22));}async[_0x2094db(0x410)](_0x26dea0,_0x1c44e6){const _0x59efb4=_0x2094db;return!!this[_0x59efb4(0x426)][_0x59efb4(0x480)](_0x26dea0,_0x1c44e6);}[_0x2094db(0x13c)](_0x162ae0,_0x283a10,_0x13603c,_0x2b09a5){const _0x3b7cc7=_0x2094db,_0x38b917=this[_0x3b7cc7(0x2af)][_0x3b7cc7(0xff)](_0x162ae0);this[_0x3b7cc7(0x21f)][_0x3b7cc7(0x26e)](_0x162ae0,{'unitID':_0x162ae0,'type':_0x283a10,'awaitingChangeset':_0x13603c,'mutations':_0x2b09a5,'rev':_0x38b917}),this[_0x3b7cc7(0xf8)][_0x3b7cc7(0x24d)](_0x162ae0)||this[_0x3b7cc7(0x352)](_0x162ae0);}['_scheduleSaving'](_0x167283){const _0x30dd4e=_0x2094db,_0x33d1de=this[_0x30dd4e(0x16a)]();_0x33d1de===0x0?this[_0x30dd4e(0x3f9)](_0x167283):this[_0x30dd4e(0xf8)][_0x30dd4e(0x26e)](_0x167283,setTimeout(()=>this[_0x30dd4e(0x3f9)](_0x167283),_0x33d1de));}[_0x2094db(0x16a)](){const _0xcda484=_0x2094db;var _0xd7ca7;return(_0xd7ca7=this[_0xcda484(0x481)]['getConfig'](pt))!=null?_0xd7ca7:ns;}[_0x2094db(0x3f9)](_0x2e2b67){const _0x2ecfdb=_0x2094db,_0x581b11=this[_0x2ecfdb(0xf8)][_0x2ecfdb(0x408)](_0x2e2b67);return _0x581b11!==void 0x0&&window[_0x2ecfdb(0x2d4)](_0x581b11),this['_localStorageService']['setItem'](it(_0x2e2b67),this[_0x2ecfdb(0x21f)][_0x2ecfdb(0x408)](_0x2e2b67))['then'](()=>this[_0x2ecfdb(0xf8)]['delete'](_0x2e2b67));}async['exhaustSavingTask'](){const _0x3f70ec=_0x2094db,_0xd7f3fc=[];this[_0x3f70ec(0xf8)]['forEach']((_0x2efe3f,_0x1973c2)=>{const _0x5e031d=_0x3f70ec;window[_0x5e031d(0x2d4)](_0x2efe3f),_0xd7f3fc[_0x5e031d(0x3b2)](this[_0x5e031d(0x3f9)](_0x1973c2)[_0x5e031d(0x10f)](()=>{this['_saveTaskMap']['delete'](_0x1973c2);}));}),await Promise[_0x3f70ec(0x118)](_0xd7f3fc);}[_0x2094db(0x2c6)](){const _0x2486ef=_0x2094db;this['disposeWithMe'](this[_0x2486ef(0x109)]['registerBeforeClose'](()=>{const _0x47379e=_0x2486ef;if(this[_0x47379e(0xf8)][_0x47379e(0x369)])return this['_localeService']['t'](_0x47379e(0x2df));}));}},exports['LocalCacheService']=As([ce(0x0,a[_0x2094db(0x1ef)]),ce(0x1,a[_0x2094db(0x1b6)]),ce(0x2,A['IBeforeCloseService']),ce(0x3,a[_0x2094db(0xa7)](a[_0x2094db(0x1f8)])),ce(0x4,a[_0x2094db(0xa7)](_[_0x2094db(0x2e8)]))],exports[_0x2094db(0x3c0)]);function it(_0x2228bc){const _0x365f2b=_0x2094db;return _0x365f2b(0x446)+_0x2228bc;}var Ls=Object[_0x2094db(0x19c)],js=Object[_0x2094db(0x468)],$s=(_0x2ef739,_0x307ef8,_0x432cf7,_0x4ffe77)=>{const _0x4275f8=_0x2094db;for(var _0x4545f5=_0x4ffe77>0x1?void 0x0:_0x4ffe77?js(_0x307ef8,_0x432cf7):_0x307ef8,_0x382d7b=_0x2ef739[_0x4275f8(0xfc)]-0x1,_0x2df205;_0x382d7b>=0x0;_0x382d7b--)(_0x2df205=_0x2ef739[_0x382d7b])&&(_0x4545f5=(_0x4ffe77?_0x2df205(_0x307ef8,_0x432cf7,_0x4545f5):_0x2df205(_0x4545f5))||_0x4545f5);return _0x4ffe77&&_0x4545f5&&Ls(_0x307ef8,_0x432cf7,_0x4545f5),_0x4545f5;},we=(_0x54f19b,_0x513eb3)=>(_0x29fdb2,_0x26fa8a)=>_0x513eb3(_0x29fdb2,_0x26fa8a,_0x54f19b);function Hs(_0x334827){const _0xa726b4=_0x2094db,{unitID:_0x57c613,mutations:_0x18e0af}=_0x334827;return{'unitId':_0x57c613,'subUnitId':_0x18e0af[0x0]['params'][_0xa726b4(0x318)]};}let Ie=class{constructor(_0x3582e6,_0x32167a,_0x498d8e){const _0x1a2818=_0x2094db;this[_0x1a2818(0x3c6)]=_0x3582e6,this[_0x1a2818(0x3af)]=_0x32167a,this[_0x1a2818(0x345)]=_0x498d8e;}[_0x2094db(0x1c1)](_0x557820){const _0xdc645b=_0x2094db;var _0x5b8f44,_0x224c06,_0x13155a,_0x5dbb2d;const _0x2a78fd=this['_injector'][_0xdc645b(0x408)](C[_0xdc645b(0x3ea)]),{unitId:_0x3419f9,subUnitId:_0x11c6f4}=Hs(_0x557820),_0x40bb65=_0x2a78fd[_0xdc645b(0x27c)](_0x3419f9)[_0xdc645b(0x2cd)](),_0x1614ed=(_0x224c06=(_0x5b8f44=this[_0xdc645b(0x345)][_0xdc645b(0x15d)](_0x3419f9))==null?void 0x0:_0x5b8f44['getActiveSheet']())==null?void 0x0:_0x224c06[_0xdc645b(0x399)]();if(_0x40bb65[_0xdc645b(0xfc)]===0x0||!_0x3419f9||!_0x11c6f4)return;const _0x4dbdda=[{'id':C[_0xdc645b(0x196)]['id'],'params':{'unitId':_0x3419f9,'subUnitId':_0x1614ed,'selections':a['Tools'][_0xdc645b(0x36c)](_0x40bb65)}}],_0xce1f6=this[_0xdc645b(0x3af)][_0xdc645b(0x18c)](_0x557820,_0x4dbdda);if(!_['isTransformMutationsWithChangesetSuccess'](_0xce1f6))throw _0xce1f6[_0xdc645b(0x158)];const _0x2443e5=(_0x5dbb2d=(_0x13155a=_0xce1f6[_0xdc645b(0x275)][0x0])==null?void 0x0:_0x13155a[_0xdc645b(0x113)])==null?void 0x0:_0x5dbb2d[_0xdc645b(0x182)];if(Array[_0xdc645b(0x23a)](_0x2443e5)&&_0x2443e5[_0xdc645b(0xfc)]){if(_0x2443e5[_0xdc645b(0xfc)]===_0x4dbdda[0x0][_0xdc645b(0x113)][_0xdc645b(0x182)][_0xdc645b(0xfc)]&&_0x2443e5[_0xdc645b(0x448)]((_0x425f60,_0x5166ef)=>a['Rectangle'][_0xdc645b(0x378)](_0x425f60[_0xdc645b(0xe1)],_0x4dbdda[0x0][_0xdc645b(0x113)]['selections'][_0x5166ef][_0xdc645b(0xe1)])))return;this['_injector'][_0xdc645b(0x408)](a[_0xdc645b(0x35f)])[_0xdc645b(0x206)](C[_0xdc645b(0x196)]['id'],{'unitId':_0x3419f9,'subUnitId':_0x1614ed,'selections':_0x2443e5});}}};Ie=$s([we(0x0,a[_0x2094db(0xa7)](a[_0x2094db(0x393)])),we(0x1,_['ITransformService']),we(0x2,a[_0x2094db(0x42f)])],Ie);const Re=a[_0x2094db(0x48d)](_0x2094db(0x292));var Dt=(_0x31df46=>(_0x31df46[_0x31df46[_0x2094db(0xcd)]=0x0]=_0x2094db(0xcd),_0x31df46[_0x31df46[_0x2094db(0x1d7)]=0x1]='OTHER_CLIENTS_EDITING',_0x31df46))(Dt||{});const nt=0x7530,rt=_0x2094db(0x354);class xs extends a[_0x2094db(0x46d)]{constructor(){const _0x1f7a56=_0x2094db;super(),u(this,_0x1f7a56(0x3e6),a[_0x1f7a56(0x28b)][_0x1f7a56(0x3ac)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0x1f7a56(0x2ad),new Map()),u(this,'_heartbeatTimer',null),u(this,'_clearOtherTimers',new Map()),u(this,'_unitStatus',new Map()),this[_0x1f7a56(0x3fb)]();}['dispose'](){const _0x333b79=_0x2094db;super[_0x333b79(0x387)](),this[_0x333b79(0x1b7)][_0x333b79(0x44f)]((_0x942b96,_0x1dfff1)=>this[_0x333b79(0x88)](_0x1dfff1)),this[_0x333b79(0x13a)]&&window[_0x333b79(0x3bc)](this['_heartbeatTimer']);}[_0x2094db(0x467)](_0x208598){const _0x598778=_0x2094db;return this['_ensureSubject'](_0x208598)[_0x598778(0x2be)](v[_0x598778(0xe2)]());}[_0x2094db(0x15c)](_0x110a78){const _0x4cb8c6=_0x2094db;this[_0x4cb8c6(0xac)][_0x4cb8c6(0x369)]===0x0&&this[_0x4cb8c6(0x3cf)](),this[_0x4cb8c6(0xac)][_0x4cb8c6(0x95)](_0x110a78),this['_send']({'type':0x0,'memberID':this[_0x4cb8c6(0x3e6)],'unitIDs':[_0x110a78],'isForwarded':!0x1});}[_0x2094db(0x2f0)](_0x52044a){const _0x59fde2=_0x2094db;this[_0x59fde2(0xac)][_0x59fde2(0x330)](_0x52044a),this[_0x59fde2(0xac)]['size']===0x0&&this[_0x59fde2(0x13a)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x29127a=_0x2094db;this['disposeWithMe'](a[_0x29127a(0x4a7)](v[_0x29127a(0xc4)](window,'storage')['subscribe'](_0x5e634d=>{const _0x1d526c=_0x29127a;if(_0x5e634d[_0x1d526c(0x1a1)]!==rt||!_0x5e634d[_0x1d526c(0x15e)])return;const _0x5b75f2=JSON[_0x1d526c(0x47b)](_0x5e634d[_0x1d526c(0x15e)]);this[_0x1d526c(0x4aa)](_0x5b75f2);}))),window['addEventListener'](_0x29127a(0x2a0),()=>this['_send']({'type':0x1,'memberID':this[_0x29127a(0x3e6)],'unitIDs':Array[_0x29127a(0x2d8)](this[_0x29127a(0xac)])}));}[_0x2094db(0x4aa)](_0x58b01a){const _0x309032=_0x2094db;switch(_0x58b01a[_0x309032(0x430)]){case 0x0:this[_0x309032(0x192)](_0x58b01a);break;case 0x1:this[_0x309032(0x20f)](_0x58b01a);break;case 0x2:this[_0x309032(0x1f3)](_0x58b01a);break;}}[_0x2094db(0x192)](_0x177b8e){const _0x2f4f36=_0x2094db,{unitIDs:_0x3e37dd,memberID:_0x324115,isForwarded:_0x1ace02}=_0x177b8e;_0x3e37dd['forEach'](_0x1d1064=>{const _0x2ba1b5=_0x57dd;if(!_0x1ace02&&this['_unitOnClients'][_0x2ba1b5(0x24d)](_0x1d1064)&&this['_ensureSubject'](_0x1d1064)[_0x2ba1b5(0x31f)](0x1),!this['_unitOnClients'][_0x2ba1b5(0x24d)](_0x1d1064)||!this[_0x2ba1b5(0x2ad)][_0x2ba1b5(0x408)](_0x1d1064)[_0x2ba1b5(0x24d)](_0x324115)){const _0x4fa80b=this['_unitOnClients'][_0x2ba1b5(0x408)](_0x1d1064)||new Set();_0x4fa80b[_0x2ba1b5(0x95)](_0x324115),this[_0x2ba1b5(0x2ad)][_0x2ba1b5(0x26e)](_0x1d1064,_0x4fa80b),this['_scheduleClearOtherTimer'](_0x324115);}}),_0x1ace02||this[_0x2f4f36(0x39f)]({'type':0x0,'memberID':this[_0x2f4f36(0x3e6)],'unitIDs':[...this[_0x2f4f36(0xac)]],'isForwarded':!0x0});}[_0x2094db(0x283)](_0x21d6da){const _0x241cd2=_0x2094db;this[_0x241cd2(0x88)](_0x21d6da);const _0x10cd2c=window[_0x241cd2(0x140)](()=>{const _0x155749=_0x241cd2;this['_unitOnClients'][_0x155749(0x44f)](_0x56984c=>{const _0x3f7fcf=_0x155749;_0x56984c[_0x3f7fcf(0x330)](_0x21d6da);});},nt*0x2);this['_clearOtherTimers'][_0x241cd2(0x26e)](_0x21d6da,_0x10cd2c);}[_0x2094db(0x88)](_0x5cacdc){const _0x5b8048=_0x2094db;if(this[_0x5b8048(0x1b7)]['has'](_0x5cacdc)){const _0x50016a=this['_clearOtherTimers'][_0x5b8048(0x408)](_0x5cacdc);_0x50016a&&window[_0x5b8048(0x2d4)](_0x50016a),this[_0x5b8048(0x1b7)][_0x5b8048(0x26e)](_0x5cacdc,null);}}[_0x2094db(0x20f)](_0x59d257){const _0x4e8fb8=_0x2094db,{memberID:_0xf35cf8,unitIDs:_0x40f174}=_0x59d257;_0x40f174[_0x4e8fb8(0x44f)](_0x5a0974=>{const _0x1f6a2a=_0x4e8fb8;var _0x2c14e3;const _0x514bdf=this[_0x1f6a2a(0x2ad)]['get'](_0x5a0974);_0x514bdf&&(_0x514bdf[_0x1f6a2a(0x330)](_0xf35cf8),(_0x2c14e3=this['_ensureSubject'](_0x5a0974))==null||_0x2c14e3[_0x1f6a2a(0x31f)](_0x514bdf[_0x1f6a2a(0x369)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0xf35cf8);}[_0x2094db(0x1f3)](_0x850851){const _0x53c46d=_0x2094db;this['_scheduleClearOtherTimer'](_0x850851[_0x53c46d(0x1a7)]);}[_0x2094db(0x39f)](_0x272109){const _0xa0e3ab=_0x2094db;localStorage[_0xa0e3ab(0x480)](rt,JSON[_0xa0e3ab(0x36a)](_0x272109));}['_scheduleHeartbeat'](){const _0x4bd388=_0x2094db;this[_0x4bd388(0x13a)]=window[_0x4bd388(0x1cd)](()=>{const _0xa78b77=_0x4bd388;this[_0xa78b77(0x39f)]({'type':0x2,'memberID':this['_id']});},nt);}['_ensureSubject'](_0x41bd75){const _0x417b1a=_0x2094db;return this[_0x417b1a(0x432)][_0x417b1a(0x24d)](_0x41bd75)||this['_unitStatus']['set'](_0x41bd75,new v[(_0x417b1a(0x31e))](0x0)),this[_0x417b1a(0x432)]['get'](_0x41bd75);}}function yt(_0x56307e){let _0x142353='';for(const _0x40a7d0 of _0x56307e){const {startOffset:_0x393339,endOffset:_0x5b5b16,isActive:_0x1eca86}=_0x40a7d0;_0x142353['length']&&(_0x142353+=','),_0x142353+=_0x393339+':'+_0x5b5b16+':'+(_0x1eca86?'1':'0');}return _0x142353;}function ks(_0x5903e8){const _0x4bea2f=_0x2094db,_0x5aa721=_0x5903e8[_0x4bea2f(0x15f)](','),_0x311d87=[];for(const _0x45acef of _0x5aa721){const [_0x6b81af,_0x49019a,_0x1ec371]=_0x45acef['split'](':');_0x311d87['push']({'startOffset':Number(_0x6b81af),'endOffset':Number(_0x49019a),'collapsed':_0x6b81af===_0x49019a,'isActive':_0x1ec371==='1'});}return _0x311d87[_0x4bea2f(0x420)](_0x2f8b01=>_0x2f8b01[_0x4bea2f(0x2b4)])||(_0x311d87[0x0]['isActive']=!0x0),_0x311d87;}class Xe extends a[_0x2094db(0x13e)]{constructor(){const _0x5f01f4=_0x2094db;super(...arguments),u(this,_0x5f01f4(0xa6),new v['BehaviorSubject'](null)),u(this,_0x5f01f4(0x486),this[_0x5f01f4(0xa6)][_0x5f01f4(0x416)]());}[_0x2094db(0xe4)](_0x39cddd){const _0x1400f3=_0x2094db,{unitID:_0x13a934,memberID:_0x41b0f4,textRanges:_0x288bbe}=_0x39cddd,_0x579a2d=yt(_0x288bbe),_0x192722={'unitID':_0x13a934,'memberID':_0x41b0f4,'selection':_0x579a2d};this[_0x1400f3(0xa6)][_0x1400f3(0x31f)](_0x192722);}}var Bs=Object['defineProperty'],Vs=Object[_0x2094db(0x468)],Ws=(_0x415ea9,_0x3d679f,_0x32abec,_0x331bfd)=>{for(var _0x1442f2=_0x331bfd>0x1?void 0x0:_0x331bfd?Vs(_0x3d679f,_0x32abec):_0x3d679f,_0x4b3f96=_0x415ea9['length']-0x1,_0x497d70;_0x4b3f96>=0x0;_0x4b3f96--)(_0x497d70=_0x415ea9[_0x4b3f96])&&(_0x1442f2=(_0x331bfd?_0x497d70(_0x3d679f,_0x32abec,_0x1442f2):_0x497d70(_0x1442f2))||_0x1442f2);return _0x331bfd&&_0x1442f2&&Bs(_0x3d679f,_0x32abec,_0x1442f2),_0x1442f2;},ot=(_0x57666c,_0x5c3d58)=>(_0x11028c,_0x6699f5)=>_0x5c3d58(_0x11028c,_0x6699f5,_0x57666c);let pe=class{constructor(_0x5592eb,_0x14fd4b){const _0x366c29=_0x2094db;this[_0x366c29(0x3c6)]=_0x5592eb,this[_0x366c29(0x3af)]=_0x14fd4b;}['transformSelections'](_0x3c22cf){const _0x153ccc=_0x2094db;var _0x157fa0;const _0x25aa6d=this[_0x153ccc(0x3c6)][_0x153ccc(0x408)](se[_0x153ccc(0x130)]),_0x259e56=(_0x157fa0=_0x25aa6d[_0x153ccc(0x152)]())!=null?_0x157fa0:[];if(_0x259e56[_0x153ccc(0xfc)]===0x0)return;const _0x4de046=[{'id':_0x153ccc(0x162),'params':{'unitId':_0x3c22cf['unitID'],'actions':null,'textRanges':_0x259e56}}],_0xb43c7b=this[_0x153ccc(0x3af)][_0x153ccc(0x18c)](_0x3c22cf,_0x4de046);if(!_[_0x153ccc(0x2f1)](_0xb43c7b))throw _0xb43c7b[_0x153ccc(0x158)];const _0xf022cf=_0xb43c7b[_0x153ccc(0x275)][0x0]['params']['textRanges'];Array['isArray'](_0xf022cf)&&_0xf022cf['length']&&_0x25aa6d[_0x153ccc(0x2a2)](_0xf022cf,!0x1);}};function _0x57dd(_0x271d5f,_0x6d76e){const _0x390c12=_0x390c();return _0x57dd=function(_0x57ddb7,_0x2cf424){_0x57ddb7=_0x57ddb7-0x83;let _0x197393=_0x390c12[_0x57ddb7];return _0x197393;},_0x57dd(_0x271d5f,_0x6d76e);}pe=Ws([ot(0x0,a['Inject'](a[_0x2094db(0x393)])),ot(0x1,_[_0x2094db(0x12b)])],pe);const Fs=new Set([C[_0x2094db(0x27d)]['id']]);function at(_0x380fb7,_0x15726f,_0x69ce8,_0x10d336,_0x510ac6){const _0x315ddb=_0x2094db;var _0x15cc62,_0x58da16,_0x492446,_0x49bc07;const _0x3a3648=[];for(const _0x3932ba of _0x380fb7)if(Fs[_0x315ddb(0x24d)](_0x3932ba['id'])){if(_0x3a3648[_0x315ddb(0xfc)]>0x0)break;_0x3a3648[_0x315ddb(0x3b2)](_0x3932ba);break;}else _0x3a3648['push'](_0x3932ba);const _0x3b4ccc=(_0x58da16=(_0x15cc62=_0x510ac6[_0x315ddb(0x26b)]())==null?void 0x0:_0x15cc62[_0x315ddb(0x495)])!=null?_0x58da16:_0x315ddb(0x14e),_0x159935=(_0x49bc07=(_0x492446=_0x510ac6['getCurrentUser']())==null?void 0x0:_0x492446[_0x315ddb(0x1a7)])!=null?_0x49bc07:_0x315ddb(0x14e);return{'changeset':{'unitID':_0x15726f,'type':_['mapDocumentTypeToUniverType'](_0x69ce8[_0x315ddb(0xa0)](_0x15726f)),'baseRev':_0x10d336[_0x315ddb(0xff)](_0x15726f),'revision':0x0,'userID':_0x3b4ccc,'memberID':_0x159935,'mutations':_0x3a3648},'pendingMutations':_0x380fb7[_0x315ddb(0x1c3)](_0x3a3648['length'])};}function Gs(_0x174202,_0x579472,_0x5384b2,_0x128b2e,_0x249e14){const _0x50f11f=_0x2094db;var _0x1de4c6,_0x57ae75,_0x2185cc,_0x2e4d86;const _0x5a9dc3=[_0x174202['reduce']((_0x1f5fc2,_0x2ab06f)=>{const _0x49d2be=_0x57dd;var _0x15ec09;const {id:_0x2cb3ca}=_0x1f5fc2,{id:_0x477266,type:_0x5ae689}=_0x2ab06f,_0xe4eaf2=(_0x15ec09=_0x1f5fc2[_0x49d2be(0x113)])!=null?_0x15ec09:{'actions':null},_0x4b730b=_0x2ab06f[_0x49d2be(0x113)];if(_0x2cb3ca&&_0x2cb3ca!==_0x477266)throw new Error(_0x49d2be(0x99)+_0x2cb3ca+_0x49d2be(0x3c2)+_0x477266+'.');return{..._0x1f5fc2,'id':_0x477266,'type':_0x5ae689,'params':{'unitId':_0x4b730b[_0x49d2be(0xc9)],'textRanges':_0x4b730b[_0x49d2be(0xce)],'actions':a['JSONX'][_0x49d2be(0x404)](_0xe4eaf2['actions'],_0x4b730b[_0x49d2be(0x107)])}};},{})],_0x1b1cf7=(_0x57ae75=(_0x1de4c6=_0x249e14[_0x50f11f(0x26b)]())==null?void 0x0:_0x1de4c6[_0x50f11f(0x495)])!=null?_0x57ae75:_0x50f11f(0x14e),_0x26e574=(_0x2e4d86=(_0x2185cc=_0x249e14['getCurrentUser']())==null?void 0x0:_0x2185cc[_0x50f11f(0x1a7)])!=null?_0x2e4d86:_0x50f11f(0x14e);return{'changeset':{'unitID':_0x579472,'type':_['mapDocumentTypeToUniverType'](_0x5384b2[_0x50f11f(0xa0)](_0x579472)),'baseRev':_0x128b2e[_0x50f11f(0xff)](_0x579472),'revision':0x0,'userID':_0x1b1cf7,'memberID':_0x26e574,'mutations':_0x5a9dc3},'pendingMutations':[]};}function Ut(_0x33eda3,_0x1054dd){const _0x320806=_0x2094db,_0x2d3b67=new v[(_0x320806(0x3e1))](0x1);return setTimeout(()=>_0x2d3b67[_0x320806(0x31f)](_0x1054dd),_0x33eda3),_0x2d3b67[_0x320806(0x416)]()['pipe'](v[_0x320806(0x189)](0x1));}const Ys={'id':C[_0x2094db(0x3aa)]['id'],'type':a['CommandType'][_0x2094db(0x31a)],'params':{}};var Ks=Object[_0x2094db(0x19c)],qs=Object['getOwnPropertyDescriptor'],z=(_0x40b0a0,_0x5d76d0,_0x28a0fa,_0x1940b9)=>{for(var _0x280337=_0x1940b9>0x1?void 0x0:_0x1940b9?qs(_0x5d76d0,_0x28a0fa):_0x5d76d0,_0x1baaa9=_0x40b0a0['length']-0x1,_0xf381a5;_0x1baaa9>=0x0;_0x1baaa9--)(_0xf381a5=_0x40b0a0[_0x1baaa9])&&(_0x280337=(_0x1940b9?_0xf381a5(_0x5d76d0,_0x28a0fa,_0x280337):_0xf381a5(_0x280337))||_0x280337);return _0x1940b9&&_0x280337&&Ks(_0x5d76d0,_0x28a0fa,_0x280337),_0x280337;},g=(_0x5658c4,_0x55090a)=>(_0x2c0bda,_0x283763)=>_0x55090a(_0x2c0bda,_0x283763,_0x5658c4),U=(_0x2155db=>(_0x2155db[_0x2094db(0x14a)]='not_collab',_0x2155db[_0x2094db(0x2c0)]=_0x2094db(0x9c),_0x2155db[_0x2094db(0x342)]='pending',_0x2155db[_0x2094db(0x38c)]=_0x2094db(0x445),_0x2155db[_0x2094db(0xb9)]=_0x2094db(0x1d4),_0x2155db[_0x2094db(0x39a)]=_0x2094db(0x3a4),_0x2155db[_0x2094db(0x47e)]=_0x2094db(0x41c),_0x2155db['OFFLINE']='offline',_0x2155db))(U||{});const Pt=0xea60;class J{constructor(_0x2faa33,_0x112913,_0x42ac92,_0x2145fc,_0x3334f6,_0x123988,_0x396a87,_0x202081,_0x47ac6f){const _0x253b21=_0x2094db;u(this,'_awaitingChangeset',null),u(this,_0x253b21(0x3df),[]),(this[_0x253b21(0x198)]=_0x2faa33,this[_0x253b21(0x430)]=_0x112913,this[_0x253b21(0x47c)]=_0x3334f6,this[_0x253b21(0xba)]=_0x123988,this[_0x253b21(0x1dc)]=_0x396a87,this[_0x253b21(0x2af)]=_0x202081,this['_localCacheService']=_0x47ac6f,this[_0x253b21(0x429)]=_0x42ac92,this[_0x253b21(0x3df)]=_0x2145fc);}[_0x2094db(0x2f8)](_0x2baca5){const _0x249867=_0x2094db,_0x2b083f=this[_0x249867(0x2af)][_0x249867(0xff)](this[_0x249867(0x198)]);return _0x2baca5[_0x249867(0x238)]>_0x2b083f+0x1?(this[_0x249867(0x47c)][_0x249867(0x1ac)]({'from':_0x2b083f,'to':_0x2baca5[_0x249867(0x238)]-0x1}),!0x0):!0x1;}[_0x2094db(0x28f)](_0x193965){const _0x117b15=_0x2094db;this['_undoRedoService'][_0x117b15(0xa4)](this[_0x117b15(0x198)],_0x193965);}[_0x2094db(0x2f7)](_0x33ad57){const _0x326fbc=_0x2094db;var _0x2cf999,_0x3d6a65;(_0x3d6a65=(_0x2cf999=this['_handler'])[_0x326fbc(0x204)])==null||_0x3d6a65[_0x326fbc(0x156)](_0x2cf999,_0x33ad57);}[_0x2094db(0x35d)](_0x578986){const _0x22d1f8=_0x2094db;var _0x191246,_0x500006;return(_0x500006=(_0x191246=this['_handler'])[_0x22d1f8(0x205)])==null?void 0x0:_0x500006[_0x22d1f8(0x156)](_0x191246,_0x578986);}[_0x2094db(0x400)](_0x26193e){const _0xa72bb8=_0x2094db;var _0x75874b,_0x41ebff,_0x6a734f;return(_0x6a734f=(_0x41ebff=(_0x75874b=this[_0xa72bb8(0x47c)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x41ebff['call'](_0x75874b,_0x26193e))!=null?_0x6a734f:_0x26193e;}['_syncEditingCollabCursor'](_0x55b89b){const _0x5709c1=_0x2094db;var _0x45d1bd,_0x2d29cb;if(this['type']===$[_0x5709c1(0x3d0)]){const {unitID:_0x33e1e3,mutations:_0x38c2c1,memberID:_0x4bd408}=_0x55b89b,_0x2028a5=_0x38c2c1[0x0][_0x5709c1(0x113)][_0x5709c1(0xce)];Array[_0x5709c1(0x23a)](_0x2028a5)&&_0x2028a5[_0x5709c1(0xfc)]>0x0&&((_0x2d29cb=(_0x45d1bd=this[_0x5709c1(0x47c)])[_0x5709c1(0x303)])==null||_0x2d29cb[_0x5709c1(0x156)](_0x45d1bd,{'unitID':_0x33e1e3,'memberID':_0x4bd408,'textRanges':_0x2028a5}));}}[_0x2094db(0x172)](){const _0x5f0814=_0x2094db;this[_0x5f0814(0x2bd)]['updateOfflineData'](this[_0x5f0814(0x198)],this[_0x5f0814(0x430)],this[_0x5f0814(0x429)],this[_0x5f0814(0x3df)]);}[_0x2094db(0x16f)](){const _0xfb7efd=_0x2094db;return this[_0xfb7efd(0x2af)][_0xfb7efd(0xff)](this[_0xfb7efd(0x198)]);}['_incrementRevisionNumber'](){const _0x4e32e8=_0x2094db;this[_0x4e32e8(0x2af)][_0x4e32e8(0x407)](this[_0x4e32e8(0x198)]);}[_0x2094db(0x147)](_0x55c5fb){const _0x1b27d4=_0x2094db;var _0x451a7f;const _0x215f11=this['_transformRemoteChangesetByIMECache'](_0x55c5fb),_0x5e8d02=a[_0x1b27d4(0x184)](_0x215f11[_0x1b27d4(0x2cf)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5e8d02[_0x1b27d4(0x379)])throw _0x5e8d02[_0x1b27d4(0x158)]instanceof Error?_0x5e8d02[_0x1b27d4(0x158)]:new Error((_0x451a7f=_0x5e8d02['error'])!=null?_0x451a7f:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x215f11),this[_0x1b27d4(0x28f)](_0x55c5fb),this[_0x1b27d4(0x2f7)](_0x215f11),this['_syncEditingCollabCursor'](_0x215f11),this[_0x1b27d4(0x424)]();}}let ie=class extends J{constructor(_0x3c1962,_0x214238,_0x3a6f3c,_0x4e46ca,_0x12e40d,_0xcacd75,_0x45db4d,_0x4e9750,_0x1cf4b6,_0x50f59c){const _0x210213=_0x2094db;super(_0x3c1962,_0x214238,null,[],_0x3a6f3c,_0x4e9750,_0x45db4d,_0x4e46ca,_0x12e40d),u(this,_0x210213(0x2e0),_0x210213(0x9c)),(this[_0x210213(0x3c6)]=_0xcacd75,this[_0x210213(0xe0)]=_0x1cf4b6,this[_0x210213(0x3af)]=_0x50f59c);}[_0x2094db(0x1c5)](_0x5747c2){const _0x26f767=_0x2094db,_0x4470fc=this[_0x26f767(0x3c6)]['createInstance'](k,this[_0x26f767(0x198)],this[_0x26f767(0x430)],[_0x5747c2],this[_0x26f767(0x47c)]);return _0x4470fc[_0x26f767(0x419)](),_0x4470fc[_0x26f767(0x172)](),_0x4470fc;}['onRemoteChangeset'](_0x132a96){const _0x3570ea=_0x2094db;if(this[_0x3570ea(0x2f8)](_0x132a96))return this[_0x3570ea(0x3c6)]['createInstance'](x,this[_0x3570ea(0x198)],this[_0x3570ea(0x430)],null,[],null,[_0x132a96],this[_0x3570ea(0x47c)]);try{const _0x2f028c=this[_0x3570ea(0x3af)][_0x3570ea(0x18c)](_0x132a96,[Ys]);if(_[_0x3570ea(0x2f1)](_0x2f028c)){const {c1Prime:_0x1be925}=_0x2f028c;return this[_0x3570ea(0x147)](_0x1be925),this;}throw _0x2f028c[_0x3570ea(0x158)];}catch(_0x2a6fdd){return this[_0x3570ea(0xe0)][_0x3570ea(0x158)](_0x2a6fdd),this[_0x3570ea(0x38f)](!0x1);}}['_onConflict'](_0x4f1af3){const _0x4d28c1=_0x2094db;return this[_0x4d28c1(0x3c6)][_0x4d28c1(0x47d)](F,this['unitID'],this[_0x4d28c1(0x430)],null,[],this['_handler'],_0x4f1af3);}['onRemoteAck'](){const _0x37ab1c=_0x2094db;throw new Error(_0x37ab1c(0x2f9));}[_0x2094db(0x492)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x2094db(0x1b3)](){return this;}[_0x2094db(0x1e8)](){const _0x19589b=_0x2094db;return this[_0x19589b(0x3c6)][_0x19589b(0x47d)](G,this[_0x19589b(0x198)],this[_0x19589b(0x430)],null,[],this[_0x19589b(0x47c)]);}[_0x2094db(0x421)](){return this;}['resend'](){const _0x3ced17=_0x2094db;throw new Error(_0x3ced17(0x8e));}[_0x2094db(0x3be)](){const _0x8ea19d=_0x2094db,_0x3388ce=this[_0x8ea19d(0x2af)][_0x8ea19d(0xff)](this[_0x8ea19d(0x198)]);return this[_0x8ea19d(0x47c)][_0x8ea19d(0x1ac)]({'from':_0x3388ce,'to':0x0}),this[_0x8ea19d(0x3c6)][_0x8ea19d(0x47d)](x,this[_0x8ea19d(0x198)],this[_0x8ea19d(0x430)],null,[],null,[],this['_handler']);}};ie=z([g(0x3,a[_0x2094db(0xa7)](_[_0x2094db(0x2e8)])),g(0x4,a[_0x2094db(0xa7)](exports[_0x2094db(0x3c0)])),g(0x5,a[_0x2094db(0xa7)](a[_0x2094db(0x393)])),g(0x6,a[_0x2094db(0x465)]),g(0x7,a[_0x2094db(0x35f)]),g(0x8,a[_0x2094db(0x254)]),g(0x9,_[_0x2094db(0x12b)])],ie);let k=class extends J{constructor(_0x1715c6,_0x440087,_0x13fbcf,_0x21ac77,_0x3bd7b0,_0x1fb258,_0x537ad6,_0x41a46f,_0x3104f1,_0x209b64,_0x339e5f,_0x30d003,_0x3ee481,_0x5df16e){const _0x543891=_0x2094db;super(_0x1715c6,_0x440087,null,_0x13fbcf,_0x21ac77,_0x209b64,_0x5df16e,_0x1fb258,_0x537ad6),u(this,'status','pending'),u(this,'_scheduleTimestamp',null),u(this,_0x543891(0x3b9),null),(this['_injector']=_0x3bd7b0,this[_0x543891(0x112)]=_0x41a46f,this['_logService']=_0x3104f1,this[_0x543891(0x481)]=_0x339e5f,this[_0x543891(0x3af)]=_0x30d003,this[_0x543891(0x45f)]=_0x3ee481);}['appendMutation'](_0x512fc1){const _0x378a87=_0x2094db;return this[_0x378a87(0x3df)]['push'](_0x512fc1),this[_0x378a87(0x172)](),this;}[_0x2094db(0x3fc)](_0x2b5487){const _0x1ef7be=_0x2094db;if(this[_0x1ef7be(0x2f8)](_0x2b5487))return this[_0x1ef7be(0x315)](),this[_0x1ef7be(0x3c6)][_0x1ef7be(0x47d)](x,this['unitID'],this['type'],null,this[_0x1ef7be(0x3df)],null,[_0x2b5487],this[_0x1ef7be(0x47c)]);try{const _0x5ce663=this[_0x1ef7be(0x3af)]['transformMutationsWithChangeset'](_0x2b5487,this[_0x1ef7be(0x3df)]);if(_[_0x1ef7be(0x2f1)](_0x5ce663)){const {c1Prime:_0x667e7c,m2Prime:_0x35dd86}=_0x5ce663;this[_0x1ef7be(0x147)](_0x667e7c);const _0x5b3128=this[_0x1ef7be(0x3c6)]['createInstance'](k,this['unitID'],this['type'],_0x35dd86,this[_0x1ef7be(0x47c)]);return this[_0x1ef7be(0x315)](),_0x5b3128['_schedule'](this[_0x1ef7be(0x4ad)]?Math[_0x1ef7be(0x237)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x1ef7be(0x2c1)]()),_0x5b3128;}throw _0x5ce663[_0x1ef7be(0x158)];}catch(_0x268415){return this[_0x1ef7be(0xe0)][_0x1ef7be(0x158)](_0x268415),this[_0x1ef7be(0x38f)](!0x1);}}[_0x2094db(0x2a1)](){const _0x5de43c=_0x2094db;throw new Error(_0x5de43c(0xd1));}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2094db(0x1b3)](){return this;}[_0x2094db(0x1e8)](){const _0x2137d3=_0x2094db;return this[_0x2137d3(0x315)](),this['_injector'][_0x2137d3(0x47d)](G,this[_0x2137d3(0x198)],this[_0x2137d3(0x430)],null,this[_0x2137d3(0x3df)],this[_0x2137d3(0x47c)]);}[_0x2094db(0x421)](){return this;}[_0x2094db(0x419)](_0x5cab8d){const _0xa21eb=_0x2094db,_0x436428=_0x5cab8d!=null?_0x5cab8d:this[_0xa21eb(0x2c1)]();this[_0xa21eb(0x4ad)]=new Date()[_0xa21eb(0x101)](),this[_0xa21eb(0x3b9)]=window[_0xa21eb(0x140)](()=>{const _0x1a6be3=_0xa21eb;this['_clearScheduledTask']();let _0x11a1df=null;switch(this[_0x1a6be3(0x430)]){case $[_0x1a6be3(0x264)]:{_0x11a1df=at(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x1a6be3(0x112)]);break;}case $[_0x1a6be3(0x3d0)]:{this[_0x1a6be3(0x3df)][_0x1a6be3(0x448)](_0x4faacc=>_0x4faacc['id']===se[_0x1a6be3(0x2fe)]['id'])?_0x11a1df=Gs(this[_0x1a6be3(0x3df)],this[_0x1a6be3(0x198)],this[_0x1a6be3(0x45f)],this[_0x1a6be3(0x2af)],this['_memberService']):_0x11a1df=at(this['_pendingMutations'],this[_0x1a6be3(0x198)],this[_0x1a6be3(0x45f)],this[_0x1a6be3(0x2af)],this['_memberService']);break;}default:throw new Error(_0x1a6be3(0x35a)+this[_0x1a6be3(0x430)]+'\x20in\x20_schedule.');}const {changeset:_0x395f9e,pendingMutations:_0x5636f0}=_0x11a1df;this[_0x1a6be3(0x47c)]['onSendChangeset'](_0x395f9e);const _0x353e52=_0x5636f0[_0x1a6be3(0xfc)]?this[_0x1a6be3(0x3c6)]['createInstance'](B,this[_0x1a6be3(0x198)],this['type'],_0x395f9e,_0x5636f0,this[_0x1a6be3(0x47c)],void 0x0):this[_0x1a6be3(0x3c6)][_0x1a6be3(0x47d)](W,this['unitID'],this[_0x1a6be3(0x430)],_0x395f9e,this[_0x1a6be3(0x47c)]);_0x353e52['_updateLocalCache'](),this[_0x1a6be3(0x47c)][_0x1a6be3(0x210)](this,_0x353e52);},_0x436428);}[_0x2094db(0x2c1)](){const _0x21e080=_0x2094db;var _0x2970c6;const _0x2a55f7=this[_0x21e080(0x481)]['getConfig'](L);return(_0x2970c6=_0x2a55f7==null?void 0x0:_0x2a55f7[_0x21e080(0x89)])!=null?_0x2970c6:Qt;}[_0x2094db(0x9d)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2094db(0x315)](){const _0x2a99b2=_0x2094db;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x2a99b2(0x3b9)]=null);}[_0x2094db(0x38f)](_0x2bd431){const _0xe271c3=_0x2094db;return this[_0xe271c3(0x315)](),this['_injector'][_0xe271c3(0x47d)](F,this[_0xe271c3(0x198)],this[_0xe271c3(0x430)],null,this[_0xe271c3(0x3df)],this[_0xe271c3(0x47c)],_0x2bd431);}};k=z([g(0x4,a['Inject'](a[_0x2094db(0x393)])),g(0x5,a[_0x2094db(0xa7)](_[_0x2094db(0x2e8)])),g(0x6,a[_0x2094db(0xa7)](exports[_0x2094db(0x3c0)])),g(0x7,a['Inject'](X)),g(0x8,a['ILogService']),g(0x9,a[_0x2094db(0x35f)]),g(0xa,a[_0x2094db(0x1ef)]),g(0xb,_['ITransformService']),g(0xc,a[_0x2094db(0x42f)]),g(0xd,a['IUndoRedoService'])],k);let W=class extends J{constructor(_0x25106c,_0x2c6e02,_0x23d086,_0x44e481,_0x5b0f29,_0x275bfc,_0x5ef2c4,_0x3b5c69,_0x1394d7,_0x3b1869,_0x347730){const _0x49e8b2=_0x2094db;super(_0x25106c,_0x2c6e02,_0x23d086,[],_0x44e481,_0x3b5c69,_0x347730,_0x275bfc,_0x5ef2c4),u(this,'status','awaiting'),u(this,_0x49e8b2(0x219),0x0),u(this,_0x49e8b2(0xf9)),u(this,_0x49e8b2(0xa2)),(this[_0x49e8b2(0x3c6)]=_0x5b0f29,this[_0x49e8b2(0xe0)]=_0x1394d7,this['_transformService']=_0x3b1869);}[_0x2094db(0x1c5)](_0x12451e){const _0x337ccb=_0x2094db;this[_0x337ccb(0x315)]();const _0x53b80d=this[_0x337ccb(0x3c6)]['createInstance'](B,this[_0x337ccb(0x198)],this['type'],this[_0x337ccb(0x429)],[_0x12451e],this[_0x337ccb(0x47c)],this[_0x337ccb(0xf9)]);return _0x53b80d[_0x337ccb(0x172)](),_0x53b80d;}[_0x2094db(0x3fc)](_0x3d1e83){const _0x4bd35e=_0x2094db;if(this[_0x4bd35e(0x2f8)](_0x3d1e83))return this[_0x4bd35e(0x315)](),this[_0x4bd35e(0x3c6)][_0x4bd35e(0x47d)](x,this[_0x4bd35e(0x198)],this[_0x4bd35e(0x430)],this['_awaitingChangeset'],[],null,[_0x3d1e83],this[_0x4bd35e(0x47c)]);try{const _0x4db806=this[_0x4bd35e(0x3af)][_0x4bd35e(0x2e4)]([_0x3d1e83],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x4db806)){const {c1Prime:_0x7a4a60,c2Prime:_0x1e79be}=_0x4db806;this['_executeRemoteChangeset'](_0x7a4a60[0x0]),_0x1e79be[0x0][_0x4bd35e(0x3a9)]=this[_0x4bd35e(0x16f)](),this[_0x4bd35e(0x315)]();const _0xdbd8d2=this[_0x4bd35e(0x3c6)]['createInstance'](W,this['unitID'],this['type'],_0x1e79be[0x0],this[_0x4bd35e(0x47c)]);return _0xdbd8d2[_0x4bd35e(0x172)](),_0xdbd8d2;}return this[_0x4bd35e(0x38f)](!0x1);}catch(_0x552b5a){return this['_logService']['error'](_0x552b5a),this[_0x4bd35e(0x38f)](!0x1);}}['onRemoteAck'](_0x1732c9){const _0x3400fd=_0x2094db;this[_0x3400fd(0x315)]();const _0x52c164=this[_0x3400fd(0x2af)][_0x3400fd(0xff)](this['unitID']);if(_0x1732c9[_0x3400fd(0x238)]<_0x52c164-0x1)return this;if(this[_0x3400fd(0x2f8)](_0x1732c9))return this['_injector']['createInstance'](x,this[_0x3400fd(0x198)],this['type'],null,[],this[_0x3400fd(0x429)],[],this[_0x3400fd(0x47c)]);this[_0x3400fd(0x424)]();const _0x547fd5=this[_0x3400fd(0x3c6)]['createInstance'](ie,this[_0x3400fd(0x198)],this['type'],this['_handler']);return _0x547fd5[_0x3400fd(0x172)](),_0x547fd5;}[_0x2094db(0x492)](_0x3b11f9){const _0x1fa288=_0x2094db;return this[_0x1fa288(0x38f)](!!(_0x3b11f9!=null&&_0x3b11f9[_0x1fa288(0x164)]));}[_0x2094db(0x1b3)](_0x1b2da9){const _0x5726a6=_0x2094db;return this['_resendTimeout']>Pt?this[_0x5726a6(0x1e8)]():(this[_0x5726a6(0xf9)]=Ut(this[_0x5726a6(0x219)],{'timeout':this[_0x5726a6(0x219)],'reqId':_0x1b2da9[_0x5726a6(0x3a3)]}),this[_0x5726a6(0xa2)]=this['_resendTimer'][_0x5726a6(0x253)](({reqId:_0x4f37f0,timeout:_0x2bc1a2})=>{this['_resendWithTimeout'](_0x4f37f0,_0x2bc1a2);}),this);}['toggleOffline'](){const _0x4bfce9=_0x2094db;return this[_0x4bfce9(0x315)](),this[_0x4bfce9(0x3c6)][_0x4bfce9(0x47d)](G,this[_0x4bfce9(0x198)],this['type'],this['_awaitingChangeset'],[],this[_0x4bfce9(0x47c)]);}[_0x2094db(0x421)](){return this;}[_0x2094db(0x9d)](){const _0x493c4b=_0x2094db;this[_0x493c4b(0x47c)][_0x493c4b(0x1e5)](this[_0x493c4b(0x429)]);}[_0x2094db(0x38f)](_0x251e69){const _0x4286c2=_0x2094db;return this['_clearScheduledTask'](),this[_0x4286c2(0x3c6)]['createInstance'](F,this[_0x4286c2(0x198)],this['type'],this[_0x4286c2(0x429)],[],this[_0x4286c2(0x47c)],_0x251e69);}[_0x2094db(0x310)](_0x1c5d40,_0x5dffdc){const _0x744f01=_0x2094db;var _0x1eaac3;_0x1c5d40===((_0x1eaac3=this[_0x744f01(0x429)])==null?void 0x0:_0x1eaac3[_0x744f01(0x3a3)])&&(this[_0x744f01(0x9d)](),this[_0x744f01(0x219)]=_0x5dffdc===0x0?0x3e8:_0x5dffdc*0x2);}['_clearScheduledTask'](){const _0x2074e9=_0x2094db;var _0x343340;(_0x343340=this[_0x2074e9(0xa2)])==null||_0x343340[_0x2074e9(0x3ef)](),this[_0x2074e9(0x219)]=0x0;}};W=z([g(0x4,a[_0x2094db(0xa7)](a[_0x2094db(0x393)])),g(0x5,a[_0x2094db(0xa7)](_['RevisionService'])),g(0x6,a['Inject'](exports[_0x2094db(0x3c0)])),g(0x7,a[_0x2094db(0x35f)]),g(0x8,a[_0x2094db(0x254)]),g(0x9,_[_0x2094db(0x12b)]),g(0xa,a[_0x2094db(0x465)])],W);let B=class extends J{constructor(_0x447aa0,_0x49cfa7,_0x5158a7,_0x30932b,_0x3129d3,_0xe200cb,_0x4a96b7,_0x5ac327,_0x590a1d,_0x50968d,_0x189e8b,_0x5b772d,_0x2aeb25){const _0x4f3fbc=_0x2094db;super(_0x447aa0,_0x49cfa7,_0x5158a7,_0x30932b,_0x3129d3,_0x50968d,_0x2aeb25,_0x5ac327,_0x590a1d),u(this,_0x4f3fbc(0x2e0),_0x4f3fbc(0x1d4)),u(this,_0x4f3fbc(0x219),0x0),u(this,'_resendTimer'),u(this,'_sender'),(this['_injector']=_0x4a96b7,this[_0x4f3fbc(0xe0)]=_0x189e8b,this['_transformService']=_0x5b772d,_0xe200cb&&(this['_resendTimer']=_0xe200cb,this[_0x4f3fbc(0xa2)]=this[_0x4f3fbc(0xf9)][_0x4f3fbc(0x253)](({reqId:_0x25895a,timeout:_0x1ae7c4})=>{this['_resendWithTimeout'](_0x25895a,_0x1ae7c4);})));}['appendMutation'](_0x29bf50){const _0x183161=_0x2094db;return this[_0x183161(0x3df)]['push'](_0x29bf50),this;}[_0x2094db(0x3fc)](_0x5e7eb0){const _0x3c0a38=_0x2094db;if(this[_0x3c0a38(0x2f8)](_0x5e7eb0))return this[_0x3c0a38(0x315)](),this['_injector']['createInstance'](x,this['unitID'],this[_0x3c0a38(0x430)],this[_0x3c0a38(0x429)],this[_0x3c0a38(0x3df)],null,[_0x5e7eb0],this[_0x3c0a38(0x47c)]);try{const _0x1e1047=this[_0x3c0a38(0x3af)][_0x3c0a38(0x2e4)]([_0x5e7eb0],[this[_0x3c0a38(0x429)]],!0x1);if(_[_0x3c0a38(0x23e)](_0x1e1047)){const {c1Prime:_0xec10c1,c2Prime:_0x4c6265}=_0x1e1047,_0x130abf=this['_transformService'][_0x3c0a38(0x18c)](_0xec10c1[0x0],this[_0x3c0a38(0x3df)]);if(_[_0x3c0a38(0x2f1)](_0x130abf)){const {c1Prime:_0x52b486,m2Prime:_0xa05708}=_0x130abf;return this[_0x3c0a38(0x147)](_0x52b486),_0x4c6265[0x0]['baseRev']=this[_0x3c0a38(0x16f)](),this[_0x3c0a38(0x315)](),this[_0x3c0a38(0x3c6)][_0x3c0a38(0x47d)](B,this[_0x3c0a38(0x198)],this[_0x3c0a38(0x430)],_0x4c6265[0x0],_0xa05708,this[_0x3c0a38(0x47c)],void 0x0);}throw _0x130abf[_0x3c0a38(0x158)];}throw _0x1e1047[_0x3c0a38(0x158)];}catch(_0x29e9e7){return this[_0x3c0a38(0xe0)][_0x3c0a38(0x158)](_0x29e9e7),this['_onConflict'](!0x1);}}[_0x2094db(0x2a1)](_0x46977a){const _0x7a3740=_0x2094db;if(this[_0x7a3740(0x315)](),this['_checkMissing'](_0x46977a))return this[_0x7a3740(0x3c6)]['createInstance'](x,this[_0x7a3740(0x198)],this[_0x7a3740(0x430)],null,this[_0x7a3740(0x3df)],this[_0x7a3740(0x429)],[],this[_0x7a3740(0x47c)]);this[_0x7a3740(0x424)]();const _0x493961=this['_injector'][_0x7a3740(0x47d)](k,this[_0x7a3740(0x198)],this['type'],this[_0x7a3740(0x3df)],this[_0x7a3740(0x47c)]);return _0x493961[_0x7a3740(0x419)](),_0x493961[_0x7a3740(0x172)](),_0x493961;}[_0x2094db(0x492)](_0x32eafa){const _0x16b066=_0x2094db;return this['_onConflict'](!!(_0x32eafa!=null&&_0x32eafa[_0x16b066(0x164)]));}['onRemoteRetry'](_0x781d0b){const _0x447bf7=_0x2094db;return this['_resendTimeout']>Pt?this[_0x447bf7(0x1e8)]():(this[_0x447bf7(0xf9)]=Ut(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x781d0b[_0x447bf7(0x3a3)]}),this[_0x447bf7(0xa2)]=this[_0x447bf7(0xf9)]['subscribe'](({reqId:_0x105f34,timeout:_0x2c9fc3})=>{this['_resendWithTimeout'](_0x105f34,_0x2c9fc3);}),this);}[_0x2094db(0x1e8)](){const _0x3c5c05=_0x2094db;return this['_clearScheduledTask'](),this[_0x3c5c05(0x3c6)]['createInstance'](G,this['unitID'],this[_0x3c5c05(0x430)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3c5c05(0x47c)]);}[_0x2094db(0x421)](){return this;}[_0x2094db(0x9d)](){const _0xaf4b66=_0x2094db;this[_0xaf4b66(0x47c)][_0xaf4b66(0x1e5)](this[_0xaf4b66(0x429)]);}[_0x2094db(0x38f)](_0x2f9ae2){const _0x2dd40f=_0x2094db;return this[_0x2dd40f(0x315)](),this['_injector'][_0x2dd40f(0x47d)](F,this[_0x2dd40f(0x198)],this[_0x2dd40f(0x430)],null,this['_pendingMutations'],this['_handler'],_0x2f9ae2);}[_0x2094db(0x310)](_0x13c55b,_0x1e7182){const _0x46e8c7=_0x2094db;var _0x23d83e;_0x13c55b===((_0x23d83e=this[_0x46e8c7(0x429)])==null?void 0x0:_0x23d83e[_0x46e8c7(0x3a3)])&&(this[_0x46e8c7(0x9d)](),this['_resendTimeout']=_0x1e7182===0x0?0x3e8:_0x1e7182*0x2);}[_0x2094db(0x315)](){const _0x9655a9=_0x2094db;var _0x33d275;(_0x33d275=this[_0x9655a9(0xa2)])==null||_0x33d275[_0x9655a9(0x3ef)](),this[_0x9655a9(0x219)]=0x0;}};B=z([g(0x6,a[_0x2094db(0xa7)](a['Injector'])),g(0x7,a[_0x2094db(0xa7)](_[_0x2094db(0x2e8)])),g(0x8,a[_0x2094db(0xa7)](exports[_0x2094db(0x3c0)])),g(0x9,a['ICommandService']),g(0xa,a[_0x2094db(0x254)]),g(0xb,_[_0x2094db(0x12b)]),g(0xc,a[_0x2094db(0x465)])],B);let F=class extends J{constructor(_0x5d3858,_0x472e98,_0x2768c0,_0x573c00,_0x38ed67,_0x3189b8=!0x1,_0x121e62,_0x25e616,_0x193057,_0x938a87,_0x4ec3e9,_0x3c96dc,_0x395f8c){const _0x532313=_0x2094db;super(_0x5d3858,_0x472e98,_0x2768c0,_0x573c00,_0x38ed67,_0x25e616,_0x193057,_0x4ec3e9,_0x938a87),u(this,_0x532313(0x2e0),_0x532313(0x41c)),(this[_0x532313(0x36b)]=_0x3189b8,this[_0x532313(0x438)]=_0x121e62,this[_0x532313(0x3f7)]=_0x3c96dc,this[_0x532313(0x1ff)]=_0x395f8c,this[_0x532313(0x415)](),this['_clearLocalCache'](),this[_0x532313(0x3e9)]());}[_0x2094db(0x1c5)](){return this;}['onRemoteChangeset'](){return this;}[_0x2094db(0x2a1)](){return this;}[_0x2094db(0x492)](){return this;}[_0x2094db(0x1b3)](){return this;}[_0x2094db(0x1e8)](){return this;}[_0x2094db(0x421)](){return this;}[_0x2094db(0x9d)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x4086d8=_0x2094db;this['_localCacheService'][_0x4086d8(0x13c)](this[_0x4086d8(0x198)],this[_0x4086d8(0x430)],null,[]);}[_0x2094db(0x415)](){const _0x487300=_0x2094db;this[_0x487300(0x36b)]?this[_0x487300(0x1ff)][_0x487300(0x296)]({'title':this[_0x487300(0x3f7)]['t'](_0x487300(0x1f2)),'content':this[_0x487300(0x3f7)]['t'](_0x487300(0x4a6)),'type':_0x487300(0x158),'duration':0x0}):this[_0x487300(0x1ff)][_0x487300(0x296)]({'title':this['_localeService']['t'](_0x487300(0x321)),'content':this['_localeService']['t'](_0x487300(0x42b)),'type':_0x487300(0x158),'duration':0x0});}[_0x2094db(0x3e9)](){const _0x3b8c51=_0x2094db;this[_0x3b8c51(0x438)]['updatePermissionPoint'](new C[(_0x3b8c51(0x11c))](this[_0x3b8c51(0x198)])['id'],!0x1);}};F=z([g(0x6,a[_0x2094db(0xa7)](a['IPermissionService'])),g(0x7,a[_0x2094db(0x35f)]),g(0x8,a['IUndoRedoService']),g(0x9,a[_0x2094db(0xa7)](exports[_0x2094db(0x3c0)])),g(0xa,a[_0x2094db(0xa7)](_[_0x2094db(0x2e8)])),g(0xb,a[_0x2094db(0xa7)](a['LocaleService'])),g(0xc,A[_0x2094db(0x1aa)])],F);let G=class extends J{constructor(_0x1331a3,_0x267584,_0x1b1e15,_0x2f0277,_0x526bef,_0x55ea82,_0x450245,_0x2de2fa,_0x258015,_0x5db50c){const _0x105f0f=_0x2094db;super(_0x1331a3,_0x267584,_0x1b1e15,_0x2f0277,_0x526bef,_0x258015,_0x5db50c,_0x450245,_0x2de2fa),u(this,_0x105f0f(0x2e0),'offline'),this[_0x105f0f(0x3c6)]=_0x55ea82;}[_0x2094db(0x1c5)](_0xaa88c6){const _0x4851c8=_0x2094db;return this[_0x4851c8(0x3df)][_0x4851c8(0x3b2)](_0xaa88c6),this[_0x4851c8(0x172)](),this;}[_0x2094db(0x3fc)](_0x4befe0){const _0x1bcee7=_0x2094db;throw new Error(_0x1bcee7(0x38d));}[_0x2094db(0x2a1)](){const _0x1cef8a=_0x2094db;throw new Error(_0x1cef8a(0x175));}[_0x2094db(0x492)](){const _0x4a2642=_0x2094db;throw new Error(_0x4a2642(0x39b));}[_0x2094db(0x1b3)](){return this;}['toggleOffline'](){return this;}[_0x2094db(0x421)](){const _0x5d54cf=_0x2094db,{_injector:_0x370c87,_pendingMutations:_0x8c752,_awaitingChangeset:_0x3a896,unitID:_0xb4627a,_handler:_0x3e3440,type:_0x2a06d5}=this,_0x3a83e9=wt(_0x370c87,_0xb4627a,_0x2a06d5,_0x3a896,_0x8c752,_0x3e3440);return _0x3a83e9 instanceof k?_0x3a83e9['_schedule']():(_0x3a83e9 instanceof B||_0x3a83e9 instanceof W)&&_0x3a83e9[_0x5d54cf(0x9d)](),_0x3a83e9;}[_0x2094db(0x9d)](){const _0x3241de=_0x2094db;throw new Error(_0x3241de(0x28a));}};G=z([g(0x5,a[_0x2094db(0xa7)](a['Injector'])),g(0x6,a['Inject'](_['RevisionService'])),g(0x7,a[_0x2094db(0xa7)](exports[_0x2094db(0x3c0)])),g(0x8,a['ICommandService']),g(0x9,a[_0x2094db(0x465)])],G);let x=class extends J{constructor(_0x21ca73,_0x5ef014,_0x2266de,_0x444f52,_0xb42d9e,_0x504ca3,_0x36d3a3,_0x3470b6,_0x18f36e,_0x2e9c0d,_0x5534f3,_0x41b006,_0x45aef0,_0x5afdb7){const _0x446a5=_0x2094db;super(_0x21ca73,_0x5ef014,_0x2266de,_0x444f52,_0x36d3a3,_0x41b006,_0x45aef0,_0x18f36e,_0x2e9c0d),u(this,_0x446a5(0x2e0),_0x446a5(0x3a4)),(this[_0x446a5(0x1af)]=_0xb42d9e,this['_queuedRemoteChangesets']=_0x504ca3,this[_0x446a5(0x3c6)]=_0x3470b6,this[_0x446a5(0xe0)]=_0x5534f3,this['_transformService']=_0x5afdb7);}[_0x2094db(0xe5)](_0xac5d51){const _0x529096=_0x2094db;try{const _0x3a4618=[..._0xac5d51,...this['_queuedRemoteChangesets']],_0x39709d=[this[_0x529096(0x429)]||this['_acknowledgedAwaitingChangeset']][_0x529096(0x1d8)](_0x18ff04=>!!_0x18ff04);let _0x4031f7,_0x127430;if(_0x39709d[_0x529096(0xfc)]){const _0x180c81=this['_transformService'][_0x529096(0x2e4)](_0x3a4618,_0x39709d,!0x1);if(!_[_0x529096(0x23e)](_0x180c81))throw _0x180c81[_0x529096(0x158)];_0x4031f7=_0x180c81['c1Prime'],_0x127430=_0x180c81[_0x529096(0x8b)];}else _0x4031f7=_0x3a4618,_0x127430=[];let _0x2e127f=this[_0x529096(0x3df)];_0x4031f7[_0x529096(0x44f)](_0x54623c=>{const _0xd88685=_0x529096;let _0x12d141;if(_0x2e127f[_0xd88685(0xfc)]){const _0x436063=this[_0xd88685(0x3af)][_0xd88685(0x18c)](_0x54623c,_0x2e127f);if(!_[_0xd88685(0x2f1)](_0x436063))throw _0x436063[_0xd88685(0x158)];_0x12d141=_0x436063[_0xd88685(0x3c4)],_0x2e127f=_0x436063['m2Prime'];}else _0x12d141=_0x54623c;this[_0xd88685(0x147)](_0x12d141);}),this[_0x529096(0x1af)]&&this[_0x529096(0x424)](),this[_0x529096(0x429)]&&_0x127430[_0x529096(0xfc)]&&(_0x127430[0x0]['baseRev']=this[_0x529096(0x16f)]());let _0x2b872c;if(this[_0x529096(0x429)]&&_0x2e127f[_0x529096(0xfc)]!==0x0)_0x2b872c=this[_0x529096(0x3c6)][_0x529096(0x47d)](B,this[_0x529096(0x198)],this[_0x529096(0x430)],_0x127430[0x0],_0x2e127f,this[_0x529096(0x47c)],void 0x0);else{if(this[_0x529096(0x429)]&&_0x2e127f['length']===0x0)_0x127430[0x0]['baseRev']=this[_0x529096(0x16f)](),_0x2b872c=this[_0x529096(0x3c6)][_0x529096(0x47d)](W,this[_0x529096(0x198)],this['type'],_0x127430[0x0],this[_0x529096(0x47c)]);else{if(_0x2e127f[_0x529096(0xfc)]!==0x0){const _0x3ec0ea=this[_0x529096(0x3c6)][_0x529096(0x47d)](k,this[_0x529096(0x198)],this[_0x529096(0x430)],_0x2e127f,this[_0x529096(0x47c)]);_0x3ec0ea['_schedule'](),_0x2b872c=_0x3ec0ea;}else _0x2b872c=this[_0x529096(0x3c6)][_0x529096(0x47d)](ie,this[_0x529096(0x198)],this[_0x529096(0x430)],this[_0x529096(0x47c)]);}}return _0x2b872c[_0x529096(0x172)](),_0x2b872c;}catch(_0x1c4270){return this[_0x529096(0xe0)]['error'](_0x529096(0x245),_0x529096(0x348),_0x1c4270),this[_0x529096(0x3c6)][_0x529096(0x47d)](F,this[_0x529096(0x198)],this[_0x529096(0x430)],this['_awaitingChangeset'],this[_0x529096(0x3df)],this[_0x529096(0x47c)],!0x1);}}[_0x2094db(0x9d)](){const _0x38b37b=_0x2094db;throw new Error(_0x38b37b(0x173));}['appendMutation'](_0x2efb58){const _0x389925=_0x2094db;return this['_pendingMutations'][_0x389925(0x3b2)](_0x2efb58),this;}['onRemoteChangeset'](_0xda36fb){const _0xb7d01e=_0x2094db;return this['_queuedRemoteChangesets'][_0xb7d01e(0x3b2)](_0xda36fb),this;}['onRemoteAck'](_0x248921){const _0x3a08ef=_0x2094db;if(this[_0x3a08ef(0x429)])return this[_0x3a08ef(0x1af)]=this[_0x3a08ef(0x429)],this[_0x3a08ef(0x429)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2094db(0x492)](_0x2ddc93){const _0x3d49d5=_0x2094db;return this[_0x3d49d5(0x38f)](!!(_0x2ddc93!=null&&_0x2ddc93[_0x3d49d5(0x164)]));}[_0x2094db(0x1b3)](){return this;}[_0x2094db(0x1e8)](){const _0x8da62=_0x2094db;return this[_0x8da62(0x3c6)][_0x8da62(0x47d)](G,this[_0x8da62(0x198)],this[_0x8da62(0x430)],this[_0x8da62(0x429)],this['_pendingMutations'],this[_0x8da62(0x47c)]);}[_0x2094db(0x421)](){return this;}[_0x2094db(0x38f)](_0x4e75ae){const _0x10abed=_0x2094db;return this['_injector'][_0x10abed(0x47d)](F,this[_0x10abed(0x198)],this[_0x10abed(0x430)],this[_0x10abed(0x429)],this[_0x10abed(0x3df)],this['_handler'],_0x4e75ae);}};x=z([g(0x7,a[_0x2094db(0xa7)](a[_0x2094db(0x393)])),g(0x8,a[_0x2094db(0xa7)](_[_0x2094db(0x2e8)])),g(0x9,a['Inject'](exports[_0x2094db(0x3c0)])),g(0xa,a[_0x2094db(0x254)]),g(0xb,a['ICommandService']),g(0xc,a[_0x2094db(0x465)]),g(0xd,_[_0x2094db(0x12b)])],x);function wt(_0x105eb1,_0x38ffe2,_0x48401b,_0xee9482,_0xf61dbb,_0x1f313c){const _0x12d436=_0x2094db;return _0xee9482&&_0xf61dbb[_0x12d436(0xfc)]?_0x105eb1[_0x12d436(0x47d)](B,_0x38ffe2,_0x48401b,_0xee9482,_0xf61dbb,_0x1f313c,void 0x0):_0xee9482?_0x105eb1[_0x12d436(0x47d)](W,_0x38ffe2,_0x48401b,_0xee9482,_0x1f313c):_0xf61dbb[_0x12d436(0xfc)]?_0x105eb1['createInstance'](k,_0x38ffe2,_0x48401b,_0xf61dbb,_0x1f313c):_0x105eb1[_0x12d436(0x47d)](ie,_0x38ffe2,_0x48401b,_0x1f313c);}var Xs=Object['defineProperty'],zs=Object[_0x2094db(0x468)],ze=(_0x438b15,_0xbc1eac,_0x476c97,_0x4e9677)=>{const _0x276f50=_0x2094db;for(var _0x648fbf=_0x4e9677>0x1?void 0x0:_0x4e9677?zs(_0xbc1eac,_0x476c97):_0xbc1eac,_0x5e61a1=_0x438b15[_0x276f50(0xfc)]-0x1,_0x3a9603;_0x5e61a1>=0x0;_0x5e61a1--)(_0x3a9603=_0x438b15[_0x5e61a1])&&(_0x648fbf=(_0x4e9677?_0x3a9603(_0xbc1eac,_0x476c97,_0x648fbf):_0x3a9603(_0x648fbf))||_0x648fbf);return _0x4e9677&&_0x648fbf&&Xs(_0xbc1eac,_0x476c97,_0x648fbf),_0x648fbf;},p=(_0x3cf8e9,_0x4b3947)=>(_0x13412d,_0x15d1cd)=>_0x4b3947(_0x13412d,_0x15d1cd,_0x3cf8e9);exports[_0x2094db(0x463)]=class extends a[_0x2094db(0x13e)]{constructor(_0x581924,_0x448d64,_0x2400f9,_0x3ca342,_0x5758c0,_0x514246,_0x47d153,_0x47bb53,_0x3b620f,_0x44e6d4,_0x2a77a0,_0x39080e,_0x30bc6d){const _0x34caa7=_0x2094db;super(),u(this,_0x34caa7(0x2cc),new v['BehaviorSubject'](null)),u(this,'state$',this[_0x34caa7(0x2cc)]['asObservable']()),u(this,_0x34caa7(0x186)),u(this,_0x34caa7(0x3ec),!0x1),u(this,_0x34caa7(0xb0),''),u(this,_0x34caa7(0x131),0x0),u(this,_0x34caa7(0x435),this['state$']['pipe'](v[_0x34caa7(0x418)](_0x1a8f93=>_0x1a8f93?_0x1a8f93[_0x34caa7(0x2e0)]:U[_0x34caa7(0x458)]),v['shareReplay'](0x1))),u(this,_0x34caa7(0x235),!0x1),u(this,_0x34caa7(0x317),[]),(this[_0x34caa7(0x198)]=_0x581924,this[_0x34caa7(0x1df)]=_0x448d64,this[_0x34caa7(0xf0)]=_0x2400f9,this['_injector']=_0x3ca342,this[_0x34caa7(0x2bd)]=_0x5758c0,this[_0x34caa7(0x32f)]=_0x514246,this[_0x34caa7(0x3f7)]=_0x47d153,this[_0x34caa7(0x2af)]=_0x47bb53,this['_logService']=_0x3b620f,this[_0x34caa7(0xba)]=_0x44e6d4,this[_0x34caa7(0x2d5)]=_0x2a77a0,this['_permissionService']=_0x39080e,this['_singleActiveUnitService']=_0x30bc6d);}get[_0x2094db(0x1d2)](){return this['_state'];}async['init'](){const _0x2592dc=_0x2094db;if(this[_0x2592dc(0x1d2)])throw new Error(_0x2592dc(0x1ee));await this[_0x2592dc(0x3fb)]();}[_0x2094db(0x1bf)](){const _0x170d82=_0x2094db;return this['_collaborationPaused']=!0x0,a[_0x170d82(0x4a7)](()=>{const _0x2e2106=_0x170d82;this[_0x2e2106(0x3ec)]=!0x1,this[_0x2e2106(0xf4)]();});}[_0x2094db(0xdd)](_0x4bae6a){const _0xa0b7e1=_0x2094db;this[_0xa0b7e1(0x186)]=_0x4bae6a,this[_0xa0b7e1(0x2cc)]['next'](_0x4bae6a);}async[_0x2094db(0x3fb)](){const _0x13ca2a=_0x2094db;var _0x2e1111;this[_0x13ca2a(0xdd)](await this['_createInitialState']()),this['_singleActiveUnitService']&&((_0x2e1111=this[_0x13ca2a(0x171)])==null||_0x2e1111[_0x13ca2a(0x15c)](this['unitID']),this['disposeWithMe'](this[_0x13ca2a(0x171)][_0x13ca2a(0x467)](this[_0x13ca2a(0x198)])['subscribe'](_0x33b8fc=>{const _0x451b90=_0x13ca2a;this[_0x451b90(0xe0)][_0x451b90(0x43e)](_0x451b90(0x38a),'editing\x20status\x20changed\x20to',_0x33b8fc),_0x33b8fc===Dt[_0x451b90(0x1d7)]?(this['_messageService'][_0x451b90(0x296)]({'content':this[_0x451b90(0x3f7)]['t']('collaboration.single-unit.warning'),'type':q[_0x451b90(0x346)][_0x451b90(0x41d)]}),this[_0x451b90(0x438)]['updatePermissionPoint'](new C[(_0x451b90(0x11c))](this[_0x451b90(0x198)])['id'],!0x1)):this[_0x451b90(0x438)][_0x451b90(0x239)](new C[(_0x451b90(0x11c))](this[_0x451b90(0x198)])['id'],!0x0);})));let _0x5df2df=!0x1;return this[_0x13ca2a(0x45b)](this[_0x13ca2a(0x1df)][_0x13ca2a(0xb2)][_0x13ca2a(0x253)](_0x38ba49=>{const _0x1ff3fe=_0x13ca2a;_0x38ba49===H[_0x1ff3fe(0x496)]?this['_toggleOnline'](_0x5df2df):_0x38ba49===H['OFFLINE']&&(_0x5df2df=!0x0,this[_0x1ff3fe(0x2dd)]());})),this[_0x13ca2a(0x45b)](this[_0x13ca2a(0x1df)][_0x13ca2a(0x3e3)][_0x13ca2a(0x253)](_0x48fa8c=>{const _0x20525b=_0x13ca2a;try{switch(_0x48fa8c[_0x20525b(0x93)]){case _[_0x20525b(0x1e2)]['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_[_0x20525b(0x44a)](_0x48fa8c['data']));break;}case _[_0x20525b(0x1e2)][_0x20525b(0x193)]:{this[_0x20525b(0x255)](_0x48fa8c[_0x20525b(0x212)]);break;}case _[_0x20525b(0x1e2)][_0x20525b(0xc3)]:{this[_0x20525b(0x240)]();break;}case _[_0x20525b(0x1e2)][_0x20525b(0x3fd)]:{this[_0x20525b(0x217)](_0x48fa8c[_0x20525b(0x212)]);break;}case _['CollaborationEvent'][_0x20525b(0xc5)]:{this[_0x20525b(0xc2)](_0x48fa8c[_0x20525b(0x212)][_0x20525b(0x92)][_0x20525b(0x418)](_0x3563a3=>_[_0x20525b(0x44a)](_0x3563a3)));break;}case _['CollaborationEvent'][_0x20525b(0xa1)]:this[_0x20525b(0x240)]({'isPermissionRej':!0x0});}}catch(_0x239e3f){throw console['error'](_0x20525b(0x377),_0x239e3f),_0x239e3f;}})),this[_0x13ca2a(0x186)];}[_0x2094db(0x405)](){const _0xd67615=_0x2094db;this[_0xd67615(0x235)]=!0x1;}['_lockTransition'](){const _0x105a04=_0x2094db;if(this[_0x105a04(0x235)])throw new Error(_0x105a04(0x3ce));this['_transitionLocked']=!0x0;}[_0x2094db(0x466)](_0x39a41f){const _0x54d7af=_0x2094db;this['_lockTransition'](),this[_0x54d7af(0xdd)](this['_state'][_0x54d7af(0x1c5)](_0x39a41f)),this[_0x54d7af(0x405)]();}[_0x2094db(0x437)](_0x3334fa){const _0x51ad84=_0x2094db;if(!(_0x3334fa[_0x51ad84(0x238)]<=this[_0x51ad84(0x2af)][_0x51ad84(0xff)](this[_0x51ad84(0x198)]))){if(this[_0x51ad84(0x3ec)]){this['_remoteChangesetQueue']['push'](_0x3334fa);return;}this['_applyRemoteChangeset'](_0x3334fa);}}[_0x2094db(0xf4)](){const _0x3ee016=_0x2094db;this['_remoteChangesetQueue']['forEach'](_0x5e67f4=>this[_0x3ee016(0x3cc)](_0x5e67f4)),this['_remoteChangesetQueue']=[];}[_0x2094db(0x3cc)](_0x1910bd){const _0x425f2c=_0x2094db,_0x2f2865=this['_compressMutationService'][_0x425f2c(0x338)]['fetchThroughInterceptors'](this[_0x425f2c(0x32f)][_0x425f2c(0x338)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x1910bd[_0x425f2c(0x2cf)],null)||_0x1910bd['mutations'],_0x439be3={..._0x1910bd,'mutations':_0x2f2865};this[_0x425f2c(0x322)](),this[_0x425f2c(0xdd)](this[_0x425f2c(0x186)][_0x425f2c(0x3fc)](_0x439be3)),this[_0x425f2c(0x405)]();}[_0x2094db(0x255)](_0xe34b08){const _0x38216e=_0x2094db;this['_lockTransition'](),this[_0x38216e(0xdd)](this[_0x38216e(0x186)]['onRemoteAck'](_0xe34b08)),this[_0x38216e(0x405)]();}[_0x2094db(0x240)](_0xfc876a){const _0xc39890=_0x2094db;this[_0xc39890(0x322)](),this[_0xc39890(0xdd)](this['_state']['onRemoteRej'](_0xfc876a)),this['_unlockTransition']();}[_0x2094db(0x217)](_0x1cb656){const _0xeeaeb1=_0x2094db;this[_0xeeaeb1(0x322)](),this[_0xeeaeb1(0xdd)](this['_state'][_0xeeaeb1(0x1b3)](_0x1cb656)),this[_0xeeaeb1(0x405)]();}[_0x2094db(0xc2)](_0x27d5c0){const _0x8a04e6=_0x2094db;if(!(this[_0x8a04e6(0x186)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x3152d2=_0x27d5c0[_0x8a04e6(0x418)](_0x4c2028=>{const _0x415cbc=_0x8a04e6,_0x2a98cd=this[_0x415cbc(0x32f)][_0x415cbc(0x338)][_0x415cbc(0x2ec)](this[_0x415cbc(0x32f)][_0x415cbc(0x338)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x4c2028[_0x415cbc(0x2cf)],null)||_0x4c2028[_0x415cbc(0x2cf)];return{..._0x4c2028,'mutations':_0x2a98cd};});this[_0x8a04e6(0x322)](),this[_0x8a04e6(0xdd)](this[_0x8a04e6(0x186)][_0x8a04e6(0xe5)](_0x3152d2)),this[_0x8a04e6(0x405)]();}[_0x2094db(0x2dd)](){const _0x4d83d9=_0x2094db;this[_0x4d83d9(0x322)](),this[_0x4d83d9(0xdd)](this[_0x4d83d9(0x186)][_0x4d83d9(0x1e8)]()),this['_unlockTransition']();}[_0x2094db(0x447)](_0x288c60=!0x1){const _0x180f11=_0x2094db;this[_0x180f11(0x322)](),this[_0x180f11(0xdd)](this['_state']['toggleOnline']()),this[_0x180f11(0x405)]();const _0x1b0fe1=this['_state'];_0x288c60&&_0x1b0fe1 instanceof ie&&(this[_0x180f11(0x322)](),this['_updateState'](_0x1b0fe1[_0x180f11(0x3be)]()),this[_0x180f11(0x405)]());}async[_0x2094db(0x349)](){return new Promise(_0xfeb42d=>{const _0x5e241e=_0x57dd;this[_0x5e241e(0x1df)]['sessionStatus$']['pipe'](v[_0x5e241e(0x189)](0x1))[_0x5e241e(0x253)](async _0x36da10=>{const _0x34af1d=_0x5e241e;_0xfeb42d(await this[_0x34af1d(0x148)](_0x36da10===H[_0x34af1d(0x496)]));});});}[_0x2094db(0x1d3)](){const _0x3e817a=_0x2094db,_0x33d7c1=this[_0x3e817a(0x198)];return{'onStateChange':(_0x3b47a4,_0x375dc7)=>{const _0x2f772f=_0x3e817a;if(_0x3b47a4!==this[_0x2f772f(0x186)])throw new Error(_0x2f772f(0x263)+_0x3b47a4['status']+_0x2f772f(0x31b)+_0x375dc7[_0x2f772f(0x2e0)]+_0x2f772f(0x1f0)+this[_0x2f772f(0x186)][_0x2f772f(0x2e0)]);this[_0x2f772f(0xdd)](_0x375dc7);},'onSendChangeset':_0x1e3276=>{const _0x292c6b=_0x3e817a;_0x1e3276['sid']||(_0x1e3276[_0x292c6b(0x226)]=this[_0x292c6b(0xb0)],_0x1e3276[_0x292c6b(0x3a3)]=++this[_0x292c6b(0x131)]);const _0x294d7c={'eventID':_['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x1e3276['unitID'],'unitType':this[_0x292c6b(0xf0)],'changeset':_0x1e3276,'memberID':this[_0x292c6b(0x1df)][_0x292c6b(0x2ba)]()}};this[_0x292c6b(0x1df)][_0x292c6b(0x290)](_0x294d7c,this[_0x292c6b(0x198)]);},'onMissingChangesets':({from:_0x356f36,to:_0x5b011a})=>{const _0x55b5dc=_0x3e817a;this[_0x55b5dc(0xe0)]['debug'](_0x55b5dc(0x38a),_0x55b5dc(0x220)+_0x356f36+'\x20to\x20'+_0x5b011a);const _0x27ea54={'eventID':_[_0x55b5dc(0x1e2)][_0x55b5dc(0xae)],'data':{'unitID':_0x33d7c1,'unitType':this['_type'],'from':_0x356f36,'to':_0x5b011a}};this[_0x55b5dc(0x1df)][_0x55b5dc(0x290)](_0x27ea54,this[_0x55b5dc(0x198)]);}};}async['_createInitialStateImpl'](_0x4d1a73){const _0x5d5c76=_0x2094db;var _0x2402b3,_0x4e60cc;const _0x428fd4=await this[_0x5d5c76(0x2bd)][_0x5d5c76(0x34d)](this[_0x5d5c76(0x198)]),_0x5dc4ae=(_0x2402b3=_0x428fd4==null?void 0x0:_0x428fd4[_0x5d5c76(0x2cf)])!=null?_0x2402b3:[],_0x6162ac=(_0x4e60cc=_0x428fd4==null?void 0x0:_0x428fd4[_0x5d5c76(0x33d)])!=null?_0x4e60cc:null,_0x272645=!!(_0x6162ac!=null&&_0x6162ac['sid'])&&!!(_0x6162ac!=null&&_0x6162ac[_0x5d5c76(0x3a3)]);this[_0x5d5c76(0xb0)]=_0x272645?_0x6162ac[_0x5d5c76(0x226)]:ys(),this[_0x5d5c76(0x131)]=_0x272645?_0x6162ac[_0x5d5c76(0x3a3)]:0x0;const _0x42afae=this[_0x5d5c76(0x198)];try{this['_replayCachedMutations'](_0x6162ac,_0x5dc4ae);}catch(_0x32cf9b){this[_0x5d5c76(0xe0)][_0x5d5c76(0x158)](_0x32cf9b);}const _0xe784a5=this[_0x5d5c76(0x1d3)]();if(_0x4d1a73){const _0x302c1e=wt(this[_0x5d5c76(0x3c6)],_0x42afae,this[_0x5d5c76(0xf0)],_0x6162ac,_0x5dc4ae,_0xe784a5);return _0x302c1e instanceof k?_0x302c1e[_0x5d5c76(0x419)]():(_0x302c1e instanceof B||_0x302c1e instanceof W)&&_0x302c1e[_0x5d5c76(0x9d)](),_0x302c1e;}return this[_0x5d5c76(0x3c6)]['createInstance'](G,_0x42afae,this[_0x5d5c76(0xf0)],_0x6162ac,_0x5dc4ae,_0xe784a5);}[_0x2094db(0x276)](_0x17cb4b,_0x207035){const _0x3fd25f=_0x2094db;var _0x2d104e,_0x44a841;const _0x510ba9=this[_0x3fd25f(0x32f)][_0x3fd25f(0x338)]['fetchThroughInterceptors'](this[_0x3fd25f(0x32f)]['interceptor'][_0x3fd25f(0x33c)]()[_0x3fd25f(0x2ff)]);(_0x2d104e=_0x510ba9((_0x17cb4b==null?void 0x0:_0x17cb4b['mutations'])||[],null))==null||_0x2d104e['forEach'](_0x4d0d65=>this[_0x3fd25f(0xba)][_0x3fd25f(0x206)](_0x4d0d65['id'],_0x4d0d65[_0x3fd25f(0x113)])),(_0x44a841=_0x510ba9(_0x207035||[],null))==null||_0x44a841[_0x3fd25f(0x44f)](_0x219d6d=>this['_commandService']['executeCommand'](_0x219d6d['id'],_0x219d6d['params']));}},exports[_0x2094db(0x463)]=ze([p(0x3,a['Inject'](a['Injector'])),p(0x4,a['Inject'](exports[_0x2094db(0x3c0)])),p(0x5,a['Inject'](_['CompressMutationService'])),p(0x6,a['Inject'](a[_0x2094db(0x1f8)])),p(0x7,a[_0x2094db(0xa7)](_[_0x2094db(0x2e8)])),p(0x8,a[_0x2094db(0x254)]),p(0x9,a[_0x2094db(0x35f)]),p(0xa,A[_0x2094db(0x461)]),p(0xb,a[_0x2094db(0x29d)]),p(0xc,a[_0x2094db(0x25c)](Re))],exports[_0x2094db(0x463)]),exports[_0x2094db(0x3eb)]=class extends exports[_0x2094db(0x463)]{constructor(_0x1d80b0,_0x518526,_0x4124ac,_0x30e736,_0x3ac5c8,_0x421686,_0x6a721a,_0x5b58ad,_0x26a848,_0x25e154,_0x5533ee,_0x2136a9,_0x4c5aa5,_0x1154ca,_0x3b2835,_0x2060fd,_0x141e52){const _0x2b0d8d=_0x2094db;super(_0x1d80b0,_0x4124ac,_0x518526,_0x30e736,_0x3ac5c8,_0x421686,_0x6a721a,_0x5b58ad,_0x4c5aa5,_0x1154ca,_0x3b2835,_0x2060fd,_0x141e52),this[_0x2b0d8d(0x198)]=_0x1d80b0,this['type']=_0x518526,this[_0x2b0d8d(0x94)]=_0x26a848,this[_0x2b0d8d(0x15a)]=_0x25e154,this[_0x2b0d8d(0x229)]=_0x5533ee,this[_0x2b0d8d(0x2eb)]=_0x2136a9;}[_0x2094db(0x1d3)](){const _0x3fda6a=_0x2094db,_0x54f8e5=super[_0x3fda6a(0x1d3)]();return _0x54f8e5['onTransformIME']=_0x5d2f05=>this[_0x3fda6a(0x15a)][_0x3fda6a(0x288)](_0x5d2f05),_0x54f8e5[_0x3fda6a(0x204)]=_0x7f2d7d=>this[_0x3fda6a(0x229)][_0x3fda6a(0x1c1)](_0x7f2d7d),_0x54f8e5[_0x3fda6a(0x303)]=_0x474e9b=>this[_0x3fda6a(0x2eb)][_0x3fda6a(0xe4)](_0x474e9b),_0x54f8e5[_0x3fda6a(0x380)]=_0x158b0e=>this[_0x3fda6a(0x15a)][_0x3fda6a(0x462)](_0x158b0e),_0x54f8e5;}async[_0x2094db(0x3fb)](){const _0x3bca48=_0x2094db,_0x1fcf2f=await super[_0x3bca48(0x3fb)]();return this['_docStateChangeManagerService'][_0x3bca48(0x43b)]['pipe'](v[_0x3bca48(0x1f1)](this[_0x3bca48(0x271)]))[_0x3bca48(0x253)](_0x102311=>{const _0x3926f3=_0x3bca48;if(_0x102311==null)return;const {unitId:_0x3c3cd5,redoState:_0x4e6899,commandId:_0x23a083}=_0x102311;if(_0x3c3cd5!==this['unitID'])return;const _0x49f341={'id':_0x23a083,'type':a[_0x3926f3(0x17a)][_0x3926f3(0x31a)],'params':{'unitId':_0x3c3cd5,'actions':_0x4e6899[_0x3926f3(0x107)],'textRanges':null}};this[_0x3926f3(0x466)](_0x49f341);}),_0x1fcf2f;}},exports[_0x2094db(0x3eb)]=ze([p(0x3,a['Inject'](a[_0x2094db(0x393)])),p(0x4,a[_0x2094db(0xa7)](exports[_0x2094db(0x3c0)])),p(0x5,a[_0x2094db(0xa7)](_[_0x2094db(0x488)])),p(0x6,a['Inject'](a[_0x2094db(0x1f8)])),p(0x7,a[_0x2094db(0xa7)](_[_0x2094db(0x2e8)])),p(0x8,a[_0x2094db(0xa7)](N[_0x2094db(0x10e)])),p(0x9,a[_0x2094db(0xa7)](fe)),p(0xa,a[_0x2094db(0xa7)](pe)),p(0xb,a[_0x2094db(0xa7)](Xe)),p(0xc,a[_0x2094db(0x254)]),p(0xd,a[_0x2094db(0x35f)]),p(0xe,A['IMessageService']),p(0xf,a[_0x2094db(0x29d)]),p(0x10,a[_0x2094db(0x25c)](Re))],exports['DocCollaborationEntity']),exports['SheetCollaborationEntity']=class extends exports[_0x2094db(0x463)]{constructor(_0x30765f,_0x475c24,_0xadf867,_0x361ff9,_0x6ad19f,_0xc0591d,_0x4e53b1,_0xdae750,_0x31dced,_0x2e81ca,_0x29aae3,_0xe42828,_0x5a5171,_0x44a536){const _0x308bc2=_0x2094db;super(_0x30765f,_0xadf867,_0x475c24,_0x361ff9,_0x6ad19f,_0xc0591d,_0x4e53b1,_0xdae750,_0x2e81ca,_0x29aae3,_0xe42828,_0x5a5171,_0x44a536),this[_0x308bc2(0x198)]=_0x30765f,this[_0x308bc2(0x430)]=_0x475c24,this['_sheetTransformSelectionsService']=_0x31dced;}['_createHandler'](){const _0x41feac=_0x2094db,_0x33a97b=super[_0x41feac(0x1d3)]();return _0x33a97b[_0x41feac(0x204)]=_0x2e2b99=>this[_0x41feac(0x1a3)][_0x41feac(0x1c1)](_0x2e2b99),_0x33a97b;}async['_init'](){const _0x385eb2=_0x2094db,_0x4d2fb1=await super['_init']();return this[_0x385eb2(0x45b)](this[_0x385eb2(0xba)][_0x385eb2(0x258)]((_0x5d1e1c,_0x4754ad)=>{const _0x3390fb=_0x385eb2;if(_0x5d1e1c[_0x3390fb(0x430)]!==a['CommandType'][_0x3390fb(0x31a)]||_0x4754ad!=null&&_0x4754ad[_0x3390fb(0x36e)]||_0x4754ad!=null&&_0x4754ad[_0x3390fb(0x29c)])return;const _0x3c9dd8=_0x5d1e1c[_0x3390fb(0x113)];if((_0x3c9dd8==null?void 0x0:_0x3c9dd8[_0x3390fb(0xc9)])!==this[_0x3390fb(0x198)])return;const _0x2d30c9=_0x5d1e1c,_0x1e4e9d=this[_0x3390fb(0x32f)]['interceptor'][_0x3390fb(0x2ec)](this[_0x3390fb(0x32f)][_0x3390fb(0x338)][_0x3390fb(0x33c)]()[_0x3390fb(0x35c)])([_0x2d30c9],null)||[_0x2d30c9];this[_0x3390fb(0x466)](_0x1e4e9d[0x0]);})),_0x4d2fb1;}},exports[_0x2094db(0x3ba)]=ze([p(0x3,a['Inject'](a[_0x2094db(0x393)])),p(0x4,a[_0x2094db(0xa7)](exports[_0x2094db(0x3c0)])),p(0x5,a[_0x2094db(0xa7)](_[_0x2094db(0x488)])),p(0x6,a['Inject'](a[_0x2094db(0x1f8)])),p(0x7,a[_0x2094db(0xa7)](_['RevisionService'])),p(0x8,a[_0x2094db(0xa7)](Ie)),p(0x9,a['ILogService']),p(0xa,a['ICommandService']),p(0xb,A[_0x2094db(0x461)]),p(0xc,a[_0x2094db(0x29d)]),p(0xd,a[_0x2094db(0x25c)](Re))],exports['SheetCollaborationEntity']);var Js=Object[_0x2094db(0x19c)],Zs=Object['getOwnPropertyDescriptor'],Qs=(_0x6bb5a8,_0x270a8a,_0xa00a36,_0x250301)=>{const _0x51b58f=_0x2094db;for(var _0x321264=_0x250301>0x1?void 0x0:_0x250301?Zs(_0x270a8a,_0xa00a36):_0x270a8a,_0x2a3037=_0x6bb5a8[_0x51b58f(0xfc)]-0x1,_0x2125ab;_0x2a3037>=0x0;_0x2a3037--)(_0x2125ab=_0x6bb5a8[_0x2a3037])&&(_0x321264=(_0x250301?_0x2125ab(_0x270a8a,_0xa00a36,_0x321264):_0x2125ab(_0x321264))||_0x321264);return _0x250301&&_0x321264&&Js(_0x270a8a,_0xa00a36,_0x321264),_0x321264;},Ne=(_0x3aa171,_0x158d1f)=>(_0x4ce3ca,_0xe2c201)=>_0x158d1f(_0x4ce3ca,_0xe2c201,_0x3aa171);exports['CollaborationController']=class extends a[_0x2094db(0x13e)]{constructor(_0x2c26ed,_0x908534,_0x5365ac){const _0x2682e0=_0x2094db;super(),u(this,_0x2682e0(0x1ce),new Map()),u(this,_0x2682e0(0x280),new v['Subject']()),(this[_0x2682e0(0x3c6)]=_0x2c26ed,this[_0x2682e0(0x145)]=_0x908534,this[_0x2682e0(0x45f)]=_0x5365ac,this[_0x2682e0(0x3fb)]());}[_0x2094db(0x387)](){const _0xf8fa26=_0x2094db;super[_0xf8fa26(0x387)](),this[_0xf8fa26(0x1ce)][_0xf8fa26(0x44f)](_0x1717ec=>_0x1717ec[_0xf8fa26(0x387)]()),this[_0xf8fa26(0x1ce)][_0xf8fa26(0x29e)]();}['getCollabEntity'](_0x2e55dc){const _0x48294e=_0x2094db;var _0x24aff7;return(_0x24aff7=this['_entities'][_0x48294e(0x408)](_0x2e55dc))!=null?_0x24aff7:null;}['getCollabEntity$'](_0x30721a){const _0x50f29d=_0x2094db,_0x3b6148=this[_0x50f29d(0x9e)](_0x30721a);return _0x3b6148?v['of'](_0x3b6148):this[_0x50f29d(0x280)][_0x50f29d(0x2be)](E[_0x50f29d(0x1d8)](_0x180618=>_0x180618[_0x50f29d(0x198)]===_0x30721a));}[_0x2094db(0x3fb)](){const _0x528d19=_0x2094db;this[_0x528d19(0x45f)][_0x528d19(0x136)](a[_0x528d19(0x14b)]['UNIVER_SHEET'])['pipe'](v[_0x528d19(0x1f1)](this[_0x528d19(0x271)]),E[_0x528d19(0x3d4)](0x10))['subscribe'](async _0x130106=>{const _0x397cc9=_0x528d19,_0x25da51=_0x130106['getUnitId'](),_0x14c9ad=await this[_0x397cc9(0x1b9)](_0x25da51,$[_0x397cc9(0x264)]);this[_0x397cc9(0x1ce)][_0x397cc9(0x26e)](_0x25da51,_0x14c9ad);}),this['_univerInstanceService'][_0x528d19(0x136)](a['UniverInstanceType'][_0x528d19(0x3d0)])[_0x528d19(0x2be)](v[_0x528d19(0x1f1)](this[_0x528d19(0x271)]),E[_0x528d19(0x3d4)](0x10))[_0x528d19(0x2be)](E[_0x528d19(0x1d8)](_0xaf9eb5=>!_0xaf9eb5[_0x528d19(0x14d)]()['startsWith']('__')))[_0x528d19(0x253)](async _0x3cf5e8=>{const _0x3ab5e0=_0x528d19,_0x3be16b=_0x3cf5e8[_0x3ab5e0(0x14d)](),_0x578565=await this[_0x3ab5e0(0x1b9)](_0x3be16b,$[_0x3ab5e0(0x3d0)]);this[_0x3ab5e0(0x1ce)][_0x3ab5e0(0x26e)](_0x3be16b,_0x578565);}),v[_0x528d19(0x414)](this[_0x528d19(0x45f)]['getTypeOfUnitDisposed$'](a[_0x528d19(0x14b)]['UNIVER_SHEET']),this[_0x528d19(0x45f)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x528d19(0x3d0)]))[_0x528d19(0x2be)](v[_0x528d19(0x1f1)](this['dispose$']))[_0x528d19(0x253)](_0x56df8e=>{const _0x2741cc=_0x528d19,_0x395114=_0x56df8e[_0x2741cc(0x14d)](),_0x2f83ec=this['_entities'][_0x2741cc(0x408)](_0x395114);_0x2f83ec&&(_0x2f83ec[_0x2741cc(0x387)](),this[_0x2741cc(0x1ce)][_0x2741cc(0x330)](_0x395114));});}async[_0x2094db(0x1b9)](_0x4d87d9,_0xb8c221){const _0x50b6ef=_0x2094db,_0x3f8f24=await this[_0x50b6ef(0x145)][_0x50b6ef(0x3ad)](_0x4d87d9),_0x1462d0=this[_0x50b6ef(0x3c6)]['createInstance'](this['_getCtorByUniverType'](_0xb8c221),_0x4d87d9,_0xb8c221,_0x3f8f24);return await _0x1462d0[_0x50b6ef(0x10c)](),this[_0x50b6ef(0x280)][_0x50b6ef(0x31f)](_0x1462d0),_0x1462d0;}['_getCtorByUniverType'](_0x3041be){const _0x4f4c98=_0x2094db;switch(_0x3041be){case $['UNIVER_DOC']:return exports[_0x4f4c98(0x3eb)];case $['UNIVER_SHEET']:return exports['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x3041be);}}},exports[_0x2094db(0x24f)]=Qs([Ne(0x0,a[_0x2094db(0xa7)](a['Injector'])),Ne(0x1,a[_0x2094db(0xa7)](exports['CollaborationSessionService'])),Ne(0x2,a[_0x2094db(0x42f)])],exports[_0x2094db(0x24f)]);const ct=[_0x2094db(0x24e),'jiqing500','verdancy600',_0x2094db(0x180),_0x2094db(0x1bb),'gold400'];class Je extends a[_0x2094db(0x46d)]{constructor(){const _0x5aa41a=_0x2094db;super(...arguments),u(this,_0x5aa41a(0x30d),new Map()),u(this,_0x5aa41a(0x402),0x0);}['assignAColorForMemberID'](_0x157d26){const _0x3283c6=_0x2094db;if(this[_0x3283c6(0x30d)][_0x3283c6(0x24d)](_0x157d26))return this[_0x3283c6(0x30d)][_0x3283c6(0x408)](_0x157d26);const _0x2f27bf=ct[this['_colorIndex']];return this[_0x3283c6(0x402)]=(this[_0x3283c6(0x402)]+0x1)%ct[_0x3283c6(0xfc)],this[_0x3283c6(0x30d)][_0x3283c6(0x26e)](_0x157d26,_0x2f27bf),_0x2f27bf;}}var ei=Object[_0x2094db(0x19c)],ti=Object[_0x2094db(0x468)],si=(_0x365cb9,_0x14f1c4,_0xee1f6d,_0x55e6d9)=>{for(var _0x39b2f7=_0x55e6d9>0x1?void 0x0:_0x55e6d9?ti(_0x14f1c4,_0xee1f6d):_0x14f1c4,_0x372db7=_0x365cb9['length']-0x1,_0x305400;_0x372db7>=0x0;_0x372db7--)(_0x305400=_0x365cb9[_0x372db7])&&(_0x39b2f7=(_0x55e6d9?_0x305400(_0x14f1c4,_0xee1f6d,_0x39b2f7):_0x305400(_0x39b2f7))||_0x39b2f7);return _0x55e6d9&&_0x39b2f7&&ei(_0x14f1c4,_0xee1f6d,_0x39b2f7),_0x39b2f7;},K=(_0x47fc3f,_0x48b3b3)=>(_0x5d845f,_0x1170e4)=>_0x48b3b3(_0x5d845f,_0x1170e4,_0x47fc3f);const ii=0x12c,ni=0x64;let ke=class extends a['RxDisposable']{constructor(_0x197212,_0x4cf45a,_0x39fa7d,_0x387529,_0x3ba754,_0x1be7e9,_0xa7736c,_0x2cd5fa,_0x47612a){const _0x472414=_0x2094db;super(),u(this,'_online',!0x1),u(this,'_init',!0x1),u(this,'_cursorInfo$',new v[(_0x472414(0x31e))](new Map())),u(this,'cursorInfo$',this[_0x472414(0x443)][_0x472414(0x416)]()),u(this,_0x472414(0x3e7),new v[(_0x472414(0x31e))]([])),u(this,_0x472414(0x46f),this['_roomMembers$'][_0x472414(0x2be)](v[_0x472414(0x359)](ii))),u(this,_0x472414(0x425),a[_0x472414(0x34f)](_0xf1dcc8=>{const _0x2dadd8=_0x472414,_0x4ffc84={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x2dadd8(0x198)],'memberID':this['_session'][_0x2dadd8(0x2ba)](),'selection':yt(_0xf1dcc8)}};this[_0x2dadd8(0x18e)]['send'](_0x4ffc84,this['unitID']);},ni)),(this['unitID']=_0x197212,this['_session']=_0x4cf45a,this[_0x472414(0x3c6)]=_0x39fa7d,this[_0x472414(0x251)]=_0x387529,this['_memberService']=_0x3ba754,this[_0x472414(0x314)]=_0x1be7e9,this[_0x472414(0x3af)]=_0xa7736c,this[_0x472414(0x45f)]=_0x2cd5fa,this[_0x472414(0xba)]=_0x47612a);}get[_0x2094db(0x3bf)](){const _0xa6c47=_0x2094db;return this[_0xa6c47(0x443)][_0xa6c47(0x1ed)]();}get[_0x2094db(0x221)](){const _0x2f8191=_0x2094db;return this[_0x2f8191(0x3e7)]['getValue']();}[_0x2094db(0x387)](){const _0x3fb3b0=_0x2094db;super[_0x3fb3b0(0x387)](),this[_0x3fb3b0(0x443)][_0x3fb3b0(0x31f)](new Map()),this[_0x3fb3b0(0x443)][_0x3fb3b0(0x456)](),this[_0x3fb3b0(0x3e7)][_0x3fb3b0(0x31f)]([]),this[_0x3fb3b0(0x3e7)][_0x3fb3b0(0x456)]();}['init'](){const _0x5defc1=_0x2094db;this['_init']||(this[_0x5defc1(0x3fb)]=!0x0,this[_0x5defc1(0x18e)][_0x5defc1(0xb2)]['pipe'](v[_0x5defc1(0x1f1)](this[_0x5defc1(0x271)]))[_0x5defc1(0x253)](_0x2aa92d=>{const _0x5563bf=_0x5defc1;_0x2aa92d===H[_0x5563bf(0x496)]?this[_0x5563bf(0x447)]():this[_0x5563bf(0x2dd)]();}),this['_session'][_0x5defc1(0x3e3)][_0x5defc1(0x2be)](v['takeUntil'](this['dispose$']))[_0x5defc1(0x253)](_0x383cae=>{const _0x59aa25=_0x5defc1,_0x372146=_0x383cae[_0x59aa25(0x93)];_0x372146===_[_0x59aa25(0x1e2)][_0x59aa25(0x32c)]&&this[_0x59aa25(0x2f6)](_0x383cae),_0x372146===_[_0x59aa25(0x1e2)]['USERS_LEAVE']&&this[_0x59aa25(0x489)](_0x383cae);}),this[_0x5defc1(0x45b)](this[_0x5defc1(0xba)][_0x5defc1(0x258)](_0x1852f3=>{const _0x359d45=_0x5defc1,_0x3d2c12=_0x1852f3['params'];_0x3d2c12!=null&&this[_0x359d45(0x12e)]&&_0x1852f3['id']===se[_0x359d45(0x2cb)]['id']&&_0x3d2c12[_0x359d45(0xc9)]===this[_0x359d45(0x198)]&&_0x3d2c12[_0x359d45(0x1d0)]===!0x1&&this['_updateLocalCursor'](_0x3d2c12[_0x359d45(0x2c8)]);})),this[_0x5defc1(0x314)][_0x5defc1(0x486)]['pipe'](v[_0x5defc1(0x1f1)](this[_0x5defc1(0x271)]))[_0x5defc1(0x253)](_0x4bbb01=>{const _0x1c5b4c=_0x5defc1;if((_0x4bbb01==null?void 0x0:_0x4bbb01[_0x1c5b4c(0x198)])!==this[_0x1c5b4c(0x198)])return;const _0x5f385f={'eventID':_[_0x1c5b4c(0x1e2)][_0x1c5b4c(0x32c)],'data':_0x4bbb01};this[_0x1c5b4c(0x2f6)](_0x5f385f);}),this['disposeWithMe'](this['_commandService'][_0x5defc1(0x258)](_0x369844=>{const _0x5e99ff=_0x5defc1;if(_0x369844[_0x5e99ff(0x113)]==null)return;const _0x5032e9=_0x369844['params'];if(_0x369844['id']!==se['RichTextEditingMutation']['id']||_0x5032e9[_0x5e99ff(0xc9)]!==this['unitID'])return;const _0x2bc36a={'id':_0x5e99ff(0x162),'params':_0x5032e9},_0x2d2794=this[_0x5e99ff(0x3bf)];for(const [_0x57e983,_0x271487]of _0x2d2794){const _0x37c7e2={'id':_0x5e99ff(0x162),'params':{'unitId':this[_0x5e99ff(0x198)],'actions':null,'textRanges':_0x271487[_0x5e99ff(0x2c8)]}},_0x3d5024=this[_0x5e99ff(0x3af)][_0x5e99ff(0xca)](_0x2bc36a,_0x37c7e2,!0x1);if(_[_0x5e99ff(0x3c3)](_0x3d5024))throw _0x3d5024[_0x5e99ff(0x158)];_0x2d2794[_0x5e99ff(0x26e)](_0x57e983,{..._0x271487,'ranges':_0x3d5024['m2Prime'][_0x5e99ff(0x113)][_0x5e99ff(0xce)]});}queueMicrotask(()=>{const _0x70a1df=_0x5e99ff;this[_0x70a1df(0x443)][_0x70a1df(0x31f)](_0x2d2794);});})));}[_0x2094db(0x2f6)](_0xae1902){const _0x1c9bb6=_0x2094db;var _0x38e56e,_0x4d8df0;const {memberID:_0x14b1b2,selection:_0x373981}=_0xae1902[_0x1c9bb6(0x212)],_0x45b710=ks(_0x373981),_0x1e15ee=(_0x4d8df0=(_0x38e56e=this[_0x1c9bb6(0x112)][_0x1c9bb6(0xd0)](this['unitID'],_0x14b1b2))==null?void 0x0:_0x38e56e[_0x1c9bb6(0x3b0)])!=null?_0x4d8df0:_0x1c9bb6(0x27b),_0x17b383={'color':this[_0x1c9bb6(0x251)]['assignAColorForMemberID'](_0x14b1b2),'name':_0x1e15ee,'ranges':_0x45b710},_0x11b248=this[_0x1c9bb6(0x3bf)];_0x11b248[_0x1c9bb6(0x26e)](_0x14b1b2,_0x17b383),this[_0x1c9bb6(0x443)]['next'](_0x11b248);}[_0x2094db(0x489)](_0x3e55c2){const _0x2272d8=_0x2094db,{memberID:_0x2a1462}=_0x3e55c2[_0x2272d8(0x212)],_0x56027e=this[_0x2272d8(0x3bf)];_0x56027e['delete'](_0x2a1462),this[_0x2272d8(0x443)]['next'](_0x56027e);}[_0x2094db(0x447)](){const _0x332b90=_0x2094db;var _0x5627d4;if(this[_0x332b90(0x12e)]=!0x0,((_0x5627d4=this[_0x332b90(0x45f)][_0x332b90(0x41f)]())==null?void 0x0:_0x5627d4[_0x332b90(0x14d)]())!==this['unitID'])return;const _0x31f465=this[_0x332b90(0x3c6)][_0x332b90(0x408)](se[_0x332b90(0x130)])['getDocRanges']();Array[_0x332b90(0x23a)](_0x31f465)&&_0x31f465[_0x332b90(0xfc)]>0x0&&this[_0x332b90(0x425)](_0x31f465);}[_0x2094db(0x2dd)](){const _0x48857d=_0x2094db;this[_0x48857d(0x12e)]=!0x1;}};ke=si([K(0x2,a[_0x2094db(0xa7)](a[_0x2094db(0x393)])),K(0x3,a[_0x2094db(0xa7)](Je)),K(0x4,a[_0x2094db(0xa7)](X)),K(0x5,a[_0x2094db(0xa7)](Xe)),K(0x6,_[_0x2094db(0x12b)]),K(0x7,a[_0x2094db(0x42f)]),K(0x8,a[_0x2094db(0x35f)])],ke);var ri=Object[_0x2094db(0x19c)],oi=Object[_0x2094db(0x468)],ai=(_0x2520d8,_0xf6af9b,_0x4d45fd,_0x2bea92)=>{const _0x1b5cd0=_0x2094db;for(var _0x48da4c=_0x2bea92>0x1?void 0x0:_0x2bea92?oi(_0xf6af9b,_0x4d45fd):_0xf6af9b,_0x536688=_0x2520d8[_0x1b5cd0(0xfc)]-0x1,_0x41c234;_0x536688>=0x0;_0x536688--)(_0x41c234=_0x2520d8[_0x536688])&&(_0x48da4c=(_0x2bea92?_0x41c234(_0xf6af9b,_0x4d45fd,_0x48da4c):_0x41c234(_0x48da4c))||_0x48da4c);return _0x2bea92&&_0x48da4c&&ri(_0xf6af9b,_0x4d45fd,_0x48da4c),_0x48da4c;},Q=(_0x2e965c,_0x62560b)=>(_0x367719,_0x2c6946)=>_0x62560b(_0x367719,_0x2c6946,_0x2e965c);const ci=0x12c,li=0x64,hi=()=>{let _0xc5fce5=[],_0x3ab4da=!0x1;return _0x2ce41e=>{const _0x4ac093=_0x57dd;_0xc5fce5[_0x4ac093(0x3b2)](_0x2ce41e),_0x3ab4da||(_0x3ab4da=!0x0,setTimeout(()=>{const _0x4033fd=_0x4ac093;_0xc5fce5[_0x4033fd(0x44f)](_0x37846d=>_0x37846d()),_0xc5fce5=[],_0x3ab4da=!0x1;}));};};let Be=class extends a[_0x2094db(0x13e)]{constructor(_0x1f8328,_0x3e7df3,_0x47c25f,_0x2ba5f8,_0x185483,_0x257565,_0x154e13,_0x4e51b2){const _0x185543=_0x2094db;super(),u(this,_0x185543(0x12e),!0x1),u(this,_0x185543(0x3fb),!0x1),u(this,_0x185543(0x443),new v[(_0x185543(0x31e))](new Map())),u(this,_0x185543(0x1fd),this[_0x185543(0x443)]['asObservable']()),u(this,_0x185543(0x3e7),new v[(_0x185543(0x31e))]([])),u(this,'roomMembers$',this[_0x185543(0x3e7)][_0x185543(0x2be)](v[_0x185543(0x359)](ci))),u(this,'_updateLocalCursor',a[_0x185543(0x34f)]((_0x1e0b52,_0x465769)=>{const _0x298b4e=_0x185543,_0x3ecacf={'eventID':_[_0x298b4e(0x1e2)][_0x298b4e(0x32c)],'data':{'unitID':this['unitID'],'memberID':this[_0x298b4e(0x18e)][_0x298b4e(0x2ba)](),'selection':et[_0x298b4e(0x282)](_0x1e0b52,_0x465769['range'])}};this['_session'][_0x298b4e(0x290)](_0x3ecacf,this['unitID']);},li)),(this[_0x185543(0x198)]=_0x1f8328,this[_0x185543(0x18e)]=_0x3e7df3,this[_0x185543(0x3c6)]=_0x47c25f,this[_0x185543(0x251)]=_0x2ba5f8,this['_memberService']=_0x185483,this['_univerInstanceService']=_0x257565,this[_0x185543(0xba)]=_0x154e13,this[_0x185543(0x33e)]=_0x4e51b2);}get[_0x2094db(0x3bf)](){const _0x5080df=_0x2094db;return this[_0x5080df(0x443)][_0x5080df(0x1ed)]();}get[_0x2094db(0x221)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x3413df=_0x2094db;super[_0x3413df(0x387)](),this[_0x3413df(0x443)]['next'](new Map()),this[_0x3413df(0x443)][_0x3413df(0x456)](),this['_roomMembers$'][_0x3413df(0x31f)]([]),this[_0x3413df(0x3e7)][_0x3413df(0x456)]();}[_0x2094db(0x10c)](){const _0x283915=_0x2094db;this['_init']||(this[_0x283915(0x3fb)]=!0x0,this['_session']['sessionStatus$'][_0x283915(0x2be)](v[_0x283915(0x1f1)](this[_0x283915(0x271)]))[_0x283915(0x253)](_0x6d53cb=>{const _0x9426e7=_0x283915;_0x6d53cb===H[_0x9426e7(0x496)]?this[_0x9426e7(0x447)]():this[_0x9426e7(0x2dd)]();}),this[_0x283915(0x18e)][_0x283915(0x3e3)][_0x283915(0x2be)](v[_0x283915(0x1f1)](this['dispose$']))['subscribe'](_0x5c164b=>{const _0xb549d3=_0x283915,_0x1c46cd=_0x5c164b[_0xb549d3(0x93)];_0x1c46cd===_[_0xb549d3(0x1e2)][_0xb549d3(0x32c)]&&this[_0xb549d3(0x2f6)](_0x5c164b),_0x1c46cd===_['CollaborationEvent'][_0xb549d3(0x1c0)]&&this[_0xb549d3(0x489)](_0x5c164b);}),this[_0x283915(0x320)](),this[_0x283915(0x45b)](this[_0x283915(0xba)]['onCommandExecuted'](_0x462289=>{const _0x2d10e4=_0x283915;if(this[_0x2d10e4(0x12e)]&&_0x462289['id']===C['SetSelectionsOperation']['id']&&_0x462289[_0x2d10e4(0x113)]['unitId']===this['unitID']){const _0x14e36c=_0x462289['params'];this['_updateLocalCursor'](_0x14e36c[_0x2d10e4(0x318)],_0x14e36c[_0x2d10e4(0x182)][0x0]);}})));}[_0x2094db(0x2f6)](_0x5897a7){const _0x2c5dee=_0x2094db;var _0x1f9dab,_0x169702;const {memberID:_0x531264,selection:_0x314040}=_0x5897a7[_0x2c5dee(0x212)],{sheetName:_0x40c629,range:_0x183246}=et['deserializeRangeWithSheet'](_0x314040),_0x4f132b={'name':(_0x169702=(_0x1f9dab=this[_0x2c5dee(0x112)]['getMember'](this[_0x2c5dee(0x198)],_0x531264))==null?void 0x0:_0x1f9dab[_0x2c5dee(0x3b0)])!=null?_0x169702:_0x2c5dee(0x27b),'range':this[_0x2c5dee(0x191)](_0x40c629,_0x183246),'sheetID':_0x40c629,'color':this[_0x2c5dee(0x251)]['assignAColorForMemberID'](_0x531264),'selection':_0x314040},_0xa0cd8b=this['cursorInfo'];_0xa0cd8b['set'](_0x531264,_0x4f132b),this[_0x2c5dee(0x443)]['next'](_0xa0cd8b);}['_onCursorDelete'](_0x45ed2b){const _0x21bfdc=_0x2094db,{memberID:_0x262088}=_0x45ed2b[_0x21bfdc(0x212)],_0x116103=this['cursorInfo'];_0x116103[_0x21bfdc(0x330)](_0x262088),this['_cursorInfo$'][_0x21bfdc(0x31f)](_0x116103);}['_getMergeRange'](_0xcd6efe,_0x300dfe){const _0x2f9240=_0x2094db;var _0x17e12c,_0x4424ac;const _0xa1e3dd=(_0x4424ac=(_0x17e12c=this[_0x2f9240(0x45f)][_0x2f9240(0x110)](this[_0x2f9240(0x198)]))==null?void 0x0:_0x17e12c[_0x2f9240(0xab)](_0xcd6efe))==null?void 0x0:_0x4424ac[_0x2f9240(0x11b)]();return(_0xa1e3dd==null?void 0x0:_0xa1e3dd['find'](_0x3209a3=>a['Rectangle'][_0x2f9240(0x37d)](_0x3209a3,_0x300dfe)))||_0x300dfe;}['_onRefRangeChange'](){const _0x368e56=_0x2094db,_0x4a1fa2=new a[(_0x368e56(0x323))](),_0x5bee4d=hi(),_0x1066b8=()=>{const _0x4ce8a5=_0x368e56;_0x4a1fa2[_0x4ce8a5(0x387)]();const _0x31c977=(_0x363801,_0xa15dba,_0x19439d,_0x591c40)=>{const _0x2f1840=_0x4ce8a5;let _0x3eab5c=[];switch(_0x363801['id']){case C['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x3eab5c=C[_0x2f1840(0x2d2)](_0x363801,_0x591c40);break;}case C['EffectRefRangId'][_0x2f1840(0x441)]:{_0x3eab5c=C[_0x2f1840(0x382)](_0x363801,_0x591c40);break;}case C['EffectRefRangId'][_0x2f1840(0x457)]:{_0x3eab5c=C[_0x2f1840(0x33a)](_0x363801,_0x591c40);break;}case C['EffectRefRangId'][_0x2f1840(0x3e0)]:{_0x3eab5c=C[_0x2f1840(0x242)](_0x363801,_0x591c40);break;}case C['EffectRefRangId'][_0x2f1840(0x364)]:{_0x3eab5c=C['handleInsertRangeMoveRight'](_0x363801,_0x591c40);break;}case C[_0x2f1840(0xa3)][_0x2f1840(0x190)]:{_0x3eab5c=C[_0x2f1840(0x9b)](_0x363801,_0x591c40);break;}case C['EffectRefRangId'][_0x2f1840(0x14f)]:{_0x3eab5c=C[_0x2f1840(0x304)](_0x363801,_0x591c40);break;}case C['EffectRefRangId'][_0x2f1840(0x3e4)]:{_0x3eab5c=C['handleIRemoveCol'](_0x363801,_0x591c40);break;}case C[_0x2f1840(0xa3)][_0x2f1840(0x3c8)]:{_0x3eab5c=C['handleIRemoveRow'](_0x363801,_0x591c40);break;}}const _0x2045bc=C[_0x2f1840(0x2f2)](_0x3eab5c,_0x591c40),_0x3d9390=this[_0x2f1840(0x3bf)]['get'](_0xa15dba);if(_0x3d9390&&_0x2045bc){const _0x3f28fc={..._0x3d9390,'range':_0x2045bc};this[_0x2f1840(0x3bf)][_0x2f1840(0x26e)](_0xa15dba,_0x3f28fc),_0x5bee4d(()=>{const _0x2cba4e=_0x2f1840,_0x33f611=this[_0x2cba4e(0x33e)][_0x2cba4e(0x16d)](_0x2045bc,_0x406e9a=>(_0x33f611['dispose'](),_0x31c977(_0x406e9a,_0xa15dba,_0x19439d,_0x2045bc)));_0x4a1fa2[_0x2cba4e(0x95)](_0x33f611);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x70dd75,_0x585565)=>{const _0x1769c0=_0x4ce8a5,{range:_0x12f93f,sheetID:_0x5dd97}=_0x70dd75,_0x4b5fed=this[_0x1769c0(0x33e)][_0x1769c0(0x16d)](_0x12f93f,_0x397f9c=>(_0x4b5fed[_0x1769c0(0x387)](),_0x31c977(_0x397f9c,_0x585565,_0x5dd97,_0x12f93f)));_0x4a1fa2['add'](_0x4b5fed);});};this[_0x368e56(0x45b)](a[_0x368e56(0x4a7)](this[_0x368e56(0x443)]['subscribe'](()=>{_0x1066b8();})));}[_0x2094db(0x447)](){const _0x33ce03=_0x2094db;var _0x9dbcb0,_0x251297;if(this[_0x33ce03(0x12e)]=!0x0,((_0x9dbcb0=this[_0x33ce03(0x45f)]['getFocusedUnit']())==null?void 0x0:_0x9dbcb0[_0x33ce03(0x14d)]())!==this[_0x33ce03(0x198)])return;const _0x1130bd=(_0x251297=this[_0x33ce03(0x3c6)][_0x33ce03(0x408)](C[_0x33ce03(0x3ea)])[_0x33ce03(0x2cd)]())==null?void 0x0:_0x251297[0x0],_0x49e9b7=this[_0x33ce03(0x45f)][_0x33ce03(0x339)](a[_0x33ce03(0x14b)][_0x33ce03(0x264)])[_0x33ce03(0x2e1)]();_0x1130bd&&_0x49e9b7&&this['_updateLocalCursor'](_0x49e9b7[_0x33ce03(0x399)](),_0x1130bd);}[_0x2094db(0x2dd)](){this['_online']=!0x1;}};Be=ai([Q(0x2,a[_0x2094db(0xa7)](a[_0x2094db(0x393)])),Q(0x3,a['Inject'](Je)),Q(0x4,a[_0x2094db(0xa7)](X)),Q(0x5,a[_0x2094db(0x42f)]),Q(0x6,a[_0x2094db(0x35f)]),Q(0x7,a['Inject'](C[_0x2094db(0x87)]))],Be);var _i=Object[_0x2094db(0x19c)],ui=Object['getOwnPropertyDescriptor'],di=(_0x51175d,_0x49d3a2,_0x3e79b8,_0x442153)=>{const _0x43f583=_0x2094db;for(var _0x4bb981=_0x442153>0x1?void 0x0:_0x442153?ui(_0x49d3a2,_0x3e79b8):_0x49d3a2,_0x648206=_0x51175d[_0x43f583(0xfc)]-0x1,_0x256404;_0x648206>=0x0;_0x648206--)(_0x256404=_0x51175d[_0x648206])&&(_0x4bb981=(_0x442153?_0x256404(_0x49d3a2,_0x3e79b8,_0x4bb981):_0x256404(_0x4bb981))||_0x4bb981);return _0x442153&&_0x4bb981&&_i(_0x49d3a2,_0x3e79b8,_0x4bb981),_0x4bb981;},Me=(_0x2ced34,_0x1b972b)=>(_0x3d108a,_0x48b6dc)=>_0x1b972b(_0x3d108a,_0x48b6dc,_0x2ced34);let ne=class extends a['RxDisposable']{constructor(_0x1a2d4f,_0x609e0e,_0x476fb6){const _0x2aed27=_0x2094db;super(),u(this,_0x2aed27(0x1ce),new Map()),u(this,_0x2aed27(0x280),new v['Subject']()),(this['_univerInstanceService']=_0x1a2d4f,this[_0x2aed27(0x3c6)]=_0x609e0e,this['_collabSessionService']=_0x476fb6,this[_0x2aed27(0x3fb)]());}['dispose'](){const _0x22ad62=_0x2094db;super[_0x22ad62(0x387)](),this['_entityInit$'][_0x22ad62(0x456)](),this['_entities'][_0x22ad62(0x44f)](_0x2a501b=>_0x2a501b[_0x22ad62(0x387)]());}['getCollabCursors$'](_0x4f678f){const _0x544adb=_0x2094db;return this[_0x544adb(0x1ce)]['has'](_0x4f678f)?this[_0x544adb(0x1ce)][_0x544adb(0x408)](_0x4f678f)[_0x544adb(0x1fd)]:this[_0x544adb(0x280)][_0x544adb(0x2be)](v[_0x544adb(0x1d8)](_0x1b9ac9=>_0x1b9ac9[_0x544adb(0x198)]===_0x4f678f),v[_0x544adb(0x1e9)](_0x375549=>_0x375549[_0x544adb(0x1fd)]));}[_0x2094db(0x3fb)](){const _0x57815f=_0x2094db;this['_univerInstanceService'][_0x57815f(0x136)](a[_0x57815f(0x14b)]['UNIVER_SHEET'])[_0x57815f(0x2be)](v[_0x57815f(0x1f1)](this[_0x57815f(0x271)]))['subscribe'](async _0x1baea3=>{const _0x7bb752=_0x57815f,_0x5c1049=_0x1baea3[_0x7bb752(0x14d)](),_0x27f474=await this['_startSheetCollabCursor'](_0x5c1049);this['_entityInit$'][_0x7bb752(0x31f)](_0x27f474),this[_0x7bb752(0x1ce)]['set'](_0x5c1049,_0x27f474);}),this[_0x57815f(0x45f)][_0x57815f(0x136)](a[_0x57815f(0x14b)]['UNIVER_DOC'])[_0x57815f(0x2be)](v[_0x57815f(0x1f1)](this[_0x57815f(0x271)]))[_0x57815f(0x2be)](v[_0x57815f(0x1d8)](_0x3aae90=>!_0x3aae90[_0x57815f(0x14d)]()[_0x57815f(0x86)]('__')))['subscribe'](async _0x3d2bfb=>{const _0x8769c2=_0x57815f,_0x27b2a4=_0x3d2bfb['getUnitId'](),_0x10e8b5=await this[_0x8769c2(0xaf)](_0x27b2a4);this['_entityInit$'][_0x8769c2(0x31f)](_0x10e8b5),this[_0x8769c2(0x1ce)][_0x8769c2(0x26e)](_0x27b2a4,_0x10e8b5);}),v[_0x57815f(0x414)](this[_0x57815f(0x45f)][_0x57815f(0x185)](a['UniverInstanceType'][_0x57815f(0x3d0)]),this['_univerInstanceService'][_0x57815f(0x185)](a[_0x57815f(0x14b)]['UNIVER_SHEET']))[_0x57815f(0x2be)](v[_0x57815f(0x1f1)](this[_0x57815f(0x271)]))[_0x57815f(0x253)](_0x3398c5=>{const _0x4d3853=_0x57815f,_0x2ee248=_0x3398c5['getUnitId'](),_0x1c2cc5=this['_entities']['get'](_0x2ee248);_0x1c2cc5&&(_0x1c2cc5['dispose'](),this['_entities'][_0x4d3853(0x330)](_0x2ee248));});}async['_startSheetCollabCursor'](_0x31a827){const _0x471490=_0x2094db,_0x42846c=await this[_0x471490(0x145)][_0x471490(0x3ad)](_0x31a827),_0x36ed3a=this['_injector'][_0x471490(0x47d)](Be,_0x31a827,_0x42846c);return _0x36ed3a[_0x471490(0x10c)](),_0x36ed3a;}async[_0x2094db(0xaf)](_0x317867){const _0x250fbf=_0x2094db,_0x43a53d=await this[_0x250fbf(0x145)]['requireSession'](_0x317867),_0x2db090=this[_0x250fbf(0x3c6)][_0x250fbf(0x47d)](ke,_0x317867,_0x43a53d);return _0x2db090[_0x250fbf(0x10c)](),_0x2db090;}};ne=di([Me(0x0,a['IUniverInstanceService']),Me(0x1,a[_0x2094db(0xa7)](a[_0x2094db(0x393)])),Me(0x2,a[_0x2094db(0xa7)](exports[_0x2094db(0x21b)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,Si=0x5;function vi(_0x3dab76,_0x3f5d50){const _0x701199=_0x2094db;let {radius:_0x4c6bd5,width:_0x135320,height:_0x306c06}=_0x3f5d50;_0x4c6bd5=_0x4c6bd5!=null?_0x4c6bd5:0x0,_0x135320=_0x135320!=null?_0x135320:0x1e,_0x306c06=_0x306c06!=null?_0x306c06:0x1e;let _0x517033=0x0,_0x2d4dc3=0x0,_0x2cda8f=0x0;_0x517033=_0x2d4dc3=_0x2cda8f=Math[_0x701199(0x358)](_0x4c6bd5,_0x135320/0x2,_0x306c06/0x2),_0x3dab76['beginPath'](),_0x3dab76['moveTo'](_0x517033,0x0),_0x3dab76[_0x701199(0x108)](_0x135320-_0x2d4dc3,0x0),_0x3dab76['arc'](_0x135320-_0x2d4dc3,_0x2d4dc3,_0x2d4dc3,Math['PI']*0x3/0x2,0x0,!0x1),_0x3dab76[_0x701199(0x108)](_0x135320,_0x306c06-_0x2cda8f),_0x3dab76[_0x701199(0xb5)](_0x135320-_0x2cda8f,_0x306c06-_0x2cda8f,_0x2cda8f,0x0,Math['PI']/0x2,!0x1),_0x3dab76[_0x701199(0x108)](0x0,_0x306c06),_0x3dab76[_0x701199(0x108)](0x0,_0x517033),_0x3dab76[_0x701199(0xb5)](_0x517033,_0x517033,_0x517033,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3dab76[_0x701199(0x20a)](),_0x3f5d50[_0x701199(0x278)]&&(_0x3dab76[_0x701199(0x2a9)](),_0x3dab76[_0x701199(0x21d)]=_0x3f5d50[_0x701199(0x278)],_0x3f5d50[_0x701199(0x355)]===_0x701199(0x289)?_0x3dab76[_0x701199(0x278)](_0x701199(0x289)):_0x3dab76[_0x701199(0x278)](),_0x3dab76[_0x701199(0x2c7)]());}class Oe extends D[_0x2094db(0x18b)]{constructor(_0x574855,_0x188881){const _0x548467=_0x2094db;super(_0x574855,_0x188881),u(this,_0x548467(0x224)),u(this,'text'),(this[_0x548467(0x224)]=_0x188881==null?void 0x0:_0x188881[_0x548467(0x224)],this[_0x548467(0xd2)]=_0x188881==null?void 0x0:_0x188881[_0x548467(0xd2)]);}static[_0x2094db(0xbe)](_0x5dd02b,_0x3ac5c0){const _0x472798=_0x2094db,{text:_0x173f84,color:_0x1249ba}=_0x3ac5c0;_0x5dd02b[_0x472798(0x2a9)](),_0x5dd02b[_0x472798(0x149)]=_0x472798(0x35e);const _0x4f49c2=_0x5dd02b[_0x472798(0x146)](_0x173f84)['width'],_0x4af293=Math[_0x472798(0x358)](_0x4f49c2+0x2*Ae,lt);vi(_0x5dd02b,{'height':de,'radius':0x4,'width':_0x4af293,'fill':_0x1249ba,'evented':!0x1}),_0x5dd02b[_0x472798(0x21d)]=_0x472798(0x257);const _0x52ea52=Ae,_0x33fb08=de-Si,_0x4df848=lt-0x2*Ae;if(_0x4f49c2>_0x4df848){let _0x2a57ea='',_0xea8019=0x0;for(const _0x3fae39 of _0x173f84){const _0x5b38e5=_0x5dd02b['measureText'](_0x3fae39)[_0x472798(0x37b)];if(_0xea8019+_0x5b38e5<=_0x4df848-_0x5dd02b['measureText'](_0x472798(0x2b5))[_0x472798(0x37b)])_0x2a57ea+=_0x3fae39,_0xea8019+=_0x5b38e5;else{_0x2a57ea+=_0x472798(0x2b5);break;}}_0x5dd02b[_0x472798(0x165)](_0x2a57ea,_0x52ea52,_0x33fb08);}else _0x5dd02b[_0x472798(0x165)](_0x173f84,_0x52ea52,_0x33fb08);_0x5dd02b[_0x472798(0x2c7)]();}[_0x2094db(0x40f)](_0x2beef0){const _0x8c6c99=_0x2094db;Oe[_0x8c6c99(0xbe)](_0x2beef0,this);}}const Le='collab-text-anchor-',mi=_0x2094db(0xda),gi=_0x2094db(0xe9),le=0x6,fi=1.5,je=0x4,Ii=1.5,pi=_0x2094db(0x375);class ht{constructor(_0x3ae5c0,_0x39219c,_0x1334e0,_0x1f8070){const _0x4b2412=_0x2094db;u(this,_0x4b2412(0x2c9),[]),u(this,_0x4b2412(0x27f),null),u(this,'_textBubble',null),u(this,_0x4b2412(0x49c),null),u(this,_0x4b2412(0xf5),null),u(this,'_eventUnsubscribe',null),(this[_0x4b2412(0x3ff)]=_0x3ae5c0,this[_0x4b2412(0x493)]=_0x39219c,this[_0x4b2412(0x138)]=_0x1334e0,this[_0x4b2412(0x1b8)]=_0x1f8070,this[_0x4b2412(0x30a)]());}set[_0x2094db(0xea)](_0x1dc677){const _0x45d12d=_0x2094db;_0x1dc677?(this[_0x45d12d(0x49c)]&&this[_0x45d12d(0x49c)][_0x45d12d(0x2e9)](),this[_0x45d12d(0x1f7)]&&this[_0x45d12d(0x1f7)][_0x45d12d(0x296)]()):(this[_0x45d12d(0x49c)]&&this[_0x45d12d(0x49c)][_0x45d12d(0x296)](),this['_textBubble']&&this[_0x45d12d(0x1f7)]['hide']());}['dispose'](){const _0x27f06f=_0x2094db;for(const _0x3ccaa9 of this[_0x27f06f(0x2c9)])_0x3ccaa9[_0x27f06f(0x387)]();this['_textBubble']&&this[_0x27f06f(0x1f7)][_0x27f06f(0x387)](),this[_0x27f06f(0x49c)]&&this[_0x27f06f(0x49c)][_0x27f06f(0x387)](),this[_0x27f06f(0x27f)]&&this[_0x27f06f(0x27f)][_0x27f06f(0x387)](),this['_eventUnsubscribe']&&this[_0x27f06f(0x17d)]();}['_render'](){const _0x38dad0=_0x2094db;var _0x7d7051;const {_docSkeleton:_0x4e2ab4,_document:_0x5ee382}=this,{color:_0x2535a2,name:_0x2a0e36,ranges:_0x3a46bb}=this[_0x38dad0(0x3ff)],_0x10d795=_0x5ee382[_0x38dad0(0x36f)](),{docsLeft:_0x150b7c,docsTop:_0x2dc18e}=_0x10d795,_0x5b9219=new N['NodePositionConvertToCursor'](_0x10d795,_0x4e2ab4);for(const {startOffset:_0x377cfa,endOffset:_0x404594,collapsed:_0x4c045f,isActive:_0x3cd90b}of _0x3a46bb){const _0x563c6f=_0x4e2ab4[_0x38dad0(0x1ca)](_0x377cfa),_0x4ac019=_0x4e2ab4[_0x38dad0(0x1ca)](_0x404594);if(_0x3cd90b){const {contentBoxPointGroup:_0x133672}=_0x5b9219[_0x38dad0(0x161)](_0x4ac019,_0x4ac019);if(_0x133672['length']===0x0)continue;this[_0x38dad0(0x133)](_0x2535a2,_0x133672,_0x150b7c,_0x2dc18e,_0x2a0e36),this[_0x38dad0(0x17d)]=this[_0x38dad0(0xdf)]();}if(!_0x4c045f&&_0x563c6f&&_0x4ac019){if(N['isValidRectRange'](_0x563c6f,_0x4ac019)){const _0x3563c7=new N[(_0x38dad0(0x374))](_0x10d795,_0x4e2ab4),{pointGroup:_0x4951cf}=(_0x7d7051=_0x3563c7[_0x38dad0(0x161)](_0x563c6f,_0x4ac019))!=null?_0x7d7051:{};if(_0x4951cf==null||_0x4951cf[_0x38dad0(0xfc)]===0x0)continue;this[_0x38dad0(0x3a7)](_0x2535a2,_0x4951cf,_0x150b7c,_0x2dc18e);}else{const {contentBoxPointGroup:_0x2b9c60}=_0x5b9219[_0x38dad0(0x161)](_0x563c6f,_0x4ac019);if(_0x2b9c60[_0x38dad0(0xfc)]===0x0)continue;this[_0x38dad0(0x454)](_0x2535a2,_0x2b9c60,_0x150b7c,_0x2dc18e);}}}}['_drawAnchor'](_0x40ce87,_0x2e12f9,_0x36761b,_0x37a22a,_0x46ea39){const _0x22c561=_0x2094db,_0x3e75d8=this[_0x22c561(0x266)](_0x2e12f9),{left:_0x34b854,top:_0x3ba3cb,height:_0x2485f5}=_0x3e75d8,_0x228916=this['_getScale'](),_0x504bd2=Ii/_0x228916,_0x43c417=new D['Rect'](Le+a[_0x22c561(0x28b)]['generateRandomId'](le),{'left':_0x34b854+_0x36761b-_0x504bd2,'top':_0x3ba3cb+_0x37a22a,'height':_0x2485f5,'width':fi,'fill':_0x40ce87||D[_0x22c561(0x469)](a[_0x22c561(0x90)][_0x22c561(0x11e)],0x0),'strokeWidth':_0x504bd2,'stroke':pi,'evented':!0x0});this['_anchor']=_0x43c417,this['_scene'][_0x22c561(0x211)](_0x43c417,N['TEXT_RANGE_LAYER_INDEX']);const _0x19767d=new D[(_0x22c561(0x14c))](Le+a[_0x22c561(0x28b)]['generateRandomId'](le),{'left':_0x34b854+_0x36761b-_0x504bd2,'top':_0x3ba3cb+_0x37a22a-je/0x2,'height':je,'width':je,'fill':_0x40ce87||D[_0x22c561(0x469)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x40ce87||D[_0x22c561(0x469)](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x22c561(0x49c)]=_0x19767d,this['_scene']['addObject'](_0x19767d,N['TEXT_RANGE_LAYER_INDEX']);const _0xe16063=new Oe(Le+a[_0x22c561(0x28b)]['generateRandomId'](le),{'left':_0x34b854+_0x36761b-_0x504bd2,'top':_0x3ba3cb+_0x37a22a-de,'text':_0x46ea39,'color':_0x40ce87});this['_textBubble']=_0xe16063,this[_0x22c561(0x493)][_0x22c561(0x211)](_0xe16063,N[_0x22c561(0x49d)]),this[_0x22c561(0xea)]=!0x1;}[_0x2094db(0xdf)](){const _0x49309d=_0x2094db,_0x5b55ad=this['_anchor'][_0x49309d(0xfe)][_0x49309d(0x36d)](()=>{const _0x541ed5=_0x49309d;this[_0x541ed5(0xea)]=!0x0;}),_0x4fb2d5=this[_0x49309d(0x27f)][_0x49309d(0x3b3)][_0x49309d(0x36d)](()=>{const _0x8431e4=_0x49309d;this[_0x8431e4(0xf5)]&&clearTimeout(this[_0x8431e4(0xf5)]),this[_0x8431e4(0xf5)]=setTimeout(()=>{const _0x43a603=_0x8431e4;this[_0x43a603(0xea)]=!0x1;},0x7d0);});return()=>{const _0x527012=_0x49309d;_0x5b55ad[_0x527012(0x3ef)](),_0x4fb2d5['unsubscribe']();};}[_0x2094db(0x454)](_0x5c39a3,_0x4df2c3,_0x2c5e64,_0x2b5cfa){const _0x35d43c=_0x2094db,_0x58404e=new a['ColorKit'](_0x5c39a3)[_0x35d43c(0x1db)](0.2)[_0x35d43c(0xfb)](),_0x4890d5=new D[(_0x35d43c(0x2ef))](mi+a[_0x35d43c(0x28b)][_0x35d43c(0x3ac)](le),{'pointsGroup':_0x4df2c3,'fill':_0x58404e||D[_0x35d43c(0x469)](a[_0x35d43c(0x90)][_0x35d43c(0x11e)],0.2),'left':_0x2c5e64,'top':_0x2b5cfa,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x35d43c(0x2c9)][_0x35d43c(0x3b2)](_0x4890d5),this['_scene'][_0x35d43c(0x211)](_0x4890d5,N[_0x35d43c(0x49d)]);}[_0x2094db(0x3a7)](_0x33d653,_0x82cbd,_0x5dcea9,_0x334438){const _0x27588a=_0x2094db,_0x28ae61=new a[(_0x27588a(0x3c7))](_0x33d653)['setAlpha'](0.2)[_0x27588a(0xfb)](),_0x8c6fdf=new D[(_0x27588a(0x2ef))](gi+a[_0x27588a(0x28b)][_0x27588a(0x3ac)](le),{'pointsGroup':_0x82cbd,'fill':_0x28ae61||D[_0x27588a(0x469)](a['COLORS'][_0x27588a(0x11e)],0.2),'left':_0x5dcea9,'top':_0x334438,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27588a(0x2c9)][_0x27588a(0x3b2)](_0x8c6fdf),this['_scene']['addObject'](_0x8c6fdf,N[_0x27588a(0x49d)]);}['_getAnchorBounding'](_0x93ab5d){const _0x39bb20=_0x93ab5d[0x0],_0x64e7e5=_0x39bb20[0x0],_0xf46131=_0x39bb20[0x2],{x:_0x21aad4,y:_0x244b93}=_0x64e7e5,{x:_0x569d8,y:_0x3bd413}=_0xf46131;return{'left':_0x21aad4,'top':_0x244b93,'width':_0x569d8-_0x21aad4,'height':_0x3bd413-_0x244b93};}[_0x2094db(0x30e)](){const _0x5f03f4=_0x2094db,{scaleX:_0x59e31b,scaleY:_0x50171a}=this[_0x5f03f4(0x493)][_0x5f03f4(0x2b2)]();return Math[_0x5f03f4(0x237)](_0x59e31b,_0x50171a);}}var Ci=Object[_0x2094db(0x19c)],Ei=Object[_0x2094db(0x468)],bi=(_0x2750de,_0x22b740,_0x2708dd,_0x105cd2)=>{for(var _0x5e5096=_0x105cd2>0x1?void 0x0:_0x105cd2?Ei(_0x22b740,_0x2708dd):_0x22b740,_0x5ed0ba=_0x2750de['length']-0x1,_0x50549e;_0x5ed0ba>=0x0;_0x5ed0ba--)(_0x50549e=_0x2750de[_0x5ed0ba])&&(_0x5e5096=(_0x105cd2?_0x50549e(_0x22b740,_0x2708dd,_0x5e5096):_0x50549e(_0x5e5096))||_0x5e5096);return _0x105cd2&&_0x5e5096&&Ci(_0x22b740,_0x2708dd,_0x5e5096),_0x5e5096;},ve=(_0x2c5d38,_0x5c99e4)=>(_0x368eff,_0x3345fc)=>_0x5c99e4(_0x368eff,_0x3345fc,_0x2c5d38);let Ve=class extends a[_0x2094db(0x13e)]{constructor(_0x33503f,_0x1f9dee,_0x5c591d,_0x5b054d,_0x502154){const _0x34f39=_0x2094db;super(),u(this,_0x34f39(0x1a4),[]),u(this,_0x34f39(0x498),[]),(this[_0x34f39(0x135)]=_0x33503f,this['_docSkeletonManagerService']=_0x1f9dee,this['_collabCursorController']=_0x5c591d,this[_0x34f39(0xba)]=_0x5b054d,this[_0x34f39(0x2d3)]=_0x502154,this[_0x34f39(0x3fb)]());}[_0x2094db(0x3fb)](){const _0x960982=_0x2094db,_0xe0c245=this[_0x960982(0x135)]['unitId'],_0x22f6de=this[_0x960982(0x181)];this[_0x960982(0x45b)](v['combineLatest']([this['_collabCursorController'][_0x960982(0xeb)](_0xe0c245),this[_0x960982(0x2d3)][_0x960982(0xde)]])[_0x960982(0x2be)](E[_0x960982(0x418)](([_0x1406de,_0x352af2])=>({'skeleton':_0x22f6de[_0x960982(0x307)](),'cursors':[..._0x1406de['values']()][_0x960982(0x3ae)](_0x276f91=>({..._0x276f91,'color':_0x352af2[_0x276f91[_0x960982(0x224)]]}))})))[_0x960982(0x253)](_0x1c78cc=>{const _0x4c65a9=_0x960982;if(this[_0x4c65a9(0x413)](),_0x1c78cc){const {skeleton:_0x287810,cursors:_0x5bea11}=_0x1c78cc;this['_updateCollabCursors'](_0x287810,_0x5bea11);}})),this['_initResize'](),this[_0x960982(0x11d)]();}['_updateCollabCursors'](_0x201f7a,_0x1f86c7){const _0x1ebc9e=_0x2094db,{scene:_0x468abb,mainComponent:_0x2632bb}=this[_0x1ebc9e(0x135)],_0x5af313=_0x1f86c7[_0x1ebc9e(0x418)](_0x204f8e=>new ht(_0x204f8e,_0x468abb,_0x201f7a,_0x2632bb));this['_cursorShapes']=_0x5af313,this[_0x1ebc9e(0x498)]=_0x1f86c7;}[_0x2094db(0x23d)](){const _0x3242a1=_0x2094db;this[_0x3242a1(0x413)]();const {scene:_0x2a68a8,mainComponent:_0xd3f249}=this[_0x3242a1(0x135)],_0xbbf65e=this[_0x3242a1(0x181)]['getSkeleton'](),_0x1279e5=this['_cursors'][_0x3242a1(0x418)](_0x1e88c3=>new ht(_0x1e88c3,_0x2a68a8,_0xbbf65e,_0xd3f249));this[_0x3242a1(0x1a4)]=_0x1279e5;}['_removeCollabCursors'](){const _0x1e9b27=_0x2094db;this[_0x1e9b27(0x1a4)][_0x1e9b27(0x44f)](_0x4bc653=>_0x4bc653[_0x1e9b27(0x387)]()),this[_0x1e9b27(0x1a4)]=[];}[_0x2094db(0x11d)](){const _0x2793c0=_0x2094db,_0x205db4=[N[_0x2793c0(0x127)]['id']];this[_0x2793c0(0x45b)](this[_0x2793c0(0xba)][_0x2793c0(0x258)](_0x4a38ad=>{const _0x3128d7=_0x2793c0;_0x205db4[_0x3128d7(0x41e)](_0x4a38ad['id'])&&_0x4a38ad['params']['unitId']===this[_0x3128d7(0x135)][_0x3128d7(0xc9)]&&this[_0x3128d7(0x23d)]();}));}[_0x2094db(0x44c)](){const _0x5835e4=_0x2094db;this[_0x5835e4(0x45b)](a[_0x5835e4(0x31d)](this[_0x5835e4(0x135)][_0x5835e4(0x365)][_0x5835e4(0x3d5)])['pipe'](E[_0x5835e4(0x1d8)](_0x4453f2=>_0x4453f2['type']===D[_0x5835e4(0x2ae)][_0x5835e4(0x403)]),E[_0x5835e4(0x34e)](0x10))['subscribe'](()=>{const _0x17eff5=_0x5835e4;this[_0x17eff5(0x23d)]();}));}};Ve=bi([ve(0x1,a[_0x2094db(0xa7)](se[_0x2094db(0x479)])),ve(0x2,a[_0x2094db(0xa7)](ne)),ve(0x3,a[_0x2094db(0x35f)]),ve(0x4,a[_0x2094db(0xa7)](a['ThemeService']))],Ve);const Ti=0x1,Ri=1.5;class Nt extends D[_0x2094db(0x18b)]{constructor(_0x3ac094,_0x4db08e){const _0x426bf1=_0x2094db;super(_0x3ac094,_0x4db08e),u(this,'_color'),u(this,_0x426bf1(0xe3),!0x1),u(this,_0x426bf1(0x37c)),u(this,_0x426bf1(0x3db),''),u(this,_0x426bf1(0x25b),_0x426bf1(0x46b)),u(this,_0x426bf1(0x309)),(_0x4db08e&&this[_0x426bf1(0x48f)](_0x4db08e),this[_0x426bf1(0xfe)][_0x426bf1(0x36d)](()=>this[_0x426bf1(0x48f)]({'hovered':!0x0})),this[_0x426bf1(0x3b3)][_0x426bf1(0x36d)](()=>this[_0x426bf1(0x48f)]({'hovered':!0x1})));}[_0x2094db(0x48f)](_0x2034b5){const _0x6341b5=_0x2094db;var _0x2a841b,_0x1bed1b,_0x4d3e9a,_0x456008,_0x747f83,_0x2e9824;this['_color']=(_0x2a841b=_0x2034b5[_0x6341b5(0x224)])!=null?_0x2a841b:this[_0x6341b5(0x291)],this[_0x6341b5(0xe3)]=(_0x1bed1b=_0x2034b5['hovered'])!=null?_0x1bed1b:this[_0x6341b5(0xe3)],this['_range']=(_0x4d3e9a=_0x2034b5['range'])!=null?_0x4d3e9a:this['_range'],this[_0x6341b5(0x3db)]=(_0x456008=_0x2034b5[_0x6341b5(0x3b0)])!=null?_0x456008:this[_0x6341b5(0x3db)],this[_0x6341b5(0x25b)]=(_0x747f83=_0x2034b5[_0x6341b5(0x297)])!=null?_0x747f83:this[_0x6341b5(0x25b)],this['_backgroundColor']=(_0x2e9824=_0x2034b5[_0x6341b5(0x4a2)])!=null?_0x2e9824:this[_0x6341b5(0x309)],this[_0x6341b5(0x390)]({'width':_0x2034b5[_0x6341b5(0x37b)],'height':_0x2034b5['height']});}[_0x2094db(0x32e)](_0x58697d){const _0x5470b0=_0x2094db,{row:_0x4c9a43,column:_0x38fec0}=_0x58697d;if(_0x4c9a43>=this['_range'][_0x5470b0(0x157)]&&_0x4c9a43<=this[_0x5470b0(0x37c)][_0x5470b0(0x366)]&&_0x38fec0>=this[_0x5470b0(0x37c)][_0x5470b0(0xf7)]&&_0x38fec0<=this['_range'][_0x5470b0(0x37e)]){this[_0x5470b0(0x48f)]({'hovered':!0x0});return;}this[_0x5470b0(0x48f)]({'hovered':!0x1});}[_0x2094db(0x49e)](_0x2dc6d0){return!0x1;}[_0x2094db(0x40f)](_0x3b42d0){const _0x27f89e=_0x2094db;D[_0x27f89e(0x14c)][_0x27f89e(0xbe)](_0x3b42d0,{'width':this['width'],'height':this[_0x27f89e(0x2f3)],'strokeWidth':Ri,'stroke':this[_0x27f89e(0x291)],'evented':!0x1,'fill':this[_0x27f89e(0x309)]}),this['_hovered']&&(_0x3b42d0[_0x27f89e(0x2a9)](),_0x3b42d0['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']==='bottom'?0x0:-de),Oe[_0x27f89e(0xbe)](_0x3b42d0,{'text':this[_0x27f89e(0x3db)],'color':this[_0x27f89e(0x291)]}),_0x3b42d0[_0x27f89e(0x2c7)]());}}var Oi=Object[_0x2094db(0x19c)],Di=Object[_0x2094db(0x468)],yi=(_0x6c5bc4,_0x1152e7,_0x1864a0,_0x3b6126)=>{for(var _0x9471df=_0x3b6126>0x1?void 0x0:_0x3b6126?Di(_0x1152e7,_0x1864a0):_0x1152e7,_0x2ac667=_0x6c5bc4['length']-0x1,_0x424906;_0x2ac667>=0x0;_0x2ac667--)(_0x424906=_0x6c5bc4[_0x2ac667])&&(_0x9471df=(_0x3b6126?_0x424906(_0x1152e7,_0x1864a0,_0x9471df):_0x424906(_0x9471df))||_0x9471df);return _0x3b6126&&_0x9471df&&Oi(_0x1152e7,_0x1864a0,_0x9471df),_0x9471df;},$e=(_0x236acb,_0x28caa)=>(_0x1d4853,_0x37e0c6)=>_0x28caa(_0x1d4853,_0x37e0c6,_0x236acb);const Ui=0x1389;let We=class extends a[_0x2094db(0x13e)]{constructor(_0x2ec6b5,_0x405fbd,_0x5195a0,_0x48f05c){const _0x1ef66c=_0x2094db;super(),u(this,_0x1ef66c(0x498),new Set()),u(this,_0x1ef66c(0x4a9),null),(this[_0x1ef66c(0x135)]=_0x2ec6b5,this[_0x1ef66c(0x20e)]=_0x405fbd,this['_collabCursorController']=_0x5195a0,this[_0x1ef66c(0x2d3)]=_0x48f05c,this['_init']());}['_init'](){const _0x419560=_0x2094db;this[_0x419560(0x20e)]['currentSkeleton$']['pipe'](E['takeUntil'](this[_0x419560(0x271)]),E[_0x419560(0x1e9)](_0x2d9aad=>{const _0x1cbaa7=_0x419560;if(_0x2d9aad){const _0x33dfd8=_0x2d9aad[_0x1cbaa7(0x234)];return v[_0x1cbaa7(0x1a2)](this['_collabCursorController']['getCollabCursors$'](this['_context'][_0x1cbaa7(0xc9)]),this[_0x1cbaa7(0x2d3)][_0x1cbaa7(0xde)])[_0x1cbaa7(0x2be)](E[_0x1cbaa7(0x418)](([_0x3847a9,_0x24ca39])=>{const _0x12d3c9=_0x1cbaa7,_0x10c20b=new Map();return _0x3847a9[_0x12d3c9(0x44f)]((_0x34bdbe,_0x22fe08)=>{const _0x3f45a4=_0x12d3c9;if(_0x34bdbe[_0x3f45a4(0x3bd)]===_0x33dfd8){const _0x13c923={..._0x34bdbe};_0x13c923[_0x3f45a4(0x224)]=_0x24ca39[_0x34bdbe[_0x3f45a4(0x224)]],_0x10c20b[_0x3f45a4(0x26e)](_0x22fe08,_0x13c923);}}),{'skeleton':_0x2d9aad,'cursors':_0x10c20b};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x419560(0x253)](({skeleton:_0x306a3e,cursors:_0x4a1825})=>{const _0x4893d0=_0x419560;this[_0x4893d0(0x413)](),_0x306a3e&&this[_0x4893d0(0x3b8)](_0x306a3e,_0x4a1825);}),this[_0x419560(0x20e)][_0x419560(0x2a5)]['subscribe'](_0x528aa8=>{const _0x5af575=_0x419560;if(_0x528aa8==null)return;const {skeleton:_0x4a8929}=_0x528aa8,{scene:_0x40be95}=this[_0x5af575(0x135)];_0x40be95['onPointerMove$'][_0x5af575(0x36d)](a['debounce'](_0x1c3176=>{const _0x4a37f0=_0x5af575;var _0x4db3f8,_0x462154;const {offsetX:_0xfa6283,offsetY:_0x3fb84b}=_0x1c3176,{x:_0x28a367,y:_0x3230d4}=_0x40be95['getRelativeToViewportCoord'](D[_0x4a37f0(0x3b4)]['FromArray']([_0xfa6283,_0x3fb84b])),{scaleX:_0x13191f,scaleY:_0x4db468}=_0x40be95[_0x4a37f0(0x2b2)](),_0x6bc27c=_0x40be95[_0x4a37f0(0x295)](te[_0x4a37f0(0x3ca)][_0x4a37f0(0x370)]),_0x5c5fac=_0x40be95[_0x4a37f0(0x41b)](D['Vector2']['FromArray']([_0x28a367,_0x3230d4]),_0x6bc27c),_0x403ca8=_0x4a8929[_0x4a37f0(0x207)](_0xfa6283,_0x3fb84b,_0x13191f,_0x4db468,_0x5c5fac);((_0x4db3f8=this['_lastPointer'])==null?void 0x0:_0x4db3f8[_0x4a37f0(0x1fe)])===_0x403ca8[_0x4a37f0(0x1fe)]&&((_0x462154=this[_0x4a37f0(0x4a9)])==null?void 0x0:_0x462154['row'])===_0x403ca8['row']||this[_0x4a37f0(0x498)]['forEach'](_0x1ebd81=>{const _0xadfaa1=_0x4a37f0;_0x1ebd81[_0xadfaa1(0x32e)](_0x403ca8);});},0x64));});}[_0x2094db(0x3b8)](_0x53d78c,_0x1c4c23){const _0x59c24f=_0x2094db;var _0x21a843;const _0x102b90=(_0x21a843=this[_0x59c24f(0x20e)][_0x59c24f(0x1b5)]())==null?void 0x0:_0x21a843[_0x59c24f(0x38e)];if(!_0x102b90)return;const _0x1ca56d=this[_0x59c24f(0xb6)]();if(!_0x1ca56d)return;this[_0x59c24f(0x498)]['forEach'](_0x493727=>{const _0x1d53f8=_0x59c24f;_0x493727[_0x1d53f8(0x4ac)]();});const {scene:_0x1c85ab}=_0x1ca56d,_0x286916=Pi(Array[_0x59c24f(0x2d8)](_0x1c4c23[_0x59c24f(0x4a8)]()))[_0x59c24f(0x418)](_0x2975e3=>{const _0xa3816a=_0x59c24f,{color:_0x3a4155,range:_0x458502,name:_0x218bb7,selection:_0x28513d,sheetID:_0x2083fc}=_0x2975e3,{startColumn:_0x330034,startRow:_0x4aa02e,endColumn:_0x71abd3,endRow:_0x283abd}=_0x458502,_0x3d3aaf=te[_0xa3816a(0x29f)](_0x4aa02e,_0x330034,_0x1c85ab,_0x102b90),_0x4238ef=te[_0xa3816a(0x29f)](_0x283abd,_0x71abd3,_0x1c85ab,_0x102b90),{columnHeaderHeightAndMarginTop:_0x47eec7}=_0x102b90,{startX:_0x27802f,startY:_0x346ed4}=_0x3d3aaf,{endX:_0x45fbda,endY:_0x37dba3}=_0x4238ef,_0x154bb9=_0x45fbda-_0x27802f,_0x2e642c=_0x37dba3-_0x346ed4,_0x43da8b={'labelPosition':_0x346ed4-_0x47eec7>=de?_0xa3816a(0x46b):_0xa3816a(0xf3),'sheetID':_0x2083fc,'range':_0x458502,'color':_0x3a4155,'name':_0x218bb7,'selection':_0x28513d,'left':_0x27802f,'top':_0x346ed4,'width':_0x154bb9,'height':_0x2e642c,'evented':!0x1,'zIndex':Ui};return new Nt(_0x218bb7,_0x43da8b);});_0x1c85ab[_0x59c24f(0x3dd)](_0x286916,Ti),this[_0x59c24f(0x498)]=new Set(_0x286916);}[_0x2094db(0x413)](){const _0x5af758=_0x2094db;var _0x424d0c;(_0x424d0c=this['_cursors'])==null||_0x424d0c[_0x5af758(0x44f)](_0x450dfb=>_0x450dfb[_0x5af758(0x387)]());}[_0x2094db(0xb6)](){const _0x1e3e5a=_0x2094db;return te[_0x1e3e5a(0x2c3)](this[_0x1e3e5a(0x135)]['unit'],this[_0x1e3e5a(0x135)]);}};We=yi([$e(0x1,a['Inject'](te['SheetSkeletonManagerService'])),$e(0x2,a[_0x2094db(0xa7)](ne)),$e(0x3,a['Inject'](a[_0x2094db(0x2aa)]))],We);function Pi(_0x23dbc7){const _0x43174d=_0x2094db,_0x469426=new Map();return _0x23dbc7[_0x43174d(0x44f)](_0x5e42ca=>{const _0x51517e=_0x43174d;if(_0x469426[_0x51517e(0x24d)](_0x5e42ca[_0x51517e(0x3a5)])){const _0x1ecafc=_0x469426[_0x51517e(0x408)](_0x5e42ca[_0x51517e(0x3a5)]);_0x1ecafc[_0x51517e(0x3b0)]+=',\x20'+_0x5e42ca[_0x51517e(0x3b0)];}else _0x469426[_0x51517e(0x26e)](_0x5e42ca['selection'],_0x5e42ca);}),Array['from'](_0x469426[_0x43174d(0x4a8)]());}var M=function(){const _0x444251=_0x2094db;return M=Object[_0x444251(0x3fe)]||function(_0x4c59d7){const _0x748c88=_0x444251;for(var _0xf0577,_0x56e68a=0x1,_0x1c0c95=arguments[_0x748c88(0xfc)];_0x56e68a<_0x1c0c95;_0x56e68a++){_0xf0577=arguments[_0x56e68a];for(var _0x42da02 in _0xf0577)Object['prototype'][_0x748c88(0x22a)]['call'](_0xf0577,_0x42da02)&&(_0x4c59d7[_0x42da02]=_0xf0577[_0x42da02]);}return _0x4c59d7;},M[_0x444251(0x2a3)](this,arguments);},wi=function(_0x32f9a5,_0x2c3f73){const _0x3f2504=_0x2094db;var _0x258903={};for(var _0x2e388a in _0x32f9a5)Object[_0x3f2504(0x129)][_0x3f2504(0x22a)][_0x3f2504(0x156)](_0x32f9a5,_0x2e388a)&&_0x2c3f73['indexOf'](_0x2e388a)<0x0&&(_0x258903[_0x2e388a]=_0x32f9a5[_0x2e388a]);if(_0x32f9a5!=null&&typeof Object[_0x3f2504(0x340)]==_0x3f2504(0xb7)){for(var _0x55cb3a=0x0,_0x2e388a=Object[_0x3f2504(0x340)](_0x32f9a5);_0x55cb3a<_0x2e388a['length'];_0x55cb3a++)_0x2c3f73[_0x3f2504(0x30c)](_0x2e388a[_0x55cb3a])<0x0&&Object['prototype'][_0x3f2504(0x39e)]['call'](_0x32f9a5,_0x2e388a[_0x55cb3a])&&(_0x258903[_0x2e388a[_0x55cb3a]]=_0x32f9a5[_0x2e388a[_0x55cb3a]]);}return _0x258903;},Ze=P[_0x2094db(0xec)](function(_0x9a98d9,_0x1a56e4){const _0x1a34e0=_0x2094db;var _0x367e71=_0x9a98d9[_0x1a34e0(0x103)],_0x451b7e=_0x9a98d9['id'],_0x211f45=_0x9a98d9[_0x1a34e0(0x218)],_0x3c2cfe=_0x9a98d9[_0x1a34e0(0x248)],_0x3fdeb2=wi(_0x9a98d9,[_0x1a34e0(0x103),'id',_0x1a34e0(0x218),'extend']),_0x421be2=_0x1a34e0(0x3b1)[_0x1a34e0(0x98)](_0x451b7e,'\x20')[_0x1a34e0(0x98)](_0x211f45||'')[_0x1a34e0(0x12a)](),_0x4b322b=P[_0x1a34e0(0x37f)]('_'[_0x1a34e0(0x98)](Ai()));return Mt(_0x367e71,''[_0x1a34e0(0x98)](_0x451b7e),{'defIds':_0x367e71[_0x1a34e0(0x3d7)],'idSuffix':_0x4b322b['current']},M({'ref':_0x1a56e4,'className':_0x421be2},_0x3fdeb2),_0x3c2cfe);});function Mt(_0x3e6a3d,_0x247ed6,_0x18c279,_0xdbd6a8,_0x5c1f9a){const _0x2652db=_0x2094db;return P[_0x2652db(0x2fd)](_0x3e6a3d[_0x2652db(0x117)],M(M({'key':_0x247ed6},Ni(_0x3e6a3d,_0x18c279,_0x5c1f9a)),_0xdbd6a8),(Mi(_0x3e6a3d,_0x18c279)[_0x2652db(0x213)]||[])[_0x2652db(0x418)](function(_0x3db496,_0x5465ee){const _0x517eab=_0x2652db;return Mt(_0x3db496,''[_0x517eab(0x98)](_0x247ed6,'-')[_0x517eab(0x98)](_0x3e6a3d[_0x517eab(0x117)],'-')[_0x517eab(0x98)](_0x5465ee),_0x18c279,void 0x0,_0x5c1f9a);}));}function Ni(_0x392f43,_0x441f65,_0x19f828){const _0xdbcf42=_0x2094db;var _0x46649f=M({},_0x392f43[_0xdbcf42(0x12c)]);_0x19f828!=null&&_0x19f828['colorChannel1']&&_0x46649f[_0xdbcf42(0x278)]==='colorChannel1'&&(_0x46649f[_0xdbcf42(0x278)]=_0x19f828[_0xdbcf42(0x484)]);var _0x1a3971=_0x441f65['defIds'];return!_0x1a3971||_0x1a3971[_0xdbcf42(0xfc)]===0x0||(_0x392f43[_0xdbcf42(0x117)]===_0xdbcf42(0x1e0)&&_0x46649f[_0xdbcf42(0x37a)]&&(_0x46649f['xlink:href']=_0x46649f[_0xdbcf42(0x37a)]+_0x441f65['idSuffix']),Object[_0xdbcf42(0x202)](_0x46649f)['forEach'](function(_0x316b3b){const _0x1b1d6c=_0xdbcf42;var _0x3c1896=_0x316b3b[0x0],_0x4b61c8=_0x316b3b[0x1];typeof _0x4b61c8==_0x1b1d6c(0x9a)&&(_0x46649f[_0x3c1896]=_0x4b61c8['replace'](/url\(#(.*)\)/,_0x1b1d6c(0x114)[_0x1b1d6c(0x98)](_0x441f65[_0x1b1d6c(0x385)],')')));})),_0x46649f;}function Mi(_0x353298,_0x2edd94){const _0x59c13a=_0x2094db;var _0x2ead6b,_0xd2145b=_0x2edd94[_0x59c13a(0x3d7)];return!_0xd2145b||_0xd2145b[_0x59c13a(0xfc)]===0x0?_0x353298:_0x353298['tag']===_0x59c13a(0x300)&&(!((_0x2ead6b=_0x353298[_0x59c13a(0x213)])===null||_0x2ead6b===void 0x0)&&_0x2ead6b[_0x59c13a(0xfc)])?M(M({},_0x353298),{'children':_0x353298[_0x59c13a(0x213)]['map'](function(_0x3204a0){const _0x328804=_0x59c13a;return typeof _0x3204a0[_0x328804(0x12c)]['id']==_0x328804(0x9a)&&_0xd2145b&&_0xd2145b['indexOf'](_0x3204a0[_0x328804(0x12c)]['id'])>-0x1?M(M({},_0x3204a0),{'attrs':M(M({},_0x3204a0['attrs']),{'id':_0x3204a0[_0x328804(0x12c)]['id']+_0x2edd94[_0x328804(0x385)]})}):_0x3204a0;})}):_0x353298;}function Ai(){const _0x329e48=_0x2094db;return Math[_0x329e48(0x1d1)]()[_0x329e48(0x362)](0x24)[_0x329e48(0x45e)](0x2,0x8);}Ze[_0x2094db(0x8f)]=_0x2094db(0x155);var Li={'tag':_0x2094db(0x102),'attrs':{'fill':_0x2094db(0x2b0),'viewBox':_0x2094db(0xd3),'width':_0x2094db(0x2fa),'height':_0x2094db(0x2fa)},'children':[{'tag':'g','attrs':{'clipPath':_0x2094db(0x487)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x2094db(0x328),'strokeLinecap':_0x2094db(0x241),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2094db(0x300),'attrs':{},'children':[{'tag':_0x2094db(0x1cf),'attrs':{'id':_0x2094db(0x188)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},At=P[_0x2094db(0xec)](function(_0x44c489,_0x3e91ee){const _0x5cd4ea=_0x2094db;return P[_0x5cd4ea(0x2fd)](Ze,Object[_0x5cd4ea(0x3fe)]({},_0x44c489,{'id':_0x5cd4ea(0x170),'ref':_0x3e91ee,'icon':Li}));});function _0x390c(){const _0xd34c5d=['LocalCacheService','&assign=','\x20-\x20','isTransformMutationFailure','c1Prime','CONNECTOR_DATA_TOO_LARGE','_injector','ColorKit','RemoveRowCommandId','32609152mACjac','VIEWPORT_KEY','COMPLETION_FINISHED','_applyRemoteChangeset','allowed','[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.','_scheduleHeartbeat','UNIVER_DOC','joinEvent','_registerRenderDependencies','189436FPnFRg','delay','onTransformChange$','@univerjs/rpc','defIds','_retryCount','COLLAB_WEB_SOCKET_URL','RECV','_name','location','addObjects','json','_pendingMutations','InsertRangeMoveDownCommandId','ReplaySubject','collabStatus.syncing','event$','RemoveColCommandId','_httpService','_id','_roomMembers$','UNKNOWN_CODE','_disableEditing','SheetsSelectionsService','DocCollaborationEntity','_collaborationPaused','_snapshotServerService','_HTTPService','unsubscribe','createCollaborator','append','saveSheetBlock','UniverCollaborationPlugin','SheetCollabCursorShape','_clearHeartbeatTimer','ALREADY_EXISTS','_localeService','@univerjs/sheets','_saveCache','NOT_FOUND','_init','onRemoteChangeset','CHANGESET_SHOULD_RETRY','assign','_cursor','_transformRemoteChangesetByIMECache','/object/','_colorIndex','resize','compose','_unlockTransition','sheets','incrementRevOfUnit','get','WebSocketService','LICENSE_DISTRO_REJECTED','uploadFileServerUrl','onCommentUpdate','_getUploadFileURL','_transformUndoRedoStack','_draw','saveOfflineData','hidden','_getRedoStack','_removeCollabCursors','merge','_showConflictNotification','asObservable','LIVESHARE_TERMINATE','map','_schedule','_updateSubUnitFromURLParams','getVpScrollXYInfoByPosToVp','conflict','Warning','includes','getFocusedUnit','some','toggleOnline','DataLoaderController','_initMergeInterceptor','_incrementRevisionNumber','_updateLocalCursor','_localStorageService','_timeoutTimer','FAIL','_awaitingChangeset','title','conflict.content','unshift','_getSnapshotAPIPrefix','ENSURE_SNAPSHOT_EXECUTION','IUniverInstanceService','type','image/jpeg','_unitStatus','INVALID_ARGUMENT','LIVESHARE_FETCH_OPERATIONS','status$','close$','_onRemoteChangeset','_permissionService','_retryConnectingTimer','IURLService','docStateChange$','MSG_FOR_ERROR','setUndoRedoMutationParamsCache','debug','session.connection-failed','_telemetryInfo','DeleteRangeMoveUpCommandId','collabStatus.synced','_cursorInfo$','Undefined','awaiting','unit-cache-','_toggleOnline','every','/object','parseProtocolChangeset','subunit','_initResize','action','/rev/','forEach','UNAUTHENTICATED','isInternalEditorID','on-line-single_clip0_910_349','override','_drawTextRange','getImageSourceCache','complete','InsertColCommandId','OFFLINE','/-/object/list','_listenToOfflineEvent','disposeWithMe','UniverCollaborationClientPlugin','OffLineSingle','substring','_univerInstanceService','routeKey','IMessageService','transformRemoteChangeset','CollaborationEntity','ImageIoService','IUndoRedoService','_onLocalMutation','getUnitStatus$','getOwnPropertyDescriptor','getColor','getRandomValues','top','_collaborationSessionService','Disposable','_getAPIPrefixPath','roomMembers$','[CollaborationSessionService]:\x20socket\x20error','popstate','csShouldRetryEvent','deserializeToCombResponse','/block/','connection\x20error','putCollaborators','_uiPartsService','_transformPreviousActiveRange','DocSkeletonManagerService','pushState','parse','_handler','createInstance','CONFLICT','_sessions','setItem','_configService','_throwTelemetryCollaborationNewChangeset','LIVESHARE_REQUEST_HOST','colorChannel1','requestParams','collabCursorState$','url(#off-line-single_clip0_910_343)','CompressMutationService','_onCursorDelete','_renderManagerService','LOGIN_URL_KEY','DEFAULT_FILE_NAME','createIdentifier','onlineStatusIcon','setShapeProps','refreshPermission','DocIMEInputManagerService','onRemoteRej','_scene','mapTo','userID','ONLINE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_cursors','loadDoc','history','_decreaseWaiting','_anchorDot','TEXT_RANGE_LAYER_INDEX','triggerDblclick','replace','origin','randomUUID','backgroundColor','deleteCollaborator','BuiltInUIPart','enableAuthServer','permission.content','toDisposable','values','_lastPointer','_handleEvent','_candidateSocket','makeDirty','_scheduleTimestamp','univer-offline','getResourcesRequest','activeSheet$','startsWith','RefRangeService','_removeClearOtherTimer','sendChangesetTimeout','translate(.97)','c2Prime','close','collaboration-client.config','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','displayName','COLORS','HTTPRequest','changesets','eventID','_docStateChangeManagerService','add','socket\x20close','loadSheet','concat','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','string','handleInsertRow','synced','resend','getCollabEntity','_collaborationTimeoutTimer','getUnitType','PERMISSION_REJ','_sender','EffectRefRangId','transformUndoRedo','UNIVER_UNKNOWN','_collabCursorState$','Inject','3lgKzKx','getParam','originalMeta','getSheetBySheetId','_selfUnitIDs','LocalUndoRedoService','FETCH_MISSING','_startDocCollabCursor','_changesetSessionId','BASE64','sessionStatus$','create','code','arc','_getSheetObject','function','fetchMissingChangesets','AWAITING_WITH_PENDING','_commandService','YUUMI_UNABLE_LOAD_URL','_disabled','_initCloseConn','drawWith','_getAPIPrefix','enableSingleActiveInstanceLock','image/jpg','_onFetchMissResult','CHANGESET_REJ','fromEvent','PSEUDO_FETCH_MISSING_RESULT','registerRenderModule','Subject','m1Prime','unitId','transformMutation','APPLY_PERMISSION_DENIED','change$','NO_OTHER_CLIENTS_EDITING','textRanges','_onJoinRoomEvent','getMember','[PendingState]:\x20received\x20acknowledgement.','text','0\x200\x2016\x2016','8549023NOAuBW','POST','AuthzIoHttpService','_updateURLWithCurrentState','CollaborationSocketService','DependentOn','collab-text-range-','AUTHZ_URL_KEY','updateCursorEvent','_updateState','currentTheme$','_handleHover','_logService','range','distinctUntilChanged','_hovered','syncEditingCollabCursor','onMissedChangesetFetched','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','UNIVER_SLIDE','setWaitCount','collab-rect-range-','_hover','getCollabCursors$','forwardRef','auth.needGotoLoginAlert','onload','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_type','capture','_loadDoc','bottom','_exhaustRemoteChangesetQueue','_hideTimer','replaceState','startColumn','_saveTaskMap','_resendTimer','UNIVER_COLLABORATION_CLIENT_PLUGIN','toRgbString','length','unitId\x20is\x20not\x20found','onPointerEnter$','getCurrentRevOfUnit','SnapshotServerOverHTTPService','getTime','svg','icon','find','_clearUndo','LIVESHARE_OPERATION','actions','lineTo','_beforeCloseService','APPLY_REJECT','PERMISSION_DENIED','init','Workbook','DocStateChangeManagerService','then','getUniverSheetInstance','_stopTelemetryCollaborationNewChangeset','_memberService','params','url(#$1','update','snapshot','tag','all','reconnect','_http','getMergeData','WorkbookEditablePermission','_initCommandExecutedListener','black','whenReady','withCredentials','rev','OnLineSingle','IHTTPImplementation','headers','UnitSnapshot','_rescheduleHeartbeat','SetDocZoomRatioOperation','APPLY_NON_SEQUENTIAL_REVISION','prototype','trim','ITransformService','attrs','ThresholdInterceptorFactory','_online','confirm','DocSelectionManagerService','_changesetReqId','@univerjs/network','_drawAnchor','4167396Mzuapu','_context','getTypeOfUnitAdded$','_unitID','_docSkeleton','file','_heartbeatTimer','_initUnitPermissionChange','updateOfflineData','COLLAB_WEB_SOCKET_URL_KEY','RxDisposable','univer-online','setTimeout','getSheetBlock','rxjs/operators','_socketService','/-/object/-/batch_allowed','_collabSessionService','measureText','_executeRemoteChangeset','_createInitialStateImpl','font','NOT_COLLAB','UniverInstanceType','Rect','getUnitId','unknown','MoveRangeCommandId','_listenToOnlineEvent','JOIN','getDocRanges','HttpImport','unit','UniverIcon','call','startRow','error','APPLY_REVISION_CONFILICT','_docTransformIMECacheService','@univerjs-pro/license','editingUnit','getUnit','newValue','split','_joinRoom','getRangePointData','doc.mutation.rich-text-editing','SEND_CHANGESET_TIMEOUT','isPermissionRej','fillText','_onMessage','/unit/','post','HEARTBEAT_INTERVAL','_getSaveTimeout','[CollaborationUndoRedoService]','_scheduleCollaborationTimeoutTimer','registerRefRange','_collaborationController','_getCurrentRevision','off-line-single','_singleActiveUnitService','_updateLocalCache','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','pluginName','[OfflineState]:\x20received\x20acknowledgement.','univer-online-status','univer-online-status-title','UPDATE_PERMISSION_OBJ','b64DecodeUnicode','CommandType','/new_changes','_waitCount','_eventUnsubscribe','APPLY_DUPLICATED','SEND_CHANGESET_TIMEOUT_KEY','red300','_docSkeletonManagerService','selections','_event$','sequenceExecute','getTypeOfUnitDisposed$','_state','IRemoteInstanceService','off-line-single_clip0_910_343','take','_initModules','Shape','transformMutationsWithChangeset','onlineStatusTitle','_session','cmd','InsertRowCommandId','_getMergeRange','_handleJoinEvent','CHANGESET_ACK','_shouldReportTelemetry','_startTelemetryCollaborationNewChangeset','SetSelectionsOperation','collabSubmitChangesetUrl','unitID','textEncoder','session.room-full','_getSignURL','defineProperty','serializeCombRequest','LICENSE_IMPORT_SIZE_EXCEEDED','collabStatus.notCollab','HTTPService','key','combineLatest','_sheetTransformSelectionsService','_cursorShapes','/collaborator','#fff','memberID','signUrlServerUrl','IImageIoService','INotificationService','parseChangesetToProtocol','onMissingChangesets','ERROR_IMAGE','_updateStatus','_acknowledgedAwaitingChangeset','createSocket','collaborators','getDeserializedSheetBlock','onRemoteRetry','body','getCurrent','ILocalStorageService','_clearOtherTimers','_document','_startCollaboration','image/gif','blue400','_socketReady','0\x200\x2017\x2016','@univerjs/docs','pauseCollaboration','USERS_LEAVE','transformSelections','isTransformMutationsWithChangesetFailure','slice','@univerjs/engine-render','appendMutation','symbol','collabStatus.fetchMiss','patch','_sessionStatus$','findNodePositionByCharIndex','INGEST','_commentService','setInterval','_entities','clipPath','isEditing','random','state','_createHandler','awaiting_with_pending','path','_getUndoStack','OTHER_CLIENTS_EDITING','filter','_status$','_imageSourceCache','setAlpha','_undoRedoService','@univerjs/ui','_substituteUndoStack','session','use','catch','CollaborationEvent','now','save\x20fail\x20reason\x20is\x20','onSendChangeset','_getLoginPath','@univerjs/docs-ui','toggleOffline','switchMap','_onUserLeave','TOO_MANY_REQUESTS','href','getValue','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','IConfigService','\x0aCurrent:\x20','takeUntil','permission.title','_handleHeartbeatEvent','[UniverCollaborationClientPlugin]','duration','_initEventListeners','_textBubble','LocaleService','@univerjs/telemetry','_submitChangeset','with','_tryEnsureSocket','cursorInfo$','column','_notificationService','LICENSE_MAX_UNITS_EXCEEDED','DesktopCollaborationStatusDisplayController','entries','_substituteRedoStack','onTransformSelections','onTransformIME','executeCommand','getCellPositionByOffset','FileId','resolve','closePath','Error','_onOffline','SheetPermissionInitController','_sheetSkeletonManagerService','_handleLeaveEvent','onStateChange','addObject','data','children','ISnapshotServerService','div','COLLAB_SUBMIT_CHANGESET_URL_KEY','_onRemoteRetry','className','_resendTimeout','offline','CollaborationSessionService','members','fillStyle','removeMember','_cachedData','fetching\x20missing\x20changesets\x20from\x20','roomMembers','_sendHeartbeat','mergeOverrideWithDependencies','color','_sendHeartbeatTimer','sid','_fetchMissChangesets','put','_docTransformSelectionsService','hasOwnProperty','saveSnapshot','univer-pro.collaboration-client-socket-service','HELLO','objectID','_removeRoom','getUndoRedoMutationParamsCache','saveImage','/resources','_undoStacks','sheetId','_transitionLocked','roomInfos','max','revision','updatePermissionPoint','isArray','liveShareNewHost','collabWebSocketUrl','_refreshCollabCursors','isTransformChangesetsSuccess','JOINING','_onRemoteRejected','round','handleInsertRangeMoveDown','6858955euZepA','_replaceFileID','[FetchMissState]','WebURLService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','extend','SnapshotService','YUUMI_URL_COL_OUT_OF_RANGE','getConfig','searchParams','has','purple300','CollaborationController','UNRECOGNIZED','_colorAssignService','socket$','subscribe','ILogService','_onRemoteACK','url','#FFF','onCommandExecuted','closeSession','toLowerCase','_labelPosition','Optional','collab-client.tooltip.reconnect','_urlService','url(#on-line-single_clip0_910_349)','HttpExport','_clearTimeoutTimer','reject','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNIVER_SHEET','registerHTTPInterceptor','_getAnchorBounding','telemetry\x20info\x20is\x20not\x20initialized','toStringTag','x-univer-host','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getCurrentUser','rng','IBeforeCloseService','set','[DataLoaderController]','setCurrentUser','dispose$','target','getAttachHeader','_tryReconnect','m2Prime','_replayCachedMutations','loginUrlKey','fill','_getDownloadEndpointURL','SetWorksheetActivateCommand','Unknown\x20user','getWorkbookSelections','InsertSheetMutation','addImageSourceCache','_anchor','_entityInit$','getUnhiddenWorksheets','serializeRangeWithSheet','_scheduleClearOtherTimer','objectType','INTERNAL_ERROR','initWorkbookPermissionChange','RETRY_CONNECTING_MAX_COUNT_KEY','transformIMECache','evenodd','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','Tools','objectActions','UNDEFINED','_initStatusComponent','_transformUndoredo','send','_color','univer-pro.collaboration-client.single-active-unit-service','encodeURIComponent','UnitEmbedded','getViewport','show','labelPosition','stopTime','_socket','objects','_initRequestHeader','onlyLocal','IPermissionService','clear','getCoordByCell','unload','onRemoteAck','replaceTextRanges','apply','object','currentSkeleton$','on-line-single','uni.network.url-service','_members','save','ThemeService','ImageSourceType','error$','_unitOnClients','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_revisionService','none','_config','getAncestorScale','socketService','isActive','...','reverse','addEventListener','UserManagerService','collaboration_new_changeset','getMemberID','number','YUUMI_RATE_OVER_LIMIT','_localCacheService','pipe','socket\x20open.','SYNCED','_getSendChangesetTimeout','onStarting','getSheetObject','enableOfflineEditing','urlChange$','_setupBeforeClosingHandler','restore','ranges','_shapes','LOCAL_CACHE_INTERVAL','SetTextSelectionsOperation','_state$','getCurrentSelections','LOCAL_CACHE_INTERVAL_KEY','mutations','&to=','_transformStack','handleDeleteRangeMoveLeft','_themeService','clearTimeout','_messageService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_onUserJoin','from','IRenderManagerService','167385mQJqrC','listRoles','encode','_toggleOffline','_waitForHeartbeatResponse','collaboration-client.offline-data-not-saved','status','getActiveSheet','HEARTBEAT_INTERVAL_KEY','COMMENT_UPDATE','transformChangesets','/universer-api/file/{fileID}/sign-url','IAuthzIoService','SUCCUSS','RevisionService','hide','_onConnectionFailed','_docSyncEditingCollabCursorService','fetchThroughInterceptors','ERROR_IMAGE_TYPE','resourceIDs','RegularPolygon','disposeUnit','isTransformMutationsWithChangesetSuccess','runRefRangeMutations','height','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HEARTBEAT','_onCursorUpdate','_transformSelections','_checkMissing','[SyncedState]:\x20received\x20acknowledgement.','1em','UUID','getUnitOnRev','createElement','RichTextEditingMutation','COMPRESS_MUTATION_APPLY','defs','getItem','exhaustSavingTask','onSyncEditingCollabCursor','handleMoveRange','UNKNOWN_CMD','_createSocket','getSkeleton','[CollaborationSession]','_backgroundColor','_render','collaboratorID','indexOf','_assignedColors','_getScale','HEARTBEAT_TIMEOUT','_resendWithTimeout','disableLocalCache','HEARTBEAT_TIMEOUT_KEY','open$','_syncEditingCollabCursorService','_clearScheduledTask','getLatestCsReqIdBySid','_remoteChangesetQueue','subUnitId','list','MUTATION','\x0aAfter:\x20','src','fromEventSubject','BehaviorSubject','next','_onRefRangeChange','conflict.title','_lockTransition','DisposableCollection','saveChangeset','_snapshotService','permissionRejEvent','workbook','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','univer-online-status-icon','XHRHTTPImplementation','5706498YgVMew','UPDATE_CURSOR','message$','onMouseMove','_compressMutationService','delete','_roomMembers','_registerDependencies','collaboration.closeRoom','ICollaborationSocketService','commentUpdate$','csRejEvent','_socket$','interceptor','getCurrentUnitForType','handleInsertCol','USERS_ENTER','getInterceptPoints','awaitingChangeset','_refRangeService','ImageUploadStatusType','getOwnPropertySymbols','_userManagerService','PENDING','image/png','submit\x20changeset\x20error!','_instanceService','MessageType','_socketMessageSubscription','failed\x20to\x20apply\x20missed\x20changesets!','_createInitialState','_ws','commentUpdateEvent','LICENSE_EXPORT_SIZE_EXCEEDED','loadOfflineData','throttleTime','debounce','LIVESHARE_NEW_HOST','_initStatusListener','_scheduleSaving','online','ACTIVE_UNIT_EVENT_CHANNEL','fillRule','@univerjs/engine-formula','SNAPSHOT_SERVER_URL_KEY','min','debounceTime','[PendingState]:\x20unhandled\x20univer\x20type:\x20','CHANGESET_REVISION_CONFILICT','COMPRESS_MUTATION_SEND','_transformIMECache','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ICommandService','CollaborationStatus','SNAPSHOT_URL_KEY','toString','@univerjs/drawing','InsertRangeMoveRightCommandId','engine','endRow','image/bmp','CollaborationStatusDisplay','size','stringify','_isPermissionRej','deepClone','subscribeEvent','fromCollab','getOffsetConfig','VIEW_MAIN','focused$','SessionStatus','LEAVE','NodePositionConvertToRectRange','rgba(255,\x20255,\x20255,\x200.01)','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','Error\x20on\x20receiving\x20event','equals','result','xlink:href','width','_range','contains','endColumn','useRef','onTransformRemoteChangesetByIMECache','_onRecvEvent','handleDeleteRangeMoveUp','_change$','_onCombEvent','idSuffix','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','dispose','updatePermissionObjEvent','_commentUpdate$','[CollaborationEntity]','bind','AWAITING','[OfflineState]:\x20received\x20changeset.','skeleton','_onConflict','transformByState','SNAPSHOT_INVALID_SNAPSHOT','SNAPSHOT_HAS_BEEN_REMOVED','Injector','localeService','/universer-api/snapshot','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','[CollaborationSessionService]','snapshotServerUrl','getSheetId','FETCH_MISS','[OfflineState]:\x20received\x20rejection.','collaboration-session-retry','updateMember','propertyIsEnumerable','_send','CollaborationSession','Tooltip','_onConnectionOpen','reqId','fetch_missing','selection','_telemetryService','_drawRectRange','?url=','baseRev','EmptyMutation','touchDependencies','generateRandomId','requireSession','flatMap','_transformService','name','univerjs-icon\x20univerjs-icon-','push','onPointerLeave$','Vector2','IUIPartsService','shareReplay','useDependency','_updateCollabCursors','_sendingTimer','SheetCollaborationEntity','YUUMI_SUBSCRIPTION_NOT_FOUND','clearInterval','sheetID','fetchMiss','cursorInfo'];_0x390c=function(){return _0xd34c5d;};return _0x390c();}At[_0x2094db(0x8f)]=_0x2094db(0x45d);var ji={'tag':_0x2094db(0x102),'attrs':{'fill':'none','viewBox':_0x2094db(0x1bd),'width':_0x2094db(0x2fa),'height':_0x2094db(0x2fa)},'children':[{'tag':'g','attrs':{'clipPath':_0x2094db(0x25f)},'children':[{'tag':_0x2094db(0x1d5),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':_0x2094db(0x241),'strokeLinejoin':_0x2094db(0x241),'strokeWidth':1.2}}]},{'tag':_0x2094db(0x300),'attrs':{},'children':[{'tag':_0x2094db(0x1cf),'attrs':{'id':_0x2094db(0x452)},'children':[{'tag':_0x2094db(0x1d5),'attrs':{'fill':_0x2094db(0x1a6),'d':'M0\x200H16V16H0z','transform':_0x2094db(0x8a)}}]}]}],'defIds':[_0x2094db(0x452)]},Lt=P[_0x2094db(0xec)](function(_0xaa3fd7,_0x269dc7){const _0x2d962d=_0x2094db;return P[_0x2d962d(0x2fd)](Ze,Object[_0x2d962d(0x3fe)]({},_0xaa3fd7,{'id':_0x2d962d(0x2a6),'ref':_0x269dc7,'icon':ji}));});Lt['displayName']=_0x2094db(0x122);function jt(_0x5853d0){const _0x16496e=_0x2094db;var _0x26dd51,_0x12d65a,_0x26cd7d='';if(typeof _0x5853d0=='string'||typeof _0x5853d0==_0x16496e(0x2bb))_0x26cd7d+=_0x5853d0;else{if(typeof _0x5853d0==_0x16496e(0x2a4)){if(Array[_0x16496e(0x23a)](_0x5853d0)){var _0x48bd1d=_0x5853d0[_0x16496e(0xfc)];for(_0x26dd51=0x0;_0x26dd51<_0x48bd1d;_0x26dd51++)_0x5853d0[_0x26dd51]&&(_0x12d65a=jt(_0x5853d0[_0x26dd51]))&&(_0x26cd7d&&(_0x26cd7d+='\x20'),_0x26cd7d+=_0x12d65a);}else{for(_0x12d65a in _0x5853d0)_0x5853d0[_0x12d65a]&&(_0x26cd7d&&(_0x26cd7d+='\x20'),_0x26cd7d+=_0x12d65a);}}}return _0x26cd7d;}function $i(){const _0x4f9e62=_0x2094db;for(var _0x2efe2f,_0x12e731,_0x1d0d11=0x0,_0x1407b6='',_0x5ee5b1=arguments[_0x4f9e62(0xfc)];_0x1d0d11<_0x5ee5b1;_0x1d0d11++)(_0x2efe2f=arguments[_0x1d0d11])&&(_0x12e731=jt(_0x2efe2f))&&(_0x1407b6&&(_0x1407b6+='\x20'),_0x1407b6+=_0x12e731);return _0x1407b6;}const Hi=_0x2094db(0x329),xi=_0x2094db(0x177),ki=_0x2094db(0x176),Bi=_0x2094db(0x13f),Vi=_0x2094db(0x83),he={'onlineStatusIcon':Hi,'onlineStatusTitle':xi,'onlineStatus':ki,'online':Bi,'offline':Vi};function Wi(_0x18c00b){const _0x39607b=_0x2094db;switch(_0x18c00b){case U[_0x39607b(0x458)]:return'collabStatus.offline';case U[_0x39607b(0x47e)]:return'collabStatus.conflict';case U[_0x39607b(0x39a)]:return _0x39607b(0x1c7);case U[_0x39607b(0x14a)]:return _0x39607b(0x19f);case U[_0x39607b(0x38c)]:case U['AWAITING_WITH_PENDING']:return _0x39607b(0x3e2);case U[_0x39607b(0x2c0)]:case U[_0x39607b(0x342)]:return _0x39607b(0x442);}}function $t(_0x132163){const _0x4f44a3=_0x2094db,{status$:_0x2901f6}=_0x132163,_0x39f51e=A['useObservable'](_0x2901f6,U[_0x4f44a3(0x14a)]),_0x4f5ded=a[_0x4f44a3(0x3b7)](a[_0x4f44a3(0x1f8)]),_0x5ab67d=a['useDependency'](exports[_0x4f44a3(0x21b)]),_0x154c70=_0x39f51e!==U[_0x4f44a3(0x458)],_0x204a98=_0x4f5ded['t'](Wi(_0x39f51e)),_0x6c59c8=$i(he['onlineStatus'],{[he['online']]:_0x154c70,[he['offline']]:!_0x154c70}),_0x56acf8=_0x154c70?P[_0x4f44a3(0x2fd)](Lt,null):P[_0x4f44a3(0x2fd)](At,null),_0x24c3c6=P['useCallback'](()=>{const _0x15c850=_0x4f44a3;_0x154c70||_0x5ab67d[_0x15c850(0x119)]();},[_0x154c70,_0x5ab67d]);function _0xc538f2(){const _0x5449b5=_0x4f44a3;return P[_0x5449b5(0x2fd)](_0x5449b5(0x215),{'className':_0x6c59c8,'onClick':_0x24c3c6},P[_0x5449b5(0x2fd)]('div',{'className':he[_0x5449b5(0x48e)]},_0x56acf8),P['createElement']('div',{'className':he[_0x5449b5(0x18d)]},_0x204a98));}return _0x154c70?_0xc538f2():P[_0x4f44a3(0x2fd)](q[_0x4f44a3(0x3a1)],{'title':_0x4f5ded['t'](_0x4f44a3(0x25d))},_0xc538f2());}var Fi=Object[_0x2094db(0x19c)],Gi=Object[_0x2094db(0x468)],Yi=(_0x26fa5b,_0x3d7ed1,_0x4a8737,_0x2974a2)=>{const _0x1c7baf=_0x2094db;for(var _0x12072d=_0x2974a2>0x1?void 0x0:_0x2974a2?Gi(_0x3d7ed1,_0x4a8737):_0x3d7ed1,_0x47e8a5=_0x26fa5b[_0x1c7baf(0xfc)]-0x1,_0x3d05ac;_0x47e8a5>=0x0;_0x47e8a5--)(_0x3d05ac=_0x26fa5b[_0x47e8a5])&&(_0x12072d=(_0x2974a2?_0x3d05ac(_0x3d7ed1,_0x4a8737,_0x12072d):_0x3d05ac(_0x12072d))||_0x12072d);return _0x2974a2&&_0x12072d&&Fi(_0x3d7ed1,_0x4a8737,_0x12072d),_0x12072d;},me=(_0xadd736,_0x12cdc3)=>(_0x25b798,_0x3ed1d9)=>_0x12cdc3(_0x25b798,_0x3ed1d9,_0xadd736);exports[_0x2094db(0x201)]=class extends a[_0x2094db(0x46d)]{constructor(_0x5bb7a9,_0x19b9d5,_0x325e3a,_0x37f94e){const _0x248362=_0x2094db;super(),u(this,'_status$',new v[(_0x248362(0x31e))](U[_0x248362(0x14a)])),(this['_univerInstanceService']=_0x5bb7a9,this[_0x248362(0x477)]=_0x19b9d5,this[_0x248362(0x3c6)]=_0x325e3a,this[_0x248362(0x16e)]=_0x37f94e,this[_0x248362(0x28e)](),this[_0x248362(0x351)]());}[_0x2094db(0x351)](){const _0x4d79d3=_0x2094db;this[_0x4d79d3(0x45b)](this[_0x4d79d3(0x45f)][_0x4d79d3(0x371)][_0x4d79d3(0x2be)](v[_0x4d79d3(0x1e9)](()=>{const _0x360752=_0x4d79d3,_0x63927c=this[_0x360752(0x45f)]['getFocusedUnit']();return _0x63927c?this[_0x360752(0x16e)]['getCollabEntity$'](_0x63927c[_0x360752(0x14d)]()):v['of'](null);}),v['switchMap'](_0x19db5d=>_0x19db5d?_0x19db5d['status$']:v['of'](U['NOT_COLLAB'])))[_0x4d79d3(0x253)](_0x5c5861=>{const _0x5f8bb1=_0x4d79d3;this[_0x5f8bb1(0x1d9)]['next'](_0x5c5861);}));}[_0x2094db(0x28e)](){const _0x3319ce=_0x2094db;this[_0x3319ce(0x45b)](this['_uiPartsService']['registerComponent'](A[_0x3319ce(0x4a4)]['HEADER_MENU'],()=>a['connectInjector'](Ki({'status$':this[_0x3319ce(0x1d9)][_0x3319ce(0x416)]()}),this[_0x3319ce(0x3c6)])));}},exports[_0x2094db(0x201)]=Yi([me(0x0,a[_0x2094db(0x42f)]),me(0x1,A[_0x2094db(0x3b5)]),me(0x2,a['Inject'](a['Injector'])),me(0x3,a[_0x2094db(0xa7)](exports['CollaborationController']))],exports['DesktopCollaborationStatusDisplayController']);function Ki(_0x1dd78c){const {status$:_0x17529b}=_0x1dd78c;return function(){const _0x29533c=_0x57dd;return P[_0x29533c(0x2fd)]($t,{'status$':_0x17529b});};}const Qe=a['createIdentifier'](_0x2094db(0x2a7));var qi=Object[_0x2094db(0x19c)],Xi=Object['getOwnPropertyDescriptor'],zi=(_0x3c37b8,_0x1b9dfa,_0x2ae863,_0x54847f)=>{const _0x5c11c4=_0x2094db;for(var _0x204da6=_0x54847f>0x1?void 0x0:_0x54847f?Xi(_0x1b9dfa,_0x2ae863):_0x1b9dfa,_0xa6ac15=_0x3c37b8[_0x5c11c4(0xfc)]-0x1,_0x404ec4;_0xa6ac15>=0x0;_0xa6ac15--)(_0x404ec4=_0x3c37b8[_0xa6ac15])&&(_0x204da6=(_0x54847f?_0x404ec4(_0x1b9dfa,_0x2ae863,_0x204da6):_0x404ec4(_0x204da6))||_0x204da6);return _0x54847f&&_0x204da6&&qi(_0x1b9dfa,_0x2ae863,_0x204da6),_0x204da6;},ee=(_0x1687e6,_0x4241ff)=>(_0x3fb042,_0x5324e0)=>_0x4241ff(_0x3fb042,_0x5324e0,_0x1687e6);exports[_0x2094db(0x422)]=class extends a[_0x2094db(0x13e)]{constructor(_0x9e0b6b,_0x3a8639,_0x52c2a6,_0x42acb0,_0x259368,_0x114795){const _0x1636f2=_0x2094db;super(),this[_0x1636f2(0x25e)]=_0x9e0b6b,this['_logService']=_0x3a8639,this[_0x1636f2(0xba)]=_0x52c2a6,this[_0x1636f2(0x2bd)]=_0x42acb0,this[_0x1636f2(0x325)]=_0x259368,_0x114795?_0x114795==null||_0x114795[_0x1636f2(0x11f)]()[_0x1636f2(0x10f)](()=>this[_0x1636f2(0x3fb)]()):(this[_0x1636f2(0xe0)][_0x1636f2(0x43e)](_0x1636f2(0x26f),_0x1636f2(0xef)),this[_0x1636f2(0x3fb)]());}async[_0x2094db(0x3fb)](){const _0x230cd5=_0x2094db,_0x29e338=this[_0x230cd5(0x25e)][_0x230cd5(0xa9)](_0x230cd5(0x154)),_0x3f8871=this[_0x230cd5(0x25e)][_0x230cd5(0xa9)](_0x230cd5(0x430));if(!_0x29e338||!_0x3f8871){this['_logService'][_0x230cd5(0x43e)](_0x230cd5(0x26f),_0x230cd5(0x2f4));return;}switch(Number(_0x3f8871)){case $['UNIVER_SHEET']:{const _0x3fdc43=await this['_loadSheet'](_0x29e338);this['_setupSubUnitSync'](_0x3fdc43);break;}case $[_0x230cd5(0x3d0)]:{await this[_0x230cd5(0xf2)](_0x29e338);break;}default:{this[_0x230cd5(0xe0)][_0x230cd5(0x158)](_0x230cd5(0x26f),_0x230cd5(0x247));break;}}}async['_setupSubUnitSync'](_0x3c608c){const _0x1015cc=_0x2094db;await this[_0x1015cc(0x41a)](_0x3c608c),_0x3c608c[_0x1015cc(0x85)][_0x1015cc(0x2be)](v[_0x1015cc(0x1f1)](this['dispose$']))[_0x1015cc(0x253)](_0x492fe0=>{const _0x200d7c=_0x1015cc;_0x492fe0&&this[_0x200d7c(0xd7)](_0x492fe0);}),this[_0x1015cc(0x25e)][_0x1015cc(0x2c5)][_0x1015cc(0x2be)](v[_0x1015cc(0x1f1)](this[_0x1015cc(0x271)]))[_0x1015cc(0x253)](()=>this['_updateSubUnitFromURLParams'](_0x3c608c));}[_0x2094db(0xd7)](_0xa047c7,_0xb3111=!0x1){const _0x38210b=_0x2094db,_0x159135=this[_0x38210b(0x25e)][_0x38210b(0xa9)](_0x38210b(0x44b));_0xa047c7[_0x38210b(0x399)]()!==_0x159135&&this[_0x38210b(0x25e)]['setParam'](_0x38210b(0x44b),_0xa047c7['getSheetId'](),_0xb3111);}async['_updateSubUnitFromURLParams'](_0x5c49b8){const _0x2c7119=_0x2094db;var _0x383675;const _0x18b957=this['_urlService'][_0x2c7119(0xa9)](_0x2c7119(0x44b));if(!_0x18b957||!_0x5c49b8['getSheetBySheetId'](_0x18b957)){const _0x43e185=_0x5c49b8[_0x2c7119(0x281)]()[0x0],_0x5978e1=_0x5c49b8[_0x2c7119(0xab)](_0x43e185);if(!_0x5978e1)return;this[_0x2c7119(0xd7)](_0x5978e1,!0x0),await this[_0x2c7119(0xba)][_0x2c7119(0x206)](C[_0x2c7119(0x27a)]['id'],{'unitId':_0x5c49b8[_0x2c7119(0x14d)](),'subUnitId':_0x43e185});return;}((_0x383675=_0x5c49b8[_0x2c7119(0x2e1)]())==null?void 0x0:_0x383675['getSheetId']())!==_0x18b957&&await this[_0x2c7119(0xba)][_0x2c7119(0x206)](C[_0x2c7119(0x27a)]['id'],{'unitId':_0x5c49b8['getUnitId'](),'subUnitId':_0x18b957});}async['_loadSheet'](_0x3adfc7){const _0x3ce99a=_0x2094db;let _0x42effe=0x0;const _0x5a3246=await this[_0x3ce99a(0x2bd)][_0x3ce99a(0x34d)](_0x3adfc7);return _0x5a3246&&(_0x5a3246[_0x3ce99a(0x33d)]||_0x5a3246[_0x3ce99a(0x2cf)]['length']!==0x0)&&(_0x42effe=_0x5a3246[_0x3ce99a(0x121)]),_0x42effe===0x0&&this[_0x3ce99a(0xe0)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3ce99a(0x325)][_0x3ce99a(0x97)](_0x3adfc7,_0x42effe);}async[_0x2094db(0xf2)](_0x12915e){const _0x4aa3c6=_0x2094db;let _0x27ae1a=0x0;const _0x1c2d0a=await this['_localCacheService'][_0x4aa3c6(0x34d)](_0x12915e);return _0x1c2d0a&&(_0x1c2d0a[_0x4aa3c6(0x33d)]||_0x1c2d0a[_0x4aa3c6(0x2cf)][_0x4aa3c6(0xfc)]!==0x0)&&(_0x27ae1a=_0x1c2d0a[_0x4aa3c6(0x121)]),_0x27ae1a===0x0&&this['_logService'][_0x4aa3c6(0x43e)](_0x4aa3c6(0x26f),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x4aa3c6(0x499)](_0x12915e,_0x27ae1a);}},exports[_0x2094db(0x422)]=zi([ee(0x0,Qe),ee(0x1,a[_0x2094db(0x254)]),ee(0x2,a[_0x2094db(0x35f)]),ee(0x3,a[_0x2094db(0xa7)](exports[_0x2094db(0x3c0)])),ee(0x4,a[_0x2094db(0xa7)](_[_0x2094db(0x249)])),ee(0x5,a['Optional'](Xt[_0x2094db(0x187)]))],exports[_0x2094db(0x422)]);var Ji=Object[_0x2094db(0x19c)],Zi=Object[_0x2094db(0x468)],Qi=(_0x132102,_0x16bc58,_0x4f62fd,_0x6cba2e)=>{for(var _0x3dc331=_0x6cba2e>0x1?void 0x0:_0x6cba2e?Zi(_0x16bc58,_0x4f62fd):_0x16bc58,_0x113269=_0x132102['length']-0x1,_0x3afcdf;_0x113269>=0x0;_0x113269--)(_0x3afcdf=_0x132102[_0x113269])&&(_0x3dc331=(_0x6cba2e?_0x3afcdf(_0x16bc58,_0x4f62fd,_0x3dc331):_0x3afcdf(_0x3dc331))||_0x3dc331);return _0x6cba2e&&_0x3dc331&&Ji(_0x16bc58,_0x4f62fd,_0x3dc331),_0x3dc331;},_t=(_0x494623,_0x2b0e52)=>(_0x267fe6,_0x1eb07a)=>_0x2b0e52(_0x267fe6,_0x1eb07a,_0x494623);const en=_0x2094db(0x48c),tn='Univer';let Ce=class extends a['Disposable']{constructor(_0xce2c6d,_0x412011){const _0x5a8f69=_0x2094db;super(),this[_0x5a8f69(0x45f)]=_0xce2c6d,this[_0x5a8f69(0x481)]=_0x412011,this['_init']();}[_0x2094db(0x3fb)](){const _0x176eaf=_0x2094db;this[_0x176eaf(0x45b)](this[_0x176eaf(0x45f)][_0x176eaf(0x371)][_0x176eaf(0x253)](()=>{const _0x1ed32a=_0x176eaf;var _0x4ec1d4;const _0x496b83=this[_0x1ed32a(0x45f)][_0x1ed32a(0x41f)]();let _0x1a28b8=(_0x4ec1d4=this[_0x1ed32a(0x481)]['getConfig'](en))!=null?_0x4ec1d4:tn;_0x496b83 instanceof a[_0x1ed32a(0x10d)]&&(_0x1a28b8=_0x496b83[_0x1ed32a(0x3b0)]),document[_0x1ed32a(0x42a)]=_0x1a28b8;}));}};Ce=Qi([_t(0x0,a['IUniverInstanceService']),_t(0x1,a[_0x2094db(0x1ef)])],Ce);var sn=Object[_0x2094db(0x19c)],nn=Object['getOwnPropertyDescriptor'],rn=(_0x323d02,_0x2b877c,_0x195649,_0x19e57e)=>{for(var _0x231bf3=_0x19e57e>0x1?void 0x0:_0x19e57e?nn(_0x2b877c,_0x195649):_0x2b877c,_0x4f8a0b=_0x323d02['length']-0x1,_0x188c77;_0x4f8a0b>=0x0;_0x4f8a0b--)(_0x188c77=_0x323d02[_0x4f8a0b])&&(_0x231bf3=(_0x19e57e?_0x188c77(_0x2b877c,_0x195649,_0x231bf3):_0x188c77(_0x231bf3))||_0x231bf3);return _0x19e57e&&_0x231bf3&&sn(_0x2b877c,_0x195649,_0x231bf3),_0x231bf3;},He=(_0x13e6f2,_0x3739b8)=>(_0x189b99,_0x51a71e)=>_0x3739b8(_0x189b99,_0x51a71e,_0x13e6f2);let Ee=class{constructor(_0x513bde,_0x5a17c8,_0x38b678){const _0x1e5dd2=_0x2094db;this[_0x1e5dd2(0x481)]=_0x513bde,this[_0x1e5dd2(0x3e5)]=_0x5a17c8,this[_0x1e5dd2(0x394)]=_0x38b678,this[_0x1e5dd2(0x10c)]();}['init'](){const _0x328a18=_0x2094db;this[_0x328a18(0x3e5)][_0x328a18(0x265)]({'priority':0x1,'interceptor':(_0x4d72ff,_0x408f4e)=>_0x408f4e(_0x4d72ff)[_0x328a18(0x2be)](v['concatMap'](async _0x44ee7d=>{const _0x1e27e0=_0x328a18,_0x51da95=_0x44ee7d;if(_0x51da95['status']===0x191&&window[_0x1e27e0(0x12f)](this['localeService']['t'](_0x1e27e0(0xed)))){const _0x4397b7=window[_0x1e27e0(0x293)](window['location'][_0x1e27e0(0x1ec)]);window['location'][_0x1e27e0(0x1ec)]=this[_0x1e27e0(0x1e6)]()+_0x1e27e0(0x3a8)+_0x4397b7;}return _0x51da95;}))});}[_0x2094db(0x1e6)](){const _0xb92b84=_0x2094db;var _0x539da5,_0x94f20d;const _0x13dd94=this['_configService']['getConfig'](Et),_0x47ef8b=this[_0xb92b84(0x481)]['getConfig'](L);return(_0x94f20d=(_0x539da5=_0x47ef8b==null?void 0x0:_0x47ef8b[_0xb92b84(0x277)])!=null?_0x539da5:_0x13dd94)!=null?_0x94f20d:os;}};Ee=rn([He(0x0,a[_0x2094db(0x1ef)]),He(0x1,a['Inject'](w[_0x2094db(0x1a0)])),He(0x2,a[_0x2094db(0xa7)](a['LocaleService']))],Ee);var on=Object['defineProperty'],an=Object[_0x2094db(0x468)],cn=(_0x1637d8,_0x100678,_0x5a03b8,_0x265a20)=>{const _0x3b94eb=_0x2094db;for(var _0x4801f8=_0x265a20>0x1?void 0x0:_0x265a20?an(_0x100678,_0x5a03b8):_0x100678,_0x53bf14=_0x1637d8[_0x3b94eb(0xfc)]-0x1,_0x340343;_0x53bf14>=0x0;_0x53bf14--)(_0x340343=_0x1637d8[_0x53bf14])&&(_0x4801f8=(_0x265a20?_0x340343(_0x100678,_0x5a03b8,_0x4801f8):_0x340343(_0x4801f8))||_0x4801f8);return _0x265a20&&_0x4801f8&&on(_0x100678,_0x5a03b8,_0x4801f8),_0x4801f8;},ut=(_0x1e89cd,_0x101375)=>(_0x210574,_0x116177)=>_0x101375(_0x210574,_0x116177,_0x1e89cd);const Ht='AUTHZ_URL_KEY',ln='/universer-api/authz';exports[_0x2094db(0xd6)]=class extends a[_0x2094db(0x46d)]{constructor(_0x375fce,_0x58ab55){const _0x2da896=_0x2094db;super(),this[_0x2da896(0x3ee)]=_0x375fce,this[_0x2da896(0x481)]=_0x58ab55,this['_initMergeInterceptor']();}[_0x2094db(0x423)](){const _0x2931b9=_0x2094db,_0x5edeed=this;this['disposeWithMe'](this[_0x2931b9(0x3ee)][_0x2931b9(0x265)]({'priority':0x3e7,'interceptor':w['MergeInterceptorFactory']({'isMatch'(_0x332e43){const _0x4b39de=_0x2931b9;var _0x1d7765;if(_0x332e43['method']===_0x4b39de(0xd5)&&((_0x1d7765=_0x332e43[_0x4b39de(0x485)])!=null&&_0x1d7765[_0x4b39de(0x1b4)])){const {objectID:_0xbb93d,objectType:_0x4069a2}=_0x332e43['requestParams'][_0x4b39de(0x1b4)]||{};if(!_0xbb93d||_0x4069a2===void 0x0)return!0x1;const _0x442a0f=_0x5edeed['_getAPIPrefixPath']()+'/'+_0x4069a2+_0x4b39de(0x401)+_0xbb93d+'/allowed';if(_0x332e43[_0x4b39de(0x256)]===_0x442a0f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x18e56e){const _0xf1d6b9=_0x2931b9;var _0x22742b;return(_0x22742b=_0x18e56e[_0xf1d6b9(0x485)])==null?void 0x0:_0x22742b['body'];},'mergeParamsToRequest'(_0x25d86a,_0x11f394){const _0x5eb888=_0x2931b9,_0x116ae4=_0x5edeed[_0x5eb888(0x46e)]()+'/-/object/-/batch_allowed',_0x1390d7=_0x25d86a['reduce']((_0x65dd5e,_0xf4ebbb)=>{const _0xc420aa=_0x5eb888,{unitID:_0x17bcce,objectID:_0x55f2dd,objectType:_0x2d2600,actions:_0xcb26}=_0xf4ebbb;return _0x65dd5e[_0x17bcce]||(_0x65dd5e[_0x17bcce]={}),_0x65dd5e[_0x17bcce][_0x55f2dd]||(_0x65dd5e[_0x17bcce][_0x55f2dd]={'objectID':_0x55f2dd,'objectType':_0x2d2600,'actions':[]}),_0x65dd5e[_0x17bcce][_0x55f2dd][_0xc420aa(0x107)][_0xc420aa(0x3b2)](..._0xcb26),_0x65dd5e;},{}),_0xb6048a=[];for(const _0x414bbb in _0x1390d7)for(const _0x712d57 in _0x1390d7[_0x414bbb]){const {actions:_0x597775,objectType:_0x25e2e3}=_0x1390d7[_0x414bbb][_0x712d57],_0x32a309=[...new Set(_0x597775)];_0xb6048a[_0x5eb888(0x3b2)]({'unitID':_0x414bbb,'objectID':_0x712d57,'objectType':_0x25e2e3,'actions':_0x32a309});}return new w[(_0x5eb888(0x91))](_0x5eb888(0xd5),_0x116ae4,{'headers':_0x11f394[_0x5eb888(0x124)],'withCredentials':_0x11f394[_0x5eb888(0x120)],'responseType':_0x11f394['responseType'],'body':{'requests':_0xb6048a}});}},{'distributeResult'(_0x360bcf,_0x4db020){const _0x46f042=_0x2931b9,{objectActions:_0x2b72ca}=_0x360bcf;return _0x4db020[_0x46f042(0x418)](_0x48c20a=>{const _0xf74d16=_0x46f042,{unitID:_0x433ee4,objectID:_0x31f23d,actions:_0x4bb888}=_0x48c20a,_0x40eb7d=_0x2b72ca['find'](_0x1b73a3=>_0x1b73a3[_0xf74d16(0x198)]===_0x433ee4&&_0x1b73a3[_0xf74d16(0x22e)]===_0x31f23d),_0x2e0177=_0x4bb888[_0xf74d16(0x418)](_0xae7344=>_0x40eb7d==null?void 0x0:_0x40eb7d[_0xf74d16(0x107)][_0xf74d16(0x104)](_0x2fa4e4=>_0x2fa4e4[_0xf74d16(0x44d)]===_0xae7344))[_0xf74d16(0x1d8)](_0x2a07bc=>!!_0x2a07bc);return{'config':_0x48c20a,'result':{'actions':_0x2e0177,'error':_0x360bcf[_0xf74d16(0x158)]}};});}})}));}[_0x2094db(0x46e)](){const _0xb6ab3=_0x2094db;var _0x510c13,_0x3e8a3c;const _0x384f63=this['_configService'][_0xb6ab3(0x24b)](Ht),_0x1b7e3d=this['_configService'][_0xb6ab3(0x24b)](L);return(_0x3e8a3c=(_0x510c13=_0x1b7e3d==null?void 0x0:_0x1b7e3d['authzUrl'])!=null?_0x510c13:_0x384f63)!=null?_0x3e8a3c:ln;}async[_0x2094db(0xb3)](_0xc78a77){const _0x457977=_0x2094db,_0x1b3949=this[_0x457977(0x46e)]()+'/'+_0xc78a77[_0x457977(0x284)]+_0x457977(0x449);return(await this[_0x457977(0x3ee)]['post'](_0x1b3949,{'body':_0xc78a77}))['body'][_0x457977(0x22e)]||'';}async[_0x2094db(0x319)](_0x19822c){const _0x31e707=_0x2094db,_0x5f41f=this[_0x31e707(0x46e)]()+_0x31e707(0x459);return(await this[_0x31e707(0x3ee)][_0x31e707(0x168)](_0x5f41f,{'body':_0x19822c}))['body'][_0x31e707(0x29a)];}async[_0x2094db(0x115)](_0x265ff7){const _0x14ac86=_0x2094db,_0x118d27=this[_0x14ac86(0x46e)]()+'/'+_0x265ff7['objectType']+_0x14ac86(0x401)+_0x265ff7[_0x14ac86(0x22e)];await this[_0x14ac86(0x3ee)][_0x14ac86(0x228)](_0x118d27,{'body':_0x265ff7});}async[_0x2094db(0x3cd)](_0x4be734){const _0x58ef18=_0x2094db,_0x2d701b=this[_0x58ef18(0x46e)]()+'/'+_0x4be734['objectType']+_0x58ef18(0x401)+_0x4be734['objectID']+'/allowed';return(await this[_0x58ef18(0x3ee)]['post'](_0x2d701b,{'body':_0x4be734}))[_0x58ef18(0x1b4)][_0x58ef18(0x107)];}async['batchAllowed'](_0x61b675){const _0x459fa1=_0x2094db,_0x2c7444=this['_getAPIPrefixPath']()+_0x459fa1(0x144);return(await this[_0x459fa1(0x3ee)]['post'](_0x2c7444,{'body':{'requests':_0x61b675}}))[_0x459fa1(0x1b4)][_0x459fa1(0x28c)];}async[_0x2094db(0x2db)](_0x39fa0d){const _0x128382=_0x2094db,_0x5a065f=this[_0x128382(0x46e)]()+'/'+_0x39fa0d[_0x128382(0x284)]+'/role',_0x544dc3=await this['_HTTPService']['post'](_0x5a065f,{'body':_0x39fa0d});return{'roles':_0x544dc3[_0x128382(0x1b4)]['roles'],'actions':_0x544dc3[_0x128382(0x1b4)][_0x128382(0x107)]};}async[_0x2094db(0x4a3)](_0x229504){const _0x1ef26a=_0x2094db,_0x5bdfca=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1ef26a(0x3ee)][_0x1ef26a(0x330)](_0x5bdfca,{'params':{'collaboratorID':_0x229504[_0x1ef26a(0x30b)],'objectID':_0x229504[_0x1ef26a(0x22e)],'unitID':_0x229504[_0x1ef26a(0x198)]}});}async['updateCollaborator'](_0x280f7c){const _0x20b32f=_0x2094db,_0x8cbc88=this[_0x20b32f(0x46e)]()+_0x20b32f(0x1a5);await this[_0x20b32f(0x3ee)][_0x20b32f(0x1c8)](_0x8cbc88,{'body':_0x280f7c});}async[_0x2094db(0x3f0)](_0x1b3f24){const _0x29c87c=_0x2094db,_0x43144a=this[_0x29c87c(0x46e)]()+_0x29c87c(0x1a5);await this[_0x29c87c(0x3ee)][_0x29c87c(0x168)](_0x43144a,{'body':_0x1b3f24});}async['listCollaborators'](_0x1367ca){const _0x2cc0ee=_0x2094db,_0x2aa360=this['_getAPIPrefixPath']()+_0x2cc0ee(0x1a5);return(await this['_HTTPService']['get'](_0x2aa360,{'params':{'objectID':_0x1367ca[_0x2cc0ee(0x22e)],'unitID':_0x1367ca[_0x2cc0ee(0x198)]}}))[_0x2cc0ee(0x1b4)][_0x2cc0ee(0x1b1)];}async[_0x2094db(0x476)](_0x20903b){const _0x1c5119=_0x2094db,_0x486ee6=this[_0x1c5119(0x46e)]()+'/collaborator';await this['_HTTPService'][_0x1c5119(0x228)](_0x486ee6,{'body':_0x20903b});}},exports[_0x2094db(0xd6)]=cn([ut(0x0,a[_0x2094db(0xa7)](w[_0x2094db(0x1a0)])),ut(0x1,a[_0x2094db(0xa7)](a[_0x2094db(0x1ef)]))],exports['AuthzIoHttpService']);var hn=Object[_0x2094db(0x19c)],_n=Object['getOwnPropertyDescriptor'],un=(_0x1f6cbd,_0x58e030,_0x2071c9,_0x408767)=>{const _0x375076=_0x2094db;for(var _0x389f3b=_0x408767>0x1?void 0x0:_0x408767?_n(_0x58e030,_0x2071c9):_0x58e030,_0x1b324c=_0x1f6cbd[_0x375076(0xfc)]-0x1,_0xf9d50f;_0x1b324c>=0x0;_0x1b324c--)(_0xf9d50f=_0x1f6cbd[_0x1b324c])&&(_0x389f3b=(_0x408767?_0xf9d50f(_0x58e030,_0x2071c9,_0x389f3b):_0xf9d50f(_0x389f3b))||_0x389f3b);return _0x408767&&_0x389f3b&&hn(_0x58e030,_0x2071c9,_0x389f3b),_0x389f3b;},dn=(_0x351d6c,_0x4cc252)=>(_0x9c7d33,_0x1f3761)=>_0x4cc252(_0x9c7d33,_0x1f3761,_0x351d6c);let be=class{constructor(_0x3f8d58){const _0x49dc88=_0x2094db;this[_0x49dc88(0x3e5)]=_0x3f8d58,this['_initRequestHeader']();}[_0x2094db(0x29b)](){const _0x1973ad=_0x2094db;this[_0x1973ad(0x3e5)][_0x1973ad(0x265)]({'interceptor':(_0x5b6c1c,_0x22db62)=>{const _0x529a27=_0x1973ad,_0x54f1c3=_0x5b6c1c[_0x529a27(0x124)],_0x48c507=zt[_0x529a27(0x273)]();return _0x48c507&&_0x54f1c3[_0x529a27(0x26e)](_0x529a27(0x269),_0x48c507),_0x22db62(_0x5b6c1c);}});}};be=un([dn(0x0,a[_0x2094db(0xa7)](w[_0x2094db(0x1a0)]))],be);var Sn=Object[_0x2094db(0x19c)],vn=Object['getOwnPropertyDescriptor'],mn=(_0x45ea06,_0x174bba,_0x1479be,_0x4e0336)=>{const _0x401135=_0x2094db;for(var _0x3801b0=_0x4e0336>0x1?void 0x0:_0x4e0336?vn(_0x174bba,_0x1479be):_0x174bba,_0x494cc9=_0x45ea06[_0x401135(0xfc)]-0x1,_0x586703;_0x494cc9>=0x0;_0x494cc9--)(_0x586703=_0x45ea06[_0x494cc9])&&(_0x3801b0=(_0x4e0336?_0x586703(_0x174bba,_0x1479be,_0x3801b0):_0x586703(_0x3801b0))||_0x3801b0);return _0x4e0336&&_0x3801b0&&Sn(_0x174bba,_0x1479be,_0x3801b0),_0x3801b0;},xe=(_0x25f00d,_0x1adda3)=>(_0xa43b7f,_0x1de025)=>_0x1adda3(_0xa43b7f,_0x1de025,_0x25f00d);const gn=[_0x2094db(0x343),_0x2094db(0x431),_0x2094db(0xc1),_0x2094db(0x1ba),_0x2094db(0x367)],fn=0x5*0x400*0x400,In=_0x2094db(0xe6),pn='/universer-api/stream/file/upload',Cn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',En=_0x2094db(0x2e5);exports[_0x2094db(0x464)]=class{constructor(_0x6cfa74,_0x3013d9,_0x3ae5cc){const _0x1877db=_0x2094db;u(this,_0x1877db(0x17c),0x0),u(this,_0x1877db(0x383),new v[(_0x1877db(0xc7))]()),u(this,_0x1877db(0xcc),this[_0x1877db(0x383)]),u(this,_0x1877db(0x1da),new Map()),(this[_0x1877db(0x3e5)]=_0x6cfa74,this['_configService']=_0x3013d9,this[_0x1877db(0x45f)]=_0x3ae5cc);}[_0x2094db(0xe8)](_0x21ee0a){const _0x1f67f0=_0x2094db;this[_0x1f67f0(0x17c)]=_0x21ee0a,this[_0x1f67f0(0x383)][_0x1f67f0(0x31f)](_0x21ee0a);}[_0x2094db(0x455)](_0x37e482,_0x39c3e7){const _0x44e3ac=_0x2094db;if(_0x39c3e7===j['ImageSourceType'][_0x44e3ac(0xb1)]){const _0x4cc5a6=new Image();return _0x4cc5a6[_0x44e3ac(0x31c)]=_0x37e482,_0x4cc5a6;}return this['_imageSourceCache'][_0x44e3ac(0x408)](_0x37e482);}[_0x2094db(0x27e)](_0x2f284e,_0x1c88b7,_0x16f3cb){const _0x1ab353=_0x2094db;_0x1c88b7===j[_0x1ab353(0x2ab)][_0x1ab353(0xb1)]||_0x16f3cb==null||this[_0x1ab353(0x1da)][_0x1ab353(0x26e)](_0x2f284e,_0x16f3cb);}async['getImage'](_0x4362eb){const _0x42ac25=_0x2094db;try{const _0x24a5c9=this[_0x42ac25(0x244)](this[_0x42ac25(0x19b)](),''+_0x4362eb),_0x39c9af=(await this[_0x42ac25(0x3e5)]['get'](_0x24a5c9))[_0x42ac25(0x1b4)];if(_0x39c9af[_0x42ac25(0x158)]&&_0x39c9af['error']['code']===bt['OK']){const _0x3030b3=new URL(_0x39c9af[_0x42ac25(0x256)],this[_0x42ac25(0x279)]())[_0x42ac25(0x362)]();return Promise[_0x42ac25(0x209)](_0x3030b3);}return Promise[_0x42ac25(0x262)](_0x39c9af[_0x42ac25(0x158)]);}catch(_0x24a99b){return Promise['reject'](_0x24a99b);}}async[_0x2094db(0x231)](_0xb0c4db){const _0x2b3c06=_0x2094db;let _0x1fa083='';if(!gn[_0x2b3c06(0x41e)](_0xb0c4db[_0x2b3c06(0x430)]))return this[_0x2b3c06(0x49b)](),Promise['reject'](new Error(j['ImageUploadStatusType'][_0x2b3c06(0x2ed)]));if(_0xb0c4db[_0x2b3c06(0x369)]>fn)return this['_decreaseWaiting'](),Promise[_0x2b3c06(0x262)](new Error(j[_0x2b3c06(0x33f)]['ERROR_EXCEED_SIZE']));try{const _0x36f772=new FormData();_0x36f772[_0x2b3c06(0x3f1)](_0x2b3c06(0x139),_0xb0c4db);const _0x25b8cf=this[_0x2b3c06(0x45f)][_0x2b3c06(0x41f)](),_0x15d802=_0x25b8cf==null?void 0x0:_0x25b8cf[_0x2b3c06(0x14d)]();if(!_0x15d802)throw new Error(_0x2b3c06(0xfd));const _0x55f9ee=this['_getUploadFileURL']()+'?size='+_0xb0c4db['size']['toString']()+'&source='+Tt['UnitEmbedded']+_0x2b3c06(0x3c1)+encodeURIComponent(_0x15d802),_0x50336b=await(await fetch(_0x55f9ee,{'method':_0x2b3c06(0xd5),'body':_0x36f772}))[_0x2b3c06(0x3de)]();if(typeof _0x50336b[_0x2b3c06(0x208)]!='string')return this['_decreaseWaiting'](),Promise['reject'](new Error(j['ImageUploadStatusType'][_0x2b3c06(0x1ad)]));_0x1fa083=_0x50336b[_0x2b3c06(0x208)];}catch{return this['_decreaseWaiting'](),Promise[_0x2b3c06(0x262)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x114ef8,_0x456b05)=>{const _0x35bc75=_0x2b3c06,_0x5d4e67=new FileReader();_0x5d4e67['readAsDataURL'](_0xb0c4db),_0x5d4e67[_0x35bc75(0xee)]=_0x4d5320=>{const _0x2afba1=_0x35bc75;var _0x1d2bb5;const _0x1ed71b=(_0x1d2bb5=_0x4d5320[_0x2afba1(0x272)])==null?void 0x0:_0x1d2bb5[_0x2afba1(0x379)];if(_0x1ed71b==null){this['_decreaseWaiting'](),_0x456b05(new Error(j[_0x2afba1(0x33f)][_0x2afba1(0x1ad)]));return;}const _0x260743=a[_0x2afba1(0x28b)][_0x2afba1(0x3ac)](0x6);_0x114ef8({'imageId':_0x260743,'imageSourceType':j['ImageSourceType'][_0x2afba1(0x2fb)],'source':_0x1fa083,'base64Cache':_0x1ed71b,'status':j['ImageUploadStatusType'][_0x2afba1(0x2e7)]}),this['_decreaseWaiting']();};});}[_0x2094db(0x40d)](){const _0x5732f9=_0x2094db;var _0x2f767a,_0x51f15d;const _0x51d61e=this[_0x5732f9(0x481)][_0x5732f9(0x24b)](In),_0x5afba4=this[_0x5732f9(0x481)][_0x5732f9(0x24b)](L);return(_0x51f15d=(_0x2f767a=_0x5afba4==null?void 0x0:_0x5afba4[_0x5732f9(0x40b)])!=null?_0x2f767a:_0x51d61e)!=null?_0x51f15d:pn;}[_0x2094db(0x19b)](){const _0x24c5ea=_0x2094db;var _0x2d8e65,_0x44a225;const _0x224317=this[_0x24c5ea(0x481)][_0x24c5ea(0x24b)](Cn),_0x4f8fbe=this[_0x24c5ea(0x481)][_0x24c5ea(0x24b)](L);return(_0x44a225=(_0x2d8e65=_0x4f8fbe==null?void 0x0:_0x4f8fbe[_0x24c5ea(0x1a8)])!=null?_0x2d8e65:_0x224317)!=null?_0x44a225:En;}[_0x2094db(0x279)](){const _0x454f03=_0x2094db;var _0x5105ab;const _0x232766=this[_0x454f03(0x481)][_0x454f03(0x24b)](L);return(_0x5105ab=_0x232766==null?void 0x0:_0x232766['downloadEndpointUrl'])!=null?_0x5105ab:location[_0x454f03(0x4a0)];}[_0x2094db(0x244)](_0x430017,_0x5116e3){const _0x3e6cff=_0x2094db;return _0x430017[_0x3e6cff(0x49f)]('{fileID}',_0x5116e3);}['_decreaseWaiting'](){const _0x2ebe6a=_0x2094db;this[_0x2ebe6a(0x17c)]-=0x1,this[_0x2ebe6a(0x383)]['next'](this[_0x2ebe6a(0x17c)]);}},exports['ImageIoService']=mn([xe(0x0,a[_0x2094db(0xa7)](w[_0x2094db(0x1a0)])),xe(0x1,a[_0x2094db(0x1ef)]),xe(0x2,a[_0x2094db(0xa7)](a[_0x2094db(0x42f)]))],exports[_0x2094db(0x464)]);var bn=Object[_0x2094db(0x19c)],Tn=Object['getOwnPropertyDescriptor'],Rn=(_0x36126d,_0x3dc6b3,_0xb9adf6,_0xe2d6bd)=>{const _0x5c1faa=_0x2094db;for(var _0x4dee6f=_0xe2d6bd>0x1?void 0x0:_0xe2d6bd?Tn(_0x3dc6b3,_0xb9adf6):_0x3dc6b3,_0x5bb7b8=_0x36126d[_0x5c1faa(0xfc)]-0x1,_0x17422e;_0x5bb7b8>=0x0;_0x5bb7b8--)(_0x17422e=_0x36126d[_0x5bb7b8])&&(_0x4dee6f=(_0xe2d6bd?_0x17422e(_0x3dc6b3,_0xb9adf6,_0x4dee6f):_0x17422e(_0x4dee6f))||_0x4dee6f);return _0xe2d6bd&&_0x4dee6f&&bn(_0x3dc6b3,_0xb9adf6,_0x4dee6f),_0x4dee6f;},_e=(_0x1066e3,_0x307ada)=>(_0x3031b7,_0x3dc587)=>_0x307ada(_0x3031b7,_0x3dc587,_0x1066e3);let Te=class extends a['RxDisposable']{constructor(_0x2fc253,_0x13af69,_0x14f8c9,_0x4a4cf0,_0x203bde){const _0x50bd45=_0x2094db;super(),this[_0x50bd45(0x3c6)]=_0x2fc253,this[_0x50bd45(0x45f)]=_0x13af69,this['_permissionService']=_0x14f8c9,this[_0x50bd45(0x46c)]=_0x4a4cf0,this[_0x50bd45(0x3f7)]=_0x203bde,this[_0x50bd45(0x13b)](),this[_0x50bd45(0xbd)]();}['_initCloseConn'](){const _0x307eaf=_0x2094db,_0x3f3885=async _0x203bd6=>{const _0x1e22bc=_0x57dd;(await this[_0x1e22bc(0x46c)][_0x1e22bc(0x3ad)](_0x203bd6))['event$'][_0x1e22bc(0x2be)](E[_0x1e22bc(0x1d8)](_0x4c14e6=>_0x4c14e6[_0x1e22bc(0x93)]===_[_0x1e22bc(0x1e2)]['SHOULD_CLOSE_CONN']),E['takeUntil'](this[_0x1e22bc(0x271)]))[_0x1e22bc(0x253)](_0x19c5e0=>{const _0x1c0be7=_0x1e22bc,_0x51c2cd=_0x19c5e0,{reason:_0x2cff78}=_0x51c2cd['data'];this['_injector']['get'](A[_0x1c0be7(0x461)])[_0x1c0be7(0x296)]({'type':q[_0x1c0be7(0x346)][_0x1c0be7(0x20b)],'content':this[_0x1c0be7(0x3f7)]['t'](_0x1c0be7(0x333))+'('+_0x2cff78+')'}),this[_0x1c0be7(0x438)][_0x1c0be7(0x239)](new C[(_0x1c0be7(0x11c))](_0x203bd6)['id'],!0x1),this[_0x1c0be7(0x46c)][_0x1c0be7(0x259)](_0x203bd6);});};v['merge'](this[_0x307eaf(0x45f)][_0x307eaf(0x136)](a[_0x307eaf(0x14b)][_0x307eaf(0x264)]),this[_0x307eaf(0x45f)][_0x307eaf(0x136)](a['UniverInstanceType'][_0x307eaf(0x3d0)]))['pipe'](E[_0x307eaf(0x418)](_0xe805de=>_0xe805de[_0x307eaf(0x14d)]()),E[_0x307eaf(0x1d8)](_0x5c50cd=>!a[_0x307eaf(0x451)](_0x5c50cd)),E['takeUntil'](this[_0x307eaf(0x271)]))[_0x307eaf(0x253)](_0x335815=>{_0x3f3885(_0x335815);});}[_0x2094db(0x13b)](){const _0x35d14a=_0x2094db,_0x1a99bb=async _0x56b878=>{const _0x50df22=_0x57dd;(await this['_collaborationSessionService'][_0x50df22(0x3ad)](_0x56b878))[_0x50df22(0x3e3)][_0x50df22(0x2be)](E[_0x50df22(0x1d8)](_0x2ff707=>_0x2ff707[_0x50df22(0x93)]===_[_0x50df22(0x1e2)][_0x50df22(0x178)]),E['takeUntil'](this[_0x50df22(0x271)]))[_0x50df22(0x253)](_0x5eaf41=>{const _0x4c560b=_0x50df22,_0x402b9c=_0x5eaf41,{objectId:_0x13a15a}=_0x402b9c[_0x4c560b(0x212)],_0x308d8c=this[_0x4c560b(0x3c6)][_0x4c560b(0x408)](te[_0x4c560b(0x20d)]);_0x13a15a===_0x56b878?_0x308d8c[_0x4c560b(0x286)](_0x56b878):_0x308d8c[_0x4c560b(0x490)](_0x56b878,_0x13a15a);});};v[_0x35d14a(0x414)](this['_univerInstanceService'][_0x35d14a(0x136)](a[_0x35d14a(0x14b)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x35d14a(0x136)](a[_0x35d14a(0x14b)][_0x35d14a(0x3d0)]))['pipe'](E[_0x35d14a(0x418)](_0x2f0abd=>_0x2f0abd[_0x35d14a(0x14d)]()),E[_0x35d14a(0x1d8)](_0x40978e=>!a[_0x35d14a(0x451)](_0x40978e)),E[_0x35d14a(0x1f1)](this[_0x35d14a(0x271)]))['subscribe'](_0x2ddf2f=>{_0x1a99bb(_0x2ddf2f);});}};Te=Rn([_e(0x0,a['Inject'](a[_0x2094db(0x393)])),_e(0x1,a['IUniverInstanceService']),_e(0x2,a[_0x2094db(0x29d)]),_e(0x3,a[_0x2094db(0xa7)](exports[_0x2094db(0x21b)])),_e(0x4,a[_0x2094db(0xa7)](a[_0x2094db(0x1f8)]))],Te);var On=Object[_0x2094db(0x19c)],Dn=Object['getOwnPropertyDescriptor'],yn=(_0x39e7fd,_0x3881c3,_0x25e927,_0x366135)=>{const _0x72aef2=_0x2094db;for(var _0x1d50f0=_0x366135>0x1?void 0x0:_0x366135?Dn(_0x3881c3,_0x25e927):_0x3881c3,_0x24ee6b=_0x39e7fd[_0x72aef2(0xfc)]-0x1,_0x3cba47;_0x24ee6b>=0x0;_0x24ee6b--)(_0x3cba47=_0x39e7fd[_0x24ee6b])&&(_0x1d50f0=(_0x366135?_0x3cba47(_0x3881c3,_0x25e927,_0x1d50f0):_0x3cba47(_0x1d50f0))||_0x1d50f0);return _0x366135&&_0x1d50f0&&On(_0x3881c3,_0x25e927,_0x1d50f0),_0x1d50f0;},dt=(_0x39aefb,_0x337bab)=>(_0x179f93,_0x47bc38)=>_0x337bab(_0x179f93,_0x47bc38,_0x39aefb);exports['SnapshotServerOverHTTPService']=class{constructor(_0x140b42,_0x35e720){const _0x5cc9d4=_0x2094db;this['_configService']=_0x140b42,this[_0x5cc9d4(0x3e5)]=_0x35e720;}async[_0x2094db(0x2fc)](_0x4d382b,_0x19f5c2){const _0x1be186=_0x2094db;var _0x4b5b82;const {unitID:_0x46eee5,type:_0x4cad49,revision:_0x1936b3=0x0}=_0x19f5c2,_0x26b63f=this[_0x1be186(0x42d)]()+'/'+_0x4cad49+_0x1be186(0x167)+_0x46eee5+_0x1be186(0x44e)+_0x1936b3,_0x1289f8=(await this['_httpService'][_0x1be186(0x408)](_0x26b63f))[_0x1be186(0x1b4)],_0xce0711=(_0x4b5b82=_0x1289f8[_0x1be186(0x116)])==null?void 0x0:_0x4b5b82[_0x1be186(0x327)];if(_0xce0711){const _0x118c83=_0xce0711==null?void 0x0:_0xce0711[_0x1be186(0xaa)],_0x5ad2b1=_['textEncoder'][_0x1be186(0x2dc)](_['b64DecodeUnicode'](_0x118c83));_0xce0711['originalMeta']=_0x5ad2b1,Object[_0x1be186(0x202)](_0xce0711[_0x1be186(0x406)])[_0x1be186(0x44f)](([,_0x39bb52])=>{const _0x393b4a=_0x1be186,_0x4a295c=_0x39bb52[_0x393b4a(0xaa)],_0x51f92e=_[_0x393b4a(0x199)][_0x393b4a(0x2dc)](_[_0x393b4a(0x179)](_0x4a295c));_0x39bb52[_0x393b4a(0xaa)]=_0x51f92e;});}return _0x1289f8;}async[_0x2094db(0x141)](_0x6fd904,_0x3c31bc){const _0x487c45=_0x2094db,{unitID:_0x233bfc,type:_0x371454,blockID:_0xea61b2}=_0x3c31bc,_0x200191=this[_0x487c45(0xbf)]()+'/'+_0x371454+_0x487c45(0x167)+_0x233bfc+_0x487c45(0x474)+_0xea61b2;return(await this['_httpService'][_0x487c45(0x408)](_0x200191))[_0x487c45(0x1b4)];}async[_0x2094db(0x1b2)](_0x271d3d,_0x51d817){const _0x5f03a2=_0x2094db,{unitID:_0x32be0d,type:_0x2cf76b,blockID:_0x52a9a0}=_0x51d817,_0x17db3f=this[_0x5f03a2(0xbf)]()+'/block/'+_0x2cf76b+_0x5f03a2(0x167)+_0x32be0d+_0x5f03a2(0x474)+_0x52a9a0;return(await this[_0x5f03a2(0x3e5)][_0x5f03a2(0x408)](_0x17db3f))[_0x5f03a2(0x1b4)];}async[_0x2094db(0xb8)](_0xf33ade,_0x1c4645){const _0x2854bf=_0x2094db,{unitID:_0x134147,type:_0x5a35b3,from:_0x5a1c5c,to:_0x5a97db}=_0x1c4645,_0x1a218b=this[_0x2854bf(0xbf)]()+'/'+_0x5a35b3+_0x2854bf(0x167)+_0x134147+'/fetchmissing?from='+_0x5a1c5c+_0x2854bf(0x2d0)+_0x5a97db;return(await this[_0x2854bf(0x3e5)][_0x2854bf(0x408)](_0x1a218b))[_0x2854bf(0x1b4)];}[_0x2094db(0x42d)](){const _0x11554a=_0x2094db;var _0x585003;return(_0x585003=this[_0x11554a(0x481)][_0x11554a(0x24b)](vt))!=null?_0x585003:this[_0x11554a(0xbf)]();}['_getAPIPrefix'](){const _0x3d7e28=_0x2094db;var _0x4a0d8c,_0x1a52ab;const _0x2f384a=this[_0x3d7e28(0x481)][_0x3d7e28(0x24b)](St),_0x38b80f=this['_configService']['getConfig'](L);return(_0x1a52ab=(_0x4a0d8c=_0x38b80f==null?void 0x0:_0x38b80f[_0x3d7e28(0x398)])!=null?_0x4a0d8c:_0x2f384a)!=null?_0x1a52ab:Jt;}async[_0x2094db(0x84)](_0x37cc7d,_0x560ec0){const _0x2166b5=_0x2094db,_0x734671='/universer-api/snapshot/'+_0x560ec0['type']+_0x2166b5(0x167)+_0x560ec0[_0x2166b5(0x198)]+_0x2166b5(0x232);return(await this[_0x2166b5(0x3e5)][_0x2166b5(0x408)](_0x734671,{'params':{'resourceId':JSON['stringify'](_0x560ec0[_0x2166b5(0x2ee)])}}))['body'];}[_0x2094db(0x22b)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2094db(0x3f2)](){const _0x413135=_0x2094db;throw new Error(_0x413135(0x497));}[_0x2094db(0x324)](){const _0x4b7821=_0x2094db;throw new Error(_0x4b7821(0x497));}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2094db(0x316)](){const _0x15ddbe=_0x2094db;throw new Error(_0x15ddbe(0x497));}},exports['SnapshotServerOverHTTPService']=yn([dt(0x0,a[_0x2094db(0x1ef)]),dt(0x1,a[_0x2094db(0xa7)](w['HTTPService']))],exports[_0x2094db(0x100)]);var Un=Object[_0x2094db(0x19c)],Pn=Object[_0x2094db(0x468)],wn=(_0x46f234,_0x4a45d4,_0x46bc80,_0x168a85)=>{const _0x3112ef=_0x2094db;for(var _0x1ebe6f=_0x168a85>0x1?void 0x0:_0x168a85?Pn(_0x4a45d4,_0x46bc80):_0x4a45d4,_0x38a852=_0x46f234[_0x3112ef(0xfc)]-0x1,_0x47c592;_0x38a852>=0x0;_0x38a852--)(_0x47c592=_0x46f234[_0x38a852])&&(_0x1ebe6f=(_0x168a85?_0x47c592(_0x4a45d4,_0x46bc80,_0x1ebe6f):_0x47c592(_0x1ebe6f))||_0x1ebe6f);return _0x168a85&&_0x1ebe6f&&Un(_0x4a45d4,_0x46bc80,_0x1ebe6f),_0x1ebe6f;},ue=(_0x1c5cc5,_0x17dbd7)=>(_0x1da282,_0x5cbb00)=>_0x17dbd7(_0x1da282,_0x5cbb00,_0x1c5cc5);let Fe=class extends a[_0x2094db(0xad)]{constructor(_0x47ad31,_0x24d881,_0x1f4040,_0x3ec42d,_0x5d6b18){const _0x4d0928=_0x2094db;super(_0x47ad31,_0x24d881,_0x1f4040),this[_0x4d0928(0x3af)]=_0x3ec42d,this[_0x4d0928(0xe0)]=_0x5d6b18;}[_0x2094db(0xa4)](_0x1edad4,_0x17394c){const _0x3b4e41=_0x2094db,_0x2c0fbc=this[_0x3b4e41(0x1d6)](_0x1edad4);if(_0x2c0fbc)try{const _0x438b44=this['_transformStack'](_0x2c0fbc,_0x17394c);this[_0x3b4e41(0x1de)](_0x1edad4,_0x438b44);}catch(_0x54cde3){this['_logService'][_0x3b4e41(0x158)]('[CollaborationUndoRedoService]',_0x54cde3),this['_clearUndo'](_0x1edad4);}const _0x9b6da7=this[_0x3b4e41(0x412)](_0x1edad4);if(_0x9b6da7)try{const _0x4d1a78=this['_transformStack'](_0x9b6da7,_0x17394c);this[_0x3b4e41(0x203)](_0x1edad4,_0x4d1a78);}catch(_0x583ca3){this[_0x3b4e41(0xe0)][_0x3b4e41(0x158)](_0x583ca3),this['_clearRedo'](_0x1edad4);}}[_0x2094db(0x105)](_0x5a03c8){const _0x5494f3=_0x2094db,_0x5a17f1=this['_getUndoStack'](_0x5a03c8);_0x5a17f1&&(_0x5a17f1[_0x5494f3(0xfc)]=0x0,this[_0x5494f3(0x1ae)]());}['_clearRedo'](_0x2d859f){const _0xae7746=_0x2094db,_0x3ac1fb=this[_0xae7746(0x412)](_0x2d859f);_0x3ac1fb&&(_0x3ac1fb[_0xae7746(0xfc)]=0x0,this[_0xae7746(0x1ae)]());}['_substituteUndoStack'](_0x535d23,_0x2c7574){const _0x2c3c8c=_0x2094db;this[_0x2c3c8c(0x233)][_0x2c3c8c(0x26e)](_0x535d23,_0x2c7574),this[_0x2c3c8c(0x1ae)]();}[_0x2094db(0x203)](_0x246d75,_0x19878){const _0x21939a=_0x2094db;this['_redoStacks'][_0x21939a(0x26e)](_0x246d75,_0x19878),this[_0x21939a(0x1ae)]();}[_0x2094db(0x2d1)](_0x398835,_0xf391a3){const _0x1635f3=_0x2094db,_0x64565d=[];let _0x262488=_0xf391a3,_0x8f4a37=_0xf391a3;for(let _0x54f5ff=_0x398835['length']-0x1;_0x54f5ff>=0x0;_0x54f5ff--){const {unitID:_0x3637a8,undoMutations:_0x1d5cce,redoMutations:_0x5929ae}=_0x398835[_0x54f5ff],_0x48e7a8=this[_0x1635f3(0x3af)][_0x1635f3(0x18c)](_0x262488,_0x1d5cce),_0x5ae4c3=this['_transformService'][_0x1635f3(0x18c)](_0x8f4a37,_0x5929ae);if(_[_0x1635f3(0x1c2)](_0x48e7a8)||_[_0x1635f3(0x1c2)](_0x5ae4c3)){this[_0x1635f3(0xe0)]['error'](_0x1635f3(0x16b),'transformStack\x20failed!',_0x48e7a8,_0x5ae4c3);break;}_0x262488=_0x48e7a8[_0x1635f3(0x3c4)],_0x8f4a37=_0x5ae4c3[_0x1635f3(0x3c4)],_0x64565d[_0x1635f3(0x3b2)]({'unitID':_0x3637a8,'undoMutations':_0x48e7a8[_0x1635f3(0x275)],'redoMutations':_0x5ae4c3[_0x1635f3(0x275)]});}return _0x64565d[_0x1635f3(0x2b6)]();}};Fe=wn([ue(0x0,a[_0x2094db(0x42f)]),ue(0x1,a['ICommandService']),ue(0x2,a['IContextService']),ue(0x3,_[_0x2094db(0x12b)]),ue(0x4,a['ILogService'])],Fe);class xt extends a[_0x2094db(0x13e)]{constructor(){const _0x4d345d=_0x2094db;super(),u(this,'urlChange$'),this[_0x4d345d(0x2c5)]=v[_0x4d345d(0xc4)](window,_0x4d345d(0x471))['pipe'](v['takeUntil'](this[_0x4d345d(0x271)]),v[_0x4d345d(0x3b6)](0x1),v[_0x4d345d(0x494)](void 0x0));}['setParam'](_0x133a52,_0x182e25,_0x2fb205=!0x1){const _0x4eddc5=_0x2094db,_0x11d950=new URL(window[_0x4eddc5(0x3dc)]['href']);_0x11d950[_0x4eddc5(0x24c)][_0x4eddc5(0x26e)](_0x133a52,_0x182e25),_0x2fb205?window[_0x4eddc5(0x49a)][_0x4eddc5(0xf6)]('','',_0x11d950['toString']()):window[_0x4eddc5(0x49a)]['pushState']('','',_0x11d950[_0x4eddc5(0x362)]());}['removeParam'](_0x50d689,_0x5de8fc=!0x1){const _0x4a465e=_0x2094db,_0x5592bb=new URL(window[_0x4a465e(0x3dc)][_0x4a465e(0x1ec)]);_0x5592bb['searchParams']['delete'](_0x50d689),_0x5de8fc?window[_0x4a465e(0x49a)]['replaceState']('','',_0x5592bb[_0x4a465e(0x362)]()):window['history'][_0x4a465e(0x47a)]('','',_0x5592bb[_0x4a465e(0x362)]());}[_0x2094db(0xa9)](_0x50f713){const _0x17db5c=_0x2094db;var _0x5e18e7;return(_0x5e18e7=new URL(window['location'][_0x17db5c(0x1ec)])[_0x17db5c(0x24c)][_0x17db5c(0x408)](_0x50f713))!=null?_0x5e18e7:void 0x0;}}var kt=Object[_0x2094db(0x19c)],Nn=Object[_0x2094db(0x468)],Mn=(_0x4a68b5,_0x56f052,_0x108777)=>_0x56f052 in _0x4a68b5?kt(_0x4a68b5,_0x56f052,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x108777}):_0x4a68b5[_0x56f052]=_0x108777,An=(_0x4100f3,_0x353c94,_0x437067,_0x11344b)=>{const _0x1a61b8=_0x2094db;for(var _0x10d17b=_0x11344b>0x1?void 0x0:_0x11344b?Nn(_0x353c94,_0x437067):_0x353c94,_0x3eac0a=_0x4100f3[_0x1a61b8(0xfc)]-0x1,_0x2654e1;_0x3eac0a>=0x0;_0x3eac0a--)(_0x2654e1=_0x4100f3[_0x3eac0a])&&(_0x10d17b=(_0x11344b?_0x2654e1(_0x353c94,_0x437067,_0x10d17b):_0x2654e1(_0x10d17b))||_0x10d17b);return _0x11344b&&_0x10d17b&&kt(_0x353c94,_0x437067,_0x10d17b),_0x10d17b;},ge=(_0x289acd,_0x4642be)=>(_0x46a44e,_0x1d35a8)=>_0x4642be(_0x46a44e,_0x1d35a8,_0x289acd),Ln=(_0x1826a1,_0x10343b,_0x960645)=>Mn(_0x1826a1,_0x10343b+'',_0x960645);const jn=_0x2094db(0xfa);exports[_0x2094db(0x45c)]=class extends a['Plugin']{constructor(_0x16fc0d=as,_0x5a8a22,_0x2118a2,_0x16849f,_0x38009b){const _0x52af6e=_0x2094db;super(),this[_0x52af6e(0x2b1)]=_0x16fc0d,this[_0x52af6e(0xe0)]=_0x5a8a22,this['_renderManagerService']=_0x2118a2,this[_0x52af6e(0x3c6)]=_0x16849f,this['_configService']=_0x38009b;const {..._0x41610f}=this['_config'];this[_0x52af6e(0x481)]['setConfig'](L,_0x41610f);}[_0x2094db(0x2c2)](){const _0x4f281d=_0x2094db;this[_0x4f281d(0x332)](),a[_0x4f281d(0x3ab)](this['_injector'],[[ne],[exports['DataLoaderController']],[Te]]);}['onReady'](){const _0x3f0257=_0x2094db;a[_0x3f0257(0x3ab)](this[_0x3f0257(0x3c6)],[[Ce]]);}['onRendered'](){const _0x13f03a=_0x2094db;this[_0x13f03a(0x3d2)]();}[_0x2094db(0x332)](){const _0xde4e46=_0x2094db;var _0x4d1fbf,_0x13ea30,_0x16a9b7,_0x1859cc;this['_injector'][_0xde4e46(0x24d)](a[_0xde4e46(0x465)])&&this[_0xde4e46(0xe0)]['error'](_0xde4e46(0x1f4),_0xde4e46(0x386));let _0x4baf3e=[[a['IUndoRedoService'],{'useClass':Fe}],[exports['CollaborationSessionService']],[Je],[w[_0xde4e46(0x1a0)]],[Qe,{'useClass':xt}],[X],[exports[_0xde4e46(0x3c0)]],[w[_0xde4e46(0x409)]],[Ie],[pe],[fe],[Xe],[Ee],[be],[qe],[Te],[Ke,{'useClass':(_0x13ea30=(_0x4d1fbf=this[_0xde4e46(0x2b1)])==null?void 0x0:_0x4d1fbf[_0xde4e46(0x2b3)])!=null?_0x13ea30:exports['CollaborationSocketService']}],[w[_0xde4e46(0x123)],{'useClass':w[_0xde4e46(0x32a)]}],[_['ISnapshotServerService'],{'useClass':exports[_0xde4e46(0x100)]}],[a[_0xde4e46(0x2e6)],{'useClass':exports[_0xde4e46(0xd6)]}],[j[_0xde4e46(0x1a9)],{'useClass':exports['ImageIoService']}],[exports['CollaborationController']],[exports[_0xde4e46(0x422)]],[exports['DesktopCollaborationStatusDisplayController']],[Ce],[ne]];(_0x16a9b7=this[_0xde4e46(0x2b1)])!=null&&_0x16a9b7[_0xde4e46(0xc0)]&&_0x4baf3e[_0xde4e46(0x3b2)]([Re,{'useClass':xs}]),_0x4baf3e=a[_0xde4e46(0x223)](_0x4baf3e,(_0x1859cc=this[_0xde4e46(0x2b1)])==null?void 0x0:_0x1859cc[_0xde4e46(0x453)]),_0x4baf3e['forEach'](_0x166cdb=>this[_0xde4e46(0x3c6)][_0xde4e46(0x95)](_0x166cdb)),this[_0xde4e46(0x18a)]();}[_0x2094db(0x3d2)](){const _0x4ef7f7=_0x2094db;this[_0x4ef7f7(0x45b)](this[_0x4ef7f7(0x48a)][_0x4ef7f7(0xc6)](a['UniverInstanceType']['UNIVER_DOC'],[Ve])),this[_0x4ef7f7(0x45b)](this[_0x4ef7f7(0x48a)][_0x4ef7f7(0xc6)](a[_0x4ef7f7(0x14b)][_0x4ef7f7(0x264)],[We]));}['_initModules'](){const _0x5530f6=_0x2094db;var _0x48f824,_0x3839ab;this['_injector'][_0x5530f6(0x408)](w[_0x5530f6(0x1a0)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':w[_0x5530f6(0x12d)]({'maxParallel':0x6})}),this[_0x5530f6(0x3c6)][_0x5530f6(0x408)](be),(_0x48f824=this[_0x5530f6(0x2b1)])!=null&&_0x48f824[_0x5530f6(0x2c4)]||this['_injector'][_0x5530f6(0x408)](exports['LocalCacheService'])[_0x5530f6(0x311)](),(_0x3839ab=this['_config'])!=null&&_0x3839ab[_0x5530f6(0x4a5)]&&this[_0x5530f6(0x3c6)][_0x5530f6(0x408)](Ee),this[_0x5530f6(0x3c6)][_0x5530f6(0x408)](exports['CollaborationController']),this['_injector'][_0x5530f6(0x24d)](exports[_0x5530f6(0x201)])&&this[_0x5530f6(0x3c6)][_0x5530f6(0x408)](exports[_0x5530f6(0x201)]);}},Ln(exports[_0x2094db(0x45c)],_0x2094db(0x174),jn),exports['UniverCollaborationClientPlugin']=An([a[_0x2094db(0xd9)](_[_0x2094db(0x3f3)]),ge(0x1,a[_0x2094db(0x254)]),ge(0x2,D[_0x2094db(0x2d9)]),ge(0x3,a['Inject'](a[_0x2094db(0x393)])),ge(0x4,a[_0x2094db(0x1ef)])],exports[_0x2094db(0x45c)]),exports[_0x2094db(0xdb)]=Ht,exports[_0x2094db(0x216)]=Ct,exports[_0x2094db(0x13d)]=mt,exports[_0x2094db(0x360)]=U,exports[_0x2094db(0x368)]=$t,exports['CommentService']=qe,exports[_0x2094db(0x2e2)]=gt,exports[_0x2094db(0x312)]=Ge,exports[_0x2094db(0x334)]=Ke,exports[_0x2094db(0x43a)]=Qe,exports[_0x2094db(0x2ce)]=pt,exports[_0x2094db(0x48b)]=Et,exports[_0x2094db(0x287)]=It,exports[_0x2094db(0x17f)]=Zt,exports['SNAPSHOT_SERVER_URL_KEY']=St,exports[_0x2094db(0x361)]=vt,exports[_0x2094db(0x372)]=H,exports[_0x2094db(0x3f4)]=Nt,exports[_0x2094db(0x246)]=xt,exports[_0x2094db(0x473)]=Rt,exports[_0x2094db(0x19d)]=Ot;
1
+ 'use strict';const _0x3cc0f6=_0x10ac;(function(_0x4ea655,_0x21108a){const _0x227ef2=_0x10ac,_0x4a3bc9=_0x4ea655();while(!![]){try{const _0xac3d3f=-parseInt(_0x227ef2(0x5df))/0x1+-parseInt(_0x227ef2(0x4c6))/0x2+-parseInt(_0x227ef2(0x222))/0x3*(-parseInt(_0x227ef2(0x41a))/0x4)+parseInt(_0x227ef2(0x53f))/0x5+-parseInt(_0x227ef2(0x205))/0x6*(-parseInt(_0x227ef2(0x5ae))/0x7)+parseInt(_0x227ef2(0x231))/0x8+-parseInt(_0x227ef2(0x4bd))/0x9;if(_0xac3d3f===_0x21108a)break;else _0x4a3bc9['push'](_0x4a3bc9['shift']());}catch(_0x315ba7){_0x4a3bc9['push'](_0x4a3bc9['shift']());}}}(_0x48f6,0x5c5ef));var Yt=Object[_0x3cc0f6(0x1c6)],Kt=(_0x2dc60b,_0x6ca6d6,_0x425e5b)=>_0x6ca6d6 in _0x2dc60b?Yt(_0x2dc60b,_0x6ca6d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425e5b}):_0x2dc60b[_0x6ca6d6]=_0x425e5b,u=(_0x10b12c,_0x161ac2,_0x525c70)=>Kt(_0x10b12c,typeof _0x161ac2!=_0x3cc0f6(0x269)?_0x161ac2+'':_0x161ac2,_0x525c70);Object[_0x3cc0f6(0x1c6)](exports,Symbol[_0x3cc0f6(0x27f)],{'value':_0x3cc0f6(0x2a5)});const a=require(_0x3cc0f6(0x271)),v=require(_0x3cc0f6(0x386)),E=require(_0x3cc0f6(0x2fa)),J=require(_0x3cc0f6(0x2a2)),A=require(_0x3cc0f6(0x334)),U=require(_0x3cc0f6(0x371)),_=require('@univerjs-pro/collaboration'),Xt=require(_0x3cc0f6(0x265)),N=require(_0x3cc0f6(0x59e)),C=require('@univerjs/sheets'),O=require(_0x3cc0f6(0x404)),re=require(_0x3cc0f6(0x1c2)),j=require('@univerjs/drawing'),et=require(_0x3cc0f6(0x461)),ne=require(_0x3cc0f6(0x24b)),y=require(_0x3cc0f6(0x4a8)),qt=require(_0x3cc0f6(0x2e4)),zt=require('@univerjs-pro/license'),St=_0x3cc0f6(0x2c2),Jt='/universer-api/snapshot',vt=_0x3cc0f6(0x327),Zt=_0x3cc0f6(0x475),Qt=0x7d0,mt=_0x3cc0f6(0x4ca),es=_0x3cc0f6(0x2ec),gt='HEARTBEAT_INTERVAL',ts=0x7530,Ge=_0x3cc0f6(0x3d1),ft=0x4e20,ss=0x4e20,It=_0x3cc0f6(0x28d),is=0x3,pt='LOCAL_CACHE_INTERVAL',ns=0x3e8,Ct='COLLAB_SUBMIT_CHANGESET_URL',rs=_0x3cc0f6(0x5a0),Et='LOGIN_URL_KEY',os=_0x3cc0f6(0x37c);var bt=(_0x4a3f09=>(_0x4a3f09[_0x4a3f09['UNDEFINED']=0x0]='UNDEFINED',_0x4a3f09[_0x4a3f09['OK']=0x1]='OK',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x360)]=0x2]=_0x3cc0f6(0x360),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x1f7)]=0x3]=_0x3cc0f6(0x1f7),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x5ab)]=0x4]=_0x3cc0f6(0x5ab),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x34e)]=0x5]=_0x3cc0f6(0x34e),_0x4a3f09[_0x4a3f09['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x54b)]=0x7]=_0x3cc0f6(0x54b),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x213)]=0x8]=_0x3cc0f6(0x213),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x1cc)]=0x9]='COMPLETION_FINISHED',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x278)]=0x1389]=_0x3cc0f6(0x278),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x291)]=0x1771]=_0x3cc0f6(0x291),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x558)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x392)]=0x1773]=_0x3cc0f6(0x392),_0x4a3f09[_0x4a3f09['APPLY_REJECT']=0x1b59]=_0x3cc0f6(0x4c7),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x441)]=0x1b5a]=_0x3cc0f6(0x441),_0x4a3f09[_0x4a3f09['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x549)]=0x1b5c]=_0x3cc0f6(0x549),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x30a)]=0x1b5d]=_0x3cc0f6(0x30a),_0x4a3f09[_0x4a3f09['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3cc0f6(0x22d),_0x4a3f09[_0x4a3f09['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3cc0f6(0x365),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x53d)]=0x232a]=_0x3cc0f6(0x53d),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x2ee)]=0x232b]=_0x3cc0f6(0x2ee),_0x4a3f09[_0x4a3f09['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3cc0f6(0x453),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x47b)]=0x232d]=_0x3cc0f6(0x47b),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x326)]=0x2711]=_0x3cc0f6(0x326),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x2a7)]=0x2712]=_0x3cc0f6(0x2a7),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x37f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4a3f09[_0x4a3f09['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x4a3f09))(bt||{}),H=(_0x560814=>(_0x560814[_0x560814[_0x3cc0f6(0x258)]=0x0]=_0x3cc0f6(0x258),_0x560814[_0x560814[_0x3cc0f6(0x3c6)]=0x1]=_0x3cc0f6(0x3c6),_0x560814[_0x560814[_0x3cc0f6(0x336)]=0x2]=_0x3cc0f6(0x336),_0x560814[_0x560814[_0x3cc0f6(0x477)]=0x3]=_0x3cc0f6(0x477),_0x560814[_0x560814[_0x3cc0f6(0x37e)]=0x4]=_0x3cc0f6(0x37e),_0x560814[_0x560814[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x560814))(H||{}),b=(_0x2da020=>(_0x2da020[_0x2da020[_0x3cc0f6(0x4ce)]=0x0]=_0x3cc0f6(0x4ce),_0x2da020[_0x2da020[_0x3cc0f6(0x491)]=0x1]='HELLO',_0x2da020[_0x2da020[_0x3cc0f6(0x516)]=0x2]=_0x3cc0f6(0x516),_0x2da020[_0x2da020[_0x3cc0f6(0x409)]=0x3]=_0x3cc0f6(0x409),_0x2da020[_0x2da020['INGEST']=0x4]=_0x3cc0f6(0x3ab),_0x2da020[_0x2da020['HEARTBEAT']=0x5]=_0x3cc0f6(0x3e2),_0x2da020[_0x2da020[_0x3cc0f6(0x515)]=0x6]='RECV',_0x2da020[_0x2da020[_0x3cc0f6(0x505)]=-0x1]='UNRECOGNIZED',_0x2da020))(b||{}),Ye=(_0x13f139=>(_0x13f139[_0x13f139['UNKNOWN_CODE']=0x0]=_0x3cc0f6(0x4fb),_0x13f139[_0x13f139['OK']=0x1]='OK',_0x13f139[_0x13f139['FAIL']=0x2]=_0x3cc0f6(0x499),_0x13f139[_0x13f139[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x13f139))(Ye||{}),Tt=(_0x4a68ad=>(_0x4a68ad[_0x4a68ad['Undefined']=0x0]='Undefined',_0x4a68ad[_0x4a68ad['HttpImport']=0x1]='HttpImport',_0x4a68ad[_0x4a68ad[_0x3cc0f6(0x307)]=0x2]='HttpExport',_0x4a68ad[_0x4a68ad['UnitEmbedded']=0x3]=_0x3cc0f6(0x43c),_0x4a68ad[_0x4a68ad['UnitSnapshot']=0x4]=_0x3cc0f6(0x398),_0x4a68ad[_0x4a68ad[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x4a68ad))(Tt||{});const $=_0x3cc0f6(0x30b),as={};function Rt(_0xac5a74){const _0x53ca49=_0x3cc0f6;var _0x34b95e,_0x219445,_0x170154,_0x360f6a,_0x2583ce;const _0x517040=_0xac5a74[_0x53ca49(0x35a)],_0xd98a66=JSON[_0x53ca49(0x5b4)](_0x517040);switch(_0xd98a66['cmd']){case b[_0x53ca49(0x3e2)]:case b[_0x53ca49(0x491)]:{const _0x7be9ed=_0xd98a66[_0x53ca49(0x5b9)];return{..._0xd98a66,'data':_0x7be9ed,'cmd':_0xd98a66['cmd']};}case b[_0x53ca49(0x516)]:{const _0x3769f3=_0xd98a66['joinRsp'];return{..._0xd98a66,'data':_0x3769f3,'cmd':_0xd98a66[_0x53ca49(0x1e5)]};}case b[_0x53ca49(0x515)]:{const _0x321f53=_0xd98a66[_0x53ca49(0x3a3)];switch(_0x321f53[_0x53ca49(0x21b)]){case _['CollaborationEvent'][_0x53ca49(0x5ac)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x34b95e=_0x321f53[_0x53ca49(0x538)])==null?void 0x0:_0x34b95e['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)][_0x53ca49(0x29c)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x219445=_0x321f53['csAckEvent'])==null?void 0x0:_0x219445['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)][_0x53ca49(0x3aa)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x170154=_0x321f53['newCsEvent'])==null?void 0x0:_0x170154['cs']},'cmd':_0xd98a66['cmd']};case _[_0x53ca49(0x400)][_0x53ca49(0x43a)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x360f6a=_0x321f53[_0x53ca49(0x594)])==null?void 0x0:_0x360f6a['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)]['CHANGESET_SHOULD_RETRY']:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x2583ce=_0x321f53[_0x53ca49(0x3f8)])==null?void 0x0:_0x2583ce['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _['CollaborationEvent'][_0x53ca49(0x284)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x41f)]},'cmd':_0xd98a66['cmd']};case _['CollaborationEvent'][_0x53ca49(0x3a0)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53['joinEvent']},'cmd':_0xd98a66['cmd']};case _[_0x53ca49(0x400)][_0x53ca49(0x5cf)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x2a1)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _['CollaborationEvent'][_0x53ca49(0x2e3)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x59f)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)][_0x53ca49(0x542)]:case _[_0x53ca49(0x400)][_0x53ca49(0x349)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x22b)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x59f)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)]['MSG_FOR_ERROR']:return{..._0xd98a66,'data':_0x321f53,'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)]['COMMENT_UPDATE']:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x4c1)]},'cmd':_0xd98a66['cmd']};case _['CollaborationEvent'][_0x53ca49(0x1d8)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53['updatePermissionObjEvent']},'cmd':_0xd98a66['cmd']};case _['CollaborationEvent'][_0x53ca49(0x2f5)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x528)]},'cmd':_0xd98a66['cmd']};default:return _0xd98a66;}}default:return _0xd98a66;}}function Ot(_0x29414b){const _0x18a975=_0x3cc0f6;switch(_0x29414b[_0x18a975(0x1e5)]){case b[_0x18a975(0x3e2)]:case b['HELLO']:return JSON[_0x18a975(0x492)]({'cmd':_0x29414b['cmd'],'routeKey':_0x29414b[_0x18a975(0x242)]});case b['INGEST']:{let _0x7c91d4;switch(_0x29414b['data'][_0x18a975(0x21b)]){case _[_0x18a975(0x400)][_0x18a975(0x284)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)]['UPDATE_CURSOR'],'updateCursorEvent':_0x29414b[_0x18a975(0x35a)]['data']};break;}case _[_0x18a975(0x400)]['USERS_LEAVE']:{_0x7c91d4={'eventID':_['CollaborationEvent'][_0x18a975(0x5cf)],'leaveEvent':_0x29414b[_0x18a975(0x35a)][_0x18a975(0x35a)]};break;}case _[_0x18a975(0x400)][_0x18a975(0x3a0)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x3a0)],'joinEvent':_0x29414b[_0x18a975(0x35a)]['data']};break;}case _[_0x18a975(0x400)]['LIVESHARE_NEW_HOST']:{_0x7c91d4={'eventID':_[_0x18a975(0x400)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x29414b['data'][_0x18a975(0x35a)]};break;}case _['CollaborationEvent'][_0x18a975(0x349)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x349)],'liveShareOperation':_0x29414b['data'][_0x18a975(0x35a)]};break;}case _[_0x18a975(0x400)][_0x18a975(0x3c9)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x3c9)],'liveShareTerminate':_0x29414b[_0x18a975(0x35a)]['data']};break;}case _[_0x18a975(0x400)][_0x18a975(0x2b6)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x2b6)],'liveShareRequestHost':_0x29414b[_0x18a975(0x35a)][_0x18a975(0x35a)]};break;}case _[_0x18a975(0x400)][_0x18a975(0x542)]:{_0x7c91d4={'eventID':_['CollaborationEvent'][_0x18a975(0x542)]};break;}default:_0x7c91d4={'eventID':_0x29414b[_0x18a975(0x35a)][_0x18a975(0x21b)]};}return JSON[_0x18a975(0x492)]({'cmd':_0x29414b['cmd'],'routeKey':_0x29414b['routeKey'],'collaMsg':_0x7c91d4});}case b['JOIN']:return JSON[_0x18a975(0x492)]({'cmd':_0x29414b[_0x18a975(0x1e5)],'routeKey':_0x29414b['routeKey'],'joinReq':_0x29414b[_0x18a975(0x35a)]});case b[_0x18a975(0x409)]:return JSON[_0x18a975(0x492)]({'cmd':_0x29414b[_0x18a975(0x1e5)],'routeKey':_0x29414b[_0x18a975(0x242)],'leaveReq':_0x29414b['data']});default:throw new Error(_0x18a975(0x2cf));}}var cs=Object['defineProperty'],ls=Object['getOwnPropertyDescriptor'],hs=(_0x26a37c,_0x2361e9,_0x166845,_0x2cf996)=>{const _0x21bfdc=_0x3cc0f6;for(var _0x5cfc86=_0x2cf996>0x1?void 0x0:_0x2cf996?ls(_0x2361e9,_0x166845):_0x2361e9,_0x583d36=_0x26a37c[_0x21bfdc(0x411)]-0x1,_0xecfe99;_0x583d36>=0x0;_0x583d36--)(_0xecfe99=_0x26a37c[_0x583d36])&&(_0x5cfc86=(_0x2cf996?_0xecfe99(_0x2361e9,_0x166845,_0x5cfc86):_0xecfe99(_0x5cfc86))||_0x5cfc86);return _0x2cf996&&_0x5cfc86&&cs(_0x2361e9,_0x166845,_0x5cfc86),_0x5cfc86;},ce=(_0x49b76a,_0xd814a8)=>(_0x24b534,_0x1887f9)=>_0xd814a8(_0x24b534,_0x1887f9,_0x49b76a);const Ke=a[_0x3cc0f6(0x292)](_0x3cc0f6(0x36e));function _s(_0x358b98,_0x554245,_0x4fe9d2){const _0x41400d=_0x3cc0f6;return _0x358b98+'/'+_0x554245+_0x41400d(0x3b4)+_0x4fe9d2+'/new_changes';}exports['CollaborationSocketService']=class extends a[_0x3cc0f6(0x31b)]{constructor(_0x58d306,_0x5347d1,_0x7d7a2b,_0x75bbc7,_0x2a05b5){const _0x4bd7d1=_0x3cc0f6;super(),this[_0x4bd7d1(0x440)]=_0x58d306,this[_0x4bd7d1(0x425)]=_0x5347d1,this[_0x4bd7d1(0x5e0)]=_0x7d7a2b,this[_0x4bd7d1(0x518)]=_0x75bbc7,this[_0x4bd7d1(0x32e)]=_0x2a05b5;}[_0x3cc0f6(0x4a5)](_0x5d6fcf){const _0x1a02f2=_0x3cc0f6,_0x22f70a=this[_0x1a02f2(0x425)]['createSocket'](_0x5d6fcf);if(!_0x22f70a)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x13443a=new a[(_0x1a02f2(0x2df))](),_0x1857b5=new v[(_0x1a02f2(0x2c3))]();_0x13443a[_0x1a02f2(0x44c)](_0x22f70a['close$'][_0x1a02f2(0x342)](_0x554ae5=>_0x1857b5['next'](_0x554ae5))),_0x13443a[_0x1a02f2(0x44c)](a[_0x1a02f2(0x2ba)](()=>_0x1857b5[_0x1a02f2(0x5d2)]()));const _0x402acf=new v[(_0x1a02f2(0x2c3))]();_0x13443a['add'](_0x22f70a[_0x1a02f2(0x4c3)][_0x1a02f2(0x342)](_0x51edad=>_0x402acf[_0x1a02f2(0x517)](_0x51edad))),_0x13443a[_0x1a02f2(0x44c)](a[_0x1a02f2(0x2ba)](()=>_0x402acf[_0x1a02f2(0x5d2)]()));const _0x4ce34d=new v[(_0x1a02f2(0x2c3))]();_0x13443a[_0x1a02f2(0x44c)](_0x22f70a['message$']['subscribe'](_0x39e64b=>{const _0xa1500c=_0x1a02f2,_0x36b7ef=Rt(_0x39e64b);_0x4ce34d[_0xa1500c(0x517)](_0x36b7ef);})),_0x13443a[_0x1a02f2(0x44c)](a[_0x1a02f2(0x2ba)](()=>_0x4ce34d[_0x1a02f2(0x5d2)]()));let _0x5b69d1;const _0x49cf8e=()=>{const _0x21c9c5=_0x1a02f2;_0x402acf['next'](new Event(_0x21c9c5(0x2c8))),_0x1857b5['next'](new CloseEvent(_0x21c9c5(0x2c8))),_0x5b69d1['close']();};return _0x5b69d1={'memberID':'','close$':_0x1857b5[_0x1a02f2(0x459)](),'error$':_0x402acf['asObservable'](),'open$':_0x22f70a[_0x1a02f2(0x340)],'message$':_0x4ce34d[_0x1a02f2(0x459)](),'send':_0x196a81=>{const _0x277448=_0x1a02f2;if(_0x196a81['cmd']===b[_0x277448(0x3ab)]){if(_0x196a81[_0x277448(0x35a)][_0x277448(0x21b)]===_['CollaborationEvent'][_0x277448(0x23f)]){this[_0x277448(0x55d)](_0x5b69d1,_0x196a81[_0x277448(0x35a)])[_0x277448(0x4fc)](_0x4fcdc0=>{const _0x1987ec=_0x277448;this[_0x1987ec(0x518)][_0x1987ec(0x2c9)](_0x4fcdc0),_0x49cf8e();});return;}if(_0x196a81[_0x277448(0x35a)]['eventID']===_['CollaborationEvent'][_0x277448(0x229)]){const _0x31f0b4=_0x196a81[_0x277448(0x35a)];this[_0x277448(0x598)](_0x31f0b4)['then'](_0x3bf4e4=>{const _0x287a55=_0x277448;_0x4ce34d[_0x287a55(0x517)]({'cmd':b[_0x287a55(0x515)],'code':Ye['OK'],'routeKey':_0x31f0b4[_0x287a55(0x35a)][_0x287a55(0x426)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x287a55(0x275)],'data':{'changesets':_0x3bf4e4}}});})[_0x277448(0x4fc)](_0x3e65ba=>{const _0x1d6689=_0x277448;this['_logService'][_0x1d6689(0x2c9)](_0x3e65ba),_0x49cf8e();});return;}}_0x22f70a[_0x277448(0x5d7)](Ot(_0x196a81));},'close':()=>{const _0x55d94a=_0x1a02f2;_0x22f70a['close'](),_0x13443a[_0x55d94a(0x32b)]();}},_0x5b69d1;}async[_0x3cc0f6(0x55d)](_0x244792,_0x6e90a2){const _0x49ec32=_0x3cc0f6;var _0xcc4321,_0x4dbe51;const {unitType:_0x217fa0,unitID:_0x2214be,changeset:_0x33a058}=_0x6e90a2[_0x49ec32(0x35a)],_0x450f53={'unitID':_0x2214be,'memberID':_0x244792[_0x49ec32(0x335)],'type':_0x217fa0,'changeset':_['parseChangesetToProtocol'](_0x33a058)},_0x537f2f=this[_0x49ec32(0x5e0)][_0x49ec32(0x458)](Ct),_0x336af=this['_configService'][_0x49ec32(0x458)]($),_0x152e86=_s((_0x4dbe51=(_0xcc4321=_0x336af==null?void 0x0:_0x336af[_0x49ec32(0x2d1)])!=null?_0xcc4321:_0x537f2f)!=null?_0x4dbe51:rs,_0x217fa0,_0x2214be);try{await this[_0x49ec32(0x440)]['post'](_0x152e86,{'body':_0x450f53});}catch(_0x436680){throw this[_0x49ec32(0x518)][_0x49ec32(0x2c9)]('[CollaborationSession]',_0x49ec32(0x364)),_0x436680;}}async[_0x3cc0f6(0x598)](_0xd9fc92){const _0x14b6e1=_0x3cc0f6,{unitID:_0x34950b,from:_0x176f24,to:_0x450259,unitType:_0x37828a}=_0xd9fc92['data'];return(await this['_snapshotServerService'][_0x14b6e1(0x2c7)]({'metadata':void 0x0},{'unitID':_0x34950b,'type':_0x37828a,'from':_0x176f24,'to':_0x450259}))['changesets'];}},exports[_0x3cc0f6(0x322)]=hs([ce(0x0,a[_0x3cc0f6(0x573)](U[_0x3cc0f6(0x43f)])),ce(0x1,a['Inject'](U[_0x3cc0f6(0x3d2)])),ce(0x2,a[_0x3cc0f6(0x5d3)]),ce(0x3,a[_0x3cc0f6(0x24d)]),ce(0x4,_['ISnapshotServerService'])],exports[_0x3cc0f6(0x322)]);const us='collaboration_new_changeset';function ds(_0x3694df){const _0x707163=_0x3cc0f6;return JSON['stringify'](_0x3694df)[_0x707163(0x411)];}class Xe{constructor(){const _0x1b62a4=_0x3cc0f6;u(this,_0x1b62a4(0x418),new v['Subject']()),u(this,'commentUpdate$',this[_0x1b62a4(0x418)][_0x1b62a4(0x459)]());}[_0x3cc0f6(0x58f)](_0x48ef7d){const _0x35e3bf=_0x3cc0f6;this[_0x35e3bf(0x418)][_0x35e3bf(0x517)](_0x48ef7d);}}var Ss=Object[_0x3cc0f6(0x1c6)],vs=Object[_0x3cc0f6(0x544)],ms=(_0xbf2a80,_0x34828f,_0x29254b,_0x188032)=>{for(var _0x1d8467=_0x188032>0x1?void 0x0:_0x188032?vs(_0x34828f,_0x29254b):_0x34828f,_0x2ccfe3=_0xbf2a80['length']-0x1,_0x5e7eb6;_0x2ccfe3>=0x0;_0x2ccfe3--)(_0x5e7eb6=_0xbf2a80[_0x2ccfe3])&&(_0x1d8467=(_0x188032?_0x5e7eb6(_0x34828f,_0x29254b,_0x1d8467):_0x5e7eb6(_0x1d8467))||_0x1d8467);return _0x188032&&_0x1d8467&&Ss(_0x34828f,_0x29254b,_0x1d8467),_0x1d8467;},tt=(_0x5a8172,_0x477bcc)=>(_0x585df7,_0x331a06)=>_0x477bcc(_0x585df7,_0x331a06,_0x5a8172);let Z=class extends a['Disposable']{constructor(_0x4bc567,_0x1c34c1){const _0x47360d=_0x3cc0f6;super(),u(this,_0x47360d(0x343),new Map()),(this[_0x47360d(0x34b)]=_0x4bc567,this[_0x47360d(0x319)]=_0x1c34c1,this[_0x47360d(0x217)](a['toDisposable'](v[_0x47360d(0x570)](this['_univerInstanceService'][_0x47360d(0x1f9)](a['UniverInstanceType'][_0x47360d(0x336)])[_0x47360d(0x57c)](E['map'](_0x4b323a=>_0x4b323a[_0x47360d(0x527)]())),this[_0x47360d(0x34b)][_0x47360d(0x1f9)](a[_0x47360d(0x31e)][_0x47360d(0x3c6)])['pipe'](E[_0x47360d(0x282)](_0x680870=>_0x680870[_0x47360d(0x527)]())),this[_0x47360d(0x34b)][_0x47360d(0x1f9)](a['UniverInstanceType'][_0x47360d(0x477)])['pipe'](E['map'](_0xc334ec=>_0xc334ec[_0x47360d(0x527)]())))[_0x47360d(0x342)](_0x4e3829=>this[_0x47360d(0x3ce)](_0x4e3829)))));}[_0x3cc0f6(0x3fe)](_0x505085){const _0x329dd4=_0x3cc0f6;this[_0x329dd4(0x319)][_0x329dd4(0x3fe)](_0x505085);}[_0x3cc0f6(0x3c2)](){const _0x4c5727=_0x3cc0f6;return this[_0x4c5727(0x319)][_0x4c5727(0x3c2)]();}[_0x3cc0f6(0x274)](_0x2803b9,_0x41968d){const _0x247b5c=_0x3cc0f6;let _0x474502=this['_roomMembers']['get'](_0x2803b9);_0x474502||(_0x474502=new gs(),this['_roomMembers'][_0x247b5c(0x420)](_0x2803b9,_0x474502)),_0x474502[_0x247b5c(0x274)](_0x41968d);}[_0x3cc0f6(0x401)](_0x2fb5ac,_0x107c13){const _0x2211d8=_0x3cc0f6,_0x44e4e4=this['_roomMembers'][_0x2211d8(0x3de)](_0x2fb5ac);_0x44e4e4&&_0x44e4e4[_0x2211d8(0x401)](_0x107c13);}[_0x3cc0f6(0x4d3)](_0x1a0ea1){const _0x22a747=_0x3cc0f6;return this[_0x22a747(0x343)][_0x22a747(0x3de)](_0x1a0ea1);}[_0x3cc0f6(0x5cc)](_0x110e6,_0x5eb5ca){const _0x178fc9=_0x3cc0f6,_0x2671a1=this[_0x178fc9(0x343)][_0x178fc9(0x3de)](_0x110e6);if(_0x2671a1)return _0x2671a1['getMember'](_0x5eb5ca);}[_0x3cc0f6(0x3ce)](_0x343414){const _0x5ac0d5=_0x3cc0f6,_0x3668b4=this[_0x5ac0d5(0x343)][_0x5ac0d5(0x3de)](_0x343414);_0x3668b4&&(_0x3668b4['dispose'](),this[_0x5ac0d5(0x343)][_0x5ac0d5(0x3c4)](_0x343414));}['dispose'](){const _0x2e6d01=_0x3cc0f6;this[_0x2e6d01(0x343)][_0x2e6d01(0x300)](_0x197a13=>_0x197a13[_0x2e6d01(0x32b)]()),this[_0x2e6d01(0x343)]['clear']();}};Z=ms([tt(0x0,a[_0x3cc0f6(0x2f2)]),tt(0x1,a['Inject'](a['UserManagerService']))],Z);class gs extends a['Disposable']{constructor(){const _0x15afb2=_0x3cc0f6;super(...arguments),u(this,_0x15afb2(0x4eb),new Map());}[_0x3cc0f6(0x32b)](){const _0x3247a0=_0x3cc0f6;this[_0x3247a0(0x4eb)][_0x3247a0(0x48b)]();}[_0x3cc0f6(0x274)](_0x3449c9){const _0x2f5d06=_0x3cc0f6;this[_0x2f5d06(0x4eb)][_0x2f5d06(0x420)](_0x3449c9[_0x2f5d06(0x335)],_0x3449c9);}[_0x3cc0f6(0x401)](_0x3b05d1){const _0x391b84=_0x3cc0f6;this[_0x391b84(0x4eb)][_0x391b84(0x3c4)](_0x3b05d1);}[_0x3cc0f6(0x5cc)](_0x478297){const _0x4cc045=_0x3cc0f6;return this[_0x4cc045(0x4eb)][_0x4cc045(0x3de)](_0x478297);}}var fs=Object[_0x3cc0f6(0x1c6)],Is=Object[_0x3cc0f6(0x544)],ps=(_0x1def16,_0x5ed8b7,_0x27480c,_0x354389)=>{for(var _0x16709d=_0x354389>0x1?void 0x0:_0x354389?Is(_0x5ed8b7,_0x27480c):_0x5ed8b7,_0x5d5bca=_0x1def16['length']-0x1,_0x49858b;_0x5d5bca>=0x0;_0x5d5bca--)(_0x49858b=_0x1def16[_0x5d5bca])&&(_0x16709d=(_0x354389?_0x49858b(_0x5ed8b7,_0x27480c,_0x16709d):_0x49858b(_0x16709d))||_0x16709d);return _0x354389&&_0x16709d&&fs(_0x5ed8b7,_0x27480c,_0x16709d),_0x16709d;},G=(_0x3279d4,_0x5990a9)=>(_0x920dde,_0x111442)=>_0x5990a9(_0x920dde,_0x111442,_0x3279d4),x=(_0x7745c9=>(_0x7745c9[_0x7745c9[_0x3cc0f6(0x1bf)]=0x0]=_0x3cc0f6(0x1bf),_0x7745c9[_0x7745c9[_0x3cc0f6(0x405)]=0x1]=_0x3cc0f6(0x405),_0x7745c9[_0x7745c9['OFFLINE']=0x2]=_0x3cc0f6(0x50c),_0x7745c9[_0x7745c9[_0x3cc0f6(0x478)]=0x3]='ONLINE',_0x7745c9))(x||{});exports[_0x3cc0f6(0x206)]=class extends a['RxDisposable']{constructor(_0x2c56ea,_0x168739,_0x51e824,_0x5f26a9,_0x13e18c,_0x139bba,_0x28317e,_0x2833cd,_0x55cd61,_0x13e4d9){const _0x3b8c51=_0x3cc0f6;super(),u(this,'_sessionStatus$',new v['BehaviorSubject'](0x0)),u(this,_0x3b8c51(0x1eb),this['_sessionStatus$'][_0x3b8c51(0x459)]()),u(this,_0x3b8c51(0x596),new v[(_0x3b8c51(0x2c3))]()),u(this,'event$',this[_0x3b8c51(0x596)][_0x3b8c51(0x459)]()),u(this,_0x3b8c51(0x286)),u(this,_0x3b8c51(0x5e9)),u(this,_0x3b8c51(0x24a)),u(this,_0x3b8c51(0x4e5),!0x1),u(this,_0x3b8c51(0x20e),null),(this['_unitID']=_0x2c56ea,this[_0x3b8c51(0x518)]=_0x51e824,this[_0x3b8c51(0x3a7)]=_0x5f26a9,this[_0x3b8c51(0x1cd)]=_0x13e18c,this['_configService']=_0x139bba,this['_localeService']=_0x28317e,this[_0x3b8c51(0x5a7)]=_0x2833cd,this[_0x3b8c51(0x1c5)]=_0x55cd61,this[_0x3b8c51(0x3b2)]=_0x13e4d9,this[_0x3b8c51(0x4e5)]=!!this[_0x3b8c51(0x3b2)],_0x168739['pipe'](v['takeUntil'](this[_0x3b8c51(0x38b)]))[_0x3b8c51(0x342)](_0x13212e=>{const _0x40e68=_0x3b8c51;var _0x13af71;typeof _0x13212e>'u'||(this[_0x40e68(0x286)]=_0x13212e,_0x13212e?(this[_0x40e68(0x450)](_0x13212e),this['_socketMessageSubscription']=_0x13212e[_0x40e68(0x354)][_0x40e68(0x342)](_0x103bfe=>{const _0x56287e=_0x40e68;_0x103bfe[_0x56287e(0x242)]===this[_0x56287e(0x3db)]&&this[_0x56287e(0x4cb)](_0x103bfe);})):(this[_0x40e68(0x497)](),this[_0x40e68(0x382)][_0x40e68(0x517)](0x2),(_0x13af71=this[_0x40e68(0x5e9)])==null||_0x13af71['unsubscribe'](),this[_0x40e68(0x5e9)]=null));}),this[_0x3b8c51(0x217)](this[_0x3b8c51(0x3a7)][_0x3b8c51(0x2e7)](()=>{const _0x133ae6=_0x3b8c51;var _0x7c2193;(_0x7c2193=this[_0x133ae6(0x286)])==null||_0x7c2193['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x133ae6(0x3db)]}});})));}get[_0x3cc0f6(0x37a)](){const _0x11ff45=_0x3cc0f6;return this['_sessionStatus$'][_0x11ff45(0x535)]();}[_0x3cc0f6(0x1f1)](){const _0x10d373=_0x3cc0f6;var _0x3dd42c,_0x381165;return(_0x381165=(_0x3dd42c=this[_0x10d373(0x286)])==null?void 0x0:_0x3dd42c['memberID'])!=null?_0x381165:null;}[_0x3cc0f6(0x32b)](){const _0x1a7c51=_0x3cc0f6;super[_0x1a7c51(0x32b)](),this[_0x1a7c51(0x38b)][_0x1a7c51(0x517)](),this[_0x1a7c51(0x38b)]['complete']();}[_0x3cc0f6(0x44d)](){const _0x51403f=_0x3cc0f6;var _0x173121,_0x1d042c;this['_throwTelemetryCollaborationNewChangeset'](),(_0x173121=this[_0x51403f(0x286)])==null||_0x173121[_0x51403f(0x5d7)]({'cmd':b[_0x51403f(0x409)],'data':{'roomID':this[_0x51403f(0x3db)]}}),(_0x1d042c=this[_0x51403f(0x286)])==null||_0x1d042c[_0x51403f(0x44d)](),this[_0x51403f(0x596)]['complete'](),this[_0x51403f(0x382)][_0x51403f(0x5d2)](),this[_0x51403f(0x32b)]();}['_onCombEvent'](_0x2791b4){const _0x304112=_0x3cc0f6;_0x2791b4[_0x304112(0x1e5)]===b[_0x304112(0x516)]?this[_0x304112(0x51f)](_0x2791b4):_0x2791b4[_0x304112(0x1e5)]===b[_0x304112(0x515)]&&this[_0x304112(0x2ed)](_0x2791b4);}['_joinRoom'](_0x40e990){const _0x38865b=_0x3cc0f6;this[_0x38865b(0x382)]['next'](0x1),_0x40e990[_0x38865b(0x5d7)]({'cmd':b[_0x38865b(0x516)],'routeKey':this[_0x38865b(0x3db)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x29a9eb){const _0x5223d5=_0x3cc0f6;var _0x5de765;if(_0x29a9eb[_0x5223d5(0x5bf)]===Ye[_0x5223d5(0x499)]){this[_0x5223d5(0x1cd)][_0x5223d5(0x438)]({'type':J[_0x5223d5(0x2ce)]['Warning'],'content':this[_0x5223d5(0x36b)]['t'](_0x5223d5(0x584))}),this[_0x5223d5(0x382)][_0x5223d5(0x517)](0x2);return;}this[_0x5223d5(0x382)]['next'](0x3);const _0x3103f8=(_0x5de765=_0x29a9eb[_0x5223d5(0x35a)]['roomInfos'][this[_0x5223d5(0x3db)]])==null?void 0x0:_0x5de765[_0x5223d5(0x2b3)];_0x3103f8&&_0x3103f8[_0x5223d5(0x300)](_0x59cbde=>this[_0x5223d5(0x5a7)][_0x5223d5(0x274)](this[_0x5223d5(0x3db)],_0x59cbde));}[_0x3cc0f6(0x2ed)](_0x54ae52){const _0x4bb776=_0x3cc0f6;try{const _0x4d0de4=_0x54ae52['data'];switch(_0x4d0de4[_0x4bb776(0x21b)]){case _[_0x4bb776(0x400)]['USERS_ENTER']:this[_0x4bb776(0x435)](_0x4d0de4),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;case _['CollaborationEvent'][_0x4bb776(0x5cf)]:this[_0x4bb776(0x483)](_0x4d0de4),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;case _[_0x4bb776(0x400)]['CHANGESET_ACK']:case _['CollaborationEvent'][_0x4bb776(0x5bc)]:this[_0x4bb776(0x575)](),this[_0x4bb776(0x500)](),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;case _['CollaborationEvent'][_0x4bb776(0x3c8)]:this[_0x4bb776(0x518)]['error'](_0x4bb776(0x370)+JSON[_0x4bb776(0x492)](_0x4d0de4)),this['_event$'][_0x4bb776(0x517)](_0x4d0de4);break;case _[_0x4bb776(0x400)][_0x4bb776(0x53c)]:this['_commentService'][_0x4bb776(0x58f)](_0x4d0de4[_0x4bb776(0x35a)]),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;default:this[_0x4bb776(0x596)]['next'](_0x4d0de4);}}catch(_0x2eb878){this[_0x4bb776(0x518)][_0x4bb776(0x2c9)](_0x2eb878,_0x54ae52);}}[_0x3cc0f6(0x435)](_0x28a15f){const _0x235740=_0x3cc0f6;this[_0x235740(0x5a7)]['updateMember'](this[_0x235740(0x3db)],_0x28a15f[_0x235740(0x35a)]);}['_onUserLeave'](_0xf3f87a){const _0xa43a83=_0x3cc0f6;this['_memberService'][_0xa43a83(0x401)](this[_0xa43a83(0x3db)],_0xf3f87a[_0xa43a83(0x35a)][_0xa43a83(0x335)]);}async[_0x3cc0f6(0x5d7)](_0x361bbf,_0x4d9cae){const _0x2bc2e6=_0x3cc0f6;if(this[_0x2bc2e6(0x37a)]!==0x3||!this[_0x2bc2e6(0x286)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x361bbf[_0x2bc2e6(0x21b)]===_['CollaborationEvent'][_0x2bc2e6(0x23f)]&&(this[_0x2bc2e6(0x503)](),this[_0x2bc2e6(0x1d4)](_0x361bbf)),this['_socket'][_0x2bc2e6(0x5d7)]({'cmd':b[_0x2bc2e6(0x3ab)],'routeKey':_0x4d9cae,'routeType':'','data':_0x361bbf});}catch(_0x5a0565){this['_logService'][_0x2bc2e6(0x2c9)](_0x5a0565);}}[_0x3cc0f6(0x503)](){const _0x2013d5=_0x3cc0f6;var _0x50e889;this[_0x2013d5(0x24a)]=window[_0x2013d5(0x556)](()=>{const _0x51ba12=_0x2013d5;this['_collaborationTimeoutTimer']=null,this[_0x51ba12(0x1cd)][_0x51ba12(0x438)]({'type':J['MessageType']['Error'],'content':this[_0x51ba12(0x36b)]['t'](_0x51ba12(0x3e8))});},(_0x50e889=this[_0x2013d5(0x5e0)][_0x2013d5(0x458)](Ge))!=null?_0x50e889:ft);}[_0x3cc0f6(0x500)](){const _0x3b3f3e=_0x3cc0f6;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x3b3f3e(0x24a)]),this[_0x3b3f3e(0x24a)]=null);}[_0x3cc0f6(0x1d4)](_0x462791){const _0x5142b0=_0x3cc0f6;if(!this[_0x5142b0(0x4e5)])return;const {data:_0x4141df}=_0x462791,{unitID:_0x181af6,changeset:_0x6f07e7}=_0x4141df,{mutations:_0x5c125d,type:_0xedd242}=_0x6f07e7;this[_0x5142b0(0x20e)]={'unitId':_0x181af6,'type':_0xedd242,'startTime':performance[_0x5142b0(0x2fd)](),'stopTime':0x0,'duration':0x0,'size':ds(_0x5c125d)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x309ea7=_0x3cc0f6;if(this[_0x309ea7(0x4e5)]){if(!this[_0x309ea7(0x20e)]){this[_0x309ea7(0x518)][_0x309ea7(0x2c9)](_0x309ea7(0x539),_0x309ea7(0x560));return;}this['_telemetryInfo'][_0x309ea7(0x48f)]=performance['now'](),this[_0x309ea7(0x20e)][_0x309ea7(0x3a2)]=this['_telemetryInfo'][_0x309ea7(0x48f)]-this['_telemetryInfo'][_0x309ea7(0x23b)],this[_0x309ea7(0x3b2)]['capture'](us,this[_0x309ea7(0x20e)]),this[_0x309ea7(0x20e)]=null;}}[_0x3cc0f6(0x497)](){this['_telemetryInfo']=null;}},exports[_0x3cc0f6(0x206)]=ps([G(0x2,a[_0x3cc0f6(0x24d)]),G(0x3,A['IBeforeCloseService']),G(0x4,A['IMessageService']),G(0x5,a[_0x3cc0f6(0x5d3)]),G(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),G(0x7,a[_0x3cc0f6(0x573)](Z)),G(0x8,a[_0x3cc0f6(0x573)](Xe)),G(0x9,a[_0x3cc0f6(0x273)](Xt[_0x3cc0f6(0x32c)]))],exports['CollaborationSession']);var Cs=Object[_0x3cc0f6(0x1c6)],Es=Object['getOwnPropertyDescriptor'],bs=(_0x3866ac,_0x32b78a,_0x57d840,_0x33e884)=>{const _0x4f6756=_0x3cc0f6;for(var _0x55cb0d=_0x33e884>0x1?void 0x0:_0x33e884?Es(_0x32b78a,_0x57d840):_0x32b78a,_0x5dab1c=_0x3866ac[_0x4f6756(0x411)]-0x1,_0x532d47;_0x5dab1c>=0x0;_0x5dab1c--)(_0x532d47=_0x3866ac[_0x5dab1c])&&(_0x55cb0d=(_0x33e884?_0x532d47(_0x32b78a,_0x57d840,_0x55cb0d):_0x532d47(_0x55cb0d))||_0x55cb0d);return _0x33e884&&_0x55cb0d&&Cs(_0x32b78a,_0x57d840,_0x55cb0d),_0x55cb0d;},te=(_0x136d1e,_0x4290ae)=>(_0xda620b,_0x55e204)=>_0x4290ae(_0xda620b,_0x55e204,_0x136d1e);exports[_0x3cc0f6(0x3c0)]=class extends a['Disposable']{constructor(_0x466c6d,_0x1caa24,_0x587178,_0x34b54b,_0x5d46b6,_0x265da2){const _0x12fa0f=_0x3cc0f6;super(),u(this,_0x12fa0f(0x454),new v[(_0x12fa0f(0x3ea))](void 0x0)),u(this,_0x12fa0f(0x504),this['_socket$'][_0x12fa0f(0x459)]()),u(this,_0x12fa0f(0x5e3),null),u(this,'_sessions',new Map()),u(this,_0x12fa0f(0x4a2),new v[(_0x12fa0f(0x3ea))](x[_0x12fa0f(0x1bf)])),u(this,_0x12fa0f(0x40f),this['_status$']['asObservable']()),u(this,_0x12fa0f(0x489),!0x1),u(this,_0x12fa0f(0x45a)),u(this,_0x12fa0f(0x3b0),0x0),u(this,_0x12fa0f(0x543)),u(this,_0x12fa0f(0x230)),(this[_0x12fa0f(0x5ba)]=_0x466c6d,this[_0x12fa0f(0x36b)]=_0x1caa24,this[_0x12fa0f(0x1cd)]=_0x587178,this[_0x12fa0f(0x518)]=_0x34b54b,this[_0x12fa0f(0x5e0)]=_0x5d46b6,this[_0x12fa0f(0x1ca)]=_0x265da2,this[_0x12fa0f(0x27e)]());}get[_0x3cc0f6(0x286)](){const _0x527327=_0x3cc0f6;return this[_0x527327(0x454)]['getValue']();}[_0x3cc0f6(0x27e)](){const _0x1651ae=_0x3cc0f6;this[_0x1651ae(0x3a5)](),this['_listenToOnlineEvent']();}[_0x3cc0f6(0x32b)](){const _0x355d4b=_0x3cc0f6;super[_0x355d4b(0x32b)](),this[_0x355d4b(0x5d1)]['forEach'](_0x332ee5=>_0x332ee5[_0x355d4b(0x32b)]()),this[_0x355d4b(0x5d1)][_0x355d4b(0x48b)](),this['_status$']['complete']();}async['requireSession'](_0x4ef255){const _0x267ae3=_0x3cc0f6;if(this['_sessions'][_0x267ae3(0x2d0)](_0x4ef255))return this[_0x267ae3(0x5d1)][_0x267ae3(0x3de)](_0x4ef255);this[_0x267ae3(0x227)]();const _0x1facac=this[_0x267ae3(0x5ba)][_0x267ae3(0x2e1)](exports['CollaborationSession'],_0x4ef255,this[_0x267ae3(0x454)][_0x267ae3(0x459)]());return this['_sessions'][_0x267ae3(0x420)](_0x4ef255,_0x1facac),_0x1facac;}[_0x3cc0f6(0x362)](_0x4a4f69){const _0x5d9071=_0x3cc0f6;var _0x19f30b;const _0x14839b=this[_0x5d9071(0x5d1)][_0x5d9071(0x3de)](_0x4a4f69);_0x14839b&&(this[_0x5d9071(0x5d1)][_0x5d9071(0x3c4)](_0x4a4f69),_0x14839b[_0x5d9071(0x44d)]()),this[_0x5d9071(0x5d1)][_0x5d9071(0x437)]||(_0x19f30b=this['_socket'])==null||_0x19f30b[_0x5d9071(0x44d)]();}[_0x3cc0f6(0x448)](){const _0x3ad4d9=_0x3cc0f6;this['_retryCount']=0x0,this[_0x3ad4d9(0x45a)]!=null&&(clearTimeout(this[_0x3ad4d9(0x45a)]),this[_0x3ad4d9(0x45a)]=null),this[_0x3ad4d9(0x3f0)]();}['_createSocket'](){const _0x291a76=_0x3cc0f6;var _0x5a0d9c,_0x228a90;const _0x2af94f=this[_0x291a76(0x5e0)]['getConfig'](mt),_0xaa9385=this['_configService'][_0x291a76(0x458)]($),_0x3e2aae=(_0x228a90=(_0x5a0d9c=_0xaa9385==null?void 0x0:_0xaa9385[_0x291a76(0x3fd)])!=null?_0x5a0d9c:_0x2af94f)!=null?_0x228a90:es,_0x50f58f=this[_0x291a76(0x1ca)][_0x291a76(0x4a5)](_0x3e2aae);return this['_candidateSocket']=_0x50f58f,_0x50f58f;}[_0x3cc0f6(0x227)](){const _0x3e1846=_0x3cc0f6;var _0xeb58e0,_0xda28ba;try{const _0x1bcde1=(_0xda28ba=(_0xeb58e0=this[_0x3e1846(0x286)])!=null?_0xeb58e0:this[_0x3e1846(0x5e3)])!=null?_0xda28ba:this['_createSocket']();if(_0x1bcde1){const _0x3091ae=_0x1bcde1[_0x3e1846(0x5d7)];_0x1bcde1[_0x3e1846(0x5d7)]=_0x3f1d0f=>(this[_0x3e1846(0x2fe)](),_0x3091ae[_0x3e1846(0x3f1)](_0x1bcde1,[_0x3f1d0f])),_0x1bcde1[_0x3e1846(0x354)]['subscribe'](_0x332ff0=>this[_0x3e1846(0x4f5)](_0x1bcde1,_0x332ff0)),_0x1bcde1[_0x3e1846(0x4c3)][_0x3e1846(0x57c)](E[_0x3e1846(0x4e6)](0x1))[_0x3e1846(0x342)](_0x470382=>this['_logService'][_0x3e1846(0x2c9)](_0x3e1846(0x1dc),_0x470382)),_0x1bcde1['open$']['pipe'](E[_0x3e1846(0x4e6)](0x1))[_0x3e1846(0x342)](()=>{const _0x3f9390=_0x3e1846;this[_0x3f9390(0x471)](_0x1bcde1);}),_0x1bcde1['close$'][_0x3e1846(0x57c)](E[_0x3e1846(0x4e6)](0x1))[_0x3e1846(0x342)](_0x2d59de=>{const _0x2be50e=_0x3e1846;this[_0x2be50e(0x518)][_0x2be50e(0x2cc)](_0x2be50e(0x33b),_0x2be50e(0x525),_0x2d59de),this[_0x2be50e(0x55e)]();});}}catch(_0x6f45d3){this[_0x3e1846(0x518)][_0x3e1846(0x2c9)](_0x6f45d3),this[_0x3e1846(0x55e)]();}}[_0x3cc0f6(0x471)](_0x1d90b2){const _0x205002=_0x3cc0f6;this[_0x205002(0x518)][_0x205002(0x2cc)](_0x205002(0x33b),'socket\x20open.'),_0x1d90b2[_0x205002(0x5d7)]({'cmd':b[_0x205002(0x491)]}),this[_0x205002(0x2fe)]();}[_0x3cc0f6(0x3a5)](){const _0x569445=_0x3cc0f6;window[_0x569445(0x581)](_0x569445(0x550),()=>this[_0x569445(0x580)]());}[_0x3cc0f6(0x580)](){const _0x2f7481=_0x3cc0f6;this[_0x2f7481(0x489)]=!0x1,this[_0x2f7481(0x5e3)]=null,this[_0x2f7481(0x4a2)][_0x2f7481(0x517)](x[_0x2f7481(0x50c)]),this[_0x2f7481(0x454)]['next'](null),this[_0x2f7481(0x2b7)](),this[_0x2f7481(0x31d)]();}[_0x3cc0f6(0x55e)](){const _0x25bbdf=_0x3cc0f6;var _0x54d63e;this['_onOffline'](),this[_0x25bbdf(0x3b0)]<((_0x54d63e=this[_0x25bbdf(0x5e0)]['getConfig'](It))!=null?_0x54d63e:is)?(this['_messageService'][_0x25bbdf(0x438)]({'key':'collaboration-session-retry','type':J['MessageType'][_0x25bbdf(0x56e)],'content':this[_0x25bbdf(0x36b)]['t'](_0x25bbdf(0x58d))}),this['_tryReconnect']()):this['_messageService'][_0x25bbdf(0x438)]({'key':_0x25bbdf(0x36c),'type':J[_0x25bbdf(0x2ce)][_0x25bbdf(0x5c2)],'content':this[_0x25bbdf(0x36b)]['t'](_0x25bbdf(0x1f3))});}['_listenToOnlineEvent'](){const _0x5bdb4a=_0x3cc0f6,_0x25bcaf=()=>{const _0x583267=_0x10ac;this[_0x583267(0x286)]||this[_0x583267(0x448)]();},_0x6eeeb0=()=>{const _0x15b719=_0x10ac;this[_0x15b719(0x286)]||document[_0x15b719(0x1ed)]===_0x15b719(0x2ef)||this['reconnect']();};window[_0x5bdb4a(0x581)]('online',_0x25bcaf),document[_0x5bdb4a(0x581)](_0x5bdb4a(0x372),_0x6eeeb0);}[_0x3cc0f6(0x3f0)](){const _0x129bcf=_0x3cc0f6;var _0x3f615a;const _0x7e5ff9=this[_0x129bcf(0x3b0)],_0x594c8a=this[_0x129bcf(0x5e0)]['getConfig']($),_0x44f865=_0x7e5ff9===0x0?0x0:((_0x3f615a=_0x594c8a==null?void 0x0:_0x594c8a[_0x129bcf(0x26c)])!=null?_0x3f615a:ss)*0x2**_0x7e5ff9;this[_0x129bcf(0x45a)]=window['setTimeout'](()=>{const _0x40d226=_0x129bcf;clearTimeout(this[_0x40d226(0x45a)]),this[_0x40d226(0x45a)]=null,this[_0x40d226(0x227)]();},_0x44f865),this[_0x129bcf(0x3b0)]+=0x1;}[_0x3cc0f6(0x4f5)](_0x13893c,_0x4ef051){const _0x5fd06=_0x3cc0f6,{cmd:_0x1f0a6e}=_0x4ef051;_0x1f0a6e===b['HELLO']&&!this[_0x5fd06(0x489)]&&(_0x13893c[_0x5fd06(0x335)]=_0x4ef051['data'][_0x5fd06(0x335)],this['_socket$'][_0x5fd06(0x517)](_0x13893c),this[_0x5fd06(0x4a2)]['next'](x[_0x5fd06(0x478)]),this[_0x5fd06(0x489)]=!0x0,this[_0x5fd06(0x5e3)]=null),_0x1f0a6e===b[_0x5fd06(0x3e2)]&&this[_0x5fd06(0x2b7)](),this[_0x5fd06(0x2fe)]();}[_0x3cc0f6(0x2fe)](){const _0x29cfca=_0x3cc0f6;var _0x1b4c55;this[_0x29cfca(0x31d)](),this[_0x29cfca(0x543)]=window[_0x29cfca(0x556)](()=>this[_0x29cfca(0x509)](),(_0x1b4c55=this['_configService']['getConfig'](gt))!=null?_0x1b4c55:ts);}['_sendHeartbeat'](){const _0xa0be75=_0x3cc0f6;this[_0xa0be75(0x286)][_0xa0be75(0x5d7)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x31595f=_0x3cc0f6;var _0x52b4ef;this['_timeoutTimer']=window[_0x31595f(0x556)](()=>this['_onConnectionFailed'](),(_0x52b4ef=this[_0x31595f(0x5e0)][_0x31595f(0x458)](Ge))!=null?_0x52b4ef:ft);}[_0x3cc0f6(0x31d)](){const _0x4e2457=_0x3cc0f6;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x4e2457(0x543)]),this[_0x4e2457(0x543)]=null);}[_0x3cc0f6(0x2b7)](){const _0x43bb55=_0x3cc0f6;this[_0x43bb55(0x230)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x43bb55(0x230)]=null);}},exports['CollaborationSessionService']=bs([te(0x0,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),te(0x1,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),te(0x2,A[_0x3cc0f6(0x2af)]),te(0x3,a[_0x3cc0f6(0x24d)]),te(0x4,a['IConfigService']),te(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R[_0x3cc0f6(0x430)]((Ue+0x100)[_0x3cc0f6(0x39c)](0x10)[_0x3cc0f6(0x1c3)](0x1));function Ts(_0xbd59ca,_0x28b02d=0x0){const _0x41f374=_0x3cc0f6;return(R[_0xbd59ca[_0x28b02d+0x0]]+R[_0xbd59ca[_0x28b02d+0x1]]+R[_0xbd59ca[_0x28b02d+0x2]]+R[_0xbd59ca[_0x28b02d+0x3]]+'-'+R[_0xbd59ca[_0x28b02d+0x4]]+R[_0xbd59ca[_0x28b02d+0x5]]+'-'+R[_0xbd59ca[_0x28b02d+0x6]]+R[_0xbd59ca[_0x28b02d+0x7]]+'-'+R[_0xbd59ca[_0x28b02d+0x8]]+R[_0xbd59ca[_0x28b02d+0x9]]+'-'+R[_0xbd59ca[_0x28b02d+0xa]]+R[_0xbd59ca[_0x28b02d+0xb]]+R[_0xbd59ca[_0x28b02d+0xc]]+R[_0xbd59ca[_0x28b02d+0xd]]+R[_0xbd59ca[_0x28b02d+0xe]]+R[_0xbd59ca[_0x28b02d+0xf]])[_0x41f374(0x299)]();}var ve,Rs=new Uint8Array(0x10);function Os(){const _0x27cf9b=_0x3cc0f6;if(!ve&&(ve=typeof crypto<'u'&&crypto[_0x27cf9b(0x1d0)]&&crypto['getRandomValues'][_0x27cf9b(0x4ba)](crypto),!ve))throw new Error(_0x27cf9b(0x4a9));return ve(Rs);}var Ds=typeof crypto<'u'&&crypto[_0x3cc0f6(0x408)]&&crypto['randomUUID']['bind'](crypto);const st={'randomUUID':Ds};function ys(_0x54f4fe,_0x4e160a,_0x20da7f){const _0x59e778=_0x3cc0f6;if(st[_0x59e778(0x408)]&&!_0x4e160a&&!_0x54f4fe)return st['randomUUID']();_0x54f4fe=_0x54f4fe||{};var _0xd9011f=_0x54f4fe[_0x59e778(0x1ef)]||(_0x54f4fe[_0x59e778(0x3a6)]||Os)();return _0xd9011f[0x6]=_0xd9011f[0x6]&0xf|0x40,_0xd9011f[0x8]=_0xd9011f[0x8]&0x3f|0x80,Ts(_0xd9011f);}var Us=Object[_0x3cc0f6(0x1c6)],Ps=Object[_0x3cc0f6(0x544)],ws=(_0x14d761,_0x3c6f7f,_0x1c8f6f,_0x4337db)=>{const _0x3679c5=_0x3cc0f6;for(var _0x75f328=_0x4337db>0x1?void 0x0:_0x4337db?Ps(_0x3c6f7f,_0x1c8f6f):_0x3c6f7f,_0x44106a=_0x14d761[_0x3679c5(0x411)]-0x1,_0xfde4f4;_0x44106a>=0x0;_0x44106a--)(_0xfde4f4=_0x14d761[_0x44106a])&&(_0x75f328=(_0x4337db?_0xfde4f4(_0x3c6f7f,_0x1c8f6f,_0x75f328):_0xfde4f4(_0x75f328))||_0x75f328);return _0x4337db&&_0x75f328&&Us(_0x3c6f7f,_0x1c8f6f,_0x75f328),_0x75f328;},Pe=(_0x5a1f9c,_0xefc73f)=>(_0x581813,_0x4d527a)=>_0xefc73f(_0x581813,_0x4d527a,_0x5a1f9c);let Ie=class{constructor(_0x399b4d,_0xab9c91,_0x59eb58){const _0x13f887=_0x3cc0f6;this[_0x13f887(0x5ba)]=_0x399b4d,this[_0x13f887(0x5c3)]=_0xab9c91,this[_0x13f887(0x1d5)]=_0x59eb58;}[_0x3cc0f6(0x2bb)](_0x185e40){const _0x3f6ffb=_0x3cc0f6;this[_0x3f6ffb(0x3f7)](_0x185e40),this['_transformPreviousActiveRange'](_0x185e40);}[_0x3cc0f6(0x1fc)](_0x317f3c){const _0x1d75f2=_0x3cc0f6,{unitID:_0x5aa1be}=_0x317f3c,_0x3b291c=this['_renderManagerService']['getRenderById'](_0x5aa1be)[_0x1d75f2(0x245)](N[_0x1d75f2(0x4fd)]),{redoCache:_0x66ac57}=_0x3b291c[_0x1d75f2(0x394)]();if(_0x66ac57[_0x1d75f2(0x411)]===0x0)return _0x317f3c;let _0x5388c3=a[_0x1d75f2(0x241)][_0x1d75f2(0x26b)](_0x317f3c['mutations'][0x0]);for(let _0x5d4dd8=0x0;_0x5d4dd8<_0x66ac57[_0x1d75f2(0x411)];_0x5d4dd8++){const _0x504c4d={'id':'doc.mutation.rich-text-editing','params':{..._0x66ac57[_0x5d4dd8]}},_0x4fe566=this['_transformService'][_0x1d75f2(0x3ef)](_0x5388c3,_0x504c4d,!0x1);if(_[_0x1d75f2(0x4dd)](_0x4fe566))throw _0x4fe566[_0x1d75f2(0x2c9)];_0x5388c3=_0x4fe566[_0x1d75f2(0x2b5)];}return{...a[_0x1d75f2(0x241)]['deepClone'](_0x317f3c),'mutations':[_0x5388c3]};}['_transformUndoRedoStack'](_0x4c0da4){const _0x231276=_0x3cc0f6,{unitID:_0xa2f7cb}=_0x4c0da4,_0x373090=this[_0x231276(0x1d5)]['getRenderById'](_0xa2f7cb)[_0x231276(0x245)](N['DocIMEInputManagerService']),{undoCache:_0x3b7c9d,redoCache:_0x2220ea}=_0x373090[_0x231276(0x394)]();if(_0x3b7c9d[_0x231276(0x411)]===0x0||_0x2220ea[_0x231276(0x411)]===0x0)return;const _0x836ddb=[],_0x3b749f=[];let _0xf645f=a['Tools'][_0x231276(0x26b)](_0x4c0da4[_0x231276(0x3fb)][0x0]),_0x1952f1=a[_0x231276(0x241)]['deepClone'](_0x4c0da4[_0x231276(0x3fb)][0x0]);for(let _0x2c2e75=_0x3b7c9d[_0x231276(0x411)]-0x1;_0x2c2e75>=0x0;_0x2c2e75--){const _0x14c2f5={'id':_0x231276(0x2b2),'params':{..._0x3b7c9d[_0x2c2e75]}},_0x32c644={'id':_0x231276(0x2b2),'params':{..._0x2220ea[_0x2c2e75]}},_0x4724ef=this['_transformService'][_0x231276(0x3ef)](_0xf645f,_0x14c2f5,!0x1),_0x26b4db=this[_0x231276(0x5c3)][_0x231276(0x3ef)](_0x1952f1,_0x32c644,!0x1);if(_[_0x231276(0x4dd)](_0x4724ef))throw _0x4724ef[_0x231276(0x2c9)];if(_['isTransformMutationFailure'](_0x26b4db))throw _0x26b4db['error'];_0x836ddb[_0x231276(0x4ec)](_0x4724ef[_0x231276(0x201)][_0x231276(0x3f2)]),_0x3b749f['unshift'](_0x26b4db[_0x231276(0x201)][_0x231276(0x3f2)]),_0xf645f=_0x4724ef[_0x231276(0x2b5)],_0x1952f1=_0x26b4db[_0x231276(0x2b5)];}_0x373090['setUndoRedoMutationParamsCache']({'undoCache':_0x836ddb,'redoCache':_0x3b749f});}[_0x3cc0f6(0x31c)](_0x43f235){const _0x5a49c9=_0x3cc0f6,{unitID:_0x476122}=_0x43f235,_0x543906=this['_renderManagerService'][_0x5a49c9(0x266)](_0x476122)[_0x5a49c9(0x245)](N[_0x5a49c9(0x4fd)]),_0x1d3ba2=_0x543906['getActiveRange']();if(_0x1d3ba2==null)return;const _0x4d1814=[{'id':_0x5a49c9(0x2b2),'params':{'unitId':_0x43f235[_0x5a49c9(0x426)],'actions':null,'textRanges':[_0x1d3ba2]}}],_0x215fbb=this['_transformService'][_0x5a49c9(0x338)](_0x43f235,_0x4d1814);if(!_[_0x5a49c9(0x50f)](_0x215fbb))throw _0x215fbb[_0x5a49c9(0x2c9)];const _0x2eb744=_0x215fbb[_0x5a49c9(0x201)][0x0][_0x5a49c9(0x3f2)][_0x5a49c9(0x3b1)];Array['isArray'](_0x2eb744)&&_0x2eb744[_0x5a49c9(0x411)]&&_0x543906[_0x5a49c9(0x221)](_0x2eb744[0x0]);}};Ie=ws([Pe(0x0,a[_0x3cc0f6(0x573)](a['Injector'])),Pe(0x1,_[_0x3cc0f6(0x3ba)]),Pe(0x2,O[_0x3cc0f6(0x3c1)])],Ie);var Ns=Object['defineProperty'],Ms=Object['getOwnPropertyDescriptor'],As=(_0x42ce37,_0x2a8b50,_0x34dc6d,_0x5e06a6)=>{const _0x1e2c2f=_0x3cc0f6;for(var _0x371146=_0x5e06a6>0x1?void 0x0:_0x5e06a6?Ms(_0x2a8b50,_0x34dc6d):_0x2a8b50,_0x4df831=_0x42ce37[_0x1e2c2f(0x411)]-0x1,_0x950c6c;_0x4df831>=0x0;_0x4df831--)(_0x950c6c=_0x42ce37[_0x4df831])&&(_0x371146=(_0x5e06a6?_0x950c6c(_0x2a8b50,_0x34dc6d,_0x371146):_0x950c6c(_0x371146))||_0x371146);return _0x5e06a6&&_0x371146&&Ns(_0x2a8b50,_0x34dc6d,_0x371146),_0x371146;},le=(_0x23a24a,_0x3e3522)=>(_0x1566cb,_0x59a1a6)=>_0x3e3522(_0x1566cb,_0x59a1a6,_0x23a24a);exports[_0x3cc0f6(0x1f8)]=class extends a['Disposable']{constructor(_0x5ba1d5,_0x48b31b,_0x353921,_0x35db7b,_0x1dac67){const _0x174b59=_0x3cc0f6;super(),u(this,_0x174b59(0x564),new Map()),u(this,_0x174b59(0x389),new Map()),u(this,_0x174b59(0x1ee),!0x1),(this[_0x174b59(0x5e0)]=_0x5ba1d5,this[_0x174b59(0x597)]=_0x48b31b,this[_0x174b59(0x3a7)]=_0x353921,this[_0x174b59(0x36b)]=_0x35db7b,this['_revisionService']=_0x1dac67,this['_setupBeforeClosingHandler']());}['disableLocalCache'](){const _0x1ca53e=_0x3cc0f6;this[_0x1ca53e(0x1ee)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x3cc0f6(0x32b)](){const _0xcb4e56=_0x3cc0f6;this[_0xcb4e56(0x1fb)]()['then'](()=>super[_0xcb4e56(0x32b)]());}async['loadOfflineData'](_0x11fdfa){const _0x5f5b61=_0x3cc0f6;return this[_0x5f5b61(0x1ee)]?null:this[_0x5f5b61(0x597)][_0x5f5b61(0x1da)](it(_0x11fdfa));}async[_0x3cc0f6(0x2d5)](_0x480907,_0x4be578){const _0x3fc2ef=_0x3cc0f6;return!!this[_0x3fc2ef(0x597)][_0x3fc2ef(0x250)](_0x480907,_0x4be578);}[_0x3cc0f6(0x5bd)](_0x695c61,_0x5e6b13,_0x19cdbb,_0x409068){const _0x1a902f=_0x3cc0f6,_0x4efeac=this[_0x1a902f(0x449)]['getCurrentRevOfUnit'](_0x695c61);this['_cachedData'][_0x1a902f(0x420)](_0x695c61,{'unitID':_0x695c61,'type':_0x5e6b13,'awaitingChangeset':_0x19cdbb,'mutations':_0x409068,'rev':_0x4efeac}),this[_0x1a902f(0x389)][_0x1a902f(0x2d0)](_0x695c61)||this[_0x1a902f(0x555)](_0x695c61);}['_scheduleSaving'](_0x21e0d5){const _0xc994be=_0x3cc0f6,_0x4dfdf5=this[_0xc994be(0x3dc)]();_0x4dfdf5===0x0?this['_saveCache'](_0x21e0d5):this[_0xc994be(0x389)][_0xc994be(0x420)](_0x21e0d5,setTimeout(()=>this[_0xc994be(0x540)](_0x21e0d5),_0x4dfdf5));}[_0x3cc0f6(0x3dc)](){const _0x11f46b=_0x3cc0f6;var _0x5ac687;return(_0x5ac687=this['_configService'][_0x11f46b(0x458)](pt))!=null?_0x5ac687:ns;}['_saveCache'](_0x55aeae){const _0x1d5ed3=_0x3cc0f6,_0x1b20da=this['_saveTaskMap'][_0x1d5ed3(0x3de)](_0x55aeae);return _0x1b20da!==void 0x0&&window[_0x1d5ed3(0x468)](_0x1b20da),this['_localStorageService'][_0x1d5ed3(0x250)](it(_0x55aeae),this[_0x1d5ed3(0x564)][_0x1d5ed3(0x3de)](_0x55aeae))['then'](()=>this[_0x1d5ed3(0x389)][_0x1d5ed3(0x3c4)](_0x55aeae));}async[_0x3cc0f6(0x1fb)](){const _0x3f32ba=_0x3cc0f6,_0x1ee072=[];this[_0x3f32ba(0x389)][_0x3f32ba(0x300)]((_0x3fcc3a,_0xfe8f06)=>{const _0x483f6a=_0x3f32ba;window[_0x483f6a(0x468)](_0x3fcc3a),_0x1ee072[_0x483f6a(0x430)](this[_0x483f6a(0x540)](_0xfe8f06)[_0x483f6a(0x25f)](()=>{const _0x3bd699=_0x483f6a;this[_0x3bd699(0x389)]['delete'](_0xfe8f06);}));}),await Promise[_0x3f32ba(0x260)](_0x1ee072);}['_setupBeforeClosingHandler'](){const _0xf2ca71=_0x3cc0f6;this[_0xf2ca71(0x217)](this[_0xf2ca71(0x3a7)][_0xf2ca71(0x2f9)](()=>{const _0xd91fec=_0xf2ca71;if(this[_0xd91fec(0x389)]['size'])return this[_0xd91fec(0x36b)]['t'](_0xd91fec(0x4fe));}));}},exports[_0x3cc0f6(0x1f8)]=As([le(0x0,a[_0x3cc0f6(0x5d3)]),le(0x1,a['ILocalStorageService']),le(0x2,A[_0x3cc0f6(0x54e)]),le(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),le(0x4,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)]))],exports[_0x3cc0f6(0x1f8)]);function it(_0x53087b){const _0x3f1c09=_0x3cc0f6;return _0x3f1c09(0x351)+_0x53087b;}var Ls=Object['defineProperty'],$s=Object[_0x3cc0f6(0x544)],js=(_0x57b3d8,_0x205001,_0x272854,_0x1c0a68)=>{const _0x1e6022=_0x3cc0f6;for(var _0x2ce093=_0x1c0a68>0x1?void 0x0:_0x1c0a68?$s(_0x205001,_0x272854):_0x205001,_0x3e3502=_0x57b3d8[_0x1e6022(0x411)]-0x1,_0x583d2a;_0x3e3502>=0x0;_0x3e3502--)(_0x583d2a=_0x57b3d8[_0x3e3502])&&(_0x2ce093=(_0x1c0a68?_0x583d2a(_0x205001,_0x272854,_0x2ce093):_0x583d2a(_0x2ce093))||_0x2ce093);return _0x1c0a68&&_0x2ce093&&Ls(_0x205001,_0x272854,_0x2ce093),_0x2ce093;},we=(_0xf67350,_0x4ad217)=>(_0x5790d8,_0x127afd)=>_0x4ad217(_0x5790d8,_0x127afd,_0xf67350);function Hs(_0xa78d09){const _0x45f418=_0x3cc0f6,{unitID:_0x33c309,mutations:_0x3eac52}=_0xa78d09;return{'unitId':_0x33c309,'subUnitId':_0x3eac52[0x0][_0x45f418(0x3f2)][_0x45f418(0x3b8)]};}let pe=class{constructor(_0x432825,_0x74248c,_0x2c969c){const _0xdc0d7b=_0x3cc0f6;this[_0xdc0d7b(0x5ba)]=_0x432825,this[_0xdc0d7b(0x5c3)]=_0x74248c,this[_0xdc0d7b(0x512)]=_0x2c969c;}[_0x3cc0f6(0x29d)](_0x136b93){const _0x5c19dc=_0x3cc0f6;var _0x4818fb,_0x36a9bf,_0x1ef3e2,_0x3d57a8;const _0x4aceeb=this[_0x5c19dc(0x5ba)][_0x5c19dc(0x3de)](C[_0x5c19dc(0x2fc)]),{unitId:_0x5f2252,subUnitId:_0x52201}=Hs(_0x136b93),_0x43278f=_0x4aceeb[_0x5c19dc(0x281)](_0x5f2252)[_0x5c19dc(0x416)](),_0xcab8d6=(_0x36a9bf=(_0x4818fb=this[_0x5c19dc(0x512)][_0x5c19dc(0x27c)](_0x5f2252))==null?void 0x0:_0x4818fb[_0x5c19dc(0x57f)]())==null?void 0x0:_0x36a9bf[_0x5c19dc(0x255)]();if(_0x43278f[_0x5c19dc(0x411)]===0x0||!_0x5f2252||!_0x52201)return;const _0x1522c2=[{'id':C[_0x5c19dc(0x56f)]['id'],'params':{'unitId':_0x5f2252,'subUnitId':_0xcab8d6,'selections':a[_0x5c19dc(0x241)][_0x5c19dc(0x26b)](_0x43278f)}}],_0x5713a0=this[_0x5c19dc(0x5c3)]['transformMutationsWithChangeset'](_0x136b93,_0x1522c2);if(!_[_0x5c19dc(0x50f)](_0x5713a0))throw _0x5713a0[_0x5c19dc(0x2c9)];const _0x951358=(_0x3d57a8=(_0x1ef3e2=_0x5713a0['m2Prime'][0x0])==null?void 0x0:_0x1ef3e2[_0x5c19dc(0x3f2)])==null?void 0x0:_0x3d57a8[_0x5c19dc(0x1df)];if(Array[_0x5c19dc(0x414)](_0x951358)&&_0x951358[_0x5c19dc(0x411)]){if(_0x951358[_0x5c19dc(0x411)]===_0x1522c2[0x0]['params'][_0x5c19dc(0x1df)][_0x5c19dc(0x411)]&&_0x951358['every']((_0x14fdfb,_0x107950)=>a[_0x5c19dc(0x45c)][_0x5c19dc(0x31f)](_0x14fdfb[_0x5c19dc(0x36a)],_0x1522c2[0x0][_0x5c19dc(0x3f2)][_0x5c19dc(0x1df)][_0x107950][_0x5c19dc(0x36a)])))return;this[_0x5c19dc(0x5ba)]['get'](a['ICommandService'])['executeCommand'](C['SetSelectionsOperation']['id'],{'unitId':_0x5f2252,'subUnitId':_0xcab8d6,'selections':_0x951358});}}};pe=js([we(0x0,a['Inject'](a[_0x3cc0f6(0x5e8)])),we(0x1,_[_0x3cc0f6(0x3ba)]),we(0x2,a[_0x3cc0f6(0x2f2)])],pe);const Oe=a[_0x3cc0f6(0x292)](_0x3cc0f6(0x356));var Dt=(_0x177094=>(_0x177094[_0x177094[_0x3cc0f6(0x2bf)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x177094[_0x177094['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x177094))(Dt||{});const nt=0x7530,rt=_0x3cc0f6(0x45e);class xs extends a[_0x3cc0f6(0x31b)]{constructor(){const _0x15b3a9=_0x3cc0f6;super(),u(this,_0x15b3a9(0x22f),a['Tools'][_0x15b3a9(0x256)]()),u(this,_0x15b3a9(0x521),new Set()),u(this,_0x15b3a9(0x40b),new Map()),u(this,'_heartbeatTimer',null),u(this,_0x15b3a9(0x48d),new Map()),u(this,_0x15b3a9(0x309),new Map()),this[_0x15b3a9(0x53a)]();}[_0x3cc0f6(0x32b)](){const _0x41c62a=_0x3cc0f6;super[_0x41c62a(0x32b)](),this[_0x41c62a(0x48d)][_0x41c62a(0x300)]((_0x1cd9e4,_0x333659)=>this[_0x41c62a(0x314)](_0x333659)),this[_0x41c62a(0x4db)]&&window[_0x41c62a(0x3c3)](this[_0x41c62a(0x4db)]);}['getUnitStatus$'](_0x3273e2){const _0x2b57da=_0x3cc0f6;return this['_ensureSubject'](_0x3273e2)[_0x2b57da(0x57c)](v[_0x2b57da(0x534)]());}[_0x3cc0f6(0x589)](_0x3d8f0c){const _0x2a0387=_0x3cc0f6;this[_0x2a0387(0x521)]['size']===0x0&&this[_0x2a0387(0x599)](),this[_0x2a0387(0x521)][_0x2a0387(0x44c)](_0x3d8f0c),this[_0x2a0387(0x3f4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3d8f0c],'isForwarded':!0x1});}[_0x3cc0f6(0x3c7)](_0x4cda52){const _0x114530=_0x3cc0f6;this['_selfUnitIDs'][_0x114530(0x3c4)](_0x4cda52),this['_selfUnitIDs'][_0x114530(0x437)]===0x0&&this['_heartbeatTimer']&&window[_0x114530(0x3c3)](this[_0x114530(0x4db)]);}[_0x3cc0f6(0x53a)](){const _0x145b8e=_0x3cc0f6;this[_0x145b8e(0x217)](a[_0x145b8e(0x2ba)](v['fromEvent'](window,_0x145b8e(0x46f))[_0x145b8e(0x342)](_0x4c2c05=>{const _0x21727f=_0x145b8e;if(_0x4c2c05[_0x21727f(0x49f)]!==rt||!_0x4c2c05[_0x21727f(0x37d)])return;const _0x42e5f4=JSON[_0x21727f(0x5b4)](_0x4c2c05['newValue']);this[_0x21727f(0x5a1)](_0x42e5f4);}))),window[_0x145b8e(0x581)](_0x145b8e(0x4ea),()=>this['_send']({'type':0x1,'memberID':this[_0x145b8e(0x22f)],'unitIDs':Array[_0x145b8e(0x5b7)](this[_0x145b8e(0x521)])}));}['_handleEvent'](_0x60367d){const _0x7ad21c=_0x3cc0f6;switch(_0x60367d['type']){case 0x0:this['_handleJoinEvent'](_0x60367d);break;case 0x1:this[_0x7ad21c(0x5c8)](_0x60367d);break;case 0x2:this[_0x7ad21c(0x1cf)](_0x60367d);break;}}['_handleJoinEvent'](_0x525d23){const _0x2c3f82=_0x3cc0f6,{unitIDs:_0x11bbff,memberID:_0x5c02fa,isForwarded:_0x142c72}=_0x525d23;_0x11bbff[_0x2c3f82(0x300)](_0x4d4c4d=>{const _0x116c73=_0x2c3f82;if(!_0x142c72&&this['_unitOnClients']['has'](_0x4d4c4d)&&this[_0x116c73(0x38a)](_0x4d4c4d)['next'](0x1),!this[_0x116c73(0x40b)][_0x116c73(0x2d0)](_0x4d4c4d)||!this[_0x116c73(0x40b)][_0x116c73(0x3de)](_0x4d4c4d)[_0x116c73(0x2d0)](_0x5c02fa)){const _0x5905a0=this[_0x116c73(0x40b)][_0x116c73(0x3de)](_0x4d4c4d)||new Set();_0x5905a0['add'](_0x5c02fa),this[_0x116c73(0x40b)][_0x116c73(0x420)](_0x4d4c4d,_0x5905a0),this[_0x116c73(0x3f3)](_0x5c02fa);}}),_0x142c72||this[_0x2c3f82(0x3f4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2c3f82(0x521)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xc1311d){const _0x40ab83=_0x3cc0f6;this[_0x40ab83(0x314)](_0xc1311d);const _0x44e973=window['setTimeout'](()=>{const _0x387735=_0x40ab83;this[_0x387735(0x40b)][_0x387735(0x300)](_0x2c2603=>{const _0x559185=_0x387735;_0x2c2603[_0x559185(0x3c4)](_0xc1311d);});},nt*0x2);this[_0x40ab83(0x48d)][_0x40ab83(0x420)](_0xc1311d,_0x44e973);}[_0x3cc0f6(0x314)](_0x1a463b){const _0x5e0917=_0x3cc0f6;if(this[_0x5e0917(0x48d)][_0x5e0917(0x2d0)](_0x1a463b)){const _0x1c75bb=this['_clearOtherTimers'][_0x5e0917(0x3de)](_0x1a463b);_0x1c75bb&&window[_0x5e0917(0x468)](_0x1c75bb),this[_0x5e0917(0x48d)][_0x5e0917(0x420)](_0x1a463b,null);}}['_handleLeaveEvent'](_0x36d5cb){const _0x3d89c7=_0x3cc0f6,{memberID:_0x31e861,unitIDs:_0xc73fbe}=_0x36d5cb;_0xc73fbe[_0x3d89c7(0x300)](_0x2e1458=>{const _0x378d43=_0x3d89c7;var _0x510bf1;const _0x4306eb=this[_0x378d43(0x40b)][_0x378d43(0x3de)](_0x2e1458);_0x4306eb&&(_0x4306eb['delete'](_0x31e861),(_0x510bf1=this[_0x378d43(0x38a)](_0x2e1458))==null||_0x510bf1['next'](_0x4306eb[_0x378d43(0x437)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x31e861);}['_handleHeartbeatEvent'](_0x56104e){const _0x46add8=_0x3cc0f6;this['_scheduleClearOtherTimer'](_0x56104e[_0x46add8(0x335)]);}['_send'](_0x499173){localStorage['setItem'](rt,JSON['stringify'](_0x499173));}['_scheduleHeartbeat'](){const _0x373afa=_0x3cc0f6;this[_0x373afa(0x4db)]=window[_0x373afa(0x5a4)](()=>{const _0x79afce=_0x373afa;this['_send']({'type':0x2,'memberID':this[_0x79afce(0x22f)]});},nt);}[_0x3cc0f6(0x38a)](_0x455079){const _0xcc60f1=_0x3cc0f6;return this['_unitStatus'][_0xcc60f1(0x2d0)](_0x455079)||this[_0xcc60f1(0x309)]['set'](_0x455079,new v[(_0xcc60f1(0x3ea))](0x0)),this[_0xcc60f1(0x309)][_0xcc60f1(0x3de)](_0x455079);}}function yt(_0x318e47){const _0x58aacb=_0x3cc0f6;let _0x1dd491='';for(const _0x194173 of _0x318e47){const {startOffset:_0x588b79,endOffset:_0x40c747,isActive:_0x152406,rangeType:_0x2bc699,segmentId:_0x13260b,segmentPage:_0x218fa7}=_0x194173;_0x1dd491[_0x58aacb(0x411)]&&(_0x1dd491+=','),_0x1dd491+=_0x588b79+':'+_0x40c747+':'+(_0x152406?'1':'0')+':'+_0x2bc699+':'+_0x13260b+':'+_0x218fa7;}return _0x1dd491;}function ks(_0x43ca14){const _0x35fa8b=_0x3cc0f6,_0x4385a8=_0x43ca14[_0x35fa8b(0x252)](','),_0x104517=[];for(const _0x357c39 of _0x4385a8){const [_0xf1d5a0,_0x27a432,_0x17fa78,_0x18e088,_0x4fc7ee,_0x293d7f]=_0x357c39[_0x35fa8b(0x252)](':');_0x104517[_0x35fa8b(0x430)]({'startOffset':Number(_0xf1d5a0),'endOffset':Number(_0x27a432),'collapsed':_0xf1d5a0===_0x27a432,'isActive':_0x17fa78==='1','rangeType':_0x18e088===a[_0x35fa8b(0x45f)][_0x35fa8b(0x262)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x35fa8b(0x45f)][_0x35fa8b(0x51b)],'segmentId':typeof _0x4fc7ee==_0x35fa8b(0x3d4)?String(_0x4fc7ee):'','segmentPage':Number(_0x293d7f!=null?_0x293d7f:-0x1)});}return _0x104517[_0x35fa8b(0x3f5)](_0x3523c3=>_0x3523c3['isActive'])||(_0x104517[0x0][_0x35fa8b(0x5dd)]=!0x0),_0x104517;}class qe extends a['RxDisposable']{constructor(){const _0x367744=_0x3cc0f6;super(...arguments),u(this,_0x367744(0x1e2),new v[(_0x367744(0x3ea))](null)),u(this,_0x367744(0x5a5),this[_0x367744(0x1e2)][_0x367744(0x459)]());}['syncEditingCollabCursor'](_0x399097){const _0x3c0a1f=_0x3cc0f6,{unitID:_0x1509f2,memberID:_0x470d39,textRanges:_0x200e0f}=_0x399097,_0x2850f0=yt(_0x200e0f);if(_0x2850f0==='')return;const _0x295016={'unitID':_0x1509f2,'memberID':_0x470d39,'selection':_0x2850f0};this[_0x3c0a1f(0x1e2)][_0x3c0a1f(0x517)](_0x295016);}}var Bs=Object[_0x3cc0f6(0x1c6)],Vs=Object[_0x3cc0f6(0x544)],Ws=(_0x519c8b,_0x2c11a6,_0x58273e,_0x45f7e8)=>{for(var _0x30fdaa=_0x45f7e8>0x1?void 0x0:_0x45f7e8?Vs(_0x2c11a6,_0x58273e):_0x2c11a6,_0x27a6a9=_0x519c8b['length']-0x1,_0x28cbe6;_0x27a6a9>=0x0;_0x27a6a9--)(_0x28cbe6=_0x519c8b[_0x27a6a9])&&(_0x30fdaa=(_0x45f7e8?_0x28cbe6(_0x2c11a6,_0x58273e,_0x30fdaa):_0x28cbe6(_0x30fdaa))||_0x30fdaa);return _0x45f7e8&&_0x30fdaa&&Bs(_0x2c11a6,_0x58273e,_0x30fdaa),_0x30fdaa;},ot=(_0x1c1696,_0x3bc190)=>(_0x4bd786,_0x225965)=>_0x3bc190(_0x4bd786,_0x225965,_0x1c1696);let Ce=class{constructor(_0xe97a3d,_0x3894c8){const _0x3500a8=_0x3cc0f6;this[_0x3500a8(0x5ba)]=_0xe97a3d,this['_transformService']=_0x3894c8;}[_0x3cc0f6(0x29d)](_0x267134){const _0x2a31ad=_0x3cc0f6;var _0x47c0e6;const _0x1b5d77=this[_0x2a31ad(0x5ba)][_0x2a31ad(0x3de)](re['DocSelectionManagerService']),_0x48b292=(_0x47c0e6=_0x1b5d77['getDocRanges']())!=null?_0x47c0e6:[];if(_0x48b292[_0x2a31ad(0x411)]===0x0)return;const _0x11a79a=[{'id':_0x2a31ad(0x2b2),'params':{'unitId':_0x267134[_0x2a31ad(0x426)],'actions':null,'textRanges':_0x48b292}}],_0x2835a5=this[_0x2a31ad(0x5c3)]['transformMutationsWithChangeset'](_0x267134,_0x11a79a);if(!_[_0x2a31ad(0x50f)](_0x2835a5))throw _0x2835a5[_0x2a31ad(0x2c9)];const _0x48f260=_0x2835a5['m2Prime'][0x0][_0x2a31ad(0x3f2)][_0x2a31ad(0x3b1)];Array[_0x2a31ad(0x414)](_0x48f260)&&_0x48f260[_0x2a31ad(0x411)]&&_0x1b5d77[_0x2a31ad(0x5b6)](_0x48f260,!0x1);}};Ce=Ws([ot(0x0,a['Inject'](a[_0x3cc0f6(0x5e8)])),ot(0x1,_['ITransformService'])],Ce);const Fs=new Set([C[_0x3cc0f6(0x52e)]['id']]);function at(_0x5b214c,_0x37aad8,_0x7069ca,_0xa35687,_0x25071d){const _0x2aea8b=_0x3cc0f6;var _0x57e413,_0x37280a,_0x3c04dd,_0x179430;const _0x5bd75f=[];for(const _0x1dc17c of _0x5b214c)if(Fs[_0x2aea8b(0x2d0)](_0x1dc17c['id'])){if(_0x5bd75f[_0x2aea8b(0x411)]>0x0)break;_0x5bd75f[_0x2aea8b(0x430)](_0x1dc17c);break;}else _0x5bd75f[_0x2aea8b(0x430)](_0x1dc17c);const _0x3276c8=(_0x37280a=(_0x57e413=_0x25071d[_0x2aea8b(0x3c2)]())==null?void 0x0:_0x57e413[_0x2aea8b(0x4b4)])!=null?_0x37280a:_0x2aea8b(0x317),_0x35b8a4=(_0x179430=(_0x3c04dd=_0x25071d[_0x2aea8b(0x3c2)]())==null?void 0x0:_0x3c04dd[_0x2aea8b(0x335)])!=null?_0x179430:_0x2aea8b(0x317);return{'changeset':{'unitID':_0x37aad8,'type':_[_0x2aea8b(0x301)](_0x7069ca[_0x2aea8b(0x220)](_0x37aad8)),'baseRev':_0xa35687[_0x2aea8b(0x3cb)](_0x37aad8),'revision':0x0,'userID':_0x3276c8,'memberID':_0x35b8a4,'mutations':_0x5bd75f},'pendingMutations':_0x5b214c[_0x2aea8b(0x1c3)](_0x5bd75f[_0x2aea8b(0x411)])};}function Gs(_0x2e4640,_0x253b2e,_0x1a4285,_0x34ca73,_0x63b500){const _0x1ea386=_0x3cc0f6;var _0x2cf0f2,_0x495f21,_0x56c012,_0x6b877;const _0x1e00b9=[_0x2e4640['reduce']((_0x448074,_0x114fa6)=>{const _0x39f9ce=_0x10ac;var _0x37e70e;const {id:_0x3a5b8c}=_0x448074,{id:_0x2921ab,type:_0x7b65b7}=_0x114fa6,_0x5ecb4a=(_0x37e70e=_0x448074['params'])!=null?_0x37e70e:{'actions':null},_0x5b5b25=_0x114fa6[_0x39f9ce(0x3f2)];if(_0x3a5b8c&&_0x3a5b8c!==_0x2921ab)throw new Error(_0x39f9ce(0x593)+_0x3a5b8c+'\x20-\x20'+_0x2921ab+'.');return{..._0x448074,'id':_0x2921ab,'type':_0x7b65b7,'params':{'unitId':_0x5b5b25[_0x39f9ce(0x3e7)],'textRanges':_0x5b5b25[_0x39f9ce(0x3b1)],'actions':a[_0x39f9ce(0x211)][_0x39f9ce(0x366)](_0x5ecb4a[_0x39f9ce(0x419)],_0x5b5b25['actions'])}};},{})],_0x55a478=(_0x495f21=(_0x2cf0f2=_0x63b500['getCurrentUser']())==null?void 0x0:_0x2cf0f2[_0x1ea386(0x4b4)])!=null?_0x495f21:_0x1ea386(0x317),_0x76ab0b=(_0x6b877=(_0x56c012=_0x63b500[_0x1ea386(0x3c2)]())==null?void 0x0:_0x56c012['memberID'])!=null?_0x6b877:'unknown';return{'changeset':{'unitID':_0x253b2e,'type':_['mapDocumentTypeToUniverType'](_0x1a4285[_0x1ea386(0x220)](_0x253b2e)),'baseRev':_0x34ca73['getCurrentRevOfUnit'](_0x253b2e),'revision':0x0,'userID':_0x55a478,'memberID':_0x76ab0b,'mutations':_0x1e00b9},'pendingMutations':[]};}function Ut(_0x1832a5,_0x419f66){const _0xff28dc=_0x3cc0f6,_0x4993b6=new v[(_0xff28dc(0x421))](0x1);return setTimeout(()=>_0x4993b6[_0xff28dc(0x517)](_0x419f66),_0x1832a5),_0x4993b6[_0xff28dc(0x459)]()[_0xff28dc(0x57c)](v[_0xff28dc(0x4e6)](0x1));}const Ys={'id':C[_0x3cc0f6(0x31a)]['id'],'type':a['CommandType'][_0x3cc0f6(0x41d)],'params':{}};var Ks=Object[_0x3cc0f6(0x1c6)],Xs=Object[_0x3cc0f6(0x544)],Q=(_0x2701e6,_0x25a111,_0x109d6f,_0x5bb21c)=>{const _0x35deb5=_0x3cc0f6;for(var _0x13f70f=_0x5bb21c>0x1?void 0x0:_0x5bb21c?Xs(_0x25a111,_0x109d6f):_0x25a111,_0x1549ee=_0x2701e6[_0x35deb5(0x411)]-0x1,_0x3d9974;_0x1549ee>=0x0;_0x1549ee--)(_0x3d9974=_0x2701e6[_0x1549ee])&&(_0x13f70f=(_0x5bb21c?_0x3d9974(_0x25a111,_0x109d6f,_0x13f70f):_0x3d9974(_0x13f70f))||_0x13f70f);return _0x5bb21c&&_0x13f70f&&Ks(_0x25a111,_0x109d6f,_0x13f70f),_0x13f70f;},g=(_0x2aab43,_0x510973)=>(_0x1b63d7,_0x19bd40)=>_0x510973(_0x1b63d7,_0x19bd40,_0x2aab43),D=(_0x5e7157=>(_0x5e7157['NOT_COLLAB']=_0x3cc0f6(0x226),_0x5e7157[_0x3cc0f6(0x2d7)]=_0x3cc0f6(0x219),_0x5e7157[_0x3cc0f6(0x3eb)]=_0x3cc0f6(0x1ce),_0x5e7157[_0x3cc0f6(0x59c)]='awaiting',_0x5e7157[_0x3cc0f6(0x4e8)]=_0x3cc0f6(0x552),_0x5e7157[_0x3cc0f6(0x56c)]=_0x3cc0f6(0x2cb),_0x5e7157[_0x3cc0f6(0x2c5)]=_0x3cc0f6(0x5d8),_0x5e7157[_0x3cc0f6(0x50c)]=_0x3cc0f6(0x550),_0x5e7157))(D||{});const Pt=0xea60;class ee{constructor(_0x5e3f3b,_0x4f676e,_0x51e505,_0x450c33,_0x36f78b,_0x28c429,_0x42498b,_0x1d22b3,_0x3735b6){const _0x472c58=_0x3cc0f6;u(this,_0x472c58(0x29a),null),u(this,'_pendingMutations',[]),(this[_0x472c58(0x426)]=_0x5e3f3b,this['type']=_0x4f676e,this[_0x472c58(0x3dd)]=_0x36f78b,this[_0x472c58(0x495)]=_0x28c429,this[_0x472c58(0x4e0)]=_0x42498b,this['_revisionService']=_0x1d22b3,this[_0x472c58(0x1e8)]=_0x3735b6,this[_0x472c58(0x29a)]=_0x51e505,this[_0x472c58(0x359)]=_0x450c33);}[_0x3cc0f6(0x3a4)](_0x417449){const _0x18292c=_0x3cc0f6,_0x27f67a=this['_revisionService'][_0x18292c(0x3cb)](this['unitID']);return _0x417449['revision']>_0x27f67a+0x1?(this[_0x18292c(0x3dd)][_0x18292c(0x48c)]({'from':_0x27f67a,'to':_0x417449[_0x18292c(0x511)]-0x1}),!0x0):!0x1;}[_0x3cc0f6(0x240)](_0x449b50){const _0x4aaae3=_0x3cc0f6;this[_0x4aaae3(0x4e0)][_0x4aaae3(0x46d)](this['unitID'],_0x449b50);}[_0x3cc0f6(0x486)](_0x2e23f6){const _0x21955f=_0x3cc0f6;var _0x52a0d8,_0x29b874;(_0x29b874=(_0x52a0d8=this[_0x21955f(0x3dd)])[_0x21955f(0x42a)])==null||_0x29b874['call'](_0x52a0d8,_0x2e23f6);}[_0x3cc0f6(0x4ee)](_0x591939){const _0x565538=_0x3cc0f6;var _0x33643f,_0x303218;return(_0x303218=(_0x33643f=this[_0x565538(0x3dd)])[_0x565538(0x56d)])==null?void 0x0:_0x303218[_0x565538(0x484)](_0x33643f,_0x591939);}[_0x3cc0f6(0x1e9)](_0x3c3baa){const _0x56f799=_0x3cc0f6;var _0x2c8eaf,_0x4d5f81,_0x384edd;return(_0x384edd=(_0x4d5f81=(_0x2c8eaf=this['_handler'])[_0x56f799(0x320)])==null?void 0x0:_0x4d5f81[_0x56f799(0x484)](_0x2c8eaf,_0x3c3baa))!=null?_0x384edd:_0x3c3baa;}[_0x3cc0f6(0x54d)](_0x641faa){const _0x5df423=_0x3cc0f6;var _0x58bc58,_0x3cf07a;if(this[_0x5df423(0x523)]===H['UNIVER_DOC']){const {unitID:_0x1f981f,mutations:_0x471048,memberID:_0x194f37}=_0x641faa,_0x28da61=_0x471048[0x0][_0x5df423(0x3f2)][_0x5df423(0x3b1)];Array[_0x5df423(0x414)](_0x28da61)&&_0x28da61[_0x5df423(0x411)]>0x0&&((_0x3cf07a=(_0x58bc58=this['_handler'])[_0x5df423(0x5ea)])==null||_0x3cf07a[_0x5df423(0x484)](_0x58bc58,{'unitID':_0x1f981f,'memberID':_0x194f37,'textRanges':_0x28da61}));}}[_0x3cc0f6(0x20d)](){const _0x32f863=_0x3cc0f6;this[_0x32f863(0x1e8)][_0x32f863(0x5bd)](this[_0x32f863(0x426)],this[_0x32f863(0x523)],this[_0x32f863(0x29a)],this[_0x32f863(0x359)]);}[_0x3cc0f6(0x502)](){const _0x2b879b=_0x3cc0f6;return this[_0x2b879b(0x449)][_0x2b879b(0x3cb)](this[_0x2b879b(0x426)]);}[_0x3cc0f6(0x2f4)](){const _0x4a4873=_0x3cc0f6;this[_0x4a4873(0x449)][_0x4a4873(0x2c1)](this[_0x4a4873(0x426)]);}[_0x3cc0f6(0x1e7)](_0x202aee){const _0x2f7f28=_0x3cc0f6;var _0x381824;const _0x4b5819=this[_0x2f7f28(0x1e9)](_0x202aee),_0x1e3d9d=a[_0x2f7f28(0x35f)](_0x4b5819['mutations'],this[_0x2f7f28(0x495)],{'fromCollab':!0x0});if(!_0x1e3d9d['result'])throw _0x1e3d9d[_0x2f7f28(0x2c9)]instanceof Error?_0x1e3d9d[_0x2f7f28(0x2c9)]:new Error((_0x381824=_0x1e3d9d[_0x2f7f28(0x2c9)])!=null?_0x381824:_0x2f7f28(0x58b));this[_0x2f7f28(0x4ee)](_0x4b5819),this[_0x2f7f28(0x240)](_0x202aee),this[_0x2f7f28(0x486)](_0x4b5819),this[_0x2f7f28(0x54d)](_0x4b5819),this[_0x2f7f28(0x2f4)]();}}let oe=class extends ee{constructor(_0x44e8a9,_0x24ed18,_0xa0d232,_0x51bc8a,_0x48fe6e,_0x4786e3,_0x2e6315,_0xd846c0,_0x23a623,_0x139ea7){const _0x25050d=_0x3cc0f6;super(_0x44e8a9,_0x24ed18,null,[],_0xa0d232,_0xd846c0,_0x2e6315,_0x51bc8a,_0x48fe6e),u(this,_0x25050d(0x5d6),_0x25050d(0x219)),(this[_0x25050d(0x5ba)]=_0x4786e3,this['_logService']=_0x23a623,this[_0x25050d(0x5c3)]=_0x139ea7);}[_0x3cc0f6(0x4dc)](_0x1eac69){const _0x9fd722=_0x3cc0f6,_0x174560=this['_injector'][_0x9fd722(0x2e1)](W,this[_0x9fd722(0x426)],this[_0x9fd722(0x523)],[_0x1eac69],this['_handler']);return _0x174560[_0x9fd722(0x1f0)](),_0x174560[_0x9fd722(0x20d)](),_0x174560;}[_0x3cc0f6(0x369)](_0xffb0b8){const _0x39186a=_0x3cc0f6;if(this[_0x39186a(0x3a4)](_0xffb0b8))return this['_injector'][_0x39186a(0x2e1)](k,this['unitID'],this[_0x39186a(0x523)],null,[],null,[_0xffb0b8],this[_0x39186a(0x3dd)]);try{const _0x3a9579=this[_0x39186a(0x5c3)]['transformMutationsWithChangeset'](_0xffb0b8,[Ys]);if(_['isTransformMutationsWithChangesetSuccess'](_0x3a9579)){const {c1Prime:_0x946d21}=_0x3a9579;return this[_0x39186a(0x1e7)](_0x946d21),this;}throw _0x3a9579[_0x39186a(0x2c9)];}catch(_0x367260){return this[_0x39186a(0x518)][_0x39186a(0x2c9)](_0x367260),this[_0x39186a(0x496)](!0x1);}}[_0x3cc0f6(0x496)](_0x373494){const _0x52c0de=_0x3cc0f6;return this[_0x52c0de(0x5ba)][_0x52c0de(0x2e1)](K,this[_0x52c0de(0x426)],this[_0x52c0de(0x523)],null,[],this[_0x52c0de(0x3dd)],_0x373494);}[_0x3cc0f6(0x4d6)](){const _0x26f110=_0x3cc0f6;throw new Error(_0x26f110(0x2d3));}[_0x3cc0f6(0x2e5)](){const _0x54b0e7=_0x3cc0f6;throw new Error(_0x54b0e7(0x402));}[_0x3cc0f6(0x332)](){return this;}['toggleOffline'](){const _0x26171f=_0x3cc0f6;return this[_0x26171f(0x5ba)][_0x26171f(0x2e1)](X,this[_0x26171f(0x426)],this[_0x26171f(0x523)],null,[],this[_0x26171f(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}['resend'](){const _0x450115=_0x3cc0f6;throw new Error(_0x450115(0x49c));}[_0x3cc0f6(0x436)](){const _0x59d401=_0x3cc0f6,_0xc05966=this[_0x59d401(0x449)]['getCurrentRevOfUnit'](this[_0x59d401(0x426)]);return this['_handler']['onMissingChangesets']({'from':_0xc05966,'to':0x0}),this['_injector'][_0x59d401(0x2e1)](k,this['unitID'],this[_0x59d401(0x523)],null,[],null,[],this[_0x59d401(0x3dd)]);}};oe=Q([g(0x3,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x4,a['Inject'](exports[_0x3cc0f6(0x1f8)])),g(0x5,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x6,a[_0x3cc0f6(0x238)]),g(0x7,a[_0x3cc0f6(0x1d6)]),g(0x8,a['ILogService']),g(0x9,_[_0x3cc0f6(0x3ba)])],oe);let W=class extends ee{constructor(_0x4efd18,_0x13167b,_0x520c76,_0x4642d8,_0x63b76e,_0xf8f5b7,_0x23952e,_0x16aa7f,_0x176615,_0x4ff9f2,_0x485e7a,_0x3e25a2,_0x2edbe2,_0x1fd4d0){const _0x3d37d1=_0x3cc0f6;super(_0x4efd18,_0x13167b,null,_0x520c76,_0x4642d8,_0x4ff9f2,_0x1fd4d0,_0xf8f5b7,_0x23952e),u(this,_0x3d37d1(0x5d6),_0x3d37d1(0x1ce)),u(this,_0x3d37d1(0x388),null),u(this,'_sendingTimer',null),(this[_0x3d37d1(0x5ba)]=_0x63b76e,this[_0x3d37d1(0x5a7)]=_0x16aa7f,this['_logService']=_0x176615,this[_0x3d37d1(0x5e0)]=_0x485e7a,this[_0x3d37d1(0x5c3)]=_0x3e25a2,this[_0x3d37d1(0x34b)]=_0x2edbe2);}[_0x3cc0f6(0x4dc)](_0x5f2fba){const _0xf78549=_0x3cc0f6;return this[_0xf78549(0x359)]['push'](_0x5f2fba),this[_0xf78549(0x20d)](),this;}[_0x3cc0f6(0x369)](_0xef3d72){const _0x3e19c4=_0x3cc0f6;if(this[_0x3e19c4(0x3a4)](_0xef3d72))return this['_clearScheduledTask'](),this[_0x3e19c4(0x5ba)][_0x3e19c4(0x2e1)](k,this['unitID'],this['type'],null,this[_0x3e19c4(0x359)],null,[_0xef3d72],this[_0x3e19c4(0x3dd)]);try{const _0x985903=this[_0x3e19c4(0x5c3)][_0x3e19c4(0x338)](_0xef3d72,this['_pendingMutations']);if(_[_0x3e19c4(0x50f)](_0x985903)){const {c1Prime:_0x36bf7a,m2Prime:_0x383223}=_0x985903;this[_0x3e19c4(0x1e7)](_0x36bf7a);const _0x39461d=this[_0x3e19c4(0x5ba)][_0x3e19c4(0x2e1)](W,this['unitID'],this[_0x3e19c4(0x523)],_0x383223,this[_0x3e19c4(0x3dd)]);return this[_0x3e19c4(0x4d0)](),_0x39461d[_0x3e19c4(0x1f0)](this[_0x3e19c4(0x388)]?Math[_0x3e19c4(0x493)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x3e19c4(0x5c1)]()),_0x39461d;}throw _0x985903[_0x3e19c4(0x2c9)];}catch(_0x4fb0ef){return this['_logService']['error'](_0x4fb0ef),this[_0x3e19c4(0x496)](!0x1);}}[_0x3cc0f6(0x4d6)](){const _0xfac648=_0x3cc0f6;throw new Error(_0xfac648(0x5e6));}['onRemoteRej'](){const _0x746908=_0x3cc0f6;throw new Error(_0x746908(0x20a));}[_0x3cc0f6(0x332)](){return this;}[_0x3cc0f6(0x4ef)](){const _0x33c905=_0x3cc0f6;return this[_0x33c905(0x4d0)](),this[_0x33c905(0x5ba)]['createInstance'](X,this[_0x33c905(0x426)],this['type'],null,this[_0x33c905(0x359)],this[_0x33c905(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x1f0)](_0x26293c){const _0x340de8=_0x3cc0f6,_0x164a92=_0x26293c!=null?_0x26293c:this['_getSendChangesetTimeout']();this[_0x340de8(0x388)]=new Date()[_0x340de8(0x3e6)](),this['_sendingTimer']=window['setTimeout'](()=>{const _0x4736a9=_0x340de8;this['_clearScheduledTask']();let _0x482cf7=null;switch(this[_0x4736a9(0x523)]){case H['UNIVER_SHEET']:{_0x482cf7=at(this[_0x4736a9(0x359)],this[_0x4736a9(0x426)],this[_0x4736a9(0x34b)],this[_0x4736a9(0x449)],this[_0x4736a9(0x5a7)]);break;}case H['UNIVER_DOC']:{this[_0x4736a9(0x359)][_0x4736a9(0x4e7)](_0x4a0871=>_0x4a0871['id']===re[_0x4736a9(0x4c0)]['id'])?_0x482cf7=Gs(this['_pendingMutations'],this[_0x4736a9(0x426)],this[_0x4736a9(0x34b)],this[_0x4736a9(0x449)],this[_0x4736a9(0x5a7)]):_0x482cf7=at(this[_0x4736a9(0x359)],this[_0x4736a9(0x426)],this[_0x4736a9(0x34b)],this[_0x4736a9(0x449)],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4736a9(0x523)]+_0x4736a9(0x37b));}const {changeset:_0x5ce34d,pendingMutations:_0x4018ac}=_0x482cf7;this[_0x4736a9(0x3dd)][_0x4736a9(0x224)](_0x5ce34d);const _0x292fff=_0x4018ac[_0x4736a9(0x411)]?this[_0x4736a9(0x5ba)]['createInstance'](F,this[_0x4736a9(0x426)],this['type'],_0x5ce34d,_0x4018ac,this['_handler'],void 0x0):this[_0x4736a9(0x5ba)][_0x4736a9(0x2e1)](Y,this['unitID'],this[_0x4736a9(0x523)],_0x5ce34d,this['_handler']);_0x292fff[_0x4736a9(0x20d)](),this[_0x4736a9(0x3dd)]['onStateChange'](this,_0x292fff);},_0x164a92);}[_0x3cc0f6(0x5c1)](){const _0x4d8070=_0x3cc0f6;var _0x17344f;const _0x5f51ac=this[_0x4d8070(0x5e0)][_0x4d8070(0x458)]($);return(_0x17344f=_0x5f51ac==null?void 0x0:_0x5f51ac[_0x4d8070(0x302)])!=null?_0x17344f:Qt;}[_0x3cc0f6(0x259)](){const _0x24f56f=_0x3cc0f6;throw new Error(_0x24f56f(0x487));}[_0x3cc0f6(0x4d0)](){const _0x575199=_0x3cc0f6;this[_0x575199(0x209)]!=null&&(clearTimeout(this[_0x575199(0x209)]),this[_0x575199(0x209)]=null);}[_0x3cc0f6(0x496)](_0x3cf4bf){const _0x137b40=_0x3cc0f6;return this[_0x137b40(0x4d0)](),this['_injector'][_0x137b40(0x2e1)](K,this['unitID'],this['type'],null,this[_0x137b40(0x359)],this[_0x137b40(0x3dd)],_0x3cf4bf);}};W=Q([g(0x4,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x5,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x6,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),g(0x7,a[_0x3cc0f6(0x573)](Z)),g(0x8,a[_0x3cc0f6(0x24d)]),g(0x9,a[_0x3cc0f6(0x1d6)]),g(0xa,a[_0x3cc0f6(0x5d3)]),g(0xb,_[_0x3cc0f6(0x3ba)]),g(0xc,a[_0x3cc0f6(0x2f2)]),g(0xd,a['IUndoRedoService'])],W);let Y=class extends ee{constructor(_0x104ac0,_0x45ea84,_0x25df49,_0x397265,_0x2d41c5,_0x6757f3,_0x496150,_0x147f8a,_0x14e2c1,_0x2c7960,_0x2af7ea){const _0x48a947=_0x3cc0f6;super(_0x104ac0,_0x45ea84,_0x25df49,[],_0x397265,_0x147f8a,_0x2af7ea,_0x6757f3,_0x496150),u(this,_0x48a947(0x5d6),_0x48a947(0x2d2)),u(this,_0x48a947(0x21e),0x0),u(this,'_resendTimer'),u(this,_0x48a947(0x254)),(this[_0x48a947(0x5ba)]=_0x2d41c5,this[_0x48a947(0x518)]=_0x14e2c1,this[_0x48a947(0x5c3)]=_0x2c7960);}['appendMutation'](_0x2a5c16){const _0x48ae54=_0x3cc0f6;this['_clearScheduledTask']();const _0xde90a8=this[_0x48ae54(0x5ba)]['createInstance'](F,this[_0x48ae54(0x426)],this[_0x48ae54(0x523)],this[_0x48ae54(0x29a)],[_0x2a5c16],this['_handler'],this[_0x48ae54(0x339)]);return _0xde90a8[_0x48ae54(0x20d)](),_0xde90a8;}['onRemoteChangeset'](_0x149527){const _0x1d05dc=_0x3cc0f6;if(this[_0x1d05dc(0x3a4)](_0x149527))return this[_0x1d05dc(0x4d0)](),this[_0x1d05dc(0x5ba)]['createInstance'](k,this[_0x1d05dc(0x426)],this[_0x1d05dc(0x523)],this[_0x1d05dc(0x29a)],[],null,[_0x149527],this[_0x1d05dc(0x3dd)]);try{const _0x4b222e=this[_0x1d05dc(0x5c3)][_0x1d05dc(0x304)]([_0x149527],[this[_0x1d05dc(0x29a)]],!0x1);if(_[_0x1d05dc(0x537)](_0x4b222e)){const {c1Prime:_0x9b4e45,c2Prime:_0x1bf54a}=_0x4b222e;this[_0x1d05dc(0x1e7)](_0x9b4e45[0x0]),_0x1bf54a[0x0][_0x1d05dc(0x4a1)]=this[_0x1d05dc(0x502)](),this[_0x1d05dc(0x4d0)]();const _0x31bf25=this[_0x1d05dc(0x5ba)][_0x1d05dc(0x2e1)](Y,this['unitID'],this[_0x1d05dc(0x523)],_0x1bf54a[0x0],this[_0x1d05dc(0x3dd)]);return _0x31bf25[_0x1d05dc(0x20d)](),_0x31bf25;}return this['_onConflict'](!0x1);}catch(_0x34b2c5){return this[_0x1d05dc(0x518)][_0x1d05dc(0x2c9)](_0x34b2c5),this[_0x1d05dc(0x496)](!0x1);}}[_0x3cc0f6(0x4d6)](_0x5aa4f2){const _0x262b0f=_0x3cc0f6;this[_0x262b0f(0x4d0)]();const _0x49a256=this[_0x262b0f(0x449)][_0x262b0f(0x3cb)](this[_0x262b0f(0x426)]);if(_0x5aa4f2[_0x262b0f(0x511)]<_0x49a256-0x1)return this;if(this['_checkMissing'](_0x5aa4f2))return this[_0x262b0f(0x5ba)]['createInstance'](k,this[_0x262b0f(0x426)],this[_0x262b0f(0x523)],null,[],this[_0x262b0f(0x29a)],[],this[_0x262b0f(0x3dd)]);this[_0x262b0f(0x2f4)]();const _0x4e656f=this[_0x262b0f(0x5ba)][_0x262b0f(0x2e1)](oe,this[_0x262b0f(0x426)],this[_0x262b0f(0x523)],this[_0x262b0f(0x3dd)]);return _0x4e656f['_updateLocalCache'](),_0x4e656f;}['onRemoteRej'](_0x1dfa01){const _0x368a19=_0x3cc0f6;return this[_0x368a19(0x496)](!!(_0x1dfa01!=null&&_0x1dfa01['isPermissionRej']));}[_0x3cc0f6(0x332)](_0x1ade24){const _0x529f45=_0x3cc0f6;return this[_0x529f45(0x21e)]>Pt?this[_0x529f45(0x4ef)]():(this[_0x529f45(0x339)]=Ut(this[_0x529f45(0x21e)],{'timeout':this[_0x529f45(0x21e)],'reqId':_0x1ade24['reqId']}),this[_0x529f45(0x254)]=this[_0x529f45(0x339)][_0x529f45(0x342)](({reqId:_0xec0f84,timeout:_0x2293a2})=>{const _0x5b63e0=_0x529f45;this[_0x5b63e0(0x2e2)](_0xec0f84,_0x2293a2);}),this);}['toggleOffline'](){const _0x1e90c5=_0x3cc0f6;return this[_0x1e90c5(0x4d0)](),this['_injector'][_0x1e90c5(0x2e1)](X,this[_0x1e90c5(0x426)],this[_0x1e90c5(0x523)],this[_0x1e90c5(0x29a)],[],this[_0x1e90c5(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x259)](){const _0xe44609=_0x3cc0f6;this[_0xe44609(0x3dd)][_0xe44609(0x224)](this[_0xe44609(0x29a)]);}[_0x3cc0f6(0x496)](_0x4081c1){const _0x4b3f26=_0x3cc0f6;return this[_0x4b3f26(0x4d0)](),this[_0x4b3f26(0x5ba)][_0x4b3f26(0x2e1)](K,this[_0x4b3f26(0x426)],this[_0x4b3f26(0x523)],this[_0x4b3f26(0x29a)],[],this[_0x4b3f26(0x3dd)],_0x4081c1);}['_resendWithTimeout'](_0x83c971,_0x4ff7c6){const _0x5ebef2=_0x3cc0f6;var _0x19dbb7;_0x83c971===((_0x19dbb7=this[_0x5ebef2(0x29a)])==null?void 0x0:_0x19dbb7[_0x5ebef2(0x236)])&&(this[_0x5ebef2(0x259)](),this[_0x5ebef2(0x21e)]=_0x4ff7c6===0x0?0x3e8:_0x4ff7c6*0x2);}['_clearScheduledTask'](){const _0xaa847e=_0x3cc0f6;var _0xdd8008;(_0xdd8008=this[_0xaa847e(0x254)])==null||_0xdd8008['unsubscribe'](),this[_0xaa847e(0x21e)]=0x0;}};Y=Q([g(0x4,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x5,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x6,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),g(0x7,a['ICommandService']),g(0x8,a[_0x3cc0f6(0x24d)]),g(0x9,_[_0x3cc0f6(0x3ba)]),g(0xa,a[_0x3cc0f6(0x238)])],Y);let F=class extends ee{constructor(_0x2aa704,_0x51f320,_0x576e59,_0x36ab21,_0x328496,_0x5820c8,_0x3b386f,_0x52443c,_0x2bde30,_0x41fb15,_0x49379a,_0x5b7cdb,_0x54022e){const _0x2bb459=_0x3cc0f6;super(_0x2aa704,_0x51f320,_0x576e59,_0x36ab21,_0x328496,_0x41fb15,_0x54022e,_0x52443c,_0x2bde30),u(this,_0x2bb459(0x5d6),_0x2bb459(0x552)),u(this,_0x2bb459(0x21e),0x0),u(this,_0x2bb459(0x339)),u(this,'_sender'),(this[_0x2bb459(0x5ba)]=_0x3b386f,this['_logService']=_0x49379a,this[_0x2bb459(0x5c3)]=_0x5b7cdb,_0x5820c8&&(this[_0x2bb459(0x339)]=_0x5820c8,this['_sender']=this[_0x2bb459(0x339)][_0x2bb459(0x342)](({reqId:_0x510159,timeout:_0x4174e7})=>{const _0x3feb8b=_0x2bb459;this[_0x3feb8b(0x2e2)](_0x510159,_0x4174e7);})));}[_0x3cc0f6(0x4dc)](_0x1d3fc3){const _0x3b3716=_0x3cc0f6;return this[_0x3b3716(0x359)][_0x3b3716(0x430)](_0x1d3fc3),this;}[_0x3cc0f6(0x369)](_0x413ac7){const _0x233a5d=_0x3cc0f6;if(this[_0x233a5d(0x3a4)](_0x413ac7))return this[_0x233a5d(0x4d0)](),this[_0x233a5d(0x5ba)][_0x233a5d(0x2e1)](k,this[_0x233a5d(0x426)],this[_0x233a5d(0x523)],this['_awaitingChangeset'],this[_0x233a5d(0x359)],null,[_0x413ac7],this[_0x233a5d(0x3dd)]);try{const _0x5ee759=this[_0x233a5d(0x5c3)]['transformChangesets']([_0x413ac7],[this[_0x233a5d(0x29a)]],!0x1);if(_[_0x233a5d(0x537)](_0x5ee759)){const {c1Prime:_0x387561,c2Prime:_0x4d89c0}=_0x5ee759,_0x2a1c27=this['_transformService'][_0x233a5d(0x338)](_0x387561[0x0],this[_0x233a5d(0x359)]);if(_[_0x233a5d(0x50f)](_0x2a1c27)){const {c1Prime:_0x2f1be7,m2Prime:_0x5503fc}=_0x2a1c27;return this[_0x233a5d(0x1e7)](_0x2f1be7),_0x4d89c0[0x0][_0x233a5d(0x4a1)]=this['_getCurrentRevision'](),this[_0x233a5d(0x4d0)](),this[_0x233a5d(0x5ba)]['createInstance'](F,this[_0x233a5d(0x426)],this[_0x233a5d(0x523)],_0x4d89c0[0x0],_0x5503fc,this[_0x233a5d(0x3dd)],void 0x0);}throw _0x2a1c27['error'];}throw _0x5ee759['error'];}catch(_0x40402e){return this['_logService'][_0x233a5d(0x2c9)](_0x40402e),this[_0x233a5d(0x496)](!0x1);}}[_0x3cc0f6(0x4d6)](_0x51887f){const _0x30afbd=_0x3cc0f6;if(this['_clearScheduledTask'](),this[_0x30afbd(0x3a4)](_0x51887f))return this[_0x30afbd(0x5ba)]['createInstance'](k,this[_0x30afbd(0x426)],this[_0x30afbd(0x523)],null,this[_0x30afbd(0x359)],this[_0x30afbd(0x29a)],[],this[_0x30afbd(0x3dd)]);this[_0x30afbd(0x2f4)]();const _0x2e7e5a=this['_injector'][_0x30afbd(0x2e1)](W,this['unitID'],this[_0x30afbd(0x523)],this[_0x30afbd(0x359)],this[_0x30afbd(0x3dd)]);return _0x2e7e5a[_0x30afbd(0x1f0)](),_0x2e7e5a[_0x30afbd(0x20d)](),_0x2e7e5a;}['onRemoteRej'](_0x179bd8){const _0x505ab9=_0x3cc0f6;return this[_0x505ab9(0x496)](!!(_0x179bd8!=null&&_0x179bd8[_0x505ab9(0x4c8)]));}[_0x3cc0f6(0x332)](_0x468794){const _0x25dafc=_0x3cc0f6;return this['_resendTimeout']>Pt?this[_0x25dafc(0x4ef)]():(this[_0x25dafc(0x339)]=Ut(this[_0x25dafc(0x21e)],{'timeout':this['_resendTimeout'],'reqId':_0x468794[_0x25dafc(0x236)]}),this['_sender']=this[_0x25dafc(0x339)]['subscribe'](({reqId:_0x3a1fb5,timeout:_0x3211de})=>{const _0x5795d4=_0x25dafc;this[_0x5795d4(0x2e2)](_0x3a1fb5,_0x3211de);}),this);}[_0x3cc0f6(0x4ef)](){const _0x24dc69=_0x3cc0f6;return this[_0x24dc69(0x4d0)](),this[_0x24dc69(0x5ba)][_0x24dc69(0x2e1)](X,this[_0x24dc69(0x426)],this['type'],this['_awaitingChangeset'],this[_0x24dc69(0x359)],this[_0x24dc69(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x259)](){const _0x449e82=_0x3cc0f6;this[_0x449e82(0x3dd)][_0x449e82(0x224)](this[_0x449e82(0x29a)]);}[_0x3cc0f6(0x496)](_0x4ad6d1){const _0x453e4d=_0x3cc0f6;return this[_0x453e4d(0x4d0)](),this[_0x453e4d(0x5ba)][_0x453e4d(0x2e1)](K,this[_0x453e4d(0x426)],this[_0x453e4d(0x523)],null,this[_0x453e4d(0x359)],this[_0x453e4d(0x3dd)],_0x4ad6d1);}[_0x3cc0f6(0x2e2)](_0x448d9b,_0xf98ede){const _0x14f75d=_0x3cc0f6;var _0x348bb3;_0x448d9b===((_0x348bb3=this['_awaitingChangeset'])==null?void 0x0:_0x348bb3[_0x14f75d(0x236)])&&(this[_0x14f75d(0x259)](),this[_0x14f75d(0x21e)]=_0xf98ede===0x0?0x3e8:_0xf98ede*0x2);}[_0x3cc0f6(0x4d0)](){const _0x3716ab=_0x3cc0f6;var _0x502257;(_0x502257=this[_0x3716ab(0x254)])==null||_0x502257[_0x3716ab(0x5ad)](),this[_0x3716ab(0x21e)]=0x0;}};F=Q([g(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x7,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x8,a['Inject'](exports[_0x3cc0f6(0x1f8)])),g(0x9,a[_0x3cc0f6(0x1d6)]),g(0xa,a[_0x3cc0f6(0x24d)]),g(0xb,_[_0x3cc0f6(0x3ba)]),g(0xc,a[_0x3cc0f6(0x238)])],F);let K=class extends ee{constructor(_0x68bc39,_0x2062e1,_0x3be0f2,_0x1403c7,_0x5f1aa5,_0x179efa=!0x1,_0x2b57aa,_0x1d193f,_0x4cbae0,_0x266300,_0x2994ba,_0x4968d9,_0x29b5a9){const _0x20be8a=_0x3cc0f6;super(_0x68bc39,_0x2062e1,_0x3be0f2,_0x1403c7,_0x5f1aa5,_0x1d193f,_0x4cbae0,_0x2994ba,_0x266300),u(this,_0x20be8a(0x5d6),_0x20be8a(0x5d8)),(this[_0x20be8a(0x561)]=_0x179efa,this[_0x20be8a(0x1dd)]=_0x2b57aa,this[_0x20be8a(0x36b)]=_0x4968d9,this[_0x20be8a(0x5e5)]=_0x29b5a9,this['_showConflictNotification'](),this[_0x20be8a(0x313)](),this['_disableEditing']());}[_0x3cc0f6(0x4dc)](){return this;}[_0x3cc0f6(0x369)](){return this;}[_0x3cc0f6(0x4d6)](){return this;}[_0x3cc0f6(0x2e5)](){return this;}[_0x3cc0f6(0x332)](){return this;}[_0x3cc0f6(0x4ef)](){return this;}[_0x3cc0f6(0x43b)](){return this;}['resend'](){const _0x6bb541=_0x3cc0f6;throw new Error(_0x6bb541(0x547));}[_0x3cc0f6(0x313)](){const _0x28d4f3=_0x3cc0f6;this[_0x28d4f3(0x1e8)][_0x28d4f3(0x5bd)](this[_0x28d4f3(0x426)],this[_0x28d4f3(0x523)],null,[]);}['_showConflictNotification'](){const _0x4d9508=_0x3cc0f6;this[_0x4d9508(0x561)]?this[_0x4d9508(0x5e5)][_0x4d9508(0x438)]({'title':this[_0x4d9508(0x36b)]['t']('permission.title'),'content':this[_0x4d9508(0x36b)]['t'](_0x4d9508(0x268)),'type':_0x4d9508(0x2c9),'duration':0x0}):this[_0x4d9508(0x5e5)][_0x4d9508(0x438)]({'title':this['_localeService']['t'](_0x4d9508(0x4df)),'content':this[_0x4d9508(0x36b)]['t']('conflict.content'),'type':_0x4d9508(0x2c9),'duration':0x0});}[_0x3cc0f6(0x247)](){const _0x2bff2c=_0x3cc0f6;this[_0x2bff2c(0x1dd)]['updatePermissionPoint'](new C[(_0x2bff2c(0x289))](this[_0x2bff2c(0x426)])['id'],!0x1);}};K=Q([g(0x6,a['Inject'](a[_0x3cc0f6(0x27b)])),g(0x7,a[_0x3cc0f6(0x1d6)]),g(0x8,a[_0x3cc0f6(0x238)]),g(0x9,a['Inject'](exports[_0x3cc0f6(0x1f8)])),g(0xa,a['Inject'](_[_0x3cc0f6(0x1c9)])),g(0xb,a['Inject'](a[_0x3cc0f6(0x2b9)])),g(0xc,A['INotificationService'])],K);let X=class extends ee{constructor(_0x5d0080,_0x252d6e,_0x39475a,_0x1f0c69,_0x504e0e,_0x30835a,_0x444a14,_0x22b35a,_0x1d6428,_0x345ec3){const _0x3d0fbd=_0x3cc0f6;super(_0x5d0080,_0x252d6e,_0x39475a,_0x1f0c69,_0x504e0e,_0x1d6428,_0x345ec3,_0x444a14,_0x22b35a),u(this,_0x3d0fbd(0x5d6),'offline'),this[_0x3d0fbd(0x5ba)]=_0x30835a;}[_0x3cc0f6(0x4dc)](_0x57d955){const _0x606307=_0x3cc0f6;return this[_0x606307(0x359)]['push'](_0x57d955),this[_0x606307(0x20d)](),this;}[_0x3cc0f6(0x369)](_0x419465){const _0x1972f2=_0x3cc0f6;throw new Error(_0x1972f2(0x46e));}[_0x3cc0f6(0x4d6)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x3cc0f6(0x2e5)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3cc0f6(0x4ef)](){return this;}[_0x3cc0f6(0x43b)](){const _0x585cb8=_0x3cc0f6,{_injector:_0x3ec4ea,_pendingMutations:_0x915ccb,_awaitingChangeset:_0x5b6fa4,unitID:_0x4d118a,_handler:_0x15eb20,type:_0x5a6512}=this,_0x1a2a8a=wt(_0x3ec4ea,_0x4d118a,_0x5a6512,_0x5b6fa4,_0x915ccb,_0x15eb20);return _0x1a2a8a instanceof W?_0x1a2a8a[_0x585cb8(0x1f0)]():(_0x1a2a8a instanceof F||_0x1a2a8a instanceof Y)&&_0x1a2a8a['resend'](),_0x1a2a8a;}[_0x3cc0f6(0x259)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};X=Q([g(0x5,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x6,a['Inject'](_[_0x3cc0f6(0x1c9)])),g(0x7,a['Inject'](exports['LocalCacheService'])),g(0x8,a['ICommandService']),g(0x9,a[_0x3cc0f6(0x238)])],X);function _0x48f6(){const _0x3a98ab=['saveSnapshot','_shouldReportTelemetry','take','every','AWAITING_WITH_PENDING','[CollaborationUndoRedoService]','unload','_members','unshift','readAsDataURL','_transformIMECache','toggleOffline','UniverCollaborationPlugin','getInterceptPoints','updatePermissionPoint','_shapes','_backgroundColor','_onMessage','COLLAB_SUBMIT_CHANGESET_URL_KEY','_getMergeRange','find','update','debounceTime','UNKNOWN_CODE','catch','DocIMEInputManagerService','collaboration-client.offline-data-not-saved','_render','_clearCollaborationTimeoutTimer','handleDeleteRangeMoveLeft','_getCurrentRevision','_scheduleCollaborationTimeoutTimer','socket$','UNRECOGNIZED','ImageIoService','black','reduce','_sendHeartbeat','_onCursorUpdate','shareReplay','OFFLINE','debounce','toRgbString','isTransformMutationsWithChangesetSuccess','extend','revision','_instanceService','file','_uiPartsService','RECV','JOIN','next','_logService','color','name','RECT','EXCHANGE_SIGN_URL_SERVER_URL_KEY','DeleteRangeMoveUpCommandId','engine','_onJoinRoomEvent','json','_selfUnitIDs','DocSkeletonManagerService','type','transformStack\x20failed!','socket\x20close','createCollaborator','getUnitId','shouldCloseConn','TRANSFORM_CHANGE_OBSERVABLE_TYPE','flatMap','_initStatusComponent','_context','initWorkbookPermissionChange','InsertSheetMutation','getDocRanges','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','originalMeta','_docSkeleton','InsertRowCommandId','distinctUntilChanged','getValue','registerComponent','isTransformChangesetsSuccess','permissionRejEvent','[CollaborationSession]','_init','M0\x200H16V16H0z','COMMENT_UPDATE','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','round','2498900XKrMOv','_saveCache','getTypeOfUnitAdded$','LIVESHARE_FETCH_OPERATIONS','_sendHeartbeatTimer','getOwnPropertyDescriptor','filter','LOGIN_URL_KEY','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_collaborationSessionService','APPLY_PERMISSION_DENIED','serializeCombRequest','INVALID_ARGUMENT','_singleActiveUnitService','_syncEditingCollabCursor','IBeforeCloseService','session','offline','COLORS','awaiting_with_pending','useRef','list','_scheduleSaving','setTimeout','_updateCollabCursors','SNAPSHOT_HAS_BEEN_REMOVED','whenReady','_changesetReqId','_decreaseWaiting','isInternalEditorID','_submitChangeset','_onConnectionFailed','/object/','telemetry\x20info\x20is\x20not\x20initialized','_isPermissionRej','indexOf','currentTheme$','_cachedData','min','CommandType','useObservable','saveChangeset','restore','WebURLService','SheetSkeletonManagerService','FETCH_MISS','onTransformIME','Warning','SetSelectionsOperation','merge','editing\x20status\x20changed\x20to','_drawAnchor','Inject','event$','_stopTelemetryCollaborationNewChangeset','BASE64','reject','_type','getViewport','objectType','requireSession','pipe','0\x200\x2016\x2016','[UniverCollaborationClientPlugin]','getActiveSheet','_onOffline','addEventListener','_loadDoc','AuthzIoHttpService','session.room-full','takeUntil','collabStatus.notCollab','startsWith','_substituteUndoStack','editingUnit','withCredentials','[CollaborationState]:\x20apply\x20error!','IContextService','session.will-retry','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','onCommentUpdate','_waitCount','image/jpg','InsertRangeMoveDownCommandId','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','csRejEvent','_getScale','_event$','_localStorageService','_fetchMissChangesets','_scheduleHeartbeat','Tooltip','objects','AWAITING','cursorInfo$','@univerjs/docs-ui','liveShareNewHost','/universer-api/comb','_handleEvent','textEncoder','_initStatusListener','setInterval','collabCursorState$','Unknown\x20user','_memberService','collab-rect-range-','_exhaustRemoteChangesetQueue','runRefRangeMutations','NOT_FOUND','PERMISSION_REJ','unsubscribe','98UbgTHf','ERROR_EXCEED_SIZE','_undoStacks','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_document','skeleton','parse','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','replaceTextRanges','from','save','infoRsp','_injector','univer-offline','CHANGESET_SHOULD_RETRY','updateOfflineData','target','code','online','_getSendChangesetTimeout','Error','_transformService','univer-online-status-title','c1Prime','action','_textBubble','_handleLeaveEvent','_HTTPService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','throttleTime','getMember','_session','_registerDependencies','USERS_LEAVE','enableAuthServer','_sessions','complete','IConfigService','init','DataLoaderController','status','send','conflict','getParam','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','icon','_removeCollabCursors','isActive','getVpScrollXYInfoByPosToVp','576780HCjpqK','_configService','registerHTTPInterceptor','/universer-api/file/{fileID}/sign-url','_candidateSocket','loginUrlKey','_notificationService','[PendingState]:\x20received\x20acknowledgement.','?url=','Injector','_socketMessageSubscription','onSyncEditingCollabCursor','mapTo','_onRefRangeChange','state$','IDLE','_lastPointer','url','@univerjs/docs','slice','UUID','_commentService','defineProperty','image/jpeg','DeleteRangeMoveLeftCommandId','RevisionService','_socketService','&to=','COMPLETION_FINISHED','_messageService','pending','_handleHeartbeatEvent','getRandomValues','_drawTextRange','contains','_unlockTransition','_startTelemetryCollaborationNewChangeset','_renderManagerService','ICommandService','getRangePointData','UPDATE_PERMISSION_OBJ','&assign=','getItem','SheetCollabCursorShape','[CollaborationSessionService]:\x20socket\x20error','_permissionService','findNodePositionByCharIndex','selections','_replayCachedMutations','_colorAssignService','_collabCursorState$','_updateSubUnitFromURLParams','ERROR_IMAGE_TYPE','cmd','focused$','_executeRemoteChangeset','_localCacheService','_transformRemoteChangesetByIMECache','_scene','sessionStatus$','selection','visibilityState','_disabled','random','_schedule','getMemberID','post','session.connection-failed','jiqing500','_initCloseConn','_assignedColors','PERMISSION_DENIED','LocalCacheService','getTypeOfUnitDisposed$','_httpService','exhaustSavingTask','transformRemoteChangeset','_collabSessionService','univer-online','triggerDblclick','snapshot','m2Prime','mergeOverrideWithDependencies','getSheetBlock','_substituteRedoStack','312582hvTzdm','CollaborationSession','/universer-api/snapshot/','history','_sendingTimer','[PendingState]:\x20received\x20rejection.','_hovered','rev','_updateLocalCache','_telemetryInfo','setParam','hide','JSONX','univerjs-icon\x20univerjs-icon-','TOO_MANY_REQUESTS','_loadSheet','InsertRangeMoveRightCommandId','children','disposeWithMe','_getRedoStack','synced','handleDeleteRangeMoveUp','eventID','FileId','translate(.97)','_resendTimeout','HEARTBEAT_INTERVAL_KEY','getUnitType','setActiveRange','3vMDXuL','_toggleOnline','onSendChangeset','handleIRemoveCol','not_collab','_tryEnsureSocket','_change$','FETCH_MISSING','prototype','liveShareOperation','_clearRedo','CONNECTOR_DATA_TOO_LARGE','tag','_id','_timeoutTimer','2504888gLJjmG','backgroundColor','getUnhiddenWorksheets','colorChannel1','getAncestorScale','reqId','touchDependencies','IUndoRedoService','TEXT_RANGE_LAYER_INDEX','unitId\x20is\x20not\x20found','startTime','collab-client.tooltip.reconnect','getSheetBySheetId','off-line-single_clip0_910_343','SUBMIT_CHANGESET','_transformUndoredo','Tools','routeKey','_initCommandExecutedListener','currentColor','with','red300','_disableEditing','evenodd','onTransformChange$','_collaborationTimeoutTimer','@univerjs/sheets-ui','_getSignURL','ILogService','getDeserializedSheetBlock','COLLAB_WEB_SOCKET_URL_KEY','setItem','/block/','split','_applyRemoteChangeset','_sender','getSheetId','generateRandomId','univer-online-status','UNIVER_UNKNOWN','resend','listRoles','CollaborationStatus','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','concatMap','fillRule','then','all','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','TEXT','getCoordByCell','auth.needGotoLoginAlert','@univerjs/telemetry','getRenderById','body','permission.content','symbol','substring','deepClone','retryConnectingInterval','text','onCommandExecuted','NodePositionConvertToCursor','disableLocalCache','@univerjs/core','makeDirty','Optional','updateMember','PSEUDO_FETCH_MISSING_RESULT','combineLatest','deserializeToCombResponse','CHANGESET_REVISION_CONFILICT','\x0aAfter:\x20','POST','IPermissionService','getUnit','CompressMutationService','_initEventListeners','toStringTag','uni.network.url-service','getWorkbookSelections','map','enableOfflineEditing','UPDATE_CURSOR','popstate','_socket','localeService','interceptor','WorkbookEditablePermission','_updateLocalCursor','docStateChange$','snapshotServerUrl','RETRY_CONNECTING_MAX_COUNT','image/bmp','_imageSourceCache','_refRangeService','SNAPSHOT_INVALID_SNAPSHOT','createIdentifier','url(#on-line-single_clip0_910_349)','_initResize','handleInsertCol','_cursors','requestParams','measureText','toLowerCase','_awaitingChangeset','_collaborationPaused','CHANGESET_ACK','transformSelections','OTHER_CLIENTS_EDITING','_anchorDot','_getSheetObject','leaveEvent','@univerjs/design','addImageSourceCache','_initMergeInterceptor','Module','collaboration.single-unit.warning','YUUMI_URL_COL_OUT_OF_RANGE','_config','getCollabEntity$','assignAColorForMemberID','CollaborationStatusDisplay','_docTransformIMECacheService','none','_startSheetCollabCursor','IMessageService','NOT_COLLAB','includes','doc.mutation.rich-text-editing','members','IHTTPImplementation','m1Prime','LIVESHARE_REQUEST_HOST','_clearTimeoutTimer','_onRemoteRejected','LocaleService','toDisposable','transformIMECache','path','currentSkeleton$','onPointerMove$','NO_OTHER_CLIENTS_EDITING','batchAllowed','incrementRevOfUnit','SNAPSHOT_SERVER_URL_KEY','Subject','concat','CONFLICT','url(#off-line-single_clip0_910_343)','fetchMissingChangesets','connection\x20error','error','href','fetch_missing','debug','_state$','MessageType','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','has','collabSubmitChangesetUrl','awaiting','[SyncedState]:\x20received\x20acknowledgement.','searchParams','saveOfflineData','_roomMembers$','SYNCED','enableSingleActiveInstanceLock','Shape','/object','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','c2Prime','column','DesktopCollaborationStatusDisplayController','DisposableCollection','beginPath','createInstance','_resendWithTimeout','LIVESHARE_NEW_HOST','@univerjs/rpc','onRemoteRej','objectID','registerOnClose','AUTHZ_URL_KEY','1em','setAlpha','IURLService','ws://127.0.0.1:8000/universer-api/comb/connect','_onRecvEvent','LICENSE_IMPORT_SIZE_EXCEEDED','hidden','RxDisposable','drawWith','IUniverInstanceService','_cursorShapes','_incrementRevisionNumber','SHOULD_CLOSE_CONN','values','_getAPIPrefixPath','result','registerBeforeClose','rxjs/operators','connectInjector','SheetsSelectionsService','now','_rescheduleHeartbeat','deserializeRangeWithSheet','forEach','mapDocumentTypeToUniverType','sendChangesetTimeout','handleInsertRow','transformChangesets','_cursorInfo$','collabStatus.synced','HttpExport','pauseCollaboration','_unitStatus','APPLY_DUPLICATED','collaboration-client.config','_anchor','override','_onRemoteRetry','startColumn','collab-text-range-','_acknowledgedAwaitingChangeset','parseProtocolChangeset','_clearLocalCache','_removeClearOtherTimer','_handleHover','endRow','unknown','_entities','_userManagerService','EmptyMutation','Disposable','_transformPreviousActiveRange','_clearHeartbeatTimer','UniverInstanceType','equals','onTransformRemoteChangesetByIMECache','setConfig','CollaborationSocketService','className','useCallback','_state','YUUMI_UNABLE_LOAD_URL','SNAPSHOT_URL_KEY','arc','roomMembers$','addObject','dispose','ITelemetryService','/-/object/-/batch_allowed','_snapshotServerService','function','_startDocCollabCursor','rgba(255,\x20255,\x20255,\x200.01)','onRemoteRetry','Vector2','@univerjs/ui','memberID','UNIVER_SHEET','lineTo','transformMutationsWithChangeset','_resendTimer','[CollaborationEntity]','[CollaborationSessionService]','InsertColCommandId','_entityInit$','_updateURLWithCurrentState','COMPRESS_MUTATION_SEND','open$','_onRemoteACK','subscribe','_roomMembers','_onCursorDelete','hasOwnProperty','_initUnitPermissionChange','resourceIDs','_setupSubUnitSync','LIVESHARE_OPERATION','failed\x20to\x20apply\x20missed\x20changesets!','_univerInstanceService','/universer-api/stream/file/upload','collaboration.closeRoom','UNAUTHENTICATED','getCurrent','sheetId','unit-cache-','_getUploadFileURL','sheetID','message$','_toggleOffline','univer-pro.collaboration-client.single-active-unit-service','_redoStacks','cursorInfo','_pendingMutations','data','attrs','verdancy600','resolve','onRendered','sequenceExecute','INTERNAL_ERROR','activeSheet$','closeSession','collabStatus.fetchMiss','submit\x20changeset\x20error!','LICENSE_MAX_UNITS_EXCEEDED','compose','headers','width','onRemoteChangeset','range','_localeService','collaboration-session-retry','_color','univer-pro.collaboration-client-socket-service','COMPRESS_MUTATION_APPLY','save\x20fail\x20reason\x20is\x20','@univerjs/network','visibilitychange','sid','_lockTransition','_registerRenderDependencies','create','getOwnPropertySymbols','endColumn','purple300','sessionStatus','\x20in\x20_schedule.','/universer-api/oidc/authpage','newValue','UNIVER_PROJECT','YUUMI_RATE_OVER_LIMIT','_getAPIPrefix','IImageIoService','_sessionStatus$','getCollabEntity','Univer','VIEW_MAIN','rxjs','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_scheduleTimestamp','_saveTaskMap','_ensureSubject','dispose$','_drawRectRange','fromCollab','_docSkeletonManagerService','_syncEditingCollabCursorService','/rev/','HEADER_MENU','ENSURE_SNAPSHOT_EXECUTION','saveSheetBlock','getUndoRedoMutationParamsCache','IAuthzIoService','b64DecodeUnicode','_clearUndo','UnitSnapshot','getCellPositionByOffset','_startCollaboration','SetTextSelectionsOperation','toString','_docTransformSelectionsService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_initModules','USERS_ENTER','ColorKit','duration','collaMsg','_checkMissing','_listenToOfflineEvent','rng','_beforeCloseService','_range','row','NEW_CHANGESETS','INGEST','put','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getImageSourceCache','closePath','_retryCount','textRanges','_telemetryService','ThemeService','/unit/','_cursor','ThresholdInterceptorFactory','div','subUnitId','replaceState','ITransformService','transform','_getCtorByUniverType','fillStyle','ERROR_IMAGE','pushState','CollaborationSessionService','IRenderManagerService','getCurrentUser','clearInterval','delete','UniverCollaborationClientPlugin','UNIVER_DOC','disposeUnit','MSG_FOR_ERROR','LIVESHARE_TERMINATE','image/gif','getCurrentRevOfUnit','MergeInterceptorFactory','DocCollaborationEntity','_removeRoom','socketService','collabStatus.conflict','HEARTBEAT_TIMEOUT','WebSocketService','OffLineSingle','string','handleInsertRangeMoveDown','_online','idSuffix','on-line-single_clip0_910_349','fillText','origin','_unitID','_getSaveTimeout','_handler','get','SessionStatus','hovered','_refreshCollabCursors','HEARTBEAT','_createInitialStateImpl','fromEvent','getLatestCsReqIdBySid','getTime','unitId','session.collaboration-timeout','Plugin','BehaviorSubject','PENDING','_createInitialState','onlineStatusTitle','_collaborationController','transformMutation','_tryReconnect','apply','params','_scheduleClearOtherTimer','_send','some','LocalUndoRedoService','_transformUndoRedoStack','csShouldRetryEvent','urlChange$','getUniverSheetInstance','mutations','CollaborationController','collabWebSocketUrl','setCurrentUser','ICollaborationSocketService','CollaborationEvent','removeMember','[SyncedState]:\x20received\x20rejection.','assign','@univerjs/engine-render','JOINING','RegularPolygon','EffectRefRangId','randomUUID','LEAVE','title','_unitOnClients','gold400','fetchThroughInterceptors','loadOfflineData','status$','RemoveRowCommandId','length','displayName','getSheetObject','isArray','refreshPermission','getCurrentSelections','defs','_commentUpdate$','actions','2529028TVdsBt','transformByState','_getUndoStack','MUTATION','onlineStatusIcon','updateCursorEvent','set','ReplaySubject','replace','setShapeProps','bottom','_ws','unitID','executeCommand','_updateStatus','#FFF','onTransformSelections','_createHandler','UNIVER_COLLABORATION_CLIENT_PLUGIN','_themeService','NodePositionConvertToRectRange','_replaceFileID','push','CommentService','subscribeEvent','_hideTimer','getFocusedUnit','_onUserJoin','fetchMiss','size','show','registerRenderModule','CHANGESET_REJ','toggleOnline','UnitEmbedded','_onLocalMutation','_onRemoteChangeset','HTTPService','_http','APPLY_NON_SEQUENTIAL_REVISION','state','objectActions','getCollabCursors$','_transformStack','_labelPosition','[DataLoaderController]','reconnect','_revisionService','setWaitCount','_queuedRemoteChangesets','add','close','confirm','VIEWPORT_KEY','_joinRoom','_updateState','_eventUnsubscribe','LICENSE_EXPORT_SIZE_EXCEEDED','_socket$','awaitingChangeset','useDependency','_remoteChangesetQueue','getConfig','asObservable','_retryConnectingTimer','ImageSourceType','Rectangle','reverse','ACTIVE_UNIT_EVENT_CHANNEL','DOC_RANGE_TYPE','FromArray','@univerjs/engine-formula','onPointerLeave$','_compressMutationService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','encodeURIComponent','syncEditingCollabCursor','_sheetSkeletonManagerService','clearTimeout','_transitionLocked','_onFetchMissResult','location','_hover','transformUndoRedo','[OfflineState]:\x20received\x20changeset.','storage','_snapshotService','_onConnectionOpen','getColor','serializeRangeWithSheet','_colorIndex','SEND_CHANGESET_TIMEOUT','_docSyncEditingCollabCursorService','UNIVER_SLIDE','ONLINE','getResourcesRequest','deleteCollaborator','LICENSE_DISTRO_REJECTED','getImage','handleInsertRangeMoveRight','SnapshotServerOverHTTPService','onStarting','fill','current','createElement','_onUserLeave','call','SetWorksheetActivateCommand','_transformSelections','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_getSnapshotAPIPrefix','_socketReady','xlink:href','clear','onMissingChangesets','_clearOtherTimers','_getLoginPath','stopTime','delay','HELLO','stringify','max','getUnitStatus$','_commandService','_onConflict','_throwTelemetryCollaborationNewChangeset','/role','FAIL','_collabCursorController','onPointerEnter$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','/collaborator','key','CollaborationEntity','baseRev','_status$','getRelativeToViewportCoord','ImageUploadStatusType','createSocket','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','onlineStatus','react','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','append','blue400','subunit','roomMembers','_urlService','#fff','registerRefRange','_name','forwardRef','MoveRangeCommandId','userID','fromEventSubject','_getAnchorBounding','getAttachHeader','/universer-api/authz','clipPath','bind','collabStatus.syncing','onload','10374525WbVNXK','height','DocStateChangeManagerService','RichTextEditingMutation','commentUpdateEvent','top','error$','_docStateChangeManagerService','_changesetSessionId','133300ZyJFDs','APPLY_REJECT','isPermissionRej','defIds','COLLAB_WEB_SOCKET_URL','_onCombEvent','allowed','BuiltInUIPart','UNKNOWN_CMD','getSkeleton','_clearScheduledTask','RETRY_CONNECTING_MAX_COUNT_KEY','ranges','getRoom','switchMap','_sheetTransformSelectionsService','onRemoteAck','downloadEndpointUrl','collabStatus.offline','patch','XHRHTTPImplementation','_heartbeatTimer','appendMutation','isTransformMutationFailure','off-line-single','conflict.title','_undoRedoService','propertyIsEnumerable','SheetCollaborationEntity','encode'];_0x48f6=function(){return _0x3a98ab;};return _0x48f6();}let k=class extends ee{constructor(_0x4fddf9,_0x4c89ff,_0x3a96d8,_0x31cb36,_0x1ccda9,_0x3da330,_0x4eeebd,_0x29ffd6,_0x392844,_0x25d138,_0x3d0170,_0x2a054b,_0x3e5aba,_0x142fff){const _0x5c7bb3=_0x3cc0f6;super(_0x4fddf9,_0x4c89ff,_0x3a96d8,_0x31cb36,_0x4eeebd,_0x2a054b,_0x3e5aba,_0x392844,_0x25d138),u(this,'status',_0x5c7bb3(0x2cb)),(this[_0x5c7bb3(0x311)]=_0x1ccda9,this[_0x5c7bb3(0x44b)]=_0x3da330,this[_0x5c7bb3(0x5ba)]=_0x29ffd6,this[_0x5c7bb3(0x518)]=_0x3d0170,this[_0x5c7bb3(0x5c3)]=_0x142fff);}['onMissedChangesetFetched'](_0x12b015){const _0x4c67fe=_0x3cc0f6;try{const _0x4e73ef=[..._0x12b015,...this[_0x4c67fe(0x44b)]],_0x4789e1=[this[_0x4c67fe(0x29a)]||this[_0x4c67fe(0x311)]][_0x4c67fe(0x545)](_0x240d57=>!!_0x240d57);let _0x1a5abf,_0x276625;if(_0x4789e1['length']){const _0x43bb38=this[_0x4c67fe(0x5c3)]['transformChangesets'](_0x4e73ef,_0x4789e1,!0x1);if(!_['isTransformChangesetsSuccess'](_0x43bb38))throw _0x43bb38[_0x4c67fe(0x2c9)];_0x1a5abf=_0x43bb38['c1Prime'],_0x276625=_0x43bb38[_0x4c67fe(0x2dc)];}else _0x1a5abf=_0x4e73ef,_0x276625=[];let _0x37a9cb=this[_0x4c67fe(0x359)];_0x1a5abf['forEach'](_0x1c5f5b=>{const _0x25cc82=_0x4c67fe;let _0x49baa3;if(_0x37a9cb['length']){const _0x582c94=this[_0x25cc82(0x5c3)][_0x25cc82(0x338)](_0x1c5f5b,_0x37a9cb);if(!_[_0x25cc82(0x50f)](_0x582c94))throw _0x582c94[_0x25cc82(0x2c9)];_0x49baa3=_0x582c94[_0x25cc82(0x5c5)],_0x37a9cb=_0x582c94[_0x25cc82(0x201)];}else _0x49baa3=_0x1c5f5b;this['_executeRemoteChangeset'](_0x49baa3);}),this['_acknowledgedAwaitingChangeset']&&this[_0x4c67fe(0x2f4)](),this['_awaitingChangeset']&&_0x276625[_0x4c67fe(0x411)]&&(_0x276625[0x0][_0x4c67fe(0x4a1)]=this[_0x4c67fe(0x502)]());let _0xe4145a;if(this[_0x4c67fe(0x29a)]&&_0x37a9cb[_0x4c67fe(0x411)]!==0x0)_0xe4145a=this['_injector'][_0x4c67fe(0x2e1)](F,this[_0x4c67fe(0x426)],this[_0x4c67fe(0x523)],_0x276625[0x0],_0x37a9cb,this[_0x4c67fe(0x3dd)],void 0x0);else{if(this[_0x4c67fe(0x29a)]&&_0x37a9cb['length']===0x0)_0x276625[0x0][_0x4c67fe(0x4a1)]=this[_0x4c67fe(0x502)](),_0xe4145a=this[_0x4c67fe(0x5ba)][_0x4c67fe(0x2e1)](Y,this[_0x4c67fe(0x426)],this[_0x4c67fe(0x523)],_0x276625[0x0],this[_0x4c67fe(0x3dd)]);else{if(_0x37a9cb['length']!==0x0){const _0x116a7a=this[_0x4c67fe(0x5ba)][_0x4c67fe(0x2e1)](W,this['unitID'],this[_0x4c67fe(0x523)],_0x37a9cb,this[_0x4c67fe(0x3dd)]);_0x116a7a[_0x4c67fe(0x1f0)](),_0xe4145a=_0x116a7a;}else _0xe4145a=this[_0x4c67fe(0x5ba)]['createInstance'](oe,this[_0x4c67fe(0x426)],this['type'],this[_0x4c67fe(0x3dd)]);}}return _0xe4145a[_0x4c67fe(0x20d)](),_0xe4145a;}catch(_0x23c7c2){return this[_0x4c67fe(0x518)][_0x4c67fe(0x2c9)]('[FetchMissState]',_0x4c67fe(0x34a),_0x23c7c2),this[_0x4c67fe(0x5ba)][_0x4c67fe(0x2e1)](K,this['unitID'],this[_0x4c67fe(0x523)],this[_0x4c67fe(0x29a)],this[_0x4c67fe(0x359)],this[_0x4c67fe(0x3dd)],!0x1);}}['resend'](){const _0x182906=_0x3cc0f6;throw new Error(_0x182906(0x5b5));}['appendMutation'](_0x3787cf){const _0x3fbe9e=_0x3cc0f6;return this['_pendingMutations'][_0x3fbe9e(0x430)](_0x3787cf),this;}[_0x3cc0f6(0x369)](_0x242a48){const _0x2dfc66=_0x3cc0f6;return this[_0x2dfc66(0x44b)]['push'](_0x242a48),this;}[_0x3cc0f6(0x4d6)](_0x5a794e){const _0x5779fc=_0x3cc0f6;if(this['_awaitingChangeset'])return this[_0x5779fc(0x311)]=this['_awaitingChangeset'],this[_0x5779fc(0x29a)]=null,this;throw new Error(_0x5779fc(0x261));}['onRemoteRej'](_0x4798ad){const _0x1c70e3=_0x3cc0f6;return this[_0x1c70e3(0x496)](!!(_0x4798ad!=null&&_0x4798ad[_0x1c70e3(0x4c8)]));}['onRemoteRetry'](){return this;}[_0x3cc0f6(0x4ef)](){const _0x31e86a=_0x3cc0f6;return this[_0x31e86a(0x5ba)][_0x31e86a(0x2e1)](X,this[_0x31e86a(0x426)],this[_0x31e86a(0x523)],this['_awaitingChangeset'],this[_0x31e86a(0x359)],this[_0x31e86a(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x496)](_0xff4903){const _0x25cfd2=_0x3cc0f6;return this[_0x25cfd2(0x5ba)]['createInstance'](K,this['unitID'],this[_0x25cfd2(0x523)],this[_0x25cfd2(0x29a)],this[_0x25cfd2(0x359)],this[_0x25cfd2(0x3dd)],_0xff4903);}};k=Q([g(0x7,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x8,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x9,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),g(0xa,a[_0x3cc0f6(0x24d)]),g(0xb,a[_0x3cc0f6(0x1d6)]),g(0xc,a[_0x3cc0f6(0x238)]),g(0xd,_[_0x3cc0f6(0x3ba)])],k);function wt(_0x1b5e01,_0x23740b,_0x4ba5c9,_0xfc83d2,_0x1f38fb,_0x17da73){const _0x23399f=_0x3cc0f6;return _0xfc83d2&&_0x1f38fb[_0x23399f(0x411)]?_0x1b5e01['createInstance'](F,_0x23740b,_0x4ba5c9,_0xfc83d2,_0x1f38fb,_0x17da73,void 0x0):_0xfc83d2?_0x1b5e01[_0x23399f(0x2e1)](Y,_0x23740b,_0x4ba5c9,_0xfc83d2,_0x17da73):_0x1f38fb[_0x23399f(0x411)]?_0x1b5e01[_0x23399f(0x2e1)](W,_0x23740b,_0x4ba5c9,_0x1f38fb,_0x17da73):_0x1b5e01[_0x23399f(0x2e1)](oe,_0x23740b,_0x4ba5c9,_0x17da73);}var qs=Object[_0x3cc0f6(0x1c6)],zs=Object[_0x3cc0f6(0x544)],ze=(_0x478b0d,_0x33fcf5,_0x4953bf,_0x34067e)=>{const _0x44a6a0=_0x3cc0f6;for(var _0x2fcbd2=_0x34067e>0x1?void 0x0:_0x34067e?zs(_0x33fcf5,_0x4953bf):_0x33fcf5,_0x2cee8b=_0x478b0d[_0x44a6a0(0x411)]-0x1,_0x5c7a04;_0x2cee8b>=0x0;_0x2cee8b--)(_0x5c7a04=_0x478b0d[_0x2cee8b])&&(_0x2fcbd2=(_0x34067e?_0x5c7a04(_0x33fcf5,_0x4953bf,_0x2fcbd2):_0x5c7a04(_0x2fcbd2))||_0x2fcbd2);return _0x34067e&&_0x2fcbd2&&qs(_0x33fcf5,_0x4953bf,_0x2fcbd2),_0x2fcbd2;},p=(_0x478f9f,_0x52925c)=>(_0x284f36,_0x1af6cf)=>_0x52925c(_0x284f36,_0x1af6cf,_0x478f9f);exports[_0x3cc0f6(0x4a0)]=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x22751f,_0x5ad23d,_0x144b9e,_0x10eecd,_0x5035a8,_0x28bffb,_0x3dbeb0,_0x32810b,_0x487509,_0x3ffb0a,_0x1ba163,_0x164205,_0x52f695){const _0x46566d=_0x3cc0f6;super(),u(this,_0x46566d(0x2cd),new v[(_0x46566d(0x3ea))](null)),u(this,_0x46566d(0x1be),this[_0x46566d(0x2cd)][_0x46566d(0x459)]()),u(this,_0x46566d(0x325)),u(this,'_collaborationPaused',!0x1),u(this,_0x46566d(0x4c5),''),u(this,_0x46566d(0x55a),0x0),u(this,_0x46566d(0x40f),this[_0x46566d(0x1be)][_0x46566d(0x57c)](v[_0x46566d(0x282)](_0x5ccddc=>_0x5ccddc?_0x5ccddc[_0x46566d(0x5d6)]:D[_0x46566d(0x50c)]),v[_0x46566d(0x50b)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x46566d(0x457),[]),(this['unitID']=_0x22751f,this[_0x46566d(0x54f)]=_0x5ad23d,this[_0x46566d(0x578)]=_0x144b9e,this[_0x46566d(0x5ba)]=_0x10eecd,this['_localCacheService']=_0x5035a8,this[_0x46566d(0x463)]=_0x28bffb,this['_localeService']=_0x3dbeb0,this[_0x46566d(0x449)]=_0x32810b,this[_0x46566d(0x518)]=_0x487509,this[_0x46566d(0x495)]=_0x3ffb0a,this[_0x46566d(0x1cd)]=_0x1ba163,this[_0x46566d(0x1dd)]=_0x164205,this[_0x46566d(0x54c)]=_0x52f695);}get[_0x3cc0f6(0x442)](){return this['_state'];}async[_0x3cc0f6(0x5d4)](){const _0x2bcfcf=_0x3cc0f6;if(this[_0x2bcfcf(0x442)])throw new Error(_0x2bcfcf(0x39e));await this[_0x2bcfcf(0x53a)]();}[_0x3cc0f6(0x308)](){const _0x592c16=_0x3cc0f6;return this[_0x592c16(0x29b)]=!0x0,a[_0x592c16(0x2ba)](()=>{const _0x4e373c=_0x592c16;this[_0x4e373c(0x29b)]=!0x1,this[_0x4e373c(0x5a9)]();});}[_0x3cc0f6(0x451)](_0x596657){const _0x6a96e6=_0x3cc0f6;this['_state']=_0x596657,this[_0x6a96e6(0x2cd)][_0x6a96e6(0x517)](_0x596657);}async[_0x3cc0f6(0x53a)](){const _0x222e03=_0x3cc0f6;var _0x1ca55c;this['_updateState'](await this['_createInitialState']()),this[_0x222e03(0x54c)]&&((_0x1ca55c=this[_0x222e03(0x54c)])==null||_0x1ca55c['editingUnit'](this[_0x222e03(0x426)]),this[_0x222e03(0x217)](this[_0x222e03(0x54c)][_0x222e03(0x494)](this[_0x222e03(0x426)])[_0x222e03(0x342)](_0x2cd656=>{const _0x360dbc=_0x222e03;this[_0x360dbc(0x518)]['debug'](_0x360dbc(0x33a),_0x360dbc(0x571),_0x2cd656),_0x2cd656===Dt[_0x360dbc(0x29e)]?(this[_0x360dbc(0x1cd)]['show']({'content':this[_0x360dbc(0x36b)]['t'](_0x360dbc(0x2a6)),'type':J[_0x360dbc(0x2ce)]['Warning']}),this['_permissionService'][_0x360dbc(0x4f2)](new C[(_0x360dbc(0x289))](this[_0x360dbc(0x426)])['id'],!0x1)):this['_permissionService'][_0x360dbc(0x4f2)](new C[(_0x360dbc(0x289))](this[_0x360dbc(0x426)])['id'],!0x0);})));let _0x5000a5=!0x1;return this[_0x222e03(0x217)](this[_0x222e03(0x54f)][_0x222e03(0x1eb)][_0x222e03(0x342)](_0x2cd711=>{const _0x297d0c=_0x222e03;_0x2cd711===x[_0x297d0c(0x478)]?this[_0x297d0c(0x223)](_0x5000a5):_0x2cd711===x['OFFLINE']&&(_0x5000a5=!0x0,this[_0x297d0c(0x355)]());})),this[_0x222e03(0x217)](this[_0x222e03(0x54f)][_0x222e03(0x574)]['subscribe'](_0x5888df=>{const _0x3f2337=_0x222e03;try{switch(_0x5888df['eventID']){case _[_0x3f2337(0x400)][_0x3f2337(0x3aa)]:{this[_0x3f2337(0x43e)](_[_0x3f2337(0x312)](_0x5888df[_0x3f2337(0x35a)]));break;}case _[_0x3f2337(0x400)][_0x3f2337(0x29c)]:{this[_0x3f2337(0x341)](_0x5888df[_0x3f2337(0x35a)]);break;}case _[_0x3f2337(0x400)][_0x3f2337(0x43a)]:{this['_onRemoteRejected']();break;}case _[_0x3f2337(0x400)][_0x3f2337(0x5bc)]:{this[_0x3f2337(0x30e)](_0x5888df[_0x3f2337(0x35a)]);break;}case _[_0x3f2337(0x400)][_0x3f2337(0x275)]:{this[_0x3f2337(0x46a)](_0x5888df['data']['changesets'][_0x3f2337(0x282)](_0x839f2=>_['parseProtocolChangeset'](_0x839f2)));break;}case _[_0x3f2337(0x400)][_0x3f2337(0x5ac)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x3d6f11){throw console[_0x3f2337(0x2c9)]('Error\x20on\x20receiving\x20event',_0x3d6f11),_0x3d6f11;}})),this[_0x222e03(0x325)];}[_0x3cc0f6(0x1d3)](){const _0x94967b=_0x3cc0f6;this[_0x94967b(0x469)]=!0x1;}[_0x3cc0f6(0x374)](){const _0x572128=_0x3cc0f6;if(this[_0x572128(0x469)])throw new Error(_0x572128(0x49d));this['_transitionLocked']=!0x0;}[_0x3cc0f6(0x43d)](_0x387b7d){const _0x342b8c=_0x3cc0f6;this[_0x342b8c(0x374)](),this[_0x342b8c(0x451)](this[_0x342b8c(0x325)][_0x342b8c(0x4dc)](_0x387b7d)),this[_0x342b8c(0x1d3)]();}['_onRemoteChangeset'](_0x21c73e){const _0x3f86fa=_0x3cc0f6;if(!(_0x21c73e[_0x3f86fa(0x511)]<=this[_0x3f86fa(0x449)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0x3f86fa(0x29b)]){this['_remoteChangesetQueue'][_0x3f86fa(0x430)](_0x21c73e);return;}this['_applyRemoteChangeset'](_0x21c73e);}}['_exhaustRemoteChangesetQueue'](){const _0x25abd1=_0x3cc0f6;this[_0x25abd1(0x457)][_0x25abd1(0x300)](_0x3bcea9=>this[_0x25abd1(0x253)](_0x3bcea9)),this[_0x25abd1(0x457)]=[];}['_applyRemoteChangeset'](_0x46c664){const _0x25655f=_0x3cc0f6,_0x110bb3=this[_0x25655f(0x463)][_0x25655f(0x288)][_0x25655f(0x40d)](this[_0x25655f(0x463)]['interceptor'][_0x25655f(0x4f1)]()[_0x25655f(0x36f)])(_0x46c664[_0x25655f(0x3fb)],null)||_0x46c664[_0x25655f(0x3fb)],_0x547c3e={..._0x46c664,'mutations':_0x110bb3};this[_0x25655f(0x374)](),this['_updateState'](this[_0x25655f(0x325)][_0x25655f(0x369)](_0x547c3e)),this[_0x25655f(0x1d3)]();}[_0x3cc0f6(0x341)](_0x4296df){const _0x571e35=_0x3cc0f6;this['_lockTransition'](),this['_updateState'](this[_0x571e35(0x325)][_0x571e35(0x4d6)](_0x4296df)),this[_0x571e35(0x1d3)]();}[_0x3cc0f6(0x2b8)](_0x3e6a5d){const _0x1392f4=_0x3cc0f6;this[_0x1392f4(0x374)](),this[_0x1392f4(0x451)](this['_state'][_0x1392f4(0x2e5)](_0x3e6a5d)),this[_0x1392f4(0x1d3)]();}['_onRemoteRetry'](_0x2c06e7){const _0x22d377=_0x3cc0f6;this[_0x22d377(0x374)](),this[_0x22d377(0x451)](this[_0x22d377(0x325)][_0x22d377(0x332)](_0x2c06e7)),this[_0x22d377(0x1d3)]();}[_0x3cc0f6(0x46a)](_0x214b4a){const _0x39984f=_0x3cc0f6;if(!(this[_0x39984f(0x325)]instanceof k))throw new TypeError(_0x39984f(0x4a6));const _0x55b632=_0x214b4a[_0x39984f(0x282)](_0x5923fd=>{const _0x5f5bed=_0x39984f,_0x5054b9=this[_0x5f5bed(0x463)][_0x5f5bed(0x288)][_0x5f5bed(0x40d)](this[_0x5f5bed(0x463)][_0x5f5bed(0x288)][_0x5f5bed(0x4f1)]()[_0x5f5bed(0x36f)])(_0x5923fd[_0x5f5bed(0x3fb)],null)||_0x5923fd[_0x5f5bed(0x3fb)];return{..._0x5923fd,'mutations':_0x5054b9};});this[_0x39984f(0x374)](),this[_0x39984f(0x451)](this['_state']['onMissedChangesetFetched'](_0x55b632)),this[_0x39984f(0x1d3)]();}[_0x3cc0f6(0x355)](){const _0x3d0f93=_0x3cc0f6;this[_0x3d0f93(0x374)](),this['_updateState'](this['_state'][_0x3d0f93(0x4ef)]()),this[_0x3d0f93(0x1d3)]();}['_toggleOnline'](_0x2d6b52=!0x1){const _0x24ae2c=_0x3cc0f6;this[_0x24ae2c(0x374)](),this[_0x24ae2c(0x451)](this[_0x24ae2c(0x325)][_0x24ae2c(0x43b)]()),this[_0x24ae2c(0x1d3)]();const _0x5857ad=this[_0x24ae2c(0x325)];_0x2d6b52&&_0x5857ad instanceof oe&&(this[_0x24ae2c(0x374)](),this[_0x24ae2c(0x451)](_0x5857ad['fetchMiss']()),this[_0x24ae2c(0x1d3)]());}async[_0x3cc0f6(0x3ec)](){return new Promise(_0xcaef0=>{const _0x4e2c71=_0x10ac;this['session'][_0x4e2c71(0x1eb)]['pipe'](v[_0x4e2c71(0x4e6)](0x1))[_0x4e2c71(0x342)](async _0x446c43=>{const _0x5e2674=_0x4e2c71;_0xcaef0(await this[_0x5e2674(0x3e3)](_0x446c43===x[_0x5e2674(0x478)]));});});}['_createHandler'](){const _0x133862=_0x3cc0f6,_0x47808d=this[_0x133862(0x426)];return{'onStateChange':(_0x5c7e36,_0x4ac156)=>{const _0x4f1077=_0x133862;if(_0x5c7e36!==this['_state'])throw new Error(_0x4f1077(0x58e)+_0x5c7e36[_0x4f1077(0x5d6)]+_0x4f1077(0x279)+_0x4ac156[_0x4f1077(0x5d6)]+'\x0aCurrent:\x20'+this[_0x4f1077(0x325)]['status']);this[_0x4f1077(0x451)](_0x4ac156);},'onSendChangeset':_0x5987a5=>{const _0x55c03d=_0x133862;_0x5987a5[_0x55c03d(0x373)]||(_0x5987a5[_0x55c03d(0x373)]=this[_0x55c03d(0x4c5)],_0x5987a5[_0x55c03d(0x236)]=++this[_0x55c03d(0x55a)]);const _0x200218={'eventID':_['CollaborationEvent'][_0x55c03d(0x23f)],'data':{'unitID':_0x5987a5[_0x55c03d(0x426)],'unitType':this['_type'],'changeset':_0x5987a5,'memberID':this['session'][_0x55c03d(0x1f1)]()}};this[_0x55c03d(0x54f)]['send'](_0x200218,this[_0x55c03d(0x426)]);},'onMissingChangesets':({from:_0x5279f1,to:_0x5a3dab})=>{const _0x362095=_0x133862;this[_0x362095(0x518)][_0x362095(0x2cc)](_0x362095(0x33a),'fetching\x20missing\x20changesets\x20from\x20'+_0x5279f1+'\x20to\x20'+_0x5a3dab);const _0x5b93f4={'eventID':_['CollaborationEvent'][_0x362095(0x229)],'data':{'unitID':_0x47808d,'unitType':this['_type'],'from':_0x5279f1,'to':_0x5a3dab}};this[_0x362095(0x54f)]['send'](_0x5b93f4,this[_0x362095(0x426)]);}};}async['_createInitialStateImpl'](_0x44c09a){const _0x5e3786=_0x3cc0f6;var _0x248053,_0x378c79;const _0x16ad71=await this[_0x5e3786(0x1e8)][_0x5e3786(0x40e)](this[_0x5e3786(0x426)]),_0x1481c4=(_0x248053=_0x16ad71==null?void 0x0:_0x16ad71[_0x5e3786(0x3fb)])!=null?_0x248053:[],_0x41b4ac=(_0x378c79=_0x16ad71==null?void 0x0:_0x16ad71[_0x5e3786(0x455)])!=null?_0x378c79:null,_0xccfc74=!!(_0x41b4ac!=null&&_0x41b4ac[_0x5e3786(0x373)])&&!!(_0x41b4ac!=null&&_0x41b4ac[_0x5e3786(0x236)]);this['_changesetSessionId']=_0xccfc74?_0x41b4ac[_0x5e3786(0x373)]:ys(),this['_changesetReqId']=_0xccfc74?_0x41b4ac[_0x5e3786(0x236)]:0x0;const _0x2ec127=this[_0x5e3786(0x426)];try{this[_0x5e3786(0x1e0)](_0x41b4ac,_0x1481c4);}catch(_0x22723b){this['_logService']['error'](_0x22723b);}const _0x22e541=this['_createHandler']();if(_0x44c09a){const _0xfad4b9=wt(this[_0x5e3786(0x5ba)],_0x2ec127,this[_0x5e3786(0x578)],_0x41b4ac,_0x1481c4,_0x22e541);return _0xfad4b9 instanceof W?_0xfad4b9[_0x5e3786(0x1f0)]():(_0xfad4b9 instanceof F||_0xfad4b9 instanceof Y)&&_0xfad4b9[_0x5e3786(0x259)](),_0xfad4b9;}return this['_injector'][_0x5e3786(0x2e1)](X,_0x2ec127,this[_0x5e3786(0x578)],_0x41b4ac,_0x1481c4,_0x22e541);}[_0x3cc0f6(0x1e0)](_0x358233,_0x18e1bd){const _0x53fb19=_0x3cc0f6;var _0x2c0f73,_0x57c9e0;const _0x141ac0=this['_compressMutationService']['interceptor'][_0x53fb19(0x40d)](this['_compressMutationService'][_0x53fb19(0x288)][_0x53fb19(0x4f1)]()[_0x53fb19(0x36f)]);(_0x2c0f73=_0x141ac0((_0x358233==null?void 0x0:_0x358233[_0x53fb19(0x3fb)])||[],null))==null||_0x2c0f73['forEach'](_0x329320=>this[_0x53fb19(0x495)][_0x53fb19(0x427)](_0x329320['id'],_0x329320['params'])),(_0x57c9e0=_0x141ac0(_0x18e1bd||[],null))==null||_0x57c9e0[_0x53fb19(0x300)](_0x3ab627=>this[_0x53fb19(0x495)][_0x53fb19(0x427)](_0x3ab627['id'],_0x3ab627[_0x53fb19(0x3f2)]));}},exports['CollaborationEntity']=ze([p(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),p(0x4,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),p(0x5,a['Inject'](_[_0x3cc0f6(0x27d)])),p(0x6,a['Inject'](a[_0x3cc0f6(0x2b9)])),p(0x7,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),p(0x8,a['ILogService']),p(0x9,a['ICommandService']),p(0xa,A[_0x3cc0f6(0x2af)]),p(0xb,a[_0x3cc0f6(0x27b)]),p(0xc,a[_0x3cc0f6(0x273)](Oe))],exports[_0x3cc0f6(0x4a0)]),exports[_0x3cc0f6(0x3cd)]=class extends exports['CollaborationEntity']{constructor(_0x480bf2,_0x57ae3b,_0x5670dc,_0x11d79c,_0x11bac8,_0x1b72d7,_0x7c11cf,_0x26a2d4,_0x1df334,_0x46c982,_0x3d81bd,_0x1a14f3,_0x74244a,_0x582c16,_0x16d28b,_0x389409,_0x240b19){const _0x2db8a7=_0x3cc0f6;super(_0x480bf2,_0x5670dc,_0x57ae3b,_0x11d79c,_0x11bac8,_0x1b72d7,_0x7c11cf,_0x26a2d4,_0x74244a,_0x582c16,_0x16d28b,_0x389409,_0x240b19),this[_0x2db8a7(0x426)]=_0x480bf2,this[_0x2db8a7(0x523)]=_0x57ae3b,this[_0x2db8a7(0x4c4)]=_0x1df334,this[_0x2db8a7(0x2ac)]=_0x46c982,this[_0x2db8a7(0x39d)]=_0x3d81bd,this[_0x2db8a7(0x476)]=_0x1a14f3;}['_createHandler'](){const _0x55959d=_0x3cc0f6,_0x48c608=super[_0x55959d(0x42b)]();return _0x48c608[_0x55959d(0x56d)]=_0x1d4e97=>this[_0x55959d(0x2ac)]['transformIMECache'](_0x1d4e97),_0x48c608[_0x55959d(0x42a)]=_0x1e8e1e=>this[_0x55959d(0x39d)][_0x55959d(0x29d)](_0x1e8e1e),_0x48c608['onSyncEditingCollabCursor']=_0x52cb94=>this[_0x55959d(0x476)][_0x55959d(0x466)](_0x52cb94),_0x48c608['onTransformRemoteChangesetByIMECache']=_0x1595de=>this[_0x55959d(0x2ac)][_0x55959d(0x1fc)](_0x1595de),_0x48c608;}async[_0x3cc0f6(0x53a)](){const _0x4c6da1=_0x3cc0f6,_0x2678d3=await super[_0x4c6da1(0x53a)]();return this[_0x4c6da1(0x4c4)][_0x4c6da1(0x28b)]['pipe'](v['takeUntil'](this[_0x4c6da1(0x38b)]))[_0x4c6da1(0x342)](_0x2f82e5=>{const _0x5cb63f=_0x4c6da1;if(_0x2f82e5==null)return;const {unitId:_0x508f78,redoState:_0x5c2fba,commandId:_0x148066}=_0x2f82e5;if(_0x508f78!==this[_0x5cb63f(0x426)])return;const _0x63566={'id':_0x148066,'type':a['CommandType'][_0x5cb63f(0x41d)],'params':{'unitId':_0x508f78,'actions':_0x5c2fba['actions'],'textRanges':null}};this[_0x5cb63f(0x43d)](_0x63566);}),_0x2678d3;}},exports[_0x3cc0f6(0x3cd)]=ze([p(0x3,a[_0x3cc0f6(0x573)](a['Injector'])),p(0x4,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),p(0x5,a['Inject'](_[_0x3cc0f6(0x27d)])),p(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),p(0x7,a[_0x3cc0f6(0x573)](_['RevisionService'])),p(0x8,a[_0x3cc0f6(0x573)](N[_0x3cc0f6(0x4bf)])),p(0x9,a['Inject'](Ie)),p(0xa,a['Inject'](Ce)),p(0xb,a['Inject'](qe)),p(0xc,a[_0x3cc0f6(0x24d)]),p(0xd,a[_0x3cc0f6(0x1d6)]),p(0xe,A[_0x3cc0f6(0x2af)]),p(0xf,a['IPermissionService']),p(0x10,a['Optional'](Oe))],exports[_0x3cc0f6(0x3cd)]),exports[_0x3cc0f6(0x4e2)]=class extends exports[_0x3cc0f6(0x4a0)]{constructor(_0x3a8108,_0x4017eb,_0x2dce43,_0x506018,_0x128241,_0x560671,_0x29b008,_0x22b5af,_0x1334de,_0x15fc56,_0x380412,_0x2ec9bf,_0x3d7e86,_0x372c0f){const _0x2e06b5=_0x3cc0f6;super(_0x3a8108,_0x2dce43,_0x4017eb,_0x506018,_0x128241,_0x560671,_0x29b008,_0x22b5af,_0x15fc56,_0x380412,_0x2ec9bf,_0x3d7e86,_0x372c0f),this[_0x2e06b5(0x426)]=_0x3a8108,this[_0x2e06b5(0x523)]=_0x4017eb,this[_0x2e06b5(0x4d5)]=_0x1334de;}[_0x3cc0f6(0x42b)](){const _0x133ce0=_0x3cc0f6,_0x3facab=super['_createHandler']();return _0x3facab[_0x133ce0(0x42a)]=_0x50fa0f=>this[_0x133ce0(0x4d5)][_0x133ce0(0x29d)](_0x50fa0f),_0x3facab;}async['_init'](){const _0x4f40d5=_0x3cc0f6,_0xf03377=await super[_0x4f40d5(0x53a)]();return this[_0x4f40d5(0x217)](this[_0x4f40d5(0x495)][_0x4f40d5(0x26e)]((_0x583d56,_0x9a6551)=>{const _0x489b18=_0x4f40d5;if(_0x583d56[_0x489b18(0x523)]!==a[_0x489b18(0x566)][_0x489b18(0x41d)]||_0x9a6551!=null&&_0x9a6551[_0x489b18(0x38d)]||_0x9a6551!=null&&_0x9a6551['onlyLocal'])return;const _0xe9128b=_0x583d56[_0x489b18(0x3f2)];if((_0xe9128b==null?void 0x0:_0xe9128b[_0x489b18(0x3e7)])!==this[_0x489b18(0x426)])return;const _0x9782b5=_0x583d56,_0x43901c=this['_compressMutationService']['interceptor'][_0x489b18(0x40d)](this[_0x489b18(0x463)]['interceptor'][_0x489b18(0x4f1)]()[_0x489b18(0x33f)])([_0x9782b5],null)||[_0x9782b5];this[_0x489b18(0x43d)](_0x43901c[0x0]);})),_0xf03377;}},exports[_0x3cc0f6(0x4e2)]=ze([p(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),p(0x4,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),p(0x5,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x27d)])),p(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),p(0x7,a[_0x3cc0f6(0x573)](_['RevisionService'])),p(0x8,a[_0x3cc0f6(0x573)](pe)),p(0x9,a[_0x3cc0f6(0x24d)]),p(0xa,a[_0x3cc0f6(0x1d6)]),p(0xb,A[_0x3cc0f6(0x2af)]),p(0xc,a[_0x3cc0f6(0x27b)]),p(0xd,a[_0x3cc0f6(0x273)](Oe))],exports['SheetCollaborationEntity']);var Js=Object[_0x3cc0f6(0x1c6)],Zs=Object['getOwnPropertyDescriptor'],Qs=(_0x14ded4,_0x56eaf1,_0x2e9c7e,_0x2503e8)=>{const _0x1f493b=_0x3cc0f6;for(var _0x19ad6f=_0x2503e8>0x1?void 0x0:_0x2503e8?Zs(_0x56eaf1,_0x2e9c7e):_0x56eaf1,_0xb6b1b=_0x14ded4[_0x1f493b(0x411)]-0x1,_0x1f0eb4;_0xb6b1b>=0x0;_0xb6b1b--)(_0x1f0eb4=_0x14ded4[_0xb6b1b])&&(_0x19ad6f=(_0x2503e8?_0x1f0eb4(_0x56eaf1,_0x2e9c7e,_0x19ad6f):_0x1f0eb4(_0x19ad6f))||_0x19ad6f);return _0x2503e8&&_0x19ad6f&&Js(_0x56eaf1,_0x2e9c7e,_0x19ad6f),_0x19ad6f;},Ne=(_0x46993a,_0x43b7f3)=>(_0x147e92,_0x571553)=>_0x43b7f3(_0x147e92,_0x571553,_0x46993a);exports[_0x3cc0f6(0x3fc)]=class extends a['RxDisposable']{constructor(_0x58e624,_0x59db86,_0x47cf20){const _0x340b5d=_0x3cc0f6;super(),u(this,_0x340b5d(0x318),new Map()),u(this,_0x340b5d(0x33d),new v[(_0x340b5d(0x2c3))]()),(this[_0x340b5d(0x5ba)]=_0x58e624,this['_collabSessionService']=_0x59db86,this[_0x340b5d(0x34b)]=_0x47cf20,this[_0x340b5d(0x53a)]());}[_0x3cc0f6(0x32b)](){const _0x279792=_0x3cc0f6;super[_0x279792(0x32b)](),this[_0x279792(0x318)][_0x279792(0x300)](_0x1fa1b1=>_0x1fa1b1[_0x279792(0x32b)]()),this['_entities'][_0x279792(0x48b)]();}[_0x3cc0f6(0x383)](_0x3245bc){const _0x6ab9f7=_0x3cc0f6;var _0x1666ba;return(_0x1666ba=this[_0x6ab9f7(0x318)][_0x6ab9f7(0x3de)](_0x3245bc))!=null?_0x1666ba:null;}[_0x3cc0f6(0x2a9)](_0x6e67cb){const _0x1f1ef7=_0x3cc0f6,_0x560073=this[_0x1f1ef7(0x383)](_0x6e67cb);return _0x560073?v['of'](_0x560073):this[_0x1f1ef7(0x33d)][_0x1f1ef7(0x57c)](E[_0x1f1ef7(0x545)](_0x32bd8e=>_0x32bd8e[_0x1f1ef7(0x426)]===_0x6e67cb));}[_0x3cc0f6(0x53a)](){const _0x91c9eb=_0x3cc0f6;this[_0x91c9eb(0x34b)][_0x91c9eb(0x541)](a[_0x91c9eb(0x31e)][_0x91c9eb(0x336)])[_0x91c9eb(0x57c)](v[_0x91c9eb(0x585)](this[_0x91c9eb(0x38b)]),E[_0x91c9eb(0x490)](0x10))[_0x91c9eb(0x342)](async _0x5e398a=>{const _0x11cd45=_0x91c9eb,_0x3824c5=_0x5e398a[_0x11cd45(0x527)](),_0x15affc=await this[_0x11cd45(0x39a)](_0x3824c5,H[_0x11cd45(0x336)]);this[_0x11cd45(0x318)][_0x11cd45(0x420)](_0x3824c5,_0x15affc);}),this[_0x91c9eb(0x34b)][_0x91c9eb(0x541)](a[_0x91c9eb(0x31e)]['UNIVER_DOC'])['pipe'](v[_0x91c9eb(0x585)](this[_0x91c9eb(0x38b)]),E[_0x91c9eb(0x490)](0x10))[_0x91c9eb(0x57c)](E['filter'](_0x403d1a=>!_0x403d1a[_0x91c9eb(0x527)]()[_0x91c9eb(0x587)]('__')))[_0x91c9eb(0x342)](async _0x848f44=>{const _0x21fea8=_0x91c9eb,_0x7532e9=_0x848f44[_0x21fea8(0x527)](),_0x14d4ab=await this['_startCollaboration'](_0x7532e9,H['UNIVER_DOC']);this['_entities'][_0x21fea8(0x420)](_0x7532e9,_0x14d4ab);}),v[_0x91c9eb(0x570)](this[_0x91c9eb(0x34b)][_0x91c9eb(0x1f9)](a[_0x91c9eb(0x31e)][_0x91c9eb(0x336)]),this[_0x91c9eb(0x34b)][_0x91c9eb(0x1f9)](a[_0x91c9eb(0x31e)][_0x91c9eb(0x3c6)]))[_0x91c9eb(0x57c)](v[_0x91c9eb(0x585)](this[_0x91c9eb(0x38b)]))[_0x91c9eb(0x342)](_0x42d2d1=>{const _0x1ecb2d=_0x91c9eb,_0x456de8=_0x42d2d1[_0x1ecb2d(0x527)](),_0x2ec769=this[_0x1ecb2d(0x318)]['get'](_0x456de8);_0x2ec769&&(_0x2ec769[_0x1ecb2d(0x32b)](),this[_0x1ecb2d(0x318)]['delete'](_0x456de8));});}async[_0x3cc0f6(0x39a)](_0x46b1b7,_0x114bde){const _0x3223c9=_0x3cc0f6,_0x5c1a94=await this[_0x3223c9(0x1fd)][_0x3223c9(0x57b)](_0x46b1b7),_0x6090f6=this[_0x3223c9(0x5ba)]['createInstance'](this[_0x3223c9(0x3bc)](_0x114bde),_0x46b1b7,_0x114bde,_0x5c1a94);return await _0x6090f6[_0x3223c9(0x5d4)](),this[_0x3223c9(0x33d)][_0x3223c9(0x517)](_0x6090f6),_0x6090f6;}[_0x3cc0f6(0x3bc)](_0x977bff){const _0x8ff0eb=_0x3cc0f6;switch(_0x977bff){case H['UNIVER_DOC']:return exports['DocCollaborationEntity'];case H[_0x8ff0eb(0x336)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x8ff0eb(0x3ad)+_0x977bff);}}},exports[_0x3cc0f6(0x3fc)]=Qs([Ne(0x0,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),Ne(0x1,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x3c0)])),Ne(0x2,a[_0x3cc0f6(0x2f2)])],exports[_0x3cc0f6(0x3fc)]);const ct=[_0x3cc0f6(0x379),_0x3cc0f6(0x1f4),_0x3cc0f6(0x35c),_0x3cc0f6(0x246),_0x3cc0f6(0x4ab),_0x3cc0f6(0x40c)];class Je extends a[_0x3cc0f6(0x31b)]{constructor(){const _0x1c3dbb=_0x3cc0f6;super(...arguments),u(this,'_assignedColors',new Map()),u(this,_0x1c3dbb(0x474),0x0);}[_0x3cc0f6(0x2aa)](_0x4bddd7){const _0x5374b5=_0x3cc0f6;if(this[_0x5374b5(0x1f6)]['has'](_0x4bddd7))return this[_0x5374b5(0x1f6)][_0x5374b5(0x3de)](_0x4bddd7);const _0x3c7622=ct[this[_0x5374b5(0x474)]];return this['_colorIndex']=(this[_0x5374b5(0x474)]+0x1)%ct['length'],this['_assignedColors'][_0x5374b5(0x420)](_0x4bddd7,_0x3c7622),_0x3c7622;}}var ei=Object[_0x3cc0f6(0x1c6)],ti=Object[_0x3cc0f6(0x544)],si=(_0xfe02cb,_0x383a21,_0x10db27,_0x434d10)=>{const _0x31c4f6=_0x3cc0f6;for(var _0x502b36=_0x434d10>0x1?void 0x0:_0x434d10?ti(_0x383a21,_0x10db27):_0x383a21,_0x629759=_0xfe02cb[_0x31c4f6(0x411)]-0x1,_0x1828f8;_0x629759>=0x0;_0x629759--)(_0x1828f8=_0xfe02cb[_0x629759])&&(_0x502b36=(_0x434d10?_0x1828f8(_0x383a21,_0x10db27,_0x502b36):_0x1828f8(_0x502b36))||_0x502b36);return _0x434d10&&_0x502b36&&ei(_0x383a21,_0x10db27,_0x502b36),_0x502b36;},z=(_0x29eb11,_0x252443)=>(_0x122287,_0x4e7cae)=>_0x252443(_0x122287,_0x4e7cae,_0x29eb11);const ii=0x12c,ni=0x64;let ke=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x38e65b,_0x2686e4,_0x43e05e,_0x5a7feb,_0x370b7d,_0x198817,_0x49bdd0,_0xf9e7d,_0x6bb67e){const _0x404f35=_0x3cc0f6;super(),u(this,_0x404f35(0x3d6),!0x1),u(this,'_init',!0x1),u(this,_0x404f35(0x305),new v[(_0x404f35(0x3ea))](new Map())),u(this,_0x404f35(0x59d),this[_0x404f35(0x305)][_0x404f35(0x459)]()),u(this,_0x404f35(0x2d6),new v[(_0x404f35(0x3ea))]([])),u(this,_0x404f35(0x329),this['_roomMembers$']['pipe'](v[_0x404f35(0x4fa)](ii))),u(this,_0x404f35(0x28a),a[_0x404f35(0x50d)](_0x42f1af=>{const _0x41aa35=_0x404f35,_0x26338b={'eventID':_[_0x41aa35(0x400)][_0x41aa35(0x284)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':yt(_0x42f1af)}};this[_0x41aa35(0x5cd)][_0x41aa35(0x5d7)](_0x26338b,this[_0x41aa35(0x426)]);},ni)),(this[_0x404f35(0x426)]=_0x38e65b,this[_0x404f35(0x5cd)]=_0x2686e4,this[_0x404f35(0x5ba)]=_0x43e05e,this[_0x404f35(0x1e1)]=_0x5a7feb,this[_0x404f35(0x5a7)]=_0x370b7d,this['_syncEditingCollabCursorService']=_0x198817,this[_0x404f35(0x5c3)]=_0x49bdd0,this[_0x404f35(0x34b)]=_0xf9e7d,this[_0x404f35(0x495)]=_0x6bb67e);}get[_0x3cc0f6(0x358)](){const _0x5cb8df=_0x3cc0f6;return this['_cursorInfo$'][_0x5cb8df(0x535)]();}get[_0x3cc0f6(0x4ad)](){const _0x2fc0fe=_0x3cc0f6;return this['_roomMembers$'][_0x2fc0fe(0x535)]();}['dispose'](){const _0x330f40=_0x3cc0f6;super['dispose'](),this[_0x330f40(0x305)]['next'](new Map()),this[_0x330f40(0x305)]['complete'](),this[_0x330f40(0x2d6)][_0x330f40(0x517)]([]),this[_0x330f40(0x2d6)]['complete']();}[_0x3cc0f6(0x5d4)](){const _0xd2c7e=_0x3cc0f6;this[_0xd2c7e(0x53a)]||(this[_0xd2c7e(0x53a)]=!0x0,this[_0xd2c7e(0x5cd)][_0xd2c7e(0x1eb)][_0xd2c7e(0x57c)](v[_0xd2c7e(0x585)](this['dispose$']))[_0xd2c7e(0x342)](_0x485132=>{const _0x5e1e8b=_0xd2c7e;_0x485132===x[_0x5e1e8b(0x478)]?this[_0x5e1e8b(0x223)]():this[_0x5e1e8b(0x355)]();}),this[_0xd2c7e(0x5cd)]['event$'][_0xd2c7e(0x57c)](v[_0xd2c7e(0x585)](this['dispose$']))[_0xd2c7e(0x342)](_0x535b42=>{const _0x619966=_0xd2c7e,_0x381cf6=_0x535b42[_0x619966(0x21b)];_0x381cf6===_[_0x619966(0x400)][_0x619966(0x284)]&&this[_0x619966(0x50a)](_0x535b42),_0x381cf6===_['CollaborationEvent'][_0x619966(0x5cf)]&&this[_0x619966(0x344)](_0x535b42);}),this[_0xd2c7e(0x217)](this['_commandService']['onCommandExecuted'](_0x55c1d3=>{const _0x11884a=_0xd2c7e,_0x7bf13c=_0x55c1d3[_0x11884a(0x3f2)];_0x7bf13c!=null&&this[_0x11884a(0x3d6)]&&_0x55c1d3['id']===re[_0x11884a(0x39b)]['id']&&_0x7bf13c[_0x11884a(0x3e7)]===this[_0x11884a(0x426)]&&_0x7bf13c['isEditing']===!0x1&&_0x7bf13c[_0x11884a(0x4d2)]['length']>0x0&&this['_updateLocalCursor'](_0x7bf13c[_0x11884a(0x4d2)]);})),this[_0xd2c7e(0x38f)][_0xd2c7e(0x5a5)][_0xd2c7e(0x57c)](v[_0xd2c7e(0x585)](this[_0xd2c7e(0x38b)]))[_0xd2c7e(0x342)](_0x3d4638=>{const _0x5102ee=_0xd2c7e;if((_0x3d4638==null?void 0x0:_0x3d4638['unitID'])!==this[_0x5102ee(0x426)])return;const _0x4bd2fe={'eventID':_[_0x5102ee(0x400)][_0x5102ee(0x284)],'data':_0x3d4638};this[_0x5102ee(0x50a)](_0x4bd2fe);}),this[_0xd2c7e(0x217)](this['_commandService'][_0xd2c7e(0x26e)](_0x4974e1=>{const _0x2b1183=_0xd2c7e;if(_0x4974e1[_0x2b1183(0x3f2)]==null)return;const _0x4fe4a7=_0x4974e1['params'];if(_0x4974e1['id']!==re[_0x2b1183(0x4c0)]['id']||_0x4fe4a7[_0x2b1183(0x3e7)]!==this[_0x2b1183(0x426)])return;const _0xac72c9={'id':_0x2b1183(0x2b2),'params':_0x4fe4a7},_0x32f72a=this[_0x2b1183(0x358)];for(const [_0x44a03a,_0x5971f4]of _0x32f72a){const _0x18bdd8={'id':_0x2b1183(0x2b2),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5971f4[_0x2b1183(0x4d2)]}},_0x7d048e=this['_transformService'][_0x2b1183(0x3ef)](_0xac72c9,_0x18bdd8,!0x1);if(_[_0x2b1183(0x4dd)](_0x7d048e))throw _0x7d048e[_0x2b1183(0x2c9)];_0x32f72a[_0x2b1183(0x420)](_0x44a03a,{..._0x5971f4,'ranges':_0x7d048e[_0x2b1183(0x201)][_0x2b1183(0x3f2)][_0x2b1183(0x3b1)]});}queueMicrotask(()=>{const _0x4d17f2=_0x2b1183;this[_0x4d17f2(0x305)]['next'](_0x32f72a);});})));}[_0x3cc0f6(0x50a)](_0x29dece){const _0x186c60=_0x3cc0f6;var _0x91b626,_0x5b9754;const {memberID:_0x21612d,selection:_0x4e89a7}=_0x29dece[_0x186c60(0x35a)],_0x1fade2=ks(_0x4e89a7),_0x3633b4=(_0x5b9754=(_0x91b626=this[_0x186c60(0x5a7)][_0x186c60(0x5cc)](this[_0x186c60(0x426)],_0x21612d))==null?void 0x0:_0x91b626['name'])!=null?_0x5b9754:_0x186c60(0x5a6),_0x1e098a={'color':this[_0x186c60(0x1e1)]['assignAColorForMemberID'](_0x21612d),'name':_0x3633b4,'ranges':_0x1fade2},_0x52c57c=this[_0x186c60(0x358)];_0x52c57c[_0x186c60(0x420)](_0x21612d,_0x1e098a),this[_0x186c60(0x305)][_0x186c60(0x517)](_0x52c57c);}[_0x3cc0f6(0x344)](_0x4fc827){const _0x582b81=_0x3cc0f6,{memberID:_0x580cea}=_0x4fc827[_0x582b81(0x35a)],_0x48aae1=this[_0x582b81(0x358)];_0x48aae1[_0x582b81(0x3c4)](_0x580cea),this['_cursorInfo$'][_0x582b81(0x517)](_0x48aae1);}[_0x3cc0f6(0x223)](){const _0x513fbe=_0x3cc0f6;var _0x249b82;if(this[_0x513fbe(0x3d6)]=!0x0,((_0x249b82=this[_0x513fbe(0x34b)]['getFocusedUnit']())==null?void 0x0:_0x249b82[_0x513fbe(0x527)]())!==this[_0x513fbe(0x426)])return;const _0x237e29=this[_0x513fbe(0x5ba)][_0x513fbe(0x3de)](re['DocSelectionManagerService'])[_0x513fbe(0x52f)]();Array['isArray'](_0x237e29)&&_0x237e29['length']>0x0&&this[_0x513fbe(0x28a)](_0x237e29);}['_toggleOffline'](){this['_online']=!0x1;}};ke=si([z(0x2,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),z(0x3,a[_0x3cc0f6(0x573)](Je)),z(0x4,a[_0x3cc0f6(0x573)](Z)),z(0x5,a['Inject'](qe)),z(0x6,_['ITransformService']),z(0x7,a[_0x3cc0f6(0x2f2)]),z(0x8,a[_0x3cc0f6(0x1d6)])],ke);var ri=Object[_0x3cc0f6(0x1c6)],oi=Object['getOwnPropertyDescriptor'],ai=(_0x25fbf5,_0x43ecf8,_0xb2ac5c,_0x107059)=>{const _0x8d0e6d=_0x3cc0f6;for(var _0x5851b6=_0x107059>0x1?void 0x0:_0x107059?oi(_0x43ecf8,_0xb2ac5c):_0x43ecf8,_0x161df0=_0x25fbf5[_0x8d0e6d(0x411)]-0x1,_0x5e6a04;_0x161df0>=0x0;_0x161df0--)(_0x5e6a04=_0x25fbf5[_0x161df0])&&(_0x5851b6=(_0x107059?_0x5e6a04(_0x43ecf8,_0xb2ac5c,_0x5851b6):_0x5e6a04(_0x5851b6))||_0x5851b6);return _0x107059&&_0x5851b6&&ri(_0x43ecf8,_0xb2ac5c,_0x5851b6),_0x5851b6;},se=(_0x220822,_0x5a991b)=>(_0x5f5964,_0x8f4ef8)=>_0x5a991b(_0x5f5964,_0x8f4ef8,_0x220822);const ci=0x12c,li=0x64,hi=()=>{let _0x2580ff=[],_0x424dc5=!0x1;return _0x2f25c3=>{const _0x495adc=_0x10ac;_0x2580ff[_0x495adc(0x430)](_0x2f25c3),_0x424dc5||(_0x424dc5=!0x0,setTimeout(()=>{const _0x179cb7=_0x495adc;_0x2580ff[_0x179cb7(0x300)](_0x4142f9=>_0x4142f9()),_0x2580ff=[],_0x424dc5=!0x1;}));};};let Be=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x2f37cb,_0x4c9b23,_0x549b3b,_0x5dc37f,_0x438603,_0x52eee5,_0x155b1d,_0x2fa33){const _0x12cc98=_0x3cc0f6;super(),u(this,'_online',!0x1),u(this,_0x12cc98(0x53a),!0x1),u(this,_0x12cc98(0x305),new v['BehaviorSubject'](new Map())),u(this,_0x12cc98(0x59d),this[_0x12cc98(0x305)]['asObservable']()),u(this,_0x12cc98(0x2d6),new v[(_0x12cc98(0x3ea))]([])),u(this,_0x12cc98(0x329),this['_roomMembers$'][_0x12cc98(0x57c)](v[_0x12cc98(0x4fa)](ci))),u(this,_0x12cc98(0x28a),a[_0x12cc98(0x50d)]((_0x49f5db,_0x17b196)=>{const _0x552679=_0x12cc98,_0x4ea7b8={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x552679(0x426)],'memberID':this[_0x552679(0x5cd)][_0x552679(0x1f1)](),'selection':et[_0x552679(0x473)](_0x49f5db,_0x17b196[_0x552679(0x36a)])}};this['_session'][_0x552679(0x5d7)](_0x4ea7b8,this[_0x552679(0x426)]);},li)),(this[_0x12cc98(0x426)]=_0x2f37cb,this[_0x12cc98(0x5cd)]=_0x4c9b23,this[_0x12cc98(0x5ba)]=_0x549b3b,this[_0x12cc98(0x1e1)]=_0x5dc37f,this[_0x12cc98(0x5a7)]=_0x438603,this[_0x12cc98(0x34b)]=_0x52eee5,this[_0x12cc98(0x495)]=_0x155b1d,this['_refRangeService']=_0x2fa33);}get['cursorInfo'](){const _0x113a15=_0x3cc0f6;return this[_0x113a15(0x305)]['getValue']();}get['roomMembers'](){const _0x381a31=_0x3cc0f6;return this[_0x381a31(0x2d6)][_0x381a31(0x535)]();}[_0x3cc0f6(0x32b)](){const _0x5c416e=_0x3cc0f6;super['dispose'](),this[_0x5c416e(0x305)][_0x5c416e(0x517)](new Map()),this[_0x5c416e(0x305)][_0x5c416e(0x5d2)](),this[_0x5c416e(0x2d6)]['next']([]),this['_roomMembers$']['complete']();}[_0x3cc0f6(0x5d4)](){const _0x2d63a8=_0x3cc0f6;this[_0x2d63a8(0x53a)]||(this[_0x2d63a8(0x53a)]=!0x0,this[_0x2d63a8(0x5cd)][_0x2d63a8(0x1eb)][_0x2d63a8(0x57c)](v['takeUntil'](this[_0x2d63a8(0x38b)]))[_0x2d63a8(0x342)](_0x59a997=>{const _0x5cdff4=_0x2d63a8;_0x59a997===x[_0x5cdff4(0x478)]?this[_0x5cdff4(0x223)]():this['_toggleOffline']();}),this[_0x2d63a8(0x5cd)][_0x2d63a8(0x574)]['pipe'](v[_0x2d63a8(0x585)](this[_0x2d63a8(0x38b)]))[_0x2d63a8(0x342)](_0x22f436=>{const _0x515e11=_0x2d63a8,_0xcdda08=_0x22f436[_0x515e11(0x21b)];_0xcdda08===_[_0x515e11(0x400)]['UPDATE_CURSOR']&&this[_0x515e11(0x50a)](_0x22f436),_0xcdda08===_[_0x515e11(0x400)][_0x515e11(0x5cf)]&&this[_0x515e11(0x344)](_0x22f436);}),this[_0x2d63a8(0x1bd)](),this[_0x2d63a8(0x217)](this[_0x2d63a8(0x495)]['onCommandExecuted'](_0x57bf1a=>{const _0x10045b=_0x2d63a8;if(this[_0x10045b(0x3d6)]&&_0x57bf1a['id']===C['SetSelectionsOperation']['id']&&_0x57bf1a['params'][_0x10045b(0x3e7)]===this[_0x10045b(0x426)]){const _0x4e8a12=_0x57bf1a[_0x10045b(0x3f2)];this[_0x10045b(0x28a)](_0x4e8a12[_0x10045b(0x3b8)],_0x4e8a12[_0x10045b(0x1df)][0x0]);}})));}[_0x3cc0f6(0x50a)](_0x2eefe9){const _0x1bdee7=_0x3cc0f6;var _0x3a9b15,_0x2ba6ea;const {memberID:_0x5323e5,selection:_0x2650ea}=_0x2eefe9[_0x1bdee7(0x35a)],{sheetName:_0x46696f,range:_0x2e7bc8}=et[_0x1bdee7(0x2ff)](_0x2650ea),_0x5f20d6={'name':(_0x2ba6ea=(_0x3a9b15=this[_0x1bdee7(0x5a7)][_0x1bdee7(0x5cc)](this[_0x1bdee7(0x426)],_0x5323e5))==null?void 0x0:_0x3a9b15[_0x1bdee7(0x51a)])!=null?_0x2ba6ea:_0x1bdee7(0x5a6),'range':this[_0x1bdee7(0x4f7)](_0x46696f,_0x2e7bc8),'sheetID':_0x46696f,'color':this[_0x1bdee7(0x1e1)][_0x1bdee7(0x2aa)](_0x5323e5),'selection':_0x2650ea},_0x33e35b=this['cursorInfo'];_0x33e35b[_0x1bdee7(0x420)](_0x5323e5,_0x5f20d6),this[_0x1bdee7(0x305)][_0x1bdee7(0x517)](_0x33e35b);}['_onCursorDelete'](_0x597af9){const _0x473611=_0x3cc0f6,{memberID:_0x140ae5}=_0x597af9[_0x473611(0x35a)],_0xa6c063=this['cursorInfo'];_0xa6c063[_0x473611(0x3c4)](_0x140ae5),this[_0x473611(0x305)][_0x473611(0x517)](_0xa6c063);}['_getMergeRange'](_0x121171,_0x288bd5){const _0x51fd0b=_0x3cc0f6;var _0x2fd1ed,_0x8e5af3;const _0x4971f4=(_0x8e5af3=(_0x2fd1ed=this[_0x51fd0b(0x34b)][_0x51fd0b(0x3fa)](this[_0x51fd0b(0x426)]))==null?void 0x0:_0x2fd1ed[_0x51fd0b(0x23d)](_0x121171))==null?void 0x0:_0x8e5af3['getMergeData']();return(_0x4971f4==null?void 0x0:_0x4971f4['find'](_0x3e8634=>a[_0x51fd0b(0x45c)][_0x51fd0b(0x1d2)](_0x3e8634,_0x288bd5)))||_0x288bd5;}[_0x3cc0f6(0x1bd)](){const _0x2a3fd4=_0x3cc0f6,_0x47d001=new a['DisposableCollection'](),_0x5c8b00=hi(),_0x1e058c=()=>{const _0x71ae42=_0x10ac;_0x47d001['dispose']();const _0x1343f6=(_0x4cfd10,_0x3afa25,_0x4ab9bf,_0x18d9cc)=>{const _0x33a18f=_0x10ac;let _0x5c985f=[];switch(_0x4cfd10['id']){case C[_0x33a18f(0x407)][_0x33a18f(0x1c8)]:{_0x5c985f=C[_0x33a18f(0x501)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x51d)]:{_0x5c985f=C[_0x33a18f(0x21a)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x33c)]:{_0x5c985f=C[_0x33a18f(0x295)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x592)]:{_0x5c985f=C[_0x33a18f(0x3d5)](_0x4cfd10,_0x18d9cc);break;}case C['EffectRefRangId'][_0x33a18f(0x215)]:{_0x5c985f=C[_0x33a18f(0x47d)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x533)]:{_0x5c985f=C[_0x33a18f(0x303)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x4b3)]:{_0x5c985f=C['handleMoveRange'](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)]['RemoveColCommandId']:{_0x5c985f=C[_0x33a18f(0x225)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x410)]:{_0x5c985f=C['handleIRemoveRow'](_0x4cfd10,_0x18d9cc);break;}}const _0x22c9ab=C[_0x33a18f(0x5aa)](_0x5c985f,_0x18d9cc),_0x13e1ff=this[_0x33a18f(0x358)][_0x33a18f(0x3de)](_0x3afa25);if(_0x13e1ff&&_0x22c9ab){const _0x13334f={..._0x13e1ff,'range':_0x22c9ab};this['cursorInfo'][_0x33a18f(0x420)](_0x3afa25,_0x13334f),_0x5c8b00(()=>{const _0x1ffcba=_0x33a18f,_0x9dc470=this[_0x1ffcba(0x290)]['registerRefRange'](_0x22c9ab,_0x1f2113=>(_0x9dc470[_0x1ffcba(0x32b)](),_0x1343f6(_0x1f2113,_0x3afa25,_0x4ab9bf,_0x22c9ab)));_0x47d001[_0x1ffcba(0x44c)](_0x9dc470);});}return{'redos':[],'undos':[]};};this[_0x71ae42(0x358)][_0x71ae42(0x300)]((_0x36ad20,_0xb3afa0)=>{const _0x66afe=_0x71ae42,{range:_0x1788ae,sheetID:_0x18fa81}=_0x36ad20,_0x3a6714=this[_0x66afe(0x290)][_0x66afe(0x4b0)](_0x1788ae,_0x54613a=>(_0x3a6714['dispose'](),_0x1343f6(_0x54613a,_0xb3afa0,_0x18fa81,_0x1788ae)));_0x47d001[_0x66afe(0x44c)](_0x3a6714);});};this[_0x2a3fd4(0x217)](a[_0x2a3fd4(0x2ba)](this[_0x2a3fd4(0x305)][_0x2a3fd4(0x342)](()=>{_0x1e058c();})));}[_0x3cc0f6(0x223)](){const _0x2be51f=_0x3cc0f6;var _0x337cbb,_0x145d5d;if(this[_0x2be51f(0x3d6)]=!0x0,((_0x337cbb=this[_0x2be51f(0x34b)][_0x2be51f(0x434)]())==null?void 0x0:_0x337cbb[_0x2be51f(0x527)]())!==this[_0x2be51f(0x426)])return;const _0x39ddfe=(_0x145d5d=this['_injector'][_0x2be51f(0x3de)](C[_0x2be51f(0x2fc)])[_0x2be51f(0x416)]())==null?void 0x0:_0x145d5d[0x0],_0xd5ff2e=this[_0x2be51f(0x34b)]['getCurrentUnitForType'](a[_0x2be51f(0x31e)][_0x2be51f(0x336)])['getActiveSheet']();_0x39ddfe&&_0xd5ff2e&&this['_updateLocalCursor'](_0xd5ff2e[_0x2be51f(0x255)](),_0x39ddfe);}[_0x3cc0f6(0x355)](){const _0x1c26b2=_0x3cc0f6;this[_0x1c26b2(0x3d6)]=!0x1;}};Be=ai([se(0x2,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),se(0x3,a[_0x3cc0f6(0x573)](Je)),se(0x4,a[_0x3cc0f6(0x573)](Z)),se(0x5,a['IUniverInstanceService']),se(0x6,a[_0x3cc0f6(0x1d6)]),se(0x7,a[_0x3cc0f6(0x573)](C['RefRangeService']))],Be);var _i=Object['defineProperty'],ui=Object[_0x3cc0f6(0x544)],di=(_0x1bc572,_0x416a4b,_0x556f53,_0x3dcb86)=>{const _0x4f1d58=_0x3cc0f6;for(var _0x35aa8b=_0x3dcb86>0x1?void 0x0:_0x3dcb86?ui(_0x416a4b,_0x556f53):_0x416a4b,_0x31ae1a=_0x1bc572[_0x4f1d58(0x411)]-0x1,_0x5297c3;_0x31ae1a>=0x0;_0x31ae1a--)(_0x5297c3=_0x1bc572[_0x31ae1a])&&(_0x35aa8b=(_0x3dcb86?_0x5297c3(_0x416a4b,_0x556f53,_0x35aa8b):_0x5297c3(_0x35aa8b))||_0x35aa8b);return _0x3dcb86&&_0x35aa8b&&_i(_0x416a4b,_0x556f53,_0x35aa8b),_0x35aa8b;},Me=(_0x5eee9e,_0x58b1cf)=>(_0x33f918,_0x14270b)=>_0x58b1cf(_0x33f918,_0x14270b,_0x5eee9e);let ae=class extends a['RxDisposable']{constructor(_0x1faa0a,_0x3fd880,_0x53a6a8){const _0x1af8a2=_0x3cc0f6;super(),u(this,_0x1af8a2(0x318),new Map()),u(this,'_entityInit$',new v[(_0x1af8a2(0x2c3))]()),(this[_0x1af8a2(0x34b)]=_0x1faa0a,this[_0x1af8a2(0x5ba)]=_0x3fd880,this['_collabSessionService']=_0x53a6a8,this['_init']());}['dispose'](){const _0x32f21e=_0x3cc0f6;super[_0x32f21e(0x32b)](),this[_0x32f21e(0x33d)][_0x32f21e(0x5d2)](),this[_0x32f21e(0x318)][_0x32f21e(0x300)](_0x5694bb=>_0x5694bb['dispose']());}['getCollabCursors$'](_0x476a76){const _0x9420cf=_0x3cc0f6;return this['_entities'][_0x9420cf(0x2d0)](_0x476a76)?this['_entities']['get'](_0x476a76)['cursorInfo$']:this[_0x9420cf(0x33d)][_0x9420cf(0x57c)](v['filter'](_0x330489=>_0x330489[_0x9420cf(0x426)]===_0x476a76),v[_0x9420cf(0x4d4)](_0x123e1c=>_0x123e1c['cursorInfo$']));}[_0x3cc0f6(0x53a)](){const _0x45be90=_0x3cc0f6;this['_univerInstanceService'][_0x45be90(0x541)](a['UniverInstanceType'][_0x45be90(0x336)])[_0x45be90(0x57c)](v[_0x45be90(0x585)](this[_0x45be90(0x38b)]))[_0x45be90(0x342)](async _0x5a295e=>{const _0x31330b=_0x45be90,_0x4de5bc=_0x5a295e[_0x31330b(0x527)](),_0xec287c=await this[_0x31330b(0x2ae)](_0x4de5bc);this[_0x31330b(0x33d)][_0x31330b(0x517)](_0xec287c),this[_0x31330b(0x318)][_0x31330b(0x420)](_0x4de5bc,_0xec287c);}),this[_0x45be90(0x34b)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x45be90(0x3c6)])['pipe'](v[_0x45be90(0x585)](this[_0x45be90(0x38b)]))[_0x45be90(0x57c)](v[_0x45be90(0x545)](_0x42e7bf=>!_0x42e7bf[_0x45be90(0x527)]()['startsWith']('__')))['subscribe'](async _0x79f812=>{const _0x15b6e8=_0x45be90,_0x44a4c8=_0x79f812[_0x15b6e8(0x527)](),_0x384c85=await this[_0x15b6e8(0x330)](_0x44a4c8);this[_0x15b6e8(0x33d)][_0x15b6e8(0x517)](_0x384c85),this[_0x15b6e8(0x318)]['set'](_0x44a4c8,_0x384c85);}),v[_0x45be90(0x570)](this[_0x45be90(0x34b)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x45be90(0x3c6)]),this[_0x45be90(0x34b)][_0x45be90(0x1f9)](a[_0x45be90(0x31e)]['UNIVER_SHEET']))[_0x45be90(0x57c)](v[_0x45be90(0x585)](this['dispose$']))[_0x45be90(0x342)](_0x509def=>{const _0x373cc4=_0x45be90,_0x1ef80b=_0x509def['getUnitId'](),_0x4c7555=this[_0x373cc4(0x318)][_0x373cc4(0x3de)](_0x1ef80b);_0x4c7555&&(_0x4c7555[_0x373cc4(0x32b)](),this[_0x373cc4(0x318)][_0x373cc4(0x3c4)](_0x1ef80b));});}async[_0x3cc0f6(0x2ae)](_0x1a43ab){const _0x1a9125=_0x3cc0f6,_0x1cc169=await this[_0x1a9125(0x1fd)][_0x1a9125(0x57b)](_0x1a43ab),_0x110f2c=this['_injector']['createInstance'](Be,_0x1a43ab,_0x1cc169);return _0x110f2c[_0x1a9125(0x5d4)](),_0x110f2c;}async['_startDocCollabCursor'](_0x360e17){const _0x51da6a=_0x3cc0f6,_0x4518d4=await this[_0x51da6a(0x1fd)][_0x51da6a(0x57b)](_0x360e17),_0x1b8cd0=this['_injector']['createInstance'](ke,_0x360e17,_0x4518d4);return _0x1b8cd0[_0x51da6a(0x5d4)](),_0x1b8cd0;}};ae=di([Me(0x0,a[_0x3cc0f6(0x2f2)]),Me(0x1,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),Me(0x2,a['Inject'](exports[_0x3cc0f6(0x3c0)]))],ae);const Se=0x14,lt=0xc8,Ae=0x4,Si=0x5;function vi(_0xdd897d,_0x3a84c1){const _0x7988cb=_0x3cc0f6;let {radius:_0x2c3716,width:_0x5388b8,height:_0x1b3f8b}=_0x3a84c1;_0x2c3716=_0x2c3716!=null?_0x2c3716:0x0,_0x5388b8=_0x5388b8!=null?_0x5388b8:0x1e,_0x1b3f8b=_0x1b3f8b!=null?_0x1b3f8b:0x1e;let _0x374aa4=0x0,_0x354b04=0x0,_0x3a54c7=0x0;_0x374aa4=_0x354b04=_0x3a54c7=Math['min'](_0x2c3716,_0x5388b8/0x2,_0x1b3f8b/0x2),_0xdd897d[_0x7988cb(0x2e0)](),_0xdd897d['moveTo'](_0x374aa4,0x0),_0xdd897d[_0x7988cb(0x337)](_0x5388b8-_0x354b04,0x0),_0xdd897d['arc'](_0x5388b8-_0x354b04,_0x354b04,_0x354b04,Math['PI']*0x3/0x2,0x0,!0x1),_0xdd897d[_0x7988cb(0x337)](_0x5388b8,_0x1b3f8b-_0x3a54c7),_0xdd897d['arc'](_0x5388b8-_0x3a54c7,_0x1b3f8b-_0x3a54c7,_0x3a54c7,0x0,Math['PI']/0x2,!0x1),_0xdd897d['lineTo'](0x0,_0x1b3f8b),_0xdd897d[_0x7988cb(0x337)](0x0,_0x374aa4),_0xdd897d[_0x7988cb(0x328)](_0x374aa4,_0x374aa4,_0x374aa4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xdd897d[_0x7988cb(0x3af)](),_0x3a84c1[_0x7988cb(0x480)]&&(_0xdd897d[_0x7988cb(0x5b8)](),_0xdd897d[_0x7988cb(0x3bd)]=_0x3a84c1[_0x7988cb(0x480)],_0x3a84c1[_0x7988cb(0x25e)]===_0x7988cb(0x248)?_0xdd897d[_0x7988cb(0x480)](_0x7988cb(0x248)):_0xdd897d[_0x7988cb(0x480)](),_0xdd897d[_0x7988cb(0x569)]());}class De extends O['Shape']{constructor(_0x2ca18e,_0x1df52b){const _0x174269=_0x3cc0f6;super(_0x2ca18e,_0x1df52b),u(this,_0x174269(0x519)),u(this,_0x174269(0x26d)),(this[_0x174269(0x519)]=_0x1df52b==null?void 0x0:_0x1df52b[_0x174269(0x519)],this[_0x174269(0x26d)]=_0x1df52b==null?void 0x0:_0x1df52b[_0x174269(0x26d)]);}static[_0x3cc0f6(0x2f1)](_0xbca734,_0x11a682){const _0x441991=_0x3cc0f6,{text:_0x3d60bc,color:_0x50ade1}=_0x11a682;_0xbca734[_0x441991(0x5b8)](),_0xbca734['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x50c2cb=_0xbca734[_0x441991(0x298)](_0x3d60bc)['width'],_0x2bcd6b=Math[_0x441991(0x565)](_0x50c2cb+0x2*Ae,lt);vi(_0xbca734,{'height':Se,'radius':0x4,'width':_0x2bcd6b,'fill':_0x50ade1,'evented':!0x1}),_0xbca734[_0x441991(0x3bd)]=_0x441991(0x429);const _0x1619f0=Ae,_0xab15db=Se-Si,_0x43c13a=lt-0x2*Ae;if(_0x50c2cb>_0x43c13a){let _0x15468f='',_0x27d801=0x0;for(const _0x14d03c of _0x3d60bc){const _0x2f75f4=_0xbca734['measureText'](_0x14d03c)[_0x441991(0x368)];if(_0x27d801+_0x2f75f4<=_0x43c13a-_0xbca734[_0x441991(0x298)]('...')[_0x441991(0x368)])_0x15468f+=_0x14d03c,_0x27d801+=_0x2f75f4;else{_0x15468f+='...';break;}}_0xbca734['fillText'](_0x15468f,_0x1619f0,_0xab15db);}else _0xbca734[_0x441991(0x3d9)](_0x3d60bc,_0x1619f0,_0xab15db);_0xbca734['restore']();}['_draw'](_0x42a3fb){De['drawWith'](_0x42a3fb,this);}}const Le='collab-text-anchor-',mi=_0x3cc0f6(0x310),gi=_0x3cc0f6(0x5a8),he=0x6,fi=1.5,$e=0x4,Ii=1.5,pi=_0x3cc0f6(0x331);class ht{constructor(_0x9cc904,_0x4902c0,_0x8179d0,_0x2a2a53){const _0xe9f7a5=_0x3cc0f6;u(this,_0xe9f7a5(0x4f3),[]),u(this,'_anchor',null),u(this,'_textBubble',null),u(this,_0xe9f7a5(0x29f),null),u(this,'_hideTimer',null),u(this,_0xe9f7a5(0x452),null),(this[_0xe9f7a5(0x3b5)]=_0x9cc904,this[_0xe9f7a5(0x1ea)]=_0x4902c0,this[_0xe9f7a5(0x532)]=_0x8179d0,this[_0xe9f7a5(0x5b2)]=_0x2a2a53,this[_0xe9f7a5(0x4ff)]());}set[_0x3cc0f6(0x46c)](_0x4abdab){const _0x3dce5c=_0x3cc0f6;_0x4abdab?(this['_anchorDot']&&this[_0x3dce5c(0x29f)][_0x3dce5c(0x210)](),this[_0x3dce5c(0x5c7)]&&this['_textBubble'][_0x3dce5c(0x438)]()):(this[_0x3dce5c(0x29f)]&&this['_anchorDot'][_0x3dce5c(0x438)](),this[_0x3dce5c(0x5c7)]&&this[_0x3dce5c(0x5c7)]['hide']());}[_0x3cc0f6(0x32b)](){const _0x19c032=_0x3cc0f6;for(const _0x1d3e88 of this[_0x19c032(0x4f3)])_0x1d3e88[_0x19c032(0x32b)]();this['_textBubble']&&this[_0x19c032(0x5c7)][_0x19c032(0x32b)](),this[_0x19c032(0x29f)]&&this['_anchorDot'][_0x19c032(0x32b)](),this['_anchor']&&this[_0x19c032(0x30c)]['dispose'](),this[_0x19c032(0x452)]&&this[_0x19c032(0x452)]();}[_0x3cc0f6(0x4ff)](){const _0x37ae1c=_0x3cc0f6;var _0x3fbbb1;const {_docSkeleton:_0x109f47,_document:_0xac3abc}=this,{color:_0x6dffe6,name:_0x4f1d56,ranges:_0x20825a}=this[_0x37ae1c(0x3b5)],_0x2f124c=_0xac3abc['getOffsetConfig'](),{docsLeft:_0x30806b,docsTop:_0x335477}=_0x2f124c,_0x5319e4=new N[(_0x37ae1c(0x26f))](_0x2f124c,_0x109f47);for(const {startOffset:_0x2e4eef,endOffset:_0x283816,rangeType:_0x2e8b4c,segmentId:_0x492485,segmentPage:_0x3cf6d3,collapsed:_0x84172f,isActive:_0x7f9afd}of _0x20825a){const _0x3e8a59=_0x109f47['findNodePositionByCharIndex'](_0x2e4eef,!0x0,_0x492485,_0x3cf6d3);let _0x90431f=_0x109f47[_0x37ae1c(0x1de)](_0x283816,!0x0,_0x492485,_0x3cf6d3);if(_0x90431f==null&&(_0x90431f=_0x109f47['findNodePositionByCharIndex'](_0x283816-0x1,!0x1,_0x492485,_0x3cf6d3)),_0x7f9afd){const {contentBoxPointGroup:_0x33853e}=_0x5319e4[_0x37ae1c(0x1d7)](_0x90431f,_0x90431f);if(_0x33853e[_0x37ae1c(0x411)]===0x0)continue;this[_0x37ae1c(0x572)](_0x6dffe6,_0x33853e,_0x30806b,_0x335477,_0x4f1d56),this[_0x37ae1c(0x452)]=this[_0x37ae1c(0x315)]();}if(!_0x84172f&&_0x3e8a59&&_0x90431f){if(_0x2e8b4c===a[_0x37ae1c(0x45f)][_0x37ae1c(0x51b)]){const _0xf2c1ee=new N[(_0x37ae1c(0x42e))](_0x2f124c,_0x109f47),{pointGroup:_0x1505d6}=(_0x3fbbb1=_0xf2c1ee['getRangePointData'](_0x3e8a59,_0x90431f))!=null?_0x3fbbb1:{};if(_0x1505d6==null||_0x1505d6[_0x37ae1c(0x411)]===0x0)continue;this['_drawRectRange'](_0x6dffe6,_0x1505d6,_0x30806b,_0x335477);}else{const {borderBoxPointGroup:_0x35b62c}=_0x5319e4[_0x37ae1c(0x1d7)](_0x3e8a59,_0x90431f);if(_0x35b62c[_0x37ae1c(0x411)]===0x0)continue;this[_0x37ae1c(0x1d1)](_0x6dffe6,_0x35b62c,_0x30806b,_0x335477);}}}}[_0x3cc0f6(0x572)](_0xac8f89,_0x9433dc,_0x52fb0e,_0x30eb2b,_0x221b87){const _0x470503=_0x3cc0f6,_0x1b4ef2=this[_0x470503(0x4b6)](_0x9433dc),{left:_0x1f9d1b,top:_0x2b31d5,height:_0x27bb25}=_0x1b4ef2,_0x164f65=this[_0x470503(0x595)](),_0x195141=Ii/_0x164f65,_0x3ae930=new O['Rect'](Le+a[_0x470503(0x241)][_0x470503(0x256)](he),{'left':_0x1f9d1b+_0x52fb0e-_0x195141,'top':_0x2b31d5+_0x30eb2b,'height':_0x27bb25,'width':fi,'fill':_0xac8f89||O[_0x470503(0x472)](a[_0x470503(0x551)][_0x470503(0x507)],0x0),'strokeWidth':_0x195141,'stroke':pi,'evented':!0x0});this['_anchor']=_0x3ae930,this[_0x470503(0x1ea)][_0x470503(0x32a)](_0x3ae930,N[_0x470503(0x239)]);const _0x4eaef8=new O['Rect'](Le+a[_0x470503(0x241)][_0x470503(0x256)](he),{'left':_0x1f9d1b+_0x52fb0e-_0x195141,'top':_0x2b31d5+_0x30eb2b-$e/0x2,'height':$e,'width':$e,'fill':_0xac8f89||O[_0x470503(0x472)](a[_0x470503(0x551)][_0x470503(0x507)],0x0),'strokeWidth':0x0,'stroke':_0xac8f89||O['getColor'](a[_0x470503(0x551)][_0x470503(0x507)],0x0),'evented':!0x1});this[_0x470503(0x29f)]=_0x4eaef8,this[_0x470503(0x1ea)][_0x470503(0x32a)](_0x4eaef8,N['TEXT_RANGE_LAYER_INDEX']);const _0x320434=new De(Le+a[_0x470503(0x241)][_0x470503(0x256)](he),{'left':_0x1f9d1b+_0x52fb0e-_0x195141,'top':_0x2b31d5+_0x30eb2b-Se,'text':_0x221b87,'color':_0xac8f89});this[_0x470503(0x5c7)]=_0x320434,this['_scene']['addObject'](_0x320434,N[_0x470503(0x239)]),this[_0x470503(0x46c)]=!0x1;}[_0x3cc0f6(0x315)](){const _0x6a9c2b=_0x3cc0f6,_0x449043=this[_0x6a9c2b(0x30c)]['onPointerEnter$'][_0x6a9c2b(0x432)](()=>{const _0x4ea04c=_0x6a9c2b;this[_0x4ea04c(0x46c)]=!0x0;}),_0x2f2b8d=this[_0x6a9c2b(0x30c)][_0x6a9c2b(0x462)][_0x6a9c2b(0x432)](()=>{const _0x4ddb6f=_0x6a9c2b;this[_0x4ddb6f(0x433)]&&clearTimeout(this[_0x4ddb6f(0x433)]),this[_0x4ddb6f(0x433)]=setTimeout(()=>{const _0x529526=_0x4ddb6f;this[_0x529526(0x46c)]=!0x1;},0x7d0);});return()=>{const _0x48193f=_0x6a9c2b;_0x449043['unsubscribe'](),_0x2f2b8d[_0x48193f(0x5ad)]();};}['_drawTextRange'](_0x5ea4b1,_0x2f657b,_0xae3496,_0x24c053){const _0x4268d4=_0x3cc0f6,_0x1c4c18=new a[(_0x4268d4(0x3a1))](_0x5ea4b1)[_0x4268d4(0x2ea)](0.2)['toRgbString'](),_0x52e129=new O['RegularPolygon'](mi+a[_0x4268d4(0x241)][_0x4268d4(0x256)](he),{'pointsGroup':_0x2f657b,'fill':_0x1c4c18||O[_0x4268d4(0x472)](a[_0x4268d4(0x551)]['black'],0.2),'left':_0xae3496,'top':_0x24c053,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4268d4(0x430)](_0x52e129),this[_0x4268d4(0x1ea)][_0x4268d4(0x32a)](_0x52e129,N[_0x4268d4(0x239)]);}[_0x3cc0f6(0x38c)](_0x544064,_0x195eb9,_0x47b8cc,_0x46bb6d){const _0x43685a=_0x3cc0f6,_0x5d7c77=new a[(_0x43685a(0x3a1))](_0x544064)['setAlpha'](0.2)[_0x43685a(0x50e)](),_0x39b872=new O[(_0x43685a(0x406))](gi+a[_0x43685a(0x241)][_0x43685a(0x256)](he),{'pointsGroup':_0x195eb9,'fill':_0x5d7c77||O[_0x43685a(0x472)](a['COLORS'][_0x43685a(0x507)],0.2),'left':_0x47b8cc,'top':_0x46bb6d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x43685a(0x4f3)]['push'](_0x39b872),this['_scene'][_0x43685a(0x32a)](_0x39b872,N[_0x43685a(0x239)]);}[_0x3cc0f6(0x4b6)](_0x5dc569){const _0x1cfc07=_0x5dc569[0x0],_0x526c5f=_0x1cfc07[0x0],_0x21b48f=_0x1cfc07[0x2],{x:_0x23f0cc,y:_0x4d136d}=_0x526c5f,{x:_0x1a3e67,y:_0x659046}=_0x21b48f;return{'left':_0x23f0cc,'top':_0x4d136d,'width':_0x1a3e67-_0x23f0cc,'height':_0x659046-_0x4d136d};}['_getScale'](){const _0x43267d=_0x3cc0f6,{scaleX:_0x3d900c,scaleY:_0x1e6c12}=this[_0x43267d(0x1ea)][_0x43267d(0x235)]();return Math['max'](_0x3d900c,_0x1e6c12);}}var Ci=Object['defineProperty'],Ei=Object['getOwnPropertyDescriptor'],bi=(_0x429003,_0x9ec3af,_0x5e55b9,_0x48f0c4)=>{const _0x5506af=_0x3cc0f6;for(var _0x40d2ae=_0x48f0c4>0x1?void 0x0:_0x48f0c4?Ei(_0x9ec3af,_0x5e55b9):_0x9ec3af,_0x321a7f=_0x429003[_0x5506af(0x411)]-0x1,_0x5bbe47;_0x321a7f>=0x0;_0x321a7f--)(_0x5bbe47=_0x429003[_0x321a7f])&&(_0x40d2ae=(_0x48f0c4?_0x5bbe47(_0x9ec3af,_0x5e55b9,_0x40d2ae):_0x5bbe47(_0x40d2ae))||_0x40d2ae);return _0x48f0c4&&_0x40d2ae&&Ci(_0x9ec3af,_0x5e55b9,_0x40d2ae),_0x40d2ae;},me=(_0x43d424,_0x34c12b)=>(_0x1c695f,_0x5c99b7)=>_0x34c12b(_0x1c695f,_0x5c99b7,_0x43d424);let Ve=class extends a['RxDisposable']{constructor(_0x5bccd6,_0x57e61,_0x1487aa,_0x19f7b0,_0x40279a){const _0x31199a=_0x3cc0f6;super(),u(this,_0x31199a(0x2f3),[]),u(this,_0x31199a(0x296),[]),(this[_0x31199a(0x52c)]=_0x5bccd6,this[_0x31199a(0x38e)]=_0x57e61,this[_0x31199a(0x49a)]=_0x1487aa,this[_0x31199a(0x495)]=_0x19f7b0,this[_0x31199a(0x42d)]=_0x40279a,this[_0x31199a(0x53a)]());}['_init'](){const _0xdb44d5=_0x3cc0f6,_0x27d040=this[_0xdb44d5(0x52c)][_0xdb44d5(0x3e7)],_0x28e801=this[_0xdb44d5(0x38e)];this[_0xdb44d5(0x217)](v[_0xdb44d5(0x276)]([this['_collabCursorController'][_0xdb44d5(0x444)](_0x27d040),this[_0xdb44d5(0x42d)][_0xdb44d5(0x563)]])[_0xdb44d5(0x57c)](E[_0xdb44d5(0x282)](([_0x9b9e6b,_0x548678])=>({'skeleton':_0x28e801['getSkeleton'](),'cursors':[..._0x9b9e6b[_0xdb44d5(0x2f6)]()][_0xdb44d5(0x52a)](_0x103f5d=>({..._0x103f5d,'color':_0x548678[_0x103f5d[_0xdb44d5(0x519)]]}))})))[_0xdb44d5(0x342)](_0x15c7ce=>{const _0x148d69=_0xdb44d5;if(this[_0x148d69(0x5dc)](),_0x15c7ce){const {skeleton:_0x2a4f8e,cursors:_0x114063}=_0x15c7ce;this[_0x148d69(0x557)](_0x2a4f8e,_0x114063);}})),this[_0xdb44d5(0x294)](),this[_0xdb44d5(0x243)]();}[_0x3cc0f6(0x557)](_0x1699a8,_0x5bd30f){const _0x598ee4=_0x3cc0f6,{scene:_0x13c3e2,mainComponent:_0x1e2ea7}=this[_0x598ee4(0x52c)],_0x468788=_0x5bd30f[_0x598ee4(0x282)](_0xe5b532=>new ht(_0xe5b532,_0x13c3e2,_0x1699a8,_0x1e2ea7));this[_0x598ee4(0x2f3)]=_0x468788,this[_0x598ee4(0x296)]=_0x5bd30f;}[_0x3cc0f6(0x3e1)](){const _0xc679f4=_0x3cc0f6;this['_removeCollabCursors']();const {scene:_0x4c242b,mainComponent:_0x3e039f}=this[_0xc679f4(0x52c)],_0x2472ae=this[_0xc679f4(0x38e)][_0xc679f4(0x4cf)](),_0x3a43aa=this[_0xc679f4(0x296)][_0xc679f4(0x282)](_0x103bf8=>new ht(_0x103bf8,_0x4c242b,_0x2472ae,_0x3e039f));this[_0xc679f4(0x2f3)]=_0x3a43aa;}[_0x3cc0f6(0x5dc)](){const _0x4c1ca6=_0x3cc0f6;this[_0x4c1ca6(0x2f3)]['forEach'](_0x476584=>_0x476584[_0x4c1ca6(0x32b)]()),this[_0x4c1ca6(0x2f3)]=[];}['_initCommandExecutedListener'](){const _0x2208a7=_0x3cc0f6,_0x3ad792=[N['SetDocZoomRatioOperation']['id']];this[_0x2208a7(0x217)](this[_0x2208a7(0x495)][_0x2208a7(0x26e)](_0x1cb1d8=>{const _0x18a2dc=_0x2208a7;_0x3ad792[_0x18a2dc(0x2b1)](_0x1cb1d8['id'])&&_0x1cb1d8[_0x18a2dc(0x3f2)]['unitId']===this['_context']['unitId']&&this[_0x18a2dc(0x3e1)]();}));}[_0x3cc0f6(0x294)](){const _0x495789=_0x3cc0f6;this[_0x495789(0x217)](a[_0x495789(0x4b5)](this[_0x495789(0x52c)][_0x495789(0x51e)][_0x495789(0x249)])['pipe'](E[_0x495789(0x545)](_0x57a43c=>_0x57a43c[_0x495789(0x523)]===O[_0x495789(0x529)]['resize']),E[_0x495789(0x5cb)](0x10))[_0x495789(0x342)](()=>{const _0x125352=_0x495789;this[_0x125352(0x3e1)]();}));}};Ve=bi([me(0x1,a[_0x3cc0f6(0x573)](re[_0x3cc0f6(0x522)])),me(0x2,a['Inject'](ae)),me(0x3,a['ICommandService']),me(0x4,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x3b3)]))],Ve);const Ti=0x1,Ri=1.5;class Nt extends O[_0x3cc0f6(0x2d9)]{constructor(_0x585f96,_0x3d4df3){const _0x50a57e=_0x3cc0f6;super(_0x585f96,_0x3d4df3),u(this,_0x50a57e(0x36d)),u(this,'_hovered',!0x1),u(this,'_range'),u(this,_0x50a57e(0x4b1),''),u(this,_0x50a57e(0x446),_0x50a57e(0x4c2)),u(this,'_backgroundColor'),(_0x3d4df3&&this[_0x50a57e(0x423)](_0x3d4df3),this[_0x50a57e(0x49b)][_0x50a57e(0x432)](()=>this[_0x50a57e(0x423)]({'hovered':!0x0})),this['onPointerLeave$'][_0x50a57e(0x432)](()=>this[_0x50a57e(0x423)]({'hovered':!0x1})));}['setShapeProps'](_0x175475){const _0x1f1636=_0x3cc0f6;var _0xad83fb,_0x167b44,_0x43fc1c,_0x399552,_0x13ed17,_0x11c7e0;this[_0x1f1636(0x36d)]=(_0xad83fb=_0x175475[_0x1f1636(0x519)])!=null?_0xad83fb:this[_0x1f1636(0x36d)],this[_0x1f1636(0x20b)]=(_0x167b44=_0x175475[_0x1f1636(0x3e0)])!=null?_0x167b44:this[_0x1f1636(0x20b)],this[_0x1f1636(0x3a8)]=(_0x43fc1c=_0x175475['range'])!=null?_0x43fc1c:this[_0x1f1636(0x3a8)],this[_0x1f1636(0x4b1)]=(_0x399552=_0x175475[_0x1f1636(0x51a)])!=null?_0x399552:this[_0x1f1636(0x4b1)],this[_0x1f1636(0x446)]=(_0x13ed17=_0x175475['labelPosition'])!=null?_0x13ed17:this['_labelPosition'],this[_0x1f1636(0x4f4)]=(_0x11c7e0=_0x175475[_0x1f1636(0x232)])!=null?_0x11c7e0:this[_0x1f1636(0x4f4)],this[_0x1f1636(0x41b)]({'width':_0x175475[_0x1f1636(0x368)],'height':_0x175475[_0x1f1636(0x4be)]});}['onMouseMove'](_0x162130){const _0x4a3ba2=_0x3cc0f6,{row:_0x49f578,column:_0x40fdb4}=_0x162130;if(_0x49f578>=this['_range']['startRow']&&_0x49f578<=this['_range'][_0x4a3ba2(0x316)]&&_0x40fdb4>=this[_0x4a3ba2(0x3a8)][_0x4a3ba2(0x30f)]&&_0x40fdb4<=this[_0x4a3ba2(0x3a8)][_0x4a3ba2(0x378)]){this[_0x4a3ba2(0x423)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3cc0f6(0x1ff)](_0xfccdf){return!0x1;}['_draw'](_0xaf3856){const _0x547af7=_0x3cc0f6;O['Rect'][_0x547af7(0x2f1)](_0xaf3856,{'width':this['width'],'height':this[_0x547af7(0x4be)],'strokeWidth':Ri,'stroke':this[_0x547af7(0x36d)],'evented':!0x1,'fill':this[_0x547af7(0x4f4)]}),this['_hovered']&&(_0xaf3856[_0x547af7(0x5b8)](),_0xaf3856[_0x547af7(0x3bb)](0x1,0x0,0x0,0x1,this[_0x547af7(0x368)],this[_0x547af7(0x446)]==='bottom'?0x0:-Se),De[_0x547af7(0x2f1)](_0xaf3856,{'text':this[_0x547af7(0x4b1)],'color':this[_0x547af7(0x36d)]}),_0xaf3856['restore']());}}var Oi=Object[_0x3cc0f6(0x1c6)],Di=Object[_0x3cc0f6(0x544)],yi=(_0x3ad8cd,_0x284f1a,_0x153e0a,_0x575110)=>{for(var _0x37fc20=_0x575110>0x1?void 0x0:_0x575110?Di(_0x284f1a,_0x153e0a):_0x284f1a,_0x1c30c9=_0x3ad8cd['length']-0x1,_0x490a37;_0x1c30c9>=0x0;_0x1c30c9--)(_0x490a37=_0x3ad8cd[_0x1c30c9])&&(_0x37fc20=(_0x575110?_0x490a37(_0x284f1a,_0x153e0a,_0x37fc20):_0x490a37(_0x37fc20))||_0x37fc20);return _0x575110&&_0x37fc20&&Oi(_0x284f1a,_0x153e0a,_0x37fc20),_0x37fc20;},je=(_0x4c735e,_0x58481e)=>(_0x551a28,_0xa2f941)=>_0x58481e(_0x551a28,_0xa2f941,_0x4c735e);const Ui=0x1389;let We=class extends a['RxDisposable']{constructor(_0x40ce9a,_0x54900a,_0x144b30,_0x2e8627){const _0xe2da81=_0x3cc0f6;super(),u(this,'_cursors',new Set()),u(this,_0xe2da81(0x1c0),null),(this[_0xe2da81(0x52c)]=_0x40ce9a,this[_0xe2da81(0x467)]=_0x54900a,this[_0xe2da81(0x49a)]=_0x144b30,this[_0xe2da81(0x42d)]=_0x2e8627,this[_0xe2da81(0x53a)]());}['_init'](){const _0x3a5e58=_0x3cc0f6;this['_sheetSkeletonManagerService'][_0x3a5e58(0x2bd)]['pipe'](E[_0x3a5e58(0x585)](this['dispose$']),E['switchMap'](_0x416f21=>{const _0x1055e6=_0x3a5e58;if(_0x416f21){const _0x1d2c94=_0x416f21[_0x1055e6(0x350)];return v[_0x1055e6(0x276)](this[_0x1055e6(0x49a)][_0x1055e6(0x444)](this['_context']['unitId']),this['_themeService'][_0x1055e6(0x563)])[_0x1055e6(0x57c)](E[_0x1055e6(0x282)](([_0x322270,_0x5b0ae2])=>{const _0xd28d66=_0x1055e6,_0x5a4cb1=new Map();return _0x322270[_0xd28d66(0x300)]((_0x64d7a8,_0x58c241)=>{const _0x46aa59=_0xd28d66;if(_0x64d7a8[_0x46aa59(0x353)]===_0x1d2c94){const _0x5c28d3={..._0x64d7a8};_0x5c28d3[_0x46aa59(0x519)]=_0x5b0ae2[_0x64d7a8['color']],_0x5a4cb1[_0x46aa59(0x420)](_0x58c241,_0x5c28d3);}}),{'skeleton':_0x416f21,'cursors':_0x5a4cb1};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3694cd,cursors:_0x5ea0f0})=>{this['_removeCollabCursors'](),_0x3694cd&&this['_updateCollabCursors'](_0x3694cd,_0x5ea0f0);}),this[_0x3a5e58(0x467)]['currentSkeleton$'][_0x3a5e58(0x342)](_0x524f05=>{const _0xf78435=_0x3a5e58;if(_0x524f05==null)return;const {skeleton:_0x3600c0}=_0x524f05,{scene:_0x5785bb}=this[_0xf78435(0x52c)];_0x5785bb[_0xf78435(0x2be)][_0xf78435(0x432)](a[_0xf78435(0x50d)](_0x2cb4f1=>{const _0x2be90d=_0xf78435;var _0x6160f8,_0x43beae;const {offsetX:_0x2cb32d,offsetY:_0x4c6b08}=_0x2cb4f1,{x:_0x327f05,y:_0x3cb88a}=_0x5785bb[_0x2be90d(0x4a3)](O[_0x2be90d(0x333)]['FromArray']([_0x2cb32d,_0x4c6b08])),{scaleX:_0x37d02d,scaleY:_0x493a68}=_0x5785bb['getAncestorScale'](),_0x135dca=_0x5785bb[_0x2be90d(0x579)](ne[_0x2be90d(0x44f)][_0x2be90d(0x385)]),_0x12d656=_0x5785bb[_0x2be90d(0x5de)](O[_0x2be90d(0x333)][_0x2be90d(0x460)]([_0x327f05,_0x3cb88a]),_0x135dca),_0x11401a=_0x3600c0[_0x2be90d(0x399)](_0x2cb32d,_0x4c6b08,_0x37d02d,_0x493a68,_0x12d656);((_0x6160f8=this[_0x2be90d(0x1c0)])==null?void 0x0:_0x6160f8[_0x2be90d(0x2dd)])===_0x11401a[_0x2be90d(0x2dd)]&&((_0x43beae=this[_0x2be90d(0x1c0)])==null?void 0x0:_0x43beae[_0x2be90d(0x3a9)])===_0x11401a['row']||this[_0x2be90d(0x296)][_0x2be90d(0x300)](_0x1eadad=>{_0x1eadad['onMouseMove'](_0x11401a);});},0x64));});}['_updateCollabCursors'](_0x4cb192,_0xb98fd8){const _0x1539c0=_0x3cc0f6;var _0x473dbc;const _0x44f41e=(_0x473dbc=this[_0x1539c0(0x467)][_0x1539c0(0x34f)]())==null?void 0x0:_0x473dbc[_0x1539c0(0x5b3)];if(!_0x44f41e)return;const _0x3b95d1=this[_0x1539c0(0x2a0)]();if(!_0x3b95d1)return;this['_cursors'][_0x1539c0(0x300)](_0x11e603=>{const _0x327484=_0x1539c0;_0x11e603[_0x327484(0x272)]();});const {scene:_0x1685a1}=_0x3b95d1,_0x25c9ed=Pi(Array[_0x1539c0(0x5b7)](_0xb98fd8['values']()))['map'](_0xaf595f=>{const _0x705d04=_0x1539c0,{color:_0x4a0188,range:_0x3b192b,name:_0x1ead50,selection:_0x4d13b2,sheetID:_0x1b370f}=_0xaf595f,{startColumn:_0xe05685,startRow:_0x482dd0,endColumn:_0x35da34,endRow:_0x32ab68}=_0x3b192b,_0x27cde6=ne['getCoordByCell'](_0x482dd0,_0xe05685,_0x1685a1,_0x44f41e),_0x54b79c=ne[_0x705d04(0x263)](_0x32ab68,_0x35da34,_0x1685a1,_0x44f41e),{columnHeaderHeightAndMarginTop:_0x3c4be9}=_0x44f41e,{startX:_0x1ce933,startY:_0x32ae05}=_0x27cde6,{endX:_0x9c71a0,endY:_0x5d39a9}=_0x54b79c,_0x45b2e0=_0x9c71a0-_0x1ce933,_0x4e1e12=_0x5d39a9-_0x32ae05,_0x65d143={'labelPosition':_0x32ae05-_0x3c4be9>=Se?_0x705d04(0x4c2):_0x705d04(0x424),'sheetID':_0x1b370f,'range':_0x3b192b,'color':_0x4a0188,'name':_0x1ead50,'selection':_0x4d13b2,'left':_0x1ce933,'top':_0x32ae05,'width':_0x45b2e0,'height':_0x4e1e12,'evented':!0x1,'zIndex':Ui};return new Nt(_0x1ead50,_0x65d143);});_0x1685a1['addObjects'](_0x25c9ed,Ti),this[_0x1539c0(0x296)]=new Set(_0x25c9ed);}[_0x3cc0f6(0x5dc)](){const _0x429ae2=_0x3cc0f6;var _0x276e44;(_0x276e44=this[_0x429ae2(0x296)])==null||_0x276e44[_0x429ae2(0x300)](_0xeb249e=>_0xeb249e[_0x429ae2(0x32b)]());}[_0x3cc0f6(0x2a0)](){const _0x4c207b=_0x3cc0f6;return ne[_0x4c207b(0x413)](this[_0x4c207b(0x52c)]['unit'],this[_0x4c207b(0x52c)]);}};We=yi([je(0x1,a[_0x3cc0f6(0x573)](ne[_0x3cc0f6(0x56b)])),je(0x2,a[_0x3cc0f6(0x573)](ae)),je(0x3,a['Inject'](a[_0x3cc0f6(0x3b3)]))],We);function Pi(_0x583184){const _0x5fff16=_0x3cc0f6,_0x14a8ca=new Map();return _0x583184[_0x5fff16(0x300)](_0x3ce69b=>{const _0x5eb20f=_0x5fff16;if(_0x14a8ca[_0x5eb20f(0x2d0)](_0x3ce69b[_0x5eb20f(0x1ec)])){const _0x5b6ef9=_0x14a8ca[_0x5eb20f(0x3de)](_0x3ce69b[_0x5eb20f(0x1ec)]);_0x5b6ef9[_0x5eb20f(0x51a)]+=',\x20'+_0x3ce69b[_0x5eb20f(0x51a)];}else _0x14a8ca['set'](_0x3ce69b[_0x5eb20f(0x1ec)],_0x3ce69b);}),Array[_0x5fff16(0x5b7)](_0x14a8ca[_0x5fff16(0x2f6)]());}var M=function(){const _0x2f2229=_0x3cc0f6;return M=Object[_0x2f2229(0x403)]||function(_0xb2116f){const _0x3e12c4=_0x2f2229;for(var _0x1e24bb,_0x2ce950=0x1,_0x55942c=arguments[_0x3e12c4(0x411)];_0x2ce950<_0x55942c;_0x2ce950++){_0x1e24bb=arguments[_0x2ce950];for(var _0x4e18d8 in _0x1e24bb)Object[_0x3e12c4(0x22a)][_0x3e12c4(0x345)][_0x3e12c4(0x484)](_0x1e24bb,_0x4e18d8)&&(_0xb2116f[_0x4e18d8]=_0x1e24bb[_0x4e18d8]);}return _0xb2116f;},M['apply'](this,arguments);},wi=function(_0x412f19,_0xe05100){const _0x4d1465=_0x3cc0f6;var _0x2c4178={};for(var _0x1c36c6 in _0x412f19)Object[_0x4d1465(0x22a)]['hasOwnProperty'][_0x4d1465(0x484)](_0x412f19,_0x1c36c6)&&_0xe05100['indexOf'](_0x1c36c6)<0x0&&(_0x2c4178[_0x1c36c6]=_0x412f19[_0x1c36c6]);if(_0x412f19!=null&&typeof Object[_0x4d1465(0x377)]==_0x4d1465(0x32f)){for(var _0x517231=0x0,_0x1c36c6=Object[_0x4d1465(0x377)](_0x412f19);_0x517231<_0x1c36c6['length'];_0x517231++)_0xe05100[_0x4d1465(0x562)](_0x1c36c6[_0x517231])<0x0&&Object[_0x4d1465(0x22a)][_0x4d1465(0x4e1)][_0x4d1465(0x484)](_0x412f19,_0x1c36c6[_0x517231])&&(_0x2c4178[_0x1c36c6[_0x517231]]=_0x412f19[_0x1c36c6[_0x517231]]);}return _0x2c4178;},Ze=y[_0x3cc0f6(0x4b2)](function(_0x1aaf61,_0x30097e){const _0x2f936e=_0x3cc0f6;var _0x1ccfcf=_0x1aaf61[_0x2f936e(0x5db)],_0x3d3954=_0x1aaf61['id'],_0xfd452b=_0x1aaf61[_0x2f936e(0x323)],_0x15ca61=_0x1aaf61[_0x2f936e(0x510)],_0x4bc28b=wi(_0x1aaf61,['icon','id',_0x2f936e(0x323),_0x2f936e(0x510)]),_0x1c9537=_0x2f936e(0x212)[_0x2f936e(0x2c4)](_0x3d3954,'\x20')[_0x2f936e(0x2c4)](_0xfd452b||'')['trim'](),_0x49ba6c=y[_0x2f936e(0x553)]('_'['concat'](Ai()));return Mt(_0x1ccfcf,''[_0x2f936e(0x2c4)](_0x3d3954),{'defIds':_0x1ccfcf['defIds'],'idSuffix':_0x49ba6c[_0x2f936e(0x481)]},M({'ref':_0x30097e,'className':_0x1c9537},_0x4bc28b),_0x15ca61);});function Mt(_0x230df5,_0x21cf48,_0x11159b,_0xb68b26,_0x24cdd0){const _0x40c28f=_0x3cc0f6;return y[_0x40c28f(0x482)](_0x230df5['tag'],M(M({'key':_0x21cf48},Ni(_0x230df5,_0x11159b,_0x24cdd0)),_0xb68b26),(Mi(_0x230df5,_0x11159b)[_0x40c28f(0x216)]||[])[_0x40c28f(0x282)](function(_0xf6032,_0x5382d6){const _0xf6bc45=_0x40c28f;return Mt(_0xf6032,''[_0xf6bc45(0x2c4)](_0x21cf48,'-')[_0xf6bc45(0x2c4)](_0x230df5['tag'],'-')[_0xf6bc45(0x2c4)](_0x5382d6),_0x11159b,void 0x0,_0x24cdd0);}));}function Ni(_0x4863a2,_0x28630d,_0xd71eaa){const _0x36b454=_0x3cc0f6;var _0x448a18=M({},_0x4863a2[_0x36b454(0x35b)]);_0xd71eaa!=null&&_0xd71eaa['colorChannel1']&&_0x448a18[_0x36b454(0x480)]===_0x36b454(0x234)&&(_0x448a18['fill']=_0xd71eaa[_0x36b454(0x234)]);var _0xffea87=_0x28630d[_0x36b454(0x4c9)];return!_0xffea87||_0xffea87[_0x36b454(0x411)]===0x0||(_0x4863a2[_0x36b454(0x22e)]==='use'&&_0x448a18['xlink:href']&&(_0x448a18[_0x36b454(0x48a)]=_0x448a18[_0x36b454(0x48a)]+_0x28630d[_0x36b454(0x3d7)]),Object['entries'](_0x448a18)[_0x36b454(0x300)](function(_0x451597){const _0x5d0ab9=_0x36b454;var _0x156ea7=_0x451597[0x0],_0x4dcbf1=_0x451597[0x1];typeof _0x4dcbf1==_0x5d0ab9(0x3d4)&&(_0x448a18[_0x156ea7]=_0x4dcbf1['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5d0ab9(0x2c4)](_0x28630d['idSuffix'],')')));})),_0x448a18;}function Mi(_0xfc9545,_0x3b4e87){const _0x5e5e4e=_0x3cc0f6;var _0x1f1609,_0x41ea8a=_0x3b4e87['defIds'];return!_0x41ea8a||_0x41ea8a['length']===0x0?_0xfc9545:_0xfc9545['tag']===_0x5e5e4e(0x417)&&(!((_0x1f1609=_0xfc9545[_0x5e5e4e(0x216)])===null||_0x1f1609===void 0x0)&&_0x1f1609[_0x5e5e4e(0x411)])?M(M({},_0xfc9545),{'children':_0xfc9545[_0x5e5e4e(0x216)][_0x5e5e4e(0x282)](function(_0x2028ba){const _0x55e2f4=_0x5e5e4e;return typeof _0x2028ba[_0x55e2f4(0x35b)]['id']=='string'&&_0x41ea8a&&_0x41ea8a[_0x55e2f4(0x562)](_0x2028ba['attrs']['id'])>-0x1?M(M({},_0x2028ba),{'attrs':M(M({},_0x2028ba[_0x55e2f4(0x35b)]),{'id':_0x2028ba[_0x55e2f4(0x35b)]['id']+_0x3b4e87[_0x55e2f4(0x3d7)]})}):_0x2028ba;})}):_0xfc9545;}function Ai(){const _0x5ade05=_0x3cc0f6;return Math['random']()[_0x5ade05(0x39c)](0x24)[_0x5ade05(0x26a)](0x2,0x8);}Ze[_0x3cc0f6(0x412)]='UniverIcon';var Li={'tag':'svg','attrs':{'fill':'none','viewBox':_0x3cc0f6(0x57d),'width':_0x3cc0f6(0x2e9),'height':_0x3cc0f6(0x2e9)},'children':[{'tag':'g','attrs':{'clipPath':_0x3cc0f6(0x2c6)},'children':[{'tag':_0x3cc0f6(0x2bc),'attrs':{'stroke':_0x3cc0f6(0x244),'d':_0x3cc0f6(0x5da),'strokeLinecap':_0x3cc0f6(0x53e),'strokeLinejoin':_0x3cc0f6(0x53e),'strokeWidth':1.2}}]},{'tag':_0x3cc0f6(0x417),'attrs':{},'children':[{'tag':_0x3cc0f6(0x4b9),'attrs':{'id':_0x3cc0f6(0x23e)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x3cc0f6(0x53b)}}]}]}],'defIds':['off-line-single_clip0_910_343']},At=y[_0x3cc0f6(0x4b2)](function(_0x458397,_0x4e46af){const _0xf5169e=_0x3cc0f6;return y[_0xf5169e(0x482)](Ze,Object[_0xf5169e(0x403)]({},_0x458397,{'id':_0xf5169e(0x4de),'ref':_0x4e46af,'icon':Li}));});At[_0x3cc0f6(0x412)]=_0x3cc0f6(0x3d3);var $i={'tag':'svg','attrs':{'fill':_0x3cc0f6(0x2ad),'viewBox':'0\x200\x2017\x2016','width':_0x3cc0f6(0x2e9),'height':_0x3cc0f6(0x2e9)},'children':[{'tag':'g','attrs':{'clipPath':_0x3cc0f6(0x293)},'children':[{'tag':_0x3cc0f6(0x2bc),'attrs':{'stroke':'currentColor','d':_0x3cc0f6(0x2db),'strokeLinecap':'round','strokeLinejoin':_0x3cc0f6(0x53e),'strokeWidth':1.2}}]},{'tag':_0x3cc0f6(0x417),'attrs':{},'children':[{'tag':_0x3cc0f6(0x4b9),'attrs':{'id':_0x3cc0f6(0x3d8)},'children':[{'tag':_0x3cc0f6(0x2bc),'attrs':{'fill':_0x3cc0f6(0x4af),'d':_0x3cc0f6(0x53b),'transform':_0x3cc0f6(0x21d)}}]}]}],'defIds':[_0x3cc0f6(0x3d8)]},Lt=y['forwardRef'](function(_0x4b5179,_0x2c0d7e){const _0x4604be=_0x3cc0f6;return y[_0x4604be(0x482)](Ze,Object['assign']({},_0x4b5179,{'id':'on-line-single','ref':_0x2c0d7e,'icon':$i}));});Lt['displayName']='OnLineSingle';function $t(_0x5adbbc){const _0x36979c=_0x3cc0f6;var _0x3733c3,_0x34c25a,_0x3bde64='';if(typeof _0x5adbbc=='string'||typeof _0x5adbbc=='number')_0x3bde64+=_0x5adbbc;else{if(typeof _0x5adbbc=='object'){if(Array[_0x36979c(0x414)](_0x5adbbc)){var _0x2cb46e=_0x5adbbc['length'];for(_0x3733c3=0x0;_0x3733c3<_0x2cb46e;_0x3733c3++)_0x5adbbc[_0x3733c3]&&(_0x34c25a=$t(_0x5adbbc[_0x3733c3]))&&(_0x3bde64&&(_0x3bde64+='\x20'),_0x3bde64+=_0x34c25a);}else{for(_0x34c25a in _0x5adbbc)_0x5adbbc[_0x34c25a]&&(_0x3bde64&&(_0x3bde64+='\x20'),_0x3bde64+=_0x34c25a);}}}return _0x3bde64;}function ji(){const _0x2f0866=_0x3cc0f6;for(var _0x3563ed,_0x4e5083,_0x1d7e68=0x0,_0x3c57f4='',_0x7f1f50=arguments[_0x2f0866(0x411)];_0x1d7e68<_0x7f1f50;_0x1d7e68++)(_0x3563ed=arguments[_0x1d7e68])&&(_0x4e5083=$t(_0x3563ed))&&(_0x3c57f4&&(_0x3c57f4+='\x20'),_0x3c57f4+=_0x4e5083);return _0x3c57f4;}const Hi='univer-online-status-icon',xi=_0x3cc0f6(0x5c4),ki=_0x3cc0f6(0x257),Bi=_0x3cc0f6(0x1fe),Vi=_0x3cc0f6(0x5bb),_e={'onlineStatusIcon':Hi,'onlineStatusTitle':xi,'onlineStatus':ki,'online':Bi,'offline':Vi};function Wi(_0xc38c91){const _0x7a2e5d=_0x3cc0f6;switch(_0xc38c91){case D[_0x7a2e5d(0x50c)]:return _0x7a2e5d(0x4d8);case D[_0x7a2e5d(0x2c5)]:return _0x7a2e5d(0x3d0);case D['FETCH_MISS']:return _0x7a2e5d(0x363);case D[_0x7a2e5d(0x2b0)]:return _0x7a2e5d(0x586);case D[_0x7a2e5d(0x59c)]:case D[_0x7a2e5d(0x4e8)]:return _0x7a2e5d(0x4bb);case D[_0x7a2e5d(0x2d7)]:case D[_0x7a2e5d(0x3eb)]:return _0x7a2e5d(0x306);}}function jt(_0x58fa65){const _0x55c3c6=_0x3cc0f6,{status$:_0x49125b}=_0x58fa65,_0x3c84e6=A[_0x55c3c6(0x567)](_0x49125b,D['NOT_COLLAB']),_0x34a248=a['useDependency'](a[_0x55c3c6(0x2b9)]),_0x5cc26a=a[_0x55c3c6(0x456)](exports[_0x55c3c6(0x3c0)]),_0x94c77c=_0x3c84e6!==D[_0x55c3c6(0x50c)],_0x43a379=_0x34a248['t'](Wi(_0x3c84e6)),_0x212593=ji(_e[_0x55c3c6(0x4a7)],{[_e[_0x55c3c6(0x5c0)]]:_0x94c77c,[_e[_0x55c3c6(0x550)]]:!_0x94c77c}),_0x384346=_0x94c77c?y['createElement'](Lt,null):y[_0x55c3c6(0x482)](At,null),_0x4c97ac=y[_0x55c3c6(0x324)](()=>{const _0x587617=_0x55c3c6;_0x94c77c||_0x5cc26a[_0x587617(0x448)]();},[_0x94c77c,_0x5cc26a]);function _0x188123(){const _0xc379ac=_0x55c3c6;return y[_0xc379ac(0x482)](_0xc379ac(0x3b7),{'className':_0x212593,'onClick':_0x4c97ac},y[_0xc379ac(0x482)](_0xc379ac(0x3b7),{'className':_e[_0xc379ac(0x41e)]},_0x384346),y[_0xc379ac(0x482)](_0xc379ac(0x3b7),{'className':_e[_0xc379ac(0x3ed)]},_0x43a379));}return _0x94c77c?_0x188123():y[_0x55c3c6(0x482)](J[_0x55c3c6(0x59a)],{'title':_0x34a248['t'](_0x55c3c6(0x23c))},_0x188123());}var Fi=Object[_0x3cc0f6(0x1c6)],Gi=Object['getOwnPropertyDescriptor'],Yi=(_0x528d21,_0x3129c2,_0x5160db,_0x425df4)=>{const _0x1cfea6=_0x3cc0f6;for(var _0x42fd18=_0x425df4>0x1?void 0x0:_0x425df4?Gi(_0x3129c2,_0x5160db):_0x3129c2,_0x4e497a=_0x528d21[_0x1cfea6(0x411)]-0x1,_0x47ecac;_0x4e497a>=0x0;_0x4e497a--)(_0x47ecac=_0x528d21[_0x4e497a])&&(_0x42fd18=(_0x425df4?_0x47ecac(_0x3129c2,_0x5160db,_0x42fd18):_0x47ecac(_0x42fd18))||_0x42fd18);return _0x425df4&&_0x42fd18&&Fi(_0x3129c2,_0x5160db,_0x42fd18),_0x42fd18;},ge=(_0x3fbc08,_0x3b7f5f)=>(_0x1763a5,_0x421ca6)=>_0x3b7f5f(_0x1763a5,_0x421ca6,_0x3fbc08);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3cc0f6(0x31b)]{constructor(_0x3c518b,_0x30d8e2,_0x544cc2,_0x1488c2){const _0x1b8b19=_0x3cc0f6;super(),u(this,_0x1b8b19(0x4a2),new v['BehaviorSubject'](D['NOT_COLLAB'])),(this['_univerInstanceService']=_0x3c518b,this[_0x1b8b19(0x514)]=_0x30d8e2,this[_0x1b8b19(0x5ba)]=_0x544cc2,this[_0x1b8b19(0x3ee)]=_0x1488c2,this['_initStatusComponent'](),this[_0x1b8b19(0x5a3)]());}[_0x3cc0f6(0x5a3)](){const _0x2454f5=_0x3cc0f6;this['disposeWithMe'](this[_0x2454f5(0x34b)][_0x2454f5(0x1e6)]['pipe'](v[_0x2454f5(0x4d4)](()=>{const _0x957419=_0x2454f5,_0x57ff29=this['_univerInstanceService']['getFocusedUnit']();return _0x57ff29?this[_0x957419(0x3ee)][_0x957419(0x2a9)](_0x57ff29[_0x957419(0x527)]()):v['of'](null);}),v[_0x2454f5(0x4d4)](_0x7c9480=>_0x7c9480?_0x7c9480[_0x2454f5(0x40f)]:v['of'](D[_0x2454f5(0x2b0)])))[_0x2454f5(0x342)](_0x5e27f6=>{const _0x4640ae=_0x2454f5;this['_status$'][_0x4640ae(0x517)](_0x5e27f6);}));}[_0x3cc0f6(0x52b)](){const _0x4a6130=_0x3cc0f6;this[_0x4a6130(0x217)](this[_0x4a6130(0x514)][_0x4a6130(0x536)](A[_0x4a6130(0x4cd)][_0x4a6130(0x391)],()=>a[_0x4a6130(0x2fb)](Ki({'status$':this[_0x4a6130(0x4a2)][_0x4a6130(0x459)]()}),this[_0x4a6130(0x5ba)])));}},exports['DesktopCollaborationStatusDisplayController']=Yi([ge(0x0,a[_0x3cc0f6(0x2f2)]),ge(0x1,A['IUIPartsService']),ge(0x2,a[_0x3cc0f6(0x573)](a['Injector'])),ge(0x3,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x3fc)]))],exports[_0x3cc0f6(0x2de)]);function Ki(_0x1c298e){const {status$:_0x4cb8c8}=_0x1c298e;return function(){const _0x43fcc5=_0x10ac;return y[_0x43fcc5(0x482)](jt,{'status$':_0x4cb8c8});};}const Qe=a['createIdentifier'](_0x3cc0f6(0x280));var Xi=Object[_0x3cc0f6(0x1c6)],qi=Object[_0x3cc0f6(0x544)],zi=(_0x3c5659,_0x26b706,_0x324d0a,_0x5e30d8)=>{const _0x3df1ed=_0x3cc0f6;for(var _0x185fc7=_0x5e30d8>0x1?void 0x0:_0x5e30d8?qi(_0x26b706,_0x324d0a):_0x26b706,_0x269bcc=_0x3c5659[_0x3df1ed(0x411)]-0x1,_0x35fd4d;_0x269bcc>=0x0;_0x269bcc--)(_0x35fd4d=_0x3c5659[_0x269bcc])&&(_0x185fc7=(_0x5e30d8?_0x35fd4d(_0x26b706,_0x324d0a,_0x185fc7):_0x35fd4d(_0x185fc7))||_0x185fc7);return _0x5e30d8&&_0x185fc7&&Xi(_0x26b706,_0x324d0a,_0x185fc7),_0x185fc7;},ie=(_0x4d27e6,_0x3682a2)=>(_0x276f32,_0x1bddca)=>_0x3682a2(_0x276f32,_0x1bddca,_0x4d27e6);exports[_0x3cc0f6(0x5d5)]=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x403d8a,_0x186a64,_0x5f15a3,_0x59ce14,_0x2f3199,_0x5da009){const _0x1bcb30=_0x3cc0f6;super(),this['_urlService']=_0x403d8a,this[_0x1bcb30(0x518)]=_0x186a64,this[_0x1bcb30(0x495)]=_0x5f15a3,this[_0x1bcb30(0x1e8)]=_0x59ce14,this[_0x1bcb30(0x470)]=_0x2f3199,_0x5da009?_0x5da009==null||_0x5da009[_0x1bcb30(0x559)]()[_0x1bcb30(0x25f)](()=>this[_0x1bcb30(0x53a)]()):(this[_0x1bcb30(0x518)][_0x1bcb30(0x2cc)](_0x1bcb30(0x447),_0x1bcb30(0x25c)),this[_0x1bcb30(0x53a)]());}async['_init'](){const _0xf6bf61=_0x3cc0f6,_0x3a879a=this[_0xf6bf61(0x4ae)]['getParam']('unit'),_0x510e7f=this[_0xf6bf61(0x4ae)][_0xf6bf61(0x5d9)]('type');if(!_0x3a879a||!_0x510e7f){this[_0xf6bf61(0x518)][_0xf6bf61(0x2cc)](_0xf6bf61(0x447),_0xf6bf61(0x5ca));return;}switch(Number(_0x510e7f)){case H[_0xf6bf61(0x336)]:{const _0x55b87b=await this['_loadSheet'](_0x3a879a);this['_setupSubUnitSync'](_0x55b87b);break;}case H['UNIVER_DOC']:{await this[_0xf6bf61(0x582)](_0x3a879a);break;}default:{this[_0xf6bf61(0x518)][_0xf6bf61(0x2c9)](_0xf6bf61(0x447),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x3cc0f6(0x348)](_0xebee5f){const _0xea3410=_0x3cc0f6;await this['_updateSubUnitFromURLParams'](_0xebee5f),_0xebee5f[_0xea3410(0x361)]['pipe'](v[_0xea3410(0x585)](this['dispose$']))[_0xea3410(0x342)](_0x52c2b7=>{_0x52c2b7&&this['_updateURLWithCurrentState'](_0x52c2b7);}),this[_0xea3410(0x4ae)]['urlChange$']['pipe'](v['takeUntil'](this['dispose$']))['subscribe'](()=>this[_0xea3410(0x1e3)](_0xebee5f));}[_0x3cc0f6(0x33e)](_0x5e3508,_0x18c0e8=!0x1){const _0x503fe2=_0x3cc0f6,_0xd0158c=this['_urlService'][_0x503fe2(0x5d9)](_0x503fe2(0x4ac));_0x5e3508[_0x503fe2(0x255)]()!==_0xd0158c&&this[_0x503fe2(0x4ae)][_0x503fe2(0x20f)](_0x503fe2(0x4ac),_0x5e3508[_0x503fe2(0x255)](),_0x18c0e8);}async[_0x3cc0f6(0x1e3)](_0x372386){const _0xc2e552=_0x3cc0f6;var _0x427a8b;const _0x27dda4=this['_urlService'][_0xc2e552(0x5d9)](_0xc2e552(0x4ac));if(!_0x27dda4||!_0x372386[_0xc2e552(0x23d)](_0x27dda4)){const _0x5ddba9=_0x372386[_0xc2e552(0x233)]()[0x0],_0x1884b4=_0x372386[_0xc2e552(0x23d)](_0x5ddba9);if(!_0x1884b4)return;this[_0xc2e552(0x33e)](_0x1884b4,!0x0),await this[_0xc2e552(0x495)][_0xc2e552(0x427)](C[_0xc2e552(0x485)]['id'],{'unitId':_0x372386[_0xc2e552(0x527)](),'subUnitId':_0x5ddba9});return;}((_0x427a8b=_0x372386[_0xc2e552(0x57f)]())==null?void 0x0:_0x427a8b['getSheetId']())!==_0x27dda4&&await this['_commandService']['executeCommand'](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x372386[_0xc2e552(0x527)](),'subUnitId':_0x27dda4});}async[_0x3cc0f6(0x214)](_0x4f8008){const _0x37fb87=_0x3cc0f6;let _0x181e0e=0x0;const _0x2126bc=await this[_0x37fb87(0x1e8)]['loadOfflineData'](_0x4f8008);return _0x2126bc&&(_0x2126bc[_0x37fb87(0x455)]||_0x2126bc['mutations'][_0x37fb87(0x411)]!==0x0)&&(_0x181e0e=_0x2126bc[_0x37fb87(0x20c)]),_0x181e0e===0x0&&this['_logService'][_0x37fb87(0x2cc)](_0x37fb87(0x447),_0x37fb87(0x5b1)),this[_0x37fb87(0x470)]['loadSheet'](_0x4f8008,_0x181e0e);}async[_0x3cc0f6(0x582)](_0x29b73a){const _0xca3ebb=_0x3cc0f6;let _0x2d9138=0x0;const _0x45502a=await this[_0xca3ebb(0x1e8)][_0xca3ebb(0x40e)](_0x29b73a);return _0x45502a&&(_0x45502a[_0xca3ebb(0x455)]||_0x45502a['mutations'][_0xca3ebb(0x411)]!==0x0)&&(_0x2d9138=_0x45502a['rev']),_0x2d9138===0x0&&this[_0xca3ebb(0x518)]['debug']('[DataLoaderController]',_0xca3ebb(0x5b1)),this[_0xca3ebb(0x470)]['loadDoc'](_0x29b73a,_0x2d9138);}},exports[_0x3cc0f6(0x5d5)]=zi([ie(0x0,Qe),ie(0x1,a['ILogService']),ie(0x2,a['ICommandService']),ie(0x3,a['Inject'](exports[_0x3cc0f6(0x1f8)])),ie(0x4,a[_0x3cc0f6(0x573)](_['SnapshotService'])),ie(0x5,a[_0x3cc0f6(0x273)](qt['IRemoteInstanceService']))],exports[_0x3cc0f6(0x5d5)]);var Ji=Object[_0x3cc0f6(0x1c6)],Zi=Object[_0x3cc0f6(0x544)],Qi=(_0x10efc1,_0x583309,_0x5b566a,_0x4d2f80)=>{const _0x35895c=_0x3cc0f6;for(var _0x31750a=_0x4d2f80>0x1?void 0x0:_0x4d2f80?Zi(_0x583309,_0x5b566a):_0x583309,_0x58df5c=_0x10efc1[_0x35895c(0x411)]-0x1,_0xd6ac70;_0x58df5c>=0x0;_0x58df5c--)(_0xd6ac70=_0x10efc1[_0x58df5c])&&(_0x31750a=(_0x4d2f80?_0xd6ac70(_0x583309,_0x5b566a,_0x31750a):_0xd6ac70(_0x31750a))||_0x31750a);return _0x4d2f80&&_0x31750a&&Ji(_0x583309,_0x5b566a,_0x31750a),_0x31750a;},_t=(_0x4d412f,_0x268000)=>(_0x43c1b8,_0x3aec76)=>_0x268000(_0x43c1b8,_0x3aec76,_0x4d412f);const en='DEFAULT_FILE_NAME',tn=_0x3cc0f6(0x384);let Ee=class extends a['Disposable']{constructor(_0x4cab24,_0x3414ca){const _0x565384=_0x3cc0f6;super(),this[_0x565384(0x34b)]=_0x4cab24,this[_0x565384(0x5e0)]=_0x3414ca,this[_0x565384(0x53a)]();}['_init'](){const _0x2d7aa2=_0x3cc0f6;this[_0x2d7aa2(0x217)](this['_univerInstanceService'][_0x2d7aa2(0x1e6)][_0x2d7aa2(0x342)](()=>{const _0x41dd76=_0x2d7aa2;var _0x53bb7b;const _0x5f3b4a=this[_0x41dd76(0x34b)]['getFocusedUnit']();let _0x56e3ab=(_0x53bb7b=this['_configService'][_0x41dd76(0x458)](en))!=null?_0x53bb7b:tn;_0x5f3b4a instanceof a['Workbook']&&(_0x56e3ab=_0x5f3b4a[_0x41dd76(0x51a)]),document[_0x41dd76(0x40a)]=_0x56e3ab;}));}};Ee=Qi([_t(0x0,a[_0x3cc0f6(0x2f2)]),_t(0x1,a[_0x3cc0f6(0x5d3)])],Ee);var sn=Object[_0x3cc0f6(0x1c6)],nn=Object['getOwnPropertyDescriptor'],rn=(_0xdb53fc,_0x24f92b,_0xd30fb,_0x17e1a6)=>{const _0x251798=_0x3cc0f6;for(var _0x2df00e=_0x17e1a6>0x1?void 0x0:_0x17e1a6?nn(_0x24f92b,_0xd30fb):_0x24f92b,_0x56dfe4=_0xdb53fc[_0x251798(0x411)]-0x1,_0x5aafab;_0x56dfe4>=0x0;_0x56dfe4--)(_0x5aafab=_0xdb53fc[_0x56dfe4])&&(_0x2df00e=(_0x17e1a6?_0x5aafab(_0x24f92b,_0xd30fb,_0x2df00e):_0x5aafab(_0x2df00e))||_0x2df00e);return _0x17e1a6&&_0x2df00e&&sn(_0x24f92b,_0xd30fb,_0x2df00e),_0x2df00e;},He=(_0x2ff74b,_0x5a6e2f)=>(_0x2884b6,_0x4c8501)=>_0x5a6e2f(_0x2884b6,_0x4c8501,_0x2ff74b);let be=class{constructor(_0x16099f,_0x1dbfce,_0x11b69d){const _0x4e59c2=_0x3cc0f6;this[_0x4e59c2(0x5e0)]=_0x16099f,this['_httpService']=_0x1dbfce,this['localeService']=_0x11b69d,this['init']();}[_0x3cc0f6(0x5d4)](){const _0x29343a=_0x3cc0f6;this[_0x29343a(0x1fa)][_0x29343a(0x5e1)]({'priority':0x1,'interceptor':(_0x45f799,_0x5e9754)=>_0x5e9754(_0x45f799)[_0x29343a(0x57c)](v[_0x29343a(0x25d)](async _0x2fbc64=>{const _0x58ce6f=_0x29343a,_0x19b6ad=_0x2fbc64;if(_0x19b6ad['status']===0x191&&window[_0x58ce6f(0x44e)](this[_0x58ce6f(0x287)]['t'](_0x58ce6f(0x264)))){const _0x120411=window[_0x58ce6f(0x465)](window[_0x58ce6f(0x46b)][_0x58ce6f(0x2ca)]);window[_0x58ce6f(0x46b)][_0x58ce6f(0x2ca)]=this[_0x58ce6f(0x48e)]()+_0x58ce6f(0x5e7)+_0x120411;}return _0x19b6ad;}))});}[_0x3cc0f6(0x48e)](){const _0x4fcdd1=_0x3cc0f6;var _0x16578c,_0x539897;const _0x5a6a7a=this[_0x4fcdd1(0x5e0)][_0x4fcdd1(0x458)](Et),_0x559f22=this[_0x4fcdd1(0x5e0)][_0x4fcdd1(0x458)]($);return(_0x539897=(_0x16578c=_0x559f22==null?void 0x0:_0x559f22[_0x4fcdd1(0x5e4)])!=null?_0x16578c:_0x5a6a7a)!=null?_0x539897:os;}};be=rn([He(0x0,a[_0x3cc0f6(0x5d3)]),He(0x1,a[_0x3cc0f6(0x573)](U[_0x3cc0f6(0x43f)])),He(0x2,a['Inject'](a[_0x3cc0f6(0x2b9)]))],be);var on=Object[_0x3cc0f6(0x1c6)],an=Object[_0x3cc0f6(0x544)],cn=(_0x786a20,_0x44b833,_0xb9a837,_0x4a2676)=>{const _0x5bd7c4=_0x3cc0f6;for(var _0xd19bc8=_0x4a2676>0x1?void 0x0:_0x4a2676?an(_0x44b833,_0xb9a837):_0x44b833,_0x30913f=_0x786a20[_0x5bd7c4(0x411)]-0x1,_0x5c8be4;_0x30913f>=0x0;_0x30913f--)(_0x5c8be4=_0x786a20[_0x30913f])&&(_0xd19bc8=(_0x4a2676?_0x5c8be4(_0x44b833,_0xb9a837,_0xd19bc8):_0x5c8be4(_0xd19bc8))||_0xd19bc8);return _0x4a2676&&_0xd19bc8&&on(_0x44b833,_0xb9a837,_0xd19bc8),_0xd19bc8;},ut=(_0x2b0df0,_0x3be348)=>(_0x4368e6,_0xcda43a)=>_0x3be348(_0x4368e6,_0xcda43a,_0x2b0df0);function _0x10ac(_0x58514f,_0x46c815){const _0x48f69f=_0x48f6();return _0x10ac=function(_0x10acb7,_0x520dff){_0x10acb7=_0x10acb7-0x1bc;let _0x108654=_0x48f69f[_0x10acb7];return _0x108654;},_0x10ac(_0x58514f,_0x46c815);}const Ht=_0x3cc0f6(0x2e8),ln=_0x3cc0f6(0x4b8);exports[_0x3cc0f6(0x583)]=class extends a[_0x3cc0f6(0x31b)]{constructor(_0x187923,_0x137e3f){const _0x44e667=_0x3cc0f6;super(),this[_0x44e667(0x5c9)]=_0x187923,this['_configService']=_0x137e3f,this[_0x44e667(0x2a4)]();}['_initMergeInterceptor'](){const _0x2b4572=_0x3cc0f6,_0x4bf7fc=this;this[_0x2b4572(0x217)](this[_0x2b4572(0x5c9)][_0x2b4572(0x5e1)]({'priority':0x3e7,'interceptor':U[_0x2b4572(0x3cc)]({'isMatch'(_0x21f8e0){const _0x51ed07=_0x2b4572;var _0x8bda15;if(_0x21f8e0['method']===_0x51ed07(0x27a)&&((_0x8bda15=_0x21f8e0[_0x51ed07(0x297)])!=null&&_0x8bda15[_0x51ed07(0x267)])){const {objectID:_0x5bfe2f,objectType:_0x5d92ac}=_0x21f8e0[_0x51ed07(0x297)][_0x51ed07(0x267)]||{};if(!_0x5bfe2f||_0x5d92ac===void 0x0)return!0x1;const _0x3f738e=_0x4bf7fc[_0x51ed07(0x2f7)]()+'/'+_0x5d92ac+_0x51ed07(0x55f)+_0x5bfe2f+'/allowed';if(_0x21f8e0[_0x51ed07(0x1c1)]===_0x3f738e)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x546ee1){const _0x37145f=_0x2b4572;var _0x4c8087;return(_0x4c8087=_0x546ee1['requestParams'])==null?void 0x0:_0x4c8087[_0x37145f(0x267)];},'mergeParamsToRequest'(_0x56b946,_0x596fef){const _0x51452f=_0x2b4572,_0xb9e06a=_0x4bf7fc[_0x51452f(0x2f7)]()+_0x51452f(0x32d),_0x3ea4f2=_0x56b946[_0x51452f(0x508)]((_0x1984e6,_0x4248f7)=>{const _0x3c93a5=_0x51452f,{unitID:_0x1df3a7,objectID:_0xff8a9c,objectType:_0xef599,actions:_0x36f569}=_0x4248f7;return _0x1984e6[_0x1df3a7]||(_0x1984e6[_0x1df3a7]={}),_0x1984e6[_0x1df3a7][_0xff8a9c]||(_0x1984e6[_0x1df3a7][_0xff8a9c]={'objectID':_0xff8a9c,'objectType':_0xef599,'actions':[]}),_0x1984e6[_0x1df3a7][_0xff8a9c][_0x3c93a5(0x419)][_0x3c93a5(0x430)](..._0x36f569),_0x1984e6;},{}),_0x2985ef=[];for(const _0x43a61a in _0x3ea4f2)for(const _0x471817 in _0x3ea4f2[_0x43a61a]){const {actions:_0x33cf7a,objectType:_0x59e808}=_0x3ea4f2[_0x43a61a][_0x471817],_0x3b114b=[...new Set(_0x33cf7a)];_0x2985ef[_0x51452f(0x430)]({'unitID':_0x43a61a,'objectID':_0x471817,'objectType':_0x59e808,'actions':_0x3b114b});}return new U['HTTPRequest'](_0x51452f(0x27a),_0xb9e06a,{'headers':_0x596fef[_0x51452f(0x367)],'withCredentials':_0x596fef[_0x51452f(0x58a)],'responseType':_0x596fef['responseType'],'body':{'requests':_0x2985ef}});}},{'distributeResult'(_0x52d7e2,_0x3c3b27){const _0x27ed42=_0x2b4572,{objectActions:_0x27ace2}=_0x52d7e2;return _0x3c3b27[_0x27ed42(0x282)](_0x2a096c=>{const _0x53d224=_0x27ed42,{unitID:_0x3391e2,objectID:_0x31204b,actions:_0x4cd2b7}=_0x2a096c,_0x149f9c=_0x27ace2['find'](_0x107f75=>_0x107f75[_0x53d224(0x426)]===_0x3391e2&&_0x107f75['objectID']===_0x31204b),_0x511ed3=_0x4cd2b7[_0x53d224(0x282)](_0x1285ec=>_0x149f9c==null?void 0x0:_0x149f9c['actions'][_0x53d224(0x4f8)](_0x182af5=>_0x182af5[_0x53d224(0x5c6)]===_0x1285ec))['filter'](_0x489674=>!!_0x489674);return{'config':_0x2a096c,'result':{'actions':_0x511ed3,'error':_0x52d7e2[_0x53d224(0x2c9)]}};});}})}));}[_0x3cc0f6(0x2f7)](){const _0x136063=_0x3cc0f6;var _0x441f6b,_0x4ed96e;const _0x183fee=this[_0x136063(0x5e0)][_0x136063(0x458)](Ht),_0x3e343e=this[_0x136063(0x5e0)][_0x136063(0x458)]($);return(_0x4ed96e=(_0x441f6b=_0x3e343e==null?void 0x0:_0x3e343e['authzUrl'])!=null?_0x441f6b:_0x183fee)!=null?_0x4ed96e:ln;}async[_0x3cc0f6(0x376)](_0x61b6b1){const _0x27fef8=_0x3cc0f6,_0x47f1f6=this[_0x27fef8(0x2f7)]()+'/'+_0x61b6b1[_0x27fef8(0x57a)]+_0x27fef8(0x2da);return(await this[_0x27fef8(0x5c9)]['post'](_0x47f1f6,{'body':_0x61b6b1}))['body'][_0x27fef8(0x2e6)]||'';}async[_0x3cc0f6(0x554)](_0x1b0293){const _0x5f16ac=_0x3cc0f6,_0xc2c433=this[_0x5f16ac(0x2f7)]()+'/-/object/list';return(await this[_0x5f16ac(0x5c9)][_0x5f16ac(0x1f2)](_0xc2c433,{'body':_0x1b0293}))[_0x5f16ac(0x267)][_0x5f16ac(0x59b)];}async[_0x3cc0f6(0x4f9)](_0x1b2921){const _0x37d236=_0x3cc0f6,_0x5e3e16=this['_getAPIPrefixPath']()+'/'+_0x1b2921[_0x37d236(0x57a)]+_0x37d236(0x55f)+_0x1b2921[_0x37d236(0x2e6)];await this['_HTTPService'][_0x37d236(0x3ac)](_0x5e3e16,{'body':_0x1b2921});}async[_0x3cc0f6(0x4cc)](_0x29eba1){const _0x25f24a=_0x3cc0f6,_0x3027fd=this['_getAPIPrefixPath']()+'/'+_0x29eba1['objectType']+_0x25f24a(0x55f)+_0x29eba1[_0x25f24a(0x2e6)]+'/allowed';return(await this['_HTTPService'][_0x25f24a(0x1f2)](_0x3027fd,{'body':_0x29eba1}))[_0x25f24a(0x267)][_0x25f24a(0x419)];}async[_0x3cc0f6(0x2c0)](_0x49fbeb){const _0x31b058=_0x3cc0f6,_0x5e232b=this[_0x31b058(0x2f7)]()+_0x31b058(0x32d);return(await this[_0x31b058(0x5c9)][_0x31b058(0x1f2)](_0x5e232b,{'body':{'requests':_0x49fbeb}}))[_0x31b058(0x267)][_0x31b058(0x443)];}async[_0x3cc0f6(0x25a)](_0x25783f){const _0x391177=_0x3cc0f6,_0x2b4492=this[_0x391177(0x2f7)]()+'/'+_0x25783f[_0x391177(0x57a)]+_0x391177(0x498),_0x3d5266=await this[_0x391177(0x5c9)][_0x391177(0x1f2)](_0x2b4492,{'body':_0x25783f});return{'roles':_0x3d5266['body']['roles'],'actions':_0x3d5266['body'][_0x391177(0x419)]};}async[_0x3cc0f6(0x47a)](_0x3ced35){const _0x5e224f=_0x3cc0f6,_0x411468=this[_0x5e224f(0x2f7)]()+_0x5e224f(0x49e);await this['_HTTPService'][_0x5e224f(0x3c4)](_0x411468,{'params':{'collaboratorID':_0x3ced35['collaboratorID'],'objectID':_0x3ced35['objectID'],'unitID':_0x3ced35[_0x5e224f(0x426)]}});}async['updateCollaborator'](_0x50f381){const _0x1ec1f3=_0x3cc0f6,_0x34abd3=this[_0x1ec1f3(0x2f7)]()+_0x1ec1f3(0x49e);await this['_HTTPService'][_0x1ec1f3(0x4d9)](_0x34abd3,{'body':_0x50f381});}async[_0x3cc0f6(0x526)](_0x42e392){const _0xacaee9=_0x3cc0f6,_0x151f1f=this[_0xacaee9(0x2f7)]()+_0xacaee9(0x49e);await this[_0xacaee9(0x5c9)][_0xacaee9(0x1f2)](_0x151f1f,{'body':_0x42e392});}async['listCollaborators'](_0x40a46c){const _0x5937b3=_0x3cc0f6,_0x2635e9=this[_0x5937b3(0x2f7)]()+_0x5937b3(0x49e);return(await this[_0x5937b3(0x5c9)][_0x5937b3(0x3de)](_0x2635e9,{'params':{'objectID':_0x40a46c[_0x5937b3(0x2e6)],'unitID':_0x40a46c['unitID']}}))[_0x5937b3(0x267)]['collaborators'];}async['putCollaborators'](_0x36a0ee){const _0x45a0e4=_0x3cc0f6,_0x183094=this[_0x45a0e4(0x2f7)]()+_0x45a0e4(0x49e);await this[_0x45a0e4(0x5c9)][_0x45a0e4(0x3ac)](_0x183094,{'body':_0x36a0ee});}},exports['AuthzIoHttpService']=cn([ut(0x0,a['Inject'](U[_0x3cc0f6(0x43f)])),ut(0x1,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5d3)]))],exports[_0x3cc0f6(0x583)]);var hn=Object[_0x3cc0f6(0x1c6)],_n=Object[_0x3cc0f6(0x544)],un=(_0x43171c,_0x536ce7,_0x3d2dd2,_0x196221)=>{const _0x299bba=_0x3cc0f6;for(var _0x403cb0=_0x196221>0x1?void 0x0:_0x196221?_n(_0x536ce7,_0x3d2dd2):_0x536ce7,_0x3fe88c=_0x43171c[_0x299bba(0x411)]-0x1,_0x114707;_0x3fe88c>=0x0;_0x3fe88c--)(_0x114707=_0x43171c[_0x3fe88c])&&(_0x403cb0=(_0x196221?_0x114707(_0x536ce7,_0x3d2dd2,_0x403cb0):_0x114707(_0x403cb0))||_0x403cb0);return _0x196221&&_0x403cb0&&hn(_0x536ce7,_0x3d2dd2,_0x403cb0),_0x403cb0;},dn=(_0x4e3a3e,_0x1ba931)=>(_0x273e9c,_0xe81dc1)=>_0x1ba931(_0x273e9c,_0xe81dc1,_0x4e3a3e);let Te=class{constructor(_0x1f1f72){const _0x7891ac=_0x3cc0f6;this[_0x7891ac(0x1fa)]=_0x1f1f72,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x52d32c=_0x3cc0f6;this[_0x52d32c(0x1fa)][_0x52d32c(0x5e1)]({'interceptor':(_0xd50168,_0x155300)=>{const _0x3737bb=_0x52d32c,_0x1ec651=_0xd50168[_0x3737bb(0x367)],_0x10d5fb=zt[_0x3737bb(0x4b7)]();return _0x10d5fb&&_0x1ec651[_0x3737bb(0x420)]('x-univer-host',_0x10d5fb),_0x155300(_0xd50168);}});}};Te=un([dn(0x0,a['Inject'](U[_0x3cc0f6(0x43f)]))],Te);var Sn=Object[_0x3cc0f6(0x1c6)],vn=Object[_0x3cc0f6(0x544)],mn=(_0x4aa689,_0x1ed2ec,_0x15dd62,_0x557e6a)=>{const _0x5c58d8=_0x3cc0f6;for(var _0x53f52a=_0x557e6a>0x1?void 0x0:_0x557e6a?vn(_0x1ed2ec,_0x15dd62):_0x1ed2ec,_0x20d7e0=_0x4aa689[_0x5c58d8(0x411)]-0x1,_0xefd53;_0x20d7e0>=0x0;_0x20d7e0--)(_0xefd53=_0x4aa689[_0x20d7e0])&&(_0x53f52a=(_0x557e6a?_0xefd53(_0x1ed2ec,_0x15dd62,_0x53f52a):_0xefd53(_0x53f52a))||_0x53f52a);return _0x557e6a&&_0x53f52a&&Sn(_0x1ed2ec,_0x15dd62,_0x53f52a),_0x53f52a;},xe=(_0x3d0259,_0x578b01)=>(_0x1ea691,_0x29629c)=>_0x578b01(_0x1ea691,_0x29629c,_0x3d0259);const gn=['image/png',_0x3cc0f6(0x1c7),_0x3cc0f6(0x591),_0x3cc0f6(0x3ca),_0x3cc0f6(0x28e)],fn=0x5*0x400*0x400,In=_0x3cc0f6(0x387),pn=_0x3cc0f6(0x34c),Cn=_0x3cc0f6(0x51c),En=_0x3cc0f6(0x5e2);exports['ImageIoService']=class{constructor(_0x414dd7,_0x169a07,_0x4b6d53){const _0x545492=_0x3cc0f6;u(this,'_waitCount',0x0),u(this,_0x545492(0x228),new v[(_0x545492(0x2c3))]()),u(this,'change$',this[_0x545492(0x228)]),u(this,'_imageSourceCache',new Map()),(this[_0x545492(0x1fa)]=_0x414dd7,this['_configService']=_0x169a07,this[_0x545492(0x34b)]=_0x4b6d53);}[_0x3cc0f6(0x44a)](_0x972b47){const _0x2ef89c=_0x3cc0f6;this[_0x2ef89c(0x590)]=_0x972b47,this[_0x2ef89c(0x228)][_0x2ef89c(0x517)](_0x972b47);}[_0x3cc0f6(0x3ae)](_0x2595a9,_0x53f538){const _0x33ad5c=_0x3cc0f6;if(_0x53f538===j[_0x33ad5c(0x45b)]['BASE64']){const _0x29d8d9=new Image();return _0x29d8d9['src']=_0x2595a9,_0x29d8d9;}return this['_imageSourceCache'][_0x33ad5c(0x3de)](_0x2595a9);}[_0x3cc0f6(0x2a3)](_0x34c504,_0x4c6571,_0x3f041b){const _0x4cf813=_0x3cc0f6;_0x4c6571===j[_0x4cf813(0x45b)][_0x4cf813(0x576)]||_0x3f041b==null||this[_0x4cf813(0x28f)][_0x4cf813(0x420)](_0x34c504,_0x3f041b);}async[_0x3cc0f6(0x47c)](_0x130b2c){const _0x364956=_0x3cc0f6;try{const _0x25462a=this[_0x364956(0x42f)](this[_0x364956(0x24c)](),''+_0x130b2c),_0x4f1ecc=(await this[_0x364956(0x1fa)]['get'](_0x25462a))[_0x364956(0x267)];if(_0x4f1ecc[_0x364956(0x2c9)]&&_0x4f1ecc[_0x364956(0x2c9)][_0x364956(0x5bf)]===bt['OK']){const _0x295bd4=new URL(_0x4f1ecc['url'],this['_getDownloadEndpointURL']())['toString']();return Promise[_0x364956(0x35d)](_0x295bd4);}return Promise[_0x364956(0x577)](_0x4f1ecc['error']);}catch(_0x1ab66f){return Promise[_0x364956(0x577)](_0x1ab66f);}}async['saveImage'](_0x23e91d){const _0x39ef10=_0x3cc0f6;let _0x7a6542='';if(!gn[_0x39ef10(0x2b1)](_0x23e91d['type']))return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x1e4)]));if(_0x23e91d[_0x39ef10(0x437)]>fn)return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x5af)]));try{const _0x22740e=new FormData();_0x22740e[_0x39ef10(0x4aa)](_0x39ef10(0x513),_0x23e91d);const _0x18c7b3=this[_0x39ef10(0x34b)][_0x39ef10(0x434)](),_0x47bd8f=_0x18c7b3==null?void 0x0:_0x18c7b3[_0x39ef10(0x527)]();if(!_0x47bd8f)throw new Error(_0x39ef10(0x23a));const _0x4da987=this[_0x39ef10(0x352)]()+'?size='+_0x23e91d[_0x39ef10(0x437)][_0x39ef10(0x39c)]()+'&source='+Tt[_0x39ef10(0x43c)]+_0x39ef10(0x1d9)+encodeURIComponent(_0x47bd8f),_0x3efcdb=await(await fetch(_0x4da987,{'method':'POST','body':_0x22740e}))[_0x39ef10(0x520)]();if(typeof _0x3efcdb[_0x39ef10(0x21c)]!=_0x39ef10(0x3d4))return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x3be)]));_0x7a6542=_0x3efcdb[_0x39ef10(0x21c)];}catch{return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x3be)]));}return new Promise((_0x1a6550,_0x1644b1)=>{const _0x38cd9b=_0x39ef10,_0x36ccf8=new FileReader();_0x36ccf8[_0x38cd9b(0x4ed)](_0x23e91d),_0x36ccf8[_0x38cd9b(0x4bc)]=_0xd32086=>{const _0x219378=_0x38cd9b;var _0x28d095;const _0x4c57c2=(_0x28d095=_0xd32086[_0x219378(0x5be)])==null?void 0x0:_0x28d095[_0x219378(0x2f8)];if(_0x4c57c2==null){this[_0x219378(0x55b)](),_0x1644b1(new Error(j[_0x219378(0x4a4)][_0x219378(0x3be)]));return;}const _0x4b53e7=a['Tools']['generateRandomId'](0x6);_0x1a6550({'imageId':_0x4b53e7,'imageSourceType':j['ImageSourceType'][_0x219378(0x1c4)],'source':_0x7a6542,'base64Cache':_0x4c57c2,'status':j[_0x219378(0x4a4)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x3cc0f6(0x352)](){const _0x21fbfb=_0x3cc0f6;var _0x10b7ea,_0x268902;const _0x4a193a=this[_0x21fbfb(0x5e0)][_0x21fbfb(0x458)](In),_0x349776=this['_configService'][_0x21fbfb(0x458)]($);return(_0x268902=(_0x10b7ea=_0x349776==null?void 0x0:_0x349776['uploadFileServerUrl'])!=null?_0x10b7ea:_0x4a193a)!=null?_0x268902:pn;}[_0x3cc0f6(0x24c)](){const _0x2e3ecc=_0x3cc0f6;var _0x4222ec,_0x2f39f5;const _0x4e7cfc=this[_0x2e3ecc(0x5e0)][_0x2e3ecc(0x458)](Cn),_0x47763c=this[_0x2e3ecc(0x5e0)]['getConfig']($);return(_0x2f39f5=(_0x4222ec=_0x47763c==null?void 0x0:_0x47763c['signUrlServerUrl'])!=null?_0x4222ec:_0x4e7cfc)!=null?_0x2f39f5:En;}['_getDownloadEndpointURL'](){const _0x57d969=_0x3cc0f6;var _0x250252;const _0x587394=this[_0x57d969(0x5e0)][_0x57d969(0x458)]($);return(_0x250252=_0x587394==null?void 0x0:_0x587394[_0x57d969(0x4d7)])!=null?_0x250252:location[_0x57d969(0x3da)];}[_0x3cc0f6(0x42f)](_0x36ae10,_0x5e8eeb){const _0x28e98a=_0x3cc0f6;return _0x36ae10[_0x28e98a(0x422)]('{fileID}',_0x5e8eeb);}[_0x3cc0f6(0x55b)](){const _0xa8f344=_0x3cc0f6;this[_0xa8f344(0x590)]-=0x1,this[_0xa8f344(0x228)]['next'](this['_waitCount']);}},exports[_0x3cc0f6(0x506)]=mn([xe(0x0,a['Inject'](U[_0x3cc0f6(0x43f)])),xe(0x1,a[_0x3cc0f6(0x5d3)]),xe(0x2,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2f2)]))],exports[_0x3cc0f6(0x506)]);var bn=Object[_0x3cc0f6(0x1c6)],Tn=Object[_0x3cc0f6(0x544)],Rn=(_0x8af7d4,_0x395bd4,_0xa7d9f5,_0xfcce42)=>{const _0x15bee8=_0x3cc0f6;for(var _0x2e488e=_0xfcce42>0x1?void 0x0:_0xfcce42?Tn(_0x395bd4,_0xa7d9f5):_0x395bd4,_0x2978f2=_0x8af7d4[_0x15bee8(0x411)]-0x1,_0x4a38bb;_0x2978f2>=0x0;_0x2978f2--)(_0x4a38bb=_0x8af7d4[_0x2978f2])&&(_0x2e488e=(_0xfcce42?_0x4a38bb(_0x395bd4,_0xa7d9f5,_0x2e488e):_0x4a38bb(_0x2e488e))||_0x2e488e);return _0xfcce42&&_0x2e488e&&bn(_0x395bd4,_0xa7d9f5,_0x2e488e),_0x2e488e;},ue=(_0x4332dd,_0x540730)=>(_0x3346f,_0x211a76)=>_0x540730(_0x3346f,_0x211a76,_0x4332dd);let Re=class extends a['RxDisposable']{constructor(_0x27a129,_0x3eca74,_0x558474,_0x2dec7e,_0x130005){const _0x5ddb1d=_0x3cc0f6;super(),this[_0x5ddb1d(0x5ba)]=_0x27a129,this[_0x5ddb1d(0x34b)]=_0x3eca74,this['_permissionService']=_0x558474,this['_collaborationSessionService']=_0x2dec7e,this['_localeService']=_0x130005,this[_0x5ddb1d(0x346)](),this[_0x5ddb1d(0x1f5)]();}[_0x3cc0f6(0x1f5)](){const _0x1c21fa=_0x3cc0f6,_0xbbdd40=async _0x3c601f=>{const _0x2bf0e2=_0x10ac;(await this[_0x2bf0e2(0x548)][_0x2bf0e2(0x57b)](_0x3c601f))[_0x2bf0e2(0x574)]['pipe'](E['filter'](_0x2b3bad=>_0x2b3bad[_0x2bf0e2(0x21b)]===_[_0x2bf0e2(0x400)][_0x2bf0e2(0x2f5)]),E[_0x2bf0e2(0x585)](this[_0x2bf0e2(0x38b)]))[_0x2bf0e2(0x342)](_0x34add6=>{const _0xb89eec=_0x2bf0e2,_0x5cc33b=_0x34add6,{reason:_0x15fe91}=_0x5cc33b[_0xb89eec(0x35a)];this[_0xb89eec(0x5ba)]['get'](A[_0xb89eec(0x2af)])['show']({'type':J[_0xb89eec(0x2ce)]['Error'],'content':this[_0xb89eec(0x36b)]['t'](_0xb89eec(0x34d))+'('+_0x15fe91+')'}),this[_0xb89eec(0x1dd)][_0xb89eec(0x4f2)](new C[(_0xb89eec(0x289))](_0x3c601f)['id'],!0x1),this[_0xb89eec(0x548)][_0xb89eec(0x362)](_0x3c601f);});};v[_0x1c21fa(0x570)](this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x1c21fa(0x31e)][_0x1c21fa(0x336)]),this[_0x1c21fa(0x34b)][_0x1c21fa(0x541)](a[_0x1c21fa(0x31e)][_0x1c21fa(0x3c6)]))[_0x1c21fa(0x57c)](E['map'](_0x366541=>_0x366541[_0x1c21fa(0x527)]()),E[_0x1c21fa(0x545)](_0x3839ff=>!a[_0x1c21fa(0x55c)](_0x3839ff)),E['takeUntil'](this[_0x1c21fa(0x38b)]))['subscribe'](_0x3a779b=>{_0xbbdd40(_0x3a779b);});}[_0x3cc0f6(0x346)](){const _0x5b515d=_0x3cc0f6,_0x5edff7=async _0x1fd620=>{const _0x4e4737=_0x10ac;(await this[_0x4e4737(0x548)][_0x4e4737(0x57b)](_0x1fd620))['event$']['pipe'](E['filter'](_0x5eae22=>_0x5eae22['eventID']===_[_0x4e4737(0x400)][_0x4e4737(0x1d8)]),E[_0x4e4737(0x585)](this[_0x4e4737(0x38b)]))['subscribe'](_0x4d7131=>{const _0x3619ff=_0x4e4737,_0x4c4866=_0x4d7131,{objectId:_0x180e15}=_0x4c4866[_0x3619ff(0x35a)],_0x177f7e=this[_0x3619ff(0x5ba)]['get'](ne['SheetPermissionInitController']);_0x180e15===_0x1fd620?_0x177f7e[_0x3619ff(0x52d)](_0x1fd620):_0x177f7e[_0x3619ff(0x415)](_0x1fd620,_0x180e15);});};v[_0x5b515d(0x570)](this[_0x5b515d(0x34b)][_0x5b515d(0x541)](a[_0x5b515d(0x31e)]['UNIVER_SHEET']),this[_0x5b515d(0x34b)]['getTypeOfUnitAdded$'](a[_0x5b515d(0x31e)][_0x5b515d(0x3c6)]))[_0x5b515d(0x57c)](E['map'](_0x59c23d=>_0x59c23d[_0x5b515d(0x527)]()),E[_0x5b515d(0x545)](_0x101446=>!a[_0x5b515d(0x55c)](_0x101446)),E['takeUntil'](this[_0x5b515d(0x38b)]))[_0x5b515d(0x342)](_0x3ee82e=>{_0x5edff7(_0x3ee82e);});}};Re=Rn([ue(0x0,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),ue(0x1,a['IUniverInstanceService']),ue(0x2,a[_0x3cc0f6(0x27b)]),ue(0x3,a['Inject'](exports[_0x3cc0f6(0x3c0)])),ue(0x4,a['Inject'](a[_0x3cc0f6(0x2b9)]))],Re);var On=Object[_0x3cc0f6(0x1c6)],Dn=Object[_0x3cc0f6(0x544)],yn=(_0x1de764,_0x56501a,_0x156ff9,_0xec17c8)=>{for(var _0x10b675=_0xec17c8>0x1?void 0x0:_0xec17c8?Dn(_0x56501a,_0x156ff9):_0x56501a,_0xd8e642=_0x1de764['length']-0x1,_0x4fd8d0;_0xd8e642>=0x0;_0xd8e642--)(_0x4fd8d0=_0x1de764[_0xd8e642])&&(_0x10b675=(_0xec17c8?_0x4fd8d0(_0x56501a,_0x156ff9,_0x10b675):_0x4fd8d0(_0x10b675))||_0x10b675);return _0xec17c8&&_0x10b675&&On(_0x56501a,_0x156ff9,_0x10b675),_0x10b675;},dt=(_0x4f4dcc,_0x19b851)=>(_0x25eba2,_0x1f5fe3)=>_0x19b851(_0x25eba2,_0x1f5fe3,_0x4f4dcc);exports[_0x3cc0f6(0x47e)]=class{constructor(_0x49fba5,_0x52547f){const _0x4569c5=_0x3cc0f6;this['_configService']=_0x49fba5,this[_0x4569c5(0x1fa)]=_0x52547f;}async['getUnitOnRev'](_0x2713e8,_0x4150dd){const _0x5516e1=_0x3cc0f6;var _0x1e4d9c;const {unitID:_0x3b34db,type:_0x41477e,revision:_0x38a9dc=0x0}=_0x4150dd,_0x5a579f=this['_getSnapshotAPIPrefix']()+'/'+_0x41477e+_0x5516e1(0x3b4)+_0x3b34db+_0x5516e1(0x390)+_0x38a9dc,_0x37d951=(await this['_httpService']['get'](_0x5a579f))[_0x5516e1(0x267)],_0x192552=(_0x1e4d9c=_0x37d951[_0x5516e1(0x200)])==null?void 0x0:_0x1e4d9c['workbook'];if(_0x192552){const _0x5bc3f7=_0x192552==null?void 0x0:_0x192552[_0x5516e1(0x531)],_0x236c17=_[_0x5516e1(0x5a2)][_0x5516e1(0x4e3)](_[_0x5516e1(0x396)](_0x5bc3f7));_0x192552['originalMeta']=_0x236c17,Object['entries'](_0x192552['sheets'])[_0x5516e1(0x300)](([,_0x43c3ac])=>{const _0x1de87f=_0x5516e1,_0x40c8ce=_0x43c3ac[_0x1de87f(0x531)],_0x971f72=_[_0x1de87f(0x5a2)]['encode'](_[_0x1de87f(0x396)](_0x40c8ce));_0x43c3ac[_0x1de87f(0x531)]=_0x971f72;});}return _0x37d951;}async[_0x3cc0f6(0x203)](_0x1c4fe0,_0x31727e){const _0x5cc4e3=_0x3cc0f6,{unitID:_0x370ba4,type:_0x3f9459,blockID:_0x223c2c}=_0x31727e,_0x2983b7=this[_0x5cc4e3(0x380)]()+'/'+_0x3f9459+'/unit/'+_0x370ba4+_0x5cc4e3(0x251)+_0x223c2c;return(await this[_0x5cc4e3(0x1fa)]['get'](_0x2983b7))[_0x5cc4e3(0x267)];}async[_0x3cc0f6(0x24e)](_0x21b6c2,_0x21c21a){const _0x2ad39d=_0x3cc0f6,{unitID:_0xad0784,type:_0x10d533,blockID:_0x5e766c}=_0x21c21a,_0x41eb8b=this[_0x2ad39d(0x380)]()+_0x2ad39d(0x251)+_0x10d533+_0x2ad39d(0x3b4)+_0xad0784+_0x2ad39d(0x251)+_0x5e766c;return(await this[_0x2ad39d(0x1fa)][_0x2ad39d(0x3de)](_0x41eb8b))[_0x2ad39d(0x267)];}async['fetchMissingChangesets'](_0x263785,_0x2314e9){const _0x2ef4cb=_0x3cc0f6,{unitID:_0x1d9e51,type:_0x103422,from:_0x473edd,to:_0x53db36}=_0x2314e9,_0x172f1c=this[_0x2ef4cb(0x380)]()+'/'+_0x103422+'/unit/'+_0x1d9e51+'/fetchmissing?from='+_0x473edd+_0x2ef4cb(0x1cb)+_0x53db36;return(await this[_0x2ef4cb(0x1fa)][_0x2ef4cb(0x3de)](_0x172f1c))[_0x2ef4cb(0x267)];}[_0x3cc0f6(0x488)](){const _0x25f527=_0x3cc0f6;var _0x4e59b0;return(_0x4e59b0=this[_0x25f527(0x5e0)][_0x25f527(0x458)](vt))!=null?_0x4e59b0:this[_0x25f527(0x380)]();}[_0x3cc0f6(0x380)](){const _0x30b974=_0x3cc0f6;var _0x375101,_0x314f04;const _0x5db247=this[_0x30b974(0x5e0)][_0x30b974(0x458)](St),_0x324dbf=this[_0x30b974(0x5e0)]['getConfig']($);return(_0x314f04=(_0x375101=_0x324dbf==null?void 0x0:_0x324dbf[_0x30b974(0x28c)])!=null?_0x375101:_0x5db247)!=null?_0x314f04:Jt;}async[_0x3cc0f6(0x479)](_0xd6a43f,_0x3e6d2c){const _0x6f7935=_0x3cc0f6,_0xa3c973=_0x6f7935(0x207)+_0x3e6d2c[_0x6f7935(0x523)]+_0x6f7935(0x3b4)+_0x3e6d2c['unitID']+'/resources';return(await this[_0x6f7935(0x1fa)]['get'](_0xa3c973,{'params':{'resourceId':JSON[_0x6f7935(0x492)](_0x3e6d2c[_0x6f7935(0x347)])}}))[_0x6f7935(0x267)];}[_0x3cc0f6(0x4e4)](){const _0x594000=_0x3cc0f6;throw new Error(_0x594000(0x464));}[_0x3cc0f6(0x393)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3cc0f6(0x568)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x594b29=_0x3cc0f6;throw new Error(_0x594b29(0x464));}[_0x3cc0f6(0x3e5)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x3cc0f6(0x47e)]=yn([dt(0x0,a[_0x3cc0f6(0x5d3)]),dt(0x1,a['Inject'](U[_0x3cc0f6(0x43f)]))],exports['SnapshotServerOverHTTPService']);var Un=Object[_0x3cc0f6(0x1c6)],Pn=Object[_0x3cc0f6(0x544)],wn=(_0x295ee1,_0x33d5f5,_0x148300,_0x28f3ed)=>{const _0x54c601=_0x3cc0f6;for(var _0x38a33f=_0x28f3ed>0x1?void 0x0:_0x28f3ed?Pn(_0x33d5f5,_0x148300):_0x33d5f5,_0x4499ec=_0x295ee1[_0x54c601(0x411)]-0x1,_0x328931;_0x4499ec>=0x0;_0x4499ec--)(_0x328931=_0x295ee1[_0x4499ec])&&(_0x38a33f=(_0x28f3ed?_0x328931(_0x33d5f5,_0x148300,_0x38a33f):_0x328931(_0x38a33f))||_0x38a33f);return _0x28f3ed&&_0x38a33f&&Un(_0x33d5f5,_0x148300,_0x38a33f),_0x38a33f;},de=(_0x43878a,_0x3b1b93)=>(_0x16aa45,_0xe61f62)=>_0x3b1b93(_0x16aa45,_0xe61f62,_0x43878a);let Fe=class extends a[_0x3cc0f6(0x3f6)]{constructor(_0xe90148,_0x57bc1d,_0x54ead8,_0x55a8f6,_0xda7cf8){const _0x2316be=_0x3cc0f6;super(_0xe90148,_0x57bc1d,_0x54ead8),this[_0x2316be(0x5c3)]=_0x55a8f6,this[_0x2316be(0x518)]=_0xda7cf8;}['transformUndoRedo'](_0x52e41e,_0x2d347c){const _0x2629ac=_0x3cc0f6,_0x3951ef=this[_0x2629ac(0x41c)](_0x52e41e);if(_0x3951ef)try{const _0x1a7f24=this['_transformStack'](_0x3951ef,_0x2d347c);this[_0x2629ac(0x588)](_0x52e41e,_0x1a7f24);}catch(_0x15f947){this[_0x2629ac(0x518)][_0x2629ac(0x2c9)](_0x2629ac(0x4e9),_0x15f947),this[_0x2629ac(0x397)](_0x52e41e);}const _0x350bc8=this[_0x2629ac(0x218)](_0x52e41e);if(_0x350bc8)try{const _0x56c13f=this[_0x2629ac(0x445)](_0x350bc8,_0x2d347c);this['_substituteRedoStack'](_0x52e41e,_0x56c13f);}catch(_0x4128d2){this[_0x2629ac(0x518)]['error'](_0x4128d2),this[_0x2629ac(0x22c)](_0x52e41e);}}[_0x3cc0f6(0x397)](_0xb2a112){const _0x4bac4f=_0x3cc0f6,_0x53b8cb=this[_0x4bac4f(0x41c)](_0xb2a112);_0x53b8cb&&(_0x53b8cb[_0x4bac4f(0x411)]=0x0,this[_0x4bac4f(0x428)]());}[_0x3cc0f6(0x22c)](_0x572ffb){const _0x5c5892=_0x3cc0f6,_0x1f2f72=this[_0x5c5892(0x218)](_0x572ffb);_0x1f2f72&&(_0x1f2f72['length']=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x26c280,_0x24d78d){const _0x5ae3d9=_0x3cc0f6;this[_0x5ae3d9(0x5b0)][_0x5ae3d9(0x420)](_0x26c280,_0x24d78d),this[_0x5ae3d9(0x428)]();}[_0x3cc0f6(0x204)](_0x4015bc,_0x3ffac9){const _0x22629d=_0x3cc0f6;this[_0x22629d(0x357)][_0x22629d(0x420)](_0x4015bc,_0x3ffac9),this['_updateStatus']();}[_0x3cc0f6(0x445)](_0x19dbe0,_0x1ce28e){const _0x76d277=_0x3cc0f6,_0x1ee0fb=[];let _0x23116b=_0x1ce28e,_0x46d0a8=_0x1ce28e;for(let _0x182af7=_0x19dbe0['length']-0x1;_0x182af7>=0x0;_0x182af7--){const {unitID:_0x4d659f,undoMutations:_0x2af8a0,redoMutations:_0x259f9b}=_0x19dbe0[_0x182af7],_0x371f8d=this[_0x76d277(0x5c3)][_0x76d277(0x338)](_0x23116b,_0x2af8a0),_0xc6025b=this[_0x76d277(0x5c3)]['transformMutationsWithChangeset'](_0x46d0a8,_0x259f9b);if(_['isTransformMutationsWithChangesetFailure'](_0x371f8d)||_['isTransformMutationsWithChangesetFailure'](_0xc6025b)){this[_0x76d277(0x518)][_0x76d277(0x2c9)](_0x76d277(0x4e9),_0x76d277(0x524),_0x371f8d,_0xc6025b);break;}_0x23116b=_0x371f8d[_0x76d277(0x5c5)],_0x46d0a8=_0xc6025b[_0x76d277(0x5c5)],_0x1ee0fb[_0x76d277(0x430)]({'unitID':_0x4d659f,'undoMutations':_0x371f8d[_0x76d277(0x201)],'redoMutations':_0xc6025b[_0x76d277(0x201)]});}return _0x1ee0fb[_0x76d277(0x45d)]();}};Fe=wn([de(0x0,a[_0x3cc0f6(0x2f2)]),de(0x1,a[_0x3cc0f6(0x1d6)]),de(0x2,a[_0x3cc0f6(0x58c)]),de(0x3,_[_0x3cc0f6(0x3ba)]),de(0x4,a[_0x3cc0f6(0x24d)])],Fe);class xt extends a[_0x3cc0f6(0x2f0)]{constructor(){const _0x19973e=_0x3cc0f6;super(),u(this,_0x19973e(0x3f9)),this[_0x19973e(0x3f9)]=v[_0x19973e(0x3e4)](window,_0x19973e(0x285))[_0x19973e(0x57c)](v[_0x19973e(0x585)](this[_0x19973e(0x38b)]),v[_0x19973e(0x50b)](0x1),v[_0x19973e(0x1bc)](void 0x0));}[_0x3cc0f6(0x20f)](_0x233140,_0x574d8f,_0x2021e3=!0x1){const _0x14822a=_0x3cc0f6,_0x344591=new URL(window[_0x14822a(0x46b)]['href']);_0x344591['searchParams'][_0x14822a(0x420)](_0x233140,_0x574d8f),_0x2021e3?window[_0x14822a(0x208)][_0x14822a(0x3b9)]('','',_0x344591[_0x14822a(0x39c)]()):window[_0x14822a(0x208)][_0x14822a(0x3bf)]('','',_0x344591[_0x14822a(0x39c)]());}['removeParam'](_0x19ad2e,_0x102f55=!0x1){const _0x4584c9=_0x3cc0f6,_0x523ee4=new URL(window['location'][_0x4584c9(0x2ca)]);_0x523ee4[_0x4584c9(0x2d4)]['delete'](_0x19ad2e),_0x102f55?window[_0x4584c9(0x208)]['replaceState']('','',_0x523ee4['toString']()):window[_0x4584c9(0x208)]['pushState']('','',_0x523ee4[_0x4584c9(0x39c)]());}['getParam'](_0x509102){const _0x1879da=_0x3cc0f6;var _0x46fea7;return(_0x46fea7=new URL(window[_0x1879da(0x46b)][_0x1879da(0x2ca)])[_0x1879da(0x2d4)]['get'](_0x509102))!=null?_0x46fea7:void 0x0;}}var kt=Object['defineProperty'],Nn=Object[_0x3cc0f6(0x544)],Mn=(_0x2731f8,_0xf57c1d,_0x1ad88b)=>_0xf57c1d in _0x2731f8?kt(_0x2731f8,_0xf57c1d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad88b}):_0x2731f8[_0xf57c1d]=_0x1ad88b,An=(_0x15a6f0,_0x4f69b3,_0x2d2a6f,_0x48e898)=>{const _0x4cca84=_0x3cc0f6;for(var _0x1fe013=_0x48e898>0x1?void 0x0:_0x48e898?Nn(_0x4f69b3,_0x2d2a6f):_0x4f69b3,_0x3792a1=_0x15a6f0[_0x4cca84(0x411)]-0x1,_0x38508c;_0x3792a1>=0x0;_0x3792a1--)(_0x38508c=_0x15a6f0[_0x3792a1])&&(_0x1fe013=(_0x48e898?_0x38508c(_0x4f69b3,_0x2d2a6f,_0x1fe013):_0x38508c(_0x1fe013))||_0x1fe013);return _0x48e898&&_0x1fe013&&kt(_0x4f69b3,_0x2d2a6f,_0x1fe013),_0x1fe013;},fe=(_0x59e5fe,_0x52ebc7)=>(_0x2c2bdd,_0x10455c)=>_0x52ebc7(_0x2c2bdd,_0x10455c,_0x59e5fe),Ln=(_0x7944a8,_0x2b49c2,_0x7f74e2)=>Mn(_0x7944a8,_0x2b49c2+'',_0x7f74e2);const $n=_0x3cc0f6(0x42c);exports[_0x3cc0f6(0x3c5)]=class extends a[_0x3cc0f6(0x3e9)]{constructor(_0x34aefd=as,_0x26eca2,_0x8768a4,_0x2acfb8,_0x4d51de){const _0x336746=_0x3cc0f6;super(),this[_0x336746(0x2a8)]=_0x34aefd,this[_0x336746(0x518)]=_0x26eca2,this['_renderManagerService']=_0x8768a4,this[_0x336746(0x5ba)]=_0x2acfb8,this[_0x336746(0x5e0)]=_0x4d51de;const {..._0xf1c74f}=this[_0x336746(0x2a8)];this[_0x336746(0x5e0)][_0x336746(0x321)]($,_0xf1c74f);}[_0x3cc0f6(0x47f)](){const _0x4d8e0f=_0x3cc0f6;this[_0x4d8e0f(0x5ce)](),a[_0x4d8e0f(0x237)](this[_0x4d8e0f(0x5ba)],[[ae],[exports['DataLoaderController']],[Re]]);}['onReady'](){const _0x3f8d4a=_0x3cc0f6;a[_0x3f8d4a(0x237)](this['_injector'],[[Ee]]);}[_0x3cc0f6(0x35e)](){const _0x138b99=_0x3cc0f6;this[_0x138b99(0x375)]();}[_0x3cc0f6(0x5ce)](){const _0x1d80ef=_0x3cc0f6;var _0x887d42,_0x171afb,_0x38574b,_0x4c3842;this[_0x1d80ef(0x5ba)][_0x1d80ef(0x2d0)](a[_0x1d80ef(0x238)])&&this[_0x1d80ef(0x518)][_0x1d80ef(0x2c9)](_0x1d80ef(0x57e),_0x1d80ef(0x530));let _0x453b65=[[a[_0x1d80ef(0x238)],{'useClass':Fe}],[exports[_0x1d80ef(0x3c0)]],[Je],[U[_0x1d80ef(0x43f)]],[Qe,{'useClass':xt}],[Z],[exports[_0x1d80ef(0x1f8)]],[U[_0x1d80ef(0x3d2)]],[pe],[Ce],[Ie],[qe],[be],[Te],[Xe],[Re],[Ke,{'useClass':(_0x171afb=(_0x887d42=this['_config'])==null?void 0x0:_0x887d42[_0x1d80ef(0x3cf)])!=null?_0x171afb:exports[_0x1d80ef(0x322)]}],[U[_0x1d80ef(0x2b4)],{'useClass':U[_0x1d80ef(0x4da)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x1d80ef(0x47e)]}],[a[_0x1d80ef(0x395)],{'useClass':exports['AuthzIoHttpService']}],[j[_0x1d80ef(0x381)],{'useClass':exports[_0x1d80ef(0x506)]}],[exports[_0x1d80ef(0x3fc)]],[exports[_0x1d80ef(0x5d5)]],[exports['DesktopCollaborationStatusDisplayController']],[Ee],[ae]];(_0x38574b=this[_0x1d80ef(0x2a8)])!=null&&_0x38574b[_0x1d80ef(0x2d8)]&&_0x453b65['push']([Oe,{'useClass':xs}]),_0x453b65=a[_0x1d80ef(0x202)](_0x453b65,(_0x4c3842=this[_0x1d80ef(0x2a8)])==null?void 0x0:_0x4c3842[_0x1d80ef(0x30d)]),_0x453b65[_0x1d80ef(0x300)](_0x16376a=>this[_0x1d80ef(0x5ba)][_0x1d80ef(0x44c)](_0x16376a)),this['_initModules']();}[_0x3cc0f6(0x375)](){const _0x16e9e7=_0x3cc0f6;this[_0x16e9e7(0x217)](this[_0x16e9e7(0x1d5)][_0x16e9e7(0x439)](a[_0x16e9e7(0x31e)][_0x16e9e7(0x3c6)],[Ve])),this[_0x16e9e7(0x217)](this[_0x16e9e7(0x1d5)][_0x16e9e7(0x439)](a[_0x16e9e7(0x31e)][_0x16e9e7(0x336)],[We]));}[_0x3cc0f6(0x39f)](){const _0x596fca=_0x3cc0f6;var _0x340927,_0x3aa14b;this[_0x596fca(0x5ba)][_0x596fca(0x3de)](U[_0x596fca(0x43f)])[_0x596fca(0x5e1)]({'priority':0x14,'interceptor':U[_0x596fca(0x3b6)]({'maxParallel':0x6})}),this[_0x596fca(0x5ba)][_0x596fca(0x3de)](Te),(_0x340927=this['_config'])!=null&&_0x340927[_0x596fca(0x283)]||this[_0x596fca(0x5ba)][_0x596fca(0x3de)](exports[_0x596fca(0x1f8)])[_0x596fca(0x270)](),(_0x3aa14b=this[_0x596fca(0x2a8)])!=null&&_0x3aa14b[_0x596fca(0x5d0)]&&this[_0x596fca(0x5ba)][_0x596fca(0x3de)](be),this[_0x596fca(0x5ba)][_0x596fca(0x3de)](exports[_0x596fca(0x3fc)]),this['_injector'][_0x596fca(0x2d0)](exports[_0x596fca(0x2de)])&&this['_injector'][_0x596fca(0x3de)](exports['DesktopCollaborationStatusDisplayController']);}},Ln(exports[_0x3cc0f6(0x3c5)],'pluginName',$n),exports[_0x3cc0f6(0x3c5)]=An([a['DependentOn'](_[_0x3cc0f6(0x4f0)]),fe(0x1,a[_0x3cc0f6(0x24d)]),fe(0x2,O[_0x3cc0f6(0x3c1)]),fe(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),fe(0x4,a[_0x3cc0f6(0x5d3)])],exports['UniverCollaborationClientPlugin']),exports[_0x3cc0f6(0x2e8)]=Ht,exports[_0x3cc0f6(0x4f6)]=Ct,exports[_0x3cc0f6(0x24f)]=mt,exports[_0x3cc0f6(0x25b)]=D,exports[_0x3cc0f6(0x2ab)]=jt,exports[_0x3cc0f6(0x431)]=Xe,exports[_0x3cc0f6(0x21f)]=gt,exports['HEARTBEAT_TIMEOUT_KEY']=Ge,exports[_0x3cc0f6(0x3ff)]=Ke,exports[_0x3cc0f6(0x2eb)]=Qe,exports['LOCAL_CACHE_INTERVAL_KEY']=pt,exports[_0x3cc0f6(0x546)]=Et,exports[_0x3cc0f6(0x4d1)]=It,exports['SEND_CHANGESET_TIMEOUT_KEY']=Zt,exports[_0x3cc0f6(0x2c2)]=St,exports[_0x3cc0f6(0x327)]=vt,exports[_0x3cc0f6(0x3df)]=x,exports[_0x3cc0f6(0x1db)]=Nt,exports[_0x3cc0f6(0x56a)]=xt,exports[_0x3cc0f6(0x277)]=Rt,exports[_0x3cc0f6(0x54a)]=Ot;