@univerjs-pro/collaboration-client 0.4.1-experimental.20241022-507567a → 0.4.1-experimental.20241024-0ebc6ee
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x3a85d7=_0x54ba;(function(_0x1691b2,_0x2c8cf3){const _0x50d5df=_0x54ba,_0x3a26d7=_0x1691b2();while(!![]){try{const _0x31d93f=-parseInt(_0x50d5df(0x3c4))/0x1+-parseInt(_0x50d5df(0x314))/0x2+parseInt(_0x50d5df(0x72))/0x3*(-parseInt(_0x50d5df(0x260))/0x4)+-parseInt(_0x50d5df(0x1f8))/0x5+-parseInt(_0x50d5df(0x227))/0x6*(parseInt(_0x50d5df(0x1ff))/0x7)+-parseInt(_0x50d5df(0xbf))/0x8+parseInt(_0x50d5df(0x25c))/0x9;if(_0x31d93f===_0x2c8cf3)break;else _0x3a26d7['push'](_0x3a26d7['shift']());}catch(_0x2464c4){_0x3a26d7['push'](_0x3a26d7['shift']());}}}(_0x2c91,0xaec86));var Yt=Object['defineProperty'],Kt=(_0x3524ef,_0x316042,_0x3858f1)=>_0x316042 in _0x3524ef?Yt(_0x3524ef,_0x316042,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3858f1}):_0x3524ef[_0x316042]=_0x3858f1,u=(_0x18f3e2,_0x1f7c9e,_0x2f22db)=>Kt(_0x18f3e2,typeof _0x1f7c9e!=_0x3a85d7(0x26c)?_0x1f7c9e+'':_0x1f7c9e,_0x2f22db);Object[_0x3a85d7(0x329)](exports,Symbol[_0x3a85d7(0x1b1)],{'value':_0x3a85d7(0x82)});const a=require('@univerjs/core'),v=require(_0x3a85d7(0x23e)),E=require(_0x3a85d7(0x22b)),q=require(_0x3a85d7(0x178)),A=require(_0x3a85d7(0x7f)),w=require(_0x3a85d7(0x137)),_=require(_0x3a85d7(0x367)),qt=require('@univerjs/telemetry'),N=require(_0x3a85d7(0x3a9)),C=require(_0x3a85d7(0x226)),D=require(_0x3a85d7(0x255)),se=require(_0x3a85d7(0x29c)),j=require(_0x3a85d7(0xe2)),et=require('@univerjs/engine-formula'),te=require(_0x3a85d7(0x38f)),P=require(_0x3a85d7(0x3d4)),Xt=require(_0x3a85d7(0x145)),zt=require(_0x3a85d7(0x397)),St=_0x3a85d7(0x472),Jt=_0x3a85d7(0x330),vt=_0x3a85d7(0x24f),Zt=_0x3a85d7(0x3a4),Qt=0x7d0,mt='COLLAB_WEB_SOCKET_URL',es='ws://127.0.0.1:8000/universer-api/comb/connect',gt='HEARTBEAT_INTERVAL',ts=0x7530,Ge=_0x3a85d7(0x210),ft=0x4e20,ss=0x4e20,It='RETRY_CONNECTING_MAX_COUNT',is=0x3,pt='LOCAL_CACHE_INTERVAL',ns=0x3e8,Ct='COLLAB_SUBMIT_CHANGESET_URL',rs=_0x3a85d7(0x1a1),Et=_0x3a85d7(0x359),os=_0x3a85d7(0x206);var bt=(_0x239a2c=>(_0x239a2c[_0x239a2c['UNDEFINED']=0x0]='UNDEFINED',_0x239a2c[_0x239a2c['OK']=0x1]='OK',_0x239a2c[_0x239a2c[_0x3a85d7(0x236)]=0x2]=_0x3a85d7(0x236),_0x239a2c[_0x239a2c[_0x3a85d7(0x44b)]=0x3]=_0x3a85d7(0x44b),_0x239a2c[_0x239a2c[_0x3a85d7(0x2ee)]=0x4]=_0x3a85d7(0x2ee),_0x239a2c[_0x239a2c[_0x3a85d7(0xdc)]=0x5]=_0x3a85d7(0xdc),_0x239a2c[_0x239a2c[_0x3a85d7(0x2cd)]=0x6]='ALREADY_EXISTS',_0x239a2c[_0x239a2c['INVALID_ARGUMENT']=0x7]=_0x3a85d7(0x1b7),_0x239a2c[_0x239a2c[_0x3a85d7(0x1dc)]=0x8]=_0x3a85d7(0x1dc),_0x239a2c[_0x239a2c['COMPLETION_FINISHED']=0x9]=_0x3a85d7(0xf2),_0x239a2c[_0x239a2c[_0x3a85d7(0x172)]=0x1389]=_0x3a85d7(0x172),_0x239a2c[_0x239a2c[_0x3a85d7(0x272)]=0x1771]=_0x3a85d7(0x272),_0x239a2c[_0x239a2c[_0x3a85d7(0x1cf)]=0x1772]=_0x3a85d7(0x1cf),_0x239a2c[_0x239a2c[_0x3a85d7(0x2f6)]=0x1773]=_0x3a85d7(0x2f6),_0x239a2c[_0x239a2c['APPLY_REJECT']=0x1b59]=_0x3a85d7(0x3ec),_0x239a2c[_0x239a2c[_0x3a85d7(0x3f1)]=0x1b5a]=_0x3a85d7(0x3f1),_0x239a2c[_0x239a2c[_0x3a85d7(0x153)]=0x1b5b]=_0x3a85d7(0x153),_0x239a2c[_0x239a2c[_0x3a85d7(0x1b8)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x239a2c[_0x239a2c[_0x3a85d7(0x13b)]=0x1b5d]='APPLY_DUPLICATED',_0x239a2c[_0x239a2c['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3a85d7(0x3b6),_0x239a2c[_0x239a2c[_0x3a85d7(0x1a9)]=0x2329]=_0x3a85d7(0x1a9),_0x239a2c[_0x239a2c[_0x3a85d7(0x2b5)]=0x232a]=_0x3a85d7(0x2b5),_0x239a2c[_0x239a2c[_0x3a85d7(0x2eb)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x239a2c[_0x239a2c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3a85d7(0xa1),_0x239a2c[_0x239a2c[_0x3a85d7(0x2e1)]=0x232d]=_0x3a85d7(0x2e1),_0x239a2c[_0x239a2c['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x239a2c[_0x239a2c[_0x3a85d7(0x25d)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x239a2c[_0x239a2c[_0x3a85d7(0x316)]=0x2713]=_0x3a85d7(0x316),_0x239a2c[_0x239a2c[_0x3a85d7(0x402)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x239a2c[_0x239a2c[_0x3a85d7(0x21b)]=-0x1]=_0x3a85d7(0x21b),_0x239a2c))(bt||{}),$=(_0x588fbb=>(_0x588fbb[_0x588fbb[_0x3a85d7(0x3f2)]=0x0]='UNIVER_UNKNOWN',_0x588fbb[_0x588fbb['UNIVER_DOC']=0x1]=_0x3a85d7(0x117),_0x588fbb[_0x588fbb[_0x3a85d7(0x35c)]=0x2]=_0x3a85d7(0x35c),_0x588fbb[_0x588fbb[_0x3a85d7(0xc6)]=0x3]=_0x3a85d7(0xc6),_0x588fbb[_0x588fbb[_0x3a85d7(0x24b)]=0x4]=_0x3a85d7(0x24b),_0x588fbb[_0x588fbb[_0x3a85d7(0x21b)]=-0x1]='UNRECOGNIZED',_0x588fbb))($||{}),b=(_0x39bcca=>(_0x39bcca[_0x39bcca[_0x3a85d7(0x38e)]=0x0]=_0x3a85d7(0x38e),_0x39bcca[_0x39bcca['HELLO']=0x1]='HELLO',_0x39bcca[_0x39bcca[_0x3a85d7(0x200)]=0x2]=_0x3a85d7(0x200),_0x39bcca[_0x39bcca[_0x3a85d7(0x351)]=0x3]='LEAVE',_0x39bcca[_0x39bcca[_0x3a85d7(0x91)]=0x4]=_0x3a85d7(0x91),_0x39bcca[_0x39bcca[_0x3a85d7(0xe3)]=0x5]=_0x3a85d7(0xe3),_0x39bcca[_0x39bcca[_0x3a85d7(0x495)]=0x6]='RECV',_0x39bcca[_0x39bcca[_0x3a85d7(0x21b)]=-0x1]='UNRECOGNIZED',_0x39bcca))(b||{}),Ye=(_0x408397=>(_0x408397[_0x408397['UNKNOWN_CODE']=0x0]=_0x3a85d7(0x410),_0x408397[_0x408397['OK']=0x1]='OK',_0x408397[_0x408397[_0x3a85d7(0x2ce)]=0x2]='FAIL',_0x408397[_0x408397[_0x3a85d7(0x21b)]=-0x1]=_0x3a85d7(0x21b),_0x408397))(Ye||{}),Tt=(_0x430f64=>(_0x430f64[_0x430f64[_0x3a85d7(0x234)]=0x0]=_0x3a85d7(0x234),_0x430f64[_0x430f64[_0x3a85d7(0x1dd)]=0x1]='HttpImport',_0x430f64[_0x430f64[_0x3a85d7(0x11d)]=0x2]=_0x3a85d7(0x11d),_0x430f64[_0x430f64['UnitEmbedded']=0x3]=_0x3a85d7(0x36e),_0x430f64[_0x430f64[_0x3a85d7(0xe5)]=0x4]=_0x3a85d7(0xe5),_0x430f64[_0x430f64['UNRECOGNIZED']=-0x1]=_0x3a85d7(0x21b),_0x430f64))(Tt||{});const L='collaboration-client.config',as={};function Rt(_0x1d2d14){const _0x4cc232=_0x3a85d7;var _0x4be7d9,_0xaf2824,_0x46f928,_0x543195,_0x38b6a7;const _0x4b8f7d=_0x1d2d14[_0x4cc232(0xd9)],_0x2caa62=JSON['parse'](_0x4b8f7d);switch(_0x2caa62[_0x4cc232(0x2e9)]){case b[_0x4cc232(0xe3)]:case b['HELLO']:{const _0x414c06=_0x2caa62[_0x4cc232(0x1d5)];return{..._0x2caa62,'data':_0x414c06,'cmd':_0x2caa62[_0x4cc232(0x2e9)]};}case b[_0x4cc232(0x200)]:{const _0x53a1c9=_0x2caa62[_0x4cc232(0x2b7)];return{..._0x2caa62,'data':_0x53a1c9,'cmd':_0x2caa62[_0x4cc232(0x2e9)]};}case b[_0x4cc232(0x495)]:{const _0x561074=_0x2caa62[_0x4cc232(0x207)];switch(_0x561074[_0x4cc232(0x121)]){case _['CollaborationEvent'][_0x4cc232(0x1ce)]:return{..._0x2caa62,'data':{..._0x561074,'data':(_0x4be7d9=_0x561074[_0x4cc232(0x3ad)])==null?void 0x0:_0x4be7d9['cs']},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _['CollaborationEvent']['CHANGESET_ACK']:return{..._0x2caa62,'data':{..._0x561074,'data':(_0xaf2824=_0x561074[_0x4cc232(0x3a1)])==null?void 0x0:_0xaf2824['cs']},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _[_0x4cc232(0x14f)][_0x4cc232(0x1c4)]:return{..._0x2caa62,'data':{..._0x561074,'data':(_0x46f928=_0x561074[_0x4cc232(0x400)])==null?void 0x0:_0x46f928['cs']},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _[_0x4cc232(0x14f)]['CHANGESET_REJ']:return{..._0x2caa62,'data':{..._0x561074,'data':(_0x543195=_0x561074[_0x4cc232(0x166)])==null?void 0x0:_0x543195['cs']},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _['CollaborationEvent'][_0x4cc232(0x3f9)]:return{..._0x2caa62,'data':{..._0x561074,'data':(_0x38b6a7=_0x561074[_0x4cc232(0x2ad)])==null?void 0x0:_0x38b6a7['cs']},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _[_0x4cc232(0x14f)][_0x4cc232(0x464)]:return{..._0x2caa62,'data':{..._0x561074,'data':_0x561074[_0x4cc232(0x3e8)]},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _[_0x4cc232(0x14f)][_0x4cc232(0x460)]:return{..._0x2caa62,'data':{..._0x561074,'data':_0x561074['joinEvent']},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _['CollaborationEvent'][_0x4cc232(0x122)]:return{..._0x2caa62,'data':{..._0x561074,'data':_0x561074[_0x4cc232(0x33a)]},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x2caa62,'data':{..._0x561074,'data':_0x561074[_0x4cc232(0x23a)]},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _[_0x4cc232(0x14f)][_0x4cc232(0x478)]:case _[_0x4cc232(0x14f)][_0x4cc232(0x428)]:return{..._0x2caa62,'data':{..._0x561074,'data':_0x561074[_0x4cc232(0xf6)]},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _['CollaborationEvent'][_0x4cc232(0x45c)]:return{..._0x2caa62,'data':{..._0x561074,'data':_0x561074[_0x4cc232(0x23a)]},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _[_0x4cc232(0x14f)][_0x4cc232(0x22a)]:return{..._0x2caa62,'data':_0x561074,'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _['CollaborationEvent'][_0x4cc232(0xd2)]:return{..._0x2caa62,'data':{..._0x561074,'data':_0x561074[_0x4cc232(0x36b)]},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};case _[_0x4cc232(0x14f)][_0x4cc232(0x461)]:return{..._0x2caa62,'data':{..._0x561074,'data':_0x561074['updatePermissionObjEvent']},'cmd':_0x2caa62['cmd']};case _[_0x4cc232(0x14f)][_0x4cc232(0x23b)]:return{..._0x2caa62,'data':{..._0x561074,'data':_0x561074['shouldCloseConn']},'cmd':_0x2caa62[_0x4cc232(0x2e9)]};default:return _0x2caa62;}}default:return _0x2caa62;}}function Ot(_0x4b11a7){const _0x3e0b2b=_0x3a85d7;switch(_0x4b11a7['cmd']){case b['HEARTBEAT']:case b[_0x3e0b2b(0xcd)]:return JSON['stringify']({'cmd':_0x4b11a7[_0x3e0b2b(0x2e9)],'routeKey':_0x4b11a7[_0x3e0b2b(0x46e)]});case b[_0x3e0b2b(0x91)]:{let _0xc05dae;switch(_0x4b11a7[_0x3e0b2b(0xd9)][_0x3e0b2b(0x121)]){case _[_0x3e0b2b(0x14f)]['UPDATE_CURSOR']:{_0xc05dae={'eventID':_[_0x3e0b2b(0x14f)]['UPDATE_CURSOR'],'updateCursorEvent':_0x4b11a7['data']['data']};break;}case _[_0x3e0b2b(0x14f)][_0x3e0b2b(0x122)]:{_0xc05dae={'eventID':_['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0x4b11a7[_0x3e0b2b(0xd9)][_0x3e0b2b(0xd9)]};break;}case _['CollaborationEvent'][_0x3e0b2b(0x460)]:{_0xc05dae={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x4b11a7['data'][_0x3e0b2b(0xd9)]};break;}case _[_0x3e0b2b(0x14f)][_0x3e0b2b(0x3af)]:{_0xc05dae={'eventID':_[_0x3e0b2b(0x14f)][_0x3e0b2b(0x3af)],'liveShareNewHost':_0x4b11a7[_0x3e0b2b(0xd9)]['data']};break;}case _['CollaborationEvent'][_0x3e0b2b(0x428)]:{_0xc05dae={'eventID':_[_0x3e0b2b(0x14f)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x4b11a7[_0x3e0b2b(0xd9)]['data']};break;}case _[_0x3e0b2b(0x14f)]['LIVESHARE_TERMINATE']:{_0xc05dae={'eventID':_['CollaborationEvent'][_0x3e0b2b(0x45c)],'liveShareTerminate':_0x4b11a7[_0x3e0b2b(0xd9)]['data']};break;}case _[_0x3e0b2b(0x14f)][_0x3e0b2b(0x1de)]:{_0xc05dae={'eventID':_[_0x3e0b2b(0x14f)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x4b11a7['data']['data']};break;}case _[_0x3e0b2b(0x14f)][_0x3e0b2b(0x478)]:{_0xc05dae={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0xc05dae={'eventID':_0x4b11a7[_0x3e0b2b(0xd9)][_0x3e0b2b(0x121)]};}return JSON[_0x3e0b2b(0x32a)]({'cmd':_0x4b11a7['cmd'],'routeKey':_0x4b11a7[_0x3e0b2b(0x46e)],'collaMsg':_0xc05dae});}case b[_0x3e0b2b(0x200)]:return JSON[_0x3e0b2b(0x32a)]({'cmd':_0x4b11a7[_0x3e0b2b(0x2e9)],'routeKey':_0x4b11a7[_0x3e0b2b(0x46e)],'joinReq':_0x4b11a7[_0x3e0b2b(0xd9)]});case b[_0x3e0b2b(0x351)]:return JSON['stringify']({'cmd':_0x4b11a7['cmd'],'routeKey':_0x4b11a7[_0x3e0b2b(0x46e)],'leaveReq':_0x4b11a7['data']});default:throw new Error(_0x3e0b2b(0x3ca));}}var cs=Object[_0x3a85d7(0x329)],ls=Object[_0x3a85d7(0x43d)],hs=(_0x238126,_0x1e849d,_0x50e3e0,_0x242178)=>{const _0x24ccb6=_0x3a85d7;for(var _0x31ce63=_0x242178>0x1?void 0x0:_0x242178?ls(_0x1e849d,_0x50e3e0):_0x1e849d,_0x10fe5c=_0x238126[_0x24ccb6(0x16a)]-0x1,_0x108f11;_0x10fe5c>=0x0;_0x10fe5c--)(_0x108f11=_0x238126[_0x10fe5c])&&(_0x31ce63=(_0x242178?_0x108f11(_0x1e849d,_0x50e3e0,_0x31ce63):_0x108f11(_0x31ce63))||_0x31ce63);return _0x242178&&_0x31ce63&&cs(_0x1e849d,_0x50e3e0,_0x31ce63),_0x31ce63;},ae=(_0x7ec6d2,_0x14eacb)=>(_0x10ee7a,_0x322b07)=>_0x14eacb(_0x10ee7a,_0x322b07,_0x7ec6d2);const Ke=a[_0x3a85d7(0x231)](_0x3a85d7(0x326));function _s(_0x434858,_0x54dc8f,_0x4868c5){const _0x469c82=_0x3a85d7;return _0x434858+'/'+_0x54dc8f+'/unit/'+_0x4868c5+_0x469c82(0xb1);}exports[_0x3a85d7(0x10f)]=class extends a[_0x3a85d7(0x3ce)]{constructor(_0x4b85df,_0x1ddf73,_0x5a4eaf,_0x13e13e,_0x3ee598){const _0x330d81=_0x3a85d7;super(),this[_0x330d81(0x382)]=_0x4b85df,this['_ws']=_0x1ddf73,this[_0x330d81(0x365)]=_0x5a4eaf,this[_0x330d81(0x174)]=_0x13e13e,this[_0x330d81(0x159)]=_0x3ee598;}[_0x3a85d7(0x93)](_0x2b1bee){const _0x4d5f38=_0x3a85d7,_0x2af0fe=this[_0x4d5f38(0x12a)][_0x4d5f38(0x93)](_0x2b1bee);if(!_0x2af0fe)throw new Error(_0x4d5f38(0x440));const _0x50aed2=new a[(_0x4d5f38(0x3f6))](),_0x4bd048=new v['Subject']();_0x50aed2[_0x4d5f38(0x1b9)](_0x2af0fe['close$']['subscribe'](_0x4b8b91=>_0x4bd048[_0x4d5f38(0x294)](_0x4b8b91))),_0x50aed2[_0x4d5f38(0x1b9)](a[_0x4d5f38(0x3a6)](()=>_0x4bd048[_0x4d5f38(0x131)]()));const _0x29f87c=new v[(_0x4d5f38(0x33c))]();_0x50aed2[_0x4d5f38(0x1b9)](_0x2af0fe['error$'][_0x4d5f38(0xc4)](_0x673815=>_0x29f87c[_0x4d5f38(0x294)](_0x673815))),_0x50aed2[_0x4d5f38(0x1b9)](a['toDisposable'](()=>_0x29f87c[_0x4d5f38(0x131)]()));const _0x6db4bb=new v[(_0x4d5f38(0x33c))]();_0x50aed2[_0x4d5f38(0x1b9)](_0x2af0fe[_0x4d5f38(0xb3)][_0x4d5f38(0xc4)](_0xca77cb=>{const _0x4f4efb=_0x4d5f38,_0x119abb=Rt(_0xca77cb);_0x6db4bb[_0x4f4efb(0x294)](_0x119abb);})),_0x50aed2[_0x4d5f38(0x1b9)](a[_0x4d5f38(0x3a6)](()=>_0x6db4bb[_0x4d5f38(0x131)]()));let _0x124fda;const _0x50b6da=()=>{const _0x31e555=_0x4d5f38;_0x29f87c[_0x31e555(0x294)](new Event('connection\x20error')),_0x4bd048[_0x31e555(0x294)](new CloseEvent(_0x31e555(0x21f))),_0x124fda[_0x31e555(0x11a)]();};return _0x124fda={'memberID':'','close$':_0x4bd048[_0x4d5f38(0x413)](),'error$':_0x29f87c[_0x4d5f38(0x413)](),'open$':_0x2af0fe[_0x4d5f38(0x292)],'message$':_0x6db4bb[_0x4d5f38(0x413)](),'send':_0x1014a9=>{const _0x2456e8=_0x4d5f38;if(_0x1014a9['cmd']===b[_0x2456e8(0x91)]){if(_0x1014a9[_0x2456e8(0xd9)][_0x2456e8(0x121)]===_[_0x2456e8(0x14f)][_0x2456e8(0x106)]){this[_0x2456e8(0x270)](_0x124fda,_0x1014a9[_0x2456e8(0xd9)])[_0x2456e8(0x90)](_0x15a9ba=>{const _0x233829=_0x2456e8;this['_logService'][_0x233829(0xae)](_0x15a9ba),_0x50b6da();});return;}if(_0x1014a9[_0x2456e8(0xd9)][_0x2456e8(0x121)]===_['CollaborationEvent'][_0x2456e8(0x254)]){const _0xada1af=_0x1014a9['data'];this[_0x2456e8(0x318)](_0xada1af)[_0x2456e8(0x31a)](_0xa40c7c=>{const _0x2ae10a=_0x2456e8;_0x6db4bb[_0x2ae10a(0x294)]({'cmd':b['RECV'],'code':Ye['OK'],'routeKey':_0xada1af[_0x2ae10a(0xd9)][_0x2ae10a(0x32c)],'routeType':'','data':{'eventID':_[_0x2ae10a(0x14f)][_0x2ae10a(0x11b)],'data':{'changesets':_0xa40c7c}}});})[_0x2456e8(0x90)](_0xf574e6=>{const _0x5f19ed=_0x2456e8;this[_0x5f19ed(0x174)][_0x5f19ed(0xae)](_0xf574e6),_0x50b6da();});return;}}_0x2af0fe[_0x2456e8(0x450)](Ot(_0x1014a9));},'close':()=>{const _0x4dc8f8=_0x4d5f38;_0x2af0fe['close'](),_0x50aed2[_0x4dc8f8(0xad)]();}},_0x124fda;}async['_submitChangeset'](_0x129e86,_0x5b6b31){const _0xba6d58=_0x3a85d7;var _0x2aab33,_0x4873c9;const {unitType:_0x18c078,unitID:_0x48a76e,changeset:_0xd812c2}=_0x5b6b31[_0xba6d58(0xd9)],_0x3f55ba={'unitID':_0x48a76e,'memberID':_0x129e86[_0xba6d58(0x75)],'type':_0x18c078,'changeset':_[_0xba6d58(0x29b)](_0xd812c2)},_0xa243e4=this[_0xba6d58(0x365)][_0xba6d58(0x45d)](Ct),_0x1d94bb=this['_configService'][_0xba6d58(0x45d)](L),_0x5c0d92=_s((_0x4873c9=(_0x2aab33=_0x1d94bb==null?void 0x0:_0x1d94bb['collabSubmitChangesetUrl'])!=null?_0x2aab33:_0xa243e4)!=null?_0x4873c9:rs,_0x18c078,_0x48a76e);try{await this[_0xba6d58(0x382)][_0xba6d58(0xc1)](_0x5c0d92,{'body':_0x3f55ba});}catch(_0x20edda){throw this[_0xba6d58(0x174)][_0xba6d58(0xae)](_0xba6d58(0x3e5),'submit\x20changeset\x20error!'),_0x20edda;}}async['_fetchMissChangesets'](_0x1d8b97){const _0x1e0819=_0x3a85d7,{unitID:_0x51bdf7,from:_0x2ecf11,to:_0x20c63a,unitType:_0x82982d}=_0x1d8b97[_0x1e0819(0xd9)];return(await this[_0x1e0819(0x159)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x51bdf7,'type':_0x82982d,'from':_0x2ecf11,'to':_0x20c63a}))[_0x1e0819(0x199)];}},exports[_0x3a85d7(0x10f)]=hs([ae(0x0,a['Inject'](w[_0x3a85d7(0x18e)])),ae(0x1,a[_0x3a85d7(0x1e4)](w[_0x3a85d7(0x24c)])),ae(0x2,a[_0x3a85d7(0x3ba)]),ae(0x3,a[_0x3a85d7(0x43e)]),ae(0x4,_[_0x3a85d7(0x380)])],exports['CollaborationSocketService']);const us=_0x3a85d7(0x2c5);function ds(_0x11228c){const _0x1bc0b1=_0x3a85d7;return JSON[_0x1bc0b1(0x32a)](_0x11228c)['length'];}class qe{constructor(){const _0x580845=_0x3a85d7;u(this,'_commentUpdate$',new v['Subject']()),u(this,_0x580845(0x8d),this[_0x580845(0x14e)]['asObservable']());}[_0x3a85d7(0x18a)](_0xdf05c4){const _0x17ecb3=_0x3a85d7;this[_0x17ecb3(0x14e)][_0x17ecb3(0x294)](_0xdf05c4);}}var Ss=Object[_0x3a85d7(0x329)],vs=Object[_0x3a85d7(0x43d)],ms=(_0x3fade2,_0x39134c,_0x48bb8a,_0x2a6272)=>{const _0x545917=_0x3a85d7;for(var _0x2bf41e=_0x2a6272>0x1?void 0x0:_0x2a6272?vs(_0x39134c,_0x48bb8a):_0x39134c,_0x5f30ef=_0x3fade2[_0x545917(0x16a)]-0x1,_0x4a20f9;_0x5f30ef>=0x0;_0x5f30ef--)(_0x4a20f9=_0x3fade2[_0x5f30ef])&&(_0x2bf41e=(_0x2a6272?_0x4a20f9(_0x39134c,_0x48bb8a,_0x2bf41e):_0x4a20f9(_0x2bf41e))||_0x2bf41e);return _0x2a6272&&_0x2bf41e&&Ss(_0x39134c,_0x48bb8a,_0x2bf41e),_0x2bf41e;},tt=(_0x298460,_0x42323b)=>(_0x25ab1c,_0x1f3cb6)=>_0x42323b(_0x25ab1c,_0x1f3cb6,_0x298460);let X=class extends a[_0x3a85d7(0x3ce)]{constructor(_0xc25ed3,_0x2f4314){const _0x587e0e=_0x3a85d7;super(),u(this,_0x587e0e(0x34d),new Map()),(this[_0x587e0e(0x261)]=_0xc25ed3,this[_0x587e0e(0x15e)]=_0x2f4314,this[_0x587e0e(0x208)](a['toDisposable'](v[_0x587e0e(0x1cd)](this[_0x587e0e(0x261)][_0x587e0e(0xe4)](a[_0x587e0e(0x355)][_0x587e0e(0x35c)])['pipe'](E[_0x587e0e(0xcf)](_0xf12d80=>_0xf12d80[_0x587e0e(0x311)]())),this[_0x587e0e(0x261)][_0x587e0e(0xe4)](a[_0x587e0e(0x355)][_0x587e0e(0x117)])['pipe'](E[_0x587e0e(0xcf)](_0x1b898c=>_0x1b898c[_0x587e0e(0x311)]())),this[_0x587e0e(0x261)][_0x587e0e(0xe4)](a[_0x587e0e(0x355)][_0x587e0e(0xc6)])[_0x587e0e(0x3d0)](E[_0x587e0e(0xcf)](_0x195403=>_0x195403[_0x587e0e(0x311)]())))[_0x587e0e(0xc4)](_0x58f134=>this[_0x587e0e(0x1f9)](_0x58f134)))));}['setCurrentUser'](_0x1e627d){const _0x4f8c41=_0x3a85d7;this[_0x4f8c41(0x15e)][_0x4f8c41(0x452)](_0x1e627d);}[_0x3a85d7(0x7c)](){const _0x3fd2c6=_0x3a85d7;return this[_0x3fd2c6(0x15e)]['getCurrentUser']();}['updateMember'](_0x5834fd,_0x5b1e8c){const _0x4d7932=_0x3a85d7;let _0x38204a=this[_0x4d7932(0x34d)][_0x4d7932(0xca)](_0x5834fd);_0x38204a||(_0x38204a=new gs(),this['_roomMembers'][_0x4d7932(0x225)](_0x5834fd,_0x38204a)),_0x38204a[_0x4d7932(0x371)](_0x5b1e8c);}['removeMember'](_0x4bc151,_0xa9f767){const _0x5bee31=_0x3a85d7,_0x372be4=this['_roomMembers']['get'](_0x4bc151);_0x372be4&&_0x372be4[_0x5bee31(0xaa)](_0xa9f767);}['getRoom'](_0xe34b29){const _0xe9a327=_0x3a85d7;return this[_0xe9a327(0x34d)]['get'](_0xe34b29);}['getMember'](_0x5b475a,_0x4f075b){const _0xbb0e56=_0x3a85d7,_0xc6357=this['_roomMembers'][_0xbb0e56(0xca)](_0x5b475a);if(_0xc6357)return _0xc6357[_0xbb0e56(0x147)](_0x4f075b);}[_0x3a85d7(0x1f9)](_0x3cd8ce){const _0x119f1f=_0x3a85d7,_0x5bf42f=this['_roomMembers']['get'](_0x3cd8ce);_0x5bf42f&&(_0x5bf42f[_0x119f1f(0xad)](),this[_0x119f1f(0x34d)]['delete'](_0x3cd8ce));}[_0x3a85d7(0xad)](){const _0x101347=_0x3a85d7;this[_0x101347(0x34d)][_0x101347(0x189)](_0x339503=>_0x339503['dispose']()),this[_0x101347(0x34d)][_0x101347(0x1f0)]();}};X=ms([tt(0x0,a[_0x3a85d7(0x9e)]),tt(0x1,a[_0x3a85d7(0x1e4)](a['UserManagerService']))],X);class gs extends a[_0x3a85d7(0x3ce)]{constructor(){const _0x1d0308=_0x3a85d7;super(...arguments),u(this,_0x1d0308(0x22d),new Map());}[_0x3a85d7(0xad)](){const _0x2fc8ee=_0x3a85d7;this[_0x2fc8ee(0x22d)][_0x2fc8ee(0x1f0)]();}['updateMember'](_0x4e8752){const _0xa66915=_0x3a85d7;this[_0xa66915(0x22d)][_0xa66915(0x225)](_0x4e8752['memberID'],_0x4e8752);}['removeMember'](_0x1cc186){this['_members']['delete'](_0x1cc186);}['getMember'](_0x1483a0){const _0xf0d75d=_0x3a85d7;return this[_0xf0d75d(0x22d)][_0xf0d75d(0xca)](_0x1483a0);}}var fs=Object[_0x3a85d7(0x329)],Is=Object[_0x3a85d7(0x43d)],ps=(_0x1f67e6,_0xcd7508,_0x2ddc51,_0xe819ff)=>{const _0xa54b4b=_0x3a85d7;for(var _0x10aca6=_0xe819ff>0x1?void 0x0:_0xe819ff?Is(_0xcd7508,_0x2ddc51):_0xcd7508,_0x433c19=_0x1f67e6[_0xa54b4b(0x16a)]-0x1,_0x47d494;_0x433c19>=0x0;_0x433c19--)(_0x47d494=_0x1f67e6[_0x433c19])&&(_0x10aca6=(_0xe819ff?_0x47d494(_0xcd7508,_0x2ddc51,_0x10aca6):_0x47d494(_0x10aca6))||_0x10aca6);return _0xe819ff&&_0x10aca6&&fs(_0xcd7508,_0x2ddc51,_0x10aca6),_0x10aca6;},V=(_0x2fc043,_0x429415)=>(_0x4606f4,_0x32505a)=>_0x429415(_0x4606f4,_0x32505a,_0x2fc043),H=(_0x16d853=>(_0x16d853[_0x16d853['IDLE']=0x0]=_0x3a85d7(0x3b7),_0x16d853[_0x16d853[_0x3a85d7(0x28b)]=0x1]=_0x3a85d7(0x28b),_0x16d853[_0x16d853['OFFLINE']=0x2]=_0x3a85d7(0x235),_0x16d853[_0x16d853['ONLINE']=0x3]=_0x3a85d7(0x445),_0x16d853))(H||{});exports[_0x3a85d7(0xbd)]=class extends a['RxDisposable']{constructor(_0x36eab8,_0xcebd02,_0x1f1f68,_0x461aa4,_0x2a86cd,_0x4340ed,_0x5a0e20,_0x382473,_0x3794ee,_0x2a196f){const _0x2b9100=_0x3a85d7;super(),u(this,_0x2b9100(0x458),new v[(_0x2b9100(0x2a3))](0x0)),u(this,_0x2b9100(0x224),this['_sessionStatus$'][_0x2b9100(0x413)]()),u(this,_0x2b9100(0xa8),new v[(_0x2b9100(0x33c))]()),u(this,'event$',this[_0x2b9100(0xa8)]['asObservable']()),u(this,'_socket'),u(this,_0x2b9100(0x3ab)),u(this,'_collaborationTimeoutTimer'),u(this,_0x2b9100(0x414),!0x1),u(this,_0x2b9100(0x3e1),null),(this[_0x2b9100(0x476)]=_0x36eab8,this[_0x2b9100(0x174)]=_0x1f1f68,this['_beforeCloseService']=_0x461aa4,this[_0x2b9100(0x12b)]=_0x2a86cd,this[_0x2b9100(0x365)]=_0x4340ed,this[_0x2b9100(0x43f)]=_0x5a0e20,this['_memberService']=_0x382473,this[_0x2b9100(0x1af)]=_0x3794ee,this[_0x2b9100(0x405)]=_0x2a196f,this[_0x2b9100(0x414)]=!!this[_0x2b9100(0x405)],_0xcebd02[_0x2b9100(0x3d0)](v[_0x2b9100(0x1b4)](this['dispose$']))['subscribe'](_0x2e126f=>{const _0x4319a4=_0x2b9100;var _0x5eb561;typeof _0x2e126f>'u'||(this[_0x4319a4(0x2c0)]=_0x2e126f,_0x2e126f?(this[_0x4319a4(0xea)](_0x2e126f),this['_socketMessageSubscription']=_0x2e126f['message$'][_0x4319a4(0xc4)](_0x3606e3=>{const _0x41ca7d=_0x4319a4;_0x3606e3[_0x41ca7d(0x46e)]===this[_0x41ca7d(0x476)]&&this[_0x41ca7d(0xcb)](_0x3606e3);})):(this[_0x4319a4(0x1c7)](),this[_0x4319a4(0x458)][_0x4319a4(0x294)](0x2),(_0x5eb561=this[_0x4319a4(0x3ab)])==null||_0x5eb561[_0x4319a4(0x183)](),this[_0x4319a4(0x3ab)]=null));}),this[_0x2b9100(0x208)](this[_0x2b9100(0x102)]['registerOnClose'](()=>{const _0x2408d5=_0x2b9100;var _0x27f2a8;(_0x27f2a8=this[_0x2408d5(0x2c0)])==null||_0x27f2a8[_0x2408d5(0x450)]({'cmd':b[_0x2408d5(0x351)],'data':{'roomID':this[_0x2408d5(0x476)]}});})));}get['sessionStatus'](){const _0xeba0c5=_0x3a85d7;return this[_0xeba0c5(0x458)]['getValue']();}[_0x3a85d7(0x435)](){const _0x2f5b82=_0x3a85d7;var _0x373ec1,_0x45563a;return(_0x45563a=(_0x373ec1=this[_0x2f5b82(0x2c0)])==null?void 0x0:_0x373ec1[_0x2f5b82(0x75)])!=null?_0x45563a:null;}[_0x3a85d7(0xad)](){const _0x404d26=_0x3a85d7;super['dispose'](),this[_0x404d26(0x232)]['next'](),this[_0x404d26(0x232)][_0x404d26(0x131)]();}[_0x3a85d7(0x11a)](){const _0x23b3db=_0x3a85d7;var _0x14954f,_0xbb5cb9;this['_throwTelemetryCollaborationNewChangeset'](),(_0x14954f=this[_0x23b3db(0x2c0)])==null||_0x14954f[_0x23b3db(0x450)]({'cmd':b[_0x23b3db(0x351)],'data':{'roomID':this[_0x23b3db(0x476)]}}),(_0xbb5cb9=this[_0x23b3db(0x2c0)])==null||_0xbb5cb9[_0x23b3db(0x11a)](),this[_0x23b3db(0xa8)][_0x23b3db(0x131)](),this[_0x23b3db(0x458)]['complete'](),this[_0x23b3db(0xad)]();}[_0x3a85d7(0xcb)](_0x515696){const _0x1996f9=_0x3a85d7;_0x515696[_0x1996f9(0x2e9)]===b[_0x1996f9(0x200)]?this[_0x1996f9(0x332)](_0x515696):_0x515696['cmd']===b[_0x1996f9(0x495)]&&this['_onRecvEvent'](_0x515696);}[_0x3a85d7(0xea)](_0xf5795){const _0x355550=_0x3a85d7;this['_sessionStatus$']['next'](0x1),_0xf5795['send']({'cmd':b['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x355550(0x476)]}]}});}[_0x3a85d7(0x332)](_0x1a83fa){const _0x2f8a1d=_0x3a85d7;var _0x3ee7c7;if(_0x1a83fa['code']===Ye['FAIL']){this[_0x2f8a1d(0x12b)]['show']({'type':q[_0x2f8a1d(0x37a)][_0x2f8a1d(0x3bc)],'content':this[_0x2f8a1d(0x43f)]['t'](_0x2f8a1d(0xff))}),this[_0x2f8a1d(0x458)][_0x2f8a1d(0x294)](0x2);return;}this[_0x2f8a1d(0x458)][_0x2f8a1d(0x294)](0x3);const _0x482b7e=(_0x3ee7c7=_0x1a83fa[_0x2f8a1d(0xd9)][_0x2f8a1d(0x3fe)][this[_0x2f8a1d(0x476)]])==null?void 0x0:_0x3ee7c7[_0x2f8a1d(0xfa)];_0x482b7e&&_0x482b7e['forEach'](_0xf5da74=>this[_0x2f8a1d(0x15a)][_0x2f8a1d(0x371)](this[_0x2f8a1d(0x476)],_0xf5da74));}[_0x3a85d7(0x35f)](_0x3b60b4){const _0x34730b=_0x3a85d7;try{const _0x48d009=_0x3b60b4['data'];switch(_0x48d009[_0x34730b(0x121)]){case _[_0x34730b(0x14f)][_0x34730b(0x460)]:this[_0x34730b(0x25a)](_0x48d009),this[_0x34730b(0xa8)][_0x34730b(0x294)](_0x48d009);break;case _[_0x34730b(0x14f)][_0x34730b(0x122)]:this[_0x34730b(0x42b)](_0x48d009),this['_event$'][_0x34730b(0x294)](_0x48d009);break;case _[_0x34730b(0x14f)][_0x34730b(0x17a)]:case _[_0x34730b(0x14f)][_0x34730b(0x3f9)]:this[_0x34730b(0x2e7)](),this[_0x34730b(0xf5)](),this[_0x34730b(0xa8)][_0x34730b(0x294)](_0x48d009);break;case _[_0x34730b(0x14f)][_0x34730b(0x22a)]:this[_0x34730b(0x174)][_0x34730b(0xae)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x48d009)),this[_0x34730b(0xa8)][_0x34730b(0x294)](_0x48d009);break;case _[_0x34730b(0x14f)][_0x34730b(0xd2)]:this['_commentService']['onCommentUpdate'](_0x48d009[_0x34730b(0xd9)]),this[_0x34730b(0xa8)][_0x34730b(0x294)](_0x48d009);break;default:this[_0x34730b(0xa8)][_0x34730b(0x294)](_0x48d009);}}catch(_0x484473){this['_logService'][_0x34730b(0xae)](_0x484473,_0x3b60b4);}}[_0x3a85d7(0x25a)](_0x2d1327){const _0x112b99=_0x3a85d7;this[_0x112b99(0x15a)][_0x112b99(0x371)](this[_0x112b99(0x476)],_0x2d1327[_0x112b99(0xd9)]);}[_0x3a85d7(0x42b)](_0x47e0ac){const _0x2f9f2f=_0x3a85d7;this[_0x2f9f2f(0x15a)][_0x2f9f2f(0xaa)](this['_unitID'],_0x47e0ac[_0x2f9f2f(0xd9)][_0x2f9f2f(0x75)]);}async[_0x3a85d7(0x450)](_0x314f65,_0x3e84a3){const _0x13b57e=_0x3a85d7;if(this[_0x13b57e(0x211)]!==0x3||!this[_0x13b57e(0x2c0)])throw new Error(_0x13b57e(0x271));try{_0x314f65[_0x13b57e(0x121)]===_['CollaborationEvent'][_0x13b57e(0x106)]&&(this[_0x13b57e(0x1b5)](),this[_0x13b57e(0x173)](_0x314f65)),this[_0x13b57e(0x2c0)][_0x13b57e(0x450)]({'cmd':b[_0x13b57e(0x91)],'routeKey':_0x3e84a3,'routeType':'','data':_0x314f65});}catch(_0x44a453){this[_0x13b57e(0x174)][_0x13b57e(0xae)](_0x44a453);}}[_0x3a85d7(0x1b5)](){const _0x77a6a2=_0x3a85d7;var _0x3e5691;this[_0x77a6a2(0x20f)]=window[_0x77a6a2(0x1a3)](()=>{const _0x343fc6=_0x77a6a2;this[_0x343fc6(0x20f)]=null,this[_0x343fc6(0x12b)][_0x343fc6(0x2e8)]({'type':q['MessageType'][_0x343fc6(0x1a8)],'content':this[_0x343fc6(0x43f)]['t'](_0x343fc6(0x2db))});},(_0x3e5691=this[_0x77a6a2(0x365)][_0x77a6a2(0x45d)](Ge))!=null?_0x3e5691:ft);}[_0x3a85d7(0xf5)](){const _0x2eea4e=_0x3a85d7;this[_0x2eea4e(0x20f)]&&(clearTimeout(this[_0x2eea4e(0x20f)]),this[_0x2eea4e(0x20f)]=null);}[_0x3a85d7(0x173)](_0x2b246c){const _0x2c94f8=_0x3a85d7;if(!this[_0x2c94f8(0x414)])return;const {data:_0x27161a}=_0x2b246c,{unitID:_0x25a7f3,changeset:_0x2d030f}=_0x27161a,{mutations:_0x45e936,type:_0x2334ca}=_0x2d030f;this['_telemetryInfo']={'unitId':_0x25a7f3,'type':_0x2334ca,'startTime':performance[_0x2c94f8(0x2cb)](),'stopTime':0x0,'duration':0x0,'size':ds(_0x45e936)};}[_0x3a85d7(0x2e7)](){const _0x952dd2=_0x3a85d7;if(this[_0x952dd2(0x414)]){if(!this['_telemetryInfo']){this[_0x952dd2(0x174)][_0x952dd2(0xae)](_0x952dd2(0x3e5),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo']['stopTime']=performance[_0x952dd2(0x2cb)](),this[_0x952dd2(0x3e1)][_0x952dd2(0x2f0)]=this[_0x952dd2(0x3e1)][_0x952dd2(0x3d5)]-this[_0x952dd2(0x3e1)]['startTime'],this[_0x952dd2(0x405)][_0x952dd2(0x215)](us,this[_0x952dd2(0x3e1)]),this['_telemetryInfo']=null;}}[_0x3a85d7(0x1c7)](){const _0x2176e0=_0x3a85d7;this[_0x2176e0(0x3e1)]=null;}},exports[_0x3a85d7(0xbd)]=ps([V(0x2,a[_0x3a85d7(0x43e)]),V(0x3,A[_0x3a85d7(0x3eb)]),V(0x4,A[_0x3a85d7(0x41b)]),V(0x5,a[_0x3a85d7(0x3ba)]),V(0x6,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x3f3)])),V(0x7,a[_0x3a85d7(0x1e4)](X)),V(0x8,a['Inject'](qe)),V(0x9,a[_0x3a85d7(0xdd)](qt[_0x3a85d7(0x403)]))],exports['CollaborationSession']);var Cs=Object[_0x3a85d7(0x329)],Es=Object[_0x3a85d7(0x43d)],bs=(_0x40bb10,_0x27e1e0,_0x13a300,_0x15c859)=>{for(var _0x1f7eb1=_0x15c859>0x1?void 0x0:_0x15c859?Es(_0x27e1e0,_0x13a300):_0x27e1e0,_0x20cfc1=_0x40bb10['length']-0x1,_0xb8b301;_0x20cfc1>=0x0;_0x20cfc1--)(_0xb8b301=_0x40bb10[_0x20cfc1])&&(_0x1f7eb1=(_0x15c859?_0xb8b301(_0x27e1e0,_0x13a300,_0x1f7eb1):_0xb8b301(_0x1f7eb1))||_0x1f7eb1);return _0x15c859&&_0x1f7eb1&&Cs(_0x27e1e0,_0x13a300,_0x1f7eb1),_0x1f7eb1;},Z=(_0x273a9e,_0x395d6a)=>(_0x3d70f4,_0x231890)=>_0x395d6a(_0x3d70f4,_0x231890,_0x273a9e);exports[_0x3a85d7(0x3d9)]=class extends a['Disposable']{constructor(_0xded099,_0x34b746,_0x9cf627,_0x24931b,_0x48e3c2,_0x2e1a8e){const _0x258bd2=_0x3a85d7;super(),u(this,_0x258bd2(0x140),new v['BehaviorSubject'](void 0x0)),u(this,_0x258bd2(0x19f),this[_0x258bd2(0x140)]['asObservable']()),u(this,_0x258bd2(0x80),null),u(this,_0x258bd2(0xb2),new Map()),u(this,_0x258bd2(0x9d),new v[(_0x258bd2(0x2a3))](H[_0x258bd2(0x3b7)])),u(this,_0x258bd2(0x3cd),this[_0x258bd2(0x9d)][_0x258bd2(0x413)]()),u(this,_0x258bd2(0x182),!0x1),u(this,_0x258bd2(0x40a)),u(this,_0x258bd2(0x10e),0x0),u(this,_0x258bd2(0x19e)),u(this,'_timeoutTimer'),(this[_0x258bd2(0x1ae)]=_0xded099,this[_0x258bd2(0x43f)]=_0x34b746,this[_0x258bd2(0x12b)]=_0x9cf627,this['_logService']=_0x24931b,this[_0x258bd2(0x365)]=_0x48e3c2,this[_0x258bd2(0x170)]=_0x2e1a8e,this[_0x258bd2(0x13f)]());}get[_0x3a85d7(0x2c0)](){const _0x2a95d3=_0x3a85d7;return this[_0x2a95d3(0x140)]['getValue']();}[_0x3a85d7(0x13f)](){const _0x34d278=_0x3a85d7;this[_0x34d278(0x26f)](),this[_0x34d278(0x14b)]();}[_0x3a85d7(0xad)](){const _0x2c65e6=_0x3a85d7;super[_0x2c65e6(0xad)](),this[_0x2c65e6(0xb2)][_0x2c65e6(0x189)](_0x2645b4=>_0x2645b4[_0x2c65e6(0xad)]()),this[_0x2c65e6(0xb2)][_0x2c65e6(0x1f0)](),this[_0x2c65e6(0x9d)][_0x2c65e6(0x131)]();}async[_0x3a85d7(0x81)](_0x152c50){const _0x5e29ea=_0x3a85d7;if(this['_sessions'][_0x5e29ea(0x1a7)](_0x152c50))return this[_0x5e29ea(0xb2)]['get'](_0x152c50);this[_0x5e29ea(0x47b)]();const _0x60c6ae=this[_0x5e29ea(0x1ae)][_0x5e29ea(0xfe)](exports['CollaborationSession'],_0x152c50,this['_socket$'][_0x5e29ea(0x413)]());return this[_0x5e29ea(0xb2)][_0x5e29ea(0x225)](_0x152c50,_0x60c6ae),_0x60c6ae;}[_0x3a85d7(0x2a1)](_0x36f635){const _0x534e40=_0x3a85d7;var _0x1b5b21;const _0x4745f0=this[_0x534e40(0xb2)]['get'](_0x36f635);_0x4745f0&&(this['_sessions'][_0x534e40(0x3de)](_0x36f635),_0x4745f0['close']()),this[_0x534e40(0xb2)]['size']||(_0x1b5b21=this[_0x534e40(0x2c0)])==null||_0x1b5b21[_0x534e40(0x11a)]();}[_0x3a85d7(0x21e)](){const _0x272dcb=_0x3a85d7;this[_0x272dcb(0x10e)]=0x0,this[_0x272dcb(0x40a)]!=null&&(clearTimeout(this[_0x272dcb(0x40a)]),this[_0x272dcb(0x40a)]=null),this['_tryReconnect']();}[_0x3a85d7(0x462)](){const _0x25b0b4=_0x3a85d7;var _0x419492,_0x2b37a8;const _0x12225e=this['_configService']['getConfig'](mt),_0x45cae0=this[_0x25b0b4(0x365)][_0x25b0b4(0x45d)](L),_0x48fdca=(_0x2b37a8=(_0x419492=_0x45cae0==null?void 0x0:_0x45cae0['collabWebSocketUrl'])!=null?_0x419492:_0x12225e)!=null?_0x2b37a8:es,_0x48298d=this['_socketService'][_0x25b0b4(0x93)](_0x48fdca);return this['_candidateSocket']=_0x48298d,_0x48298d;}['_tryEnsureSocket'](){const _0x93ee00=_0x3a85d7;var _0x17f8c2,_0xc92984;try{const _0x5eb162=(_0xc92984=(_0x17f8c2=this[_0x93ee00(0x2c0)])!=null?_0x17f8c2:this[_0x93ee00(0x80)])!=null?_0xc92984:this[_0x93ee00(0x462)]();if(_0x5eb162){const _0x2ace72=_0x5eb162[_0x93ee00(0x450)];_0x5eb162[_0x93ee00(0x450)]=_0x50ac8c=>(this[_0x93ee00(0x201)](),_0x2ace72[_0x93ee00(0xfd)](_0x5eb162,[_0x50ac8c])),_0x5eb162[_0x93ee00(0xb3)][_0x93ee00(0xc4)](_0x1095c9=>this['_onMessage'](_0x5eb162,_0x1095c9)),_0x5eb162[_0x93ee00(0x276)][_0x93ee00(0x3d0)](E[_0x93ee00(0x157)](0x1))[_0x93ee00(0xc4)](_0x4d2eec=>this[_0x93ee00(0x174)][_0x93ee00(0xae)](_0x93ee00(0x8f),_0x4d2eec)),_0x5eb162[_0x93ee00(0x292)][_0x93ee00(0x3d0)](E['take'](0x1))['subscribe'](()=>{const _0x420834=_0x93ee00;this[_0x420834(0x2d9)](_0x5eb162);}),_0x5eb162['close$']['pipe'](E[_0x93ee00(0x157)](0x1))[_0x93ee00(0xc4)](_0x23c30a=>{const _0x28003f=_0x93ee00;this['_logService'][_0x28003f(0x312)](_0x28003f(0x47e),_0x28003f(0xa0),_0x23c30a),this[_0x28003f(0x3b4)]();});}}catch(_0x6f2c6e){this[_0x93ee00(0x174)][_0x93ee00(0xae)](_0x6f2c6e),this['_onConnectionFailed']();}}[_0x3a85d7(0x2d9)](_0x3ef69c){const _0x375471=_0x3a85d7;this[_0x375471(0x174)][_0x375471(0x312)](_0x375471(0x47e),_0x375471(0x243)),_0x3ef69c['send']({'cmd':b['HELLO']}),this[_0x375471(0x201)]();}[_0x3a85d7(0x26f)](){const _0x5db389=_0x3a85d7;window[_0x5db389(0x1ec)](_0x5db389(0x13d),()=>this[_0x5db389(0x171)]());}[_0x3a85d7(0x171)](){const _0x2f6d63=_0x3a85d7;this[_0x2f6d63(0x182)]=!0x1,this[_0x2f6d63(0x80)]=null,this[_0x2f6d63(0x9d)][_0x2f6d63(0x294)](H['OFFLINE']),this[_0x2f6d63(0x140)][_0x2f6d63(0x294)](null),this['_clearTimeoutTimer'](),this[_0x2f6d63(0x289)]();}[_0x3a85d7(0x3b4)](){const _0x498d7a=_0x3a85d7;var _0x665886;this[_0x498d7a(0x171)](),this[_0x498d7a(0x10e)]<((_0x665886=this[_0x498d7a(0x365)][_0x498d7a(0x45d)](It))!=null?_0x665886:is)?(this[_0x498d7a(0x12b)][_0x498d7a(0x2e8)]({'key':'collaboration-session-retry','type':q[_0x498d7a(0x37a)]['Warning'],'content':this[_0x498d7a(0x43f)]['t'](_0x498d7a(0x1e7))}),this[_0x498d7a(0x248)]()):this[_0x498d7a(0x12b)]['show']({'key':_0x498d7a(0x437),'type':q[_0x498d7a(0x37a)][_0x498d7a(0x1a8)],'content':this['_localeService']['t'](_0x498d7a(0x20c))});}[_0x3a85d7(0x14b)](){const _0x1731e4=_0x3a85d7,_0x4279dd=()=>{const _0x3b4d69=_0x54ba;this[_0x3b4d69(0x2c0)]||this['reconnect']();},_0x291c31=()=>{const _0xfa914e=_0x54ba;this[_0xfa914e(0x2c0)]||document[_0xfa914e(0xd0)]===_0xfa914e(0x2ff)||this[_0xfa914e(0x21e)]();};window[_0x1731e4(0x1ec)](_0x1731e4(0x1fd),_0x4279dd),document[_0x1731e4(0x1ec)]('visibilitychange',_0x291c31);}[_0x3a85d7(0x248)](){const _0x4771a4=_0x3a85d7;var _0x2d1bb5;const _0x104e08=this[_0x4771a4(0x10e)],_0x32f00a=this[_0x4771a4(0x365)][_0x4771a4(0x45d)](L),_0x343a92=_0x104e08===0x0?0x0:((_0x2d1bb5=_0x32f00a==null?void 0x0:_0x32f00a[_0x4771a4(0x3fc)])!=null?_0x2d1bb5:ss)*0x2**_0x104e08;this['_retryConnectingTimer']=window[_0x4771a4(0x1a3)](()=>{const _0x524353=_0x4771a4;clearTimeout(this[_0x524353(0x40a)]),this[_0x524353(0x40a)]=null,this[_0x524353(0x47b)]();},_0x343a92),this[_0x4771a4(0x10e)]+=0x1;}[_0x3a85d7(0x30b)](_0x21dbbc,_0x2da63e){const _0x13cd49=_0x3a85d7,{cmd:_0x3ef42f}=_0x2da63e;_0x3ef42f===b['HELLO']&&!this[_0x13cd49(0x182)]&&(_0x21dbbc[_0x13cd49(0x75)]=_0x2da63e[_0x13cd49(0xd9)][_0x13cd49(0x75)],this[_0x13cd49(0x140)][_0x13cd49(0x294)](_0x21dbbc),this['_status$'][_0x13cd49(0x294)](H[_0x13cd49(0x445)]),this[_0x13cd49(0x182)]=!0x0,this['_candidateSocket']=null),_0x3ef42f===b[_0x13cd49(0xe3)]&&this[_0x13cd49(0x87)](),this[_0x13cd49(0x201)]();}['_rescheduleHeartbeat'](){const _0x324f69=_0x3a85d7;var _0x4ace02;this['_clearHeartbeatTimer'](),this[_0x324f69(0x19e)]=window[_0x324f69(0x1a3)](()=>this[_0x324f69(0xd1)](),(_0x4ace02=this['_configService']['getConfig'](gt))!=null?_0x4ace02:ts);}[_0x3a85d7(0xd1)](){const _0x17d884=_0x3a85d7;this[_0x17d884(0x2c0)][_0x17d884(0x450)]({'cmd':b[_0x17d884(0xe3)]}),this[_0x17d884(0x114)]();}[_0x3a85d7(0x114)](){const _0x14b7d3=_0x3a85d7;var _0x968ae4;this[_0x14b7d3(0x2aa)]=window[_0x14b7d3(0x1a3)](()=>this[_0x14b7d3(0x3b4)](),(_0x968ae4=this[_0x14b7d3(0x365)][_0x14b7d3(0x45d)](Ge))!=null?_0x968ae4:ft);}[_0x3a85d7(0x289)](){const _0x5d416e=_0x3a85d7;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x5d416e(0x19e)]),this[_0x5d416e(0x19e)]=null);}[_0x3a85d7(0x87)](){const _0x562ba0=_0x3a85d7;this[_0x562ba0(0x2aa)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x562ba0(0x2aa)]=null);}},exports[_0x3a85d7(0x3d9)]=bs([Z(0x0,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),Z(0x1,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x3f3)])),Z(0x2,A[_0x3a85d7(0x41b)]),Z(0x3,a['ILogService']),Z(0x4,a['IConfigService']),Z(0x5,Ke)],exports[_0x3a85d7(0x3d9)]);var O=[];for(var Ue=0x0;Ue<0x100;++Ue)O[_0x3a85d7(0x250)]((Ue+0x100)[_0x3a85d7(0x483)](0x10)[_0x3a85d7(0x1ef)](0x1));function Ts(_0x21a095,_0x24f661=0x0){const _0x3faf06=_0x3a85d7;return(O[_0x21a095[_0x24f661+0x0]]+O[_0x21a095[_0x24f661+0x1]]+O[_0x21a095[_0x24f661+0x2]]+O[_0x21a095[_0x24f661+0x3]]+'-'+O[_0x21a095[_0x24f661+0x4]]+O[_0x21a095[_0x24f661+0x5]]+'-'+O[_0x21a095[_0x24f661+0x6]]+O[_0x21a095[_0x24f661+0x7]]+'-'+O[_0x21a095[_0x24f661+0x8]]+O[_0x21a095[_0x24f661+0x9]]+'-'+O[_0x21a095[_0x24f661+0xa]]+O[_0x21a095[_0x24f661+0xb]]+O[_0x21a095[_0x24f661+0xc]]+O[_0x21a095[_0x24f661+0xd]]+O[_0x21a095[_0x24f661+0xe]]+O[_0x21a095[_0x24f661+0xf]])[_0x3faf06(0x29d)]();}var Se,Rs=new Uint8Array(0x10);function Os(){const _0x25c659=_0x3a85d7;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x25c659(0x17f)]&&crypto['getRandomValues'][_0x25c659(0x267)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(Rs);}var Ds=typeof crypto<'u'&&crypto['randomUUID']&&crypto['randomUUID'][_0x3a85d7(0x267)](crypto);const st={'randomUUID':Ds};function ys(_0x50a891,_0x51dc20,_0x19b80c){const _0x51bb87=_0x3a85d7;if(st['randomUUID']&&!_0x51dc20&&!_0x50a891)return st[_0x51bb87(0x19a)]();_0x50a891=_0x50a891||{};var _0x8d5f0d=_0x50a891[_0x51bb87(0x144)]||(_0x50a891['rng']||Os)();return _0x8d5f0d[0x6]=_0x8d5f0d[0x6]&0xf|0x40,_0x8d5f0d[0x8]=_0x8d5f0d[0x8]&0x3f|0x80,Ts(_0x8d5f0d);}var Us=Object['defineProperty'],Ps=Object[_0x3a85d7(0x43d)],ws=(_0xe36f45,_0x42cec5,_0x5e41ab,_0x12fa4f)=>{for(var _0x3befa3=_0x12fa4f>0x1?void 0x0:_0x12fa4f?Ps(_0x42cec5,_0x5e41ab):_0x42cec5,_0x41bbe6=_0xe36f45['length']-0x1,_0xf8e718;_0x41bbe6>=0x0;_0x41bbe6--)(_0xf8e718=_0xe36f45[_0x41bbe6])&&(_0x3befa3=(_0x12fa4f?_0xf8e718(_0x42cec5,_0x5e41ab,_0x3befa3):_0xf8e718(_0x3befa3))||_0x3befa3);return _0x12fa4f&&_0x3befa3&&Us(_0x42cec5,_0x5e41ab,_0x3befa3),_0x3befa3;},Pe=(_0x19c985,_0x442b10)=>(_0x4a1d70,_0x31dbf5)=>_0x442b10(_0x4a1d70,_0x31dbf5,_0x19c985);let fe=class{constructor(_0x177b63,_0x17b4c5,_0x57ad64){const _0xa2ae3d=_0x3a85d7;this[_0xa2ae3d(0x1ae)]=_0x177b63,this[_0xa2ae3d(0x30f)]=_0x17b4c5,this[_0xa2ae3d(0x35d)]=_0x57ad64;}[_0x3a85d7(0x303)](_0x23bb55){const _0x54babb=_0x3a85d7;this[_0x54babb(0x2d6)](_0x23bb55),this['_transformPreviousActiveRange'](_0x23bb55);}[_0x3a85d7(0x273)](_0x44830f){const _0x4af7e4=_0x3a85d7,{unitID:_0x207a1b}=_0x44830f,_0x322549=this[_0x4af7e4(0x35d)]['getRenderById'](_0x207a1b)[_0x4af7e4(0x375)](N[_0x4af7e4(0x467)]),{redoCache:_0x2f5604}=_0x322549[_0x4af7e4(0x134)]();if(_0x2f5604[_0x4af7e4(0x16a)]===0x0)return _0x44830f;let _0x3bf4a9=a[_0x4af7e4(0x268)][_0x4af7e4(0x3cb)](_0x44830f['mutations'][0x0]);for(let _0xabffcd=0x0;_0xabffcd<_0x2f5604['length'];_0xabffcd++){const _0x78f3ee={'id':'doc.mutation.rich-text-editing','params':{..._0x2f5604[_0xabffcd]}},_0x4765c9=this[_0x4af7e4(0x30f)]['transformMutation'](_0x3bf4a9,_0x78f3ee,!0x1);if(_['isTransformMutationFailure'](_0x4765c9))throw _0x4765c9[_0x4af7e4(0xae)];_0x3bf4a9=_0x4765c9['m1Prime'];}return{...a[_0x4af7e4(0x268)][_0x4af7e4(0x3cb)](_0x44830f),'mutations':[_0x3bf4a9]};}['_transformUndoRedoStack'](_0x17e347){const _0xaa9a99=_0x3a85d7,{unitID:_0x2c929f}=_0x17e347,_0x9f38b=this['_renderManagerService']['getRenderById'](_0x2c929f)[_0xaa9a99(0x375)](N[_0xaa9a99(0x467)]),{undoCache:_0x3e8acb,redoCache:_0x2bc63e}=_0x9f38b[_0xaa9a99(0x134)]();if(_0x3e8acb[_0xaa9a99(0x16a)]===0x0||_0x2bc63e[_0xaa9a99(0x16a)]===0x0)return;const _0x401502=[],_0x8f3eca=[];let _0x5b9d64=a[_0xaa9a99(0x268)][_0xaa9a99(0x3cb)](_0x17e347['mutations'][0x0]),_0x316d5c=a['Tools']['deepClone'](_0x17e347['mutations'][0x0]);for(let _0x1b90cb=_0x3e8acb['length']-0x1;_0x1b90cb>=0x0;_0x1b90cb--){const _0x11a40b={'id':_0xaa9a99(0x493),'params':{..._0x3e8acb[_0x1b90cb]}},_0xba07a5={'id':_0xaa9a99(0x493),'params':{..._0x2bc63e[_0x1b90cb]}},_0xf8b8e6=this[_0xaa9a99(0x30f)][_0xaa9a99(0x30c)](_0x5b9d64,_0x11a40b,!0x1),_0x2a2e87=this['_transformService'][_0xaa9a99(0x30c)](_0x316d5c,_0xba07a5,!0x1);if(_['isTransformMutationFailure'](_0xf8b8e6))throw _0xf8b8e6[_0xaa9a99(0xae)];if(_['isTransformMutationFailure'](_0x2a2e87))throw _0x2a2e87[_0xaa9a99(0xae)];_0x401502[_0xaa9a99(0x396)](_0xf8b8e6['m2Prime'][_0xaa9a99(0x3d1)]),_0x8f3eca[_0xaa9a99(0x396)](_0x2a2e87[_0xaa9a99(0x2c3)]['params']),_0x5b9d64=_0xf8b8e6[_0xaa9a99(0xa7)],_0x316d5c=_0x2a2e87[_0xaa9a99(0xa7)];}_0x9f38b[_0xaa9a99(0x485)]({'undoCache':_0x401502,'redoCache':_0x8f3eca});}[_0x3a85d7(0x1d4)](_0x566fc5){const _0x3c1810=_0x3a85d7,{unitID:_0x39a155}=_0x566fc5,_0x40207f=this[_0x3c1810(0x35d)][_0x3c1810(0x2f5)](_0x39a155)[_0x3c1810(0x375)](N['DocIMEInputManagerService']),_0x3d35d6=_0x40207f[_0x3c1810(0x28c)]();if(_0x3d35d6==null)return;const _0x3c7f3b=[{'id':_0x3c1810(0x493),'params':{'unitId':_0x566fc5[_0x3c1810(0x32c)],'actions':null,'textRanges':[_0x3d35d6]}}],_0x506546=this['_transformService'][_0x3c1810(0x418)](_0x566fc5,_0x3c7f3b);if(!_[_0x3c1810(0x1f5)](_0x506546))throw _0x506546[_0x3c1810(0xae)];const _0x46adf7=_0x506546[_0x3c1810(0x2c3)][0x0]['params'][_0x3c1810(0x2fc)];Array[_0x3c1810(0x1ee)](_0x46adf7)&&_0x46adf7['length']&&_0x40207f[_0x3c1810(0x35a)](_0x46adf7[0x0]);}};fe=ws([Pe(0x0,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),Pe(0x1,_[_0x3a85d7(0x12f)]),Pe(0x2,D[_0x3a85d7(0x2ed)])],fe);var Ns=Object['defineProperty'],Ms=Object[_0x3a85d7(0x43d)],As=(_0x524782,_0x7b36f,_0x1f266b,_0x5c0df7)=>{const _0x39b05e=_0x3a85d7;for(var _0x10efc2=_0x5c0df7>0x1?void 0x0:_0x5c0df7?Ms(_0x7b36f,_0x1f266b):_0x7b36f,_0x587fbf=_0x524782[_0x39b05e(0x16a)]-0x1,_0x467e0b;_0x587fbf>=0x0;_0x587fbf--)(_0x467e0b=_0x524782[_0x587fbf])&&(_0x10efc2=(_0x5c0df7?_0x467e0b(_0x7b36f,_0x1f266b,_0x10efc2):_0x467e0b(_0x10efc2))||_0x10efc2);return _0x5c0df7&&_0x10efc2&&Ns(_0x7b36f,_0x1f266b,_0x10efc2),_0x10efc2;},ce=(_0x3e7391,_0x373e69)=>(_0x7497b2,_0xf6bf36)=>_0x373e69(_0x7497b2,_0xf6bf36,_0x3e7391);exports[_0x3a85d7(0x1c0)]=class extends a[_0x3a85d7(0x3ce)]{constructor(_0x55129c,_0x34f8f8,_0x2e73eb,_0x192355,_0x2f64c1){const _0x3bf5d6=_0x3a85d7;super(),u(this,_0x3bf5d6(0xa4),new Map()),u(this,'_saveTaskMap',new Map()),u(this,'_disabled',!0x1),(this[_0x3bf5d6(0x365)]=_0x55129c,this[_0x3bf5d6(0x196)]=_0x34f8f8,this['_beforeCloseService']=_0x2e73eb,this[_0x3bf5d6(0x43f)]=_0x192355,this['_revisionService']=_0x2f64c1,this[_0x3bf5d6(0x469)]());}[_0x3a85d7(0x325)](){const _0x4962b9=_0x3a85d7;this[_0x4962b9(0x465)]=!0x0;}[_0x3a85d7(0x3d2)](){const _0x1d541a=_0x3a85d7;this[_0x1d541a(0x465)]=!0x1;}['dispose'](){const _0x573bfa=_0x3a85d7;this[_0x573bfa(0x156)]()[_0x573bfa(0x31a)](()=>super[_0x573bfa(0xad)]());}async[_0x3a85d7(0x2fd)](_0xac8fa4){const _0x19cd14=_0x3a85d7;return this[_0x19cd14(0x465)]?null:this[_0x19cd14(0x196)][_0x19cd14(0x1bd)](it(_0xac8fa4));}async[_0x3a85d7(0x42a)](_0xb3f504,_0x501a1a){const _0x39c50a=_0x3a85d7;return!!this[_0x39c50a(0x196)]['setItem'](_0xb3f504,_0x501a1a);}[_0x3a85d7(0x3db)](_0xbefde0,_0x3d8173,_0x436df2,_0x2816a9){const _0x9d9a96=_0x3a85d7,_0x4687b6=this[_0x9d9a96(0x283)][_0x9d9a96(0xb6)](_0xbefde0);this[_0x9d9a96(0xa4)][_0x9d9a96(0x225)](_0xbefde0,{'unitID':_0xbefde0,'type':_0x3d8173,'awaitingChangeset':_0x436df2,'mutations':_0x2816a9,'rev':_0x4687b6}),this[_0x9d9a96(0x333)][_0x9d9a96(0x1a7)](_0xbefde0)||this[_0x9d9a96(0x30e)](_0xbefde0);}['_scheduleSaving'](_0x39a8c0){const _0xd2ad76=_0x3a85d7,_0xaace1=this[_0xd2ad76(0x249)]();_0xaace1===0x0?this['_saveCache'](_0x39a8c0):this[_0xd2ad76(0x333)]['set'](_0x39a8c0,setTimeout(()=>this['_saveCache'](_0x39a8c0),_0xaace1));}['_getSaveTimeout'](){const _0x426f40=_0x3a85d7;var _0x50809e;return(_0x50809e=this[_0x426f40(0x365)][_0x426f40(0x45d)](pt))!=null?_0x50809e:ns;}[_0x3a85d7(0x2b0)](_0x4d4ddb){const _0x4578aa=_0x3a85d7,_0x5fa7b8=this[_0x4578aa(0x333)][_0x4578aa(0xca)](_0x4d4ddb);return _0x5fa7b8!==void 0x0&&window[_0x4578aa(0x18c)](_0x5fa7b8),this['_localStorageService'][_0x4578aa(0x3bd)](it(_0x4d4ddb),this['_cachedData'][_0x4578aa(0xca)](_0x4d4ddb))[_0x4578aa(0x31a)](()=>this['_saveTaskMap'][_0x4578aa(0x3de)](_0x4d4ddb));}async[_0x3a85d7(0x156)](){const _0x55aa99=_0x3a85d7,_0x3dc124=[];this[_0x55aa99(0x333)]['forEach']((_0x42dfa8,_0x5c100c)=>{const _0x218277=_0x55aa99;window['clearTimeout'](_0x42dfa8),_0x3dc124[_0x218277(0x250)](this[_0x218277(0x2b0)](_0x5c100c)[_0x218277(0x31a)](()=>{const _0x127527=_0x218277;this[_0x127527(0x333)][_0x127527(0x3de)](_0x5c100c);}));}),await Promise[_0x55aa99(0x459)](_0x3dc124);}[_0x3a85d7(0x469)](){const _0x1e8760=_0x3a85d7;this[_0x1e8760(0x208)](this['_beforeCloseService'][_0x1e8760(0x40e)](()=>{const _0x4dc9cf=_0x1e8760;if(this[_0x4dc9cf(0x333)]['size'])return this[_0x4dc9cf(0x43f)]['t'](_0x4dc9cf(0x447));}));}},exports[_0x3a85d7(0x1c0)]=As([ce(0x0,a[_0x3a85d7(0x3ba)]),ce(0x1,a['ILocalStorageService']),ce(0x2,A[_0x3a85d7(0x3eb)]),ce(0x3,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x3f3)])),ce(0x4,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x17e)]))],exports[_0x3a85d7(0x1c0)]);function it(_0x1f78e6){return'unit-cache-'+_0x1f78e6;}function _0x2c91(){const _0x1e8c46=['_change$','SessionStatus','_stopTelemetryCollaborationNewChangeset','show','cmd','onTransformIME','LICENSE_IMPORT_SIZE_EXCEEDED','sheetId','IRenderManagerService','NOT_FOUND','_decreaseWaiting','duration','collaboration.single-unit.warning','HEARTBEAT_TIMEOUT_KEY','restore','top','getRenderById','ENSURE_SNAPSHOT_EXECUTION','_createHandler','transformByState','_HTTPService','skeleton','_resendWithTimeout','textRanges','loadOfflineData','[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.','hidden','/unit/','&assign=','displayName','transformIMECache','UniverIcon','session','workbook','_textBubble','selections','_urlService','headers','_onMessage','transformMutation','_incrementRevisionNumber','_scheduleSaving','_transformService','_clearScheduledTask','getUnitId','debug','handleIRemoveCol','2470686fLAYGe','propertyIsEnumerable','YUUMI_RATE_OVER_LIMIT','CommandType','_fetchMissChangesets','_toggleOffline','then','defIds','font','Rectangle','ERROR_IMAGE','[SyncedState]:\x20received\x20acknowledgement.','registerRefRange','save','flatMap','_send','[DataLoaderController]','disableLocalCache','univer-pro.collaboration-client-socket-service','ICollaborationSocketService','conflict.title','defineProperty','stringify','EXCHANGE_SIGN_URL_SERVER_URL_KEY','unitID','change$','_disableEditing','_lockTransition','/universer-api/snapshot','sheets','_onJoinRoomEvent','_saveTaskMap','?url=','_getLoginPath','sid','InsertRangeMoveDownCommandId','_waitCount','_loadSheet','leaveEvent','_handleJoinEvent','Subject','objects','objectID','row','_isPermissionRej','_draw','_refRangeService','_selfUnitIDs','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','textEncoder','text','arc','selection','IAuthzIoService','handleMoveRange','getCurrentSelections','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_roomMembers','setWaitCount','HEARTBEAT_INTERVAL_KEY','equals','LEAVE','getCollabEntity$','toRgbString','univer-online','UniverInstanceType','resourceIDs','call','SYNCED','LOGIN_URL_KEY','setActiveRange','fetching\x20missing\x20changesets\x20from\x20','UNIVER_SHEET','_renderManagerService','_sheetSkeletonManagerService','_onRecvEvent','idSuffix','_executeRemoteChangeset','_schedule','[CollaborationUndoRedoService]','handleDeleteRangeMoveLeft','_configService','_handleHover','@univerjs-pro/collaboration','_drawTextRange','_instanceService','_uiPartsService','commentUpdateEvent','image/gif','ColorKit','UnitEmbedded','urlChange$','addObjects','updateMember','Univer','encodeURIComponent','[SyncedState]:\x20received\x20rejection.','with','_collaborationSessionService','serializeCombRequest','serializeRangeWithSheet','conflict.content','MessageType','_online','file','_transformRemoteChangesetByIMECache','subUnitId','ACTIVE_UNIT_EVENT_CHANNEL','ISnapshotServerService','_backgroundColor','_http','AWAITING','tag','Vector2','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getUnitType','_initCloseConn','_assignedColors','UNIVER_COLLABORATION_CLIENT_PLUGIN','AUTHZ_URL_KEY','unload','IContextService','UNKNOWN_CMD','@univerjs/sheets-ui','_initModules','_createInitialStateImpl','UUID','originalMeta','debounceTime','_onCursorDelete','unshift','@univerjs-pro/license','blue400','_updateSubUnitFromURLParams','_scheduleHeartbeat','reject','children','_collaborationPaused','_transformStack','enableAuthServer','pluginName','csAckEvent','handleInsertRow','event$','SEND_CHANGESET_TIMEOUT','getRangePointData','toDisposable','/universer-api/stream/file/upload','SheetCollaborationEntity','@univerjs/docs-ui','_syncEditingCollabCursor','_socketMessageSubscription','image/jpeg','permissionRejEvent','snapshotServerUrl','LIVESHARE_NEW_HOST','_unitOnClients','pushState','_checkMissing','popstate','_onConnectionFailed','_changesetSessionId','CONNECTOR_DATA_TOO_LARGE','IDLE','CollaborationStatusDisplay','labelPosition','IConfigService','/allowed','Warning','setItem','saveChangeset','_startCollaboration','getOwnPropertySymbols','_sender','generateRandomId','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','94829XaHZpn','width','_updateLocalCursor','evenodd','_getUndoStack','_clearOtherTimers','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','deepClone','#fff','status$','Disposable','_transformSelections','pipe','params','enableLocalCache','getColor','react','stopTime','contains','onTransformChange$','_setupSubUnitSync','CollaborationSessionService','filter','updateOfflineData','_cursorInfo$','_syncEditingCollabCursorService','delete','handleInsertRangeMoveDown','/object/','_telemetryInfo','CHANGESET_REJ','getWorkbookSelections','compose','[CollaborationSession]','/block/','Shape','updateCursorEvent','copyFileMeta','div','IBeforeCloseService','APPLY_REJECT','_imageSourceCache','roomMembers$','_document','b64DecodeUnicode','APPLY_NON_SEQUENTIAL_REVISION','UNIVER_UNKNOWN','LocaleService','IImageIoService','/-/object/list','DisposableCollection','newValue','engine','CHANGESET_SHOULD_RETRY','colorChannel1','authzUrl','retryConnectingInterval','extend','roomInfos','collabCursorState$','newCsEvent','_lastPointer','YUUMI_SUBSCRIPTION_NOT_FOUND','ITelemetryService','/fetchmissing?from=','_telemetryService','_docSyncEditingCollabCursorService','update','_sheetTransformSelectionsService','JSONX','_retryConnectingTimer','some','getDocRanges','currentTheme$','registerBeforeClose','_permissionService','UNKNOWN_CODE','failed\x20to\x20apply\x20missed\x20changesets!','[OfflineState]:\x20received\x20rejection.','asObservable','_shouldReportTelemetry','_anchorDot','_cursorShapes','univer-online-status-icon','transformMutationsWithChangeset','startColumn','_onRemoteRejected','IMessageService','permission.content','getParam','_initCommandExecutedListener','0\x200\x2016\x2016','sheetID','_scheduleClearOtherTimer','RemoveRowCommandId','setShapeProps','state','toggleOffline','OnLineSingle','history','LIVESHARE_OPERATION','Injector','saveOfflineData','_onUserLeave','hasOwnProperty','_showConflictNotification','DesktopCollaborationStatusDisplayController','ReplaySubject','CollaborationController','min','collab-text-anchor-','_resendTimer','_colorIndex','getMemberID','_onConflict','collaboration-session-retry','onPointerMove$','_initStatusComponent','_state$','[PendingState]:\x20received\x20rejection.','NodePositionConvertToCursor','getOwnPropertyDescriptor','ILogService','_localeService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','activeSheet$','_scheduleTimestamp','debounce','_toggleOnline','ONLINE','_onFetchMissResult','collaboration-client.offline-data-not-saved','_localCacheService','IURLService','1em','PERMISSION_DENIED','resend','[OfflineState]:\x20received\x20acknowledgement.','DocStateChangeManagerService','red300','send','isTransformMutationsWithChangesetFailure','setCurrentUser','_applyRemoteChangeset','objectType','loadDoc','_hovered','_getSignURL','_sessionStatus$','all','collabStatus.synced','listRoles','LIVESHARE_TERMINATE','getConfig','target','revision','USERS_ENTER','UPDATE_PERMISSION_OBJ','_createSocket','_collaborationController','UPDATE_CURSOR','_disabled','xlink:href','DocIMEInputManagerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_setupBeforeClosingHandler','allowed','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','parseProtocolChangeset','subunit','routeKey','LOCAL_CACHE_INTERVAL_KEY','parse','split','SNAPSHOT_SERVER_URL_KEY','M0\x200H16V16H0z','_removeCollabCursors','_session','_unitID','Rect','LIVESHARE_FETCH_OPERATIONS','ImageIoService','href','_tryEnsureSocket','isTransformMutationFailure','collaboratorID','[CollaborationSessionService]','_acknowledgedAwaitingChangeset','syncEditingCollabCursor','clearInterval','getUnitOnRev','toString','transformChangesets','setUndoRedoMutationParamsCache','addImageSourceCache','_colorAssignService','_type','off-line-single','_exhaustRemoteChangesetQueue','EmptyMutation','getSheetBySheetId','location','collaboration.closeRoom','_name','?size=','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','permission.title','doc.mutation.rich-text-editing','conflict','RECV','IUIPartsService','removeParam','SUCCUSS','Tooltip','839193Waviug','uploadFileServerUrl','univerjs-icon\x20univerjs-icon-','memberID','substring','awaiting','UniverCollaborationClientPlugin','onMissingChangesets','onRemoteAck','useDependency','getCurrentUser','onCommandExecuted','_clearRedo','@univerjs/ui','_candidateSocket','requireSession','Module','fromEvent','collab-text-range-','drawWith','SnapshotService','_clearTimeoutTimer','findNodePositionByCharIndex','/universer-api/snapshot/','CompressMutationService','_shapes','transformStack\x20failed!','commentUpdate$','_updateCollabCursors','[CollaborationSessionService]:\x20socket\x20error','catch','INGEST','CollaborationEntity','createSocket','awaitingChangeset','_cursor','indexOf','height','endRow','fetchMiss','InsertRangeMoveRightCommandId','reverse','url(#off-line-single_clip0_910_343)','_status$','IUniverInstanceService','_onLocalMutation','socket\x20close','LICENSE_EXPORT_SIZE_EXCEEDED','_substituteUndoStack','ICommandService','_cachedData','_changesetReqId','/collaborator','m1Prime','_event$','interceptor','removeMember','SetSelectionsOperation','_compressMutationService','dispose','error','isActive','RETRY_CONNECTING_MAX_COUNT_KEY','/new_changes','_sessions','message$','_initResize','getSheetObject','getCurrentRevOfUnit','[CollaborationEntity]','FromArray','socketService','_createInitialState','endColumn','_render','CollaborationSession','onRemoteChangeset','7337208BmFSiz','_unitStatus','post','transformUndoRedo','create','subscribe','currentColor','UNIVER_SLIDE','Error\x20on\x20receiving\x20event','ThemeService','_substituteRedoStack','get','_onCombEvent','backgroundColor','HELLO','storage','map','visibilityState','_sendHeartbeat','COMMENT_UPDATE','find','size','fillStyle','onlineStatusIcon','_handleLeaveEvent','onReady','data','IHTTPImplementation','transform','UNAUTHENTICATED','Optional','COLLAB_SUBMIT_CHANGESET_URL_KEY','onPointerLeave$','saveImage','createElement','@univerjs/drawing','HEARTBEAT','getTypeOfUnitDisposed$','UnitSnapshot','getFocusedUnit','batchAllowed','_initRequestHeader','_registerDependencies','_joinRoom','listCollaborators','baseRev','_transformUndoredo','icon','&to=','_labelPosition','_onRemoteChangeset','COMPLETION_FINISHED','\x0aCurrent:\x20','SetDocZoomRatioOperation','_clearCollaborationTimeoutTimer','liveShareOperation','_getSheetObject','off-line-single_clip0_910_343','loginUrlKey','members','getUnitStatus$','_undoStacks','apply','createInstance','session.room-full','UniverCollaborationPlugin','_removeClearOtherTimer','_beforeCloseService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','max','VIEW_MAIN','SUBMIT_CHANGESET','replaceState','handleInsertRangeMoveRight','defs','getUniverSheetInstance','_docTransformSelectionsService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','RefRangeService','_retryCount','CollaborationSocketService','roles','_initMergeInterceptor','setConfig','setAlpha','_waitForHeartbeatResponse','_clearUndo','onSyncEditingCollabCursor','UNIVER_DOC','registerHTTPInterceptor','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','close','PSEUDO_FETCH_MISSING_RESULT','saveSheetBlock','HttpExport','from','_onRemoteACK','name','eventID','USERS_LEAVE','RichTextEditingMutation','_themeService','_snapshotService','sendChangesetTimeout','unknown','key','_awaitingChangeset','_ws','_messageService','_getSendChangesetTimeout','title','ranges','ITransformService','every','complete','_getDownloadEndpointURL','string','getUndoRedoMutationParamsCache','_getCurrentRevision','_entities','@univerjs/network','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','c1Prime','_getAPIPrefixPath','APPLY_DUPLICATED','appendMutation','offline','ImageUploadStatusType','_initEventListeners','_socket$','replace','userID','function','random','@univerjs/rpc','searchParams','getMember','_resendTimeout','image/jpg','_loadDoc','_listenToOnlineEvent','_cursors','focused$','_commentUpdate$','CollaborationEvent','getActiveSheet','_pendingMutations','onRemoteRej','APPLY_REVISION_CONFILICT','_initStatusListener','editingUnit','exhaustSavingTask','take','_getMergeRange','_snapshotServerService','_memberService','disposeUnit','collabStatus.fetchMiss','hovered','_userManagerService','round','status','currentSkeleton$','_handleEvent','_onCursorUpdate','getInterceptPoints','assign','csRejEvent','clipPath','CONFLICT','handleInsertCol','length','HEADER_MENU','distinctUntilChanged','startsWith','rev','SEND_CHANGESET_TIMEOUT_KEY','_socketService','_onOffline','CHANGESET_REVISION_CONFILICT','_startTelemetryCollaborationNewChangeset','_logService','AWAITING_WITH_PENDING','override','SheetPermissionInitController','@univerjs/design','COMPRESS_MUTATION_APPLY','CHANGESET_ACK','shareReplay','_transitionLocked','onTransformSelections','RevisionService','getRandomValues','_getCtorByUniverType','_roomMembers$','_socketReady','unsubscribe','AuthzIoHttpService','verdancy600','handleIRemoveRow','COLORS','NOT_COLLAB','forEach','onCommentUpdate','_drawRectRange','clearTimeout','WorkbookEditablePermission','HTTPService','/object','_init','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_httpService','onMissedChangesetFetched','requestParams','localeService','_localStorageService','unit','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','changesets','randomUUID','updatePermissionPoint','_handler','type','_sendHeartbeatTimer','socket$','IPermissionService','/universer-api/comb','/-/object/-/batch_allowed','setTimeout','onStarting','origin','onlineStatusTitle','has','Error','LICENSE_MAX_UNITS_EXCEEDED','useCallback','registerRenderModule','black','cursorInfo$','_injector','_commentService','_docStateChangeManagerService','toStringTag','getValue','switchMap','takeUntil','_scheduleCollaborationTimeoutTimer','actions','INVALID_ARGUMENT','APPLY_PERMISSION_DENIED','add','_transformIMECache','encode','_startDocCollabCursor','getItem','lineTo','/rev/','LocalCacheService','_updateStatus','DocCollaborationEntity','handleDeleteRangeMoveUp','NEW_CHANGESETS','mapTo','isTransformChangesetsSuccess','_throwTelemetryCollaborationNewChangeset','reqId','entries','collab-rect-range-','_collabCursorState$','_updateLocalCache','merge','PERMISSION_REJ','SNAPSHOT_HAS_BEEN_REMOVED','url(#on-line-single_clip0_910_349)','attrs','subscribeEvent','refreshPermission','_transformPreviousActiveRange','infoRsp','_eventUnsubscribe','delay','/universer-api/file/{fileID}/sign-url','not_collab','BuiltInUIPart','gold400','TOO_MANY_REQUESTS','HttpImport','LIVESHARE_REQUEST_HOST','IUndoRedoService','_clearLocalCache','TEXT_RANGE_LAYER_INDEX','on-line-single_clip0_910_349','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','Inject','replaceTextRanges','fetch_missing','session.will-retry','Plugin','x-univer-host','collabStatus.syncing','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','addEventListener','synced','isArray','slice','clear','_heartbeatTimer','_getAPIPrefix','COLLAB_WEB_SOCKET_URL_KEY','_hover','isTransformMutationsWithChangesetSuccess','_state','isInternalEditorID','6131895yNjnpa','_removeRoom','[FetchMissState]','RxDisposable','onRemoteRetry','online','code','1869GvTPDf','JOIN','_rescheduleHeartbeat','pauseCollaboration','fillText','onStateChange','[CollaborationState]:\x20apply\x20error!','/universer-api/oidc/authpage','collaMsg','disposeWithMe','_range','_ensureSubject','setInterval','session.connection-failed','purple300','concat','_collaborationTimeoutTimer','HEARTBEAT_TIMEOUT','sessionStatus','XHRHTTPImplementation','list','BASE64','capture','getCollabEntity','addObject','collaborators','svg','translate(.97)','UNRECOGNIZED','body','className','reconnect','connection\x20error','getTypeOfUnitAdded$','result','getImage','_collabCursorController','sessionStatus$','set','@univerjs/sheets','13608WSoQKJ','HTTPRequest','use','MSG_FOR_ERROR','rxjs/operators','_getScale','_members','onSendChangeset','_registerRenderDependencies','MergeInterceptorFactory','createIdentifier','dispose$','saveSnapshot','Undefined','OFFLINE','INTERNAL_ERROR','roomMembers','/resources','univer-pro.collaboration-client.single-active-unit-service','liveShareNewHost','SHOULD_CLOSE_CONN','_startSheetCollabCursor','range','rxjs','_handleHeartbeatEvent','_unlockTransition','_onRefRangeChange','color','socket\x20open.','getUnhiddenWorksheets','deserializeToCombResponse','_sendingTimer','getRelativeToViewportCoord','_tryReconnect','_getSaveTimeout','mutations','UNIVER_PROJECT','WebSocketService','fill','DocSkeletonManagerService','SNAPSHOT_URL_KEY','push','deserializeRangeWithSheet','bottom','resize','FETCH_MISSING','@univerjs/engine-render','FETCH_MISS','_commandService','collabStatus.notCollab','collabStatus.conflict','_onUserJoin','ERROR_IMAGE_TYPE','55744407OBjUcY','YUUMI_URL_COL_OUT_OF_RANGE','Unknown\x20user','SnapshotServerOverHTTPService','20qCHote','_univerInstanceService','getCollabCursors$','_hideTimer','_remoteChangesetQueue','ImageSourceType','_color','bind','Tools','WebURLService','_entityInit$','toggleOnline','symbol','INotificationService','_notificationService','_listenToOfflineEvent','_submitChangeset','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','SNAPSHOT_INVALID_SNAPSHOT','transformRemoteChangeset','getSkeleton','getTime','error$','NO_OTHER_CLIENTS_EDITING','POST','snapshot','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','EffectRefRangId','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','isPermissionRej','unitId','CollaborationStatus','univer-online-status-title','updateCollaborator','_getSnapshotAPIPrefix','_revisionService','closePath','getCoordByCell','forwardRef','reduce','setParam','_clearHeartbeatTimer','patch','JOINING','getActiveRange','_updateState','_docTransformIMECacheService','OTHER_CLIENTS_EDITING','prototype','assignAColorForMemberID','open$','getSheetBlock','next','getAncestorScale','...','PENDING','image/png','_context','_docSkeletonManagerService','parseChangesetToProtocol','@univerjs/docs','toLowerCase','moveTo','useRef','signUrlServerUrl','closeSession','getCellPositionByOffset','BehaviorSubject','transformSelections','_config','isEditing','{fileID}','_scene','getMergeData','_timeoutTimer','pending','getSheetId','csShouldRetryEvent','_onRemoteRetry','current','_saveCache','onPointerEnter$','[PendingState]:\x20received\x20acknowledgement.','CommentService','_singleActiveUnitService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ERROR_EXCEED_SIZE','joinRsp','_refreshCollabCursors','append','deleteCollaborator','_anchor','InsertSheetMutation','_collabSessionService','InsertRowCommandId','getCurrentUnitForType','_socket','DataLoaderController','registerComponent','m2Prime','init','collaboration_new_changeset','hide','runRefRangeMutations','_updateURLWithCurrentState','executeCommand','DependentOn','now','measureText','ALREADY_EXISTS','FAIL','_getRedoStack','_id','\x0aAfter:\x20','MUTATION','_queuedRemoteChangesets','OffLineSingle','combineLatest','_transformUndoRedoStack','includes','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_onConnectionOpen','cursorInfo','session.collaboration-timeout','getCurrent','path','readAsDataURL','mapDocumentTypeToUniverType','_getAnchorBounding','LICENSE_DISTRO_REJECTED','&source=','fromEventSubject','auth.needGotoLoginAlert'];_0x2c91=function(){return _0x1e8c46;};return _0x2c91();}var Ls=Object[_0x3a85d7(0x329)],js=Object[_0x3a85d7(0x43d)],$s=(_0x18c1bc,_0x41a3e3,_0x1fb334,_0x31d120)=>{const _0x384915=_0x3a85d7;for(var _0x26500c=_0x31d120>0x1?void 0x0:_0x31d120?js(_0x41a3e3,_0x1fb334):_0x41a3e3,_0xba707c=_0x18c1bc[_0x384915(0x16a)]-0x1,_0x56f1c0;_0xba707c>=0x0;_0xba707c--)(_0x56f1c0=_0x18c1bc[_0xba707c])&&(_0x26500c=(_0x31d120?_0x56f1c0(_0x41a3e3,_0x1fb334,_0x26500c):_0x56f1c0(_0x26500c))||_0x26500c);return _0x31d120&&_0x26500c&&Ls(_0x41a3e3,_0x1fb334,_0x26500c),_0x26500c;},we=(_0x5d461b,_0x2878c8)=>(_0x1611a1,_0x730660)=>_0x2878c8(_0x1611a1,_0x730660,_0x5d461b);function Hs(_0x3fab41){const _0x52936a=_0x3a85d7,{unitID:_0x107114,mutations:_0x1c04a8}=_0x3fab41;return{'unitId':_0x107114,'subUnitId':_0x1c04a8[0x0][_0x52936a(0x3d1)]['subUnitId']};}let Ie=class{constructor(_0x47fc72,_0x10c588,_0x3ef707){const _0x42d150=_0x3a85d7;this['_injector']=_0x47fc72,this[_0x42d150(0x30f)]=_0x10c588,this[_0x42d150(0x369)]=_0x3ef707;}['transformSelections'](_0x54e759){const _0x34f771=_0x3a85d7;var _0x20c631,_0x8a9a08,_0x20d3ad,_0x46dc5d;const _0x5b1240=this[_0x34f771(0x1ae)][_0x34f771(0xca)](C['SheetsSelectionsService']),{unitId:_0x32e59d,subUnitId:_0x10ba1b}=Hs(_0x54e759),_0x2dc83e=_0x5b1240[_0x34f771(0x3e3)](_0x32e59d)[_0x34f771(0x34b)](),_0x4781bd=(_0x8a9a08=(_0x20c631=this[_0x34f771(0x369)]['getUnit'](_0x32e59d))==null?void 0x0:_0x20c631[_0x34f771(0x150)]())==null?void 0x0:_0x8a9a08['getSheetId']();if(_0x2dc83e[_0x34f771(0x16a)]===0x0||!_0x32e59d||!_0x10ba1b)return;const _0x5996ab=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x32e59d,'subUnitId':_0x4781bd,'selections':a[_0x34f771(0x268)][_0x34f771(0x3cb)](_0x2dc83e)}}],_0x55e29f=this[_0x34f771(0x30f)][_0x34f771(0x418)](_0x54e759,_0x5996ab);if(!_[_0x34f771(0x1f5)](_0x55e29f))throw _0x55e29f[_0x34f771(0xae)];const _0x1fed33=(_0x46dc5d=(_0x20d3ad=_0x55e29f[_0x34f771(0x2c3)][0x0])==null?void 0x0:_0x20d3ad[_0x34f771(0x3d1)])==null?void 0x0:_0x46dc5d[_0x34f771(0x308)];if(Array['isArray'](_0x1fed33)&&_0x1fed33[_0x34f771(0x16a)]){if(_0x1fed33[_0x34f771(0x16a)]===_0x5996ab[0x0][_0x34f771(0x3d1)][_0x34f771(0x308)][_0x34f771(0x16a)]&&_0x1fed33[_0x34f771(0x130)]((_0x2e9deb,_0x4dbce3)=>a[_0x34f771(0x31d)][_0x34f771(0x350)](_0x2e9deb[_0x34f771(0x23d)],_0x5996ab[0x0][_0x34f771(0x3d1)][_0x34f771(0x308)][_0x4dbce3][_0x34f771(0x23d)])))return;this[_0x34f771(0x1ae)][_0x34f771(0xca)](a[_0x34f771(0xa3)])['executeCommand'](C[_0x34f771(0xab)]['id'],{'unitId':_0x32e59d,'subUnitId':_0x4781bd,'selections':_0x1fed33});}}};Ie=$s([we(0x0,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),we(0x1,_[_0x3a85d7(0x12f)]),we(0x2,a[_0x3a85d7(0x9e)])],Ie);function _0x54ba(_0x1b0c36,_0x411c0a){const _0x2c914e=_0x2c91();return _0x54ba=function(_0x54ba38,_0x49eb98){_0x54ba38=_0x54ba38-0x71;let _0x344416=_0x2c914e[_0x54ba38];return _0x344416;},_0x54ba(_0x1b0c36,_0x411c0a);}const Re=a[_0x3a85d7(0x231)](_0x3a85d7(0x239));var Dt=(_0x421d04=>(_0x421d04[_0x421d04[_0x3a85d7(0x277)]=0x0]=_0x3a85d7(0x277),_0x421d04[_0x421d04[_0x3a85d7(0x28f)]=0x1]=_0x3a85d7(0x28f),_0x421d04))(Dt||{});const nt=0x7530,rt=_0x3a85d7(0x37f);class xs extends a['Disposable']{constructor(){const _0x1eb1a3=_0x3a85d7;super(),u(this,_0x1eb1a3(0x2d0),a[_0x1eb1a3(0x268)][_0x1eb1a3(0x3c2)]()),u(this,_0x1eb1a3(0x343),new Set()),u(this,_0x1eb1a3(0x3b0),new Map()),u(this,'_heartbeatTimer',null),u(this,'_clearOtherTimers',new Map()),u(this,_0x1eb1a3(0xc0),new Map()),this[_0x1eb1a3(0x190)]();}[_0x3a85d7(0xad)](){const _0x5beee9=_0x3a85d7;super[_0x5beee9(0xad)](),this[_0x5beee9(0x3c9)][_0x5beee9(0x189)]((_0x1c95d9,_0x5002d5)=>this[_0x5beee9(0x101)](_0x5002d5)),this['_heartbeatTimer']&&window[_0x5beee9(0x481)](this[_0x5beee9(0x1f1)]);}['getUnitStatus$'](_0x703f3e){const _0x2da70a=_0x3a85d7;return this[_0x2da70a(0x20a)](_0x703f3e)[_0x2da70a(0x3d0)](v[_0x2da70a(0x16c)]());}[_0x3a85d7(0x155)](_0x4e0f58){const _0x429c6b=_0x3a85d7;this[_0x429c6b(0x343)][_0x429c6b(0xd4)]===0x0&&this['_scheduleHeartbeat'](),this[_0x429c6b(0x343)][_0x429c6b(0x1b9)](_0x4e0f58),this[_0x429c6b(0x323)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x4e0f58],'isForwarded':!0x1});}[_0x3a85d7(0x15b)](_0x59ec66){const _0x1038c9=_0x3a85d7;this['_selfUnitIDs'][_0x1038c9(0x3de)](_0x59ec66),this[_0x1038c9(0x343)][_0x1038c9(0xd4)]===0x0&&this[_0x1038c9(0x1f1)]&&window[_0x1038c9(0x481)](this[_0x1038c9(0x1f1)]);}['_init'](){const _0x216504=_0x3a85d7;this[_0x216504(0x208)](a['toDisposable'](v[_0x216504(0x83)](window,_0x216504(0xce))[_0x216504(0xc4)](_0x331782=>{const _0x4fdc92=_0x216504;if(_0x331782[_0x4fdc92(0x128)]!==rt||!_0x331782[_0x4fdc92(0x3f7)])return;const _0x443c53=JSON[_0x4fdc92(0x470)](_0x331782[_0x4fdc92(0x3f7)]);this[_0x4fdc92(0x162)](_0x443c53);}))),window[_0x216504(0x1ec)](_0x216504(0x38c),()=>this[_0x216504(0x323)]({'type':0x1,'memberID':this[_0x216504(0x2d0)],'unitIDs':Array['from'](this[_0x216504(0x343)])}));}[_0x3a85d7(0x162)](_0x26d359){const _0x824924=_0x3a85d7;switch(_0x26d359[_0x824924(0x19d)]){case 0x0:this[_0x824924(0x33b)](_0x26d359);break;case 0x1:this[_0x824924(0xd7)](_0x26d359);break;case 0x2:this[_0x824924(0x23f)](_0x26d359);break;}}[_0x3a85d7(0x33b)](_0x14f8cb){const _0x231b61=_0x3a85d7,{unitIDs:_0x4d5715,memberID:_0x1809c8,isForwarded:_0xd77f57}=_0x14f8cb;_0x4d5715[_0x231b61(0x189)](_0x49597b=>{const _0x8388c8=_0x231b61;if(!_0xd77f57&&this[_0x8388c8(0x3b0)][_0x8388c8(0x1a7)](_0x49597b)&&this[_0x8388c8(0x20a)](_0x49597b)[_0x8388c8(0x294)](0x1),!this[_0x8388c8(0x3b0)]['has'](_0x49597b)||!this[_0x8388c8(0x3b0)][_0x8388c8(0xca)](_0x49597b)[_0x8388c8(0x1a7)](_0x1809c8)){const _0x11d68a=this['_unitOnClients'][_0x8388c8(0xca)](_0x49597b)||new Set();_0x11d68a[_0x8388c8(0x1b9)](_0x1809c8),this[_0x8388c8(0x3b0)][_0x8388c8(0x225)](_0x49597b,_0x11d68a),this['_scheduleClearOtherTimer'](_0x1809c8);}}),_0xd77f57||this[_0x231b61(0x323)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x231b61(0x343)]],'isForwarded':!0x0});}[_0x3a85d7(0x421)](_0x2ef1bc){const _0x5addbf=_0x3a85d7;this['_removeClearOtherTimer'](_0x2ef1bc);const _0x2a3001=window[_0x5addbf(0x1a3)](()=>{const _0x13ddfc=_0x5addbf;this[_0x13ddfc(0x3b0)][_0x13ddfc(0x189)](_0x4d6705=>{_0x4d6705['delete'](_0x2ef1bc);});},nt*0x2);this[_0x5addbf(0x3c9)][_0x5addbf(0x225)](_0x2ef1bc,_0x2a3001);}[_0x3a85d7(0x101)](_0x3dc710){const _0x4ced4=_0x3a85d7;if(this['_clearOtherTimers'][_0x4ced4(0x1a7)](_0x3dc710)){const _0x48f688=this[_0x4ced4(0x3c9)][_0x4ced4(0xca)](_0x3dc710);_0x48f688&&window[_0x4ced4(0x18c)](_0x48f688),this[_0x4ced4(0x3c9)][_0x4ced4(0x225)](_0x3dc710,null);}}[_0x3a85d7(0xd7)](_0x2d372d){const _0x4aab83=_0x3a85d7,{memberID:_0x45a373,unitIDs:_0xa7d952}=_0x2d372d;_0xa7d952[_0x4aab83(0x189)](_0x41136a=>{const _0x55c67d=_0x4aab83;var _0x5cdad9;const _0x5e62ad=this['_unitOnClients'][_0x55c67d(0xca)](_0x41136a);_0x5e62ad&&(_0x5e62ad[_0x55c67d(0x3de)](_0x45a373),(_0x5cdad9=this['_ensureSubject'](_0x41136a))==null||_0x5cdad9[_0x55c67d(0x294)](_0x5e62ad[_0x55c67d(0xd4)]===0x0?0x0:0x1));}),this[_0x4aab83(0x101)](_0x45a373);}[_0x3a85d7(0x23f)](_0x4d3904){const _0x30d65f=_0x3a85d7;this['_scheduleClearOtherTimer'](_0x4d3904[_0x30d65f(0x75)]);}[_0x3a85d7(0x323)](_0x209ad2){const _0x47641e=_0x3a85d7;localStorage['setItem'](rt,JSON[_0x47641e(0x32a)](_0x209ad2));}[_0x3a85d7(0x39a)](){const _0xaed0a7=_0x3a85d7;this['_heartbeatTimer']=window[_0xaed0a7(0x20b)](()=>{const _0x5d34c4=_0xaed0a7;this[_0x5d34c4(0x323)]({'type':0x2,'memberID':this[_0x5d34c4(0x2d0)]});},nt);}['_ensureSubject'](_0x4833ee){const _0x281b85=_0x3a85d7;return this[_0x281b85(0xc0)]['has'](_0x4833ee)||this['_unitStatus'][_0x281b85(0x225)](_0x4833ee,new v[(_0x281b85(0x2a3))](0x0)),this[_0x281b85(0xc0)]['get'](_0x4833ee);}}function yt(_0x16fca0){const _0x5276c0=_0x3a85d7;let _0x1af06a='';for(const _0x2f71aa of _0x16fca0){const {startOffset:_0x100542,endOffset:_0x3861de,isActive:_0x2748ad}=_0x2f71aa;_0x1af06a[_0x5276c0(0x16a)]&&(_0x1af06a+=','),_0x1af06a+=_0x100542+':'+_0x3861de+':'+(_0x2748ad?'1':'0');}return _0x1af06a;}function ks(_0x4eb366){const _0x46c97c=_0x3a85d7,_0x1d0f4a=_0x4eb366[_0x46c97c(0x471)](','),_0x350d70=[];for(const _0x10004f of _0x1d0f4a){const [_0x40dcbe,_0x28a833,_0x53e0e1]=_0x10004f['split'](':');_0x350d70[_0x46c97c(0x250)]({'startOffset':Number(_0x40dcbe),'endOffset':Number(_0x28a833),'collapsed':_0x40dcbe===_0x28a833,'isActive':_0x53e0e1==='1'});}return _0x350d70[_0x46c97c(0x40b)](_0x55fed5=>_0x55fed5[_0x46c97c(0xaf)])||(_0x350d70[0x0][_0x46c97c(0xaf)]=!0x0),_0x350d70;}class Xe extends a['RxDisposable']{constructor(){const _0x1469f5=_0x3a85d7;super(...arguments),u(this,_0x1469f5(0x1cb),new v[(_0x1469f5(0x2a3))](null)),u(this,_0x1469f5(0x3ff),this[_0x1469f5(0x1cb)][_0x1469f5(0x413)]());}[_0x3a85d7(0x480)](_0x6f061){const _0x3e74fd=_0x3a85d7,{unitID:_0xd58522,memberID:_0x22edff,textRanges:_0xcbe642}=_0x6f061,_0x3fecb7=yt(_0xcbe642),_0x4fe232={'unitID':_0xd58522,'memberID':_0x22edff,'selection':_0x3fecb7};this[_0x3e74fd(0x1cb)][_0x3e74fd(0x294)](_0x4fe232);}}var Bs=Object[_0x3a85d7(0x329)],Vs=Object[_0x3a85d7(0x43d)],Ws=(_0x39503a,_0x2b3e38,_0x290a54,_0x3e5728)=>{const _0x2d1adf=_0x3a85d7;for(var _0x4cc205=_0x3e5728>0x1?void 0x0:_0x3e5728?Vs(_0x2b3e38,_0x290a54):_0x2b3e38,_0x77510b=_0x39503a[_0x2d1adf(0x16a)]-0x1,_0x64d818;_0x77510b>=0x0;_0x77510b--)(_0x64d818=_0x39503a[_0x77510b])&&(_0x4cc205=(_0x3e5728?_0x64d818(_0x2b3e38,_0x290a54,_0x4cc205):_0x64d818(_0x4cc205))||_0x4cc205);return _0x3e5728&&_0x4cc205&&Bs(_0x2b3e38,_0x290a54,_0x4cc205),_0x4cc205;},ot=(_0x34f0cd,_0x20e237)=>(_0x58cb4f,_0x2b4ab3)=>_0x20e237(_0x58cb4f,_0x2b4ab3,_0x34f0cd);let pe=class{constructor(_0x5e1d8d,_0x3c0b6c){const _0x335d8e=_0x3a85d7;this[_0x335d8e(0x1ae)]=_0x5e1d8d,this[_0x335d8e(0x30f)]=_0x3c0b6c;}[_0x3a85d7(0x2a4)](_0x541a92){const _0x521d2f=_0x3a85d7;var _0x4e20fe;const _0x367e52=this[_0x521d2f(0x1ae)][_0x521d2f(0xca)](se['DocSelectionManagerService']),_0x322113=(_0x4e20fe=_0x367e52[_0x521d2f(0x40c)]())!=null?_0x4e20fe:[];if(_0x322113['length']===0x0)return;const _0x3bd973=[{'id':_0x521d2f(0x493),'params':{'unitId':_0x541a92[_0x521d2f(0x32c)],'actions':null,'textRanges':_0x322113}}],_0x41001e=this[_0x521d2f(0x30f)]['transformMutationsWithChangeset'](_0x541a92,_0x3bd973);if(!_[_0x521d2f(0x1f5)](_0x41001e))throw _0x41001e['error'];const _0x40399c=_0x41001e[_0x521d2f(0x2c3)][0x0]['params'][_0x521d2f(0x2fc)];Array[_0x521d2f(0x1ee)](_0x40399c)&&_0x40399c['length']&&_0x367e52[_0x521d2f(0x1e5)](_0x40399c,!0x1);}};pe=Ws([ot(0x0,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),ot(0x1,_[_0x3a85d7(0x12f)])],pe);const Fs=new Set([C[_0x3a85d7(0x2bc)]['id']]);function at(_0x11ddf6,_0x2dfb14,_0x32ab3a,_0x2edacb,_0x44fe74){const _0x2a8fcf=_0x3a85d7;var _0x5f100a,_0x320ffe,_0x5e4298,_0x5b28a3;const _0x1aab09=[];for(const _0x4bb50b of _0x11ddf6)if(Fs['has'](_0x4bb50b['id'])){if(_0x1aab09[_0x2a8fcf(0x16a)]>0x0)break;_0x1aab09[_0x2a8fcf(0x250)](_0x4bb50b);break;}else _0x1aab09[_0x2a8fcf(0x250)](_0x4bb50b);const _0x12ead2=(_0x320ffe=(_0x5f100a=_0x44fe74[_0x2a8fcf(0x7c)]())==null?void 0x0:_0x5f100a['userID'])!=null?_0x320ffe:_0x2a8fcf(0x127),_0x469e43=(_0x5b28a3=(_0x5e4298=_0x44fe74[_0x2a8fcf(0x7c)]())==null?void 0x0:_0x5e4298['memberID'])!=null?_0x5b28a3:_0x2a8fcf(0x127);return{'changeset':{'unitID':_0x2dfb14,'type':_[_0x2a8fcf(0x2df)](_0x32ab3a['getUnitType'](_0x2dfb14)),'baseRev':_0x2edacb['getCurrentRevOfUnit'](_0x2dfb14),'revision':0x0,'userID':_0x12ead2,'memberID':_0x469e43,'mutations':_0x1aab09},'pendingMutations':_0x11ddf6['slice'](_0x1aab09[_0x2a8fcf(0x16a)])};}function Gs(_0x2e8c0f,_0x33ac21,_0x2b1ecc,_0x500eb8,_0x1075ef){const _0x4fe28f=_0x3a85d7;var _0x303a30,_0xea3ea7,_0x46e896,_0x379997;const _0x3cb99d=[_0x2e8c0f['reduce']((_0xa6d96d,_0x4a2668)=>{const _0x2ec948=_0x54ba;var _0xb141ae;const {id:_0x5a2c23}=_0xa6d96d,{id:_0x2b1bd4,type:_0x4f7ad8}=_0x4a2668,_0x23f147=(_0xb141ae=_0xa6d96d['params'])!=null?_0xb141ae:{'actions':null},_0xd9937a=_0x4a2668['params'];if(_0x5a2c23&&_0x5a2c23!==_0x2b1bd4)throw new Error(_0x2ec948(0x198)+_0x5a2c23+'\x20-\x20'+_0x2b1bd4+'.');return{..._0xa6d96d,'id':_0x2b1bd4,'type':_0x4f7ad8,'params':{'unitId':_0xd9937a['unitId'],'textRanges':_0xd9937a[_0x2ec948(0x2fc)],'actions':a[_0x2ec948(0x409)][_0x2ec948(0x3e4)](_0x23f147['actions'],_0xd9937a[_0x2ec948(0x1b6)])}};},{})],_0x55e573=(_0xea3ea7=(_0x303a30=_0x1075ef[_0x4fe28f(0x7c)]())==null?void 0x0:_0x303a30[_0x4fe28f(0x142)])!=null?_0xea3ea7:_0x4fe28f(0x127),_0x35ae94=(_0x379997=(_0x46e896=_0x1075ef[_0x4fe28f(0x7c)]())==null?void 0x0:_0x46e896[_0x4fe28f(0x75)])!=null?_0x379997:'unknown';return{'changeset':{'unitID':_0x33ac21,'type':_[_0x4fe28f(0x2df)](_0x2b1ecc[_0x4fe28f(0x387)](_0x33ac21)),'baseRev':_0x500eb8['getCurrentRevOfUnit'](_0x33ac21),'revision':0x0,'userID':_0x55e573,'memberID':_0x35ae94,'mutations':_0x3cb99d},'pendingMutations':[]};}function Ut(_0x3dd232,_0x49b29d){const _0x5203f1=_0x3a85d7,_0x5d85a6=new v[(_0x5203f1(0x42f))](0x1);return setTimeout(()=>_0x5d85a6[_0x5203f1(0x294)](_0x49b29d),_0x3dd232),_0x5d85a6[_0x5203f1(0x413)]()[_0x5203f1(0x3d0)](v['take'](0x1));}const Ys={'id':C[_0x3a85d7(0x48b)]['id'],'type':a[_0x3a85d7(0x317)][_0x3a85d7(0x2d2)],'params':{}};var Ks=Object['defineProperty'],qs=Object[_0x3a85d7(0x43d)],z=(_0x17fcfd,_0x1dbb6c,_0x18a4a8,_0x514b1e)=>{for(var _0x4b1872=_0x514b1e>0x1?void 0x0:_0x514b1e?qs(_0x1dbb6c,_0x18a4a8):_0x1dbb6c,_0x36980f=_0x17fcfd['length']-0x1,_0x50a10f;_0x36980f>=0x0;_0x36980f--)(_0x50a10f=_0x17fcfd[_0x36980f])&&(_0x4b1872=(_0x514b1e?_0x50a10f(_0x1dbb6c,_0x18a4a8,_0x4b1872):_0x50a10f(_0x4b1872))||_0x4b1872);return _0x514b1e&&_0x4b1872&&Ks(_0x1dbb6c,_0x18a4a8,_0x4b1872),_0x4b1872;},g=(_0x9f7f69,_0x5cca4d)=>(_0x4c17dd,_0x25d38f)=>_0x5cca4d(_0x4c17dd,_0x25d38f,_0x9f7f69),U=(_0x1a9761=>(_0x1a9761['NOT_COLLAB']=_0x3a85d7(0x1d9),_0x1a9761[_0x3a85d7(0x358)]=_0x3a85d7(0x1ed),_0x1a9761[_0x3a85d7(0x297)]=_0x3a85d7(0x2ab),_0x1a9761[_0x3a85d7(0x383)]=_0x3a85d7(0x77),_0x1a9761['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x1a9761['FETCH_MISS']=_0x3a85d7(0x1e6),_0x1a9761[_0x3a85d7(0x168)]=_0x3a85d7(0x494),_0x1a9761[_0x3a85d7(0x235)]=_0x3a85d7(0x13d),_0x1a9761))(U||{});const Pt=0xea60;class J{constructor(_0xbd7e3b,_0x47b2cc,_0xadea70,_0x3318a0,_0x2b7f94,_0x518e55,_0x49604e,_0x240e12,_0x36bc54){const _0x398770=_0x3a85d7;u(this,'_awaitingChangeset',null),u(this,_0x398770(0x151),[]),(this['unitID']=_0xbd7e3b,this[_0x398770(0x19d)]=_0x47b2cc,this[_0x398770(0x19c)]=_0x2b7f94,this[_0x398770(0x257)]=_0x518e55,this['_undoRedoService']=_0x49604e,this[_0x398770(0x283)]=_0x240e12,this[_0x398770(0x448)]=_0x36bc54,this[_0x398770(0x129)]=_0xadea70,this['_pendingMutations']=_0x3318a0);}['_checkMissing'](_0x524507){const _0x663bb=_0x3a85d7,_0x22d485=this['_revisionService'][_0x663bb(0xb6)](this[_0x663bb(0x32c)]);return _0x524507[_0x663bb(0x45f)]>_0x22d485+0x1?(this[_0x663bb(0x19c)][_0x663bb(0x79)]({'from':_0x22d485,'to':_0x524507['revision']-0x1}),!0x0):!0x1;}[_0x3a85d7(0xed)](_0x7f62a){const _0x2fae8c=_0x3a85d7;this['_undoRedoService'][_0x2fae8c(0xc2)](this[_0x2fae8c(0x32c)],_0x7f62a);}[_0x3a85d7(0x3cf)](_0x166950){const _0x2e5f17=_0x3a85d7;var _0x1adc1b,_0xe0e04e;(_0xe0e04e=(_0x1adc1b=this[_0x2e5f17(0x19c)])[_0x2e5f17(0x17d)])==null||_0xe0e04e[_0x2e5f17(0x357)](_0x1adc1b,_0x166950);}[_0x3a85d7(0x1ba)](_0x104dc0){const _0x30ca16=_0x3a85d7;var _0x9bcc1a,_0x2eb2a4;return(_0x2eb2a4=(_0x9bcc1a=this['_handler'])[_0x30ca16(0x2ea)])==null?void 0x0:_0x2eb2a4['call'](_0x9bcc1a,_0x104dc0);}[_0x3a85d7(0x37d)](_0x185ad0){const _0x318851=_0x3a85d7;var _0x48e8b1,_0x463ec7,_0x2c7578;return(_0x2c7578=(_0x463ec7=(_0x48e8b1=this[_0x318851(0x19c)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x463ec7[_0x318851(0x357)](_0x48e8b1,_0x185ad0))!=null?_0x2c7578:_0x185ad0;}[_0x3a85d7(0x3aa)](_0x4fb220){const _0x3417ce=_0x3a85d7;var _0x49ea12,_0x4ab1c8;if(this['type']===$[_0x3417ce(0x117)]){const {unitID:_0x4254d4,mutations:_0x36fae8,memberID:_0x570027}=_0x4fb220,_0x3c04f8=_0x36fae8[0x0]['params']['textRanges'];Array[_0x3417ce(0x1ee)](_0x3c04f8)&&_0x3c04f8[_0x3417ce(0x16a)]>0x0&&((_0x4ab1c8=(_0x49ea12=this[_0x3417ce(0x19c)])[_0x3417ce(0x116)])==null||_0x4ab1c8[_0x3417ce(0x357)](_0x49ea12,{'unitID':_0x4254d4,'memberID':_0x570027,'textRanges':_0x3c04f8}));}}['_updateLocalCache'](){const _0x2e4999=_0x3a85d7;this[_0x2e4999(0x448)]['updateOfflineData'](this[_0x2e4999(0x32c)],this[_0x2e4999(0x19d)],this['_awaitingChangeset'],this[_0x2e4999(0x151)]);}[_0x3a85d7(0x135)](){const _0x4140bb=_0x3a85d7;return this[_0x4140bb(0x283)][_0x4140bb(0xb6)](this[_0x4140bb(0x32c)]);}[_0x3a85d7(0x30d)](){const _0x4f2183=_0x3a85d7;this['_revisionService']['incrementRevOfUnit'](this[_0x4f2183(0x32c)]);}[_0x3a85d7(0x361)](_0xc30cae){const _0xd3551e=_0x3a85d7;var _0x36525d;const _0x596392=this[_0xd3551e(0x37d)](_0xc30cae),_0x256019=a['sequenceExecute'](_0x596392[_0xd3551e(0x24a)],this[_0xd3551e(0x257)],{'fromCollab':!0x0});if(!_0x256019[_0xd3551e(0x221)])throw _0x256019[_0xd3551e(0xae)]instanceof Error?_0x256019[_0xd3551e(0xae)]:new Error((_0x36525d=_0x256019[_0xd3551e(0xae)])!=null?_0x36525d:_0xd3551e(0x205));this[_0xd3551e(0x1ba)](_0x596392),this[_0xd3551e(0xed)](_0xc30cae),this[_0xd3551e(0x3cf)](_0x596392),this[_0xd3551e(0x3aa)](_0x596392),this['_incrementRevisionNumber']();}}let ie=class extends J{constructor(_0x143ec0,_0x83504b,_0x497817,_0xd0364a,_0x41aa9a,_0x24ae82,_0x252a97,_0x267e76,_0x574df1,_0x4e8072){const _0x4dfac2=_0x3a85d7;super(_0x143ec0,_0x83504b,null,[],_0x497817,_0x267e76,_0x252a97,_0xd0364a,_0x41aa9a),u(this,_0x4dfac2(0x160),_0x4dfac2(0x1ed)),(this[_0x4dfac2(0x1ae)]=_0x24ae82,this[_0x4dfac2(0x174)]=_0x574df1,this[_0x4dfac2(0x30f)]=_0x4e8072);}[_0x3a85d7(0x13c)](_0x4bdc51){const _0x2de039=_0x3a85d7,_0x23472d=this[_0x2de039(0x1ae)][_0x2de039(0xfe)](k,this[_0x2de039(0x32c)],this['type'],[_0x4bdc51],this[_0x2de039(0x19c)]);return _0x23472d[_0x2de039(0x362)](),_0x23472d[_0x2de039(0x1cc)](),_0x23472d;}[_0x3a85d7(0xbe)](_0x31ddc7){const _0x51acbc=_0x3a85d7;if(this[_0x51acbc(0x3b2)](_0x31ddc7))return this['_injector'][_0x51acbc(0xfe)](x,this['unitID'],this[_0x51acbc(0x19d)],null,[],null,[_0x31ddc7],this[_0x51acbc(0x19c)]);try{const _0x218a55=this[_0x51acbc(0x30f)][_0x51acbc(0x418)](_0x31ddc7,[Ys]);if(_[_0x51acbc(0x1f5)](_0x218a55)){const {c1Prime:_0x11b3ee}=_0x218a55;return this[_0x51acbc(0x361)](_0x11b3ee),this;}throw _0x218a55['error'];}catch(_0x5957e8){return this[_0x51acbc(0x174)][_0x51acbc(0xae)](_0x5957e8),this[_0x51acbc(0x436)](!0x1);}}[_0x3a85d7(0x436)](_0x3c07b2){const _0x6ad4bc=_0x3a85d7;return this['_injector'][_0x6ad4bc(0xfe)](F,this['unitID'],this[_0x6ad4bc(0x19d)],null,[],this['_handler'],_0x3c07b2);}[_0x3a85d7(0x7a)](){const _0x20b001=_0x3a85d7;throw new Error(_0x20b001(0x31f));}[_0x3a85d7(0x152)](){const _0x2b9758=_0x3a85d7;throw new Error(_0x2b9758(0x374));}[_0x3a85d7(0x1fc)](){return this;}[_0x3a85d7(0x425)](){const _0x2d7ef7=_0x3a85d7;return this[_0x2d7ef7(0x1ae)][_0x2d7ef7(0xfe)](G,this[_0x2d7ef7(0x32c)],this['type'],null,[],this[_0x2d7ef7(0x19c)]);}[_0x3a85d7(0x26b)](){return this;}[_0x3a85d7(0x44c)](){const _0x2c92f2=_0x3a85d7;throw new Error(_0x2c92f2(0x46b));}[_0x3a85d7(0x99)](){const _0x14c77f=_0x3a85d7,_0x27c8a8=this['_revisionService'][_0x14c77f(0xb6)](this['unitID']);return this[_0x14c77f(0x19c)]['onMissingChangesets']({'from':_0x27c8a8,'to':0x0}),this[_0x14c77f(0x1ae)][_0x14c77f(0xfe)](x,this[_0x14c77f(0x32c)],this[_0x14c77f(0x19d)],null,[],null,[],this[_0x14c77f(0x19c)]);}};ie=z([g(0x3,a[_0x3a85d7(0x1e4)](_['RevisionService'])),g(0x4,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),g(0x5,a['Inject'](a[_0x3a85d7(0x429)])),g(0x6,a['IUndoRedoService']),g(0x7,a['ICommandService']),g(0x8,a[_0x3a85d7(0x43e)]),g(0x9,_[_0x3a85d7(0x12f)])],ie);let k=class extends J{constructor(_0x32fb0e,_0x46e5f0,_0x5c5e57,_0x5d2ce7,_0x3f2ea4,_0x4d0118,_0x3ffc9c,_0x3d535b,_0x370713,_0x344f4b,_0x4615f6,_0x44de73,_0x73814d,_0x5b544b){const _0x2f54c4=_0x3a85d7;super(_0x32fb0e,_0x46e5f0,null,_0x5c5e57,_0x5d2ce7,_0x344f4b,_0x5b544b,_0x4d0118,_0x3ffc9c),u(this,'status',_0x2f54c4(0x2ab)),u(this,_0x2f54c4(0x442),null),u(this,_0x2f54c4(0x246),null),(this[_0x2f54c4(0x1ae)]=_0x3f2ea4,this[_0x2f54c4(0x15a)]=_0x3d535b,this[_0x2f54c4(0x174)]=_0x370713,this['_configService']=_0x4615f6,this[_0x2f54c4(0x30f)]=_0x44de73,this[_0x2f54c4(0x261)]=_0x73814d);}[_0x3a85d7(0x13c)](_0x14aabf){const _0x417125=_0x3a85d7;return this[_0x417125(0x151)]['push'](_0x14aabf),this['_updateLocalCache'](),this;}[_0x3a85d7(0xbe)](_0x29116b){const _0x4198b4=_0x3a85d7;if(this[_0x4198b4(0x3b2)](_0x29116b))return this[_0x4198b4(0x310)](),this[_0x4198b4(0x1ae)]['createInstance'](x,this['unitID'],this[_0x4198b4(0x19d)],null,this[_0x4198b4(0x151)],null,[_0x29116b],this['_handler']);try{const _0x4940e8=this[_0x4198b4(0x30f)][_0x4198b4(0x418)](_0x29116b,this[_0x4198b4(0x151)]);if(_[_0x4198b4(0x1f5)](_0x4940e8)){const {c1Prime:_0x476bcb,m2Prime:_0x247453}=_0x4940e8;this[_0x4198b4(0x361)](_0x476bcb);const _0x2442db=this['_injector'][_0x4198b4(0xfe)](k,this['unitID'],this['type'],_0x247453,this[_0x4198b4(0x19c)]);return this['_clearScheduledTask'](),_0x2442db['_schedule'](this[_0x4198b4(0x442)]?Math[_0x4198b4(0x104)](0x0,new Date()['getTime']()-this[_0x4198b4(0x442)]):this[_0x4198b4(0x12c)]()),_0x2442db;}throw _0x4940e8[_0x4198b4(0xae)];}catch(_0x28936e){return this[_0x4198b4(0x174)][_0x4198b4(0xae)](_0x28936e),this[_0x4198b4(0x436)](!0x1);}}[_0x3a85d7(0x7a)](){const _0x5e9f87=_0x3a85d7;throw new Error(_0x5e9f87(0x2b2));}[_0x3a85d7(0x152)](){const _0x48130f=_0x3a85d7;throw new Error(_0x48130f(0x43b));}['onRemoteRetry'](){return this;}[_0x3a85d7(0x425)](){const _0x1f0441=_0x3a85d7;return this[_0x1f0441(0x310)](),this[_0x1f0441(0x1ae)][_0x1f0441(0xfe)](G,this[_0x1f0441(0x32c)],this['type'],null,this['_pendingMutations'],this[_0x1f0441(0x19c)]);}[_0x3a85d7(0x26b)](){return this;}[_0x3a85d7(0x362)](_0xf32657){const _0x4af989=_0x3a85d7,_0x263e73=_0xf32657!=null?_0xf32657:this[_0x4af989(0x12c)]();this[_0x4af989(0x442)]=new Date()[_0x4af989(0x275)](),this[_0x4af989(0x246)]=window[_0x4af989(0x1a3)](()=>{const _0x349ea1=_0x4af989;this[_0x349ea1(0x310)]();let _0x28023b=null;switch(this[_0x349ea1(0x19d)]){case $[_0x349ea1(0x35c)]:{_0x28023b=at(this[_0x349ea1(0x151)],this[_0x349ea1(0x32c)],this[_0x349ea1(0x261)],this[_0x349ea1(0x283)],this[_0x349ea1(0x15a)]);break;}case $[_0x349ea1(0x117)]:{this[_0x349ea1(0x151)][_0x349ea1(0x130)](_0x1865c1=>_0x1865c1['id']===se[_0x349ea1(0x123)]['id'])?_0x28023b=Gs(this[_0x349ea1(0x151)],this['unitID'],this[_0x349ea1(0x261)],this[_0x349ea1(0x283)],this['_memberService']):_0x28023b=at(this['_pendingMutations'],this[_0x349ea1(0x32c)],this[_0x349ea1(0x261)],this[_0x349ea1(0x283)],this[_0x349ea1(0x15a)]);break;}default:throw new Error(_0x349ea1(0x34c)+this[_0x349ea1(0x19d)]+'\x20in\x20_schedule.');}const {changeset:_0x1614f1,pendingMutations:_0x1c5bff}=_0x28023b;this[_0x349ea1(0x19c)][_0x349ea1(0x22e)](_0x1614f1);const _0x1b054f=_0x1c5bff[_0x349ea1(0x16a)]?this[_0x349ea1(0x1ae)]['createInstance'](B,this[_0x349ea1(0x32c)],this[_0x349ea1(0x19d)],_0x1614f1,_0x1c5bff,this['_handler'],void 0x0):this[_0x349ea1(0x1ae)][_0x349ea1(0xfe)](W,this[_0x349ea1(0x32c)],this[_0x349ea1(0x19d)],_0x1614f1,this[_0x349ea1(0x19c)]);_0x1b054f[_0x349ea1(0x1cc)](),this[_0x349ea1(0x19c)][_0x349ea1(0x204)](this,_0x1b054f);},_0x263e73);}[_0x3a85d7(0x12c)](){const _0x4eb69f=_0x3a85d7;var _0x15f5f0;const _0x10abd5=this[_0x4eb69f(0x365)][_0x4eb69f(0x45d)](L);return(_0x15f5f0=_0x10abd5==null?void 0x0:_0x10abd5[_0x4eb69f(0x126)])!=null?_0x15f5f0:Qt;}[_0x3a85d7(0x44c)](){const _0x243fee=_0x3a85d7;throw new Error(_0x243fee(0x138));}['_clearScheduledTask'](){const _0x41c340=_0x3a85d7;this[_0x41c340(0x246)]!=null&&(clearTimeout(this[_0x41c340(0x246)]),this[_0x41c340(0x246)]=null);}[_0x3a85d7(0x436)](_0x624ad){const _0x2d62b5=_0x3a85d7;return this['_clearScheduledTask'](),this[_0x2d62b5(0x1ae)]['createInstance'](F,this[_0x2d62b5(0x32c)],this[_0x2d62b5(0x19d)],null,this[_0x2d62b5(0x151)],this[_0x2d62b5(0x19c)],_0x624ad);}};k=z([g(0x4,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),g(0x5,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x17e)])),g(0x6,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),g(0x7,a[_0x3a85d7(0x1e4)](X)),g(0x8,a['ILogService']),g(0x9,a['ICommandService']),g(0xa,a[_0x3a85d7(0x3ba)]),g(0xb,_[_0x3a85d7(0x12f)]),g(0xc,a[_0x3a85d7(0x9e)]),g(0xd,a['IUndoRedoService'])],k);let W=class extends J{constructor(_0x4a7dc4,_0x1cd015,_0x29a090,_0x3aaf5c,_0x4903d1,_0x25e699,_0x281d2a,_0x14b993,_0x51f01b,_0x37c997,_0x553b17){const _0x2f3f08=_0x3a85d7;super(_0x4a7dc4,_0x1cd015,_0x29a090,[],_0x3aaf5c,_0x14b993,_0x553b17,_0x25e699,_0x281d2a),u(this,'status',_0x2f3f08(0x77)),u(this,_0x2f3f08(0x148),0x0),u(this,_0x2f3f08(0x433)),u(this,_0x2f3f08(0x3c1)),(this[_0x2f3f08(0x1ae)]=_0x4903d1,this['_logService']=_0x51f01b,this[_0x2f3f08(0x30f)]=_0x37c997);}['appendMutation'](_0x546b3f){const _0x5d215b=_0x3a85d7;this[_0x5d215b(0x310)]();const _0xd12933=this[_0x5d215b(0x1ae)][_0x5d215b(0xfe)](B,this[_0x5d215b(0x32c)],this[_0x5d215b(0x19d)],this[_0x5d215b(0x129)],[_0x546b3f],this[_0x5d215b(0x19c)],this['_resendTimer']);return _0xd12933[_0x5d215b(0x1cc)](),_0xd12933;}['onRemoteChangeset'](_0x560995){const _0x4da109=_0x3a85d7;if(this[_0x4da109(0x3b2)](_0x560995))return this[_0x4da109(0x310)](),this[_0x4da109(0x1ae)][_0x4da109(0xfe)](x,this['unitID'],this[_0x4da109(0x19d)],this[_0x4da109(0x129)],[],null,[_0x560995],this[_0x4da109(0x19c)]);try{const _0x4d4307=this[_0x4da109(0x30f)][_0x4da109(0x484)]([_0x560995],[this['_awaitingChangeset']],!0x1);if(_[_0x4da109(0x1c6)](_0x4d4307)){const {c1Prime:_0x2615c0,c2Prime:_0x684e3b}=_0x4d4307;this['_executeRemoteChangeset'](_0x2615c0[0x0]),_0x684e3b[0x0]['baseRev']=this[_0x4da109(0x135)](),this[_0x4da109(0x310)]();const _0x507ccb=this['_injector'][_0x4da109(0xfe)](W,this[_0x4da109(0x32c)],this[_0x4da109(0x19d)],_0x684e3b[0x0],this[_0x4da109(0x19c)]);return _0x507ccb[_0x4da109(0x1cc)](),_0x507ccb;}return this['_onConflict'](!0x1);}catch(_0x174884){return this[_0x4da109(0x174)][_0x4da109(0xae)](_0x174884),this[_0x4da109(0x436)](!0x1);}}[_0x3a85d7(0x7a)](_0x3f5aad){const _0xfb1a4b=_0x3a85d7;this[_0xfb1a4b(0x310)]();const _0xd3ac2e=this[_0xfb1a4b(0x283)][_0xfb1a4b(0xb6)](this[_0xfb1a4b(0x32c)]);if(_0x3f5aad[_0xfb1a4b(0x45f)]<_0xd3ac2e-0x1)return this;if(this[_0xfb1a4b(0x3b2)](_0x3f5aad))return this[_0xfb1a4b(0x1ae)][_0xfb1a4b(0xfe)](x,this[_0xfb1a4b(0x32c)],this[_0xfb1a4b(0x19d)],null,[],this[_0xfb1a4b(0x129)],[],this[_0xfb1a4b(0x19c)]);this[_0xfb1a4b(0x30d)]();const _0x24f49b=this['_injector'][_0xfb1a4b(0xfe)](ie,this['unitID'],this[_0xfb1a4b(0x19d)],this[_0xfb1a4b(0x19c)]);return _0x24f49b[_0xfb1a4b(0x1cc)](),_0x24f49b;}[_0x3a85d7(0x152)](_0x19e571){const _0xf978b=_0x3a85d7;return this[_0xf978b(0x436)](!!(_0x19e571!=null&&_0x19e571['isPermissionRej']));}[_0x3a85d7(0x1fc)](_0x5482a4){const _0x385c82=_0x3a85d7;return this[_0x385c82(0x148)]>Pt?this[_0x385c82(0x425)]():(this[_0x385c82(0x433)]=Ut(this[_0x385c82(0x148)],{'timeout':this[_0x385c82(0x148)],'reqId':_0x5482a4['reqId']}),this[_0x385c82(0x3c1)]=this['_resendTimer'][_0x385c82(0xc4)](({reqId:_0x26dbbc,timeout:_0x276241})=>{const _0x1a5674=_0x385c82;this[_0x1a5674(0x2fb)](_0x26dbbc,_0x276241);}),this);}[_0x3a85d7(0x425)](){const _0x13b7c8=_0x3a85d7;return this[_0x13b7c8(0x310)](),this[_0x13b7c8(0x1ae)][_0x13b7c8(0xfe)](G,this[_0x13b7c8(0x32c)],this[_0x13b7c8(0x19d)],this[_0x13b7c8(0x129)],[],this[_0x13b7c8(0x19c)]);}['toggleOnline'](){return this;}[_0x3a85d7(0x44c)](){const _0x39a90e=_0x3a85d7;this[_0x39a90e(0x19c)][_0x39a90e(0x22e)](this['_awaitingChangeset']);}['_onConflict'](_0x5db2c3){const _0x35072e=_0x3a85d7;return this[_0x35072e(0x310)](),this[_0x35072e(0x1ae)][_0x35072e(0xfe)](F,this[_0x35072e(0x32c)],this[_0x35072e(0x19d)],this['_awaitingChangeset'],[],this[_0x35072e(0x19c)],_0x5db2c3);}[_0x3a85d7(0x2fb)](_0x707c5c,_0x17766f){const _0x366fb1=_0x3a85d7;var _0x214026;_0x707c5c===((_0x214026=this[_0x366fb1(0x129)])==null?void 0x0:_0x214026[_0x366fb1(0x1c8)])&&(this[_0x366fb1(0x44c)](),this[_0x366fb1(0x148)]=_0x17766f===0x0?0x3e8:_0x17766f*0x2);}[_0x3a85d7(0x310)](){const _0x4bc946=_0x3a85d7;var _0x338288;(_0x338288=this['_sender'])==null||_0x338288[_0x4bc946(0x183)](),this[_0x4bc946(0x148)]=0x0;}};W=z([g(0x4,a[_0x3a85d7(0x1e4)](a['Injector'])),g(0x5,a[_0x3a85d7(0x1e4)](_['RevisionService'])),g(0x6,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),g(0x7,a[_0x3a85d7(0xa3)]),g(0x8,a[_0x3a85d7(0x43e)]),g(0x9,_['ITransformService']),g(0xa,a[_0x3a85d7(0x1df)])],W);let B=class extends J{constructor(_0x5d2ad6,_0x25a37d,_0x380a89,_0x4a1d2c,_0x52853c,_0x3d972a,_0x10d6bd,_0x51cf83,_0x141cbc,_0x1ee897,_0x28bc27,_0x17f817,_0x3ea6c6){const _0xfd1951=_0x3a85d7;super(_0x5d2ad6,_0x25a37d,_0x380a89,_0x4a1d2c,_0x52853c,_0x1ee897,_0x3ea6c6,_0x51cf83,_0x141cbc),u(this,_0xfd1951(0x160),'awaiting_with_pending'),u(this,_0xfd1951(0x148),0x0),u(this,_0xfd1951(0x433)),u(this,_0xfd1951(0x3c1)),(this[_0xfd1951(0x1ae)]=_0x10d6bd,this['_logService']=_0x28bc27,this[_0xfd1951(0x30f)]=_0x17f817,_0x3d972a&&(this[_0xfd1951(0x433)]=_0x3d972a,this[_0xfd1951(0x3c1)]=this[_0xfd1951(0x433)][_0xfd1951(0xc4)](({reqId:_0xc57851,timeout:_0x2ff755})=>{const _0x2514d0=_0xfd1951;this[_0x2514d0(0x2fb)](_0xc57851,_0x2ff755);})));}['appendMutation'](_0x5f0c70){return this['_pendingMutations']['push'](_0x5f0c70),this;}['onRemoteChangeset'](_0xfa78ef){const _0x341213=_0x3a85d7;if(this['_checkMissing'](_0xfa78ef))return this[_0x341213(0x310)](),this[_0x341213(0x1ae)][_0x341213(0xfe)](x,this['unitID'],this[_0x341213(0x19d)],this['_awaitingChangeset'],this[_0x341213(0x151)],null,[_0xfa78ef],this[_0x341213(0x19c)]);try{const _0x551a16=this[_0x341213(0x30f)][_0x341213(0x484)]([_0xfa78ef],[this['_awaitingChangeset']],!0x1);if(_[_0x341213(0x1c6)](_0x551a16)){const {c1Prime:_0x4f1cdf,c2Prime:_0x1a29ba}=_0x551a16,_0x1f014f=this['_transformService']['transformMutationsWithChangeset'](_0x4f1cdf[0x0],this['_pendingMutations']);if(_[_0x341213(0x1f5)](_0x1f014f)){const {c1Prime:_0x3be05b,m2Prime:_0x477453}=_0x1f014f;return this[_0x341213(0x361)](_0x3be05b),_0x1a29ba[0x0][_0x341213(0xec)]=this[_0x341213(0x135)](),this[_0x341213(0x310)](),this[_0x341213(0x1ae)][_0x341213(0xfe)](B,this[_0x341213(0x32c)],this[_0x341213(0x19d)],_0x1a29ba[0x0],_0x477453,this['_handler'],void 0x0);}throw _0x1f014f[_0x341213(0xae)];}throw _0x551a16['error'];}catch(_0x2e4719){return this[_0x341213(0x174)][_0x341213(0xae)](_0x2e4719),this[_0x341213(0x436)](!0x1);}}['onRemoteAck'](_0x561c15){const _0x54d8ad=_0x3a85d7;if(this['_clearScheduledTask'](),this['_checkMissing'](_0x561c15))return this[_0x54d8ad(0x1ae)][_0x54d8ad(0xfe)](x,this[_0x54d8ad(0x32c)],this['type'],null,this[_0x54d8ad(0x151)],this[_0x54d8ad(0x129)],[],this[_0x54d8ad(0x19c)]);this['_incrementRevisionNumber']();const _0x5e596b=this[_0x54d8ad(0x1ae)][_0x54d8ad(0xfe)](k,this[_0x54d8ad(0x32c)],this['type'],this[_0x54d8ad(0x151)],this[_0x54d8ad(0x19c)]);return _0x5e596b[_0x54d8ad(0x362)](),_0x5e596b[_0x54d8ad(0x1cc)](),_0x5e596b;}[_0x3a85d7(0x152)](_0x4e7d76){const _0x24d24c=_0x3a85d7;return this[_0x24d24c(0x436)](!!(_0x4e7d76!=null&&_0x4e7d76[_0x24d24c(0x27d)]));}[_0x3a85d7(0x1fc)](_0x1fc65b){const _0x521b73=_0x3a85d7;return this[_0x521b73(0x148)]>Pt?this[_0x521b73(0x425)]():(this[_0x521b73(0x433)]=Ut(this[_0x521b73(0x148)],{'timeout':this[_0x521b73(0x148)],'reqId':_0x1fc65b['reqId']}),this[_0x521b73(0x3c1)]=this[_0x521b73(0x433)][_0x521b73(0xc4)](({reqId:_0x2b9087,timeout:_0xaa00cf})=>{const _0x977022=_0x521b73;this[_0x977022(0x2fb)](_0x2b9087,_0xaa00cf);}),this);}[_0x3a85d7(0x425)](){const _0x281485=_0x3a85d7;return this[_0x281485(0x310)](),this[_0x281485(0x1ae)][_0x281485(0xfe)](G,this[_0x281485(0x32c)],this['type'],this[_0x281485(0x129)],this['_pendingMutations'],this['_handler']);}[_0x3a85d7(0x26b)](){return this;}['resend'](){const _0x20d97d=_0x3a85d7;this[_0x20d97d(0x19c)]['onSendChangeset'](this[_0x20d97d(0x129)]);}[_0x3a85d7(0x436)](_0x1f3d31){const _0x491e8d=_0x3a85d7;return this[_0x491e8d(0x310)](),this[_0x491e8d(0x1ae)][_0x491e8d(0xfe)](F,this[_0x491e8d(0x32c)],this[_0x491e8d(0x19d)],null,this['_pendingMutations'],this[_0x491e8d(0x19c)],_0x1f3d31);}[_0x3a85d7(0x2fb)](_0x3b0e0f,_0x15f6d7){const _0x1c4e69=_0x3a85d7;var _0x42cbfa;_0x3b0e0f===((_0x42cbfa=this['_awaitingChangeset'])==null?void 0x0:_0x42cbfa[_0x1c4e69(0x1c8)])&&(this[_0x1c4e69(0x44c)](),this['_resendTimeout']=_0x15f6d7===0x0?0x3e8:_0x15f6d7*0x2);}[_0x3a85d7(0x310)](){const _0x5359e9=_0x3a85d7;var _0x3197e0;(_0x3197e0=this[_0x5359e9(0x3c1)])==null||_0x3197e0[_0x5359e9(0x183)](),this[_0x5359e9(0x148)]=0x0;}};B=z([g(0x6,a[_0x3a85d7(0x1e4)](a['Injector'])),g(0x7,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x17e)])),g(0x8,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),g(0x9,a[_0x3a85d7(0xa3)]),g(0xa,a[_0x3a85d7(0x43e)]),g(0xb,_[_0x3a85d7(0x12f)]),g(0xc,a[_0x3a85d7(0x1df)])],B);let F=class extends J{constructor(_0x1aeafb,_0x402a10,_0x3a3ee7,_0x44a187,_0x230efb,_0x2e0434=!0x1,_0x104fd3,_0x21f6d0,_0x3124fa,_0x2590d0,_0x3f9529,_0x4ace18,_0x16735d){const _0x1a831a=_0x3a85d7;super(_0x1aeafb,_0x402a10,_0x3a3ee7,_0x44a187,_0x230efb,_0x21f6d0,_0x3124fa,_0x3f9529,_0x2590d0),u(this,_0x1a831a(0x160),'conflict'),(this[_0x1a831a(0x340)]=_0x2e0434,this[_0x1a831a(0x40f)]=_0x104fd3,this[_0x1a831a(0x43f)]=_0x4ace18,this['_notificationService']=_0x16735d,this[_0x1a831a(0x42d)](),this[_0x1a831a(0x1e0)](),this[_0x1a831a(0x32e)]());}[_0x3a85d7(0x13c)](){return this;}[_0x3a85d7(0xbe)](){return this;}[_0x3a85d7(0x7a)](){return this;}[_0x3a85d7(0x152)](){return this;}[_0x3a85d7(0x1fc)](){return this;}['toggleOffline'](){return this;}[_0x3a85d7(0x26b)](){return this;}['resend'](){const _0x119af3=_0x3a85d7;throw new Error(_0x119af3(0x1eb));}[_0x3a85d7(0x1e0)](){const _0x26b4ff=_0x3a85d7;this['_localCacheService'][_0x26b4ff(0x3db)](this[_0x26b4ff(0x32c)],this[_0x26b4ff(0x19d)],null,[]);}[_0x3a85d7(0x42d)](){const _0x8689ae=_0x3a85d7;this[_0x8689ae(0x340)]?this['_notificationService'][_0x8689ae(0x2e8)]({'title':this[_0x8689ae(0x43f)]['t'](_0x8689ae(0x492)),'content':this[_0x8689ae(0x43f)]['t'](_0x8689ae(0x41c)),'type':'error','duration':0x0}):this[_0x8689ae(0x26e)][_0x8689ae(0x2e8)]({'title':this[_0x8689ae(0x43f)]['t'](_0x8689ae(0x328)),'content':this[_0x8689ae(0x43f)]['t'](_0x8689ae(0x379)),'type':_0x8689ae(0xae),'duration':0x0});}[_0x3a85d7(0x32e)](){const _0x44ccf7=_0x3a85d7;this[_0x44ccf7(0x40f)]['updatePermissionPoint'](new C[(_0x44ccf7(0x18d))](this[_0x44ccf7(0x32c)])['id'],!0x1);}};F=z([g(0x6,a[_0x3a85d7(0x1e4)](a['IPermissionService'])),g(0x7,a[_0x3a85d7(0xa3)]),g(0x8,a[_0x3a85d7(0x1df)]),g(0x9,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),g(0xa,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x17e)])),g(0xb,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x3f3)])),g(0xc,A[_0x3a85d7(0x26d)])],F);let G=class extends J{constructor(_0x13c531,_0x2f99f2,_0x40087a,_0x3b5827,_0x75e3e,_0x1b4f62,_0x8a07f0,_0x2ace91,_0x2d9946,_0x38477f){const _0x5282e9=_0x3a85d7;super(_0x13c531,_0x2f99f2,_0x40087a,_0x3b5827,_0x75e3e,_0x2d9946,_0x38477f,_0x8a07f0,_0x2ace91),u(this,_0x5282e9(0x160),_0x5282e9(0x13d)),this['_injector']=_0x1b4f62;}[_0x3a85d7(0x13c)](_0x521318){const _0x28a93c=_0x3a85d7;return this[_0x28a93c(0x151)][_0x28a93c(0x250)](_0x521318),this['_updateLocalCache'](),this;}[_0x3a85d7(0xbe)](_0x250b4e){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x3a85d7(0x7a)](){const _0x17ffa9=_0x3a85d7;throw new Error(_0x17ffa9(0x44d));}[_0x3a85d7(0x152)](){const _0x4d945d=_0x3a85d7;throw new Error(_0x4d945d(0x412));}[_0x3a85d7(0x1fc)](){return this;}[_0x3a85d7(0x425)](){return this;}[_0x3a85d7(0x26b)](){const _0x2f9e8b=_0x3a85d7,{_injector:_0x5ba7ee,_pendingMutations:_0x1ba552,_awaitingChangeset:_0x4358ae,unitID:_0x2498f8,_handler:_0x19ec57,type:_0xacb83f}=this,_0x133c4c=wt(_0x5ba7ee,_0x2498f8,_0xacb83f,_0x4358ae,_0x1ba552,_0x19ec57);return _0x133c4c instanceof k?_0x133c4c[_0x2f9e8b(0x362)]():(_0x133c4c instanceof B||_0x133c4c instanceof W)&&_0x133c4c['resend'](),_0x133c4c;}[_0x3a85d7(0x44c)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};G=z([g(0x5,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),g(0x6,a['Inject'](_[_0x3a85d7(0x17e)])),g(0x7,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),g(0x8,a[_0x3a85d7(0xa3)]),g(0x9,a[_0x3a85d7(0x1df)])],G);let x=class extends J{constructor(_0x49272e,_0x2ac771,_0x4475e8,_0x4b46b4,_0x1f7422,_0xa3e454,_0x3ec3b6,_0x1144da,_0x2768fe,_0x33f309,_0x15ae1f,_0x378569,_0x351941,_0x315f63){const _0x284705=_0x3a85d7;super(_0x49272e,_0x2ac771,_0x4475e8,_0x4b46b4,_0x3ec3b6,_0x378569,_0x351941,_0x2768fe,_0x33f309),u(this,_0x284705(0x160),'fetch_missing'),(this[_0x284705(0x47f)]=_0x1f7422,this[_0x284705(0x2d3)]=_0xa3e454,this[_0x284705(0x1ae)]=_0x1144da,this['_logService']=_0x15ae1f,this[_0x284705(0x30f)]=_0x315f63);}[_0x3a85d7(0x193)](_0xa7a1c6){const _0x23c588=_0x3a85d7;try{const _0x52241c=[..._0xa7a1c6,...this[_0x23c588(0x2d3)]],_0x1addcb=[this['_awaitingChangeset']||this[_0x23c588(0x47f)]][_0x23c588(0x3da)](_0x4b1286=>!!_0x4b1286);let _0x33804b,_0x17525c;if(_0x1addcb[_0x23c588(0x16a)]){const _0x1d6723=this[_0x23c588(0x30f)]['transformChangesets'](_0x52241c,_0x1addcb,!0x1);if(!_['isTransformChangesetsSuccess'](_0x1d6723))throw _0x1d6723[_0x23c588(0xae)];_0x33804b=_0x1d6723[_0x23c588(0x139)],_0x17525c=_0x1d6723['c2Prime'];}else _0x33804b=_0x52241c,_0x17525c=[];let _0x397a71=this[_0x23c588(0x151)];_0x33804b['forEach'](_0x107ee9=>{const _0x839db=_0x23c588;let _0x46b0d6;if(_0x397a71[_0x839db(0x16a)]){const _0x41c407=this[_0x839db(0x30f)][_0x839db(0x418)](_0x107ee9,_0x397a71);if(!_[_0x839db(0x1f5)](_0x41c407))throw _0x41c407[_0x839db(0xae)];_0x46b0d6=_0x41c407[_0x839db(0x139)],_0x397a71=_0x41c407[_0x839db(0x2c3)];}else _0x46b0d6=_0x107ee9;this['_executeRemoteChangeset'](_0x46b0d6);}),this[_0x23c588(0x47f)]&&this[_0x23c588(0x30d)](),this[_0x23c588(0x129)]&&_0x17525c[_0x23c588(0x16a)]&&(_0x17525c[0x0]['baseRev']=this[_0x23c588(0x135)]());let _0x55da74;if(this[_0x23c588(0x129)]&&_0x397a71[_0x23c588(0x16a)]!==0x0)_0x55da74=this[_0x23c588(0x1ae)][_0x23c588(0xfe)](B,this[_0x23c588(0x32c)],this[_0x23c588(0x19d)],_0x17525c[0x0],_0x397a71,this[_0x23c588(0x19c)],void 0x0);else{if(this[_0x23c588(0x129)]&&_0x397a71[_0x23c588(0x16a)]===0x0)_0x17525c[0x0]['baseRev']=this[_0x23c588(0x135)](),_0x55da74=this['_injector'][_0x23c588(0xfe)](W,this[_0x23c588(0x32c)],this[_0x23c588(0x19d)],_0x17525c[0x0],this[_0x23c588(0x19c)]);else{if(_0x397a71[_0x23c588(0x16a)]!==0x0){const _0x1b73f4=this[_0x23c588(0x1ae)][_0x23c588(0xfe)](k,this[_0x23c588(0x32c)],this[_0x23c588(0x19d)],_0x397a71,this[_0x23c588(0x19c)]);_0x1b73f4['_schedule'](),_0x55da74=_0x1b73f4;}else _0x55da74=this[_0x23c588(0x1ae)][_0x23c588(0xfe)](ie,this[_0x23c588(0x32c)],this[_0x23c588(0x19d)],this['_handler']);}}return _0x55da74[_0x23c588(0x1cc)](),_0x55da74;}catch(_0x530d92){return this[_0x23c588(0x174)]['error'](_0x23c588(0x1fa),_0x23c588(0x411),_0x530d92),this[_0x23c588(0x1ae)]['createInstance'](F,this['unitID'],this[_0x23c588(0x19d)],this[_0x23c588(0x129)],this[_0x23c588(0x151)],this[_0x23c588(0x19c)],!0x1);}}[_0x3a85d7(0x44c)](){const _0x4ddf1f=_0x3a85d7;throw new Error(_0x4ddf1f(0x344));}[_0x3a85d7(0x13c)](_0x422422){const _0x85911b=_0x3a85d7;return this[_0x85911b(0x151)][_0x85911b(0x250)](_0x422422),this;}[_0x3a85d7(0xbe)](_0xb5255e){const _0x3d6067=_0x3a85d7;return this[_0x3d6067(0x2d3)][_0x3d6067(0x250)](_0xb5255e),this;}[_0x3a85d7(0x7a)](_0x555e07){const _0x17092e=_0x3a85d7;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this[_0x17092e(0x129)],this['_awaitingChangeset']=null,this;throw new Error(_0x17092e(0x191));}[_0x3a85d7(0x152)](_0x4987b3){const _0x36e169=_0x3a85d7;return this[_0x36e169(0x436)](!!(_0x4987b3!=null&&_0x4987b3[_0x36e169(0x27d)]));}[_0x3a85d7(0x1fc)](){return this;}[_0x3a85d7(0x425)](){const _0x4bc0c7=_0x3a85d7;return this['_injector'][_0x4bc0c7(0xfe)](G,this[_0x4bc0c7(0x32c)],this[_0x4bc0c7(0x19d)],this[_0x4bc0c7(0x129)],this[_0x4bc0c7(0x151)],this[_0x4bc0c7(0x19c)]);}['toggleOnline'](){return this;}[_0x3a85d7(0x436)](_0x1629ed){const _0x46a0da=_0x3a85d7;return this[_0x46a0da(0x1ae)][_0x46a0da(0xfe)](F,this['unitID'],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x46a0da(0x19c)],_0x1629ed);}};x=z([g(0x7,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),g(0x8,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x17e)])),g(0x9,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),g(0xa,a[_0x3a85d7(0x43e)]),g(0xb,a[_0x3a85d7(0xa3)]),g(0xc,a[_0x3a85d7(0x1df)]),g(0xd,_[_0x3a85d7(0x12f)])],x);function wt(_0xfc507d,_0x152b93,_0x179882,_0xc43fe,_0x19c29c,_0x4f53ae){const _0x310add=_0x3a85d7;return _0xc43fe&&_0x19c29c[_0x310add(0x16a)]?_0xfc507d[_0x310add(0xfe)](B,_0x152b93,_0x179882,_0xc43fe,_0x19c29c,_0x4f53ae,void 0x0):_0xc43fe?_0xfc507d[_0x310add(0xfe)](W,_0x152b93,_0x179882,_0xc43fe,_0x4f53ae):_0x19c29c[_0x310add(0x16a)]?_0xfc507d[_0x310add(0xfe)](k,_0x152b93,_0x179882,_0x19c29c,_0x4f53ae):_0xfc507d[_0x310add(0xfe)](ie,_0x152b93,_0x179882,_0x4f53ae);}var Xs=Object['defineProperty'],zs=Object[_0x3a85d7(0x43d)],ze=(_0x520199,_0x1c85b0,_0xc80540,_0x16fd58)=>{const _0x2a945e=_0x3a85d7;for(var _0x3fbc78=_0x16fd58>0x1?void 0x0:_0x16fd58?zs(_0x1c85b0,_0xc80540):_0x1c85b0,_0x5a775f=_0x520199[_0x2a945e(0x16a)]-0x1,_0x1d41e7;_0x5a775f>=0x0;_0x5a775f--)(_0x1d41e7=_0x520199[_0x5a775f])&&(_0x3fbc78=(_0x16fd58?_0x1d41e7(_0x1c85b0,_0xc80540,_0x3fbc78):_0x1d41e7(_0x3fbc78))||_0x3fbc78);return _0x16fd58&&_0x3fbc78&&Xs(_0x1c85b0,_0xc80540,_0x3fbc78),_0x3fbc78;},p=(_0x58920e,_0x5b17dd)=>(_0x3223e6,_0x2bb029)=>_0x5b17dd(_0x3223e6,_0x2bb029,_0x58920e);exports[_0x3a85d7(0x92)]=class extends a['RxDisposable']{constructor(_0x1c38fc,_0x549573,_0x37e67b,_0x43ab89,_0x46e5ca,_0x6b7a11,_0x2276df,_0x52a983,_0x4474f3,_0x15313f,_0x5c51eb,_0x456d3b,_0x315914){const _0x4cbe71=_0x3a85d7;super(),u(this,_0x4cbe71(0x43a),new v[(_0x4cbe71(0x2a3))](null)),u(this,'state$',this[_0x4cbe71(0x43a)]['asObservable']()),u(this,_0x4cbe71(0x1f6)),u(this,_0x4cbe71(0x39d),!0x1),u(this,_0x4cbe71(0x3b5),''),u(this,'_changesetReqId',0x0),u(this,_0x4cbe71(0x3cd),this['state$'][_0x4cbe71(0x3d0)](v[_0x4cbe71(0xcf)](_0x46f069=>_0x46f069?_0x46f069[_0x4cbe71(0x160)]:U[_0x4cbe71(0x235)]),v[_0x4cbe71(0x17b)](0x1))),u(this,_0x4cbe71(0x17c),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x4cbe71(0x32c)]=_0x1c38fc,this[_0x4cbe71(0x305)]=_0x549573,this['_type']=_0x37e67b,this['_injector']=_0x43ab89,this['_localCacheService']=_0x46e5ca,this['_compressMutationService']=_0x6b7a11,this[_0x4cbe71(0x43f)]=_0x2276df,this[_0x4cbe71(0x283)]=_0x52a983,this[_0x4cbe71(0x174)]=_0x4474f3,this['_commandService']=_0x15313f,this[_0x4cbe71(0x12b)]=_0x5c51eb,this[_0x4cbe71(0x40f)]=_0x456d3b,this[_0x4cbe71(0x2b4)]=_0x315914);}get['state'](){const _0x300ea9=_0x3a85d7;return this[_0x300ea9(0x1f6)];}async['init'](){const _0x1a570a=_0x3a85d7;if(this[_0x1a570a(0x424)])throw new Error(_0x1a570a(0x491));await this['_init']();}[_0x3a85d7(0x202)](){const _0x1aa07d=_0x3a85d7;return this[_0x1aa07d(0x39d)]=!0x0,a['toDisposable'](()=>{const _0x967ffd=_0x1aa07d;this[_0x967ffd(0x39d)]=!0x1,this[_0x967ffd(0x48a)]();});}[_0x3a85d7(0x28d)](_0x237a3e){const _0x49048c=_0x3a85d7;this[_0x49048c(0x1f6)]=_0x237a3e,this[_0x49048c(0x43a)]['next'](_0x237a3e);}async[_0x3a85d7(0x190)](){const _0x16c15a=_0x3a85d7;var _0x45a207;this['_updateState'](await this[_0x16c15a(0xba)]()),this['_singleActiveUnitService']&&((_0x45a207=this[_0x16c15a(0x2b4)])==null||_0x45a207[_0x16c15a(0x155)](this['unitID']),this[_0x16c15a(0x208)](this[_0x16c15a(0x2b4)][_0x16c15a(0xfb)](this[_0x16c15a(0x32c)])['subscribe'](_0xa71e7b=>{const _0x1c1733=_0x16c15a;this[_0x1c1733(0x174)][_0x1c1733(0x312)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0xa71e7b),_0xa71e7b===Dt[_0x1c1733(0x28f)]?(this[_0x1c1733(0x12b)][_0x1c1733(0x2e8)]({'content':this[_0x1c1733(0x43f)]['t'](_0x1c1733(0x2f1)),'type':q[_0x1c1733(0x37a)][_0x1c1733(0x3bc)]}),this['_permissionService']['updatePermissionPoint'](new C[(_0x1c1733(0x18d))](this[_0x1c1733(0x32c)])['id'],!0x1)):this['_permissionService'][_0x1c1733(0x19b)](new C[(_0x1c1733(0x18d))](this[_0x1c1733(0x32c)])['id'],!0x0);})));let _0x2651d4=!0x1;return this[_0x16c15a(0x208)](this['session']['sessionStatus$']['subscribe'](_0x3afe29=>{const _0x263389=_0x16c15a;_0x3afe29===H[_0x263389(0x445)]?this[_0x263389(0x444)](_0x2651d4):_0x3afe29===H[_0x263389(0x235)]&&(_0x2651d4=!0x0,this[_0x263389(0x319)]());})),this[_0x16c15a(0x208)](this[_0x16c15a(0x305)][_0x16c15a(0x3a3)][_0x16c15a(0xc4)](_0xd577c3=>{const _0x5c2b70=_0x16c15a;try{switch(_0xd577c3[_0x5c2b70(0x121)]){case _['CollaborationEvent'][_0x5c2b70(0x1c4)]:{this[_0x5c2b70(0xf1)](_[_0x5c2b70(0x46c)](_0xd577c3[_0x5c2b70(0xd9)]));break;}case _[_0x5c2b70(0x14f)][_0x5c2b70(0x17a)]:{this['_onRemoteACK'](_0xd577c3[_0x5c2b70(0xd9)]);break;}case _[_0x5c2b70(0x14f)][_0x5c2b70(0x3e2)]:{this[_0x5c2b70(0x41a)]();break;}case _[_0x5c2b70(0x14f)][_0x5c2b70(0x3f9)]:{this[_0x5c2b70(0x2ae)](_0xd577c3['data']);break;}case _['CollaborationEvent'][_0x5c2b70(0x11b)]:{this[_0x5c2b70(0x446)](_0xd577c3[_0x5c2b70(0xd9)][_0x5c2b70(0x199)]['map'](_0x891328=>_[_0x5c2b70(0x46c)](_0x891328)));break;}case _['CollaborationEvent'][_0x5c2b70(0x1ce)]:this[_0x5c2b70(0x41a)]({'isPermissionRej':!0x0});}}catch(_0x5a74a2){throw console['error'](_0x5c2b70(0xc7),_0x5a74a2),_0x5a74a2;}})),this[_0x16c15a(0x1f6)];}['_unlockTransition'](){const _0x1bd4ab=_0x3a85d7;this[_0x1bd4ab(0x17c)]=!0x1;}['_lockTransition'](){const _0x304db8=_0x3a85d7;if(this[_0x304db8(0x17c)])throw new Error(_0x304db8(0x2fe));this[_0x304db8(0x17c)]=!0x0;}[_0x3a85d7(0x9f)](_0x33ef70){const _0x432ef3=_0x3a85d7;this[_0x432ef3(0x32f)](),this['_updateState'](this['_state'][_0x432ef3(0x13c)](_0x33ef70)),this[_0x432ef3(0x240)]();}[_0x3a85d7(0xf1)](_0x50df8c){const _0x469cfc=_0x3a85d7;if(!(_0x50df8c[_0x469cfc(0x45f)]<=this[_0x469cfc(0x283)][_0x469cfc(0xb6)](this['unitID']))){if(this[_0x469cfc(0x39d)]){this[_0x469cfc(0x264)][_0x469cfc(0x250)](_0x50df8c);return;}this[_0x469cfc(0x453)](_0x50df8c);}}['_exhaustRemoteChangesetQueue'](){const _0x100055=_0x3a85d7;this[_0x100055(0x264)]['forEach'](_0x4b78d9=>this[_0x100055(0x453)](_0x4b78d9)),this[_0x100055(0x264)]=[];}['_applyRemoteChangeset'](_0xf1c76a){const _0x343914=_0x3a85d7,_0x5a8f9c=this[_0x343914(0xac)]['interceptor']['fetchThroughInterceptors'](this[_0x343914(0xac)][_0x343914(0xa9)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0xf1c76a[_0x343914(0x24a)],null)||_0xf1c76a['mutations'],_0x18ee39={..._0xf1c76a,'mutations':_0x5a8f9c};this[_0x343914(0x32f)](),this[_0x343914(0x28d)](this[_0x343914(0x1f6)][_0x343914(0xbe)](_0x18ee39)),this[_0x343914(0x240)]();}[_0x3a85d7(0x11f)](_0x38bf51){const _0xb29ce1=_0x3a85d7;this['_lockTransition'](),this['_updateState'](this[_0xb29ce1(0x1f6)][_0xb29ce1(0x7a)](_0x38bf51)),this[_0xb29ce1(0x240)]();}[_0x3a85d7(0x41a)](_0x87e529){const _0x2d0e6d=_0x3a85d7;this[_0x2d0e6d(0x32f)](),this[_0x2d0e6d(0x28d)](this[_0x2d0e6d(0x1f6)][_0x2d0e6d(0x152)](_0x87e529)),this[_0x2d0e6d(0x240)]();}[_0x3a85d7(0x2ae)](_0x18d69a){const _0x58b704=_0x3a85d7;this[_0x58b704(0x32f)](),this[_0x58b704(0x28d)](this[_0x58b704(0x1f6)]['onRemoteRetry'](_0x18d69a)),this[_0x58b704(0x240)]();}['_onFetchMissResult'](_0x51b2b2){const _0x2d109a=_0x3a85d7;if(!(this[_0x2d109a(0x1f6)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x3b59cc=_0x51b2b2['map'](_0x2feefb=>{const _0x2b08b6=_0x2d109a,_0x4e0a57=this[_0x2b08b6(0xac)][_0x2b08b6(0xa9)]['fetchThroughInterceptors'](this[_0x2b08b6(0xac)]['interceptor'][_0x2b08b6(0x164)]()[_0x2b08b6(0x179)])(_0x2feefb[_0x2b08b6(0x24a)],null)||_0x2feefb[_0x2b08b6(0x24a)];return{..._0x2feefb,'mutations':_0x4e0a57};});this[_0x2d109a(0x32f)](),this[_0x2d109a(0x28d)](this[_0x2d109a(0x1f6)][_0x2d109a(0x193)](_0x3b59cc)),this['_unlockTransition']();}[_0x3a85d7(0x319)](){const _0x33952f=_0x3a85d7;this[_0x33952f(0x32f)](),this[_0x33952f(0x28d)](this[_0x33952f(0x1f6)][_0x33952f(0x425)]()),this[_0x33952f(0x240)]();}[_0x3a85d7(0x444)](_0x3fe714=!0x1){const _0x221ab4=_0x3a85d7;this[_0x221ab4(0x32f)](),this[_0x221ab4(0x28d)](this[_0x221ab4(0x1f6)][_0x221ab4(0x26b)]()),this[_0x221ab4(0x240)]();const _0x350911=this['_state'];_0x3fe714&&_0x350911 instanceof ie&&(this[_0x221ab4(0x32f)](),this['_updateState'](_0x350911[_0x221ab4(0x99)]()),this[_0x221ab4(0x240)]());}async[_0x3a85d7(0xba)](){return new Promise(_0x32054c=>{const _0xd355f4=_0x54ba;this[_0xd355f4(0x305)]['sessionStatus$'][_0xd355f4(0x3d0)](v[_0xd355f4(0x157)](0x1))[_0xd355f4(0xc4)](async _0x536a1c=>{const _0x3f06ef=_0xd355f4;_0x32054c(await this[_0x3f06ef(0x391)](_0x536a1c===H['ONLINE']));});});}[_0x3a85d7(0x2f7)](){const _0x34d8dc=_0x3a85d7,_0x4ddc6c=this[_0x34d8dc(0x32c)];return{'onStateChange':(_0x53d2a8,_0xb68ceb)=>{const _0x1d0b46=_0x34d8dc;if(_0x53d2a8!==this[_0x1d0b46(0x1f6)])throw new Error(_0x1d0b46(0x386)+_0x53d2a8['status']+_0x1d0b46(0x2d1)+_0xb68ceb['status']+_0x1d0b46(0xf3)+this[_0x1d0b46(0x1f6)][_0x1d0b46(0x160)]);this[_0x1d0b46(0x28d)](_0xb68ceb);},'onSendChangeset':_0x3591a6=>{const _0x5795f9=_0x34d8dc;_0x3591a6[_0x5795f9(0x336)]||(_0x3591a6[_0x5795f9(0x336)]=this['_changesetSessionId'],_0x3591a6[_0x5795f9(0x1c8)]=++this[_0x5795f9(0xa5)]);const _0x2b3d4f={'eventID':_[_0x5795f9(0x14f)][_0x5795f9(0x106)],'data':{'unitID':_0x3591a6[_0x5795f9(0x32c)],'unitType':this[_0x5795f9(0x488)],'changeset':_0x3591a6,'memberID':this[_0x5795f9(0x305)][_0x5795f9(0x435)]()}};this[_0x5795f9(0x305)][_0x5795f9(0x450)](_0x2b3d4f,this[_0x5795f9(0x32c)]);},'onMissingChangesets':({from:_0x1756ab,to:_0x52456e})=>{const _0x42e3b1=_0x34d8dc;this['_logService'][_0x42e3b1(0x312)](_0x42e3b1(0xb7),_0x42e3b1(0x35b)+_0x1756ab+'\x20to\x20'+_0x52456e);const _0x1f77a6={'eventID':_[_0x42e3b1(0x14f)][_0x42e3b1(0x254)],'data':{'unitID':_0x4ddc6c,'unitType':this[_0x42e3b1(0x488)],'from':_0x1756ab,'to':_0x52456e}};this[_0x42e3b1(0x305)][_0x42e3b1(0x450)](_0x1f77a6,this[_0x42e3b1(0x32c)]);}};}async[_0x3a85d7(0x391)](_0x375dc7){const _0x5d04b2=_0x3a85d7;var _0x14b17c,_0x6f6d3d;const _0x23a67b=await this[_0x5d04b2(0x448)][_0x5d04b2(0x2fd)](this[_0x5d04b2(0x32c)]),_0x24d8f9=(_0x14b17c=_0x23a67b==null?void 0x0:_0x23a67b[_0x5d04b2(0x24a)])!=null?_0x14b17c:[],_0x32a10c=(_0x6f6d3d=_0x23a67b==null?void 0x0:_0x23a67b['awaitingChangeset'])!=null?_0x6f6d3d:null,_0x3ab771=!!(_0x32a10c!=null&&_0x32a10c[_0x5d04b2(0x336)])&&!!(_0x32a10c!=null&&_0x32a10c['reqId']);this['_changesetSessionId']=_0x3ab771?_0x32a10c[_0x5d04b2(0x336)]:ys(),this[_0x5d04b2(0xa5)]=_0x3ab771?_0x32a10c['reqId']:0x0;const _0x49e017=this[_0x5d04b2(0x32c)];try{this['_replayCachedMutations'](_0x32a10c,_0x24d8f9);}catch(_0x1a5df5){this[_0x5d04b2(0x174)]['error'](_0x1a5df5);}const _0x25fcef=this[_0x5d04b2(0x2f7)]();if(_0x375dc7){const _0x479d7a=wt(this[_0x5d04b2(0x1ae)],_0x49e017,this[_0x5d04b2(0x488)],_0x32a10c,_0x24d8f9,_0x25fcef);return _0x479d7a instanceof k?_0x479d7a[_0x5d04b2(0x362)]():(_0x479d7a instanceof B||_0x479d7a instanceof W)&&_0x479d7a[_0x5d04b2(0x44c)](),_0x479d7a;}return this[_0x5d04b2(0x1ae)][_0x5d04b2(0xfe)](G,_0x49e017,this['_type'],_0x32a10c,_0x24d8f9,_0x25fcef);}['_replayCachedMutations'](_0x1a0896,_0x458ed7){const _0x111596=_0x3a85d7;var _0x902bac,_0x390c17;const _0x224a5d=this[_0x111596(0xac)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x111596(0xa9)][_0x111596(0x164)]()[_0x111596(0x179)]);(_0x902bac=_0x224a5d((_0x1a0896==null?void 0x0:_0x1a0896[_0x111596(0x24a)])||[],null))==null||_0x902bac[_0x111596(0x189)](_0x50875c=>this[_0x111596(0x257)][_0x111596(0x2c9)](_0x50875c['id'],_0x50875c[_0x111596(0x3d1)])),(_0x390c17=_0x224a5d(_0x458ed7||[],null))==null||_0x390c17[_0x111596(0x189)](_0x50acc1=>this[_0x111596(0x257)]['executeCommand'](_0x50acc1['id'],_0x50acc1[_0x111596(0x3d1)]));}},exports[_0x3a85d7(0x92)]=ze([p(0x3,a[_0x3a85d7(0x1e4)](a['Injector'])),p(0x4,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),p(0x5,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x8a)])),p(0x6,a[_0x3a85d7(0x1e4)](a['LocaleService'])),p(0x7,a[_0x3a85d7(0x1e4)](_['RevisionService'])),p(0x8,a[_0x3a85d7(0x43e)]),p(0x9,a['ICommandService']),p(0xa,A[_0x3a85d7(0x41b)]),p(0xb,a['IPermissionService']),p(0xc,a[_0x3a85d7(0xdd)](Re))],exports['CollaborationEntity']),exports['DocCollaborationEntity']=class extends exports[_0x3a85d7(0x92)]{constructor(_0x542717,_0x52ce2b,_0x5f85ac,_0x25ec17,_0x4a1268,_0xd4b1a6,_0x339d18,_0xaf1580,_0x55847b,_0x4bd1be,_0x3a9cca,_0x237712,_0x1271f4,_0x131b37,_0x235f96,_0x3674af,_0x482238){const _0x502ed0=_0x3a85d7;super(_0x542717,_0x5f85ac,_0x52ce2b,_0x25ec17,_0x4a1268,_0xd4b1a6,_0x339d18,_0xaf1580,_0x1271f4,_0x131b37,_0x235f96,_0x3674af,_0x482238),this['unitID']=_0x542717,this[_0x502ed0(0x19d)]=_0x52ce2b,this[_0x502ed0(0x1b0)]=_0x55847b,this[_0x502ed0(0x28e)]=_0x4bd1be,this['_docTransformSelectionsService']=_0x3a9cca,this[_0x502ed0(0x406)]=_0x237712;}[_0x3a85d7(0x2f7)](){const _0x3eede5=_0x3a85d7,_0x2e083b=super[_0x3eede5(0x2f7)]();return _0x2e083b['onTransformIME']=_0x1601a9=>this[_0x3eede5(0x28e)]['transformIMECache'](_0x1601a9),_0x2e083b[_0x3eede5(0x17d)]=_0x53b105=>this[_0x3eede5(0x10b)][_0x3eede5(0x2a4)](_0x53b105),_0x2e083b[_0x3eede5(0x116)]=_0x4ea333=>this[_0x3eede5(0x406)]['syncEditingCollabCursor'](_0x4ea333),_0x2e083b['onTransformRemoteChangesetByIMECache']=_0x45246d=>this[_0x3eede5(0x28e)][_0x3eede5(0x273)](_0x45246d),_0x2e083b;}async[_0x3a85d7(0x190)](){const _0x30ce5e=_0x3a85d7,_0x5b0f29=await super[_0x30ce5e(0x190)]();return this[_0x30ce5e(0x1b0)]['docStateChange$'][_0x30ce5e(0x3d0)](v['takeUntil'](this[_0x30ce5e(0x232)]))['subscribe'](_0x165022=>{const _0xa98f04=_0x30ce5e;if(_0x165022==null)return;const {unitId:_0x2b5f15,redoState:_0x2d24d9,commandId:_0x2ebbfb}=_0x165022;if(_0x2b5f15!==this['unitID'])return;const _0x5cd7b6={'id':_0x2ebbfb,'type':a[_0xa98f04(0x317)]['MUTATION'],'params':{'unitId':_0x2b5f15,'actions':_0x2d24d9[_0xa98f04(0x1b6)],'textRanges':null}};this[_0xa98f04(0x9f)](_0x5cd7b6);}),_0x5b0f29;}},exports[_0x3a85d7(0x1c2)]=ze([p(0x3,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),p(0x4,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),p(0x5,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x8a)])),p(0x6,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x3f3)])),p(0x7,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x17e)])),p(0x8,a[_0x3a85d7(0x1e4)](N[_0x3a85d7(0x44e)])),p(0x9,a[_0x3a85d7(0x1e4)](fe)),p(0xa,a[_0x3a85d7(0x1e4)](pe)),p(0xb,a[_0x3a85d7(0x1e4)](Xe)),p(0xc,a['ILogService']),p(0xd,a[_0x3a85d7(0xa3)]),p(0xe,A['IMessageService']),p(0xf,a[_0x3a85d7(0x1a0)]),p(0x10,a[_0x3a85d7(0xdd)](Re))],exports[_0x3a85d7(0x1c2)]),exports[_0x3a85d7(0x3a8)]=class extends exports[_0x3a85d7(0x92)]{constructor(_0x51c6b7,_0x50f2f4,_0x3f1285,_0x21c924,_0x555c08,_0x39dba4,_0x360339,_0x198f48,_0x317498,_0x5643ca,_0x2fa1e6,_0x275f89,_0x483339,_0x4a5fe3){const _0x58352b=_0x3a85d7;super(_0x51c6b7,_0x3f1285,_0x50f2f4,_0x21c924,_0x555c08,_0x39dba4,_0x360339,_0x198f48,_0x5643ca,_0x2fa1e6,_0x275f89,_0x483339,_0x4a5fe3),this[_0x58352b(0x32c)]=_0x51c6b7,this['type']=_0x50f2f4,this[_0x58352b(0x408)]=_0x317498;}[_0x3a85d7(0x2f7)](){const _0x24ed9b=_0x3a85d7,_0x5ee169=super[_0x24ed9b(0x2f7)]();return _0x5ee169[_0x24ed9b(0x17d)]=_0xaedd4b=>this[_0x24ed9b(0x408)][_0x24ed9b(0x2a4)](_0xaedd4b),_0x5ee169;}async['_init'](){const _0x317ebb=_0x3a85d7,_0x56e7c1=await super[_0x317ebb(0x190)]();return this[_0x317ebb(0x208)](this['_commandService']['onCommandExecuted']((_0x2aa6bc,_0x212b58)=>{const _0x4a3951=_0x317ebb;if(_0x2aa6bc[_0x4a3951(0x19d)]!==a[_0x4a3951(0x317)][_0x4a3951(0x2d2)]||_0x212b58!=null&&_0x212b58['fromCollab']||_0x212b58!=null&&_0x212b58['onlyLocal'])return;const _0x380043=_0x2aa6bc[_0x4a3951(0x3d1)];if((_0x380043==null?void 0x0:_0x380043[_0x4a3951(0x27e)])!==this[_0x4a3951(0x32c)])return;const _0xf36a86=_0x2aa6bc,_0x1f840d=this[_0x4a3951(0xac)][_0x4a3951(0xa9)]['fetchThroughInterceptors'](this[_0x4a3951(0xac)]['interceptor'][_0x4a3951(0x164)]()['COMPRESS_MUTATION_SEND'])([_0xf36a86],null)||[_0xf36a86];this['_onLocalMutation'](_0x1f840d[0x0]);})),_0x56e7c1;}},exports[_0x3a85d7(0x3a8)]=ze([p(0x3,a[_0x3a85d7(0x1e4)](a['Injector'])),p(0x4,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),p(0x5,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x8a)])),p(0x6,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x3f3)])),p(0x7,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x17e)])),p(0x8,a[_0x3a85d7(0x1e4)](Ie)),p(0x9,a[_0x3a85d7(0x43e)]),p(0xa,a[_0x3a85d7(0xa3)]),p(0xb,A[_0x3a85d7(0x41b)]),p(0xc,a['IPermissionService']),p(0xd,a[_0x3a85d7(0xdd)](Re))],exports['SheetCollaborationEntity']);var Js=Object[_0x3a85d7(0x329)],Zs=Object['getOwnPropertyDescriptor'],Qs=(_0xf0420c,_0x43df3d,_0x5ca870,_0x4bb9d0)=>{const _0x16969d=_0x3a85d7;for(var _0x26f6bc=_0x4bb9d0>0x1?void 0x0:_0x4bb9d0?Zs(_0x43df3d,_0x5ca870):_0x43df3d,_0x29297d=_0xf0420c[_0x16969d(0x16a)]-0x1,_0x533b31;_0x29297d>=0x0;_0x29297d--)(_0x533b31=_0xf0420c[_0x29297d])&&(_0x26f6bc=(_0x4bb9d0?_0x533b31(_0x43df3d,_0x5ca870,_0x26f6bc):_0x533b31(_0x26f6bc))||_0x26f6bc);return _0x4bb9d0&&_0x26f6bc&&Js(_0x43df3d,_0x5ca870,_0x26f6bc),_0x26f6bc;},Ne=(_0x18c48a,_0x4c9a6d)=>(_0x115bad,_0x5f5034)=>_0x4c9a6d(_0x115bad,_0x5f5034,_0x18c48a);exports[_0x3a85d7(0x430)]=class extends a[_0x3a85d7(0x1fb)]{constructor(_0x26950f,_0x392ad1,_0x2170e0){const _0x1b6b7c=_0x3a85d7;super(),u(this,_0x1b6b7c(0x136),new Map()),u(this,_0x1b6b7c(0x26a),new v[(_0x1b6b7c(0x33c))]()),(this[_0x1b6b7c(0x1ae)]=_0x26950f,this['_collabSessionService']=_0x392ad1,this[_0x1b6b7c(0x261)]=_0x2170e0,this[_0x1b6b7c(0x190)]());}['dispose'](){const _0x2d932f=_0x3a85d7;super[_0x2d932f(0xad)](),this[_0x2d932f(0x136)][_0x2d932f(0x189)](_0x2eeadb=>_0x2eeadb[_0x2d932f(0xad)]()),this[_0x2d932f(0x136)]['clear']();}[_0x3a85d7(0x216)](_0x1cd719){const _0x299dbe=_0x3a85d7;var _0x884e2a;return(_0x884e2a=this['_entities'][_0x299dbe(0xca)](_0x1cd719))!=null?_0x884e2a:null;}[_0x3a85d7(0x352)](_0x39f2fd){const _0x88ecc5=_0x3a85d7,_0x21bae5=this['getCollabEntity'](_0x39f2fd);return _0x21bae5?v['of'](_0x21bae5):this[_0x88ecc5(0x26a)][_0x88ecc5(0x3d0)](E[_0x88ecc5(0x3da)](_0xfb0a77=>_0xfb0a77[_0x88ecc5(0x32c)]===_0x39f2fd));}[_0x3a85d7(0x190)](){const _0x42eb0c=_0x3a85d7;this[_0x42eb0c(0x261)]['getTypeOfUnitAdded$'](a[_0x42eb0c(0x355)][_0x42eb0c(0x35c)])[_0x42eb0c(0x3d0)](v['takeUntil'](this[_0x42eb0c(0x232)]),E[_0x42eb0c(0x1d7)](0x10))['subscribe'](async _0x122783=>{const _0x5792f7=_0x42eb0c,_0x65032a=_0x122783['getUnitId'](),_0x5f397f=await this[_0x5792f7(0x3bf)](_0x65032a,$['UNIVER_SHEET']);this[_0x5792f7(0x136)][_0x5792f7(0x225)](_0x65032a,_0x5f397f);}),this[_0x42eb0c(0x261)]['getTypeOfUnitAdded$'](a[_0x42eb0c(0x355)][_0x42eb0c(0x117)])[_0x42eb0c(0x3d0)](v[_0x42eb0c(0x1b4)](this[_0x42eb0c(0x232)]),E[_0x42eb0c(0x1d7)](0x10))[_0x42eb0c(0x3d0)](E['filter'](_0x264fa3=>!_0x264fa3[_0x42eb0c(0x311)]()['startsWith']('__')))[_0x42eb0c(0xc4)](async _0x4429b3=>{const _0x55059e=_0x42eb0c,_0x38e253=_0x4429b3[_0x55059e(0x311)](),_0x1fd01c=await this[_0x55059e(0x3bf)](_0x38e253,$[_0x55059e(0x117)]);this[_0x55059e(0x136)][_0x55059e(0x225)](_0x38e253,_0x1fd01c);}),v['merge'](this['_univerInstanceService'][_0x42eb0c(0xe4)](a[_0x42eb0c(0x355)][_0x42eb0c(0x35c)]),this[_0x42eb0c(0x261)]['getTypeOfUnitDisposed$'](a[_0x42eb0c(0x355)][_0x42eb0c(0x117)]))[_0x42eb0c(0x3d0)](v[_0x42eb0c(0x1b4)](this[_0x42eb0c(0x232)]))[_0x42eb0c(0xc4)](_0x28ecbc=>{const _0x5c4bde=_0x42eb0c,_0x1f6e4c=_0x28ecbc[_0x5c4bde(0x311)](),_0x5b517b=this['_entities'][_0x5c4bde(0xca)](_0x1f6e4c);_0x5b517b&&(_0x5b517b[_0x5c4bde(0xad)](),this[_0x5c4bde(0x136)][_0x5c4bde(0x3de)](_0x1f6e4c));});}async[_0x3a85d7(0x3bf)](_0x1e0077,_0x260740){const _0x5935a5=_0x3a85d7,_0xeb75=await this[_0x5935a5(0x2bd)][_0x5935a5(0x81)](_0x1e0077),_0x42dddb=this[_0x5935a5(0x1ae)][_0x5935a5(0xfe)](this[_0x5935a5(0x180)](_0x260740),_0x1e0077,_0x260740,_0xeb75);return await _0x42dddb[_0x5935a5(0x2c4)](),this[_0x5935a5(0x26a)][_0x5935a5(0x294)](_0x42dddb),_0x42dddb;}[_0x3a85d7(0x180)](_0x4b1836){const _0x4e862a=_0x3a85d7;switch(_0x4b1836){case $[_0x4e862a(0x117)]:return exports['DocCollaborationEntity'];case $[_0x4e862a(0x35c)]:return exports['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x4b1836);}}},exports[_0x3a85d7(0x430)]=Qs([Ne(0x0,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),Ne(0x1,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x3d9)])),Ne(0x2,a[_0x3a85d7(0x9e)])],exports[_0x3a85d7(0x430)]);const ct=[_0x3a85d7(0x20d),'jiqing500',_0x3a85d7(0x185),_0x3a85d7(0x44f),_0x3a85d7(0x398),_0x3a85d7(0x1db)];class Je extends a[_0x3a85d7(0x3ce)]{constructor(){const _0x27846f=_0x3a85d7;super(...arguments),u(this,_0x27846f(0x389),new Map()),u(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x4b553d){const _0x384a75=_0x3a85d7;if(this[_0x384a75(0x389)][_0x384a75(0x1a7)](_0x4b553d))return this[_0x384a75(0x389)][_0x384a75(0xca)](_0x4b553d);const _0x186191=ct[this[_0x384a75(0x434)]];return this[_0x384a75(0x434)]=(this['_colorIndex']+0x1)%ct[_0x384a75(0x16a)],this[_0x384a75(0x389)][_0x384a75(0x225)](_0x4b553d,_0x186191),_0x186191;}}var ei=Object['defineProperty'],ti=Object['getOwnPropertyDescriptor'],si=(_0x12da5a,_0x34504d,_0x4d4a0d,_0xe131ba)=>{for(var _0x12ae73=_0xe131ba>0x1?void 0x0:_0xe131ba?ti(_0x34504d,_0x4d4a0d):_0x34504d,_0x87a9b7=_0x12da5a['length']-0x1,_0x5427bc;_0x87a9b7>=0x0;_0x87a9b7--)(_0x5427bc=_0x12da5a[_0x87a9b7])&&(_0x12ae73=(_0xe131ba?_0x5427bc(_0x34504d,_0x4d4a0d,_0x12ae73):_0x5427bc(_0x12ae73))||_0x12ae73);return _0xe131ba&&_0x12ae73&&ei(_0x34504d,_0x4d4a0d,_0x12ae73),_0x12ae73;},K=(_0x4b0151,_0x37355e)=>(_0x14d35e,_0x12b935)=>_0x37355e(_0x14d35e,_0x12b935,_0x4b0151);const ii=0x12c,ni=0x64;let ke=class extends a['RxDisposable']{constructor(_0x269425,_0x270668,_0x4b8492,_0x1a9be3,_0x35ce1e,_0x3b0cab,_0x36979e,_0x2416a4,_0x10fcc1){const _0x1db878=_0x3a85d7;super(),u(this,_0x1db878(0x37b),!0x1),u(this,_0x1db878(0x190),!0x1),u(this,'_cursorInfo$',new v[(_0x1db878(0x2a3))](new Map())),u(this,_0x1db878(0x1ad),this[_0x1db878(0x3dc)][_0x1db878(0x413)]()),u(this,_0x1db878(0x181),new v['BehaviorSubject']([])),u(this,'roomMembers$',this[_0x1db878(0x181)][_0x1db878(0x3d0)](v[_0x1db878(0x394)](ii))),u(this,'_updateLocalCursor',a['debounce'](_0x3aaadc=>{const _0x12bbbe=_0x1db878,_0x11171b={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x12bbbe(0x435)](),'selection':yt(_0x3aaadc)}};this['_session'][_0x12bbbe(0x450)](_0x11171b,this[_0x12bbbe(0x32c)]);},ni)),(this[_0x1db878(0x32c)]=_0x269425,this[_0x1db878(0x475)]=_0x270668,this['_injector']=_0x4b8492,this[_0x1db878(0x487)]=_0x1a9be3,this['_memberService']=_0x35ce1e,this['_syncEditingCollabCursorService']=_0x3b0cab,this[_0x1db878(0x30f)]=_0x36979e,this['_univerInstanceService']=_0x2416a4,this[_0x1db878(0x257)]=_0x10fcc1);}get[_0x3a85d7(0x2da)](){const _0x2e63e2=_0x3a85d7;return this[_0x2e63e2(0x3dc)]['getValue']();}get[_0x3a85d7(0x237)](){const _0x456090=_0x3a85d7;return this['_roomMembers$'][_0x456090(0x1b2)]();}[_0x3a85d7(0xad)](){const _0x275256=_0x3a85d7;super['dispose'](),this[_0x275256(0x3dc)]['next'](new Map()),this[_0x275256(0x3dc)][_0x275256(0x131)](),this['_roomMembers$'][_0x275256(0x294)]([]),this[_0x275256(0x181)][_0x275256(0x131)]();}[_0x3a85d7(0x2c4)](){const _0x3b0981=_0x3a85d7;this[_0x3b0981(0x190)]||(this[_0x3b0981(0x190)]=!0x0,this[_0x3b0981(0x475)][_0x3b0981(0x224)][_0x3b0981(0x3d0)](v[_0x3b0981(0x1b4)](this[_0x3b0981(0x232)]))[_0x3b0981(0xc4)](_0x5f1d91=>{const _0x1df670=_0x3b0981;_0x5f1d91===H[_0x1df670(0x445)]?this[_0x1df670(0x444)]():this[_0x1df670(0x319)]();}),this[_0x3b0981(0x475)][_0x3b0981(0x3a3)][_0x3b0981(0x3d0)](v[_0x3b0981(0x1b4)](this[_0x3b0981(0x232)]))[_0x3b0981(0xc4)](_0x4b8ca1=>{const _0x60c917=_0x3b0981,_0x3aef4f=_0x4b8ca1[_0x60c917(0x121)];_0x3aef4f===_['CollaborationEvent'][_0x60c917(0x464)]&&this['_onCursorUpdate'](_0x4b8ca1),_0x3aef4f===_['CollaborationEvent'][_0x60c917(0x122)]&&this[_0x60c917(0x395)](_0x4b8ca1);}),this[_0x3b0981(0x208)](this[_0x3b0981(0x257)][_0x3b0981(0x7d)](_0x227a46=>{const _0x1116e5=_0x3b0981,_0x2efc8d=_0x227a46[_0x1116e5(0x3d1)];_0x2efc8d!=null&&this[_0x1116e5(0x37b)]&&_0x227a46['id']===se['SetTextSelectionsOperation']['id']&&_0x2efc8d['unitId']===this['unitID']&&_0x2efc8d[_0x1116e5(0x2a6)]===!0x1&&this['_updateLocalCursor'](_0x2efc8d[_0x1116e5(0x12e)]);})),this[_0x3b0981(0x3dd)][_0x3b0981(0x3ff)][_0x3b0981(0x3d0)](v[_0x3b0981(0x1b4)](this[_0x3b0981(0x232)]))[_0x3b0981(0xc4)](_0x26fe80=>{const _0x5b30b7=_0x3b0981;if((_0x26fe80==null?void 0x0:_0x26fe80[_0x5b30b7(0x32c)])!==this[_0x5b30b7(0x32c)])return;const _0x40a02c={'eventID':_[_0x5b30b7(0x14f)][_0x5b30b7(0x464)],'data':_0x26fe80};this['_onCursorUpdate'](_0x40a02c);}),this[_0x3b0981(0x208)](this[_0x3b0981(0x257)][_0x3b0981(0x7d)](_0x5c568b=>{const _0x253af4=_0x3b0981;if(_0x5c568b[_0x253af4(0x3d1)]==null)return;const _0x2dccd1=_0x5c568b[_0x253af4(0x3d1)];if(_0x5c568b['id']!==se['RichTextEditingMutation']['id']||_0x2dccd1[_0x253af4(0x27e)]!==this[_0x253af4(0x32c)])return;const _0x498a6c={'id':'doc.mutation.rich-text-editing','params':_0x2dccd1},_0x3bd17a=this[_0x253af4(0x2da)];for(const [_0x381fe1,_0x3743a5]of _0x3bd17a){const _0x176078={'id':_0x253af4(0x493),'params':{'unitId':this[_0x253af4(0x32c)],'actions':null,'textRanges':_0x3743a5[_0x253af4(0x12e)]}},_0x31baa5=this[_0x253af4(0x30f)][_0x253af4(0x30c)](_0x498a6c,_0x176078,!0x1);if(_[_0x253af4(0x47c)](_0x31baa5))throw _0x31baa5['error'];_0x3bd17a[_0x253af4(0x225)](_0x381fe1,{..._0x3743a5,'ranges':_0x31baa5['m2Prime'][_0x253af4(0x3d1)]['textRanges']});}queueMicrotask(()=>{const _0x8e74a2=_0x253af4;this['_cursorInfo$'][_0x8e74a2(0x294)](_0x3bd17a);});})));}[_0x3a85d7(0x163)](_0x252f62){const _0x2d3a58=_0x3a85d7;var _0x357b42,_0x1fa2ab;const {memberID:_0x38c1ab,selection:_0x158fa4}=_0x252f62[_0x2d3a58(0xd9)],_0x3c8d66=ks(_0x158fa4),_0x12605e=(_0x1fa2ab=(_0x357b42=this[_0x2d3a58(0x15a)][_0x2d3a58(0x147)](this[_0x2d3a58(0x32c)],_0x38c1ab))==null?void 0x0:_0x357b42['name'])!=null?_0x1fa2ab:'Unknown\x20user',_0x13cc3d={'color':this['_colorAssignService'][_0x2d3a58(0x291)](_0x38c1ab),'name':_0x12605e,'ranges':_0x3c8d66},_0x43d7ef=this[_0x2d3a58(0x2da)];_0x43d7ef['set'](_0x38c1ab,_0x13cc3d),this[_0x2d3a58(0x3dc)][_0x2d3a58(0x294)](_0x43d7ef);}[_0x3a85d7(0x395)](_0x1c74cf){const _0x550836=_0x3a85d7,{memberID:_0x379b03}=_0x1c74cf[_0x550836(0xd9)],_0x38b489=this[_0x550836(0x2da)];_0x38b489[_0x550836(0x3de)](_0x379b03),this[_0x550836(0x3dc)][_0x550836(0x294)](_0x38b489);}['_toggleOnline'](){const _0x5c306f=_0x3a85d7;var _0x287023;if(this[_0x5c306f(0x37b)]=!0x0,((_0x287023=this[_0x5c306f(0x261)]['getFocusedUnit']())==null?void 0x0:_0x287023[_0x5c306f(0x311)]())!==this[_0x5c306f(0x32c)])return;const _0x282238=this['_injector'][_0x5c306f(0xca)](se['DocSelectionManagerService'])['getDocRanges']();Array[_0x5c306f(0x1ee)](_0x282238)&&_0x282238['length']>0x0&&this[_0x5c306f(0x3c6)](_0x282238);}[_0x3a85d7(0x319)](){this['_online']=!0x1;}};ke=si([K(0x2,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),K(0x3,a[_0x3a85d7(0x1e4)](Je)),K(0x4,a[_0x3a85d7(0x1e4)](X)),K(0x5,a[_0x3a85d7(0x1e4)](Xe)),K(0x6,_[_0x3a85d7(0x12f)]),K(0x7,a[_0x3a85d7(0x9e)]),K(0x8,a[_0x3a85d7(0xa3)])],ke);var ri=Object['defineProperty'],oi=Object[_0x3a85d7(0x43d)],ai=(_0x299490,_0x18107f,_0x5b8b5f,_0xb4b5ab)=>{for(var _0x5e1722=_0xb4b5ab>0x1?void 0x0:_0xb4b5ab?oi(_0x18107f,_0x5b8b5f):_0x18107f,_0x3b14b5=_0x299490['length']-0x1,_0x4765b7;_0x3b14b5>=0x0;_0x3b14b5--)(_0x4765b7=_0x299490[_0x3b14b5])&&(_0x5e1722=(_0xb4b5ab?_0x4765b7(_0x18107f,_0x5b8b5f,_0x5e1722):_0x4765b7(_0x5e1722))||_0x5e1722);return _0xb4b5ab&&_0x5e1722&&ri(_0x18107f,_0x5b8b5f,_0x5e1722),_0x5e1722;},Q=(_0x3fbdb4,_0x41770b)=>(_0x1c9550,_0x1971ad)=>_0x41770b(_0x1c9550,_0x1971ad,_0x3fbdb4);const ci=0x12c,li=0x64,hi=()=>{let _0x267cf5=[],_0x39a9a7=!0x1;return _0x5e551e=>{const _0x3fc351=_0x54ba;_0x267cf5[_0x3fc351(0x250)](_0x5e551e),_0x39a9a7||(_0x39a9a7=!0x0,setTimeout(()=>{const _0x3f6e9a=_0x3fc351;_0x267cf5[_0x3f6e9a(0x189)](_0x1b19dd=>_0x1b19dd()),_0x267cf5=[],_0x39a9a7=!0x1;}));};};let Be=class extends a['RxDisposable']{constructor(_0x228199,_0x283d26,_0x3cd630,_0x3ddb1b,_0x3b10d7,_0x5f3ec3,_0x2ff493,_0x457f57){const _0x13d249=_0x3a85d7;super(),u(this,_0x13d249(0x37b),!0x1),u(this,'_init',!0x1),u(this,_0x13d249(0x3dc),new v[(_0x13d249(0x2a3))](new Map())),u(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),u(this,_0x13d249(0x181),new v[(_0x13d249(0x2a3))]([])),u(this,_0x13d249(0x3ee),this[_0x13d249(0x181)][_0x13d249(0x3d0)](v['debounceTime'](ci))),u(this,_0x13d249(0x3c6),a['debounce']((_0x5ef28c,_0xd99d2a)=>{const _0x45ca20=_0x13d249,_0xc41cef={'eventID':_[_0x45ca20(0x14f)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x45ca20(0x32c)],'memberID':this[_0x45ca20(0x475)][_0x45ca20(0x435)](),'selection':et[_0x45ca20(0x378)](_0x5ef28c,_0xd99d2a[_0x45ca20(0x23d)])}};this[_0x45ca20(0x475)][_0x45ca20(0x450)](_0xc41cef,this[_0x45ca20(0x32c)]);},li)),(this[_0x13d249(0x32c)]=_0x228199,this[_0x13d249(0x475)]=_0x283d26,this[_0x13d249(0x1ae)]=_0x3cd630,this[_0x13d249(0x487)]=_0x3ddb1b,this['_memberService']=_0x3b10d7,this['_univerInstanceService']=_0x5f3ec3,this[_0x13d249(0x257)]=_0x2ff493,this[_0x13d249(0x342)]=_0x457f57);}get[_0x3a85d7(0x2da)](){const _0x25d520=_0x3a85d7;return this[_0x25d520(0x3dc)]['getValue']();}get['roomMembers'](){const _0x1edd79=_0x3a85d7;return this[_0x1edd79(0x181)]['getValue']();}[_0x3a85d7(0xad)](){const _0x4385b3=_0x3a85d7;super[_0x4385b3(0xad)](),this[_0x4385b3(0x3dc)]['next'](new Map()),this[_0x4385b3(0x3dc)][_0x4385b3(0x131)](),this[_0x4385b3(0x181)]['next']([]),this[_0x4385b3(0x181)][_0x4385b3(0x131)]();}[_0x3a85d7(0x2c4)](){const _0x3d4112=_0x3a85d7;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x3d4112(0x3d0)](v[_0x3d4112(0x1b4)](this[_0x3d4112(0x232)]))[_0x3d4112(0xc4)](_0x5b2d37=>{const _0x710c35=_0x3d4112;_0x5b2d37===H['ONLINE']?this[_0x710c35(0x444)]():this[_0x710c35(0x319)]();}),this[_0x3d4112(0x475)][_0x3d4112(0x3a3)][_0x3d4112(0x3d0)](v[_0x3d4112(0x1b4)](this['dispose$']))['subscribe'](_0x34b6bf=>{const _0x2b3fbb=_0x3d4112,_0x1e0d25=_0x34b6bf[_0x2b3fbb(0x121)];_0x1e0d25===_[_0x2b3fbb(0x14f)][_0x2b3fbb(0x464)]&&this[_0x2b3fbb(0x163)](_0x34b6bf),_0x1e0d25===_[_0x2b3fbb(0x14f)][_0x2b3fbb(0x122)]&&this['_onCursorDelete'](_0x34b6bf);}),this[_0x3d4112(0x241)](),this[_0x3d4112(0x208)](this[_0x3d4112(0x257)][_0x3d4112(0x7d)](_0x2a627c=>{const _0x2b8a52=_0x3d4112;if(this[_0x2b8a52(0x37b)]&&_0x2a627c['id']===C[_0x2b8a52(0xab)]['id']&&_0x2a627c[_0x2b8a52(0x3d1)][_0x2b8a52(0x27e)]===this[_0x2b8a52(0x32c)]){const _0x308f62=_0x2a627c[_0x2b8a52(0x3d1)];this[_0x2b8a52(0x3c6)](_0x308f62[_0x2b8a52(0x37e)],_0x308f62[_0x2b8a52(0x308)][0x0]);}})));}['_onCursorUpdate'](_0x17a7b7){const _0x12f6ad=_0x3a85d7;var _0x4aade6,_0x49dee9;const {memberID:_0x1b63fd,selection:_0xbfc60e}=_0x17a7b7[_0x12f6ad(0xd9)],{sheetName:_0x3c1a8c,range:_0x2b9e51}=et[_0x12f6ad(0x251)](_0xbfc60e),_0x1465cd={'name':(_0x49dee9=(_0x4aade6=this[_0x12f6ad(0x15a)][_0x12f6ad(0x147)](this[_0x12f6ad(0x32c)],_0x1b63fd))==null?void 0x0:_0x4aade6[_0x12f6ad(0x120)])!=null?_0x49dee9:_0x12f6ad(0x25e),'range':this[_0x12f6ad(0x158)](_0x3c1a8c,_0x2b9e51),'sheetID':_0x3c1a8c,'color':this[_0x12f6ad(0x487)][_0x12f6ad(0x291)](_0x1b63fd),'selection':_0xbfc60e},_0x154825=this[_0x12f6ad(0x2da)];_0x154825[_0x12f6ad(0x225)](_0x1b63fd,_0x1465cd),this[_0x12f6ad(0x3dc)]['next'](_0x154825);}[_0x3a85d7(0x395)](_0x402220){const _0x2fe555=_0x3a85d7,{memberID:_0x1c5bac}=_0x402220[_0x2fe555(0xd9)],_0x5a047f=this[_0x2fe555(0x2da)];_0x5a047f[_0x2fe555(0x3de)](_0x1c5bac),this[_0x2fe555(0x3dc)][_0x2fe555(0x294)](_0x5a047f);}[_0x3a85d7(0x158)](_0x1faa1a,_0x5d9ea1){const _0x177e86=_0x3a85d7;var _0x554eac,_0x468d08;const _0x344796=(_0x468d08=(_0x554eac=this[_0x177e86(0x261)][_0x177e86(0x10a)](this[_0x177e86(0x32c)]))==null?void 0x0:_0x554eac[_0x177e86(0x48c)](_0x1faa1a))==null?void 0x0:_0x468d08[_0x177e86(0x2a9)]();return(_0x344796==null?void 0x0:_0x344796[_0x177e86(0xd3)](_0x13d2e4=>a[_0x177e86(0x31d)][_0x177e86(0x3d6)](_0x13d2e4,_0x5d9ea1)))||_0x5d9ea1;}['_onRefRangeChange'](){const _0x1f3619=_0x3a85d7,_0x2f87df=new a[(_0x1f3619(0x3f6))](),_0x375a03=hi(),_0x28b4ef=()=>{const _0x4e62e9=_0x1f3619;_0x2f87df[_0x4e62e9(0xad)]();const _0x25c57b=(_0x452bd7,_0x1b0d8,_0x14f81e,_0x2688fb)=>{const _0xf280a4=_0x4e62e9;let _0x15a08a=[];switch(_0x452bd7['id']){case C['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x15a08a=C[_0xf280a4(0x364)](_0x452bd7,_0x2688fb);break;}case C[_0xf280a4(0x27b)]['DeleteRangeMoveUpCommandId']:{_0x15a08a=C[_0xf280a4(0x1c3)](_0x452bd7,_0x2688fb);break;}case C[_0xf280a4(0x27b)]['InsertColCommandId']:{_0x15a08a=C[_0xf280a4(0x169)](_0x452bd7,_0x2688fb);break;}case C['EffectRefRangId'][_0xf280a4(0x337)]:{_0x15a08a=C[_0xf280a4(0x3df)](_0x452bd7,_0x2688fb);break;}case C[_0xf280a4(0x27b)][_0xf280a4(0x9a)]:{_0x15a08a=C[_0xf280a4(0x108)](_0x452bd7,_0x2688fb);break;}case C[_0xf280a4(0x27b)][_0xf280a4(0x2be)]:{_0x15a08a=C[_0xf280a4(0x3a2)](_0x452bd7,_0x2688fb);break;}case C[_0xf280a4(0x27b)]['MoveRangeCommandId']:{_0x15a08a=C[_0xf280a4(0x34a)](_0x452bd7,_0x2688fb);break;}case C[_0xf280a4(0x27b)]['RemoveColCommandId']:{_0x15a08a=C[_0xf280a4(0x313)](_0x452bd7,_0x2688fb);break;}case C[_0xf280a4(0x27b)][_0xf280a4(0x422)]:{_0x15a08a=C[_0xf280a4(0x186)](_0x452bd7,_0x2688fb);break;}}const _0x19e05f=C[_0xf280a4(0x2c7)](_0x15a08a,_0x2688fb),_0x98db0c=this['cursorInfo'][_0xf280a4(0xca)](_0x1b0d8);if(_0x98db0c&&_0x19e05f){const _0xb81935={..._0x98db0c,'range':_0x19e05f};this['cursorInfo']['set'](_0x1b0d8,_0xb81935),_0x375a03(()=>{const _0x50b3d0=_0xf280a4,_0x222be6=this[_0x50b3d0(0x342)][_0x50b3d0(0x320)](_0x19e05f,_0x2f09d7=>(_0x222be6[_0x50b3d0(0xad)](),_0x25c57b(_0x2f09d7,_0x1b0d8,_0x14f81e,_0x19e05f)));_0x2f87df[_0x50b3d0(0x1b9)](_0x222be6);});}return{'redos':[],'undos':[]};};this[_0x4e62e9(0x2da)][_0x4e62e9(0x189)]((_0x465d1e,_0x5349d7)=>{const _0x56a989=_0x4e62e9,{range:_0x118492,sheetID:_0xd0401b}=_0x465d1e,_0xb17f3a=this[_0x56a989(0x342)][_0x56a989(0x320)](_0x118492,_0x36bb8a=>(_0xb17f3a[_0x56a989(0xad)](),_0x25c57b(_0x36bb8a,_0x5349d7,_0xd0401b,_0x118492)));_0x2f87df['add'](_0xb17f3a);});};this[_0x1f3619(0x208)](a[_0x1f3619(0x3a6)](this[_0x1f3619(0x3dc)][_0x1f3619(0xc4)](()=>{_0x28b4ef();})));}[_0x3a85d7(0x444)](){const _0x599b71=_0x3a85d7;var _0x2bd017,_0x5110d0;if(this[_0x599b71(0x37b)]=!0x0,((_0x2bd017=this[_0x599b71(0x261)][_0x599b71(0xe6)]())==null?void 0x0:_0x2bd017[_0x599b71(0x311)]())!==this[_0x599b71(0x32c)])return;const _0x56c401=(_0x5110d0=this[_0x599b71(0x1ae)][_0x599b71(0xca)](C['SheetsSelectionsService'])[_0x599b71(0x34b)]())==null?void 0x0:_0x5110d0[0x0],_0x5edc71=this[_0x599b71(0x261)][_0x599b71(0x2bf)](a['UniverInstanceType'][_0x599b71(0x35c)])[_0x599b71(0x150)]();_0x56c401&&_0x5edc71&&this[_0x599b71(0x3c6)](_0x5edc71[_0x599b71(0x2ac)](),_0x56c401);}[_0x3a85d7(0x319)](){const _0x335650=_0x3a85d7;this[_0x335650(0x37b)]=!0x1;}};Be=ai([Q(0x2,a[_0x3a85d7(0x1e4)](a['Injector'])),Q(0x3,a[_0x3a85d7(0x1e4)](Je)),Q(0x4,a[_0x3a85d7(0x1e4)](X)),Q(0x5,a[_0x3a85d7(0x9e)]),Q(0x6,a[_0x3a85d7(0xa3)]),Q(0x7,a['Inject'](C[_0x3a85d7(0x10d)]))],Be);var _i=Object[_0x3a85d7(0x329)],ui=Object[_0x3a85d7(0x43d)],di=(_0xb0d945,_0x5c5015,_0x2d1261,_0x3698db)=>{const _0x19d075=_0x3a85d7;for(var _0xfbc2a6=_0x3698db>0x1?void 0x0:_0x3698db?ui(_0x5c5015,_0x2d1261):_0x5c5015,_0x3f917f=_0xb0d945[_0x19d075(0x16a)]-0x1,_0x73a319;_0x3f917f>=0x0;_0x3f917f--)(_0x73a319=_0xb0d945[_0x3f917f])&&(_0xfbc2a6=(_0x3698db?_0x73a319(_0x5c5015,_0x2d1261,_0xfbc2a6):_0x73a319(_0xfbc2a6))||_0xfbc2a6);return _0x3698db&&_0xfbc2a6&&_i(_0x5c5015,_0x2d1261,_0xfbc2a6),_0xfbc2a6;},Me=(_0x48a21c,_0x4f9211)=>(_0x13ea44,_0x1bdae2)=>_0x4f9211(_0x13ea44,_0x1bdae2,_0x48a21c);let ne=class extends a['RxDisposable']{constructor(_0x48335c,_0x1fb9de,_0x3093e8){const _0x505cc4=_0x3a85d7;super(),u(this,_0x505cc4(0x136),new Map()),u(this,_0x505cc4(0x26a),new v['Subject']()),(this[_0x505cc4(0x261)]=_0x48335c,this[_0x505cc4(0x1ae)]=_0x1fb9de,this[_0x505cc4(0x2bd)]=_0x3093e8,this[_0x505cc4(0x190)]());}[_0x3a85d7(0xad)](){const _0x4eff68=_0x3a85d7;super[_0x4eff68(0xad)](),this['_entityInit$'][_0x4eff68(0x131)](),this[_0x4eff68(0x136)][_0x4eff68(0x189)](_0x5c3cc3=>_0x5c3cc3['dispose']());}[_0x3a85d7(0x262)](_0x54cd0c){const _0x5c8908=_0x3a85d7;return this[_0x5c8908(0x136)]['has'](_0x54cd0c)?this[_0x5c8908(0x136)][_0x5c8908(0xca)](_0x54cd0c)['cursorInfo$']:this[_0x5c8908(0x26a)][_0x5c8908(0x3d0)](v[_0x5c8908(0x3da)](_0x5129cf=>_0x5129cf[_0x5c8908(0x32c)]===_0x54cd0c),v[_0x5c8908(0x1b3)](_0x5305ac=>_0x5305ac[_0x5c8908(0x1ad)]));}[_0x3a85d7(0x190)](){const _0x587ac2=_0x3a85d7;this[_0x587ac2(0x261)][_0x587ac2(0x220)](a[_0x587ac2(0x355)][_0x587ac2(0x35c)])[_0x587ac2(0x3d0)](v[_0x587ac2(0x1b4)](this['dispose$']))[_0x587ac2(0xc4)](async _0x110257=>{const _0x2f4615=_0x587ac2,_0x5108ba=_0x110257[_0x2f4615(0x311)](),_0x30d50f=await this['_startSheetCollabCursor'](_0x5108ba);this[_0x2f4615(0x26a)][_0x2f4615(0x294)](_0x30d50f),this[_0x2f4615(0x136)][_0x2f4615(0x225)](_0x5108ba,_0x30d50f);}),this[_0x587ac2(0x261)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x587ac2(0x117)])['pipe'](v[_0x587ac2(0x1b4)](this[_0x587ac2(0x232)]))[_0x587ac2(0x3d0)](v['filter'](_0x13b279=>!_0x13b279[_0x587ac2(0x311)]()[_0x587ac2(0x16d)]('__')))['subscribe'](async _0x5bcd97=>{const _0x1184af=_0x587ac2,_0x3a3c86=_0x5bcd97[_0x1184af(0x311)](),_0x4e2d27=await this[_0x1184af(0x1bc)](_0x3a3c86);this[_0x1184af(0x26a)][_0x1184af(0x294)](_0x4e2d27),this[_0x1184af(0x136)][_0x1184af(0x225)](_0x3a3c86,_0x4e2d27);}),v['merge'](this[_0x587ac2(0x261)][_0x587ac2(0xe4)](a['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x587ac2(0x355)][_0x587ac2(0x35c)]))[_0x587ac2(0x3d0)](v[_0x587ac2(0x1b4)](this[_0x587ac2(0x232)]))['subscribe'](_0x64fba4=>{const _0x1f6741=_0x587ac2,_0x4ba472=_0x64fba4[_0x1f6741(0x311)](),_0x37474f=this['_entities'][_0x1f6741(0xca)](_0x4ba472);_0x37474f&&(_0x37474f[_0x1f6741(0xad)](),this['_entities']['delete'](_0x4ba472));});}async[_0x3a85d7(0x23c)](_0x40d07b){const _0x3da0b3=_0x3a85d7,_0x173d4b=await this['_collabSessionService'][_0x3da0b3(0x81)](_0x40d07b),_0x51b80e=this[_0x3da0b3(0x1ae)]['createInstance'](Be,_0x40d07b,_0x173d4b);return _0x51b80e[_0x3da0b3(0x2c4)](),_0x51b80e;}async[_0x3a85d7(0x1bc)](_0x3f7a96){const _0x2aaec6=_0x3a85d7,_0x31fcec=await this[_0x2aaec6(0x2bd)][_0x2aaec6(0x81)](_0x3f7a96),_0x13e924=this[_0x2aaec6(0x1ae)][_0x2aaec6(0xfe)](ke,_0x3f7a96,_0x31fcec);return _0x13e924['init'](),_0x13e924;}};ne=di([Me(0x0,a[_0x3a85d7(0x9e)]),Me(0x1,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),Me(0x2,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x3d9)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,Si=0x5;function vi(_0x5062d6,_0x1502b0){const _0x247368=_0x3a85d7;let {radius:_0x4a0881,width:_0x5d12a1,height:_0x11a054}=_0x1502b0;_0x4a0881=_0x4a0881!=null?_0x4a0881:0x0,_0x5d12a1=_0x5d12a1!=null?_0x5d12a1:0x1e,_0x11a054=_0x11a054!=null?_0x11a054:0x1e;let _0x597332=0x0,_0x5b3b68=0x0,_0x1491b0=0x0;_0x597332=_0x5b3b68=_0x1491b0=Math[_0x247368(0x431)](_0x4a0881,_0x5d12a1/0x2,_0x11a054/0x2),_0x5062d6['beginPath'](),_0x5062d6[_0x247368(0x29e)](_0x597332,0x0),_0x5062d6['lineTo'](_0x5d12a1-_0x5b3b68,0x0),_0x5062d6[_0x247368(0x347)](_0x5d12a1-_0x5b3b68,_0x5b3b68,_0x5b3b68,Math['PI']*0x3/0x2,0x0,!0x1),_0x5062d6['lineTo'](_0x5d12a1,_0x11a054-_0x1491b0),_0x5062d6['arc'](_0x5d12a1-_0x1491b0,_0x11a054-_0x1491b0,_0x1491b0,0x0,Math['PI']/0x2,!0x1),_0x5062d6[_0x247368(0x1be)](0x0,_0x11a054),_0x5062d6[_0x247368(0x1be)](0x0,_0x597332),_0x5062d6[_0x247368(0x347)](_0x597332,_0x597332,_0x597332,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5062d6[_0x247368(0x284)](),_0x1502b0[_0x247368(0x24d)]&&(_0x5062d6[_0x247368(0x321)](),_0x5062d6['fillStyle']=_0x1502b0[_0x247368(0x24d)],_0x1502b0['fillRule']===_0x247368(0x3c7)?_0x5062d6['fill'](_0x247368(0x3c7)):_0x5062d6[_0x247368(0x24d)](),_0x5062d6['restore']());}class Oe extends D[_0x3a85d7(0x3e7)]{constructor(_0x398c96,_0x10e9c4){const _0xcaa992=_0x3a85d7;super(_0x398c96,_0x10e9c4),u(this,_0xcaa992(0x242)),u(this,_0xcaa992(0x346)),(this[_0xcaa992(0x242)]=_0x10e9c4==null?void 0x0:_0x10e9c4[_0xcaa992(0x242)],this[_0xcaa992(0x346)]=_0x10e9c4==null?void 0x0:_0x10e9c4[_0xcaa992(0x346)]);}static['drawWith'](_0x59f878,_0x3d1acf){const _0x4d5e76=_0x3a85d7,{text:_0x34faf6,color:_0x33edaf}=_0x3d1acf;_0x59f878['save'](),_0x59f878[_0x4d5e76(0x31c)]=_0x4d5e76(0x10c);const _0x3ca475=_0x59f878[_0x4d5e76(0x2cc)](_0x34faf6)[_0x4d5e76(0x3c5)],_0x182cba=Math[_0x4d5e76(0x431)](_0x3ca475+0x2*Ae,lt);vi(_0x59f878,{'height':de,'radius':0x4,'width':_0x182cba,'fill':_0x33edaf,'evented':!0x1}),_0x59f878[_0x4d5e76(0xd5)]='#FFF';const _0x309415=Ae,_0x557e4f=de-Si,_0x328a5d=lt-0x2*Ae;if(_0x3ca475>_0x328a5d){let _0x196df6='',_0x5190c1=0x0;for(const _0x2a8d66 of _0x34faf6){const _0x32c988=_0x59f878['measureText'](_0x2a8d66)[_0x4d5e76(0x3c5)];if(_0x5190c1+_0x32c988<=_0x328a5d-_0x59f878['measureText'](_0x4d5e76(0x296))[_0x4d5e76(0x3c5)])_0x196df6+=_0x2a8d66,_0x5190c1+=_0x32c988;else{_0x196df6+=_0x4d5e76(0x296);break;}}_0x59f878[_0x4d5e76(0x203)](_0x196df6,_0x309415,_0x557e4f);}else _0x59f878[_0x4d5e76(0x203)](_0x34faf6,_0x309415,_0x557e4f);_0x59f878['restore']();}[_0x3a85d7(0x341)](_0x45950d){const _0x331f70=_0x3a85d7;Oe[_0x331f70(0x85)](_0x45950d,this);}}const Le=_0x3a85d7(0x432),mi=_0x3a85d7(0x84),gi=_0x3a85d7(0x1ca),le=0x6,fi=1.5,je=0x4,Ii=1.5,pi='rgba(255,\x20255,\x20255,\x200.01)';class ht{constructor(_0xeecde4,_0x33e41b,_0x2fdacc,_0x1d8290){const _0x5c8904=_0x3a85d7;u(this,'_shapes',[]),u(this,_0x5c8904(0x2bb),null),u(this,_0x5c8904(0x307),null),u(this,_0x5c8904(0x415),null),u(this,'_hideTimer',null),u(this,_0x5c8904(0x1d6),null),(this[_0x5c8904(0x95)]=_0xeecde4,this[_0x5c8904(0x2a8)]=_0x33e41b,this['_docSkeleton']=_0x2fdacc,this[_0x5c8904(0x3ef)]=_0x1d8290,this[_0x5c8904(0xbc)]());}set[_0x3a85d7(0x1f4)](_0x3f91c2){const _0x546b77=_0x3a85d7;_0x3f91c2?(this[_0x546b77(0x415)]&&this[_0x546b77(0x415)]['hide'](),this['_textBubble']&&this[_0x546b77(0x307)][_0x546b77(0x2e8)]()):(this[_0x546b77(0x415)]&&this['_anchorDot'][_0x546b77(0x2e8)](),this['_textBubble']&&this[_0x546b77(0x307)][_0x546b77(0x2c6)]());}[_0x3a85d7(0xad)](){const _0x160ba9=_0x3a85d7;for(const _0xd3ed75 of this[_0x160ba9(0x8b)])_0xd3ed75[_0x160ba9(0xad)]();this[_0x160ba9(0x307)]&&this[_0x160ba9(0x307)][_0x160ba9(0xad)](),this[_0x160ba9(0x415)]&&this[_0x160ba9(0x415)][_0x160ba9(0xad)](),this[_0x160ba9(0x2bb)]&&this['_anchor'][_0x160ba9(0xad)](),this['_eventUnsubscribe']&&this[_0x160ba9(0x1d6)]();}[_0x3a85d7(0xbc)](){const _0x2911bc=_0x3a85d7;var _0x483179;const {_docSkeleton:_0x2e319d,_document:_0x5d41c8}=this,{color:_0x2deb8e,name:_0xa3254f,ranges:_0x15d2eb}=this['_cursor'],_0x1f467c=_0x5d41c8['getOffsetConfig'](),{docsLeft:_0x4b9e04,docsTop:_0x2f5bd6}=_0x1f467c,_0x5ba21a=new N[(_0x2911bc(0x43c))](_0x1f467c,_0x2e319d);for(const {startOffset:_0x57357b,endOffset:_0x18d8f3,collapsed:_0x24f134,isActive:_0x125009}of _0x15d2eb){const _0x370ca0=_0x2e319d[_0x2911bc(0x88)](_0x57357b),_0x3b4452=_0x2e319d[_0x2911bc(0x88)](_0x18d8f3);if(_0x125009){const {contentBoxPointGroup:_0x47117a}=_0x5ba21a[_0x2911bc(0x3a5)](_0x3b4452,_0x3b4452);if(_0x47117a[_0x2911bc(0x16a)]===0x0)continue;this['_drawAnchor'](_0x2deb8e,_0x47117a,_0x4b9e04,_0x2f5bd6,_0xa3254f),this['_eventUnsubscribe']=this[_0x2911bc(0x366)]();}if(!_0x24f134&&_0x370ca0&&_0x3b4452){if(N['isValidRectRange'](_0x370ca0,_0x3b4452)){const _0xc89029=new N['NodePositionConvertToRectRange'](_0x1f467c,_0x2e319d),{pointGroup:_0x39b6d2}=(_0x483179=_0xc89029[_0x2911bc(0x3a5)](_0x370ca0,_0x3b4452))!=null?_0x483179:{};if(_0x39b6d2==null||_0x39b6d2[_0x2911bc(0x16a)]===0x0)continue;this[_0x2911bc(0x18b)](_0x2deb8e,_0x39b6d2,_0x4b9e04,_0x2f5bd6);}else{const {contentBoxPointGroup:_0x5dbbe4}=_0x5ba21a[_0x2911bc(0x3a5)](_0x370ca0,_0x3b4452);if(_0x5dbbe4[_0x2911bc(0x16a)]===0x0)continue;this[_0x2911bc(0x368)](_0x2deb8e,_0x5dbbe4,_0x4b9e04,_0x2f5bd6);}}}}['_drawAnchor'](_0x150233,_0x16983d,_0x1a6a51,_0x561158,_0x4c8328){const _0x555b7e=_0x3a85d7,_0x428ba8=this[_0x555b7e(0x2e0)](_0x16983d),{left:_0x444b6f,top:_0x3799e8,height:_0x2150c2}=_0x428ba8,_0x4ae0ef=this[_0x555b7e(0x22c)](),_0x103fbf=Ii/_0x4ae0ef,_0x1e5d6b=new D[(_0x555b7e(0x477))](Le+a[_0x555b7e(0x268)]['generateRandomId'](le),{'left':_0x444b6f+_0x1a6a51-_0x103fbf,'top':_0x3799e8+_0x561158,'height':_0x2150c2,'width':fi,'fill':_0x150233||D['getColor'](a[_0x555b7e(0x187)][_0x555b7e(0x1ac)],0x0),'strokeWidth':_0x103fbf,'stroke':pi,'evented':!0x0});this['_anchor']=_0x1e5d6b,this['_scene']['addObject'](_0x1e5d6b,N['TEXT_RANGE_LAYER_INDEX']);const _0x57b2a6=new D['Rect'](Le+a[_0x555b7e(0x268)][_0x555b7e(0x3c2)](le),{'left':_0x444b6f+_0x1a6a51-_0x103fbf,'top':_0x3799e8+_0x561158-je/0x2,'height':je,'width':je,'fill':_0x150233||D[_0x555b7e(0x3d3)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x150233||D[_0x555b7e(0x3d3)](a[_0x555b7e(0x187)][_0x555b7e(0x1ac)],0x0),'evented':!0x1});this[_0x555b7e(0x415)]=_0x57b2a6,this[_0x555b7e(0x2a8)]['addObject'](_0x57b2a6,N[_0x555b7e(0x1e1)]);const _0xbba928=new Oe(Le+a[_0x555b7e(0x268)][_0x555b7e(0x3c2)](le),{'left':_0x444b6f+_0x1a6a51-_0x103fbf,'top':_0x3799e8+_0x561158-de,'text':_0x4c8328,'color':_0x150233});this[_0x555b7e(0x307)]=_0xbba928,this[_0x555b7e(0x2a8)][_0x555b7e(0x217)](_0xbba928,N['TEXT_RANGE_LAYER_INDEX']),this[_0x555b7e(0x1f4)]=!0x1;}['_handleHover'](){const _0x463c07=_0x3a85d7,_0x45969b=this[_0x463c07(0x2bb)][_0x463c07(0x2b1)][_0x463c07(0x1d2)](()=>{this['_hover']=!0x0;}),_0x3953bb=this['_anchor'][_0x463c07(0xdf)][_0x463c07(0x1d2)](()=>{const _0x53548f=_0x463c07;this[_0x53548f(0x263)]&&clearTimeout(this['_hideTimer']),this[_0x53548f(0x263)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4cea65=_0x463c07;_0x45969b[_0x4cea65(0x183)](),_0x3953bb['unsubscribe']();};}[_0x3a85d7(0x368)](_0x4e6f7c,_0x205eef,_0xe72ddf,_0x5b1850){const _0xa015ae=_0x3a85d7,_0x18048a=new a['ColorKit'](_0x4e6f7c)[_0xa015ae(0x113)](0.2)[_0xa015ae(0x353)](),_0x42ba44=new D['RegularPolygon'](mi+a[_0xa015ae(0x268)][_0xa015ae(0x3c2)](le),{'pointsGroup':_0x205eef,'fill':_0x18048a||D[_0xa015ae(0x3d3)](a[_0xa015ae(0x187)]['black'],0.2),'left':_0xe72ddf,'top':_0x5b1850,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xa015ae(0x8b)]['push'](_0x42ba44),this[_0xa015ae(0x2a8)]['addObject'](_0x42ba44,N['TEXT_RANGE_LAYER_INDEX']);}[_0x3a85d7(0x18b)](_0x18cb13,_0x5d974c,_0x3559cc,_0x11f8a8){const _0x3168f9=_0x3a85d7,_0x1f1fbe=new a[(_0x3168f9(0x36d))](_0x18cb13)[_0x3168f9(0x113)](0.2)[_0x3168f9(0x353)](),_0x39a2b=new D['RegularPolygon'](gi+a['Tools'][_0x3168f9(0x3c2)](le),{'pointsGroup':_0x5d974c,'fill':_0x1f1fbe||D['getColor'](a['COLORS']['black'],0.2),'left':_0x3559cc,'top':_0x11f8a8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3168f9(0x8b)][_0x3168f9(0x250)](_0x39a2b),this['_scene']['addObject'](_0x39a2b,N[_0x3168f9(0x1e1)]);}[_0x3a85d7(0x2e0)](_0x340e19){const _0x584c6f=_0x340e19[0x0],_0x500251=_0x584c6f[0x0],_0xd53ae0=_0x584c6f[0x2],{x:_0x1a94ec,y:_0x25c51c}=_0x500251,{x:_0x1ea4f5,y:_0x3b28f8}=_0xd53ae0;return{'left':_0x1a94ec,'top':_0x25c51c,'width':_0x1ea4f5-_0x1a94ec,'height':_0x3b28f8-_0x25c51c};}[_0x3a85d7(0x22c)](){const _0x8b9642=_0x3a85d7,{scaleX:_0x51fea9,scaleY:_0x3275ec}=this['_scene'][_0x8b9642(0x295)]();return Math[_0x8b9642(0x104)](_0x51fea9,_0x3275ec);}}var Ci=Object[_0x3a85d7(0x329)],Ei=Object[_0x3a85d7(0x43d)],bi=(_0x13e64d,_0x565628,_0x107a11,_0x5fcd31)=>{const _0x159ee6=_0x3a85d7;for(var _0xdf85cf=_0x5fcd31>0x1?void 0x0:_0x5fcd31?Ei(_0x565628,_0x107a11):_0x565628,_0x4656c7=_0x13e64d[_0x159ee6(0x16a)]-0x1,_0x4c749e;_0x4656c7>=0x0;_0x4656c7--)(_0x4c749e=_0x13e64d[_0x4656c7])&&(_0xdf85cf=(_0x5fcd31?_0x4c749e(_0x565628,_0x107a11,_0xdf85cf):_0x4c749e(_0xdf85cf))||_0xdf85cf);return _0x5fcd31&&_0xdf85cf&&Ci(_0x565628,_0x107a11,_0xdf85cf),_0xdf85cf;},ve=(_0x4146ed,_0x3fef00)=>(_0x385c43,_0xe1f50d)=>_0x3fef00(_0x385c43,_0xe1f50d,_0x4146ed);let Ve=class extends a[_0x3a85d7(0x1fb)]{constructor(_0x1c1384,_0x3e799f,_0x161e17,_0x497126,_0x38ed11){const _0x200ebd=_0x3a85d7;super(),u(this,_0x200ebd(0x416),[]),u(this,_0x200ebd(0x14c),[]),(this[_0x200ebd(0x299)]=_0x1c1384,this[_0x200ebd(0x29a)]=_0x3e799f,this[_0x200ebd(0x223)]=_0x161e17,this['_commandService']=_0x497126,this['_themeService']=_0x38ed11,this['_init']());}['_init'](){const _0x2e1b28=_0x3a85d7,_0x4ebffc=this[_0x2e1b28(0x299)][_0x2e1b28(0x27e)],_0x167802=this[_0x2e1b28(0x29a)];this[_0x2e1b28(0x208)](v['combineLatest']([this[_0x2e1b28(0x223)][_0x2e1b28(0x262)](_0x4ebffc),this[_0x2e1b28(0x124)]['currentTheme$']])[_0x2e1b28(0x3d0)](E[_0x2e1b28(0xcf)](([_0x3963f2,_0xdf63ab])=>({'skeleton':_0x167802['getSkeleton'](),'cursors':[..._0x3963f2['values']()][_0x2e1b28(0x322)](_0x3f83cf=>({..._0x3f83cf,'color':_0xdf63ab[_0x3f83cf['color']]}))})))[_0x2e1b28(0xc4)](_0x140bc3=>{const _0x4c9087=_0x2e1b28;if(this['_removeCollabCursors'](),_0x140bc3){const {skeleton:_0x4065de,cursors:_0x359166}=_0x140bc3;this[_0x4c9087(0x8e)](_0x4065de,_0x359166);}})),this[_0x2e1b28(0xb4)](),this[_0x2e1b28(0x41e)]();}[_0x3a85d7(0x8e)](_0x46ddf3,_0x230ba6){const _0x1d0e38=_0x3a85d7,{scene:_0x14b13e,mainComponent:_0x1fc952}=this[_0x1d0e38(0x299)],_0x2069af=_0x230ba6[_0x1d0e38(0xcf)](_0x1eeccd=>new ht(_0x1eeccd,_0x14b13e,_0x46ddf3,_0x1fc952));this[_0x1d0e38(0x416)]=_0x2069af,this['_cursors']=_0x230ba6;}[_0x3a85d7(0x2b8)](){const _0x57109=_0x3a85d7;this[_0x57109(0x474)]();const {scene:_0x26f91f,mainComponent:_0x44ef06}=this['_context'],_0x320d6d=this[_0x57109(0x29a)][_0x57109(0x274)](),_0xdac339=this[_0x57109(0x14c)]['map'](_0x19b96c=>new ht(_0x19b96c,_0x26f91f,_0x320d6d,_0x44ef06));this[_0x57109(0x416)]=_0xdac339;}[_0x3a85d7(0x474)](){const _0x4fd384=_0x3a85d7;this['_cursorShapes'][_0x4fd384(0x189)](_0x3a1526=>_0x3a1526[_0x4fd384(0xad)]()),this[_0x4fd384(0x416)]=[];}[_0x3a85d7(0x41e)](){const _0x49f53e=_0x3a85d7,_0x3e5be4=[N[_0x49f53e(0xf4)]['id']];this[_0x49f53e(0x208)](this[_0x49f53e(0x257)][_0x49f53e(0x7d)](_0xa867e7=>{const _0x3d03e6=_0x49f53e;_0x3e5be4[_0x3d03e6(0x2d7)](_0xa867e7['id'])&&_0xa867e7['params'][_0x3d03e6(0x27e)]===this[_0x3d03e6(0x299)]['unitId']&&this[_0x3d03e6(0x2b8)]();}));}[_0x3a85d7(0xb4)](){const _0x272eea=_0x3a85d7;this[_0x272eea(0x208)](a[_0x272eea(0x2e3)](this['_context'][_0x272eea(0x3f8)][_0x272eea(0x3d7)])['pipe'](E[_0x272eea(0x3da)](_0x5d221a=>_0x5d221a['type']===D[_0x272eea(0x468)][_0x272eea(0x253)]),E['throttleTime'](0x10))[_0x272eea(0xc4)](()=>{this['_refreshCollabCursors']();}));}};Ve=bi([ve(0x1,a['Inject'](se[_0x3a85d7(0x24e)])),ve(0x2,a[_0x3a85d7(0x1e4)](ne)),ve(0x3,a[_0x3a85d7(0xa3)]),ve(0x4,a['Inject'](a[_0x3a85d7(0xc8)]))],Ve);const Ti=0x1,Ri=1.5;class Nt extends D[_0x3a85d7(0x3e7)]{constructor(_0x2db409,_0x899ab1){const _0x1ad65d=_0x3a85d7;super(_0x2db409,_0x899ab1),u(this,_0x1ad65d(0x266)),u(this,'_hovered',!0x1),u(this,_0x1ad65d(0x209)),u(this,_0x1ad65d(0x48f),''),u(this,_0x1ad65d(0xf0),_0x1ad65d(0x2f4)),u(this,_0x1ad65d(0x381)),(_0x899ab1&&this[_0x1ad65d(0x423)](_0x899ab1),this['onPointerEnter$'][_0x1ad65d(0x1d2)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x1ad65d(0x1d2)](()=>this[_0x1ad65d(0x423)]({'hovered':!0x1})));}[_0x3a85d7(0x423)](_0x5cf1a6){const _0x2fe9ea=_0x3a85d7;var _0x38ec19,_0x3ea9b7,_0x15e561,_0x5741bb,_0x386df5,_0x49be96;this[_0x2fe9ea(0x266)]=(_0x38ec19=_0x5cf1a6[_0x2fe9ea(0x242)])!=null?_0x38ec19:this[_0x2fe9ea(0x266)],this[_0x2fe9ea(0x456)]=(_0x3ea9b7=_0x5cf1a6[_0x2fe9ea(0x15d)])!=null?_0x3ea9b7:this[_0x2fe9ea(0x456)],this['_range']=(_0x15e561=_0x5cf1a6[_0x2fe9ea(0x23d)])!=null?_0x15e561:this[_0x2fe9ea(0x209)],this['_name']=(_0x5741bb=_0x5cf1a6['name'])!=null?_0x5741bb:this[_0x2fe9ea(0x48f)],this[_0x2fe9ea(0xf0)]=(_0x386df5=_0x5cf1a6[_0x2fe9ea(0x3b9)])!=null?_0x386df5:this[_0x2fe9ea(0xf0)],this[_0x2fe9ea(0x381)]=(_0x49be96=_0x5cf1a6[_0x2fe9ea(0xcc)])!=null?_0x49be96:this[_0x2fe9ea(0x381)],this[_0x2fe9ea(0x2f8)]({'width':_0x5cf1a6[_0x2fe9ea(0x3c5)],'height':_0x5cf1a6[_0x2fe9ea(0x97)]});}['onMouseMove'](_0x3c22a1){const _0x180a65=_0x3a85d7,{row:_0x1d6f6f,column:_0x5ac4db}=_0x3c22a1;if(_0x1d6f6f>=this[_0x180a65(0x209)]['startRow']&&_0x1d6f6f<=this['_range'][_0x180a65(0x98)]&&_0x5ac4db>=this[_0x180a65(0x209)][_0x180a65(0x419)]&&_0x5ac4db<=this[_0x180a65(0x209)][_0x180a65(0xbb)]){this[_0x180a65(0x423)]({'hovered':!0x0});return;}this[_0x180a65(0x423)]({'hovered':!0x1});}['triggerDblclick'](_0xc2ecda){return!0x1;}[_0x3a85d7(0x341)](_0x4dde27){const _0x581ccd=_0x3a85d7;D['Rect'][_0x581ccd(0x85)](_0x4dde27,{'width':this[_0x581ccd(0x3c5)],'height':this[_0x581ccd(0x97)],'strokeWidth':Ri,'stroke':this[_0x581ccd(0x266)],'evented':!0x1,'fill':this[_0x581ccd(0x381)]}),this[_0x581ccd(0x456)]&&(_0x4dde27[_0x581ccd(0x321)](),_0x4dde27[_0x581ccd(0xdb)](0x1,0x0,0x0,0x1,this[_0x581ccd(0x3c5)],this[_0x581ccd(0xf0)]===_0x581ccd(0x252)?0x0:-de),Oe[_0x581ccd(0x85)](_0x4dde27,{'text':this[_0x581ccd(0x48f)],'color':this[_0x581ccd(0x266)]}),_0x4dde27[_0x581ccd(0x2f3)]());}}var Oi=Object[_0x3a85d7(0x329)],Di=Object[_0x3a85d7(0x43d)],yi=(_0x4f23a5,_0x46ff70,_0x475fd1,_0xbc9e6c)=>{for(var _0x5ac600=_0xbc9e6c>0x1?void 0x0:_0xbc9e6c?Di(_0x46ff70,_0x475fd1):_0x46ff70,_0x319bb5=_0x4f23a5['length']-0x1,_0x1334f7;_0x319bb5>=0x0;_0x319bb5--)(_0x1334f7=_0x4f23a5[_0x319bb5])&&(_0x5ac600=(_0xbc9e6c?_0x1334f7(_0x46ff70,_0x475fd1,_0x5ac600):_0x1334f7(_0x5ac600))||_0x5ac600);return _0xbc9e6c&&_0x5ac600&&Oi(_0x46ff70,_0x475fd1,_0x5ac600),_0x5ac600;},$e=(_0x5dd1b5,_0x486106)=>(_0xf9e4ab,_0x4135b2)=>_0x486106(_0xf9e4ab,_0x4135b2,_0x5dd1b5);const Ui=0x1389;let We=class extends a[_0x3a85d7(0x1fb)]{constructor(_0x479a85,_0x15ad4a,_0x2795ee,_0xc96751){const _0x16fd0c=_0x3a85d7;super(),u(this,_0x16fd0c(0x14c),new Set()),u(this,_0x16fd0c(0x401),null),(this[_0x16fd0c(0x299)]=_0x479a85,this[_0x16fd0c(0x35e)]=_0x15ad4a,this['_collabCursorController']=_0x2795ee,this['_themeService']=_0xc96751,this['_init']());}[_0x3a85d7(0x190)](){const _0x105ef3=_0x3a85d7;this[_0x105ef3(0x35e)][_0x105ef3(0x161)]['pipe'](E[_0x105ef3(0x1b4)](this['dispose$']),E[_0x105ef3(0x1b3)](_0x2c2df6=>{const _0x46d630=_0x105ef3;if(_0x2c2df6){const _0x5a1d82=_0x2c2df6[_0x46d630(0x2ec)];return v[_0x46d630(0x2d5)](this['_collabCursorController'][_0x46d630(0x262)](this[_0x46d630(0x299)][_0x46d630(0x27e)]),this[_0x46d630(0x124)][_0x46d630(0x40d)])[_0x46d630(0x3d0)](E[_0x46d630(0xcf)](([_0x5f12b5,_0xa9e339])=>{const _0x539498=_0x46d630,_0x1304f7=new Map();return _0x5f12b5[_0x539498(0x189)]((_0x47f477,_0x48cded)=>{const _0x490957=_0x539498;if(_0x47f477[_0x490957(0x420)]===_0x5a1d82){const _0x47ae53={..._0x47f477};_0x47ae53[_0x490957(0x242)]=_0xa9e339[_0x47f477[_0x490957(0x242)]],_0x1304f7[_0x490957(0x225)](_0x48cded,_0x47ae53);}}),{'skeleton':_0x2c2df6,'cursors':_0x1304f7};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x479c37,cursors:_0x55d118})=>{const _0x329068=_0x105ef3;this['_removeCollabCursors'](),_0x479c37&&this[_0x329068(0x8e)](_0x479c37,_0x55d118);}),this[_0x105ef3(0x35e)]['currentSkeleton$'][_0x105ef3(0xc4)](_0x92718=>{const _0x13cc8d=_0x105ef3;if(_0x92718==null)return;const {skeleton:_0x45d9d7}=_0x92718,{scene:_0x23a04e}=this['_context'];_0x23a04e[_0x13cc8d(0x438)]['subscribeEvent'](a[_0x13cc8d(0x443)](_0xcc12ac=>{const _0x22c482=_0x13cc8d;var _0x28d193,_0x3207de;const {offsetX:_0x3a2967,offsetY:_0x44586e}=_0xcc12ac,{x:_0x340bb6,y:_0x4d7d6f}=_0x23a04e[_0x22c482(0x247)](D[_0x22c482(0x385)][_0x22c482(0xb8)]([_0x3a2967,_0x44586e])),{scaleX:_0x5e0c3a,scaleY:_0x20db5c}=_0x23a04e[_0x22c482(0x295)](),_0x583c5f=_0x23a04e['getViewport'](te['VIEWPORT_KEY'][_0x22c482(0x105)]),_0x373014=_0x23a04e['getVpScrollXYInfoByPosToVp'](D[_0x22c482(0x385)][_0x22c482(0xb8)]([_0x340bb6,_0x4d7d6f]),_0x583c5f),_0x16e905=_0x45d9d7[_0x22c482(0x2a2)](_0x3a2967,_0x44586e,_0x5e0c3a,_0x20db5c,_0x373014);((_0x28d193=this[_0x22c482(0x401)])==null?void 0x0:_0x28d193['column'])===_0x16e905['column']&&((_0x3207de=this['_lastPointer'])==null?void 0x0:_0x3207de[_0x22c482(0x33f)])===_0x16e905['row']||this['_cursors'][_0x22c482(0x189)](_0x13ef4b=>{_0x13ef4b['onMouseMove'](_0x16e905);});},0x64));});}[_0x3a85d7(0x8e)](_0x213d4f,_0x86f00c){const _0x43344a=_0x3a85d7;var _0x5cacb4;const _0x15410b=(_0x5cacb4=this[_0x43344a(0x35e)][_0x43344a(0x2dc)]())==null?void 0x0:_0x5cacb4[_0x43344a(0x2fa)];if(!_0x15410b)return;const _0xd8a13a=this['_getSheetObject']();if(!_0xd8a13a)return;this[_0x43344a(0x14c)][_0x43344a(0x189)](_0x2007fb=>{_0x2007fb['makeDirty']();});const {scene:_0x22cfae}=_0xd8a13a,_0x5b09f9=Pi(Array[_0x43344a(0x11e)](_0x86f00c['values']()))[_0x43344a(0xcf)](_0x17f884=>{const _0x1f5869=_0x43344a,{color:_0x20de18,range:_0x1770eb,name:_0x2dbf5d,selection:_0x527fcf,sheetID:_0x2bf5f7}=_0x17f884,{startColumn:_0x1fa3af,startRow:_0x2d719e,endColumn:_0x1824e0,endRow:_0x5742fa}=_0x1770eb,_0x513c14=te[_0x1f5869(0x285)](_0x2d719e,_0x1fa3af,_0x22cfae,_0x15410b),_0x5414b5=te[_0x1f5869(0x285)](_0x5742fa,_0x1824e0,_0x22cfae,_0x15410b),{columnHeaderHeightAndMarginTop:_0x29a9a7}=_0x15410b,{startX:_0x1e9992,startY:_0x195173}=_0x513c14,{endX:_0x4a15ae,endY:_0x3db032}=_0x5414b5,_0x556e42=_0x4a15ae-_0x1e9992,_0x31fb90=_0x3db032-_0x195173,_0x255b45={'labelPosition':_0x195173-_0x29a9a7>=de?_0x1f5869(0x2f4):_0x1f5869(0x252),'sheetID':_0x2bf5f7,'range':_0x1770eb,'color':_0x20de18,'name':_0x2dbf5d,'selection':_0x527fcf,'left':_0x1e9992,'top':_0x195173,'width':_0x556e42,'height':_0x31fb90,'evented':!0x1,'zIndex':Ui};return new Nt(_0x2dbf5d,_0x255b45);});_0x22cfae[_0x43344a(0x370)](_0x5b09f9,Ti),this[_0x43344a(0x14c)]=new Set(_0x5b09f9);}[_0x3a85d7(0x474)](){const _0x3853e3=_0x3a85d7;var _0x531e02;(_0x531e02=this[_0x3853e3(0x14c)])==null||_0x531e02[_0x3853e3(0x189)](_0x23b516=>_0x23b516['dispose']());}[_0x3a85d7(0xf7)](){const _0x1d2fc3=_0x3a85d7;return te[_0x1d2fc3(0xb5)](this[_0x1d2fc3(0x299)][_0x1d2fc3(0x197)],this[_0x1d2fc3(0x299)]);}};We=yi([$e(0x1,a[_0x3a85d7(0x1e4)](te['SheetSkeletonManagerService'])),$e(0x2,a['Inject'](ne)),$e(0x3,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0xc8)]))],We);function Pi(_0x13d9b7){const _0x3b39c7=_0x3a85d7,_0x4ea3f6=new Map();return _0x13d9b7[_0x3b39c7(0x189)](_0x50669a=>{const _0x1f9adc=_0x3b39c7;if(_0x4ea3f6[_0x1f9adc(0x1a7)](_0x50669a['selection'])){const _0x53c0d5=_0x4ea3f6[_0x1f9adc(0xca)](_0x50669a[_0x1f9adc(0x348)]);_0x53c0d5[_0x1f9adc(0x120)]+=',\x20'+_0x50669a[_0x1f9adc(0x120)];}else _0x4ea3f6[_0x1f9adc(0x225)](_0x50669a[_0x1f9adc(0x348)],_0x50669a);}),Array[_0x3b39c7(0x11e)](_0x4ea3f6['values']());}var M=function(){const _0x40e190=_0x3a85d7;return M=Object[_0x40e190(0x165)]||function(_0x4b88f1){const _0x274cc6=_0x40e190;for(var _0x5b1b88,_0x403459=0x1,_0x250098=arguments['length'];_0x403459<_0x250098;_0x403459++){_0x5b1b88=arguments[_0x403459];for(var _0x23c71f in _0x5b1b88)Object['prototype']['hasOwnProperty'][_0x274cc6(0x357)](_0x5b1b88,_0x23c71f)&&(_0x4b88f1[_0x23c71f]=_0x5b1b88[_0x23c71f]);}return _0x4b88f1;},M[_0x40e190(0xfd)](this,arguments);},wi=function(_0x48d997,_0x470c82){const _0x60a597=_0x3a85d7;var _0x4447e2={};for(var _0x39e5fa in _0x48d997)Object['prototype'][_0x60a597(0x42c)]['call'](_0x48d997,_0x39e5fa)&&_0x470c82[_0x60a597(0x96)](_0x39e5fa)<0x0&&(_0x4447e2[_0x39e5fa]=_0x48d997[_0x39e5fa]);if(_0x48d997!=null&&typeof Object[_0x60a597(0x3c0)]==_0x60a597(0x143)){for(var _0x415a94=0x0,_0x39e5fa=Object[_0x60a597(0x3c0)](_0x48d997);_0x415a94<_0x39e5fa[_0x60a597(0x16a)];_0x415a94++)_0x470c82[_0x60a597(0x96)](_0x39e5fa[_0x415a94])<0x0&&Object[_0x60a597(0x290)][_0x60a597(0x315)][_0x60a597(0x357)](_0x48d997,_0x39e5fa[_0x415a94])&&(_0x4447e2[_0x39e5fa[_0x415a94]]=_0x48d997[_0x39e5fa[_0x415a94]]);}return _0x4447e2;},Ze=P[_0x3a85d7(0x286)](function(_0x578a9b,_0x2e46af){const _0x5ae5e5=_0x3a85d7;var _0x475883=_0x578a9b[_0x5ae5e5(0xee)],_0x5d7af3=_0x578a9b['id'],_0x2c178b=_0x578a9b['className'],_0x340d1c=_0x578a9b[_0x5ae5e5(0x3fd)],_0x96e77a=wi(_0x578a9b,['icon','id',_0x5ae5e5(0x21d),_0x5ae5e5(0x3fd)]),_0x11ab68=_0x5ae5e5(0x74)[_0x5ae5e5(0x20e)](_0x5d7af3,'\x20')[_0x5ae5e5(0x20e)](_0x2c178b||'')['trim'](),_0x721778=P[_0x5ae5e5(0x29f)]('_'[_0x5ae5e5(0x20e)](Ai()));return Mt(_0x475883,''[_0x5ae5e5(0x20e)](_0x5d7af3),{'defIds':_0x475883[_0x5ae5e5(0x31b)],'idSuffix':_0x721778[_0x5ae5e5(0x2af)]},M({'ref':_0x2e46af,'className':_0x11ab68},_0x96e77a),_0x340d1c);});function Mt(_0x30dd92,_0x626ddf,_0x5efa3d,_0x6955df,_0x1f8e4d){const _0x2e5fa4=_0x3a85d7;return P['createElement'](_0x30dd92[_0x2e5fa4(0x384)],M(M({'key':_0x626ddf},Ni(_0x30dd92,_0x5efa3d,_0x1f8e4d)),_0x6955df),(Mi(_0x30dd92,_0x5efa3d)['children']||[])[_0x2e5fa4(0xcf)](function(_0x2360ec,_0x10e19b){const _0x562bc2=_0x2e5fa4;return Mt(_0x2360ec,''[_0x562bc2(0x20e)](_0x626ddf,'-')[_0x562bc2(0x20e)](_0x30dd92[_0x562bc2(0x384)],'-')[_0x562bc2(0x20e)](_0x10e19b),_0x5efa3d,void 0x0,_0x1f8e4d);}));}function Ni(_0x194ca3,_0x502050,_0xfbd254){const _0x14fb7d=_0x3a85d7;var _0x20a50a=M({},_0x194ca3[_0x14fb7d(0x1d1)]);_0xfbd254!=null&&_0xfbd254[_0x14fb7d(0x3fa)]&&_0x20a50a[_0x14fb7d(0x24d)]===_0x14fb7d(0x3fa)&&(_0x20a50a[_0x14fb7d(0x24d)]=_0xfbd254[_0x14fb7d(0x3fa)]);var _0x49d188=_0x502050[_0x14fb7d(0x31b)];return!_0x49d188||_0x49d188[_0x14fb7d(0x16a)]===0x0||(_0x194ca3[_0x14fb7d(0x384)]===_0x14fb7d(0x229)&&_0x20a50a['xlink:href']&&(_0x20a50a['xlink:href']=_0x20a50a[_0x14fb7d(0x466)]+_0x502050['idSuffix']),Object['entries'](_0x20a50a)[_0x14fb7d(0x189)](function(_0x1ca5e7){const _0x77700b=_0x14fb7d;var _0xa0800f=_0x1ca5e7[0x0],_0x396680=_0x1ca5e7[0x1];typeof _0x396680==_0x77700b(0x133)&&(_0x20a50a[_0xa0800f]=_0x396680[_0x77700b(0x141)](/url\(#(.*)\)/,'url(#$1'[_0x77700b(0x20e)](_0x502050['idSuffix'],')')));})),_0x20a50a;}function Mi(_0x4273af,_0x54c7f1){const _0x24279d=_0x3a85d7;var _0x5a763b,_0x3017a4=_0x54c7f1['defIds'];return!_0x3017a4||_0x3017a4[_0x24279d(0x16a)]===0x0?_0x4273af:_0x4273af[_0x24279d(0x384)]===_0x24279d(0x109)&&(!((_0x5a763b=_0x4273af[_0x24279d(0x39c)])===null||_0x5a763b===void 0x0)&&_0x5a763b['length'])?M(M({},_0x4273af),{'children':_0x4273af[_0x24279d(0x39c)][_0x24279d(0xcf)](function(_0x3f9fcb){const _0x5ef1d2=_0x24279d;return typeof _0x3f9fcb[_0x5ef1d2(0x1d1)]['id']=='string'&&_0x3017a4&&_0x3017a4[_0x5ef1d2(0x96)](_0x3f9fcb[_0x5ef1d2(0x1d1)]['id'])>-0x1?M(M({},_0x3f9fcb),{'attrs':M(M({},_0x3f9fcb['attrs']),{'id':_0x3f9fcb[_0x5ef1d2(0x1d1)]['id']+_0x54c7f1[_0x5ef1d2(0x360)]})}):_0x3f9fcb;})}):_0x4273af;}function Ai(){const _0xba48d=_0x3a85d7;return Math[_0xba48d(0x144)]()[_0xba48d(0x483)](0x24)[_0xba48d(0x76)](0x2,0x8);}Ze[_0x3a85d7(0x302)]=_0x3a85d7(0x304);var Li={'tag':_0x3a85d7(0x219),'attrs':{'fill':'none','viewBox':_0x3a85d7(0x41f),'width':_0x3a85d7(0x44a),'height':_0x3a85d7(0x44a)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a85d7(0x9c)},'children':[{'tag':_0x3a85d7(0x2dd),'attrs':{'stroke':_0x3a85d7(0xc5),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3a85d7(0x15f),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3a85d7(0x109),'attrs':{},'children':[{'tag':_0x3a85d7(0x167),'attrs':{'id':_0x3a85d7(0xf8)},'children':[{'tag':_0x3a85d7(0x2dd),'attrs':{'fill':_0x3a85d7(0x3cc),'d':_0x3a85d7(0x473)}}]}]}],'defIds':[_0x3a85d7(0xf8)]},At=P[_0x3a85d7(0x286)](function(_0x1fb221,_0x4348d0){const _0x16b2d1=_0x3a85d7;return P['createElement'](Ze,Object[_0x16b2d1(0x165)]({},_0x1fb221,{'id':_0x16b2d1(0x489),'ref':_0x4348d0,'icon':Li}));});At[_0x3a85d7(0x302)]=_0x3a85d7(0x2d4);var ji={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x3a85d7(0x44a)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a85d7(0x1d0)},'children':[{'tag':_0x3a85d7(0x2dd),'attrs':{'stroke':'currentColor','d':_0x3a85d7(0x119),'strokeLinecap':_0x3a85d7(0x15f),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3a85d7(0x1e2)},'children':[{'tag':_0x3a85d7(0x2dd),'attrs':{'fill':_0x3a85d7(0x3cc),'d':_0x3a85d7(0x473),'transform':_0x3a85d7(0x21a)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Lt=P[_0x3a85d7(0x286)](function(_0x3dd099,_0x59860d){const _0x24a464=_0x3a85d7;return P[_0x24a464(0xe1)](Ze,Object[_0x24a464(0x165)]({},_0x3dd099,{'id':'on-line-single','ref':_0x59860d,'icon':ji}));});Lt[_0x3a85d7(0x302)]=_0x3a85d7(0x426);function jt(_0x56b5fb){const _0x152b32=_0x3a85d7;var _0x83734f,_0x362bbd,_0x49fe4d='';if(typeof _0x56b5fb==_0x152b32(0x133)||typeof _0x56b5fb=='number')_0x49fe4d+=_0x56b5fb;else{if(typeof _0x56b5fb=='object'){if(Array['isArray'](_0x56b5fb)){var _0x5d2cc6=_0x56b5fb[_0x152b32(0x16a)];for(_0x83734f=0x0;_0x83734f<_0x5d2cc6;_0x83734f++)_0x56b5fb[_0x83734f]&&(_0x362bbd=jt(_0x56b5fb[_0x83734f]))&&(_0x49fe4d&&(_0x49fe4d+='\x20'),_0x49fe4d+=_0x362bbd);}else{for(_0x362bbd in _0x56b5fb)_0x56b5fb[_0x362bbd]&&(_0x49fe4d&&(_0x49fe4d+='\x20'),_0x49fe4d+=_0x362bbd);}}}return _0x49fe4d;}function $i(){for(var _0x281106,_0xa5a429,_0x15a407=0x0,_0x22b6e6='',_0x2bf25f=arguments['length'];_0x15a407<_0x2bf25f;_0x15a407++)(_0x281106=arguments[_0x15a407])&&(_0xa5a429=jt(_0x281106))&&(_0x22b6e6&&(_0x22b6e6+='\x20'),_0x22b6e6+=_0xa5a429);return _0x22b6e6;}const Hi=_0x3a85d7(0x417),xi=_0x3a85d7(0x280),ki='univer-online-status',Bi=_0x3a85d7(0x354),Vi='univer-offline',he={'onlineStatusIcon':Hi,'onlineStatusTitle':xi,'onlineStatus':ki,'online':Bi,'offline':Vi};function Wi(_0x54fb26){const _0x4b2bc=_0x3a85d7;switch(_0x54fb26){case U[_0x4b2bc(0x235)]:return'collabStatus.offline';case U[_0x4b2bc(0x168)]:return _0x4b2bc(0x259);case U[_0x4b2bc(0x256)]:return _0x4b2bc(0x15c);case U[_0x4b2bc(0x188)]:return _0x4b2bc(0x258);case U[_0x4b2bc(0x383)]:case U[_0x4b2bc(0x175)]:return _0x4b2bc(0x1ea);case U[_0x4b2bc(0x358)]:case U[_0x4b2bc(0x297)]:return _0x4b2bc(0x45a);}}function $t(_0x38e436){const _0x4d4300=_0x3a85d7,{status$:_0x259826}=_0x38e436,_0x245c76=A['useObservable'](_0x259826,U[_0x4d4300(0x188)]),_0x4afb85=a[_0x4d4300(0x7b)](a[_0x4d4300(0x3f3)]),_0x40ddfd=a[_0x4d4300(0x7b)](exports[_0x4d4300(0x3d9)]),_0x390db7=_0x245c76!==U['OFFLINE'],_0x512d61=_0x4afb85['t'](Wi(_0x245c76)),_0x4f3ab1=$i(he['onlineStatus'],{[he[_0x4d4300(0x1fd)]]:_0x390db7,[he[_0x4d4300(0x13d)]]:!_0x390db7}),_0xb0d4b1=_0x390db7?P['createElement'](Lt,null):P[_0x4d4300(0xe1)](At,null),_0x4bce1b=P[_0x4d4300(0x1aa)](()=>{_0x390db7||_0x40ddfd['reconnect']();},[_0x390db7,_0x40ddfd]);function _0x3bec27(){const _0x4d9423=_0x4d4300;return P[_0x4d9423(0xe1)](_0x4d9423(0x3ea),{'className':_0x4f3ab1,'onClick':_0x4bce1b},P[_0x4d9423(0xe1)]('div',{'className':he[_0x4d9423(0xd6)]},_0xb0d4b1),P['createElement']('div',{'className':he[_0x4d9423(0x1a6)]},_0x512d61));}return _0x390db7?_0x3bec27():P[_0x4d4300(0xe1)](q[_0x4d4300(0x71)],{'title':_0x4afb85['t']('collab-client.tooltip.reconnect')},_0x3bec27());}var Fi=Object[_0x3a85d7(0x329)],Gi=Object[_0x3a85d7(0x43d)],Yi=(_0x37d808,_0x2391cd,_0x21c493,_0x33d78c)=>{const _0xcef40e=_0x3a85d7;for(var _0x668f89=_0x33d78c>0x1?void 0x0:_0x33d78c?Gi(_0x2391cd,_0x21c493):_0x2391cd,_0xbcfdcc=_0x37d808[_0xcef40e(0x16a)]-0x1,_0xcee979;_0xbcfdcc>=0x0;_0xbcfdcc--)(_0xcee979=_0x37d808[_0xbcfdcc])&&(_0x668f89=(_0x33d78c?_0xcee979(_0x2391cd,_0x21c493,_0x668f89):_0xcee979(_0x668f89))||_0x668f89);return _0x33d78c&&_0x668f89&&Fi(_0x2391cd,_0x21c493,_0x668f89),_0x668f89;},me=(_0x1c6f8c,_0x4da9de)=>(_0x3efb9e,_0xd2c17b)=>_0x4da9de(_0x3efb9e,_0xd2c17b,_0x1c6f8c);exports[_0x3a85d7(0x42e)]=class extends a[_0x3a85d7(0x3ce)]{constructor(_0x40c422,_0x16cf1f,_0x3e4b9c,_0x4f1aca){const _0x340b1d=_0x3a85d7;super(),u(this,_0x340b1d(0x9d),new v['BehaviorSubject'](U[_0x340b1d(0x188)])),(this[_0x340b1d(0x261)]=_0x40c422,this[_0x340b1d(0x36a)]=_0x16cf1f,this[_0x340b1d(0x1ae)]=_0x3e4b9c,this[_0x340b1d(0x463)]=_0x4f1aca,this['_initStatusComponent'](),this[_0x340b1d(0x154)]());}[_0x3a85d7(0x154)](){const _0x2ebcc1=_0x3a85d7;this[_0x2ebcc1(0x208)](this[_0x2ebcc1(0x261)][_0x2ebcc1(0x14d)]['pipe'](v[_0x2ebcc1(0x1b3)](()=>{const _0x1c0460=_0x2ebcc1,_0x1c6103=this[_0x1c0460(0x261)][_0x1c0460(0xe6)]();return _0x1c6103?this[_0x1c0460(0x463)][_0x1c0460(0x352)](_0x1c6103['getUnitId']()):v['of'](null);}),v['switchMap'](_0x139a19=>_0x139a19?_0x139a19['status$']:v['of'](U[_0x2ebcc1(0x188)])))['subscribe'](_0x131a20=>{const _0xb86e30=_0x2ebcc1;this[_0xb86e30(0x9d)]['next'](_0x131a20);}));}[_0x3a85d7(0x439)](){const _0x5dab25=_0x3a85d7;this[_0x5dab25(0x208)](this[_0x5dab25(0x36a)][_0x5dab25(0x2c2)](A[_0x5dab25(0x1da)][_0x5dab25(0x16b)],()=>a['connectInjector'](Ki({'status$':this[_0x5dab25(0x9d)][_0x5dab25(0x413)]()}),this[_0x5dab25(0x1ae)])));}},exports[_0x3a85d7(0x42e)]=Yi([me(0x0,a[_0x3a85d7(0x9e)]),me(0x1,A[_0x3a85d7(0x496)]),me(0x2,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),me(0x3,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x430)]))],exports[_0x3a85d7(0x42e)]);function Ki(_0x10a44a){const {status$:_0x32fed2}=_0x10a44a;return function(){const _0x386ea0=_0x54ba;return P[_0x386ea0(0xe1)]($t,{'status$':_0x32fed2});};}const Qe=a[_0x3a85d7(0x231)]('uni.network.url-service');var qi=Object[_0x3a85d7(0x329)],Xi=Object['getOwnPropertyDescriptor'],zi=(_0x2dac9e,_0x2b3ad5,_0x1e6580,_0x909be)=>{for(var _0x154677=_0x909be>0x1?void 0x0:_0x909be?Xi(_0x2b3ad5,_0x1e6580):_0x2b3ad5,_0x9df704=_0x2dac9e['length']-0x1,_0x47bc6a;_0x9df704>=0x0;_0x9df704--)(_0x47bc6a=_0x2dac9e[_0x9df704])&&(_0x154677=(_0x909be?_0x47bc6a(_0x2b3ad5,_0x1e6580,_0x154677):_0x47bc6a(_0x154677))||_0x154677);return _0x909be&&_0x154677&&qi(_0x2b3ad5,_0x1e6580,_0x154677),_0x154677;},ee=(_0x56a285,_0x39a067)=>(_0x15979c,_0x4ae78b)=>_0x39a067(_0x15979c,_0x4ae78b,_0x56a285);exports[_0x3a85d7(0x2c1)]=class extends a[_0x3a85d7(0x1fb)]{constructor(_0x54934c,_0x459324,_0x127f7c,_0x2d250f,_0x340cec,_0x2db6ce){const _0x191d5e=_0x3a85d7;super(),this[_0x191d5e(0x309)]=_0x54934c,this['_logService']=_0x459324,this['_commandService']=_0x127f7c,this['_localCacheService']=_0x2d250f,this['_snapshotService']=_0x340cec,_0x2db6ce?_0x2db6ce==null||_0x2db6ce['whenReady']()['then'](()=>this[_0x191d5e(0x190)]()):(this[_0x191d5e(0x174)][_0x191d5e(0x312)](_0x191d5e(0x324),_0x191d5e(0x2d8)),this[_0x191d5e(0x190)]());}async[_0x3a85d7(0x190)](){const _0x477696=_0x3a85d7,_0x3b251e=this[_0x477696(0x309)][_0x477696(0x41d)](_0x477696(0x197)),_0xdb587c=this[_0x477696(0x309)]['getParam'](_0x477696(0x19d));if(!_0x3b251e||!_0xdb587c){this[_0x477696(0x174)][_0x477696(0x312)](_0x477696(0x324),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0xdb587c)){case $[_0x477696(0x35c)]:{const _0x5dfc18=await this['_loadSheet'](_0x3b251e);this[_0x477696(0x3d8)](_0x5dfc18);break;}case $[_0x477696(0x117)]:{await this[_0x477696(0x14a)](_0x3b251e);break;}default:{this[_0x477696(0x174)]['error'](_0x477696(0x324),_0x477696(0x27a));break;}}}async['_setupSubUnitSync'](_0x379185){const _0x5eb934=_0x3a85d7;await this[_0x5eb934(0x399)](_0x379185),_0x379185[_0x5eb934(0x441)]['pipe'](v['takeUntil'](this[_0x5eb934(0x232)]))['subscribe'](_0x294c38=>{const _0x2381e1=_0x5eb934;_0x294c38&&this[_0x2381e1(0x2c8)](_0x294c38);}),this[_0x5eb934(0x309)]['urlChange$']['pipe'](v[_0x5eb934(0x1b4)](this[_0x5eb934(0x232)]))[_0x5eb934(0xc4)](()=>this[_0x5eb934(0x399)](_0x379185));}['_updateURLWithCurrentState'](_0x39cc75,_0x24f9ce=!0x1){const _0x5c935c=_0x3a85d7,_0x5a1c51=this[_0x5c935c(0x309)][_0x5c935c(0x41d)](_0x5c935c(0x46d));_0x39cc75[_0x5c935c(0x2ac)]()!==_0x5a1c51&&this[_0x5c935c(0x309)][_0x5c935c(0x288)](_0x5c935c(0x46d),_0x39cc75[_0x5c935c(0x2ac)](),_0x24f9ce);}async[_0x3a85d7(0x399)](_0x14d5e2){const _0x33c67f=_0x3a85d7;var _0xd4d86b;const _0xdfa568=this[_0x33c67f(0x309)]['getParam'](_0x33c67f(0x46d));if(!_0xdfa568||!_0x14d5e2[_0x33c67f(0x48c)](_0xdfa568)){const _0x17d1fc=_0x14d5e2[_0x33c67f(0x244)]()[0x0],_0x3f2a4a=_0x14d5e2['getSheetBySheetId'](_0x17d1fc);if(!_0x3f2a4a)return;this[_0x33c67f(0x2c8)](_0x3f2a4a,!0x0),await this[_0x33c67f(0x257)][_0x33c67f(0x2c9)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x14d5e2[_0x33c67f(0x311)](),'subUnitId':_0x17d1fc});return;}((_0xd4d86b=_0x14d5e2[_0x33c67f(0x150)]())==null?void 0x0:_0xd4d86b[_0x33c67f(0x2ac)]())!==_0xdfa568&&await this[_0x33c67f(0x257)][_0x33c67f(0x2c9)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x14d5e2[_0x33c67f(0x311)](),'subUnitId':_0xdfa568});}async[_0x3a85d7(0x339)](_0x665980){const _0x46976b=_0x3a85d7;let _0x1ac484=0x0;const _0x351db9=await this[_0x46976b(0x448)][_0x46976b(0x2fd)](_0x665980);return _0x351db9&&(_0x351db9[_0x46976b(0x94)]||_0x351db9[_0x46976b(0x24a)][_0x46976b(0x16a)]!==0x0)&&(_0x1ac484=_0x351db9['rev']),_0x1ac484===0x0&&this[_0x46976b(0x174)][_0x46976b(0x312)](_0x46976b(0x324),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x46976b(0x125)]['loadSheet'](_0x665980,_0x1ac484);}async[_0x3a85d7(0x14a)](_0x5894cd){const _0x484b37=_0x3a85d7;let _0x5f1367=0x0;const _0x311cf6=await this[_0x484b37(0x448)][_0x484b37(0x2fd)](_0x5894cd);return _0x311cf6&&(_0x311cf6[_0x484b37(0x94)]||_0x311cf6[_0x484b37(0x24a)][_0x484b37(0x16a)]!==0x0)&&(_0x5f1367=_0x311cf6[_0x484b37(0x16e)]),_0x5f1367===0x0&&this[_0x484b37(0x174)][_0x484b37(0x312)]('[DataLoaderController]',_0x484b37(0x103)),this['_snapshotService'][_0x484b37(0x455)](_0x5894cd,_0x5f1367);}},exports[_0x3a85d7(0x2c1)]=zi([ee(0x0,Qe),ee(0x1,a[_0x3a85d7(0x43e)]),ee(0x2,a[_0x3a85d7(0xa3)]),ee(0x3,a[_0x3a85d7(0x1e4)](exports[_0x3a85d7(0x1c0)])),ee(0x4,a[_0x3a85d7(0x1e4)](_[_0x3a85d7(0x86)])),ee(0x5,a['Optional'](Xt['IRemoteInstanceService']))],exports[_0x3a85d7(0x2c1)]);var Ji=Object[_0x3a85d7(0x329)],Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x594463,_0x59d2d8,_0x1f4503,_0xfa3b4)=>{for(var _0x495d4d=_0xfa3b4>0x1?void 0x0:_0xfa3b4?Zi(_0x59d2d8,_0x1f4503):_0x59d2d8,_0x525832=_0x594463['length']-0x1,_0x541562;_0x525832>=0x0;_0x525832--)(_0x541562=_0x594463[_0x525832])&&(_0x495d4d=(_0xfa3b4?_0x541562(_0x59d2d8,_0x1f4503,_0x495d4d):_0x541562(_0x495d4d))||_0x495d4d);return _0xfa3b4&&_0x495d4d&&Ji(_0x59d2d8,_0x1f4503,_0x495d4d),_0x495d4d;},_t=(_0x1d61ba,_0x2c3594)=>(_0xc0f800,_0x400df6)=>_0x2c3594(_0xc0f800,_0x400df6,_0x1d61ba);const en='DEFAULT_FILE_NAME',tn=_0x3a85d7(0x372);let Ce=class extends a[_0x3a85d7(0x3ce)]{constructor(_0x259db7,_0x47f4b2){const _0x55be0=_0x3a85d7;super(),this[_0x55be0(0x261)]=_0x259db7,this['_configService']=_0x47f4b2,this[_0x55be0(0x190)]();}['_init'](){const _0x526357=_0x3a85d7;this['disposeWithMe'](this[_0x526357(0x261)]['focused$'][_0x526357(0xc4)](()=>{const _0x3f3d=_0x526357;var _0x5428ea;const _0x9d6029=this[_0x3f3d(0x261)][_0x3f3d(0xe6)]();let _0x26e041=(_0x5428ea=this[_0x3f3d(0x365)][_0x3f3d(0x45d)](en))!=null?_0x5428ea:tn;_0x9d6029 instanceof a['Workbook']&&(_0x26e041=_0x9d6029[_0x3f3d(0x120)]),document[_0x3f3d(0x12d)]=_0x26e041;}));}};Ce=Qi([_t(0x0,a[_0x3a85d7(0x9e)]),_t(0x1,a[_0x3a85d7(0x3ba)])],Ce);var sn=Object[_0x3a85d7(0x329)],nn=Object[_0x3a85d7(0x43d)],rn=(_0x380273,_0x49d382,_0x546567,_0x52b501)=>{for(var _0x101d4f=_0x52b501>0x1?void 0x0:_0x52b501?nn(_0x49d382,_0x546567):_0x49d382,_0x41832b=_0x380273['length']-0x1,_0x76aad;_0x41832b>=0x0;_0x41832b--)(_0x76aad=_0x380273[_0x41832b])&&(_0x101d4f=(_0x52b501?_0x76aad(_0x49d382,_0x546567,_0x101d4f):_0x76aad(_0x101d4f))||_0x101d4f);return _0x52b501&&_0x101d4f&&sn(_0x49d382,_0x546567,_0x101d4f),_0x101d4f;},He=(_0x5d14f0,_0x5031a2)=>(_0xd4e71c,_0x548803)=>_0x5031a2(_0xd4e71c,_0x548803,_0x5d14f0);let Ee=class{constructor(_0x644e1b,_0x244718,_0x5607bf){const _0x59a0d4=_0x3a85d7;this[_0x59a0d4(0x365)]=_0x644e1b,this['_httpService']=_0x244718,this['localeService']=_0x5607bf,this[_0x59a0d4(0x2c4)]();}[_0x3a85d7(0x2c4)](){const _0x2e7ded=_0x3a85d7;this[_0x2e7ded(0x192)][_0x2e7ded(0x118)]({'priority':0x1,'interceptor':(_0x50edc5,_0x2dbda4)=>_0x2dbda4(_0x50edc5)[_0x2e7ded(0x3d0)](v['concatMap'](async _0x8be11a=>{const _0x4278ca=_0x2e7ded,_0x4426b9=_0x8be11a;if(_0x4426b9[_0x4278ca(0x160)]===0x191&&window['confirm'](this[_0x4278ca(0x195)]['t'](_0x4278ca(0x2e4)))){const _0x58c6f8=window[_0x4278ca(0x373)](window[_0x4278ca(0x48d)][_0x4278ca(0x47a)]);window[_0x4278ca(0x48d)][_0x4278ca(0x47a)]=this['_getLoginPath']()+_0x4278ca(0x334)+_0x58c6f8;}return _0x4426b9;}))});}[_0x3a85d7(0x335)](){const _0xcfd623=_0x3a85d7;var _0x29e276,_0x219ad3;const _0x6a4b12=this['_configService'][_0xcfd623(0x45d)](Et),_0x353c80=this[_0xcfd623(0x365)]['getConfig'](L);return(_0x219ad3=(_0x29e276=_0x353c80==null?void 0x0:_0x353c80[_0xcfd623(0xf9)])!=null?_0x29e276:_0x6a4b12)!=null?_0x219ad3:os;}};Ee=rn([He(0x0,a[_0x3a85d7(0x3ba)]),He(0x1,a[_0x3a85d7(0x1e4)](w[_0x3a85d7(0x18e)])),He(0x2,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x3f3)]))],Ee);var on=Object[_0x3a85d7(0x329)],an=Object[_0x3a85d7(0x43d)],cn=(_0x328f79,_0x25e246,_0x5e0228,_0x45eec7)=>{for(var _0x4625c4=_0x45eec7>0x1?void 0x0:_0x45eec7?an(_0x25e246,_0x5e0228):_0x25e246,_0x430118=_0x328f79['length']-0x1,_0x5eda1e;_0x430118>=0x0;_0x430118--)(_0x5eda1e=_0x328f79[_0x430118])&&(_0x4625c4=(_0x45eec7?_0x5eda1e(_0x25e246,_0x5e0228,_0x4625c4):_0x5eda1e(_0x4625c4))||_0x4625c4);return _0x45eec7&&_0x4625c4&&on(_0x25e246,_0x5e0228,_0x4625c4),_0x4625c4;},ut=(_0x4a0464,_0x335f5d)=>(_0x3cec2c,_0x5d2c10)=>_0x335f5d(_0x3cec2c,_0x5d2c10,_0x4a0464);const Ht=_0x3a85d7(0x38b),ln='/universer-api/authz';exports[_0x3a85d7(0x184)]=class extends a['Disposable']{constructor(_0x519859,_0x2aa4c9){const _0xadc651=_0x3a85d7;super(),this[_0xadc651(0x2f9)]=_0x519859,this[_0xadc651(0x365)]=_0x2aa4c9,this[_0xadc651(0x111)]();}['_initMergeInterceptor'](){const _0x478924=_0x3a85d7,_0x6ca7ab=this;this[_0x478924(0x208)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':w[_0x478924(0x230)]({'isMatch'(_0x5b1926){const _0x36449b=_0x478924;var _0x505037;if(_0x5b1926['method']===_0x36449b(0x278)&&((_0x505037=_0x5b1926[_0x36449b(0x194)])!=null&&_0x505037[_0x36449b(0x21c)])){const {objectID:_0x1e12b5,objectType:_0x2cc7d7}=_0x5b1926['requestParams']['body']||{};if(!_0x1e12b5||_0x2cc7d7===void 0x0)return!0x1;const _0xf491fa=_0x6ca7ab[_0x36449b(0x13a)]()+'/'+_0x2cc7d7+_0x36449b(0x3e0)+_0x1e12b5+_0x36449b(0x3bb);if(_0x5b1926['url']===_0xf491fa)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5e46ad){const _0x5935f8=_0x478924;var _0x3e8f17;return(_0x3e8f17=_0x5e46ad[_0x5935f8(0x194)])==null?void 0x0:_0x3e8f17['body'];},'mergeParamsToRequest'(_0x35c9f5,_0x518171){const _0x447538=_0x478924,_0x4514b7=_0x6ca7ab[_0x447538(0x13a)]()+_0x447538(0x1a2),_0x1bf209=_0x35c9f5[_0x447538(0x287)]((_0x412a05,_0x137c99)=>{const _0x84d9fe=_0x447538,{unitID:_0x3aebf2,objectID:_0x2e3cbe,objectType:_0xb11870,actions:_0x2621a3}=_0x137c99;return _0x412a05[_0x3aebf2]||(_0x412a05[_0x3aebf2]={}),_0x412a05[_0x3aebf2][_0x2e3cbe]||(_0x412a05[_0x3aebf2][_0x2e3cbe]={'objectID':_0x2e3cbe,'objectType':_0xb11870,'actions':[]}),_0x412a05[_0x3aebf2][_0x2e3cbe]['actions'][_0x84d9fe(0x250)](..._0x2621a3),_0x412a05;},{}),_0x95a661=[];for(const _0x36d2b3 in _0x1bf209)for(const _0x14eb9c in _0x1bf209[_0x36d2b3]){const {actions:_0xb595a5,objectType:_0x47aa0d}=_0x1bf209[_0x36d2b3][_0x14eb9c],_0x4588a5=[...new Set(_0xb595a5)];_0x95a661['push']({'unitID':_0x36d2b3,'objectID':_0x14eb9c,'objectType':_0x47aa0d,'actions':_0x4588a5});}return new w[(_0x447538(0x228))]('POST',_0x4514b7,{'headers':_0x518171[_0x447538(0x30a)],'withCredentials':_0x518171['withCredentials'],'responseType':_0x518171['responseType'],'body':{'requests':_0x95a661}});}},{'distributeResult'(_0x2dc493,_0x1b523c){const _0x5bf518=_0x478924,{objectActions:_0x9d6e42}=_0x2dc493;return _0x1b523c[_0x5bf518(0xcf)](_0x53045d=>{const _0x3d207d=_0x5bf518,{unitID:_0x37f630,objectID:_0x310073,actions:_0x343b5c}=_0x53045d,_0x489d3d=_0x9d6e42[_0x3d207d(0xd3)](_0x296670=>_0x296670[_0x3d207d(0x32c)]===_0x37f630&&_0x296670[_0x3d207d(0x33e)]===_0x310073),_0x3b042b=_0x343b5c[_0x3d207d(0xcf)](_0x28d60e=>_0x489d3d==null?void 0x0:_0x489d3d['actions']['find'](_0x2bbaa4=>_0x2bbaa4['action']===_0x28d60e))[_0x3d207d(0x3da)](_0x3a64e3=>!!_0x3a64e3);return{'config':_0x53045d,'result':{'actions':_0x3b042b,'error':_0x2dc493['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x18037c=_0x3a85d7;var _0x1010bb,_0xc03b0a;const _0xc103d6=this['_configService'][_0x18037c(0x45d)](Ht),_0x189e25=this[_0x18037c(0x365)][_0x18037c(0x45d)](L);return(_0xc03b0a=(_0x1010bb=_0x189e25==null?void 0x0:_0x189e25[_0x18037c(0x3fb)])!=null?_0x1010bb:_0xc103d6)!=null?_0xc03b0a:ln;}async[_0x3a85d7(0xc3)](_0x562672){const _0x24b38e=_0x3a85d7,_0x2cbbc4=this[_0x24b38e(0x13a)]()+'/'+_0x562672[_0x24b38e(0x454)]+_0x24b38e(0x18f);return(await this['_HTTPService']['post'](_0x2cbbc4,{'body':_0x562672}))['body'][_0x24b38e(0x33e)]||'';}async[_0x3a85d7(0x213)](_0x16bd16){const _0x4d629f=_0x3a85d7,_0x6c4428=this['_getAPIPrefixPath']()+_0x4d629f(0x3f5);return(await this[_0x4d629f(0x2f9)][_0x4d629f(0xc1)](_0x6c4428,{'body':_0x16bd16}))[_0x4d629f(0x21c)][_0x4d629f(0x33d)];}async[_0x3a85d7(0x407)](_0x3bfe12){const _0x4a9acc=_0x3a85d7,_0x26eb84=this[_0x4a9acc(0x13a)]()+'/'+_0x3bfe12['objectType']+_0x4a9acc(0x3e0)+_0x3bfe12[_0x4a9acc(0x33e)];await this['_HTTPService']['put'](_0x26eb84,{'body':_0x3bfe12});}async[_0x3a85d7(0x46a)](_0x23f795){const _0x340158=_0x3a85d7,_0x4410ac=this[_0x340158(0x13a)]()+'/'+_0x23f795[_0x340158(0x454)]+_0x340158(0x3e0)+_0x23f795['objectID']+_0x340158(0x3bb);return(await this[_0x340158(0x2f9)]['post'](_0x4410ac,{'body':_0x23f795}))['body'][_0x340158(0x1b6)];}async[_0x3a85d7(0xe7)](_0x5600f7){const _0x30d095=_0x3a85d7,_0x1b3b4a=this['_getAPIPrefixPath']()+_0x30d095(0x1a2);return(await this['_HTTPService'][_0x30d095(0xc1)](_0x1b3b4a,{'body':{'requests':_0x5600f7}}))['body']['objectActions'];}async[_0x3a85d7(0x45b)](_0x112118){const _0x3d48a6=_0x3a85d7,_0x4781ab=this[_0x3d48a6(0x13a)]()+'/'+_0x112118['objectType']+'/role',_0x5d453f=await this[_0x3d48a6(0x2f9)][_0x3d48a6(0xc1)](_0x4781ab,{'body':_0x112118});return{'roles':_0x5d453f[_0x3d48a6(0x21c)][_0x3d48a6(0x110)],'actions':_0x5d453f[_0x3d48a6(0x21c)][_0x3d48a6(0x1b6)]};}async[_0x3a85d7(0x2ba)](_0x11f1f5){const _0x508ef3=_0x3a85d7,_0x58dc16=this[_0x508ef3(0x13a)]()+_0x508ef3(0xa6);await this[_0x508ef3(0x2f9)]['delete'](_0x58dc16,{'params':{'collaboratorID':_0x11f1f5[_0x508ef3(0x47d)],'objectID':_0x11f1f5[_0x508ef3(0x33e)],'unitID':_0x11f1f5[_0x508ef3(0x32c)]}});}async[_0x3a85d7(0x281)](_0x3d227b){const _0x2ef950=_0x3a85d7,_0x4874e0=this[_0x2ef950(0x13a)]()+_0x2ef950(0xa6);await this[_0x2ef950(0x2f9)][_0x2ef950(0x28a)](_0x4874e0,{'body':_0x3d227b});}async['createCollaborator'](_0x4e4f6d){const _0x37c23b=_0x3a85d7,_0x237c6c=this[_0x37c23b(0x13a)]()+_0x37c23b(0xa6);await this['_HTTPService'][_0x37c23b(0xc1)](_0x237c6c,{'body':_0x4e4f6d});}async[_0x3a85d7(0xeb)](_0x4b2230){const _0x49e1eb=_0x3a85d7,_0x1a46eb=this[_0x49e1eb(0x13a)]()+_0x49e1eb(0xa6);return(await this[_0x49e1eb(0x2f9)][_0x49e1eb(0xca)](_0x1a46eb,{'params':{'objectID':_0x4b2230[_0x49e1eb(0x33e)],'unitID':_0x4b2230[_0x49e1eb(0x32c)]}}))['body'][_0x49e1eb(0x218)];}async['putCollaborators'](_0x5c0ef4){const _0x4ca558=_0x3a85d7,_0x5b3044=this[_0x4ca558(0x13a)]()+_0x4ca558(0xa6);await this['_HTTPService']['put'](_0x5b3044,{'body':_0x5c0ef4});}},exports[_0x3a85d7(0x184)]=cn([ut(0x0,a[_0x3a85d7(0x1e4)](w[_0x3a85d7(0x18e)])),ut(0x1,a['Inject'](a[_0x3a85d7(0x3ba)]))],exports[_0x3a85d7(0x184)]);var hn=Object[_0x3a85d7(0x329)],_n=Object[_0x3a85d7(0x43d)],un=(_0x323f76,_0x48a34e,_0x57cec5,_0x52365c)=>{const _0x4beb57=_0x3a85d7;for(var _0x46e586=_0x52365c>0x1?void 0x0:_0x52365c?_n(_0x48a34e,_0x57cec5):_0x48a34e,_0x3f1d3a=_0x323f76[_0x4beb57(0x16a)]-0x1,_0x84a68d;_0x3f1d3a>=0x0;_0x3f1d3a--)(_0x84a68d=_0x323f76[_0x3f1d3a])&&(_0x46e586=(_0x52365c?_0x84a68d(_0x48a34e,_0x57cec5,_0x46e586):_0x84a68d(_0x46e586))||_0x46e586);return _0x52365c&&_0x46e586&&hn(_0x48a34e,_0x57cec5,_0x46e586),_0x46e586;},dn=(_0x12461c,_0x112b32)=>(_0x54c644,_0x4cf87e)=>_0x112b32(_0x54c644,_0x4cf87e,_0x12461c);let be=class{constructor(_0x4a5b67){const _0x3e497a=_0x3a85d7;this['_httpService']=_0x4a5b67,this[_0x3e497a(0xe8)]();}['_initRequestHeader'](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x2e6459,_0x1592c8)=>{const _0x4a26ea=_0x54ba,_0x1cb2c9=_0x2e6459[_0x4a26ea(0x30a)],_0x2a4b67=zt['getAttachHeader']();return _0x2a4b67&&_0x1cb2c9[_0x4a26ea(0x225)](_0x4a26ea(0x1e9),_0x2a4b67),_0x1592c8(_0x2e6459);}});}};be=un([dn(0x0,a[_0x3a85d7(0x1e4)](w[_0x3a85d7(0x18e)]))],be);var Sn=Object['defineProperty'],vn=Object[_0x3a85d7(0x43d)],mn=(_0x6d8eb1,_0x1babee,_0x114f7a,_0x40f506)=>{for(var _0x13686d=_0x40f506>0x1?void 0x0:_0x40f506?vn(_0x1babee,_0x114f7a):_0x1babee,_0x7ce439=_0x6d8eb1['length']-0x1,_0x545629;_0x7ce439>=0x0;_0x7ce439--)(_0x545629=_0x6d8eb1[_0x7ce439])&&(_0x13686d=(_0x40f506?_0x545629(_0x1babee,_0x114f7a,_0x13686d):_0x545629(_0x13686d))||_0x13686d);return _0x40f506&&_0x13686d&&Sn(_0x1babee,_0x114f7a,_0x13686d),_0x13686d;},xe=(_0x113077,_0x266010)=>(_0x4ef7f9,_0x1adf82)=>_0x266010(_0x4ef7f9,_0x1adf82,_0x113077);const gn=[_0x3a85d7(0x298),_0x3a85d7(0x3ac),_0x3a85d7(0x149),_0x3a85d7(0x36c),'image/bmp'],fn=0x5*0x400*0x400,In=_0x3a85d7(0x27c),pn=_0x3a85d7(0x3a7),Cn=_0x3a85d7(0x32b),En=_0x3a85d7(0x1d8);exports['ImageIoService']=class{constructor(_0x20a655,_0x4f53f7,_0x2be366){const _0x50c7d5=_0x3a85d7;u(this,_0x50c7d5(0x338),0x0),u(this,_0x50c7d5(0x2e5),new v['Subject']()),u(this,_0x50c7d5(0x32d),this[_0x50c7d5(0x2e5)]),u(this,_0x50c7d5(0x3ed),new Map()),(this['_httpService']=_0x20a655,this[_0x50c7d5(0x365)]=_0x4f53f7,this[_0x50c7d5(0x261)]=_0x2be366);}[_0x3a85d7(0x34e)](_0x515117){const _0x1ea58c=_0x3a85d7;this['_waitCount']=_0x515117,this[_0x1ea58c(0x2e5)][_0x1ea58c(0x294)](_0x515117);}['getImageSourceCache'](_0x411160,_0x4c3405){const _0x11cfa0=_0x3a85d7;if(_0x4c3405===j['ImageSourceType'][_0x11cfa0(0x214)]){const _0x132f3f=new Image();return _0x132f3f['src']=_0x411160,_0x132f3f;}return this['_imageSourceCache'][_0x11cfa0(0xca)](_0x411160);}[_0x3a85d7(0x486)](_0x162e26,_0x2f014d,_0x51fde5){const _0x281b60=_0x3a85d7;_0x2f014d===j[_0x281b60(0x265)]['BASE64']||_0x51fde5==null||this[_0x281b60(0x3ed)]['set'](_0x162e26,_0x51fde5);}async[_0x3a85d7(0x222)](_0x207941){const _0xe4639d=_0x3a85d7;try{const _0x2012a8=this['_replaceFileID'](this[_0xe4639d(0x457)](),''+_0x207941),_0x451c82=(await this[_0xe4639d(0x192)][_0xe4639d(0xca)](_0x2012a8))[_0xe4639d(0x21c)];if(_0x451c82[_0xe4639d(0xae)]&&_0x451c82[_0xe4639d(0xae)][_0xe4639d(0x1fe)]===bt['OK']){const _0x461d14=new URL(_0x451c82['url'],this[_0xe4639d(0x132)]())['toString']();return Promise['resolve'](_0x461d14);}return Promise[_0xe4639d(0x39b)](_0x451c82[_0xe4639d(0xae)]);}catch(_0x541bad){return Promise[_0xe4639d(0x39b)](_0x541bad);}}async[_0x3a85d7(0xe0)](_0x2790e9){const _0x439b78=_0x3a85d7;let _0x3afb55='';if(!gn[_0x439b78(0x2d7)](_0x2790e9[_0x439b78(0x19d)]))return this[_0x439b78(0x2ef)](),Promise[_0x439b78(0x39b)](new Error(j[_0x439b78(0x13e)][_0x439b78(0x25b)]));if(_0x2790e9[_0x439b78(0xd4)]>fn)return this[_0x439b78(0x2ef)](),Promise[_0x439b78(0x39b)](new Error(j[_0x439b78(0x13e)][_0x439b78(0x2b6)]));try{const _0x2a076e=new FormData();_0x2a076e[_0x439b78(0x2b9)](_0x439b78(0x37c),_0x2790e9);const _0x209782=this[_0x439b78(0x261)]['getFocusedUnit'](),_0x56213b=_0x209782==null?void 0x0:_0x209782[_0x439b78(0x311)]();if(!_0x56213b)throw new Error('unitId\x20is\x20not\x20found');const _0x4d44b2=this['_getUploadFileURL']()+_0x439b78(0x490)+_0x2790e9[_0x439b78(0xd4)][_0x439b78(0x483)]()+_0x439b78(0x2e2)+Tt[_0x439b78(0x36e)]+_0x439b78(0x301)+encodeURIComponent(_0x56213b),_0x5937b9=await(await fetch(_0x4d44b2,{'method':'POST','body':_0x2a076e}))['json']();if(typeof _0x5937b9['FileId']!='string')return this['_decreaseWaiting'](),Promise[_0x439b78(0x39b)](new Error(j['ImageUploadStatusType'][_0x439b78(0x31e)]));_0x3afb55=_0x5937b9['FileId'];}catch{return this[_0x439b78(0x2ef)](),Promise[_0x439b78(0x39b)](new Error(j[_0x439b78(0x13e)][_0x439b78(0x31e)]));}return new Promise((_0x103350,_0x236d4d)=>{const _0x304d26=_0x439b78,_0x552ada=new FileReader();_0x552ada[_0x304d26(0x2de)](_0x2790e9),_0x552ada['onload']=_0x4ea24d=>{const _0x507351=_0x304d26;var _0x195e64;const _0x27bafe=(_0x195e64=_0x4ea24d[_0x507351(0x45e)])==null?void 0x0:_0x195e64[_0x507351(0x221)];if(_0x27bafe==null){this[_0x507351(0x2ef)](),_0x236d4d(new Error(j[_0x507351(0x13e)][_0x507351(0x31e)]));return;}const _0x316f22=a[_0x507351(0x268)][_0x507351(0x3c2)](0x6);_0x103350({'imageId':_0x316f22,'imageSourceType':j[_0x507351(0x265)][_0x507351(0x392)],'source':_0x3afb55,'base64Cache':_0x27bafe,'status':j[_0x507351(0x13e)][_0x507351(0x498)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x324702=_0x3a85d7;var _0x5a25f5,_0x4cf642;const _0x278a51=this[_0x324702(0x365)][_0x324702(0x45d)](In),_0x360218=this[_0x324702(0x365)][_0x324702(0x45d)](L);return(_0x4cf642=(_0x5a25f5=_0x360218==null?void 0x0:_0x360218[_0x324702(0x73)])!=null?_0x5a25f5:_0x278a51)!=null?_0x4cf642:pn;}['_getSignURL'](){const _0x983e72=_0x3a85d7;var _0x368f7b,_0x1724d1;const _0x27f572=this[_0x983e72(0x365)][_0x983e72(0x45d)](Cn),_0x779eb0=this[_0x983e72(0x365)][_0x983e72(0x45d)](L);return(_0x1724d1=(_0x368f7b=_0x779eb0==null?void 0x0:_0x779eb0[_0x983e72(0x2a0)])!=null?_0x368f7b:_0x27f572)!=null?_0x1724d1:En;}['_getDownloadEndpointURL'](){const _0x369cfc=_0x3a85d7;var _0x3440db;const _0x243ac8=this[_0x369cfc(0x365)][_0x369cfc(0x45d)](L);return(_0x3440db=_0x243ac8==null?void 0x0:_0x243ac8['downloadEndpointUrl'])!=null?_0x3440db:location[_0x369cfc(0x1a5)];}['_replaceFileID'](_0x536b88,_0x327921){const _0x6fd114=_0x3a85d7;return _0x536b88[_0x6fd114(0x141)](_0x6fd114(0x2a7),_0x327921);}[_0x3a85d7(0x2ef)](){const _0x40a915=_0x3a85d7;this['_waitCount']-=0x1,this[_0x40a915(0x2e5)][_0x40a915(0x294)](this[_0x40a915(0x338)]);}},exports['ImageIoService']=mn([xe(0x0,a[_0x3a85d7(0x1e4)](w[_0x3a85d7(0x18e)])),xe(0x1,a['IConfigService']),xe(0x2,a[_0x3a85d7(0x1e4)](a['IUniverInstanceService']))],exports[_0x3a85d7(0x479)]);var bn=Object[_0x3a85d7(0x329)],Tn=Object[_0x3a85d7(0x43d)],Rn=(_0x29a885,_0x54a914,_0x34d19b,_0x312483)=>{const _0x36df21=_0x3a85d7;for(var _0x412a81=_0x312483>0x1?void 0x0:_0x312483?Tn(_0x54a914,_0x34d19b):_0x54a914,_0x100442=_0x29a885[_0x36df21(0x16a)]-0x1,_0x4a8481;_0x100442>=0x0;_0x100442--)(_0x4a8481=_0x29a885[_0x100442])&&(_0x412a81=(_0x312483?_0x4a8481(_0x54a914,_0x34d19b,_0x412a81):_0x4a8481(_0x412a81))||_0x412a81);return _0x312483&&_0x412a81&&bn(_0x54a914,_0x34d19b,_0x412a81),_0x412a81;},_e=(_0x2ef590,_0x2e4638)=>(_0x16d8d4,_0x2c26ca)=>_0x2e4638(_0x16d8d4,_0x2c26ca,_0x2ef590);let Te=class extends a['RxDisposable']{constructor(_0x1e0438,_0x3f11a6,_0x5e57ee,_0x4b9611,_0x2f61d1){const _0x4d27b7=_0x3a85d7;super(),this[_0x4d27b7(0x1ae)]=_0x1e0438,this[_0x4d27b7(0x261)]=_0x3f11a6,this['_permissionService']=_0x5e57ee,this[_0x4d27b7(0x376)]=_0x4b9611,this['_localeService']=_0x2f61d1,this['_initUnitPermissionChange'](),this[_0x4d27b7(0x388)]();}['_initCloseConn'](){const _0x1c053a=_0x3a85d7,_0x11e720=async _0x47d2ac=>{const _0xdfca8e=_0x54ba;(await this[_0xdfca8e(0x376)]['requireSession'](_0x47d2ac))[_0xdfca8e(0x3a3)][_0xdfca8e(0x3d0)](E['filter'](_0x143bcc=>_0x143bcc[_0xdfca8e(0x121)]===_['CollaborationEvent'][_0xdfca8e(0x23b)]),E[_0xdfca8e(0x1b4)](this[_0xdfca8e(0x232)]))[_0xdfca8e(0xc4)](_0x4421b5=>{const _0x54ddaf=_0xdfca8e,_0x4ac788=_0x4421b5,{reason:_0x57cfe0}=_0x4ac788[_0x54ddaf(0xd9)];this['_injector'][_0x54ddaf(0xca)](A[_0x54ddaf(0x41b)])[_0x54ddaf(0x2e8)]({'type':q['MessageType'][_0x54ddaf(0x1a8)],'content':this[_0x54ddaf(0x43f)]['t'](_0x54ddaf(0x48e))+'('+_0x57cfe0+')'}),this[_0x54ddaf(0x40f)][_0x54ddaf(0x19b)](new C[(_0x54ddaf(0x18d))](_0x47d2ac)['id'],!0x1),this['_collaborationSessionService'][_0x54ddaf(0x2a1)](_0x47d2ac);});};v[_0x1c053a(0x1cd)](this[_0x1c053a(0x261)][_0x1c053a(0x220)](a[_0x1c053a(0x355)][_0x1c053a(0x35c)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x1c053a(0x117)]))['pipe'](E['map'](_0x5ca322=>_0x5ca322['getUnitId']()),E[_0x1c053a(0x3da)](_0x232161=>!a[_0x1c053a(0x1f7)](_0x232161)),E[_0x1c053a(0x1b4)](this['dispose$']))[_0x1c053a(0xc4)](_0x9ef6f2=>{_0x11e720(_0x9ef6f2);});}['_initUnitPermissionChange'](){const _0x52654a=_0x3a85d7,_0x3a3378=async _0x1f59cf=>{const _0x5824d9=_0x54ba;(await this[_0x5824d9(0x376)][_0x5824d9(0x81)](_0x1f59cf))[_0x5824d9(0x3a3)]['pipe'](E[_0x5824d9(0x3da)](_0x5af412=>_0x5af412[_0x5824d9(0x121)]===_[_0x5824d9(0x14f)]['UPDATE_PERMISSION_OBJ']),E['takeUntil'](this[_0x5824d9(0x232)]))['subscribe'](_0x15319b=>{const _0x2b5b12=_0x5824d9,_0x5c40c8=_0x15319b,{objectId:_0x536ff3}=_0x5c40c8['data'],_0x388c34=this['_injector'][_0x2b5b12(0xca)](te[_0x2b5b12(0x177)]);_0x536ff3===_0x1f59cf?_0x388c34['initWorkbookPermissionChange'](_0x1f59cf):_0x388c34[_0x2b5b12(0x1d3)](_0x1f59cf,_0x536ff3);});};v['merge'](this['_univerInstanceService'][_0x52654a(0x220)](a['UniverInstanceType'][_0x52654a(0x35c)]),this[_0x52654a(0x261)][_0x52654a(0x220)](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](E[_0x52654a(0xcf)](_0x314ca2=>_0x314ca2[_0x52654a(0x311)]()),E[_0x52654a(0x3da)](_0x3605bb=>!a[_0x52654a(0x1f7)](_0x3605bb)),E['takeUntil'](this['dispose$']))[_0x52654a(0xc4)](_0xd572f=>{_0x3a3378(_0xd572f);});}};Te=Rn([_e(0x0,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),_e(0x1,a[_0x3a85d7(0x9e)]),_e(0x2,a[_0x3a85d7(0x1a0)]),_e(0x3,a['Inject'](exports[_0x3a85d7(0x3d9)])),_e(0x4,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x3f3)]))],Te);var On=Object[_0x3a85d7(0x329)],Dn=Object[_0x3a85d7(0x43d)],yn=(_0x38dc9a,_0x4d21e8,_0x5ae254,_0x231e59)=>{const _0x5a4cb9=_0x3a85d7;for(var _0xf9597=_0x231e59>0x1?void 0x0:_0x231e59?Dn(_0x4d21e8,_0x5ae254):_0x4d21e8,_0x5adef8=_0x38dc9a[_0x5a4cb9(0x16a)]-0x1,_0x37622d;_0x5adef8>=0x0;_0x5adef8--)(_0x37622d=_0x38dc9a[_0x5adef8])&&(_0xf9597=(_0x231e59?_0x37622d(_0x4d21e8,_0x5ae254,_0xf9597):_0x37622d(_0xf9597))||_0xf9597);return _0x231e59&&_0xf9597&&On(_0x4d21e8,_0x5ae254,_0xf9597),_0xf9597;},dt=(_0x47d7ac,_0x1c2f88)=>(_0x27b813,_0xa2bcf8)=>_0x1c2f88(_0x27b813,_0xa2bcf8,_0x47d7ac);exports[_0x3a85d7(0x25f)]=class{constructor(_0x336322,_0x25309a){const _0x177f3c=_0x3a85d7;this[_0x177f3c(0x365)]=_0x336322,this[_0x177f3c(0x192)]=_0x25309a;}async[_0x3a85d7(0x482)](_0x3d9895,_0x3b921b){const _0x58dc40=_0x3a85d7;var _0x604b58;const {unitID:_0x4916f4,type:_0x1a9966,revision:_0x34938c=0x0}=_0x3b921b,_0x57e8c0=this[_0x58dc40(0x282)]()+'/'+_0x1a9966+_0x58dc40(0x300)+_0x4916f4+_0x58dc40(0x1bf)+_0x34938c,_0x1bcdda=(await this[_0x58dc40(0x192)][_0x58dc40(0xca)](_0x57e8c0))[_0x58dc40(0x21c)],_0x3ee3b5=(_0x604b58=_0x1bcdda[_0x58dc40(0x279)])==null?void 0x0:_0x604b58[_0x58dc40(0x306)];if(_0x3ee3b5){const _0x11f718=_0x3ee3b5==null?void 0x0:_0x3ee3b5[_0x58dc40(0x393)],_0x5cb071=_[_0x58dc40(0x345)][_0x58dc40(0x1bb)](_[_0x58dc40(0x3f0)](_0x11f718));_0x3ee3b5[_0x58dc40(0x393)]=_0x5cb071,Object[_0x58dc40(0x1c9)](_0x3ee3b5[_0x58dc40(0x331)])['forEach'](([,_0x359cc6])=>{const _0x3a2cd5=_0x58dc40,_0x2129e6=_0x359cc6[_0x3a2cd5(0x393)],_0x3f156a=_[_0x3a2cd5(0x345)][_0x3a2cd5(0x1bb)](_['b64DecodeUnicode'](_0x2129e6));_0x359cc6[_0x3a2cd5(0x393)]=_0x3f156a;});}return _0x1bcdda;}async[_0x3a85d7(0x293)](_0x438dda,_0x214939){const _0x4b64d1=_0x3a85d7,{unitID:_0x4186c8,type:_0xf25e43,blockID:_0x5e87a5}=_0x214939,_0x38d386=this[_0x4b64d1(0x1f2)]()+'/'+_0xf25e43+_0x4b64d1(0x300)+_0x4186c8+_0x4b64d1(0x3e6)+_0x5e87a5;return(await this['_httpService'][_0x4b64d1(0xca)](_0x38d386))['body'];}async['getDeserializedSheetBlock'](_0x145b63,_0x44e79b){const _0x4734e8=_0x3a85d7,{unitID:_0x117f80,type:_0x186ca1,blockID:_0x4a7ea7}=_0x44e79b,_0x26e28a=this[_0x4734e8(0x1f2)]()+_0x4734e8(0x3e6)+_0x186ca1+_0x4734e8(0x300)+_0x117f80+_0x4734e8(0x3e6)+_0x4a7ea7;return(await this['_httpService'][_0x4734e8(0xca)](_0x26e28a))['body'];}async['fetchMissingChangesets'](_0x8220ff,_0x458f38){const _0x422534=_0x3a85d7,{unitID:_0x2a8d70,type:_0x123ffe,from:_0x4fe17c,to:_0x18a4a1}=_0x458f38,_0x17886e=this[_0x422534(0x1f2)]()+'/'+_0x123ffe+_0x422534(0x300)+_0x2a8d70+_0x422534(0x404)+_0x4fe17c+_0x422534(0xef)+_0x18a4a1;return(await this['_httpService'][_0x422534(0xca)](_0x17886e))[_0x422534(0x21c)];}[_0x3a85d7(0x282)](){const _0x68f2d=_0x3a85d7;var _0x3fed86;return(_0x3fed86=this[_0x68f2d(0x365)][_0x68f2d(0x45d)](vt))!=null?_0x3fed86:this['_getAPIPrefix']();}[_0x3a85d7(0x1f2)](){const _0x28d158=_0x3a85d7;var _0x47aad6,_0x5d1dc4;const _0x3a784a=this['_configService']['getConfig'](St),_0x374631=this[_0x28d158(0x365)][_0x28d158(0x45d)](L);return(_0x5d1dc4=(_0x47aad6=_0x374631==null?void 0x0:_0x374631[_0x28d158(0x3ae)])!=null?_0x47aad6:_0x3a784a)!=null?_0x5d1dc4:Jt;}async['getResourcesRequest'](_0x2a2af0,_0x56745f){const _0x130b48=_0x3a85d7,_0x2c68c9=_0x130b48(0x89)+_0x56745f[_0x130b48(0x19d)]+'/unit/'+_0x56745f['unitID']+_0x130b48(0x238);return(await this[_0x130b48(0x192)][_0x130b48(0xca)](_0x2c68c9,{'params':{'resourceId':JSON['stringify'](_0x56745f[_0x130b48(0x356)])}}))[_0x130b48(0x21c)];}[_0x3a85d7(0x233)](){const _0x475ec9=_0x3a85d7;throw new Error(_0x475ec9(0x1e3));}[_0x3a85d7(0x11c)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3a85d7(0x3be)](){const _0x472ab2=_0x3a85d7;throw new Error(_0x472ab2(0x1e3));}[_0x3a85d7(0x3e9)](){const _0x4b7599=_0x3a85d7;throw new Error(_0x4b7599(0x1e3));}['getLatestCsReqIdBySid'](){const _0x46e0ca=_0x3a85d7;throw new Error(_0x46e0ca(0x1e3));}},exports[_0x3a85d7(0x25f)]=yn([dt(0x0,a[_0x3a85d7(0x3ba)]),dt(0x1,a[_0x3a85d7(0x1e4)](w[_0x3a85d7(0x18e)]))],exports[_0x3a85d7(0x25f)]);var Un=Object[_0x3a85d7(0x329)],Pn=Object[_0x3a85d7(0x43d)],wn=(_0x4d9808,_0x591b32,_0x136f37,_0x5a5432)=>{const _0x48030=_0x3a85d7;for(var _0x50c38a=_0x5a5432>0x1?void 0x0:_0x5a5432?Pn(_0x591b32,_0x136f37):_0x591b32,_0x449fda=_0x4d9808[_0x48030(0x16a)]-0x1,_0x5b457e;_0x449fda>=0x0;_0x449fda--)(_0x5b457e=_0x4d9808[_0x449fda])&&(_0x50c38a=(_0x5a5432?_0x5b457e(_0x591b32,_0x136f37,_0x50c38a):_0x5b457e(_0x50c38a))||_0x50c38a);return _0x5a5432&&_0x50c38a&&Un(_0x591b32,_0x136f37,_0x50c38a),_0x50c38a;},ue=(_0x2251dd,_0x3baad4)=>(_0x593dfd,_0x53678c)=>_0x3baad4(_0x593dfd,_0x53678c,_0x2251dd);let Fe=class extends a['LocalUndoRedoService']{constructor(_0x372012,_0xe4711e,_0x1026ca,_0x2944de,_0x3dce0c){const _0x2b92d1=_0x3a85d7;super(_0x372012,_0xe4711e,_0x1026ca),this[_0x2b92d1(0x30f)]=_0x2944de,this[_0x2b92d1(0x174)]=_0x3dce0c;}[_0x3a85d7(0xc2)](_0x1dcf2e,_0x2b2881){const _0x3b64bd=_0x3a85d7,_0x1eb85e=this[_0x3b64bd(0x3c8)](_0x1dcf2e);if(_0x1eb85e)try{const _0x245d9b=this[_0x3b64bd(0x39e)](_0x1eb85e,_0x2b2881);this[_0x3b64bd(0xa2)](_0x1dcf2e,_0x245d9b);}catch(_0xbc5a9f){this[_0x3b64bd(0x174)][_0x3b64bd(0xae)](_0x3b64bd(0x363),_0xbc5a9f),this[_0x3b64bd(0x115)](_0x1dcf2e);}const _0x213010=this['_getRedoStack'](_0x1dcf2e);if(_0x213010)try{const _0x11523c=this[_0x3b64bd(0x39e)](_0x213010,_0x2b2881);this['_substituteRedoStack'](_0x1dcf2e,_0x11523c);}catch(_0x4dee79){this[_0x3b64bd(0x174)][_0x3b64bd(0xae)](_0x4dee79),this['_clearRedo'](_0x1dcf2e);}}[_0x3a85d7(0x115)](_0x100851){const _0x1f201c=_0x3a85d7,_0x17f48e=this[_0x1f201c(0x3c8)](_0x100851);_0x17f48e&&(_0x17f48e['length']=0x0,this[_0x1f201c(0x1c1)]());}[_0x3a85d7(0x7e)](_0x34984e){const _0x14078d=_0x3a85d7,_0x22ce8a=this[_0x14078d(0x2cf)](_0x34984e);_0x22ce8a&&(_0x22ce8a[_0x14078d(0x16a)]=0x0,this[_0x14078d(0x1c1)]());}[_0x3a85d7(0xa2)](_0x4b0683,_0x543f55){const _0x322de2=_0x3a85d7;this[_0x322de2(0xfc)][_0x322de2(0x225)](_0x4b0683,_0x543f55),this['_updateStatus']();}[_0x3a85d7(0xc9)](_0x43c868,_0x3dadda){const _0x52c80f=_0x3a85d7;this['_redoStacks'][_0x52c80f(0x225)](_0x43c868,_0x3dadda),this[_0x52c80f(0x1c1)]();}[_0x3a85d7(0x39e)](_0x1e8764,_0x2e59a3){const _0x4650f5=_0x3a85d7,_0x516a0e=[];let _0x68c3a0=_0x2e59a3,_0x46e52a=_0x2e59a3;for(let _0x31845e=_0x1e8764[_0x4650f5(0x16a)]-0x1;_0x31845e>=0x0;_0x31845e--){const {unitID:_0x3a6b56,undoMutations:_0x492e27,redoMutations:_0x66f254}=_0x1e8764[_0x31845e],_0x64b77c=this[_0x4650f5(0x30f)][_0x4650f5(0x418)](_0x68c3a0,_0x492e27),_0x482539=this['_transformService'][_0x4650f5(0x418)](_0x46e52a,_0x66f254);if(_[_0x4650f5(0x451)](_0x64b77c)||_['isTransformMutationsWithChangesetFailure'](_0x482539)){this['_logService'][_0x4650f5(0xae)](_0x4650f5(0x363),_0x4650f5(0x8c),_0x64b77c,_0x482539);break;}_0x68c3a0=_0x64b77c[_0x4650f5(0x139)],_0x46e52a=_0x482539[_0x4650f5(0x139)],_0x516a0e[_0x4650f5(0x250)]({'unitID':_0x3a6b56,'undoMutations':_0x64b77c[_0x4650f5(0x2c3)],'redoMutations':_0x482539[_0x4650f5(0x2c3)]});}return _0x516a0e[_0x4650f5(0x9b)]();}};Fe=wn([ue(0x0,a[_0x3a85d7(0x9e)]),ue(0x1,a[_0x3a85d7(0xa3)]),ue(0x2,a[_0x3a85d7(0x38d)]),ue(0x3,_[_0x3a85d7(0x12f)]),ue(0x4,a[_0x3a85d7(0x43e)])],Fe);class xt extends a[_0x3a85d7(0x1fb)]{constructor(){const _0x24770d=_0x3a85d7;super(),u(this,_0x24770d(0x36f)),this['urlChange$']=v[_0x24770d(0x83)](window,_0x24770d(0x3b3))['pipe'](v[_0x24770d(0x1b4)](this['dispose$']),v[_0x24770d(0x17b)](0x1),v[_0x24770d(0x1c5)](void 0x0));}[_0x3a85d7(0x288)](_0x461536,_0x714bd0,_0x199767=!0x1){const _0x1f2c5f=_0x3a85d7,_0x26cfe5=new URL(window['location'][_0x1f2c5f(0x47a)]);_0x26cfe5['searchParams']['set'](_0x461536,_0x714bd0),_0x199767?window[_0x1f2c5f(0x427)][_0x1f2c5f(0x107)]('','',_0x26cfe5[_0x1f2c5f(0x483)]()):window['history'][_0x1f2c5f(0x3b1)]('','',_0x26cfe5[_0x1f2c5f(0x483)]());}[_0x3a85d7(0x497)](_0x6c2825,_0x503d6a=!0x1){const _0x227ae8=_0x3a85d7,_0x351ea5=new URL(window[_0x227ae8(0x48d)][_0x227ae8(0x47a)]);_0x351ea5[_0x227ae8(0x146)][_0x227ae8(0x3de)](_0x6c2825),_0x503d6a?window['history'][_0x227ae8(0x107)]('','',_0x351ea5[_0x227ae8(0x483)]()):window[_0x227ae8(0x427)][_0x227ae8(0x3b1)]('','',_0x351ea5[_0x227ae8(0x483)]());}['getParam'](_0x22b3cf){const _0x3d471c=_0x3a85d7;var _0x25b337;return(_0x25b337=new URL(window['location'][_0x3d471c(0x47a)])[_0x3d471c(0x146)][_0x3d471c(0xca)](_0x22b3cf))!=null?_0x25b337:void 0x0;}}var kt=Object[_0x3a85d7(0x329)],Nn=Object['getOwnPropertyDescriptor'],Mn=(_0x1ffb54,_0x39900e,_0x524489)=>_0x39900e in _0x1ffb54?kt(_0x1ffb54,_0x39900e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x524489}):_0x1ffb54[_0x39900e]=_0x524489,An=(_0x3cf6d0,_0x51ec1b,_0x18b6c8,_0x32c094)=>{const _0x4d34a3=_0x3a85d7;for(var _0x18e173=_0x32c094>0x1?void 0x0:_0x32c094?Nn(_0x51ec1b,_0x18b6c8):_0x51ec1b,_0x5d26b2=_0x3cf6d0[_0x4d34a3(0x16a)]-0x1,_0x1baa65;_0x5d26b2>=0x0;_0x5d26b2--)(_0x1baa65=_0x3cf6d0[_0x5d26b2])&&(_0x18e173=(_0x32c094?_0x1baa65(_0x51ec1b,_0x18b6c8,_0x18e173):_0x1baa65(_0x18e173))||_0x18e173);return _0x32c094&&_0x18e173&&kt(_0x51ec1b,_0x18b6c8,_0x18e173),_0x18e173;},ge=(_0x2a703f,_0xf0e025)=>(_0x1abf83,_0x4fe52f)=>_0xf0e025(_0x1abf83,_0x4fe52f,_0x2a703f),Ln=(_0x1fc57a,_0x38f34b,_0x395a13)=>Mn(_0x1fc57a,_0x38f34b+'',_0x395a13);const jn=_0x3a85d7(0x38a);exports[_0x3a85d7(0x78)]=class extends a[_0x3a85d7(0x1e8)]{constructor(_0x23d0a7=as,_0x1b5f43,_0x4baec1,_0x29a7e5,_0x497b3e){const _0x47a012=_0x3a85d7;super(),this[_0x47a012(0x2a5)]=_0x23d0a7,this[_0x47a012(0x174)]=_0x1b5f43,this[_0x47a012(0x35d)]=_0x4baec1,this['_injector']=_0x29a7e5,this[_0x47a012(0x365)]=_0x497b3e;const {..._0x5e5c79}=this[_0x47a012(0x2a5)];this[_0x47a012(0x365)][_0x47a012(0x112)](L,_0x5e5c79);}[_0x3a85d7(0x1a4)](){const _0x56cdd8=_0x3a85d7;this[_0x56cdd8(0xe9)](),a['touchDependencies'](this[_0x56cdd8(0x1ae)],[[ne],[exports[_0x56cdd8(0x2c1)]],[Te]]);}[_0x3a85d7(0xd8)](){const _0x2fc98f=_0x3a85d7;a['touchDependencies'](this[_0x2fc98f(0x1ae)],[[Ce]]);}['onRendered'](){this['_registerRenderDependencies']();}[_0x3a85d7(0xe9)](){const _0x2f44b1=_0x3a85d7;var _0x27719c,_0x2a3ece,_0x10fbf3,_0x8a915b;this[_0x2f44b1(0x1ae)][_0x2f44b1(0x1a7)](a[_0x2f44b1(0x1df)])&&this[_0x2f44b1(0x174)][_0x2f44b1(0xae)]('[UniverCollaborationClientPlugin]',_0x2f44b1(0x3c3));let _0xb0df3d=[[a[_0x2f44b1(0x1df)],{'useClass':Fe}],[exports[_0x2f44b1(0x3d9)]],[Je],[w[_0x2f44b1(0x18e)]],[Qe,{'useClass':xt}],[X],[exports[_0x2f44b1(0x1c0)]],[w[_0x2f44b1(0x24c)]],[Ie],[pe],[fe],[Xe],[Ee],[be],[qe],[Te],[Ke,{'useClass':(_0x2a3ece=(_0x27719c=this[_0x2f44b1(0x2a5)])==null?void 0x0:_0x27719c[_0x2f44b1(0xb9)])!=null?_0x2a3ece:exports[_0x2f44b1(0x10f)]}],[w[_0x2f44b1(0xda)],{'useClass':w[_0x2f44b1(0x212)]}],[_[_0x2f44b1(0x380)],{'useClass':exports[_0x2f44b1(0x25f)]}],[a[_0x2f44b1(0x349)],{'useClass':exports[_0x2f44b1(0x184)]}],[j[_0x2f44b1(0x3f4)],{'useClass':exports['ImageIoService']}],[exports['CollaborationController']],[exports[_0x2f44b1(0x2c1)]],[exports[_0x2f44b1(0x42e)]],[Ce],[ne]];(_0x10fbf3=this[_0x2f44b1(0x2a5)])!=null&&_0x10fbf3['enableSingleActiveInstanceLock']&&_0xb0df3d[_0x2f44b1(0x250)]([Re,{'useClass':xs}]),_0xb0df3d=a['mergeOverrideWithDependencies'](_0xb0df3d,(_0x8a915b=this['_config'])==null?void 0x0:_0x8a915b[_0x2f44b1(0x176)]),_0xb0df3d[_0x2f44b1(0x189)](_0x19baa1=>this['_injector'][_0x2f44b1(0x1b9)](_0x19baa1)),this[_0x2f44b1(0x390)]();}[_0x3a85d7(0x22f)](){const _0x90a4c0=_0x3a85d7;this[_0x90a4c0(0x208)](this[_0x90a4c0(0x35d)]['registerRenderModule'](a[_0x90a4c0(0x355)][_0x90a4c0(0x117)],[Ve])),this[_0x90a4c0(0x208)](this[_0x90a4c0(0x35d)][_0x90a4c0(0x1ab)](a[_0x90a4c0(0x355)][_0x90a4c0(0x35c)],[We]));}['_initModules'](){const _0x3b07b5=_0x3a85d7;var _0x47cc23,_0x166261;this['_injector'][_0x3b07b5(0xca)](w['HTTPService'])[_0x3b07b5(0x118)]({'priority':0x14,'interceptor':w['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_injector'][_0x3b07b5(0xca)](be),(_0x47cc23=this['_config'])!=null&&_0x47cc23['enableOfflineEditing']||this[_0x3b07b5(0x1ae)][_0x3b07b5(0xca)](exports['LocalCacheService'])[_0x3b07b5(0x325)](),(_0x166261=this[_0x3b07b5(0x2a5)])!=null&&_0x166261[_0x3b07b5(0x39f)]&&this[_0x3b07b5(0x1ae)][_0x3b07b5(0xca)](Ee),this['_injector'][_0x3b07b5(0xca)](exports[_0x3b07b5(0x430)]),this['_injector'][_0x3b07b5(0x1a7)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x3b07b5(0x1ae)][_0x3b07b5(0xca)](exports[_0x3b07b5(0x42e)]);}},Ln(exports[_0x3a85d7(0x78)],_0x3a85d7(0x3a0),jn),exports[_0x3a85d7(0x78)]=An([a[_0x3a85d7(0x2ca)](_[_0x3a85d7(0x100)]),ge(0x1,a[_0x3a85d7(0x43e)]),ge(0x2,D[_0x3a85d7(0x2ed)]),ge(0x3,a[_0x3a85d7(0x1e4)](a[_0x3a85d7(0x429)])),ge(0x4,a[_0x3a85d7(0x3ba)])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=Ht,exports[_0x3a85d7(0xde)]=Ct,exports[_0x3a85d7(0x1f3)]=mt,exports[_0x3a85d7(0x27f)]=U,exports[_0x3a85d7(0x3b8)]=$t,exports[_0x3a85d7(0x2b3)]=qe,exports[_0x3a85d7(0x34f)]=gt,exports[_0x3a85d7(0x2f2)]=Ge,exports[_0x3a85d7(0x327)]=Ke,exports[_0x3a85d7(0x449)]=Qe,exports[_0x3a85d7(0x46f)]=pt,exports[_0x3a85d7(0x359)]=Et,exports[_0x3a85d7(0xb0)]=It,exports[_0x3a85d7(0x16f)]=Zt,exports[_0x3a85d7(0x472)]=St,exports[_0x3a85d7(0x24f)]=vt,exports[_0x3a85d7(0x2e6)]=H,exports['SheetCollabCursorShape']=Nt,exports[_0x3a85d7(0x269)]=xt,exports[_0x3a85d7(0x245)]=Rt,exports[_0x3a85d7(0x377)]=Ot;
|
1
|
+
'use strict';const _0x5ea8e9=_0x2fbf;(function(_0x1ecdb6,_0x1d844f){const _0x3d942b=_0x2fbf,_0x2cdbf8=_0x1ecdb6();while(!![]){try{const _0xf86958=parseInt(_0x3d942b(0x2eb))/0x1*(parseInt(_0x3d942b(0x3e1))/0x2)+-parseInt(_0x3d942b(0x20f))/0x3*(-parseInt(_0x3d942b(0x53c))/0x4)+-parseInt(_0x3d942b(0x15f))/0x5+-parseInt(_0x3d942b(0x3a0))/0x6*(-parseInt(_0x3d942b(0x296))/0x7)+parseInt(_0x3d942b(0x461))/0x8+parseInt(_0x3d942b(0x22f))/0x9+-parseInt(_0x3d942b(0x37a))/0xa*(parseInt(_0x3d942b(0x138))/0xb);if(_0xf86958===_0x1d844f)break;else _0x2cdbf8['push'](_0x2cdbf8['shift']());}catch(_0x544372){_0x2cdbf8['push'](_0x2cdbf8['shift']());}}}(_0x275d,0x6cc68));var Yt=Object[_0x5ea8e9(0x16c)],Kt=(_0x114e54,_0x3da2a1,_0x484481)=>_0x3da2a1 in _0x114e54?Yt(_0x114e54,_0x3da2a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x484481}):_0x114e54[_0x3da2a1]=_0x484481,u=(_0x267fab,_0x1170d2,_0x44f1dc)=>Kt(_0x267fab,typeof _0x1170d2!=_0x5ea8e9(0x3d5)?_0x1170d2+'':_0x1170d2,_0x44f1dc);Object[_0x5ea8e9(0x16c)](exports,Symbol[_0x5ea8e9(0x42d)],{'value':_0x5ea8e9(0x1d8)});const a=require(_0x5ea8e9(0x2f1)),v=require(_0x5ea8e9(0x3e7)),E=require('rxjs/operators'),q=require(_0x5ea8e9(0x4b6)),A=require(_0x5ea8e9(0x4ac)),w=require(_0x5ea8e9(0x3c9)),_=require('@univerjs-pro/collaboration'),qt=require(_0x5ea8e9(0x3a4)),N=require('@univerjs/docs-ui'),C=require(_0x5ea8e9(0x2dd)),D=require(_0x5ea8e9(0x4ba)),se=require(_0x5ea8e9(0x532)),j=require(_0x5ea8e9(0x15e)),et=require('@univerjs/engine-formula'),te=require(_0x5ea8e9(0x423)),P=require(_0x5ea8e9(0x3fb)),Xt=require(_0x5ea8e9(0x247)),zt=require(_0x5ea8e9(0x14a)),St=_0x5ea8e9(0x21f),Jt=_0x5ea8e9(0x4c0),vt=_0x5ea8e9(0x2b5),Zt=_0x5ea8e9(0x4a8),Qt=0x7d0,mt='COLLAB_WEB_SOCKET_URL',es=_0x5ea8e9(0x18a),gt=_0x5ea8e9(0x43d),ts=0x7530,Ge=_0x5ea8e9(0x47a),ft=0x4e20,ss=0x4e20,It=_0x5ea8e9(0x375),is=0x3,pt=_0x5ea8e9(0x2d3),ns=0x3e8,Ct=_0x5ea8e9(0x3b3),rs=_0x5ea8e9(0x3d7),Et=_0x5ea8e9(0x289),os='/universer-api/oidc/authpage';var bt=(_0x3d7e02=>(_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x4f2)]=0x0]=_0x5ea8e9(0x4f2),_0x3d7e02[_0x3d7e02['OK']=0x1]='OK',_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x4a4)]=0x2]='INTERNAL_ERROR',_0x3d7e02[_0x3d7e02['PERMISSION_DENIED']=0x3]=_0x5ea8e9(0x42b),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x4d8)]=0x4]='NOT_FOUND',_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x40b)]=0x5]=_0x5ea8e9(0x40b),_0x3d7e02[_0x3d7e02['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x256)]=0x7]=_0x5ea8e9(0x256),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x25f)]=0x8]=_0x5ea8e9(0x25f),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x297)]=0x9]=_0x5ea8e9(0x297),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x2a4)]=0x1389]=_0x5ea8e9(0x2a4),_0x3d7e02[_0x3d7e02['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5ea8e9(0x1d6),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x1dc)]=0x1772]=_0x5ea8e9(0x1dc),_0x3d7e02[_0x3d7e02['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x5ea8e9(0x24d),_0x3d7e02[_0x3d7e02['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x261)]=0x1b5a]=_0x5ea8e9(0x261),_0x3d7e02[_0x3d7e02['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x5ea8e9(0x1f8),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x1bf)]=0x1b5c]=_0x5ea8e9(0x1bf),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x2f7)]=0x1b5d]=_0x5ea8e9(0x2f7),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x41f)]=0x1f41]=_0x5ea8e9(0x41f),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x4a2)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x3ac)]=0x232a]=_0x5ea8e9(0x3ac),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x3da)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x517)]=0x232c]=_0x5ea8e9(0x517),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x1b2)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3d7e02[_0x3d7e02['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x1cc)]=0x2712]=_0x5ea8e9(0x1cc),_0x3d7e02[_0x3d7e02['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5ea8e9(0x30b),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x26d)]=0x2714]=_0x5ea8e9(0x26d),_0x3d7e02[_0x3d7e02[_0x5ea8e9(0x140)]=-0x1]=_0x5ea8e9(0x140),_0x3d7e02))(bt||{}),$=(_0x569617=>(_0x569617[_0x569617['UNIVER_UNKNOWN']=0x0]=_0x5ea8e9(0x334),_0x569617[_0x569617[_0x5ea8e9(0x2de)]=0x1]=_0x5ea8e9(0x2de),_0x569617[_0x569617[_0x5ea8e9(0x2ae)]=0x2]=_0x5ea8e9(0x2ae),_0x569617[_0x569617[_0x5ea8e9(0x210)]=0x3]=_0x5ea8e9(0x210),_0x569617[_0x569617[_0x5ea8e9(0x3fd)]=0x4]='UNIVER_PROJECT',_0x569617[_0x569617[_0x5ea8e9(0x140)]=-0x1]=_0x5ea8e9(0x140),_0x569617))($||{}),b=(_0x1f1311=>(_0x1f1311[_0x1f1311[_0x5ea8e9(0x1cd)]=0x0]=_0x5ea8e9(0x1cd),_0x1f1311[_0x1f1311[_0x5ea8e9(0x13e)]=0x1]=_0x5ea8e9(0x13e),_0x1f1311[_0x1f1311[_0x5ea8e9(0x318)]=0x2]=_0x5ea8e9(0x318),_0x1f1311[_0x1f1311[_0x5ea8e9(0x3cb)]=0x3]=_0x5ea8e9(0x3cb),_0x1f1311[_0x1f1311['INGEST']=0x4]=_0x5ea8e9(0x4aa),_0x1f1311[_0x1f1311[_0x5ea8e9(0x350)]=0x5]=_0x5ea8e9(0x350),_0x1f1311[_0x1f1311[_0x5ea8e9(0x141)]=0x6]='RECV',_0x1f1311[_0x1f1311['UNRECOGNIZED']=-0x1]=_0x5ea8e9(0x140),_0x1f1311))(b||{}),Ye=(_0x42eaf3=>(_0x42eaf3[_0x42eaf3[_0x5ea8e9(0x462)]=0x0]=_0x5ea8e9(0x462),_0x42eaf3[_0x42eaf3['OK']=0x1]='OK',_0x42eaf3[_0x42eaf3[_0x5ea8e9(0x470)]=0x2]=_0x5ea8e9(0x470),_0x42eaf3[_0x42eaf3[_0x5ea8e9(0x140)]=-0x1]='UNRECOGNIZED',_0x42eaf3))(Ye||{}),Tt=(_0x421db7=>(_0x421db7[_0x421db7[_0x5ea8e9(0x406)]=0x0]='Undefined',_0x421db7[_0x421db7['HttpImport']=0x1]='HttpImport',_0x421db7[_0x421db7[_0x5ea8e9(0x4df)]=0x2]=_0x5ea8e9(0x4df),_0x421db7[_0x421db7[_0x5ea8e9(0x2c9)]=0x3]=_0x5ea8e9(0x2c9),_0x421db7[_0x421db7[_0x5ea8e9(0x3f2)]=0x4]=_0x5ea8e9(0x3f2),_0x421db7[_0x421db7['UNRECOGNIZED']=-0x1]=_0x5ea8e9(0x140),_0x421db7))(Tt||{});const L=_0x5ea8e9(0x55c),as={};function Rt(_0x5bf477){const _0x558798=_0x5ea8e9;var _0x5491ec,_0x5e67ca,_0x5a4088,_0x5aae29,_0x3b6565;const _0x2a2d7d=_0x5bf477['data'],_0x341124=JSON[_0x558798(0x53f)](_0x2a2d7d);switch(_0x341124[_0x558798(0x274)]){case b[_0x558798(0x350)]:case b[_0x558798(0x13e)]:{const _0x36dd13=_0x341124[_0x558798(0x460)];return{..._0x341124,'data':_0x36dd13,'cmd':_0x341124[_0x558798(0x274)]};}case b[_0x558798(0x318)]:{const _0x228253=_0x341124[_0x558798(0x293)];return{..._0x341124,'data':_0x228253,'cmd':_0x341124[_0x558798(0x274)]};}case b['RECV']:{const _0x24d8a7=_0x341124['collaMsg'];switch(_0x24d8a7['eventID']){case _['CollaborationEvent'][_0x558798(0x14e)]:return{..._0x341124,'data':{..._0x24d8a7,'data':(_0x5491ec=_0x24d8a7[_0x558798(0x495)])==null?void 0x0:_0x5491ec['cs']},'cmd':_0x341124[_0x558798(0x274)]};case _['CollaborationEvent'][_0x558798(0x26c)]:return{..._0x341124,'data':{..._0x24d8a7,'data':(_0x5e67ca=_0x24d8a7[_0x558798(0x519)])==null?void 0x0:_0x5e67ca['cs']},'cmd':_0x341124[_0x558798(0x274)]};case _[_0x558798(0x50c)]['NEW_CHANGESETS']:return{..._0x341124,'data':{..._0x24d8a7,'data':(_0x5a4088=_0x24d8a7['newCsEvent'])==null?void 0x0:_0x5a4088['cs']},'cmd':_0x341124[_0x558798(0x274)]};case _[_0x558798(0x50c)][_0x558798(0x1e1)]:return{..._0x341124,'data':{..._0x24d8a7,'data':(_0x5aae29=_0x24d8a7[_0x558798(0x4d3)])==null?void 0x0:_0x5aae29['cs']},'cmd':_0x341124[_0x558798(0x274)]};case _[_0x558798(0x50c)][_0x558798(0x357)]:return{..._0x341124,'data':{..._0x24d8a7,'data':(_0x3b6565=_0x24d8a7['csShouldRetryEvent'])==null?void 0x0:_0x3b6565['cs']},'cmd':_0x341124[_0x558798(0x274)]};case _[_0x558798(0x50c)][_0x558798(0x368)]:return{..._0x341124,'data':{..._0x24d8a7,'data':_0x24d8a7['updateCursorEvent']},'cmd':_0x341124[_0x558798(0x274)]};case _[_0x558798(0x50c)][_0x558798(0x433)]:return{..._0x341124,'data':{..._0x24d8a7,'data':_0x24d8a7[_0x558798(0x39b)]},'cmd':_0x341124[_0x558798(0x274)]};case _['CollaborationEvent'][_0x558798(0x160)]:return{..._0x341124,'data':{..._0x24d8a7,'data':_0x24d8a7[_0x558798(0x341)]},'cmd':_0x341124[_0x558798(0x274)]};case _[_0x558798(0x50c)][_0x558798(0x3eb)]:return{..._0x341124,'data':{..._0x24d8a7,'data':_0x24d8a7[_0x558798(0x52a)]},'cmd':_0x341124['cmd']};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x341124,'data':{..._0x24d8a7,'data':_0x24d8a7[_0x558798(0x2a8)]},'cmd':_0x341124[_0x558798(0x274)]};case _['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x341124,'data':{..._0x24d8a7,'data':_0x24d8a7[_0x558798(0x52a)]},'cmd':_0x341124[_0x558798(0x274)]};case _[_0x558798(0x50c)][_0x558798(0x394)]:return{..._0x341124,'data':_0x24d8a7,'cmd':_0x341124[_0x558798(0x274)]};case _[_0x558798(0x50c)][_0x558798(0x480)]:return{..._0x341124,'data':{..._0x24d8a7,'data':_0x24d8a7[_0x558798(0x48a)]},'cmd':_0x341124[_0x558798(0x274)]};case _['CollaborationEvent'][_0x558798(0x404)]:return{..._0x341124,'data':{..._0x24d8a7,'data':_0x24d8a7['updatePermissionObjEvent']},'cmd':_0x341124['cmd']};case _[_0x558798(0x50c)][_0x558798(0x2cb)]:return{..._0x341124,'data':{..._0x24d8a7,'data':_0x24d8a7[_0x558798(0x226)]},'cmd':_0x341124[_0x558798(0x274)]};default:return _0x341124;}}default:return _0x341124;}}function Ot(_0x19e134){const _0x1334ec=_0x5ea8e9;switch(_0x19e134[_0x1334ec(0x274)]){case b[_0x1334ec(0x350)]:case b[_0x1334ec(0x13e)]:return JSON[_0x1334ec(0x514)]({'cmd':_0x19e134[_0x1334ec(0x274)],'routeKey':_0x19e134[_0x1334ec(0x539)]});case b[_0x1334ec(0x4aa)]:{let _0x4354c1;switch(_0x19e134[_0x1334ec(0x527)]['eventID']){case _[_0x1334ec(0x50c)][_0x1334ec(0x368)]:{_0x4354c1={'eventID':_[_0x1334ec(0x50c)][_0x1334ec(0x368)],'updateCursorEvent':_0x19e134['data'][_0x1334ec(0x527)]};break;}case _[_0x1334ec(0x50c)]['USERS_LEAVE']:{_0x4354c1={'eventID':_[_0x1334ec(0x50c)][_0x1334ec(0x160)],'leaveEvent':_0x19e134[_0x1334ec(0x527)][_0x1334ec(0x527)]};break;}case _[_0x1334ec(0x50c)]['USERS_ENTER']:{_0x4354c1={'eventID':_[_0x1334ec(0x50c)][_0x1334ec(0x433)],'joinEvent':_0x19e134['data'][_0x1334ec(0x527)]};break;}case _[_0x1334ec(0x50c)][_0x1334ec(0x3eb)]:{_0x4354c1={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x19e134['data'][_0x1334ec(0x527)]};break;}case _[_0x1334ec(0x50c)][_0x1334ec(0x23d)]:{_0x4354c1={'eventID':_[_0x1334ec(0x50c)][_0x1334ec(0x23d)],'liveShareOperation':_0x19e134[_0x1334ec(0x527)]['data']};break;}case _[_0x1334ec(0x50c)]['LIVESHARE_TERMINATE']:{_0x4354c1={'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x19e134[_0x1334ec(0x527)][_0x1334ec(0x527)]};break;}case _[_0x1334ec(0x50c)][_0x1334ec(0x215)]:{_0x4354c1={'eventID':_['CollaborationEvent'][_0x1334ec(0x215)],'liveShareRequestHost':_0x19e134['data'][_0x1334ec(0x527)]};break;}case _[_0x1334ec(0x50c)][_0x1334ec(0x218)]:{_0x4354c1={'eventID':_[_0x1334ec(0x50c)][_0x1334ec(0x218)]};break;}default:_0x4354c1={'eventID':_0x19e134['data'][_0x1334ec(0x3f1)]};}return JSON[_0x1334ec(0x514)]({'cmd':_0x19e134[_0x1334ec(0x274)],'routeKey':_0x19e134[_0x1334ec(0x539)],'collaMsg':_0x4354c1});}case b[_0x1334ec(0x318)]:return JSON[_0x1334ec(0x514)]({'cmd':_0x19e134[_0x1334ec(0x274)],'routeKey':_0x19e134[_0x1334ec(0x539)],'joinReq':_0x19e134[_0x1334ec(0x527)]});case b[_0x1334ec(0x3cb)]:return JSON[_0x1334ec(0x514)]({'cmd':_0x19e134[_0x1334ec(0x274)],'routeKey':_0x19e134[_0x1334ec(0x539)],'leaveReq':_0x19e134[_0x1334ec(0x527)]});default:throw new Error(_0x1334ec(0x508));}}var cs=Object[_0x5ea8e9(0x16c)],ls=Object[_0x5ea8e9(0x1df)],hs=(_0x4bbf4e,_0x1fc21c,_0xaeec9a,_0x445112)=>{const _0x518bd4=_0x5ea8e9;for(var _0x16d19c=_0x445112>0x1?void 0x0:_0x445112?ls(_0x1fc21c,_0xaeec9a):_0x1fc21c,_0x2a18bb=_0x4bbf4e[_0x518bd4(0x23b)]-0x1,_0x33dce1;_0x2a18bb>=0x0;_0x2a18bb--)(_0x33dce1=_0x4bbf4e[_0x2a18bb])&&(_0x16d19c=(_0x445112?_0x33dce1(_0x1fc21c,_0xaeec9a,_0x16d19c):_0x33dce1(_0x16d19c))||_0x16d19c);return _0x445112&&_0x16d19c&&cs(_0x1fc21c,_0xaeec9a,_0x16d19c),_0x16d19c;},ae=(_0x70e816,_0x20d948)=>(_0x1164c8,_0x1c9a43)=>_0x20d948(_0x1164c8,_0x1c9a43,_0x70e816);const Ke=a[_0x5ea8e9(0x311)]('univer-pro.collaboration-client-socket-service');function _s(_0x27f7e0,_0x248ea2,_0x49623b){const _0x5154d6=_0x5ea8e9;return _0x27f7e0+'/'+_0x248ea2+_0x5154d6(0x3cc)+_0x49623b+'/new_changes';}exports['CollaborationSocketService']=class extends a[_0x5ea8e9(0x213)]{constructor(_0x344c26,_0x1d097d,_0x3d97bf,_0x3b2149,_0x140074){const _0x3b4fe5=_0x5ea8e9;super(),this[_0x3b4fe5(0x209)]=_0x344c26,this[_0x3b4fe5(0x456)]=_0x1d097d,this[_0x3b4fe5(0x18c)]=_0x3d97bf,this[_0x3b4fe5(0x1d5)]=_0x3b2149,this[_0x3b4fe5(0x208)]=_0x140074;}[_0x5ea8e9(0x38f)](_0x4cd14c){const _0x5a3a6c=_0x5ea8e9,_0x2767b8=this['_ws'][_0x5a3a6c(0x38f)](_0x4cd14c);if(!_0x2767b8)throw new Error(_0x5a3a6c(0x524));const _0x5a8872=new a[(_0x5a3a6c(0x51c))](),_0x3e43ed=new v[(_0x5a3a6c(0x16f))]();_0x5a8872['add'](_0x2767b8['close$'][_0x5a3a6c(0x21d)](_0x3f882b=>_0x3e43ed[_0x5a3a6c(0x348)](_0x3f882b))),_0x5a8872[_0x5a3a6c(0x42a)](a[_0x5a3a6c(0x36a)](()=>_0x3e43ed[_0x5a3a6c(0x27d)]()));const _0x4bde6f=new v[(_0x5a3a6c(0x16f))]();_0x5a8872[_0x5a3a6c(0x42a)](_0x2767b8[_0x5a3a6c(0x525)][_0x5a3a6c(0x21d)](_0x22449e=>_0x4bde6f['next'](_0x22449e))),_0x5a8872[_0x5a3a6c(0x42a)](a[_0x5a3a6c(0x36a)](()=>_0x4bde6f[_0x5a3a6c(0x27d)]()));const _0x125393=new v[(_0x5a3a6c(0x16f))]();_0x5a8872['add'](_0x2767b8['message$'][_0x5a3a6c(0x21d)](_0x3df720=>{const _0x4f4baf=_0x5a3a6c,_0x426604=Rt(_0x3df720);_0x125393[_0x4f4baf(0x348)](_0x426604);})),_0x5a8872[_0x5a3a6c(0x42a)](a['toDisposable'](()=>_0x125393['complete']()));let _0x42b10b;const _0x36c29a=()=>{const _0x320735=_0x5a3a6c;_0x4bde6f['next'](new Event(_0x320735(0x53a))),_0x3e43ed[_0x320735(0x348)](new CloseEvent('connection\x20error')),_0x42b10b[_0x320735(0x416)]();};return _0x42b10b={'memberID':'','close$':_0x3e43ed[_0x5a3a6c(0x19d)](),'error$':_0x4bde6f[_0x5a3a6c(0x19d)](),'open$':_0x2767b8[_0x5a3a6c(0x337)],'message$':_0x125393[_0x5a3a6c(0x19d)](),'send':_0x1e7bdb=>{const _0x23dd5d=_0x5a3a6c;if(_0x1e7bdb['cmd']===b[_0x23dd5d(0x4aa)]){if(_0x1e7bdb['data']['eventID']===_[_0x23dd5d(0x50c)][_0x23dd5d(0x38a)]){this['_submitChangeset'](_0x42b10b,_0x1e7bdb['data'])['catch'](_0x12a8cc=>{const _0x1c4754=_0x23dd5d;this[_0x1c4754(0x1d5)][_0x1c4754(0x272)](_0x12a8cc),_0x36c29a();});return;}if(_0x1e7bdb[_0x23dd5d(0x527)][_0x23dd5d(0x3f1)]===_[_0x23dd5d(0x50c)][_0x23dd5d(0x365)]){const _0xf160ba=_0x1e7bdb['data'];this[_0x23dd5d(0x4ef)](_0xf160ba)[_0x23dd5d(0x3f6)](_0x499ea4=>{const _0x4bd766=_0x23dd5d;_0x125393[_0x4bd766(0x348)]({'cmd':b[_0x4bd766(0x141)],'code':Ye['OK'],'routeKey':_0xf160ba['data'][_0x4bd766(0x46c)],'routeType':'','data':{'eventID':_[_0x4bd766(0x50c)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x499ea4}}});})[_0x23dd5d(0x181)](_0x2167f7=>{const _0x4da493=_0x23dd5d;this[_0x4da493(0x1d5)][_0x4da493(0x272)](_0x2167f7),_0x36c29a();});return;}}_0x2767b8[_0x23dd5d(0x466)](Ot(_0x1e7bdb));},'close':()=>{const _0x476eb9=_0x5a3a6c;_0x2767b8[_0x476eb9(0x416)](),_0x5a8872[_0x476eb9(0x1f5)]();}},_0x42b10b;}async['_submitChangeset'](_0x3cf5a6,_0x52df31){const _0x1af46c=_0x5ea8e9;var _0x3b6a95,_0x1b8216;const {unitType:_0x2bdeb5,unitID:_0x127cbb,changeset:_0x55aaaa}=_0x52df31[_0x1af46c(0x527)],_0x4cb814={'unitID':_0x127cbb,'memberID':_0x3cf5a6[_0x1af46c(0x22d)],'type':_0x2bdeb5,'changeset':_[_0x1af46c(0x148)](_0x55aaaa)},_0x35507f=this[_0x1af46c(0x18c)][_0x1af46c(0x41c)](Ct),_0x4ca008=this['_configService'][_0x1af46c(0x41c)](L),_0x9b1493=_s((_0x1b8216=(_0x3b6a95=_0x4ca008==null?void 0x0:_0x4ca008[_0x1af46c(0x1a9)])!=null?_0x3b6a95:_0x35507f)!=null?_0x1b8216:rs,_0x2bdeb5,_0x127cbb);try{await this[_0x1af46c(0x209)][_0x1af46c(0x20e)](_0x9b1493,{'body':_0x4cb814});}catch(_0x520e34){throw this[_0x1af46c(0x1d5)][_0x1af46c(0x272)](_0x1af46c(0x217),_0x1af46c(0x2d0)),_0x520e34;}}async[_0x5ea8e9(0x4ef)](_0x38d8a4){const _0x281f2c=_0x5ea8e9,{unitID:_0x3ae7aa,from:_0x1586af,to:_0x51ed8f,unitType:_0x3e82d2}=_0x38d8a4[_0x281f2c(0x527)];return(await this[_0x281f2c(0x208)][_0x281f2c(0x45d)]({'metadata':void 0x0},{'unitID':_0x3ae7aa,'type':_0x3e82d2,'from':_0x1586af,'to':_0x51ed8f}))[_0x281f2c(0x28f)];}},exports[_0x5ea8e9(0x3d2)]=hs([ae(0x0,a[_0x5ea8e9(0x3c8)](w[_0x5ea8e9(0x352)])),ae(0x1,a['Inject'](w['WebSocketService'])),ae(0x2,a[_0x5ea8e9(0x464)]),ae(0x3,a[_0x5ea8e9(0x486)]),ae(0x4,_[_0x5ea8e9(0x2cc)])],exports[_0x5ea8e9(0x3d2)]);const us=_0x5ea8e9(0x4f6);function ds(_0x94aca5){const _0x21ce45=_0x5ea8e9;return JSON[_0x21ce45(0x514)](_0x94aca5)[_0x21ce45(0x23b)];}class qe{constructor(){const _0x4cdb4a=_0x5ea8e9;u(this,_0x4cdb4a(0x474),new v['Subject']()),u(this,'commentUpdate$',this[_0x4cdb4a(0x474)][_0x4cdb4a(0x19d)]());}[_0x5ea8e9(0x195)](_0x50e77a){const _0x256884=_0x5ea8e9;this['_commentUpdate$'][_0x256884(0x348)](_0x50e77a);}}var Ss=Object['defineProperty'],vs=Object[_0x5ea8e9(0x1df)],ms=(_0x5446b4,_0x195b63,_0x40da30,_0x3273ef)=>{const _0x3784f0=_0x5ea8e9;for(var _0x3409bb=_0x3273ef>0x1?void 0x0:_0x3273ef?vs(_0x195b63,_0x40da30):_0x195b63,_0x4dadae=_0x5446b4[_0x3784f0(0x23b)]-0x1,_0x2a1d0e;_0x4dadae>=0x0;_0x4dadae--)(_0x2a1d0e=_0x5446b4[_0x4dadae])&&(_0x3409bb=(_0x3273ef?_0x2a1d0e(_0x195b63,_0x40da30,_0x3409bb):_0x2a1d0e(_0x3409bb))||_0x3409bb);return _0x3273ef&&_0x3409bb&&Ss(_0x195b63,_0x40da30,_0x3409bb),_0x3409bb;},tt=(_0x476fc0,_0x1703a5)=>(_0x22f556,_0xe75a94)=>_0x1703a5(_0x22f556,_0xe75a94,_0x476fc0);let X=class extends a[_0x5ea8e9(0x213)]{constructor(_0x8b0120,_0x5f4c5d){const _0x31e080=_0x5ea8e9;super(),u(this,_0x31e080(0x283),new Map()),(this['_univerInstanceService']=_0x8b0120,this['_userManagerService']=_0x5f4c5d,this[_0x31e080(0x568)](a['toDisposable'](v[_0x31e080(0x24b)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x31e080(0x3a9)][_0x31e080(0x2ae)])['pipe'](E[_0x31e080(0x558)](_0x5b3c24=>_0x5b3c24['getUnitId']())),this['_univerInstanceService'][_0x31e080(0x268)](a['UniverInstanceType'][_0x31e080(0x2de)])['pipe'](E[_0x31e080(0x558)](_0x13a0f1=>_0x13a0f1[_0x31e080(0x55a)]())),this['_univerInstanceService'][_0x31e080(0x268)](a['UniverInstanceType'][_0x31e080(0x210)])['pipe'](E[_0x31e080(0x558)](_0x4ea1d3=>_0x4ea1d3[_0x31e080(0x55a)]())))[_0x31e080(0x21d)](_0x4e9db4=>this[_0x31e080(0x4e2)](_0x4e9db4)))));}['setCurrentUser'](_0x564f2c){const _0x5ba4f8=_0x5ea8e9;this[_0x5ba4f8(0x346)][_0x5ba4f8(0x55f)](_0x564f2c);}['getCurrentUser'](){const _0x488838=_0x5ea8e9;return this[_0x488838(0x346)][_0x488838(0x13f)]();}[_0x5ea8e9(0x371)](_0x36daf4,_0x3b6e62){const _0x565e63=_0x5ea8e9;let _0x2cf956=this[_0x565e63(0x283)][_0x565e63(0x1eb)](_0x36daf4);_0x2cf956||(_0x2cf956=new gs(),this[_0x565e63(0x283)][_0x565e63(0x1aa)](_0x36daf4,_0x2cf956)),_0x2cf956[_0x565e63(0x371)](_0x3b6e62);}['removeMember'](_0x4c8a3,_0x49d9d7){const _0x2651fa=_0x5ea8e9,_0x58c58f=this['_roomMembers'][_0x2651fa(0x1eb)](_0x4c8a3);_0x58c58f&&_0x58c58f[_0x2651fa(0x4fa)](_0x49d9d7);}[_0x5ea8e9(0x255)](_0x26d6e8){const _0x237a72=_0x5ea8e9;return this[_0x237a72(0x283)][_0x237a72(0x1eb)](_0x26d6e8);}[_0x5ea8e9(0x1c3)](_0x46a175,_0x52fe32){const _0x52440b=_0x5ea8e9,_0x793ca1=this[_0x52440b(0x283)]['get'](_0x46a175);if(_0x793ca1)return _0x793ca1[_0x52440b(0x1c3)](_0x52fe32);}['_removeRoom'](_0x58683c){const _0x524e0c=_0x5ea8e9,_0xecead=this[_0x524e0c(0x283)][_0x524e0c(0x1eb)](_0x58683c);_0xecead&&(_0xecead['dispose'](),this[_0x524e0c(0x283)][_0x524e0c(0x307)](_0x58683c));}[_0x5ea8e9(0x1f5)](){const _0x4039db=_0x5ea8e9;this[_0x4039db(0x283)]['forEach'](_0x495b78=>_0x495b78[_0x4039db(0x1f5)]()),this[_0x4039db(0x283)][_0x4039db(0x4a5)]();}};X=ms([tt(0x0,a[_0x5ea8e9(0x36b)]),tt(0x1,a['Inject'](a[_0x5ea8e9(0x3bd)]))],X);class gs extends a[_0x5ea8e9(0x213)]{constructor(){const _0x4dbc41=_0x5ea8e9;super(...arguments),u(this,_0x4dbc41(0x4eb),new Map());}['dispose'](){const _0x4601fe=_0x5ea8e9;this['_members'][_0x4601fe(0x4a5)]();}[_0x5ea8e9(0x371)](_0x390da3){const _0x4f55f1=_0x5ea8e9;this[_0x4f55f1(0x4eb)]['set'](_0x390da3[_0x4f55f1(0x22d)],_0x390da3);}[_0x5ea8e9(0x4fa)](_0x3e06d2){const _0x393e4f=_0x5ea8e9;this[_0x393e4f(0x4eb)][_0x393e4f(0x307)](_0x3e06d2);}[_0x5ea8e9(0x1c3)](_0x2204fc){const _0x3932c4=_0x5ea8e9;return this['_members'][_0x3932c4(0x1eb)](_0x2204fc);}}var fs=Object['defineProperty'],Is=Object[_0x5ea8e9(0x1df)],ps=(_0x23c3bc,_0x5acb59,_0x5c4422,_0x1dc086)=>{const _0x38283e=_0x5ea8e9;for(var _0x5773a6=_0x1dc086>0x1?void 0x0:_0x1dc086?Is(_0x5acb59,_0x5c4422):_0x5acb59,_0x1c1b5a=_0x23c3bc[_0x38283e(0x23b)]-0x1,_0x5e4606;_0x1c1b5a>=0x0;_0x1c1b5a--)(_0x5e4606=_0x23c3bc[_0x1c1b5a])&&(_0x5773a6=(_0x1dc086?_0x5e4606(_0x5acb59,_0x5c4422,_0x5773a6):_0x5e4606(_0x5773a6))||_0x5773a6);return _0x1dc086&&_0x5773a6&&fs(_0x5acb59,_0x5c4422,_0x5773a6),_0x5773a6;},V=(_0x165540,_0xafff01)=>(_0x5059a5,_0x260834)=>_0xafff01(_0x5059a5,_0x260834,_0x165540),H=(_0xdc2929=>(_0xdc2929[_0xdc2929[_0x5ea8e9(0x4a3)]=0x0]=_0x5ea8e9(0x4a3),_0xdc2929[_0xdc2929[_0x5ea8e9(0x345)]=0x1]=_0x5ea8e9(0x345),_0xdc2929[_0xdc2929[_0x5ea8e9(0x2c3)]=0x2]=_0x5ea8e9(0x2c3),_0xdc2929[_0xdc2929[_0x5ea8e9(0x41a)]=0x3]='ONLINE',_0xdc2929))(H||{});exports['CollaborationSession']=class extends a[_0x5ea8e9(0x32e)]{constructor(_0x352eae,_0x2b7fe4,_0x12b3e0,_0x4a60e7,_0x33cb0b,_0x5a56da,_0x4b7bd7,_0x41ce9c,_0x48a03a,_0x56f1de){const _0x4e54b6=_0x5ea8e9;super(),u(this,_0x4e54b6(0x188),new v['BehaviorSubject'](0x0)),u(this,_0x4e54b6(0x482),this[_0x4e54b6(0x188)][_0x4e54b6(0x19d)]()),u(this,'_event$',new v['Subject']()),u(this,_0x4e54b6(0x145),this[_0x4e54b6(0x430)][_0x4e54b6(0x19d)]()),u(this,_0x4e54b6(0x3b7)),u(this,_0x4e54b6(0x4f9)),u(this,_0x4e54b6(0x325)),u(this,'_shouldReportTelemetry',!0x1),u(this,_0x4e54b6(0x1a3),null),(this[_0x4e54b6(0x3b2)]=_0x352eae,this['_logService']=_0x12b3e0,this[_0x4e54b6(0x387)]=_0x4a60e7,this[_0x4e54b6(0x446)]=_0x33cb0b,this[_0x4e54b6(0x18c)]=_0x5a56da,this[_0x4e54b6(0x29f)]=_0x4b7bd7,this[_0x4e54b6(0x1fa)]=_0x41ce9c,this[_0x4e54b6(0x175)]=_0x48a03a,this['_telemetryService']=_0x56f1de,this['_shouldReportTelemetry']=!!this[_0x4e54b6(0x3b6)],_0x2b7fe4[_0x4e54b6(0x286)](v['takeUntil'](this[_0x4e54b6(0x1a0)]))[_0x4e54b6(0x21d)](_0x31ea3f=>{const _0x4dfc5a=_0x4e54b6;var _0x373a1e;typeof _0x31ea3f>'u'||(this[_0x4dfc5a(0x3b7)]=_0x31ea3f,_0x31ea3f?(this['_joinRoom'](_0x31ea3f),this[_0x4dfc5a(0x4f9)]=_0x31ea3f['message$'][_0x4dfc5a(0x21d)](_0x582e67=>{const _0x1047d6=_0x4dfc5a;_0x582e67[_0x1047d6(0x539)]===this['_unitID']&&this['_onCombEvent'](_0x582e67);})):(this[_0x4dfc5a(0x560)](),this[_0x4dfc5a(0x188)][_0x4dfc5a(0x348)](0x2),(_0x373a1e=this[_0x4dfc5a(0x4f9)])==null||_0x373a1e[_0x4dfc5a(0x4d0)](),this[_0x4dfc5a(0x4f9)]=null));}),this[_0x4e54b6(0x568)](this[_0x4e54b6(0x387)][_0x4e54b6(0x4bb)](()=>{const _0x4301b2=_0x4e54b6;var _0x3ae66f;(_0x3ae66f=this['_socket'])==null||_0x3ae66f[_0x4301b2(0x466)]({'cmd':b[_0x4301b2(0x3cb)],'data':{'roomID':this[_0x4301b2(0x3b2)]}});})));}get[_0x5ea8e9(0x438)](){return this['_sessionStatus$']['getValue']();}[_0x5ea8e9(0x1d4)](){const _0x429441=_0x5ea8e9;var _0x2e1d0e,_0x230730;return(_0x230730=(_0x2e1d0e=this[_0x429441(0x3b7)])==null?void 0x0:_0x2e1d0e[_0x429441(0x22d)])!=null?_0x230730:null;}[_0x5ea8e9(0x1f5)](){const _0x59228b=_0x5ea8e9;super[_0x59228b(0x1f5)](),this[_0x59228b(0x1a0)][_0x59228b(0x348)](),this['dispose$']['complete']();}[_0x5ea8e9(0x416)](){const _0x2aef5c=_0x5ea8e9;var _0x1639c4,_0x398980;this['_throwTelemetryCollaborationNewChangeset'](),(_0x1639c4=this[_0x2aef5c(0x3b7)])==null||_0x1639c4[_0x2aef5c(0x466)]({'cmd':b[_0x2aef5c(0x3cb)],'data':{'roomID':this[_0x2aef5c(0x3b2)]}}),(_0x398980=this[_0x2aef5c(0x3b7)])==null||_0x398980[_0x2aef5c(0x416)](),this['_event$'][_0x2aef5c(0x27d)](),this[_0x2aef5c(0x188)][_0x2aef5c(0x27d)](),this[_0x2aef5c(0x1f5)]();}[_0x5ea8e9(0x3dc)](_0x277fd3){const _0x3be1cf=_0x5ea8e9;_0x277fd3[_0x3be1cf(0x274)]===b[_0x3be1cf(0x318)]?this[_0x3be1cf(0x189)](_0x277fd3):_0x277fd3[_0x3be1cf(0x274)]===b[_0x3be1cf(0x141)]&&this[_0x3be1cf(0x1cf)](_0x277fd3);}[_0x5ea8e9(0x2da)](_0x3326f5){const _0x44fe35=_0x5ea8e9;this[_0x44fe35(0x188)][_0x44fe35(0x348)](0x1),_0x3326f5[_0x44fe35(0x466)]({'cmd':b[_0x44fe35(0x318)],'routeKey':this[_0x44fe35(0x3b2)],'routeType':'','data':{'rooms':[{'roomID':this[_0x44fe35(0x3b2)]}]}});}['_onJoinRoomEvent'](_0x2534e8){const _0x472f72=_0x5ea8e9;var _0x272769;if(_0x2534e8[_0x472f72(0x479)]===Ye[_0x472f72(0x470)]){this['_messageService']['show']({'type':q[_0x472f72(0x3e5)]['Warning'],'content':this[_0x472f72(0x29f)]['t']('session.room-full')}),this[_0x472f72(0x188)][_0x472f72(0x348)](0x2);return;}this[_0x472f72(0x188)]['next'](0x3);const _0x5d5920=(_0x272769=_0x2534e8[_0x472f72(0x527)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x272769[_0x472f72(0x20d)];_0x5d5920&&_0x5d5920[_0x472f72(0x4f0)](_0x4a6200=>this['_memberService'][_0x472f72(0x371)](this['_unitID'],_0x4a6200));}['_onRecvEvent'](_0x4d478e){const _0x5386fb=_0x5ea8e9;try{const _0x3f4d91=_0x4d478e['data'];switch(_0x3f4d91[_0x5386fb(0x3f1)]){case _[_0x5386fb(0x50c)]['USERS_ENTER']:this[_0x5386fb(0x540)](_0x3f4d91),this[_0x5386fb(0x430)][_0x5386fb(0x348)](_0x3f4d91);break;case _[_0x5386fb(0x50c)][_0x5386fb(0x160)]:this[_0x5386fb(0x167)](_0x3f4d91),this['_event$'][_0x5386fb(0x348)](_0x3f4d91);break;case _['CollaborationEvent'][_0x5386fb(0x26c)]:case _[_0x5386fb(0x50c)][_0x5386fb(0x357)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x5386fb(0x3d3)](),this[_0x5386fb(0x430)][_0x5386fb(0x348)](_0x3f4d91);break;case _[_0x5386fb(0x50c)][_0x5386fb(0x394)]:this['_logService'][_0x5386fb(0x272)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x5386fb(0x514)](_0x3f4d91)),this[_0x5386fb(0x430)][_0x5386fb(0x348)](_0x3f4d91);break;case _['CollaborationEvent'][_0x5386fb(0x480)]:this[_0x5386fb(0x175)][_0x5386fb(0x195)](_0x3f4d91['data']),this['_event$']['next'](_0x3f4d91);break;default:this['_event$']['next'](_0x3f4d91);}}catch(_0x3b5409){this[_0x5386fb(0x1d5)][_0x5386fb(0x272)](_0x3b5409,_0x4d478e);}}[_0x5ea8e9(0x540)](_0x2f7f31){const _0x1baf35=_0x5ea8e9;this[_0x1baf35(0x1fa)][_0x1baf35(0x371)](this[_0x1baf35(0x3b2)],_0x2f7f31[_0x1baf35(0x527)]);}['_onUserLeave'](_0x222e85){const _0x468558=_0x5ea8e9;this[_0x468558(0x1fa)][_0x468558(0x4fa)](this['_unitID'],_0x222e85[_0x468558(0x527)][_0x468558(0x22d)]);}async[_0x5ea8e9(0x466)](_0x301114,_0x29e4a7){const _0x6b488f=_0x5ea8e9;if(this[_0x6b488f(0x438)]!==0x3||!this['_socket'])throw new Error(_0x6b488f(0x32b));try{_0x301114[_0x6b488f(0x3f1)]===_[_0x6b488f(0x50c)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x6b488f(0x206)](_0x301114)),this[_0x6b488f(0x3b7)][_0x6b488f(0x466)]({'cmd':b['INGEST'],'routeKey':_0x29e4a7,'routeType':'','data':_0x301114});}catch(_0x99523b){this[_0x6b488f(0x1d5)][_0x6b488f(0x272)](_0x99523b);}}[_0x5ea8e9(0x230)](){const _0x11ab76=_0x5ea8e9;var _0x187256;this[_0x11ab76(0x325)]=window['setTimeout'](()=>{const _0x5e635e=_0x11ab76;this[_0x5e635e(0x325)]=null,this[_0x5e635e(0x446)][_0x5e635e(0x2e0)]({'type':q[_0x5e635e(0x3e5)][_0x5e635e(0x173)],'content':this['_localeService']['t'](_0x5e635e(0x310))});},(_0x187256=this[_0x11ab76(0x18c)][_0x11ab76(0x41c)](Ge))!=null?_0x187256:ft);}['_clearCollaborationTimeoutTimer'](){const _0x7e6857=_0x5ea8e9;this[_0x7e6857(0x325)]&&(clearTimeout(this[_0x7e6857(0x325)]),this[_0x7e6857(0x325)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x3d503a){const _0x446bf5=_0x5ea8e9;if(!this['_shouldReportTelemetry'])return;const {data:_0x5e52a9}=_0x3d503a,{unitID:_0x3569de,changeset:_0x33a1f5}=_0x5e52a9,{mutations:_0x458bb8,type:_0x3a2ed1}=_0x33a1f5;this[_0x446bf5(0x1a3)]={'unitId':_0x3569de,'type':_0x3a2ed1,'startTime':performance[_0x446bf5(0x35f)](),'stopTime':0x0,'duration':0x0,'size':ds(_0x458bb8)};}[_0x5ea8e9(0x48f)](){const _0x521ca0=_0x5ea8e9;if(this['_shouldReportTelemetry']){if(!this[_0x521ca0(0x1a3)]){this[_0x521ca0(0x1d5)][_0x521ca0(0x272)](_0x521ca0(0x217),_0x521ca0(0x211));return;}this[_0x521ca0(0x1a3)][_0x521ca0(0x380)]=performance[_0x521ca0(0x35f)](),this[_0x521ca0(0x1a3)][_0x521ca0(0x2d8)]=this[_0x521ca0(0x1a3)][_0x521ca0(0x380)]-this[_0x521ca0(0x1a3)][_0x521ca0(0x228)],this[_0x521ca0(0x3b6)][_0x521ca0(0x4c4)](us,this[_0x521ca0(0x1a3)]),this[_0x521ca0(0x1a3)]=null;}}[_0x5ea8e9(0x560)](){const _0x3b3682=_0x5ea8e9;this[_0x3b3682(0x1a3)]=null;}},exports[_0x5ea8e9(0x46a)]=ps([V(0x2,a[_0x5ea8e9(0x486)]),V(0x3,A['IBeforeCloseService']),V(0x4,A[_0x5ea8e9(0x4a9)]),V(0x5,a[_0x5ea8e9(0x464)]),V(0x6,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x202)])),V(0x7,a[_0x5ea8e9(0x3c8)](X)),V(0x8,a[_0x5ea8e9(0x3c8)](qe)),V(0x9,a[_0x5ea8e9(0x2b0)](qt[_0x5ea8e9(0x14f)]))],exports[_0x5ea8e9(0x46a)]);function _0x275d(){const _0x348026=['UserManagerService','PENDING','_undoRedoService','sid','_instanceService','_cursorInfo$','href','max','_replaceFileID','reqId','_hover','Inject','@univerjs/network','getImageSourceCache','LEAVE','/unit/','_httpService','_tryEnsureSocket','_transformService','ERROR_EXCEED_SIZE','ImageUploadStatusType','CollaborationSocketService','_clearCollaborationTimeoutTimer','_getSnapshotAPIPrefix','symbol','registerBeforeClose','/universer-api/comb','_listenToOfflineEvent','currentColor','LICENSE_IMPORT_SIZE_EXCEEDED','_initEventListeners','_onCombEvent','tag','url','CommandType','push','575158RYyatQ','getCurrentSelections','_state$','fetchThroughInterceptors','MessageType','onReady','rxjs','IPermissionService','onlineStatusTitle','unitId\x20is\x20not\x20found','LIVESHARE_NEW_HOST','InsertSheetMutation','subunit','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_onConnectionOpen','[PendingState]:\x20unhandled\x20univer\x20type:\x20','eventID','UnitSnapshot','snapshotServerUrl','isTransformMutationsWithChangesetFailure','_colorAssignService','then','CompressMutationService','_registerRenderDependencies','connectInjector','getCoordByCell','react','IContextService','UNIVER_PROJECT','_sendHeartbeatTimer','transformSelections','defs','_getCtorByUniverType','getRandomValues','Tools','UPDATE_PERMISSION_OBJ','_listenToOnlineEvent','Undefined','_executeRemoteChangeset','roomMembers','&assign=','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','UNAUTHENTICATED','getVpScrollXYInfoByPosToVp','FETCH_MISS','message$','transformUndoRedo','signUrlServerUrl','_substituteRedoStack','forwardRef','_snapshotService','awaiting_with_pending','TRANSFORM_CHANGE_OBSERVABLE_TYPE','close','_change$','_getSignURL','enableAuthServer','ONLINE','_ensureSubject','getConfig','NodePositionConvertToRectRange','objectType','CONNECTOR_DATA_TOO_LARGE','not_collab','_labelPosition','_createInitialStateImpl','@univerjs/sheets-ui','updateOfflineData','getRangePointData','univer-offline','_roomMembers$','searchParams','SYNCED','add','PERMISSION_DENIED','compose','toStringTag','_resendTimer','_sender','_event$','image/jpg','_unitStatus','USERS_ENTER','_transformPreviousActiveRange','permission.title','slice','idSuffix','sessionStatus','textRanges','_waitForHeartbeatResponse','transformMutation','put','HEARTBEAT_INTERVAL','revision','collabStatus.syncing','[SyncedState]:\x20received\x20acknowledgement.','_cursor','_drawTextRange','every','_clearLocalCache','pending','_messageService','labelPosition','RefRangeService','SheetSkeletonManagerService','find','listCollaborators','_checkMissing','_initUnitPermissionChange','_session','subscribeEvent','unload','snapshot','action','DesktopCollaborationStatusDisplayController','getCellPositionByOffset','name','_ws','color','_getDownloadEndpointURL','onTransformIME','_toggleOffline','InsertRangeMoveRightCommandId','_waitCount','fetchMissingChangesets','_startCollaboration','isArray','infoRsp','1219224nKodkL','UNKNOWN_CODE','OffLineSingle','IConfigService','isTransformMutationFailure','send','getOwnPropertySymbols','image/gif','synced','CollaborationSession','onlineStatus','unitID','_acknowledgedAwaitingChangeset','_pendingMutations','loginUrlKey','FAIL','text','getSheetObject','from','_commentUpdate$','uni.network.url-service','BASE64','focused$','_revisionService','code','HEARTBEAT_TIMEOUT','\x0aCurrent:\x20','[SyncedState]:\x20received\x20rejection.','sendChangesetTimeout','getViewport','random','COMMENT_UPDATE','reject','sessionStatus$','hidden','onRemoteAck','NEW_CHANGESETS','ILogService','[CollaborationState]:\x20apply\x20error!','_handler','getOffsetConfig','commentUpdateEvent','handleIRemoveRow','_shapes','image/jpeg','IUndoRedoService','_stopTelemetryCollaborationNewChangeset','c1Prime','defIds','randomUUID','_initResize','getUnitStatus$','permissionRejEvent','authzUrl','_candidateSocket','0\x200\x2017\x2016','online','enableSingleActiveInstanceLock','getDeserializedSheetBlock','_getMergeRange','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','debounceTime','transformMutationsWithChangeset','NodePositionConvertToCursor','close$','LICENSE_MAX_UNITS_EXCEEDED','IDLE','INTERNAL_ERROR','clear','roomMembers$','[CollaborationSessionService]:\x20socket\x20error','SEND_CHANGESET_TIMEOUT','IMessageService','INGEST','/block/','@univerjs/ui','collaboration.closeRoom','engine','TEXT_RANGE_LAYER_INDEX','getTypeOfUnitAdded$','collab-rect-range-','visibilityState','HTTPRequest','[CollaborationSessionService]','visibilitychange','@univerjs/design','univer-online-status','history','_sheetSkeletonManagerService','@univerjs/engine-render','registerOnClose','_getScale','OnLineSingle','_handleHeartbeatEvent','SessionStatus','/universer-api/snapshot','_disableEditing','_entities','newValue','capture','ACTIVE_UNIT_EVENT_CHANNEL','onRemoteRetry','baseRev','_transformUndoredo','blue400','target','startColumn','values','getActiveSheet','_getCurrentRevision','lineTo','unsubscribe','RegularPolygon','getMergeData','csRejEvent','_queuedRemoteChangesets','_replayCachedMutations','fillText','docStateChange$','NOT_FOUND','_loadDoc','MoveRangeCommandId','min','InsertColCommandId','[OfflineState]:\x20received\x20acknowledgement.','_docTransformIMECacheService','HttpExport','activeSheet$','registerHTTPInterceptor','_removeRoom','OTHER_CLIENTS_EDITING','getSheetBySheetId','AuthzIoHttpService','IImageIoService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_socketService','image/bmp','save','_members','COMPRESS_MUTATION_SEND','_localCacheService','status$','_fetchMissChangesets','forEach','disableLocalCache','UNDEFINED','updateCollaborator','_assignedColors','getSheetId','collaboration_new_changeset','resize','onRendered','_socketMessageSubscription','removeMember','_eventUnsubscribe','exhaustSavingTask','_onLocalMutation','setItem','EXCHANGE_SIGN_URL_SERVER_URL_KEY','saveImage','findNodePositionByCharIndex','UniverCollaborationClientPlugin','_docSkeletonManagerService','workbook','[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.','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','saveSheetBlock','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','ColorKit','collaborators','_transitionLocked','CollaborationEvent','[OfflineState]:\x20received\x20rejection.','downloadEndpointUrl','InsertRowCommandId','isTransformChangesetsSuccess','deleteCollaborator','getRenderById','concatMap','stringify','actions','awaitingChangeset','LICENSE_EXPORT_SIZE_EXCEEDED','_getSendChangesetTimeout','csAckEvent','ITransformService','_retryCount','DisposableCollection','_getAnchorBounding','_cursors','UniverIcon','_createSocket','number','selections','_onRemoteRejected','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','error$','_state','data','_entityInit$','arc','liveShareNewHost','roles','createInstance','_range','Workbook','black','_getUploadFileURL','toLowerCase','@univerjs/docs','_clearHeartbeatTimer','unit-cache-','skeleton','touchDependencies','socket$','_transformRemoteChangesetByIMECache','routeKey','connection\x20error','url(#off-line-single_clip0_910_343)','3001784HNFbPr','restore','FileId','parse','_onUserJoin','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','endRow','_registerDependencies','failed\x20to\x20apply\x20missed\x20changesets!','/universer-api/stream/file/upload','_anchor','textEncoder','conflict','removeParam','list','FromArray','transformByState','_id','CollaborationController','RevisionService','CollaborationSessionService','setParam','_initMergeInterceptor','setShapeProps','ThemeService','replaceTextRanges','_localStorageService','isActive','map','_send','getUnitId','indexOf','collaboration-client.config','fillRule','registerRenderModule','setCurrentUser','_throwTelemetryCollaborationNewChangeset','CollaborationEntity','_onFetchMissResult','_drawRectRange','uploadFileServerUrl','onTransformSelections','WebSocketService','_scheduleSaving','disposeWithMe','_heartbeatTimer','COMPRESS_MUTATION_APPLY','distinctUntilChanged','_renderManagerService','_disabled','onRemoteChangeset','Tooltip','_tryReconnect','[CollaborationUndoRedoService]','_onRemoteRetry','reconnect','1447677QSzUEB','switchMap','collabCursorState$','VIEW_MAIN','refreshPermission','_handleEvent','HELLO','getCurrentUser','UNRECOGNIZED','RECV','SheetPermissionInitController','registerRefRange','_refreshCollabCursors','event$','NO_OTHER_CLIENTS_EDITING','DocIMEInputManagerService','parseChangesetToProtocol','setTimeout','@univerjs-pro/license','Injector','_drawAnchor','onlineStatusIcon','PERMISSION_REJ','ITelemetryService','loadSheet','_initRequestHeader','_timeoutTimer','confirm','with','_updateLocalCache','_onRefRangeChange','_showConflictNotification','_retryConnectingTimer','getParam','collabStatus.notCollab','MergeInterceptorFactory','_scheduleClearOtherTimer','reverse','@univerjs/drawing','3394655pJGuOT','USERS_LEAVE','UUID','RichTextEditingMutation','collabWebSocketUrl','transformIMECache','hasOwnProperty','/role','_onUserLeave','isEditing','runRefRangeMutations','Plugin','_sessions','defineProperty','transformRemoteChangeset','makeDirty','Subject','{fileID}','/resources','_docSkeleton','Error','children','_commentService','SheetCollaborationEntity','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','setConfig','\x20-\x20','_name','?url=','_clearTimeoutTimer','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','assignAColorForMemberID','_clearUndo','string','catch','getLatestCsReqIdBySid','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getAncestorScale','sheetID','listRoles','setWaitCount','_sessionStatus$','_onJoinRoomEvent','ws://127.0.0.1:8000/universer-api/comb/connect','origin','_configService','SetWorksheetActivateCommand','startRow','_collaborationController','awaiting','_transformUndoRedoStack','width','putCollaborators','&to=','onCommentUpdate','_getUndoStack','CONFLICT','[CollaborationEntity]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_injector','originalMeta','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','asObservable','_singleActiveUnitService','_changesetSessionId','dispose$','isTransformMutationsWithChangesetSuccess','_collabSessionService','_telemetryInfo','allowed','MUTATION','requestParams','_socket$','use','collabSubmitChangesetUrl','set','_sendHeartbeat','rng','getUnhiddenWorksheets','_updateStatus','onlyLocal','EffectRefRangId','all','LICENSE_DISTRO_REJECTED','fetchMiss','function','cursorInfo$','onStateChange','object','_config','UniverCollaborationPlugin','bottom','_resendWithTimeout','updatePermissionPoint','clearTimeout','_univerInstanceService','APPLY_PERMISSION_DENIED','font','_isPermissionRej','assign','getMember','COLLAB_SUBMIT_CHANGESET_URL_KEY','onMissingChangesets','SetDocZoomRatioOperation','_permissionService','combineLatest','_anchorDot','[FetchMissState]','replace','YUUMI_URL_COL_OUT_OF_RANGE','UNKNOWN_CMD','_onConnectionFailed','_onRecvEvent','_refRangeService','_urlService','endColumn','serializeRangeWithSheet','getMemberID','_logService','SNAPSHOT_INVALID_SNAPSHOT','_transformStack','Module','_awaitingChangeset','useDependency','createCollaborator','SNAPSHOT_HAS_BEEN_REMOVED','headers','collaboration-client.offline-data-not-saved','getOwnPropertyDescriptor','icon','CHANGESET_REJ','_undoStacks','_compressMutationService','_collaborationPaused','#fff','unshift','_changesetReqId','useRef','onMouseMove','addObjects','get','_commandService','_getAPIPrefixPath','_cachedData','SUCCUSS','_createInitialState','handleInsertCol','onTransformRemoteChangesetByIMECache','_createHandler','className','dispose','JSONX','getCurrentRevOfUnit','APPLY_REVISION_CONFILICT','sheetId','_memberService','closePath','column','SnapshotServerOverHTTPService','fillStyle','_hideTimer','LocalCacheService','IUIPartsService','LocaleService','gold400','popstate','_collaborationSessionService','_startTelemetryCollaborationNewChangeset','filter','_snapshotServerService','_http','some','permission.content','onCommandExecuted','members','post','3MLVHAO','UNIVER_SLIDE','telemetry\x20info\x20is\x20not\x20initialized','PSEUDO_FETCH_MISSING_RESULT','Disposable','_type','LIVESHARE_REQUEST_HOST','_setupSubUnitSync','[CollaborationSession]','LIVESHARE_FETCH_OPERATIONS','setActiveRange','_updateURLWithCurrentState','_toggleOnline','unitId','subscribe','drawWith','SNAPSHOT_SERVER_URL_KEY','mutations','getAttachHeader','loadOfflineData','_getSheetObject','urlChange$','pluginName','shouldCloseConn','round','startTime','_unitOnClients','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','height','ICollaborationSocketService','memberID','isValidRectRange','3704904usIImZ','_scheduleCollaborationTimeoutTimer','_HTTPService','_scene','_hovered','univerjs-icon\x20univerjs-icon-','COLLAB_WEB_SOCKET_URL_KEY','DocCollaborationEntity','HEARTBEAT_TIMEOUT_KEY','mergeOverrideWithDependencies','_draw','ILocalStorageService','length','state$','LIVESHARE_OPERATION','state','patch','has','_initStatusComponent','localeService','_initStatusListener','_loadSheet','IBeforeCloseService','getSheetBlock','@univerjs/rpc','result','Univer','contains','merge','_incrementRevisionNumber','ENSURE_SNAPSHOT_EXECUTION','xlink:href','moveTo','_context','DeleteRangeMoveLeftCommandId','displayName','attrs','handleInsertRangeMoveRight','getRoom','INVALID_ARGUMENT','?size=','POST','override','editingUnit','handleMoveRange','_collabCursorController','socket\x20open.','debounce','TOO_MANY_REQUESTS','deepClone','APPLY_NON_SEQUENTIAL_REVISION','encodeURIComponent','getCurrent','#FFF','saveChangeset','Unknown\x20user','useCallback','getTypeOfUnitDisposed$','onPointerLeave$','ImageIoService','WebURLService','CHANGESET_ACK','YUUMI_SUBSCRIPTION_NOT_FOUND','getUniverSheetInstance','NOT_COLLAB','on-line-single','CommentService','error','saveSnapshot','cmd','transform','WorkbookEditablePermission','shareReplay','_sheetTransformSelectionsService','encode','ranges','currentSkeleton$','SetTextSelectionsOperation','complete','getCollabEntity$','AWAITING','/collaborator','_resendTimeout','userID','_roomMembers','image/png','title','pipe','COLORS','_uiPartsService','LOGIN_URL_KEY','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','objects','Error\x20on\x20receiving\x20event','parseProtocolChangeset','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','changesets','c2Prime','BuiltInUIPart','DeleteRangeMoveUpCommandId','joinRsp','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','interceptor','21LGntSn','COMPLETION_FINISHED','_textBubble','equals','_updateCollabCursors','/-/object/-/batch_allowed','measureText','_online','mapDocumentTypeToUniverType','_localeService','_transformIMECache','/-/object/list','generateRandomId','toggleOnline','CHANGESET_REVISION_CONFILICT','Vector2','disposeUnit','deserializeRangeWithSheet','liveShareOperation','socket\x20close','substring','AUTHZ_URL_KEY','_handleLeaveEvent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','UNIVER_SHEET','_onOffline','Optional','_getAPIPrefix','deserializeToCombResponse','_updateSubUnitFromURLParams','params','SNAPSHOT_URL_KEY','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','resend','/universer-api/file/{fileID}/sign-url','handleInsertRow','getUndoRedoMutationParamsCache','getSkeleton','_startSheetCollabCursor','IAuthzIoService','jiqing500','reduce','_onConflict','hovered','IRenderManagerService','OFFLINE','_lockTransition','Shape','ThresholdInterceptorFactory','beginPath','m2Prime','UnitEmbedded','_scheduleTimestamp','SHOULD_CLOSE_CONN','ISnapshotServerService','addImageSourceCache','ImageSourceType','_backgroundColor','submit\x20changeset\x20error!','_applyRemoteChangeset','Warning','LOCAL_CACHE_INTERVAL','triggerDblclick','createElement','status','_onCursorUpdate','duration','_sendingTimer','_joinRoom','getColor','replaceState','@univerjs/sheets','UNIVER_DOC','setAlpha','show','range','_syncEditingCollabCursor','translate(.97)','on-line-single_clip0_910_349','_collabCursorState$','_setupBeforeClosingHandler','_updateLocalCursor','row','IRemoteInstanceService','setUndoRedoMutationParamsCache','1qLhSIk','collab-text-range-','/object','socketService','onSendChangeset','collabStatus.fetchMiss','@univerjs/core','_syncEditingCollabCursorService','fromEvent','_onCursorDelete','[OfflineState]:\x20received\x20changeset.','_removeClearOtherTimer','APPLY_DUPLICATED','take','addEventListener','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','toggleOffline','conflict.title','ERROR_IMAGE_TYPE','_notificationService','isInternalEditorID','SheetsSelectionsService','transformChangesets','_colorIndex','saveOfflineData','enableLocalCache','_saveTaskMap','getUnit','delete','_selfUnitIDs','_clearScheduledTask','rev','YUUMI_RATE_OVER_LIMIT','appendMutation','_render','BehaviorSubject','\x0aAfter:\x20','session.collaboration-timeout','createIdentifier','selection','b64DecodeUnicode','takeUntil','_socketReady','svg','closeSession','JOIN','_init','session.connection-failed','body','DocStateChangeManagerService','&source=','syncEditingCollabCursor','SnapshotService','_themeService','univer-online-status-title','getValue','responseType','url(#on-line-single_clip0_910_349)','_collaborationTimeoutTimer','getFocusedUnit','currentTheme$','XHRHTTPImplementation','Rectangle','fetching\x20missing\x20changesets\x20from\x20','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getTime','SetSelectionsOperation','RxDisposable','change$','HEARTBEAT_INTERVAL_KEY','startsWith','objectActions','debug','UNIVER_UNKNOWN','type','_rescheduleHeartbeat','open$','getWorkbookSelections','EmptyMutation','concat','requireSession','_schedule','\x20in\x20_schedule.','path','entries','hide','leaveEvent','copyFileMeta','create','collab-client.tooltip.reconnect','JOINING','_userManagerService','/object/','next','onPointerMove$','_cursorShapes','serializeCombRequest','onSyncEditingCollabCursor','_imageSourceCache','_clearOtherTimers','split','HEARTBEAT','_removeCollabCursors','HTTPService','_docStateChangeManagerService','LocalUndoRedoService','none','_initModules','CHANGESET_SHOULD_RETRY','useObservable','session','sequenceExecute','delay','_decreaseWaiting','AWAITING_WITH_PENDING','getInterceptPoints','now','init','_scheduleHeartbeat','handleIRemoveCol','extend','...','FETCH_MISSING','m1Prime','INotificationService','UPDATE_CURSOR','_transformSelections','toDisposable','IUniverInstanceService','Rect','[UniverCollaborationClientPlugin]','doc.mutation.rich-text-editing','/allowed','collaboratorID','updateMember','toString','isPermissionRej','size','RETRY_CONNECTING_MAX_COUNT','_updateState','onStarting','DocSelectionManagerService','_initCloseConn','40tAEWBA','handleDeleteRangeMoveUp','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','update','_startDocCollabCursor','storage','stopTime','bind','_saveCache','prototype','div','_docTransformSelectionsService','getUnitType','_beforeCloseService','executeCommand','DataLoaderController','SUBMIT_CHANGESET','fill','ICommandService','colorChannel1','toRgbString','createSocket','method','/rev/','objectID','call','MSG_FOR_ERROR','location','clearInterval','fetch_missing','x-univer-host','getCollabCursors$','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','joinEvent','handleInsertRangeMoveDown','resolve','_getSaveTimeout','onPointerEnter$','97638VsSPQu','[DataLoaderController]','offline','_remoteChangesetQueue','@univerjs/telemetry','addObject','collaboration-session-retry','_status$','unknown','UniverInstanceType','onRemoteRej','_initCommandExecutedListener','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','unit','cursorInfo','_lastPointer','ERROR_IMAGE','_unlockTransition','_unitID','COLLAB_SUBMIT_CHANGESET_URL','1em','InsertRangeMoveDownCommandId','_telemetryService','_socket','_substituteUndoStack','_handleHover','subUnitId','_color','clipPath'];_0x275d=function(){return _0x348026;};return _0x275d();}var Cs=Object[_0x5ea8e9(0x16c)],Es=Object['getOwnPropertyDescriptor'],bs=(_0x39f9e5,_0x141f41,_0x85d29d,_0xbb9201)=>{for(var _0x85f7df=_0xbb9201>0x1?void 0x0:_0xbb9201?Es(_0x141f41,_0x85d29d):_0x141f41,_0x2ef2b9=_0x39f9e5['length']-0x1,_0x58883e;_0x2ef2b9>=0x0;_0x2ef2b9--)(_0x58883e=_0x39f9e5[_0x2ef2b9])&&(_0x85f7df=(_0xbb9201?_0x58883e(_0x141f41,_0x85d29d,_0x85f7df):_0x58883e(_0x85f7df))||_0x85f7df);return _0xbb9201&&_0x85f7df&&Cs(_0x141f41,_0x85d29d,_0x85f7df),_0x85f7df;},Z=(_0x3e86c3,_0x37d2c1)=>(_0x591c52,_0x425a86)=>_0x37d2c1(_0x591c52,_0x425a86,_0x3e86c3);exports[_0x5ea8e9(0x550)]=class extends a[_0x5ea8e9(0x213)]{constructor(_0x233988,_0x3299c6,_0x33ebcc,_0x42f260,_0x3c85f8,_0x4b272e){const _0x20645c=_0x5ea8e9;super(),u(this,_0x20645c(0x1a7),new v['BehaviorSubject'](void 0x0)),u(this,_0x20645c(0x537),this[_0x20645c(0x1a7)]['asObservable']()),u(this,'_candidateSocket',null),u(this,_0x20645c(0x16b),new Map()),u(this,_0x20645c(0x3a7),new v['BehaviorSubject'](H['IDLE'])),u(this,'status$',this[_0x20645c(0x3a7)][_0x20645c(0x19d)]()),u(this,_0x20645c(0x315),!0x1),u(this,'_retryConnectingTimer'),u(this,_0x20645c(0x51b),0x0),u(this,_0x20645c(0x3fe)),u(this,_0x20645c(0x152)),(this['_injector']=_0x233988,this[_0x20645c(0x29f)]=_0x3299c6,this[_0x20645c(0x446)]=_0x33ebcc,this[_0x20645c(0x1d5)]=_0x42f260,this[_0x20645c(0x18c)]=_0x3c85f8,this[_0x20645c(0x4e8)]=_0x4b272e,this[_0x20645c(0x3db)]());}get[_0x5ea8e9(0x3b7)](){const _0x64416d=_0x5ea8e9;return this[_0x64416d(0x1a7)][_0x64416d(0x322)]();}[_0x5ea8e9(0x3db)](){const _0x377d2d=_0x5ea8e9;this[_0x377d2d(0x3d8)](),this[_0x377d2d(0x405)]();}['dispose'](){const _0x5df35b=_0x5ea8e9;super[_0x5df35b(0x1f5)](),this[_0x5df35b(0x16b)][_0x5df35b(0x4f0)](_0x3a88b5=>_0x3a88b5[_0x5df35b(0x1f5)]()),this[_0x5df35b(0x16b)][_0x5df35b(0x4a5)](),this['_status$']['complete']();}async[_0x5ea8e9(0x33b)](_0x1300bb){const _0x49bb10=_0x5ea8e9;if(this[_0x49bb10(0x16b)][_0x49bb10(0x240)](_0x1300bb))return this[_0x49bb10(0x16b)][_0x49bb10(0x1eb)](_0x1300bb);this['_tryEnsureSocket']();const _0x523027=this['_injector']['createInstance'](exports['CollaborationSession'],_0x1300bb,this['_socket$']['asObservable']());return this[_0x49bb10(0x16b)][_0x49bb10(0x1aa)](_0x1300bb,_0x523027),_0x523027;}[_0x5ea8e9(0x317)](_0x283796){const _0x3bb938=_0x5ea8e9;var _0x3e8c63;const _0x577977=this[_0x3bb938(0x16b)][_0x3bb938(0x1eb)](_0x283796);_0x577977&&(this[_0x3bb938(0x16b)][_0x3bb938(0x307)](_0x283796),_0x577977['close']()),this[_0x3bb938(0x16b)][_0x3bb938(0x374)]||(_0x3e8c63=this[_0x3bb938(0x3b7)])==null||_0x3e8c63[_0x3bb938(0x416)]();}[_0x5ea8e9(0x137)](){const _0x1ef486=_0x5ea8e9;this[_0x1ef486(0x51b)]=0x0,this[_0x1ef486(0x158)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x1ef486(0x158)]=null),this[_0x1ef486(0x570)]();}[_0x5ea8e9(0x520)](){const _0x511df2=_0x5ea8e9;var _0xaacdb,_0x2e1c41;const _0x1c1ed2=this['_configService'][_0x511df2(0x41c)](mt),_0x457c37=this[_0x511df2(0x18c)][_0x511df2(0x41c)](L),_0x38a5c2=(_0x2e1c41=(_0xaacdb=_0x457c37==null?void 0x0:_0x457c37[_0x511df2(0x163)])!=null?_0xaacdb:_0x1c1ed2)!=null?_0x2e1c41:es,_0x14617b=this[_0x511df2(0x4e8)][_0x511df2(0x38f)](_0x38a5c2);return this[_0x511df2(0x497)]=_0x14617b,_0x14617b;}[_0x5ea8e9(0x3ce)](){const _0x5a70ef=_0x5ea8e9;var _0x148271,_0x1dbdad;try{const _0x4c739d=(_0x1dbdad=(_0x148271=this[_0x5a70ef(0x3b7)])!=null?_0x148271:this['_candidateSocket'])!=null?_0x1dbdad:this['_createSocket']();if(_0x4c739d){const _0x5ebdc9=_0x4c739d[_0x5a70ef(0x466)];_0x4c739d[_0x5a70ef(0x466)]=_0x5b8461=>(this[_0x5a70ef(0x336)](),_0x5ebdc9['apply'](_0x4c739d,[_0x5b8461])),_0x4c739d[_0x5a70ef(0x40e)][_0x5a70ef(0x21d)](_0x31037f=>this['_onMessage'](_0x4c739d,_0x31037f)),_0x4c739d['error$'][_0x5a70ef(0x286)](E[_0x5a70ef(0x2f8)](0x1))[_0x5a70ef(0x21d)](_0x140310=>this['_logService'][_0x5a70ef(0x272)](_0x5a70ef(0x4a7),_0x140310)),_0x4c739d[_0x5a70ef(0x337)][_0x5a70ef(0x286)](E[_0x5a70ef(0x2f8)](0x1))[_0x5a70ef(0x21d)](()=>{const _0x3d584e=_0x5a70ef;this[_0x3d584e(0x3ef)](_0x4c739d);}),_0x4c739d[_0x5a70ef(0x4a1)][_0x5a70ef(0x286)](E['take'](0x1))[_0x5a70ef(0x21d)](_0x31f316=>{const _0x387a69=_0x5a70ef;this[_0x387a69(0x1d5)][_0x387a69(0x333)](_0x387a69(0x4b4),_0x387a69(0x2a9),_0x31f316),this[_0x387a69(0x1ce)]();});}}catch(_0x5dc857){this[_0x5a70ef(0x1d5)][_0x5a70ef(0x272)](_0x5dc857),this['_onConnectionFailed']();}}[_0x5ea8e9(0x3ef)](_0x22cf25){const _0x458ace=_0x5ea8e9;this[_0x458ace(0x1d5)][_0x458ace(0x333)]('[CollaborationSessionService]',_0x458ace(0x25d)),_0x22cf25['send']({'cmd':b['HELLO']}),this[_0x458ace(0x336)]();}['_listenToOfflineEvent'](){const _0x554bbd=_0x5ea8e9;window[_0x554bbd(0x2f9)]('offline',()=>this[_0x554bbd(0x2af)]());}[_0x5ea8e9(0x2af)](){const _0x2af3fe=_0x5ea8e9;this['_socketReady']=!0x1,this['_candidateSocket']=null,this[_0x2af3fe(0x3a7)][_0x2af3fe(0x348)](H[_0x2af3fe(0x2c3)]),this[_0x2af3fe(0x1a7)][_0x2af3fe(0x348)](null),this[_0x2af3fe(0x17c)](),this[_0x2af3fe(0x533)]();}[_0x5ea8e9(0x1ce)](){const _0x438704=_0x5ea8e9;var _0xadd3df;this[_0x438704(0x2af)](),this[_0x438704(0x51b)]<((_0xadd3df=this[_0x438704(0x18c)][_0x438704(0x41c)](It))!=null?_0xadd3df:is)?(this[_0x438704(0x446)]['show']({'key':_0x438704(0x3a6),'type':q[_0x438704(0x3e5)][_0x438704(0x2d2)],'content':this[_0x438704(0x29f)]['t']('session.will-retry')}),this['_tryReconnect']()):this['_messageService']['show']({'key':'collaboration-session-retry','type':q[_0x438704(0x3e5)][_0x438704(0x173)],'content':this[_0x438704(0x29f)]['t'](_0x438704(0x31a))});}[_0x5ea8e9(0x405)](){const _0x25a27b=_0x5ea8e9,_0x36303d=()=>{const _0x503d25=_0x2fbf;this[_0x503d25(0x3b7)]||this[_0x503d25(0x137)]();},_0x2b6e2f=()=>{const _0x2d06dc=_0x2fbf;this[_0x2d06dc(0x3b7)]||document[_0x2d06dc(0x4b2)]===_0x2d06dc(0x483)||this[_0x2d06dc(0x137)]();};window['addEventListener'](_0x25a27b(0x499),_0x36303d),document[_0x25a27b(0x2f9)](_0x25a27b(0x4b5),_0x2b6e2f);}[_0x5ea8e9(0x570)](){const _0x42f25d=_0x5ea8e9;var _0x295c1d;const _0x18c34a=this[_0x42f25d(0x51b)],_0x2dbe9a=this['_configService'][_0x42f25d(0x41c)](L),_0x277056=_0x18c34a===0x0?0x0:((_0x295c1d=_0x2dbe9a==null?void 0x0:_0x2dbe9a['retryConnectingInterval'])!=null?_0x295c1d:ss)*0x2**_0x18c34a;this[_0x42f25d(0x158)]=window[_0x42f25d(0x149)](()=>{const _0x197431=_0x42f25d;clearTimeout(this[_0x197431(0x158)]),this[_0x197431(0x158)]=null,this[_0x197431(0x3ce)]();},_0x277056),this[_0x42f25d(0x51b)]+=0x1;}['_onMessage'](_0x210ef8,_0xa90793){const _0x282567=_0x5ea8e9,{cmd:_0x405a5c}=_0xa90793;_0x405a5c===b[_0x282567(0x13e)]&&!this[_0x282567(0x315)]&&(_0x210ef8['memberID']=_0xa90793[_0x282567(0x527)][_0x282567(0x22d)],this['_socket$']['next'](_0x210ef8),this[_0x282567(0x3a7)][_0x282567(0x348)](H[_0x282567(0x41a)]),this['_socketReady']=!0x0,this[_0x282567(0x497)]=null),_0x405a5c===b['HEARTBEAT']&&this[_0x282567(0x17c)](),this[_0x282567(0x336)]();}[_0x5ea8e9(0x336)](){const _0x32983d=_0x5ea8e9;var _0xbd0271;this[_0x32983d(0x533)](),this[_0x32983d(0x3fe)]=window[_0x32983d(0x149)](()=>this[_0x32983d(0x1ab)](),(_0xbd0271=this[_0x32983d(0x18c)]['getConfig'](gt))!=null?_0xbd0271:ts);}[_0x5ea8e9(0x1ab)](){const _0x6683c1=_0x5ea8e9;this[_0x6683c1(0x3b7)]['send']({'cmd':b[_0x6683c1(0x350)]}),this[_0x6683c1(0x43a)]();}['_waitForHeartbeatResponse'](){const _0x221aec=_0x5ea8e9;var _0x1227de;this[_0x221aec(0x152)]=window['setTimeout'](()=>this[_0x221aec(0x1ce)](),(_0x1227de=this['_configService'][_0x221aec(0x41c)](Ge))!=null?_0x1227de:ft);}[_0x5ea8e9(0x533)](){const _0x2adac7=_0x5ea8e9;this[_0x2adac7(0x3fe)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x2adac7(0x3fe)]=null);}['_clearTimeoutTimer'](){const _0x4e91b9=_0x5ea8e9;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x4e91b9(0x152)]=null);}},exports[_0x5ea8e9(0x550)]=bs([Z(0x0,a[_0x5ea8e9(0x3c8)](a['Injector'])),Z(0x1,a[_0x5ea8e9(0x3c8)](a['LocaleService'])),Z(0x2,A[_0x5ea8e9(0x4a9)]),Z(0x3,a[_0x5ea8e9(0x486)]),Z(0x4,a['IConfigService']),Z(0x5,Ke)],exports[_0x5ea8e9(0x550)]);var O=[];for(var Ue=0x0;Ue<0x100;++Ue)O[_0x5ea8e9(0x3e0)]((Ue+0x100)[_0x5ea8e9(0x372)](0x10)[_0x5ea8e9(0x436)](0x1));function Ts(_0x18763d,_0x591c72=0x0){const _0x166c38=_0x5ea8e9;return(O[_0x18763d[_0x591c72+0x0]]+O[_0x18763d[_0x591c72+0x1]]+O[_0x18763d[_0x591c72+0x2]]+O[_0x18763d[_0x591c72+0x3]]+'-'+O[_0x18763d[_0x591c72+0x4]]+O[_0x18763d[_0x591c72+0x5]]+'-'+O[_0x18763d[_0x591c72+0x6]]+O[_0x18763d[_0x591c72+0x7]]+'-'+O[_0x18763d[_0x591c72+0x8]]+O[_0x18763d[_0x591c72+0x9]]+'-'+O[_0x18763d[_0x591c72+0xa]]+O[_0x18763d[_0x591c72+0xb]]+O[_0x18763d[_0x591c72+0xc]]+O[_0x18763d[_0x591c72+0xd]]+O[_0x18763d[_0x591c72+0xe]]+O[_0x18763d[_0x591c72+0xf]])[_0x166c38(0x531)]();}var Se,Rs=new Uint8Array(0x10);function Os(){const _0x575d16=_0x5ea8e9;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x575d16(0x402)]&&crypto['getRandomValues'][_0x575d16(0x381)](crypto),!Se))throw new Error(_0x575d16(0x39a));return Se(Rs);}var Ds=typeof crypto<'u'&&crypto['randomUUID']&&crypto['randomUUID']['bind'](crypto);const st={'randomUUID':Ds};function ys(_0x4ee5d1,_0x4c621d,_0x4d4417){const _0x3593ba=_0x5ea8e9;if(st['randomUUID']&&!_0x4c621d&&!_0x4ee5d1)return st[_0x3593ba(0x492)]();_0x4ee5d1=_0x4ee5d1||{};var _0x2a103e=_0x4ee5d1[_0x3593ba(0x47f)]||(_0x4ee5d1[_0x3593ba(0x1ac)]||Os)();return _0x2a103e[0x6]=_0x2a103e[0x6]&0xf|0x40,_0x2a103e[0x8]=_0x2a103e[0x8]&0x3f|0x80,Ts(_0x2a103e);}var Us=Object[_0x5ea8e9(0x16c)],Ps=Object['getOwnPropertyDescriptor'],ws=(_0x5cdcf1,_0x220472,_0x253e91,_0xde2f81)=>{const _0x1efd4c=_0x5ea8e9;for(var _0x4293d1=_0xde2f81>0x1?void 0x0:_0xde2f81?Ps(_0x220472,_0x253e91):_0x220472,_0x246e9d=_0x5cdcf1[_0x1efd4c(0x23b)]-0x1,_0xba357a;_0x246e9d>=0x0;_0x246e9d--)(_0xba357a=_0x5cdcf1[_0x246e9d])&&(_0x4293d1=(_0xde2f81?_0xba357a(_0x220472,_0x253e91,_0x4293d1):_0xba357a(_0x4293d1))||_0x4293d1);return _0xde2f81&&_0x4293d1&&Us(_0x220472,_0x253e91,_0x4293d1),_0x4293d1;},Pe=(_0xf38146,_0xf57378)=>(_0x258f3d,_0x593bd3)=>_0xf57378(_0x258f3d,_0x593bd3,_0xf38146);let fe=class{constructor(_0xd9dca7,_0x1d1e77,_0x1b36de){const _0x267f16=_0x5ea8e9;this[_0x267f16(0x19a)]=_0xd9dca7,this['_transformService']=_0x1d1e77,this[_0x267f16(0x56c)]=_0x1b36de;}[_0x5ea8e9(0x164)](_0x4d69d1){const _0x3f5263=_0x5ea8e9;this[_0x3f5263(0x191)](_0x4d69d1),this['_transformPreviousActiveRange'](_0x4d69d1);}[_0x5ea8e9(0x16d)](_0x10d3bf){const _0x1fa201=_0x5ea8e9,{unitID:_0x11d9a0}=_0x10d3bf,_0x1e0c50=this[_0x1fa201(0x56c)]['getRenderById'](_0x11d9a0)[_0x1fa201(0x154)](N[_0x1fa201(0x147)]),{redoCache:_0x249717}=_0x1e0c50[_0x1fa201(0x2ba)]();if(_0x249717[_0x1fa201(0x23b)]===0x0)return _0x10d3bf;let _0xd51844=a[_0x1fa201(0x403)]['deepClone'](_0x10d3bf[_0x1fa201(0x220)][0x0]);for(let _0x1c5cbc=0x0;_0x1c5cbc<_0x249717[_0x1fa201(0x23b)];_0x1c5cbc++){const _0x25c397={'id':_0x1fa201(0x36e),'params':{..._0x249717[_0x1c5cbc]}},_0x456908=this[_0x1fa201(0x3cf)]['transformMutation'](_0xd51844,_0x25c397,!0x1);if(_[_0x1fa201(0x465)](_0x456908))throw _0x456908[_0x1fa201(0x272)];_0xd51844=_0x456908['m1Prime'];}return{...a[_0x1fa201(0x403)][_0x1fa201(0x260)](_0x10d3bf),'mutations':[_0xd51844]};}[_0x5ea8e9(0x191)](_0xd3d632){const _0x21e5bd=_0x5ea8e9,{unitID:_0x366746}=_0xd3d632,_0x5ba97a=this['_renderManagerService'][_0x21e5bd(0x512)](_0x366746)[_0x21e5bd(0x154)](N[_0x21e5bd(0x147)]),{undoCache:_0x313ce2,redoCache:_0x432137}=_0x5ba97a['getUndoRedoMutationParamsCache']();if(_0x313ce2[_0x21e5bd(0x23b)]===0x0||_0x432137['length']===0x0)return;const _0x186a06=[],_0x5be6fb=[];let _0x1654e4=a[_0x21e5bd(0x403)][_0x21e5bd(0x260)](_0xd3d632[_0x21e5bd(0x220)][0x0]),_0x25fcaf=a[_0x21e5bd(0x403)][_0x21e5bd(0x260)](_0xd3d632[_0x21e5bd(0x220)][0x0]);for(let _0x4baed9=_0x313ce2[_0x21e5bd(0x23b)]-0x1;_0x4baed9>=0x0;_0x4baed9--){const _0x2a1462={'id':_0x21e5bd(0x36e),'params':{..._0x313ce2[_0x4baed9]}},_0x2c80b5={'id':_0x21e5bd(0x36e),'params':{..._0x432137[_0x4baed9]}},_0x2ed24d=this['_transformService'][_0x21e5bd(0x43b)](_0x1654e4,_0x2a1462,!0x1),_0x5dbb25=this[_0x21e5bd(0x3cf)][_0x21e5bd(0x43b)](_0x25fcaf,_0x2c80b5,!0x1);if(_[_0x21e5bd(0x465)](_0x2ed24d))throw _0x2ed24d[_0x21e5bd(0x272)];if(_['isTransformMutationFailure'](_0x5dbb25))throw _0x5dbb25['error'];_0x186a06['unshift'](_0x2ed24d['m2Prime'][_0x21e5bd(0x2b4)]),_0x5be6fb[_0x21e5bd(0x1e6)](_0x5dbb25[_0x21e5bd(0x2c8)][_0x21e5bd(0x2b4)]),_0x1654e4=_0x2ed24d[_0x21e5bd(0x366)],_0x25fcaf=_0x5dbb25[_0x21e5bd(0x366)];}_0x5ba97a[_0x21e5bd(0x2ea)]({'undoCache':_0x186a06,'redoCache':_0x5be6fb});}[_0x5ea8e9(0x434)](_0x26392d){const _0x51ec0a=_0x5ea8e9,{unitID:_0x3d9714}=_0x26392d,_0x3ec328=this[_0x51ec0a(0x56c)][_0x51ec0a(0x512)](_0x3d9714)[_0x51ec0a(0x154)](N[_0x51ec0a(0x147)]),_0x47346c=_0x3ec328['getActiveRange']();if(_0x47346c==null)return;const _0x55c4d5=[{'id':_0x51ec0a(0x36e),'params':{'unitId':_0x26392d[_0x51ec0a(0x46c)],'actions':null,'textRanges':[_0x47346c]}}],_0x2b1441=this[_0x51ec0a(0x3cf)]['transformMutationsWithChangeset'](_0x26392d,_0x55c4d5);if(!_[_0x51ec0a(0x1a1)](_0x2b1441))throw _0x2b1441[_0x51ec0a(0x272)];const _0x1e9972=_0x2b1441[_0x51ec0a(0x2c8)][0x0][_0x51ec0a(0x2b4)][_0x51ec0a(0x439)];Array[_0x51ec0a(0x45f)](_0x1e9972)&&_0x1e9972['length']&&_0x3ec328[_0x51ec0a(0x219)](_0x1e9972[0x0]);}};fe=ws([Pe(0x0,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),Pe(0x1,_[_0x5ea8e9(0x51a)]),Pe(0x2,D[_0x5ea8e9(0x2c2)])],fe);var Ns=Object['defineProperty'],Ms=Object[_0x5ea8e9(0x1df)],As=(_0x1d3662,_0x8334a5,_0xdee960,_0x16838e)=>{const _0xc53ce3=_0x5ea8e9;for(var _0x9f0ca=_0x16838e>0x1?void 0x0:_0x16838e?Ms(_0x8334a5,_0xdee960):_0x8334a5,_0x51f6bc=_0x1d3662[_0xc53ce3(0x23b)]-0x1,_0x3a814e;_0x51f6bc>=0x0;_0x51f6bc--)(_0x3a814e=_0x1d3662[_0x51f6bc])&&(_0x9f0ca=(_0x16838e?_0x3a814e(_0x8334a5,_0xdee960,_0x9f0ca):_0x3a814e(_0x9f0ca))||_0x9f0ca);return _0x16838e&&_0x9f0ca&&Ns(_0x8334a5,_0xdee960,_0x9f0ca),_0x9f0ca;},ce=(_0x1645f1,_0x4bb174)=>(_0x4353a3,_0x147783)=>_0x4bb174(_0x4353a3,_0x147783,_0x1645f1);exports['LocalCacheService']=class extends a['Disposable']{constructor(_0xac564,_0x55b3c2,_0x19d818,_0x125936,_0x1dff25){const _0x3135c5=_0x5ea8e9;super(),u(this,_0x3135c5(0x1ee),new Map()),u(this,'_saveTaskMap',new Map()),u(this,_0x3135c5(0x56d),!0x1),(this[_0x3135c5(0x18c)]=_0xac564,this[_0x3135c5(0x556)]=_0x55b3c2,this[_0x3135c5(0x387)]=_0x19d818,this[_0x3135c5(0x29f)]=_0x125936,this[_0x3135c5(0x478)]=_0x1dff25,this['_setupBeforeClosingHandler']());}[_0x5ea8e9(0x4f1)](){const _0xa2ed3=_0x5ea8e9;this[_0xa2ed3(0x56d)]=!0x0;}[_0x5ea8e9(0x304)](){const _0x2b03c8=_0x5ea8e9;this[_0x2b03c8(0x56d)]=!0x1;}[_0x5ea8e9(0x1f5)](){const _0x22cc78=_0x5ea8e9;this[_0x22cc78(0x4fc)]()[_0x22cc78(0x3f6)](()=>super[_0x22cc78(0x1f5)]());}async[_0x5ea8e9(0x222)](_0x4e0f00){const _0x916eba=_0x5ea8e9;return this[_0x916eba(0x56d)]?null:this[_0x916eba(0x556)]['getItem'](it(_0x4e0f00));}async[_0x5ea8e9(0x303)](_0x52712d,_0x35d6c4){const _0xb1f5=_0x5ea8e9;return!!this[_0xb1f5(0x556)][_0xb1f5(0x4fe)](_0x52712d,_0x35d6c4);}[_0x5ea8e9(0x424)](_0x5b951f,_0x395407,_0x5d0aa8,_0xc10760){const _0x269527=_0x5ea8e9,_0x2832b9=this[_0x269527(0x478)]['getCurrentRevOfUnit'](_0x5b951f);this[_0x269527(0x1ee)][_0x269527(0x1aa)](_0x5b951f,{'unitID':_0x5b951f,'type':_0x395407,'awaitingChangeset':_0x5d0aa8,'mutations':_0xc10760,'rev':_0x2832b9}),this[_0x269527(0x305)][_0x269527(0x240)](_0x5b951f)||this[_0x269527(0x567)](_0x5b951f);}[_0x5ea8e9(0x567)](_0x42adcb){const _0x3f4121=_0x5ea8e9,_0xcfbb0a=this[_0x3f4121(0x39e)]();_0xcfbb0a===0x0?this['_saveCache'](_0x42adcb):this[_0x3f4121(0x305)][_0x3f4121(0x1aa)](_0x42adcb,setTimeout(()=>this[_0x3f4121(0x382)](_0x42adcb),_0xcfbb0a));}['_getSaveTimeout'](){const _0x23ecb2=_0x5ea8e9;var _0x51905e;return(_0x51905e=this[_0x23ecb2(0x18c)][_0x23ecb2(0x41c)](pt))!=null?_0x51905e:ns;}[_0x5ea8e9(0x382)](_0x5ed90c){const _0x538cd9=_0x5ea8e9,_0x2c5355=this[_0x538cd9(0x305)][_0x538cd9(0x1eb)](_0x5ed90c);return _0x2c5355!==void 0x0&&window['clearTimeout'](_0x2c5355),this['_localStorageService'][_0x538cd9(0x4fe)](it(_0x5ed90c),this[_0x538cd9(0x1ee)]['get'](_0x5ed90c))[_0x538cd9(0x3f6)](()=>this[_0x538cd9(0x305)]['delete'](_0x5ed90c));}async['exhaustSavingTask'](){const _0x2b9651=_0x5ea8e9,_0x4af0e9=[];this[_0x2b9651(0x305)][_0x2b9651(0x4f0)]((_0x3a4d49,_0x138a85)=>{const _0xcba63d=_0x2b9651;window[_0xcba63d(0x1bd)](_0x3a4d49),_0x4af0e9[_0xcba63d(0x3e0)](this[_0xcba63d(0x382)](_0x138a85)[_0xcba63d(0x3f6)](()=>{const _0x294aa7=_0xcba63d;this[_0x294aa7(0x305)][_0x294aa7(0x307)](_0x138a85);}));}),await Promise[_0x2b9651(0x1b1)](_0x4af0e9);}[_0x5ea8e9(0x2e6)](){const _0x3171ca=_0x5ea8e9;this[_0x3171ca(0x568)](this[_0x3171ca(0x387)][_0x3171ca(0x3d6)](()=>{const _0x5592fd=_0x3171ca;if(this[_0x5592fd(0x305)][_0x5592fd(0x374)])return this[_0x5592fd(0x29f)]['t'](_0x5592fd(0x1de));}));}},exports[_0x5ea8e9(0x200)]=As([ce(0x0,a['IConfigService']),ce(0x1,a[_0x5ea8e9(0x23a)]),ce(0x2,A[_0x5ea8e9(0x245)]),ce(0x3,a['Inject'](a[_0x5ea8e9(0x202)])),ce(0x4,a['Inject'](_['RevisionService']))],exports[_0x5ea8e9(0x200)]);function it(_0x1970d9){const _0x1ad7b4=_0x5ea8e9;return _0x1ad7b4(0x534)+_0x1970d9;}var Ls=Object[_0x5ea8e9(0x16c)],js=Object['getOwnPropertyDescriptor'],$s=(_0x101ebe,_0x3d1009,_0x4e629e,_0x4a8aa8)=>{for(var _0x377dbf=_0x4a8aa8>0x1?void 0x0:_0x4a8aa8?js(_0x3d1009,_0x4e629e):_0x3d1009,_0x8c014b=_0x101ebe['length']-0x1,_0xce2787;_0x8c014b>=0x0;_0x8c014b--)(_0xce2787=_0x101ebe[_0x8c014b])&&(_0x377dbf=(_0x4a8aa8?_0xce2787(_0x3d1009,_0x4e629e,_0x377dbf):_0xce2787(_0x377dbf))||_0x377dbf);return _0x4a8aa8&&_0x377dbf&&Ls(_0x3d1009,_0x4e629e,_0x377dbf),_0x377dbf;},we=(_0x305cb7,_0x17ed5a)=>(_0x1565bc,_0x3da201)=>_0x17ed5a(_0x1565bc,_0x3da201,_0x305cb7);function Hs(_0x3abb42){const _0x129a80=_0x5ea8e9,{unitID:_0x5773d5,mutations:_0x27b537}=_0x3abb42;return{'unitId':_0x5773d5,'subUnitId':_0x27b537[0x0]['params'][_0x129a80(0x3ba)]};}let Ie=class{constructor(_0x9cd50e,_0x598bb7,_0x190071){const _0x157ac2=_0x5ea8e9;this[_0x157ac2(0x19a)]=_0x9cd50e,this[_0x157ac2(0x3cf)]=_0x598bb7,this[_0x157ac2(0x3c1)]=_0x190071;}[_0x5ea8e9(0x3ff)](_0x506a2f){const _0x2d81e9=_0x5ea8e9;var _0x1db271,_0x4a0f44,_0x1b6169,_0x5a2117;const _0x45a8ad=this[_0x2d81e9(0x19a)][_0x2d81e9(0x1eb)](C[_0x2d81e9(0x300)]),{unitId:_0x119c1d,subUnitId:_0x234239}=Hs(_0x506a2f),_0x393a19=_0x45a8ad[_0x2d81e9(0x338)](_0x119c1d)['getCurrentSelections'](),_0x2bed4d=(_0x4a0f44=(_0x1db271=this[_0x2d81e9(0x3c1)][_0x2d81e9(0x306)](_0x119c1d))==null?void 0x0:_0x1db271[_0x2d81e9(0x4cd)]())==null?void 0x0:_0x4a0f44['getSheetId']();if(_0x393a19[_0x2d81e9(0x23b)]===0x0||!_0x119c1d||!_0x234239)return;const _0x29d82e=[{'id':C[_0x2d81e9(0x32d)]['id'],'params':{'unitId':_0x119c1d,'subUnitId':_0x2bed4d,'selections':a['Tools'][_0x2d81e9(0x260)](_0x393a19)}}],_0x2e61a3=this['_transformService']['transformMutationsWithChangeset'](_0x506a2f,_0x29d82e);if(!_['isTransformMutationsWithChangesetSuccess'](_0x2e61a3))throw _0x2e61a3['error'];const _0x5ca16b=(_0x5a2117=(_0x1b6169=_0x2e61a3[_0x2d81e9(0x2c8)][0x0])==null?void 0x0:_0x1b6169[_0x2d81e9(0x2b4)])==null?void 0x0:_0x5a2117[_0x2d81e9(0x522)];if(Array['isArray'](_0x5ca16b)&&_0x5ca16b[_0x2d81e9(0x23b)]){if(_0x5ca16b['length']===_0x29d82e[0x0][_0x2d81e9(0x2b4)][_0x2d81e9(0x522)][_0x2d81e9(0x23b)]&&_0x5ca16b[_0x2d81e9(0x443)]((_0x2a8bf9,_0x2e764e)=>a[_0x2d81e9(0x329)][_0x2d81e9(0x299)](_0x2a8bf9[_0x2d81e9(0x2e1)],_0x29d82e[0x0]['params'][_0x2d81e9(0x522)][_0x2e764e]['range'])))return;this[_0x2d81e9(0x19a)][_0x2d81e9(0x1eb)](a['ICommandService'])[_0x2d81e9(0x388)](C[_0x2d81e9(0x32d)]['id'],{'unitId':_0x119c1d,'subUnitId':_0x2bed4d,'selections':_0x5ca16b});}}};Ie=$s([we(0x0,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),we(0x1,_[_0x5ea8e9(0x51a)]),we(0x2,a[_0x5ea8e9(0x36b)])],Ie);const Re=a[_0x5ea8e9(0x311)]('univer-pro.collaboration-client.single-active-unit-service');var Dt=(_0x48e072=>(_0x48e072[_0x48e072[_0x5ea8e9(0x146)]=0x0]=_0x5ea8e9(0x146),_0x48e072[_0x48e072[_0x5ea8e9(0x4e3)]=0x1]=_0x5ea8e9(0x4e3),_0x48e072))(Dt||{});const nt=0x7530,rt=_0x5ea8e9(0x4c5);class xs extends a[_0x5ea8e9(0x213)]{constructor(){const _0x22fc77=_0x5ea8e9;super(),u(this,_0x22fc77(0x54d),a[_0x22fc77(0x403)]['generateRandomId']()),u(this,'_selfUnitIDs',new Set()),u(this,_0x22fc77(0x229),new Map()),u(this,_0x22fc77(0x569),null),u(this,_0x22fc77(0x34e),new Map()),u(this,'_unitStatus',new Map()),this[_0x22fc77(0x319)]();}[_0x5ea8e9(0x1f5)](){const _0x2ec971=_0x5ea8e9;super['dispose'](),this[_0x2ec971(0x34e)][_0x2ec971(0x4f0)]((_0x59ff91,_0x969b9)=>this['_removeClearOtherTimer'](_0x969b9)),this[_0x2ec971(0x569)]&&window[_0x2ec971(0x396)](this[_0x2ec971(0x569)]);}[_0x5ea8e9(0x494)](_0x40fe5c){const _0x598c28=_0x5ea8e9;return this[_0x598c28(0x41b)](_0x40fe5c)[_0x598c28(0x286)](v[_0x598c28(0x56b)]());}[_0x5ea8e9(0x25a)](_0x1b167c){const _0x414d0d=_0x5ea8e9;this['_selfUnitIDs'][_0x414d0d(0x374)]===0x0&&this[_0x414d0d(0x361)](),this[_0x414d0d(0x308)]['add'](_0x1b167c),this[_0x414d0d(0x559)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1b167c],'isForwarded':!0x1});}[_0x5ea8e9(0x2a6)](_0x2190a8){const _0x23d9f8=_0x5ea8e9;this[_0x23d9f8(0x308)][_0x23d9f8(0x307)](_0x2190a8),this[_0x23d9f8(0x308)][_0x23d9f8(0x374)]===0x0&&this[_0x23d9f8(0x569)]&&window[_0x23d9f8(0x396)](this[_0x23d9f8(0x569)]);}[_0x5ea8e9(0x319)](){const _0x549d71=_0x5ea8e9;this['disposeWithMe'](a[_0x549d71(0x36a)](v[_0x549d71(0x2f3)](window,_0x549d71(0x37f))[_0x549d71(0x21d)](_0x35c29f=>{const _0x5d4a9b=_0x549d71;if(_0x35c29f['key']!==rt||!_0x35c29f['newValue'])return;const _0x553e8f=JSON['parse'](_0x35c29f[_0x5d4a9b(0x4c3)]);this[_0x5d4a9b(0x13d)](_0x553e8f);}))),window[_0x549d71(0x2f9)](_0x549d71(0x450),()=>this[_0x549d71(0x559)]({'type':0x1,'memberID':this[_0x549d71(0x54d)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x5ea8e9(0x13d)](_0x3164bb){const _0x49a851=_0x5ea8e9;switch(_0x3164bb[_0x49a851(0x335)]){case 0x0:this['_handleJoinEvent'](_0x3164bb);break;case 0x1:this[_0x49a851(0x2ac)](_0x3164bb);break;case 0x2:this[_0x49a851(0x4be)](_0x3164bb);break;}}['_handleJoinEvent'](_0x5d54bd){const _0x5c9339=_0x5ea8e9,{unitIDs:_0x2d0048,memberID:_0x21ca64,isForwarded:_0x59ef01}=_0x5d54bd;_0x2d0048[_0x5c9339(0x4f0)](_0x5797ae=>{const _0x29e076=_0x5c9339;if(!_0x59ef01&&this[_0x29e076(0x229)][_0x29e076(0x240)](_0x5797ae)&&this['_ensureSubject'](_0x5797ae)[_0x29e076(0x348)](0x1),!this['_unitOnClients'][_0x29e076(0x240)](_0x5797ae)||!this[_0x29e076(0x229)]['get'](_0x5797ae)[_0x29e076(0x240)](_0x21ca64)){const _0x5882a1=this[_0x29e076(0x229)][_0x29e076(0x1eb)](_0x5797ae)||new Set();_0x5882a1[_0x29e076(0x42a)](_0x21ca64),this[_0x29e076(0x229)][_0x29e076(0x1aa)](_0x5797ae,_0x5882a1),this['_scheduleClearOtherTimer'](_0x21ca64);}}),_0x59ef01||this[_0x5c9339(0x559)]({'type':0x0,'memberID':this[_0x5c9339(0x54d)],'unitIDs':[...this[_0x5c9339(0x308)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x400ae2){const _0x2c7793=_0x5ea8e9;this[_0x2c7793(0x2f6)](_0x400ae2);const _0x4cc6f7=window[_0x2c7793(0x149)](()=>{const _0x2c67c=_0x2c7793;this[_0x2c67c(0x229)]['forEach'](_0x4c113c=>{const _0x56e1ed=_0x2c67c;_0x4c113c[_0x56e1ed(0x307)](_0x400ae2);});},nt*0x2);this[_0x2c7793(0x34e)][_0x2c7793(0x1aa)](_0x400ae2,_0x4cc6f7);}[_0x5ea8e9(0x2f6)](_0x1b1c41){const _0x157d25=_0x5ea8e9;if(this[_0x157d25(0x34e)][_0x157d25(0x240)](_0x1b1c41)){const _0x1f933d=this[_0x157d25(0x34e)][_0x157d25(0x1eb)](_0x1b1c41);_0x1f933d&&window[_0x157d25(0x1bd)](_0x1f933d),this[_0x157d25(0x34e)]['set'](_0x1b1c41,null);}}[_0x5ea8e9(0x2ac)](_0x140ef3){const _0x36a2f6=_0x5ea8e9,{memberID:_0x4b2ebf,unitIDs:_0x17f376}=_0x140ef3;_0x17f376[_0x36a2f6(0x4f0)](_0x361b81=>{const _0x27e561=_0x36a2f6;var _0x536d2c;const _0x34708d=this[_0x27e561(0x229)][_0x27e561(0x1eb)](_0x361b81);_0x34708d&&(_0x34708d[_0x27e561(0x307)](_0x4b2ebf),(_0x536d2c=this['_ensureSubject'](_0x361b81))==null||_0x536d2c[_0x27e561(0x348)](_0x34708d['size']===0x0?0x0:0x1));}),this[_0x36a2f6(0x2f6)](_0x4b2ebf);}['_handleHeartbeatEvent'](_0x1dbad0){const _0x12b3ad=_0x5ea8e9;this[_0x12b3ad(0x15c)](_0x1dbad0[_0x12b3ad(0x22d)]);}[_0x5ea8e9(0x559)](_0x2cf16e){const _0x2705c8=_0x5ea8e9;localStorage['setItem'](rt,JSON[_0x2705c8(0x514)](_0x2cf16e));}[_0x5ea8e9(0x361)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x82f37d=_0x2fbf;this[_0x82f37d(0x559)]({'type':0x2,'memberID':this[_0x82f37d(0x54d)]});},nt);}[_0x5ea8e9(0x41b)](_0x36f8e4){const _0x225899=_0x5ea8e9;return this[_0x225899(0x432)][_0x225899(0x240)](_0x36f8e4)||this[_0x225899(0x432)]['set'](_0x36f8e4,new v[(_0x225899(0x30e))](0x0)),this['_unitStatus'][_0x225899(0x1eb)](_0x36f8e4);}}function yt(_0x2a9053){let _0x4f5258='';for(const _0x4e340a of _0x2a9053){const {startOffset:_0x390c08,endOffset:_0x211d44,isActive:_0x1cbe9d}=_0x4e340a;_0x4f5258['length']&&(_0x4f5258+=','),_0x4f5258+=_0x390c08+':'+_0x211d44+':'+(_0x1cbe9d?'1':'0');}return _0x4f5258;}function ks(_0x1646fe){const _0x3f17b9=_0x5ea8e9,_0x47406f=_0x1646fe[_0x3f17b9(0x34f)](','),_0x14a102=[];for(const _0x478b0c of _0x47406f){const [_0x4296ac,_0x117465,_0x1f8920]=_0x478b0c[_0x3f17b9(0x34f)](':');_0x14a102[_0x3f17b9(0x3e0)]({'startOffset':Number(_0x4296ac),'endOffset':Number(_0x117465),'collapsed':_0x4296ac===_0x117465,'isActive':_0x1f8920==='1'});}return _0x14a102[_0x3f17b9(0x20a)](_0x5d8ce6=>_0x5d8ce6[_0x3f17b9(0x557)])||(_0x14a102[0x0]['isActive']=!0x0),_0x14a102;}class Xe extends a[_0x5ea8e9(0x32e)]{constructor(){const _0x470af8=_0x5ea8e9;super(...arguments),u(this,_0x470af8(0x2e5),new v['BehaviorSubject'](null)),u(this,_0x470af8(0x13a),this['_collabCursorState$'][_0x470af8(0x19d)]());}['syncEditingCollabCursor'](_0x222889){const _0x150eaf=_0x5ea8e9,{unitID:_0x556f9c,memberID:_0xdcba9,textRanges:_0x2f25cb}=_0x222889,_0x412a7d=yt(_0x2f25cb),_0x5a9f81={'unitID':_0x556f9c,'memberID':_0xdcba9,'selection':_0x412a7d};this[_0x150eaf(0x2e5)][_0x150eaf(0x348)](_0x5a9f81);}}var Bs=Object['defineProperty'],Vs=Object[_0x5ea8e9(0x1df)],Ws=(_0x555062,_0x2ebb47,_0x15e184,_0x21bcd4)=>{const _0x5510a0=_0x5ea8e9;for(var _0x4e1c60=_0x21bcd4>0x1?void 0x0:_0x21bcd4?Vs(_0x2ebb47,_0x15e184):_0x2ebb47,_0x2ea606=_0x555062[_0x5510a0(0x23b)]-0x1,_0x3639ab;_0x2ea606>=0x0;_0x2ea606--)(_0x3639ab=_0x555062[_0x2ea606])&&(_0x4e1c60=(_0x21bcd4?_0x3639ab(_0x2ebb47,_0x15e184,_0x4e1c60):_0x3639ab(_0x4e1c60))||_0x4e1c60);return _0x21bcd4&&_0x4e1c60&&Bs(_0x2ebb47,_0x15e184,_0x4e1c60),_0x4e1c60;},ot=(_0x2b7f3b,_0x3a7a3e)=>(_0xaeb28,_0x1320b8)=>_0x3a7a3e(_0xaeb28,_0x1320b8,_0x2b7f3b);let pe=class{constructor(_0x3e97fc,_0x2476cb){const _0x489ff9=_0x5ea8e9;this[_0x489ff9(0x19a)]=_0x3e97fc,this[_0x489ff9(0x3cf)]=_0x2476cb;}['transformSelections'](_0x584f63){const _0x30f1cc=_0x5ea8e9;var _0xacadcf;const _0x1d7b49=this[_0x30f1cc(0x19a)][_0x30f1cc(0x1eb)](se[_0x30f1cc(0x378)]),_0x5b09e1=(_0xacadcf=_0x1d7b49['getDocRanges']())!=null?_0xacadcf:[];if(_0x5b09e1[_0x30f1cc(0x23b)]===0x0)return;const _0x1998cf=[{'id':_0x30f1cc(0x36e),'params':{'unitId':_0x584f63['unitID'],'actions':null,'textRanges':_0x5b09e1}}],_0x39be32=this[_0x30f1cc(0x3cf)][_0x30f1cc(0x49f)](_0x584f63,_0x1998cf);if(!_[_0x30f1cc(0x1a1)](_0x39be32))throw _0x39be32[_0x30f1cc(0x272)];const _0x3c8d24=_0x39be32[_0x30f1cc(0x2c8)][0x0][_0x30f1cc(0x2b4)]['textRanges'];Array[_0x30f1cc(0x45f)](_0x3c8d24)&&_0x3c8d24[_0x30f1cc(0x23b)]&&_0x1d7b49[_0x30f1cc(0x555)](_0x3c8d24,!0x1);}};pe=Ws([ot(0x0,a[_0x5ea8e9(0x3c8)](a['Injector'])),ot(0x1,_['ITransformService'])],pe);const Fs=new Set([C[_0x5ea8e9(0x3ec)]['id']]);function at(_0x4c7e51,_0x5b3112,_0x53c833,_0x383a93,_0x3fe4c5){const _0x519171=_0x5ea8e9;var _0x11e55d,_0x35fe60,_0x40a8bd,_0x4b3c96;const _0x24edf3=[];for(const _0x77c654 of _0x4c7e51)if(Fs[_0x519171(0x240)](_0x77c654['id'])){if(_0x24edf3[_0x519171(0x23b)]>0x0)break;_0x24edf3[_0x519171(0x3e0)](_0x77c654);break;}else _0x24edf3[_0x519171(0x3e0)](_0x77c654);const _0x4f9d16=(_0x35fe60=(_0x11e55d=_0x3fe4c5[_0x519171(0x13f)]())==null?void 0x0:_0x11e55d[_0x519171(0x282)])!=null?_0x35fe60:_0x519171(0x3a8),_0x3d5a8d=(_0x4b3c96=(_0x40a8bd=_0x3fe4c5[_0x519171(0x13f)]())==null?void 0x0:_0x40a8bd[_0x519171(0x22d)])!=null?_0x4b3c96:_0x519171(0x3a8);return{'changeset':{'unitID':_0x5b3112,'type':_[_0x519171(0x29e)](_0x53c833['getUnitType'](_0x5b3112)),'baseRev':_0x383a93[_0x519171(0x1f7)](_0x5b3112),'revision':0x0,'userID':_0x4f9d16,'memberID':_0x3d5a8d,'mutations':_0x24edf3},'pendingMutations':_0x4c7e51[_0x519171(0x436)](_0x24edf3[_0x519171(0x23b)])};}function Gs(_0x53f816,_0x32bb9f,_0x215a79,_0x3bb385,_0x402820){const _0x1f6cf3=_0x5ea8e9;var _0x5b909a,_0x17dc24,_0x298e26,_0x1ad2c1;const _0x22ce08=[_0x53f816[_0x1f6cf3(0x2bf)]((_0x320815,_0x175d26)=>{const _0x20ab0c=_0x1f6cf3;var _0x325fc4;const {id:_0x1aa2d9}=_0x320815,{id:_0x3aa6cd,type:_0x1f9582}=_0x175d26,_0x245dc0=(_0x325fc4=_0x320815['params'])!=null?_0x325fc4:{'actions':null},_0x2c5e69=_0x175d26['params'];if(_0x1aa2d9&&_0x1aa2d9!==_0x3aa6cd)throw new Error(_0x20ab0c(0x506)+_0x1aa2d9+_0x20ab0c(0x179)+_0x3aa6cd+'.');return{..._0x320815,'id':_0x3aa6cd,'type':_0x1f9582,'params':{'unitId':_0x2c5e69[_0x20ab0c(0x21c)],'textRanges':_0x2c5e69[_0x20ab0c(0x439)],'actions':a[_0x20ab0c(0x1f6)][_0x20ab0c(0x42c)](_0x245dc0[_0x20ab0c(0x515)],_0x2c5e69[_0x20ab0c(0x515)])}};},{})],_0x14527c=(_0x17dc24=(_0x5b909a=_0x402820['getCurrentUser']())==null?void 0x0:_0x5b909a[_0x1f6cf3(0x282)])!=null?_0x17dc24:_0x1f6cf3(0x3a8),_0x2af3db=(_0x1ad2c1=(_0x298e26=_0x402820[_0x1f6cf3(0x13f)]())==null?void 0x0:_0x298e26['memberID'])!=null?_0x1ad2c1:_0x1f6cf3(0x3a8);return{'changeset':{'unitID':_0x32bb9f,'type':_[_0x1f6cf3(0x29e)](_0x215a79[_0x1f6cf3(0x386)](_0x32bb9f)),'baseRev':_0x3bb385['getCurrentRevOfUnit'](_0x32bb9f),'revision':0x0,'userID':_0x14527c,'memberID':_0x2af3db,'mutations':_0x22ce08},'pendingMutations':[]};}function Ut(_0x4bee9c,_0xd480e6){const _0x172d16=_0x5ea8e9,_0x521e74=new v['ReplaySubject'](0x1);return setTimeout(()=>_0x521e74['next'](_0xd480e6),_0x4bee9c),_0x521e74[_0x172d16(0x19d)]()['pipe'](v['take'](0x1));}const Ys={'id':C[_0x5ea8e9(0x339)]['id'],'type':a[_0x5ea8e9(0x3df)][_0x5ea8e9(0x1a5)],'params':{}};var Ks=Object[_0x5ea8e9(0x16c)],qs=Object[_0x5ea8e9(0x1df)],z=(_0x4b6b33,_0x2214cd,_0x2cb96a,_0x136e33)=>{const _0x1d8756=_0x5ea8e9;for(var _0x32ac75=_0x136e33>0x1?void 0x0:_0x136e33?qs(_0x2214cd,_0x2cb96a):_0x2214cd,_0x2e3b1f=_0x4b6b33[_0x1d8756(0x23b)]-0x1,_0x1f609c;_0x2e3b1f>=0x0;_0x2e3b1f--)(_0x1f609c=_0x4b6b33[_0x2e3b1f])&&(_0x32ac75=(_0x136e33?_0x1f609c(_0x2214cd,_0x2cb96a,_0x32ac75):_0x1f609c(_0x32ac75))||_0x32ac75);return _0x136e33&&_0x32ac75&&Ks(_0x2214cd,_0x2cb96a,_0x32ac75),_0x32ac75;},g=(_0x121b36,_0x5548de)=>(_0x26e040,_0x23ba92)=>_0x5548de(_0x26e040,_0x23ba92,_0x121b36),U=(_0xc15bf=>(_0xc15bf[_0x5ea8e9(0x26f)]=_0x5ea8e9(0x420),_0xc15bf[_0x5ea8e9(0x429)]=_0x5ea8e9(0x469),_0xc15bf['PENDING']='pending',_0xc15bf[_0x5ea8e9(0x27f)]=_0x5ea8e9(0x190),_0xc15bf[_0x5ea8e9(0x35d)]=_0x5ea8e9(0x414),_0xc15bf[_0x5ea8e9(0x40d)]=_0x5ea8e9(0x397),_0xc15bf[_0x5ea8e9(0x197)]='conflict',_0xc15bf['OFFLINE']='offline',_0xc15bf))(U||{});const Pt=0xea60;class J{constructor(_0x369023,_0x48018d,_0x30fadd,_0x23c40d,_0x3a2d80,_0x4f7ccf,_0x25f1f5,_0x1c1cd2,_0x20a7ff){const _0x246f22=_0x5ea8e9;u(this,'_awaitingChangeset',null),u(this,_0x246f22(0x46e),[]),(this[_0x246f22(0x46c)]=_0x369023,this[_0x246f22(0x335)]=_0x48018d,this['_handler']=_0x3a2d80,this[_0x246f22(0x1ec)]=_0x4f7ccf,this['_undoRedoService']=_0x25f1f5,this[_0x246f22(0x478)]=_0x1c1cd2,this[_0x246f22(0x4ed)]=_0x20a7ff,this['_awaitingChangeset']=_0x30fadd,this['_pendingMutations']=_0x23c40d);}[_0x5ea8e9(0x44c)](_0x452321){const _0x394e22=_0x5ea8e9,_0x1d4d71=this[_0x394e22(0x478)][_0x394e22(0x1f7)](this[_0x394e22(0x46c)]);return _0x452321['revision']>_0x1d4d71+0x1?(this[_0x394e22(0x488)]['onMissingChangesets']({'from':_0x1d4d71,'to':_0x452321[_0x394e22(0x43e)]-0x1}),!0x0):!0x1;}[_0x5ea8e9(0x4c8)](_0x22d7e9){const _0x582a06=_0x5ea8e9;this[_0x582a06(0x3bf)][_0x582a06(0x40f)](this['unitID'],_0x22d7e9);}[_0x5ea8e9(0x369)](_0x4128a5){const _0x42e44b=_0x5ea8e9;var _0x5561c1,_0x37f8d4;(_0x37f8d4=(_0x5561c1=this[_0x42e44b(0x488)])['onTransformSelections'])==null||_0x37f8d4[_0x42e44b(0x393)](_0x5561c1,_0x4128a5);}['_transformIMECache'](_0x14a5e5){const _0x1e40f8=_0x5ea8e9;var _0x5e4232,_0x509aab;return(_0x509aab=(_0x5e4232=this['_handler'])[_0x1e40f8(0x459)])==null?void 0x0:_0x509aab[_0x1e40f8(0x393)](_0x5e4232,_0x14a5e5);}[_0x5ea8e9(0x538)](_0x203db7){const _0x38b7c9=_0x5ea8e9;var _0x5f41ce,_0x299fd6,_0x12219b;return(_0x12219b=(_0x299fd6=(_0x5f41ce=this[_0x38b7c9(0x488)])[_0x38b7c9(0x1f2)])==null?void 0x0:_0x299fd6[_0x38b7c9(0x393)](_0x5f41ce,_0x203db7))!=null?_0x12219b:_0x203db7;}[_0x5ea8e9(0x2e2)](_0x35752d){const _0xfcfdc0=_0x5ea8e9;var _0x86a0fa,_0x118d54;if(this['type']===$['UNIVER_DOC']){const {unitID:_0x4124da,mutations:_0x398e8b,memberID:_0x438c94}=_0x35752d,_0x52bd8d=_0x398e8b[0x0]['params'][_0xfcfdc0(0x439)];Array[_0xfcfdc0(0x45f)](_0x52bd8d)&&_0x52bd8d[_0xfcfdc0(0x23b)]>0x0&&((_0x118d54=(_0x86a0fa=this[_0xfcfdc0(0x488)])[_0xfcfdc0(0x34c)])==null||_0x118d54[_0xfcfdc0(0x393)](_0x86a0fa,{'unitID':_0x4124da,'memberID':_0x438c94,'textRanges':_0x52bd8d}));}}[_0x5ea8e9(0x155)](){const _0x8f14f1=_0x5ea8e9;this[_0x8f14f1(0x4ed)][_0x8f14f1(0x424)](this['unitID'],this[_0x8f14f1(0x335)],this[_0x8f14f1(0x1d9)],this[_0x8f14f1(0x46e)]);}[_0x5ea8e9(0x4ce)](){const _0x28caef=_0x5ea8e9;return this[_0x28caef(0x478)][_0x28caef(0x1f7)](this[_0x28caef(0x46c)]);}['_incrementRevisionNumber'](){const _0x1daff5=_0x5ea8e9;this[_0x1daff5(0x478)]['incrementRevOfUnit'](this[_0x1daff5(0x46c)]);}[_0x5ea8e9(0x407)](_0x3a3040){const _0x53fa3a=_0x5ea8e9;var _0x14c9ee;const _0x35d324=this[_0x53fa3a(0x538)](_0x3a3040),_0x5c5625=a[_0x53fa3a(0x35a)](_0x35d324[_0x53fa3a(0x220)],this[_0x53fa3a(0x1ec)],{'fromCollab':!0x0});if(!_0x5c5625[_0x53fa3a(0x248)])throw _0x5c5625[_0x53fa3a(0x272)]instanceof Error?_0x5c5625[_0x53fa3a(0x272)]:new Error((_0x14c9ee=_0x5c5625[_0x53fa3a(0x272)])!=null?_0x14c9ee:_0x53fa3a(0x487));this[_0x53fa3a(0x2a0)](_0x35d324),this[_0x53fa3a(0x4c8)](_0x3a3040),this[_0x53fa3a(0x369)](_0x35d324),this[_0x53fa3a(0x2e2)](_0x35d324),this[_0x53fa3a(0x24c)]();}}let ie=class extends J{constructor(_0xda69c2,_0xc5094f,_0x524b19,_0x5f5943,_0x50d89b,_0xfddf5c,_0x4f49a0,_0x1d1822,_0x1e2453,_0x332a78){const _0x202139=_0x5ea8e9;super(_0xda69c2,_0xc5094f,null,[],_0x524b19,_0x1d1822,_0x4f49a0,_0x5f5943,_0x50d89b),u(this,_0x202139(0x2d6),_0x202139(0x469)),(this[_0x202139(0x19a)]=_0xfddf5c,this[_0x202139(0x1d5)]=_0x1e2453,this[_0x202139(0x3cf)]=_0x332a78);}['appendMutation'](_0x539251){const _0x5643ed=_0x5ea8e9,_0x108d00=this[_0x5643ed(0x19a)][_0x5643ed(0x52c)](k,this['unitID'],this[_0x5643ed(0x335)],[_0x539251],this[_0x5643ed(0x488)]);return _0x108d00[_0x5643ed(0x33c)](),_0x108d00['_updateLocalCache'](),_0x108d00;}['onRemoteChangeset'](_0x3c6b06){const _0x538ec8=_0x5ea8e9;if(this[_0x538ec8(0x44c)](_0x3c6b06))return this[_0x538ec8(0x19a)][_0x538ec8(0x52c)](x,this[_0x538ec8(0x46c)],this[_0x538ec8(0x335)],null,[],null,[_0x3c6b06],this[_0x538ec8(0x488)]);try{const _0x54aa9d=this[_0x538ec8(0x3cf)][_0x538ec8(0x49f)](_0x3c6b06,[Ys]);if(_[_0x538ec8(0x1a1)](_0x54aa9d)){const {c1Prime:_0x22e315}=_0x54aa9d;return this[_0x538ec8(0x407)](_0x22e315),this;}throw _0x54aa9d['error'];}catch(_0x3da7ee){return this['_logService'][_0x538ec8(0x272)](_0x3da7ee),this[_0x538ec8(0x2c0)](!0x1);}}[_0x5ea8e9(0x2c0)](_0x10418e){const _0x45e904=_0x5ea8e9;return this[_0x45e904(0x19a)][_0x45e904(0x52c)](F,this[_0x45e904(0x46c)],this[_0x45e904(0x335)],null,[],this['_handler'],_0x10418e);}[_0x5ea8e9(0x484)](){const _0x2cf3f7=_0x5ea8e9;throw new Error(_0x2cf3f7(0x440));}[_0x5ea8e9(0x3aa)](){const _0x4387e9=_0x5ea8e9;throw new Error(_0x4387e9(0x47c));}['onRemoteRetry'](){return this;}[_0x5ea8e9(0x2fb)](){const _0x2e52c9=_0x5ea8e9;return this[_0x2e52c9(0x19a)][_0x2e52c9(0x52c)](G,this[_0x2e52c9(0x46c)],this['type'],null,[],this[_0x2e52c9(0x488)]);}[_0x5ea8e9(0x2a3)](){return this;}[_0x5ea8e9(0x2b7)](){const _0x1915f3=_0x5ea8e9;throw new Error(_0x1915f3(0x37c));}[_0x5ea8e9(0x1b3)](){const _0x44590e=_0x5ea8e9,_0x45c248=this[_0x44590e(0x478)][_0x44590e(0x1f7)](this[_0x44590e(0x46c)]);return this[_0x44590e(0x488)][_0x44590e(0x1c5)]({'from':_0x45c248,'to':0x0}),this['_injector'][_0x44590e(0x52c)](x,this[_0x44590e(0x46c)],this[_0x44590e(0x335)],null,[],null,[],this[_0x44590e(0x488)]);}};ie=z([g(0x3,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x54f)])),g(0x4,a[_0x5ea8e9(0x3c8)](exports[_0x5ea8e9(0x200)])),g(0x5,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),g(0x6,a[_0x5ea8e9(0x48e)]),g(0x7,a[_0x5ea8e9(0x38c)]),g(0x8,a[_0x5ea8e9(0x486)]),g(0x9,_['ITransformService'])],ie);let k=class extends J{constructor(_0x24e672,_0x3c9ed0,_0x459828,_0x3911b8,_0x3833e9,_0x4c33c6,_0xb2c994,_0x35361d,_0x47c0ef,_0x59f007,_0x63508e,_0x38e561,_0x18c396,_0x147415){const _0x5bb277=_0x5ea8e9;super(_0x24e672,_0x3c9ed0,null,_0x459828,_0x3911b8,_0x59f007,_0x147415,_0x4c33c6,_0xb2c994),u(this,'status',_0x5bb277(0x445)),u(this,_0x5bb277(0x2ca),null),u(this,_0x5bb277(0x2d9),null),(this[_0x5bb277(0x19a)]=_0x3833e9,this[_0x5bb277(0x1fa)]=_0x35361d,this[_0x5bb277(0x1d5)]=_0x47c0ef,this[_0x5bb277(0x18c)]=_0x63508e,this['_transformService']=_0x38e561,this['_univerInstanceService']=_0x18c396);}[_0x5ea8e9(0x30c)](_0x2a3663){const _0x14956d=_0x5ea8e9;return this[_0x14956d(0x46e)][_0x14956d(0x3e0)](_0x2a3663),this[_0x14956d(0x155)](),this;}[_0x5ea8e9(0x56e)](_0x368af6){const _0x424f5f=_0x5ea8e9;if(this['_checkMissing'](_0x368af6))return this['_clearScheduledTask'](),this[_0x424f5f(0x19a)][_0x424f5f(0x52c)](x,this[_0x424f5f(0x46c)],this[_0x424f5f(0x335)],null,this[_0x424f5f(0x46e)],null,[_0x368af6],this[_0x424f5f(0x488)]);try{const _0x279d06=this[_0x424f5f(0x3cf)][_0x424f5f(0x49f)](_0x368af6,this[_0x424f5f(0x46e)]);if(_[_0x424f5f(0x1a1)](_0x279d06)){const {c1Prime:_0x4207a0,m2Prime:_0x5ae597}=_0x279d06;this['_executeRemoteChangeset'](_0x4207a0);const _0x48e41f=this[_0x424f5f(0x19a)][_0x424f5f(0x52c)](k,this['unitID'],this[_0x424f5f(0x335)],_0x5ae597,this[_0x424f5f(0x488)]);return this[_0x424f5f(0x309)](),_0x48e41f[_0x424f5f(0x33c)](this['_scheduleTimestamp']?Math[_0x424f5f(0x3c4)](0x0,new Date()[_0x424f5f(0x32c)]()-this[_0x424f5f(0x2ca)]):this[_0x424f5f(0x518)]()),_0x48e41f;}throw _0x279d06[_0x424f5f(0x272)];}catch(_0x3cf8c8){return this[_0x424f5f(0x1d5)][_0x424f5f(0x272)](_0x3cf8c8),this['_onConflict'](!0x1);}}[_0x5ea8e9(0x484)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5ea8e9(0x3aa)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x5ea8e9(0x4c6)](){return this;}[_0x5ea8e9(0x2fb)](){const _0x29a8b6=_0x5ea8e9;return this[_0x29a8b6(0x309)](),this[_0x29a8b6(0x19a)]['createInstance'](G,this[_0x29a8b6(0x46c)],this['type'],null,this[_0x29a8b6(0x46e)],this[_0x29a8b6(0x488)]);}[_0x5ea8e9(0x2a3)](){return this;}['_schedule'](_0x4204d1){const _0x4ac04=_0x5ea8e9,_0x18d915=_0x4204d1!=null?_0x4204d1:this[_0x4ac04(0x518)]();this['_scheduleTimestamp']=new Date()[_0x4ac04(0x32c)](),this[_0x4ac04(0x2d9)]=window[_0x4ac04(0x149)](()=>{const _0x137a3c=_0x4ac04;this[_0x137a3c(0x309)]();let _0x958880=null;switch(this[_0x137a3c(0x335)]){case $[_0x137a3c(0x2ae)]:{_0x958880=at(this[_0x137a3c(0x46e)],this[_0x137a3c(0x46c)],this[_0x137a3c(0x1be)],this[_0x137a3c(0x478)],this[_0x137a3c(0x1fa)]);break;}case $[_0x137a3c(0x2de)]:{this[_0x137a3c(0x46e)][_0x137a3c(0x443)](_0x52c474=>_0x52c474['id']===se[_0x137a3c(0x162)]['id'])?_0x958880=Gs(this[_0x137a3c(0x46e)],this[_0x137a3c(0x46c)],this['_univerInstanceService'],this['_revisionService'],this[_0x137a3c(0x1fa)]):_0x958880=at(this[_0x137a3c(0x46e)],this['unitID'],this['_univerInstanceService'],this[_0x137a3c(0x478)],this['_memberService']);break;}default:throw new Error(_0x137a3c(0x3f0)+this[_0x137a3c(0x335)]+_0x137a3c(0x33d));}const {changeset:_0x473d99,pendingMutations:_0x306f4c}=_0x958880;this['_handler'][_0x137a3c(0x2ef)](_0x473d99);const _0xea095e=_0x306f4c['length']?this[_0x137a3c(0x19a)][_0x137a3c(0x52c)](B,this[_0x137a3c(0x46c)],this[_0x137a3c(0x335)],_0x473d99,_0x306f4c,this['_handler'],void 0x0):this[_0x137a3c(0x19a)][_0x137a3c(0x52c)](W,this[_0x137a3c(0x46c)],this[_0x137a3c(0x335)],_0x473d99,this[_0x137a3c(0x488)]);_0xea095e['_updateLocalCache'](),this[_0x137a3c(0x488)][_0x137a3c(0x1b6)](this,_0xea095e);},_0x18d915);}[_0x5ea8e9(0x518)](){const _0x4bfe6c=_0x5ea8e9;var _0x3bde1a;const _0x2873d9=this[_0x4bfe6c(0x18c)][_0x4bfe6c(0x41c)](L);return(_0x3bde1a=_0x2873d9==null?void 0x0:_0x2873d9[_0x4bfe6c(0x47d)])!=null?_0x3bde1a:Qt;}[_0x5ea8e9(0x2b7)](){const _0x28ccaa=_0x5ea8e9;throw new Error(_0x28ccaa(0x3ee));}[_0x5ea8e9(0x309)](){const _0x5cc11a=_0x5ea8e9;this[_0x5cc11a(0x2d9)]!=null&&(clearTimeout(this[_0x5cc11a(0x2d9)]),this['_sendingTimer']=null);}[_0x5ea8e9(0x2c0)](_0x5a02a2){const _0x36c9f2=_0x5ea8e9;return this['_clearScheduledTask'](),this['_injector']['createInstance'](F,this['unitID'],this[_0x36c9f2(0x335)],null,this[_0x36c9f2(0x46e)],this[_0x36c9f2(0x488)],_0x5a02a2);}};k=z([g(0x4,a['Inject'](a['Injector'])),g(0x5,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x54f)])),g(0x6,a[_0x5ea8e9(0x3c8)](exports[_0x5ea8e9(0x200)])),g(0x7,a[_0x5ea8e9(0x3c8)](X)),g(0x8,a['ILogService']),g(0x9,a[_0x5ea8e9(0x38c)]),g(0xa,a['IConfigService']),g(0xb,_[_0x5ea8e9(0x51a)]),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0x5ea8e9(0x48e)])],k);let W=class extends J{constructor(_0x4f6871,_0x39d4ad,_0x5c4806,_0x3edc8e,_0x370837,_0x57dc9f,_0x4cc25f,_0x4057e5,_0x5e6c33,_0x3772c4,_0x49e671){const _0x1e1df2=_0x5ea8e9;super(_0x4f6871,_0x39d4ad,_0x5c4806,[],_0x3edc8e,_0x4057e5,_0x49e671,_0x57dc9f,_0x4cc25f),u(this,_0x1e1df2(0x2d6),_0x1e1df2(0x190)),u(this,_0x1e1df2(0x281),0x0),u(this,_0x1e1df2(0x42e)),u(this,_0x1e1df2(0x42f)),(this['_injector']=_0x370837,this[_0x1e1df2(0x1d5)]=_0x5e6c33,this['_transformService']=_0x3772c4);}[_0x5ea8e9(0x30c)](_0x25dbe0){const _0x4ea8fe=_0x5ea8e9;this[_0x4ea8fe(0x309)]();const _0x1711ca=this[_0x4ea8fe(0x19a)][_0x4ea8fe(0x52c)](B,this[_0x4ea8fe(0x46c)],this[_0x4ea8fe(0x335)],this['_awaitingChangeset'],[_0x25dbe0],this[_0x4ea8fe(0x488)],this[_0x4ea8fe(0x42e)]);return _0x1711ca[_0x4ea8fe(0x155)](),_0x1711ca;}[_0x5ea8e9(0x56e)](_0x4d7d8b){const _0x55e63e=_0x5ea8e9;if(this[_0x55e63e(0x44c)](_0x4d7d8b))return this['_clearScheduledTask'](),this[_0x55e63e(0x19a)][_0x55e63e(0x52c)](x,this[_0x55e63e(0x46c)],this[_0x55e63e(0x335)],this[_0x55e63e(0x1d9)],[],null,[_0x4d7d8b],this[_0x55e63e(0x488)]);try{const _0xa01afc=this[_0x55e63e(0x3cf)]['transformChangesets']([_0x4d7d8b],[this[_0x55e63e(0x1d9)]],!0x1);if(_[_0x55e63e(0x510)](_0xa01afc)){const {c1Prime:_0x6d3eb2,c2Prime:_0x134eee}=_0xa01afc;this[_0x55e63e(0x407)](_0x6d3eb2[0x0]),_0x134eee[0x0][_0x55e63e(0x4c7)]=this['_getCurrentRevision'](),this[_0x55e63e(0x309)]();const _0xfceec0=this[_0x55e63e(0x19a)][_0x55e63e(0x52c)](W,this[_0x55e63e(0x46c)],this['type'],_0x134eee[0x0],this[_0x55e63e(0x488)]);return _0xfceec0[_0x55e63e(0x155)](),_0xfceec0;}return this[_0x55e63e(0x2c0)](!0x1);}catch(_0x4c351f){return this[_0x55e63e(0x1d5)][_0x55e63e(0x272)](_0x4c351f),this[_0x55e63e(0x2c0)](!0x1);}}[_0x5ea8e9(0x484)](_0x6c8568){const _0x141f1f=_0x5ea8e9;this['_clearScheduledTask']();const _0x5a3b0d=this[_0x141f1f(0x478)][_0x141f1f(0x1f7)](this[_0x141f1f(0x46c)]);if(_0x6c8568[_0x141f1f(0x43e)]<_0x5a3b0d-0x1)return this;if(this[_0x141f1f(0x44c)](_0x6c8568))return this[_0x141f1f(0x19a)][_0x141f1f(0x52c)](x,this[_0x141f1f(0x46c)],this['type'],null,[],this[_0x141f1f(0x1d9)],[],this['_handler']);this[_0x141f1f(0x24c)]();const _0x46db60=this['_injector'][_0x141f1f(0x52c)](ie,this[_0x141f1f(0x46c)],this[_0x141f1f(0x335)],this[_0x141f1f(0x488)]);return _0x46db60['_updateLocalCache'](),_0x46db60;}['onRemoteRej'](_0x6cd7fe){const _0x5c00b8=_0x5ea8e9;return this[_0x5c00b8(0x2c0)](!!(_0x6cd7fe!=null&&_0x6cd7fe[_0x5c00b8(0x373)]));}[_0x5ea8e9(0x4c6)](_0x318d91){const _0x1ba861=_0x5ea8e9;return this[_0x1ba861(0x281)]>Pt?this[_0x1ba861(0x2fb)]():(this['_resendTimer']=Ut(this[_0x1ba861(0x281)],{'timeout':this[_0x1ba861(0x281)],'reqId':_0x318d91[_0x1ba861(0x3c6)]}),this[_0x1ba861(0x42f)]=this[_0x1ba861(0x42e)][_0x1ba861(0x21d)](({reqId:_0x5c7c2e,timeout:_0x1e07fa})=>{const _0x5d6a7c=_0x1ba861;this[_0x5d6a7c(0x1bb)](_0x5c7c2e,_0x1e07fa);}),this);}['toggleOffline'](){const _0x5cd969=_0x5ea8e9;return this[_0x5cd969(0x309)](),this['_injector'][_0x5cd969(0x52c)](G,this[_0x5cd969(0x46c)],this[_0x5cd969(0x335)],this[_0x5cd969(0x1d9)],[],this[_0x5cd969(0x488)]);}[_0x5ea8e9(0x2a3)](){return this;}[_0x5ea8e9(0x2b7)](){const _0x20722d=_0x5ea8e9;this[_0x20722d(0x488)][_0x20722d(0x2ef)](this[_0x20722d(0x1d9)]);}[_0x5ea8e9(0x2c0)](_0x234527){const _0x457074=_0x5ea8e9;return this[_0x457074(0x309)](),this['_injector'][_0x457074(0x52c)](F,this['unitID'],this[_0x457074(0x335)],this[_0x457074(0x1d9)],[],this[_0x457074(0x488)],_0x234527);}[_0x5ea8e9(0x1bb)](_0x3293ed,_0x5577f6){const _0x2674b1=_0x5ea8e9;var _0x5e4bf1;_0x3293ed===((_0x5e4bf1=this['_awaitingChangeset'])==null?void 0x0:_0x5e4bf1[_0x2674b1(0x3c6)])&&(this['resend'](),this[_0x2674b1(0x281)]=_0x5577f6===0x0?0x3e8:_0x5577f6*0x2);}[_0x5ea8e9(0x309)](){const _0x19b2f0=_0x5ea8e9;var _0x42d101;(_0x42d101=this[_0x19b2f0(0x42f)])==null||_0x42d101[_0x19b2f0(0x4d0)](),this[_0x19b2f0(0x281)]=0x0;}};W=z([g(0x4,a[_0x5ea8e9(0x3c8)](a['Injector'])),g(0x5,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x54f)])),g(0x6,a['Inject'](exports['LocalCacheService'])),g(0x7,a[_0x5ea8e9(0x38c)]),g(0x8,a[_0x5ea8e9(0x486)]),g(0x9,_['ITransformService']),g(0xa,a[_0x5ea8e9(0x48e)])],W);let B=class extends J{constructor(_0xd3894e,_0x3120a9,_0x3c3918,_0x13dc37,_0x114a19,_0x2faf9f,_0x5d1563,_0x5e3c1c,_0x21e10f,_0x33b574,_0x437867,_0x597f20,_0x2e4793){const _0x3af3fc=_0x5ea8e9;super(_0xd3894e,_0x3120a9,_0x3c3918,_0x13dc37,_0x114a19,_0x33b574,_0x2e4793,_0x5e3c1c,_0x21e10f),u(this,_0x3af3fc(0x2d6),_0x3af3fc(0x414)),u(this,'_resendTimeout',0x0),u(this,_0x3af3fc(0x42e)),u(this,_0x3af3fc(0x42f)),(this[_0x3af3fc(0x19a)]=_0x5d1563,this[_0x3af3fc(0x1d5)]=_0x437867,this[_0x3af3fc(0x3cf)]=_0x597f20,_0x2faf9f&&(this[_0x3af3fc(0x42e)]=_0x2faf9f,this['_sender']=this[_0x3af3fc(0x42e)][_0x3af3fc(0x21d)](({reqId:_0x10eb48,timeout:_0x3e2542})=>{this['_resendWithTimeout'](_0x10eb48,_0x3e2542);})));}[_0x5ea8e9(0x30c)](_0x10dcc1){const _0x2883db=_0x5ea8e9;return this['_pendingMutations'][_0x2883db(0x3e0)](_0x10dcc1),this;}['onRemoteChangeset'](_0x1232c0){const _0xa3893d=_0x5ea8e9;if(this[_0xa3893d(0x44c)](_0x1232c0))return this[_0xa3893d(0x309)](),this[_0xa3893d(0x19a)]['createInstance'](x,this[_0xa3893d(0x46c)],this[_0xa3893d(0x335)],this[_0xa3893d(0x1d9)],this[_0xa3893d(0x46e)],null,[_0x1232c0],this[_0xa3893d(0x488)]);try{const _0x22b961=this[_0xa3893d(0x3cf)]['transformChangesets']([_0x1232c0],[this[_0xa3893d(0x1d9)]],!0x1);if(_[_0xa3893d(0x510)](_0x22b961)){const {c1Prime:_0x3cb71a,c2Prime:_0x2916ca}=_0x22b961,_0xe5db95=this[_0xa3893d(0x3cf)]['transformMutationsWithChangeset'](_0x3cb71a[0x0],this['_pendingMutations']);if(_[_0xa3893d(0x1a1)](_0xe5db95)){const {c1Prime:_0x1772f8,m2Prime:_0x56253f}=_0xe5db95;return this[_0xa3893d(0x407)](_0x1772f8),_0x2916ca[0x0]['baseRev']=this[_0xa3893d(0x4ce)](),this['_clearScheduledTask'](),this['_injector']['createInstance'](B,this[_0xa3893d(0x46c)],this[_0xa3893d(0x335)],_0x2916ca[0x0],_0x56253f,this[_0xa3893d(0x488)],void 0x0);}throw _0xe5db95[_0xa3893d(0x272)];}throw _0x22b961[_0xa3893d(0x272)];}catch(_0x53728b){return this[_0xa3893d(0x1d5)][_0xa3893d(0x272)](_0x53728b),this[_0xa3893d(0x2c0)](!0x1);}}['onRemoteAck'](_0x29f2c0){const _0x26c24c=_0x5ea8e9;if(this['_clearScheduledTask'](),this[_0x26c24c(0x44c)](_0x29f2c0))return this[_0x26c24c(0x19a)][_0x26c24c(0x52c)](x,this[_0x26c24c(0x46c)],this[_0x26c24c(0x335)],null,this[_0x26c24c(0x46e)],this[_0x26c24c(0x1d9)],[],this[_0x26c24c(0x488)]);this[_0x26c24c(0x24c)]();const _0x2d5450=this[_0x26c24c(0x19a)][_0x26c24c(0x52c)](k,this[_0x26c24c(0x46c)],this['type'],this[_0x26c24c(0x46e)],this[_0x26c24c(0x488)]);return _0x2d5450[_0x26c24c(0x33c)](),_0x2d5450[_0x26c24c(0x155)](),_0x2d5450;}['onRemoteRej'](_0x303a72){const _0x1a1e01=_0x5ea8e9;return this[_0x1a1e01(0x2c0)](!!(_0x303a72!=null&&_0x303a72[_0x1a1e01(0x373)]));}['onRemoteRetry'](_0x1a7345){const _0x3f7072=_0x5ea8e9;return this[_0x3f7072(0x281)]>Pt?this[_0x3f7072(0x2fb)]():(this[_0x3f7072(0x42e)]=Ut(this[_0x3f7072(0x281)],{'timeout':this[_0x3f7072(0x281)],'reqId':_0x1a7345[_0x3f7072(0x3c6)]}),this[_0x3f7072(0x42f)]=this['_resendTimer'][_0x3f7072(0x21d)](({reqId:_0x242659,timeout:_0x538481})=>{const _0x4993c1=_0x3f7072;this[_0x4993c1(0x1bb)](_0x242659,_0x538481);}),this);}['toggleOffline'](){const _0xeaffc9=_0x5ea8e9;return this['_clearScheduledTask'](),this[_0xeaffc9(0x19a)][_0xeaffc9(0x52c)](G,this['unitID'],this[_0xeaffc9(0x335)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0xeaffc9(0x488)]);}[_0x5ea8e9(0x2a3)](){return this;}[_0x5ea8e9(0x2b7)](){const _0x9f1fed=_0x5ea8e9;this['_handler']['onSendChangeset'](this[_0x9f1fed(0x1d9)]);}[_0x5ea8e9(0x2c0)](_0x2b2135){const _0x424b84=_0x5ea8e9;return this[_0x424b84(0x309)](),this['_injector']['createInstance'](F,this[_0x424b84(0x46c)],this[_0x424b84(0x335)],null,this[_0x424b84(0x46e)],this[_0x424b84(0x488)],_0x2b2135);}[_0x5ea8e9(0x1bb)](_0x312e38,_0xaf6516){const _0x20bee0=_0x5ea8e9;var _0x25e6ed;_0x312e38===((_0x25e6ed=this['_awaitingChangeset'])==null?void 0x0:_0x25e6ed[_0x20bee0(0x3c6)])&&(this['resend'](),this[_0x20bee0(0x281)]=_0xaf6516===0x0?0x3e8:_0xaf6516*0x2);}['_clearScheduledTask'](){const _0x25d8ae=_0x5ea8e9;var _0x4996d9;(_0x4996d9=this[_0x25d8ae(0x42f)])==null||_0x4996d9['unsubscribe'](),this[_0x25d8ae(0x281)]=0x0;}};B=z([g(0x6,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),g(0x7,a[_0x5ea8e9(0x3c8)](_['RevisionService'])),g(0x8,a[_0x5ea8e9(0x3c8)](exports[_0x5ea8e9(0x200)])),g(0x9,a['ICommandService']),g(0xa,a['ILogService']),g(0xb,_[_0x5ea8e9(0x51a)]),g(0xc,a[_0x5ea8e9(0x48e)])],B);let F=class extends J{constructor(_0x3f8107,_0x4ae7b9,_0x54dbb9,_0x234864,_0x270ef5,_0x46000d=!0x1,_0x4c56b1,_0x42b76a,_0x2b3b11,_0x41bdb6,_0x30120d,_0x4b1063,_0x4f9888){const _0x20f35f=_0x5ea8e9;super(_0x3f8107,_0x4ae7b9,_0x54dbb9,_0x234864,_0x270ef5,_0x42b76a,_0x2b3b11,_0x30120d,_0x41bdb6),u(this,'status',_0x20f35f(0x548)),(this[_0x20f35f(0x1c1)]=_0x46000d,this[_0x20f35f(0x1c7)]=_0x4c56b1,this['_localeService']=_0x4b1063,this[_0x20f35f(0x2fe)]=_0x4f9888,this[_0x20f35f(0x157)](),this[_0x20f35f(0x444)](),this[_0x20f35f(0x4c1)]());}[_0x5ea8e9(0x30c)](){return this;}[_0x5ea8e9(0x56e)](){return this;}[_0x5ea8e9(0x484)](){return this;}[_0x5ea8e9(0x3aa)](){return this;}[_0x5ea8e9(0x4c6)](){return this;}[_0x5ea8e9(0x2fb)](){return this;}[_0x5ea8e9(0x2a3)](){return this;}[_0x5ea8e9(0x2b7)](){const _0x2277d8=_0x5ea8e9;throw new Error(_0x2277d8(0x49d));}['_clearLocalCache'](){const _0x1b5cd6=_0x5ea8e9;this[_0x1b5cd6(0x4ed)][_0x1b5cd6(0x424)](this[_0x1b5cd6(0x46c)],this[_0x1b5cd6(0x335)],null,[]);}[_0x5ea8e9(0x157)](){const _0x3e88cf=_0x5ea8e9;this[_0x3e88cf(0x1c1)]?this[_0x3e88cf(0x2fe)][_0x3e88cf(0x2e0)]({'title':this[_0x3e88cf(0x29f)]['t'](_0x3e88cf(0x435)),'content':this['_localeService']['t'](_0x3e88cf(0x20b)),'type':_0x3e88cf(0x272),'duration':0x0}):this[_0x3e88cf(0x2fe)][_0x3e88cf(0x2e0)]({'title':this[_0x3e88cf(0x29f)]['t'](_0x3e88cf(0x2fc)),'content':this[_0x3e88cf(0x29f)]['t']('conflict.content'),'type':_0x3e88cf(0x272),'duration':0x0});}[_0x5ea8e9(0x4c1)](){const _0x52af1f=_0x5ea8e9;this[_0x52af1f(0x1c7)]['updatePermissionPoint'](new C[(_0x52af1f(0x276))](this[_0x52af1f(0x46c)])['id'],!0x1);}};F=z([g(0x6,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x3e8)])),g(0x7,a[_0x5ea8e9(0x38c)]),g(0x8,a[_0x5ea8e9(0x48e)]),g(0x9,a[_0x5ea8e9(0x3c8)](exports[_0x5ea8e9(0x200)])),g(0xa,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x54f)])),g(0xb,a['Inject'](a[_0x5ea8e9(0x202)])),g(0xc,A[_0x5ea8e9(0x367)])],F);let G=class extends J{constructor(_0x30ea35,_0x54ea71,_0xe7a137,_0x5a7bf7,_0x530248,_0x4a3bc7,_0x52113f,_0x42faa5,_0x59ba6c,_0x1a8992){const _0x57b406=_0x5ea8e9;super(_0x30ea35,_0x54ea71,_0xe7a137,_0x5a7bf7,_0x530248,_0x59ba6c,_0x1a8992,_0x52113f,_0x42faa5),u(this,'status',_0x57b406(0x3a2)),this[_0x57b406(0x19a)]=_0x4a3bc7;}[_0x5ea8e9(0x30c)](_0x1e4e5d){const _0x49df7f=_0x5ea8e9;return this[_0x49df7f(0x46e)]['push'](_0x1e4e5d),this[_0x49df7f(0x155)](),this;}[_0x5ea8e9(0x56e)](_0x2f5707){const _0x32084f=_0x5ea8e9;throw new Error(_0x32084f(0x2f5));}[_0x5ea8e9(0x484)](){const _0x1919dc=_0x5ea8e9;throw new Error(_0x1919dc(0x4dd));}[_0x5ea8e9(0x3aa)](){const _0x289450=_0x5ea8e9;throw new Error(_0x289450(0x50d));}[_0x5ea8e9(0x4c6)](){return this;}[_0x5ea8e9(0x2fb)](){return this;}[_0x5ea8e9(0x2a3)](){const _0x12e059=_0x5ea8e9,{_injector:_0x23429a,_pendingMutations:_0x4a5310,_awaitingChangeset:_0x47da6e,unitID:_0x16483b,_handler:_0x360fa5,type:_0x597410}=this,_0x127bde=wt(_0x23429a,_0x16483b,_0x597410,_0x47da6e,_0x4a5310,_0x360fa5);return _0x127bde instanceof k?_0x127bde[_0x12e059(0x33c)]():(_0x127bde instanceof B||_0x127bde instanceof W)&&_0x127bde[_0x12e059(0x2b7)](),_0x127bde;}[_0x5ea8e9(0x2b7)](){const _0x109021=_0x5ea8e9;throw new Error(_0x109021(0x19c));}};G=z([g(0x5,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),g(0x6,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x54f)])),g(0x7,a[_0x5ea8e9(0x3c8)](exports[_0x5ea8e9(0x200)])),g(0x8,a[_0x5ea8e9(0x38c)]),g(0x9,a[_0x5ea8e9(0x48e)])],G);let x=class extends J{constructor(_0x49a406,_0x3bd0a9,_0x17e15d,_0x4f28c3,_0x24c102,_0x505794,_0xa58fa4,_0x169976,_0x2e4715,_0x5ee088,_0x21e0ea,_0x161b3b,_0x4a46da,_0x20eecf){const _0x1ec132=_0x5ea8e9;super(_0x49a406,_0x3bd0a9,_0x17e15d,_0x4f28c3,_0xa58fa4,_0x161b3b,_0x4a46da,_0x2e4715,_0x5ee088),u(this,'status',_0x1ec132(0x397)),(this[_0x1ec132(0x46d)]=_0x24c102,this['_queuedRemoteChangesets']=_0x505794,this[_0x1ec132(0x19a)]=_0x169976,this[_0x1ec132(0x1d5)]=_0x21e0ea,this[_0x1ec132(0x3cf)]=_0x20eecf);}['onMissedChangesetFetched'](_0x482bd1){const _0x49cf7b=_0x5ea8e9;try{const _0x571f70=[..._0x482bd1,...this[_0x49cf7b(0x4d4)]],_0x28e76d=[this[_0x49cf7b(0x1d9)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x33ee10=>!!_0x33ee10);let _0x471334,_0x16a18b;if(_0x28e76d[_0x49cf7b(0x23b)]){const _0xb68767=this[_0x49cf7b(0x3cf)][_0x49cf7b(0x301)](_0x571f70,_0x28e76d,!0x1);if(!_[_0x49cf7b(0x510)](_0xb68767))throw _0xb68767[_0x49cf7b(0x272)];_0x471334=_0xb68767[_0x49cf7b(0x490)],_0x16a18b=_0xb68767[_0x49cf7b(0x290)];}else _0x471334=_0x571f70,_0x16a18b=[];let _0xf9c27d=this[_0x49cf7b(0x46e)];_0x471334[_0x49cf7b(0x4f0)](_0x17817c=>{const _0x565838=_0x49cf7b;let _0x18dfab;if(_0xf9c27d[_0x565838(0x23b)]){const _0x2c03c2=this[_0x565838(0x3cf)][_0x565838(0x49f)](_0x17817c,_0xf9c27d);if(!_[_0x565838(0x1a1)](_0x2c03c2))throw _0x2c03c2[_0x565838(0x272)];_0x18dfab=_0x2c03c2[_0x565838(0x490)],_0xf9c27d=_0x2c03c2[_0x565838(0x2c8)];}else _0x18dfab=_0x17817c;this[_0x565838(0x407)](_0x18dfab);}),this[_0x49cf7b(0x46d)]&&this[_0x49cf7b(0x24c)](),this[_0x49cf7b(0x1d9)]&&_0x16a18b[_0x49cf7b(0x23b)]&&(_0x16a18b[0x0][_0x49cf7b(0x4c7)]=this[_0x49cf7b(0x4ce)]());let _0x26b538;if(this[_0x49cf7b(0x1d9)]&&_0xf9c27d[_0x49cf7b(0x23b)]!==0x0)_0x26b538=this[_0x49cf7b(0x19a)]['createInstance'](B,this[_0x49cf7b(0x46c)],this['type'],_0x16a18b[0x0],_0xf9c27d,this['_handler'],void 0x0);else{if(this[_0x49cf7b(0x1d9)]&&_0xf9c27d[_0x49cf7b(0x23b)]===0x0)_0x16a18b[0x0]['baseRev']=this[_0x49cf7b(0x4ce)](),_0x26b538=this[_0x49cf7b(0x19a)]['createInstance'](W,this[_0x49cf7b(0x46c)],this['type'],_0x16a18b[0x0],this[_0x49cf7b(0x488)]);else{if(_0xf9c27d[_0x49cf7b(0x23b)]!==0x0){const _0x49074c=this[_0x49cf7b(0x19a)][_0x49cf7b(0x52c)](k,this[_0x49cf7b(0x46c)],this[_0x49cf7b(0x335)],_0xf9c27d,this[_0x49cf7b(0x488)]);_0x49074c[_0x49cf7b(0x33c)](),_0x26b538=_0x49074c;}else _0x26b538=this[_0x49cf7b(0x19a)][_0x49cf7b(0x52c)](ie,this[_0x49cf7b(0x46c)],this[_0x49cf7b(0x335)],this[_0x49cf7b(0x488)]);}}return _0x26b538[_0x49cf7b(0x155)](),_0x26b538;}catch(_0x405441){return this[_0x49cf7b(0x1d5)][_0x49cf7b(0x272)](_0x49cf7b(0x1ca),_0x49cf7b(0x544),_0x405441),this[_0x49cf7b(0x19a)]['createInstance'](F,this['unitID'],this[_0x49cf7b(0x335)],this[_0x49cf7b(0x1d9)],this[_0x49cf7b(0x46e)],this[_0x49cf7b(0x488)],!0x1);}}[_0x5ea8e9(0x2b7)](){const _0x5491cd=_0x5ea8e9;throw new Error(_0x5491cd(0x294));}[_0x5ea8e9(0x30c)](_0x15f243){const _0x24527f=_0x5ea8e9;return this[_0x24527f(0x46e)][_0x24527f(0x3e0)](_0x15f243),this;}[_0x5ea8e9(0x56e)](_0x83885c){const _0x1d781a=_0x5ea8e9;return this[_0x1d781a(0x4d4)][_0x1d781a(0x3e0)](_0x83885c),this;}['onRemoteAck'](_0x3fe202){const _0x25e67c=_0x5ea8e9;if(this[_0x25e67c(0x1d9)])return this[_0x25e67c(0x46d)]=this[_0x25e67c(0x1d9)],this[_0x25e67c(0x1d9)]=null,this;throw new Error(_0x25e67c(0x2ad));}['onRemoteRej'](_0x1df316){const _0x281ffe=_0x5ea8e9;return this[_0x281ffe(0x2c0)](!!(_0x1df316!=null&&_0x1df316['isPermissionRej']));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x1afb1d=_0x5ea8e9;return this[_0x1afb1d(0x19a)]['createInstance'](G,this[_0x1afb1d(0x46c)],this[_0x1afb1d(0x335)],this[_0x1afb1d(0x1d9)],this[_0x1afb1d(0x46e)],this[_0x1afb1d(0x488)]);}[_0x5ea8e9(0x2a3)](){return this;}['_onConflict'](_0x6677f1){const _0xa1912c=_0x5ea8e9;return this['_injector']['createInstance'](F,this[_0xa1912c(0x46c)],this[_0xa1912c(0x335)],this[_0xa1912c(0x1d9)],this[_0xa1912c(0x46e)],this[_0xa1912c(0x488)],_0x6677f1);}};x=z([g(0x7,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),g(0x8,a['Inject'](_[_0x5ea8e9(0x54f)])),g(0x9,a[_0x5ea8e9(0x3c8)](exports['LocalCacheService'])),g(0xa,a[_0x5ea8e9(0x486)]),g(0xb,a[_0x5ea8e9(0x38c)]),g(0xc,a['IUndoRedoService']),g(0xd,_[_0x5ea8e9(0x51a)])],x);function wt(_0x45bfd8,_0x24067a,_0xe5acad,_0x2e6ee7,_0x9f7720,_0x37d7dd){const _0x584a27=_0x5ea8e9;return _0x2e6ee7&&_0x9f7720[_0x584a27(0x23b)]?_0x45bfd8[_0x584a27(0x52c)](B,_0x24067a,_0xe5acad,_0x2e6ee7,_0x9f7720,_0x37d7dd,void 0x0):_0x2e6ee7?_0x45bfd8[_0x584a27(0x52c)](W,_0x24067a,_0xe5acad,_0x2e6ee7,_0x37d7dd):_0x9f7720[_0x584a27(0x23b)]?_0x45bfd8[_0x584a27(0x52c)](k,_0x24067a,_0xe5acad,_0x9f7720,_0x37d7dd):_0x45bfd8[_0x584a27(0x52c)](ie,_0x24067a,_0xe5acad,_0x37d7dd);}var Xs=Object[_0x5ea8e9(0x16c)],zs=Object[_0x5ea8e9(0x1df)],ze=(_0x22721e,_0x329fb5,_0x5c8575,_0x47bdae)=>{for(var _0xddffb2=_0x47bdae>0x1?void 0x0:_0x47bdae?zs(_0x329fb5,_0x5c8575):_0x329fb5,_0x3f1ab1=_0x22721e['length']-0x1,_0x55c44a;_0x3f1ab1>=0x0;_0x3f1ab1--)(_0x55c44a=_0x22721e[_0x3f1ab1])&&(_0xddffb2=(_0x47bdae?_0x55c44a(_0x329fb5,_0x5c8575,_0xddffb2):_0x55c44a(_0xddffb2))||_0xddffb2);return _0x47bdae&&_0xddffb2&&Xs(_0x329fb5,_0x5c8575,_0xddffb2),_0xddffb2;},p=(_0x440711,_0x596321)=>(_0x3fe944,_0x36bd8b)=>_0x596321(_0x3fe944,_0x36bd8b,_0x440711);exports[_0x5ea8e9(0x561)]=class extends a[_0x5ea8e9(0x32e)]{constructor(_0x42c5d2,_0x11e1fa,_0x8f5ecd,_0x471f49,_0x11ba3a,_0x2df072,_0x297f28,_0x5e75ae,_0x479731,_0x2d9e96,_0x122427,_0x4fd87e,_0xeeffb1){const _0x581a5a=_0x5ea8e9;super(),u(this,_0x581a5a(0x3e3),new v[(_0x581a5a(0x30e))](null)),u(this,'state$',this[_0x581a5a(0x3e3)][_0x581a5a(0x19d)]()),u(this,_0x581a5a(0x526)),u(this,_0x581a5a(0x1e4),!0x1),u(this,_0x581a5a(0x19f),''),u(this,_0x581a5a(0x1e7),0x0),u(this,_0x581a5a(0x4ee),this[_0x581a5a(0x23c)][_0x581a5a(0x286)](v[_0x581a5a(0x558)](_0x1e54e1=>_0x1e54e1?_0x1e54e1[_0x581a5a(0x2d6)]:U[_0x581a5a(0x2c3)]),v[_0x581a5a(0x277)](0x1))),u(this,_0x581a5a(0x50b),!0x1),u(this,_0x581a5a(0x3a3),[]),(this['unitID']=_0x42c5d2,this[_0x581a5a(0x359)]=_0x11e1fa,this[_0x581a5a(0x214)]=_0x8f5ecd,this[_0x581a5a(0x19a)]=_0x471f49,this[_0x581a5a(0x4ed)]=_0x11ba3a,this[_0x581a5a(0x1e3)]=_0x2df072,this['_localeService']=_0x297f28,this['_revisionService']=_0x5e75ae,this[_0x581a5a(0x1d5)]=_0x479731,this['_commandService']=_0x2d9e96,this['_messageService']=_0x122427,this[_0x581a5a(0x1c7)]=_0x4fd87e,this[_0x581a5a(0x19e)]=_0xeeffb1);}get[_0x5ea8e9(0x23e)](){const _0xa51046=_0x5ea8e9;return this[_0xa51046(0x526)];}async['init'](){const _0xbb681=_0x5ea8e9;if(this[_0xbb681(0x23e)])throw new Error(_0xbb681(0x22a));await this[_0xbb681(0x319)]();}['pauseCollaboration'](){const _0x5b8870=_0x5ea8e9;return this[_0x5b8870(0x1e4)]=!0x0,a[_0x5b8870(0x36a)](()=>{const _0x31bb07=_0x5b8870;this[_0x31bb07(0x1e4)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x2162a9){const _0xb041e9=_0x5ea8e9;this[_0xb041e9(0x526)]=_0x2162a9,this[_0xb041e9(0x3e3)][_0xb041e9(0x348)](_0x2162a9);}async[_0x5ea8e9(0x319)](){const _0x598518=_0x5ea8e9;var _0x119e2f;this['_updateState'](await this[_0x598518(0x1f0)]()),this[_0x598518(0x19e)]&&((_0x119e2f=this[_0x598518(0x19e)])==null||_0x119e2f[_0x598518(0x25a)](this[_0x598518(0x46c)]),this['disposeWithMe'](this[_0x598518(0x19e)]['getUnitStatus$'](this['unitID'])[_0x598518(0x21d)](_0x48162f=>{const _0x538da5=_0x598518;this[_0x538da5(0x1d5)][_0x538da5(0x333)](_0x538da5(0x198),'editing\x20status\x20changed\x20to',_0x48162f),_0x48162f===Dt[_0x538da5(0x4e3)]?(this['_messageService'][_0x538da5(0x2e0)]({'content':this[_0x538da5(0x29f)]['t']('collaboration.single-unit.warning'),'type':q[_0x538da5(0x3e5)][_0x538da5(0x2d2)]}),this[_0x538da5(0x1c7)][_0x538da5(0x1bc)](new C[(_0x538da5(0x276))](this[_0x538da5(0x46c)])['id'],!0x1)):this[_0x538da5(0x1c7)][_0x538da5(0x1bc)](new C[(_0x538da5(0x276))](this[_0x538da5(0x46c)])['id'],!0x0);})));let _0x20a86c=!0x1;return this[_0x598518(0x568)](this[_0x598518(0x359)][_0x598518(0x482)]['subscribe'](_0x153764=>{const _0x50a5bb=_0x598518;_0x153764===H['ONLINE']?this[_0x50a5bb(0x21b)](_0x20a86c):_0x153764===H[_0x50a5bb(0x2c3)]&&(_0x20a86c=!0x0,this[_0x50a5bb(0x45a)]());})),this[_0x598518(0x568)](this['session'][_0x598518(0x145)][_0x598518(0x21d)](_0x379361=>{const _0x538dd0=_0x598518;try{switch(_0x379361[_0x538dd0(0x3f1)]){case _['CollaborationEvent'][_0x538dd0(0x485)]:{this['_onRemoteChangeset'](_['parseProtocolChangeset'](_0x379361[_0x538dd0(0x527)]));break;}case _[_0x538dd0(0x50c)][_0x538dd0(0x26c)]:{this['_onRemoteACK'](_0x379361[_0x538dd0(0x527)]);break;}case _['CollaborationEvent'][_0x538dd0(0x1e1)]:{this[_0x538dd0(0x523)]();break;}case _[_0x538dd0(0x50c)][_0x538dd0(0x357)]:{this[_0x538dd0(0x136)](_0x379361[_0x538dd0(0x527)]);break;}case _[_0x538dd0(0x50c)][_0x538dd0(0x212)]:{this[_0x538dd0(0x562)](_0x379361['data'][_0x538dd0(0x28f)][_0x538dd0(0x558)](_0x49c8f0=>_[_0x538dd0(0x28d)](_0x49c8f0)));break;}case _[_0x538dd0(0x50c)][_0x538dd0(0x14e)]:this[_0x538dd0(0x523)]({'isPermissionRej':!0x0});}}catch(_0x19de2f){throw console['error'](_0x538dd0(0x28c),_0x19de2f),_0x19de2f;}})),this[_0x598518(0x526)];}[_0x5ea8e9(0x3b1)](){const _0x374a61=_0x5ea8e9;this[_0x374a61(0x50b)]=!0x1;}[_0x5ea8e9(0x2c4)](){const _0x49a0bf=_0x5ea8e9;if(this['_transitionLocked'])throw new Error(_0x49a0bf(0x505));this[_0x49a0bf(0x50b)]=!0x0;}[_0x5ea8e9(0x4fd)](_0x1c35f7){const _0x3fee94=_0x5ea8e9;this[_0x3fee94(0x2c4)](),this[_0x3fee94(0x376)](this[_0x3fee94(0x526)][_0x3fee94(0x30c)](_0x1c35f7)),this[_0x3fee94(0x3b1)]();}['_onRemoteChangeset'](_0x30ea5f){const _0x283769=_0x5ea8e9;if(!(_0x30ea5f[_0x283769(0x43e)]<=this[_0x283769(0x478)][_0x283769(0x1f7)](this[_0x283769(0x46c)]))){if(this[_0x283769(0x1e4)]){this[_0x283769(0x3a3)][_0x283769(0x3e0)](_0x30ea5f);return;}this[_0x283769(0x2d1)](_0x30ea5f);}}['_exhaustRemoteChangesetQueue'](){const _0x4db6ff=_0x5ea8e9;this['_remoteChangesetQueue'][_0x4db6ff(0x4f0)](_0x4668e8=>this['_applyRemoteChangeset'](_0x4668e8)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0xe765fa){const _0x3a9c7e=_0x5ea8e9,_0x577407=this[_0x3a9c7e(0x1e3)]['interceptor']['fetchThroughInterceptors'](this[_0x3a9c7e(0x1e3)]['interceptor'][_0x3a9c7e(0x35e)]()[_0x3a9c7e(0x56a)])(_0xe765fa[_0x3a9c7e(0x220)],null)||_0xe765fa[_0x3a9c7e(0x220)],_0x23a7a2={..._0xe765fa,'mutations':_0x577407};this[_0x3a9c7e(0x2c4)](),this['_updateState'](this[_0x3a9c7e(0x526)][_0x3a9c7e(0x56e)](_0x23a7a2)),this[_0x3a9c7e(0x3b1)]();}['_onRemoteACK'](_0x3c3e37){const _0x294e84=_0x5ea8e9;this['_lockTransition'](),this[_0x294e84(0x376)](this[_0x294e84(0x526)][_0x294e84(0x484)](_0x3c3e37)),this[_0x294e84(0x3b1)]();}[_0x5ea8e9(0x523)](_0x2fa206){const _0x1502b3=_0x5ea8e9;this['_lockTransition'](),this['_updateState'](this[_0x1502b3(0x526)][_0x1502b3(0x3aa)](_0x2fa206)),this[_0x1502b3(0x3b1)]();}['_onRemoteRetry'](_0x23e487){const _0x41c92d=_0x5ea8e9;this[_0x41c92d(0x2c4)](),this[_0x41c92d(0x376)](this[_0x41c92d(0x526)][_0x41c92d(0x4c6)](_0x23e487)),this[_0x41c92d(0x3b1)]();}[_0x5ea8e9(0x562)](_0x24f964){const _0x58b888=_0x5ea8e9;if(!(this[_0x58b888(0x526)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x160543=_0x24f964[_0x58b888(0x558)](_0x1799df=>{const _0x3f2210=_0x58b888,_0xc74ffa=this[_0x3f2210(0x1e3)][_0x3f2210(0x295)][_0x3f2210(0x3e4)](this[_0x3f2210(0x1e3)][_0x3f2210(0x295)][_0x3f2210(0x35e)]()[_0x3f2210(0x56a)])(_0x1799df[_0x3f2210(0x220)],null)||_0x1799df[_0x3f2210(0x220)];return{..._0x1799df,'mutations':_0xc74ffa};});this[_0x58b888(0x2c4)](),this[_0x58b888(0x376)](this[_0x58b888(0x526)]['onMissedChangesetFetched'](_0x160543)),this['_unlockTransition']();}[_0x5ea8e9(0x45a)](){const _0x47096e=_0x5ea8e9;this['_lockTransition'](),this[_0x47096e(0x376)](this[_0x47096e(0x526)][_0x47096e(0x2fb)]()),this[_0x47096e(0x3b1)]();}[_0x5ea8e9(0x21b)](_0x13a3e4=!0x1){const _0x3dda41=_0x5ea8e9;this[_0x3dda41(0x2c4)](),this[_0x3dda41(0x376)](this['_state'][_0x3dda41(0x2a3)]()),this[_0x3dda41(0x3b1)]();const _0x6fc4f2=this[_0x3dda41(0x526)];_0x13a3e4&&_0x6fc4f2 instanceof ie&&(this[_0x3dda41(0x2c4)](),this[_0x3dda41(0x376)](_0x6fc4f2['fetchMiss']()),this['_unlockTransition']());}async[_0x5ea8e9(0x1f0)](){return new Promise(_0x11ec53=>{const _0x139cb3=_0x2fbf;this['session'][_0x139cb3(0x482)][_0x139cb3(0x286)](v[_0x139cb3(0x2f8)](0x1))[_0x139cb3(0x21d)](async _0x3b9557=>{const _0x52c5eb=_0x139cb3;_0x11ec53(await this[_0x52c5eb(0x422)](_0x3b9557===H[_0x52c5eb(0x41a)]));});});}[_0x5ea8e9(0x1f3)](){const _0x2f3c2f=_0x5ea8e9,_0x1d00c7=this[_0x2f3c2f(0x46c)];return{'onStateChange':(_0x3477bf,_0x55ac3f)=>{const _0x19035b=_0x2f3c2f;if(_0x3477bf!==this[_0x19035b(0x526)])throw new Error(_0x19035b(0x2b6)+_0x3477bf[_0x19035b(0x2d6)]+_0x19035b(0x30f)+_0x55ac3f['status']+_0x19035b(0x47b)+this['_state'][_0x19035b(0x2d6)]);this[_0x19035b(0x376)](_0x55ac3f);},'onSendChangeset':_0x298765=>{const _0x494808=_0x2f3c2f;_0x298765[_0x494808(0x3c0)]||(_0x298765['sid']=this[_0x494808(0x19f)],_0x298765[_0x494808(0x3c6)]=++this[_0x494808(0x1e7)]);const _0x2ce30f={'eventID':_[_0x494808(0x50c)][_0x494808(0x38a)],'data':{'unitID':_0x298765[_0x494808(0x46c)],'unitType':this[_0x494808(0x214)],'changeset':_0x298765,'memberID':this[_0x494808(0x359)][_0x494808(0x1d4)]()}};this[_0x494808(0x359)][_0x494808(0x466)](_0x2ce30f,this[_0x494808(0x46c)]);},'onMissingChangesets':({from:_0x28e305,to:_0x16329b})=>{const _0x6129ee=_0x2f3c2f;this[_0x6129ee(0x1d5)]['debug'](_0x6129ee(0x198),_0x6129ee(0x32a)+_0x28e305+'\x20to\x20'+_0x16329b);const _0x49c862={'eventID':_[_0x6129ee(0x50c)][_0x6129ee(0x365)],'data':{'unitID':_0x1d00c7,'unitType':this['_type'],'from':_0x28e305,'to':_0x16329b}};this[_0x6129ee(0x359)][_0x6129ee(0x466)](_0x49c862,this[_0x6129ee(0x46c)]);}};}async['_createInitialStateImpl'](_0x5bf307){const _0x3b85cc=_0x5ea8e9;var _0x582ac1,_0x4d669c;const _0x22f7df=await this[_0x3b85cc(0x4ed)]['loadOfflineData'](this[_0x3b85cc(0x46c)]),_0x43e153=(_0x582ac1=_0x22f7df==null?void 0x0:_0x22f7df[_0x3b85cc(0x220)])!=null?_0x582ac1:[],_0x49cf1d=(_0x4d669c=_0x22f7df==null?void 0x0:_0x22f7df[_0x3b85cc(0x516)])!=null?_0x4d669c:null,_0x2ce007=!!(_0x49cf1d!=null&&_0x49cf1d[_0x3b85cc(0x3c0)])&&!!(_0x49cf1d!=null&&_0x49cf1d[_0x3b85cc(0x3c6)]);this[_0x3b85cc(0x19f)]=_0x2ce007?_0x49cf1d[_0x3b85cc(0x3c0)]:ys(),this[_0x3b85cc(0x1e7)]=_0x2ce007?_0x49cf1d['reqId']:0x0;const _0x4e764a=this['unitID'];try{this[_0x3b85cc(0x4d5)](_0x49cf1d,_0x43e153);}catch(_0x310aef){this[_0x3b85cc(0x1d5)][_0x3b85cc(0x272)](_0x310aef);}const _0x28e45b=this['_createHandler']();if(_0x5bf307){const _0x2c2731=wt(this[_0x3b85cc(0x19a)],_0x4e764a,this['_type'],_0x49cf1d,_0x43e153,_0x28e45b);return _0x2c2731 instanceof k?_0x2c2731[_0x3b85cc(0x33c)]():(_0x2c2731 instanceof B||_0x2c2731 instanceof W)&&_0x2c2731[_0x3b85cc(0x2b7)](),_0x2c2731;}return this['_injector'][_0x3b85cc(0x52c)](G,_0x4e764a,this['_type'],_0x49cf1d,_0x43e153,_0x28e45b);}[_0x5ea8e9(0x4d5)](_0x553613,_0xf2d5dc){const _0x1bc95b=_0x5ea8e9;var _0x5ea786,_0x3154ea;const _0x3244ac=this[_0x1bc95b(0x1e3)][_0x1bc95b(0x295)][_0x1bc95b(0x3e4)](this[_0x1bc95b(0x1e3)][_0x1bc95b(0x295)][_0x1bc95b(0x35e)]()[_0x1bc95b(0x56a)]);(_0x5ea786=_0x3244ac((_0x553613==null?void 0x0:_0x553613[_0x1bc95b(0x220)])||[],null))==null||_0x5ea786[_0x1bc95b(0x4f0)](_0x306671=>this[_0x1bc95b(0x1ec)]['executeCommand'](_0x306671['id'],_0x306671[_0x1bc95b(0x2b4)])),(_0x3154ea=_0x3244ac(_0xf2d5dc||[],null))==null||_0x3154ea[_0x1bc95b(0x4f0)](_0x55bc41=>this[_0x1bc95b(0x1ec)][_0x1bc95b(0x388)](_0x55bc41['id'],_0x55bc41[_0x1bc95b(0x2b4)]));}},exports[_0x5ea8e9(0x561)]=ze([p(0x3,a['Inject'](a[_0x5ea8e9(0x14b)])),p(0x4,a[_0x5ea8e9(0x3c8)](exports['LocalCacheService'])),p(0x5,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x3f7)])),p(0x6,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x202)])),p(0x7,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x54f)])),p(0x8,a['ILogService']),p(0x9,a[_0x5ea8e9(0x38c)]),p(0xa,A['IMessageService']),p(0xb,a['IPermissionService']),p(0xc,a[_0x5ea8e9(0x2b0)](Re))],exports['CollaborationEntity']),exports[_0x5ea8e9(0x236)]=class extends exports[_0x5ea8e9(0x561)]{constructor(_0x1bb142,_0x1c50d2,_0x2f9790,_0x3a123a,_0x4f7769,_0x232adb,_0x2b39c2,_0x4502d8,_0x199404,_0x38e3e5,_0x11aafa,_0x3e4304,_0x25172d,_0x9a94a9,_0x215071,_0x140c8f,_0x956690){const _0x4d40b3=_0x5ea8e9;super(_0x1bb142,_0x2f9790,_0x1c50d2,_0x3a123a,_0x4f7769,_0x232adb,_0x2b39c2,_0x4502d8,_0x25172d,_0x9a94a9,_0x215071,_0x140c8f,_0x956690),this[_0x4d40b3(0x46c)]=_0x1bb142,this[_0x4d40b3(0x335)]=_0x1c50d2,this[_0x4d40b3(0x353)]=_0x199404,this[_0x4d40b3(0x4de)]=_0x38e3e5,this[_0x4d40b3(0x385)]=_0x11aafa,this['_docSyncEditingCollabCursorService']=_0x3e4304;}[_0x5ea8e9(0x1f3)](){const _0x4062be=_0x5ea8e9,_0x12f309=super[_0x4062be(0x1f3)]();return _0x12f309[_0x4062be(0x459)]=_0x51a9d2=>this[_0x4062be(0x4de)][_0x4062be(0x164)](_0x51a9d2),_0x12f309[_0x4062be(0x565)]=_0x5ab1d1=>this[_0x4062be(0x385)][_0x4062be(0x3ff)](_0x5ab1d1),_0x12f309['onSyncEditingCollabCursor']=_0x5d1756=>this['_docSyncEditingCollabCursorService'][_0x4062be(0x31e)](_0x5d1756),_0x12f309[_0x4062be(0x1f2)]=_0x40855b=>this[_0x4062be(0x4de)][_0x4062be(0x16d)](_0x40855b),_0x12f309;}async[_0x5ea8e9(0x319)](){const _0x2daa81=_0x5ea8e9,_0x69902d=await super[_0x2daa81(0x319)]();return this[_0x2daa81(0x353)][_0x2daa81(0x4d7)][_0x2daa81(0x286)](v[_0x2daa81(0x314)](this[_0x2daa81(0x1a0)]))[_0x2daa81(0x21d)](_0x47217c=>{const _0x4b4119=_0x2daa81;if(_0x47217c==null)return;const {unitId:_0x125a14,redoState:_0x1b3881,commandId:_0x390bd9}=_0x47217c;if(_0x125a14!==this[_0x4b4119(0x46c)])return;const _0x460605={'id':_0x390bd9,'type':a[_0x4b4119(0x3df)][_0x4b4119(0x1a5)],'params':{'unitId':_0x125a14,'actions':_0x1b3881[_0x4b4119(0x515)],'textRanges':null}};this[_0x4b4119(0x4fd)](_0x460605);}),_0x69902d;}},exports[_0x5ea8e9(0x236)]=ze([p(0x3,a[_0x5ea8e9(0x3c8)](a['Injector'])),p(0x4,a[_0x5ea8e9(0x3c8)](exports[_0x5ea8e9(0x200)])),p(0x5,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x3f7)])),p(0x6,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x202)])),p(0x7,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x54f)])),p(0x8,a[_0x5ea8e9(0x3c8)](N[_0x5ea8e9(0x31c)])),p(0x9,a[_0x5ea8e9(0x3c8)](fe)),p(0xa,a[_0x5ea8e9(0x3c8)](pe)),p(0xb,a[_0x5ea8e9(0x3c8)](Xe)),p(0xc,a[_0x5ea8e9(0x486)]),p(0xd,a['ICommandService']),p(0xe,A[_0x5ea8e9(0x4a9)]),p(0xf,a[_0x5ea8e9(0x3e8)]),p(0x10,a[_0x5ea8e9(0x2b0)](Re))],exports[_0x5ea8e9(0x236)]),exports[_0x5ea8e9(0x176)]=class extends exports[_0x5ea8e9(0x561)]{constructor(_0x58fc34,_0x35e4f9,_0x186ef7,_0x40e92d,_0x11835b,_0x42cfa7,_0x55a35a,_0x1fb905,_0x5f04b7,_0xac2322,_0x2aafde,_0x12f209,_0x41a4ed,_0x57732d){const _0x3a7be9=_0x5ea8e9;super(_0x58fc34,_0x186ef7,_0x35e4f9,_0x40e92d,_0x11835b,_0x42cfa7,_0x55a35a,_0x1fb905,_0xac2322,_0x2aafde,_0x12f209,_0x41a4ed,_0x57732d),this[_0x3a7be9(0x46c)]=_0x58fc34,this[_0x3a7be9(0x335)]=_0x35e4f9,this[_0x3a7be9(0x278)]=_0x5f04b7;}[_0x5ea8e9(0x1f3)](){const _0x4b6d17=_0x5ea8e9,_0x4c105a=super['_createHandler']();return _0x4c105a[_0x4b6d17(0x565)]=_0x1896fc=>this[_0x4b6d17(0x278)]['transformSelections'](_0x1896fc),_0x4c105a;}async['_init'](){const _0x15343a=_0x5ea8e9,_0x2c62a4=await super[_0x15343a(0x319)]();return this[_0x15343a(0x568)](this[_0x15343a(0x1ec)][_0x15343a(0x20c)]((_0x43e093,_0x4106e1)=>{const _0x251bb3=_0x15343a;if(_0x43e093[_0x251bb3(0x335)]!==a[_0x251bb3(0x3df)]['MUTATION']||_0x4106e1!=null&&_0x4106e1['fromCollab']||_0x4106e1!=null&&_0x4106e1[_0x251bb3(0x1af)])return;const _0x30fbfb=_0x43e093[_0x251bb3(0x2b4)];if((_0x30fbfb==null?void 0x0:_0x30fbfb['unitId'])!==this[_0x251bb3(0x46c)])return;const _0x1a3937=_0x43e093,_0xdcf02d=this[_0x251bb3(0x1e3)][_0x251bb3(0x295)][_0x251bb3(0x3e4)](this[_0x251bb3(0x1e3)][_0x251bb3(0x295)][_0x251bb3(0x35e)]()[_0x251bb3(0x4ec)])([_0x1a3937],null)||[_0x1a3937];this[_0x251bb3(0x4fd)](_0xdcf02d[0x0]);})),_0x2c62a4;}},exports[_0x5ea8e9(0x176)]=ze([p(0x3,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),p(0x4,a['Inject'](exports[_0x5ea8e9(0x200)])),p(0x5,a['Inject'](_['CompressMutationService'])),p(0x6,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x202)])),p(0x7,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x54f)])),p(0x8,a[_0x5ea8e9(0x3c8)](Ie)),p(0x9,a[_0x5ea8e9(0x486)]),p(0xa,a[_0x5ea8e9(0x38c)]),p(0xb,A['IMessageService']),p(0xc,a[_0x5ea8e9(0x3e8)]),p(0xd,a[_0x5ea8e9(0x2b0)](Re))],exports[_0x5ea8e9(0x176)]);function _0x2fbf(_0x3a412c,_0x3b5c9c){const _0x275d85=_0x275d();return _0x2fbf=function(_0x2fbfe9,_0x480201){_0x2fbfe9=_0x2fbfe9-0x135;let _0x35a1a4=_0x275d85[_0x2fbfe9];return _0x35a1a4;},_0x2fbf(_0x3a412c,_0x3b5c9c);}var Js=Object['defineProperty'],Zs=Object[_0x5ea8e9(0x1df)],Qs=(_0x274603,_0x1f1dba,_0x2ebf6b,_0x41b7b7)=>{const _0x247cea=_0x5ea8e9;for(var _0x22f0b5=_0x41b7b7>0x1?void 0x0:_0x41b7b7?Zs(_0x1f1dba,_0x2ebf6b):_0x1f1dba,_0x14c616=_0x274603[_0x247cea(0x23b)]-0x1,_0x452c96;_0x14c616>=0x0;_0x14c616--)(_0x452c96=_0x274603[_0x14c616])&&(_0x22f0b5=(_0x41b7b7?_0x452c96(_0x1f1dba,_0x2ebf6b,_0x22f0b5):_0x452c96(_0x22f0b5))||_0x22f0b5);return _0x41b7b7&&_0x22f0b5&&Js(_0x1f1dba,_0x2ebf6b,_0x22f0b5),_0x22f0b5;},Ne=(_0x5cb4d1,_0x2b8880)=>(_0x357ae9,_0x2a3e05)=>_0x2b8880(_0x357ae9,_0x2a3e05,_0x5cb4d1);exports[_0x5ea8e9(0x54e)]=class extends a['RxDisposable']{constructor(_0x4c2e84,_0x2b6d1f,_0x4415ef){const _0x2e40f7=_0x5ea8e9;super(),u(this,_0x2e40f7(0x4c2),new Map()),u(this,'_entityInit$',new v['Subject']()),(this['_injector']=_0x4c2e84,this[_0x2e40f7(0x1a2)]=_0x2b6d1f,this['_univerInstanceService']=_0x4415ef,this['_init']());}[_0x5ea8e9(0x1f5)](){const _0xa429c5=_0x5ea8e9;super[_0xa429c5(0x1f5)](),this['_entities'][_0xa429c5(0x4f0)](_0x2fa221=>_0x2fa221['dispose']()),this[_0xa429c5(0x4c2)][_0xa429c5(0x4a5)]();}['getCollabEntity'](_0x59c895){const _0x3298ca=_0x5ea8e9;var _0x3bd79b;return(_0x3bd79b=this[_0x3298ca(0x4c2)][_0x3298ca(0x1eb)](_0x59c895))!=null?_0x3bd79b:null;}[_0x5ea8e9(0x27e)](_0x3bba6f){const _0x43e36e=_0x5ea8e9,_0x2b7704=this['getCollabEntity'](_0x3bba6f);return _0x2b7704?v['of'](_0x2b7704):this[_0x43e36e(0x528)][_0x43e36e(0x286)](E[_0x43e36e(0x207)](_0x42880e=>_0x42880e[_0x43e36e(0x46c)]===_0x3bba6f));}['_init'](){const _0x23f1de=_0x5ea8e9;this[_0x23f1de(0x1be)][_0x23f1de(0x4b0)](a[_0x23f1de(0x3a9)][_0x23f1de(0x2ae)])[_0x23f1de(0x286)](v[_0x23f1de(0x314)](this['dispose$']),E['delay'](0x10))['subscribe'](async _0x336c63=>{const _0x58d1c5=_0x23f1de,_0x55d001=_0x336c63['getUnitId'](),_0x53b61e=await this[_0x58d1c5(0x45e)](_0x55d001,$[_0x58d1c5(0x2ae)]);this[_0x58d1c5(0x4c2)][_0x58d1c5(0x1aa)](_0x55d001,_0x53b61e);}),this[_0x23f1de(0x1be)][_0x23f1de(0x4b0)](a[_0x23f1de(0x3a9)]['UNIVER_DOC'])[_0x23f1de(0x286)](v[_0x23f1de(0x314)](this[_0x23f1de(0x1a0)]),E[_0x23f1de(0x35b)](0x10))[_0x23f1de(0x286)](E['filter'](_0x4713d1=>!_0x4713d1[_0x23f1de(0x55a)]()[_0x23f1de(0x331)]('__')))[_0x23f1de(0x21d)](async _0x57b05a=>{const _0x459797=_0x23f1de,_0x11a390=_0x57b05a[_0x459797(0x55a)](),_0x548ed7=await this['_startCollaboration'](_0x11a390,$['UNIVER_DOC']);this[_0x459797(0x4c2)][_0x459797(0x1aa)](_0x11a390,_0x548ed7);}),v[_0x23f1de(0x24b)](this[_0x23f1de(0x1be)][_0x23f1de(0x268)](a[_0x23f1de(0x3a9)]['UNIVER_SHEET']),this[_0x23f1de(0x1be)][_0x23f1de(0x268)](a['UniverInstanceType'][_0x23f1de(0x2de)]))['pipe'](v[_0x23f1de(0x314)](this[_0x23f1de(0x1a0)]))['subscribe'](_0x4b0338=>{const _0x497f03=_0x23f1de,_0x10c710=_0x4b0338[_0x497f03(0x55a)](),_0x278878=this['_entities'][_0x497f03(0x1eb)](_0x10c710);_0x278878&&(_0x278878[_0x497f03(0x1f5)](),this['_entities'][_0x497f03(0x307)](_0x10c710));});}async['_startCollaboration'](_0x24e581,_0x369713){const _0x4a0130=_0x5ea8e9,_0x5547af=await this[_0x4a0130(0x1a2)][_0x4a0130(0x33b)](_0x24e581),_0x3e6e50=this[_0x4a0130(0x19a)]['createInstance'](this[_0x4a0130(0x401)](_0x369713),_0x24e581,_0x369713,_0x5547af);return await _0x3e6e50[_0x4a0130(0x360)](),this[_0x4a0130(0x528)][_0x4a0130(0x348)](_0x3e6e50),_0x3e6e50;}[_0x5ea8e9(0x401)](_0x1ff51e){const _0x46033b=_0x5ea8e9;switch(_0x1ff51e){case $[_0x46033b(0x2de)]:return exports[_0x46033b(0x236)];case $['UNIVER_SHEET']:return exports['SheetCollaborationEntity'];default:throw new Error(_0x46033b(0x4e7)+_0x1ff51e);}}},exports[_0x5ea8e9(0x54e)]=Qs([Ne(0x0,a['Inject'](a[_0x5ea8e9(0x14b)])),Ne(0x1,a['Inject'](exports[_0x5ea8e9(0x550)])),Ne(0x2,a[_0x5ea8e9(0x36b)])],exports[_0x5ea8e9(0x54e)]);const ct=['purple300',_0x5ea8e9(0x2be),'verdancy600','red300',_0x5ea8e9(0x4c9),_0x5ea8e9(0x203)];class Je extends a[_0x5ea8e9(0x213)]{constructor(){const _0x9551ad=_0x5ea8e9;super(...arguments),u(this,_0x9551ad(0x4f4),new Map()),u(this,_0x9551ad(0x302),0x0);}[_0x5ea8e9(0x17e)](_0x1cb8c4){const _0x1455b0=_0x5ea8e9;if(this[_0x1455b0(0x4f4)][_0x1455b0(0x240)](_0x1cb8c4))return this[_0x1455b0(0x4f4)][_0x1455b0(0x1eb)](_0x1cb8c4);const _0x4620ff=ct[this[_0x1455b0(0x302)]];return this[_0x1455b0(0x302)]=(this[_0x1455b0(0x302)]+0x1)%ct[_0x1455b0(0x23b)],this['_assignedColors']['set'](_0x1cb8c4,_0x4620ff),_0x4620ff;}}var ei=Object[_0x5ea8e9(0x16c)],ti=Object[_0x5ea8e9(0x1df)],si=(_0x59c727,_0x1d4891,_0x16adf6,_0x6a0a52)=>{const _0x22b5bc=_0x5ea8e9;for(var _0x24a1a2=_0x6a0a52>0x1?void 0x0:_0x6a0a52?ti(_0x1d4891,_0x16adf6):_0x1d4891,_0x4caf54=_0x59c727[_0x22b5bc(0x23b)]-0x1,_0x20747f;_0x4caf54>=0x0;_0x4caf54--)(_0x20747f=_0x59c727[_0x4caf54])&&(_0x24a1a2=(_0x6a0a52?_0x20747f(_0x1d4891,_0x16adf6,_0x24a1a2):_0x20747f(_0x24a1a2))||_0x24a1a2);return _0x6a0a52&&_0x24a1a2&&ei(_0x1d4891,_0x16adf6,_0x24a1a2),_0x24a1a2;},K=(_0x261025,_0x235c5c)=>(_0x26dd78,_0x10b165)=>_0x235c5c(_0x26dd78,_0x10b165,_0x261025);const ii=0x12c,ni=0x64;let ke=class extends a['RxDisposable']{constructor(_0x5cea25,_0xe124fd,_0x583b73,_0x73d26f,_0x36397f,_0x76c95,_0x469811,_0xfb3a35,_0x567793){const _0x2ef010=_0x5ea8e9;super(),u(this,_0x2ef010(0x29d),!0x1),u(this,_0x2ef010(0x319),!0x1),u(this,_0x2ef010(0x3c2),new v[(_0x2ef010(0x30e))](new Map())),u(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),u(this,_0x2ef010(0x427),new v[(_0x2ef010(0x30e))]([])),u(this,_0x2ef010(0x4a6),this[_0x2ef010(0x427)][_0x2ef010(0x286)](v[_0x2ef010(0x49e)](ii))),u(this,_0x2ef010(0x2e7),a[_0x2ef010(0x25e)](_0xf6225a=>{const _0x26bcbe=_0x2ef010,_0x121f2c={'eventID':_['CollaborationEvent'][_0x26bcbe(0x368)],'data':{'unitID':this[_0x26bcbe(0x46c)],'memberID':this[_0x26bcbe(0x44e)][_0x26bcbe(0x1d4)](),'selection':yt(_0xf6225a)}};this[_0x26bcbe(0x44e)][_0x26bcbe(0x466)](_0x121f2c,this[_0x26bcbe(0x46c)]);},ni)),(this['unitID']=_0x5cea25,this[_0x2ef010(0x44e)]=_0xe124fd,this['_injector']=_0x583b73,this[_0x2ef010(0x3f5)]=_0x73d26f,this['_memberService']=_0x36397f,this[_0x2ef010(0x2f2)]=_0x76c95,this[_0x2ef010(0x3cf)]=_0x469811,this['_univerInstanceService']=_0xfb3a35,this[_0x2ef010(0x1ec)]=_0x567793);}get['cursorInfo'](){const _0x2fcf98=_0x5ea8e9;return this['_cursorInfo$'][_0x2fcf98(0x322)]();}get[_0x5ea8e9(0x408)](){return this['_roomMembers$']['getValue']();}[_0x5ea8e9(0x1f5)](){const _0x3870ee=_0x5ea8e9;super['dispose'](),this[_0x3870ee(0x3c2)][_0x3870ee(0x348)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x3870ee(0x348)]([]),this[_0x3870ee(0x427)][_0x3870ee(0x27d)]();}[_0x5ea8e9(0x360)](){const _0x16eac8=_0x5ea8e9;this['_init']||(this[_0x16eac8(0x319)]=!0x0,this[_0x16eac8(0x44e)][_0x16eac8(0x482)][_0x16eac8(0x286)](v['takeUntil'](this['dispose$']))[_0x16eac8(0x21d)](_0xbf060f=>{const _0x13d789=_0x16eac8;_0xbf060f===H[_0x13d789(0x41a)]?this['_toggleOnline']():this[_0x13d789(0x45a)]();}),this[_0x16eac8(0x44e)][_0x16eac8(0x145)][_0x16eac8(0x286)](v[_0x16eac8(0x314)](this[_0x16eac8(0x1a0)]))['subscribe'](_0x122d62=>{const _0x4a7be7=_0x16eac8,_0x38a367=_0x122d62[_0x4a7be7(0x3f1)];_0x38a367===_[_0x4a7be7(0x50c)][_0x4a7be7(0x368)]&&this[_0x4a7be7(0x2d7)](_0x122d62),_0x38a367===_[_0x4a7be7(0x50c)][_0x4a7be7(0x160)]&&this[_0x4a7be7(0x2f4)](_0x122d62);}),this['disposeWithMe'](this[_0x16eac8(0x1ec)][_0x16eac8(0x20c)](_0x21a73d=>{const _0x509e2b=_0x16eac8,_0x4defef=_0x21a73d[_0x509e2b(0x2b4)];_0x4defef!=null&&this['_online']&&_0x21a73d['id']===se[_0x509e2b(0x27c)]['id']&&_0x4defef[_0x509e2b(0x21c)]===this[_0x509e2b(0x46c)]&&_0x4defef[_0x509e2b(0x168)]===!0x1&&this[_0x509e2b(0x2e7)](_0x4defef[_0x509e2b(0x27a)]);})),this[_0x16eac8(0x2f2)][_0x16eac8(0x13a)][_0x16eac8(0x286)](v['takeUntil'](this['dispose$']))[_0x16eac8(0x21d)](_0x4a1c25=>{const _0x1bdb9b=_0x16eac8;if((_0x4a1c25==null?void 0x0:_0x4a1c25[_0x1bdb9b(0x46c)])!==this[_0x1bdb9b(0x46c)])return;const _0x52772d={'eventID':_['CollaborationEvent'][_0x1bdb9b(0x368)],'data':_0x4a1c25};this[_0x1bdb9b(0x2d7)](_0x52772d);}),this['disposeWithMe'](this[_0x16eac8(0x1ec)][_0x16eac8(0x20c)](_0x58f1b6=>{const _0x1a46b2=_0x16eac8;if(_0x58f1b6[_0x1a46b2(0x2b4)]==null)return;const _0x14ecbe=_0x58f1b6[_0x1a46b2(0x2b4)];if(_0x58f1b6['id']!==se[_0x1a46b2(0x162)]['id']||_0x14ecbe[_0x1a46b2(0x21c)]!==this['unitID'])return;const _0x2ba5df={'id':_0x1a46b2(0x36e),'params':_0x14ecbe},_0x3480d3=this[_0x1a46b2(0x3ae)];for(const [_0x3322b6,_0x24e771]of _0x3480d3){const _0x105d69={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1a46b2(0x46c)],'actions':null,'textRanges':_0x24e771['ranges']}},_0x442a56=this[_0x1a46b2(0x3cf)][_0x1a46b2(0x43b)](_0x2ba5df,_0x105d69,!0x1);if(_['isTransformMutationFailure'](_0x442a56))throw _0x442a56['error'];_0x3480d3[_0x1a46b2(0x1aa)](_0x3322b6,{..._0x24e771,'ranges':_0x442a56['m2Prime'][_0x1a46b2(0x2b4)][_0x1a46b2(0x439)]});}queueMicrotask(()=>{const _0x203cc8=_0x1a46b2;this[_0x203cc8(0x3c2)][_0x203cc8(0x348)](_0x3480d3);});})));}[_0x5ea8e9(0x2d7)](_0x15fc08){const _0x12f3ee=_0x5ea8e9;var _0x292072,_0x159774;const {memberID:_0x4f5db1,selection:_0x554036}=_0x15fc08[_0x12f3ee(0x527)],_0x4d77d7=ks(_0x554036),_0x54b7a8=(_0x159774=(_0x292072=this[_0x12f3ee(0x1fa)][_0x12f3ee(0x1c3)](this['unitID'],_0x4f5db1))==null?void 0x0:_0x292072['name'])!=null?_0x159774:_0x12f3ee(0x266),_0x8ac9dc={'color':this['_colorAssignService'][_0x12f3ee(0x17e)](_0x4f5db1),'name':_0x54b7a8,'ranges':_0x4d77d7},_0x281f9d=this[_0x12f3ee(0x3ae)];_0x281f9d[_0x12f3ee(0x1aa)](_0x4f5db1,_0x8ac9dc),this['_cursorInfo$']['next'](_0x281f9d);}['_onCursorDelete'](_0x242f43){const _0x5bcc03=_0x5ea8e9,{memberID:_0x58c15c}=_0x242f43[_0x5bcc03(0x527)],_0x510463=this['cursorInfo'];_0x510463[_0x5bcc03(0x307)](_0x58c15c),this[_0x5bcc03(0x3c2)][_0x5bcc03(0x348)](_0x510463);}[_0x5ea8e9(0x21b)](){const _0x1f590a=_0x5ea8e9;var _0x53e42d;if(this[_0x1f590a(0x29d)]=!0x0,((_0x53e42d=this[_0x1f590a(0x1be)][_0x1f590a(0x326)]())==null?void 0x0:_0x53e42d['getUnitId']())!==this[_0x1f590a(0x46c)])return;const _0xaf8b01=this[_0x1f590a(0x19a)][_0x1f590a(0x1eb)](se[_0x1f590a(0x378)])['getDocRanges']();Array[_0x1f590a(0x45f)](_0xaf8b01)&&_0xaf8b01[_0x1f590a(0x23b)]>0x0&&this[_0x1f590a(0x2e7)](_0xaf8b01);}[_0x5ea8e9(0x45a)](){this['_online']=!0x1;}};ke=si([K(0x2,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),K(0x3,a['Inject'](Je)),K(0x4,a[_0x5ea8e9(0x3c8)](X)),K(0x5,a[_0x5ea8e9(0x3c8)](Xe)),K(0x6,_['ITransformService']),K(0x7,a['IUniverInstanceService']),K(0x8,a[_0x5ea8e9(0x38c)])],ke);var ri=Object[_0x5ea8e9(0x16c)],oi=Object[_0x5ea8e9(0x1df)],ai=(_0x594f19,_0xbd8c5a,_0x224362,_0x27847b)=>{const _0x288e39=_0x5ea8e9;for(var _0x2bca75=_0x27847b>0x1?void 0x0:_0x27847b?oi(_0xbd8c5a,_0x224362):_0xbd8c5a,_0x44eae8=_0x594f19[_0x288e39(0x23b)]-0x1,_0x84ab2d;_0x44eae8>=0x0;_0x44eae8--)(_0x84ab2d=_0x594f19[_0x44eae8])&&(_0x2bca75=(_0x27847b?_0x84ab2d(_0xbd8c5a,_0x224362,_0x2bca75):_0x84ab2d(_0x2bca75))||_0x2bca75);return _0x27847b&&_0x2bca75&&ri(_0xbd8c5a,_0x224362,_0x2bca75),_0x2bca75;},Q=(_0x5e17eb,_0x937e17)=>(_0x3e42e1,_0x2258ee)=>_0x937e17(_0x3e42e1,_0x2258ee,_0x5e17eb);const ci=0x12c,li=0x64,hi=()=>{let _0xa9971f=[],_0x531cbc=!0x1;return _0x3e97f9=>{_0xa9971f['push'](_0x3e97f9),_0x531cbc||(_0x531cbc=!0x0,setTimeout(()=>{const _0x552526=_0x2fbf;_0xa9971f[_0x552526(0x4f0)](_0x58f49c=>_0x58f49c()),_0xa9971f=[],_0x531cbc=!0x1;}));};};let Be=class extends a['RxDisposable']{constructor(_0x2e7838,_0x4e4e32,_0x507554,_0x219645,_0xe89024,_0x3e16b4,_0xbf6926,_0x80e0bd){const _0x123b7c=_0x5ea8e9;super(),u(this,'_online',!0x1),u(this,'_init',!0x1),u(this,_0x123b7c(0x3c2),new v[(_0x123b7c(0x30e))](new Map())),u(this,_0x123b7c(0x1b5),this['_cursorInfo$'][_0x123b7c(0x19d)]()),u(this,'_roomMembers$',new v[(_0x123b7c(0x30e))]([])),u(this,_0x123b7c(0x4a6),this[_0x123b7c(0x427)][_0x123b7c(0x286)](v['debounceTime'](ci))),u(this,_0x123b7c(0x2e7),a[_0x123b7c(0x25e)]((_0x5e990c,_0x255e8e)=>{const _0x36412b=_0x123b7c,_0xc9d6cf={'eventID':_[_0x36412b(0x50c)][_0x36412b(0x368)],'data':{'unitID':this[_0x36412b(0x46c)],'memberID':this[_0x36412b(0x44e)][_0x36412b(0x1d4)](),'selection':et[_0x36412b(0x1d3)](_0x5e990c,_0x255e8e['range'])}};this[_0x36412b(0x44e)][_0x36412b(0x466)](_0xc9d6cf,this['unitID']);},li)),(this[_0x123b7c(0x46c)]=_0x2e7838,this[_0x123b7c(0x44e)]=_0x4e4e32,this[_0x123b7c(0x19a)]=_0x507554,this['_colorAssignService']=_0x219645,this[_0x123b7c(0x1fa)]=_0xe89024,this[_0x123b7c(0x1be)]=_0x3e16b4,this[_0x123b7c(0x1ec)]=_0xbf6926,this[_0x123b7c(0x1d0)]=_0x80e0bd);}get[_0x5ea8e9(0x3ae)](){const _0x1519da=_0x5ea8e9;return this[_0x1519da(0x3c2)][_0x1519da(0x322)]();}get[_0x5ea8e9(0x408)](){const _0x4ee1c4=_0x5ea8e9;return this['_roomMembers$'][_0x4ee1c4(0x322)]();}[_0x5ea8e9(0x1f5)](){const _0x2e6658=_0x5ea8e9;super[_0x2e6658(0x1f5)](),this[_0x2e6658(0x3c2)][_0x2e6658(0x348)](new Map()),this[_0x2e6658(0x3c2)][_0x2e6658(0x27d)](),this[_0x2e6658(0x427)][_0x2e6658(0x348)]([]),this[_0x2e6658(0x427)][_0x2e6658(0x27d)]();}[_0x5ea8e9(0x360)](){const _0x5906f1=_0x5ea8e9;this[_0x5906f1(0x319)]||(this[_0x5906f1(0x319)]=!0x0,this[_0x5906f1(0x44e)]['sessionStatus$']['pipe'](v[_0x5906f1(0x314)](this[_0x5906f1(0x1a0)]))['subscribe'](_0x2c6459=>{const _0xc81e00=_0x5906f1;_0x2c6459===H[_0xc81e00(0x41a)]?this['_toggleOnline']():this[_0xc81e00(0x45a)]();}),this[_0x5906f1(0x44e)][_0x5906f1(0x145)][_0x5906f1(0x286)](v[_0x5906f1(0x314)](this[_0x5906f1(0x1a0)]))['subscribe'](_0x1a3932=>{const _0x40e99c=_0x5906f1,_0x359c2d=_0x1a3932['eventID'];_0x359c2d===_[_0x40e99c(0x50c)][_0x40e99c(0x368)]&&this[_0x40e99c(0x2d7)](_0x1a3932),_0x359c2d===_[_0x40e99c(0x50c)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x1a3932);}),this[_0x5906f1(0x156)](),this[_0x5906f1(0x568)](this['_commandService'][_0x5906f1(0x20c)](_0x42153e=>{const _0xd06f7b=_0x5906f1;if(this[_0xd06f7b(0x29d)]&&_0x42153e['id']===C[_0xd06f7b(0x32d)]['id']&&_0x42153e[_0xd06f7b(0x2b4)][_0xd06f7b(0x21c)]===this[_0xd06f7b(0x46c)]){const _0x4fa431=_0x42153e[_0xd06f7b(0x2b4)];this[_0xd06f7b(0x2e7)](_0x4fa431[_0xd06f7b(0x3ba)],_0x4fa431[_0xd06f7b(0x522)][0x0]);}})));}[_0x5ea8e9(0x2d7)](_0x31ad75){const _0x3ed5cf=_0x5ea8e9;var _0x346e6d,_0x3c63ca;const {memberID:_0x34c963,selection:_0x2c6f31}=_0x31ad75['data'],{sheetName:_0x1a68d1,range:_0x28438a}=et[_0x3ed5cf(0x2a7)](_0x2c6f31),_0xf7ec83={'name':(_0x3c63ca=(_0x346e6d=this[_0x3ed5cf(0x1fa)]['getMember'](this[_0x3ed5cf(0x46c)],_0x34c963))==null?void 0x0:_0x346e6d['name'])!=null?_0x3c63ca:_0x3ed5cf(0x266),'range':this[_0x3ed5cf(0x49c)](_0x1a68d1,_0x28438a),'sheetID':_0x1a68d1,'color':this[_0x3ed5cf(0x3f5)][_0x3ed5cf(0x17e)](_0x34c963),'selection':_0x2c6f31},_0x5d000b=this['cursorInfo'];_0x5d000b[_0x3ed5cf(0x1aa)](_0x34c963,_0xf7ec83),this['_cursorInfo$']['next'](_0x5d000b);}[_0x5ea8e9(0x2f4)](_0x3a518c){const _0x22827a=_0x5ea8e9,{memberID:_0x12e476}=_0x3a518c[_0x22827a(0x527)],_0x539e2a=this[_0x22827a(0x3ae)];_0x539e2a[_0x22827a(0x307)](_0x12e476),this['_cursorInfo$'][_0x22827a(0x348)](_0x539e2a);}['_getMergeRange'](_0x5bd004,_0xdd76fc){const _0xf6a060=_0x5ea8e9;var _0x10f69c,_0x25ac63;const _0x1d15ff=(_0x25ac63=(_0x10f69c=this[_0xf6a060(0x1be)][_0xf6a060(0x26e)](this[_0xf6a060(0x46c)]))==null?void 0x0:_0x10f69c['getSheetBySheetId'](_0x5bd004))==null?void 0x0:_0x25ac63[_0xf6a060(0x4d2)]();return(_0x1d15ff==null?void 0x0:_0x1d15ff[_0xf6a060(0x44a)](_0x2d08da=>a[_0xf6a060(0x329)][_0xf6a060(0x24a)](_0x2d08da,_0xdd76fc)))||_0xdd76fc;}[_0x5ea8e9(0x156)](){const _0x3c9f89=_0x5ea8e9,_0x26d9d4=new a['DisposableCollection'](),_0xe3d42e=hi(),_0x220ba7=()=>{const _0x44b04d=_0x2fbf;_0x26d9d4[_0x44b04d(0x1f5)]();const _0x2940e4=(_0x4b7d5d,_0x1dfb07,_0x162166,_0x5e99db)=>{const _0x4381f1=_0x44b04d;let _0xd31753=[];switch(_0x4b7d5d['id']){case C['EffectRefRangId'][_0x4381f1(0x251)]:{_0xd31753=C['handleDeleteRangeMoveLeft'](_0x4b7d5d,_0x5e99db);break;}case C[_0x4381f1(0x1b0)][_0x4381f1(0x292)]:{_0xd31753=C[_0x4381f1(0x37b)](_0x4b7d5d,_0x5e99db);break;}case C[_0x4381f1(0x1b0)][_0x4381f1(0x4dc)]:{_0xd31753=C[_0x4381f1(0x1f1)](_0x4b7d5d,_0x5e99db);break;}case C[_0x4381f1(0x1b0)][_0x4381f1(0x3b5)]:{_0xd31753=C[_0x4381f1(0x39c)](_0x4b7d5d,_0x5e99db);break;}case C[_0x4381f1(0x1b0)][_0x4381f1(0x45b)]:{_0xd31753=C[_0x4381f1(0x254)](_0x4b7d5d,_0x5e99db);break;}case C[_0x4381f1(0x1b0)][_0x4381f1(0x50f)]:{_0xd31753=C[_0x4381f1(0x2b9)](_0x4b7d5d,_0x5e99db);break;}case C[_0x4381f1(0x1b0)][_0x4381f1(0x4da)]:{_0xd31753=C[_0x4381f1(0x25b)](_0x4b7d5d,_0x5e99db);break;}case C[_0x4381f1(0x1b0)]['RemoveColCommandId']:{_0xd31753=C[_0x4381f1(0x362)](_0x4b7d5d,_0x5e99db);break;}case C[_0x4381f1(0x1b0)]['RemoveRowCommandId']:{_0xd31753=C[_0x4381f1(0x48b)](_0x4b7d5d,_0x5e99db);break;}}const _0x183fe6=C[_0x4381f1(0x169)](_0xd31753,_0x5e99db),_0x4ddcab=this['cursorInfo'][_0x4381f1(0x1eb)](_0x1dfb07);if(_0x4ddcab&&_0x183fe6){const _0x376c24={..._0x4ddcab,'range':_0x183fe6};this[_0x4381f1(0x3ae)][_0x4381f1(0x1aa)](_0x1dfb07,_0x376c24),_0xe3d42e(()=>{const _0x46b5a0=_0x4381f1,_0xd4223=this[_0x46b5a0(0x1d0)][_0x46b5a0(0x143)](_0x183fe6,_0x222bde=>(_0xd4223[_0x46b5a0(0x1f5)](),_0x2940e4(_0x222bde,_0x1dfb07,_0x162166,_0x183fe6)));_0x26d9d4[_0x46b5a0(0x42a)](_0xd4223);});}return{'redos':[],'undos':[]};};this[_0x44b04d(0x3ae)][_0x44b04d(0x4f0)]((_0x5e0034,_0x5cab97)=>{const _0x5cdf68=_0x44b04d,{range:_0x39e092,sheetID:_0xea25cc}=_0x5e0034,_0x48d5c5=this[_0x5cdf68(0x1d0)][_0x5cdf68(0x143)](_0x39e092,_0x38a359=>(_0x48d5c5[_0x5cdf68(0x1f5)](),_0x2940e4(_0x38a359,_0x5cab97,_0xea25cc,_0x39e092)));_0x26d9d4['add'](_0x48d5c5);});};this[_0x3c9f89(0x568)](a[_0x3c9f89(0x36a)](this[_0x3c9f89(0x3c2)]['subscribe'](()=>{_0x220ba7();})));}[_0x5ea8e9(0x21b)](){const _0x5341a7=_0x5ea8e9;var _0xa49aea,_0xb7bbef;if(this[_0x5341a7(0x29d)]=!0x0,((_0xa49aea=this[_0x5341a7(0x1be)][_0x5341a7(0x326)]())==null?void 0x0:_0xa49aea[_0x5341a7(0x55a)]())!==this['unitID'])return;const _0x5357e9=(_0xb7bbef=this[_0x5341a7(0x19a)][_0x5341a7(0x1eb)](C['SheetsSelectionsService'])[_0x5341a7(0x3e2)]())==null?void 0x0:_0xb7bbef[0x0],_0x34707a=this[_0x5341a7(0x1be)]['getCurrentUnitForType'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x5341a7(0x4cd)]();_0x5357e9&&_0x34707a&&this[_0x5341a7(0x2e7)](_0x34707a['getSheetId'](),_0x5357e9);}['_toggleOffline'](){const _0x313433=_0x5ea8e9;this[_0x313433(0x29d)]=!0x1;}};Be=ai([Q(0x2,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),Q(0x3,a[_0x5ea8e9(0x3c8)](Je)),Q(0x4,a[_0x5ea8e9(0x3c8)](X)),Q(0x5,a[_0x5ea8e9(0x36b)]),Q(0x6,a[_0x5ea8e9(0x38c)]),Q(0x7,a[_0x5ea8e9(0x3c8)](C[_0x5ea8e9(0x448)]))],Be);var _i=Object['defineProperty'],ui=Object[_0x5ea8e9(0x1df)],di=(_0x33fc47,_0x27ebfe,_0x1617ee,_0x23d9d3)=>{for(var _0x33cae0=_0x23d9d3>0x1?void 0x0:_0x23d9d3?ui(_0x27ebfe,_0x1617ee):_0x27ebfe,_0xafd25=_0x33fc47['length']-0x1,_0x12e3a7;_0xafd25>=0x0;_0xafd25--)(_0x12e3a7=_0x33fc47[_0xafd25])&&(_0x33cae0=(_0x23d9d3?_0x12e3a7(_0x27ebfe,_0x1617ee,_0x33cae0):_0x12e3a7(_0x33cae0))||_0x33cae0);return _0x23d9d3&&_0x33cae0&&_i(_0x27ebfe,_0x1617ee,_0x33cae0),_0x33cae0;},Me=(_0x596163,_0x5ea178)=>(_0xb6605b,_0x4a2494)=>_0x5ea178(_0xb6605b,_0x4a2494,_0x596163);let ne=class extends a[_0x5ea8e9(0x32e)]{constructor(_0x39ac0d,_0x3e13b0,_0x3e22cf){const _0x182819=_0x5ea8e9;super(),u(this,_0x182819(0x4c2),new Map()),u(this,'_entityInit$',new v[(_0x182819(0x16f))]()),(this[_0x182819(0x1be)]=_0x39ac0d,this[_0x182819(0x19a)]=_0x3e13b0,this['_collabSessionService']=_0x3e22cf,this[_0x182819(0x319)]());}[_0x5ea8e9(0x1f5)](){const _0x459ef1=_0x5ea8e9;super['dispose'](),this['_entityInit$'][_0x459ef1(0x27d)](),this[_0x459ef1(0x4c2)][_0x459ef1(0x4f0)](_0x2c88ef=>_0x2c88ef[_0x459ef1(0x1f5)]());}[_0x5ea8e9(0x399)](_0x505f32){const _0x2ff683=_0x5ea8e9;return this[_0x2ff683(0x4c2)][_0x2ff683(0x240)](_0x505f32)?this[_0x2ff683(0x4c2)][_0x2ff683(0x1eb)](_0x505f32)['cursorInfo$']:this[_0x2ff683(0x528)][_0x2ff683(0x286)](v[_0x2ff683(0x207)](_0x25c0e9=>_0x25c0e9['unitID']===_0x505f32),v[_0x2ff683(0x139)](_0x3a56e2=>_0x3a56e2[_0x2ff683(0x1b5)]));}[_0x5ea8e9(0x319)](){const _0x51d3ac=_0x5ea8e9;this[_0x51d3ac(0x1be)][_0x51d3ac(0x4b0)](a[_0x51d3ac(0x3a9)]['UNIVER_SHEET'])[_0x51d3ac(0x286)](v[_0x51d3ac(0x314)](this['dispose$']))['subscribe'](async _0x11a361=>{const _0x5179c1=_0x51d3ac,_0xfa32ad=_0x11a361['getUnitId'](),_0x48c0ff=await this[_0x5179c1(0x2bc)](_0xfa32ad);this['_entityInit$']['next'](_0x48c0ff),this['_entities'][_0x5179c1(0x1aa)](_0xfa32ad,_0x48c0ff);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x51d3ac(0x3a9)][_0x51d3ac(0x2de)])[_0x51d3ac(0x286)](v[_0x51d3ac(0x314)](this[_0x51d3ac(0x1a0)]))[_0x51d3ac(0x286)](v[_0x51d3ac(0x207)](_0x3c929d=>!_0x3c929d['getUnitId']()['startsWith']('__')))[_0x51d3ac(0x21d)](async _0x1dcd5e=>{const _0x3cf512=_0x51d3ac,_0x4d4146=_0x1dcd5e['getUnitId'](),_0x5aae9d=await this[_0x3cf512(0x37e)](_0x4d4146);this[_0x3cf512(0x528)][_0x3cf512(0x348)](_0x5aae9d),this[_0x3cf512(0x4c2)][_0x3cf512(0x1aa)](_0x4d4146,_0x5aae9d);}),v[_0x51d3ac(0x24b)](this[_0x51d3ac(0x1be)]['getTypeOfUnitDisposed$'](a[_0x51d3ac(0x3a9)][_0x51d3ac(0x2de)]),this[_0x51d3ac(0x1be)][_0x51d3ac(0x268)](a[_0x51d3ac(0x3a9)][_0x51d3ac(0x2ae)]))['pipe'](v['takeUntil'](this['dispose$']))[_0x51d3ac(0x21d)](_0x5199bd=>{const _0x39a0f6=_0x51d3ac,_0xc05202=_0x5199bd[_0x39a0f6(0x55a)](),_0x51b520=this[_0x39a0f6(0x4c2)][_0x39a0f6(0x1eb)](_0xc05202);_0x51b520&&(_0x51b520['dispose'](),this[_0x39a0f6(0x4c2)]['delete'](_0xc05202));});}async[_0x5ea8e9(0x2bc)](_0xdcaefb){const _0x3a0e39=_0x5ea8e9,_0x56c359=await this[_0x3a0e39(0x1a2)][_0x3a0e39(0x33b)](_0xdcaefb),_0x2d7338=this[_0x3a0e39(0x19a)][_0x3a0e39(0x52c)](Be,_0xdcaefb,_0x56c359);return _0x2d7338['init'](),_0x2d7338;}async[_0x5ea8e9(0x37e)](_0x4e77d6){const _0x50723f=_0x5ea8e9,_0x36ea10=await this[_0x50723f(0x1a2)]['requireSession'](_0x4e77d6),_0xffe215=this[_0x50723f(0x19a)]['createInstance'](ke,_0x4e77d6,_0x36ea10);return _0xffe215[_0x50723f(0x360)](),_0xffe215;}};ne=di([Me(0x0,a[_0x5ea8e9(0x36b)]),Me(0x1,a[_0x5ea8e9(0x3c8)](a['Injector'])),Me(0x2,a[_0x5ea8e9(0x3c8)](exports[_0x5ea8e9(0x550)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,Si=0x5;function vi(_0x45d7f7,_0x243036){const _0xabe334=_0x5ea8e9;let {radius:_0x29e26a,width:_0x37ac4c,height:_0x2a392b}=_0x243036;_0x29e26a=_0x29e26a!=null?_0x29e26a:0x0,_0x37ac4c=_0x37ac4c!=null?_0x37ac4c:0x1e,_0x2a392b=_0x2a392b!=null?_0x2a392b:0x1e;let _0xd8093a=0x0,_0x51a491=0x0,_0x24c41b=0x0;_0xd8093a=_0x51a491=_0x24c41b=Math[_0xabe334(0x4db)](_0x29e26a,_0x37ac4c/0x2,_0x2a392b/0x2),_0x45d7f7[_0xabe334(0x2c7)](),_0x45d7f7[_0xabe334(0x24f)](_0xd8093a,0x0),_0x45d7f7[_0xabe334(0x4cf)](_0x37ac4c-_0x51a491,0x0),_0x45d7f7[_0xabe334(0x529)](_0x37ac4c-_0x51a491,_0x51a491,_0x51a491,Math['PI']*0x3/0x2,0x0,!0x1),_0x45d7f7['lineTo'](_0x37ac4c,_0x2a392b-_0x24c41b),_0x45d7f7[_0xabe334(0x529)](_0x37ac4c-_0x24c41b,_0x2a392b-_0x24c41b,_0x24c41b,0x0,Math['PI']/0x2,!0x1),_0x45d7f7[_0xabe334(0x4cf)](0x0,_0x2a392b),_0x45d7f7[_0xabe334(0x4cf)](0x0,_0xd8093a),_0x45d7f7['arc'](_0xd8093a,_0xd8093a,_0xd8093a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x45d7f7[_0xabe334(0x1fb)](),_0x243036[_0xabe334(0x38b)]&&(_0x45d7f7[_0xabe334(0x4ea)](),_0x45d7f7[_0xabe334(0x1fe)]=_0x243036[_0xabe334(0x38b)],_0x243036[_0xabe334(0x55d)]==='evenodd'?_0x45d7f7[_0xabe334(0x38b)]('evenodd'):_0x45d7f7[_0xabe334(0x38b)](),_0x45d7f7[_0xabe334(0x53d)]());}class Oe extends D[_0x5ea8e9(0x2c5)]{constructor(_0x5433e8,_0x80f80f){const _0x38534d=_0x5ea8e9;super(_0x5433e8,_0x80f80f),u(this,_0x38534d(0x457)),u(this,_0x38534d(0x471)),(this[_0x38534d(0x457)]=_0x80f80f==null?void 0x0:_0x80f80f[_0x38534d(0x457)],this[_0x38534d(0x471)]=_0x80f80f==null?void 0x0:_0x80f80f[_0x38534d(0x471)]);}static['drawWith'](_0x131faa,_0x5bf35e){const _0xde498f=_0x5ea8e9,{text:_0x48b443,color:_0x4e6dcf}=_0x5bf35e;_0x131faa['save'](),_0x131faa[_0xde498f(0x1c0)]=_0xde498f(0x2fa);const _0x51022b=_0x131faa[_0xde498f(0x29c)](_0x48b443)[_0xde498f(0x192)],_0x1d20c4=Math[_0xde498f(0x4db)](_0x51022b+0x2*Ae,lt);vi(_0x131faa,{'height':de,'radius':0x4,'width':_0x1d20c4,'fill':_0x4e6dcf,'evented':!0x1}),_0x131faa[_0xde498f(0x1fe)]=_0xde498f(0x264);const _0x4e0f65=Ae,_0x349932=de-Si,_0x417758=lt-0x2*Ae;if(_0x51022b>_0x417758){let _0x12a18f='',_0x5b4fba=0x0;for(const _0xd08b6c of _0x48b443){const _0x2cd33e=_0x131faa[_0xde498f(0x29c)](_0xd08b6c)[_0xde498f(0x192)];if(_0x5b4fba+_0x2cd33e<=_0x417758-_0x131faa['measureText'](_0xde498f(0x364))['width'])_0x12a18f+=_0xd08b6c,_0x5b4fba+=_0x2cd33e;else{_0x12a18f+=_0xde498f(0x364);break;}}_0x131faa['fillText'](_0x12a18f,_0x4e0f65,_0x349932);}else _0x131faa[_0xde498f(0x4d6)](_0x48b443,_0x4e0f65,_0x349932);_0x131faa['restore']();}[_0x5ea8e9(0x239)](_0x13005c){const _0x13d8c2=_0x5ea8e9;Oe[_0x13d8c2(0x21e)](_0x13005c,this);}}const Le='collab-text-anchor-',mi=_0x5ea8e9(0x2ec),gi=_0x5ea8e9(0x4b1),le=0x6,fi=1.5,je=0x4,Ii=1.5,pi='rgba(255,\x20255,\x20255,\x200.01)';class ht{constructor(_0x4f4583,_0x510613,_0x1bd621,_0x8ab6ab){const _0x321d70=_0x5ea8e9;u(this,_0x321d70(0x48c),[]),u(this,_0x321d70(0x546),null),u(this,_0x321d70(0x298),null),u(this,_0x321d70(0x1c9),null),u(this,'_hideTimer',null),u(this,_0x321d70(0x4fb),null),(this[_0x321d70(0x441)]=_0x4f4583,this[_0x321d70(0x232)]=_0x510613,this[_0x321d70(0x172)]=_0x1bd621,this['_document']=_0x8ab6ab,this['_render']());}set['_hover'](_0x4d9503){const _0x46c167=_0x5ea8e9;_0x4d9503?(this[_0x46c167(0x1c9)]&&this[_0x46c167(0x1c9)]['hide'](),this['_textBubble']&&this[_0x46c167(0x298)][_0x46c167(0x2e0)]()):(this[_0x46c167(0x1c9)]&&this[_0x46c167(0x1c9)][_0x46c167(0x2e0)](),this['_textBubble']&&this[_0x46c167(0x298)][_0x46c167(0x340)]());}[_0x5ea8e9(0x1f5)](){const _0x5835da=_0x5ea8e9;for(const _0x245320 of this[_0x5835da(0x48c)])_0x245320['dispose']();this['_textBubble']&&this[_0x5835da(0x298)][_0x5835da(0x1f5)](),this['_anchorDot']&&this['_anchorDot'][_0x5835da(0x1f5)](),this[_0x5835da(0x546)]&&this[_0x5835da(0x546)]['dispose'](),this[_0x5835da(0x4fb)]&&this['_eventUnsubscribe']();}[_0x5ea8e9(0x30d)](){const _0x16da51=_0x5ea8e9;var _0xd51933;const {_docSkeleton:_0x1576c9,_document:_0x5f48be}=this,{color:_0x1c1a9b,name:_0x4d1001,ranges:_0x4ac5b1}=this[_0x16da51(0x441)],_0x3315f5=_0x5f48be[_0x16da51(0x489)](),{docsLeft:_0x4ac29b,docsTop:_0x5dac4a}=_0x3315f5,_0x25389b=new N[(_0x16da51(0x4a0))](_0x3315f5,_0x1576c9);for(const {startOffset:_0x520210,endOffset:_0x2ce227,collapsed:_0x51e6d3,isActive:_0x20a112}of _0x4ac5b1){const _0xb0f769=_0x1576c9['findNodePositionByCharIndex'](_0x520210),_0x46684e=_0x1576c9[_0x16da51(0x501)](_0x2ce227);if(_0x20a112){const {contentBoxPointGroup:_0x555ea2}=_0x25389b[_0x16da51(0x425)](_0x46684e,_0x46684e);if(_0x555ea2[_0x16da51(0x23b)]===0x0)continue;this[_0x16da51(0x14c)](_0x1c1a9b,_0x555ea2,_0x4ac29b,_0x5dac4a,_0x4d1001),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x51e6d3&&_0xb0f769&&_0x46684e){if(N[_0x16da51(0x22e)](_0xb0f769,_0x46684e)){const _0x1211bc=new N[(_0x16da51(0x41d))](_0x3315f5,_0x1576c9),{pointGroup:_0x54e4bf}=(_0xd51933=_0x1211bc[_0x16da51(0x425)](_0xb0f769,_0x46684e))!=null?_0xd51933:{};if(_0x54e4bf==null||_0x54e4bf[_0x16da51(0x23b)]===0x0)continue;this[_0x16da51(0x563)](_0x1c1a9b,_0x54e4bf,_0x4ac29b,_0x5dac4a);}else{const {contentBoxPointGroup:_0x43746a}=_0x25389b[_0x16da51(0x425)](_0xb0f769,_0x46684e);if(_0x43746a[_0x16da51(0x23b)]===0x0)continue;this[_0x16da51(0x442)](_0x1c1a9b,_0x43746a,_0x4ac29b,_0x5dac4a);}}}}[_0x5ea8e9(0x14c)](_0x3feb21,_0x4e0ef4,_0x4c5c1d,_0x110539,_0x158e5e){const _0x553821=_0x5ea8e9,_0x72db66=this[_0x553821(0x51d)](_0x4e0ef4),{left:_0xe20c4,top:_0x4faad3,height:_0x4f605d}=_0x72db66,_0x48e206=this[_0x553821(0x4bc)](),_0x564b47=Ii/_0x48e206,_0x384a4b=new D['Rect'](Le+a['Tools']['generateRandomId'](le),{'left':_0xe20c4+_0x4c5c1d-_0x564b47,'top':_0x4faad3+_0x110539,'height':_0x4f605d,'width':fi,'fill':_0x3feb21||D[_0x553821(0x2db)](a['COLORS']['black'],0x0),'strokeWidth':_0x564b47,'stroke':pi,'evented':!0x0});this[_0x553821(0x546)]=_0x384a4b,this[_0x553821(0x232)]['addObject'](_0x384a4b,N[_0x553821(0x4af)]);const _0x1bf3c8=new D[(_0x553821(0x36c))](Le+a['Tools']['generateRandomId'](le),{'left':_0xe20c4+_0x4c5c1d-_0x564b47,'top':_0x4faad3+_0x110539-je/0x2,'height':je,'width':je,'fill':_0x3feb21||D['getColor'](a[_0x553821(0x287)][_0x553821(0x52f)],0x0),'strokeWidth':0x0,'stroke':_0x3feb21||D[_0x553821(0x2db)](a['COLORS'][_0x553821(0x52f)],0x0),'evented':!0x1});this[_0x553821(0x1c9)]=_0x1bf3c8,this['_scene'][_0x553821(0x3a5)](_0x1bf3c8,N[_0x553821(0x4af)]);const _0xb237ce=new Oe(Le+a['Tools'][_0x553821(0x2a2)](le),{'left':_0xe20c4+_0x4c5c1d-_0x564b47,'top':_0x4faad3+_0x110539-de,'text':_0x158e5e,'color':_0x3feb21});this[_0x553821(0x298)]=_0xb237ce,this[_0x553821(0x232)][_0x553821(0x3a5)](_0xb237ce,N['TEXT_RANGE_LAYER_INDEX']),this[_0x553821(0x3c7)]=!0x1;}[_0x5ea8e9(0x3b9)](){const _0x3160a4=_0x5ea8e9,_0x55f9dd=this[_0x3160a4(0x546)][_0x3160a4(0x39f)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x451fc7=this[_0x3160a4(0x546)][_0x3160a4(0x269)][_0x3160a4(0x44f)](()=>{const _0x432992=_0x3160a4;this[_0x432992(0x1ff)]&&clearTimeout(this['_hideTimer']),this[_0x432992(0x1ff)]=setTimeout(()=>{const _0x47b209=_0x432992;this[_0x47b209(0x3c7)]=!0x1;},0x7d0);});return()=>{const _0x2173e8=_0x3160a4;_0x55f9dd[_0x2173e8(0x4d0)](),_0x451fc7[_0x2173e8(0x4d0)]();};}[_0x5ea8e9(0x442)](_0x4a7949,_0x36aef9,_0x57907b,_0x27fb95){const _0x10ecae=_0x5ea8e9,_0x17a7a4=new a[(_0x10ecae(0x509))](_0x4a7949)[_0x10ecae(0x2df)](0.2)[_0x10ecae(0x38e)](),_0x54ba67=new D[(_0x10ecae(0x4d1))](mi+a['Tools'][_0x10ecae(0x2a2)](le),{'pointsGroup':_0x36aef9,'fill':_0x17a7a4||D['getColor'](a['COLORS'][_0x10ecae(0x52f)],0.2),'left':_0x57907b,'top':_0x27fb95,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x10ecae(0x48c)]['push'](_0x54ba67),this[_0x10ecae(0x232)][_0x10ecae(0x3a5)](_0x54ba67,N[_0x10ecae(0x4af)]);}[_0x5ea8e9(0x563)](_0x3f5d43,_0x5d5c3d,_0x555a1d,_0x19a1c1){const _0x15cc6b=_0x5ea8e9,_0x338acb=new a[(_0x15cc6b(0x509))](_0x3f5d43)[_0x15cc6b(0x2df)](0.2)[_0x15cc6b(0x38e)](),_0x3ce43c=new D[(_0x15cc6b(0x4d1))](gi+a[_0x15cc6b(0x403)][_0x15cc6b(0x2a2)](le),{'pointsGroup':_0x5d5c3d,'fill':_0x338acb||D[_0x15cc6b(0x2db)](a[_0x15cc6b(0x287)][_0x15cc6b(0x52f)],0.2),'left':_0x555a1d,'top':_0x19a1c1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15cc6b(0x48c)][_0x15cc6b(0x3e0)](_0x3ce43c),this[_0x15cc6b(0x232)][_0x15cc6b(0x3a5)](_0x3ce43c,N[_0x15cc6b(0x4af)]);}['_getAnchorBounding'](_0x376873){const _0x5c9407=_0x376873[0x0],_0x554b19=_0x5c9407[0x0],_0x2fe8b5=_0x5c9407[0x2],{x:_0x52db47,y:_0x333abe}=_0x554b19,{x:_0x21b6d9,y:_0x1fd942}=_0x2fe8b5;return{'left':_0x52db47,'top':_0x333abe,'width':_0x21b6d9-_0x52db47,'height':_0x1fd942-_0x333abe};}[_0x5ea8e9(0x4bc)](){const _0x5a756a=_0x5ea8e9,{scaleX:_0x1c1f14,scaleY:_0x4b4ce8}=this[_0x5a756a(0x232)][_0x5a756a(0x184)]();return Math[_0x5a756a(0x3c4)](_0x1c1f14,_0x4b4ce8);}}var Ci=Object[_0x5ea8e9(0x16c)],Ei=Object[_0x5ea8e9(0x1df)],bi=(_0x915515,_0x144228,_0x101036,_0x38bb67)=>{const _0x5ce6ff=_0x5ea8e9;for(var _0x265b62=_0x38bb67>0x1?void 0x0:_0x38bb67?Ei(_0x144228,_0x101036):_0x144228,_0x346143=_0x915515[_0x5ce6ff(0x23b)]-0x1,_0x2c86e9;_0x346143>=0x0;_0x346143--)(_0x2c86e9=_0x915515[_0x346143])&&(_0x265b62=(_0x38bb67?_0x2c86e9(_0x144228,_0x101036,_0x265b62):_0x2c86e9(_0x265b62))||_0x265b62);return _0x38bb67&&_0x265b62&&Ci(_0x144228,_0x101036,_0x265b62),_0x265b62;},ve=(_0x29a77d,_0x21efa3)=>(_0x37229a,_0x384cf6)=>_0x21efa3(_0x37229a,_0x384cf6,_0x29a77d);let Ve=class extends a['RxDisposable']{constructor(_0x1a1148,_0x2f8460,_0x25238e,_0x29b37a,_0x399e3f){const _0x3a3657=_0x5ea8e9;super(),u(this,_0x3a3657(0x34a),[]),u(this,'_cursors',[]),(this['_context']=_0x1a1148,this[_0x3a3657(0x503)]=_0x2f8460,this[_0x3a3657(0x25c)]=_0x25238e,this[_0x3a3657(0x1ec)]=_0x29b37a,this[_0x3a3657(0x320)]=_0x399e3f,this['_init']());}[_0x5ea8e9(0x319)](){const _0x443aa5=_0x5ea8e9,_0x53a70b=this[_0x443aa5(0x250)][_0x443aa5(0x21c)],_0x411a2b=this[_0x443aa5(0x503)];this[_0x443aa5(0x568)](v[_0x443aa5(0x1c8)]([this[_0x443aa5(0x25c)]['getCollabCursors$'](_0x53a70b),this[_0x443aa5(0x320)]['currentTheme$']])['pipe'](E[_0x443aa5(0x558)](([_0x219e70,_0x33a758])=>({'skeleton':_0x411a2b[_0x443aa5(0x2bb)](),'cursors':[..._0x219e70['values']()]['flatMap'](_0x1cf6ba=>({..._0x1cf6ba,'color':_0x33a758[_0x1cf6ba[_0x443aa5(0x457)]]}))})))['subscribe'](_0x667b3b=>{const _0x2669e7=_0x443aa5;if(this[_0x2669e7(0x351)](),_0x667b3b){const {skeleton:_0x49e2d4,cursors:_0x566826}=_0x667b3b;this[_0x2669e7(0x29a)](_0x49e2d4,_0x566826);}})),this[_0x443aa5(0x493)](),this['_initCommandExecutedListener']();}[_0x5ea8e9(0x29a)](_0x128e9a,_0x36c1b2){const _0x28ff7d=_0x5ea8e9,{scene:_0x5dd954,mainComponent:_0x5e0c52}=this[_0x28ff7d(0x250)],_0x27f21b=_0x36c1b2[_0x28ff7d(0x558)](_0x2b632c=>new ht(_0x2b632c,_0x5dd954,_0x128e9a,_0x5e0c52));this['_cursorShapes']=_0x27f21b,this[_0x28ff7d(0x51e)]=_0x36c1b2;}[_0x5ea8e9(0x144)](){const _0xcea9b1=_0x5ea8e9;this['_removeCollabCursors']();const {scene:_0x41061a,mainComponent:_0x159246}=this['_context'],_0x4e7a19=this[_0xcea9b1(0x503)]['getSkeleton'](),_0x1fc42e=this['_cursors'][_0xcea9b1(0x558)](_0x416b7=>new ht(_0x416b7,_0x41061a,_0x4e7a19,_0x159246));this['_cursorShapes']=_0x1fc42e;}['_removeCollabCursors'](){const _0x1054d9=_0x5ea8e9;this['_cursorShapes']['forEach'](_0x3b0192=>_0x3b0192[_0x1054d9(0x1f5)]()),this[_0x1054d9(0x34a)]=[];}[_0x5ea8e9(0x3ab)](){const _0x247cd3=_0x5ea8e9,_0x322804=[N[_0x247cd3(0x1c6)]['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x46bc4b=>{const _0x54fbdd=_0x247cd3;_0x322804['includes'](_0x46bc4b['id'])&&_0x46bc4b[_0x54fbdd(0x2b4)][_0x54fbdd(0x21c)]===this[_0x54fbdd(0x250)][_0x54fbdd(0x21c)]&&this[_0x54fbdd(0x144)]();}));}[_0x5ea8e9(0x493)](){const _0x79b25c=_0x5ea8e9;this[_0x79b25c(0x568)](a['fromEventSubject'](this['_context'][_0x79b25c(0x4ae)]['onTransformChange$'])[_0x79b25c(0x286)](E['filter'](_0x2ab5a6=>_0x2ab5a6[_0x79b25c(0x335)]===D[_0x79b25c(0x415)][_0x79b25c(0x4f7)]),E['throttleTime'](0x10))[_0x79b25c(0x21d)](()=>{const _0x1c3f42=_0x79b25c;this[_0x1c3f42(0x144)]();}));}};Ve=bi([ve(0x1,a[_0x5ea8e9(0x3c8)](se['DocSkeletonManagerService'])),ve(0x2,a['Inject'](ne)),ve(0x3,a[_0x5ea8e9(0x38c)]),ve(0x4,a['Inject'](a[_0x5ea8e9(0x554)]))],Ve);const Ti=0x1,Ri=1.5;class Nt extends D['Shape']{constructor(_0x1f03dc,_0x4c2cf2){const _0x56feb3=_0x5ea8e9;super(_0x1f03dc,_0x4c2cf2),u(this,_0x56feb3(0x3bb)),u(this,_0x56feb3(0x233),!0x1),u(this,_0x56feb3(0x52d)),u(this,_0x56feb3(0x17a),''),u(this,_0x56feb3(0x421),'top'),u(this,_0x56feb3(0x2cf)),(_0x4c2cf2&&this[_0x56feb3(0x553)](_0x4c2cf2),this[_0x56feb3(0x39f)]['subscribeEvent'](()=>this[_0x56feb3(0x553)]({'hovered':!0x0})),this[_0x56feb3(0x269)][_0x56feb3(0x44f)](()=>this[_0x56feb3(0x553)]({'hovered':!0x1})));}['setShapeProps'](_0xc80376){const _0x5bacdb=_0x5ea8e9;var _0x1cb419,_0x2aa7b9,_0x3acf14,_0x9872b6,_0x4bbc9e,_0x40b197;this['_color']=(_0x1cb419=_0xc80376[_0x5bacdb(0x457)])!=null?_0x1cb419:this[_0x5bacdb(0x3bb)],this[_0x5bacdb(0x233)]=(_0x2aa7b9=_0xc80376[_0x5bacdb(0x2c1)])!=null?_0x2aa7b9:this[_0x5bacdb(0x233)],this['_range']=(_0x3acf14=_0xc80376[_0x5bacdb(0x2e1)])!=null?_0x3acf14:this['_range'],this['_name']=(_0x9872b6=_0xc80376['name'])!=null?_0x9872b6:this[_0x5bacdb(0x17a)],this[_0x5bacdb(0x421)]=(_0x4bbc9e=_0xc80376[_0x5bacdb(0x447)])!=null?_0x4bbc9e:this[_0x5bacdb(0x421)],this[_0x5bacdb(0x2cf)]=(_0x40b197=_0xc80376['backgroundColor'])!=null?_0x40b197:this[_0x5bacdb(0x2cf)],this[_0x5bacdb(0x54c)]({'width':_0xc80376['width'],'height':_0xc80376[_0x5bacdb(0x22b)]});}[_0x5ea8e9(0x1e9)](_0x21b18a){const _0x128688=_0x5ea8e9,{row:_0x2d7e80,column:_0x48e8c8}=_0x21b18a;if(_0x2d7e80>=this[_0x128688(0x52d)][_0x128688(0x18e)]&&_0x2d7e80<=this['_range'][_0x128688(0x542)]&&_0x48e8c8>=this[_0x128688(0x52d)][_0x128688(0x4cb)]&&_0x48e8c8<=this[_0x128688(0x52d)][_0x128688(0x1d2)]){this[_0x128688(0x553)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5ea8e9(0x2d4)](_0x1a5dad){return!0x1;}[_0x5ea8e9(0x239)](_0x2af085){const _0x4a1589=_0x5ea8e9;D[_0x4a1589(0x36c)]['drawWith'](_0x2af085,{'width':this['width'],'height':this['height'],'strokeWidth':Ri,'stroke':this[_0x4a1589(0x3bb)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x4a1589(0x233)]&&(_0x2af085['save'](),_0x2af085[_0x4a1589(0x275)](0x1,0x0,0x0,0x1,this[_0x4a1589(0x192)],this['_labelPosition']===_0x4a1589(0x1ba)?0x0:-de),Oe[_0x4a1589(0x21e)](_0x2af085,{'text':this['_name'],'color':this[_0x4a1589(0x3bb)]}),_0x2af085['restore']());}}var Oi=Object[_0x5ea8e9(0x16c)],Di=Object[_0x5ea8e9(0x1df)],yi=(_0x1c336c,_0x375f6d,_0x4961fc,_0x3008d1)=>{for(var _0x517640=_0x3008d1>0x1?void 0x0:_0x3008d1?Di(_0x375f6d,_0x4961fc):_0x375f6d,_0x5e0842=_0x1c336c['length']-0x1,_0x27b084;_0x5e0842>=0x0;_0x5e0842--)(_0x27b084=_0x1c336c[_0x5e0842])&&(_0x517640=(_0x3008d1?_0x27b084(_0x375f6d,_0x4961fc,_0x517640):_0x27b084(_0x517640))||_0x517640);return _0x3008d1&&_0x517640&&Oi(_0x375f6d,_0x4961fc,_0x517640),_0x517640;},$e=(_0x16390a,_0x43e09f)=>(_0x31a44c,_0x6df43b)=>_0x43e09f(_0x31a44c,_0x6df43b,_0x16390a);const Ui=0x1389;let We=class extends a[_0x5ea8e9(0x32e)]{constructor(_0x2f257f,_0x21929d,_0x247d0c,_0x5beb6d){const _0x3021c1=_0x5ea8e9;super(),u(this,_0x3021c1(0x51e),new Set()),u(this,'_lastPointer',null),(this['_context']=_0x2f257f,this[_0x3021c1(0x4b9)]=_0x21929d,this[_0x3021c1(0x25c)]=_0x247d0c,this[_0x3021c1(0x320)]=_0x5beb6d,this[_0x3021c1(0x319)]());}[_0x5ea8e9(0x319)](){const _0x18ef7f=_0x5ea8e9;this[_0x18ef7f(0x4b9)][_0x18ef7f(0x27b)]['pipe'](E['takeUntil'](this[_0x18ef7f(0x1a0)]),E[_0x18ef7f(0x139)](_0x56e2c7=>{const _0x165937=_0x18ef7f;if(_0x56e2c7){const _0x1554e4=_0x56e2c7[_0x165937(0x1f9)];return v[_0x165937(0x1c8)](this[_0x165937(0x25c)]['getCollabCursors$'](this[_0x165937(0x250)][_0x165937(0x21c)]),this['_themeService'][_0x165937(0x327)])[_0x165937(0x286)](E[_0x165937(0x558)](([_0x15006c,_0x5cbfc2])=>{const _0x40b4e5=_0x165937,_0x5192bd=new Map();return _0x15006c[_0x40b4e5(0x4f0)]((_0x4d995a,_0x47872d)=>{const _0x750368=_0x40b4e5;if(_0x4d995a[_0x750368(0x185)]===_0x1554e4){const _0xfe7d8d={..._0x4d995a};_0xfe7d8d[_0x750368(0x457)]=_0x5cbfc2[_0x4d995a['color']],_0x5192bd['set'](_0x47872d,_0xfe7d8d);}}),{'skeleton':_0x56e2c7,'cursors':_0x5192bd};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x18ef7f(0x21d)](({skeleton:_0xd0f767,cursors:_0x13d69c})=>{const _0x4cad15=_0x18ef7f;this['_removeCollabCursors'](),_0xd0f767&&this[_0x4cad15(0x29a)](_0xd0f767,_0x13d69c);}),this[_0x18ef7f(0x4b9)][_0x18ef7f(0x27b)][_0x18ef7f(0x21d)](_0x149b6f=>{const _0x2a51fb=_0x18ef7f;if(_0x149b6f==null)return;const {skeleton:_0xb39f2a}=_0x149b6f,{scene:_0x3d2317}=this[_0x2a51fb(0x250)];_0x3d2317[_0x2a51fb(0x349)][_0x2a51fb(0x44f)](a[_0x2a51fb(0x25e)](_0x21a03c=>{const _0x5b293a=_0x2a51fb;var _0x50aa28,_0x4e99f2;const {offsetX:_0x4f5a11,offsetY:_0x1eb79e}=_0x21a03c,{x:_0x40953f,y:_0x41a007}=_0x3d2317['getRelativeToViewportCoord'](D['Vector2'][_0x5b293a(0x54b)]([_0x4f5a11,_0x1eb79e])),{scaleX:_0x1b2af4,scaleY:_0x5aaa8c}=_0x3d2317[_0x5b293a(0x184)](),_0x2c9f6c=_0x3d2317[_0x5b293a(0x47e)](te['VIEWPORT_KEY'][_0x5b293a(0x13b)]),_0x3dc073=_0x3d2317[_0x5b293a(0x40c)](D[_0x5b293a(0x2a5)][_0x5b293a(0x54b)]([_0x40953f,_0x41a007]),_0x2c9f6c),_0x52e727=_0xb39f2a[_0x5b293a(0x454)](_0x4f5a11,_0x1eb79e,_0x1b2af4,_0x5aaa8c,_0x3dc073);((_0x50aa28=this[_0x5b293a(0x3af)])==null?void 0x0:_0x50aa28['column'])===_0x52e727[_0x5b293a(0x1fc)]&&((_0x4e99f2=this['_lastPointer'])==null?void 0x0:_0x4e99f2['row'])===_0x52e727[_0x5b293a(0x2e8)]||this[_0x5b293a(0x51e)][_0x5b293a(0x4f0)](_0x33b8c8=>{const _0x2fe659=_0x5b293a;_0x33b8c8[_0x2fe659(0x1e9)](_0x52e727);});},0x64));});}[_0x5ea8e9(0x29a)](_0x1f046b,_0x3ca01d){const _0x2c41a6=_0x5ea8e9;var _0x496325;const _0x4f56c9=(_0x496325=this[_0x2c41a6(0x4b9)][_0x2c41a6(0x263)]())==null?void 0x0:_0x496325[_0x2c41a6(0x535)];if(!_0x4f56c9)return;const _0x56ec0d=this['_getSheetObject']();if(!_0x56ec0d)return;this['_cursors'][_0x2c41a6(0x4f0)](_0x5913e3=>{const _0x48bc76=_0x2c41a6;_0x5913e3[_0x48bc76(0x16e)]();});const {scene:_0x2f8b2c}=_0x56ec0d,_0x6f5d5c=Pi(Array[_0x2c41a6(0x473)](_0x3ca01d[_0x2c41a6(0x4cc)]()))[_0x2c41a6(0x558)](_0x11c68e=>{const _0x339b95=_0x2c41a6,{color:_0x5f2dc0,range:_0x16b0de,name:_0x3435f7,selection:_0x298a01,sheetID:_0x3604f0}=_0x11c68e,{startColumn:_0x5d12aa,startRow:_0x7da650,endColumn:_0x315333,endRow:_0xe5b959}=_0x16b0de,_0x60c440=te[_0x339b95(0x3fa)](_0x7da650,_0x5d12aa,_0x2f8b2c,_0x4f56c9),_0x474052=te[_0x339b95(0x3fa)](_0xe5b959,_0x315333,_0x2f8b2c,_0x4f56c9),{columnHeaderHeightAndMarginTop:_0x393770}=_0x4f56c9,{startX:_0x2a20f5,startY:_0x7d35cc}=_0x60c440,{endX:_0x234c09,endY:_0x237878}=_0x474052,_0x3eceee=_0x234c09-_0x2a20f5,_0x194b9c=_0x237878-_0x7d35cc,_0x404067={'labelPosition':_0x7d35cc-_0x393770>=de?'top':_0x339b95(0x1ba),'sheetID':_0x3604f0,'range':_0x16b0de,'color':_0x5f2dc0,'name':_0x3435f7,'selection':_0x298a01,'left':_0x2a20f5,'top':_0x7d35cc,'width':_0x3eceee,'height':_0x194b9c,'evented':!0x1,'zIndex':Ui};return new Nt(_0x3435f7,_0x404067);});_0x2f8b2c[_0x2c41a6(0x1ea)](_0x6f5d5c,Ti),this[_0x2c41a6(0x51e)]=new Set(_0x6f5d5c);}[_0x5ea8e9(0x351)](){const _0x17691c=_0x5ea8e9;var _0x3916ff;(_0x3916ff=this[_0x17691c(0x51e)])==null||_0x3916ff[_0x17691c(0x4f0)](_0x4e84fe=>_0x4e84fe[_0x17691c(0x1f5)]());}[_0x5ea8e9(0x223)](){const _0xc77ee0=_0x5ea8e9;return te[_0xc77ee0(0x472)](this[_0xc77ee0(0x250)]['unit'],this['_context']);}};We=yi([$e(0x1,a[_0x5ea8e9(0x3c8)](te[_0x5ea8e9(0x449)])),$e(0x2,a[_0x5ea8e9(0x3c8)](ne)),$e(0x3,a[_0x5ea8e9(0x3c8)](a['ThemeService']))],We);function Pi(_0x2654d9){const _0x4d8ea7=_0x5ea8e9,_0x2163e0=new Map();return _0x2654d9[_0x4d8ea7(0x4f0)](_0x5162e9=>{const _0x1e8415=_0x4d8ea7;if(_0x2163e0[_0x1e8415(0x240)](_0x5162e9[_0x1e8415(0x312)])){const _0x4c463c=_0x2163e0[_0x1e8415(0x1eb)](_0x5162e9['selection']);_0x4c463c['name']+=',\x20'+_0x5162e9['name'];}else _0x2163e0[_0x1e8415(0x1aa)](_0x5162e9['selection'],_0x5162e9);}),Array[_0x4d8ea7(0x473)](_0x2163e0['values']());}var M=function(){const _0x2e420d=_0x5ea8e9;return M=Object[_0x2e420d(0x1c2)]||function(_0x655819){const _0x4d435a=_0x2e420d;for(var _0x1fa25e,_0x5c0385=0x1,_0x2d0b36=arguments[_0x4d435a(0x23b)];_0x5c0385<_0x2d0b36;_0x5c0385++){_0x1fa25e=arguments[_0x5c0385];for(var _0x3ce4fc in _0x1fa25e)Object[_0x4d435a(0x383)][_0x4d435a(0x165)][_0x4d435a(0x393)](_0x1fa25e,_0x3ce4fc)&&(_0x655819[_0x3ce4fc]=_0x1fa25e[_0x3ce4fc]);}return _0x655819;},M['apply'](this,arguments);},wi=function(_0x48f927,_0x30145c){const _0x3223d5=_0x5ea8e9;var _0x1b8c80={};for(var _0x4481c7 in _0x48f927)Object[_0x3223d5(0x383)]['hasOwnProperty']['call'](_0x48f927,_0x4481c7)&&_0x30145c[_0x3223d5(0x55b)](_0x4481c7)<0x0&&(_0x1b8c80[_0x4481c7]=_0x48f927[_0x4481c7]);if(_0x48f927!=null&&typeof Object[_0x3223d5(0x467)]==_0x3223d5(0x1b4)){for(var _0x4b7f4a=0x0,_0x4481c7=Object[_0x3223d5(0x467)](_0x48f927);_0x4b7f4a<_0x4481c7[_0x3223d5(0x23b)];_0x4b7f4a++)_0x30145c['indexOf'](_0x4481c7[_0x4b7f4a])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x3223d5(0x393)](_0x48f927,_0x4481c7[_0x4b7f4a])&&(_0x1b8c80[_0x4481c7[_0x4b7f4a]]=_0x48f927[_0x4481c7[_0x4b7f4a]]);}return _0x1b8c80;},Ze=P[_0x5ea8e9(0x412)](function(_0x4df680,_0x34cf79){const _0x49f77d=_0x5ea8e9;var _0x19b6c2=_0x4df680[_0x49f77d(0x1e0)],_0x55c318=_0x4df680['id'],_0x195a77=_0x4df680['className'],_0x3cb606=_0x4df680[_0x49f77d(0x363)],_0x552e2f=wi(_0x4df680,[_0x49f77d(0x1e0),'id',_0x49f77d(0x1f4),'extend']),_0x495580=_0x49f77d(0x234)[_0x49f77d(0x33a)](_0x55c318,'\x20')[_0x49f77d(0x33a)](_0x195a77||'')['trim'](),_0x10dc59=P[_0x49f77d(0x1e8)]('_'[_0x49f77d(0x33a)](Ai()));return Mt(_0x19b6c2,''[_0x49f77d(0x33a)](_0x55c318),{'defIds':_0x19b6c2[_0x49f77d(0x491)],'idSuffix':_0x10dc59['current']},M({'ref':_0x34cf79,'className':_0x495580},_0x552e2f),_0x3cb606);});function Mt(_0x497674,_0x46ceae,_0x4d623c,_0x239f5e,_0x51b88b){const _0x113799=_0x5ea8e9;return P[_0x113799(0x2d5)](_0x497674['tag'],M(M({'key':_0x46ceae},Ni(_0x497674,_0x4d623c,_0x51b88b)),_0x239f5e),(Mi(_0x497674,_0x4d623c)[_0x113799(0x174)]||[])[_0x113799(0x558)](function(_0x2d98e7,_0x46e2c0){const _0x342d48=_0x113799;return Mt(_0x2d98e7,''['concat'](_0x46ceae,'-')[_0x342d48(0x33a)](_0x497674[_0x342d48(0x3dd)],'-')[_0x342d48(0x33a)](_0x46e2c0),_0x4d623c,void 0x0,_0x51b88b);}));}function Ni(_0x1594d7,_0x15ffec,_0x28164e){const _0x3a6f94=_0x5ea8e9;var _0x172d9f=M({},_0x1594d7[_0x3a6f94(0x253)]);_0x28164e!=null&&_0x28164e[_0x3a6f94(0x38d)]&&_0x172d9f[_0x3a6f94(0x38b)]===_0x3a6f94(0x38d)&&(_0x172d9f[_0x3a6f94(0x38b)]=_0x28164e['colorChannel1']);var _0x5c4579=_0x15ffec[_0x3a6f94(0x491)];return!_0x5c4579||_0x5c4579[_0x3a6f94(0x23b)]===0x0||(_0x1594d7[_0x3a6f94(0x3dd)]===_0x3a6f94(0x1a8)&&_0x172d9f[_0x3a6f94(0x24e)]&&(_0x172d9f['xlink:href']=_0x172d9f['xlink:href']+_0x15ffec['idSuffix']),Object['entries'](_0x172d9f)[_0x3a6f94(0x4f0)](function(_0xac4766){const _0x31fd1e=_0x3a6f94;var _0x3a6f03=_0xac4766[0x0],_0x5d9025=_0xac4766[0x1];typeof _0x5d9025==_0x31fd1e(0x180)&&(_0x172d9f[_0x3a6f03]=_0x5d9025['replace'](/url\(#(.*)\)/,'url(#$1'[_0x31fd1e(0x33a)](_0x15ffec['idSuffix'],')')));})),_0x172d9f;}function Mi(_0x14a317,_0x3b7f4c){const _0x42cce0=_0x5ea8e9;var _0x31cfae,_0x1941e5=_0x3b7f4c[_0x42cce0(0x491)];return!_0x1941e5||_0x1941e5[_0x42cce0(0x23b)]===0x0?_0x14a317:_0x14a317[_0x42cce0(0x3dd)]===_0x42cce0(0x400)&&(!((_0x31cfae=_0x14a317['children'])===null||_0x31cfae===void 0x0)&&_0x31cfae[_0x42cce0(0x23b)])?M(M({},_0x14a317),{'children':_0x14a317[_0x42cce0(0x174)][_0x42cce0(0x558)](function(_0x50443d){const _0x310c95=_0x42cce0;return typeof _0x50443d['attrs']['id']=='string'&&_0x1941e5&&_0x1941e5['indexOf'](_0x50443d[_0x310c95(0x253)]['id'])>-0x1?M(M({},_0x50443d),{'attrs':M(M({},_0x50443d[_0x310c95(0x253)]),{'id':_0x50443d['attrs']['id']+_0x3b7f4c[_0x310c95(0x437)]})}):_0x50443d;})}):_0x14a317;}function Ai(){const _0x31f58e=_0x5ea8e9;return Math['random']()[_0x31f58e(0x372)](0x24)[_0x31f58e(0x2aa)](0x2,0x8);}Ze[_0x5ea8e9(0x252)]=_0x5ea8e9(0x51f);var Li={'tag':_0x5ea8e9(0x316),'attrs':{'fill':_0x5ea8e9(0x355),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x5ea8e9(0x3b4)},'children':[{'tag':'g','attrs':{'clipPath':_0x5ea8e9(0x53b)},'children':[{'tag':_0x5ea8e9(0x33e),'attrs':{'stroke':'currentColor','d':_0x5ea8e9(0x541),'strokeLinecap':_0x5ea8e9(0x227),'strokeLinejoin':_0x5ea8e9(0x227),'strokeWidth':1.2}}]},{'tag':_0x5ea8e9(0x400),'attrs':{},'children':[{'tag':_0x5ea8e9(0x3bc),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x5ea8e9(0x33e),'attrs':{'fill':_0x5ea8e9(0x1e5),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},At=P[_0x5ea8e9(0x412)](function(_0x1f712a,_0x3905fc){const _0x10ecc4=_0x5ea8e9;return P[_0x10ecc4(0x2d5)](Ze,Object[_0x10ecc4(0x1c2)]({},_0x1f712a,{'id':'off-line-single','ref':_0x3905fc,'icon':Li}));});At[_0x5ea8e9(0x252)]=_0x5ea8e9(0x463);var ji={'tag':_0x5ea8e9(0x316),'attrs':{'fill':_0x5ea8e9(0x355),'viewBox':_0x5ea8e9(0x498),'width':_0x5ea8e9(0x3b4),'height':_0x5ea8e9(0x3b4)},'children':[{'tag':'g','attrs':{'clipPath':_0x5ea8e9(0x324)},'children':[{'tag':'path','attrs':{'stroke':_0x5ea8e9(0x3d9),'d':_0x5ea8e9(0x28a),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5ea8e9(0x400),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5ea8e9(0x2e4)},'children':[{'tag':'path','attrs':{'fill':_0x5ea8e9(0x1e5),'d':'M0\x200H16V16H0z','transform':_0x5ea8e9(0x2e3)}}]}]}],'defIds':[_0x5ea8e9(0x2e4)]},Lt=P[_0x5ea8e9(0x412)](function(_0x487747,_0x33c8b1){const _0xfc0b4=_0x5ea8e9;return P['createElement'](Ze,Object[_0xfc0b4(0x1c2)]({},_0x487747,{'id':_0xfc0b4(0x270),'ref':_0x33c8b1,'icon':ji}));});Lt['displayName']=_0x5ea8e9(0x4bd);function jt(_0x1d9a11){const _0x25647f=_0x5ea8e9;var _0x4def6d,_0x1fd147,_0x4dc0ca='';if(typeof _0x1d9a11==_0x25647f(0x180)||typeof _0x1d9a11==_0x25647f(0x521))_0x4dc0ca+=_0x1d9a11;else{if(typeof _0x1d9a11==_0x25647f(0x1b7)){if(Array[_0x25647f(0x45f)](_0x1d9a11)){var _0x5bfa1a=_0x1d9a11['length'];for(_0x4def6d=0x0;_0x4def6d<_0x5bfa1a;_0x4def6d++)_0x1d9a11[_0x4def6d]&&(_0x1fd147=jt(_0x1d9a11[_0x4def6d]))&&(_0x4dc0ca&&(_0x4dc0ca+='\x20'),_0x4dc0ca+=_0x1fd147);}else{for(_0x1fd147 in _0x1d9a11)_0x1d9a11[_0x1fd147]&&(_0x4dc0ca&&(_0x4dc0ca+='\x20'),_0x4dc0ca+=_0x1fd147);}}}return _0x4dc0ca;}function $i(){for(var _0x187625,_0x415d9e,_0x1b1848=0x0,_0x49567d='',_0x1b29dd=arguments['length'];_0x1b1848<_0x1b29dd;_0x1b1848++)(_0x187625=arguments[_0x1b1848])&&(_0x415d9e=jt(_0x187625))&&(_0x49567d&&(_0x49567d+='\x20'),_0x49567d+=_0x415d9e);return _0x49567d;}const Hi='univer-online-status-icon',xi=_0x5ea8e9(0x321),ki=_0x5ea8e9(0x4b7),Bi='univer-online',Vi=_0x5ea8e9(0x426),he={'onlineStatusIcon':Hi,'onlineStatusTitle':xi,'onlineStatus':ki,'online':Bi,'offline':Vi};function Wi(_0x171f80){const _0x55bcd7=_0x5ea8e9;switch(_0x171f80){case U['OFFLINE']:return'collabStatus.offline';case U[_0x55bcd7(0x197)]:return'collabStatus.conflict';case U[_0x55bcd7(0x40d)]:return _0x55bcd7(0x2f0);case U[_0x55bcd7(0x26f)]:return _0x55bcd7(0x15a);case U['AWAITING']:case U[_0x55bcd7(0x35d)]:return _0x55bcd7(0x43f);case U[_0x55bcd7(0x429)]:case U[_0x55bcd7(0x3be)]:return'collabStatus.synced';}}function $t(_0x298b6b){const _0x175e01=_0x5ea8e9,{status$:_0x1f83b1}=_0x298b6b,_0x3d5e83=A[_0x175e01(0x358)](_0x1f83b1,U['NOT_COLLAB']),_0x2e37b1=a['useDependency'](a[_0x175e01(0x202)]),_0x4f4c46=a[_0x175e01(0x1da)](exports['CollaborationSessionService']),_0x501bc0=_0x3d5e83!==U[_0x175e01(0x2c3)],_0x526994=_0x2e37b1['t'](Wi(_0x3d5e83)),_0x39baf9=$i(he[_0x175e01(0x46b)],{[he['online']]:_0x501bc0,[he['offline']]:!_0x501bc0}),_0x5d6ded=_0x501bc0?P[_0x175e01(0x2d5)](Lt,null):P[_0x175e01(0x2d5)](At,null),_0x13247b=P[_0x175e01(0x267)](()=>{_0x501bc0||_0x4f4c46['reconnect']();},[_0x501bc0,_0x4f4c46]);function _0x2619ea(){const _0x6a2507=_0x175e01;return P[_0x6a2507(0x2d5)](_0x6a2507(0x384),{'className':_0x39baf9,'onClick':_0x13247b},P[_0x6a2507(0x2d5)](_0x6a2507(0x384),{'className':he[_0x6a2507(0x14d)]},_0x5d6ded),P[_0x6a2507(0x2d5)](_0x6a2507(0x384),{'className':he[_0x6a2507(0x3e9)]},_0x526994));}return _0x501bc0?_0x2619ea():P['createElement'](q[_0x175e01(0x56f)],{'title':_0x2e37b1['t'](_0x175e01(0x344))},_0x2619ea());}var Fi=Object[_0x5ea8e9(0x16c)],Gi=Object[_0x5ea8e9(0x1df)],Yi=(_0x12dc0f,_0x2191b4,_0x3a3974,_0x27e986)=>{for(var _0x430e0c=_0x27e986>0x1?void 0x0:_0x27e986?Gi(_0x2191b4,_0x3a3974):_0x2191b4,_0x29b014=_0x12dc0f['length']-0x1,_0x445277;_0x29b014>=0x0;_0x29b014--)(_0x445277=_0x12dc0f[_0x29b014])&&(_0x430e0c=(_0x27e986?_0x445277(_0x2191b4,_0x3a3974,_0x430e0c):_0x445277(_0x430e0c))||_0x430e0c);return _0x27e986&&_0x430e0c&&Fi(_0x2191b4,_0x3a3974,_0x430e0c),_0x430e0c;},me=(_0x311f4b,_0x22f5ab)=>(_0x38363d,_0x52d1ce)=>_0x22f5ab(_0x38363d,_0x52d1ce,_0x311f4b);exports[_0x5ea8e9(0x453)]=class extends a[_0x5ea8e9(0x213)]{constructor(_0x56131d,_0x428be9,_0x47d99f,_0x1b73a1){const _0x1c1da1=_0x5ea8e9;super(),u(this,_0x1c1da1(0x3a7),new v[(_0x1c1da1(0x30e))](U[_0x1c1da1(0x26f)])),(this['_univerInstanceService']=_0x56131d,this['_uiPartsService']=_0x428be9,this[_0x1c1da1(0x19a)]=_0x47d99f,this[_0x1c1da1(0x18f)]=_0x1b73a1,this[_0x1c1da1(0x241)](),this[_0x1c1da1(0x243)]());}[_0x5ea8e9(0x243)](){const _0x339d2d=_0x5ea8e9;this[_0x339d2d(0x568)](this['_univerInstanceService'][_0x339d2d(0x477)][_0x339d2d(0x286)](v[_0x339d2d(0x139)](()=>{const _0x431e2b=_0x339d2d,_0xe7ad8c=this[_0x431e2b(0x1be)][_0x431e2b(0x326)]();return _0xe7ad8c?this[_0x431e2b(0x18f)][_0x431e2b(0x27e)](_0xe7ad8c[_0x431e2b(0x55a)]()):v['of'](null);}),v[_0x339d2d(0x139)](_0x24e4a5=>_0x24e4a5?_0x24e4a5[_0x339d2d(0x4ee)]:v['of'](U[_0x339d2d(0x26f)])))[_0x339d2d(0x21d)](_0x571632=>{const _0x16ce0f=_0x339d2d;this['_status$'][_0x16ce0f(0x348)](_0x571632);}));}[_0x5ea8e9(0x241)](){const _0x3de67f=_0x5ea8e9;this['disposeWithMe'](this[_0x3de67f(0x288)]['registerComponent'](A[_0x3de67f(0x291)]['HEADER_MENU'],()=>a[_0x3de67f(0x3f9)](Ki({'status$':this[_0x3de67f(0x3a7)][_0x3de67f(0x19d)]()}),this[_0x3de67f(0x19a)])));}},exports[_0x5ea8e9(0x453)]=Yi([me(0x0,a['IUniverInstanceService']),me(0x1,A[_0x5ea8e9(0x201)]),me(0x2,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),me(0x3,a[_0x5ea8e9(0x3c8)](exports[_0x5ea8e9(0x54e)]))],exports['DesktopCollaborationStatusDisplayController']);function Ki(_0x24a196){const {status$:_0x2bf575}=_0x24a196;return function(){const _0x4b1602=_0x2fbf;return P[_0x4b1602(0x2d5)]($t,{'status$':_0x2bf575});};}const Qe=a[_0x5ea8e9(0x311)](_0x5ea8e9(0x475));var qi=Object[_0x5ea8e9(0x16c)],Xi=Object[_0x5ea8e9(0x1df)],zi=(_0x40687c,_0x123572,_0x3ff0e3,_0x1785e3)=>{const _0x36e523=_0x5ea8e9;for(var _0xfccd17=_0x1785e3>0x1?void 0x0:_0x1785e3?Xi(_0x123572,_0x3ff0e3):_0x123572,_0x80025a=_0x40687c[_0x36e523(0x23b)]-0x1,_0x51080d;_0x80025a>=0x0;_0x80025a--)(_0x51080d=_0x40687c[_0x80025a])&&(_0xfccd17=(_0x1785e3?_0x51080d(_0x123572,_0x3ff0e3,_0xfccd17):_0x51080d(_0xfccd17))||_0xfccd17);return _0x1785e3&&_0xfccd17&&qi(_0x123572,_0x3ff0e3,_0xfccd17),_0xfccd17;},ee=(_0x549078,_0xac1cc)=>(_0x4e067f,_0x3508c7)=>_0xac1cc(_0x4e067f,_0x3508c7,_0x549078);exports[_0x5ea8e9(0x389)]=class extends a['RxDisposable']{constructor(_0x1f39c5,_0x25bfb9,_0x56224d,_0xa95d90,_0x421a17,_0x3df95a){const _0x37ed5c=_0x5ea8e9;super(),this[_0x37ed5c(0x1d1)]=_0x1f39c5,this[_0x37ed5c(0x1d5)]=_0x25bfb9,this[_0x37ed5c(0x1ec)]=_0x56224d,this['_localCacheService']=_0xa95d90,this[_0x37ed5c(0x413)]=_0x421a17,_0x3df95a?_0x3df95a==null||_0x3df95a['whenReady']()[_0x37ed5c(0x3f6)](()=>this['_init']()):(this[_0x37ed5c(0x1d5)][_0x37ed5c(0x333)](_0x37ed5c(0x3a1),_0x37ed5c(0x199)),this[_0x37ed5c(0x319)]());}async[_0x5ea8e9(0x319)](){const _0x56a2cc=_0x5ea8e9,_0x696cf5=this[_0x56a2cc(0x1d1)][_0x56a2cc(0x159)](_0x56a2cc(0x3ad)),_0x1a8c30=this[_0x56a2cc(0x1d1)][_0x56a2cc(0x159)](_0x56a2cc(0x335));if(!_0x696cf5||!_0x1a8c30){this['_logService']['debug'](_0x56a2cc(0x3a1),_0x56a2cc(0x177));return;}switch(Number(_0x1a8c30)){case $[_0x56a2cc(0x2ae)]:{const _0x2d7850=await this[_0x56a2cc(0x244)](_0x696cf5);this[_0x56a2cc(0x216)](_0x2d7850);break;}case $['UNIVER_DOC']:{await this[_0x56a2cc(0x4d9)](_0x696cf5);break;}default:{this['_logService'][_0x56a2cc(0x272)](_0x56a2cc(0x3a1),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x5ea8e9(0x216)](_0x8b0300){const _0x3b77d3=_0x5ea8e9;await this[_0x3b77d3(0x2b3)](_0x8b0300),_0x8b0300[_0x3b77d3(0x4e0)][_0x3b77d3(0x286)](v['takeUntil'](this[_0x3b77d3(0x1a0)]))[_0x3b77d3(0x21d)](_0x26e583=>{const _0x24cfe2=_0x3b77d3;_0x26e583&&this[_0x24cfe2(0x21a)](_0x26e583);}),this[_0x3b77d3(0x1d1)][_0x3b77d3(0x224)][_0x3b77d3(0x286)](v[_0x3b77d3(0x314)](this[_0x3b77d3(0x1a0)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x8b0300));}[_0x5ea8e9(0x21a)](_0x1da396,_0x59a088=!0x1){const _0x49d523=_0x5ea8e9,_0x336753=this[_0x49d523(0x1d1)][_0x49d523(0x159)](_0x49d523(0x3ed));_0x1da396[_0x49d523(0x4f5)]()!==_0x336753&&this[_0x49d523(0x1d1)][_0x49d523(0x551)]('subunit',_0x1da396['getSheetId'](),_0x59a088);}async[_0x5ea8e9(0x2b3)](_0x4d133a){const _0x4f3484=_0x5ea8e9;var _0x263dd5;const _0x52f37d=this[_0x4f3484(0x1d1)][_0x4f3484(0x159)](_0x4f3484(0x3ed));if(!_0x52f37d||!_0x4d133a[_0x4f3484(0x4e4)](_0x52f37d)){const _0x34e9c1=_0x4d133a[_0x4f3484(0x1ad)]()[0x0],_0x43c663=_0x4d133a['getSheetBySheetId'](_0x34e9c1);if(!_0x43c663)return;this[_0x4f3484(0x21a)](_0x43c663,!0x0),await this['_commandService'][_0x4f3484(0x388)](C[_0x4f3484(0x18d)]['id'],{'unitId':_0x4d133a[_0x4f3484(0x55a)](),'subUnitId':_0x34e9c1});return;}((_0x263dd5=_0x4d133a[_0x4f3484(0x4cd)]())==null?void 0x0:_0x263dd5[_0x4f3484(0x4f5)]())!==_0x52f37d&&await this[_0x4f3484(0x1ec)][_0x4f3484(0x388)](C[_0x4f3484(0x18d)]['id'],{'unitId':_0x4d133a[_0x4f3484(0x55a)](),'subUnitId':_0x52f37d});}async['_loadSheet'](_0x22cedd){const _0x453ef7=_0x5ea8e9;let _0x1f7c1a=0x0;const _0x430c33=await this[_0x453ef7(0x4ed)][_0x453ef7(0x222)](_0x22cedd);return _0x430c33&&(_0x430c33[_0x453ef7(0x516)]||_0x430c33[_0x453ef7(0x220)][_0x453ef7(0x23b)]!==0x0)&&(_0x1f7c1a=_0x430c33['rev']),_0x1f7c1a===0x0&&this[_0x453ef7(0x1d5)][_0x453ef7(0x333)](_0x453ef7(0x3a1),_0x453ef7(0x40a)),this[_0x453ef7(0x413)][_0x453ef7(0x150)](_0x22cedd,_0x1f7c1a);}async['_loadDoc'](_0x2d68e9){const _0x3712ff=_0x5ea8e9;let _0xbe2a01=0x0;const _0x527487=await this[_0x3712ff(0x4ed)]['loadOfflineData'](_0x2d68e9);return _0x527487&&(_0x527487[_0x3712ff(0x516)]||_0x527487[_0x3712ff(0x220)]['length']!==0x0)&&(_0xbe2a01=_0x527487[_0x3712ff(0x30a)]),_0xbe2a01===0x0&&this[_0x3712ff(0x1d5)][_0x3712ff(0x333)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3712ff(0x413)]['loadDoc'](_0x2d68e9,_0xbe2a01);}},exports['DataLoaderController']=zi([ee(0x0,Qe),ee(0x1,a[_0x5ea8e9(0x486)]),ee(0x2,a[_0x5ea8e9(0x38c)]),ee(0x3,a[_0x5ea8e9(0x3c8)](exports['LocalCacheService'])),ee(0x4,a[_0x5ea8e9(0x3c8)](_[_0x5ea8e9(0x31f)])),ee(0x5,a['Optional'](Xt[_0x5ea8e9(0x2e9)]))],exports[_0x5ea8e9(0x389)]);var Ji=Object[_0x5ea8e9(0x16c)],Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x3e101b,_0x186f50,_0x5b9963,_0x5ca2d6)=>{const _0x24dce3=_0x5ea8e9;for(var _0x844623=_0x5ca2d6>0x1?void 0x0:_0x5ca2d6?Zi(_0x186f50,_0x5b9963):_0x186f50,_0x516f4e=_0x3e101b[_0x24dce3(0x23b)]-0x1,_0x27b91b;_0x516f4e>=0x0;_0x516f4e--)(_0x27b91b=_0x3e101b[_0x516f4e])&&(_0x844623=(_0x5ca2d6?_0x27b91b(_0x186f50,_0x5b9963,_0x844623):_0x27b91b(_0x844623))||_0x844623);return _0x5ca2d6&&_0x844623&&Ji(_0x186f50,_0x5b9963,_0x844623),_0x844623;},_t=(_0x33fc48,_0x24b644)=>(_0xa4c3b9,_0x218356)=>_0x24b644(_0xa4c3b9,_0x218356,_0x33fc48);const en='DEFAULT_FILE_NAME',tn=_0x5ea8e9(0x249);let Ce=class extends a[_0x5ea8e9(0x213)]{constructor(_0x5f3733,_0x2cdb29){const _0x583ab4=_0x5ea8e9;super(),this[_0x583ab4(0x1be)]=_0x5f3733,this['_configService']=_0x2cdb29,this[_0x583ab4(0x319)]();}[_0x5ea8e9(0x319)](){const _0x292af2=_0x5ea8e9;this[_0x292af2(0x568)](this[_0x292af2(0x1be)][_0x292af2(0x477)][_0x292af2(0x21d)](()=>{const _0x702c14=_0x292af2;var _0x4edfb0;const _0x5d3344=this[_0x702c14(0x1be)]['getFocusedUnit']();let _0x264818=(_0x4edfb0=this[_0x702c14(0x18c)]['getConfig'](en))!=null?_0x4edfb0:tn;_0x5d3344 instanceof a[_0x702c14(0x52e)]&&(_0x264818=_0x5d3344[_0x702c14(0x455)]),document[_0x702c14(0x285)]=_0x264818;}));}};Ce=Qi([_t(0x0,a[_0x5ea8e9(0x36b)]),_t(0x1,a[_0x5ea8e9(0x464)])],Ce);var sn=Object[_0x5ea8e9(0x16c)],nn=Object[_0x5ea8e9(0x1df)],rn=(_0x4d91fd,_0x428519,_0xcd9d62,_0x2d2280)=>{const _0x569814=_0x5ea8e9;for(var _0x3140b7=_0x2d2280>0x1?void 0x0:_0x2d2280?nn(_0x428519,_0xcd9d62):_0x428519,_0x535061=_0x4d91fd[_0x569814(0x23b)]-0x1,_0x16c726;_0x535061>=0x0;_0x535061--)(_0x16c726=_0x4d91fd[_0x535061])&&(_0x3140b7=(_0x2d2280?_0x16c726(_0x428519,_0xcd9d62,_0x3140b7):_0x16c726(_0x3140b7))||_0x3140b7);return _0x2d2280&&_0x3140b7&&sn(_0x428519,_0xcd9d62,_0x3140b7),_0x3140b7;},He=(_0x15aded,_0x5a3fd7)=>(_0x563862,_0x173b9b)=>_0x5a3fd7(_0x563862,_0x173b9b,_0x15aded);let Ee=class{constructor(_0x242300,_0x2043fa,_0x346cc0){const _0x1f508d=_0x5ea8e9;this['_configService']=_0x242300,this['_httpService']=_0x2043fa,this[_0x1f508d(0x242)]=_0x346cc0,this['init']();}[_0x5ea8e9(0x360)](){const _0xc4d70b=_0x5ea8e9;this[_0xc4d70b(0x3cd)][_0xc4d70b(0x4e1)]({'priority':0x1,'interceptor':(_0x504897,_0xd9ed)=>_0xd9ed(_0x504897)[_0xc4d70b(0x286)](v[_0xc4d70b(0x513)](async _0x1278a2=>{const _0x56800d=_0xc4d70b,_0xb8cd54=_0x1278a2;if(_0xb8cd54[_0x56800d(0x2d6)]===0x191&&window[_0x56800d(0x153)](this[_0x56800d(0x242)]['t']('auth.needGotoLoginAlert'))){const _0x198037=window[_0x56800d(0x262)](window['location'][_0x56800d(0x3c3)]);window[_0x56800d(0x395)][_0x56800d(0x3c3)]=this['_getLoginPath']()+_0x56800d(0x17b)+_0x198037;}return _0xb8cd54;}))});}['_getLoginPath'](){const _0x2e3a43=_0x5ea8e9;var _0x1007da,_0x3b18fb;const _0x421f92=this[_0x2e3a43(0x18c)][_0x2e3a43(0x41c)](Et),_0x45ac6c=this[_0x2e3a43(0x18c)]['getConfig'](L);return(_0x3b18fb=(_0x1007da=_0x45ac6c==null?void 0x0:_0x45ac6c[_0x2e3a43(0x46f)])!=null?_0x1007da:_0x421f92)!=null?_0x3b18fb:os;}};Ee=rn([He(0x0,a[_0x5ea8e9(0x464)]),He(0x1,a[_0x5ea8e9(0x3c8)](w['HTTPService'])),He(0x2,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x202)]))],Ee);var on=Object[_0x5ea8e9(0x16c)],an=Object[_0x5ea8e9(0x1df)],cn=(_0x3fe790,_0x3c3934,_0x39422a,_0x1594c7)=>{const _0x19688f=_0x5ea8e9;for(var _0x3527da=_0x1594c7>0x1?void 0x0:_0x1594c7?an(_0x3c3934,_0x39422a):_0x3c3934,_0x39b721=_0x3fe790[_0x19688f(0x23b)]-0x1,_0x2a1498;_0x39b721>=0x0;_0x39b721--)(_0x2a1498=_0x3fe790[_0x39b721])&&(_0x3527da=(_0x1594c7?_0x2a1498(_0x3c3934,_0x39422a,_0x3527da):_0x2a1498(_0x3527da))||_0x3527da);return _0x1594c7&&_0x3527da&&on(_0x3c3934,_0x39422a,_0x3527da),_0x3527da;},ut=(_0x480e02,_0x5e19bf)=>(_0x15592a,_0x988ef3)=>_0x5e19bf(_0x15592a,_0x988ef3,_0x480e02);const Ht=_0x5ea8e9(0x2ab),ln='/universer-api/authz';exports[_0x5ea8e9(0x4e5)]=class extends a[_0x5ea8e9(0x213)]{constructor(_0xf91705,_0x4ad8b2){const _0x5a928f=_0x5ea8e9;super(),this[_0x5a928f(0x231)]=_0xf91705,this[_0x5a928f(0x18c)]=_0x4ad8b2,this[_0x5a928f(0x552)]();}[_0x5ea8e9(0x552)](){const _0x29e8ba=_0x5ea8e9,_0x16131d=this;this[_0x29e8ba(0x568)](this[_0x29e8ba(0x231)][_0x29e8ba(0x4e1)]({'priority':0x3e7,'interceptor':w[_0x29e8ba(0x15b)]({'isMatch'(_0x4f56df){const _0x32b482=_0x29e8ba;var _0x2d99e7;if(_0x4f56df[_0x32b482(0x390)]===_0x32b482(0x258)&&((_0x2d99e7=_0x4f56df[_0x32b482(0x1a6)])!=null&&_0x2d99e7['body'])){const {objectID:_0x287156,objectType:_0x2e6127}=_0x4f56df['requestParams'][_0x32b482(0x31b)]||{};if(!_0x287156||_0x2e6127===void 0x0)return!0x1;const _0x59d1b0=_0x16131d[_0x32b482(0x1ed)]()+'/'+_0x2e6127+_0x32b482(0x347)+_0x287156+_0x32b482(0x36f);if(_0x4f56df[_0x32b482(0x3de)]===_0x59d1b0)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x376630){const _0x4c1c51=_0x29e8ba;var _0xc8c673;return(_0xc8c673=_0x376630['requestParams'])==null?void 0x0:_0xc8c673[_0x4c1c51(0x31b)];},'mergeParamsToRequest'(_0x45c5a4,_0x99964){const _0x50948b=_0x29e8ba,_0x33747f=_0x16131d['_getAPIPrefixPath']()+_0x50948b(0x29b),_0x316d61=_0x45c5a4[_0x50948b(0x2bf)]((_0x3dc0a1,_0x1635bb)=>{const _0x145509=_0x50948b,{unitID:_0x30608a,objectID:_0x1a4618,objectType:_0x2d6cdb,actions:_0x266524}=_0x1635bb;return _0x3dc0a1[_0x30608a]||(_0x3dc0a1[_0x30608a]={}),_0x3dc0a1[_0x30608a][_0x1a4618]||(_0x3dc0a1[_0x30608a][_0x1a4618]={'objectID':_0x1a4618,'objectType':_0x2d6cdb,'actions':[]}),_0x3dc0a1[_0x30608a][_0x1a4618][_0x145509(0x515)][_0x145509(0x3e0)](..._0x266524),_0x3dc0a1;},{}),_0x4dcdbc=[];for(const _0x2dc87e in _0x316d61)for(const _0x187b5c in _0x316d61[_0x2dc87e]){const {actions:_0x11f185,objectType:_0x1027fe}=_0x316d61[_0x2dc87e][_0x187b5c],_0x4be62b=[...new Set(_0x11f185)];_0x4dcdbc[_0x50948b(0x3e0)]({'unitID':_0x2dc87e,'objectID':_0x187b5c,'objectType':_0x1027fe,'actions':_0x4be62b});}return new w[(_0x50948b(0x4b3))](_0x50948b(0x258),_0x33747f,{'headers':_0x99964[_0x50948b(0x1dd)],'withCredentials':_0x99964['withCredentials'],'responseType':_0x99964[_0x50948b(0x323)],'body':{'requests':_0x4dcdbc}});}},{'distributeResult'(_0x1dbd89,_0xfe7d10){const {objectActions:_0x1a6658}=_0x1dbd89;return _0xfe7d10['map'](_0x5eab43=>{const _0x1d8ff9=_0x2fbf,{unitID:_0x55bbff,objectID:_0x257ffa,actions:_0x58a08c}=_0x5eab43,_0x250565=_0x1a6658[_0x1d8ff9(0x44a)](_0x2a3bdf=>_0x2a3bdf[_0x1d8ff9(0x46c)]===_0x55bbff&&_0x2a3bdf['objectID']===_0x257ffa),_0x388ae4=_0x58a08c[_0x1d8ff9(0x558)](_0x35dece=>_0x250565==null?void 0x0:_0x250565['actions'][_0x1d8ff9(0x44a)](_0x3e3c08=>_0x3e3c08[_0x1d8ff9(0x452)]===_0x35dece))[_0x1d8ff9(0x207)](_0x31f75e=>!!_0x31f75e);return{'config':_0x5eab43,'result':{'actions':_0x388ae4,'error':_0x1dbd89[_0x1d8ff9(0x272)]}};});}})}));}[_0x5ea8e9(0x1ed)](){const _0x1cc301=_0x5ea8e9;var _0xc7087,_0x36b509;const _0x41c46d=this[_0x1cc301(0x18c)][_0x1cc301(0x41c)](Ht),_0x378269=this[_0x1cc301(0x18c)][_0x1cc301(0x41c)](L);return(_0x36b509=(_0xc7087=_0x378269==null?void 0x0:_0x378269[_0x1cc301(0x496)])!=null?_0xc7087:_0x41c46d)!=null?_0x36b509:ln;}async[_0x5ea8e9(0x343)](_0xfec060){const _0x32024c=_0x5ea8e9,_0x3414f9=this[_0x32024c(0x1ed)]()+'/'+_0xfec060['objectType']+_0x32024c(0x2ed);return(await this['_HTTPService']['post'](_0x3414f9,{'body':_0xfec060}))[_0x32024c(0x31b)]['objectID']||'';}async[_0x5ea8e9(0x54a)](_0x367833){const _0x26c009=_0x5ea8e9,_0x3eb99c=this[_0x26c009(0x1ed)]()+_0x26c009(0x2a1);return(await this[_0x26c009(0x231)][_0x26c009(0x20e)](_0x3eb99c,{'body':_0x367833}))[_0x26c009(0x31b)][_0x26c009(0x28b)];}async[_0x5ea8e9(0x37d)](_0x19fff3){const _0x936a83=_0x5ea8e9,_0x132f63=this[_0x936a83(0x1ed)]()+'/'+_0x19fff3[_0x936a83(0x41e)]+'/object/'+_0x19fff3[_0x936a83(0x392)];await this[_0x936a83(0x231)][_0x936a83(0x43c)](_0x132f63,{'body':_0x19fff3});}async[_0x5ea8e9(0x1a4)](_0x1c0b51){const _0x11b9e7=_0x5ea8e9,_0x293d27=this[_0x11b9e7(0x1ed)]()+'/'+_0x1c0b51[_0x11b9e7(0x41e)]+_0x11b9e7(0x347)+_0x1c0b51[_0x11b9e7(0x392)]+'/allowed';return(await this[_0x11b9e7(0x231)][_0x11b9e7(0x20e)](_0x293d27,{'body':_0x1c0b51}))[_0x11b9e7(0x31b)][_0x11b9e7(0x515)];}async['batchAllowed'](_0x2a2e46){const _0x5becf4=_0x5ea8e9,_0x609185=this[_0x5becf4(0x1ed)]()+_0x5becf4(0x29b);return(await this[_0x5becf4(0x231)]['post'](_0x609185,{'body':{'requests':_0x2a2e46}}))['body'][_0x5becf4(0x332)];}async[_0x5ea8e9(0x186)](_0x2e3b0a){const _0x51c28c=_0x5ea8e9,_0x3609ba=this[_0x51c28c(0x1ed)]()+'/'+_0x2e3b0a[_0x51c28c(0x41e)]+_0x51c28c(0x166),_0x23c379=await this[_0x51c28c(0x231)]['post'](_0x3609ba,{'body':_0x2e3b0a});return{'roles':_0x23c379[_0x51c28c(0x31b)][_0x51c28c(0x52b)],'actions':_0x23c379[_0x51c28c(0x31b)][_0x51c28c(0x515)]};}async[_0x5ea8e9(0x511)](_0x1f30e1){const _0x64fcfd=_0x5ea8e9,_0x30ed5e=this[_0x64fcfd(0x1ed)]()+_0x64fcfd(0x280);await this[_0x64fcfd(0x231)][_0x64fcfd(0x307)](_0x30ed5e,{'params':{'collaboratorID':_0x1f30e1[_0x64fcfd(0x370)],'objectID':_0x1f30e1[_0x64fcfd(0x392)],'unitID':_0x1f30e1['unitID']}});}async[_0x5ea8e9(0x4f3)](_0x1627dd){const _0x315793=_0x5ea8e9,_0x2141b0=this[_0x315793(0x1ed)]()+_0x315793(0x280);await this['_HTTPService'][_0x315793(0x23f)](_0x2141b0,{'body':_0x1627dd});}async[_0x5ea8e9(0x1db)](_0x53e695){const _0x354fbe=_0x5ea8e9,_0x43683d=this[_0x354fbe(0x1ed)]()+'/collaborator';await this['_HTTPService'][_0x354fbe(0x20e)](_0x43683d,{'body':_0x53e695});}async[_0x5ea8e9(0x44b)](_0x5961b7){const _0x10e5be=_0x5ea8e9,_0x593890=this[_0x10e5be(0x1ed)]()+_0x10e5be(0x280);return(await this[_0x10e5be(0x231)][_0x10e5be(0x1eb)](_0x593890,{'params':{'objectID':_0x5961b7[_0x10e5be(0x392)],'unitID':_0x5961b7[_0x10e5be(0x46c)]}}))[_0x10e5be(0x31b)][_0x10e5be(0x50a)];}async[_0x5ea8e9(0x193)](_0x152913){const _0x723475=_0x5ea8e9,_0x13607f=this[_0x723475(0x1ed)]()+_0x723475(0x280);await this['_HTTPService'][_0x723475(0x43c)](_0x13607f,{'body':_0x152913});}},exports['AuthzIoHttpService']=cn([ut(0x0,a[_0x5ea8e9(0x3c8)](w[_0x5ea8e9(0x352)])),ut(0x1,a['Inject'](a[_0x5ea8e9(0x464)]))],exports[_0x5ea8e9(0x4e5)]);var hn=Object[_0x5ea8e9(0x16c)],_n=Object['getOwnPropertyDescriptor'],un=(_0x383da,_0x4d7d2b,_0x3e93b8,_0x29211c)=>{const _0x359df9=_0x5ea8e9;for(var _0x44b7cb=_0x29211c>0x1?void 0x0:_0x29211c?_n(_0x4d7d2b,_0x3e93b8):_0x4d7d2b,_0x172cb8=_0x383da[_0x359df9(0x23b)]-0x1,_0x1e0a8c;_0x172cb8>=0x0;_0x172cb8--)(_0x1e0a8c=_0x383da[_0x172cb8])&&(_0x44b7cb=(_0x29211c?_0x1e0a8c(_0x4d7d2b,_0x3e93b8,_0x44b7cb):_0x1e0a8c(_0x44b7cb))||_0x44b7cb);return _0x29211c&&_0x44b7cb&&hn(_0x4d7d2b,_0x3e93b8,_0x44b7cb),_0x44b7cb;},dn=(_0x241d86,_0x27c008)=>(_0x11ba92,_0x447c35)=>_0x27c008(_0x11ba92,_0x447c35,_0x241d86);let be=class{constructor(_0x282ce9){const _0x1b69d6=_0x5ea8e9;this[_0x1b69d6(0x3cd)]=_0x282ce9,this[_0x1b69d6(0x151)]();}['_initRequestHeader'](){const _0x558517=_0x5ea8e9;this[_0x558517(0x3cd)][_0x558517(0x4e1)]({'interceptor':(_0x513451,_0x1bf449)=>{const _0x121769=_0x558517,_0x488bf3=_0x513451['headers'],_0x59ac5c=zt[_0x121769(0x221)]();return _0x59ac5c&&_0x488bf3['set'](_0x121769(0x398),_0x59ac5c),_0x1bf449(_0x513451);}});}};be=un([dn(0x0,a['Inject'](w['HTTPService']))],be);var Sn=Object[_0x5ea8e9(0x16c)],vn=Object[_0x5ea8e9(0x1df)],mn=(_0x1b383c,_0x181a8c,_0x348de8,_0x46e7b7)=>{const _0x5d4935=_0x5ea8e9;for(var _0x16c416=_0x46e7b7>0x1?void 0x0:_0x46e7b7?vn(_0x181a8c,_0x348de8):_0x181a8c,_0x28dbff=_0x1b383c[_0x5d4935(0x23b)]-0x1,_0x1d9f40;_0x28dbff>=0x0;_0x28dbff--)(_0x1d9f40=_0x1b383c[_0x28dbff])&&(_0x16c416=(_0x46e7b7?_0x1d9f40(_0x181a8c,_0x348de8,_0x16c416):_0x1d9f40(_0x16c416))||_0x16c416);return _0x46e7b7&&_0x16c416&&Sn(_0x181a8c,_0x348de8,_0x16c416),_0x16c416;},xe=(_0x5a12eb,_0x2f8fab)=>(_0x128e75,_0x50bfc3)=>_0x2f8fab(_0x128e75,_0x50bfc3,_0x5a12eb);const gn=[_0x5ea8e9(0x284),_0x5ea8e9(0x48d),_0x5ea8e9(0x431),_0x5ea8e9(0x468),_0x5ea8e9(0x4e9)],fn=0x5*0x400*0x400,In=_0x5ea8e9(0x28e),pn=_0x5ea8e9(0x545),Cn=_0x5ea8e9(0x4ff),En=_0x5ea8e9(0x2b8);exports['ImageIoService']=class{constructor(_0x3ba488,_0x5abc5d,_0xd4316a){const _0x809698=_0x5ea8e9;u(this,_0x809698(0x45c),0x0),u(this,'_change$',new v[(_0x809698(0x16f))]()),u(this,_0x809698(0x32f),this[_0x809698(0x417)]),u(this,_0x809698(0x34d),new Map()),(this[_0x809698(0x3cd)]=_0x3ba488,this['_configService']=_0x5abc5d,this['_univerInstanceService']=_0xd4316a);}[_0x5ea8e9(0x187)](_0x5e26bb){const _0x359959=_0x5ea8e9;this['_waitCount']=_0x5e26bb,this[_0x359959(0x417)][_0x359959(0x348)](_0x5e26bb);}[_0x5ea8e9(0x3ca)](_0x37de07,_0x46b3d2){const _0x59929f=_0x5ea8e9;if(_0x46b3d2===j['ImageSourceType']['BASE64']){const _0x2b25ce=new Image();return _0x2b25ce['src']=_0x37de07,_0x2b25ce;}return this[_0x59929f(0x34d)][_0x59929f(0x1eb)](_0x37de07);}[_0x5ea8e9(0x2cd)](_0x470d8a,_0x54aeae,_0x2ec2f0){const _0x28f487=_0x5ea8e9;_0x54aeae===j[_0x28f487(0x2ce)][_0x28f487(0x476)]||_0x2ec2f0==null||this[_0x28f487(0x34d)][_0x28f487(0x1aa)](_0x470d8a,_0x2ec2f0);}async['getImage'](_0x2d01c6){const _0x47550e=_0x5ea8e9;try{const _0x28d5d7=this[_0x47550e(0x3c5)](this[_0x47550e(0x418)](),''+_0x2d01c6),_0x38e831=(await this[_0x47550e(0x3cd)][_0x47550e(0x1eb)](_0x28d5d7))['body'];if(_0x38e831[_0x47550e(0x272)]&&_0x38e831['error'][_0x47550e(0x479)]===bt['OK']){const _0x459bfc=new URL(_0x38e831[_0x47550e(0x3de)],this[_0x47550e(0x458)]())[_0x47550e(0x372)]();return Promise[_0x47550e(0x39d)](_0x459bfc);}return Promise['reject'](_0x38e831['error']);}catch(_0x41590f){return Promise[_0x47550e(0x481)](_0x41590f);}}async[_0x5ea8e9(0x500)](_0x5a480f){const _0x503b8d=_0x5ea8e9;let _0x3e94c9='';if(!gn['includes'](_0x5a480f[_0x503b8d(0x335)]))return this[_0x503b8d(0x35c)](),Promise['reject'](new Error(j[_0x503b8d(0x3d1)][_0x503b8d(0x2fd)]));if(_0x5a480f[_0x503b8d(0x374)]>fn)return this[_0x503b8d(0x35c)](),Promise[_0x503b8d(0x481)](new Error(j[_0x503b8d(0x3d1)][_0x503b8d(0x3d0)]));try{const _0x1c5fd1=new FormData();_0x1c5fd1['append']('file',_0x5a480f);const _0x42a76f=this[_0x503b8d(0x1be)][_0x503b8d(0x326)](),_0x3707b1=_0x42a76f==null?void 0x0:_0x42a76f[_0x503b8d(0x55a)]();if(!_0x3707b1)throw new Error(_0x503b8d(0x3ea));const _0x5c34a4=this[_0x503b8d(0x530)]()+_0x503b8d(0x257)+_0x5a480f[_0x503b8d(0x374)][_0x503b8d(0x372)]()+_0x503b8d(0x31d)+Tt[_0x503b8d(0x2c9)]+_0x503b8d(0x409)+encodeURIComponent(_0x3707b1),_0x545a19=await(await fetch(_0x5c34a4,{'method':_0x503b8d(0x258),'body':_0x1c5fd1}))['json']();if(typeof _0x545a19[_0x503b8d(0x53e)]!='string')return this[_0x503b8d(0x35c)](),Promise[_0x503b8d(0x481)](new Error(j[_0x503b8d(0x3d1)][_0x503b8d(0x3b0)]));_0x3e94c9=_0x545a19[_0x503b8d(0x53e)];}catch{return this['_decreaseWaiting'](),Promise[_0x503b8d(0x481)](new Error(j[_0x503b8d(0x3d1)][_0x503b8d(0x3b0)]));}return new Promise((_0x5bdea2,_0x2bb4b2)=>{const _0x1efe53=new FileReader();_0x1efe53['readAsDataURL'](_0x5a480f),_0x1efe53['onload']=_0x4a9c11=>{const _0x34341a=_0x2fbf;var _0x43c77d;const _0x175ce7=(_0x43c77d=_0x4a9c11[_0x34341a(0x4ca)])==null?void 0x0:_0x43c77d[_0x34341a(0x248)];if(_0x175ce7==null){this[_0x34341a(0x35c)](),_0x2bb4b2(new Error(j['ImageUploadStatusType'][_0x34341a(0x3b0)]));return;}const _0x4e9f9e=a['Tools']['generateRandomId'](0x6);_0x5bdea2({'imageId':_0x4e9f9e,'imageSourceType':j[_0x34341a(0x2ce)][_0x34341a(0x161)],'source':_0x3e94c9,'base64Cache':_0x175ce7,'status':j[_0x34341a(0x3d1)][_0x34341a(0x1ef)]}),this[_0x34341a(0x35c)]();};});}[_0x5ea8e9(0x530)](){const _0x35de18=_0x5ea8e9;var _0x4ad077,_0x444770;const _0x1f7f32=this[_0x35de18(0x18c)][_0x35de18(0x41c)](In),_0x2cda11=this[_0x35de18(0x18c)][_0x35de18(0x41c)](L);return(_0x444770=(_0x4ad077=_0x2cda11==null?void 0x0:_0x2cda11[_0x35de18(0x564)])!=null?_0x4ad077:_0x1f7f32)!=null?_0x444770:pn;}[_0x5ea8e9(0x418)](){const _0x460452=_0x5ea8e9;var _0x9d64c0,_0x3e3545;const _0x5698a3=this[_0x460452(0x18c)][_0x460452(0x41c)](Cn),_0xc20a89=this[_0x460452(0x18c)]['getConfig'](L);return(_0x3e3545=(_0x9d64c0=_0xc20a89==null?void 0x0:_0xc20a89[_0x460452(0x410)])!=null?_0x9d64c0:_0x5698a3)!=null?_0x3e3545:En;}[_0x5ea8e9(0x458)](){const _0x23c1a5=_0x5ea8e9;var _0x26c99c;const _0x30c9cf=this[_0x23c1a5(0x18c)][_0x23c1a5(0x41c)](L);return(_0x26c99c=_0x30c9cf==null?void 0x0:_0x30c9cf[_0x23c1a5(0x50e)])!=null?_0x26c99c:location[_0x23c1a5(0x18b)];}[_0x5ea8e9(0x3c5)](_0x8dd689,_0x488b53){const _0x577276=_0x5ea8e9;return _0x8dd689[_0x577276(0x1cb)](_0x577276(0x170),_0x488b53);}[_0x5ea8e9(0x35c)](){const _0x524278=_0x5ea8e9;this[_0x524278(0x45c)]-=0x1,this[_0x524278(0x417)][_0x524278(0x348)](this[_0x524278(0x45c)]);}},exports[_0x5ea8e9(0x26a)]=mn([xe(0x0,a['Inject'](w[_0x5ea8e9(0x352)])),xe(0x1,a[_0x5ea8e9(0x464)]),xe(0x2,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x36b)]))],exports[_0x5ea8e9(0x26a)]);var bn=Object['defineProperty'],Tn=Object['getOwnPropertyDescriptor'],Rn=(_0x56f224,_0x3a6df0,_0x4e907f,_0x489c19)=>{const _0x118bb6=_0x5ea8e9;for(var _0x5b4094=_0x489c19>0x1?void 0x0:_0x489c19?Tn(_0x3a6df0,_0x4e907f):_0x3a6df0,_0x26e831=_0x56f224[_0x118bb6(0x23b)]-0x1,_0x12908c;_0x26e831>=0x0;_0x26e831--)(_0x12908c=_0x56f224[_0x26e831])&&(_0x5b4094=(_0x489c19?_0x12908c(_0x3a6df0,_0x4e907f,_0x5b4094):_0x12908c(_0x5b4094))||_0x5b4094);return _0x489c19&&_0x5b4094&&bn(_0x3a6df0,_0x4e907f,_0x5b4094),_0x5b4094;},_e=(_0x55f260,_0x45e474)=>(_0x38dbbd,_0x29ba60)=>_0x45e474(_0x38dbbd,_0x29ba60,_0x55f260);let Te=class extends a[_0x5ea8e9(0x32e)]{constructor(_0x1ef5ef,_0x45817c,_0x2df3c4,_0x13789b,_0x5efcb5){const _0x582e35=_0x5ea8e9;super(),this[_0x582e35(0x19a)]=_0x1ef5ef,this[_0x582e35(0x1be)]=_0x45817c,this['_permissionService']=_0x2df3c4,this['_collaborationSessionService']=_0x13789b,this['_localeService']=_0x5efcb5,this[_0x582e35(0x44d)](),this[_0x582e35(0x379)]();}[_0x5ea8e9(0x379)](){const _0x1d5bf3=_0x5ea8e9,_0xf1aeea=async _0x3a0b04=>{const _0x3320a5=_0x2fbf;(await this[_0x3320a5(0x205)][_0x3320a5(0x33b)](_0x3a0b04))[_0x3320a5(0x145)][_0x3320a5(0x286)](E['filter'](_0x59187a=>_0x59187a[_0x3320a5(0x3f1)]===_[_0x3320a5(0x50c)][_0x3320a5(0x2cb)]),E['takeUntil'](this['dispose$']))[_0x3320a5(0x21d)](_0x3ce307=>{const _0x511c8c=_0x3320a5,_0x3f12d5=_0x3ce307,{reason:_0x92b246}=_0x3f12d5[_0x511c8c(0x527)];this[_0x511c8c(0x19a)][_0x511c8c(0x1eb)](A[_0x511c8c(0x4a9)])[_0x511c8c(0x2e0)]({'type':q[_0x511c8c(0x3e5)][_0x511c8c(0x173)],'content':this[_0x511c8c(0x29f)]['t'](_0x511c8c(0x4ad))+'('+_0x92b246+')'}),this['_permissionService'][_0x511c8c(0x1bc)](new C[(_0x511c8c(0x276))](_0x3a0b04)['id'],!0x1),this[_0x511c8c(0x205)][_0x511c8c(0x317)](_0x3a0b04);});};v[_0x1d5bf3(0x24b)](this[_0x1d5bf3(0x1be)]['getTypeOfUnitAdded$'](a[_0x1d5bf3(0x3a9)][_0x1d5bf3(0x2ae)]),this[_0x1d5bf3(0x1be)]['getTypeOfUnitAdded$'](a[_0x1d5bf3(0x3a9)][_0x1d5bf3(0x2de)]))['pipe'](E[_0x1d5bf3(0x558)](_0x50ba71=>_0x50ba71[_0x1d5bf3(0x55a)]()),E[_0x1d5bf3(0x207)](_0x27c416=>!a[_0x1d5bf3(0x2ff)](_0x27c416)),E['takeUntil'](this[_0x1d5bf3(0x1a0)]))[_0x1d5bf3(0x21d)](_0x158545=>{_0xf1aeea(_0x158545);});}[_0x5ea8e9(0x44d)](){const _0x3adb92=_0x5ea8e9,_0x453cb2=async _0x326130=>{const _0x543e4b=_0x2fbf;(await this[_0x543e4b(0x205)][_0x543e4b(0x33b)](_0x326130))[_0x543e4b(0x145)][_0x543e4b(0x286)](E[_0x543e4b(0x207)](_0x1b07c3=>_0x1b07c3[_0x543e4b(0x3f1)]===_[_0x543e4b(0x50c)][_0x543e4b(0x404)]),E[_0x543e4b(0x314)](this[_0x543e4b(0x1a0)]))[_0x543e4b(0x21d)](_0x193893=>{const _0x584ba9=_0x543e4b,_0x5d8bcf=_0x193893,{objectId:_0x2c2a2b}=_0x5d8bcf[_0x584ba9(0x527)],_0x4f0a4e=this['_injector']['get'](te[_0x584ba9(0x142)]);_0x2c2a2b===_0x326130?_0x4f0a4e['initWorkbookPermissionChange'](_0x326130):_0x4f0a4e[_0x584ba9(0x13c)](_0x326130,_0x2c2a2b);});};v['merge'](this[_0x3adb92(0x1be)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x3adb92(0x2ae)]),this['_univerInstanceService'][_0x3adb92(0x4b0)](a[_0x3adb92(0x3a9)][_0x3adb92(0x2de)]))[_0x3adb92(0x286)](E['map'](_0x74c1c0=>_0x74c1c0[_0x3adb92(0x55a)]()),E[_0x3adb92(0x207)](_0x17ba83=>!a['isInternalEditorID'](_0x17ba83)),E[_0x3adb92(0x314)](this[_0x3adb92(0x1a0)]))[_0x3adb92(0x21d)](_0x2e9771=>{_0x453cb2(_0x2e9771);});}};Te=Rn([_e(0x0,a[_0x5ea8e9(0x3c8)](a[_0x5ea8e9(0x14b)])),_e(0x1,a[_0x5ea8e9(0x36b)]),_e(0x2,a[_0x5ea8e9(0x3e8)]),_e(0x3,a[_0x5ea8e9(0x3c8)](exports[_0x5ea8e9(0x550)])),_e(0x4,a[_0x5ea8e9(0x3c8)](a['LocaleService']))],Te);var On=Object[_0x5ea8e9(0x16c)],Dn=Object['getOwnPropertyDescriptor'],yn=(_0x4ccc81,_0x246c9b,_0x1f6c1e,_0x48b4da)=>{for(var _0x7627e9=_0x48b4da>0x1?void 0x0:_0x48b4da?Dn(_0x246c9b,_0x1f6c1e):_0x246c9b,_0x132c29=_0x4ccc81['length']-0x1,_0x679404;_0x132c29>=0x0;_0x132c29--)(_0x679404=_0x4ccc81[_0x132c29])&&(_0x7627e9=(_0x48b4da?_0x679404(_0x246c9b,_0x1f6c1e,_0x7627e9):_0x679404(_0x7627e9))||_0x7627e9);return _0x48b4da&&_0x7627e9&&On(_0x246c9b,_0x1f6c1e,_0x7627e9),_0x7627e9;},dt=(_0x5bdb68,_0x1c6ad3)=>(_0x352662,_0x34e630)=>_0x1c6ad3(_0x352662,_0x34e630,_0x5bdb68);exports['SnapshotServerOverHTTPService']=class{constructor(_0x2ec9ca,_0xee8663){const _0xd097a6=_0x5ea8e9;this[_0xd097a6(0x18c)]=_0x2ec9ca,this[_0xd097a6(0x3cd)]=_0xee8663;}async['getUnitOnRev'](_0x3bd6ad,_0xbe4642){const _0xb4c8af=_0x5ea8e9;var _0xe87ebf;const {unitID:_0x1f59e8,type:_0x177f76,revision:_0x4944ce=0x0}=_0xbe4642,_0x58d91c=this[_0xb4c8af(0x3d4)]()+'/'+_0x177f76+'/unit/'+_0x1f59e8+_0xb4c8af(0x391)+_0x4944ce,_0x43570f=(await this[_0xb4c8af(0x3cd)][_0xb4c8af(0x1eb)](_0x58d91c))[_0xb4c8af(0x31b)],_0xccaa1f=(_0xe87ebf=_0x43570f[_0xb4c8af(0x451)])==null?void 0x0:_0xe87ebf[_0xb4c8af(0x504)];if(_0xccaa1f){const _0x406ae8=_0xccaa1f==null?void 0x0:_0xccaa1f[_0xb4c8af(0x19b)],_0x168f27=_[_0xb4c8af(0x547)][_0xb4c8af(0x279)](_['b64DecodeUnicode'](_0x406ae8));_0xccaa1f[_0xb4c8af(0x19b)]=_0x168f27,Object[_0xb4c8af(0x33f)](_0xccaa1f['sheets'])[_0xb4c8af(0x4f0)](([,_0x324aaa])=>{const _0x24b45f=_0xb4c8af,_0x45a941=_0x324aaa['originalMeta'],_0x1002dd=_[_0x24b45f(0x547)][_0x24b45f(0x279)](_[_0x24b45f(0x313)](_0x45a941));_0x324aaa[_0x24b45f(0x19b)]=_0x1002dd;});}return _0x43570f;}async[_0x5ea8e9(0x246)](_0x2ad3d7,_0x197cc0){const _0x301dd4=_0x5ea8e9,{unitID:_0x2b2119,type:_0x411961,blockID:_0x183a00}=_0x197cc0,_0x4c0bde=this['_getAPIPrefix']()+'/'+_0x411961+_0x301dd4(0x3cc)+_0x2b2119+'/block/'+_0x183a00;return(await this[_0x301dd4(0x3cd)][_0x301dd4(0x1eb)](_0x4c0bde))[_0x301dd4(0x31b)];}async[_0x5ea8e9(0x49b)](_0x2ea18d,_0x5c1f61){const _0x3f538f=_0x5ea8e9,{unitID:_0x1173cf,type:_0x208e9d,blockID:_0x40948c}=_0x5c1f61,_0x4e8575=this[_0x3f538f(0x2b1)]()+_0x3f538f(0x4ab)+_0x208e9d+'/unit/'+_0x1173cf+_0x3f538f(0x4ab)+_0x40948c;return(await this[_0x3f538f(0x3cd)][_0x3f538f(0x1eb)](_0x4e8575))[_0x3f538f(0x31b)];}async['fetchMissingChangesets'](_0x3c1257,_0x4c4316){const _0x567102=_0x5ea8e9,{unitID:_0x4cca30,type:_0x1a1f3c,from:_0x1641ba,to:_0x5bf5ac}=_0x4c4316,_0x299ce5=this[_0x567102(0x2b1)]()+'/'+_0x1a1f3c+_0x567102(0x3cc)+_0x4cca30+'/fetchmissing?from='+_0x1641ba+_0x567102(0x194)+_0x5bf5ac;return(await this[_0x567102(0x3cd)][_0x567102(0x1eb)](_0x299ce5))[_0x567102(0x31b)];}['_getSnapshotAPIPrefix'](){const _0x1d9507=_0x5ea8e9;var _0x45604b;return(_0x45604b=this['_configService'][_0x1d9507(0x41c)](vt))!=null?_0x45604b:this[_0x1d9507(0x2b1)]();}[_0x5ea8e9(0x2b1)](){const _0x3c708f=_0x5ea8e9;var _0x276515,_0x22f605;const _0x1dcff0=this[_0x3c708f(0x18c)]['getConfig'](St),_0x38d64a=this['_configService'][_0x3c708f(0x41c)](L);return(_0x22f605=(_0x276515=_0x38d64a==null?void 0x0:_0x38d64a[_0x3c708f(0x3f3)])!=null?_0x276515:_0x1dcff0)!=null?_0x22f605:Jt;}async['getResourcesRequest'](_0x49f324,_0x724656){const _0x159237=_0x5ea8e9,_0x290549='/universer-api/snapshot/'+_0x724656[_0x159237(0x335)]+'/unit/'+_0x724656[_0x159237(0x46c)]+_0x159237(0x171);return(await this[_0x159237(0x3cd)][_0x159237(0x1eb)](_0x290549,{'params':{'resourceId':JSON[_0x159237(0x514)](_0x724656['resourceIDs'])}}))[_0x159237(0x31b)];}[_0x5ea8e9(0x273)](){const _0x1443ef=_0x5ea8e9;throw new Error(_0x1443ef(0x183));}[_0x5ea8e9(0x507)](){const _0x4181dc=_0x5ea8e9;throw new Error(_0x4181dc(0x183));}[_0x5ea8e9(0x265)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5ea8e9(0x342)](){const _0x45938f=_0x5ea8e9;throw new Error(_0x45938f(0x183));}[_0x5ea8e9(0x182)](){const _0x52aef3=_0x5ea8e9;throw new Error(_0x52aef3(0x183));}},exports[_0x5ea8e9(0x1fd)]=yn([dt(0x0,a[_0x5ea8e9(0x464)]),dt(0x1,a[_0x5ea8e9(0x3c8)](w[_0x5ea8e9(0x352)]))],exports['SnapshotServerOverHTTPService']);var Un=Object['defineProperty'],Pn=Object['getOwnPropertyDescriptor'],wn=(_0x1c21f5,_0x3a9d65,_0x585e4d,_0x2d1374)=>{const _0x675df8=_0x5ea8e9;for(var _0x2896b0=_0x2d1374>0x1?void 0x0:_0x2d1374?Pn(_0x3a9d65,_0x585e4d):_0x3a9d65,_0x13f0bd=_0x1c21f5[_0x675df8(0x23b)]-0x1,_0x41b076;_0x13f0bd>=0x0;_0x13f0bd--)(_0x41b076=_0x1c21f5[_0x13f0bd])&&(_0x2896b0=(_0x2d1374?_0x41b076(_0x3a9d65,_0x585e4d,_0x2896b0):_0x41b076(_0x2896b0))||_0x2896b0);return _0x2d1374&&_0x2896b0&&Un(_0x3a9d65,_0x585e4d,_0x2896b0),_0x2896b0;},ue=(_0x3cb9b4,_0x477da0)=>(_0x3d1f76,_0x50f942)=>_0x477da0(_0x3d1f76,_0x50f942,_0x3cb9b4);let Fe=class extends a[_0x5ea8e9(0x354)]{constructor(_0x35a343,_0x49987f,_0x15b339,_0x25bf55,_0x134103){const _0x228ddc=_0x5ea8e9;super(_0x35a343,_0x49987f,_0x15b339),this[_0x228ddc(0x3cf)]=_0x25bf55,this['_logService']=_0x134103;}[_0x5ea8e9(0x40f)](_0x5a6cb2,_0x27a242){const _0x2f3d29=_0x5ea8e9,_0x2d2dd6=this[_0x2f3d29(0x196)](_0x5a6cb2);if(_0x2d2dd6)try{const _0x86f787=this['_transformStack'](_0x2d2dd6,_0x27a242);this[_0x2f3d29(0x3b8)](_0x5a6cb2,_0x86f787);}catch(_0x433122){this[_0x2f3d29(0x1d5)]['error']('[CollaborationUndoRedoService]',_0x433122),this[_0x2f3d29(0x17f)](_0x5a6cb2);}const _0x27520f=this['_getRedoStack'](_0x5a6cb2);if(_0x27520f)try{const _0x344c44=this[_0x2f3d29(0x1d7)](_0x27520f,_0x27a242);this[_0x2f3d29(0x411)](_0x5a6cb2,_0x344c44);}catch(_0x55abd3){this[_0x2f3d29(0x1d5)][_0x2f3d29(0x272)](_0x55abd3),this['_clearRedo'](_0x5a6cb2);}}[_0x5ea8e9(0x17f)](_0x28d9b9){const _0x142f48=_0x5ea8e9,_0x2015df=this[_0x142f48(0x196)](_0x28d9b9);_0x2015df&&(_0x2015df['length']=0x0,this['_updateStatus']());}['_clearRedo'](_0x40ade3){const _0x54f370=_0x5ea8e9,_0x46d66e=this['_getRedoStack'](_0x40ade3);_0x46d66e&&(_0x46d66e[_0x54f370(0x23b)]=0x0,this['_updateStatus']());}[_0x5ea8e9(0x3b8)](_0x334d07,_0x546db6){const _0x14e5f2=_0x5ea8e9;this[_0x14e5f2(0x1e2)][_0x14e5f2(0x1aa)](_0x334d07,_0x546db6),this['_updateStatus']();}['_substituteRedoStack'](_0x52e856,_0x431f69){const _0x59b986=_0x5ea8e9;this['_redoStacks'][_0x59b986(0x1aa)](_0x52e856,_0x431f69),this[_0x59b986(0x1ae)]();}[_0x5ea8e9(0x1d7)](_0x137e4c,_0x2bedf3){const _0x2d236e=_0x5ea8e9,_0x3c73f7=[];let _0x1678ad=_0x2bedf3,_0x19d534=_0x2bedf3;for(let _0x2564f4=_0x137e4c[_0x2d236e(0x23b)]-0x1;_0x2564f4>=0x0;_0x2564f4--){const {unitID:_0x1ffb60,undoMutations:_0x42bca3,redoMutations:_0x25ef18}=_0x137e4c[_0x2564f4],_0x2035f3=this[_0x2d236e(0x3cf)]['transformMutationsWithChangeset'](_0x1678ad,_0x42bca3),_0x1c68d3=this[_0x2d236e(0x3cf)]['transformMutationsWithChangeset'](_0x19d534,_0x25ef18);if(_[_0x2d236e(0x3f4)](_0x2035f3)||_[_0x2d236e(0x3f4)](_0x1c68d3)){this[_0x2d236e(0x1d5)]['error'](_0x2d236e(0x135),'transformStack\x20failed!',_0x2035f3,_0x1c68d3);break;}_0x1678ad=_0x2035f3[_0x2d236e(0x490)],_0x19d534=_0x1c68d3[_0x2d236e(0x490)],_0x3c73f7[_0x2d236e(0x3e0)]({'unitID':_0x1ffb60,'undoMutations':_0x2035f3[_0x2d236e(0x2c8)],'redoMutations':_0x1c68d3[_0x2d236e(0x2c8)]});}return _0x3c73f7[_0x2d236e(0x15d)]();}};Fe=wn([ue(0x0,a[_0x5ea8e9(0x36b)]),ue(0x1,a[_0x5ea8e9(0x38c)]),ue(0x2,a[_0x5ea8e9(0x3fc)]),ue(0x3,_[_0x5ea8e9(0x51a)]),ue(0x4,a[_0x5ea8e9(0x486)])],Fe);class xt extends a['RxDisposable']{constructor(){const _0x29f088=_0x5ea8e9;super(),u(this,_0x29f088(0x224)),this[_0x29f088(0x224)]=v[_0x29f088(0x2f3)](window,_0x29f088(0x204))[_0x29f088(0x286)](v['takeUntil'](this[_0x29f088(0x1a0)]),v[_0x29f088(0x277)](0x1),v['mapTo'](void 0x0));}[_0x5ea8e9(0x551)](_0x2bd665,_0x55b67b,_0x2a751c=!0x1){const _0x9b96f8=_0x5ea8e9,_0x25adf9=new URL(window[_0x9b96f8(0x395)][_0x9b96f8(0x3c3)]);_0x25adf9[_0x9b96f8(0x428)][_0x9b96f8(0x1aa)](_0x2bd665,_0x55b67b),_0x2a751c?window['history'][_0x9b96f8(0x2dc)]('','',_0x25adf9[_0x9b96f8(0x372)]()):window[_0x9b96f8(0x4b8)]['pushState']('','',_0x25adf9[_0x9b96f8(0x372)]());}[_0x5ea8e9(0x549)](_0x47894f,_0xaf58fd=!0x1){const _0xd0c159=_0x5ea8e9,_0xa80215=new URL(window['location'][_0xd0c159(0x3c3)]);_0xa80215[_0xd0c159(0x428)][_0xd0c159(0x307)](_0x47894f),_0xaf58fd?window[_0xd0c159(0x4b8)][_0xd0c159(0x2dc)]('','',_0xa80215['toString']()):window[_0xd0c159(0x4b8)]['pushState']('','',_0xa80215[_0xd0c159(0x372)]());}['getParam'](_0x5ba43c){const _0x1e85fb=_0x5ea8e9;var _0x28ee47;return(_0x28ee47=new URL(window[_0x1e85fb(0x395)]['href'])['searchParams'][_0x1e85fb(0x1eb)](_0x5ba43c))!=null?_0x28ee47:void 0x0;}}var kt=Object[_0x5ea8e9(0x16c)],Nn=Object[_0x5ea8e9(0x1df)],Mn=(_0x256f9b,_0x59bb27,_0x19ea03)=>_0x59bb27 in _0x256f9b?kt(_0x256f9b,_0x59bb27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19ea03}):_0x256f9b[_0x59bb27]=_0x19ea03,An=(_0x52c5a0,_0x2ac25e,_0x9abaca,_0x4addee)=>{const _0x5ba9b5=_0x5ea8e9;for(var _0x21c968=_0x4addee>0x1?void 0x0:_0x4addee?Nn(_0x2ac25e,_0x9abaca):_0x2ac25e,_0x4bb08f=_0x52c5a0[_0x5ba9b5(0x23b)]-0x1,_0xcfc88c;_0x4bb08f>=0x0;_0x4bb08f--)(_0xcfc88c=_0x52c5a0[_0x4bb08f])&&(_0x21c968=(_0x4addee?_0xcfc88c(_0x2ac25e,_0x9abaca,_0x21c968):_0xcfc88c(_0x21c968))||_0x21c968);return _0x4addee&&_0x21c968&&kt(_0x2ac25e,_0x9abaca,_0x21c968),_0x21c968;},ge=(_0x5bebe5,_0x3d0a15)=>(_0x1dce83,_0x3ce402)=>_0x3d0a15(_0x1dce83,_0x3ce402,_0x5bebe5),Ln=(_0x50dbb8,_0x12e61c,_0x2c49ab)=>Mn(_0x50dbb8,_0x12e61c+'',_0x2c49ab);const jn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports['UniverCollaborationClientPlugin']=class extends a[_0x5ea8e9(0x16a)]{constructor(_0x35035e=as,_0x3d6e77,_0xb1f485,_0xb628bc,_0x1ba037){const _0x14bcfb=_0x5ea8e9;super(),this[_0x14bcfb(0x1b8)]=_0x35035e,this['_logService']=_0x3d6e77,this[_0x14bcfb(0x56c)]=_0xb1f485,this[_0x14bcfb(0x19a)]=_0xb628bc,this['_configService']=_0x1ba037;const {..._0xb312ac}=this[_0x14bcfb(0x1b8)];this[_0x14bcfb(0x18c)][_0x14bcfb(0x178)](L,_0xb312ac);}[_0x5ea8e9(0x377)](){const _0x1a4c5d=_0x5ea8e9;this['_registerDependencies'](),a[_0x1a4c5d(0x536)](this[_0x1a4c5d(0x19a)],[[ne],[exports[_0x1a4c5d(0x389)]],[Te]]);}[_0x5ea8e9(0x3e6)](){const _0x4d6426=_0x5ea8e9;a[_0x4d6426(0x536)](this[_0x4d6426(0x19a)],[[Ce]]);}[_0x5ea8e9(0x4f8)](){const _0x1f4f3b=_0x5ea8e9;this[_0x1f4f3b(0x3f8)]();}[_0x5ea8e9(0x543)](){const _0x98292f=_0x5ea8e9;var _0x43b437,_0x665a50,_0xfe6b3c,_0x115d5b;this[_0x98292f(0x19a)][_0x98292f(0x240)](a[_0x98292f(0x48e)])&&this[_0x98292f(0x1d5)][_0x98292f(0x272)](_0x98292f(0x36d),_0x98292f(0x17d));let _0x5b9ba6=[[a[_0x98292f(0x48e)],{'useClass':Fe}],[exports[_0x98292f(0x550)]],[Je],[w['HTTPService']],[Qe,{'useClass':xt}],[X],[exports['LocalCacheService']],[w[_0x98292f(0x566)]],[Ie],[pe],[fe],[Xe],[Ee],[be],[qe],[Te],[Ke,{'useClass':(_0x665a50=(_0x43b437=this['_config'])==null?void 0x0:_0x43b437[_0x98292f(0x2ee)])!=null?_0x665a50:exports[_0x98292f(0x3d2)]}],[w['IHTTPImplementation'],{'useClass':w[_0x98292f(0x328)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x98292f(0x1fd)]}],[a[_0x98292f(0x2bd)],{'useClass':exports[_0x98292f(0x4e5)]}],[j[_0x98292f(0x4e6)],{'useClass':exports[_0x98292f(0x26a)]}],[exports[_0x98292f(0x54e)]],[exports[_0x98292f(0x389)]],[exports[_0x98292f(0x453)]],[Ce],[ne]];(_0xfe6b3c=this[_0x98292f(0x1b8)])!=null&&_0xfe6b3c[_0x98292f(0x49a)]&&_0x5b9ba6[_0x98292f(0x3e0)]([Re,{'useClass':xs}]),_0x5b9ba6=a[_0x98292f(0x238)](_0x5b9ba6,(_0x115d5b=this[_0x98292f(0x1b8)])==null?void 0x0:_0x115d5b[_0x98292f(0x259)]),_0x5b9ba6['forEach'](_0x213715=>this[_0x98292f(0x19a)][_0x98292f(0x42a)](_0x213715)),this[_0x98292f(0x356)]();}['_registerRenderDependencies'](){const _0x2086e2=_0x5ea8e9;this['disposeWithMe'](this[_0x2086e2(0x56c)][_0x2086e2(0x55e)](a['UniverInstanceType'][_0x2086e2(0x2de)],[Ve])),this['disposeWithMe'](this[_0x2086e2(0x56c)][_0x2086e2(0x55e)](a[_0x2086e2(0x3a9)][_0x2086e2(0x2ae)],[We]));}[_0x5ea8e9(0x356)](){const _0x4b3c74=_0x5ea8e9;var _0x594b90,_0x392658;this[_0x4b3c74(0x19a)][_0x4b3c74(0x1eb)](w['HTTPService'])[_0x4b3c74(0x4e1)]({'priority':0x14,'interceptor':w[_0x4b3c74(0x2c6)]({'maxParallel':0x6})}),this[_0x4b3c74(0x19a)][_0x4b3c74(0x1eb)](be),(_0x594b90=this[_0x4b3c74(0x1b8)])!=null&&_0x594b90['enableOfflineEditing']||this[_0x4b3c74(0x19a)][_0x4b3c74(0x1eb)](exports[_0x4b3c74(0x200)])['disableLocalCache'](),(_0x392658=this[_0x4b3c74(0x1b8)])!=null&&_0x392658[_0x4b3c74(0x419)]&&this[_0x4b3c74(0x19a)][_0x4b3c74(0x1eb)](Ee),this[_0x4b3c74(0x19a)]['get'](exports[_0x4b3c74(0x54e)]),this['_injector'][_0x4b3c74(0x240)](exports[_0x4b3c74(0x453)])&&this[_0x4b3c74(0x19a)][_0x4b3c74(0x1eb)](exports['DesktopCollaborationStatusDisplayController']);}},Ln(exports['UniverCollaborationClientPlugin'],_0x5ea8e9(0x225),jn),exports[_0x5ea8e9(0x502)]=An([a['DependentOn'](_[_0x5ea8e9(0x1b9)]),ge(0x1,a['ILogService']),ge(0x2,D[_0x5ea8e9(0x2c2)]),ge(0x3,a['Inject'](a[_0x5ea8e9(0x14b)])),ge(0x4,a['IConfigService'])],exports[_0x5ea8e9(0x502)]),exports[_0x5ea8e9(0x2ab)]=Ht,exports[_0x5ea8e9(0x1c4)]=Ct,exports[_0x5ea8e9(0x235)]=mt,exports['CollaborationStatus']=U,exports['CollaborationStatusDisplay']=$t,exports[_0x5ea8e9(0x271)]=qe,exports[_0x5ea8e9(0x330)]=gt,exports[_0x5ea8e9(0x237)]=Ge,exports[_0x5ea8e9(0x22c)]=Ke,exports['IURLService']=Qe,exports['LOCAL_CACHE_INTERVAL_KEY']=pt,exports[_0x5ea8e9(0x289)]=Et,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=It,exports['SEND_CHANGESET_TIMEOUT_KEY']=Zt,exports[_0x5ea8e9(0x21f)]=St,exports['SNAPSHOT_URL_KEY']=vt,exports[_0x5ea8e9(0x4bf)]=H,exports['SheetCollabCursorShape']=Nt,exports[_0x5ea8e9(0x26b)]=xt,exports[_0x5ea8e9(0x2b2)]=Rt,exports[_0x5ea8e9(0x34b)]=Ot;
|