@univerjs-pro/collaboration-client 0.3.0-alpha.0 → 0.3.0-nightly.202410101606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xb0c99b=_0x4e0f;(function(_0x4e6fbe,_0x33ad7c){const _0x34e23a=_0x4e0f,_0x3b6f7a=_0x4e6fbe();while(!![]){try{const _0x55a4ea=-parseInt(_0x34e23a(0x3a6))/0x1+-parseInt(_0x34e23a(0x267))/0x2+-parseInt(_0x34e23a(0x45b))/0x3+parseInt(_0x34e23a(0x1da))/0x4+parseInt(_0x34e23a(0x172))/0x5*(-parseInt(_0x34e23a(0x39a))/0x6)+parseInt(_0x34e23a(0x2a3))/0x7+-parseInt(_0x34e23a(0x411))/0x8*(-parseInt(_0x34e23a(0x482))/0x9);if(_0x55a4ea===_0x33ad7c)break;else _0x3b6f7a['push'](_0x3b6f7a['shift']());}catch(_0x457cba){_0x3b6f7a['push'](_0x3b6f7a['shift']());}}}(_0x4d94,0xa4c07));var xt=Object[_0xb0c99b(0x3dd)],kt=(_0x23a151,_0x231d62,_0x79fa55)=>_0x231d62 in _0x23a151?xt(_0x23a151,_0x231d62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x79fa55}):_0x23a151[_0x231d62]=_0x79fa55,d=(_0x5f9ab1,_0x3304c3,_0x4130d0)=>kt(_0x5f9ab1,typeof _0x3304c3!='symbol'?_0x3304c3+'':_0x3304c3,_0x4130d0);Object[_0xb0c99b(0x3dd)](exports,Symbol[_0xb0c99b(0x39e)],{'value':_0xb0c99b(0x182)});const a=require(_0xb0c99b(0x165)),v=require(_0xb0c99b(0x346)),E=require('rxjs/operators'),X=require(_0xb0c99b(0x330)),N=require(_0xb0c99b(0x29f)),P=require(_0xb0c99b(0x34b)),_=require(_0xb0c99b(0x42d)),Bt=require(_0xb0c99b(0x213)),V=require('@univerjs/docs'),w=require(_0xb0c99b(0x413)),C=require('@univerjs/sheets'),R=require(_0xb0c99b(0x314)),A=require(_0xb0c99b(0x220)),Je=require(_0xb0c99b(0x1dc)),te=require(_0xb0c99b(0x1e0)),U=require(_0xb0c99b(0x227)),Vt=require(_0xb0c99b(0x2b5)),Wt=require(_0xb0c99b(0x1be)),Ft=require(_0xb0c99b(0x3d0)),ht=_0xb0c99b(0x40d),Gt=_0xb0c99b(0x1e1),_t=_0xb0c99b(0x23b),Yt=_0xb0c99b(0x16d),Kt=0x7d0,ut=_0xb0c99b(0x4e1),Xt='ws://127.0.0.1:8000/universer-api/comb/connect',dt='HEARTBEAT_INTERVAL',qt=0x7530,Ve=_0xb0c99b(0x2f6),St=0x4e20,zt=0x4e20,vt=_0xb0c99b(0x391),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt='COLLAB_SUBMIT_CHANGESET_URL',Qt=_0xb0c99b(0xf8),mt=_0xb0c99b(0x281),es=_0xb0c99b(0x130);var It=(_0x1ba80d=>(_0x1ba80d[_0x1ba80d[_0xb0c99b(0x3fc)]=0x0]=_0xb0c99b(0x3fc),_0x1ba80d[_0x1ba80d['OK']=0x1]='OK',_0x1ba80d[_0x1ba80d[_0xb0c99b(0x232)]=0x2]=_0xb0c99b(0x232),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x29a)]=0x3]=_0xb0c99b(0x29a),_0x1ba80d[_0x1ba80d['NOT_FOUND']=0x4]=_0xb0c99b(0x42e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x12e)]=0x5]=_0xb0c99b(0x12e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x384)]=0x6]=_0xb0c99b(0x384),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x409)]=0x7]=_0xb0c99b(0x409),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x30e)]=0x8]=_0xb0c99b(0x30e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x1bc)]=0x9]=_0xb0c99b(0x1bc),_0x1ba80d[_0x1ba80d['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xb0c99b(0x159),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x3a1)]=0x1771]=_0xb0c99b(0x3a1),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x29c)]=0x1772]=_0xb0c99b(0x29c),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x13e)]=0x1b59]=_0xb0c99b(0x13e),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x245)]=0x1b5a]=_0xb0c99b(0x245),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x4a9)]=0x1b5b]=_0xb0c99b(0x4a9),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x1a3)]=0x1b5c]=_0xb0c99b(0x1a3),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x27c)]=0x1f41]=_0xb0c99b(0x27c),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x171)]=0x2329]=_0xb0c99b(0x171),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x211)]=0x232a]=_0xb0c99b(0x211),_0x1ba80d[_0x1ba80d['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xb0c99b(0x4e8),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x11b)]=0x232c]=_0xb0c99b(0x11b),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x326)]=0x232d]=_0xb0c99b(0x326),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x155)]=0x2711]=_0xb0c99b(0x155),_0x1ba80d[_0x1ba80d['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1ba80d[_0x1ba80d['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1ba80d[_0x1ba80d[_0xb0c99b(0x271)]=0x2714]=_0xb0c99b(0x271),_0x1ba80d[_0x1ba80d[_0xb0c99b(0x2cf)]=-0x1]=_0xb0c99b(0x2cf),_0x1ba80d))(It||{}),$=(_0x1c7852=>(_0x1c7852[_0x1c7852[_0xb0c99b(0x218)]=0x0]=_0xb0c99b(0x218),_0x1c7852[_0x1c7852[_0xb0c99b(0x254)]=0x1]=_0xb0c99b(0x254),_0x1c7852[_0x1c7852[_0xb0c99b(0x3e6)]=0x2]='UNIVER_SHEET',_0x1c7852[_0x1c7852[_0xb0c99b(0x170)]=0x3]=_0xb0c99b(0x170),_0x1c7852[_0x1c7852[_0xb0c99b(0x34a)]=0x4]=_0xb0c99b(0x34a),_0x1c7852[_0x1c7852[_0xb0c99b(0x2cf)]=-0x1]=_0xb0c99b(0x2cf),_0x1c7852))($||{}),b=(_0x4bff63=>(_0x4bff63[_0x4bff63['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x4bff63[_0x4bff63[_0xb0c99b(0x2db)]=0x1]=_0xb0c99b(0x2db),_0x4bff63[_0x4bff63[_0xb0c99b(0x1ae)]=0x2]=_0xb0c99b(0x1ae),_0x4bff63[_0x4bff63[_0xb0c99b(0x33c)]=0x3]=_0xb0c99b(0x33c),_0x4bff63[_0x4bff63[_0xb0c99b(0x46b)]=0x4]=_0xb0c99b(0x46b),_0x4bff63[_0x4bff63['HEARTBEAT']=0x5]='HEARTBEAT',_0x4bff63[_0x4bff63[_0xb0c99b(0x2a8)]=0x6]=_0xb0c99b(0x2a8),_0x4bff63[_0x4bff63[_0xb0c99b(0x2cf)]=-0x1]='UNRECOGNIZED',_0x4bff63))(b||{}),We=(_0x5f0ee7=>(_0x5f0ee7[_0x5f0ee7[_0xb0c99b(0x39b)]=0x0]='UNKNOWN_CODE',_0x5f0ee7[_0x5f0ee7['OK']=0x1]='OK',_0x5f0ee7[_0x5f0ee7[_0xb0c99b(0x4c2)]=0x2]=_0xb0c99b(0x4c2),_0x5f0ee7[_0x5f0ee7['UNRECOGNIZED']=-0x1]=_0xb0c99b(0x2cf),_0x5f0ee7))(We||{}),pt=(_0x86540c=>(_0x86540c[_0x86540c[_0xb0c99b(0x26a)]=0x0]=_0xb0c99b(0x26a),_0x86540c[_0x86540c[_0xb0c99b(0x11f)]=0x1]=_0xb0c99b(0x11f),_0x86540c[_0x86540c['HttpExport']=0x2]=_0xb0c99b(0x118),_0x86540c[_0x86540c[_0xb0c99b(0x394)]=0x3]='UnitEmbedded',_0x86540c[_0x86540c[_0xb0c99b(0x398)]=0x4]=_0xb0c99b(0x398),_0x86540c[_0x86540c['UNRECOGNIZED']=-0x1]=_0xb0c99b(0x2cf),_0x86540c))(pt||{});const L=_0xb0c99b(0x192),ts={};function Ct(_0x3c7a85){const _0x279446=_0xb0c99b;var _0x3dbd20,_0x5e8b8f,_0x17c0b5,_0x38e05e;const _0x4ca1cd=_0x3c7a85[_0x279446(0x494)],_0x1fb073=JSON[_0x279446(0x435)](_0x4ca1cd);switch(_0x1fb073[_0x279446(0xf2)]){case b['HEARTBEAT']:case b[_0x279446(0x2db)]:{const _0x450c8e=_0x1fb073[_0x279446(0x333)];return{..._0x1fb073,'data':_0x450c8e,'cmd':_0x1fb073[_0x279446(0xf2)]};}case b[_0x279446(0x1ae)]:{const _0x421ae2=_0x1fb073['joinRsp'];return{..._0x1fb073,'data':_0x421ae2,'cmd':_0x1fb073[_0x279446(0xf2)]};}case b['RECV']:{const _0x3a6d6c=_0x1fb073[_0x279446(0x1b2)];switch(_0x3a6d6c[_0x279446(0x1bd)]){case _[_0x279446(0x153)][_0x279446(0xf6)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x3dbd20=_0x3a6d6c[_0x279446(0x1d2)])==null?void 0x0:_0x3dbd20['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _['CollaborationEvent']['CHANGESET_ACK']:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x5e8b8f=_0x3a6d6c[_0x279446(0x403)])==null?void 0x0:_0x5e8b8f['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x291)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x17c0b5=_0x3a6d6c[_0x279446(0x3fa)])==null?void 0x0:_0x17c0b5['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x3fe)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':(_0x38e05e=_0x3a6d6c[_0x279446(0x3b4)])==null?void 0x0:_0x38e05e['cs']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x2c7)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['updateCursorEvent']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x25b)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0xf4)]},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x1cc)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['leaveEvent']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x197)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x38f)]},'cmd':_0x1fb073['cmd']};case _[_0x279446(0x153)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x279446(0x153)][_0x279446(0x189)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['liveShareOperation']},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x1df)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x38f)]},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)][_0x279446(0x174)]:return{..._0x1fb073,'data':_0x3a6d6c,'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)]['COMMENT_UPDATE']:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x2d4)]},'cmd':_0x1fb073[_0x279446(0xf2)]};case _[_0x279446(0x153)]['UPDATE_PERMISSION_OBJ']:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c['updatePermissionObjEvent']},'cmd':_0x1fb073['cmd']};case _[_0x279446(0x153)][_0x279446(0x430)]:return{..._0x1fb073,'data':{..._0x3a6d6c,'data':_0x3a6d6c[_0x279446(0x35d)]},'cmd':_0x1fb073[_0x279446(0xf2)]};default:return _0x1fb073;}}default:return _0x1fb073;}}function Et(_0x41da6b){const _0x322fe3=_0xb0c99b;switch(_0x41da6b[_0x322fe3(0xf2)]){case b['HEARTBEAT']:case b[_0x322fe3(0x2db)]:return JSON['stringify']({'cmd':_0x41da6b['cmd'],'routeKey':_0x41da6b['routeKey']});case b['INGEST']:{let _0x3be880;switch(_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x1bd)]){case _[_0x322fe3(0x153)][_0x322fe3(0x2c7)]:{_0x3be880={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x1cc)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x1cc)],'leaveEvent':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x25b)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x25b)],'joinEvent':_0x41da6b['data'][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x197)]:{_0x3be880={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)][_0x322fe3(0x189)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x41da6b['data'][_0x322fe3(0x494)]};break;}case _['CollaborationEvent'][_0x322fe3(0x1df)]:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x1df)],'liveShareTerminate':_0x41da6b[_0x322fe3(0x494)]['data']};break;}case _['CollaborationEvent'][_0x322fe3(0x3c2)]:{_0x3be880={'eventID':_['CollaborationEvent'][_0x322fe3(0x3c2)],'liveShareRequestHost':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x494)]};break;}case _[_0x322fe3(0x153)]['LIVESHARE_FETCH_OPERATIONS']:{_0x3be880={'eventID':_[_0x322fe3(0x153)][_0x322fe3(0x444)]};break;}default:_0x3be880={'eventID':_0x41da6b[_0x322fe3(0x494)][_0x322fe3(0x1bd)]};}return JSON[_0x322fe3(0x36d)]({'cmd':_0x41da6b['cmd'],'routeKey':_0x41da6b['routeKey'],'collaMsg':_0x3be880});}case b[_0x322fe3(0x1ae)]:return JSON[_0x322fe3(0x36d)]({'cmd':_0x41da6b[_0x322fe3(0xf2)],'routeKey':_0x41da6b[_0x322fe3(0x28d)],'joinReq':_0x41da6b[_0x322fe3(0x494)]});case b[_0x322fe3(0x33c)]:return JSON['stringify']({'cmd':_0x41da6b[_0x322fe3(0xf2)],'routeKey':_0x41da6b[_0x322fe3(0x28d)],'leaveReq':_0x41da6b[_0x322fe3(0x494)]});default:throw new Error(_0x322fe3(0x2fb));}}var ss=Object[_0xb0c99b(0x3dd)],is=Object['getOwnPropertyDescriptor'],ns=(_0x53b0f6,_0x4293f9,_0x2f447c,_0x58715e)=>{for(var _0xd6474b=_0x58715e>0x1?void 0x0:_0x58715e?is(_0x4293f9,_0x2f447c):_0x4293f9,_0x15e975=_0x53b0f6['length']-0x1,_0x3b63cf;_0x15e975>=0x0;_0x15e975--)(_0x3b63cf=_0x53b0f6[_0x15e975])&&(_0xd6474b=(_0x58715e?_0x3b63cf(_0x4293f9,_0x2f447c,_0xd6474b):_0x3b63cf(_0xd6474b))||_0xd6474b);return _0x58715e&&_0xd6474b&&ss(_0x4293f9,_0x2f447c,_0xd6474b),_0xd6474b;},oe=(_0x2f451e,_0x3f5780)=>(_0x490f59,_0x16e005)=>_0x3f5780(_0x490f59,_0x16e005,_0x2f451e);const Fe=a['createIdentifier'](_0xb0c99b(0x20d));function rs(_0x27207a,_0x3caf43,_0x2af2fb){const _0x5c5d9b=_0xb0c99b;return _0x27207a+'/'+_0x3caf43+'/unit/'+_0x2af2fb+_0x5c5d9b(0x3cc);}exports['CollaborationSocketService']=class extends a[_0xb0c99b(0x463)]{constructor(_0x3ed9fc,_0x34be7f,_0x3933ce,_0x29b06f,_0x536530){const _0x6c3f9c=_0xb0c99b;super(),this['_http']=_0x3ed9fc,this['_ws']=_0x34be7f,this[_0x6c3f9c(0x3ec)]=_0x3933ce,this['_logService']=_0x29b06f,this[_0x6c3f9c(0x1c1)]=_0x536530;}[_0xb0c99b(0x324)](_0x143896){const _0x5a9d68=_0xb0c99b,_0x2d9bcb=this['_ws'][_0x5a9d68(0x324)](_0x143896);if(!_0x2d9bcb)throw new Error(_0x5a9d68(0x3f1));const _0x5ef885=new a[(_0x5a9d68(0x283))](),_0x449ea4=new v[(_0x5a9d68(0x349))]();_0x5ef885[_0x5a9d68(0x143)](_0x2d9bcb[_0x5a9d68(0x38a)][_0x5a9d68(0x33b)](_0x399f95=>_0x449ea4[_0x5a9d68(0x3c7)](_0x399f95))),_0x5ef885[_0x5a9d68(0x143)](a[_0x5a9d68(0x2ef)](()=>_0x449ea4[_0x5a9d68(0x484)]()));const _0x1dec8a=new v[(_0x5a9d68(0x349))]();_0x5ef885[_0x5a9d68(0x143)](_0x2d9bcb[_0x5a9d68(0x385)][_0x5a9d68(0x33b)](_0xdaa254=>_0x1dec8a[_0x5a9d68(0x3c7)](_0xdaa254))),_0x5ef885[_0x5a9d68(0x143)](a['toDisposable'](()=>_0x1dec8a[_0x5a9d68(0x484)]()));const _0x38987b=new v[(_0x5a9d68(0x349))]();_0x5ef885[_0x5a9d68(0x143)](_0x2d9bcb[_0x5a9d68(0xfb)][_0x5a9d68(0x33b)](_0x428859=>{const _0x179550=Ct(_0x428859);_0x38987b['next'](_0x179550);})),_0x5ef885[_0x5a9d68(0x143)](a['toDisposable'](()=>_0x38987b[_0x5a9d68(0x484)]()));let _0x4a7d55;const _0xb2c681=()=>{const _0x30447e=_0x5a9d68;_0x1dec8a[_0x30447e(0x3c7)](new Event(_0x30447e(0x19e))),_0x449ea4[_0x30447e(0x3c7)](new CloseEvent(_0x30447e(0x19e))),_0x4a7d55['close']();};return _0x4a7d55={'memberID':'','close$':_0x449ea4['asObservable'](),'error$':_0x1dec8a[_0x5a9d68(0x3af)](),'open$':_0x2d9bcb[_0x5a9d68(0x407)],'message$':_0x38987b[_0x5a9d68(0x3af)](),'send':_0x10e380=>{const _0x5e804b=_0x5a9d68;if(_0x10e380[_0x5e804b(0xf2)]===b[_0x5e804b(0x46b)]){if(_0x10e380[_0x5e804b(0x494)][_0x5e804b(0x1bd)]===_[_0x5e804b(0x153)]['SUBMIT_CHANGESET']){this[_0x5e804b(0x4c9)](_0x4a7d55,_0x10e380[_0x5e804b(0x494)])['catch'](_0x25cae6=>{this['_logService']['error'](_0x25cae6),_0xb2c681();});return;}if(_0x10e380['data']['eventID']===_['CollaborationEvent']['FETCH_MISSING']){const _0x3d36b1=_0x10e380['data'];this[_0x5e804b(0x284)](_0x3d36b1)[_0x5e804b(0x20e)](_0x18e2ab=>{const _0x44dce7=_0x5e804b;_0x38987b['next']({'cmd':b['RECV'],'code':We['OK'],'routeKey':_0x3d36b1[_0x44dce7(0x494)][_0x44dce7(0x4c3)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x44dce7(0x30a)],'data':{'changesets':_0x18e2ab}}});})[_0x5e804b(0x2be)](_0x31f328=>{const _0x5f0c6e=_0x5e804b;this['_logService'][_0x5f0c6e(0x4d1)](_0x31f328),_0xb2c681();});return;}}_0x2d9bcb[_0x5e804b(0x3c3)](Et(_0x10e380));},'close':()=>{const _0x36773a=_0x5a9d68;_0x2d9bcb[_0x36773a(0x1ea)](),_0x5ef885['dispose']();}},_0x4a7d55;}async[_0xb0c99b(0x4c9)](_0x4ea2b4,_0x454660){const _0x5c40cb=_0xb0c99b;var _0x56cbe1,_0x2bc4ae;const {unitType:_0x13d0d6,unitID:_0x407143,changeset:_0x1a91ca}=_0x454660['data'],_0x5a957a={'unitID':_0x407143,'memberID':_0x4ea2b4[_0x5c40cb(0x37a)],'type':_0x13d0d6,'changeset':_[_0x5c40cb(0x3db)](_0x1a91ca)},_0x132a07=this['_configService'][_0x5c40cb(0x2aa)](gt),_0x232fb5=this['_configService'][_0x5c40cb(0x2aa)](L),_0x4f68bb=rs((_0x2bc4ae=(_0x56cbe1=_0x232fb5==null?void 0x0:_0x232fb5[_0x5c40cb(0x3a5)])!=null?_0x56cbe1:_0x132a07)!=null?_0x2bc4ae:Qt,_0x13d0d6,_0x407143);try{await this[_0x5c40cb(0x337)][_0x5c40cb(0x3e7)](_0x4f68bb,{'body':_0x5a957a});}catch(_0x3c2913){throw this[_0x5c40cb(0x3cd)][_0x5c40cb(0x4d1)](_0x5c40cb(0x48d),_0x5c40cb(0x3d7)),_0x3c2913;}}async[_0xb0c99b(0x284)](_0x5b91bd){const _0x363afc=_0xb0c99b,{unitID:_0x2d6f4f,from:_0x42b66f,to:_0x33d1e2,unitType:_0x15910c}=_0x5b91bd[_0x363afc(0x494)];return(await this[_0x363afc(0x1c1)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x2d6f4f,'type':_0x15910c,'from':_0x42b66f,'to':_0x33d1e2}))['changesets'];}},exports[_0xb0c99b(0x18a)]=ns([oe(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)])),oe(0x1,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x300)])),oe(0x2,a[_0xb0c99b(0x195)]),oe(0x3,a[_0xb0c99b(0x2b2)]),oe(0x4,_[_0xb0c99b(0x1ee)])],exports[_0xb0c99b(0x18a)]);const os=_0xb0c99b(0x2a5);function as(_0x56498d){const _0x2f3119=_0xb0c99b;return JSON[_0x2f3119(0x36d)](_0x56498d)[_0x2f3119(0x23c)];}class Ge{constructor(){const _0x2d2eaf=_0xb0c99b;d(this,_0x2d2eaf(0x371),new v[(_0x2d2eaf(0x349))]()),d(this,_0x2d2eaf(0x1a5),this[_0x2d2eaf(0x371)]['asObservable']());}['onCommentUpdate'](_0x23b978){const _0x5c5049=_0xb0c99b;this[_0x5c5049(0x371)][_0x5c5049(0x3c7)](_0x23b978);}}var cs=Object['defineProperty'],ls=Object[_0xb0c99b(0x18e)],hs=(_0x171750,_0x30bbd2,_0x352989,_0x2a4cc3)=>{for(var _0x3af6e3=_0x2a4cc3>0x1?void 0x0:_0x2a4cc3?ls(_0x30bbd2,_0x352989):_0x30bbd2,_0x2004d4=_0x171750['length']-0x1,_0x1e7f08;_0x2004d4>=0x0;_0x2004d4--)(_0x1e7f08=_0x171750[_0x2004d4])&&(_0x3af6e3=(_0x2a4cc3?_0x1e7f08(_0x30bbd2,_0x352989,_0x3af6e3):_0x1e7f08(_0x3af6e3))||_0x3af6e3);return _0x2a4cc3&&_0x3af6e3&&cs(_0x30bbd2,_0x352989,_0x3af6e3),_0x3af6e3;},Ze=(_0x32cf69,_0x35657d)=>(_0x5672a5,_0x461b4b)=>_0x35657d(_0x5672a5,_0x461b4b,_0x32cf69);let q=class extends a[_0xb0c99b(0x463)]{constructor(_0x2dab2a,_0x2ccf72){const _0x37fd6e=_0xb0c99b;super(),d(this,_0x37fd6e(0x479),new Map()),(this[_0x37fd6e(0x3fb)]=_0x2dab2a,this['_userManagerService']=_0x2ccf72,this[_0x37fd6e(0x3d3)](a[_0x37fd6e(0x2ef)](v[_0x37fd6e(0x387)](this['_univerInstanceService'][_0x37fd6e(0x1a4)](a[_0x37fd6e(0x111)][_0x37fd6e(0x3e6)])[_0x37fd6e(0x3a7)](E[_0x37fd6e(0x1af)](_0x55b2e5=>_0x55b2e5[_0x37fd6e(0x4dd)]())),this[_0x37fd6e(0x3fb)][_0x37fd6e(0x1a4)](a[_0x37fd6e(0x111)]['UNIVER_DOC'])[_0x37fd6e(0x3a7)](E[_0x37fd6e(0x1af)](_0x4c1ea0=>_0x4c1ea0[_0x37fd6e(0x4dd)]())),this[_0x37fd6e(0x3fb)][_0x37fd6e(0x1a4)](a[_0x37fd6e(0x111)][_0x37fd6e(0x170)])['pipe'](E[_0x37fd6e(0x1af)](_0x4565a8=>_0x4565a8[_0x37fd6e(0x4dd)]())))[_0x37fd6e(0x33b)](_0x2a9bbf=>this[_0x37fd6e(0x4f4)](_0x2a9bbf)))));}[_0xb0c99b(0x1b5)](_0x369c4c){const _0x2bff04=_0xb0c99b;this[_0x2bff04(0xfe)]['setCurrentUser'](_0x369c4c);}['getCurrentUser'](){const _0x7f81a3=_0xb0c99b;return this[_0x7f81a3(0xfe)][_0x7f81a3(0x348)]();}[_0xb0c99b(0x117)](_0x178b44,_0x2196ea){const _0x400999=_0xb0c99b;let _0x296ca7=this[_0x400999(0x479)]['get'](_0x178b44);_0x296ca7||(_0x296ca7=new _s(),this[_0x400999(0x479)][_0x400999(0x4d0)](_0x178b44,_0x296ca7)),_0x296ca7[_0x400999(0x117)](_0x2196ea);}['removeMember'](_0x49436a,_0x5179f4){const _0x137742=_0xb0c99b,_0x12533a=this[_0x137742(0x479)][_0x137742(0x1a0)](_0x49436a);_0x12533a&&_0x12533a['removeMember'](_0x5179f4);}['getRoom'](_0x5dc253){const _0x276f24=_0xb0c99b;return this[_0x276f24(0x479)][_0x276f24(0x1a0)](_0x5dc253);}[_0xb0c99b(0x4b8)](_0x4fc2f7,_0x3e284c){const _0x377119=_0xb0c99b,_0x51345d=this[_0x377119(0x479)]['get'](_0x4fc2f7);if(_0x51345d)return _0x51345d[_0x377119(0x4b8)](_0x3e284c);}[_0xb0c99b(0x4f4)](_0x240573){const _0x4835cb=_0xb0c99b,_0x4b2d98=this['_roomMembers'][_0x4835cb(0x1a0)](_0x240573);_0x4b2d98&&(_0x4b2d98['dispose'](),this[_0x4835cb(0x479)][_0x4835cb(0x456)](_0x240573));}['dispose'](){const _0x5bed79=_0xb0c99b;this[_0x5bed79(0x479)][_0x5bed79(0x1cb)](_0x4539f1=>_0x4539f1[_0x5bed79(0x11c)]()),this[_0x5bed79(0x479)][_0x5bed79(0x460)]();}};q=hs([Ze(0x0,a[_0xb0c99b(0x49b)]),Ze(0x1,a[_0xb0c99b(0x455)](a['UserManagerService']))],q);class _s extends a['Disposable']{constructor(){super(...arguments),d(this,'_members',new Map());}[_0xb0c99b(0x11c)](){const _0xa17fe9=_0xb0c99b;this[_0xa17fe9(0x419)][_0xa17fe9(0x460)]();}[_0xb0c99b(0x117)](_0x18838a){const _0x321bd0=_0xb0c99b;this['_members'][_0x321bd0(0x4d0)](_0x18838a['memberID'],_0x18838a);}['removeMember'](_0x26b35f){this['_members']['delete'](_0x26b35f);}[_0xb0c99b(0x4b8)](_0x2a1150){const _0xf0b7b0=_0xb0c99b;return this[_0xf0b7b0(0x419)][_0xf0b7b0(0x1a0)](_0x2a1150);}}var us=Object[_0xb0c99b(0x3dd)],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x409d59,_0x3b592b,_0x32f5f3,_0x18d9d0)=>{const _0x58f711=_0xb0c99b;for(var _0x369692=_0x18d9d0>0x1?void 0x0:_0x18d9d0?ds(_0x3b592b,_0x32f5f3):_0x3b592b,_0x540fae=_0x409d59[_0x58f711(0x23c)]-0x1,_0x28de0b;_0x540fae>=0x0;_0x540fae--)(_0x28de0b=_0x409d59[_0x540fae])&&(_0x369692=(_0x18d9d0?_0x28de0b(_0x3b592b,_0x32f5f3,_0x369692):_0x28de0b(_0x369692))||_0x369692);return _0x18d9d0&&_0x369692&&us(_0x3b592b,_0x32f5f3,_0x369692),_0x369692;},B=(_0x2830dc,_0x448171)=>(_0xc1a5b5,_0x4f3b75)=>_0x448171(_0xc1a5b5,_0x4f3b75,_0x2830dc),j=(_0x3e1d4f=>(_0x3e1d4f[_0x3e1d4f['IDLE']=0x0]=_0xb0c99b(0x382),_0x3e1d4f[_0x3e1d4f[_0xb0c99b(0x214)]=0x1]=_0xb0c99b(0x214),_0x3e1d4f[_0x3e1d4f[_0xb0c99b(0x4ed)]=0x2]=_0xb0c99b(0x4ed),_0x3e1d4f[_0x3e1d4f['ONLINE']=0x3]='ONLINE',_0x3e1d4f))(j||{});exports[_0xb0c99b(0x183)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x2bf398,_0x174bcf,_0x47655c,_0x36094c,_0x4bf2cb,_0x203017,_0x476ca9,_0x452b40,_0x11673c,_0xe34d00){const _0x2a442f=_0xb0c99b;super(),d(this,_0x2a442f(0x199),new v[(_0x2a442f(0x4b1))](0x0)),d(this,_0x2a442f(0x404),this[_0x2a442f(0x199)]['asObservable']()),d(this,_0x2a442f(0x380),new v[(_0x2a442f(0x349))]()),d(this,_0x2a442f(0x1c0),this['_event$'][_0x2a442f(0x3af)]()),d(this,_0x2a442f(0x1c7)),d(this,_0x2a442f(0x49f)),d(this,_0x2a442f(0x125)),d(this,_0x2a442f(0x350),!0x1),d(this,'_telemetryInfo',null),(this[_0x2a442f(0x47f)]=_0x2bf398,this[_0x2a442f(0x3cd)]=_0x47655c,this[_0x2a442f(0x2e7)]=_0x36094c,this[_0x2a442f(0x33f)]=_0x4bf2cb,this[_0x2a442f(0x3ec)]=_0x203017,this[_0x2a442f(0x26d)]=_0x476ca9,this[_0x2a442f(0x3f3)]=_0x452b40,this[_0x2a442f(0x22e)]=_0x11673c,this[_0x2a442f(0x467)]=_0xe34d00,this[_0x2a442f(0x350)]=!!this['_telemetryService'],_0x174bcf[_0x2a442f(0x3a7)](v['takeUntil'](this['dispose$']))[_0x2a442f(0x33b)](_0x38f5ed=>{const _0x2f1e67=_0x2a442f;var _0x42192a;typeof _0x38f5ed>'u'||(this['_socket']=_0x38f5ed,_0x38f5ed?(this[_0x2f1e67(0x496)](_0x38f5ed),this[_0x2f1e67(0x49f)]=_0x38f5ed['message$']['subscribe'](_0x5aa239=>{const _0x1fff58=_0x2f1e67;_0x5aa239[_0x1fff58(0x28d)]===this[_0x1fff58(0x47f)]&&this[_0x1fff58(0x2c0)](_0x5aa239);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x2f1e67(0x199)][_0x2f1e67(0x3c7)](0x2),(_0x42192a=this[_0x2f1e67(0x49f)])==null||_0x42192a[_0x2f1e67(0x3e9)](),this[_0x2f1e67(0x49f)]=null));}),this[_0x2a442f(0x3d3)](this[_0x2a442f(0x2e7)]['registerOnClose'](()=>{const _0x270974=_0x2a442f;var _0x178ee2;(_0x178ee2=this[_0x270974(0x1c7)])==null||_0x178ee2[_0x270974(0x3c3)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x270974(0x47f)]}});})));}get['sessionStatus'](){const _0x2d5b40=_0xb0c99b;return this[_0x2d5b40(0x199)][_0x2d5b40(0x3d1)]();}[_0xb0c99b(0x34f)](){const _0x16df02=_0xb0c99b;var _0x1dc6c1,_0x286390;return(_0x286390=(_0x1dc6c1=this[_0x16df02(0x1c7)])==null?void 0x0:_0x1dc6c1[_0x16df02(0x37a)])!=null?_0x286390:null;}[_0xb0c99b(0x11c)](){const _0x4ef17f=_0xb0c99b;super[_0x4ef17f(0x11c)](),this[_0x4ef17f(0x495)]['next'](),this[_0x4ef17f(0x495)][_0x4ef17f(0x484)]();}['close'](){const _0x117093=_0xb0c99b;var _0x3631bd,_0x51eb4f;this[_0x117093(0x16b)](),(_0x3631bd=this[_0x117093(0x1c7)])==null||_0x3631bd[_0x117093(0x3c3)]({'cmd':b[_0x117093(0x33c)],'data':{'roomID':this[_0x117093(0x47f)]}}),(_0x51eb4f=this[_0x117093(0x1c7)])==null||_0x51eb4f[_0x117093(0x1ea)](),this[_0x117093(0x380)][_0x117093(0x484)](),this['_sessionStatus$'][_0x117093(0x484)](),this[_0x117093(0x11c)]();}[_0xb0c99b(0x2c0)](_0x36b87f){const _0x483005=_0xb0c99b;_0x36b87f[_0x483005(0xf2)]===b['JOIN']?this[_0x483005(0x128)](_0x36b87f):_0x36b87f['cmd']===b[_0x483005(0x2a8)]&&this['_onRecvEvent'](_0x36b87f);}[_0xb0c99b(0x496)](_0x5f072c){const _0x349552=_0xb0c99b;this[_0x349552(0x199)]['next'](0x1),_0x5f072c[_0x349552(0x3c3)]({'cmd':b['JOIN'],'routeKey':this[_0x349552(0x47f)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0xb0c99b(0x128)](_0x27a588){const _0x5622b8=_0xb0c99b;var _0x5ed199;if(_0x27a588[_0x5622b8(0x17f)]===We[_0x5622b8(0x4c2)]){this[_0x5622b8(0x33f)]['show']({'type':X['MessageType'][_0x5622b8(0x4ba)],'content':this[_0x5622b8(0x26d)]['t']('session.room-full')}),this[_0x5622b8(0x199)][_0x5622b8(0x3c7)](0x2);return;}this[_0x5622b8(0x199)][_0x5622b8(0x3c7)](0x3);const _0x5aa84e=(_0x5ed199=_0x27a588[_0x5622b8(0x494)][_0x5622b8(0x358)][this[_0x5622b8(0x47f)]])==null?void 0x0:_0x5ed199[_0x5622b8(0x1fe)];_0x5aa84e&&_0x5aa84e[_0x5622b8(0x1cb)](_0x3ec962=>this[_0x5622b8(0x3f3)][_0x5622b8(0x117)](this[_0x5622b8(0x47f)],_0x3ec962));}[_0xb0c99b(0x41b)](_0x509a15){const _0x10c477=_0xb0c99b;try{const _0x484e2e=_0x509a15['data'];switch(_0x484e2e['eventID']){case _['CollaborationEvent'][_0x10c477(0x25b)]:this[_0x10c477(0x15a)](_0x484e2e),this['_event$'][_0x10c477(0x3c7)](_0x484e2e);break;case _['CollaborationEvent'][_0x10c477(0x1cc)]:this[_0x10c477(0x19a)](_0x484e2e),this['_event$'][_0x10c477(0x3c7)](_0x484e2e);break;case _['CollaborationEvent']['CHANGESET_ACK']:this[_0x10c477(0x15b)](),this[_0x10c477(0x4f2)](),this[_0x10c477(0x380)][_0x10c477(0x3c7)](_0x484e2e);break;case _[_0x10c477(0x153)][_0x10c477(0x174)]:this[_0x10c477(0x3cd)][_0x10c477(0x4d1)](_0x10c477(0x1f7)+JSON['stringify'](_0x484e2e)),this[_0x10c477(0x380)][_0x10c477(0x3c7)](_0x484e2e);break;case _['CollaborationEvent'][_0x10c477(0x201)]:this[_0x10c477(0x22e)][_0x10c477(0x483)](_0x484e2e[_0x10c477(0x494)]),this['_event$'][_0x10c477(0x3c7)](_0x484e2e);break;default:this[_0x10c477(0x380)][_0x10c477(0x3c7)](_0x484e2e);}}catch(_0x4c1be8){this[_0x10c477(0x3cd)][_0x10c477(0x4d1)](_0x4c1be8,_0x509a15);}}['_onUserJoin'](_0x40268d){const _0x29291e=_0xb0c99b;this[_0x29291e(0x3f3)]['updateMember'](this['_unitID'],_0x40268d['data']);}[_0xb0c99b(0x19a)](_0x372762){const _0x142959=_0xb0c99b;this[_0x142959(0x3f3)][_0x142959(0x359)](this[_0x142959(0x47f)],_0x372762[_0x142959(0x494)][_0x142959(0x37a)]);}async[_0xb0c99b(0x3c3)](_0x323994,_0x57d891){const _0x5051bf=_0xb0c99b;if(this['sessionStatus']!==0x3||!this[_0x5051bf(0x1c7)])throw new Error(_0x5051bf(0x1e8));try{_0x323994[_0x5051bf(0x1bd)]===_[_0x5051bf(0x153)][_0x5051bf(0x21f)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x5051bf(0x311)](_0x323994)),this[_0x5051bf(0x1c7)]['send']({'cmd':b['INGEST'],'routeKey':_0x57d891,'routeType':'','data':_0x323994});}catch(_0x5d9f42){this[_0x5051bf(0x3cd)]['error'](_0x5d9f42);}}[_0xb0c99b(0x46a)](){const _0x3782dc=_0xb0c99b;var _0x45bb42;this[_0x3782dc(0x125)]=window[_0x3782dc(0x2f0)](()=>{const _0x55f044=_0x3782dc;this[_0x55f044(0x125)]=null,this[_0x55f044(0x33f)][_0x55f044(0x126)]({'type':X[_0x55f044(0x20b)]['Error'],'content':this[_0x55f044(0x26d)]['t'](_0x55f044(0x2bd))});},(_0x45bb42=this[_0x3782dc(0x3ec)][_0x3782dc(0x2aa)](Ve))!=null?_0x45bb42:St);}[_0xb0c99b(0x4f2)](){const _0x8ca39f=_0xb0c99b;this[_0x8ca39f(0x125)]&&(clearTimeout(this[_0x8ca39f(0x125)]),this[_0x8ca39f(0x125)]=null);}[_0xb0c99b(0x311)](_0xe96236){const _0x2f8467=_0xb0c99b;if(!this[_0x2f8467(0x350)])return;const {data:_0x2e874b}=_0xe96236,{unitID:_0x388f9b,changeset:_0x44adf5}=_0x2e874b,{mutations:_0x380939,type:_0x25d0d7}=_0x44adf5;this[_0x2f8467(0x4aa)]={'unitId':_0x388f9b,'type':_0x25d0d7,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':as(_0x380939)};}[_0xb0c99b(0x15b)](){const _0x54dcbc=_0xb0c99b;if(this[_0x54dcbc(0x350)]){if(!this[_0x54dcbc(0x4aa)]){this['_logService'][_0x54dcbc(0x4d1)](_0x54dcbc(0x48d),_0x54dcbc(0x355));return;}this[_0x54dcbc(0x4aa)][_0x54dcbc(0x2dd)]=performance[_0x54dcbc(0x4b4)](),this[_0x54dcbc(0x4aa)][_0x54dcbc(0x238)]=this[_0x54dcbc(0x4aa)]['stopTime']-this[_0x54dcbc(0x4aa)]['startTime'],this[_0x54dcbc(0x467)][_0x54dcbc(0x274)](os,this[_0x54dcbc(0x4aa)]),this[_0x54dcbc(0x4aa)]=null;}}[_0xb0c99b(0x16b)](){this['_telemetryInfo']=null;}},exports[_0xb0c99b(0x183)]=Ss([B(0x2,a[_0xb0c99b(0x2b2)]),B(0x3,N[_0xb0c99b(0x221)]),B(0x4,N['IMessageService']),B(0x5,a[_0xb0c99b(0x195)]),B(0x6,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),B(0x7,a[_0xb0c99b(0x455)](q)),B(0x8,a['Inject'](Ge)),B(0x9,a[_0xb0c99b(0x1c6)](Bt[_0xb0c99b(0x1c8)]))],exports['CollaborationSession']);function _0x4d94(){const _0x3825d8=['FETCH_MISS','_getCtorByUniverType','parseChangesetToProtocol','m1Prime','defineProperty','AWAITING_WITH_PENDING','unit-cache-','visibilityState','create','_executeRemoteChangeset','_updateSubUnitFromURLParams','_transformUndoRedoStack','getUnitStatus$','UNIVER_SHEET','post','IRemoteInstanceService','unsubscribe','CollaborationStatusDisplay','NOT_COLLAB','_configService','_render','_docSyncEditingCollabCursorService','getParam','getOffsetConfig','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_eventUnsubscribe','_memberService','values','_drawAnchor','pending','BASE64','POST','_acknowledgedAwaitingChangeset','newCsEvent','_univerInstanceService','UNDEFINED','target','CHANGESET_REJ','InsertRowCommandId','row','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_cursors','csAckEvent','sessionStatus$','svg','_handleEvent','open$','loginUrlKey','INVALID_ARGUMENT','SetSelectionsOperation','_localCacheService','addObject','SNAPSHOT_SERVER_URL_KEY','size','function','_retryConnectingTimer','655432BEARTo','IUIPartsService','@univerjs/docs-ui','_transformStack','1em','_scheduleSaving','session','searchParams','_members','Injector','_onRecvEvent','_getAnchorBounding','unit','hasOwnProperty','_init','off-line-single','UniverCollaborationPlugin','textRanges','_sendHeartbeatTimer','/object/','_commandService','editing\x20status\x20changed\x20to','_initMergeInterceptor','serializeRangeWithSheet','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_updateState','arc','[CollaborationSessionService]','@univerjs-pro/collaboration','NOT_FOUND','readAsDataURL','SHOULD_CLOSE_CONN','NodePositionConvertToRectRange','_setupBeforeClosingHandler','current','_uiPartsService','parse','_lockTransition','_rescheduleHeartbeat','exhaustSavingTask','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_color','retryConnectingInterval','_getSendChangesetTimeout','getRangePointData','take','DocIMEInputManagerService','_remoteChangesetQueue','random','auth.needGotoLoginAlert','InsertRangeMoveRightCommandId','LIVESHARE_FETCH_OPERATIONS','_tryReconnect','_docTransformIMECacheService','IAuthzIoService','HEARTBEAT_TIMEOUT_KEY','onPointerMove$','_sendingTimer','getRenderById','EmptyMutation','_type','onload','SEND_CHANGESET_TIMEOUT_KEY','takeUntil','attrs','max','appendMutation','fetch_missing','Inject','delete','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','saveChangeset','onMissingChangesets','handleInsertRow','2127036rgqVzG','_startDocCollabCursor','registerHTTPInterceptor','history','column','clear','_clearScheduledTask','_singleActiveUnitService','Disposable','image/bmp','_state$','flatMap','_telemetryService','transformSelections','c2Prime','_scheduleCollaborationTimeoutTimer','INGEST','ImageUploadStatusType','TRANSFORM_CHANGE_OBSERVABLE_TYPE','width','synced','onMouseMove','handleMoveRange','LocaleService','\x20-\x20','SnapshotServerOverHTTPService','makeDirty','_listenToOnlineEvent','startsWith','deleteCollaborator','_roomMembers','currentSkeleton$','transformStack\x20failed!','_collabCursorController','_clearOtherTimers','ICommandService','_unitID','_createInitialState','_onLocalMutation','81pBYtta','onCommentUpdate','complete','objectType','[UniverCollaborationClientPlugin]','cursorInfo','_scheduleClearOtherTimer','COMPRESS_MUTATION_SEND','_onCursorDelete','isTransformMutationFailure','_clearUndo','[CollaborationSession]','_saveCache','apply','[CollaborationSessionService]:\x20socket\x20error','editingUnit','_awaitingChangeset','socket\x20open.','data','dispose$','_joinRoom','_removeClearOtherTimer','type','toString','_scheduleTimestamp','IUniverInstanceService','distinctUntilChanged','#fff','_getLoginPath','_socketMessageSubscription','_handleJoinEvent','red300','_lastPointer','setItem','_startSheetCollabCursor','reduce','originalMeta','/role','clearInterval','APPLY_REVISION_CONFILICT','_telemetryInfo','headers','put','_transformPreviousActiveRange','update','UniverCollaborationClientPlugin','patch','BehaviorSubject','awaiting_with_pending','_unitStatus','now','_getUndoStack','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','_sheetSkeletonManagerService','getMember','_initRequestHeader','Warning','conflict.content','newValue','_collaborationPaused','ThemeService','AuthzIoHttpService','body','getUndoRedoMutationParamsCache','FAIL','unitID','_cachedData','updateOfflineData','image/jpg','_undoRedoService','_status$','_submitChangeset','_urlService','toggleOffline','enableAuthServer','_collaborationSessionService','bottom','xlink:href','set','error','fromEventSubject','/allowed','transformUndoRedo','_entityInit$','delay','_createInitialStateImpl','_setupSubUnitSync','\x20to\x20','from','_themeService','evenodd','getUnitId','_onCursorUpdate','CollaborationStatus','fetchMissingChangesets','COLLAB_WEB_SOCKET_URL','addEventListener','loadOfflineData','mutations','interceptor','useDependency','all','LICENSE_IMPORT_SIZE_EXCEEDED','transformIMECache','_heartbeatTimer','popstate','range','OFFLINE','allowed','/universer-api/stream/file/upload','_handleLeaveEvent','_getSaveTimeout','_clearCollaborationTimeoutTimer','[OfflineState]:\x20received\x20changeset.','_removeRoom','_hover','ICollaborationSocketService','_clearTimeoutTimer','_createSocket','startRow','_clearLocalCache','createIdentifier','deepClone','color','not_collab','_getAPIPrefix','shareReplay','_replaceFileID','getColor','onlineStatusIcon','div','session.will-retry','[PendingState]:\x20received\x20acknowledgement.','cmd','isTransformMutationsWithChangesetSuccess','joinEvent','fill','PERMISSION_REJ','action','/universer-api/comb','_initStatusComponent','_updateURLWithCurrentState','message$','_handler','triggerDblclick','_userManagerService','actions','onPointerLeave$','throttleTime','isTransformChangesetsSuccess','FromArray','connectInjector','resize','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_undoStacks','_getScale','CollaborationController','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_ensureSubject','OnLifecycle','UniverIcon','UPDATE_PERMISSION_OBJ','_initCloseConn','_getMergeRange','UniverInstanceType','handleInsertRangeMoveDown','findNodePositionByCharIndex','_labelPosition','_permissionService','[CollaborationUndoRedoService]','updateMember','HttpExport','_selfUnitIDs','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','LICENSE_EXPORT_SIZE_EXCEEDED','dispose','RegularPolygon','listCollaborators','HttpImport','_unlockTransition','split','M0\x200H16V16H0z','#FFF','_transformSelections','_collaborationTimeoutTimer','show','Tooltip','_onJoinRoomEvent','_schedule','_initStatusListener','Vector2','currentColor','_docTransformSelectionsService','UNAUTHENTICATED','_injector','/universer-api/oidc/authpage','createCollaborator','getDocRanges','LifecycleStages','getSheetBySheetId','executeCommand','_online','result','_hideTimer','_colorAssignService','unitId','filter','location','COLORS','APPLY_REJECT','syncEditingCollabCursor','failed\x20to\x20apply\x20missed\x20changesets!','onRendered','_updateLocalCache','add','getSheetBlock','DocCollaborationEntity','x-univer-host','url(#on-line-single_clip0_910_349)','getAttachHeader','_registerRenderDependencies','_transitionLocked','WebURLService','Plugin','Error','getInterceptPoints','lineTo','roomMembers$','runRefRangeMutations','Univer','CollaborationEvent','image/jpeg','YUUMI_UNABLE_LOAD_URL','status$','onTransformChange$','IURLService','CHANGESET_REVISION_CONFILICT','_onUserJoin','_stopTelemetryCollaborationNewChangeset','Rect','subscribeEvent','_onRemoteChangeset','collab-text-range-','_registerDependencies','_textBubble','_backgroundColor','textEncoder','addImageSourceCache','@univerjs/core','_docStateChangeManagerService','collabStatus.syncing','\x20in\x20_schedule.','_socketService','Starting','_throwTelemetryCollaborationNewChangeset','_waitCount','SEND_CHANGESET_TIMEOUT','unitId\x20is\x20not\x20found','InsertRangeMoveDownCommandId','UNIVER_SLIDE','LICENSE_MAX_UNITS_EXCEEDED','324265mvBCsh','top','MSG_FOR_ERROR','_id','visibilitychange','[PendingState]:\x20received\x20rejection.','COMPRESS_MUTATION_APPLY','getMergeData','_draw','XHRHTTPImplementation','0\x200\x2017\x2016','assign','/universer-api/snapshot/','code','_initEventListeners','storage','Module','CollaborationSession','univer-offline','collabCursorState$','_range','url','init','LIVESHARE_OPERATION','CollaborationSocketService','_loadSheet','icon','_localStorageService','getOwnPropertyDescriptor','DependentOn','collaboratorID','has','collaboration-client.config','/block/','collaboration-client.offline-data-not-saved','IConfigService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','LIVESHARE_NEW_HOST','InsertSheetMutation','_sessionStatus$','_onUserLeave','subUnitId','&to=','height','connection\x20error','/unit/','get','createElement','CommandType','APPLY_PERMISSION_DENIED','getTypeOfUnitDisposed$','commentUpdate$','_compressMutationService','_createHandler','TEXT_RANGE_LAYER_INDEX','[CollaborationEntity]','_queuedRemoteChangesets','getCoordByCell','DesktopCollaborationStatusDisplayController','string','JOIN','map','DocSelectionManagerService','setParam','collaMsg','getTime','AWAITING','setCurrentUser','off-line-single_clip0_910_343','resend','offline','revision','getActiveSheet','substring','COMPLETION_FINISHED','eventID','@univerjs/rpc','children','event$','_snapshotServerService','DeleteRangeMoveUpCommandId','incrementRevOfUnit','defIds','onSendChangeset','Optional','_socket','ITelemetryService','/-/object/list','_onFetchMissResult','forEach','USERS_LEAVE','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','saveSnapshot','UNIVER_COLLABORATION_CLIENT_PLUGIN','Rectangle','_socketReady','permissionRejEvent','_sendHeartbeat','black','some','getCurrent','DataLoaderController','drawWith','registerRenderModule','1893656cHEelM','_scheduleHeartbeat','@univerjs/engine-formula','_onConflict','RETRY_CONNECTING_MAX_COUNT_KEY','LIVESHARE_TERMINATE','@univerjs/sheets-ui','/universer-api/snapshot','_docSkeletonManagerService','[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.','onTransformSelections','_getRedoStack','indexOf','SheetCollaborationEntity','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','assignAColorForMemberID','close','setShapeProps','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','includes','ISnapshotServerService','updateCollaborator','IPermissionService','setConfig','_transformService','SheetsSelectionsService','getUnitOnRev','[CollaborationState]:\x20apply\x20error!','onTransformIME','save\x20fail\x20reason\x20is\x20','getVpScrollXYInfoByPosToVp','extend','HEADER_MENU','getSheetId','disposeUnit','_getDownloadEndpointURL','members','_cursorShapes','m2Prime','COMMENT_UPDATE','useCallback','focused$','snapshotServerUrl','onStarting','unknown','entries','_imageSourceCache','objects','getImage','MessageType','_transformRemoteChangesetByIMECache','univer-pro.collaboration-client-socket-service','then','NO_OTHER_CLIENTS_EDITING','getCurrentSelections','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','collabStatus.fetchMiss','@univerjs/telemetry','JOINING','sequenceExecute','purple300','_revisionService','UNIVER_UNKNOWN','_removeCollabCursors','awaiting','ERROR_EXCEED_SIZE','append','reject','_clearRedo','SUBMIT_CHANGESET','@univerjs/drawing','IBeforeCloseService','toggleOnline','method','&assign=','_transformIMECache','ImageIoService','react','batchAllowed','CONFLICT','switchMap','key','unload','SetWorksheetActivateCommand','_commentService','hide','requireSession','forwardRef','INTERNAL_ERROR','backgroundColor','IHTTPImplementation','onPointerEnter$','hovered','replaceState','duration','[DataLoaderController]','saveSheetBlock','SNAPSHOT_URL_KEY','length','getUnhiddenWorksheets','uni.network.url-service','SUCCUSS','isTransformMutationsWithChangesetFailure','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','DeleteRangeMoveLeftCommandId','_substituteUndoStack','conflict','APPLY_NON_SEQUENTIAL_REVISION','engine','SnapshotService','_disabled','awaitingChangeset','with','find','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUniverSheetInstance','OnLineSingle','_context','json','transformByState','sendChangesetTimeout','getCollabEntity$','UNIVER_DOC','getAncestorScale','PENDING','_hovered','_getCurrentRevision','_state','_cursorInfo$','USERS_ENTER','title','defs','getImageSourceCache','reconnect','resourceIDs','skeleton','b64DecodeUnicode','_waitForHeartbeatResponse','JSONX','...','text','50500ixnZYw','_snapshotService','origin','Undefined','_roomMembers$','verdancy600','_localeService','_colorIndex','saveImage','HEARTBEAT_INTERVAL_KEY','YUUMI_SUBSCRIPTION_NOT_FOUND','_updateLocalCursor','ILocalStorageService','capture','CollaborationEntity','_session','VIEWPORT_KEY','collab-text-anchor-','_onConnectionFailed','currentTheme$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','CONNECTOR_DATA_TOO_LARGE','onRemoteChangeset','/resources','_candidateSocket','downloadEndpointUrl','LOGIN_URL_KEY','_replayCachedMutations','DisposableCollection','_fetchMissChangesets','_renderManagerService','Tools','mapDocumentTypeToUniverType','_showConflictNotification','Shape','CollaborationSessionService','prototype','_decreaseWaiting','routeKey','removeParam','NodePositionConvertToCursor','changesets','NEW_CHANGESETS','serializeCombRequest','MUTATION','enableOfflineEditing','idSuffix','selection','tag','compose','registerComponent','PERMISSION_DENIED','createInstance','SNAPSHOT_HAS_BEEN_REMOVED','name','_handleHover','@univerjs/ui','_scene','_instanceService','_anchor','4610333yHWVUe','getTypeOfUnitAdded$','collaboration_new_changeset','ranges','getSkeleton','RECV','registerRefRange','getConfig','getUnitType','onCommandExecuted','0\x200\x2016\x2016','SheetPermissionInitController','SheetCollabCursorShape','isInternalEditorID','_initCommandExecutedListener','ILogService','_drawTextRange','contains','clsx','/collaborator','state','baseRev','LocalCacheService','_config','toRgbString','onStateChange','session.collaboration-timeout','catch','pluginName','_onCombEvent','_retryCount','SYNCED','replace','?size=','_collabSessionService','_updateCollabCursors','UPDATE_CURSOR','ImageSourceType','deserializeToCombResponse','ThresholdInterceptorFactory','_collabCursorState$','_incrementRevisionNumber','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isPermissionRej','UNRECOGNIZED','BuiltInUIPart','on-line-single_clip0_910_349','AUTHZ_URL_KEY','colorChannel1','commentUpdateEvent','c1Prime','transformMutationsWithChangeset','userID','_isPermissionRej','save','push','HELLO','getWorkbookSelections','stopTime','\x0aCurrent:\x20','collaboration-session-retry','setActiveRange','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','/-/object/-/batch_allowed','params','_updateStatus','[SyncedState]:\x20received\x20rejection.','MergeInterceptorFactory','_beforeCloseService','_httpService','_saveTaskMap','getDeserializedSheetBlock','handleDeleteRangeMoveUp','roomMembers','isArray','_sheetTransformSelectionsService','toDisposable','setTimeout','min','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onTransformRemoteChangesetByIMECache','online','call','HEARTBEAT_TIMEOUT','getCollabCursors$','none','_transformUndoredo','getCurrentRevOfUnit','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','round','className','closeSession','collab-client.tooltip.reconnect','WebSocketService','debounce','_onRemoteRejected','collaboration.single-unit.warning','_onMessage','ONLINE','HTTPRequest','/universer-api/file/{fileID}/sign-url','_socket$','OTHER_CLIENTS_EDITING','PSEUDO_FETCH_MISSING_RESULT','_change$','getCollabEntity','objectActions','TOO_MANY_REQUESTS','_refRangeService','gold400','_startTelemetryCollaborationNewChangeset','ColorKit','_initResize','@univerjs/engine-render','transformRemoteChangeset','unshift','onSyncEditingCollabCursor','encodeURIComponent','HTTPService','_redoStacks','[OfflineState]:\x20received\x20acknowledgement.','rgba(255,\x20255,\x20255,\x200.01)','FETCH_MISSING','_getAPIPrefixPath','_collaborationController','getOwnPropertySymbols','_assignedColors','_name','onlyLocal','createSocket','_onOffline','LICENSE_DISTRO_REJECTED','transformMutation','{fileID}','_send','CompressMutationService','objectID','replaceTextRanges','_notificationService','_shapes','fillStyle','@univerjs/design','_onConnectionOpen','measureText','infoRsp','useRef','_timeoutTimer','translate(.97)','_http','_unitOnClients','onMissedChangesetFetched','handleInsertRangeMoveRight','subscribe','LEAVE','restore','collaboration.closeRoom','_messageService','saveOfflineData','_onRemoteACK','RevisionService','refreshPermission','onlineStatusTitle','getFocusedUnit','rxjs','debug','getCurrentUser','Subject','UNIVER_PROJECT','@univerjs/network','univer-online-status','IContextService','use','getMemberID','_shouldReportTelemetry','enableLocalCache','_onRefRangeChange','&source=','override','telemetry\x20info\x20is\x20not\x20initialized','doc.mutation.rich-text-editing','_startCollaboration','roomInfos','removeMember','transformChangesets','parseProtocolChangeset','SessionStatus','shouldCloseConn','deserializeRangeWithSheet','fillText','DEFAULT_FILE_NAME','COLLAB_SUBMIT_CHANGESET_URL_KEY','getSheetObject','href','_applyRemoteChangeset','_refreshCollabCursors','status','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','endRow','Steady','generateRandomId','permission.content','path','stringify','_anchorDot','transform','getResourcesRequest','_commentUpdate$','setAlpha','concat','_initUnitPermissionChange','conflict.title','_toggleOnline','handleDeleteRangeMoveLeft','ACTIVE_UNIT_EVENT_CHANNEL','ERROR_IMAGE_TYPE','memberID','LOCAL_CACHE_INTERVAL_KEY','ITransformService','EffectRefRangId','displayName','_syncEditingCollabCursorService','_event$','_syncEditingCollabCursor','IDLE','_docSkeleton','ALREADY_EXISTS','error$','?url=','merge','isActive','_getUploadFileURL','close$','disableLocalCache','image/png','clearTimeout','localeService','liveShareNewHost','onRemoteAck','RETRY_CONNECTING_MAX_COUNT','initWorkbookPermissionChange','RemoveRowCommandId','UnitEmbedded','IUndoRedoService','RichTextEditingMutation','requestParams','UnitSnapshot','file','42sElnpu','UNKNOWN_CODE','_checkMissing','_HTTPService','toStringTag','_loadDoc','fetchMiss','SNAPSHOT_INVALID_SNAPSHOT','COLLAB_WEB_SOCKET_URL_KEY','putCollaborators','_entities','collabSubmitChangesetUrl','6338zFntzX','pipe','_pendingMutations','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onRemoteRej','combineLatest','fetchThroughInterceptors','univerjs-icon\x20univerjs-icon-','onlineStatus','asObservable','jiqing500','fromCollab','getCellPositionByOffset','_tryEnsureSocket','csRejEvent','FileId','encode','collabWebSocketUrl','urlChange$','_getSnapshotAPIPrefix','authzUrl','IMessageService','WorkbookEditablePermission','cursorInfo$','_sessions','confirm','_drawRectRange','RxDisposable','LIVESHARE_REQUEST_HOST','send','_getSheetObject','collabStatus.offline','getCurrentUnitForType','next','updatePermissionPoint','_handleHeartbeatEvent','registerBeforeClose','/universer-api/authz','/new_changes','_logService','CommentService','/object','@univerjs-pro/license','getValue','_toggleOffline','disposeWithMe','reverse','ERROR_IMAGE','debounceTime','submit\x20changeset\x20error!','snapshot'];_0x4d94=function(){return _0x3825d8;};return _0x4d94();}var vs=Object[_0xb0c99b(0x3dd)],fs=Object[_0xb0c99b(0x18e)],gs=(_0x22d9b8,_0x243933,_0xf38017,_0x2b234d)=>{const _0xcda1af=_0xb0c99b;for(var _0x4c0b8b=_0x2b234d>0x1?void 0x0:_0x2b234d?fs(_0x243933,_0xf38017):_0x243933,_0x432714=_0x22d9b8[_0xcda1af(0x23c)]-0x1,_0x1799ea;_0x432714>=0x0;_0x432714--)(_0x1799ea=_0x22d9b8[_0x432714])&&(_0x4c0b8b=(_0x2b234d?_0x1799ea(_0x243933,_0xf38017,_0x4c0b8b):_0x1799ea(_0x4c0b8b))||_0x4c0b8b);return _0x2b234d&&_0x4c0b8b&&vs(_0x243933,_0xf38017,_0x4c0b8b),_0x4c0b8b;},Z=(_0x2f81f4,_0x2b10a7)=>(_0x45744c,_0xf8f8bf)=>_0x2b10a7(_0x45744c,_0xf8f8bf,_0x2f81f4);exports[_0xb0c99b(0x28a)]=class extends a[_0xb0c99b(0x463)]{constructor(_0x300ec8,_0x50e410,_0x56a4ee,_0x3f345f,_0x2540a5,_0x2ae296){const _0x687f65=_0xb0c99b;super(),d(this,_0x687f65(0x308),new v[(_0x687f65(0x4b1))](void 0x0)),d(this,'socket$',this['_socket$'][_0x687f65(0x3af)]()),d(this,_0x687f65(0x27f),null),d(this,_0x687f65(0x3be),new Map()),d(this,'_status$',new v[(_0x687f65(0x4b1))](j[_0x687f65(0x382)])),d(this,_0x687f65(0x156),this[_0x687f65(0x4c8)][_0x687f65(0x3af)]()),d(this,'_socketReady',!0x1),d(this,_0x687f65(0x410)),d(this,'_retryCount',0x0),d(this,_0x687f65(0x423)),d(this,_0x687f65(0x335)),(this[_0x687f65(0x12f)]=_0x300ec8,this[_0x687f65(0x26d)]=_0x50e410,this[_0x687f65(0x33f)]=_0x56a4ee,this[_0x687f65(0x3cd)]=_0x3f345f,this[_0x687f65(0x3ec)]=_0x2540a5,this[_0x687f65(0x169)]=_0x2ae296,this[_0x687f65(0x180)]());}get[_0xb0c99b(0x1c7)](){const _0x3426b9=_0xb0c99b;return this[_0x3426b9(0x308)]['getValue']();}[_0xb0c99b(0x180)](){this['_listenToOfflineEvent'](),this['_listenToOnlineEvent']();}['dispose'](){const _0x5aca15=_0xb0c99b;super['dispose'](),this[_0x5aca15(0x3be)][_0x5aca15(0x1cb)](_0x3f897f=>_0x3f897f[_0x5aca15(0x11c)]()),this[_0x5aca15(0x3be)][_0x5aca15(0x460)](),this[_0x5aca15(0x4c8)][_0x5aca15(0x484)]();}async[_0xb0c99b(0x230)](_0x2a8985){const _0x4b94a3=_0xb0c99b;if(this[_0x4b94a3(0x3be)][_0x4b94a3(0x191)](_0x2a8985))return this[_0x4b94a3(0x3be)][_0x4b94a3(0x1a0)](_0x2a8985);this[_0x4b94a3(0x3b3)]();const _0x2a920b=this[_0x4b94a3(0x12f)]['createInstance'](exports[_0x4b94a3(0x183)],_0x2a8985,this[_0x4b94a3(0x308)]['asObservable']());return this[_0x4b94a3(0x3be)][_0x4b94a3(0x4d0)](_0x2a8985,_0x2a920b),_0x2a920b;}[_0xb0c99b(0x2fe)](_0x32488c){const _0x1d6f5e=_0xb0c99b;var _0x17a38f;const _0x39bca6=this[_0x1d6f5e(0x3be)][_0x1d6f5e(0x1a0)](_0x32488c);_0x39bca6&&(this['_sessions'][_0x1d6f5e(0x456)](_0x32488c),_0x39bca6[_0x1d6f5e(0x1ea)]()),this[_0x1d6f5e(0x3be)][_0x1d6f5e(0x40e)]||(_0x17a38f=this[_0x1d6f5e(0x1c7)])==null||_0x17a38f[_0x1d6f5e(0x1ea)]();}[_0xb0c99b(0x25f)](){const _0x5e1f36=_0xb0c99b;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x5e1f36(0x410)]),this[_0x5e1f36(0x410)]=null),this[_0x5e1f36(0x445)]();}[_0xb0c99b(0x4f8)](){const _0x10eb7a=_0xb0c99b;var _0x3131e9,_0x174163;const _0x239af2=this[_0x10eb7a(0x3ec)][_0x10eb7a(0x2aa)](ut),_0x1d9b1f=this['_configService'][_0x10eb7a(0x2aa)](L),_0x463940=(_0x174163=(_0x3131e9=_0x1d9b1f==null?void 0x0:_0x1d9b1f[_0x10eb7a(0x3b7)])!=null?_0x3131e9:_0x239af2)!=null?_0x174163:Xt,_0x3c2a7b=this[_0x10eb7a(0x169)]['createSocket'](_0x463940);return this[_0x10eb7a(0x27f)]=_0x3c2a7b,_0x3c2a7b;}[_0xb0c99b(0x3b3)](){const _0x4ff10e=_0xb0c99b;var _0x5735f3,_0x3edeec;try{const _0x11893a=(_0x3edeec=(_0x5735f3=this[_0x4ff10e(0x1c7)])!=null?_0x5735f3:this['_candidateSocket'])!=null?_0x3edeec:this[_0x4ff10e(0x4f8)]();if(_0x11893a){const _0x51d697=_0x11893a[_0x4ff10e(0x3c3)];_0x11893a[_0x4ff10e(0x3c3)]=_0x4a98a7=>(this[_0x4ff10e(0x437)](),_0x51d697[_0x4ff10e(0x48f)](_0x11893a,[_0x4a98a7])),_0x11893a[_0x4ff10e(0xfb)][_0x4ff10e(0x33b)](_0x342e1f=>this[_0x4ff10e(0x304)](_0x11893a,_0x342e1f)),_0x11893a[_0x4ff10e(0x385)][_0x4ff10e(0x3a7)](E[_0x4ff10e(0x43e)](0x1))[_0x4ff10e(0x33b)](_0x88c1b1=>this['_logService'][_0x4ff10e(0x4d1)](_0x4ff10e(0x490),_0x88c1b1)),_0x11893a[_0x4ff10e(0x407)]['pipe'](E[_0x4ff10e(0x43e)](0x1))[_0x4ff10e(0x33b)](()=>{const _0x417d84=_0x4ff10e;this[_0x417d84(0x331)](_0x11893a);}),_0x11893a[_0x4ff10e(0x38a)]['pipe'](E[_0x4ff10e(0x43e)](0x1))['subscribe'](_0x3ebc49=>{const _0x1de49a=_0x4ff10e;this[_0x1de49a(0x3cd)][_0x1de49a(0x347)]('[CollaborationSessionService]','socket\x20close',_0x3ebc49),this[_0x1de49a(0x279)]();});}}catch(_0x61d779){this['_logService'][_0x4ff10e(0x4d1)](_0x61d779),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x31aeaa){const _0x3a5933=_0xb0c99b;this[_0x3a5933(0x3cd)]['debug'](_0x3a5933(0x42c),_0x3a5933(0x493)),_0x31aeaa['send']({'cmd':b['HELLO']}),this[_0x3a5933(0x437)]();}['_listenToOfflineEvent'](){const _0x258d8d=_0xb0c99b;window[_0x258d8d(0x4e2)](_0x258d8d(0x1b8),()=>this[_0x258d8d(0x325)]());}[_0xb0c99b(0x325)](){const _0x1c1513=_0xb0c99b;this[_0x1c1513(0x1d1)]=!0x1,this[_0x1c1513(0x27f)]=null,this[_0x1c1513(0x4c8)]['next'](j['OFFLINE']),this[_0x1c1513(0x308)][_0x1c1513(0x3c7)](null),this[_0x1c1513(0x4f7)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x38f6ad=_0xb0c99b;var _0x54da4f;this[_0x38f6ad(0x325)](),this[_0x38f6ad(0x2c1)]<((_0x54da4f=this[_0x38f6ad(0x3ec)][_0x38f6ad(0x2aa)](vt))!=null?_0x54da4f:Jt)?(this['_messageService'][_0x38f6ad(0x126)]({'key':_0x38f6ad(0x2df),'type':X['MessageType']['Warning'],'content':this[_0x38f6ad(0x26d)]['t'](_0x38f6ad(0xf0))}),this[_0x38f6ad(0x445)]()):this[_0x38f6ad(0x33f)]['show']({'key':_0x38f6ad(0x2df),'type':X['MessageType']['Error'],'content':this[_0x38f6ad(0x26d)]['t']('session.connection-failed')});}[_0xb0c99b(0x476)](){const _0x59c3c9=_0xb0c99b,_0x83ae86=()=>{const _0xd3f6eb=_0x4e0f;this[_0xd3f6eb(0x1c7)]||this[_0xd3f6eb(0x25f)]();},_0x212f59=()=>{const _0x19f098=_0x4e0f;this[_0x19f098(0x1c7)]||document[_0x19f098(0x3e0)]==='hidden'||this[_0x19f098(0x25f)]();};window[_0x59c3c9(0x4e2)](_0x59c3c9(0x2f4),_0x83ae86),document['addEventListener'](_0x59c3c9(0x176),_0x212f59);}[_0xb0c99b(0x445)](){const _0x124d2e=_0xb0c99b;var _0x21cd09;const _0x27d50c=this[_0x124d2e(0x2c1)],_0x2a2402=this[_0x124d2e(0x3ec)][_0x124d2e(0x2aa)](L),_0x543a0f=_0x27d50c===0x0?0x0:((_0x21cd09=_0x2a2402==null?void 0x0:_0x2a2402[_0x124d2e(0x43b)])!=null?_0x21cd09:zt)*0x2**_0x27d50c;this[_0x124d2e(0x410)]=window[_0x124d2e(0x2f0)](()=>{const _0x9213a5=_0x124d2e;clearTimeout(this[_0x9213a5(0x410)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x543a0f),this[_0x124d2e(0x2c1)]+=0x1;}[_0xb0c99b(0x304)](_0x110ffc,_0x234b11){const _0x1a0794=_0xb0c99b,{cmd:_0x1a886d}=_0x234b11;_0x1a886d===b['HELLO']&&!this['_socketReady']&&(_0x110ffc[_0x1a0794(0x37a)]=_0x234b11['data'][_0x1a0794(0x37a)],this[_0x1a0794(0x308)]['next'](_0x110ffc),this[_0x1a0794(0x4c8)]['next'](j[_0x1a0794(0x305)]),this[_0x1a0794(0x1d1)]=!0x0,this[_0x1a0794(0x27f)]=null),_0x1a886d===b['HEARTBEAT']&&this[_0x1a0794(0x4f7)](),this[_0x1a0794(0x437)]();}[_0xb0c99b(0x437)](){const _0x17f2c3=_0xb0c99b;var _0x323fbf;this['_clearHeartbeatTimer'](),this[_0x17f2c3(0x423)]=window['setTimeout'](()=>this[_0x17f2c3(0x1d3)](),(_0x323fbf=this[_0x17f2c3(0x3ec)][_0x17f2c3(0x2aa)](dt))!=null?_0x323fbf:qt);}[_0xb0c99b(0x1d3)](){const _0x33263a=_0xb0c99b;this[_0x33263a(0x1c7)][_0x33263a(0x3c3)]({'cmd':b['HEARTBEAT']}),this[_0x33263a(0x263)]();}['_waitForHeartbeatResponse'](){const _0x39004c=_0xb0c99b;var _0x3235d2;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x39004c(0x279)](),(_0x3235d2=this[_0x39004c(0x3ec)][_0x39004c(0x2aa)](Ve))!=null?_0x3235d2:St);}['_clearHeartbeatTimer'](){const _0x1686ac=_0xb0c99b;this[_0x1686ac(0x423)]!=null&&(clearTimeout(this[_0x1686ac(0x423)]),this[_0x1686ac(0x423)]=null);}[_0xb0c99b(0x4f7)](){const _0x45fc02=_0xb0c99b;this[_0x45fc02(0x335)]!=null&&(clearTimeout(this[_0x45fc02(0x335)]),this[_0x45fc02(0x335)]=null);}},exports[_0xb0c99b(0x28a)]=gs([Z(0x0,a[_0xb0c99b(0x455)](a['Injector'])),Z(0x1,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),Z(0x2,N[_0xb0c99b(0x3bb)]),Z(0x3,a[_0xb0c99b(0x2b2)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0xb0c99b(0x3dd)],Is=Object[_0xb0c99b(0x18e)],ps=(_0x16694c,_0x4b04f9,_0x4a29c0,_0x285272)=>{const _0x432e4f=_0xb0c99b;for(var _0x553bb6=_0x285272>0x1?void 0x0:_0x285272?Is(_0x4b04f9,_0x4a29c0):_0x4b04f9,_0x3aeb50=_0x16694c[_0x432e4f(0x23c)]-0x1,_0x47b7c5;_0x3aeb50>=0x0;_0x3aeb50--)(_0x47b7c5=_0x16694c[_0x3aeb50])&&(_0x553bb6=(_0x285272?_0x47b7c5(_0x4b04f9,_0x4a29c0,_0x553bb6):_0x47b7c5(_0x553bb6))||_0x553bb6);return _0x285272&&_0x553bb6&&ms(_0x4b04f9,_0x4a29c0,_0x553bb6),_0x553bb6;},ye=(_0x118404,_0x3c0e85)=>(_0x8af845,_0x4ca255)=>_0x3c0e85(_0x8af845,_0x4ca255,_0x118404);let Ie=class{constructor(_0x548ed7,_0x42416d,_0x11e8bf){const _0x4206c0=_0xb0c99b;this[_0x4206c0(0x12f)]=_0x548ed7,this[_0x4206c0(0x1f2)]=_0x42416d,this['_renderManagerService']=_0x11e8bf;}[_0xb0c99b(0x4e9)](_0x2ac268){const _0x39e260=_0xb0c99b;this[_0x39e260(0x3e4)](_0x2ac268),this['_transformPreviousActiveRange'](_0x2ac268);}['transformRemoteChangeset'](_0x24d5d2){const _0xdfebe5=_0xb0c99b,{unitID:_0x230e24}=_0x24d5d2,_0x524c48=this['_renderManagerService'][_0xdfebe5(0x44b)](_0x230e24)[_0xdfebe5(0x24a)](w[_0xdfebe5(0x43f)]),{redoCache:_0x43b625}=_0x524c48[_0xdfebe5(0x4c1)]();if(_0x43b625[_0xdfebe5(0x23c)]===0x0)return _0x24d5d2;let _0x528c8c=a[_0xdfebe5(0x286)]['deepClone'](_0x24d5d2[_0xdfebe5(0x4e4)][0x0]);for(let _0x43c8c3=0x0;_0x43c8c3<_0x43b625[_0xdfebe5(0x23c)];_0x43c8c3++){const _0x666fba={'id':_0xdfebe5(0x356),'params':{..._0x43b625[_0x43c8c3]}},_0x346e32=this[_0xdfebe5(0x1f2)][_0xdfebe5(0x327)](_0x528c8c,_0x666fba,!0x1);if(_[_0xdfebe5(0x48b)](_0x346e32))throw _0x346e32[_0xdfebe5(0x4d1)];_0x528c8c=_0x346e32[_0xdfebe5(0x3dc)];}return{...a['Tools'][_0xdfebe5(0xe7)](_0x24d5d2),'mutations':[_0x528c8c]};}[_0xb0c99b(0x3e4)](_0x5789d4){const _0x541d0f=_0xb0c99b,{unitID:_0x5e7fe4}=_0x5789d4,_0x452fcc=this[_0x541d0f(0x285)][_0x541d0f(0x44b)](_0x5e7fe4)[_0x541d0f(0x24a)](w['DocIMEInputManagerService']),{undoCache:_0x10eb2e,redoCache:_0x13c5cd}=_0x452fcc[_0x541d0f(0x4c1)]();if(_0x10eb2e['length']===0x0||_0x13c5cd[_0x541d0f(0x23c)]===0x0)return;const _0x1ede26=[],_0x54b8a5=[];let _0x237dee=a[_0x541d0f(0x286)][_0x541d0f(0xe7)](_0x5789d4['mutations'][0x0]),_0x15b3e6=a[_0x541d0f(0x286)][_0x541d0f(0xe7)](_0x5789d4[_0x541d0f(0x4e4)][0x0]);for(let _0x5b0563=_0x10eb2e[_0x541d0f(0x23c)]-0x1;_0x5b0563>=0x0;_0x5b0563--){const _0x3790bf={'id':_0x541d0f(0x356),'params':{..._0x10eb2e[_0x5b0563]}},_0xb57c09={'id':_0x541d0f(0x356),'params':{..._0x13c5cd[_0x5b0563]}},_0x19bf3e=this['_transformService'][_0x541d0f(0x327)](_0x237dee,_0x3790bf,!0x1),_0x5c154a=this[_0x541d0f(0x1f2)][_0x541d0f(0x327)](_0x15b3e6,_0xb57c09,!0x1);if(_['isTransformMutationFailure'](_0x19bf3e))throw _0x19bf3e[_0x541d0f(0x4d1)];if(_[_0x541d0f(0x48b)](_0x5c154a))throw _0x5c154a[_0x541d0f(0x4d1)];_0x1ede26[_0x541d0f(0x316)](_0x19bf3e[_0x541d0f(0x200)][_0x541d0f(0x2e3)]),_0x54b8a5[_0x541d0f(0x316)](_0x5c154a[_0x541d0f(0x200)][_0x541d0f(0x2e3)]),_0x237dee=_0x19bf3e[_0x541d0f(0x3dc)],_0x15b3e6=_0x5c154a[_0x541d0f(0x3dc)];}_0x452fcc['setUndoRedoMutationParamsCache']({'undoCache':_0x1ede26,'redoCache':_0x54b8a5});}[_0xb0c99b(0x4ad)](_0x390070){const _0x4b3f43=_0xb0c99b,{unitID:_0x163a62}=_0x390070,_0x7d8691=this[_0x4b3f43(0x285)][_0x4b3f43(0x44b)](_0x163a62)[_0x4b3f43(0x24a)](w[_0x4b3f43(0x43f)]),_0x27f77e=_0x7d8691['getActiveRange']();if(_0x27f77e==null)return;const _0x2fdf8c=[{'id':_0x4b3f43(0x356),'params':{'unitId':_0x390070[_0x4b3f43(0x4c3)],'actions':null,'textRanges':[_0x27f77e]}}],_0x107767=this[_0x4b3f43(0x1f2)][_0x4b3f43(0x2d6)](_0x390070,_0x2fdf8c);if(!_[_0x4b3f43(0xf3)](_0x107767))throw _0x107767[_0x4b3f43(0x4d1)];const _0x53e0a2=_0x107767['m2Prime'][0x0]['params']['textRanges'];Array[_0x4b3f43(0x2ed)](_0x53e0a2)&&_0x53e0a2['length']&&_0x7d8691[_0x4b3f43(0x2e0)](_0x53e0a2[0x0]);}};Ie=ps([ye(0x0,a['Inject'](a[_0xb0c99b(0x41a)])),ye(0x1,_[_0xb0c99b(0x37c)]),ye(0x2,R['IRenderManagerService'])],Ie);var Cs=Object[_0xb0c99b(0x3dd)],Es=Object[_0xb0c99b(0x18e)],bs=(_0x208077,_0x36f1b2,_0x48cb08,_0x254feb)=>{const _0x57a860=_0xb0c99b;for(var _0x3ef470=_0x254feb>0x1?void 0x0:_0x254feb?Es(_0x36f1b2,_0x48cb08):_0x36f1b2,_0x3f6424=_0x208077[_0x57a860(0x23c)]-0x1,_0x333ddf;_0x3f6424>=0x0;_0x3f6424--)(_0x333ddf=_0x208077[_0x3f6424])&&(_0x3ef470=(_0x254feb?_0x333ddf(_0x36f1b2,_0x48cb08,_0x3ef470):_0x333ddf(_0x3ef470))||_0x3ef470);return _0x254feb&&_0x3ef470&&Cs(_0x36f1b2,_0x48cb08,_0x3ef470),_0x3ef470;},ae=(_0xe3f988,_0x981f2b)=>(_0x54ea91,_0x1cdd55)=>_0x981f2b(_0x54ea91,_0x1cdd55,_0xe3f988);exports[_0xb0c99b(0x2b9)]=class extends a[_0xb0c99b(0x463)]{constructor(_0x377291,_0x399923,_0x817d49,_0x4673d9,_0x5045ee){const _0x32e1b8=_0xb0c99b;super(),d(this,_0x32e1b8(0x4c4),new Map()),d(this,_0x32e1b8(0x2e9),new Map()),d(this,_0x32e1b8(0x248),!0x1),(this['_configService']=_0x377291,this['_localStorageService']=_0x399923,this[_0x32e1b8(0x2e7)]=_0x817d49,this[_0x32e1b8(0x26d)]=_0x4673d9,this[_0x32e1b8(0x217)]=_0x5045ee,this[_0x32e1b8(0x432)]());}[_0xb0c99b(0x38b)](){const _0x5982f9=_0xb0c99b;this[_0x5982f9(0x248)]=!0x0;}[_0xb0c99b(0x351)](){const _0x1a053a=_0xb0c99b;this[_0x1a053a(0x248)]=!0x1;}[_0xb0c99b(0x11c)](){const _0x4e6dc8=_0xb0c99b;this[_0x4e6dc8(0x438)]()[_0x4e6dc8(0x20e)](()=>super[_0x4e6dc8(0x11c)]());}async[_0xb0c99b(0x4e3)](_0x34baf5){const _0x48e5fe=_0xb0c99b;return this['_disabled']?null:this[_0x48e5fe(0x18d)]['getItem'](Qe(_0x34baf5));}async[_0xb0c99b(0x340)](_0x25849b,_0x794015){const _0xd7f5a7=_0xb0c99b;return!!this[_0xd7f5a7(0x18d)][_0xd7f5a7(0x4a3)](_0x25849b,_0x794015);}['updateOfflineData'](_0x286246,_0xd6c02b,_0x1b0054,_0x1c5c2b){const _0xfcfd5c=_0xb0c99b,_0x39f425=this[_0xfcfd5c(0x217)][_0xfcfd5c(0x2fa)](_0x286246);this[_0xfcfd5c(0x4c4)][_0xfcfd5c(0x4d0)](_0x286246,{'unitID':_0x286246,'type':_0xd6c02b,'awaitingChangeset':_0x1b0054,'mutations':_0x1c5c2b,'rev':_0x39f425}),this[_0xfcfd5c(0x2e9)]['has'](_0x286246)||this[_0xfcfd5c(0x416)](_0x286246);}['_scheduleSaving'](_0x453c70){const _0xa368b8=_0xb0c99b,_0x55de42=this[_0xa368b8(0x4f1)]();_0x55de42===0x0?this[_0xa368b8(0x48e)](_0x453c70):this[_0xa368b8(0x2e9)]['set'](_0x453c70,setTimeout(()=>this[_0xa368b8(0x48e)](_0x453c70),_0x55de42));}[_0xb0c99b(0x4f1)](){const _0x2f0a6a=_0xb0c99b;var _0x3dbe84;return(_0x3dbe84=this[_0x2f0a6a(0x3ec)][_0x2f0a6a(0x2aa)](ft))!=null?_0x3dbe84:Zt;}['_saveCache'](_0x1f126f){const _0x326fa4=_0xb0c99b,_0x31f55a=this['_saveTaskMap'][_0x326fa4(0x1a0)](_0x1f126f);return _0x31f55a!==void 0x0&&window['clearTimeout'](_0x31f55a),this[_0x326fa4(0x18d)][_0x326fa4(0x4a3)](Qe(_0x1f126f),this['_cachedData'][_0x326fa4(0x1a0)](_0x1f126f))[_0x326fa4(0x20e)](()=>this[_0x326fa4(0x2e9)][_0x326fa4(0x456)](_0x1f126f));}async['exhaustSavingTask'](){const _0x2cbe44=_0xb0c99b,_0x1e046f=[];this[_0x2cbe44(0x2e9)][_0x2cbe44(0x1cb)]((_0x298262,_0x14657e)=>{const _0x4989b7=_0x2cbe44;window[_0x4989b7(0x38d)](_0x298262),_0x1e046f[_0x4989b7(0x2da)](this[_0x4989b7(0x48e)](_0x14657e)['then'](()=>{const _0x2e64c9=_0x4989b7;this['_saveTaskMap'][_0x2e64c9(0x456)](_0x14657e);}));}),await Promise[_0x2cbe44(0x4e7)](_0x1e046f);}['_setupBeforeClosingHandler'](){const _0x45f148=_0xb0c99b;this[_0x45f148(0x3d3)](this[_0x45f148(0x2e7)][_0x45f148(0x3ca)](()=>{const _0x2ed9f0=_0x45f148;if(this[_0x2ed9f0(0x2e9)][_0x2ed9f0(0x40e)])return this[_0x2ed9f0(0x26d)]['t'](_0x2ed9f0(0x194));}));}},exports[_0xb0c99b(0x2b9)]=bs([ae(0x0,a[_0xb0c99b(0x195)]),ae(0x1,a[_0xb0c99b(0x273)]),ae(0x2,N[_0xb0c99b(0x221)]),ae(0x3,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),ae(0x4,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)]))],exports[_0xb0c99b(0x2b9)]);function Qe(_0x13d9c1){const _0x50fac0=_0xb0c99b;return _0x50fac0(0x3df)+_0x13d9c1;}var Ts=Object['defineProperty'],Rs=Object['getOwnPropertyDescriptor'],Os=(_0x31f434,_0x1e4ce5,_0x13fabf,_0x2aef68)=>{const _0x4ad737=_0xb0c99b;for(var _0x114012=_0x2aef68>0x1?void 0x0:_0x2aef68?Rs(_0x1e4ce5,_0x13fabf):_0x1e4ce5,_0x10b753=_0x31f434[_0x4ad737(0x23c)]-0x1,_0x4841b6;_0x10b753>=0x0;_0x10b753--)(_0x4841b6=_0x31f434[_0x10b753])&&(_0x114012=(_0x2aef68?_0x4841b6(_0x1e4ce5,_0x13fabf,_0x114012):_0x4841b6(_0x114012))||_0x114012);return _0x2aef68&&_0x114012&&Ts(_0x1e4ce5,_0x13fabf,_0x114012),_0x114012;},Ue=(_0x58a447,_0x33e9a3)=>(_0x2649d6,_0x2ec1d7)=>_0x33e9a3(_0x2649d6,_0x2ec1d7,_0x58a447);function Ds(_0x3420ed){const _0x182451=_0xb0c99b,{unitID:_0x53af49,mutations:_0x2a67a5}=_0x3420ed;return{'unitId':_0x53af49,'subUnitId':_0x2a67a5[0x0][_0x182451(0x2e3)][_0x182451(0x19b)]};}let pe=class{constructor(_0x3c1869,_0x178654,_0x3ecc1f){const _0x58834b=_0xb0c99b;this[_0x58834b(0x12f)]=_0x3c1869,this[_0x58834b(0x1f2)]=_0x178654,this[_0x58834b(0x2a1)]=_0x3ecc1f;}[_0xb0c99b(0x468)](_0x261ad8){const _0xa3dba3=_0xb0c99b;var _0xd971b4,_0x2efa51,_0x246048,_0x7b02b1;const _0xb3a0c9=this[_0xa3dba3(0x12f)][_0xa3dba3(0x1a0)](C['SheetsSelectionsService']),{unitId:_0x27ce67,subUnitId:_0x514254}=Ds(_0x261ad8),_0xde6896=_0xb3a0c9[_0xa3dba3(0x2dc)](_0x27ce67)['getCurrentSelections'](),_0x5ad58d=(_0x2efa51=(_0xd971b4=this['_instanceService']['getUnit'](_0x27ce67))==null?void 0x0:_0xd971b4[_0xa3dba3(0x1ba)]())==null?void 0x0:_0x2efa51['getSheetId']();if(_0xde6896['length']===0x0||!_0x27ce67||!_0x514254)return;const _0xb6f881=[{'id':C[_0xa3dba3(0x40a)]['id'],'params':{'unitId':_0x27ce67,'subUnitId':_0x5ad58d,'selections':a[_0xa3dba3(0x286)]['deepClone'](_0xde6896)}}],_0x190f69=this[_0xa3dba3(0x1f2)][_0xa3dba3(0x2d6)](_0x261ad8,_0xb6f881);if(!_[_0xa3dba3(0xf3)](_0x190f69))throw _0x190f69[_0xa3dba3(0x4d1)];const _0x1e672b=(_0x7b02b1=(_0x246048=_0x190f69[_0xa3dba3(0x200)][0x0])==null?void 0x0:_0x246048[_0xa3dba3(0x2e3)])==null?void 0x0:_0x7b02b1['selections'];Array[_0xa3dba3(0x2ed)](_0x1e672b)&&_0x1e672b[_0xa3dba3(0x23c)]&&this[_0xa3dba3(0x12f)]['get'](a['ICommandService'])['executeCommand'](C[_0xa3dba3(0x40a)]['id'],{'unitId':_0x27ce67,'subUnitId':_0x5ad58d,'selections':_0x1e672b});}};pe=Os([Ue(0x0,a[_0xb0c99b(0x455)](a['Injector'])),Ue(0x1,_['ITransformService']),Ue(0x2,a[_0xb0c99b(0x49b)])],pe);const Te=a[_0xb0c99b(0xe6)]('univer-pro.collaboration-client.single-active-unit-service');var bt=(_0x24c946=>(_0x24c946[_0x24c946[_0xb0c99b(0x20f)]=0x0]=_0xb0c99b(0x20f),_0x24c946[_0x24c946[_0xb0c99b(0x309)]=0x1]=_0xb0c99b(0x309),_0x24c946))(bt||{});const et=0x7530,tt=_0xb0c99b(0x378);class ys extends a[_0xb0c99b(0x463)]{constructor(){const _0x2e81f9=_0xb0c99b;super(),d(this,_0x2e81f9(0x175),a[_0x2e81f9(0x286)][_0x2e81f9(0x36a)]()),d(this,'_selfUnitIDs',new Set()),d(this,_0x2e81f9(0x338),new Map()),d(this,'_heartbeatTimer',null),d(this,_0x2e81f9(0x47d),new Map()),d(this,_0x2e81f9(0x4b3),new Map()),this[_0x2e81f9(0x41f)]();}[_0xb0c99b(0x11c)](){const _0x5b9f9e=_0xb0c99b;super[_0x5b9f9e(0x11c)](),this[_0x5b9f9e(0x47d)][_0x5b9f9e(0x1cb)]((_0x36202b,_0x2b6012)=>this[_0x5b9f9e(0x497)](_0x2b6012)),this[_0x5b9f9e(0x4ea)]&&window['clearInterval'](this[_0x5b9f9e(0x4ea)]);}[_0xb0c99b(0x3e5)](_0x51af76){const _0x34d93d=_0xb0c99b;return this[_0x34d93d(0x10b)](_0x51af76)[_0x34d93d(0x3a7)](v[_0x34d93d(0x49c)]());}[_0xb0c99b(0x491)](_0x43990f){const _0x9f2ed7=_0xb0c99b;this[_0x9f2ed7(0x119)]['size']===0x0&&this[_0x9f2ed7(0x1db)](),this[_0x9f2ed7(0x119)][_0x9f2ed7(0x143)](_0x43990f),this['_send']({'type':0x0,'memberID':this[_0x9f2ed7(0x175)],'unitIDs':[_0x43990f],'isForwarded':!0x1});}[_0xb0c99b(0x1fc)](_0x41c7dc){const _0x583c17=_0xb0c99b;this['_selfUnitIDs'][_0x583c17(0x456)](_0x41c7dc),this[_0x583c17(0x119)][_0x583c17(0x40e)]===0x0&&this[_0x583c17(0x4ea)]&&window[_0x583c17(0x4a8)](this['_heartbeatTimer']);}[_0xb0c99b(0x41f)](){const _0x4ab484=_0xb0c99b;this['disposeWithMe'](a[_0x4ab484(0x2ef)](v['fromEvent'](window,_0x4ab484(0x181))[_0x4ab484(0x33b)](_0x15f150=>{const _0x334f06=_0x4ab484;if(_0x15f150[_0x334f06(0x22b)]!==tt||!_0x15f150[_0x334f06(0x4bc)])return;const _0x4b7c7b=JSON['parse'](_0x15f150[_0x334f06(0x4bc)]);this[_0x334f06(0x406)](_0x4b7c7b);}))),window[_0x4ab484(0x4e2)](_0x4ab484(0x22c),()=>this[_0x4ab484(0x329)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4ab484(0x4da)](this[_0x4ab484(0x119)])}));}[_0xb0c99b(0x406)](_0x52f590){const _0x4f777d=_0xb0c99b;switch(_0x52f590[_0x4f777d(0x498)]){case 0x0:this['_handleJoinEvent'](_0x52f590);break;case 0x1:this[_0x4f777d(0x4f0)](_0x52f590);break;case 0x2:this[_0x4f777d(0x3c9)](_0x52f590);break;}}[_0xb0c99b(0x4a0)](_0x4bac7a){const _0x3ac378=_0xb0c99b,{unitIDs:_0x49ec8c,memberID:_0x1fb1a6,isForwarded:_0x1a3baf}=_0x4bac7a;_0x49ec8c[_0x3ac378(0x1cb)](_0x48dbbf=>{const _0x5262ed=_0x3ac378;if(!_0x1a3baf&&this[_0x5262ed(0x338)][_0x5262ed(0x191)](_0x48dbbf)&&this[_0x5262ed(0x10b)](_0x48dbbf)[_0x5262ed(0x3c7)](0x1),!this['_unitOnClients'][_0x5262ed(0x191)](_0x48dbbf)||!this[_0x5262ed(0x338)][_0x5262ed(0x1a0)](_0x48dbbf)[_0x5262ed(0x191)](_0x1fb1a6)){const _0x243ede=this[_0x5262ed(0x338)][_0x5262ed(0x1a0)](_0x48dbbf)||new Set();_0x243ede[_0x5262ed(0x143)](_0x1fb1a6),this[_0x5262ed(0x338)]['set'](_0x48dbbf,_0x243ede),this[_0x5262ed(0x488)](_0x1fb1a6);}}),_0x1a3baf||this[_0x3ac378(0x329)]({'type':0x0,'memberID':this[_0x3ac378(0x175)],'unitIDs':[...this[_0x3ac378(0x119)]],'isForwarded':!0x0});}[_0xb0c99b(0x488)](_0x565533){const _0x40858d=_0xb0c99b;this['_removeClearOtherTimer'](_0x565533);const _0x32dcd5=window['setTimeout'](()=>{const _0x4e764f=_0x4e0f;this[_0x4e764f(0x338)][_0x4e764f(0x1cb)](_0xae9da0=>{const _0x467493=_0x4e764f;_0xae9da0[_0x467493(0x456)](_0x565533);});},et*0x2);this[_0x40858d(0x47d)][_0x40858d(0x4d0)](_0x565533,_0x32dcd5);}[_0xb0c99b(0x497)](_0x5b8996){const _0x452161=_0xb0c99b;if(this[_0x452161(0x47d)][_0x452161(0x191)](_0x5b8996)){const _0x14c480=this[_0x452161(0x47d)][_0x452161(0x1a0)](_0x5b8996);_0x14c480&&window['clearTimeout'](_0x14c480),this[_0x452161(0x47d)][_0x452161(0x4d0)](_0x5b8996,null);}}[_0xb0c99b(0x4f0)](_0x1cdd44){const {memberID:_0x317d59,unitIDs:_0x4bc616}=_0x1cdd44;_0x4bc616['forEach'](_0x40f2a8=>{const _0x35a146=_0x4e0f;var _0x130fc5;const _0x45cbc5=this[_0x35a146(0x338)]['get'](_0x40f2a8);_0x45cbc5&&(_0x45cbc5[_0x35a146(0x456)](_0x317d59),(_0x130fc5=this[_0x35a146(0x10b)](_0x40f2a8))==null||_0x130fc5[_0x35a146(0x3c7)](_0x45cbc5[_0x35a146(0x40e)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x317d59);}[_0xb0c99b(0x3c9)](_0x45788c){const _0x1d85ea=_0xb0c99b;this[_0x1d85ea(0x488)](_0x45788c[_0x1d85ea(0x37a)]);}[_0xb0c99b(0x329)](_0x46cc4b){const _0x3f530a=_0xb0c99b;localStorage['setItem'](tt,JSON[_0x3f530a(0x36d)](_0x46cc4b));}[_0xb0c99b(0x1db)](){const _0x44a6d9=_0xb0c99b;this[_0x44a6d9(0x4ea)]=window['setInterval'](()=>{const _0x499fde=_0x44a6d9;this[_0x499fde(0x329)]({'type':0x2,'memberID':this[_0x499fde(0x175)]});},et);}['_ensureSubject'](_0x52b568){const _0x555921=_0xb0c99b;return this[_0x555921(0x4b3)][_0x555921(0x191)](_0x52b568)||this[_0x555921(0x4b3)][_0x555921(0x4d0)](_0x52b568,new v[(_0x555921(0x4b1))](0x0)),this['_unitStatus'][_0x555921(0x1a0)](_0x52b568);}}function Tt(_0x228268){const _0x297dc4=_0xb0c99b;let _0x23607c='';for(const _0x1d0d5b of _0x228268){const {startOffset:_0x30237f,endOffset:_0x2332c4,isActive:_0x520ead}=_0x1d0d5b;_0x23607c[_0x297dc4(0x23c)]&&(_0x23607c+=','),_0x23607c+=_0x30237f+':'+_0x2332c4+':'+(_0x520ead?'1':'0');}return _0x23607c;}function Us(_0x504242){const _0x3e6f03=_0xb0c99b,_0x23561b=_0x504242[_0x3e6f03(0x121)](','),_0xbe6e84=[];for(const _0x109a6b of _0x23561b){const [_0x3d7cd0,_0x2d3924,_0x483128]=_0x109a6b['split'](':');_0xbe6e84['push']({'startOffset':Number(_0x3d7cd0),'endOffset':Number(_0x2d3924),'collapsed':_0x3d7cd0===_0x2d3924,'isActive':_0x483128==='1'});}return _0xbe6e84[_0x3e6f03(0x1d5)](_0x28aac2=>_0x28aac2[_0x3e6f03(0x388)])||(_0xbe6e84[0x0]['isActive']=!0x0),_0xbe6e84;}class Ye extends a[_0xb0c99b(0x3c1)]{constructor(){const _0x55d7dd=_0xb0c99b;super(...arguments),d(this,_0x55d7dd(0x2cb),new v[(_0x55d7dd(0x4b1))](null)),d(this,_0x55d7dd(0x185),this[_0x55d7dd(0x2cb)]['asObservable']());}[_0xb0c99b(0x13f)](_0x369f46){const _0x1277fe=_0xb0c99b,{unitID:_0x4183f2,memberID:_0x178d7d,textRanges:_0x527aa7}=_0x369f46,_0x1ac9b5=Tt(_0x527aa7),_0x38f5bd={'unitID':_0x4183f2,'memberID':_0x178d7d,'selection':_0x1ac9b5};this[_0x1277fe(0x2cb)][_0x1277fe(0x3c7)](_0x38f5bd);}}var Ps=Object['defineProperty'],ws=Object['getOwnPropertyDescriptor'],Ms=(_0x4f07ee,_0x2a4373,_0xd1cd7,_0x493517)=>{const _0x5d7ae0=_0xb0c99b;for(var _0x5848e6=_0x493517>0x1?void 0x0:_0x493517?ws(_0x2a4373,_0xd1cd7):_0x2a4373,_0x5879ad=_0x4f07ee[_0x5d7ae0(0x23c)]-0x1,_0x170a70;_0x5879ad>=0x0;_0x5879ad--)(_0x170a70=_0x4f07ee[_0x5879ad])&&(_0x5848e6=(_0x493517?_0x170a70(_0x2a4373,_0xd1cd7,_0x5848e6):_0x170a70(_0x5848e6))||_0x5848e6);return _0x493517&&_0x5848e6&&Ps(_0x2a4373,_0xd1cd7,_0x5848e6),_0x5848e6;},st=(_0x3e179a,_0x613ef5)=>(_0x9554d3,_0x26341f)=>_0x613ef5(_0x9554d3,_0x26341f,_0x3e179a);let Ce=class{constructor(_0x120579,_0x2bac3e){const _0x3df009=_0xb0c99b;this[_0x3df009(0x12f)]=_0x120579,this[_0x3df009(0x1f2)]=_0x2bac3e;}[_0xb0c99b(0x468)](_0x37364a){const _0x5daddf=_0xb0c99b;var _0x28e584;const _0x3ad24b=this[_0x5daddf(0x12f)]['get'](V[_0x5daddf(0x1b0)]),_0x18712d=(_0x28e584=_0x3ad24b[_0x5daddf(0x132)]())!=null?_0x28e584:[];if(_0x18712d['length']===0x0)return;const _0x253dbf=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x37364a[_0x5daddf(0x4c3)],'actions':null,'textRanges':_0x18712d}}],_0x3522a4=this[_0x5daddf(0x1f2)][_0x5daddf(0x2d6)](_0x37364a,_0x253dbf);if(!_[_0x5daddf(0xf3)](_0x3522a4))throw _0x3522a4[_0x5daddf(0x4d1)];const _0x57a957=_0x3522a4[_0x5daddf(0x200)][0x0][_0x5daddf(0x2e3)]['textRanges'];Array[_0x5daddf(0x2ed)](_0x57a957)&&_0x57a957[_0x5daddf(0x23c)]&&_0x3ad24b[_0x5daddf(0x32c)](_0x57a957,!0x1);}};Ce=Ms([st(0x0,a[_0xb0c99b(0x455)](a['Injector'])),st(0x1,_['ITransformService'])],Ce);const Ns=new Set([C[_0xb0c99b(0x198)]['id']]);function it(_0x548a10,_0x31c9d3,_0xbb3092,_0x383d57,_0x4d0b87){const _0x2b6501=_0xb0c99b;var _0x2ada3e,_0x500e0d,_0x64c9cb,_0x346f7d;const _0x2e4d25=[];for(const _0x3f0be6 of _0x548a10)if(Ns[_0x2b6501(0x191)](_0x3f0be6['id'])){if(_0x2e4d25['length']>0x0)break;_0x2e4d25[_0x2b6501(0x2da)](_0x3f0be6);break;}else _0x2e4d25['push'](_0x3f0be6);const _0x3e942c=(_0x500e0d=(_0x2ada3e=_0x4d0b87[_0x2b6501(0x348)]())==null?void 0x0:_0x2ada3e['userID'])!=null?_0x500e0d:'unknown',_0x2249fa=(_0x346f7d=(_0x64c9cb=_0x4d0b87[_0x2b6501(0x348)]())==null?void 0x0:_0x64c9cb[_0x2b6501(0x37a)])!=null?_0x346f7d:_0x2b6501(0x206);return{'changeset':{'unitID':_0x31c9d3,'type':_[_0x2b6501(0x287)](_0xbb3092['getUnitType'](_0x31c9d3)),'baseRev':_0x383d57[_0x2b6501(0x2fa)](_0x31c9d3),'revision':0x0,'userID':_0x3e942c,'memberID':_0x2249fa,'mutations':_0x2e4d25},'pendingMutations':_0x548a10['slice'](_0x2e4d25[_0x2b6501(0x23c)])};}function Ls(_0x79d85,_0x1a077b,_0x5ac338,_0x31ed75,_0x59b4a1){const _0x52f857=_0xb0c99b;var _0x57290e,_0x19233e,_0x3bcc6b,_0x7c1450;const _0x54872a=[_0x79d85[_0x52f857(0x4a5)]((_0x1e4b55,_0x545543)=>{const _0x211b5=_0x52f857;var _0x37be25;const {id:_0x129363}=_0x1e4b55,{id:_0x53d7e4,type:_0xc51594}=_0x545543,_0x18a1ff=(_0x37be25=_0x1e4b55[_0x211b5(0x2e3)])!=null?_0x37be25:{'actions':null},_0x1309cf=_0x545543[_0x211b5(0x2e3)];if(_0x129363&&_0x129363!==_0x53d7e4)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x129363+_0x211b5(0x473)+_0x53d7e4+'.');return{..._0x1e4b55,'id':_0x53d7e4,'type':_0xc51594,'params':{'unitId':_0x1309cf['unitId'],'textRanges':_0x1309cf['textRanges'],'actions':a[_0x211b5(0x264)][_0x211b5(0x298)](_0x18a1ff[_0x211b5(0xff)],_0x1309cf[_0x211b5(0xff)])}};},{})],_0x4bb2ae=(_0x19233e=(_0x57290e=_0x59b4a1[_0x52f857(0x348)]())==null?void 0x0:_0x57290e[_0x52f857(0x2d7)])!=null?_0x19233e:_0x52f857(0x206),_0xa63dde=(_0x7c1450=(_0x3bcc6b=_0x59b4a1[_0x52f857(0x348)]())==null?void 0x0:_0x3bcc6b[_0x52f857(0x37a)])!=null?_0x7c1450:_0x52f857(0x206);return{'changeset':{'unitID':_0x1a077b,'type':_[_0x52f857(0x287)](_0x5ac338[_0x52f857(0x2ab)](_0x1a077b)),'baseRev':_0x31ed75['getCurrentRevOfUnit'](_0x1a077b),'revision':0x0,'userID':_0x4bb2ae,'memberID':_0xa63dde,'mutations':_0x54872a},'pendingMutations':[]};}const As={'id':C[_0xb0c99b(0x44c)]['id'],'type':a[_0xb0c99b(0x1a2)][_0xb0c99b(0x293)],'params':{}};var $s=Object[_0xb0c99b(0x3dd)],js=Object['getOwnPropertyDescriptor'],z=(_0x290628,_0x140302,_0x4ef47b,_0x4e39d4)=>{const _0x3dbc43=_0xb0c99b;for(var _0x506cc0=_0x4e39d4>0x1?void 0x0:_0x4e39d4?js(_0x140302,_0x4ef47b):_0x140302,_0x16567b=_0x290628[_0x3dbc43(0x23c)]-0x1,_0x36e342;_0x16567b>=0x0;_0x16567b--)(_0x36e342=_0x290628[_0x16567b])&&(_0x506cc0=(_0x4e39d4?_0x36e342(_0x140302,_0x4ef47b,_0x506cc0):_0x36e342(_0x506cc0))||_0x506cc0);return _0x4e39d4&&_0x506cc0&&$s(_0x140302,_0x4ef47b,_0x506cc0),_0x506cc0;},g=(_0x5116ea,_0x188007)=>(_0xc31149,_0x58cbde)=>_0x188007(_0xc31149,_0x58cbde,_0x5116ea),y=(_0x3eb1c5=>(_0x3eb1c5[_0xb0c99b(0x3eb)]=_0xb0c99b(0xe9),_0x3eb1c5[_0xb0c99b(0x2c2)]=_0xb0c99b(0x46f),_0x3eb1c5[_0xb0c99b(0x256)]=_0xb0c99b(0x3f6),_0x3eb1c5[_0xb0c99b(0x1b4)]=_0xb0c99b(0x21a),_0x3eb1c5[_0xb0c99b(0x3de)]='awaiting_with_pending',_0x3eb1c5[_0xb0c99b(0x3d9)]=_0xb0c99b(0x454),_0x3eb1c5[_0xb0c99b(0x229)]=_0xb0c99b(0x244),_0x3eb1c5[_0xb0c99b(0x4ed)]=_0xb0c99b(0x1b8),_0x3eb1c5))(y||{});class J{constructor(_0x3f9add,_0x2d8087,_0x4a2f05,_0x4c4fe8,_0x164d1a,_0x2bb6a5,_0x245fc5,_0x1b5562,_0x2c3812){const _0x470ced=_0xb0c99b;d(this,_0x470ced(0x492),null),d(this,_0x470ced(0x3a8),[]),(this[_0x470ced(0x4c3)]=_0x3f9add,this['type']=_0x2d8087,this[_0x470ced(0xfc)]=_0x164d1a,this['_commandService']=_0x2bb6a5,this[_0x470ced(0x4c7)]=_0x245fc5,this[_0x470ced(0x217)]=_0x1b5562,this[_0x470ced(0x40b)]=_0x2c3812,this['_awaitingChangeset']=_0x4a2f05,this[_0x470ced(0x3a8)]=_0x4c4fe8);}[_0xb0c99b(0x39c)](_0x7d0f5f){const _0x10a3c7=_0xb0c99b,_0x11dfb9=this[_0x10a3c7(0x217)]['getCurrentRevOfUnit'](this[_0x10a3c7(0x4c3)]);return _0x7d0f5f[_0x10a3c7(0x1b9)]>_0x11dfb9+0x1?(this[_0x10a3c7(0xfc)][_0x10a3c7(0x459)]({'from':_0x11dfb9,'to':_0x7d0f5f[_0x10a3c7(0x1b9)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x3817b0){const _0x59408c=_0xb0c99b;this[_0x59408c(0x4c7)]['transformUndoRedo'](this[_0x59408c(0x4c3)],_0x3817b0);}[_0xb0c99b(0x124)](_0x150a28){const _0xbb0ef7=_0xb0c99b;var _0x360b66,_0x2b8228;(_0x2b8228=(_0x360b66=this[_0xbb0ef7(0xfc)])[_0xbb0ef7(0x1e4)])==null||_0x2b8228[_0xbb0ef7(0x2f5)](_0x360b66,_0x150a28);}[_0xb0c99b(0x225)](_0x4bee9e){const _0x1916c3=_0xb0c99b;var _0x5aaade,_0x2a2cb0;return(_0x2a2cb0=(_0x5aaade=this['_handler'])[_0x1916c3(0x1f6)])==null?void 0x0:_0x2a2cb0[_0x1916c3(0x2f5)](_0x5aaade,_0x4bee9e);}['_transformRemoteChangesetByIMECache'](_0x3b1b2c){const _0x121751=_0xb0c99b;var _0x35c944,_0x17828d,_0x41cd65;return(_0x41cd65=(_0x17828d=(_0x35c944=this[_0x121751(0xfc)])[_0x121751(0x2f3)])==null?void 0x0:_0x17828d[_0x121751(0x2f5)](_0x35c944,_0x3b1b2c))!=null?_0x41cd65:_0x3b1b2c;}[_0xb0c99b(0x381)](_0x477bb3){const _0xd0c8eb=_0xb0c99b;var _0xd45f2e,_0x999414;if(this[_0xd0c8eb(0x498)]===$['UNIVER_DOC']){const {unitID:_0x788b47,mutations:_0x199538,memberID:_0x5828a1}=_0x477bb3,_0x17ca7e=_0x199538[0x0]['params'][_0xd0c8eb(0x422)];Array[_0xd0c8eb(0x2ed)](_0x17ca7e)&&_0x17ca7e['length']>0x0&&((_0x999414=(_0xd45f2e=this[_0xd0c8eb(0xfc)])[_0xd0c8eb(0x317)])==null||_0x999414[_0xd0c8eb(0x2f5)](_0xd45f2e,{'unitID':_0x788b47,'memberID':_0x5828a1,'textRanges':_0x17ca7e}));}}['_updateLocalCache'](){const _0xfcf5af=_0xb0c99b;this[_0xfcf5af(0x40b)][_0xfcf5af(0x4c5)](this[_0xfcf5af(0x4c3)],this[_0xfcf5af(0x498)],this[_0xfcf5af(0x492)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x5b2dad=_0xb0c99b;return this[_0x5b2dad(0x217)][_0x5b2dad(0x2fa)](this[_0x5b2dad(0x4c3)]);}[_0xb0c99b(0x2cc)](){const _0xc86671=_0xb0c99b;this[_0xc86671(0x217)][_0xc86671(0x1c3)](this[_0xc86671(0x4c3)]);}['_executeRemoteChangeset'](_0xbf66b){const _0x3e3ee2=_0xb0c99b;var _0x46aee2;const _0x1bff77=this[_0x3e3ee2(0x20c)](_0xbf66b),_0x184db8=a[_0x3e3ee2(0x215)](_0x1bff77[_0x3e3ee2(0x4e4)],this[_0x3e3ee2(0x425)],{'fromCollab':!0x0});if(!_0x184db8[_0x3e3ee2(0x137)])throw _0x184db8['error']instanceof Error?_0x184db8[_0x3e3ee2(0x4d1)]:new Error((_0x46aee2=_0x184db8[_0x3e3ee2(0x4d1)])!=null?_0x46aee2:_0x3e3ee2(0x1f5));this[_0x3e3ee2(0x225)](_0x1bff77),this[_0x3e3ee2(0x2f9)](_0xbf66b),this[_0x3e3ee2(0x124)](_0x1bff77),this[_0x3e3ee2(0x381)](_0x1bff77),this[_0x3e3ee2(0x2cc)]();}}let ie=class extends J{constructor(_0xe73905,_0x2f57b0,_0x2a5c7f,_0x3cff7e,_0x2ee7a9,_0x1e6ebf,_0x3a5e0f,_0x534f01,_0x180b17,_0x6e2cd8){const _0x4df734=_0xb0c99b;super(_0xe73905,_0x2f57b0,null,[],_0x2a5c7f,_0x534f01,_0x3a5e0f,_0x3cff7e,_0x2ee7a9),d(this,'status',_0x4df734(0x46f)),(this[_0x4df734(0x12f)]=_0x1e6ebf,this[_0x4df734(0x3cd)]=_0x180b17,this[_0x4df734(0x1f2)]=_0x6e2cd8);}['appendMutation'](_0x3b8aab){const _0x10d355=_0xb0c99b,_0x39e83d=this['_injector'][_0x10d355(0x29b)](x,this['unitID'],this['type'],[_0x3b8aab],this[_0x10d355(0xfc)]);return _0x39e83d[_0x10d355(0x129)](),_0x39e83d[_0x10d355(0x142)](),_0x39e83d;}[_0xb0c99b(0x27d)](_0x3f4f5d){const _0xa9a610=_0xb0c99b;if(this['_checkMissing'](_0x3f4f5d))return this['_injector'][_0xa9a610(0x29b)](H,this[_0xa9a610(0x4c3)],this['type'],null,[],null,[_0x3f4f5d],this['_handler']);try{const _0x4478ce=this[_0xa9a610(0x1f2)][_0xa9a610(0x2d6)](_0x3f4f5d,[As]);if(_[_0xa9a610(0xf3)](_0x4478ce)){const {c1Prime:_0x561355}=_0x4478ce;return this[_0xa9a610(0x3e2)](_0x561355),this;}throw _0x4478ce['error'];}catch(_0x203ee0){return this[_0xa9a610(0x3cd)]['error'](_0x203ee0),this[_0xa9a610(0x1dd)](!0x1);}}['_onConflict'](_0x3e0a61){const _0x48f2b9=_0xb0c99b;return this[_0x48f2b9(0x12f)]['createInstance'](F,this[_0x48f2b9(0x4c3)],this[_0x48f2b9(0x498)],null,[],this[_0x48f2b9(0xfc)],_0x3e0a61);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0xb0c99b(0x3aa)](){const _0x2a57cc=_0xb0c99b;throw new Error(_0x2a57cc(0x2e5));}['toggleOffline'](){const _0x2a6ef2=_0xb0c99b;return this[_0x2a6ef2(0x12f)][_0x2a6ef2(0x29b)](G,this['unitID'],this['type'],null,[],this[_0x2a6ef2(0xfc)]);}[_0xb0c99b(0x222)](){return this;}[_0xb0c99b(0x1b7)](){const _0x172966=_0xb0c99b;throw new Error(_0x172966(0x3a9));}[_0xb0c99b(0x3a0)](){const _0x51bec3=_0xb0c99b,_0xf45625=this[_0x51bec3(0x217)]['getCurrentRevOfUnit'](this['unitID']);return this['_handler']['onMissingChangesets']({'from':_0xf45625,'to':0x0}),this['_injector'][_0x51bec3(0x29b)](H,this[_0x51bec3(0x4c3)],this[_0x51bec3(0x498)],null,[],null,[],this[_0x51bec3(0xfc)]);}};ie=z([g(0x3,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x4,a['Inject'](exports['LocalCacheService'])),g(0x5,a[_0xb0c99b(0x455)](a['Injector'])),g(0x6,a['IUndoRedoService']),g(0x7,a[_0xb0c99b(0x47e)]),g(0x8,a[_0xb0c99b(0x2b2)]),g(0x9,_[_0xb0c99b(0x37c)])],ie);let x=class extends J{constructor(_0x2d1e46,_0x4ef925,_0x5bc021,_0x213997,_0x4ff8db,_0x5ac162,_0x238d5b,_0x28c761,_0x20d48a,_0x4b4fa7,_0x3002ea,_0x495bcf,_0x4319cc,_0x504bca){const _0x28b52c=_0xb0c99b;super(_0x2d1e46,_0x4ef925,null,_0x5bc021,_0x213997,_0x4b4fa7,_0x504bca,_0x5ac162,_0x238d5b),d(this,'status',_0x28b52c(0x3f6)),d(this,_0x28b52c(0x49a),null),d(this,_0x28b52c(0x44a),null),(this[_0x28b52c(0x12f)]=_0x4ff8db,this[_0x28b52c(0x3f3)]=_0x28c761,this['_logService']=_0x20d48a,this[_0x28b52c(0x3ec)]=_0x3002ea,this[_0x28b52c(0x1f2)]=_0x495bcf,this[_0x28b52c(0x3fb)]=_0x4319cc);}[_0xb0c99b(0x453)](_0x4c4535){const _0x2874f0=_0xb0c99b;return this[_0x2874f0(0x3a8)][_0x2874f0(0x2da)](_0x4c4535),this[_0x2874f0(0x142)](),this;}[_0xb0c99b(0x27d)](_0xeb42b5){const _0x2c624d=_0xb0c99b;if(this['_checkMissing'](_0xeb42b5))return this[_0x2c624d(0x461)](),this[_0x2c624d(0x12f)][_0x2c624d(0x29b)](H,this[_0x2c624d(0x4c3)],this[_0x2c624d(0x498)],null,this[_0x2c624d(0x3a8)],null,[_0xeb42b5],this['_handler']);try{const _0x42aa11=this['_transformService'][_0x2c624d(0x2d6)](_0xeb42b5,this[_0x2c624d(0x3a8)]);if(_[_0x2c624d(0xf3)](_0x42aa11)){const {c1Prime:_0xadf96f,m2Prime:_0x427ead}=_0x42aa11;this[_0x2c624d(0x3e2)](_0xadf96f);const _0x27df70=this[_0x2c624d(0x12f)][_0x2c624d(0x29b)](x,this[_0x2c624d(0x4c3)],this[_0x2c624d(0x498)],_0x427ead,this['_handler']);return this[_0x2c624d(0x461)](),_0x27df70['_schedule'](this[_0x2c624d(0x49a)]?Math[_0x2c624d(0x452)](0x0,new Date()[_0x2c624d(0x1b3)]()-this[_0x2c624d(0x49a)]):this[_0x2c624d(0x43c)]()),_0x27df70;}throw _0x42aa11[_0x2c624d(0x4d1)];}catch(_0xbe29a3){return this[_0x2c624d(0x3cd)]['error'](_0xbe29a3),this['_onConflict'](!0x1);}}[_0xb0c99b(0x390)](){const _0x58f005=_0xb0c99b;throw new Error(_0x58f005(0xf1));}['onRemoteRej'](){const _0xac8497=_0xb0c99b;throw new Error(_0xac8497(0x177));}[_0xb0c99b(0x4cb)](){const _0x369dcf=_0xb0c99b;return this[_0x369dcf(0x461)](),this[_0x369dcf(0x12f)][_0x369dcf(0x29b)](G,this[_0x369dcf(0x4c3)],this['type'],null,this[_0x369dcf(0x3a8)],this[_0x369dcf(0xfc)]);}['toggleOnline'](){return this;}['_schedule'](_0x5ce163){const _0x49828a=_0xb0c99b,_0x373465=_0x5ce163!=null?_0x5ce163:this[_0x49828a(0x43c)]();this[_0x49828a(0x49a)]=new Date()[_0x49828a(0x1b3)](),this[_0x49828a(0x44a)]=window[_0x49828a(0x2f0)](()=>{const _0x394ce3=_0x49828a;this['_clearScheduledTask']();let _0x23ddab=null;switch(this[_0x394ce3(0x498)]){case $['UNIVER_SHEET']:{_0x23ddab=it(this['_pendingMutations'],this[_0x394ce3(0x4c3)],this[_0x394ce3(0x3fb)],this[_0x394ce3(0x217)],this['_memberService']);break;}case $[_0x394ce3(0x254)]:{this['_pendingMutations']['every'](_0xbb8cf1=>_0xbb8cf1['id']===V[_0x394ce3(0x396)]['id'])?_0x23ddab=Ls(this[_0x394ce3(0x3a8)],this[_0x394ce3(0x4c3)],this[_0x394ce3(0x3fb)],this[_0x394ce3(0x217)],this[_0x394ce3(0x3f3)]):_0x23ddab=it(this[_0x394ce3(0x3a8)],this[_0x394ce3(0x4c3)],this[_0x394ce3(0x3fb)],this[_0x394ce3(0x217)],this['_memberService']);break;}default:throw new Error(_0x394ce3(0x439)+this[_0x394ce3(0x498)]+_0x394ce3(0x168));}const {changeset:_0x2237f0,pendingMutations:_0x1a49e8}=_0x23ddab;this[_0x394ce3(0xfc)]['onSendChangeset'](_0x2237f0);const _0x576f54=_0x1a49e8[_0x394ce3(0x23c)]?this[_0x394ce3(0x12f)][_0x394ce3(0x29b)](k,this[_0x394ce3(0x4c3)],this[_0x394ce3(0x498)],_0x2237f0,_0x1a49e8,this[_0x394ce3(0xfc)]):this[_0x394ce3(0x12f)][_0x394ce3(0x29b)](W,this['unitID'],this[_0x394ce3(0x498)],_0x2237f0,this[_0x394ce3(0xfc)]);_0x576f54[_0x394ce3(0x142)](),this[_0x394ce3(0xfc)][_0x394ce3(0x2bc)](this,_0x576f54);},_0x373465);}['_getSendChangesetTimeout'](){const _0x283508=_0xb0c99b;var _0x5ebea2;const _0x1079f7=this[_0x283508(0x3ec)]['getConfig'](L);return(_0x5ebea2=_0x1079f7==null?void 0x0:_0x1079f7[_0x283508(0x252)])!=null?_0x5ebea2:Kt;}[_0xb0c99b(0x1b7)](){const _0x599eca=_0xb0c99b;throw new Error(_0x599eca(0x429));}['_clearScheduledTask'](){const _0x40a839=_0xb0c99b;this['_sendingTimer']!=null&&(clearTimeout(this[_0x40a839(0x44a)]),this[_0x40a839(0x44a)]=null);}['_onConflict'](_0x402ef2){const _0x58d177=_0xb0c99b;return this[_0x58d177(0x461)](),this[_0x58d177(0x12f)]['createInstance'](F,this[_0x58d177(0x4c3)],this['type'],null,this[_0x58d177(0x3a8)],this[_0x58d177(0xfc)],_0x402ef2);}};x=z([g(0x4,a[_0xb0c99b(0x455)](a['Injector'])),g(0x5,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x6,a['Inject'](exports[_0xb0c99b(0x2b9)])),g(0x7,a[_0xb0c99b(0x455)](q)),g(0x8,a['ILogService']),g(0x9,a[_0xb0c99b(0x47e)]),g(0xa,a[_0xb0c99b(0x195)]),g(0xb,_['ITransformService']),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0xb0c99b(0x395)])],x);let W=class extends J{constructor(_0x504226,_0x1f609b,_0x162231,_0xd234ae,_0xd6b262,_0x17622e,_0x4e9dfb,_0x21a5ea,_0x4322ea,_0x36bdfc,_0x10de33){const _0x3fcbde=_0xb0c99b;super(_0x504226,_0x1f609b,_0x162231,[],_0xd234ae,_0x21a5ea,_0x10de33,_0x17622e,_0x4e9dfb),d(this,'status',_0x3fcbde(0x21a)),(this[_0x3fcbde(0x12f)]=_0xd6b262,this[_0x3fcbde(0x3cd)]=_0x4322ea,this[_0x3fcbde(0x1f2)]=_0x36bdfc);}[_0xb0c99b(0x453)](_0x40d8a2){const _0x4bddac=_0xb0c99b,_0x35c4d0=this[_0x4bddac(0x12f)][_0x4bddac(0x29b)](k,this[_0x4bddac(0x4c3)],this[_0x4bddac(0x498)],this[_0x4bddac(0x492)],[_0x40d8a2],this[_0x4bddac(0xfc)]);return _0x35c4d0[_0x4bddac(0x142)](),_0x35c4d0;}[_0xb0c99b(0x27d)](_0x6a386e){const _0x1099c9=_0xb0c99b;if(this[_0x1099c9(0x39c)](_0x6a386e))return this['_injector'][_0x1099c9(0x29b)](H,this[_0x1099c9(0x4c3)],this['type'],this[_0x1099c9(0x492)],[],null,[_0x6a386e],this['_handler']);try{const _0x5d6eaf=this[_0x1099c9(0x1f2)][_0x1099c9(0x35a)]([_0x6a386e],[this['_awaitingChangeset']],!0x1);if(_[_0x1099c9(0x102)](_0x5d6eaf)){const {c1Prime:_0x5dd40a,c2Prime:_0x2b98aa}=_0x5d6eaf;this['_executeRemoteChangeset'](_0x5dd40a[0x0]),_0x2b98aa[0x0]['baseRev']=this[_0x1099c9(0x258)]();const _0x3d20b4=this[_0x1099c9(0x12f)][_0x1099c9(0x29b)](W,this['unitID'],this['type'],_0x2b98aa[0x0],this[_0x1099c9(0xfc)]);return _0x3d20b4[_0x1099c9(0x142)](),_0x3d20b4;}return this[_0x1099c9(0x1dd)](!0x1);}catch(_0x5add5d){return this[_0x1099c9(0x3cd)][_0x1099c9(0x4d1)](_0x5add5d),this['_onConflict'](!0x1);}}[_0xb0c99b(0x390)](_0x1d8451){const _0x410447=_0xb0c99b,_0x2ee2d5=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);if(_0x1d8451[_0x410447(0x1b9)]<_0x2ee2d5-0x1)return this;if(this['_checkMissing'](_0x1d8451))return this[_0x410447(0x12f)][_0x410447(0x29b)](H,this['unitID'],this['type'],null,[],this[_0x410447(0x492)],[],this[_0x410447(0xfc)]);this['_incrementRevisionNumber']();const _0x10ec37=this[_0x410447(0x12f)][_0x410447(0x29b)](ie,this['unitID'],this['type'],this[_0x410447(0xfc)]);return _0x10ec37[_0x410447(0x142)](),_0x10ec37;}[_0xb0c99b(0x3aa)](_0xce8d7d){const _0x29da3d=_0xb0c99b;return this['_onConflict'](!!(_0xce8d7d!=null&&_0xce8d7d[_0x29da3d(0x2ce)]));}[_0xb0c99b(0x4cb)](){const _0x53f9a8=_0xb0c99b;return this[_0x53f9a8(0x12f)][_0x53f9a8(0x29b)](G,this['unitID'],this['type'],this[_0x53f9a8(0x492)],[],this[_0x53f9a8(0xfc)]);}[_0xb0c99b(0x222)](){return this;}[_0xb0c99b(0x1b7)](){const _0xc2ed12=_0xb0c99b;this[_0xc2ed12(0xfc)][_0xc2ed12(0x1c5)](this[_0xc2ed12(0x492)]);}['_onConflict'](_0x389ec4){const _0xac15da=_0xb0c99b;return this[_0xac15da(0x12f)][_0xac15da(0x29b)](F,this[_0xac15da(0x4c3)],this[_0xac15da(0x498)],this[_0xac15da(0x492)],[],this[_0xac15da(0xfc)],_0x389ec4);}};W=z([g(0x4,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),g(0x5,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x6,a['Inject'](exports['LocalCacheService'])),g(0x7,a[_0xb0c99b(0x47e)]),g(0x8,a['ILogService']),g(0x9,_['ITransformService']),g(0xa,a[_0xb0c99b(0x395)])],W);let k=class extends J{constructor(_0x57b34d,_0x92f397,_0x569567,_0x3c945d,_0x522ae3,_0x19b44f,_0x409a9d,_0x4b14ae,_0x58530a,_0x5ff26f,_0x53435c,_0x3f0f16){const _0x2bc434=_0xb0c99b;super(_0x57b34d,_0x92f397,_0x569567,_0x3c945d,_0x522ae3,_0x58530a,_0x3f0f16,_0x409a9d,_0x4b14ae),d(this,_0x2bc434(0x366),_0x2bc434(0x4b2)),(this[_0x2bc434(0x12f)]=_0x19b44f,this[_0x2bc434(0x3cd)]=_0x5ff26f,this[_0x2bc434(0x1f2)]=_0x53435c);}[_0xb0c99b(0x453)](_0x8aa7dc){const _0xcc2ca5=_0xb0c99b;return this['_pendingMutations'][_0xcc2ca5(0x2da)](_0x8aa7dc),this;}[_0xb0c99b(0x27d)](_0xbd5ded){const _0xba76a4=_0xb0c99b;if(this[_0xba76a4(0x39c)](_0xbd5ded))return this[_0xba76a4(0x12f)][_0xba76a4(0x29b)](H,this['unitID'],this[_0xba76a4(0x498)],this[_0xba76a4(0x492)],this[_0xba76a4(0x3a8)],null,[_0xbd5ded],this[_0xba76a4(0xfc)]);try{const _0x540f0c=this[_0xba76a4(0x1f2)][_0xba76a4(0x35a)]([_0xbd5ded],[this[_0xba76a4(0x492)]],!0x1);if(_[_0xba76a4(0x102)](_0x540f0c)){const {c1Prime:_0xbdbce8,c2Prime:_0x28a9e5}=_0x540f0c,_0x163ae1=this[_0xba76a4(0x1f2)][_0xba76a4(0x2d6)](_0xbdbce8[0x0],this[_0xba76a4(0x3a8)]);if(_[_0xba76a4(0xf3)](_0x163ae1)){const {c1Prime:_0x14fdb5,m2Prime:_0x5e66b3}=_0x163ae1;return this['_executeRemoteChangeset'](_0x14fdb5),_0x28a9e5[0x0][_0xba76a4(0x2b8)]=this['_getCurrentRevision'](),this[_0xba76a4(0x12f)][_0xba76a4(0x29b)](k,this[_0xba76a4(0x4c3)],this[_0xba76a4(0x498)],_0x28a9e5[0x0],_0x5e66b3,this[_0xba76a4(0xfc)]);}throw _0x163ae1['error'];}throw _0x540f0c['error'];}catch(_0x5d8d69){return this[_0xba76a4(0x3cd)][_0xba76a4(0x4d1)](_0x5d8d69),this[_0xba76a4(0x1dd)](!0x1);}}[_0xb0c99b(0x390)](_0x262272){const _0x5ad7d8=_0xb0c99b;if(this[_0x5ad7d8(0x39c)](_0x262272))return this[_0x5ad7d8(0x12f)]['createInstance'](H,this[_0x5ad7d8(0x4c3)],this[_0x5ad7d8(0x498)],null,this[_0x5ad7d8(0x3a8)],this[_0x5ad7d8(0x492)],[],this[_0x5ad7d8(0xfc)]);this[_0x5ad7d8(0x2cc)]();const _0x398d47=this[_0x5ad7d8(0x12f)][_0x5ad7d8(0x29b)](x,this['unitID'],this[_0x5ad7d8(0x498)],this[_0x5ad7d8(0x3a8)],this[_0x5ad7d8(0xfc)]);return _0x398d47[_0x5ad7d8(0x129)](),_0x398d47[_0x5ad7d8(0x142)](),_0x398d47;}['onRemoteRej'](_0x24a917){const _0x5abac9=_0xb0c99b;return this[_0x5abac9(0x1dd)](!!(_0x24a917!=null&&_0x24a917[_0x5abac9(0x2ce)]));}['toggleOffline'](){const _0x810ae8=_0xb0c99b;return this[_0x810ae8(0x12f)][_0x810ae8(0x29b)](G,this[_0x810ae8(0x4c3)],this[_0x810ae8(0x498)],this['_awaitingChangeset'],this[_0x810ae8(0x3a8)],this['_handler']);}['toggleOnline'](){return this;}[_0xb0c99b(0x1b7)](){const _0x96602=_0xb0c99b;this[_0x96602(0xfc)][_0x96602(0x1c5)](this[_0x96602(0x492)]);}[_0xb0c99b(0x1dd)](_0x4f41af){const _0x7c0d3b=_0xb0c99b;return this['_injector'][_0x7c0d3b(0x29b)](F,this[_0x7c0d3b(0x4c3)],this[_0x7c0d3b(0x498)],null,this['_pendingMutations'],this[_0x7c0d3b(0xfc)],_0x4f41af);}};k=z([g(0x5,a['Inject'](a[_0xb0c99b(0x41a)])),g(0x6,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x7,a[_0xb0c99b(0x455)](exports['LocalCacheService'])),g(0x8,a[_0xb0c99b(0x47e)]),g(0x9,a['ILogService']),g(0xa,_[_0xb0c99b(0x37c)]),g(0xb,a[_0xb0c99b(0x395)])],k);let F=class extends J{constructor(_0x9da5,_0x3b8f86,_0x4509cc,_0x3f5159,_0x1d6cca,_0x5614ef=!0x1,_0x18256b,_0xfeca43,_0x542f08,_0x2a0796,_0x1e2dd3,_0x364ebb,_0x113c0b){const _0x476f2a=_0xb0c99b;super(_0x9da5,_0x3b8f86,_0x4509cc,_0x3f5159,_0x1d6cca,_0xfeca43,_0x542f08,_0x1e2dd3,_0x2a0796),d(this,_0x476f2a(0x366),_0x476f2a(0x244)),(this[_0x476f2a(0x2d8)]=_0x5614ef,this[_0x476f2a(0x115)]=_0x18256b,this[_0x476f2a(0x26d)]=_0x364ebb,this[_0x476f2a(0x32d)]=_0x113c0b,this['_showConflictNotification'](),this[_0x476f2a(0xe5)](),this['_disableEditing']());}[_0xb0c99b(0x453)](){return this;}[_0xb0c99b(0x27d)](){return this;}[_0xb0c99b(0x390)](){return this;}[_0xb0c99b(0x3aa)](){return this;}[_0xb0c99b(0x4cb)](){return this;}[_0xb0c99b(0x222)](){return this;}['resend'](){const _0x25403b=_0xb0c99b;throw new Error(_0x25403b(0x106));}[_0xb0c99b(0xe5)](){const _0x23c563=_0xb0c99b;this[_0x23c563(0x40b)]['updateOfflineData'](this[_0x23c563(0x4c3)],this[_0x23c563(0x498)],null,[]);}[_0xb0c99b(0x288)](){const _0xd26f05=_0xb0c99b;this[_0xd26f05(0x2d8)]?this['_notificationService'][_0xd26f05(0x126)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0xd26f05(0x36b)),'type':_0xd26f05(0x4d1),'duration':0x0}):this[_0xd26f05(0x32d)][_0xd26f05(0x126)]({'title':this[_0xd26f05(0x26d)]['t'](_0xd26f05(0x375)),'content':this[_0xd26f05(0x26d)]['t'](_0xd26f05(0x4bb)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x32016d=_0xb0c99b;this[_0x32016d(0x115)]['updatePermissionPoint'](new C[(_0x32016d(0x3bc))](this[_0x32016d(0x4c3)])['id'],!0x1);}};F=z([g(0x6,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x1f0)])),g(0x7,a[_0xb0c99b(0x47e)]),g(0x8,a[_0xb0c99b(0x395)]),g(0x9,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),g(0xa,a['Inject'](_[_0xb0c99b(0x342)])),g(0xb,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x472)])),g(0xc,N['INotificationService'])],F);let G=class extends J{constructor(_0x29170f,_0x2e35a2,_0x106417,_0x53b8f5,_0x353785,_0x320517,_0x3b1c70,_0x107f62,_0x5df2c6,_0x3ced9c){const _0x58bcfa=_0xb0c99b;super(_0x29170f,_0x2e35a2,_0x106417,_0x53b8f5,_0x353785,_0x5df2c6,_0x3ced9c,_0x3b1c70,_0x107f62),d(this,_0x58bcfa(0x366),_0x58bcfa(0x1b8)),this[_0x58bcfa(0x12f)]=_0x320517;}['appendMutation'](_0x30a0bf){const _0x15c2f5=_0xb0c99b;return this[_0x15c2f5(0x3a8)][_0x15c2f5(0x2da)](_0x30a0bf),this[_0x15c2f5(0x142)](),this;}[_0xb0c99b(0x27d)](_0x5dc0c2){const _0x548a98=_0xb0c99b;throw new Error(_0x548a98(0x4f3));}['onRemoteAck'](){const _0x1cef10=_0xb0c99b;throw new Error(_0x1cef10(0x31b));}[_0xb0c99b(0x3aa)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['toggleOffline'](){return this;}[_0xb0c99b(0x222)](){const _0x34e4c4=_0xb0c99b,{_injector:_0x1b684a,_pendingMutations:_0x3aa45c,_awaitingChangeset:_0x1a6429,unitID:_0x2c7a02,_handler:_0x4ee6b3,type:_0xdf1912}=this,_0x68d4a3=Rt(_0x1b684a,_0x2c7a02,_0xdf1912,_0x1a6429,_0x3aa45c,_0x4ee6b3);return _0x68d4a3 instanceof x?_0x68d4a3['_schedule']():(_0x68d4a3 instanceof k||_0x68d4a3 instanceof W)&&_0x68d4a3[_0x34e4c4(0x1b7)](),_0x68d4a3;}[_0xb0c99b(0x1b7)](){const _0x516e1e=_0xb0c99b;throw new Error(_0x516e1e(0x196));}};G=z([g(0x5,a['Inject'](a[_0xb0c99b(0x41a)])),g(0x6,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x342)])),g(0x7,a['Inject'](exports['LocalCacheService'])),g(0x8,a[_0xb0c99b(0x47e)]),g(0x9,a[_0xb0c99b(0x395)])],G);let H=class extends J{constructor(_0x55f776,_0x451491,_0x200f91,_0x29a113,_0x34fe6f,_0x7da351,_0x2e8f91,_0x5e4e27,_0x5b04fe,_0x22d4f6,_0x29b795,_0x4a1842,_0x13e410,_0x464d72){const _0x5ac5a8=_0xb0c99b;super(_0x55f776,_0x451491,_0x200f91,_0x29a113,_0x2e8f91,_0x4a1842,_0x13e410,_0x5b04fe,_0x22d4f6),d(this,'status',_0x5ac5a8(0x454)),(this[_0x5ac5a8(0x3f9)]=_0x34fe6f,this[_0x5ac5a8(0x1aa)]=_0x7da351,this[_0x5ac5a8(0x12f)]=_0x5e4e27,this['_logService']=_0x29b795,this[_0x5ac5a8(0x1f2)]=_0x464d72);}['onMissedChangesetFetched'](_0xa5368b){const _0x2a4f70=_0xb0c99b;try{const _0x47bf8f=[..._0xa5368b,...this['_queuedRemoteChangesets']],_0x1d168d=[this[_0x2a4f70(0x492)]||this[_0x2a4f70(0x3f9)]][_0x2a4f70(0x13b)](_0x279a4d=>!!_0x279a4d);let _0x49a187,_0x3bc502;if(_0x1d168d[_0x2a4f70(0x23c)]){const _0x30433c=this[_0x2a4f70(0x1f2)][_0x2a4f70(0x35a)](_0x47bf8f,_0x1d168d,!0x1);if(!_['isTransformChangesetsSuccess'](_0x30433c))throw _0x30433c[_0x2a4f70(0x4d1)];_0x49a187=_0x30433c[_0x2a4f70(0x2d5)],_0x3bc502=_0x30433c[_0x2a4f70(0x469)];}else _0x49a187=_0x47bf8f,_0x3bc502=[];let _0x41975a=this[_0x2a4f70(0x3a8)];_0x49a187[_0x2a4f70(0x1cb)](_0x38f212=>{const _0x537783=_0x2a4f70;let _0x4ffcea;if(_0x41975a['length']){const _0x323612=this['_transformService'][_0x537783(0x2d6)](_0x38f212,_0x41975a);if(!_[_0x537783(0xf3)](_0x323612))throw _0x323612[_0x537783(0x4d1)];_0x4ffcea=_0x323612[_0x537783(0x2d5)],_0x41975a=_0x323612['m2Prime'];}else _0x4ffcea=_0x38f212;this[_0x537783(0x3e2)](_0x4ffcea);}),this[_0x2a4f70(0x3f9)]&&this[_0x2a4f70(0x2cc)](),this[_0x2a4f70(0x492)]&&_0x3bc502[_0x2a4f70(0x23c)]&&(_0x3bc502[0x0][_0x2a4f70(0x2b8)]=this[_0x2a4f70(0x258)]());let _0x12ee76;if(this['_awaitingChangeset']&&_0x41975a[_0x2a4f70(0x23c)]!==0x0)_0x12ee76=this['_injector']['createInstance'](k,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],_0x3bc502[0x0],_0x41975a,this[_0x2a4f70(0xfc)]);else{if(this[_0x2a4f70(0x492)]&&_0x41975a[_0x2a4f70(0x23c)]===0x0)_0x3bc502[0x0][_0x2a4f70(0x2b8)]=this[_0x2a4f70(0x258)](),_0x12ee76=this[_0x2a4f70(0x12f)][_0x2a4f70(0x29b)](W,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],_0x3bc502[0x0],this[_0x2a4f70(0xfc)]);else{if(_0x41975a[_0x2a4f70(0x23c)]!==0x0){const _0x40601e=this[_0x2a4f70(0x12f)]['createInstance'](x,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],_0x41975a,this[_0x2a4f70(0xfc)]);_0x40601e['_schedule'](),_0x12ee76=_0x40601e;}else _0x12ee76=this[_0x2a4f70(0x12f)]['createInstance'](ie,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],this[_0x2a4f70(0xfc)]);}}return _0x12ee76[_0x2a4f70(0x142)](),_0x12ee76;}catch(_0x2b81cd){return this[_0x2a4f70(0x3cd)][_0x2a4f70(0x4d1)]('[FetchMissState]',_0x2a4f70(0x140),_0x2b81cd),this['_injector'][_0x2a4f70(0x29b)](F,this[_0x2a4f70(0x4c3)],this[_0x2a4f70(0x498)],this[_0x2a4f70(0x492)],this[_0x2a4f70(0x3a8)],this[_0x2a4f70(0xfc)],!0x1);}}[_0xb0c99b(0x1b7)](){const _0x268d1e=_0xb0c99b;throw new Error(_0x268d1e(0x10a));}['appendMutation'](_0x3d6653){const _0x20adf4=_0xb0c99b;return this[_0x20adf4(0x3a8)][_0x20adf4(0x2da)](_0x3d6653),this;}[_0xb0c99b(0x27d)](_0x5716e3){const _0x107232=_0xb0c99b;return this[_0x107232(0x1aa)][_0x107232(0x2da)](_0x5716e3),this;}[_0xb0c99b(0x390)](_0x48174c){const _0x494e31=_0xb0c99b;if(this['_awaitingChangeset'])return this[_0x494e31(0x3f9)]=this[_0x494e31(0x492)],this[_0x494e31(0x492)]=null,this;throw new Error(_0x494e31(0x401));}[_0xb0c99b(0x3aa)](_0x546e67){const _0x19eb01=_0xb0c99b;return this[_0x19eb01(0x1dd)](!!(_0x546e67!=null&&_0x546e67['isPermissionRej']));}[_0xb0c99b(0x4cb)](){const _0x49403e=_0xb0c99b;return this['_injector'][_0x49403e(0x29b)](G,this[_0x49403e(0x4c3)],this[_0x49403e(0x498)],this[_0x49403e(0x492)],this['_pendingMutations'],this[_0x49403e(0xfc)]);}[_0xb0c99b(0x222)](){return this;}[_0xb0c99b(0x1dd)](_0x180919){const _0x5d3bd3=_0xb0c99b;return this[_0x5d3bd3(0x12f)][_0x5d3bd3(0x29b)](F,this[_0x5d3bd3(0x4c3)],this['type'],this['_awaitingChangeset'],this[_0x5d3bd3(0x3a8)],this['_handler'],_0x180919);}};H=z([g(0x7,a['Inject'](a[_0xb0c99b(0x41a)])),g(0x8,a[_0xb0c99b(0x455)](_['RevisionService'])),g(0x9,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),g(0xa,a['ILogService']),g(0xb,a[_0xb0c99b(0x47e)]),g(0xc,a[_0xb0c99b(0x395)]),g(0xd,_[_0xb0c99b(0x37c)])],H);function Rt(_0x3ca286,_0x3ce087,_0x19387f,_0x319877,_0xaace67,_0x4d13d4){const _0x5b2ac2=_0xb0c99b;return _0x319877&&_0xaace67[_0x5b2ac2(0x23c)]?_0x3ca286[_0x5b2ac2(0x29b)](k,_0x3ce087,_0x19387f,_0x319877,_0xaace67,_0x4d13d4):_0x319877?_0x3ca286[_0x5b2ac2(0x29b)](W,_0x3ce087,_0x19387f,_0x319877,_0x4d13d4):_0xaace67['length']?_0x3ca286[_0x5b2ac2(0x29b)](x,_0x3ce087,_0x19387f,_0xaace67,_0x4d13d4):_0x3ca286[_0x5b2ac2(0x29b)](ie,_0x3ce087,_0x19387f,_0x4d13d4);}var Hs=Object[_0xb0c99b(0x3dd)],xs=Object[_0xb0c99b(0x18e)],Ke=(_0x4f3b6a,_0xd60c7c,_0x271e30,_0x42b427)=>{for(var _0x1f6461=_0x42b427>0x1?void 0x0:_0x42b427?xs(_0xd60c7c,_0x271e30):_0xd60c7c,_0x876a61=_0x4f3b6a['length']-0x1,_0xd2eca8;_0x876a61>=0x0;_0x876a61--)(_0xd2eca8=_0x4f3b6a[_0x876a61])&&(_0x1f6461=(_0x42b427?_0xd2eca8(_0xd60c7c,_0x271e30,_0x1f6461):_0xd2eca8(_0x1f6461))||_0x1f6461);return _0x42b427&&_0x1f6461&&Hs(_0xd60c7c,_0x271e30,_0x1f6461),_0x1f6461;},I=(_0x51de2b,_0x1f38d8)=>(_0x52b355,_0x51c7f8)=>_0x1f38d8(_0x52b355,_0x51c7f8,_0x51de2b);exports[_0xb0c99b(0x275)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x5e210a,_0x920e6,_0xc9ca6f,_0x13c132,_0x1ab491,_0xa5311b,_0x101056,_0x9559c8,_0x51b13b,_0x3f15a1,_0x15793b,_0x13b4a1,_0x1348e0){const _0x474b90=_0xb0c99b;super(),d(this,_0x474b90(0x465),new v[(_0x474b90(0x4b1))](null)),d(this,'state$',this[_0x474b90(0x465)]['asObservable']()),d(this,'_state'),d(this,'_collaborationPaused',!0x1),d(this,'status$',this['state$'][_0x474b90(0x3a7)](v[_0x474b90(0x1af)](_0x4de116=>_0x4de116?_0x4de116[_0x474b90(0x366)]:y[_0x474b90(0x4ed)]),v[_0x474b90(0xeb)](0x1))),d(this,_0x474b90(0x14a),!0x1),d(this,_0x474b90(0x440),[]),(this['unitID']=_0x5e210a,this['session']=_0x920e6,this[_0x474b90(0x44d)]=_0xc9ca6f,this[_0x474b90(0x12f)]=_0x13c132,this[_0x474b90(0x40b)]=_0x1ab491,this[_0x474b90(0x1a6)]=_0xa5311b,this['_localeService']=_0x101056,this['_revisionService']=_0x9559c8,this[_0x474b90(0x3cd)]=_0x51b13b,this[_0x474b90(0x425)]=_0x3f15a1,this[_0x474b90(0x33f)]=_0x15793b,this[_0x474b90(0x115)]=_0x13b4a1,this[_0x474b90(0x462)]=_0x1348e0);}get[_0xb0c99b(0x2b7)](){const _0x4a70b9=_0xb0c99b;return this[_0x4a70b9(0x259)];}async[_0xb0c99b(0x188)](){const _0x6877f6=_0xb0c99b;if(this[_0x6877f6(0x2b7)])throw new Error(_0x6877f6(0x2f2));await this[_0x6877f6(0x41f)]();}['pauseCollaboration'](){const _0x296364=_0xb0c99b;return this[_0x296364(0x4bd)]=!0x0,a[_0x296364(0x2ef)](()=>{const _0x4da8f9=_0x296364;this[_0x4da8f9(0x4bd)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0xb0c99b(0x42a)](_0x84eec8){const _0x22fdfa=_0xb0c99b;this[_0x22fdfa(0x259)]=_0x84eec8,this[_0x22fdfa(0x465)][_0x22fdfa(0x3c7)](_0x84eec8);}async['_init'](){const _0x587a19=_0xb0c99b;var _0x5163c2;this[_0x587a19(0x42a)](await this['_createInitialState']()),this[_0x587a19(0x462)]&&((_0x5163c2=this[_0x587a19(0x462)])==null||_0x5163c2[_0x587a19(0x491)](this[_0x587a19(0x4c3)]),this[_0x587a19(0x3d3)](this[_0x587a19(0x462)]['getUnitStatus$'](this[_0x587a19(0x4c3)])[_0x587a19(0x33b)](_0x21b410=>{const _0x4bb098=_0x587a19;this['_logService']['debug']('[CollaborationEntity]',_0x4bb098(0x426),_0x21b410),_0x21b410===bt['OTHER_CLIENTS_EDITING']?(this[_0x4bb098(0x33f)][_0x4bb098(0x126)]({'content':this[_0x4bb098(0x26d)]['t'](_0x4bb098(0x303)),'type':X['MessageType'][_0x4bb098(0x4ba)]}),this['_permissionService'][_0x4bb098(0x3c8)](new C[(_0x4bb098(0x3bc))](this[_0x4bb098(0x4c3)])['id'],!0x1)):this[_0x4bb098(0x115)]['updatePermissionPoint'](new C[(_0x4bb098(0x3bc))](this[_0x4bb098(0x4c3)])['id'],!0x0);})));let _0x152de9=!0x1;return this['disposeWithMe'](this[_0x587a19(0x417)]['sessionStatus$'][_0x587a19(0x33b)](_0x158242=>{const _0x32ec5c=_0x587a19;_0x158242===j[_0x32ec5c(0x305)]?this[_0x32ec5c(0x376)](_0x152de9):_0x158242===j[_0x32ec5c(0x4ed)]&&(_0x152de9=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x587a19(0x417)][_0x587a19(0x1c0)][_0x587a19(0x33b)](_0x23dbdc=>{const _0x2297b8=_0x587a19;try{switch(_0x23dbdc[_0x2297b8(0x1bd)]){case _[_0x2297b8(0x153)][_0x2297b8(0x291)]:{this['_onRemoteChangeset'](_['parseProtocolChangeset'](_0x23dbdc[_0x2297b8(0x494)]));break;}case _[_0x2297b8(0x153)]['CHANGESET_ACK']:{this[_0x2297b8(0x341)](_0x23dbdc[_0x2297b8(0x494)]);break;}case _[_0x2297b8(0x153)][_0x2297b8(0x3fe)]:{this['_onRemoteRejected']();break;}case _[_0x2297b8(0x153)][_0x2297b8(0x30a)]:{this[_0x2297b8(0x1ca)](_0x23dbdc[_0x2297b8(0x494)][_0x2297b8(0x290)]['map'](_0x716548=>_[_0x2297b8(0x35b)](_0x716548)));break;}case _[_0x2297b8(0x153)][_0x2297b8(0xf6)]:this[_0x2297b8(0x302)]({'isPermissionRej':!0x0});}}catch(_0x1321b4){throw console[_0x2297b8(0x4d1)]('Error\x20on\x20receiving\x20event',_0x1321b4),_0x1321b4;}})),this['_state'];}[_0xb0c99b(0x120)](){const _0x4c0658=_0xb0c99b;this[_0x4c0658(0x14a)]=!0x1;}['_lockTransition'](){const _0x53a17d=_0xb0c99b;if(this[_0x53a17d(0x14a)])throw new Error(_0x53a17d(0x1e3));this['_transitionLocked']=!0x0;}[_0xb0c99b(0x481)](_0x1b5eb4){const _0x2ee432=_0xb0c99b;this[_0x2ee432(0x436)](),this[_0x2ee432(0x42a)](this[_0x2ee432(0x259)][_0x2ee432(0x453)](_0x1b5eb4)),this[_0x2ee432(0x120)]();}[_0xb0c99b(0x15e)](_0x273503){const _0x29c82f=_0xb0c99b;if(!(_0x273503['revision']<=this[_0x29c82f(0x217)][_0x29c82f(0x2fa)](this[_0x29c82f(0x4c3)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x29c82f(0x2da)](_0x273503);return;}this['_applyRemoteChangeset'](_0x273503);}}['_exhaustRemoteChangesetQueue'](){const _0x302af1=_0xb0c99b;this[_0x302af1(0x440)][_0x302af1(0x1cb)](_0x310e68=>this[_0x302af1(0x364)](_0x310e68)),this[_0x302af1(0x440)]=[];}['_applyRemoteChangeset'](_0x614257){const _0x485b6a=_0xb0c99b,_0x5df3a9=this['_compressMutationService'][_0x485b6a(0x4e5)][_0x485b6a(0x3ac)](this[_0x485b6a(0x1a6)]['interceptor'][_0x485b6a(0x14e)]()[_0x485b6a(0x178)])(_0x614257[_0x485b6a(0x4e4)],null)||_0x614257[_0x485b6a(0x4e4)],_0x323ce6={..._0x614257,'mutations':_0x5df3a9};this[_0x485b6a(0x436)](),this[_0x485b6a(0x42a)](this[_0x485b6a(0x259)][_0x485b6a(0x27d)](_0x323ce6)),this[_0x485b6a(0x120)]();}[_0xb0c99b(0x341)](_0xdf2fbd){const _0xce5f6c=_0xb0c99b;this[_0xce5f6c(0x436)](),this['_updateState'](this[_0xce5f6c(0x259)]['onRemoteAck'](_0xdf2fbd)),this[_0xce5f6c(0x120)]();}[_0xb0c99b(0x302)](_0x5e194c){const _0x3f1134=_0xb0c99b;this[_0x3f1134(0x436)](),this[_0x3f1134(0x42a)](this[_0x3f1134(0x259)][_0x3f1134(0x3aa)](_0x5e194c)),this['_unlockTransition']();}[_0xb0c99b(0x1ca)](_0x2d31cc){const _0xd2a885=_0xb0c99b;if(!(this['_state']instanceof H))throw new TypeError(_0xd2a885(0x367));const _0x3b387b=_0x2d31cc[_0xd2a885(0x1af)](_0x1c94f1=>{const _0x4842f8=_0xd2a885,_0x25e562=this[_0x4842f8(0x1a6)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x4842f8(0x4e5)][_0x4842f8(0x14e)]()[_0x4842f8(0x178)])(_0x1c94f1['mutations'],null)||_0x1c94f1[_0x4842f8(0x4e4)];return{..._0x1c94f1,'mutations':_0x25e562};});this[_0xd2a885(0x436)](),this[_0xd2a885(0x42a)](this[_0xd2a885(0x259)][_0xd2a885(0x339)](_0x3b387b)),this['_unlockTransition']();}[_0xb0c99b(0x3d2)](){const _0xfd01d4=_0xb0c99b;this['_lockTransition'](),this['_updateState'](this[_0xfd01d4(0x259)][_0xfd01d4(0x4cb)]()),this[_0xfd01d4(0x120)]();}[_0xb0c99b(0x376)](_0x415185=!0x1){const _0x30ec72=_0xb0c99b;this['_lockTransition'](),this['_updateState'](this[_0x30ec72(0x259)][_0x30ec72(0x222)]()),this[_0x30ec72(0x120)]();const _0x261496=this[_0x30ec72(0x259)];_0x415185&&_0x261496 instanceof ie&&(this[_0x30ec72(0x436)](),this[_0x30ec72(0x42a)](_0x261496[_0x30ec72(0x3a0)]()),this[_0x30ec72(0x120)]());}async[_0xb0c99b(0x480)](){return new Promise(_0x1fc47d=>{const _0x33a642=_0x4e0f;this['session']['sessionStatus$'][_0x33a642(0x3a7)](v['take'](0x1))[_0x33a642(0x33b)](async _0x2b509a=>{const _0x1209c9=_0x33a642;_0x1fc47d(await this[_0x1209c9(0x4d7)](_0x2b509a===j[_0x1209c9(0x305)]));});});}['_createHandler'](){const _0xc5834=_0xb0c99b,_0x5e3c21=this[_0xc5834(0x4c3)];return{'onStateChange':(_0x1af793,_0x4f0e1e)=>{const _0x11ae9d=_0xc5834;if(_0x1af793!==this[_0x11ae9d(0x259)])throw new Error(_0x11ae9d(0x457)+_0x1af793['status']+'\x0aAfter:\x20'+_0x4f0e1e['status']+_0x11ae9d(0x2de)+this[_0x11ae9d(0x259)][_0x11ae9d(0x366)]);this[_0x11ae9d(0x42a)](_0x4f0e1e);},'onSendChangeset':_0x1d238e=>{const _0x468356=_0xc5834,_0x5bf29f={'eventID':_[_0x468356(0x153)][_0x468356(0x21f)],'data':{'unitID':_0x1d238e[_0x468356(0x4c3)],'unitType':this[_0x468356(0x44d)],'changeset':_0x1d238e,'memberID':this[_0x468356(0x417)]['getMemberID']()}};this['session'][_0x468356(0x3c3)](_0x5bf29f,this['unitID']);},'onMissingChangesets':({from:_0x4e9cc8,to:_0x2d3111})=>{const _0x1a926b=_0xc5834;this[_0x1a926b(0x3cd)][_0x1a926b(0x347)](_0x1a926b(0x1a9),'fetching\x20missing\x20changesets\x20from\x20'+_0x4e9cc8+_0x1a926b(0x4d9)+_0x2d3111);const _0x109fad={'eventID':_[_0x1a926b(0x153)][_0x1a926b(0x31d)],'data':{'unitID':_0x5e3c21,'unitType':this[_0x1a926b(0x44d)],'from':_0x4e9cc8,'to':_0x2d3111}};this['session'][_0x1a926b(0x3c3)](_0x109fad,this[_0x1a926b(0x4c3)]);}};}async[_0xb0c99b(0x4d7)](_0x23dcbb){const _0x5b7df7=_0xb0c99b;var _0x57acc7,_0x5f1f34;const _0x5ec78c=await this[_0x5b7df7(0x40b)][_0x5b7df7(0x4e3)](this['unitID']),_0x8226aa=(_0x57acc7=_0x5ec78c==null?void 0x0:_0x5ec78c[_0x5b7df7(0x4e4)])!=null?_0x57acc7:[],_0x5ca6fa=(_0x5f1f34=_0x5ec78c==null?void 0x0:_0x5ec78c[_0x5b7df7(0x249)])!=null?_0x5f1f34:null,_0x46fe3a=this[_0x5b7df7(0x4c3)];try{this[_0x5b7df7(0x282)](_0x5ca6fa,_0x8226aa);}catch(_0x5cf70a){this[_0x5b7df7(0x3cd)][_0x5b7df7(0x4d1)](_0x5cf70a);}const _0x68e1ed=this[_0x5b7df7(0x1a7)]();if(_0x23dcbb){const _0x45f016=Rt(this['_injector'],_0x46fe3a,this[_0x5b7df7(0x44d)],_0x5ca6fa,_0x8226aa,_0x68e1ed);return _0x45f016 instanceof x?_0x45f016[_0x5b7df7(0x129)]():(_0x45f016 instanceof k||_0x45f016 instanceof W)&&_0x45f016['resend'](),_0x45f016;}return this[_0x5b7df7(0x12f)]['createInstance'](G,_0x46fe3a,this[_0x5b7df7(0x44d)],_0x5ca6fa,_0x8226aa,_0x68e1ed);}[_0xb0c99b(0x282)](_0x1d8571,_0x531463){const _0x4638ec=_0xb0c99b;var _0x5d520e,_0x36fe10;const _0x5b2d00=this['_compressMutationService'][_0x4638ec(0x4e5)][_0x4638ec(0x3ac)](this[_0x4638ec(0x1a6)][_0x4638ec(0x4e5)][_0x4638ec(0x14e)]()[_0x4638ec(0x178)]);(_0x5d520e=_0x5b2d00((_0x1d8571==null?void 0x0:_0x1d8571['mutations'])||[],null))==null||_0x5d520e[_0x4638ec(0x1cb)](_0x503ec3=>this[_0x4638ec(0x425)][_0x4638ec(0x135)](_0x503ec3['id'],_0x503ec3[_0x4638ec(0x2e3)])),(_0x36fe10=_0x5b2d00(_0x531463||[],null))==null||_0x36fe10['forEach'](_0x59e4b4=>this[_0x4638ec(0x425)][_0x4638ec(0x135)](_0x59e4b4['id'],_0x59e4b4[_0x4638ec(0x2e3)]));}},exports[_0xb0c99b(0x275)]=Ke([I(0x3,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x32a)])),I(0x6,a['Inject'](a[_0xb0c99b(0x472)])),I(0x7,a[_0xb0c99b(0x455)](_['RevisionService'])),I(0x8,a[_0xb0c99b(0x2b2)]),I(0x9,a[_0xb0c99b(0x47e)]),I(0xa,N['IMessageService']),I(0xb,a['IPermissionService']),I(0xc,a[_0xb0c99b(0x1c6)](Te))],exports['CollaborationEntity']),exports[_0xb0c99b(0x145)]=class extends exports['CollaborationEntity']{constructor(_0x15e317,_0xdfdcb,_0x336379,_0x4a759f,_0x2b7c65,_0x3864c2,_0x2d6918,_0x38988a,_0x3a7077,_0x33b221,_0x4f2e10,_0x4356aa,_0x486a34,_0x5bd63d,_0x36aa8a,_0x1b30b8,_0x5abe74){const _0x4e02cf=_0xb0c99b;super(_0x15e317,_0x336379,_0xdfdcb,_0x4a759f,_0x2b7c65,_0x3864c2,_0x2d6918,_0x38988a,_0x486a34,_0x5bd63d,_0x36aa8a,_0x1b30b8,_0x5abe74),this[_0x4e02cf(0x4c3)]=_0x15e317,this[_0x4e02cf(0x498)]=_0xdfdcb,this[_0x4e02cf(0x166)]=_0x3a7077,this['_docTransformIMECacheService']=_0x33b221,this[_0x4e02cf(0x12d)]=_0x4f2e10,this[_0x4e02cf(0x3ee)]=_0x4356aa;}['_createHandler'](){const _0x15e856=_0xb0c99b,_0x1cf4e7=super['_createHandler']();return _0x1cf4e7['onTransformIME']=_0x13622d=>this['_docTransformIMECacheService'][_0x15e856(0x4e9)](_0x13622d),_0x1cf4e7[_0x15e856(0x1e4)]=_0x5f4b80=>this['_docTransformSelectionsService']['transformSelections'](_0x5f4b80),_0x1cf4e7['onSyncEditingCollabCursor']=_0x198916=>this[_0x15e856(0x3ee)][_0x15e856(0x13f)](_0x198916),_0x1cf4e7[_0x15e856(0x2f3)]=_0x24d376=>this[_0x15e856(0x446)][_0x15e856(0x315)](_0x24d376),_0x1cf4e7;}async['_init'](){const _0x3a9196=_0xb0c99b,_0x3dd0d1=await super[_0x3a9196(0x41f)]();return this['disposeWithMe'](this[_0x3a9196(0x425)][_0x3a9196(0x2ac)]((_0xadd1b5,_0x4043e9)=>{const _0x5d7133=_0x3a9196;if(_0xadd1b5[_0x5d7133(0x498)]!==a[_0x5d7133(0x1a2)][_0x5d7133(0x293)]||_0x4043e9!=null&&_0x4043e9[_0x5d7133(0x3b1)]||_0x4043e9!=null&&_0x4043e9['onlyLocal'])return;const _0xab9842=_0xadd1b5[_0x5d7133(0x2e3)];if((_0xab9842==null?void 0x0:_0xab9842[_0x5d7133(0x13a)])!==this[_0x5d7133(0x4c3)])return;let _0x150777=_0xadd1b5;if(_0x150777['id']===V[_0x5d7133(0x396)]['id']){const _0x26c141=_0x150777[_0x5d7133(0x2e3)];_0x150777={'id':V[_0x5d7133(0x396)]['id'],'type':a[_0x5d7133(0x1a2)][_0x5d7133(0x293)],'params':{'unitId':_0x26c141[_0x5d7133(0x13a)],'actions':_0x26c141[_0x5d7133(0xff)],'textRanges':null}};}const _0x11caa9=this[_0x5d7133(0x1a6)]['interceptor'][_0x5d7133(0x3ac)](this['_compressMutationService']['interceptor'][_0x5d7133(0x14e)]()['COMPRESS_MUTATION_SEND'])([_0x150777],null)||[_0x150777];this['_onLocalMutation'](_0x11caa9[0x0]);})),_0x3dd0d1;}},exports[_0xb0c99b(0x145)]=Ke([I(0x3,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),I(0x4,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),I(0x5,a['Inject'](_[_0xb0c99b(0x32a)])),I(0x6,a['Inject'](a[_0xb0c99b(0x472)])),I(0x7,a['Inject'](_[_0xb0c99b(0x342)])),I(0x8,a[_0xb0c99b(0x455)](w['DocStateChangeManagerService'])),I(0x9,a['Inject'](Ie)),I(0xa,a['Inject'](Ce)),I(0xb,a[_0xb0c99b(0x455)](Ye)),I(0xc,a['ILogService']),I(0xd,a['ICommandService']),I(0xe,N[_0xb0c99b(0x3bb)]),I(0xf,a[_0xb0c99b(0x1f0)]),I(0x10,a['Optional'](Te))],exports[_0xb0c99b(0x145)]),exports[_0xb0c99b(0x1e7)]=class extends exports[_0xb0c99b(0x275)]{constructor(_0x36c78f,_0x59d152,_0x42809e,_0xa6e85c,_0x1d371c,_0x59ab40,_0x4f62e9,_0x38fd32,_0x5538e2,_0x48bbeb,_0xd05dc3,_0x5ce26b,_0xefdc8d,_0x591a4e){const _0x5bb1da=_0xb0c99b;super(_0x36c78f,_0x42809e,_0x59d152,_0xa6e85c,_0x1d371c,_0x59ab40,_0x4f62e9,_0x38fd32,_0x48bbeb,_0xd05dc3,_0x5ce26b,_0xefdc8d,_0x591a4e),this[_0x5bb1da(0x4c3)]=_0x36c78f,this[_0x5bb1da(0x498)]=_0x59d152,this[_0x5bb1da(0x2ee)]=_0x5538e2;}[_0xb0c99b(0x1a7)](){const _0x2e94b8=_0xb0c99b,_0xee790f=super[_0x2e94b8(0x1a7)]();return _0xee790f[_0x2e94b8(0x1e4)]=_0x39aa41=>this['_sheetTransformSelectionsService'][_0x2e94b8(0x468)](_0x39aa41),_0xee790f;}async[_0xb0c99b(0x41f)](){const _0x26cb1a=_0xb0c99b,_0x24b33f=await super[_0x26cb1a(0x41f)]();return this[_0x26cb1a(0x3d3)](this['_commandService'][_0x26cb1a(0x2ac)]((_0x393dae,_0x54c38e)=>{const _0x1cf8eb=_0x26cb1a;if(_0x393dae[_0x1cf8eb(0x498)]!==a[_0x1cf8eb(0x1a2)][_0x1cf8eb(0x293)]||_0x54c38e!=null&&_0x54c38e[_0x1cf8eb(0x3b1)]||_0x54c38e!=null&&_0x54c38e[_0x1cf8eb(0x323)])return;const _0x267b5a=_0x393dae[_0x1cf8eb(0x2e3)];if((_0x267b5a==null?void 0x0:_0x267b5a[_0x1cf8eb(0x13a)])!==this[_0x1cf8eb(0x4c3)])return;const _0x56f695=_0x393dae,_0x42d846=this[_0x1cf8eb(0x1a6)][_0x1cf8eb(0x4e5)]['fetchThroughInterceptors'](this[_0x1cf8eb(0x1a6)][_0x1cf8eb(0x4e5)][_0x1cf8eb(0x14e)]()[_0x1cf8eb(0x489)])([_0x56f695],null)||[_0x56f695];this[_0x1cf8eb(0x481)](_0x42d846[0x0]);})),_0x24b33f;}},exports['SheetCollaborationEntity']=Ke([I(0x3,a['Inject'](a[_0xb0c99b(0x41a)])),I(0x4,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x2b9)])),I(0x5,a['Inject'](_[_0xb0c99b(0x32a)])),I(0x6,a['Inject'](a[_0xb0c99b(0x472)])),I(0x7,a[_0xb0c99b(0x455)](_['RevisionService'])),I(0x8,a[_0xb0c99b(0x455)](pe)),I(0x9,a['ILogService']),I(0xa,a[_0xb0c99b(0x47e)]),I(0xb,N[_0xb0c99b(0x3bb)]),I(0xc,a[_0xb0c99b(0x1f0)]),I(0xd,a[_0xb0c99b(0x1c6)](Te))],exports[_0xb0c99b(0x1e7)]);var ks=Object['defineProperty'],Bs=Object[_0xb0c99b(0x18e)],Vs=(_0x10c62d,_0x4c119d,_0x536177,_0x391b4e)=>{for(var _0x4735a9=_0x391b4e>0x1?void 0x0:_0x391b4e?Bs(_0x4c119d,_0x536177):_0x4c119d,_0x37992e=_0x10c62d['length']-0x1,_0x14a286;_0x37992e>=0x0;_0x37992e--)(_0x14a286=_0x10c62d[_0x37992e])&&(_0x4735a9=(_0x391b4e?_0x14a286(_0x4c119d,_0x536177,_0x4735a9):_0x14a286(_0x4735a9))||_0x4735a9);return _0x391b4e&&_0x4735a9&&ks(_0x4c119d,_0x536177,_0x4735a9),_0x4735a9;},Pe=(_0x136f1b,_0x202ec4)=>(_0x3c3517,_0x4f30fd)=>_0x202ec4(_0x3c3517,_0x4f30fd,_0x136f1b);exports[_0xb0c99b(0x109)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x937af9,_0x2351d5,_0x489387){const _0x50b96d=_0xb0c99b;super(),d(this,'_entities',new Map()),d(this,_0x50b96d(0x4d5),new v[(_0x50b96d(0x349))]()),(this[_0x50b96d(0x12f)]=_0x937af9,this[_0x50b96d(0x2c5)]=_0x2351d5,this[_0x50b96d(0x3fb)]=_0x489387,this[_0x50b96d(0x41f)]());}[_0xb0c99b(0x11c)](){const _0x2f1f30=_0xb0c99b;super[_0x2f1f30(0x11c)](),this[_0x2f1f30(0x3a4)][_0x2f1f30(0x1cb)](_0x39b4a3=>_0x39b4a3[_0x2f1f30(0x11c)]()),this['_entities'][_0x2f1f30(0x460)]();}[_0xb0c99b(0x30c)](_0x437b76){const _0x4ab63b=_0xb0c99b;var _0x1cf8cb;return(_0x1cf8cb=this[_0x4ab63b(0x3a4)][_0x4ab63b(0x1a0)](_0x437b76))!=null?_0x1cf8cb:null;}[_0xb0c99b(0x253)](_0x208388){const _0xb92a80=_0xb0c99b,_0x6615d9=this[_0xb92a80(0x30c)](_0x208388);return _0x6615d9?v['of'](_0x6615d9):this[_0xb92a80(0x4d5)]['pipe'](E['filter'](_0x3778b6=>_0x3778b6[_0xb92a80(0x4c3)]===_0x208388));}['_init'](){const _0x2ab5fb=_0xb0c99b;this[_0x2ab5fb(0x3fb)][_0x2ab5fb(0x2a4)](a[_0x2ab5fb(0x111)][_0x2ab5fb(0x3e6)])[_0x2ab5fb(0x3a7)](v[_0x2ab5fb(0x450)](this[_0x2ab5fb(0x495)]),E[_0x2ab5fb(0x4d6)](0x10))[_0x2ab5fb(0x33b)](async _0x25822b=>{const _0x21c478=_0x2ab5fb,_0x1e7290=_0x25822b[_0x21c478(0x4dd)](),_0x996d2b=await this[_0x21c478(0x357)](_0x1e7290,$[_0x21c478(0x3e6)]);this[_0x21c478(0x3a4)][_0x21c478(0x4d0)](_0x1e7290,_0x996d2b);}),this['_univerInstanceService'][_0x2ab5fb(0x2a4)](a[_0x2ab5fb(0x111)]['UNIVER_DOC'])['pipe'](v[_0x2ab5fb(0x450)](this[_0x2ab5fb(0x495)]),E['delay'](0x10))[_0x2ab5fb(0x3a7)](E[_0x2ab5fb(0x13b)](_0x7671a8=>!_0x7671a8[_0x2ab5fb(0x4dd)]()[_0x2ab5fb(0x477)]('__')))[_0x2ab5fb(0x33b)](async _0x3050a6=>{const _0x5d2e7a=_0x2ab5fb,_0x1017a0=_0x3050a6[_0x5d2e7a(0x4dd)](),_0x18d1dd=await this['_startCollaboration'](_0x1017a0,$[_0x5d2e7a(0x254)]);this[_0x5d2e7a(0x3a4)][_0x5d2e7a(0x4d0)](_0x1017a0,_0x18d1dd);}),v['merge'](this['_univerInstanceService'][_0x2ab5fb(0x1a4)](a[_0x2ab5fb(0x111)][_0x2ab5fb(0x3e6)]),this[_0x2ab5fb(0x3fb)]['getTypeOfUnitDisposed$'](a[_0x2ab5fb(0x111)][_0x2ab5fb(0x254)]))[_0x2ab5fb(0x3a7)](v[_0x2ab5fb(0x450)](this[_0x2ab5fb(0x495)]))['subscribe'](_0xa06dee=>{const _0x285454=_0x2ab5fb,_0x1d4799=_0xa06dee[_0x285454(0x4dd)](),_0x510017=this[_0x285454(0x3a4)][_0x285454(0x1a0)](_0x1d4799);_0x510017&&(_0x510017[_0x285454(0x11c)](),this[_0x285454(0x3a4)][_0x285454(0x456)](_0x1d4799));});}async[_0xb0c99b(0x357)](_0x56efe2,_0x58d5){const _0x5e0ba4=_0xb0c99b,_0x5db296=await this[_0x5e0ba4(0x2c5)][_0x5e0ba4(0x230)](_0x56efe2),_0x31c7d1=this[_0x5e0ba4(0x12f)][_0x5e0ba4(0x29b)](this[_0x5e0ba4(0x3da)](_0x58d5),_0x56efe2,_0x58d5,_0x5db296);return await _0x31c7d1['init'](),this['_entityInit$'][_0x5e0ba4(0x3c7)](_0x31c7d1),_0x31c7d1;}['_getCtorByUniverType'](_0x615c09){const _0x3284af=_0xb0c99b;switch(_0x615c09){case $['UNIVER_DOC']:return exports['DocCollaborationEntity'];case $['UNIVER_SHEET']:return exports[_0x3284af(0x1e7)];default:throw new Error(_0x3284af(0x2e1)+_0x615c09);}}},exports[_0xb0c99b(0x109)]=Vs([Pe(0x0,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),Pe(0x1,a['Inject'](exports[_0xb0c99b(0x28a)])),Pe(0x2,a['IUniverInstanceService'])],exports[_0xb0c99b(0x109)]);const nt=[_0xb0c99b(0x216),_0xb0c99b(0x3b0),_0xb0c99b(0x26c),_0xb0c99b(0x4a1),'blue400',_0xb0c99b(0x310)];class Xe extends a['Disposable']{constructor(){const _0x4f712e=_0xb0c99b;super(...arguments),d(this,_0x4f712e(0x321),new Map()),d(this,'_colorIndex',0x0);}[_0xb0c99b(0x1e9)](_0x53ee5e){const _0x5cc0ec=_0xb0c99b;if(this[_0x5cc0ec(0x321)][_0x5cc0ec(0x191)](_0x53ee5e))return this[_0x5cc0ec(0x321)]['get'](_0x53ee5e);const _0x364e39=nt[this[_0x5cc0ec(0x26e)]];return this[_0x5cc0ec(0x26e)]=(this[_0x5cc0ec(0x26e)]+0x1)%nt['length'],this[_0x5cc0ec(0x321)]['set'](_0x53ee5e,_0x364e39),_0x364e39;}}var Ws=Object[_0xb0c99b(0x3dd)],Fs=Object[_0xb0c99b(0x18e)],Gs=(_0x3524c0,_0x3d5fad,_0xba5e76,_0x19c5cf)=>{const _0x21b88b=_0xb0c99b;for(var _0x5d433e=_0x19c5cf>0x1?void 0x0:_0x19c5cf?Fs(_0x3d5fad,_0xba5e76):_0x3d5fad,_0x4d622=_0x3524c0[_0x21b88b(0x23c)]-0x1,_0x5a3e68;_0x4d622>=0x0;_0x4d622--)(_0x5a3e68=_0x3524c0[_0x4d622])&&(_0x5d433e=(_0x19c5cf?_0x5a3e68(_0x3d5fad,_0xba5e76,_0x5d433e):_0x5a3e68(_0x5d433e))||_0x5d433e);return _0x19c5cf&&_0x5d433e&&Ws(_0x3d5fad,_0xba5e76,_0x5d433e),_0x5d433e;},Q=(_0x1292ed,_0x32b540)=>(_0x2a67f8,_0x102a64)=>_0x32b540(_0x2a67f8,_0x102a64,_0x1292ed);const Ys=0x12c,Ks=0x64,Xs=()=>{let _0x12598f=[],_0x244827=!0x1;return _0x328690=>{const _0x21d165=_0x4e0f;_0x12598f[_0x21d165(0x2da)](_0x328690),_0x244827||(_0x244827=!0x0,setTimeout(()=>{const _0x27998b=_0x21d165;_0x12598f[_0x27998b(0x1cb)](_0x4fb6d2=>_0x4fb6d2()),_0x12598f=[],_0x244827=!0x1;}));};};let He=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x3dce05,_0x1599c9,_0x4f6e63,_0x2b239f,_0x4678d7,_0x5722ec,_0x146cc1,_0x5e780a){const _0x51db1a=_0xb0c99b;super(),d(this,'_online',!0x1),d(this,_0x51db1a(0x41f),!0x1),d(this,_0x51db1a(0x25a),new v[(_0x51db1a(0x4b1))](new Map())),d(this,_0x51db1a(0x3bd),this[_0x51db1a(0x25a)][_0x51db1a(0x3af)]()),d(this,_0x51db1a(0x26b),new v['BehaviorSubject']([])),d(this,_0x51db1a(0x150),this[_0x51db1a(0x26b)]['pipe'](v[_0x51db1a(0x3d6)](Ys))),d(this,_0x51db1a(0x272),a['debounce']((_0x4ae4d4,_0x1b1adc)=>{const _0x5536f8=_0x51db1a,_0x4cb4aa={'eventID':_[_0x5536f8(0x153)][_0x5536f8(0x2c7)],'data':{'unitID':this[_0x5536f8(0x4c3)],'memberID':this[_0x5536f8(0x276)]['getMemberID'](),'selection':Je[_0x5536f8(0x428)](_0x4ae4d4,_0x1b1adc[_0x5536f8(0x4ec)])}};this['_session']['send'](_0x4cb4aa,this[_0x5536f8(0x4c3)]);},Ks)),(this[_0x51db1a(0x4c3)]=_0x3dce05,this['_session']=_0x1599c9,this[_0x51db1a(0x12f)]=_0x4f6e63,this[_0x51db1a(0x139)]=_0x2b239f,this[_0x51db1a(0x3f3)]=_0x4678d7,this[_0x51db1a(0x3fb)]=_0x5722ec,this[_0x51db1a(0x425)]=_0x146cc1,this[_0x51db1a(0x30f)]=_0x5e780a);}get[_0xb0c99b(0x487)](){const _0x401a59=_0xb0c99b;return this[_0x401a59(0x25a)][_0x401a59(0x3d1)]();}get[_0xb0c99b(0x2ec)](){const _0x4773fb=_0xb0c99b;return this[_0x4773fb(0x26b)][_0x4773fb(0x3d1)]();}[_0xb0c99b(0x11c)](){const _0x3277e3=_0xb0c99b;super['dispose'](),this['_cursorInfo$'][_0x3277e3(0x3c7)](new Map()),this['_cursorInfo$'][_0x3277e3(0x484)](),this['_roomMembers$'][_0x3277e3(0x3c7)]([]),this[_0x3277e3(0x26b)][_0x3277e3(0x484)]();}['init'](){const _0xb06f3e=_0xb0c99b;this[_0xb06f3e(0x41f)]||(this['_init']=!0x0,this[_0xb06f3e(0x276)]['sessionStatus$'][_0xb06f3e(0x3a7)](v['takeUntil'](this[_0xb06f3e(0x495)]))[_0xb06f3e(0x33b)](_0x356639=>{const _0x3c1aab=_0xb06f3e;_0x356639===j['ONLINE']?this[_0x3c1aab(0x376)]():this[_0x3c1aab(0x3d2)]();}),this[_0xb06f3e(0x276)][_0xb06f3e(0x1c0)][_0xb06f3e(0x3a7)](v['takeUntil'](this['dispose$']))[_0xb06f3e(0x33b)](_0xb5e684=>{const _0x2d20b2=_0xb06f3e,_0x3462a2=_0xb5e684['eventID'];_0x3462a2===_['CollaborationEvent'][_0x2d20b2(0x2c7)]&&this[_0x2d20b2(0x4de)](_0xb5e684),_0x3462a2===_[_0x2d20b2(0x153)]['USERS_LEAVE']&&this[_0x2d20b2(0x48a)](_0xb5e684);}),this[_0xb06f3e(0x352)](),this['disposeWithMe'](this[_0xb06f3e(0x425)]['onCommandExecuted'](_0x3d9536=>{const _0x3032d2=_0xb06f3e;if(this[_0x3032d2(0x136)]&&_0x3d9536['id']===C['SetSelectionsOperation']['id']&&_0x3d9536[_0x3032d2(0x2e3)]['unitId']===this[_0x3032d2(0x4c3)]){const _0x29c343=_0x3d9536[_0x3032d2(0x2e3)];this['_updateLocalCursor'](_0x29c343['subUnitId'],_0x29c343['selections'][0x0]);}})));}[_0xb0c99b(0x4de)](_0x41f6da){const _0x545a25=_0xb0c99b;var _0x471bc2,_0x29a85f;const {memberID:_0x4f5488,selection:_0x52460f}=_0x41f6da['data'],{sheetName:_0x2b40d0,range:_0x3ac8ba}=Je[_0x545a25(0x35e)](_0x52460f),_0x269733={'name':(_0x29a85f=(_0x471bc2=this['_memberService'][_0x545a25(0x4b8)](this[_0x545a25(0x4c3)],_0x4f5488))==null?void 0x0:_0x471bc2[_0x545a25(0x29d)])!=null?_0x29a85f:'Unknown\x20user','range':this[_0x545a25(0x110)](_0x2b40d0,_0x3ac8ba),'sheetID':_0x2b40d0,'color':this[_0x545a25(0x139)][_0x545a25(0x1e9)](_0x4f5488),'selection':_0x52460f},_0x3af2d4=this[_0x545a25(0x487)];_0x3af2d4[_0x545a25(0x4d0)](_0x4f5488,_0x269733),this[_0x545a25(0x25a)]['next'](_0x3af2d4);}[_0xb0c99b(0x48a)](_0x2625d4){const _0x3c8ef0=_0xb0c99b,{memberID:_0x119410}=_0x2625d4['data'],_0x3b67e8=this['cursorInfo'];_0x3b67e8[_0x3c8ef0(0x456)](_0x119410),this['_cursorInfo$'][_0x3c8ef0(0x3c7)](_0x3b67e8);}['_getMergeRange'](_0x47c785,_0x3dcffe){const _0x3dd373=_0xb0c99b;var _0x3a8a31,_0x6d02b;const _0xd030b9=(_0x6d02b=(_0x3a8a31=this['_univerInstanceService'][_0x3dd373(0x24d)](this[_0x3dd373(0x4c3)]))==null?void 0x0:_0x3a8a31[_0x3dd373(0x134)](_0x47c785))==null?void 0x0:_0x6d02b[_0x3dd373(0x179)]();return(_0xd030b9==null?void 0x0:_0xd030b9[_0x3dd373(0x24b)](_0xfb6a8c=>a[_0x3dd373(0x1d0)][_0x3dd373(0x2b4)](_0xfb6a8c,_0x3dcffe)))||_0x3dcffe;}['_onRefRangeChange'](){const _0x575d8d=_0xb0c99b,_0x14b82c=new a[(_0x575d8d(0x283))](),_0x3c4f02=Xs(),_0x5f1092=()=>{const _0x3805b2=_0x575d8d;_0x14b82c[_0x3805b2(0x11c)]();const _0x305b5d=(_0x4c2e4a,_0x5a0fda,_0x9d4988,_0x33a328)=>{const _0x448299=_0x3805b2;let _0x1afc9e=[];switch(_0x4c2e4a['id']){case C[_0x448299(0x37d)][_0x448299(0x242)]:{_0x1afc9e=C[_0x448299(0x377)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)][_0x448299(0x1c2)]:{_0x1afc9e=C[_0x448299(0x2eb)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)]['InsertColCommandId']:{_0x1afc9e=C['handleInsertCol'](_0x4c2e4a,_0x33a328);break;}case C['EffectRefRangId'][_0x448299(0x16f)]:{_0x1afc9e=C[_0x448299(0x112)](_0x4c2e4a,_0x33a328);break;}case C['EffectRefRangId'][_0x448299(0x443)]:{_0x1afc9e=C[_0x448299(0x33a)](_0x4c2e4a,_0x33a328);break;}case C['EffectRefRangId'][_0x448299(0x3ff)]:{_0x1afc9e=C[_0x448299(0x45a)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)]['MoveRangeCommandId']:{_0x1afc9e=C[_0x448299(0x471)](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)]['RemoveColCommandId']:{_0x1afc9e=C['handleIRemoveCol'](_0x4c2e4a,_0x33a328);break;}case C[_0x448299(0x37d)][_0x448299(0x393)]:{_0x1afc9e=C['handleIRemoveRow'](_0x4c2e4a,_0x33a328);break;}}const _0x133bcb=C[_0x448299(0x151)](_0x1afc9e,_0x33a328),_0x794490=this[_0x448299(0x487)][_0x448299(0x1a0)](_0x5a0fda);if(_0x794490&&_0x133bcb){const _0x544fda={..._0x794490,'range':_0x133bcb};this['cursorInfo']['set'](_0x5a0fda,_0x544fda),_0x3c4f02(()=>{const _0x5dd255=_0x448299,_0x292e59=this[_0x5dd255(0x30f)][_0x5dd255(0x2a9)](_0x133bcb,_0x57ef0d=>(_0x292e59['dispose'](),_0x305b5d(_0x57ef0d,_0x5a0fda,_0x9d4988,_0x133bcb)));_0x14b82c['add'](_0x292e59);});}return{'redos':[],'undos':[]};};this[_0x3805b2(0x487)][_0x3805b2(0x1cb)]((_0x282204,_0x37cf24)=>{const _0xd66119=_0x3805b2,{range:_0x51f2eb,sheetID:_0x50c474}=_0x282204,_0x2d857d=this[_0xd66119(0x30f)][_0xd66119(0x2a9)](_0x51f2eb,_0x5d9e0e=>(_0x2d857d[_0xd66119(0x11c)](),_0x305b5d(_0x5d9e0e,_0x37cf24,_0x50c474,_0x51f2eb)));_0x14b82c[_0xd66119(0x143)](_0x2d857d);});};this[_0x575d8d(0x3d3)](a[_0x575d8d(0x2ef)](this['_cursorInfo$'][_0x575d8d(0x33b)](()=>{_0x5f1092();})));}[_0xb0c99b(0x376)](){const _0x2b55de=_0xb0c99b;var _0x39f4f6,_0x1a3263;if(this[_0x2b55de(0x136)]=!0x0,((_0x39f4f6=this['_univerInstanceService'][_0x2b55de(0x345)]())==null?void 0x0:_0x39f4f6[_0x2b55de(0x4dd)]())!==this['unitID'])return;const _0x144ec1=(_0x1a3263=this['_injector'][_0x2b55de(0x1a0)](C[_0x2b55de(0x1f3)])[_0x2b55de(0x210)]())==null?void 0x0:_0x1a3263[0x0],_0x2a3f5c=this['_univerInstanceService'][_0x2b55de(0x3c6)](a[_0x2b55de(0x111)][_0x2b55de(0x3e6)])[_0x2b55de(0x1ba)]();_0x144ec1&&_0x2a3f5c&&this['_updateLocalCursor'](_0x2a3f5c['getSheetId'](),_0x144ec1);}[_0xb0c99b(0x3d2)](){const _0x4005bd=_0xb0c99b;this[_0x4005bd(0x136)]=!0x1;}};He=Gs([Q(0x2,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x41a)])),Q(0x3,a[_0xb0c99b(0x455)](Xe)),Q(0x4,a[_0xb0c99b(0x455)](q)),Q(0x5,a[_0xb0c99b(0x49b)]),Q(0x6,a[_0xb0c99b(0x47e)]),Q(0x7,a['Inject'](C['RefRangeService']))],He);var qs=Object[_0xb0c99b(0x3dd)],zs=Object['getOwnPropertyDescriptor'],Js=(_0x2622e0,_0x568e02,_0x31eefe,_0x45fe0e)=>{const _0x536179=_0xb0c99b;for(var _0x5424fe=_0x45fe0e>0x1?void 0x0:_0x45fe0e?zs(_0x568e02,_0x31eefe):_0x568e02,_0x31c37d=_0x2622e0[_0x536179(0x23c)]-0x1,_0x4b7d7d;_0x31c37d>=0x0;_0x31c37d--)(_0x4b7d7d=_0x2622e0[_0x31c37d])&&(_0x5424fe=(_0x45fe0e?_0x4b7d7d(_0x568e02,_0x31eefe,_0x5424fe):_0x4b7d7d(_0x5424fe))||_0x5424fe);return _0x45fe0e&&_0x5424fe&&qs(_0x568e02,_0x31eefe,_0x5424fe),_0x5424fe;},K=(_0x5e0a86,_0x5529fd)=>(_0x3079b2,_0xf4230c)=>_0x5529fd(_0x3079b2,_0xf4230c,_0x5e0a86);const Zs=0x12c,Qs=0x64;let xe=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x93393a,_0x3d958f,_0xbccd15,_0x1f340d,_0x4015d6,_0x37f1c2,_0x1bf133,_0x3301c5,_0x345208){const _0x425de8=_0xb0c99b;super(),d(this,_0x425de8(0x136),!0x1),d(this,_0x425de8(0x41f),!0x1),d(this,_0x425de8(0x25a),new v['BehaviorSubject'](new Map())),d(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),d(this,_0x425de8(0x26b),new v['BehaviorSubject']([])),d(this,'roomMembers$',this['_roomMembers$'][_0x425de8(0x3a7)](v['debounceTime'](Zs))),d(this,'_updateLocalCursor',a[_0x425de8(0x301)](_0x506385=>{const _0x4b78dd=_0x425de8,_0x161fec={'eventID':_[_0x4b78dd(0x153)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x4b78dd(0x276)][_0x4b78dd(0x34f)](),'selection':Tt(_0x506385)}};this[_0x4b78dd(0x276)][_0x4b78dd(0x3c3)](_0x161fec,this[_0x4b78dd(0x4c3)]);},Qs)),(this[_0x425de8(0x4c3)]=_0x93393a,this[_0x425de8(0x276)]=_0x3d958f,this[_0x425de8(0x12f)]=_0xbccd15,this['_colorAssignService']=_0x1f340d,this['_memberService']=_0x4015d6,this[_0x425de8(0x37f)]=_0x37f1c2,this[_0x425de8(0x1f2)]=_0x1bf133,this[_0x425de8(0x3fb)]=_0x3301c5,this[_0x425de8(0x425)]=_0x345208);}get['cursorInfo'](){const _0x5c58c6=_0xb0c99b;return this[_0x5c58c6(0x25a)][_0x5c58c6(0x3d1)]();}get[_0xb0c99b(0x2ec)](){const _0x2f49d5=_0xb0c99b;return this[_0x2f49d5(0x26b)][_0x2f49d5(0x3d1)]();}[_0xb0c99b(0x11c)](){const _0x480a5b=_0xb0c99b;super[_0x480a5b(0x11c)](),this[_0x480a5b(0x25a)][_0x480a5b(0x3c7)](new Map()),this['_cursorInfo$'][_0x480a5b(0x484)](),this[_0x480a5b(0x26b)][_0x480a5b(0x3c7)]([]),this[_0x480a5b(0x26b)][_0x480a5b(0x484)]();}[_0xb0c99b(0x188)](){const _0x5b2a93=_0xb0c99b;this[_0x5b2a93(0x41f)]||(this['_init']=!0x0,this[_0x5b2a93(0x276)][_0x5b2a93(0x404)][_0x5b2a93(0x3a7)](v[_0x5b2a93(0x450)](this['dispose$']))[_0x5b2a93(0x33b)](_0x635c69=>{const _0x5a3418=_0x5b2a93;_0x635c69===j[_0x5a3418(0x305)]?this[_0x5a3418(0x376)]():this[_0x5a3418(0x3d2)]();}),this[_0x5b2a93(0x276)][_0x5b2a93(0x1c0)][_0x5b2a93(0x3a7)](v['takeUntil'](this[_0x5b2a93(0x495)]))['subscribe'](_0x39d83b=>{const _0x27c3a0=_0x5b2a93,_0x355f27=_0x39d83b[_0x27c3a0(0x1bd)];_0x355f27===_[_0x27c3a0(0x153)]['UPDATE_CURSOR']&&this[_0x27c3a0(0x4de)](_0x39d83b),_0x355f27===_[_0x27c3a0(0x153)]['USERS_LEAVE']&&this[_0x27c3a0(0x48a)](_0x39d83b);}),this[_0x5b2a93(0x3d3)](this[_0x5b2a93(0x425)][_0x5b2a93(0x2ac)](_0x1adc61=>{const _0x9a6120=_0x5b2a93,_0x3c48a3=_0x1adc61[_0x9a6120(0x2e3)];_0x3c48a3!=null&&this[_0x9a6120(0x136)]&&_0x1adc61['id']===V['SetTextSelectionsOperation']['id']&&_0x3c48a3['unitId']===this[_0x9a6120(0x4c3)]&&_0x3c48a3['isEditing']===!0x1&&this[_0x9a6120(0x272)](_0x3c48a3[_0x9a6120(0x2a6)]);})),this[_0x5b2a93(0x37f)][_0x5b2a93(0x185)][_0x5b2a93(0x3a7)](v[_0x5b2a93(0x450)](this[_0x5b2a93(0x495)]))[_0x5b2a93(0x33b)](_0x58e45f=>{const _0x334f97=_0x5b2a93;if((_0x58e45f==null?void 0x0:_0x58e45f[_0x334f97(0x4c3)])!==this[_0x334f97(0x4c3)])return;const _0x1c3dce={'eventID':_['CollaborationEvent'][_0x334f97(0x2c7)],'data':_0x58e45f};this[_0x334f97(0x4de)](_0x1c3dce);}),this[_0x5b2a93(0x3d3)](this['_commandService']['onCommandExecuted'](_0x30fcba=>{const _0x12d6dc=_0x5b2a93;if(_0x30fcba['params']==null)return;const _0x3d60ee=_0x30fcba[_0x12d6dc(0x2e3)];if(_0x30fcba['id']!==V['RichTextEditingMutation']['id']||_0x3d60ee[_0x12d6dc(0x13a)]!==this[_0x12d6dc(0x4c3)])return;const _0x3ba58e={'id':'doc.mutation.rich-text-editing','params':_0x3d60ee},_0x1fbaf7=this[_0x12d6dc(0x487)];for(const [_0x3b7f5f,_0x919d7b]of _0x1fbaf7){const _0x1287e3={'id':_0x12d6dc(0x356),'params':{'unitId':this[_0x12d6dc(0x4c3)],'actions':null,'textRanges':_0x919d7b['ranges']}},_0x41d003=this[_0x12d6dc(0x1f2)]['transformMutation'](_0x3ba58e,_0x1287e3,!0x1);if(_[_0x12d6dc(0x48b)](_0x41d003))throw _0x41d003[_0x12d6dc(0x4d1)];_0x1fbaf7['set'](_0x3b7f5f,{..._0x919d7b,'ranges':_0x41d003[_0x12d6dc(0x200)]['params'][_0x12d6dc(0x422)]});}queueMicrotask(()=>{const _0x41acb0=_0x12d6dc;this[_0x41acb0(0x25a)][_0x41acb0(0x3c7)](_0x1fbaf7);});})));}[_0xb0c99b(0x4de)](_0x1af157){const _0x129b93=_0xb0c99b;var _0x21ed1c,_0x570900;const {memberID:_0x26f6a7,selection:_0x4ab656}=_0x1af157['data'],_0x4fb267=Us(_0x4ab656),_0x61eb4d=(_0x570900=(_0x21ed1c=this['_memberService'][_0x129b93(0x4b8)](this['unitID'],_0x26f6a7))==null?void 0x0:_0x21ed1c[_0x129b93(0x29d)])!=null?_0x570900:'Unknown\x20user',_0x547322={'color':this[_0x129b93(0x139)][_0x129b93(0x1e9)](_0x26f6a7),'name':_0x61eb4d,'ranges':_0x4fb267},_0x4ec82d=this['cursorInfo'];_0x4ec82d[_0x129b93(0x4d0)](_0x26f6a7,_0x547322),this[_0x129b93(0x25a)]['next'](_0x4ec82d);}[_0xb0c99b(0x48a)](_0x31a526){const _0xba9d2a=_0xb0c99b,{memberID:_0x525b64}=_0x31a526[_0xba9d2a(0x494)],_0x148b87=this[_0xba9d2a(0x487)];_0x148b87[_0xba9d2a(0x456)](_0x525b64),this[_0xba9d2a(0x25a)][_0xba9d2a(0x3c7)](_0x148b87);}[_0xb0c99b(0x376)](){const _0x35a01f=_0xb0c99b;var _0x96e20d;if(this[_0x35a01f(0x136)]=!0x0,((_0x96e20d=this[_0x35a01f(0x3fb)][_0x35a01f(0x345)]())==null?void 0x0:_0x96e20d[_0x35a01f(0x4dd)]())!==this[_0x35a01f(0x4c3)])return;const _0x5268a3=this['_injector'][_0x35a01f(0x1a0)](V[_0x35a01f(0x1b0)])[_0x35a01f(0x132)]();Array['isArray'](_0x5268a3)&&_0x5268a3[_0x35a01f(0x23c)]>0x0&&this[_0x35a01f(0x272)](_0x5268a3);}['_toggleOffline'](){const _0x3b1428=_0xb0c99b;this[_0x3b1428(0x136)]=!0x1;}};xe=Js([K(0x2,a['Inject'](a[_0xb0c99b(0x41a)])),K(0x3,a['Inject'](Xe)),K(0x4,a[_0xb0c99b(0x455)](q)),K(0x5,a[_0xb0c99b(0x455)](Ye)),K(0x6,_[_0xb0c99b(0x37c)]),K(0x7,a[_0xb0c99b(0x49b)]),K(0x8,a[_0xb0c99b(0x47e)])],xe);var ei=Object[_0xb0c99b(0x3dd)],ti=Object[_0xb0c99b(0x18e)],si=(_0x22d48b,_0x51d389,_0x267339,_0x5cb83f)=>{const _0xc0a22d=_0xb0c99b;for(var _0x4b447b=_0x5cb83f>0x1?void 0x0:_0x5cb83f?ti(_0x51d389,_0x267339):_0x51d389,_0x2dd232=_0x22d48b[_0xc0a22d(0x23c)]-0x1,_0x51bed5;_0x2dd232>=0x0;_0x2dd232--)(_0x51bed5=_0x22d48b[_0x2dd232])&&(_0x4b447b=(_0x5cb83f?_0x51bed5(_0x51d389,_0x267339,_0x4b447b):_0x51bed5(_0x4b447b))||_0x4b447b);return _0x5cb83f&&_0x4b447b&&ei(_0x51d389,_0x267339,_0x4b447b),_0x4b447b;},we=(_0x14635a,_0x24cda7)=>(_0x2624ee,_0x3216cb)=>_0x24cda7(_0x2624ee,_0x3216cb,_0x14635a);let se=class extends a[_0xb0c99b(0x3c1)]{constructor(_0xfbd20a,_0xa523ee,_0x5e908a){const _0x2ec0f1=_0xb0c99b;super(),d(this,'_entities',new Map()),d(this,_0x2ec0f1(0x4d5),new v[(_0x2ec0f1(0x349))]()),(this['_univerInstanceService']=_0xfbd20a,this['_injector']=_0xa523ee,this[_0x2ec0f1(0x2c5)]=_0x5e908a,this[_0x2ec0f1(0x41f)]());}[_0xb0c99b(0x11c)](){const _0x20c0cb=_0xb0c99b;super['dispose'](),this[_0x20c0cb(0x4d5)][_0x20c0cb(0x484)](),this[_0x20c0cb(0x3a4)][_0x20c0cb(0x1cb)](_0x54a3d3=>_0x54a3d3[_0x20c0cb(0x11c)]());}[_0xb0c99b(0x2f7)](_0x5c9916){const _0x7c625d=_0xb0c99b;return this[_0x7c625d(0x3a4)]['has'](_0x5c9916)?this[_0x7c625d(0x3a4)]['get'](_0x5c9916)['cursorInfo$']:this[_0x7c625d(0x4d5)][_0x7c625d(0x3a7)](v['filter'](_0x4e33a0=>_0x4e33a0[_0x7c625d(0x4c3)]===_0x5c9916),v[_0x7c625d(0x22a)](_0x5b49f1=>_0x5b49f1['cursorInfo$']));}[_0xb0c99b(0x41f)](){const _0x41fca9=_0xb0c99b;this[_0x41fca9(0x3fb)][_0x41fca9(0x2a4)](a[_0x41fca9(0x111)]['UNIVER_SHEET'])['pipe'](v[_0x41fca9(0x450)](this[_0x41fca9(0x495)]))['subscribe'](async _0x511d71=>{const _0x3ef23a=_0x41fca9,_0x26297b=_0x511d71[_0x3ef23a(0x4dd)](),_0x2c1305=await this['_startSheetCollabCursor'](_0x26297b);this['_entityInit$'][_0x3ef23a(0x3c7)](_0x2c1305),this[_0x3ef23a(0x3a4)][_0x3ef23a(0x4d0)](_0x26297b,_0x2c1305);}),this[_0x41fca9(0x3fb)][_0x41fca9(0x2a4)](a[_0x41fca9(0x111)][_0x41fca9(0x254)])[_0x41fca9(0x3a7)](v[_0x41fca9(0x450)](this['dispose$']))[_0x41fca9(0x3a7)](v[_0x41fca9(0x13b)](_0x11820b=>!_0x11820b['getUnitId']()['startsWith']('__')))[_0x41fca9(0x33b)](async _0x3d0d52=>{const _0x1121ba=_0x41fca9,_0x2f4552=_0x3d0d52[_0x1121ba(0x4dd)](),_0x1ad743=await this[_0x1121ba(0x45c)](_0x2f4552);this[_0x1121ba(0x4d5)][_0x1121ba(0x3c7)](_0x1ad743),this[_0x1121ba(0x3a4)][_0x1121ba(0x4d0)](_0x2f4552,_0x1ad743);}),v[_0x41fca9(0x387)](this[_0x41fca9(0x3fb)][_0x41fca9(0x1a4)](a[_0x41fca9(0x111)][_0x41fca9(0x254)]),this[_0x41fca9(0x3fb)]['getTypeOfUnitDisposed$'](a[_0x41fca9(0x111)][_0x41fca9(0x3e6)]))['pipe'](v['takeUntil'](this[_0x41fca9(0x495)]))[_0x41fca9(0x33b)](_0x4c4d73=>{const _0x2daa1b=_0x41fca9,_0x12ce9a=_0x4c4d73[_0x2daa1b(0x4dd)](),_0x17060b=this['_entities'][_0x2daa1b(0x1a0)](_0x12ce9a);_0x17060b&&(_0x17060b[_0x2daa1b(0x11c)](),this[_0x2daa1b(0x3a4)][_0x2daa1b(0x456)](_0x12ce9a));});}async[_0xb0c99b(0x4a4)](_0x23a437){const _0x1dfd66=_0xb0c99b,_0x100aee=await this[_0x1dfd66(0x2c5)]['requireSession'](_0x23a437),_0x190d44=this[_0x1dfd66(0x12f)][_0x1dfd66(0x29b)](He,_0x23a437,_0x100aee);return _0x190d44['init'](),_0x190d44;}async[_0xb0c99b(0x45c)](_0x5486f1){const _0x5a9a3f=_0xb0c99b,_0x559ad4=await this[_0x5a9a3f(0x2c5)][_0x5a9a3f(0x230)](_0x5486f1),_0x40059a=this[_0x5a9a3f(0x12f)][_0x5a9a3f(0x29b)](xe,_0x5486f1,_0x559ad4);return _0x40059a[_0x5a9a3f(0x188)](),_0x40059a;}};se=si([a[_0xb0c99b(0x10c)](a[_0xb0c99b(0x133)]['Starting'],se),we(0x0,a[_0xb0c99b(0x49b)]),we(0x1,a['Inject'](a['Injector'])),we(0x2,a['Inject'](exports[_0xb0c99b(0x28a)]))],se);const ue=0x14,rt=0xc8,Me=0x4,ii=0x5;function ni(_0x3f6242,_0x171ac6){const _0x3f2295=_0xb0c99b;let {radius:_0xc2c4b,width:_0x48ed68,height:_0x479788}=_0x171ac6;_0xc2c4b=_0xc2c4b!=null?_0xc2c4b:0x0,_0x48ed68=_0x48ed68!=null?_0x48ed68:0x1e,_0x479788=_0x479788!=null?_0x479788:0x1e;let _0x56133b=0x0,_0x37ddba=0x0,_0x1f3f0c=0x0;_0x56133b=_0x37ddba=_0x1f3f0c=Math[_0x3f2295(0x2f1)](_0xc2c4b,_0x48ed68/0x2,_0x479788/0x2),_0x3f6242['beginPath'](),_0x3f6242['moveTo'](_0x56133b,0x0),_0x3f6242[_0x3f2295(0x14f)](_0x48ed68-_0x37ddba,0x0),_0x3f6242[_0x3f2295(0x42b)](_0x48ed68-_0x37ddba,_0x37ddba,_0x37ddba,Math['PI']*0x3/0x2,0x0,!0x1),_0x3f6242[_0x3f2295(0x14f)](_0x48ed68,_0x479788-_0x1f3f0c),_0x3f6242[_0x3f2295(0x42b)](_0x48ed68-_0x1f3f0c,_0x479788-_0x1f3f0c,_0x1f3f0c,0x0,Math['PI']/0x2,!0x1),_0x3f6242[_0x3f2295(0x14f)](0x0,_0x479788),_0x3f6242['lineTo'](0x0,_0x56133b),_0x3f6242[_0x3f2295(0x42b)](_0x56133b,_0x56133b,_0x56133b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3f6242['closePath'](),_0x171ac6[_0x3f2295(0xf5)]&&(_0x3f6242[_0x3f2295(0x2d9)](),_0x3f6242[_0x3f2295(0x32f)]=_0x171ac6['fill'],_0x171ac6['fillRule']===_0x3f2295(0x4dc)?_0x3f6242['fill'](_0x3f2295(0x4dc)):_0x3f6242[_0x3f2295(0xf5)](),_0x3f6242[_0x3f2295(0x33d)]());}class Re extends R[_0xb0c99b(0x289)]{constructor(_0x279c09,_0x548505){const _0x488371=_0xb0c99b;super(_0x279c09,_0x548505),d(this,_0x488371(0xe8)),d(this,_0x488371(0x266)),(this[_0x488371(0xe8)]=_0x548505==null?void 0x0:_0x548505['color'],this[_0x488371(0x266)]=_0x548505==null?void 0x0:_0x548505[_0x488371(0x266)]);}static[_0xb0c99b(0x1d8)](_0x3e33a0,_0x3a8561){const _0x5d8072=_0xb0c99b,{text:_0x3c1ec3,color:_0x37b4c}=_0x3a8561;_0x3e33a0[_0x5d8072(0x2d9)](),_0x3e33a0['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x26c6ad=_0x3e33a0[_0x5d8072(0x332)](_0x3c1ec3)['width'],_0x165ac0=Math[_0x5d8072(0x2f1)](_0x26c6ad+0x2*Me,rt);ni(_0x3e33a0,{'height':ue,'radius':0x4,'width':_0x165ac0,'fill':_0x37b4c,'evented':!0x1}),_0x3e33a0['fillStyle']=_0x5d8072(0x123);const _0x169ff9=Me,_0x4c8e70=ue-ii,_0x26eed1=rt-0x2*Me;if(_0x26c6ad>_0x26eed1){let _0x2243d3='',_0x5529ff=0x0;for(const _0x5b1d09 of _0x3c1ec3){const _0x589a6b=_0x3e33a0[_0x5d8072(0x332)](_0x5b1d09)[_0x5d8072(0x46e)];if(_0x5529ff+_0x589a6b<=_0x26eed1-_0x3e33a0[_0x5d8072(0x332)](_0x5d8072(0x265))[_0x5d8072(0x46e)])_0x2243d3+=_0x5b1d09,_0x5529ff+=_0x589a6b;else{_0x2243d3+=_0x5d8072(0x265);break;}}_0x3e33a0[_0x5d8072(0x35f)](_0x2243d3,_0x169ff9,_0x4c8e70);}else _0x3e33a0['fillText'](_0x3c1ec3,_0x169ff9,_0x4c8e70);_0x3e33a0[_0x5d8072(0x33d)]();}[_0xb0c99b(0x17a)](_0x5a94ff){Re['drawWith'](_0x5a94ff,this);}}const Ne=_0xb0c99b(0x278),ri=_0xb0c99b(0x15f),oi='collab-rect-range-',ce=0x6,ai=1.5,Le=0x4,ci=1.5,li=_0xb0c99b(0x31c);class ot{constructor(_0x2fa8cc,_0x4f1239,_0x278fa3,_0x3cfed4){const _0x25bdcd=_0xb0c99b;d(this,_0x25bdcd(0x32e),[]),d(this,_0x25bdcd(0x2a2),null),d(this,_0x25bdcd(0x161),null),d(this,'_anchorDot',null),d(this,_0x25bdcd(0x138),null),d(this,_0x25bdcd(0x3f2),null),(this['_cursor']=_0x2fa8cc,this[_0x25bdcd(0x2a0)]=_0x4f1239,this[_0x25bdcd(0x383)]=_0x278fa3,this['_document']=_0x3cfed4,this[_0x25bdcd(0x3ed)]());}set['_hover'](_0x4ccc23){const _0x365462=_0xb0c99b;_0x4ccc23?(this['_anchorDot']&&this[_0x365462(0x36e)][_0x365462(0x22f)](),this[_0x365462(0x161)]&&this[_0x365462(0x161)][_0x365462(0x126)]()):(this['_anchorDot']&&this[_0x365462(0x36e)]['show'](),this[_0x365462(0x161)]&&this[_0x365462(0x161)][_0x365462(0x22f)]());}[_0xb0c99b(0x11c)](){const _0x52639f=_0xb0c99b;for(const _0x9624b3 of this[_0x52639f(0x32e)])_0x9624b3[_0x52639f(0x11c)]();this[_0x52639f(0x161)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x52639f(0x11c)](),this[_0x52639f(0x2a2)]&&this[_0x52639f(0x2a2)][_0x52639f(0x11c)](),this[_0x52639f(0x3f2)]&&this[_0x52639f(0x3f2)]();}['_render'](){const _0x28e1e8=_0xb0c99b;var _0x4137ed;const {_docSkeleton:_0xba9a77,_document:_0x3a80b6}=this,{color:_0x106922,name:_0x1647e0,ranges:_0x3dbf87}=this['_cursor'],_0x39c0df=_0x3a80b6[_0x28e1e8(0x3f0)](),{docsLeft:_0xd2add8,docsTop:_0x37f63e}=_0x39c0df,_0x44ca0a=new w[(_0x28e1e8(0x28f))](_0x39c0df,_0xba9a77);for(const {startOffset:_0x3fe9e1,endOffset:_0x107312,collapsed:_0x1c273e,isActive:_0xa7a838}of _0x3dbf87){const _0x1f38a9=_0xba9a77['findNodePositionByCharIndex'](_0x3fe9e1),_0x583852=_0xba9a77[_0x28e1e8(0x113)](_0x107312);if(_0xa7a838){const {contentBoxPointGroup:_0x4f4f1c}=_0x44ca0a[_0x28e1e8(0x43d)](_0x583852,_0x583852);if(_0x4f4f1c['length']===0x0)continue;this[_0x28e1e8(0x3f5)](_0x106922,_0x4f4f1c,_0xd2add8,_0x37f63e,_0x1647e0),this[_0x28e1e8(0x3f2)]=this['_handleHover']();}if(!_0x1c273e&&_0x1f38a9&&_0x583852){if(w['isValidRectRange'](_0x1f38a9,_0x583852)){const _0x3fd644=new w[(_0x28e1e8(0x431))](_0x39c0df,_0xba9a77),{pointGroup:_0xc98308}=(_0x4137ed=_0x3fd644[_0x28e1e8(0x43d)](_0x1f38a9,_0x583852))!=null?_0x4137ed:{};if(_0xc98308==null||_0xc98308['length']===0x0)continue;this[_0x28e1e8(0x3c0)](_0x106922,_0xc98308,_0xd2add8,_0x37f63e);}else{const {contentBoxPointGroup:_0x5348ff}=_0x44ca0a[_0x28e1e8(0x43d)](_0x1f38a9,_0x583852);if(_0x5348ff[_0x28e1e8(0x23c)]===0x0)continue;this[_0x28e1e8(0x2b3)](_0x106922,_0x5348ff,_0xd2add8,_0x37f63e);}}}}[_0xb0c99b(0x3f5)](_0x39a65b,_0x51a4c1,_0xcc1bce,_0x1f0199,_0x22c850){const _0x254e68=_0xb0c99b,_0x5ee4fd=this[_0x254e68(0x41c)](_0x51a4c1),{left:_0x25967a,top:_0x41f21b,height:_0x217aa8}=_0x5ee4fd,_0x3a3c93=this['_getScale'](),_0xb4d4d0=ci/_0x3a3c93,_0x2f9755=new R['Rect'](Ne+a['Tools'][_0x254e68(0x36a)](ce),{'left':_0x25967a+_0xcc1bce-_0xb4d4d0,'top':_0x41f21b+_0x1f0199,'height':_0x217aa8,'width':ai,'fill':_0x39a65b||R[_0x254e68(0xed)](a[_0x254e68(0x13d)]['black'],0x0),'strokeWidth':_0xb4d4d0,'stroke':li,'evented':!0x0});this[_0x254e68(0x2a2)]=_0x2f9755,this['_scene'][_0x254e68(0x40c)](_0x2f9755,w[_0x254e68(0x1a8)]);const _0xcbd86d=new R[(_0x254e68(0x15c))](Ne+a['Tools'][_0x254e68(0x36a)](ce),{'left':_0x25967a+_0xcc1bce-_0xb4d4d0,'top':_0x41f21b+_0x1f0199-Le/0x2,'height':Le,'width':Le,'fill':_0x39a65b||R[_0x254e68(0xed)](a[_0x254e68(0x13d)][_0x254e68(0x1d4)],0x0),'strokeWidth':0x0,'stroke':_0x39a65b||R[_0x254e68(0xed)](a[_0x254e68(0x13d)][_0x254e68(0x1d4)],0x0),'evented':!0x1});this['_anchorDot']=_0xcbd86d,this[_0x254e68(0x2a0)][_0x254e68(0x40c)](_0xcbd86d,w[_0x254e68(0x1a8)]);const _0xda7711=new Re(Ne+a[_0x254e68(0x286)][_0x254e68(0x36a)](ce),{'left':_0x25967a+_0xcc1bce-_0xb4d4d0,'top':_0x41f21b+_0x1f0199-ue,'text':_0x22c850,'color':_0x39a65b});this[_0x254e68(0x161)]=_0xda7711,this[_0x254e68(0x2a0)][_0x254e68(0x40c)](_0xda7711,w[_0x254e68(0x1a8)]),this[_0x254e68(0x4f5)]=!0x1;}[_0xb0c99b(0x29e)](){const _0x44d6db=_0xb0c99b,_0x4400f1=this[_0x44d6db(0x2a2)][_0x44d6db(0x235)][_0x44d6db(0x15d)](()=>{this['_hover']=!0x0;}),_0xbb4d39=this[_0x44d6db(0x2a2)][_0x44d6db(0x100)]['subscribeEvent'](()=>{const _0x32d167=_0x44d6db;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x32d167(0x138)]=setTimeout(()=>{const _0x1eb30c=_0x32d167;this[_0x1eb30c(0x4f5)]=!0x1;},0x7d0);});return()=>{_0x4400f1['unsubscribe'](),_0xbb4d39['unsubscribe']();};}[_0xb0c99b(0x2b3)](_0x41a613,_0x5e1db7,_0x44cbd4,_0x1e76a0){const _0x27e2c8=_0xb0c99b,_0x513f53=new a[(_0x27e2c8(0x312))](_0x41a613)[_0x27e2c8(0x372)](0.2)[_0x27e2c8(0x2bb)](),_0xb9a98a=new R[(_0x27e2c8(0x11d))](ri+a[_0x27e2c8(0x286)][_0x27e2c8(0x36a)](ce),{'pointsGroup':_0x5e1db7,'fill':_0x513f53||R['getColor'](a[_0x27e2c8(0x13d)]['black'],0.2),'left':_0x44cbd4,'top':_0x1e76a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27e2c8(0x32e)][_0x27e2c8(0x2da)](_0xb9a98a),this[_0x27e2c8(0x2a0)]['addObject'](_0xb9a98a,w[_0x27e2c8(0x1a8)]);}[_0xb0c99b(0x3c0)](_0xfe416,_0x1fde5d,_0x1ae38e,_0x4b2782){const _0x1f2766=_0xb0c99b,_0x22ce67=new a[(_0x1f2766(0x312))](_0xfe416)[_0x1f2766(0x372)](0.2)[_0x1f2766(0x2bb)](),_0x348cbd=new R[(_0x1f2766(0x11d))](oi+a[_0x1f2766(0x286)][_0x1f2766(0x36a)](ce),{'pointsGroup':_0x1fde5d,'fill':_0x22ce67||R[_0x1f2766(0xed)](a[_0x1f2766(0x13d)][_0x1f2766(0x1d4)],0.2),'left':_0x1ae38e,'top':_0x4b2782,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1f2766(0x2da)](_0x348cbd),this[_0x1f2766(0x2a0)][_0x1f2766(0x40c)](_0x348cbd,w[_0x1f2766(0x1a8)]);}[_0xb0c99b(0x41c)](_0x129ec9){const _0x3c70e0=_0x129ec9[0x0],_0x4fe615=_0x3c70e0[0x0],_0x595c19=_0x3c70e0[0x2],{x:_0x507bd8,y:_0x2332cf}=_0x4fe615,{x:_0x15fa16,y:_0x44a177}=_0x595c19;return{'left':_0x507bd8,'top':_0x2332cf,'width':_0x15fa16-_0x507bd8,'height':_0x44a177-_0x2332cf};}[_0xb0c99b(0x108)](){const _0x265921=_0xb0c99b,{scaleX:_0x229fcd,scaleY:_0x3a356b}=this['_scene'][_0x265921(0x255)]();return Math[_0x265921(0x452)](_0x229fcd,_0x3a356b);}}var hi=Object[_0xb0c99b(0x3dd)],_i=Object[_0xb0c99b(0x18e)],ui=(_0x562cb0,_0x3304b0,_0x23ea92,_0xce8754)=>{const _0x958d11=_0xb0c99b;for(var _0x3ce6ca=_0xce8754>0x1?void 0x0:_0xce8754?_i(_0x3304b0,_0x23ea92):_0x3304b0,_0xf6219a=_0x562cb0[_0x958d11(0x23c)]-0x1,_0x29892b;_0xf6219a>=0x0;_0xf6219a--)(_0x29892b=_0x562cb0[_0xf6219a])&&(_0x3ce6ca=(_0xce8754?_0x29892b(_0x3304b0,_0x23ea92,_0x3ce6ca):_0x29892b(_0x3ce6ca))||_0x3ce6ca);return _0xce8754&&_0x3ce6ca&&hi(_0x3304b0,_0x23ea92,_0x3ce6ca),_0x3ce6ca;},de=(_0x35826c,_0x4f71f9)=>(_0xb9c343,_0xba6e1)=>_0x4f71f9(_0xb9c343,_0xba6e1,_0x35826c);let fe=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x229efb,_0x15811a,_0x25ee30,_0xba6d7b,_0x5a7857){const _0x1b66bb=_0xb0c99b;super(),d(this,'_cursorShapes',[]),d(this,_0x1b66bb(0x402),[]),(this[_0x1b66bb(0x24f)]=_0x229efb,this[_0x1b66bb(0x1e2)]=_0x15811a,this[_0x1b66bb(0x47c)]=_0x25ee30,this[_0x1b66bb(0x425)]=_0xba6d7b,this['_themeService']=_0x5a7857,this[_0x1b66bb(0x41f)]());}['_init'](){const _0xf00e3c=_0xb0c99b,_0x4c4e46=this[_0xf00e3c(0x24f)]['unitId'],_0x41eabd=this[_0xf00e3c(0x1e2)];this[_0xf00e3c(0x3d3)](v[_0xf00e3c(0x3ab)]([this[_0xf00e3c(0x47c)][_0xf00e3c(0x2f7)](_0x4c4e46),this[_0xf00e3c(0x4db)][_0xf00e3c(0x27a)]])[_0xf00e3c(0x3a7)](E[_0xf00e3c(0x1af)](([_0x1a7207,_0x2a6a0])=>({'skeleton':_0x41eabd[_0xf00e3c(0x2a7)](),'cursors':[..._0x1a7207['values']()][_0xf00e3c(0x466)](_0x5900f8=>({..._0x5900f8,'color':_0x2a6a0[_0x5900f8['color']]}))})))[_0xf00e3c(0x33b)](_0xbf2c18=>{const _0x29551c=_0xf00e3c;if(this[_0x29551c(0x219)](),_0xbf2c18){const {skeleton:_0x37bc8f,cursors:_0x529e2b}=_0xbf2c18;this[_0x29551c(0x2c6)](_0x37bc8f,_0x529e2b);}})),this[_0xf00e3c(0x313)](),this[_0xf00e3c(0x2b1)]();}[_0xb0c99b(0x2c6)](_0x325c89,_0x3d6f51){const _0x5857e6=_0xb0c99b,{scene:_0x3e5ac2,mainComponent:_0x1aa4b8}=this[_0x5857e6(0x24f)],_0x54d661=_0x3d6f51[_0x5857e6(0x1af)](_0x5ea00d=>new ot(_0x5ea00d,_0x3e5ac2,_0x325c89,_0x1aa4b8));this['_cursorShapes']=_0x54d661,this[_0x5857e6(0x402)]=_0x3d6f51;}[_0xb0c99b(0x365)](){const _0x47c465=_0xb0c99b;this['_removeCollabCursors']();const {scene:_0x27fffb,mainComponent:_0x2662c1}=this[_0x47c465(0x24f)],_0xdaad7d=this[_0x47c465(0x1e2)][_0x47c465(0x2a7)](),_0x5b745f=this[_0x47c465(0x402)][_0x47c465(0x1af)](_0x11dfef=>new ot(_0x11dfef,_0x27fffb,_0xdaad7d,_0x2662c1));this[_0x47c465(0x1ff)]=_0x5b745f;}[_0xb0c99b(0x219)](){const _0x4782ca=_0xb0c99b;this[_0x4782ca(0x1ff)]['forEach'](_0x17f330=>_0x17f330[_0x4782ca(0x11c)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x46bfd0=_0xb0c99b,_0x576626=[w['SetDocZoomRatioOperation']['id']];this[_0x46bfd0(0x3d3)](this['_commandService'][_0x46bfd0(0x2ac)](_0x30f94e=>{const _0x58984f=_0x46bfd0;_0x576626[_0x58984f(0x1ed)](_0x30f94e['id'])&&_0x30f94e[_0x58984f(0x2e3)][_0x58984f(0x13a)]===this[_0x58984f(0x24f)][_0x58984f(0x13a)]&&this[_0x58984f(0x365)]();}));}[_0xb0c99b(0x313)](){const _0x584749=_0xb0c99b;this['disposeWithMe'](a[_0x584749(0x4d2)](this['_context'][_0x584749(0x246)][_0x584749(0x157)])['pipe'](E['filter'](_0x220648=>_0x220648[_0x584749(0x498)]===R[_0x584749(0x46d)][_0x584749(0x105)]),E[_0x584749(0x101)](0x10))[_0x584749(0x33b)](()=>{const _0x1ba18d=_0x584749;this[_0x1ba18d(0x365)]();}));}};fe=ui([a[_0xb0c99b(0x10c)](a['LifecycleStages'][_0xb0c99b(0x369)],fe),de(0x1,a[_0xb0c99b(0x455)](V['DocSkeletonManagerService'])),de(0x2,a['Inject'](se)),de(0x3,a[_0xb0c99b(0x47e)]),de(0x4,a['Inject'](a[_0xb0c99b(0x4be)]))],fe);const di=0x1,Si=1.5;class Ot extends R['Shape']{constructor(_0x4053aa,_0x589940){const _0x54078d=_0xb0c99b;super(_0x4053aa,_0x589940),d(this,'_color'),d(this,_0x54078d(0x257),!0x1),d(this,'_range'),d(this,_0x54078d(0x322),''),d(this,_0x54078d(0x114),'top'),d(this,_0x54078d(0x162)),(_0x589940&&this[_0x54078d(0x1eb)](_0x589940),this[_0x54078d(0x235)]['subscribeEvent'](()=>this[_0x54078d(0x1eb)]({'hovered':!0x0})),this[_0x54078d(0x100)][_0x54078d(0x15d)](()=>this[_0x54078d(0x1eb)]({'hovered':!0x1})));}[_0xb0c99b(0x1eb)](_0x176aa0){const _0xb0228d=_0xb0c99b;var _0x4a7abd,_0x2ea4a8,_0x12aa2c,_0x4696f1,_0x2969e2,_0x19a059;this[_0xb0228d(0x43a)]=(_0x4a7abd=_0x176aa0[_0xb0228d(0xe8)])!=null?_0x4a7abd:this['_color'],this[_0xb0228d(0x257)]=(_0x2ea4a8=_0x176aa0[_0xb0228d(0x236)])!=null?_0x2ea4a8:this['_hovered'],this['_range']=(_0x12aa2c=_0x176aa0[_0xb0228d(0x4ec)])!=null?_0x12aa2c:this[_0xb0228d(0x186)],this[_0xb0228d(0x322)]=(_0x4696f1=_0x176aa0[_0xb0228d(0x29d)])!=null?_0x4696f1:this[_0xb0228d(0x322)],this[_0xb0228d(0x114)]=(_0x2969e2=_0x176aa0['labelPosition'])!=null?_0x2969e2:this[_0xb0228d(0x114)],this[_0xb0228d(0x162)]=(_0x19a059=_0x176aa0[_0xb0228d(0x233)])!=null?_0x19a059:this['_backgroundColor'],this[_0xb0228d(0x251)]({'width':_0x176aa0[_0xb0228d(0x46e)],'height':_0x176aa0['height']});}[_0xb0c99b(0x470)](_0x4732cd){const _0x27ef4c=_0xb0c99b,{row:_0x4fb839,column:_0x4e9367}=_0x4732cd;if(_0x4fb839>=this[_0x27ef4c(0x186)][_0x27ef4c(0x4f9)]&&_0x4fb839<=this[_0x27ef4c(0x186)][_0x27ef4c(0x368)]&&_0x4e9367>=this['_range']['startColumn']&&_0x4e9367<=this[_0x27ef4c(0x186)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x27ef4c(0x1eb)]({'hovered':!0x1});}[_0xb0c99b(0xfd)](_0x572e0e){return!0x1;}[_0xb0c99b(0x17a)](_0x47d6d7){const _0x2fbcf4=_0xb0c99b;R[_0x2fbcf4(0x15c)][_0x2fbcf4(0x1d8)](_0x47d6d7,{'width':this[_0x2fbcf4(0x46e)],'height':this[_0x2fbcf4(0x19d)],'strokeWidth':Si,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2fbcf4(0x162)]}),this[_0x2fbcf4(0x257)]&&(_0x47d6d7[_0x2fbcf4(0x2d9)](),_0x47d6d7[_0x2fbcf4(0x36f)](0x1,0x0,0x0,0x1,this[_0x2fbcf4(0x46e)],this[_0x2fbcf4(0x114)]===_0x2fbcf4(0x4ce)?0x0:-ue),Re[_0x2fbcf4(0x1d8)](_0x47d6d7,{'text':this[_0x2fbcf4(0x322)],'color':this[_0x2fbcf4(0x43a)]}),_0x47d6d7[_0x2fbcf4(0x33d)]());}}var vi=Object[_0xb0c99b(0x3dd)],fi=Object[_0xb0c99b(0x18e)],gi=(_0x508d02,_0x39c179,_0x2ce306,_0x3e45fa)=>{const _0x598606=_0xb0c99b;for(var _0x770f19=_0x3e45fa>0x1?void 0x0:_0x3e45fa?fi(_0x39c179,_0x2ce306):_0x39c179,_0x5f0a91=_0x508d02[_0x598606(0x23c)]-0x1,_0x14f950;_0x5f0a91>=0x0;_0x5f0a91--)(_0x14f950=_0x508d02[_0x5f0a91])&&(_0x770f19=(_0x3e45fa?_0x14f950(_0x39c179,_0x2ce306,_0x770f19):_0x14f950(_0x770f19))||_0x770f19);return _0x3e45fa&&_0x770f19&&vi(_0x39c179,_0x2ce306,_0x770f19),_0x770f19;},Ae=(_0x47b426,_0x4fe06a)=>(_0x306816,_0x579352)=>_0x4fe06a(_0x306816,_0x579352,_0x47b426);const mi=0x1389;let ke=class extends a['RxDisposable']{constructor(_0x46bcf5,_0x40b4d0,_0x4ac27e,_0x48b486){const _0x270aa2=_0xb0c99b;super(),d(this,_0x270aa2(0x402),new Set()),d(this,_0x270aa2(0x4a2),null),(this[_0x270aa2(0x24f)]=_0x46bcf5,this[_0x270aa2(0x4b7)]=_0x40b4d0,this[_0x270aa2(0x47c)]=_0x4ac27e,this['_themeService']=_0x48b486,this[_0x270aa2(0x41f)]());}[_0xb0c99b(0x41f)](){const _0x2006b2=_0xb0c99b;this['_sheetSkeletonManagerService'][_0x2006b2(0x47a)][_0x2006b2(0x3a7)](E['takeUntil'](this[_0x2006b2(0x495)]),E[_0x2006b2(0x22a)](_0x5cc900=>{const _0x2a3af1=_0x2006b2;if(_0x5cc900){const _0x2b893f=_0x5cc900['sheetId'];return v[_0x2a3af1(0x3ab)](this['_collabCursorController']['getCollabCursors$'](this[_0x2a3af1(0x24f)][_0x2a3af1(0x13a)]),this[_0x2a3af1(0x4db)][_0x2a3af1(0x27a)])['pipe'](E['map'](([_0x132a70,_0x4d488b])=>{const _0x5a636e=_0x2a3af1,_0x2a4a1c=new Map();return _0x132a70[_0x5a636e(0x1cb)]((_0x246ea3,_0x2565d7)=>{const _0x3a1e8c=_0x5a636e;if(_0x246ea3['sheetID']===_0x2b893f){const _0x173f2a={..._0x246ea3};_0x173f2a['color']=_0x4d488b[_0x246ea3[_0x3a1e8c(0xe8)]],_0x2a4a1c[_0x3a1e8c(0x4d0)](_0x2565d7,_0x173f2a);}}),{'skeleton':_0x5cc900,'cursors':_0x2a4a1c};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x430c3e,cursors:_0x46f82d})=>{const _0xb525fe=_0x2006b2;this[_0xb525fe(0x219)](),_0x430c3e&&this[_0xb525fe(0x2c6)](_0x430c3e,_0x46f82d);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x4d364c=>{const _0x5609ce=_0x2006b2;if(_0x4d364c==null)return;const {skeleton:_0x2288fd}=_0x4d364c,{scene:_0x2bf1be}=this[_0x5609ce(0x24f)];_0x2bf1be[_0x5609ce(0x449)][_0x5609ce(0x15d)](a[_0x5609ce(0x301)](_0x3ff6cb=>{const _0x350aac=_0x5609ce;var _0x9c77c5,_0x19f4e8;const {offsetX:_0x455540,offsetY:_0x3c304c}=_0x3ff6cb,{x:_0x1773e0,y:_0x84dfc9}=_0x2bf1be['getRelativeToViewportCoord'](R[_0x350aac(0x12b)][_0x350aac(0x103)]([_0x455540,_0x3c304c])),{scaleX:_0x3da324,scaleY:_0x5de984}=_0x2bf1be[_0x350aac(0x255)](),_0x1836ed=_0x2bf1be['getViewport'](te[_0x350aac(0x277)]['VIEW_MAIN']),_0x532465=_0x2bf1be[_0x350aac(0x1f8)](R['Vector2'][_0x350aac(0x103)]([_0x1773e0,_0x84dfc9]),_0x1836ed),_0x4a8251=_0x2288fd[_0x350aac(0x3b2)](_0x455540,_0x3c304c,_0x3da324,_0x5de984,_0x532465);((_0x9c77c5=this[_0x350aac(0x4a2)])==null?void 0x0:_0x9c77c5['column'])===_0x4a8251[_0x350aac(0x45f)]&&((_0x19f4e8=this[_0x350aac(0x4a2)])==null?void 0x0:_0x19f4e8[_0x350aac(0x400)])===_0x4a8251['row']||this[_0x350aac(0x402)][_0x350aac(0x1cb)](_0x3b052b=>{const _0x3e8ba5=_0x350aac;_0x3b052b[_0x3e8ba5(0x470)](_0x4a8251);});},0x64));});}['_updateCollabCursors'](_0x7767e1,_0x25ea18){const _0x5c8f62=_0xb0c99b;var _0x1cfd16;const _0x469c00=(_0x1cfd16=this[_0x5c8f62(0x4b7)][_0x5c8f62(0x1d6)]())==null?void 0x0:_0x1cfd16[_0x5c8f62(0x261)];if(!_0x469c00)return;const _0x54d1d5=this[_0x5c8f62(0x3c4)]();if(!_0x54d1d5)return;this['_cursors']['forEach'](_0x420ca3=>{const _0x6540f8=_0x5c8f62;_0x420ca3[_0x6540f8(0x475)]();});const {scene:_0x259989}=_0x54d1d5,_0x1f6847=Ii(Array[_0x5c8f62(0x4da)](_0x25ea18['values']()))['map'](_0x235b1d=>{const _0x1cddc3=_0x5c8f62,{color:_0x2820eb,range:_0x631f81,name:_0x39788a,selection:_0x2d03a5,sheetID:_0x162c27}=_0x235b1d,{startColumn:_0x59f8dc,startRow:_0x3c412b,endColumn:_0x5cb460,endRow:_0x51a942}=_0x631f81,_0x603f15=te['getCoordByCell'](_0x3c412b,_0x59f8dc,_0x259989,_0x469c00),_0x3f6eee=te[_0x1cddc3(0x1ab)](_0x51a942,_0x5cb460,_0x259989,_0x469c00),{columnHeaderHeightAndMarginTop:_0x1ac8e3}=_0x469c00,{startX:_0x18159c,startY:_0x26c82c}=_0x603f15,{endX:_0x58cecf,endY:_0x818cbe}=_0x3f6eee,_0x230530=_0x58cecf-_0x18159c,_0xf7ea67=_0x818cbe-_0x26c82c,_0x59c43e={'labelPosition':_0x26c82c-_0x1ac8e3>=ue?_0x1cddc3(0x173):_0x1cddc3(0x4ce),'sheetID':_0x162c27,'range':_0x631f81,'color':_0x2820eb,'name':_0x39788a,'selection':_0x2d03a5,'left':_0x18159c,'top':_0x26c82c,'width':_0x230530,'height':_0xf7ea67,'evented':!0x1,'zIndex':mi};return new Ot(_0x39788a,_0x59c43e);});_0x259989['addObjects'](_0x1f6847,di),this[_0x5c8f62(0x402)]=new Set(_0x1f6847);}[_0xb0c99b(0x219)](){const _0x119539=_0xb0c99b;var _0xcbe75;(_0xcbe75=this['_cursors'])==null||_0xcbe75[_0x119539(0x1cb)](_0xb1041=>_0xb1041[_0x119539(0x11c)]());}[_0xb0c99b(0x3c4)](){const _0x4acf5b=_0xb0c99b;return te[_0x4acf5b(0x362)](this[_0x4acf5b(0x24f)][_0x4acf5b(0x41d)],this[_0x4acf5b(0x24f)]);}};ke=gi([Ae(0x1,a[_0xb0c99b(0x455)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](se)),Ae(0x3,a[_0xb0c99b(0x455)](a['ThemeService']))],ke);function Ii(_0x22f68d){const _0xcf5078=_0xb0c99b,_0x2b247d=new Map();return _0x22f68d[_0xcf5078(0x1cb)](_0x73d556=>{const _0x10203d=_0xcf5078;if(_0x2b247d[_0x10203d(0x191)](_0x73d556['selection'])){const _0x5d3624=_0x2b247d[_0x10203d(0x1a0)](_0x73d556['selection']);_0x5d3624['name']+=',\x20'+_0x73d556[_0x10203d(0x29d)];}else _0x2b247d['set'](_0x73d556[_0x10203d(0x296)],_0x73d556);}),Array[_0xcf5078(0x4da)](_0x2b247d[_0xcf5078(0x3f4)]());}var M=function(){const _0x59acda=_0xb0c99b;return M=Object[_0x59acda(0x17d)]||function(_0x3d968d){const _0x36fb1f=_0x59acda;for(var _0x492dbc,_0x4af869=0x1,_0x516f79=arguments['length'];_0x4af869<_0x516f79;_0x4af869++){_0x492dbc=arguments[_0x4af869];for(var _0x39e04e in _0x492dbc)Object[_0x36fb1f(0x28b)][_0x36fb1f(0x41e)][_0x36fb1f(0x2f5)](_0x492dbc,_0x39e04e)&&(_0x3d968d[_0x39e04e]=_0x492dbc[_0x39e04e]);}return _0x3d968d;},M[_0x59acda(0x48f)](this,arguments);},pi=function(_0x3aea4a,_0x2e8398){const _0x2bd2ae=_0xb0c99b;var _0x5d1697={};for(var _0x3d3447 in _0x3aea4a)Object[_0x2bd2ae(0x28b)][_0x2bd2ae(0x41e)][_0x2bd2ae(0x2f5)](_0x3aea4a,_0x3d3447)&&_0x2e8398[_0x2bd2ae(0x1e6)](_0x3d3447)<0x0&&(_0x5d1697[_0x3d3447]=_0x3aea4a[_0x3d3447]);if(_0x3aea4a!=null&&typeof Object[_0x2bd2ae(0x320)]==_0x2bd2ae(0x40f)){for(var _0x3157d7=0x0,_0x3d3447=Object['getOwnPropertySymbols'](_0x3aea4a);_0x3157d7<_0x3d3447['length'];_0x3157d7++)_0x2e8398[_0x2bd2ae(0x1e6)](_0x3d3447[_0x3157d7])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x2bd2ae(0x2f5)](_0x3aea4a,_0x3d3447[_0x3157d7])&&(_0x5d1697[_0x3d3447[_0x3157d7]]=_0x3aea4a[_0x3d3447[_0x3157d7]]);}return _0x5d1697;},qe=U[_0xb0c99b(0x231)](function(_0x2b68b9,_0x91c10d){const _0x3fdb0b=_0xb0c99b;var _0x463484=_0x2b68b9[_0x3fdb0b(0x18c)],_0x5831d1=_0x2b68b9['id'],_0xedeea7=_0x2b68b9[_0x3fdb0b(0x2fd)],_0x3d62ed=_0x2b68b9[_0x3fdb0b(0x1f9)],_0x425baa=pi(_0x2b68b9,[_0x3fdb0b(0x18c),'id','className',_0x3fdb0b(0x1f9)]),_0x584fff=_0x3fdb0b(0x3ad)['concat'](_0x5831d1,'\x20')[_0x3fdb0b(0x373)](_0xedeea7||'')['trim'](),_0x579588=U[_0x3fdb0b(0x334)]('_'[_0x3fdb0b(0x373)](bi()));return Dt(_0x463484,''[_0x3fdb0b(0x373)](_0x5831d1),{'defIds':_0x463484[_0x3fdb0b(0x1c4)],'idSuffix':_0x579588[_0x3fdb0b(0x433)]},M({'ref':_0x91c10d,'className':_0x584fff},_0x425baa),_0x3d62ed);});function Dt(_0x293115,_0xe44963,_0x9e2b86,_0x2b373d,_0x4349ee){const _0x4a24e8=_0xb0c99b;return U[_0x4a24e8(0x1a1)](_0x293115[_0x4a24e8(0x297)],M(M({'key':_0xe44963},Ci(_0x293115,_0x9e2b86,_0x4349ee)),_0x2b373d),(Ei(_0x293115,_0x9e2b86)[_0x4a24e8(0x1bf)]||[])[_0x4a24e8(0x1af)](function(_0x157dca,_0x2bc9f9){const _0x19967b=_0x4a24e8;return Dt(_0x157dca,''['concat'](_0xe44963,'-')['concat'](_0x293115[_0x19967b(0x297)],'-')[_0x19967b(0x373)](_0x2bc9f9),_0x9e2b86,void 0x0,_0x4349ee);}));}function Ci(_0x3e69e5,_0x265f64,_0xda6c7e){const _0x244f1b=_0xb0c99b;var _0x5377ed=M({},_0x3e69e5[_0x244f1b(0x451)]);_0xda6c7e!=null&&_0xda6c7e[_0x244f1b(0x2d3)]&&_0x5377ed[_0x244f1b(0xf5)]===_0x244f1b(0x2d3)&&(_0x5377ed['fill']=_0xda6c7e[_0x244f1b(0x2d3)]);var _0x1bed91=_0x265f64[_0x244f1b(0x1c4)];return!_0x1bed91||_0x1bed91['length']===0x0||(_0x3e69e5[_0x244f1b(0x297)]===_0x244f1b(0x34e)&&_0x5377ed[_0x244f1b(0x4cf)]&&(_0x5377ed[_0x244f1b(0x4cf)]=_0x5377ed['xlink:href']+_0x265f64[_0x244f1b(0x295)]),Object[_0x244f1b(0x207)](_0x5377ed)[_0x244f1b(0x1cb)](function(_0x155c0c){const _0x84ad64=_0x244f1b;var _0x5d1cd5=_0x155c0c[0x0],_0x15bcaf=_0x155c0c[0x1];typeof _0x15bcaf==_0x84ad64(0x1ad)&&(_0x5377ed[_0x5d1cd5]=_0x15bcaf['replace'](/url\(#(.*)\)/,'url(#$1'[_0x84ad64(0x373)](_0x265f64[_0x84ad64(0x295)],')')));})),_0x5377ed;}function Ei(_0x50a58d,_0x286e68){const _0x46b83f=_0xb0c99b;var _0x42bbd2,_0xd54842=_0x286e68[_0x46b83f(0x1c4)];return!_0xd54842||_0xd54842['length']===0x0?_0x50a58d:_0x50a58d['tag']==='defs'&&(!((_0x42bbd2=_0x50a58d[_0x46b83f(0x1bf)])===null||_0x42bbd2===void 0x0)&&_0x42bbd2[_0x46b83f(0x23c)])?M(M({},_0x50a58d),{'children':_0x50a58d[_0x46b83f(0x1bf)][_0x46b83f(0x1af)](function(_0x31b139){const _0x3f8c8d=_0x46b83f;return typeof _0x31b139[_0x3f8c8d(0x451)]['id']==_0x3f8c8d(0x1ad)&&_0xd54842&&_0xd54842[_0x3f8c8d(0x1e6)](_0x31b139[_0x3f8c8d(0x451)]['id'])>-0x1?M(M({},_0x31b139),{'attrs':M(M({},_0x31b139['attrs']),{'id':_0x31b139[_0x3f8c8d(0x451)]['id']+_0x286e68[_0x3f8c8d(0x295)]})}):_0x31b139;})}):_0x50a58d;}function bi(){const _0x3a2dc8=_0xb0c99b;return Math[_0x3a2dc8(0x441)]()['toString'](0x24)[_0x3a2dc8(0x1bb)](0x2,0x8);}qe[_0xb0c99b(0x37e)]=_0xb0c99b(0x10d);var Ti={'tag':_0xb0c99b(0x405),'attrs':{'fill':_0xb0c99b(0x2f8),'viewBox':_0xb0c99b(0x2ad),'width':_0xb0c99b(0x415),'height':_0xb0c99b(0x415)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'stroke':_0xb0c99b(0x12c),'d':_0xb0c99b(0x4b6),'strokeLinecap':_0xb0c99b(0x2fc),'strokeLinejoin':_0xb0c99b(0x2fc),'strokeWidth':1.2}}]},{'tag':_0xb0c99b(0x25d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb0c99b(0x1b6)},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'fill':_0xb0c99b(0x49d),'d':_0xb0c99b(0x122)}}]}]}],'defIds':['off-line-single_clip0_910_343']},yt=U[_0xb0c99b(0x231)](function(_0x4a9e0e,_0x42c4f3){const _0x5ec06f=_0xb0c99b;return U[_0x5ec06f(0x1a1)](qe,Object[_0x5ec06f(0x17d)]({},_0x4a9e0e,{'id':_0x5ec06f(0x420),'ref':_0x42c4f3,'icon':Ti}));});yt['displayName']='OffLineSingle';var Ri={'tag':_0xb0c99b(0x405),'attrs':{'fill':'none','viewBox':_0xb0c99b(0x17c),'width':'1em','height':_0xb0c99b(0x415)},'children':[{'tag':'g','attrs':{'clipPath':_0xb0c99b(0x147)},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'stroke':_0xb0c99b(0x12c),'d':_0xb0c99b(0x241),'strokeLinecap':_0xb0c99b(0x2fc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb0c99b(0x2d1)},'children':[{'tag':_0xb0c99b(0x36c),'attrs':{'fill':_0xb0c99b(0x49d),'d':_0xb0c99b(0x122),'transform':_0xb0c99b(0x336)}}]}]}],'defIds':[_0xb0c99b(0x2d1)]},Ut=U[_0xb0c99b(0x231)](function(_0x5cf952,_0x338f1e){const _0x28b0ea=_0xb0c99b;return U[_0x28b0ea(0x1a1)](qe,Object[_0x28b0ea(0x17d)]({},_0x5cf952,{'id':'on-line-single','ref':_0x338f1e,'icon':Ri}));});Ut[_0xb0c99b(0x37e)]=_0xb0c99b(0x24e);const Oi='univer-online-status-icon',Di='univer-online-status-title',yi=_0xb0c99b(0x34c),Ui='univer-online',Pi=_0xb0c99b(0x184),le={'onlineStatusIcon':Oi,'onlineStatusTitle':Di,'onlineStatus':yi,'online':Ui,'offline':Pi};function wi(_0x1bec89){const _0x3a40b1=_0xb0c99b;switch(_0x1bec89){case y[_0x3a40b1(0x4ed)]:return _0x3a40b1(0x3c5);case y[_0x3a40b1(0x229)]:return'collabStatus.conflict';case y[_0x3a40b1(0x3d9)]:return _0x3a40b1(0x212);case y[_0x3a40b1(0x3eb)]:return'collabStatus.notCollab';case y[_0x3a40b1(0x256)]:case y[_0x3a40b1(0x1b4)]:case y[_0x3a40b1(0x3de)]:return _0x3a40b1(0x167);case y[_0x3a40b1(0x2c2)]:return'collabStatus.synced';}}function Pt(_0x51dc68){const _0x2a27ce=_0xb0c99b,{status$:_0x1f40cd}=_0x51dc68,_0x29c298=N['useObservable'](_0x1f40cd,y[_0x2a27ce(0x3eb)]),_0x16c241=a[_0x2a27ce(0x4e6)](a[_0x2a27ce(0x472)]),_0x31b068=a[_0x2a27ce(0x4e6)](exports[_0x2a27ce(0x28a)]),_0x5061f1=_0x29c298!==y[_0x2a27ce(0x4ed)],_0x31a134=_0x16c241['t'](wi(_0x29c298)),_0x173aa0=Vt(le[_0x2a27ce(0x3ae)],{[le[_0x2a27ce(0x2f4)]]:_0x5061f1,[le[_0x2a27ce(0x1b8)]]:!_0x5061f1}),_0x495eb6=_0x5061f1?U[_0x2a27ce(0x1a1)](Ut,null):U[_0x2a27ce(0x1a1)](yt,null),_0x552694=U[_0x2a27ce(0x202)](()=>{const _0x18451c=_0x2a27ce;_0x5061f1||_0x31b068[_0x18451c(0x25f)]();},[_0x5061f1,_0x31b068]);function _0x3e1566(){const _0x1c04f6=_0x2a27ce;return U[_0x1c04f6(0x1a1)](_0x1c04f6(0xef),{'className':_0x173aa0,'onClick':_0x552694},U[_0x1c04f6(0x1a1)](_0x1c04f6(0xef),{'className':le[_0x1c04f6(0xee)]},_0x495eb6),U[_0x1c04f6(0x1a1)](_0x1c04f6(0xef),{'className':le[_0x1c04f6(0x344)]},_0x31a134));}return _0x5061f1?_0x3e1566():U[_0x2a27ce(0x1a1)](X[_0x2a27ce(0x127)],{'title':_0x16c241['t'](_0x2a27ce(0x2ff))},_0x3e1566());}var Mi=Object[_0xb0c99b(0x3dd)],Ni=Object[_0xb0c99b(0x18e)],Li=(_0x4ffa8f,_0x53fc3b,_0x2efe13,_0x3544e7)=>{const _0x4083b2=_0xb0c99b;for(var _0x2a6fb1=_0x3544e7>0x1?void 0x0:_0x3544e7?Ni(_0x53fc3b,_0x2efe13):_0x53fc3b,_0x4eea22=_0x4ffa8f[_0x4083b2(0x23c)]-0x1,_0x2a493f;_0x4eea22>=0x0;_0x4eea22--)(_0x2a493f=_0x4ffa8f[_0x4eea22])&&(_0x2a6fb1=(_0x3544e7?_0x2a493f(_0x53fc3b,_0x2efe13,_0x2a6fb1):_0x2a493f(_0x2a6fb1))||_0x2a6fb1);return _0x3544e7&&_0x2a6fb1&&Mi(_0x53fc3b,_0x2efe13,_0x2a6fb1),_0x2a6fb1;},Se=(_0x54d357,_0x3419a7)=>(_0x115aef,_0x3b23bd)=>_0x3419a7(_0x115aef,_0x3b23bd,_0x54d357);exports[_0xb0c99b(0x1ac)]=class extends a[_0xb0c99b(0x463)]{constructor(_0x38027b,_0x1993e7,_0x53bf66,_0x1d0701){const _0x42e118=_0xb0c99b;super(),d(this,_0x42e118(0x4c8),new v[(_0x42e118(0x4b1))](y['NOT_COLLAB'])),(this['_univerInstanceService']=_0x38027b,this['_uiPartsService']=_0x1993e7,this[_0x42e118(0x12f)]=_0x53bf66,this['_collaborationController']=_0x1d0701,this['_initStatusComponent'](),this[_0x42e118(0x12a)]());}[_0xb0c99b(0x12a)](){const _0x439c18=_0xb0c99b;this[_0x439c18(0x3d3)](this[_0x439c18(0x3fb)][_0x439c18(0x203)][_0x439c18(0x3a7)](v[_0x439c18(0x22a)](()=>{const _0x38e90a=_0x439c18,_0x3f9608=this[_0x38e90a(0x3fb)][_0x38e90a(0x345)]();return _0x3f9608?this[_0x38e90a(0x31f)][_0x38e90a(0x253)](_0x3f9608[_0x38e90a(0x4dd)]()):v['of'](null);}),v[_0x439c18(0x22a)](_0x20332f=>_0x20332f?_0x20332f['status$']:v['of'](y[_0x439c18(0x3eb)])))[_0x439c18(0x33b)](_0x4e630a=>{const _0x1e1154=_0x439c18;this[_0x1e1154(0x4c8)][_0x1e1154(0x3c7)](_0x4e630a);}));}[_0xb0c99b(0xf9)](){const _0x39755f=_0xb0c99b;this[_0x39755f(0x3d3)](this[_0x39755f(0x434)][_0x39755f(0x299)](N[_0x39755f(0x2d0)][_0x39755f(0x1fa)],()=>a[_0x39755f(0x104)](Ai({'status$':this['_status$'][_0x39755f(0x3af)]()}),this['_injector'])));}},exports[_0xb0c99b(0x1ac)]=Li([Se(0x0,a[_0xb0c99b(0x49b)]),Se(0x1,N[_0xb0c99b(0x412)]),Se(0x2,a['Inject'](a[_0xb0c99b(0x41a)])),Se(0x3,a[_0xb0c99b(0x455)](exports[_0xb0c99b(0x109)]))],exports[_0xb0c99b(0x1ac)]);function Ai(_0x2f1285){const {status$:_0x59fb3a}=_0x2f1285;return function(){const _0x6fb6cb=_0x4e0f;return U[_0x6fb6cb(0x1a1)](Pt,{'status$':_0x59fb3a});};}const ze=a[_0xb0c99b(0xe6)](_0xb0c99b(0x23e));var $i=Object[_0xb0c99b(0x3dd)],ji=Object[_0xb0c99b(0x18e)],Hi=(_0x249605,_0x2a6a66,_0x43ad81,_0x7b88a6)=>{const _0x369b41=_0xb0c99b;for(var _0x42b525=_0x7b88a6>0x1?void 0x0:_0x7b88a6?ji(_0x2a6a66,_0x43ad81):_0x2a6a66,_0x5d67bf=_0x249605[_0x369b41(0x23c)]-0x1,_0x2afe1d;_0x5d67bf>=0x0;_0x5d67bf--)(_0x2afe1d=_0x249605[_0x5d67bf])&&(_0x42b525=(_0x7b88a6?_0x2afe1d(_0x2a6a66,_0x43ad81,_0x42b525):_0x2afe1d(_0x42b525))||_0x42b525);return _0x7b88a6&&_0x42b525&&$i(_0x2a6a66,_0x43ad81,_0x42b525),_0x42b525;},ee=(_0x178747,_0x9963a5)=>(_0x47b467,_0x532c67)=>_0x9963a5(_0x47b467,_0x532c67,_0x178747);exports[_0xb0c99b(0x1d7)]=class extends a[_0xb0c99b(0x3c1)]{constructor(_0x540e58,_0x3de513,_0x1da8e1,_0x3246cd,_0x55c9dc,_0x528122){const _0xb05b28=_0xb0c99b;super(),this[_0xb05b28(0x4ca)]=_0x540e58,this[_0xb05b28(0x3cd)]=_0x3de513,this[_0xb05b28(0x425)]=_0x1da8e1,this[_0xb05b28(0x40b)]=_0x3246cd,this[_0xb05b28(0x268)]=_0x55c9dc,_0x528122?_0x528122==null||_0x528122['whenReady']()[_0xb05b28(0x20e)](()=>this[_0xb05b28(0x41f)]()):(this[_0xb05b28(0x3cd)]['debug'](_0xb05b28(0x239),_0xb05b28(0x2cd)),this['_init']());}async[_0xb0c99b(0x41f)](){const _0x4d57a7=_0xb0c99b,_0x5e2b5c=this[_0x4d57a7(0x4ca)][_0x4d57a7(0x3ef)]('unit'),_0x2dfc8b=this['_urlService'][_0x4d57a7(0x3ef)](_0x4d57a7(0x498));if(!_0x5e2b5c||!_0x2dfc8b){this[_0x4d57a7(0x3cd)]['debug'](_0x4d57a7(0x239),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2dfc8b)){case $[_0x4d57a7(0x3e6)]:{const _0x231d48=await this[_0x4d57a7(0x18b)](_0x5e2b5c);this[_0x4d57a7(0x4d8)](_0x231d48);break;}case $[_0x4d57a7(0x254)]:{await this[_0x4d57a7(0x39f)](_0x5e2b5c);break;}default:{this[_0x4d57a7(0x3cd)]['error'](_0x4d57a7(0x239),_0x4d57a7(0x24c));break;}}}async['_setupSubUnitSync'](_0xeb80ab){const _0x3379ea=_0xb0c99b;await this[_0x3379ea(0x3e3)](_0xeb80ab),_0xeb80ab['activeSheet$']['pipe'](v[_0x3379ea(0x450)](this[_0x3379ea(0x495)]))[_0x3379ea(0x33b)](_0x190b74=>{const _0x22f070=_0x3379ea;_0x190b74&&this[_0x22f070(0xfa)](_0x190b74);}),this[_0x3379ea(0x4ca)][_0x3379ea(0x3b8)][_0x3379ea(0x3a7)](v['takeUntil'](this[_0x3379ea(0x495)]))[_0x3379ea(0x33b)](()=>this[_0x3379ea(0x3e3)](_0xeb80ab));}[_0xb0c99b(0xfa)](_0x424d0,_0x436e2c=!0x1){const _0x1c0e18=_0xb0c99b,_0x47db3b=this['_urlService']['getParam']('subunit');_0x424d0[_0x1c0e18(0x1fb)]()!==_0x47db3b&&this['_urlService'][_0x1c0e18(0x1b1)]('subunit',_0x424d0[_0x1c0e18(0x1fb)](),_0x436e2c);}async[_0xb0c99b(0x3e3)](_0x3852e9){const _0x5dcc21=_0xb0c99b;var _0x34df55;const _0x2076c6=this[_0x5dcc21(0x4ca)]['getParam']('subunit');if(!_0x2076c6||!_0x3852e9['getSheetBySheetId'](_0x2076c6)){const _0x867095=_0x3852e9[_0x5dcc21(0x23d)]()[0x0],_0x616a56=_0x3852e9[_0x5dcc21(0x134)](_0x867095);if(!_0x616a56)return;this[_0x5dcc21(0xfa)](_0x616a56,!0x0),await this['_commandService'][_0x5dcc21(0x135)](C[_0x5dcc21(0x22d)]['id'],{'unitId':_0x3852e9[_0x5dcc21(0x4dd)](),'subUnitId':_0x867095});return;}((_0x34df55=_0x3852e9[_0x5dcc21(0x1ba)]())==null?void 0x0:_0x34df55[_0x5dcc21(0x1fb)]())!==_0x2076c6&&await this[_0x5dcc21(0x425)][_0x5dcc21(0x135)](C[_0x5dcc21(0x22d)]['id'],{'unitId':_0x3852e9['getUnitId'](),'subUnitId':_0x2076c6});}async[_0xb0c99b(0x18b)](_0x47f867){const _0x23dc17=_0xb0c99b;let _0x3dde54=0x0;const _0x9bc90=await this[_0x23dc17(0x40b)]['loadOfflineData'](_0x47f867);return _0x9bc90&&(_0x9bc90[_0x23dc17(0x249)]||_0x9bc90[_0x23dc17(0x4e4)][_0x23dc17(0x23c)]!==0x0)&&(_0x3dde54=_0x9bc90['rev']),_0x3dde54===0x0&&this['_logService'][_0x23dc17(0x347)](_0x23dc17(0x239),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x23dc17(0x268)]['loadSheet'](_0x47f867,_0x3dde54);}async['_loadDoc'](_0x396ff3){const _0x5066ef=_0xb0c99b;let _0x33a864=0x0;const _0x571429=await this[_0x5066ef(0x40b)][_0x5066ef(0x4e3)](_0x396ff3);return _0x571429&&(_0x571429[_0x5066ef(0x249)]||_0x571429[_0x5066ef(0x4e4)]['length']!==0x0)&&(_0x33a864=_0x571429['rev']),_0x33a864===0x0&&this[_0x5066ef(0x3cd)][_0x5066ef(0x347)](_0x5066ef(0x239),_0x5066ef(0x1cd)),this[_0x5066ef(0x268)]['loadDoc'](_0x396ff3,_0x33a864);}},exports[_0xb0c99b(0x1d7)]=Hi([a[_0xb0c99b(0x10c)](a[_0xb0c99b(0x133)]['Starting'],exports[_0xb0c99b(0x1d7)]),ee(0x0,ze),ee(0x1,a[_0xb0c99b(0x2b2)]),ee(0x2,a[_0xb0c99b(0x47e)]),ee(0x3,a[_0xb0c99b(0x455)](exports['LocalCacheService'])),ee(0x4,a[_0xb0c99b(0x455)](_[_0xb0c99b(0x247)])),ee(0x5,a['Optional'](Wt[_0xb0c99b(0x3e8)]))],exports[_0xb0c99b(0x1d7)]);var xi=Object['defineProperty'],ki=Object['getOwnPropertyDescriptor'],Bi=(_0x2b2849,_0xcc825a,_0x4bfd51,_0x2e08f8)=>{const _0x1588ab=_0xb0c99b;for(var _0x183eeb=_0x2e08f8>0x1?void 0x0:_0x2e08f8?ki(_0xcc825a,_0x4bfd51):_0xcc825a,_0x45a943=_0x2b2849[_0x1588ab(0x23c)]-0x1,_0x47ea12;_0x45a943>=0x0;_0x45a943--)(_0x47ea12=_0x2b2849[_0x45a943])&&(_0x183eeb=(_0x2e08f8?_0x47ea12(_0xcc825a,_0x4bfd51,_0x183eeb):_0x47ea12(_0x183eeb))||_0x183eeb);return _0x2e08f8&&_0x183eeb&&xi(_0xcc825a,_0x4bfd51,_0x183eeb),_0x183eeb;},at=(_0x18f617,_0x21db14)=>(_0x144f76,_0x1130e7)=>_0x21db14(_0x144f76,_0x1130e7,_0x18f617);const Vi=_0xb0c99b(0x360),Wi=_0xb0c99b(0x152);let ge=class extends a[_0xb0c99b(0x463)]{constructor(_0x4b3af9,_0x2b46f4){const _0x53f70a=_0xb0c99b;super(),this['_univerInstanceService']=_0x4b3af9,this[_0x53f70a(0x3ec)]=_0x2b46f4,this['_init']();}[_0xb0c99b(0x41f)](){const _0x397932=_0xb0c99b;this[_0x397932(0x3d3)](a[_0x397932(0x2ef)](this[_0x397932(0x3fb)]['focused$'][_0x397932(0x33b)](()=>{const _0x35b3c2=_0x397932;var _0x5ee97e;const _0x39f5de=this[_0x35b3c2(0x3fb)][_0x35b3c2(0x345)]();let _0x5ce413=(_0x5ee97e=this[_0x35b3c2(0x3ec)][_0x35b3c2(0x2aa)](Vi))!=null?_0x5ee97e:Wi;_0x39f5de instanceof a['Workbook']&&(_0x5ce413=_0x39f5de[_0x35b3c2(0x29d)]),document[_0x35b3c2(0x25c)]=_0x5ce413;})));}};ge=Bi([a[_0xb0c99b(0x10c)](a[_0xb0c99b(0x133)]['Ready'],ge),at(0x0,a[_0xb0c99b(0x49b)]),at(0x1,a[_0xb0c99b(0x195)])],ge);var Fi=Object[_0xb0c99b(0x3dd)],Gi=Object[_0xb0c99b(0x18e)],Yi=(_0x57bce4,_0x2af540,_0x432c50,_0x41b5f4)=>{for(var _0x10bdc3=_0x41b5f4>0x1?void 0x0:_0x41b5f4?Gi(_0x2af540,_0x432c50):_0x2af540,_0x1d8438=_0x57bce4['length']-0x1,_0x44fb83;_0x1d8438>=0x0;_0x1d8438--)(_0x44fb83=_0x57bce4[_0x1d8438])&&(_0x10bdc3=(_0x41b5f4?_0x44fb83(_0x2af540,_0x432c50,_0x10bdc3):_0x44fb83(_0x10bdc3))||_0x10bdc3);return _0x41b5f4&&_0x10bdc3&&Fi(_0x2af540,_0x432c50,_0x10bdc3),_0x10bdc3;},$e=(_0x9e2076,_0x3ee2ad)=>(_0x1f2be2,_0x5dd383)=>_0x3ee2ad(_0x1f2be2,_0x5dd383,_0x9e2076);let Ee=class{constructor(_0x27f742,_0x32e43a,_0x32f5a5){const _0x57f5a0=_0xb0c99b;this[_0x57f5a0(0x3ec)]=_0x27f742,this[_0x57f5a0(0x2e8)]=_0x32e43a,this[_0x57f5a0(0x38e)]=_0x32f5a5,this['init']();}[_0xb0c99b(0x188)](){const _0x1138bd=_0xb0c99b;this[_0x1138bd(0x2e8)][_0x1138bd(0x45d)]({'priority':0x1,'interceptor':(_0x311e06,_0xc90f69)=>_0xc90f69(_0x311e06)[_0x1138bd(0x3a7)](v['concatMap'](async _0x4325c8=>{const _0x482f51=_0x1138bd,_0x2e9368=_0x4325c8;if(_0x2e9368[_0x482f51(0x366)]===0x191&&window[_0x482f51(0x3bf)](this['localeService']['t'](_0x482f51(0x442)))){const _0x43d8b5=window[_0x482f51(0x318)](window[_0x482f51(0x13c)][_0x482f51(0x363)]);window[_0x482f51(0x13c)]['href']=this[_0x482f51(0x49e)]()+_0x482f51(0x386)+_0x43d8b5;}return _0x2e9368;}))});}[_0xb0c99b(0x49e)](){const _0xcef7a=_0xb0c99b;var _0x5957f6,_0x115806;const _0x473c4e=this[_0xcef7a(0x3ec)][_0xcef7a(0x2aa)](mt),_0x4e2ae5=this['_configService'][_0xcef7a(0x2aa)](L);return(_0x115806=(_0x5957f6=_0x4e2ae5==null?void 0x0:_0x4e2ae5[_0xcef7a(0x408)])!=null?_0x5957f6:_0x473c4e)!=null?_0x115806:es;}};Ee=Yi([$e(0x0,a[_0xb0c99b(0x195)]),$e(0x1,a[_0xb0c99b(0x455)](P['HTTPService'])),$e(0x2,a['Inject'](a[_0xb0c99b(0x472)]))],Ee);var Ki=Object['defineProperty'],Xi=Object[_0xb0c99b(0x18e)],qi=(_0x31eec2,_0x3aa9a1,_0xac27ea,_0x3692a2)=>{const _0xf68251=_0xb0c99b;for(var _0x18e595=_0x3692a2>0x1?void 0x0:_0x3692a2?Xi(_0x3aa9a1,_0xac27ea):_0x3aa9a1,_0x33372d=_0x31eec2[_0xf68251(0x23c)]-0x1,_0x550e68;_0x33372d>=0x0;_0x33372d--)(_0x550e68=_0x31eec2[_0x33372d])&&(_0x18e595=(_0x3692a2?_0x550e68(_0x3aa9a1,_0xac27ea,_0x18e595):_0x550e68(_0x18e595))||_0x18e595);return _0x3692a2&&_0x18e595&&Ki(_0x3aa9a1,_0xac27ea,_0x18e595),_0x18e595;},ct=(_0x2f15ac,_0x3765f7)=>(_0x4f6252,_0x29f0b2)=>_0x3765f7(_0x4f6252,_0x29f0b2,_0x2f15ac);const wt=_0xb0c99b(0x2d2),zi=_0xb0c99b(0x3cb);exports[_0xb0c99b(0x4bf)]=class extends a['Disposable']{constructor(_0x8d419a,_0x312dbe){const _0x4c503e=_0xb0c99b;super(),this[_0x4c503e(0x39d)]=_0x8d419a,this[_0x4c503e(0x3ec)]=_0x312dbe,this[_0x4c503e(0x427)]();}[_0xb0c99b(0x427)](){const _0x4db37f=_0xb0c99b,_0x4ea2f9=this;this[_0x4db37f(0x3d3)](this[_0x4db37f(0x39d)][_0x4db37f(0x45d)]({'priority':0x3e7,'interceptor':P[_0x4db37f(0x2e6)]({'isMatch'(_0x568087){const _0x5b10b2=_0x4db37f;var _0x1da5bd;if(_0x568087[_0x5b10b2(0x223)]===_0x5b10b2(0x3f8)&&((_0x1da5bd=_0x568087[_0x5b10b2(0x397)])!=null&&_0x1da5bd[_0x5b10b2(0x4c0)])){const {objectID:_0x338889,objectType:_0x2e15a7}=_0x568087[_0x5b10b2(0x397)]['body']||{};if(!_0x338889||_0x2e15a7===void 0x0)return!0x1;const _0x51e353=_0x4ea2f9[_0x5b10b2(0x31e)]()+'/'+_0x2e15a7+'/object/'+_0x338889+_0x5b10b2(0x4d3);if(_0x568087[_0x5b10b2(0x187)]===_0x51e353)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x39fbf9){const _0x4f334c=_0x4db37f;var _0x352bf5;return(_0x352bf5=_0x39fbf9['requestParams'])==null?void 0x0:_0x352bf5[_0x4f334c(0x4c0)];},'mergeParamsToRequest'(_0x1e83ed,_0x1470d2){const _0x20610c=_0x4db37f,_0x180036=_0x4ea2f9[_0x20610c(0x31e)]()+_0x20610c(0x2e2),_0x14cf9e=_0x1e83ed[_0x20610c(0x4a5)]((_0x452c90,_0xa1fcc)=>{const _0x58969f=_0x20610c,{unitID:_0x18ec0d,objectID:_0x2d7b51,objectType:_0x24a76b,actions:_0x483375}=_0xa1fcc;return _0x452c90[_0x18ec0d]||(_0x452c90[_0x18ec0d]={}),_0x452c90[_0x18ec0d][_0x2d7b51]||(_0x452c90[_0x18ec0d][_0x2d7b51]={'objectID':_0x2d7b51,'objectType':_0x24a76b,'actions':[]}),_0x452c90[_0x18ec0d][_0x2d7b51][_0x58969f(0xff)][_0x58969f(0x2da)](..._0x483375),_0x452c90;},{}),_0x1736af=[];for(const _0x1b9f71 in _0x14cf9e)for(const _0x4de305 in _0x14cf9e[_0x1b9f71]){const {actions:_0x3e8c8d,objectType:_0x251aba}=_0x14cf9e[_0x1b9f71][_0x4de305],_0x5bfa98=[...new Set(_0x3e8c8d)];_0x1736af['push']({'unitID':_0x1b9f71,'objectID':_0x4de305,'objectType':_0x251aba,'actions':_0x5bfa98});}return new P[(_0x20610c(0x306))](_0x20610c(0x3f8),_0x180036,{'headers':_0x1470d2[_0x20610c(0x4ab)],'withCredentials':_0x1470d2['withCredentials'],'responseType':_0x1470d2['responseType'],'body':{'requests':_0x1736af}});}},{'distributeResult'(_0x3a1629,_0x1a7fbc){const _0x2e6d5b=_0x4db37f,{objectActions:_0x5d3765}=_0x3a1629;return _0x1a7fbc[_0x2e6d5b(0x1af)](_0x43208a=>{const _0x21f77c=_0x2e6d5b,{unitID:_0x366b03,objectID:_0x32607b,actions:_0x3b579a}=_0x43208a,_0x43de04=_0x5d3765[_0x21f77c(0x24b)](_0x46a929=>_0x46a929['unitID']===_0x366b03&&_0x46a929['objectID']===_0x32607b),_0x34495c=_0x3b579a[_0x21f77c(0x1af)](_0x45ed46=>_0x43de04==null?void 0x0:_0x43de04['actions']['find'](_0x53338b=>_0x53338b[_0x21f77c(0xf7)]===_0x45ed46))[_0x21f77c(0x13b)](_0x3292c4=>!!_0x3292c4);return{'config':_0x43208a,'result':{'actions':_0x34495c,'error':_0x3a1629[_0x21f77c(0x4d1)]}};});}})}));}[_0xb0c99b(0x31e)](){const _0x1e947f=_0xb0c99b;var _0x20a6b4,_0x4abab5;const _0x358365=this[_0x1e947f(0x3ec)]['getConfig'](wt),_0x443f1a=this['_configService'][_0x1e947f(0x2aa)](L);return(_0x4abab5=(_0x20a6b4=_0x443f1a==null?void 0x0:_0x443f1a[_0x1e947f(0x3ba)])!=null?_0x20a6b4:_0x358365)!=null?_0x4abab5:zi;}async[_0xb0c99b(0x3e1)](_0x192d3c){const _0x54ee3f=_0xb0c99b,_0x208f1e=this[_0x54ee3f(0x31e)]()+'/'+_0x192d3c['objectType']+_0x54ee3f(0x3cf);return(await this[_0x54ee3f(0x39d)]['post'](_0x208f1e,{'body':_0x192d3c}))[_0x54ee3f(0x4c0)][_0x54ee3f(0x32b)]||'';}async['list'](_0x5bbe01){const _0x566a53=_0xb0c99b,_0x507d60=this['_getAPIPrefixPath']()+_0x566a53(0x1c9);return(await this[_0x566a53(0x39d)][_0x566a53(0x3e7)](_0x507d60,{'body':_0x5bbe01}))[_0x566a53(0x4c0)][_0x566a53(0x209)];}async[_0xb0c99b(0x4ae)](_0x202570){const _0x418326=_0xb0c99b,_0x9b3837=this[_0x418326(0x31e)]()+'/'+_0x202570[_0x418326(0x485)]+_0x418326(0x424)+_0x202570[_0x418326(0x32b)];await this[_0x418326(0x39d)][_0x418326(0x4ac)](_0x9b3837,{'body':_0x202570});}async[_0xb0c99b(0x4ee)](_0x1c507b){const _0x41e7e5=_0xb0c99b,_0x187855=this[_0x41e7e5(0x31e)]()+'/'+_0x1c507b[_0x41e7e5(0x485)]+_0x41e7e5(0x424)+_0x1c507b[_0x41e7e5(0x32b)]+'/allowed';return(await this[_0x41e7e5(0x39d)]['post'](_0x187855,{'body':_0x1c507b}))[_0x41e7e5(0x4c0)]['actions'];}async[_0xb0c99b(0x228)](_0xe1ac9c){const _0x20c6ec=_0xb0c99b,_0x3c18a5=this[_0x20c6ec(0x31e)]()+_0x20c6ec(0x2e2);return(await this[_0x20c6ec(0x39d)][_0x20c6ec(0x3e7)](_0x3c18a5,{'body':{'requests':_0xe1ac9c}}))['body'][_0x20c6ec(0x30d)];}async['listRoles'](_0x42acc2){const _0x860c13=_0xb0c99b,_0x46099d=this[_0x860c13(0x31e)]()+'/'+_0x42acc2[_0x860c13(0x485)]+_0x860c13(0x4a7),_0x541d60=await this[_0x860c13(0x39d)]['post'](_0x46099d,{'body':_0x42acc2});return{'roles':_0x541d60[_0x860c13(0x4c0)]['roles'],'actions':_0x541d60[_0x860c13(0x4c0)]['actions']};}async[_0xb0c99b(0x478)](_0xd2da70){const _0x343e3b=_0xb0c99b,_0x32a2ed=this['_getAPIPrefixPath']()+_0x343e3b(0x2b6);await this['_HTTPService'][_0x343e3b(0x456)](_0x32a2ed,{'params':{'collaboratorID':_0xd2da70[_0x343e3b(0x190)],'objectID':_0xd2da70['objectID'],'unitID':_0xd2da70[_0x343e3b(0x4c3)]}});}async[_0xb0c99b(0x1ef)](_0x5696e2){const _0x384e45=_0xb0c99b,_0x4b07c8=this[_0x384e45(0x31e)]()+'/collaborator';await this[_0x384e45(0x39d)][_0x384e45(0x4b0)](_0x4b07c8,{'body':_0x5696e2});}async[_0xb0c99b(0x131)](_0x59a9dc){const _0x1ae020=_0xb0c99b,_0x422631=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1ae020(0x39d)][_0x1ae020(0x3e7)](_0x422631,{'body':_0x59a9dc});}async[_0xb0c99b(0x11e)](_0x172129){const _0x4eb6ad=_0xb0c99b,_0x140f60=this['_getAPIPrefixPath']()+_0x4eb6ad(0x2b6);return(await this[_0x4eb6ad(0x39d)][_0x4eb6ad(0x1a0)](_0x140f60,{'params':{'objectID':_0x172129[_0x4eb6ad(0x32b)],'unitID':_0x172129[_0x4eb6ad(0x4c3)]}}))[_0x4eb6ad(0x4c0)]['collaborators'];}async[_0xb0c99b(0x3a3)](_0x2cf77d){const _0x553678=_0xb0c99b,_0x416c7a=this[_0x553678(0x31e)]()+_0x553678(0x2b6);await this[_0x553678(0x39d)]['put'](_0x416c7a,{'body':_0x2cf77d});}},exports['AuthzIoHttpService']=qi([ct(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)])),ct(0x1,a[_0xb0c99b(0x455)](a[_0xb0c99b(0x195)]))],exports[_0xb0c99b(0x4bf)]);var Ji=Object[_0xb0c99b(0x3dd)],Zi=Object[_0xb0c99b(0x18e)],Qi=(_0xc66aec,_0x5be503,_0x54df9e,_0x5814fc)=>{const _0x318890=_0xb0c99b;for(var _0x3fa31d=_0x5814fc>0x1?void 0x0:_0x5814fc?Zi(_0x5be503,_0x54df9e):_0x5be503,_0x5d7574=_0xc66aec[_0x318890(0x23c)]-0x1,_0x15bb34;_0x5d7574>=0x0;_0x5d7574--)(_0x15bb34=_0xc66aec[_0x5d7574])&&(_0x3fa31d=(_0x5814fc?_0x15bb34(_0x5be503,_0x54df9e,_0x3fa31d):_0x15bb34(_0x3fa31d))||_0x3fa31d);return _0x5814fc&&_0x3fa31d&&Ji(_0x5be503,_0x54df9e,_0x3fa31d),_0x3fa31d;},en=(_0x5dcbeb,_0x1f3038)=>(_0x56cc55,_0x4b7e69)=>_0x1f3038(_0x56cc55,_0x4b7e69,_0x5dcbeb);let be=class{constructor(_0x50d4db){const _0x5ed813=_0xb0c99b;this[_0x5ed813(0x2e8)]=_0x50d4db,this[_0x5ed813(0x4b9)]();}[_0xb0c99b(0x4b9)](){const _0x43158b=_0xb0c99b;this[_0x43158b(0x2e8)][_0x43158b(0x45d)]({'interceptor':(_0x210f54,_0x938d31)=>{const _0x3291ac=_0x43158b,_0x47a917=_0x210f54[_0x3291ac(0x4ab)],_0x502fae=Ft[_0x3291ac(0x148)]();return _0x502fae&&_0x47a917['set'](_0x3291ac(0x146),_0x502fae),_0x938d31(_0x210f54);}});}};be=Qi([en(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)]))],be);var tn=Object['defineProperty'],sn=Object[_0xb0c99b(0x18e)],nn=(_0x3d6003,_0x30598a,_0x591b78,_0x3ac0d2)=>{const _0x2898f5=_0xb0c99b;for(var _0x5eeeb0=_0x3ac0d2>0x1?void 0x0:_0x3ac0d2?sn(_0x30598a,_0x591b78):_0x30598a,_0x15341c=_0x3d6003[_0x2898f5(0x23c)]-0x1,_0x1dbc4c;_0x15341c>=0x0;_0x15341c--)(_0x1dbc4c=_0x3d6003[_0x15341c])&&(_0x5eeeb0=(_0x3ac0d2?_0x1dbc4c(_0x30598a,_0x591b78,_0x5eeeb0):_0x1dbc4c(_0x5eeeb0))||_0x5eeeb0);return _0x3ac0d2&&_0x5eeeb0&&tn(_0x30598a,_0x591b78,_0x5eeeb0),_0x5eeeb0;},je=(_0xc357f,_0x150f97)=>(_0x70a476,_0x5a6771)=>_0x150f97(_0x70a476,_0x5a6771,_0xc357f);const rn=[_0xb0c99b(0x38c),_0xb0c99b(0x154),_0xb0c99b(0x4c6),'image/gif',_0xb0c99b(0x464)],on=0x5*0x400*0x400,an=_0xb0c99b(0x11a),cn=_0xb0c99b(0x4ef),ln='EXCHANGE_SIGN_URL_SERVER_URL_KEY',hn=_0xb0c99b(0x307);exports[_0xb0c99b(0x226)]=class{constructor(_0xa8244f,_0x4ee89c,_0x2fef89){const _0x2f5228=_0xb0c99b;d(this,_0x2f5228(0x16c),0x0),d(this,_0x2f5228(0x30b),new v['Subject']()),d(this,'change$',this['_change$']),d(this,_0x2f5228(0x208),new Map()),(this[_0x2f5228(0x2e8)]=_0xa8244f,this[_0x2f5228(0x3ec)]=_0x4ee89c,this[_0x2f5228(0x3fb)]=_0x2fef89);}['setWaitCount'](_0x37a503){const _0x36fa1c=_0xb0c99b;this[_0x36fa1c(0x16c)]=_0x37a503,this[_0x36fa1c(0x30b)][_0x36fa1c(0x3c7)](_0x37a503);}[_0xb0c99b(0x25e)](_0x1649db,_0x262d03){const _0x2e47a1=_0xb0c99b;if(_0x262d03===A[_0x2e47a1(0x2c8)][_0x2e47a1(0x3f7)]){const _0x45aea9=new Image();return _0x45aea9['src']=_0x1649db,_0x45aea9;}return this[_0x2e47a1(0x208)][_0x2e47a1(0x1a0)](_0x1649db);}[_0xb0c99b(0x164)](_0x31b506,_0x1857ef,_0x2ce803){const _0x2a1658=_0xb0c99b;_0x1857ef===A[_0x2a1658(0x2c8)][_0x2a1658(0x3f7)]||_0x2ce803==null||this[_0x2a1658(0x208)][_0x2a1658(0x4d0)](_0x31b506,_0x2ce803);}async[_0xb0c99b(0x20a)](_0x7a650a){const _0x765ddc=_0xb0c99b;try{const _0x447756=this['_replaceFileID'](this['_getSignURL'](),''+_0x7a650a),_0x487a82=(await this['_httpService'][_0x765ddc(0x1a0)](_0x447756))['body'];if(_0x487a82[_0x765ddc(0x4d1)]&&_0x487a82[_0x765ddc(0x4d1)][_0x765ddc(0x17f)]===It['OK']){const _0x28167f=new URL(_0x487a82[_0x765ddc(0x187)],this['_getDownloadEndpointURL']())[_0x765ddc(0x499)]();return Promise['resolve'](_0x28167f);}return Promise['reject'](_0x487a82['error']);}catch(_0x48aed7){return Promise['reject'](_0x48aed7);}}async[_0xb0c99b(0x26f)](_0xccc835){const _0x370011=_0xb0c99b;let _0x524a44='';if(!rn['includes'](_0xccc835[_0x370011(0x498)]))return this[_0x370011(0x28c)](),Promise[_0x370011(0x21d)](new Error(A[_0x370011(0x46c)][_0x370011(0x379)]));if(_0xccc835[_0x370011(0x40e)]>on)return this[_0x370011(0x28c)](),Promise[_0x370011(0x21d)](new Error(A[_0x370011(0x46c)][_0x370011(0x21b)]));try{const _0x56fd83=new FormData();_0x56fd83[_0x370011(0x21c)](_0x370011(0x399),_0xccc835);const _0x3a8713=this[_0x370011(0x3fb)][_0x370011(0x345)](),_0x500a1d=_0x3a8713==null?void 0x0:_0x3a8713[_0x370011(0x4dd)]();if(!_0x500a1d)throw new Error(_0x370011(0x16e));const _0x482c92=this[_0x370011(0x389)]()+_0x370011(0x2c4)+_0xccc835[_0x370011(0x40e)]['toString']()+_0x370011(0x353)+pt[_0x370011(0x394)]+_0x370011(0x224)+encodeURIComponent(_0x500a1d),_0x1b26c1=await(await fetch(_0x482c92,{'method':_0x370011(0x3f8),'body':_0x56fd83}))[_0x370011(0x250)]();if(typeof _0x1b26c1[_0x370011(0x3b5)]!='string')return this[_0x370011(0x28c)](),Promise[_0x370011(0x21d)](new Error(A[_0x370011(0x46c)][_0x370011(0x3d5)]));_0x524a44=_0x1b26c1['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x370011(0x21d)](new Error(A['ImageUploadStatusType'][_0x370011(0x3d5)]));}return new Promise((_0x1bc391,_0x2d02ba)=>{const _0x15d3b8=_0x370011,_0x113309=new FileReader();_0x113309[_0x15d3b8(0x42f)](_0xccc835),_0x113309[_0x15d3b8(0x44e)]=_0x52b894=>{const _0x44c823=_0x15d3b8;var _0x179d9f;const _0x67b270=(_0x179d9f=_0x52b894[_0x44c823(0x3fd)])==null?void 0x0:_0x179d9f[_0x44c823(0x137)];if(_0x67b270==null){this[_0x44c823(0x28c)](),_0x2d02ba(new Error(A['ImageUploadStatusType'][_0x44c823(0x3d5)]));return;}const _0x36843e=a[_0x44c823(0x286)][_0x44c823(0x36a)](0x6);_0x1bc391({'imageId':_0x36843e,'imageSourceType':A[_0x44c823(0x2c8)]['UUID'],'source':_0x524a44,'base64Cache':_0x67b270,'status':A['ImageUploadStatusType'][_0x44c823(0x23f)]}),this[_0x44c823(0x28c)]();};});}[_0xb0c99b(0x389)](){const _0x46355f=_0xb0c99b;var _0x25fe68,_0x2d06f6;const _0x1c5b9d=this[_0x46355f(0x3ec)][_0x46355f(0x2aa)](an),_0xd3f72c=this[_0x46355f(0x3ec)]['getConfig'](L);return(_0x2d06f6=(_0x25fe68=_0xd3f72c==null?void 0x0:_0xd3f72c['uploadFileServerUrl'])!=null?_0x25fe68:_0x1c5b9d)!=null?_0x2d06f6:cn;}['_getSignURL'](){const _0x4d9429=_0xb0c99b;var _0x5888ee,_0x1a1a8c;const _0x5c9431=this['_configService'][_0x4d9429(0x2aa)](ln),_0x50fab6=this[_0x4d9429(0x3ec)]['getConfig'](L);return(_0x1a1a8c=(_0x5888ee=_0x50fab6==null?void 0x0:_0x50fab6['signUrlServerUrl'])!=null?_0x5888ee:_0x5c9431)!=null?_0x1a1a8c:hn;}[_0xb0c99b(0x1fd)](){const _0x191aba=_0xb0c99b;var _0x3814fc;const _0x5fc0ae=this['_configService'][_0x191aba(0x2aa)](L);return(_0x3814fc=_0x5fc0ae==null?void 0x0:_0x5fc0ae[_0x191aba(0x280)])!=null?_0x3814fc:location[_0x191aba(0x269)];}[_0xb0c99b(0xec)](_0x38b354,_0x3fd1e3){const _0x203bb1=_0xb0c99b;return _0x38b354[_0x203bb1(0x2c3)](_0x203bb1(0x328),_0x3fd1e3);}[_0xb0c99b(0x28c)](){const _0x6fcc9b=_0xb0c99b;this[_0x6fcc9b(0x16c)]-=0x1,this[_0x6fcc9b(0x30b)]['next'](this[_0x6fcc9b(0x16c)]);}},exports[_0xb0c99b(0x226)]=nn([je(0x0,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)])),je(0x1,a[_0xb0c99b(0x195)]),je(0x2,a[_0xb0c99b(0x455)](a['IUniverInstanceService']))],exports[_0xb0c99b(0x226)]);var _n=Object[_0xb0c99b(0x3dd)],un=Object[_0xb0c99b(0x18e)],dn=(_0x338b06,_0x269155,_0x165b6f,_0x319447)=>{for(var _0x830578=_0x319447>0x1?void 0x0:_0x319447?un(_0x269155,_0x165b6f):_0x269155,_0xb9deb9=_0x338b06['length']-0x1,_0x2c793a;_0xb9deb9>=0x0;_0xb9deb9--)(_0x2c793a=_0x338b06[_0xb9deb9])&&(_0x830578=(_0x319447?_0x2c793a(_0x269155,_0x165b6f,_0x830578):_0x2c793a(_0x830578))||_0x830578);return _0x319447&&_0x830578&&_n(_0x269155,_0x165b6f,_0x830578),_0x830578;},he=(_0x50ffd8,_0xb2784e)=>(_0xf24bb8,_0x13fd29)=>_0xb2784e(_0xf24bb8,_0x13fd29,_0x50ffd8);let me=class extends a['RxDisposable']{constructor(_0x40153d,_0xc1a70e,_0x455e92,_0x421203,_0x386d51){const _0x1a2389=_0xb0c99b;super(),this[_0x1a2389(0x12f)]=_0x40153d,this[_0x1a2389(0x3fb)]=_0xc1a70e,this[_0x1a2389(0x115)]=_0x455e92,this[_0x1a2389(0x4cd)]=_0x421203,this[_0x1a2389(0x26d)]=_0x386d51,this['_initUnitPermissionChange'](),this[_0x1a2389(0x10f)]();}[_0xb0c99b(0x10f)](){const _0x3add5a=_0xb0c99b,_0x3e6cc2=async _0x3e468a=>{const _0x510731=_0x4e0f;(await this[_0x510731(0x4cd)]['requireSession'](_0x3e468a))[_0x510731(0x1c0)]['pipe'](E['filter'](_0x15ff06=>_0x15ff06[_0x510731(0x1bd)]===_[_0x510731(0x153)][_0x510731(0x430)]),E[_0x510731(0x450)](this[_0x510731(0x495)]))[_0x510731(0x33b)](_0x29df85=>{const _0x37fa62=_0x510731,_0x4680ec=_0x29df85,{reason:_0x500d9d}=_0x4680ec[_0x37fa62(0x494)];this[_0x37fa62(0x12f)][_0x37fa62(0x1a0)](N[_0x37fa62(0x3bb)])[_0x37fa62(0x126)]({'type':X[_0x37fa62(0x20b)][_0x37fa62(0x14d)],'content':this['_localeService']['t'](_0x37fa62(0x33e))+'('+_0x500d9d+')'}),this['_permissionService'][_0x37fa62(0x3c8)](new C[(_0x37fa62(0x3bc))](_0x3e468a)['id'],!0x1),this[_0x37fa62(0x4cd)][_0x37fa62(0x2fe)](_0x3e468a);});};v['merge'](this[_0x3add5a(0x3fb)]['getTypeOfUnitAdded$'](a[_0x3add5a(0x111)][_0x3add5a(0x3e6)]),this[_0x3add5a(0x3fb)][_0x3add5a(0x2a4)](a[_0x3add5a(0x111)][_0x3add5a(0x254)]))[_0x3add5a(0x3a7)](E[_0x3add5a(0x1af)](_0x4ede8b=>_0x4ede8b[_0x3add5a(0x4dd)]()),E['filter'](_0x55a695=>!a[_0x3add5a(0x2b0)](_0x55a695)),E[_0x3add5a(0x450)](this[_0x3add5a(0x495)]))[_0x3add5a(0x33b)](_0x19c9d5=>{_0x3e6cc2(_0x19c9d5);});}[_0xb0c99b(0x374)](){const _0x44d593=_0xb0c99b,_0x3113ae=async _0xf9a211=>{const _0x546f8c=_0x4e0f;(await this[_0x546f8c(0x4cd)][_0x546f8c(0x230)](_0xf9a211))[_0x546f8c(0x1c0)][_0x546f8c(0x3a7)](E[_0x546f8c(0x13b)](_0x4409e7=>_0x4409e7[_0x546f8c(0x1bd)]===_['CollaborationEvent'][_0x546f8c(0x10e)]),E[_0x546f8c(0x450)](this[_0x546f8c(0x495)]))[_0x546f8c(0x33b)](_0x5d5879=>{const _0x6cb539=_0x546f8c,_0x485c4a=_0x5d5879,{objectId:_0x4e06fd}=_0x485c4a[_0x6cb539(0x494)],_0x2653a2=this[_0x6cb539(0x12f)][_0x6cb539(0x1a0)](te[_0x6cb539(0x2ae)]);_0x4e06fd===_0xf9a211?_0x2653a2[_0x6cb539(0x392)](_0xf9a211):_0x2653a2[_0x6cb539(0x343)](_0xf9a211,_0x4e06fd);});};v[_0x44d593(0x387)](this[_0x44d593(0x3fb)]['getTypeOfUnitAdded$'](a[_0x44d593(0x111)][_0x44d593(0x3e6)]),this['_univerInstanceService'][_0x44d593(0x2a4)](a['UniverInstanceType'][_0x44d593(0x254)]))[_0x44d593(0x3a7)](E[_0x44d593(0x1af)](_0x30ef73=>_0x30ef73[_0x44d593(0x4dd)]()),E[_0x44d593(0x13b)](_0x1aa713=>!a[_0x44d593(0x2b0)](_0x1aa713)),E['takeUntil'](this[_0x44d593(0x495)]))['subscribe'](_0x52402e=>{_0x3113ae(_0x52402e);});}};me=dn([a['OnLifecycle'](a['LifecycleStages'][_0xb0c99b(0x16a)],me),he(0x0,a['Inject'](a[_0xb0c99b(0x41a)])),he(0x1,a['IUniverInstanceService']),he(0x2,a['IPermissionService']),he(0x3,a[_0xb0c99b(0x455)](exports['CollaborationSessionService'])),he(0x4,a[_0xb0c99b(0x455)](a['LocaleService']))],me);var Sn=Object[_0xb0c99b(0x3dd)],vn=Object[_0xb0c99b(0x18e)],fn=(_0x27564d,_0x1a6722,_0x5e18d0,_0x18c2c8)=>{const _0x3098c8=_0xb0c99b;for(var _0x2ff618=_0x18c2c8>0x1?void 0x0:_0x18c2c8?vn(_0x1a6722,_0x5e18d0):_0x1a6722,_0x3976df=_0x27564d[_0x3098c8(0x23c)]-0x1,_0x12fcca;_0x3976df>=0x0;_0x3976df--)(_0x12fcca=_0x27564d[_0x3976df])&&(_0x2ff618=(_0x18c2c8?_0x12fcca(_0x1a6722,_0x5e18d0,_0x2ff618):_0x12fcca(_0x2ff618))||_0x2ff618);return _0x18c2c8&&_0x2ff618&&Sn(_0x1a6722,_0x5e18d0,_0x2ff618),_0x2ff618;},lt=(_0x33f2e9,_0x150f5a)=>(_0x3e7d1e,_0x5adbc8)=>_0x150f5a(_0x3e7d1e,_0x5adbc8,_0x33f2e9);exports[_0xb0c99b(0x474)]=class{constructor(_0x27de7e,_0x27758b){const _0x190ce5=_0xb0c99b;this[_0x190ce5(0x3ec)]=_0x27de7e,this[_0x190ce5(0x2e8)]=_0x27758b;}async[_0xb0c99b(0x1f4)](_0x804a4a,_0x4aee79){const _0x4644b1=_0xb0c99b;var _0x554e3b;const {unitID:_0x992e02,type:_0x5a13f3,revision:_0x5cb5f0=0x0}=_0x4aee79,_0x4cc4c0=this[_0x4644b1(0x3b9)]()+'/'+_0x5a13f3+_0x4644b1(0x19f)+_0x992e02+'/rev/'+_0x5cb5f0,_0x1a603b=(await this[_0x4644b1(0x2e8)][_0x4644b1(0x1a0)](_0x4cc4c0))[_0x4644b1(0x4c0)],_0x2f0268=(_0x554e3b=_0x1a603b[_0x4644b1(0x3d8)])==null?void 0x0:_0x554e3b['workbook'];if(_0x2f0268){const _0x22efae=_0x2f0268==null?void 0x0:_0x2f0268[_0x4644b1(0x4a6)],_0x3f9cc6=_[_0x4644b1(0x163)][_0x4644b1(0x3b6)](_[_0x4644b1(0x262)](_0x22efae));_0x2f0268[_0x4644b1(0x4a6)]=_0x3f9cc6,Object[_0x4644b1(0x207)](_0x2f0268['sheets'])[_0x4644b1(0x1cb)](([,_0x15f5ca])=>{const _0xe0be84=_0x4644b1,_0x3e2525=_0x15f5ca[_0xe0be84(0x4a6)],_0x3a20a7=_[_0xe0be84(0x163)][_0xe0be84(0x3b6)](_[_0xe0be84(0x262)](_0x3e2525));_0x15f5ca[_0xe0be84(0x4a6)]=_0x3a20a7;});}return _0x1a603b;}async[_0xb0c99b(0x144)](_0x43599e,_0x3258c8){const _0x6b6ab4=_0xb0c99b,{unitID:_0x3aca1c,type:_0x5a3572,blockID:_0x5c006e}=_0x3258c8,_0x35f4f7=this[_0x6b6ab4(0xea)]()+'/'+_0x5a3572+_0x6b6ab4(0x19f)+_0x3aca1c+_0x6b6ab4(0x193)+_0x5c006e;return(await this[_0x6b6ab4(0x2e8)][_0x6b6ab4(0x1a0)](_0x35f4f7))[_0x6b6ab4(0x4c0)];}async[_0xb0c99b(0x2ea)](_0x44dc87,_0xfb252c){const _0x6b2ced=_0xb0c99b,{unitID:_0x1f7691,type:_0x1616dc,blockID:_0x9bc817}=_0xfb252c,_0x59c52e=this[_0x6b2ced(0xea)]()+_0x6b2ced(0x193)+_0x1616dc+_0x6b2ced(0x19f)+_0x1f7691+_0x6b2ced(0x193)+_0x9bc817;return(await this[_0x6b2ced(0x2e8)][_0x6b2ced(0x1a0)](_0x59c52e))[_0x6b2ced(0x4c0)];}async[_0xb0c99b(0x4e0)](_0x43ce6a,_0x600ba9){const _0x81cbd3=_0xb0c99b,{unitID:_0x18da91,type:_0x144e45,from:_0x852ee2,to:_0x436cd1}=_0x600ba9,_0x11b392=this[_0x81cbd3(0xea)]()+'/'+_0x144e45+_0x81cbd3(0x19f)+_0x18da91+'/fetchmissing?from='+_0x852ee2+_0x81cbd3(0x19c)+_0x436cd1;return(await this['_httpService']['get'](_0x11b392))['body'];}[_0xb0c99b(0x3b9)](){const _0x30b1ee=_0xb0c99b;var _0x4a0a32;return(_0x4a0a32=this['_configService'][_0x30b1ee(0x2aa)](_t))!=null?_0x4a0a32:this[_0x30b1ee(0xea)]();}[_0xb0c99b(0xea)](){const _0x31b92b=_0xb0c99b;var _0x951487,_0x582d85;const _0x1c45e6=this[_0x31b92b(0x3ec)][_0x31b92b(0x2aa)](ht),_0x5ab688=this[_0x31b92b(0x3ec)]['getConfig'](L);return(_0x582d85=(_0x951487=_0x5ab688==null?void 0x0:_0x5ab688[_0x31b92b(0x204)])!=null?_0x951487:_0x1c45e6)!=null?_0x582d85:Gt;}async[_0xb0c99b(0x370)](_0x454d7a,_0x5c00c7){const _0x92bca0=_0xb0c99b,_0xb7e618=_0x92bca0(0x17e)+_0x5c00c7[_0x92bca0(0x498)]+'/unit/'+_0x5c00c7[_0x92bca0(0x4c3)]+_0x92bca0(0x27e);return(await this[_0x92bca0(0x2e8)][_0x92bca0(0x1a0)](_0xb7e618,{'params':{'resourceId':JSON[_0x92bca0(0x36d)](_0x5c00c7[_0x92bca0(0x260)])}}))['body'];}[_0xb0c99b(0x1ce)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xb0c99b(0x23a)](){const _0x614fb1=_0xb0c99b;throw new Error(_0x614fb1(0x1ec));}[_0xb0c99b(0x458)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x325f35=_0xb0c99b;throw new Error(_0x325f35(0x1ec));}},exports[_0xb0c99b(0x474)]=fn([lt(0x0,a['IConfigService']),lt(0x1,a[_0xb0c99b(0x455)](P[_0xb0c99b(0x319)]))],exports['SnapshotServerOverHTTPService']);var gn=Object[_0xb0c99b(0x3dd)],mn=Object[_0xb0c99b(0x18e)],In=(_0x162d0f,_0x314379,_0x3f3481,_0x105d20)=>{for(var _0xd79dad=_0x105d20>0x1?void 0x0:_0x105d20?mn(_0x314379,_0x3f3481):_0x314379,_0x2eeaa5=_0x162d0f['length']-0x1,_0x3c30ac;_0x2eeaa5>=0x0;_0x2eeaa5--)(_0x3c30ac=_0x162d0f[_0x2eeaa5])&&(_0xd79dad=(_0x105d20?_0x3c30ac(_0x314379,_0x3f3481,_0xd79dad):_0x3c30ac(_0xd79dad))||_0xd79dad);return _0x105d20&&_0xd79dad&&gn(_0x314379,_0x3f3481,_0xd79dad),_0xd79dad;},_e=(_0x4f8fc8,_0x4e761d)=>(_0x1f67be,_0x38260d)=>_0x4e761d(_0x1f67be,_0x38260d,_0x4f8fc8);function _0x4e0f(_0x4ee815,_0x587a41){const _0x4d94b7=_0x4d94();return _0x4e0f=function(_0x4e0fdb,_0x43140c){_0x4e0fdb=_0x4e0fdb-0xe5;let _0x4650e7=_0x4d94b7[_0x4e0fdb];return _0x4650e7;},_0x4e0f(_0x4ee815,_0x587a41);}let Be=class extends a['LocalUndoRedoService']{constructor(_0x5bca08,_0x123564,_0x296714,_0x455b37,_0x4fe4d6){const _0x42db89=_0xb0c99b;super(_0x5bca08,_0x123564,_0x296714),this[_0x42db89(0x1f2)]=_0x455b37,this['_logService']=_0x4fe4d6;}[_0xb0c99b(0x4d4)](_0x33ab68,_0x1d7032){const _0x5bfbad=_0xb0c99b,_0x4c0779=this[_0x5bfbad(0x4b5)](_0x33ab68);if(_0x4c0779)try{const _0x5a0d37=this[_0x5bfbad(0x414)](_0x4c0779,_0x1d7032);this['_substituteUndoStack'](_0x33ab68,_0x5a0d37);}catch(_0x19146d){this[_0x5bfbad(0x3cd)][_0x5bfbad(0x4d1)](_0x5bfbad(0x116),_0x19146d),this[_0x5bfbad(0x48c)](_0x33ab68);}const _0x25cfe2=this[_0x5bfbad(0x1e5)](_0x33ab68);if(_0x25cfe2)try{const _0x3738ad=this['_transformStack'](_0x25cfe2,_0x1d7032);this['_substituteRedoStack'](_0x33ab68,_0x3738ad);}catch(_0x519296){this['_logService'][_0x5bfbad(0x4d1)](_0x519296),this[_0x5bfbad(0x21e)](_0x33ab68);}}[_0xb0c99b(0x48c)](_0x103735){const _0xc245dc=_0xb0c99b,_0xeacc77=this[_0xc245dc(0x4b5)](_0x103735);_0xeacc77&&(_0xeacc77[_0xc245dc(0x23c)]=0x0,this[_0xc245dc(0x2e4)]());}['_clearRedo'](_0x340d3d){const _0x1240c5=_0xb0c99b,_0x2b8f8d=this['_getRedoStack'](_0x340d3d);_0x2b8f8d&&(_0x2b8f8d['length']=0x0,this[_0x1240c5(0x2e4)]());}[_0xb0c99b(0x243)](_0xf0ad51,_0x172702){const _0x2b0e00=_0xb0c99b;this[_0x2b0e00(0x107)]['set'](_0xf0ad51,_0x172702),this['_updateStatus']();}['_substituteRedoStack'](_0x102e16,_0x4663cd){const _0x16f62b=_0xb0c99b;this[_0x16f62b(0x31a)][_0x16f62b(0x4d0)](_0x102e16,_0x4663cd),this['_updateStatus']();}['_transformStack'](_0xa45ce5,_0x1a992c){const _0xb7d7b9=_0xb0c99b,_0x212f41=[];let _0x1a5342=_0x1a992c,_0x3c13de=_0x1a992c;for(let _0x18321e=_0xa45ce5['length']-0x1;_0x18321e>=0x0;_0x18321e--){const {unitID:_0x5204cf,undoMutations:_0x33d462,redoMutations:_0x573fc3}=_0xa45ce5[_0x18321e],_0x58c856=this[_0xb7d7b9(0x1f2)][_0xb7d7b9(0x2d6)](_0x1a5342,_0x33d462),_0x580038=this['_transformService'][_0xb7d7b9(0x2d6)](_0x3c13de,_0x573fc3);if(_[_0xb7d7b9(0x240)](_0x58c856)||_[_0xb7d7b9(0x240)](_0x580038)){this[_0xb7d7b9(0x3cd)][_0xb7d7b9(0x4d1)]('[CollaborationUndoRedoService]',_0xb7d7b9(0x47b),_0x58c856,_0x580038);break;}_0x1a5342=_0x58c856[_0xb7d7b9(0x2d5)],_0x3c13de=_0x580038[_0xb7d7b9(0x2d5)],_0x212f41[_0xb7d7b9(0x2da)]({'unitID':_0x5204cf,'undoMutations':_0x58c856[_0xb7d7b9(0x200)],'redoMutations':_0x580038['m2Prime']});}return _0x212f41[_0xb7d7b9(0x3d4)]();}};Be=In([_e(0x0,a['IUniverInstanceService']),_e(0x1,a[_0xb0c99b(0x47e)]),_e(0x2,a[_0xb0c99b(0x34d)]),_e(0x3,_['ITransformService']),_e(0x4,a[_0xb0c99b(0x2b2)])],Be);class Mt extends a[_0xb0c99b(0x3c1)]{constructor(){const _0x37d003=_0xb0c99b;super(),d(this,'urlChange$'),this[_0x37d003(0x3b8)]=v['fromEvent'](window,_0x37d003(0x4eb))['pipe'](v[_0x37d003(0x450)](this[_0x37d003(0x495)]),v[_0x37d003(0xeb)](0x1),v['mapTo'](void 0x0));}[_0xb0c99b(0x1b1)](_0x4f9147,_0x4ab832,_0x245646=!0x1){const _0x53a33f=_0xb0c99b,_0x28e78c=new URL(window['location']['href']);_0x28e78c['searchParams'][_0x53a33f(0x4d0)](_0x4f9147,_0x4ab832),_0x245646?window[_0x53a33f(0x45e)][_0x53a33f(0x237)]('','',_0x28e78c[_0x53a33f(0x499)]()):window[_0x53a33f(0x45e)]['pushState']('','',_0x28e78c[_0x53a33f(0x499)]());}[_0xb0c99b(0x28e)](_0xb19889,_0x4ca050=!0x1){const _0x3c2078=_0xb0c99b,_0x4e72ed=new URL(window[_0x3c2078(0x13c)][_0x3c2078(0x363)]);_0x4e72ed[_0x3c2078(0x418)]['delete'](_0xb19889),_0x4ca050?window['history']['replaceState']('','',_0x4e72ed[_0x3c2078(0x499)]()):window['history']['pushState']('','',_0x4e72ed['toString']());}[_0xb0c99b(0x3ef)](_0x32477f){const _0x574511=_0xb0c99b;var _0x5abe55;return(_0x5abe55=new URL(window['location']['href'])[_0x574511(0x418)][_0x574511(0x1a0)](_0x32477f))!=null?_0x5abe55:void 0x0;}}var Nt=Object['defineProperty'],pn=Object['getOwnPropertyDescriptor'],Cn=(_0x422740,_0x3f4e62,_0x7564a0)=>_0x3f4e62 in _0x422740?Nt(_0x422740,_0x3f4e62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7564a0}):_0x422740[_0x3f4e62]=_0x7564a0,En=(_0x4a4a42,_0x510217,_0x2fb593,_0x167a39)=>{for(var _0x366406=_0x167a39>0x1?void 0x0:_0x167a39?pn(_0x510217,_0x2fb593):_0x510217,_0x1ac253=_0x4a4a42['length']-0x1,_0x8f969c;_0x1ac253>=0x0;_0x1ac253--)(_0x8f969c=_0x4a4a42[_0x1ac253])&&(_0x366406=(_0x167a39?_0x8f969c(_0x510217,_0x2fb593,_0x366406):_0x8f969c(_0x366406))||_0x366406);return _0x167a39&&_0x366406&&Nt(_0x510217,_0x2fb593,_0x366406),_0x366406;},ve=(_0x1515c5,_0x483c53)=>(_0x369847,_0x358c6d)=>_0x483c53(_0x369847,_0x358c6d,_0x1515c5),bn=(_0x2ca60d,_0xb3947d,_0x49e92a)=>Cn(_0x2ca60d,_0xb3947d+'',_0x49e92a);const Tn=_0xb0c99b(0x1cf);exports[_0xb0c99b(0x4af)]=class extends a[_0xb0c99b(0x14c)]{constructor(_0x2ee49b=ts,_0x58b0ca,_0x436c0d,_0x14dc4c,_0x4c1a47){const _0x200128=_0xb0c99b;super(),this[_0x200128(0x2ba)]=_0x2ee49b,this[_0x200128(0x3cd)]=_0x58b0ca,this[_0x200128(0x285)]=_0x436c0d,this[_0x200128(0x12f)]=_0x14dc4c,this[_0x200128(0x3ec)]=_0x4c1a47;const {..._0x2d62a3}=this[_0x200128(0x2ba)];this[_0x200128(0x3ec)][_0x200128(0x1f1)](L,_0x2d62a3);}[_0xb0c99b(0x205)](){const _0x2a93fa=_0xb0c99b;this[_0x2a93fa(0x160)]();}[_0xb0c99b(0x141)](){const _0x16b390=_0xb0c99b;this[_0x16b390(0x149)]();}[_0xb0c99b(0x160)](){const _0x1c473c=_0xb0c99b;var _0xc280db,_0x1fedee,_0x9c15b2,_0x425024;this[_0x1c473c(0x12f)][_0x1c473c(0x191)](a[_0x1c473c(0x395)])&&this[_0x1c473c(0x3cd)][_0x1c473c(0x4d1)](_0x1c473c(0x486),_0x1c473c(0x27b));let _0x16ac80=[[a[_0x1c473c(0x395)],{'useClass':Be}],[exports[_0x1c473c(0x28a)]],[Xe],[P['HTTPService']],[ze,{'useClass':Mt}],[q],[exports[_0x1c473c(0x2b9)]],[P[_0x1c473c(0x300)]],[pe],[Ce],[Ie],[Ye],[Ee],[be],[Ge],[me],[Fe,{'useClass':(_0x1fedee=(_0xc280db=this[_0x1c473c(0x2ba)])==null?void 0x0:_0xc280db['socketService'])!=null?_0x1fedee:exports[_0x1c473c(0x18a)]}],[P[_0x1c473c(0x234)],{'useClass':P[_0x1c473c(0x17b)]}],[_[_0x1c473c(0x1ee)],{'useClass':exports[_0x1c473c(0x474)]}],[a[_0x1c473c(0x447)],{'useClass':exports[_0x1c473c(0x4bf)]}],[A['IImageIoService'],{'useClass':exports['ImageIoService']}],[exports['CollaborationController']],[exports[_0x1c473c(0x1d7)]],[exports[_0x1c473c(0x1ac)]],[ge],[se]];(_0x9c15b2=this['_config'])!=null&&_0x9c15b2['enableSingleActiveInstanceLock']&&_0x16ac80[_0x1c473c(0x2da)]([Te,{'useClass':ys}]),_0x16ac80=a['mergeOverrideWithDependencies'](_0x16ac80,(_0x425024=this['_config'])==null?void 0x0:_0x425024[_0x1c473c(0x354)]),_0x16ac80[_0x1c473c(0x1cb)](_0x2054c4=>this['_injector'][_0x1c473c(0x143)](_0x2054c4)),this['_initModules']();}[_0xb0c99b(0x149)](){const _0x26ade5=_0xb0c99b;this[_0x26ade5(0x3d3)](this[_0x26ade5(0x285)][_0x26ade5(0x1d9)](a['UniverInstanceType'][_0x26ade5(0x254)],[fe])),this[_0x26ade5(0x3d3)](this[_0x26ade5(0x285)][_0x26ade5(0x1d9)](a[_0x26ade5(0x111)]['UNIVER_SHEET'],[ke]));}['_initModules'](){const _0x463f04=_0xb0c99b;var _0x10df00,_0x1dff75;this[_0x463f04(0x12f)][_0x463f04(0x1a0)](P[_0x463f04(0x319)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':P[_0x463f04(0x2ca)]({'maxParallel':0x6})}),this[_0x463f04(0x12f)][_0x463f04(0x1a0)](be),(_0x10df00=this['_config'])!=null&&_0x10df00[_0x463f04(0x294)]||this[_0x463f04(0x12f)][_0x463f04(0x1a0)](exports['LocalCacheService'])[_0x463f04(0x38b)](),(_0x1dff75=this[_0x463f04(0x2ba)])!=null&&_0x1dff75[_0x463f04(0x4cc)]&&this[_0x463f04(0x12f)][_0x463f04(0x1a0)](Ee),this[_0x463f04(0x12f)][_0x463f04(0x1a0)](exports['CollaborationController']),this[_0x463f04(0x12f)]['has'](exports[_0x463f04(0x1ac)])&&this[_0x463f04(0x12f)][_0x463f04(0x1a0)](exports['DesktopCollaborationStatusDisplayController']);}},bn(exports['UniverCollaborationClientPlugin'],_0xb0c99b(0x2bf),Tn),exports[_0xb0c99b(0x4af)]=En([a[_0xb0c99b(0x18f)](_[_0xb0c99b(0x421)]),ve(0x1,a[_0xb0c99b(0x2b2)]),ve(0x2,R['IRenderManagerService']),ve(0x3,a['Inject'](a[_0xb0c99b(0x41a)])),ve(0x4,a[_0xb0c99b(0x195)])],exports['UniverCollaborationClientPlugin']),exports[_0xb0c99b(0x2d2)]=wt,exports[_0xb0c99b(0x361)]=gt,exports[_0xb0c99b(0x3a2)]=ut,exports[_0xb0c99b(0x4df)]=y,exports[_0xb0c99b(0x3ea)]=Pt,exports[_0xb0c99b(0x3ce)]=Ge,exports[_0xb0c99b(0x270)]=dt,exports[_0xb0c99b(0x448)]=Ve,exports[_0xb0c99b(0x4f6)]=Fe,exports[_0xb0c99b(0x158)]=ze,exports[_0xb0c99b(0x37b)]=ft,exports[_0xb0c99b(0x281)]=mt,exports[_0xb0c99b(0x1de)]=vt,exports[_0xb0c99b(0x44f)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0xb0c99b(0x23b)]=_t,exports[_0xb0c99b(0x35c)]=j,exports[_0xb0c99b(0x2af)]=Ot,exports[_0xb0c99b(0x14b)]=Mt,exports[_0xb0c99b(0x2c9)]=Ct,exports[_0xb0c99b(0x292)]=Et;
1
+ 'use strict';const _0x5b831f=_0x49eb;(function(_0x554b64,_0x3750be){const _0x58b353=_0x49eb,_0x25f199=_0x554b64();while(!![]){try{const _0x208fbb=-parseInt(_0x58b353(0x240))/0x1*(-parseInt(_0x58b353(0x2c0))/0x2)+parseInt(_0x58b353(0x447))/0x3*(-parseInt(_0x58b353(0xe1))/0x4)+parseInt(_0x58b353(0x22e))/0x5+parseInt(_0x58b353(0x35a))/0x6*(parseInt(_0x58b353(0x26d))/0x7)+parseInt(_0x58b353(0xfd))/0x8*(-parseInt(_0x58b353(0x1e8))/0x9)+parseInt(_0x58b353(0x456))/0xa*(parseInt(_0x58b353(0x43b))/0xb)+parseInt(_0x58b353(0x235))/0xc;if(_0x208fbb===_0x3750be)break;else _0x25f199['push'](_0x25f199['shift']());}catch(_0x1a9e25){_0x25f199['push'](_0x25f199['shift']());}}}(_0x31db,0x265c2));var xt=Object[_0x5b831f(0x1e0)],kt=(_0x58b850,_0x46d64d,_0x26d7ca)=>_0x46d64d in _0x58b850?xt(_0x58b850,_0x46d64d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d7ca}):_0x58b850[_0x46d64d]=_0x26d7ca,d=(_0x222ca2,_0x4c00e5,_0x171027)=>kt(_0x222ca2,typeof _0x4c00e5!='symbol'?_0x4c00e5+'':_0x4c00e5,_0x171027);Object[_0x5b831f(0x1e0)](exports,Symbol[_0x5b831f(0x399)],{'value':_0x5b831f(0x3aa)});const a=require(_0x5b831f(0x451)),v=require(_0x5b831f(0x105)),E=require(_0x5b831f(0x176)),X=require(_0x5b831f(0x22a)),N=require(_0x5b831f(0x3f0)),P=require(_0x5b831f(0x12a)),_=require(_0x5b831f(0x3d6)),Bt=require('@univerjs/telemetry'),V=require(_0x5b831f(0x428)),w=require(_0x5b831f(0x414)),C=require(_0x5b831f(0x135)),R=require(_0x5b831f(0xb4)),L=require(_0x5b831f(0x3ae)),Je=require(_0x5b831f(0x227)),te=require(_0x5b831f(0xfa)),U=require(_0x5b831f(0x35e)),Vt=require(_0x5b831f(0x3dd)),Wt=require(_0x5b831f(0x3e7)),Ft=require(_0x5b831f(0x1d8)),ht=_0x5b831f(0x374),Gt='/universer-api/snapshot',_t=_0x5b831f(0x28c),Yt='SEND_CHANGESET_TIMEOUT',Kt=0x7d0,ut=_0x5b831f(0x2c7),Xt='ws://127.0.0.1:8000/universer-api/comb/connect',dt='HEARTBEAT_INTERVAL',qt=0x7530,Ve=_0x5b831f(0x474),St=0x4e20,zt=0x4e20,vt='RETRY_CONNECTING_MAX_COUNT',Jt=0x3,gt=_0x5b831f(0x267),Zt=0x3e8,ft=_0x5b831f(0x49b),Qt=_0x5b831f(0x184),mt=_0x5b831f(0x220),es=_0x5b831f(0xc0);var It=(_0x10b433=>(_0x10b433[_0x10b433[_0x5b831f(0xb5)]=0x0]='UNDEFINED',_0x10b433[_0x10b433['OK']=0x1]='OK',_0x10b433[_0x10b433[_0x5b831f(0x3ca)]=0x2]=_0x5b831f(0x3ca),_0x10b433[_0x10b433[_0x5b831f(0x482)]=0x3]=_0x5b831f(0x482),_0x10b433[_0x10b433[_0x5b831f(0x486)]=0x4]='NOT_FOUND',_0x10b433[_0x10b433['UNAUTHENTICATED']=0x5]=_0x5b831f(0x45e),_0x10b433[_0x10b433[_0x5b831f(0x366)]=0x6]='ALREADY_EXISTS',_0x10b433[_0x10b433['INVALID_ARGUMENT']=0x7]=_0x5b831f(0x1ca),_0x10b433[_0x10b433['TOO_MANY_REQUESTS']=0x8]=_0x5b831f(0x204),_0x10b433[_0x10b433[_0x5b831f(0x1ff)]=0x9]=_0x5b831f(0x1ff),_0x10b433[_0x10b433[_0x5b831f(0x20a)]=0x1389]=_0x5b831f(0x20a),_0x10b433[_0x10b433['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5b831f(0x1f5),_0x10b433[_0x10b433[_0x5b831f(0x49d)]=0x1772]=_0x5b831f(0x49d),_0x10b433[_0x10b433[_0x5b831f(0x470)]=0x1b59]=_0x5b831f(0x470),_0x10b433[_0x10b433[_0x5b831f(0x1b4)]=0x1b5a]=_0x5b831f(0x1b4),_0x10b433[_0x10b433[_0x5b831f(0x183)]=0x1b5b]=_0x5b831f(0x183),_0x10b433[_0x10b433[_0x5b831f(0x1ea)]=0x1b5c]=_0x5b831f(0x1ea),_0x10b433[_0x10b433[_0x5b831f(0x1e2)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x10b433[_0x10b433[_0x5b831f(0x32b)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x10b433[_0x10b433[_0x5b831f(0x396)]=0x232a]=_0x5b831f(0x396),_0x10b433[_0x10b433[_0x5b831f(0x41b)]=0x232b]=_0x5b831f(0x41b),_0x10b433[_0x10b433[_0x5b831f(0x132)]=0x232c]=_0x5b831f(0x132),_0x10b433[_0x10b433[_0x5b831f(0x25e)]=0x232d]=_0x5b831f(0x25e),_0x10b433[_0x10b433[_0x5b831f(0x372)]=0x2711]=_0x5b831f(0x372),_0x10b433[_0x10b433['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x10b433[_0x10b433['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5b831f(0x446),_0x10b433[_0x10b433['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5b831f(0x2ad),_0x10b433[_0x10b433[_0x5b831f(0x3e3)]=-0x1]=_0x5b831f(0x3e3),_0x10b433))(It||{}),j=(_0x51ff0f=>(_0x51ff0f[_0x51ff0f['UNIVER_UNKNOWN']=0x0]=_0x5b831f(0x306),_0x51ff0f[_0x51ff0f[_0x5b831f(0x192)]=0x1]=_0x5b831f(0x192),_0x51ff0f[_0x51ff0f[_0x5b831f(0x102)]=0x2]=_0x5b831f(0x102),_0x51ff0f[_0x51ff0f[_0x5b831f(0x313)]=0x3]=_0x5b831f(0x313),_0x51ff0f[_0x51ff0f[_0x5b831f(0x370)]=0x4]=_0x5b831f(0x370),_0x51ff0f[_0x51ff0f[_0x5b831f(0x3e3)]=-0x1]='UNRECOGNIZED',_0x51ff0f))(j||{}),b=(_0x2d88be=>(_0x2d88be[_0x2d88be[_0x5b831f(0x231)]=0x0]=_0x5b831f(0x231),_0x2d88be[_0x2d88be['HELLO']=0x1]=_0x5b831f(0xba),_0x2d88be[_0x2d88be['JOIN']=0x2]=_0x5b831f(0x1ed),_0x2d88be[_0x2d88be[_0x5b831f(0x1a4)]=0x3]=_0x5b831f(0x1a4),_0x2d88be[_0x2d88be[_0x5b831f(0x339)]=0x4]=_0x5b831f(0x339),_0x2d88be[_0x2d88be[_0x5b831f(0x28d)]=0x5]=_0x5b831f(0x28d),_0x2d88be[_0x2d88be['RECV']=0x6]=_0x5b831f(0x27d),_0x2d88be[_0x2d88be[_0x5b831f(0x3e3)]=-0x1]=_0x5b831f(0x3e3),_0x2d88be))(b||{}),We=(_0x5556de=>(_0x5556de[_0x5556de['UNKNOWN_CODE']=0x0]=_0x5b831f(0x1e9),_0x5556de[_0x5556de['OK']=0x1]='OK',_0x5556de[_0x5556de[_0x5b831f(0x294)]=0x2]=_0x5b831f(0x294),_0x5556de[_0x5556de[_0x5b831f(0x3e3)]=-0x1]=_0x5b831f(0x3e3),_0x5556de))(We||{}),pt=(_0x598bcc=>(_0x598bcc[_0x598bcc['Undefined']=0x0]=_0x5b831f(0x87),_0x598bcc[_0x598bcc['HttpImport']=0x1]=_0x5b831f(0x225),_0x598bcc[_0x598bcc['HttpExport']=0x2]=_0x5b831f(0x36a),_0x598bcc[_0x598bcc[_0x5b831f(0x3b1)]=0x3]=_0x5b831f(0x3b1),_0x598bcc[_0x598bcc[_0x5b831f(0x369)]=0x4]=_0x5b831f(0x369),_0x598bcc[_0x598bcc[_0x5b831f(0x3e3)]=-0x1]=_0x5b831f(0x3e3),_0x598bcc))(pt||{});const A='collaboration-client.config',ts={};function Ct(_0x2b6c81){const _0x2f4dc3=_0x5b831f;var _0x14b863,_0x825645,_0x347f52,_0x483f5b;const _0x13f249=_0x2b6c81[_0x2f4dc3(0xcd)],_0x4a76f8=JSON[_0x2f4dc3(0xe5)](_0x13f249);switch(_0x4a76f8[_0x2f4dc3(0x37b)]){case b[_0x2f4dc3(0x28d)]:case b[_0x2f4dc3(0xba)]:{const _0x27dda0=_0x4a76f8[_0x2f4dc3(0x360)];return{..._0x4a76f8,'data':_0x27dda0,'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};}case b['JOIN']:{const _0x2fc89f=_0x4a76f8[_0x2f4dc3(0x427)];return{..._0x4a76f8,'data':_0x2fc89f,'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};}case b['RECV']:{const _0x7ed35c=_0x4a76f8['collaMsg'];switch(_0x7ed35c[_0x2f4dc3(0x182)]){case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x46a)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':(_0x14b863=_0x7ed35c[_0x2f4dc3(0x37e)])==null?void 0x0:_0x14b863['cs']},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x2fa)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':(_0x825645=_0x7ed35c[_0x2f4dc3(0x101)])==null?void 0x0:_0x825645['cs']},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x3b4)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':(_0x347f52=_0x7ed35c[_0x2f4dc3(0x119)])==null?void 0x0:_0x347f52['cs']},'cmd':_0x4a76f8['cmd']};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x200)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':(_0x483f5b=_0x7ed35c[_0x2f4dc3(0xea)])==null?void 0x0:_0x483f5b['cs']},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x398)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':_0x7ed35c[_0x2f4dc3(0x172)]},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x2be)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':_0x7ed35c['joinEvent']},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0xc6)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':_0x7ed35c[_0x2f4dc3(0x45c)]},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x20c)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':_0x7ed35c[_0x2f4dc3(0x3b9)]},'cmd':_0x4a76f8['cmd']};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x1c9)]:case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x2ee)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':_0x7ed35c[_0x2f4dc3(0xe3)]},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0xc9)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':_0x7ed35c[_0x2f4dc3(0x3b9)]},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};case _[_0x2f4dc3(0x270)]['MSG_FOR_ERROR']:return{..._0x4a76f8,'data':_0x7ed35c,'cmd':_0x4a76f8['cmd']};case _['CollaborationEvent'][_0x2f4dc3(0x479)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':_0x7ed35c[_0x2f4dc3(0x10e)]},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x155)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':_0x7ed35c[_0x2f4dc3(0x100)]},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};case _[_0x2f4dc3(0x270)][_0x2f4dc3(0x315)]:return{..._0x4a76f8,'data':{..._0x7ed35c,'data':_0x7ed35c[_0x2f4dc3(0x3e0)]},'cmd':_0x4a76f8[_0x2f4dc3(0x37b)]};default:return _0x4a76f8;}}default:return _0x4a76f8;}}function Et(_0x9c0ccd){const _0x685f93=_0x5b831f;switch(_0x9c0ccd[_0x685f93(0x37b)]){case b[_0x685f93(0x28d)]:case b[_0x685f93(0xba)]:return JSON[_0x685f93(0x1af)]({'cmd':_0x9c0ccd['cmd'],'routeKey':_0x9c0ccd['routeKey']});case b[_0x685f93(0x339)]:{let _0xd17514;switch(_0x9c0ccd['data'][_0x685f93(0x182)]){case _[_0x685f93(0x270)][_0x685f93(0x398)]:{_0xd17514={'eventID':_[_0x685f93(0x270)][_0x685f93(0x398)],'updateCursorEvent':_0x9c0ccd[_0x685f93(0xcd)][_0x685f93(0xcd)]};break;}case _[_0x685f93(0x270)][_0x685f93(0xc6)]:{_0xd17514={'eventID':_[_0x685f93(0x270)][_0x685f93(0xc6)],'leaveEvent':_0x9c0ccd[_0x685f93(0xcd)][_0x685f93(0xcd)]};break;}case _[_0x685f93(0x270)][_0x685f93(0x2be)]:{_0xd17514={'eventID':_[_0x685f93(0x270)]['USERS_ENTER'],'joinEvent':_0x9c0ccd['data'][_0x685f93(0xcd)]};break;}case _[_0x685f93(0x270)][_0x685f93(0x20c)]:{_0xd17514={'eventID':_[_0x685f93(0x270)][_0x685f93(0x20c)],'liveShareNewHost':_0x9c0ccd[_0x685f93(0xcd)][_0x685f93(0xcd)]};break;}case _['CollaborationEvent'][_0x685f93(0x2ee)]:{_0xd17514={'eventID':_[_0x685f93(0x270)][_0x685f93(0x2ee)],'liveShareOperation':_0x9c0ccd['data'][_0x685f93(0xcd)]};break;}case _['CollaborationEvent'][_0x685f93(0xc9)]:{_0xd17514={'eventID':_['CollaborationEvent'][_0x685f93(0xc9)],'liveShareTerminate':_0x9c0ccd[_0x685f93(0xcd)][_0x685f93(0xcd)]};break;}case _[_0x685f93(0x270)][_0x685f93(0x164)]:{_0xd17514={'eventID':_[_0x685f93(0x270)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x9c0ccd[_0x685f93(0xcd)]['data']};break;}case _[_0x685f93(0x270)]['LIVESHARE_FETCH_OPERATIONS']:{_0xd17514={'eventID':_['CollaborationEvent'][_0x685f93(0x1c9)]};break;}default:_0xd17514={'eventID':_0x9c0ccd[_0x685f93(0xcd)][_0x685f93(0x182)]};}return JSON[_0x685f93(0x1af)]({'cmd':_0x9c0ccd['cmd'],'routeKey':_0x9c0ccd[_0x685f93(0x17e)],'collaMsg':_0xd17514});}case b[_0x685f93(0x1ed)]:return JSON[_0x685f93(0x1af)]({'cmd':_0x9c0ccd[_0x685f93(0x37b)],'routeKey':_0x9c0ccd[_0x685f93(0x17e)],'joinReq':_0x9c0ccd[_0x685f93(0xcd)]});case b[_0x685f93(0x1a4)]:return JSON[_0x685f93(0x1af)]({'cmd':_0x9c0ccd[_0x685f93(0x37b)],'routeKey':_0x9c0ccd[_0x685f93(0x17e)],'leaveReq':_0x9c0ccd[_0x685f93(0xcd)]});default:throw new Error(_0x685f93(0x3ed));}}var ss=Object['defineProperty'],is=Object[_0x5b831f(0x31a)],ns=(_0x254753,_0x2d1aeb,_0x5912d1,_0x3aed80)=>{const _0x50e2c0=_0x5b831f;for(var _0x31c8cc=_0x3aed80>0x1?void 0x0:_0x3aed80?is(_0x2d1aeb,_0x5912d1):_0x2d1aeb,_0x49bee6=_0x254753[_0x50e2c0(0x21d)]-0x1,_0x1d9977;_0x49bee6>=0x0;_0x49bee6--)(_0x1d9977=_0x254753[_0x49bee6])&&(_0x31c8cc=(_0x3aed80?_0x1d9977(_0x2d1aeb,_0x5912d1,_0x31c8cc):_0x1d9977(_0x31c8cc))||_0x31c8cc);return _0x3aed80&&_0x31c8cc&&ss(_0x2d1aeb,_0x5912d1,_0x31c8cc),_0x31c8cc;},oe=(_0x3f1691,_0x47a793)=>(_0x21e57f,_0x18af79)=>_0x47a793(_0x21e57f,_0x18af79,_0x3f1691);const Fe=a[_0x5b831f(0x419)](_0x5b831f(0x104));function rs(_0x121382,_0x3d2e81,_0x3fc08a){const _0x41c622=_0x5b831f;return _0x121382+'/'+_0x3d2e81+_0x41c622(0x32a)+_0x3fc08a+_0x41c622(0x3f2);}exports[_0x5b831f(0xd5)]=class extends a[_0x5b831f(0x333)]{constructor(_0x15a064,_0x36e426,_0x360398,_0xd0953c,_0x45a48d){const _0x243ab5=_0x5b831f;super(),this[_0x243ab5(0x230)]=_0x15a064,this[_0x243ab5(0x2af)]=_0x36e426,this[_0x243ab5(0x16a)]=_0x360398,this[_0x243ab5(0x271)]=_0xd0953c,this[_0x243ab5(0x2ca)]=_0x45a48d;}[_0x5b831f(0x43d)](_0x5c1c83){const _0x59882b=_0x5b831f,_0x48063c=this[_0x59882b(0x2af)][_0x59882b(0x43d)](_0x5c1c83);if(!_0x48063c)throw new Error(_0x59882b(0xdf));const _0x503a40=new a[(_0x59882b(0xed))](),_0x40255d=new v[(_0x59882b(0xf0))]();_0x503a40[_0x59882b(0x219)](_0x48063c[_0x59882b(0x358)][_0x59882b(0x3fc)](_0x40dd05=>_0x40255d[_0x59882b(0x2b2)](_0x40dd05))),_0x503a40[_0x59882b(0x219)](a[_0x59882b(0x3cb)](()=>_0x40255d[_0x59882b(0x1bd)]()));const _0x44e488=new v[(_0x59882b(0xf0))]();_0x503a40[_0x59882b(0x219)](_0x48063c[_0x59882b(0x371)][_0x59882b(0x3fc)](_0x5a4053=>_0x44e488[_0x59882b(0x2b2)](_0x5a4053))),_0x503a40[_0x59882b(0x219)](a[_0x59882b(0x3cb)](()=>_0x44e488['complete']()));const _0xdf8753=new v[(_0x59882b(0xf0))]();_0x503a40[_0x59882b(0x219)](_0x48063c['message$'][_0x59882b(0x3fc)](_0x21c172=>{const _0x5079c2=_0x59882b,_0x16005f=Ct(_0x21c172);_0xdf8753[_0x5079c2(0x2b2)](_0x16005f);})),_0x503a40['add'](a[_0x59882b(0x3cb)](()=>_0xdf8753['complete']()));let _0x3c50ce;const _0x15ea06=()=>{const _0x472437=_0x59882b;_0x44e488[_0x472437(0x2b2)](new Event(_0x472437(0x473))),_0x40255d[_0x472437(0x2b2)](new CloseEvent(_0x472437(0x473))),_0x3c50ce[_0x472437(0x36d)]();};return _0x3c50ce={'memberID':'','close$':_0x40255d['asObservable'](),'error$':_0x44e488[_0x59882b(0x2bc)](),'open$':_0x48063c['open$'],'message$':_0xdf8753[_0x59882b(0x2bc)](),'send':_0x1a0d19=>{const _0x16e28a=_0x59882b;if(_0x1a0d19[_0x16e28a(0x37b)]===b[_0x16e28a(0x339)]){if(_0x1a0d19[_0x16e28a(0xcd)][_0x16e28a(0x182)]===_[_0x16e28a(0x270)][_0x16e28a(0x98)]){this[_0x16e28a(0x151)](_0x3c50ce,_0x1a0d19[_0x16e28a(0xcd)])[_0x16e28a(0x1dc)](_0x56a0a4=>{const _0x4ad0b7=_0x16e28a;this[_0x4ad0b7(0x271)][_0x4ad0b7(0xa7)](_0x56a0a4),_0x15ea06();});return;}if(_0x1a0d19['data']['eventID']===_['CollaborationEvent']['FETCH_MISSING']){const _0x1a1325=_0x1a0d19[_0x16e28a(0xcd)];this['_fetchMissChangesets'](_0x1a1325)['then'](_0xf7496a=>{const _0x46378d=_0x16e28a;_0xdf8753[_0x46378d(0x2b2)]({'cmd':b[_0x46378d(0x27d)],'code':We['OK'],'routeKey':_0x1a1325[_0x46378d(0xcd)][_0x46378d(0x311)],'routeType':'','data':{'eventID':_[_0x46378d(0x270)][_0x46378d(0x7d)],'data':{'changesets':_0xf7496a}}});})['catch'](_0x5383e2=>{const _0x3d302a=_0x16e28a;this[_0x3d302a(0x271)]['error'](_0x5383e2),_0x15ea06();});return;}}_0x48063c[_0x16e28a(0xd4)](Et(_0x1a0d19));},'close':()=>{const _0x264644=_0x59882b;_0x48063c[_0x264644(0x36d)](),_0x503a40[_0x264644(0x257)]();}},_0x3c50ce;}async[_0x5b831f(0x151)](_0x590e15,_0x21112e){const _0x22d85c=_0x5b831f;var _0x49791a,_0x32c7cc;const {unitType:_0x31c387,unitID:_0x13dbb1,changeset:_0x3d81e2}=_0x21112e[_0x22d85c(0xcd)],_0x281a63={'unitID':_0x13dbb1,'memberID':_0x590e15[_0x22d85c(0x34d)],'type':_0x31c387,'changeset':_['parseChangesetToProtocol'](_0x3d81e2)},_0x5cd31d=this['_configService'][_0x22d85c(0xad)](ft),_0x5cb3b5=this[_0x22d85c(0x16a)][_0x22d85c(0xad)](A),_0x248ea4=rs((_0x32c7cc=(_0x49791a=_0x5cb3b5==null?void 0x0:_0x5cb3b5['collabSubmitChangesetUrl'])!=null?_0x49791a:_0x5cd31d)!=null?_0x32c7cc:Qt,_0x31c387,_0x13dbb1);try{await this[_0x22d85c(0x230)][_0x22d85c(0x357)](_0x248ea4,{'body':_0x281a63});}catch(_0x11005f){throw this[_0x22d85c(0x271)][_0x22d85c(0xa7)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0x11005f;}}async[_0x5b831f(0x290)](_0x256bef){const _0xd63269=_0x5b831f,{unitID:_0x2d18f6,from:_0x1b9427,to:_0x342748,unitType:_0x28fd5f}=_0x256bef[_0xd63269(0xcd)];return(await this[_0xd63269(0x2ca)][_0xd63269(0x167)]({'metadata':void 0x0},{'unitID':_0x2d18f6,'type':_0x28fd5f,'from':_0x1b9427,'to':_0x342748}))[_0xd63269(0x464)];}},exports[_0x5b831f(0xd5)]=ns([oe(0x0,a[_0x5b831f(0x1d9)](P[_0x5b831f(0x7b)])),oe(0x1,a[_0x5b831f(0x1d9)](P[_0x5b831f(0x131)])),oe(0x2,a[_0x5b831f(0x159)]),oe(0x3,a[_0x5b831f(0x463)]),oe(0x4,_[_0x5b831f(0xb6)])],exports[_0x5b831f(0xd5)]);const os=_0x5b831f(0x1ab);function as(_0x452c36){const _0x4fcae9=_0x5b831f;return JSON[_0x4fcae9(0x1af)](_0x452c36)[_0x4fcae9(0x21d)];}class Ge{constructor(){const _0x363ad6=_0x5b831f;d(this,_0x363ad6(0x263),new v['Subject']()),d(this,_0x363ad6(0xfc),this['_commentUpdate$'][_0x363ad6(0x2bc)]());}[_0x5b831f(0x49e)](_0x2c8ddb){const _0xf7bc3d=_0x5b831f;this[_0xf7bc3d(0x263)][_0xf7bc3d(0x2b2)](_0x2c8ddb);}}var cs=Object[_0x5b831f(0x1e0)],ls=Object[_0x5b831f(0x31a)],hs=(_0x1d6d9f,_0x4913df,_0x2d01c9,_0x28d1a8)=>{const _0x1c497a=_0x5b831f;for(var _0x5a34f6=_0x28d1a8>0x1?void 0x0:_0x28d1a8?ls(_0x4913df,_0x2d01c9):_0x4913df,_0x41fab1=_0x1d6d9f[_0x1c497a(0x21d)]-0x1,_0x3eb0bc;_0x41fab1>=0x0;_0x41fab1--)(_0x3eb0bc=_0x1d6d9f[_0x41fab1])&&(_0x5a34f6=(_0x28d1a8?_0x3eb0bc(_0x4913df,_0x2d01c9,_0x5a34f6):_0x3eb0bc(_0x5a34f6))||_0x5a34f6);return _0x28d1a8&&_0x5a34f6&&cs(_0x4913df,_0x2d01c9,_0x5a34f6),_0x5a34f6;},Ze=(_0x417530,_0x28e646)=>(_0xfd4a77,_0x16396b)=>_0x28e646(_0xfd4a77,_0x16396b,_0x417530);let q=class extends a[_0x5b831f(0x333)]{constructor(_0x21c870,_0x50cabf){const _0x2c5791=_0x5b831f;super(),d(this,_0x2c5791(0x2c4),new Map()),(this[_0x2c5791(0x249)]=_0x21c870,this[_0x2c5791(0x211)]=_0x50cabf,this[_0x2c5791(0x37a)](a['toDisposable'](v[_0x2c5791(0x103)](this[_0x2c5791(0x249)][_0x2c5791(0x3df)](a['UniverInstanceType'][_0x2c5791(0x102)])['pipe'](E[_0x2c5791(0x31d)](_0x296375=>_0x296375[_0x2c5791(0xa3)]())),this[_0x2c5791(0x249)][_0x2c5791(0x3df)](a[_0x2c5791(0x12d)][_0x2c5791(0x192)])[_0x2c5791(0x1a5)](E['map'](_0x49440b=>_0x49440b[_0x2c5791(0xa3)]())),this[_0x2c5791(0x249)][_0x2c5791(0x3df)](a[_0x2c5791(0x12d)][_0x2c5791(0x313)])['pipe'](E[_0x2c5791(0x31d)](_0x481207=>_0x481207[_0x2c5791(0xa3)]())))['subscribe'](_0x2f664d=>this[_0x2c5791(0x171)](_0x2f664d)))));}[_0x5b831f(0x48c)](_0x3d776f){this['_userManagerService']['setCurrentUser'](_0x3d776f);}[_0x5b831f(0x3d1)](){const _0xbd0799=_0x5b831f;return this[_0xbd0799(0x211)][_0xbd0799(0x3d1)]();}[_0x5b831f(0x28b)](_0x3407eb,_0x134aa6){const _0x417ce6=_0x5b831f;let _0x47f08c=this[_0x417ce6(0x2c4)][_0x417ce6(0x28f)](_0x3407eb);_0x47f08c||(_0x47f08c=new _s(),this[_0x417ce6(0x2c4)][_0x417ce6(0x46d)](_0x3407eb,_0x47f08c)),_0x47f08c[_0x417ce6(0x28b)](_0x134aa6);}[_0x5b831f(0x2ce)](_0x17dd2e,_0x10860a){const _0x2fe849=_0x5b831f,_0x5a532b=this[_0x2fe849(0x2c4)]['get'](_0x17dd2e);_0x5a532b&&_0x5a532b[_0x2fe849(0x2ce)](_0x10860a);}[_0x5b831f(0x8b)](_0x42f9c0){const _0x1ba65f=_0x5b831f;return this[_0x1ba65f(0x2c4)]['get'](_0x42f9c0);}['getMember'](_0x5304bb,_0x51094c){const _0x7f0458=_0x5b831f,_0x1d4cb6=this[_0x7f0458(0x2c4)][_0x7f0458(0x28f)](_0x5304bb);if(_0x1d4cb6)return _0x1d4cb6[_0x7f0458(0x33b)](_0x51094c);}[_0x5b831f(0x171)](_0x4fa301){const _0x55ab95=_0x5b831f,_0x2f12f1=this[_0x55ab95(0x2c4)]['get'](_0x4fa301);_0x2f12f1&&(_0x2f12f1[_0x55ab95(0x257)](),this[_0x55ab95(0x2c4)][_0x55ab95(0x344)](_0x4fa301));}[_0x5b831f(0x257)](){const _0x696edf=_0x5b831f;this[_0x696edf(0x2c4)][_0x696edf(0x1b5)](_0x5ac1ba=>_0x5ac1ba[_0x696edf(0x257)]()),this[_0x696edf(0x2c4)]['clear']();}};q=hs([Ze(0x0,a[_0x5b831f(0x3c0)]),Ze(0x1,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x29c)]))],q);class _s extends a[_0x5b831f(0x333)]{constructor(){super(...arguments),d(this,'_members',new Map());}['dispose'](){const _0x48a699=_0x5b831f;this[_0x48a699(0x19d)][_0x48a699(0x394)]();}[_0x5b831f(0x28b)](_0xa141dd){const _0x44c09e=_0x5b831f;this[_0x44c09e(0x19d)][_0x44c09e(0x46d)](_0xa141dd[_0x44c09e(0x34d)],_0xa141dd);}[_0x5b831f(0x2ce)](_0x3e4faf){const _0x149d77=_0x5b831f;this[_0x149d77(0x19d)][_0x149d77(0x344)](_0x3e4faf);}['getMember'](_0x4c4a51){const _0x40126d=_0x5b831f;return this[_0x40126d(0x19d)][_0x40126d(0x28f)](_0x4c4a51);}}var us=Object[_0x5b831f(0x1e0)],ds=Object[_0x5b831f(0x31a)],Ss=(_0x59a488,_0x33e324,_0x30c16d,_0x1246f6)=>{for(var _0x2ce2eb=_0x1246f6>0x1?void 0x0:_0x1246f6?ds(_0x33e324,_0x30c16d):_0x33e324,_0x1cb541=_0x59a488['length']-0x1,_0x592c40;_0x1cb541>=0x0;_0x1cb541--)(_0x592c40=_0x59a488[_0x1cb541])&&(_0x2ce2eb=(_0x1246f6?_0x592c40(_0x33e324,_0x30c16d,_0x2ce2eb):_0x592c40(_0x2ce2eb))||_0x2ce2eb);return _0x1246f6&&_0x2ce2eb&&us(_0x33e324,_0x30c16d,_0x2ce2eb),_0x2ce2eb;},B=(_0xbbddb2,_0x27fd1d)=>(_0xf57c02,_0x486177)=>_0x27fd1d(_0xf57c02,_0x486177,_0xbbddb2),$=(_0x19bee0=>(_0x19bee0[_0x19bee0[_0x5b831f(0x26c)]=0x0]='IDLE',_0x19bee0[_0x19bee0[_0x5b831f(0x361)]=0x1]=_0x5b831f(0x361),_0x19bee0[_0x19bee0['OFFLINE']=0x2]=_0x5b831f(0x2e0),_0x19bee0[_0x19bee0[_0x5b831f(0x314)]=0x3]=_0x5b831f(0x314),_0x19bee0))($||{});exports[_0x5b831f(0x488)]=class extends a[_0x5b831f(0x494)]{constructor(_0x5bce63,_0x4e2cb9,_0x3cfe25,_0xa3f026,_0x5072ec,_0x4a0521,_0x5e90a6,_0x46ac65,_0x7022ca,_0xe515f2){const _0x6d2548=_0x5b831f;super(),d(this,_0x6d2548(0x3d2),new v['BehaviorSubject'](0x0)),d(this,'sessionStatus$',this[_0x6d2548(0x3d2)][_0x6d2548(0x2bc)]()),d(this,'_event$',new v[(_0x6d2548(0xf0))]()),d(this,_0x6d2548(0x27c),this[_0x6d2548(0x109)]['asObservable']()),d(this,'_socket'),d(this,_0x6d2548(0x45b)),d(this,_0x6d2548(0x3bb)),d(this,_0x6d2548(0x443),!0x1),d(this,_0x6d2548(0x2e1),null),(this[_0x6d2548(0x417)]=_0x5bce63,this[_0x6d2548(0x271)]=_0x3cfe25,this['_beforeCloseService']=_0xa3f026,this[_0x6d2548(0x25a)]=_0x5072ec,this['_configService']=_0x4a0521,this[_0x6d2548(0x284)]=_0x5e90a6,this[_0x6d2548(0x33e)]=_0x46ac65,this[_0x6d2548(0x418)]=_0x7022ca,this[_0x6d2548(0x322)]=_0xe515f2,this[_0x6d2548(0x443)]=!!this[_0x6d2548(0x322)],_0x4e2cb9['pipe'](v[_0x6d2548(0xec)](this[_0x6d2548(0x25c)]))[_0x6d2548(0x3fc)](_0x46dbaf=>{const _0x141ac2=_0x6d2548;var _0x46d3be;typeof _0x46dbaf>'u'||(this[_0x141ac2(0x174)]=_0x46dbaf,_0x46dbaf?(this[_0x141ac2(0x12f)](_0x46dbaf),this['_socketMessageSubscription']=_0x46dbaf[_0x141ac2(0x140)][_0x141ac2(0x3fc)](_0x46794a=>{const _0x5b69c0=_0x141ac2;_0x46794a[_0x5b69c0(0x17e)]===this[_0x5b69c0(0x417)]&&this[_0x5b69c0(0x10f)](_0x46794a);})):(this[_0x141ac2(0x40c)](),this[_0x141ac2(0x3d2)][_0x141ac2(0x2b2)](0x2),(_0x46d3be=this[_0x141ac2(0x45b)])==null||_0x46d3be[_0x141ac2(0x298)](),this[_0x141ac2(0x45b)]=null));}),this[_0x6d2548(0x37a)](this[_0x6d2548(0x148)][_0x6d2548(0x85)](()=>{const _0x117db6=_0x6d2548;var _0x35c331;(_0x35c331=this['_socket'])==null||_0x35c331[_0x117db6(0xd4)]({'cmd':b[_0x117db6(0x1a4)],'data':{'roomID':this[_0x117db6(0x417)]}});})));}get[_0x5b831f(0x277)](){const _0x51942e=_0x5b831f;return this['_sessionStatus$'][_0x51942e(0x168)]();}[_0x5b831f(0x2a1)](){const _0x23a747=_0x5b831f;var _0x3d380c,_0x231e04;return(_0x231e04=(_0x3d380c=this[_0x23a747(0x174)])==null?void 0x0:_0x3d380c['memberID'])!=null?_0x231e04:null;}[_0x5b831f(0x257)](){const _0x42e2e5=_0x5b831f;super['dispose'](),this['dispose$']['next'](),this[_0x42e2e5(0x25c)][_0x42e2e5(0x1bd)]();}['close'](){const _0x2bdea3=_0x5b831f;var _0x577c83,_0x259150;this[_0x2bdea3(0x40c)](),(_0x577c83=this[_0x2bdea3(0x174)])==null||_0x577c83[_0x2bdea3(0xd4)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x2bdea3(0x417)]}}),(_0x259150=this[_0x2bdea3(0x174)])==null||_0x259150[_0x2bdea3(0x36d)](),this[_0x2bdea3(0x109)]['complete'](),this[_0x2bdea3(0x3d2)][_0x2bdea3(0x1bd)](),this['dispose']();}[_0x5b831f(0x10f)](_0x237028){const _0x403f7c=_0x5b831f;_0x237028[_0x403f7c(0x37b)]===b[_0x403f7c(0x1ed)]?this['_onJoinRoomEvent'](_0x237028):_0x237028[_0x403f7c(0x37b)]===b[_0x403f7c(0x27d)]&&this[_0x403f7c(0x3b0)](_0x237028);}['_joinRoom'](_0x5222ca){const _0x339a5e=_0x5b831f;this[_0x339a5e(0x3d2)]['next'](0x1),_0x5222ca['send']({'cmd':b[_0x339a5e(0x1ed)],'routeKey':this[_0x339a5e(0x417)],'routeType':'','data':{'rooms':[{'roomID':this[_0x339a5e(0x417)]}]}});}[_0x5b831f(0xbd)](_0x33e68f){const _0xb11bed=_0x5b831f;var _0x1fa1c5;if(_0x33e68f[_0xb11bed(0x42b)]===We[_0xb11bed(0x294)]){this[_0xb11bed(0x25a)][_0xb11bed(0x2b0)]({'type':X[_0xb11bed(0x2a0)][_0xb11bed(0x1f2)],'content':this[_0xb11bed(0x284)]['t'](_0xb11bed(0x14a))}),this[_0xb11bed(0x3d2)][_0xb11bed(0x2b2)](0x2);return;}this[_0xb11bed(0x3d2)][_0xb11bed(0x2b2)](0x3);const _0x1ca8bd=(_0x1fa1c5=_0x33e68f['data'][_0xb11bed(0x383)][this[_0xb11bed(0x417)]])==null?void 0x0:_0x1fa1c5['members'];_0x1ca8bd&&_0x1ca8bd[_0xb11bed(0x1b5)](_0x1da916=>this[_0xb11bed(0x33e)][_0xb11bed(0x28b)](this[_0xb11bed(0x417)],_0x1da916));}[_0x5b831f(0x3b0)](_0x298f1a){const _0x318c74=_0x5b831f;try{const _0x5ab5b2=_0x298f1a[_0x318c74(0xcd)];switch(_0x5ab5b2[_0x318c74(0x182)]){case _[_0x318c74(0x270)][_0x318c74(0x2be)]:this[_0x318c74(0x222)](_0x5ab5b2),this['_event$']['next'](_0x5ab5b2);break;case _['CollaborationEvent'][_0x318c74(0xc6)]:this[_0x318c74(0x41f)](_0x5ab5b2),this[_0x318c74(0x109)][_0x318c74(0x2b2)](_0x5ab5b2);break;case _[_0x318c74(0x270)][_0x318c74(0x2fa)]:this[_0x318c74(0x3b8)](),this[_0x318c74(0x3d7)](),this[_0x318c74(0x109)][_0x318c74(0x2b2)](_0x5ab5b2);break;case _[_0x318c74(0x270)][_0x318c74(0x422)]:this[_0x318c74(0x271)][_0x318c74(0xa7)](_0x318c74(0x41d)+JSON['stringify'](_0x5ab5b2)),this[_0x318c74(0x109)][_0x318c74(0x2b2)](_0x5ab5b2);break;case _['CollaborationEvent']['COMMENT_UPDATE']:this[_0x318c74(0x418)][_0x318c74(0x49e)](_0x5ab5b2[_0x318c74(0xcd)]),this[_0x318c74(0x109)][_0x318c74(0x2b2)](_0x5ab5b2);break;default:this['_event$'][_0x318c74(0x2b2)](_0x5ab5b2);}}catch(_0x49471f){this[_0x318c74(0x271)][_0x318c74(0xa7)](_0x49471f,_0x298f1a);}}[_0x5b831f(0x222)](_0x30ec22){const _0x3e0dd3=_0x5b831f;this[_0x3e0dd3(0x33e)][_0x3e0dd3(0x28b)](this['_unitID'],_0x30ec22[_0x3e0dd3(0xcd)]);}[_0x5b831f(0x41f)](_0x72f20f){const _0x31ec93=_0x5b831f;this[_0x31ec93(0x33e)][_0x31ec93(0x2ce)](this[_0x31ec93(0x417)],_0x72f20f[_0x31ec93(0xcd)]['memberID']);}async[_0x5b831f(0xd4)](_0x284671,_0x584ca5){const _0x54e37f=_0x5b831f;if(this['sessionStatus']!==0x3||!this[_0x54e37f(0x174)])throw new Error(_0x54e37f(0x138));try{_0x284671['eventID']===_[_0x54e37f(0x270)][_0x54e37f(0x98)]&&(this[_0x54e37f(0x80)](),this[_0x54e37f(0x2fc)](_0x284671)),this[_0x54e37f(0x174)]['send']({'cmd':b['INGEST'],'routeKey':_0x584ca5,'routeType':'','data':_0x284671});}catch(_0x1cf07f){this[_0x54e37f(0x271)][_0x54e37f(0xa7)](_0x1cf07f);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4943e1=_0x5b831f;var _0x2c2575;this[_0x4943e1(0x3bb)]=window[_0x4943e1(0x34a)](()=>{const _0x4ca11e=_0x4943e1;this['_collaborationTimeoutTimer']=null,this[_0x4ca11e(0x25a)][_0x4ca11e(0x2b0)]({'type':X[_0x4ca11e(0x2a0)][_0x4ca11e(0x163)],'content':this[_0x4ca11e(0x284)]['t']('session.collaboration-timeout')});},(_0x2c2575=this[_0x4943e1(0x16a)][_0x4943e1(0xad)](Ve))!=null?_0x2c2575:St);}['_clearCollaborationTimeoutTimer'](){const _0x371eef=_0x5b831f;this[_0x371eef(0x3bb)]&&(clearTimeout(this[_0x371eef(0x3bb)]),this[_0x371eef(0x3bb)]=null);}[_0x5b831f(0x2fc)](_0x4e0688){const _0x33e0b7=_0x5b831f;if(!this[_0x33e0b7(0x443)])return;const {data:_0x28b3e1}=_0x4e0688,{unitID:_0xa40edd,changeset:_0x33626b}=_0x28b3e1,{mutations:_0x39c419,type:_0x5f5293}=_0x33626b;this[_0x33e0b7(0x2e1)]={'unitId':_0xa40edd,'type':_0x5f5293,'startTime':performance[_0x33e0b7(0x340)](),'stopTime':0x0,'duration':0x0,'size':as(_0x39c419)};}[_0x5b831f(0x3b8)](){const _0x540abd=_0x5b831f;if(this[_0x540abd(0x443)]){if(!this[_0x540abd(0x2e1)]){this[_0x540abd(0x271)][_0x540abd(0xa7)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x540abd(0x2e1)][_0x540abd(0x187)]=performance[_0x540abd(0x340)](),this[_0x540abd(0x2e1)]['duration']=this['_telemetryInfo'][_0x540abd(0x187)]-this[_0x540abd(0x2e1)][_0x540abd(0x14f)],this[_0x540abd(0x322)][_0x540abd(0xa9)](os,this[_0x540abd(0x2e1)]),this[_0x540abd(0x2e1)]=null;}}[_0x5b831f(0x40c)](){this['_telemetryInfo']=null;}},exports[_0x5b831f(0x488)]=Ss([B(0x2,a[_0x5b831f(0x463)]),B(0x3,N[_0x5b831f(0xde)]),B(0x4,N[_0x5b831f(0x16f)]),B(0x5,a[_0x5b831f(0x159)]),B(0x6,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x3c9)])),B(0x7,a[_0x5b831f(0x1d9)](q)),B(0x8,a[_0x5b831f(0x1d9)](Ge)),B(0x9,a[_0x5b831f(0x433)](Bt[_0x5b831f(0x2a3)]))],exports[_0x5b831f(0x488)]);var vs=Object[_0x5b831f(0x1e0)],gs=Object[_0x5b831f(0x31a)],fs=(_0x38c70c,_0x216409,_0x14a6b9,_0x118bb3)=>{const _0x561760=_0x5b831f;for(var _0x47de84=_0x118bb3>0x1?void 0x0:_0x118bb3?gs(_0x216409,_0x14a6b9):_0x216409,_0x591a9d=_0x38c70c[_0x561760(0x21d)]-0x1,_0xdb8d61;_0x591a9d>=0x0;_0x591a9d--)(_0xdb8d61=_0x38c70c[_0x591a9d])&&(_0x47de84=(_0x118bb3?_0xdb8d61(_0x216409,_0x14a6b9,_0x47de84):_0xdb8d61(_0x47de84))||_0x47de84);return _0x118bb3&&_0x47de84&&vs(_0x216409,_0x14a6b9,_0x47de84),_0x47de84;},Z=(_0x3d7317,_0x521c3e)=>(_0x28b0f6,_0x6314d5)=>_0x521c3e(_0x28b0f6,_0x6314d5,_0x3d7317);exports[_0x5b831f(0x47e)]=class extends a['Disposable']{constructor(_0x49b6f7,_0x26ace2,_0x12e3a9,_0x4f765e,_0x9be2a1,_0x542112){const _0x4af0b7=_0x5b831f;super(),d(this,_0x4af0b7(0x3e6),new v[(_0x4af0b7(0x279))](void 0x0)),d(this,'socket$',this[_0x4af0b7(0x3e6)][_0x4af0b7(0x2bc)]()),d(this,'_candidateSocket',null),d(this,_0x4af0b7(0x329),new Map()),d(this,_0x4af0b7(0x13f),new v[(_0x4af0b7(0x279))]($['IDLE'])),d(this,'status$',this['_status$'][_0x4af0b7(0x2bc)]()),d(this,_0x4af0b7(0xa8),!0x1),d(this,_0x4af0b7(0x1c5)),d(this,_0x4af0b7(0x158),0x0),d(this,'_sendHeartbeatTimer'),d(this,_0x4af0b7(0x335)),(this[_0x4af0b7(0x1f9)]=_0x49b6f7,this[_0x4af0b7(0x284)]=_0x26ace2,this[_0x4af0b7(0x25a)]=_0x12e3a9,this[_0x4af0b7(0x271)]=_0x4f765e,this[_0x4af0b7(0x16a)]=_0x9be2a1,this['_socketService']=_0x542112,this[_0x4af0b7(0x409)]());}get[_0x5b831f(0x174)](){const _0x699a82=_0x5b831f;return this[_0x699a82(0x3e6)]['getValue']();}['_initEventListeners'](){const _0x41a85d=_0x5b831f;this['_listenToOfflineEvent'](),this[_0x41a85d(0x1c8)]();}[_0x5b831f(0x257)](){const _0x56a9b2=_0x5b831f;super[_0x56a9b2(0x257)](),this[_0x56a9b2(0x329)][_0x56a9b2(0x1b5)](_0x208558=>_0x208558[_0x56a9b2(0x257)]()),this[_0x56a9b2(0x329)][_0x56a9b2(0x394)](),this[_0x56a9b2(0x13f)][_0x56a9b2(0x1bd)]();}async[_0x5b831f(0x82)](_0x2c9c7f){const _0x489352=_0x5b831f;if(this[_0x489352(0x329)][_0x489352(0x336)](_0x2c9c7f))return this[_0x489352(0x329)][_0x489352(0x28f)](_0x2c9c7f);this[_0x489352(0x194)]();const _0x4ad788=this[_0x489352(0x1f9)][_0x489352(0x364)](exports[_0x489352(0x488)],_0x2c9c7f,this[_0x489352(0x3e6)][_0x489352(0x2bc)]());return this[_0x489352(0x329)][_0x489352(0x46d)](_0x2c9c7f,_0x4ad788),_0x4ad788;}[_0x5b831f(0x3f5)](_0x3e0c02){const _0x43b317=_0x5b831f;var _0x48491f;const _0x1bac1d=this['_sessions'][_0x43b317(0x28f)](_0x3e0c02);_0x1bac1d&&(this['_sessions']['delete'](_0x3e0c02),_0x1bac1d['close']()),this[_0x43b317(0x329)][_0x43b317(0x16b)]||(_0x48491f=this[_0x43b317(0x174)])==null||_0x48491f[_0x43b317(0x36d)]();}['reconnect'](){const _0xa5c1eb=_0x5b831f;this[_0xa5c1eb(0x158)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0xa5c1eb(0x1c5)]),this['_retryConnectingTimer']=null),this[_0xa5c1eb(0x14b)]();}[_0x5b831f(0x424)](){const _0x5a0b89=_0x5b831f;var _0x41d668,_0x290a60;const _0x316b24=this[_0x5a0b89(0x16a)][_0x5a0b89(0xad)](ut),_0x3f61bd=this[_0x5a0b89(0x16a)][_0x5a0b89(0xad)](A),_0x52304b=(_0x290a60=(_0x41d668=_0x3f61bd==null?void 0x0:_0x3f61bd['collabWebSocketUrl'])!=null?_0x41d668:_0x316b24)!=null?_0x290a60:Xt,_0x2dba22=this[_0x5a0b89(0x2c9)][_0x5a0b89(0x43d)](_0x52304b);return this['_candidateSocket']=_0x2dba22,_0x2dba22;}[_0x5b831f(0x194)](){const _0x5b7703=_0x5b831f;var _0x517e42,_0x104f97;try{const _0x290d6e=(_0x104f97=(_0x517e42=this[_0x5b7703(0x174)])!=null?_0x517e42:this[_0x5b7703(0x86)])!=null?_0x104f97:this[_0x5b7703(0x424)]();if(_0x290d6e){const _0x488cc6=_0x290d6e[_0x5b7703(0xd4)];_0x290d6e['send']=_0x9907af=>(this[_0x5b7703(0x198)](),_0x488cc6[_0x5b7703(0x233)](_0x290d6e,[_0x9907af])),_0x290d6e[_0x5b7703(0x140)][_0x5b7703(0x3fc)](_0x41b296=>this[_0x5b7703(0x403)](_0x290d6e,_0x41b296)),_0x290d6e[_0x5b7703(0x371)][_0x5b7703(0x1a5)](E[_0x5b7703(0x2d1)](0x1))['subscribe'](_0x53c5fc=>this[_0x5b7703(0x271)][_0x5b7703(0xa7)]('[CollaborationSessionService]:\x20socket\x20error',_0x53c5fc)),_0x290d6e[_0x5b7703(0x154)][_0x5b7703(0x1a5)](E['take'](0x1))[_0x5b7703(0x3fc)](()=>{const _0x4c0f0e=_0x5b7703;this[_0x4c0f0e(0x345)](_0x290d6e);}),_0x290d6e['close$'][_0x5b7703(0x1a5)](E['take'](0x1))[_0x5b7703(0x3fc)](_0x4df369=>{const _0xe90e62=_0x5b7703;this[_0xe90e62(0x271)][_0xe90e62(0x3c5)]('[CollaborationSessionService]','socket\x20close',_0x4df369),this[_0xe90e62(0x40d)]();});}}catch(_0x255ef1){this[_0x5b7703(0x271)][_0x5b7703(0xa7)](_0x255ef1),this[_0x5b7703(0x40d)]();}}[_0x5b831f(0x345)](_0x555287){const _0xaf076c=_0x5b831f;this[_0xaf076c(0x271)][_0xaf076c(0x3c5)]('[CollaborationSessionService]',_0xaf076c(0x286)),_0x555287['send']({'cmd':b[_0xaf076c(0xba)]}),this[_0xaf076c(0x198)]();}[_0x5b831f(0x1a9)](){const _0x3ed5e1=_0x5b831f;window['addEventListener'](_0x3ed5e1(0x37c),()=>this[_0x3ed5e1(0x203)]());}[_0x5b831f(0x203)](){const _0x444c28=_0x5b831f;this[_0x444c28(0xa8)]=!0x1,this[_0x444c28(0x86)]=null,this[_0x444c28(0x13f)][_0x444c28(0x2b2)]($[_0x444c28(0x2e0)]),this[_0x444c28(0x3e6)][_0x444c28(0x2b2)](null),this['_clearTimeoutTimer'](),this[_0x444c28(0x468)]();}[_0x5b831f(0x40d)](){const _0x1823e6=_0x5b831f;var _0xb60313;this['_onOffline'](),this[_0x1823e6(0x158)]<((_0xb60313=this['_configService'][_0x1823e6(0xad)](vt))!=null?_0xb60313:Jt)?(this[_0x1823e6(0x25a)]['show']({'key':_0x1823e6(0x3cd),'type':X['MessageType'][_0x1823e6(0x1f2)],'content':this[_0x1823e6(0x284)]['t'](_0x1823e6(0x127))}),this[_0x1823e6(0x14b)]()):this['_messageService'][_0x1823e6(0x2b0)]({'key':_0x1823e6(0x3cd),'type':X[_0x1823e6(0x2a0)][_0x1823e6(0x163)],'content':this['_localeService']['t'](_0x1823e6(0x40e))});}[_0x5b831f(0x1c8)](){const _0x37b159=_0x5b831f,_0x65d1b7=()=>{const _0x51e32f=_0x49eb;this[_0x51e32f(0x174)]||this[_0x51e32f(0x36e)]();},_0x2439f9=()=>{const _0x5d0ed7=_0x49eb;this['_socket']||document[_0x5d0ed7(0x166)]===_0x5d0ed7(0x128)||this['reconnect']();};window[_0x37b159(0x237)](_0x37b159(0x13a),_0x65d1b7),document[_0x37b159(0x237)](_0x37b159(0x2ae),_0x2439f9);}[_0x5b831f(0x14b)](){const _0x304741=_0x5b831f;var _0x554492;const _0x3f2d6c=this['_retryCount'],_0x5007a9=this[_0x304741(0x16a)][_0x304741(0xad)](A),_0x1b3166=_0x3f2d6c===0x0?0x0:((_0x554492=_0x5007a9==null?void 0x0:_0x5007a9[_0x304741(0x10c)])!=null?_0x554492:zt)*0x2**_0x3f2d6c;this[_0x304741(0x1c5)]=window[_0x304741(0x34a)](()=>{const _0x3caff1=_0x304741;clearTimeout(this[_0x3caff1(0x1c5)]),this['_retryConnectingTimer']=null,this[_0x3caff1(0x194)]();},_0x1b3166),this['_retryCount']+=0x1;}['_onMessage'](_0x55e54f,_0x3d1ecf){const _0x149655=_0x5b831f,{cmd:_0x444eca}=_0x3d1ecf;_0x444eca===b[_0x149655(0xba)]&&!this[_0x149655(0xa8)]&&(_0x55e54f[_0x149655(0x34d)]=_0x3d1ecf['data'][_0x149655(0x34d)],this['_socket$'][_0x149655(0x2b2)](_0x55e54f),this[_0x149655(0x13f)][_0x149655(0x2b2)]($[_0x149655(0x314)]),this[_0x149655(0xa8)]=!0x0,this[_0x149655(0x86)]=null),_0x444eca===b[_0x149655(0x28d)]&&this[_0x149655(0x1c6)](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x3d15da=_0x5b831f;var _0x3e87c6;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0x3d15da(0x34a)](()=>this[_0x3d15da(0x207)](),(_0x3e87c6=this[_0x3d15da(0x16a)]['getConfig'](dt))!=null?_0x3e87c6:qt);}[_0x5b831f(0x207)](){const _0x36da1f=_0x5b831f;this[_0x36da1f(0x174)][_0x36da1f(0xd4)]({'cmd':b[_0x36da1f(0x28d)]}),this[_0x36da1f(0x2d4)]();}[_0x5b831f(0x2d4)](){const _0x162d91=_0x5b831f;var _0x1bdb4e;this[_0x162d91(0x335)]=window[_0x162d91(0x34a)](()=>this[_0x162d91(0x40d)](),(_0x1bdb4e=this[_0x162d91(0x16a)][_0x162d91(0xad)](Ve))!=null?_0x1bdb4e:St);}[_0x5b831f(0x468)](){const _0x410577=_0x5b831f;this[_0x410577(0x2bd)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x410577(0x2bd)]=null);}['_clearTimeoutTimer'](){const _0x4db399=_0x5b831f;this[_0x4db399(0x335)]!=null&&(clearTimeout(this[_0x4db399(0x335)]),this[_0x4db399(0x335)]=null);}},exports[_0x5b831f(0x47e)]=fs([Z(0x0,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),Z(0x1,a[_0x5b831f(0x1d9)](a['LocaleService'])),Z(0x2,N['IMessageService']),Z(0x3,a['ILogService']),Z(0x4,a[_0x5b831f(0x159)]),Z(0x5,Fe)],exports[_0x5b831f(0x47e)]);var ms=Object[_0x5b831f(0x1e0)],Is=Object[_0x5b831f(0x31a)],ps=(_0x95a6e6,_0x4a1c44,_0x308320,_0x5dd8fd)=>{const _0xfe67b9=_0x5b831f;for(var _0x551aed=_0x5dd8fd>0x1?void 0x0:_0x5dd8fd?Is(_0x4a1c44,_0x308320):_0x4a1c44,_0x34c8ed=_0x95a6e6[_0xfe67b9(0x21d)]-0x1,_0x56bdb4;_0x34c8ed>=0x0;_0x34c8ed--)(_0x56bdb4=_0x95a6e6[_0x34c8ed])&&(_0x551aed=(_0x5dd8fd?_0x56bdb4(_0x4a1c44,_0x308320,_0x551aed):_0x56bdb4(_0x551aed))||_0x551aed);return _0x5dd8fd&&_0x551aed&&ms(_0x4a1c44,_0x308320,_0x551aed),_0x551aed;},ye=(_0x2fcc2e,_0x4e76cb)=>(_0xefcbde,_0x3b1ddd)=>_0x4e76cb(_0xefcbde,_0x3b1ddd,_0x2fcc2e);let ge=class{constructor(_0x128316,_0x3dbfc7,_0x1eafc6){const _0x2008de=_0x5b831f;this[_0x2008de(0x1f9)]=_0x128316,this[_0x2008de(0x44d)]=_0x3dbfc7,this[_0x2008de(0x287)]=_0x1eafc6;}[_0x5b831f(0x7e)](_0x13ebaf){const _0x23cee3=_0x5b831f;this[_0x23cee3(0x3a4)](_0x13ebaf),this['_transformPreviousActiveRange'](_0x13ebaf);}[_0x5b831f(0x484)](_0xfd70e3){const _0x21d887=_0x5b831f,{unitID:_0x277493}=_0xfd70e3,_0x2469df=this[_0x21d887(0x287)][_0x21d887(0x165)](_0x277493)[_0x21d887(0xaf)](w[_0x21d887(0x404)]),{redoCache:_0x3136cf}=_0x2469df['getUndoRedoMutationParamsCache']();if(_0x3136cf[_0x21d887(0x21d)]===0x0)return _0xfd70e3;let _0x434f36=a[_0x21d887(0x17b)][_0x21d887(0x3ef)](_0xfd70e3['mutations'][0x0]);for(let _0x254a4a=0x0;_0x254a4a<_0x3136cf[_0x21d887(0x21d)];_0x254a4a++){const _0x48985f={'id':'doc.mutation.rich-text-editing','params':{..._0x3136cf[_0x254a4a]}},_0x32d29=this[_0x21d887(0x44d)][_0x21d887(0x1db)](_0x434f36,_0x48985f,!0x1);if(_[_0x21d887(0x308)](_0x32d29))throw _0x32d29[_0x21d887(0xa7)];_0x434f36=_0x32d29[_0x21d887(0x393)];}return{...a[_0x21d887(0x17b)][_0x21d887(0x3ef)](_0xfd70e3),'mutations':[_0x434f36]};}['_transformUndoRedoStack'](_0x1861b7){const _0x14de04=_0x5b831f,{unitID:_0x521a8b}=_0x1861b7,_0x4bf656=this['_renderManagerService']['getRenderById'](_0x521a8b)[_0x14de04(0xaf)](w['DocIMEInputManagerService']),{undoCache:_0x2d6e42,redoCache:_0x105aec}=_0x4bf656[_0x14de04(0x221)]();if(_0x2d6e42[_0x14de04(0x21d)]===0x0||_0x105aec[_0x14de04(0x21d)]===0x0)return;const _0x2018e2=[],_0x1b86a2=[];let _0x5f3581=a[_0x14de04(0x17b)][_0x14de04(0x3ef)](_0x1861b7['mutations'][0x0]),_0x1919a8=a[_0x14de04(0x17b)]['deepClone'](_0x1861b7['mutations'][0x0]);for(let _0x1caf07=_0x2d6e42[_0x14de04(0x21d)]-0x1;_0x1caf07>=0x0;_0x1caf07--){const _0x5d9d99={'id':_0x14de04(0x3fb),'params':{..._0x2d6e42[_0x1caf07]}},_0x418fd7={'id':_0x14de04(0x3fb),'params':{..._0x105aec[_0x1caf07]}},_0x187403=this['_transformService']['transformMutation'](_0x5f3581,_0x5d9d99,!0x1),_0x165f35=this['_transformService'][_0x14de04(0x1db)](_0x1919a8,_0x418fd7,!0x1);if(_[_0x14de04(0x308)](_0x187403))throw _0x187403[_0x14de04(0xa7)];if(_[_0x14de04(0x308)](_0x165f35))throw _0x165f35[_0x14de04(0xa7)];_0x2018e2[_0x14de04(0x9d)](_0x187403[_0x14de04(0x475)]['params']),_0x1b86a2[_0x14de04(0x9d)](_0x165f35[_0x14de04(0x475)][_0x14de04(0x38a)]),_0x5f3581=_0x187403[_0x14de04(0x393)],_0x1919a8=_0x165f35[_0x14de04(0x393)];}_0x4bf656[_0x14de04(0x401)]({'undoCache':_0x2018e2,'redoCache':_0x1b86a2});}[_0x5b831f(0x26b)](_0x2b78c0){const _0x33a0cf=_0x5b831f,{unitID:_0x1780e9}=_0x2b78c0,_0x536e61=this[_0x33a0cf(0x287)][_0x33a0cf(0x165)](_0x1780e9)[_0x33a0cf(0xaf)](w[_0x33a0cf(0x404)]),_0x540844=_0x536e61[_0x33a0cf(0x2bb)]();if(_0x540844==null)return;const _0x583ec8=[{'id':_0x33a0cf(0x3fb),'params':{'unitId':_0x2b78c0[_0x33a0cf(0x311)],'actions':null,'textRanges':[_0x540844]}}],_0x5e1487=this[_0x33a0cf(0x44d)][_0x33a0cf(0xb9)](_0x2b78c0,_0x583ec8);if(!_[_0x33a0cf(0x2de)](_0x5e1487))throw _0x5e1487[_0x33a0cf(0xa7)];const _0x1b88cb=_0x5e1487[_0x33a0cf(0x475)][0x0]['params'][_0x33a0cf(0x1f3)];Array[_0x33a0cf(0x21b)](_0x1b88cb)&&_0x1b88cb[_0x33a0cf(0x21d)]&&_0x536e61[_0x33a0cf(0xbb)](_0x1b88cb[0x0]);}};ge=ps([ye(0x0,a[_0x5b831f(0x1d9)](a['Injector'])),ye(0x1,_[_0x5b831f(0x44a)]),ye(0x2,R['IRenderManagerService'])],ge);var Cs=Object['defineProperty'],Es=Object[_0x5b831f(0x31a)],bs=(_0x3a3fc9,_0x3a4acb,_0xc003eb,_0x44f69c)=>{const _0x6f15a9=_0x5b831f;for(var _0x2e384d=_0x44f69c>0x1?void 0x0:_0x44f69c?Es(_0x3a4acb,_0xc003eb):_0x3a4acb,_0x276d58=_0x3a3fc9[_0x6f15a9(0x21d)]-0x1,_0x40861d;_0x276d58>=0x0;_0x276d58--)(_0x40861d=_0x3a3fc9[_0x276d58])&&(_0x2e384d=(_0x44f69c?_0x40861d(_0x3a4acb,_0xc003eb,_0x2e384d):_0x40861d(_0x2e384d))||_0x2e384d);return _0x44f69c&&_0x2e384d&&Cs(_0x3a4acb,_0xc003eb,_0x2e384d),_0x2e384d;},ae=(_0x23a968,_0xcb7217)=>(_0x366231,_0x53c8ce)=>_0xcb7217(_0x366231,_0x53c8ce,_0x23a968);exports[_0x5b831f(0x269)]=class extends a[_0x5b831f(0x333)]{constructor(_0x3148b1,_0x377363,_0xe17e55,_0x11ebe3,_0x4bb083){const _0x4aa45e=_0x5b831f;super(),d(this,_0x4aa45e(0x273),new Map()),d(this,'_saveTaskMap',new Map()),d(this,_0x4aa45e(0x2f8),!0x1),(this[_0x4aa45e(0x16a)]=_0x3148b1,this[_0x4aa45e(0x14e)]=_0x377363,this[_0x4aa45e(0x148)]=_0xe17e55,this[_0x4aa45e(0x284)]=_0x11ebe3,this['_revisionService']=_0x4bb083,this[_0x4aa45e(0x41e)]());}[_0x5b831f(0x265)](){this['_disabled']=!0x0;}[_0x5b831f(0x2dc)](){const _0x5cd8a8=_0x5b831f;this[_0x5cd8a8(0x2f8)]=!0x1;}[_0x5b831f(0x257)](){const _0xbd1965=_0x5b831f;this[_0xbd1965(0x142)]()[_0xbd1965(0x3ea)](()=>super[_0xbd1965(0x257)]());}async[_0x5b831f(0x489)](_0x387f0c){const _0x2c03f3=_0x5b831f;return this[_0x2c03f3(0x2f8)]?null:this[_0x2c03f3(0x14e)][_0x2c03f3(0x10d)](Qe(_0x387f0c));}async[_0x5b831f(0x11a)](_0x369a20,_0xefaed8){const _0x5a01b6=_0x5b831f;return!!this[_0x5a01b6(0x14e)][_0x5a01b6(0x18b)](_0x369a20,_0xefaed8);}[_0x5b831f(0x2f1)](_0x4dc124,_0x54819a,_0x1a2003,_0x16929f){const _0x505981=_0x5b831f,_0x4250fe=this[_0x505981(0x2ac)][_0x505981(0xb2)](_0x4dc124);this[_0x505981(0x273)][_0x505981(0x46d)](_0x4dc124,{'unitID':_0x4dc124,'type':_0x54819a,'awaitingChangeset':_0x1a2003,'mutations':_0x16929f,'rev':_0x4250fe}),this[_0x505981(0x17c)]['has'](_0x4dc124)||this['_scheduleSaving'](_0x4dc124);}[_0x5b831f(0x1ee)](_0x5b2010){const _0x3e94c9=_0x5b831f,_0x8a4a99=this[_0x3e94c9(0x189)]();_0x8a4a99===0x0?this['_saveCache'](_0x5b2010):this[_0x3e94c9(0x17c)][_0x3e94c9(0x46d)](_0x5b2010,setTimeout(()=>this['_saveCache'](_0x5b2010),_0x8a4a99));}[_0x5b831f(0x189)](){const _0x24f804=_0x5b831f;var _0x302788;return(_0x302788=this[_0x24f804(0x16a)]['getConfig'](gt))!=null?_0x302788:Zt;}[_0x5b831f(0x9c)](_0x1b1875){const _0xc34624=_0x5b831f,_0x148394=this[_0xc34624(0x17c)][_0xc34624(0x28f)](_0x1b1875);return _0x148394!==void 0x0&&window['clearTimeout'](_0x148394),this[_0xc34624(0x14e)]['setItem'](Qe(_0x1b1875),this[_0xc34624(0x273)][_0xc34624(0x28f)](_0x1b1875))[_0xc34624(0x3ea)](()=>this[_0xc34624(0x17c)][_0xc34624(0x344)](_0x1b1875));}async[_0x5b831f(0x142)](){const _0x2de3ac=_0x5b831f,_0x45949a=[];this[_0x2de3ac(0x17c)][_0x2de3ac(0x1b5)]((_0x5324aa,_0x56cbf1)=>{const _0x47dd5e=_0x2de3ac;window[_0x47dd5e(0x212)](_0x5324aa),_0x45949a[_0x47dd5e(0x17d)](this['_saveCache'](_0x56cbf1)['then'](()=>{this['_saveTaskMap']['delete'](_0x56cbf1);}));}),await Promise[_0x2de3ac(0x149)](_0x45949a);}[_0x5b831f(0x41e)](){const _0x10e489=_0x5b831f;this['disposeWithMe'](this[_0x10e489(0x148)][_0x10e489(0xaa)](()=>{const _0x335413=_0x10e489;if(this[_0x335413(0x17c)][_0x335413(0x16b)])return this['_localeService']['t'](_0x335413(0x250));}));}},exports[_0x5b831f(0x269)]=bs([ae(0x0,a['IConfigService']),ae(0x1,a['ILocalStorageService']),ae(0x2,N[_0x5b831f(0xde)]),ae(0x3,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x3c9)])),ae(0x4,a[_0x5b831f(0x1d9)](_['RevisionService']))],exports['LocalCacheService']);function Qe(_0x10a0ff){return'unit-cache-'+_0x10a0ff;}var Ts=Object[_0x5b831f(0x1e0)],Rs=Object['getOwnPropertyDescriptor'],Os=(_0x471235,_0x130252,_0x2cb312,_0x4b090d)=>{const _0x37a86c=_0x5b831f;for(var _0x455088=_0x4b090d>0x1?void 0x0:_0x4b090d?Rs(_0x130252,_0x2cb312):_0x130252,_0x21b9eb=_0x471235[_0x37a86c(0x21d)]-0x1,_0x1d2587;_0x21b9eb>=0x0;_0x21b9eb--)(_0x1d2587=_0x471235[_0x21b9eb])&&(_0x455088=(_0x4b090d?_0x1d2587(_0x130252,_0x2cb312,_0x455088):_0x1d2587(_0x455088))||_0x455088);return _0x4b090d&&_0x455088&&Ts(_0x130252,_0x2cb312,_0x455088),_0x455088;},Ue=(_0x16e85c,_0x30a34a)=>(_0x310b5e,_0x411fee)=>_0x30a34a(_0x310b5e,_0x411fee,_0x16e85c);function _0x31db(){const _0xe1e609=['SheetSkeletonManagerService','_startDocCollabCursor','[CollaborationEntity]','CollaborationStatusDisplay','initWorkbookPermissionChange','_updateURLWithCurrentState','_handleJoinEvent','debounce','UNIVER_UNKNOWN','urlChange$','isTransformMutationFailure','location','[CollaborationUndoRedoService]','children','_incrementRevisionNumber','isValidRectRange','LOCAL_CACHE_INTERVAL_KEY','saveChangeset','saveSheetBlock','unitID','POST','UNIVER_SLIDE','ONLINE','SHOULD_CLOSE_CONN','[FetchMissState]','ICommandService','parseProtocolChangeset','className','getOwnPropertyDescriptor','storage','COLLAB_SUBMIT_CHANGESET_URL_KEY','map','off-line-single','_initStatusListener','sequenceExecute','filter','_telemetryService','DesktopCollaborationStatusDisplayController','_getRedoStack','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_updateLocalCache','pending','loginUrlKey','_sessions','/unit/','LICENSE_MAX_UNITS_EXCEEDED','_getAPIPrefixPath','appendMutation','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','concat','DeleteRangeMoveUpCommandId','method','_transformUndoredo','Disposable','_HTTPService','_timeoutTimer','has','_initStatusComponent','unitId','INGEST','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getMember','_cursor','_unlockTransition','_memberService','subscribeEvent','now','whenReady','IUIPartsService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','delete','_onConnectionOpen','syncEditingCollabCursor','_clearScheduledTask','NOT_COLLAB','defIds','setTimeout','Plugin','collabStatus.conflict','memberID','_startCollaboration','_undoRedoService','ImageIoService','_anchorDot','_toggleOnline','string','collabCursorState$','RevisionService','getUnitType','post','close$','getOffsetConfig','6SNrduk','onTransformSelections','status','serializeCombRequest','react','_online','infoRsp','JOINING','collab-text-anchor-','authzUrl','createInstance','defs','ALREADY_EXISTS','Vector2','_getAnchorBounding','UnitSnapshot','HttpExport','newValue','WebURLService','close','reconnect','onTransformIME','UNIVER_PROJECT','error$','YUUMI_UNABLE_LOAD_URL','font','SNAPSHOT_SERVER_URL_KEY','_removeClearOtherTimer','patch','_refreshCollabCursors','ImageUploadStatusType','awaitingChangeset','disposeWithMe','cmd','offline','from','permissionRejEvent','toggleOffline','displayName','onPointerMove$','setAlpha','roomInfos','getSheetBlock','unload','_initUnitPermissionChange','ThresholdInterceptorFactory','resize','mapTo','params','currentColor','UniverIcon','IPermissionService','CollaborationController','/collaborator','userID','conflict','random','m1Prime','clear','_loadDoc','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','target','UPDATE_CURSOR','toStringTag','_compressMutationService','_hover','_createInitialState','_cursors','onMouseMove','refreshPermission','url(#on-line-single_clip0_910_349)','rgba(255,\x20255,\x20255,\x200.01)','getSheetObject','SnapshotService','_transformUndoRedoStack','getCoordByCell','startsWith','origin','c1Prime','roles','Module','setParam','evenodd','_colorIndex','@univerjs/drawing','_entityInit$','_onRecvEvent','UnitEmbedded','blue400','function','NEW_CHANGESETS','_loadSheet','color','onPointerEnter$','_stopTelemetryCollaborationNewChangeset','liveShareNewHost','_init','_collaborationTimeoutTimer','_unitStatus','deleteCollaborator','height','allowed','IUniverInstanceService','getWorkbookSelections','collabStatus.offline','unitId\x20is\x20not\x20found','result','debug','gold400','url(#$1','&to=','LocaleService','INTERNAL_ERROR','toDisposable','synced','collaboration-session-retry','session','getColor','onReady','getCurrentUser','_sessionStatus$','ranges','drawWith','_state','@univerjs-pro/collaboration','_clearCollaborationTimeoutTimer','interceptor','NodePositionConvertToRectRange','loadSheet','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_eventUnsubscribe','clsx','/block/','getTypeOfUnitDisposed$','shouldCloseConn','_selfUnitIDs','onlineStatus','UNRECOGNIZED','replace','put','_socket$','@univerjs/rpc','fromCollab','_updateLocalCursor','then','max','responseType','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','transformChangesets','deepClone','@univerjs/ui','fillStyle','/new_changes','_getDownloadEndpointURL','getCollabCursors$','closeSession','isPermissionRej','InsertSheetMutation','on-line-single','encode','toRgbString','doc.mutation.rich-text-editing','subscribe','skeleton','_disableEditing','RemoveColCommandId','AUTHZ_URL_KEY','setUndoRedoMutationParamsCache','snapshot','_onMessage','DocIMEInputManagerService','getTime','sessionStatus$','currentTheme$','mutations','_initEventListeners','_commandService','WorkbookEditablePermission','_throwTelemetryCollaborationNewChangeset','_onConnectionFailed','session.connection-failed','_collabCursorController','red300','cursorInfo','IImageIoService','\x0aAfter:\x20','@univerjs/docs-ui','ACTIVE_UNIT_EVENT_CHANNEL','getSheetId','_unitID','_commentService','createIdentifier','values','LICENSE_IMPORT_SIZE_EXCEEDED','_transformSelections','save\x20fail\x20reason\x20is\x20','_setupBeforeClosingHandler','_onUserLeave','idSuffix','collab-text-range-','MSG_FOR_ERROR','Rect','_createSocket','getCurrentSelections','OffLineSingle','joinRsp','@univerjs/docs','addImageSourceCache','mapDocumentTypeToUniverType','code','engine','getSkeleton','text','fetchThroughInterceptors','COLORS','awaiting','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','Optional','MUTATION','Univer','_scheduleHeartbeat','currentSkeleton$','HTTPRequest','jiqing500','combineLatest','40447UeUPSY','_getCtorByUniverType','createSocket','workbook','DocSkeletonManagerService','COMPRESS_MUTATION_APPLY','_cursorShapes','withCredentials','_shouldReportTelemetry','editingUnit','image/png','YUUMI_RATE_OVER_LIMIT','3LWgzpV','BuiltInUIPart','VIEW_MAIN','ITransformService','batchAllowed','transformSelections','_transformService','_removeCollabCursors','bottom','EmptyMutation','@univerjs/core','backgroundColor','href','textEncoder','connectInjector','760gJQDag','resend','uni.network.url-service','_syncEditingCollabCursor','lineTo','_socketMessageSubscription','leaveEvent','_createInitialStateImpl','UNAUTHENTICATED','min','AuthzIoHttpService','addObject','_docSkeletonManagerService','ILogService','changesets','_send','clearInterval','DEFAULT_FILE_NAME','_clearHeartbeatTimer','_clearLocalCache','PERMISSION_REJ','[OfflineState]:\x20received\x20rejection.','getAncestorScale','set','NO_OTHER_CLIENTS_EDITING','colorChannel1','APPLY_REJECT','/fetchmissing?from=','[SyncedState]:\x20received\x20rejection.','connection\x20error','HEARTBEAT_TIMEOUT','m2Prime','json','_handler','_clearRedo','COMMENT_UPDATE','_getCurrentRevision','deserializeToCombResponse','[DataLoaderController]','_name','CollaborationSessionService','fromEvent','CollaborationStatus','_decreaseWaiting','PERMISSION_DENIED','cursorInfo$','transformRemoteChangeset','round','NOT_FOUND','getViewport','CollaborationSession','loadOfflineData','searchParams','switchMap','setCurrentUser','onRemoteAck','selection','src','/universer-api/file/{fileID}/sign-url','loadDoc','list','UniverCollaborationPlugin','RxDisposable','setWaitCount','onCommandExecuted','url(#off-line-single_clip0_910_343)','_id','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','collabStatus.synced','COLLAB_SUBMIT_CHANGESET_URL','unknown','SNAPSHOT_HAS_BEEN_REMOVED','onCommentUpdate','socketService','endColumn','isActive','incrementRevOfUnit','_applyRemoteChangeset','roomMembers$','disposeUnit','prototype','HTTPService','getVpScrollXYInfoByPosToVp','PSEUDO_FETCH_MISSING_RESULT','transformIMECache','CollaborationEntity','_scheduleCollaborationTimeoutTimer','fillRule','requireSession','univer-online-status','image/jpg','registerOnClose','_candidateSocket','Undefined','_exhaustRemoteChangesetQueue','_redoStacks','DocCollaborationEntity','getRoom','pushState','copyFileMeta','/rev/','isEditing','univer-online','/object','_initMergeInterceptor','_onCursorUpdate','_entities','c2Prime','handleDeleteRangeMoveUp','onStarting','SUBMIT_CHANGESET','RETRY_CONNECTING_MAX_COUNT_KEY','moveTo','hasOwnProperty','_saveCache','unshift','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_collabSessionService','HEARTBEAT_TIMEOUT_KEY','createElement','_document','getUnitId','_getAPIPrefix','_collabCursorState$','IRemoteInstanceService','error','_socketReady','capture','registerBeforeClose','contains','unit','getConfig','[PendingState]:\x20received\x20rejection.','with','_colorAssignService','_waitCount','getCurrentRevOfUnit','reduce','@univerjs/engine-render','UNDEFINED','ISnapshotServerService','reject','HEARTBEAT_INTERVAL_KEY','transformMutationsWithChangeset','HELLO','setActiveRange','_type','_onJoinRoomEvent','_awaitingChangeset','_unitOnClients','/universer-api/oidc/authpage','LocalUndoRedoService','Unknown\x20user','getUnit','transformStack\x20failed!','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','USERS_LEAVE','key','_collaborationPaused','LIVESHARE_TERMINATE','_initModules','_onRemoteACK','removeParam','data','originalMeta','_assignedColors','_uiPartsService','_change$','startRow','CompressMutationService','send','CollaborationSocketService','onMissedChangesetFetched','getResourcesRequest','TEXT_RANGE_LAYER_INDEX','state','_substituteUndoStack','BASE64','_refRangeService','useObservable','IBeforeCloseService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','DataLoaderController','835196sQPrDm','_getSendChangesetTimeout','liveShareOperation','COLLAB_WEB_SOCKET_URL_KEY','parse','SUCCUSS','assignAColorForMemberID','EXCHANGE_SIGN_URL_SERVER_URL_KEY','onStateChange','csRejEvent','InsertRangeMoveRightCommandId','takeUntil','DisposableCollection','SessionStatus','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','Subject','_hovered','Shape','getCurrentUnitForType','RichTextEditingMutation','_scheduleTimestamp','setInterval','_permissionService','RegularPolygon','_themeService','@univerjs/sheets-ui','_collaborationController','commentUpdate$','1112528QIRfjV','measureText','current','updatePermissionObjEvent','csAckEvent','UNIVER_SHEET','merge','univer-pro.collaboration-client-socket-service','rxjs','_onCursorDelete','indexOf','state$','_event$','replaceState','onSyncEditingCollabCursor','retryConnectingInterval','getItem','commentUpdateEvent','_onCombEvent','_scheduleClearOtherTimer','_onRemoteRejected','_undoStacks','attrs','ImageSourceType','0\x200\x2017\x2016','_state$','SetDocZoomRatioOperation','_docTransformIMECacheService','newCsEvent','saveOfflineData','restore','_toggleOffline','addObjects','handleInsertRangeMoveRight','setConfig','hide','onTransformRemoteChangesetByIMECache','concatMap','onPointerLeave$','handleInsertCol','getActiveSheet','find','session.will-retry','hidden','setShapeProps','@univerjs/network','objectActions','_registerDependencies','UniverInstanceType','/object/','_joinRoom','getUnitOnRev','WebSocketService','LICENSE_EXPORT_SIZE_EXCEEDED','UUID','&assign=','@univerjs/sheets','_collaborationSessionService','SheetsSelectionsService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_handleHeartbeatEvent','online','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_lockTransition','_shapes','/resources','_status$','message$','_initCommandExecutedListener','exhaustSavingTask','IRenderManagerService','objectID','slice','_getSignURL','/-/object/-/batch_allowed','_beforeCloseService','all','session.room-full','_tryReconnect','...','_draw','_localStorageService','startTime','objects','_submitChangeset','handleIRemoveRow','entries','open$','UPDATE_PERMISSION_OBJ','_session','handleDeleteRangeMoveLeft','_retryCount','IConfigService','onSteady','_color','body','ERROR_IMAGE_TYPE','_isPermissionRej','{fileID}','create','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','tag','Error','LIVESHARE_REQUEST_HOST','getRenderById','visibilityState','fetchMissingChangesets','getValue','/universer-api/authz','_configService','size','not_collab','range','override','IMessageService','labelPosition','_removeRoom','updateCursorEvent','_schedule','_socket','type','rxjs/operators','/-/object/list','M0\x200H16V16H0z','_showConflictNotification','requestParams','Tools','_saveTaskMap','push','routeKey','[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.','_clearOtherTimers','_notificationService','eventID','APPLY_REVISION_CONFILICT','/universer-api/comb','_textBubble','confirm','stopTime','useRef','_getSaveTimeout','_getUploadFileURL','setItem','_updateSubUnitFromURLParams','getMergeData','encodeURIComponent','[PendingState]:\x20received\x20acknowledgement.','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity','UNIVER_DOC','shareReplay','_tryEnsureSocket','handleInsertRow','?url=','updateCollaborator','_rescheduleHeartbeat','UniverCollaborationClientPlugin','_checkMissing','some','_transformRemoteChangesetByIMECache','_members','getOwnPropertySymbols','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','SetSelectionsOperation','useDependency','pauseCollaboration','univer-pro.collaboration-client.single-active-unit-service','LEAVE','pipe','name','mergeOverrideWithDependencies','sheets','_listenToOfflineEvent','column','collaboration_new_changeset','uploadFileServerUrl','fillText','_ensureSubject','stringify','_pendingMutations','SetWorksheetActivateCommand','univerjs-icon\x20univerjs-icon-','collab-rect-range-','APPLY_NON_SEQUENTIAL_REVISION','forEach','_executeRemoteChangeset','save','_syncEditingCollabCursorService','getRelativeToViewportCoord','FileId','univer-online-status-icon','trim','complete','createCollaborator','saveImage','popstate','serializeRangeWithSheet','_docSyncEditingCollabCursorService','resourceIDs','EffectRefRangId','_retryConnectingTimer','_clearTimeoutTimer','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_listenToOnlineEvent','LIVESHARE_FETCH_OPERATIONS','INVALID_ARGUMENT','black','fetchMiss','onRemoteRej','update','enableOfflineEditing','failed\x20to\x20apply\x20missed\x20changesets!','permission.content','_getMergeRange','handleIRemoveCol','getFocusedUnit','status$','getUniverSheetInstance','_queuedRemoteChangesets','@univerjs-pro/license','Inject','_context','transformMutation','catch','#FFF','Rectangle','every','defineProperty','width','CONNECTOR_DATA_TOO_LARGE','_sendingTimer','1em','readAsDataURL','OTHER_CLIENTS_EDITING','getImage','9SRGBZw','UNKNOWN_CODE','APPLY_PERMISSION_DENIED','none','getImageSourceCache','JOIN','_scheduleSaving','_remoteChangesetQueue','_initResize','handleMoveRange','Warning','textRanges','roomMembers','SNAPSHOT_INVALID_SNAPSHOT','action','_initCloseConn','_scene','_injector','InsertRangeMoveDownCommandId','_getUndoStack','\x20in\x20_schedule.','InsertColCommandId','_backgroundColor','COMPLETION_FINISHED','CHANGESET_REJ','verdancy600','xlink:href','_onOffline','TOO_MANY_REQUESTS','?size=','onMissingChangesets','_sendHeartbeat','Workbook','SYNCED','CHANGESET_REVISION_CONFILICT','_sheetSkeletonManagerService','LIVESHARE_NEW_HOST','COMPRESS_MUTATION_SEND','#fff','getDocRanges','_clearUndo','_userManagerService','clearTimeout','change$','forwardRef','OnLineSingle','toString','_transitionLocked','assign','add','init','isArray','_sheetTransformSelectionsService','length','_snapshotService','distinctUntilChanged','LOGIN_URL_KEY','getUndoRedoMutationParamsCache','_onUserJoin','endRow','_transformIMECache','HttpImport','fetch_missing','@univerjs/engine-formula','registerRenderModule','DocSelectionManagerService','@univerjs/design','_onRemoteChangeset','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','awaiting_with_pending','2255pWEpyr','editing\x20status\x20changed\x20to','_http','UNKNOWN_CMD','_startSheetCollabCursor','apply','_docTransformSelectionsService','955344DuuxTy','INotificationService','addEventListener','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','subunit','isTransformMutationsWithChangesetFailure','on-line-single_clip0_910_349','path','onSendChangeset','_substituteRedoStack','fetching\x20missing\x20changesets\x20from\x20','7sdFBmT','subUnitId','_getLoginPath','MoveRangeCommandId','delay','_render','_onRefRangeChange','generateRandomId','_lastPointer','_univerInstanceService','\x20to\x20','DeleteRangeMoveLeftCommandId','ThemeService','top','downloadEndpointUrl','_config','collaboration-client.offline-data-not-saved','_onLocalMutation','reverse','findNodePositionByCharIndex','onRemoteChangeset','_drawAnchor','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','dispose','SheetCollaborationEntity','listCollaborators','_messageService','_replayCachedMutations','dispose$','IUndoRedoService','LICENSE_DISTRO_REJECTED','closePath','_updateState','_heartbeatTimer','[CollaborationState]:\x20apply\x20error!','_commentUpdate$','_handleLeaveEvent','disableLocalCache','deserializeRangeWithSheet','LOCAL_CACHE_INTERVAL','_replaceFileID','LocalCacheService','registerRefRange','_transformPreviousActiveRange','IDLE','880614MUmBqt','objectType','saveSnapshot','CollaborationEvent','_logService','CONFLICT','_cachedData','actions','collaborators','b64DecodeUnicode','sessionStatus','_drawTextRange','BehaviorSubject','RemoveRowCommandId','_getSnapshotAPIPrefix','event$','RECV','Tooltip','IHTTPImplementation','translate(.97)','getParam','collabStatus.fetchMiss','_range','_localeService','FETCH_MISSING','socket\x20open.','_renderManagerService','executeCommand','_acknowledgedAwaitingChangeset','headers','updateMember','SNAPSHOT_URL_KEY','HEARTBEAT','ColorKit','get','_fetchMissChangesets','file','_cursorInfo$','_updateStatus','FAIL','_initRequestHeader','transformUndoRedo','rev','unsubscribe','SheetPermissionInitController','PENDING','CommandType','UserManagerService','AWAITING_WITH_PENDING','FETCH_MISS','_urlService','MessageType','getMemberID','off-line-single_clip0_910_343','ITelemetryService','getSheetBySheetId','registerHTTPInterceptor','_anchor','toggleOnline','_labelPosition','getCellPositionByOffset','\x20-\x20','revision','_revisionService','YUUMI_SUBSCRIPTION_NOT_FOUND','visibilitychange','_ws','show','_singleActiveUnitService','next','compose','fill','baseRev','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[UniverCollaborationClientPlugin]','UNIVER_COLLABORATION_CLIENT_PLUGIN','Injector','sheetId','getActiveRange','asObservable','_sendHeartbeatTimer','USERS_ENTER','[OfflineState]:\x20received\x20acknowledgement.','5620BJmkhp','_setupSubUnitSync','_httpService','getTypeOfUnitAdded$','_roomMembers','_transformStack','collaboratorID','COLLAB_WEB_SOCKET_URL','getInterceptPoints','_socketService','_snapshotServerService','_onConflict','activeSheet$','getRangePointData','removeMember','runRefRangeMutations','_handleEvent','take','_handleHover','selections','_waitForHeartbeatResponse','auth.needGotoLoginAlert','row','_roomMembers$','svg','history','useCallback','div','enableLocalCache','HEADER_MENU','isTransformMutationsWithChangesetSuccess','ERROR_IMAGE','OFFLINE','_telemetryInfo','isTransformChangesetsSuccess','SnapshotServerOverHTTPService','_hideTimer','extend','onTransformChange$','split','localeService','debounceTime','_createHandler','signUrlServerUrl','call','CommentService','LIVESHARE_OPERATION','_onFetchMissResult','_getScale','updateOfflineData','_instanceService','replaceTextRanges','MergeInterceptorFactory','_drawRectRange','arc','enableSingleActiveInstanceLock','_disabled','_updateCollabCursors','CHANGESET_ACK','updatePermissionPoint','_startTelemetryCollaborationNewChangeset','_localCacheService'];_0x31db=function(){return _0xe1e609;};return _0x31db();}function Ds(_0x14960c){const _0x18dfa8=_0x5b831f,{unitID:_0x27682a,mutations:_0x3b45ae}=_0x14960c;return{'unitId':_0x27682a,'subUnitId':_0x3b45ae[0x0][_0x18dfa8(0x38a)][_0x18dfa8(0x241)]};}let fe=class{constructor(_0x4ae7be,_0xfa34b8,_0x177c60){const _0x4fd6c8=_0x5b831f;this['_injector']=_0x4ae7be,this[_0x4fd6c8(0x44d)]=_0xfa34b8,this[_0x4fd6c8(0x2f2)]=_0x177c60;}[_0x5b831f(0x44c)](_0x1e5bfb){const _0x1b2154=_0x5b831f;var _0x2d6002,_0x4f514a,_0x2316cc,_0x545c6c;const _0x4b5c66=this[_0x1b2154(0x1f9)][_0x1b2154(0x28f)](C[_0x1b2154(0x137)]),{unitId:_0xc1ead9,subUnitId:_0x465995}=Ds(_0x1e5bfb),_0x491b3a=_0x4b5c66[_0x1b2154(0x3c1)](_0xc1ead9)[_0x1b2154(0x425)](),_0x26d3f0=(_0x4f514a=(_0x2d6002=this[_0x1b2154(0x2f2)][_0x1b2154(0xc3)](_0xc1ead9))==null?void 0x0:_0x2d6002[_0x1b2154(0x125)]())==null?void 0x0:_0x4f514a['getSheetId']();if(_0x491b3a['length']===0x0||!_0xc1ead9||!_0x465995)return;const _0xe92942=[{'id':C[_0x1b2154(0x1a0)]['id'],'params':{'unitId':_0xc1ead9,'subUnitId':_0x26d3f0,'selections':a['Tools'][_0x1b2154(0x3ef)](_0x491b3a)}}],_0x1bdffc=this['_transformService']['transformMutationsWithChangeset'](_0x1e5bfb,_0xe92942);if(!_[_0x1b2154(0x2de)](_0x1bdffc))throw _0x1bdffc['error'];const _0x5a6ac5=(_0x545c6c=(_0x2316cc=_0x1bdffc[_0x1b2154(0x475)][0x0])==null?void 0x0:_0x2316cc[_0x1b2154(0x38a)])==null?void 0x0:_0x545c6c[_0x1b2154(0x2d3)];Array['isArray'](_0x5a6ac5)&&_0x5a6ac5[_0x1b2154(0x21d)]&&this['_injector'][_0x1b2154(0x28f)](a['ICommandService'])[_0x1b2154(0x288)](C[_0x1b2154(0x1a0)]['id'],{'unitId':_0xc1ead9,'subUnitId':_0x26d3f0,'selections':_0x5a6ac5});}};fe=Os([Ue(0x0,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),Ue(0x1,_[_0x5b831f(0x44a)]),Ue(0x2,a[_0x5b831f(0x3c0)])],fe);const Te=a[_0x5b831f(0x419)](_0x5b831f(0x1a3));var bt=(_0x52c8d9=>(_0x52c8d9[_0x52c8d9['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x5b831f(0x46e),_0x52c8d9[_0x52c8d9[_0x5b831f(0x1e6)]=0x1]=_0x5b831f(0x1e6),_0x52c8d9))(bt||{});const et=0x7530,tt=_0x5b831f(0x415);class ys extends a[_0x5b831f(0x333)]{constructor(){const _0x91d942=_0x5b831f;super(),d(this,_0x91d942(0x498),a[_0x91d942(0x17b)][_0x91d942(0x247)]()),d(this,_0x91d942(0x3e1),new Set()),d(this,_0x91d942(0xbf),new Map()),d(this,'_heartbeatTimer',null),d(this,_0x91d942(0x180),new Map()),d(this,_0x91d942(0x3bc),new Map()),this[_0x91d942(0x3ba)]();}['dispose'](){const _0xb16926=_0x5b831f;super['dispose'](),this[_0xb16926(0x180)][_0xb16926(0x1b5)]((_0x3aadc8,_0x2c40f4)=>this[_0xb16926(0x375)](_0x2c40f4)),this[_0xb16926(0x261)]&&window[_0xb16926(0x466)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x21490b){const _0x54332f=_0x5b831f;return this[_0x54332f(0x1ae)](_0x21490b)[_0x54332f(0x1a5)](v[_0x54332f(0x21f)]());}['editingUnit'](_0x2479ff){const _0x1e5c39=_0x5b831f;this[_0x1e5c39(0x3e1)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x1e5c39(0x3e1)][_0x1e5c39(0x219)](_0x2479ff),this[_0x1e5c39(0x465)]({'type':0x0,'memberID':this[_0x1e5c39(0x498)],'unitIDs':[_0x2479ff],'isForwarded':!0x1});}[_0x5b831f(0x79)](_0x1c3325){const _0x50ea7a=_0x5b831f;this[_0x50ea7a(0x3e1)]['delete'](_0x1c3325),this[_0x50ea7a(0x3e1)][_0x50ea7a(0x16b)]===0x0&&this[_0x50ea7a(0x261)]&&window[_0x50ea7a(0x466)](this[_0x50ea7a(0x261)]);}[_0x5b831f(0x3ba)](){const _0x3af846=_0x5b831f;this['disposeWithMe'](a['toDisposable'](v[_0x3af846(0x47f)](window,_0x3af846(0x31b))[_0x3af846(0x3fc)](_0x250fcf=>{const _0x4f2f6f=_0x3af846;if(_0x250fcf[_0x4f2f6f(0xc7)]!==tt||!_0x250fcf['newValue'])return;const _0x5638c7=JSON[_0x4f2f6f(0xe5)](_0x250fcf[_0x4f2f6f(0x36b)]);this[_0x4f2f6f(0x2d0)](_0x5638c7);}))),window[_0x3af846(0x237)](_0x3af846(0x385),()=>this[_0x3af846(0x465)]({'type':0x1,'memberID':this[_0x3af846(0x498)],'unitIDs':Array['from'](this[_0x3af846(0x3e1)])}));}[_0x5b831f(0x2d0)](_0x3669bd){const _0x5eddea=_0x5b831f;switch(_0x3669bd[_0x5eddea(0x175)]){case 0x0:this[_0x5eddea(0x304)](_0x3669bd);break;case 0x1:this[_0x5eddea(0x264)](_0x3669bd);break;case 0x2:this[_0x5eddea(0x139)](_0x3669bd);break;}}[_0x5b831f(0x304)](_0x29bea2){const _0x13fae0=_0x5b831f,{unitIDs:_0x54bf8d,memberID:_0x48beb3,isForwarded:_0xe91e14}=_0x29bea2;_0x54bf8d[_0x13fae0(0x1b5)](_0x1f182b=>{const _0x52b6ca=_0x13fae0;if(!_0xe91e14&&this[_0x52b6ca(0xbf)][_0x52b6ca(0x336)](_0x1f182b)&&this[_0x52b6ca(0x1ae)](_0x1f182b)[_0x52b6ca(0x2b2)](0x1),!this['_unitOnClients']['has'](_0x1f182b)||!this[_0x52b6ca(0xbf)][_0x52b6ca(0x28f)](_0x1f182b)[_0x52b6ca(0x336)](_0x48beb3)){const _0x4d4eb0=this[_0x52b6ca(0xbf)][_0x52b6ca(0x28f)](_0x1f182b)||new Set();_0x4d4eb0[_0x52b6ca(0x219)](_0x48beb3),this['_unitOnClients'][_0x52b6ca(0x46d)](_0x1f182b,_0x4d4eb0),this[_0x52b6ca(0x110)](_0x48beb3);}}),_0xe91e14||this['_send']({'type':0x0,'memberID':this[_0x13fae0(0x498)],'unitIDs':[...this[_0x13fae0(0x3e1)]],'isForwarded':!0x0});}[_0x5b831f(0x110)](_0x10e287){const _0x154ad5=_0x5b831f;this[_0x154ad5(0x375)](_0x10e287);const _0x522e07=window['setTimeout'](()=>{const _0xa2e9c=_0x154ad5;this['_unitOnClients'][_0xa2e9c(0x1b5)](_0x2f26dd=>{_0x2f26dd['delete'](_0x10e287);});},et*0x2);this[_0x154ad5(0x180)]['set'](_0x10e287,_0x522e07);}[_0x5b831f(0x375)](_0x40bf9d){const _0x26878=_0x5b831f;if(this[_0x26878(0x180)][_0x26878(0x336)](_0x40bf9d)){const _0x1ed765=this[_0x26878(0x180)][_0x26878(0x28f)](_0x40bf9d);_0x1ed765&&window[_0x26878(0x212)](_0x1ed765),this['_clearOtherTimers'][_0x26878(0x46d)](_0x40bf9d,null);}}[_0x5b831f(0x264)](_0x23488a){const _0x305278=_0x5b831f,{memberID:_0x8bddef,unitIDs:_0x4a09cd}=_0x23488a;_0x4a09cd[_0x305278(0x1b5)](_0x18f64c=>{const _0x34a58f=_0x305278;var _0x436877;const _0x9bfec6=this[_0x34a58f(0xbf)][_0x34a58f(0x28f)](_0x18f64c);_0x9bfec6&&(_0x9bfec6[_0x34a58f(0x344)](_0x8bddef),(_0x436877=this[_0x34a58f(0x1ae)](_0x18f64c))==null||_0x436877[_0x34a58f(0x2b2)](_0x9bfec6[_0x34a58f(0x16b)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x8bddef);}['_handleHeartbeatEvent'](_0x37153b){const _0x5d24a5=_0x5b831f;this[_0x5d24a5(0x110)](_0x37153b[_0x5d24a5(0x34d)]);}[_0x5b831f(0x465)](_0x3cab4e){const _0x20682a=_0x5b831f;localStorage[_0x20682a(0x18b)](tt,JSON[_0x20682a(0x1af)](_0x3cab4e));}[_0x5b831f(0x436)](){const _0x2af6b6=_0x5b831f;this[_0x2af6b6(0x261)]=window[_0x2af6b6(0xf6)](()=>{const _0x1cabf2=_0x2af6b6;this['_send']({'type':0x2,'memberID':this[_0x1cabf2(0x498)]});},et);}[_0x5b831f(0x1ae)](_0x54c44f){const _0x53555a=_0x5b831f;return this[_0x53555a(0x3bc)][_0x53555a(0x336)](_0x54c44f)||this[_0x53555a(0x3bc)][_0x53555a(0x46d)](_0x54c44f,new v['BehaviorSubject'](0x0)),this['_unitStatus'][_0x53555a(0x28f)](_0x54c44f);}}function Tt(_0x260777){let _0x21eee7='';for(const _0x1a2e27 of _0x260777){const {startOffset:_0x524c64,endOffset:_0x1d1279,isActive:_0x5ab482}=_0x1a2e27;_0x21eee7['length']&&(_0x21eee7+=','),_0x21eee7+=_0x524c64+':'+_0x1d1279+':'+(_0x5ab482?'1':'0');}return _0x21eee7;}function Us(_0x4ee673){const _0x48f737=_0x5b831f,_0x1f527a=_0x4ee673['split'](','),_0x1ace9d=[];for(const _0x5a159a of _0x1f527a){const [_0x144356,_0x4d725c,_0x4f6da3]=_0x5a159a[_0x48f737(0x2e7)](':');_0x1ace9d[_0x48f737(0x17d)]({'startOffset':Number(_0x144356),'endOffset':Number(_0x4d725c),'collapsed':_0x144356===_0x4d725c,'isActive':_0x4f6da3==='1'});}return _0x1ace9d[_0x48f737(0x19b)](_0x4d6ba1=>_0x4d6ba1['isActive'])||(_0x1ace9d[0x0][_0x48f737(0x4a1)]=!0x0),_0x1ace9d;}class Ye extends a[_0x5b831f(0x494)]{constructor(){const _0xd500bd=_0x5b831f;super(...arguments),d(this,_0xd500bd(0xa5),new v[(_0xd500bd(0x279))](null)),d(this,_0xd500bd(0x354),this[_0xd500bd(0xa5)][_0xd500bd(0x2bc)]());}[_0x5b831f(0x346)](_0x509a98){const _0x2fe64e=_0x5b831f,{unitID:_0x3446a2,memberID:_0x3e971e,textRanges:_0x132db3}=_0x509a98,_0x1af453=Tt(_0x132db3),_0x5741a9={'unitID':_0x3446a2,'memberID':_0x3e971e,'selection':_0x1af453};this[_0x2fe64e(0xa5)][_0x2fe64e(0x2b2)](_0x5741a9);}}var Ps=Object[_0x5b831f(0x1e0)],ws=Object[_0x5b831f(0x31a)],Ms=(_0x67f581,_0x41f54e,_0x3b3c6e,_0x16e0db)=>{for(var _0x11ebfb=_0x16e0db>0x1?void 0x0:_0x16e0db?ws(_0x41f54e,_0x3b3c6e):_0x41f54e,_0x2ea33f=_0x67f581['length']-0x1,_0xdb30a9;_0x2ea33f>=0x0;_0x2ea33f--)(_0xdb30a9=_0x67f581[_0x2ea33f])&&(_0x11ebfb=(_0x16e0db?_0xdb30a9(_0x41f54e,_0x3b3c6e,_0x11ebfb):_0xdb30a9(_0x11ebfb))||_0x11ebfb);return _0x16e0db&&_0x11ebfb&&Ps(_0x41f54e,_0x3b3c6e,_0x11ebfb),_0x11ebfb;},st=(_0x5c0f3b,_0x481042)=>(_0x52eae6,_0x2118ae)=>_0x481042(_0x52eae6,_0x2118ae,_0x5c0f3b);let me=class{constructor(_0x13d670,_0x1e0601){const _0x1158b7=_0x5b831f;this['_injector']=_0x13d670,this[_0x1158b7(0x44d)]=_0x1e0601;}[_0x5b831f(0x44c)](_0xfa17be){const _0x3a986e=_0x5b831f;var _0x216fd5;const _0x331b46=this[_0x3a986e(0x1f9)][_0x3a986e(0x28f)](V[_0x3a986e(0x229)]),_0x564332=(_0x216fd5=_0x331b46['getDocRanges']())!=null?_0x216fd5:[];if(_0x564332[_0x3a986e(0x21d)]===0x0)return;const _0x40db86=[{'id':_0x3a986e(0x3fb),'params':{'unitId':_0xfa17be[_0x3a986e(0x311)],'actions':null,'textRanges':_0x564332}}],_0x24f105=this['_transformService']['transformMutationsWithChangeset'](_0xfa17be,_0x40db86);if(!_[_0x3a986e(0x2de)](_0x24f105))throw _0x24f105['error'];const _0x10320e=_0x24f105['m2Prime'][0x0][_0x3a986e(0x38a)]['textRanges'];Array['isArray'](_0x10320e)&&_0x10320e[_0x3a986e(0x21d)]&&_0x331b46[_0x3a986e(0x2f3)](_0x10320e,!0x1);}};me=Ms([st(0x0,a[_0x5b831f(0x1d9)](a['Injector'])),st(0x1,_[_0x5b831f(0x44a)])],me);const Ns=new Set([C[_0x5b831f(0x3f7)]['id']]);function it(_0x727f96,_0x2b2008,_0x5efb08,_0x463ecc,_0x491bff){const _0x558db3=_0x5b831f;var _0x51238e,_0x2d817b,_0x542adf,_0x4dce78;const _0x4a1978=[];for(const _0x1f51d9 of _0x727f96)if(Ns[_0x558db3(0x336)](_0x1f51d9['id'])){if(_0x4a1978[_0x558db3(0x21d)]>0x0)break;_0x4a1978['push'](_0x1f51d9);break;}else _0x4a1978[_0x558db3(0x17d)](_0x1f51d9);const _0x272a22=(_0x2d817b=(_0x51238e=_0x491bff[_0x558db3(0x3d1)]())==null?void 0x0:_0x51238e[_0x558db3(0x390)])!=null?_0x2d817b:_0x558db3(0x49c),_0x51d45d=(_0x4dce78=(_0x542adf=_0x491bff[_0x558db3(0x3d1)]())==null?void 0x0:_0x542adf[_0x558db3(0x34d)])!=null?_0x4dce78:'unknown';return{'changeset':{'unitID':_0x2b2008,'type':_[_0x558db3(0x42a)](_0x5efb08[_0x558db3(0x356)](_0x2b2008)),'baseRev':_0x463ecc[_0x558db3(0xb2)](_0x2b2008),'revision':0x0,'userID':_0x272a22,'memberID':_0x51d45d,'mutations':_0x4a1978},'pendingMutations':_0x727f96[_0x558db3(0x145)](_0x4a1978[_0x558db3(0x21d)])};}function As(_0xdea72d,_0x2769fb,_0x299229,_0x4e96d8,_0x157a59){const _0x1b19e2=_0x5b831f;var _0x141488,_0x145490,_0x52fff9,_0x26f5d4;const _0x322b75=[_0xdea72d[_0x1b19e2(0xb3)]((_0xc46e38,_0x304400)=>{const _0x417d8b=_0x1b19e2;var _0x42a36f;const {id:_0x1f6063}=_0xc46e38,{id:_0xbb12c3,type:_0x507631}=_0x304400,_0x311df6=(_0x42a36f=_0xc46e38[_0x417d8b(0x38a)])!=null?_0x42a36f:{'actions':null},_0xfedb25=_0x304400[_0x417d8b(0x38a)];if(_0x1f6063&&_0x1f6063!==_0xbb12c3)throw new Error(_0x417d8b(0xef)+_0x1f6063+_0x417d8b(0x2aa)+_0xbb12c3+'.');return{..._0xc46e38,'id':_0xbb12c3,'type':_0x507631,'params':{'unitId':_0xfedb25['unitId'],'textRanges':_0xfedb25[_0x417d8b(0x1f3)],'actions':a['JSONX'][_0x417d8b(0x2b3)](_0x311df6[_0x417d8b(0x274)],_0xfedb25[_0x417d8b(0x274)])}};},{})],_0x135aed=(_0x145490=(_0x141488=_0x157a59[_0x1b19e2(0x3d1)]())==null?void 0x0:_0x141488[_0x1b19e2(0x390)])!=null?_0x145490:_0x1b19e2(0x49c),_0x26ef2c=(_0x26f5d4=(_0x52fff9=_0x157a59['getCurrentUser']())==null?void 0x0:_0x52fff9[_0x1b19e2(0x34d)])!=null?_0x26f5d4:'unknown';return{'changeset':{'unitID':_0x2769fb,'type':_[_0x1b19e2(0x42a)](_0x299229[_0x1b19e2(0x356)](_0x2769fb)),'baseRev':_0x4e96d8[_0x1b19e2(0xb2)](_0x2769fb),'revision':0x0,'userID':_0x135aed,'memberID':_0x26ef2c,'mutations':_0x322b75},'pendingMutations':[]};}const Ls={'id':C[_0x5b831f(0x450)]['id'],'type':a[_0x5b831f(0x29b)][_0x5b831f(0x434)],'params':{}};var js=Object[_0x5b831f(0x1e0)],$s=Object[_0x5b831f(0x31a)],z=(_0x5898b1,_0x1d47dd,_0x5233fa,_0x18c389)=>{const _0x1a490a=_0x5b831f;for(var _0x560041=_0x18c389>0x1?void 0x0:_0x18c389?$s(_0x1d47dd,_0x5233fa):_0x1d47dd,_0x35e117=_0x5898b1[_0x1a490a(0x21d)]-0x1,_0x39defc;_0x35e117>=0x0;_0x35e117--)(_0x39defc=_0x5898b1[_0x35e117])&&(_0x560041=(_0x18c389?_0x39defc(_0x1d47dd,_0x5233fa,_0x560041):_0x39defc(_0x560041))||_0x560041);return _0x18c389&&_0x560041&&js(_0x1d47dd,_0x5233fa,_0x560041),_0x560041;},f=(_0x1e41e7,_0x57f999)=>(_0x5e808b,_0x1c21ea)=>_0x57f999(_0x5e808b,_0x1c21ea,_0x1e41e7),y=(_0x3e0730=>(_0x3e0730[_0x5b831f(0x348)]=_0x5b831f(0x16c),_0x3e0730[_0x5b831f(0x209)]='synced',_0x3e0730[_0x5b831f(0x29a)]=_0x5b831f(0x327),_0x3e0730['AWAITING']=_0x5b831f(0x431),_0x3e0730[_0x5b831f(0x29d)]=_0x5b831f(0x22d),_0x3e0730[_0x5b831f(0x29e)]=_0x5b831f(0x226),_0x3e0730['CONFLICT']=_0x5b831f(0x391),_0x3e0730['OFFLINE']=_0x5b831f(0x37c),_0x3e0730))(y||{});class J{constructor(_0x5d4b7b,_0x18441e,_0x2d2e36,_0x2c7b3c,_0x5a08db,_0x20d157,_0x5c3e14,_0x42218f,_0xcfa509){const _0x379ed6=_0x5b831f;d(this,'_awaitingChangeset',null),d(this,_0x379ed6(0x1b0),[]),(this['unitID']=_0x5d4b7b,this[_0x379ed6(0x175)]=_0x18441e,this[_0x379ed6(0x477)]=_0x5a08db,this['_commandService']=_0x20d157,this[_0x379ed6(0x34f)]=_0x5c3e14,this[_0x379ed6(0x2ac)]=_0x42218f,this[_0x379ed6(0x2fd)]=_0xcfa509,this[_0x379ed6(0xbe)]=_0x2d2e36,this[_0x379ed6(0x1b0)]=_0x2c7b3c);}[_0x5b831f(0x19a)](_0x2c052b){const _0x5c9d41=_0x5b831f,_0x3f515e=this[_0x5c9d41(0x2ac)][_0x5c9d41(0xb2)](this['unitID']);return _0x2c052b[_0x5c9d41(0x2ab)]>_0x3f515e+0x1?(this[_0x5c9d41(0x477)][_0x5c9d41(0x206)]({'from':_0x3f515e,'to':_0x2c052b[_0x5c9d41(0x2ab)]-0x1}),!0x0):!0x1;}[_0x5b831f(0x332)](_0x558eb8){const _0x44e21b=_0x5b831f;this['_undoRedoService'][_0x44e21b(0x296)](this[_0x44e21b(0x311)],_0x558eb8);}[_0x5b831f(0x41c)](_0x29ae19){const _0x4cf0fa=_0x5b831f;var _0x4be414,_0x12b624;(_0x12b624=(_0x4be414=this['_handler'])[_0x4cf0fa(0x35b)])==null||_0x12b624[_0x4cf0fa(0x2ec)](_0x4be414,_0x29ae19);}[_0x5b831f(0x224)](_0x535d0a){const _0x19cad7=_0x5b831f;var _0x1cc05c,_0x57460f;return(_0x57460f=(_0x1cc05c=this[_0x19cad7(0x477)])[_0x19cad7(0x36f)])==null?void 0x0:_0x57460f[_0x19cad7(0x2ec)](_0x1cc05c,_0x535d0a);}[_0x5b831f(0x19c)](_0x54c78a){const _0x399d92=_0x5b831f;var _0x290c86,_0x5890c3,_0x2e8e88;return(_0x2e8e88=(_0x5890c3=(_0x290c86=this[_0x399d92(0x477)])[_0x399d92(0x121)])==null?void 0x0:_0x5890c3[_0x399d92(0x2ec)](_0x290c86,_0x54c78a))!=null?_0x2e8e88:_0x54c78a;}[_0x5b831f(0x459)](_0x351b58){const _0x45fa63=_0x5b831f;var _0x2f39ac,_0x42400a;if(this[_0x45fa63(0x175)]===j[_0x45fa63(0x192)]){const {unitID:_0x86da58,mutations:_0x3147e3,memberID:_0x211521}=_0x351b58,_0xc85e20=_0x3147e3[0x0][_0x45fa63(0x38a)][_0x45fa63(0x1f3)];Array[_0x45fa63(0x21b)](_0xc85e20)&&_0xc85e20[_0x45fa63(0x21d)]>0x0&&((_0x42400a=(_0x2f39ac=this[_0x45fa63(0x477)])[_0x45fa63(0x10b)])==null||_0x42400a[_0x45fa63(0x2ec)](_0x2f39ac,{'unitID':_0x86da58,'memberID':_0x211521,'textRanges':_0xc85e20}));}}[_0x5b831f(0x326)](){const _0x460d4e=_0x5b831f;this[_0x460d4e(0x2fd)][_0x460d4e(0x2f1)](this[_0x460d4e(0x311)],this[_0x460d4e(0x175)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x5b831f(0x47a)](){const _0x3d013a=_0x5b831f;return this[_0x3d013a(0x2ac)][_0x3d013a(0xb2)](this[_0x3d013a(0x311)]);}[_0x5b831f(0x30c)](){const _0x46961a=_0x5b831f;this[_0x46961a(0x2ac)][_0x46961a(0x76)](this[_0x46961a(0x311)]);}[_0x5b831f(0x1b6)](_0x3ee628){const _0x193ffb=_0x5b831f;var _0x23b762;const _0x34bc3f=this['_transformRemoteChangesetByIMECache'](_0x3ee628),_0x3d9885=a[_0x193ffb(0x320)](_0x34bc3f['mutations'],this[_0x193ffb(0x40a)],{'fromCollab':!0x0});if(!_0x3d9885[_0x193ffb(0x3c4)])throw _0x3d9885[_0x193ffb(0xa7)]instanceof Error?_0x3d9885['error']:new Error((_0x23b762=_0x3d9885[_0x193ffb(0xa7)])!=null?_0x23b762:_0x193ffb(0x262));this['_transformIMECache'](_0x34bc3f),this[_0x193ffb(0x332)](_0x3ee628),this[_0x193ffb(0x41c)](_0x34bc3f),this['_syncEditingCollabCursor'](_0x34bc3f),this['_incrementRevisionNumber']();}}let se=class extends J{constructor(_0x12291b,_0x51178d,_0x510ad2,_0x23084e,_0x23887b,_0x268f4b,_0x39d7ca,_0x3deec0,_0xec5a81,_0x34be70){const _0x4d633b=_0x5b831f;super(_0x12291b,_0x51178d,null,[],_0x510ad2,_0x3deec0,_0x39d7ca,_0x23084e,_0x23887b),d(this,_0x4d633b(0x35c),_0x4d633b(0x3cc)),(this[_0x4d633b(0x1f9)]=_0x268f4b,this['_logService']=_0xec5a81,this['_transformService']=_0x34be70);}[_0x5b831f(0x32d)](_0xcde8a6){const _0x37261c=_0x5b831f,_0x8ea579=this[_0x37261c(0x1f9)][_0x37261c(0x364)](x,this[_0x37261c(0x311)],this[_0x37261c(0x175)],[_0xcde8a6],this[_0x37261c(0x477)]);return _0x8ea579[_0x37261c(0x173)](),_0x8ea579[_0x37261c(0x326)](),_0x8ea579;}[_0x5b831f(0x254)](_0x5ef430){const _0x1eb30f=_0x5b831f;if(this[_0x1eb30f(0x19a)](_0x5ef430))return this[_0x1eb30f(0x1f9)][_0x1eb30f(0x364)](H,this[_0x1eb30f(0x311)],this['type'],null,[],null,[_0x5ef430],this[_0x1eb30f(0x477)]);try{const _0x476aed=this['_transformService'][_0x1eb30f(0xb9)](_0x5ef430,[Ls]);if(_[_0x1eb30f(0x2de)](_0x476aed)){const {c1Prime:_0x4611b0}=_0x476aed;return this[_0x1eb30f(0x1b6)](_0x4611b0),this;}throw _0x476aed[_0x1eb30f(0xa7)];}catch(_0x331e91){return this[_0x1eb30f(0x271)]['error'](_0x331e91),this['_onConflict'](!0x1);}}['_onConflict'](_0x4c191e){const _0x1a2387=_0x5b831f;return this[_0x1a2387(0x1f9)][_0x1a2387(0x364)](F,this[_0x1a2387(0x311)],this[_0x1a2387(0x175)],null,[],this[_0x1a2387(0x477)],_0x4c191e);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x5b831f(0x1cd)](){const _0x49866a=_0x5b831f;throw new Error(_0x49866a(0x472));}[_0x5b831f(0x37f)](){const _0x244489=_0x5b831f;return this[_0x244489(0x1f9)][_0x244489(0x364)](G,this['unitID'],this[_0x244489(0x175)],null,[],this[_0x244489(0x477)]);}[_0x5b831f(0x2a7)](){return this;}[_0x5b831f(0x457)](){const _0x314248=_0x5b831f;throw new Error(_0x314248(0x343));}[_0x5b831f(0x1cc)](){const _0x5945d1=_0x5b831f,_0x109622=this['_revisionService'][_0x5945d1(0xb2)](this[_0x5945d1(0x311)]);return this[_0x5945d1(0x477)][_0x5945d1(0x206)]({'from':_0x109622,'to':0x0}),this[_0x5945d1(0x1f9)][_0x5945d1(0x364)](H,this['unitID'],this[_0x5945d1(0x175)],null,[],null,[],this[_0x5945d1(0x477)]);}};se=z([f(0x3,a[_0x5b831f(0x1d9)](_[_0x5b831f(0x355)])),f(0x4,a['Inject'](exports['LocalCacheService'])),f(0x5,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),f(0x6,a[_0x5b831f(0x25d)]),f(0x7,a[_0x5b831f(0x317)]),f(0x8,a['ILogService']),f(0x9,_[_0x5b831f(0x44a)])],se);let x=class extends J{constructor(_0x7d7102,_0x4f313a,_0x3abc4f,_0x4268ae,_0x3fe0f3,_0x4a35b9,_0x184585,_0x308424,_0x609ff9,_0x1a91ba,_0x381c0f,_0x3951a4,_0x34eb51,_0x2defb7){const _0x30a7a1=_0x5b831f;super(_0x7d7102,_0x4f313a,null,_0x3abc4f,_0x4268ae,_0x1a91ba,_0x2defb7,_0x4a35b9,_0x184585),d(this,_0x30a7a1(0x35c),_0x30a7a1(0x327)),d(this,_0x30a7a1(0xf5),null),d(this,_0x30a7a1(0x1e3),null),(this[_0x30a7a1(0x1f9)]=_0x3fe0f3,this[_0x30a7a1(0x33e)]=_0x308424,this[_0x30a7a1(0x271)]=_0x609ff9,this['_configService']=_0x381c0f,this[_0x30a7a1(0x44d)]=_0x3951a4,this['_univerInstanceService']=_0x34eb51);}[_0x5b831f(0x32d)](_0x4ccc99){const _0x531306=_0x5b831f;return this['_pendingMutations'][_0x531306(0x17d)](_0x4ccc99),this['_updateLocalCache'](),this;}[_0x5b831f(0x254)](_0x4cf5fa){const _0x4e2dfe=_0x5b831f;if(this[_0x4e2dfe(0x19a)](_0x4cf5fa))return this[_0x4e2dfe(0x347)](),this[_0x4e2dfe(0x1f9)][_0x4e2dfe(0x364)](H,this[_0x4e2dfe(0x311)],this['type'],null,this[_0x4e2dfe(0x1b0)],null,[_0x4cf5fa],this['_handler']);try{const _0xce5c74=this[_0x4e2dfe(0x44d)]['transformMutationsWithChangeset'](_0x4cf5fa,this[_0x4e2dfe(0x1b0)]);if(_[_0x4e2dfe(0x2de)](_0xce5c74)){const {c1Prime:_0x2cd8ed,m2Prime:_0x4fe6a5}=_0xce5c74;this[_0x4e2dfe(0x1b6)](_0x2cd8ed);const _0x269ee2=this['_injector'][_0x4e2dfe(0x364)](x,this[_0x4e2dfe(0x311)],this['type'],_0x4fe6a5,this[_0x4e2dfe(0x477)]);return this[_0x4e2dfe(0x347)](),_0x269ee2[_0x4e2dfe(0x173)](this[_0x4e2dfe(0xf5)]?Math[_0x4e2dfe(0x3eb)](0x0,new Date()[_0x4e2dfe(0x405)]()-this[_0x4e2dfe(0xf5)]):this[_0x4e2dfe(0xe2)]()),_0x269ee2;}throw _0xce5c74['error'];}catch(_0x2414a3){return this[_0x4e2dfe(0x271)]['error'](_0x2414a3),this[_0x4e2dfe(0x2cb)](!0x1);}}[_0x5b831f(0x48d)](){const _0x25ab91=_0x5b831f;throw new Error(_0x25ab91(0x18f));}[_0x5b831f(0x1cd)](){const _0x5610bc=_0x5b831f;throw new Error(_0x5610bc(0xae));}['toggleOffline'](){const _0x2590ef=_0x5b831f;return this[_0x2590ef(0x347)](),this['_injector']['createInstance'](G,this[_0x2590ef(0x311)],this['type'],null,this[_0x2590ef(0x1b0)],this['_handler']);}[_0x5b831f(0x2a7)](){return this;}[_0x5b831f(0x173)](_0x4c676a){const _0x582ee8=_0x5b831f,_0x50af44=_0x4c676a!=null?_0x4c676a:this[_0x582ee8(0xe2)]();this['_scheduleTimestamp']=new Date()[_0x582ee8(0x405)](),this[_0x582ee8(0x1e3)]=window[_0x582ee8(0x34a)](()=>{const _0xe43e4e=_0x582ee8;this[_0xe43e4e(0x347)]();let _0xba3ae1=null;switch(this[_0xe43e4e(0x175)]){case j[_0xe43e4e(0x102)]:{_0xba3ae1=it(this['_pendingMutations'],this[_0xe43e4e(0x311)],this['_univerInstanceService'],this[_0xe43e4e(0x2ac)],this[_0xe43e4e(0x33e)]);break;}case j['UNIVER_DOC']:{this[_0xe43e4e(0x1b0)][_0xe43e4e(0x1df)](_0x548ec7=>_0x548ec7['id']===V[_0xe43e4e(0xf4)]['id'])?_0xba3ae1=As(this[_0xe43e4e(0x1b0)],this['unitID'],this['_univerInstanceService'],this[_0xe43e4e(0x2ac)],this[_0xe43e4e(0x33e)]):_0xba3ae1=it(this['_pendingMutations'],this[_0xe43e4e(0x311)],this[_0xe43e4e(0x249)],this['_revisionService'],this[_0xe43e4e(0x33e)]);break;}default:throw new Error(_0xe43e4e(0x2b6)+this[_0xe43e4e(0x175)]+_0xe43e4e(0x1fc));}const {changeset:_0x27273f,pendingMutations:_0x225ce6}=_0xba3ae1;this[_0xe43e4e(0x477)][_0xe43e4e(0x23d)](_0x27273f);const _0x545131=_0x225ce6[_0xe43e4e(0x21d)]?this[_0xe43e4e(0x1f9)][_0xe43e4e(0x364)](k,this['unitID'],this[_0xe43e4e(0x175)],_0x27273f,_0x225ce6,this['_handler']):this[_0xe43e4e(0x1f9)][_0xe43e4e(0x364)](W,this['unitID'],this[_0xe43e4e(0x175)],_0x27273f,this[_0xe43e4e(0x477)]);_0x545131[_0xe43e4e(0x326)](),this['_handler'][_0xe43e4e(0xe9)](this,_0x545131);},_0x50af44);}[_0x5b831f(0xe2)](){const _0x4d309f=_0x5b831f;var _0x587079;const _0x32f0a2=this[_0x4d309f(0x16a)][_0x4d309f(0xad)](A);return(_0x587079=_0x32f0a2==null?void 0x0:_0x32f0a2['sendChangesetTimeout'])!=null?_0x587079:Kt;}['resend'](){const _0x53dc84=_0x5b831f;throw new Error(_0x53dc84(0x190));}[_0x5b831f(0x347)](){const _0x1ff53a=_0x5b831f;this[_0x1ff53a(0x1e3)]!=null&&(clearTimeout(this[_0x1ff53a(0x1e3)]),this[_0x1ff53a(0x1e3)]=null);}[_0x5b831f(0x2cb)](_0x3578e9){const _0xfc66f=_0x5b831f;return this[_0xfc66f(0x347)](),this[_0xfc66f(0x1f9)]['createInstance'](F,this[_0xfc66f(0x311)],this[_0xfc66f(0x175)],null,this['_pendingMutations'],this[_0xfc66f(0x477)],_0x3578e9);}};x=z([f(0x4,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),f(0x5,a[_0x5b831f(0x1d9)](_['RevisionService'])),f(0x6,a[_0x5b831f(0x1d9)](exports[_0x5b831f(0x269)])),f(0x7,a[_0x5b831f(0x1d9)](q)),f(0x8,a[_0x5b831f(0x463)]),f(0x9,a[_0x5b831f(0x317)]),f(0xa,a[_0x5b831f(0x159)]),f(0xb,_['ITransformService']),f(0xc,a[_0x5b831f(0x3c0)]),f(0xd,a[_0x5b831f(0x25d)])],x);let W=class extends J{constructor(_0x5acf6,_0x571c4a,_0x4ab586,_0x54fe65,_0x2819a7,_0x1dfa6c,_0x2afa2c,_0x139acf,_0x2053b4,_0x56c56e,_0x17b4d3){const _0x222906=_0x5b831f;super(_0x5acf6,_0x571c4a,_0x4ab586,[],_0x54fe65,_0x139acf,_0x17b4d3,_0x1dfa6c,_0x2afa2c),d(this,'status',_0x222906(0x431)),(this[_0x222906(0x1f9)]=_0x2819a7,this['_logService']=_0x2053b4,this[_0x222906(0x44d)]=_0x56c56e);}[_0x5b831f(0x32d)](_0x4e7946){const _0x43f545=_0x5b831f,_0x1f210c=this[_0x43f545(0x1f9)]['createInstance'](k,this['unitID'],this[_0x43f545(0x175)],this[_0x43f545(0xbe)],[_0x4e7946],this[_0x43f545(0x477)]);return _0x1f210c[_0x43f545(0x326)](),_0x1f210c;}['onRemoteChangeset'](_0x49a8c2){const _0x89f1fa=_0x5b831f;if(this[_0x89f1fa(0x19a)](_0x49a8c2))return this['_injector']['createInstance'](H,this[_0x89f1fa(0x311)],this['type'],this['_awaitingChangeset'],[],null,[_0x49a8c2],this[_0x89f1fa(0x477)]);try{const _0x13a3ba=this['_transformService'][_0x89f1fa(0x3ee)]([_0x49a8c2],[this[_0x89f1fa(0xbe)]],!0x1);if(_[_0x89f1fa(0x2e2)](_0x13a3ba)){const {c1Prime:_0x538de0,c2Prime:_0x27b734}=_0x13a3ba;this[_0x89f1fa(0x1b6)](_0x538de0[0x0]),_0x27b734[0x0][_0x89f1fa(0x2b5)]=this[_0x89f1fa(0x47a)]();const _0xdd3ee6=this[_0x89f1fa(0x1f9)][_0x89f1fa(0x364)](W,this[_0x89f1fa(0x311)],this[_0x89f1fa(0x175)],_0x27b734[0x0],this[_0x89f1fa(0x477)]);return _0xdd3ee6[_0x89f1fa(0x326)](),_0xdd3ee6;}return this['_onConflict'](!0x1);}catch(_0x61b40b){return this[_0x89f1fa(0x271)][_0x89f1fa(0xa7)](_0x61b40b),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x32fcf6){const _0x55bf96=_0x5b831f,_0x8ca853=this[_0x55bf96(0x2ac)][_0x55bf96(0xb2)](this[_0x55bf96(0x311)]);if(_0x32fcf6[_0x55bf96(0x2ab)]<_0x8ca853-0x1)return this;if(this[_0x55bf96(0x19a)](_0x32fcf6))return this[_0x55bf96(0x1f9)][_0x55bf96(0x364)](H,this[_0x55bf96(0x311)],this[_0x55bf96(0x175)],null,[],this[_0x55bf96(0xbe)],[],this[_0x55bf96(0x477)]);this[_0x55bf96(0x30c)]();const _0xb89779=this[_0x55bf96(0x1f9)][_0x55bf96(0x364)](se,this[_0x55bf96(0x311)],this[_0x55bf96(0x175)],this[_0x55bf96(0x477)]);return _0xb89779[_0x55bf96(0x326)](),_0xb89779;}['onRemoteRej'](_0x246fdf){const _0x48e122=_0x5b831f;return this[_0x48e122(0x2cb)](!!(_0x246fdf!=null&&_0x246fdf[_0x48e122(0x3f6)]));}[_0x5b831f(0x37f)](){const _0x28ed38=_0x5b831f;return this[_0x28ed38(0x1f9)]['createInstance'](G,this[_0x28ed38(0x311)],this[_0x28ed38(0x175)],this[_0x28ed38(0xbe)],[],this[_0x28ed38(0x477)]);}[_0x5b831f(0x2a7)](){return this;}[_0x5b831f(0x457)](){const _0x1ff86c=_0x5b831f;this[_0x1ff86c(0x477)][_0x1ff86c(0x23d)](this['_awaitingChangeset']);}['_onConflict'](_0x4ab178){const _0x7f262b=_0x5b831f;return this[_0x7f262b(0x1f9)][_0x7f262b(0x364)](F,this['unitID'],this[_0x7f262b(0x175)],this[_0x7f262b(0xbe)],[],this[_0x7f262b(0x477)],_0x4ab178);}};W=z([f(0x4,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),f(0x5,a[_0x5b831f(0x1d9)](_[_0x5b831f(0x355)])),f(0x6,a['Inject'](exports[_0x5b831f(0x269)])),f(0x7,a[_0x5b831f(0x317)]),f(0x8,a[_0x5b831f(0x463)]),f(0x9,_[_0x5b831f(0x44a)]),f(0xa,a['IUndoRedoService'])],W);let k=class extends J{constructor(_0x504152,_0xb1d1ea,_0x5881c0,_0x273afc,_0x5be941,_0x2c59d6,_0x2c4cfe,_0x188848,_0x279e94,_0x4db1d3,_0x3b1590,_0x2a3846){const _0xaf7477=_0x5b831f;super(_0x504152,_0xb1d1ea,_0x5881c0,_0x273afc,_0x5be941,_0x279e94,_0x2a3846,_0x2c4cfe,_0x188848),d(this,'status',_0xaf7477(0x22d)),(this[_0xaf7477(0x1f9)]=_0x2c59d6,this[_0xaf7477(0x271)]=_0x4db1d3,this[_0xaf7477(0x44d)]=_0x3b1590);}[_0x5b831f(0x32d)](_0x29b3a6){const _0x1cb95d=_0x5b831f;return this[_0x1cb95d(0x1b0)][_0x1cb95d(0x17d)](_0x29b3a6),this;}[_0x5b831f(0x254)](_0x1c15b1){const _0x2e0eb6=_0x5b831f;if(this[_0x2e0eb6(0x19a)](_0x1c15b1))return this[_0x2e0eb6(0x1f9)][_0x2e0eb6(0x364)](H,this[_0x2e0eb6(0x311)],this[_0x2e0eb6(0x175)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x1c15b1],this[_0x2e0eb6(0x477)]);try{const _0xdee1d2=this[_0x2e0eb6(0x44d)][_0x2e0eb6(0x3ee)]([_0x1c15b1],[this[_0x2e0eb6(0xbe)]],!0x1);if(_[_0x2e0eb6(0x2e2)](_0xdee1d2)){const {c1Prime:_0x4791e3,c2Prime:_0xaad75b}=_0xdee1d2,_0x370370=this[_0x2e0eb6(0x44d)]['transformMutationsWithChangeset'](_0x4791e3[0x0],this[_0x2e0eb6(0x1b0)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x370370)){const {c1Prime:_0xf1ddb7,m2Prime:_0xe6eaa6}=_0x370370;return this['_executeRemoteChangeset'](_0xf1ddb7),_0xaad75b[0x0]['baseRev']=this[_0x2e0eb6(0x47a)](),this[_0x2e0eb6(0x1f9)][_0x2e0eb6(0x364)](k,this[_0x2e0eb6(0x311)],this[_0x2e0eb6(0x175)],_0xaad75b[0x0],_0xe6eaa6,this[_0x2e0eb6(0x477)]);}throw _0x370370[_0x2e0eb6(0xa7)];}throw _0xdee1d2['error'];}catch(_0x2d41cb){return this['_logService'][_0x2e0eb6(0xa7)](_0x2d41cb),this[_0x2e0eb6(0x2cb)](!0x1);}}[_0x5b831f(0x48d)](_0x3b58a5){const _0x3882f7=_0x5b831f;if(this[_0x3882f7(0x19a)](_0x3b58a5))return this['_injector']['createInstance'](H,this[_0x3882f7(0x311)],this['type'],null,this[_0x3882f7(0x1b0)],this['_awaitingChangeset'],[],this['_handler']);this[_0x3882f7(0x30c)]();const _0x48e4e7=this[_0x3882f7(0x1f9)][_0x3882f7(0x364)](x,this[_0x3882f7(0x311)],this[_0x3882f7(0x175)],this[_0x3882f7(0x1b0)],this['_handler']);return _0x48e4e7[_0x3882f7(0x173)](),_0x48e4e7['_updateLocalCache'](),_0x48e4e7;}[_0x5b831f(0x1cd)](_0x434c6f){const _0x449bdd=_0x5b831f;return this[_0x449bdd(0x2cb)](!!(_0x434c6f!=null&&_0x434c6f['isPermissionRej']));}[_0x5b831f(0x37f)](){const _0x468713=_0x5b831f;return this[_0x468713(0x1f9)][_0x468713(0x364)](G,this[_0x468713(0x311)],this[_0x468713(0x175)],this['_awaitingChangeset'],this[_0x468713(0x1b0)],this[_0x468713(0x477)]);}['toggleOnline'](){return this;}[_0x5b831f(0x457)](){const _0x56f59f=_0x5b831f;this[_0x56f59f(0x477)][_0x56f59f(0x23d)](this[_0x56f59f(0xbe)]);}['_onConflict'](_0x37b756){const _0x49c50f=_0x5b831f;return this[_0x49c50f(0x1f9)][_0x49c50f(0x364)](F,this[_0x49c50f(0x311)],this[_0x49c50f(0x175)],null,this[_0x49c50f(0x1b0)],this[_0x49c50f(0x477)],_0x37b756);}};k=z([f(0x5,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),f(0x6,a['Inject'](_['RevisionService'])),f(0x7,a['Inject'](exports[_0x5b831f(0x269)])),f(0x8,a[_0x5b831f(0x317)]),f(0x9,a[_0x5b831f(0x463)]),f(0xa,_[_0x5b831f(0x44a)]),f(0xb,a[_0x5b831f(0x25d)])],k);let F=class extends J{constructor(_0x45394b,_0x43fd66,_0x271216,_0x53ef4e,_0x3f5d1f,_0x4371cd=!0x1,_0x2e876b,_0x40e446,_0x5e4e81,_0x42a6fb,_0x58fcb2,_0x4e62ae,_0x5b8a0b){const _0x4e414d=_0x5b831f;super(_0x45394b,_0x43fd66,_0x271216,_0x53ef4e,_0x3f5d1f,_0x40e446,_0x5e4e81,_0x58fcb2,_0x42a6fb),d(this,_0x4e414d(0x35c),_0x4e414d(0x391)),(this[_0x4e414d(0x15e)]=_0x4371cd,this['_permissionService']=_0x2e876b,this[_0x4e414d(0x284)]=_0x4e62ae,this[_0x4e414d(0x181)]=_0x5b8a0b,this[_0x4e414d(0x179)](),this['_clearLocalCache'](),this[_0x4e414d(0x3fe)]());}['appendMutation'](){return this;}[_0x5b831f(0x254)](){return this;}[_0x5b831f(0x48d)](){return this;}[_0x5b831f(0x1cd)](){return this;}[_0x5b831f(0x37f)](){return this;}[_0x5b831f(0x2a7)](){return this;}[_0x5b831f(0x457)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5b831f(0x469)](){const _0xe17e18=_0x5b831f;this['_localCacheService'][_0xe17e18(0x2f1)](this['unitID'],this[_0xe17e18(0x175)],null,[]);}[_0x5b831f(0x179)](){const _0x33053d=_0x5b831f;this[_0x33053d(0x15e)]?this[_0x33053d(0x181)]['show']({'title':this[_0x33053d(0x284)]['t']('permission.title'),'content':this[_0x33053d(0x284)]['t'](_0x33053d(0x1d1)),'type':'error','duration':0x0}):this[_0x33053d(0x181)][_0x33053d(0x2b0)]({'title':this[_0x33053d(0x284)]['t']('conflict.title'),'content':this[_0x33053d(0x284)]['t']('conflict.content'),'type':_0x33053d(0xa7),'duration':0x0});}[_0x5b831f(0x3fe)](){const _0x172a31=_0x5b831f;this[_0x172a31(0xf7)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this[_0x172a31(0x311)])['id'],!0x1);}};F=z([f(0x6,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x38d)])),f(0x7,a[_0x5b831f(0x317)]),f(0x8,a[_0x5b831f(0x25d)]),f(0x9,a[_0x5b831f(0x1d9)](exports[_0x5b831f(0x269)])),f(0xa,a['Inject'](_['RevisionService'])),f(0xb,a['Inject'](a[_0x5b831f(0x3c9)])),f(0xc,N[_0x5b831f(0x236)])],F);let G=class extends J{constructor(_0xe91151,_0x286343,_0x4cf83c,_0x1599b6,_0x35acb5,_0x3776d8,_0x49cf19,_0x5bfb0d,_0x30b366,_0x5b8861){const _0x4a1964=_0x5b831f;super(_0xe91151,_0x286343,_0x4cf83c,_0x1599b6,_0x35acb5,_0x30b366,_0x5b8861,_0x49cf19,_0x5bfb0d),d(this,_0x4a1964(0x35c),_0x4a1964(0x37c)),this[_0x4a1964(0x1f9)]=_0x3776d8;}[_0x5b831f(0x32d)](_0x33bba1){const _0xebd897=_0x5b831f;return this[_0xebd897(0x1b0)][_0xebd897(0x17d)](_0x33bba1),this[_0xebd897(0x326)](),this;}[_0x5b831f(0x254)](_0x57847e){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x5a02c5=_0x5b831f;throw new Error(_0x5a02c5(0x2bf));}[_0x5b831f(0x1cd)](){const _0x128990=_0x5b831f;throw new Error(_0x128990(0x46b));}[_0x5b831f(0x37f)](){return this;}['toggleOnline'](){const _0x2f84fb=_0x5b831f,{_injector:_0x5d15d8,_pendingMutations:_0x3d094f,_awaitingChangeset:_0x1d1dac,unitID:_0x1710bd,_handler:_0x588f03,type:_0x43c0db}=this,_0x23525e=Rt(_0x5d15d8,_0x1710bd,_0x43c0db,_0x1d1dac,_0x3d094f,_0x588f03);return _0x23525e instanceof x?_0x23525e[_0x2f84fb(0x173)]():(_0x23525e instanceof k||_0x23525e instanceof W)&&_0x23525e[_0x2f84fb(0x457)](),_0x23525e;}['resend'](){const _0x5687e7=_0x5b831f;throw new Error(_0x5687e7(0x432));}};G=z([f(0x5,a[_0x5b831f(0x1d9)](a['Injector'])),f(0x6,a[_0x5b831f(0x1d9)](_['RevisionService'])),f(0x7,a[_0x5b831f(0x1d9)](exports['LocalCacheService'])),f(0x8,a[_0x5b831f(0x317)]),f(0x9,a[_0x5b831f(0x25d)])],G);let H=class extends J{constructor(_0x32c4c2,_0x33db97,_0xaaf29c,_0x31b2c3,_0xe04d47,_0x378df0,_0x2d99e6,_0x1cdca7,_0x5c2c71,_0x14e746,_0x40f5fd,_0x4cad0f,_0x562ed9,_0x2613c9){const _0x35e597=_0x5b831f;super(_0x32c4c2,_0x33db97,_0xaaf29c,_0x31b2c3,_0x2d99e6,_0x4cad0f,_0x562ed9,_0x5c2c71,_0x14e746),d(this,_0x35e597(0x35c),_0x35e597(0x226)),(this[_0x35e597(0x289)]=_0xe04d47,this['_queuedRemoteChangesets']=_0x378df0,this[_0x35e597(0x1f9)]=_0x1cdca7,this[_0x35e597(0x271)]=_0x40f5fd,this[_0x35e597(0x44d)]=_0x2613c9);}[_0x5b831f(0xd6)](_0x15c1e6){const _0x5d537e=_0x5b831f;try{const _0x4d707a=[..._0x15c1e6,...this[_0x5d537e(0x1d7)]],_0x5380ba=[this[_0x5d537e(0xbe)]||this['_acknowledgedAwaitingChangeset']][_0x5d537e(0x321)](_0xbef1af=>!!_0xbef1af);let _0xad1da2,_0x1e48ef;if(_0x5380ba[_0x5d537e(0x21d)]){const _0x3b861a=this[_0x5d537e(0x44d)]['transformChangesets'](_0x4d707a,_0x5380ba,!0x1);if(!_[_0x5d537e(0x2e2)](_0x3b861a))throw _0x3b861a[_0x5d537e(0xa7)];_0xad1da2=_0x3b861a['c1Prime'],_0x1e48ef=_0x3b861a[_0x5d537e(0x95)];}else _0xad1da2=_0x4d707a,_0x1e48ef=[];let _0x38bd29=this[_0x5d537e(0x1b0)];_0xad1da2[_0x5d537e(0x1b5)](_0x2b6560=>{const _0x437a73=_0x5d537e;let _0x5de3f9;if(_0x38bd29['length']){const _0xe586fa=this[_0x437a73(0x44d)][_0x437a73(0xb9)](_0x2b6560,_0x38bd29);if(!_[_0x437a73(0x2de)](_0xe586fa))throw _0xe586fa['error'];_0x5de3f9=_0xe586fa[_0x437a73(0x3a8)],_0x38bd29=_0xe586fa[_0x437a73(0x475)];}else _0x5de3f9=_0x2b6560;this['_executeRemoteChangeset'](_0x5de3f9);}),this[_0x5d537e(0x289)]&&this[_0x5d537e(0x30c)](),this[_0x5d537e(0xbe)]&&_0x1e48ef['length']&&(_0x1e48ef[0x0][_0x5d537e(0x2b5)]=this[_0x5d537e(0x47a)]());let _0x46a222;if(this[_0x5d537e(0xbe)]&&_0x38bd29['length']!==0x0)_0x46a222=this[_0x5d537e(0x1f9)][_0x5d537e(0x364)](k,this['unitID'],this[_0x5d537e(0x175)],_0x1e48ef[0x0],_0x38bd29,this['_handler']);else{if(this[_0x5d537e(0xbe)]&&_0x38bd29[_0x5d537e(0x21d)]===0x0)_0x1e48ef[0x0][_0x5d537e(0x2b5)]=this[_0x5d537e(0x47a)](),_0x46a222=this[_0x5d537e(0x1f9)][_0x5d537e(0x364)](W,this[_0x5d537e(0x311)],this[_0x5d537e(0x175)],_0x1e48ef[0x0],this['_handler']);else{if(_0x38bd29[_0x5d537e(0x21d)]!==0x0){const _0x2ffa7c=this[_0x5d537e(0x1f9)][_0x5d537e(0x364)](x,this[_0x5d537e(0x311)],this[_0x5d537e(0x175)],_0x38bd29,this[_0x5d537e(0x477)]);_0x2ffa7c[_0x5d537e(0x173)](),_0x46a222=_0x2ffa7c;}else _0x46a222=this[_0x5d537e(0x1f9)][_0x5d537e(0x364)](se,this[_0x5d537e(0x311)],this[_0x5d537e(0x175)],this[_0x5d537e(0x477)]);}}return _0x46a222['_updateLocalCache'](),_0x46a222;}catch(_0x54a09d){return this['_logService']['error'](_0x5d537e(0x316),_0x5d537e(0x1d0),_0x54a09d),this[_0x5d537e(0x1f9)]['createInstance'](F,this[_0x5d537e(0x311)],this[_0x5d537e(0x175)],this[_0x5d537e(0xbe)],this[_0x5d537e(0x1b0)],this['_handler'],!0x1);}}[_0x5b831f(0x457)](){const _0x2a08cd=_0x5b831f;throw new Error(_0x2a08cd(0x32e));}[_0x5b831f(0x32d)](_0x3316d2){const _0x2a2bdf=_0x5b831f;return this[_0x2a2bdf(0x1b0)][_0x2a2bdf(0x17d)](_0x3316d2),this;}[_0x5b831f(0x254)](_0xf1fd7b){const _0x4b1a9e=_0x5b831f;return this[_0x4b1a9e(0x1d7)][_0x4b1a9e(0x17d)](_0xf1fd7b),this;}[_0x5b831f(0x48d)](_0x2ac1f8){const _0xac701e=_0x5b831f;if(this[_0xac701e(0xbe)])return this[_0xac701e(0x289)]=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error(_0xac701e(0x499));}[_0x5b831f(0x1cd)](_0x474222){const _0x5c1f57=_0x5b831f;return this[_0x5c1f57(0x2cb)](!!(_0x474222!=null&&_0x474222[_0x5c1f57(0x3f6)]));}[_0x5b831f(0x37f)](){const _0x346f82=_0x5b831f;return this['_injector'][_0x346f82(0x364)](G,this['unitID'],this['type'],this[_0x346f82(0xbe)],this[_0x346f82(0x1b0)],this[_0x346f82(0x477)]);}[_0x5b831f(0x2a7)](){return this;}[_0x5b831f(0x2cb)](_0x5e7563){const _0x4c562f=_0x5b831f;return this[_0x4c562f(0x1f9)][_0x4c562f(0x364)](F,this[_0x4c562f(0x311)],this[_0x4c562f(0x175)],this[_0x4c562f(0xbe)],this[_0x4c562f(0x1b0)],this[_0x4c562f(0x477)],_0x5e7563);}};H=z([f(0x7,a['Inject'](a[_0x5b831f(0x2b9)])),f(0x8,a[_0x5b831f(0x1d9)](_[_0x5b831f(0x355)])),f(0x9,a[_0x5b831f(0x1d9)](exports[_0x5b831f(0x269)])),f(0xa,a['ILogService']),f(0xb,a['ICommandService']),f(0xc,a[_0x5b831f(0x25d)]),f(0xd,_[_0x5b831f(0x44a)])],H);function Rt(_0x1188ab,_0x3bd41a,_0xddcb29,_0x547592,_0x48bd40,_0xa86b6a){const _0xea0bb3=_0x5b831f;return _0x547592&&_0x48bd40[_0xea0bb3(0x21d)]?_0x1188ab[_0xea0bb3(0x364)](k,_0x3bd41a,_0xddcb29,_0x547592,_0x48bd40,_0xa86b6a):_0x547592?_0x1188ab[_0xea0bb3(0x364)](W,_0x3bd41a,_0xddcb29,_0x547592,_0xa86b6a):_0x48bd40[_0xea0bb3(0x21d)]?_0x1188ab[_0xea0bb3(0x364)](x,_0x3bd41a,_0xddcb29,_0x48bd40,_0xa86b6a):_0x1188ab[_0xea0bb3(0x364)](se,_0x3bd41a,_0xddcb29,_0xa86b6a);}var Hs=Object[_0x5b831f(0x1e0)],xs=Object['getOwnPropertyDescriptor'],Ke=(_0x1e1fa2,_0x5f518f,_0x15e88c,_0x26149f)=>{const _0xe026f0=_0x5b831f;for(var _0x105f83=_0x26149f>0x1?void 0x0:_0x26149f?xs(_0x5f518f,_0x15e88c):_0x5f518f,_0x5660e8=_0x1e1fa2[_0xe026f0(0x21d)]-0x1,_0x431d30;_0x5660e8>=0x0;_0x5660e8--)(_0x431d30=_0x1e1fa2[_0x5660e8])&&(_0x105f83=(_0x26149f?_0x431d30(_0x5f518f,_0x15e88c,_0x105f83):_0x431d30(_0x105f83))||_0x105f83);return _0x26149f&&_0x105f83&&Hs(_0x5f518f,_0x15e88c,_0x105f83),_0x105f83;},I=(_0x2d77d6,_0x2ac27d)=>(_0x5c45a9,_0x49447d)=>_0x2ac27d(_0x5c45a9,_0x49447d,_0x2d77d6);exports[_0x5b831f(0x7f)]=class extends a[_0x5b831f(0x494)]{constructor(_0x3d049b,_0x11f51f,_0x1bb884,_0x10a2cc,_0x2dbe4d,_0x293118,_0x1f1b1b,_0x23ceb9,_0x539a98,_0x5a94b3,_0x4445d8,_0x452008,_0x42c7b1){const _0x412df3=_0x5b831f;super(),d(this,_0x412df3(0x116),new v['BehaviorSubject'](null)),d(this,_0x412df3(0x108),this[_0x412df3(0x116)][_0x412df3(0x2bc)]()),d(this,_0x412df3(0x3d5)),d(this,_0x412df3(0xc8),!0x1),d(this,_0x412df3(0x1d5),this[_0x412df3(0x108)][_0x412df3(0x1a5)](v['map'](_0x173b1d=>_0x173b1d?_0x173b1d['status']:y[_0x412df3(0x2e0)]),v['shareReplay'](0x1))),d(this,'_transitionLocked',!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0x412df3(0x311)]=_0x3d049b,this[_0x412df3(0x3ce)]=_0x11f51f,this[_0x412df3(0xbc)]=_0x1bb884,this[_0x412df3(0x1f9)]=_0x10a2cc,this[_0x412df3(0x2fd)]=_0x2dbe4d,this['_compressMutationService']=_0x293118,this[_0x412df3(0x284)]=_0x1f1b1b,this[_0x412df3(0x2ac)]=_0x23ceb9,this[_0x412df3(0x271)]=_0x539a98,this[_0x412df3(0x40a)]=_0x5a94b3,this['_messageService']=_0x4445d8,this[_0x412df3(0xf7)]=_0x452008,this[_0x412df3(0x2b1)]=_0x42c7b1);}get[_0x5b831f(0xd9)](){const _0x44c1be=_0x5b831f;return this[_0x44c1be(0x3d5)];}async[_0x5b831f(0x21a)](){const _0x5b5834=_0x5b831f;if(this[_0x5b5834(0xd9)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x5b5834(0x3ba)]();}[_0x5b831f(0x1a2)](){const _0xced718=_0x5b831f;return this[_0xced718(0xc8)]=!0x0,a[_0xced718(0x3cb)](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x5b831f(0x260)](_0x2e0c4a){const _0x254e72=_0x5b831f;this['_state']=_0x2e0c4a,this['_state$'][_0x254e72(0x2b2)](_0x2e0c4a);}async[_0x5b831f(0x3ba)](){const _0x49174c=_0x5b831f;var _0x3cdffe;this[_0x49174c(0x260)](await this[_0x49174c(0x39c)]()),this[_0x49174c(0x2b1)]&&((_0x3cdffe=this[_0x49174c(0x2b1)])==null||_0x3cdffe[_0x49174c(0x444)](this[_0x49174c(0x311)]),this[_0x49174c(0x37a)](this['_singleActiveUnitService']['getUnitStatus$'](this['unitID'])[_0x49174c(0x3fc)](_0x163faf=>{const _0x15abf3=_0x49174c;this['_logService'][_0x15abf3(0x3c5)]('[CollaborationEntity]',_0x15abf3(0x22f),_0x163faf),_0x163faf===bt[_0x15abf3(0x1e6)]?(this['_messageService'][_0x15abf3(0x2b0)]({'content':this[_0x15abf3(0x284)]['t']('collaboration.single-unit.warning'),'type':X[_0x15abf3(0x2a0)][_0x15abf3(0x1f2)]}),this['_permissionService'][_0x15abf3(0x2fb)](new C[(_0x15abf3(0x40b))](this[_0x15abf3(0x311)])['id'],!0x1)):this[_0x15abf3(0xf7)][_0x15abf3(0x2fb)](new C[(_0x15abf3(0x40b))](this[_0x15abf3(0x311)])['id'],!0x0);})));let _0x52a0a4=!0x1;return this['disposeWithMe'](this[_0x49174c(0x3ce)][_0x49174c(0x406)][_0x49174c(0x3fc)](_0x1c5136=>{const _0x5781b3=_0x49174c;_0x1c5136===$[_0x5781b3(0x314)]?this[_0x5781b3(0x352)](_0x52a0a4):_0x1c5136===$['OFFLINE']&&(_0x52a0a4=!0x0,this[_0x5781b3(0x11c)]());})),this[_0x49174c(0x37a)](this[_0x49174c(0x3ce)][_0x49174c(0x27c)]['subscribe'](_0x4e18b1=>{const _0x20cdc6=_0x49174c;try{switch(_0x4e18b1[_0x20cdc6(0x182)]){case _[_0x20cdc6(0x270)]['NEW_CHANGESETS']:{this[_0x20cdc6(0x22b)](_[_0x20cdc6(0x318)](_0x4e18b1[_0x20cdc6(0xcd)]));break;}case _['CollaborationEvent'][_0x20cdc6(0x2fa)]:{this[_0x20cdc6(0xcb)](_0x4e18b1[_0x20cdc6(0xcd)]);break;}case _[_0x20cdc6(0x270)][_0x20cdc6(0x200)]:{this[_0x20cdc6(0x111)]();break;}case _['CollaborationEvent'][_0x20cdc6(0x7d)]:{this[_0x20cdc6(0x2ef)](_0x4e18b1['data'][_0x20cdc6(0x464)]['map'](_0x2bfbf7=>_[_0x20cdc6(0x318)](_0x2bfbf7)));break;}case _[_0x20cdc6(0x270)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x5adfa2){throw console['error']('Error\x20on\x20receiving\x20event',_0x5adfa2),_0x5adfa2;}})),this[_0x49174c(0x3d5)];}[_0x5b831f(0x33d)](){this['_transitionLocked']=!0x1;}[_0x5b831f(0x13c)](){const _0x4cb30f=_0x5b831f;if(this['_transitionLocked'])throw new Error(_0x4cb30f(0x17f));this[_0x4cb30f(0x217)]=!0x0;}[_0x5b831f(0x251)](_0x1bb53a){const _0x99f937=_0x5b831f;this[_0x99f937(0x13c)](),this[_0x99f937(0x260)](this[_0x99f937(0x3d5)][_0x99f937(0x32d)](_0x1bb53a)),this[_0x99f937(0x33d)]();}[_0x5b831f(0x22b)](_0x2bed82){const _0x37e8aa=_0x5b831f;if(!(_0x2bed82[_0x37e8aa(0x2ab)]<=this[_0x37e8aa(0x2ac)][_0x37e8aa(0xb2)](this[_0x37e8aa(0x311)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x37e8aa(0x17d)](_0x2bed82);return;}this[_0x37e8aa(0x77)](_0x2bed82);}}[_0x5b831f(0x88)](){const _0x3fcbc1=_0x5b831f;this[_0x3fcbc1(0x1ef)][_0x3fcbc1(0x1b5)](_0x5ae7bc=>this[_0x3fcbc1(0x77)](_0x5ae7bc)),this[_0x3fcbc1(0x1ef)]=[];}['_applyRemoteChangeset'](_0x389a6e){const _0x66b50b=_0x5b831f,_0x3f8023=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x66b50b(0x39a)]['interceptor'][_0x66b50b(0x2c8)]()[_0x66b50b(0x440)])(_0x389a6e[_0x66b50b(0x408)],null)||_0x389a6e['mutations'],_0x546727={..._0x389a6e,'mutations':_0x3f8023};this[_0x66b50b(0x13c)](),this[_0x66b50b(0x260)](this[_0x66b50b(0x3d5)][_0x66b50b(0x254)](_0x546727)),this[_0x66b50b(0x33d)]();}['_onRemoteACK'](_0x32d849){const _0x34965f=_0x5b831f;this['_lockTransition'](),this[_0x34965f(0x260)](this['_state'][_0x34965f(0x48d)](_0x32d849)),this[_0x34965f(0x33d)]();}['_onRemoteRejected'](_0x20456d){const _0x3ffded=_0x5b831f;this[_0x3ffded(0x13c)](),this[_0x3ffded(0x260)](this[_0x3ffded(0x3d5)][_0x3ffded(0x1cd)](_0x20456d)),this[_0x3ffded(0x33d)]();}[_0x5b831f(0x2ef)](_0x372b95){const _0x29f590=_0x5b831f;if(!(this[_0x29f590(0x3d5)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x5b6d23=_0x372b95[_0x29f590(0x31d)](_0x77aa4=>{const _0x18acc5=_0x29f590,_0xa883be=this[_0x18acc5(0x39a)][_0x18acc5(0x3d8)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x18acc5(0x3d8)][_0x18acc5(0x2c8)]()[_0x18acc5(0x440)])(_0x77aa4['mutations'],null)||_0x77aa4[_0x18acc5(0x408)];return{..._0x77aa4,'mutations':_0xa883be};});this[_0x29f590(0x13c)](),this[_0x29f590(0x260)](this['_state'][_0x29f590(0xd6)](_0x5b6d23)),this[_0x29f590(0x33d)]();}[_0x5b831f(0x11c)](){const _0x1ce7db=_0x5b831f;this['_lockTransition'](),this[_0x1ce7db(0x260)](this[_0x1ce7db(0x3d5)][_0x1ce7db(0x37f)]()),this['_unlockTransition']();}['_toggleOnline'](_0x16b1c4=!0x1){const _0x377f32=_0x5b831f;this[_0x377f32(0x13c)](),this[_0x377f32(0x260)](this['_state'][_0x377f32(0x2a7)]()),this['_unlockTransition']();const _0x3fc6df=this['_state'];_0x16b1c4&&_0x3fc6df instanceof se&&(this[_0x377f32(0x13c)](),this[_0x377f32(0x260)](_0x3fc6df[_0x377f32(0x1cc)]()),this['_unlockTransition']());}async[_0x5b831f(0x39c)](){return new Promise(_0x5a9cfc=>{const _0x457523=_0x49eb;this[_0x457523(0x3ce)]['sessionStatus$'][_0x457523(0x1a5)](v[_0x457523(0x2d1)](0x1))['subscribe'](async _0x3b695b=>{const _0x3ff708=_0x457523;_0x5a9cfc(await this[_0x3ff708(0x45d)](_0x3b695b===$[_0x3ff708(0x314)]));});});}[_0x5b831f(0x2ea)](){const _0xdb4451=_0x5b831f,_0x43d52d=this[_0xdb4451(0x311)];return{'onStateChange':(_0x283707,_0x32576f)=>{const _0xc83404=_0xdb4451;if(_0x283707!==this[_0xc83404(0x3d5)])throw new Error(_0xc83404(0x13b)+_0x283707[_0xc83404(0x35c)]+_0xc83404(0x413)+_0x32576f[_0xc83404(0x35c)]+'\x0aCurrent:\x20'+this['_state'][_0xc83404(0x35c)]);this[_0xc83404(0x260)](_0x32576f);},'onSendChangeset':_0x1ac836=>{const _0x286f0f=_0xdb4451,_0x330f61={'eventID':_[_0x286f0f(0x270)][_0x286f0f(0x98)],'data':{'unitID':_0x1ac836[_0x286f0f(0x311)],'unitType':this['_type'],'changeset':_0x1ac836,'memberID':this[_0x286f0f(0x3ce)][_0x286f0f(0x2a1)]()}};this['session'][_0x286f0f(0xd4)](_0x330f61,this[_0x286f0f(0x311)]);},'onMissingChangesets':({from:_0x26a1de,to:_0x58cfd7})=>{const _0x107fa1=_0xdb4451;this[_0x107fa1(0x271)]['debug'](_0x107fa1(0x300),_0x107fa1(0x23f)+_0x26a1de+_0x107fa1(0x24a)+_0x58cfd7);const _0x3c314d={'eventID':_[_0x107fa1(0x270)][_0x107fa1(0x285)],'data':{'unitID':_0x43d52d,'unitType':this['_type'],'from':_0x26a1de,'to':_0x58cfd7}};this[_0x107fa1(0x3ce)]['send'](_0x3c314d,this['unitID']);}};}async[_0x5b831f(0x45d)](_0x19c1e2){const _0x1cf9af=_0x5b831f;var _0x436b6a,_0x4efd3a;const _0x225f1a=await this['_localCacheService'][_0x1cf9af(0x489)](this['unitID']),_0x5452d1=(_0x436b6a=_0x225f1a==null?void 0x0:_0x225f1a[_0x1cf9af(0x408)])!=null?_0x436b6a:[],_0x5b6a7e=(_0x4efd3a=_0x225f1a==null?void 0x0:_0x225f1a[_0x1cf9af(0x379)])!=null?_0x4efd3a:null,_0xe5a48b=this[_0x1cf9af(0x311)];try{this['_replayCachedMutations'](_0x5b6a7e,_0x5452d1);}catch(_0x10f7e5){this['_logService'][_0x1cf9af(0xa7)](_0x10f7e5);}const _0xe02e89=this[_0x1cf9af(0x2ea)]();if(_0x19c1e2){const _0x40fd0a=Rt(this[_0x1cf9af(0x1f9)],_0xe5a48b,this['_type'],_0x5b6a7e,_0x5452d1,_0xe02e89);return _0x40fd0a instanceof x?_0x40fd0a['_schedule']():(_0x40fd0a instanceof k||_0x40fd0a instanceof W)&&_0x40fd0a['resend'](),_0x40fd0a;}return this[_0x1cf9af(0x1f9)]['createInstance'](G,_0xe5a48b,this['_type'],_0x5b6a7e,_0x5452d1,_0xe02e89);}[_0x5b831f(0x25b)](_0x1696c9,_0x22aa7a){const _0x2deccb=_0x5b831f;var _0x2bdccd,_0x2823e0;const _0x1d43bb=this['_compressMutationService'][_0x2deccb(0x3d8)][_0x2deccb(0x42f)](this[_0x2deccb(0x39a)][_0x2deccb(0x3d8)][_0x2deccb(0x2c8)]()[_0x2deccb(0x440)]);(_0x2bdccd=_0x1d43bb((_0x1696c9==null?void 0x0:_0x1696c9[_0x2deccb(0x408)])||[],null))==null||_0x2bdccd['forEach'](_0x3df4ef=>this[_0x2deccb(0x40a)]['executeCommand'](_0x3df4ef['id'],_0x3df4ef['params'])),(_0x2823e0=_0x1d43bb(_0x22aa7a||[],null))==null||_0x2823e0['forEach'](_0x23ea76=>this[_0x2deccb(0x40a)][_0x2deccb(0x288)](_0x23ea76['id'],_0x23ea76[_0x2deccb(0x38a)]));}},exports[_0x5b831f(0x7f)]=Ke([I(0x3,a[_0x5b831f(0x1d9)](a['Injector'])),I(0x4,a['Inject'](exports[_0x5b831f(0x269)])),I(0x5,a[_0x5b831f(0x1d9)](_[_0x5b831f(0xd3)])),I(0x6,a['Inject'](a[_0x5b831f(0x3c9)])),I(0x7,a[_0x5b831f(0x1d9)](_[_0x5b831f(0x355)])),I(0x8,a[_0x5b831f(0x463)]),I(0x9,a[_0x5b831f(0x317)]),I(0xa,N[_0x5b831f(0x16f)]),I(0xb,a[_0x5b831f(0x38d)]),I(0xc,a['Optional'](Te))],exports['CollaborationEntity']),exports[_0x5b831f(0x8a)]=class extends exports[_0x5b831f(0x7f)]{constructor(_0x4fe87a,_0x4e84cf,_0x2b46f5,_0x236a39,_0xeda8bb,_0x371758,_0x1a94cb,_0xdbf4cc,_0x4b4b5e,_0x2788f8,_0x54e53f,_0x3204be,_0x1f7687,_0x5da184,_0x542348,_0x42aba7,_0x2af83d){const _0x1a149a=_0x5b831f;super(_0x4fe87a,_0x2b46f5,_0x4e84cf,_0x236a39,_0xeda8bb,_0x371758,_0x1a94cb,_0xdbf4cc,_0x1f7687,_0x5da184,_0x542348,_0x42aba7,_0x2af83d),this['unitID']=_0x4fe87a,this[_0x1a149a(0x175)]=_0x4e84cf,this['_docStateChangeManagerService']=_0x4b4b5e,this[_0x1a149a(0x118)]=_0x2788f8,this[_0x1a149a(0x234)]=_0x54e53f,this[_0x1a149a(0x1c2)]=_0x3204be;}[_0x5b831f(0x2ea)](){const _0x5b7b7b=_0x5b831f,_0x4ac04e=super[_0x5b7b7b(0x2ea)]();return _0x4ac04e[_0x5b7b7b(0x36f)]=_0x54f333=>this['_docTransformIMECacheService'][_0x5b7b7b(0x7e)](_0x54f333),_0x4ac04e[_0x5b7b7b(0x35b)]=_0x43282c=>this[_0x5b7b7b(0x234)]['transformSelections'](_0x43282c),_0x4ac04e[_0x5b7b7b(0x10b)]=_0x4d9b4d=>this[_0x5b7b7b(0x1c2)]['syncEditingCollabCursor'](_0x4d9b4d),_0x4ac04e[_0x5b7b7b(0x121)]=_0x426c86=>this[_0x5b7b7b(0x118)][_0x5b7b7b(0x484)](_0x426c86),_0x4ac04e;}async[_0x5b831f(0x3ba)](){const _0x57d064=_0x5b831f,_0x3f997a=await super[_0x57d064(0x3ba)]();return this[_0x57d064(0x37a)](this['_commandService'][_0x57d064(0x496)]((_0x4535ee,_0x406812)=>{const _0xf21635=_0x57d064;if(_0x4535ee[_0xf21635(0x175)]!==a[_0xf21635(0x29b)][_0xf21635(0x434)]||_0x406812!=null&&_0x406812['fromCollab']||_0x406812!=null&&_0x406812['onlyLocal'])return;const _0x2ce330=_0x4535ee[_0xf21635(0x38a)];if((_0x2ce330==null?void 0x0:_0x2ce330['unitId'])!==this[_0xf21635(0x311)])return;let _0x87c1bc=_0x4535ee;if(_0x87c1bc['id']===V[_0xf21635(0xf4)]['id']){const _0x1d6b6f=_0x87c1bc[_0xf21635(0x38a)];_0x87c1bc={'id':V[_0xf21635(0xf4)]['id'],'type':a[_0xf21635(0x29b)][_0xf21635(0x434)],'params':{'unitId':_0x1d6b6f['unitId'],'actions':_0x1d6b6f['actions'],'textRanges':null}};}const _0x20fca3=this[_0xf21635(0x39a)]['interceptor'][_0xf21635(0x42f)](this[_0xf21635(0x39a)][_0xf21635(0x3d8)][_0xf21635(0x2c8)]()['COMPRESS_MUTATION_SEND'])([_0x87c1bc],null)||[_0x87c1bc];this['_onLocalMutation'](_0x20fca3[0x0]);})),_0x3f997a;}},exports[_0x5b831f(0x8a)]=Ke([I(0x3,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),I(0x4,a['Inject'](exports[_0x5b831f(0x269)])),I(0x5,a[_0x5b831f(0x1d9)](_[_0x5b831f(0xd3)])),I(0x6,a['Inject'](a[_0x5b831f(0x3c9)])),I(0x7,a['Inject'](_['RevisionService'])),I(0x8,a[_0x5b831f(0x1d9)](w['DocStateChangeManagerService'])),I(0x9,a[_0x5b831f(0x1d9)](ge)),I(0xa,a['Inject'](me)),I(0xb,a[_0x5b831f(0x1d9)](Ye)),I(0xc,a[_0x5b831f(0x463)]),I(0xd,a['ICommandService']),I(0xe,N[_0x5b831f(0x16f)]),I(0xf,a[_0x5b831f(0x38d)]),I(0x10,a[_0x5b831f(0x433)](Te))],exports['DocCollaborationEntity']),exports['SheetCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x19860b,_0x3bc3c5,_0x2d22de,_0x3e6fae,_0x1beaa5,_0x1971b2,_0x3b8ef1,_0x1fb40c,_0x27ad2c,_0x260563,_0x23a3bf,_0x4b802d,_0x56453e,_0x1f149c){const _0x52fcd8=_0x5b831f;super(_0x19860b,_0x2d22de,_0x3bc3c5,_0x3e6fae,_0x1beaa5,_0x1971b2,_0x3b8ef1,_0x1fb40c,_0x260563,_0x23a3bf,_0x4b802d,_0x56453e,_0x1f149c),this[_0x52fcd8(0x311)]=_0x19860b,this[_0x52fcd8(0x175)]=_0x3bc3c5,this['_sheetTransformSelectionsService']=_0x27ad2c;}[_0x5b831f(0x2ea)](){const _0x36bc98=_0x5b831f,_0x46889b=super[_0x36bc98(0x2ea)]();return _0x46889b[_0x36bc98(0x35b)]=_0x17b500=>this[_0x36bc98(0x21c)][_0x36bc98(0x44c)](_0x17b500),_0x46889b;}async['_init'](){const _0x7d5469=_0x5b831f,_0x4f2948=await super[_0x7d5469(0x3ba)]();return this[_0x7d5469(0x37a)](this[_0x7d5469(0x40a)][_0x7d5469(0x496)]((_0x449024,_0x3bdb4c)=>{const _0x514e9a=_0x7d5469;if(_0x449024['type']!==a[_0x514e9a(0x29b)][_0x514e9a(0x434)]||_0x3bdb4c!=null&&_0x3bdb4c[_0x514e9a(0x3e8)]||_0x3bdb4c!=null&&_0x3bdb4c['onlyLocal'])return;const _0xe43598=_0x449024['params'];if((_0xe43598==null?void 0x0:_0xe43598[_0x514e9a(0x338)])!==this[_0x514e9a(0x311)])return;const _0x2d1973=_0x449024,_0x4f861b=this[_0x514e9a(0x39a)][_0x514e9a(0x3d8)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x514e9a(0x20d)])([_0x2d1973],null)||[_0x2d1973];this[_0x514e9a(0x251)](_0x4f861b[0x0]);})),_0x4f2948;}},exports[_0x5b831f(0x258)]=Ke([I(0x3,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),I(0x4,a[_0x5b831f(0x1d9)](exports[_0x5b831f(0x269)])),I(0x5,a[_0x5b831f(0x1d9)](_[_0x5b831f(0xd3)])),I(0x6,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x3c9)])),I(0x7,a[_0x5b831f(0x1d9)](_['RevisionService'])),I(0x8,a[_0x5b831f(0x1d9)](fe)),I(0x9,a[_0x5b831f(0x463)]),I(0xa,a['ICommandService']),I(0xb,N['IMessageService']),I(0xc,a[_0x5b831f(0x38d)]),I(0xd,a[_0x5b831f(0x433)](Te))],exports['SheetCollaborationEntity']);var ks=Object[_0x5b831f(0x1e0)],Bs=Object['getOwnPropertyDescriptor'],Vs=(_0x106cf9,_0xb4650b,_0x139b3e,_0xe42434)=>{const _0x562588=_0x5b831f;for(var _0x321765=_0xe42434>0x1?void 0x0:_0xe42434?Bs(_0xb4650b,_0x139b3e):_0xb4650b,_0x1366cc=_0x106cf9[_0x562588(0x21d)]-0x1,_0x13063d;_0x1366cc>=0x0;_0x1366cc--)(_0x13063d=_0x106cf9[_0x1366cc])&&(_0x321765=(_0xe42434?_0x13063d(_0xb4650b,_0x139b3e,_0x321765):_0x13063d(_0x321765))||_0x321765);return _0xe42434&&_0x321765&&ks(_0xb4650b,_0x139b3e,_0x321765),_0x321765;},Pe=(_0x4ba941,_0x2b9e71)=>(_0x534d6f,_0x1e4490)=>_0x2b9e71(_0x534d6f,_0x1e4490,_0x4ba941);exports[_0x5b831f(0x38e)]=class extends a[_0x5b831f(0x494)]{constructor(_0x5693b2,_0x5e17c4,_0x364ba6){const _0x113784=_0x5b831f;super(),d(this,_0x113784(0x94),new Map()),d(this,_0x113784(0x3af),new v[(_0x113784(0xf0))]()),(this[_0x113784(0x1f9)]=_0x5693b2,this[_0x113784(0x9f)]=_0x5e17c4,this[_0x113784(0x249)]=_0x364ba6,this['_init']());}['dispose'](){const _0x580ad6=_0x5b831f;super['dispose'](),this[_0x580ad6(0x94)][_0x580ad6(0x1b5)](_0x43d7d9=>_0x43d7d9['dispose']()),this[_0x580ad6(0x94)]['clear']();}[_0x5b831f(0x191)](_0x132738){const _0x4a5b5e=_0x5b831f;var _0x2e71b6;return(_0x2e71b6=this[_0x4a5b5e(0x94)][_0x4a5b5e(0x28f)](_0x132738))!=null?_0x2e71b6:null;}['getCollabEntity$'](_0x5f21c3){const _0x4a6e6d=_0x5b831f,_0x1dc99e=this[_0x4a6e6d(0x191)](_0x5f21c3);return _0x1dc99e?v['of'](_0x1dc99e):this[_0x4a6e6d(0x3af)]['pipe'](E[_0x4a6e6d(0x321)](_0x258a14=>_0x258a14['unitID']===_0x5f21c3));}[_0x5b831f(0x3ba)](){const _0x487b6c=_0x5b831f;this['_univerInstanceService'][_0x487b6c(0x2c3)](a[_0x487b6c(0x12d)][_0x487b6c(0x102)])[_0x487b6c(0x1a5)](v[_0x487b6c(0xec)](this[_0x487b6c(0x25c)]),E[_0x487b6c(0x244)](0x10))[_0x487b6c(0x3fc)](async _0x41704f=>{const _0x215252=_0x487b6c,_0x286d69=_0x41704f[_0x215252(0xa3)](),_0xb7a521=await this[_0x215252(0x34e)](_0x286d69,j[_0x215252(0x102)]);this['_entities'][_0x215252(0x46d)](_0x286d69,_0xb7a521);}),this[_0x487b6c(0x249)][_0x487b6c(0x2c3)](a[_0x487b6c(0x12d)][_0x487b6c(0x192)])['pipe'](v[_0x487b6c(0xec)](this[_0x487b6c(0x25c)]),E['delay'](0x10))['pipe'](E[_0x487b6c(0x321)](_0x2d0db4=>!_0x2d0db4['getUnitId']()[_0x487b6c(0x3a6)]('__')))[_0x487b6c(0x3fc)](async _0x2eaf33=>{const _0x14a277=_0x487b6c,_0x33c367=_0x2eaf33[_0x14a277(0xa3)](),_0x7ebc5=await this[_0x14a277(0x34e)](_0x33c367,j[_0x14a277(0x192)]);this[_0x14a277(0x94)][_0x14a277(0x46d)](_0x33c367,_0x7ebc5);}),v[_0x487b6c(0x103)](this[_0x487b6c(0x249)][_0x487b6c(0x3df)](a[_0x487b6c(0x12d)][_0x487b6c(0x102)]),this[_0x487b6c(0x249)][_0x487b6c(0x3df)](a[_0x487b6c(0x12d)]['UNIVER_DOC']))[_0x487b6c(0x1a5)](v[_0x487b6c(0xec)](this[_0x487b6c(0x25c)]))[_0x487b6c(0x3fc)](_0x272955=>{const _0x2c2271=_0x487b6c,_0x4bf887=_0x272955[_0x2c2271(0xa3)](),_0x5e1d3a=this['_entities']['get'](_0x4bf887);_0x5e1d3a&&(_0x5e1d3a[_0x2c2271(0x257)](),this[_0x2c2271(0x94)][_0x2c2271(0x344)](_0x4bf887));});}async[_0x5b831f(0x34e)](_0x3375fa,_0x24e549){const _0x19c4cd=_0x5b831f,_0x2bc517=await this[_0x19c4cd(0x9f)][_0x19c4cd(0x82)](_0x3375fa),_0x461dee=this[_0x19c4cd(0x1f9)][_0x19c4cd(0x364)](this[_0x19c4cd(0x43c)](_0x24e549),_0x3375fa,_0x24e549,_0x2bc517);return await _0x461dee[_0x19c4cd(0x21a)](),this[_0x19c4cd(0x3af)][_0x19c4cd(0x2b2)](_0x461dee),_0x461dee;}[_0x5b831f(0x43c)](_0xb27da){const _0x51b6fd=_0x5b831f;switch(_0xb27da){case j['UNIVER_DOC']:return exports[_0x51b6fd(0x8a)];case j['UNIVER_SHEET']:return exports[_0x51b6fd(0x258)];default:throw new Error(_0x51b6fd(0x256)+_0xb27da);}}},exports[_0x5b831f(0x38e)]=Vs([Pe(0x0,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),Pe(0x1,a[_0x5b831f(0x1d9)](exports[_0x5b831f(0x47e)])),Pe(0x2,a[_0x5b831f(0x3c0)])],exports['CollaborationController']);const nt=['purple300',_0x5b831f(0x439),_0x5b831f(0x201),_0x5b831f(0x410),_0x5b831f(0x3b2),_0x5b831f(0x3c6)];class Xe extends a[_0x5b831f(0x333)]{constructor(){const _0x46f2b9=_0x5b831f;super(...arguments),d(this,_0x46f2b9(0xcf),new Map()),d(this,_0x46f2b9(0x3ad),0x0);}[_0x5b831f(0xe7)](_0x5572ce){const _0x498aa6=_0x5b831f;if(this[_0x498aa6(0xcf)][_0x498aa6(0x336)](_0x5572ce))return this['_assignedColors'][_0x498aa6(0x28f)](_0x5572ce);const _0x16a37c=nt[this[_0x498aa6(0x3ad)]];return this[_0x498aa6(0x3ad)]=(this[_0x498aa6(0x3ad)]+0x1)%nt[_0x498aa6(0x21d)],this['_assignedColors'][_0x498aa6(0x46d)](_0x5572ce,_0x16a37c),_0x16a37c;}}var Ws=Object['defineProperty'],Fs=Object[_0x5b831f(0x31a)],Gs=(_0x2f2377,_0x23b143,_0x2c56f6,_0x3d5515)=>{const _0x29d913=_0x5b831f;for(var _0x6e0e66=_0x3d5515>0x1?void 0x0:_0x3d5515?Fs(_0x23b143,_0x2c56f6):_0x23b143,_0xbc4f26=_0x2f2377[_0x29d913(0x21d)]-0x1,_0x3d1f7e;_0xbc4f26>=0x0;_0xbc4f26--)(_0x3d1f7e=_0x2f2377[_0xbc4f26])&&(_0x6e0e66=(_0x3d5515?_0x3d1f7e(_0x23b143,_0x2c56f6,_0x6e0e66):_0x3d1f7e(_0x6e0e66))||_0x6e0e66);return _0x3d5515&&_0x6e0e66&&Ws(_0x23b143,_0x2c56f6,_0x6e0e66),_0x6e0e66;},K=(_0x4aa977,_0x12b7b3)=>(_0x1fa518,_0x4964ad)=>_0x12b7b3(_0x1fa518,_0x4964ad,_0x4aa977);const Ys=0x12c,Ks=0x64;let He=class extends a[_0x5b831f(0x494)]{constructor(_0x3fde0a,_0x1c930b,_0x1bf5a8,_0x2228b4,_0x3b98ac,_0x569c77,_0x458a21,_0x3d5b40,_0x3bb498){const _0x5ccdd0=_0x5b831f;super(),d(this,'_online',!0x1),d(this,'_init',!0x1),d(this,_0x5ccdd0(0x292),new v['BehaviorSubject'](new Map())),d(this,'cursorInfo$',this[_0x5ccdd0(0x292)][_0x5ccdd0(0x2bc)]()),d(this,_0x5ccdd0(0x2d7),new v[(_0x5ccdd0(0x279))]([])),d(this,'roomMembers$',this[_0x5ccdd0(0x2d7)][_0x5ccdd0(0x1a5)](v[_0x5ccdd0(0x2e9)](Ys))),d(this,_0x5ccdd0(0x3e9),a[_0x5ccdd0(0x305)](_0x33a65e=>{const _0x4067be=_0x5ccdd0,_0x545acd={'eventID':_[_0x4067be(0x270)][_0x4067be(0x398)],'data':{'unitID':this[_0x4067be(0x311)],'memberID':this[_0x4067be(0x156)][_0x4067be(0x2a1)](),'selection':Tt(_0x33a65e)}};this[_0x4067be(0x156)]['send'](_0x545acd,this[_0x4067be(0x311)]);},Ks)),(this[_0x5ccdd0(0x311)]=_0x3fde0a,this[_0x5ccdd0(0x156)]=_0x1c930b,this[_0x5ccdd0(0x1f9)]=_0x1bf5a8,this[_0x5ccdd0(0xb0)]=_0x2228b4,this[_0x5ccdd0(0x33e)]=_0x3b98ac,this[_0x5ccdd0(0x1b8)]=_0x569c77,this[_0x5ccdd0(0x44d)]=_0x458a21,this[_0x5ccdd0(0x249)]=_0x3d5b40,this[_0x5ccdd0(0x40a)]=_0x3bb498);}get['cursorInfo'](){const _0x39b853=_0x5b831f;return this['_cursorInfo$'][_0x39b853(0x168)]();}get[_0x5b831f(0x1f4)](){const _0x594c10=_0x5b831f;return this[_0x594c10(0x2d7)][_0x594c10(0x168)]();}[_0x5b831f(0x257)](){const _0x4cb317=_0x5b831f;super[_0x4cb317(0x257)](),this[_0x4cb317(0x292)][_0x4cb317(0x2b2)](new Map()),this['_cursorInfo$'][_0x4cb317(0x1bd)](),this[_0x4cb317(0x2d7)][_0x4cb317(0x2b2)]([]),this[_0x4cb317(0x2d7)]['complete']();}[_0x5b831f(0x21a)](){const _0x4f4baa=_0x5b831f;this[_0x4f4baa(0x3ba)]||(this[_0x4f4baa(0x3ba)]=!0x0,this[_0x4f4baa(0x156)]['sessionStatus$']['pipe'](v[_0x4f4baa(0xec)](this[_0x4f4baa(0x25c)]))[_0x4f4baa(0x3fc)](_0x39c6fe=>{const _0x440160=_0x4f4baa;_0x39c6fe===$[_0x440160(0x314)]?this[_0x440160(0x352)]():this['_toggleOffline']();}),this[_0x4f4baa(0x156)][_0x4f4baa(0x27c)][_0x4f4baa(0x1a5)](v[_0x4f4baa(0xec)](this[_0x4f4baa(0x25c)]))[_0x4f4baa(0x3fc)](_0x20f28b=>{const _0x3b5698=_0x4f4baa,_0x3d2c08=_0x20f28b['eventID'];_0x3d2c08===_['CollaborationEvent'][_0x3b5698(0x398)]&&this[_0x3b5698(0x93)](_0x20f28b),_0x3d2c08===_[_0x3b5698(0x270)]['USERS_LEAVE']&&this[_0x3b5698(0x106)](_0x20f28b);}),this[_0x4f4baa(0x37a)](this[_0x4f4baa(0x40a)][_0x4f4baa(0x496)](_0x2f8ffe=>{const _0x2e1c7c=_0x4f4baa,_0xa5ba6b=_0x2f8ffe[_0x2e1c7c(0x38a)];_0xa5ba6b!=null&&this[_0x2e1c7c(0x35f)]&&_0x2f8ffe['id']===V['SetTextSelectionsOperation']['id']&&_0xa5ba6b['unitId']===this[_0x2e1c7c(0x311)]&&_0xa5ba6b[_0x2e1c7c(0x8f)]===!0x1&&this[_0x2e1c7c(0x3e9)](_0xa5ba6b[_0x2e1c7c(0x3d3)]);})),this[_0x4f4baa(0x1b8)]['collabCursorState$'][_0x4f4baa(0x1a5)](v[_0x4f4baa(0xec)](this[_0x4f4baa(0x25c)]))['subscribe'](_0x589c20=>{const _0xa012d7=_0x4f4baa;if((_0x589c20==null?void 0x0:_0x589c20['unitID'])!==this[_0xa012d7(0x311)])return;const _0x50f2a7={'eventID':_[_0xa012d7(0x270)][_0xa012d7(0x398)],'data':_0x589c20};this[_0xa012d7(0x93)](_0x50f2a7);}),this[_0x4f4baa(0x37a)](this['_commandService'][_0x4f4baa(0x496)](_0x33991f=>{const _0x248672=_0x4f4baa;if(_0x33991f[_0x248672(0x38a)]==null)return;const _0x30f5d8=_0x33991f[_0x248672(0x38a)];if(_0x33991f['id']!==V['RichTextEditingMutation']['id']||_0x30f5d8[_0x248672(0x338)]!==this[_0x248672(0x311)])return;const _0xa6257a={'id':_0x248672(0x3fb),'params':_0x30f5d8},_0x208ba7=this['cursorInfo'];for(const [_0x439837,_0x166cab]of _0x208ba7){const _0x28424b={'id':_0x248672(0x3fb),'params':{'unitId':this[_0x248672(0x311)],'actions':null,'textRanges':_0x166cab[_0x248672(0x3d3)]}},_0x1aae87=this['_transformService']['transformMutation'](_0xa6257a,_0x28424b,!0x1);if(_['isTransformMutationFailure'](_0x1aae87))throw _0x1aae87['error'];_0x208ba7[_0x248672(0x46d)](_0x439837,{..._0x166cab,'ranges':_0x1aae87[_0x248672(0x475)][_0x248672(0x38a)][_0x248672(0x1f3)]});}queueMicrotask(()=>{const _0x16c66d=_0x248672;this[_0x16c66d(0x292)][_0x16c66d(0x2b2)](_0x208ba7);});})));}[_0x5b831f(0x93)](_0x52aeaa){const _0x28e090=_0x5b831f;var _0x4385e4,_0x2ad7f9;const {memberID:_0x57388e,selection:_0x1e4b1a}=_0x52aeaa[_0x28e090(0xcd)],_0x2a7f71=Us(_0x1e4b1a),_0x24ed19=(_0x2ad7f9=(_0x4385e4=this['_memberService']['getMember'](this[_0x28e090(0x311)],_0x57388e))==null?void 0x0:_0x4385e4[_0x28e090(0x1a6)])!=null?_0x2ad7f9:_0x28e090(0xc2),_0x4ae15d={'color':this[_0x28e090(0xb0)]['assignAColorForMemberID'](_0x57388e),'name':_0x24ed19,'ranges':_0x2a7f71},_0x413d0f=this[_0x28e090(0x411)];_0x413d0f[_0x28e090(0x46d)](_0x57388e,_0x4ae15d),this['_cursorInfo$'][_0x28e090(0x2b2)](_0x413d0f);}[_0x5b831f(0x106)](_0x15240a){const _0x138988=_0x5b831f,{memberID:_0x68bc75}=_0x15240a[_0x138988(0xcd)],_0x57f815=this[_0x138988(0x411)];_0x57f815[_0x138988(0x344)](_0x68bc75),this[_0x138988(0x292)][_0x138988(0x2b2)](_0x57f815);}[_0x5b831f(0x352)](){const _0x21202a=_0x5b831f;var _0x3e2dd1;if(this[_0x21202a(0x35f)]=!0x0,((_0x3e2dd1=this[_0x21202a(0x249)][_0x21202a(0x1d4)]())==null?void 0x0:_0x3e2dd1[_0x21202a(0xa3)]())!==this['unitID'])return;const _0x27591d=this[_0x21202a(0x1f9)]['get'](V[_0x21202a(0x229)])[_0x21202a(0x20f)]();Array[_0x21202a(0x21b)](_0x27591d)&&_0x27591d[_0x21202a(0x21d)]>0x0&&this[_0x21202a(0x3e9)](_0x27591d);}[_0x5b831f(0x11c)](){const _0x32d6a2=_0x5b831f;this[_0x32d6a2(0x35f)]=!0x1;}};He=Gs([K(0x2,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),K(0x3,a[_0x5b831f(0x1d9)](Xe)),K(0x4,a[_0x5b831f(0x1d9)](q)),K(0x5,a[_0x5b831f(0x1d9)](Ye)),K(0x6,_[_0x5b831f(0x44a)]),K(0x7,a[_0x5b831f(0x3c0)]),K(0x8,a[_0x5b831f(0x317)])],He);var Xs=Object['defineProperty'],qs=Object[_0x5b831f(0x31a)],zs=(_0xa61318,_0x3d3ed8,_0x2c7e21,_0x2f8505)=>{const _0xd12331=_0x5b831f;for(var _0x58a2f4=_0x2f8505>0x1?void 0x0:_0x2f8505?qs(_0x3d3ed8,_0x2c7e21):_0x3d3ed8,_0x2bb44f=_0xa61318[_0xd12331(0x21d)]-0x1,_0xe328f2;_0x2bb44f>=0x0;_0x2bb44f--)(_0xe328f2=_0xa61318[_0x2bb44f])&&(_0x58a2f4=(_0x2f8505?_0xe328f2(_0x3d3ed8,_0x2c7e21,_0x58a2f4):_0xe328f2(_0x58a2f4))||_0x58a2f4);return _0x2f8505&&_0x58a2f4&&Xs(_0x3d3ed8,_0x2c7e21,_0x58a2f4),_0x58a2f4;},Q=(_0x1a5afb,_0x4dc225)=>(_0x83763c,_0x524d04)=>_0x4dc225(_0x83763c,_0x524d04,_0x1a5afb);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x58ce6e=[],_0x2b2c70=!0x1;return _0x26f585=>{_0x58ce6e['push'](_0x26f585),_0x2b2c70||(_0x2b2c70=!0x0,setTimeout(()=>{const _0x5ebcf4=_0x49eb;_0x58ce6e[_0x5ebcf4(0x1b5)](_0x17a548=>_0x17a548()),_0x58ce6e=[],_0x2b2c70=!0x1;}));};};let xe=class extends a[_0x5b831f(0x494)]{constructor(_0x32739c,_0x4a2056,_0x2e2759,_0x532900,_0x4688de,_0x22f8d3,_0x262aa4,_0x11c121){const _0x3c0257=_0x5b831f;super(),d(this,_0x3c0257(0x35f),!0x1),d(this,_0x3c0257(0x3ba),!0x1),d(this,'_cursorInfo$',new v[(_0x3c0257(0x279))](new Map())),d(this,_0x3c0257(0x483),this[_0x3c0257(0x292)][_0x3c0257(0x2bc)]()),d(this,_0x3c0257(0x2d7),new v[(_0x3c0257(0x279))]([])),d(this,_0x3c0257(0x78),this[_0x3c0257(0x2d7)][_0x3c0257(0x1a5)](v[_0x3c0257(0x2e9)](Js))),d(this,_0x3c0257(0x3e9),a['debounce']((_0x3207b2,_0x1a68a2)=>{const _0x505b44=_0x3c0257,_0x54bad7={'eventID':_['CollaborationEvent'][_0x505b44(0x398)],'data':{'unitID':this['unitID'],'memberID':this[_0x505b44(0x156)][_0x505b44(0x2a1)](),'selection':Je[_0x505b44(0x1c1)](_0x3207b2,_0x1a68a2[_0x505b44(0x16d)])}};this[_0x505b44(0x156)][_0x505b44(0xd4)](_0x54bad7,this[_0x505b44(0x311)]);},Zs)),(this['unitID']=_0x32739c,this['_session']=_0x4a2056,this[_0x3c0257(0x1f9)]=_0x2e2759,this['_colorAssignService']=_0x532900,this[_0x3c0257(0x33e)]=_0x4688de,this[_0x3c0257(0x249)]=_0x22f8d3,this['_commandService']=_0x262aa4,this[_0x3c0257(0xdc)]=_0x11c121);}get[_0x5b831f(0x411)](){const _0x4c3a6e=_0x5b831f;return this['_cursorInfo$'][_0x4c3a6e(0x168)]();}get[_0x5b831f(0x1f4)](){const _0x5dcd85=_0x5b831f;return this[_0x5dcd85(0x2d7)][_0x5dcd85(0x168)]();}[_0x5b831f(0x257)](){const _0x4e103f=_0x5b831f;super['dispose'](),this['_cursorInfo$'][_0x4e103f(0x2b2)](new Map()),this[_0x4e103f(0x292)]['complete'](),this[_0x4e103f(0x2d7)]['next']([]),this['_roomMembers$'][_0x4e103f(0x1bd)]();}[_0x5b831f(0x21a)](){const _0x270aad=_0x5b831f;this[_0x270aad(0x3ba)]||(this[_0x270aad(0x3ba)]=!0x0,this[_0x270aad(0x156)][_0x270aad(0x406)][_0x270aad(0x1a5)](v[_0x270aad(0xec)](this[_0x270aad(0x25c)]))[_0x270aad(0x3fc)](_0x12ed7c=>{const _0x3d9a1=_0x270aad;_0x12ed7c===$[_0x3d9a1(0x314)]?this[_0x3d9a1(0x352)]():this['_toggleOffline']();}),this[_0x270aad(0x156)][_0x270aad(0x27c)][_0x270aad(0x1a5)](v[_0x270aad(0xec)](this[_0x270aad(0x25c)]))[_0x270aad(0x3fc)](_0x16d6ae=>{const _0x4f6d08=_0x270aad,_0x5477de=_0x16d6ae[_0x4f6d08(0x182)];_0x5477de===_['CollaborationEvent'][_0x4f6d08(0x398)]&&this[_0x4f6d08(0x93)](_0x16d6ae),_0x5477de===_[_0x4f6d08(0x270)][_0x4f6d08(0xc6)]&&this[_0x4f6d08(0x106)](_0x16d6ae);}),this[_0x270aad(0x246)](),this[_0x270aad(0x37a)](this['_commandService']['onCommandExecuted'](_0x2a72a7=>{const _0x28ade8=_0x270aad;if(this['_online']&&_0x2a72a7['id']===C['SetSelectionsOperation']['id']&&_0x2a72a7[_0x28ade8(0x38a)][_0x28ade8(0x338)]===this['unitID']){const _0x128dad=_0x2a72a7[_0x28ade8(0x38a)];this[_0x28ade8(0x3e9)](_0x128dad[_0x28ade8(0x241)],_0x128dad[_0x28ade8(0x2d3)][0x0]);}})));}['_onCursorUpdate'](_0x18f0c9){const _0x4130a9=_0x5b831f;var _0x25248e,_0x5bd0fb;const {memberID:_0xd54ff2,selection:_0x268321}=_0x18f0c9[_0x4130a9(0xcd)],{sheetName:_0x3ab4a9,range:_0x282622}=Je[_0x4130a9(0x266)](_0x268321),_0x3d3bf1={'name':(_0x5bd0fb=(_0x25248e=this['_memberService'][_0x4130a9(0x33b)](this[_0x4130a9(0x311)],_0xd54ff2))==null?void 0x0:_0x25248e[_0x4130a9(0x1a6)])!=null?_0x5bd0fb:_0x4130a9(0xc2),'range':this['_getMergeRange'](_0x3ab4a9,_0x282622),'sheetID':_0x3ab4a9,'color':this['_colorAssignService'][_0x4130a9(0xe7)](_0xd54ff2),'selection':_0x268321},_0xd2226a=this['cursorInfo'];_0xd2226a['set'](_0xd54ff2,_0x3d3bf1),this[_0x4130a9(0x292)][_0x4130a9(0x2b2)](_0xd2226a);}[_0x5b831f(0x106)](_0x2b7690){const _0x50591e=_0x5b831f,{memberID:_0x1d20f9}=_0x2b7690[_0x50591e(0xcd)],_0x53bf32=this[_0x50591e(0x411)];_0x53bf32['delete'](_0x1d20f9),this[_0x50591e(0x292)][_0x50591e(0x2b2)](_0x53bf32);}[_0x5b831f(0x1d2)](_0x587674,_0x45c480){const _0x37a4b8=_0x5b831f;var _0x4c1321,_0x4f8870;const _0x31948c=(_0x4f8870=(_0x4c1321=this[_0x37a4b8(0x249)][_0x37a4b8(0x1d6)](this['unitID']))==null?void 0x0:_0x4c1321[_0x37a4b8(0x2a4)](_0x587674))==null?void 0x0:_0x4f8870[_0x37a4b8(0x18d)]();return(_0x31948c==null?void 0x0:_0x31948c[_0x37a4b8(0x126)](_0x1d3da1=>a[_0x37a4b8(0x1de)][_0x37a4b8(0xab)](_0x1d3da1,_0x45c480)))||_0x45c480;}[_0x5b831f(0x246)](){const _0x3c5eed=_0x5b831f,_0x5c1033=new a['DisposableCollection'](),_0xd88e1b=Qs(),_0x14f1de=()=>{const _0x522555=_0x49eb;_0x5c1033[_0x522555(0x257)]();const _0x2002dc=(_0x30dd0d,_0x2008f8,_0x1bc3d4,_0x531ff5)=>{const _0x2dd565=_0x522555;let _0x4daac0=[];switch(_0x30dd0d['id']){case C['EffectRefRangId'][_0x2dd565(0x24b)]:{_0x4daac0=C[_0x2dd565(0x157)](_0x30dd0d,_0x531ff5);break;}case C[_0x2dd565(0x1c4)][_0x2dd565(0x330)]:{_0x4daac0=C[_0x2dd565(0x96)](_0x30dd0d,_0x531ff5);break;}case C[_0x2dd565(0x1c4)][_0x2dd565(0x1fd)]:{_0x4daac0=C[_0x2dd565(0x124)](_0x30dd0d,_0x531ff5);break;}case C['EffectRefRangId'][_0x2dd565(0x1fa)]:{_0x4daac0=C['handleInsertRangeMoveDown'](_0x30dd0d,_0x531ff5);break;}case C['EffectRefRangId'][_0x2dd565(0xeb)]:{_0x4daac0=C[_0x2dd565(0x11e)](_0x30dd0d,_0x531ff5);break;}case C[_0x2dd565(0x1c4)]['InsertRowCommandId']:{_0x4daac0=C[_0x2dd565(0x195)](_0x30dd0d,_0x531ff5);break;}case C[_0x2dd565(0x1c4)][_0x2dd565(0x243)]:{_0x4daac0=C[_0x2dd565(0x1f1)](_0x30dd0d,_0x531ff5);break;}case C[_0x2dd565(0x1c4)][_0x2dd565(0x3ff)]:{_0x4daac0=C[_0x2dd565(0x1d3)](_0x30dd0d,_0x531ff5);break;}case C[_0x2dd565(0x1c4)][_0x2dd565(0x27a)]:{_0x4daac0=C[_0x2dd565(0x152)](_0x30dd0d,_0x531ff5);break;}}const _0x4ffb5c=C[_0x2dd565(0x2cf)](_0x4daac0,_0x531ff5),_0x62b8e6=this['cursorInfo'][_0x2dd565(0x28f)](_0x2008f8);if(_0x62b8e6&&_0x4ffb5c){const _0xb99712={..._0x62b8e6,'range':_0x4ffb5c};this[_0x2dd565(0x411)]['set'](_0x2008f8,_0xb99712),_0xd88e1b(()=>{const _0x4577bb=_0x2dd565,_0x5f416c=this[_0x4577bb(0xdc)]['registerRefRange'](_0x4ffb5c,_0x502b8c=>(_0x5f416c[_0x4577bb(0x257)](),_0x2002dc(_0x502b8c,_0x2008f8,_0x1bc3d4,_0x4ffb5c)));_0x5c1033[_0x4577bb(0x219)](_0x5f416c);});}return{'redos':[],'undos':[]};};this[_0x522555(0x411)][_0x522555(0x1b5)]((_0x52a45c,_0xae3e0d)=>{const _0x2bece0=_0x522555,{range:_0x2494d1,sheetID:_0x2576fe}=_0x52a45c,_0x307b4d=this['_refRangeService'][_0x2bece0(0x26a)](_0x2494d1,_0x861aa7=>(_0x307b4d[_0x2bece0(0x257)](),_0x2002dc(_0x861aa7,_0xae3e0d,_0x2576fe,_0x2494d1)));_0x5c1033[_0x2bece0(0x219)](_0x307b4d);});};this[_0x3c5eed(0x37a)](a[_0x3c5eed(0x3cb)](this[_0x3c5eed(0x292)][_0x3c5eed(0x3fc)](()=>{_0x14f1de();})));}[_0x5b831f(0x352)](){const _0x1376eb=_0x5b831f;var _0x1d3157,_0x3ccfcb;if(this[_0x1376eb(0x35f)]=!0x0,((_0x1d3157=this[_0x1376eb(0x249)][_0x1376eb(0x1d4)]())==null?void 0x0:_0x1d3157['getUnitId']())!==this['unitID'])return;const _0x444102=(_0x3ccfcb=this[_0x1376eb(0x1f9)]['get'](C[_0x1376eb(0x137)])['getCurrentSelections']())==null?void 0x0:_0x3ccfcb[0x0],_0x4daed0=this['_univerInstanceService'][_0x1376eb(0xf3)](a[_0x1376eb(0x12d)]['UNIVER_SHEET'])[_0x1376eb(0x125)]();_0x444102&&_0x4daed0&&this[_0x1376eb(0x3e9)](_0x4daed0['getSheetId'](),_0x444102);}[_0x5b831f(0x11c)](){const _0x50a9af=_0x5b831f;this[_0x50a9af(0x35f)]=!0x1;}};xe=zs([Q(0x2,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),Q(0x3,a['Inject'](Xe)),Q(0x4,a[_0x5b831f(0x1d9)](q)),Q(0x5,a[_0x5b831f(0x3c0)]),Q(0x6,a[_0x5b831f(0x317)]),Q(0x7,a[_0x5b831f(0x1d9)](C['RefRangeService']))],xe);var ei=Object[_0x5b831f(0x1e0)],ti=Object['getOwnPropertyDescriptor'],si=(_0x12be62,_0x27b5ab,_0x3ae0a8,_0x1362ba)=>{const _0x280a04=_0x5b831f;for(var _0x140c48=_0x1362ba>0x1?void 0x0:_0x1362ba?ti(_0x27b5ab,_0x3ae0a8):_0x27b5ab,_0x330c7e=_0x12be62[_0x280a04(0x21d)]-0x1,_0x54a5a7;_0x330c7e>=0x0;_0x330c7e--)(_0x54a5a7=_0x12be62[_0x330c7e])&&(_0x140c48=(_0x1362ba?_0x54a5a7(_0x27b5ab,_0x3ae0a8,_0x140c48):_0x54a5a7(_0x140c48))||_0x140c48);return _0x1362ba&&_0x140c48&&ei(_0x27b5ab,_0x3ae0a8,_0x140c48),_0x140c48;},we=(_0x377a5b,_0x427202)=>(_0x2dff7a,_0x3d2385)=>_0x427202(_0x2dff7a,_0x3d2385,_0x377a5b);let ie=class extends a[_0x5b831f(0x494)]{constructor(_0x3b260f,_0x5d1222,_0x231237){const _0x145b1c=_0x5b831f;super(),d(this,'_entities',new Map()),d(this,_0x145b1c(0x3af),new v[(_0x145b1c(0xf0))]()),(this[_0x145b1c(0x249)]=_0x3b260f,this[_0x145b1c(0x1f9)]=_0x5d1222,this['_collabSessionService']=_0x231237,this['_init']());}['dispose'](){const _0x499e5c=_0x5b831f;super['dispose'](),this['_entityInit$']['complete'](),this[_0x499e5c(0x94)][_0x499e5c(0x1b5)](_0x186c27=>_0x186c27[_0x499e5c(0x257)]());}['getCollabCursors$'](_0x5774d8){const _0x13df6f=_0x5b831f;return this[_0x13df6f(0x94)][_0x13df6f(0x336)](_0x5774d8)?this[_0x13df6f(0x94)][_0x13df6f(0x28f)](_0x5774d8)[_0x13df6f(0x483)]:this[_0x13df6f(0x3af)][_0x13df6f(0x1a5)](v[_0x13df6f(0x321)](_0x265569=>_0x265569['unitID']===_0x5774d8),v[_0x13df6f(0x48b)](_0x11e731=>_0x11e731['cursorInfo$']));}[_0x5b831f(0x3ba)](){const _0x4b0d7d=_0x5b831f;this[_0x4b0d7d(0x249)][_0x4b0d7d(0x2c3)](a[_0x4b0d7d(0x12d)][_0x4b0d7d(0x102)])[_0x4b0d7d(0x1a5)](v[_0x4b0d7d(0xec)](this[_0x4b0d7d(0x25c)]))['subscribe'](async _0x56cb47=>{const _0x2b75ca=_0x4b0d7d,_0x53cdf9=_0x56cb47[_0x2b75ca(0xa3)](),_0x386334=await this['_startSheetCollabCursor'](_0x53cdf9);this[_0x2b75ca(0x3af)][_0x2b75ca(0x2b2)](_0x386334),this[_0x2b75ca(0x94)]['set'](_0x53cdf9,_0x386334);}),this[_0x4b0d7d(0x249)]['getTypeOfUnitAdded$'](a[_0x4b0d7d(0x12d)][_0x4b0d7d(0x192)])[_0x4b0d7d(0x1a5)](v[_0x4b0d7d(0xec)](this['dispose$']))[_0x4b0d7d(0x1a5)](v['filter'](_0x54bdb3=>!_0x54bdb3[_0x4b0d7d(0xa3)]()[_0x4b0d7d(0x3a6)]('__')))['subscribe'](async _0x54002a=>{const _0x5aaf5d=_0x4b0d7d,_0x24f4f1=_0x54002a[_0x5aaf5d(0xa3)](),_0x1b6123=await this[_0x5aaf5d(0x2ff)](_0x24f4f1);this[_0x5aaf5d(0x3af)][_0x5aaf5d(0x2b2)](_0x1b6123),this[_0x5aaf5d(0x94)][_0x5aaf5d(0x46d)](_0x24f4f1,_0x1b6123);}),v[_0x4b0d7d(0x103)](this['_univerInstanceService'][_0x4b0d7d(0x3df)](a[_0x4b0d7d(0x12d)][_0x4b0d7d(0x192)]),this[_0x4b0d7d(0x249)]['getTypeOfUnitDisposed$'](a[_0x4b0d7d(0x12d)][_0x4b0d7d(0x102)]))[_0x4b0d7d(0x1a5)](v['takeUntil'](this[_0x4b0d7d(0x25c)]))['subscribe'](_0x5bf1be=>{const _0xe1dabf=_0x4b0d7d,_0x35d1fa=_0x5bf1be[_0xe1dabf(0xa3)](),_0x3703b7=this[_0xe1dabf(0x94)][_0xe1dabf(0x28f)](_0x35d1fa);_0x3703b7&&(_0x3703b7[_0xe1dabf(0x257)](),this[_0xe1dabf(0x94)][_0xe1dabf(0x344)](_0x35d1fa));});}async[_0x5b831f(0x232)](_0x5da36b){const _0x59880e=_0x5b831f,_0x2f8e84=await this[_0x59880e(0x9f)][_0x59880e(0x82)](_0x5da36b),_0x64bd29=this[_0x59880e(0x1f9)][_0x59880e(0x364)](xe,_0x5da36b,_0x2f8e84);return _0x64bd29[_0x59880e(0x21a)](),_0x64bd29;}async[_0x5b831f(0x2ff)](_0x2b573b){const _0xd5b068=_0x5b831f,_0x1eb384=await this[_0xd5b068(0x9f)][_0xd5b068(0x82)](_0x2b573b),_0x1e2ef1=this[_0xd5b068(0x1f9)][_0xd5b068(0x364)](He,_0x2b573b,_0x1eb384);return _0x1e2ef1[_0xd5b068(0x21a)](),_0x1e2ef1;}};ie=si([we(0x0,a[_0x5b831f(0x3c0)]),we(0x1,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),we(0x2,a[_0x5b831f(0x1d9)](exports[_0x5b831f(0x47e)]))],ie);const ue=0x14,rt=0xc8,Me=0x4,ii=0x5;function ni(_0x2b44cb,_0x59ead9){const _0x3353ec=_0x5b831f;let {radius:_0x1732a7,width:_0x5a842f,height:_0xbb418c}=_0x59ead9;_0x1732a7=_0x1732a7!=null?_0x1732a7:0x0,_0x5a842f=_0x5a842f!=null?_0x5a842f:0x1e,_0xbb418c=_0xbb418c!=null?_0xbb418c:0x1e;let _0x3e66d0=0x0,_0x3ee467=0x0,_0x33890e=0x0;_0x3e66d0=_0x3ee467=_0x33890e=Math[_0x3353ec(0x45f)](_0x1732a7,_0x5a842f/0x2,_0xbb418c/0x2),_0x2b44cb['beginPath'](),_0x2b44cb[_0x3353ec(0x9a)](_0x3e66d0,0x0),_0x2b44cb['lineTo'](_0x5a842f-_0x3ee467,0x0),_0x2b44cb[_0x3353ec(0x2f6)](_0x5a842f-_0x3ee467,_0x3ee467,_0x3ee467,Math['PI']*0x3/0x2,0x0,!0x1),_0x2b44cb[_0x3353ec(0x45a)](_0x5a842f,_0xbb418c-_0x33890e),_0x2b44cb[_0x3353ec(0x2f6)](_0x5a842f-_0x33890e,_0xbb418c-_0x33890e,_0x33890e,0x0,Math['PI']/0x2,!0x1),_0x2b44cb[_0x3353ec(0x45a)](0x0,_0xbb418c),_0x2b44cb['lineTo'](0x0,_0x3e66d0),_0x2b44cb[_0x3353ec(0x2f6)](_0x3e66d0,_0x3e66d0,_0x3e66d0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2b44cb[_0x3353ec(0x25f)](),_0x59ead9['fill']&&(_0x2b44cb[_0x3353ec(0x1b7)](),_0x2b44cb[_0x3353ec(0x3f1)]=_0x59ead9['fill'],_0x59ead9[_0x3353ec(0x81)]===_0x3353ec(0x3ac)?_0x2b44cb[_0x3353ec(0x2b4)](_0x3353ec(0x3ac)):_0x2b44cb['fill'](),_0x2b44cb[_0x3353ec(0x11b)]());}class Re extends R[_0x5b831f(0xf2)]{constructor(_0x59f7eb,_0x128734){const _0x2bc01d=_0x5b831f;super(_0x59f7eb,_0x128734),d(this,_0x2bc01d(0x3b6)),d(this,_0x2bc01d(0x42e)),(this['color']=_0x128734==null?void 0x0:_0x128734[_0x2bc01d(0x3b6)],this[_0x2bc01d(0x42e)]=_0x128734==null?void 0x0:_0x128734[_0x2bc01d(0x42e)]);}static[_0x5b831f(0x3d4)](_0x3d5227,_0xa8c3f6){const _0x51dd12=_0x5b831f,{text:_0x1a61ae,color:_0x40f4bb}=_0xa8c3f6;_0x3d5227['save'](),_0x3d5227[_0x51dd12(0x373)]=_0x51dd12(0x161);const _0x1f2975=_0x3d5227[_0x51dd12(0xfe)](_0x1a61ae)[_0x51dd12(0x1e1)],_0x14a643=Math[_0x51dd12(0x45f)](_0x1f2975+0x2*Me,rt);ni(_0x3d5227,{'height':ue,'radius':0x4,'width':_0x14a643,'fill':_0x40f4bb,'evented':!0x1}),_0x3d5227[_0x51dd12(0x3f1)]=_0x51dd12(0x1dd);const _0x5e7485=Me,_0x477614=ue-ii,_0x5bcd97=rt-0x2*Me;if(_0x1f2975>_0x5bcd97){let _0x4c49eb='',_0x5bf468=0x0;for(const _0x559ca2 of _0x1a61ae){const _0x44dbfb=_0x3d5227['measureText'](_0x559ca2)[_0x51dd12(0x1e1)];if(_0x5bf468+_0x44dbfb<=_0x5bcd97-_0x3d5227[_0x51dd12(0xfe)](_0x51dd12(0x14c))[_0x51dd12(0x1e1)])_0x4c49eb+=_0x559ca2,_0x5bf468+=_0x44dbfb;else{_0x4c49eb+=_0x51dd12(0x14c);break;}}_0x3d5227[_0x51dd12(0x1ad)](_0x4c49eb,_0x5e7485,_0x477614);}else _0x3d5227[_0x51dd12(0x1ad)](_0x1a61ae,_0x5e7485,_0x477614);_0x3d5227[_0x51dd12(0x11b)]();}[_0x5b831f(0x14d)](_0x1a3a69){const _0x34702b=_0x5b831f;Re[_0x34702b(0x3d4)](_0x1a3a69,this);}}const Ne=_0x5b831f(0x362),ri=_0x5b831f(0x421),oi=_0x5b831f(0x1b3),ce=0x6,ai=1.5,Ae=0x4,ci=1.5,li=_0x5b831f(0x3a1);class ot{constructor(_0x4e4f80,_0x38d944,_0x4c1585,_0x1f7b57){const _0x12c699=_0x5b831f;d(this,_0x12c699(0x13d),[]),d(this,'_anchor',null),d(this,_0x12c699(0x185),null),d(this,_0x12c699(0x351),null),d(this,_0x12c699(0x2e4),null),d(this,_0x12c699(0x3dc),null),(this[_0x12c699(0x33c)]=_0x4e4f80,this[_0x12c699(0x1f8)]=_0x38d944,this['_docSkeleton']=_0x4c1585,this[_0x12c699(0xa2)]=_0x1f7b57,this[_0x12c699(0x245)]());}set['_hover'](_0x4a3682){const _0x2b8669=_0x5b831f;_0x4a3682?(this[_0x2b8669(0x351)]&&this[_0x2b8669(0x351)]['hide'](),this[_0x2b8669(0x185)]&&this[_0x2b8669(0x185)][_0x2b8669(0x2b0)]()):(this[_0x2b8669(0x351)]&&this[_0x2b8669(0x351)][_0x2b8669(0x2b0)](),this[_0x2b8669(0x185)]&&this[_0x2b8669(0x185)][_0x2b8669(0x120)]());}[_0x5b831f(0x257)](){const _0xfdfe06=_0x5b831f;for(const _0x4d7578 of this[_0xfdfe06(0x13d)])_0x4d7578[_0xfdfe06(0x257)]();this['_textBubble']&&this[_0xfdfe06(0x185)][_0xfdfe06(0x257)](),this[_0xfdfe06(0x351)]&&this[_0xfdfe06(0x351)]['dispose'](),this[_0xfdfe06(0x2a6)]&&this[_0xfdfe06(0x2a6)][_0xfdfe06(0x257)](),this[_0xfdfe06(0x3dc)]&&this[_0xfdfe06(0x3dc)]();}['_render'](){const _0x2bea1c=_0x5b831f;var _0x209e48;const {_docSkeleton:_0x54caf2,_document:_0x5bf0e2}=this,{color:_0x42b654,name:_0x5f5b12,ranges:_0xb9d6c2}=this[_0x2bea1c(0x33c)],_0x180942=_0x5bf0e2[_0x2bea1c(0x359)](),{docsLeft:_0x4f99be,docsTop:_0x100324}=_0x180942,_0x3ab3a1=new w['NodePositionConvertToCursor'](_0x180942,_0x54caf2);for(const {startOffset:_0x32aada,endOffset:_0x398574,collapsed:_0x314ede,isActive:_0x270eaf}of _0xb9d6c2){const _0xd1fd1c=_0x54caf2[_0x2bea1c(0x253)](_0x32aada),_0x5c5957=_0x54caf2['findNodePositionByCharIndex'](_0x398574);if(_0x270eaf){const {contentBoxPointGroup:_0xf224cb}=_0x3ab3a1['getRangePointData'](_0x5c5957,_0x5c5957);if(_0xf224cb['length']===0x0)continue;this[_0x2bea1c(0x255)](_0x42b654,_0xf224cb,_0x4f99be,_0x100324,_0x5f5b12),this[_0x2bea1c(0x3dc)]=this[_0x2bea1c(0x2d2)]();}if(!_0x314ede&&_0xd1fd1c&&_0x5c5957){if(w[_0x2bea1c(0x30d)](_0xd1fd1c,_0x5c5957)){const _0x3c217d=new w[(_0x2bea1c(0x3d9))](_0x180942,_0x54caf2),{pointGroup:_0x527041}=(_0x209e48=_0x3c217d[_0x2bea1c(0x2cd)](_0xd1fd1c,_0x5c5957))!=null?_0x209e48:{};if(_0x527041==null||_0x527041['length']===0x0)continue;this[_0x2bea1c(0x2f5)](_0x42b654,_0x527041,_0x4f99be,_0x100324);}else{const {contentBoxPointGroup:_0x4187e8}=_0x3ab3a1[_0x2bea1c(0x2cd)](_0xd1fd1c,_0x5c5957);if(_0x4187e8[_0x2bea1c(0x21d)]===0x0)continue;this[_0x2bea1c(0x278)](_0x42b654,_0x4187e8,_0x4f99be,_0x100324);}}}}[_0x5b831f(0x255)](_0x2dbca8,_0x49067f,_0xee3eb6,_0xcf41af,_0x494540){const _0x262df6=_0x5b831f,_0x28ab12=this[_0x262df6(0x368)](_0x49067f),{left:_0x2a0662,top:_0x24cfb0,height:_0x42d219}=_0x28ab12,_0x45a20d=this[_0x262df6(0x2f0)](),_0xe4ef70=ci/_0x45a20d,_0x482548=new R[(_0x262df6(0x423))](Ne+a[_0x262df6(0x17b)][_0x262df6(0x247)](ce),{'left':_0x2a0662+_0xee3eb6-_0xe4ef70,'top':_0x24cfb0+_0xcf41af,'height':_0x42d219,'width':ai,'fill':_0x2dbca8||R[_0x262df6(0x3cf)](a['COLORS'][_0x262df6(0x1cb)],0x0),'strokeWidth':_0xe4ef70,'stroke':li,'evented':!0x0});this[_0x262df6(0x2a6)]=_0x482548,this['_scene'][_0x262df6(0x461)](_0x482548,w[_0x262df6(0xd8)]);const _0x4fbb75=new R[(_0x262df6(0x423))](Ne+a[_0x262df6(0x17b)][_0x262df6(0x247)](ce),{'left':_0x2a0662+_0xee3eb6-_0xe4ef70,'top':_0x24cfb0+_0xcf41af-Ae/0x2,'height':Ae,'width':Ae,'fill':_0x2dbca8||R[_0x262df6(0x3cf)](a['COLORS'][_0x262df6(0x1cb)],0x0),'strokeWidth':0x0,'stroke':_0x2dbca8||R[_0x262df6(0x3cf)](a[_0x262df6(0x430)][_0x262df6(0x1cb)],0x0),'evented':!0x1});this[_0x262df6(0x351)]=_0x4fbb75,this[_0x262df6(0x1f8)]['addObject'](_0x4fbb75,w[_0x262df6(0xd8)]);const _0x46f92c=new Re(Ne+a['Tools'][_0x262df6(0x247)](ce),{'left':_0x2a0662+_0xee3eb6-_0xe4ef70,'top':_0x24cfb0+_0xcf41af-ue,'text':_0x494540,'color':_0x2dbca8});this[_0x262df6(0x185)]=_0x46f92c,this[_0x262df6(0x1f8)]['addObject'](_0x46f92c,w[_0x262df6(0xd8)]),this[_0x262df6(0x39b)]=!0x1;}[_0x5b831f(0x2d2)](){const _0x5893c7=_0x5b831f,_0x56f128=this[_0x5893c7(0x2a6)][_0x5893c7(0x3b7)][_0x5893c7(0x33f)](()=>{const _0x44d3c0=_0x5893c7;this[_0x44d3c0(0x39b)]=!0x0;}),_0x4c7c40=this[_0x5893c7(0x2a6)]['onPointerLeave$'][_0x5893c7(0x33f)](()=>{const _0x4c9005=_0x5893c7;this['_hideTimer']&&clearTimeout(this[_0x4c9005(0x2e4)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4d22e0=_0x5893c7;_0x56f128[_0x4d22e0(0x298)](),_0x4c7c40[_0x4d22e0(0x298)]();};}['_drawTextRange'](_0x44f4b9,_0x43ddcc,_0x22354e,_0x22ae26){const _0x40e4cc=_0x5b831f,_0x43f9ec=new a[(_0x40e4cc(0x28e))](_0x44f4b9)[_0x40e4cc(0x382)](0.2)[_0x40e4cc(0x3fa)](),_0x1e2949=new R[(_0x40e4cc(0xf8))](ri+a[_0x40e4cc(0x17b)]['generateRandomId'](ce),{'pointsGroup':_0x43ddcc,'fill':_0x43f9ec||R['getColor'](a[_0x40e4cc(0x430)][_0x40e4cc(0x1cb)],0.2),'left':_0x22354e,'top':_0x22ae26,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x40e4cc(0x17d)](_0x1e2949),this[_0x40e4cc(0x1f8)][_0x40e4cc(0x461)](_0x1e2949,w['TEXT_RANGE_LAYER_INDEX']);}[_0x5b831f(0x2f5)](_0x45e2f7,_0x33f30a,_0xb064eb,_0x42e9c5){const _0x29a06c=_0x5b831f,_0xb8844b=new a['ColorKit'](_0x45e2f7)[_0x29a06c(0x382)](0.2)['toRgbString'](),_0x174e6b=new R['RegularPolygon'](oi+a[_0x29a06c(0x17b)][_0x29a06c(0x247)](ce),{'pointsGroup':_0x33f30a,'fill':_0xb8844b||R[_0x29a06c(0x3cf)](a[_0x29a06c(0x430)][_0x29a06c(0x1cb)],0.2),'left':_0xb064eb,'top':_0x42e9c5,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x29a06c(0x17d)](_0x174e6b),this['_scene'][_0x29a06c(0x461)](_0x174e6b,w[_0x29a06c(0xd8)]);}['_getAnchorBounding'](_0x44c61c){const _0x2a288c=_0x44c61c[0x0],_0x9873d2=_0x2a288c[0x0],_0x4c669d=_0x2a288c[0x2],{x:_0x2d6186,y:_0x2acbcc}=_0x9873d2,{x:_0x847948,y:_0x3df4e6}=_0x4c669d;return{'left':_0x2d6186,'top':_0x2acbcc,'width':_0x847948-_0x2d6186,'height':_0x3df4e6-_0x2acbcc};}[_0x5b831f(0x2f0)](){const _0x234eb9=_0x5b831f,{scaleX:_0x190bd9,scaleY:_0x39b55f}=this[_0x234eb9(0x1f8)][_0x234eb9(0x46c)]();return Math[_0x234eb9(0x3eb)](_0x190bd9,_0x39b55f);}}var hi=Object['defineProperty'],_i=Object[_0x5b831f(0x31a)],ui=(_0x22f340,_0x129185,_0x4fba3c,_0x3b0dc9)=>{for(var _0x45161b=_0x3b0dc9>0x1?void 0x0:_0x3b0dc9?_i(_0x129185,_0x4fba3c):_0x129185,_0x2c785b=_0x22f340['length']-0x1,_0x38ab06;_0x2c785b>=0x0;_0x2c785b--)(_0x38ab06=_0x22f340[_0x2c785b])&&(_0x45161b=(_0x3b0dc9?_0x38ab06(_0x129185,_0x4fba3c,_0x45161b):_0x38ab06(_0x45161b))||_0x45161b);return _0x3b0dc9&&_0x45161b&&hi(_0x129185,_0x4fba3c,_0x45161b),_0x45161b;},de=(_0x2ac3ec,_0x6d1b20)=>(_0x2c30e6,_0x20dd27)=>_0x6d1b20(_0x2c30e6,_0x20dd27,_0x2ac3ec);let Ie=class extends a[_0x5b831f(0x494)]{constructor(_0x1fa6ab,_0x562be9,_0xf9ef1b,_0x5e49f1,_0x1b9ef7){const _0x4fb9b1=_0x5b831f;super(),d(this,'_cursorShapes',[]),d(this,_0x4fb9b1(0x39d),[]),(this['_context']=_0x1fa6ab,this[_0x4fb9b1(0x462)]=_0x562be9,this[_0x4fb9b1(0x40f)]=_0xf9ef1b,this[_0x4fb9b1(0x40a)]=_0x5e49f1,this[_0x4fb9b1(0xf9)]=_0x1b9ef7,this[_0x4fb9b1(0x3ba)]());}[_0x5b831f(0x3ba)](){const _0x1ecac7=_0x5b831f,_0x8d2dbd=this[_0x1ecac7(0x1da)]['unitId'],_0x20ffed=this['_docSkeletonManagerService'];this['disposeWithMe'](v[_0x1ecac7(0x43a)]([this['_collabCursorController']['getCollabCursors$'](_0x8d2dbd),this[_0x1ecac7(0xf9)]['currentTheme$']])[_0x1ecac7(0x1a5)](E['map'](([_0x5c12c6,_0x48b6bf])=>({'skeleton':_0x20ffed['getSkeleton'](),'cursors':[..._0x5c12c6['values']()]['flatMap'](_0x18782e=>({..._0x18782e,'color':_0x48b6bf[_0x18782e[_0x1ecac7(0x3b6)]]}))})))['subscribe'](_0x15faf9=>{const _0x1b4ceb=_0x1ecac7;if(this[_0x1b4ceb(0x44e)](),_0x15faf9){const {skeleton:_0x1c9f0f,cursors:_0x41b872}=_0x15faf9;this['_updateCollabCursors'](_0x1c9f0f,_0x41b872);}})),this[_0x1ecac7(0x1f0)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x4e8ef0,_0x47f10e){const _0x35c13=_0x5b831f,{scene:_0x5ebcfe,mainComponent:_0x346918}=this['_context'],_0x3028c6=_0x47f10e['map'](_0x5e2b55=>new ot(_0x5e2b55,_0x5ebcfe,_0x4e8ef0,_0x346918));this[_0x35c13(0x441)]=_0x3028c6,this[_0x35c13(0x39d)]=_0x47f10e;}['_refreshCollabCursors'](){const _0x53cb63=_0x5b831f;this[_0x53cb63(0x44e)]();const {scene:_0xed0904,mainComponent:_0x4381c2}=this['_context'],_0x1f5447=this[_0x53cb63(0x462)][_0x53cb63(0x42d)](),_0x2aaf88=this[_0x53cb63(0x39d)][_0x53cb63(0x31d)](_0xccc5e7=>new ot(_0xccc5e7,_0xed0904,_0x1f5447,_0x4381c2));this[_0x53cb63(0x441)]=_0x2aaf88;}[_0x5b831f(0x44e)](){const _0x17e81e=_0x5b831f;this[_0x17e81e(0x441)][_0x17e81e(0x1b5)](_0x563bfe=>_0x563bfe['dispose']()),this['_cursorShapes']=[];}[_0x5b831f(0x141)](){const _0xf5b0fc=_0x5b831f,_0x35f60a=[w[_0xf5b0fc(0x117)]['id']];this[_0xf5b0fc(0x37a)](this[_0xf5b0fc(0x40a)][_0xf5b0fc(0x496)](_0xa1965a=>{const _0x177ede=_0xf5b0fc;_0x35f60a['includes'](_0xa1965a['id'])&&_0xa1965a[_0x177ede(0x38a)][_0x177ede(0x338)]===this[_0x177ede(0x1da)][_0x177ede(0x338)]&&this[_0x177ede(0x377)]();}));}[_0x5b831f(0x1f0)](){const _0x37c721=_0x5b831f;this[_0x37c721(0x37a)](a['fromEventSubject'](this[_0x37c721(0x1da)][_0x37c721(0x42c)][_0x37c721(0x2e6)])[_0x37c721(0x1a5)](E['filter'](_0x47cba1=>_0x47cba1[_0x37c721(0x175)]===R[_0x37c721(0x9e)][_0x37c721(0x388)]),E['throttleTime'](0x10))[_0x37c721(0x3fc)](()=>{const _0x4ff440=_0x37c721;this[_0x4ff440(0x377)]();}));}};Ie=ui([de(0x1,a[_0x5b831f(0x1d9)](V[_0x5b831f(0x43f)])),de(0x2,a[_0x5b831f(0x1d9)](ie)),de(0x3,a[_0x5b831f(0x317)]),de(0x4,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x24c)]))],Ie);const di=0x1,Si=1.5;class Ot extends R[_0x5b831f(0xf2)]{constructor(_0x15c385,_0x3c091b){const _0x20bd14=_0x5b831f;super(_0x15c385,_0x3c091b),d(this,_0x20bd14(0x15b)),d(this,'_hovered',!0x1),d(this,_0x20bd14(0x283)),d(this,_0x20bd14(0x47d),''),d(this,_0x20bd14(0x2a8),'top'),d(this,_0x20bd14(0x1fe)),(_0x3c091b&&this[_0x20bd14(0x129)](_0x3c091b),this['onPointerEnter$'][_0x20bd14(0x33f)](()=>this[_0x20bd14(0x129)]({'hovered':!0x0})),this[_0x20bd14(0x123)][_0x20bd14(0x33f)](()=>this[_0x20bd14(0x129)]({'hovered':!0x1})));}[_0x5b831f(0x129)](_0x321c97){const _0x1c7365=_0x5b831f;var _0x65613e,_0x52d699,_0x34694a,_0x573cc4,_0x50f5bc,_0x1274e9;this[_0x1c7365(0x15b)]=(_0x65613e=_0x321c97[_0x1c7365(0x3b6)])!=null?_0x65613e:this[_0x1c7365(0x15b)],this[_0x1c7365(0xf1)]=(_0x52d699=_0x321c97['hovered'])!=null?_0x52d699:this[_0x1c7365(0xf1)],this[_0x1c7365(0x283)]=(_0x34694a=_0x321c97[_0x1c7365(0x16d)])!=null?_0x34694a:this[_0x1c7365(0x283)],this[_0x1c7365(0x47d)]=(_0x573cc4=_0x321c97[_0x1c7365(0x1a6)])!=null?_0x573cc4:this[_0x1c7365(0x47d)],this[_0x1c7365(0x2a8)]=(_0x50f5bc=_0x321c97[_0x1c7365(0x170)])!=null?_0x50f5bc:this[_0x1c7365(0x2a8)],this[_0x1c7365(0x1fe)]=(_0x1274e9=_0x321c97[_0x1c7365(0x452)])!=null?_0x1274e9:this[_0x1c7365(0x1fe)],this['transformByState']({'width':_0x321c97[_0x1c7365(0x1e1)],'height':_0x321c97[_0x1c7365(0x3be)]});}[_0x5b831f(0x39e)](_0x5b1614){const _0x33850b=_0x5b831f,{row:_0x1f6a7d,column:_0x2c889d}=_0x5b1614;if(_0x1f6a7d>=this[_0x33850b(0x283)][_0x33850b(0xd2)]&&_0x1f6a7d<=this[_0x33850b(0x283)][_0x33850b(0x223)]&&_0x2c889d>=this[_0x33850b(0x283)]['startColumn']&&_0x2c889d<=this[_0x33850b(0x283)][_0x33850b(0x4a0)]){this[_0x33850b(0x129)]({'hovered':!0x0});return;}this[_0x33850b(0x129)]({'hovered':!0x1});}['triggerDblclick'](_0x22b449){return!0x1;}[_0x5b831f(0x14d)](_0x441e29){const _0x4cedcd=_0x5b831f;R[_0x4cedcd(0x423)][_0x4cedcd(0x3d4)](_0x441e29,{'width':this[_0x4cedcd(0x1e1)],'height':this[_0x4cedcd(0x3be)],'strokeWidth':Si,'stroke':this[_0x4cedcd(0x15b)],'evented':!0x1,'fill':this[_0x4cedcd(0x1fe)]}),this['_hovered']&&(_0x441e29['save'](),_0x441e29['transform'](0x1,0x0,0x0,0x1,this[_0x4cedcd(0x1e1)],this[_0x4cedcd(0x2a8)]===_0x4cedcd(0x44f)?0x0:-ue),Re[_0x4cedcd(0x3d4)](_0x441e29,{'text':this[_0x4cedcd(0x47d)],'color':this['_color']}),_0x441e29[_0x4cedcd(0x11b)]());}}var vi=Object[_0x5b831f(0x1e0)],gi=Object['getOwnPropertyDescriptor'],fi=(_0x177d18,_0x3133f4,_0x498f54,_0x120193)=>{const _0x3c3693=_0x5b831f;for(var _0x3d9e06=_0x120193>0x1?void 0x0:_0x120193?gi(_0x3133f4,_0x498f54):_0x3133f4,_0x286e87=_0x177d18[_0x3c3693(0x21d)]-0x1,_0x2a597e;_0x286e87>=0x0;_0x286e87--)(_0x2a597e=_0x177d18[_0x286e87])&&(_0x3d9e06=(_0x120193?_0x2a597e(_0x3133f4,_0x498f54,_0x3d9e06):_0x2a597e(_0x3d9e06))||_0x3d9e06);return _0x120193&&_0x3d9e06&&vi(_0x3133f4,_0x498f54,_0x3d9e06),_0x3d9e06;},Le=(_0x19ce53,_0x5f3960)=>(_0x3cffdc,_0xd8a171)=>_0x5f3960(_0x3cffdc,_0xd8a171,_0x19ce53);const mi=0x1389;let ke=class extends a['RxDisposable']{constructor(_0x247533,_0x361f2a,_0x3285ac,_0x2b55c8){const _0xe74f49=_0x5b831f;super(),d(this,_0xe74f49(0x39d),new Set()),d(this,'_lastPointer',null),(this[_0xe74f49(0x1da)]=_0x247533,this['_sheetSkeletonManagerService']=_0x361f2a,this['_collabCursorController']=_0x3285ac,this['_themeService']=_0x2b55c8,this['_init']());}[_0x5b831f(0x3ba)](){const _0x505dd1=_0x5b831f;this[_0x505dd1(0x20b)]['currentSkeleton$'][_0x505dd1(0x1a5)](E[_0x505dd1(0xec)](this[_0x505dd1(0x25c)]),E[_0x505dd1(0x48b)](_0x173517=>{const _0x22d179=_0x505dd1;if(_0x173517){const _0x1b785f=_0x173517[_0x22d179(0x2ba)];return v[_0x22d179(0x43a)](this['_collabCursorController'][_0x22d179(0x3f4)](this[_0x22d179(0x1da)][_0x22d179(0x338)]),this[_0x22d179(0xf9)][_0x22d179(0x407)])[_0x22d179(0x1a5)](E['map'](([_0x559b23,_0x3cd84f])=>{const _0x25f8cc=_0x22d179,_0x30f8b0=new Map();return _0x559b23[_0x25f8cc(0x1b5)]((_0x203c29,_0x640204)=>{const _0x525957=_0x25f8cc;if(_0x203c29['sheetID']===_0x1b785f){const _0x112e84={..._0x203c29};_0x112e84[_0x525957(0x3b6)]=_0x3cd84f[_0x203c29[_0x525957(0x3b6)]],_0x30f8b0[_0x525957(0x46d)](_0x640204,_0x112e84);}}),{'skeleton':_0x173517,'cursors':_0x30f8b0};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x505dd1(0x3fc)](({skeleton:_0x1f9ce6,cursors:_0x4e3d6c})=>{const _0x1961fd=_0x505dd1;this['_removeCollabCursors'](),_0x1f9ce6&&this[_0x1961fd(0x2f9)](_0x1f9ce6,_0x4e3d6c);}),this[_0x505dd1(0x20b)][_0x505dd1(0x437)][_0x505dd1(0x3fc)](_0x5326ba=>{const _0x9b7695=_0x505dd1;if(_0x5326ba==null)return;const {skeleton:_0x579aec}=_0x5326ba,{scene:_0x16902}=this[_0x9b7695(0x1da)];_0x16902[_0x9b7695(0x381)][_0x9b7695(0x33f)](a[_0x9b7695(0x305)](_0x3dfab2=>{const _0x2989de=_0x9b7695;var _0x429e7e,_0x1d3002;const {offsetX:_0x147c63,offsetY:_0x5c4411}=_0x3dfab2,{x:_0x320504,y:_0x2efada}=_0x16902[_0x2989de(0x1b9)](R[_0x2989de(0x367)]['FromArray']([_0x147c63,_0x5c4411])),{scaleX:_0x37b68f,scaleY:_0x4645ad}=_0x16902[_0x2989de(0x46c)](),_0x396cf1=_0x16902[_0x2989de(0x487)](te['VIEWPORT_KEY'][_0x2989de(0x449)]),_0x896c7d=_0x16902[_0x2989de(0x7c)](R['Vector2']['FromArray']([_0x320504,_0x2efada]),_0x396cf1),_0x2708fc=_0x579aec[_0x2989de(0x2a9)](_0x147c63,_0x5c4411,_0x37b68f,_0x4645ad,_0x896c7d);((_0x429e7e=this['_lastPointer'])==null?void 0x0:_0x429e7e[_0x2989de(0x1aa)])===_0x2708fc['column']&&((_0x1d3002=this[_0x2989de(0x248)])==null?void 0x0:_0x1d3002[_0x2989de(0x2d6)])===_0x2708fc['row']||this[_0x2989de(0x39d)][_0x2989de(0x1b5)](_0x246b14=>{_0x246b14['onMouseMove'](_0x2708fc);});},0x64));});}['_updateCollabCursors'](_0xf021ce,_0x58f2bc){const _0x49fac1=_0x5b831f;var _0x2007fe;const _0x1f62d3=(_0x2007fe=this[_0x49fac1(0x20b)]['getCurrent']())==null?void 0x0:_0x2007fe[_0x49fac1(0x3fd)];if(!_0x1f62d3)return;const _0x47bb5d=this['_getSheetObject']();if(!_0x47bb5d)return;this[_0x49fac1(0x39d)]['forEach'](_0x5e7668=>{_0x5e7668['makeDirty']();});const {scene:_0x52f301}=_0x47bb5d,_0xb8a363=Ii(Array['from'](_0x58f2bc[_0x49fac1(0x41a)]()))[_0x49fac1(0x31d)](_0x289908=>{const _0xa990aa=_0x49fac1,{color:_0x58773b,range:_0x96a60d,name:_0x37f2f4,selection:_0x8616eb,sheetID:_0x402479}=_0x289908,{startColumn:_0x271593,startRow:_0x468263,endColumn:_0x6e80b,endRow:_0x4d2d9b}=_0x96a60d,_0x1570d5=te[_0xa990aa(0x3a5)](_0x468263,_0x271593,_0x52f301,_0x1f62d3),_0x5d380a=te[_0xa990aa(0x3a5)](_0x4d2d9b,_0x6e80b,_0x52f301,_0x1f62d3),{columnHeaderHeightAndMarginTop:_0x4c61d2}=_0x1f62d3,{startX:_0x534eab,startY:_0x2fb3d7}=_0x1570d5,{endX:_0x2844d2,endY:_0x165e1b}=_0x5d380a,_0x245614=_0x2844d2-_0x534eab,_0x2d44f6=_0x165e1b-_0x2fb3d7,_0x4906e1={'labelPosition':_0x2fb3d7-_0x4c61d2>=ue?_0xa990aa(0x24d):_0xa990aa(0x44f),'sheetID':_0x402479,'range':_0x96a60d,'color':_0x58773b,'name':_0x37f2f4,'selection':_0x8616eb,'left':_0x534eab,'top':_0x2fb3d7,'width':_0x245614,'height':_0x2d44f6,'evented':!0x1,'zIndex':mi};return new Ot(_0x37f2f4,_0x4906e1);});_0x52f301[_0x49fac1(0x11d)](_0xb8a363,di),this[_0x49fac1(0x39d)]=new Set(_0xb8a363);}[_0x5b831f(0x44e)](){const _0x5e71c2=_0x5b831f;var _0x572c54;(_0x572c54=this[_0x5e71c2(0x39d)])==null||_0x572c54[_0x5e71c2(0x1b5)](_0x4839a4=>_0x4839a4[_0x5e71c2(0x257)]());}['_getSheetObject'](){const _0x3ff506=_0x5b831f;return te[_0x3ff506(0x3a2)](this['_context'][_0x3ff506(0xac)],this['_context']);}};ke=fi([Le(0x1,a[_0x5b831f(0x1d9)](te[_0x5b831f(0x2fe)])),Le(0x2,a[_0x5b831f(0x1d9)](ie)),Le(0x3,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x24c)]))],ke);function Ii(_0x3c474a){const _0x52e71c=_0x5b831f,_0x38f696=new Map();return _0x3c474a[_0x52e71c(0x1b5)](_0x565933=>{const _0x540d2d=_0x52e71c;if(_0x38f696[_0x540d2d(0x336)](_0x565933['selection'])){const _0x26a349=_0x38f696['get'](_0x565933[_0x540d2d(0x48e)]);_0x26a349['name']+=',\x20'+_0x565933[_0x540d2d(0x1a6)];}else _0x38f696[_0x540d2d(0x46d)](_0x565933[_0x540d2d(0x48e)],_0x565933);}),Array[_0x52e71c(0x37d)](_0x38f696['values']());}var M=function(){const _0x1bad75=_0x5b831f;return M=Object[_0x1bad75(0x218)]||function(_0x68773b){const _0x3a5b0e=_0x1bad75;for(var _0x171c72,_0x3e6886=0x1,_0x8df5e=arguments['length'];_0x3e6886<_0x8df5e;_0x3e6886++){_0x171c72=arguments[_0x3e6886];for(var _0x8baf22 in _0x171c72)Object[_0x3a5b0e(0x7a)][_0x3a5b0e(0x9b)]['call'](_0x171c72,_0x8baf22)&&(_0x68773b[_0x8baf22]=_0x171c72[_0x8baf22]);}return _0x68773b;},M[_0x1bad75(0x233)](this,arguments);},pi=function(_0x4e54cb,_0x5e70a7){const _0x36c120=_0x5b831f;var _0xe558f8={};for(var _0x459fb7 in _0x4e54cb)Object[_0x36c120(0x7a)][_0x36c120(0x9b)][_0x36c120(0x2ec)](_0x4e54cb,_0x459fb7)&&_0x5e70a7[_0x36c120(0x107)](_0x459fb7)<0x0&&(_0xe558f8[_0x459fb7]=_0x4e54cb[_0x459fb7]);if(_0x4e54cb!=null&&typeof Object[_0x36c120(0x19e)]==_0x36c120(0x3b3)){for(var _0x22dd6f=0x0,_0x459fb7=Object[_0x36c120(0x19e)](_0x4e54cb);_0x22dd6f<_0x459fb7['length'];_0x22dd6f++)_0x5e70a7[_0x36c120(0x107)](_0x459fb7[_0x22dd6f])<0x0&&Object[_0x36c120(0x7a)]['propertyIsEnumerable'][_0x36c120(0x2ec)](_0x4e54cb,_0x459fb7[_0x22dd6f])&&(_0xe558f8[_0x459fb7[_0x22dd6f]]=_0x4e54cb[_0x459fb7[_0x22dd6f]]);}return _0xe558f8;},qe=U['forwardRef'](function(_0x4e026c,_0x15f4c7){const _0xdb600d=_0x5b831f;var _0x1f663c=_0x4e026c['icon'],_0xeb746f=_0x4e026c['id'],_0x1aa5be=_0x4e026c[_0xdb600d(0x319)],_0x231334=_0x4e026c[_0xdb600d(0x2e5)],_0x21478b=pi(_0x4e026c,['icon','id',_0xdb600d(0x319),'extend']),_0x10001b=_0xdb600d(0x1b2)[_0xdb600d(0x32f)](_0xeb746f,'\x20')['concat'](_0x1aa5be||'')[_0xdb600d(0x1bc)](),_0x5e2427=U[_0xdb600d(0x188)]('_'[_0xdb600d(0x32f)](bi()));return Dt(_0x1f663c,''[_0xdb600d(0x32f)](_0xeb746f),{'defIds':_0x1f663c[_0xdb600d(0x349)],'idSuffix':_0x5e2427[_0xdb600d(0xff)]},M({'ref':_0x15f4c7,'className':_0x10001b},_0x21478b),_0x231334);});function Dt(_0x2020f3,_0x2443cc,_0x2f91c8,_0x4e7890,_0x4af4d3){const _0x5bb02d=_0x5b831f;return U[_0x5bb02d(0xa1)](_0x2020f3['tag'],M(M({'key':_0x2443cc},Ci(_0x2020f3,_0x2f91c8,_0x4af4d3)),_0x4e7890),(Ei(_0x2020f3,_0x2f91c8)[_0x5bb02d(0x30b)]||[])[_0x5bb02d(0x31d)](function(_0x49c934,_0x6b9287){const _0x8cdb1a=_0x5bb02d;return Dt(_0x49c934,''[_0x8cdb1a(0x32f)](_0x2443cc,'-')[_0x8cdb1a(0x32f)](_0x2020f3[_0x8cdb1a(0x162)],'-')[_0x8cdb1a(0x32f)](_0x6b9287),_0x2f91c8,void 0x0,_0x4af4d3);}));}function Ci(_0x2b5c55,_0x151858,_0x3b80b0){const _0x1b06cb=_0x5b831f;var _0x4ec54e=M({},_0x2b5c55[_0x1b06cb(0x113)]);_0x3b80b0!=null&&_0x3b80b0[_0x1b06cb(0x46f)]&&_0x4ec54e[_0x1b06cb(0x2b4)]===_0x1b06cb(0x46f)&&(_0x4ec54e[_0x1b06cb(0x2b4)]=_0x3b80b0[_0x1b06cb(0x46f)]);var _0x5a4432=_0x151858[_0x1b06cb(0x349)];return!_0x5a4432||_0x5a4432['length']===0x0||(_0x2b5c55['tag']==='use'&&_0x4ec54e['xlink:href']&&(_0x4ec54e[_0x1b06cb(0x202)]=_0x4ec54e[_0x1b06cb(0x202)]+_0x151858[_0x1b06cb(0x420)]),Object[_0x1b06cb(0x153)](_0x4ec54e)[_0x1b06cb(0x1b5)](function(_0x5e032b){const _0x425d5c=_0x1b06cb;var _0x1ded78=_0x5e032b[0x0],_0x24e2bc=_0x5e032b[0x1];typeof _0x24e2bc==_0x425d5c(0x353)&&(_0x4ec54e[_0x1ded78]=_0x24e2bc[_0x425d5c(0x3e4)](/url\(#(.*)\)/,_0x425d5c(0x3c7)[_0x425d5c(0x32f)](_0x151858[_0x425d5c(0x420)],')')));})),_0x4ec54e;}function Ei(_0x195007,_0x344a51){const _0x7deb3e=_0x5b831f;var _0x58740e,_0x2dcd7d=_0x344a51[_0x7deb3e(0x349)];return!_0x2dcd7d||_0x2dcd7d[_0x7deb3e(0x21d)]===0x0?_0x195007:_0x195007[_0x7deb3e(0x162)]===_0x7deb3e(0x365)&&(!((_0x58740e=_0x195007['children'])===null||_0x58740e===void 0x0)&&_0x58740e['length'])?M(M({},_0x195007),{'children':_0x195007['children']['map'](function(_0x1fcb88){const _0x411c5d=_0x7deb3e;return typeof _0x1fcb88['attrs']['id']=='string'&&_0x2dcd7d&&_0x2dcd7d[_0x411c5d(0x107)](_0x1fcb88['attrs']['id'])>-0x1?M(M({},_0x1fcb88),{'attrs':M(M({},_0x1fcb88['attrs']),{'id':_0x1fcb88[_0x411c5d(0x113)]['id']+_0x344a51[_0x411c5d(0x420)]})}):_0x1fcb88;})}):_0x195007;}function bi(){const _0x4d5ca1=_0x5b831f;return Math[_0x4d5ca1(0x392)]()['toString'](0x24)['substring'](0x2,0x8);}qe['displayName']=_0x5b831f(0x38c);var Ti={'tag':_0x5b831f(0x2d8),'attrs':{'fill':_0x5b831f(0x1eb),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x5b831f(0x1e4)},'children':[{'tag':'g','attrs':{'clipPath':_0x5b831f(0x497)},'children':[{'tag':'path','attrs':{'stroke':_0x5b831f(0x38b),'d':_0x5b831f(0xc5),'strokeLinecap':_0x5b831f(0x485),'strokeLinejoin':_0x5b831f(0x485),'strokeWidth':1.2}}]},{'tag':_0x5b831f(0x365),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5b831f(0x2a2)},'children':[{'tag':_0x5b831f(0x23c),'attrs':{'fill':_0x5b831f(0x20e),'d':_0x5b831f(0x178)}}]}]}],'defIds':[_0x5b831f(0x2a2)]},yt=U[_0x5b831f(0x214)](function(_0x250d5b,_0x17c7ea){const _0x4de7fc=_0x5b831f;return U[_0x4de7fc(0xa1)](qe,Object[_0x4de7fc(0x218)]({},_0x250d5b,{'id':_0x4de7fc(0x31e),'ref':_0x17c7ea,'icon':Ti}));});yt[_0x5b831f(0x380)]=_0x5b831f(0x426);var Ri={'tag':_0x5b831f(0x2d8),'attrs':{'fill':_0x5b831f(0x1eb),'viewBox':_0x5b831f(0x115),'width':_0x5b831f(0x1e4),'height':_0x5b831f(0x1e4)},'children':[{'tag':'g','attrs':{'clipPath':_0x5b831f(0x3a0)},'children':[{'tag':_0x5b831f(0x23c),'attrs':{'stroke':_0x5b831f(0x38b),'d':_0x5b831f(0x19f),'strokeLinecap':_0x5b831f(0x485),'strokeLinejoin':_0x5b831f(0x485),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x5b831f(0x178),'transform':_0x5b831f(0x280)}}]}]}],'defIds':[_0x5b831f(0x23b)]},Ut=U[_0x5b831f(0x214)](function(_0x43a67d,_0x5175e3){const _0x5a3cb0=_0x5b831f;return U[_0x5a3cb0(0xa1)](qe,Object[_0x5a3cb0(0x218)]({},_0x43a67d,{'id':_0x5a3cb0(0x3f8),'ref':_0x5175e3,'icon':Ri}));});Ut[_0x5b831f(0x380)]=_0x5b831f(0x215);const Oi=_0x5b831f(0x1bb),Di='univer-online-status-title',yi=_0x5b831f(0x83),Ui=_0x5b831f(0x90),Pi='univer-offline',le={'onlineStatusIcon':Oi,'onlineStatusTitle':Di,'onlineStatus':yi,'online':Ui,'offline':Pi};function wi(_0x3fb9a9){const _0x461be0=_0x5b831f;switch(_0x3fb9a9){case y['OFFLINE']:return _0x461be0(0x3c2);case y[_0x461be0(0x272)]:return _0x461be0(0x34c);case y['FETCH_MISS']:return _0x461be0(0x282);case y[_0x461be0(0x348)]:return'collabStatus.notCollab';case y[_0x461be0(0x29a)]:case y['AWAITING']:case y['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case y[_0x461be0(0x209)]:return _0x461be0(0x49a);}}function Pt(_0x91ff78){const _0x41bf1d=_0x5b831f,{status$:_0x11423f}=_0x91ff78,_0x4ab155=N[_0x41bf1d(0xdd)](_0x11423f,y[_0x41bf1d(0x348)]),_0x2a7824=a[_0x41bf1d(0x1a1)](a[_0x41bf1d(0x3c9)]),_0x2d4be1=a[_0x41bf1d(0x1a1)](exports[_0x41bf1d(0x47e)]),_0x5622ab=_0x4ab155!==y[_0x41bf1d(0x2e0)],_0x3fae06=_0x2a7824['t'](wi(_0x4ab155)),_0xe46822=Vt(le[_0x41bf1d(0x3e2)],{[le[_0x41bf1d(0x13a)]]:_0x5622ab,[le[_0x41bf1d(0x37c)]]:!_0x5622ab}),_0xf7f83b=_0x5622ab?U[_0x41bf1d(0xa1)](Ut,null):U[_0x41bf1d(0xa1)](yt,null),_0x48932c=U[_0x41bf1d(0x2da)](()=>{_0x5622ab||_0x2d4be1['reconnect']();},[_0x5622ab,_0x2d4be1]);function _0xee89ee(){const _0x352110=_0x41bf1d;return U[_0x352110(0xa1)](_0x352110(0x2db),{'className':_0xe46822,'onClick':_0x48932c},U['createElement'](_0x352110(0x2db),{'className':le['onlineStatusIcon']},_0xf7f83b),U['createElement'](_0x352110(0x2db),{'className':le['onlineStatusTitle']},_0x3fae06));}return _0x5622ab?_0xee89ee():U[_0x41bf1d(0xa1)](X[_0x41bf1d(0x27e)],{'title':_0x2a7824['t']('collab-client.tooltip.reconnect')},_0xee89ee());}var Mi=Object[_0x5b831f(0x1e0)],Ni=Object[_0x5b831f(0x31a)],Ai=(_0x41eddb,_0x4d1b77,_0x110265,_0x2300af)=>{const _0x4f1865=_0x5b831f;for(var _0x20ad1d=_0x2300af>0x1?void 0x0:_0x2300af?Ni(_0x4d1b77,_0x110265):_0x4d1b77,_0x31fb7d=_0x41eddb[_0x4f1865(0x21d)]-0x1,_0x44d02c;_0x31fb7d>=0x0;_0x31fb7d--)(_0x44d02c=_0x41eddb[_0x31fb7d])&&(_0x20ad1d=(_0x2300af?_0x44d02c(_0x4d1b77,_0x110265,_0x20ad1d):_0x44d02c(_0x20ad1d))||_0x20ad1d);return _0x2300af&&_0x20ad1d&&Mi(_0x4d1b77,_0x110265,_0x20ad1d),_0x20ad1d;},Se=(_0x4d4f2c,_0x48dc6b)=>(_0x2aefcb,_0x11ea3c)=>_0x48dc6b(_0x2aefcb,_0x11ea3c,_0x4d4f2c);exports[_0x5b831f(0x323)]=class extends a[_0x5b831f(0x333)]{constructor(_0x4bcfcf,_0x296776,_0x50e92f,_0x14dc7d){const _0x5c9eef=_0x5b831f;super(),d(this,_0x5c9eef(0x13f),new v[(_0x5c9eef(0x279))](y[_0x5c9eef(0x348)])),(this[_0x5c9eef(0x249)]=_0x4bcfcf,this[_0x5c9eef(0xd0)]=_0x296776,this['_injector']=_0x50e92f,this[_0x5c9eef(0xfb)]=_0x14dc7d,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x5b831f(0x31f)](){const _0x42157b=_0x5b831f;this[_0x42157b(0x37a)](this['_univerInstanceService']['focused$'][_0x42157b(0x1a5)](v['switchMap'](()=>{const _0x153a58=_0x42157b,_0x5a005c=this[_0x153a58(0x249)][_0x153a58(0x1d4)]();return _0x5a005c?this[_0x153a58(0xfb)]['getCollabEntity$'](_0x5a005c[_0x153a58(0xa3)]()):v['of'](null);}),v[_0x42157b(0x48b)](_0x28d260=>_0x28d260?_0x28d260[_0x42157b(0x1d5)]:v['of'](y[_0x42157b(0x348)])))['subscribe'](_0x59c101=>{const _0xaade37=_0x42157b;this[_0xaade37(0x13f)][_0xaade37(0x2b2)](_0x59c101);}));}[_0x5b831f(0x337)](){const _0x30f640=_0x5b831f;this['disposeWithMe'](this[_0x30f640(0xd0)]['registerComponent'](N[_0x30f640(0x448)][_0x30f640(0x2dd)],()=>a[_0x30f640(0x455)](Li({'status$':this['_status$'][_0x30f640(0x2bc)]()}),this[_0x30f640(0x1f9)])));}},exports[_0x5b831f(0x323)]=Ai([Se(0x0,a['IUniverInstanceService']),Se(0x1,N[_0x5b831f(0x342)]),Se(0x2,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),Se(0x3,a[_0x5b831f(0x1d9)](exports['CollaborationController']))],exports[_0x5b831f(0x323)]);function Li(_0x59b622){const {status$:_0x11c8d7}=_0x59b622;return function(){const _0x1a73e4=_0x49eb;return U[_0x1a73e4(0xa1)](Pt,{'status$':_0x11c8d7});};}const ze=a['createIdentifier'](_0x5b831f(0x458));var ji=Object['defineProperty'],$i=Object[_0x5b831f(0x31a)],Hi=(_0x4aad49,_0x123e62,_0x6b636,_0x1fd49d)=>{const _0x59f702=_0x5b831f;for(var _0x44cac9=_0x1fd49d>0x1?void 0x0:_0x1fd49d?$i(_0x123e62,_0x6b636):_0x123e62,_0x335aa2=_0x4aad49[_0x59f702(0x21d)]-0x1,_0x27735d;_0x335aa2>=0x0;_0x335aa2--)(_0x27735d=_0x4aad49[_0x335aa2])&&(_0x44cac9=(_0x1fd49d?_0x27735d(_0x123e62,_0x6b636,_0x44cac9):_0x27735d(_0x44cac9))||_0x44cac9);return _0x1fd49d&&_0x44cac9&&ji(_0x123e62,_0x6b636,_0x44cac9),_0x44cac9;},ee=(_0x3bd5f6,_0x5c2403)=>(_0xa1d153,_0x3e32cf)=>_0x5c2403(_0xa1d153,_0x3e32cf,_0x3bd5f6);exports[_0x5b831f(0xe0)]=class extends a[_0x5b831f(0x494)]{constructor(_0x5123ef,_0x231300,_0x54e335,_0x548549,_0x3f557c,_0x348084){const _0x39fb4c=_0x5b831f;super(),this[_0x39fb4c(0x29f)]=_0x5123ef,this['_logService']=_0x231300,this[_0x39fb4c(0x40a)]=_0x54e335,this['_localCacheService']=_0x548549,this[_0x39fb4c(0x21e)]=_0x3f557c,_0x348084?_0x348084==null||_0x348084[_0x39fb4c(0x341)]()[_0x39fb4c(0x3ea)](()=>this['_init']()):(this[_0x39fb4c(0x271)][_0x39fb4c(0x3c5)]('[DataLoaderController]',_0x39fb4c(0x325)),this[_0x39fb4c(0x3ba)]());}async['_init'](){const _0x56a787=_0x5b831f,_0x6d702e=this['_urlService']['getParam'](_0x56a787(0xac)),_0x3f49db=this[_0x56a787(0x29f)]['getParam']('type');if(!_0x6d702e||!_0x3f49db){this['_logService']['debug'](_0x56a787(0x47c),_0x56a787(0x22c));return;}switch(Number(_0x3f49db)){case j[_0x56a787(0x102)]:{const _0x24a563=await this[_0x56a787(0x3b5)](_0x6d702e);this[_0x56a787(0x2c1)](_0x24a563);break;}case j[_0x56a787(0x192)]:{await this[_0x56a787(0x395)](_0x6d702e);break;}default:{this[_0x56a787(0x271)][_0x56a787(0xa7)](_0x56a787(0x47c),_0x56a787(0x3db));break;}}}async[_0x5b831f(0x2c1)](_0x4d65fa){const _0x1d9405=_0x5b831f;await this[_0x1d9405(0x18c)](_0x4d65fa),_0x4d65fa[_0x1d9405(0x2cc)]['pipe'](v['takeUntil'](this[_0x1d9405(0x25c)]))[_0x1d9405(0x3fc)](_0x5779ac=>{const _0x511714=_0x1d9405;_0x5779ac&&this[_0x511714(0x303)](_0x5779ac);}),this[_0x1d9405(0x29f)][_0x1d9405(0x307)][_0x1d9405(0x1a5)](v[_0x1d9405(0xec)](this[_0x1d9405(0x25c)]))[_0x1d9405(0x3fc)](()=>this[_0x1d9405(0x18c)](_0x4d65fa));}[_0x5b831f(0x303)](_0x22e93f,_0x2ae5c3=!0x1){const _0x42eda7=_0x5b831f,_0x30ce2b=this['_urlService'][_0x42eda7(0x281)](_0x42eda7(0x239));_0x22e93f['getSheetId']()!==_0x30ce2b&&this[_0x42eda7(0x29f)][_0x42eda7(0x3ab)](_0x42eda7(0x239),_0x22e93f['getSheetId'](),_0x2ae5c3);}async[_0x5b831f(0x18c)](_0x336f68){const _0x31b2cc=_0x5b831f;var _0x445e86;const _0x51a9da=this[_0x31b2cc(0x29f)][_0x31b2cc(0x281)](_0x31b2cc(0x239));if(!_0x51a9da||!_0x336f68[_0x31b2cc(0x2a4)](_0x51a9da)){const _0x4715b7=_0x336f68['getUnhiddenWorksheets']()[0x0],_0x41cdbb=_0x336f68[_0x31b2cc(0x2a4)](_0x4715b7);if(!_0x41cdbb)return;this[_0x31b2cc(0x303)](_0x41cdbb,!0x0),await this[_0x31b2cc(0x40a)][_0x31b2cc(0x288)](C[_0x31b2cc(0x1b1)]['id'],{'unitId':_0x336f68[_0x31b2cc(0xa3)](),'subUnitId':_0x4715b7});return;}((_0x445e86=_0x336f68[_0x31b2cc(0x125)]())==null?void 0x0:_0x445e86[_0x31b2cc(0x416)]())!==_0x51a9da&&await this[_0x31b2cc(0x40a)][_0x31b2cc(0x288)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x336f68[_0x31b2cc(0xa3)](),'subUnitId':_0x51a9da});}async['_loadSheet'](_0x3fdc62){const _0x1256d7=_0x5b831f;let _0x4681a6=0x0;const _0x27aafb=await this[_0x1256d7(0x2fd)][_0x1256d7(0x489)](_0x3fdc62);return _0x27aafb&&(_0x27aafb[_0x1256d7(0x379)]||_0x27aafb[_0x1256d7(0x408)][_0x1256d7(0x21d)]!==0x0)&&(_0x4681a6=_0x27aafb[_0x1256d7(0x297)]),_0x4681a6===0x0&&this[_0x1256d7(0x271)][_0x1256d7(0x3c5)](_0x1256d7(0x47c),_0x1256d7(0x238)),this[_0x1256d7(0x21e)][_0x1256d7(0x3da)](_0x3fdc62,_0x4681a6);}async[_0x5b831f(0x395)](_0x1f0f37){const _0x499ea0=_0x5b831f;let _0x587fc7=0x0;const _0x13f5d0=await this[_0x499ea0(0x2fd)]['loadOfflineData'](_0x1f0f37);return _0x13f5d0&&(_0x13f5d0[_0x499ea0(0x379)]||_0x13f5d0['mutations'][_0x499ea0(0x21d)]!==0x0)&&(_0x587fc7=_0x13f5d0[_0x499ea0(0x297)]),_0x587fc7===0x0&&this[_0x499ea0(0x271)]['debug'](_0x499ea0(0x47c),_0x499ea0(0x238)),this[_0x499ea0(0x21e)][_0x499ea0(0x491)](_0x1f0f37,_0x587fc7);}},exports['DataLoaderController']=Hi([ee(0x0,ze),ee(0x1,a[_0x5b831f(0x463)]),ee(0x2,a[_0x5b831f(0x317)]),ee(0x3,a[_0x5b831f(0x1d9)](exports[_0x5b831f(0x269)])),ee(0x4,a[_0x5b831f(0x1d9)](_[_0x5b831f(0x3a3)])),ee(0x5,a[_0x5b831f(0x433)](Wt[_0x5b831f(0xa6)]))],exports['DataLoaderController']);var xi=Object[_0x5b831f(0x1e0)],ki=Object[_0x5b831f(0x31a)],Bi=(_0x440010,_0x5b3dc5,_0x5e95ce,_0x35e730)=>{for(var _0xca7409=_0x35e730>0x1?void 0x0:_0x35e730?ki(_0x5b3dc5,_0x5e95ce):_0x5b3dc5,_0x23870d=_0x440010['length']-0x1,_0x158386;_0x23870d>=0x0;_0x23870d--)(_0x158386=_0x440010[_0x23870d])&&(_0xca7409=(_0x35e730?_0x158386(_0x5b3dc5,_0x5e95ce,_0xca7409):_0x158386(_0xca7409))||_0xca7409);return _0x35e730&&_0xca7409&&xi(_0x5b3dc5,_0x5e95ce,_0xca7409),_0xca7409;},at=(_0x48489c,_0xd57185)=>(_0x5e9742,_0x5f1644)=>_0xd57185(_0x5e9742,_0x5f1644,_0x48489c);const Vi=_0x5b831f(0x467),Wi=_0x5b831f(0x435);let pe=class extends a[_0x5b831f(0x333)]{constructor(_0x285dea,_0x1fc081){const _0x3bead6=_0x5b831f;super(),this['_univerInstanceService']=_0x285dea,this[_0x3bead6(0x16a)]=_0x1fc081,this[_0x3bead6(0x3ba)]();}[_0x5b831f(0x3ba)](){const _0x36de4d=_0x5b831f;this['disposeWithMe'](this[_0x36de4d(0x249)]['focused$'][_0x36de4d(0x3fc)](()=>{const _0x39272d=_0x36de4d;var _0x511dff;const _0xcfdb26=this['_univerInstanceService'][_0x39272d(0x1d4)]();let _0x1c1ca9=(_0x511dff=this[_0x39272d(0x16a)][_0x39272d(0xad)](Vi))!=null?_0x511dff:Wi;_0xcfdb26 instanceof a[_0x39272d(0x208)]&&(_0x1c1ca9=_0xcfdb26[_0x39272d(0x1a6)]),document['title']=_0x1c1ca9;}));}};pe=Bi([at(0x0,a['IUniverInstanceService']),at(0x1,a[_0x5b831f(0x159)])],pe);var Fi=Object[_0x5b831f(0x1e0)],Gi=Object['getOwnPropertyDescriptor'],Yi=(_0xb688d5,_0x127832,_0x17bb6c,_0x2ff716)=>{const _0x20cab1=_0x5b831f;for(var _0x44e038=_0x2ff716>0x1?void 0x0:_0x2ff716?Gi(_0x127832,_0x17bb6c):_0x127832,_0xea5f3c=_0xb688d5[_0x20cab1(0x21d)]-0x1,_0x150fb2;_0xea5f3c>=0x0;_0xea5f3c--)(_0x150fb2=_0xb688d5[_0xea5f3c])&&(_0x44e038=(_0x2ff716?_0x150fb2(_0x127832,_0x17bb6c,_0x44e038):_0x150fb2(_0x44e038))||_0x44e038);return _0x2ff716&&_0x44e038&&Fi(_0x127832,_0x17bb6c,_0x44e038),_0x44e038;},je=(_0x5e2133,_0x568027)=>(_0x24fdea,_0xe5be74)=>_0x568027(_0x24fdea,_0xe5be74,_0x5e2133);let Ce=class{constructor(_0x56fb0e,_0x14568b,_0x26c91e){const _0x1a74a4=_0x5b831f;this[_0x1a74a4(0x16a)]=_0x56fb0e,this['_httpService']=_0x14568b,this[_0x1a74a4(0x2e8)]=_0x26c91e,this['init']();}[_0x5b831f(0x21a)](){const _0x41988c=_0x5b831f;this['_httpService'][_0x41988c(0x2a5)]({'priority':0x1,'interceptor':(_0x4b486d,_0x4961ad)=>_0x4961ad(_0x4b486d)[_0x41988c(0x1a5)](v[_0x41988c(0x122)](async _0x38ae14=>{const _0x360d30=_0x41988c,_0x1ae993=_0x38ae14;if(_0x1ae993[_0x360d30(0x35c)]===0x191&&window[_0x360d30(0x186)](this['localeService']['t'](_0x360d30(0x2d5)))){const _0x2e8edb=window[_0x360d30(0x18e)](window['location'][_0x360d30(0x453)]);window[_0x360d30(0x309)][_0x360d30(0x453)]=this[_0x360d30(0x242)]()+_0x360d30(0x196)+_0x2e8edb;}return _0x1ae993;}))});}['_getLoginPath'](){const _0x42980d=_0x5b831f;var _0x5e2aa6,_0xa3b8c2;const _0x4c48fa=this[_0x42980d(0x16a)][_0x42980d(0xad)](mt),_0x8c1b20=this['_configService'][_0x42980d(0xad)](A);return(_0xa3b8c2=(_0x5e2aa6=_0x8c1b20==null?void 0x0:_0x8c1b20[_0x42980d(0x328)])!=null?_0x5e2aa6:_0x4c48fa)!=null?_0xa3b8c2:es;}};Ce=Yi([je(0x0,a[_0x5b831f(0x159)]),je(0x1,a[_0x5b831f(0x1d9)](P['HTTPService'])),je(0x2,a[_0x5b831f(0x1d9)](a['LocaleService']))],Ce);var Ki=Object[_0x5b831f(0x1e0)],Xi=Object[_0x5b831f(0x31a)],qi=(_0x2d10bd,_0x3d6cab,_0x54f43c,_0x5a0b8b)=>{for(var _0x5932bc=_0x5a0b8b>0x1?void 0x0:_0x5a0b8b?Xi(_0x3d6cab,_0x54f43c):_0x3d6cab,_0x5d2ca6=_0x2d10bd['length']-0x1,_0x26321e;_0x5d2ca6>=0x0;_0x5d2ca6--)(_0x26321e=_0x2d10bd[_0x5d2ca6])&&(_0x5932bc=(_0x5a0b8b?_0x26321e(_0x3d6cab,_0x54f43c,_0x5932bc):_0x26321e(_0x5932bc))||_0x5932bc);return _0x5a0b8b&&_0x5932bc&&Ki(_0x3d6cab,_0x54f43c,_0x5932bc),_0x5932bc;},ct=(_0x5033ea,_0x37c33f)=>(_0x4aa814,_0xb1908c)=>_0x37c33f(_0x4aa814,_0xb1908c,_0x5033ea);const wt=_0x5b831f(0x400),zi=_0x5b831f(0x169);exports[_0x5b831f(0x460)]=class extends a['Disposable']{constructor(_0x40fdc1,_0x4538e1){const _0x2680b3=_0x5b831f;super(),this[_0x2680b3(0x334)]=_0x40fdc1,this[_0x2680b3(0x16a)]=_0x4538e1,this[_0x2680b3(0x92)]();}[_0x5b831f(0x92)](){const _0x10bf6a=_0x5b831f,_0x157af9=this;this[_0x10bf6a(0x37a)](this[_0x10bf6a(0x334)][_0x10bf6a(0x2a5)]({'priority':0x3e7,'interceptor':P[_0x10bf6a(0x2f4)]({'isMatch'(_0x3c0ae2){const _0x37b7d4=_0x10bf6a;var _0x5a6124;if(_0x3c0ae2[_0x37b7d4(0x331)]===_0x37b7d4(0x312)&&((_0x5a6124=_0x3c0ae2[_0x37b7d4(0x17a)])!=null&&_0x5a6124[_0x37b7d4(0x15c)])){const {objectID:_0x3113f3,objectType:_0x43c27a}=_0x3c0ae2[_0x37b7d4(0x17a)][_0x37b7d4(0x15c)]||{};if(!_0x3113f3||_0x43c27a===void 0x0)return!0x1;const _0x3abdef=_0x157af9[_0x37b7d4(0x32c)]()+'/'+_0x43c27a+'/object/'+_0x3113f3+'/allowed';if(_0x3c0ae2['url']===_0x3abdef)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2d92e6){const _0x101d64=_0x10bf6a;var _0x41e9f1;return(_0x41e9f1=_0x2d92e6[_0x101d64(0x17a)])==null?void 0x0:_0x41e9f1[_0x101d64(0x15c)];},'mergeParamsToRequest'(_0x398f78,_0x2ec090){const _0x44b921=_0x10bf6a,_0x1ffb94=_0x157af9['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x4658d5=_0x398f78[_0x44b921(0xb3)]((_0x5e726f,_0x4d88cb)=>{const _0x34e869=_0x44b921,{unitID:_0x3ad991,objectID:_0x44c9f3,objectType:_0x4ef929,actions:_0x889400}=_0x4d88cb;return _0x5e726f[_0x3ad991]||(_0x5e726f[_0x3ad991]={}),_0x5e726f[_0x3ad991][_0x44c9f3]||(_0x5e726f[_0x3ad991][_0x44c9f3]={'objectID':_0x44c9f3,'objectType':_0x4ef929,'actions':[]}),_0x5e726f[_0x3ad991][_0x44c9f3]['actions'][_0x34e869(0x17d)](..._0x889400),_0x5e726f;},{}),_0x45e01d=[];for(const _0x54530c in _0x4658d5)for(const _0x470f3a in _0x4658d5[_0x54530c]){const {actions:_0x2b1f90,objectType:_0x113e3a}=_0x4658d5[_0x54530c][_0x470f3a],_0x4946b8=[...new Set(_0x2b1f90)];_0x45e01d[_0x44b921(0x17d)]({'unitID':_0x54530c,'objectID':_0x470f3a,'objectType':_0x113e3a,'actions':_0x4946b8});}return new P[(_0x44b921(0x438))](_0x44b921(0x312),_0x1ffb94,{'headers':_0x2ec090[_0x44b921(0x28a)],'withCredentials':_0x2ec090[_0x44b921(0x442)],'responseType':_0x2ec090[_0x44b921(0x3ec)],'body':{'requests':_0x45e01d}});}},{'distributeResult'(_0x156d06,_0x253769){const _0x53ae7c=_0x10bf6a,{objectActions:_0x1b6309}=_0x156d06;return _0x253769[_0x53ae7c(0x31d)](_0x1f5fec=>{const _0x4f96bb=_0x53ae7c,{unitID:_0x1966e2,objectID:_0x4755cb,actions:_0x3b48b8}=_0x1f5fec,_0x5aae2b=_0x1b6309[_0x4f96bb(0x126)](_0x2a37e8=>_0x2a37e8['unitID']===_0x1966e2&&_0x2a37e8[_0x4f96bb(0x144)]===_0x4755cb),_0x21cec1=_0x3b48b8['map'](_0x34fbc1=>_0x5aae2b==null?void 0x0:_0x5aae2b[_0x4f96bb(0x274)]['find'](_0x4b313c=>_0x4b313c[_0x4f96bb(0x1f6)]===_0x34fbc1))[_0x4f96bb(0x321)](_0x2118bb=>!!_0x2118bb);return{'config':_0x1f5fec,'result':{'actions':_0x21cec1,'error':_0x156d06[_0x4f96bb(0xa7)]}};});}})}));}[_0x5b831f(0x32c)](){const _0x33286a=_0x5b831f;var _0x11047b,_0x5836a4;const _0x3b90db=this['_configService'][_0x33286a(0xad)](wt),_0x335f6c=this[_0x33286a(0x16a)][_0x33286a(0xad)](A);return(_0x5836a4=(_0x11047b=_0x335f6c==null?void 0x0:_0x335f6c[_0x33286a(0x363)])!=null?_0x11047b:_0x3b90db)!=null?_0x5836a4:zi;}async[_0x5b831f(0x160)](_0x586a6c){const _0x52f8a2=_0x5b831f,_0x76cc25=this[_0x52f8a2(0x32c)]()+'/'+_0x586a6c[_0x52f8a2(0x26e)]+_0x52f8a2(0x91);return(await this[_0x52f8a2(0x334)][_0x52f8a2(0x357)](_0x76cc25,{'body':_0x586a6c}))['body'][_0x52f8a2(0x144)]||'';}async[_0x5b831f(0x492)](_0x2f71c8){const _0x3ebf90=_0x5b831f,_0x130bb5=this[_0x3ebf90(0x32c)]()+_0x3ebf90(0x177);return(await this['_HTTPService'][_0x3ebf90(0x357)](_0x130bb5,{'body':_0x2f71c8}))[_0x3ebf90(0x15c)][_0x3ebf90(0x150)];}async[_0x5b831f(0x1ce)](_0x2faac0){const _0x22037b=_0x5b831f,_0x26a623=this[_0x22037b(0x32c)]()+'/'+_0x2faac0[_0x22037b(0x26e)]+'/object/'+_0x2faac0[_0x22037b(0x144)];await this[_0x22037b(0x334)][_0x22037b(0x3e5)](_0x26a623,{'body':_0x2faac0});}async[_0x5b831f(0x3bf)](_0x4cc233){const _0x122513=_0x5b831f,_0x17647d=this[_0x122513(0x32c)]()+'/'+_0x4cc233[_0x122513(0x26e)]+_0x122513(0x12e)+_0x4cc233[_0x122513(0x144)]+'/allowed';return(await this['_HTTPService']['post'](_0x17647d,{'body':_0x4cc233}))['body']['actions'];}async[_0x5b831f(0x44b)](_0x6bd6ea){const _0x2c299c=_0x5b831f,_0x35fd06=this['_getAPIPrefixPath']()+_0x2c299c(0x147);return(await this['_HTTPService']['post'](_0x35fd06,{'body':{'requests':_0x6bd6ea}}))[_0x2c299c(0x15c)][_0x2c299c(0x12b)];}async['listRoles'](_0xdb8f40){const _0x38b932=_0x5b831f,_0x25bcb7=this[_0x38b932(0x32c)]()+'/'+_0xdb8f40[_0x38b932(0x26e)]+'/role',_0x50f11b=await this['_HTTPService'][_0x38b932(0x357)](_0x25bcb7,{'body':_0xdb8f40});return{'roles':_0x50f11b['body'][_0x38b932(0x3a9)],'actions':_0x50f11b[_0x38b932(0x15c)]['actions']};}async[_0x5b831f(0x3bd)](_0x2ae85e){const _0x4300da=_0x5b831f,_0x4575cc=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x4300da(0x334)][_0x4300da(0x344)](_0x4575cc,{'params':{'collaboratorID':_0x2ae85e[_0x4300da(0x2c6)],'objectID':_0x2ae85e[_0x4300da(0x144)],'unitID':_0x2ae85e[_0x4300da(0x311)]}});}async[_0x5b831f(0x197)](_0x46c6da){const _0x3056bf=_0x5b831f,_0x33f96b=this[_0x3056bf(0x32c)]()+'/collaborator';await this[_0x3056bf(0x334)][_0x3056bf(0x376)](_0x33f96b,{'body':_0x46c6da});}async[_0x5b831f(0x1be)](_0x20d5ab){const _0x3feafa=_0x5b831f,_0x5b3454=this[_0x3feafa(0x32c)]()+'/collaborator';await this[_0x3feafa(0x334)][_0x3feafa(0x357)](_0x5b3454,{'body':_0x20d5ab});}async[_0x5b831f(0x259)](_0x523449){const _0x5e1f6b=_0x5b831f,_0x40c946=this[_0x5e1f6b(0x32c)]()+_0x5e1f6b(0x38f);return(await this[_0x5e1f6b(0x334)][_0x5e1f6b(0x28f)](_0x40c946,{'params':{'objectID':_0x523449[_0x5e1f6b(0x144)],'unitID':_0x523449[_0x5e1f6b(0x311)]}}))[_0x5e1f6b(0x15c)][_0x5e1f6b(0x275)];}async['putCollaborators'](_0x1a9545){const _0x26b747=_0x5b831f,_0x3b3922=this[_0x26b747(0x32c)]()+_0x26b747(0x38f);await this['_HTTPService'][_0x26b747(0x3e5)](_0x3b3922,{'body':_0x1a9545});}},exports['AuthzIoHttpService']=qi([ct(0x0,a[_0x5b831f(0x1d9)](P[_0x5b831f(0x7b)])),ct(0x1,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x159)]))],exports[_0x5b831f(0x460)]);var Ji=Object[_0x5b831f(0x1e0)],Zi=Object[_0x5b831f(0x31a)],Qi=(_0x462c83,_0x3c037c,_0x1c3d1a,_0x2256e3)=>{for(var _0x31994e=_0x2256e3>0x1?void 0x0:_0x2256e3?Zi(_0x3c037c,_0x1c3d1a):_0x3c037c,_0x452ae7=_0x462c83['length']-0x1,_0x442dfd;_0x452ae7>=0x0;_0x452ae7--)(_0x442dfd=_0x462c83[_0x452ae7])&&(_0x31994e=(_0x2256e3?_0x442dfd(_0x3c037c,_0x1c3d1a,_0x31994e):_0x442dfd(_0x31994e))||_0x31994e);return _0x2256e3&&_0x31994e&&Ji(_0x3c037c,_0x1c3d1a,_0x31994e),_0x31994e;},en=(_0x58c82e,_0x6f5236)=>(_0x3e20ae,_0xa432be)=>_0x6f5236(_0x3e20ae,_0xa432be,_0x58c82e);let Ee=class{constructor(_0x471d45){const _0x1321d9=_0x5b831f;this[_0x1321d9(0x2c2)]=_0x471d45,this[_0x1321d9(0x295)]();}[_0x5b831f(0x295)](){const _0x192d35=_0x5b831f;this[_0x192d35(0x2c2)][_0x192d35(0x2a5)]({'interceptor':(_0x2cb7a5,_0x32a489)=>{const _0x458a40=_0x192d35,_0xd0ee1b=_0x2cb7a5[_0x458a40(0x28a)],_0x277de4=Ft['getAttachHeader']();return _0x277de4&&_0xd0ee1b['set']('x-univer-host',_0x277de4),_0x32a489(_0x2cb7a5);}});}};Ee=Qi([en(0x0,a[_0x5b831f(0x1d9)](P[_0x5b831f(0x7b)]))],Ee);function _0x49eb(_0x49d36e,_0x2fc0da){const _0x31dbf6=_0x31db();return _0x49eb=function(_0x49eb4e,_0x248d67){_0x49eb4e=_0x49eb4e-0x76;let _0x25f999=_0x31dbf6[_0x49eb4e];return _0x25f999;},_0x49eb(_0x49d36e,_0x2fc0da);}var tn=Object['defineProperty'],sn=Object[_0x5b831f(0x31a)],nn=(_0x5785e1,_0x2444e4,_0xe99ce9,_0x536bf5)=>{const _0x592d60=_0x5b831f;for(var _0x9f7ca0=_0x536bf5>0x1?void 0x0:_0x536bf5?sn(_0x2444e4,_0xe99ce9):_0x2444e4,_0x26f955=_0x5785e1[_0x592d60(0x21d)]-0x1,_0x49a11b;_0x26f955>=0x0;_0x26f955--)(_0x49a11b=_0x5785e1[_0x26f955])&&(_0x9f7ca0=(_0x536bf5?_0x49a11b(_0x2444e4,_0xe99ce9,_0x9f7ca0):_0x49a11b(_0x9f7ca0))||_0x9f7ca0);return _0x536bf5&&_0x9f7ca0&&tn(_0x2444e4,_0xe99ce9,_0x9f7ca0),_0x9f7ca0;},$e=(_0xc728e8,_0x48b932)=>(_0x480be2,_0x4f8237)=>_0x48b932(_0x480be2,_0x4f8237,_0xc728e8);const rn=[_0x5b831f(0x445),'image/jpeg',_0x5b831f(0x84),'image/gif','image/bmp'],on=0x5*0x400*0x400,an='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',cn='/universer-api/stream/file/upload',ln=_0x5b831f(0xe8),hn=_0x5b831f(0x490);exports['ImageIoService']=class{constructor(_0x2cad2c,_0xf547bc,_0x78791c){const _0x179962=_0x5b831f;d(this,_0x179962(0xb1),0x0),d(this,_0x179962(0xd1),new v[(_0x179962(0xf0))]()),d(this,_0x179962(0x213),this[_0x179962(0xd1)]),d(this,'_imageSourceCache',new Map()),(this[_0x179962(0x2c2)]=_0x2cad2c,this[_0x179962(0x16a)]=_0xf547bc,this[_0x179962(0x249)]=_0x78791c);}[_0x5b831f(0x495)](_0x59e5bc){const _0x1854fa=_0x5b831f;this['_waitCount']=_0x59e5bc,this[_0x1854fa(0xd1)][_0x1854fa(0x2b2)](_0x59e5bc);}[_0x5b831f(0x1ec)](_0x334b07,_0x17282a){const _0x3e8a08=_0x5b831f;if(_0x17282a===L[_0x3e8a08(0x114)][_0x3e8a08(0xdb)]){const _0x3cd204=new Image();return _0x3cd204[_0x3e8a08(0x48f)]=_0x334b07,_0x3cd204;}return this['_imageSourceCache'][_0x3e8a08(0x28f)](_0x334b07);}[_0x5b831f(0x429)](_0x2d193a,_0x475983,_0x43b583){const _0x91635d=_0x5b831f;_0x475983===L[_0x91635d(0x114)]['BASE64']||_0x43b583==null||this['_imageSourceCache'][_0x91635d(0x46d)](_0x2d193a,_0x43b583);}async[_0x5b831f(0x1e7)](_0x58d21d){const _0x58fbcc=_0x5b831f;try{const _0x305a21=this[_0x58fbcc(0x268)](this[_0x58fbcc(0x146)](),''+_0x58d21d),_0x19a934=(await this[_0x58fbcc(0x2c2)][_0x58fbcc(0x28f)](_0x305a21))[_0x58fbcc(0x15c)];if(_0x19a934[_0x58fbcc(0xa7)]&&_0x19a934['error'][_0x58fbcc(0x42b)]===It['OK']){const _0x3c13cc=new URL(_0x19a934['url'],this['_getDownloadEndpointURL']())[_0x58fbcc(0x216)]();return Promise['resolve'](_0x3c13cc);}return Promise[_0x58fbcc(0xb7)](_0x19a934[_0x58fbcc(0xa7)]);}catch(_0x28fcb8){return Promise[_0x58fbcc(0xb7)](_0x28fcb8);}}async[_0x5b831f(0x1bf)](_0x36c61b){const _0x2f3f10=_0x5b831f;let _0x4d8ac7='';if(!rn['includes'](_0x36c61b['type']))return this[_0x2f3f10(0x481)](),Promise[_0x2f3f10(0xb7)](new Error(L[_0x2f3f10(0x378)][_0x2f3f10(0x15d)]));if(_0x36c61b[_0x2f3f10(0x16b)]>on)return this['_decreaseWaiting'](),Promise['reject'](new Error(L['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{const _0x45198f=new FormData();_0x45198f['append'](_0x2f3f10(0x291),_0x36c61b);const _0x3f825b=this[_0x2f3f10(0x249)]['getFocusedUnit'](),_0x162fd3=_0x3f825b==null?void 0x0:_0x3f825b[_0x2f3f10(0xa3)]();if(!_0x162fd3)throw new Error(_0x2f3f10(0x3c3));const _0x246298=this[_0x2f3f10(0x18a)]()+_0x2f3f10(0x205)+_0x36c61b[_0x2f3f10(0x16b)][_0x2f3f10(0x216)]()+'&source='+pt[_0x2f3f10(0x3b1)]+_0x2f3f10(0x134)+encodeURIComponent(_0x162fd3),_0x499629=await(await fetch(_0x246298,{'method':_0x2f3f10(0x312),'body':_0x45198f}))[_0x2f3f10(0x476)]();if(typeof _0x499629[_0x2f3f10(0x1ba)]!='string')return this[_0x2f3f10(0x481)](),Promise[_0x2f3f10(0xb7)](new Error(L[_0x2f3f10(0x378)]['ERROR_IMAGE']));_0x4d8ac7=_0x499629[_0x2f3f10(0x1ba)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x2f3f10(0x378)][_0x2f3f10(0x2df)]));}return new Promise((_0x54ec23,_0x32bd13)=>{const _0x1af0d3=_0x2f3f10,_0x564e1f=new FileReader();_0x564e1f[_0x1af0d3(0x1e5)](_0x36c61b),_0x564e1f['onload']=_0xef8d2d=>{const _0x28d192=_0x1af0d3;var _0x1bda22;const _0xaf369a=(_0x1bda22=_0xef8d2d[_0x28d192(0x397)])==null?void 0x0:_0x1bda22[_0x28d192(0x3c4)];if(_0xaf369a==null){this[_0x28d192(0x481)](),_0x32bd13(new Error(L[_0x28d192(0x378)][_0x28d192(0x2df)]));return;}const _0x1ffe9e=a[_0x28d192(0x17b)][_0x28d192(0x247)](0x6);_0x54ec23({'imageId':_0x1ffe9e,'imageSourceType':L[_0x28d192(0x114)][_0x28d192(0x133)],'source':_0x4d8ac7,'base64Cache':_0xaf369a,'status':L['ImageUploadStatusType'][_0x28d192(0xe6)]}),this['_decreaseWaiting']();};});}[_0x5b831f(0x18a)](){const _0xed7dae=_0x5b831f;var _0xdbb447,_0x411057;const _0x1b386f=this[_0xed7dae(0x16a)][_0xed7dae(0xad)](an),_0x4d50aa=this[_0xed7dae(0x16a)][_0xed7dae(0xad)](A);return(_0x411057=(_0xdbb447=_0x4d50aa==null?void 0x0:_0x4d50aa[_0xed7dae(0x1ac)])!=null?_0xdbb447:_0x1b386f)!=null?_0x411057:cn;}[_0x5b831f(0x146)](){const _0xc25a01=_0x5b831f;var _0x57a42c,_0x3eb6c7;const _0x1c5995=this[_0xc25a01(0x16a)][_0xc25a01(0xad)](ln),_0x7ce4cd=this[_0xc25a01(0x16a)][_0xc25a01(0xad)](A);return(_0x3eb6c7=(_0x57a42c=_0x7ce4cd==null?void 0x0:_0x7ce4cd[_0xc25a01(0x2eb)])!=null?_0x57a42c:_0x1c5995)!=null?_0x3eb6c7:hn;}[_0x5b831f(0x3f3)](){const _0x585072=_0x5b831f;var _0x17a743;const _0x30cee5=this[_0x585072(0x16a)][_0x585072(0xad)](A);return(_0x17a743=_0x30cee5==null?void 0x0:_0x30cee5[_0x585072(0x24e)])!=null?_0x17a743:location[_0x585072(0x3a7)];}[_0x5b831f(0x268)](_0x20ab9c,_0x118ccc){const _0x2eb1cf=_0x5b831f;return _0x20ab9c[_0x2eb1cf(0x3e4)](_0x2eb1cf(0x15f),_0x118ccc);}['_decreaseWaiting'](){const _0x443491=_0x5b831f;this[_0x443491(0xb1)]-=0x1,this['_change$']['next'](this[_0x443491(0xb1)]);}},exports[_0x5b831f(0x350)]=nn([$e(0x0,a[_0x5b831f(0x1d9)](P['HTTPService'])),$e(0x1,a[_0x5b831f(0x159)]),$e(0x2,a[_0x5b831f(0x1d9)](a['IUniverInstanceService']))],exports['ImageIoService']);var _n=Object[_0x5b831f(0x1e0)],un=Object[_0x5b831f(0x31a)],dn=(_0x30737a,_0x1daf3c,_0x5d6d17,_0x2ba9ea)=>{const _0x35c339=_0x5b831f;for(var _0x4b0eee=_0x2ba9ea>0x1?void 0x0:_0x2ba9ea?un(_0x1daf3c,_0x5d6d17):_0x1daf3c,_0x34b64e=_0x30737a[_0x35c339(0x21d)]-0x1,_0x5a5ab1;_0x34b64e>=0x0;_0x34b64e--)(_0x5a5ab1=_0x30737a[_0x34b64e])&&(_0x4b0eee=(_0x2ba9ea?_0x5a5ab1(_0x1daf3c,_0x5d6d17,_0x4b0eee):_0x5a5ab1(_0x4b0eee))||_0x4b0eee);return _0x2ba9ea&&_0x4b0eee&&_n(_0x1daf3c,_0x5d6d17,_0x4b0eee),_0x4b0eee;},he=(_0x4aeccf,_0x420384)=>(_0x4a62ce,_0x3b693f)=>_0x420384(_0x4a62ce,_0x3b693f,_0x4aeccf);let be=class extends a[_0x5b831f(0x494)]{constructor(_0x58703f,_0x1f4966,_0xec2e4f,_0x23c694,_0x3a84f0){const _0x18dd11=_0x5b831f;super(),this['_injector']=_0x58703f,this[_0x18dd11(0x249)]=_0x1f4966,this[_0x18dd11(0xf7)]=_0xec2e4f,this[_0x18dd11(0x136)]=_0x23c694,this[_0x18dd11(0x284)]=_0x3a84f0,this[_0x18dd11(0x386)](),this[_0x18dd11(0x1f7)]();}[_0x5b831f(0x1f7)](){const _0x198a96=_0x5b831f,_0xbc6c32=async _0x725742=>{const _0x23958d=_0x49eb;(await this[_0x23958d(0x136)]['requireSession'](_0x725742))[_0x23958d(0x27c)][_0x23958d(0x1a5)](E[_0x23958d(0x321)](_0x15f7c1=>_0x15f7c1[_0x23958d(0x182)]===_[_0x23958d(0x270)]['SHOULD_CLOSE_CONN']),E[_0x23958d(0xec)](this[_0x23958d(0x25c)]))[_0x23958d(0x3fc)](_0x372d01=>{const _0x15b5d6=_0x23958d,_0x7d7dfd=_0x372d01,{reason:_0x49bef3}=_0x7d7dfd[_0x15b5d6(0xcd)];this[_0x15b5d6(0x1f9)][_0x15b5d6(0x28f)](N[_0x15b5d6(0x16f)])['show']({'type':X[_0x15b5d6(0x2a0)][_0x15b5d6(0x163)],'content':this[_0x15b5d6(0x284)]['t']('collaboration.closeRoom')+'('+_0x49bef3+')'}),this['_permissionService'][_0x15b5d6(0x2fb)](new C[(_0x15b5d6(0x40b))](_0x725742)['id'],!0x1),this['_collaborationSessionService'][_0x15b5d6(0x3f5)](_0x725742);});};v[_0x198a96(0x103)](this[_0x198a96(0x249)][_0x198a96(0x2c3)](a[_0x198a96(0x12d)][_0x198a96(0x102)]),this[_0x198a96(0x249)][_0x198a96(0x2c3)](a[_0x198a96(0x12d)]['UNIVER_DOC']))['pipe'](E[_0x198a96(0x31d)](_0x4900c0=>_0x4900c0[_0x198a96(0xa3)]()),E['filter'](_0x40870a=>!a['isInternalEditorID'](_0x40870a)),E[_0x198a96(0xec)](this['dispose$']))[_0x198a96(0x3fc)](_0x1dcfa7=>{_0xbc6c32(_0x1dcfa7);});}[_0x5b831f(0x386)](){const _0x183597=_0x5b831f,_0x19d010=async _0x14561f=>{const _0x37973e=_0x49eb;(await this['_collaborationSessionService'][_0x37973e(0x82)](_0x14561f))['event$']['pipe'](E['filter'](_0x2176c7=>_0x2176c7[_0x37973e(0x182)]===_[_0x37973e(0x270)][_0x37973e(0x155)]),E[_0x37973e(0xec)](this[_0x37973e(0x25c)]))[_0x37973e(0x3fc)](_0x4dae73=>{const _0x43ed9d=_0x37973e,_0x3f2242=_0x4dae73,{objectId:_0x172374}=_0x3f2242[_0x43ed9d(0xcd)],_0x52d1cb=this[_0x43ed9d(0x1f9)]['get'](te[_0x43ed9d(0x299)]);_0x172374===_0x14561f?_0x52d1cb[_0x43ed9d(0x302)](_0x14561f):_0x52d1cb[_0x43ed9d(0x39f)](_0x14561f,_0x172374);});};v[_0x183597(0x103)](this[_0x183597(0x249)][_0x183597(0x2c3)](a[_0x183597(0x12d)][_0x183597(0x102)]),this['_univerInstanceService'][_0x183597(0x2c3)](a[_0x183597(0x12d)][_0x183597(0x192)]))[_0x183597(0x1a5)](E[_0x183597(0x31d)](_0x3801d7=>_0x3801d7['getUnitId']()),E[_0x183597(0x321)](_0x560549=>!a['isInternalEditorID'](_0x560549)),E[_0x183597(0xec)](this['dispose$']))['subscribe'](_0x26509a=>{_0x19d010(_0x26509a);});}};be=dn([he(0x0,a['Inject'](a[_0x5b831f(0x2b9)])),he(0x1,a[_0x5b831f(0x3c0)]),he(0x2,a['IPermissionService']),he(0x3,a['Inject'](exports[_0x5b831f(0x47e)])),he(0x4,a[_0x5b831f(0x1d9)](a['LocaleService']))],be);var Sn=Object[_0x5b831f(0x1e0)],vn=Object[_0x5b831f(0x31a)],gn=(_0x5edbf0,_0x586180,_0x5f2fa1,_0x21ef79)=>{const _0x29d978=_0x5b831f;for(var _0x418d0e=_0x21ef79>0x1?void 0x0:_0x21ef79?vn(_0x586180,_0x5f2fa1):_0x586180,_0x3fb7f4=_0x5edbf0[_0x29d978(0x21d)]-0x1,_0x8d4b1c;_0x3fb7f4>=0x0;_0x3fb7f4--)(_0x8d4b1c=_0x5edbf0[_0x3fb7f4])&&(_0x418d0e=(_0x21ef79?_0x8d4b1c(_0x586180,_0x5f2fa1,_0x418d0e):_0x8d4b1c(_0x418d0e))||_0x418d0e);return _0x21ef79&&_0x418d0e&&Sn(_0x586180,_0x5f2fa1,_0x418d0e),_0x418d0e;},lt=(_0x284803,_0x2cd8b3)=>(_0x5b9072,_0xd70170)=>_0x2cd8b3(_0x5b9072,_0xd70170,_0x284803);exports[_0x5b831f(0x2e3)]=class{constructor(_0x3103f3,_0x3321d9){const _0x405b38=_0x5b831f;this[_0x405b38(0x16a)]=_0x3103f3,this[_0x405b38(0x2c2)]=_0x3321d9;}async[_0x5b831f(0x130)](_0x93e887,_0x21502e){const _0x27ba3a=_0x5b831f;var _0x1caf1f;const {unitID:_0x49a012,type:_0x1eb846,revision:_0x3b18c6=0x0}=_0x21502e,_0x487e77=this[_0x27ba3a(0x27b)]()+'/'+_0x1eb846+_0x27ba3a(0x32a)+_0x49a012+_0x27ba3a(0x8e)+_0x3b18c6,_0x88bc67=(await this['_httpService']['get'](_0x487e77))[_0x27ba3a(0x15c)],_0x454cb9=(_0x1caf1f=_0x88bc67[_0x27ba3a(0x402)])==null?void 0x0:_0x1caf1f[_0x27ba3a(0x43e)];if(_0x454cb9){const _0x44c570=_0x454cb9==null?void 0x0:_0x454cb9[_0x27ba3a(0xce)],_0x1b98de=_['textEncoder']['encode'](_[_0x27ba3a(0x276)](_0x44c570));_0x454cb9[_0x27ba3a(0xce)]=_0x1b98de,Object[_0x27ba3a(0x153)](_0x454cb9[_0x27ba3a(0x1a8)])[_0x27ba3a(0x1b5)](([,_0x439d71])=>{const _0x2360c6=_0x27ba3a,_0x4d758e=_0x439d71[_0x2360c6(0xce)],_0x39cd84=_[_0x2360c6(0x454)][_0x2360c6(0x3f9)](_[_0x2360c6(0x276)](_0x4d758e));_0x439d71['originalMeta']=_0x39cd84;});}return _0x88bc67;}async[_0x5b831f(0x384)](_0x165219,_0x160354){const _0x3b62e5=_0x5b831f,{unitID:_0x50e949,type:_0x4fd796,blockID:_0x664568}=_0x160354,_0x3b4a81=this[_0x3b62e5(0xa4)]()+'/'+_0x4fd796+_0x3b62e5(0x32a)+_0x50e949+_0x3b62e5(0x3de)+_0x664568;return(await this[_0x3b62e5(0x2c2)][_0x3b62e5(0x28f)](_0x3b4a81))[_0x3b62e5(0x15c)];}async['getDeserializedSheetBlock'](_0x355c6e,_0x3a49d1){const _0x8f858e=_0x5b831f,{unitID:_0x191b7a,type:_0x417a59,blockID:_0x50fe69}=_0x3a49d1,_0x1c1ed1=this[_0x8f858e(0xa4)]()+'/block/'+_0x417a59+'/unit/'+_0x191b7a+_0x8f858e(0x3de)+_0x50fe69;return(await this[_0x8f858e(0x2c2)][_0x8f858e(0x28f)](_0x1c1ed1))['body'];}async[_0x5b831f(0x167)](_0x5c038c,_0x64b03e){const _0x6f1128=_0x5b831f,{unitID:_0x17ab53,type:_0x3ef35a,from:_0x4c5444,to:_0x169533}=_0x64b03e,_0x67b23f=this[_0x6f1128(0xa4)]()+'/'+_0x3ef35a+_0x6f1128(0x32a)+_0x17ab53+_0x6f1128(0x471)+_0x4c5444+_0x6f1128(0x3c8)+_0x169533;return(await this['_httpService'][_0x6f1128(0x28f)](_0x67b23f))['body'];}[_0x5b831f(0x27b)](){const _0x5c2c73=_0x5b831f;var _0x20bc1e;return(_0x20bc1e=this[_0x5c2c73(0x16a)][_0x5c2c73(0xad)](_t))!=null?_0x20bc1e:this[_0x5c2c73(0xa4)]();}[_0x5b831f(0xa4)](){const _0x206052=_0x5b831f;var _0xe54079,_0x20496c;const _0x5a1c62=this[_0x206052(0x16a)]['getConfig'](ht),_0x14864d=this[_0x206052(0x16a)][_0x206052(0xad)](A);return(_0x20496c=(_0xe54079=_0x14864d==null?void 0x0:_0x14864d['snapshotServerUrl'])!=null?_0xe54079:_0x5a1c62)!=null?_0x20496c:Gt;}async[_0x5b831f(0xd7)](_0x10acf5,_0x4b1adc){const _0x3e8742=_0x5b831f,_0x369aea='/universer-api/snapshot/'+_0x4b1adc['type']+_0x3e8742(0x32a)+_0x4b1adc['unitID']+_0x3e8742(0x13e);return(await this[_0x3e8742(0x2c2)][_0x3e8742(0x28f)](_0x369aea,{'params':{'resourceId':JSON[_0x3e8742(0x1af)](_0x4b1adc[_0x3e8742(0x1c3)])}}))[_0x3e8742(0x15c)];}[_0x5b831f(0x26f)](){const _0x2f1cdb=_0x5b831f;throw new Error(_0x2f1cdb(0x33a));}[_0x5b831f(0x310)](){const _0x194731=_0x5b831f;throw new Error(_0x194731(0x33a));}[_0x5b831f(0x30f)](){const _0x29290c=_0x5b831f;throw new Error(_0x29290c(0x33a));}[_0x5b831f(0x8d)](){const _0x5ca57f=_0x5b831f;throw new Error(_0x5ca57f(0x33a));}},exports[_0x5b831f(0x2e3)]=gn([lt(0x0,a[_0x5b831f(0x159)]),lt(0x1,a['Inject'](P['HTTPService']))],exports[_0x5b831f(0x2e3)]);var fn=Object['defineProperty'],mn=Object[_0x5b831f(0x31a)],In=(_0x304fd2,_0x1610fa,_0xfad09,_0x1e9d67)=>{const _0xbb310f=_0x5b831f;for(var _0x31406d=_0x1e9d67>0x1?void 0x0:_0x1e9d67?mn(_0x1610fa,_0xfad09):_0x1610fa,_0x1169a2=_0x304fd2[_0xbb310f(0x21d)]-0x1,_0x4edb35;_0x1169a2>=0x0;_0x1169a2--)(_0x4edb35=_0x304fd2[_0x1169a2])&&(_0x31406d=(_0x1e9d67?_0x4edb35(_0x1610fa,_0xfad09,_0x31406d):_0x4edb35(_0x31406d))||_0x31406d);return _0x1e9d67&&_0x31406d&&fn(_0x1610fa,_0xfad09,_0x31406d),_0x31406d;},_e=(_0x2147c6,_0x123b69)=>(_0x56ce32,_0x379757)=>_0x123b69(_0x56ce32,_0x379757,_0x2147c6);let Be=class extends a[_0x5b831f(0xc1)]{constructor(_0x2d251e,_0x5bb2f2,_0x2aa93b,_0x14dc6d,_0x17a1c1){const _0x41306b=_0x5b831f;super(_0x2d251e,_0x5bb2f2,_0x2aa93b),this[_0x41306b(0x44d)]=_0x14dc6d,this['_logService']=_0x17a1c1;}['transformUndoRedo'](_0x44b514,_0x186e22){const _0x27e45a=_0x5b831f,_0x5e2537=this['_getUndoStack'](_0x44b514);if(_0x5e2537)try{const _0x44634c=this[_0x27e45a(0x2c5)](_0x5e2537,_0x186e22);this[_0x27e45a(0xda)](_0x44b514,_0x44634c);}catch(_0xf22c7a){this['_logService'][_0x27e45a(0xa7)](_0x27e45a(0x30a),_0xf22c7a),this['_clearUndo'](_0x44b514);}const _0x2a54d5=this[_0x27e45a(0x324)](_0x44b514);if(_0x2a54d5)try{const _0x5bbac8=this[_0x27e45a(0x2c5)](_0x2a54d5,_0x186e22);this[_0x27e45a(0x23e)](_0x44b514,_0x5bbac8);}catch(_0x5dfcb9){this[_0x27e45a(0x271)]['error'](_0x5dfcb9),this[_0x27e45a(0x478)](_0x44b514);}}[_0x5b831f(0x210)](_0x128092){const _0x4a0642=_0x5b831f,_0x2665a4=this[_0x4a0642(0x1fb)](_0x128092);_0x2665a4&&(_0x2665a4[_0x4a0642(0x21d)]=0x0,this['_updateStatus']());}[_0x5b831f(0x478)](_0x5af6a8){const _0x563f17=_0x5b831f,_0xfc4de8=this[_0x563f17(0x324)](_0x5af6a8);_0xfc4de8&&(_0xfc4de8[_0x563f17(0x21d)]=0x0,this[_0x563f17(0x293)]());}[_0x5b831f(0xda)](_0x4c29e2,_0x1c43ca){const _0x35ea7e=_0x5b831f;this[_0x35ea7e(0x112)][_0x35ea7e(0x46d)](_0x4c29e2,_0x1c43ca),this[_0x35ea7e(0x293)]();}[_0x5b831f(0x23e)](_0x5a275d,_0x23eff0){const _0x4d25cf=_0x5b831f;this[_0x4d25cf(0x89)]['set'](_0x5a275d,_0x23eff0),this[_0x4d25cf(0x293)]();}['_transformStack'](_0x2294a7,_0xf06115){const _0x2cf2a5=_0x5b831f,_0x4ac137=[];let _0x345769=_0xf06115,_0x589ab5=_0xf06115;for(let _0x1d0c66=_0x2294a7[_0x2cf2a5(0x21d)]-0x1;_0x1d0c66>=0x0;_0x1d0c66--){const {unitID:_0x43274f,undoMutations:_0x502e54,redoMutations:_0x4e011c}=_0x2294a7[_0x1d0c66],_0x16efd2=this[_0x2cf2a5(0x44d)][_0x2cf2a5(0xb9)](_0x345769,_0x502e54),_0x5ccb1a=this[_0x2cf2a5(0x44d)][_0x2cf2a5(0xb9)](_0x589ab5,_0x4e011c);if(_[_0x2cf2a5(0x23a)](_0x16efd2)||_[_0x2cf2a5(0x23a)](_0x5ccb1a)){this[_0x2cf2a5(0x271)][_0x2cf2a5(0xa7)](_0x2cf2a5(0x30a),_0x2cf2a5(0xc4),_0x16efd2,_0x5ccb1a);break;}_0x345769=_0x16efd2[_0x2cf2a5(0x3a8)],_0x589ab5=_0x5ccb1a[_0x2cf2a5(0x3a8)],_0x4ac137['push']({'unitID':_0x43274f,'undoMutations':_0x16efd2[_0x2cf2a5(0x475)],'redoMutations':_0x5ccb1a[_0x2cf2a5(0x475)]});}return _0x4ac137[_0x2cf2a5(0x252)]();}};Be=In([_e(0x0,a[_0x5b831f(0x3c0)]),_e(0x1,a[_0x5b831f(0x317)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x5b831f(0x44a)]),_e(0x4,a['ILogService'])],Be);class Mt extends a[_0x5b831f(0x494)]{constructor(){const _0x3468a8=_0x5b831f;super(),d(this,_0x3468a8(0x307)),this[_0x3468a8(0x307)]=v[_0x3468a8(0x47f)](window,_0x3468a8(0x1c0))[_0x3468a8(0x1a5)](v[_0x3468a8(0xec)](this[_0x3468a8(0x25c)]),v[_0x3468a8(0x193)](0x1),v[_0x3468a8(0x389)](void 0x0));}[_0x5b831f(0x3ab)](_0x4573e1,_0x181550,_0x3c6d54=!0x1){const _0x2f9fdd=_0x5b831f,_0x31808=new URL(window['location']['href']);_0x31808[_0x2f9fdd(0x48a)][_0x2f9fdd(0x46d)](_0x4573e1,_0x181550),_0x3c6d54?window[_0x2f9fdd(0x2d9)][_0x2f9fdd(0x10a)]('','',_0x31808[_0x2f9fdd(0x216)]()):window[_0x2f9fdd(0x2d9)]['pushState']('','',_0x31808[_0x2f9fdd(0x216)]());}[_0x5b831f(0xcc)](_0x2a8cbf,_0x504828=!0x1){const _0x3ae039=_0x5b831f,_0x5504f0=new URL(window[_0x3ae039(0x309)][_0x3ae039(0x453)]);_0x5504f0['searchParams'][_0x3ae039(0x344)](_0x2a8cbf),_0x504828?window[_0x3ae039(0x2d9)]['replaceState']('','',_0x5504f0[_0x3ae039(0x216)]()):window['history'][_0x3ae039(0x8c)]('','',_0x5504f0['toString']());}['getParam'](_0xbe3435){const _0xc17f11=_0x5b831f;var _0x58629c;return(_0x58629c=new URL(window[_0xc17f11(0x309)][_0xc17f11(0x453)])[_0xc17f11(0x48a)][_0xc17f11(0x28f)](_0xbe3435))!=null?_0x58629c:void 0x0;}}var Nt=Object['defineProperty'],pn=Object[_0x5b831f(0x31a)],Cn=(_0x452340,_0xc1d039,_0xaceb0e)=>_0xc1d039 in _0x452340?Nt(_0x452340,_0xc1d039,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xaceb0e}):_0x452340[_0xc1d039]=_0xaceb0e,En=(_0x42a4a0,_0x29b39f,_0x75db35,_0x24563f)=>{const _0x4c9858=_0x5b831f;for(var _0x3e7e4b=_0x24563f>0x1?void 0x0:_0x24563f?pn(_0x29b39f,_0x75db35):_0x29b39f,_0x406c07=_0x42a4a0[_0x4c9858(0x21d)]-0x1,_0x13dd7b;_0x406c07>=0x0;_0x406c07--)(_0x13dd7b=_0x42a4a0[_0x406c07])&&(_0x3e7e4b=(_0x24563f?_0x13dd7b(_0x29b39f,_0x75db35,_0x3e7e4b):_0x13dd7b(_0x3e7e4b))||_0x3e7e4b);return _0x24563f&&_0x3e7e4b&&Nt(_0x29b39f,_0x75db35,_0x3e7e4b),_0x3e7e4b;},ve=(_0x576ee1,_0x54f9d5)=>(_0x549f35,_0x57a0cd)=>_0x54f9d5(_0x549f35,_0x57a0cd,_0x576ee1),bn=(_0x3e92c,_0x101333,_0x1f29ea)=>Cn(_0x3e92c,_0x101333+'',_0x1f29ea);const Tn=_0x5b831f(0x2b8);exports[_0x5b831f(0x199)]=class extends a[_0x5b831f(0x34b)]{constructor(_0x407d79=ts,_0x49664c,_0xc68b79,_0x349c57,_0x1d0519){const _0x5d5758=_0x5b831f;super(),this[_0x5d5758(0x24f)]=_0x407d79,this[_0x5d5758(0x271)]=_0x49664c,this[_0x5d5758(0x287)]=_0xc68b79,this['_injector']=_0x349c57,this[_0x5d5758(0x16a)]=_0x1d0519;const {..._0x6ce125}=this[_0x5d5758(0x24f)];this['_configService'][_0x5d5758(0x11f)](A,_0x6ce125);}[_0x5b831f(0x97)](){const _0x450dcf=_0x5b831f;this[_0x450dcf(0x12c)](),this[_0x450dcf(0x1f9)][_0x450dcf(0x28f)](ie),this[_0x450dcf(0x1f9)][_0x450dcf(0x28f)](exports[_0x450dcf(0xe0)]),this[_0x450dcf(0x1f9)]['get'](be);}[_0x5b831f(0x3d0)](){const _0xd3bd16=_0x5b831f;this[_0xd3bd16(0x1f9)][_0xd3bd16(0x28f)](pe);}['onRendered'](){this['_registerRenderDependencies']();}[_0x5b831f(0x15a)](){const _0x1e631d=_0x5b831f;this['_injector'][_0x1e631d(0x28f)](Ie);}['_registerDependencies'](){const _0x451937=_0x5b831f;var _0x3d4460,_0x4356b1,_0x434d36,_0x1ad954;this[_0x451937(0x1f9)]['has'](a[_0x451937(0x25d)])&&this[_0x451937(0x271)][_0x451937(0xa7)](_0x451937(0x2b7),_0x451937(0x1c7));let _0x5cda75=[[a[_0x451937(0x25d)],{'useClass':Be}],[exports[_0x451937(0x47e)]],[Xe],[P['HTTPService']],[ze,{'useClass':Mt}],[q],[exports['LocalCacheService']],[P[_0x451937(0x131)]],[fe],[me],[ge],[Ye],[Ce],[Ee],[Ge],[be],[Fe,{'useClass':(_0x4356b1=(_0x3d4460=this[_0x451937(0x24f)])==null?void 0x0:_0x3d4460[_0x451937(0x49f)])!=null?_0x4356b1:exports['CollaborationSocketService']}],[P[_0x451937(0x27f)],{'useClass':P['XHRHTTPImplementation']}],[_['ISnapshotServerService'],{'useClass':exports[_0x451937(0x2e3)]}],[a['IAuthzIoService'],{'useClass':exports[_0x451937(0x460)]}],[L[_0x451937(0x412)],{'useClass':exports['ImageIoService']}],[exports['CollaborationController']],[exports[_0x451937(0xe0)]],[exports[_0x451937(0x323)]],[pe],[ie]];(_0x434d36=this[_0x451937(0x24f)])!=null&&_0x434d36[_0x451937(0x2f7)]&&_0x5cda75[_0x451937(0x17d)]([Te,{'useClass':ys}]),_0x5cda75=a[_0x451937(0x1a7)](_0x5cda75,(_0x1ad954=this['_config'])==null?void 0x0:_0x1ad954[_0x451937(0x16e)]),_0x5cda75[_0x451937(0x1b5)](_0x5d152c=>this['_injector'][_0x451937(0x219)](_0x5d152c)),this['_initModules']();}['_registerRenderDependencies'](){const _0x2b4cf9=_0x5b831f;this[_0x2b4cf9(0x37a)](this[_0x2b4cf9(0x287)][_0x2b4cf9(0x228)](a[_0x2b4cf9(0x12d)][_0x2b4cf9(0x192)],[Ie])),this[_0x2b4cf9(0x37a)](this['_renderManagerService'][_0x2b4cf9(0x228)](a[_0x2b4cf9(0x12d)][_0x2b4cf9(0x102)],[ke]));}[_0x5b831f(0xca)](){const _0xf3c9a8=_0x5b831f;var _0x84cbe1,_0x5da2ce;this[_0xf3c9a8(0x1f9)][_0xf3c9a8(0x28f)](P[_0xf3c9a8(0x7b)])[_0xf3c9a8(0x2a5)]({'priority':0x14,'interceptor':P[_0xf3c9a8(0x387)]({'maxParallel':0x6})}),this[_0xf3c9a8(0x1f9)][_0xf3c9a8(0x28f)](Ee),(_0x84cbe1=this['_config'])!=null&&_0x84cbe1[_0xf3c9a8(0x1cf)]||this['_injector'][_0xf3c9a8(0x28f)](exports[_0xf3c9a8(0x269)])[_0xf3c9a8(0x265)](),(_0x5da2ce=this[_0xf3c9a8(0x24f)])!=null&&_0x5da2ce['enableAuthServer']&&this['_injector']['get'](Ce),this[_0xf3c9a8(0x1f9)]['get'](exports[_0xf3c9a8(0x38e)]),this['_injector'][_0xf3c9a8(0x336)](exports[_0xf3c9a8(0x323)])&&this['_injector'][_0xf3c9a8(0x28f)](exports['DesktopCollaborationStatusDisplayController']);}},bn(exports['UniverCollaborationClientPlugin'],'pluginName',Tn),exports[_0x5b831f(0x199)]=En([a['DependentOn'](_[_0x5b831f(0x493)]),ve(0x1,a[_0x5b831f(0x463)]),ve(0x2,R[_0x5b831f(0x143)]),ve(0x3,a[_0x5b831f(0x1d9)](a[_0x5b831f(0x2b9)])),ve(0x4,a['IConfigService'])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=wt,exports[_0x5b831f(0x31c)]=ft,exports[_0x5b831f(0xe4)]=ut,exports[_0x5b831f(0x480)]=y,exports[_0x5b831f(0x301)]=Pt,exports[_0x5b831f(0x2ed)]=Ge,exports[_0x5b831f(0xb8)]=dt,exports[_0x5b831f(0xa0)]=Ve,exports['ICollaborationSocketService']=Fe,exports['IURLService']=ze,exports[_0x5b831f(0x30e)]=gt,exports[_0x5b831f(0x220)]=mt,exports[_0x5b831f(0x99)]=vt,exports['SEND_CHANGESET_TIMEOUT_KEY']=Yt,exports[_0x5b831f(0x374)]=ht,exports['SNAPSHOT_URL_KEY']=_t,exports[_0x5b831f(0xee)]=$,exports['SheetCollabCursorShape']=Ot,exports[_0x5b831f(0x36c)]=Mt,exports[_0x5b831f(0x47b)]=Ct,exports[_0x5b831f(0x35d)]=Et;