@univerjs-pro/collaboration-client 0.4.1-nightly.202410271605 → 0.4.1-nightly.202410291249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +3 -1
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +6 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/auth-server/util.d.ts +1 -0
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
- package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +12 -0
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +19 -17
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x4aaaf0=_0x47ba;(function(_0xb25288,_0x4803be){const _0x3dde52=_0x47ba,_0x277f74=_0xb25288();while(!![]){try{const _0x3701b3=-parseInt(_0x3dde52(0x51c))/0x1*(-parseInt(_0x3dde52(0x57b))/0x2)+parseInt(_0x3dde52(0x40a))/0x3*(parseInt(_0x3dde52(0x2ea))/0x4)+-parseInt(_0x3dde52(0x3fe))/0x5*(-parseInt(_0x3dde52(0x427))/0x6)+-parseInt(_0x3dde52(0x48b))/0x7+parseInt(_0x3dde52(0x35c))/0x8*(parseInt(_0x3dde52(0x518))/0x9)+parseInt(_0x3dde52(0x2dd))/0xa*(-parseInt(_0x3dde52(0x39e))/0xb)+-parseInt(_0x3dde52(0x42f))/0xc*(-parseInt(_0x3dde52(0x29f))/0xd);if(_0x3701b3===_0x4803be)break;else _0x277f74['push'](_0x277f74['shift']());}catch(_0x5b3e6d){_0x277f74['push'](_0x277f74['shift']());}}}(_0x98ab,0xb7bec));var Gt=Object[_0x4aaaf0(0x562)],Yt=(_0x1704e6,_0xb2b0d4,_0x583fa4)=>_0xb2b0d4 in _0x1704e6?Gt(_0x1704e6,_0xb2b0d4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x583fa4}):_0x1704e6[_0xb2b0d4]=_0x583fa4,u=(_0x350e47,_0xca1650,_0x4f030a)=>Yt(_0x350e47,typeof _0xca1650!='symbol'?_0xca1650+'':_0xca1650,_0x4f030a);Object[_0x4aaaf0(0x562)](exports,Symbol[_0x4aaaf0(0x39a)],{'value':_0x4aaaf0(0x598)});const a=require(_0x4aaaf0(0x5ba)),v=require(_0x4aaaf0(0x1b5)),E=require(_0x4aaaf0(0x274)),J=require(_0x4aaaf0(0x5b2)),A=require(_0x4aaaf0(0x260)),U=require(_0x4aaaf0(0x2d6)),_=require(_0x4aaaf0(0x3be)),Kt=require(_0x4aaaf0(0x1b3)),N=require('@univerjs/docs-ui'),C=require('@univerjs/sheets'),O=require('@univerjs/engine-render'),ne=require(_0x4aaaf0(0x3e5)),j=require('@univerjs/drawing'),Qe=require(_0x4aaaf0(0x3fd)),ie=require(_0x4aaaf0(0x307)),y=require('react'),Xt=require('@univerjs/rpc'),qt=require(_0x4aaaf0(0x4cf)),dt=_0x4aaaf0(0x2bf),zt=_0x4aaaf0(0x4fd),St=_0x4aaaf0(0x30c),Jt=_0x4aaaf0(0x2f6),Zt=0x7d0,vt=_0x4aaaf0(0x308),Qt='ws://127.0.0.1:8000/universer-api/comb/connect',mt=_0x4aaaf0(0x316),es=0x7530,Fe=_0x4aaaf0(0x366),gt=0x4e20,ts=0x4e20,ft=_0x4aaaf0(0x4a7),ss=0x3,It=_0x4aaaf0(0x424),is=0x3e8,pt=_0x4aaaf0(0x2e5),ns=_0x4aaaf0(0x364),Ct=_0x4aaaf0(0x594),rs=_0x4aaaf0(0x5de);var Et=(_0x1df6b4=>(_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x242)]=0x0]=_0x4aaaf0(0x242),_0x1df6b4[_0x1df6b4['OK']=0x1]='OK',_0x1df6b4[_0x1df6b4['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x549)]=0x3]=_0x4aaaf0(0x549),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x297)]=0x4]=_0x4aaaf0(0x297),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x393)]=0x5]=_0x4aaaf0(0x393),_0x1df6b4[_0x1df6b4['ALREADY_EXISTS']=0x6]=_0x4aaaf0(0x1f3),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1d0)]=0x7]=_0x4aaaf0(0x1d0),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x527)]=0x8]=_0x4aaaf0(0x527),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x443)]=0x9]=_0x4aaaf0(0x443),_0x1df6b4[_0x1df6b4['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4aaaf0(0x21d),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1f5)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1dd)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x440)]=0x1773]=_0x4aaaf0(0x440),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3e8)]=0x1b59]=_0x4aaaf0(0x3e8),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x555)]=0x1b5a]=_0x4aaaf0(0x555),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3a7)]=0x1b5b]=_0x4aaaf0(0x3a7),_0x1df6b4[_0x1df6b4['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4aaaf0(0x4fb),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x287)]=0x1b5d]=_0x4aaaf0(0x287),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x266)]=0x1f41]=_0x4aaaf0(0x266),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x5ab)]=0x2329]=_0x4aaaf0(0x5ab),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x4eb)]=0x232a]=_0x4aaaf0(0x4eb),_0x1df6b4[_0x1df6b4['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4aaaf0(0x1e3),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3b1)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x503)]=0x232d]=_0x4aaaf0(0x503),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x57c)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1ca)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x530)]=0x2713]=_0x4aaaf0(0x530),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3ad)]=0x2714]=_0x4aaaf0(0x3ad),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x1df6b4))(Et||{}),H=(_0x55f0e2=>(_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x20e)]=0x0]=_0x4aaaf0(0x20e),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x238)]=0x1]=_0x4aaaf0(0x238),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x4d0)]=0x2]=_0x4aaaf0(0x4d0),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x592)]=0x3]=_0x4aaaf0(0x592),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x3e3)]=0x4]=_0x4aaaf0(0x3e3),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x55f0e2))(H||{}),b=(_0x13d56a=>(_0x13d56a[_0x13d56a[_0x4aaaf0(0x541)]=0x0]='UNKNOWN_CMD',_0x13d56a[_0x13d56a[_0x4aaaf0(0x437)]=0x1]=_0x4aaaf0(0x437),_0x13d56a[_0x13d56a[_0x4aaaf0(0x29c)]=0x2]=_0x4aaaf0(0x29c),_0x13d56a[_0x13d56a[_0x4aaaf0(0x523)]=0x3]=_0x4aaaf0(0x523),_0x13d56a[_0x13d56a[_0x4aaaf0(0x20c)]=0x4]=_0x4aaaf0(0x20c),_0x13d56a[_0x13d56a[_0x4aaaf0(0x494)]=0x5]=_0x4aaaf0(0x494),_0x13d56a[_0x13d56a[_0x4aaaf0(0x441)]=0x6]=_0x4aaaf0(0x441),_0x13d56a[_0x13d56a[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x13d56a))(b||{}),Ge=(_0x1b1968=>(_0x1b1968[_0x1b1968[_0x4aaaf0(0x403)]=0x0]=_0x4aaaf0(0x403),_0x1b1968[_0x1b1968['OK']=0x1]='OK',_0x1b1968[_0x1b1968[_0x4aaaf0(0x354)]=0x2]=_0x4aaaf0(0x354),_0x1b1968[_0x1b1968[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x1b1968))(Ge||{}),bt=(_0x5c0751=>(_0x5c0751[_0x5c0751['Undefined']=0x0]=_0x4aaaf0(0x347),_0x5c0751[_0x5c0751[_0x4aaaf0(0x374)]=0x1]=_0x4aaaf0(0x374),_0x5c0751[_0x5c0751['HttpExport']=0x2]=_0x4aaaf0(0x38d),_0x5c0751[_0x5c0751[_0x4aaaf0(0x361)]=0x3]=_0x4aaaf0(0x361),_0x5c0751[_0x5c0751[_0x4aaaf0(0x4bf)]=0x4]=_0x4aaaf0(0x4bf),_0x5c0751[_0x5c0751[_0x4aaaf0(0x417)]=-0x1]='UNRECOGNIZED',_0x5c0751))(bt||{});const $=_0x4aaaf0(0x208),os={};function Tt(_0x49584d){const _0x4fd126=_0x4aaaf0;var _0x5460ce,_0x3b37ed,_0x28b0d8,_0x46ff4e,_0x477598;const _0x279b95=_0x49584d[_0x4fd126(0x2cf)],_0x5217f5=JSON[_0x4fd126(0x249)](_0x279b95);switch(_0x5217f5['cmd']){case b[_0x4fd126(0x494)]:case b['HELLO']:{const _0x34c5fe=_0x5217f5['infoRsp'];return{..._0x5217f5,'data':_0x34c5fe,'cmd':_0x5217f5[_0x4fd126(0x451)]};}case b[_0x4fd126(0x29c)]:{const _0x50eb13=_0x5217f5[_0x4fd126(0x56d)];return{..._0x5217f5,'data':_0x50eb13,'cmd':_0x5217f5['cmd']};}case b['RECV']:{const _0x477b3f=_0x5217f5[_0x4fd126(0x26f)];switch(_0x477b3f[_0x4fd126(0x405)]){case _[_0x4fd126(0x2bb)][_0x4fd126(0x553)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x5460ce=_0x477b3f[_0x4fd126(0x2df)])==null?void 0x0:_0x5460ce['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x540)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x3b37ed=_0x477b3f[_0x4fd126(0x410)])==null?void 0x0:_0x3b37ed['cs']},'cmd':_0x5217f5['cmd']};case _[_0x4fd126(0x2bb)][_0x4fd126(0x258)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x28b0d8=_0x477b3f[_0x4fd126(0x232)])==null?void 0x0:_0x28b0d8['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent']['CHANGESET_REJ']:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x46ff4e=_0x477b3f[_0x4fd126(0x5d6)])==null?void 0x0:_0x46ff4e['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x5d7)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x477598=_0x477b3f['csShouldRetryEvent'])==null?void 0x0:_0x477598['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x1d5)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x5ae)]},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent'][_0x4fd126(0x475)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x2a2)]},'cmd':_0x5217f5['cmd']};case _['CollaborationEvent'][_0x4fd126(0x3b0)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['leaveEvent']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent'][_0x4fd126(0x1dc)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x49e)]},'cmd':_0x5217f5['cmd']};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x4fd126(0x2bb)]['LIVESHARE_OPERATION']:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['liveShareOperation']},'cmd':_0x5217f5['cmd']};case _['CollaborationEvent'][_0x4fd126(0x5e1)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['liveShareNewHost']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x5217f5,'data':_0x477b3f,'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x556)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x35b)]},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)]['UPDATE_PERMISSION_OBJ']:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x3a4)]},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x5d2)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['shouldCloseConn']},'cmd':_0x5217f5['cmd']};default:return _0x5217f5;}}default:return _0x5217f5;}}function Rt(_0x3e5f33){const _0x15ebb8=_0x4aaaf0;switch(_0x3e5f33[_0x15ebb8(0x451)]){case b[_0x15ebb8(0x494)]:case b['HELLO']:return JSON[_0x15ebb8(0x24c)]({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33[_0x15ebb8(0x2ab)]});case b['INGEST']:{let _0x42f6a1;switch(_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x405)]){case _['CollaborationEvent']['UPDATE_CURSOR']:{_0x42f6a1={'eventID':_['CollaborationEvent'][_0x15ebb8(0x1d5)],'updateCursorEvent':_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x2cf)]};break;}case _['CollaborationEvent'][_0x15ebb8(0x3b0)]:{_0x42f6a1={'eventID':_['CollaborationEvent'][_0x15ebb8(0x3b0)],'leaveEvent':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)][_0x15ebb8(0x475)],'joinEvent':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)][_0x15ebb8(0x1dc)]:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)][_0x15ebb8(0x1dc)],'liveShareNewHost':_0x3e5f33['data']['data']};break;}case _[_0x15ebb8(0x2bb)][_0x15ebb8(0x5cd)]:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)][_0x15ebb8(0x5e1)]:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)]['LIVESHARE_REQUEST_HOST']:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)]['LIVESHARE_FETCH_OPERATIONS']:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)][_0x15ebb8(0x3c0)]};break;}default:_0x42f6a1={'eventID':_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x405)]};}return JSON[_0x15ebb8(0x24c)]({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33[_0x15ebb8(0x2ab)],'collaMsg':_0x42f6a1});}case b[_0x15ebb8(0x29c)]:return JSON['stringify']({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33[_0x15ebb8(0x2ab)],'joinReq':_0x3e5f33[_0x15ebb8(0x2cf)]});case b[_0x15ebb8(0x523)]:return JSON[_0x15ebb8(0x24c)]({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33['routeKey'],'leaveReq':_0x3e5f33[_0x15ebb8(0x2cf)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var as=Object[_0x4aaaf0(0x562)],cs=Object[_0x4aaaf0(0x28b)],ls=(_0x5360f0,_0x47c9b8,_0x1f0eae,_0x5c3766)=>{const _0x1d7857=_0x4aaaf0;for(var _0x27912f=_0x5c3766>0x1?void 0x0:_0x5c3766?cs(_0x47c9b8,_0x1f0eae):_0x47c9b8,_0x6bc331=_0x5360f0[_0x1d7857(0x31a)]-0x1,_0x2a3c81;_0x6bc331>=0x0;_0x6bc331--)(_0x2a3c81=_0x5360f0[_0x6bc331])&&(_0x27912f=(_0x5c3766?_0x2a3c81(_0x47c9b8,_0x1f0eae,_0x27912f):_0x2a3c81(_0x27912f))||_0x27912f);return _0x5c3766&&_0x27912f&&as(_0x47c9b8,_0x1f0eae,_0x27912f),_0x27912f;},ae=(_0x46566d,_0x537e2c)=>(_0x3ca1c2,_0x25b9c3)=>_0x537e2c(_0x3ca1c2,_0x25b9c3,_0x46566d);const Ye=a[_0x4aaaf0(0x294)](_0x4aaaf0(0x1eb));function hs(_0x3532ab,_0x5b73a8,_0x192542){const _0x15875b=_0x4aaaf0;return _0x3532ab+'/'+_0x5b73a8+_0x15875b(0x406)+_0x192542+_0x15875b(0x4c7);}exports['CollaborationSocketService']=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x1bc63e,_0x322291,_0x4b52e3,_0x333e03,_0xec2bbd){const _0x3cb7f9=_0x4aaaf0;super(),this[_0x3cb7f9(0x40e)]=_0x1bc63e,this[_0x3cb7f9(0x302)]=_0x322291,this[_0x3cb7f9(0x428)]=_0x4b52e3,this['_logService']=_0x333e03,this[_0x3cb7f9(0x33b)]=_0xec2bbd;}['createSocket'](_0x4cf83c){const _0x3cb098=_0x4aaaf0,_0x457fca=this['_ws'][_0x3cb098(0x291)](_0x4cf83c);if(!_0x457fca)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3be332=new a[(_0x3cb098(0x5db))](),_0x357fcf=new v['Subject']();_0x3be332[_0x3cb098(0x24d)](_0x457fca[_0x3cb098(0x241)][_0x3cb098(0x236)](_0x6a5128=>_0x357fcf['next'](_0x6a5128))),_0x3be332[_0x3cb098(0x24d)](a[_0x3cb098(0x2c6)](()=>_0x357fcf[_0x3cb098(0x489)]()));const _0x106c4d=new v[(_0x3cb098(0x1d4))]();_0x3be332[_0x3cb098(0x24d)](_0x457fca[_0x3cb098(0x226)][_0x3cb098(0x236)](_0x1e4926=>_0x106c4d[_0x3cb098(0x3b3)](_0x1e4926))),_0x3be332[_0x3cb098(0x24d)](a[_0x3cb098(0x2c6)](()=>_0x106c4d['complete']()));const _0x2b064e=new v['Subject']();_0x3be332[_0x3cb098(0x24d)](_0x457fca[_0x3cb098(0x499)]['subscribe'](_0x56be2f=>{const _0x3e0bc1=_0x3cb098,_0x37790c=Tt(_0x56be2f);_0x2b064e[_0x3e0bc1(0x3b3)](_0x37790c);})),_0x3be332['add'](a[_0x3cb098(0x2c6)](()=>_0x2b064e['complete']()));let _0x3072e5;const _0x572cdd=()=>{const _0x3a53f=_0x3cb098;_0x106c4d['next'](new Event('connection\x20error')),_0x357fcf[_0x3a53f(0x3b3)](new CloseEvent(_0x3a53f(0x471))),_0x3072e5['close']();};return _0x3072e5={'memberID':'','close$':_0x357fcf[_0x3cb098(0x2a7)](),'error$':_0x106c4d[_0x3cb098(0x2a7)](),'open$':_0x457fca[_0x3cb098(0x283)],'message$':_0x2b064e['asObservable'](),'send':_0x15ba39=>{const _0x554c4f=_0x3cb098;if(_0x15ba39[_0x554c4f(0x451)]===b[_0x554c4f(0x20c)]){if(_0x15ba39[_0x554c4f(0x2cf)][_0x554c4f(0x405)]===_[_0x554c4f(0x2bb)]['SUBMIT_CHANGESET']){this[_0x554c4f(0x370)](_0x3072e5,_0x15ba39['data'])[_0x554c4f(0x483)](_0x236800=>{const _0x13fd0c=_0x554c4f;this[_0x13fd0c(0x360)][_0x13fd0c(0x574)](_0x236800),_0x572cdd();});return;}if(_0x15ba39[_0x554c4f(0x2cf)][_0x554c4f(0x405)]===_[_0x554c4f(0x2bb)][_0x554c4f(0x3c6)]){const _0x4868cd=_0x15ba39[_0x554c4f(0x2cf)];this['_fetchMissChangesets'](_0x4868cd)[_0x554c4f(0x254)](_0x4fb2b2=>{const _0x1f2ff8=_0x554c4f;_0x2b064e[_0x1f2ff8(0x3b3)]({'cmd':b['RECV'],'code':Ge['OK'],'routeKey':_0x4868cd[_0x1f2ff8(0x2cf)]['unitID'],'routeType':'','data':{'eventID':_[_0x1f2ff8(0x2bb)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x4fb2b2}}});})[_0x554c4f(0x483)](_0x5b0b04=>{const _0x5d3915=_0x554c4f;this[_0x5d3915(0x360)]['error'](_0x5b0b04),_0x572cdd();});return;}}_0x457fca[_0x554c4f(0x306)](Rt(_0x15ba39));},'close':()=>{const _0x3b88a2=_0x3cb098;_0x457fca[_0x3b88a2(0x344)](),_0x3be332[_0x3b88a2(0x342)]();}},_0x3072e5;}async[_0x4aaaf0(0x370)](_0x36d6f0,_0x20c142){const _0x1e068a=_0x4aaaf0;var _0x18e4ad,_0x4c61cb;const {unitType:_0x246e09,unitID:_0x331b21,changeset:_0x5302e8}=_0x20c142[_0x1e068a(0x2cf)],_0x53cab7={'unitID':_0x331b21,'memberID':_0x36d6f0[_0x1e068a(0x55c)],'type':_0x246e09,'changeset':_[_0x1e068a(0x231)](_0x5302e8)},_0x26df46=this[_0x1e068a(0x428)][_0x1e068a(0x50b)](pt),_0x2daa96=this[_0x1e068a(0x428)][_0x1e068a(0x50b)]($),_0xbd644e=hs((_0x4c61cb=(_0x18e4ad=_0x2daa96==null?void 0x0:_0x2daa96[_0x1e068a(0x1fa)])!=null?_0x18e4ad:_0x26df46)!=null?_0x4c61cb:ns,_0x246e09,_0x331b21);try{await this[_0x1e068a(0x40e)][_0x1e068a(0x2f3)](_0xbd644e,{'body':_0x53cab7});}catch(_0x3befeb){throw this['_logService']['error'](_0x1e068a(0x25a),_0x1e068a(0x29e)),_0x3befeb;}}async[_0x4aaaf0(0x329)](_0x19ceb6){const _0x44ed16=_0x4aaaf0,{unitID:_0x4201c5,from:_0x55ac54,to:_0x3abcde,unitType:_0x4ebc59}=_0x19ceb6[_0x44ed16(0x2cf)];return(await this[_0x44ed16(0x33b)][_0x44ed16(0x3aa)]({'metadata':void 0x0},{'unitID':_0x4201c5,'type':_0x4ebc59,'from':_0x55ac54,'to':_0x3abcde}))[_0x44ed16(0x2b3)];}},exports['CollaborationSocketService']=ls([ae(0x0,a[_0x4aaaf0(0x1b2)](U['HTTPService'])),ae(0x1,a[_0x4aaaf0(0x1b2)](U[_0x4aaaf0(0x3d6)])),ae(0x2,a[_0x4aaaf0(0x565)]),ae(0x3,a[_0x4aaaf0(0x1d1)]),ae(0x4,_[_0x4aaaf0(0x47d)])],exports[_0x4aaaf0(0x4b4)]);const _s='collaboration_new_changeset';function us(_0x1b96b6){const _0xf55e8d=_0x4aaaf0;return JSON['stringify'](_0x1b96b6)[_0xf55e8d(0x31a)];}class Ke{constructor(){const _0xaaada6=_0x4aaaf0;u(this,_0xaaada6(0x39b),new v[(_0xaaada6(0x1d4))]()),u(this,_0xaaada6(0x40d),this['_commentUpdate$'][_0xaaada6(0x2a7)]());}[_0x4aaaf0(0x209)](_0x37bea9){const _0x5156e2=_0x4aaaf0;this[_0x5156e2(0x39b)][_0x5156e2(0x3b3)](_0x37bea9);}}function _0x47ba(_0x3a3c11,_0x5d5e13){const _0x98ab6b=_0x98ab();return _0x47ba=function(_0x47ba63,_0x521122){_0x47ba63=_0x47ba63-0x1ac;let _0x3bb75b=_0x98ab6b[_0x47ba63];return _0x3bb75b;},_0x47ba(_0x3a3c11,_0x5d5e13);}var ds=Object[_0x4aaaf0(0x562)],Ss=Object[_0x4aaaf0(0x28b)],vs=(_0x5363e1,_0xcd45bf,_0xa6f878,_0x525c20)=>{const _0x535012=_0x4aaaf0;for(var _0x39245b=_0x525c20>0x1?void 0x0:_0x525c20?Ss(_0xcd45bf,_0xa6f878):_0xcd45bf,_0x40258c=_0x5363e1[_0x535012(0x31a)]-0x1,_0x13d34c;_0x40258c>=0x0;_0x40258c--)(_0x13d34c=_0x5363e1[_0x40258c])&&(_0x39245b=(_0x525c20?_0x13d34c(_0xcd45bf,_0xa6f878,_0x39245b):_0x13d34c(_0x39245b))||_0x39245b);return _0x525c20&&_0x39245b&&ds(_0xcd45bf,_0xa6f878,_0x39245b),_0x39245b;},et=(_0x5d34d6,_0x3e952b)=>(_0x2244bb,_0x58fff3)=>_0x3e952b(_0x2244bb,_0x58fff3,_0x5d34d6);exports[_0x4aaaf0(0x50e)]=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x306721,_0x54b61e){const _0x3916c5=_0x4aaaf0;super(),u(this,_0x3916c5(0x2bd),new Map()),(this['_univerInstanceService']=_0x306721,this[_0x3916c5(0x4ee)]=_0x54b61e,this[_0x3916c5(0x367)](a[_0x3916c5(0x2c6)](v[_0x3916c5(0x398)](this[_0x3916c5(0x46d)][_0x3916c5(0x2d5)](a['UniverInstanceType'][_0x3916c5(0x4d0)])[_0x3916c5(0x2b0)](E[_0x3916c5(0x263)](_0x5ce302=>_0x5ce302[_0x3916c5(0x3e2)]())),this[_0x3916c5(0x46d)]['getTypeOfUnitDisposed$'](a[_0x3916c5(0x419)][_0x3916c5(0x238)])[_0x3916c5(0x2b0)](E[_0x3916c5(0x263)](_0x4b63a6=>_0x4b63a6[_0x3916c5(0x3e2)]())),this[_0x3916c5(0x46d)][_0x3916c5(0x2d5)](a[_0x3916c5(0x419)][_0x3916c5(0x592)])[_0x3916c5(0x2b0)](E[_0x3916c5(0x263)](_0x478fbc=>_0x478fbc[_0x3916c5(0x3e2)]())))['subscribe'](_0x5f5b23=>this[_0x3916c5(0x35f)](_0x5f5b23)))));}['setCurrentUser'](_0x5bb5c1){const _0x505390=_0x4aaaf0;this[_0x505390(0x4ee)]['setCurrentUser'](_0x5bb5c1);}['getCurrentUser'](){const _0x406431=_0x4aaaf0;return this['_userManagerService'][_0x406431(0x5d5)]();}[_0x4aaaf0(0x2b4)](_0x109a3b,_0x304d99){const _0x325c1b=_0x4aaaf0;let _0x3fb71b=this[_0x325c1b(0x2bd)]['get'](_0x109a3b);_0x3fb71b||(_0x3fb71b=new ms(),this[_0x325c1b(0x2bd)][_0x325c1b(0x4af)](_0x109a3b,_0x3fb71b)),_0x3fb71b[_0x325c1b(0x2b4)](_0x304d99);}['removeMember'](_0x2f96ef,_0x4c6669){const _0x2730ae=_0x4aaaf0,_0x14f0c3=this[_0x2730ae(0x2bd)][_0x2730ae(0x439)](_0x2f96ef);_0x14f0c3&&_0x14f0c3[_0x2730ae(0x407)](_0x4c6669);}['getRoom'](_0x550dcb){const _0x1a6206=_0x4aaaf0;return this[_0x1a6206(0x2bd)]['get'](_0x550dcb);}[_0x4aaaf0(0x3d1)](_0x4427d3,_0x300b76){const _0x550592=_0x4aaaf0,_0x29d939=this[_0x550592(0x2bd)][_0x550592(0x439)](_0x4427d3);if(_0x29d939)return _0x29d939[_0x550592(0x3d1)](_0x300b76);}[_0x4aaaf0(0x35f)](_0x28c3a2){const _0x211eeb=_0x4aaaf0,_0x4d6fcc=this[_0x211eeb(0x2bd)][_0x211eeb(0x439)](_0x28c3a2);_0x4d6fcc&&(_0x4d6fcc[_0x211eeb(0x342)](),this[_0x211eeb(0x2bd)][_0x211eeb(0x276)](_0x28c3a2));}[_0x4aaaf0(0x342)](){const _0x26a94b=_0x4aaaf0;this[_0x26a94b(0x2bd)]['forEach'](_0x11f114=>_0x11f114[_0x26a94b(0x342)]()),this[_0x26a94b(0x2bd)][_0x26a94b(0x3e4)]();}},exports[_0x4aaaf0(0x50e)]=vs([et(0x0,a[_0x4aaaf0(0x33f)]),et(0x1,a['Inject'](a[_0x4aaaf0(0x2d1)]))],exports[_0x4aaaf0(0x50e)]);class ms extends a[_0x4aaaf0(0x3ef)]{constructor(){const _0x32263f=_0x4aaaf0;super(...arguments),u(this,_0x32263f(0x202),new Map());}[_0x4aaaf0(0x342)](){const _0x58c06d=_0x4aaaf0;this[_0x58c06d(0x202)][_0x58c06d(0x3e4)]();}[_0x4aaaf0(0x2b4)](_0x4dc14){const _0x3c5ec6=_0x4aaaf0;this[_0x3c5ec6(0x202)][_0x3c5ec6(0x4af)](_0x4dc14[_0x3c5ec6(0x55c)],_0x4dc14);}[_0x4aaaf0(0x407)](_0x3b2c11){const _0x50a90e=_0x4aaaf0;this['_members'][_0x50a90e(0x276)](_0x3b2c11);}[_0x4aaaf0(0x3d1)](_0x2cf7a2){const _0x4cf7ac=_0x4aaaf0;return this['_members'][_0x4cf7ac(0x439)](_0x2cf7a2);}[_0x4aaaf0(0x2b2)](){const _0x16d202=_0x4aaaf0;return Array[_0x16d202(0x36c)](this[_0x16d202(0x202)][_0x16d202(0x4ca)]());}}var gs=Object[_0x4aaaf0(0x562)],fs=Object[_0x4aaaf0(0x28b)],Is=(_0x1803a2,_0x5bac17,_0x5ed6c9,_0x731b4b)=>{const _0x10a797=_0x4aaaf0;for(var _0x25d1ed=_0x731b4b>0x1?void 0x0:_0x731b4b?fs(_0x5bac17,_0x5ed6c9):_0x5bac17,_0x5121c0=_0x1803a2[_0x10a797(0x31a)]-0x1,_0x2cc6c3;_0x5121c0>=0x0;_0x5121c0--)(_0x2cc6c3=_0x1803a2[_0x5121c0])&&(_0x25d1ed=(_0x731b4b?_0x2cc6c3(_0x5bac17,_0x5ed6c9,_0x25d1ed):_0x2cc6c3(_0x25d1ed))||_0x25d1ed);return _0x731b4b&&_0x25d1ed&&gs(_0x5bac17,_0x5ed6c9,_0x25d1ed),_0x25d1ed;},G=(_0x48f750,_0x555c0c)=>(_0xcb2cc5,_0x416284)=>_0x555c0c(_0xcb2cc5,_0x416284,_0x48f750),x=(_0x453d47=>(_0x453d47[_0x453d47['IDLE']=0x0]=_0x4aaaf0(0x448),_0x453d47[_0x453d47[_0x4aaaf0(0x580)]=0x1]=_0x4aaaf0(0x580),_0x453d47[_0x453d47[_0x4aaaf0(0x270)]=0x2]=_0x4aaaf0(0x270),_0x453d47[_0x453d47[_0x4aaaf0(0x322)]=0x3]=_0x4aaaf0(0x322),_0x453d47))(x||{});exports[_0x4aaaf0(0x315)]=class extends a['RxDisposable']{constructor(_0x2ad6d1,_0x41f750,_0x4d6334,_0xaca70c,_0x3bcad0,_0x4331e2,_0x5d71fe,_0x1cfe02,_0x2edf56,_0x1984ba){const _0x56fc87=_0x4aaaf0;super(),u(this,_0x56fc87(0x2f5),new v['BehaviorSubject'](0x0)),u(this,'sessionStatus$',this[_0x56fc87(0x2f5)][_0x56fc87(0x2a7)]()),u(this,_0x56fc87(0x5c0),new v['Subject']()),u(this,_0x56fc87(0x467),this['_event$'][_0x56fc87(0x2a7)]()),u(this,_0x56fc87(0x5ca)),u(this,'_socketMessageSubscription'),u(this,_0x56fc87(0x25e)),u(this,'_shouldReportTelemetry',!0x1),u(this,_0x56fc87(0x42a),null),(this[_0x56fc87(0x2b8)]=_0x2ad6d1,this['_logService']=_0x4d6334,this[_0x56fc87(0x31e)]=_0xaca70c,this[_0x56fc87(0x206)]=_0x3bcad0,this['_configService']=_0x4331e2,this[_0x56fc87(0x2af)]=_0x5d71fe,this['_memberService']=_0x1cfe02,this['_commentService']=_0x2edf56,this['_telemetryService']=_0x1984ba,this[_0x56fc87(0x1f1)]=!!this[_0x56fc87(0x4dc)],_0x41f750[_0x56fc87(0x2b0)](v[_0x56fc87(0x4b2)](this[_0x56fc87(0x35d)]))[_0x56fc87(0x236)](_0x5acc74=>{const _0x3bee67=_0x56fc87;var _0x50a72a;typeof _0x5acc74>'u'||(this[_0x3bee67(0x5ca)]=_0x5acc74,_0x5acc74?(this[_0x3bee67(0x2fa)](_0x5acc74),this['_socketMessageSubscription']=_0x5acc74[_0x3bee67(0x499)][_0x3bee67(0x236)](_0x5159b8=>{const _0x4655c6=_0x3bee67;_0x5159b8[_0x4655c6(0x2ab)]===this[_0x4655c6(0x2b8)]&&this['_onCombEvent'](_0x5159b8);})):(this[_0x3bee67(0x46c)](),this[_0x3bee67(0x2f5)]['next'](0x2),(_0x50a72a=this[_0x3bee67(0x5b3)])==null||_0x50a72a[_0x3bee67(0x4ed)](),this['_socketMessageSubscription']=null));}),this[_0x56fc87(0x367)](this['_beforeCloseService'][_0x56fc87(0x510)](()=>{const _0x4575ac=_0x56fc87;var _0x129518;(_0x129518=this[_0x4575ac(0x5ca)])==null||_0x129518['send']({'cmd':b[_0x4575ac(0x523)],'data':{'roomID':this[_0x4575ac(0x2b8)]}});})));}get[_0x4aaaf0(0x5b0)](){const _0x516c26=_0x4aaaf0;return this[_0x516c26(0x2f5)]['getValue']();}[_0x4aaaf0(0x573)](){const _0x10ad1b=_0x4aaaf0;var _0x35f268,_0xc189d8;return(_0xc189d8=(_0x35f268=this[_0x10ad1b(0x5ca)])==null?void 0x0:_0x35f268['memberID'])!=null?_0xc189d8:null;}[_0x4aaaf0(0x342)](){const _0x4a07b0=_0x4aaaf0;super[_0x4a07b0(0x342)](),this[_0x4a07b0(0x35d)][_0x4a07b0(0x3b3)](),this['dispose$'][_0x4a07b0(0x489)]();}[_0x4aaaf0(0x344)](){const _0x5eeddb=_0x4aaaf0;var _0x31bd2a,_0x26d557;this['_throwTelemetryCollaborationNewChangeset'](),(_0x31bd2a=this[_0x5eeddb(0x5ca)])==null||_0x31bd2a[_0x5eeddb(0x306)]({'cmd':b[_0x5eeddb(0x523)],'data':{'roomID':this[_0x5eeddb(0x2b8)]}}),(_0x26d557=this[_0x5eeddb(0x5ca)])==null||_0x26d557[_0x5eeddb(0x344)](),this[_0x5eeddb(0x5c0)][_0x5eeddb(0x489)](),this[_0x5eeddb(0x2f5)]['complete'](),this[_0x5eeddb(0x342)]();}[_0x4aaaf0(0x220)](_0x302aa5){const _0x2cfd79=_0x4aaaf0;_0x302aa5[_0x2cfd79(0x451)]===b['JOIN']?this[_0x2cfd79(0x426)](_0x302aa5):_0x302aa5[_0x2cfd79(0x451)]===b[_0x2cfd79(0x441)]&&this[_0x2cfd79(0x520)](_0x302aa5);}['_joinRoom'](_0x589518){const _0x415409=_0x4aaaf0;this[_0x415409(0x2f5)][_0x415409(0x3b3)](0x1),_0x589518[_0x415409(0x306)]({'cmd':b['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x415409(0x2b8)]}]}});}['_onJoinRoomEvent'](_0x1cb4c7){const _0x1e1597=_0x4aaaf0;var _0x507d24;if(_0x1cb4c7[_0x1e1597(0x512)]===Ge[_0x1e1597(0x354)]){this['_messageService'][_0x1e1597(0x4c5)]({'type':J[_0x1e1597(0x497)]['Warning'],'content':this[_0x1e1597(0x2af)]['t'](_0x1e1597(0x48c))}),this[_0x1e1597(0x2f5)][_0x1e1597(0x3b3)](0x2);return;}this['_sessionStatus$'][_0x1e1597(0x3b3)](0x3);const _0x3df9b5=(_0x507d24=_0x1cb4c7[_0x1e1597(0x2cf)][_0x1e1597(0x30a)][this[_0x1e1597(0x2b8)]])==null?void 0x0:_0x507d24['members'];_0x3df9b5&&_0x3df9b5[_0x1e1597(0x1d6)](_0x4d359a=>this['_memberService'][_0x1e1597(0x2b4)](this[_0x1e1597(0x2b8)],_0x4d359a));}['_onRecvEvent'](_0x5e40e1){const _0x3b20da=_0x4aaaf0;try{const _0x5cd09f=_0x5e40e1['data'];switch(_0x5cd09f[_0x3b20da(0x405)]){case _['CollaborationEvent'][_0x3b20da(0x475)]:this[_0x3b20da(0x27a)](_0x5cd09f),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _[_0x3b20da(0x2bb)][_0x3b20da(0x3b0)]:this['_onUserLeave'](_0x5cd09f),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _[_0x3b20da(0x2bb)][_0x3b20da(0x540)]:case _[_0x3b20da(0x2bb)][_0x3b20da(0x5d7)]:this[_0x3b20da(0x22d)](),this[_0x3b20da(0x284)](),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _['CollaborationEvent'][_0x3b20da(0x45e)]:this[_0x3b20da(0x360)][_0x3b20da(0x574)](_0x3b20da(0x478)+JSON[_0x3b20da(0x24c)](_0x5cd09f)),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _['CollaborationEvent'][_0x3b20da(0x556)]:this['_commentService'][_0x3b20da(0x209)](_0x5cd09f[_0x3b20da(0x2cf)]),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;default:this[_0x3b20da(0x5c0)]['next'](_0x5cd09f);}}catch(_0x168882){this['_logService']['error'](_0x168882,_0x5e40e1);}}[_0x4aaaf0(0x27a)](_0x125eb3){const _0x34aad2=_0x4aaaf0;this[_0x34aad2(0x529)][_0x34aad2(0x2b4)](this[_0x34aad2(0x2b8)],_0x125eb3[_0x34aad2(0x2cf)]);}[_0x4aaaf0(0x50d)](_0x543ce5){const _0x4bb796=_0x4aaaf0;this[_0x4bb796(0x529)][_0x4bb796(0x407)](this['_unitID'],_0x543ce5[_0x4bb796(0x2cf)][_0x4bb796(0x55c)]);}async[_0x4aaaf0(0x306)](_0x4a2a70,_0x175871){const _0x48c12c=_0x4aaaf0;if(this[_0x48c12c(0x5b0)]!==0x3||!this['_socket'])throw new Error(_0x48c12c(0x581));try{_0x4a2a70[_0x48c12c(0x405)]===_[_0x48c12c(0x2bb)][_0x48c12c(0x47c)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x48c12c(0x551)](_0x4a2a70)),this['_socket'][_0x48c12c(0x306)]({'cmd':b['INGEST'],'routeKey':_0x175871,'routeType':'','data':_0x4a2a70});}catch(_0x509258){this[_0x48c12c(0x360)][_0x48c12c(0x574)](_0x509258);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4b060d=_0x4aaaf0;var _0x49d645;this[_0x4b060d(0x25e)]=window[_0x4b060d(0x3c4)](()=>{const _0x24874f=_0x4b060d;this[_0x24874f(0x25e)]=null,this[_0x24874f(0x206)][_0x24874f(0x4c5)]({'type':J[_0x24874f(0x497)][_0x24874f(0x413)],'content':this['_localeService']['t'](_0x24874f(0x250))});},(_0x49d645=this['_configService'][_0x4b060d(0x50b)](Fe))!=null?_0x49d645:gt);}['_clearCollaborationTimeoutTimer'](){const _0x47aaf9=_0x4aaaf0;this[_0x47aaf9(0x25e)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x4aaaf0(0x551)](_0x193644){const _0x321c5e=_0x4aaaf0;if(!this['_shouldReportTelemetry'])return;const {data:_0x509b24}=_0x193644,{unitID:_0x4bc788,changeset:_0x314f9f}=_0x509b24,{mutations:_0x3ed29f,type:_0x2c5cd4}=_0x314f9f;this[_0x321c5e(0x42a)]={'unitId':_0x4bc788,'type':_0x2c5cd4,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':us(_0x3ed29f)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x43ff1e=_0x4aaaf0;if(this['_shouldReportTelemetry']){if(!this[_0x43ff1e(0x42a)]){this[_0x43ff1e(0x360)][_0x43ff1e(0x574)](_0x43ff1e(0x25a),_0x43ff1e(0x4ac));return;}this['_telemetryInfo'][_0x43ff1e(0x3ce)]=performance[_0x43ff1e(0x58e)](),this[_0x43ff1e(0x42a)]['duration']=this[_0x43ff1e(0x42a)][_0x43ff1e(0x3ce)]-this[_0x43ff1e(0x42a)]['startTime'],this['_telemetryService'][_0x43ff1e(0x3b6)](_s,this['_telemetryInfo']),this[_0x43ff1e(0x42a)]=null;}}[_0x4aaaf0(0x46c)](){const _0x2681d4=_0x4aaaf0;this[_0x2681d4(0x42a)]=null;}},exports['CollaborationSession']=Is([G(0x2,a[_0x4aaaf0(0x1d1)]),G(0x3,A[_0x4aaaf0(0x595)]),G(0x4,A[_0x4aaaf0(0x31b)]),G(0x5,a[_0x4aaaf0(0x565)]),G(0x6,a['Inject'](a[_0x4aaaf0(0x1f6)])),G(0x7,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x50e)])),G(0x8,a[_0x4aaaf0(0x1b2)](Ke)),G(0x9,a[_0x4aaaf0(0x4cd)](Kt[_0x4aaaf0(0x28a)]))],exports['CollaborationSession']);function _0x98ab(){const _0x532f94=['url','target','joinRsp','evenodd','xlink:href','handleIRemoveRow','requireSession','CONFLICT','getMemberID','error','_snapshotService','getUnitType','_initMergeInterceptor','mapTo','_initModules','getCurrent','319006SscOid','YUUMI_UNABLE_LOAD_URL','_revisionService','_sendingTimer','_updateState','JOINING','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_sheetSkeletonManagerService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','change$','updatePermissionPoint','getResourcesRequest','conflict','saveChangeset','_sendHeartbeat','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onConflict','[PendingState]:\x20received\x20rejection.','_collabCursorController','now','_getUndoStack','DeleteRangeMoveUpCommandId','src','UNIVER_SLIDE','executeCommand','LOGIN_URL_KEY','IBeforeCloseService','_resendTimeout','MoveRangeCommandId','Module','concatMap','/role','_setupSubUnitSync','children','setShapeProps','InsertRangeMoveDownCommandId','_getScale','_getMergeRange','getParam','_scheduleSaving','_color','onlineStatusIcon','drawWith','number','_getAPIPrefixPath','Tools','univer-online-status-icon','_injector','LICENSE_MAX_UNITS_EXCEEDED','_transformUndoRedoStack','getRelativeToViewportCoord','updateCursorEvent','_status$','sessionStatus','hovered','@univerjs/design','_socketMessageSubscription','getCollabEntity','RECT','\x20in\x20_schedule.','isTransformMutationsWithChangesetSuccess','_getCtorByUniverType','_state','@univerjs/core','POST','_unitOnClients','0\x200\x2017\x2016','getSheetBySheetId','transformSelections','_event$','_onCursorUpdate','fetching\x20missing\x20changesets\x20from\x20','_document','_handler','interceptor','_initResize','_sender','title','currentSkeleton$','_socket','onReady','mergeOverrideWithDependencies','LIVESHARE_OPERATION','_drawTextRange','objectID','_timeoutTimer','getLatestCsReqIdBySid','SHOULD_CLOSE_CONN','collaborators','_getSignURL','getCurrentUser','csRejEvent','CHANGESET_SHOULD_RETRY','InsertRangeMoveRightCommandId','[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.','useObservable','DisposableCollection','FileId','AuthzIoHttpService','/universer-api/oidc/authpage','ICommandService','fetchMiss','LIVESHARE_TERMINATE','height','MUTATION','collabStatus.syncing','entries','allowed','editing\x20status\x20changed\x20to','Inject','@univerjs/telemetry','combineLatest','rxjs','_updateLocalCursor','onload','VIEW_MAIN','_onRefRangeChange','_getLoginPath','_showConflictNotification','_resendWithTimeout','_listenToOnlineEvent','_clearUndo','_initEventListeners','getCoordByCell','find','ThemeService','endColumn','BASE64','path','throttleTime','all','_scheduleHeartbeat','generateRandomId','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleTimestamp','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','awaitingChangeset','/collaborator','RichTextEditingMutation','INVALID_ARGUMENT','ILogService','_entityInit$','onMissingChangesets','Subject','UPDATE_CURSOR','forEach','init','getUnit','subscribeEvent','createInstance','row','LIVESHARE_NEW_HOST','SNAPSHOT_HAS_BEEN_REMOVED','getAncestorScale','objectActions','includes','setAlpha','DesktopCollaborationStatusDisplayController','LICENSE_IMPORT_SIZE_EXCEEDED','HTTPService','assignAColorForMemberID','_transformUndoredo','tag','_getSheetObject','WorkbookEditablePermission','setInterval','univer-pro.collaboration-client-socket-service','authzUrl','_change$','arc','onTransformIME','enableSingleActiveInstanceLock','_shouldReportTelemetry','_singleActiveUnitService','ALREADY_EXISTS','_refreshCollabCursors','SNAPSHOT_INVALID_SNAPSHOT','LocaleService','_initStatusComponent','_substituteUndoStack','onRemoteAck','collabSubmitChangesetUrl','_lastPointer','onMouseMove','ERROR_EXCEED_SIZE','Shape','_id','registerRefRange','_waitForHeartbeatResponse','_members','_entities','current','colorChannel1','_messageService','\x20to\x20','collaboration-client.config','onCommentUpdate','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','defs','INGEST','disableLocalCache','UNIVER_UNKNOWN','_unlockTransition','clipPath','fillRule','_retryConnectingTimer','getSkeleton','_handleEvent','[UniverCollaborationClientPlugin]','onSyncEditingCollabCursor','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','svg','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_remoteChangesetQueue','resourceIDs','use','CHANGESET_REVISION_CONFILICT','_onRemoteChangeset','DocCollaborationEntity','_onCombEvent','pauseCollaboration','toString','#fff','baseRev','_shapes','error$','url(#off-line-single_clip0_910_343)','_backgroundColor','[CollaborationEntity]','reconnect','getRenderById','unitId','_stopTelemetryCollaborationNewChangeset','isEditing','_socket$','conflict.title','parseChangesetToProtocol','newCsEvent','slice','_disabled','_docTransformSelectionsService','subscribe','_getSendChangesetTimeout','UNIVER_DOC','IHTTPImplementation','collabStatus.synced','_collaborationSessionService','_online','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','handleInsertRangeMoveRight','getCollabEntity$','some','close$','UNDEFINED','_redoStacks','clearTimeout','_render','_retryCount','ACTIVE_UNIT_EVENT_CHANNEL','_name','parse','image/gif','_checkMissing','stringify','add','_getCurrentRevision','image/jpeg','session.collaboration-timeout','NOT_COLLAB','COLLAB_WEB_SOCKET_URL_KEY','_handleJoinEvent','then','newValue','_onOffline','_session','NEW_CHANGESETS','getItem','[CollaborationSession]','onSendChangeset','_localStorageService','RemoveColCommandId','_collaborationTimeoutTimer','state$','@univerjs/ui','AWAITING','every','map','isTransformMutationsWithChangesetFailure','CollaborationController','CONNECTOR_DATA_TOO_LARGE','isPermissionRej','handleInsertRangeMoveDown','HEARTBEAT_INTERVAL_KEY','json','_collabCursorState$','IPermissionService','_startDocCollabCursor','currentColor','collaMsg','OFFLINE','getSheetId','UniverCollaborationPlugin','InsertSheetMutation','rxjs/operators','RxDisposable','delete','_sheetTransformSelectionsService','_candidateSocket','_selfUnitIDs','_onUserJoin','isArray','getVpScrollXYInfoByPosToVp','file','url(#$1','1em','function','_getSaveTimeout','_waitCount','open$','_clearCollaborationTimeoutTimer','fetch_missing','setUndoRedoMutationParamsCache','APPLY_DUPLICATED','ImageUploadStatusType','RETRY_CONNECTING_MAX_COUNT_KEY','ITelemetryService','getOwnPropertyDescriptor','loadSheet','_initUnitPermissionChange','handleInsertCol','DocSelectionManagerService','_permissionService','createSocket','ImageSourceType','_scene','createIdentifier','DataLoaderController','COMPRESS_MUTATION_APPLY','NOT_FOUND','enableAuthServer','[CollaborationState]:\x20apply\x20error!','Rectangle','SheetsSelectionsService','JOIN','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','submit\x20changeset\x20error!','15431GfVgIJ','NO_OTHER_CLIENTS_EDITING','SYNCED','joinEvent','fillStyle','round','_onConnectionFailed','transformUndoRedo','asObservable','_replayCachedMutations','c2Prime','OnLineSingle','routeKey','onRendered','with','InsertColCommandId','_localeService','pipe','name','getAllMembers','changesets','updateMember','_updateLocalCache','collab-rect-range-','mutations','_unitID','m1Prime','permission.title','CollaborationEvent','updateCollaborator','_roomMembers','_transformPreviousActiveRange','SNAPSHOT_SERVER_URL_KEY','HEARTBEAT_TIMEOUT_KEY','_loadSheet','toRgbString','[CollaborationSessionService]','synced','incrementRevOfUnit','toDisposable','useRef','visibilityState','getAttachHeader','black','onRemoteRej','has','ranges','_anchor','data','_labelPosition','UserManagerService','reqId','_collabSessionService','createCollaborator','getTypeOfUnitDisposed$','@univerjs/network','cursorInfo$','getOffsetConfig','onCommandExecuted','x-univer-host','withCredentials','substring','10yJDFkD','[DataLoaderController]','permissionRejEvent','IContextService','_collaborationPaused','IImageIoService','_renderManagerService','_createInitialStateImpl','COLLAB_SUBMIT_CHANGESET_URL','searchParams','setActiveRange','RegularPolygon','_scheduleClearOtherTimer','12GlxOYn','[OfflineState]:\x20received\x20acknowledgement.','_onFetchMissResult','[OfflineState]:\x20received\x20changeset.','Injector','random','SetSelectionsOperation','findNodePositionByCharIndex','column','post','CompressMutationService','_sessionStatus$','SEND_CHANGESET_TIMEOUT','rev','collabWebSocketUrl','state','_joinRoom','[CollaborationUndoRedoService]','ICollaborationSocketService','Error\x20on\x20receiving\x20event','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getUnitOnRev','removeParam','_cursors','_ws','getCurrentSelections','CollaborationStatus','/universer-api/stream/file/upload','send','@univerjs/sheets-ui','COLLAB_WEB_SOCKET_URL','MergeInterceptorFactory','roomInfos','handleDeleteRangeMoveLeft','SNAPSHOT_URL_KEY','retryConnectingInterval','collaboratorID','_httpService','_commandService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','CollaborationStatusDisplay','/-/object/-/batch_allowed','top','CollaborationSession','HEARTBEAT_INTERVAL','listRoles','_rescheduleHeartbeat','image/jpg','length','IMessageService','string','handleInsertRow','_beforeCloseService','_replaceFileID','online','on-line-single_clip0_910_349','ONLINE','_decreaseWaiting','DeleteRangeMoveLeftCommandId','range','deleteCollaborator','restore','concat','_fetchMissChangesets','_createHandler','transformMutation','replace','addObject','none','registerRenderModule','_themeService','history','off-line-single_clip0_910_343','onPointerEnter$','CommentService','addEventListener','_getDownloadEndpointURL','/-/object/list','mapDocumentTypeToUniverType','_HTTPService','transformChangesets','_snapshotServerService','_transformSelections','_init','&assign=','IUniverInstanceService','uni.network.url-service','_disableEditing','dispose','transform','close','hidden','session.connection-failed','Undefined','params','{fileID}','TEXT_RANGE_LAYER_INDEX','Warning','hide','transformMutationsWithChangeset','handleDeleteRangeMoveUp','copyFileMeta','doc.mutation.rich-text-editing','_onLocalMutation','_saveCache','DOC_RANGE_TYPE','FAIL','getCollabCursors$','_type','encode','transformIMECache','setParam','Rect','commentUpdateEvent','233152hHshKS','dispose$','OffLineSingle','_removeRoom','_logService','UnitEmbedded','pending','_getRedoStack','/universer-api/comb','_hover','HEARTBEAT_TIMEOUT','disposeWithMe','docStateChange$','saveOfflineData','_registerDependencies','icon','from','filter','_executeRemoteChangeset','key','_submitChangeset','responseType','getActiveSheet','unshift','HttpImport','XHRHTTPImplementation','SheetCollaborationEntity','/object','SheetPermissionInitController','getSheetObject','handleMoveRange','SnapshotServerOverHTTPService','_onRemoteRejected','HTTPRequest','translate(.97)','_transformService','snapshotServerUrl','setItem','className','[SyncedState]:\x20received\x20rejection.','getRangePointData','...','session','_acknowledgedAwaitingChangeset','sheetID','_docSyncEditingCollabCursorService','jiqing500','_state$','univer-pro.collaboration-client.single-active-unit-service','HttpExport','appendMutation','prototype','getColor','getOwnPropertySymbols','_draw','UNAUTHENTICATED','ColorKit','subUnitId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_startCollaboration','merge','resend','toStringTag','_commentUpdate$','rgba(255,\x20255,\x20255,\x200.01)','_imageSourceCache','13750264keJZOy','DocIMEInputManagerService','_onConnectionOpen','TEXT','_createSocket','EmptyMutation','updatePermissionObjEvent','split','_colorIndex','APPLY_REVISION_CONFILICT','_toggleOffline','m2Prime','fetchMissingChangesets','urlChange$','exhaustSavingTask','YUUMI_SUBSCRIPTION_NOT_FOUND','#FFF','setConfig','USERS_LEAVE','LICENSE_EXPORT_SIZE_EXCEEDED','reverse','next','color','fromEventSubject','capture','toggleOnline','resize','UPDATE_PERMISSION_OBJ','reduce','_exhaustRemoteChangesetQueue','status$','ReplaySubject','@univerjs-pro/collaboration','setShowComponents','LIVESHARE_FETCH_OPERATIONS','ERROR_IMAGE_TYPE','onRemoteChangeset','_getAPIPrefix','setTimeout','cursorInfo','FETCH_MISSING','_isPermissionRej','append','_drawAnchor','_docTransformIMECacheService','fetchThroughInterceptors','_heartbeatTimer','EXCHANGE_SIGN_URL_SERVER_URL_KEY','stopTime','_applyRemoteChangeset','rng','getMember','collabStatus.notCollab','Univer','roomMembers','[SyncedState]:\x20received\x20acknowledgement.','WebSocketService','_changesetReqId','_eventUnsubscribe','attrs','setWaitCount','FETCH_MISS','isTransformChangesetsSuccess','ERROR_IMAGE','_initRequestHeader','body','createElement','COLLAB_SUBMIT_CHANGESET_URL_KEY','getUnitId','UNIVER_PROJECT','clear','@univerjs/docs','_handleHeartbeatEvent','switchMap','APPLY_REJECT','_changesetSessionId','fillText','_docStateChangeManagerService','action','SnapshotService','_cursor','Disposable','url(#on-line-single_clip0_910_349)','c1Prime','off-line-single','_refRangeService','getTime','onMissedChangesetFetched','isTransformMutationFailure','connectInjector','textEncoder','_lockTransition','auth.needGotoLoginAlert','_clearHeartbeatTimer','makeDirty','@univerjs/engine-formula','20vjbjzs','LOCAL_CACHE_INTERVAL_KEY','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','fromEvent','_clearOtherTimers','UNKNOWN_CODE','clearInterval','eventID','/unit/','removeMember','\x0aAfter:\x20','update','234852xDlpEW','_syncEditingCollabCursorService','collabStatus.fetchMiss','commentUpdate$','_http','_textBubble','csAckEvent','getTypeOfUnitAdded$','saveImage','Error','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','visibilitychange','_schedule','UNRECOGNIZED','COLORS','UniverInstanceType','_getSnapshotAPIPrefix','_config','unitID','downloadEndpointUrl','[PendingState]:\x20received\x20acknowledgement.','ITransformService','serializeRangeWithSheet','distinctUntilChanged','runRefRangeMutations','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','LOCAL_CACHE_INTERVAL','status','_onJoinRoomEvent','1722966exJpqd','_configService','_handleLeaveEvent','_telemetryInfo','method','replaceState','getValue','_transformIMECache','1428JnGsKr','readAsDataURL','SEND_CHANGESET_TIMEOUT_KEY','pushState','unload','getUnitStatus$','objectType','loadOfflineData','HELLO','transformRemoteChangeset','get','width','skeleton','SheetCollabCursorShape','_incrementRevisionNumber','_hideTimer','debug','ENSURE_SNAPSHOT_EXECUTION','RECV','BehaviorSubject','COMPLETION_FINISHED','fill','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onlineStatus','onTransformRemoteChangesetByIMECache','IDLE','SheetSkeletonManagerService','originalMeta','_anchorDot','encodeURIComponent','selections','PSEUDO_FETCH_MISSING_RESULT','_setupBeforeClosingHandler','getWorkbookSelections','cmd','_queuedRemoteChangesets','startRow','_toggleOnline','labelPosition','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','IAuthzIoService','collab-text-anchor-','_initCloseConn','offline','_cursorShapes','actions','_syncEditingCollabCursor','MSG_FOR_ERROR','editingUnit','storage','apply','idSuffix','_socketReady','requestParams','updateOfflineData','_resendTimer','event$','_removeCollabCursors','SetDocZoomRatioOperation','IUIPartsService','_getAnchorBounding','_throwTelemetryCollaborationNewChangeset','_univerInstanceService','/universer-api/authz','registerHTTPInterceptor','_urlService','connection\x20error','_collaborationController','Vector2','_substituteRedoStack','USERS_ENTER','startsWith','_sendHeartbeatTimer','save\x20fail\x20reason\x20is\x20','/universer-api/snapshot/','univer-offline','text','SUBMIT_CHANGESET','ISnapshotServerService','reject','_hovered','_registerRenderDependencies','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_loadDoc','catch','equals','_updateURLWithCurrentState','DocStateChangeManagerService','OTHER_CLIENTS_EDITING','onRemoteRetry','complete','call','10505187fvMpiM','session.room-full','signUrlServerUrl','useCallback','CollaborationSessionService','IUndoRedoService','focused$','getInterceptPoints','on-line-single','HEARTBEAT','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','ImageIoService','MessageType','socket$','message$','_updateSubUnitFromURLParams','socketService','LocalCacheService','CommandType','liveShareNewHost','_onMessage','_sessions','_onCursorDelete','registerBeforeClose','unknown','debounceTime','getMergeData','b64DecodeUnicode','RETRY_CONNECTING_MAX_COUNT','_updateStatus','_clearTimeoutTimer','type','override','telemetry\x20info\x20is\x20not\x20initialized','getCurrentRevOfUnit','getUniverSheetInstance','set','_roomMembers$','_cursorInfo$','takeUntil','saveSheetBlock','CollaborationSocketService','deepClone','collaboration.closeRoom','[FetchMissState]','_transitionLocked','enableOfflineEditing','_createInitialState','revision','userID','onPointerLeave$','_pendingMutations','UnitSnapshot','?size=','_getUploadFileURL','patch','_notificationService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','show','loadDoc','/new_changes','NodePositionConvertToRectRange','HEADER_MENU','values','unit-cache-','_transformRemoteChangesetByIMECache','Optional','push','@univerjs-pro/license','UNIVER_SHEET','UniverCollaborationClientPlugin','_send','onTransformSelections','localeService','session.will-retry','subunit','_undoRedoService','sequenceExecute','syncEditingCollabCursor','sessionStatus$','forwardRef','_telemetryService','SetWorksheetActivateCommand','bind','_handleHover','/object/','getUndoRedoMutationParamsCache','_context','getFocusedUnit','extend','refreshPermission','_drawRectRange','save','initWorkbookPermissionChange','_localCacheService','assign','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','moveTo','unsubscribe','_userManagerService','selection','toLowerCase','replaceTextRanges','NodePositionConvertToCursor','randomUUID','collaboration.single-unit.warning','_awaitingChangeset','AUTHZ_URL_KEY','isActive','COMPRESS_MUTATION_SEND','origin','_clearLocalCache','APPLY_PERMISSION_DENIED','roomMembers$','/universer-api/snapshot','_unitStatus','delay','univer-online-status','indexOf','listCollaborators','LICENSE_DISTRO_REJECTED','sid','_removeClearOtherTimer','getDocRanges','\x20-\x20','Unknown\x20user','RevisionService','_docSkeletonManagerService','getConfig','_clearScheduledTask','_onUserLeave','MemberService','unitId\x20is\x20not\x20found','registerOnClose','DocSkeletonManagerService','code','propertyIsEnumerable','_uiPartsService','_ensureSubject','size','_startSheetCollabCursor','414pHMgbV','hasOwnProperty','_colorAssignService','textRanges','4iubrtm','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','measureText','_initStatusListener','_onRecvEvent','ILocalStorageService','getRandomValues','LEAVE','BuiltInUIPart','fromCollab','defIds','TOO_MANY_REQUESTS','_compressMutationService','_memberService','_assignedColors','_range','min','sheetId','_clearRedo','closeSession','YUUMI_RATE_OVER_LIMIT','startColumn','unit','endRow','flatMap','CollaborationEntity','_listenToOfflineEvent','collaboration-session-retry','/fetchmissing?from=','enableLocalCache','EffectRefRangId','awaiting_with_pending','/allowed','href','beginPath','take','CHANGESET_ACK','UNKNOWN_CMD','_transformStack','verdancy600','/universer-api/file/{fileID}/sign-url','max','IRenderManagerService','/block/','_socketService','PERMISSION_DENIED','getImageSourceCache','collabCursorState$','SessionStatus','debounce','currentTheme$','_initCommandExecutedListener','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_startTelemetryCollaborationNewChangeset','lineTo','PERMISSION_REJ','location','APPLY_NON_SEQUENTIAL_REVISION','COMMENT_UPDATE','socket\x20open.','_tryReconnect','_onRemoteRetry','_cachedData','backgroundColor','memberID','result','_updateCollabCursors','_tryEnsureSocket','resolve','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','defineProperty','put','0\x200\x2016\x2016','IConfigService','shareReplay','_saveTaskMap','objects','IURLService','toggleOffline'];_0x98ab=function(){return _0x532f94;};return _0x98ab();}var ps=Object[_0x4aaaf0(0x562)],Cs=Object[_0x4aaaf0(0x28b)],Es=(_0x32188d,_0x5876f0,_0x3f738c,_0x3a538d)=>{for(var _0x496567=_0x3a538d>0x1?void 0x0:_0x3a538d?Cs(_0x5876f0,_0x3f738c):_0x5876f0,_0x41a1cf=_0x32188d['length']-0x1,_0x50aa05;_0x41a1cf>=0x0;_0x41a1cf--)(_0x50aa05=_0x32188d[_0x41a1cf])&&(_0x496567=(_0x3a538d?_0x50aa05(_0x5876f0,_0x3f738c,_0x496567):_0x50aa05(_0x496567))||_0x496567);return _0x3a538d&&_0x496567&&ps(_0x5876f0,_0x3f738c,_0x496567),_0x496567;},ee=(_0x2970a6,_0x491ee5)=>(_0x530fd3,_0x562aee)=>_0x491ee5(_0x530fd3,_0x562aee,_0x2970a6);exports[_0x4aaaf0(0x48f)]=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0xe6a5c2,_0x255a21,_0x4bf47b,_0x4efe67,_0x2a3114,_0x360d9c){const _0x3eda0=_0x4aaaf0;super(),u(this,'_socket$',new v[(_0x3eda0(0x442))](void 0x0)),u(this,_0x3eda0(0x498),this[_0x3eda0(0x22f)][_0x3eda0(0x2a7)]()),u(this,_0x3eda0(0x278),null),u(this,'_sessions',new Map()),u(this,_0x3eda0(0x5af),new v[(_0x3eda0(0x442))](x['IDLE'])),u(this,_0x3eda0(0x3bc),this[_0x3eda0(0x5af)][_0x3eda0(0x2a7)]()),u(this,_0x3eda0(0x463),!0x1),u(this,_0x3eda0(0x212)),u(this,_0x3eda0(0x246),0x0),u(this,_0x3eda0(0x477)),u(this,'_timeoutTimer'),(this[_0x3eda0(0x5aa)]=_0xe6a5c2,this[_0x3eda0(0x2af)]=_0x255a21,this[_0x3eda0(0x206)]=_0x4bf47b,this[_0x3eda0(0x360)]=_0x4efe67,this[_0x3eda0(0x428)]=_0x2a3114,this[_0x3eda0(0x548)]=_0x360d9c,this['_initEventListeners']());}get[_0x4aaaf0(0x5ca)](){const _0x38fc51=_0x4aaaf0;return this['_socket$'][_0x38fc51(0x42d)]();}[_0x4aaaf0(0x1bf)](){const _0x29aa96=_0x4aaaf0;this[_0x29aa96(0x536)](),this[_0x29aa96(0x1bd)]();}[_0x4aaaf0(0x342)](){const _0x1dc50c=_0x4aaaf0;super[_0x1dc50c(0x342)](),this[_0x1dc50c(0x4a0)][_0x1dc50c(0x1d6)](_0x23b0df=>_0x23b0df['dispose']()),this[_0x1dc50c(0x4a0)][_0x1dc50c(0x3e4)](),this[_0x1dc50c(0x5af)]['complete']();}async[_0x4aaaf0(0x571)](_0x3cf592){const _0xa8b62d=_0x4aaaf0;if(this['_sessions'][_0xa8b62d(0x2cc)](_0x3cf592))return this['_sessions'][_0xa8b62d(0x439)](_0x3cf592);this[_0xa8b62d(0x55f)]();const _0x43ef61=this[_0xa8b62d(0x5aa)][_0xa8b62d(0x1da)](exports['CollaborationSession'],_0x3cf592,this[_0xa8b62d(0x22f)][_0xa8b62d(0x2a7)]());return this[_0xa8b62d(0x4a0)]['set'](_0x3cf592,_0x43ef61),_0x43ef61;}[_0x4aaaf0(0x52f)](_0x3ada8c){const _0x2cd242=_0x4aaaf0;var _0x4c4819;const _0x59eca3=this[_0x2cd242(0x4a0)][_0x2cd242(0x439)](_0x3ada8c);_0x59eca3&&(this['_sessions'][_0x2cd242(0x276)](_0x3ada8c),_0x59eca3['close']()),this['_sessions'][_0x2cd242(0x516)]||(_0x4c4819=this[_0x2cd242(0x5ca)])==null||_0x4c4819[_0x2cd242(0x344)]();}['reconnect'](){const _0x25375c=_0x4aaaf0;this['_retryCount']=0x0,this[_0x25375c(0x212)]!=null&&(clearTimeout(this[_0x25375c(0x212)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}[_0x4aaaf0(0x3a2)](){const _0xe20e1d=_0x4aaaf0;var _0x3b0b10,_0x188564;const _0x501135=this[_0xe20e1d(0x428)]['getConfig'](vt),_0x99e097=this[_0xe20e1d(0x428)][_0xe20e1d(0x50b)]($),_0x39c1aa=(_0x188564=(_0x3b0b10=_0x99e097==null?void 0x0:_0x99e097[_0xe20e1d(0x2f8)])!=null?_0x3b0b10:_0x501135)!=null?_0x188564:Qt,_0x14a09c=this['_socketService'][_0xe20e1d(0x291)](_0x39c1aa);return this[_0xe20e1d(0x278)]=_0x14a09c,_0x14a09c;}[_0x4aaaf0(0x55f)](){const _0x5211dc=_0x4aaaf0;var _0xb5203f,_0x530dee;try{const _0x3c20ac=(_0x530dee=(_0xb5203f=this['_socket'])!=null?_0xb5203f:this[_0x5211dc(0x278)])!=null?_0x530dee:this[_0x5211dc(0x3a2)]();if(_0x3c20ac){const _0x500e5d=_0x3c20ac['send'];_0x3c20ac[_0x5211dc(0x306)]=_0x255e3a=>(this[_0x5211dc(0x318)](),_0x500e5d[_0x5211dc(0x461)](_0x3c20ac,[_0x255e3a])),_0x3c20ac[_0x5211dc(0x499)][_0x5211dc(0x236)](_0x34994d=>this['_onMessage'](_0x3c20ac,_0x34994d)),_0x3c20ac[_0x5211dc(0x226)][_0x5211dc(0x2b0)](E[_0x5211dc(0x53f)](0x1))[_0x5211dc(0x236)](_0x50b072=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x50b072)),_0x3c20ac[_0x5211dc(0x283)][_0x5211dc(0x2b0)](E[_0x5211dc(0x53f)](0x1))['subscribe'](()=>{const _0x29672b=_0x5211dc;this[_0x29672b(0x3a0)](_0x3c20ac);}),_0x3c20ac[_0x5211dc(0x241)][_0x5211dc(0x2b0)](E[_0x5211dc(0x53f)](0x1))['subscribe'](_0x1f1fc1=>{const _0x249c15=_0x5211dc;this[_0x249c15(0x360)][_0x249c15(0x43f)]('[CollaborationSessionService]','socket\x20close',_0x1f1fc1),this[_0x249c15(0x2a5)]();});}}catch(_0x24af90){this[_0x5211dc(0x360)][_0x5211dc(0x574)](_0x24af90),this['_onConnectionFailed']();}}[_0x4aaaf0(0x3a0)](_0x5db3cb){const _0x1f3bde=_0x4aaaf0;this['_logService']['debug'](_0x1f3bde(0x2c3),_0x1f3bde(0x557)),_0x5db3cb[_0x1f3bde(0x306)]({'cmd':b[_0x1f3bde(0x437)]}),this['_rescheduleHeartbeat']();}[_0x4aaaf0(0x536)](){const _0x5920c1=_0x4aaaf0;window[_0x5920c1(0x335)]('offline',()=>this['_onOffline']());}[_0x4aaaf0(0x256)](){const _0xf6217=_0x4aaaf0;this[_0xf6217(0x463)]=!0x1,this[_0xf6217(0x278)]=null,this[_0xf6217(0x5af)][_0xf6217(0x3b3)](x[_0xf6217(0x270)]),this['_socket$']['next'](null),this[_0xf6217(0x4a9)](),this[_0xf6217(0x3fb)]();}[_0x4aaaf0(0x2a5)](){const _0x1173d2=_0x4aaaf0;var _0xaf927b;this[_0x1173d2(0x256)](),this[_0x1173d2(0x246)]<((_0xaf927b=this[_0x1173d2(0x428)][_0x1173d2(0x50b)](ft))!=null?_0xaf927b:ss)?(this['_messageService'][_0x1173d2(0x4c5)]({'key':_0x1173d2(0x537),'type':J[_0x1173d2(0x497)][_0x1173d2(0x34b)],'content':this[_0x1173d2(0x2af)]['t'](_0x1173d2(0x4d5))}),this['_tryReconnect']()):this[_0x1173d2(0x206)]['show']({'key':_0x1173d2(0x537),'type':J[_0x1173d2(0x497)][_0x1173d2(0x413)],'content':this[_0x1173d2(0x2af)]['t'](_0x1173d2(0x346))});}[_0x4aaaf0(0x1bd)](){const _0x584cf6=_0x4aaaf0,_0x4d9033=()=>{const _0x240a82=_0x47ba;this[_0x240a82(0x5ca)]||this['reconnect']();},_0x599ef9=()=>{const _0x550b60=_0x47ba;this[_0x550b60(0x5ca)]||document[_0x550b60(0x2c8)]===_0x550b60(0x345)||this['reconnect']();};window[_0x584cf6(0x335)]('online',_0x4d9033),document[_0x584cf6(0x335)](_0x584cf6(0x415),_0x599ef9);}[_0x4aaaf0(0x558)](){const _0x186e42=_0x4aaaf0;var _0x5d89f5;const _0x1a4723=this[_0x186e42(0x246)],_0x3b2c80=this[_0x186e42(0x428)][_0x186e42(0x50b)]($),_0x25efd0=_0x1a4723===0x0?0x0:((_0x5d89f5=_0x3b2c80==null?void 0x0:_0x3b2c80[_0x186e42(0x30d)])!=null?_0x5d89f5:ts)*0x2**_0x1a4723;this[_0x186e42(0x212)]=window[_0x186e42(0x3c4)](()=>{const _0x4e064b=_0x186e42;clearTimeout(this[_0x4e064b(0x212)]),this['_retryConnectingTimer']=null,this[_0x4e064b(0x55f)]();},_0x25efd0),this['_retryCount']+=0x1;}[_0x4aaaf0(0x49f)](_0x10e8ac,_0x145716){const _0x3f5df6=_0x4aaaf0,{cmd:_0x5ab157}=_0x145716;_0x5ab157===b[_0x3f5df6(0x437)]&&!this[_0x3f5df6(0x463)]&&(_0x10e8ac[_0x3f5df6(0x55c)]=_0x145716['data'][_0x3f5df6(0x55c)],this['_socket$'][_0x3f5df6(0x3b3)](_0x10e8ac),this[_0x3f5df6(0x5af)][_0x3f5df6(0x3b3)](x['ONLINE']),this[_0x3f5df6(0x463)]=!0x0,this[_0x3f5df6(0x278)]=null),_0x5ab157===b[_0x3f5df6(0x494)]&&this[_0x3f5df6(0x4a9)](),this[_0x3f5df6(0x318)]();}[_0x4aaaf0(0x318)](){const _0x16f82c=_0x4aaaf0;var _0x5f19d8;this['_clearHeartbeatTimer'](),this[_0x16f82c(0x477)]=window['setTimeout'](()=>this[_0x16f82c(0x589)](),(_0x5f19d8=this[_0x16f82c(0x428)][_0x16f82c(0x50b)](mt))!=null?_0x5f19d8:es);}[_0x4aaaf0(0x589)](){const _0x4a6374=_0x4aaaf0;this[_0x4a6374(0x5ca)]['send']({'cmd':b[_0x4a6374(0x494)]}),this[_0x4a6374(0x201)]();}[_0x4aaaf0(0x201)](){const _0x8e9753=_0x4aaaf0;var _0x36ff0c;this[_0x8e9753(0x5d0)]=window[_0x8e9753(0x3c4)](()=>this[_0x8e9753(0x2a5)](),(_0x36ff0c=this[_0x8e9753(0x428)][_0x8e9753(0x50b)](Fe))!=null?_0x36ff0c:gt);}['_clearHeartbeatTimer'](){const _0x25acdb=_0x4aaaf0;this[_0x25acdb(0x477)]!=null&&(clearTimeout(this[_0x25acdb(0x477)]),this[_0x25acdb(0x477)]=null);}['_clearTimeoutTimer'](){const _0x4a8552=_0x4aaaf0;this[_0x4a8552(0x5d0)]!=null&&(clearTimeout(this[_0x4a8552(0x5d0)]),this[_0x4a8552(0x5d0)]=null);}},exports[_0x4aaaf0(0x48f)]=Es([ee(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),ee(0x1,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1f6)])),ee(0x2,A[_0x4aaaf0(0x31b)]),ee(0x3,a[_0x4aaaf0(0x1d1)]),ee(0x4,a['IConfigService']),ee(0x5,Ye)],exports['CollaborationSessionService']);var R=[];for(var ye=0x0;ye<0x100;++ye)R['push']((ye+0x100)[_0x4aaaf0(0x222)](0x10)[_0x4aaaf0(0x233)](0x1));function bs(_0x5b71a7,_0x343371=0x0){const _0x5bf7ae=_0x4aaaf0;return(R[_0x5b71a7[_0x343371+0x0]]+R[_0x5b71a7[_0x343371+0x1]]+R[_0x5b71a7[_0x343371+0x2]]+R[_0x5b71a7[_0x343371+0x3]]+'-'+R[_0x5b71a7[_0x343371+0x4]]+R[_0x5b71a7[_0x343371+0x5]]+'-'+R[_0x5b71a7[_0x343371+0x6]]+R[_0x5b71a7[_0x343371+0x7]]+'-'+R[_0x5b71a7[_0x343371+0x8]]+R[_0x5b71a7[_0x343371+0x9]]+'-'+R[_0x5b71a7[_0x343371+0xa]]+R[_0x5b71a7[_0x343371+0xb]]+R[_0x5b71a7[_0x343371+0xc]]+R[_0x5b71a7[_0x343371+0xd]]+R[_0x5b71a7[_0x343371+0xe]]+R[_0x5b71a7[_0x343371+0xf]])[_0x5bf7ae(0x4f0)]();}var Se,Ts=new Uint8Array(0x10);function Rs(){const _0x377796=_0x4aaaf0;if(!Se&&(Se=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x377796(0x522)][_0x377796(0x4de)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(Ts);}var Os=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x4aaaf0(0x4f3)][_0x4aaaf0(0x4de)](crypto);const tt={'randomUUID':Os};function Ds(_0xcae6b6,_0x5981b8,_0x4f7965){const _0x475feb=_0x4aaaf0;if(tt[_0x475feb(0x4f3)]&&!_0x5981b8&&!_0xcae6b6)return tt[_0x475feb(0x4f3)]();_0xcae6b6=_0xcae6b6||{};var _0x1c0d32=_0xcae6b6[_0x475feb(0x2ef)]||(_0xcae6b6[_0x475feb(0x3d0)]||Rs)();return _0x1c0d32[0x6]=_0x1c0d32[0x6]&0xf|0x40,_0x1c0d32[0x8]=_0x1c0d32[0x8]&0x3f|0x80,bs(_0x1c0d32);}var ys=Object['defineProperty'],Us=Object[_0x4aaaf0(0x28b)],Ps=(_0x3369ec,_0x190750,_0x514237,_0x207b67)=>{for(var _0xc5a832=_0x207b67>0x1?void 0x0:_0x207b67?Us(_0x190750,_0x514237):_0x190750,_0x33b075=_0x3369ec['length']-0x1,_0x169a08;_0x33b075>=0x0;_0x33b075--)(_0x169a08=_0x3369ec[_0x33b075])&&(_0xc5a832=(_0x207b67?_0x169a08(_0x190750,_0x514237,_0xc5a832):_0x169a08(_0xc5a832))||_0xc5a832);return _0x207b67&&_0xc5a832&&ys(_0x190750,_0x514237,_0xc5a832),_0xc5a832;},Ue=(_0x2987d7,_0x41d988)=>(_0x2d8c24,_0x5e7c63)=>_0x41d988(_0x2d8c24,_0x5e7c63,_0x2987d7);let fe=class{constructor(_0x4daf1e,_0x120c21,_0x1048d0){const _0x3ec976=_0x4aaaf0;this[_0x3ec976(0x5aa)]=_0x4daf1e,this['_transformService']=_0x120c21,this[_0x3ec976(0x2e3)]=_0x1048d0;}[_0x4aaaf0(0x358)](_0x419166){const _0x53241f=_0x4aaaf0;this[_0x53241f(0x5ac)](_0x419166),this[_0x53241f(0x2be)](_0x419166);}[_0x4aaaf0(0x438)](_0x1c1f03){const _0x45f484=_0x4aaaf0,{unitID:_0xf5eff6}=_0x1c1f03,_0x371ffe=this['_renderManagerService']['getRenderById'](_0xf5eff6)['with'](N[_0x45f484(0x39f)]),{redoCache:_0x25b046}=_0x371ffe['getUndoRedoMutationParamsCache']();if(_0x25b046[_0x45f484(0x31a)]===0x0)return _0x1c1f03;let _0x4d0863=a[_0x45f484(0x5a8)]['deepClone'](_0x1c1f03['mutations'][0x0]);for(let _0x35880c=0x0;_0x35880c<_0x25b046[_0x45f484(0x31a)];_0x35880c++){const _0x5f37be={'id':_0x45f484(0x350),'params':{..._0x25b046[_0x35880c]}},_0x4ad26d=this[_0x45f484(0x37f)]['transformMutation'](_0x4d0863,_0x5f37be,!0x1);if(_['isTransformMutationFailure'](_0x4ad26d))throw _0x4ad26d['error'];_0x4d0863=_0x4ad26d[_0x45f484(0x2b9)];}return{...a[_0x45f484(0x5a8)][_0x45f484(0x4b5)](_0x1c1f03),'mutations':[_0x4d0863]};}[_0x4aaaf0(0x5ac)](_0x56fb85){const _0x49472c=_0x4aaaf0,{unitID:_0x141a39}=_0x56fb85,_0x33f088=this[_0x49472c(0x2e3)][_0x49472c(0x22b)](_0x141a39)[_0x49472c(0x2ad)](N['DocIMEInputManagerService']),{undoCache:_0x36bd77,redoCache:_0x290fd0}=_0x33f088[_0x49472c(0x4e1)]();if(_0x36bd77[_0x49472c(0x31a)]===0x0||_0x290fd0[_0x49472c(0x31a)]===0x0)return;const _0x1cc2b3=[],_0x37fd5d=[];let _0x109174=a[_0x49472c(0x5a8)]['deepClone'](_0x56fb85[_0x49472c(0x2b7)][0x0]),_0x53f29c=a[_0x49472c(0x5a8)][_0x49472c(0x4b5)](_0x56fb85['mutations'][0x0]);for(let _0x503d13=_0x36bd77[_0x49472c(0x31a)]-0x1;_0x503d13>=0x0;_0x503d13--){const _0x962d48={'id':_0x49472c(0x350),'params':{..._0x36bd77[_0x503d13]}},_0x1a7be6={'id':_0x49472c(0x350),'params':{..._0x290fd0[_0x503d13]}},_0x23ce44=this[_0x49472c(0x37f)][_0x49472c(0x32b)](_0x109174,_0x962d48,!0x1),_0xfe8cf8=this[_0x49472c(0x37f)][_0x49472c(0x32b)](_0x53f29c,_0x1a7be6,!0x1);if(_[_0x49472c(0x3f6)](_0x23ce44))throw _0x23ce44['error'];if(_[_0x49472c(0x3f6)](_0xfe8cf8))throw _0xfe8cf8[_0x49472c(0x574)];_0x1cc2b3[_0x49472c(0x373)](_0x23ce44[_0x49472c(0x3a9)][_0x49472c(0x348)]),_0x37fd5d[_0x49472c(0x373)](_0xfe8cf8[_0x49472c(0x3a9)][_0x49472c(0x348)]),_0x109174=_0x23ce44[_0x49472c(0x2b9)],_0x53f29c=_0xfe8cf8[_0x49472c(0x2b9)];}_0x33f088[_0x49472c(0x286)]({'undoCache':_0x1cc2b3,'redoCache':_0x37fd5d});}[_0x4aaaf0(0x2be)](_0x316975){const _0x2815ee=_0x4aaaf0,{unitID:_0x1f980a}=_0x316975,_0x4683ec=this[_0x2815ee(0x2e3)][_0x2815ee(0x22b)](_0x1f980a)[_0x2815ee(0x2ad)](N['DocIMEInputManagerService']),_0x1e3a72=_0x4683ec['getActiveRange']();if(_0x1e3a72==null)return;const _0x2fafe0=[{'id':_0x2815ee(0x350),'params':{'unitId':_0x316975[_0x2815ee(0x41c)],'actions':null,'textRanges':[_0x1e3a72]}}],_0x9aeb97=this[_0x2815ee(0x37f)][_0x2815ee(0x34d)](_0x316975,_0x2fafe0);if(!_[_0x2815ee(0x5b7)](_0x9aeb97))throw _0x9aeb97['error'];const _0x203ded=_0x9aeb97[_0x2815ee(0x3a9)][0x0][_0x2815ee(0x348)][_0x2815ee(0x51b)];Array['isArray'](_0x203ded)&&_0x203ded['length']&&_0x4683ec[_0x2815ee(0x2e7)](_0x203ded[0x0]);}};fe=Ps([Ue(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),Ue(0x1,_['ITransformService']),Ue(0x2,O[_0x4aaaf0(0x546)])],fe);var ws=Object[_0x4aaaf0(0x562)],Ns=Object[_0x4aaaf0(0x28b)],Ms=(_0x102820,_0x509795,_0x15413c,_0x3a25f5)=>{const _0x2fe3d8=_0x4aaaf0;for(var _0x5266d1=_0x3a25f5>0x1?void 0x0:_0x3a25f5?Ns(_0x509795,_0x15413c):_0x509795,_0x196530=_0x102820[_0x2fe3d8(0x31a)]-0x1,_0x306fe0;_0x196530>=0x0;_0x196530--)(_0x306fe0=_0x102820[_0x196530])&&(_0x5266d1=(_0x3a25f5?_0x306fe0(_0x509795,_0x15413c,_0x5266d1):_0x306fe0(_0x5266d1))||_0x5266d1);return _0x3a25f5&&_0x5266d1&&ws(_0x509795,_0x15413c,_0x5266d1),_0x5266d1;},ce=(_0x240c5b,_0x2e1996)=>(_0x5d1143,_0x563d07)=>_0x2e1996(_0x5d1143,_0x563d07,_0x240c5b);exports['LocalCacheService']=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x163599,_0x3babf6,_0x631cfa,_0x23c3cf,_0x3efa37){const _0x19debe=_0x4aaaf0;super(),u(this,'_cachedData',new Map()),u(this,_0x19debe(0x567),new Map()),u(this,_0x19debe(0x234),!0x1),(this[_0x19debe(0x428)]=_0x163599,this[_0x19debe(0x25c)]=_0x3babf6,this['_beforeCloseService']=_0x631cfa,this[_0x19debe(0x2af)]=_0x23c3cf,this[_0x19debe(0x57d)]=_0x3efa37,this[_0x19debe(0x44f)]());}[_0x4aaaf0(0x20d)](){const _0x30307e=_0x4aaaf0;this[_0x30307e(0x234)]=!0x0;}[_0x4aaaf0(0x539)](){this['_disabled']=!0x1;}[_0x4aaaf0(0x342)](){const _0x375153=_0x4aaaf0;this['exhaustSavingTask']()[_0x375153(0x254)](()=>super['dispose']());}async[_0x4aaaf0(0x436)](_0x2f19d3){const _0x28e868=_0x4aaaf0;return this[_0x28e868(0x234)]?null:this[_0x28e868(0x25c)][_0x28e868(0x259)](st(_0x2f19d3));}async[_0x4aaaf0(0x369)](_0x183a34,_0x50ab2c){const _0x40d0ed=_0x4aaaf0;return!!this[_0x40d0ed(0x25c)][_0x40d0ed(0x381)](_0x183a34,_0x50ab2c);}[_0x4aaaf0(0x465)](_0xfa5a39,_0x4a92d4,_0x3a4975,_0x1e9af3){const _0x171e80=_0x4aaaf0,_0x2b10dc=this['_revisionService'][_0x171e80(0x4ad)](_0xfa5a39);this[_0x171e80(0x55a)][_0x171e80(0x4af)](_0xfa5a39,{'unitID':_0xfa5a39,'type':_0x4a92d4,'awaitingChangeset':_0x3a4975,'mutations':_0x1e9af3,'rev':_0x2b10dc}),this[_0x171e80(0x567)][_0x171e80(0x2cc)](_0xfa5a39)||this[_0x171e80(0x5a2)](_0xfa5a39);}['_scheduleSaving'](_0x2fd73f){const _0x4db450=_0x4aaaf0,_0x447ce3=this[_0x4db450(0x281)]();_0x447ce3===0x0?this[_0x4db450(0x352)](_0x2fd73f):this[_0x4db450(0x567)]['set'](_0x2fd73f,setTimeout(()=>this['_saveCache'](_0x2fd73f),_0x447ce3));}['_getSaveTimeout'](){const _0x3a8144=_0x4aaaf0;var _0x462945;return(_0x462945=this[_0x3a8144(0x428)]['getConfig'](It))!=null?_0x462945:is;}['_saveCache'](_0x4674cb){const _0x38cdf9=_0x4aaaf0,_0x182cbf=this[_0x38cdf9(0x567)]['get'](_0x4674cb);return _0x182cbf!==void 0x0&&window[_0x38cdf9(0x244)](_0x182cbf),this[_0x38cdf9(0x25c)][_0x38cdf9(0x381)](st(_0x4674cb),this['_cachedData'][_0x38cdf9(0x439)](_0x4674cb))[_0x38cdf9(0x254)](()=>this[_0x38cdf9(0x567)][_0x38cdf9(0x276)](_0x4674cb));}async[_0x4aaaf0(0x3ac)](){const _0xf958ca=_0x4aaaf0,_0x31a665=[];this[_0xf958ca(0x567)][_0xf958ca(0x1d6)]((_0x3a923c,_0x44f9ed)=>{const _0x111be4=_0xf958ca;window[_0x111be4(0x244)](_0x3a923c),_0x31a665['push'](this[_0x111be4(0x352)](_0x44f9ed)[_0x111be4(0x254)](()=>{const _0xf329f9=_0x111be4;this[_0xf329f9(0x567)]['delete'](_0x44f9ed);}));}),await Promise[_0xf958ca(0x1c7)](_0x31a665);}['_setupBeforeClosingHandler'](){const _0x5bf219=_0x4aaaf0;this[_0x5bf219(0x367)](this[_0x5bf219(0x31e)][_0x5bf219(0x4a2)](()=>{const _0xf7996d=_0x5bf219;if(this['_saveTaskMap'][_0xf7996d(0x516)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x4aaaf0(0x49c)]=Ms([ce(0x0,a[_0x4aaaf0(0x565)]),ce(0x1,a[_0x4aaaf0(0x521)]),ce(0x2,A[_0x4aaaf0(0x595)]),ce(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1f6)])),ce(0x4,a['Inject'](_[_0x4aaaf0(0x509)]))],exports['LocalCacheService']);function st(_0x21b8a8){const _0x247a96=_0x4aaaf0;return _0x247a96(0x4cb)+_0x21b8a8;}var As=Object[_0x4aaaf0(0x562)],Ls=Object['getOwnPropertyDescriptor'],$s=(_0x340fab,_0x409db6,_0x19f5d7,_0xdf03ff)=>{for(var _0x4c31c5=_0xdf03ff>0x1?void 0x0:_0xdf03ff?Ls(_0x409db6,_0x19f5d7):_0x409db6,_0x406da2=_0x340fab['length']-0x1,_0xd45fc6;_0x406da2>=0x0;_0x406da2--)(_0xd45fc6=_0x340fab[_0x406da2])&&(_0x4c31c5=(_0xdf03ff?_0xd45fc6(_0x409db6,_0x19f5d7,_0x4c31c5):_0xd45fc6(_0x4c31c5))||_0x4c31c5);return _0xdf03ff&&_0x4c31c5&&As(_0x409db6,_0x19f5d7,_0x4c31c5),_0x4c31c5;},Pe=(_0x585bbd,_0x39065a)=>(_0x2f5b0f,_0x588873)=>_0x39065a(_0x2f5b0f,_0x588873,_0x585bbd);function js(_0x28bd25){const _0x5c7501=_0x4aaaf0,{unitID:_0x326add,mutations:_0x315dff}=_0x28bd25;return{'unitId':_0x326add,'subUnitId':_0x315dff[0x0]['params'][_0x5c7501(0x395)]};}let Ie=class{constructor(_0x26e7af,_0x17fdb5,_0x432165){const _0x23d97f=_0x4aaaf0;this[_0x23d97f(0x5aa)]=_0x26e7af,this['_transformService']=_0x17fdb5,this['_instanceService']=_0x432165;}[_0x4aaaf0(0x5bf)](_0x5d9237){const _0x5a67c8=_0x4aaaf0;var _0x2a1de2,_0x423f14,_0xdde82d,_0x35fcd0;const _0x15a4a1=this[_0x5a67c8(0x5aa)][_0x5a67c8(0x439)](C[_0x5a67c8(0x29b)]),{unitId:_0x34c07e,subUnitId:_0x245cca}=js(_0x5d9237),_0x5f51de=_0x15a4a1[_0x5a67c8(0x450)](_0x34c07e)[_0x5a67c8(0x303)](),_0x2fd6b5=(_0x423f14=(_0x2a1de2=this['_instanceService'][_0x5a67c8(0x1d8)](_0x34c07e))==null?void 0x0:_0x2a1de2[_0x5a67c8(0x372)]())==null?void 0x0:_0x423f14[_0x5a67c8(0x271)]();if(_0x5f51de[_0x5a67c8(0x31a)]===0x0||!_0x34c07e||!_0x245cca)return;const _0x48a07d=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x34c07e,'subUnitId':_0x2fd6b5,'selections':a[_0x5a67c8(0x5a8)][_0x5a67c8(0x4b5)](_0x5f51de)}}],_0x1f57a3=this[_0x5a67c8(0x37f)][_0x5a67c8(0x34d)](_0x5d9237,_0x48a07d);if(!_[_0x5a67c8(0x5b7)](_0x1f57a3))throw _0x1f57a3[_0x5a67c8(0x574)];const _0x3fd60a=(_0x35fcd0=(_0xdde82d=_0x1f57a3[_0x5a67c8(0x3a9)][0x0])==null?void 0x0:_0xdde82d[_0x5a67c8(0x348)])==null?void 0x0:_0x35fcd0[_0x5a67c8(0x44d)];if(Array[_0x5a67c8(0x27b)](_0x3fd60a)&&_0x3fd60a['length']){if(_0x3fd60a['length']===_0x48a07d[0x0]['params'][_0x5a67c8(0x44d)][_0x5a67c8(0x31a)]&&_0x3fd60a[_0x5a67c8(0x262)]((_0x236426,_0x4d5413)=>a[_0x5a67c8(0x29a)][_0x5a67c8(0x484)](_0x236426['range'],_0x48a07d[0x0][_0x5a67c8(0x348)][_0x5a67c8(0x44d)][_0x4d5413][_0x5a67c8(0x325)])))return;this[_0x5a67c8(0x5aa)]['get'](a[_0x5a67c8(0x5df)])[_0x5a67c8(0x593)](C['SetSelectionsOperation']['id'],{'unitId':_0x34c07e,'subUnitId':_0x2fd6b5,'selections':_0x3fd60a});}}};Ie=$s([Pe(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),Pe(0x1,_[_0x4aaaf0(0x41f)]),Pe(0x2,a[_0x4aaaf0(0x33f)])],Ie);const Re=a['createIdentifier'](_0x4aaaf0(0x38c));var Ot=(_0x4aa383=>(_0x4aa383[_0x4aa383[_0x4aaaf0(0x2a0)]=0x0]=_0x4aaaf0(0x2a0),_0x4aa383[_0x4aa383[_0x4aaaf0(0x487)]=0x1]=_0x4aaaf0(0x487),_0x4aa383))(Ot||{});const it=0x7530,nt=_0x4aaaf0(0x247);class Hs extends a[_0x4aaaf0(0x3ef)]{constructor(){const _0x4a339=_0x4aaaf0;super(),u(this,'_id',a['Tools'][_0x4a339(0x1c9)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0x4a339(0x5bc),new Map()),u(this,'_heartbeatTimer',null),u(this,_0x4a339(0x402),new Map()),u(this,_0x4a339(0x4fe),new Map()),this[_0x4a339(0x33d)]();}[_0x4aaaf0(0x342)](){const _0x238f7c=_0x4aaaf0;super['dispose'](),this[_0x238f7c(0x402)][_0x238f7c(0x1d6)]((_0x2cd908,_0x295641)=>this[_0x238f7c(0x505)](_0x295641)),this[_0x238f7c(0x3cc)]&&window['clearInterval'](this[_0x238f7c(0x3cc)]);}['getUnitStatus$'](_0x2188b9){const _0x58e5d2=_0x4aaaf0;return this[_0x58e5d2(0x515)](_0x2188b9)['pipe'](v[_0x58e5d2(0x421)]());}[_0x4aaaf0(0x45f)](_0x1506d2){const _0xfb220=_0x4aaaf0;this[_0xfb220(0x279)][_0xfb220(0x516)]===0x0&&this[_0xfb220(0x1c8)](),this['_selfUnitIDs']['add'](_0x1506d2),this['_send']({'type':0x0,'memberID':this[_0xfb220(0x1ff)],'unitIDs':[_0x1506d2],'isForwarded':!0x1});}['disposeUnit'](_0x428d03){const _0x17651a=_0x4aaaf0;this['_selfUnitIDs']['delete'](_0x428d03),this[_0x17651a(0x279)][_0x17651a(0x516)]===0x0&&this[_0x17651a(0x3cc)]&&window[_0x17651a(0x404)](this[_0x17651a(0x3cc)]);}[_0x4aaaf0(0x33d)](){const _0x1d3a01=_0x4aaaf0;this[_0x1d3a01(0x367)](a[_0x1d3a01(0x2c6)](v[_0x1d3a01(0x401)](window,_0x1d3a01(0x460))['subscribe'](_0x2b5fcc=>{const _0x359ef0=_0x1d3a01;if(_0x2b5fcc[_0x359ef0(0x36f)]!==nt||!_0x2b5fcc['newValue'])return;const _0x34d1e1=JSON[_0x359ef0(0x249)](_0x2b5fcc[_0x359ef0(0x255)]);this[_0x359ef0(0x214)](_0x34d1e1);}))),window[_0x1d3a01(0x335)](_0x1d3a01(0x433),()=>this['_send']({'type':0x1,'memberID':this[_0x1d3a01(0x1ff)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x4aaaf0(0x214)](_0x149fcc){const _0xf1a9=_0x4aaaf0;switch(_0x149fcc[_0xf1a9(0x4aa)]){case 0x0:this[_0xf1a9(0x253)](_0x149fcc);break;case 0x1:this[_0xf1a9(0x429)](_0x149fcc);break;case 0x2:this[_0xf1a9(0x3e6)](_0x149fcc);break;}}[_0x4aaaf0(0x253)](_0x4d836d){const _0x509d16=_0x4aaaf0,{unitIDs:_0x52663e,memberID:_0x4ecbc3,isForwarded:_0x3a430a}=_0x4d836d;_0x52663e[_0x509d16(0x1d6)](_0x1f2504=>{const _0x54612b=_0x509d16;if(!_0x3a430a&&this['_unitOnClients'][_0x54612b(0x2cc)](_0x1f2504)&&this[_0x54612b(0x515)](_0x1f2504)[_0x54612b(0x3b3)](0x1),!this['_unitOnClients'][_0x54612b(0x2cc)](_0x1f2504)||!this[_0x54612b(0x5bc)][_0x54612b(0x439)](_0x1f2504)[_0x54612b(0x2cc)](_0x4ecbc3)){const _0x4c14bb=this[_0x54612b(0x5bc)][_0x54612b(0x439)](_0x1f2504)||new Set();_0x4c14bb[_0x54612b(0x24d)](_0x4ecbc3),this[_0x54612b(0x5bc)][_0x54612b(0x4af)](_0x1f2504,_0x4c14bb),this[_0x54612b(0x2e9)](_0x4ecbc3);}}),_0x3a430a||this[_0x509d16(0x4d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x509d16(0x279)]],'isForwarded':!0x0});}[_0x4aaaf0(0x2e9)](_0x15150d){const _0x44ad87=_0x4aaaf0;this[_0x44ad87(0x505)](_0x15150d);const _0x1721b4=window[_0x44ad87(0x3c4)](()=>{const _0x311735=_0x44ad87;this[_0x311735(0x5bc)][_0x311735(0x1d6)](_0x4f9cec=>{_0x4f9cec['delete'](_0x15150d);});},it*0x2);this[_0x44ad87(0x402)][_0x44ad87(0x4af)](_0x15150d,_0x1721b4);}[_0x4aaaf0(0x505)](_0x346090){const _0x1d2a68=_0x4aaaf0;if(this[_0x1d2a68(0x402)]['has'](_0x346090)){const _0x5b2907=this[_0x1d2a68(0x402)][_0x1d2a68(0x439)](_0x346090);_0x5b2907&&window['clearTimeout'](_0x5b2907),this[_0x1d2a68(0x402)]['set'](_0x346090,null);}}['_handleLeaveEvent'](_0x1613af){const _0x3de052=_0x4aaaf0,{memberID:_0x1a54fb,unitIDs:_0x3eaaad}=_0x1613af;_0x3eaaad[_0x3de052(0x1d6)](_0x247410=>{const _0x2feb1b=_0x3de052;var _0x49fc1f;const _0x362907=this[_0x2feb1b(0x5bc)][_0x2feb1b(0x439)](_0x247410);_0x362907&&(_0x362907[_0x2feb1b(0x276)](_0x1a54fb),(_0x49fc1f=this['_ensureSubject'](_0x247410))==null||_0x49fc1f[_0x2feb1b(0x3b3)](_0x362907[_0x2feb1b(0x516)]===0x0?0x0:0x1));}),this[_0x3de052(0x505)](_0x1a54fb);}[_0x4aaaf0(0x3e6)](_0x14f482){const _0x211c38=_0x4aaaf0;this[_0x211c38(0x2e9)](_0x14f482[_0x211c38(0x55c)]);}['_send'](_0x1f8bd9){const _0x977a23=_0x4aaaf0;localStorage[_0x977a23(0x381)](nt,JSON[_0x977a23(0x24c)](_0x1f8bd9));}['_scheduleHeartbeat'](){const _0x232ad8=_0x4aaaf0;this[_0x232ad8(0x3cc)]=window[_0x232ad8(0x1ea)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},it);}['_ensureSubject'](_0x259a08){const _0x35b34c=_0x4aaaf0;return this['_unitStatus']['has'](_0x259a08)||this[_0x35b34c(0x4fe)][_0x35b34c(0x4af)](_0x259a08,new v['BehaviorSubject'](0x0)),this[_0x35b34c(0x4fe)][_0x35b34c(0x439)](_0x259a08);}}function Dt(_0x4b77ba){let _0x98b98a='';for(const _0x3e6f47 of _0x4b77ba){const {startOffset:_0x8d2b59,endOffset:_0x2e47d8,isActive:_0x19878c,rangeType:_0x527185,segmentId:_0x25843d,segmentPage:_0x5769ff}=_0x3e6f47;_0x98b98a['length']&&(_0x98b98a+=','),_0x98b98a+=_0x8d2b59+':'+_0x2e47d8+':'+(_0x19878c?'1':'0')+':'+_0x527185+':'+_0x25843d+':'+_0x5769ff;}return _0x98b98a;}function xs(_0x2596a9){const _0x2d99fa=_0x4aaaf0,_0xa899ca=_0x2596a9[_0x2d99fa(0x3a5)](','),_0x128b5e=[];for(const _0x57dd90 of _0xa899ca){const [_0x31cdef,_0x5bac73,_0x3e1534,_0x5cc07e,_0x1350e1,_0x242c6b]=_0x57dd90[_0x2d99fa(0x3a5)](':');_0x128b5e[_0x2d99fa(0x4ce)]({'startOffset':Number(_0x31cdef),'endOffset':Number(_0x5bac73),'collapsed':_0x31cdef===_0x5bac73,'isActive':_0x3e1534==='1','rangeType':_0x5cc07e===a['DOC_RANGE_TYPE'][_0x2d99fa(0x3a1)]?a[_0x2d99fa(0x353)]['TEXT']:a[_0x2d99fa(0x353)][_0x2d99fa(0x5b5)],'segmentId':typeof _0x1350e1==_0x2d99fa(0x31c)?String(_0x1350e1):'','segmentPage':Number(_0x242c6b!=null?_0x242c6b:-0x1)});}return _0x128b5e[_0x2d99fa(0x240)](_0x3e67fd=>_0x3e67fd['isActive'])||(_0x128b5e[0x0][_0x2d99fa(0x4f7)]=!0x0),_0x128b5e;}class Xe extends a[_0x4aaaf0(0x275)]{constructor(){const _0x3ee688=_0x4aaaf0;super(...arguments),u(this,_0x3ee688(0x26b),new v[(_0x3ee688(0x442))](null)),u(this,_0x3ee688(0x54b),this[_0x3ee688(0x26b)][_0x3ee688(0x2a7)]());}[_0x4aaaf0(0x4d9)](_0x4232b0){const _0x1e5582=_0x4aaaf0,{unitID:_0x3a1a85,memberID:_0x4e35dc,textRanges:_0x251305}=_0x4232b0,_0x4c446a=Dt(_0x251305);if(_0x4c446a==='')return;const _0x609c4f={'unitID':_0x3a1a85,'memberID':_0x4e35dc,'selection':_0x4c446a};this[_0x1e5582(0x26b)][_0x1e5582(0x3b3)](_0x609c4f);}}var ks=Object[_0x4aaaf0(0x562)],Bs=Object['getOwnPropertyDescriptor'],Vs=(_0x1433d1,_0x572ebd,_0x4642db,_0x516654)=>{const _0x13e2cb=_0x4aaaf0;for(var _0x349cea=_0x516654>0x1?void 0x0:_0x516654?Bs(_0x572ebd,_0x4642db):_0x572ebd,_0x5f38e4=_0x1433d1[_0x13e2cb(0x31a)]-0x1,_0x593076;_0x5f38e4>=0x0;_0x5f38e4--)(_0x593076=_0x1433d1[_0x5f38e4])&&(_0x349cea=(_0x516654?_0x593076(_0x572ebd,_0x4642db,_0x349cea):_0x593076(_0x349cea))||_0x349cea);return _0x516654&&_0x349cea&&ks(_0x572ebd,_0x4642db,_0x349cea),_0x349cea;},rt=(_0x58f03d,_0x3935a0)=>(_0x2d1350,_0x4bb233)=>_0x3935a0(_0x2d1350,_0x4bb233,_0x58f03d);let pe=class{constructor(_0x233cf9,_0x48f681){this['_injector']=_0x233cf9,this['_transformService']=_0x48f681;}['transformSelections'](_0x222491){const _0x5cea0a=_0x4aaaf0;var _0x196c31;const _0x4f6f2e=this['_injector'][_0x5cea0a(0x439)](ne[_0x5cea0a(0x28f)]),_0x1392dd=(_0x196c31=_0x4f6f2e['getDocRanges']())!=null?_0x196c31:[];if(_0x1392dd[_0x5cea0a(0x31a)]===0x0)return;const _0x5aa388=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x222491['unitID'],'actions':null,'textRanges':_0x1392dd}}],_0x2fca4f=this['_transformService'][_0x5cea0a(0x34d)](_0x222491,_0x5aa388);if(!_[_0x5cea0a(0x5b7)](_0x2fca4f))throw _0x2fca4f[_0x5cea0a(0x574)];const _0x3bd96d=_0x2fca4f[_0x5cea0a(0x3a9)][0x0][_0x5cea0a(0x348)][_0x5cea0a(0x51b)];Array[_0x5cea0a(0x27b)](_0x3bd96d)&&_0x3bd96d[_0x5cea0a(0x31a)]&&_0x4f6f2e[_0x5cea0a(0x4f1)](_0x3bd96d,!0x1);}};pe=Vs([rt(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),rt(0x1,_[_0x4aaaf0(0x41f)])],pe);const Ws=new Set([C[_0x4aaaf0(0x273)]['id']]);function ot(_0x4e58b4,_0x44c518,_0x2e8fa4,_0x1491e5,_0x5412d5){const _0x3a6adf=_0x4aaaf0;var _0x4a0061,_0x30b34f,_0x3fa3bd,_0x206cb2;const _0xa476b3=[];for(const _0xd3cfa7 of _0x4e58b4)if(Ws[_0x3a6adf(0x2cc)](_0xd3cfa7['id'])){if(_0xa476b3[_0x3a6adf(0x31a)]>0x0)break;_0xa476b3[_0x3a6adf(0x4ce)](_0xd3cfa7);break;}else _0xa476b3[_0x3a6adf(0x4ce)](_0xd3cfa7);const _0x5b4ca8=(_0x30b34f=(_0x4a0061=_0x5412d5[_0x3a6adf(0x5d5)]())==null?void 0x0:_0x4a0061[_0x3a6adf(0x4bc)])!=null?_0x30b34f:_0x3a6adf(0x4a3),_0x347e11=(_0x206cb2=(_0x3fa3bd=_0x5412d5[_0x3a6adf(0x5d5)]())==null?void 0x0:_0x3fa3bd[_0x3a6adf(0x55c)])!=null?_0x206cb2:'unknown';return{'changeset':{'unitID':_0x44c518,'type':_[_0x3a6adf(0x338)](_0x2e8fa4[_0x3a6adf(0x576)](_0x44c518)),'baseRev':_0x1491e5['getCurrentRevOfUnit'](_0x44c518),'revision':0x0,'userID':_0x5b4ca8,'memberID':_0x347e11,'mutations':_0xa476b3},'pendingMutations':_0x4e58b4['slice'](_0xa476b3['length'])};}function Fs(_0x15d598,_0x5576fd,_0x3ee08c,_0x397f1a,_0x407242){const _0x5eb53f=_0x4aaaf0;var _0x39b2de,_0x548acd,_0x457fe7,_0x14d852;const _0xbf4bfe=[_0x15d598[_0x5eb53f(0x3ba)]((_0x17e938,_0x1dd653)=>{const _0x3fd605=_0x5eb53f;var _0x1df382;const {id:_0x6c12cb}=_0x17e938,{id:_0x1a1f3c,type:_0x53970e}=_0x1dd653,_0x48b136=(_0x1df382=_0x17e938[_0x3fd605(0x348)])!=null?_0x1df382:{'actions':null},_0x36b476=_0x1dd653[_0x3fd605(0x348)];if(_0x6c12cb&&_0x6c12cb!==_0x1a1f3c)throw new Error(_0x3fd605(0x20a)+_0x6c12cb+_0x3fd605(0x507)+_0x1a1f3c+'.');return{..._0x17e938,'id':_0x1a1f3c,'type':_0x53970e,'params':{'unitId':_0x36b476[_0x3fd605(0x22c)],'textRanges':_0x36b476[_0x3fd605(0x51b)],'actions':a['JSONX']['compose'](_0x48b136['actions'],_0x36b476[_0x3fd605(0x45c)])}};},{})],_0x178d76=(_0x548acd=(_0x39b2de=_0x407242[_0x5eb53f(0x5d5)]())==null?void 0x0:_0x39b2de['userID'])!=null?_0x548acd:_0x5eb53f(0x4a3),_0x29b99e=(_0x14d852=(_0x457fe7=_0x407242['getCurrentUser']())==null?void 0x0:_0x457fe7[_0x5eb53f(0x55c)])!=null?_0x14d852:'unknown';return{'changeset':{'unitID':_0x5576fd,'type':_[_0x5eb53f(0x338)](_0x3ee08c[_0x5eb53f(0x576)](_0x5576fd)),'baseRev':_0x397f1a[_0x5eb53f(0x4ad)](_0x5576fd),'revision':0x0,'userID':_0x178d76,'memberID':_0x29b99e,'mutations':_0xbf4bfe},'pendingMutations':[]};}function yt(_0x4090d3,_0xaa914d){const _0x463aa7=_0x4aaaf0,_0x2f6ef3=new v[(_0x463aa7(0x3bd))](0x1);return setTimeout(()=>_0x2f6ef3['next'](_0xaa914d),_0x4090d3),_0x2f6ef3[_0x463aa7(0x2a7)]()['pipe'](v[_0x463aa7(0x53f)](0x1));}const Gs={'id':C[_0x4aaaf0(0x3a3)]['id'],'type':a[_0x4aaaf0(0x49d)]['MUTATION'],'params':{}};var Ys=Object[_0x4aaaf0(0x562)],Ks=Object[_0x4aaaf0(0x28b)],Z=(_0x359ce0,_0x34d820,_0x4d6a62,_0x306b63)=>{const _0x26669d=_0x4aaaf0;for(var _0xbd885b=_0x306b63>0x1?void 0x0:_0x306b63?Ks(_0x34d820,_0x4d6a62):_0x34d820,_0x295783=_0x359ce0[_0x26669d(0x31a)]-0x1,_0x34e16b;_0x295783>=0x0;_0x295783--)(_0x34e16b=_0x359ce0[_0x295783])&&(_0xbd885b=(_0x306b63?_0x34e16b(_0x34d820,_0x4d6a62,_0xbd885b):_0x34e16b(_0xbd885b))||_0xbd885b);return _0x306b63&&_0xbd885b&&Ys(_0x34d820,_0x4d6a62,_0xbd885b),_0xbd885b;},g=(_0x5eb7d7,_0x28e289)=>(_0x13cbe9,_0x1db225)=>_0x28e289(_0x13cbe9,_0x1db225,_0x5eb7d7),D=(_0x5c90b7=>(_0x5c90b7[_0x4aaaf0(0x251)]='not_collab',_0x5c90b7[_0x4aaaf0(0x2a1)]=_0x4aaaf0(0x2c4),_0x5c90b7['PENDING']=_0x4aaaf0(0x362),_0x5c90b7['AWAITING']='awaiting',_0x5c90b7['AWAITING_WITH_PENDING']=_0x4aaaf0(0x53b),_0x5c90b7[_0x4aaaf0(0x3db)]=_0x4aaaf0(0x285),_0x5c90b7[_0x4aaaf0(0x572)]=_0x4aaaf0(0x587),_0x5c90b7['OFFLINE']=_0x4aaaf0(0x45a),_0x5c90b7))(D||{});const Ut=0xea60;class Q{constructor(_0x327db5,_0x1c4312,_0x4b04e4,_0x19ec32,_0x3e8ab7,_0x102262,_0x237e60,_0x19bb62,_0x58b05a){const _0x3a875b=_0x4aaaf0;u(this,_0x3a875b(0x4f5),null),u(this,_0x3a875b(0x4be),[]),(this['unitID']=_0x327db5,this[_0x3a875b(0x4aa)]=_0x1c4312,this['_handler']=_0x3e8ab7,this['_commandService']=_0x102262,this[_0x3a875b(0x4d7)]=_0x237e60,this['_revisionService']=_0x19bb62,this[_0x3a875b(0x4e9)]=_0x58b05a,this[_0x3a875b(0x4f5)]=_0x4b04e4,this[_0x3a875b(0x4be)]=_0x19ec32);}[_0x4aaaf0(0x24b)](_0x4dd6a0){const _0x5d2d66=_0x4aaaf0,_0x358bb5=this[_0x5d2d66(0x57d)][_0x5d2d66(0x4ad)](this[_0x5d2d66(0x41c)]);return _0x4dd6a0[_0x5d2d66(0x4bb)]>_0x358bb5+0x1?(this[_0x5d2d66(0x5c4)][_0x5d2d66(0x1d3)]({'from':_0x358bb5,'to':_0x4dd6a0[_0x5d2d66(0x4bb)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x39c21b){const _0x3e50b7=_0x4aaaf0;this['_undoRedoService']['transformUndoRedo'](this[_0x3e50b7(0x41c)],_0x39c21b);}[_0x4aaaf0(0x33c)](_0x39169d){const _0x4dfcab=_0x4aaaf0;var _0x15ad6a,_0x4ec697;(_0x4ec697=(_0x15ad6a=this[_0x4dfcab(0x5c4)])[_0x4dfcab(0x4d3)])==null||_0x4ec697[_0x4dfcab(0x48a)](_0x15ad6a,_0x39169d);}[_0x4aaaf0(0x42e)](_0x4338ef){const _0x39e1f0=_0x4aaaf0;var _0x2d389f,_0x426e31;return(_0x426e31=(_0x2d389f=this[_0x39e1f0(0x5c4)])[_0x39e1f0(0x1ef)])==null?void 0x0:_0x426e31[_0x39e1f0(0x48a)](_0x2d389f,_0x4338ef);}[_0x4aaaf0(0x4cc)](_0x9e7f42){const _0x428649=_0x4aaaf0;var _0xd84511,_0x472209,_0x578040;return(_0x578040=(_0x472209=(_0xd84511=this['_handler'])[_0x428649(0x447)])==null?void 0x0:_0x472209[_0x428649(0x48a)](_0xd84511,_0x9e7f42))!=null?_0x578040:_0x9e7f42;}['_syncEditingCollabCursor'](_0x2d6490){const _0x2cd134=_0x4aaaf0;var _0x5d1c8b,_0x34739c;if(this[_0x2cd134(0x4aa)]===H[_0x2cd134(0x238)]){const {unitID:_0x3d7e48,mutations:_0x477822,memberID:_0x31d7d1}=_0x2d6490,_0xb84ae5=_0x477822[0x0]['params'][_0x2cd134(0x51b)];Array['isArray'](_0xb84ae5)&&_0xb84ae5['length']>0x0&&((_0x34739c=(_0x5d1c8b=this['_handler'])[_0x2cd134(0x216)])==null||_0x34739c['call'](_0x5d1c8b,{'unitID':_0x3d7e48,'memberID':_0x31d7d1,'textRanges':_0xb84ae5}));}}['_updateLocalCache'](){const _0x49e6dd=_0x4aaaf0;this[_0x49e6dd(0x4e9)]['updateOfflineData'](this['unitID'],this[_0x49e6dd(0x4aa)],this[_0x49e6dd(0x4f5)],this[_0x49e6dd(0x4be)]);}[_0x4aaaf0(0x24e)](){const _0x2ff5f3=_0x4aaaf0;return this[_0x2ff5f3(0x57d)]['getCurrentRevOfUnit'](this[_0x2ff5f3(0x41c)]);}[_0x4aaaf0(0x43d)](){const _0x2bae58=_0x4aaaf0;this['_revisionService'][_0x2bae58(0x2c5)](this[_0x2bae58(0x41c)]);}[_0x4aaaf0(0x36e)](_0x2a2cb5){const _0x56d265=_0x4aaaf0;var _0x2a5cf3;const _0x25d994=this[_0x56d265(0x4cc)](_0x2a2cb5),_0x33092e=a[_0x56d265(0x4d8)](_0x25d994[_0x56d265(0x2b7)],this[_0x56d265(0x310)],{'fromCollab':!0x0});if(!_0x33092e[_0x56d265(0x55d)])throw _0x33092e[_0x56d265(0x574)]instanceof Error?_0x33092e[_0x56d265(0x574)]:new Error((_0x2a5cf3=_0x33092e[_0x56d265(0x574)])!=null?_0x2a5cf3:_0x56d265(0x299));this[_0x56d265(0x42e)](_0x25d994),this[_0x56d265(0x1e6)](_0x2a2cb5),this[_0x56d265(0x33c)](_0x25d994),this[_0x56d265(0x45d)](_0x25d994),this[_0x56d265(0x43d)]();}}let re=class extends Q{constructor(_0x4f0052,_0x16383f,_0x44046a,_0x207366,_0x103a25,_0x14369d,_0x31775c,_0x375a58,_0x49a24d,_0x3206c6){const _0x477a92=_0x4aaaf0;super(_0x4f0052,_0x16383f,null,[],_0x44046a,_0x375a58,_0x31775c,_0x207366,_0x103a25),u(this,_0x477a92(0x425),_0x477a92(0x2c4)),(this[_0x477a92(0x5aa)]=_0x14369d,this['_logService']=_0x49a24d,this[_0x477a92(0x37f)]=_0x3206c6);}[_0x4aaaf0(0x38e)](_0x13f631){const _0x545150=_0x4aaaf0,_0x1e6d2e=this[_0x545150(0x5aa)]['createInstance'](W,this[_0x545150(0x41c)],this['type'],[_0x13f631],this[_0x545150(0x5c4)]);return _0x1e6d2e[_0x545150(0x416)](),_0x1e6d2e[_0x545150(0x2b5)](),_0x1e6d2e;}['onRemoteChangeset'](_0x18800a){const _0x3d0302=_0x4aaaf0;if(this[_0x3d0302(0x24b)](_0x18800a))return this[_0x3d0302(0x5aa)][_0x3d0302(0x1da)](k,this[_0x3d0302(0x41c)],this[_0x3d0302(0x4aa)],null,[],null,[_0x18800a],this[_0x3d0302(0x5c4)]);try{const _0x27e7b3=this[_0x3d0302(0x37f)][_0x3d0302(0x34d)](_0x18800a,[Gs]);if(_[_0x3d0302(0x5b7)](_0x27e7b3)){const {c1Prime:_0x4c9d1a}=_0x27e7b3;return this[_0x3d0302(0x36e)](_0x4c9d1a),this;}throw _0x27e7b3['error'];}catch(_0x2d47c7){return this[_0x3d0302(0x360)][_0x3d0302(0x574)](_0x2d47c7),this[_0x3d0302(0x58b)](!0x1);}}[_0x4aaaf0(0x58b)](_0x3d89fd){const _0x262ef9=_0x4aaaf0;return this[_0x262ef9(0x5aa)][_0x262ef9(0x1da)](K,this['unitID'],this[_0x262ef9(0x4aa)],null,[],this[_0x262ef9(0x5c4)],_0x3d89fd);}['onRemoteAck'](){const _0x55a259=_0x4aaaf0;throw new Error(_0x55a259(0x3d5));}[_0x4aaaf0(0x2cb)](){const _0x433438=_0x4aaaf0;throw new Error(_0x433438(0x383));}[_0x4aaaf0(0x488)](){return this;}[_0x4aaaf0(0x56a)](){const _0x333948=_0x4aaaf0;return this[_0x333948(0x5aa)][_0x333948(0x1da)](X,this[_0x333948(0x41c)],this[_0x333948(0x4aa)],null,[],this[_0x333948(0x5c4)]);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x399)](){const _0x29213e=_0x4aaaf0;throw new Error(_0x29213e(0x414));}[_0x4aaaf0(0x5e0)](){const _0x1ce2c9=_0x4aaaf0,_0xdf90c9=this[_0x1ce2c9(0x57d)][_0x1ce2c9(0x4ad)](this[_0x1ce2c9(0x41c)]);return this[_0x1ce2c9(0x5c4)]['onMissingChangesets']({'from':_0xdf90c9,'to':0x0}),this['_injector'][_0x1ce2c9(0x1da)](k,this[_0x1ce2c9(0x41c)],this[_0x1ce2c9(0x4aa)],null,[],null,[],this[_0x1ce2c9(0x5c4)]);}};re=Z([g(0x3,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),g(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0x5,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x6,a[_0x4aaaf0(0x490)]),g(0x7,a['ICommandService']),g(0x8,a[_0x4aaaf0(0x1d1)]),g(0x9,_[_0x4aaaf0(0x41f)])],re);let W=class extends Q{constructor(_0x17bfa1,_0x2c5146,_0x361d64,_0x17e0fc,_0x35a693,_0x46125b,_0x300a14,_0x56fe6b,_0x506fb8,_0x261be8,_0x474568,_0x1b17ad,_0x316e6c,_0x25f562){const _0x331b30=_0x4aaaf0;super(_0x17bfa1,_0x2c5146,null,_0x361d64,_0x17e0fc,_0x261be8,_0x25f562,_0x46125b,_0x300a14),u(this,_0x331b30(0x425),_0x331b30(0x362)),u(this,_0x331b30(0x1cb),null),u(this,'_sendingTimer',null),(this[_0x331b30(0x5aa)]=_0x35a693,this[_0x331b30(0x529)]=_0x56fe6b,this[_0x331b30(0x360)]=_0x506fb8,this[_0x331b30(0x428)]=_0x474568,this[_0x331b30(0x37f)]=_0x1b17ad,this[_0x331b30(0x46d)]=_0x316e6c);}[_0x4aaaf0(0x38e)](_0x4718ac){const _0xffcfd9=_0x4aaaf0;return this[_0xffcfd9(0x4be)]['push'](_0x4718ac),this[_0xffcfd9(0x2b5)](),this;}[_0x4aaaf0(0x3c2)](_0x592959){const _0x3d6d86=_0x4aaaf0;if(this[_0x3d6d86(0x24b)](_0x592959))return this[_0x3d6d86(0x50c)](),this['_injector'][_0x3d6d86(0x1da)](k,this[_0x3d6d86(0x41c)],this['type'],null,this[_0x3d6d86(0x4be)],null,[_0x592959],this[_0x3d6d86(0x5c4)]);try{const _0x4cc989=this[_0x3d6d86(0x37f)][_0x3d6d86(0x34d)](_0x592959,this[_0x3d6d86(0x4be)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x4cc989)){const {c1Prime:_0x31c6fd,m2Prime:_0x3f3211}=_0x4cc989;this['_executeRemoteChangeset'](_0x31c6fd);const _0x1c5bae=this[_0x3d6d86(0x5aa)]['createInstance'](W,this['unitID'],this['type'],_0x3f3211,this[_0x3d6d86(0x5c4)]);return this['_clearScheduledTask'](),_0x1c5bae[_0x3d6d86(0x416)](this[_0x3d6d86(0x1cb)]?Math[_0x3d6d86(0x545)](0x0,new Date()[_0x3d6d86(0x3f4)]()-this[_0x3d6d86(0x1cb)]):this[_0x3d6d86(0x237)]()),_0x1c5bae;}throw _0x4cc989[_0x3d6d86(0x574)];}catch(_0x509cb0){return this[_0x3d6d86(0x360)][_0x3d6d86(0x574)](_0x509cb0),this[_0x3d6d86(0x58b)](!0x1);}}[_0x4aaaf0(0x1f9)](){const _0x278c2e=_0x4aaaf0;throw new Error(_0x278c2e(0x41e));}[_0x4aaaf0(0x2cb)](){const _0x2fba89=_0x4aaaf0;throw new Error(_0x2fba89(0x58c));}['onRemoteRetry'](){return this;}[_0x4aaaf0(0x56a)](){const _0x15df35=_0x4aaaf0;return this[_0x15df35(0x50c)](),this[_0x15df35(0x5aa)][_0x15df35(0x1da)](X,this[_0x15df35(0x41c)],this[_0x15df35(0x4aa)],null,this[_0x15df35(0x4be)],this['_handler']);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x416)](_0x1ac82e){const _0xcd06dd=_0x4aaaf0,_0x26c626=_0x1ac82e!=null?_0x1ac82e:this[_0xcd06dd(0x237)]();this[_0xcd06dd(0x1cb)]=new Date()[_0xcd06dd(0x3f4)](),this[_0xcd06dd(0x57e)]=window[_0xcd06dd(0x3c4)](()=>{const _0x3904e0=_0xcd06dd;this['_clearScheduledTask']();let _0x523e50=null;switch(this[_0x3904e0(0x4aa)]){case H[_0x3904e0(0x4d0)]:{_0x523e50=ot(this[_0x3904e0(0x4be)],this['unitID'],this[_0x3904e0(0x46d)],this['_revisionService'],this[_0x3904e0(0x529)]);break;}case H['UNIVER_DOC']:{this['_pendingMutations'][_0x3904e0(0x262)](_0x3c3b11=>_0x3c3b11['id']===ne[_0x3904e0(0x1cf)]['id'])?_0x523e50=Fs(this['_pendingMutations'],this['unitID'],this[_0x3904e0(0x46d)],this['_revisionService'],this[_0x3904e0(0x529)]):_0x523e50=ot(this[_0x3904e0(0x4be)],this[_0x3904e0(0x41c)],this[_0x3904e0(0x46d)],this['_revisionService'],this[_0x3904e0(0x529)]);break;}default:throw new Error(_0x3904e0(0x58a)+this[_0x3904e0(0x4aa)]+_0x3904e0(0x5b6));}const {changeset:_0x1310d1,pendingMutations:_0xde62cc}=_0x523e50;this[_0x3904e0(0x5c4)][_0x3904e0(0x25b)](_0x1310d1);const _0x680eeb=_0xde62cc[_0x3904e0(0x31a)]?this[_0x3904e0(0x5aa)][_0x3904e0(0x1da)](F,this[_0x3904e0(0x41c)],this[_0x3904e0(0x4aa)],_0x1310d1,_0xde62cc,this[_0x3904e0(0x5c4)],void 0x0):this[_0x3904e0(0x5aa)][_0x3904e0(0x1da)](Y,this[_0x3904e0(0x41c)],this[_0x3904e0(0x4aa)],_0x1310d1,this[_0x3904e0(0x5c4)]);_0x680eeb['_updateLocalCache'](),this[_0x3904e0(0x5c4)]['onStateChange'](this,_0x680eeb);},_0x26c626);}[_0x4aaaf0(0x237)](){const _0x341fbd=_0x4aaaf0;var _0x2eb849;const _0x36d709=this[_0x341fbd(0x428)][_0x341fbd(0x50b)]($);return(_0x2eb849=_0x36d709==null?void 0x0:_0x36d709['sendChangesetTimeout'])!=null?_0x2eb849:Zt;}[_0x4aaaf0(0x399)](){const _0x3c5a58=_0x4aaaf0;throw new Error(_0x3c5a58(0x51d));}['_clearScheduledTask'](){const _0x2680bb=_0x4aaaf0;this[_0x2680bb(0x57e)]!=null&&(clearTimeout(this[_0x2680bb(0x57e)]),this[_0x2680bb(0x57e)]=null);}['_onConflict'](_0x3ba745){const _0x277eee=_0x4aaaf0;return this['_clearScheduledTask'](),this[_0x277eee(0x5aa)][_0x277eee(0x1da)](K,this['unitID'],this['type'],null,this[_0x277eee(0x4be)],this[_0x277eee(0x5c4)],_0x3ba745);}};W=Z([g(0x4,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x5,a[_0x4aaaf0(0x1b2)](_['RevisionService'])),g(0x6,a['Inject'](exports['LocalCacheService'])),g(0x7,a['Inject'](exports['MemberService'])),g(0x8,a[_0x4aaaf0(0x1d1)]),g(0x9,a[_0x4aaaf0(0x5df)]),g(0xa,a['IConfigService']),g(0xb,_[_0x4aaaf0(0x41f)]),g(0xc,a[_0x4aaaf0(0x33f)]),g(0xd,a[_0x4aaaf0(0x490)])],W);let Y=class extends Q{constructor(_0x2240cc,_0x5d9065,_0x5376aa,_0x5df73d,_0x4ee512,_0x4d28a3,_0xdba732,_0xb392d6,_0x575842,_0x42fbf5,_0x16e55e){const _0xc4047b=_0x4aaaf0;super(_0x2240cc,_0x5d9065,_0x5376aa,[],_0x5df73d,_0xb392d6,_0x16e55e,_0x4d28a3,_0xdba732),u(this,_0xc4047b(0x425),'awaiting'),u(this,_0xc4047b(0x596),0x0),u(this,_0xc4047b(0x466)),u(this,_0xc4047b(0x5c7)),(this[_0xc4047b(0x5aa)]=_0x4ee512,this[_0xc4047b(0x360)]=_0x575842,this[_0xc4047b(0x37f)]=_0x42fbf5);}[_0x4aaaf0(0x38e)](_0x1452cf){const _0x9c9f04=_0x4aaaf0;this[_0x9c9f04(0x50c)]();const _0x6ae0cc=this['_injector']['createInstance'](F,this[_0x9c9f04(0x41c)],this[_0x9c9f04(0x4aa)],this[_0x9c9f04(0x4f5)],[_0x1452cf],this[_0x9c9f04(0x5c4)],this['_resendTimer']);return _0x6ae0cc[_0x9c9f04(0x2b5)](),_0x6ae0cc;}[_0x4aaaf0(0x3c2)](_0x10ceec){const _0x1320e7=_0x4aaaf0;if(this[_0x1320e7(0x24b)](_0x10ceec))return this[_0x1320e7(0x50c)](),this[_0x1320e7(0x5aa)][_0x1320e7(0x1da)](k,this[_0x1320e7(0x41c)],this[_0x1320e7(0x4aa)],this[_0x1320e7(0x4f5)],[],null,[_0x10ceec],this[_0x1320e7(0x5c4)]);try{const _0x51f2a1=this[_0x1320e7(0x37f)][_0x1320e7(0x33a)]([_0x10ceec],[this[_0x1320e7(0x4f5)]],!0x1);if(_[_0x1320e7(0x3dc)](_0x51f2a1)){const {c1Prime:_0x358ef5,c2Prime:_0x39e871}=_0x51f2a1;this[_0x1320e7(0x36e)](_0x358ef5[0x0]),_0x39e871[0x0][_0x1320e7(0x224)]=this[_0x1320e7(0x24e)](),this[_0x1320e7(0x50c)]();const _0x45293a=this[_0x1320e7(0x5aa)][_0x1320e7(0x1da)](Y,this[_0x1320e7(0x41c)],this['type'],_0x39e871[0x0],this[_0x1320e7(0x5c4)]);return _0x45293a[_0x1320e7(0x2b5)](),_0x45293a;}return this['_onConflict'](!0x1);}catch(_0x5a180a){return this[_0x1320e7(0x360)][_0x1320e7(0x574)](_0x5a180a),this[_0x1320e7(0x58b)](!0x1);}}[_0x4aaaf0(0x1f9)](_0x220b95){const _0x294316=_0x4aaaf0;this[_0x294316(0x50c)]();const _0x51490b=this[_0x294316(0x57d)][_0x294316(0x4ad)](this[_0x294316(0x41c)]);if(_0x220b95[_0x294316(0x4bb)]<_0x51490b-0x1)return this;if(this[_0x294316(0x24b)](_0x220b95))return this[_0x294316(0x5aa)][_0x294316(0x1da)](k,this['unitID'],this[_0x294316(0x4aa)],null,[],this[_0x294316(0x4f5)],[],this[_0x294316(0x5c4)]);this[_0x294316(0x43d)]();const _0x4189f5=this[_0x294316(0x5aa)][_0x294316(0x1da)](re,this[_0x294316(0x41c)],this[_0x294316(0x4aa)],this[_0x294316(0x5c4)]);return _0x4189f5[_0x294316(0x2b5)](),_0x4189f5;}[_0x4aaaf0(0x2cb)](_0x279fb7){const _0x5ef1ab=_0x4aaaf0;return this['_onConflict'](!!(_0x279fb7!=null&&_0x279fb7[_0x5ef1ab(0x267)]));}[_0x4aaaf0(0x488)](_0x3e483b){const _0x6ba021=_0x4aaaf0;return this[_0x6ba021(0x596)]>Ut?this[_0x6ba021(0x56a)]():(this['_resendTimer']=yt(this[_0x6ba021(0x596)],{'timeout':this[_0x6ba021(0x596)],'reqId':_0x3e483b[_0x6ba021(0x2d2)]}),this['_sender']=this[_0x6ba021(0x466)]['subscribe'](({reqId:_0x177921,timeout:_0x3a970e})=>{const _0x5627fd=_0x6ba021;this[_0x5627fd(0x1bc)](_0x177921,_0x3a970e);}),this);}[_0x4aaaf0(0x56a)](){const _0x18b209=_0x4aaaf0;return this['_clearScheduledTask'](),this['_injector']['createInstance'](X,this[_0x18b209(0x41c)],this['type'],this[_0x18b209(0x4f5)],[],this[_0x18b209(0x5c4)]);}['toggleOnline'](){return this;}[_0x4aaaf0(0x399)](){const _0x3d721f=_0x4aaaf0;this['_handler']['onSendChangeset'](this[_0x3d721f(0x4f5)]);}[_0x4aaaf0(0x58b)](_0x5a0551){const _0x38c57e=_0x4aaaf0;return this[_0x38c57e(0x50c)](),this[_0x38c57e(0x5aa)][_0x38c57e(0x1da)](K,this['unitID'],this[_0x38c57e(0x4aa)],this[_0x38c57e(0x4f5)],[],this[_0x38c57e(0x5c4)],_0x5a0551);}[_0x4aaaf0(0x1bc)](_0x131de3,_0x659026){const _0x2b236b=_0x4aaaf0;var _0x46ab1e;_0x131de3===((_0x46ab1e=this[_0x2b236b(0x4f5)])==null?void 0x0:_0x46ab1e[_0x2b236b(0x2d2)])&&(this[_0x2b236b(0x399)](),this['_resendTimeout']=_0x659026===0x0?0x3e8:_0x659026*0x2);}[_0x4aaaf0(0x50c)](){const _0x1a828c=_0x4aaaf0;var _0x29cc20;(_0x29cc20=this[_0x1a828c(0x5c7)])==null||_0x29cc20['unsubscribe'](),this[_0x1a828c(0x596)]=0x0;}};Y=Z([g(0x4,a['Inject'](a[_0x4aaaf0(0x2ee)])),g(0x5,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),g(0x6,a[_0x4aaaf0(0x1b2)](exports['LocalCacheService'])),g(0x7,a['ICommandService']),g(0x8,a['ILogService']),g(0x9,_[_0x4aaaf0(0x41f)]),g(0xa,a['IUndoRedoService'])],Y);let F=class extends Q{constructor(_0xcff493,_0x4d457a,_0x766a5b,_0x56e382,_0x3fcff5,_0x10f15d,_0x2bddb1,_0x20ab29,_0x2725e4,_0x2886b5,_0x2ee654,_0x3a6f9c,_0x3d5e4b){const _0x84db2d=_0x4aaaf0;super(_0xcff493,_0x4d457a,_0x766a5b,_0x56e382,_0x3fcff5,_0x2886b5,_0x3d5e4b,_0x20ab29,_0x2725e4),u(this,_0x84db2d(0x425),_0x84db2d(0x53b)),u(this,_0x84db2d(0x596),0x0),u(this,_0x84db2d(0x466)),u(this,'_sender'),(this[_0x84db2d(0x5aa)]=_0x2bddb1,this[_0x84db2d(0x360)]=_0x2ee654,this[_0x84db2d(0x37f)]=_0x3a6f9c,_0x10f15d&&(this[_0x84db2d(0x466)]=_0x10f15d,this['_sender']=this[_0x84db2d(0x466)]['subscribe'](({reqId:_0x2adff5,timeout:_0x26fb94})=>{const _0x1cad5f=_0x84db2d;this[_0x1cad5f(0x1bc)](_0x2adff5,_0x26fb94);})));}['appendMutation'](_0x5d9bda){const _0x186fa9=_0x4aaaf0;return this[_0x186fa9(0x4be)][_0x186fa9(0x4ce)](_0x5d9bda),this;}[_0x4aaaf0(0x3c2)](_0x3b1e6c){const _0x521f5c=_0x4aaaf0;if(this[_0x521f5c(0x24b)](_0x3b1e6c))return this['_clearScheduledTask'](),this['_injector']['createInstance'](k,this[_0x521f5c(0x41c)],this['type'],this[_0x521f5c(0x4f5)],this['_pendingMutations'],null,[_0x3b1e6c],this[_0x521f5c(0x5c4)]);try{const _0x48d4da=this[_0x521f5c(0x37f)][_0x521f5c(0x33a)]([_0x3b1e6c],[this['_awaitingChangeset']],!0x1);if(_[_0x521f5c(0x3dc)](_0x48d4da)){const {c1Prime:_0x514d70,c2Prime:_0x87d95d}=_0x48d4da,_0x43298f=this['_transformService']['transformMutationsWithChangeset'](_0x514d70[0x0],this[_0x521f5c(0x4be)]);if(_[_0x521f5c(0x5b7)](_0x43298f)){const {c1Prime:_0x299687,m2Prime:_0x12320d}=_0x43298f;return this[_0x521f5c(0x36e)](_0x299687),_0x87d95d[0x0][_0x521f5c(0x224)]=this[_0x521f5c(0x24e)](),this[_0x521f5c(0x50c)](),this[_0x521f5c(0x5aa)][_0x521f5c(0x1da)](F,this[_0x521f5c(0x41c)],this[_0x521f5c(0x4aa)],_0x87d95d[0x0],_0x12320d,this[_0x521f5c(0x5c4)],void 0x0);}throw _0x43298f[_0x521f5c(0x574)];}throw _0x48d4da[_0x521f5c(0x574)];}catch(_0x26cfc3){return this[_0x521f5c(0x360)][_0x521f5c(0x574)](_0x26cfc3),this['_onConflict'](!0x1);}}[_0x4aaaf0(0x1f9)](_0x540ac0){const _0x84a4fb=_0x4aaaf0;if(this['_clearScheduledTask'](),this[_0x84a4fb(0x24b)](_0x540ac0))return this[_0x84a4fb(0x5aa)][_0x84a4fb(0x1da)](k,this[_0x84a4fb(0x41c)],this['type'],null,this[_0x84a4fb(0x4be)],this[_0x84a4fb(0x4f5)],[],this[_0x84a4fb(0x5c4)]);this[_0x84a4fb(0x43d)]();const _0x3c173f=this[_0x84a4fb(0x5aa)][_0x84a4fb(0x1da)](W,this[_0x84a4fb(0x41c)],this['type'],this[_0x84a4fb(0x4be)],this[_0x84a4fb(0x5c4)]);return _0x3c173f['_schedule'](),_0x3c173f[_0x84a4fb(0x2b5)](),_0x3c173f;}[_0x4aaaf0(0x2cb)](_0x4f1102){const _0x4877a0=_0x4aaaf0;return this[_0x4877a0(0x58b)](!!(_0x4f1102!=null&&_0x4f1102['isPermissionRej']));}[_0x4aaaf0(0x488)](_0x5b6542){const _0x208204=_0x4aaaf0;return this[_0x208204(0x596)]>Ut?this[_0x208204(0x56a)]():(this['_resendTimer']=yt(this[_0x208204(0x596)],{'timeout':this[_0x208204(0x596)],'reqId':_0x5b6542[_0x208204(0x2d2)]}),this[_0x208204(0x5c7)]=this[_0x208204(0x466)]['subscribe'](({reqId:_0x24216,timeout:_0x494f71})=>{const _0x4705af=_0x208204;this[_0x4705af(0x1bc)](_0x24216,_0x494f71);}),this);}['toggleOffline'](){const _0x2db7dc=_0x4aaaf0;return this['_clearScheduledTask'](),this[_0x2db7dc(0x5aa)][_0x2db7dc(0x1da)](X,this[_0x2db7dc(0x41c)],this[_0x2db7dc(0x4aa)],this['_awaitingChangeset'],this[_0x2db7dc(0x4be)],this[_0x2db7dc(0x5c4)]);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x399)](){const _0x2562e1=_0x4aaaf0;this[_0x2562e1(0x5c4)][_0x2562e1(0x25b)](this[_0x2562e1(0x4f5)]);}[_0x4aaaf0(0x58b)](_0x2471f8){const _0xba74c7=_0x4aaaf0;return this[_0xba74c7(0x50c)](),this[_0xba74c7(0x5aa)]['createInstance'](K,this[_0xba74c7(0x41c)],this['type'],null,this[_0xba74c7(0x4be)],this[_0xba74c7(0x5c4)],_0x2471f8);}[_0x4aaaf0(0x1bc)](_0x270056,_0x473f95){const _0x4a5445=_0x4aaaf0;var _0x52382f;_0x270056===((_0x52382f=this[_0x4a5445(0x4f5)])==null?void 0x0:_0x52382f[_0x4a5445(0x2d2)])&&(this[_0x4a5445(0x399)](),this['_resendTimeout']=_0x473f95===0x0?0x3e8:_0x473f95*0x2);}['_clearScheduledTask'](){const _0x5d074=_0x4aaaf0;var _0x3b637e;(_0x3b637e=this[_0x5d074(0x5c7)])==null||_0x3b637e[_0x5d074(0x4ed)](),this[_0x5d074(0x596)]=0x0;}};F=Z([g(0x6,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x7,a['Inject'](_[_0x4aaaf0(0x509)])),g(0x8,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0x9,a[_0x4aaaf0(0x5df)]),g(0xa,a[_0x4aaaf0(0x1d1)]),g(0xb,_[_0x4aaaf0(0x41f)]),g(0xc,a[_0x4aaaf0(0x490)])],F);let K=class extends Q{constructor(_0x334c95,_0x15bac7,_0x1bb4c5,_0x905ff6,_0x3db291,_0x3197f6=!0x1,_0xcae88,_0x4e746f,_0xa904a0,_0x516880,_0x4403ed,_0x12793a,_0x112603){const _0x1d1a0a=_0x4aaaf0;super(_0x334c95,_0x15bac7,_0x1bb4c5,_0x905ff6,_0x3db291,_0x4e746f,_0xa904a0,_0x4403ed,_0x516880),u(this,_0x1d1a0a(0x425),_0x1d1a0a(0x587)),(this[_0x1d1a0a(0x3c7)]=_0x3197f6,this['_permissionService']=_0xcae88,this[_0x1d1a0a(0x2af)]=_0x12793a,this[_0x1d1a0a(0x4c3)]=_0x112603,this[_0x1d1a0a(0x1bb)](),this[_0x1d1a0a(0x4fa)](),this[_0x1d1a0a(0x341)]());}[_0x4aaaf0(0x38e)](){return this;}[_0x4aaaf0(0x3c2)](){return this;}[_0x4aaaf0(0x1f9)](){return this;}['onRemoteRej'](){return this;}[_0x4aaaf0(0x488)](){return this;}[_0x4aaaf0(0x56a)](){return this;}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x399)](){const _0x449d75=_0x4aaaf0;throw new Error(_0x449d75(0x29d));}[_0x4aaaf0(0x4fa)](){const _0x13ce51=_0x4aaaf0;this['_localCacheService']['updateOfflineData'](this[_0x13ce51(0x41c)],this['type'],null,[]);}[_0x4aaaf0(0x1bb)](){const _0x27bd49=_0x4aaaf0;this[_0x27bd49(0x3c7)]?this['_notificationService'][_0x27bd49(0x4c5)]({'title':this[_0x27bd49(0x2af)]['t'](_0x27bd49(0x2ba)),'content':this[_0x27bd49(0x2af)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x27bd49(0x4c3)][_0x27bd49(0x4c5)]({'title':this[_0x27bd49(0x2af)]['t'](_0x27bd49(0x230)),'content':this[_0x27bd49(0x2af)]['t']('conflict.content'),'type':_0x27bd49(0x574),'duration':0x0});}['_disableEditing'](){const _0x48a607=_0x4aaaf0;this['_permissionService'][_0x48a607(0x585)](new C[(_0x48a607(0x1e9))](this['unitID'])['id'],!0x1);}};K=Z([g(0x6,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x26c)])),g(0x7,a[_0x4aaaf0(0x5df)]),g(0x8,a[_0x4aaaf0(0x490)]),g(0x9,a['Inject'](exports[_0x4aaaf0(0x49c)])),g(0xa,a[_0x4aaaf0(0x1b2)](_['RevisionService'])),g(0xb,a['Inject'](a['LocaleService'])),g(0xc,A['INotificationService'])],K);let X=class extends Q{constructor(_0x29416f,_0x4fa66a,_0x3ed536,_0x4918f9,_0xec43d2,_0x466fb8,_0x3a30ba,_0x5e4409,_0x1d80a6,_0x38438d){const _0x3a3dd6=_0x4aaaf0;super(_0x29416f,_0x4fa66a,_0x3ed536,_0x4918f9,_0xec43d2,_0x1d80a6,_0x38438d,_0x3a30ba,_0x5e4409),u(this,_0x3a3dd6(0x425),_0x3a3dd6(0x45a)),this[_0x3a3dd6(0x5aa)]=_0x466fb8;}[_0x4aaaf0(0x38e)](_0x4fabf7){const _0x1f9f56=_0x4aaaf0;return this[_0x1f9f56(0x4be)]['push'](_0x4fabf7),this[_0x1f9f56(0x2b5)](),this;}[_0x4aaaf0(0x3c2)](_0x4407eb){const _0x5a676f=_0x4aaaf0;throw new Error(_0x5a676f(0x2ed));}[_0x4aaaf0(0x1f9)](){const _0x355695=_0x4aaaf0;throw new Error(_0x355695(0x2eb));}[_0x4aaaf0(0x2cb)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x4aaaf0(0x488)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x16ccd7=_0x4aaaf0,{_injector:_0x3f9438,_pendingMutations:_0x341a37,_awaitingChangeset:_0x503c7c,unitID:_0xd37e5a,_handler:_0x3b0630,type:_0x437884}=this,_0x82ce7f=Pt(_0x3f9438,_0xd37e5a,_0x437884,_0x503c7c,_0x341a37,_0x3b0630);return _0x82ce7f instanceof W?_0x82ce7f[_0x16ccd7(0x416)]():(_0x82ce7f instanceof F||_0x82ce7f instanceof Y)&&_0x82ce7f[_0x16ccd7(0x399)](),_0x82ce7f;}['resend'](){const _0x4681dc=_0x4aaaf0;throw new Error(_0x4681dc(0x456));}};X=Z([g(0x5,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x6,a['Inject'](_[_0x4aaaf0(0x509)])),g(0x7,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0x8,a[_0x4aaaf0(0x5df)]),g(0x9,a[_0x4aaaf0(0x490)])],X);let k=class extends Q{constructor(_0x3d0ffb,_0x1d4d75,_0x458503,_0x5a1239,_0x5bb8a3,_0x59a75e,_0x40ad64,_0x25a614,_0x347bae,_0x1ec464,_0x48236f,_0x5036ea,_0x541193,_0x3e93d3){const _0x2edaa7=_0x4aaaf0;super(_0x3d0ffb,_0x1d4d75,_0x458503,_0x5a1239,_0x40ad64,_0x5036ea,_0x541193,_0x347bae,_0x1ec464),u(this,_0x2edaa7(0x425),_0x2edaa7(0x285)),(this['_acknowledgedAwaitingChangeset']=_0x5bb8a3,this[_0x2edaa7(0x452)]=_0x59a75e,this[_0x2edaa7(0x5aa)]=_0x25a614,this[_0x2edaa7(0x360)]=_0x48236f,this[_0x2edaa7(0x37f)]=_0x3e93d3);}['onMissedChangesetFetched'](_0x1096a0){const _0x5c5bf9=_0x4aaaf0;try{const _0x4a12df=[..._0x1096a0,...this['_queuedRemoteChangesets']],_0x4ade08=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']]['filter'](_0x351f49=>!!_0x351f49);let _0x3672a0,_0x352bcb;if(_0x4ade08[_0x5c5bf9(0x31a)]){const _0x2e6c67=this[_0x5c5bf9(0x37f)][_0x5c5bf9(0x33a)](_0x4a12df,_0x4ade08,!0x1);if(!_['isTransformChangesetsSuccess'](_0x2e6c67))throw _0x2e6c67['error'];_0x3672a0=_0x2e6c67[_0x5c5bf9(0x3f1)],_0x352bcb=_0x2e6c67[_0x5c5bf9(0x2a9)];}else _0x3672a0=_0x4a12df,_0x352bcb=[];let _0x47f002=this[_0x5c5bf9(0x4be)];_0x3672a0[_0x5c5bf9(0x1d6)](_0x1d3a87=>{const _0x56405e=_0x5c5bf9;let _0x142871;if(_0x47f002[_0x56405e(0x31a)]){const _0x179801=this[_0x56405e(0x37f)][_0x56405e(0x34d)](_0x1d3a87,_0x47f002);if(!_[_0x56405e(0x5b7)](_0x179801))throw _0x179801[_0x56405e(0x574)];_0x142871=_0x179801[_0x56405e(0x3f1)],_0x47f002=_0x179801[_0x56405e(0x3a9)];}else _0x142871=_0x1d3a87;this[_0x56405e(0x36e)](_0x142871);}),this['_acknowledgedAwaitingChangeset']&&this[_0x5c5bf9(0x43d)](),this['_awaitingChangeset']&&_0x352bcb[_0x5c5bf9(0x31a)]&&(_0x352bcb[0x0]['baseRev']=this[_0x5c5bf9(0x24e)]());let _0x5d2aa1;if(this[_0x5c5bf9(0x4f5)]&&_0x47f002['length']!==0x0)_0x5d2aa1=this[_0x5c5bf9(0x5aa)][_0x5c5bf9(0x1da)](F,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],_0x352bcb[0x0],_0x47f002,this[_0x5c5bf9(0x5c4)],void 0x0);else{if(this[_0x5c5bf9(0x4f5)]&&_0x47f002[_0x5c5bf9(0x31a)]===0x0)_0x352bcb[0x0][_0x5c5bf9(0x224)]=this[_0x5c5bf9(0x24e)](),_0x5d2aa1=this['_injector'][_0x5c5bf9(0x1da)](Y,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],_0x352bcb[0x0],this[_0x5c5bf9(0x5c4)]);else{if(_0x47f002[_0x5c5bf9(0x31a)]!==0x0){const _0x34f22d=this[_0x5c5bf9(0x5aa)][_0x5c5bf9(0x1da)](W,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],_0x47f002,this[_0x5c5bf9(0x5c4)]);_0x34f22d['_schedule'](),_0x5d2aa1=_0x34f22d;}else _0x5d2aa1=this[_0x5c5bf9(0x5aa)][_0x5c5bf9(0x1da)](re,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],this[_0x5c5bf9(0x5c4)]);}}return _0x5d2aa1[_0x5c5bf9(0x2b5)](),_0x5d2aa1;}catch(_0x476764){return this[_0x5c5bf9(0x360)][_0x5c5bf9(0x574)](_0x5c5bf9(0x4b7),'failed\x20to\x20apply\x20missed\x20changesets!',_0x476764),this[_0x5c5bf9(0x5aa)]['createInstance'](K,this[_0x5c5bf9(0x41c)],this['type'],this['_awaitingChangeset'],this[_0x5c5bf9(0x4be)],this['_handler'],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4aaaf0(0x38e)](_0x2426b0){const _0x279f17=_0x4aaaf0;return this[_0x279f17(0x4be)]['push'](_0x2426b0),this;}[_0x4aaaf0(0x3c2)](_0x42bf41){const _0x471e50=_0x4aaaf0;return this[_0x471e50(0x452)]['push'](_0x42bf41),this;}[_0x4aaaf0(0x1f9)](_0xd4adbd){const _0x1ae1fc=_0x4aaaf0;if(this[_0x1ae1fc(0x4f5)])return this[_0x1ae1fc(0x387)]=this['_awaitingChangeset'],this[_0x1ae1fc(0x4f5)]=null,this;throw new Error(_0x1ae1fc(0x311));}[_0x4aaaf0(0x2cb)](_0x563943){const _0xd284b6=_0x4aaaf0;return this['_onConflict'](!!(_0x563943!=null&&_0x563943[_0xd284b6(0x267)]));}[_0x4aaaf0(0x488)](){return this;}[_0x4aaaf0(0x56a)](){const _0x4461ee=_0x4aaaf0;return this[_0x4461ee(0x5aa)][_0x4461ee(0x1da)](X,this['unitID'],this[_0x4461ee(0x4aa)],this['_awaitingChangeset'],this[_0x4461ee(0x4be)],this[_0x4461ee(0x5c4)]);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x58b)](_0x239112){const _0x19d530=_0x4aaaf0;return this['_injector']['createInstance'](K,this[_0x19d530(0x41c)],this['type'],this[_0x19d530(0x4f5)],this['_pendingMutations'],this[_0x19d530(0x5c4)],_0x239112);}};k=Z([g(0x7,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x8,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),g(0x9,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0xa,a[_0x4aaaf0(0x1d1)]),g(0xb,a[_0x4aaaf0(0x5df)]),g(0xc,a[_0x4aaaf0(0x490)]),g(0xd,_[_0x4aaaf0(0x41f)])],k);function Pt(_0x2f0e91,_0x1af7fa,_0x1443e7,_0x2d8f98,_0x45a6b0,_0x408c66){const _0x3cae69=_0x4aaaf0;return _0x2d8f98&&_0x45a6b0['length']?_0x2f0e91['createInstance'](F,_0x1af7fa,_0x1443e7,_0x2d8f98,_0x45a6b0,_0x408c66,void 0x0):_0x2d8f98?_0x2f0e91[_0x3cae69(0x1da)](Y,_0x1af7fa,_0x1443e7,_0x2d8f98,_0x408c66):_0x45a6b0[_0x3cae69(0x31a)]?_0x2f0e91[_0x3cae69(0x1da)](W,_0x1af7fa,_0x1443e7,_0x45a6b0,_0x408c66):_0x2f0e91['createInstance'](re,_0x1af7fa,_0x1443e7,_0x408c66);}var Xs=Object['defineProperty'],qs=Object[_0x4aaaf0(0x28b)],qe=(_0x56eae6,_0x5e49c0,_0x1429e6,_0x465550)=>{const _0x16614b=_0x4aaaf0;for(var _0x5e5151=_0x465550>0x1?void 0x0:_0x465550?qs(_0x5e49c0,_0x1429e6):_0x5e49c0,_0x236ca3=_0x56eae6[_0x16614b(0x31a)]-0x1,_0x11ec56;_0x236ca3>=0x0;_0x236ca3--)(_0x11ec56=_0x56eae6[_0x236ca3])&&(_0x5e5151=(_0x465550?_0x11ec56(_0x5e49c0,_0x1429e6,_0x5e5151):_0x11ec56(_0x5e5151))||_0x5e5151);return _0x465550&&_0x5e5151&&Xs(_0x5e49c0,_0x1429e6,_0x5e5151),_0x5e5151;},p=(_0x44727a,_0x1a2638)=>(_0x193615,_0x1fb18a)=>_0x1a2638(_0x193615,_0x1fb18a,_0x44727a);exports[_0x4aaaf0(0x535)]=class extends a[_0x4aaaf0(0x275)]{constructor(_0x2619be,_0x55a433,_0x31a01b,_0x55b067,_0x4bc337,_0x33cf5a,_0x48d711,_0x70542c,_0x5a6f1f,_0x58d863,_0x2b738a,_0x3a51ba,_0x2adac2){const _0x2b8a4e=_0x4aaaf0;super(),u(this,_0x2b8a4e(0x38b),new v[(_0x2b8a4e(0x442))](null)),u(this,_0x2b8a4e(0x25f),this['_state$'][_0x2b8a4e(0x2a7)]()),u(this,_0x2b8a4e(0x5b9)),u(this,_0x2b8a4e(0x2e1),!0x1),u(this,'_changesetSessionId',''),u(this,_0x2b8a4e(0x3d7),0x0),u(this,_0x2b8a4e(0x3bc),this['state$'][_0x2b8a4e(0x2b0)](v[_0x2b8a4e(0x263)](_0x129b23=>_0x129b23?_0x129b23[_0x2b8a4e(0x425)]:D['OFFLINE']),v[_0x2b8a4e(0x566)](0x1))),u(this,_0x2b8a4e(0x4b8),!0x1),u(this,_0x2b8a4e(0x21a),[]),(this[_0x2b8a4e(0x41c)]=_0x2619be,this[_0x2b8a4e(0x386)]=_0x55a433,this[_0x2b8a4e(0x356)]=_0x31a01b,this['_injector']=_0x55b067,this[_0x2b8a4e(0x4e9)]=_0x4bc337,this['_compressMutationService']=_0x33cf5a,this[_0x2b8a4e(0x2af)]=_0x48d711,this['_revisionService']=_0x70542c,this[_0x2b8a4e(0x360)]=_0x5a6f1f,this[_0x2b8a4e(0x310)]=_0x58d863,this[_0x2b8a4e(0x206)]=_0x2b738a,this[_0x2b8a4e(0x290)]=_0x3a51ba,this[_0x2b8a4e(0x1f2)]=_0x2adac2);}get[_0x4aaaf0(0x2f9)](){return this['_state'];}async[_0x4aaaf0(0x1d7)](){const _0x3940a1=_0x4aaaf0;if(this[_0x3940a1(0x2f9)])throw new Error(_0x3940a1(0x481));await this['_init']();}[_0x4aaaf0(0x221)](){const _0x5292fa=_0x4aaaf0;return this[_0x5292fa(0x2e1)]=!0x0,a[_0x5292fa(0x2c6)](()=>{const _0x45836a=_0x5292fa;this[_0x45836a(0x2e1)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x468f61){const _0x4f22e2=_0x4aaaf0;this[_0x4f22e2(0x5b9)]=_0x468f61,this[_0x4f22e2(0x38b)][_0x4f22e2(0x3b3)](_0x468f61);}async[_0x4aaaf0(0x33d)](){const _0x1accde=_0x4aaaf0;var _0x11ee79;this[_0x1accde(0x57f)](await this[_0x1accde(0x4ba)]()),this[_0x1accde(0x1f2)]&&((_0x11ee79=this[_0x1accde(0x1f2)])==null||_0x11ee79[_0x1accde(0x45f)](this[_0x1accde(0x41c)]),this['disposeWithMe'](this[_0x1accde(0x1f2)][_0x1accde(0x434)](this['unitID'])['subscribe'](_0x358712=>{const _0x241577=_0x1accde;this[_0x241577(0x360)][_0x241577(0x43f)]('[CollaborationEntity]',_0x241577(0x1b1),_0x358712),_0x358712===Ot[_0x241577(0x487)]?(this['_messageService'][_0x241577(0x4c5)]({'content':this[_0x241577(0x2af)]['t'](_0x241577(0x4f4)),'type':J[_0x241577(0x497)][_0x241577(0x34b)]}),this[_0x241577(0x290)][_0x241577(0x585)](new C[(_0x241577(0x1e9))](this[_0x241577(0x41c)])['id'],!0x1),this['_permissionService'][_0x241577(0x3bf)](!0x1)):(this[_0x241577(0x290)][_0x241577(0x585)](new C[(_0x241577(0x1e9))](this[_0x241577(0x41c)])['id'],!0x0),this[_0x241577(0x290)][_0x241577(0x3bf)](!0x0));})));let _0x42eaeb=!0x1;return this[_0x1accde(0x367)](this['session']['sessionStatus$'][_0x1accde(0x236)](_0x20c8dd=>{const _0x46f5ac=_0x1accde;_0x20c8dd===x[_0x46f5ac(0x322)]?this['_toggleOnline'](_0x42eaeb):_0x20c8dd===x[_0x46f5ac(0x270)]&&(_0x42eaeb=!0x0,this[_0x46f5ac(0x3a8)]());})),this[_0x1accde(0x367)](this[_0x1accde(0x386)]['event$'][_0x1accde(0x236)](_0x283be0=>{const _0x5dff72=_0x1accde;try{switch(_0x283be0[_0x5dff72(0x405)]){case _[_0x5dff72(0x2bb)][_0x5dff72(0x258)]:{this[_0x5dff72(0x21e)](_['parseProtocolChangeset'](_0x283be0[_0x5dff72(0x2cf)]));break;}case _[_0x5dff72(0x2bb)][_0x5dff72(0x540)]:{this['_onRemoteACK'](_0x283be0[_0x5dff72(0x2cf)]);break;}case _[_0x5dff72(0x2bb)]['CHANGESET_REJ']:{this[_0x5dff72(0x37c)]();break;}case _[_0x5dff72(0x2bb)][_0x5dff72(0x5d7)]:{this[_0x5dff72(0x559)](_0x283be0['data']);break;}case _['CollaborationEvent'][_0x5dff72(0x44e)]:{this[_0x5dff72(0x2ec)](_0x283be0[_0x5dff72(0x2cf)][_0x5dff72(0x2b3)][_0x5dff72(0x263)](_0x4e0dd4=>_['parseProtocolChangeset'](_0x4e0dd4)));break;}case _[_0x5dff72(0x2bb)]['PERMISSION_REJ']:this[_0x5dff72(0x37c)]({'isPermissionRej':!0x0});}}catch(_0x41d10c){throw console[_0x5dff72(0x574)](_0x5dff72(0x2fd),_0x41d10c),_0x41d10c;}})),this['_state'];}[_0x4aaaf0(0x20f)](){this['_transitionLocked']=!0x1;}[_0x4aaaf0(0x3f9)](){const _0x4b5f5e=_0x4aaaf0;if(this[_0x4b5f5e(0x4b8)])throw new Error(_0x4b5f5e(0x5d9));this[_0x4b5f5e(0x4b8)]=!0x0;}[_0x4aaaf0(0x351)](_0x157721){const _0x4ccea6=_0x4aaaf0;this[_0x4ccea6(0x3f9)](),this[_0x4ccea6(0x57f)](this[_0x4ccea6(0x5b9)][_0x4ccea6(0x38e)](_0x157721)),this[_0x4ccea6(0x20f)]();}['_onRemoteChangeset'](_0x1cff23){const _0x3ed36e=_0x4aaaf0;if(!(_0x1cff23[_0x3ed36e(0x4bb)]<=this[_0x3ed36e(0x57d)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0x3ed36e(0x2e1)]){this[_0x3ed36e(0x21a)][_0x3ed36e(0x4ce)](_0x1cff23);return;}this[_0x3ed36e(0x3cf)](_0x1cff23);}}[_0x4aaaf0(0x3bb)](){const _0x3c8006=_0x4aaaf0;this['_remoteChangesetQueue'][_0x3c8006(0x1d6)](_0x3bd503=>this[_0x3c8006(0x3cf)](_0x3bd503)),this[_0x3c8006(0x21a)]=[];}[_0x4aaaf0(0x3cf)](_0x1a715f){const _0x2cc8ba=_0x4aaaf0,_0x728994=this['_compressMutationService'][_0x2cc8ba(0x5c5)][_0x2cc8ba(0x3cb)](this['_compressMutationService']['interceptor'][_0x2cc8ba(0x492)]()['COMPRESS_MUTATION_APPLY'])(_0x1a715f[_0x2cc8ba(0x2b7)],null)||_0x1a715f[_0x2cc8ba(0x2b7)],_0x1e9620={..._0x1a715f,'mutations':_0x728994};this[_0x2cc8ba(0x3f9)](),this[_0x2cc8ba(0x57f)](this['_state'][_0x2cc8ba(0x3c2)](_0x1e9620)),this[_0x2cc8ba(0x20f)]();}['_onRemoteACK'](_0x3c7b53){const _0x4ea5ee=_0x4aaaf0;this['_lockTransition'](),this[_0x4ea5ee(0x57f)](this[_0x4ea5ee(0x5b9)][_0x4ea5ee(0x1f9)](_0x3c7b53)),this['_unlockTransition']();}[_0x4aaaf0(0x37c)](_0x43458e){const _0x165fc7=_0x4aaaf0;this[_0x165fc7(0x3f9)](),this[_0x165fc7(0x57f)](this[_0x165fc7(0x5b9)]['onRemoteRej'](_0x43458e)),this['_unlockTransition']();}[_0x4aaaf0(0x559)](_0x3b92c3){const _0x1e4f1f=_0x4aaaf0;this[_0x1e4f1f(0x3f9)](),this['_updateState'](this['_state']['onRemoteRetry'](_0x3b92c3)),this[_0x1e4f1f(0x20f)]();}[_0x4aaaf0(0x2ec)](_0x26bf80){const _0x30a952=_0x4aaaf0;if(!(this['_state']instanceof k))throw new TypeError(_0x30a952(0x4c4));const _0x53a5f3=_0x26bf80['map'](_0x2805de=>{const _0x525bb2=_0x30a952,_0x3c59ee=this[_0x525bb2(0x528)][_0x525bb2(0x5c5)]['fetchThroughInterceptors'](this[_0x525bb2(0x528)][_0x525bb2(0x5c5)][_0x525bb2(0x492)]()[_0x525bb2(0x296)])(_0x2805de['mutations'],null)||_0x2805de['mutations'];return{..._0x2805de,'mutations':_0x3c59ee};});this[_0x30a952(0x3f9)](),this[_0x30a952(0x57f)](this[_0x30a952(0x5b9)][_0x30a952(0x3f5)](_0x53a5f3)),this[_0x30a952(0x20f)]();}['_toggleOffline'](){const _0x49037b=_0x4aaaf0;this[_0x49037b(0x3f9)](),this[_0x49037b(0x57f)](this['_state'][_0x49037b(0x56a)]()),this[_0x49037b(0x20f)]();}[_0x4aaaf0(0x454)](_0x4357af=!0x1){const _0x1fbe2b=_0x4aaaf0;this[_0x1fbe2b(0x3f9)](),this['_updateState'](this[_0x1fbe2b(0x5b9)][_0x1fbe2b(0x3b7)]()),this['_unlockTransition']();const _0x414f75=this[_0x1fbe2b(0x5b9)];_0x4357af&&_0x414f75 instanceof re&&(this[_0x1fbe2b(0x3f9)](),this[_0x1fbe2b(0x57f)](_0x414f75[_0x1fbe2b(0x5e0)]()),this[_0x1fbe2b(0x20f)]());}async[_0x4aaaf0(0x4ba)](){return new Promise(_0x57a361=>{const _0x28ad5e=_0x47ba;this[_0x28ad5e(0x386)][_0x28ad5e(0x4da)][_0x28ad5e(0x2b0)](v[_0x28ad5e(0x53f)](0x1))[_0x28ad5e(0x236)](async _0x45518a=>{const _0x5847ef=_0x28ad5e;_0x57a361(await this[_0x5847ef(0x2e4)](_0x45518a===x[_0x5847ef(0x322)]));});});}[_0x4aaaf0(0x32a)](){const _0x16a727=_0x4aaaf0,_0x13e574=this[_0x16a727(0x41c)];return{'onStateChange':(_0x5a02be,_0xdb55f8)=>{const _0x100bd4=_0x16a727;if(_0x5a02be!==this[_0x100bd4(0x5b9)])throw new Error(_0x100bd4(0x219)+_0x5a02be[_0x100bd4(0x425)]+_0x100bd4(0x408)+_0xdb55f8[_0x100bd4(0x425)]+'\x0aCurrent:\x20'+this[_0x100bd4(0x5b9)][_0x100bd4(0x425)]);this[_0x100bd4(0x57f)](_0xdb55f8);},'onSendChangeset':_0x3c3426=>{const _0x58ff92=_0x16a727;_0x3c3426[_0x58ff92(0x504)]||(_0x3c3426['sid']=this[_0x58ff92(0x3e9)],_0x3c3426[_0x58ff92(0x2d2)]=++this[_0x58ff92(0x3d7)]);const _0x2edc15={'eventID':_[_0x58ff92(0x2bb)][_0x58ff92(0x47c)],'data':{'unitID':_0x3c3426[_0x58ff92(0x41c)],'unitType':this[_0x58ff92(0x356)],'changeset':_0x3c3426,'memberID':this[_0x58ff92(0x386)][_0x58ff92(0x573)]()}};this[_0x58ff92(0x386)][_0x58ff92(0x306)](_0x2edc15,this[_0x58ff92(0x41c)]);},'onMissingChangesets':({from:_0x5ec168,to:_0x209247})=>{const _0x121250=_0x16a727;this[_0x121250(0x360)][_0x121250(0x43f)](_0x121250(0x229),_0x121250(0x5c2)+_0x5ec168+_0x121250(0x207)+_0x209247);const _0x45d2ff={'eventID':_[_0x121250(0x2bb)][_0x121250(0x3c6)],'data':{'unitID':_0x13e574,'unitType':this[_0x121250(0x356)],'from':_0x5ec168,'to':_0x209247}};this['session'][_0x121250(0x306)](_0x45d2ff,this[_0x121250(0x41c)]);}};}async['_createInitialStateImpl'](_0x4e9b7b){const _0x434bd3=_0x4aaaf0;var _0x53a2ed,_0x3cd9a8;const _0x44a201=await this[_0x434bd3(0x4e9)][_0x434bd3(0x436)](this['unitID']),_0x4877dd=(_0x53a2ed=_0x44a201==null?void 0x0:_0x44a201['mutations'])!=null?_0x53a2ed:[],_0x4f2af8=(_0x3cd9a8=_0x44a201==null?void 0x0:_0x44a201[_0x434bd3(0x1cd)])!=null?_0x3cd9a8:null,_0x50118d=!!(_0x4f2af8!=null&&_0x4f2af8[_0x434bd3(0x504)])&&!!(_0x4f2af8!=null&&_0x4f2af8[_0x434bd3(0x2d2)]);this['_changesetSessionId']=_0x50118d?_0x4f2af8[_0x434bd3(0x504)]:Ds(),this[_0x434bd3(0x3d7)]=_0x50118d?_0x4f2af8[_0x434bd3(0x2d2)]:0x0;const _0x9fa85f=this[_0x434bd3(0x41c)];try{this[_0x434bd3(0x2a8)](_0x4f2af8,_0x4877dd);}catch(_0x1c8582){this[_0x434bd3(0x360)][_0x434bd3(0x574)](_0x1c8582);}const _0x41dbf0=this[_0x434bd3(0x32a)]();if(_0x4e9b7b){const _0x39287b=Pt(this[_0x434bd3(0x5aa)],_0x9fa85f,this[_0x434bd3(0x356)],_0x4f2af8,_0x4877dd,_0x41dbf0);return _0x39287b instanceof W?_0x39287b[_0x434bd3(0x416)]():(_0x39287b instanceof F||_0x39287b instanceof Y)&&_0x39287b[_0x434bd3(0x399)](),_0x39287b;}return this[_0x434bd3(0x5aa)][_0x434bd3(0x1da)](X,_0x9fa85f,this['_type'],_0x4f2af8,_0x4877dd,_0x41dbf0);}[_0x4aaaf0(0x2a8)](_0x7ed284,_0x48ba84){const _0x304c7f=_0x4aaaf0;var _0x126ad6,_0x28234d;const _0x554a9c=this[_0x304c7f(0x528)]['interceptor'][_0x304c7f(0x3cb)](this[_0x304c7f(0x528)]['interceptor'][_0x304c7f(0x492)]()[_0x304c7f(0x296)]);(_0x126ad6=_0x554a9c((_0x7ed284==null?void 0x0:_0x7ed284[_0x304c7f(0x2b7)])||[],null))==null||_0x126ad6['forEach'](_0x7d3e73=>this[_0x304c7f(0x310)][_0x304c7f(0x593)](_0x7d3e73['id'],_0x7d3e73[_0x304c7f(0x348)])),(_0x28234d=_0x554a9c(_0x48ba84||[],null))==null||_0x28234d['forEach'](_0x178492=>this['_commandService'][_0x304c7f(0x593)](_0x178492['id'],_0x178492[_0x304c7f(0x348)]));}},exports['CollaborationEntity']=qe([p(0x3,a[_0x4aaaf0(0x1b2)](a['Injector'])),p(0x4,a['Inject'](exports[_0x4aaaf0(0x49c)])),p(0x5,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x2f4)])),p(0x6,a[_0x4aaaf0(0x1b2)](a['LocaleService'])),p(0x7,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),p(0x8,a['ILogService']),p(0x9,a['ICommandService']),p(0xa,A[_0x4aaaf0(0x31b)]),p(0xb,a['IPermissionService']),p(0xc,a[_0x4aaaf0(0x4cd)](Re))],exports[_0x4aaaf0(0x535)]),exports[_0x4aaaf0(0x21f)]=class extends exports['CollaborationEntity']{constructor(_0x1b0d2a,_0x91177,_0x5007d2,_0x351e21,_0x86b7ea,_0x1e8038,_0x201500,_0x4ab2b5,_0x1f898e,_0x5d932d,_0x5c9cfd,_0xbd720f,_0x50a064,_0x2567bb,_0x474483,_0x3f2e19,_0x3d49bd){const _0x5f2b0b=_0x4aaaf0;super(_0x1b0d2a,_0x5007d2,_0x91177,_0x351e21,_0x86b7ea,_0x1e8038,_0x201500,_0x4ab2b5,_0x50a064,_0x2567bb,_0x474483,_0x3f2e19,_0x3d49bd),this['unitID']=_0x1b0d2a,this['type']=_0x91177,this[_0x5f2b0b(0x3eb)]=_0x1f898e,this[_0x5f2b0b(0x3ca)]=_0x5d932d,this[_0x5f2b0b(0x235)]=_0x5c9cfd,this[_0x5f2b0b(0x389)]=_0xbd720f;}['_createHandler'](){const _0x32b438=_0x4aaaf0,_0x5c18d9=super[_0x32b438(0x32a)]();return _0x5c18d9[_0x32b438(0x1ef)]=_0x3b0c85=>this[_0x32b438(0x3ca)][_0x32b438(0x358)](_0x3b0c85),_0x5c18d9[_0x32b438(0x4d3)]=_0x39ca6a=>this[_0x32b438(0x235)]['transformSelections'](_0x39ca6a),_0x5c18d9[_0x32b438(0x216)]=_0x4ffab9=>this[_0x32b438(0x389)][_0x32b438(0x4d9)](_0x4ffab9),_0x5c18d9[_0x32b438(0x447)]=_0x5f0827=>this[_0x32b438(0x3ca)][_0x32b438(0x438)](_0x5f0827),_0x5c18d9;}async[_0x4aaaf0(0x33d)](){const _0x2a1344=_0x4aaaf0,_0x2b2f05=await super[_0x2a1344(0x33d)]();return this['_docStateChangeManagerService'][_0x2a1344(0x368)][_0x2a1344(0x2b0)](v[_0x2a1344(0x4b2)](this[_0x2a1344(0x35d)]))[_0x2a1344(0x236)](_0x40f0e8=>{const _0x11b617=_0x2a1344;if(_0x40f0e8==null)return;const {unitId:_0x4aec9e,redoState:_0x49ce74,commandId:_0x7fd12d}=_0x40f0e8;if(_0x4aec9e!==this[_0x11b617(0x41c)])return;const _0x2784c2={'id':_0x7fd12d,'type':a['CommandType'][_0x11b617(0x1ad)],'params':{'unitId':_0x4aec9e,'actions':_0x49ce74[_0x11b617(0x45c)],'textRanges':null}};this[_0x11b617(0x351)](_0x2784c2);}),_0x2b2f05;}},exports[_0x4aaaf0(0x21f)]=qe([p(0x3,a[_0x4aaaf0(0x1b2)](a['Injector'])),p(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),p(0x5,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x2f4)])),p(0x6,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1f6)])),p(0x7,a[_0x4aaaf0(0x1b2)](_['RevisionService'])),p(0x8,a[_0x4aaaf0(0x1b2)](N[_0x4aaaf0(0x486)])),p(0x9,a['Inject'](fe)),p(0xa,a['Inject'](pe)),p(0xb,a[_0x4aaaf0(0x1b2)](Xe)),p(0xc,a[_0x4aaaf0(0x1d1)]),p(0xd,a[_0x4aaaf0(0x5df)]),p(0xe,A[_0x4aaaf0(0x31b)]),p(0xf,a[_0x4aaaf0(0x26c)]),p(0x10,a['Optional'](Re))],exports['DocCollaborationEntity']),exports['SheetCollaborationEntity']=class extends exports[_0x4aaaf0(0x535)]{constructor(_0xc876a0,_0x3189f0,_0x5802bb,_0x23a5a0,_0x311b89,_0x19e8a5,_0x5bbd0b,_0x3f8cb3,_0x5a6b49,_0x26e1f8,_0x1c1b0e,_0x4dc1cc,_0x3bed60,_0x2ce1bf){const _0x390dc=_0x4aaaf0;super(_0xc876a0,_0x5802bb,_0x3189f0,_0x23a5a0,_0x311b89,_0x19e8a5,_0x5bbd0b,_0x3f8cb3,_0x26e1f8,_0x1c1b0e,_0x4dc1cc,_0x3bed60,_0x2ce1bf),this[_0x390dc(0x41c)]=_0xc876a0,this['type']=_0x3189f0,this['_sheetTransformSelectionsService']=_0x5a6b49;}[_0x4aaaf0(0x32a)](){const _0x555a7d=_0x4aaaf0,_0x1ad21c=super[_0x555a7d(0x32a)]();return _0x1ad21c[_0x555a7d(0x4d3)]=_0x13e150=>this[_0x555a7d(0x277)][_0x555a7d(0x5bf)](_0x13e150),_0x1ad21c;}async[_0x4aaaf0(0x33d)](){const _0x5780a0=_0x4aaaf0,_0x24dc70=await super['_init']();return this['disposeWithMe'](this[_0x5780a0(0x310)][_0x5780a0(0x2d9)]((_0x7bd8e2,_0x3a56d7)=>{const _0x1395df=_0x5780a0;if(_0x7bd8e2[_0x1395df(0x4aa)]!==a[_0x1395df(0x49d)][_0x1395df(0x1ad)]||_0x3a56d7!=null&&_0x3a56d7[_0x1395df(0x525)]||_0x3a56d7!=null&&_0x3a56d7['onlyLocal'])return;const _0x5bcf90=_0x7bd8e2[_0x1395df(0x348)];if((_0x5bcf90==null?void 0x0:_0x5bcf90['unitId'])!==this['unitID'])return;const _0x6d018=_0x7bd8e2,_0x3ea411=this[_0x1395df(0x528)][_0x1395df(0x5c5)][_0x1395df(0x3cb)](this[_0x1395df(0x528)]['interceptor'][_0x1395df(0x492)]()[_0x1395df(0x4f8)])([_0x6d018],null)||[_0x6d018];this[_0x1395df(0x351)](_0x3ea411[0x0]);})),_0x24dc70;}},exports['SheetCollaborationEntity']=qe([p(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),p(0x4,a[_0x4aaaf0(0x1b2)](exports['LocalCacheService'])),p(0x5,a[_0x4aaaf0(0x1b2)](_['CompressMutationService'])),p(0x6,a[_0x4aaaf0(0x1b2)](a['LocaleService'])),p(0x7,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),p(0x8,a['Inject'](Ie)),p(0x9,a[_0x4aaaf0(0x1d1)]),p(0xa,a['ICommandService']),p(0xb,A['IMessageService']),p(0xc,a[_0x4aaaf0(0x26c)]),p(0xd,a[_0x4aaaf0(0x4cd)](Re))],exports[_0x4aaaf0(0x376)]);var zs=Object['defineProperty'],Js=Object['getOwnPropertyDescriptor'],Zs=(_0x4683d3,_0x527dfb,_0x3203d3,_0x5eaadd)=>{const _0x1b37b0=_0x4aaaf0;for(var _0x18e91a=_0x5eaadd>0x1?void 0x0:_0x5eaadd?Js(_0x527dfb,_0x3203d3):_0x527dfb,_0x5a24ca=_0x4683d3[_0x1b37b0(0x31a)]-0x1,_0x4aa617;_0x5a24ca>=0x0;_0x5a24ca--)(_0x4aa617=_0x4683d3[_0x5a24ca])&&(_0x18e91a=(_0x5eaadd?_0x4aa617(_0x527dfb,_0x3203d3,_0x18e91a):_0x4aa617(_0x18e91a))||_0x18e91a);return _0x5eaadd&&_0x18e91a&&zs(_0x527dfb,_0x3203d3,_0x18e91a),_0x18e91a;},we=(_0x3a6342,_0x29503d)=>(_0x59735e,_0xe08b3d)=>_0x29503d(_0x59735e,_0xe08b3d,_0x3a6342);exports['CollaborationController']=class extends a['RxDisposable']{constructor(_0x2a3ddb,_0x147d04,_0x438e32){const _0x59f7fc=_0x4aaaf0;super(),u(this,_0x59f7fc(0x203),new Map()),u(this,_0x59f7fc(0x1d2),new v['Subject']()),(this['_injector']=_0x2a3ddb,this[_0x59f7fc(0x2d3)]=_0x147d04,this['_univerInstanceService']=_0x438e32,this[_0x59f7fc(0x33d)]());}[_0x4aaaf0(0x342)](){const _0x5bd631=_0x4aaaf0;super[_0x5bd631(0x342)](),this['_entities'][_0x5bd631(0x1d6)](_0x3ae5a4=>_0x3ae5a4[_0x5bd631(0x342)]()),this[_0x5bd631(0x203)][_0x5bd631(0x3e4)]();}[_0x4aaaf0(0x5b4)](_0xc77c99){const _0x900b93=_0x4aaaf0;var _0x474c7a;return(_0x474c7a=this[_0x900b93(0x203)][_0x900b93(0x439)](_0xc77c99))!=null?_0x474c7a:null;}[_0x4aaaf0(0x23f)](_0x447592){const _0x21676e=_0x4aaaf0,_0x2a0be5=this['getCollabEntity'](_0x447592);return _0x2a0be5?v['of'](_0x2a0be5):this[_0x21676e(0x1d2)]['pipe'](E[_0x21676e(0x36d)](_0x54cedb=>_0x54cedb[_0x21676e(0x41c)]===_0x447592));}[_0x4aaaf0(0x33d)](){const _0x1d471d=_0x4aaaf0;this[_0x1d471d(0x46d)]['getTypeOfUnitAdded$'](a[_0x1d471d(0x419)]['UNIVER_SHEET'])[_0x1d471d(0x2b0)](v[_0x1d471d(0x4b2)](this[_0x1d471d(0x35d)]),E[_0x1d471d(0x4ff)](0x10))[_0x1d471d(0x236)](async _0x338d3f=>{const _0x4c1a07=_0x1d471d,_0xe0f820=_0x338d3f[_0x4c1a07(0x3e2)](),_0x250a0b=await this[_0x4c1a07(0x397)](_0xe0f820,H[_0x4c1a07(0x4d0)]);this[_0x4c1a07(0x203)][_0x4c1a07(0x4af)](_0xe0f820,_0x250a0b);}),this[_0x1d471d(0x46d)][_0x1d471d(0x411)](a[_0x1d471d(0x419)][_0x1d471d(0x238)])[_0x1d471d(0x2b0)](v[_0x1d471d(0x4b2)](this[_0x1d471d(0x35d)]),E[_0x1d471d(0x4ff)](0x10))['pipe'](E[_0x1d471d(0x36d)](_0x1c234b=>!_0x1c234b[_0x1d471d(0x3e2)]()[_0x1d471d(0x476)]('__')))['subscribe'](async _0x19dfdb=>{const _0x580407=_0x1d471d,_0x41face=_0x19dfdb[_0x580407(0x3e2)](),_0x5a88a3=await this[_0x580407(0x397)](_0x41face,H[_0x580407(0x238)]);this[_0x580407(0x203)][_0x580407(0x4af)](_0x41face,_0x5a88a3);}),v[_0x1d471d(0x398)](this[_0x1d471d(0x46d)]['getTypeOfUnitDisposed$'](a[_0x1d471d(0x419)][_0x1d471d(0x4d0)]),this['_univerInstanceService'][_0x1d471d(0x2d5)](a[_0x1d471d(0x419)]['UNIVER_DOC']))[_0x1d471d(0x2b0)](v[_0x1d471d(0x4b2)](this['dispose$']))['subscribe'](_0xbc1714=>{const _0x14268f=_0x1d471d,_0x3adae9=_0xbc1714[_0x14268f(0x3e2)](),_0x4375d5=this[_0x14268f(0x203)]['get'](_0x3adae9);_0x4375d5&&(_0x4375d5[_0x14268f(0x342)](),this[_0x14268f(0x203)][_0x14268f(0x276)](_0x3adae9));});}async[_0x4aaaf0(0x397)](_0x33b4a9,_0x24b812){const _0x3313f1=_0x4aaaf0,_0x20ca05=await this[_0x3313f1(0x2d3)][_0x3313f1(0x571)](_0x33b4a9),_0x3e1174=this['_injector'][_0x3313f1(0x1da)](this[_0x3313f1(0x5b8)](_0x24b812),_0x33b4a9,_0x24b812,_0x20ca05);return await _0x3e1174[_0x3313f1(0x1d7)](),this[_0x3313f1(0x1d2)]['next'](_0x3e1174),_0x3e1174;}['_getCtorByUniverType'](_0x549946){const _0x43bf88=_0x4aaaf0;switch(_0x549946){case H[_0x43bf88(0x238)]:return exports[_0x43bf88(0x21f)];case H['UNIVER_SHEET']:return exports[_0x43bf88(0x376)];default:throw new Error(_0x43bf88(0x2fe)+_0x549946);}}},exports[_0x4aaaf0(0x265)]=Zs([we(0x0,a['Inject'](a[_0x4aaaf0(0x2ee)])),we(0x1,a[_0x4aaaf0(0x1b2)](exports['CollaborationSessionService'])),we(0x2,a[_0x4aaaf0(0x33f)])],exports['CollaborationController']);const at=['purple300',_0x4aaaf0(0x38a),_0x4aaaf0(0x543),'red300','blue400','gold400'];class ze extends a[_0x4aaaf0(0x3ef)]{constructor(){const _0x4f1d74=_0x4aaaf0;super(...arguments),u(this,_0x4f1d74(0x52a),new Map()),u(this,_0x4f1d74(0x3a6),0x0);}[_0x4aaaf0(0x1e5)](_0x2d4df8){const _0xdda0ee=_0x4aaaf0;if(this['_assignedColors']['has'](_0x2d4df8))return this[_0xdda0ee(0x52a)][_0xdda0ee(0x439)](_0x2d4df8);const _0x27e060=at[this[_0xdda0ee(0x3a6)]];return this[_0xdda0ee(0x3a6)]=(this[_0xdda0ee(0x3a6)]+0x1)%at[_0xdda0ee(0x31a)],this[_0xdda0ee(0x52a)]['set'](_0x2d4df8,_0x27e060),_0x27e060;}}var Qs=Object[_0x4aaaf0(0x562)],ei=Object[_0x4aaaf0(0x28b)],ti=(_0x4b0ee0,_0x28f3b5,_0x46d3d7,_0x2b28d9)=>{const _0x1e1d0d=_0x4aaaf0;for(var _0x1885f2=_0x2b28d9>0x1?void 0x0:_0x2b28d9?ei(_0x28f3b5,_0x46d3d7):_0x28f3b5,_0x186618=_0x4b0ee0[_0x1e1d0d(0x31a)]-0x1,_0x319f79;_0x186618>=0x0;_0x186618--)(_0x319f79=_0x4b0ee0[_0x186618])&&(_0x1885f2=(_0x2b28d9?_0x319f79(_0x28f3b5,_0x46d3d7,_0x1885f2):_0x319f79(_0x1885f2))||_0x1885f2);return _0x2b28d9&&_0x1885f2&&Qs(_0x28f3b5,_0x46d3d7,_0x1885f2),_0x1885f2;},z=(_0x5b4973,_0x5b7933)=>(_0xfe3330,_0x46dbe8)=>_0x5b7933(_0xfe3330,_0x46dbe8,_0x5b4973);const si=0x12c,ii=0x64;let xe=class extends a[_0x4aaaf0(0x275)]{constructor(_0x446bb1,_0x5ac9ec,_0x4bcab0,_0x1eda92,_0x42358e,_0x43e89e,_0x21fa18,_0x2b8d90,_0x404338){const _0x5a3c85=_0x4aaaf0;super(),u(this,_0x5a3c85(0x23c),!0x1),u(this,_0x5a3c85(0x33d),!0x1),u(this,_0x5a3c85(0x4b1),new v[(_0x5a3c85(0x442))](new Map())),u(this,_0x5a3c85(0x2d7),this['_cursorInfo$'][_0x5a3c85(0x2a7)]()),u(this,_0x5a3c85(0x4b0),new v[(_0x5a3c85(0x442))]([])),u(this,'roomMembers$',this[_0x5a3c85(0x4b0)]['pipe'](v[_0x5a3c85(0x4a4)](si))),u(this,'_updateLocalCursor',a[_0x5a3c85(0x54d)](_0x4a3c2a=>{const _0xfeead8=_0x5a3c85,_0x16ced4={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0xfeead8(0x41c)],'memberID':this[_0xfeead8(0x257)]['getMemberID'](),'selection':Dt(_0x4a3c2a)}};this[_0xfeead8(0x257)][_0xfeead8(0x306)](_0x16ced4,this[_0xfeead8(0x41c)]);},ii)),(this[_0x5a3c85(0x41c)]=_0x446bb1,this[_0x5a3c85(0x257)]=_0x5ac9ec,this[_0x5a3c85(0x5aa)]=_0x4bcab0,this[_0x5a3c85(0x51a)]=_0x1eda92,this[_0x5a3c85(0x529)]=_0x42358e,this[_0x5a3c85(0x40b)]=_0x43e89e,this[_0x5a3c85(0x37f)]=_0x21fa18,this[_0x5a3c85(0x46d)]=_0x2b8d90,this[_0x5a3c85(0x310)]=_0x404338);}get[_0x4aaaf0(0x3c5)](){const _0x4d4f5b=_0x4aaaf0;return this[_0x4d4f5b(0x4b1)][_0x4d4f5b(0x42d)]();}get[_0x4aaaf0(0x3d4)](){const _0x7b91b3=_0x4aaaf0;return this[_0x7b91b3(0x4b0)][_0x7b91b3(0x42d)]();}[_0x4aaaf0(0x342)](){const _0x430b6e=_0x4aaaf0;super['dispose'](),this['_cursorInfo$'][_0x430b6e(0x3b3)](new Map()),this[_0x430b6e(0x4b1)][_0x430b6e(0x489)](),this[_0x430b6e(0x4b0)][_0x430b6e(0x3b3)]([]),this[_0x430b6e(0x4b0)][_0x430b6e(0x489)]();}[_0x4aaaf0(0x1d7)](){const _0x3cb321=_0x4aaaf0;this['_init']||(this[_0x3cb321(0x33d)]=!0x0,this[_0x3cb321(0x257)]['sessionStatus$'][_0x3cb321(0x2b0)](v[_0x3cb321(0x4b2)](this[_0x3cb321(0x35d)]))[_0x3cb321(0x236)](_0x580386=>{const _0x100a94=_0x3cb321;_0x580386===x['ONLINE']?this[_0x100a94(0x454)]():this[_0x100a94(0x3a8)]();}),this['_session']['event$'][_0x3cb321(0x2b0)](v[_0x3cb321(0x4b2)](this[_0x3cb321(0x35d)]))[_0x3cb321(0x236)](_0x278354=>{const _0x1837a2=_0x3cb321,_0x37b56b=_0x278354[_0x1837a2(0x405)];_0x37b56b===_[_0x1837a2(0x2bb)]['UPDATE_CURSOR']&&this[_0x1837a2(0x5c1)](_0x278354),_0x37b56b===_[_0x1837a2(0x2bb)][_0x1837a2(0x3b0)]&&this['_onCursorDelete'](_0x278354);}),this[_0x3cb321(0x367)](this[_0x3cb321(0x310)][_0x3cb321(0x2d9)](_0x413fcc=>{const _0x2855bd=_0x3cb321,_0x47035a=_0x413fcc[_0x2855bd(0x348)];_0x47035a!=null&&this[_0x2855bd(0x23c)]&&_0x413fcc['id']===ne['SetTextSelectionsOperation']['id']&&_0x47035a[_0x2855bd(0x22c)]===this[_0x2855bd(0x41c)]&&_0x47035a[_0x2855bd(0x22e)]===!0x1&&_0x47035a[_0x2855bd(0x2cd)][_0x2855bd(0x31a)]>0x0&&this['_updateLocalCursor'](_0x47035a[_0x2855bd(0x2cd)]);})),this['_syncEditingCollabCursorService'][_0x3cb321(0x54b)][_0x3cb321(0x2b0)](v[_0x3cb321(0x4b2)](this[_0x3cb321(0x35d)]))[_0x3cb321(0x236)](_0x34f2b6=>{const _0x51508a=_0x3cb321;if((_0x34f2b6==null?void 0x0:_0x34f2b6[_0x51508a(0x41c)])!==this[_0x51508a(0x41c)])return;const _0x2f773a={'eventID':_[_0x51508a(0x2bb)][_0x51508a(0x1d5)],'data':_0x34f2b6};this[_0x51508a(0x5c1)](_0x2f773a);}),this[_0x3cb321(0x367)](this[_0x3cb321(0x310)][_0x3cb321(0x2d9)](_0x5e44c0=>{const _0x7dfdee=_0x3cb321;if(_0x5e44c0['params']==null)return;const _0xd9aa04=_0x5e44c0[_0x7dfdee(0x348)];if(_0x5e44c0['id']!==ne[_0x7dfdee(0x1cf)]['id']||_0xd9aa04[_0x7dfdee(0x22c)]!==this[_0x7dfdee(0x41c)])return;const _0x4ac251={'id':'doc.mutation.rich-text-editing','params':_0xd9aa04},_0x379b70=this[_0x7dfdee(0x3c5)];for(const [_0x2bfdbe,_0x2c17b3]of _0x379b70){const _0x13ed71={'id':_0x7dfdee(0x350),'params':{'unitId':this[_0x7dfdee(0x41c)],'actions':null,'textRanges':_0x2c17b3[_0x7dfdee(0x2cd)]}},_0x56e390=this[_0x7dfdee(0x37f)]['transformMutation'](_0x4ac251,_0x13ed71,!0x1);if(_[_0x7dfdee(0x3f6)](_0x56e390))throw _0x56e390[_0x7dfdee(0x574)];_0x379b70[_0x7dfdee(0x4af)](_0x2bfdbe,{..._0x2c17b3,'ranges':_0x56e390[_0x7dfdee(0x3a9)][_0x7dfdee(0x348)]['textRanges']});}queueMicrotask(()=>{const _0x4bc735=_0x7dfdee;this[_0x4bc735(0x4b1)][_0x4bc735(0x3b3)](_0x379b70);});})));}[_0x4aaaf0(0x5c1)](_0x5a924c){const _0x5b3152=_0x4aaaf0;var _0xde8552,_0x28bc62;const {memberID:_0x1fb5c5,selection:_0x47c16c}=_0x5a924c['data'],_0x576427=xs(_0x47c16c),_0x21fdc5=(_0x28bc62=(_0xde8552=this[_0x5b3152(0x529)][_0x5b3152(0x3d1)](this[_0x5b3152(0x41c)],_0x1fb5c5))==null?void 0x0:_0xde8552['name'])!=null?_0x28bc62:'Unknown\x20user',_0xf878e7={'color':this[_0x5b3152(0x51a)][_0x5b3152(0x1e5)](_0x1fb5c5),'name':_0x21fdc5,'ranges':_0x576427},_0x9090cd=this[_0x5b3152(0x3c5)];_0x9090cd[_0x5b3152(0x4af)](_0x1fb5c5,_0xf878e7),this[_0x5b3152(0x4b1)]['next'](_0x9090cd);}[_0x4aaaf0(0x4a1)](_0x1c32db){const _0x334b6b=_0x4aaaf0,{memberID:_0x409403}=_0x1c32db['data'],_0x49b006=this[_0x334b6b(0x3c5)];_0x49b006[_0x334b6b(0x276)](_0x409403),this[_0x334b6b(0x4b1)][_0x334b6b(0x3b3)](_0x49b006);}[_0x4aaaf0(0x454)](){const _0x3f0762=_0x4aaaf0;var _0x2a973c;if(this[_0x3f0762(0x23c)]=!0x0,((_0x2a973c=this[_0x3f0762(0x46d)][_0x3f0762(0x4e3)]())==null?void 0x0:_0x2a973c['getUnitId']())!==this['unitID'])return;const _0x2831a2=this[_0x3f0762(0x5aa)]['get'](ne[_0x3f0762(0x28f)])[_0x3f0762(0x506)]();Array[_0x3f0762(0x27b)](_0x2831a2)&&_0x2831a2[_0x3f0762(0x31a)]>0x0&&this[_0x3f0762(0x1b6)](_0x2831a2);}['_toggleOffline'](){const _0x290d7f=_0x4aaaf0;this[_0x290d7f(0x23c)]=!0x1;}};xe=ti([z(0x2,a['Inject'](a[_0x4aaaf0(0x2ee)])),z(0x3,a[_0x4aaaf0(0x1b2)](ze)),z(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x50e)])),z(0x5,a[_0x4aaaf0(0x1b2)](Xe)),z(0x6,_[_0x4aaaf0(0x41f)]),z(0x7,a[_0x4aaaf0(0x33f)]),z(0x8,a[_0x4aaaf0(0x5df)])],xe);var ni=Object[_0x4aaaf0(0x562)],ri=Object[_0x4aaaf0(0x28b)],oi=(_0xab9de7,_0x955cc3,_0x4f1d90,_0x52910e)=>{for(var _0x25ae88=_0x52910e>0x1?void 0x0:_0x52910e?ri(_0x955cc3,_0x4f1d90):_0x955cc3,_0x2d0402=_0xab9de7['length']-0x1,_0x5de2f3;_0x2d0402>=0x0;_0x2d0402--)(_0x5de2f3=_0xab9de7[_0x2d0402])&&(_0x25ae88=(_0x52910e?_0x5de2f3(_0x955cc3,_0x4f1d90,_0x25ae88):_0x5de2f3(_0x25ae88))||_0x25ae88);return _0x52910e&&_0x25ae88&&ni(_0x955cc3,_0x4f1d90,_0x25ae88),_0x25ae88;},te=(_0x1a5eb0,_0x5941b3)=>(_0x3febbf,_0x52de7b)=>_0x5941b3(_0x3febbf,_0x52de7b,_0x1a5eb0);const ai=0x12c,ci=0x64,li=()=>{let _0xa551fb=[],_0x12eb3a=!0x1;return _0x578ec3=>{const _0x1bdbfc=_0x47ba;_0xa551fb[_0x1bdbfc(0x4ce)](_0x578ec3),_0x12eb3a||(_0x12eb3a=!0x0,setTimeout(()=>{const _0x2d029d=_0x1bdbfc;_0xa551fb[_0x2d029d(0x1d6)](_0x1373cd=>_0x1373cd()),_0xa551fb=[],_0x12eb3a=!0x1;}));};};let ke=class extends a[_0x4aaaf0(0x275)]{constructor(_0x50e692,_0x120b87,_0x4f4c1a,_0x1a71b7,_0x2ce18a,_0xd6d851,_0x19faf5,_0x1874fb){const _0x21090b=_0x4aaaf0;super(),u(this,_0x21090b(0x23c),!0x1),u(this,_0x21090b(0x33d),!0x1),u(this,_0x21090b(0x4b1),new v[(_0x21090b(0x442))](new Map())),u(this,'cursorInfo$',this[_0x21090b(0x4b1)][_0x21090b(0x2a7)]()),u(this,_0x21090b(0x4b0),new v[(_0x21090b(0x442))]([])),u(this,_0x21090b(0x4fc),this[_0x21090b(0x4b0)][_0x21090b(0x2b0)](v[_0x21090b(0x4a4)](ai))),u(this,'_updateLocalCursor',a[_0x21090b(0x54d)]((_0x2c3048,_0x53ed20)=>{const _0x137d39=_0x21090b,_0x1e0c32={'eventID':_['CollaborationEvent'][_0x137d39(0x1d5)],'data':{'unitID':this[_0x137d39(0x41c)],'memberID':this[_0x137d39(0x257)]['getMemberID'](),'selection':Qe[_0x137d39(0x420)](_0x2c3048,_0x53ed20[_0x137d39(0x325)])}};this['_session'][_0x137d39(0x306)](_0x1e0c32,this[_0x137d39(0x41c)]);},ci)),(this['unitID']=_0x50e692,this[_0x21090b(0x257)]=_0x120b87,this[_0x21090b(0x5aa)]=_0x4f4c1a,this['_colorAssignService']=_0x1a71b7,this[_0x21090b(0x529)]=_0x2ce18a,this['_univerInstanceService']=_0xd6d851,this[_0x21090b(0x310)]=_0x19faf5,this[_0x21090b(0x3f3)]=_0x1874fb);}get[_0x4aaaf0(0x3c5)](){const _0x2e5e95=_0x4aaaf0;return this[_0x2e5e95(0x4b1)]['getValue']();}get[_0x4aaaf0(0x3d4)](){const _0x5b43d6=_0x4aaaf0;return this[_0x5b43d6(0x4b0)][_0x5b43d6(0x42d)]();}['dispose'](){const _0x139058=_0x4aaaf0;super['dispose'](),this['_cursorInfo$'][_0x139058(0x3b3)](new Map()),this[_0x139058(0x4b1)][_0x139058(0x489)](),this[_0x139058(0x4b0)][_0x139058(0x3b3)]([]),this['_roomMembers$'][_0x139058(0x489)]();}[_0x4aaaf0(0x1d7)](){const _0x55c2bc=_0x4aaaf0;this[_0x55c2bc(0x33d)]||(this['_init']=!0x0,this[_0x55c2bc(0x257)][_0x55c2bc(0x4da)][_0x55c2bc(0x2b0)](v[_0x55c2bc(0x4b2)](this[_0x55c2bc(0x35d)]))[_0x55c2bc(0x236)](_0x3aab95=>{const _0x55b0f8=_0x55c2bc;_0x3aab95===x['ONLINE']?this['_toggleOnline']():this[_0x55b0f8(0x3a8)]();}),this[_0x55c2bc(0x257)]['event$']['pipe'](v[_0x55c2bc(0x4b2)](this['dispose$']))['subscribe'](_0x1c91ae=>{const _0x104596=_0x55c2bc,_0x24fcd7=_0x1c91ae[_0x104596(0x405)];_0x24fcd7===_['CollaborationEvent'][_0x104596(0x1d5)]&&this[_0x104596(0x5c1)](_0x1c91ae),_0x24fcd7===_[_0x104596(0x2bb)][_0x104596(0x3b0)]&&this[_0x104596(0x4a1)](_0x1c91ae);}),this[_0x55c2bc(0x1b9)](),this[_0x55c2bc(0x367)](this[_0x55c2bc(0x310)][_0x55c2bc(0x2d9)](_0x12f255=>{const _0xb520ca=_0x55c2bc;if(this['_online']&&_0x12f255['id']===C[_0xb520ca(0x2f0)]['id']&&_0x12f255['params'][_0xb520ca(0x22c)]===this[_0xb520ca(0x41c)]){const _0x291c54=_0x12f255[_0xb520ca(0x348)];this['_updateLocalCursor'](_0x291c54[_0xb520ca(0x395)],_0x291c54[_0xb520ca(0x44d)][0x0]);}})));}[_0x4aaaf0(0x5c1)](_0x16580b){const _0x518441=_0x4aaaf0;var _0x39c371,_0x16b377;const {memberID:_0x4d0fac,selection:_0x41993b}=_0x16580b['data'],{sheetName:_0x44b98e,range:_0xcfc1c0}=Qe['deserializeRangeWithSheet'](_0x41993b),_0x2d293f={'name':(_0x16b377=(_0x39c371=this[_0x518441(0x529)][_0x518441(0x3d1)](this[_0x518441(0x41c)],_0x4d0fac))==null?void 0x0:_0x39c371['name'])!=null?_0x16b377:_0x518441(0x508),'range':this[_0x518441(0x5a0)](_0x44b98e,_0xcfc1c0),'sheetID':_0x44b98e,'color':this[_0x518441(0x51a)]['assignAColorForMemberID'](_0x4d0fac),'selection':_0x41993b},_0x3f5ec7=this[_0x518441(0x3c5)];_0x3f5ec7[_0x518441(0x4af)](_0x4d0fac,_0x2d293f),this[_0x518441(0x4b1)][_0x518441(0x3b3)](_0x3f5ec7);}[_0x4aaaf0(0x4a1)](_0x342e37){const _0x30897d=_0x4aaaf0,{memberID:_0x280eca}=_0x342e37[_0x30897d(0x2cf)],_0x252a1c=this[_0x30897d(0x3c5)];_0x252a1c[_0x30897d(0x276)](_0x280eca),this[_0x30897d(0x4b1)]['next'](_0x252a1c);}['_getMergeRange'](_0x1696e5,_0x1576ba){const _0x42dc5e=_0x4aaaf0;var _0x2c0d84,_0x442e6c;const _0x412846=(_0x442e6c=(_0x2c0d84=this[_0x42dc5e(0x46d)][_0x42dc5e(0x4ae)](this[_0x42dc5e(0x41c)]))==null?void 0x0:_0x2c0d84[_0x42dc5e(0x5be)](_0x1696e5))==null?void 0x0:_0x442e6c[_0x42dc5e(0x4a5)]();return(_0x412846==null?void 0x0:_0x412846[_0x42dc5e(0x1c1)](_0x2f1c9a=>a['Rectangle']['contains'](_0x2f1c9a,_0x1576ba)))||_0x1576ba;}[_0x4aaaf0(0x1b9)](){const _0x52b32b=_0x4aaaf0,_0x126a31=new a[(_0x52b32b(0x5db))](),_0x5be4f6=li(),_0x58e61f=()=>{const _0x430273=_0x52b32b;_0x126a31[_0x430273(0x342)]();const _0x366e1e=(_0x51c414,_0x110996,_0x14094a,_0x1c606e)=>{const _0xd5f490=_0x430273;let _0x326eee=[];switch(_0x51c414['id']){case C[_0xd5f490(0x53a)][_0xd5f490(0x324)]:{_0x326eee=C[_0xd5f490(0x30b)](_0x51c414,_0x1c606e);break;}case C['EffectRefRangId'][_0xd5f490(0x590)]:{_0x326eee=C[_0xd5f490(0x34e)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x2ae)]:{_0x326eee=C[_0xd5f490(0x28e)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x59e)]:{_0x326eee=C[_0xd5f490(0x268)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x5d8)]:{_0x326eee=C[_0xd5f490(0x23e)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)]['InsertRowCommandId']:{_0x326eee=C[_0xd5f490(0x31d)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x597)]:{_0x326eee=C[_0xd5f490(0x37a)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x25d)]:{_0x326eee=C['handleIRemoveCol'](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)]['RemoveRowCommandId']:{_0x326eee=C[_0xd5f490(0x570)](_0x51c414,_0x1c606e);break;}}const _0x398af8=C[_0xd5f490(0x422)](_0x326eee,_0x1c606e),_0x3c1747=this[_0xd5f490(0x3c5)]['get'](_0x110996);if(_0x3c1747&&_0x398af8){const _0x213f6b={..._0x3c1747,'range':_0x398af8};this[_0xd5f490(0x3c5)][_0xd5f490(0x4af)](_0x110996,_0x213f6b),_0x5be4f6(()=>{const _0x3dc092=_0xd5f490,_0x923d5f=this[_0x3dc092(0x3f3)]['registerRefRange'](_0x398af8,_0x2ea046=>(_0x923d5f['dispose'](),_0x366e1e(_0x2ea046,_0x110996,_0x14094a,_0x398af8)));_0x126a31[_0x3dc092(0x24d)](_0x923d5f);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x430273(0x1d6)]((_0x2e5c81,_0x5ca381)=>{const _0x8e8454=_0x430273,{range:_0x5eee4b,sheetID:_0x3a6775}=_0x2e5c81,_0x511f00=this[_0x8e8454(0x3f3)][_0x8e8454(0x200)](_0x5eee4b,_0x37bc69=>(_0x511f00[_0x8e8454(0x342)](),_0x366e1e(_0x37bc69,_0x5ca381,_0x3a6775,_0x5eee4b)));_0x126a31[_0x8e8454(0x24d)](_0x511f00);});};this[_0x52b32b(0x367)](a[_0x52b32b(0x2c6)](this[_0x52b32b(0x4b1)][_0x52b32b(0x236)](()=>{_0x58e61f();})));}[_0x4aaaf0(0x454)](){const _0x2d9390=_0x4aaaf0;var _0x209ae6,_0x373433;if(this['_online']=!0x0,((_0x209ae6=this[_0x2d9390(0x46d)][_0x2d9390(0x4e3)]())==null?void 0x0:_0x209ae6[_0x2d9390(0x3e2)]())!==this['unitID'])return;const _0x552a5e=(_0x373433=this[_0x2d9390(0x5aa)][_0x2d9390(0x439)](C['SheetsSelectionsService'])[_0x2d9390(0x303)]())==null?void 0x0:_0x373433[0x0],_0x2be567=this[_0x2d9390(0x46d)]['getCurrentUnitForType'](a[_0x2d9390(0x419)][_0x2d9390(0x4d0)])[_0x2d9390(0x372)]();_0x552a5e&&_0x2be567&&this['_updateLocalCursor'](_0x2be567[_0x2d9390(0x271)](),_0x552a5e);}[_0x4aaaf0(0x3a8)](){const _0x4838d7=_0x4aaaf0;this[_0x4838d7(0x23c)]=!0x1;}};ke=oi([te(0x2,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),te(0x3,a[_0x4aaaf0(0x1b2)](ze)),te(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x50e)])),te(0x5,a[_0x4aaaf0(0x33f)]),te(0x6,a[_0x4aaaf0(0x5df)]),te(0x7,a['Inject'](C['RefRangeService']))],ke);var hi=Object[_0x4aaaf0(0x562)],_i=Object[_0x4aaaf0(0x28b)],ui=(_0x1295db,_0x2a607b,_0x5d1bdc,_0x3c8fcf)=>{const _0x20d660=_0x4aaaf0;for(var _0xf645d6=_0x3c8fcf>0x1?void 0x0:_0x3c8fcf?_i(_0x2a607b,_0x5d1bdc):_0x2a607b,_0x5416db=_0x1295db[_0x20d660(0x31a)]-0x1,_0x3673aa;_0x5416db>=0x0;_0x5416db--)(_0x3673aa=_0x1295db[_0x5416db])&&(_0xf645d6=(_0x3c8fcf?_0x3673aa(_0x2a607b,_0x5d1bdc,_0xf645d6):_0x3673aa(_0xf645d6))||_0xf645d6);return _0x3c8fcf&&_0xf645d6&&hi(_0x2a607b,_0x5d1bdc,_0xf645d6),_0xf645d6;},Ne=(_0x2fc968,_0x97cc44)=>(_0x4739cc,_0x205e43)=>_0x97cc44(_0x4739cc,_0x205e43,_0x2fc968);let oe=class extends a[_0x4aaaf0(0x275)]{constructor(_0x25d88e,_0x429c47,_0x19d49d){const _0x2dc638=_0x4aaaf0;super(),u(this,_0x2dc638(0x203),new Map()),u(this,_0x2dc638(0x1d2),new v[(_0x2dc638(0x1d4))]()),(this[_0x2dc638(0x46d)]=_0x25d88e,this['_injector']=_0x429c47,this['_collabSessionService']=_0x19d49d,this[_0x2dc638(0x33d)]());}[_0x4aaaf0(0x342)](){const _0x562d34=_0x4aaaf0;super[_0x562d34(0x342)](),this[_0x562d34(0x1d2)]['complete'](),this[_0x562d34(0x203)]['forEach'](_0x3c7e21=>_0x3c7e21[_0x562d34(0x342)]());}[_0x4aaaf0(0x355)](_0x4d3371){const _0x4f16b4=_0x4aaaf0;return this['_entities'][_0x4f16b4(0x2cc)](_0x4d3371)?this[_0x4f16b4(0x203)]['get'](_0x4d3371)['cursorInfo$']:this['_entityInit$'][_0x4f16b4(0x2b0)](v[_0x4f16b4(0x36d)](_0x31f58c=>_0x31f58c[_0x4f16b4(0x41c)]===_0x4d3371),v[_0x4f16b4(0x3e7)](_0x52ae1c=>_0x52ae1c[_0x4f16b4(0x2d7)]));}[_0x4aaaf0(0x33d)](){const _0x24695f=_0x4aaaf0;this[_0x24695f(0x46d)][_0x24695f(0x411)](a[_0x24695f(0x419)]['UNIVER_SHEET'])[_0x24695f(0x2b0)](v[_0x24695f(0x4b2)](this['dispose$']))[_0x24695f(0x236)](async _0x1499c0=>{const _0x3ea605=_0x24695f,_0xea0fa9=_0x1499c0['getUnitId'](),_0x571001=await this[_0x3ea605(0x517)](_0xea0fa9);this[_0x3ea605(0x1d2)][_0x3ea605(0x3b3)](_0x571001),this[_0x3ea605(0x203)][_0x3ea605(0x4af)](_0xea0fa9,_0x571001);}),this['_univerInstanceService'][_0x24695f(0x411)](a[_0x24695f(0x419)][_0x24695f(0x238)])[_0x24695f(0x2b0)](v[_0x24695f(0x4b2)](this[_0x24695f(0x35d)]))[_0x24695f(0x2b0)](v['filter'](_0x5d209d=>!_0x5d209d[_0x24695f(0x3e2)]()[_0x24695f(0x476)]('__')))[_0x24695f(0x236)](async _0x3a245e=>{const _0x13df96=_0x24695f,_0x1d200c=_0x3a245e[_0x13df96(0x3e2)](),_0x1802c4=await this[_0x13df96(0x26d)](_0x1d200c);this['_entityInit$']['next'](_0x1802c4),this['_entities'][_0x13df96(0x4af)](_0x1d200c,_0x1802c4);}),v[_0x24695f(0x398)](this[_0x24695f(0x46d)][_0x24695f(0x2d5)](a[_0x24695f(0x419)]['UNIVER_DOC']),this[_0x24695f(0x46d)]['getTypeOfUnitDisposed$'](a[_0x24695f(0x419)][_0x24695f(0x4d0)]))[_0x24695f(0x2b0)](v['takeUntil'](this['dispose$']))['subscribe'](_0x37b0a1=>{const _0x448b66=_0x24695f,_0x1e3933=_0x37b0a1['getUnitId'](),_0x3c5936=this['_entities'][_0x448b66(0x439)](_0x1e3933);_0x3c5936&&(_0x3c5936[_0x448b66(0x342)](),this[_0x448b66(0x203)][_0x448b66(0x276)](_0x1e3933));});}async[_0x4aaaf0(0x517)](_0x190569){const _0xb9f4db=_0x4aaaf0,_0xcb38c7=await this[_0xb9f4db(0x2d3)][_0xb9f4db(0x571)](_0x190569),_0x463c85=this[_0xb9f4db(0x5aa)][_0xb9f4db(0x1da)](ke,_0x190569,_0xcb38c7);return _0x463c85[_0xb9f4db(0x1d7)](),_0x463c85;}async[_0x4aaaf0(0x26d)](_0x406764){const _0x3e495d=_0x4aaaf0,_0x234faf=await this[_0x3e495d(0x2d3)]['requireSession'](_0x406764),_0x4b7c9e=this[_0x3e495d(0x5aa)][_0x3e495d(0x1da)](xe,_0x406764,_0x234faf);return _0x4b7c9e[_0x3e495d(0x1d7)](),_0x4b7c9e;}};oe=ui([Ne(0x0,a[_0x4aaaf0(0x33f)]),Ne(0x1,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),Ne(0x2,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x48f)]))],oe);const de=0x14,ct=0xc8,Me=0x4,di=0x5;function Si(_0x28f3c7,_0x2a48ae){const _0x476e15=_0x4aaaf0;let {radius:_0x47cfee,width:_0x1dc167,height:_0x40a503}=_0x2a48ae;_0x47cfee=_0x47cfee!=null?_0x47cfee:0x0,_0x1dc167=_0x1dc167!=null?_0x1dc167:0x1e,_0x40a503=_0x40a503!=null?_0x40a503:0x1e;let _0x268bdd=0x0,_0xdbb106=0x0,_0x5600ce=0x0;_0x268bdd=_0xdbb106=_0x5600ce=Math[_0x476e15(0x52c)](_0x47cfee,_0x1dc167/0x2,_0x40a503/0x2),_0x28f3c7[_0x476e15(0x53e)](),_0x28f3c7[_0x476e15(0x4ec)](_0x268bdd,0x0),_0x28f3c7[_0x476e15(0x552)](_0x1dc167-_0xdbb106,0x0),_0x28f3c7[_0x476e15(0x1ee)](_0x1dc167-_0xdbb106,_0xdbb106,_0xdbb106,Math['PI']*0x3/0x2,0x0,!0x1),_0x28f3c7[_0x476e15(0x552)](_0x1dc167,_0x40a503-_0x5600ce),_0x28f3c7[_0x476e15(0x1ee)](_0x1dc167-_0x5600ce,_0x40a503-_0x5600ce,_0x5600ce,0x0,Math['PI']/0x2,!0x1),_0x28f3c7[_0x476e15(0x552)](0x0,_0x40a503),_0x28f3c7[_0x476e15(0x552)](0x0,_0x268bdd),_0x28f3c7[_0x476e15(0x1ee)](_0x268bdd,_0x268bdd,_0x268bdd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x28f3c7['closePath'](),_0x2a48ae['fill']&&(_0x28f3c7['save'](),_0x28f3c7[_0x476e15(0x2a3)]=_0x2a48ae[_0x476e15(0x444)],_0x2a48ae[_0x476e15(0x211)]===_0x476e15(0x56e)?_0x28f3c7[_0x476e15(0x444)](_0x476e15(0x56e)):_0x28f3c7[_0x476e15(0x444)](),_0x28f3c7[_0x476e15(0x327)]());}class Oe extends O[_0x4aaaf0(0x1fe)]{constructor(_0x7cebe5,_0x225ebc){const _0x19674e=_0x4aaaf0;super(_0x7cebe5,_0x225ebc),u(this,'color'),u(this,'text'),(this['color']=_0x225ebc==null?void 0x0:_0x225ebc[_0x19674e(0x3b4)],this[_0x19674e(0x47b)]=_0x225ebc==null?void 0x0:_0x225ebc[_0x19674e(0x47b)]);}static[_0x4aaaf0(0x5a5)](_0x14ae01,_0x5c35df){const _0x375579=_0x4aaaf0,{text:_0x434790,color:_0x38ae3}=_0x5c35df;_0x14ae01[_0x375579(0x4e7)](),_0x14ae01['font']=_0x375579(0x396);const _0x5c6671=_0x14ae01['measureText'](_0x434790)[_0x375579(0x43a)],_0x3a6ca7=Math[_0x375579(0x52c)](_0x5c6671+0x2*Me,ct);Si(_0x14ae01,{'height':de,'radius':0x4,'width':_0x3a6ca7,'fill':_0x38ae3,'evented':!0x1}),_0x14ae01['fillStyle']=_0x375579(0x3ae);const _0x2f516f=Me,_0x1f4761=de-di,_0x4286fe=ct-0x2*Me;if(_0x5c6671>_0x4286fe){let _0x29a026='',_0x2b5f49=0x0;for(const _0xb87d89 of _0x434790){const _0xb8b063=_0x14ae01[_0x375579(0x51e)](_0xb87d89)[_0x375579(0x43a)];if(_0x2b5f49+_0xb8b063<=_0x4286fe-_0x14ae01[_0x375579(0x51e)](_0x375579(0x385))[_0x375579(0x43a)])_0x29a026+=_0xb87d89,_0x2b5f49+=_0xb8b063;else{_0x29a026+=_0x375579(0x385);break;}}_0x14ae01['fillText'](_0x29a026,_0x2f516f,_0x1f4761);}else _0x14ae01[_0x375579(0x3ea)](_0x434790,_0x2f516f,_0x1f4761);_0x14ae01[_0x375579(0x327)]();}[_0x4aaaf0(0x392)](_0x113c98){const _0x261f60=_0x4aaaf0;Oe[_0x261f60(0x5a5)](_0x113c98,this);}}const Ae=_0x4aaaf0(0x458),vi='collab-text-range-',mi=_0x4aaaf0(0x2b6),le=0x6,gi=1.5,Le=0x4,fi=1.5,Ii=_0x4aaaf0(0x39c);class lt{constructor(_0x1cc02a,_0x2e1ac7,_0x202f08,_0x862165){const _0x32a8c2=_0x4aaaf0;u(this,_0x32a8c2(0x225),[]),u(this,_0x32a8c2(0x2ce),null),u(this,'_textBubble',null),u(this,_0x32a8c2(0x44b),null),u(this,_0x32a8c2(0x43e),null),u(this,_0x32a8c2(0x3d8),null),(this[_0x32a8c2(0x3ee)]=_0x1cc02a,this[_0x32a8c2(0x293)]=_0x2e1ac7,this['_docSkeleton']=_0x202f08,this[_0x32a8c2(0x5c3)]=_0x862165,this[_0x32a8c2(0x245)]());}set[_0x4aaaf0(0x365)](_0x5d00fb){const _0x42d97d=_0x4aaaf0;_0x5d00fb?(this[_0x42d97d(0x44b)]&&this[_0x42d97d(0x44b)][_0x42d97d(0x34c)](),this['_textBubble']&&this[_0x42d97d(0x40f)][_0x42d97d(0x4c5)]()):(this[_0x42d97d(0x44b)]&&this[_0x42d97d(0x44b)][_0x42d97d(0x4c5)](),this[_0x42d97d(0x40f)]&&this[_0x42d97d(0x40f)][_0x42d97d(0x34c)]());}[_0x4aaaf0(0x342)](){const _0xeb8960=_0x4aaaf0;for(const _0x3ee8fb of this[_0xeb8960(0x225)])_0x3ee8fb['dispose']();this[_0xeb8960(0x40f)]&&this[_0xeb8960(0x40f)][_0xeb8960(0x342)](),this['_anchorDot']&&this[_0xeb8960(0x44b)][_0xeb8960(0x342)](),this['_anchor']&&this[_0xeb8960(0x2ce)][_0xeb8960(0x342)](),this['_eventUnsubscribe']&&this[_0xeb8960(0x3d8)]();}[_0x4aaaf0(0x245)](){const _0x1ac95c=_0x4aaaf0;var _0x363b8b;const {_docSkeleton:_0x1420d2,_document:_0x3cd7d4}=this,{color:_0x495d52,name:_0x32472f,ranges:_0x44d57e}=this[_0x1ac95c(0x3ee)],_0x9e47bf=_0x3cd7d4[_0x1ac95c(0x2d8)](),{docsLeft:_0x1651c4,docsTop:_0x28944c}=_0x9e47bf,_0x5a3cea=new N[(_0x1ac95c(0x4f2))](_0x9e47bf,_0x1420d2);for(const {startOffset:_0x3c217b,endOffset:_0x428204,rangeType:_0x143810,segmentId:_0x17a981,segmentPage:_0x1bd319,collapsed:_0x3c361d,isActive:_0x22382d}of _0x44d57e){const _0x1317fb=_0x1420d2['findNodePositionByCharIndex'](_0x3c217b,!0x0,_0x17a981,_0x1bd319);let _0x565d62=_0x1420d2[_0x1ac95c(0x2f1)](_0x428204,!0x0,_0x17a981,_0x1bd319);if(_0x565d62==null&&(_0x565d62=_0x1420d2['findNodePositionByCharIndex'](_0x428204-0x1,!0x1,_0x17a981,_0x1bd319)),_0x22382d){const {contentBoxPointGroup:_0x504237}=_0x5a3cea[_0x1ac95c(0x384)](_0x565d62,_0x565d62);if(_0x504237[_0x1ac95c(0x31a)]===0x0)continue;this[_0x1ac95c(0x3c9)](_0x495d52,_0x504237,_0x1651c4,_0x28944c,_0x32472f),this[_0x1ac95c(0x3d8)]=this[_0x1ac95c(0x4df)]();}if(!_0x3c361d&&_0x1317fb&&_0x565d62){if(_0x143810===a[_0x1ac95c(0x353)]['RECT']){const _0x488433=new N[(_0x1ac95c(0x4c8))](_0x9e47bf,_0x1420d2),{pointGroup:_0x1f5535}=(_0x363b8b=_0x488433['getRangePointData'](_0x1317fb,_0x565d62))!=null?_0x363b8b:{};if(_0x1f5535==null||_0x1f5535[_0x1ac95c(0x31a)]===0x0)continue;this[_0x1ac95c(0x4e6)](_0x495d52,_0x1f5535,_0x1651c4,_0x28944c);}else{const {borderBoxPointGroup:_0x15392a}=_0x5a3cea['getRangePointData'](_0x1317fb,_0x565d62);if(_0x15392a[_0x1ac95c(0x31a)]===0x0)continue;this['_drawTextRange'](_0x495d52,_0x15392a,_0x1651c4,_0x28944c);}}}}[_0x4aaaf0(0x3c9)](_0x21795c,_0x4262e7,_0x582230,_0x308403,_0x3fdcbc){const _0x3353f5=_0x4aaaf0,_0x7c8238=this['_getAnchorBounding'](_0x4262e7),{left:_0x2bda45,top:_0x46ac00,height:_0x450b58}=_0x7c8238,_0x5a6a8c=this[_0x3353f5(0x59f)](),_0x53dfb6=fi/_0x5a6a8c,_0x540df4=new O[(_0x3353f5(0x35a))](Ae+a['Tools'][_0x3353f5(0x1c9)](le),{'left':_0x2bda45+_0x582230-_0x53dfb6,'top':_0x46ac00+_0x308403,'height':_0x450b58,'width':gi,'fill':_0x21795c||O[_0x3353f5(0x390)](a['COLORS']['black'],0x0),'strokeWidth':_0x53dfb6,'stroke':Ii,'evented':!0x0});this[_0x3353f5(0x2ce)]=_0x540df4,this[_0x3353f5(0x293)][_0x3353f5(0x32d)](_0x540df4,N[_0x3353f5(0x34a)]);const _0x29b435=new O[(_0x3353f5(0x35a))](Ae+a[_0x3353f5(0x5a8)]['generateRandomId'](le),{'left':_0x2bda45+_0x582230-_0x53dfb6,'top':_0x46ac00+_0x308403-Le/0x2,'height':Le,'width':Le,'fill':_0x21795c||O[_0x3353f5(0x390)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x21795c||O['getColor'](a[_0x3353f5(0x418)][_0x3353f5(0x2ca)],0x0),'evented':!0x1});this[_0x3353f5(0x44b)]=_0x29b435,this['_scene'][_0x3353f5(0x32d)](_0x29b435,N[_0x3353f5(0x34a)]);const _0x28ca99=new Oe(Ae+a[_0x3353f5(0x5a8)][_0x3353f5(0x1c9)](le),{'left':_0x2bda45+_0x582230-_0x53dfb6,'top':_0x46ac00+_0x308403-de,'text':_0x3fdcbc,'color':_0x21795c});this[_0x3353f5(0x40f)]=_0x28ca99,this[_0x3353f5(0x293)][_0x3353f5(0x32d)](_0x28ca99,N['TEXT_RANGE_LAYER_INDEX']),this[_0x3353f5(0x365)]=!0x1;}[_0x4aaaf0(0x4df)](){const _0x161209=_0x4aaaf0,_0x1905ee=this[_0x161209(0x2ce)]['onPointerEnter$'][_0x161209(0x1d9)](()=>{this['_hover']=!0x0;}),_0x13e055=this[_0x161209(0x2ce)][_0x161209(0x4bd)][_0x161209(0x1d9)](()=>{const _0x2f89d2=_0x161209;this[_0x2f89d2(0x43e)]&&clearTimeout(this[_0x2f89d2(0x43e)]),this['_hideTimer']=setTimeout(()=>{const _0x3ccacb=_0x2f89d2;this[_0x3ccacb(0x365)]=!0x1;},0x7d0);});return()=>{const _0x1bd373=_0x161209;_0x1905ee['unsubscribe'](),_0x13e055[_0x1bd373(0x4ed)]();};}[_0x4aaaf0(0x5ce)](_0x3d471e,_0x4bfd2c,_0x342dc5,_0x350fe2){const _0x1e6b00=_0x4aaaf0,_0x8a0f1f=new a[(_0x1e6b00(0x394))](_0x3d471e)[_0x1e6b00(0x1e1)](0.2)['toRgbString'](),_0x11f178=new O[(_0x1e6b00(0x2e8))](vi+a['Tools'][_0x1e6b00(0x1c9)](le),{'pointsGroup':_0x4bfd2c,'fill':_0x8a0f1f||O[_0x1e6b00(0x390)](a[_0x1e6b00(0x418)]['black'],0.2),'left':_0x342dc5,'top':_0x350fe2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1e6b00(0x4ce)](_0x11f178),this['_scene']['addObject'](_0x11f178,N['TEXT_RANGE_LAYER_INDEX']);}[_0x4aaaf0(0x4e6)](_0xf490a7,_0x406408,_0x17afbe,_0x14c345){const _0x4f00d8=_0x4aaaf0,_0x592b16=new a[(_0x4f00d8(0x394))](_0xf490a7)[_0x4f00d8(0x1e1)](0.2)[_0x4f00d8(0x2c2)](),_0x193623=new O['RegularPolygon'](mi+a['Tools'][_0x4f00d8(0x1c9)](le),{'pointsGroup':_0x406408,'fill':_0x592b16||O[_0x4f00d8(0x390)](a[_0x4f00d8(0x418)][_0x4f00d8(0x2ca)],0.2),'left':_0x17afbe,'top':_0x14c345,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f00d8(0x225)]['push'](_0x193623),this['_scene'][_0x4f00d8(0x32d)](_0x193623,N[_0x4f00d8(0x34a)]);}[_0x4aaaf0(0x46b)](_0x102c50){const _0x460e31=_0x102c50[0x0],_0x5d59f5=_0x460e31[0x0],_0x473d38=_0x460e31[0x2],{x:_0x30ab32,y:_0x2a764a}=_0x5d59f5,{x:_0x32a421,y:_0x44565b}=_0x473d38;return{'left':_0x30ab32,'top':_0x2a764a,'width':_0x32a421-_0x30ab32,'height':_0x44565b-_0x2a764a};}[_0x4aaaf0(0x59f)](){const _0x2c8875=_0x4aaaf0,{scaleX:_0x26c010,scaleY:_0x14d19e}=this[_0x2c8875(0x293)]['getAncestorScale']();return Math['max'](_0x26c010,_0x14d19e);}}var pi=Object['defineProperty'],Ci=Object[_0x4aaaf0(0x28b)],Ei=(_0x33d311,_0x85ac0d,_0x6cc3df,_0x5b3ae2)=>{const _0x36cb15=_0x4aaaf0;for(var _0xbad9ef=_0x5b3ae2>0x1?void 0x0:_0x5b3ae2?Ci(_0x85ac0d,_0x6cc3df):_0x85ac0d,_0x41f100=_0x33d311[_0x36cb15(0x31a)]-0x1,_0x3034ca;_0x41f100>=0x0;_0x41f100--)(_0x3034ca=_0x33d311[_0x41f100])&&(_0xbad9ef=(_0x5b3ae2?_0x3034ca(_0x85ac0d,_0x6cc3df,_0xbad9ef):_0x3034ca(_0xbad9ef))||_0xbad9ef);return _0x5b3ae2&&_0xbad9ef&&pi(_0x85ac0d,_0x6cc3df,_0xbad9ef),_0xbad9ef;},ve=(_0x2c62e2,_0x3edce0)=>(_0x19fcdc,_0x32668c)=>_0x3edce0(_0x19fcdc,_0x32668c,_0x2c62e2);let Be=class extends a[_0x4aaaf0(0x275)]{constructor(_0x1aa164,_0x3a8b6c,_0x132e81,_0x3a9c2e,_0x241cd3){const _0x9cc77a=_0x4aaaf0;super(),u(this,_0x9cc77a(0x45b),[]),u(this,_0x9cc77a(0x301),[]),(this[_0x9cc77a(0x4e2)]=_0x1aa164,this['_docSkeletonManagerService']=_0x3a8b6c,this[_0x9cc77a(0x58d)]=_0x132e81,this['_commandService']=_0x3a9c2e,this[_0x9cc77a(0x330)]=_0x241cd3,this[_0x9cc77a(0x33d)]());}[_0x4aaaf0(0x33d)](){const _0x589203=_0x4aaaf0,_0x5f5bcf=this[_0x589203(0x4e2)][_0x589203(0x22c)],_0x449f07=this[_0x589203(0x50a)];this['disposeWithMe'](v['combineLatest']([this[_0x589203(0x58d)][_0x589203(0x355)](_0x5f5bcf),this['_themeService'][_0x589203(0x54e)]])[_0x589203(0x2b0)](E[_0x589203(0x263)](([_0x567c6a,_0x1dd5ca])=>({'skeleton':_0x449f07[_0x589203(0x213)](),'cursors':[..._0x567c6a[_0x589203(0x4ca)]()][_0x589203(0x534)](_0x21173c=>({..._0x21173c,'color':_0x1dd5ca[_0x21173c[_0x589203(0x3b4)]]}))})))[_0x589203(0x236)](_0x17ad34=>{if(this['_removeCollabCursors'](),_0x17ad34){const {skeleton:_0x38d7e5,cursors:_0x9eb196}=_0x17ad34;this['_updateCollabCursors'](_0x38d7e5,_0x9eb196);}})),this[_0x589203(0x5c6)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x1daa3c,_0x3e6cfc){const _0x24b514=_0x4aaaf0,{scene:_0x3fca04,mainComponent:_0x5b68bc}=this[_0x24b514(0x4e2)],_0x2cd873=_0x3e6cfc[_0x24b514(0x263)](_0x29b321=>new lt(_0x29b321,_0x3fca04,_0x1daa3c,_0x5b68bc));this['_cursorShapes']=_0x2cd873,this['_cursors']=_0x3e6cfc;}[_0x4aaaf0(0x1f4)](){const _0x39e592=_0x4aaaf0;this[_0x39e592(0x468)]();const {scene:_0x103515,mainComponent:_0x2fa967}=this[_0x39e592(0x4e2)],_0x37db87=this['_docSkeletonManagerService']['getSkeleton'](),_0xf71bd2=this[_0x39e592(0x301)]['map'](_0x5ef126=>new lt(_0x5ef126,_0x103515,_0x37db87,_0x2fa967));this[_0x39e592(0x45b)]=_0xf71bd2;}[_0x4aaaf0(0x468)](){const _0x3df0f1=_0x4aaaf0;this[_0x3df0f1(0x45b)][_0x3df0f1(0x1d6)](_0x27f80e=>_0x27f80e[_0x3df0f1(0x342)]()),this[_0x3df0f1(0x45b)]=[];}[_0x4aaaf0(0x54f)](){const _0xb29c6=_0x4aaaf0,_0x46e559=[N[_0xb29c6(0x469)]['id']];this['disposeWithMe'](this[_0xb29c6(0x310)]['onCommandExecuted'](_0x5e8d01=>{const _0x379399=_0xb29c6;_0x46e559[_0x379399(0x1e0)](_0x5e8d01['id'])&&_0x5e8d01[_0x379399(0x348)][_0x379399(0x22c)]===this[_0x379399(0x4e2)][_0x379399(0x22c)]&&this['_refreshCollabCursors']();}));}[_0x4aaaf0(0x5c6)](){const _0x5578c4=_0x4aaaf0;this[_0x5578c4(0x367)](a[_0x5578c4(0x3b5)](this['_context']['engine']['onTransformChange$'])['pipe'](E[_0x5578c4(0x36d)](_0x30b242=>_0x30b242[_0x5578c4(0x4aa)]===O[_0x5578c4(0x550)][_0x5578c4(0x3b8)]),E[_0x5578c4(0x1c6)](0x10))[_0x5578c4(0x236)](()=>{const _0xfc8b92=_0x5578c4;this[_0xfc8b92(0x1f4)]();}));}};Be=Ei([ve(0x1,a[_0x4aaaf0(0x1b2)](ne[_0x4aaaf0(0x511)])),ve(0x2,a['Inject'](oe)),ve(0x3,a[_0x4aaaf0(0x5df)]),ve(0x4,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1c2)]))],Be);const bi=0x1,Ti=1.5;class wt extends O[_0x4aaaf0(0x1fe)]{constructor(_0x447de2,_0x539adc){const _0x26e841=_0x4aaaf0;super(_0x447de2,_0x539adc),u(this,_0x26e841(0x5a3)),u(this,_0x26e841(0x47f),!0x1),u(this,_0x26e841(0x52b)),u(this,_0x26e841(0x248),''),u(this,_0x26e841(0x2d0),_0x26e841(0x314)),u(this,'_backgroundColor'),(_0x539adc&&this[_0x26e841(0x59d)](_0x539adc),this[_0x26e841(0x333)]['subscribeEvent'](()=>this[_0x26e841(0x59d)]({'hovered':!0x0})),this[_0x26e841(0x4bd)][_0x26e841(0x1d9)](()=>this[_0x26e841(0x59d)]({'hovered':!0x1})));}[_0x4aaaf0(0x59d)](_0xd91d65){const _0x3c199d=_0x4aaaf0;var _0x129dae,_0x1ecf53,_0x4a5ec7,_0x1f79d4,_0x279595,_0xf5d7d;this[_0x3c199d(0x5a3)]=(_0x129dae=_0xd91d65['color'])!=null?_0x129dae:this['_color'],this['_hovered']=(_0x1ecf53=_0xd91d65[_0x3c199d(0x5b1)])!=null?_0x1ecf53:this[_0x3c199d(0x47f)],this[_0x3c199d(0x52b)]=(_0x4a5ec7=_0xd91d65[_0x3c199d(0x325)])!=null?_0x4a5ec7:this[_0x3c199d(0x52b)],this[_0x3c199d(0x248)]=(_0x1f79d4=_0xd91d65[_0x3c199d(0x2b1)])!=null?_0x1f79d4:this['_name'],this['_labelPosition']=(_0x279595=_0xd91d65[_0x3c199d(0x455)])!=null?_0x279595:this[_0x3c199d(0x2d0)],this[_0x3c199d(0x228)]=(_0xf5d7d=_0xd91d65[_0x3c199d(0x55b)])!=null?_0xf5d7d:this['_backgroundColor'],this['transformByState']({'width':_0xd91d65['width'],'height':_0xd91d65[_0x3c199d(0x1ac)]});}[_0x4aaaf0(0x1fc)](_0x1c30fa){const _0xbe5578=_0x4aaaf0,{row:_0xc66ad0,column:_0x30d818}=_0x1c30fa;if(_0xc66ad0>=this[_0xbe5578(0x52b)][_0xbe5578(0x453)]&&_0xc66ad0<=this[_0xbe5578(0x52b)][_0xbe5578(0x533)]&&_0x30d818>=this['_range'][_0xbe5578(0x531)]&&_0x30d818<=this[_0xbe5578(0x52b)][_0xbe5578(0x1c3)]){this[_0xbe5578(0x59d)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x525cc3){return!0x1;}[_0x4aaaf0(0x392)](_0x5219b6){const _0x26b47c=_0x4aaaf0;O[_0x26b47c(0x35a)]['drawWith'](_0x5219b6,{'width':this[_0x26b47c(0x43a)],'height':this['height'],'strokeWidth':Ti,'stroke':this[_0x26b47c(0x5a3)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x26b47c(0x47f)]&&(_0x5219b6[_0x26b47c(0x4e7)](),_0x5219b6[_0x26b47c(0x343)](0x1,0x0,0x0,0x1,this[_0x26b47c(0x43a)],this[_0x26b47c(0x2d0)]==='bottom'?0x0:-de),Oe['drawWith'](_0x5219b6,{'text':this['_name'],'color':this[_0x26b47c(0x5a3)]}),_0x5219b6[_0x26b47c(0x327)]());}}var Ri=Object['defineProperty'],Oi=Object[_0x4aaaf0(0x28b)],Di=(_0x451d84,_0x1b028f,_0x247994,_0x330b32)=>{const _0x26409e=_0x4aaaf0;for(var _0x15a71d=_0x330b32>0x1?void 0x0:_0x330b32?Oi(_0x1b028f,_0x247994):_0x1b028f,_0x167857=_0x451d84[_0x26409e(0x31a)]-0x1,_0xbc9100;_0x167857>=0x0;_0x167857--)(_0xbc9100=_0x451d84[_0x167857])&&(_0x15a71d=(_0x330b32?_0xbc9100(_0x1b028f,_0x247994,_0x15a71d):_0xbc9100(_0x15a71d))||_0x15a71d);return _0x330b32&&_0x15a71d&&Ri(_0x1b028f,_0x247994,_0x15a71d),_0x15a71d;},$e=(_0x41526a,_0x37a82b)=>(_0xdc9cb8,_0x1a676f)=>_0x37a82b(_0xdc9cb8,_0x1a676f,_0x41526a);const yi=0x1389;let Ve=class extends a[_0x4aaaf0(0x275)]{constructor(_0x469d94,_0xa943c8,_0x27bcf0,_0xdb710a){const _0x405355=_0x4aaaf0;super(),u(this,_0x405355(0x301),new Set()),u(this,_0x405355(0x1fb),null),(this[_0x405355(0x4e2)]=_0x469d94,this[_0x405355(0x582)]=_0xa943c8,this[_0x405355(0x58d)]=_0x27bcf0,this['_themeService']=_0xdb710a,this[_0x405355(0x33d)]());}[_0x4aaaf0(0x33d)](){const _0x5ef63c=_0x4aaaf0;this[_0x5ef63c(0x582)][_0x5ef63c(0x5c9)][_0x5ef63c(0x2b0)](E[_0x5ef63c(0x4b2)](this['dispose$']),E['switchMap'](_0x7a213f=>{const _0x382508=_0x5ef63c;if(_0x7a213f){const _0x2235f2=_0x7a213f[_0x382508(0x52d)];return v[_0x382508(0x1b4)](this[_0x382508(0x58d)][_0x382508(0x355)](this[_0x382508(0x4e2)][_0x382508(0x22c)]),this[_0x382508(0x330)][_0x382508(0x54e)])[_0x382508(0x2b0)](E['map'](([_0x2b263a,_0x495b2d])=>{const _0xac5677=_0x382508,_0x8cc173=new Map();return _0x2b263a[_0xac5677(0x1d6)]((_0x1d1913,_0x5f5df2)=>{const _0x17238f=_0xac5677;if(_0x1d1913[_0x17238f(0x388)]===_0x2235f2){const _0x47e1f2={..._0x1d1913};_0x47e1f2[_0x17238f(0x3b4)]=_0x495b2d[_0x1d1913[_0x17238f(0x3b4)]],_0x8cc173[_0x17238f(0x4af)](_0x5f5df2,_0x47e1f2);}}),{'skeleton':_0x7a213f,'cursors':_0x8cc173};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x5ef63c(0x236)](({skeleton:_0x46d718,cursors:_0x1953ed})=>{const _0x59d41e=_0x5ef63c;this[_0x59d41e(0x468)](),_0x46d718&&this['_updateCollabCursors'](_0x46d718,_0x1953ed);}),this[_0x5ef63c(0x582)][_0x5ef63c(0x5c9)][_0x5ef63c(0x236)](_0x1e423c=>{const _0x4c40bc=_0x5ef63c;if(_0x1e423c==null)return;const {skeleton:_0x4a67b2}=_0x1e423c,{scene:_0x336c47}=this['_context'];_0x336c47['onPointerMove$']['subscribeEvent'](a[_0x4c40bc(0x54d)](_0x2dfd2a=>{const _0x2e871c=_0x4c40bc;var _0x213347,_0x57e16a;const {offsetX:_0x980b7a,offsetY:_0x347dbf}=_0x2dfd2a,{x:_0xd8a146,y:_0x3857bb}=_0x336c47[_0x2e871c(0x5ad)](O[_0x2e871c(0x473)]['FromArray']([_0x980b7a,_0x347dbf])),{scaleX:_0x3fa620,scaleY:_0x4e05c0}=_0x336c47[_0x2e871c(0x1de)](),_0x4bea6a=_0x336c47['getViewport'](ie['VIEWPORT_KEY'][_0x2e871c(0x1b8)]),_0x1cd3e1=_0x336c47[_0x2e871c(0x27c)](O[_0x2e871c(0x473)]['FromArray']([_0xd8a146,_0x3857bb]),_0x4bea6a),_0x174d93=_0x4a67b2['getCellPositionByOffset'](_0x980b7a,_0x347dbf,_0x3fa620,_0x4e05c0,_0x1cd3e1);((_0x213347=this[_0x2e871c(0x1fb)])==null?void 0x0:_0x213347[_0x2e871c(0x2f2)])===_0x174d93['column']&&((_0x57e16a=this[_0x2e871c(0x1fb)])==null?void 0x0:_0x57e16a[_0x2e871c(0x1db)])===_0x174d93[_0x2e871c(0x1db)]||this[_0x2e871c(0x301)][_0x2e871c(0x1d6)](_0x187b09=>{const _0x473209=_0x2e871c;_0x187b09[_0x473209(0x1fc)](_0x174d93);});},0x64));});}[_0x4aaaf0(0x55e)](_0x55374e,_0x31dc3e){const _0x351e0c=_0x4aaaf0;var _0xc0aae2;const _0x2f4ca5=(_0xc0aae2=this['_sheetSkeletonManagerService'][_0x351e0c(0x57a)]())==null?void 0x0:_0xc0aae2[_0x351e0c(0x43b)];if(!_0x2f4ca5)return;const _0x2a318f=this[_0x351e0c(0x1e8)]();if(!_0x2a318f)return;this[_0x351e0c(0x301)]['forEach'](_0x43f7a4=>{const _0x1d0559=_0x351e0c;_0x43f7a4[_0x1d0559(0x3fc)]();});const {scene:_0x445288}=_0x2a318f,_0x1e672f=Ui(Array[_0x351e0c(0x36c)](_0x31dc3e[_0x351e0c(0x4ca)]()))['map'](_0x516f29=>{const _0x4ed9b3=_0x351e0c,{color:_0x17fbcc,range:_0x1d79c7,name:_0x20f6d0,selection:_0x4b1c28,sheetID:_0x42e40e}=_0x516f29,{startColumn:_0x21c32d,startRow:_0x26978f,endColumn:_0x4c87fe,endRow:_0x4b5cef}=_0x1d79c7,_0x1355b0=ie[_0x4ed9b3(0x1c0)](_0x26978f,_0x21c32d,_0x445288,_0x2f4ca5),_0x8bf623=ie[_0x4ed9b3(0x1c0)](_0x4b5cef,_0x4c87fe,_0x445288,_0x2f4ca5),{columnHeaderHeightAndMarginTop:_0x12596b}=_0x2f4ca5,{startX:_0x3409ca,startY:_0x1df6a5}=_0x1355b0,{endX:_0x1d5cf0,endY:_0x58833f}=_0x8bf623,_0xc88b0=_0x1d5cf0-_0x3409ca,_0x18bc2f=_0x58833f-_0x1df6a5,_0x5d8751={'labelPosition':_0x1df6a5-_0x12596b>=de?_0x4ed9b3(0x314):'bottom','sheetID':_0x42e40e,'range':_0x1d79c7,'color':_0x17fbcc,'name':_0x20f6d0,'selection':_0x4b1c28,'left':_0x3409ca,'top':_0x1df6a5,'width':_0xc88b0,'height':_0x18bc2f,'evented':!0x1,'zIndex':yi};return new wt(_0x20f6d0,_0x5d8751);});_0x445288['addObjects'](_0x1e672f,bi),this[_0x351e0c(0x301)]=new Set(_0x1e672f);}[_0x4aaaf0(0x468)](){const _0x14340d=_0x4aaaf0;var _0x36b2d1;(_0x36b2d1=this[_0x14340d(0x301)])==null||_0x36b2d1['forEach'](_0x2859fc=>_0x2859fc[_0x14340d(0x342)]());}[_0x4aaaf0(0x1e8)](){const _0x4349a2=_0x4aaaf0;return ie[_0x4349a2(0x379)](this['_context'][_0x4349a2(0x532)],this['_context']);}};Ve=Di([$e(0x1,a[_0x4aaaf0(0x1b2)](ie[_0x4aaaf0(0x449)])),$e(0x2,a[_0x4aaaf0(0x1b2)](oe)),$e(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1c2)]))],Ve);function Ui(_0xf6fc47){const _0x329c2f=_0x4aaaf0,_0x12db33=new Map();return _0xf6fc47[_0x329c2f(0x1d6)](_0x3a2495=>{const _0x518a5f=_0x329c2f;if(_0x12db33[_0x518a5f(0x2cc)](_0x3a2495[_0x518a5f(0x4ef)])){const _0x526e9b=_0x12db33[_0x518a5f(0x439)](_0x3a2495['selection']);_0x526e9b[_0x518a5f(0x2b1)]+=',\x20'+_0x3a2495['name'];}else _0x12db33[_0x518a5f(0x4af)](_0x3a2495[_0x518a5f(0x4ef)],_0x3a2495);}),Array[_0x329c2f(0x36c)](_0x12db33['values']());}var M=function(){const _0x65fd5d=_0x4aaaf0;return M=Object[_0x65fd5d(0x4ea)]||function(_0xb24d0c){const _0x2fb3bf=_0x65fd5d;for(var _0x2e77be,_0x38fe4d=0x1,_0x2ca08c=arguments['length'];_0x38fe4d<_0x2ca08c;_0x38fe4d++){_0x2e77be=arguments[_0x38fe4d];for(var _0x5d34c4 in _0x2e77be)Object['prototype'][_0x2fb3bf(0x519)][_0x2fb3bf(0x48a)](_0x2e77be,_0x5d34c4)&&(_0xb24d0c[_0x5d34c4]=_0x2e77be[_0x5d34c4]);}return _0xb24d0c;},M[_0x65fd5d(0x461)](this,arguments);},Pi=function(_0x192510,_0x52065a){const _0x4d6f31=_0x4aaaf0;var _0x4def9a={};for(var _0x9fda7 in _0x192510)Object['prototype'][_0x4d6f31(0x519)][_0x4d6f31(0x48a)](_0x192510,_0x9fda7)&&_0x52065a[_0x4d6f31(0x501)](_0x9fda7)<0x0&&(_0x4def9a[_0x9fda7]=_0x192510[_0x9fda7]);if(_0x192510!=null&&typeof Object[_0x4d6f31(0x391)]==_0x4d6f31(0x280)){for(var _0x208b1b=0x0,_0x9fda7=Object[_0x4d6f31(0x391)](_0x192510);_0x208b1b<_0x9fda7['length'];_0x208b1b++)_0x52065a[_0x4d6f31(0x501)](_0x9fda7[_0x208b1b])<0x0&&Object[_0x4d6f31(0x38f)][_0x4d6f31(0x513)][_0x4d6f31(0x48a)](_0x192510,_0x9fda7[_0x208b1b])&&(_0x4def9a[_0x9fda7[_0x208b1b]]=_0x192510[_0x9fda7[_0x208b1b]]);}return _0x4def9a;},Je=y[_0x4aaaf0(0x4db)](function(_0x2658e6,_0x572e4){const _0x5d9b59=_0x4aaaf0;var _0x384bc0=_0x2658e6[_0x5d9b59(0x36b)],_0x12b784=_0x2658e6['id'],_0x1c6ca1=_0x2658e6[_0x5d9b59(0x382)],_0x2598de=_0x2658e6[_0x5d9b59(0x4e4)],_0x459e00=Pi(_0x2658e6,[_0x5d9b59(0x36b),'id','className','extend']),_0x51a60d='univerjs-icon\x20univerjs-icon-'[_0x5d9b59(0x328)](_0x12b784,'\x20')[_0x5d9b59(0x328)](_0x1c6ca1||'')['trim'](),_0x25c5d5=y[_0x5d9b59(0x2c7)]('_'[_0x5d9b59(0x328)](Mi()));return Nt(_0x384bc0,''[_0x5d9b59(0x328)](_0x12b784),{'defIds':_0x384bc0[_0x5d9b59(0x526)],'idSuffix':_0x25c5d5[_0x5d9b59(0x204)]},M({'ref':_0x572e4,'className':_0x51a60d},_0x459e00),_0x2598de);});function Nt(_0x399c50,_0x47f8e7,_0x276987,_0xbbbb30,_0x403ceb){const _0x3c4cf5=_0x4aaaf0;return y[_0x3c4cf5(0x3e0)](_0x399c50[_0x3c4cf5(0x1e7)],M(M({'key':_0x47f8e7},wi(_0x399c50,_0x276987,_0x403ceb)),_0xbbbb30),(Ni(_0x399c50,_0x276987)[_0x3c4cf5(0x59c)]||[])[_0x3c4cf5(0x263)](function(_0x3a41f0,_0x23f43c){const _0x291fff=_0x3c4cf5;return Nt(_0x3a41f0,''[_0x291fff(0x328)](_0x47f8e7,'-')['concat'](_0x399c50[_0x291fff(0x1e7)],'-')[_0x291fff(0x328)](_0x23f43c),_0x276987,void 0x0,_0x403ceb);}));}function wi(_0x468e52,_0x25ec27,_0x21bc05){const _0x4323b9=_0x4aaaf0;var _0x4dbbf0=M({},_0x468e52[_0x4323b9(0x3d9)]);_0x21bc05!=null&&_0x21bc05[_0x4323b9(0x205)]&&_0x4dbbf0[_0x4323b9(0x444)]==='colorChannel1'&&(_0x4dbbf0[_0x4323b9(0x444)]=_0x21bc05[_0x4323b9(0x205)]);var _0x431667=_0x25ec27[_0x4323b9(0x526)];return!_0x431667||_0x431667[_0x4323b9(0x31a)]===0x0||(_0x468e52['tag']===_0x4323b9(0x21c)&&_0x4dbbf0[_0x4323b9(0x56f)]&&(_0x4dbbf0['xlink:href']=_0x4dbbf0['xlink:href']+_0x25ec27[_0x4323b9(0x462)]),Object[_0x4323b9(0x1af)](_0x4dbbf0)[_0x4323b9(0x1d6)](function(_0x3e3dac){const _0x58a58c=_0x4323b9;var _0x535cec=_0x3e3dac[0x0],_0x2e8d6d=_0x3e3dac[0x1];typeof _0x2e8d6d==_0x58a58c(0x31c)&&(_0x4dbbf0[_0x535cec]=_0x2e8d6d[_0x58a58c(0x32c)](/url\(#(.*)\)/,_0x58a58c(0x27e)['concat'](_0x25ec27['idSuffix'],')')));})),_0x4dbbf0;}function Ni(_0xdaeef2,_0x4e7ba2){const _0xf863e0=_0x4aaaf0;var _0x27aec5,_0x440372=_0x4e7ba2[_0xf863e0(0x526)];return!_0x440372||_0x440372['length']===0x0?_0xdaeef2:_0xdaeef2['tag']==='defs'&&(!((_0x27aec5=_0xdaeef2[_0xf863e0(0x59c)])===null||_0x27aec5===void 0x0)&&_0x27aec5[_0xf863e0(0x31a)])?M(M({},_0xdaeef2),{'children':_0xdaeef2[_0xf863e0(0x59c)]['map'](function(_0xb7fe99){const _0x3b1d87=_0xf863e0;return typeof _0xb7fe99['attrs']['id']==_0x3b1d87(0x31c)&&_0x440372&&_0x440372[_0x3b1d87(0x501)](_0xb7fe99[_0x3b1d87(0x3d9)]['id'])>-0x1?M(M({},_0xb7fe99),{'attrs':M(M({},_0xb7fe99[_0x3b1d87(0x3d9)]),{'id':_0xb7fe99['attrs']['id']+_0x4e7ba2[_0x3b1d87(0x462)]})}):_0xb7fe99;})}):_0xdaeef2;}function Mi(){const _0x35ce3b=_0x4aaaf0;return Math['random']()[_0x35ce3b(0x222)](0x24)[_0x35ce3b(0x2dc)](0x2,0x8);}Je['displayName']='UniverIcon';var Ai={'tag':_0x4aaaf0(0x218),'attrs':{'fill':_0x4aaaf0(0x32e),'viewBox':_0x4aaaf0(0x564),'width':'1em','height':_0x4aaaf0(0x27f)},'children':[{'tag':'g','attrs':{'clipPath':_0x4aaaf0(0x227)},'children':[{'tag':'path','attrs':{'stroke':_0x4aaaf0(0x26e),'d':_0x4aaaf0(0x1cc),'strokeLinecap':'round','strokeLinejoin':_0x4aaaf0(0x2a4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4aaaf0(0x210),'attrs':{'id':_0x4aaaf0(0x332)},'children':[{'tag':_0x4aaaf0(0x1c5),'attrs':{'fill':_0x4aaaf0(0x223),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Mt=y[_0x4aaaf0(0x4db)](function(_0x530c8a,_0x2efe2a){const _0x40b776=_0x4aaaf0;return y[_0x40b776(0x3e0)](Je,Object[_0x40b776(0x4ea)]({},_0x530c8a,{'id':_0x40b776(0x3f2),'ref':_0x2efe2a,'icon':Ai}));});Mt['displayName']=_0x4aaaf0(0x35e);var Li={'tag':_0x4aaaf0(0x218),'attrs':{'fill':'none','viewBox':_0x4aaaf0(0x5bd),'width':_0x4aaaf0(0x27f),'height':_0x4aaaf0(0x27f)},'children':[{'tag':'g','attrs':{'clipPath':_0x4aaaf0(0x3f0)},'children':[{'tag':_0x4aaaf0(0x1c5),'attrs':{'stroke':_0x4aaaf0(0x26e),'d':_0x4aaaf0(0x495),'strokeLinecap':_0x4aaaf0(0x2a4),'strokeLinejoin':_0x4aaaf0(0x2a4),'strokeWidth':1.2}}]},{'tag':_0x4aaaf0(0x20b),'attrs':{},'children':[{'tag':_0x4aaaf0(0x210),'attrs':{'id':_0x4aaaf0(0x321)},'children':[{'tag':'path','attrs':{'fill':_0x4aaaf0(0x223),'d':'M0\x200H16V16H0z','transform':_0x4aaaf0(0x37e)}}]}]}],'defIds':[_0x4aaaf0(0x321)]},At=y[_0x4aaaf0(0x4db)](function(_0x390bea,_0x1d73b9){const _0x5f13bf=_0x4aaaf0;return y[_0x5f13bf(0x3e0)](Je,Object[_0x5f13bf(0x4ea)]({},_0x390bea,{'id':_0x5f13bf(0x493),'ref':_0x1d73b9,'icon':Li}));});At['displayName']=_0x4aaaf0(0x2aa);function Lt(_0x4d3130){const _0xbbaa15=_0x4aaaf0;var _0x213caa,_0x40a33e,_0x46e80c='';if(typeof _0x4d3130=='string'||typeof _0x4d3130==_0xbbaa15(0x5a6))_0x46e80c+=_0x4d3130;else{if(typeof _0x4d3130=='object'){if(Array[_0xbbaa15(0x27b)](_0x4d3130)){var _0x2f295c=_0x4d3130[_0xbbaa15(0x31a)];for(_0x213caa=0x0;_0x213caa<_0x2f295c;_0x213caa++)_0x4d3130[_0x213caa]&&(_0x40a33e=Lt(_0x4d3130[_0x213caa]))&&(_0x46e80c&&(_0x46e80c+='\x20'),_0x46e80c+=_0x40a33e);}else{for(_0x40a33e in _0x4d3130)_0x4d3130[_0x40a33e]&&(_0x46e80c&&(_0x46e80c+='\x20'),_0x46e80c+=_0x40a33e);}}}return _0x46e80c;}function $i(){const _0xf87e3a=_0x4aaaf0;for(var _0x15fa10,_0x2a9867,_0x4e1c0c=0x0,_0x53b4df='',_0x3f19f1=arguments[_0xf87e3a(0x31a)];_0x4e1c0c<_0x3f19f1;_0x4e1c0c++)(_0x15fa10=arguments[_0x4e1c0c])&&(_0x2a9867=Lt(_0x15fa10))&&(_0x53b4df&&(_0x53b4df+='\x20'),_0x53b4df+=_0x2a9867);return _0x53b4df;}const ji=_0x4aaaf0(0x5a9),Hi='univer-online-status-title',xi=_0x4aaaf0(0x500),ki='univer-online',Bi=_0x4aaaf0(0x47a),he={'onlineStatusIcon':ji,'onlineStatusTitle':Hi,'onlineStatus':xi,'online':ki,'offline':Bi};function Vi(_0xb922d2){const _0x4c41d5=_0x4aaaf0;switch(_0xb922d2){case D[_0x4c41d5(0x270)]:return'collabStatus.offline';case D[_0x4c41d5(0x572)]:return'collabStatus.conflict';case D['FETCH_MISS']:return _0x4c41d5(0x40c);case D[_0x4c41d5(0x251)]:return _0x4c41d5(0x3d2);case D[_0x4c41d5(0x261)]:case D['AWAITING_WITH_PENDING']:return _0x4c41d5(0x1ae);case D[_0x4c41d5(0x2a1)]:case D['PENDING']:return _0x4c41d5(0x23a);}}function $t(_0x1114c6){const _0x4273a6=_0x4aaaf0,{status$:_0x419e63}=_0x1114c6,_0x3d3481=A[_0x4273a6(0x5da)](_0x419e63,D[_0x4273a6(0x251)]),_0x52f51e=a['useDependency'](a['LocaleService']),_0x109761=a['useDependency'](exports[_0x4273a6(0x48f)]),_0x338d37=_0x3d3481!==D[_0x4273a6(0x270)],_0x216150=_0x52f51e['t'](Vi(_0x3d3481)),_0x23c249=$i(he[_0x4273a6(0x446)],{[he[_0x4273a6(0x320)]]:_0x338d37,[he[_0x4273a6(0x45a)]]:!_0x338d37}),_0x49354b=_0x338d37?y[_0x4273a6(0x3e0)](At,null):y['createElement'](Mt,null),_0x1864f6=y[_0x4273a6(0x48e)](()=>{const _0x477a2e=_0x4273a6;_0x338d37||_0x109761[_0x477a2e(0x22a)]();},[_0x338d37,_0x109761]);function _0x52eb88(){const _0x37bdf0=_0x4273a6;return y[_0x37bdf0(0x3e0)]('div',{'className':_0x23c249,'onClick':_0x1864f6},y['createElement']('div',{'className':he[_0x37bdf0(0x5a4)]},_0x49354b),y[_0x37bdf0(0x3e0)]('div',{'className':he['onlineStatusTitle']},_0x216150));}return _0x338d37?_0x52eb88():y[_0x4273a6(0x3e0)](J['Tooltip'],{'title':_0x52f51e['t']('collab-client.tooltip.reconnect')},_0x52eb88());}var Wi=Object['defineProperty'],Fi=Object[_0x4aaaf0(0x28b)],Gi=(_0x37f3d3,_0x298e4c,_0x3f080e,_0xbb574d)=>{const _0x3fa287=_0x4aaaf0;for(var _0xd2d701=_0xbb574d>0x1?void 0x0:_0xbb574d?Fi(_0x298e4c,_0x3f080e):_0x298e4c,_0x178faa=_0x37f3d3[_0x3fa287(0x31a)]-0x1,_0x4c7404;_0x178faa>=0x0;_0x178faa--)(_0x4c7404=_0x37f3d3[_0x178faa])&&(_0xd2d701=(_0xbb574d?_0x4c7404(_0x298e4c,_0x3f080e,_0xd2d701):_0x4c7404(_0xd2d701))||_0xd2d701);return _0xbb574d&&_0xd2d701&&Wi(_0x298e4c,_0x3f080e,_0xd2d701),_0xd2d701;},me=(_0x3e1149,_0x102235)=>(_0x21ec34,_0x549125)=>_0x102235(_0x21ec34,_0x549125,_0x3e1149);exports[_0x4aaaf0(0x1e2)]=class extends a['Disposable']{constructor(_0x5341a5,_0x5af320,_0x451944,_0x487f88){const _0x3b4ea8=_0x4aaaf0;super(),u(this,_0x3b4ea8(0x5af),new v[(_0x3b4ea8(0x442))](D['NOT_COLLAB'])),(this[_0x3b4ea8(0x46d)]=_0x5341a5,this[_0x3b4ea8(0x514)]=_0x5af320,this['_injector']=_0x451944,this[_0x3b4ea8(0x472)]=_0x487f88,this[_0x3b4ea8(0x1f7)](),this[_0x3b4ea8(0x51f)]());}[_0x4aaaf0(0x51f)](){const _0x47eef8=_0x4aaaf0;this[_0x47eef8(0x367)](this[_0x47eef8(0x46d)][_0x47eef8(0x491)][_0x47eef8(0x2b0)](v[_0x47eef8(0x3e7)](()=>{const _0x4986ac=_0x47eef8,_0x1d4e94=this[_0x4986ac(0x46d)][_0x4986ac(0x4e3)]();return _0x1d4e94?this[_0x4986ac(0x472)]['getCollabEntity$'](_0x1d4e94['getUnitId']()):v['of'](null);}),v[_0x47eef8(0x3e7)](_0x5b141c=>_0x5b141c?_0x5b141c['status$']:v['of'](D[_0x47eef8(0x251)])))['subscribe'](_0x3a60b2=>{const _0x6229a9=_0x47eef8;this[_0x6229a9(0x5af)][_0x6229a9(0x3b3)](_0x3a60b2);}));}[_0x4aaaf0(0x1f7)](){const _0x5611c1=_0x4aaaf0;this[_0x5611c1(0x367)](this[_0x5611c1(0x514)]['registerComponent'](A[_0x5611c1(0x524)][_0x5611c1(0x4c9)],()=>a[_0x5611c1(0x3f7)](Yi({'status$':this[_0x5611c1(0x5af)][_0x5611c1(0x2a7)]()}),this[_0x5611c1(0x5aa)])));}},exports[_0x4aaaf0(0x1e2)]=Gi([me(0x0,a['IUniverInstanceService']),me(0x1,A[_0x4aaaf0(0x46a)]),me(0x2,a[_0x4aaaf0(0x1b2)](a['Injector'])),me(0x3,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x265)]))],exports['DesktopCollaborationStatusDisplayController']);function Yi(_0x50206e){const {status$:_0x516af8}=_0x50206e;return function(){const _0x10d140=_0x47ba;return y[_0x10d140(0x3e0)]($t,{'status$':_0x516af8});};}const Ze=a['createIdentifier'](_0x4aaaf0(0x340));var Ki=Object[_0x4aaaf0(0x562)],Xi=Object[_0x4aaaf0(0x28b)],qi=(_0x318fdb,_0x54448a,_0x7ec55a,_0x11d511)=>{const _0x23f796=_0x4aaaf0;for(var _0x2ca9ff=_0x11d511>0x1?void 0x0:_0x11d511?Xi(_0x54448a,_0x7ec55a):_0x54448a,_0x59c9c2=_0x318fdb[_0x23f796(0x31a)]-0x1,_0x5e0cf0;_0x59c9c2>=0x0;_0x59c9c2--)(_0x5e0cf0=_0x318fdb[_0x59c9c2])&&(_0x2ca9ff=(_0x11d511?_0x5e0cf0(_0x54448a,_0x7ec55a,_0x2ca9ff):_0x5e0cf0(_0x2ca9ff))||_0x2ca9ff);return _0x11d511&&_0x2ca9ff&&Ki(_0x54448a,_0x7ec55a,_0x2ca9ff),_0x2ca9ff;},se=(_0x12a245,_0x31eb65)=>(_0x5dbb97,_0x556cf9)=>_0x31eb65(_0x5dbb97,_0x556cf9,_0x12a245);exports[_0x4aaaf0(0x295)]=class extends a[_0x4aaaf0(0x275)]{constructor(_0x2eeda9,_0xb66de5,_0x3b94c8,_0x39be7e,_0x2a21a0,_0x465386){const _0x31f0e3=_0x4aaaf0;super(),this['_urlService']=_0x2eeda9,this['_logService']=_0xb66de5,this[_0x31f0e3(0x310)]=_0x3b94c8,this[_0x31f0e3(0x4e9)]=_0x39be7e,this[_0x31f0e3(0x575)]=_0x2a21a0,_0x465386?_0x465386==null||_0x465386['whenReady']()[_0x31f0e3(0x254)](()=>this[_0x31f0e3(0x33d)]()):(this[_0x31f0e3(0x360)][_0x31f0e3(0x43f)](_0x31f0e3(0x2de),_0x31f0e3(0x23d)),this[_0x31f0e3(0x33d)]());}async[_0x4aaaf0(0x33d)](){const _0x518475=_0x4aaaf0,_0x885f8=this[_0x518475(0x470)][_0x518475(0x5a1)](_0x518475(0x532)),_0xe55d48=this[_0x518475(0x470)]['getParam'](_0x518475(0x4aa));if(!_0x885f8||!_0xe55d48){this[_0x518475(0x360)][_0x518475(0x43f)](_0x518475(0x2de),_0x518475(0x400));return;}switch(Number(_0xe55d48)){case H[_0x518475(0x4d0)]:{const _0x36b83c=await this[_0x518475(0x2c1)](_0x885f8);this['_setupSubUnitSync'](_0x36b83c);break;}case H[_0x518475(0x238)]:{await this[_0x518475(0x482)](_0x885f8);break;}default:{this[_0x518475(0x360)]['error'](_0x518475(0x2de),_0x518475(0x583));break;}}}async[_0x4aaaf0(0x59b)](_0x4f2e09){const _0x3556fd=_0x4aaaf0;await this['_updateSubUnitFromURLParams'](_0x4f2e09),_0x4f2e09['activeSheet$'][_0x3556fd(0x2b0)](v[_0x3556fd(0x4b2)](this[_0x3556fd(0x35d)]))[_0x3556fd(0x236)](_0x4a2e90=>{const _0x15122f=_0x3556fd;_0x4a2e90&&this[_0x15122f(0x485)](_0x4a2e90);}),this['_urlService'][_0x3556fd(0x3ab)]['pipe'](v[_0x3556fd(0x4b2)](this[_0x3556fd(0x35d)]))[_0x3556fd(0x236)](()=>this[_0x3556fd(0x49a)](_0x4f2e09));}[_0x4aaaf0(0x485)](_0x573f2d,_0x282b95=!0x1){const _0xd1c308=_0x4aaaf0,_0x1ba5b7=this[_0xd1c308(0x470)][_0xd1c308(0x5a1)](_0xd1c308(0x4d6));_0x573f2d[_0xd1c308(0x271)]()!==_0x1ba5b7&&this[_0xd1c308(0x470)][_0xd1c308(0x359)](_0xd1c308(0x4d6),_0x573f2d['getSheetId'](),_0x282b95);}async[_0x4aaaf0(0x49a)](_0x56b545){const _0x582830=_0x4aaaf0;var _0x245ddc;const _0x32612c=this['_urlService'][_0x582830(0x5a1)](_0x582830(0x4d6));if(!_0x32612c||!_0x56b545[_0x582830(0x5be)](_0x32612c)){const _0x2391a8=_0x56b545['getUnhiddenWorksheets']()[0x0],_0x4f9858=_0x56b545[_0x582830(0x5be)](_0x2391a8);if(!_0x4f9858)return;this[_0x582830(0x485)](_0x4f9858,!0x0),await this[_0x582830(0x310)]['executeCommand'](C[_0x582830(0x4dd)]['id'],{'unitId':_0x56b545[_0x582830(0x3e2)](),'subUnitId':_0x2391a8});return;}((_0x245ddc=_0x56b545[_0x582830(0x372)]())==null?void 0x0:_0x245ddc[_0x582830(0x271)]())!==_0x32612c&&await this['_commandService'][_0x582830(0x593)](C[_0x582830(0x4dd)]['id'],{'unitId':_0x56b545[_0x582830(0x3e2)](),'subUnitId':_0x32612c});}async['_loadSheet'](_0x950a56){const _0x44651c=_0x4aaaf0;let _0x2ae914=0x0;const _0x315ffe=await this[_0x44651c(0x4e9)][_0x44651c(0x436)](_0x950a56);return _0x315ffe&&(_0x315ffe[_0x44651c(0x1cd)]||_0x315ffe['mutations'][_0x44651c(0x31a)]!==0x0)&&(_0x2ae914=_0x315ffe[_0x44651c(0x2f7)]),_0x2ae914===0x0&&this['_logService'][_0x44651c(0x43f)]('[DataLoaderController]',_0x44651c(0x561)),this['_snapshotService'][_0x44651c(0x28c)](_0x950a56,_0x2ae914);}async[_0x4aaaf0(0x482)](_0x376e76){const _0x3558c6=_0x4aaaf0;let _0x2a98e4=0x0;const _0x127249=await this[_0x3558c6(0x4e9)][_0x3558c6(0x436)](_0x376e76);return _0x127249&&(_0x127249['awaitingChangeset']||_0x127249[_0x3558c6(0x2b7)][_0x3558c6(0x31a)]!==0x0)&&(_0x2a98e4=_0x127249['rev']),_0x2a98e4===0x0&&this[_0x3558c6(0x360)][_0x3558c6(0x43f)]('[DataLoaderController]',_0x3558c6(0x561)),this[_0x3558c6(0x575)][_0x3558c6(0x4c6)](_0x376e76,_0x2a98e4);}},exports[_0x4aaaf0(0x295)]=qi([se(0x0,Ze),se(0x1,a[_0x4aaaf0(0x1d1)]),se(0x2,a['ICommandService']),se(0x3,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),se(0x4,a['Inject'](_[_0x4aaaf0(0x3ed)])),se(0x5,a['Optional'](Xt['IRemoteInstanceService']))],exports[_0x4aaaf0(0x295)]);var zi=Object[_0x4aaaf0(0x562)],Ji=Object['getOwnPropertyDescriptor'],Zi=(_0x42183b,_0x61c70b,_0x45ec25,_0x180876)=>{const _0x5a382e=_0x4aaaf0;for(var _0x15f65e=_0x180876>0x1?void 0x0:_0x180876?Ji(_0x61c70b,_0x45ec25):_0x61c70b,_0x470215=_0x42183b[_0x5a382e(0x31a)]-0x1,_0x10443b;_0x470215>=0x0;_0x470215--)(_0x10443b=_0x42183b[_0x470215])&&(_0x15f65e=(_0x180876?_0x10443b(_0x61c70b,_0x45ec25,_0x15f65e):_0x10443b(_0x15f65e))||_0x15f65e);return _0x180876&&_0x15f65e&&zi(_0x61c70b,_0x45ec25,_0x15f65e),_0x15f65e;},ht=(_0x2a7d2a,_0x413027)=>(_0x342f51,_0x5433f7)=>_0x413027(_0x342f51,_0x5433f7,_0x2a7d2a);const Qi='DEFAULT_FILE_NAME',en=_0x4aaaf0(0x3d3);let Ce=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x1868f5,_0x44e8cd){const _0xfed1c7=_0x4aaaf0;super(),this[_0xfed1c7(0x46d)]=_0x1868f5,this[_0xfed1c7(0x428)]=_0x44e8cd,this['_init']();}[_0x4aaaf0(0x33d)](){const _0x877c4f=_0x4aaaf0;this['disposeWithMe'](this[_0x877c4f(0x46d)]['focused$'][_0x877c4f(0x236)](()=>{const _0x3d6b7e=_0x877c4f;var _0x415435;const _0x5ae94a=this[_0x3d6b7e(0x46d)]['getFocusedUnit']();let _0x3ae003=(_0x415435=this['_configService'][_0x3d6b7e(0x50b)](Qi))!=null?_0x415435:en;_0x5ae94a instanceof a['Workbook']&&(_0x3ae003=_0x5ae94a[_0x3d6b7e(0x2b1)]),document[_0x3d6b7e(0x5c8)]=_0x3ae003;}));}};Ce=Zi([ht(0x0,a[_0x4aaaf0(0x33f)]),ht(0x1,a[_0x4aaaf0(0x565)])],Ce);var tn=Object['defineProperty'],sn=Object[_0x4aaaf0(0x28b)],nn=(_0x25483d,_0xf0108,_0x17806e,_0x5a6e7f)=>{const _0x3aa12c=_0x4aaaf0;for(var _0x1ae97a=_0x5a6e7f>0x1?void 0x0:_0x5a6e7f?sn(_0xf0108,_0x17806e):_0xf0108,_0xdf6dfd=_0x25483d[_0x3aa12c(0x31a)]-0x1,_0x1ecd29;_0xdf6dfd>=0x0;_0xdf6dfd--)(_0x1ecd29=_0x25483d[_0xdf6dfd])&&(_0x1ae97a=(_0x5a6e7f?_0x1ecd29(_0xf0108,_0x17806e,_0x1ae97a):_0x1ecd29(_0x1ae97a))||_0x1ae97a);return _0x5a6e7f&&_0x1ae97a&&tn(_0xf0108,_0x17806e,_0x1ae97a),_0x1ae97a;},je=(_0x4b0c3c,_0x421bd4)=>(_0x333ae7,_0xf9b732)=>_0x421bd4(_0x333ae7,_0xf9b732,_0x4b0c3c);let Ee=class{constructor(_0x3911b9,_0x208443,_0x35c0){const _0x308b05=_0x4aaaf0;this[_0x308b05(0x428)]=_0x3911b9,this['_httpService']=_0x208443,this['localeService']=_0x35c0,this['init']();}[_0x4aaaf0(0x1d7)](){const _0x23084f=_0x4aaaf0;this[_0x23084f(0x30f)][_0x23084f(0x46f)]({'priority':0x1,'interceptor':(_0x258bbc,_0x4eefaa)=>_0x4eefaa(_0x258bbc)[_0x23084f(0x2b0)](v[_0x23084f(0x599)](async _0x20f9d9=>{const _0x113b9b=_0x23084f,_0xafd6ed=_0x20f9d9;if(_0xafd6ed['status']===0x191&&window['confirm'](this[_0x113b9b(0x4d4)]['t'](_0x113b9b(0x3fa)))){const _0x3a26e9=window[_0x113b9b(0x44c)](window[_0x113b9b(0x554)]['href']);window[_0x113b9b(0x554)][_0x113b9b(0x53d)]=this[_0x113b9b(0x1ba)]()+'?url='+_0x3a26e9;}return _0xafd6ed;}))});}[_0x4aaaf0(0x1ba)](){const _0x455dd2=_0x4aaaf0;var _0x3a3a17,_0x45c9fc;const _0x216875=this['_configService']['getConfig'](Ct),_0x40d72f=this[_0x455dd2(0x428)][_0x455dd2(0x50b)]($);return(_0x45c9fc=(_0x3a3a17=_0x40d72f==null?void 0x0:_0x40d72f['loginUrlKey'])!=null?_0x3a3a17:_0x216875)!=null?_0x45c9fc:rs;}};Ee=nn([je(0x0,a['IConfigService']),je(0x1,a[_0x4aaaf0(0x1b2)](U['HTTPService'])),je(0x2,a['Inject'](a[_0x4aaaf0(0x1f6)]))],Ee);var rn=Object[_0x4aaaf0(0x562)],on=Object['getOwnPropertyDescriptor'],an=(_0x189956,_0x5cac16,_0x14ac10,_0x1e7748)=>{for(var _0x335396=_0x1e7748>0x1?void 0x0:_0x1e7748?on(_0x5cac16,_0x14ac10):_0x5cac16,_0x490c74=_0x189956['length']-0x1,_0x59a914;_0x490c74>=0x0;_0x490c74--)(_0x59a914=_0x189956[_0x490c74])&&(_0x335396=(_0x1e7748?_0x59a914(_0x5cac16,_0x14ac10,_0x335396):_0x59a914(_0x335396))||_0x335396);return _0x1e7748&&_0x335396&&rn(_0x5cac16,_0x14ac10,_0x335396),_0x335396;},_t=(_0x44a9c9,_0x4096af)=>(_0x382d1c,_0x17ad20)=>_0x4096af(_0x382d1c,_0x17ad20,_0x44a9c9);const jt=_0x4aaaf0(0x4f6),cn=_0x4aaaf0(0x46e);exports[_0x4aaaf0(0x5dd)]=class extends a['Disposable']{constructor(_0x2bccf0,_0x1c6fb7){const _0x5456c0=_0x4aaaf0;super(),this[_0x5456c0(0x339)]=_0x2bccf0,this['_configService']=_0x1c6fb7,this[_0x5456c0(0x577)]();}['_initMergeInterceptor'](){const _0x2575fd=_0x4aaaf0,_0x1261ea=this;this['disposeWithMe'](this[_0x2575fd(0x339)][_0x2575fd(0x46f)]({'priority':0x3e7,'interceptor':U[_0x2575fd(0x309)]({'isMatch'(_0x286d63){const _0x76456d=_0x2575fd;var _0x497965;if(_0x286d63[_0x76456d(0x42b)]===_0x76456d(0x5bb)&&((_0x497965=_0x286d63[_0x76456d(0x464)])!=null&&_0x497965['body'])){const {objectID:_0x4626ef,objectType:_0xc41916}=_0x286d63['requestParams'][_0x76456d(0x3df)]||{};if(!_0x4626ef||_0xc41916===void 0x0)return!0x1;const _0x5e68c0=_0x1261ea['_getAPIPrefixPath']()+'/'+_0xc41916+_0x76456d(0x4e0)+_0x4626ef+_0x76456d(0x53c);if(_0x286d63[_0x76456d(0x56b)]===_0x5e68c0)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1e88af){const _0x322b51=_0x2575fd;var _0x4f7b22;return(_0x4f7b22=_0x1e88af[_0x322b51(0x464)])==null?void 0x0:_0x4f7b22[_0x322b51(0x3df)];},'mergeParamsToRequest'(_0x49f4d2,_0x276da0){const _0x25e3eb=_0x2575fd,_0x3ac792=_0x1261ea['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x364fe5=_0x49f4d2[_0x25e3eb(0x3ba)]((_0x585637,_0x393fd3)=>{const _0x5bde5a=_0x25e3eb,{unitID:_0x5f356a,objectID:_0x296fce,objectType:_0x3b52cc,actions:_0xd3b998}=_0x393fd3;return _0x585637[_0x5f356a]||(_0x585637[_0x5f356a]={}),_0x585637[_0x5f356a][_0x296fce]||(_0x585637[_0x5f356a][_0x296fce]={'objectID':_0x296fce,'objectType':_0x3b52cc,'actions':[]}),_0x585637[_0x5f356a][_0x296fce][_0x5bde5a(0x45c)][_0x5bde5a(0x4ce)](..._0xd3b998),_0x585637;},{}),_0x31060b=[];for(const _0x90aea7 in _0x364fe5)for(const _0x386c5e in _0x364fe5[_0x90aea7]){const {actions:_0x4924bf,objectType:_0x4c57ad}=_0x364fe5[_0x90aea7][_0x386c5e],_0x562679=[...new Set(_0x4924bf)];_0x31060b[_0x25e3eb(0x4ce)]({'unitID':_0x90aea7,'objectID':_0x386c5e,'objectType':_0x4c57ad,'actions':_0x562679});}return new U[(_0x25e3eb(0x37d))](_0x25e3eb(0x5bb),_0x3ac792,{'headers':_0x276da0['headers'],'withCredentials':_0x276da0[_0x25e3eb(0x2db)],'responseType':_0x276da0[_0x25e3eb(0x371)],'body':{'requests':_0x31060b}});}},{'distributeResult'(_0x40a325,_0xa9bc80){const _0x4e7ecd=_0x2575fd,{objectActions:_0x7b2c92}=_0x40a325;return _0xa9bc80[_0x4e7ecd(0x263)](_0x620636=>{const _0x4feb0a=_0x4e7ecd,{unitID:_0x7e011c,objectID:_0x4ccf40,actions:_0x56a810}=_0x620636,_0x51ec1b=_0x7b2c92['find'](_0x19cc76=>_0x19cc76[_0x4feb0a(0x41c)]===_0x7e011c&&_0x19cc76[_0x4feb0a(0x5cf)]===_0x4ccf40),_0x542728=_0x56a810[_0x4feb0a(0x263)](_0x585268=>_0x51ec1b==null?void 0x0:_0x51ec1b[_0x4feb0a(0x45c)]['find'](_0x29782f=>_0x29782f[_0x4feb0a(0x3ec)]===_0x585268))['filter'](_0x355ef8=>!!_0x355ef8);return{'config':_0x620636,'result':{'actions':_0x542728,'error':_0x40a325[_0x4feb0a(0x574)]}};});}})}));}['_getAPIPrefixPath'](){const _0x347469=_0x4aaaf0;var _0x1ee8ac,_0xf5b292;const _0x29b2c2=this[_0x347469(0x428)]['getConfig'](jt),_0x56a282=this['_configService'][_0x347469(0x50b)]($);return(_0xf5b292=(_0x1ee8ac=_0x56a282==null?void 0x0:_0x56a282[_0x347469(0x1ec)])!=null?_0x1ee8ac:_0x29b2c2)!=null?_0xf5b292:cn;}async['create'](_0x54974a){const _0x13530b=_0x4aaaf0,_0x7aecb8=this[_0x13530b(0x5a7)]()+'/'+_0x54974a[_0x13530b(0x435)]+_0x13530b(0x377);return(await this['_HTTPService']['post'](_0x7aecb8,{'body':_0x54974a}))[_0x13530b(0x3df)][_0x13530b(0x5cf)]||'';}async['list'](_0x4e3a8f){const _0x10c69d=_0x4aaaf0,_0x16aa3e=this[_0x10c69d(0x5a7)]()+_0x10c69d(0x337);return(await this[_0x10c69d(0x339)][_0x10c69d(0x2f3)](_0x16aa3e,{'body':_0x4e3a8f}))[_0x10c69d(0x3df)][_0x10c69d(0x568)];}async[_0x4aaaf0(0x409)](_0x37e002){const _0xc22508=_0x4aaaf0,_0x5be31a=this[_0xc22508(0x5a7)]()+'/'+_0x37e002[_0xc22508(0x435)]+'/object/'+_0x37e002[_0xc22508(0x5cf)];await this[_0xc22508(0x339)][_0xc22508(0x563)](_0x5be31a,{'body':_0x37e002});}async[_0x4aaaf0(0x1b0)](_0x3753fd){const _0x55cf94=_0x4aaaf0,_0x177602=this[_0x55cf94(0x5a7)]()+'/'+_0x3753fd['objectType']+_0x55cf94(0x4e0)+_0x3753fd[_0x55cf94(0x5cf)]+_0x55cf94(0x53c);return(await this[_0x55cf94(0x339)][_0x55cf94(0x2f3)](_0x177602,{'body':_0x3753fd}))['body'][_0x55cf94(0x45c)];}async['batchAllowed'](_0x520b09){const _0x3556da=_0x4aaaf0,_0x4d7b4b=this[_0x3556da(0x5a7)]()+_0x3556da(0x313);return(await this[_0x3556da(0x339)][_0x3556da(0x2f3)](_0x4d7b4b,{'body':{'requests':_0x520b09}}))['body'][_0x3556da(0x1df)];}async[_0x4aaaf0(0x317)](_0xfb4ea6){const _0x7ecff=_0x4aaaf0,_0x3b6006=this[_0x7ecff(0x5a7)]()+'/'+_0xfb4ea6[_0x7ecff(0x435)]+_0x7ecff(0x59a),_0x5ab6f6=await this[_0x7ecff(0x339)][_0x7ecff(0x2f3)](_0x3b6006,{'body':_0xfb4ea6});return{'roles':_0x5ab6f6['body']['roles'],'actions':_0x5ab6f6[_0x7ecff(0x3df)][_0x7ecff(0x45c)]};}async[_0x4aaaf0(0x326)](_0x59f23e){const _0x230856=_0x4aaaf0,_0x480985=this[_0x230856(0x5a7)]()+_0x230856(0x1ce);await this[_0x230856(0x339)]['delete'](_0x480985,{'params':{'collaboratorID':_0x59f23e[_0x230856(0x30e)],'objectID':_0x59f23e[_0x230856(0x5cf)],'unitID':_0x59f23e[_0x230856(0x41c)]}});}async[_0x4aaaf0(0x2bc)](_0x403054){const _0x139830=_0x4aaaf0,_0x2c2d05=this['_getAPIPrefixPath']()+_0x139830(0x1ce);await this['_HTTPService'][_0x139830(0x4c2)](_0x2c2d05,{'body':_0x403054});}async[_0x4aaaf0(0x2d4)](_0x34a7c3){const _0x5711df=_0x4aaaf0,_0x229816=this[_0x5711df(0x5a7)]()+_0x5711df(0x1ce);await this[_0x5711df(0x339)][_0x5711df(0x2f3)](_0x229816,{'body':_0x34a7c3});}async[_0x4aaaf0(0x502)](_0x4b2e46){const _0x9d6e91=_0x4aaaf0,_0x12c4eb=this[_0x9d6e91(0x5a7)]()+_0x9d6e91(0x1ce);return(await this[_0x9d6e91(0x339)][_0x9d6e91(0x439)](_0x12c4eb,{'params':{'objectID':_0x4b2e46[_0x9d6e91(0x5cf)],'unitID':_0x4b2e46[_0x9d6e91(0x41c)]}}))[_0x9d6e91(0x3df)][_0x9d6e91(0x5d3)];}async['putCollaborators'](_0x43dbcf){const _0x225f13=_0x4aaaf0,_0x37e4a0=this['_getAPIPrefixPath']()+_0x225f13(0x1ce);await this['_HTTPService'][_0x225f13(0x563)](_0x37e4a0,{'body':_0x43dbcf});}},exports['AuthzIoHttpService']=an([_t(0x0,a[_0x4aaaf0(0x1b2)](U[_0x4aaaf0(0x1e4)])),_t(0x1,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x565)]))],exports[_0x4aaaf0(0x5dd)]);var ln=Object['defineProperty'],hn=Object[_0x4aaaf0(0x28b)],_n=(_0x5030ef,_0x485309,_0x1b8428,_0x3a053d)=>{const _0x5787b2=_0x4aaaf0;for(var _0x1e5dc6=_0x3a053d>0x1?void 0x0:_0x3a053d?hn(_0x485309,_0x1b8428):_0x485309,_0x3da69b=_0x5030ef[_0x5787b2(0x31a)]-0x1,_0x21c522;_0x3da69b>=0x0;_0x3da69b--)(_0x21c522=_0x5030ef[_0x3da69b])&&(_0x1e5dc6=(_0x3a053d?_0x21c522(_0x485309,_0x1b8428,_0x1e5dc6):_0x21c522(_0x1e5dc6))||_0x1e5dc6);return _0x3a053d&&_0x1e5dc6&&ln(_0x485309,_0x1b8428,_0x1e5dc6),_0x1e5dc6;},un=(_0x1db807,_0x51a97f)=>(_0x29e2e,_0x564d48)=>_0x51a97f(_0x29e2e,_0x564d48,_0x1db807);let be=class{constructor(_0x1b4c2d){const _0x581cd1=_0x4aaaf0;this['_httpService']=_0x1b4c2d,this[_0x581cd1(0x3de)]();}[_0x4aaaf0(0x3de)](){const _0x46c0fa=_0x4aaaf0;this[_0x46c0fa(0x30f)][_0x46c0fa(0x46f)]({'interceptor':(_0x350af0,_0x3329ed)=>{const _0x360c99=_0x46c0fa,_0x277871=_0x350af0['headers'],_0x53df22=qt[_0x360c99(0x2c9)]();return _0x53df22&&_0x277871[_0x360c99(0x4af)](_0x360c99(0x2da),_0x53df22),_0x3329ed(_0x350af0);}});}};be=_n([un(0x0,a['Inject'](U[_0x4aaaf0(0x1e4)]))],be);var dn=Object[_0x4aaaf0(0x562)],Sn=Object[_0x4aaaf0(0x28b)],vn=(_0x2f0150,_0x573642,_0x4b00d4,_0x2474b1)=>{const _0x231f3d=_0x4aaaf0;for(var _0x104bd0=_0x2474b1>0x1?void 0x0:_0x2474b1?Sn(_0x573642,_0x4b00d4):_0x573642,_0x47fe87=_0x2f0150[_0x231f3d(0x31a)]-0x1,_0xa6aff0;_0x47fe87>=0x0;_0x47fe87--)(_0xa6aff0=_0x2f0150[_0x47fe87])&&(_0x104bd0=(_0x2474b1?_0xa6aff0(_0x573642,_0x4b00d4,_0x104bd0):_0xa6aff0(_0x104bd0))||_0x104bd0);return _0x2474b1&&_0x104bd0&&dn(_0x573642,_0x4b00d4,_0x104bd0),_0x104bd0;},He=(_0x29e046,_0x4c0ba2)=>(_0x2e3a60,_0x3727c7)=>_0x4c0ba2(_0x2e3a60,_0x3727c7,_0x29e046);const mn=['image/png',_0x4aaaf0(0x24f),_0x4aaaf0(0x319),_0x4aaaf0(0x24a),'image/bmp'],gn=0x5*0x400*0x400,fn=_0x4aaaf0(0x423),In=_0x4aaaf0(0x305),pn=_0x4aaaf0(0x3cd),Cn=_0x4aaaf0(0x544);exports['ImageIoService']=class{constructor(_0x410d42,_0x33adc3,_0x3ca569){const _0x3022d7=_0x4aaaf0;u(this,_0x3022d7(0x282),0x0),u(this,_0x3022d7(0x1ed),new v[(_0x3022d7(0x1d4))]()),u(this,_0x3022d7(0x584),this['_change$']),u(this,'_imageSourceCache',new Map()),(this[_0x3022d7(0x30f)]=_0x410d42,this[_0x3022d7(0x428)]=_0x33adc3,this[_0x3022d7(0x46d)]=_0x3ca569);}[_0x4aaaf0(0x3da)](_0x12a4a7){const _0x5bbf98=_0x4aaaf0;this[_0x5bbf98(0x282)]=_0x12a4a7,this[_0x5bbf98(0x1ed)]['next'](_0x12a4a7);}[_0x4aaaf0(0x54a)](_0x3adda3,_0x5cd783){const _0xf3742=_0x4aaaf0;if(_0x5cd783===j['ImageSourceType'][_0xf3742(0x1c4)]){const _0x186573=new Image();return _0x186573[_0xf3742(0x591)]=_0x3adda3,_0x186573;}return this[_0xf3742(0x39d)][_0xf3742(0x439)](_0x3adda3);}['addImageSourceCache'](_0x1cf84d,_0x20b006,_0x4c1c6){const _0x38abe9=_0x4aaaf0;_0x20b006===j[_0x38abe9(0x292)]['BASE64']||_0x4c1c6==null||this[_0x38abe9(0x39d)][_0x38abe9(0x4af)](_0x1cf84d,_0x4c1c6);}async['getImage'](_0xf1b5c7){const _0x357d52=_0x4aaaf0;try{const _0x3cc9e6=this['_replaceFileID'](this[_0x357d52(0x5d4)](),''+_0xf1b5c7),_0x4d2a46=(await this[_0x357d52(0x30f)][_0x357d52(0x439)](_0x3cc9e6))[_0x357d52(0x3df)];if(_0x4d2a46['error']&&_0x4d2a46[_0x357d52(0x574)][_0x357d52(0x512)]===Et['OK']){const _0x34be56=new URL(_0x4d2a46['url'],this[_0x357d52(0x336)]())['toString']();return Promise[_0x357d52(0x560)](_0x34be56);}return Promise['reject'](_0x4d2a46[_0x357d52(0x574)]);}catch(_0x20a5a6){return Promise[_0x357d52(0x47e)](_0x20a5a6);}}async[_0x4aaaf0(0x412)](_0x3ae8ad){const _0x3b7bf5=_0x4aaaf0;let _0x51a425='';if(!mn[_0x3b7bf5(0x1e0)](_0x3ae8ad[_0x3b7bf5(0x4aa)]))return this['_decreaseWaiting'](),Promise[_0x3b7bf5(0x47e)](new Error(j[_0x3b7bf5(0x288)][_0x3b7bf5(0x3c1)]));if(_0x3ae8ad[_0x3b7bf5(0x516)]>gn)return this['_decreaseWaiting'](),Promise['reject'](new Error(j[_0x3b7bf5(0x288)][_0x3b7bf5(0x1fd)]));try{const _0x1985e6=new FormData();_0x1985e6[_0x3b7bf5(0x3c8)](_0x3b7bf5(0x27d),_0x3ae8ad);const _0x118606=this[_0x3b7bf5(0x46d)][_0x3b7bf5(0x4e3)](),_0x3d6b9a=_0x118606==null?void 0x0:_0x118606[_0x3b7bf5(0x3e2)]();if(!_0x3d6b9a)throw new Error(_0x3b7bf5(0x50f));const _0x35b029=this[_0x3b7bf5(0x4c1)]()+_0x3b7bf5(0x4c0)+_0x3ae8ad[_0x3b7bf5(0x516)][_0x3b7bf5(0x222)]()+'&source='+bt[_0x3b7bf5(0x361)]+_0x3b7bf5(0x33e)+encodeURIComponent(_0x3d6b9a),_0x578606=await(await fetch(_0x35b029,{'method':_0x3b7bf5(0x5bb),'body':_0x1985e6}))[_0x3b7bf5(0x26a)]();if(typeof _0x578606[_0x3b7bf5(0x5dc)]!=_0x3b7bf5(0x31c))return this[_0x3b7bf5(0x323)](),Promise[_0x3b7bf5(0x47e)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE']));_0x51a425=_0x578606[_0x3b7bf5(0x5dc)];}catch{return this[_0x3b7bf5(0x323)](),Promise[_0x3b7bf5(0x47e)](new Error(j[_0x3b7bf5(0x288)][_0x3b7bf5(0x3dd)]));}return new Promise((_0x5a8b74,_0x4d6da0)=>{const _0x1db5a0=_0x3b7bf5,_0x2e8fe6=new FileReader();_0x2e8fe6[_0x1db5a0(0x430)](_0x3ae8ad),_0x2e8fe6[_0x1db5a0(0x1b7)]=_0x3c62c6=>{const _0x2ae06b=_0x1db5a0;var _0x593057;const _0x352061=(_0x593057=_0x3c62c6[_0x2ae06b(0x56c)])==null?void 0x0:_0x593057[_0x2ae06b(0x55d)];if(_0x352061==null){this[_0x2ae06b(0x323)](),_0x4d6da0(new Error(j[_0x2ae06b(0x288)][_0x2ae06b(0x3dd)]));return;}const _0x56eae2=a['Tools'][_0x2ae06b(0x1c9)](0x6);_0x5a8b74({'imageId':_0x56eae2,'imageSourceType':j['ImageSourceType']['UUID'],'source':_0x51a425,'base64Cache':_0x352061,'status':j[_0x2ae06b(0x288)]['SUCCUSS']}),this[_0x2ae06b(0x323)]();};});}['_getUploadFileURL'](){const _0x50405a=_0x4aaaf0;var _0x5d02b9,_0x346f2f;const _0x145485=this[_0x50405a(0x428)][_0x50405a(0x50b)](fn),_0xde9cf8=this['_configService']['getConfig']($);return(_0x346f2f=(_0x5d02b9=_0xde9cf8==null?void 0x0:_0xde9cf8['uploadFileServerUrl'])!=null?_0x5d02b9:_0x145485)!=null?_0x346f2f:In;}[_0x4aaaf0(0x5d4)](){const _0xd1f8c3=_0x4aaaf0;var _0x353d0b,_0x52a52d;const _0xf1111c=this[_0xd1f8c3(0x428)][_0xd1f8c3(0x50b)](pn),_0x59e6f6=this[_0xd1f8c3(0x428)][_0xd1f8c3(0x50b)]($);return(_0x52a52d=(_0x353d0b=_0x59e6f6==null?void 0x0:_0x59e6f6[_0xd1f8c3(0x48d)])!=null?_0x353d0b:_0xf1111c)!=null?_0x52a52d:Cn;}['_getDownloadEndpointURL'](){const _0x389228=_0x4aaaf0;var _0x2437f8;const _0x4a0163=this[_0x389228(0x428)]['getConfig']($);return(_0x2437f8=_0x4a0163==null?void 0x0:_0x4a0163[_0x389228(0x41d)])!=null?_0x2437f8:location[_0x389228(0x4f9)];}[_0x4aaaf0(0x31f)](_0x1a6ffb,_0x5acbd3){const _0x122bbe=_0x4aaaf0;return _0x1a6ffb[_0x122bbe(0x32c)](_0x122bbe(0x349),_0x5acbd3);}[_0x4aaaf0(0x323)](){const _0x4e80a7=_0x4aaaf0;this[_0x4e80a7(0x282)]-=0x1,this['_change$'][_0x4e80a7(0x3b3)](this[_0x4e80a7(0x282)]);}},exports[_0x4aaaf0(0x496)]=vn([He(0x0,a['Inject'](U['HTTPService'])),He(0x1,a[_0x4aaaf0(0x565)]),He(0x2,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x33f)]))],exports[_0x4aaaf0(0x496)]);var En=Object[_0x4aaaf0(0x562)],bn=Object['getOwnPropertyDescriptor'],Tn=(_0x34d887,_0x33cf59,_0x477a54,_0x20c75d)=>{const _0x4d95d5=_0x4aaaf0;for(var _0x2e5a9e=_0x20c75d>0x1?void 0x0:_0x20c75d?bn(_0x33cf59,_0x477a54):_0x33cf59,_0x3bb3a8=_0x34d887[_0x4d95d5(0x31a)]-0x1,_0x481157;_0x3bb3a8>=0x0;_0x3bb3a8--)(_0x481157=_0x34d887[_0x3bb3a8])&&(_0x2e5a9e=(_0x20c75d?_0x481157(_0x33cf59,_0x477a54,_0x2e5a9e):_0x481157(_0x2e5a9e))||_0x2e5a9e);return _0x20c75d&&_0x2e5a9e&&En(_0x33cf59,_0x477a54,_0x2e5a9e),_0x2e5a9e;},_e=(_0x2e6dd8,_0x416221)=>(_0x4d38b7,_0x431a94)=>_0x416221(_0x4d38b7,_0x431a94,_0x2e6dd8);let Te=class extends a[_0x4aaaf0(0x275)]{constructor(_0x46fd46,_0x523f94,_0x4e5c6c,_0xa9e546,_0x29289a){const _0x4e1650=_0x4aaaf0;super(),this[_0x4e1650(0x5aa)]=_0x46fd46,this[_0x4e1650(0x46d)]=_0x523f94,this[_0x4e1650(0x290)]=_0x4e5c6c,this[_0x4e1650(0x23b)]=_0xa9e546,this[_0x4e1650(0x2af)]=_0x29289a,this[_0x4e1650(0x28d)](),this[_0x4e1650(0x459)]();}[_0x4aaaf0(0x459)](){const _0x1a3f2d=_0x4aaaf0,_0x25fc24=async _0x10bbb3=>{const _0x2b5c25=_0x47ba;(await this[_0x2b5c25(0x23b)][_0x2b5c25(0x571)](_0x10bbb3))[_0x2b5c25(0x467)][_0x2b5c25(0x2b0)](E[_0x2b5c25(0x36d)](_0x289c21=>_0x289c21[_0x2b5c25(0x405)]===_[_0x2b5c25(0x2bb)][_0x2b5c25(0x5d2)]),E[_0x2b5c25(0x4b2)](this[_0x2b5c25(0x35d)]))[_0x2b5c25(0x236)](_0x321ca9=>{const _0x5b45df=_0x2b5c25,_0x56c68a=_0x321ca9,{reason:_0x2611b5}=_0x56c68a['data'];this[_0x5b45df(0x5aa)][_0x5b45df(0x439)](A[_0x5b45df(0x31b)])['show']({'type':J[_0x5b45df(0x497)][_0x5b45df(0x413)],'content':this[_0x5b45df(0x2af)]['t'](_0x5b45df(0x4b6))+'('+_0x2611b5+')'}),this[_0x5b45df(0x290)][_0x5b45df(0x585)](new C[(_0x5b45df(0x1e9))](_0x10bbb3)['id'],!0x1),this[_0x5b45df(0x23b)][_0x5b45df(0x52f)](_0x10bbb3);});};v[_0x1a3f2d(0x398)](this['_univerInstanceService'][_0x1a3f2d(0x411)](a[_0x1a3f2d(0x419)]['UNIVER_SHEET']),this[_0x1a3f2d(0x46d)][_0x1a3f2d(0x411)](a['UniverInstanceType'][_0x1a3f2d(0x238)]))[_0x1a3f2d(0x2b0)](E[_0x1a3f2d(0x263)](_0x4b880e=>_0x4b880e[_0x1a3f2d(0x3e2)]()),E['filter'](_0x462244=>!a['isInternalEditorID'](_0x462244)),E['takeUntil'](this['dispose$']))[_0x1a3f2d(0x236)](_0x29e0ab=>{_0x25fc24(_0x29e0ab);});}[_0x4aaaf0(0x28d)](){const _0x3ca538=_0x4aaaf0,_0x18109d=async _0x39470b=>{const _0x19d98d=_0x47ba;(await this[_0x19d98d(0x23b)][_0x19d98d(0x571)](_0x39470b))['event$'][_0x19d98d(0x2b0)](E[_0x19d98d(0x36d)](_0x96f4d=>_0x96f4d[_0x19d98d(0x405)]===_[_0x19d98d(0x2bb)][_0x19d98d(0x3b9)]),E[_0x19d98d(0x4b2)](this[_0x19d98d(0x35d)]))[_0x19d98d(0x236)](_0x5f4bc2=>{const _0x1a0cdd=_0x19d98d,_0x5765eb=_0x5f4bc2,{objectId:_0x3d56fc}=_0x5765eb['data'],_0x25c945=this[_0x1a0cdd(0x5aa)][_0x1a0cdd(0x439)](ie[_0x1a0cdd(0x378)]);_0x3d56fc===_0x39470b?_0x25c945[_0x1a0cdd(0x4e8)](_0x39470b):_0x25c945[_0x1a0cdd(0x4e5)](_0x39470b,_0x3d56fc);});};v[_0x3ca538(0x398)](this['_univerInstanceService'][_0x3ca538(0x411)](a[_0x3ca538(0x419)]['UNIVER_SHEET']),this[_0x3ca538(0x46d)]['getTypeOfUnitAdded$'](a[_0x3ca538(0x419)]['UNIVER_DOC']))[_0x3ca538(0x2b0)](E[_0x3ca538(0x263)](_0x5e0a60=>_0x5e0a60[_0x3ca538(0x3e2)]()),E['filter'](_0x48f145=>!a['isInternalEditorID'](_0x48f145)),E['takeUntil'](this[_0x3ca538(0x35d)]))[_0x3ca538(0x236)](_0x3641b5=>{_0x18109d(_0x3641b5);});}};Te=Tn([_e(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),_e(0x1,a[_0x4aaaf0(0x33f)]),_e(0x2,a[_0x4aaaf0(0x26c)]),_e(0x3,a[_0x4aaaf0(0x1b2)](exports['CollaborationSessionService'])),_e(0x4,a[_0x4aaaf0(0x1b2)](a['LocaleService']))],Te);var Rn=Object[_0x4aaaf0(0x562)],On=Object[_0x4aaaf0(0x28b)],Dn=(_0xad74d4,_0x5d0d02,_0x34ad27,_0x30fcc8)=>{const _0x250bb1=_0x4aaaf0;for(var _0x2e04d8=_0x30fcc8>0x1?void 0x0:_0x30fcc8?On(_0x5d0d02,_0x34ad27):_0x5d0d02,_0x472983=_0xad74d4[_0x250bb1(0x31a)]-0x1,_0x73fce6;_0x472983>=0x0;_0x472983--)(_0x73fce6=_0xad74d4[_0x472983])&&(_0x2e04d8=(_0x30fcc8?_0x73fce6(_0x5d0d02,_0x34ad27,_0x2e04d8):_0x73fce6(_0x2e04d8))||_0x2e04d8);return _0x30fcc8&&_0x2e04d8&&Rn(_0x5d0d02,_0x34ad27,_0x2e04d8),_0x2e04d8;},ut=(_0x464aa6,_0x38a3a0)=>(_0x296c92,_0x28b624)=>_0x38a3a0(_0x296c92,_0x28b624,_0x464aa6);exports[_0x4aaaf0(0x37b)]=class{constructor(_0x4e9e57,_0x48f431){const _0x3536ba=_0x4aaaf0;this['_configService']=_0x4e9e57,this[_0x3536ba(0x30f)]=_0x48f431;}async[_0x4aaaf0(0x2ff)](_0x111e76,_0xdf541c){const _0x3eecca=_0x4aaaf0;var _0x449223;const {unitID:_0x3f622b,type:_0x3b3b08,revision:_0x1ee24f=0x0}=_0xdf541c,_0x4cfaeb=this[_0x3eecca(0x41a)]()+'/'+_0x3b3b08+_0x3eecca(0x406)+_0x3f622b+'/rev/'+_0x1ee24f,_0x24f25c=(await this[_0x3eecca(0x30f)][_0x3eecca(0x439)](_0x4cfaeb))[_0x3eecca(0x3df)],_0x2dab8b=(_0x449223=_0x24f25c['snapshot'])==null?void 0x0:_0x449223['workbook'];if(_0x2dab8b){const _0x89e232=_0x2dab8b==null?void 0x0:_0x2dab8b[_0x3eecca(0x44a)],_0x54eff3=_[_0x3eecca(0x3f8)][_0x3eecca(0x357)](_[_0x3eecca(0x4a6)](_0x89e232));_0x2dab8b[_0x3eecca(0x44a)]=_0x54eff3,Object['entries'](_0x2dab8b['sheets'])[_0x3eecca(0x1d6)](([,_0x9aa831])=>{const _0x24da81=_0x3eecca,_0x36731b=_0x9aa831[_0x24da81(0x44a)],_0x2c67ed=_['textEncoder'][_0x24da81(0x357)](_['b64DecodeUnicode'](_0x36731b));_0x9aa831['originalMeta']=_0x2c67ed;});}return _0x24f25c;}async['getSheetBlock'](_0x3835f2,_0xc80f8b){const _0x168c22=_0x4aaaf0,{unitID:_0x5534f5,type:_0x34d04d,blockID:_0x3d9785}=_0xc80f8b,_0x19fa46=this[_0x168c22(0x3c3)]()+'/'+_0x34d04d+_0x168c22(0x406)+_0x5534f5+_0x168c22(0x547)+_0x3d9785;return(await this[_0x168c22(0x30f)][_0x168c22(0x439)](_0x19fa46))[_0x168c22(0x3df)];}async['getDeserializedSheetBlock'](_0x1b915a,_0x56e90e){const _0x26a1f9=_0x4aaaf0,{unitID:_0x4fbd02,type:_0x194137,blockID:_0x503d55}=_0x56e90e,_0x193eb6=this['_getAPIPrefix']()+'/block/'+_0x194137+'/unit/'+_0x4fbd02+_0x26a1f9(0x547)+_0x503d55;return(await this[_0x26a1f9(0x30f)][_0x26a1f9(0x439)](_0x193eb6))[_0x26a1f9(0x3df)];}async[_0x4aaaf0(0x3aa)](_0x4ba812,_0x4ce4de){const _0x5411fb=_0x4aaaf0,{unitID:_0x265cd,type:_0x5778e8,from:_0x10469f,to:_0x529b7a}=_0x4ce4de,_0x1a2703=this[_0x5411fb(0x3c3)]()+'/'+_0x5778e8+_0x5411fb(0x406)+_0x265cd+_0x5411fb(0x538)+_0x10469f+'&to='+_0x529b7a;return(await this[_0x5411fb(0x30f)]['get'](_0x1a2703))[_0x5411fb(0x3df)];}[_0x4aaaf0(0x41a)](){const _0x2568fc=_0x4aaaf0;var _0x82f32c;return(_0x82f32c=this[_0x2568fc(0x428)][_0x2568fc(0x50b)](St))!=null?_0x82f32c:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x3ab5a6=_0x4aaaf0;var _0x52e879,_0x1d88a6;const _0x601079=this['_configService'][_0x3ab5a6(0x50b)](dt),_0x20d3e8=this['_configService'][_0x3ab5a6(0x50b)]($);return(_0x1d88a6=(_0x52e879=_0x20d3e8==null?void 0x0:_0x20d3e8[_0x3ab5a6(0x380)])!=null?_0x52e879:_0x601079)!=null?_0x1d88a6:zt;}async[_0x4aaaf0(0x586)](_0x7adc5b,_0x2b7197){const _0x3e75e1=_0x4aaaf0,_0xdc34e0=_0x3e75e1(0x479)+_0x2b7197[_0x3e75e1(0x4aa)]+_0x3e75e1(0x406)+_0x2b7197[_0x3e75e1(0x41c)]+'/resources';return(await this[_0x3e75e1(0x30f)][_0x3e75e1(0x439)](_0xdc34e0,{'params':{'resourceId':JSON[_0x3e75e1(0x24c)](_0x2b7197[_0x3e75e1(0x21b)])}}))[_0x3e75e1(0x3df)];}['saveSnapshot'](){const _0x2f9188=_0x4aaaf0;throw new Error(_0x2f9188(0x217));}[_0x4aaaf0(0x4b3)](){const _0x3f0b2b=_0x4aaaf0;throw new Error(_0x3f0b2b(0x217));}[_0x4aaaf0(0x588)](){const _0x53de03=_0x4aaaf0;throw new Error(_0x53de03(0x217));}[_0x4aaaf0(0x34f)](){const _0x34e3e7=_0x4aaaf0;throw new Error(_0x34e3e7(0x217));}[_0x4aaaf0(0x5d1)](){const _0x4134c2=_0x4aaaf0;throw new Error(_0x4134c2(0x217));}},exports[_0x4aaaf0(0x37b)]=Dn([ut(0x0,a[_0x4aaaf0(0x565)]),ut(0x1,a['Inject'](U[_0x4aaaf0(0x1e4)]))],exports[_0x4aaaf0(0x37b)]);var yn=Object['defineProperty'],Un=Object[_0x4aaaf0(0x28b)],Pn=(_0x14eb9f,_0x40993e,_0x321949,_0x471b7a)=>{const _0x4e17f9=_0x4aaaf0;for(var _0xfaa375=_0x471b7a>0x1?void 0x0:_0x471b7a?Un(_0x40993e,_0x321949):_0x40993e,_0x2085fb=_0x14eb9f[_0x4e17f9(0x31a)]-0x1,_0x33fdad;_0x2085fb>=0x0;_0x2085fb--)(_0x33fdad=_0x14eb9f[_0x2085fb])&&(_0xfaa375=(_0x471b7a?_0x33fdad(_0x40993e,_0x321949,_0xfaa375):_0x33fdad(_0xfaa375))||_0xfaa375);return _0x471b7a&&_0xfaa375&&yn(_0x40993e,_0x321949,_0xfaa375),_0xfaa375;},ue=(_0x1ef500,_0x2dc71a)=>(_0x32d001,_0x2a86d4)=>_0x2dc71a(_0x32d001,_0x2a86d4,_0x1ef500);let We=class extends a['LocalUndoRedoService']{constructor(_0x6dd072,_0x48bbb6,_0x5b3272,_0x1fdb3a,_0x5ae958){const _0x43454c=_0x4aaaf0;super(_0x6dd072,_0x48bbb6,_0x5b3272),this[_0x43454c(0x37f)]=_0x1fdb3a,this[_0x43454c(0x360)]=_0x5ae958;}[_0x4aaaf0(0x2a6)](_0x57c8d0,_0x4635f2){const _0x58325b=_0x4aaaf0,_0x4dbd83=this['_getUndoStack'](_0x57c8d0);if(_0x4dbd83)try{const _0x40eeda=this[_0x58325b(0x542)](_0x4dbd83,_0x4635f2);this[_0x58325b(0x1f8)](_0x57c8d0,_0x40eeda);}catch(_0x370c3f){this[_0x58325b(0x360)][_0x58325b(0x574)]('[CollaborationUndoRedoService]',_0x370c3f),this[_0x58325b(0x1be)](_0x57c8d0);}const _0x544191=this[_0x58325b(0x363)](_0x57c8d0);if(_0x544191)try{const _0x2f20a6=this[_0x58325b(0x542)](_0x544191,_0x4635f2);this[_0x58325b(0x474)](_0x57c8d0,_0x2f20a6);}catch(_0x139cd5){this['_logService'][_0x58325b(0x574)](_0x139cd5),this[_0x58325b(0x52e)](_0x57c8d0);}}[_0x4aaaf0(0x1be)](_0x1bdb92){const _0x5a0226=_0x4aaaf0,_0x4b32fc=this[_0x5a0226(0x58f)](_0x1bdb92);_0x4b32fc&&(_0x4b32fc[_0x5a0226(0x31a)]=0x0,this[_0x5a0226(0x4a8)]());}[_0x4aaaf0(0x52e)](_0x254b41){const _0x10e5ee=_0x4aaaf0,_0x495dda=this[_0x10e5ee(0x363)](_0x254b41);_0x495dda&&(_0x495dda[_0x10e5ee(0x31a)]=0x0,this[_0x10e5ee(0x4a8)]());}[_0x4aaaf0(0x1f8)](_0xd28568,_0x8bae81){const _0x3457cc=_0x4aaaf0;this['_undoStacks']['set'](_0xd28568,_0x8bae81),this[_0x3457cc(0x4a8)]();}[_0x4aaaf0(0x474)](_0x4673b2,_0x33937f){const _0x2c13d8=_0x4aaaf0;this[_0x2c13d8(0x243)][_0x2c13d8(0x4af)](_0x4673b2,_0x33937f),this[_0x2c13d8(0x4a8)]();}[_0x4aaaf0(0x542)](_0x143cff,_0xc60324){const _0x1f74e7=_0x4aaaf0,_0x10f6e8=[];let _0x1e8da1=_0xc60324,_0x57c5be=_0xc60324;for(let _0x135939=_0x143cff[_0x1f74e7(0x31a)]-0x1;_0x135939>=0x0;_0x135939--){const {unitID:_0x39edbf,undoMutations:_0x18a4a2,redoMutations:_0x17b42b}=_0x143cff[_0x135939],_0x4221ce=this[_0x1f74e7(0x37f)][_0x1f74e7(0x34d)](_0x1e8da1,_0x18a4a2),_0x2388b2=this[_0x1f74e7(0x37f)][_0x1f74e7(0x34d)](_0x57c5be,_0x17b42b);if(_[_0x1f74e7(0x264)](_0x4221ce)||_['isTransformMutationsWithChangesetFailure'](_0x2388b2)){this[_0x1f74e7(0x360)][_0x1f74e7(0x574)](_0x1f74e7(0x2fb),'transformStack\x20failed!',_0x4221ce,_0x2388b2);break;}_0x1e8da1=_0x4221ce[_0x1f74e7(0x3f1)],_0x57c5be=_0x2388b2[_0x1f74e7(0x3f1)],_0x10f6e8[_0x1f74e7(0x4ce)]({'unitID':_0x39edbf,'undoMutations':_0x4221ce['m2Prime'],'redoMutations':_0x2388b2[_0x1f74e7(0x3a9)]});}return _0x10f6e8[_0x1f74e7(0x3b2)]();}};We=Pn([ue(0x0,a[_0x4aaaf0(0x33f)]),ue(0x1,a[_0x4aaaf0(0x5df)]),ue(0x2,a[_0x4aaaf0(0x2e0)]),ue(0x3,_['ITransformService']),ue(0x4,a['ILogService'])],We);class Ht extends a['RxDisposable']{constructor(){const _0x1aab55=_0x4aaaf0;super(),u(this,'urlChange$'),this[_0x1aab55(0x3ab)]=v[_0x1aab55(0x401)](window,'popstate')['pipe'](v[_0x1aab55(0x4b2)](this[_0x1aab55(0x35d)]),v[_0x1aab55(0x566)](0x1),v[_0x1aab55(0x578)](void 0x0));}[_0x4aaaf0(0x359)](_0x3ca1a9,_0x29206f,_0x31a315=!0x1){const _0x8fb2df=_0x4aaaf0,_0x157d47=new URL(window[_0x8fb2df(0x554)][_0x8fb2df(0x53d)]);_0x157d47[_0x8fb2df(0x2e6)][_0x8fb2df(0x4af)](_0x3ca1a9,_0x29206f),_0x31a315?window[_0x8fb2df(0x331)][_0x8fb2df(0x42c)]('','',_0x157d47[_0x8fb2df(0x222)]()):window[_0x8fb2df(0x331)]['pushState']('','',_0x157d47[_0x8fb2df(0x222)]());}[_0x4aaaf0(0x300)](_0x60dd0f,_0x5d9652=!0x1){const _0x732a61=_0x4aaaf0,_0x4b3b6d=new URL(window[_0x732a61(0x554)][_0x732a61(0x53d)]);_0x4b3b6d['searchParams'][_0x732a61(0x276)](_0x60dd0f),_0x5d9652?window[_0x732a61(0x331)][_0x732a61(0x42c)]('','',_0x4b3b6d[_0x732a61(0x222)]()):window[_0x732a61(0x331)][_0x732a61(0x432)]('','',_0x4b3b6d['toString']());}['getParam'](_0x53fa4e){const _0x5b8de5=_0x4aaaf0;var _0x56230d;return(_0x56230d=new URL(window['location'][_0x5b8de5(0x53d)])[_0x5b8de5(0x2e6)][_0x5b8de5(0x439)](_0x53fa4e))!=null?_0x56230d:void 0x0;}}var xt=Object[_0x4aaaf0(0x562)],wn=Object[_0x4aaaf0(0x28b)],Nn=(_0x692535,_0x747abd,_0x3dbf48)=>_0x747abd in _0x692535?xt(_0x692535,_0x747abd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dbf48}):_0x692535[_0x747abd]=_0x3dbf48,Mn=(_0x392a48,_0x471e42,_0x2aafc1,_0x1ef3f6)=>{const _0x5eb4b0=_0x4aaaf0;for(var _0xe8cc74=_0x1ef3f6>0x1?void 0x0:_0x1ef3f6?wn(_0x471e42,_0x2aafc1):_0x471e42,_0x153db2=_0x392a48[_0x5eb4b0(0x31a)]-0x1,_0xf0a9bb;_0x153db2>=0x0;_0x153db2--)(_0xf0a9bb=_0x392a48[_0x153db2])&&(_0xe8cc74=(_0x1ef3f6?_0xf0a9bb(_0x471e42,_0x2aafc1,_0xe8cc74):_0xf0a9bb(_0xe8cc74))||_0xe8cc74);return _0x1ef3f6&&_0xe8cc74&&xt(_0x471e42,_0x2aafc1,_0xe8cc74),_0xe8cc74;},ge=(_0x4b2d56,_0x1b8fd3)=>(_0x1982cf,_0x1ab5f7)=>_0x1b8fd3(_0x1982cf,_0x1ab5f7,_0x4b2d56),An=(_0x5eccbd,_0x1a7523,_0x1677ae)=>Nn(_0x5eccbd,_0x1a7523+'',_0x1677ae);const Ln='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x4aaaf0(0x4d1)]=class extends a['Plugin']{constructor(_0x4779ad=os,_0x1f06dd,_0x145f59,_0x144db1,_0x3b5952){const _0x5ecb4a=_0x4aaaf0;super(),this[_0x5ecb4a(0x41b)]=_0x4779ad,this['_logService']=_0x1f06dd,this['_renderManagerService']=_0x145f59,this['_injector']=_0x144db1,this[_0x5ecb4a(0x428)]=_0x3b5952;const {..._0x1c56a5}=this[_0x5ecb4a(0x41b)];this[_0x5ecb4a(0x428)][_0x5ecb4a(0x3af)]($,_0x1c56a5);}['onStarting'](){const _0x2e82b2=_0x4aaaf0;this['_registerDependencies'](),a['touchDependencies'](this['_injector'],[[oe],[exports[_0x2e82b2(0x295)]],[Te]]);}[_0x4aaaf0(0x5cb)](){a['touchDependencies'](this['_injector'],[[Ce]]);}[_0x4aaaf0(0x2ac)](){const _0x248d3c=_0x4aaaf0;this[_0x248d3c(0x480)]();}[_0x4aaaf0(0x36a)](){const _0x58220b=_0x4aaaf0;var _0x4a6545,_0x15df86,_0x40f7e8,_0x3789b8;this[_0x58220b(0x5aa)]['has'](a['IUndoRedoService'])&&this[_0x58220b(0x360)][_0x58220b(0x574)](_0x58220b(0x215),_0x58220b(0x445));let _0x5ec4cb=[[a[_0x58220b(0x490)],{'useClass':We}],[exports['CollaborationSessionService']],[ze],[U['HTTPService']],[Ze,{'useClass':Ht}],[exports['MemberService']],[exports[_0x58220b(0x49c)]],[U['WebSocketService']],[Ie],[pe],[fe],[Xe],[Ee],[be],[Ke],[Te],[Ye,{'useClass':(_0x15df86=(_0x4a6545=this['_config'])==null?void 0x0:_0x4a6545[_0x58220b(0x49b)])!=null?_0x15df86:exports[_0x58220b(0x4b4)]}],[U[_0x58220b(0x239)],{'useClass':U[_0x58220b(0x375)]}],[_[_0x58220b(0x47d)],{'useClass':exports[_0x58220b(0x37b)]}],[a[_0x58220b(0x457)],{'useClass':exports[_0x58220b(0x5dd)]}],[j[_0x58220b(0x2e2)],{'useClass':exports['ImageIoService']}],[exports[_0x58220b(0x265)]],[exports['DataLoaderController']],[exports[_0x58220b(0x1e2)]],[Ce],[oe]];(_0x40f7e8=this[_0x58220b(0x41b)])!=null&&_0x40f7e8[_0x58220b(0x1f0)]&&_0x5ec4cb[_0x58220b(0x4ce)]([Re,{'useClass':Hs}]),_0x5ec4cb=a[_0x58220b(0x5cc)](_0x5ec4cb,(_0x3789b8=this[_0x58220b(0x41b)])==null?void 0x0:_0x3789b8[_0x58220b(0x4ab)]),_0x5ec4cb[_0x58220b(0x1d6)](_0x3eceb4=>this[_0x58220b(0x5aa)][_0x58220b(0x24d)](_0x3eceb4)),this[_0x58220b(0x579)]();}['_registerRenderDependencies'](){const _0x93a9b6=_0x4aaaf0;this[_0x93a9b6(0x367)](this[_0x93a9b6(0x2e3)][_0x93a9b6(0x32f)](a[_0x93a9b6(0x419)][_0x93a9b6(0x238)],[Be])),this[_0x93a9b6(0x367)](this[_0x93a9b6(0x2e3)][_0x93a9b6(0x32f)](a[_0x93a9b6(0x419)][_0x93a9b6(0x4d0)],[Ve]));}[_0x4aaaf0(0x579)](){const _0xe8ed6=_0x4aaaf0;var _0x104575,_0x49c607;this[_0xe8ed6(0x5aa)][_0xe8ed6(0x439)](U[_0xe8ed6(0x1e4)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0xe8ed6(0x5aa)][_0xe8ed6(0x439)](be),(_0x104575=this[_0xe8ed6(0x41b)])!=null&&_0x104575[_0xe8ed6(0x4b9)]||this[_0xe8ed6(0x5aa)]['get'](exports['LocalCacheService'])[_0xe8ed6(0x20d)](),(_0x49c607=this[_0xe8ed6(0x41b)])!=null&&_0x49c607[_0xe8ed6(0x298)]&&this[_0xe8ed6(0x5aa)][_0xe8ed6(0x439)](Ee),this[_0xe8ed6(0x5aa)]['get'](exports[_0xe8ed6(0x265)]),this[_0xe8ed6(0x5aa)][_0xe8ed6(0x2cc)](exports['DesktopCollaborationStatusDisplayController'])&&this['_injector']['get'](exports[_0xe8ed6(0x1e2)]);}},An(exports['UniverCollaborationClientPlugin'],'pluginName',Ln),exports['UniverCollaborationClientPlugin']=Mn([a['DependentOn'](_[_0x4aaaf0(0x272)]),ge(0x1,a[_0x4aaaf0(0x1d1)]),ge(0x2,O[_0x4aaaf0(0x546)]),ge(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),ge(0x4,a[_0x4aaaf0(0x565)])],exports[_0x4aaaf0(0x4d1)]),exports[_0x4aaaf0(0x4f6)]=jt,exports[_0x4aaaf0(0x3e1)]=pt,exports[_0x4aaaf0(0x252)]=vt,exports[_0x4aaaf0(0x304)]=D,exports[_0x4aaaf0(0x312)]=$t,exports[_0x4aaaf0(0x334)]=Ke,exports[_0x4aaaf0(0x269)]=mt,exports[_0x4aaaf0(0x2c0)]=Fe,exports[_0x4aaaf0(0x2fc)]=Ye,exports[_0x4aaaf0(0x569)]=Ze,exports[_0x4aaaf0(0x3ff)]=It,exports[_0x4aaaf0(0x594)]=Ct,exports[_0x4aaaf0(0x289)]=ft,exports[_0x4aaaf0(0x431)]=Jt,exports[_0x4aaaf0(0x2bf)]=dt,exports[_0x4aaaf0(0x30c)]=St,exports[_0x4aaaf0(0x54c)]=x,exports[_0x4aaaf0(0x43c)]=wt,exports['WebURLService']=Ht,exports['deserializeToCombResponse']=Tt,exports['serializeCombRequest']=Rt;
|
1
|
+
'use strict';const _0x414e95=_0x474b;(function(_0x35f5f,_0x4aadb2){const _0x471c10=_0x474b,_0x1e5f86=_0x35f5f();while(!![]){try{const _0x3a0ec3=parseInt(_0x471c10(0x505))/0x1+parseInt(_0x471c10(0x16c))/0x2+-parseInt(_0x471c10(0x209))/0x3*(parseInt(_0x471c10(0x4e6))/0x4)+-parseInt(_0x471c10(0x382))/0x5+parseInt(_0x471c10(0x299))/0x6*(parseInt(_0x471c10(0x2c1))/0x7)+-parseInt(_0x471c10(0x5ac))/0x8*(parseInt(_0x471c10(0x610))/0x9)+parseInt(_0x471c10(0x558))/0xa;if(_0x3a0ec3===_0x4aadb2)break;else _0x1e5f86['push'](_0x1e5f86['shift']());}catch(_0x14b2f7){_0x1e5f86['push'](_0x1e5f86['shift']());}}}(_0x2cf6,0x2a862));var Mn=Object[_0x414e95(0x47c)],An=(_0x17725c,_0x232edb,_0x5a269d)=>_0x232edb in _0x17725c?Mn(_0x17725c,_0x232edb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a269d}):_0x17725c[_0x232edb]=_0x5a269d,I=(_0x2d10e3,_0x57325a,_0x4fe2eb)=>An(_0x2d10e3,typeof _0x57325a!=_0x414e95(0x550)?_0x57325a+'':_0x57325a,_0x4fe2eb);Object[_0x414e95(0x47c)](exports,Symbol[_0x414e95(0x4c2)],{'value':_0x414e95(0x3b6)});const a=require('@univerjs/core'),A=require('rxjs'),V=require(_0x414e95(0x190)),pe=require(_0x414e95(0x3dc)),te=require(_0x414e95(0x23a)),Q=require('@univerjs/network'),S=require(_0x414e95(0x32c)),Nn=require(_0x414e95(0x619)),Z=require(_0x414e95(0x1f0)),k=require('@univerjs/sheets'),K=require('@univerjs/engine-render'),Re=require(_0x414e95(0x512)),ie=require(_0x414e95(0x176)),wt=require(_0x414e95(0x4de)),Te=require(_0x414e95(0x38c)),z=require(_0x414e95(0x525)),Ln=require(_0x414e95(0x323)),Jt=_0x414e95(0x3f8),xn='/universer-api/snapshot',Zt=_0x414e95(0x31e),$n='SEND_CHANGESET_TIMEOUT',jn=0x7d0,Qt=_0x414e95(0x40a),Hn='ws://127.0.0.1:8000/universer-api/comb/connect',en=_0x414e95(0x464),Bn=0x7530,It=_0x414e95(0x3f0),tn=0x4e20,kn=0x4e20,nn=_0x414e95(0x45c),Wn=0x3,sn=_0x414e95(0x1bd),Fn=0x3e8,rn=_0x414e95(0x41b),Vn=_0x414e95(0x283),on='LOGIN_URL_KEY',Gn='/universer-api/oidc/authpage';var an=(_0x5acf57=>(_0x5acf57[_0x5acf57[_0x414e95(0x1e0)]=0x0]=_0x414e95(0x1e0),_0x5acf57[_0x5acf57['OK']=0x1]='OK',_0x5acf57[_0x5acf57[_0x414e95(0x5b8)]=0x2]='INTERNAL_ERROR',_0x5acf57[_0x5acf57[_0x414e95(0x451)]=0x3]=_0x414e95(0x451),_0x5acf57[_0x5acf57['NOT_FOUND']=0x4]=_0x414e95(0x1fc),_0x5acf57[_0x5acf57[_0x414e95(0x551)]=0x5]=_0x414e95(0x551),_0x5acf57[_0x5acf57[_0x414e95(0x44b)]=0x6]='ALREADY_EXISTS',_0x5acf57[_0x5acf57[_0x414e95(0x1c8)]=0x7]=_0x414e95(0x1c8),_0x5acf57[_0x5acf57[_0x414e95(0x4c5)]=0x8]=_0x414e95(0x4c5),_0x5acf57[_0x5acf57[_0x414e95(0x5f3)]=0x9]=_0x414e95(0x5f3),_0x5acf57[_0x5acf57[_0x414e95(0x2c7)]=0x1389]=_0x414e95(0x2c7),_0x5acf57[_0x5acf57['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5acf57[_0x5acf57['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5acf57[_0x5acf57[_0x414e95(0x1a0)]=0x1773]=_0x414e95(0x1a0),_0x5acf57[_0x5acf57[_0x414e95(0x1ff)]=0x1b59]='APPLY_REJECT',_0x5acf57[_0x5acf57[_0x414e95(0x54e)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5acf57[_0x5acf57[_0x414e95(0x34e)]=0x1b5b]=_0x414e95(0x34e),_0x5acf57[_0x5acf57[_0x414e95(0x40e)]=0x1b5c]=_0x414e95(0x40e),_0x5acf57[_0x5acf57[_0x414e95(0x3bb)]=0x1b5d]=_0x414e95(0x3bb),_0x5acf57[_0x5acf57['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x414e95(0x2f6),_0x5acf57[_0x5acf57[_0x414e95(0x53a)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5acf57[_0x5acf57[_0x414e95(0x24c)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5acf57[_0x5acf57['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x414e95(0x222),_0x5acf57[_0x5acf57['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x414e95(0x5b6),_0x5acf57[_0x5acf57[_0x414e95(0x16a)]=0x232d]=_0x414e95(0x16a),_0x5acf57[_0x5acf57[_0x414e95(0x412)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5acf57[_0x5acf57[_0x414e95(0x1a5)]=0x2712]=_0x414e95(0x1a5),_0x5acf57[_0x5acf57['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x414e95(0x5ba),_0x5acf57[_0x5acf57[_0x414e95(0x5a0)]=0x2714]=_0x414e95(0x5a0),_0x5acf57[_0x5acf57['UNRECOGNIZED']=-0x1]=_0x414e95(0x167),_0x5acf57))(an||{}),se=(_0x23d1da=>(_0x23d1da[_0x23d1da['UNIVER_UNKNOWN']=0x0]=_0x414e95(0x56d),_0x23d1da[_0x23d1da[_0x414e95(0x446)]=0x1]='UNIVER_DOC',_0x23d1da[_0x23d1da[_0x414e95(0x353)]=0x2]=_0x414e95(0x353),_0x23d1da[_0x23d1da[_0x414e95(0x546)]=0x3]='UNIVER_SLIDE',_0x23d1da[_0x23d1da['UNIVER_PROJECT']=0x4]=_0x414e95(0x41c),_0x23d1da[_0x23d1da[_0x414e95(0x167)]=-0x1]=_0x414e95(0x167),_0x23d1da))(se||{}),G=(_0xe68194=>(_0xe68194[_0xe68194[_0x414e95(0x365)]=0x0]='UNKNOWN_CMD',_0xe68194[_0xe68194[_0x414e95(0x48c)]=0x1]='HELLO',_0xe68194[_0xe68194['JOIN']=0x2]='JOIN',_0xe68194[_0xe68194[_0x414e95(0x489)]=0x3]=_0x414e95(0x489),_0xe68194[_0xe68194[_0x414e95(0x5ed)]=0x4]=_0x414e95(0x5ed),_0xe68194[_0xe68194['HEARTBEAT']=0x5]=_0x414e95(0x61b),_0xe68194[_0xe68194[_0x414e95(0x1bf)]=0x6]=_0x414e95(0x1bf),_0xe68194[_0xe68194[_0x414e95(0x167)]=-0x1]=_0x414e95(0x167),_0xe68194))(G||{}),Ct=(_0x3bffef=>(_0x3bffef[_0x3bffef[_0x414e95(0x1ae)]=0x0]=_0x414e95(0x1ae),_0x3bffef[_0x3bffef['OK']=0x1]='OK',_0x3bffef[_0x3bffef[_0x414e95(0x5dc)]=0x2]='FAIL',_0x3bffef[_0x3bffef[_0x414e95(0x167)]=-0x1]='UNRECOGNIZED',_0x3bffef))(Ct||{}),cn=(_0x57dc5b=>(_0x57dc5b[_0x57dc5b['Undefined']=0x0]=_0x414e95(0x21e),_0x57dc5b[_0x57dc5b[_0x414e95(0x387)]=0x1]=_0x414e95(0x387),_0x57dc5b[_0x57dc5b[_0x414e95(0x3bf)]=0x2]=_0x414e95(0x3bf),_0x57dc5b[_0x57dc5b[_0x414e95(0x55a)]=0x3]=_0x414e95(0x55a),_0x57dc5b[_0x57dc5b['UnitSnapshot']=0x4]=_0x414e95(0x4cc),_0x57dc5b[_0x57dc5b[_0x414e95(0x167)]=-0x1]=_0x414e95(0x167),_0x57dc5b))(cn||{});const ne=_0x414e95(0x5e1),Yn={};function ln(_0x36b77e){const _0x4566fe=_0x414e95;var _0x273e36,_0x36fec6,_0x2edb2e,_0x43bd27,_0x4cac0f;const _0x1ba145=_0x36b77e[_0x4566fe(0x396)],_0x333fc0=JSON[_0x4566fe(0x3f5)](_0x1ba145);switch(_0x333fc0[_0x4566fe(0x262)]){case G[_0x4566fe(0x61b)]:case G[_0x4566fe(0x48c)]:{const _0x178ca2=_0x333fc0[_0x4566fe(0x342)];return{..._0x333fc0,'data':_0x178ca2,'cmd':_0x333fc0[_0x4566fe(0x262)]};}case G['JOIN']:{const _0x1b542f=_0x333fc0[_0x4566fe(0x4ce)];return{..._0x333fc0,'data':_0x1b542f,'cmd':_0x333fc0['cmd']};}case G['RECV']:{const _0x3c838f=_0x333fc0[_0x4566fe(0x4ac)];switch(_0x3c838f[_0x4566fe(0x3d3)]){case S['CollaborationEvent']['PERMISSION_REJ']:return{..._0x333fc0,'data':{..._0x3c838f,'data':(_0x273e36=_0x3c838f[_0x4566fe(0x195)])==null?void 0x0:_0x273e36['cs']},'cmd':_0x333fc0[_0x4566fe(0x262)]};case S['CollaborationEvent'][_0x4566fe(0x2e7)]:return{..._0x333fc0,'data':{..._0x3c838f,'data':(_0x36fec6=_0x3c838f[_0x4566fe(0x468)])==null?void 0x0:_0x36fec6['cs']},'cmd':_0x333fc0['cmd']};case S[_0x4566fe(0x56a)][_0x4566fe(0x452)]:return{..._0x333fc0,'data':{..._0x3c838f,'data':(_0x2edb2e=_0x3c838f[_0x4566fe(0x278)])==null?void 0x0:_0x2edb2e['cs']},'cmd':_0x333fc0['cmd']};case S[_0x4566fe(0x56a)]['CHANGESET_REJ']:return{..._0x333fc0,'data':{..._0x3c838f,'data':(_0x43bd27=_0x3c838f[_0x4566fe(0x380)])==null?void 0x0:_0x43bd27['cs']},'cmd':_0x333fc0[_0x4566fe(0x262)]};case S[_0x4566fe(0x56a)][_0x4566fe(0x49e)]:return{..._0x333fc0,'data':{..._0x3c838f,'data':(_0x4cac0f=_0x3c838f[_0x4566fe(0x50f)])==null?void 0x0:_0x4cac0f['cs']},'cmd':_0x333fc0[_0x4566fe(0x262)]};case S[_0x4566fe(0x56a)]['UPDATE_CURSOR']:return{..._0x333fc0,'data':{..._0x3c838f,'data':_0x3c838f[_0x4566fe(0x5f4)]},'cmd':_0x333fc0[_0x4566fe(0x262)]};case S[_0x4566fe(0x56a)][_0x4566fe(0x19d)]:return{..._0x333fc0,'data':{..._0x3c838f,'data':_0x3c838f['joinEvent']},'cmd':_0x333fc0['cmd']};case S['CollaborationEvent'][_0x4566fe(0x3b9)]:return{..._0x333fc0,'data':{..._0x3c838f,'data':_0x3c838f[_0x4566fe(0x502)]},'cmd':_0x333fc0[_0x4566fe(0x262)]};case S[_0x4566fe(0x56a)][_0x4566fe(0x46d)]:return{..._0x333fc0,'data':{..._0x3c838f,'data':_0x3c838f['liveShareNewHost']},'cmd':_0x333fc0[_0x4566fe(0x262)]};case S['CollaborationEvent'][_0x4566fe(0x4a2)]:case S[_0x4566fe(0x56a)]['LIVESHARE_OPERATION']:return{..._0x333fc0,'data':{..._0x3c838f,'data':_0x3c838f[_0x4566fe(0x5a6)]},'cmd':_0x333fc0['cmd']};case S[_0x4566fe(0x56a)][_0x4566fe(0x504)]:return{..._0x333fc0,'data':{..._0x3c838f,'data':_0x3c838f['liveShareNewHost']},'cmd':_0x333fc0[_0x4566fe(0x262)]};case S['CollaborationEvent'][_0x4566fe(0x3c4)]:return{..._0x333fc0,'data':_0x3c838f,'cmd':_0x333fc0[_0x4566fe(0x262)]};case S[_0x4566fe(0x56a)]['COMMENT_UPDATE']:return{..._0x333fc0,'data':{..._0x3c838f,'data':_0x3c838f['commentUpdateEvent']},'cmd':_0x333fc0[_0x4566fe(0x262)]};case S[_0x4566fe(0x56a)][_0x4566fe(0x1cf)]:return{..._0x333fc0,'data':{..._0x3c838f,'data':_0x3c838f['updatePermissionObjEvent']},'cmd':_0x333fc0[_0x4566fe(0x262)]};case S[_0x4566fe(0x56a)][_0x4566fe(0x2c6)]:return{..._0x333fc0,'data':{..._0x3c838f,'data':_0x3c838f['shouldCloseConn']},'cmd':_0x333fc0['cmd']};default:return _0x333fc0;}}default:return _0x333fc0;}}function hn(_0x39035c){const _0x53dcf7=_0x414e95;switch(_0x39035c[_0x53dcf7(0x262)]){case G[_0x53dcf7(0x61b)]:case G[_0x53dcf7(0x48c)]:return JSON[_0x53dcf7(0x21f)]({'cmd':_0x39035c[_0x53dcf7(0x262)],'routeKey':_0x39035c[_0x53dcf7(0x573)]});case G[_0x53dcf7(0x5ed)]:{let _0x34bf7b;switch(_0x39035c[_0x53dcf7(0x396)]['eventID']){case S['CollaborationEvent']['UPDATE_CURSOR']:{_0x34bf7b={'eventID':S['CollaborationEvent'][_0x53dcf7(0x529)],'updateCursorEvent':_0x39035c[_0x53dcf7(0x396)]['data']};break;}case S['CollaborationEvent'][_0x53dcf7(0x3b9)]:{_0x34bf7b={'eventID':S[_0x53dcf7(0x56a)][_0x53dcf7(0x3b9)],'leaveEvent':_0x39035c[_0x53dcf7(0x396)][_0x53dcf7(0x396)]};break;}case S[_0x53dcf7(0x56a)][_0x53dcf7(0x19d)]:{_0x34bf7b={'eventID':S[_0x53dcf7(0x56a)][_0x53dcf7(0x19d)],'joinEvent':_0x39035c[_0x53dcf7(0x396)][_0x53dcf7(0x396)]};break;}case S[_0x53dcf7(0x56a)]['LIVESHARE_NEW_HOST']:{_0x34bf7b={'eventID':S[_0x53dcf7(0x56a)][_0x53dcf7(0x46d)],'liveShareNewHost':_0x39035c[_0x53dcf7(0x396)]['data']};break;}case S[_0x53dcf7(0x56a)][_0x53dcf7(0x607)]:{_0x34bf7b={'eventID':S[_0x53dcf7(0x56a)][_0x53dcf7(0x607)],'liveShareOperation':_0x39035c['data'][_0x53dcf7(0x396)]};break;}case S['CollaborationEvent'][_0x53dcf7(0x504)]:{_0x34bf7b={'eventID':S[_0x53dcf7(0x56a)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x39035c['data'][_0x53dcf7(0x396)]};break;}case S[_0x53dcf7(0x56a)][_0x53dcf7(0x29a)]:{_0x34bf7b={'eventID':S[_0x53dcf7(0x56a)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x39035c['data'][_0x53dcf7(0x396)]};break;}case S[_0x53dcf7(0x56a)][_0x53dcf7(0x4a2)]:{_0x34bf7b={'eventID':S[_0x53dcf7(0x56a)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x34bf7b={'eventID':_0x39035c[_0x53dcf7(0x396)][_0x53dcf7(0x3d3)]};}return JSON[_0x53dcf7(0x21f)]({'cmd':_0x39035c['cmd'],'routeKey':_0x39035c['routeKey'],'collaMsg':_0x34bf7b});}case G['JOIN']:return JSON[_0x53dcf7(0x21f)]({'cmd':_0x39035c[_0x53dcf7(0x262)],'routeKey':_0x39035c[_0x53dcf7(0x573)],'joinReq':_0x39035c['data']});case G[_0x53dcf7(0x489)]:return JSON[_0x53dcf7(0x21f)]({'cmd':_0x39035c[_0x53dcf7(0x262)],'routeKey':_0x39035c['routeKey'],'leaveReq':_0x39035c[_0x53dcf7(0x396)]});default:throw new Error(_0x53dcf7(0x428));}}var Kn=Object[_0x414e95(0x47c)],qn=Object[_0x414e95(0x51f)],zn=(_0x206f03,_0x16604,_0xe46c5d,_0x5be72f)=>{const _0x31b680=_0x414e95;for(var _0x1b1cea=_0x5be72f>0x1?void 0x0:_0x5be72f?qn(_0x16604,_0xe46c5d):_0x16604,_0x5999d3=_0x206f03[_0x31b680(0x532)]-0x1,_0x2867ad;_0x5999d3>=0x0;_0x5999d3--)(_0x2867ad=_0x206f03[_0x5999d3])&&(_0x1b1cea=(_0x5be72f?_0x2867ad(_0x16604,_0xe46c5d,_0x1b1cea):_0x2867ad(_0x1b1cea))||_0x1b1cea);return _0x5be72f&&_0x1b1cea&&Kn(_0x16604,_0xe46c5d,_0x1b1cea),_0x1b1cea;},De=(_0x10bad5,_0x2d2d54)=>(_0xba0919,_0x5b2a04)=>_0x2d2d54(_0xba0919,_0x5b2a04,_0x10bad5);const Et=a[_0x414e95(0x2a2)](_0x414e95(0x399));function Xn(_0x4f2879,_0x87ac26,_0x46f5e2){const _0x5948d9=_0x414e95;return _0x4f2879+'/'+_0x87ac26+_0x5948d9(0x1a8)+_0x46f5e2+_0x5948d9(0x499);}exports[_0x414e95(0x4d8)]=class extends a['Disposable']{constructor(_0x3cee81,_0x1e21d6,_0x1d2085,_0x40ce5d,_0xcd865e){const _0x51d956=_0x414e95;super(),this[_0x51d956(0x34c)]=_0x3cee81,this[_0x51d956(0x27e)]=_0x1e21d6,this[_0x51d956(0x514)]=_0x1d2085,this['_logService']=_0x40ce5d,this[_0x51d956(0x189)]=_0xcd865e;}[_0x414e95(0x4a4)](_0x28efd8){const _0x54ce12=_0x414e95,_0x5626f7=this[_0x54ce12(0x27e)][_0x54ce12(0x4a4)](_0x28efd8);if(!_0x5626f7)throw new Error(_0x54ce12(0x2db));const _0x495912=new a[(_0x54ce12(0x2fe))](),_0x4f7cf4=new A[(_0x54ce12(0x37e))]();_0x495912[_0x54ce12(0x48f)](_0x5626f7[_0x54ce12(0x4fd)][_0x54ce12(0x2ac)](_0x55f79e=>_0x4f7cf4[_0x54ce12(0x370)](_0x55f79e))),_0x495912[_0x54ce12(0x48f)](a[_0x54ce12(0x5e5)](()=>_0x4f7cf4[_0x54ce12(0x1cb)]()));const _0x1c4d5c=new A[(_0x54ce12(0x37e))]();_0x495912['add'](_0x5626f7['error$'][_0x54ce12(0x2ac)](_0x3854b2=>_0x1c4d5c[_0x54ce12(0x370)](_0x3854b2))),_0x495912[_0x54ce12(0x48f)](a[_0x54ce12(0x5e5)](()=>_0x1c4d5c[_0x54ce12(0x1cb)]()));const _0x39ff36=new A['Subject']();_0x495912[_0x54ce12(0x48f)](_0x5626f7[_0x54ce12(0x2ae)][_0x54ce12(0x2ac)](_0x2b8883=>{const _0x7f62a6=ln(_0x2b8883);_0x39ff36['next'](_0x7f62a6);})),_0x495912[_0x54ce12(0x48f)](a[_0x54ce12(0x5e5)](()=>_0x39ff36[_0x54ce12(0x1cb)]()));let _0x21af5;const _0x33778c=()=>{const _0x2106a1=_0x54ce12;_0x1c4d5c['next'](new Event(_0x2106a1(0x309))),_0x4f7cf4['next'](new CloseEvent(_0x2106a1(0x309))),_0x21af5[_0x2106a1(0x530)]();};return _0x21af5={'memberID':'','close$':_0x4f7cf4[_0x54ce12(0x3b3)](),'error$':_0x1c4d5c[_0x54ce12(0x3b3)](),'open$':_0x5626f7[_0x54ce12(0x4db)],'message$':_0x39ff36[_0x54ce12(0x3b3)](),'send':_0x2733e8=>{const _0x2cc36c=_0x54ce12;if(_0x2733e8['cmd']===G['INGEST']){if(_0x2733e8['data']['eventID']===S[_0x2cc36c(0x56a)][_0x2cc36c(0x576)]){this[_0x2cc36c(0x613)](_0x21af5,_0x2733e8[_0x2cc36c(0x396)])[_0x2cc36c(0x23b)](_0x5a362a=>{this['_logService']['error'](_0x5a362a),_0x33778c();});return;}if(_0x2733e8[_0x2cc36c(0x396)][_0x2cc36c(0x3d3)]===S['CollaborationEvent'][_0x2cc36c(0x337)]){const _0x1341e3=_0x2733e8[_0x2cc36c(0x396)];this[_0x2cc36c(0x339)](_0x1341e3)[_0x2cc36c(0x3d6)](_0x119c00=>{const _0x120598=_0x2cc36c;_0x39ff36['next']({'cmd':G[_0x120598(0x1bf)],'code':Ct['OK'],'routeKey':_0x1341e3[_0x120598(0x396)][_0x120598(0x1e2)],'routeType':'','data':{'eventID':S[_0x120598(0x56a)][_0x120598(0x174)],'data':{'changesets':_0x119c00}}});})[_0x2cc36c(0x23b)](_0x5cbc37=>{const _0x5a7454=_0x2cc36c;this[_0x5a7454(0x1ec)]['error'](_0x5cbc37),_0x33778c();});return;}}_0x5626f7[_0x2cc36c(0x604)](hn(_0x2733e8));},'close':()=>{const _0x3a1e48=_0x54ce12;_0x5626f7[_0x3a1e48(0x530)](),_0x495912[_0x3a1e48(0x4c3)]();}},_0x21af5;}async[_0x414e95(0x613)](_0x4009ac,_0x8af7a6){const _0x3471e5=_0x414e95;var _0x2172eb,_0x5a3498;const {unitType:_0x92c3f3,unitID:_0x5d836b,changeset:_0x47d10d}=_0x8af7a6[_0x3471e5(0x396)],_0x363a5f={'unitID':_0x5d836b,'memberID':_0x4009ac[_0x3471e5(0x5d8)],'type':_0x92c3f3,'changeset':S[_0x3471e5(0x27c)](_0x47d10d)},_0x447a65=this[_0x3471e5(0x514)][_0x3471e5(0x2fa)](rn),_0x4f4a41=this[_0x3471e5(0x514)][_0x3471e5(0x2fa)](ne),_0x51d40a=Xn((_0x5a3498=(_0x2172eb=_0x4f4a41==null?void 0x0:_0x4f4a41[_0x3471e5(0x215)])!=null?_0x2172eb:_0x447a65)!=null?_0x5a3498:Vn,_0x92c3f3,_0x5d836b);try{await this[_0x3471e5(0x34c)]['post'](_0x51d40a,{'body':_0x363a5f});}catch(_0x475414){throw this[_0x3471e5(0x1ec)][_0x3471e5(0x456)]('[CollaborationSession]',_0x3471e5(0x302)),_0x475414;}}async[_0x414e95(0x339)](_0x1a70a4){const _0x34e18b=_0x414e95,{unitID:_0x5ddd64,from:_0x4363e6,to:_0x384c90,unitType:_0xbcc44b}=_0x1a70a4[_0x34e18b(0x396)];return(await this[_0x34e18b(0x189)][_0x34e18b(0x51e)]({'metadata':void 0x0},{'unitID':_0x5ddd64,'type':_0xbcc44b,'from':_0x4363e6,'to':_0x384c90}))['changesets'];}},exports[_0x414e95(0x4d8)]=zn([De(0x0,a[_0x414e95(0x4dd)](Q['HTTPService'])),De(0x1,a[_0x414e95(0x4dd)](Q[_0x414e95(0x356)])),De(0x2,a[_0x414e95(0x556)]),De(0x3,a[_0x414e95(0x178)]),De(0x4,S[_0x414e95(0x54f)])],exports[_0x414e95(0x4d8)]);const Jn=_0x414e95(0x462);function Zn(_0x224a26){const _0x45df91=_0x414e95;return JSON[_0x45df91(0x21f)](_0x224a26)[_0x45df91(0x532)];}class bt{constructor(){const _0x4be492=_0x414e95;I(this,_0x4be492(0x237),new A[(_0x4be492(0x37e))]()),I(this,_0x4be492(0x198),this[_0x4be492(0x237)][_0x4be492(0x3b3)]());}['onCommentUpdate'](_0x13207c){const _0x2bb98b=_0x414e95;this[_0x2bb98b(0x237)][_0x2bb98b(0x370)](_0x13207c);}}var Qn=Object[_0x414e95(0x47c)],ei=Object[_0x414e95(0x51f)],ti=(_0x4bf32a,_0x4a2a4b,_0x25edd6,_0x52be38)=>{const _0x296553=_0x414e95;for(var _0x967ad4=_0x52be38>0x1?void 0x0:_0x52be38?ei(_0x4a2a4b,_0x25edd6):_0x4a2a4b,_0x5ea246=_0x4bf32a[_0x296553(0x532)]-0x1,_0x31932f;_0x5ea246>=0x0;_0x5ea246--)(_0x31932f=_0x4bf32a[_0x5ea246])&&(_0x967ad4=(_0x52be38?_0x31932f(_0x4a2a4b,_0x25edd6,_0x967ad4):_0x31932f(_0x967ad4))||_0x967ad4);return _0x52be38&&_0x967ad4&&Qn(_0x4a2a4b,_0x25edd6,_0x967ad4),_0x967ad4;},Pt=(_0xe855c9,_0x3715da)=>(_0x17adc1,_0x69c4fe)=>_0x3715da(_0x17adc1,_0x69c4fe,_0xe855c9);exports[_0x414e95(0x45a)]=class extends a[_0x414e95(0x479)]{constructor(_0x191743,_0x2976dd){const _0xdb3a65=_0x414e95;super(),I(this,_0xdb3a65(0x39b),new Map()),(this[_0xdb3a65(0x588)]=_0x191743,this['_userManagerService']=_0x2976dd,this[_0xdb3a65(0x35b)](a[_0xdb3a65(0x5e5)](A[_0xdb3a65(0x49c)](this[_0xdb3a65(0x588)][_0xdb3a65(0x5d7)](a[_0xdb3a65(0x3ef)]['UNIVER_SHEET'])['pipe'](V[_0xdb3a65(0x4d1)](_0x3a7764=>_0x3a7764[_0xdb3a65(0x19f)]())),this[_0xdb3a65(0x588)][_0xdb3a65(0x5d7)](a[_0xdb3a65(0x3ef)]['UNIVER_DOC'])[_0xdb3a65(0x5b9)](V['map'](_0x1abc60=>_0x1abc60[_0xdb3a65(0x19f)]())),this[_0xdb3a65(0x588)][_0xdb3a65(0x5d7)](a[_0xdb3a65(0x3ef)][_0xdb3a65(0x546)])[_0xdb3a65(0x5b9)](V[_0xdb3a65(0x4d1)](_0x13f241=>_0x13f241[_0xdb3a65(0x19f)]())))[_0xdb3a65(0x2ac)](_0x1539fa=>this[_0xdb3a65(0x1b0)](_0x1539fa)))));}[_0x414e95(0x239)](_0x47084f){const _0x3bacf3=_0x414e95;this[_0x3bacf3(0x1fa)]['setCurrentUser'](_0x47084f);}['getCurrentUser'](){const _0x1f9ab2=_0x414e95;return this[_0x1f9ab2(0x1fa)][_0x1f9ab2(0x4a8)]();}[_0x414e95(0x453)](_0x17904a,_0x4dfeb6){const _0x531df9=_0x414e95;let _0x52c23c=this[_0x531df9(0x39b)]['get'](_0x17904a);_0x52c23c||(_0x52c23c=new ni(),this[_0x531df9(0x39b)][_0x531df9(0x5c7)](_0x17904a,_0x52c23c)),_0x52c23c['updateMember'](_0x4dfeb6);}[_0x414e95(0x3a8)](_0xbedf88,_0x1574f9){const _0x4b3183=_0x414e95,_0x32b21b=this['_roomMembers'][_0x4b3183(0x4e0)](_0xbedf88);_0x32b21b&&_0x32b21b[_0x4b3183(0x3a8)](_0x1574f9);}[_0x414e95(0x593)](_0x42e1ba){const _0x49e956=_0x414e95;return this[_0x49e956(0x39b)][_0x49e956(0x4e0)](_0x42e1ba);}['getMember'](_0x4782ff,_0x444da1){const _0xc9c91=_0x414e95,_0x30cc99=this['_roomMembers']['get'](_0x4782ff);if(_0x30cc99)return _0x30cc99[_0xc9c91(0x5a8)](_0x444da1);}[_0x414e95(0x1b0)](_0x1410c4){const _0x27e363=_0x414e95,_0xf44f7e=this['_roomMembers'][_0x27e363(0x4e0)](_0x1410c4);_0xf44f7e&&(_0xf44f7e[_0x27e363(0x4c3)](),this[_0x27e363(0x39b)]['delete'](_0x1410c4));}[_0x414e95(0x4c3)](){const _0x1afbdc=_0x414e95;this[_0x1afbdc(0x39b)]['forEach'](_0x2e6399=>_0x2e6399[_0x1afbdc(0x4c3)]()),this[_0x1afbdc(0x39b)][_0x1afbdc(0x2c5)]();}},exports[_0x414e95(0x45a)]=ti([Pt(0x0,a[_0x414e95(0x1df)]),Pt(0x1,a['Inject'](a[_0x414e95(0x290)]))],exports[_0x414e95(0x45a)]);class ni extends a[_0x414e95(0x479)]{constructor(){super(...arguments),I(this,'_members',new Map());}[_0x414e95(0x4c3)](){const _0x48aad9=_0x414e95;this[_0x48aad9(0x2af)]['clear']();}[_0x414e95(0x453)](_0x4b5096){const _0x128b2e=_0x414e95;this[_0x128b2e(0x2af)][_0x128b2e(0x5c7)](_0x4b5096[_0x128b2e(0x5d8)],_0x4b5096);}[_0x414e95(0x3a8)](_0x447218){const _0x269a07=_0x414e95;this[_0x269a07(0x2af)][_0x269a07(0x4da)](_0x447218);}[_0x414e95(0x5a8)](_0x4797ba){const _0x55ccd8=_0x414e95;return this[_0x55ccd8(0x2af)][_0x55ccd8(0x4e0)](_0x4797ba);}['getAllMembers'](){const _0x2f4c99=_0x414e95;return Array[_0x2f4c99(0x391)](this['_members'][_0x2f4c99(0x4a5)]());}}var ii=Object[_0x414e95(0x47c)],si=Object[_0x414e95(0x51f)],ri=(_0x2f3ce2,_0xca35c6,_0x300f81,_0x3508b2)=>{const _0x58167c=_0x414e95;for(var _0x2453ea=_0x3508b2>0x1?void 0x0:_0x3508b2?si(_0xca35c6,_0x300f81):_0xca35c6,_0x1fa18a=_0x2f3ce2[_0x58167c(0x532)]-0x1,_0x48492d;_0x1fa18a>=0x0;_0x1fa18a--)(_0x48492d=_0x2f3ce2[_0x1fa18a])&&(_0x2453ea=(_0x3508b2?_0x48492d(_0xca35c6,_0x300f81,_0x2453ea):_0x48492d(_0x2453ea))||_0x2453ea);return _0x3508b2&&_0x2453ea&&ii(_0xca35c6,_0x300f81,_0x2453ea),_0x2453ea;},de=(_0x5aeaee,_0x1db1fe)=>(_0x4424f9,_0x280f9b)=>_0x1db1fe(_0x4424f9,_0x280f9b,_0x5aeaee),re=(_0x4f6d5e=>(_0x4f6d5e[_0x4f6d5e[_0x414e95(0x52e)]=0x0]=_0x414e95(0x52e),_0x4f6d5e[_0x4f6d5e[_0x414e95(0x33e)]=0x1]=_0x414e95(0x33e),_0x4f6d5e[_0x4f6d5e['OFFLINE']=0x2]=_0x414e95(0x39c),_0x4f6d5e[_0x4f6d5e[_0x414e95(0x5c3)]=0x3]=_0x414e95(0x5c3),_0x4f6d5e))(re||{});exports[_0x414e95(0x4f4)]=class extends a[_0x414e95(0x58a)]{constructor(_0x12a972,_0x59e837,_0x515313,_0x461811,_0x32e98e,_0x3b13a6,_0x59fbb,_0x5ac6d7,_0x263a8b,_0x587054){const _0x5d9042=_0x414e95;super(),I(this,_0x5d9042(0x17a),new A['BehaviorSubject'](0x0)),I(this,_0x5d9042(0x1d5),this[_0x5d9042(0x17a)]['asObservable']()),I(this,_0x5d9042(0x401),new A[(_0x5d9042(0x37e))]()),I(this,_0x5d9042(0x5a4),this[_0x5d9042(0x401)][_0x5d9042(0x3b3)]()),I(this,'_socket'),I(this,_0x5d9042(0x61e)),I(this,_0x5d9042(0x3fc)),I(this,_0x5d9042(0x2f9),!0x1),I(this,_0x5d9042(0x50a),null),(this[_0x5d9042(0x59d)]=_0x12a972,this[_0x5d9042(0x1ec)]=_0x515313,this[_0x5d9042(0x4ec)]=_0x461811,this[_0x5d9042(0x3f2)]=_0x32e98e,this[_0x5d9042(0x514)]=_0x3b13a6,this[_0x5d9042(0x1ee)]=_0x59fbb,this[_0x5d9042(0x5c5)]=_0x5ac6d7,this[_0x5d9042(0x4ef)]=_0x263a8b,this[_0x5d9042(0x4e3)]=_0x587054,this[_0x5d9042(0x2f9)]=!!this['_telemetryService'],_0x59e837[_0x5d9042(0x5b9)](A[_0x5d9042(0x566)](this['dispose$']))[_0x5d9042(0x2ac)](_0x5d364e=>{const _0xb3866b=_0x5d9042;var _0x1502f4;typeof _0x5d364e>'u'||(this[_0xb3866b(0x398)]=_0x5d364e,_0x5d364e?(this[_0xb3866b(0x196)](_0x5d364e),this[_0xb3866b(0x61e)]=_0x5d364e[_0xb3866b(0x2ae)][_0xb3866b(0x2ac)](_0x37414c=>{const _0x25454b=_0xb3866b;_0x37414c[_0x25454b(0x573)]===this[_0x25454b(0x59d)]&&this[_0x25454b(0x51b)](_0x37414c);})):(this[_0xb3866b(0x41e)](),this[_0xb3866b(0x17a)][_0xb3866b(0x370)](0x2),(_0x1502f4=this[_0xb3866b(0x61e)])==null||_0x1502f4[_0xb3866b(0x2b6)](),this[_0xb3866b(0x61e)]=null));}),this[_0x5d9042(0x35b)](this[_0x5d9042(0x4ec)][_0x5d9042(0x5a2)](()=>{const _0x56a385=_0x5d9042;var _0x462bf1;(_0x462bf1=this[_0x56a385(0x398)])==null||_0x462bf1[_0x56a385(0x604)]({'cmd':G['LEAVE'],'data':{'roomID':this[_0x56a385(0x59d)]}});})));}get[_0x414e95(0x43e)](){const _0x47e414=_0x414e95;return this['_sessionStatus$'][_0x47e414(0x25e)]();}[_0x414e95(0x48e)](){const _0x41f6d7=_0x414e95;var _0xbdbf77,_0xc03de6;return(_0xc03de6=(_0xbdbf77=this['_socket'])==null?void 0x0:_0xbdbf77[_0x41f6d7(0x5d8)])!=null?_0xc03de6:null;}[_0x414e95(0x4c3)](){const _0x5e8c41=_0x414e95;super[_0x5e8c41(0x4c3)](),this[_0x5e8c41(0x2d0)][_0x5e8c41(0x370)](),this[_0x5e8c41(0x2d0)][_0x5e8c41(0x1cb)]();}[_0x414e95(0x530)](){const _0x5c2ce9=_0x414e95;var _0x349a25,_0x4c2663;this[_0x5c2ce9(0x41e)](),(_0x349a25=this['_socket'])==null||_0x349a25[_0x5c2ce9(0x604)]({'cmd':G[_0x5c2ce9(0x489)],'data':{'roomID':this[_0x5c2ce9(0x59d)]}}),(_0x4c2663=this[_0x5c2ce9(0x398)])==null||_0x4c2663['close'](),this['_event$'][_0x5c2ce9(0x1cb)](),this[_0x5c2ce9(0x17a)][_0x5c2ce9(0x1cb)](),this[_0x5c2ce9(0x4c3)]();}[_0x414e95(0x51b)](_0xd0b7f7){const _0x23f92d=_0x414e95;_0xd0b7f7[_0x23f92d(0x262)]===G[_0x23f92d(0x28b)]?this[_0x23f92d(0x372)](_0xd0b7f7):_0xd0b7f7[_0x23f92d(0x262)]===G['RECV']&&this[_0x23f92d(0x418)](_0xd0b7f7);}[_0x414e95(0x196)](_0x58aca5){const _0x1ecf03=_0x414e95;this[_0x1ecf03(0x17a)]['next'](0x1),_0x58aca5[_0x1ecf03(0x604)]({'cmd':G[_0x1ecf03(0x28b)],'routeKey':this[_0x1ecf03(0x59d)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x5f1e4e){const _0x8a7fd=_0x414e95;var _0x23a93d;if(_0x5f1e4e[_0x8a7fd(0x3d0)]===Ct[_0x8a7fd(0x5dc)]){this[_0x8a7fd(0x3f2)]['show']({'type':pe[_0x8a7fd(0x511)][_0x8a7fd(0x571)],'content':this[_0x8a7fd(0x1ee)]['t'](_0x8a7fd(0x220))}),this['_sessionStatus$'][_0x8a7fd(0x370)](0x2);return;}this[_0x8a7fd(0x17a)][_0x8a7fd(0x370)](0x3);const _0x2abee7=(_0x23a93d=_0x5f1e4e[_0x8a7fd(0x396)]['roomInfos'][this[_0x8a7fd(0x59d)]])==null?void 0x0:_0x23a93d['members'];_0x2abee7&&_0x2abee7[_0x8a7fd(0x36c)](_0x214778=>this[_0x8a7fd(0x5c5)][_0x8a7fd(0x453)](this[_0x8a7fd(0x59d)],_0x214778));}['_onRecvEvent'](_0x2e87ec){const _0x4eec5a=_0x414e95;try{const _0x50b1dc=_0x2e87ec[_0x4eec5a(0x396)];switch(_0x50b1dc['eventID']){case S[_0x4eec5a(0x56a)]['USERS_ENTER']:this[_0x4eec5a(0x344)](_0x50b1dc),this[_0x4eec5a(0x401)][_0x4eec5a(0x370)](_0x50b1dc);break;case S[_0x4eec5a(0x56a)][_0x4eec5a(0x3b9)]:this[_0x4eec5a(0x526)](_0x50b1dc),this[_0x4eec5a(0x401)][_0x4eec5a(0x370)](_0x50b1dc);break;case S[_0x4eec5a(0x56a)][_0x4eec5a(0x2e7)]:case S[_0x4eec5a(0x56a)][_0x4eec5a(0x49e)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x4eec5a(0x543)](),this['_event$'][_0x4eec5a(0x370)](_0x50b1dc);break;case S[_0x4eec5a(0x56a)]['MSG_FOR_ERROR']:this['_logService'][_0x4eec5a(0x456)](_0x4eec5a(0x5e8)+JSON[_0x4eec5a(0x21f)](_0x50b1dc)),this[_0x4eec5a(0x401)]['next'](_0x50b1dc);break;case S[_0x4eec5a(0x56a)]['COMMENT_UPDATE']:this[_0x4eec5a(0x4ef)][_0x4eec5a(0x59c)](_0x50b1dc[_0x4eec5a(0x396)]),this[_0x4eec5a(0x401)][_0x4eec5a(0x370)](_0x50b1dc);break;default:this['_event$'][_0x4eec5a(0x370)](_0x50b1dc);}}catch(_0x420190){this[_0x4eec5a(0x1ec)][_0x4eec5a(0x456)](_0x420190,_0x2e87ec);}}[_0x414e95(0x344)](_0xb85acb){const _0x29399d=_0x414e95;this['_memberService']['updateMember'](this['_unitID'],_0xb85acb[_0x29399d(0x396)]);}['_onUserLeave'](_0x59eb35){const _0x2e9d8c=_0x414e95;this[_0x2e9d8c(0x5c5)][_0x2e9d8c(0x3a8)](this[_0x2e9d8c(0x59d)],_0x59eb35[_0x2e9d8c(0x396)][_0x2e9d8c(0x5d8)]);}async[_0x414e95(0x604)](_0x4d20d2,_0x1fc9bf){const _0x5bee77=_0x414e95;if(this[_0x5bee77(0x43e)]!==0x3||!this[_0x5bee77(0x398)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x4d20d2[_0x5bee77(0x3d3)]===S['CollaborationEvent'][_0x5bee77(0x576)]&&(this[_0x5bee77(0x2fc)](),this[_0x5bee77(0x37b)](_0x4d20d2)),this['_socket']['send']({'cmd':G['INGEST'],'routeKey':_0x1fc9bf,'routeType':'','data':_0x4d20d2});}catch(_0x479a25){this[_0x5bee77(0x1ec)]['error'](_0x479a25);}}['_scheduleCollaborationTimeoutTimer'](){const _0x953a79=_0x414e95;var _0x1c198e;this['_collaborationTimeoutTimer']=window[_0x953a79(0x163)](()=>{const _0x1677eb=_0x953a79;this[_0x1677eb(0x3fc)]=null,this['_messageService'][_0x1677eb(0x562)]({'type':pe['MessageType'][_0x1677eb(0x4f7)],'content':this[_0x1677eb(0x1ee)]['t'](_0x1677eb(0x569))});},(_0x1c198e=this['_configService']['getConfig'](It))!=null?_0x1c198e:tn);}['_clearCollaborationTimeoutTimer'](){const _0x37d7d2=_0x414e95;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x37d7d2(0x3fc)]),this[_0x37d7d2(0x3fc)]=null);}[_0x414e95(0x37b)](_0x45816c){const _0xa2bf07=_0x414e95;if(!this[_0xa2bf07(0x2f9)])return;const {data:_0xca2b8}=_0x45816c,{unitID:_0x3b03d2,changeset:_0x480704}=_0xca2b8,{mutations:_0x539578,type:_0x11a3b3}=_0x480704;this[_0xa2bf07(0x50a)]={'unitId':_0x3b03d2,'type':_0x11a3b3,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Zn(_0x539578)};}[_0x414e95(0x38b)](){const _0x3ce821=_0x414e95;if(this[_0x3ce821(0x2f9)]){if(!this[_0x3ce821(0x50a)]){this['_logService']['error']('[CollaborationSession]',_0x3ce821(0x19c));return;}this[_0x3ce821(0x50a)][_0x3ce821(0x579)]=performance[_0x3ce821(0x520)](),this[_0x3ce821(0x50a)][_0x3ce821(0x282)]=this[_0x3ce821(0x50a)][_0x3ce821(0x579)]-this[_0x3ce821(0x50a)][_0x3ce821(0x275)],this['_telemetryService'][_0x3ce821(0x332)](Jn,this[_0x3ce821(0x50a)]),this[_0x3ce821(0x50a)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0xe7b848=_0x414e95;this[_0xe7b848(0x50a)]=null;}},exports[_0x414e95(0x4f4)]=ri([de(0x2,a[_0x414e95(0x178)]),de(0x3,te[_0x414e95(0x1f5)]),de(0x4,te[_0x414e95(0x1ac)]),de(0x5,a[_0x414e95(0x556)]),de(0x6,a[_0x414e95(0x4dd)](a['LocaleService'])),de(0x7,a['Inject'](exports[_0x414e95(0x45a)])),de(0x8,a[_0x414e95(0x4dd)](bt)),de(0x9,a[_0x414e95(0x3f3)](Nn['ITelemetryService']))],exports[_0x414e95(0x4f4)]);var oi=Object[_0x414e95(0x47c)],ai=Object[_0x414e95(0x51f)],ci=(_0x57db5d,_0x320c24,_0x536779,_0x4474fe)=>{const _0x97b26=_0x414e95;for(var _0x21e3c0=_0x4474fe>0x1?void 0x0:_0x4474fe?ai(_0x320c24,_0x536779):_0x320c24,_0x4b50ea=_0x57db5d[_0x97b26(0x532)]-0x1,_0x28c82d;_0x4b50ea>=0x0;_0x4b50ea--)(_0x28c82d=_0x57db5d[_0x4b50ea])&&(_0x21e3c0=(_0x4474fe?_0x28c82d(_0x320c24,_0x536779,_0x21e3c0):_0x28c82d(_0x21e3c0))||_0x21e3c0);return _0x4474fe&&_0x21e3c0&&oi(_0x320c24,_0x536779,_0x21e3c0),_0x21e3c0;},Ce=(_0x11584f,_0x50314c)=>(_0xf99c59,_0x33223b)=>_0x50314c(_0xf99c59,_0x33223b,_0x11584f);exports['CollaborationSessionService']=class extends a[_0x414e95(0x479)]{constructor(_0x5e75cd,_0xaf5700,_0x334f0d,_0x398d04,_0x1f4ca1,_0x15be0e){const _0x3aeca7=_0x414e95;super(),I(this,_0x3aeca7(0x1c6),new A[(_0x3aeca7(0x1a2))](void 0x0)),I(this,_0x3aeca7(0x21b),this['_socket$']['asObservable']()),I(this,_0x3aeca7(0x5cf),null),I(this,'_sessions',new Map()),I(this,_0x3aeca7(0x5ae),new A[(_0x3aeca7(0x1a2))](re[_0x3aeca7(0x52e)])),I(this,_0x3aeca7(0x19b),this[_0x3aeca7(0x5ae)]['asObservable']()),I(this,_0x3aeca7(0x355),!0x1),I(this,_0x3aeca7(0x3e6)),I(this,_0x3aeca7(0x3ac),0x0),I(this,_0x3aeca7(0x599)),I(this,'_timeoutTimer'),(this[_0x3aeca7(0x4f3)]=_0x5e75cd,this[_0x3aeca7(0x1ee)]=_0xaf5700,this[_0x3aeca7(0x3f2)]=_0x334f0d,this['_logService']=_0x398d04,this['_configService']=_0x1f4ca1,this[_0x3aeca7(0x50e)]=_0x15be0e,this[_0x3aeca7(0x322)]());}get[_0x414e95(0x398)](){const _0x41a246=_0x414e95;return this[_0x41a246(0x1c6)][_0x41a246(0x25e)]();}[_0x414e95(0x322)](){const _0x58f1ff=_0x414e95;this[_0x58f1ff(0x270)](),this[_0x58f1ff(0x281)]();}['dispose'](){const _0x5669f8=_0x414e95;super['dispose'](),this['_sessions'][_0x5669f8(0x36c)](_0x525118=>_0x525118[_0x5669f8(0x4c3)]()),this[_0x5669f8(0x3e3)][_0x5669f8(0x2c5)](),this[_0x5669f8(0x5ae)][_0x5669f8(0x1cb)]();}async['requireSession'](_0x41026c){const _0x3f9eb8=_0x414e95;if(this[_0x3f9eb8(0x3e3)][_0x3f9eb8(0x549)](_0x41026c))return this['_sessions'][_0x3f9eb8(0x4e0)](_0x41026c);this[_0x3f9eb8(0x405)]();const _0x651878=this[_0x3f9eb8(0x4f3)][_0x3f9eb8(0x23f)](exports[_0x3f9eb8(0x4f4)],_0x41026c,this[_0x3f9eb8(0x1c6)][_0x3f9eb8(0x3b3)]());return this[_0x3f9eb8(0x3e3)]['set'](_0x41026c,_0x651878),_0x651878;}[_0x414e95(0x173)](_0x47141b){const _0x59dc8d=_0x414e95;var _0x966c7;const _0x52b7e5=this[_0x59dc8d(0x3e3)]['get'](_0x47141b);_0x52b7e5&&(this['_sessions']['delete'](_0x47141b),_0x52b7e5['close']()),this[_0x59dc8d(0x3e3)][_0x59dc8d(0x5d6)]||(_0x966c7=this[_0x59dc8d(0x398)])==null||_0x966c7['close']();}[_0x414e95(0x47e)](){const _0xee9432=_0x414e95;this[_0xee9432(0x3ac)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0xee9432(0x3e6)]),this[_0xee9432(0x3e6)]=null),this[_0xee9432(0x5c8)]();}[_0x414e95(0x436)](){const _0x34a195=_0x414e95;var _0x3027ee,_0x13d83a;const _0x283557=this[_0x34a195(0x514)][_0x34a195(0x2fa)](Qt),_0x378741=this['_configService']['getConfig'](ne),_0x2544e5=(_0x13d83a=(_0x3027ee=_0x378741==null?void 0x0:_0x378741[_0x34a195(0x3d1)])!=null?_0x3027ee:_0x283557)!=null?_0x13d83a:Hn,_0x432891=this[_0x34a195(0x50e)][_0x34a195(0x4a4)](_0x2544e5);return this[_0x34a195(0x5cf)]=_0x432891,_0x432891;}[_0x414e95(0x405)](){const _0xf138d0=_0x414e95;var _0x2edc51,_0x3215a4;try{const _0x4d904d=(_0x3215a4=(_0x2edc51=this['_socket'])!=null?_0x2edc51:this[_0xf138d0(0x5cf)])!=null?_0x3215a4:this[_0xf138d0(0x436)]();if(_0x4d904d){const _0x359b14=_0x4d904d[_0xf138d0(0x604)];_0x4d904d['send']=_0x28c783=>(this['_rescheduleHeartbeat'](),_0x359b14['apply'](_0x4d904d,[_0x28c783])),_0x4d904d['message$']['subscribe'](_0x49ebf1=>this[_0xf138d0(0x595)](_0x4d904d,_0x49ebf1)),_0x4d904d[_0xf138d0(0x1b1)][_0xf138d0(0x5b9)](V['take'](0x1))[_0xf138d0(0x2ac)](_0x85b7ea=>this[_0xf138d0(0x1ec)][_0xf138d0(0x456)](_0xf138d0(0x23d),_0x85b7ea)),_0x4d904d[_0xf138d0(0x4db)]['pipe'](V[_0xf138d0(0x5e2)](0x1))['subscribe'](()=>{const _0xf66e66=_0xf138d0;this[_0xf66e66(0x274)](_0x4d904d);}),_0x4d904d[_0xf138d0(0x4fd)]['pipe'](V[_0xf138d0(0x5e2)](0x1))[_0xf138d0(0x2ac)](_0x4d4e16=>{const _0x20bc96=_0xf138d0;this[_0x20bc96(0x1ec)]['debug']('[CollaborationSessionService]',_0x20bc96(0x1fd),_0x4d4e16),this[_0x20bc96(0x4eb)]();});}}catch(_0x40c33b){this[_0xf138d0(0x1ec)][_0xf138d0(0x456)](_0x40c33b),this[_0xf138d0(0x4eb)]();}}[_0x414e95(0x274)](_0x524d1b){const _0x213346=_0x414e95;this[_0x213346(0x1ec)][_0x213346(0x437)](_0x213346(0x1e7),_0x213346(0x4ca)),_0x524d1b[_0x213346(0x604)]({'cmd':G[_0x213346(0x48c)]}),this[_0x213346(0x425)]();}['_listenToOfflineEvent'](){const _0x1abe62=_0x414e95;window['addEventListener'](_0x1abe62(0x485),()=>this[_0x1abe62(0x403)]());}['_onOffline'](){const _0x254878=_0x414e95;this[_0x254878(0x355)]=!0x1,this[_0x254878(0x5cf)]=null,this[_0x254878(0x5ae)][_0x254878(0x370)](re[_0x254878(0x39c)]),this[_0x254878(0x1c6)][_0x254878(0x370)](null),this[_0x254878(0x393)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0xe9b224=_0x414e95;var _0x5c9dea;this[_0xe9b224(0x403)](),this[_0xe9b224(0x3ac)]<((_0x5c9dea=this['_configService'][_0xe9b224(0x2fa)](nn))!=null?_0x5c9dea:Wn)?(this[_0xe9b224(0x3f2)]['show']({'key':'collaboration-session-retry','type':pe[_0xe9b224(0x511)]['Warning'],'content':this[_0xe9b224(0x1ee)]['t']('session.will-retry')}),this[_0xe9b224(0x5c8)]()):this[_0xe9b224(0x3f2)]['show']({'key':_0xe9b224(0x27d),'type':pe[_0xe9b224(0x511)][_0xe9b224(0x4f7)],'content':this[_0xe9b224(0x1ee)]['t'](_0xe9b224(0x4ae))});}['_listenToOnlineEvent'](){const _0x157be7=_0x414e95,_0x9585ee=()=>{const _0x2a03e4=_0x474b;this[_0x2a03e4(0x398)]||this[_0x2a03e4(0x47e)]();},_0x264375=()=>{const _0x4859ff=_0x474b;this['_socket']||document[_0x4859ff(0x2df)]===_0x4859ff(0x184)||this['reconnect']();};window['addEventListener'](_0x157be7(0x5bc),_0x9585ee),document[_0x157be7(0x41a)]('visibilitychange',_0x264375);}[_0x414e95(0x5c8)](){const _0x4a3576=_0x414e95;var _0x47723d;const _0x29ef54=this['_retryCount'],_0xc49dad=this[_0x4a3576(0x514)]['getConfig'](ne),_0x2a0a2e=_0x29ef54===0x0?0x0:((_0x47723d=_0xc49dad==null?void 0x0:_0xc49dad['retryConnectingInterval'])!=null?_0x47723d:kn)*0x2**_0x29ef54;this[_0x4a3576(0x3e6)]=window[_0x4a3576(0x163)](()=>{const _0x234989=_0x4a3576;clearTimeout(this[_0x234989(0x3e6)]),this[_0x234989(0x3e6)]=null,this[_0x234989(0x405)]();},_0x2a0a2e),this[_0x4a3576(0x3ac)]+=0x1;}[_0x414e95(0x595)](_0x3c873c,_0x1cd395){const _0x542c5a=_0x414e95,{cmd:_0x53e9d9}=_0x1cd395;_0x53e9d9===G[_0x542c5a(0x48c)]&&!this['_socketReady']&&(_0x3c873c[_0x542c5a(0x5d8)]=_0x1cd395['data'][_0x542c5a(0x5d8)],this['_socket$']['next'](_0x3c873c),this['_status$'][_0x542c5a(0x370)](re[_0x542c5a(0x5c3)]),this[_0x542c5a(0x355)]=!0x0,this[_0x542c5a(0x5cf)]=null),_0x53e9d9===G[_0x542c5a(0x61b)]&&this['_clearTimeoutTimer'](),this[_0x542c5a(0x425)]();}[_0x414e95(0x425)](){const _0x20c25d=_0x414e95;var _0x129f15;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this['_sendHeartbeat'](),(_0x129f15=this[_0x20c25d(0x514)]['getConfig'](en))!=null?_0x129f15:Bn);}['_sendHeartbeat'](){const _0x4953b9=_0x414e95;this['_socket'][_0x4953b9(0x604)]({'cmd':G['HEARTBEAT']}),this[_0x4953b9(0x333)]();}[_0x414e95(0x333)](){const _0x17c5b2=_0x414e95;var _0x2242c1;this[_0x17c5b2(0x324)]=window[_0x17c5b2(0x163)](()=>this[_0x17c5b2(0x4eb)](),(_0x2242c1=this['_configService'][_0x17c5b2(0x2fa)](It))!=null?_0x2242c1:tn);}['_clearHeartbeatTimer'](){const _0x9143f9=_0x414e95;this[_0x9143f9(0x599)]!=null&&(clearTimeout(this[_0x9143f9(0x599)]),this[_0x9143f9(0x599)]=null);}[_0x414e95(0x393)](){const _0x3f59fc=_0x414e95;this[_0x3f59fc(0x324)]!=null&&(clearTimeout(this[_0x3f59fc(0x324)]),this[_0x3f59fc(0x324)]=null);}},exports[_0x414e95(0x280)]=ci([Ce(0x0,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),Ce(0x1,a[_0x414e95(0x4dd)](a[_0x414e95(0x266)])),Ce(0x2,te['IMessageService']),Ce(0x3,a[_0x414e95(0x178)]),Ce(0x4,a[_0x414e95(0x556)]),Ce(0x5,Et)],exports[_0x414e95(0x280)]);var Y=[];for(var Xe=0x0;Xe<0x100;++Xe)Y['push']((Xe+0x100)[_0x414e95(0x197)](0x10)[_0x414e95(0x247)](0x1));function li(_0x1570f8,_0x43168d=0x0){const _0x40d58e=_0x414e95;return(Y[_0x1570f8[_0x43168d+0x0]]+Y[_0x1570f8[_0x43168d+0x1]]+Y[_0x1570f8[_0x43168d+0x2]]+Y[_0x1570f8[_0x43168d+0x3]]+'-'+Y[_0x1570f8[_0x43168d+0x4]]+Y[_0x1570f8[_0x43168d+0x5]]+'-'+Y[_0x1570f8[_0x43168d+0x6]]+Y[_0x1570f8[_0x43168d+0x7]]+'-'+Y[_0x1570f8[_0x43168d+0x8]]+Y[_0x1570f8[_0x43168d+0x9]]+'-'+Y[_0x1570f8[_0x43168d+0xa]]+Y[_0x1570f8[_0x43168d+0xb]]+Y[_0x1570f8[_0x43168d+0xc]]+Y[_0x1570f8[_0x43168d+0xd]]+Y[_0x1570f8[_0x43168d+0xe]]+Y[_0x1570f8[_0x43168d+0xf]])[_0x40d58e(0x4e7)]();}var xe,hi=new Uint8Array(0x10);function _i(){const _0x1f1c12=_0x414e95;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0x1f1c12(0x466)]&&crypto[_0x1f1c12(0x466)][_0x1f1c12(0x2ed)](crypto),!xe))throw new Error(_0x1f1c12(0x4cf));return xe(hi);}var ui=typeof crypto<'u'&&crypto[_0x414e95(0x3e0)]&&crypto[_0x414e95(0x3e0)][_0x414e95(0x2ed)](crypto);const Ut={'randomUUID':ui};function di(_0x23e186,_0x1a3915,_0x46bad3){const _0x28617e=_0x414e95;if(Ut['randomUUID']&&!_0x1a3915&&!_0x23e186)return Ut[_0x28617e(0x3e0)]();_0x23e186=_0x23e186||{};var _0x2916e8=_0x23e186[_0x28617e(0x4a6)]||(_0x23e186[_0x28617e(0x24b)]||_i)();return _0x2916e8[0x6]=_0x2916e8[0x6]&0xf|0x40,_0x2916e8[0x8]=_0x2916e8[0x8]&0x3f|0x80,li(_0x2916e8);}var fi=Object[_0x414e95(0x47c)],vi=Object[_0x414e95(0x51f)],mi=(_0x2f5de0,_0x28de70,_0x2b0b61,_0x379946)=>{const _0x16c11e=_0x414e95;for(var _0xd22f59=_0x379946>0x1?void 0x0:_0x379946?vi(_0x28de70,_0x2b0b61):_0x28de70,_0x4cc9b1=_0x2f5de0[_0x16c11e(0x532)]-0x1,_0x596d05;_0x4cc9b1>=0x0;_0x4cc9b1--)(_0x596d05=_0x2f5de0[_0x4cc9b1])&&(_0xd22f59=(_0x379946?_0x596d05(_0x28de70,_0x2b0b61,_0xd22f59):_0x596d05(_0xd22f59))||_0xd22f59);return _0x379946&&_0xd22f59&&fi(_0x28de70,_0x2b0b61,_0xd22f59),_0xd22f59;},Je=(_0x4735c2,_0x1c7607)=>(_0x528c0a,_0x54ef71)=>_0x1c7607(_0x528c0a,_0x54ef71,_0x4735c2);let Be=class{constructor(_0x177bcc,_0x54cebf,_0x1c63d1){const _0x25ca10=_0x414e95;this['_injector']=_0x177bcc,this[_0x25ca10(0x407)]=_0x54cebf,this[_0x25ca10(0x18e)]=_0x1c63d1;}['transformIMECache'](_0x5df695){this['_transformUndoRedoStack'](_0x5df695),this['_transformPreviousActiveRange'](_0x5df695);}[_0x414e95(0x2b8)](_0x15b13d){const _0x8f0785=_0x414e95,{unitID:_0x3639e5}=_0x15b13d,_0x67c856=this[_0x8f0785(0x18e)]['getRenderById'](_0x3639e5)[_0x8f0785(0x2b2)](Z['DocIMEInputManagerService']),{redoCache:_0x23da5e}=_0x67c856[_0x8f0785(0x394)]();if(_0x23da5e[_0x8f0785(0x532)]===0x0)return _0x15b13d;let _0x566118=a[_0x8f0785(0x608)][_0x8f0785(0x538)](_0x15b13d[_0x8f0785(0x426)][0x0]);for(let _0x98c56d=0x0;_0x98c56d<_0x23da5e[_0x8f0785(0x532)];_0x98c56d++){const _0x155dea={'id':_0x8f0785(0x52c),'params':{..._0x23da5e[_0x98c56d]}},_0x315225=this['_transformService'][_0x8f0785(0x2c8)](_0x566118,_0x155dea,!0x1);if(S[_0x8f0785(0x457)](_0x315225))throw _0x315225[_0x8f0785(0x456)];_0x566118=_0x315225['m1Prime'];}return{...a[_0x8f0785(0x608)][_0x8f0785(0x538)](_0x15b13d),'mutations':[_0x566118]};}[_0x414e95(0x1ca)](_0x49bbb4){const _0x5e2021=_0x414e95,{unitID:_0x37285c}=_0x49bbb4,_0x7b0f15=this[_0x5e2021(0x18e)][_0x5e2021(0x385)](_0x37285c)[_0x5e2021(0x2b2)](Z[_0x5e2021(0x33f)]),{undoCache:_0x1d1064,redoCache:_0x584ec5}=_0x7b0f15[_0x5e2021(0x394)]();if(_0x1d1064[_0x5e2021(0x532)]===0x0||_0x584ec5[_0x5e2021(0x532)]===0x0)return;const _0x449fad=[],_0x25b551=[];let _0x5cde93=a[_0x5e2021(0x608)][_0x5e2021(0x538)](_0x49bbb4[_0x5e2021(0x426)][0x0]),_0x1471ec=a[_0x5e2021(0x608)][_0x5e2021(0x538)](_0x49bbb4[_0x5e2021(0x426)][0x0]);for(let _0x4bc09b=_0x1d1064['length']-0x1;_0x4bc09b>=0x0;_0x4bc09b--){const _0x4625a5={'id':_0x5e2021(0x52c),'params':{..._0x1d1064[_0x4bc09b]}},_0xafbbb0={'id':_0x5e2021(0x52c),'params':{..._0x584ec5[_0x4bc09b]}},_0x2fba62=this[_0x5e2021(0x407)][_0x5e2021(0x2c8)](_0x5cde93,_0x4625a5,!0x1),_0x4867f7=this[_0x5e2021(0x407)][_0x5e2021(0x2c8)](_0x1471ec,_0xafbbb0,!0x1);if(S[_0x5e2021(0x457)](_0x2fba62))throw _0x2fba62[_0x5e2021(0x456)];if(S[_0x5e2021(0x457)](_0x4867f7))throw _0x4867f7[_0x5e2021(0x456)];_0x449fad[_0x5e2021(0x617)](_0x2fba62['m2Prime'][_0x5e2021(0x537)]),_0x25b551['unshift'](_0x4867f7[_0x5e2021(0x400)]['params']),_0x5cde93=_0x2fba62['m1Prime'],_0x1471ec=_0x4867f7[_0x5e2021(0x5fb)];}_0x7b0f15[_0x5e2021(0x47b)]({'undoCache':_0x449fad,'redoCache':_0x25b551});}[_0x414e95(0x1c5)](_0x4958d8){const _0x53f991=_0x414e95,{unitID:_0x2b4c26}=_0x4958d8,_0x40b850=this[_0x53f991(0x18e)][_0x53f991(0x385)](_0x2b4c26)[_0x53f991(0x2b2)](Z[_0x53f991(0x33f)]),_0x37fd6e=_0x40b850['getActiveRange']();if(_0x37fd6e==null)return;const _0x3340a9=[{'id':_0x53f991(0x52c),'params':{'unitId':_0x4958d8[_0x53f991(0x1e2)],'actions':null,'textRanges':[_0x37fd6e]}}],_0x41cc27=this['_transformService'][_0x53f991(0x4a7)](_0x4958d8,_0x3340a9);if(!S[_0x53f991(0x5c4)](_0x41cc27))throw _0x41cc27[_0x53f991(0x456)];const _0x32dee3=_0x41cc27[_0x53f991(0x400)][0x0][_0x53f991(0x537)]['textRanges'];Array['isArray'](_0x32dee3)&&_0x32dee3[_0x53f991(0x532)]&&_0x40b850[_0x53f991(0x261)](_0x32dee3[0x0]);}};Be=mi([Je(0x0,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),Je(0x1,S[_0x414e95(0x4f2)]),Je(0x2,K[_0x414e95(0x199)])],Be);var Si=Object[_0x414e95(0x47c)],pi=Object[_0x414e95(0x51f)],gi=(_0x1f31f6,_0x168633,_0x4bf526,_0x205175)=>{const _0x181184=_0x414e95;for(var _0x27cca4=_0x205175>0x1?void 0x0:_0x205175?pi(_0x168633,_0x4bf526):_0x168633,_0x1c8f72=_0x1f31f6[_0x181184(0x532)]-0x1,_0x48dbe9;_0x1c8f72>=0x0;_0x1c8f72--)(_0x48dbe9=_0x1f31f6[_0x1c8f72])&&(_0x27cca4=(_0x205175?_0x48dbe9(_0x168633,_0x4bf526,_0x27cca4):_0x48dbe9(_0x27cca4))||_0x27cca4);return _0x205175&&_0x27cca4&&Si(_0x168633,_0x4bf526,_0x27cca4),_0x27cca4;},we=(_0x4ccf70,_0x284de5)=>(_0x100ba0,_0x4a7df3)=>_0x284de5(_0x100ba0,_0x4a7df3,_0x4ccf70);exports[_0x414e95(0x3a2)]=class extends a['Disposable']{constructor(_0x15bc3b,_0x51b268,_0x20354e,_0x2e95ad,_0xbdc166){const _0x13efbe=_0x414e95;super(),I(this,'_cachedData',new Map()),I(this,_0x13efbe(0x3ed),new Map()),I(this,'_disabled',!0x1),(this[_0x13efbe(0x514)]=_0x15bc3b,this['_localStorageService']=_0x51b268,this[_0x13efbe(0x4ec)]=_0x20354e,this[_0x13efbe(0x1ee)]=_0x2e95ad,this[_0x13efbe(0x5f6)]=_0xbdc166,this[_0x13efbe(0x46c)]());}['disableLocalCache'](){const _0x4e9d5d=_0x414e95;this[_0x4e9d5d(0x2a1)]=!0x0;}[_0x414e95(0x582)](){const _0x20f9b7=_0x414e95;this[_0x20f9b7(0x2a1)]=!0x1;}[_0x414e95(0x4c3)](){const _0x2f08fc=_0x414e95;this[_0x2f08fc(0x378)]()[_0x2f08fc(0x3d6)](()=>super['dispose']());}async[_0x414e95(0x2ce)](_0x53394f){const _0x588e91=_0x414e95;return this['_disabled']?null:this[_0x588e91(0x557)][_0x588e91(0x52b)](Mt(_0x53394f));}async['saveOfflineData'](_0x3ed3ae,_0x8aeb77){const _0x2f44e6=_0x414e95;return!!this[_0x2f44e6(0x557)][_0x2f44e6(0x179)](_0x3ed3ae,_0x8aeb77);}['updateOfflineData'](_0x298e83,_0x49e2a8,_0x3a4bcb,_0x176e2f){const _0x5160a2=_0x414e95,_0x3e493f=this['_revisionService']['getCurrentRevOfUnit'](_0x298e83);this[_0x5160a2(0x51d)][_0x5160a2(0x5c7)](_0x298e83,{'unitID':_0x298e83,'type':_0x49e2a8,'awaitingChangeset':_0x3a4bcb,'mutations':_0x176e2f,'rev':_0x3e493f}),this[_0x5160a2(0x3ed)][_0x5160a2(0x549)](_0x298e83)||this['_scheduleSaving'](_0x298e83);}[_0x414e95(0x621)](_0x46b90e){const _0x191763=_0x414e95,_0x14a69e=this[_0x191763(0x1b5)]();_0x14a69e===0x0?this[_0x191763(0x2a8)](_0x46b90e):this[_0x191763(0x3ed)][_0x191763(0x5c7)](_0x46b90e,setTimeout(()=>this['_saveCache'](_0x46b90e),_0x14a69e));}['_getSaveTimeout'](){const _0x5d8df8=_0x414e95;var _0xa884a4;return(_0xa884a4=this[_0x5d8df8(0x514)][_0x5d8df8(0x2fa)](sn))!=null?_0xa884a4:Fn;}['_saveCache'](_0x280ff7){const _0x29cada=_0x414e95,_0x4d653b=this[_0x29cada(0x3ed)][_0x29cada(0x4e0)](_0x280ff7);return _0x4d653b!==void 0x0&&window[_0x29cada(0x416)](_0x4d653b),this[_0x29cada(0x557)]['setItem'](Mt(_0x280ff7),this[_0x29cada(0x51d)][_0x29cada(0x4e0)](_0x280ff7))['then'](()=>this[_0x29cada(0x3ed)][_0x29cada(0x4da)](_0x280ff7));}async[_0x414e95(0x378)](){const _0x49feb2=_0x414e95,_0x3db92b=[];this[_0x49feb2(0x3ed)][_0x49feb2(0x36c)]((_0x5f447d,_0x3ac149)=>{const _0x5a368c=_0x49feb2;window[_0x5a368c(0x416)](_0x5f447d),_0x3db92b[_0x5a368c(0x375)](this[_0x5a368c(0x2a8)](_0x3ac149)[_0x5a368c(0x3d6)](()=>{const _0x5771b9=_0x5a368c;this[_0x5771b9(0x3ed)][_0x5771b9(0x4da)](_0x3ac149);}));}),await Promise['all'](_0x3db92b);}[_0x414e95(0x46c)](){const _0x1f76e5=_0x414e95;this[_0x1f76e5(0x35b)](this['_beforeCloseService'][_0x1f76e5(0x180)](()=>{const _0x2393cc=_0x1f76e5;if(this['_saveTaskMap'][_0x2393cc(0x5d6)])return this[_0x2393cc(0x1ee)]['t'](_0x2393cc(0x2dc));}));}},exports[_0x414e95(0x3a2)]=gi([we(0x0,a[_0x414e95(0x556)]),we(0x1,a[_0x414e95(0x3dd)]),we(0x2,te[_0x414e95(0x1f5)]),we(0x3,a[_0x414e95(0x4dd)](a[_0x414e95(0x266)])),we(0x4,a[_0x414e95(0x4dd)](S[_0x414e95(0x392)]))],exports[_0x414e95(0x3a2)]);function Mt(_0x40bb6b){const _0x23c466=_0x414e95;return _0x23c466(0x5b5)+_0x40bb6b;}var Ii=Object[_0x414e95(0x47c)],Ci=Object[_0x414e95(0x51f)],Ei=(_0x460494,_0x23c468,_0x452ab3,_0xea862f)=>{const _0x2532bd=_0x414e95;for(var _0x3a0452=_0xea862f>0x1?void 0x0:_0xea862f?Ci(_0x23c468,_0x452ab3):_0x23c468,_0x3401f3=_0x460494[_0x2532bd(0x532)]-0x1,_0x526198;_0x3401f3>=0x0;_0x3401f3--)(_0x526198=_0x460494[_0x3401f3])&&(_0x3a0452=(_0xea862f?_0x526198(_0x23c468,_0x452ab3,_0x3a0452):_0x526198(_0x3a0452))||_0x3a0452);return _0xea862f&&_0x3a0452&&Ii(_0x23c468,_0x452ab3,_0x3a0452),_0x3a0452;},Ze=(_0x20964c,_0xf599df)=>(_0x63d8e2,_0x1d5429)=>_0xf599df(_0x63d8e2,_0x1d5429,_0x20964c);function bi(_0xe67743){const {unitID:_0x171416,mutations:_0x461dbf}=_0xe67743;return{'unitId':_0x171416,'subUnitId':_0x461dbf[0x0]['params']['subUnitId']};}let ke=class{constructor(_0x3602ec,_0x1799cf,_0x26a86d){const _0x5572f8=_0x414e95;this[_0x5572f8(0x4f3)]=_0x3602ec,this[_0x5572f8(0x407)]=_0x1799cf,this[_0x5572f8(0x1c3)]=_0x26a86d;}[_0x414e95(0x5b3)](_0x425ec1){const _0x1853d2=_0x414e95;var _0x41210b,_0x29960c,_0x16ddba,_0x5c294c;const _0x5b3be4=this['_injector'][_0x1853d2(0x4e0)](k[_0x1853d2(0x193)]),{unitId:_0x53105e,subUnitId:_0x25b747}=bi(_0x425ec1),_0x33bfb4=_0x5b3be4[_0x1853d2(0x2f8)](_0x53105e)[_0x1853d2(0x432)](),_0x5cfcda=(_0x29960c=(_0x41210b=this[_0x1853d2(0x1c3)][_0x1853d2(0x32f)](_0x53105e))==null?void 0x0:_0x41210b['getActiveSheet']())==null?void 0x0:_0x29960c[_0x1853d2(0x5c1)]();if(_0x33bfb4[_0x1853d2(0x532)]===0x0||!_0x53105e||!_0x25b747)return;const _0x32a0ca=[{'id':k['SetSelectionsOperation']['id'],'params':{'unitId':_0x53105e,'subUnitId':_0x5cfcda,'selections':a[_0x1853d2(0x608)][_0x1853d2(0x538)](_0x33bfb4)}}],_0x5cd370=this[_0x1853d2(0x407)][_0x1853d2(0x4a7)](_0x425ec1,_0x32a0ca);if(!S[_0x1853d2(0x5c4)](_0x5cd370))throw _0x5cd370[_0x1853d2(0x456)];const _0x4b8a79=(_0x5c294c=(_0x16ddba=_0x5cd370[_0x1853d2(0x400)][0x0])==null?void 0x0:_0x16ddba[_0x1853d2(0x537)])==null?void 0x0:_0x5c294c[_0x1853d2(0x3a4)];if(Array[_0x1853d2(0x2ec)](_0x4b8a79)&&_0x4b8a79[_0x1853d2(0x532)]){if(_0x4b8a79[_0x1853d2(0x532)]===_0x32a0ca[0x0][_0x1853d2(0x537)]['selections'][_0x1853d2(0x532)]&&_0x4b8a79[_0x1853d2(0x2cd)]((_0x416ea1,_0xa3b081)=>a[_0x1853d2(0x22c)][_0x1853d2(0x541)](_0x416ea1[_0x1853d2(0x50c)],_0x32a0ca[0x0][_0x1853d2(0x537)][_0x1853d2(0x3a4)][_0xa3b081]['range'])))return;this[_0x1853d2(0x4f3)]['get'](a[_0x1853d2(0x1ea)])[_0x1853d2(0x18f)](k[_0x1853d2(0x291)]['id'],{'unitId':_0x53105e,'subUnitId':_0x5cfcda,'selections':_0x4b8a79});}}};ke=Ei([Ze(0x0,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),Ze(0x1,S[_0x414e95(0x4f2)]),Ze(0x2,a[_0x414e95(0x1df)])],ke);const qe=a[_0x414e95(0x2a2)](_0x414e95(0x252));var _n=(_0x252cd0=>(_0x252cd0[_0x252cd0['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x414e95(0x5db),_0x252cd0[_0x252cd0[_0x414e95(0x17b)]=0x1]=_0x414e95(0x17b),_0x252cd0))(_n||{});const At=0x7530,Nt='ACTIVE_UNIT_EVENT_CHANNEL';class Ti extends a[_0x414e95(0x479)]{constructor(){const _0x15d74b=_0x414e95;super(),I(this,_0x15d74b(0x606),a[_0x15d74b(0x608)][_0x15d74b(0x4f1)]()),I(this,_0x15d74b(0x17c),new Set()),I(this,_0x15d74b(0x4e5),new Map()),I(this,_0x15d74b(0x3c5),null),I(this,_0x15d74b(0x598),new Map()),I(this,_0x15d74b(0x4c4),new Map()),this[_0x15d74b(0x600)]();}[_0x414e95(0x4c3)](){const _0x38f916=_0x414e95;super[_0x38f916(0x4c3)](),this[_0x38f916(0x598)][_0x38f916(0x36c)]((_0x3b1b51,_0x2ccb68)=>this['_removeClearOtherTimer'](_0x2ccb68)),this['_heartbeatTimer']&&window[_0x38f916(0x584)](this[_0x38f916(0x3c5)]);}[_0x414e95(0x3cc)](_0xab59ec){const _0x559363=_0x414e95;return this[_0x559363(0x2fd)](_0xab59ec)[_0x559363(0x5b9)](A[_0x559363(0x226)]());}[_0x414e95(0x35e)](_0x1dd351){const _0x22c9e5=_0x414e95;this[_0x22c9e5(0x17c)]['size']===0x0&&this[_0x22c9e5(0x260)](),this['_selfUnitIDs']['add'](_0x1dd351),this['_send']({'type':0x0,'memberID':this[_0x22c9e5(0x606)],'unitIDs':[_0x1dd351],'isForwarded':!0x1});}[_0x414e95(0x3ec)](_0x8c47e){const _0x563f0c=_0x414e95;this[_0x563f0c(0x17c)][_0x563f0c(0x4da)](_0x8c47e),this[_0x563f0c(0x17c)][_0x563f0c(0x5d6)]===0x0&&this[_0x563f0c(0x3c5)]&&window[_0x563f0c(0x584)](this[_0x563f0c(0x3c5)]);}['_init'](){const _0x5e5243=_0x414e95;this[_0x5e5243(0x35b)](a[_0x5e5243(0x5e5)](A[_0x5e5243(0x2f1)](window,_0x5e5243(0x515))[_0x5e5243(0x2ac)](_0x11c927=>{const _0x3e9d8f=_0x5e5243;if(_0x11c927[_0x3e9d8f(0x206)]!==Nt||!_0x11c927[_0x3e9d8f(0x3af)])return;const _0x355511=JSON['parse'](_0x11c927[_0x3e9d8f(0x3af)]);this[_0x3e9d8f(0x37f)](_0x355511);}))),window[_0x5e5243(0x41a)]('unload',()=>this[_0x5e5243(0x31a)]({'type':0x1,'memberID':this[_0x5e5243(0x606)],'unitIDs':Array[_0x5e5243(0x391)](this[_0x5e5243(0x17c)])}));}[_0x414e95(0x37f)](_0x153bb3){const _0x579cfa=_0x414e95;switch(_0x153bb3[_0x579cfa(0x284)]){case 0x0:this['_handleJoinEvent'](_0x153bb3);break;case 0x1:this[_0x579cfa(0x459)](_0x153bb3);break;case 0x2:this[_0x579cfa(0x383)](_0x153bb3);break;}}[_0x414e95(0x1da)](_0x3110c1){const _0x1177c4=_0x414e95,{unitIDs:_0x27c054,memberID:_0x2e5ce7,isForwarded:_0x135c39}=_0x3110c1;_0x27c054['forEach'](_0x2fc94e=>{const _0x525af1=_0x474b;if(!_0x135c39&&this['_unitOnClients'][_0x525af1(0x549)](_0x2fc94e)&&this[_0x525af1(0x2fd)](_0x2fc94e)[_0x525af1(0x370)](0x1),!this['_unitOnClients'][_0x525af1(0x549)](_0x2fc94e)||!this[_0x525af1(0x4e5)][_0x525af1(0x4e0)](_0x2fc94e)[_0x525af1(0x549)](_0x2e5ce7)){const _0x1853ad=this[_0x525af1(0x4e5)][_0x525af1(0x4e0)](_0x2fc94e)||new Set();_0x1853ad[_0x525af1(0x48f)](_0x2e5ce7),this[_0x525af1(0x4e5)]['set'](_0x2fc94e,_0x1853ad),this[_0x525af1(0x2dd)](_0x2e5ce7);}}),_0x135c39||this[_0x1177c4(0x31a)]({'type':0x0,'memberID':this[_0x1177c4(0x606)],'unitIDs':[...this[_0x1177c4(0x17c)]],'isForwarded':!0x0});}[_0x414e95(0x2dd)](_0x51cd74){const _0x20ad5d=_0x414e95;this[_0x20ad5d(0x5a9)](_0x51cd74);const _0x35ab68=window['setTimeout'](()=>{const _0x18fb11=_0x20ad5d;this[_0x18fb11(0x4e5)][_0x18fb11(0x36c)](_0x191972=>{const _0x18d766=_0x18fb11;_0x191972[_0x18d766(0x4da)](_0x51cd74);});},At*0x2);this['_clearOtherTimers'][_0x20ad5d(0x5c7)](_0x51cd74,_0x35ab68);}['_removeClearOtherTimer'](_0x57bfa6){const _0x171e11=_0x414e95;if(this['_clearOtherTimers'][_0x171e11(0x549)](_0x57bfa6)){const _0x341dc6=this[_0x171e11(0x598)][_0x171e11(0x4e0)](_0x57bfa6);_0x341dc6&&window[_0x171e11(0x416)](_0x341dc6),this['_clearOtherTimers'][_0x171e11(0x5c7)](_0x57bfa6,null);}}[_0x414e95(0x459)](_0x3e195f){const _0x4cf773=_0x414e95,{memberID:_0x4f3a3,unitIDs:_0x51320a}=_0x3e195f;_0x51320a[_0x4cf773(0x36c)](_0x1613c1=>{const _0x320304=_0x4cf773;var _0x56eb49;const _0x1aa9f8=this[_0x320304(0x4e5)][_0x320304(0x4e0)](_0x1613c1);_0x1aa9f8&&(_0x1aa9f8[_0x320304(0x4da)](_0x4f3a3),(_0x56eb49=this['_ensureSubject'](_0x1613c1))==null||_0x56eb49[_0x320304(0x370)](_0x1aa9f8[_0x320304(0x5d6)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4f3a3);}[_0x414e95(0x383)](_0x79a57){const _0x1594fd=_0x414e95;this[_0x1594fd(0x2dd)](_0x79a57['memberID']);}[_0x414e95(0x31a)](_0x5eb18e){const _0x5ab724=_0x414e95;localStorage[_0x5ab724(0x179)](Nt,JSON[_0x5ab724(0x21f)](_0x5eb18e));}[_0x414e95(0x260)](){const _0x21f468=_0x414e95;this[_0x21f468(0x3c5)]=window[_0x21f468(0x5a3)](()=>{const _0x1d7fd9=_0x21f468;this['_send']({'type':0x2,'memberID':this[_0x1d7fd9(0x606)]});},At);}['_ensureSubject'](_0x15fd9f){const _0x376498=_0x414e95;return this[_0x376498(0x4c4)][_0x376498(0x549)](_0x15fd9f)||this[_0x376498(0x4c4)][_0x376498(0x5c7)](_0x15fd9f,new A[(_0x376498(0x1a2))](0x0)),this[_0x376498(0x4c4)][_0x376498(0x4e0)](_0x15fd9f);}}var Ri=Object[_0x414e95(0x47c)],yi=Object[_0x414e95(0x51f)],Oi=(_0x4c135d,_0x96c9d2,_0x371526,_0x572b99)=>{const _0x44e6e9=_0x414e95;for(var _0x12c113=_0x572b99>0x1?void 0x0:_0x572b99?yi(_0x96c9d2,_0x371526):_0x96c9d2,_0x59169f=_0x4c135d[_0x44e6e9(0x532)]-0x1,_0x207364;_0x59169f>=0x0;_0x59169f--)(_0x207364=_0x4c135d[_0x59169f])&&(_0x12c113=(_0x572b99?_0x207364(_0x96c9d2,_0x371526,_0x12c113):_0x207364(_0x12c113))||_0x12c113);return _0x572b99&&_0x12c113&&Ri(_0x96c9d2,_0x371526,_0x12c113),_0x12c113;},Qe=(_0x4974cb,_0x2bff08)=>(_0x350306,_0x4b9068)=>_0x2bff08(_0x350306,_0x4b9068,_0x4974cb);let We=class{constructor(_0x329fbf,_0x3830e7,_0x31635a){const _0x3e3eac=_0x414e95;this[_0x3e3eac(0x4f3)]=_0x329fbf,this[_0x3e3eac(0x407)]=_0x3830e7,this[_0x3e3eac(0x254)]=_0x31635a;}[_0x414e95(0x1c1)](_0x26e682){this['_transformHistoryAndStateStack'](_0x26e682);}[_0x414e95(0x2b8)](_0x128e6b){const _0xe5b6af=_0x414e95,{unitID:_0x26214d}=_0x128e6b,{collaboration:_0x8e5cb5}=this[_0xe5b6af(0x254)][_0xe5b6af(0x590)](_0x26214d);if(_0x8e5cb5[_0xe5b6af(0x532)]===0x0)return _0x128e6b;let _0x179754=a[_0xe5b6af(0x608)][_0xe5b6af(0x538)](_0x128e6b[_0xe5b6af(0x426)][0x0]);for(let _0x59483b=0x0;_0x59483b<_0x8e5cb5[_0xe5b6af(0x532)];_0x59483b++){const _0x2d753d={'id':_0xe5b6af(0x52c),'params':{'unitId':_0x8e5cb5[_0x59483b][_0xe5b6af(0x581)],..._0x8e5cb5[_0x59483b][_0xe5b6af(0x51c)]}},_0x19549b=this[_0xe5b6af(0x407)][_0xe5b6af(0x2c8)](_0x179754,_0x2d753d,!0x1);if(S[_0xe5b6af(0x457)](_0x19549b))throw _0x19549b[_0xe5b6af(0x456)];_0x179754=_0x19549b[_0xe5b6af(0x5fb)];}return{...a[_0xe5b6af(0x608)][_0xe5b6af(0x538)](_0x128e6b),'mutations':[_0x179754]};}[_0x414e95(0x568)](_0x476967){const _0x22d751=_0x414e95,{unitID:_0x362250}=_0x476967,{history:_0x9df1df,collaboration:_0x2fc6f6}=this[_0x22d751(0x254)][_0x22d751(0x590)](_0x362250);if(_0x9df1df[_0x22d751(0x532)]===0x0&&_0x2fc6f6[_0x22d751(0x532)]===0x0)return;const _0x1161a6=[],_0x13f099=[];let _0x5ef114=a[_0x22d751(0x608)][_0x22d751(0x538)](_0x476967['mutations'][0x0]),_0x10a491=a[_0x22d751(0x608)][_0x22d751(0x538)](_0x476967[_0x22d751(0x426)][0x0]);for(let _0x77bbfa=_0x9df1df['length']-0x1;_0x77bbfa>=0x0;_0x77bbfa--){const _0x69fbcb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x9df1df[_0x77bbfa][_0x22d751(0x581)],..._0x9df1df[_0x77bbfa][_0x22d751(0x3e7)]}},_0x2b16ea={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x9df1df[_0x77bbfa][_0x22d751(0x581)],..._0x9df1df[_0x77bbfa][_0x22d751(0x51c)]}},_0x4e0249=this['_transformService'][_0x22d751(0x2c8)](_0x5ef114,_0x69fbcb,!0x1),_0x3b23ad=this[_0x22d751(0x407)]['transformMutation'](_0x10a491,_0x2b16ea,!0x1);if(S[_0x22d751(0x457)](_0x4e0249))throw _0x4e0249[_0x22d751(0x456)];if(S['isTransformMutationFailure'](_0x3b23ad))throw _0x3b23ad[_0x22d751(0x456)];_0x1161a6[_0x22d751(0x617)]({..._0x9df1df[_0x77bbfa],'undoState':_0x4e0249[_0x22d751(0x400)]['params'],'redoState':_0x3b23ad['m2Prime']['params']}),_0x5ef114=_0x4e0249['m1Prime'],_0x10a491=_0x3b23ad['m1Prime'];}_0x5ef114=a[_0x22d751(0x608)][_0x22d751(0x538)](_0x476967[_0x22d751(0x426)][0x0]),_0x10a491=a['Tools'][_0x22d751(0x538)](_0x476967[_0x22d751(0x426)][0x0]);for(let _0x449107=_0x2fc6f6[_0x22d751(0x532)]-0x1;_0x449107>=0x0;_0x449107--){const _0x24f7ac={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2fc6f6[_0x449107][_0x22d751(0x581)],..._0x2fc6f6[_0x449107][_0x22d751(0x3e7)]}},_0x2dfcab={'id':_0x22d751(0x52c),'params':{'unitId':_0x2fc6f6[_0x449107][_0x22d751(0x581)],..._0x2fc6f6[_0x449107][_0x22d751(0x51c)]}},_0x4940e=this['_transformService'][_0x22d751(0x2c8)](_0x5ef114,_0x24f7ac,!0x1),_0x23bfe9=this['_transformService']['transformMutation'](_0x10a491,_0x2dfcab,!0x1);if(S[_0x22d751(0x457)](_0x4940e))throw _0x4940e[_0x22d751(0x456)];if(S['isTransformMutationFailure'](_0x23bfe9))throw _0x23bfe9[_0x22d751(0x456)];_0x13f099[_0x22d751(0x617)]({..._0x2fc6f6[_0x449107],'undoState':_0x4940e[_0x22d751(0x400)]['params'],'redoState':_0x23bfe9[_0x22d751(0x400)][_0x22d751(0x537)]}),_0x5ef114=_0x4940e[_0x22d751(0x5fb)],_0x10a491=_0x23bfe9[_0x22d751(0x5fb)];}this['_docStateChangeManagerService'][_0x22d751(0x4c8)](_0x362250,{'history':_0x1161a6,'collaboration':_0x13f099});}};We=Oi([Qe(0x0,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),Qe(0x1,S[_0x414e95(0x4f2)]),Qe(0x2,a[_0x414e95(0x4dd)](Z[_0x414e95(0x30f)]))],We);function un(_0x598118){let _0x4b16f0='';for(const _0x3b5df7 of _0x598118){const {startOffset:_0x1723b3,endOffset:_0x4c365a,isActive:_0x457980,rangeType:_0x281934,segmentId:_0x324438,segmentPage:_0x51ed92}=_0x3b5df7;_0x4b16f0['length']&&(_0x4b16f0+=','),_0x4b16f0+=_0x1723b3+':'+_0x4c365a+':'+(_0x457980?'1':'0')+':'+_0x281934+':'+_0x324438+':'+_0x51ed92;}return _0x4b16f0;}function Di(_0xc896bf){const _0x3126d5=_0x414e95,_0x1739ba=_0xc896bf['split'](','),_0x36ff1c=[];for(const _0xca3dfc of _0x1739ba){const [_0x490199,_0x34c9d0,_0x181c3c,_0x4a24f5,_0x3903cf,_0x1d386b]=_0xca3dfc['split'](':');_0x36ff1c[_0x3126d5(0x375)]({'startOffset':Number(_0x490199),'endOffset':Number(_0x34c9d0),'collapsed':_0x490199===_0x34c9d0,'isActive':_0x181c3c==='1','rangeType':_0x4a24f5===a['DOC_RANGE_TYPE'][_0x3126d5(0x2ca)]?a[_0x3126d5(0x5bb)]['TEXT']:a[_0x3126d5(0x5bb)]['RECT'],'segmentId':typeof _0x3903cf=='string'?String(_0x3903cf):'','segmentPage':Number(_0x1d386b!=null?_0x1d386b:-0x1)});}return _0x36ff1c[_0x3126d5(0x30d)](_0x4e770e=>_0x4e770e[_0x3126d5(0x236)])||(_0x36ff1c[0x0][_0x3126d5(0x236)]=!0x0),_0x36ff1c;}class Tt extends a[_0x414e95(0x58a)]{constructor(){const _0x2a02fb=_0x414e95;super(...arguments),I(this,_0x2a02fb(0x5a7),new A[(_0x2a02fb(0x1a2))](null)),I(this,_0x2a02fb(0x533),this[_0x2a02fb(0x5a7)][_0x2a02fb(0x3b3)]());}[_0x414e95(0x454)](_0x2587c9){const _0x45d75c=_0x414e95,{unitID:_0x122588,memberID:_0x2c0ebe,textRanges:_0x5b7920}=_0x2587c9,_0xc91841=un(_0x5b7920);if(_0xc91841==='')return;const _0x2889c8={'unitID':_0x122588,'memberID':_0x2c0ebe,'selection':_0xc91841};this[_0x45d75c(0x5a7)][_0x45d75c(0x370)](_0x2889c8);}}var wi=Object[_0x414e95(0x47c)],Pi=Object['getOwnPropertyDescriptor'],Ui=(_0x882d4c,_0x270e04,_0x2b804e,_0x239413)=>{const _0x43f5fd=_0x414e95;for(var _0x14090a=_0x239413>0x1?void 0x0:_0x239413?Pi(_0x270e04,_0x2b804e):_0x270e04,_0x4e8b1c=_0x882d4c[_0x43f5fd(0x532)]-0x1,_0x314e2e;_0x4e8b1c>=0x0;_0x4e8b1c--)(_0x314e2e=_0x882d4c[_0x4e8b1c])&&(_0x14090a=(_0x239413?_0x314e2e(_0x270e04,_0x2b804e,_0x14090a):_0x314e2e(_0x14090a))||_0x14090a);return _0x239413&&_0x14090a&&wi(_0x270e04,_0x2b804e,_0x14090a),_0x14090a;},Lt=(_0x3e1f13,_0x4e0f74)=>(_0x3f63a0,_0x355958)=>_0x4e0f74(_0x3f63a0,_0x355958,_0x3e1f13);let Fe=class{constructor(_0x2a28d0,_0x4d433b){const _0x51d5ba=_0x414e95;this[_0x51d5ba(0x4f3)]=_0x2a28d0,this[_0x51d5ba(0x407)]=_0x4d433b;}['transformSelections'](_0x58c3cd){const _0xb9991=_0x414e95;var _0x2b5cb3;const _0x221b7d=this[_0xb9991(0x4f3)]['get'](Re[_0xb9991(0x4f0)]),_0x5c5c69=(_0x2b5cb3=_0x221b7d[_0xb9991(0x476)]())!=null?_0x2b5cb3:[];if(_0x5c5c69['length']===0x0)return;const _0x494d34=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x58c3cd[_0xb9991(0x1e2)],'actions':null,'textRanges':_0x5c5c69}}],_0x117b80=this[_0xb9991(0x407)][_0xb9991(0x4a7)](_0x58c3cd,_0x494d34);if(!S['isTransformMutationsWithChangesetSuccess'](_0x117b80))throw _0x117b80['error'];const _0x458d8f=_0x117b80[_0xb9991(0x400)][0x0]['params'][_0xb9991(0x2e5)];Array[_0xb9991(0x2ec)](_0x458d8f)&&_0x458d8f[_0xb9991(0x532)]&&_0x221b7d[_0xb9991(0x20a)](_0x458d8f,!0x1);}};Fe=Ui([Lt(0x0,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),Lt(0x1,S[_0x414e95(0x4f2)])],Fe);const Mi=new Set([k[_0x414e95(0x338)]['id']]);function xt(_0x52da74,_0x20ac29,_0x172f6c,_0x3e6615,_0x705445){const _0x290b96=_0x414e95;var _0x4ac83a,_0x9da294,_0x2a88b3,_0xbb4cf5;const _0x16f413=[];for(const _0x701d23 of _0x52da74)if(Mi[_0x290b96(0x549)](_0x701d23['id'])){if(_0x16f413[_0x290b96(0x532)]>0x0)break;_0x16f413[_0x290b96(0x375)](_0x701d23);break;}else _0x16f413[_0x290b96(0x375)](_0x701d23);const _0x204e17=(_0x9da294=(_0x4ac83a=_0x705445[_0x290b96(0x4a8)]())==null?void 0x0:_0x4ac83a[_0x290b96(0x445)])!=null?_0x9da294:'unknown',_0x12eb1a=(_0xbb4cf5=(_0x2a88b3=_0x705445[_0x290b96(0x4a8)]())==null?void 0x0:_0x2a88b3[_0x290b96(0x5d8)])!=null?_0xbb4cf5:_0x290b96(0x3c0);return{'changeset':{'unitID':_0x20ac29,'type':S[_0x290b96(0x438)](_0x172f6c[_0x290b96(0x53d)](_0x20ac29)),'baseRev':_0x3e6615[_0x290b96(0x1c7)](_0x20ac29),'revision':0x0,'userID':_0x204e17,'memberID':_0x12eb1a,'mutations':_0x16f413},'pendingMutations':_0x52da74[_0x290b96(0x247)](_0x16f413[_0x290b96(0x532)])};}function Ai(_0x9b9a10,_0x3ecba2,_0x1a2341,_0x35960f,_0x4f06a3){const _0x583a39=_0x414e95;var _0x247be7,_0x15e930,_0x135cfb,_0x45476d;const _0x351e3f=[_0x9b9a10[_0x583a39(0x3c8)]((_0x43cb26,_0x8a519b)=>{const _0x345394=_0x583a39;var _0x1c4cb4;const {id:_0x256f93}=_0x43cb26,{id:_0xeb8f,type:_0x54fb1a}=_0x8a519b,_0x3fea86=(_0x1c4cb4=_0x43cb26[_0x345394(0x537)])!=null?_0x1c4cb4:{'actions':null},_0xe45eb8=_0x8a519b['params'];if(_0x256f93&&_0x256f93!==_0xeb8f)throw new Error(_0x345394(0x3ab)+_0x256f93+_0x345394(0x27a)+_0xeb8f+'.');return{..._0x43cb26,'id':_0xeb8f,'type':_0x54fb1a,'params':{'unitId':_0xe45eb8['unitId'],'textRanges':_0xe45eb8[_0x345394(0x2e5)],'actions':a[_0x345394(0x53c)]['compose'](_0x3fea86['actions'],_0xe45eb8['actions'])}};},{})],_0x377cad=(_0x15e930=(_0x247be7=_0x4f06a3['getCurrentUser']())==null?void 0x0:_0x247be7[_0x583a39(0x445)])!=null?_0x15e930:'unknown',_0x5e10d5=(_0x45476d=(_0x135cfb=_0x4f06a3['getCurrentUser']())==null?void 0x0:_0x135cfb[_0x583a39(0x5d8)])!=null?_0x45476d:'unknown';return{'changeset':{'unitID':_0x3ecba2,'type':S['mapDocumentTypeToUniverType'](_0x1a2341[_0x583a39(0x53d)](_0x3ecba2)),'baseRev':_0x35960f[_0x583a39(0x1c7)](_0x3ecba2),'revision':0x0,'userID':_0x377cad,'memberID':_0x5e10d5,'mutations':_0x351e3f},'pendingMutations':[]};}function dn(_0x5695ef,_0x4ae6ea){const _0x387361=_0x414e95,_0x3b00dd=new A[(_0x387361(0x42f))](0x1);return setTimeout(()=>_0x3b00dd['next'](_0x4ae6ea),_0x5695ef),_0x3b00dd[_0x387361(0x3b3)]()['pipe'](A[_0x387361(0x5e2)](0x1));}const Ni={'id':k[_0x414e95(0x48a)]['id'],'type':a[_0x414e95(0x328)][_0x414e95(0x1b8)],'params':{}};var Li=Object['defineProperty'],xi=Object['getOwnPropertyDescriptor'],ge=(_0x23126d,_0xf0fc60,_0x165caf,_0x604ee7)=>{const _0x5a3078=_0x414e95;for(var _0x194cdd=_0x604ee7>0x1?void 0x0:_0x604ee7?xi(_0xf0fc60,_0x165caf):_0xf0fc60,_0x3ef647=_0x23126d[_0x5a3078(0x532)]-0x1,_0x4f5c95;_0x3ef647>=0x0;_0x3ef647--)(_0x4f5c95=_0x23126d[_0x3ef647])&&(_0x194cdd=(_0x604ee7?_0x4f5c95(_0xf0fc60,_0x165caf,_0x194cdd):_0x4f5c95(_0x194cdd))||_0x194cdd);return _0x604ee7&&_0x194cdd&&Li(_0xf0fc60,_0x165caf,_0x194cdd),_0x194cdd;},N=(_0x47f7c3,_0xba146f)=>(_0x5c8f55,_0x40ce97)=>_0xba146f(_0x5c8f55,_0x40ce97,_0x47f7c3),q=(_0x4e48a5=>(_0x4e48a5[_0x414e95(0x45b)]=_0x414e95(0x4fa),_0x4e48a5[_0x414e95(0x56b)]=_0x414e95(0x54b),_0x4e48a5[_0x414e95(0x597)]=_0x414e95(0x255),_0x4e48a5[_0x414e95(0x1b6)]=_0x414e95(0x30e),_0x4e48a5[_0x414e95(0x3b2)]=_0x414e95(0x4b5),_0x4e48a5[_0x414e95(0x310)]=_0x414e95(0x3a6),_0x4e48a5['CONFLICT']=_0x414e95(0x5cc),_0x4e48a5[_0x414e95(0x39c)]='offline',_0x4e48a5))(q||{});const fn=0xea60;class Ie{constructor(_0x2e74f4,_0x57a580,_0x324e40,_0x4b7059,_0x805625,_0x3c64b4,_0x58d3cb,_0x7a244a,_0x5e56af){const _0x2c545d=_0x414e95;I(this,_0x2c545d(0x357),null),I(this,_0x2c545d(0x447),[]),(this['unitID']=_0x2e74f4,this['type']=_0x57a580,this[_0x2c545d(0x4e4)]=_0x805625,this['_commandService']=_0x3c64b4,this[_0x2c545d(0x1e4)]=_0x58d3cb,this[_0x2c545d(0x5f6)]=_0x7a244a,this[_0x2c545d(0x3e2)]=_0x5e56af,this[_0x2c545d(0x357)]=_0x324e40,this[_0x2c545d(0x447)]=_0x4b7059);}[_0x414e95(0x498)](_0x5585de){const _0x3cea60=_0x414e95,_0x426182=this['_revisionService'][_0x3cea60(0x1c7)](this['unitID']);return _0x5585de['revision']>_0x426182+0x1?(this[_0x3cea60(0x4e4)][_0x3cea60(0x256)]({'from':_0x426182,'to':_0x5585de[_0x3cea60(0x28a)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x4d2ede){const _0x3f1fe3=_0x414e95;this[_0x3f1fe3(0x1e4)][_0x3f1fe3(0x474)](this[_0x3f1fe3(0x1e2)],_0x4d2ede);}[_0x414e95(0x444)](_0xf5d4a6){const _0x2480f0=_0x414e95;var _0x3efe22,_0x319b52;(_0x319b52=(_0x3efe22=this[_0x2480f0(0x4e4)])[_0x2480f0(0x4e8)])==null||_0x319b52[_0x2480f0(0x2ff)](_0x3efe22,_0xf5d4a6);}[_0x414e95(0x528)](_0x58d57b){const _0xf42f5f=_0x414e95;var _0x459843,_0x413e11;return(_0x413e11=(_0x459843=this['_handler'])[_0xf42f5f(0x5e6)])==null?void 0x0:_0x413e11[_0xf42f5f(0x2ff)](_0x459843,_0x58d57b);}[_0x414e95(0x602)](_0x4d127e){const _0x5380b2=_0x414e95;var _0x333579,_0x38bd5e;return(_0x38bd5e=(_0x333579=this[_0x5380b2(0x4e4)])['onTransformState'])==null?void 0x0:_0x38bd5e['call'](_0x333579,_0x4d127e);}[_0x414e95(0x42a)](_0x522f51){const _0x589162=_0x414e95;var _0x1a3360,_0x50b6fb,_0x29f5a1;return(_0x29f5a1=(_0x50b6fb=(_0x1a3360=this[_0x589162(0x4e4)])[_0x589162(0x38d)])==null?void 0x0:_0x50b6fb[_0x589162(0x2ff)](_0x1a3360,_0x522f51))!=null?_0x29f5a1:_0x522f51;}[_0x414e95(0x3d8)](_0x34ded4){const _0x3f34ba=_0x414e95;var _0x1880cc,_0x17602f,_0xea87cd;return(_0xea87cd=(_0x17602f=(_0x1880cc=this[_0x3f34ba(0x4e4)])[_0x3f34ba(0x229)])==null?void 0x0:_0x17602f[_0x3f34ba(0x2ff)](_0x1880cc,_0x34ded4))!=null?_0xea87cd:_0x34ded4;}[_0x414e95(0x327)](_0x5b6007){const _0x59ad94=_0x414e95;var _0xe60b63,_0x2e050a;if(this['type']===se[_0x59ad94(0x446)]){const {unitID:_0x372964,mutations:_0x26061a,memberID:_0x49e920}=_0x5b6007,_0x3b18ee=_0x26061a[0x0]['params'][_0x59ad94(0x2e5)];Array['isArray'](_0x3b18ee)&&_0x3b18ee['length']>0x0&&((_0x2e050a=(_0xe60b63=this['_handler'])[_0x59ad94(0x25c)])==null||_0x2e050a['call'](_0xe60b63,{'unitID':_0x372964,'memberID':_0x49e920,'textRanges':_0x3b18ee}));}}[_0x414e95(0x4fb)](){const _0x52e1ab=_0x414e95;this['_localCacheService'][_0x52e1ab(0x171)](this['unitID'],this['type'],this[_0x52e1ab(0x357)],this[_0x52e1ab(0x447)]);}[_0x414e95(0x219)](){const _0x4411c=_0x414e95;return this['_revisionService'][_0x4411c(0x1c7)](this[_0x4411c(0x1e2)]);}[_0x414e95(0x483)](){const _0x326fe3=_0x414e95;this[_0x326fe3(0x5f6)][_0x326fe3(0x3de)](this[_0x326fe3(0x1e2)]);}[_0x414e95(0x272)](_0x10ff0f){const _0xb5c3a3=_0x414e95;var _0x1cffdf;let _0x334608=this['_transformRemoteChangesetByIMECache'](_0x10ff0f);_0x334608=this['_transformRemoteChangesetByStateCache'](_0x334608);const _0x48e0f4=a[_0xb5c3a3(0x413)](_0x334608[_0xb5c3a3(0x426)],this[_0xb5c3a3(0x4f9)],{'fromCollab':!0x0});if(!_0x48e0f4[_0xb5c3a3(0x3a9)])throw _0x48e0f4[_0xb5c3a3(0x456)]instanceof Error?_0x48e0f4[_0xb5c3a3(0x456)]:new Error((_0x1cffdf=_0x48e0f4[_0xb5c3a3(0x456)])!=null?_0x1cffdf:_0xb5c3a3(0x57f));this[_0xb5c3a3(0x528)](_0x334608),this['_transformStateCache'](_0x334608),this[_0xb5c3a3(0x1d4)](_0x10ff0f),this[_0xb5c3a3(0x444)](_0x334608),this['_syncEditingCollabCursor'](_0x334608),this['_incrementRevisionNumber']();}}let ye=class extends Ie{constructor(_0x46e87a,_0x5b9cac,_0x1f5b07,_0x72d0be,_0x51046a,_0x7cf665,_0x461f87,_0x1c99ee,_0x57a33d,_0x3063f3){const _0x2e1201=_0x414e95;super(_0x46e87a,_0x5b9cac,null,[],_0x1f5b07,_0x1c99ee,_0x461f87,_0x72d0be,_0x51046a),I(this,'status',_0x2e1201(0x54b)),(this[_0x2e1201(0x4f3)]=_0x7cf665,this[_0x2e1201(0x1ec)]=_0x57a33d,this[_0x2e1201(0x407)]=_0x3063f3);}[_0x414e95(0x2b3)](_0x1e48af){const _0x4166b3=_0x414e95,_0x178c34=this['_injector']['createInstance'](ce,this[_0x4166b3(0x1e2)],this[_0x4166b3(0x284)],[_0x1e48af],this['_handler']);return _0x178c34[_0x4166b3(0x46f)](),_0x178c34['_updateLocalCache'](),_0x178c34;}[_0x414e95(0x547)](_0x3fe0d6){const _0x273fc8=_0x414e95;if(this['_checkMissing'](_0x3fe0d6))return this[_0x273fc8(0x4f3)][_0x273fc8(0x23f)](oe,this['unitID'],this[_0x273fc8(0x284)],null,[],null,[_0x3fe0d6],this[_0x273fc8(0x4e4)]);try{const _0x559ab4=this[_0x273fc8(0x407)]['transformMutationsWithChangeset'](_0x3fe0d6,[Ni]);if(S[_0x273fc8(0x5c4)](_0x559ab4)){const {c1Prime:_0x3d141d}=_0x559ab4;return this[_0x273fc8(0x272)](_0x3d141d),this;}throw _0x559ab4['error'];}catch(_0xad44fd){return this[_0x273fc8(0x1ec)][_0x273fc8(0x456)](_0xad44fd),this[_0x273fc8(0x164)](!0x1);}}[_0x414e95(0x164)](_0x4ada8e){const _0x2393e5=_0x414e95;return this['_injector']['createInstance'](ve,this[_0x2393e5(0x1e2)],this[_0x2393e5(0x284)],null,[],this[_0x2393e5(0x4e4)],_0x4ada8e);}[_0x414e95(0x5a1)](){const _0x5d64f8=_0x414e95;throw new Error(_0x5d64f8(0x554));}['onRemoteRej'](){const _0x496905=_0x414e95;throw new Error(_0x496905(0x3c1));}[_0x414e95(0x434)](){return this;}[_0x414e95(0x1ef)](){const _0x2aab1a=_0x414e95;return this[_0x2aab1a(0x4f3)][_0x2aab1a(0x23f)](me,this[_0x2aab1a(0x1e2)],this[_0x2aab1a(0x284)],null,[],this[_0x2aab1a(0x4e4)]);}[_0x414e95(0x2c4)](){return this;}[_0x414e95(0x1c2)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x414e95(0x5fe)](){const _0x1160f0=_0x414e95,_0x4ac22f=this[_0x1160f0(0x5f6)]['getCurrentRevOfUnit'](this[_0x1160f0(0x1e2)]);return this[_0x1160f0(0x4e4)]['onMissingChangesets']({'from':_0x4ac22f,'to':0x0}),this[_0x1160f0(0x4f3)][_0x1160f0(0x23f)](oe,this[_0x1160f0(0x1e2)],this[_0x1160f0(0x284)],null,[],null,[],this[_0x1160f0(0x4e4)]);}};ye=ge([N(0x3,a[_0x414e95(0x4dd)](S[_0x414e95(0x392)])),N(0x4,a[_0x414e95(0x4dd)](exports[_0x414e95(0x3a2)])),N(0x5,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),N(0x6,a['IUndoRedoService']),N(0x7,a[_0x414e95(0x1ea)]),N(0x8,a[_0x414e95(0x178)]),N(0x9,S[_0x414e95(0x4f2)])],ye);let ce=class extends Ie{constructor(_0x8a8d42,_0x2fe1f6,_0x2aff92,_0x1a4060,_0x274998,_0xf38395,_0x3f38ff,_0x208fe3,_0x36a87a,_0x5d13ae,_0x161845,_0x2a1ac4,_0x21ef3f,_0x32c2a4){const _0x46352b=_0x414e95;super(_0x8a8d42,_0x2fe1f6,null,_0x2aff92,_0x1a4060,_0x5d13ae,_0x32c2a4,_0xf38395,_0x3f38ff),I(this,_0x46352b(0x50d),_0x46352b(0x255)),I(this,_0x46352b(0x5ce),null),I(this,'_sendingTimer',null),(this[_0x46352b(0x4f3)]=_0x274998,this[_0x46352b(0x5c5)]=_0x208fe3,this[_0x46352b(0x1ec)]=_0x36a87a,this['_configService']=_0x161845,this[_0x46352b(0x407)]=_0x2a1ac4,this[_0x46352b(0x588)]=_0x21ef3f);}[_0x414e95(0x2b3)](_0x532ec3){const _0x2fce27=_0x414e95;return this[_0x2fce27(0x447)][_0x2fce27(0x375)](_0x532ec3),this[_0x2fce27(0x4fb)](),this;}['onRemoteChangeset'](_0x52374a){const _0x5c9f55=_0x414e95;if(this[_0x5c9f55(0x498)](_0x52374a))return this[_0x5c9f55(0x4d7)](),this[_0x5c9f55(0x4f3)][_0x5c9f55(0x23f)](oe,this['unitID'],this[_0x5c9f55(0x284)],null,this['_pendingMutations'],null,[_0x52374a],this['_handler']);try{const _0x109ee9=this[_0x5c9f55(0x407)][_0x5c9f55(0x4a7)](_0x52374a,this['_pendingMutations']);if(S['isTransformMutationsWithChangesetSuccess'](_0x109ee9)){const {c1Prime:_0x113caa,m2Prime:_0x1ead76}=_0x109ee9;this[_0x5c9f55(0x272)](_0x113caa);const _0x3a2492=this[_0x5c9f55(0x4f3)][_0x5c9f55(0x23f)](ce,this[_0x5c9f55(0x1e2)],this['type'],_0x1ead76,this[_0x5c9f55(0x4e4)]);return this[_0x5c9f55(0x4d7)](),_0x3a2492[_0x5c9f55(0x46f)](this[_0x5c9f55(0x5ce)]?Math[_0x5c9f55(0x56c)](0x0,new Date()[_0x5c9f55(0x1dd)]()-this[_0x5c9f55(0x5ce)]):this[_0x5c9f55(0x4ff)]()),_0x3a2492;}throw _0x109ee9[_0x5c9f55(0x456)];}catch(_0x12cd9d){return this[_0x5c9f55(0x1ec)][_0x5c9f55(0x456)](_0x12cd9d),this['_onConflict'](!0x1);}}[_0x414e95(0x5a1)](){const _0x423e4b=_0x414e95;throw new Error(_0x423e4b(0x49f));}[_0x414e95(0x3d9)](){const _0x312d22=_0x414e95;throw new Error(_0x312d22(0x20d));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x450821=_0x414e95;return this[_0x450821(0x4d7)](),this[_0x450821(0x4f3)]['createInstance'](me,this[_0x450821(0x1e2)],this['type'],null,this[_0x450821(0x447)],this[_0x450821(0x4e4)]);}['toggleOnline'](){return this;}[_0x414e95(0x46f)](_0x543e56){const _0x323593=_0x414e95,_0x595d15=_0x543e56!=null?_0x543e56:this[_0x323593(0x4ff)]();this[_0x323593(0x5ce)]=new Date()['getTime'](),this[_0x323593(0x319)]=window[_0x323593(0x163)](()=>{const _0x23564f=_0x323593;this['_clearScheduledTask']();let _0x1b7ca5=null;switch(this['type']){case se[_0x23564f(0x353)]:{_0x1b7ca5=xt(this[_0x23564f(0x447)],this['unitID'],this[_0x23564f(0x588)],this[_0x23564f(0x5f6)],this['_memberService']);break;}case se[_0x23564f(0x446)]:{this[_0x23564f(0x447)][_0x23564f(0x2cd)](_0x174e17=>_0x174e17['id']===Re[_0x23564f(0x487)]['id'])?_0x1b7ca5=Ai(this[_0x23564f(0x447)],this[_0x23564f(0x1e2)],this['_univerInstanceService'],this['_revisionService'],this[_0x23564f(0x5c5)]):_0x1b7ca5=xt(this[_0x23564f(0x447)],this[_0x23564f(0x1e2)],this[_0x23564f(0x588)],this[_0x23564f(0x5f6)],this[_0x23564f(0x5c5)]);break;}default:throw new Error(_0x23564f(0x3fb)+this['type']+_0x23564f(0x1a9));}const {changeset:_0x24eb6e,pendingMutations:_0x26545c}=_0x1b7ca5;this[_0x23564f(0x4e4)][_0x23564f(0x381)](_0x24eb6e);const _0x328085=_0x26545c[_0x23564f(0x532)]?this[_0x23564f(0x4f3)][_0x23564f(0x23f)](le,this[_0x23564f(0x1e2)],this[_0x23564f(0x284)],_0x24eb6e,_0x26545c,this[_0x23564f(0x4e4)],void 0x0):this[_0x23564f(0x4f3)]['createInstance'](fe,this[_0x23564f(0x1e2)],this['type'],_0x24eb6e,this[_0x23564f(0x4e4)]);_0x328085[_0x23564f(0x4fb)](),this[_0x23564f(0x4e4)]['onStateChange'](this,_0x328085);},_0x595d15);}[_0x414e95(0x4ff)](){const _0x35dcc5=_0x414e95;var _0x537054;const _0x3a50fb=this[_0x35dcc5(0x514)][_0x35dcc5(0x2fa)](ne);return(_0x537054=_0x3a50fb==null?void 0x0:_0x3a50fb[_0x35dcc5(0x216)])!=null?_0x537054:jn;}['resend'](){const _0x5101fb=_0x414e95;throw new Error(_0x5101fb(0x34a));}[_0x414e95(0x4d7)](){const _0x1183d4=_0x414e95;this[_0x1183d4(0x319)]!=null&&(clearTimeout(this[_0x1183d4(0x319)]),this['_sendingTimer']=null);}[_0x414e95(0x164)](_0x2e6efa){const _0x418565=_0x414e95;return this[_0x418565(0x4d7)](),this[_0x418565(0x4f3)][_0x418565(0x23f)](ve,this[_0x418565(0x1e2)],this[_0x418565(0x284)],null,this[_0x418565(0x447)],this[_0x418565(0x4e4)],_0x2e6efa);}};ce=ge([N(0x4,a['Inject'](a[_0x414e95(0x268)])),N(0x5,a['Inject'](S[_0x414e95(0x392)])),N(0x6,a['Inject'](exports[_0x414e95(0x3a2)])),N(0x7,a['Inject'](exports[_0x414e95(0x45a)])),N(0x8,a[_0x414e95(0x178)]),N(0x9,a['ICommandService']),N(0xa,a[_0x414e95(0x556)]),N(0xb,S[_0x414e95(0x4f2)]),N(0xc,a['IUniverInstanceService']),N(0xd,a[_0x414e95(0x3ce)])],ce);let fe=class extends Ie{constructor(_0x3d0412,_0x14a107,_0x290534,_0x3ed9f4,_0x12b2d3,_0x3093cd,_0x2fbe69,_0x4cd5b7,_0x260191,_0x8e8e55,_0x5d14dd){const _0x2eaf44=_0x414e95;super(_0x3d0412,_0x14a107,_0x290534,[],_0x3ed9f4,_0x4cd5b7,_0x5d14dd,_0x3093cd,_0x2fbe69),I(this,'status',_0x2eaf44(0x30e)),I(this,_0x2eaf44(0x2a9),0x0),I(this,_0x2eaf44(0x37a)),I(this,_0x2eaf44(0x352)),(this['_injector']=_0x12b2d3,this[_0x2eaf44(0x1ec)]=_0x260191,this['_transformService']=_0x8e8e55);}['appendMutation'](_0xb4ae2f){const _0x3ca377=_0x414e95;this['_clearScheduledTask']();const _0xc2fbce=this[_0x3ca377(0x4f3)][_0x3ca377(0x23f)](le,this[_0x3ca377(0x1e2)],this[_0x3ca377(0x284)],this[_0x3ca377(0x357)],[_0xb4ae2f],this[_0x3ca377(0x4e4)],this['_resendTimer']);return _0xc2fbce[_0x3ca377(0x4fb)](),_0xc2fbce;}[_0x414e95(0x547)](_0x49133b){const _0x156c14=_0x414e95;if(this[_0x156c14(0x498)](_0x49133b))return this[_0x156c14(0x4d7)](),this[_0x156c14(0x4f3)][_0x156c14(0x23f)](oe,this['unitID'],this[_0x156c14(0x284)],this[_0x156c14(0x357)],[],null,[_0x49133b],this[_0x156c14(0x4e4)]);try{const _0x28fc53=this[_0x156c14(0x407)][_0x156c14(0x28f)]([_0x49133b],[this[_0x156c14(0x357)]],!0x1);if(S[_0x156c14(0x35a)](_0x28fc53)){const {c1Prime:_0x4ac1c4,c2Prime:_0x37ceb9}=_0x28fc53;this[_0x156c14(0x272)](_0x4ac1c4[0x0]),_0x37ceb9[0x0]['baseRev']=this[_0x156c14(0x219)](),this[_0x156c14(0x4d7)]();const _0x58811e=this[_0x156c14(0x4f3)][_0x156c14(0x23f)](fe,this[_0x156c14(0x1e2)],this[_0x156c14(0x284)],_0x37ceb9[0x0],this[_0x156c14(0x4e4)]);return _0x58811e[_0x156c14(0x4fb)](),_0x58811e;}return this[_0x156c14(0x164)](!0x1);}catch(_0x4624a){return this[_0x156c14(0x1ec)][_0x156c14(0x456)](_0x4624a),this[_0x156c14(0x164)](!0x1);}}[_0x414e95(0x5a1)](_0x3f5341){const _0x3ce710=_0x414e95;this[_0x3ce710(0x4d7)]();const _0x1b23b1=this[_0x3ce710(0x5f6)][_0x3ce710(0x1c7)](this['unitID']);if(_0x3f5341[_0x3ce710(0x28a)]<_0x1b23b1-0x1)return this;if(this[_0x3ce710(0x498)](_0x3f5341))return this[_0x3ce710(0x4f3)]['createInstance'](oe,this['unitID'],this['type'],null,[],this[_0x3ce710(0x357)],[],this[_0x3ce710(0x4e4)]);this[_0x3ce710(0x483)]();const _0x28093a=this[_0x3ce710(0x4f3)][_0x3ce710(0x23f)](ye,this[_0x3ce710(0x1e2)],this['type'],this[_0x3ce710(0x4e4)]);return _0x28093a[_0x3ce710(0x4fb)](),_0x28093a;}[_0x414e95(0x3d9)](_0x3ee8d3){const _0x1ad16a=_0x414e95;return this[_0x1ad16a(0x164)](!!(_0x3ee8d3!=null&&_0x3ee8d3[_0x1ad16a(0x2b4)]));}[_0x414e95(0x434)](_0x229a1e){const _0x4a6d11=_0x414e95;return this[_0x4a6d11(0x2a9)]>fn?this[_0x4a6d11(0x1ef)]():(this[_0x4a6d11(0x37a)]=dn(this[_0x4a6d11(0x2a9)],{'timeout':this[_0x4a6d11(0x2a9)],'reqId':_0x229a1e['reqId']}),this[_0x4a6d11(0x352)]=this[_0x4a6d11(0x37a)][_0x4a6d11(0x2ac)](({reqId:_0x50aa2f,timeout:_0x3ad6c5})=>{const _0xf835b8=_0x4a6d11;this[_0xf835b8(0x4b9)](_0x50aa2f,_0x3ad6c5);}),this);}['toggleOffline'](){const _0x398cbb=_0x414e95;return this['_clearScheduledTask'](),this['_injector'][_0x398cbb(0x23f)](me,this[_0x398cbb(0x1e2)],this[_0x398cbb(0x284)],this[_0x398cbb(0x357)],[],this[_0x398cbb(0x4e4)]);}[_0x414e95(0x2c4)](){return this;}['resend'](){const _0x283910=_0x414e95;this['_handler'][_0x283910(0x381)](this[_0x283910(0x357)]);}[_0x414e95(0x164)](_0x3683f3){const _0x26124a=_0x414e95;return this[_0x26124a(0x4d7)](),this[_0x26124a(0x4f3)][_0x26124a(0x23f)](ve,this[_0x26124a(0x1e2)],this[_0x26124a(0x284)],this[_0x26124a(0x357)],[],this[_0x26124a(0x4e4)],_0x3683f3);}[_0x414e95(0x4b9)](_0x44ef5a,_0x5ed7e7){const _0x18e496=_0x414e95;var _0x11552d;_0x44ef5a===((_0x11552d=this[_0x18e496(0x357)])==null?void 0x0:_0x11552d[_0x18e496(0x205)])&&(this[_0x18e496(0x1c2)](),this[_0x18e496(0x2a9)]=_0x5ed7e7===0x0?0x3e8:_0x5ed7e7*0x2);}['_clearScheduledTask'](){const _0x10a1ee=_0x414e95;var _0x390a53;(_0x390a53=this[_0x10a1ee(0x352)])==null||_0x390a53[_0x10a1ee(0x2b6)](),this[_0x10a1ee(0x2a9)]=0x0;}};fe=ge([N(0x4,a[_0x414e95(0x4dd)](a['Injector'])),N(0x5,a[_0x414e95(0x4dd)](S['RevisionService'])),N(0x6,a[_0x414e95(0x4dd)](exports[_0x414e95(0x3a2)])),N(0x7,a[_0x414e95(0x1ea)]),N(0x8,a['ILogService']),N(0x9,S[_0x414e95(0x4f2)]),N(0xa,a[_0x414e95(0x3ce)])],fe);let le=class extends Ie{constructor(_0x16a054,_0x550748,_0x22bbbf,_0x366a43,_0x3b9f67,_0x141f40,_0xb96c5a,_0x36a442,_0x1a3f06,_0x162d09,_0x464fd9,_0x3b41b0,_0x106c0a){const _0x5bed74=_0x414e95;super(_0x16a054,_0x550748,_0x22bbbf,_0x366a43,_0x3b9f67,_0x162d09,_0x106c0a,_0x36a442,_0x1a3f06),I(this,_0x5bed74(0x50d),_0x5bed74(0x4b5)),I(this,_0x5bed74(0x2a9),0x0),I(this,_0x5bed74(0x37a)),I(this,_0x5bed74(0x352)),(this['_injector']=_0xb96c5a,this[_0x5bed74(0x1ec)]=_0x464fd9,this[_0x5bed74(0x407)]=_0x3b41b0,_0x141f40&&(this['_resendTimer']=_0x141f40,this[_0x5bed74(0x352)]=this['_resendTimer']['subscribe'](({reqId:_0xde0f8e,timeout:_0x278a4e})=>{const _0x3b7ffe=_0x5bed74;this[_0x3b7ffe(0x4b9)](_0xde0f8e,_0x278a4e);})));}['appendMutation'](_0x188cbc){const _0x5eb6a4=_0x414e95;return this[_0x5eb6a4(0x447)]['push'](_0x188cbc),this;}[_0x414e95(0x547)](_0x555a8b){const _0x1603df=_0x414e95;if(this[_0x1603df(0x498)](_0x555a8b))return this[_0x1603df(0x4d7)](),this[_0x1603df(0x4f3)][_0x1603df(0x23f)](oe,this['unitID'],this[_0x1603df(0x284)],this[_0x1603df(0x357)],this['_pendingMutations'],null,[_0x555a8b],this[_0x1603df(0x4e4)]);try{const _0x1fc61b=this[_0x1603df(0x407)][_0x1603df(0x28f)]([_0x555a8b],[this['_awaitingChangeset']],!0x1);if(S['isTransformChangesetsSuccess'](_0x1fc61b)){const {c1Prime:_0x246e27,c2Prime:_0x2dd895}=_0x1fc61b,_0x2271c1=this[_0x1603df(0x407)][_0x1603df(0x4a7)](_0x246e27[0x0],this[_0x1603df(0x447)]);if(S[_0x1603df(0x5c4)](_0x2271c1)){const {c1Prime:_0x3276d3,m2Prime:_0x205bdd}=_0x2271c1;return this[_0x1603df(0x272)](_0x3276d3),_0x2dd895[0x0][_0x1603df(0x3f4)]=this[_0x1603df(0x219)](),this[_0x1603df(0x4d7)](),this[_0x1603df(0x4f3)][_0x1603df(0x23f)](le,this[_0x1603df(0x1e2)],this[_0x1603df(0x284)],_0x2dd895[0x0],_0x205bdd,this[_0x1603df(0x4e4)],void 0x0);}throw _0x2271c1[_0x1603df(0x456)];}throw _0x1fc61b[_0x1603df(0x456)];}catch(_0x34634e){return this[_0x1603df(0x1ec)][_0x1603df(0x456)](_0x34634e),this[_0x1603df(0x164)](!0x1);}}[_0x414e95(0x5a1)](_0x134724){const _0x4366ec=_0x414e95;if(this[_0x4366ec(0x4d7)](),this['_checkMissing'](_0x134724))return this[_0x4366ec(0x4f3)]['createInstance'](oe,this[_0x4366ec(0x1e2)],this[_0x4366ec(0x284)],null,this[_0x4366ec(0x447)],this[_0x4366ec(0x357)],[],this[_0x4366ec(0x4e4)]);this[_0x4366ec(0x483)]();const _0x2d1133=this['_injector'][_0x4366ec(0x23f)](ce,this['unitID'],this['type'],this[_0x4366ec(0x447)],this[_0x4366ec(0x4e4)]);return _0x2d1133[_0x4366ec(0x46f)](),_0x2d1133[_0x4366ec(0x4fb)](),_0x2d1133;}[_0x414e95(0x3d9)](_0x581725){const _0x2797c1=_0x414e95;return this[_0x2797c1(0x164)](!!(_0x581725!=null&&_0x581725[_0x2797c1(0x2b4)]));}['onRemoteRetry'](_0x37ac73){const _0x390eb7=_0x414e95;return this[_0x390eb7(0x2a9)]>fn?this[_0x390eb7(0x1ef)]():(this[_0x390eb7(0x37a)]=dn(this[_0x390eb7(0x2a9)],{'timeout':this[_0x390eb7(0x2a9)],'reqId':_0x37ac73[_0x390eb7(0x205)]}),this[_0x390eb7(0x352)]=this[_0x390eb7(0x37a)]['subscribe'](({reqId:_0x2dc330,timeout:_0x141a26})=>{const _0x529b38=_0x390eb7;this[_0x529b38(0x4b9)](_0x2dc330,_0x141a26);}),this);}[_0x414e95(0x1ef)](){const _0x388b7f=_0x414e95;return this[_0x388b7f(0x4d7)](),this['_injector'][_0x388b7f(0x23f)](me,this['unitID'],this[_0x388b7f(0x284)],this[_0x388b7f(0x357)],this['_pendingMutations'],this[_0x388b7f(0x4e4)]);}['toggleOnline'](){return this;}[_0x414e95(0x1c2)](){const _0x2f94f8=_0x414e95;this['_handler'][_0x2f94f8(0x381)](this[_0x2f94f8(0x357)]);}['_onConflict'](_0x354f37){const _0x42e9fa=_0x414e95;return this['_clearScheduledTask'](),this[_0x42e9fa(0x4f3)]['createInstance'](ve,this[_0x42e9fa(0x1e2)],this[_0x42e9fa(0x284)],null,this[_0x42e9fa(0x447)],this['_handler'],_0x354f37);}['_resendWithTimeout'](_0x1c5620,_0x3ba554){const _0x497280=_0x414e95;var _0xfc4dc;_0x1c5620===((_0xfc4dc=this['_awaitingChangeset'])==null?void 0x0:_0xfc4dc[_0x497280(0x205)])&&(this[_0x497280(0x1c2)](),this[_0x497280(0x2a9)]=_0x3ba554===0x0?0x3e8:_0x3ba554*0x2);}[_0x414e95(0x4d7)](){const _0xfdb39a=_0x414e95;var _0x25dc9b;(_0x25dc9b=this['_sender'])==null||_0x25dc9b[_0xfdb39a(0x2b6)](),this[_0xfdb39a(0x2a9)]=0x0;}};le=ge([N(0x6,a[_0x414e95(0x4dd)](a['Injector'])),N(0x7,a[_0x414e95(0x4dd)](S[_0x414e95(0x392)])),N(0x8,a[_0x414e95(0x4dd)](exports[_0x414e95(0x3a2)])),N(0x9,a[_0x414e95(0x1ea)]),N(0xa,a[_0x414e95(0x178)]),N(0xb,S[_0x414e95(0x4f2)]),N(0xc,a[_0x414e95(0x3ce)])],le);let ve=class extends Ie{constructor(_0x4517c8,_0x1c2634,_0x3716eb,_0x16502c,_0x5dd54c,_0x32ab1b=!0x1,_0x26b434,_0x2a54b7,_0x4620c4,_0x527c49,_0x5e02ac,_0x11e08b,_0x29351c){const _0x4b5856=_0x414e95;super(_0x4517c8,_0x1c2634,_0x3716eb,_0x16502c,_0x5dd54c,_0x2a54b7,_0x4620c4,_0x5e02ac,_0x527c49),I(this,_0x4b5856(0x50d),_0x4b5856(0x5cc)),(this[_0x4b5856(0x1b2)]=_0x32ab1b,this[_0x4b5856(0x24d)]=_0x26b434,this['_localeService']=_0x11e08b,this['_notificationService']=_0x29351c,this[_0x4b5856(0x60b)](),this[_0x4b5856(0x5d0)](),this[_0x4b5856(0x223)]());}['appendMutation'](){return this;}[_0x414e95(0x547)](){return this;}[_0x414e95(0x5a1)](){return this;}['onRemoteRej'](){return this;}['onRemoteRetry'](){return this;}[_0x414e95(0x1ef)](){return this;}[_0x414e95(0x2c4)](){return this;}['resend'](){const _0x44168d=_0x414e95;throw new Error(_0x44168d(0x224));}['_clearLocalCache'](){const _0x23f806=_0x414e95;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x23f806(0x284)],null,[]);}[_0x414e95(0x60b)](){const _0x361966=_0x414e95;this[_0x361966(0x1b2)]?this[_0x361966(0x3ba)][_0x361966(0x562)]({'title':this[_0x361966(0x1ee)]['t'](_0x361966(0x1fe)),'content':this['_localeService']['t'](_0x361966(0x4b7)),'type':_0x361966(0x456),'duration':0x0}):this[_0x361966(0x3ba)][_0x361966(0x562)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x361966(0x1ee)]['t'](_0x361966(0x3e9)),'type':_0x361966(0x456),'duration':0x0});}['_disableEditing'](){const _0x588a4f=_0x414e95;this[_0x588a4f(0x24d)]['updatePermissionPoint'](new k[(_0x588a4f(0x28c))](this['unitID'])['id'],!0x1);}};ve=ge([N(0x6,a[_0x414e95(0x4dd)](a[_0x414e95(0x1bb)])),N(0x7,a[_0x414e95(0x1ea)]),N(0x8,a[_0x414e95(0x3ce)]),N(0x9,a[_0x414e95(0x4dd)](exports[_0x414e95(0x3a2)])),N(0xa,a[_0x414e95(0x4dd)](S[_0x414e95(0x392)])),N(0xb,a[_0x414e95(0x4dd)](a[_0x414e95(0x266)])),N(0xc,te[_0x414e95(0x2cb)])],ve);let me=class extends Ie{constructor(_0x39e528,_0xc9cc2b,_0x423bf4,_0x1bd0cb,_0x2eb97d,_0x43b060,_0x4fcac6,_0xb3f676,_0x455a4d,_0x182ee9){const _0x30c781=_0x414e95;super(_0x39e528,_0xc9cc2b,_0x423bf4,_0x1bd0cb,_0x2eb97d,_0x455a4d,_0x182ee9,_0x4fcac6,_0xb3f676),I(this,_0x30c781(0x50d),'offline'),this[_0x30c781(0x4f3)]=_0x43b060;}['appendMutation'](_0x3f0db5){const _0x576406=_0x414e95;return this[_0x576406(0x447)][_0x576406(0x375)](_0x3f0db5),this[_0x576406(0x4fb)](),this;}['onRemoteChangeset'](_0x2fe422){const _0xa8189c=_0x414e95;throw new Error(_0xa8189c(0x4fc));}[_0x414e95(0x5a1)](){const _0x5c5967=_0x414e95;throw new Error(_0x5c5967(0x4cb));}['onRemoteRej'](){const _0x118a3a=_0x414e95;throw new Error(_0x118a3a(0x2f5));}['onRemoteRetry'](){return this;}[_0x414e95(0x1ef)](){return this;}[_0x414e95(0x2c4)](){const _0x37ac55=_0x414e95,{_injector:_0x3a7939,_pendingMutations:_0x5a0604,_awaitingChangeset:_0x2ec450,unitID:_0x299745,_handler:_0x587db7,type:_0x10009d}=this,_0x362b67=vn(_0x3a7939,_0x299745,_0x10009d,_0x2ec450,_0x5a0604,_0x587db7);return _0x362b67 instanceof ce?_0x362b67[_0x37ac55(0x46f)]():(_0x362b67 instanceof le||_0x362b67 instanceof fe)&&_0x362b67[_0x37ac55(0x1c2)](),_0x362b67;}[_0x414e95(0x1c2)](){const _0x446acf=_0x414e95;throw new Error(_0x446acf(0x518));}};me=ge([N(0x5,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),N(0x6,a[_0x414e95(0x4dd)](S[_0x414e95(0x392)])),N(0x7,a[_0x414e95(0x4dd)](exports[_0x414e95(0x3a2)])),N(0x8,a[_0x414e95(0x1ea)]),N(0x9,a['IUndoRedoService'])],me);let oe=class extends Ie{constructor(_0x660fcf,_0x31ec8c,_0x149a3d,_0x229ce1,_0xefd1f1,_0xc84b84,_0x1c601d,_0x25dda,_0x341c0e,_0x1d4cda,_0xd3974c,_0x4e9598,_0x1a28fb,_0x55da0c){const _0x36cde8=_0x414e95;super(_0x660fcf,_0x31ec8c,_0x149a3d,_0x229ce1,_0x1c601d,_0x4e9598,_0x1a28fb,_0x341c0e,_0x1d4cda),I(this,'status','fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0xefd1f1,this[_0x36cde8(0x5da)]=_0xc84b84,this[_0x36cde8(0x4f3)]=_0x25dda,this[_0x36cde8(0x1ec)]=_0xd3974c,this[_0x36cde8(0x407)]=_0x55da0c);}[_0x414e95(0x279)](_0x249f79){const _0x953da=_0x414e95;try{const _0x2d0214=[..._0x249f79,...this[_0x953da(0x5da)]],_0xcb6004=[this[_0x953da(0x357)]||this[_0x953da(0x5d3)]]['filter'](_0x9706a9=>!!_0x9706a9);let _0x25ca8d,_0x7ac6f0;if(_0xcb6004['length']){const _0x3b04e4=this['_transformService'][_0x953da(0x28f)](_0x2d0214,_0xcb6004,!0x1);if(!S['isTransformChangesetsSuccess'](_0x3b04e4))throw _0x3b04e4[_0x953da(0x456)];_0x25ca8d=_0x3b04e4['c1Prime'],_0x7ac6f0=_0x3b04e4[_0x953da(0x509)];}else _0x25ca8d=_0x2d0214,_0x7ac6f0=[];let _0x1c4c11=this[_0x953da(0x447)];_0x25ca8d['forEach'](_0x4b907a=>{const _0x3e44e6=_0x953da;let _0x431256;if(_0x1c4c11['length']){const _0x5b64a0=this[_0x3e44e6(0x407)][_0x3e44e6(0x4a7)](_0x4b907a,_0x1c4c11);if(!S[_0x3e44e6(0x5c4)](_0x5b64a0))throw _0x5b64a0[_0x3e44e6(0x456)];_0x431256=_0x5b64a0['c1Prime'],_0x1c4c11=_0x5b64a0[_0x3e44e6(0x400)];}else _0x431256=_0x4b907a;this[_0x3e44e6(0x272)](_0x431256);}),this[_0x953da(0x5d3)]&&this[_0x953da(0x483)](),this[_0x953da(0x357)]&&_0x7ac6f0['length']&&(_0x7ac6f0[0x0]['baseRev']=this['_getCurrentRevision']());let _0x5483c0;if(this['_awaitingChangeset']&&_0x1c4c11[_0x953da(0x532)]!==0x0)_0x5483c0=this[_0x953da(0x4f3)]['createInstance'](le,this[_0x953da(0x1e2)],this[_0x953da(0x284)],_0x7ac6f0[0x0],_0x1c4c11,this[_0x953da(0x4e4)],void 0x0);else{if(this[_0x953da(0x357)]&&_0x1c4c11[_0x953da(0x532)]===0x0)_0x7ac6f0[0x0][_0x953da(0x3f4)]=this[_0x953da(0x219)](),_0x5483c0=this[_0x953da(0x4f3)][_0x953da(0x23f)](fe,this['unitID'],this['type'],_0x7ac6f0[0x0],this[_0x953da(0x4e4)]);else{if(_0x1c4c11[_0x953da(0x532)]!==0x0){const _0x26ee69=this[_0x953da(0x4f3)][_0x953da(0x23f)](ce,this[_0x953da(0x1e2)],this['type'],_0x1c4c11,this[_0x953da(0x4e4)]);_0x26ee69[_0x953da(0x46f)](),_0x5483c0=_0x26ee69;}else _0x5483c0=this[_0x953da(0x4f3)][_0x953da(0x23f)](ye,this['unitID'],this[_0x953da(0x284)],this[_0x953da(0x4e4)]);}}return _0x5483c0[_0x953da(0x4fb)](),_0x5483c0;}catch(_0x302d84){return this[_0x953da(0x1ec)][_0x953da(0x456)](_0x953da(0x5ab),_0x953da(0x2ab),_0x302d84),this[_0x953da(0x4f3)][_0x953da(0x23f)](ve,this[_0x953da(0x1e2)],this[_0x953da(0x284)],this[_0x953da(0x357)],this[_0x953da(0x447)],this[_0x953da(0x4e4)],!0x1);}}['resend'](){const _0x47214b=_0x414e95;throw new Error(_0x47214b(0x575));}['appendMutation'](_0x29bed6){const _0x5a8134=_0x414e95;return this[_0x5a8134(0x447)][_0x5a8134(0x375)](_0x29bed6),this;}[_0x414e95(0x547)](_0x12b0de){const _0x45f87e=_0x414e95;return this[_0x45f87e(0x5da)]['push'](_0x12b0de),this;}[_0x414e95(0x5a1)](_0x2cc19d){const _0x337b84=_0x414e95;if(this[_0x337b84(0x357)])return this[_0x337b84(0x5d3)]=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error(_0x337b84(0x2da));}['onRemoteRej'](_0x218466){const _0x19492b=_0x414e95;return this[_0x19492b(0x164)](!!(_0x218466!=null&&_0x218466[_0x19492b(0x2b4)]));}[_0x414e95(0x434)](){return this;}['toggleOffline'](){const _0x41448f=_0x414e95;return this[_0x41448f(0x4f3)][_0x41448f(0x23f)](me,this[_0x41448f(0x1e2)],this['type'],this[_0x41448f(0x357)],this[_0x41448f(0x447)],this[_0x41448f(0x4e4)]);}['toggleOnline'](){return this;}[_0x414e95(0x164)](_0x2da899){const _0x15a091=_0x414e95;return this[_0x15a091(0x4f3)][_0x15a091(0x23f)](ve,this['unitID'],this[_0x15a091(0x284)],this[_0x15a091(0x357)],this[_0x15a091(0x447)],this[_0x15a091(0x4e4)],_0x2da899);}};oe=ge([N(0x7,a[_0x414e95(0x4dd)](a['Injector'])),N(0x8,a['Inject'](S[_0x414e95(0x392)])),N(0x9,a[_0x414e95(0x4dd)](exports['LocalCacheService'])),N(0xa,a['ILogService']),N(0xb,a[_0x414e95(0x1ea)]),N(0xc,a[_0x414e95(0x3ce)]),N(0xd,S['ITransformService'])],oe);function vn(_0x3a4d90,_0x1d4369,_0x4db7bf,_0x55fbfe,_0x2503b9,_0x220e59){const _0x4588c9=_0x414e95;return _0x55fbfe&&_0x2503b9['length']?_0x3a4d90[_0x4588c9(0x23f)](le,_0x1d4369,_0x4db7bf,_0x55fbfe,_0x2503b9,_0x220e59,void 0x0):_0x55fbfe?_0x3a4d90['createInstance'](fe,_0x1d4369,_0x4db7bf,_0x55fbfe,_0x220e59):_0x2503b9[_0x4588c9(0x532)]?_0x3a4d90['createInstance'](ce,_0x1d4369,_0x4db7bf,_0x2503b9,_0x220e59):_0x3a4d90[_0x4588c9(0x23f)](ye,_0x1d4369,_0x4db7bf,_0x220e59);}var $i=Object[_0x414e95(0x47c)],ji=Object['getOwnPropertyDescriptor'],Rt=(_0x24bcdc,_0x4117bb,_0x5dc90e,_0x29ea04)=>{const _0x8b1cf6=_0x414e95;for(var _0x12ee05=_0x29ea04>0x1?void 0x0:_0x29ea04?ji(_0x4117bb,_0x5dc90e):_0x4117bb,_0x1d1901=_0x24bcdc[_0x8b1cf6(0x532)]-0x1,_0x531348;_0x1d1901>=0x0;_0x1d1901--)(_0x531348=_0x24bcdc[_0x1d1901])&&(_0x12ee05=(_0x29ea04?_0x531348(_0x4117bb,_0x5dc90e,_0x12ee05):_0x531348(_0x12ee05))||_0x12ee05);return _0x29ea04&&_0x12ee05&&$i(_0x4117bb,_0x5dc90e,_0x12ee05),_0x12ee05;},H=(_0x2357e4,_0x59ed2f)=>(_0x29837c,_0x5cd5c0)=>_0x59ed2f(_0x29837c,_0x5cd5c0,_0x2357e4);exports[_0x414e95(0x1cd)]=class extends a[_0x414e95(0x58a)]{constructor(_0x13eeb6,_0x2404de,_0x2a76cc,_0x4583b0,_0x2100ed,_0x113e89,_0x17714f,_0x548657,_0x373944,_0x10b435,_0x545e6f,_0x1f568b,_0x246d76){const _0x377345=_0x414e95;super(),I(this,_0x377345(0x440),new A[(_0x377345(0x1a2))](null)),I(this,_0x377345(0x4ee),this[_0x377345(0x440)][_0x377345(0x3b3)]()),I(this,'_state'),I(this,_0x377345(0x20b),!0x1),I(this,_0x377345(0x227),''),I(this,_0x377345(0x2ad),0x0),I(this,_0x377345(0x19b),this[_0x377345(0x4ee)][_0x377345(0x5b9)](A[_0x377345(0x4d1)](_0x599718=>_0x599718?_0x599718[_0x377345(0x50d)]:q[_0x377345(0x39c)]),A[_0x377345(0x5bf)](0x1))),I(this,_0x377345(0x305),!0x1),I(this,_0x377345(0x3fd),[]),(this[_0x377345(0x1e2)]=_0x13eeb6,this[_0x377345(0x4c1)]=_0x2404de,this['_type']=_0x2a76cc,this['_injector']=_0x4583b0,this[_0x377345(0x3e2)]=_0x2100ed,this[_0x377345(0x44a)]=_0x113e89,this[_0x377345(0x1ee)]=_0x17714f,this[_0x377345(0x5f6)]=_0x548657,this['_logService']=_0x373944,this[_0x377345(0x4f9)]=_0x10b435,this[_0x377345(0x3f2)]=_0x545e6f,this[_0x377345(0x24d)]=_0x1f568b,this[_0x377345(0x5c2)]=_0x246d76);}get[_0x414e95(0x1f4)](){return this['_state'];}async[_0x414e95(0x4ea)](){const _0x5cb8d5=_0x414e95;if(this['state'])throw new Error(_0x5cb8d5(0x39f));await this['_init']();}[_0x414e95(0x210)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x51d174=_0x474b;this[_0x51d174(0x20b)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x414e95(0x523)](_0x2f6fd6){const _0x473f23=_0x414e95;this[_0x473f23(0x20f)]=_0x2f6fd6,this[_0x473f23(0x440)][_0x473f23(0x370)](_0x2f6fd6);}async['_init'](){const _0x458319=_0x414e95;var _0x4ad49d;this[_0x458319(0x523)](await this[_0x458319(0x50b)]()),this[_0x458319(0x5c2)]&&((_0x4ad49d=this['_singleActiveUnitService'])==null||_0x4ad49d[_0x458319(0x35e)](this[_0x458319(0x1e2)]),this['disposeWithMe'](this[_0x458319(0x5c2)][_0x458319(0x3cc)](this[_0x458319(0x1e2)])[_0x458319(0x2ac)](_0x10b9a4=>{const _0x4e8032=_0x458319;this[_0x4e8032(0x1ec)][_0x4e8032(0x437)](_0x4e8032(0x548),'editing\x20status\x20changed\x20to',_0x10b9a4),_0x10b9a4===_n['OTHER_CLIENTS_EDITING']?(this['_messageService'][_0x4e8032(0x562)]({'content':this[_0x4e8032(0x1ee)]['t'](_0x4e8032(0x480)),'type':pe['MessageType']['Warning']}),this[_0x4e8032(0x24d)][_0x4e8032(0x36d)](new k[(_0x4e8032(0x28c))](this[_0x4e8032(0x1e2)])['id'],!0x1),this[_0x4e8032(0x24d)][_0x4e8032(0x559)](!0x1)):(this['_permissionService'][_0x4e8032(0x36d)](new k[(_0x4e8032(0x28c))](this['unitID'])['id'],!0x0),this[_0x4e8032(0x24d)][_0x4e8032(0x559)](!0x0));})));let _0xeaec4f=!0x1;return this['disposeWithMe'](this[_0x458319(0x4c1)][_0x458319(0x1d5)][_0x458319(0x2ac)](_0x4b7fef=>{const _0x5ca2dd=_0x458319;_0x4b7fef===re[_0x5ca2dd(0x5c3)]?this[_0x5ca2dd(0x535)](_0xeaec4f):_0x4b7fef===re[_0x5ca2dd(0x39c)]&&(_0xeaec4f=!0x0,this[_0x5ca2dd(0x591)]());})),this[_0x458319(0x35b)](this[_0x458319(0x4c1)][_0x458319(0x5a4)][_0x458319(0x2ac)](_0x1b20a8=>{const _0x2c6c2d=_0x458319;try{switch(_0x1b20a8[_0x2c6c2d(0x3d3)]){case S['CollaborationEvent'][_0x2c6c2d(0x452)]:{this[_0x2c6c2d(0x572)](S[_0x2c6c2d(0x313)](_0x1b20a8[_0x2c6c2d(0x396)]));break;}case S['CollaborationEvent']['CHANGESET_ACK']:{this[_0x2c6c2d(0x26a)](_0x1b20a8[_0x2c6c2d(0x396)]);break;}case S[_0x2c6c2d(0x56a)][_0x2c6c2d(0x484)]:{this[_0x2c6c2d(0x5e7)]();break;}case S['CollaborationEvent'][_0x2c6c2d(0x49e)]:{this['_onRemoteRetry'](_0x1b20a8['data']);break;}case S['CollaborationEvent'][_0x2c6c2d(0x174)]:{this[_0x2c6c2d(0x4d6)](_0x1b20a8['data'][_0x2c6c2d(0x25f)][_0x2c6c2d(0x4d1)](_0x128950=>S[_0x2c6c2d(0x313)](_0x128950)));break;}case S[_0x2c6c2d(0x56a)][_0x2c6c2d(0x4f5)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x88d2c6){throw console[_0x2c6c2d(0x456)]('Error\x20on\x20receiving\x20event',_0x88d2c6),_0x88d2c6;}})),this['_state'];}['_unlockTransition'](){const _0xcdc563=_0x414e95;this[_0xcdc563(0x305)]=!0x1;}['_lockTransition'](){const _0x3b98db=_0x414e95;if(this[_0x3b98db(0x305)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x3b98db(0x305)]=!0x0;}[_0x414e95(0x2cf)](_0x44a731){const _0x742d66=_0x414e95;this[_0x742d66(0x3c2)](),this[_0x742d66(0x523)](this[_0x742d66(0x20f)][_0x742d66(0x2b3)](_0x44a731)),this[_0x742d66(0x40f)]();}[_0x414e95(0x572)](_0x176d8f){const _0x3a8c34=_0x414e95;if(!(_0x176d8f[_0x3a8c34(0x28a)]<=this[_0x3a8c34(0x5f6)][_0x3a8c34(0x1c7)](this[_0x3a8c34(0x1e2)]))){if(this[_0x3a8c34(0x20b)]){this['_remoteChangesetQueue'][_0x3a8c34(0x375)](_0x176d8f);return;}this[_0x3a8c34(0x33d)](_0x176d8f);}}[_0x414e95(0x4fe)](){const _0x1338e7=_0x414e95;this[_0x1338e7(0x3fd)][_0x1338e7(0x36c)](_0x24259b=>this[_0x1338e7(0x33d)](_0x24259b)),this[_0x1338e7(0x3fd)]=[];}[_0x414e95(0x33d)](_0x2e2748){const _0x21260f=_0x414e95,_0x46309e=this['_compressMutationService'][_0x21260f(0x285)][_0x21260f(0x5af)](this[_0x21260f(0x44a)][_0x21260f(0x285)][_0x21260f(0x314)]()['COMPRESS_MUTATION_APPLY'])(_0x2e2748[_0x21260f(0x426)],null)||_0x2e2748[_0x21260f(0x426)],_0x5f48ae={..._0x2e2748,'mutations':_0x46309e};this[_0x21260f(0x3c2)](),this['_updateState'](this[_0x21260f(0x20f)][_0x21260f(0x547)](_0x5f48ae)),this[_0x21260f(0x40f)]();}['_onRemoteACK'](_0x5997cc){const _0x3da490=_0x414e95;this['_lockTransition'](),this['_updateState'](this['_state'][_0x3da490(0x5a1)](_0x5997cc)),this['_unlockTransition']();}['_onRemoteRejected'](_0x2d3369){const _0x743591=_0x414e95;this[_0x743591(0x3c2)](),this[_0x743591(0x523)](this[_0x743591(0x20f)]['onRemoteRej'](_0x2d3369)),this[_0x743591(0x40f)]();}[_0x414e95(0x361)](_0x53a85b){const _0x11bef7=_0x414e95;this[_0x11bef7(0x3c2)](),this[_0x11bef7(0x523)](this[_0x11bef7(0x20f)][_0x11bef7(0x434)](_0x53a85b)),this[_0x11bef7(0x40f)]();}[_0x414e95(0x4d6)](_0x32f317){const _0x5dc443=_0x414e95;if(!(this[_0x5dc443(0x20f)]instanceof oe))throw new TypeError(_0x5dc443(0x1f9));const _0x2f3fbf=_0x32f317[_0x5dc443(0x4d1)](_0x6a9995=>{const _0x2483d4=_0x5dc443,_0x22fb33=this[_0x2483d4(0x44a)]['interceptor'][_0x2483d4(0x5af)](this['_compressMutationService'][_0x2483d4(0x285)][_0x2483d4(0x314)]()[_0x2483d4(0x2b5)])(_0x6a9995[_0x2483d4(0x426)],null)||_0x6a9995[_0x2483d4(0x426)];return{..._0x6a9995,'mutations':_0x22fb33};});this[_0x5dc443(0x3c2)](),this['_updateState'](this[_0x5dc443(0x20f)]['onMissedChangesetFetched'](_0x2f3fbf)),this['_unlockTransition']();}['_toggleOffline'](){const _0x4cf0da=_0x414e95;this['_lockTransition'](),this['_updateState'](this['_state'][_0x4cf0da(0x1ef)]()),this['_unlockTransition']();}[_0x414e95(0x535)](_0x2153fa=!0x1){const _0x4aa73c=_0x414e95;this[_0x4aa73c(0x3c2)](),this[_0x4aa73c(0x523)](this[_0x4aa73c(0x20f)][_0x4aa73c(0x2c4)]()),this[_0x4aa73c(0x40f)]();const _0x1aae0b=this['_state'];_0x2153fa&&_0x1aae0b instanceof ye&&(this[_0x4aa73c(0x3c2)](),this[_0x4aa73c(0x523)](_0x1aae0b['fetchMiss']()),this[_0x4aa73c(0x40f)]());}async[_0x414e95(0x50b)](){return new Promise(_0x2c6c36=>{const _0x35d748=_0x474b;this[_0x35d748(0x4c1)][_0x35d748(0x1d5)]['pipe'](A[_0x35d748(0x5e2)](0x1))[_0x35d748(0x2ac)](async _0x86177=>{const _0x4f5bd3=_0x35d748;_0x2c6c36(await this[_0x4f5bd3(0x1cc)](_0x86177===re[_0x4f5bd3(0x5c3)]));});});}[_0x414e95(0x249)](){const _0x5c245f=_0x414e95,_0x20ff9a=this[_0x5c245f(0x1e2)];return{'onStateChange':(_0x4ce72b,_0x2d5235)=>{const _0x4c186a=_0x5c245f;if(_0x4ce72b!==this[_0x4c186a(0x20f)])throw new Error(_0x4c186a(0x301)+_0x4ce72b[_0x4c186a(0x50d)]+'\x0aAfter:\x20'+_0x2d5235['status']+_0x4c186a(0x307)+this[_0x4c186a(0x20f)][_0x4c186a(0x50d)]);this[_0x4c186a(0x523)](_0x2d5235);},'onSendChangeset':_0x1d85f2=>{const _0x205cb4=_0x5c245f;_0x1d85f2[_0x205cb4(0x238)]||(_0x1d85f2[_0x205cb4(0x238)]=this[_0x205cb4(0x227)],_0x1d85f2['reqId']=++this[_0x205cb4(0x2ad)]);const _0x2c6b0b={'eventID':S[_0x205cb4(0x56a)][_0x205cb4(0x576)],'data':{'unitID':_0x1d85f2[_0x205cb4(0x1e2)],'unitType':this['_type'],'changeset':_0x1d85f2,'memberID':this[_0x205cb4(0x4c1)][_0x205cb4(0x48e)]()}};this[_0x205cb4(0x4c1)]['send'](_0x2c6b0b,this[_0x205cb4(0x1e2)]);},'onMissingChangesets':({from:_0x27cbc0,to:_0x151b83})=>{const _0x27a9f5=_0x5c245f;this['_logService'][_0x27a9f5(0x437)](_0x27a9f5(0x548),'fetching\x20missing\x20changesets\x20from\x20'+_0x27cbc0+_0x27a9f5(0x1f2)+_0x151b83);const _0x4f8bc0={'eventID':S[_0x27a9f5(0x56a)][_0x27a9f5(0x337)],'data':{'unitID':_0x20ff9a,'unitType':this['_type'],'from':_0x27cbc0,'to':_0x151b83}};this['session'][_0x27a9f5(0x604)](_0x4f8bc0,this[_0x27a9f5(0x1e2)]);}};}async[_0x414e95(0x1cc)](_0x383abd){const _0x5d8b43=_0x414e95;var _0x1ca311,_0x38b60a;const _0x1a7f66=await this[_0x5d8b43(0x3e2)][_0x5d8b43(0x2ce)](this[_0x5d8b43(0x1e2)]),_0xce6a8=(_0x1ca311=_0x1a7f66==null?void 0x0:_0x1a7f66[_0x5d8b43(0x426)])!=null?_0x1ca311:[],_0x5c2589=(_0x38b60a=_0x1a7f66==null?void 0x0:_0x1a7f66[_0x5d8b43(0x3cf)])!=null?_0x38b60a:null,_0x1c8f20=!!(_0x5c2589!=null&&_0x5c2589[_0x5d8b43(0x238)])&&!!(_0x5c2589!=null&&_0x5c2589[_0x5d8b43(0x205)]);this[_0x5d8b43(0x227)]=_0x1c8f20?_0x5c2589[_0x5d8b43(0x238)]:di(),this[_0x5d8b43(0x2ad)]=_0x1c8f20?_0x5c2589[_0x5d8b43(0x205)]:0x0;const _0x500005=this[_0x5d8b43(0x1e2)];try{this[_0x5d8b43(0x2b7)](_0x5c2589,_0xce6a8);}catch(_0x1bc57c){this[_0x5d8b43(0x1ec)][_0x5d8b43(0x456)](_0x1bc57c);}const _0x1ef9ae=this[_0x5d8b43(0x249)]();if(_0x383abd){const _0x56ef26=vn(this[_0x5d8b43(0x4f3)],_0x500005,this['_type'],_0x5c2589,_0xce6a8,_0x1ef9ae);return _0x56ef26 instanceof ce?_0x56ef26[_0x5d8b43(0x46f)]():(_0x56ef26 instanceof le||_0x56ef26 instanceof fe)&&_0x56ef26[_0x5d8b43(0x1c2)](),_0x56ef26;}return this[_0x5d8b43(0x4f3)][_0x5d8b43(0x23f)](me,_0x500005,this[_0x5d8b43(0x231)],_0x5c2589,_0xce6a8,_0x1ef9ae);}[_0x414e95(0x2b7)](_0x3085f7,_0x26d494){const _0x537a4f=_0x414e95;var _0x49dbfd,_0x1688cb;const _0x505c8e=this[_0x537a4f(0x44a)][_0x537a4f(0x285)][_0x537a4f(0x5af)](this[_0x537a4f(0x44a)]['interceptor'][_0x537a4f(0x314)]()[_0x537a4f(0x2b5)]);(_0x49dbfd=_0x505c8e((_0x3085f7==null?void 0x0:_0x3085f7[_0x537a4f(0x426)])||[],null))==null||_0x49dbfd[_0x537a4f(0x36c)](_0x5bb514=>this[_0x537a4f(0x4f9)][_0x537a4f(0x18f)](_0x5bb514['id'],_0x5bb514['params'])),(_0x1688cb=_0x505c8e(_0x26d494||[],null))==null||_0x1688cb[_0x537a4f(0x36c)](_0x5dfc51=>this[_0x537a4f(0x4f9)]['executeCommand'](_0x5dfc51['id'],_0x5dfc51[_0x537a4f(0x537)]));}},exports[_0x414e95(0x1cd)]=Rt([H(0x3,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),H(0x4,a[_0x414e95(0x4dd)](exports[_0x414e95(0x3a2)])),H(0x5,a['Inject'](S[_0x414e95(0x424)])),H(0x6,a[_0x414e95(0x4dd)](a['LocaleService'])),H(0x7,a[_0x414e95(0x4dd)](S[_0x414e95(0x392)])),H(0x8,a[_0x414e95(0x178)]),H(0x9,a[_0x414e95(0x1ea)]),H(0xa,te[_0x414e95(0x1ac)]),H(0xb,a['IPermissionService']),H(0xc,a['Optional'](qe))],exports[_0x414e95(0x1cd)]),exports[_0x414e95(0x5bd)]=class extends exports[_0x414e95(0x1cd)]{constructor(_0x3a0030,_0x11a792,_0x1b0842,_0x3f2743,_0x6a37a8,_0x20a99c,_0x490d2e,_0x39b671,_0x2a89d9,_0x432651,_0x207678,_0x328973,_0xfabe46,_0xaf919,_0x5a8f79,_0x553ac4,_0x23ebe7,_0x4062f8){const _0x3c0bfa=_0x414e95;super(_0x3a0030,_0x1b0842,_0x11a792,_0x3f2743,_0x6a37a8,_0x20a99c,_0x490d2e,_0x39b671,_0xaf919,_0x5a8f79,_0x553ac4,_0x23ebe7,_0x4062f8),this[_0x3c0bfa(0x1e2)]=_0x3a0030,this['type']=_0x11a792,this[_0x3c0bfa(0x254)]=_0x2a89d9,this[_0x3c0bfa(0x364)]=_0x432651,this[_0x3c0bfa(0x29d)]=_0x207678,this[_0x3c0bfa(0x420)]=_0x328973,this[_0x3c0bfa(0x4d4)]=_0xfabe46;}['_createHandler'](){const _0x11d305=_0x414e95,_0x2329af=super['_createHandler']();return _0x2329af[_0x11d305(0x5e6)]=_0x5a281c=>this[_0x11d305(0x364)]['transformIMECache'](_0x5a281c),_0x2329af[_0x11d305(0x300)]=_0x1705e0=>this['_docTransformStateCacheService']['transformStateCache'](_0x1705e0),_0x2329af['onTransformSelections']=_0x269d0f=>this['_docTransformSelectionsService'][_0x11d305(0x5b3)](_0x269d0f),_0x2329af['onSyncEditingCollabCursor']=_0x14b4b6=>this[_0x11d305(0x4d4)][_0x11d305(0x454)](_0x14b4b6),_0x2329af['onTransformRemoteChangesetByIMECache']=_0x2fe863=>this[_0x11d305(0x364)]['transformRemoteChangeset'](_0x2fe863),_0x2329af[_0x11d305(0x229)]=_0x18a77a=>this[_0x11d305(0x29d)]['transformRemoteChangeset'](_0x18a77a),_0x2329af;}async[_0x414e95(0x600)](){const _0x8213c8=_0x414e95,_0x4f3ade=await super[_0x8213c8(0x600)]();return this[_0x8213c8(0x254)][_0x8213c8(0x335)][_0x8213c8(0x5b9)](A['takeUntil'](this[_0x8213c8(0x2d0)]))[_0x8213c8(0x2ac)](_0x374831=>{const _0x2b8fa9=_0x8213c8;if(_0x374831==null)return;const {unitId:_0x2c746f,redoState:_0x39409f,commandId:_0xf4c92b}=_0x374831;if(_0x2c746f!==this[_0x2b8fa9(0x1e2)])return;const _0x1a23a3={'id':_0xf4c92b,'type':a[_0x2b8fa9(0x328)][_0x2b8fa9(0x1b8)],'params':{'unitId':_0x2c746f,'actions':_0x39409f['actions'],'textRanges':null}};this['_onLocalMutation'](_0x1a23a3);}),_0x4f3ade;}},exports[_0x414e95(0x5bd)]=Rt([H(0x3,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),H(0x4,a[_0x414e95(0x4dd)](exports[_0x414e95(0x3a2)])),H(0x5,a[_0x414e95(0x4dd)](S[_0x414e95(0x424)])),H(0x6,a['Inject'](a[_0x414e95(0x266)])),H(0x7,a[_0x414e95(0x4dd)](S[_0x414e95(0x392)])),H(0x8,a['Inject'](Z[_0x414e95(0x30f)])),H(0x9,a['Inject'](Be)),H(0xa,a[_0x414e95(0x4dd)](We)),H(0xb,a[_0x414e95(0x4dd)](Fe)),H(0xc,a[_0x414e95(0x4dd)](Tt)),H(0xd,a[_0x414e95(0x178)]),H(0xe,a['ICommandService']),H(0xf,te[_0x414e95(0x1ac)]),H(0x10,a[_0x414e95(0x1bb)]),H(0x11,a[_0x414e95(0x3f3)](qe))],exports['DocCollaborationEntity']),exports[_0x414e95(0x4f6)]=class extends exports[_0x414e95(0x1cd)]{constructor(_0x5b9e76,_0x3c839c,_0x530900,_0x1fd776,_0x3c9e85,_0x23112b,_0x550ad9,_0x5eef7b,_0x52ff7e,_0x6135d5,_0x3f1a32,_0x36e62f,_0x34eb80,_0x3556bb){const _0x5c413f=_0x414e95;super(_0x5b9e76,_0x530900,_0x3c839c,_0x1fd776,_0x3c9e85,_0x23112b,_0x550ad9,_0x5eef7b,_0x6135d5,_0x3f1a32,_0x36e62f,_0x34eb80,_0x3556bb),this[_0x5c413f(0x1e2)]=_0x5b9e76,this[_0x5c413f(0x284)]=_0x3c839c,this['_sheetTransformSelectionsService']=_0x52ff7e;}[_0x414e95(0x249)](){const _0x388bf3=_0x414e95,_0x4f1f65=super['_createHandler']();return _0x4f1f65[_0x388bf3(0x4e8)]=_0x5c5607=>this[_0x388bf3(0x397)][_0x388bf3(0x5b3)](_0x5c5607),_0x4f1f65;}async[_0x414e95(0x600)](){const _0x44011d=_0x414e95,_0x5b74d4=await super[_0x44011d(0x600)]();return this[_0x44011d(0x35b)](this['_commandService']['onCommandExecuted']((_0x5ace5a,_0x42789a)=>{const _0x565be3=_0x44011d;if(_0x5ace5a['type']!==a[_0x565be3(0x328)][_0x565be3(0x1b8)]||_0x42789a!=null&&_0x42789a[_0x565be3(0x325)]||_0x42789a!=null&&_0x42789a[_0x565be3(0x536)])return;const _0x49b6e3=_0x5ace5a[_0x565be3(0x537)];if((_0x49b6e3==null?void 0x0:_0x49b6e3['unitId'])!==this[_0x565be3(0x1e2)])return;const _0x24606e=_0x5ace5a,_0x236cbf=this[_0x565be3(0x44a)][_0x565be3(0x285)][_0x565be3(0x5af)](this['_compressMutationService']['interceptor'][_0x565be3(0x314)]()[_0x565be3(0x409)])([_0x24606e],null)||[_0x24606e];this[_0x565be3(0x2cf)](_0x236cbf[0x0]);})),_0x5b74d4;}},exports['SheetCollaborationEntity']=Rt([H(0x3,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),H(0x4,a[_0x414e95(0x4dd)](exports['LocalCacheService'])),H(0x5,a[_0x414e95(0x4dd)](S['CompressMutationService'])),H(0x6,a[_0x414e95(0x4dd)](a[_0x414e95(0x266)])),H(0x7,a['Inject'](S['RevisionService'])),H(0x8,a[_0x414e95(0x4dd)](ke)),H(0x9,a[_0x414e95(0x178)]),H(0xa,a[_0x414e95(0x1ea)]),H(0xb,te[_0x414e95(0x1ac)]),H(0xc,a[_0x414e95(0x1bb)]),H(0xd,a[_0x414e95(0x3f3)](qe))],exports[_0x414e95(0x4f6)]);var Hi=Object[_0x414e95(0x47c)],Bi=Object[_0x414e95(0x51f)],ki=(_0x2763e4,_0x29d8b2,_0x22c407,_0x1eb5cd)=>{const _0x54923b=_0x414e95;for(var _0x3dc194=_0x1eb5cd>0x1?void 0x0:_0x1eb5cd?Bi(_0x29d8b2,_0x22c407):_0x29d8b2,_0x3a70c6=_0x2763e4[_0x54923b(0x532)]-0x1,_0x1c9d73;_0x3a70c6>=0x0;_0x3a70c6--)(_0x1c9d73=_0x2763e4[_0x3a70c6])&&(_0x3dc194=(_0x1eb5cd?_0x1c9d73(_0x29d8b2,_0x22c407,_0x3dc194):_0x1c9d73(_0x3dc194))||_0x3dc194);return _0x1eb5cd&&_0x3dc194&&Hi(_0x29d8b2,_0x22c407,_0x3dc194),_0x3dc194;},et=(_0x4e1268,_0x4571b6)=>(_0x51bfb3,_0x138273)=>_0x4571b6(_0x51bfb3,_0x138273,_0x4e1268);exports[_0x414e95(0x2a4)]=class extends a[_0x414e95(0x58a)]{constructor(_0x2604bb,_0x296ce3,_0x2a2884){const _0xe79067=_0x414e95;super(),I(this,'_entities',new Map()),I(this,_0xe79067(0x265),new A['Subject']()),(this[_0xe79067(0x4f3)]=_0x2604bb,this['_collabSessionService']=_0x296ce3,this[_0xe79067(0x588)]=_0x2a2884,this['_init']());}[_0x414e95(0x4c3)](){const _0x562a9c=_0x414e95;super[_0x562a9c(0x4c3)](),this[_0x562a9c(0x1d1)]['forEach'](_0xcfbc79=>_0xcfbc79[_0x562a9c(0x4c3)]()),this[_0x562a9c(0x1d1)][_0x562a9c(0x2c5)]();}[_0x414e95(0x583)](_0x2890db){const _0x45b8eb=_0x414e95;var _0x86ce39;return(_0x86ce39=this[_0x45b8eb(0x1d1)]['get'](_0x2890db))!=null?_0x86ce39:null;}[_0x414e95(0x2d9)](_0xaa207a){const _0x463fcd=_0x414e95,_0x3681da=this[_0x463fcd(0x583)](_0xaa207a);return _0x3681da?A['of'](_0x3681da):this['_entityInit$'][_0x463fcd(0x5b9)](V[_0x463fcd(0x5f2)](_0x1b0aef=>_0x1b0aef[_0x463fcd(0x1e2)]===_0xaa207a));}[_0x414e95(0x600)](){const _0x144caa=_0x414e95;this[_0x144caa(0x588)]['getTypeOfUnitAdded$'](a[_0x144caa(0x3ef)][_0x144caa(0x353)])[_0x144caa(0x5b9)](A[_0x144caa(0x566)](this[_0x144caa(0x2d0)]),V[_0x144caa(0x1d7)](0x10))['subscribe'](async _0x22a2d8=>{const _0x2abd32=_0x144caa,_0xcf4dcf=_0x22a2d8['getUnitId'](),_0x359b1c=await this['_startCollaboration'](_0xcf4dcf,se[_0x2abd32(0x353)]);this[_0x2abd32(0x1d1)]['set'](_0xcf4dcf,_0x359b1c);}),this['_univerInstanceService'][_0x144caa(0x390)](a[_0x144caa(0x3ef)]['UNIVER_DOC'])[_0x144caa(0x5b9)](A['takeUntil'](this['dispose$']),V[_0x144caa(0x1d7)](0x10))['pipe'](V[_0x144caa(0x5f2)](_0x168f5a=>!_0x168f5a[_0x144caa(0x19f)]()[_0x144caa(0x3ad)]('__')))[_0x144caa(0x2ac)](async _0x5308e4=>{const _0x168988=_0x144caa,_0x20111d=_0x5308e4[_0x168988(0x19f)](),_0x24658a=await this[_0x168988(0x2ea)](_0x20111d,se[_0x168988(0x446)]);this[_0x168988(0x1d1)][_0x168988(0x5c7)](_0x20111d,_0x24658a);}),A[_0x144caa(0x49c)](this[_0x144caa(0x588)][_0x144caa(0x5d7)](a[_0x144caa(0x3ef)][_0x144caa(0x353)]),this[_0x144caa(0x588)][_0x144caa(0x5d7)](a[_0x144caa(0x3ef)][_0x144caa(0x446)]))[_0x144caa(0x5b9)](A[_0x144caa(0x566)](this[_0x144caa(0x2d0)]))[_0x144caa(0x2ac)](_0x5a37d5=>{const _0x20eb3c=_0x144caa,_0x3fd767=_0x5a37d5[_0x20eb3c(0x19f)](),_0x3b2882=this[_0x20eb3c(0x1d1)][_0x20eb3c(0x4e0)](_0x3fd767);_0x3b2882&&(_0x3b2882[_0x20eb3c(0x4c3)](),this[_0x20eb3c(0x1d1)][_0x20eb3c(0x4da)](_0x3fd767));});}async[_0x414e95(0x2ea)](_0x838dfe,_0x21723d){const _0x59ab06=_0x414e95,_0x40dbb9=await this[_0x59ab06(0x430)][_0x59ab06(0x350)](_0x838dfe),_0x47414f=this['_injector']['createInstance'](this[_0x59ab06(0x2d5)](_0x21723d),_0x838dfe,_0x21723d,_0x40dbb9);return await _0x47414f[_0x59ab06(0x4ea)](),this[_0x59ab06(0x265)][_0x59ab06(0x370)](_0x47414f),_0x47414f;}[_0x414e95(0x2d5)](_0x49c12e){const _0x1f9513=_0x414e95;switch(_0x49c12e){case se[_0x1f9513(0x446)]:return exports['DocCollaborationEntity'];case se[_0x1f9513(0x353)]:return exports[_0x1f9513(0x4f6)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x49c12e);}}},exports[_0x414e95(0x2a4)]=ki([et(0x0,a['Inject'](a[_0x414e95(0x268)])),et(0x1,a['Inject'](exports['CollaborationSessionService'])),et(0x2,a[_0x414e95(0x1df)])],exports[_0x414e95(0x2a4)]);const $t=[_0x414e95(0x22d),_0x414e95(0x234),_0x414e95(0x185),_0x414e95(0x371),_0x414e95(0x311),_0x414e95(0x3c7)];class yt extends a['Disposable']{constructor(){const _0x27606f=_0x414e95;super(...arguments),I(this,'_assignedColors',new Map()),I(this,_0x27606f(0x1d9),0x0);}['assignAColorForMemberID'](_0x1e9b0e){const _0x474401=_0x414e95;if(this[_0x474401(0x497)][_0x474401(0x549)](_0x1e9b0e))return this['_assignedColors']['get'](_0x1e9b0e);const _0x2578f0=$t[this[_0x474401(0x1d9)]];return this[_0x474401(0x1d9)]=(this['_colorIndex']+0x1)%$t[_0x474401(0x532)],this[_0x474401(0x497)][_0x474401(0x5c7)](_0x1e9b0e,_0x2578f0),_0x2578f0;}}var Wi=Object[_0x414e95(0x47c)],Fi=Object[_0x414e95(0x51f)],Vi=(_0x598bdc,_0x509eb4,_0x100dbb,_0x388991)=>{const _0x34ae57=_0x414e95;for(var _0x18c467=_0x388991>0x1?void 0x0:_0x388991?Fi(_0x509eb4,_0x100dbb):_0x509eb4,_0x3a6827=_0x598bdc[_0x34ae57(0x532)]-0x1,_0x2beb3f;_0x3a6827>=0x0;_0x3a6827--)(_0x2beb3f=_0x598bdc[_0x3a6827])&&(_0x18c467=(_0x388991?_0x2beb3f(_0x509eb4,_0x100dbb,_0x18c467):_0x2beb3f(_0x18c467))||_0x18c467);return _0x388991&&_0x18c467&&Wi(_0x509eb4,_0x100dbb,_0x18c467),_0x18c467;},Se=(_0x13f147,_0x361e49)=>(_0x35b408,_0x42ff7a)=>_0x361e49(_0x35b408,_0x42ff7a,_0x13f147);const Gi=0x12c,Yi=0x64;let vt=class extends a[_0x414e95(0x58a)]{constructor(_0x3f8feb,_0x556e35,_0x37f982,_0x4d024e,_0x56a486,_0x4221c5,_0x59852f,_0x5e3c97,_0x14dcbd){const _0x170804=_0x414e95;super(),I(this,_0x170804(0x2c9),!0x1),I(this,'_init',!0x1),I(this,_0x170804(0x55b),new A['BehaviorSubject'](new Map())),I(this,_0x170804(0x351),this['_cursorInfo$'][_0x170804(0x3b3)]()),I(this,_0x170804(0x3b4),new A['BehaviorSubject']([])),I(this,_0x170804(0x60c),this['_roomMembers$'][_0x170804(0x5b9)](A[_0x170804(0x1b9)](Gi))),I(this,_0x170804(0x53e),a[_0x170804(0x379)](_0x327143=>{const _0x30e172=_0x170804,_0x2bdf40={'eventID':S[_0x30e172(0x56a)][_0x30e172(0x529)],'data':{'unitID':this[_0x30e172(0x1e2)],'memberID':this[_0x30e172(0x5ee)]['getMemberID'](),'selection':un(_0x327143)}};this['_session'][_0x30e172(0x604)](_0x2bdf40,this[_0x30e172(0x1e2)]);},Yi)),(this['unitID']=_0x3f8feb,this[_0x170804(0x5ee)]=_0x556e35,this['_injector']=_0x37f982,this[_0x170804(0x48b)]=_0x4d024e,this[_0x170804(0x5c5)]=_0x56a486,this[_0x170804(0x458)]=_0x4221c5,this[_0x170804(0x407)]=_0x59852f,this[_0x170804(0x588)]=_0x5e3c97,this[_0x170804(0x4f9)]=_0x14dcbd);}get[_0x414e95(0x5b4)](){const _0x4fc454=_0x414e95;return this['_cursorInfo$'][_0x4fc454(0x25e)]();}get[_0x414e95(0x168)](){const _0x32a0f0=_0x414e95;return this[_0x32a0f0(0x3b4)][_0x32a0f0(0x25e)]();}[_0x414e95(0x4c3)](){const _0x256764=_0x414e95;super[_0x256764(0x4c3)](),this['_cursorInfo$'][_0x256764(0x370)](new Map()),this[_0x256764(0x55b)][_0x256764(0x1cb)](),this[_0x256764(0x3b4)][_0x256764(0x370)]([]),this['_roomMembers$'][_0x256764(0x1cb)]();}[_0x414e95(0x4ea)](){const _0xebcc4b=_0x414e95;this['_init']||(this[_0xebcc4b(0x600)]=!0x0,this['_session'][_0xebcc4b(0x1d5)][_0xebcc4b(0x5b9)](A[_0xebcc4b(0x566)](this[_0xebcc4b(0x2d0)]))[_0xebcc4b(0x2ac)](_0x1055b3=>{const _0x341bb2=_0xebcc4b;_0x1055b3===re['ONLINE']?this[_0x341bb2(0x535)]():this[_0x341bb2(0x591)]();}),this[_0xebcc4b(0x5ee)]['event$']['pipe'](A[_0xebcc4b(0x566)](this[_0xebcc4b(0x2d0)]))[_0xebcc4b(0x2ac)](_0x1dc425=>{const _0x1f99cf=_0xebcc4b,_0x4a0275=_0x1dc425[_0x1f99cf(0x3d3)];_0x4a0275===S[_0x1f99cf(0x56a)]['UPDATE_CURSOR']&&this[_0x1f99cf(0x240)](_0x1dc425),_0x4a0275===S[_0x1f99cf(0x56a)][_0x1f99cf(0x3b9)]&&this[_0x1f99cf(0x49a)](_0x1dc425);}),this[_0xebcc4b(0x35b)](this[_0xebcc4b(0x4f9)][_0xebcc4b(0x297)](_0x3b58bb=>{const _0xd823fc=_0xebcc4b,_0x362f2c=_0x3b58bb['params'];_0x362f2c!=null&&this['_online']&&_0x3b58bb['id']===Re[_0xd823fc(0x1f8)]['id']&&_0x362f2c[_0xd823fc(0x581)]===this['unitID']&&_0x362f2c[_0xd823fc(0x1d2)]===!0x1&&_0x362f2c[_0xd823fc(0x5c6)][_0xd823fc(0x532)]>0x0&&this[_0xd823fc(0x53e)](_0x362f2c[_0xd823fc(0x5c6)]);})),this[_0xebcc4b(0x458)][_0xebcc4b(0x533)][_0xebcc4b(0x5b9)](A[_0xebcc4b(0x566)](this[_0xebcc4b(0x2d0)]))['subscribe'](_0x165691=>{const _0x58041c=_0xebcc4b;if((_0x165691==null?void 0x0:_0x165691[_0x58041c(0x1e2)])!==this['unitID'])return;const _0x51cdcc={'eventID':S['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x165691};this[_0x58041c(0x240)](_0x51cdcc);}),this[_0xebcc4b(0x35b)](this[_0xebcc4b(0x4f9)][_0xebcc4b(0x297)](_0x2c74fe=>{const _0x4c7d08=_0xebcc4b;if(_0x2c74fe[_0x4c7d08(0x537)]==null)return;const _0x52dc18=_0x2c74fe[_0x4c7d08(0x537)];if(_0x2c74fe['id']!==Re[_0x4c7d08(0x487)]['id']||_0x52dc18[_0x4c7d08(0x581)]!==this[_0x4c7d08(0x1e2)])return;const _0x184460={'id':_0x4c7d08(0x52c),'params':_0x52dc18},_0x3443c2=this['cursorInfo'];for(const [_0x41d4f1,_0x422465]of _0x3443c2){const _0x55463c={'id':_0x4c7d08(0x52c),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x422465[_0x4c7d08(0x5c6)]}},_0x58ce84=this['_transformService']['transformMutation'](_0x184460,_0x55463c,!0x1);if(S['isTransformMutationFailure'](_0x58ce84))throw _0x58ce84[_0x4c7d08(0x456)];_0x3443c2[_0x4c7d08(0x5c7)](_0x41d4f1,{..._0x422465,'ranges':_0x58ce84[_0x4c7d08(0x400)][_0x4c7d08(0x537)]['textRanges']});}queueMicrotask(()=>{const _0x4f9bbb=_0x4c7d08;this[_0x4f9bbb(0x55b)][_0x4f9bbb(0x370)](_0x3443c2);});})));}['_onCursorUpdate'](_0x2a50f9){const _0x581571=_0x414e95;var _0x5092b5,_0xa7d34f;const {memberID:_0x21e2cf,selection:_0x49018f}=_0x2a50f9[_0x581571(0x396)],_0x316940=Di(_0x49018f),_0x56e731=(_0xa7d34f=(_0x5092b5=this[_0x581571(0x5c5)][_0x581571(0x5a8)](this[_0x581571(0x1e2)],_0x21e2cf))==null?void 0x0:_0x5092b5[_0x581571(0x20e)])!=null?_0xa7d34f:_0x581571(0x36b),_0x36c730={'color':this[_0x581571(0x48b)][_0x581571(0x2d7)](_0x21e2cf),'name':_0x56e731,'ranges':_0x316940},_0xcbfb38=this[_0x581571(0x5b4)];_0xcbfb38[_0x581571(0x5c7)](_0x21e2cf,_0x36c730),this[_0x581571(0x55b)][_0x581571(0x370)](_0xcbfb38);}[_0x414e95(0x49a)](_0x2dfd65){const _0x2b51a3=_0x414e95,{memberID:_0x4f6f8d}=_0x2dfd65[_0x2b51a3(0x396)],_0x288809=this[_0x2b51a3(0x5b4)];_0x288809[_0x2b51a3(0x4da)](_0x4f6f8d),this[_0x2b51a3(0x55b)][_0x2b51a3(0x370)](_0x288809);}[_0x414e95(0x535)](){const _0xb29ca=_0x414e95;var _0x1cd801;if(this['_online']=!0x0,((_0x1cd801=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1cd801['getUnitId']())!==this[_0xb29ca(0x1e2)])return;const _0x3d0f10=this[_0xb29ca(0x4f3)][_0xb29ca(0x4e0)](Re[_0xb29ca(0x4f0)])[_0xb29ca(0x476)]();Array['isArray'](_0x3d0f10)&&_0x3d0f10[_0xb29ca(0x532)]>0x0&&this[_0xb29ca(0x53e)](_0x3d0f10);}[_0x414e95(0x591)](){const _0xea1e14=_0x414e95;this[_0xea1e14(0x2c9)]=!0x1;}};vt=Vi([Se(0x2,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),Se(0x3,a[_0x414e95(0x4dd)](yt)),Se(0x4,a[_0x414e95(0x4dd)](exports['MemberService'])),Se(0x5,a[_0x414e95(0x4dd)](Tt)),Se(0x6,S[_0x414e95(0x4f2)]),Se(0x7,a[_0x414e95(0x1df)]),Se(0x8,a[_0x414e95(0x1ea)])],vt);var Ki=Object['defineProperty'],qi=Object['getOwnPropertyDescriptor'],zi=(_0x1bc467,_0x20877e,_0x50f887,_0xf7909f)=>{const _0x35fa94=_0x414e95;for(var _0x5ebd13=_0xf7909f>0x1?void 0x0:_0xf7909f?qi(_0x20877e,_0x50f887):_0x20877e,_0x568aaa=_0x1bc467[_0x35fa94(0x532)]-0x1,_0x30c0c0;_0x568aaa>=0x0;_0x568aaa--)(_0x30c0c0=_0x1bc467[_0x568aaa])&&(_0x5ebd13=(_0xf7909f?_0x30c0c0(_0x20877e,_0x50f887,_0x5ebd13):_0x30c0c0(_0x5ebd13))||_0x5ebd13);return _0xf7909f&&_0x5ebd13&&Ki(_0x20877e,_0x50f887,_0x5ebd13),_0x5ebd13;},Ee=(_0x219430,_0x5354b6)=>(_0x216adb,_0x50b795)=>_0x5354b6(_0x216adb,_0x50b795,_0x219430);const Xi=0x12c,Ji=0x64,Zi=()=>{let _0x12a78e=[],_0x299c02=!0x1;return _0x5bf93d=>{_0x12a78e['push'](_0x5bf93d),_0x299c02||(_0x299c02=!0x0,setTimeout(()=>{_0x12a78e['forEach'](_0x3c385d=>_0x3c385d()),_0x12a78e=[],_0x299c02=!0x1;}));};};let mt=class extends a[_0x414e95(0x58a)]{constructor(_0x145b5b,_0x4a75db,_0x27dbd6,_0x4c5b54,_0x5ef965,_0x28c9a6,_0x4b1f26,_0xcad5e){const _0x13b4ed=_0x414e95;super(),I(this,_0x13b4ed(0x2c9),!0x1),I(this,'_init',!0x1),I(this,_0x13b4ed(0x55b),new A['BehaviorSubject'](new Map())),I(this,_0x13b4ed(0x351),this[_0x13b4ed(0x55b)][_0x13b4ed(0x3b3)]()),I(this,_0x13b4ed(0x3b4),new A[(_0x13b4ed(0x1a2))]([])),I(this,_0x13b4ed(0x60c),this[_0x13b4ed(0x3b4)]['pipe'](A[_0x13b4ed(0x1b9)](Xi))),I(this,_0x13b4ed(0x53e),a['debounce']((_0x2d6b5d,_0x20b397)=>{const _0x1cb9f2=_0x13b4ed,_0xb4d2d4={'eventID':S[_0x1cb9f2(0x56a)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x1cb9f2(0x5ee)][_0x1cb9f2(0x48e)](),'selection':wt['serializeRangeWithSheet'](_0x2d6b5d,_0x20b397[_0x1cb9f2(0x50c)])}};this[_0x1cb9f2(0x5ee)][_0x1cb9f2(0x604)](_0xb4d2d4,this[_0x1cb9f2(0x1e2)]);},Ji)),(this['unitID']=_0x145b5b,this[_0x13b4ed(0x5ee)]=_0x4a75db,this[_0x13b4ed(0x4f3)]=_0x27dbd6,this['_colorAssignService']=_0x4c5b54,this[_0x13b4ed(0x5c5)]=_0x5ef965,this[_0x13b4ed(0x588)]=_0x28c9a6,this[_0x13b4ed(0x4f9)]=_0x4b1f26,this[_0x13b4ed(0x5e3)]=_0xcad5e);}get['cursorInfo'](){const _0x1d71f9=_0x414e95;return this['_cursorInfo$'][_0x1d71f9(0x25e)]();}get[_0x414e95(0x168)](){const _0xd1b577=_0x414e95;return this[_0xd1b577(0x3b4)][_0xd1b577(0x25e)]();}[_0x414e95(0x4c3)](){const _0x5ecf22=_0x414e95;super[_0x5ecf22(0x4c3)](),this[_0x5ecf22(0x55b)][_0x5ecf22(0x370)](new Map()),this[_0x5ecf22(0x55b)][_0x5ecf22(0x1cb)](),this[_0x5ecf22(0x3b4)][_0x5ecf22(0x370)]([]),this[_0x5ecf22(0x3b4)]['complete']();}[_0x414e95(0x4ea)](){const _0x261c3d=_0x414e95;this['_init']||(this[_0x261c3d(0x600)]=!0x0,this[_0x261c3d(0x5ee)]['sessionStatus$'][_0x261c3d(0x5b9)](A[_0x261c3d(0x566)](this[_0x261c3d(0x2d0)]))[_0x261c3d(0x2ac)](_0x167714=>{const _0x1ad3b6=_0x261c3d;_0x167714===re['ONLINE']?this[_0x1ad3b6(0x535)]():this['_toggleOffline']();}),this[_0x261c3d(0x5ee)][_0x261c3d(0x5a4)][_0x261c3d(0x5b9)](A[_0x261c3d(0x566)](this[_0x261c3d(0x2d0)]))[_0x261c3d(0x2ac)](_0x3b177f=>{const _0x258ce6=_0x261c3d,_0x1f304d=_0x3b177f[_0x258ce6(0x3d3)];_0x1f304d===S[_0x258ce6(0x56a)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3b177f),_0x1f304d===S[_0x258ce6(0x56a)]['USERS_LEAVE']&&this[_0x258ce6(0x49a)](_0x3b177f);}),this[_0x261c3d(0x1f1)](),this[_0x261c3d(0x35b)](this[_0x261c3d(0x4f9)]['onCommandExecuted'](_0x274b87=>{const _0xad21cd=_0x261c3d;if(this['_online']&&_0x274b87['id']===k[_0xad21cd(0x291)]['id']&&_0x274b87[_0xad21cd(0x537)][_0xad21cd(0x581)]===this[_0xad21cd(0x1e2)]){const _0x38fc8d=_0x274b87['params'];this['_updateLocalCursor'](_0x38fc8d['subUnitId'],_0x38fc8d[_0xad21cd(0x3a4)][0x0]);}})));}[_0x414e95(0x240)](_0x5380b6){const _0x250ee6=_0x414e95;var _0x2830fb,_0x21c34e;const {memberID:_0x26ee62,selection:_0x9a3bc9}=_0x5380b6[_0x250ee6(0x396)],{sheetName:_0x5aa8a3,range:_0x43cb3d}=wt[_0x250ee6(0x1af)](_0x9a3bc9),_0x4caca4={'name':(_0x21c34e=(_0x2830fb=this[_0x250ee6(0x5c5)][_0x250ee6(0x5a8)](this['unitID'],_0x26ee62))==null?void 0x0:_0x2830fb['name'])!=null?_0x21c34e:_0x250ee6(0x36b),'range':this['_getMergeRange'](_0x5aa8a3,_0x43cb3d),'sheetID':_0x5aa8a3,'color':this[_0x250ee6(0x48b)][_0x250ee6(0x2d7)](_0x26ee62),'selection':_0x9a3bc9},_0x4e90ab=this[_0x250ee6(0x5b4)];_0x4e90ab['set'](_0x26ee62,_0x4caca4),this[_0x250ee6(0x55b)]['next'](_0x4e90ab);}[_0x414e95(0x49a)](_0x49f165){const _0x40115d=_0x414e95,{memberID:_0x1fae89}=_0x49f165[_0x40115d(0x396)],_0x12856c=this[_0x40115d(0x5b4)];_0x12856c[_0x40115d(0x4da)](_0x1fae89),this[_0x40115d(0x55b)][_0x40115d(0x370)](_0x12856c);}[_0x414e95(0x43f)](_0x59f2cb,_0x4e7ade){const _0x15e9cf=_0x414e95;var _0x208de9,_0xdd7c4;const _0x480b18=(_0xdd7c4=(_0x208de9=this[_0x15e9cf(0x588)][_0x15e9cf(0x242)](this[_0x15e9cf(0x1e2)]))==null?void 0x0:_0x208de9[_0x15e9cf(0x388)](_0x59f2cb))==null?void 0x0:_0xdd7c4[_0x15e9cf(0x4f8)]();return(_0x480b18==null?void 0x0:_0x480b18[_0x15e9cf(0x17e)](_0x5f20d8=>a[_0x15e9cf(0x22c)][_0x15e9cf(0x3ea)](_0x5f20d8,_0x4e7ade)))||_0x4e7ade;}[_0x414e95(0x1f1)](){const _0x2e5c33=_0x414e95,_0xe7095f=new a['DisposableCollection'](),_0x2c6dc1=Zi(),_0x52457b=()=>{const _0x72ed3b=_0x474b;_0xe7095f[_0x72ed3b(0x4c3)]();const _0x5ecbda=(_0x2dde4e,_0x6bcdc9,_0x34b476,_0x2fa450)=>{const _0x1dc668=_0x72ed3b;let _0x410045=[];switch(_0x2dde4e['id']){case k[_0x1dc668(0x33a)][_0x1dc668(0x1b3)]:{_0x410045=k[_0x1dc668(0x5c0)](_0x2dde4e,_0x2fa450);break;}case k['EffectRefRangId'][_0x1dc668(0x421)]:{_0x410045=k[_0x1dc668(0x2bd)](_0x2dde4e,_0x2fa450);break;}case k[_0x1dc668(0x33a)][_0x1dc668(0x213)]:{_0x410045=k[_0x1dc668(0x448)](_0x2dde4e,_0x2fa450);break;}case k['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x410045=k[_0x1dc668(0x264)](_0x2dde4e,_0x2fa450);break;}case k[_0x1dc668(0x33a)][_0x1dc668(0x618)]:{_0x410045=k['handleInsertRangeMoveRight'](_0x2dde4e,_0x2fa450);break;}case k[_0x1dc668(0x33a)][_0x1dc668(0x5de)]:{_0x410045=k[_0x1dc668(0x2c0)](_0x2dde4e,_0x2fa450);break;}case k[_0x1dc668(0x33a)]['MoveRangeCommandId']:{_0x410045=k['handleMoveRange'](_0x2dde4e,_0x2fa450);break;}case k['EffectRefRangId'][_0x1dc668(0x42e)]:{_0x410045=k[_0x1dc668(0x60f)](_0x2dde4e,_0x2fa450);break;}case k['EffectRefRangId'][_0x1dc668(0x404)]:{_0x410045=k[_0x1dc668(0x5f7)](_0x2dde4e,_0x2fa450);break;}}const _0x567051=k['runRefRangeMutations'](_0x410045,_0x2fa450),_0x2fa83f=this[_0x1dc668(0x5b4)]['get'](_0x6bcdc9);if(_0x2fa83f&&_0x567051){const _0x2ba8af={..._0x2fa83f,'range':_0x567051};this[_0x1dc668(0x5b4)][_0x1dc668(0x5c7)](_0x6bcdc9,_0x2ba8af),_0x2c6dc1(()=>{const _0x2e88bd=_0x1dc668,_0x24af83=this[_0x2e88bd(0x5e3)][_0x2e88bd(0x2e2)](_0x567051,_0x31fc8f=>(_0x24af83[_0x2e88bd(0x4c3)](),_0x5ecbda(_0x31fc8f,_0x6bcdc9,_0x34b476,_0x567051)));_0xe7095f[_0x2e88bd(0x48f)](_0x24af83);});}return{'redos':[],'undos':[]};};this[_0x72ed3b(0x5b4)][_0x72ed3b(0x36c)]((_0x37c4ed,_0x38f554)=>{const _0x5d1fe5=_0x72ed3b,{range:_0x45d59f,sheetID:_0xa05854}=_0x37c4ed,_0x5861bc=this[_0x5d1fe5(0x5e3)][_0x5d1fe5(0x2e2)](_0x45d59f,_0x46c4bc=>(_0x5861bc[_0x5d1fe5(0x4c3)](),_0x5ecbda(_0x46c4bc,_0x38f554,_0xa05854,_0x45d59f)));_0xe7095f['add'](_0x5861bc);});};this[_0x2e5c33(0x35b)](a[_0x2e5c33(0x5e5)](this[_0x2e5c33(0x55b)][_0x2e5c33(0x2ac)](()=>{_0x52457b();})));}[_0x414e95(0x535)](){const _0x10909f=_0x414e95;var _0x28da1f,_0x691d4b;if(this[_0x10909f(0x2c9)]=!0x0,((_0x28da1f=this['_univerInstanceService'][_0x10909f(0x574)]())==null?void 0x0:_0x28da1f['getUnitId']())!==this['unitID'])return;const _0x1ab473=(_0x691d4b=this[_0x10909f(0x4f3)]['get'](k[_0x10909f(0x193)])['getCurrentSelections']())==null?void 0x0:_0x691d4b[0x0],_0x264900=this['_univerInstanceService'][_0x10909f(0x192)](a[_0x10909f(0x3ef)][_0x10909f(0x353)])['getActiveSheet']();_0x1ab473&&_0x264900&&this[_0x10909f(0x53e)](_0x264900[_0x10909f(0x5c1)](),_0x1ab473);}[_0x414e95(0x591)](){this['_online']=!0x1;}};mt=zi([Ee(0x2,a[_0x414e95(0x4dd)](a['Injector'])),Ee(0x3,a['Inject'](yt)),Ee(0x4,a[_0x414e95(0x4dd)](exports[_0x414e95(0x45a)])),Ee(0x5,a[_0x414e95(0x1df)]),Ee(0x6,a[_0x414e95(0x1ea)]),Ee(0x7,a[_0x414e95(0x4dd)](k[_0x414e95(0x3aa)]))],mt);var Qi=Object[_0x414e95(0x47c)],es=Object[_0x414e95(0x51f)],ts=(_0x9866af,_0x5010b4,_0x79d267,_0x13c0a9)=>{const _0x47f939=_0x414e95;for(var _0x4a98f2=_0x13c0a9>0x1?void 0x0:_0x13c0a9?es(_0x5010b4,_0x79d267):_0x5010b4,_0x1a7da8=_0x9866af[_0x47f939(0x532)]-0x1,_0x445023;_0x1a7da8>=0x0;_0x1a7da8--)(_0x445023=_0x9866af[_0x1a7da8])&&(_0x4a98f2=(_0x13c0a9?_0x445023(_0x5010b4,_0x79d267,_0x4a98f2):_0x445023(_0x4a98f2))||_0x4a98f2);return _0x13c0a9&&_0x4a98f2&&Qi(_0x5010b4,_0x79d267,_0x4a98f2),_0x4a98f2;},tt=(_0x8db01e,_0x320b00)=>(_0x397c73,_0x4250da)=>_0x320b00(_0x397c73,_0x4250da,_0x8db01e);let Oe=class extends a['RxDisposable']{constructor(_0x21e3c2,_0x4d105b,_0x1f1b7e){const _0x58156e=_0x414e95;super(),I(this,_0x58156e(0x1d1),new Map()),I(this,'_entityInit$',new A[(_0x58156e(0x37e))]()),(this[_0x58156e(0x588)]=_0x21e3c2,this[_0x58156e(0x4f3)]=_0x4d105b,this[_0x58156e(0x430)]=_0x1f1b7e,this[_0x58156e(0x600)]());}[_0x414e95(0x4c3)](){const _0x1aadf2=_0x414e95;super['dispose'](),this[_0x1aadf2(0x265)][_0x1aadf2(0x1cb)](),this[_0x1aadf2(0x1d1)][_0x1aadf2(0x36c)](_0x4c5af0=>_0x4c5af0[_0x1aadf2(0x4c3)]());}[_0x414e95(0x527)](_0x4ec046){const _0x20e22b=_0x414e95;return this['_entities']['has'](_0x4ec046)?this['_entities'][_0x20e22b(0x4e0)](_0x4ec046)[_0x20e22b(0x351)]:this[_0x20e22b(0x265)][_0x20e22b(0x5b9)](A[_0x20e22b(0x5f2)](_0x5933cf=>_0x5933cf[_0x20e22b(0x1e2)]===_0x4ec046),A[_0x20e22b(0x580)](_0x20240d=>_0x20240d[_0x20e22b(0x351)]));}[_0x414e95(0x600)](){const _0xde2c3b=_0x414e95;this[_0xde2c3b(0x588)]['getTypeOfUnitAdded$'](a[_0xde2c3b(0x3ef)][_0xde2c3b(0x353)])['pipe'](A[_0xde2c3b(0x566)](this['dispose$']))[_0xde2c3b(0x2ac)](async _0x5e30c2=>{const _0x48d2c3=_0xde2c3b,_0x3a4e5c=_0x5e30c2[_0x48d2c3(0x19f)](),_0xc8deb=await this[_0x48d2c3(0x1f3)](_0x3a4e5c);this[_0x48d2c3(0x265)][_0x48d2c3(0x370)](_0xc8deb),this[_0x48d2c3(0x1d1)][_0x48d2c3(0x5c7)](_0x3a4e5c,_0xc8deb);}),this[_0xde2c3b(0x588)][_0xde2c3b(0x390)](a['UniverInstanceType'][_0xde2c3b(0x446)])['pipe'](A[_0xde2c3b(0x566)](this[_0xde2c3b(0x2d0)]))[_0xde2c3b(0x5b9)](A[_0xde2c3b(0x5f2)](_0x34ba27=>!_0x34ba27[_0xde2c3b(0x19f)]()[_0xde2c3b(0x3ad)]('__')))[_0xde2c3b(0x2ac)](async _0x50f3b8=>{const _0x5201b2=_0xde2c3b,_0x246987=_0x50f3b8[_0x5201b2(0x19f)](),_0x559d23=await this[_0x5201b2(0x495)](_0x246987);this[_0x5201b2(0x265)]['next'](_0x559d23),this[_0x5201b2(0x1d1)][_0x5201b2(0x5c7)](_0x246987,_0x559d23);}),A[_0xde2c3b(0x49c)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0xde2c3b(0x3ef)][_0xde2c3b(0x446)]),this[_0xde2c3b(0x588)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SHEET']))[_0xde2c3b(0x5b9)](A['takeUntil'](this['dispose$']))[_0xde2c3b(0x2ac)](_0x732a7e=>{const _0x340926=_0xde2c3b,_0x44e73a=_0x732a7e[_0x340926(0x19f)](),_0x50ad8b=this['_entities']['get'](_0x44e73a);_0x50ad8b&&(_0x50ad8b[_0x340926(0x4c3)](),this[_0x340926(0x1d1)][_0x340926(0x4da)](_0x44e73a));});}async[_0x414e95(0x1f3)](_0x5424eb){const _0x8c1045=_0x414e95,_0x212911=await this[_0x8c1045(0x430)][_0x8c1045(0x350)](_0x5424eb),_0x3f6ad2=this[_0x8c1045(0x4f3)][_0x8c1045(0x23f)](mt,_0x5424eb,_0x212911);return _0x3f6ad2[_0x8c1045(0x4ea)](),_0x3f6ad2;}async[_0x414e95(0x495)](_0x278ec4){const _0x16a99d=_0x414e95,_0x75d0a9=await this['_collabSessionService'][_0x16a99d(0x350)](_0x278ec4),_0x27953a=this['_injector'][_0x16a99d(0x23f)](vt,_0x278ec4,_0x75d0a9);return _0x27953a[_0x16a99d(0x4ea)](),_0x27953a;}};Oe=ts([tt(0x0,a['IUniverInstanceService']),tt(0x1,a['Inject'](a[_0x414e95(0x268)])),tt(0x2,a[_0x414e95(0x4dd)](exports['CollaborationSessionService']))],Oe);const Ne=0x14,jt=0xc8,nt=0x4,ns=0x5;function is(_0x1ae71c,_0x1d0b65){const _0x6b120a=_0x414e95;let {radius:_0x4377d4,width:_0x3e62a1,height:_0x4a4627}=_0x1d0b65;_0x4377d4=_0x4377d4!=null?_0x4377d4:0x0,_0x3e62a1=_0x3e62a1!=null?_0x3e62a1:0x1e,_0x4a4627=_0x4a4627!=null?_0x4a4627:0x1e;let _0x18ea97=0x0,_0x27a1e6=0x0,_0x262aff=0x0;_0x18ea97=_0x27a1e6=_0x262aff=Math[_0x6b120a(0x26e)](_0x4377d4,_0x3e62a1/0x2,_0x4a4627/0x2),_0x1ae71c[_0x6b120a(0x1d6)](),_0x1ae71c[_0x6b120a(0x4a3)](_0x18ea97,0x0),_0x1ae71c[_0x6b120a(0x187)](_0x3e62a1-_0x27a1e6,0x0),_0x1ae71c['arc'](_0x3e62a1-_0x27a1e6,_0x27a1e6,_0x27a1e6,Math['PI']*0x3/0x2,0x0,!0x1),_0x1ae71c[_0x6b120a(0x187)](_0x3e62a1,_0x4a4627-_0x262aff),_0x1ae71c[_0x6b120a(0x46b)](_0x3e62a1-_0x262aff,_0x4a4627-_0x262aff,_0x262aff,0x0,Math['PI']/0x2,!0x1),_0x1ae71c[_0x6b120a(0x187)](0x0,_0x4a4627),_0x1ae71c[_0x6b120a(0x187)](0x0,_0x18ea97),_0x1ae71c['arc'](_0x18ea97,_0x18ea97,_0x18ea97,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1ae71c[_0x6b120a(0x433)](),_0x1d0b65[_0x6b120a(0x1ce)]&&(_0x1ae71c[_0x6b120a(0x373)](),_0x1ae71c[_0x6b120a(0x60a)]=_0x1d0b65[_0x6b120a(0x1ce)],_0x1d0b65[_0x6b120a(0x4b8)]===_0x6b120a(0x42c)?_0x1ae71c[_0x6b120a(0x1ce)](_0x6b120a(0x42c)):_0x1ae71c[_0x6b120a(0x1ce)](),_0x1ae71c[_0x6b120a(0x36f)]());}class ze extends K[_0x414e95(0x40c)]{constructor(_0x2d76fa,_0x222a98){const _0x3f4f72=_0x414e95;super(_0x2d76fa,_0x222a98),I(this,_0x3f4f72(0x22f)),I(this,'text'),(this[_0x3f4f72(0x22f)]=_0x222a98==null?void 0x0:_0x222a98[_0x3f4f72(0x22f)],this[_0x3f4f72(0x5a5)]=_0x222a98==null?void 0x0:_0x222a98[_0x3f4f72(0x5a5)]);}static[_0x414e95(0x35c)](_0x2211aa,_0x447a16){const _0x1e5004=_0x414e95,{text:_0x53bc68,color:_0x1bd760}=_0x447a16;_0x2211aa[_0x1e5004(0x373)](),_0x2211aa[_0x1e5004(0x417)]=_0x1e5004(0x246);const _0xb2700=_0x2211aa[_0x1e5004(0x410)](_0x53bc68)[_0x1e5004(0x16b)],_0x16623e=Math[_0x1e5004(0x26e)](_0xb2700+0x2*nt,jt);is(_0x2211aa,{'height':Ne,'radius':0x4,'width':_0x16623e,'fill':_0x1bd760,'evented':!0x1}),_0x2211aa[_0x1e5004(0x60a)]=_0x1e5004(0x561);const _0x2ae546=nt,_0x15dc50=Ne-ns,_0x2d180c=jt-0x2*nt;if(_0xb2700>_0x2d180c){let _0x31afe6='',_0x3b3c75=0x0;for(const _0x3c8fd2 of _0x53bc68){const _0x51f5dc=_0x2211aa[_0x1e5004(0x410)](_0x3c8fd2)[_0x1e5004(0x16b)];if(_0x3b3c75+_0x51f5dc<=_0x2d180c-_0x2211aa[_0x1e5004(0x410)](_0x1e5004(0x386))[_0x1e5004(0x16b)])_0x31afe6+=_0x3c8fd2,_0x3b3c75+=_0x51f5dc;else{_0x31afe6+=_0x1e5004(0x386);break;}}_0x2211aa[_0x1e5004(0x61f)](_0x31afe6,_0x2ae546,_0x15dc50);}else _0x2211aa[_0x1e5004(0x61f)](_0x53bc68,_0x2ae546,_0x15dc50);_0x2211aa[_0x1e5004(0x36f)]();}[_0x414e95(0x32d)](_0x23f2af){const _0x4ad3d5=_0x414e95;ze[_0x4ad3d5(0x35c)](_0x23f2af,this);}}const it=_0x414e95(0x182),ss=_0x414e95(0x22b),rs=_0x414e95(0x496),Pe=0x6,os=1.5,st=0x4,as=1.5,cs='rgba(255,\x20255,\x20255,\x200.01)';class Ht{constructor(_0x31b8c3,_0x48af6c,_0x21e980,_0x28a2b2){const _0x3acaa0=_0x414e95;I(this,'_shapes',[]),I(this,_0x3acaa0(0x1ed),null),I(this,_0x3acaa0(0x23c),null),I(this,'_anchorDot',null),I(this,_0x3acaa0(0x38e),null),I(this,_0x3acaa0(0x207),null),(this[_0x3acaa0(0x37d)]=_0x31b8c3,this['_scene']=_0x48af6c,this[_0x3acaa0(0x376)]=_0x21e980,this[_0x3acaa0(0x5b7)]=_0x28a2b2,this[_0x3acaa0(0x52a)]());}set['_hover'](_0x13f823){const _0x150ae6=_0x414e95;_0x13f823?(this[_0x150ae6(0x21d)]&&this[_0x150ae6(0x21d)][_0x150ae6(0x51a)](),this[_0x150ae6(0x23c)]&&this[_0x150ae6(0x23c)]['show']()):(this[_0x150ae6(0x21d)]&&this[_0x150ae6(0x21d)][_0x150ae6(0x562)](),this[_0x150ae6(0x23c)]&&this[_0x150ae6(0x23c)][_0x150ae6(0x51a)]());}[_0x414e95(0x4c3)](){const _0x1e242c=_0x414e95;for(const _0x200cf9 of this[_0x1e242c(0x245)])_0x200cf9['dispose']();this[_0x1e242c(0x23c)]&&this[_0x1e242c(0x23c)][_0x1e242c(0x4c3)](),this[_0x1e242c(0x21d)]&&this[_0x1e242c(0x21d)]['dispose'](),this['_anchor']&&this['_anchor'][_0x1e242c(0x4c3)](),this[_0x1e242c(0x207)]&&this[_0x1e242c(0x207)]();}[_0x414e95(0x52a)](){const _0x1f6633=_0x414e95;var _0x1a9e72;const {_docSkeleton:_0x233bbd,_document:_0x5283c5}=this,{color:_0x5ca212,name:_0x320c18,ranges:_0x729b74}=this[_0x1f6633(0x37d)],_0xf02ad3=_0x5283c5['getOffsetConfig'](),{docsLeft:_0xdc78a7,docsTop:_0x339548}=_0xf02ad3,_0x58d7e1=new Z[(_0x1f6633(0x544))](_0xf02ad3,_0x233bbd);for(const {startOffset:_0x388b50,endOffset:_0x7c892c,rangeType:_0x1944ba,segmentId:_0x5a60db,segmentPage:_0x4f8301,collapsed:_0x5556fa,isActive:_0x4b33a6}of _0x729b74){const _0x555976=_0x233bbd[_0x1f6633(0x40d)](_0x388b50,!0x0,_0x5a60db,_0x4f8301);let _0x31d406=_0x233bbd[_0x1f6633(0x40d)](_0x7c892c,!0x0,_0x5a60db,_0x4f8301);if(_0x31d406==null&&(_0x31d406=_0x233bbd['findNodePositionByCharIndex'](_0x7c892c-0x1,!0x1,_0x5a60db,_0x4f8301)),_0x4b33a6){const {contentBoxPointGroup:_0x24eb15}=_0x58d7e1[_0x1f6633(0x494)](_0x31d406,_0x31d406);if(_0x24eb15[_0x1f6633(0x532)]===0x0)continue;this[_0x1f6633(0x4ba)](_0x5ca212,_0x24eb15,_0xdc78a7,_0x339548,_0x320c18),this[_0x1f6633(0x207)]=this['_handleHover']();}if(!_0x5556fa&&_0x555976&&_0x31d406){if(_0x1944ba===a[_0x1f6633(0x5bb)][_0x1f6633(0x4a1)]){const _0x54fae5=new Z['NodePositionConvertToRectRange'](_0xf02ad3,_0x233bbd),{pointGroup:_0x4c484c}=(_0x1a9e72=_0x54fae5[_0x1f6633(0x494)](_0x555976,_0x31d406))!=null?_0x1a9e72:{};if(_0x4c484c==null||_0x4c484c[_0x1f6633(0x532)]===0x0)continue;this['_drawRectRange'](_0x5ca212,_0x4c484c,_0xdc78a7,_0x339548);}else{const {borderBoxPointGroup:_0x6c4bfb}=_0x58d7e1[_0x1f6633(0x494)](_0x555976,_0x31d406);if(_0x6c4bfb[_0x1f6633(0x532)]===0x0)continue;this[_0x1f6633(0x293)](_0x5ca212,_0x6c4bfb,_0xdc78a7,_0x339548);}}}}['_drawAnchor'](_0x58de51,_0x23b804,_0x1dbd9e,_0x456f3a,_0x136cb4){const _0x134683=_0x414e95,_0x5c3891=this[_0x134683(0x33b)](_0x23b804),{left:_0x55a54f,top:_0x366074,height:_0x39ae4d}=_0x5c3891,_0x1341ab=this[_0x134683(0x53b)](),_0xf8eedd=as/_0x1341ab,_0x2be9b9=new K[(_0x134683(0x331))](it+a[_0x134683(0x608)][_0x134683(0x4f1)](Pe),{'left':_0x55a54f+_0x1dbd9e-_0xf8eedd,'top':_0x366074+_0x456f3a,'height':_0x39ae4d,'width':os,'fill':_0x58de51||K['getColor'](a[_0x134683(0x3f6)][_0x134683(0x3e5)],0x0),'strokeWidth':_0xf8eedd,'stroke':cs,'evented':!0x0});this[_0x134683(0x1ed)]=_0x2be9b9,this['_scene'][_0x134683(0x1e5)](_0x2be9b9,Z[_0x134683(0x3f9)]);const _0x503b27=new K[(_0x134683(0x331))](it+a['Tools'][_0x134683(0x4f1)](Pe),{'left':_0x55a54f+_0x1dbd9e-_0xf8eedd,'top':_0x366074+_0x456f3a-st/0x2,'height':st,'width':st,'fill':_0x58de51||K[_0x134683(0x269)](a[_0x134683(0x3f6)][_0x134683(0x3e5)],0x0),'strokeWidth':0x0,'stroke':_0x58de51||K[_0x134683(0x269)](a['COLORS'][_0x134683(0x3e5)],0x0),'evented':!0x1});this[_0x134683(0x21d)]=_0x503b27,this['_scene'][_0x134683(0x1e5)](_0x503b27,Z[_0x134683(0x3f9)]);const _0x1d6e0f=new ze(it+a[_0x134683(0x608)]['generateRandomId'](Pe),{'left':_0x55a54f+_0x1dbd9e-_0xf8eedd,'top':_0x366074+_0x456f3a-Ne,'text':_0x136cb4,'color':_0x58de51});this[_0x134683(0x23c)]=_0x1d6e0f,this[_0x134683(0x522)][_0x134683(0x1e5)](_0x1d6e0f,Z[_0x134683(0x3f9)]),this['_hover']=!0x1;}[_0x414e95(0x601)](){const _0x12ec18=_0x414e95,_0x9264fe=this[_0x12ec18(0x1ed)]['onPointerEnter$'][_0x12ec18(0x1ab)](()=>{const _0x2db513=_0x12ec18;this[_0x2db513(0x1c9)]=!0x0;}),_0x4a9e79=this[_0x12ec18(0x1ed)][_0x12ec18(0x235)][_0x12ec18(0x1ab)](()=>{const _0x5027f9=_0x12ec18;this[_0x5027f9(0x38e)]&&clearTimeout(this[_0x5027f9(0x38e)]),this[_0x5027f9(0x38e)]=setTimeout(()=>{const _0x48ddb0=_0x5027f9;this[_0x48ddb0(0x1c9)]=!0x1;},0x7d0);});return()=>{const _0x2956b2=_0x12ec18;_0x9264fe[_0x2956b2(0x2b6)](),_0x4a9e79[_0x2956b2(0x2b6)]();};}['_drawTextRange'](_0x8be2c3,_0x1eaf13,_0x3a6905,_0xedb32a){const _0x46c90b=_0x414e95,_0x585cc9=new a[(_0x46c90b(0x481))](_0x8be2c3)[_0x46c90b(0x59f)](0.2)['toRgbString'](),_0x19922f=new K[(_0x46c90b(0x54d))](ss+a[_0x46c90b(0x608)][_0x46c90b(0x4f1)](Pe),{'pointsGroup':_0x1eaf13,'fill':_0x585cc9||K[_0x46c90b(0x269)](a[_0x46c90b(0x3f6)][_0x46c90b(0x3e5)],0.2),'left':_0x3a6905,'top':_0xedb32a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x46c90b(0x245)][_0x46c90b(0x375)](_0x19922f),this[_0x46c90b(0x522)][_0x46c90b(0x1e5)](_0x19922f,Z[_0x46c90b(0x3f9)]);}[_0x414e95(0x35f)](_0x541040,_0x5ef37d,_0x1302a2,_0x65a80b){const _0x5659bb=_0x414e95,_0x275710=new a[(_0x5659bb(0x481))](_0x541040)['setAlpha'](0.2)['toRgbString'](),_0xfc765a=new K['RegularPolygon'](rs+a[_0x5659bb(0x608)][_0x5659bb(0x4f1)](Pe),{'pointsGroup':_0x5ef37d,'fill':_0x275710||K[_0x5659bb(0x269)](a[_0x5659bb(0x3f6)][_0x5659bb(0x3e5)],0.2),'left':_0x1302a2,'top':_0x65a80b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0xfc765a),this[_0x5659bb(0x522)][_0x5659bb(0x1e5)](_0xfc765a,Z['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x21c37b){const _0x4a4731=_0x21c37b[0x0],_0x502402=_0x4a4731[0x0],_0x1eb432=_0x4a4731[0x2],{x:_0x5425e5,y:_0x439342}=_0x502402,{x:_0x12a339,y:_0x4e982a}=_0x1eb432;return{'left':_0x5425e5,'top':_0x439342,'width':_0x12a339-_0x5425e5,'height':_0x4e982a-_0x439342};}[_0x414e95(0x53b)](){const _0x2ad188=_0x414e95,{scaleX:_0x51eb0e,scaleY:_0x2c7f15}=this[_0x2ad188(0x522)][_0x2ad188(0x3ae)]();return Math[_0x2ad188(0x56c)](_0x51eb0e,_0x2c7f15);}}var ls=Object['defineProperty'],hs=Object['getOwnPropertyDescriptor'],_s=(_0x3be53b,_0x56bf28,_0x3f4328,_0x434f27)=>{const _0x5d2fc2=_0x414e95;for(var _0x43a791=_0x434f27>0x1?void 0x0:_0x434f27?hs(_0x56bf28,_0x3f4328):_0x56bf28,_0x9bd479=_0x3be53b[_0x5d2fc2(0x532)]-0x1,_0x5b62ee;_0x9bd479>=0x0;_0x9bd479--)(_0x5b62ee=_0x3be53b[_0x9bd479])&&(_0x43a791=(_0x434f27?_0x5b62ee(_0x56bf28,_0x3f4328,_0x43a791):_0x5b62ee(_0x43a791))||_0x43a791);return _0x434f27&&_0x43a791&&ls(_0x56bf28,_0x3f4328,_0x43a791),_0x43a791;},$e=(_0x226a7d,_0x29e0c8)=>(_0x49718d,_0x1f78a9)=>_0x29e0c8(_0x49718d,_0x1f78a9,_0x226a7d);let St=class extends a[_0x414e95(0x58a)]{constructor(_0x464ae4,_0x258092,_0xde72c9,_0x453957,_0x40a805){const _0x379f95=_0x414e95;super(),I(this,_0x379f95(0x620),[]),I(this,_0x379f95(0x1eb),[]),(this[_0x379f95(0x3e8)]=_0x464ae4,this[_0x379f95(0x36e)]=_0x258092,this[_0x379f95(0x19a)]=_0xde72c9,this[_0x379f95(0x4f9)]=_0x453957,this[_0x379f95(0x30b)]=_0x40a805,this[_0x379f95(0x600)]());}[_0x414e95(0x600)](){const _0x428411=_0x414e95,_0x2a484c=this[_0x428411(0x3e8)][_0x428411(0x581)],_0x78c1ee=this[_0x428411(0x36e)];this['disposeWithMe'](A[_0x428411(0x4e1)]([this[_0x428411(0x19a)][_0x428411(0x527)](_0x2a484c),this[_0x428411(0x30b)][_0x428411(0x34b)]])[_0x428411(0x5b9)](V[_0x428411(0x4d1)](([_0xbd378d,_0x220baf])=>({'skeleton':_0x78c1ee[_0x428411(0x341)](),'cursors':[..._0xbd378d[_0x428411(0x4a5)]()][_0x428411(0x16d)](_0x33f8e8=>({..._0x33f8e8,'color':_0x220baf[_0x33f8e8[_0x428411(0x22f)]]}))})))[_0x428411(0x2ac)](_0x38dd0d=>{const _0x380529=_0x428411;if(this[_0x380529(0x362)](),_0x38dd0d){const {skeleton:_0x4b13c5,cursors:_0x942195}=_0x38dd0d;this[_0x380529(0x596)](_0x4b13c5,_0x942195);}})),this[_0x428411(0x354)](),this[_0x428411(0x4bb)]();}[_0x414e95(0x596)](_0x16b40c,_0x795796){const _0x42be28=_0x414e95,{scene:_0x171cb5,mainComponent:_0xddb2e4}=this[_0x42be28(0x3e8)],_0x2efc2c=_0x795796['map'](_0x57ebf0=>new Ht(_0x57ebf0,_0x171cb5,_0x16b40c,_0xddb2e4));this[_0x42be28(0x620)]=_0x2efc2c,this[_0x42be28(0x1eb)]=_0x795796;}['_refreshCollabCursors'](){const _0x73f3e2=_0x414e95;this['_removeCollabCursors']();const {scene:_0x587950,mainComponent:_0x524437}=this[_0x73f3e2(0x3e8)],_0x533d54=this[_0x73f3e2(0x36e)][_0x73f3e2(0x341)](),_0x476991=this['_cursors'][_0x73f3e2(0x4d1)](_0x4e67b7=>new Ht(_0x4e67b7,_0x587950,_0x533d54,_0x524437));this[_0x73f3e2(0x620)]=_0x476991;}[_0x414e95(0x362)](){const _0x42f713=_0x414e95;this[_0x42f713(0x620)]['forEach'](_0x2a6d7e=>_0x2a6d7e[_0x42f713(0x4c3)]()),this[_0x42f713(0x620)]=[];}[_0x414e95(0x4bb)](){const _0x719999=_0x414e95,_0x96bf5a=[Z['SetDocZoomRatioOperation']['id']];this[_0x719999(0x35b)](this[_0x719999(0x4f9)][_0x719999(0x297)](_0x24a565=>{const _0x368e0e=_0x719999;_0x96bf5a['includes'](_0x24a565['id'])&&_0x24a565[_0x368e0e(0x537)]['unitId']===this[_0x368e0e(0x3e8)][_0x368e0e(0x581)]&&this[_0x368e0e(0x202)]();}));}[_0x414e95(0x354)](){const _0x2e879f=_0x414e95;this[_0x2e879f(0x35b)](a[_0x2e879f(0x4d0)](this['_context'][_0x2e879f(0x5eb)][_0x2e879f(0x25a)])[_0x2e879f(0x5b9)](V[_0x2e879f(0x5f2)](_0x22133a=>_0x22133a[_0x2e879f(0x284)]===K[_0x2e879f(0x5c9)][_0x2e879f(0x39e)]),V[_0x2e879f(0x612)](0x10))[_0x2e879f(0x2ac)](()=>{this['_refreshCollabCursors']();}));}};St=_s([$e(0x1,a[_0x414e95(0x4dd)](Re[_0x414e95(0x1e8)])),$e(0x2,a[_0x414e95(0x4dd)](Oe)),$e(0x3,a[_0x414e95(0x1ea)]),$e(0x4,a[_0x414e95(0x4dd)](a[_0x414e95(0x3c6)]))],St);const us=0x1,ds=1.5;class mn extends K[_0x414e95(0x40c)]{constructor(_0x221abc,_0x542d5f){const _0xac186a=_0x414e95;super(_0x221abc,_0x542d5f),I(this,_0xac186a(0x368)),I(this,_0xac186a(0x58d),!0x1),I(this,_0xac186a(0x5d5)),I(this,'_name',''),I(this,_0xac186a(0x592),_0xac186a(0x4cd)),I(this,_0xac186a(0x585)),(_0x542d5f&&this[_0xac186a(0x4b4)](_0x542d5f),this[_0xac186a(0x521)]['subscribeEvent'](()=>this[_0xac186a(0x4b4)]({'hovered':!0x0})),this[_0xac186a(0x235)][_0xac186a(0x1ab)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x414e95(0x4b4)](_0x3fcaaf){const _0x4ecad9=_0x414e95;var _0x4c4a72,_0x3f533c,_0x2c79cc,_0x5de39e,_0x10cf8a,_0x1989f6;this[_0x4ecad9(0x368)]=(_0x4c4a72=_0x3fcaaf[_0x4ecad9(0x22f)])!=null?_0x4c4a72:this['_color'],this[_0x4ecad9(0x58d)]=(_0x3f533c=_0x3fcaaf['hovered'])!=null?_0x3f533c:this['_hovered'],this[_0x4ecad9(0x5d5)]=(_0x2c79cc=_0x3fcaaf[_0x4ecad9(0x50c)])!=null?_0x2c79cc:this[_0x4ecad9(0x5d5)],this[_0x4ecad9(0x507)]=(_0x5de39e=_0x3fcaaf[_0x4ecad9(0x20e)])!=null?_0x5de39e:this[_0x4ecad9(0x507)],this['_labelPosition']=(_0x10cf8a=_0x3fcaaf[_0x4ecad9(0x61a)])!=null?_0x10cf8a:this[_0x4ecad9(0x592)],this[_0x4ecad9(0x585)]=(_0x1989f6=_0x3fcaaf[_0x4ecad9(0x308)])!=null?_0x1989f6:this[_0x4ecad9(0x585)],this[_0x4ecad9(0x306)]({'width':_0x3fcaaf['width'],'height':_0x3fcaaf[_0x4ecad9(0x1e6)]});}[_0x414e95(0x441)](_0x37a08e){const _0x82a429=_0x414e95,{row:_0x3c2781,column:_0x47e4a4}=_0x37a08e;if(_0x3c2781>=this[_0x82a429(0x5d5)][_0x82a429(0x363)]&&_0x3c2781<=this[_0x82a429(0x5d5)][_0x82a429(0x212)]&&_0x47e4a4>=this[_0x82a429(0x5d5)][_0x82a429(0x2d3)]&&_0x47e4a4<=this['_range'][_0x82a429(0x320)]){this[_0x82a429(0x4b4)]({'hovered':!0x0});return;}this[_0x82a429(0x4b4)]({'hovered':!0x1});}[_0x414e95(0x4d2)](_0x3cdbf5){return!0x1;}['_draw'](_0x1f9359){const _0x53d945=_0x414e95;K[_0x53d945(0x331)][_0x53d945(0x35c)](_0x1f9359,{'width':this[_0x53d945(0x16b)],'height':this[_0x53d945(0x1e6)],'strokeWidth':ds,'stroke':this[_0x53d945(0x368)],'evented':!0x1,'fill':this[_0x53d945(0x585)]}),this['_hovered']&&(_0x1f9359['save'](),_0x1f9359['transform'](0x1,0x0,0x0,0x1,this[_0x53d945(0x16b)],this[_0x53d945(0x592)]===_0x53d945(0x545)?0x0:-Ne),ze[_0x53d945(0x35c)](_0x1f9359,{'text':this[_0x53d945(0x507)],'color':this[_0x53d945(0x368)]}),_0x1f9359[_0x53d945(0x36f)]());}}var fs=Object[_0x414e95(0x47c)],vs=Object['getOwnPropertyDescriptor'],ms=(_0x3f1d54,_0x47c686,_0x537cb3,_0x5ed109)=>{const _0x2c6593=_0x414e95;for(var _0x9f6ab8=_0x5ed109>0x1?void 0x0:_0x5ed109?vs(_0x47c686,_0x537cb3):_0x47c686,_0x395958=_0x3f1d54[_0x2c6593(0x532)]-0x1,_0x3683ee;_0x395958>=0x0;_0x395958--)(_0x3683ee=_0x3f1d54[_0x395958])&&(_0x9f6ab8=(_0x5ed109?_0x3683ee(_0x47c686,_0x537cb3,_0x9f6ab8):_0x3683ee(_0x9f6ab8))||_0x9f6ab8);return _0x5ed109&&_0x9f6ab8&&fs(_0x47c686,_0x537cb3,_0x9f6ab8),_0x9f6ab8;},rt=(_0x381bef,_0x4bedcc)=>(_0x316f6b,_0x26238)=>_0x4bedcc(_0x316f6b,_0x26238,_0x381bef);const Ss=0x1389;let pt=class extends a['RxDisposable']{constructor(_0x48544f,_0x2e6ca2,_0x155f77,_0x58db35){const _0x8e444=_0x414e95;super(),I(this,_0x8e444(0x1eb),new Set()),I(this,_0x8e444(0x5e9),null),(this[_0x8e444(0x3e8)]=_0x48544f,this[_0x8e444(0x3ee)]=_0x2e6ca2,this[_0x8e444(0x19a)]=_0x155f77,this[_0x8e444(0x30b)]=_0x58db35,this[_0x8e444(0x600)]());}[_0x414e95(0x600)](){const _0x3da6be=_0x414e95;this[_0x3da6be(0x3ee)][_0x3da6be(0x349)][_0x3da6be(0x5b9)](V[_0x3da6be(0x566)](this[_0x3da6be(0x2d0)]),V['switchMap'](_0xf66818=>{const _0x2d64b6=_0x3da6be;if(_0xf66818){const _0x160862=_0xf66818[_0x2d64b6(0x2a0)];return A['combineLatest'](this[_0x2d64b6(0x19a)][_0x2d64b6(0x527)](this[_0x2d64b6(0x3e8)][_0x2d64b6(0x581)]),this['_themeService'][_0x2d64b6(0x34b)])[_0x2d64b6(0x5b9)](V['map'](([_0x38f570,_0x24c354])=>{const _0x2cfade=_0x2d64b6,_0x4d5735=new Map();return _0x38f570[_0x2cfade(0x36c)]((_0x3875a5,_0x54356b)=>{const _0x1e224c=_0x2cfade;if(_0x3875a5['sheetID']===_0x160862){const _0x17b117={..._0x3875a5};_0x17b117['color']=_0x24c354[_0x3875a5['color']],_0x4d5735[_0x1e224c(0x5c7)](_0x54356b,_0x17b117);}}),{'skeleton':_0xf66818,'cursors':_0x4d5735};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x28e040,cursors:_0x5408da})=>{const _0x336a74=_0x3da6be;this[_0x336a74(0x362)](),_0x28e040&&this[_0x336a74(0x596)](_0x28e040,_0x5408da);}),this[_0x3da6be(0x3ee)][_0x3da6be(0x349)][_0x3da6be(0x2ac)](_0x3c42a4=>{const _0x2ab660=_0x3da6be;if(_0x3c42a4==null)return;const {skeleton:_0x25857f}=_0x3c42a4,{scene:_0x2f1340}=this[_0x2ab660(0x3e8)];_0x2f1340['onPointerMove$'][_0x2ab660(0x1ab)](a[_0x2ab660(0x379)](_0x49e03f=>{const _0x57947a=_0x2ab660;var _0x7ba9ef,_0x2716b4;const {offsetX:_0x42576d,offsetY:_0x46f67f}=_0x49e03f,{x:_0x473429,y:_0x4644ec}=_0x2f1340['getRelativeToViewportCoord'](K[_0x57947a(0x1fb)][_0x57947a(0x5ca)]([_0x42576d,_0x46f67f])),{scaleX:_0x43348b,scaleY:_0x15c40a}=_0x2f1340[_0x57947a(0x3ae)](),_0x7dc14e=_0x2f1340['getViewport'](Te[_0x57947a(0x27b)][_0x57947a(0x21a)]),_0x1b2874=_0x2f1340[_0x57947a(0x408)](K[_0x57947a(0x1fb)]['FromArray']([_0x473429,_0x4644ec]),_0x7dc14e),_0x22edf3=_0x25857f[_0x57947a(0x5b2)](_0x42576d,_0x46f67f,_0x43348b,_0x15c40a,_0x1b2874);((_0x7ba9ef=this[_0x57947a(0x5e9)])==null?void 0x0:_0x7ba9ef[_0x57947a(0x214)])===_0x22edf3['column']&&((_0x2716b4=this[_0x57947a(0x5e9)])==null?void 0x0:_0x2716b4[_0x57947a(0x18a)])===_0x22edf3['row']||this['_cursors'][_0x57947a(0x36c)](_0x453eb3=>{_0x453eb3['onMouseMove'](_0x22edf3);});},0x64));});}[_0x414e95(0x596)](_0xd7d86a,_0xc28595){const _0x250b10=_0x414e95;var _0x5ceda7;const _0x287b76=(_0x5ceda7=this['_sheetSkeletonManagerService'][_0x250b10(0x1b4)]())==null?void 0x0:_0x5ceda7[_0x250b10(0x567)];if(!_0x287b76)return;const _0x1d6b18=this['_getSheetObject']();if(!_0x1d6b18)return;this[_0x250b10(0x1eb)][_0x250b10(0x36c)](_0xe7361e=>{const _0x48167a=_0x250b10;_0xe7361e[_0x48167a(0x503)]();});const {scene:_0x5eb165}=_0x1d6b18,_0xb3d48f=ps(Array[_0x250b10(0x391)](_0xc28595[_0x250b10(0x4a5)]()))[_0x250b10(0x4d1)](_0x15bb14=>{const _0x3de860=_0x250b10,{color:_0x1a807c,range:_0x3c76f4,name:_0x9a5dbe,selection:_0x22d7da,sheetID:_0xdea8dd}=_0x15bb14,{startColumn:_0x3ca75b,startRow:_0x390622,endColumn:_0x47ce3f,endRow:_0x43ef3d}=_0x3c76f4,_0x4bb23b=Te[_0x3de860(0x3e1)](_0x390622,_0x3ca75b,_0x5eb165,_0x287b76),_0x1c10e1=Te[_0x3de860(0x3e1)](_0x43ef3d,_0x47ce3f,_0x5eb165,_0x287b76),{columnHeaderHeightAndMarginTop:_0x1637d3}=_0x287b76,{startX:_0x5aa0c8,startY:_0x5a31de}=_0x4bb23b,{endX:_0x530c4f,endY:_0x1ece47}=_0x1c10e1,_0x3a7900=_0x530c4f-_0x5aa0c8,_0x52e41c=_0x1ece47-_0x5a31de,_0x2219f7={'labelPosition':_0x5a31de-_0x1637d3>=Ne?_0x3de860(0x4cd):_0x3de860(0x545),'sheetID':_0xdea8dd,'range':_0x3c76f4,'color':_0x1a807c,'name':_0x9a5dbe,'selection':_0x22d7da,'left':_0x5aa0c8,'top':_0x5a31de,'width':_0x3a7900,'height':_0x52e41c,'evented':!0x1,'zIndex':Ss};return new mn(_0x9a5dbe,_0x2219f7);});_0x5eb165['addObjects'](_0xb3d48f,us),this[_0x250b10(0x1eb)]=new Set(_0xb3d48f);}[_0x414e95(0x362)](){const _0x29b55f=_0x414e95;var _0x39d497;(_0x39d497=this['_cursors'])==null||_0x39d497[_0x29b55f(0x36c)](_0x47ea19=>_0x47ea19[_0x29b55f(0x4c3)]());}['_getSheetObject'](){const _0x2ba157=_0x414e95;return Te[_0x2ba157(0x5f1)](this[_0x2ba157(0x3e8)]['unit'],this['_context']);}};pt=ms([rt(0x1,a['Inject'](Te[_0x414e95(0x1a6)])),rt(0x2,a['Inject'](Oe)),rt(0x3,a['Inject'](a['ThemeService']))],pt);function ps(_0x50b23e){const _0x39b7d8=_0x414e95,_0x1b8a30=new Map();return _0x50b23e[_0x39b7d8(0x36c)](_0x171184=>{const _0x1dca57=_0x39b7d8;if(_0x1b8a30['has'](_0x171184[_0x1dca57(0x1ba)])){const _0x344b02=_0x1b8a30[_0x1dca57(0x4e0)](_0x171184[_0x1dca57(0x1ba)]);_0x344b02[_0x1dca57(0x20e)]+=',\x20'+_0x171184[_0x1dca57(0x20e)];}else _0x1b8a30[_0x1dca57(0x5c7)](_0x171184[_0x1dca57(0x1ba)],_0x171184);}),Array[_0x39b7d8(0x391)](_0x1b8a30[_0x39b7d8(0x4a5)]());}var ee=function(){const _0x4e62c0=_0x414e95;return ee=Object[_0x4e62c0(0x56f)]||function(_0x2af7ed){const _0x160f72=_0x4e62c0;for(var _0x6e45f9,_0xfd510f=0x1,_0x454c39=arguments[_0x160f72(0x532)];_0xfd510f<_0x454c39;_0xfd510f++){_0x6e45f9=arguments[_0xfd510f];for(var _0x5d385c in _0x6e45f9)Object[_0x160f72(0x200)][_0x160f72(0x43b)][_0x160f72(0x2ff)](_0x6e45f9,_0x5d385c)&&(_0x2af7ed[_0x5d385c]=_0x6e45f9[_0x5d385c]);}return _0x2af7ed;},ee['apply'](this,arguments);},gs=function(_0x5970c5,_0x233415){const _0x53ac30=_0x414e95;var _0x31d221={};for(var _0x1c80f1 in _0x5970c5)Object[_0x53ac30(0x200)][_0x53ac30(0x43b)]['call'](_0x5970c5,_0x1c80f1)&&_0x233415[_0x53ac30(0x442)](_0x1c80f1)<0x0&&(_0x31d221[_0x1c80f1]=_0x5970c5[_0x1c80f1]);if(_0x5970c5!=null&&typeof Object[_0x53ac30(0x5f5)]=='function'){for(var _0x316afc=0x0,_0x1c80f1=Object[_0x53ac30(0x5f5)](_0x5970c5);_0x316afc<_0x1c80f1[_0x53ac30(0x532)];_0x316afc++)_0x233415[_0x53ac30(0x442)](_0x1c80f1[_0x316afc])<0x0&&Object[_0x53ac30(0x200)][_0x53ac30(0x243)]['call'](_0x5970c5,_0x1c80f1[_0x316afc])&&(_0x31d221[_0x1c80f1[_0x316afc]]=_0x5970c5[_0x1c80f1[_0x316afc]]);}return _0x31d221;},Ot=z[_0x414e95(0x471)](function(_0x189831,_0x4d71d0){const _0x59d528=_0x414e95;var _0x116936=_0x189831[_0x59d528(0x172)],_0x301722=_0x189831['id'],_0x272a77=_0x189831[_0x59d528(0x26d)],_0xa0e381=_0x189831['extend'],_0x563402=gs(_0x189831,[_0x59d528(0x172),'id','className',_0x59d528(0x271)]),_0x429f9e=_0x59d528(0x321)[_0x59d528(0x294)](_0x301722,'\x20')[_0x59d528(0x294)](_0x272a77||'')[_0x59d528(0x204)](),_0xd43e3e=z['useRef']('_'[_0x59d528(0x294)](Es()));return Sn(_0x116936,''[_0x59d528(0x294)](_0x301722),{'defIds':_0x116936[_0x59d528(0x21c)],'idSuffix':_0xd43e3e[_0x59d528(0x519)]},ee({'ref':_0x4d71d0,'className':_0x429f9e},_0x563402),_0xa0e381);});function Sn(_0x46891d,_0x344d1d,_0x416137,_0x326673,_0x483a67){const _0x4ac07a=_0x414e95;return z['createElement'](_0x46891d[_0x4ac07a(0x449)],ee(ee({'key':_0x344d1d},Is(_0x46891d,_0x416137,_0x483a67)),_0x326673),(Cs(_0x46891d,_0x416137)[_0x4ac07a(0x55d)]||[])[_0x4ac07a(0x4d1)](function(_0x629273,_0x52acde){const _0xdc5162=_0x4ac07a;return Sn(_0x629273,''[_0xdc5162(0x294)](_0x344d1d,'-')[_0xdc5162(0x294)](_0x46891d[_0xdc5162(0x449)],'-')[_0xdc5162(0x294)](_0x52acde),_0x416137,void 0x0,_0x483a67);}));}function Is(_0x31ca21,_0x45a2f4,_0x5da3f8){const _0x3fd628=_0x414e95;var _0x5ce41c=ee({},_0x31ca21[_0x3fd628(0x253)]);_0x5da3f8!=null&&_0x5da3f8[_0x3fd628(0x230)]&&_0x5ce41c[_0x3fd628(0x1ce)]===_0x3fd628(0x230)&&(_0x5ce41c[_0x3fd628(0x1ce)]=_0x5da3f8[_0x3fd628(0x230)]);var _0x2480f1=_0x45a2f4[_0x3fd628(0x21c)];return!_0x2480f1||_0x2480f1[_0x3fd628(0x532)]===0x0||(_0x31ca21[_0x3fd628(0x449)]===_0x3fd628(0x43c)&&_0x5ce41c[_0x3fd628(0x31d)]&&(_0x5ce41c[_0x3fd628(0x31d)]=_0x5ce41c[_0x3fd628(0x31d)]+_0x45a2f4[_0x3fd628(0x347)]),Object['entries'](_0x5ce41c)[_0x3fd628(0x36c)](function(_0x3c63fe){const _0x3c4945=_0x3fd628;var _0x51845e=_0x3c63fe[0x0],_0xb57f1e=_0x3c63fe[0x1];typeof _0xb57f1e==_0x3c4945(0x506)&&(_0x5ce41c[_0x51845e]=_0xb57f1e[_0x3c4945(0x577)](/url\(#(.*)\)/,'url(#$1'[_0x3c4945(0x294)](_0x45a2f4['idSuffix'],')')));})),_0x5ce41c;}function Cs(_0x2dde64,_0x5843c8){const _0x500480=_0x414e95;var _0x2e5016,_0x269dca=_0x5843c8['defIds'];return!_0x269dca||_0x269dca[_0x500480(0x532)]===0x0?_0x2dde64:_0x2dde64[_0x500480(0x449)]===_0x500480(0x318)&&(!((_0x2e5016=_0x2dde64[_0x500480(0x55d)])===null||_0x2e5016===void 0x0)&&_0x2e5016[_0x500480(0x532)])?ee(ee({},_0x2dde64),{'children':_0x2dde64[_0x500480(0x55d)][_0x500480(0x4d1)](function(_0x4eeac5){const _0x34fc3b=_0x500480;return typeof _0x4eeac5[_0x34fc3b(0x253)]['id']==_0x34fc3b(0x506)&&_0x269dca&&_0x269dca['indexOf'](_0x4eeac5[_0x34fc3b(0x253)]['id'])>-0x1?ee(ee({},_0x4eeac5),{'attrs':ee(ee({},_0x4eeac5[_0x34fc3b(0x253)]),{'id':_0x4eeac5[_0x34fc3b(0x253)]['id']+_0x5843c8[_0x34fc3b(0x347)]})}):_0x4eeac5;})}):_0x2dde64;}function Es(){const _0x27582d=_0x414e95;return Math['random']()[_0x27582d(0x197)](0x24)[_0x27582d(0x2e4)](0x2,0x8);}Ot[_0x414e95(0x57a)]=_0x414e95(0x491);var bs={'tag':_0x414e95(0x31f),'attrs':{'fill':_0x414e95(0x340),'viewBox':_0x414e95(0x24e),'width':'1em','height':_0x414e95(0x3b7)},'children':[{'tag':'g','attrs':{'clipPath':_0x414e95(0x46a)},'children':[{'tag':_0x414e95(0x2ba),'attrs':{'stroke':_0x414e95(0x49b),'d':_0x414e95(0x44e),'strokeLinecap':_0x414e95(0x360),'strokeLinejoin':_0x414e95(0x360),'strokeWidth':1.2}}]},{'tag':_0x414e95(0x318),'attrs':{},'children':[{'tag':_0x414e95(0x501),'attrs':{'id':_0x414e95(0x45d)},'children':[{'tag':_0x414e95(0x2ba),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x414e95(0x45d)]},pn=z[_0x414e95(0x471)](function(_0x18cedb,_0x5c2e34){const _0x54097b=_0x414e95;return z[_0x54097b(0x492)](Ot,Object[_0x54097b(0x56f)]({},_0x18cedb,{'id':_0x54097b(0x1aa),'ref':_0x5c2e34,'icon':bs}));});pn[_0x414e95(0x57a)]=_0x414e95(0x4dc);var Ts={'tag':_0x414e95(0x31f),'attrs':{'fill':_0x414e95(0x340),'viewBox':_0x414e95(0x57b),'width':'1em','height':_0x414e95(0x3b7)},'children':[{'tag':'g','attrs':{'clipPath':_0x414e95(0x55f)},'children':[{'tag':_0x414e95(0x2ba),'attrs':{'stroke':_0x414e95(0x49b),'d':_0x414e95(0x56e),'strokeLinecap':_0x414e95(0x360),'strokeLinejoin':_0x414e95(0x360),'strokeWidth':1.2}}]},{'tag':_0x414e95(0x318),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x414e95(0x52f)},'children':[{'tag':_0x414e95(0x2ba),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x414e95(0x40b)}}]}]}],'defIds':[_0x414e95(0x52f)]},gn=z['forwardRef'](function(_0x4b6f00,_0x1ef024){const _0x3a973b=_0x414e95;return z[_0x3a973b(0x492)](Ot,Object[_0x3a973b(0x56f)]({},_0x4b6f00,{'id':'on-line-single','ref':_0x1ef024,'icon':Ts}));});gn['displayName']=_0x414e95(0x52d);function In(_0x387a8f){const _0x1708e8=_0x414e95;var _0x581e32,_0x5c581e,_0x10b08e='';if(typeof _0x387a8f==_0x1708e8(0x506)||typeof _0x387a8f=='number')_0x10b08e+=_0x387a8f;else{if(typeof _0x387a8f=='object'){if(Array[_0x1708e8(0x2ec)](_0x387a8f)){var _0x59fc44=_0x387a8f[_0x1708e8(0x532)];for(_0x581e32=0x0;_0x581e32<_0x59fc44;_0x581e32++)_0x387a8f[_0x581e32]&&(_0x5c581e=In(_0x387a8f[_0x581e32]))&&(_0x10b08e&&(_0x10b08e+='\x20'),_0x10b08e+=_0x5c581e);}else{for(_0x5c581e in _0x387a8f)_0x387a8f[_0x5c581e]&&(_0x10b08e&&(_0x10b08e+='\x20'),_0x10b08e+=_0x5c581e);}}}return _0x10b08e;}function Rs(){const _0x185b6d=_0x414e95;for(var _0x163ba6,_0x563a78,_0x3bd27f=0x0,_0x2ed789='',_0x32e229=arguments[_0x185b6d(0x532)];_0x3bd27f<_0x32e229;_0x3bd27f++)(_0x163ba6=arguments[_0x3bd27f])&&(_0x563a78=In(_0x163ba6))&&(_0x2ed789&&(_0x2ed789+='\x20'),_0x2ed789+=_0x563a78);return _0x2ed789;}const ys=_0x414e95(0x3d2),Os=_0x414e95(0x539),Ds=_0x414e95(0x516),ws=_0x414e95(0x1e9),Ps=_0x414e95(0x24a),Ue={'onlineStatusIcon':ys,'onlineStatusTitle':Os,'onlineStatus':Ds,'online':ws,'offline':Ps};function Us(_0xff5376){const _0x31f18a=_0x414e95;switch(_0xff5376){case q[_0x31f18a(0x39c)]:return'collabStatus.offline';case q[_0x31f18a(0x232)]:return _0x31f18a(0x244);case q['FETCH_MISS']:return _0x31f18a(0x534);case q[_0x31f18a(0x45b)]:return _0x31f18a(0x326);case q[_0x31f18a(0x1b6)]:case q[_0x31f18a(0x3b2)]:return _0x31f18a(0x1f6);case q[_0x31f18a(0x56b)]:case q[_0x31f18a(0x597)]:return _0x31f18a(0x32e);}}function Cn(_0x3be337){const _0x1d1bd6=_0x414e95,{status$:_0x4a230a}=_0x3be337,_0x163ae4=te[_0x1d1bd6(0x29c)](_0x4a230a,q['NOT_COLLAB']),_0x377b1e=a['useDependency'](a[_0x1d1bd6(0x266)]),_0x52dca0=a[_0x1d1bd6(0x4af)](exports[_0x1d1bd6(0x280)]),_0x3db7c6=_0x163ae4!==q['OFFLINE'],_0x96883a=_0x377b1e['t'](Us(_0x163ae4)),_0x583d70=Rs(Ue[_0x1d1bd6(0x486)],{[Ue[_0x1d1bd6(0x5bc)]]:_0x3db7c6,[Ue['offline']]:!_0x3db7c6}),_0x282130=_0x3db7c6?z[_0x1d1bd6(0x492)](gn,null):z[_0x1d1bd6(0x492)](pn,null),_0x58f522=z['useCallback'](()=>{const _0x466f1f=_0x1d1bd6;_0x3db7c6||_0x52dca0[_0x466f1f(0x47e)]();},[_0x3db7c6,_0x52dca0]);function _0x308116(){const _0xa6864=_0x1d1bd6;return z['createElement'](_0xa6864(0x419),{'className':_0x583d70,'onClick':_0x58f522},z['createElement'](_0xa6864(0x419),{'className':Ue[_0xa6864(0x26f)]},_0x282130),z['createElement'](_0xa6864(0x419),{'className':Ue[_0xa6864(0x517)]},_0x96883a));}return _0x3db7c6?_0x308116():z[_0x1d1bd6(0x492)](pe['Tooltip'],{'title':_0x377b1e['t'](_0x1d1bd6(0x4c6))},_0x308116());}var Ms=Object[_0x414e95(0x47c)],As=Object[_0x414e95(0x51f)],Ns=(_0x1a4d6c,_0x3c08ad,_0x237c85,_0x15b671)=>{for(var _0x28c0d1=_0x15b671>0x1?void 0x0:_0x15b671?As(_0x3c08ad,_0x237c85):_0x3c08ad,_0x406095=_0x1a4d6c['length']-0x1,_0x5d245c;_0x406095>=0x0;_0x406095--)(_0x5d245c=_0x1a4d6c[_0x406095])&&(_0x28c0d1=(_0x15b671?_0x5d245c(_0x3c08ad,_0x237c85,_0x28c0d1):_0x5d245c(_0x28c0d1))||_0x28c0d1);return _0x15b671&&_0x28c0d1&&Ms(_0x3c08ad,_0x237c85,_0x28c0d1),_0x28c0d1;},je=(_0x54ed43,_0x44d405)=>(_0x56a6e4,_0x10e150)=>_0x44d405(_0x56a6e4,_0x10e150,_0x54ed43);exports[_0x414e95(0x411)]=class extends a[_0x414e95(0x479)]{constructor(_0x286e02,_0x49f0d7,_0x4590d6,_0x5946ba){const _0x4640f9=_0x414e95;super(),I(this,_0x4640f9(0x5ae),new A[(_0x4640f9(0x1a2))](q['NOT_COLLAB'])),(this[_0x4640f9(0x588)]=_0x286e02,this[_0x4640f9(0x439)]=_0x49f0d7,this[_0x4640f9(0x4f3)]=_0x4590d6,this[_0x4640f9(0x317)]=_0x5946ba,this[_0x4640f9(0x5b0)](),this['_initStatusListener']());}[_0x414e95(0x5b1)](){const _0x288b7d=_0x414e95;this[_0x288b7d(0x35b)](this[_0x288b7d(0x588)][_0x288b7d(0x39a)][_0x288b7d(0x5b9)](A[_0x288b7d(0x580)](()=>{const _0x18c1a1=_0x288b7d,_0x2bc383=this['_univerInstanceService'][_0x18c1a1(0x574)]();return _0x2bc383?this['_collaborationController'][_0x18c1a1(0x2d9)](_0x2bc383[_0x18c1a1(0x19f)]()):A['of'](null);}),A[_0x288b7d(0x580)](_0x35c6e3=>_0x35c6e3?_0x35c6e3[_0x288b7d(0x19b)]:A['of'](q[_0x288b7d(0x45b)])))['subscribe'](_0x1a7168=>{const _0xe03da1=_0x288b7d;this['_status$'][_0xe03da1(0x370)](_0x1a7168);}));}[_0x414e95(0x5b0)](){const _0x1711d5=_0x414e95;this['disposeWithMe'](this[_0x1711d5(0x439)][_0x1711d5(0x42b)](te[_0x1711d5(0x170)]['HEADER_MENU'],()=>a[_0x1711d5(0x1ad)](Ls({'status$':this[_0x1711d5(0x5ae)]['asObservable']()}),this[_0x1711d5(0x4f3)])));}},exports[_0x414e95(0x411)]=Ns([je(0x0,a['IUniverInstanceService']),je(0x1,te[_0x414e95(0x3b5)]),je(0x2,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),je(0x3,a[_0x414e95(0x4dd)](exports[_0x414e95(0x2a4)]))],exports[_0x414e95(0x411)]);function Ls(_0x50beef){const {status$:_0x545953}=_0x50beef;return function(){return z['createElement'](Cn,{'status$':_0x545953});};}const Dt=a['createIdentifier'](_0x414e95(0x450));var xs=Object['defineProperty'],$s=Object[_0x414e95(0x51f)],js=(_0x3301fd,_0x700e49,_0x3c2e31,_0x4413ce)=>{const _0x26e8ab=_0x414e95;for(var _0x583110=_0x4413ce>0x1?void 0x0:_0x4413ce?$s(_0x700e49,_0x3c2e31):_0x700e49,_0x149e0a=_0x3301fd[_0x26e8ab(0x532)]-0x1,_0x43800d;_0x149e0a>=0x0;_0x149e0a--)(_0x43800d=_0x3301fd[_0x149e0a])&&(_0x583110=(_0x4413ce?_0x43800d(_0x700e49,_0x3c2e31,_0x583110):_0x43800d(_0x583110))||_0x583110);return _0x4413ce&&_0x583110&&xs(_0x700e49,_0x3c2e31,_0x583110),_0x583110;},be=(_0x5ca385,_0x29f80c)=>(_0x1fa328,_0x36f247)=>_0x29f80c(_0x1fa328,_0x36f247,_0x5ca385);exports[_0x414e95(0x44c)]=class extends a['RxDisposable']{constructor(_0x3ba33a,_0xb3d43b,_0x3a2036,_0x5539ac,_0x2e290c,_0x504ed1){const _0x2b8ebc=_0x414e95;super(),this[_0x2b8ebc(0x38a)]=_0x3ba33a,this['_logService']=_0xb3d43b,this[_0x2b8ebc(0x4f9)]=_0x3a2036,this[_0x2b8ebc(0x3e2)]=_0x5539ac,this['_snapshotService']=_0x2e290c,_0x504ed1?_0x504ed1==null||_0x504ed1[_0x2b8ebc(0x58c)]()[_0x2b8ebc(0x3d6)](()=>this[_0x2b8ebc(0x600)]()):(this[_0x2b8ebc(0x1ec)]['debug']('[DataLoaderController]',_0x2b8ebc(0x38f)),this['_init']());}async[_0x414e95(0x600)](){const _0x2b7315=_0x414e95,_0x3c1d91=this[_0x2b7315(0x38a)][_0x2b7315(0x565)](_0x2b7315(0x395)),_0x14a0f6=this[_0x2b7315(0x38a)][_0x2b7315(0x565)]('type');if(!_0x3c1d91||!_0x14a0f6){this['_logService'][_0x2b7315(0x437)]('[DataLoaderController]',_0x2b7315(0x54c));return;}switch(Number(_0x14a0f6)){case se[_0x2b7315(0x353)]:{const _0x1f6c46=await this[_0x2b7315(0x53f)](_0x3c1d91);this[_0x2b7315(0x4bc)](_0x1f6c46);break;}case se[_0x2b7315(0x446)]:{await this[_0x2b7315(0x1a7)](_0x3c1d91);break;}default:{this[_0x2b7315(0x1ec)][_0x2b7315(0x456)](_0x2b7315(0x4b1),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x414e95(0x4bc)](_0x11079c){const _0x580fb3=_0x414e95;await this[_0x580fb3(0x605)](_0x11079c),_0x11079c[_0x580fb3(0x1c4)][_0x580fb3(0x5b9)](A[_0x580fb3(0x566)](this[_0x580fb3(0x2d0)]))[_0x580fb3(0x2ac)](_0x27dace=>{const _0x73120b=_0x580fb3;_0x27dace&&this[_0x73120b(0x241)](_0x27dace);}),this[_0x580fb3(0x38a)][_0x580fb3(0x30a)][_0x580fb3(0x5b9)](A[_0x580fb3(0x566)](this[_0x580fb3(0x2d0)]))[_0x580fb3(0x2ac)](()=>this[_0x580fb3(0x605)](_0x11079c));}[_0x414e95(0x241)](_0x498952,_0x578082=!0x1){const _0x516a24=_0x414e95,_0x2f0fe0=this[_0x516a24(0x38a)][_0x516a24(0x565)](_0x516a24(0x4b0));_0x498952[_0x516a24(0x5c1)]()!==_0x2f0fe0&&this[_0x516a24(0x38a)]['setParam'](_0x516a24(0x4b0),_0x498952[_0x516a24(0x5c1)](),_0x578082);}async['_updateSubUnitFromURLParams'](_0x3da8fa){const _0xd2c234=_0x414e95;var _0x44feb3;const _0x104a58=this[_0xd2c234(0x38a)]['getParam']('subunit');if(!_0x104a58||!_0x3da8fa[_0xd2c234(0x388)](_0x104a58)){const _0x22978=_0x3da8fa['getUnhiddenWorksheets']()[0x0],_0x20f0c8=_0x3da8fa[_0xd2c234(0x388)](_0x22978);if(!_0x20f0c8)return;this[_0xd2c234(0x241)](_0x20f0c8,!0x0),await this[_0xd2c234(0x4f9)]['executeCommand'](k[_0xd2c234(0x609)]['id'],{'unitId':_0x3da8fa['getUnitId'](),'subUnitId':_0x22978});return;}((_0x44feb3=_0x3da8fa[_0xd2c234(0x586)]())==null?void 0x0:_0x44feb3[_0xd2c234(0x5c1)]())!==_0x104a58&&await this['_commandService']['executeCommand'](k[_0xd2c234(0x609)]['id'],{'unitId':_0x3da8fa[_0xd2c234(0x19f)](),'subUnitId':_0x104a58});}async[_0x414e95(0x53f)](_0x23ef4b){const _0x7aea58=_0x414e95;let _0x549258=0x0;const _0x4ce7bb=await this[_0x7aea58(0x3e2)][_0x7aea58(0x2ce)](_0x23ef4b);return _0x4ce7bb&&(_0x4ce7bb[_0x7aea58(0x3cf)]||_0x4ce7bb[_0x7aea58(0x426)][_0x7aea58(0x532)]!==0x0)&&(_0x549258=_0x4ce7bb[_0x7aea58(0x25b)]),_0x549258===0x0&&this[_0x7aea58(0x1ec)]['debug'](_0x7aea58(0x4b1),_0x7aea58(0x510)),this[_0x7aea58(0x228)][_0x7aea58(0x594)](_0x23ef4b,_0x549258);}async['_loadDoc'](_0x4a4b2f){const _0x201369=_0x414e95;let _0x594d27=0x0;const _0x4b78e4=await this[_0x201369(0x3e2)]['loadOfflineData'](_0x4a4b2f);return _0x4b78e4&&(_0x4b78e4[_0x201369(0x3cf)]||_0x4b78e4[_0x201369(0x426)]['length']!==0x0)&&(_0x594d27=_0x4b78e4[_0x201369(0x25b)]),_0x594d27===0x0&&this['_logService'][_0x201369(0x437)](_0x201369(0x4b1),_0x201369(0x510)),this[_0x201369(0x228)][_0x201369(0x3bd)](_0x4a4b2f,_0x594d27);}},exports['DataLoaderController']=js([be(0x0,Dt),be(0x1,a[_0x414e95(0x178)]),be(0x2,a[_0x414e95(0x1ea)]),be(0x3,a[_0x414e95(0x4dd)](exports['LocalCacheService'])),be(0x4,a[_0x414e95(0x4dd)](S[_0x414e95(0x3ca)])),be(0x5,a['Optional'](Ln[_0x414e95(0x5d9)]))],exports[_0x414e95(0x44c)]);var Hs=Object[_0x414e95(0x47c)],Bs=Object[_0x414e95(0x51f)],ks=(_0x23bf99,_0x397368,_0x320a23,_0x58d66e)=>{const _0x2871e8=_0x414e95;for(var _0x1c39ef=_0x58d66e>0x1?void 0x0:_0x58d66e?Bs(_0x397368,_0x320a23):_0x397368,_0x30d51a=_0x23bf99[_0x2871e8(0x532)]-0x1,_0x38decd;_0x30d51a>=0x0;_0x30d51a--)(_0x38decd=_0x23bf99[_0x30d51a])&&(_0x1c39ef=(_0x58d66e?_0x38decd(_0x397368,_0x320a23,_0x1c39ef):_0x38decd(_0x1c39ef))||_0x1c39ef);return _0x58d66e&&_0x1c39ef&&Hs(_0x397368,_0x320a23,_0x1c39ef),_0x1c39ef;},Bt=(_0x5bed1a,_0x3cf1a5)=>(_0x23404d,_0x54fce8)=>_0x3cf1a5(_0x23404d,_0x54fce8,_0x5bed1a);const Ws=_0x414e95(0x26b),Fs=_0x414e95(0x41f);let Ve=class extends a[_0x414e95(0x479)]{constructor(_0xb1bfe,_0x228ba0){const _0x55e33e=_0x414e95;super(),this[_0x55e33e(0x588)]=_0xb1bfe,this[_0x55e33e(0x514)]=_0x228ba0,this[_0x55e33e(0x600)]();}[_0x414e95(0x600)](){const _0x5fff8f=_0x414e95;this[_0x5fff8f(0x35b)](this['_univerInstanceService'][_0x5fff8f(0x39a)][_0x5fff8f(0x2ac)](()=>{const _0x5684e8=_0x5fff8f;var _0x415001;const _0x34425b=this[_0x5684e8(0x588)][_0x5684e8(0x574)]();let _0x46f089=(_0x415001=this[_0x5684e8(0x514)]['getConfig'](Ws))!=null?_0x415001:Fs;_0x34425b instanceof a['Workbook']&&(_0x46f089=_0x34425b['name']),document['title']=_0x46f089;}));}};Ve=ks([Bt(0x0,a[_0x414e95(0x1df)]),Bt(0x1,a[_0x414e95(0x556)])],Ve);var Vs=Object['defineProperty'],Gs=Object[_0x414e95(0x51f)],Ys=(_0x2346d9,_0x1459c6,_0x5280f0,_0x56d8e5)=>{const _0x3277e6=_0x414e95;for(var _0x1b254f=_0x56d8e5>0x1?void 0x0:_0x56d8e5?Gs(_0x1459c6,_0x5280f0):_0x1459c6,_0x502111=_0x2346d9[_0x3277e6(0x532)]-0x1,_0xd14aeb;_0x502111>=0x0;_0x502111--)(_0xd14aeb=_0x2346d9[_0x502111])&&(_0x1b254f=(_0x56d8e5?_0xd14aeb(_0x1459c6,_0x5280f0,_0x1b254f):_0xd14aeb(_0x1b254f))||_0x1b254f);return _0x56d8e5&&_0x1b254f&&Vs(_0x1459c6,_0x5280f0,_0x1b254f),_0x1b254f;},ot=(_0xd38a4b,_0x3072bb)=>(_0x4918a4,_0x5e3507)=>_0x3072bb(_0x4918a4,_0x5e3507,_0xd38a4b);let Ge=class{constructor(_0x492f0b,_0x20c826,_0x4504d7){const _0x3ba158=_0x414e95;this[_0x3ba158(0x514)]=_0x492f0b,this['_httpService']=_0x20c826,this[_0x3ba158(0x4a9)]=_0x4504d7,this[_0x3ba158(0x4ea)]();}[_0x414e95(0x4ea)](){const _0xce012e=_0x414e95;this[_0xce012e(0x23e)][_0xce012e(0x61c)]({'priority':0x1,'interceptor':(_0x1388f0,_0x290e68)=>_0x290e68(_0x1388f0)[_0xce012e(0x5b9)](A[_0xce012e(0x3f1)](async _0x4b6272=>{const _0x4eefd9=_0xce012e,_0x32052f=_0x4b6272;if(_0x32052f[_0x4eefd9(0x50d)]===0x191&&window[_0x4eefd9(0x3df)](this[_0x4eefd9(0x4a9)]['t'](_0x4eefd9(0x560)))){const _0xd81053=window[_0x4eefd9(0x312)](window[_0x4eefd9(0x25d)]['href']);window[_0x4eefd9(0x25d)][_0x4eefd9(0x478)]=this[_0x4eefd9(0x59a)]()+_0x4eefd9(0x346)+_0xd81053;}return _0x32052f;}))});}['_getLoginPath'](){const _0x3e6164=_0x414e95;var _0x436a09,_0x1765ab;const _0x1fc822=this[_0x3e6164(0x514)][_0x3e6164(0x2fa)](on),_0x36636a=this[_0x3e6164(0x514)][_0x3e6164(0x2fa)](ne);return(_0x1765ab=(_0x436a09=_0x36636a==null?void 0x0:_0x36636a[_0x3e6164(0x1d8)])!=null?_0x436a09:_0x1fc822)!=null?_0x1765ab:Gn;}};Ge=Ys([ot(0x0,a[_0x414e95(0x556)]),ot(0x1,a[_0x414e95(0x4dd)](Q['HTTPService'])),ot(0x2,a[_0x414e95(0x4dd)](a[_0x414e95(0x266)]))],Ge);var Ks=Object[_0x414e95(0x47c)],qs=Object['getOwnPropertyDescriptor'],zs=(_0x32d76f,_0x59580f,_0x5e6054,_0x4259cc)=>{const _0x30555b=_0x414e95;for(var _0x1d52c1=_0x4259cc>0x1?void 0x0:_0x4259cc?qs(_0x59580f,_0x5e6054):_0x59580f,_0x552731=_0x32d76f[_0x30555b(0x532)]-0x1,_0x587a37;_0x552731>=0x0;_0x552731--)(_0x587a37=_0x32d76f[_0x552731])&&(_0x1d52c1=(_0x4259cc?_0x587a37(_0x59580f,_0x5e6054,_0x1d52c1):_0x587a37(_0x1d52c1))||_0x1d52c1);return _0x4259cc&&_0x1d52c1&&Ks(_0x59580f,_0x5e6054,_0x1d52c1),_0x1d52c1;},kt=(_0x118058,_0x12a46a)=>(_0x405863,_0x1535e6)=>_0x12a46a(_0x405863,_0x1535e6,_0x118058);const En=_0x414e95(0x3a1),Xs='/universer-api/authz';exports[_0x414e95(0x2d2)]=class extends a['Disposable']{constructor(_0x57d475,_0x5bab8d){const _0x23a21a=_0x414e95;super(),this['_HTTPService']=_0x57d475,this[_0x23a21a(0x514)]=_0x5bab8d,this[_0x23a21a(0x472)]();}['_initMergeInterceptor'](){const _0x4f3578=_0x414e95,_0x23d226=this;this[_0x4f3578(0x35b)](this[_0x4f3578(0x267)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':Q[_0x4f3578(0x186)]({'isMatch'(_0x79dd8c){const _0x270d8a=_0x4f3578;var _0x23b65;if(_0x79dd8c[_0x270d8a(0x2c2)]===_0x270d8a(0x251)&&((_0x23b65=_0x79dd8c[_0x270d8a(0x3fa)])!=null&&_0x23b65[_0x270d8a(0x55e)])){const {objectID:_0x2837d3,objectType:_0x522182}=_0x79dd8c['requestParams'][_0x270d8a(0x55e)]||{};if(!_0x2837d3||_0x522182===void 0x0)return!0x1;const _0x3ccfbd=_0x23d226['_getAPIPrefixPath']()+'/'+_0x522182+_0x270d8a(0x4c0)+_0x2837d3+'/allowed';if(_0x79dd8c[_0x270d8a(0x3db)]===_0x3ccfbd)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x10942f){const _0x5f5cec=_0x4f3578;var _0x24aab3;return(_0x24aab3=_0x10942f[_0x5f5cec(0x3fa)])==null?void 0x0:_0x24aab3[_0x5f5cec(0x55e)];},'mergeParamsToRequest'(_0xf4dda4,_0x1ed199){const _0x515a2c=_0x4f3578,_0x5947af=_0x23d226[_0x515a2c(0x1dc)]()+_0x515a2c(0x3be),_0x5f5bbc=_0xf4dda4[_0x515a2c(0x3c8)]((_0x365553,_0x327034)=>{const _0x7ce1bc=_0x515a2c,{unitID:_0x5f08fa,objectID:_0x176cd0,objectType:_0x3e63c3,actions:_0x493971}=_0x327034;return _0x365553[_0x5f08fa]||(_0x365553[_0x5f08fa]={}),_0x365553[_0x5f08fa][_0x176cd0]||(_0x365553[_0x5f08fa][_0x176cd0]={'objectID':_0x176cd0,'objectType':_0x3e63c3,'actions':[]}),_0x365553[_0x5f08fa][_0x176cd0][_0x7ce1bc(0x508)]['push'](..._0x493971),_0x365553;},{}),_0x5dbe7a=[];for(const _0x1f59bf in _0x5f5bbc)for(const _0x3ad28f in _0x5f5bbc[_0x1f59bf]){const {actions:_0xbac7ca,objectType:_0x10a027}=_0x5f5bbc[_0x1f59bf][_0x3ad28f],_0x555a4f=[...new Set(_0xbac7ca)];_0x5dbe7a[_0x515a2c(0x375)]({'unitID':_0x1f59bf,'objectID':_0x3ad28f,'objectType':_0x10a027,'actions':_0x555a4f});}return new Q[(_0x515a2c(0x2aa))]('POST',_0x5947af,{'headers':_0x1ed199[_0x515a2c(0x431)],'withCredentials':_0x1ed199[_0x515a2c(0x276)],'responseType':_0x1ed199['responseType'],'body':{'requests':_0x5dbe7a}});}},{'distributeResult'(_0x185eb4,_0x282555){const {objectActions:_0x5a74ee}=_0x185eb4;return _0x282555['map'](_0x2d5cbe=>{const _0x2f2ba6=_0x474b,{unitID:_0x364676,objectID:_0x5ebde1,actions:_0x3ba69e}=_0x2d5cbe,_0x50f364=_0x5a74ee[_0x2f2ba6(0x17e)](_0x347a3d=>_0x347a3d[_0x2f2ba6(0x1e2)]===_0x364676&&_0x347a3d[_0x2f2ba6(0x39d)]===_0x5ebde1),_0x2527e9=_0x3ba69e['map'](_0x3b8af1=>_0x50f364==null?void 0x0:_0x50f364[_0x2f2ba6(0x508)][_0x2f2ba6(0x17e)](_0x2528c0=>_0x2528c0[_0x2f2ba6(0x58e)]===_0x3b8af1))['filter'](_0x23e15e=>!!_0x23e15e);return{'config':_0x2d5cbe,'result':{'actions':_0x2527e9,'error':_0x185eb4['error']}};});}})}));}['_getAPIPrefixPath'](){const _0xa43452=_0x414e95;var _0x544822,_0x1fe3d2;const _0x441ccf=this['_configService'][_0xa43452(0x2fa)](En),_0x34859d=this['_configService'][_0xa43452(0x2fa)](ne);return(_0x1fe3d2=(_0x544822=_0x34859d==null?void 0x0:_0x34859d[_0xa43452(0x5fa)])!=null?_0x544822:_0x441ccf)!=null?_0x1fe3d2:Xs;}async['create'](_0x3dbed1){const _0x3880be=_0x414e95,_0x1795fd=this['_getAPIPrefixPath']()+'/'+_0x3dbed1[_0x3880be(0x616)]+_0x3880be(0x2e1);return(await this[_0x3880be(0x267)][_0x3880be(0x336)](_0x1795fd,{'body':_0x3dbed1}))['body']['objectID']||'';}async[_0x414e95(0x475)](_0x449d70){const _0x5802b8=_0x414e95,_0x5d00c5=this[_0x5802b8(0x1dc)]()+_0x5802b8(0x208);return(await this[_0x5802b8(0x267)][_0x5802b8(0x336)](_0x5d00c5,{'body':_0x449d70}))[_0x5802b8(0x55e)][_0x5802b8(0x2d4)];}async['update'](_0x37dd08){const _0x1ac9d9=_0x414e95,_0x208211=this[_0x1ac9d9(0x1dc)]()+'/'+_0x37dd08[_0x1ac9d9(0x616)]+_0x1ac9d9(0x4c0)+_0x37dd08[_0x1ac9d9(0x39d)];await this[_0x1ac9d9(0x267)]['put'](_0x208211,{'body':_0x37dd08});}async[_0x414e95(0x614)](_0x386926){const _0xb38313=_0x414e95,_0x6e314b=this[_0xb38313(0x1dc)]()+'/'+_0x386926[_0xb38313(0x616)]+_0xb38313(0x4c0)+_0x386926[_0xb38313(0x39d)]+_0xb38313(0x402);return(await this[_0xb38313(0x267)][_0xb38313(0x336)](_0x6e314b,{'body':_0x386926}))[_0xb38313(0x55e)][_0xb38313(0x508)];}async[_0x414e95(0x1b7)](_0x523d07){const _0x532da2=_0x414e95,_0xb7f52=this[_0x532da2(0x1dc)]()+_0x532da2(0x3be);return(await this['_HTTPService']['post'](_0xb7f52,{'body':{'requests':_0x523d07}}))['body'][_0x532da2(0x29f)];}async[_0x414e95(0x3d4)](_0x366079){const _0x4141c3=_0x414e95,_0x2bc60b=this[_0x4141c3(0x1dc)]()+'/'+_0x366079['objectType']+_0x4141c3(0x2de),_0x26bcfc=await this[_0x4141c3(0x267)][_0x4141c3(0x336)](_0x2bc60b,{'body':_0x366079});return{'roles':_0x26bcfc[_0x4141c3(0x55e)][_0x4141c3(0x343)],'actions':_0x26bcfc[_0x4141c3(0x55e)][_0x4141c3(0x508)]};}async[_0x414e95(0x2cc)](_0x4a4c57){const _0x18aeb9=_0x414e95,_0x10dcf8=this[_0x18aeb9(0x1dc)]()+'/collaborator';await this[_0x18aeb9(0x267)][_0x18aeb9(0x4da)](_0x10dcf8,{'params':{'collaboratorID':_0x4a4c57[_0x18aeb9(0x524)],'objectID':_0x4a4c57[_0x18aeb9(0x39d)],'unitID':_0x4a4c57[_0x18aeb9(0x1e2)]}});}async[_0x414e95(0x5f9)](_0x30d4e5){const _0x15f29c=_0x414e95,_0x844b1c=this[_0x15f29c(0x1dc)]()+'/collaborator';await this[_0x15f29c(0x267)][_0x15f29c(0x1d3)](_0x844b1c,{'body':_0x30d4e5});}async[_0x414e95(0x5e0)](_0x4327d6){const _0x40f2f4=_0x414e95,_0x6abacd=this[_0x40f2f4(0x1dc)]()+_0x40f2f4(0x44f);await this[_0x40f2f4(0x267)]['post'](_0x6abacd,{'body':_0x4327d6});}async['listCollaborators'](_0x4e83bf){const _0x4088c6=_0x414e95,_0x50db7b=this[_0x4088c6(0x1dc)]()+_0x4088c6(0x44f);return(await this[_0x4088c6(0x267)][_0x4088c6(0x4e0)](_0x50db7b,{'params':{'objectID':_0x4e83bf['objectID'],'unitID':_0x4e83bf[_0x4088c6(0x1e2)]}}))['body'][_0x4088c6(0x603)];}async[_0x414e95(0x22a)](_0x1e7233){const _0x4c61c4=_0x414e95,_0x5b4bb9=this[_0x4c61c4(0x1dc)]()+_0x4c61c4(0x44f);await this[_0x4c61c4(0x267)][_0x4c61c4(0x303)](_0x5b4bb9,{'body':_0x1e7233});}},exports[_0x414e95(0x2d2)]=zs([kt(0x0,a['Inject'](Q[_0x414e95(0x3da)])),kt(0x1,a[_0x414e95(0x4dd)](a[_0x414e95(0x556)]))],exports[_0x414e95(0x2d2)]);var J=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function Le(_0x360304){const _0x50144f=_0x414e95;return _0x360304&&_0x360304[_0x50144f(0x443)]&&Object['prototype'][_0x50144f(0x43b)][_0x50144f(0x2ff)](_0x360304,_0x50144f(0x47f))?_0x360304[_0x50144f(0x47f)]:_0x360304;}var bn={'exports':{}};function Js(_0x2599b0){const _0x222cae=_0x414e95;throw new Error(_0x222cae(0x2fb)+_0x2599b0+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}var at={'exports':{}},Wt;function ae(){const _0x23dd09=_0x414e95;return Wt||(Wt=0x1,function(_0x406bb8,_0x56ea40){(function(_0x56822c,_0x18201c){const _0x3c2c3a=_0x474b;_0x406bb8[_0x3c2c3a(0x555)]=_0x18201c();}(J,function(){var _0x261d3f=_0x261d3f||function(_0xccd4fe,_0x1b588b){const _0x372cb0=_0x474b;var _0x401a85;if(typeof window<'u'&&window[_0x372cb0(0x2a6)]&&(_0x401a85=window[_0x372cb0(0x2a6)]),typeof self<'u'&&self[_0x372cb0(0x2a6)]&&(_0x401a85=self[_0x372cb0(0x2a6)]),typeof globalThis<'u'&&globalThis[_0x372cb0(0x2a6)]&&(_0x401a85=globalThis[_0x372cb0(0x2a6)]),!_0x401a85&&typeof window<'u'&&window[_0x372cb0(0x3bc)]&&(_0x401a85=window[_0x372cb0(0x3bc)]),!_0x401a85&&typeof J<'u'&&J[_0x372cb0(0x2a6)]&&(_0x401a85=J[_0x372cb0(0x2a6)]),!_0x401a85&&typeof Js==_0x372cb0(0x175))try{_0x401a85=require('crypto');}catch{}var _0x166d99=function(){const _0x5aa7a1=_0x372cb0;if(_0x401a85){if(typeof _0x401a85[_0x5aa7a1(0x466)]==_0x5aa7a1(0x175))try{return _0x401a85[_0x5aa7a1(0x466)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x401a85[_0x5aa7a1(0x36a)]=='function')try{return _0x401a85[_0x5aa7a1(0x36a)](0x4)[_0x5aa7a1(0x5ec)]();}catch{}}throw new Error('Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.');},_0x559c44=Object[_0x372cb0(0x5d4)]||(function(){function _0x4e99cd(){}return function(_0x12df1d){const _0x14c849=_0x474b;var _0x4b1444;return _0x4e99cd[_0x14c849(0x200)]=_0x12df1d,_0x4b1444=new _0x4e99cd(),_0x4e99cd[_0x14c849(0x200)]=null,_0x4b1444;};}()),_0x2502bb={},_0x3c019=_0x2502bb[_0x372cb0(0x258)]={},_0xb66521=_0x3c019[_0x372cb0(0x28e)]=(function(){return{'extend':function(_0x409295){const _0x17c61c=_0x474b;var _0x25a6b8=_0x559c44(this);return _0x409295&&_0x25a6b8[_0x17c61c(0x263)](_0x409295),(!_0x25a6b8[_0x17c61c(0x43b)]('init')||this[_0x17c61c(0x4ea)]===_0x25a6b8[_0x17c61c(0x4ea)])&&(_0x25a6b8[_0x17c61c(0x4ea)]=function(){const _0x74ea49=_0x17c61c;_0x25a6b8[_0x74ea49(0x2b9)][_0x74ea49(0x4ea)][_0x74ea49(0x233)](this,arguments);}),_0x25a6b8['init'][_0x17c61c(0x200)]=_0x25a6b8,_0x25a6b8[_0x17c61c(0x2b9)]=this,_0x25a6b8;},'create':function(){const _0x37ec94=_0x474b;var _0x43db66=this[_0x37ec94(0x271)]();return _0x43db66['init'][_0x37ec94(0x233)](_0x43db66,arguments),_0x43db66;},'init':function(){},'mixIn':function(_0x580c70){const _0x4ce48d=_0x474b;for(var _0x2323a0 in _0x580c70)_0x580c70['hasOwnProperty'](_0x2323a0)&&(this[_0x2323a0]=_0x580c70[_0x2323a0]);_0x580c70[_0x4ce48d(0x43b)](_0x4ce48d(0x197))&&(this[_0x4ce48d(0x197)]=_0x580c70[_0x4ce48d(0x197)]);},'clone':function(){const _0x4ec035=_0x474b;return this[_0x4ec035(0x4ea)]['prototype'][_0x4ec035(0x271)](this);}};}()),_0x2f9b6b=_0x3c019[_0x372cb0(0x366)]=_0xb66521[_0x372cb0(0x271)]({'init':function(_0xdb72e,_0x7cce33){const _0xa38dee=_0x372cb0;_0xdb72e=this['words']=_0xdb72e||[],_0x7cce33!=_0x1b588b?this['sigBytes']=_0x7cce33:this[_0xa38dee(0x455)]=_0xdb72e[_0xa38dee(0x532)]*0x4;},'toString':function(_0x253cfc){const _0x496279=_0x372cb0;return(_0x253cfc||_0x3e12e2)[_0x496279(0x21f)](this);},'concat':function(_0x4f7789){const _0x2e0b9c=_0x372cb0;var _0x4d63b2=this[_0x2e0b9c(0x4ab)],_0x1bca3e=_0x4f7789['words'],_0xe3799=this['sigBytes'],_0x5d5f89=_0x4f7789['sigBytes'];if(this['clamp'](),_0xe3799%0x4)for(var _0x1bb19e=0x0;_0x1bb19e<_0x5d5f89;_0x1bb19e++){var _0x43a746=_0x1bca3e[_0x1bb19e>>>0x2]>>>0x18-_0x1bb19e%0x4*0x8&0xff;_0x4d63b2[_0xe3799+_0x1bb19e>>>0x2]|=_0x43a746<<0x18-(_0xe3799+_0x1bb19e)%0x4*0x8;}else{for(var _0x1851b6=0x0;_0x1851b6<_0x5d5f89;_0x1851b6+=0x4)_0x4d63b2[_0xe3799+_0x1851b6>>>0x2]=_0x1bca3e[_0x1851b6>>>0x2];}return this[_0x2e0b9c(0x455)]+=_0x5d5f89,this;},'clamp':function(){const _0x2c71f8=_0x372cb0;var _0x147cc7=this['words'],_0x5dede8=this[_0x2c71f8(0x455)];_0x147cc7[_0x5dede8>>>0x2]&=0xffffffff<<0x20-_0x5dede8%0x4*0x8,_0x147cc7[_0x2c71f8(0x532)]=_0xccd4fe['ceil'](_0x5dede8/0x4);},'clone':function(){const _0x40220c=_0x372cb0;var _0x383bc1=_0xb66521[_0x40220c(0x35d)][_0x40220c(0x2ff)](this);return _0x383bc1[_0x40220c(0x4ab)]=this[_0x40220c(0x4ab)][_0x40220c(0x247)](0x0),_0x383bc1;},'random':function(_0x31a1ee){const _0x12d30d=_0x372cb0;for(var _0x7fe1d8=[],_0x4067c4=0x0;_0x4067c4<_0x31a1ee;_0x4067c4+=0x4)_0x7fe1d8[_0x12d30d(0x375)](_0x166d99());return new _0x2f9b6b[(_0x12d30d(0x4ea))](_0x7fe1d8,_0x31a1ee);}}),_0x2c7ef0=_0x2502bb[_0x372cb0(0x4b3)]={},_0x3e12e2=_0x2c7ef0[_0x372cb0(0x540)]={'stringify':function(_0x55efbf){const _0x47f762=_0x372cb0;for(var _0x52bcc9=_0x55efbf[_0x47f762(0x4ab)],_0x141cdc=_0x55efbf[_0x47f762(0x455)],_0x3f53cb=[],_0x1ad3a9=0x0;_0x1ad3a9<_0x141cdc;_0x1ad3a9++){var _0x3cbc0d=_0x52bcc9[_0x1ad3a9>>>0x2]>>>0x18-_0x1ad3a9%0x4*0x8&0xff;_0x3f53cb['push']((_0x3cbc0d>>>0x4)[_0x47f762(0x197)](0x10)),_0x3f53cb[_0x47f762(0x375)]((_0x3cbc0d&0xf)['toString'](0x10));}return _0x3f53cb['join']('');},'parse':function(_0x31b59b){const _0x3f9c46=_0x372cb0;for(var _0x3fb5f4=_0x31b59b[_0x3f9c46(0x532)],_0x22f0af=[],_0x33cebc=0x0;_0x33cebc<_0x3fb5f4;_0x33cebc+=0x2)_0x22f0af[_0x33cebc>>>0x3]|=parseInt(_0x31b59b['substr'](_0x33cebc,0x2),0x10)<<0x18-_0x33cebc%0x8*0x4;return new _0x2f9b6b[(_0x3f9c46(0x4ea))](_0x22f0af,_0x3fb5f4/0x2);}},_0x1ffeee=_0x2c7ef0['Latin1']={'stringify':function(_0x1a502d){const _0x57c5f6=_0x372cb0;for(var _0x426888=_0x1a502d[_0x57c5f6(0x4ab)],_0x43d169=_0x1a502d[_0x57c5f6(0x455)],_0x31ffe0=[],_0x19cc78=0x0;_0x19cc78<_0x43d169;_0x19cc78++){var _0x3e5625=_0x426888[_0x19cc78>>>0x2]>>>0x18-_0x19cc78%0x4*0x8&0xff;_0x31ffe0['push'](String['fromCharCode'](_0x3e5625));}return _0x31ffe0[_0x57c5f6(0x348)]('');},'parse':function(_0x49a3bf){const _0x50b972=_0x372cb0;for(var _0x27c6ad=_0x49a3bf[_0x50b972(0x532)],_0xbd58bb=[],_0x205fec=0x0;_0x205fec<_0x27c6ad;_0x205fec++)_0xbd58bb[_0x205fec>>>0x2]|=(_0x49a3bf['charCodeAt'](_0x205fec)&0xff)<<0x18-_0x205fec%0x4*0x8;return new _0x2f9b6b[(_0x50b972(0x4ea))](_0xbd58bb,_0x27c6ad);}},_0x31181d=_0x2c7ef0['Utf8']={'stringify':function(_0x3af0b8){const _0x2f2ecc=_0x372cb0;try{return decodeURIComponent(escape(_0x1ffeee[_0x2f2ecc(0x21f)](_0x3af0b8)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'parse':function(_0x4f6b9e){const _0x3f3205=_0x372cb0;return _0x1ffeee[_0x3f3205(0x3f5)](unescape(encodeURIComponent(_0x4f6b9e)));}},_0x422550=_0x3c019['BufferedBlockAlgorithm']=_0xb66521[_0x372cb0(0x271)]({'reset':function(){const _0x48b5a8=_0x372cb0;this[_0x48b5a8(0x460)]=new _0x2f9b6b[(_0x48b5a8(0x4ea))](),this[_0x48b5a8(0x473)]=0x0;},'_append':function(_0x158322){const _0x29f663=_0x372cb0;typeof _0x158322==_0x29f663(0x506)&&(_0x158322=_0x31181d[_0x29f663(0x3f5)](_0x158322)),this[_0x29f663(0x460)]['concat'](_0x158322),this[_0x29f663(0x473)]+=_0x158322['sigBytes'];},'_process':function(_0x19d909){const _0x5156db=_0x372cb0;var _0x529520,_0x442985=this['_data'],_0x1e5a9a=_0x442985['words'],_0x469b60=_0x442985[_0x5156db(0x455)],_0x528db1=this[_0x5156db(0x482)],_0x3ece83=_0x528db1*0x4,_0x1285f0=_0x469b60/_0x3ece83;_0x19d909?_0x1285f0=_0xccd4fe['ceil'](_0x1285f0):_0x1285f0=_0xccd4fe[_0x5156db(0x56c)]((_0x1285f0|0x0)-this[_0x5156db(0x2a3)],0x0);var _0x6152ee=_0x1285f0*_0x528db1,_0x43ecf9=_0xccd4fe[_0x5156db(0x26e)](_0x6152ee*0x4,_0x469b60);if(_0x6152ee){for(var _0x59656e=0x0;_0x59656e<_0x6152ee;_0x59656e+=_0x528db1)this[_0x5156db(0x162)](_0x1e5a9a,_0x59656e);_0x529520=_0x1e5a9a['splice'](0x0,_0x6152ee),_0x442985[_0x5156db(0x455)]-=_0x43ecf9;}return new _0x2f9b6b[(_0x5156db(0x4ea))](_0x529520,_0x43ecf9);},'clone':function(){const _0x38178a=_0x372cb0;var _0x50ce3f=_0xb66521[_0x38178a(0x35d)][_0x38178a(0x2ff)](this);return _0x50ce3f['_data']=this[_0x38178a(0x460)][_0x38178a(0x35d)](),_0x50ce3f;},'_minBufferSize':0x0});_0x3c019[_0x372cb0(0x203)]=_0x422550['extend']({'cfg':_0xb66521[_0x372cb0(0x271)](),'init':function(_0x4a6e5a){const _0x49fcdd=_0x372cb0;this['cfg']=this[_0x49fcdd(0x27f)]['extend'](_0x4a6e5a),this[_0x49fcdd(0x469)]();},'reset':function(){const _0x34685b=_0x372cb0;_0x422550[_0x34685b(0x469)][_0x34685b(0x2ff)](this),this[_0x34685b(0x4d9)]();},'update':function(_0x119d9e){const _0xf72212=_0x372cb0;return this[_0xf72212(0x2b0)](_0x119d9e),this[_0xf72212(0x611)](),this;},'finalize':function(_0x534add){const _0x26a0af=_0x372cb0;_0x534add&&this[_0x26a0af(0x2b0)](_0x534add);var _0x530f1e=this[_0x26a0af(0x18c)]();return _0x530f1e;},'blockSize':0x10,'_createHelper':function(_0x19ed29){return function(_0x28912b,_0x5bfe52){const _0x43503e=_0x474b;return new _0x19ed29[(_0x43503e(0x4ea))](_0x5bfe52)[_0x43503e(0x358)](_0x28912b);};},'_createHmacHelper':function(_0x36628d){return function(_0x319278,_0x5d807f){const _0x4c014a=_0x474b;return new _0x1d2f94[(_0x4c014a(0x54a))][(_0x4c014a(0x4ea))](_0x36628d,_0x5d807f)[_0x4c014a(0x358)](_0x319278);};}});var _0x1d2f94=_0x2502bb[_0x372cb0(0x5fc)]={};return _0x2502bb;}(Math);return _0x261d3f;}));}(at)),at[_0x23dd09(0x555)];}var ct={'exports':{}},Ft;function Tn(){const _0x532ab0=_0x414e95;return Ft||(Ft=0x1,function(_0x4d5fa8,_0x285859){(function(_0x5908ba,_0x34796e){const _0x66e608=_0x474b;_0x4d5fa8[_0x66e608(0x555)]=_0x34796e(ae());}(J,function(_0x2a5ae3){const _0x1a70f2=_0x474b;return(function(){const _0x6c293a=_0x474b;var _0x1042b7=_0x2a5ae3,_0x3de503=_0x1042b7[_0x6c293a(0x258)],_0x4009d9=_0x3de503[_0x6c293a(0x366)],_0x4c2df9=_0x1042b7[_0x6c293a(0x4b3)];_0x4c2df9[_0x6c293a(0x415)]={'stringify':function(_0x105750){const _0x3254b6=_0x6c293a;var _0x8c741b=_0x105750[_0x3254b6(0x4ab)],_0x51e847=_0x105750[_0x3254b6(0x455)],_0x37ffac=this['_map'];_0x105750[_0x3254b6(0x389)]();for(var _0x5e292f=[],_0x14984d=0x0;_0x14984d<_0x51e847;_0x14984d+=0x3)for(var _0x548806=_0x8c741b[_0x14984d>>>0x2]>>>0x18-_0x14984d%0x4*0x8&0xff,_0xb6ae6=_0x8c741b[_0x14984d+0x1>>>0x2]>>>0x18-(_0x14984d+0x1)%0x4*0x8&0xff,_0x4c8bd4=_0x8c741b[_0x14984d+0x2>>>0x2]>>>0x18-(_0x14984d+0x2)%0x4*0x8&0xff,_0xc7f4c9=_0x548806<<0x10|_0xb6ae6<<0x8|_0x4c8bd4,_0x1223aa=0x0;_0x1223aa<0x4&&_0x14984d+_0x1223aa*0.75<_0x51e847;_0x1223aa++)_0x5e292f[_0x3254b6(0x375)](_0x37ffac['charAt'](_0xc7f4c9>>>0x6*(0x3-_0x1223aa)&0x3f));var _0x21397f=_0x37ffac[_0x3254b6(0x2f4)](0x40);if(_0x21397f){for(;_0x5e292f[_0x3254b6(0x532)]%0x4;)_0x5e292f[_0x3254b6(0x375)](_0x21397f);}return _0x5e292f[_0x3254b6(0x348)]('');},'parse':function(_0x23e966){const _0x395434=_0x6c293a;var _0x48068d=_0x23e966[_0x395434(0x532)],_0x198007=this[_0x395434(0x615)],_0x51f4f4=this['_reverseMap'];if(!_0x51f4f4){_0x51f4f4=this[_0x395434(0x4df)]=[];for(var _0x5ee437=0x0;_0x5ee437<_0x198007['length'];_0x5ee437++)_0x51f4f4[_0x198007['charCodeAt'](_0x5ee437)]=_0x5ee437;}var _0xe6c2=_0x198007['charAt'](0x40);if(_0xe6c2){var _0x19777c=_0x23e966[_0x395434(0x442)](_0xe6c2);_0x19777c!==-0x1&&(_0x48068d=_0x19777c);}return _0x4c053c(_0x23e966,_0x48068d,_0x51f4f4);},'_map':_0x6c293a(0x16f)};function _0x4c053c(_0x4dc2a3,_0x24f77f,_0x18119b){const _0x140c65=_0x6c293a;for(var _0x1aac60=[],_0x27e4a0=0x0,_0x346d1c=0x0;_0x346d1c<_0x24f77f;_0x346d1c++)if(_0x346d1c%0x4){var _0x59d513=_0x18119b[_0x4dc2a3[_0x140c65(0x183)](_0x346d1c-0x1)]<<_0x346d1c%0x4*0x2,_0x38ac26=_0x18119b[_0x4dc2a3['charCodeAt'](_0x346d1c)]>>>0x6-_0x346d1c%0x4*0x2,_0x33f0b2=_0x59d513|_0x38ac26;_0x1aac60[_0x27e4a0>>>0x2]|=_0x33f0b2<<0x18-_0x27e4a0%0x4*0x8,_0x27e4a0++;}return _0x4009d9[_0x140c65(0x5d4)](_0x1aac60,_0x27e4a0);}}()),_0x2a5ae3[_0x1a70f2(0x4b3)][_0x1a70f2(0x415)];}));}(ct)),ct[_0x532ab0(0x555)];}var lt={'exports':{}},Vt;function Zs(){const _0x30c692=_0x414e95;return Vt||(Vt=0x1,function(_0x13c407,_0x2b8b4d){(function(_0x370a88,_0x39793a){const _0x29a0b3=_0x474b;_0x13c407[_0x29a0b3(0x555)]=_0x39793a(ae());}(J,function(_0x355ce0){const _0x17f709=_0x474b;return function(_0x5c0de5){const _0x3e0aa8=_0x474b;var _0x22d5b2=_0x355ce0,_0xe469d6=_0x22d5b2[_0x3e0aa8(0x258)],_0x4cbb78=_0xe469d6[_0x3e0aa8(0x366)],_0x486fee=_0xe469d6[_0x3e0aa8(0x203)],_0x30c9bf=_0x22d5b2[_0x3e0aa8(0x5fc)],_0x12c0ba=[];(function(){const _0x509b00=_0x3e0aa8;for(var _0x2fdf3d=0x0;_0x2fdf3d<0x40;_0x2fdf3d++)_0x12c0ba[_0x2fdf3d]=_0x5c0de5[_0x509b00(0x467)](_0x5c0de5[_0x509b00(0x30c)](_0x2fdf3d+0x1))*0x100000000|0x0;}());var _0x485e9a=_0x30c9bf[_0x3e0aa8(0x166)]=_0x486fee[_0x3e0aa8(0x271)]({'_doReset':function(){this['_hash']=new _0x4cbb78['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x356239,_0x266185){for(var _0x301f2d=0x0;_0x301f2d<0x10;_0x301f2d++){var _0x2fd819=_0x266185+_0x301f2d,_0x3764ca=_0x356239[_0x2fd819];_0x356239[_0x2fd819]=(_0x3764ca<<0x8|_0x3764ca>>>0x18)&0xff00ff|(_0x3764ca<<0x18|_0x3764ca>>>0x8)&0xff00ff00;}var _0x46c512=this['_hash']['words'],_0xc67fc8=_0x356239[_0x266185+0x0],_0x1fc19d=_0x356239[_0x266185+0x1],_0x21dad0=_0x356239[_0x266185+0x2],_0x51b45d=_0x356239[_0x266185+0x3],_0x3dafd3=_0x356239[_0x266185+0x4],_0x1284bf=_0x356239[_0x266185+0x5],_0x31e28b=_0x356239[_0x266185+0x6],_0x1f8aa0=_0x356239[_0x266185+0x7],_0x42b07a=_0x356239[_0x266185+0x8],_0x41171d=_0x356239[_0x266185+0x9],_0x2a8902=_0x356239[_0x266185+0xa],_0x25e0d1=_0x356239[_0x266185+0xb],_0x2a0565=_0x356239[_0x266185+0xc],_0x549ab1=_0x356239[_0x266185+0xd],_0x4c5dbc=_0x356239[_0x266185+0xe],_0xbab00c=_0x356239[_0x266185+0xf],_0x445b18=_0x46c512[0x0],_0x3f8fc6=_0x46c512[0x1],_0x43477a=_0x46c512[0x2],_0xa186f2=_0x46c512[0x3];_0x445b18=_0x1ab498(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0xc67fc8,0x7,_0x12c0ba[0x0]),_0xa186f2=_0x1ab498(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x1fc19d,0xc,_0x12c0ba[0x1]),_0x43477a=_0x1ab498(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x21dad0,0x11,_0x12c0ba[0x2]),_0x3f8fc6=_0x1ab498(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x51b45d,0x16,_0x12c0ba[0x3]),_0x445b18=_0x1ab498(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x3dafd3,0x7,_0x12c0ba[0x4]),_0xa186f2=_0x1ab498(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x1284bf,0xc,_0x12c0ba[0x5]),_0x43477a=_0x1ab498(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x31e28b,0x11,_0x12c0ba[0x6]),_0x3f8fc6=_0x1ab498(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x1f8aa0,0x16,_0x12c0ba[0x7]),_0x445b18=_0x1ab498(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x42b07a,0x7,_0x12c0ba[0x8]),_0xa186f2=_0x1ab498(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x41171d,0xc,_0x12c0ba[0x9]),_0x43477a=_0x1ab498(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x2a8902,0x11,_0x12c0ba[0xa]),_0x3f8fc6=_0x1ab498(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x25e0d1,0x16,_0x12c0ba[0xb]),_0x445b18=_0x1ab498(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x2a0565,0x7,_0x12c0ba[0xc]),_0xa186f2=_0x1ab498(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x549ab1,0xc,_0x12c0ba[0xd]),_0x43477a=_0x1ab498(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x4c5dbc,0x11,_0x12c0ba[0xe]),_0x3f8fc6=_0x1ab498(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0xbab00c,0x16,_0x12c0ba[0xf]),_0x445b18=_0xbcded2(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x1fc19d,0x5,_0x12c0ba[0x10]),_0xa186f2=_0xbcded2(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x31e28b,0x9,_0x12c0ba[0x11]),_0x43477a=_0xbcded2(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x25e0d1,0xe,_0x12c0ba[0x12]),_0x3f8fc6=_0xbcded2(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0xc67fc8,0x14,_0x12c0ba[0x13]),_0x445b18=_0xbcded2(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x1284bf,0x5,_0x12c0ba[0x14]),_0xa186f2=_0xbcded2(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x2a8902,0x9,_0x12c0ba[0x15]),_0x43477a=_0xbcded2(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0xbab00c,0xe,_0x12c0ba[0x16]),_0x3f8fc6=_0xbcded2(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x3dafd3,0x14,_0x12c0ba[0x17]),_0x445b18=_0xbcded2(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x41171d,0x5,_0x12c0ba[0x18]),_0xa186f2=_0xbcded2(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x4c5dbc,0x9,_0x12c0ba[0x19]),_0x43477a=_0xbcded2(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x51b45d,0xe,_0x12c0ba[0x1a]),_0x3f8fc6=_0xbcded2(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x42b07a,0x14,_0x12c0ba[0x1b]),_0x445b18=_0xbcded2(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x549ab1,0x5,_0x12c0ba[0x1c]),_0xa186f2=_0xbcded2(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x21dad0,0x9,_0x12c0ba[0x1d]),_0x43477a=_0xbcded2(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x1f8aa0,0xe,_0x12c0ba[0x1e]),_0x3f8fc6=_0xbcded2(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x2a0565,0x14,_0x12c0ba[0x1f]),_0x445b18=_0x354ce2(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x1284bf,0x4,_0x12c0ba[0x20]),_0xa186f2=_0x354ce2(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x42b07a,0xb,_0x12c0ba[0x21]),_0x43477a=_0x354ce2(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x25e0d1,0x10,_0x12c0ba[0x22]),_0x3f8fc6=_0x354ce2(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x4c5dbc,0x17,_0x12c0ba[0x23]),_0x445b18=_0x354ce2(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x1fc19d,0x4,_0x12c0ba[0x24]),_0xa186f2=_0x354ce2(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x3dafd3,0xb,_0x12c0ba[0x25]),_0x43477a=_0x354ce2(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x1f8aa0,0x10,_0x12c0ba[0x26]),_0x3f8fc6=_0x354ce2(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x2a8902,0x17,_0x12c0ba[0x27]),_0x445b18=_0x354ce2(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x549ab1,0x4,_0x12c0ba[0x28]),_0xa186f2=_0x354ce2(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0xc67fc8,0xb,_0x12c0ba[0x29]),_0x43477a=_0x354ce2(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x51b45d,0x10,_0x12c0ba[0x2a]),_0x3f8fc6=_0x354ce2(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x31e28b,0x17,_0x12c0ba[0x2b]),_0x445b18=_0x354ce2(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x41171d,0x4,_0x12c0ba[0x2c]),_0xa186f2=_0x354ce2(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x2a0565,0xb,_0x12c0ba[0x2d]),_0x43477a=_0x354ce2(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0xbab00c,0x10,_0x12c0ba[0x2e]),_0x3f8fc6=_0x354ce2(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x21dad0,0x17,_0x12c0ba[0x2f]),_0x445b18=_0x36833a(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0xc67fc8,0x6,_0x12c0ba[0x30]),_0xa186f2=_0x36833a(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x1f8aa0,0xa,_0x12c0ba[0x31]),_0x43477a=_0x36833a(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x4c5dbc,0xf,_0x12c0ba[0x32]),_0x3f8fc6=_0x36833a(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x1284bf,0x15,_0x12c0ba[0x33]),_0x445b18=_0x36833a(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x2a0565,0x6,_0x12c0ba[0x34]),_0xa186f2=_0x36833a(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x51b45d,0xa,_0x12c0ba[0x35]),_0x43477a=_0x36833a(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x2a8902,0xf,_0x12c0ba[0x36]),_0x3f8fc6=_0x36833a(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x1fc19d,0x15,_0x12c0ba[0x37]),_0x445b18=_0x36833a(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x42b07a,0x6,_0x12c0ba[0x38]),_0xa186f2=_0x36833a(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0xbab00c,0xa,_0x12c0ba[0x39]),_0x43477a=_0x36833a(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x31e28b,0xf,_0x12c0ba[0x3a]),_0x3f8fc6=_0x36833a(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x549ab1,0x15,_0x12c0ba[0x3b]),_0x445b18=_0x36833a(_0x445b18,_0x3f8fc6,_0x43477a,_0xa186f2,_0x3dafd3,0x6,_0x12c0ba[0x3c]),_0xa186f2=_0x36833a(_0xa186f2,_0x445b18,_0x3f8fc6,_0x43477a,_0x25e0d1,0xa,_0x12c0ba[0x3d]),_0x43477a=_0x36833a(_0x43477a,_0xa186f2,_0x445b18,_0x3f8fc6,_0x21dad0,0xf,_0x12c0ba[0x3e]),_0x3f8fc6=_0x36833a(_0x3f8fc6,_0x43477a,_0xa186f2,_0x445b18,_0x41171d,0x15,_0x12c0ba[0x3f]),_0x46c512[0x0]=_0x46c512[0x0]+_0x445b18|0x0,_0x46c512[0x1]=_0x46c512[0x1]+_0x3f8fc6|0x0,_0x46c512[0x2]=_0x46c512[0x2]+_0x43477a|0x0,_0x46c512[0x3]=_0x46c512[0x3]+_0xa186f2|0x0;},'_doFinalize':function(){const _0x4dfe3b=_0x3e0aa8;var _0x1edc3a=this[_0x4dfe3b(0x460)],_0x412950=_0x1edc3a[_0x4dfe3b(0x4ab)],_0x53cd12=this['_nDataBytes']*0x8,_0x38ff13=_0x1edc3a[_0x4dfe3b(0x455)]*0x8;_0x412950[_0x38ff13>>>0x5]|=0x80<<0x18-_0x38ff13%0x20;var _0x578d15=_0x5c0de5[_0x4dfe3b(0x1bc)](_0x53cd12/0x100000000),_0x213e6c=_0x53cd12;_0x412950[(_0x38ff13+0x40>>>0x9<<0x4)+0xf]=(_0x578d15<<0x8|_0x578d15>>>0x18)&0xff00ff|(_0x578d15<<0x18|_0x578d15>>>0x8)&0xff00ff00,_0x412950[(_0x38ff13+0x40>>>0x9<<0x4)+0xe]=(_0x213e6c<<0x8|_0x213e6c>>>0x18)&0xff00ff|(_0x213e6c<<0x18|_0x213e6c>>>0x8)&0xff00ff00,_0x1edc3a[_0x4dfe3b(0x455)]=(_0x412950[_0x4dfe3b(0x532)]+0x1)*0x4,this[_0x4dfe3b(0x611)]();for(var _0x5617ff=this[_0x4dfe3b(0x3a5)],_0x18cdcc=_0x5617ff[_0x4dfe3b(0x4ab)],_0x22b11e=0x0;_0x22b11e<0x4;_0x22b11e++){var _0x1e029c=_0x18cdcc[_0x22b11e];_0x18cdcc[_0x22b11e]=(_0x1e029c<<0x8|_0x1e029c>>>0x18)&0xff00ff|(_0x1e029c<<0x18|_0x1e029c>>>0x8)&0xff00ff00;}return _0x5617ff;},'clone':function(){const _0x446924=_0x3e0aa8;var _0x2321fd=_0x486fee[_0x446924(0x35d)][_0x446924(0x2ff)](this);return _0x2321fd['_hash']=this[_0x446924(0x3a5)]['clone'](),_0x2321fd;}});function _0x1ab498(_0x5e3723,_0x3699ef,_0x541e21,_0x1a7382,_0x50e5c0,_0x1c69ce,_0x5a2511){var _0x3870f5=_0x5e3723+(_0x3699ef&_0x541e21|~_0x3699ef&_0x1a7382)+_0x50e5c0+_0x5a2511;return(_0x3870f5<<_0x1c69ce|_0x3870f5>>>0x20-_0x1c69ce)+_0x3699ef;}function _0xbcded2(_0xefc549,_0x12a627,_0x2c1865,_0x2b0818,_0x4c0e6d,_0x279716,_0x401de0){var _0xf0b727=_0xefc549+(_0x12a627&_0x2b0818|_0x2c1865&~_0x2b0818)+_0x4c0e6d+_0x401de0;return(_0xf0b727<<_0x279716|_0xf0b727>>>0x20-_0x279716)+_0x12a627;}function _0x354ce2(_0x4a2bae,_0x2a2664,_0x13fa0f,_0x31530c,_0x473272,_0x3fc7c1,_0x2184ae){var _0x9c82fa=_0x4a2bae+(_0x2a2664^_0x13fa0f^_0x31530c)+_0x473272+_0x2184ae;return(_0x9c82fa<<_0x3fc7c1|_0x9c82fa>>>0x20-_0x3fc7c1)+_0x2a2664;}function _0x36833a(_0xc03ca9,_0x11efb1,_0x29501f,_0x2d5784,_0x1206af,_0x4054da,_0x1b43be){var _0x148524=_0xc03ca9+(_0x29501f^(_0x11efb1|~_0x2d5784))+_0x1206af+_0x1b43be;return(_0x148524<<_0x4054da|_0x148524>>>0x20-_0x4054da)+_0x11efb1;}_0x22d5b2[_0x3e0aa8(0x166)]=_0x486fee['_createHelper'](_0x485e9a),_0x22d5b2['HmacMD5']=_0x486fee[_0x3e0aa8(0x578)](_0x485e9a);}(Math),_0x355ce0[_0x17f709(0x166)];}));}(lt)),lt[_0x30c692(0x555)];}var ht={'exports':{}},_t={'exports':{}},Gt;function Qs(){const _0x1c39b3=_0x414e95;return Gt||(Gt=0x1,function(_0x4b3b6b,_0x3392a1){(function(_0x4ac4f7,_0x4ae947){const _0x223350=_0x474b;_0x4b3b6b[_0x223350(0x555)]=_0x4ae947(ae());}(J,function(_0x3d631e){const _0x1212ea=_0x474b;return(function(){const _0x7aae56=_0x474b;var _0x3db6cd=_0x3d631e,_0x11ad84=_0x3db6cd[_0x7aae56(0x258)],_0x4baa15=_0x11ad84[_0x7aae56(0x366)],_0x8e46bc=_0x11ad84[_0x7aae56(0x203)],_0x378378=_0x3db6cd[_0x7aae56(0x5fc)],_0x3718b1=[],_0x1b11eb=_0x378378[_0x7aae56(0x330)]=_0x8e46bc['extend']({'_doReset':function(){const _0x2ddf82=_0x7aae56;this[_0x2ddf82(0x3a5)]=new _0x4baa15[(_0x2ddf82(0x4ea))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x1e226e,_0x3393c9){const _0x57735a=_0x7aae56;for(var _0x143bac=this[_0x57735a(0x3a5)][_0x57735a(0x4ab)],_0x295586=_0x143bac[0x0],_0xbb58b6=_0x143bac[0x1],_0x3f29f4=_0x143bac[0x2],_0x2cc63e=_0x143bac[0x3],_0x3dcc5e=_0x143bac[0x4],_0x5c6e45=0x0;_0x5c6e45<0x50;_0x5c6e45++){if(_0x5c6e45<0x10)_0x3718b1[_0x5c6e45]=_0x1e226e[_0x3393c9+_0x5c6e45]|0x0;else{var _0x5d3231=_0x3718b1[_0x5c6e45-0x3]^_0x3718b1[_0x5c6e45-0x8]^_0x3718b1[_0x5c6e45-0xe]^_0x3718b1[_0x5c6e45-0x10];_0x3718b1[_0x5c6e45]=_0x5d3231<<0x1|_0x5d3231>>>0x1f;}var _0x32a50f=(_0x295586<<0x5|_0x295586>>>0x1b)+_0x3dcc5e+_0x3718b1[_0x5c6e45];_0x5c6e45<0x14?_0x32a50f+=(_0xbb58b6&_0x3f29f4|~_0xbb58b6&_0x2cc63e)+0x5a827999:_0x5c6e45<0x28?_0x32a50f+=(_0xbb58b6^_0x3f29f4^_0x2cc63e)+0x6ed9eba1:_0x5c6e45<0x3c?_0x32a50f+=(_0xbb58b6&_0x3f29f4|_0xbb58b6&_0x2cc63e|_0x3f29f4&_0x2cc63e)-0x70e44324:_0x32a50f+=(_0xbb58b6^_0x3f29f4^_0x2cc63e)-0x359d3e2a,_0x3dcc5e=_0x2cc63e,_0x2cc63e=_0x3f29f4,_0x3f29f4=_0xbb58b6<<0x1e|_0xbb58b6>>>0x2,_0xbb58b6=_0x295586,_0x295586=_0x32a50f;}_0x143bac[0x0]=_0x143bac[0x0]+_0x295586|0x0,_0x143bac[0x1]=_0x143bac[0x1]+_0xbb58b6|0x0,_0x143bac[0x2]=_0x143bac[0x2]+_0x3f29f4|0x0,_0x143bac[0x3]=_0x143bac[0x3]+_0x2cc63e|0x0,_0x143bac[0x4]=_0x143bac[0x4]+_0x3dcc5e|0x0;},'_doFinalize':function(){const _0x22efdc=_0x7aae56;var _0x4d13a9=this['_data'],_0x2ab00c=_0x4d13a9['words'],_0x23a328=this[_0x22efdc(0x473)]*0x8,_0x182589=_0x4d13a9['sigBytes']*0x8;return _0x2ab00c[_0x182589>>>0x5]|=0x80<<0x18-_0x182589%0x20,_0x2ab00c[(_0x182589+0x40>>>0x9<<0x4)+0xe]=Math['floor'](_0x23a328/0x100000000),_0x2ab00c[(_0x182589+0x40>>>0x9<<0x4)+0xf]=_0x23a328,_0x4d13a9['sigBytes']=_0x2ab00c[_0x22efdc(0x532)]*0x4,this[_0x22efdc(0x611)](),this[_0x22efdc(0x3a5)];},'clone':function(){const _0x3e8d11=_0x7aae56;var _0x17ba24=_0x8e46bc[_0x3e8d11(0x35d)]['call'](this);return _0x17ba24[_0x3e8d11(0x3a5)]=this[_0x3e8d11(0x3a5)][_0x3e8d11(0x35d)](),_0x17ba24;}});_0x3db6cd[_0x7aae56(0x330)]=_0x8e46bc['_createHelper'](_0x1b11eb),_0x3db6cd['HmacSHA1']=_0x8e46bc[_0x7aae56(0x578)](_0x1b11eb);}()),_0x3d631e[_0x1212ea(0x330)];}));}(_t)),_t[_0x1c39b3(0x555)];}var ut={'exports':{}},Yt;function er(){const _0x4bf6a5=_0x414e95;return Yt||(Yt=0x1,function(_0x5b127e,_0x18cd1e){(function(_0x3a8abd,_0x560fa1){_0x5b127e['exports']=_0x560fa1(ae());}(J,function(_0x3ee634){(function(){const _0x2f5e5e=_0x474b;var _0x191f4a=_0x3ee634,_0x580914=_0x191f4a[_0x2f5e5e(0x258)],_0x23ab95=_0x580914['Base'],_0x44b62e=_0x191f4a[_0x2f5e5e(0x4b3)],_0x43bb38=_0x44b62e[_0x2f5e5e(0x345)],_0xefd436=_0x191f4a[_0x2f5e5e(0x5fc)];_0xefd436[_0x2f5e5e(0x54a)]=_0x23ab95['extend']({'init':function(_0xc292b,_0x280bc0){const _0x1483c3=_0x2f5e5e;_0xc292b=this[_0x1483c3(0x5be)]=new _0xc292b[(_0x1483c3(0x4ea))](),typeof _0x280bc0==_0x1483c3(0x506)&&(_0x280bc0=_0x43bb38['parse'](_0x280bc0));var _0x1affec=_0xc292b[_0x1483c3(0x482)],_0x29969a=_0x1affec*0x4;_0x280bc0[_0x1483c3(0x455)]>_0x29969a&&(_0x280bc0=_0xc292b[_0x1483c3(0x358)](_0x280bc0)),_0x280bc0['clamp']();for(var _0xa5c7d1=this[_0x1483c3(0x5f8)]=_0x280bc0[_0x1483c3(0x35d)](),_0xfe862c=this['_iKey']=_0x280bc0[_0x1483c3(0x35d)](),_0x228c44=_0xa5c7d1[_0x1483c3(0x4ab)],_0x3eced5=_0xfe862c['words'],_0x5cffde=0x0;_0x5cffde<_0x1affec;_0x5cffde++)_0x228c44[_0x5cffde]^=0x5c5c5c5c,_0x3eced5[_0x5cffde]^=0x36363636;_0xa5c7d1[_0x1483c3(0x455)]=_0xfe862c[_0x1483c3(0x455)]=_0x29969a,this['reset']();},'reset':function(){const _0x582c6e=_0x2f5e5e;var _0x283f4e=this[_0x582c6e(0x5be)];_0x283f4e[_0x582c6e(0x469)](),_0x283f4e[_0x582c6e(0x217)](this[_0x582c6e(0x2bb)]);},'update':function(_0x5754ab){const _0x37cb5b=_0x2f5e5e;return this[_0x37cb5b(0x5be)][_0x37cb5b(0x217)](_0x5754ab),this;},'finalize':function(_0x489a1a){const _0x2d86c7=_0x2f5e5e;var _0x5313e9=this[_0x2d86c7(0x5be)],_0x5af7c2=_0x5313e9[_0x2d86c7(0x358)](_0x489a1a);_0x5313e9[_0x2d86c7(0x469)]();var _0x373b0a=_0x5313e9['finalize'](this[_0x2d86c7(0x5f8)][_0x2d86c7(0x35d)]()[_0x2d86c7(0x294)](_0x5af7c2));return _0x373b0a;}});}());}));}(ut)),ut[_0x4bf6a5(0x555)];}var Kt;function Rn(){const _0x428004=_0x414e95;return Kt||(Kt=0x1,function(_0x221371,_0x572aa6){(function(_0x122527,_0x35bfb7,_0x1e1d67){const _0x2bba32=_0x474b;_0x221371[_0x2bba32(0x555)]=_0x35bfb7(ae(),Qs(),er());}(J,function(_0x215ccc){return(function(){const _0x432697=_0x474b;var _0x108701=_0x215ccc,_0x47cf7b=_0x108701['lib'],_0x50bdd7=_0x47cf7b[_0x432697(0x28e)],_0x4cd60f=_0x47cf7b[_0x432697(0x366)],_0x387d88=_0x108701[_0x432697(0x5fc)],_0x15abba=_0x387d88[_0x432697(0x166)],_0x5d8ab3=_0x387d88[_0x432697(0x41d)]=_0x50bdd7['extend']({'cfg':_0x50bdd7[_0x432697(0x271)]({'keySize':0x80/0x20,'hasher':_0x15abba,'iterations':0x1}),'init':function(_0x327570){const _0x255f9c=_0x432697;this[_0x255f9c(0x27f)]=this[_0x255f9c(0x27f)][_0x255f9c(0x271)](_0x327570);},'compute':function(_0x3a471f,_0x200338){const _0x204ce7=_0x432697;for(var _0x211674,_0x4087d6=this[_0x204ce7(0x27f)],_0x2291c5=_0x4087d6['hasher'][_0x204ce7(0x5d4)](),_0x79922d=_0x4cd60f[_0x204ce7(0x5d4)](),_0x57f1c3=_0x79922d[_0x204ce7(0x4ab)],_0x31999d=_0x4087d6[_0x204ce7(0x429)],_0x238b14=_0x4087d6[_0x204ce7(0x22e)];_0x57f1c3[_0x204ce7(0x532)]<_0x31999d;){_0x211674&&_0x2291c5['update'](_0x211674),_0x211674=_0x2291c5[_0x204ce7(0x217)](_0x3a471f)[_0x204ce7(0x358)](_0x200338),_0x2291c5[_0x204ce7(0x469)]();for(var _0x3130c0=0x1;_0x3130c0<_0x238b14;_0x3130c0++)_0x211674=_0x2291c5[_0x204ce7(0x358)](_0x211674),_0x2291c5['reset']();_0x79922d['concat'](_0x211674);}return _0x79922d[_0x204ce7(0x455)]=_0x31999d*0x4,_0x79922d;}});_0x108701[_0x432697(0x41d)]=function(_0x49672d,_0x4f94c8,_0x58b76d){const _0x53fab4=_0x432697;return _0x5d8ab3[_0x53fab4(0x5d4)](_0x58b76d)[_0x53fab4(0x5d1)](_0x49672d,_0x4f94c8);};}()),_0x215ccc['EvpKDF'];}));}(ht)),ht[_0x428004(0x555)];}var dt={'exports':{}},qt;function _0x474b(_0x4123e1,_0x22ec9a){const _0x2cf636=_0x2cf6();return _0x474b=function(_0x474b2e,_0x142845){_0x474b2e=_0x474b2e-0x162;let _0x5936e6=_0x2cf636[_0x474b2e];return _0x5936e6;},_0x474b(_0x4123e1,_0x22ec9a);}function yn(){const _0x35ff05=_0x414e95;return qt||(qt=0x1,function(_0x38e991,_0x50e34c){(function(_0x589c68,_0x12a74f,_0x54ac6d){const _0x31c7ec=_0x474b;_0x38e991[_0x31c7ec(0x555)]=_0x12a74f(ae(),Rn());}(J,function(_0x4170c3){_0x4170c3['lib']['Cipher']||function(_0x2a476b){const _0x4a3f7c=_0x474b;var _0x4cc068=_0x4170c3,_0x2a1d0e=_0x4cc068[_0x4a3f7c(0x258)],_0x48e6c0=_0x2a1d0e[_0x4a3f7c(0x28e)],_0x160b3c=_0x2a1d0e[_0x4a3f7c(0x366)],_0x174998=_0x2a1d0e[_0x4a3f7c(0x2be)],_0x56107d=_0x4cc068[_0x4a3f7c(0x4b3)];_0x56107d[_0x4a3f7c(0x345)];var _0x43dd26=_0x56107d[_0x4a3f7c(0x415)],_0x305493=_0x4cc068[_0x4a3f7c(0x5fc)],_0x33f1f9=_0x305493[_0x4a3f7c(0x41d)],_0x37f0e2=_0x2a1d0e[_0x4a3f7c(0x2e0)]=_0x174998['extend']({'cfg':_0x48e6c0['extend'](),'createEncryptor':function(_0x3c25b7,_0x3e71d4){const _0x235081=_0x4a3f7c;return this[_0x235081(0x5d4)](this[_0x235081(0x1e3)],_0x3c25b7,_0x3e71d4);},'createDecryptor':function(_0x5ee9f3,_0x308ae4){const _0x291511=_0x4a3f7c;return this[_0x291511(0x5d4)](this[_0x291511(0x2e6)],_0x5ee9f3,_0x308ae4);},'init':function(_0x3e450e,_0x5c5d90,_0x2a7706){const _0x16a06d=_0x4a3f7c;this[_0x16a06d(0x27f)]=this['cfg']['extend'](_0x2a7706),this[_0x16a06d(0x2f2)]=_0x3e450e,this[_0x16a06d(0x43d)]=_0x5c5d90,this[_0x16a06d(0x469)]();},'reset':function(){const _0x218570=_0x4a3f7c;_0x174998[_0x218570(0x469)][_0x218570(0x2ff)](this),this[_0x218570(0x4d9)]();},'process':function(_0x2edeac){return this['_append'](_0x2edeac),this['_process']();},'finalize':function(_0x1bb235){const _0x438958=_0x4a3f7c;_0x1bb235&&this[_0x438958(0x2b0)](_0x1bb235);var _0x4d4aca=this[_0x438958(0x18c)]();return _0x4d4aca;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x13e16a(_0x1ac9af){const _0xb05970=_0x474b;return typeof _0x1ac9af==_0xb05970(0x506)?_0x125d28:_0x571ebb;}return function(_0x8e1279){return{'encrypt':function(_0x218414,_0x5173a4,_0xd372e4){const _0x28f563=_0x474b;return _0x13e16a(_0x5173a4)[_0x28f563(0x60e)](_0x8e1279,_0x218414,_0x5173a4,_0xd372e4);},'decrypt':function(_0x3550a2,_0x17c3f9,_0x35c355){const _0x3c2f1b=_0x474b;return _0x13e16a(_0x17c3f9)[_0x3c2f1b(0x1e1)](_0x8e1279,_0x3550a2,_0x17c3f9,_0x35c355);}};};}())});_0x2a1d0e[_0x4a3f7c(0x298)]=_0x37f0e2['extend']({'_doFinalize':function(){var _0x56e8c2=this['_process'](!0x0);return _0x56e8c2;},'blockSize':0x1});var _0x2eef8b=_0x4cc068[_0x4a3f7c(0x2d6)]={},_0x3e3075=_0x2a1d0e[_0x4a3f7c(0x2a5)]=_0x48e6c0[_0x4a3f7c(0x271)]({'createEncryptor':function(_0x421b33,_0x2abdab){const _0x524ddb=_0x4a3f7c;return this[_0x524ddb(0x59e)][_0x524ddb(0x5d4)](_0x421b33,_0x2abdab);},'createDecryptor':function(_0x39cd61,_0x1556e0){const _0x247e61=_0x4a3f7c;return this[_0x247e61(0x542)]['create'](_0x39cd61,_0x1556e0);},'init':function(_0x1eb2f5,_0x3bd2fd){const _0x3c0282=_0x4a3f7c;this[_0x3c0282(0x250)]=_0x1eb2f5,this[_0x3c0282(0x296)]=_0x3bd2fd;}}),_0x31a4cc=_0x2eef8b[_0x4a3f7c(0x177)]=(function(){const _0x5c4483=_0x4a3f7c;var _0x5f57cc=_0x3e3075[_0x5c4483(0x271)]();_0x5f57cc[_0x5c4483(0x59e)]=_0x5f57cc[_0x5c4483(0x271)]({'processBlock':function(_0x3e366b,_0x5a9a1a){const _0x32d0a6=_0x5c4483;var _0x57a34e=this[_0x32d0a6(0x250)],_0x15d0a4=_0x57a34e[_0x32d0a6(0x482)];_0x2098cb[_0x32d0a6(0x2ff)](this,_0x3e366b,_0x5a9a1a,_0x15d0a4),_0x57a34e[_0x32d0a6(0x5d2)](_0x3e366b,_0x5a9a1a),this[_0x32d0a6(0x2f7)]=_0x3e366b[_0x32d0a6(0x247)](_0x5a9a1a,_0x5a9a1a+_0x15d0a4);}}),_0x5f57cc[_0x5c4483(0x542)]=_0x5f57cc[_0x5c4483(0x271)]({'processBlock':function(_0xf86be6,_0x2aa0f2){const _0x262ac2=_0x5c4483;var _0x4d32a=this[_0x262ac2(0x250)],_0x1fc411=_0x4d32a[_0x262ac2(0x482)],_0x126587=_0xf86be6[_0x262ac2(0x247)](_0x2aa0f2,_0x2aa0f2+_0x1fc411);_0x4d32a['decryptBlock'](_0xf86be6,_0x2aa0f2),_0x2098cb['call'](this,_0xf86be6,_0x2aa0f2,_0x1fc411),this[_0x262ac2(0x2f7)]=_0x126587;}});function _0x2098cb(_0x1d3319,_0x440b52,_0x139ac9){const _0x498230=_0x5c4483;var _0x48a38a,_0x26b5d0=this[_0x498230(0x296)];_0x26b5d0?(_0x48a38a=_0x26b5d0,this[_0x498230(0x296)]=_0x2a476b):_0x48a38a=this[_0x498230(0x2f7)];for(var _0x4f18b0=0x0;_0x4f18b0<_0x139ac9;_0x4f18b0++)_0x1d3319[_0x440b52+_0x4f18b0]^=_0x48a38a[_0x4f18b0];}return _0x5f57cc;}()),_0x4d028e=_0x4cc068[_0x4a3f7c(0x384)]={},_0x573808=_0x4d028e['Pkcs7']={'pad':function(_0xfd956c,_0x3a85bf){const _0x15a59b=_0x4a3f7c;for(var _0x103063=_0x3a85bf*0x4,_0x5d34c6=_0x103063-_0xfd956c['sigBytes']%_0x103063,_0xac0b1b=_0x5d34c6<<0x18|_0x5d34c6<<0x10|_0x5d34c6<<0x8|_0x5d34c6,_0x55ee2b=[],_0x40350e=0x0;_0x40350e<_0x5d34c6;_0x40350e+=0x4)_0x55ee2b['push'](_0xac0b1b);var _0x5a1b49=_0x160b3c[_0x15a59b(0x5d4)](_0x55ee2b,_0x5d34c6);_0xfd956c[_0x15a59b(0x294)](_0x5a1b49);},'unpad':function(_0x240b83){const _0x170da2=_0x4a3f7c;var _0x559f5d=_0x240b83[_0x170da2(0x4ab)][_0x240b83[_0x170da2(0x455)]-0x1>>>0x2]&0xff;_0x240b83['sigBytes']-=_0x559f5d;}};_0x2a1d0e[_0x4a3f7c(0x47a)]=_0x37f0e2[_0x4a3f7c(0x271)]({'cfg':_0x37f0e2[_0x4a3f7c(0x27f)]['extend']({'mode':_0x31a4cc,'padding':_0x573808}),'reset':function(){const _0x8e602f=_0x4a3f7c;var _0xe00416;_0x37f0e2[_0x8e602f(0x469)][_0x8e602f(0x2ff)](this);var _0x3d1de3=this['cfg'],_0x3a6a4c=_0x3d1de3['iv'],_0x57ca9e=_0x3d1de3[_0x8e602f(0x2d6)];this['_xformMode']==this[_0x8e602f(0x1e3)]?_0xe00416=_0x57ca9e['createEncryptor']:(_0xe00416=_0x57ca9e['createDecryptor'],this[_0x8e602f(0x2a3)]=0x1),this['_mode']&&this[_0x8e602f(0x273)]['__creator']==_0xe00416?this[_0x8e602f(0x273)]['init'](this,_0x3a6a4c&&_0x3a6a4c[_0x8e602f(0x4ab)]):(this[_0x8e602f(0x273)]=_0xe00416[_0x8e602f(0x2ff)](_0x57ca9e,this,_0x3a6a4c&&_0x3a6a4c[_0x8e602f(0x4ab)]),this[_0x8e602f(0x273)]['__creator']=_0xe00416);},'_doProcessBlock':function(_0x30c0ad,_0x39939c){const _0x359ede=_0x4a3f7c;this['_mode'][_0x359ede(0x3a7)](_0x30c0ad,_0x39939c);},'_doFinalize':function(){const _0x2f1def=_0x4a3f7c;var _0x33fad0,_0x487b94=this['cfg'][_0x2f1def(0x552)];return this['_xformMode']==this[_0x2f1def(0x1e3)]?(_0x487b94[_0x2f1def(0x384)](this[_0x2f1def(0x460)],this[_0x2f1def(0x482)]),_0x33fad0=this[_0x2f1def(0x611)](!0x0)):(_0x33fad0=this['_process'](!0x0),_0x487b94['unpad'](_0x33fad0)),_0x33fad0;},'blockSize':0x80/0x20});var _0x138910=_0x2a1d0e[_0x4a3f7c(0x4be)]=_0x48e6c0['extend']({'init':function(_0x5b316e){const _0x54bcba=_0x4a3f7c;this[_0x54bcba(0x263)](_0x5b316e);},'toString':function(_0x2054c8){const _0x138756=_0x4a3f7c;return(_0x2054c8||this[_0x138756(0x465)])[_0x138756(0x21f)](this);}}),_0x2519a5=_0x4cc068['format']={},_0x308f07=_0x2519a5[_0x4a3f7c(0x3e4)]={'stringify':function(_0x42752f){const _0x105dc9=_0x4a3f7c;var _0x1602cc,_0x55ee02=_0x42752f['ciphertext'],_0x4bfe15=_0x42752f[_0x105dc9(0x3a0)];return _0x4bfe15?_0x1602cc=_0x160b3c[_0x105dc9(0x5d4)]([0x53616c74,0x65645f5f])['concat'](_0x4bfe15)[_0x105dc9(0x294)](_0x55ee02):_0x1602cc=_0x55ee02,_0x1602cc[_0x105dc9(0x197)](_0x43dd26);},'parse':function(_0x24f54c){const _0x47a875=_0x4a3f7c;var _0x2c384e,_0x37aa4b=_0x43dd26['parse'](_0x24f54c),_0x5b24c1=_0x37aa4b[_0x47a875(0x4ab)];return _0x5b24c1[0x0]==0x53616c74&&_0x5b24c1[0x1]==0x65645f5f&&(_0x2c384e=_0x160b3c[_0x47a875(0x5d4)](_0x5b24c1['slice'](0x2,0x4)),_0x5b24c1[_0x47a875(0x49d)](0x0,0x4),_0x37aa4b[_0x47a875(0x455)]-=0x10),_0x138910[_0x47a875(0x5d4)]({'ciphertext':_0x37aa4b,'salt':_0x2c384e});}},_0x571ebb=_0x2a1d0e['SerializableCipher']=_0x48e6c0[_0x4a3f7c(0x271)]({'cfg':_0x48e6c0[_0x4a3f7c(0x271)]({'format':_0x308f07}),'encrypt':function(_0x4bf771,_0x13da4b,_0x15fc4b,_0x4021e2){const _0x10224c=_0x4a3f7c;_0x4021e2=this['cfg'][_0x10224c(0x271)](_0x4021e2);var _0x47d041=_0x4bf771[_0x10224c(0x45f)](_0x15fc4b,_0x4021e2),_0x169214=_0x47d041['finalize'](_0x13da4b),_0x1e560b=_0x47d041[_0x10224c(0x27f)];return _0x138910[_0x10224c(0x5d4)]({'ciphertext':_0x169214,'key':_0x15fc4b,'iv':_0x1e560b['iv'],'algorithm':_0x4bf771,'mode':_0x1e560b[_0x10224c(0x2d6)],'padding':_0x1e560b[_0x10224c(0x552)],'blockSize':_0x4bf771[_0x10224c(0x482)],'formatter':_0x4021e2['format']});},'decrypt':function(_0x4ae2e7,_0x1c5f76,_0xd4c281,_0x1d79dc){const _0x4ff7c5=_0x4a3f7c;_0x1d79dc=this[_0x4ff7c5(0x27f)][_0x4ff7c5(0x271)](_0x1d79dc),_0x1c5f76=this['_parse'](_0x1c5f76,_0x1d79dc[_0x4ff7c5(0x2ee)]);var _0x2c31a8=_0x4ae2e7[_0x4ff7c5(0x5ad)](_0xd4c281,_0x1d79dc)['finalize'](_0x1c5f76[_0x4ff7c5(0x31b)]);return _0x2c31a8;},'_parse':function(_0x255b79,_0x498132){const _0x26a1e8=_0x4a3f7c;return typeof _0x255b79==_0x26a1e8(0x506)?_0x498132['parse'](_0x255b79,this):_0x255b79;}}),_0x2dfec8=_0x4cc068[_0x4a3f7c(0x4ad)]={},_0x4d5f33=_0x2dfec8['OpenSSL']={'execute':function(_0xd66030,_0x17e801,_0x4879c1,_0x3625e7,_0x54b683){const _0x41bd67=_0x4a3f7c;if(_0x3625e7||(_0x3625e7=_0x160b3c[_0x41bd67(0x4a6)](0x40/0x8)),_0x54b683)var _0xd68aca=_0x33f1f9[_0x41bd67(0x5d4)]({'keySize':_0x17e801+_0x4879c1,'hasher':_0x54b683})[_0x41bd67(0x5d1)](_0xd66030,_0x3625e7);else var _0xd68aca=_0x33f1f9['create']({'keySize':_0x17e801+_0x4879c1})[_0x41bd67(0x5d1)](_0xd66030,_0x3625e7);var _0x16d36d=_0x160b3c[_0x41bd67(0x5d4)](_0xd68aca['words'][_0x41bd67(0x247)](_0x17e801),_0x4879c1*0x4);return _0xd68aca[_0x41bd67(0x455)]=_0x17e801*0x4,_0x138910[_0x41bd67(0x5d4)]({'key':_0xd68aca,'iv':_0x16d36d,'salt':_0x3625e7});}},_0x125d28=_0x2a1d0e[_0x4a3f7c(0x1db)]=_0x571ebb['extend']({'cfg':_0x571ebb[_0x4a3f7c(0x27f)]['extend']({'kdf':_0x4d5f33}),'encrypt':function(_0x37ff27,_0x856de,_0x27bcc1,_0x507fca){const _0x33ea72=_0x4a3f7c;_0x507fca=this['cfg'][_0x33ea72(0x271)](_0x507fca);var _0x6a5d19=_0x507fca[_0x33ea72(0x4ad)][_0x33ea72(0x490)](_0x27bcc1,_0x37ff27[_0x33ea72(0x429)],_0x37ff27['ivSize'],_0x507fca[_0x33ea72(0x3a0)],_0x507fca[_0x33ea72(0x359)]);_0x507fca['iv']=_0x6a5d19['iv'];var _0x22f013=_0x571ebb[_0x33ea72(0x60e)][_0x33ea72(0x2ff)](this,_0x37ff27,_0x856de,_0x6a5d19[_0x33ea72(0x206)],_0x507fca);return _0x22f013['mixIn'](_0x6a5d19),_0x22f013;},'decrypt':function(_0x1c8115,_0x357402,_0x1dfe64,_0x2827ef){const _0x5285d5=_0x4a3f7c;_0x2827ef=this[_0x5285d5(0x27f)][_0x5285d5(0x271)](_0x2827ef),_0x357402=this[_0x5285d5(0x24f)](_0x357402,_0x2827ef['format']);var _0x282c67=_0x2827ef[_0x5285d5(0x4ad)][_0x5285d5(0x490)](_0x1dfe64,_0x1c8115[_0x5285d5(0x429)],_0x1c8115[_0x5285d5(0x315)],_0x357402[_0x5285d5(0x3a0)],_0x2827ef['hasher']);_0x2827ef['iv']=_0x282c67['iv'];var _0x429a3f=_0x571ebb[_0x5285d5(0x1e1)][_0x5285d5(0x2ff)](this,_0x1c8115,_0x357402,_0x282c67[_0x5285d5(0x206)],_0x2827ef);return _0x429a3f;}});}();}));}(dt)),dt[_0x35ff05(0x555)];}(function(_0x3156ba,_0x31d6ca){(function(_0x1c3cb3,_0x28f1cf,_0xf119f3){const _0x394b21=_0x474b;_0x3156ba[_0x394b21(0x555)]=_0x28f1cf(ae(),Tn(),Zs(),Rn(),yn());}(J,function(_0xe04271){const _0x437384=_0x474b;return(function(){const _0x29bd7d=_0x474b;var _0x1d39d5=_0xe04271,_0x177d2a=_0x1d39d5[_0x29bd7d(0x258)],_0x4f54a2=_0x177d2a['BlockCipher'],_0x876723=_0x1d39d5['algo'],_0x264a76=[],_0xab39ab=[],_0x301fcf=[],_0x540aff=[],_0x3460e6=[],_0x38264f=[],_0x50539d=[],_0x2fbd02=[],_0x236198=[],_0x167337=[];(function(){for(var _0x3d71d5=[],_0x2bb73d=0x0;_0x2bb73d<0x100;_0x2bb73d++)_0x2bb73d<0x80?_0x3d71d5[_0x2bb73d]=_0x2bb73d<<0x1:_0x3d71d5[_0x2bb73d]=_0x2bb73d<<0x1^0x11b;for(var _0x444e92=0x0,_0x267b08=0x0,_0x2bb73d=0x0;_0x2bb73d<0x100;_0x2bb73d++){var _0x31266f=_0x267b08^_0x267b08<<0x1^_0x267b08<<0x2^_0x267b08<<0x3^_0x267b08<<0x4;_0x31266f=_0x31266f>>>0x8^_0x31266f&0xff^0x63,_0x264a76[_0x444e92]=_0x31266f,_0xab39ab[_0x31266f]=_0x444e92;var _0x3288b5=_0x3d71d5[_0x444e92],_0x1a2fb4=_0x3d71d5[_0x3288b5],_0xe46a36=_0x3d71d5[_0x1a2fb4],_0x136a1d=_0x3d71d5[_0x31266f]*0x101^_0x31266f*0x1010100;_0x301fcf[_0x444e92]=_0x136a1d<<0x18|_0x136a1d>>>0x8,_0x540aff[_0x444e92]=_0x136a1d<<0x10|_0x136a1d>>>0x10,_0x3460e6[_0x444e92]=_0x136a1d<<0x8|_0x136a1d>>>0x18,_0x38264f[_0x444e92]=_0x136a1d;var _0x136a1d=_0xe46a36*0x1010101^_0x1a2fb4*0x10001^_0x3288b5*0x101^_0x444e92*0x1010100;_0x50539d[_0x31266f]=_0x136a1d<<0x18|_0x136a1d>>>0x8,_0x2fbd02[_0x31266f]=_0x136a1d<<0x10|_0x136a1d>>>0x10,_0x236198[_0x31266f]=_0x136a1d<<0x8|_0x136a1d>>>0x18,_0x167337[_0x31266f]=_0x136a1d,_0x444e92?(_0x444e92=_0x3288b5^_0x3d71d5[_0x3d71d5[_0x3d71d5[_0xe46a36^_0x3288b5]]],_0x267b08^=_0x3d71d5[_0x3d71d5[_0x267b08]]):_0x444e92=_0x267b08=0x1;}}());var _0x46af5d=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x35ab6d=_0x876723[_0x29bd7d(0x2bc)]=_0x4f54a2[_0x29bd7d(0x271)]({'_doReset':function(){const _0x26a382=_0x29bd7d;var _0x29909e;if(!(this[_0x26a382(0x58b)]&&this['_keyPriorReset']===this[_0x26a382(0x43d)])){for(var _0x3bde49=this[_0x26a382(0x587)]=this['_key'],_0x12675a=_0x3bde49[_0x26a382(0x4ab)],_0x50c685=_0x3bde49[_0x26a382(0x455)]/0x4,_0x54ce18=this['_nRounds']=_0x50c685+0x6,_0x2f50d6=(_0x54ce18+0x1)*0x4,_0x3add76=this['_keySchedule']=[],_0x41b9b6=0x0;_0x41b9b6<_0x2f50d6;_0x41b9b6++)_0x41b9b6<_0x50c685?_0x3add76[_0x41b9b6]=_0x12675a[_0x41b9b6]:(_0x29909e=_0x3add76[_0x41b9b6-0x1],_0x41b9b6%_0x50c685?_0x50c685>0x6&&_0x41b9b6%_0x50c685==0x4&&(_0x29909e=_0x264a76[_0x29909e>>>0x18]<<0x18|_0x264a76[_0x29909e>>>0x10&0xff]<<0x10|_0x264a76[_0x29909e>>>0x8&0xff]<<0x8|_0x264a76[_0x29909e&0xff]):(_0x29909e=_0x29909e<<0x8|_0x29909e>>>0x18,_0x29909e=_0x264a76[_0x29909e>>>0x18]<<0x18|_0x264a76[_0x29909e>>>0x10&0xff]<<0x10|_0x264a76[_0x29909e>>>0x8&0xff]<<0x8|_0x264a76[_0x29909e&0xff],_0x29909e^=_0x46af5d[_0x41b9b6/_0x50c685|0x0]<<0x18),_0x3add76[_0x41b9b6]=_0x3add76[_0x41b9b6-_0x50c685]^_0x29909e);for(var _0x33bf16=this[_0x26a382(0x3fe)]=[],_0x31bbc3=0x0;_0x31bbc3<_0x2f50d6;_0x31bbc3++){var _0x41b9b6=_0x2f50d6-_0x31bbc3;if(_0x31bbc3%0x4)var _0x29909e=_0x3add76[_0x41b9b6];else var _0x29909e=_0x3add76[_0x41b9b6-0x4];_0x31bbc3<0x4||_0x41b9b6<=0x4?_0x33bf16[_0x31bbc3]=_0x29909e:_0x33bf16[_0x31bbc3]=_0x50539d[_0x264a76[_0x29909e>>>0x18]]^_0x2fbd02[_0x264a76[_0x29909e>>>0x10&0xff]]^_0x236198[_0x264a76[_0x29909e>>>0x8&0xff]]^_0x167337[_0x264a76[_0x29909e&0xff]];}}},'encryptBlock':function(_0x43fd3d,_0xda810e){const _0x5986de=_0x29bd7d;this['_doCryptBlock'](_0x43fd3d,_0xda810e,this[_0x5986de(0x57e)],_0x301fcf,_0x540aff,_0x3460e6,_0x38264f,_0x264a76);},'decryptBlock':function(_0x15169b,_0x319451){const _0x395339=_0x29bd7d;var _0x470146=_0x15169b[_0x319451+0x1];_0x15169b[_0x319451+0x1]=_0x15169b[_0x319451+0x3],_0x15169b[_0x319451+0x3]=_0x470146,this[_0x395339(0x60d)](_0x15169b,_0x319451,this[_0x395339(0x3fe)],_0x50539d,_0x2fbd02,_0x236198,_0x167337,_0xab39ab);var _0x470146=_0x15169b[_0x319451+0x1];_0x15169b[_0x319451+0x1]=_0x15169b[_0x319451+0x3],_0x15169b[_0x319451+0x3]=_0x470146;},'_doCryptBlock':function(_0x1baff3,_0x5b0f22,_0x467519,_0x3caade,_0x16c58e,_0x28929e,_0x14900f,_0x31fff0){for(var _0x197ba1=this['_nRounds'],_0x587814=_0x1baff3[_0x5b0f22]^_0x467519[0x0],_0x5dd35f=_0x1baff3[_0x5b0f22+0x1]^_0x467519[0x1],_0x155091=_0x1baff3[_0x5b0f22+0x2]^_0x467519[0x2],_0x4ee37e=_0x1baff3[_0x5b0f22+0x3]^_0x467519[0x3],_0x413a0f=0x4,_0x59d527=0x1;_0x59d527<_0x197ba1;_0x59d527++){var _0x353840=_0x3caade[_0x587814>>>0x18]^_0x16c58e[_0x5dd35f>>>0x10&0xff]^_0x28929e[_0x155091>>>0x8&0xff]^_0x14900f[_0x4ee37e&0xff]^_0x467519[_0x413a0f++],_0x261300=_0x3caade[_0x5dd35f>>>0x18]^_0x16c58e[_0x155091>>>0x10&0xff]^_0x28929e[_0x4ee37e>>>0x8&0xff]^_0x14900f[_0x587814&0xff]^_0x467519[_0x413a0f++],_0x541fa2=_0x3caade[_0x155091>>>0x18]^_0x16c58e[_0x4ee37e>>>0x10&0xff]^_0x28929e[_0x587814>>>0x8&0xff]^_0x14900f[_0x5dd35f&0xff]^_0x467519[_0x413a0f++],_0x2fc76e=_0x3caade[_0x4ee37e>>>0x18]^_0x16c58e[_0x587814>>>0x10&0xff]^_0x28929e[_0x5dd35f>>>0x8&0xff]^_0x14900f[_0x155091&0xff]^_0x467519[_0x413a0f++];_0x587814=_0x353840,_0x5dd35f=_0x261300,_0x155091=_0x541fa2,_0x4ee37e=_0x2fc76e;}var _0x353840=(_0x31fff0[_0x587814>>>0x18]<<0x18|_0x31fff0[_0x5dd35f>>>0x10&0xff]<<0x10|_0x31fff0[_0x155091>>>0x8&0xff]<<0x8|_0x31fff0[_0x4ee37e&0xff])^_0x467519[_0x413a0f++],_0x261300=(_0x31fff0[_0x5dd35f>>>0x18]<<0x18|_0x31fff0[_0x155091>>>0x10&0xff]<<0x10|_0x31fff0[_0x4ee37e>>>0x8&0xff]<<0x8|_0x31fff0[_0x587814&0xff])^_0x467519[_0x413a0f++],_0x541fa2=(_0x31fff0[_0x155091>>>0x18]<<0x18|_0x31fff0[_0x4ee37e>>>0x10&0xff]<<0x10|_0x31fff0[_0x587814>>>0x8&0xff]<<0x8|_0x31fff0[_0x5dd35f&0xff])^_0x467519[_0x413a0f++],_0x2fc76e=(_0x31fff0[_0x4ee37e>>>0x18]<<0x18|_0x31fff0[_0x587814>>>0x10&0xff]<<0x10|_0x31fff0[_0x5dd35f>>>0x8&0xff]<<0x8|_0x31fff0[_0x155091&0xff])^_0x467519[_0x413a0f++];_0x1baff3[_0x5b0f22]=_0x353840,_0x1baff3[_0x5b0f22+0x1]=_0x261300,_0x1baff3[_0x5b0f22+0x2]=_0x541fa2,_0x1baff3[_0x5b0f22+0x3]=_0x2fc76e;},'keySize':0x100/0x20});_0x1d39d5[_0x29bd7d(0x2bc)]=_0x4f54a2['_createHelper'](_0x35ab6d);}()),_0xe04271[_0x437384(0x2bc)];}));}(bn));var tr=bn[_0x414e95(0x555)];const nr=Le(tr);var ir=Tn();const zt=Le(ir);var On={'exports':{}};(function(_0x54680c,_0x2936aa){(function(_0x17c25d,_0x3fad4d){_0x54680c['exports']=_0x3fad4d(ae());}(J,function(_0x66751e){const _0x530403=_0x474b;return _0x66751e[_0x530403(0x4b3)][_0x530403(0x345)];}));}(On));var sr=On['exports'];const rr=Le(sr);var Dn={'exports':{}};(function(_0x2b3624,_0x43f120){(function(_0x41ba3d,_0xe5514a){const _0x2cd77d=_0x474b;_0x2b3624[_0x2cd77d(0x555)]=_0xe5514a(ae());}(J,function(_0x1c4ba9){const _0x30a594=_0x474b;return(function(){const _0x12dcdb=_0x474b;if(typeof ArrayBuffer=='function'){var _0x5df0c0=_0x1c4ba9,_0x5a3cb5=_0x5df0c0['lib'],_0x53cfb8=_0x5a3cb5[_0x12dcdb(0x366)],_0x4d821e=_0x53cfb8['init'],_0x1da06f=_0x53cfb8[_0x12dcdb(0x4ea)]=function(_0x42967a){const _0x48471d=_0x12dcdb;if(_0x42967a instanceof ArrayBuffer&&(_0x42967a=new Uint8Array(_0x42967a)),(_0x42967a instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x42967a instanceof Uint8ClampedArray||_0x42967a instanceof Int16Array||_0x42967a instanceof Uint16Array||_0x42967a instanceof Int32Array||_0x42967a instanceof Uint32Array||_0x42967a instanceof Float32Array||_0x42967a instanceof Float64Array)&&(_0x42967a=new Uint8Array(_0x42967a[_0x48471d(0x48d)],_0x42967a['byteOffset'],_0x42967a[_0x48471d(0x334)])),_0x42967a instanceof Uint8Array){for(var _0x2b0b0a=_0x42967a['byteLength'],_0x317958=[],_0x32cd2c=0x0;_0x32cd2c<_0x2b0b0a;_0x32cd2c++)_0x317958[_0x32cd2c>>>0x2]|=_0x42967a[_0x32cd2c]<<0x18-_0x32cd2c%0x4*0x8;_0x4d821e['call'](this,_0x317958,_0x2b0b0a);}else _0x4d821e[_0x48471d(0x233)](this,arguments);};_0x1da06f[_0x12dcdb(0x200)]=_0x53cfb8;}}()),_0x1c4ba9[_0x30a594(0x258)][_0x30a594(0x366)];}));}(Dn));var or=Dn[_0x414e95(0x555)];const ar=Le(or);var wn={'exports':{}};(function(_0xf783e5,_0x4ca8d7){(function(_0x1e8f72,_0x563ecc,_0x3880e2){const _0x451d9a=_0x474b;_0xf783e5[_0x451d9a(0x555)]=_0x563ecc(ae(),yn());}(J,function(_0x562097){const _0x478e93=_0x474b;return _0x562097[_0x478e93(0x384)][_0x478e93(0x18b)]={'pad':function(){},'unpad':function(){}},_0x562097[_0x478e93(0x384)]['NoPadding'];}));}(wn));var cr=wn['exports'];const lr=Le(cr);function hr(_0x52728c,_0x5934c3){const _0x2752b2=_0x414e95,_0x4a0190=_0x5934c3-_0x52728c[_0x2752b2(0x532)]%_0x5934c3,_0x5e502b=String['fromCharCode'](_0x4a0190)[_0x2752b2(0x493)](_0x4a0190);return _0x52728c+_0x5e502b;}function _r(_0x1630f4,_0x43b422){const _0x547e98=_0x414e95,_0x48ab8d=ar[_0x547e98(0x4a6)](0x10),_0xb3ce8b=hr(_0x1630f4,0x10),_0x396f76=nr[_0x547e98(0x60e)](rr[_0x547e98(0x3f5)](_0xb3ce8b),zt[_0x547e98(0x3f5)](_0x43b422),{'iv':_0x48ab8d,'padding':lr});return _0x48ab8d[_0x547e98(0x294)](_0x396f76['ciphertext'])[_0x547e98(0x197)](zt);}function ur(){const _0x39f07a=_0x414e95,_0x4040c1=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)['__Key__'];if(_0x4040c1){const _0x45ae4f={'time':Math['floor'](Date['now']()/0x3e8),'domain':location[_0x39f07a(0x563)]};return _r(JSON[_0x39f07a(0x21f)](_0x45ae4f),_0x4040c1);}}var dr=Object[_0x414e95(0x47c)],fr=Object[_0x414e95(0x51f)],vr=(_0x25a4e1,_0xb871,_0x44fd68,_0x452033)=>{const _0x3edd74=_0x414e95;for(var _0x5781a7=_0x452033>0x1?void 0x0:_0x452033?fr(_0xb871,_0x44fd68):_0xb871,_0xd2c800=_0x25a4e1[_0x3edd74(0x532)]-0x1,_0x4c8fcb;_0xd2c800>=0x0;_0xd2c800--)(_0x4c8fcb=_0x25a4e1[_0xd2c800])&&(_0x5781a7=(_0x452033?_0x4c8fcb(_0xb871,_0x44fd68,_0x5781a7):_0x4c8fcb(_0x5781a7))||_0x5781a7);return _0x452033&&_0x5781a7&&dr(_0xb871,_0x44fd68,_0x5781a7),_0x5781a7;},mr=(_0x2bca32,_0x22e7ee)=>(_0x27e734,_0x123523)=>_0x22e7ee(_0x27e734,_0x123523,_0x2bca32);let Ye=class{constructor(_0x15197b){const _0x3fa414=_0x414e95;this[_0x3fa414(0x23e)]=_0x15197b,this[_0x3fa414(0x3d5)]();}[_0x414e95(0x3d5)](){const _0x2919a7=_0x414e95;this[_0x2919a7(0x23e)][_0x2919a7(0x61c)]({'interceptor':(_0x15e36f,_0x30edf5)=>{const _0x2549e2=_0x2919a7,_0x165a45=_0x15e36f[_0x2549e2(0x431)],_0xf1bde6=ur();return _0xf1bde6&&_0x165a45[_0x2549e2(0x5c7)](_0x2549e2(0x194),_0xf1bde6),_0x30edf5(_0x15e36f);}});}};Ye=vr([mr(0x0,a[_0x414e95(0x4dd)](Q['HTTPService']))],Ye);var Sr=Object['defineProperty'],pr=Object[_0x414e95(0x51f)],gr=(_0x2c8983,_0x1c8c87,_0x545c01,_0x18a8a2)=>{const _0x101725=_0x414e95;for(var _0x5e82f1=_0x18a8a2>0x1?void 0x0:_0x18a8a2?pr(_0x1c8c87,_0x545c01):_0x1c8c87,_0x5a0d77=_0x2c8983[_0x101725(0x532)]-0x1,_0x4d3a80;_0x5a0d77>=0x0;_0x5a0d77--)(_0x4d3a80=_0x2c8983[_0x5a0d77])&&(_0x5e82f1=(_0x18a8a2?_0x4d3a80(_0x1c8c87,_0x545c01,_0x5e82f1):_0x4d3a80(_0x5e82f1))||_0x5e82f1);return _0x18a8a2&&_0x5e82f1&&Sr(_0x1c8c87,_0x545c01,_0x5e82f1),_0x5e82f1;},ft=(_0x5e8973,_0x1bb732)=>(_0x3e90e1,_0x1261bb)=>_0x1bb732(_0x3e90e1,_0x1261bb,_0x5e8973);const Ir=[_0x414e95(0x1d0),_0x414e95(0x42d),_0x414e95(0x19e),_0x414e95(0x191),_0x414e95(0x4bd)],Cr=0x5*0x400*0x400,Er=_0x414e95(0x57d),br=_0x414e95(0x3cd),Tr=_0x414e95(0x4b6),Rr=_0x414e95(0x2d8);exports[_0x414e95(0x367)]=class{constructor(_0x325f12,_0x98edf3,_0x2ef2d6){const _0x3edc06=_0x414e95;I(this,_0x3edc06(0x1de),0x0),I(this,_0x3edc06(0x500),new A[(_0x3edc06(0x37e))]()),I(this,'change$',this['_change$']),I(this,_0x3edc06(0x427),new Map()),(this[_0x3edc06(0x23e)]=_0x325f12,this[_0x3edc06(0x514)]=_0x98edf3,this[_0x3edc06(0x588)]=_0x2ef2d6);}[_0x414e95(0x289)](_0x457fea){const _0x17b1a6=_0x414e95;this[_0x17b1a6(0x1de)]=_0x457fea,this[_0x17b1a6(0x500)][_0x17b1a6(0x370)](_0x457fea);}[_0x414e95(0x304)](_0x82e727,_0x766897){const _0x14cd32=_0x414e95;if(_0x766897===ie[_0x14cd32(0x20c)][_0x14cd32(0x4e2)]){const _0x56fa5e=new Image();return _0x56fa5e[_0x14cd32(0x201)]=_0x82e727,_0x56fa5e;}return this[_0x14cd32(0x427)]['get'](_0x82e727);}['addImageSourceCache'](_0x1424aa,_0x479b22,_0xc2cea){const _0x3cf5ac=_0x414e95;_0x479b22===ie[_0x3cf5ac(0x20c)][_0x3cf5ac(0x4e2)]||_0xc2cea==null||this[_0x3cf5ac(0x427)]['set'](_0x1424aa,_0xc2cea);}async[_0x414e95(0x61d)](_0x362e78){const _0x211628=_0x414e95;try{const _0x1bf9a7=this[_0x211628(0x5ff)](this[_0x211628(0x4bf)](),''+_0x362e78),_0x378e82=(await this[_0x211628(0x23e)]['get'](_0x1bf9a7))[_0x211628(0x55e)];if(_0x378e82[_0x211628(0x456)]&&_0x378e82['error'][_0x211628(0x3d0)]===an['OK']){const _0x5a56e8=new URL(_0x378e82[_0x211628(0x3db)],this[_0x211628(0x44d)]())[_0x211628(0x197)]();return Promise[_0x211628(0x43a)](_0x5a56e8);}return Promise['reject'](_0x378e82[_0x211628(0x456)]);}catch(_0x2982e2){return Promise['reject'](_0x2982e2);}}async[_0x414e95(0x513)](_0x209f70){const _0x242810=_0x414e95;let _0x489748='';if(!Ir['includes'](_0x209f70['type']))return this[_0x242810(0x3f7)](),Promise[_0x242810(0x423)](new Error(ie['ImageUploadStatusType'][_0x242810(0x435)]));if(_0x209f70[_0x242810(0x5d6)]>Cr)return this['_decreaseWaiting'](),Promise[_0x242810(0x423)](new Error(ie['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{const _0x354712=new FormData();_0x354712['append'](_0x242810(0x4aa),_0x209f70);const _0x234b85=this[_0x242810(0x588)][_0x242810(0x574)](),_0xf3f9ef=_0x234b85==null?void 0x0:_0x234b85[_0x242810(0x19f)]();if(!_0xf3f9ef)throw new Error('unitId\x20is\x20not\x20found');const _0x1e4596=this['_getUploadFileURL']()+'?size='+_0x209f70['size'][_0x242810(0x197)]()+'&source='+cn[_0x242810(0x55a)]+'&assign='+encodeURIComponent(_0xf3f9ef),_0x18f67=await(await fetch(_0x1e4596,{'method':_0x242810(0x251),'body':_0x354712}))['json']();if(typeof _0x18f67[_0x242810(0x287)]!=_0x242810(0x506))return this[_0x242810(0x3f7)](),Promise[_0x242810(0x423)](new Error(ie[_0x242810(0x3d7)][_0x242810(0x29b)]));_0x489748=_0x18f67['FileId'];}catch{return this[_0x242810(0x3f7)](),Promise[_0x242810(0x423)](new Error(ie[_0x242810(0x3d7)]['ERROR_IMAGE']));}return new Promise((_0x3f0a14,_0xdda637)=>{const _0x4d27bb=_0x242810,_0xc3a86f=new FileReader();_0xc3a86f[_0x4d27bb(0x5df)](_0x209f70),_0xc3a86f[_0x4d27bb(0x288)]=_0x1afec5=>{const _0x31e5bd=_0x4d27bb;var _0x3ffdfc;const _0x3f875d=(_0x3ffdfc=_0x1afec5[_0x31e5bd(0x32a)])==null?void 0x0:_0x3ffdfc[_0x31e5bd(0x3a9)];if(_0x3f875d==null){this[_0x31e5bd(0x3f7)](),_0xdda637(new Error(ie[_0x31e5bd(0x3d7)]['ERROR_IMAGE']));return;}const _0x3986dd=a[_0x31e5bd(0x608)][_0x31e5bd(0x4f1)](0x6);_0x3f0a14({'imageId':_0x3986dd,'imageSourceType':ie[_0x31e5bd(0x20c)][_0x31e5bd(0x5ea)],'source':_0x489748,'base64Cache':_0x3f875d,'status':ie['ImageUploadStatusType'][_0x31e5bd(0x295)]}),this[_0x31e5bd(0x3f7)]();};});}[_0x414e95(0x414)](){const _0x50373e=_0x414e95;var _0x2c49dd,_0x218fd4;const _0x36e1f0=this[_0x50373e(0x514)][_0x50373e(0x2fa)](Er),_0x35e40e=this['_configService'][_0x50373e(0x2fa)](ne);return(_0x218fd4=(_0x2c49dd=_0x35e40e==null?void 0x0:_0x35e40e[_0x50373e(0x292)])!=null?_0x2c49dd:_0x36e1f0)!=null?_0x218fd4:br;}[_0x414e95(0x4bf)](){const _0x2dc568=_0x414e95;var _0xcdd51a,_0x34ead4;const _0x4a8220=this[_0x2dc568(0x514)][_0x2dc568(0x2fa)](Tr),_0x437aee=this[_0x2dc568(0x514)][_0x2dc568(0x2fa)](ne);return(_0x34ead4=(_0xcdd51a=_0x437aee==null?void 0x0:_0x437aee['signUrlServerUrl'])!=null?_0xcdd51a:_0x4a8220)!=null?_0x34ead4:Rr;}[_0x414e95(0x44d)](){const _0x371569=_0x414e95;var _0x40fbe5;const _0x3e6eec=this['_configService'][_0x371569(0x2fa)](ne);return(_0x40fbe5=_0x3e6eec==null?void 0x0:_0x3e6eec[_0x371569(0x2eb)])!=null?_0x40fbe5:location[_0x371569(0x248)];}[_0x414e95(0x5ff)](_0x13cb8e,_0x2611e2){const _0x26150c=_0x414e95;return _0x13cb8e[_0x26150c(0x577)]('{fileID}',_0x2611e2);}[_0x414e95(0x3f7)](){const _0x22672a=_0x414e95;this[_0x22672a(0x1de)]-=0x1,this[_0x22672a(0x500)][_0x22672a(0x370)](this[_0x22672a(0x1de)]);}},exports[_0x414e95(0x367)]=gr([ft(0x0,a[_0x414e95(0x4dd)](Q['HTTPService'])),ft(0x1,a[_0x414e95(0x556)]),ft(0x2,a['Inject'](a[_0x414e95(0x1df)]))],exports['ImageIoService']);var yr=Object['defineProperty'],Or=Object[_0x414e95(0x51f)],Dr=(_0x1a3446,_0x5f168d,_0x283e4a,_0x4de52f)=>{const _0x20b1e8=_0x414e95;for(var _0x1d7a03=_0x4de52f>0x1?void 0x0:_0x4de52f?Or(_0x5f168d,_0x283e4a):_0x5f168d,_0x592285=_0x1a3446[_0x20b1e8(0x532)]-0x1,_0x2bceb4;_0x592285>=0x0;_0x592285--)(_0x2bceb4=_0x1a3446[_0x592285])&&(_0x1d7a03=(_0x4de52f?_0x2bceb4(_0x5f168d,_0x283e4a,_0x1d7a03):_0x2bceb4(_0x1d7a03))||_0x1d7a03);return _0x4de52f&&_0x1d7a03&&yr(_0x5f168d,_0x283e4a,_0x1d7a03),_0x1d7a03;},Me=(_0x548b84,_0x22f3dd)=>(_0x557fd2,_0x25e652)=>_0x22f3dd(_0x557fd2,_0x25e652,_0x548b84);let Ke=class extends a[_0x414e95(0x58a)]{constructor(_0x40f319,_0x45b815,_0x4897b8,_0x36b0de,_0x49b940){const _0x22c9ba=_0x414e95;super(),this[_0x22c9ba(0x4f3)]=_0x40f319,this['_univerInstanceService']=_0x45b815,this['_permissionService']=_0x4897b8,this[_0x22c9ba(0x2f0)]=_0x36b0de,this[_0x22c9ba(0x1ee)]=_0x49b940,this['_initUnitPermissionChange'](),this[_0x22c9ba(0x31c)]();}[_0x414e95(0x31c)](){const _0x13635c=_0x414e95,_0x4e1f5b=async _0x5ece15=>{const _0xafa221=_0x474b;(await this[_0xafa221(0x2f0)][_0xafa221(0x350)](_0x5ece15))['event$'][_0xafa221(0x5b9)](V[_0xafa221(0x5f2)](_0x1e5a53=>_0x1e5a53[_0xafa221(0x3d3)]===S[_0xafa221(0x56a)][_0xafa221(0x2c6)]),V[_0xafa221(0x566)](this[_0xafa221(0x2d0)]))[_0xafa221(0x2ac)](_0x5740f5=>{const _0x18aee8=_0xafa221,_0x1cad6=_0x5740f5,{reason:_0x367172}=_0x1cad6[_0x18aee8(0x396)];this['_injector'][_0x18aee8(0x4e0)](te[_0x18aee8(0x1ac)])['show']({'type':pe[_0x18aee8(0x511)][_0x18aee8(0x4f7)],'content':this[_0x18aee8(0x1ee)]['t']('collaboration.closeRoom')+'('+_0x367172+')'}),this['_permissionService'][_0x18aee8(0x36d)](new k[(_0x18aee8(0x28c))](_0x5ece15)['id'],!0x1),this[_0x18aee8(0x2f0)][_0x18aee8(0x173)](_0x5ece15);});};A['merge'](this['_univerInstanceService'][_0x13635c(0x390)](a[_0x13635c(0x3ef)][_0x13635c(0x353)]),this[_0x13635c(0x588)][_0x13635c(0x390)](a[_0x13635c(0x3ef)]['UNIVER_DOC']))[_0x13635c(0x5b9)](V['map'](_0x440751=>_0x440751['getUnitId']()),V[_0x13635c(0x5f2)](_0x1745bc=>!a[_0x13635c(0x2e3)](_0x1745bc)),V[_0x13635c(0x566)](this[_0x13635c(0x2d0)]))[_0x13635c(0x2ac)](_0x268ef2=>{_0x4e1f5b(_0x268ef2);});}['_initUnitPermissionChange'](){const _0x4d0791=_0x414e95,_0x2990e3=async _0x578c6c=>{const _0x114dfa=_0x474b;(await this[_0x114dfa(0x2f0)]['requireSession'](_0x578c6c))['event$'][_0x114dfa(0x5b9)](V[_0x114dfa(0x5f2)](_0x1ff8a1=>_0x1ff8a1['eventID']===S[_0x114dfa(0x56a)]['UPDATE_PERMISSION_OBJ']),V[_0x114dfa(0x566)](this[_0x114dfa(0x2d0)]))[_0x114dfa(0x2ac)](_0x4c8fa5=>{const _0x2201bc=_0x114dfa,_0x42bfd6=_0x4c8fa5,{objectId:_0xd0a846}=_0x42bfd6[_0x2201bc(0x396)],_0x487e87=this[_0x2201bc(0x4f3)][_0x2201bc(0x4e0)](Te['SheetPermissionInitController']);_0xd0a846===_0x578c6c?_0x487e87[_0x2201bc(0x406)](_0x578c6c):_0x487e87[_0x2201bc(0x477)](_0x578c6c,_0xd0a846);});};A[_0x4d0791(0x49c)](this['_univerInstanceService'][_0x4d0791(0x390)](a[_0x4d0791(0x3ef)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x4d0791(0x390)](a['UniverInstanceType'][_0x4d0791(0x446)]))[_0x4d0791(0x5b9)](V['map'](_0x5a1ad2=>_0x5a1ad2[_0x4d0791(0x19f)]()),V[_0x4d0791(0x5f2)](_0x2c7ce6=>!a['isInternalEditorID'](_0x2c7ce6)),V[_0x4d0791(0x566)](this['dispose$']))[_0x4d0791(0x2ac)](_0x128ea2=>{_0x2990e3(_0x128ea2);});}};Ke=Dr([Me(0x0,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),Me(0x1,a[_0x414e95(0x1df)]),Me(0x2,a['IPermissionService']),Me(0x3,a[_0x414e95(0x4dd)](exports[_0x414e95(0x280)])),Me(0x4,a[_0x414e95(0x4dd)](a[_0x414e95(0x266)]))],Ke);var wr=Object[_0x414e95(0x47c)],Pr=Object[_0x414e95(0x51f)],Ur=(_0x11ad64,_0x29e15b,_0x4c5d62,_0x35f0c3)=>{const _0x26faa9=_0x414e95;for(var _0x19fa5a=_0x35f0c3>0x1?void 0x0:_0x35f0c3?Pr(_0x29e15b,_0x4c5d62):_0x29e15b,_0x3a6dbb=_0x11ad64[_0x26faa9(0x532)]-0x1,_0x22c730;_0x3a6dbb>=0x0;_0x3a6dbb--)(_0x22c730=_0x11ad64[_0x3a6dbb])&&(_0x19fa5a=(_0x35f0c3?_0x22c730(_0x29e15b,_0x4c5d62,_0x19fa5a):_0x22c730(_0x19fa5a))||_0x19fa5a);return _0x35f0c3&&_0x19fa5a&&wr(_0x29e15b,_0x4c5d62,_0x19fa5a),_0x19fa5a;},Xt=(_0x397e3e,_0x178155)=>(_0x3fee5e,_0x36a7c5)=>_0x178155(_0x3fee5e,_0x36a7c5,_0x397e3e);exports[_0x414e95(0x369)]=class{constructor(_0x2474a0,_0x15657f){const _0x40b0b0=_0x414e95;this[_0x40b0b0(0x514)]=_0x2474a0,this[_0x40b0b0(0x23e)]=_0x15657f;}async[_0x414e95(0x3eb)](_0x437933,_0x3f08e1){const _0x40d3bd=_0x414e95;var _0x70f0c1;const {unitID:_0x1f3692,type:_0x26f06a,revision:_0x20ccf8=0x0}=_0x3f08e1,_0x2d45a3=this['_getSnapshotAPIPrefix']()+'/'+_0x26f06a+_0x40d3bd(0x1a8)+_0x1f3692+_0x40d3bd(0x17d)+_0x20ccf8,_0x196e33=(await this[_0x40d3bd(0x23e)]['get'](_0x2d45a3))[_0x40d3bd(0x55e)],_0x4aff92=(_0x70f0c1=_0x196e33[_0x40d3bd(0x5aa)])==null?void 0x0:_0x70f0c1[_0x40d3bd(0x225)];if(_0x4aff92){const _0x35498c=_0x4aff92==null?void 0x0:_0x4aff92['originalMeta'],_0x439f52=S[_0x40d3bd(0x3ff)][_0x40d3bd(0x5e4)](S[_0x40d3bd(0x3c3)](_0x35498c));_0x4aff92[_0x40d3bd(0x2ef)]=_0x439f52,Object[_0x40d3bd(0x5cd)](_0x4aff92[_0x40d3bd(0x570)])[_0x40d3bd(0x36c)](([,_0x3b5d48])=>{const _0x9d6ac3=_0x40d3bd,_0x4304ee=_0x3b5d48['originalMeta'],_0x3b2704=S[_0x9d6ac3(0x3ff)][_0x9d6ac3(0x5e4)](S[_0x9d6ac3(0x3c3)](_0x4304ee));_0x3b5d48[_0x9d6ac3(0x2ef)]=_0x3b2704;});}return _0x196e33;}async[_0x414e95(0x257)](_0x4aeb36,_0x155791){const _0x399cb7=_0x414e95,{unitID:_0x4c5229,type:_0x259b3f,blockID:_0xd8740c}=_0x155791,_0x51afbb=this[_0x399cb7(0x34d)]()+'/'+_0x259b3f+'/unit/'+_0x4c5229+'/block/'+_0xd8740c;return(await this[_0x399cb7(0x23e)][_0x399cb7(0x4e0)](_0x51afbb))[_0x399cb7(0x55e)];}async['getDeserializedSheetBlock'](_0x1831ae,_0x1d1804){const _0x4c02ca=_0x414e95,{unitID:_0x17c206,type:_0x2aa266,blockID:_0x3cb76e}=_0x1d1804,_0x549f54=this[_0x4c02ca(0x34d)]()+_0x4c02ca(0x1c0)+_0x2aa266+'/unit/'+_0x17c206+_0x4c02ca(0x1c0)+_0x3cb76e;return(await this[_0x4c02ca(0x23e)][_0x4c02ca(0x4e0)](_0x549f54))[_0x4c02ca(0x55e)];}async[_0x414e95(0x51e)](_0x365c8a,_0x258363){const _0x5f19ce=_0x414e95,{unitID:_0x1a8dcc,type:_0x2282e7,from:_0x421b65,to:_0x5b4fc9}=_0x258363,_0x42f3f1=this[_0x5f19ce(0x34d)]()+'/'+_0x2282e7+_0x5f19ce(0x1a8)+_0x1a8dcc+_0x5f19ce(0x3c9)+_0x421b65+'&to='+_0x5b4fc9;return(await this[_0x5f19ce(0x23e)][_0x5f19ce(0x4e0)](_0x42f3f1))[_0x5f19ce(0x55e)];}[_0x414e95(0x169)](){const _0x5290c9=_0x414e95;var _0x50deb0;return(_0x50deb0=this[_0x5290c9(0x514)][_0x5290c9(0x2fa)](Zt))!=null?_0x50deb0:this[_0x5290c9(0x34d)]();}[_0x414e95(0x34d)](){const _0x460fac=_0x414e95;var _0x5b1659,_0x5be802;const _0x185487=this[_0x460fac(0x514)]['getConfig'](Jt),_0x50f583=this[_0x460fac(0x514)]['getConfig'](ne);return(_0x5be802=(_0x5b1659=_0x50f583==null?void 0x0:_0x50f583[_0x460fac(0x3cb)])!=null?_0x5b1659:_0x185487)!=null?_0x5be802:xn;}async[_0x414e95(0x37c)](_0x4c2a8c,_0x5853ff){const _0x330810=_0x414e95,_0x62a5b=_0x330810(0x1a1)+_0x5853ff[_0x330810(0x284)]+_0x330810(0x1a8)+_0x5853ff['unitID']+_0x330810(0x46e);return(await this['_httpService'][_0x330810(0x4e0)](_0x62a5b,{'params':{'resourceId':JSON[_0x330810(0x21f)](_0x5853ff[_0x330810(0x4d5)])}}))['body'];}[_0x414e95(0x422)](){const _0x296080=_0x414e95;throw new Error(_0x296080(0x47d));}[_0x414e95(0x461)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x414e95(0x58f)](){const _0x345faf=_0x414e95;throw new Error(_0x345faf(0x47d));}['copyFileMeta'](){const _0x3d5fb6=_0x414e95;throw new Error(_0x3d5fb6(0x47d));}[_0x414e95(0x4c9)](){const _0x348ab0=_0x414e95;throw new Error(_0x348ab0(0x47d));}},exports[_0x414e95(0x369)]=Ur([Xt(0x0,a[_0x414e95(0x556)]),Xt(0x1,a[_0x414e95(0x4dd)](Q[_0x414e95(0x3da)]))],exports[_0x414e95(0x369)]);var Mr=Object[_0x414e95(0x47c)],Ar=Object[_0x414e95(0x51f)],Nr=(_0x9c2e1,_0x388e87,_0x5a2a20,_0x3d9034)=>{const _0x5944fe=_0x414e95;for(var _0x462100=_0x3d9034>0x1?void 0x0:_0x3d9034?Ar(_0x388e87,_0x5a2a20):_0x388e87,_0x29111b=_0x9c2e1[_0x5944fe(0x532)]-0x1,_0x266b29;_0x29111b>=0x0;_0x29111b--)(_0x266b29=_0x9c2e1[_0x29111b])&&(_0x462100=(_0x3d9034?_0x266b29(_0x388e87,_0x5a2a20,_0x462100):_0x266b29(_0x462100))||_0x462100);return _0x3d9034&&_0x462100&&Mr(_0x388e87,_0x5a2a20,_0x462100),_0x462100;},Ae=(_0x53bed7,_0x42f116)=>(_0x1f0c38,_0x26fddc)=>_0x42f116(_0x1f0c38,_0x26fddc,_0x53bed7);let gt=class extends a[_0x414e95(0x2b1)]{constructor(_0xc838c6,_0x2058c5,_0x5eafe6,_0x4c023f,_0x168837){const _0x520785=_0x414e95;super(_0xc838c6,_0x2058c5,_0x5eafe6),this[_0x520785(0x407)]=_0x4c023f,this[_0x520785(0x1ec)]=_0x168837;}[_0x414e95(0x474)](_0x3f5e31,_0x1d4c0a){const _0x3d422c=_0x414e95,_0x339476=this['_getUndoStack'](_0x3f5e31);if(_0x339476)try{const _0x542330=this[_0x3d422c(0x470)](_0x339476,_0x1d4c0a);this[_0x3d422c(0x18d)](_0x3f5e31,_0x542330);}catch(_0x3a2b6a){this['_logService'][_0x3d422c(0x456)](_0x3d422c(0x45e),_0x3a2b6a),this[_0x3d422c(0x28d)](_0x3f5e31);}const _0x109975=this['_getRedoStack'](_0x3f5e31);if(_0x109975)try{const _0x52edaf=this['_transformStack'](_0x109975,_0x1d4c0a);this[_0x3d422c(0x3b0)](_0x3f5e31,_0x52edaf);}catch(_0x48f6fa){this[_0x3d422c(0x1ec)][_0x3d422c(0x456)](_0x48f6fa),this[_0x3d422c(0x33c)](_0x3f5e31);}}[_0x414e95(0x28d)](_0x22f6a4){const _0x52a0bd=_0x414e95,_0x2c33ab=this[_0x52a0bd(0x286)](_0x22f6a4);_0x2c33ab&&(_0x2c33ab[_0x52a0bd(0x532)]=0x0,this[_0x52a0bd(0x4ed)]());}[_0x414e95(0x33c)](_0xbff6de){const _0x320a92=_0x414e95,_0x1b836d=this[_0x320a92(0x259)](_0xbff6de);_0x1b836d&&(_0x1b836d[_0x320a92(0x532)]=0x0,this['_updateStatus']());}[_0x414e95(0x18d)](_0x2a5d32,_0x3750cc){const _0x2111e5=_0x414e95;this[_0x2111e5(0x181)][_0x2111e5(0x5c7)](_0x2a5d32,_0x3750cc),this[_0x2111e5(0x4ed)]();}['_substituteRedoStack'](_0x2d9336,_0x3cea98){const _0x5a1135=_0x414e95;this[_0x5a1135(0x4c7)][_0x5a1135(0x5c7)](_0x2d9336,_0x3cea98),this[_0x5a1135(0x4ed)]();}['_transformStack'](_0x1fd0e1,_0x42a0a2){const _0x412e94=_0x414e95,_0x4c8f20=[];let _0x4c6db1=_0x42a0a2,_0x3bb537=_0x42a0a2;for(let _0x3cd037=_0x1fd0e1[_0x412e94(0x532)]-0x1;_0x3cd037>=0x0;_0x3cd037--){const {unitID:_0x21da74,undoMutations:_0x589be3,redoMutations:_0x173507}=_0x1fd0e1[_0x3cd037],_0x5d6e44=this[_0x412e94(0x407)]['transformMutationsWithChangeset'](_0x4c6db1,_0x589be3),_0x213b85=this[_0x412e94(0x407)][_0x412e94(0x4a7)](_0x3bb537,_0x173507);if(S['isTransformMutationsWithChangesetFailure'](_0x5d6e44)||S[_0x412e94(0x4d3)](_0x213b85)){this[_0x412e94(0x1ec)][_0x412e94(0x456)](_0x412e94(0x45e),_0x412e94(0x17f),_0x5d6e44,_0x213b85);break;}_0x4c6db1=_0x5d6e44[_0x412e94(0x374)],_0x3bb537=_0x213b85['c1Prime'],_0x4c8f20[_0x412e94(0x375)]({'unitID':_0x21da74,'undoMutations':_0x5d6e44['m2Prime'],'redoMutations':_0x213b85[_0x412e94(0x400)]});}return _0x4c8f20[_0x412e94(0x277)]();}};function _0x2cf6(){const _0x578794=['_getScale','JSONX','getUnitType','_updateLocalCursor','_loadSheet','Hex','equals','Decryptor','_clearCollaborationTimeoutTimer','NodePositionConvertToCursor','bottom','UNIVER_SLIDE','onRemoteChangeset','[CollaborationEntity]','has','HMAC','synced','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','RegularPolygon','APPLY_NON_SEQUENTIAL_REVISION','ISnapshotServerService','symbol','UNAUTHENTICATED','padding','disableLocalCache','[SyncedState]:\x20received\x20acknowledgement.','exports','IConfigService','_localStorageService','146620YAhEUq','setShowComponents','UnitEmbedded','_cursorInfo$','removeParam','children','body','url(#on-line-single_clip0_910_349)','auth.needGotoLoginAlert','#FFF','show','hostname','IAuthzIoService','getParam','takeUntil','skeleton','_transformHistoryAndStateStack','session.collaboration-timeout','CollaborationEvent','SYNCED','max','UNIVER_UNKNOWN','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','assign','sheets','Warning','_onRemoteChangeset','routeKey','getFocusedUnit','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','SUBMIT_CHANGESET','replace','_createHmacHelper','stopTime','displayName','0\x200\x2017\x2016','UNIVER_COLLABORATION_CLIENT_PLUGIN','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_keySchedule','[CollaborationState]:\x20apply\x20error!','switchMap','unitId','enableLocalCache','getCollabEntity','clearInterval','_backgroundColor','getActiveSheet','_keyPriorReset','_univerInstanceService','override','RxDisposable','_nRounds','whenReady','_hovered','action','saveChangeset','getStateCache','_toggleOffline','_labelPosition','getRoom','loadSheet','_onMessage','_updateCollabCursors','PENDING','_clearOtherTimers','_sendHeartbeatTimer','_getLoginPath','UniverCollaborationClientPlugin','onCommentUpdate','_unitID','Encryptor','setAlpha','YUUMI_SUBSCRIPTION_NOT_FOUND','onRemoteAck','registerOnClose','setInterval','event$','text','liveShareOperation','_collabCursorState$','getMember','_removeClearOtherTimer','snapshot','[FetchMissState]','16YTlySn','createDecryptor','_status$','fetchThroughInterceptors','_initStatusComponent','_initStatusListener','getCellPositionByOffset','transformSelections','cursorInfo','unit-cache-','LICENSE_EXPORT_SIZE_EXCEEDED','_document','INTERNAL_ERROR','pipe','YUUMI_RATE_OVER_LIMIT','DOC_RANGE_TYPE','online','DocCollaborationEntity','_hasher','shareReplay','handleDeleteRangeMoveLeft','getSheetId','_singleActiveUnitService','ONLINE','isTransformMutationsWithChangesetSuccess','_memberService','ranges','set','_tryReconnect','TRANSFORM_CHANGE_OBSERVABLE_TYPE','FromArray','ICollaborationSocketService','conflict','entries','_scheduleTimestamp','_candidateSocket','_clearLocalCache','compute','encryptBlock','_acknowledgedAwaitingChangeset','create','_range','size','getTypeOfUnitDisposed$','memberID','IRemoteInstanceService','_queuedRemoteChangesets','NO_OTHER_CLIENTS_EDITING','FAIL','IURLService','InsertRowCommandId','readAsDataURL','createCollaborator','collaboration-client.config','take','_refRangeService','encode','toDisposable','onTransformIME','_onRemoteRejected','save\x20fail\x20reason\x20is\x20','_lastPointer','UUID','engine','readInt32LE','INGEST','_session','SEND_CHANGESET_TIMEOUT_KEY','replaceState','getSheetObject','filter','COMPLETION_FINISHED','updateCursorEvent','getOwnPropertySymbols','_revisionService','handleIRemoveRow','_oKey','updateCollaborator','authzUrl','m1Prime','algo','_initDependencies','fetchMiss','_replaceFileID','_init','_handleHover','_transformStateCache','collaborators','send','_updateSubUnitFromURLParams','_id','LIVESHARE_OPERATION','Tools','SetWorksheetActivateCommand','fillStyle','_showConflictNotification','roomMembers$','_doCryptBlock','encrypt','handleIRemoveCol','958275jxMBxE','_process','throttleTime','_submitChangeset','allowed','_map','objectType','unshift','InsertRangeMoveRightCommandId','@univerjs/telemetry','labelPosition','HEARTBEAT','registerHTTPInterceptor','getImage','_socketMessageSubscription','fillText','_cursorShapes','_scheduleSaving','_doProcessBlock','setTimeout','_onConflict','socketService','MD5','UNRECOGNIZED','roomMembers','_getSnapshotAPIPrefix','LICENSE_DISTRO_REJECTED','width','106300RdGGUG','flatMap','history','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','BuiltInUIPart','updateOfflineData','icon','closeSession','PSEUDO_FETCH_MISSING_RESULT','function','@univerjs/drawing','CBC','ILogService','setItem','_sessionStatus$','OTHER_CLIENTS_EDITING','_selfUnitIDs','/rev/','find','transformStack\x20failed!','registerBeforeClose','_undoStacks','collab-text-anchor-','charCodeAt','hidden','verdancy600','MergeInterceptorFactory','lineTo','mapTo','_snapshotServerService','row','NoPadding','_doFinalize','_substituteUndoStack','_renderManagerService','executeCommand','rxjs/operators','image/gif','getCurrentUnitForType','SheetsSelectionsService','x-univer-host','permissionRejEvent','_joinRoom','toString','commentUpdate$','IRenderManagerService','_collabCursorController','status$','telemetry\x20info\x20is\x20not\x20initialized','USERS_ENTER','image/jpg','getUnitId','ENSURE_SNAPSHOT_EXECUTION','/universer-api/snapshot/','BehaviorSubject','mergeOverrideWithDependencies','serializeCombRequest','YUUMI_URL_COL_OUT_OF_RANGE','SheetSkeletonManagerService','_loadDoc','/unit/','\x20in\x20_schedule.','off-line-single','subscribeEvent','IMessageService','connectInjector','UNKNOWN_CODE','deserializeRangeWithSheet','_removeRoom','error$','_isPermissionRej','DeleteRangeMoveLeftCommandId','getCurrent','_getSaveTimeout','AWAITING','batchAllowed','MUTATION','debounceTime','selection','IPermissionService','floor','LOCAL_CACHE_INTERVAL','_registerRenderDependencies','RECV','/block/','transformStateCache','resend','_instanceService','activeSheet$','_transformPreviousActiveRange','_socket$','getCurrentRevOfUnit','INVALID_ARGUMENT','_hover','_transformUndoRedoStack','complete','_createInitialStateImpl','CollaborationEntity','fill','UPDATE_PERMISSION_OBJ','image/png','_entities','isEditing','patch','_transformUndoredo','sessionStatus$','beginPath','delay','loginUrlKey','_colorIndex','_handleJoinEvent','PasswordBasedCipher','_getAPIPrefixPath','getTime','_waitCount','IUniverInstanceService','UNDEFINED','decrypt','unitID','_ENC_XFORM_MODE','_undoRedoService','addObject','height','[CollaborationSessionService]','DocSkeletonManagerService','univer-online','ICommandService','_cursors','_logService','_anchor','_localeService','toggleOffline','@univerjs/docs-ui','_onRefRangeChange','\x20to\x20','_startSheetCollabCursor','state','IBeforeCloseService','collabStatus.syncing','UniverCollaborationPlugin','SetTextSelectionsOperation','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_userManagerService','Vector2','NOT_FOUND','socket\x20close','permission.title','APPLY_REJECT','prototype','src','_refreshCollabCursors','Hasher','trim','reqId','key','_eventUnsubscribe','/-/object/list','57345yLCEMq','replaceTextRanges','_collaborationPaused','ImageSourceType','[PendingState]:\x20received\x20rejection.','name','_state','pauseCollaboration','_registerDependencies','endRow','InsertColCommandId','column','collabSubmitChangesetUrl','sendChangesetTimeout','update','enableSingleActiveInstanceLock','_getCurrentRevision','VIEW_MAIN','socket$','defIds','_anchorDot','Undefined','stringify','session.room-full','deserializeToCombResponse','LICENSE_IMPORT_SIZE_EXCEEDED','_disableEditing','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','workbook','distinctUntilChanged','_changesetSessionId','_snapshotService','onTransformRemoteChangesetByStateCache','putCollaborators','collab-text-range-','Rectangle','purple300','iterations','color','colorChannel1','_type','CONFLICT','apply','jiqing500','onPointerLeave$','isActive','_commentUpdate$','sid','setCurrentUser','@univerjs/ui','catch','_textBubble','[CollaborationSessionService]:\x20socket\x20error','_httpService','createInstance','_onCursorUpdate','_updateURLWithCurrentState','getUniverSheetInstance','propertyIsEnumerable','collabStatus.conflict','_shapes','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','slice','origin','_createHandler','univer-offline','rng','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_permissionService','0\x200\x2016\x2016','_parse','_cipher','POST','univer-pro.collaboration-client.single-active-unit-service','attrs','_docStateChangeManagerService','pending','onMissingChangesets','getSheetBlock','lib','_getRedoStack','onTransformChange$','rev','onSyncEditingCollabCursor','location','getValue','changesets','_scheduleHeartbeat','setActiveRange','cmd','mixIn','handleInsertRangeMoveDown','_entityInit$','LocaleService','_HTTPService','Injector','getColor','_onRemoteACK','DEFAULT_FILE_NAME','DependentOn','className','min','onlineStatusIcon','_listenToOfflineEvent','extend','_executeRemoteChangeset','_mode','_onConnectionOpen','startTime','withCredentials','reverse','newCsEvent','onMissedChangesetFetched','\x20-\x20','VIEWPORT_KEY','parseChangesetToProtocol','collaboration-session-retry','_ws','cfg','CollaborationSessionService','_listenToOnlineEvent','duration','/universer-api/comb','type','interceptor','_getUndoStack','FileId','onload','setWaitCount','revision','JOIN','WorkbookEditablePermission','_clearUndo','Base','transformChangesets','UserManagerService','SetSelectionsOperation','uploadFileServerUrl','_drawTextRange','concat','SUCCUSS','_iv','onCommandExecuted','StreamCipher','480OYkkfg','LIVESHARE_REQUEST_HOST','ERROR_IMAGE','useObservable','_docTransformStateCacheService','COLLAB_SUBMIT_CHANGESET_URL_KEY','objectActions','sheetId','_disabled','createIdentifier','_minBufferSize','CollaborationController','BlockCipherMode','crypto','IImageIoService','_saveCache','_resendTimeout','HTTPRequest','failed\x20to\x20apply\x20missed\x20changesets!','subscribe','_changesetReqId','message$','_members','_append','LocalUndoRedoService','with','appendMutation','isPermissionRej','COMPRESS_MUTATION_APPLY','unsubscribe','_replayCachedMutations','transformRemoteChangeset','$super','path','_iKey','AES','handleDeleteRangeMoveUp','BufferedBlockAlgorithm','IContextService','handleInsertRow','11725nVZxXP','method','registerRenderModule','toggleOnline','clear','SHOULD_CLOSE_CONN','CHANGESET_REVISION_CONFILICT','transformMutation','_online','TEXT','INotificationService','deleteCollaborator','every','loadOfflineData','_onLocalMutation','dispose$','COLLAB_WEB_SOCKET_URL_KEY','AuthzIoHttpService','startColumn','objects','_getCtorByUniverType','mode','assignAColorForMemberID','/universer-api/file/{fileID}/sign-url','getCollabEntity$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','collaboration-client.offline-data-not-saved','_scheduleClearOtherTimer','/role','visibilityState','Cipher','/object','registerRefRange','isInternalEditorID','substring','textRanges','_DEC_XFORM_MODE','CHANGESET_ACK','onReady','enableAuthServer','_startCollaboration','downloadEndpointUrl','isArray','bind','format','originalMeta','_collaborationSessionService','fromEvent','_xformMode','pluginName','charAt','[OfflineState]:\x20received\x20rejection.','CONNECTOR_DATA_TOO_LARGE','_prevBlock','getWorkbookSelections','_shouldReportTelemetry','getConfig','Could\x20not\x20dynamically\x20require\x20\x22','_scheduleCollaborationTimeoutTimer','_ensureSubject','DisposableCollection','call','onTransformState','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','submit\x20changeset\x20error!','put','getImageSourceCache','_transitionLocked','transformByState','\x0aCurrent:\x20','backgroundColor','connection\x20error','urlChange$','_themeService','sin','some','awaiting','DocStateChangeManagerService','FETCH_MISS','blue400','encodeURIComponent','parseProtocolChangeset','getInterceptPoints','ivSize','pushState','_collaborationController','defs','_sendingTimer','_send','ciphertext','_initCloseConn','xlink:href','SNAPSHOT_URL_KEY','svg','endColumn','univerjs-icon\x20univerjs-icon-','_initEventListeners','@univerjs/rpc','_timeoutTimer','fromCollab','collabStatus.notCollab','_syncEditingCollabCursor','CommandType','onStarting','target','CollaborationStatusDisplay','@univerjs-pro/collaboration','_draw','collabStatus.synced','getUnit','SHA1','Rect','capture','_waitForHeartbeatResponse','byteLength','docStateChange$','post','FETCH_MISSING','InsertSheetMutation','_fetchMissChangesets','EffectRefRangId','_getAnchorBounding','_clearRedo','_applyRemoteChangeset','JOINING','DocIMEInputManagerService','none','getSkeleton','infoRsp','roles','_onUserJoin','Utf8','?url=','idSuffix','join','currentSkeleton$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','currentTheme$','_http','_getAPIPrefix','APPLY_REVISION_CONFILICT','_config','requireSession','cursorInfo$','_sender','UNIVER_SHEET','_initResize','_socketReady','WebSocketService','_awaitingChangeset','finalize','hasher','isTransformChangesetsSuccess','disposeWithMe','drawWith','clone','editingUnit','_drawRectRange','round','_onRemoteRetry','_removeCollabCursors','startRow','_docTransformIMECacheService','UNKNOWN_CMD','WordArray','ImageIoService','_color','SnapshotServerOverHTTPService','randomBytes','Unknown\x20user','forEach','updatePermissionPoint','_docSkeletonManagerService','restore','next','red300','_onJoinRoomEvent','save','c1Prime','push','_docSkeleton','setParam','exhaustSavingTask','debounce','_resendTimer','_startTelemetryCollaborationNewChangeset','getResourcesRequest','_cursor','Subject','_handleEvent','csRejEvent','onSendChangeset','340920wdqhXS','_handleHeartbeatEvent','pad','getRenderById','...','HttpImport','getSheetBySheetId','clamp','_urlService','_stopTelemetryCollaborationNewChangeset','@univerjs/sheets-ui','onTransformRemoteChangesetByIMECache','_hideTimer','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getTypeOfUnitAdded$','from','RevisionService','_clearTimeoutTimer','getUndoRedoMutationParamsCache','unit','data','_sheetTransformSelectionsService','_socket','univer-pro.collaboration-client-socket-service','focused$','_roomMembers','OFFLINE','objectID','resize','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','salt','AUTHZ_URL_KEY','LocalCacheService','enableOfflineEditing','selections','_hash','fetch_missing','processBlock','removeMember','result','RefRangeService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_retryCount','startsWith','getAncestorScale','newValue','_substituteRedoStack','WebURLService','AWAITING_WITH_PENDING','asObservable','_roomMembers$','IUIPartsService','Module','1em','SessionStatus','USERS_LEAVE','_notificationService','APPLY_DUPLICATED','msCrypto','loadDoc','/-/object/-/batch_allowed','HttpExport','unknown','[SyncedState]:\x20received\x20rejection.','_lockTransition','b64DecodeUnicode','MSG_FOR_ERROR','_heartbeatTimer','ThemeService','gold400','reduce','/fetchmissing?from=','SnapshotService','snapshotServerUrl','getUnitStatus$','/universer-api/stream/file/upload','IUndoRedoService','awaitingChangeset','code','collabWebSocketUrl','univer-online-status-icon','eventID','listRoles','_initRequestHeader','then','ImageUploadStatusType','_transformRemoteChangesetByStateCache','onRemoteRej','HTTPService','url','@univerjs/design','ILocalStorageService','incrementRevOfUnit','confirm','randomUUID','getCoordByCell','_localCacheService','_sessions','OpenSSL','black','_retryConnectingTimer','undoState','_context','conflict.content','contains','getUnitOnRev','disposeUnit','_saveTaskMap','_sheetSkeletonManagerService','UniverInstanceType','HEARTBEAT_TIMEOUT','concatMap','_messageService','Optional','baseRev','parse','COLORS','_decreaseWaiting','SNAPSHOT_SERVER_URL_KEY','TEXT_RANGE_LAYER_INDEX','requestParams','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_collaborationTimeoutTimer','_remoteChangesetQueue','_invKeySchedule','textEncoder','m2Prime','_event$','/allowed','_onOffline','RemoveRowCommandId','_tryEnsureSocket','initWorkbookPermissionChange','_transformService','getVpScrollXYInfoByPosToVp','COMPRESS_MUTATION_SEND','COLLAB_WEB_SOCKET_URL','translate(.97)','Shape','findNodePositionByCharIndex','APPLY_PERMISSION_DENIED','_unlockTransition','measureText','DesktopCollaborationStatusDisplayController','YUUMI_UNABLE_LOAD_URL','sequenceExecute','_getUploadFileURL','Base64','clearTimeout','font','_onRecvEvent','div','addEventListener','COLLAB_SUBMIT_CHANGESET_URL','UNIVER_PROJECT','EvpKDF','_throwTelemetryCollaborationNewChangeset','Univer','_docTransformSelectionsService','DeleteRangeMoveUpCommandId','saveSnapshot','reject','CompressMutationService','_rescheduleHeartbeat','mutations','_imageSourceCache','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','keySize','_transformRemoteChangesetByIMECache','registerComponent','evenodd','image/jpeg','RemoveColCommandId','ReplaySubject','_collabSessionService','headers','getCurrentSelections','closePath','onRemoteRetry','ERROR_IMAGE_TYPE','_createSocket','debug','mapDocumentTypeToUniverType','_uiPartsService','resolve','hasOwnProperty','use','_key','sessionStatus','_getMergeRange','_state$','onMouseMove','indexOf','__esModule','_transformSelections','userID','UNIVER_DOC','_pendingMutations','handleInsertCol','tag','_compressMutationService','ALREADY_EXISTS','DataLoaderController','_getDownloadEndpointURL','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','/collaborator','uni.network.url-service','PERMISSION_DENIED','NEW_CHANGESETS','updateMember','syncEditingCollabCursor','sigBytes','error','isTransformMutationFailure','_syncEditingCollabCursorService','_handleLeaveEvent','MemberService','NOT_COLLAB','RETRY_CONNECTING_MAX_COUNT','off-line-single_clip0_910_343','[CollaborationUndoRedoService]','createEncryptor','_data','saveSheetBlock','collaboration_new_changeset','RETRY_CONNECTING_MAX_COUNT_KEY','HEARTBEAT_INTERVAL','formatter','getRandomValues','abs','csAckEvent','reset','url(#off-line-single_clip0_910_343)','arc','_setupBeforeClosingHandler','LIVESHARE_NEW_HOST','/resources','_schedule','_transformStack','forwardRef','_initMergeInterceptor','_nDataBytes','transformUndoRedo','list','getDocRanges','refreshPermission','href','Disposable','BlockCipher','setUndoRedoMutationParamsCache','defineProperty','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','reconnect','default','collaboration.single-unit.warning','ColorKit','blockSize','_incrementRevisionNumber','CHANGESET_REJ','offline','onlineStatus','RichTextEditingMutation','touchDependencies','LEAVE','EmptyMutation','_colorAssignService','HELLO','buffer','getMemberID','add','execute','UniverIcon','createElement','repeat','getRangePointData','_startDocCollabCursor','collab-rect-range-','_assignedColors','_checkMissing','/new_changes','_onCursorDelete','currentColor','merge','splice','CHANGESET_SHOULD_RETRY','[PendingState]:\x20received\x20acknowledgement.','setConfig','RECT','LIVESHARE_FETCH_OPERATIONS','moveTo','createSocket','values','random','transformMutationsWithChangeset','getCurrentUser','localeService','file','words','collaMsg','kdf','session.connection-failed','useDependency','subunit','[DataLoaderController]','searchParams','enc','setShapeProps','awaiting_with_pending','EXCHANGE_SIGN_URL_SERVER_URL_KEY','permission.content','fillRule','_resendWithTimeout','_drawAnchor','_initCommandExecutedListener','_setupSubUnitSync','image/bmp','CipherParams','_getSignURL','/object/','session','toStringTag','dispose','_unitStatus','TOO_MANY_REQUESTS','collab-client.tooltip.reconnect','_redoStacks','setStateCache','getLatestCsReqIdBySid','socket\x20open.','[OfflineState]:\x20received\x20acknowledgement.','UnitSnapshot','top','joinRsp','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','fromEventSubject','map','triggerDblclick','isTransformMutationsWithChangesetFailure','_docSyncEditingCollabCursorService','resourceIDs','_onFetchMissResult','_clearScheduledTask','CollaborationSocketService','_doReset','delete','open$','OffLineSingle','Inject','@univerjs/engine-formula','_reverseMap','get','combineLatest','BASE64','_telemetryService','_handler','_unitOnClients','12zUlQez','toLowerCase','onTransformSelections','HEARTBEAT_TIMEOUT_KEY','init','_onConnectionFailed','_beforeCloseService','_updateStatus','state$','_commentService','DocSelectionManagerService','generateRandomId','ITransformService','_injector','CollaborationSession','PERMISSION_REJ','SheetCollaborationEntity','Error','getMergeData','_commandService','not_collab','_updateLocalCache','[OfflineState]:\x20received\x20changeset.','close$','_exhaustRemoteChangesetQueue','_getSendChangesetTimeout','_change$','clipPath','leaveEvent','makeDirty','LIVESHARE_TERMINATE','310845bDiVSI','string','_name','actions','c2Prime','_telemetryInfo','_createInitialState','range','status','_socketService','csShouldRetryEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','MessageType','@univerjs/docs','saveImage','_configService','storage','univer-online-status','onlineStatusTitle','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','current','hide','_onCombEvent','redoState','_cachedData','fetchMissingChangesets','getOwnPropertyDescriptor','now','onPointerEnter$','_scene','_updateState','collaboratorID','react','_onUserLeave','getCollabCursors$','_transformIMECache','UPDATE_CURSOR','_render','getItem','doc.mutation.rich-text-editing','OnLineSingle','IDLE','on-line-single_clip0_910_349','close','LOGIN_URL_KEY','length','collabCursorState$','collabStatus.fetchMiss','_toggleOnline','onlyLocal','params','deepClone','univer-online-status-title','LICENSE_MAX_UNITS_EXCEEDED'];_0x2cf6=function(){return _0x578794;};return _0x2cf6();}gt=Nr([Ae(0x0,a[_0x414e95(0x1df)]),Ae(0x1,a[_0x414e95(0x1ea)]),Ae(0x2,a[_0x414e95(0x2bf)]),Ae(0x3,S['ITransformService']),Ae(0x4,a['ILogService'])],gt);class Pn extends a[_0x414e95(0x58a)]{constructor(){const _0x4c9a4b=_0x414e95;super(),I(this,_0x4c9a4b(0x30a)),this[_0x4c9a4b(0x30a)]=A[_0x4c9a4b(0x2f1)](window,'popstate')['pipe'](A[_0x4c9a4b(0x566)](this['dispose$']),A[_0x4c9a4b(0x5bf)](0x1),A[_0x4c9a4b(0x188)](void 0x0));}[_0x414e95(0x377)](_0x5b6f2f,_0x34aca3,_0x3d8da6=!0x1){const _0x453cdf=_0x414e95,_0x42294e=new URL(window[_0x453cdf(0x25d)][_0x453cdf(0x478)]);_0x42294e[_0x453cdf(0x4b2)][_0x453cdf(0x5c7)](_0x5b6f2f,_0x34aca3),_0x3d8da6?window[_0x453cdf(0x16e)][_0x453cdf(0x5f0)]('','',_0x42294e[_0x453cdf(0x197)]()):window[_0x453cdf(0x16e)]['pushState']('','',_0x42294e[_0x453cdf(0x197)]());}[_0x414e95(0x55c)](_0x117fed,_0x4a24be=!0x1){const _0x15e75a=_0x414e95,_0x1fac67=new URL(window['location'][_0x15e75a(0x478)]);_0x1fac67['searchParams'][_0x15e75a(0x4da)](_0x117fed),_0x4a24be?window['history'][_0x15e75a(0x5f0)]('','',_0x1fac67[_0x15e75a(0x197)]()):window[_0x15e75a(0x16e)][_0x15e75a(0x316)]('','',_0x1fac67[_0x15e75a(0x197)]());}['getParam'](_0x59f906){const _0x324266=_0x414e95;var _0x3ed41d;return(_0x3ed41d=new URL(window[_0x324266(0x25d)][_0x324266(0x478)])[_0x324266(0x4b2)]['get'](_0x59f906))!=null?_0x3ed41d:void 0x0;}}var Un=Object[_0x414e95(0x47c)],Lr=Object[_0x414e95(0x51f)],xr=(_0x14391e,_0x50780b,_0x20f600)=>_0x50780b in _0x14391e?Un(_0x14391e,_0x50780b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20f600}):_0x14391e[_0x50780b]=_0x20f600,$r=(_0x25b1c4,_0x137d49,_0x271df1,_0x44636c)=>{const _0x333aea=_0x414e95;for(var _0x4083b6=_0x44636c>0x1?void 0x0:_0x44636c?Lr(_0x137d49,_0x271df1):_0x137d49,_0x379e41=_0x25b1c4[_0x333aea(0x532)]-0x1,_0x24ac41;_0x379e41>=0x0;_0x379e41--)(_0x24ac41=_0x25b1c4[_0x379e41])&&(_0x4083b6=(_0x44636c?_0x24ac41(_0x137d49,_0x271df1,_0x4083b6):_0x24ac41(_0x4083b6))||_0x4083b6);return _0x44636c&&_0x4083b6&&Un(_0x137d49,_0x271df1,_0x4083b6),_0x4083b6;},He=(_0x1e99f5,_0x5956b1)=>(_0x573124,_0x373545)=>_0x5956b1(_0x573124,_0x373545,_0x1e99f5),jr=(_0x14c4d3,_0x227292,_0x479998)=>xr(_0x14c4d3,_0x227292+'',_0x479998);const Hr=_0x414e95(0x57c);exports[_0x414e95(0x59b)]=class extends a['Plugin']{constructor(_0x141272=Yn,_0x57963f,_0x1d7a34,_0x26d19f,_0x193740){const _0x4ad716=_0x414e95;super(),this[_0x4ad716(0x34f)]=_0x141272,this[_0x4ad716(0x1ec)]=_0x57963f,this[_0x4ad716(0x18e)]=_0x1d7a34,this[_0x4ad716(0x4f3)]=_0x26d19f,this[_0x4ad716(0x514)]=_0x193740;const {..._0xcafdd2}=this['_config'];this[_0x4ad716(0x514)][_0x4ad716(0x4a0)](ne,_0xcafdd2);}[_0x414e95(0x329)](){const _0xed02c1=_0x414e95;this['_registerDependencies'](),this[_0xed02c1(0x5fd)]();}[_0x414e95(0x2e8)](){const _0x11a01e=_0x414e95;a[_0x11a01e(0x488)](this[_0x11a01e(0x4f3)],[[Ve]]);}['onRendered'](){const _0x3036ea=_0x414e95;this[_0x3036ea(0x1be)]();}[_0x414e95(0x211)](){const _0x2dc75f=_0x414e95;var _0x1517ea,_0x4245c3,_0x3a2979,_0xbe2069;this[_0x2dc75f(0x4f3)][_0x2dc75f(0x549)](a[_0x2dc75f(0x3ce)])&&this[_0x2dc75f(0x1ec)][_0x2dc75f(0x456)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');const _0x2193cc=[[a[_0x2dc75f(0x3ce)],{'useClass':gt}],[exports[_0x2dc75f(0x280)]],[yt],[Dt,{'useClass':Pn}],[exports[_0x2dc75f(0x45a)]],[exports[_0x2dc75f(0x3a2)]],[Q['WebSocketService']],[ke],[Fe],[Be],[We],[Tt],[Ge],[Ye],[bt],[Ke],[Et,{'useClass':(_0x4245c3=(_0x1517ea=this['_config'])==null?void 0x0:_0x1517ea[_0x2dc75f(0x165)])!=null?_0x4245c3:exports[_0x2dc75f(0x4d8)]}],[S['ISnapshotServerService'],{'useClass':exports['SnapshotServerOverHTTPService']}],[a[_0x2dc75f(0x564)],{'useClass':exports[_0x2dc75f(0x2d2)]}],[ie[_0x2dc75f(0x2a7)],{'useClass':exports[_0x2dc75f(0x367)]}],[exports['CollaborationController']],[exports[_0x2dc75f(0x44c)]],[exports[_0x2dc75f(0x411)]],[Ve],[Oe]];(_0x3a2979=this[_0x2dc75f(0x34f)])!=null&&_0x3a2979[_0x2dc75f(0x218)]&&_0x2193cc['push']([qe,{'useClass':Ti}]),a['registerDependencies'](this['_injector'],a[_0x2dc75f(0x1a3)](_0x2193cc,(_0xbe2069=this[_0x2dc75f(0x34f)])==null?void 0x0:_0xbe2069[_0x2dc75f(0x589)]));}['_registerRenderDependencies'](){const _0x1ec702=_0x414e95;this['disposeWithMe'](this['_renderManagerService'][_0x1ec702(0x2c3)](a[_0x1ec702(0x3ef)][_0x1ec702(0x446)],[St])),this[_0x1ec702(0x35b)](this[_0x1ec702(0x18e)][_0x1ec702(0x2c3)](a[_0x1ec702(0x3ef)][_0x1ec702(0x353)],[pt]));}[_0x414e95(0x5fd)](){const _0x369cc4=_0x414e95;var _0x48fda3,_0x16a069;this[_0x369cc4(0x4f3)][_0x369cc4(0x4e0)](Q[_0x369cc4(0x3da)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':Q['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x48fda3=this[_0x369cc4(0x34f)])!=null&&_0x48fda3[_0x369cc4(0x3a3)]||this['_injector'][_0x369cc4(0x4e0)](exports[_0x369cc4(0x3a2)])[_0x369cc4(0x553)](),(_0x16a069=this['_config'])!=null&&_0x16a069[_0x369cc4(0x2e9)]&&a[_0x369cc4(0x488)](this['_injector'],[[Ge]]),a[_0x369cc4(0x488)](this[_0x369cc4(0x4f3)],[[Ye],[Oe],[exports['DataLoaderController']],[exports[_0x369cc4(0x2a4)]],[exports['DesktopCollaborationStatusDisplayController']],[Ke]]);}},jr(exports[_0x414e95(0x59b)],_0x414e95(0x2f3),Hr),exports[_0x414e95(0x59b)]=$r([a[_0x414e95(0x26c)](S[_0x414e95(0x1f7)],Q['UniverNetworkPlugin']),He(0x1,a['ILogService']),He(0x2,K[_0x414e95(0x199)]),He(0x3,a[_0x414e95(0x4dd)](a[_0x414e95(0x268)])),He(0x4,a[_0x414e95(0x556)])],exports[_0x414e95(0x59b)]),exports[_0x414e95(0x3a1)]=En,exports[_0x414e95(0x29e)]=rn,exports[_0x414e95(0x2d1)]=Qt,exports['CollaborationStatus']=q,exports[_0x414e95(0x32b)]=Cn,exports['CommentService']=bt,exports['HEARTBEAT_INTERVAL_KEY']=en,exports[_0x414e95(0x4e9)]=It,exports[_0x414e95(0x5cb)]=Et,exports[_0x414e95(0x5dd)]=Dt,exports['LOCAL_CACHE_INTERVAL_KEY']=sn,exports[_0x414e95(0x531)]=on,exports[_0x414e95(0x463)]=nn,exports[_0x414e95(0x5ef)]=$n,exports[_0x414e95(0x3f8)]=Jt,exports['SNAPSHOT_URL_KEY']=Zt,exports[_0x414e95(0x3b8)]=re,exports['SheetCollabCursorShape']=mn,exports[_0x414e95(0x3b1)]=Pn,exports[_0x414e95(0x221)]=ln,exports[_0x414e95(0x1a4)]=hn;
|