@univerjs-pro/collaboration-client 0.4.1-nightly.202410291304 → 0.4.2-nightly.202410291606
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/index.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +17 -17
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x3ee1d4=_0x51c9;(function(_0x17d44f,_0x30fa36){const _0xc7a0f0=_0x51c9,_0x55a483=_0x17d44f();while(!![]){try{const _0x2f7a4a=parseInt(_0xc7a0f0(0x493))/0x1*(parseInt(_0xc7a0f0(0x39d))/0x2)+parseInt(_0xc7a0f0(0x4d6))/0x3*(-parseInt(_0xc7a0f0(0x3f9))/0x4)+parseInt(_0xc7a0f0(0x41a))/0x5*(parseInt(_0xc7a0f0(0x168))/0x6)+-parseInt(_0xc7a0f0(0x2cb))/0x7+parseInt(_0xc7a0f0(0x2fe))/0x8*(-parseInt(_0xc7a0f0(0x32b))/0x9)+parseInt(_0xc7a0f0(0x135))/0xa*(parseInt(_0xc7a0f0(0x359))/0xb)+parseInt(_0xc7a0f0(0x141))/0xc;if(_0x2f7a4a===_0x30fa36)break;else _0x55a483['push'](_0x55a483['shift']());}catch(_0x1d949c){_0x55a483['push'](_0x55a483['shift']());}}}(_0x3530,0xbcc37));var Mn=Object['defineProperty'],An=(_0x20a52c,_0x229f76,_0x4e233d)=>_0x229f76 in _0x20a52c?Mn(_0x20a52c,_0x229f76,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e233d}):_0x20a52c[_0x229f76]=_0x4e233d,I=(_0x48a97f,_0x2649ac,_0x5e06fb)=>An(_0x48a97f,typeof _0x2649ac!=_0x3ee1d4(0x35f)?_0x2649ac+'':_0x2649ac,_0x5e06fb);Object[_0x3ee1d4(0x4ef)](exports,Symbol['toStringTag'],{'value':'Module'});const a=require('@univerjs/core'),A=require(_0x3ee1d4(0x463)),V=require('rxjs/operators'),pe=require(_0x3ee1d4(0x4d1)),te=require(_0x3ee1d4(0x376)),Q=require(_0x3ee1d4(0x2c0)),S=require('@univerjs-pro/collaboration'),Nn=require(_0x3ee1d4(0x321)),Z=require(_0x3ee1d4(0x299)),k=require(_0x3ee1d4(0x3d5)),K=require(_0x3ee1d4(0x20e)),Re=require('@univerjs/docs'),ie=require(_0x3ee1d4(0x158)),wt=require('@univerjs/engine-formula'),Te=require('@univerjs/sheets-ui'),z=require(_0x3ee1d4(0x3b6)),Ln=require(_0x3ee1d4(0x4ce)),Jt=_0x3ee1d4(0xc1),xn='/universer-api/snapshot',Zt=_0x3ee1d4(0x37c),$n=_0x3ee1d4(0x3d2),jn=0x7d0,Qt='COLLAB_WEB_SOCKET_URL',Hn=_0x3ee1d4(0x4bc),en=_0x3ee1d4(0x384),Bn=0x7530,It=_0x3ee1d4(0x4f9),tn=0x4e20,kn=0x4e20,nn=_0x3ee1d4(0x229),Wn=0x3,sn=_0x3ee1d4(0x27c),Fn=0x3e8,rn=_0x3ee1d4(0x4ac),Vn=_0x3ee1d4(0x2ef),on='LOGIN_URL_KEY',Gn='/universer-api/oidc/authpage';var an=(_0x2e14ab=>(_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x429)]=0x0]=_0x3ee1d4(0x429),_0x2e14ab[_0x2e14ab['OK']=0x1]='OK',_0x2e14ab[_0x2e14ab['INTERNAL_ERROR']=0x2]=_0x3ee1d4(0x360),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x4a5)]=0x3]=_0x3ee1d4(0x4a5),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x206)]=0x4]=_0x3ee1d4(0x206),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x78)]=0x5]='UNAUTHENTICATED',_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x8a)]=0x6]=_0x3ee1d4(0x8a),_0x2e14ab[_0x2e14ab['INVALID_ARGUMENT']=0x7]=_0x3ee1d4(0x303),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x2b4)]=0x8]='TOO_MANY_REQUESTS',_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x185)]=0x9]=_0x3ee1d4(0x185),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0xe6)]=0x1389]=_0x3ee1d4(0xe6),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x2a5)]=0x1771]=_0x3ee1d4(0x2a5),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x2be)]=0x1772]=_0x3ee1d4(0x2be),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x378)]=0x1773]=_0x3ee1d4(0x378),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x28a)]=0x1b59]=_0x3ee1d4(0x28a),_0x2e14ab[_0x2e14ab['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2e14ab[_0x2e14ab['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x2af)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x405)]=0x1b5d]=_0x3ee1d4(0x405),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x377)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2e14ab[_0x2e14ab['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3ee1d4(0x3ea),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x111)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2e14ab[_0x2e14ab['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3ee1d4(0x2c9),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x36e)]=0x232c]=_0x3ee1d4(0x36e),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x118)]=0x232d]=_0x3ee1d4(0x118),_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x1e3)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2e14ab[_0x2e14ab[_0x3ee1d4(0x385)]=0x2712]=_0x3ee1d4(0x385),_0x2e14ab[_0x2e14ab['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3ee1d4(0x3a7),_0x2e14ab[_0x2e14ab['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2e14ab[_0x2e14ab['UNRECOGNIZED']=-0x1]=_0x3ee1d4(0x8f),_0x2e14ab))(an||{}),se=(_0x4b5a2d=>(_0x4b5a2d[_0x4b5a2d[_0x3ee1d4(0x170)]=0x0]=_0x3ee1d4(0x170),_0x4b5a2d[_0x4b5a2d[_0x3ee1d4(0x357)]=0x1]=_0x3ee1d4(0x357),_0x4b5a2d[_0x4b5a2d[_0x3ee1d4(0x1c8)]=0x2]=_0x3ee1d4(0x1c8),_0x4b5a2d[_0x4b5a2d['UNIVER_SLIDE']=0x3]=_0x3ee1d4(0x1af),_0x4b5a2d[_0x4b5a2d[_0x3ee1d4(0x39b)]=0x4]=_0x3ee1d4(0x39b),_0x4b5a2d[_0x4b5a2d[_0x3ee1d4(0x8f)]=-0x1]=_0x3ee1d4(0x8f),_0x4b5a2d))(se||{}),G=(_0x3b12c8=>(_0x3b12c8[_0x3b12c8[_0x3ee1d4(0x3fd)]=0x0]=_0x3ee1d4(0x3fd),_0x3b12c8[_0x3b12c8[_0x3ee1d4(0x33a)]=0x1]=_0x3ee1d4(0x33a),_0x3b12c8[_0x3b12c8[_0x3ee1d4(0x398)]=0x2]=_0x3ee1d4(0x398),_0x3b12c8[_0x3b12c8[_0x3ee1d4(0x101)]=0x3]=_0x3ee1d4(0x101),_0x3b12c8[_0x3b12c8['INGEST']=0x4]=_0x3ee1d4(0x3db),_0x3b12c8[_0x3b12c8[_0x3ee1d4(0x192)]=0x5]=_0x3ee1d4(0x192),_0x3b12c8[_0x3b12c8[_0x3ee1d4(0x4e7)]=0x6]='RECV',_0x3b12c8[_0x3b12c8[_0x3ee1d4(0x8f)]=-0x1]='UNRECOGNIZED',_0x3b12c8))(G||{}),Ct=(_0x22b67a=>(_0x22b67a[_0x22b67a[_0x3ee1d4(0x283)]=0x0]=_0x3ee1d4(0x283),_0x22b67a[_0x22b67a['OK']=0x1]='OK',_0x22b67a[_0x22b67a['FAIL']=0x2]='FAIL',_0x22b67a[_0x22b67a['UNRECOGNIZED']=-0x1]=_0x3ee1d4(0x8f),_0x22b67a))(Ct||{}),cn=(_0x280d45=>(_0x280d45[_0x280d45[_0x3ee1d4(0x1b3)]=0x0]=_0x3ee1d4(0x1b3),_0x280d45[_0x280d45[_0x3ee1d4(0x176)]=0x1]=_0x3ee1d4(0x176),_0x280d45[_0x280d45[_0x3ee1d4(0x521)]=0x2]=_0x3ee1d4(0x521),_0x280d45[_0x280d45[_0x3ee1d4(0xf3)]=0x3]=_0x3ee1d4(0xf3),_0x280d45[_0x280d45[_0x3ee1d4(0x174)]=0x4]=_0x3ee1d4(0x174),_0x280d45[_0x280d45[_0x3ee1d4(0x8f)]=-0x1]='UNRECOGNIZED',_0x280d45))(cn||{});const ne=_0x3ee1d4(0x28c),Yn={};function ln(_0xe9c2b8){const _0x5cc4cd=_0x3ee1d4;var _0x49cd96,_0x34587f,_0x34aaf3,_0x716de2,_0x55c263;const _0x2a3168=_0xe9c2b8[_0x5cc4cd(0x351)],_0x428f7b=JSON[_0x5cc4cd(0x2e7)](_0x2a3168);switch(_0x428f7b[_0x5cc4cd(0x2e1)]){case G[_0x5cc4cd(0x192)]:case G[_0x5cc4cd(0x33a)]:{const _0x52266f=_0x428f7b['infoRsp'];return{..._0x428f7b,'data':_0x52266f,'cmd':_0x428f7b[_0x5cc4cd(0x2e1)]};}case G[_0x5cc4cd(0x398)]:{const _0x9e8ec0=_0x428f7b[_0x5cc4cd(0x375)];return{..._0x428f7b,'data':_0x9e8ec0,'cmd':_0x428f7b[_0x5cc4cd(0x2e1)]};}case G[_0x5cc4cd(0x4e7)]:{const _0x4cc8e6=_0x428f7b[_0x5cc4cd(0x33c)];switch(_0x4cc8e6[_0x5cc4cd(0xe1)]){case S['CollaborationEvent'][_0x5cc4cd(0x1e6)]:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':(_0x49cd96=_0x4cc8e6[_0x5cc4cd(0x389)])==null?void 0x0:_0x49cd96['cs']},'cmd':_0x428f7b[_0x5cc4cd(0x2e1)]};case S['CollaborationEvent']['CHANGESET_ACK']:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':(_0x34587f=_0x4cc8e6[_0x5cc4cd(0x4a1)])==null?void 0x0:_0x34587f['cs']},'cmd':_0x428f7b['cmd']};case S[_0x5cc4cd(0x2d3)]['NEW_CHANGESETS']:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':(_0x34aaf3=_0x4cc8e6[_0x5cc4cd(0x129)])==null?void 0x0:_0x34aaf3['cs']},'cmd':_0x428f7b[_0x5cc4cd(0x2e1)]};case S[_0x5cc4cd(0x2d3)][_0x5cc4cd(0x3e9)]:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':(_0x716de2=_0x4cc8e6[_0x5cc4cd(0x124)])==null?void 0x0:_0x716de2['cs']},'cmd':_0x428f7b[_0x5cc4cd(0x2e1)]};case S[_0x5cc4cd(0x2d3)][_0x5cc4cd(0x470)]:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':(_0x55c263=_0x4cc8e6['csShouldRetryEvent'])==null?void 0x0:_0x55c263['cs']},'cmd':_0x428f7b[_0x5cc4cd(0x2e1)]};case S[_0x5cc4cd(0x2d3)]['UPDATE_CURSOR']:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':_0x4cc8e6[_0x5cc4cd(0x23f)]},'cmd':_0x428f7b[_0x5cc4cd(0x2e1)]};case S[_0x5cc4cd(0x2d3)]['USERS_ENTER']:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':_0x4cc8e6[_0x5cc4cd(0x1ef)]},'cmd':_0x428f7b['cmd']};case S[_0x5cc4cd(0x2d3)]['USERS_LEAVE']:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':_0x4cc8e6[_0x5cc4cd(0x497)]},'cmd':_0x428f7b['cmd']};case S[_0x5cc4cd(0x2d3)][_0x5cc4cd(0x1f9)]:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':_0x4cc8e6[_0x5cc4cd(0x4ff)]},'cmd':_0x428f7b['cmd']};case S['CollaborationEvent'][_0x5cc4cd(0x291)]:case S[_0x5cc4cd(0x2d3)][_0x5cc4cd(0x1de)]:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':_0x4cc8e6[_0x5cc4cd(0x241)]},'cmd':_0x428f7b['cmd']};case S['CollaborationEvent'][_0x5cc4cd(0x3e1)]:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':_0x4cc8e6[_0x5cc4cd(0x4ff)]},'cmd':_0x428f7b['cmd']};case S[_0x5cc4cd(0x2d3)][_0x5cc4cd(0x4a3)]:return{..._0x428f7b,'data':_0x4cc8e6,'cmd':_0x428f7b['cmd']};case S[_0x5cc4cd(0x2d3)][_0x5cc4cd(0x2e9)]:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':_0x4cc8e6[_0x5cc4cd(0x3c7)]},'cmd':_0x428f7b[_0x5cc4cd(0x2e1)]};case S[_0x5cc4cd(0x2d3)][_0x5cc4cd(0x311)]:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':_0x4cc8e6[_0x5cc4cd(0xf1)]},'cmd':_0x428f7b[_0x5cc4cd(0x2e1)]};case S[_0x5cc4cd(0x2d3)][_0x5cc4cd(0x443)]:return{..._0x428f7b,'data':{..._0x4cc8e6,'data':_0x4cc8e6[_0x5cc4cd(0x3a3)]},'cmd':_0x428f7b[_0x5cc4cd(0x2e1)]};default:return _0x428f7b;}}default:return _0x428f7b;}}function hn(_0x141016){const _0x411f6f=_0x3ee1d4;switch(_0x141016[_0x411f6f(0x2e1)]){case G[_0x411f6f(0x192)]:case G[_0x411f6f(0x33a)]:return JSON[_0x411f6f(0xd2)]({'cmd':_0x141016['cmd'],'routeKey':_0x141016[_0x411f6f(0x4f4)]});case G[_0x411f6f(0x3db)]:{let _0x30cc61;switch(_0x141016[_0x411f6f(0x351)]['eventID']){case S[_0x411f6f(0x2d3)][_0x411f6f(0x1ce)]:{_0x30cc61={'eventID':S[_0x411f6f(0x2d3)][_0x411f6f(0x1ce)],'updateCursorEvent':_0x141016['data'][_0x411f6f(0x351)]};break;}case S['CollaborationEvent'][_0x411f6f(0x339)]:{_0x30cc61={'eventID':S['CollaborationEvent'][_0x411f6f(0x339)],'leaveEvent':_0x141016[_0x411f6f(0x351)]['data']};break;}case S[_0x411f6f(0x2d3)][_0x411f6f(0x348)]:{_0x30cc61={'eventID':S[_0x411f6f(0x2d3)][_0x411f6f(0x348)],'joinEvent':_0x141016[_0x411f6f(0x351)][_0x411f6f(0x351)]};break;}case S['CollaborationEvent'][_0x411f6f(0x1f9)]:{_0x30cc61={'eventID':S[_0x411f6f(0x2d3)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x141016[_0x411f6f(0x351)][_0x411f6f(0x351)]};break;}case S[_0x411f6f(0x2d3)][_0x411f6f(0x1de)]:{_0x30cc61={'eventID':S[_0x411f6f(0x2d3)][_0x411f6f(0x1de)],'liveShareOperation':_0x141016['data']['data']};break;}case S[_0x411f6f(0x2d3)][_0x411f6f(0x3e1)]:{_0x30cc61={'eventID':S[_0x411f6f(0x2d3)][_0x411f6f(0x3e1)],'liveShareTerminate':_0x141016[_0x411f6f(0x351)][_0x411f6f(0x351)]};break;}case S['CollaborationEvent'][_0x411f6f(0x240)]:{_0x30cc61={'eventID':S[_0x411f6f(0x2d3)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x141016[_0x411f6f(0x351)][_0x411f6f(0x351)]};break;}case S['CollaborationEvent'][_0x411f6f(0x291)]:{_0x30cc61={'eventID':S[_0x411f6f(0x2d3)][_0x411f6f(0x291)]};break;}default:_0x30cc61={'eventID':_0x141016[_0x411f6f(0x351)][_0x411f6f(0xe1)]};}return JSON[_0x411f6f(0xd2)]({'cmd':_0x141016[_0x411f6f(0x2e1)],'routeKey':_0x141016[_0x411f6f(0x4f4)],'collaMsg':_0x30cc61});}case G['JOIN']:return JSON['stringify']({'cmd':_0x141016[_0x411f6f(0x2e1)],'routeKey':_0x141016['routeKey'],'joinReq':_0x141016[_0x411f6f(0x351)]});case G[_0x411f6f(0x101)]:return JSON[_0x411f6f(0xd2)]({'cmd':_0x141016[_0x411f6f(0x2e1)],'routeKey':_0x141016[_0x411f6f(0x4f4)],'leaveReq':_0x141016[_0x411f6f(0x351)]});default:throw new Error(_0x411f6f(0x399));}}var Kn=Object[_0x3ee1d4(0x4ef)],qn=Object['getOwnPropertyDescriptor'],zn=(_0x51cc51,_0x30ee90,_0x20ea38,_0x3a3ba6)=>{const _0x33bcea=_0x3ee1d4;for(var _0x18222e=_0x3a3ba6>0x1?void 0x0:_0x3a3ba6?qn(_0x30ee90,_0x20ea38):_0x30ee90,_0x1b0319=_0x51cc51[_0x33bcea(0x156)]-0x1,_0x49b79c;_0x1b0319>=0x0;_0x1b0319--)(_0x49b79c=_0x51cc51[_0x1b0319])&&(_0x18222e=(_0x3a3ba6?_0x49b79c(_0x30ee90,_0x20ea38,_0x18222e):_0x49b79c(_0x18222e))||_0x18222e);return _0x3a3ba6&&_0x18222e&&Kn(_0x30ee90,_0x20ea38,_0x18222e),_0x18222e;},De=(_0x421464,_0x21bfd6)=>(_0x379a07,_0x558e7a)=>_0x21bfd6(_0x379a07,_0x558e7a,_0x421464);const Et=a['createIdentifier'](_0x3ee1d4(0x100));function Xn(_0x912ac5,_0x5c1164,_0x24da01){const _0x12a8d1=_0x3ee1d4;return _0x912ac5+'/'+_0x5c1164+_0x12a8d1(0x40e)+_0x24da01+_0x12a8d1(0x16a);}exports[_0x3ee1d4(0x3ee)]=class extends a[_0x3ee1d4(0xbf)]{constructor(_0x4dbe43,_0x263bed,_0x327c42,_0x53c64d,_0x1002dc){const _0x175b31=_0x3ee1d4;super(),this['_http']=_0x4dbe43,this['_ws']=_0x263bed,this[_0x175b31(0x320)]=_0x327c42,this[_0x175b31(0x416)]=_0x53c64d,this[_0x175b31(0x255)]=_0x1002dc;}[_0x3ee1d4(0x21e)](_0x5df332){const _0xd3a265=_0x3ee1d4,_0x34264a=this[_0xd3a265(0x4b6)][_0xd3a265(0x21e)](_0x5df332);if(!_0x34264a)throw new Error(_0xd3a265(0x322));const _0x16b3e6=new a['DisposableCollection'](),_0x144036=new A[(_0xd3a265(0x4ad))]();_0x16b3e6['add'](_0x34264a[_0xd3a265(0x2a4)]['subscribe'](_0x56b003=>_0x144036['next'](_0x56b003))),_0x16b3e6[_0xd3a265(0xd6)](a['toDisposable'](()=>_0x144036[_0xd3a265(0x11d)]()));const _0x309922=new A[(_0xd3a265(0x4ad))]();_0x16b3e6[_0xd3a265(0xd6)](_0x34264a[_0xd3a265(0x422)]['subscribe'](_0x53d2b8=>_0x309922[_0xd3a265(0x261)](_0x53d2b8))),_0x16b3e6[_0xd3a265(0xd6)](a['toDisposable'](()=>_0x309922[_0xd3a265(0x11d)]()));const _0x2157ac=new A[(_0xd3a265(0x4ad))]();_0x16b3e6[_0xd3a265(0xd6)](_0x34264a[_0xd3a265(0x25d)]['subscribe'](_0x444d49=>{const _0x66346e=_0xd3a265,_0x4fbae=ln(_0x444d49);_0x2157ac[_0x66346e(0x261)](_0x4fbae);})),_0x16b3e6[_0xd3a265(0xd6)](a[_0xd3a265(0x11a)](()=>_0x2157ac[_0xd3a265(0x11d)]()));let _0xa97ffe;const _0x533377=()=>{const _0x635629=_0xd3a265;_0x309922[_0x635629(0x261)](new Event('connection\x20error')),_0x144036['next'](new CloseEvent(_0x635629(0x22a))),_0xa97ffe[_0x635629(0x2b7)]();};return _0xa97ffe={'memberID':'','close$':_0x144036[_0xd3a265(0x3d4)](),'error$':_0x309922[_0xd3a265(0x3d4)](),'open$':_0x34264a['open$'],'message$':_0x2157ac[_0xd3a265(0x3d4)](),'send':_0x443d0b=>{const _0x155f7e=_0xd3a265;if(_0x443d0b[_0x155f7e(0x2e1)]===G[_0x155f7e(0x3db)]){if(_0x443d0b[_0x155f7e(0x351)][_0x155f7e(0xe1)]===S[_0x155f7e(0x2d3)][_0x155f7e(0x4c9)]){this['_submitChangeset'](_0xa97ffe,_0x443d0b[_0x155f7e(0x351)])[_0x155f7e(0x2cc)](_0x41fa31=>{const _0x21f950=_0x155f7e;this['_logService'][_0x21f950(0x97)](_0x41fa31),_0x533377();});return;}if(_0x443d0b['data'][_0x155f7e(0xe1)]===S['CollaborationEvent']['FETCH_MISSING']){const _0xbd1c3b=_0x443d0b[_0x155f7e(0x351)];this[_0x155f7e(0x203)](_0xbd1c3b)[_0x155f7e(0x107)](_0x5b4a8d=>{const _0x1a2712=_0x155f7e;_0x2157ac[_0x1a2712(0x261)]({'cmd':G['RECV'],'code':Ct['OK'],'routeKey':_0xbd1c3b[_0x1a2712(0x351)]['unitID'],'routeType':'','data':{'eventID':S[_0x1a2712(0x2d3)][_0x1a2712(0x36b)],'data':{'changesets':_0x5b4a8d}}});})[_0x155f7e(0x2cc)](_0x29e4a5=>{const _0x3e71e4=_0x155f7e;this[_0x3e71e4(0x416)]['error'](_0x29e4a5),_0x533377();});return;}}_0x34264a[_0x155f7e(0x133)](hn(_0x443d0b));},'close':()=>{const _0x1388be=_0xd3a265;_0x34264a[_0x1388be(0x2b7)](),_0x16b3e6[_0x1388be(0x292)]();}},_0xa97ffe;}async[_0x3ee1d4(0x2e3)](_0x8aecd2,_0x2f23f0){const _0x5bb2b7=_0x3ee1d4;var _0x250c8f,_0x4d3e3e;const {unitType:_0x5b775c,unitID:_0x5cf359,changeset:_0x4bba74}=_0x2f23f0[_0x5bb2b7(0x351)],_0x6323cb={'unitID':_0x5cf359,'memberID':_0x8aecd2[_0x5bb2b7(0x50f)],'type':_0x5b775c,'changeset':S['parseChangesetToProtocol'](_0x4bba74)},_0x1cccd7=this['_configService'][_0x5bb2b7(0x79)](rn),_0x43c14=this[_0x5bb2b7(0x320)]['getConfig'](ne),_0xf3ae73=Xn((_0x4d3e3e=(_0x250c8f=_0x43c14==null?void 0x0:_0x43c14[_0x5bb2b7(0x1c1)])!=null?_0x250c8f:_0x1cccd7)!=null?_0x4d3e3e:Vn,_0x5b775c,_0x5cf359);try{await this[_0x5bb2b7(0x26b)][_0x5bb2b7(0x235)](_0xf3ae73,{'body':_0x6323cb});}catch(_0x242d34){throw this[_0x5bb2b7(0x416)]['error'](_0x5bb2b7(0x3dd),_0x5bb2b7(0x214)),_0x242d34;}}async[_0x3ee1d4(0x203)](_0x577875){const _0x3dbbf8=_0x3ee1d4,{unitID:_0x170cad,from:_0xfe6953,to:_0x348531,unitType:_0x6c4aeb}=_0x577875[_0x3dbbf8(0x351)];return(await this[_0x3dbbf8(0x255)][_0x3dbbf8(0x51a)]({'metadata':void 0x0},{'unitID':_0x170cad,'type':_0x6c4aeb,'from':_0xfe6953,'to':_0x348531}))[_0x3dbbf8(0x4ee)];}},exports[_0x3ee1d4(0x3ee)]=zn([De(0x0,a['Inject'](Q[_0x3ee1d4(0x189)])),De(0x1,a['Inject'](Q[_0x3ee1d4(0x162)])),De(0x2,a['IConfigService']),De(0x3,a['ILogService']),De(0x4,S['ISnapshotServerService'])],exports[_0x3ee1d4(0x3ee)]);const Jn='collaboration_new_changeset';function Zn(_0x454701){const _0x23352b=_0x3ee1d4;return JSON[_0x23352b(0xd2)](_0x454701)[_0x23352b(0x156)];}class bt{constructor(){const _0x23b072=_0x3ee1d4;I(this,_0x23b072(0xff),new A['Subject']()),I(this,'commentUpdate$',this[_0x23b072(0xff)][_0x23b072(0x3d4)]());}[_0x3ee1d4(0x21b)](_0x417a9f){const _0x471bf5=_0x3ee1d4;this[_0x471bf5(0xff)]['next'](_0x417a9f);}}var Qn=Object[_0x3ee1d4(0x4ef)],ei=Object[_0x3ee1d4(0xe2)],ti=(_0x345d00,_0x5c1902,_0x57cfcb,_0x38dcad)=>{const _0x20cb80=_0x3ee1d4;for(var _0x17b1db=_0x38dcad>0x1?void 0x0:_0x38dcad?ei(_0x5c1902,_0x57cfcb):_0x5c1902,_0x2bb60e=_0x345d00[_0x20cb80(0x156)]-0x1,_0x32cac4;_0x2bb60e>=0x0;_0x2bb60e--)(_0x32cac4=_0x345d00[_0x2bb60e])&&(_0x17b1db=(_0x38dcad?_0x32cac4(_0x5c1902,_0x57cfcb,_0x17b1db):_0x32cac4(_0x17b1db))||_0x17b1db);return _0x38dcad&&_0x17b1db&&Qn(_0x5c1902,_0x57cfcb,_0x17b1db),_0x17b1db;},Pt=(_0x886894,_0x3f4b93)=>(_0x440290,_0x1392d2)=>_0x3f4b93(_0x440290,_0x1392d2,_0x886894);exports[_0x3ee1d4(0x2fd)]=class extends a['Disposable']{constructor(_0x19b153,_0x3a1c28){const _0x51e058=_0x3ee1d4;super(),I(this,_0x51e058(0x18b),new Map()),(this[_0x51e058(0xfd)]=_0x19b153,this[_0x51e058(0x4ca)]=_0x3a1c28,this[_0x51e058(0x4bd)](a[_0x51e058(0x11a)](A['merge'](this['_univerInstanceService'][_0x51e058(0xb7)](a[_0x51e058(0x3f4)][_0x51e058(0x1c8)])[_0x51e058(0x32f)](V[_0x51e058(0x4c0)](_0x399a16=>_0x399a16[_0x51e058(0x186)]())),this[_0x51e058(0xfd)][_0x51e058(0xb7)](a[_0x51e058(0x3f4)][_0x51e058(0x357)])[_0x51e058(0x32f)](V[_0x51e058(0x4c0)](_0x21c4ba=>_0x21c4ba[_0x51e058(0x186)]())),this[_0x51e058(0xfd)][_0x51e058(0xb7)](a[_0x51e058(0x3f4)][_0x51e058(0x1af)])['pipe'](V[_0x51e058(0x4c0)](_0x46ac40=>_0x46ac40[_0x51e058(0x186)]())))[_0x51e058(0x455)](_0x36b802=>this[_0x51e058(0xfc)](_0x36b802)))));}['setCurrentUser'](_0x5af371){const _0x488dbf=_0x3ee1d4;this['_userManagerService'][_0x488dbf(0x38f)](_0x5af371);}[_0x3ee1d4(0x1f6)](){const _0x2b98c9=_0x3ee1d4;return this[_0x2b98c9(0x4ca)][_0x2b98c9(0x1f6)]();}[_0x3ee1d4(0x24b)](_0x12ebdb,_0x1cc41a){const _0x2b0f0c=_0x3ee1d4;let _0xf65813=this[_0x2b0f0c(0x18b)][_0x2b0f0c(0x3ad)](_0x12ebdb);_0xf65813||(_0xf65813=new ni(),this['_roomMembers']['set'](_0x12ebdb,_0xf65813)),_0xf65813['updateMember'](_0x1cc41a);}['removeMember'](_0x89bd2f,_0x407e64){const _0x42d2c5=_0x3ee1d4,_0x2a7b8b=this[_0x42d2c5(0x18b)][_0x42d2c5(0x3ad)](_0x89bd2f);_0x2a7b8b&&_0x2a7b8b['removeMember'](_0x407e64);}['getRoom'](_0x2db63e){const _0x417fa4=_0x3ee1d4;return this['_roomMembers'][_0x417fa4(0x3ad)](_0x2db63e);}[_0x3ee1d4(0x12e)](_0x2a237f,_0xf6cfed){const _0x6b256a=_0x3ee1d4,_0x496448=this[_0x6b256a(0x18b)][_0x6b256a(0x3ad)](_0x2a237f);if(_0x496448)return _0x496448['getMember'](_0xf6cfed);}[_0x3ee1d4(0xfc)](_0xaadc20){const _0xc37af1=_0x3ee1d4,_0x467f54=this[_0xc37af1(0x18b)]['get'](_0xaadc20);_0x467f54&&(_0x467f54['dispose'](),this[_0xc37af1(0x18b)]['delete'](_0xaadc20));}[_0x3ee1d4(0x292)](){const _0x10ea4f=_0x3ee1d4;this[_0x10ea4f(0x18b)][_0x10ea4f(0x362)](_0x1dced2=>_0x1dced2[_0x10ea4f(0x292)]()),this[_0x10ea4f(0x18b)][_0x10ea4f(0x39e)]();}},exports[_0x3ee1d4(0x2fd)]=ti([Pt(0x0,a[_0x3ee1d4(0x47a)]),Pt(0x1,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x7c)]))],exports[_0x3ee1d4(0x2fd)]);class ni extends a['Disposable']{constructor(){const _0x2d24e9=_0x3ee1d4;super(...arguments),I(this,_0x2d24e9(0x2f5),new Map());}[_0x3ee1d4(0x292)](){const _0x28d363=_0x3ee1d4;this[_0x28d363(0x2f5)]['clear']();}[_0x3ee1d4(0x24b)](_0xec7437){const _0x1817c0=_0x3ee1d4;this[_0x1817c0(0x2f5)]['set'](_0xec7437[_0x1817c0(0x50f)],_0xec7437);}['removeMember'](_0x1d3675){this['_members']['delete'](_0x1d3675);}[_0x3ee1d4(0x12e)](_0x1b7e66){return this['_members']['get'](_0x1b7e66);}['getAllMembers'](){const _0x574f77=_0x3ee1d4;return Array[_0x574f77(0x24a)](this[_0x574f77(0x2f5)][_0x574f77(0x9a)]());}}var ii=Object[_0x3ee1d4(0x4ef)],si=Object['getOwnPropertyDescriptor'],ri=(_0x440d0b,_0x1da019,_0x103b68,_0x442170)=>{const _0x4d73e2=_0x3ee1d4;for(var _0x363bc6=_0x442170>0x1?void 0x0:_0x442170?si(_0x1da019,_0x103b68):_0x1da019,_0x32cd83=_0x440d0b[_0x4d73e2(0x156)]-0x1,_0x2bf696;_0x32cd83>=0x0;_0x32cd83--)(_0x2bf696=_0x440d0b[_0x32cd83])&&(_0x363bc6=(_0x442170?_0x2bf696(_0x1da019,_0x103b68,_0x363bc6):_0x2bf696(_0x363bc6))||_0x363bc6);return _0x442170&&_0x363bc6&&ii(_0x1da019,_0x103b68,_0x363bc6),_0x363bc6;},de=(_0x43e646,_0x1324df)=>(_0x2f9188,_0x1c168d)=>_0x1324df(_0x2f9188,_0x1c168d,_0x43e646),re=(_0x4e72c8=>(_0x4e72c8[_0x4e72c8[_0x3ee1d4(0x447)]=0x0]=_0x3ee1d4(0x447),_0x4e72c8[_0x4e72c8[_0x3ee1d4(0x1bf)]=0x1]=_0x3ee1d4(0x1bf),_0x4e72c8[_0x4e72c8[_0x3ee1d4(0x386)]=0x2]=_0x3ee1d4(0x386),_0x4e72c8[_0x4e72c8[_0x3ee1d4(0x313)]=0x3]=_0x3ee1d4(0x313),_0x4e72c8))(re||{});exports[_0x3ee1d4(0x4ea)]=class extends a[_0x3ee1d4(0x301)]{constructor(_0x4b801d,_0x1585d9,_0xa49403,_0x5d9deb,_0x535e3b,_0xee269b,_0x4727d5,_0x16e2a9,_0x37161d,_0x57db44){const _0x587074=_0x3ee1d4;super(),I(this,_0x587074(0x92),new A[(_0x587074(0x45c))](0x0)),I(this,_0x587074(0x1d2),this[_0x587074(0x92)]['asObservable']()),I(this,_0x587074(0x43e),new A['Subject']()),I(this,'event$',this[_0x587074(0x43e)][_0x587074(0x3d4)]()),I(this,_0x587074(0x24e)),I(this,_0x587074(0x194)),I(this,_0x587074(0x43a)),I(this,_0x587074(0x237),!0x1),I(this,'_telemetryInfo',null),(this['_unitID']=_0x4b801d,this[_0x587074(0x416)]=_0xa49403,this['_beforeCloseService']=_0x5d9deb,this[_0x587074(0x3ae)]=_0x535e3b,this['_configService']=_0xee269b,this[_0x587074(0x163)]=_0x4727d5,this[_0x587074(0x18e)]=_0x16e2a9,this[_0x587074(0x4d2)]=_0x37161d,this[_0x587074(0xc7)]=_0x57db44,this[_0x587074(0x237)]=!!this[_0x587074(0xc7)],_0x1585d9['pipe'](A[_0x587074(0x1d9)](this[_0x587074(0xc9)]))[_0x587074(0x455)](_0x52eb0d=>{const _0x4ee10a=_0x587074;var _0x57208c;typeof _0x52eb0d>'u'||(this[_0x4ee10a(0x24e)]=_0x52eb0d,_0x52eb0d?(this[_0x4ee10a(0x427)](_0x52eb0d),this[_0x4ee10a(0x194)]=_0x52eb0d[_0x4ee10a(0x25d)][_0x4ee10a(0x455)](_0x1fbe80=>{const _0xb78e89=_0x4ee10a;_0x1fbe80[_0xb78e89(0x4f4)]===this[_0xb78e89(0x2eb)]&&this[_0xb78e89(0x514)](_0x1fbe80);})):(this[_0x4ee10a(0x22d)](),this[_0x4ee10a(0x92)]['next'](0x2),(_0x57208c=this[_0x4ee10a(0x194)])==null||_0x57208c[_0x4ee10a(0x17f)](),this[_0x4ee10a(0x194)]=null));}),this[_0x587074(0x4bd)](this[_0x587074(0x364)][_0x587074(0x4ec)](()=>{const _0x2fc686=_0x587074;var _0x304b91;(_0x304b91=this[_0x2fc686(0x24e)])==null||_0x304b91[_0x2fc686(0x133)]({'cmd':G[_0x2fc686(0x101)],'data':{'roomID':this[_0x2fc686(0x2eb)]}});})));}get[_0x3ee1d4(0x380)](){const _0x5586b7=_0x3ee1d4;return this[_0x5586b7(0x92)][_0x5586b7(0x86)]();}[_0x3ee1d4(0x3ac)](){const _0x5a5320=_0x3ee1d4;var _0x39171a,_0x2730c5;return(_0x2730c5=(_0x39171a=this[_0x5a5320(0x24e)])==null?void 0x0:_0x39171a[_0x5a5320(0x50f)])!=null?_0x2730c5:null;}[_0x3ee1d4(0x292)](){const _0x2e65c6=_0x3ee1d4;super['dispose'](),this['dispose$'][_0x2e65c6(0x261)](),this[_0x2e65c6(0xc9)]['complete']();}['close'](){const _0x327e94=_0x3ee1d4;var _0x46a0d7,_0x410995;this[_0x327e94(0x22d)](),(_0x46a0d7=this[_0x327e94(0x24e)])==null||_0x46a0d7[_0x327e94(0x133)]({'cmd':G['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x410995=this[_0x327e94(0x24e)])==null||_0x410995[_0x327e94(0x2b7)](),this['_event$'][_0x327e94(0x11d)](),this[_0x327e94(0x92)][_0x327e94(0x11d)](),this['dispose']();}[_0x3ee1d4(0x514)](_0x2648b4){const _0x45ff63=_0x3ee1d4;_0x2648b4[_0x45ff63(0x2e1)]===G['JOIN']?this[_0x45ff63(0x26d)](_0x2648b4):_0x2648b4[_0x45ff63(0x2e1)]===G[_0x45ff63(0x4e7)]&&this[_0x45ff63(0x22b)](_0x2648b4);}['_joinRoom'](_0x157c0f){const _0x3f23b0=_0x3ee1d4;this[_0x3f23b0(0x92)][_0x3f23b0(0x261)](0x1),_0x157c0f[_0x3f23b0(0x133)]({'cmd':G[_0x3f23b0(0x398)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x3ee1d4(0x26d)](_0x305301){const _0x44c941=_0x3ee1d4;var _0x913d82;if(_0x305301['code']===Ct[_0x44c941(0x442)]){this[_0x44c941(0x3ae)][_0x44c941(0x1bb)]({'type':pe['MessageType'][_0x44c941(0x3d1)],'content':this[_0x44c941(0x163)]['t'](_0x44c941(0x81))}),this[_0x44c941(0x92)][_0x44c941(0x261)](0x2);return;}this['_sessionStatus$'][_0x44c941(0x261)](0x3);const _0x4b2a8a=(_0x913d82=_0x305301[_0x44c941(0x351)][_0x44c941(0xcd)][this['_unitID']])==null?void 0x0:_0x913d82['members'];_0x4b2a8a&&_0x4b2a8a[_0x44c941(0x362)](_0x4aa47c=>this['_memberService'][_0x44c941(0x24b)](this[_0x44c941(0x2eb)],_0x4aa47c));}[_0x3ee1d4(0x22b)](_0x25b11e){const _0x164eed=_0x3ee1d4;try{const _0x3ecbff=_0x25b11e['data'];switch(_0x3ecbff[_0x164eed(0xe1)]){case S[_0x164eed(0x2d3)]['USERS_ENTER']:this[_0x164eed(0x1f4)](_0x3ecbff),this[_0x164eed(0x43e)]['next'](_0x3ecbff);break;case S['CollaborationEvent'][_0x164eed(0x339)]:this[_0x164eed(0xc8)](_0x3ecbff),this['_event$'][_0x164eed(0x261)](_0x3ecbff);break;case S['CollaborationEvent'][_0x164eed(0x506)]:case S[_0x164eed(0x2d3)][_0x164eed(0x470)]:this[_0x164eed(0x4d3)](),this[_0x164eed(0x2d0)](),this[_0x164eed(0x43e)][_0x164eed(0x261)](_0x3ecbff);break;case S[_0x164eed(0x2d3)][_0x164eed(0x4a3)]:this[_0x164eed(0x416)][_0x164eed(0x97)](_0x164eed(0x284)+JSON[_0x164eed(0xd2)](_0x3ecbff)),this['_event$']['next'](_0x3ecbff);break;case S[_0x164eed(0x2d3)][_0x164eed(0x2e9)]:this[_0x164eed(0x4d2)][_0x164eed(0x21b)](_0x3ecbff['data']),this[_0x164eed(0x43e)][_0x164eed(0x261)](_0x3ecbff);break;default:this[_0x164eed(0x43e)]['next'](_0x3ecbff);}}catch(_0x1ef357){this[_0x164eed(0x416)][_0x164eed(0x97)](_0x1ef357,_0x25b11e);}}['_onUserJoin'](_0x4523cc){const _0xde7a71=_0x3ee1d4;this[_0xde7a71(0x18e)][_0xde7a71(0x24b)](this[_0xde7a71(0x2eb)],_0x4523cc[_0xde7a71(0x351)]);}['_onUserLeave'](_0x14f5a7){const _0x2de974=_0x3ee1d4;this['_memberService'][_0x2de974(0x219)](this[_0x2de974(0x2eb)],_0x14f5a7[_0x2de974(0x351)][_0x2de974(0x50f)]);}async[_0x3ee1d4(0x133)](_0x1ca48e,_0x5630d4){const _0x89292e=_0x3ee1d4;if(this['sessionStatus']!==0x3||!this[_0x89292e(0x24e)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x1ca48e[_0x89292e(0xe1)]===S['CollaborationEvent'][_0x89292e(0x4c9)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x89292e(0x197)](_0x1ca48e)),this[_0x89292e(0x24e)]['send']({'cmd':G['INGEST'],'routeKey':_0x5630d4,'routeType':'','data':_0x1ca48e});}catch(_0x19aeeb){this[_0x89292e(0x416)][_0x89292e(0x97)](_0x19aeeb);}}[_0x3ee1d4(0x3ca)](){const _0x1b687a=_0x3ee1d4;var _0xcca381;this[_0x1b687a(0x43a)]=window[_0x1b687a(0x335)](()=>{const _0x48803d=_0x1b687a;this['_collaborationTimeoutTimer']=null,this[_0x48803d(0x3ae)][_0x48803d(0x1bb)]({'type':pe[_0x48803d(0x382)]['Error'],'content':this[_0x48803d(0x163)]['t'](_0x48803d(0x383))});},(_0xcca381=this[_0x1b687a(0x320)][_0x1b687a(0x79)](It))!=null?_0xcca381:tn);}[_0x3ee1d4(0x2d0)](){const _0x1a9f83=_0x3ee1d4;this[_0x1a9f83(0x43a)]&&(clearTimeout(this[_0x1a9f83(0x43a)]),this[_0x1a9f83(0x43a)]=null);}[_0x3ee1d4(0x197)](_0x7bf9e5){const _0x11c58d=_0x3ee1d4;if(!this['_shouldReportTelemetry'])return;const {data:_0x1633f5}=_0x7bf9e5,{unitID:_0x368789,changeset:_0x1f78bb}=_0x1633f5,{mutations:_0x2e8d62,type:_0x4c5219}=_0x1f78bb;this[_0x11c58d(0x3f3)]={'unitId':_0x368789,'type':_0x4c5219,'startTime':performance[_0x11c58d(0x90)](),'stopTime':0x0,'duration':0x0,'size':Zn(_0x2e8d62)};}[_0x3ee1d4(0x4d3)](){const _0x42e07f=_0x3ee1d4;if(this[_0x42e07f(0x237)]){if(!this[_0x42e07f(0x3f3)]){this['_logService'][_0x42e07f(0x97)](_0x42e07f(0x3dd),_0x42e07f(0x2a7));return;}this[_0x42e07f(0x3f3)]['stopTime']=performance[_0x42e07f(0x90)](),this[_0x42e07f(0x3f3)][_0x42e07f(0x228)]=this[_0x42e07f(0x3f3)]['stopTime']-this['_telemetryInfo'][_0x42e07f(0x14a)],this[_0x42e07f(0xc7)][_0x42e07f(0x87)](Jn,this[_0x42e07f(0x3f3)]),this[_0x42e07f(0x3f3)]=null;}}[_0x3ee1d4(0x22d)](){const _0x223414=_0x3ee1d4;this[_0x223414(0x3f3)]=null;}},exports[_0x3ee1d4(0x4ea)]=ri([de(0x2,a[_0x3ee1d4(0x25c)]),de(0x3,te['IBeforeCloseService']),de(0x4,te[_0x3ee1d4(0xf4)]),de(0x5,a[_0x3ee1d4(0x153)]),de(0x6,a['Inject'](a[_0x3ee1d4(0x2ae)])),de(0x7,a['Inject'](exports[_0x3ee1d4(0x2fd)])),de(0x8,a[_0x3ee1d4(0x4c5)](bt)),de(0x9,a['Optional'](Nn[_0x3ee1d4(0x38e)]))],exports['CollaborationSession']);var oi=Object[_0x3ee1d4(0x4ef)],ai=Object['getOwnPropertyDescriptor'],ci=(_0x276a50,_0x55ea92,_0x3c5209,_0x1d9a02)=>{const _0x505677=_0x3ee1d4;for(var _0x25224c=_0x1d9a02>0x1?void 0x0:_0x1d9a02?ai(_0x55ea92,_0x3c5209):_0x55ea92,_0x4def39=_0x276a50[_0x505677(0x156)]-0x1,_0x4bca40;_0x4def39>=0x0;_0x4def39--)(_0x4bca40=_0x276a50[_0x4def39])&&(_0x25224c=(_0x1d9a02?_0x4bca40(_0x55ea92,_0x3c5209,_0x25224c):_0x4bca40(_0x25224c))||_0x25224c);return _0x1d9a02&&_0x25224c&&oi(_0x55ea92,_0x3c5209,_0x25224c),_0x25224c;},Ce=(_0x3a7ebd,_0x22873b)=>(_0x4e96e5,_0x2d0099)=>_0x22873b(_0x4e96e5,_0x2d0099,_0x3a7ebd);exports['CollaborationSessionService']=class extends a[_0x3ee1d4(0xbf)]{constructor(_0x18192d,_0x53db5c,_0x9111d0,_0x1a8bee,_0x258d12,_0x344c53){const _0x301c79=_0x3ee1d4;super(),I(this,_0x301c79(0x347),new A['BehaviorSubject'](void 0x0)),I(this,_0x301c79(0x4a8),this[_0x301c79(0x347)][_0x301c79(0x3d4)]()),I(this,_0x301c79(0x1e1),null),I(this,_0x301c79(0x1ff),new Map()),I(this,_0x301c79(0x517),new A[(_0x301c79(0x45c))](re[_0x301c79(0x447)])),I(this,_0x301c79(0x1a6),this[_0x301c79(0x517)][_0x301c79(0x3d4)]()),I(this,_0x301c79(0x51f),!0x1),I(this,'_retryConnectingTimer'),I(this,_0x301c79(0x202),0x0),I(this,_0x301c79(0x215)),I(this,'_timeoutTimer'),(this[_0x301c79(0x390)]=_0x18192d,this[_0x301c79(0x163)]=_0x53db5c,this[_0x301c79(0x3ae)]=_0x9111d0,this[_0x301c79(0x416)]=_0x1a8bee,this[_0x301c79(0x320)]=_0x258d12,this[_0x301c79(0x498)]=_0x344c53,this[_0x301c79(0x478)]());}get['_socket'](){const _0x528110=_0x3ee1d4;return this[_0x528110(0x347)]['getValue']();}[_0x3ee1d4(0x478)](){this['_listenToOfflineEvent'](),this['_listenToOnlineEvent']();}[_0x3ee1d4(0x292)](){const _0x14ec48=_0x3ee1d4;super[_0x14ec48(0x292)](),this[_0x14ec48(0x1ff)][_0x14ec48(0x362)](_0x526d86=>_0x526d86[_0x14ec48(0x292)]()),this[_0x14ec48(0x1ff)][_0x14ec48(0x39e)](),this[_0x14ec48(0x517)]['complete']();}async['requireSession'](_0x13adba){const _0x23a97c=_0x3ee1d4;if(this['_sessions'][_0x23a97c(0x95)](_0x13adba))return this['_sessions'][_0x23a97c(0x3ad)](_0x13adba);this['_tryEnsureSocket']();const _0x5fb239=this['_injector'][_0x23a97c(0x4d4)](exports[_0x23a97c(0x4ea)],_0x13adba,this[_0x23a97c(0x347)][_0x23a97c(0x3d4)]());return this['_sessions'][_0x23a97c(0x276)](_0x13adba,_0x5fb239),_0x5fb239;}['closeSession'](_0x1c6e1d){const _0x47b437=_0x3ee1d4;var _0x46d0c0;const _0x4cb636=this['_sessions'][_0x47b437(0x3ad)](_0x1c6e1d);_0x4cb636&&(this['_sessions'][_0x47b437(0xd9)](_0x1c6e1d),_0x4cb636['close']()),this['_sessions']['size']||(_0x46d0c0=this[_0x47b437(0x24e)])==null||_0x46d0c0[_0x47b437(0x2b7)]();}[_0x3ee1d4(0x4fb)](){const _0x5b00ad=_0x3ee1d4;this['_retryCount']=0x0,this[_0x5b00ad(0x2ba)]!=null&&(clearTimeout(this[_0x5b00ad(0x2ba)]),this['_retryConnectingTimer']=null),this[_0x5b00ad(0x473)]();}[_0x3ee1d4(0x126)](){const _0x1386fb=_0x3ee1d4;var _0x2b9d7b,_0x23c090;const _0x100260=this[_0x1386fb(0x320)][_0x1386fb(0x79)](Qt),_0x24598f=this['_configService'][_0x1386fb(0x79)](ne),_0x2aaba0=(_0x23c090=(_0x2b9d7b=_0x24598f==null?void 0x0:_0x24598f[_0x1386fb(0x10b)])!=null?_0x2b9d7b:_0x100260)!=null?_0x23c090:Hn,_0x147d1e=this['_socketService'][_0x1386fb(0x21e)](_0x2aaba0);return this['_candidateSocket']=_0x147d1e,_0x147d1e;}[_0x3ee1d4(0x4cf)](){const _0x3f8bc5=_0x3ee1d4;var _0x115f2b,_0x15afbc;try{const _0x6d3255=(_0x15afbc=(_0x115f2b=this[_0x3f8bc5(0x24e)])!=null?_0x115f2b:this[_0x3f8bc5(0x1e1)])!=null?_0x15afbc:this[_0x3f8bc5(0x126)]();if(_0x6d3255){const _0xfb0b9f=_0x6d3255['send'];_0x6d3255['send']=_0x1f1870=>(this[_0x3f8bc5(0x4b2)](),_0xfb0b9f[_0x3f8bc5(0x491)](_0x6d3255,[_0x1f1870])),_0x6d3255[_0x3f8bc5(0x25d)][_0x3f8bc5(0x455)](_0x4208ab=>this['_onMessage'](_0x6d3255,_0x4208ab)),_0x6d3255[_0x3f8bc5(0x422)][_0x3f8bc5(0x32f)](V[_0x3f8bc5(0x403)](0x1))[_0x3f8bc5(0x455)](_0x5a3ad5=>this[_0x3f8bc5(0x416)][_0x3f8bc5(0x97)](_0x3f8bc5(0x222),_0x5a3ad5)),_0x6d3255[_0x3f8bc5(0x504)][_0x3f8bc5(0x32f)](V[_0x3f8bc5(0x403)](0x1))[_0x3f8bc5(0x455)](()=>{this['_onConnectionOpen'](_0x6d3255);}),_0x6d3255[_0x3f8bc5(0x2a4)]['pipe'](V['take'](0x1))[_0x3f8bc5(0x455)](_0x1a654b=>{const _0x922aaf=_0x3f8bc5;this[_0x922aaf(0x416)][_0x922aaf(0x40d)](_0x922aaf(0x32e),_0x922aaf(0x159),_0x1a654b),this[_0x922aaf(0x454)]();});}}catch(_0xe5fb52){this[_0x3f8bc5(0x416)]['error'](_0xe5fb52),this['_onConnectionFailed']();}}[_0x3ee1d4(0x4b4)](_0x31c156){const _0x368673=_0x3ee1d4;this[_0x368673(0x416)][_0x368673(0x40d)]('[CollaborationSessionService]','socket\x20open.'),_0x31c156['send']({'cmd':G[_0x368673(0x33a)]}),this[_0x368673(0x4b2)]();}[_0x3ee1d4(0x4e8)](){const _0x586e10=_0x3ee1d4;window[_0x586e10(0x1fe)](_0x586e10(0x1b4),()=>this['_onOffline']());}['_onOffline'](){const _0x2d2bfd=_0x3ee1d4;this[_0x2d2bfd(0x51f)]=!0x1,this[_0x2d2bfd(0x1e1)]=null,this['_status$']['next'](re[_0x2d2bfd(0x386)]),this[_0x2d2bfd(0x347)][_0x2d2bfd(0x261)](null),this[_0x2d2bfd(0x3a9)](),this[_0x2d2bfd(0x47f)]();}[_0x3ee1d4(0x454)](){const _0xea82ae=_0x3ee1d4;var _0x2626b3;this[_0xea82ae(0x225)](),this[_0xea82ae(0x202)]<((_0x2626b3=this[_0xea82ae(0x320)]['getConfig'](nn))!=null?_0x2626b3:Wn)?(this[_0xea82ae(0x3ae)][_0xea82ae(0x1bb)]({'key':'collaboration-session-retry','type':pe[_0xea82ae(0x382)][_0xea82ae(0x3d1)],'content':this[_0xea82ae(0x163)]['t'](_0xea82ae(0x460))}),this[_0xea82ae(0x473)]()):this[_0xea82ae(0x3ae)]['show']({'key':_0xea82ae(0x19f),'type':pe[_0xea82ae(0x382)][_0xea82ae(0x1c3)],'content':this[_0xea82ae(0x163)]['t']('session.connection-failed')});}[_0x3ee1d4(0x488)](){const _0xba2a89=_0x3ee1d4,_0x1c4fe0=()=>{const _0x36d21c=_0x51c9;this[_0x36d21c(0x24e)]||this[_0x36d21c(0x4fb)]();},_0x34ff65=()=>{const _0x55c006=_0x51c9;this[_0x55c006(0x24e)]||document[_0x55c006(0x20f)]==='hidden'||this['reconnect']();};window[_0xba2a89(0x1fe)](_0xba2a89(0xc4),_0x1c4fe0),document[_0xba2a89(0x1fe)](_0xba2a89(0x3b4),_0x34ff65);}[_0x3ee1d4(0x473)](){const _0x4ed610=_0x3ee1d4;var _0x5bc24e;const _0x5a8487=this[_0x4ed610(0x202)],_0x2e1b05=this['_configService'][_0x4ed610(0x79)](ne),_0x38e8b9=_0x5a8487===0x0?0x0:((_0x5bc24e=_0x2e1b05==null?void 0x0:_0x2e1b05['retryConnectingInterval'])!=null?_0x5bc24e:kn)*0x2**_0x5a8487;this['_retryConnectingTimer']=window[_0x4ed610(0x335)](()=>{const _0x335352=_0x4ed610;clearTimeout(this[_0x335352(0x2ba)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x38e8b9),this['_retryCount']+=0x1;}[_0x3ee1d4(0x34b)](_0x61d6d0,_0x3a03a4){const _0x1acedf=_0x3ee1d4,{cmd:_0x39426c}=_0x3a03a4;_0x39426c===G[_0x1acedf(0x33a)]&&!this['_socketReady']&&(_0x61d6d0[_0x1acedf(0x50f)]=_0x3a03a4[_0x1acedf(0x351)]['memberID'],this[_0x1acedf(0x347)]['next'](_0x61d6d0),this['_status$'][_0x1acedf(0x261)](re['ONLINE']),this[_0x1acedf(0x51f)]=!0x0,this[_0x1acedf(0x1e1)]=null),_0x39426c===G[_0x1acedf(0x192)]&&this[_0x1acedf(0x3a9)](),this[_0x1acedf(0x4b2)]();}['_rescheduleHeartbeat'](){const _0x2923cc=_0x3ee1d4;var _0x5ad49b;this[_0x2923cc(0x47f)](),this['_sendHeartbeatTimer']=window[_0x2923cc(0x335)](()=>this[_0x2923cc(0x3ec)](),(_0x5ad49b=this[_0x2923cc(0x320)][_0x2923cc(0x79)](en))!=null?_0x5ad49b:Bn);}[_0x3ee1d4(0x3ec)](){const _0x4f4605=_0x3ee1d4;this[_0x4f4605(0x24e)][_0x4f4605(0x133)]({'cmd':G['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x3ee1d4(0x4cd)](){const _0x41d5ff=_0x3ee1d4;var _0x1caab7;this[_0x41d5ff(0x208)]=window['setTimeout'](()=>this[_0x41d5ff(0x454)](),(_0x1caab7=this[_0x41d5ff(0x320)][_0x41d5ff(0x79)](It))!=null?_0x1caab7:tn);}['_clearHeartbeatTimer'](){const _0x14e709=_0x3ee1d4;this[_0x14e709(0x215)]!=null&&(clearTimeout(this[_0x14e709(0x215)]),this[_0x14e709(0x215)]=null);}[_0x3ee1d4(0x3a9)](){const _0x477cf3=_0x3ee1d4;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x477cf3(0x208)]),this[_0x477cf3(0x208)]=null);}},exports['CollaborationSessionService']=ci([Ce(0x0,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),Ce(0x1,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x2ae)])),Ce(0x2,te[_0x3ee1d4(0xf4)]),Ce(0x3,a[_0x3ee1d4(0x25c)]),Ce(0x4,a[_0x3ee1d4(0x153)]),Ce(0x5,Et)],exports['CollaborationSessionService']);var Y=[];for(var Xe=0x0;Xe<0x100;++Xe)Y[_0x3ee1d4(0x462)]((Xe+0x100)['toString'](0x10)[_0x3ee1d4(0x160)](0x1));function li(_0x123024,_0x2c1928=0x0){const _0xdff854=_0x3ee1d4;return(Y[_0x123024[_0x2c1928+0x0]]+Y[_0x123024[_0x2c1928+0x1]]+Y[_0x123024[_0x2c1928+0x2]]+Y[_0x123024[_0x2c1928+0x3]]+'-'+Y[_0x123024[_0x2c1928+0x4]]+Y[_0x123024[_0x2c1928+0x5]]+'-'+Y[_0x123024[_0x2c1928+0x6]]+Y[_0x123024[_0x2c1928+0x7]]+'-'+Y[_0x123024[_0x2c1928+0x8]]+Y[_0x123024[_0x2c1928+0x9]]+'-'+Y[_0x123024[_0x2c1928+0xa]]+Y[_0x123024[_0x2c1928+0xb]]+Y[_0x123024[_0x2c1928+0xc]]+Y[_0x123024[_0x2c1928+0xd]]+Y[_0x123024[_0x2c1928+0xe]]+Y[_0x123024[_0x2c1928+0xf]])[_0xdff854(0x47b)]();}var xe,hi=new Uint8Array(0x10);function _i(){const _0x25eb00=_0x3ee1d4;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0x25eb00(0x82)]&&crypto['getRandomValues'][_0x25eb00(0x2b3)](crypto),!xe))throw new Error(_0x25eb00(0x496));return xe(hi);}var ui=typeof crypto<'u'&&crypto[_0x3ee1d4(0x103)]&&crypto['randomUUID']['bind'](crypto);const Ut={'randomUUID':ui};function di(_0x53bc01,_0xf0893c,_0x54308d){const _0x1d102d=_0x3ee1d4;if(Ut[_0x1d102d(0x103)]&&!_0xf0893c&&!_0x53bc01)return Ut[_0x1d102d(0x103)]();_0x53bc01=_0x53bc01||{};var _0x6f9d03=_0x53bc01[_0x1d102d(0x1db)]||(_0x53bc01[_0x1d102d(0x4c8)]||_i)();return _0x6f9d03[0x6]=_0x6f9d03[0x6]&0xf|0x40,_0x6f9d03[0x8]=_0x6f9d03[0x8]&0x3f|0x80,li(_0x6f9d03);}var fi=Object['defineProperty'],vi=Object['getOwnPropertyDescriptor'],mi=(_0x53aefc,_0x4ff023,_0x395aa3,_0x451bbc)=>{const _0x2239e8=_0x3ee1d4;for(var _0x41e03b=_0x451bbc>0x1?void 0x0:_0x451bbc?vi(_0x4ff023,_0x395aa3):_0x4ff023,_0x332681=_0x53aefc[_0x2239e8(0x156)]-0x1,_0xf10325;_0x332681>=0x0;_0x332681--)(_0xf10325=_0x53aefc[_0x332681])&&(_0x41e03b=(_0x451bbc?_0xf10325(_0x4ff023,_0x395aa3,_0x41e03b):_0xf10325(_0x41e03b))||_0x41e03b);return _0x451bbc&&_0x41e03b&&fi(_0x4ff023,_0x395aa3,_0x41e03b),_0x41e03b;},Je=(_0x1af7fc,_0x15f02f)=>(_0x521e94,_0x456f6c)=>_0x15f02f(_0x521e94,_0x456f6c,_0x1af7fc);let Be=class{constructor(_0x5ca9e0,_0x2b75c5,_0x700c4b){const _0x37495a=_0x3ee1d4;this[_0x37495a(0x390)]=_0x5ca9e0,this[_0x37495a(0x414)]=_0x2b75c5,this['_renderManagerService']=_0x700c4b;}[_0x3ee1d4(0x2b8)](_0x5a1f39){const _0x75f9d4=_0x3ee1d4;this[_0x75f9d4(0x265)](_0x5a1f39),this[_0x75f9d4(0xc6)](_0x5a1f39);}[_0x3ee1d4(0x1fc)](_0x1da8d2){const _0x5a39df=_0x3ee1d4,{unitID:_0x427277}=_0x1da8d2,_0x3b3c26=this[_0x5a39df(0x11b)][_0x5a39df(0x201)](_0x427277)['with'](Z[_0x5a39df(0x4e3)]),{redoCache:_0x4288a2}=_0x3b3c26[_0x5a39df(0x409)]();if(_0x4288a2['length']===0x0)return _0x1da8d2;let _0x6a25dd=a[_0x5a39df(0x43f)][_0x5a39df(0x500)](_0x1da8d2[_0x5a39df(0x1a7)][0x0]);for(let _0x312d1c=0x0;_0x312d1c<_0x4288a2[_0x5a39df(0x156)];_0x312d1c++){const _0x50d973={'id':_0x5a39df(0x1e2),'params':{..._0x4288a2[_0x312d1c]}},_0x1eca4a=this['_transformService'][_0x5a39df(0x139)](_0x6a25dd,_0x50d973,!0x1);if(S[_0x5a39df(0x2f0)](_0x1eca4a))throw _0x1eca4a[_0x5a39df(0x97)];_0x6a25dd=_0x1eca4a[_0x5a39df(0x3f5)];}return{...a[_0x5a39df(0x43f)][_0x5a39df(0x500)](_0x1da8d2),'mutations':[_0x6a25dd]};}[_0x3ee1d4(0x265)](_0x265455){const _0x113200=_0x3ee1d4,{unitID:_0x1ab4b1}=_0x265455,_0x665afd=this[_0x113200(0x11b)][_0x113200(0x201)](_0x1ab4b1)[_0x113200(0x3a6)](Z[_0x113200(0x4e3)]),{undoCache:_0x134476,redoCache:_0x573abe}=_0x665afd['getUndoRedoMutationParamsCache']();if(_0x134476[_0x113200(0x156)]===0x0||_0x573abe[_0x113200(0x156)]===0x0)return;const _0x12dbdb=[],_0x321499=[];let _0x950a92=a[_0x113200(0x43f)][_0x113200(0x500)](_0x265455['mutations'][0x0]),_0x4c3a9e=a[_0x113200(0x43f)]['deepClone'](_0x265455[_0x113200(0x1a7)][0x0]);for(let _0x18a9f1=_0x134476[_0x113200(0x156)]-0x1;_0x18a9f1>=0x0;_0x18a9f1--){const _0x2da1eb={'id':_0x113200(0x1e2),'params':{..._0x134476[_0x18a9f1]}},_0x3551e4={'id':_0x113200(0x1e2),'params':{..._0x573abe[_0x18a9f1]}},_0x2e47be=this[_0x113200(0x414)]['transformMutation'](_0x950a92,_0x2da1eb,!0x1),_0x11accd=this['_transformService'][_0x113200(0x139)](_0x4c3a9e,_0x3551e4,!0x1);if(S[_0x113200(0x2f0)](_0x2e47be))throw _0x2e47be[_0x113200(0x97)];if(S[_0x113200(0x2f0)](_0x11accd))throw _0x11accd[_0x113200(0x97)];_0x12dbdb[_0x113200(0x179)](_0x2e47be[_0x113200(0x3fb)]['params']),_0x321499[_0x113200(0x179)](_0x11accd[_0x113200(0x3fb)]['params']),_0x950a92=_0x2e47be['m1Prime'],_0x4c3a9e=_0x11accd[_0x113200(0x3f5)];}_0x665afd[_0x113200(0x334)]({'undoCache':_0x12dbdb,'redoCache':_0x321499});}['_transformPreviousActiveRange'](_0x5c5092){const _0x4bac70=_0x3ee1d4,{unitID:_0xe27371}=_0x5c5092,_0x4667e7=this[_0x4bac70(0x11b)]['getRenderById'](_0xe27371)[_0x4bac70(0x3a6)](Z[_0x4bac70(0x4e3)]),_0x165d78=_0x4667e7[_0x4bac70(0x4d8)]();if(_0x165d78==null)return;const _0x1479da=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5c5092['unitID'],'actions':null,'textRanges':[_0x165d78]}}],_0x26d37b=this[_0x4bac70(0x414)]['transformMutationsWithChangeset'](_0x5c5092,_0x1479da);if(!S['isTransformMutationsWithChangesetSuccess'](_0x26d37b))throw _0x26d37b[_0x4bac70(0x97)];const _0x49f39f=_0x26d37b[_0x4bac70(0x3fb)][0x0]['params'][_0x4bac70(0x42d)];Array[_0x4bac70(0x423)](_0x49f39f)&&_0x49f39f[_0x4bac70(0x156)]&&_0x4667e7[_0x4bac70(0x211)](_0x49f39f[0x0]);}};Be=mi([Je(0x0,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),Je(0x1,S[_0x3ee1d4(0x4bb)]),Je(0x2,K[_0x3ee1d4(0x20d)])],Be);var Si=Object[_0x3ee1d4(0x4ef)],pi=Object[_0x3ee1d4(0xe2)],gi=(_0xac1dd9,_0x2c242a,_0x2e72ca,_0x1e7336)=>{for(var _0x572edf=_0x1e7336>0x1?void 0x0:_0x1e7336?pi(_0x2c242a,_0x2e72ca):_0x2c242a,_0x864f90=_0xac1dd9['length']-0x1,_0x19edc0;_0x864f90>=0x0;_0x864f90--)(_0x19edc0=_0xac1dd9[_0x864f90])&&(_0x572edf=(_0x1e7336?_0x19edc0(_0x2c242a,_0x2e72ca,_0x572edf):_0x19edc0(_0x572edf))||_0x572edf);return _0x1e7336&&_0x572edf&&Si(_0x2c242a,_0x2e72ca,_0x572edf),_0x572edf;},we=(_0x276438,_0x12ea61)=>(_0x45e4c8,_0x2be5f5)=>_0x12ea61(_0x45e4c8,_0x2be5f5,_0x276438);exports[_0x3ee1d4(0xa4)]=class extends a[_0x3ee1d4(0xbf)]{constructor(_0x23a981,_0x9f6bc3,_0x4c22a2,_0x280894,_0x1dd4cf){const _0x5cd805=_0x3ee1d4;super(),I(this,_0x5cd805(0x1a8),new Map()),I(this,_0x5cd805(0x42e),new Map()),I(this,_0x5cd805(0x3c4),!0x1),(this['_configService']=_0x23a981,this[_0x5cd805(0x36a)]=_0x9f6bc3,this['_beforeCloseService']=_0x4c22a2,this[_0x5cd805(0x163)]=_0x280894,this[_0x5cd805(0xca)]=_0x1dd4cf,this[_0x5cd805(0x1ed)]());}[_0x3ee1d4(0x31d)](){const _0x22e2da=_0x3ee1d4;this[_0x22e2da(0x3c4)]=!0x0;}[_0x3ee1d4(0x1f5)](){this['_disabled']=!0x1;}[_0x3ee1d4(0x292)](){const _0x5b031d=_0x3ee1d4;this['exhaustSavingTask']()['then'](()=>super[_0x5b031d(0x292)]());}async[_0x3ee1d4(0x4c3)](_0x435657){const _0x205b52=_0x3ee1d4;return this[_0x205b52(0x3c4)]?null:this[_0x205b52(0x36a)][_0x205b52(0x2de)](Mt(_0x435657));}async[_0x3ee1d4(0x1e7)](_0x1b9d37,_0x5f547e){const _0x1eded3=_0x3ee1d4;return!!this[_0x1eded3(0x36a)][_0x1eded3(0x17b)](_0x1b9d37,_0x5f547e);}['updateOfflineData'](_0x240eed,_0x3a25af,_0x805bc4,_0x48705c){const _0x1cce2f=_0x3ee1d4,_0x122314=this[_0x1cce2f(0xca)][_0x1cce2f(0x246)](_0x240eed);this['_cachedData']['set'](_0x240eed,{'unitID':_0x240eed,'type':_0x3a25af,'awaitingChangeset':_0x805bc4,'mutations':_0x48705c,'rev':_0x122314}),this[_0x1cce2f(0x42e)][_0x1cce2f(0x95)](_0x240eed)||this[_0x1cce2f(0x37a)](_0x240eed);}[_0x3ee1d4(0x37a)](_0xec4184){const _0x129726=_0x3ee1d4,_0x396302=this[_0x129726(0x24d)]();_0x396302===0x0?this['_saveCache'](_0xec4184):this[_0x129726(0x42e)][_0x129726(0x276)](_0xec4184,setTimeout(()=>this[_0x129726(0x204)](_0xec4184),_0x396302));}[_0x3ee1d4(0x24d)](){const _0x5623d2=_0x3ee1d4;var _0x287a3b;return(_0x287a3b=this[_0x5623d2(0x320)]['getConfig'](sn))!=null?_0x287a3b:Fn;}[_0x3ee1d4(0x204)](_0x39d9aa){const _0x427cca=_0x3ee1d4,_0x5bfa1e=this[_0x427cca(0x42e)][_0x427cca(0x3ad)](_0x39d9aa);return _0x5bfa1e!==void 0x0&&window['clearTimeout'](_0x5bfa1e),this[_0x427cca(0x36a)][_0x427cca(0x17b)](Mt(_0x39d9aa),this[_0x427cca(0x1a8)]['get'](_0x39d9aa))[_0x427cca(0x107)](()=>this['_saveTaskMap'][_0x427cca(0xd9)](_0x39d9aa));}async[_0x3ee1d4(0x132)](){const _0x28a7a4=_0x3ee1d4,_0x279584=[];this['_saveTaskMap'][_0x28a7a4(0x362)]((_0x18011b,_0x33d26f)=>{const _0x1c1605=_0x28a7a4;window[_0x1c1605(0x312)](_0x18011b),_0x279584[_0x1c1605(0x462)](this[_0x1c1605(0x204)](_0x33d26f)[_0x1c1605(0x107)](()=>{const _0x33bdb9=_0x1c1605;this[_0x33bdb9(0x42e)][_0x33bdb9(0xd9)](_0x33d26f);}));}),await Promise[_0x28a7a4(0x30a)](_0x279584);}['_setupBeforeClosingHandler'](){const _0x258b7d=_0x3ee1d4;this[_0x258b7d(0x4bd)](this[_0x258b7d(0x364)][_0x258b7d(0x30e)](()=>{const _0x2bf513=_0x258b7d;if(this['_saveTaskMap'][_0x2bf513(0xb5)])return this[_0x2bf513(0x163)]['t'](_0x2bf513(0x358));}));}},exports[_0x3ee1d4(0xa4)]=gi([we(0x0,a['IConfigService']),we(0x1,a[_0x3ee1d4(0x280)]),we(0x2,te['IBeforeCloseService']),we(0x3,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x2ae)])),we(0x4,a['Inject'](S['RevisionService']))],exports[_0x3ee1d4(0xa4)]);function Mt(_0x54e27b){const _0x40ee24=_0x3ee1d4;return _0x40ee24(0x309)+_0x54e27b;}var Ii=Object[_0x3ee1d4(0x4ef)],Ci=Object['getOwnPropertyDescriptor'],Ei=(_0x398531,_0x1a756c,_0x84ea39,_0x37c276)=>{const _0x4b10ac=_0x3ee1d4;for(var _0x230b47=_0x37c276>0x1?void 0x0:_0x37c276?Ci(_0x1a756c,_0x84ea39):_0x1a756c,_0x3f319b=_0x398531[_0x4b10ac(0x156)]-0x1,_0x284732;_0x3f319b>=0x0;_0x3f319b--)(_0x284732=_0x398531[_0x3f319b])&&(_0x230b47=(_0x37c276?_0x284732(_0x1a756c,_0x84ea39,_0x230b47):_0x284732(_0x230b47))||_0x230b47);return _0x37c276&&_0x230b47&&Ii(_0x1a756c,_0x84ea39,_0x230b47),_0x230b47;},Ze=(_0x4d0701,_0x12665d)=>(_0x59972c,_0x1d6743)=>_0x12665d(_0x59972c,_0x1d6743,_0x4d0701);function bi(_0xbb16ef){const _0x30fbdd=_0x3ee1d4,{unitID:_0x323f47,mutations:_0xf5d242}=_0xbb16ef;return{'unitId':_0x323f47,'subUnitId':_0xf5d242[0x0][_0x30fbdd(0x507)]['subUnitId']};}let ke=class{constructor(_0x14b439,_0x443126,_0x58b6aa){const _0x599da9=_0x3ee1d4;this[_0x599da9(0x390)]=_0x14b439,this['_transformService']=_0x443126,this[_0x599da9(0xda)]=_0x58b6aa;}['transformSelections'](_0x50defa){const _0x3d556e=_0x3ee1d4;var _0x1c3fad,_0x41c3d2,_0x666865,_0x27e0e3;const _0x2e12b5=this[_0x3d556e(0x390)][_0x3d556e(0x3ad)](k[_0x3d556e(0x4e4)]),{unitId:_0x436e30,subUnitId:_0x1d926b}=bi(_0x50defa),_0x5b46db=_0x2e12b5[_0x3d556e(0x3bd)](_0x436e30)[_0x3d556e(0x2d5)](),_0x189646=(_0x41c3d2=(_0x1c3fad=this[_0x3d556e(0xda)][_0x3d556e(0x286)](_0x436e30))==null?void 0x0:_0x1c3fad[_0x3d556e(0x2da)]())==null?void 0x0:_0x41c3d2['getSheetId']();if(_0x5b46db[_0x3d556e(0x156)]===0x0||!_0x436e30||!_0x1d926b)return;const _0x34d48b=[{'id':k['SetSelectionsOperation']['id'],'params':{'unitId':_0x436e30,'subUnitId':_0x189646,'selections':a[_0x3d556e(0x43f)]['deepClone'](_0x5b46db)}}],_0x428d06=this[_0x3d556e(0x414)][_0x3d556e(0x1ae)](_0x50defa,_0x34d48b);if(!S[_0x3d556e(0x2f7)](_0x428d06))throw _0x428d06[_0x3d556e(0x97)];const _0x2e3356=(_0x27e0e3=(_0x666865=_0x428d06[_0x3d556e(0x3fb)][0x0])==null?void 0x0:_0x666865[_0x3d556e(0x507)])==null?void 0x0:_0x27e0e3[_0x3d556e(0x4d9)];if(Array[_0x3d556e(0x423)](_0x2e3356)&&_0x2e3356['length']){if(_0x2e3356[_0x3d556e(0x156)]===_0x34d48b[0x0][_0x3d556e(0x507)]['selections'][_0x3d556e(0x156)]&&_0x2e3356['every']((_0x505952,_0x5c7b9d)=>a[_0x3d556e(0xdd)][_0x3d556e(0x2b5)](_0x505952[_0x3d556e(0x3ff)],_0x34d48b[0x0][_0x3d556e(0x507)][_0x3d556e(0x4d9)][_0x5c7b9d][_0x3d556e(0x3ff)])))return;this[_0x3d556e(0x390)][_0x3d556e(0x3ad)](a[_0x3d556e(0x1cc)])[_0x3d556e(0x1ec)](k[_0x3d556e(0x3a2)]['id'],{'unitId':_0x436e30,'subUnitId':_0x189646,'selections':_0x2e3356});}}};ke=Ei([Ze(0x0,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),Ze(0x1,S['ITransformService']),Ze(0x2,a['IUniverInstanceService'])],ke);const qe=a[_0x3ee1d4(0x466)](_0x3ee1d4(0x340));var _n=(_0x45c121=>(_0x45c121[_0x45c121[_0x3ee1d4(0x2fb)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x45c121[_0x45c121[_0x3ee1d4(0x4aa)]=0x1]=_0x3ee1d4(0x4aa),_0x45c121))(_n||{});const At=0x7530,Nt=_0x3ee1d4(0x1c4);class Ti extends a[_0x3ee1d4(0xbf)]{constructor(){const _0x2e9184=_0x3ee1d4;super(),I(this,_0x2e9184(0x2ff),a[_0x2e9184(0x43f)][_0x2e9184(0x245)]()),I(this,'_selfUnitIDs',new Set()),I(this,_0x2e9184(0x512),new Map()),I(this,'_heartbeatTimer',null),I(this,_0x2e9184(0x1bd),new Map()),I(this,_0x2e9184(0x1a2),new Map()),this[_0x2e9184(0x106)]();}[_0x3ee1d4(0x292)](){const _0x5e3c89=_0x3ee1d4;super[_0x5e3c89(0x292)](),this['_clearOtherTimers'][_0x5e3c89(0x362)]((_0x3f1ad0,_0x3b3ccf)=>this[_0x5e3c89(0x3e3)](_0x3b3ccf)),this[_0x5e3c89(0x75)]&&window[_0x5e3c89(0x12b)](this[_0x5e3c89(0x75)]);}[_0x3ee1d4(0x410)](_0x167594){const _0x1b7f94=_0x3ee1d4;return this[_0x1b7f94(0x3f0)](_0x167594)[_0x1b7f94(0x32f)](A[_0x1b7f94(0x465)]());}[_0x3ee1d4(0x1f2)](_0x216792){const _0x4a3efd=_0x3ee1d4;this[_0x4a3efd(0x494)][_0x4a3efd(0xb5)]===0x0&&this[_0x4a3efd(0x44c)](),this[_0x4a3efd(0x494)][_0x4a3efd(0xd6)](_0x216792),this[_0x4a3efd(0x3ce)]({'type':0x0,'memberID':this[_0x4a3efd(0x2ff)],'unitIDs':[_0x216792],'isForwarded':!0x1});}[_0x3ee1d4(0x391)](_0x1cbe7d){const _0x5dff3=_0x3ee1d4;this['_selfUnitIDs']['delete'](_0x1cbe7d),this[_0x5dff3(0x494)]['size']===0x0&&this[_0x5dff3(0x75)]&&window[_0x5dff3(0x12b)](this[_0x5dff3(0x75)]);}['_init'](){const _0x4e6bc9=_0x3ee1d4;this[_0x4e6bc9(0x4bd)](a[_0x4e6bc9(0x11a)](A[_0x4e6bc9(0x3d6)](window,'storage')[_0x4e6bc9(0x455)](_0x2a84fc=>{const _0x354487=_0x4e6bc9;if(_0x2a84fc[_0x354487(0x279)]!==Nt||!_0x2a84fc[_0x354487(0x18c)])return;const _0x4d5d50=JSON[_0x354487(0x2e7)](_0x2a84fc[_0x354487(0x18c)]);this[_0x354487(0x9f)](_0x4d5d50);}))),window[_0x4e6bc9(0x1fe)](_0x4e6bc9(0x4da),()=>this['_send']({'type':0x1,'memberID':this[_0x4e6bc9(0x2ff)],'unitIDs':Array[_0x4e6bc9(0x24a)](this[_0x4e6bc9(0x494)])}));}[_0x3ee1d4(0x9f)](_0x16eb6a){const _0x3b99b0=_0x3ee1d4;switch(_0x16eb6a[_0x3b99b0(0x4df)]){case 0x0:this[_0x3b99b0(0x21c)](_0x16eb6a);break;case 0x1:this[_0x3b99b0(0x48f)](_0x16eb6a);break;case 0x2:this[_0x3b99b0(0x4e6)](_0x16eb6a);break;}}[_0x3ee1d4(0x21c)](_0x1fe62b){const _0x33b43c=_0x3ee1d4,{unitIDs:_0x325fa7,memberID:_0x1b7bff,isForwarded:_0x415716}=_0x1fe62b;_0x325fa7['forEach'](_0x1edc36=>{const _0x3f6ca3=_0x51c9;if(!_0x415716&&this['_unitOnClients'][_0x3f6ca3(0x95)](_0x1edc36)&&this[_0x3f6ca3(0x3f0)](_0x1edc36)[_0x3f6ca3(0x261)](0x1),!this[_0x3f6ca3(0x512)][_0x3f6ca3(0x95)](_0x1edc36)||!this[_0x3f6ca3(0x512)][_0x3f6ca3(0x3ad)](_0x1edc36)['has'](_0x1b7bff)){const _0x5e967e=this[_0x3f6ca3(0x512)][_0x3f6ca3(0x3ad)](_0x1edc36)||new Set();_0x5e967e[_0x3f6ca3(0xd6)](_0x1b7bff),this['_unitOnClients'][_0x3f6ca3(0x276)](_0x1edc36,_0x5e967e),this[_0x3f6ca3(0x3d9)](_0x1b7bff);}}),_0x415716||this[_0x33b43c(0x3ce)]({'type':0x0,'memberID':this[_0x33b43c(0x2ff)],'unitIDs':[...this[_0x33b43c(0x494)]],'isForwarded':!0x0});}[_0x3ee1d4(0x3d9)](_0x27bc89){const _0x26777c=_0x3ee1d4;this[_0x26777c(0x3e3)](_0x27bc89);const _0x4ee7a1=window['setTimeout'](()=>{const _0x29a3ff=_0x26777c;this[_0x29a3ff(0x512)]['forEach'](_0xb9bfde=>{_0xb9bfde['delete'](_0x27bc89);});},At*0x2);this[_0x26777c(0x1bd)]['set'](_0x27bc89,_0x4ee7a1);}[_0x3ee1d4(0x3e3)](_0x508a54){const _0x536877=_0x3ee1d4;if(this[_0x536877(0x1bd)][_0x536877(0x95)](_0x508a54)){const _0x1c692c=this[_0x536877(0x1bd)]['get'](_0x508a54);_0x1c692c&&window[_0x536877(0x312)](_0x1c692c),this[_0x536877(0x1bd)][_0x536877(0x276)](_0x508a54,null);}}[_0x3ee1d4(0x48f)](_0x59e8ce){const _0x239c13=_0x3ee1d4,{memberID:_0x3e4618,unitIDs:_0x94f2dd}=_0x59e8ce;_0x94f2dd[_0x239c13(0x362)](_0x70fbae=>{const _0x4e5135=_0x239c13;var _0x4036ca;const _0x507e15=this[_0x4e5135(0x512)]['get'](_0x70fbae);_0x507e15&&(_0x507e15['delete'](_0x3e4618),(_0x4036ca=this['_ensureSubject'](_0x70fbae))==null||_0x4036ca['next'](_0x507e15['size']===0x0?0x0:0x1));}),this[_0x239c13(0x3e3)](_0x3e4618);}[_0x3ee1d4(0x4e6)](_0x2f55ed){const _0x3918ed=_0x3ee1d4;this[_0x3918ed(0x3d9)](_0x2f55ed[_0x3918ed(0x50f)]);}[_0x3ee1d4(0x3ce)](_0x25ef55){const _0x22b36c=_0x3ee1d4;localStorage[_0x22b36c(0x17b)](Nt,JSON[_0x22b36c(0xd2)](_0x25ef55));}[_0x3ee1d4(0x44c)](){const _0x3dc8a7=_0x3ee1d4;this[_0x3dc8a7(0x75)]=window[_0x3dc8a7(0x115)](()=>{const _0xf0ed04=_0x3dc8a7;this['_send']({'type':0x2,'memberID':this[_0xf0ed04(0x2ff)]});},At);}[_0x3ee1d4(0x3f0)](_0x44c0c4){const _0x59cb17=_0x3ee1d4;return this[_0x59cb17(0x1a2)][_0x59cb17(0x95)](_0x44c0c4)||this[_0x59cb17(0x1a2)][_0x59cb17(0x276)](_0x44c0c4,new A[(_0x59cb17(0x45c))](0x0)),this['_unitStatus'][_0x59cb17(0x3ad)](_0x44c0c4);}}var Ri=Object[_0x3ee1d4(0x4ef)],yi=Object['getOwnPropertyDescriptor'],Oi=(_0x4a5415,_0x4ae419,_0x390746,_0x50cf66)=>{for(var _0x2f5ce3=_0x50cf66>0x1?void 0x0:_0x50cf66?yi(_0x4ae419,_0x390746):_0x4ae419,_0x47d8b3=_0x4a5415['length']-0x1,_0x2626ff;_0x47d8b3>=0x0;_0x47d8b3--)(_0x2626ff=_0x4a5415[_0x47d8b3])&&(_0x2f5ce3=(_0x50cf66?_0x2626ff(_0x4ae419,_0x390746,_0x2f5ce3):_0x2626ff(_0x2f5ce3))||_0x2f5ce3);return _0x50cf66&&_0x2f5ce3&&Ri(_0x4ae419,_0x390746,_0x2f5ce3),_0x2f5ce3;},Qe=(_0xf39355,_0x515e25)=>(_0x21b7cd,_0x43e047)=>_0x515e25(_0x21b7cd,_0x43e047,_0xf39355);let We=class{constructor(_0x2bc282,_0x1acd68,_0x4ce83b){const _0xb1ab27=_0x3ee1d4;this['_injector']=_0x2bc282,this[_0xb1ab27(0x414)]=_0x1acd68,this[_0xb1ab27(0x4fe)]=_0x4ce83b;}[_0x3ee1d4(0x3bf)](_0x549da5){const _0x1d6d9c=_0x3ee1d4;this[_0x1d6d9c(0x180)](_0x549da5);}[_0x3ee1d4(0x1fc)](_0x15a0fd){const _0x361245=_0x3ee1d4,{unitID:_0x48201f}=_0x15a0fd,{collaboration:_0x544565}=this['_docStateChangeManagerService']['getStateCache'](_0x48201f);if(_0x544565[_0x361245(0x156)]===0x0)return _0x15a0fd;let _0x4d3ca0=a[_0x361245(0x43f)]['deepClone'](_0x15a0fd[_0x361245(0x1a7)][0x0]);for(let _0x1a70a3=0x0;_0x1a70a3<_0x544565[_0x361245(0x156)];_0x1a70a3++){const _0x210669={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x544565[_0x1a70a3][_0x361245(0x51e)],..._0x544565[_0x1a70a3]['redoState']}},_0x221784=this[_0x361245(0x414)][_0x361245(0x139)](_0x4d3ca0,_0x210669,!0x1);if(S[_0x361245(0x2f0)](_0x221784))throw _0x221784[_0x361245(0x97)];_0x4d3ca0=_0x221784['m1Prime'];}return{...a[_0x361245(0x43f)][_0x361245(0x500)](_0x15a0fd),'mutations':[_0x4d3ca0]};}[_0x3ee1d4(0x180)](_0x10ac2d){const _0x5e3dbd=_0x3ee1d4,{unitID:_0x313d63}=_0x10ac2d,{history:_0x256fa6,collaboration:_0x488c0c}=this[_0x5e3dbd(0x4fe)][_0x5e3dbd(0x4b1)](_0x313d63);if(_0x256fa6[_0x5e3dbd(0x156)]===0x0&&_0x488c0c[_0x5e3dbd(0x156)]===0x0)return;const _0x1bea04=[],_0x2ff3f9=[];let _0x423b1c=a['Tools'][_0x5e3dbd(0x500)](_0x10ac2d[_0x5e3dbd(0x1a7)][0x0]),_0x45ef86=a[_0x5e3dbd(0x43f)][_0x5e3dbd(0x500)](_0x10ac2d[_0x5e3dbd(0x1a7)][0x0]);for(let _0xac04c4=_0x256fa6[_0x5e3dbd(0x156)]-0x1;_0xac04c4>=0x0;_0xac04c4--){const _0xe480b0={'id':_0x5e3dbd(0x1e2),'params':{'unitId':_0x256fa6[_0xac04c4][_0x5e3dbd(0x51e)],..._0x256fa6[_0xac04c4][_0x5e3dbd(0x4e2)]}},_0xb33bf5={'id':_0x5e3dbd(0x1e2),'params':{'unitId':_0x256fa6[_0xac04c4]['unitId'],..._0x256fa6[_0xac04c4][_0x5e3dbd(0x4f1)]}},_0x1b8356=this[_0x5e3dbd(0x414)]['transformMutation'](_0x423b1c,_0xe480b0,!0x1),_0x29103e=this[_0x5e3dbd(0x414)][_0x5e3dbd(0x139)](_0x45ef86,_0xb33bf5,!0x1);if(S[_0x5e3dbd(0x2f0)](_0x1b8356))throw _0x1b8356[_0x5e3dbd(0x97)];if(S[_0x5e3dbd(0x2f0)](_0x29103e))throw _0x29103e[_0x5e3dbd(0x97)];_0x1bea04[_0x5e3dbd(0x179)]({..._0x256fa6[_0xac04c4],'undoState':_0x1b8356[_0x5e3dbd(0x3fb)][_0x5e3dbd(0x507)],'redoState':_0x29103e[_0x5e3dbd(0x3fb)]['params']}),_0x423b1c=_0x1b8356[_0x5e3dbd(0x3f5)],_0x45ef86=_0x29103e[_0x5e3dbd(0x3f5)];}_0x423b1c=a[_0x5e3dbd(0x43f)][_0x5e3dbd(0x500)](_0x10ac2d[_0x5e3dbd(0x1a7)][0x0]),_0x45ef86=a['Tools'][_0x5e3dbd(0x500)](_0x10ac2d[_0x5e3dbd(0x1a7)][0x0]);for(let _0x4f35a9=_0x488c0c[_0x5e3dbd(0x156)]-0x1;_0x4f35a9>=0x0;_0x4f35a9--){const _0x130866={'id':_0x5e3dbd(0x1e2),'params':{'unitId':_0x488c0c[_0x4f35a9][_0x5e3dbd(0x51e)],..._0x488c0c[_0x4f35a9][_0x5e3dbd(0x4e2)]}},_0x1b0a30={'id':_0x5e3dbd(0x1e2),'params':{'unitId':_0x488c0c[_0x4f35a9]['unitId'],..._0x488c0c[_0x4f35a9][_0x5e3dbd(0x4f1)]}},_0x1309c8=this[_0x5e3dbd(0x414)][_0x5e3dbd(0x139)](_0x423b1c,_0x130866,!0x1),_0x564656=this[_0x5e3dbd(0x414)][_0x5e3dbd(0x139)](_0x45ef86,_0x1b0a30,!0x1);if(S[_0x5e3dbd(0x2f0)](_0x1309c8))throw _0x1309c8[_0x5e3dbd(0x97)];if(S[_0x5e3dbd(0x2f0)](_0x564656))throw _0x564656[_0x5e3dbd(0x97)];_0x2ff3f9[_0x5e3dbd(0x179)]({..._0x488c0c[_0x4f35a9],'undoState':_0x1309c8[_0x5e3dbd(0x3fb)]['params'],'redoState':_0x564656[_0x5e3dbd(0x3fb)][_0x5e3dbd(0x507)]}),_0x423b1c=_0x1309c8[_0x5e3dbd(0x3f5)],_0x45ef86=_0x564656['m1Prime'];}this[_0x5e3dbd(0x4fe)][_0x5e3dbd(0x4b5)](_0x313d63,{'history':_0x1bea04,'collaboration':_0x2ff3f9});}};We=Oi([Qe(0x0,a[_0x3ee1d4(0x4c5)](a['Injector'])),Qe(0x1,S[_0x3ee1d4(0x4bb)]),Qe(0x2,a[_0x3ee1d4(0x4c5)](Z[_0x3ee1d4(0x32c)]))],We);function un(_0x4fa206){const _0x414d47=_0x3ee1d4;let _0x3111c8='';for(const _0x5215e4 of _0x4fa206){const {startOffset:_0x393477,endOffset:_0x12683d,isActive:_0x143d96,rangeType:_0x4147c7,segmentId:_0x540e2d,segmentPage:_0x5b4ac8}=_0x5215e4;_0x3111c8[_0x414d47(0x156)]&&(_0x3111c8+=','),_0x3111c8+=_0x393477+':'+_0x12683d+':'+(_0x143d96?'1':'0')+':'+_0x4147c7+':'+_0x540e2d+':'+_0x5b4ac8;}return _0x3111c8;}function Di(_0x3fd014){const _0x556198=_0x3ee1d4,_0x4bcaae=_0x3fd014[_0x556198(0x2e5)](','),_0x345b01=[];for(const _0x3b1c3b of _0x4bcaae){const [_0x2dfc13,_0xb1bbbc,_0x3b11dc,_0x1e49bd,_0xe1df64,_0xfd762f]=_0x3b1c3b[_0x556198(0x2e5)](':');_0x345b01[_0x556198(0x462)]({'startOffset':Number(_0x2dfc13),'endOffset':Number(_0xb1bbbc),'collapsed':_0x2dfc13===_0xb1bbbc,'isActive':_0x3b11dc==='1','rangeType':_0x1e49bd===a[_0x556198(0xfa)][_0x556198(0xd8)]?a[_0x556198(0xfa)][_0x556198(0xd8)]:a[_0x556198(0xfa)][_0x556198(0x85)],'segmentId':typeof _0xe1df64==_0x556198(0x1dc)?String(_0xe1df64):'','segmentPage':Number(_0xfd762f!=null?_0xfd762f:-0x1)});}return _0x345b01[_0x556198(0xcb)](_0x42406e=>_0x42406e[_0x556198(0x15c)])||(_0x345b01[0x0][_0x556198(0x15c)]=!0x0),_0x345b01;}class Tt extends a['RxDisposable']{constructor(){const _0x4b5b6f=_0x3ee1d4;super(...arguments),I(this,'_collabCursorState$',new A[(_0x4b5b6f(0x45c))](null)),I(this,'collabCursorState$',this[_0x4b5b6f(0x45a)][_0x4b5b6f(0x3d4)]());}[_0x3ee1d4(0x2dd)](_0x5735e6){const _0x1b7a58=_0x3ee1d4,{unitID:_0xcf441f,memberID:_0x8e4cc3,textRanges:_0x1f0cae}=_0x5735e6,_0x3d9473=un(_0x1f0cae);if(_0x3d9473==='')return;const _0x2dc0ce={'unitID':_0xcf441f,'memberID':_0x8e4cc3,'selection':_0x3d9473};this[_0x1b7a58(0x45a)][_0x1b7a58(0x261)](_0x2dc0ce);}}var wi=Object['defineProperty'],Pi=Object[_0x3ee1d4(0xe2)],Ui=(_0x3bba86,_0x42b9fd,_0x5214ef,_0x3bffd6)=>{const _0x54e52d=_0x3ee1d4;for(var _0x340c10=_0x3bffd6>0x1?void 0x0:_0x3bffd6?Pi(_0x42b9fd,_0x5214ef):_0x42b9fd,_0x26b842=_0x3bba86[_0x54e52d(0x156)]-0x1,_0x3bf934;_0x26b842>=0x0;_0x26b842--)(_0x3bf934=_0x3bba86[_0x26b842])&&(_0x340c10=(_0x3bffd6?_0x3bf934(_0x42b9fd,_0x5214ef,_0x340c10):_0x3bf934(_0x340c10))||_0x340c10);return _0x3bffd6&&_0x340c10&&wi(_0x42b9fd,_0x5214ef,_0x340c10),_0x340c10;},Lt=(_0x2be2f1,_0x572e26)=>(_0x2e2500,_0x57a6de)=>_0x572e26(_0x2e2500,_0x57a6de,_0x2be2f1);let Fe=class{constructor(_0x1a6b67,_0x32018d){const _0x38b924=_0x3ee1d4;this[_0x38b924(0x390)]=_0x1a6b67,this[_0x38b924(0x414)]=_0x32018d;}['transformSelections'](_0x2b584a){const _0x384617=_0x3ee1d4;var _0x34e281;const _0x1a01fa=this[_0x384617(0x390)][_0x384617(0x3ad)](Re['DocSelectionManagerService']),_0x4d826c=(_0x34e281=_0x1a01fa[_0x384617(0x434)]())!=null?_0x34e281:[];if(_0x4d826c[_0x384617(0x156)]===0x0)return;const _0x1e7e00=[{'id':_0x384617(0x1e2),'params':{'unitId':_0x2b584a['unitID'],'actions':null,'textRanges':_0x4d826c}}],_0x3c984c=this['_transformService'][_0x384617(0x1ae)](_0x2b584a,_0x1e7e00);if(!S[_0x384617(0x2f7)](_0x3c984c))throw _0x3c984c[_0x384617(0x97)];const _0x31edab=_0x3c984c[_0x384617(0x3fb)][0x0][_0x384617(0x507)]['textRanges'];Array[_0x384617(0x423)](_0x31edab)&&_0x31edab['length']&&_0x1a01fa[_0x384617(0x15e)](_0x31edab,!0x1);}};Fe=Ui([Lt(0x0,a['Inject'](a[_0x3ee1d4(0x3b8)])),Lt(0x1,S[_0x3ee1d4(0x4bb)])],Fe);const Mi=new Set([k[_0x3ee1d4(0x2e4)]['id']]);function xt(_0x5f4624,_0x33619c,_0x4d2b17,_0x431205,_0x553b43){const _0x405889=_0x3ee1d4;var _0x1073aa,_0x7d916c,_0x350d11,_0x4a8289;const _0x3ef388=[];for(const _0x2c8c21 of _0x5f4624)if(Mi[_0x405889(0x95)](_0x2c8c21['id'])){if(_0x3ef388['length']>0x0)break;_0x3ef388[_0x405889(0x462)](_0x2c8c21);break;}else _0x3ef388['push'](_0x2c8c21);const _0x559421=(_0x7d916c=(_0x1073aa=_0x553b43[_0x405889(0x1f6)]())==null?void 0x0:_0x1073aa[_0x405889(0x445)])!=null?_0x7d916c:_0x405889(0x28b),_0x2ee718=(_0x4a8289=(_0x350d11=_0x553b43[_0x405889(0x1f6)]())==null?void 0x0:_0x350d11[_0x405889(0x50f)])!=null?_0x4a8289:_0x405889(0x28b);return{'changeset':{'unitID':_0x33619c,'type':S[_0x405889(0x4dc)](_0x4d2b17[_0x405889(0x50e)](_0x33619c)),'baseRev':_0x431205[_0x405889(0x246)](_0x33619c),'revision':0x0,'userID':_0x559421,'memberID':_0x2ee718,'mutations':_0x3ef388},'pendingMutations':_0x5f4624[_0x405889(0x160)](_0x3ef388[_0x405889(0x156)])};}function Ai(_0x55a56a,_0x13b62a,_0x149c39,_0x1e60a4,_0x1609ad){const _0x13ec1d=_0x3ee1d4;var _0xc10cd9,_0xfc2f1d,_0xf8e44,_0x345cbe;const _0x53299d=[_0x55a56a['reduce']((_0x5b41d9,_0x2a6939)=>{const _0x16d51f=_0x51c9;var _0x2346cd;const {id:_0x1c9728}=_0x5b41d9,{id:_0x5f341a,type:_0x1feeab}=_0x2a6939,_0x11c148=(_0x2346cd=_0x5b41d9[_0x16d51f(0x507)])!=null?_0x2346cd:{'actions':null},_0x72165d=_0x2a6939['params'];if(_0x1c9728&&_0x1c9728!==_0x5f341a)throw new Error(_0x16d51f(0x412)+_0x1c9728+_0x16d51f(0x297)+_0x5f341a+'.');return{..._0x5b41d9,'id':_0x5f341a,'type':_0x1feeab,'params':{'unitId':_0x72165d[_0x16d51f(0x51e)],'textRanges':_0x72165d[_0x16d51f(0x42d)],'actions':a['JSONX'][_0x16d51f(0x1c6)](_0x11c148[_0x16d51f(0x4d5)],_0x72165d[_0x16d51f(0x4d5)])}};},{})],_0x31303a=(_0xfc2f1d=(_0xc10cd9=_0x1609ad[_0x13ec1d(0x1f6)]())==null?void 0x0:_0xc10cd9[_0x13ec1d(0x445)])!=null?_0xfc2f1d:_0x13ec1d(0x28b),_0x1422c8=(_0x345cbe=(_0xf8e44=_0x1609ad[_0x13ec1d(0x1f6)]())==null?void 0x0:_0xf8e44[_0x13ec1d(0x50f)])!=null?_0x345cbe:_0x13ec1d(0x28b);return{'changeset':{'unitID':_0x13b62a,'type':S[_0x13ec1d(0x4dc)](_0x149c39[_0x13ec1d(0x50e)](_0x13b62a)),'baseRev':_0x1e60a4['getCurrentRevOfUnit'](_0x13b62a),'revision':0x0,'userID':_0x31303a,'memberID':_0x1422c8,'mutations':_0x53299d},'pendingMutations':[]};}function dn(_0xf90221,_0x5402b5){const _0x58610e=_0x3ee1d4,_0x599351=new A['ReplaySubject'](0x1);return setTimeout(()=>_0x599351['next'](_0x5402b5),_0xf90221),_0x599351[_0x58610e(0x3d4)]()[_0x58610e(0x32f)](A[_0x58610e(0x403)](0x1));}const Ni={'id':k['EmptyMutation']['id'],'type':a[_0x3ee1d4(0x1fd)][_0x3ee1d4(0x83)],'params':{}};var Li=Object[_0x3ee1d4(0x4ef)],xi=Object[_0x3ee1d4(0xe2)],ge=(_0x462899,_0xaed89a,_0x4f4d22,_0xf07ca4)=>{const _0x5d584a=_0x3ee1d4;for(var _0x1d8e1d=_0xf07ca4>0x1?void 0x0:_0xf07ca4?xi(_0xaed89a,_0x4f4d22):_0xaed89a,_0x1f13c5=_0x462899[_0x5d584a(0x156)]-0x1,_0x54843b;_0x1f13c5>=0x0;_0x1f13c5--)(_0x54843b=_0x462899[_0x1f13c5])&&(_0x1d8e1d=(_0xf07ca4?_0x54843b(_0xaed89a,_0x4f4d22,_0x1d8e1d):_0x54843b(_0x1d8e1d))||_0x1d8e1d);return _0xf07ca4&&_0x1d8e1d&&Li(_0xaed89a,_0x4f4d22,_0x1d8e1d),_0x1d8e1d;},N=(_0x9d70ba,_0x51c40c)=>(_0x46eaca,_0x22d5ac)=>_0x51c40c(_0x46eaca,_0x22d5ac,_0x9d70ba),q=(_0x24a4d1=>(_0x24a4d1[_0x3ee1d4(0x341)]='not_collab',_0x24a4d1['SYNCED']=_0x3ee1d4(0x193),_0x24a4d1[_0x3ee1d4(0xeb)]=_0x3ee1d4(0x4e0),_0x24a4d1[_0x3ee1d4(0x2d6)]=_0x3ee1d4(0x469),_0x24a4d1['AWAITING_WITH_PENDING']=_0x3ee1d4(0x448),_0x24a4d1[_0x3ee1d4(0x324)]=_0x3ee1d4(0xa2),_0x24a4d1[_0x3ee1d4(0x342)]=_0x3ee1d4(0x2d4),_0x24a4d1[_0x3ee1d4(0x386)]=_0x3ee1d4(0x1b4),_0x24a4d1))(q||{});function _0x51c9(_0x5517aa,_0x3a54df){const _0x353001=_0x3530();return _0x51c9=function(_0x51c90d,_0x1e9b55){_0x51c90d=_0x51c90d-0x71;let _0x58da36=_0x353001[_0x51c90d];return _0x58da36;},_0x51c9(_0x5517aa,_0x3a54df);}const fn=0xea60;class Ie{constructor(_0x51ac39,_0x3f202f,_0x1972f7,_0x504938,_0x4c8b11,_0x551774,_0x287882,_0x5bc318,_0x48fd98){const _0x4ccd88=_0x3ee1d4;I(this,_0x4ccd88(0xec),null),I(this,_0x4ccd88(0x108),[]),(this[_0x4ccd88(0x50d)]=_0x51ac39,this[_0x4ccd88(0x4df)]=_0x3f202f,this['_handler']=_0x4c8b11,this[_0x4ccd88(0x117)]=_0x551774,this[_0x4ccd88(0x308)]=_0x287882,this[_0x4ccd88(0xca)]=_0x5bc318,this[_0x4ccd88(0xd5)]=_0x48fd98,this[_0x4ccd88(0xec)]=_0x1972f7,this[_0x4ccd88(0x108)]=_0x504938);}[_0x3ee1d4(0x138)](_0xa3959d){const _0x4fcf12=_0x3ee1d4,_0x52d1f1=this[_0x4fcf12(0xca)]['getCurrentRevOfUnit'](this[_0x4fcf12(0x50d)]);return _0xa3959d[_0x4fcf12(0x9b)]>_0x52d1f1+0x1?(this['_handler'][_0x4fcf12(0x4de)]({'from':_0x52d1f1,'to':_0xa3959d['revision']-0x1}),!0x0):!0x1;}[_0x3ee1d4(0x110)](_0x539da1){const _0x21565a=_0x3ee1d4;this[_0x21565a(0x308)][_0x21565a(0x12f)](this['unitID'],_0x539da1);}[_0x3ee1d4(0x372)](_0xd7bece){const _0x1c7281=_0x3ee1d4;var _0x205f4e,_0xf7ae0f;(_0xf7ae0f=(_0x205f4e=this[_0x1c7281(0x4c7)])['onTransformSelections'])==null||_0xf7ae0f[_0x1c7281(0x461)](_0x205f4e,_0xd7bece);}[_0x3ee1d4(0x3fa)](_0xb8fec0){const _0x5df9ff=_0x3ee1d4;var _0x1805e7,_0x27b9b8;return(_0x27b9b8=(_0x1805e7=this[_0x5df9ff(0x4c7)])[_0x5df9ff(0x178)])==null?void 0x0:_0x27b9b8[_0x5df9ff(0x461)](_0x1805e7,_0xb8fec0);}['_transformStateCache'](_0xf5da12){const _0x3531c9=_0x3ee1d4;var _0x40c23e,_0x30d9c8;return(_0x30d9c8=(_0x40c23e=this[_0x3531c9(0x4c7)])[_0x3531c9(0x4ba)])==null?void 0x0:_0x30d9c8[_0x3531c9(0x461)](_0x40c23e,_0xf5da12);}[_0x3ee1d4(0x273)](_0x24656b){const _0x2927d4=_0x3ee1d4;var _0x1e47ac,_0x31857f,_0x4795b0;return(_0x4795b0=(_0x31857f=(_0x1e47ac=this[_0x2927d4(0x4c7)])[_0x2927d4(0x2a8)])==null?void 0x0:_0x31857f[_0x2927d4(0x461)](_0x1e47ac,_0x24656b))!=null?_0x4795b0:_0x24656b;}[_0x3ee1d4(0x152)](_0xeb5696){const _0x578816=_0x3ee1d4;var _0x11bbf1,_0x4d0639,_0x138918;return(_0x138918=(_0x4d0639=(_0x11bbf1=this[_0x578816(0x4c7)])[_0x578816(0x1e4)])==null?void 0x0:_0x4d0639[_0x578816(0x461)](_0x11bbf1,_0xeb5696))!=null?_0x138918:_0xeb5696;}[_0x3ee1d4(0x281)](_0x3c98a0){const _0x297de8=_0x3ee1d4;var _0x499bd1,_0x455693;if(this[_0x297de8(0x4df)]===se[_0x297de8(0x357)]){const {unitID:_0x6d6077,mutations:_0x3e6bf3,memberID:_0x3aefc6}=_0x3c98a0,_0xd1efcf=_0x3e6bf3[0x0][_0x297de8(0x507)][_0x297de8(0x42d)];Array[_0x297de8(0x423)](_0xd1efcf)&&_0xd1efcf[_0x297de8(0x156)]>0x0&&((_0x455693=(_0x499bd1=this[_0x297de8(0x4c7)])[_0x297de8(0x195)])==null||_0x455693[_0x297de8(0x461)](_0x499bd1,{'unitID':_0x6d6077,'memberID':_0x3aefc6,'textRanges':_0xd1efcf}));}}[_0x3ee1d4(0x366)](){const _0x4f8479=_0x3ee1d4;this[_0x4f8479(0xd5)][_0x4f8479(0x47d)](this[_0x4f8479(0x50d)],this[_0x4f8479(0x4df)],this[_0x4f8479(0xec)],this[_0x4f8479(0x108)]);}[_0x3ee1d4(0x3a4)](){return this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);}[_0x3ee1d4(0x2d8)](){const _0x51c763=_0x3ee1d4;this[_0x51c763(0xca)][_0x51c763(0x10a)](this['unitID']);}[_0x3ee1d4(0x157)](_0x24090e){const _0x4d501b=_0x3ee1d4;var _0x5524b4;let _0x2323e=this[_0x4d501b(0x273)](_0x24090e);_0x2323e=this[_0x4d501b(0x152)](_0x2323e);const _0x51f616=a[_0x4d501b(0x4b9)](_0x2323e[_0x4d501b(0x1a7)],this['_commandService'],{'fromCollab':!0x0});if(!_0x51f616[_0x4d501b(0x3da)])throw _0x51f616[_0x4d501b(0x97)]instanceof Error?_0x51f616['error']:new Error((_0x5524b4=_0x51f616[_0x4d501b(0x97)])!=null?_0x5524b4:_0x4d501b(0x306));this['_transformIMECache'](_0x2323e),this[_0x4d501b(0x28e)](_0x2323e),this[_0x4d501b(0x110)](_0x24090e),this[_0x4d501b(0x372)](_0x2323e),this[_0x4d501b(0x281)](_0x2323e),this[_0x4d501b(0x2d8)]();}}let ye=class extends Ie{constructor(_0x580511,_0x1849ea,_0x170e59,_0x580944,_0x2c8ece,_0x4fff54,_0x384be7,_0x269575,_0xda113,_0x27000e){const _0x35f193=_0x3ee1d4;super(_0x580511,_0x1849ea,null,[],_0x170e59,_0x269575,_0x384be7,_0x580944,_0x2c8ece),I(this,_0x35f193(0x19a),_0x35f193(0x193)),(this[_0x35f193(0x390)]=_0x4fff54,this[_0x35f193(0x416)]=_0xda113,this['_transformService']=_0x27000e);}[_0x3ee1d4(0x37e)](_0x540576){const _0x479f91=_0x3ee1d4,_0x1aef88=this[_0x479f91(0x390)]['createInstance'](ce,this[_0x479f91(0x50d)],this[_0x479f91(0x4df)],[_0x540576],this['_handler']);return _0x1aef88[_0x479f91(0x19e)](),_0x1aef88[_0x479f91(0x366)](),_0x1aef88;}[_0x3ee1d4(0x2a0)](_0xf12a34){const _0x27381d=_0x3ee1d4;if(this[_0x27381d(0x138)](_0xf12a34))return this['_injector'][_0x27381d(0x4d4)](oe,this['unitID'],this[_0x27381d(0x4df)],null,[],null,[_0xf12a34],this[_0x27381d(0x4c7)]);try{const _0x5139dc=this[_0x27381d(0x414)][_0x27381d(0x1ae)](_0xf12a34,[Ni]);if(S[_0x27381d(0x2f7)](_0x5139dc)){const {c1Prime:_0x3d63e5}=_0x5139dc;return this[_0x27381d(0x157)](_0x3d63e5),this;}throw _0x5139dc[_0x27381d(0x97)];}catch(_0x14da74){return this[_0x27381d(0x416)]['error'](_0x14da74),this[_0x27381d(0x8c)](!0x1);}}[_0x3ee1d4(0x8c)](_0x23d8bf){const _0x512e9d=_0x3ee1d4;return this[_0x512e9d(0x390)][_0x512e9d(0x4d4)](ve,this['unitID'],this[_0x512e9d(0x4df)],null,[],this[_0x512e9d(0x4c7)],_0x23d8bf);}[_0x3ee1d4(0x17c)](){const _0x4c172f=_0x3ee1d4;throw new Error(_0x4c172f(0x467));}[_0x3ee1d4(0x42c)](){const _0x2c3332=_0x3ee1d4;throw new Error(_0x2c3332(0x48c));}[_0x3ee1d4(0x38c)](){return this;}['toggleOffline'](){const _0x1ce2be=_0x3ee1d4;return this[_0x1ce2be(0x390)][_0x1ce2be(0x4d4)](me,this[_0x1ce2be(0x50d)],this['type'],null,[],this[_0x1ce2be(0x4c7)]);}['toggleOnline'](){return this;}[_0x3ee1d4(0x43b)](){const _0x3e53f7=_0x3ee1d4;throw new Error(_0x3e53f7(0x2b1));}['fetchMiss'](){const _0x9b9a34=_0x3ee1d4,_0x5daf8f=this[_0x9b9a34(0xca)][_0x9b9a34(0x246)](this[_0x9b9a34(0x50d)]);return this[_0x9b9a34(0x4c7)][_0x9b9a34(0x4de)]({'from':_0x5daf8f,'to':0x0}),this[_0x9b9a34(0x390)]['createInstance'](oe,this[_0x9b9a34(0x50d)],this[_0x9b9a34(0x4df)],null,[],null,[],this[_0x9b9a34(0x4c7)]);}};ye=ge([N(0x3,a[_0x3ee1d4(0x4c5)](S['RevisionService'])),N(0x4,a[_0x3ee1d4(0x4c5)](exports[_0x3ee1d4(0xa4)])),N(0x5,a[_0x3ee1d4(0x4c5)](a['Injector'])),N(0x6,a[_0x3ee1d4(0x3e0)]),N(0x7,a[_0x3ee1d4(0x1cc)]),N(0x8,a['ILogService']),N(0x9,S[_0x3ee1d4(0x4bb)])],ye);let ce=class extends Ie{constructor(_0x4f07bc,_0x1bc679,_0x5ac730,_0x4e9134,_0x39f493,_0x17c9a6,_0x3a3b1e,_0x2b1a0a,_0x430022,_0x592be5,_0x28724b,_0x26bd9a,_0x3d54ca,_0x1f2939){const _0x7231fb=_0x3ee1d4;super(_0x4f07bc,_0x1bc679,null,_0x5ac730,_0x4e9134,_0x592be5,_0x1f2939,_0x17c9a6,_0x3a3b1e),I(this,_0x7231fb(0x19a),_0x7231fb(0x4e0)),I(this,'_scheduleTimestamp',null),I(this,'_sendingTimer',null),(this[_0x7231fb(0x390)]=_0x39f493,this[_0x7231fb(0x18e)]=_0x2b1a0a,this['_logService']=_0x430022,this['_configService']=_0x28724b,this['_transformService']=_0x26bd9a,this[_0x7231fb(0xfd)]=_0x3d54ca);}[_0x3ee1d4(0x37e)](_0x511358){const _0x275475=_0x3ee1d4;return this[_0x275475(0x108)]['push'](_0x511358),this['_updateLocalCache'](),this;}[_0x3ee1d4(0x2a0)](_0x5525fc){const _0x3a7fa7=_0x3ee1d4;if(this['_checkMissing'](_0x5525fc))return this[_0x3a7fa7(0x277)](),this[_0x3a7fa7(0x390)][_0x3a7fa7(0x4d4)](oe,this[_0x3a7fa7(0x50d)],this[_0x3a7fa7(0x4df)],null,this[_0x3a7fa7(0x108)],null,[_0x5525fc],this[_0x3a7fa7(0x4c7)]);try{const _0x46b4da=this[_0x3a7fa7(0x414)]['transformMutationsWithChangeset'](_0x5525fc,this[_0x3a7fa7(0x108)]);if(S[_0x3a7fa7(0x2f7)](_0x46b4da)){const {c1Prime:_0x24b82c,m2Prime:_0x257c13}=_0x46b4da;this[_0x3a7fa7(0x157)](_0x24b82c);const _0x299f1a=this['_injector'][_0x3a7fa7(0x4d4)](ce,this[_0x3a7fa7(0x50d)],this[_0x3a7fa7(0x4df)],_0x257c13,this[_0x3a7fa7(0x4c7)]);return this[_0x3a7fa7(0x277)](),_0x299f1a['_schedule'](this[_0x3a7fa7(0x4c1)]?Math[_0x3a7fa7(0x24f)](0x0,new Date()[_0x3a7fa7(0x34e)]()-this[_0x3a7fa7(0x4c1)]):this['_getSendChangesetTimeout']()),_0x299f1a;}throw _0x46b4da[_0x3a7fa7(0x97)];}catch(_0x1d4b89){return this[_0x3a7fa7(0x416)][_0x3a7fa7(0x97)](_0x1d4b89),this[_0x3a7fa7(0x8c)](!0x1);}}[_0x3ee1d4(0x17c)](){const _0x1e5e2c=_0x3ee1d4;throw new Error(_0x1e5e2c(0x14e));}[_0x3ee1d4(0x42c)](){throw new Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3ee1d4(0x492)](){const _0xbaa4da=_0x3ee1d4;return this[_0xbaa4da(0x277)](),this[_0xbaa4da(0x390)][_0xbaa4da(0x4d4)](me,this['unitID'],this[_0xbaa4da(0x4df)],null,this[_0xbaa4da(0x108)],this['_handler']);}['toggleOnline'](){return this;}['_schedule'](_0x45f333){const _0x52d945=_0x3ee1d4,_0x55616c=_0x45f333!=null?_0x45f333:this[_0x52d945(0x3cb)]();this[_0x52d945(0x4c1)]=new Date()[_0x52d945(0x34e)](),this[_0x52d945(0x387)]=window['setTimeout'](()=>{const _0x4598fa=_0x52d945;this[_0x4598fa(0x277)]();let _0x173a10=null;switch(this[_0x4598fa(0x4df)]){case se[_0x4598fa(0x1c8)]:{_0x173a10=xt(this[_0x4598fa(0x108)],this[_0x4598fa(0x50d)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;}case se[_0x4598fa(0x357)]:{this[_0x4598fa(0x108)][_0x4598fa(0x196)](_0x1f069f=>_0x1f069f['id']===Re['RichTextEditingMutation']['id'])?_0x173a10=Ai(this['_pendingMutations'],this[_0x4598fa(0x50d)],this[_0x4598fa(0xfd)],this['_revisionService'],this[_0x4598fa(0x18e)]):_0x173a10=xt(this[_0x4598fa(0x108)],this[_0x4598fa(0x50d)],this[_0x4598fa(0xfd)],this['_revisionService'],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x4598fa(0x28f));}const {changeset:_0x632798,pendingMutations:_0x364fad}=_0x173a10;this[_0x4598fa(0x4c7)][_0x4598fa(0x2ac)](_0x632798);const _0x1f8ade=_0x364fad[_0x4598fa(0x156)]?this[_0x4598fa(0x390)][_0x4598fa(0x4d4)](le,this[_0x4598fa(0x50d)],this[_0x4598fa(0x4df)],_0x632798,_0x364fad,this[_0x4598fa(0x4c7)],void 0x0):this[_0x4598fa(0x390)][_0x4598fa(0x4d4)](fe,this[_0x4598fa(0x50d)],this[_0x4598fa(0x4df)],_0x632798,this[_0x4598fa(0x4c7)]);_0x1f8ade['_updateLocalCache'](),this[_0x4598fa(0x4c7)]['onStateChange'](this,_0x1f8ade);},_0x55616c);}[_0x3ee1d4(0x3cb)](){const _0x2e70c4=_0x3ee1d4;var _0x4e15d9;const _0x222b97=this[_0x2e70c4(0x320)][_0x2e70c4(0x79)](ne);return(_0x4e15d9=_0x222b97==null?void 0x0:_0x222b97[_0x2e70c4(0x1b9)])!=null?_0x4e15d9:jn;}[_0x3ee1d4(0x43b)](){const _0x4cfc08=_0x3ee1d4;throw new Error(_0x4cfc08(0x3bb));}[_0x3ee1d4(0x277)](){const _0x3bde2b=_0x3ee1d4;this[_0x3bde2b(0x387)]!=null&&(clearTimeout(this[_0x3bde2b(0x387)]),this[_0x3bde2b(0x387)]=null);}[_0x3ee1d4(0x8c)](_0xbf1e9b){const _0x2d8c83=_0x3ee1d4;return this[_0x2d8c83(0x277)](),this[_0x2d8c83(0x390)][_0x2d8c83(0x4d4)](ve,this[_0x2d8c83(0x50d)],this[_0x2d8c83(0x4df)],null,this[_0x2d8c83(0x108)],this[_0x2d8c83(0x4c7)],_0xbf1e9b);}};ce=ge([N(0x4,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),N(0x5,a[_0x3ee1d4(0x4c5)](S[_0x3ee1d4(0x31c)])),N(0x6,a[_0x3ee1d4(0x4c5)](exports['LocalCacheService'])),N(0x7,a['Inject'](exports[_0x3ee1d4(0x2fd)])),N(0x8,a[_0x3ee1d4(0x25c)]),N(0x9,a[_0x3ee1d4(0x1cc)]),N(0xa,a[_0x3ee1d4(0x153)]),N(0xb,S[_0x3ee1d4(0x4bb)]),N(0xc,a[_0x3ee1d4(0x47a)]),N(0xd,a['IUndoRedoService'])],ce);let fe=class extends Ie{constructor(_0x308604,_0x4ee88d,_0x2d8ab4,_0x5c5ea3,_0x4b8dc1,_0x4e9b3e,_0x1c3f4a,_0x539a33,_0x5d516d,_0x2e1722,_0x2e001d){const _0x4f66b8=_0x3ee1d4;super(_0x308604,_0x4ee88d,_0x2d8ab4,[],_0x5c5ea3,_0x539a33,_0x2e001d,_0x4e9b3e,_0x1c3f4a),I(this,'status',_0x4f66b8(0x469)),I(this,'_resendTimeout',0x0),I(this,_0x4f66b8(0x1fb)),I(this,_0x4f66b8(0x187)),(this[_0x4f66b8(0x390)]=_0x4b8dc1,this[_0x4f66b8(0x416)]=_0x5d516d,this[_0x4f66b8(0x414)]=_0x2e1722);}[_0x3ee1d4(0x37e)](_0x1ca574){const _0x555d3b=_0x3ee1d4;this[_0x555d3b(0x277)]();const _0x5a3c09=this[_0x555d3b(0x390)][_0x555d3b(0x4d4)](le,this[_0x555d3b(0x50d)],this[_0x555d3b(0x4df)],this[_0x555d3b(0xec)],[_0x1ca574],this[_0x555d3b(0x4c7)],this['_resendTimer']);return _0x5a3c09[_0x555d3b(0x366)](),_0x5a3c09;}[_0x3ee1d4(0x2a0)](_0x10811e){const _0xcc4ff4=_0x3ee1d4;if(this[_0xcc4ff4(0x138)](_0x10811e))return this[_0xcc4ff4(0x277)](),this[_0xcc4ff4(0x390)]['createInstance'](oe,this[_0xcc4ff4(0x50d)],this[_0xcc4ff4(0x4df)],this[_0xcc4ff4(0xec)],[],null,[_0x10811e],this[_0xcc4ff4(0x4c7)]);try{const _0x38041b=this[_0xcc4ff4(0x414)][_0xcc4ff4(0x143)]([_0x10811e],[this[_0xcc4ff4(0xec)]],!0x1);if(S['isTransformChangesetsSuccess'](_0x38041b)){const {c1Prime:_0x2a0f51,c2Prime:_0x5e83dc}=_0x38041b;this[_0xcc4ff4(0x157)](_0x2a0f51[0x0]),_0x5e83dc[0x0]['baseRev']=this[_0xcc4ff4(0x3a4)](),this[_0xcc4ff4(0x277)]();const _0x516452=this[_0xcc4ff4(0x390)][_0xcc4ff4(0x4d4)](fe,this['unitID'],this[_0xcc4ff4(0x4df)],_0x5e83dc[0x0],this[_0xcc4ff4(0x4c7)]);return _0x516452['_updateLocalCache'](),_0x516452;}return this[_0xcc4ff4(0x8c)](!0x1);}catch(_0x3ed5c4){return this[_0xcc4ff4(0x416)]['error'](_0x3ed5c4),this[_0xcc4ff4(0x8c)](!0x1);}}[_0x3ee1d4(0x17c)](_0x2807c6){const _0x51a3e7=_0x3ee1d4;this[_0x51a3e7(0x277)]();const _0x48f5c5=this[_0x51a3e7(0xca)][_0x51a3e7(0x246)](this[_0x51a3e7(0x50d)]);if(_0x2807c6[_0x51a3e7(0x9b)]<_0x48f5c5-0x1)return this;if(this['_checkMissing'](_0x2807c6))return this[_0x51a3e7(0x390)][_0x51a3e7(0x4d4)](oe,this[_0x51a3e7(0x50d)],this['type'],null,[],this[_0x51a3e7(0xec)],[],this[_0x51a3e7(0x4c7)]);this[_0x51a3e7(0x2d8)]();const _0xe33305=this['_injector']['createInstance'](ye,this['unitID'],this['type'],this[_0x51a3e7(0x4c7)]);return _0xe33305['_updateLocalCache'](),_0xe33305;}['onRemoteRej'](_0x1fd2f5){const _0x2452c2=_0x3ee1d4;return this[_0x2452c2(0x8c)](!!(_0x1fd2f5!=null&&_0x1fd2f5[_0x2452c2(0x1ac)]));}['onRemoteRetry'](_0x448f9a){const _0x2723b6=_0x3ee1d4;return this[_0x2723b6(0x31f)]>fn?this[_0x2723b6(0x492)]():(this['_resendTimer']=dn(this[_0x2723b6(0x31f)],{'timeout':this['_resendTimeout'],'reqId':_0x448f9a[_0x2723b6(0x149)]}),this['_sender']=this[_0x2723b6(0x1fb)][_0x2723b6(0x455)](({reqId:_0x5b6059,timeout:_0x2bb327})=>{this['_resendWithTimeout'](_0x5b6059,_0x2bb327);}),this);}[_0x3ee1d4(0x492)](){const _0x1225d0=_0x3ee1d4;return this['_clearScheduledTask'](),this[_0x1225d0(0x390)][_0x1225d0(0x4d4)](me,this[_0x1225d0(0x50d)],this[_0x1225d0(0x4df)],this['_awaitingChangeset'],[],this['_handler']);}['toggleOnline'](){return this;}[_0x3ee1d4(0x43b)](){const _0x43f92c=_0x3ee1d4;this['_handler'][_0x43f92c(0x2ac)](this['_awaitingChangeset']);}[_0x3ee1d4(0x8c)](_0x453eed){const _0x44a87e=_0x3ee1d4;return this[_0x44a87e(0x277)](),this[_0x44a87e(0x390)][_0x44a87e(0x4d4)](ve,this[_0x44a87e(0x50d)],this[_0x44a87e(0x4df)],this[_0x44a87e(0xec)],[],this[_0x44a87e(0x4c7)],_0x453eed);}['_resendWithTimeout'](_0x174dcf,_0x129592){const _0xed52b4=_0x3ee1d4;var _0x3dda8a;_0x174dcf===((_0x3dda8a=this[_0xed52b4(0xec)])==null?void 0x0:_0x3dda8a[_0xed52b4(0x149)])&&(this[_0xed52b4(0x43b)](),this[_0xed52b4(0x31f)]=_0x129592===0x0?0x3e8:_0x129592*0x2);}[_0x3ee1d4(0x277)](){const _0x444b13=_0x3ee1d4;var _0x25aba8;(_0x25aba8=this[_0x444b13(0x187)])==null||_0x25aba8[_0x444b13(0x17f)](),this[_0x444b13(0x31f)]=0x0;}};fe=ge([N(0x4,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),N(0x5,a['Inject'](S[_0x3ee1d4(0x31c)])),N(0x6,a[_0x3ee1d4(0x4c5)](exports[_0x3ee1d4(0xa4)])),N(0x7,a['ICommandService']),N(0x8,a[_0x3ee1d4(0x25c)]),N(0x9,S[_0x3ee1d4(0x4bb)]),N(0xa,a[_0x3ee1d4(0x3e0)])],fe);let le=class extends Ie{constructor(_0x2feabe,_0x5b79ca,_0x3cf7a4,_0x1b36eb,_0x294619,_0x26d95d,_0xc016e1,_0x5e2acb,_0x16c7bc,_0x59721f,_0x491af6,_0x158b69,_0x3fef70){const _0x2f02cd=_0x3ee1d4;super(_0x2feabe,_0x5b79ca,_0x3cf7a4,_0x1b36eb,_0x294619,_0x59721f,_0x3fef70,_0x5e2acb,_0x16c7bc),I(this,'status','awaiting_with_pending'),I(this,'_resendTimeout',0x0),I(this,'_resendTimer'),I(this,_0x2f02cd(0x187)),(this['_injector']=_0xc016e1,this[_0x2f02cd(0x416)]=_0x491af6,this['_transformService']=_0x158b69,_0x26d95d&&(this[_0x2f02cd(0x1fb)]=_0x26d95d,this['_sender']=this['_resendTimer'][_0x2f02cd(0x455)](({reqId:_0x4b77c8,timeout:_0x295190})=>{this['_resendWithTimeout'](_0x4b77c8,_0x295190);})));}[_0x3ee1d4(0x37e)](_0x1b6eb7){const _0x47e09f=_0x3ee1d4;return this[_0x47e09f(0x108)][_0x47e09f(0x462)](_0x1b6eb7),this;}[_0x3ee1d4(0x2a0)](_0x3d1035){const _0x433705=_0x3ee1d4;if(this['_checkMissing'](_0x3d1035))return this[_0x433705(0x277)](),this['_injector'][_0x433705(0x4d4)](oe,this[_0x433705(0x50d)],this['type'],this[_0x433705(0xec)],this[_0x433705(0x108)],null,[_0x3d1035],this[_0x433705(0x4c7)]);try{const _0x3e020f=this[_0x433705(0x414)][_0x433705(0x143)]([_0x3d1035],[this['_awaitingChangeset']],!0x1);if(S[_0x433705(0x188)](_0x3e020f)){const {c1Prime:_0x11c657,c2Prime:_0x24800e}=_0x3e020f,_0x28ff05=this[_0x433705(0x414)]['transformMutationsWithChangeset'](_0x11c657[0x0],this[_0x433705(0x108)]);if(S['isTransformMutationsWithChangesetSuccess'](_0x28ff05)){const {c1Prime:_0x435637,m2Prime:_0x302e21}=_0x28ff05;return this[_0x433705(0x157)](_0x435637),_0x24800e[0x0][_0x433705(0x4b0)]=this[_0x433705(0x3a4)](),this[_0x433705(0x277)](),this['_injector'][_0x433705(0x4d4)](le,this[_0x433705(0x50d)],this[_0x433705(0x4df)],_0x24800e[0x0],_0x302e21,this['_handler'],void 0x0);}throw _0x28ff05[_0x433705(0x97)];}throw _0x3e020f[_0x433705(0x97)];}catch(_0x2f9b64){return this[_0x433705(0x416)][_0x433705(0x97)](_0x2f9b64),this[_0x433705(0x8c)](!0x1);}}['onRemoteAck'](_0x251d70){const _0x461909=_0x3ee1d4;if(this[_0x461909(0x277)](),this[_0x461909(0x138)](_0x251d70))return this[_0x461909(0x390)][_0x461909(0x4d4)](oe,this['unitID'],this[_0x461909(0x4df)],null,this[_0x461909(0x108)],this[_0x461909(0xec)],[],this[_0x461909(0x4c7)]);this[_0x461909(0x2d8)]();const _0x1d9f07=this[_0x461909(0x390)][_0x461909(0x4d4)](ce,this[_0x461909(0x50d)],this[_0x461909(0x4df)],this[_0x461909(0x108)],this['_handler']);return _0x1d9f07[_0x461909(0x19e)](),_0x1d9f07[_0x461909(0x366)](),_0x1d9f07;}[_0x3ee1d4(0x42c)](_0x38c814){const _0x23c7ae=_0x3ee1d4;return this[_0x23c7ae(0x8c)](!!(_0x38c814!=null&&_0x38c814[_0x23c7ae(0x1ac)]));}['onRemoteRetry'](_0x79211){const _0x48de40=_0x3ee1d4;return this[_0x48de40(0x31f)]>fn?this[_0x48de40(0x492)]():(this['_resendTimer']=dn(this[_0x48de40(0x31f)],{'timeout':this[_0x48de40(0x31f)],'reqId':_0x79211[_0x48de40(0x149)]}),this[_0x48de40(0x187)]=this[_0x48de40(0x1fb)]['subscribe'](({reqId:_0x31ce38,timeout:_0x3b8361})=>{const _0x19d2d2=_0x48de40;this[_0x19d2d2(0x15f)](_0x31ce38,_0x3b8361);}),this);}[_0x3ee1d4(0x492)](){const _0x470959=_0x3ee1d4;return this[_0x470959(0x277)](),this['_injector'][_0x470959(0x4d4)](me,this['unitID'],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x470959(0x4c7)]);}[_0x3ee1d4(0x2f6)](){return this;}[_0x3ee1d4(0x43b)](){const _0x1659a0=_0x3ee1d4;this[_0x1659a0(0x4c7)][_0x1659a0(0x2ac)](this[_0x1659a0(0xec)]);}[_0x3ee1d4(0x8c)](_0x1aea55){const _0x397d4e=_0x3ee1d4;return this[_0x397d4e(0x277)](),this['_injector'][_0x397d4e(0x4d4)](ve,this[_0x397d4e(0x50d)],this[_0x397d4e(0x4df)],null,this[_0x397d4e(0x108)],this['_handler'],_0x1aea55);}[_0x3ee1d4(0x15f)](_0x5ec1a5,_0x33291e){const _0x33f276=_0x3ee1d4;var _0x567cbe;_0x5ec1a5===((_0x567cbe=this[_0x33f276(0xec)])==null?void 0x0:_0x567cbe[_0x33f276(0x149)])&&(this['resend'](),this[_0x33f276(0x31f)]=_0x33291e===0x0?0x3e8:_0x33291e*0x2);}[_0x3ee1d4(0x277)](){const _0x77682d=_0x3ee1d4;var _0x6de527;(_0x6de527=this[_0x77682d(0x187)])==null||_0x6de527[_0x77682d(0x17f)](),this[_0x77682d(0x31f)]=0x0;}};le=ge([N(0x6,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),N(0x7,a[_0x3ee1d4(0x4c5)](S[_0x3ee1d4(0x31c)])),N(0x8,a[_0x3ee1d4(0x4c5)](exports['LocalCacheService'])),N(0x9,a['ICommandService']),N(0xa,a[_0x3ee1d4(0x25c)]),N(0xb,S[_0x3ee1d4(0x4bb)]),N(0xc,a[_0x3ee1d4(0x3e0)])],le);let ve=class extends Ie{constructor(_0x1fb483,_0x2571ab,_0x5a2dad,_0x4e6b8c,_0x1ab4e3,_0x4c6ce4=!0x1,_0x505ac0,_0x53b1a7,_0x5d28ba,_0x4da01b,_0x4285eb,_0xfbc155,_0x3281ba){const _0x2ac0e7=_0x3ee1d4;super(_0x1fb483,_0x2571ab,_0x5a2dad,_0x4e6b8c,_0x1ab4e3,_0x53b1a7,_0x5d28ba,_0x4285eb,_0x4da01b),I(this,_0x2ac0e7(0x19a),'conflict'),(this[_0x2ac0e7(0x148)]=_0x4c6ce4,this[_0x2ac0e7(0x2e6)]=_0x505ac0,this[_0x2ac0e7(0x163)]=_0xfbc155,this[_0x2ac0e7(0x7e)]=_0x3281ba,this[_0x2ac0e7(0xae)](),this[_0x2ac0e7(0x73)](),this[_0x2ac0e7(0x323)]());}[_0x3ee1d4(0x37e)](){return this;}['onRemoteChangeset'](){return this;}[_0x3ee1d4(0x17c)](){return this;}['onRemoteRej'](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x3ee1d4(0x2f6)](){return this;}[_0x3ee1d4(0x43b)](){const _0x2184fa=_0x3ee1d4;throw new Error(_0x2184fa(0x4fd));}[_0x3ee1d4(0x73)](){const _0x44298f=_0x3ee1d4;this[_0x44298f(0xd5)][_0x44298f(0x47d)](this[_0x44298f(0x50d)],this[_0x44298f(0x4df)],null,[]);}[_0x3ee1d4(0xae)](){const _0xeba04b=_0x3ee1d4;this[_0xeba04b(0x148)]?this[_0xeba04b(0x7e)][_0xeba04b(0x1bb)]({'title':this['_localeService']['t'](_0xeba04b(0x39c)),'content':this['_localeService']['t']('permission.content'),'type':_0xeba04b(0x97),'duration':0x0}):this[_0xeba04b(0x7e)]['show']({'title':this['_localeService']['t'](_0xeba04b(0x248)),'content':this['_localeService']['t'](_0xeba04b(0x210)),'type':'error','duration':0x0});}[_0x3ee1d4(0x323)](){const _0x33ab91=_0x3ee1d4;this['_permissionService'][_0x33ab91(0x411)](new k[(_0x33ab91(0x31b))](this[_0x33ab91(0x50d)])['id'],!0x1);}};ve=ge([N(0x6,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x458)])),N(0x7,a['ICommandService']),N(0x8,a['IUndoRedoService']),N(0x9,a['Inject'](exports[_0x3ee1d4(0xa4)])),N(0xa,a[_0x3ee1d4(0x4c5)](S[_0x3ee1d4(0x31c)])),N(0xb,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x2ae)])),N(0xc,te[_0x3ee1d4(0x80)])],ve);let me=class extends Ie{constructor(_0x1efc1a,_0x29f631,_0x2de3bf,_0x58ad5b,_0x7d0b28,_0x2652da,_0x1f63b9,_0x16960b,_0x388c3c,_0x400a91){const _0x39d81c=_0x3ee1d4;super(_0x1efc1a,_0x29f631,_0x2de3bf,_0x58ad5b,_0x7d0b28,_0x388c3c,_0x400a91,_0x1f63b9,_0x16960b),I(this,_0x39d81c(0x19a),_0x39d81c(0x1b4)),this[_0x39d81c(0x390)]=_0x2652da;}[_0x3ee1d4(0x37e)](_0x1331d1){const _0x31cf8b=_0x3ee1d4;return this[_0x31cf8b(0x108)][_0x31cf8b(0x462)](_0x1331d1),this[_0x31cf8b(0x366)](),this;}[_0x3ee1d4(0x2a0)](_0xe465f){const _0x1e2c7e=_0x3ee1d4;throw new Error(_0x1e2c7e(0x475));}[_0x3ee1d4(0x17c)](){const _0x139378=_0x3ee1d4;throw new Error(_0x139378(0x15a));}['onRemoteRej'](){const _0x1f4802=_0x3ee1d4;throw new Error(_0x1f4802(0x46e));}[_0x3ee1d4(0x38c)](){return this;}[_0x3ee1d4(0x492)](){return this;}['toggleOnline'](){const _0x2a94f0=_0x3ee1d4,{_injector:_0x278f08,_pendingMutations:_0x4ba06d,_awaitingChangeset:_0x516cd7,unitID:_0x2da63e,_handler:_0x38405c,type:_0x25249d}=this,_0x22e2a4=vn(_0x278f08,_0x2da63e,_0x25249d,_0x516cd7,_0x4ba06d,_0x38405c);return _0x22e2a4 instanceof ce?_0x22e2a4[_0x2a94f0(0x19e)]():(_0x22e2a4 instanceof le||_0x22e2a4 instanceof fe)&&_0x22e2a4[_0x2a94f0(0x43b)](),_0x22e2a4;}[_0x3ee1d4(0x43b)](){const _0x3c92dd=_0x3ee1d4;throw new Error(_0x3c92dd(0x433));}};me=ge([N(0x5,a[_0x3ee1d4(0x4c5)](a['Injector'])),N(0x6,a[_0x3ee1d4(0x4c5)](S[_0x3ee1d4(0x31c)])),N(0x7,a['Inject'](exports[_0x3ee1d4(0xa4)])),N(0x8,a[_0x3ee1d4(0x1cc)]),N(0x9,a[_0x3ee1d4(0x3e0)])],me);let oe=class extends Ie{constructor(_0x2979fc,_0x100980,_0x22889a,_0x19b73f,_0x462acc,_0x42bb5c,_0x3bd146,_0x43ad7a,_0x39825e,_0x503c43,_0x56b99a,_0x2acfd1,_0x5238cc,_0x4d5589){const _0x4637ee=_0x3ee1d4;super(_0x2979fc,_0x100980,_0x22889a,_0x19b73f,_0x3bd146,_0x2acfd1,_0x5238cc,_0x39825e,_0x503c43),I(this,'status','fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x462acc,this[_0x4637ee(0x1df)]=_0x42bb5c,this[_0x4637ee(0x390)]=_0x43ad7a,this[_0x4637ee(0x416)]=_0x56b99a,this[_0x4637ee(0x414)]=_0x4d5589);}[_0x3ee1d4(0x20a)](_0x3176d5){const _0x125ede=_0x3ee1d4;try{const _0x2cbf4a=[..._0x3176d5,...this[_0x125ede(0x1df)]],_0x1d8680=[this[_0x125ede(0xec)]||this['_acknowledgedAwaitingChangeset']][_0x125ede(0x48a)](_0x54227a=>!!_0x54227a);let _0x39367a,_0x357a13;if(_0x1d8680[_0x125ede(0x156)]){const _0x10b2b8=this[_0x125ede(0x414)][_0x125ede(0x143)](_0x2cbf4a,_0x1d8680,!0x1);if(!S[_0x125ede(0x188)](_0x10b2b8))throw _0x10b2b8[_0x125ede(0x97)];_0x39367a=_0x10b2b8['c1Prime'],_0x357a13=_0x10b2b8[_0x125ede(0x3a5)];}else _0x39367a=_0x2cbf4a,_0x357a13=[];let _0x298b53=this[_0x125ede(0x108)];_0x39367a['forEach'](_0x225468=>{const _0x1f7360=_0x125ede;let _0x4279a0;if(_0x298b53['length']){const _0x5dadd1=this[_0x1f7360(0x414)]['transformMutationsWithChangeset'](_0x225468,_0x298b53);if(!S[_0x1f7360(0x2f7)](_0x5dadd1))throw _0x5dadd1[_0x1f7360(0x97)];_0x4279a0=_0x5dadd1['c1Prime'],_0x298b53=_0x5dadd1[_0x1f7360(0x3fb)];}else _0x4279a0=_0x225468;this['_executeRemoteChangeset'](_0x4279a0);}),this[_0x125ede(0xe9)]&&this[_0x125ede(0x2d8)](),this['_awaitingChangeset']&&_0x357a13[_0x125ede(0x156)]&&(_0x357a13[0x0][_0x125ede(0x4b0)]=this['_getCurrentRevision']());let _0x4091ae;if(this[_0x125ede(0xec)]&&_0x298b53[_0x125ede(0x156)]!==0x0)_0x4091ae=this[_0x125ede(0x390)][_0x125ede(0x4d4)](le,this[_0x125ede(0x50d)],this['type'],_0x357a13[0x0],_0x298b53,this[_0x125ede(0x4c7)],void 0x0);else{if(this[_0x125ede(0xec)]&&_0x298b53[_0x125ede(0x156)]===0x0)_0x357a13[0x0][_0x125ede(0x4b0)]=this[_0x125ede(0x3a4)](),_0x4091ae=this[_0x125ede(0x390)]['createInstance'](fe,this['unitID'],this[_0x125ede(0x4df)],_0x357a13[0x0],this['_handler']);else{if(_0x298b53[_0x125ede(0x156)]!==0x0){const _0x1c89df=this[_0x125ede(0x390)][_0x125ede(0x4d4)](ce,this[_0x125ede(0x50d)],this[_0x125ede(0x4df)],_0x298b53,this['_handler']);_0x1c89df[_0x125ede(0x19e)](),_0x4091ae=_0x1c89df;}else _0x4091ae=this['_injector'][_0x125ede(0x4d4)](ye,this[_0x125ede(0x50d)],this[_0x125ede(0x4df)],this['_handler']);}}return _0x4091ae[_0x125ede(0x366)](),_0x4091ae;}catch(_0x31e93f){return this[_0x125ede(0x416)][_0x125ede(0x97)](_0x125ede(0x1a9),_0x125ede(0x501),_0x31e93f),this[_0x125ede(0x390)][_0x125ede(0x4d4)](ve,this['unitID'],this[_0x125ede(0x4df)],this[_0x125ede(0xec)],this[_0x125ede(0x108)],this[_0x125ede(0x4c7)],!0x1);}}['resend'](){const _0x1c5a57=_0x3ee1d4;throw new Error(_0x1c5a57(0x259));}[_0x3ee1d4(0x37e)](_0x284d5e){const _0x581983=_0x3ee1d4;return this[_0x581983(0x108)][_0x581983(0x462)](_0x284d5e),this;}['onRemoteChangeset'](_0x43a0fd){const _0x5707ed=_0x3ee1d4;return this[_0x5707ed(0x1df)][_0x5707ed(0x462)](_0x43a0fd),this;}['onRemoteAck'](_0x50449d){const _0x516070=_0x3ee1d4;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this[_0x516070(0xec)],this[_0x516070(0xec)]=null,this;throw new Error(_0x516070(0x91));}['onRemoteRej'](_0x75a6dd){const _0x465bbd=_0x3ee1d4;return this[_0x465bbd(0x8c)](!!(_0x75a6dd!=null&&_0x75a6dd[_0x465bbd(0x1ac)]));}[_0x3ee1d4(0x38c)](){return this;}[_0x3ee1d4(0x492)](){const _0x233315=_0x3ee1d4;return this[_0x233315(0x390)]['createInstance'](me,this[_0x233315(0x50d)],this[_0x233315(0x4df)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x233315(0x4c7)]);}['toggleOnline'](){return this;}[_0x3ee1d4(0x8c)](_0x563134){const _0x1495fd=_0x3ee1d4;return this[_0x1495fd(0x390)][_0x1495fd(0x4d4)](ve,this[_0x1495fd(0x50d)],this[_0x1495fd(0x4df)],this[_0x1495fd(0xec)],this[_0x1495fd(0x108)],this[_0x1495fd(0x4c7)],_0x563134);}};oe=ge([N(0x7,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),N(0x8,a[_0x3ee1d4(0x4c5)](S[_0x3ee1d4(0x31c)])),N(0x9,a['Inject'](exports[_0x3ee1d4(0xa4)])),N(0xa,a[_0x3ee1d4(0x25c)]),N(0xb,a['ICommandService']),N(0xc,a[_0x3ee1d4(0x3e0)]),N(0xd,S['ITransformService'])],oe);function vn(_0x286f31,_0x34e468,_0x502a1d,_0x378de5,_0x3fada0,_0x322f70){const _0x3fc89f=_0x3ee1d4;return _0x378de5&&_0x3fada0[_0x3fc89f(0x156)]?_0x286f31[_0x3fc89f(0x4d4)](le,_0x34e468,_0x502a1d,_0x378de5,_0x3fada0,_0x322f70,void 0x0):_0x378de5?_0x286f31['createInstance'](fe,_0x34e468,_0x502a1d,_0x378de5,_0x322f70):_0x3fada0[_0x3fc89f(0x156)]?_0x286f31[_0x3fc89f(0x4d4)](ce,_0x34e468,_0x502a1d,_0x3fada0,_0x322f70):_0x286f31[_0x3fc89f(0x4d4)](ye,_0x34e468,_0x502a1d,_0x322f70);}var $i=Object['defineProperty'],ji=Object[_0x3ee1d4(0xe2)],Rt=(_0x1cb757,_0x121606,_0x5ed0e8,_0x15e347)=>{const _0x30f76a=_0x3ee1d4;for(var _0xbdae22=_0x15e347>0x1?void 0x0:_0x15e347?ji(_0x121606,_0x5ed0e8):_0x121606,_0x330665=_0x1cb757[_0x30f76a(0x156)]-0x1,_0x40f987;_0x330665>=0x0;_0x330665--)(_0x40f987=_0x1cb757[_0x330665])&&(_0xbdae22=(_0x15e347?_0x40f987(_0x121606,_0x5ed0e8,_0xbdae22):_0x40f987(_0xbdae22))||_0xbdae22);return _0x15e347&&_0xbdae22&&$i(_0x121606,_0x5ed0e8,_0xbdae22),_0xbdae22;},H=(_0x43f7bb,_0x3f69cd)=>(_0x2febb8,_0x7748e8)=>_0x3f69cd(_0x2febb8,_0x7748e8,_0x43f7bb);exports['CollaborationEntity']=class extends a['RxDisposable']{constructor(_0x29e957,_0xdb7c6a,_0xae44f8,_0x1badad,_0x24d533,_0x58aa23,_0x1d2ae5,_0x5436da,_0x2632a3,_0x39107d,_0x1769fd,_0x4666ee,_0x53765c){const _0x3806b0=_0x3ee1d4;super(),I(this,'_state$',new A[(_0x3806b0(0x45c))](null)),I(this,_0x3806b0(0x74),this['_state$'][_0x3806b0(0x3d4)]()),I(this,'_state'),I(this,_0x3806b0(0x25b),!0x1),I(this,'_changesetSessionId',''),I(this,_0x3806b0(0x1a4),0x0),I(this,_0x3806b0(0x1a6),this[_0x3806b0(0x74)]['pipe'](A[_0x3806b0(0x4c0)](_0x22a989=>_0x22a989?_0x22a989['status']:q[_0x3806b0(0x386)]),A['shareReplay'](0x1))),I(this,_0x3806b0(0x3c2),!0x1),I(this,_0x3806b0(0x446),[]),(this[_0x3806b0(0x50d)]=_0x29e957,this[_0x3806b0(0x191)]=_0xdb7c6a,this['_type']=_0xae44f8,this['_injector']=_0x1badad,this[_0x3806b0(0xd5)]=_0x24d533,this[_0x3806b0(0x345)]=_0x58aa23,this[_0x3806b0(0x163)]=_0x1d2ae5,this[_0x3806b0(0xca)]=_0x5436da,this[_0x3806b0(0x416)]=_0x2632a3,this[_0x3806b0(0x117)]=_0x39107d,this[_0x3806b0(0x3ae)]=_0x1769fd,this[_0x3806b0(0x2e6)]=_0x4666ee,this['_singleActiveUnitService']=_0x53765c);}get[_0x3ee1d4(0x274)](){const _0x4cad43=_0x3ee1d4;return this[_0x4cad43(0x41c)];}async[_0x3ee1d4(0x42a)](){const _0x528334=_0x3ee1d4;if(this['state'])throw new Error(_0x528334(0x30f));await this[_0x528334(0x106)]();}[_0x3ee1d4(0x1b6)](){const _0x28f5d6=_0x3ee1d4;return this[_0x28f5d6(0x25b)]=!0x0,a[_0x28f5d6(0x11a)](()=>{const _0xe0ddd1=_0x28f5d6;this[_0xe0ddd1(0x25b)]=!0x1,this[_0xe0ddd1(0x17e)]();});}['_updateState'](_0x42d00e){const _0x46fdaa=_0x3ee1d4;this[_0x46fdaa(0x41c)]=_0x42d00e,this[_0x46fdaa(0x239)][_0x46fdaa(0x261)](_0x42d00e);}async[_0x3ee1d4(0x106)](){const _0x390307=_0x3ee1d4;var _0x2f7e0d;this[_0x390307(0x1b8)](await this[_0x390307(0x98)]()),this[_0x390307(0x505)]&&((_0x2f7e0d=this[_0x390307(0x505)])==null||_0x2f7e0d[_0x390307(0x1f2)](this[_0x390307(0x50d)]),this[_0x390307(0x4bd)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x390307(0x50d)])[_0x390307(0x455)](_0x1ebc51=>{const _0x390996=_0x390307;this[_0x390996(0x416)][_0x390996(0x40d)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x1ebc51),_0x1ebc51===_n['OTHER_CLIENTS_EDITING']?(this[_0x390996(0x3ae)]['show']({'content':this[_0x390996(0x163)]['t'](_0x390996(0x33b)),'type':pe[_0x390996(0x382)]['Warning']}),this[_0x390996(0x2e6)][_0x390996(0x411)](new k[(_0x390996(0x31b))](this[_0x390996(0x50d)])['id'],!0x1),this[_0x390996(0x2e6)][_0x390996(0x2a2)](!0x1)):(this[_0x390996(0x2e6)]['updatePermissionPoint'](new k[(_0x390996(0x31b))](this[_0x390996(0x50d)])['id'],!0x0),this[_0x390996(0x2e6)][_0x390996(0x2a2)](!0x0));})));let _0x579fe9=!0x1;return this[_0x390307(0x4bd)](this[_0x390307(0x191)][_0x390307(0x1d2)][_0x390307(0x455)](_0x2d57b5=>{const _0x124b5b=_0x390307;_0x2d57b5===re['ONLINE']?this[_0x124b5b(0x354)](_0x579fe9):_0x2d57b5===re[_0x124b5b(0x386)]&&(_0x579fe9=!0x0,this[_0x124b5b(0x1aa)]());})),this[_0x390307(0x4bd)](this[_0x390307(0x191)][_0x390307(0x3c9)]['subscribe'](_0x3b3ac1=>{const _0x15dd43=_0x390307;try{switch(_0x3b3ac1['eventID']){case S[_0x15dd43(0x2d3)]['NEW_CHANGESETS']:{this[_0x15dd43(0x2bc)](S['parseProtocolChangeset'](_0x3b3ac1['data']));break;}case S[_0x15dd43(0x2d3)]['CHANGESET_ACK']:{this[_0x15dd43(0x1ca)](_0x3b3ac1[_0x15dd43(0x351)]);break;}case S['CollaborationEvent'][_0x15dd43(0x3e9)]:{this['_onRemoteRejected']();break;}case S[_0x15dd43(0x2d3)][_0x15dd43(0x470)]:{this[_0x15dd43(0x2a6)](_0x3b3ac1[_0x15dd43(0x351)]);break;}case S[_0x15dd43(0x2d3)][_0x15dd43(0x36b)]:{this[_0x15dd43(0xcc)](_0x3b3ac1[_0x15dd43(0x351)][_0x15dd43(0x4ee)][_0x15dd43(0x4c0)](_0x168eea=>S['parseProtocolChangeset'](_0x168eea)));break;}case S['CollaborationEvent'][_0x15dd43(0x1e6)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x501d29){throw console[_0x15dd43(0x97)]('Error\x20on\x20receiving\x20event',_0x501d29),_0x501d29;}})),this[_0x390307(0x41c)];}['_unlockTransition'](){const _0x4366ce=_0x3ee1d4;this[_0x4366ce(0x3c2)]=!0x1;}[_0x3ee1d4(0x49d)](){const _0x6013=_0x3ee1d4;if(this[_0x6013(0x3c2)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x54c4dd){const _0xe355a5=_0x3ee1d4;this[_0xe355a5(0x49d)](),this['_updateState'](this[_0xe355a5(0x41c)]['appendMutation'](_0x54c4dd)),this[_0xe355a5(0x16f)]();}[_0x3ee1d4(0x2bc)](_0x16a830){const _0x4f7038=_0x3ee1d4;if(!(_0x16a830['revision']<=this[_0x4f7038(0xca)][_0x4f7038(0x246)](this['unitID']))){if(this[_0x4f7038(0x25b)]){this[_0x4f7038(0x446)][_0x4f7038(0x462)](_0x16a830);return;}this[_0x4f7038(0x18f)](_0x16a830);}}['_exhaustRemoteChangesetQueue'](){const _0x3f3fbd=_0x3ee1d4;this[_0x3f3fbd(0x446)][_0x3f3fbd(0x362)](_0x596143=>this[_0x3f3fbd(0x18f)](_0x596143)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x291e8c){const _0x8a047d=_0x3ee1d4,_0x1c4d0b=this[_0x8a047d(0x345)][_0x8a047d(0x4b7)][_0x8a047d(0x7f)](this[_0x8a047d(0x345)][_0x8a047d(0x4b7)][_0x8a047d(0x393)]()['COMPRESS_MUTATION_APPLY'])(_0x291e8c[_0x8a047d(0x1a7)],null)||_0x291e8c['mutations'],_0x7460de={..._0x291e8c,'mutations':_0x1c4d0b};this[_0x8a047d(0x49d)](),this[_0x8a047d(0x1b8)](this[_0x8a047d(0x41c)]['onRemoteChangeset'](_0x7460de)),this['_unlockTransition']();}[_0x3ee1d4(0x1ca)](_0x548eee){const _0x5115ce=_0x3ee1d4;this['_lockTransition'](),this[_0x5115ce(0x1b8)](this[_0x5115ce(0x41c)]['onRemoteAck'](_0x548eee)),this['_unlockTransition']();}['_onRemoteRejected'](_0x5d9250){const _0x52134a=_0x3ee1d4;this[_0x52134a(0x49d)](),this[_0x52134a(0x1b8)](this[_0x52134a(0x41c)][_0x52134a(0x42c)](_0x5d9250)),this[_0x52134a(0x16f)]();}[_0x3ee1d4(0x2a6)](_0x48aa19){const _0x411987=_0x3ee1d4;this[_0x411987(0x49d)](),this[_0x411987(0x1b8)](this[_0x411987(0x41c)]['onRemoteRetry'](_0x48aa19)),this['_unlockTransition']();}['_onFetchMissResult'](_0x4d5b84){const _0x43f5e3=_0x3ee1d4;if(!(this[_0x43f5e3(0x41c)]instanceof oe))throw new TypeError(_0x43f5e3(0x4cb));const _0x4febd1=_0x4d5b84[_0x43f5e3(0x4c0)](_0x56acaa=>{const _0x438522=_0x43f5e3,_0x4dc1f6=this['_compressMutationService'][_0x438522(0x4b7)][_0x438522(0x7f)](this[_0x438522(0x345)][_0x438522(0x4b7)][_0x438522(0x393)]()[_0x438522(0xd3)])(_0x56acaa[_0x438522(0x1a7)],null)||_0x56acaa[_0x438522(0x1a7)];return{..._0x56acaa,'mutations':_0x4dc1f6};});this[_0x43f5e3(0x49d)](),this[_0x43f5e3(0x1b8)](this[_0x43f5e3(0x41c)]['onMissedChangesetFetched'](_0x4febd1)),this['_unlockTransition']();}[_0x3ee1d4(0x1aa)](){const _0x34b003=_0x3ee1d4;this[_0x34b003(0x49d)](),this[_0x34b003(0x1b8)](this['_state']['toggleOffline']()),this[_0x34b003(0x16f)]();}['_toggleOnline'](_0x39c91f=!0x1){const _0x152b89=_0x3ee1d4;this[_0x152b89(0x49d)](),this[_0x152b89(0x1b8)](this['_state'][_0x152b89(0x2f6)]()),this[_0x152b89(0x16f)]();const _0x17d72d=this[_0x152b89(0x41c)];_0x39c91f&&_0x17d72d instanceof ye&&(this[_0x152b89(0x49d)](),this[_0x152b89(0x1b8)](_0x17d72d[_0x152b89(0x361)]()),this['_unlockTransition']());}async[_0x3ee1d4(0x98)](){return new Promise(_0x46a336=>{const _0xc6cbf7=_0x51c9;this[_0xc6cbf7(0x191)][_0xc6cbf7(0x1d2)][_0xc6cbf7(0x32f)](A[_0xc6cbf7(0x403)](0x1))[_0xc6cbf7(0x455)](async _0x377f50=>{const _0x43ca81=_0xc6cbf7;_0x46a336(await this[_0x43ca81(0x328)](_0x377f50===re[_0x43ca81(0x313)]));});});}['_createHandler'](){const _0x28b7f1=_0x3ee1d4,_0x5e0e97=this[_0x28b7f1(0x50d)];return{'onStateChange':(_0x377e8b,_0x3d8fff)=>{const _0x26da7d=_0x28b7f1;if(_0x377e8b!==this['_state'])throw new Error(_0x26da7d(0x1be)+_0x377e8b[_0x26da7d(0x19a)]+'\x0aAfter:\x20'+_0x3d8fff[_0x26da7d(0x19a)]+_0x26da7d(0x282)+this['_state'][_0x26da7d(0x19a)]);this[_0x26da7d(0x1b8)](_0x3d8fff);},'onSendChangeset':_0x52c927=>{const _0x6cf364=_0x28b7f1;_0x52c927[_0x6cf364(0x113)]||(_0x52c927[_0x6cf364(0x113)]=this['_changesetSessionId'],_0x52c927[_0x6cf364(0x149)]=++this[_0x6cf364(0x1a4)]);const _0x343013={'eventID':S[_0x6cf364(0x2d3)][_0x6cf364(0x4c9)],'data':{'unitID':_0x52c927[_0x6cf364(0x50d)],'unitType':this[_0x6cf364(0x33e)],'changeset':_0x52c927,'memberID':this[_0x6cf364(0x191)]['getMemberID']()}};this['session'][_0x6cf364(0x133)](_0x343013,this[_0x6cf364(0x50d)]);},'onMissingChangesets':({from:_0x4995fb,to:_0x2f50b3})=>{const _0xe42a5e=_0x28b7f1;this[_0xe42a5e(0x416)][_0xe42a5e(0x40d)](_0xe42a5e(0x272),_0xe42a5e(0x190)+_0x4995fb+_0xe42a5e(0x94)+_0x2f50b3);const _0x59e6b0={'eventID':S[_0xe42a5e(0x2d3)]['FETCH_MISSING'],'data':{'unitID':_0x5e0e97,'unitType':this[_0xe42a5e(0x33e)],'from':_0x4995fb,'to':_0x2f50b3}};this[_0xe42a5e(0x191)][_0xe42a5e(0x133)](_0x59e6b0,this[_0xe42a5e(0x50d)]);}};}async[_0x3ee1d4(0x328)](_0x1e8d68){const _0x500728=_0x3ee1d4;var _0x3808aa,_0x203c82;const _0x277747=await this['_localCacheService'][_0x500728(0x4c3)](this[_0x500728(0x50d)]),_0x4b7848=(_0x3808aa=_0x277747==null?void 0x0:_0x277747[_0x500728(0x1a7)])!=null?_0x3808aa:[],_0x2b2957=(_0x203c82=_0x277747==null?void 0x0:_0x277747[_0x500728(0x438)])!=null?_0x203c82:null,_0x3e63fa=!!(_0x2b2957!=null&&_0x2b2957[_0x500728(0x113)])&&!!(_0x2b2957!=null&&_0x2b2957[_0x500728(0x149)]);this[_0x500728(0x42f)]=_0x3e63fa?_0x2b2957[_0x500728(0x113)]:di(),this[_0x500728(0x1a4)]=_0x3e63fa?_0x2b2957[_0x500728(0x149)]:0x0;const _0x36e7c0=this[_0x500728(0x50d)];try{this[_0x500728(0xf2)](_0x2b2957,_0x4b7848);}catch(_0x40d6f7){this['_logService'][_0x500728(0x97)](_0x40d6f7);}const _0x2ef7a8=this['_createHandler']();if(_0x1e8d68){const _0x32e59e=vn(this['_injector'],_0x36e7c0,this[_0x500728(0x33e)],_0x2b2957,_0x4b7848,_0x2ef7a8);return _0x32e59e instanceof ce?_0x32e59e[_0x500728(0x19e)]():(_0x32e59e instanceof le||_0x32e59e instanceof fe)&&_0x32e59e['resend'](),_0x32e59e;}return this[_0x500728(0x390)][_0x500728(0x4d4)](me,_0x36e7c0,this[_0x500728(0x33e)],_0x2b2957,_0x4b7848,_0x2ef7a8);}[_0x3ee1d4(0xf2)](_0x1533c2,_0x3f8524){const _0x328f0a=_0x3ee1d4;var _0x5d3527,_0x165a26;const _0x108dcc=this['_compressMutationService']['interceptor'][_0x328f0a(0x7f)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x328f0a(0xd3)]);(_0x5d3527=_0x108dcc((_0x1533c2==null?void 0x0:_0x1533c2[_0x328f0a(0x1a7)])||[],null))==null||_0x5d3527['forEach'](_0x5838e4=>this[_0x328f0a(0x117)][_0x328f0a(0x1ec)](_0x5838e4['id'],_0x5838e4[_0x328f0a(0x507)])),(_0x165a26=_0x108dcc(_0x3f8524||[],null))==null||_0x165a26[_0x328f0a(0x362)](_0x22eeba=>this[_0x328f0a(0x117)][_0x328f0a(0x1ec)](_0x22eeba['id'],_0x22eeba['params']));}},exports[_0x3ee1d4(0x199)]=Rt([H(0x3,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),H(0x4,a[_0x3ee1d4(0x4c5)](exports[_0x3ee1d4(0xa4)])),H(0x5,a[_0x3ee1d4(0x4c5)](S[_0x3ee1d4(0xb8)])),H(0x6,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x2ae)])),H(0x7,a['Inject'](S[_0x3ee1d4(0x31c)])),H(0x8,a['ILogService']),H(0x9,a[_0x3ee1d4(0x1cc)]),H(0xa,te[_0x3ee1d4(0xf4)]),H(0xb,a['IPermissionService']),H(0xc,a[_0x3ee1d4(0xa5)](qe))],exports[_0x3ee1d4(0x199)]),exports[_0x3ee1d4(0x14b)]=class extends exports[_0x3ee1d4(0x199)]{constructor(_0x531b8d,_0x38029c,_0xbd5ed7,_0x39003a,_0x28fbcb,_0x487e6f,_0x3c60e1,_0x503bd1,_0x30195f,_0x2a5e5e,_0x2e7f49,_0x47b3a8,_0x8103e6,_0x241dcf,_0x365711,_0x1c2dd0,_0x18404e,_0x51ceb5){const _0x16edca=_0x3ee1d4;super(_0x531b8d,_0xbd5ed7,_0x38029c,_0x39003a,_0x28fbcb,_0x487e6f,_0x3c60e1,_0x503bd1,_0x241dcf,_0x365711,_0x1c2dd0,_0x18404e,_0x51ceb5),this[_0x16edca(0x50d)]=_0x531b8d,this['type']=_0x38029c,this[_0x16edca(0x4fe)]=_0x30195f,this[_0x16edca(0x223)]=_0x2a5e5e,this[_0x16edca(0x3c5)]=_0x2e7f49,this[_0x16edca(0xd4)]=_0x47b3a8,this[_0x16edca(0xb0)]=_0x8103e6;}['_createHandler'](){const _0x3a54c7=_0x3ee1d4,_0x38fc31=super[_0x3a54c7(0x41e)]();return _0x38fc31[_0x3a54c7(0x178)]=_0x2b69af=>this[_0x3a54c7(0x223)][_0x3a54c7(0x2b8)](_0x2b69af),_0x38fc31[_0x3a54c7(0x4ba)]=_0x11263d=>this[_0x3a54c7(0x3c5)]['transformStateCache'](_0x11263d),_0x38fc31[_0x3a54c7(0x16e)]=_0x582317=>this[_0x3a54c7(0xd4)]['transformSelections'](_0x582317),_0x38fc31[_0x3a54c7(0x195)]=_0x57be33=>this['_docSyncEditingCollabCursorService'][_0x3a54c7(0x2dd)](_0x57be33),_0x38fc31[_0x3a54c7(0x2a8)]=_0x6dfe41=>this[_0x3a54c7(0x223)][_0x3a54c7(0x1fc)](_0x6dfe41),_0x38fc31[_0x3a54c7(0x1e4)]=_0xa17cc0=>this[_0x3a54c7(0x3c5)][_0x3a54c7(0x1fc)](_0xa17cc0),_0x38fc31;}async[_0x3ee1d4(0x106)](){const _0x3b12ee=_0x3ee1d4,_0x41aaaa=await super[_0x3b12ee(0x106)]();return this[_0x3b12ee(0x4fe)][_0x3b12ee(0xed)][_0x3b12ee(0x32f)](A[_0x3b12ee(0x1d9)](this[_0x3b12ee(0xc9)]))[_0x3b12ee(0x455)](_0x43a110=>{const _0x1c2a6d=_0x3b12ee;if(_0x43a110==null)return;const {unitId:_0x31c327,redoState:_0x2bdfb1,commandId:_0x13753d}=_0x43a110;if(_0x31c327!==this[_0x1c2a6d(0x50d)])return;const _0x518e5b={'id':_0x13753d,'type':a['CommandType'][_0x1c2a6d(0x83)],'params':{'unitId':_0x31c327,'actions':_0x2bdfb1[_0x1c2a6d(0x4d5)],'textRanges':null}};this[_0x1c2a6d(0x2ca)](_0x518e5b);}),_0x41aaaa;}},exports[_0x3ee1d4(0x14b)]=Rt([H(0x3,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),H(0x4,a[_0x3ee1d4(0x4c5)](exports[_0x3ee1d4(0xa4)])),H(0x5,a[_0x3ee1d4(0x4c5)](S[_0x3ee1d4(0xb8)])),H(0x6,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x2ae)])),H(0x7,a['Inject'](S[_0x3ee1d4(0x31c)])),H(0x8,a['Inject'](Z[_0x3ee1d4(0x32c)])),H(0x9,a[_0x3ee1d4(0x4c5)](Be)),H(0xa,a[_0x3ee1d4(0x4c5)](We)),H(0xb,a[_0x3ee1d4(0x4c5)](Fe)),H(0xc,a['Inject'](Tt)),H(0xd,a[_0x3ee1d4(0x25c)]),H(0xe,a[_0x3ee1d4(0x1cc)]),H(0xf,te[_0x3ee1d4(0xf4)]),H(0x10,a[_0x3ee1d4(0x458)]),H(0x11,a[_0x3ee1d4(0xa5)](qe))],exports[_0x3ee1d4(0x14b)]),exports[_0x3ee1d4(0x519)]=class extends exports[_0x3ee1d4(0x199)]{constructor(_0xd70722,_0x216b40,_0x5f1780,_0x23945e,_0x1c384b,_0x43cf73,_0x5ddc95,_0x4e31d3,_0x2abbe0,_0x4a57d5,_0x419f7e,_0x451c75,_0x51e30a,_0x320f92){const _0x12deaa=_0x3ee1d4;super(_0xd70722,_0x5f1780,_0x216b40,_0x23945e,_0x1c384b,_0x43cf73,_0x5ddc95,_0x4e31d3,_0x4a57d5,_0x419f7e,_0x451c75,_0x51e30a,_0x320f92),this[_0x12deaa(0x50d)]=_0xd70722,this[_0x12deaa(0x4df)]=_0x216b40,this[_0x12deaa(0x41b)]=_0x2abbe0;}[_0x3ee1d4(0x41e)](){const _0x3f7f40=_0x3ee1d4,_0x50c52e=super[_0x3f7f40(0x41e)]();return _0x50c52e['onTransformSelections']=_0x2e1de7=>this[_0x3f7f40(0x41b)][_0x3f7f40(0x18d)](_0x2e1de7),_0x50c52e;}async[_0x3ee1d4(0x106)](){const _0x3c9aba=_0x3ee1d4,_0x2ea5d2=await super[_0x3c9aba(0x106)]();return this[_0x3c9aba(0x4bd)](this[_0x3c9aba(0x117)][_0x3c9aba(0x20b)]((_0x4feb07,_0x5cdf53)=>{const _0x2818b7=_0x3c9aba;if(_0x4feb07[_0x2818b7(0x4df)]!==a[_0x2818b7(0x1fd)][_0x2818b7(0x83)]||_0x5cdf53!=null&&_0x5cdf53[_0x2818b7(0x2b9)]||_0x5cdf53!=null&&_0x5cdf53[_0x2818b7(0x29a)])return;const _0x502426=_0x4feb07[_0x2818b7(0x507)];if((_0x502426==null?void 0x0:_0x502426[_0x2818b7(0x51e)])!==this[_0x2818b7(0x50d)])return;const _0x4b92f9=_0x4feb07,_0x8ceafd=this[_0x2818b7(0x345)][_0x2818b7(0x4b7)]['fetchThroughInterceptors'](this[_0x2818b7(0x345)]['interceptor'][_0x2818b7(0x393)]()[_0x2818b7(0x22c)])([_0x4b92f9],null)||[_0x4b92f9];this[_0x2818b7(0x2ca)](_0x8ceafd[0x0]);})),_0x2ea5d2;}},exports[_0x3ee1d4(0x519)]=Rt([H(0x3,a[_0x3ee1d4(0x4c5)](a['Injector'])),H(0x4,a[_0x3ee1d4(0x4c5)](exports['LocalCacheService'])),H(0x5,a[_0x3ee1d4(0x4c5)](S['CompressMutationService'])),H(0x6,a[_0x3ee1d4(0x4c5)](a['LocaleService'])),H(0x7,a['Inject'](S[_0x3ee1d4(0x31c)])),H(0x8,a[_0x3ee1d4(0x4c5)](ke)),H(0x9,a[_0x3ee1d4(0x25c)]),H(0xa,a['ICommandService']),H(0xb,te[_0x3ee1d4(0xf4)]),H(0xc,a['IPermissionService']),H(0xd,a[_0x3ee1d4(0xa5)](qe))],exports[_0x3ee1d4(0x519)]);var Hi=Object[_0x3ee1d4(0x4ef)],Bi=Object['getOwnPropertyDescriptor'],ki=(_0x50db92,_0x5104c5,_0x193afd,_0x58abd3)=>{for(var _0x407df9=_0x58abd3>0x1?void 0x0:_0x58abd3?Bi(_0x5104c5,_0x193afd):_0x5104c5,_0x5c3ddd=_0x50db92['length']-0x1,_0x30f630;_0x5c3ddd>=0x0;_0x5c3ddd--)(_0x30f630=_0x50db92[_0x5c3ddd])&&(_0x407df9=(_0x58abd3?_0x30f630(_0x5104c5,_0x193afd,_0x407df9):_0x30f630(_0x407df9))||_0x407df9);return _0x58abd3&&_0x407df9&&Hi(_0x5104c5,_0x193afd,_0x407df9),_0x407df9;},et=(_0x5353dc,_0x3513c0)=>(_0x446c11,_0x44488e)=>_0x3513c0(_0x446c11,_0x44488e,_0x5353dc);exports[_0x3ee1d4(0x122)]=class extends a[_0x3ee1d4(0x301)]{constructor(_0x5d5bff,_0x224925,_0x5b6179){const _0x19463c=_0x3ee1d4;super(),I(this,_0x19463c(0x294),new Map()),I(this,_0x19463c(0x130),new A['Subject']()),(this[_0x19463c(0x390)]=_0x5d5bff,this[_0x19463c(0x1f7)]=_0x224925,this[_0x19463c(0xfd)]=_0x5b6179,this[_0x19463c(0x106)]());}['dispose'](){const _0x429d6a=_0x3ee1d4;super[_0x429d6a(0x292)](),this[_0x429d6a(0x294)][_0x429d6a(0x362)](_0xb860e0=>_0xb860e0['dispose']()),this[_0x429d6a(0x294)][_0x429d6a(0x39e)]();}['getCollabEntity'](_0x542396){const _0xa03cef=_0x3ee1d4;var _0x6a1cee;return(_0x6a1cee=this[_0xa03cef(0x294)][_0xa03cef(0x3ad)](_0x542396))!=null?_0x6a1cee:null;}[_0x3ee1d4(0x38b)](_0x2f2c4a){const _0x42c2ce=_0x3ee1d4,_0x5378e9=this['getCollabEntity'](_0x2f2c4a);return _0x5378e9?A['of'](_0x5378e9):this[_0x42c2ce(0x130)][_0x42c2ce(0x32f)](V['filter'](_0x23c35b=>_0x23c35b[_0x42c2ce(0x50d)]===_0x2f2c4a));}[_0x3ee1d4(0x106)](){const _0x329887=_0x3ee1d4;this[_0x329887(0xfd)][_0x329887(0x2ad)](a[_0x329887(0x3f4)][_0x329887(0x1c8)])[_0x329887(0x32f)](A[_0x329887(0x1d9)](this['dispose$']),V[_0x329887(0x3a1)](0x10))[_0x329887(0x455)](async _0xf129e1=>{const _0x19f8c6=_0x329887,_0x3835d6=_0xf129e1[_0x19f8c6(0x186)](),_0x2a095a=await this[_0x19f8c6(0x2c4)](_0x3835d6,se['UNIVER_SHEET']);this['_entities'][_0x19f8c6(0x276)](_0x3835d6,_0x2a095a);}),this['_univerInstanceService'][_0x329887(0x2ad)](a[_0x329887(0x3f4)][_0x329887(0x357)])[_0x329887(0x32f)](A['takeUntil'](this[_0x329887(0xc9)]),V[_0x329887(0x3a1)](0x10))[_0x329887(0x32f)](V[_0x329887(0x48a)](_0x11392a=>!_0x11392a[_0x329887(0x186)]()[_0x329887(0x503)]('__')))[_0x329887(0x455)](async _0x5c40a2=>{const _0xc3a8fd=_0x329887,_0x9bdf37=_0x5c40a2[_0xc3a8fd(0x186)](),_0x4db070=await this[_0xc3a8fd(0x2c4)](_0x9bdf37,se[_0xc3a8fd(0x357)]);this[_0xc3a8fd(0x294)][_0xc3a8fd(0x276)](_0x9bdf37,_0x4db070);}),A['merge'](this[_0x329887(0xfd)]['getTypeOfUnitDisposed$'](a[_0x329887(0x3f4)]['UNIVER_SHEET']),this[_0x329887(0xfd)]['getTypeOfUnitDisposed$'](a[_0x329887(0x3f4)]['UNIVER_DOC']))[_0x329887(0x32f)](A['takeUntil'](this[_0x329887(0xc9)]))[_0x329887(0x455)](_0x2cc3e3=>{const _0x4323ba=_0x329887,_0x4f2658=_0x2cc3e3[_0x4323ba(0x186)](),_0x1c5eb2=this['_entities'][_0x4323ba(0x3ad)](_0x4f2658);_0x1c5eb2&&(_0x1c5eb2[_0x4323ba(0x292)](),this['_entities'][_0x4323ba(0xd9)](_0x4f2658));});}async['_startCollaboration'](_0x3342ef,_0x476a6c){const _0x4feea3=_0x3ee1d4,_0x2db000=await this[_0x4feea3(0x1f7)][_0x4feea3(0x329)](_0x3342ef),_0x257bc7=this['_injector'][_0x4feea3(0x4d4)](this[_0x4feea3(0x262)](_0x476a6c),_0x3342ef,_0x476a6c,_0x2db000);return await _0x257bc7['init'](),this[_0x4feea3(0x130)][_0x4feea3(0x261)](_0x257bc7),_0x257bc7;}[_0x3ee1d4(0x262)](_0x51f09f){const _0xf3ad12=_0x3ee1d4;switch(_0x51f09f){case se[_0xf3ad12(0x357)]:return exports[_0xf3ad12(0x14b)];case se[_0xf3ad12(0x1c8)]:return exports[_0xf3ad12(0x519)];default:throw new Error(_0xf3ad12(0x23e)+_0x51f09f);}}},exports['CollaborationController']=ki([et(0x0,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),et(0x1,a[_0x3ee1d4(0x4c5)](exports[_0x3ee1d4(0x4a4)])),et(0x2,a[_0x3ee1d4(0x47a)])],exports['CollaborationController']);const $t=[_0x3ee1d4(0x482),_0x3ee1d4(0x3cd),'verdancy600',_0x3ee1d4(0x289),_0x3ee1d4(0x288),_0x3ee1d4(0x402)];class yt extends a[_0x3ee1d4(0xbf)]{constructor(){super(...arguments),I(this,'_assignedColors',new Map()),I(this,'_colorIndex',0x0);}[_0x3ee1d4(0x15d)](_0x416234){const _0x27ba1c=_0x3ee1d4;if(this[_0x27ba1c(0x3b0)]['has'](_0x416234))return this[_0x27ba1c(0x3b0)]['get'](_0x416234);const _0x3d5d74=$t[this[_0x27ba1c(0x1bc)]];return this[_0x27ba1c(0x1bc)]=(this[_0x27ba1c(0x1bc)]+0x1)%$t[_0x27ba1c(0x156)],this[_0x27ba1c(0x3b0)][_0x27ba1c(0x276)](_0x416234,_0x3d5d74),_0x3d5d74;}}var Wi=Object[_0x3ee1d4(0x4ef)],Fi=Object[_0x3ee1d4(0xe2)],Vi=(_0x6179d4,_0xea9ab3,_0xfede94,_0x1a53e0)=>{const _0x2653c=_0x3ee1d4;for(var _0x49dad0=_0x1a53e0>0x1?void 0x0:_0x1a53e0?Fi(_0xea9ab3,_0xfede94):_0xea9ab3,_0x149d7f=_0x6179d4[_0x2653c(0x156)]-0x1,_0x1c5ff9;_0x149d7f>=0x0;_0x149d7f--)(_0x1c5ff9=_0x6179d4[_0x149d7f])&&(_0x49dad0=(_0x1a53e0?_0x1c5ff9(_0xea9ab3,_0xfede94,_0x49dad0):_0x1c5ff9(_0x49dad0))||_0x49dad0);return _0x1a53e0&&_0x49dad0&&Wi(_0xea9ab3,_0xfede94,_0x49dad0),_0x49dad0;},Se=(_0x13b753,_0x164183)=>(_0x37b0f8,_0xf9d795)=>_0x164183(_0x37b0f8,_0xf9d795,_0x13b753);const Gi=0x12c,Yi=0x64;let vt=class extends a[_0x3ee1d4(0x301)]{constructor(_0x193662,_0x1a26d1,_0x269412,_0xe5fc66,_0x31b1cf,_0x5bca3b,_0x4eb7d5,_0x1b90e3,_0x1860f9){const _0x1bce3c=_0x3ee1d4;super(),I(this,_0x1bce3c(0x116),!0x1),I(this,_0x1bce3c(0x106),!0x1),I(this,_0x1bce3c(0xdb),new A[(_0x1bce3c(0x45c))](new Map())),I(this,'cursorInfo$',this[_0x1bce3c(0xdb)][_0x1bce3c(0x3d4)]()),I(this,_0x1bce3c(0x34d),new A[(_0x1bce3c(0x45c))]([])),I(this,_0x1bce3c(0x231),this[_0x1bce3c(0x34d)][_0x1bce3c(0x32f)](A[_0x1bce3c(0x42b)](Gi))),I(this,'_updateLocalCursor',a[_0x1bce3c(0xb9)](_0xf3009c=>{const _0x2368c6=_0x1bce3c,_0x5acd8d={'eventID':S['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x2368c6(0x2bf)]['getMemberID'](),'selection':un(_0xf3009c)}};this[_0x2368c6(0x2bf)][_0x2368c6(0x133)](_0x5acd8d,this[_0x2368c6(0x50d)]);},Yi)),(this[_0x1bce3c(0x50d)]=_0x193662,this[_0x1bce3c(0x2bf)]=_0x1a26d1,this['_injector']=_0x269412,this[_0x1bce3c(0x3c0)]=_0xe5fc66,this['_memberService']=_0x31b1cf,this[_0x1bce3c(0xa7)]=_0x5bca3b,this[_0x1bce3c(0x414)]=_0x4eb7d5,this['_univerInstanceService']=_0x1b90e3,this[_0x1bce3c(0x117)]=_0x1860f9);}get['cursorInfo'](){const _0x59bf28=_0x3ee1d4;return this['_cursorInfo$'][_0x59bf28(0x86)]();}get['roomMembers'](){const _0x1de8cb=_0x3ee1d4;return this[_0x1de8cb(0x34d)][_0x1de8cb(0x86)]();}[_0x3ee1d4(0x292)](){const _0x273d08=_0x3ee1d4;super[_0x273d08(0x292)](),this[_0x273d08(0xdb)][_0x273d08(0x261)](new Map()),this[_0x273d08(0xdb)][_0x273d08(0x11d)](),this['_roomMembers$'][_0x273d08(0x261)]([]),this['_roomMembers$'][_0x273d08(0x11d)]();}['init'](){const _0x22857c=_0x3ee1d4;this[_0x22857c(0x106)]||(this[_0x22857c(0x106)]=!0x0,this['_session'][_0x22857c(0x1d2)]['pipe'](A[_0x22857c(0x1d9)](this[_0x22857c(0xc9)]))['subscribe'](_0x7c3ea1=>{const _0x2051df=_0x22857c;_0x7c3ea1===re[_0x2051df(0x313)]?this['_toggleOnline']():this[_0x2051df(0x1aa)]();}),this[_0x22857c(0x2bf)][_0x22857c(0x3c9)][_0x22857c(0x32f)](A[_0x22857c(0x1d9)](this['dispose$']))['subscribe'](_0x577f36=>{const _0x1835e0=_0x22857c,_0x4d0cf0=_0x577f36[_0x1835e0(0xe1)];_0x4d0cf0===S[_0x1835e0(0x2d3)][_0x1835e0(0x1ce)]&&this[_0x1835e0(0x221)](_0x577f36),_0x4d0cf0===S[_0x1835e0(0x2d3)][_0x1835e0(0x339)]&&this['_onCursorDelete'](_0x577f36);}),this['disposeWithMe'](this[_0x22857c(0x117)]['onCommandExecuted'](_0x22a27f=>{const _0x39df99=_0x22857c,_0x46111=_0x22a27f['params'];_0x46111!=null&&this[_0x39df99(0x116)]&&_0x22a27f['id']===Re[_0x39df99(0x48d)]['id']&&_0x46111['unitId']===this[_0x39df99(0x50d)]&&_0x46111[_0x39df99(0x9d)]===!0x1&&_0x46111[_0x39df99(0x444)][_0x39df99(0x156)]>0x0&&this[_0x39df99(0x4ae)](_0x46111[_0x39df99(0x444)]);})),this[_0x22857c(0xa7)][_0x22857c(0x25a)][_0x22857c(0x32f)](A[_0x22857c(0x1d9)](this[_0x22857c(0xc9)]))[_0x22857c(0x455)](_0x4a9bab=>{const _0x361738=_0x22857c;if((_0x4a9bab==null?void 0x0:_0x4a9bab[_0x361738(0x50d)])!==this[_0x361738(0x50d)])return;const _0x340e8e={'eventID':S[_0x361738(0x2d3)][_0x361738(0x1ce)],'data':_0x4a9bab};this[_0x361738(0x221)](_0x340e8e);}),this[_0x22857c(0x4bd)](this[_0x22857c(0x117)][_0x22857c(0x20b)](_0x4c3ae2=>{const _0x466039=_0x22857c;if(_0x4c3ae2[_0x466039(0x507)]==null)return;const _0x2b9c7c=_0x4c3ae2[_0x466039(0x507)];if(_0x4c3ae2['id']!==Re['RichTextEditingMutation']['id']||_0x2b9c7c[_0x466039(0x51e)]!==this[_0x466039(0x50d)])return;const _0x3411ef={'id':_0x466039(0x1e2),'params':_0x2b9c7c},_0x12c2c1=this['cursorInfo'];for(const [_0x3f8249,_0x33d2b8]of _0x12c2c1){const _0x27af08={'id':_0x466039(0x1e2),'params':{'unitId':this[_0x466039(0x50d)],'actions':null,'textRanges':_0x33d2b8[_0x466039(0x444)]}},_0x4a4eba=this[_0x466039(0x414)][_0x466039(0x139)](_0x3411ef,_0x27af08,!0x1);if(S[_0x466039(0x2f0)](_0x4a4eba))throw _0x4a4eba['error'];_0x12c2c1[_0x466039(0x276)](_0x3f8249,{..._0x33d2b8,'ranges':_0x4a4eba[_0x466039(0x3fb)][_0x466039(0x507)]['textRanges']});}queueMicrotask(()=>{const _0x534581=_0x466039;this['_cursorInfo$'][_0x534581(0x261)](_0x12c2c1);});})));}[_0x3ee1d4(0x221)](_0x1ef189){const _0x5e8ccb=_0x3ee1d4;var _0xc1a70a,_0x3b9058;const {memberID:_0x2a14a9,selection:_0x32e334}=_0x1ef189[_0x5e8ccb(0x351)],_0x1f7340=Di(_0x32e334),_0x1aaf1b=(_0x3b9058=(_0xc1a70a=this[_0x5e8ccb(0x18e)][_0x5e8ccb(0x12e)](this[_0x5e8ccb(0x50d)],_0x2a14a9))==null?void 0x0:_0xc1a70a['name'])!=null?_0x3b9058:_0x5e8ccb(0x518),_0x3ef7a6={'color':this[_0x5e8ccb(0x3c0)]['assignAColorForMemberID'](_0x2a14a9),'name':_0x1aaf1b,'ranges':_0x1f7340},_0x3e96dc=this[_0x5e8ccb(0x12c)];_0x3e96dc[_0x5e8ccb(0x276)](_0x2a14a9,_0x3ef7a6),this['_cursorInfo$'][_0x5e8ccb(0x261)](_0x3e96dc);}['_onCursorDelete'](_0x4b2ba1){const _0x7f84b0=_0x3ee1d4,{memberID:_0x5326dc}=_0x4b2ba1[_0x7f84b0(0x351)],_0x105298=this[_0x7f84b0(0x12c)];_0x105298[_0x7f84b0(0xd9)](_0x5326dc),this['_cursorInfo$'][_0x7f84b0(0x261)](_0x105298);}[_0x3ee1d4(0x354)](){const _0xb76ea8=_0x3ee1d4;var _0x3f41b9;if(this['_online']=!0x0,((_0x3f41b9=this[_0xb76ea8(0xfd)][_0xb76ea8(0x474)]())==null?void 0x0:_0x3f41b9[_0xb76ea8(0x186)]())!==this[_0xb76ea8(0x50d)])return;const _0x1f6917=this[_0xb76ea8(0x390)][_0xb76ea8(0x3ad)](Re[_0xb76ea8(0x3b1)])[_0xb76ea8(0x434)]();Array[_0xb76ea8(0x423)](_0x1f6917)&&_0x1f6917[_0xb76ea8(0x156)]>0x0&&this[_0xb76ea8(0x4ae)](_0x1f6917);}[_0x3ee1d4(0x1aa)](){const _0x682def=_0x3ee1d4;this[_0x682def(0x116)]=!0x1;}};vt=Vi([Se(0x2,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),Se(0x3,a[_0x3ee1d4(0x4c5)](yt)),Se(0x4,a[_0x3ee1d4(0x4c5)](exports[_0x3ee1d4(0x2fd)])),Se(0x5,a[_0x3ee1d4(0x4c5)](Tt)),Se(0x6,S[_0x3ee1d4(0x4bb)]),Se(0x7,a['IUniverInstanceService']),Se(0x8,a['ICommandService'])],vt);var Ki=Object['defineProperty'],qi=Object['getOwnPropertyDescriptor'],zi=(_0x344779,_0x4ec8c3,_0x3ab719,_0x338af7)=>{for(var _0xca3ad6=_0x338af7>0x1?void 0x0:_0x338af7?qi(_0x4ec8c3,_0x3ab719):_0x4ec8c3,_0x40b5dc=_0x344779['length']-0x1,_0x327244;_0x40b5dc>=0x0;_0x40b5dc--)(_0x327244=_0x344779[_0x40b5dc])&&(_0xca3ad6=(_0x338af7?_0x327244(_0x4ec8c3,_0x3ab719,_0xca3ad6):_0x327244(_0xca3ad6))||_0xca3ad6);return _0x338af7&&_0xca3ad6&&Ki(_0x4ec8c3,_0x3ab719,_0xca3ad6),_0xca3ad6;},Ee=(_0x380165,_0x373abe)=>(_0x1c6c1e,_0x1476bd)=>_0x373abe(_0x1c6c1e,_0x1476bd,_0x380165);const Xi=0x12c,Ji=0x64,Zi=()=>{let _0x2bccd2=[],_0x16af7a=!0x1;return _0x2d8b04=>{_0x2bccd2['push'](_0x2d8b04),_0x16af7a||(_0x16af7a=!0x0,setTimeout(()=>{_0x2bccd2['forEach'](_0x120aab=>_0x120aab()),_0x2bccd2=[],_0x16af7a=!0x1;}));};};let mt=class extends a['RxDisposable']{constructor(_0xdf7a06,_0x50a354,_0x2305dc,_0x433b6f,_0x3d142a,_0x52617e,_0x1ff810,_0x533e21){const _0x5aaa1f=_0x3ee1d4;super(),I(this,_0x5aaa1f(0x116),!0x1),I(this,_0x5aaa1f(0x106),!0x1),I(this,'_cursorInfo$',new A[(_0x5aaa1f(0x45c))](new Map())),I(this,_0x5aaa1f(0x1e9),this[_0x5aaa1f(0xdb)]['asObservable']()),I(this,_0x5aaa1f(0x34d),new A['BehaviorSubject']([])),I(this,_0x5aaa1f(0x231),this['_roomMembers$']['pipe'](A[_0x5aaa1f(0x42b)](Xi))),I(this,_0x5aaa1f(0x4ae),a[_0x5aaa1f(0xb9)]((_0x521833,_0x3a66c8)=>{const _0xa107d8=_0x5aaa1f,_0x3d5356={'eventID':S[_0xa107d8(0x2d3)][_0xa107d8(0x1ce)],'data':{'unitID':this[_0xa107d8(0x50d)],'memberID':this['_session']['getMemberID'](),'selection':wt[_0xa107d8(0x31a)](_0x521833,_0x3a66c8['range'])}};this[_0xa107d8(0x2bf)][_0xa107d8(0x133)](_0x3d5356,this[_0xa107d8(0x50d)]);},Ji)),(this['unitID']=_0xdf7a06,this[_0x5aaa1f(0x2bf)]=_0x50a354,this[_0x5aaa1f(0x390)]=_0x2305dc,this[_0x5aaa1f(0x3c0)]=_0x433b6f,this['_memberService']=_0x3d142a,this['_univerInstanceService']=_0x52617e,this[_0x5aaa1f(0x117)]=_0x1ff810,this['_refRangeService']=_0x533e21);}get[_0x3ee1d4(0x12c)](){const _0x3adaab=_0x3ee1d4;return this[_0x3adaab(0xdb)][_0x3adaab(0x86)]();}get['roomMembers'](){const _0x54e6dc=_0x3ee1d4;return this[_0x54e6dc(0x34d)][_0x54e6dc(0x86)]();}['dispose'](){const _0x3a1058=_0x3ee1d4;super['dispose'](),this[_0x3a1058(0xdb)][_0x3a1058(0x261)](new Map()),this[_0x3a1058(0xdb)][_0x3a1058(0x11d)](),this['_roomMembers$']['next']([]),this[_0x3a1058(0x34d)]['complete']();}[_0x3ee1d4(0x42a)](){const _0x567c2c=_0x3ee1d4;this['_init']||(this[_0x567c2c(0x106)]=!0x0,this['_session'][_0x567c2c(0x1d2)][_0x567c2c(0x32f)](A[_0x567c2c(0x1d9)](this[_0x567c2c(0xc9)]))['subscribe'](_0x138f2e=>{const _0x4d77e2=_0x567c2c;_0x138f2e===re[_0x4d77e2(0x313)]?this['_toggleOnline']():this[_0x4d77e2(0x1aa)]();}),this[_0x567c2c(0x2bf)][_0x567c2c(0x3c9)][_0x567c2c(0x32f)](A[_0x567c2c(0x1d9)](this[_0x567c2c(0xc9)]))['subscribe'](_0x5c3290=>{const _0x29c739=_0x567c2c,_0x453f2a=_0x5c3290['eventID'];_0x453f2a===S[_0x29c739(0x2d3)]['UPDATE_CURSOR']&&this[_0x29c739(0x221)](_0x5c3290),_0x453f2a===S['CollaborationEvent'][_0x29c739(0x339)]&&this[_0x29c739(0x16c)](_0x5c3290);}),this[_0x567c2c(0xaf)](),this[_0x567c2c(0x4bd)](this[_0x567c2c(0x117)][_0x567c2c(0x20b)](_0x5da17c=>{const _0xf2f5ce=_0x567c2c;if(this['_online']&&_0x5da17c['id']===k[_0xf2f5ce(0x3a2)]['id']&&_0x5da17c[_0xf2f5ce(0x507)]['unitId']===this[_0xf2f5ce(0x50d)]){const _0x3754e5=_0x5da17c[_0xf2f5ce(0x507)];this[_0xf2f5ce(0x4ae)](_0x3754e5[_0xf2f5ce(0x381)],_0x3754e5[_0xf2f5ce(0x4d9)][0x0]);}})));}[_0x3ee1d4(0x221)](_0x334d0b){const _0x22eaec=_0x3ee1d4;var _0x479757,_0x47adaa;const {memberID:_0x53473f,selection:_0x552753}=_0x334d0b[_0x22eaec(0x351)],{sheetName:_0x1a2b2a,range:_0xa7627c}=wt['deserializeRangeWithSheet'](_0x552753),_0x15ed83={'name':(_0x47adaa=(_0x479757=this[_0x22eaec(0x18e)][_0x22eaec(0x12e)](this[_0x22eaec(0x50d)],_0x53473f))==null?void 0x0:_0x479757[_0x22eaec(0xc2)])!=null?_0x47adaa:_0x22eaec(0x518),'range':this[_0x22eaec(0x326)](_0x1a2b2a,_0xa7627c),'sheetID':_0x1a2b2a,'color':this[_0x22eaec(0x3c0)][_0x22eaec(0x15d)](_0x53473f),'selection':_0x552753},_0x49f449=this['cursorInfo'];_0x49f449[_0x22eaec(0x276)](_0x53473f,_0x15ed83),this['_cursorInfo$']['next'](_0x49f449);}[_0x3ee1d4(0x16c)](_0x4cb02d){const _0x329c31=_0x3ee1d4,{memberID:_0x54152b}=_0x4cb02d[_0x329c31(0x351)],_0xcbbad0=this[_0x329c31(0x12c)];_0xcbbad0['delete'](_0x54152b),this[_0x329c31(0xdb)][_0x329c31(0x261)](_0xcbbad0);}[_0x3ee1d4(0x326)](_0x4dccb3,_0x4d2ae9){const _0x38954d=_0x3ee1d4;var _0x245c24,_0xd25352;const _0x76f1f=(_0xd25352=(_0x245c24=this[_0x38954d(0xfd)][_0x38954d(0x23a)](this[_0x38954d(0x50d)]))==null?void 0x0:_0x245c24[_0x38954d(0x15b)](_0x4dccb3))==null?void 0x0:_0xd25352['getMergeData']();return(_0x76f1f==null?void 0x0:_0x76f1f['find'](_0x378f3f=>a[_0x38954d(0xdd)][_0x38954d(0x508)](_0x378f3f,_0x4d2ae9)))||_0x4d2ae9;}['_onRefRangeChange'](){const _0x3b5060=_0x3ee1d4,_0x384e70=new a[(_0x3b5060(0x333))](),_0xde4c3=Zi(),_0x33f67d=()=>{const _0x27a423=_0x3b5060;_0x384e70['dispose']();const _0x28dd8d=(_0x7a8a22,_0x3ea25c,_0x1fcf68,_0x2428f8)=>{const _0xba5e14=_0x51c9;let _0x33710a=[];switch(_0x7a8a22['id']){case k[_0xba5e14(0x4a6)][_0xba5e14(0x1f1)]:{_0x33710a=k[_0xba5e14(0x40b)](_0x7a8a22,_0x2428f8);break;}case k[_0xba5e14(0x4a6)]['DeleteRangeMoveUpCommandId']:{_0x33710a=k[_0xba5e14(0x1ee)](_0x7a8a22,_0x2428f8);break;}case k[_0xba5e14(0x4a6)][_0xba5e14(0x238)]:{_0x33710a=k[_0xba5e14(0x3dc)](_0x7a8a22,_0x2428f8);break;}case k[_0xba5e14(0x4a6)][_0xba5e14(0x1a0)]:{_0x33710a=k['handleInsertRangeMoveDown'](_0x7a8a22,_0x2428f8);break;}case k[_0xba5e14(0x4a6)]['InsertRangeMoveRightCommandId']:{_0x33710a=k[_0xba5e14(0xc0)](_0x7a8a22,_0x2428f8);break;}case k['EffectRefRangId'][_0xba5e14(0x49c)]:{_0x33710a=k['handleInsertRow'](_0x7a8a22,_0x2428f8);break;}case k[_0xba5e14(0x4a6)][_0xba5e14(0x144)]:{_0x33710a=k[_0xba5e14(0x305)](_0x7a8a22,_0x2428f8);break;}case k['EffectRefRangId'][_0xba5e14(0x39a)]:{_0x33710a=k[_0xba5e14(0x40c)](_0x7a8a22,_0x2428f8);break;}case k[_0xba5e14(0x4a6)][_0xba5e14(0x99)]:{_0x33710a=k[_0xba5e14(0xf9)](_0x7a8a22,_0x2428f8);break;}}const _0x1f7ee7=k[_0xba5e14(0x3ab)](_0x33710a,_0x2428f8),_0x155fd5=this[_0xba5e14(0x12c)]['get'](_0x3ea25c);if(_0x155fd5&&_0x1f7ee7){const _0x59c570={..._0x155fd5,'range':_0x1f7ee7};this[_0xba5e14(0x12c)][_0xba5e14(0x276)](_0x3ea25c,_0x59c570),_0xde4c3(()=>{const _0x18a268=_0xba5e14,_0x90369=this[_0x18a268(0x266)][_0x18a268(0x30c)](_0x1f7ee7,_0x27d44f=>(_0x90369[_0x18a268(0x292)](),_0x28dd8d(_0x27d44f,_0x3ea25c,_0x1fcf68,_0x1f7ee7)));_0x384e70['add'](_0x90369);});}return{'redos':[],'undos':[]};};this[_0x27a423(0x12c)][_0x27a423(0x362)]((_0x320483,_0x22866a)=>{const _0xf38805=_0x27a423,{range:_0x3e3201,sheetID:_0x33ed73}=_0x320483,_0x3f6e7d=this[_0xf38805(0x266)][_0xf38805(0x30c)](_0x3e3201,_0x50b1d7=>(_0x3f6e7d[_0xf38805(0x292)](),_0x28dd8d(_0x50b1d7,_0x22866a,_0x33ed73,_0x3e3201)));_0x384e70[_0xf38805(0xd6)](_0x3f6e7d);});};this['disposeWithMe'](a[_0x3b5060(0x11a)](this[_0x3b5060(0xdb)][_0x3b5060(0x455)](()=>{_0x33f67d();})));}['_toggleOnline'](){const _0x45e58f=_0x3ee1d4;var _0x1d1ed3,_0x65535e;if(this[_0x45e58f(0x116)]=!0x0,((_0x1d1ed3=this[_0x45e58f(0xfd)][_0x45e58f(0x474)]())==null?void 0x0:_0x1d1ed3[_0x45e58f(0x186)]())!==this[_0x45e58f(0x50d)])return;const _0x24f353=(_0x65535e=this[_0x45e58f(0x390)]['get'](k[_0x45e58f(0x4e4)])[_0x45e58f(0x2d5)]())==null?void 0x0:_0x65535e[0x0],_0x4b66d0=this[_0x45e58f(0xfd)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x45e58f(0x1c8)])[_0x45e58f(0x2da)]();_0x24f353&&_0x4b66d0&&this['_updateLocalCursor'](_0x4b66d0[_0x45e58f(0x3f7)](),_0x24f353);}[_0x3ee1d4(0x1aa)](){const _0x3f232a=_0x3ee1d4;this[_0x3f232a(0x116)]=!0x1;}};mt=zi([Ee(0x2,a['Inject'](a[_0x3ee1d4(0x3b8)])),Ee(0x3,a[_0x3ee1d4(0x4c5)](yt)),Ee(0x4,a[_0x3ee1d4(0x4c5)](exports['MemberService'])),Ee(0x5,a['IUniverInstanceService']),Ee(0x6,a['ICommandService']),Ee(0x7,a['Inject'](k[_0x3ee1d4(0x9c)]))],mt);var Qi=Object['defineProperty'],es=Object[_0x3ee1d4(0xe2)],ts=(_0x8eb96f,_0x2344b0,_0x53c8c7,_0x40fea4)=>{const _0x4d68b3=_0x3ee1d4;for(var _0x1dcede=_0x40fea4>0x1?void 0x0:_0x40fea4?es(_0x2344b0,_0x53c8c7):_0x2344b0,_0x515a69=_0x8eb96f[_0x4d68b3(0x156)]-0x1,_0x1243c1;_0x515a69>=0x0;_0x515a69--)(_0x1243c1=_0x8eb96f[_0x515a69])&&(_0x1dcede=(_0x40fea4?_0x1243c1(_0x2344b0,_0x53c8c7,_0x1dcede):_0x1243c1(_0x1dcede))||_0x1dcede);return _0x40fea4&&_0x1dcede&&Qi(_0x2344b0,_0x53c8c7,_0x1dcede),_0x1dcede;},tt=(_0x2b9a17,_0x369291)=>(_0x215ae5,_0x39b8ce)=>_0x369291(_0x215ae5,_0x39b8ce,_0x2b9a17);let Oe=class extends a[_0x3ee1d4(0x301)]{constructor(_0x4ae632,_0x259264,_0x228ebd){const _0x571ca9=_0x3ee1d4;super(),I(this,_0x571ca9(0x294),new Map()),I(this,'_entityInit$',new A['Subject']()),(this[_0x571ca9(0xfd)]=_0x4ae632,this[_0x571ca9(0x390)]=_0x259264,this['_collabSessionService']=_0x228ebd,this['_init']());}[_0x3ee1d4(0x292)](){const _0x59979a=_0x3ee1d4;super[_0x59979a(0x292)](),this[_0x59979a(0x130)][_0x59979a(0x11d)](),this[_0x59979a(0x294)][_0x59979a(0x362)](_0x39da97=>_0x39da97['dispose']());}['getCollabCursors$'](_0xc3378a){const _0x22dde3=_0x3ee1d4;return this[_0x22dde3(0x294)][_0x22dde3(0x95)](_0xc3378a)?this[_0x22dde3(0x294)]['get'](_0xc3378a)[_0x22dde3(0x1e9)]:this[_0x22dde3(0x130)][_0x22dde3(0x32f)](A[_0x22dde3(0x48a)](_0x39e2ce=>_0x39e2ce[_0x22dde3(0x50d)]===_0xc3378a),A[_0x22dde3(0x150)](_0x2ce263=>_0x2ce263[_0x22dde3(0x1e9)]));}[_0x3ee1d4(0x106)](){const _0x37ccfa=_0x3ee1d4;this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x37ccfa(0x32f)](A[_0x37ccfa(0x1d9)](this['dispose$']))['subscribe'](async _0x26fc9b=>{const _0x195ea3=_0x37ccfa,_0x899dae=_0x26fc9b[_0x195ea3(0x186)](),_0x35f70f=await this[_0x195ea3(0x1e5)](_0x899dae);this[_0x195ea3(0x130)][_0x195ea3(0x261)](_0x35f70f),this['_entities'][_0x195ea3(0x276)](_0x899dae,_0x35f70f);}),this[_0x37ccfa(0xfd)]['getTypeOfUnitAdded$'](a[_0x37ccfa(0x3f4)][_0x37ccfa(0x357)])['pipe'](A['takeUntil'](this[_0x37ccfa(0xc9)]))['pipe'](A[_0x37ccfa(0x48a)](_0x5447ef=>!_0x5447ef['getUnitId']()['startsWith']('__')))['subscribe'](async _0x5e8c99=>{const _0x150940=_0x37ccfa,_0x1ae8a9=_0x5e8c99[_0x150940(0x186)](),_0x3322ce=await this[_0x150940(0x254)](_0x1ae8a9);this[_0x150940(0x130)]['next'](_0x3322ce),this['_entities'][_0x150940(0x276)](_0x1ae8a9,_0x3322ce);}),A[_0x37ccfa(0x35e)](this['_univerInstanceService'][_0x37ccfa(0xb7)](a[_0x37ccfa(0x3f4)][_0x37ccfa(0x357)]),this[_0x37ccfa(0xfd)][_0x37ccfa(0xb7)](a[_0x37ccfa(0x3f4)][_0x37ccfa(0x1c8)]))[_0x37ccfa(0x32f)](A[_0x37ccfa(0x1d9)](this[_0x37ccfa(0xc9)]))[_0x37ccfa(0x455)](_0x273afb=>{const _0x121b2f=_0x37ccfa,_0x1e0859=_0x273afb[_0x121b2f(0x186)](),_0x2f83e9=this[_0x121b2f(0x294)][_0x121b2f(0x3ad)](_0x1e0859);_0x2f83e9&&(_0x2f83e9['dispose'](),this[_0x121b2f(0x294)]['delete'](_0x1e0859));});}async[_0x3ee1d4(0x1e5)](_0x2ffc40){const _0x4dbb8b=_0x3ee1d4,_0x36973a=await this[_0x4dbb8b(0x1f7)][_0x4dbb8b(0x329)](_0x2ffc40),_0x484e5c=this[_0x4dbb8b(0x390)][_0x4dbb8b(0x4d4)](mt,_0x2ffc40,_0x36973a);return _0x484e5c[_0x4dbb8b(0x42a)](),_0x484e5c;}async[_0x3ee1d4(0x254)](_0x197e31){const _0x4a520=_0x3ee1d4,_0x3674a5=await this[_0x4a520(0x1f7)][_0x4a520(0x329)](_0x197e31),_0x3195ac=this[_0x4a520(0x390)][_0x4a520(0x4d4)](vt,_0x197e31,_0x3674a5);return _0x3195ac[_0x4a520(0x42a)](),_0x3195ac;}};Oe=ts([tt(0x0,a[_0x3ee1d4(0x47a)]),tt(0x1,a[_0x3ee1d4(0x4c5)](a['Injector'])),tt(0x2,a['Inject'](exports[_0x3ee1d4(0x4a4)]))],Oe);const Ne=0x14,jt=0xc8,nt=0x4,ns=0x5;function is(_0x4351d8,_0x3cfcb3){const _0x5e3e6f=_0x3ee1d4;let {radius:_0x2c7d20,width:_0x412bf6,height:_0xb7c1ca}=_0x3cfcb3;_0x2c7d20=_0x2c7d20!=null?_0x2c7d20:0x0,_0x412bf6=_0x412bf6!=null?_0x412bf6:0x1e,_0xb7c1ca=_0xb7c1ca!=null?_0xb7c1ca:0x1e;let _0x4ee26e=0x0,_0x25c8b8=0x0,_0x5c47a0=0x0;_0x4ee26e=_0x25c8b8=_0x5c47a0=Math[_0x5e3e6f(0x2ec)](_0x2c7d20,_0x412bf6/0x2,_0xb7c1ca/0x2),_0x4351d8['beginPath'](),_0x4351d8['moveTo'](_0x4ee26e,0x0),_0x4351d8[_0x5e3e6f(0x367)](_0x412bf6-_0x25c8b8,0x0),_0x4351d8[_0x5e3e6f(0x426)](_0x412bf6-_0x25c8b8,_0x25c8b8,_0x25c8b8,Math['PI']*0x3/0x2,0x0,!0x1),_0x4351d8[_0x5e3e6f(0x367)](_0x412bf6,_0xb7c1ca-_0x5c47a0),_0x4351d8['arc'](_0x412bf6-_0x5c47a0,_0xb7c1ca-_0x5c47a0,_0x5c47a0,0x0,Math['PI']/0x2,!0x1),_0x4351d8[_0x5e3e6f(0x367)](0x0,_0xb7c1ca),_0x4351d8[_0x5e3e6f(0x367)](0x0,_0x4ee26e),_0x4351d8[_0x5e3e6f(0x426)](_0x4ee26e,_0x4ee26e,_0x4ee26e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4351d8[_0x5e3e6f(0xd1)](),_0x3cfcb3[_0x5e3e6f(0x50a)]&&(_0x4351d8[_0x5e3e6f(0x3df)](),_0x4351d8[_0x5e3e6f(0x77)]=_0x3cfcb3['fill'],_0x3cfcb3[_0x5e3e6f(0x39f)]===_0x5e3e6f(0x45d)?_0x4351d8[_0x5e3e6f(0x50a)](_0x5e3e6f(0x45d)):_0x4351d8[_0x5e3e6f(0x50a)](),_0x4351d8[_0x5e3e6f(0x2c6)]());}class ze extends K['Shape']{constructor(_0xa1f5,_0x1f5b39){const _0x41ebaa=_0x3ee1d4;super(_0xa1f5,_0x1f5b39),I(this,_0x41ebaa(0x314)),I(this,'text'),(this[_0x41ebaa(0x314)]=_0x1f5b39==null?void 0x0:_0x1f5b39['color'],this[_0x41ebaa(0x332)]=_0x1f5b39==null?void 0x0:_0x1f5b39['text']);}static[_0x3ee1d4(0x269)](_0x6e1647,_0x13b980){const _0x2abc0c=_0x3ee1d4,{text:_0x55f27d,color:_0x5d5c05}=_0x13b980;_0x6e1647[_0x2abc0c(0x3df)](),_0x6e1647[_0x2abc0c(0x452)]=_0x2abc0c(0xbc);const _0x2cdea1=_0x6e1647[_0x2abc0c(0x481)](_0x55f27d)['width'],_0x53ada6=Math[_0x2abc0c(0x2ec)](_0x2cdea1+0x2*nt,jt);is(_0x6e1647,{'height':Ne,'radius':0x4,'width':_0x53ada6,'fill':_0x5d5c05,'evented':!0x1}),_0x6e1647['fillStyle']='#FFF';const _0x6025ff=nt,_0xd5de54=Ne-ns,_0x351f9a=jt-0x2*nt;if(_0x2cdea1>_0x351f9a){let _0x10d8e9='',_0x47ba75=0x0;for(const _0x45509f of _0x55f27d){const _0xe0b5bf=_0x6e1647[_0x2abc0c(0x481)](_0x45509f)[_0x2abc0c(0x495)];if(_0x47ba75+_0xe0b5bf<=_0x351f9a-_0x6e1647[_0x2abc0c(0x481)](_0x2abc0c(0xad))[_0x2abc0c(0x495)])_0x10d8e9+=_0x45509f,_0x47ba75+=_0xe0b5bf;else{_0x10d8e9+=_0x2abc0c(0xad);break;}}_0x6e1647['fillText'](_0x10d8e9,_0x6025ff,_0xd5de54);}else _0x6e1647[_0x2abc0c(0x12a)](_0x55f27d,_0x6025ff,_0xd5de54);_0x6e1647[_0x2abc0c(0x2c6)]();}[_0x3ee1d4(0x440)](_0x46544e){const _0xce5942=_0x3ee1d4;ze[_0xce5942(0x269)](_0x46544e,this);}}const it=_0x3ee1d4(0x26e),ss='collab-text-range-',rs=_0x3ee1d4(0x264),Pe=0x6,os=1.5,st=0x4,as=1.5,cs=_0x3ee1d4(0x2c7);function _0x3530(){const _0x3916f0=['getTime','createCollaborator','Could\x20not\x20dynamically\x20require\x20\x22','data','setAlpha','BASE64','_toggleOnline','TRANSFORM_CHANGE_OBSERVABLE_TYPE','words','UNIVER_DOC','collaboration-client.offline-data-not-saved','330BlllOD','getCellPositionByOffset','registerHTTPInterceptor','RegularPolygon','FileId','merge','symbol','INTERNAL_ERROR','fetchMiss','forEach','execute','_beforeCloseService','IURLService','_updateLocalCache','lineTo','NodePositionConvertToCursor','/-/object/-/batch_allowed','_localStorageService','PSEUDO_FETCH_MISSING_RESULT','default','encode','LICENSE_EXPORT_SIZE_EXCEEDED','Decryptor','univer-online-status-title','getVpScrollXYInfoByPosToVp','_transformSelections','/rev/','POST','joinRsp','@univerjs/ui','CONNECTOR_DATA_TOO_LARGE','ENSURE_SNAPSHOT_EXECUTION','registerRenderModule','_scheduleSaving','/fetchmissing?from=','SNAPSHOT_URL_KEY','history','appendMutation','file','sessionStatus','subUnitId','MessageType','session.collaboration-timeout','HEARTBEAT_INTERVAL','YUUMI_URL_COL_OUT_OF_RANGE','OFFLINE','_sendingTimer','HMAC','permissionRejEvent','image/gif','getCollabEntity$','onRemoteRetry','getAncestorScale','ITelemetryService','setCurrentUser','_injector','disposeUnit','_replaceFileID','getInterceptPoints','EvpKDF','crypto','responseType','clone','JOIN','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','RemoveColCommandId','UNIVER_PROJECT','permission.title','4NoiXQS','clear','fillRule','_mode','delay','SetSelectionsOperation','shouldCloseConn','_getCurrentRevision','c2Prime','with','YUUMI_RATE_OVER_LIMIT','/collaborator','_clearTimeoutTimer','selection','runRefRangeMutations','getMemberID','get','_messageService','subunit','_assignedColors','DocSelectionManagerService','_getSheetObject','_append','visibilitychange','lib','react','iterations','Injector','loadDoc','authzUrl','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_redoStacks','getWorkbookSelections','sheetID','transformStateCache','_colorAssignService','defs','_transitionLocked','_prevBlock','_disabled','_docTransformStateCacheService','useDependency','commentUpdateEvent','number','event$','_scheduleCollaborationTimeoutTimer','_getSendChangesetTimeout','_doProcessBlock','jiqing500','_send','floor','_doFinalize','Warning','SEND_CHANGESET_TIMEOUT','SheetSkeletonManagerService','asObservable','@univerjs/sheets','fromEvent','bottom','snapshotServerUrl','_scheduleClearOtherTimer','result','INGEST','handleInsertCol','[CollaborationSession]','addObject','save','IUndoRedoService','LIVESHARE_TERMINATE','_context','_removeClearOtherTimer','extend','getCollabCursors$','setParam','addImageSourceCache','BufferedBlockAlgorithm','CHANGESET_REJ','LICENSE_MAX_UNITS_EXCEEDED','reverse','_sendHeartbeat','_hideTimer','CollaborationSocketService','LOGIN_URL_KEY','_ensureSubject','_getLoginPath','UUID','_telemetryInfo','UniverInstanceType','m1Prime','createElement','getSheetId','?url=','4164AwOwDs','_transformIMECache','m2Prime','randomBytes','UNKNOWN_CMD','getOwnPropertySymbols','range','downloadEndpointUrl','isTransformMutationsWithChangesetFailure','gold400','take','/block/','APPLY_DUPLICATED','_urlService','_createHelper','join','getUndoRedoMutationParamsCache','LocalUndoRedoService','handleDeleteRangeMoveLeft','handleIRemoveCol','debug','/unit/','WebURLService','getUnitStatus$','updatePermissionPoint','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','loginUrlKey','_transformService','readAsDataURL','_logService','engine','find','salt','1654905zOyMpB','_sheetTransformSelectionsService','_state','_data','_createHandler','forwardRef','AES','replaceState','error$','isArray','/universer-api/snapshot/','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','arc','_joinRoom','fromCharCode','UNDEFINED','init','debounceTime','onRemoteRej','textRanges','_saveTaskMap','_changesetSessionId','_config','update','_transformStack','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','getDocRanges','column','__creator','compute','awaitingChangeset','cfg','_collaborationTimeoutTimer','resend','SnapshotServerOverHTTPService','CollaborationStatus','_event$','Tools','_draw','list','FAIL','SHOULD_CLOSE_CONN','ranges','userID','_remoteChangesetQueue','IDLE','awaiting_with_pending','x-univer-host','on-line-single_clip0_910_349','_render','_scheduleHeartbeat','_nDataBytes','_keySchedule','_getSnapshotAPIPrefix','onReady','_labelPosition','font','c1Prime','_onConnectionFailed','subscribe','uni.network.url-service','propertyIsEnumerable','IPermissionService','_backgroundColor','_collabCursorState$','displayName','BehaviorSubject','evenodd','b64DecodeUnicode','_updateCollabCursors','session.will-retry','call','push','rxjs','_iKey','distinctUntilChanged','createIdentifier','[SyncedState]:\x20received\x20acknowledgement.','format','awaiting','_name','onMouseMove','LOCAL_CACHE_INTERVAL_KEY','HmacSHA1','[OfflineState]:\x20received\x20rejection.','getColor','CHANGESET_SHOULD_RETRY','CipherParams','_httpService','_tryReconnect','getFocusedUnit','[OfflineState]:\x20received\x20changeset.','popstate','charCodeAt','_initEventListeners','SessionStatus','IUniverInstanceService','toLowerCase','onStarting','updateOfflineData','hostname','_clearHeartbeatTimer','_initCommandExecutedListener','measureText','purple300','HEADER_MENU','focused$','_drawRectRange','getImageSourceCache','append','_listenToOnlineEvent','_initResize','filter','currentTheme$','[SyncedState]:\x20received\x20rejection.','SetTextSelectionsOperation','icon','_handleLeaveEvent','UNIVER_COLLABORATION_CLIENT_PLUGIN','apply','toggleOffline','7825GSiFgf','_selfUnitIDs','width','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','leaveEvent','_socketService','_undoStacks','putCollaborators','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','InsertRowCommandId','_lockTransition','skeleton','enableAuthServer','#fff','csAckEvent','_eventUnsubscribe','MSG_FOR_ERROR','CollaborationSessionService','PERMISSION_DENIED','EffectRefRangId','attrs','socket$','path','OTHER_CLIENTS_EDITING','exports','COLLAB_SUBMIT_CHANGESET_URL','Subject','_updateLocalCursor','M0\x200H16V16H0z','baseRev','getStateCache','_rescheduleHeartbeat','_getRedoStack','_onConnectionOpen','setStateCache','_ws','interceptor','SetDocZoomRatioOperation','sequenceExecute','onTransformState','ITransformService','ws://127.0.0.1:8000/universer-api/comb/connect','disposeWithMe','_change$','concat','map','_scheduleTimestamp','abs','loadOfflineData','throttleTime','Inject','endRow','_handler','rng','SUBMIT_CHANGESET','_userManagerService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','setConfig','_waitForHeartbeatResponse','@univerjs/rpc','_tryEnsureSocket','DesktopCollaborationStatusDisplayController','@univerjs/design','_commentService','_stopTelemetryCollaborationNewChangeset','createInstance','actions','453jNLjHC','reject','getActiveRange','selections','unload','UniverCollaborationClientPlugin','mapDocumentTypeToUniverType','fromEventSubject','onMissingChangesets','type','pending','collaboratorID','undoState','DocIMEInputManagerService','SheetsSelectionsService','_map','_handleHeartbeatEvent','RECV','_listenToOfflineEvent','deserializeToCombResponse','CollaborationSession','workbook','registerOnClose','indexOf','changesets','defineProperty','change$','redoState','urlChange$','pluginName','routeKey','_ENC_XFORM_MODE','onlineStatusTitle','unit','socketService','HEARTBEAT_TIMEOUT','image/jpg','reconnect','ERROR_EXCEED_SIZE','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_docStateChangeManagerService','liveShareNewHost','deepClone','failed\x20to\x20apply\x20missed\x20changesets!','enableSingleActiveInstanceLock','startsWith','open$','_singleActiveUnitService','CHANGESET_ACK','params','contains','translate(.97)','fill','OffLineSingle','encrypt','unitID','getUnitType','memberID','decrypt','batchAllowed','_unitOnClients','_collaborationSessionService','_onCombEvent','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','{fileID}','_status$','Unknown\x20user','SheetCollaborationEntity','fetchMissingChangesets','/role','getDeserializedSheetBlock','_drawAnchor','unitId','_socketReady','Base','HttpExport','SHA1','OnLineSingle','_clearLocalCache','state$','_heartbeatTimer','isInternalEditorID','fillStyle','UNAUTHENTICATED','getConfig','_getUndoStack','IRemoteInstanceService','UserManagerService','IUIPartsService','_notificationService','fetchThroughInterceptors','INotificationService','session.room-full','getRandomValues','MUTATION','pushState','RECT','getValue','capture','Univer','_loadDoc','ALREADY_EXISTS','SEND_CHANGESET_TIMEOUT_KEY','_onConflict','_waitCount','requestParams','UNRECOGNIZED','now','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_sessionStatus$','/object','\x20to\x20','has','MD5','error','_createInitialState','RemoveRowCommandId','values','revision','RefRangeService','isEditing','_getAnchorBounding','_handleEvent','_registerRenderDependencies','activeSheet$','fetch_missing','xlink:href','LocalCacheService','Optional','defIds','_syncEditingCollabCursorService','on-line-single','formatter','__Key__','FromArray','currentSkeleton$','...','_showConflictNotification','_onRefRangeChange','_docSyncEditingCollabCursorService','ERROR_IMAGE','setShapeProps','ColorKit','current','size','_updateSubUnitFromURLParams','getTypeOfUnitDisposed$','CompressMutationService','debounce','[DataLoaderController]','refreshPermission','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_hasher','charAt','Disposable','handleInsertRangeMoveRight','SNAPSHOT_SERVER_URL_KEY','name','/universer-api/stream/file/upload','online','_setupSubUnitSync','_transformPreviousActiveRange','_telemetryService','_onUserLeave','dispose$','_revisionService','some','_onFetchMissResult','roomInfos','_range','_getScale','function','closePath','stringify','COMPRESS_MUTATION_APPLY','_docTransformSelectionsService','_localCacheService','add','_anchorDot','TEXT','delete','_instanceService','_cursorInfo$','UniverIcon','Rectangle','withCredentials','onPointerLeave$','_nRounds','eventID','getOwnPropertyDescriptor','saveChangeset','collabStatus.syncing','_parse','CHANGESET_REVISION_CONFILICT','assign','_iv','_acknowledgedAwaitingChangeset','_xformMode','PENDING','_awaitingChangeset','docStateChange$','HmacMD5','univer-online','algo','updatePermissionObjEvent','_replayCachedMutations','UnitEmbedded','IMessageService','Tooltip','tag','useObservable','_process','handleIRemoveRow','DOC_RANGE_TYPE','pad','_removeRoom','_univerInstanceService','encryptBlock','_commentUpdate$','univer-pro.collaboration-client-socket-service','LEAVE','labelPosition','randomUUID','idSuffix','collabStatus.offline','_init','then','_pendingMutations','AWAITING_WITH_PENDING','incrementRevOfUnit','collabWebSocketUrl','clamp','byteOffset','sheetId','transformStack\x20failed!','_transformUndoredo','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','/-/object/list','sid','ImageIoService','setInterval','_online','_commandService','LICENSE_DISTRO_REJECTED','rev','toDisposable','_renderManagerService','EXCHANGE_SIGN_URL_SERVER_URL_KEY','complete','Encryptor','_oKey','saveSheetBlock','_initStatusComponent','CollaborationController','Pkcs7','csRejEvent','registerComponent','_createSocket','toRgbString','collab-client.tooltip.reconnect','newCsEvent','fillText','clearInterval','cursorInfo','_cursor','getMember','transformUndoRedo','_entityInit$','Malformed\x20UTF-8\x20data','exhaustSavingTask','send','ISnapshotServerService','129830EPQwvp','_createHmacHelper','_anchor','_checkMissing','transformMutation','image/bmp','serializeCombRequest','textEncoder','padding','clipPath','_getUploadFileURL','BlockCipherMode','19516884YlHTax','_DEC_XFORM_MODE','transformChangesets','MoveRangeCommandId','ThresholdInterceptorFactory','_hash','Base64','_isPermissionRej','reqId','startTime','DocCollaborationEntity','combineLatest','_lastPointer','[PendingState]:\x20received\x20acknowledgement.','confirm','switchMap','_uiPartsService','_transformRemoteChangesetByStateCache','IConfigService','object','getRangePointData','length','_executeRemoteChangeset','@univerjs/drawing','socket\x20close','[OfflineState]:\x20received\x20acknowledgement.','getSheetBySheetId','isActive','assignAColorForMemberID','replaceTextRanges','_resendWithTimeout','slice','NoPadding','WebSocketService','_localeService','round','SUCCUSS','_collabCursorController','off-line-single_clip0_910_343','6XWWumk','1em','/new_changes','Plugin','_onCursorDelete','objects','onTransformSelections','_unlockTransition','UNIVER_UNKNOWN','DEFAULT_FILE_NAME','onlineStatusIcon','_registerDependencies','UnitSnapshot','unpad','HttpImport','Rect','onTransformIME','unshift','children','setItem','onRemoteAck','closeSession','_exhaustRemoteChangesetQueue','unsubscribe','_transformHistoryAndStateStack','location','_keyPriorReset','ImageUploadStatusType','DocSkeletonManagerService','COMPLETION_FINISHED','getUnitId','_sender','isTransformChangesetsSuccess','HTTPService','blockSize','_roomMembers','newValue','transformSelections','_memberService','_applyRemoteChangeset','fetching\x20missing\x20changesets\x20from\x20','session','HEARTBEAT','synced','_socketMessageSubscription','onSyncEditingCollabCursor','every','_startTelemetryCollaborationNewChangeset','?size=','CollaborationEntity','status','includes','_hovered','getSkeleton','_schedule','collaboration-session-retry','InsertRangeMoveDownCommandId','VIEWPORT_KEY','_unitStatus','action','_changesetReqId','url','status$','mutations','_cachedData','[FetchMissState]','_toggleOffline','mapTo','isPermissionRej','getCoordByCell','transformMutationsWithChangeset','UNIVER_SLIDE','_getAPIPrefixPath','splice','_clearRedo','Undefined','offline','byteLength','pauseCollaboration','subscribeEvent','_updateState','sendChangesetTimeout','_sheetSkeletonManagerService','show','_colorIndex','_clearOtherTimers','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','JOINING','Latin1','collabSubmitChangesetUrl','COLORS','Error','ACTIVE_UNIT_EVENT_CHANNEL','_snapshotService','compose','title','UNIVER_SHEET','RETRY_CONNECTING_MAX_COUNT_KEY','_onRemoteACK','SetWorksheetActivateCommand','ICommandService','$super','UPDATE_CURSOR','_getDownloadEndpointURL','origin','getSheetObject','sessionStatus$','_removeCollabCursors','repeat','reset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getSheetBlock','Cipher','takeUntil','uploadFileServerUrl','random','string','colorChannel1','LIVESHARE_OPERATION','_queuedRemoteChangesets','getUnhiddenWorksheets','_candidateSocket','doc.mutation.rich-text-editing','YUUMI_UNABLE_LOAD_URL','onTransformRemoteChangesetByStateCache','_startSheetCollabCursor','PERMISSION_REJ','saveOfflineData','_refreshCollabCursors','cursorInfo$','_cursorShapes','IImageIoService','executeCommand','_setupBeforeClosingHandler','handleDeleteRangeMoveUp','joinEvent','resolve','DeleteRangeMoveLeftCommandId','editingUnit','href','_onUserJoin','enableLocalCache','getCurrentUser','_collabSessionService','VIEW_MAIN','LIVESHARE_NEW_HOST','hide','_resendTimer','transformRemoteChangeset','CommandType','addEventListener','_sessions','objectType','getRenderById','_retryCount','_fetchMissChangesets','_saveCache','hasher','NOT_FOUND','onPointerEnter$','_timeoutTimer','univer-online-status','onMissedChangesetFetched','onCommandExecuted','univer-online-status-icon','IRenderManagerService','@univerjs/engine-render','visibilityState','conflict.content','setActiveRange','enc','_initDependencies','submit\x20changeset\x20error!','_sendHeartbeatTimer','_invKeySchedule','sigBytes','_getAPIPrefix','removeMember','msCrypto','onCommentUpdate','_handleJoinEvent','hasOwnProperty','createSocket','deleteCollaborator','_loadSheet','_onCursorUpdate','[CollaborationSessionService]:\x20socket\x20error','_docTransformIMECacheService','0\x200\x2016\x2016','_onOffline','getImage','hovered','duration','RETRY_CONNECTING_MAX_COUNT','connection\x20error','_onRecvEvent','COMPRESS_MUTATION_SEND','_throwTelemetryCollaborationNewChangeset','HEARTBEAT_TIMEOUT_KEY','_scene','AuthzIoHttpService','roomMembers$','body','url(#on-line-single_clip0_910_349)','UniverCollaborationPlugin','post','use','_shouldReportTelemetry','InsertColCommandId','_state$','getUniverSheetInstance','auth.needGotoLoginAlert','onTransformChange$','&to=','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','updateCursorEvent','LIVESHARE_REQUEST_HOST','liveShareOperation','concatMap','enableOfflineEditing','flatMap','generateRandomId','getCurrentRevOfUnit','_cipher','conflict.title','row','from','updateMember','setWaitCount','_getSaveTimeout','_socket','max','DataLoaderController','UniverNetworkPlugin','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','backgroundColor','_startDocCollabCursor','_snapshotServerService','mixIn','TEXT_RANGE_LAYER_INDEX','_substituteUndoStack','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','collabCursorState$','_collaborationPaused','ILogService','message$','_collaborationController','_updateURLWithCurrentState','_initMergeInterceptor','next','_getCtorByUniverType','svg','collab-rect-range-','_transformUndoRedoStack','_refRangeService','sin','onRendered','drawWith','_docSkeletonManagerService','_http','_getSignURL','_onJoinRoomEvent','collab-text-anchor-','create','listCollaborators','ciphertext','[CollaborationEntity]','_transformRemoteChangesetByIMECache','state','_initCloseConn','set','_clearScheduledTask','ThemeService','key','collaboration.closeRoom','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','LOCAL_CACHE_INTERVAL','SheetPermissionInitController','_textBubble','[UniverCollaborationClientPlugin]','ILocalStorageService','_syncEditingCollabCursor','\x0aCurrent:\x20','UNKNOWN_CODE','save\x20fail\x20reason\x20is\x20','PasswordBasedCipher','getUnit','top','blue400','red300','APPLY_REJECT','unknown','collaboration-client.config','prototype','_transformStateCache','\x20in\x20_schedule.','createEncryptor','LIVESHARE_FETCH_OPERATIONS','dispose','_themeService','_entities','image/png','CommentService','\x20-\x20','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','@univerjs/docs-ui','onlyLocal','_updateStatus','Utf8','mode','_HTTPService','src','onRemoteChangeset','SerializableCipher','setShowComponents','ImageSourceType','close$','SNAPSHOT_INVALID_SNAPSHOT','_onRemoteRetry','telemetry\x20info\x20is\x20not\x20initialized','onTransformRemoteChangesetByIMECache','_doReset','_hover','entries','onSendChangeset','getTypeOfUnitAdded$','LocaleService','APPLY_PERMISSION_DENIED','none','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','height','bind','TOO_MANY_REQUESTS','equals','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','close','transformIMECache','fromCollab','_retryConnectingTimer','Hasher','_onRemoteChangeset','touchDependencies','SNAPSHOT_HAS_BEEN_REMOVED','_session','@univerjs/network','kdf','objectActions','getLatestCsReqIdBySid','_startCollaboration','CBC','restore','rgba(255,\x20255,\x20255,\x200.01)','originalMeta','LICENSE_IMPORT_SIZE_EXCEEDED','_onLocalMutation','4285414lLHqSN','catch','off-line-single','black','startColumn','_clearCollaborationTimeoutTimer','onPointerMove$','collabStatus.notCollab','CollaborationEvent','conflict','getCurrentSelections','AWAITING','BuiltInUIPart','_incrementRevisionNumber','getResourcesRequest','getActiveSheet','localeService','_document','syncEditingCollabCursor','getItem','ERROR_IMAGE_TYPE','currentColor','cmd','replace','_submitChangeset','InsertSheetMutation','split','_permissionService','parse','&assign=','COMMENT_UPDATE','_drawTextRange','_unitID','min','WordArray','allowed','/universer-api/comb','isTransformMutationFailure','finalize','put','StreamCipher','startRow','_members','toggleOnline','isTransformMutationsWithChangesetSuccess','_imageSourceCache','ivSize','_initUnitPermissionChange','NO_OTHER_CLIENTS_EDITING','/object/','MemberService','24qiagHm','_id','onload','RxDisposable','_key','INVALID_ARGUMENT','searchParams','handleMoveRange','[CollaborationState]:\x20apply\x20error!','findNodePositionByCharIndex','_undoRedoService','unit-cache-','all','_color','registerRefRange','Vector2','registerBeforeClose','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','objectID','UPDATE_PERMISSION_OBJ','clearTimeout','ONLINE','color','_cursors','OpenSSL','_initStatusListener','AUTHZ_URL_KEY','transformByState','serializeRangeWithSheet','WorkbookEditablePermission','RevisionService','disableLocalCache','snapshot','_resendTimeout','_configService','@univerjs/telemetry','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_disableEditing','FETCH_MISS','getOffsetConfig','_getMergeRange','_decreaseWaiting','_createInitialStateImpl','requireSession','/allowed','2459880hEAcMf','DocStateChangeManagerService','keySize','[CollaborationSessionService]','pipe','headers','substring','text','DisposableCollection','setUndoRedoMutationParamsCache','setTimeout','HTTPRequest','getParam','_shapes','USERS_LEAVE','HELLO','collaboration.single-unit.warning','collaMsg','substr','_type','toString','univer-pro.collaboration-client.single-active-unit-service','NOT_COLLAB','CONFLICT','decryptBlock','div','_compressMutationService','_substituteRedoStack','_socket$','USERS_ENTER','processBlock','roles','_onMessage','connectInjector','_roomMembers$'];_0x3530=function(){return _0x3916f0;};return _0x3530();}class Ht{constructor(_0x5ce7dc,_0xb23b75,_0x5ebd76,_0x4e0b5c){const _0x5b2d19=_0x3ee1d4;I(this,_0x5b2d19(0x338),[]),I(this,_0x5b2d19(0x137),null),I(this,_0x5b2d19(0x27e),null),I(this,'_anchorDot',null),I(this,_0x5b2d19(0x3ed),null),I(this,_0x5b2d19(0x4a2),null),(this[_0x5b2d19(0x12d)]=_0x5ce7dc,this['_scene']=_0xb23b75,this['_docSkeleton']=_0x5ebd76,this[_0x5b2d19(0x2dc)]=_0x4e0b5c,this[_0x5b2d19(0x44b)]());}set[_0x3ee1d4(0x2aa)](_0x45cb2c){const _0x1fa1fa=_0x3ee1d4;_0x45cb2c?(this[_0x1fa1fa(0xd7)]&&this['_anchorDot']['hide'](),this[_0x1fa1fa(0x27e)]&&this[_0x1fa1fa(0x27e)][_0x1fa1fa(0x1bb)]()):(this[_0x1fa1fa(0xd7)]&&this[_0x1fa1fa(0xd7)][_0x1fa1fa(0x1bb)](),this[_0x1fa1fa(0x27e)]&&this[_0x1fa1fa(0x27e)][_0x1fa1fa(0x1fa)]());}[_0x3ee1d4(0x292)](){const _0xf70dbe=_0x3ee1d4;for(const _0x146cd4 of this['_shapes'])_0x146cd4[_0xf70dbe(0x292)]();this['_textBubble']&&this[_0xf70dbe(0x27e)][_0xf70dbe(0x292)](),this[_0xf70dbe(0xd7)]&&this[_0xf70dbe(0xd7)]['dispose'](),this[_0xf70dbe(0x137)]&&this[_0xf70dbe(0x137)]['dispose'](),this[_0xf70dbe(0x4a2)]&&this[_0xf70dbe(0x4a2)]();}[_0x3ee1d4(0x44b)](){const _0x3d0845=_0x3ee1d4;var _0xd63614;const {_docSkeleton:_0x193b8c,_document:_0x5af44c}=this,{color:_0x36e14a,name:_0x4b8d35,ranges:_0x41f0ef}=this[_0x3d0845(0x12d)],_0x317b1e=_0x5af44c[_0x3d0845(0x325)](),{docsLeft:_0x31eb3e,docsTop:_0x31703a}=_0x317b1e,_0x216d2f=new Z[(_0x3d0845(0x368))](_0x317b1e,_0x193b8c);for(const {startOffset:_0xf0288d,endOffset:_0x1711d0,rangeType:_0x363c98,segmentId:_0x1def5d,segmentPage:_0x3a904a,collapsed:_0x517fe9,isActive:_0x33eeb7}of _0x41f0ef){const _0xbcf20=_0x193b8c['findNodePositionByCharIndex'](_0xf0288d,!0x0,_0x1def5d,_0x3a904a);let _0x758c8a=_0x193b8c[_0x3d0845(0x307)](_0x1711d0,!0x0,_0x1def5d,_0x3a904a);if(_0x758c8a==null&&(_0x758c8a=_0x193b8c['findNodePositionByCharIndex'](_0x1711d0-0x1,!0x1,_0x1def5d,_0x3a904a)),_0x33eeb7){const {contentBoxPointGroup:_0xa887a5}=_0x216d2f[_0x3d0845(0x155)](_0x758c8a,_0x758c8a);if(_0xa887a5[_0x3d0845(0x156)]===0x0)continue;this[_0x3d0845(0x51d)](_0x36e14a,_0xa887a5,_0x31eb3e,_0x31703a,_0x4b8d35),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x517fe9&&_0xbcf20&&_0x758c8a){if(_0x363c98===a[_0x3d0845(0xfa)][_0x3d0845(0x85)]){const _0x1a6d8a=new Z['NodePositionConvertToRectRange'](_0x317b1e,_0x193b8c),{pointGroup:_0x69d4cb}=(_0xd63614=_0x1a6d8a[_0x3d0845(0x155)](_0xbcf20,_0x758c8a))!=null?_0xd63614:{};if(_0x69d4cb==null||_0x69d4cb['length']===0x0)continue;this[_0x3d0845(0x485)](_0x36e14a,_0x69d4cb,_0x31eb3e,_0x31703a);}else{const {borderBoxPointGroup:_0x39f68b}=_0x216d2f[_0x3d0845(0x155)](_0xbcf20,_0x758c8a);if(_0x39f68b['length']===0x0)continue;this[_0x3d0845(0x2ea)](_0x36e14a,_0x39f68b,_0x31eb3e,_0x31703a);}}}}[_0x3ee1d4(0x51d)](_0x2f1302,_0x1cb554,_0xf9cb71,_0x448b9d,_0x175d1d){const _0x10e0ec=_0x3ee1d4,_0xbd56a6=this[_0x10e0ec(0x9e)](_0x1cb554),{left:_0x74a1d,top:_0x553889,height:_0x2c5e6e}=_0xbd56a6,_0xd204ed=this['_getScale'](),_0x5d0967=as/_0xd204ed,_0x4fdfd9=new K[(_0x10e0ec(0x177))](it+a[_0x10e0ec(0x43f)][_0x10e0ec(0x245)](Pe),{'left':_0x74a1d+_0xf9cb71-_0x5d0967,'top':_0x553889+_0x448b9d,'height':_0x2c5e6e,'width':os,'fill':_0x2f1302||K['getColor'](a[_0x10e0ec(0x1c2)][_0x10e0ec(0x2ce)],0x0),'strokeWidth':_0x5d0967,'stroke':cs,'evented':!0x0});this['_anchor']=_0x4fdfd9,this[_0x10e0ec(0x22f)]['addObject'](_0x4fdfd9,Z[_0x10e0ec(0x257)]);const _0x38fb72=new K[(_0x10e0ec(0x177))](it+a['Tools'][_0x10e0ec(0x245)](Pe),{'left':_0x74a1d+_0xf9cb71-_0x5d0967,'top':_0x553889+_0x448b9d-st/0x2,'height':st,'width':st,'fill':_0x2f1302||K[_0x10e0ec(0x46f)](a[_0x10e0ec(0x1c2)][_0x10e0ec(0x2ce)],0x0),'strokeWidth':0x0,'stroke':_0x2f1302||K['getColor'](a['COLORS'][_0x10e0ec(0x2ce)],0x0),'evented':!0x1});this[_0x10e0ec(0xd7)]=_0x38fb72,this[_0x10e0ec(0x22f)]['addObject'](_0x38fb72,Z[_0x10e0ec(0x257)]);const _0x37f869=new ze(it+a[_0x10e0ec(0x43f)][_0x10e0ec(0x245)](Pe),{'left':_0x74a1d+_0xf9cb71-_0x5d0967,'top':_0x553889+_0x448b9d-Ne,'text':_0x175d1d,'color':_0x2f1302});this[_0x10e0ec(0x27e)]=_0x37f869,this[_0x10e0ec(0x22f)][_0x10e0ec(0x3de)](_0x37f869,Z[_0x10e0ec(0x257)]),this[_0x10e0ec(0x2aa)]=!0x1;}['_handleHover'](){const _0x3fa709=_0x3ee1d4,_0x10363b=this[_0x3fa709(0x137)][_0x3fa709(0x207)][_0x3fa709(0x1b7)](()=>{const _0x7a8b42=_0x3fa709;this[_0x7a8b42(0x2aa)]=!0x0;}),_0x527fa4=this[_0x3fa709(0x137)][_0x3fa709(0xdf)]['subscribeEvent'](()=>{const _0x47ffd3=_0x3fa709;this[_0x47ffd3(0x3ed)]&&clearTimeout(this[_0x47ffd3(0x3ed)]),this[_0x47ffd3(0x3ed)]=setTimeout(()=>{const _0xcbecc6=_0x47ffd3;this[_0xcbecc6(0x2aa)]=!0x1;},0x7d0);});return()=>{const _0x3b3009=_0x3fa709;_0x10363b[_0x3b3009(0x17f)](),_0x527fa4[_0x3b3009(0x17f)]();};}[_0x3ee1d4(0x2ea)](_0x52e3fb,_0x3a19f3,_0x54f46c,_0x2bcb14){const _0x5c7f42=_0x3ee1d4,_0xdbeb4=new a[(_0x5c7f42(0xb3))](_0x52e3fb)['setAlpha'](0.2)[_0x5c7f42(0x127)](),_0x1c4cf1=new K['RegularPolygon'](ss+a['Tools'][_0x5c7f42(0x245)](Pe),{'pointsGroup':_0x3a19f3,'fill':_0xdbeb4||K[_0x5c7f42(0x46f)](a[_0x5c7f42(0x1c2)][_0x5c7f42(0x2ce)],0.2),'left':_0x54f46c,'top':_0x2bcb14,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c7f42(0x338)][_0x5c7f42(0x462)](_0x1c4cf1),this['_scene'][_0x5c7f42(0x3de)](_0x1c4cf1,Z[_0x5c7f42(0x257)]);}[_0x3ee1d4(0x485)](_0x89905b,_0x455513,_0x46cba3,_0x46e56e){const _0x8adfd6=_0x3ee1d4,_0x464f05=new a[(_0x8adfd6(0xb3))](_0x89905b)[_0x8adfd6(0x352)](0.2)[_0x8adfd6(0x127)](),_0x1ea450=new K[(_0x8adfd6(0x35c))](rs+a['Tools']['generateRandomId'](Pe),{'pointsGroup':_0x455513,'fill':_0x464f05||K[_0x8adfd6(0x46f)](a['COLORS'][_0x8adfd6(0x2ce)],0.2),'left':_0x46cba3,'top':_0x46e56e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x8adfd6(0x338)]['push'](_0x1ea450),this[_0x8adfd6(0x22f)][_0x8adfd6(0x3de)](_0x1ea450,Z[_0x8adfd6(0x257)]);}[_0x3ee1d4(0x9e)](_0x2d087c){const _0x25fb14=_0x2d087c[0x0],_0x1a963e=_0x25fb14[0x0],_0x5a60d6=_0x25fb14[0x2],{x:_0x4f6625,y:_0x4e38f5}=_0x1a963e,{x:_0x2c2b25,y:_0x4c5dda}=_0x5a60d6;return{'left':_0x4f6625,'top':_0x4e38f5,'width':_0x2c2b25-_0x4f6625,'height':_0x4c5dda-_0x4e38f5};}[_0x3ee1d4(0xcf)](){const _0x3cb3bd=_0x3ee1d4,{scaleX:_0x55eadd,scaleY:_0x353abd}=this['_scene'][_0x3cb3bd(0x38d)]();return Math[_0x3cb3bd(0x24f)](_0x55eadd,_0x353abd);}}var ls=Object[_0x3ee1d4(0x4ef)],hs=Object['getOwnPropertyDescriptor'],_s=(_0xa7cba6,_0x3b8cd0,_0x416654,_0x5c7663)=>{const _0x24f768=_0x3ee1d4;for(var _0x3245e1=_0x5c7663>0x1?void 0x0:_0x5c7663?hs(_0x3b8cd0,_0x416654):_0x3b8cd0,_0x57eaa6=_0xa7cba6[_0x24f768(0x156)]-0x1,_0x5e4339;_0x57eaa6>=0x0;_0x57eaa6--)(_0x5e4339=_0xa7cba6[_0x57eaa6])&&(_0x3245e1=(_0x5c7663?_0x5e4339(_0x3b8cd0,_0x416654,_0x3245e1):_0x5e4339(_0x3245e1))||_0x3245e1);return _0x5c7663&&_0x3245e1&&ls(_0x3b8cd0,_0x416654,_0x3245e1),_0x3245e1;},$e=(_0x46b869,_0x40124b)=>(_0x11a10c,_0x3e8cde)=>_0x40124b(_0x11a10c,_0x3e8cde,_0x46b869);let St=class extends a[_0x3ee1d4(0x301)]{constructor(_0xb17f47,_0x1da3fa,_0x58dc1a,_0x1fcd6c,_0x43c10c){const _0x2166f2=_0x3ee1d4;super(),I(this,'_cursorShapes',[]),I(this,_0x2166f2(0x315),[]),(this['_context']=_0xb17f47,this[_0x2166f2(0x26a)]=_0x1da3fa,this[_0x2166f2(0x166)]=_0x58dc1a,this[_0x2166f2(0x117)]=_0x1fcd6c,this[_0x2166f2(0x293)]=_0x43c10c,this[_0x2166f2(0x106)]());}[_0x3ee1d4(0x106)](){const _0x2dfa0d=_0x3ee1d4,_0x1c9aee=this[_0x2dfa0d(0x3e2)][_0x2dfa0d(0x51e)],_0x4ee4c5=this[_0x2dfa0d(0x26a)];this[_0x2dfa0d(0x4bd)](A['combineLatest']([this[_0x2dfa0d(0x166)][_0x2dfa0d(0x3e5)](_0x1c9aee),this[_0x2dfa0d(0x293)]['currentTheme$']])[_0x2dfa0d(0x32f)](V[_0x2dfa0d(0x4c0)](([_0x207b82,_0x5d2b18])=>({'skeleton':_0x4ee4c5['getSkeleton'](),'cursors':[..._0x207b82['values']()][_0x2dfa0d(0x244)](_0x4e988a=>({..._0x4e988a,'color':_0x5d2b18[_0x4e988a[_0x2dfa0d(0x314)]]}))})))['subscribe'](_0x40a415=>{const _0x5c6064=_0x2dfa0d;if(this[_0x5c6064(0x1d3)](),_0x40a415){const {skeleton:_0x4e14ae,cursors:_0x2276ab}=_0x40a415;this[_0x5c6064(0x45f)](_0x4e14ae,_0x2276ab);}})),this[_0x2dfa0d(0x489)](),this[_0x2dfa0d(0x480)]();}[_0x3ee1d4(0x45f)](_0x130d9f,_0x490354){const _0x3ae24b=_0x3ee1d4,{scene:_0x5ab450,mainComponent:_0x1561e1}=this['_context'],_0x507d75=_0x490354['map'](_0x4216f3=>new Ht(_0x4216f3,_0x5ab450,_0x130d9f,_0x1561e1));this['_cursorShapes']=_0x507d75,this[_0x3ae24b(0x315)]=_0x490354;}[_0x3ee1d4(0x1e8)](){const _0x5d0d9a=_0x3ee1d4;this[_0x5d0d9a(0x1d3)]();const {scene:_0x454264,mainComponent:_0x40fdc0}=this[_0x5d0d9a(0x3e2)],_0x28ef4b=this[_0x5d0d9a(0x26a)][_0x5d0d9a(0x19d)](),_0xad5d1b=this[_0x5d0d9a(0x315)]['map'](_0x4ee55d=>new Ht(_0x4ee55d,_0x454264,_0x28ef4b,_0x40fdc0));this[_0x5d0d9a(0x1ea)]=_0xad5d1b;}[_0x3ee1d4(0x1d3)](){const _0x123893=_0x3ee1d4;this[_0x123893(0x1ea)][_0x123893(0x362)](_0x4cf2b8=>_0x4cf2b8[_0x123893(0x292)]()),this[_0x123893(0x1ea)]=[];}[_0x3ee1d4(0x480)](){const _0x445343=_0x3ee1d4,_0x595aad=[Z[_0x445343(0x4b8)]['id']];this[_0x445343(0x4bd)](this[_0x445343(0x117)][_0x445343(0x20b)](_0x3c9df8=>{const _0x52176d=_0x445343;_0x595aad[_0x52176d(0x19b)](_0x3c9df8['id'])&&_0x3c9df8[_0x52176d(0x507)][_0x52176d(0x51e)]===this[_0x52176d(0x3e2)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x3ee1d4(0x489)](){const _0x53741f=_0x3ee1d4;this[_0x53741f(0x4bd)](a[_0x53741f(0x4dd)](this[_0x53741f(0x3e2)][_0x53741f(0x417)][_0x53741f(0x23c)])[_0x53741f(0x32f)](V[_0x53741f(0x48a)](_0x921696=>_0x921696[_0x53741f(0x4df)]===K[_0x53741f(0x355)]['resize']),V[_0x53741f(0x4c4)](0x10))[_0x53741f(0x455)](()=>{const _0x47b6cf=_0x53741f;this[_0x47b6cf(0x1e8)]();}));}};St=_s([$e(0x1,a[_0x3ee1d4(0x4c5)](Re[_0x3ee1d4(0x184)])),$e(0x2,a[_0x3ee1d4(0x4c5)](Oe)),$e(0x3,a[_0x3ee1d4(0x1cc)]),$e(0x4,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x278)]))],St);const us=0x1,ds=1.5;class mn extends K['Shape']{constructor(_0x4c9e6c,_0x3efe4c){const _0x50419d=_0x3ee1d4;super(_0x4c9e6c,_0x3efe4c),I(this,_0x50419d(0x30b)),I(this,_0x50419d(0x19c),!0x1),I(this,'_range'),I(this,_0x50419d(0x46a),''),I(this,_0x50419d(0x451),'top'),I(this,_0x50419d(0x459)),(_0x3efe4c&&this['setShapeProps'](_0x3efe4c),this['onPointerEnter$'][_0x50419d(0x1b7)](()=>this[_0x50419d(0xb2)]({'hovered':!0x0})),this[_0x50419d(0xdf)][_0x50419d(0x1b7)](()=>this[_0x50419d(0xb2)]({'hovered':!0x1})));}[_0x3ee1d4(0xb2)](_0x55ff1a){const _0x397b10=_0x3ee1d4;var _0x3cc477,_0x5772e0,_0x33bcc3,_0x49064b,_0x5cb5c0,_0x7e990;this[_0x397b10(0x30b)]=(_0x3cc477=_0x55ff1a[_0x397b10(0x314)])!=null?_0x3cc477:this[_0x397b10(0x30b)],this['_hovered']=(_0x5772e0=_0x55ff1a[_0x397b10(0x227)])!=null?_0x5772e0:this['_hovered'],this['_range']=(_0x33bcc3=_0x55ff1a[_0x397b10(0x3ff)])!=null?_0x33bcc3:this[_0x397b10(0xce)],this[_0x397b10(0x46a)]=(_0x49064b=_0x55ff1a[_0x397b10(0xc2)])!=null?_0x49064b:this[_0x397b10(0x46a)],this[_0x397b10(0x451)]=(_0x5cb5c0=_0x55ff1a[_0x397b10(0x102)])!=null?_0x5cb5c0:this[_0x397b10(0x451)],this['_backgroundColor']=(_0x7e990=_0x55ff1a[_0x397b10(0x253)])!=null?_0x7e990:this[_0x397b10(0x459)],this[_0x397b10(0x319)]({'width':_0x55ff1a['width'],'height':_0x55ff1a['height']});}[_0x3ee1d4(0x46b)](_0x14179a){const _0x12d0a2=_0x3ee1d4,{row:_0xadbbb7,column:_0x36ec86}=_0x14179a;if(_0xadbbb7>=this[_0x12d0a2(0xce)][_0x12d0a2(0x2f4)]&&_0xadbbb7<=this['_range'][_0x12d0a2(0x4c6)]&&_0x36ec86>=this['_range'][_0x12d0a2(0x2cf)]&&_0x36ec86<=this[_0x12d0a2(0xce)]['endColumn']){this[_0x12d0a2(0xb2)]({'hovered':!0x0});return;}this[_0x12d0a2(0xb2)]({'hovered':!0x1});}['triggerDblclick'](_0x483a4c){return!0x1;}['_draw'](_0x3a92f1){const _0x1ee399=_0x3ee1d4;K[_0x1ee399(0x177)][_0x1ee399(0x269)](_0x3a92f1,{'width':this[_0x1ee399(0x495)],'height':this[_0x1ee399(0x2b2)],'strokeWidth':ds,'stroke':this[_0x1ee399(0x30b)],'evented':!0x1,'fill':this[_0x1ee399(0x459)]}),this[_0x1ee399(0x19c)]&&(_0x3a92f1['save'](),_0x3a92f1['transform'](0x1,0x0,0x0,0x1,this[_0x1ee399(0x495)],this['_labelPosition']==='bottom'?0x0:-Ne),ze[_0x1ee399(0x269)](_0x3a92f1,{'text':this[_0x1ee399(0x46a)],'color':this[_0x1ee399(0x30b)]}),_0x3a92f1[_0x1ee399(0x2c6)]());}}var fs=Object['defineProperty'],vs=Object[_0x3ee1d4(0xe2)],ms=(_0x426390,_0x2c39e0,_0x59815a,_0x187e43)=>{for(var _0x21f2d5=_0x187e43>0x1?void 0x0:_0x187e43?vs(_0x2c39e0,_0x59815a):_0x2c39e0,_0x41696f=_0x426390['length']-0x1,_0x4638aa;_0x41696f>=0x0;_0x41696f--)(_0x4638aa=_0x426390[_0x41696f])&&(_0x21f2d5=(_0x187e43?_0x4638aa(_0x2c39e0,_0x59815a,_0x21f2d5):_0x4638aa(_0x21f2d5))||_0x21f2d5);return _0x187e43&&_0x21f2d5&&fs(_0x2c39e0,_0x59815a,_0x21f2d5),_0x21f2d5;},rt=(_0x39b5ae,_0x9ab7ad)=>(_0xf51043,_0x17f739)=>_0x9ab7ad(_0xf51043,_0x17f739,_0x39b5ae);const Ss=0x1389;let pt=class extends a[_0x3ee1d4(0x301)]{constructor(_0x241b4b,_0x221a72,_0x370798,_0x19f630){const _0x3cab13=_0x3ee1d4;super(),I(this,'_cursors',new Set()),I(this,_0x3cab13(0x14d),null),(this['_context']=_0x241b4b,this[_0x3cab13(0x1ba)]=_0x221a72,this[_0x3cab13(0x166)]=_0x370798,this[_0x3cab13(0x293)]=_0x19f630,this['_init']());}['_init'](){const _0x3c4dba=_0x3ee1d4;this[_0x3c4dba(0x1ba)][_0x3c4dba(0xac)][_0x3c4dba(0x32f)](V[_0x3c4dba(0x1d9)](this[_0x3c4dba(0xc9)]),V[_0x3c4dba(0x150)](_0x568754=>{const _0x517ac7=_0x3c4dba;if(_0x568754){const _0x8af90=_0x568754[_0x517ac7(0x10e)];return A[_0x517ac7(0x14c)](this['_collabCursorController'][_0x517ac7(0x3e5)](this['_context'][_0x517ac7(0x51e)]),this[_0x517ac7(0x293)][_0x517ac7(0x48b)])['pipe'](V[_0x517ac7(0x4c0)](([_0xa452b2,_0x1ec946])=>{const _0x164150=_0x517ac7,_0x3b69d5=new Map();return _0xa452b2[_0x164150(0x362)]((_0x115cda,_0x44c599)=>{const _0x2b7b60=_0x164150;if(_0x115cda[_0x2b7b60(0x3be)]===_0x8af90){const _0x367d4a={..._0x115cda};_0x367d4a[_0x2b7b60(0x314)]=_0x1ec946[_0x115cda[_0x2b7b60(0x314)]],_0x3b69d5['set'](_0x44c599,_0x367d4a);}}),{'skeleton':_0x568754,'cursors':_0x3b69d5};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x549476,cursors:_0x29823d})=>{const _0x1cdd2c=_0x3c4dba;this[_0x1cdd2c(0x1d3)](),_0x549476&&this[_0x1cdd2c(0x45f)](_0x549476,_0x29823d);}),this[_0x3c4dba(0x1ba)]['currentSkeleton$'][_0x3c4dba(0x455)](_0x325f30=>{const _0x3bbb40=_0x3c4dba;if(_0x325f30==null)return;const {skeleton:_0x899528}=_0x325f30,{scene:_0x1fde36}=this[_0x3bbb40(0x3e2)];_0x1fde36[_0x3bbb40(0x2d1)][_0x3bbb40(0x1b7)](a['debounce'](_0xb8ebd5=>{const _0x25dbcf=_0x3bbb40;var _0x528482,_0x1b94fd;const {offsetX:_0x322740,offsetY:_0x4fd5fa}=_0xb8ebd5,{x:_0x34598,y:_0x2c9467}=_0x1fde36['getRelativeToViewportCoord'](K['Vector2'][_0x25dbcf(0xab)]([_0x322740,_0x4fd5fa])),{scaleX:_0x458c82,scaleY:_0xcf5a0e}=_0x1fde36[_0x25dbcf(0x38d)](),_0x23bdf0=_0x1fde36['getViewport'](Te[_0x25dbcf(0x1a1)][_0x25dbcf(0x1f8)]),_0x4b5159=_0x1fde36[_0x25dbcf(0x371)](K[_0x25dbcf(0x30d)][_0x25dbcf(0xab)]([_0x34598,_0x2c9467]),_0x23bdf0),_0x4cfd9c=_0x899528[_0x25dbcf(0x35a)](_0x322740,_0x4fd5fa,_0x458c82,_0xcf5a0e,_0x4b5159);((_0x528482=this[_0x25dbcf(0x14d)])==null?void 0x0:_0x528482[_0x25dbcf(0x435)])===_0x4cfd9c[_0x25dbcf(0x435)]&&((_0x1b94fd=this[_0x25dbcf(0x14d)])==null?void 0x0:_0x1b94fd[_0x25dbcf(0x249)])===_0x4cfd9c[_0x25dbcf(0x249)]||this[_0x25dbcf(0x315)][_0x25dbcf(0x362)](_0x1f782e=>{_0x1f782e['onMouseMove'](_0x4cfd9c);});},0x64));});}[_0x3ee1d4(0x45f)](_0x429232,_0x541ddd){const _0xc57f24=_0x3ee1d4;var _0x24ded0;const _0x525b9a=(_0x24ded0=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x24ded0[_0xc57f24(0x49e)];if(!_0x525b9a)return;const _0x3116e4=this['_getSheetObject']();if(!_0x3116e4)return;this[_0xc57f24(0x315)][_0xc57f24(0x362)](_0x2521df=>{_0x2521df['makeDirty']();});const {scene:_0x2354ae}=_0x3116e4,_0x5bfffc=ps(Array[_0xc57f24(0x24a)](_0x541ddd[_0xc57f24(0x9a)]()))[_0xc57f24(0x4c0)](_0x443004=>{const _0x48be5c=_0xc57f24,{color:_0x21d2ec,range:_0x573bbf,name:_0x1d6e12,selection:_0x5dd7ad,sheetID:_0x36b12e}=_0x443004,{startColumn:_0x41b1ed,startRow:_0x2f6f85,endColumn:_0x2bd1e3,endRow:_0x383768}=_0x573bbf,_0x3f281a=Te[_0x48be5c(0x1ad)](_0x2f6f85,_0x41b1ed,_0x2354ae,_0x525b9a),_0x1cbcaf=Te[_0x48be5c(0x1ad)](_0x383768,_0x2bd1e3,_0x2354ae,_0x525b9a),{columnHeaderHeightAndMarginTop:_0x37dd49}=_0x525b9a,{startX:_0x17dc03,startY:_0x4f037f}=_0x3f281a,{endX:_0x4e8d73,endY:_0x176dc8}=_0x1cbcaf,_0x1f81a9=_0x4e8d73-_0x17dc03,_0xbf4c86=_0x176dc8-_0x4f037f,_0x581feb={'labelPosition':_0x4f037f-_0x37dd49>=Ne?_0x48be5c(0x287):_0x48be5c(0x3d7),'sheetID':_0x36b12e,'range':_0x573bbf,'color':_0x21d2ec,'name':_0x1d6e12,'selection':_0x5dd7ad,'left':_0x17dc03,'top':_0x4f037f,'width':_0x1f81a9,'height':_0xbf4c86,'evented':!0x1,'zIndex':Ss};return new mn(_0x1d6e12,_0x581feb);});_0x2354ae['addObjects'](_0x5bfffc,us),this['_cursors']=new Set(_0x5bfffc);}[_0x3ee1d4(0x1d3)](){const _0x7614d2=_0x3ee1d4;var _0x21daca;(_0x21daca=this[_0x7614d2(0x315)])==null||_0x21daca[_0x7614d2(0x362)](_0x108801=>_0x108801[_0x7614d2(0x292)]());}[_0x3ee1d4(0x3b2)](){const _0x1e68a0=_0x3ee1d4;return Te[_0x1e68a0(0x1d1)](this[_0x1e68a0(0x3e2)][_0x1e68a0(0x4f7)],this['_context']);}};pt=ms([rt(0x1,a[_0x3ee1d4(0x4c5)](Te[_0x3ee1d4(0x3d3)])),rt(0x2,a[_0x3ee1d4(0x4c5)](Oe)),rt(0x3,a['Inject'](a[_0x3ee1d4(0x278)]))],pt);function ps(_0x33fd2e){const _0x3e1a6b=_0x3ee1d4,_0xd73397=new Map();return _0x33fd2e[_0x3e1a6b(0x362)](_0x58dcfd=>{const _0x30ba64=_0x3e1a6b;if(_0xd73397['has'](_0x58dcfd[_0x30ba64(0x3aa)])){const _0x4d247f=_0xd73397[_0x30ba64(0x3ad)](_0x58dcfd[_0x30ba64(0x3aa)]);_0x4d247f[_0x30ba64(0xc2)]+=',\x20'+_0x58dcfd[_0x30ba64(0xc2)];}else _0xd73397[_0x30ba64(0x276)](_0x58dcfd[_0x30ba64(0x3aa)],_0x58dcfd);}),Array[_0x3e1a6b(0x24a)](_0xd73397[_0x3e1a6b(0x9a)]());}var ee=function(){const _0x512dbf=_0x3ee1d4;return ee=Object[_0x512dbf(0xe7)]||function(_0xac5e6d){const _0x5b7415=_0x512dbf;for(var _0x4688cc,_0x501715=0x1,_0x4dfc63=arguments[_0x5b7415(0x156)];_0x501715<_0x4dfc63;_0x501715++){_0x4688cc=arguments[_0x501715];for(var _0x2cebe6 in _0x4688cc)Object['prototype'][_0x5b7415(0x21d)][_0x5b7415(0x461)](_0x4688cc,_0x2cebe6)&&(_0xac5e6d[_0x2cebe6]=_0x4688cc[_0x2cebe6]);}return _0xac5e6d;},ee[_0x512dbf(0x491)](this,arguments);},gs=function(_0x4e27e0,_0x169a7f){const _0x4a231b=_0x3ee1d4;var _0x4a384d={};for(var _0x29fb6c in _0x4e27e0)Object[_0x4a231b(0x28d)]['hasOwnProperty'][_0x4a231b(0x461)](_0x4e27e0,_0x29fb6c)&&_0x169a7f[_0x4a231b(0x4ed)](_0x29fb6c)<0x0&&(_0x4a384d[_0x29fb6c]=_0x4e27e0[_0x29fb6c]);if(_0x4e27e0!=null&&typeof Object[_0x4a231b(0x3fe)]=='function'){for(var _0x5300a8=0x0,_0x29fb6c=Object[_0x4a231b(0x3fe)](_0x4e27e0);_0x5300a8<_0x29fb6c[_0x4a231b(0x156)];_0x5300a8++)_0x169a7f[_0x4a231b(0x4ed)](_0x29fb6c[_0x5300a8])<0x0&&Object[_0x4a231b(0x28d)][_0x4a231b(0x457)]['call'](_0x4e27e0,_0x29fb6c[_0x5300a8])&&(_0x4a384d[_0x29fb6c[_0x5300a8]]=_0x4e27e0[_0x29fb6c[_0x5300a8]]);}return _0x4a384d;},Ot=z[_0x3ee1d4(0x41f)](function(_0x5ca763,_0x1041b3){const _0x2c4c4e=_0x3ee1d4;var _0x16c695=_0x5ca763[_0x2c4c4e(0x48e)],_0x3156f7=_0x5ca763['id'],_0x1c33bc=_0x5ca763['className'],_0x5070a2=_0x5ca763[_0x2c4c4e(0x3e4)],_0x15971b=gs(_0x5ca763,['icon','id','className',_0x2c4c4e(0x3e4)]),_0x1df05b='univerjs-icon\x20univerjs-icon-'[_0x2c4c4e(0x4bf)](_0x3156f7,'\x20')[_0x2c4c4e(0x4bf)](_0x1c33bc||'')['trim'](),_0x197953=z['useRef']('_'[_0x2c4c4e(0x4bf)](Es()));return Sn(_0x16c695,''[_0x2c4c4e(0x4bf)](_0x3156f7),{'defIds':_0x16c695['defIds'],'idSuffix':_0x197953[_0x2c4c4e(0xb4)]},ee({'ref':_0x1041b3,'className':_0x1df05b},_0x15971b),_0x5070a2);});function Sn(_0x3f228f,_0x3d87dd,_0x525776,_0x1817f2,_0x5cf7bd){const _0x5c3869=_0x3ee1d4;return z['createElement'](_0x3f228f[_0x5c3869(0xf6)],ee(ee({'key':_0x3d87dd},Is(_0x3f228f,_0x525776,_0x5cf7bd)),_0x1817f2),(Cs(_0x3f228f,_0x525776)['children']||[])[_0x5c3869(0x4c0)](function(_0x2cfc3c,_0x10e996){const _0x37285b=_0x5c3869;return Sn(_0x2cfc3c,''['concat'](_0x3d87dd,'-')[_0x37285b(0x4bf)](_0x3f228f[_0x37285b(0xf6)],'-')[_0x37285b(0x4bf)](_0x10e996),_0x525776,void 0x0,_0x5cf7bd);}));}function Is(_0x2ceb7c,_0x337a10,_0x4dbd7b){const _0x50c734=_0x3ee1d4;var _0x123ad8=ee({},_0x2ceb7c[_0x50c734(0x4a7)]);_0x4dbd7b!=null&&_0x4dbd7b[_0x50c734(0x1dd)]&&_0x123ad8[_0x50c734(0x50a)]==='colorChannel1'&&(_0x123ad8[_0x50c734(0x50a)]=_0x4dbd7b['colorChannel1']);var _0x2a26e0=_0x337a10[_0x50c734(0xa6)];return!_0x2a26e0||_0x2a26e0['length']===0x0||(_0x2ceb7c['tag']===_0x50c734(0x236)&&_0x123ad8[_0x50c734(0xa3)]&&(_0x123ad8[_0x50c734(0xa3)]=_0x123ad8[_0x50c734(0xa3)]+_0x337a10[_0x50c734(0x104)]),Object[_0x50c734(0x2ab)](_0x123ad8)[_0x50c734(0x362)](function(_0x2d9a01){const _0x42cd07=_0x50c734;var _0x4f9057=_0x2d9a01[0x0],_0x5354c8=_0x2d9a01[0x1];typeof _0x5354c8==_0x42cd07(0x1dc)&&(_0x123ad8[_0x4f9057]=_0x5354c8[_0x42cd07(0x2e2)](/url\(#(.*)\)/,'url(#$1'[_0x42cd07(0x4bf)](_0x337a10[_0x42cd07(0x104)],')')));})),_0x123ad8;}function Cs(_0x1d78a3,_0x29907e){const _0x210408=_0x3ee1d4;var _0x41817a,_0x186924=_0x29907e[_0x210408(0xa6)];return!_0x186924||_0x186924['length']===0x0?_0x1d78a3:_0x1d78a3[_0x210408(0xf6)]==='defs'&&(!((_0x41817a=_0x1d78a3['children'])===null||_0x41817a===void 0x0)&&_0x41817a[_0x210408(0x156)])?ee(ee({},_0x1d78a3),{'children':_0x1d78a3[_0x210408(0x17a)][_0x210408(0x4c0)](function(_0x362df9){const _0x686b27=_0x210408;return typeof _0x362df9[_0x686b27(0x4a7)]['id']==_0x686b27(0x1dc)&&_0x186924&&_0x186924[_0x686b27(0x4ed)](_0x362df9[_0x686b27(0x4a7)]['id'])>-0x1?ee(ee({},_0x362df9),{'attrs':ee(ee({},_0x362df9[_0x686b27(0x4a7)]),{'id':_0x362df9['attrs']['id']+_0x29907e[_0x686b27(0x104)]})}):_0x362df9;})}):_0x1d78a3;}function Es(){const _0x1b9c15=_0x3ee1d4;return Math['random']()['toString'](0x24)[_0x1b9c15(0x331)](0x2,0x8);}Ot[_0x3ee1d4(0x45b)]=_0x3ee1d4(0xdc);var bs={'tag':_0x3ee1d4(0x263),'attrs':{'fill':_0x3ee1d4(0x2b0),'viewBox':_0x3ee1d4(0x224),'width':_0x3ee1d4(0x169),'height':_0x3ee1d4(0x169)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x3ee1d4(0x4a9),'attrs':{'stroke':'currentColor','d':_0x3ee1d4(0x252),'strokeLinecap':_0x3ee1d4(0x164),'strokeLinejoin':_0x3ee1d4(0x164),'strokeWidth':1.2}}]},{'tag':_0x3ee1d4(0x3c1),'attrs':{},'children':[{'tag':_0x3ee1d4(0x13e),'attrs':{'id':_0x3ee1d4(0x167)},'children':[{'tag':_0x3ee1d4(0x4a9),'attrs':{'fill':_0x3ee1d4(0x4a0),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3ee1d4(0x167)]},pn=z[_0x3ee1d4(0x41f)](function(_0x40a97a,_0x4ed67d){const _0x2eba33=_0x3ee1d4;return z['createElement'](Ot,Object['assign']({},_0x40a97a,{'id':_0x2eba33(0x2cd),'ref':_0x4ed67d,'icon':bs}));});pn[_0x3ee1d4(0x45b)]=_0x3ee1d4(0x50b);var Ts={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x3ee1d4(0x169),'height':_0x3ee1d4(0x169)},'children':[{'tag':'g','attrs':{'clipPath':_0x3ee1d4(0x233)},'children':[{'tag':'path','attrs':{'stroke':_0x3ee1d4(0x2e0),'d':_0x3ee1d4(0x515),'strokeLinecap':_0x3ee1d4(0x164),'strokeLinejoin':_0x3ee1d4(0x164),'strokeWidth':1.2}}]},{'tag':_0x3ee1d4(0x3c1),'attrs':{},'children':[{'tag':_0x3ee1d4(0x13e),'attrs':{'id':_0x3ee1d4(0x44a)},'children':[{'tag':'path','attrs':{'fill':_0x3ee1d4(0x4a0),'d':_0x3ee1d4(0x4af),'transform':_0x3ee1d4(0x509)}}]}]}],'defIds':[_0x3ee1d4(0x44a)]},gn=z['forwardRef'](function(_0xf15228,_0x4d98b0){const _0x5b7b92=_0x3ee1d4;return z[_0x5b7b92(0x3f6)](Ot,Object[_0x5b7b92(0xe7)]({},_0xf15228,{'id':_0x5b7b92(0xa8),'ref':_0x4d98b0,'icon':Ts}));});gn[_0x3ee1d4(0x45b)]=_0x3ee1d4(0x72);function In(_0x4010e7){const _0x43a212=_0x3ee1d4;var _0x14bde6,_0x3ec5f8,_0x123dcd='';if(typeof _0x4010e7==_0x43a212(0x1dc)||typeof _0x4010e7==_0x43a212(0x3c8))_0x123dcd+=_0x4010e7;else{if(typeof _0x4010e7==_0x43a212(0x154)){if(Array['isArray'](_0x4010e7)){var _0x41d376=_0x4010e7[_0x43a212(0x156)];for(_0x14bde6=0x0;_0x14bde6<_0x41d376;_0x14bde6++)_0x4010e7[_0x14bde6]&&(_0x3ec5f8=In(_0x4010e7[_0x14bde6]))&&(_0x123dcd&&(_0x123dcd+='\x20'),_0x123dcd+=_0x3ec5f8);}else{for(_0x3ec5f8 in _0x4010e7)_0x4010e7[_0x3ec5f8]&&(_0x123dcd&&(_0x123dcd+='\x20'),_0x123dcd+=_0x3ec5f8);}}}return _0x123dcd;}function Rs(){const _0x51abc2=_0x3ee1d4;for(var _0x183fc2,_0x3b4cc0,_0x48bd19=0x0,_0x6a3357='',_0x455810=arguments[_0x51abc2(0x156)];_0x48bd19<_0x455810;_0x48bd19++)(_0x183fc2=arguments[_0x48bd19])&&(_0x3b4cc0=In(_0x183fc2))&&(_0x6a3357&&(_0x6a3357+='\x20'),_0x6a3357+=_0x3b4cc0);return _0x6a3357;}const ys=_0x3ee1d4(0x20c),Os=_0x3ee1d4(0x370),Ds=_0x3ee1d4(0x209),ws=_0x3ee1d4(0xef),Ps='univer-offline',Ue={'onlineStatusIcon':ys,'onlineStatusTitle':Os,'onlineStatus':Ds,'online':ws,'offline':Ps};function Us(_0x55f98a){const _0x4c8e2d=_0x3ee1d4;switch(_0x55f98a){case q[_0x4c8e2d(0x386)]:return _0x4c8e2d(0x105);case q[_0x4c8e2d(0x342)]:return'collabStatus.conflict';case q[_0x4c8e2d(0x324)]:return'collabStatus.fetchMiss';case q[_0x4c8e2d(0x341)]:return _0x4c8e2d(0x2d2);case q[_0x4c8e2d(0x2d6)]:case q[_0x4c8e2d(0x109)]:return _0x4c8e2d(0xe4);case q['SYNCED']:case q[_0x4c8e2d(0xeb)]:return'collabStatus.synced';}}function Cn(_0xde4931){const _0x2f8e9b=_0x3ee1d4,{status$:_0x464fad}=_0xde4931,_0x50fcfc=te[_0x2f8e9b(0xf7)](_0x464fad,q[_0x2f8e9b(0x341)]),_0x2ec580=a[_0x2f8e9b(0x3c6)](a[_0x2f8e9b(0x2ae)]),_0x2ce37e=a[_0x2f8e9b(0x3c6)](exports[_0x2f8e9b(0x4a4)]),_0x50bc14=_0x50fcfc!==q[_0x2f8e9b(0x386)],_0x82b89a=_0x2ec580['t'](Us(_0x50fcfc)),_0x1edea4=Rs(Ue['onlineStatus'],{[Ue[_0x2f8e9b(0xc4)]]:_0x50bc14,[Ue[_0x2f8e9b(0x1b4)]]:!_0x50bc14}),_0x1445d7=_0x50bc14?z[_0x2f8e9b(0x3f6)](gn,null):z['createElement'](pn,null),_0x39141c=z['useCallback'](()=>{const _0x31d404=_0x2f8e9b;_0x50bc14||_0x2ce37e[_0x31d404(0x4fb)]();},[_0x50bc14,_0x2ce37e]);function _0x516985(){const _0x174a88=_0x2f8e9b;return z[_0x174a88(0x3f6)](_0x174a88(0x344),{'className':_0x1edea4,'onClick':_0x39141c},z[_0x174a88(0x3f6)](_0x174a88(0x344),{'className':Ue[_0x174a88(0x172)]},_0x1445d7),z[_0x174a88(0x3f6)](_0x174a88(0x344),{'className':Ue[_0x174a88(0x4f6)]},_0x82b89a));}return _0x50bc14?_0x516985():z[_0x2f8e9b(0x3f6)](pe[_0x2f8e9b(0xf5)],{'title':_0x2ec580['t'](_0x2f8e9b(0x128))},_0x516985());}var Ms=Object[_0x3ee1d4(0x4ef)],As=Object[_0x3ee1d4(0xe2)],Ns=(_0x554938,_0x266cb0,_0x544e8e,_0x2f8c42)=>{const _0x17c1b9=_0x3ee1d4;for(var _0x29ca28=_0x2f8c42>0x1?void 0x0:_0x2f8c42?As(_0x266cb0,_0x544e8e):_0x266cb0,_0x18b064=_0x554938[_0x17c1b9(0x156)]-0x1,_0x418658;_0x18b064>=0x0;_0x18b064--)(_0x418658=_0x554938[_0x18b064])&&(_0x29ca28=(_0x2f8c42?_0x418658(_0x266cb0,_0x544e8e,_0x29ca28):_0x418658(_0x29ca28))||_0x29ca28);return _0x2f8c42&&_0x29ca28&&Ms(_0x266cb0,_0x544e8e,_0x29ca28),_0x29ca28;},je=(_0x3db561,_0x295ad1)=>(_0x2f8c64,_0x432bd9)=>_0x295ad1(_0x2f8c64,_0x432bd9,_0x3db561);exports[_0x3ee1d4(0x4d0)]=class extends a[_0x3ee1d4(0xbf)]{constructor(_0x57b3ee,_0x41d5f9,_0x35b207,_0x39bd85){const _0x1eef23=_0x3ee1d4;super(),I(this,'_status$',new A[(_0x1eef23(0x45c))](q['NOT_COLLAB'])),(this[_0x1eef23(0xfd)]=_0x57b3ee,this[_0x1eef23(0x151)]=_0x41d5f9,this[_0x1eef23(0x390)]=_0x35b207,this[_0x1eef23(0x25e)]=_0x39bd85,this[_0x1eef23(0x121)](),this[_0x1eef23(0x317)]());}[_0x3ee1d4(0x317)](){const _0x1d8d3d=_0x3ee1d4;this['disposeWithMe'](this[_0x1d8d3d(0xfd)][_0x1d8d3d(0x484)][_0x1d8d3d(0x32f)](A[_0x1d8d3d(0x150)](()=>{const _0x30e4af=_0x1d8d3d,_0x16fbed=this[_0x30e4af(0xfd)]['getFocusedUnit']();return _0x16fbed?this[_0x30e4af(0x25e)][_0x30e4af(0x38b)](_0x16fbed[_0x30e4af(0x186)]()):A['of'](null);}),A[_0x1d8d3d(0x150)](_0x850f77=>_0x850f77?_0x850f77[_0x1d8d3d(0x1a6)]:A['of'](q[_0x1d8d3d(0x341)])))[_0x1d8d3d(0x455)](_0x13c8b9=>{const _0x4898d0=_0x1d8d3d;this[_0x4898d0(0x517)][_0x4898d0(0x261)](_0x13c8b9);}));}['_initStatusComponent'](){const _0xd3beb3=_0x3ee1d4;this[_0xd3beb3(0x4bd)](this[_0xd3beb3(0x151)][_0xd3beb3(0x125)](te[_0xd3beb3(0x2d7)][_0xd3beb3(0x483)],()=>a[_0xd3beb3(0x34c)](Ls({'status$':this[_0xd3beb3(0x517)]['asObservable']()}),this[_0xd3beb3(0x390)])));}},exports['DesktopCollaborationStatusDisplayController']=Ns([je(0x0,a[_0x3ee1d4(0x47a)]),je(0x1,te[_0x3ee1d4(0x7d)]),je(0x2,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),je(0x3,a[_0x3ee1d4(0x4c5)](exports[_0x3ee1d4(0x122)]))],exports[_0x3ee1d4(0x4d0)]);function Ls(_0x5bd945){const {status$:_0xaa9895}=_0x5bd945;return function(){const _0xc3494e=_0x51c9;return z[_0xc3494e(0x3f6)](Cn,{'status$':_0xaa9895});};}const Dt=a[_0x3ee1d4(0x466)](_0x3ee1d4(0x456));var xs=Object[_0x3ee1d4(0x4ef)],$s=Object[_0x3ee1d4(0xe2)],js=(_0x361040,_0x1cbc6c,_0x231861,_0x443ff2)=>{const _0x2fb575=_0x3ee1d4;for(var _0x2fd1a9=_0x443ff2>0x1?void 0x0:_0x443ff2?$s(_0x1cbc6c,_0x231861):_0x1cbc6c,_0x175f4c=_0x361040[_0x2fb575(0x156)]-0x1,_0x4dcd91;_0x175f4c>=0x0;_0x175f4c--)(_0x4dcd91=_0x361040[_0x175f4c])&&(_0x2fd1a9=(_0x443ff2?_0x4dcd91(_0x1cbc6c,_0x231861,_0x2fd1a9):_0x4dcd91(_0x2fd1a9))||_0x2fd1a9);return _0x443ff2&&_0x2fd1a9&&xs(_0x1cbc6c,_0x231861,_0x2fd1a9),_0x2fd1a9;},be=(_0xf1c05f,_0x348209)=>(_0x488817,_0x189863)=>_0x348209(_0x488817,_0x189863,_0xf1c05f);exports[_0x3ee1d4(0x250)]=class extends a[_0x3ee1d4(0x301)]{constructor(_0x4cc724,_0x56a2cb,_0x2ce6fb,_0xcae46d,_0x303a86,_0x5e340a){const _0x1d7c24=_0x3ee1d4;super(),this[_0x1d7c24(0x406)]=_0x4cc724,this[_0x1d7c24(0x416)]=_0x56a2cb,this[_0x1d7c24(0x117)]=_0x2ce6fb,this[_0x1d7c24(0xd5)]=_0xcae46d,this[_0x1d7c24(0x1c5)]=_0x303a86,_0x5e340a?_0x5e340a==null||_0x5e340a['whenReady']()[_0x1d7c24(0x107)](()=>this[_0x1d7c24(0x106)]()):(this['_logService']['debug'](_0x1d7c24(0xba),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x3ee1d4(0x106)](){const _0x38eb01=_0x3ee1d4,_0x2e499d=this[_0x38eb01(0x406)]['getParam'](_0x38eb01(0x4f7)),_0x4fc8c9=this[_0x38eb01(0x406)]['getParam'](_0x38eb01(0x4df));if(!_0x2e499d||!_0x4fc8c9){this['_logService'][_0x38eb01(0x40d)](_0x38eb01(0xba),_0x38eb01(0x49b));return;}switch(Number(_0x4fc8c9)){case se[_0x38eb01(0x1c8)]:{const _0x43e763=await this[_0x38eb01(0x220)](_0x2e499d);this['_setupSubUnitSync'](_0x43e763);break;}case se[_0x38eb01(0x357)]:{await this[_0x38eb01(0x89)](_0x2e499d);break;}default:{this[_0x38eb01(0x416)][_0x38eb01(0x97)](_0x38eb01(0xba),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x3ee1d4(0xc5)](_0x560211){const _0x3e6cb3=_0x3ee1d4;await this[_0x3e6cb3(0xb6)](_0x560211),_0x560211[_0x3e6cb3(0xa1)][_0x3e6cb3(0x32f)](A[_0x3e6cb3(0x1d9)](this[_0x3e6cb3(0xc9)]))[_0x3e6cb3(0x455)](_0x5591f4=>{const _0x4d4219=_0x3e6cb3;_0x5591f4&&this[_0x4d4219(0x25f)](_0x5591f4);}),this[_0x3e6cb3(0x406)][_0x3e6cb3(0x4f2)][_0x3e6cb3(0x32f)](A[_0x3e6cb3(0x1d9)](this[_0x3e6cb3(0xc9)]))[_0x3e6cb3(0x455)](()=>this[_0x3e6cb3(0xb6)](_0x560211));}['_updateURLWithCurrentState'](_0x3d7ce5,_0x2e1dde=!0x1){const _0x39c144=_0x3ee1d4,_0x49b41b=this[_0x39c144(0x406)][_0x39c144(0x337)](_0x39c144(0x3af));_0x3d7ce5[_0x39c144(0x3f7)]()!==_0x49b41b&&this[_0x39c144(0x406)]['setParam']('subunit',_0x3d7ce5[_0x39c144(0x3f7)](),_0x2e1dde);}async[_0x3ee1d4(0xb6)](_0x100dfd){const _0x11217e=_0x3ee1d4;var _0x13d535;const _0x46a156=this[_0x11217e(0x406)]['getParam'](_0x11217e(0x3af));if(!_0x46a156||!_0x100dfd[_0x11217e(0x15b)](_0x46a156)){const _0x472003=_0x100dfd[_0x11217e(0x1e0)]()[0x0],_0x1b3fd2=_0x100dfd[_0x11217e(0x15b)](_0x472003);if(!_0x1b3fd2)return;this[_0x11217e(0x25f)](_0x1b3fd2,!0x0),await this[_0x11217e(0x117)][_0x11217e(0x1ec)](k[_0x11217e(0x1cb)]['id'],{'unitId':_0x100dfd[_0x11217e(0x186)](),'subUnitId':_0x472003});return;}((_0x13d535=_0x100dfd[_0x11217e(0x2da)]())==null?void 0x0:_0x13d535[_0x11217e(0x3f7)]())!==_0x46a156&&await this[_0x11217e(0x117)][_0x11217e(0x1ec)](k['SetWorksheetActivateCommand']['id'],{'unitId':_0x100dfd[_0x11217e(0x186)](),'subUnitId':_0x46a156});}async[_0x3ee1d4(0x220)](_0x2d93e0){const _0x4bec91=_0x3ee1d4;let _0x1b9d7b=0x0;const _0xe41625=await this[_0x4bec91(0xd5)][_0x4bec91(0x4c3)](_0x2d93e0);return _0xe41625&&(_0xe41625[_0x4bec91(0x438)]||_0xe41625[_0x4bec91(0x1a7)][_0x4bec91(0x156)]!==0x0)&&(_0x1b9d7b=_0xe41625[_0x4bec91(0x119)]),_0x1b9d7b===0x0&&this[_0x4bec91(0x416)]['debug'](_0x4bec91(0xba),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x2d93e0,_0x1b9d7b);}async['_loadDoc'](_0x7853b){const _0x8820c4=_0x3ee1d4;let _0x54e6f8=0x0;const _0x270541=await this[_0x8820c4(0xd5)][_0x8820c4(0x4c3)](_0x7853b);return _0x270541&&(_0x270541[_0x8820c4(0x438)]||_0x270541[_0x8820c4(0x1a7)][_0x8820c4(0x156)]!==0x0)&&(_0x54e6f8=_0x270541[_0x8820c4(0x119)]),_0x54e6f8===0x0&&this[_0x8820c4(0x416)][_0x8820c4(0x40d)](_0x8820c4(0xba),_0x8820c4(0x27b)),this[_0x8820c4(0x1c5)][_0x8820c4(0x3b9)](_0x7853b,_0x54e6f8);}},exports[_0x3ee1d4(0x250)]=js([be(0x0,Dt),be(0x1,a[_0x3ee1d4(0x25c)]),be(0x2,a[_0x3ee1d4(0x1cc)]),be(0x3,a['Inject'](exports[_0x3ee1d4(0xa4)])),be(0x4,a[_0x3ee1d4(0x4c5)](S['SnapshotService'])),be(0x5,a[_0x3ee1d4(0xa5)](Ln[_0x3ee1d4(0x7b)]))],exports[_0x3ee1d4(0x250)]);var Hs=Object[_0x3ee1d4(0x4ef)],Bs=Object[_0x3ee1d4(0xe2)],ks=(_0x493b4f,_0x5ef652,_0x40be82,_0x374f2d)=>{for(var _0x2e8dd9=_0x374f2d>0x1?void 0x0:_0x374f2d?Bs(_0x5ef652,_0x40be82):_0x5ef652,_0x5319c1=_0x493b4f['length']-0x1,_0x5e4e31;_0x5319c1>=0x0;_0x5319c1--)(_0x5e4e31=_0x493b4f[_0x5319c1])&&(_0x2e8dd9=(_0x374f2d?_0x5e4e31(_0x5ef652,_0x40be82,_0x2e8dd9):_0x5e4e31(_0x2e8dd9))||_0x2e8dd9);return _0x374f2d&&_0x2e8dd9&&Hs(_0x5ef652,_0x40be82,_0x2e8dd9),_0x2e8dd9;},Bt=(_0x3e979f,_0x29c0b8)=>(_0x274141,_0x5b52c5)=>_0x29c0b8(_0x274141,_0x5b52c5,_0x3e979f);const Ws=_0x3ee1d4(0x171),Fs=_0x3ee1d4(0x88);let Ve=class extends a[_0x3ee1d4(0xbf)]{constructor(_0x483a5a,_0xe92a2e){const _0x309584=_0x3ee1d4;super(),this[_0x309584(0xfd)]=_0x483a5a,this[_0x309584(0x320)]=_0xe92a2e,this[_0x309584(0x106)]();}[_0x3ee1d4(0x106)](){const _0x242565=_0x3ee1d4;this['disposeWithMe'](this[_0x242565(0xfd)][_0x242565(0x484)][_0x242565(0x455)](()=>{const _0x3bb2d5=_0x242565;var _0x3f0527;const _0x4ae6e6=this[_0x3bb2d5(0xfd)][_0x3bb2d5(0x474)]();let _0x2b52ac=(_0x3f0527=this['_configService']['getConfig'](Ws))!=null?_0x3f0527:Fs;_0x4ae6e6 instanceof a['Workbook']&&(_0x2b52ac=_0x4ae6e6[_0x3bb2d5(0xc2)]),document[_0x3bb2d5(0x1c7)]=_0x2b52ac;}));}};Ve=ks([Bt(0x0,a[_0x3ee1d4(0x47a)]),Bt(0x1,a[_0x3ee1d4(0x153)])],Ve);var Vs=Object['defineProperty'],Gs=Object[_0x3ee1d4(0xe2)],Ys=(_0x5e0416,_0x140a62,_0x354c36,_0x341eae)=>{const _0x5ebb6a=_0x3ee1d4;for(var _0xeacd07=_0x341eae>0x1?void 0x0:_0x341eae?Gs(_0x140a62,_0x354c36):_0x140a62,_0x556892=_0x5e0416[_0x5ebb6a(0x156)]-0x1,_0x5bbecd;_0x556892>=0x0;_0x556892--)(_0x5bbecd=_0x5e0416[_0x556892])&&(_0xeacd07=(_0x341eae?_0x5bbecd(_0x140a62,_0x354c36,_0xeacd07):_0x5bbecd(_0xeacd07))||_0xeacd07);return _0x341eae&&_0xeacd07&&Vs(_0x140a62,_0x354c36,_0xeacd07),_0xeacd07;},ot=(_0xfecf7,_0x4c207a)=>(_0x52eae6,_0xc549ac)=>_0x4c207a(_0x52eae6,_0xc549ac,_0xfecf7);let Ge=class{constructor(_0xe74c6f,_0x489672,_0x2ff695){const _0x318b01=_0x3ee1d4;this['_configService']=_0xe74c6f,this[_0x318b01(0x472)]=_0x489672,this[_0x318b01(0x2db)]=_0x2ff695,this['init']();}[_0x3ee1d4(0x42a)](){const _0x25f2d3=_0x3ee1d4;this[_0x25f2d3(0x472)][_0x25f2d3(0x35b)]({'priority':0x1,'interceptor':(_0x474a3a,_0x4be64d)=>_0x4be64d(_0x474a3a)[_0x25f2d3(0x32f)](A[_0x25f2d3(0x242)](async _0xd7406d=>{const _0x27db4f=_0x25f2d3,_0x2f0f46=_0xd7406d;if(_0x2f0f46[_0x27db4f(0x19a)]===0x191&&window[_0x27db4f(0x14f)](this[_0x27db4f(0x2db)]['t'](_0x27db4f(0x23b)))){const _0x2ce93f=window['encodeURIComponent'](window['location'][_0x27db4f(0x1f3)]);window[_0x27db4f(0x181)]['href']=this['_getLoginPath']()+_0x27db4f(0x3f8)+_0x2ce93f;}return _0x2f0f46;}))});}[_0x3ee1d4(0x3f1)](){const _0x120551=_0x3ee1d4;var _0x24210c,_0x380bd7;const _0x513d67=this['_configService'][_0x120551(0x79)](on),_0x5611fd=this[_0x120551(0x320)][_0x120551(0x79)](ne);return(_0x380bd7=(_0x24210c=_0x5611fd==null?void 0x0:_0x5611fd[_0x120551(0x413)])!=null?_0x24210c:_0x513d67)!=null?_0x380bd7:Gn;}};Ge=Ys([ot(0x0,a[_0x3ee1d4(0x153)]),ot(0x1,a[_0x3ee1d4(0x4c5)](Q['HTTPService'])),ot(0x2,a['Inject'](a[_0x3ee1d4(0x2ae)]))],Ge);var Ks=Object[_0x3ee1d4(0x4ef)],qs=Object[_0x3ee1d4(0xe2)],zs=(_0x406bde,_0x5d23d8,_0x5b1ef1,_0x4f44ff)=>{for(var _0x4135ba=_0x4f44ff>0x1?void 0x0:_0x4f44ff?qs(_0x5d23d8,_0x5b1ef1):_0x5d23d8,_0x13ed0f=_0x406bde['length']-0x1,_0x3bdd73;_0x13ed0f>=0x0;_0x13ed0f--)(_0x3bdd73=_0x406bde[_0x13ed0f])&&(_0x4135ba=(_0x4f44ff?_0x3bdd73(_0x5d23d8,_0x5b1ef1,_0x4135ba):_0x3bdd73(_0x4135ba))||_0x4135ba);return _0x4f44ff&&_0x4135ba&&Ks(_0x5d23d8,_0x5b1ef1,_0x4135ba),_0x4135ba;},kt=(_0x2b0199,_0x17184d)=>(_0x28f16c,_0x106609)=>_0x17184d(_0x28f16c,_0x106609,_0x2b0199);const En='AUTHZ_URL_KEY',Xs='/universer-api/authz';exports['AuthzIoHttpService']=class extends a['Disposable']{constructor(_0x5a5006,_0x33b24f){const _0x5eb7b3=_0x3ee1d4;super(),this[_0x5eb7b3(0x29e)]=_0x5a5006,this['_configService']=_0x33b24f,this[_0x5eb7b3(0x260)]();}['_initMergeInterceptor'](){const _0x2d1c13=_0x3ee1d4,_0x5568b3=this;this[_0x2d1c13(0x4bd)](this['_HTTPService'][_0x2d1c13(0x35b)]({'priority':0x3e7,'interceptor':Q['MergeInterceptorFactory']({'isMatch'(_0x1ee793){const _0x65ae64=_0x2d1c13;var _0x5849ab;if(_0x1ee793['method']===_0x65ae64(0x374)&&((_0x5849ab=_0x1ee793['requestParams'])!=null&&_0x5849ab[_0x65ae64(0x232)])){const {objectID:_0x548ee7,objectType:_0x1c827e}=_0x1ee793[_0x65ae64(0x8e)][_0x65ae64(0x232)]||{};if(!_0x548ee7||_0x1c827e===void 0x0)return!0x1;const _0x433d64=_0x5568b3[_0x65ae64(0x1b0)]()+'/'+_0x1c827e+_0x65ae64(0x2fc)+_0x548ee7+_0x65ae64(0x32a);if(_0x1ee793[_0x65ae64(0x1a5)]===_0x433d64)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x307b52){const _0x204a6c=_0x2d1c13;var _0x45e303;return(_0x45e303=_0x307b52[_0x204a6c(0x8e)])==null?void 0x0:_0x45e303['body'];},'mergeParamsToRequest'(_0x356596,_0x2c18ac){const _0x314cf4=_0x2d1c13,_0x2431fe=_0x5568b3[_0x314cf4(0x1b0)]()+_0x314cf4(0x369),_0x22ddff=_0x356596['reduce']((_0xbc727f,_0x58a310)=>{const _0x43e09f=_0x314cf4,{unitID:_0x2a2c6b,objectID:_0x5695d1,objectType:_0x55b02f,actions:_0x467502}=_0x58a310;return _0xbc727f[_0x2a2c6b]||(_0xbc727f[_0x2a2c6b]={}),_0xbc727f[_0x2a2c6b][_0x5695d1]||(_0xbc727f[_0x2a2c6b][_0x5695d1]={'objectID':_0x5695d1,'objectType':_0x55b02f,'actions':[]}),_0xbc727f[_0x2a2c6b][_0x5695d1][_0x43e09f(0x4d5)][_0x43e09f(0x462)](..._0x467502),_0xbc727f;},{}),_0x21dff5=[];for(const _0x5d514a in _0x22ddff)for(const _0x4bd581 in _0x22ddff[_0x5d514a]){const {actions:_0x544f41,objectType:_0x4d59cf}=_0x22ddff[_0x5d514a][_0x4bd581],_0x160cce=[...new Set(_0x544f41)];_0x21dff5['push']({'unitID':_0x5d514a,'objectID':_0x4bd581,'objectType':_0x4d59cf,'actions':_0x160cce});}return new Q[(_0x314cf4(0x336))](_0x314cf4(0x374),_0x2431fe,{'headers':_0x2c18ac[_0x314cf4(0x330)],'withCredentials':_0x2c18ac[_0x314cf4(0xde)],'responseType':_0x2c18ac[_0x314cf4(0x396)],'body':{'requests':_0x21dff5}});}},{'distributeResult'(_0x2e24d6,_0x39584b){const {objectActions:_0x46f840}=_0x2e24d6;return _0x39584b['map'](_0x571253=>{const _0x1b9b7e=_0x51c9,{unitID:_0x436384,objectID:_0x5a2ad3,actions:_0x48b018}=_0x571253,_0xdf2c7d=_0x46f840[_0x1b9b7e(0x418)](_0x281a62=>_0x281a62['unitID']===_0x436384&&_0x281a62[_0x1b9b7e(0x310)]===_0x5a2ad3),_0x38fb5a=_0x48b018[_0x1b9b7e(0x4c0)](_0x46b6f9=>_0xdf2c7d==null?void 0x0:_0xdf2c7d['actions'][_0x1b9b7e(0x418)](_0x3799fa=>_0x3799fa[_0x1b9b7e(0x1a3)]===_0x46b6f9))[_0x1b9b7e(0x48a)](_0x195d39=>!!_0x195d39);return{'config':_0x571253,'result':{'actions':_0x38fb5a,'error':_0x2e24d6[_0x1b9b7e(0x97)]}};});}})}));}[_0x3ee1d4(0x1b0)](){const _0x3945b8=_0x3ee1d4;var _0xe392b,_0x3cea87;const _0x235d5f=this[_0x3945b8(0x320)]['getConfig'](En),_0xcb1d39=this[_0x3945b8(0x320)]['getConfig'](ne);return(_0x3cea87=(_0xe392b=_0xcb1d39==null?void 0x0:_0xcb1d39[_0x3945b8(0x3ba)])!=null?_0xe392b:_0x235d5f)!=null?_0x3cea87:Xs;}async[_0x3ee1d4(0x26f)](_0x1b1ca2){const _0x112c22=_0x3ee1d4,_0x10a034=this[_0x112c22(0x1b0)]()+'/'+_0x1b1ca2[_0x112c22(0x200)]+_0x112c22(0x93);return(await this[_0x112c22(0x29e)][_0x112c22(0x235)](_0x10a034,{'body':_0x1b1ca2}))[_0x112c22(0x232)]['objectID']||'';}async[_0x3ee1d4(0x441)](_0xf6a717){const _0x2dc071=_0x3ee1d4,_0x51ad41=this[_0x2dc071(0x1b0)]()+_0x2dc071(0x112);return(await this[_0x2dc071(0x29e)][_0x2dc071(0x235)](_0x51ad41,{'body':_0xf6a717}))['body'][_0x2dc071(0x16d)];}async[_0x3ee1d4(0x431)](_0x2025ad){const _0x53e14a=_0x3ee1d4,_0x3981de=this[_0x53e14a(0x1b0)]()+'/'+_0x2025ad[_0x53e14a(0x200)]+_0x53e14a(0x2fc)+_0x2025ad[_0x53e14a(0x310)];await this[_0x53e14a(0x29e)][_0x53e14a(0x2f2)](_0x3981de,{'body':_0x2025ad});}async[_0x3ee1d4(0x2ee)](_0x196c9a){const _0x2c3180=_0x3ee1d4,_0x3747a0=this[_0x2c3180(0x1b0)]()+'/'+_0x196c9a[_0x2c3180(0x200)]+_0x2c3180(0x2fc)+_0x196c9a[_0x2c3180(0x310)]+_0x2c3180(0x32a);return(await this[_0x2c3180(0x29e)][_0x2c3180(0x235)](_0x3747a0,{'body':_0x196c9a}))['body'][_0x2c3180(0x4d5)];}async[_0x3ee1d4(0x511)](_0xb554e6){const _0x1da659=_0x3ee1d4,_0x52a99c=this[_0x1da659(0x1b0)]()+_0x1da659(0x369);return(await this[_0x1da659(0x29e)][_0x1da659(0x235)](_0x52a99c,{'body':{'requests':_0xb554e6}}))[_0x1da659(0x232)][_0x1da659(0x2c2)];}async['listRoles'](_0x5980e4){const _0x92943=_0x3ee1d4,_0x6a9ec4=this[_0x92943(0x1b0)]()+'/'+_0x5980e4[_0x92943(0x200)]+_0x92943(0x51b),_0xb02b5a=await this['_HTTPService'][_0x92943(0x235)](_0x6a9ec4,{'body':_0x5980e4});return{'roles':_0xb02b5a[_0x92943(0x232)][_0x92943(0x34a)],'actions':_0xb02b5a[_0x92943(0x232)][_0x92943(0x4d5)]};}async[_0x3ee1d4(0x21f)](_0x6e61bb){const _0x32b294=_0x3ee1d4,_0x44fe42=this[_0x32b294(0x1b0)]()+_0x32b294(0x3a8);await this[_0x32b294(0x29e)]['delete'](_0x44fe42,{'params':{'collaboratorID':_0x6e61bb[_0x32b294(0x4e1)],'objectID':_0x6e61bb[_0x32b294(0x310)],'unitID':_0x6e61bb[_0x32b294(0x50d)]}});}async['updateCollaborator'](_0x10fc60){const _0x46cd54=_0x3ee1d4,_0x4479fe=this[_0x46cd54(0x1b0)]()+_0x46cd54(0x3a8);await this[_0x46cd54(0x29e)]['patch'](_0x4479fe,{'body':_0x10fc60});}async[_0x3ee1d4(0x34f)](_0x5c7f6d){const _0x20c92a=_0x3ee1d4,_0x4e971a=this[_0x20c92a(0x1b0)]()+_0x20c92a(0x3a8);await this[_0x20c92a(0x29e)][_0x20c92a(0x235)](_0x4e971a,{'body':_0x5c7f6d});}async[_0x3ee1d4(0x270)](_0x4bf47a){const _0x13f48b=_0x3ee1d4,_0x48dfa1=this[_0x13f48b(0x1b0)]()+_0x13f48b(0x3a8);return(await this[_0x13f48b(0x29e)]['get'](_0x48dfa1,{'params':{'objectID':_0x4bf47a[_0x13f48b(0x310)],'unitID':_0x4bf47a['unitID']}}))[_0x13f48b(0x232)]['collaborators'];}async[_0x3ee1d4(0x49a)](_0x10e9d1){const _0x213d49=_0x3ee1d4,_0x3948ac=this[_0x213d49(0x1b0)]()+_0x213d49(0x3a8);await this[_0x213d49(0x29e)][_0x213d49(0x2f2)](_0x3948ac,{'body':_0x10e9d1});}},exports[_0x3ee1d4(0x230)]=zs([kt(0x0,a['Inject'](Q[_0x3ee1d4(0x189)])),kt(0x1,a['Inject'](a[_0x3ee1d4(0x153)]))],exports[_0x3ee1d4(0x230)]);var J=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function Le(_0x5d154c){const _0x1f422f=_0x3ee1d4;return _0x5d154c&&_0x5d154c['__esModule']&&Object[_0x1f422f(0x28d)]['hasOwnProperty'][_0x1f422f(0x461)](_0x5d154c,'default')?_0x5d154c[_0x1f422f(0x36c)]:_0x5d154c;}var bn={'exports':{}};function Js(_0x112446){const _0x560363=_0x3ee1d4;throw new Error(_0x560363(0x350)+_0x112446+_0x560363(0x298));}var at={'exports':{}},Wt;function ae(){return Wt||(Wt=0x1,function(_0x1858ac,_0x4f7ff0){(function(_0x28cc4d,_0x2211ff){const _0x15a79b=_0x51c9;_0x1858ac[_0x15a79b(0x4ab)]=_0x2211ff();}(J,function(){var _0x21a6bf=_0x21a6bf||function(_0x269a91,_0x2818b0){const _0x5997cb=_0x51c9;var _0xf049de;if(typeof window<'u'&&window[_0x5997cb(0x395)]&&(_0xf049de=window[_0x5997cb(0x395)]),typeof self<'u'&&self[_0x5997cb(0x395)]&&(_0xf049de=self[_0x5997cb(0x395)]),typeof globalThis<'u'&&globalThis['crypto']&&(_0xf049de=globalThis[_0x5997cb(0x395)]),!_0xf049de&&typeof window<'u'&&window[_0x5997cb(0x21a)]&&(_0xf049de=window[_0x5997cb(0x21a)]),!_0xf049de&&typeof J<'u'&&J[_0x5997cb(0x395)]&&(_0xf049de=J['crypto']),!_0xf049de&&typeof Js=='function')try{_0xf049de=require(_0x5997cb(0x395));}catch{}var _0x55d40c=function(){const _0xb19914=_0x5997cb;if(_0xf049de){if(typeof _0xf049de[_0xb19914(0x82)]==_0xb19914(0xd0))try{return _0xf049de[_0xb19914(0x82)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0xf049de[_0xb19914(0x3fc)]=='function')try{return _0xf049de[_0xb19914(0x3fc)](0x4)['readInt32LE']();}catch{}}throw new Error('Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.');},_0xfca2d5=Object[_0x5997cb(0x26f)]||(function(){function _0x1a6106(){}return function(_0x4bd318){const _0xed54a6=_0x51c9;var _0x288c3f;return _0x1a6106[_0xed54a6(0x28d)]=_0x4bd318,_0x288c3f=new _0x1a6106(),_0x1a6106[_0xed54a6(0x28d)]=null,_0x288c3f;};}()),_0x27da79={},_0x49ad42=_0x27da79['lib']={},_0x4f0919=_0x49ad42[_0x5997cb(0x520)]=(function(){return{'extend':function(_0xd4305){const _0x359b8f=_0x51c9;var _0x38a4de=_0xfca2d5(this);return _0xd4305&&_0x38a4de['mixIn'](_0xd4305),(!_0x38a4de[_0x359b8f(0x21d)](_0x359b8f(0x42a))||this[_0x359b8f(0x42a)]===_0x38a4de[_0x359b8f(0x42a)])&&(_0x38a4de[_0x359b8f(0x42a)]=function(){const _0x368c75=_0x359b8f;_0x38a4de['$super'][_0x368c75(0x42a)][_0x368c75(0x491)](this,arguments);}),_0x38a4de['init'][_0x359b8f(0x28d)]=_0x38a4de,_0x38a4de[_0x359b8f(0x1cd)]=this,_0x38a4de;},'create':function(){const _0x386a4a=_0x51c9;var _0xdc00e2=this['extend']();return _0xdc00e2[_0x386a4a(0x42a)][_0x386a4a(0x491)](_0xdc00e2,arguments),_0xdc00e2;},'init':function(){},'mixIn':function(_0x1866ce){const _0x58de74=_0x51c9;for(var _0x59f27f in _0x1866ce)_0x1866ce[_0x58de74(0x21d)](_0x59f27f)&&(this[_0x59f27f]=_0x1866ce[_0x59f27f]);_0x1866ce[_0x58de74(0x21d)]('toString')&&(this[_0x58de74(0x33f)]=_0x1866ce[_0x58de74(0x33f)]);},'clone':function(){const _0x4edd66=_0x51c9;return this['init'][_0x4edd66(0x28d)][_0x4edd66(0x3e4)](this);}};}()),_0x5588a5=_0x49ad42['WordArray']=_0x4f0919['extend']({'init':function(_0x550fe7,_0x4985d5){const _0x2a2349=_0x5997cb;_0x550fe7=this['words']=_0x550fe7||[],_0x4985d5!=_0x2818b0?this[_0x2a2349(0x217)]=_0x4985d5:this['sigBytes']=_0x550fe7[_0x2a2349(0x156)]*0x4;},'toString':function(_0x4dfbf6){const _0x3837c7=_0x5997cb;return(_0x4dfbf6||_0x5c6dfd)[_0x3837c7(0xd2)](this);},'concat':function(_0x42162c){const _0x3ca6bf=_0x5997cb;var _0x2bbb15=this[_0x3ca6bf(0x356)],_0x178ead=_0x42162c[_0x3ca6bf(0x356)],_0x55df8e=this[_0x3ca6bf(0x217)],_0x159b76=_0x42162c['sigBytes'];if(this[_0x3ca6bf(0x10c)](),_0x55df8e%0x4)for(var _0x26656a=0x0;_0x26656a<_0x159b76;_0x26656a++){var _0x34c416=_0x178ead[_0x26656a>>>0x2]>>>0x18-_0x26656a%0x4*0x8&0xff;_0x2bbb15[_0x55df8e+_0x26656a>>>0x2]|=_0x34c416<<0x18-(_0x55df8e+_0x26656a)%0x4*0x8;}else{for(var _0x286c52=0x0;_0x286c52<_0x159b76;_0x286c52+=0x4)_0x2bbb15[_0x55df8e+_0x286c52>>>0x2]=_0x178ead[_0x286c52>>>0x2];}return this[_0x3ca6bf(0x217)]+=_0x159b76,this;},'clamp':function(){const _0x1709c3=_0x5997cb;var _0x3f00b3=this['words'],_0x40c368=this[_0x1709c3(0x217)];_0x3f00b3[_0x40c368>>>0x2]&=0xffffffff<<0x20-_0x40c368%0x4*0x8,_0x3f00b3[_0x1709c3(0x156)]=_0x269a91['ceil'](_0x40c368/0x4);},'clone':function(){const _0x4c4d5f=_0x5997cb;var _0x32f774=_0x4f0919[_0x4c4d5f(0x397)][_0x4c4d5f(0x461)](this);return _0x32f774['words']=this[_0x4c4d5f(0x356)]['slice'](0x0),_0x32f774;},'random':function(_0x2af97f){const _0x2892a7=_0x5997cb;for(var _0x25c3ec=[],_0x40d879=0x0;_0x40d879<_0x2af97f;_0x40d879+=0x4)_0x25c3ec[_0x2892a7(0x462)](_0x55d40c());return new _0x5588a5['init'](_0x25c3ec,_0x2af97f);}}),_0x198353=_0x27da79[_0x5997cb(0x212)]={},_0x5c6dfd=_0x198353['Hex']={'stringify':function(_0x54009b){const _0x30743f=_0x5997cb;for(var _0x9463f9=_0x54009b[_0x30743f(0x356)],_0x408e33=_0x54009b[_0x30743f(0x217)],_0x4023c3=[],_0xf26831=0x0;_0xf26831<_0x408e33;_0xf26831++){var _0x3e3e97=_0x9463f9[_0xf26831>>>0x2]>>>0x18-_0xf26831%0x4*0x8&0xff;_0x4023c3[_0x30743f(0x462)]((_0x3e3e97>>>0x4)[_0x30743f(0x33f)](0x10)),_0x4023c3[_0x30743f(0x462)]((_0x3e3e97&0xf)['toString'](0x10));}return _0x4023c3['join']('');},'parse':function(_0x2a129d){const _0xccdada=_0x5997cb;for(var _0x166757=_0x2a129d[_0xccdada(0x156)],_0x190134=[],_0x5298d6=0x0;_0x5298d6<_0x166757;_0x5298d6+=0x2)_0x190134[_0x5298d6>>>0x3]|=parseInt(_0x2a129d[_0xccdada(0x33d)](_0x5298d6,0x2),0x10)<<0x18-_0x5298d6%0x8*0x4;return new _0x5588a5[(_0xccdada(0x42a))](_0x190134,_0x166757/0x2);}},_0x5cedd4=_0x198353[_0x5997cb(0x1c0)]={'stringify':function(_0x4f28bc){const _0x3d7cd6=_0x5997cb;for(var _0x3d5da9=_0x4f28bc[_0x3d7cd6(0x356)],_0x58e41d=_0x4f28bc[_0x3d7cd6(0x217)],_0x43aacf=[],_0x22b70f=0x0;_0x22b70f<_0x58e41d;_0x22b70f++){var _0x4245dd=_0x3d5da9[_0x22b70f>>>0x2]>>>0x18-_0x22b70f%0x4*0x8&0xff;_0x43aacf['push'](String[_0x3d7cd6(0x428)](_0x4245dd));}return _0x43aacf[_0x3d7cd6(0x408)]('');},'parse':function(_0x14f531){const _0x225241=_0x5997cb;for(var _0x402f64=_0x14f531[_0x225241(0x156)],_0x115b4d=[],_0x3de3bc=0x0;_0x3de3bc<_0x402f64;_0x3de3bc++)_0x115b4d[_0x3de3bc>>>0x2]|=(_0x14f531['charCodeAt'](_0x3de3bc)&0xff)<<0x18-_0x3de3bc%0x4*0x8;return new _0x5588a5[(_0x225241(0x42a))](_0x115b4d,_0x402f64);}},_0x328d4a=_0x198353[_0x5997cb(0x29c)]={'stringify':function(_0x3482bd){const _0x373bad=_0x5997cb;try{return decodeURIComponent(escape(_0x5cedd4[_0x373bad(0xd2)](_0x3482bd)));}catch{throw new Error(_0x373bad(0x131));}},'parse':function(_0x3ef7bb){return _0x5cedd4['parse'](unescape(encodeURIComponent(_0x3ef7bb)));}},_0x298052=_0x49ad42[_0x5997cb(0x3e8)]=_0x4f0919[_0x5997cb(0x3e4)]({'reset':function(){const _0x44c4ee=_0x5997cb;this[_0x44c4ee(0x41d)]=new _0x5588a5['init'](),this['_nDataBytes']=0x0;},'_append':function(_0x53d4ec){const _0x49c88a=_0x5997cb;typeof _0x53d4ec==_0x49c88a(0x1dc)&&(_0x53d4ec=_0x328d4a['parse'](_0x53d4ec)),this[_0x49c88a(0x41d)]['concat'](_0x53d4ec),this[_0x49c88a(0x44d)]+=_0x53d4ec['sigBytes'];},'_process':function(_0xe7c03f){const _0x1fbaba=_0x5997cb;var _0x4bb6fc,_0x16b7df=this[_0x1fbaba(0x41d)],_0x356463=_0x16b7df[_0x1fbaba(0x356)],_0x55c54c=_0x16b7df[_0x1fbaba(0x217)],_0x45ca67=this[_0x1fbaba(0x18a)],_0xeaa957=_0x45ca67*0x4,_0x35af97=_0x55c54c/_0xeaa957;_0xe7c03f?_0x35af97=_0x269a91['ceil'](_0x35af97):_0x35af97=_0x269a91[_0x1fbaba(0x24f)]((_0x35af97|0x0)-this['_minBufferSize'],0x0);var _0x5213bf=_0x35af97*_0x45ca67,_0xb599e6=_0x269a91[_0x1fbaba(0x2ec)](_0x5213bf*0x4,_0x55c54c);if(_0x5213bf){for(var _0x24f279=0x0;_0x24f279<_0x5213bf;_0x24f279+=_0x45ca67)this[_0x1fbaba(0x3cc)](_0x356463,_0x24f279);_0x4bb6fc=_0x356463[_0x1fbaba(0x1b1)](0x0,_0x5213bf),_0x16b7df[_0x1fbaba(0x217)]-=_0xb599e6;}return new _0x5588a5[(_0x1fbaba(0x42a))](_0x4bb6fc,_0xb599e6);},'clone':function(){const _0x406dad=_0x5997cb;var _0x2d5fcc=_0x4f0919['clone'][_0x406dad(0x461)](this);return _0x2d5fcc[_0x406dad(0x41d)]=this[_0x406dad(0x41d)][_0x406dad(0x397)](),_0x2d5fcc;},'_minBufferSize':0x0});_0x49ad42[_0x5997cb(0x2bb)]=_0x298052[_0x5997cb(0x3e4)]({'cfg':_0x4f0919['extend'](),'init':function(_0x5bc77e){const _0x4c2750=_0x5997cb;this[_0x4c2750(0x439)]=this[_0x4c2750(0x439)]['extend'](_0x5bc77e),this[_0x4c2750(0x1d5)]();},'reset':function(){const _0x2ef9e6=_0x5997cb;_0x298052['reset']['call'](this),this[_0x2ef9e6(0x2a9)]();},'update':function(_0x459ec3){const _0x2be977=_0x5997cb;return this[_0x2be977(0x3b3)](_0x459ec3),this[_0x2be977(0xf8)](),this;},'finalize':function(_0x5bf69c){const _0x34d5bb=_0x5997cb;_0x5bf69c&&this['_append'](_0x5bf69c);var _0x336225=this[_0x34d5bb(0x3d0)]();return _0x336225;},'blockSize':0x10,'_createHelper':function(_0x46dbd6){return function(_0x3f502b,_0x193ca1){const _0x3ab8c3=_0x51c9;return new _0x46dbd6['init'](_0x193ca1)[_0x3ab8c3(0x2f1)](_0x3f502b);};},'_createHmacHelper':function(_0x324cfd){return function(_0x45f1ce,_0x16a0b7){const _0x6850e3=_0x51c9;return new _0x35b9be[(_0x6850e3(0x388))][(_0x6850e3(0x42a))](_0x324cfd,_0x16a0b7)[_0x6850e3(0x2f1)](_0x45f1ce);};}});var _0x35b9be=_0x27da79[_0x5997cb(0xf0)]={};return _0x27da79;}(Math);return _0x21a6bf;}));}(at)),at['exports'];}var ct={'exports':{}},Ft;function Tn(){const _0xadc9cb=_0x3ee1d4;return Ft||(Ft=0x1,function(_0x7c3a9c,_0x4a1ce7){(function(_0x207b98,_0x4d6721){const _0x1c9a31=_0x51c9;_0x7c3a9c[_0x1c9a31(0x4ab)]=_0x4d6721(ae());}(J,function(_0x3ac17a){const _0x12d94b=_0x51c9;return(function(){const _0x58292c=_0x51c9;var _0x4d125e=_0x3ac17a,_0x40ad6a=_0x4d125e['lib'],_0x220720=_0x40ad6a['WordArray'],_0x1ecff1=_0x4d125e['enc'];_0x1ecff1[_0x58292c(0x147)]={'stringify':function(_0xf8426d){const _0x14bed9=_0x58292c;var _0x46af68=_0xf8426d[_0x14bed9(0x356)],_0x1b3ff8=_0xf8426d[_0x14bed9(0x217)],_0xe961e1=this[_0x14bed9(0x4e5)];_0xf8426d[_0x14bed9(0x10c)]();for(var _0x3783b8=[],_0xa24eba=0x0;_0xa24eba<_0x1b3ff8;_0xa24eba+=0x3)for(var _0x315f0a=_0x46af68[_0xa24eba>>>0x2]>>>0x18-_0xa24eba%0x4*0x8&0xff,_0x1046e1=_0x46af68[_0xa24eba+0x1>>>0x2]>>>0x18-(_0xa24eba+0x1)%0x4*0x8&0xff,_0x138354=_0x46af68[_0xa24eba+0x2>>>0x2]>>>0x18-(_0xa24eba+0x2)%0x4*0x8&0xff,_0xad0369=_0x315f0a<<0x10|_0x1046e1<<0x8|_0x138354,_0x439d76=0x0;_0x439d76<0x4&&_0xa24eba+_0x439d76*0.75<_0x1b3ff8;_0x439d76++)_0x3783b8[_0x14bed9(0x462)](_0xe961e1['charAt'](_0xad0369>>>0x6*(0x3-_0x439d76)&0x3f));var _0x5e97ff=_0xe961e1[_0x14bed9(0xbe)](0x40);if(_0x5e97ff){for(;_0x3783b8[_0x14bed9(0x156)]%0x4;)_0x3783b8[_0x14bed9(0x462)](_0x5e97ff);}return _0x3783b8['join']('');},'parse':function(_0x43911d){const _0x5d57b2=_0x58292c;var _0x99a42f=_0x43911d['length'],_0x12462c=this[_0x5d57b2(0x4e5)],_0xd49a17=this['_reverseMap'];if(!_0xd49a17){_0xd49a17=this['_reverseMap']=[];for(var _0x56624d=0x0;_0x56624d<_0x12462c[_0x5d57b2(0x156)];_0x56624d++)_0xd49a17[_0x12462c[_0x5d57b2(0x477)](_0x56624d)]=_0x56624d;}var _0x4ea3ed=_0x12462c['charAt'](0x40);if(_0x4ea3ed){var _0x5fe285=_0x43911d[_0x5d57b2(0x4ed)](_0x4ea3ed);_0x5fe285!==-0x1&&(_0x99a42f=_0x5fe285);}return _0xfba79d(_0x43911d,_0x99a42f,_0xd49a17);},'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0xfba79d(_0x308d8c,_0x8f96fa,_0x2e180e){const _0x5681c5=_0x58292c;for(var _0x1ad8d5=[],_0x16e91b=0x0,_0x519a33=0x0;_0x519a33<_0x8f96fa;_0x519a33++)if(_0x519a33%0x4){var _0x3db69e=_0x2e180e[_0x308d8c[_0x5681c5(0x477)](_0x519a33-0x1)]<<_0x519a33%0x4*0x2,_0x292696=_0x2e180e[_0x308d8c['charCodeAt'](_0x519a33)]>>>0x6-_0x519a33%0x4*0x2,_0x16d9bc=_0x3db69e|_0x292696;_0x1ad8d5[_0x16e91b>>>0x2]|=_0x16d9bc<<0x18-_0x16e91b%0x4*0x8,_0x16e91b++;}return _0x220720[_0x5681c5(0x26f)](_0x1ad8d5,_0x16e91b);}}()),_0x3ac17a[_0x12d94b(0x212)][_0x12d94b(0x147)];}));}(ct)),ct[_0xadc9cb(0x4ab)];}var lt={'exports':{}},Vt;function Zs(){return Vt||(Vt=0x1,function(_0x3cbb78,_0x23362b){(function(_0x2eb4ee,_0x584068){const _0x4776e0=_0x51c9;_0x3cbb78[_0x4776e0(0x4ab)]=_0x584068(ae());}(J,function(_0x300e79){const _0x49031f=_0x51c9;return function(_0x3c12c7){const _0x998cb4=_0x51c9;var _0x42f000=_0x300e79,_0x4b5959=_0x42f000[_0x998cb4(0x3b5)],_0x3df257=_0x4b5959[_0x998cb4(0x2ed)],_0xda80e7=_0x4b5959[_0x998cb4(0x2bb)],_0x4f90d6=_0x42f000[_0x998cb4(0xf0)],_0x1b30d2=[];(function(){const _0x17ed06=_0x998cb4;for(var _0x404a76=0x0;_0x404a76<0x40;_0x404a76++)_0x1b30d2[_0x404a76]=_0x3c12c7[_0x17ed06(0x4c2)](_0x3c12c7[_0x17ed06(0x267)](_0x404a76+0x1))*0x100000000|0x0;}());var _0x3dc147=_0x4f90d6[_0x998cb4(0x96)]=_0xda80e7['extend']({'_doReset':function(){this['_hash']=new _0x3df257['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x230e03,_0x21bbbf){const _0x3d3f60=_0x998cb4;for(var _0x339575=0x0;_0x339575<0x10;_0x339575++){var _0x3b4936=_0x21bbbf+_0x339575,_0x50e741=_0x230e03[_0x3b4936];_0x230e03[_0x3b4936]=(_0x50e741<<0x8|_0x50e741>>>0x18)&0xff00ff|(_0x50e741<<0x18|_0x50e741>>>0x8)&0xff00ff00;}var _0x3b3cb6=this[_0x3d3f60(0x146)]['words'],_0x35ca65=_0x230e03[_0x21bbbf+0x0],_0x2261a4=_0x230e03[_0x21bbbf+0x1],_0x5a47b8=_0x230e03[_0x21bbbf+0x2],_0x38931b=_0x230e03[_0x21bbbf+0x3],_0x338969=_0x230e03[_0x21bbbf+0x4],_0x4501b3=_0x230e03[_0x21bbbf+0x5],_0x3b762d=_0x230e03[_0x21bbbf+0x6],_0x5ddc27=_0x230e03[_0x21bbbf+0x7],_0x1c2a27=_0x230e03[_0x21bbbf+0x8],_0x1052bb=_0x230e03[_0x21bbbf+0x9],_0x17d28f=_0x230e03[_0x21bbbf+0xa],_0xcbfb0f=_0x230e03[_0x21bbbf+0xb],_0x54e86f=_0x230e03[_0x21bbbf+0xc],_0x288e53=_0x230e03[_0x21bbbf+0xd],_0x2fcd14=_0x230e03[_0x21bbbf+0xe],_0x1f67e6=_0x230e03[_0x21bbbf+0xf],_0x2f14d5=_0x3b3cb6[0x0],_0x223954=_0x3b3cb6[0x1],_0x44a336=_0x3b3cb6[0x2],_0x1fff81=_0x3b3cb6[0x3];_0x2f14d5=_0x16456b(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x35ca65,0x7,_0x1b30d2[0x0]),_0x1fff81=_0x16456b(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x2261a4,0xc,_0x1b30d2[0x1]),_0x44a336=_0x16456b(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x5a47b8,0x11,_0x1b30d2[0x2]),_0x223954=_0x16456b(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x38931b,0x16,_0x1b30d2[0x3]),_0x2f14d5=_0x16456b(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x338969,0x7,_0x1b30d2[0x4]),_0x1fff81=_0x16456b(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x4501b3,0xc,_0x1b30d2[0x5]),_0x44a336=_0x16456b(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x3b762d,0x11,_0x1b30d2[0x6]),_0x223954=_0x16456b(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x5ddc27,0x16,_0x1b30d2[0x7]),_0x2f14d5=_0x16456b(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x1c2a27,0x7,_0x1b30d2[0x8]),_0x1fff81=_0x16456b(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x1052bb,0xc,_0x1b30d2[0x9]),_0x44a336=_0x16456b(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x17d28f,0x11,_0x1b30d2[0xa]),_0x223954=_0x16456b(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0xcbfb0f,0x16,_0x1b30d2[0xb]),_0x2f14d5=_0x16456b(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x54e86f,0x7,_0x1b30d2[0xc]),_0x1fff81=_0x16456b(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x288e53,0xc,_0x1b30d2[0xd]),_0x44a336=_0x16456b(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x2fcd14,0x11,_0x1b30d2[0xe]),_0x223954=_0x16456b(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x1f67e6,0x16,_0x1b30d2[0xf]),_0x2f14d5=_0x3778c6(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x2261a4,0x5,_0x1b30d2[0x10]),_0x1fff81=_0x3778c6(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x3b762d,0x9,_0x1b30d2[0x11]),_0x44a336=_0x3778c6(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0xcbfb0f,0xe,_0x1b30d2[0x12]),_0x223954=_0x3778c6(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x35ca65,0x14,_0x1b30d2[0x13]),_0x2f14d5=_0x3778c6(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x4501b3,0x5,_0x1b30d2[0x14]),_0x1fff81=_0x3778c6(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x17d28f,0x9,_0x1b30d2[0x15]),_0x44a336=_0x3778c6(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x1f67e6,0xe,_0x1b30d2[0x16]),_0x223954=_0x3778c6(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x338969,0x14,_0x1b30d2[0x17]),_0x2f14d5=_0x3778c6(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x1052bb,0x5,_0x1b30d2[0x18]),_0x1fff81=_0x3778c6(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x2fcd14,0x9,_0x1b30d2[0x19]),_0x44a336=_0x3778c6(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x38931b,0xe,_0x1b30d2[0x1a]),_0x223954=_0x3778c6(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x1c2a27,0x14,_0x1b30d2[0x1b]),_0x2f14d5=_0x3778c6(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x288e53,0x5,_0x1b30d2[0x1c]),_0x1fff81=_0x3778c6(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x5a47b8,0x9,_0x1b30d2[0x1d]),_0x44a336=_0x3778c6(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x5ddc27,0xe,_0x1b30d2[0x1e]),_0x223954=_0x3778c6(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x54e86f,0x14,_0x1b30d2[0x1f]),_0x2f14d5=_0x380738(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x4501b3,0x4,_0x1b30d2[0x20]),_0x1fff81=_0x380738(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x1c2a27,0xb,_0x1b30d2[0x21]),_0x44a336=_0x380738(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0xcbfb0f,0x10,_0x1b30d2[0x22]),_0x223954=_0x380738(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x2fcd14,0x17,_0x1b30d2[0x23]),_0x2f14d5=_0x380738(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x2261a4,0x4,_0x1b30d2[0x24]),_0x1fff81=_0x380738(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x338969,0xb,_0x1b30d2[0x25]),_0x44a336=_0x380738(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x5ddc27,0x10,_0x1b30d2[0x26]),_0x223954=_0x380738(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x17d28f,0x17,_0x1b30d2[0x27]),_0x2f14d5=_0x380738(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x288e53,0x4,_0x1b30d2[0x28]),_0x1fff81=_0x380738(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x35ca65,0xb,_0x1b30d2[0x29]),_0x44a336=_0x380738(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x38931b,0x10,_0x1b30d2[0x2a]),_0x223954=_0x380738(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x3b762d,0x17,_0x1b30d2[0x2b]),_0x2f14d5=_0x380738(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x1052bb,0x4,_0x1b30d2[0x2c]),_0x1fff81=_0x380738(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x54e86f,0xb,_0x1b30d2[0x2d]),_0x44a336=_0x380738(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x1f67e6,0x10,_0x1b30d2[0x2e]),_0x223954=_0x380738(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x5a47b8,0x17,_0x1b30d2[0x2f]),_0x2f14d5=_0x5678b6(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x35ca65,0x6,_0x1b30d2[0x30]),_0x1fff81=_0x5678b6(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x5ddc27,0xa,_0x1b30d2[0x31]),_0x44a336=_0x5678b6(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x2fcd14,0xf,_0x1b30d2[0x32]),_0x223954=_0x5678b6(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x4501b3,0x15,_0x1b30d2[0x33]),_0x2f14d5=_0x5678b6(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x54e86f,0x6,_0x1b30d2[0x34]),_0x1fff81=_0x5678b6(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x38931b,0xa,_0x1b30d2[0x35]),_0x44a336=_0x5678b6(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x17d28f,0xf,_0x1b30d2[0x36]),_0x223954=_0x5678b6(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x2261a4,0x15,_0x1b30d2[0x37]),_0x2f14d5=_0x5678b6(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x1c2a27,0x6,_0x1b30d2[0x38]),_0x1fff81=_0x5678b6(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0x1f67e6,0xa,_0x1b30d2[0x39]),_0x44a336=_0x5678b6(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x3b762d,0xf,_0x1b30d2[0x3a]),_0x223954=_0x5678b6(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x288e53,0x15,_0x1b30d2[0x3b]),_0x2f14d5=_0x5678b6(_0x2f14d5,_0x223954,_0x44a336,_0x1fff81,_0x338969,0x6,_0x1b30d2[0x3c]),_0x1fff81=_0x5678b6(_0x1fff81,_0x2f14d5,_0x223954,_0x44a336,_0xcbfb0f,0xa,_0x1b30d2[0x3d]),_0x44a336=_0x5678b6(_0x44a336,_0x1fff81,_0x2f14d5,_0x223954,_0x5a47b8,0xf,_0x1b30d2[0x3e]),_0x223954=_0x5678b6(_0x223954,_0x44a336,_0x1fff81,_0x2f14d5,_0x1052bb,0x15,_0x1b30d2[0x3f]),_0x3b3cb6[0x0]=_0x3b3cb6[0x0]+_0x2f14d5|0x0,_0x3b3cb6[0x1]=_0x3b3cb6[0x1]+_0x223954|0x0,_0x3b3cb6[0x2]=_0x3b3cb6[0x2]+_0x44a336|0x0,_0x3b3cb6[0x3]=_0x3b3cb6[0x3]+_0x1fff81|0x0;},'_doFinalize':function(){const _0x7f0e4e=_0x998cb4;var _0x2f800d=this['_data'],_0x2fcf36=_0x2f800d[_0x7f0e4e(0x356)],_0x1df54c=this[_0x7f0e4e(0x44d)]*0x8,_0x15a341=_0x2f800d['sigBytes']*0x8;_0x2fcf36[_0x15a341>>>0x5]|=0x80<<0x18-_0x15a341%0x20;var _0xe84d68=_0x3c12c7[_0x7f0e4e(0x3cf)](_0x1df54c/0x100000000),_0x2354b0=_0x1df54c;_0x2fcf36[(_0x15a341+0x40>>>0x9<<0x4)+0xf]=(_0xe84d68<<0x8|_0xe84d68>>>0x18)&0xff00ff|(_0xe84d68<<0x18|_0xe84d68>>>0x8)&0xff00ff00,_0x2fcf36[(_0x15a341+0x40>>>0x9<<0x4)+0xe]=(_0x2354b0<<0x8|_0x2354b0>>>0x18)&0xff00ff|(_0x2354b0<<0x18|_0x2354b0>>>0x8)&0xff00ff00,_0x2f800d[_0x7f0e4e(0x217)]=(_0x2fcf36['length']+0x1)*0x4,this['_process']();for(var _0x364bd7=this[_0x7f0e4e(0x146)],_0x3ac0be=_0x364bd7[_0x7f0e4e(0x356)],_0x775ecd=0x0;_0x775ecd<0x4;_0x775ecd++){var _0x32270c=_0x3ac0be[_0x775ecd];_0x3ac0be[_0x775ecd]=(_0x32270c<<0x8|_0x32270c>>>0x18)&0xff00ff|(_0x32270c<<0x18|_0x32270c>>>0x8)&0xff00ff00;}return _0x364bd7;},'clone':function(){const _0x29c115=_0x998cb4;var _0x2625ad=_0xda80e7['clone'][_0x29c115(0x461)](this);return _0x2625ad[_0x29c115(0x146)]=this[_0x29c115(0x146)]['clone'](),_0x2625ad;}});function _0x16456b(_0x169e74,_0x53e0a5,_0x55e39f,_0x2e90a7,_0x272b84,_0x1225ce,_0x1d3239){var _0x3ab6fd=_0x169e74+(_0x53e0a5&_0x55e39f|~_0x53e0a5&_0x2e90a7)+_0x272b84+_0x1d3239;return(_0x3ab6fd<<_0x1225ce|_0x3ab6fd>>>0x20-_0x1225ce)+_0x53e0a5;}function _0x3778c6(_0x269cce,_0xc51a86,_0x567f9c,_0x27786b,_0x16b6b5,_0x11087f,_0x363b2c){var _0x191d24=_0x269cce+(_0xc51a86&_0x27786b|_0x567f9c&~_0x27786b)+_0x16b6b5+_0x363b2c;return(_0x191d24<<_0x11087f|_0x191d24>>>0x20-_0x11087f)+_0xc51a86;}function _0x380738(_0x12be26,_0x9e4670,_0x42a5c9,_0x2c30ac,_0x186b81,_0x1d85b4,_0x1f9343){var _0x55b338=_0x12be26+(_0x9e4670^_0x42a5c9^_0x2c30ac)+_0x186b81+_0x1f9343;return(_0x55b338<<_0x1d85b4|_0x55b338>>>0x20-_0x1d85b4)+_0x9e4670;}function _0x5678b6(_0x105771,_0x3e07af,_0x174428,_0x18d710,_0x344e46,_0x333d0d,_0x1d5806){var _0x519bdc=_0x105771+(_0x174428^(_0x3e07af|~_0x18d710))+_0x344e46+_0x1d5806;return(_0x519bdc<<_0x333d0d|_0x519bdc>>>0x20-_0x333d0d)+_0x3e07af;}_0x42f000['MD5']=_0xda80e7[_0x998cb4(0x407)](_0x3dc147),_0x42f000[_0x998cb4(0xee)]=_0xda80e7[_0x998cb4(0x136)](_0x3dc147);}(Math),_0x300e79[_0x49031f(0x96)];}));}(lt)),lt['exports'];}var ht={'exports':{}},_t={'exports':{}},Gt;function Qs(){const _0x17a963=_0x3ee1d4;return Gt||(Gt=0x1,function(_0x530f38,_0x5a8188){(function(_0x2cf552,_0x47662a){_0x530f38['exports']=_0x47662a(ae());}(J,function(_0x18b645){return(function(){const _0x54187f=_0x51c9;var _0x34e44a=_0x18b645,_0x400154=_0x34e44a[_0x54187f(0x3b5)],_0x6e3df8=_0x400154[_0x54187f(0x2ed)],_0x4ec7b2=_0x400154[_0x54187f(0x2bb)],_0x2a572f=_0x34e44a[_0x54187f(0xf0)],_0x323de4=[],_0x504610=_0x2a572f[_0x54187f(0x71)]=_0x4ec7b2[_0x54187f(0x3e4)]({'_doReset':function(){const _0x4e8f1e=_0x54187f;this[_0x4e8f1e(0x146)]=new _0x6e3df8[(_0x4e8f1e(0x42a))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x1e5e32,_0x54b741){const _0x113dba=_0x54187f;for(var _0x2cfa3d=this[_0x113dba(0x146)][_0x113dba(0x356)],_0xe76eff=_0x2cfa3d[0x0],_0x5b5b10=_0x2cfa3d[0x1],_0x24159b=_0x2cfa3d[0x2],_0x392637=_0x2cfa3d[0x3],_0x10e4eb=_0x2cfa3d[0x4],_0x3c34d5=0x0;_0x3c34d5<0x50;_0x3c34d5++){if(_0x3c34d5<0x10)_0x323de4[_0x3c34d5]=_0x1e5e32[_0x54b741+_0x3c34d5]|0x0;else{var _0xdc73b4=_0x323de4[_0x3c34d5-0x3]^_0x323de4[_0x3c34d5-0x8]^_0x323de4[_0x3c34d5-0xe]^_0x323de4[_0x3c34d5-0x10];_0x323de4[_0x3c34d5]=_0xdc73b4<<0x1|_0xdc73b4>>>0x1f;}var _0x5a45df=(_0xe76eff<<0x5|_0xe76eff>>>0x1b)+_0x10e4eb+_0x323de4[_0x3c34d5];_0x3c34d5<0x14?_0x5a45df+=(_0x5b5b10&_0x24159b|~_0x5b5b10&_0x392637)+0x5a827999:_0x3c34d5<0x28?_0x5a45df+=(_0x5b5b10^_0x24159b^_0x392637)+0x6ed9eba1:_0x3c34d5<0x3c?_0x5a45df+=(_0x5b5b10&_0x24159b|_0x5b5b10&_0x392637|_0x24159b&_0x392637)-0x70e44324:_0x5a45df+=(_0x5b5b10^_0x24159b^_0x392637)-0x359d3e2a,_0x10e4eb=_0x392637,_0x392637=_0x24159b,_0x24159b=_0x5b5b10<<0x1e|_0x5b5b10>>>0x2,_0x5b5b10=_0xe76eff,_0xe76eff=_0x5a45df;}_0x2cfa3d[0x0]=_0x2cfa3d[0x0]+_0xe76eff|0x0,_0x2cfa3d[0x1]=_0x2cfa3d[0x1]+_0x5b5b10|0x0,_0x2cfa3d[0x2]=_0x2cfa3d[0x2]+_0x24159b|0x0,_0x2cfa3d[0x3]=_0x2cfa3d[0x3]+_0x392637|0x0,_0x2cfa3d[0x4]=_0x2cfa3d[0x4]+_0x10e4eb|0x0;},'_doFinalize':function(){const _0xf9bc68=_0x54187f;var _0x259e3c=this[_0xf9bc68(0x41d)],_0x2ad7bd=_0x259e3c[_0xf9bc68(0x356)],_0x2c826f=this[_0xf9bc68(0x44d)]*0x8,_0xdb302f=_0x259e3c[_0xf9bc68(0x217)]*0x8;return _0x2ad7bd[_0xdb302f>>>0x5]|=0x80<<0x18-_0xdb302f%0x20,_0x2ad7bd[(_0xdb302f+0x40>>>0x9<<0x4)+0xe]=Math[_0xf9bc68(0x3cf)](_0x2c826f/0x100000000),_0x2ad7bd[(_0xdb302f+0x40>>>0x9<<0x4)+0xf]=_0x2c826f,_0x259e3c[_0xf9bc68(0x217)]=_0x2ad7bd[_0xf9bc68(0x156)]*0x4,this['_process'](),this[_0xf9bc68(0x146)];},'clone':function(){const _0x4ea310=_0x54187f;var _0x3fe940=_0x4ec7b2[_0x4ea310(0x397)]['call'](this);return _0x3fe940['_hash']=this[_0x4ea310(0x146)]['clone'](),_0x3fe940;}});_0x34e44a[_0x54187f(0x71)]=_0x4ec7b2[_0x54187f(0x407)](_0x504610),_0x34e44a[_0x54187f(0x46d)]=_0x4ec7b2[_0x54187f(0x136)](_0x504610);}()),_0x18b645['SHA1'];}));}(_t)),_t[_0x17a963(0x4ab)];}var ut={'exports':{}},Yt;function er(){const _0x1a9016=_0x3ee1d4;return Yt||(Yt=0x1,function(_0x20e503,_0x5a54c6){(function(_0xdecea4,_0x132f2a){const _0x190ae0=_0x51c9;_0x20e503[_0x190ae0(0x4ab)]=_0x132f2a(ae());}(J,function(_0x1bae04){(function(){const _0x3385b8=_0x51c9;var _0x55d885=_0x1bae04,_0x217e5d=_0x55d885[_0x3385b8(0x3b5)],_0x6346e0=_0x217e5d[_0x3385b8(0x520)],_0x43961c=_0x55d885[_0x3385b8(0x212)],_0x53a228=_0x43961c[_0x3385b8(0x29c)],_0x19b1c3=_0x55d885[_0x3385b8(0xf0)];_0x19b1c3['HMAC']=_0x6346e0[_0x3385b8(0x3e4)]({'init':function(_0x16921d,_0x41ef79){const _0x4009eb=_0x3385b8;_0x16921d=this['_hasher']=new _0x16921d[(_0x4009eb(0x42a))](),typeof _0x41ef79=='string'&&(_0x41ef79=_0x53a228[_0x4009eb(0x2e7)](_0x41ef79));var _0x33c971=_0x16921d[_0x4009eb(0x18a)],_0x2b05a0=_0x33c971*0x4;_0x41ef79[_0x4009eb(0x217)]>_0x2b05a0&&(_0x41ef79=_0x16921d['finalize'](_0x41ef79)),_0x41ef79['clamp']();for(var _0xa2f28b=this[_0x4009eb(0x11f)]=_0x41ef79[_0x4009eb(0x397)](),_0x1c002c=this[_0x4009eb(0x464)]=_0x41ef79[_0x4009eb(0x397)](),_0x42152d=_0xa2f28b[_0x4009eb(0x356)],_0x46cd05=_0x1c002c[_0x4009eb(0x356)],_0x5a6175=0x0;_0x5a6175<_0x33c971;_0x5a6175++)_0x42152d[_0x5a6175]^=0x5c5c5c5c,_0x46cd05[_0x5a6175]^=0x36363636;_0xa2f28b[_0x4009eb(0x217)]=_0x1c002c[_0x4009eb(0x217)]=_0x2b05a0,this[_0x4009eb(0x1d5)]();},'reset':function(){const _0x3d7fa9=_0x3385b8;var _0x47c88c=this[_0x3d7fa9(0xbd)];_0x47c88c['reset'](),_0x47c88c[_0x3d7fa9(0x431)](this[_0x3d7fa9(0x464)]);},'update':function(_0x10653f){const _0x53936e=_0x3385b8;return this[_0x53936e(0xbd)][_0x53936e(0x431)](_0x10653f),this;},'finalize':function(_0x1e7845){const _0x3189ee=_0x3385b8;var _0x8c1cf1=this['_hasher'],_0x3c8d3a=_0x8c1cf1['finalize'](_0x1e7845);_0x8c1cf1[_0x3189ee(0x1d5)]();var _0x1e241a=_0x8c1cf1['finalize'](this[_0x3189ee(0x11f)][_0x3189ee(0x397)]()[_0x3189ee(0x4bf)](_0x3c8d3a));return _0x1e241a;}});}());}));}(ut)),ut[_0x1a9016(0x4ab)];}var Kt;function Rn(){const _0x44c9d5=_0x3ee1d4;return Kt||(Kt=0x1,function(_0x4a69ce,_0x239ba9){(function(_0x382df7,_0x2e7eb,_0x25c18d){const _0x4b68db=_0x51c9;_0x4a69ce[_0x4b68db(0x4ab)]=_0x2e7eb(ae(),Qs(),er());}(J,function(_0x519fce){const _0x166bd7=_0x51c9;return(function(){const _0x4ebb5c=_0x51c9;var _0x2ad6b5=_0x519fce,_0x9ef4b0=_0x2ad6b5[_0x4ebb5c(0x3b5)],_0x2925ce=_0x9ef4b0[_0x4ebb5c(0x520)],_0x2cddbe=_0x9ef4b0['WordArray'],_0x49e19d=_0x2ad6b5[_0x4ebb5c(0xf0)],_0x595564=_0x49e19d[_0x4ebb5c(0x96)],_0x50b70c=_0x49e19d[_0x4ebb5c(0x394)]=_0x2925ce[_0x4ebb5c(0x3e4)]({'cfg':_0x2925ce['extend']({'keySize':0x80/0x20,'hasher':_0x595564,'iterations':0x1}),'init':function(_0x372b69){const _0x11d3d9=_0x4ebb5c;this[_0x11d3d9(0x439)]=this[_0x11d3d9(0x439)][_0x11d3d9(0x3e4)](_0x372b69);},'compute':function(_0x37cb0b,_0x3a38f7){const _0x51b249=_0x4ebb5c;for(var _0x477c8c,_0x2bc2a5=this[_0x51b249(0x439)],_0x4cd9a5=_0x2bc2a5[_0x51b249(0x205)][_0x51b249(0x26f)](),_0x369c59=_0x2cddbe[_0x51b249(0x26f)](),_0x290f9a=_0x369c59[_0x51b249(0x356)],_0x3d8ffb=_0x2bc2a5[_0x51b249(0x32d)],_0x5b1467=_0x2bc2a5[_0x51b249(0x3b7)];_0x290f9a[_0x51b249(0x156)]<_0x3d8ffb;){_0x477c8c&&_0x4cd9a5[_0x51b249(0x431)](_0x477c8c),_0x477c8c=_0x4cd9a5[_0x51b249(0x431)](_0x37cb0b)[_0x51b249(0x2f1)](_0x3a38f7),_0x4cd9a5[_0x51b249(0x1d5)]();for(var _0x5af3fb=0x1;_0x5af3fb<_0x5b1467;_0x5af3fb++)_0x477c8c=_0x4cd9a5[_0x51b249(0x2f1)](_0x477c8c),_0x4cd9a5[_0x51b249(0x1d5)]();_0x369c59[_0x51b249(0x4bf)](_0x477c8c);}return _0x369c59[_0x51b249(0x217)]=_0x3d8ffb*0x4,_0x369c59;}});_0x2ad6b5[_0x4ebb5c(0x394)]=function(_0x5d0db5,_0x175763,_0x2b75cc){const _0xe8869c=_0x4ebb5c;return _0x50b70c[_0xe8869c(0x26f)](_0x2b75cc)[_0xe8869c(0x437)](_0x5d0db5,_0x175763);};}()),_0x519fce[_0x166bd7(0x394)];}));}(ht)),ht[_0x44c9d5(0x4ab)];}var dt={'exports':{}},qt;function yn(){const _0x3f4d40=_0x3ee1d4;return qt||(qt=0x1,function(_0x3cc9d2,_0x185c22){(function(_0x69eef8,_0xb9a7d,_0x1bc37e){const _0x250d18=_0x51c9;_0x3cc9d2[_0x250d18(0x4ab)]=_0xb9a7d(ae(),Rn());}(J,function(_0x58819d){const _0x4f4663=_0x51c9;_0x58819d[_0x4f4663(0x3b5)]['Cipher']||function(_0x23d179){const _0x445dde=_0x4f4663;var _0x1152d1=_0x58819d,_0x5a0659=_0x1152d1[_0x445dde(0x3b5)],_0x4c6b35=_0x5a0659['Base'],_0x47a1c8=_0x5a0659[_0x445dde(0x2ed)],_0x38d8f1=_0x5a0659[_0x445dde(0x3e8)],_0x49cac3=_0x1152d1[_0x445dde(0x212)];_0x49cac3[_0x445dde(0x29c)];var _0x6b4592=_0x49cac3[_0x445dde(0x147)],_0x5b0dea=_0x1152d1[_0x445dde(0xf0)],_0x4eccbe=_0x5b0dea[_0x445dde(0x394)],_0xfd1f28=_0x5a0659[_0x445dde(0x1d8)]=_0x38d8f1[_0x445dde(0x3e4)]({'cfg':_0x4c6b35[_0x445dde(0x3e4)](),'createEncryptor':function(_0x4fddab,_0x36deb0){const _0x511b08=_0x445dde;return this[_0x511b08(0x26f)](this['_ENC_XFORM_MODE'],_0x4fddab,_0x36deb0);},'createDecryptor':function(_0x36ae59,_0x2e131f){const _0xe8a6bb=_0x445dde;return this[_0xe8a6bb(0x26f)](this[_0xe8a6bb(0x142)],_0x36ae59,_0x2e131f);},'init':function(_0x298a4e,_0x30c867,_0xe21d09){const _0xd83d2f=_0x445dde;this['cfg']=this[_0xd83d2f(0x439)]['extend'](_0xe21d09),this[_0xd83d2f(0xea)]=_0x298a4e,this[_0xd83d2f(0x302)]=_0x30c867,this[_0xd83d2f(0x1d5)]();},'reset':function(){const _0x37c607=_0x445dde;_0x38d8f1[_0x37c607(0x1d5)][_0x37c607(0x461)](this),this[_0x37c607(0x2a9)]();},'process':function(_0x108b19){return this['_append'](_0x108b19),this['_process']();},'finalize':function(_0x9b491d){const _0x2a9347=_0x445dde;_0x9b491d&&this[_0x2a9347(0x3b3)](_0x9b491d);var _0x2382b3=this[_0x2a9347(0x3d0)]();return _0x2382b3;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x28c5f1(_0x3871c5){const _0x2813a2=_0x51c9;return typeof _0x3871c5==_0x2813a2(0x1dc)?_0x1404d1:_0x57685d;}return function(_0x1a7623){return{'encrypt':function(_0x9c2f12,_0x2a4112,_0x38c5fc){const _0x55100e=_0x51c9;return _0x28c5f1(_0x2a4112)[_0x55100e(0x50c)](_0x1a7623,_0x9c2f12,_0x2a4112,_0x38c5fc);},'decrypt':function(_0x5e922b,_0x49c621,_0x112366){const _0x106b2a=_0x51c9;return _0x28c5f1(_0x49c621)[_0x106b2a(0x510)](_0x1a7623,_0x5e922b,_0x49c621,_0x112366);}};};}())});_0x5a0659[_0x445dde(0x2f3)]=_0xfd1f28['extend']({'_doFinalize':function(){const _0x4f2ec2=_0x445dde;var _0x2c23be=this[_0x4f2ec2(0xf8)](!0x0);return _0x2c23be;},'blockSize':0x1});var _0x2c102f=_0x1152d1[_0x445dde(0x29d)]={},_0x23ab1a=_0x5a0659[_0x445dde(0x140)]=_0x4c6b35['extend']({'createEncryptor':function(_0x3cc1c7,_0x3d82a6){const _0x5ed2b9=_0x445dde;return this[_0x5ed2b9(0x11e)][_0x5ed2b9(0x26f)](_0x3cc1c7,_0x3d82a6);},'createDecryptor':function(_0x4640cd,_0x40ad07){const _0x5721a0=_0x445dde;return this[_0x5721a0(0x36f)][_0x5721a0(0x26f)](_0x4640cd,_0x40ad07);},'init':function(_0x4f1d85,_0x17f4d8){const _0x37971d=_0x445dde;this[_0x37971d(0x247)]=_0x4f1d85,this[_0x37971d(0xe8)]=_0x17f4d8;}}),_0x3dabab=_0x2c102f[_0x445dde(0x2c5)]=(function(){const _0x55365d=_0x445dde;var _0x5532ef=_0x23ab1a['extend']();_0x5532ef[_0x55365d(0x11e)]=_0x5532ef[_0x55365d(0x3e4)]({'processBlock':function(_0x55904,_0x835c96){const _0x507985=_0x55365d;var _0x2d8769=this['_cipher'],_0x4d0355=_0x2d8769[_0x507985(0x18a)];_0x3fc4e3['call'](this,_0x55904,_0x835c96,_0x4d0355),_0x2d8769[_0x507985(0xfe)](_0x55904,_0x835c96),this['_prevBlock']=_0x55904[_0x507985(0x160)](_0x835c96,_0x835c96+_0x4d0355);}}),_0x5532ef[_0x55365d(0x36f)]=_0x5532ef[_0x55365d(0x3e4)]({'processBlock':function(_0x1e2b0e,_0x5a7f06){const _0x356129=_0x55365d;var _0xd173da=this[_0x356129(0x247)],_0x51a6be=_0xd173da['blockSize'],_0x4b92c7=_0x1e2b0e[_0x356129(0x160)](_0x5a7f06,_0x5a7f06+_0x51a6be);_0xd173da[_0x356129(0x343)](_0x1e2b0e,_0x5a7f06),_0x3fc4e3['call'](this,_0x1e2b0e,_0x5a7f06,_0x51a6be),this[_0x356129(0x3c3)]=_0x4b92c7;}});function _0x3fc4e3(_0x5403a3,_0x4fb46d,_0x4e0c13){var _0x3740c5,_0x53265e=this['_iv'];_0x53265e?(_0x3740c5=_0x53265e,this['_iv']=_0x23d179):_0x3740c5=this['_prevBlock'];for(var _0x3ca85a=0x0;_0x3ca85a<_0x4e0c13;_0x3ca85a++)_0x5403a3[_0x4fb46d+_0x3ca85a]^=_0x3740c5[_0x3ca85a];}return _0x5532ef;}()),_0x2f8a29=_0x1152d1[_0x445dde(0xfb)]={},_0x40083f=_0x2f8a29[_0x445dde(0x123)]={'pad':function(_0x47a56a,_0x383977){const _0x425869=_0x445dde;for(var _0x390feb=_0x383977*0x4,_0x2f0cd5=_0x390feb-_0x47a56a[_0x425869(0x217)]%_0x390feb,_0x978ae8=_0x2f0cd5<<0x18|_0x2f0cd5<<0x10|_0x2f0cd5<<0x8|_0x2f0cd5,_0x29701c=[],_0xd12fef=0x0;_0xd12fef<_0x2f0cd5;_0xd12fef+=0x4)_0x29701c[_0x425869(0x462)](_0x978ae8);var _0x3e6514=_0x47a1c8[_0x425869(0x26f)](_0x29701c,_0x2f0cd5);_0x47a56a[_0x425869(0x4bf)](_0x3e6514);},'unpad':function(_0xb2ea3b){const _0xa18f11=_0x445dde;var _0x8ecc6f=_0xb2ea3b[_0xa18f11(0x356)][_0xb2ea3b[_0xa18f11(0x217)]-0x1>>>0x2]&0xff;_0xb2ea3b[_0xa18f11(0x217)]-=_0x8ecc6f;}};_0x5a0659['BlockCipher']=_0xfd1f28['extend']({'cfg':_0xfd1f28[_0x445dde(0x439)][_0x445dde(0x3e4)]({'mode':_0x3dabab,'padding':_0x40083f}),'reset':function(){const _0x53ebf2=_0x445dde;var _0x48e8cc;_0xfd1f28['reset'][_0x53ebf2(0x461)](this);var _0x362a45=this['cfg'],_0x4b7f9d=_0x362a45['iv'],_0x5410d2=_0x362a45['mode'];this[_0x53ebf2(0xea)]==this[_0x53ebf2(0x4f5)]?_0x48e8cc=_0x5410d2[_0x53ebf2(0x290)]:(_0x48e8cc=_0x5410d2['createDecryptor'],this['_minBufferSize']=0x1),this[_0x53ebf2(0x3a0)]&&this[_0x53ebf2(0x3a0)][_0x53ebf2(0x436)]==_0x48e8cc?this['_mode']['init'](this,_0x4b7f9d&&_0x4b7f9d['words']):(this['_mode']=_0x48e8cc[_0x53ebf2(0x461)](_0x5410d2,this,_0x4b7f9d&&_0x4b7f9d[_0x53ebf2(0x356)]),this[_0x53ebf2(0x3a0)][_0x53ebf2(0x436)]=_0x48e8cc);},'_doProcessBlock':function(_0x4c6f44,_0x416c9f){const _0x4a1b99=_0x445dde;this[_0x4a1b99(0x3a0)][_0x4a1b99(0x349)](_0x4c6f44,_0x416c9f);},'_doFinalize':function(){const _0xae78d8=_0x445dde;var _0x16e1f9,_0x45d6ea=this[_0xae78d8(0x439)][_0xae78d8(0x13d)];return this[_0xae78d8(0xea)]==this['_ENC_XFORM_MODE']?(_0x45d6ea[_0xae78d8(0xfb)](this['_data'],this[_0xae78d8(0x18a)]),_0x16e1f9=this[_0xae78d8(0xf8)](!0x0)):(_0x16e1f9=this['_process'](!0x0),_0x45d6ea[_0xae78d8(0x175)](_0x16e1f9)),_0x16e1f9;},'blockSize':0x80/0x20});var _0x129f70=_0x5a0659[_0x445dde(0x471)]=_0x4c6b35[_0x445dde(0x3e4)]({'init':function(_0x2d105c){this['mixIn'](_0x2d105c);},'toString':function(_0x3eed58){const _0x32b73a=_0x445dde;return(_0x3eed58||this[_0x32b73a(0xa9)])[_0x32b73a(0xd2)](this);}}),_0x5b805e=_0x1152d1[_0x445dde(0x468)]={},_0xdc79a3=_0x5b805e[_0x445dde(0x316)]={'stringify':function(_0x7fae0b){const _0x33cd52=_0x445dde;var _0x547b26,_0x342f0c=_0x7fae0b['ciphertext'],_0x3072b3=_0x7fae0b['salt'];return _0x3072b3?_0x547b26=_0x47a1c8[_0x33cd52(0x26f)]([0x53616c74,0x65645f5f])[_0x33cd52(0x4bf)](_0x3072b3)[_0x33cd52(0x4bf)](_0x342f0c):_0x547b26=_0x342f0c,_0x547b26[_0x33cd52(0x33f)](_0x6b4592);},'parse':function(_0x27a713){const _0x41972f=_0x445dde;var _0x41b40e,_0x8f2c40=_0x6b4592['parse'](_0x27a713),_0x48090a=_0x8f2c40[_0x41972f(0x356)];return _0x48090a[0x0]==0x53616c74&&_0x48090a[0x1]==0x65645f5f&&(_0x41b40e=_0x47a1c8[_0x41972f(0x26f)](_0x48090a['slice'](0x2,0x4)),_0x48090a[_0x41972f(0x1b1)](0x0,0x4),_0x8f2c40[_0x41972f(0x217)]-=0x10),_0x129f70[_0x41972f(0x26f)]({'ciphertext':_0x8f2c40,'salt':_0x41b40e});}},_0x57685d=_0x5a0659[_0x445dde(0x2a1)]=_0x4c6b35['extend']({'cfg':_0x4c6b35['extend']({'format':_0xdc79a3}),'encrypt':function(_0xd60f78,_0x1d695a,_0x7d572b,_0x4590e5){const _0x3cb251=_0x445dde;_0x4590e5=this[_0x3cb251(0x439)][_0x3cb251(0x3e4)](_0x4590e5);var _0x2ba3a9=_0xd60f78[_0x3cb251(0x290)](_0x7d572b,_0x4590e5),_0x7b8948=_0x2ba3a9[_0x3cb251(0x2f1)](_0x1d695a),_0x5b93a2=_0x2ba3a9[_0x3cb251(0x439)];return _0x129f70[_0x3cb251(0x26f)]({'ciphertext':_0x7b8948,'key':_0x7d572b,'iv':_0x5b93a2['iv'],'algorithm':_0xd60f78,'mode':_0x5b93a2[_0x3cb251(0x29d)],'padding':_0x5b93a2[_0x3cb251(0x13d)],'blockSize':_0xd60f78[_0x3cb251(0x18a)],'formatter':_0x4590e5[_0x3cb251(0x468)]});},'decrypt':function(_0x473100,_0x22c034,_0x5e2f8e,_0x3180e1){const _0x5ed2e8=_0x445dde;_0x3180e1=this[_0x5ed2e8(0x439)][_0x5ed2e8(0x3e4)](_0x3180e1),_0x22c034=this[_0x5ed2e8(0xe5)](_0x22c034,_0x3180e1['format']);var _0x5c8c0b=_0x473100['createDecryptor'](_0x5e2f8e,_0x3180e1)[_0x5ed2e8(0x2f1)](_0x22c034[_0x5ed2e8(0x271)]);return _0x5c8c0b;},'_parse':function(_0x4d30e6,_0x5d6125){const _0x396701=_0x445dde;return typeof _0x4d30e6==_0x396701(0x1dc)?_0x5d6125[_0x396701(0x2e7)](_0x4d30e6,this):_0x4d30e6;}}),_0x1aeb2f=_0x1152d1[_0x445dde(0x2c1)]={},_0x365735=_0x1aeb2f[_0x445dde(0x316)]={'execute':function(_0x59dd47,_0x1700bf,_0x233558,_0x4cd03b,_0x4eafc5){const _0x46aecf=_0x445dde;if(_0x4cd03b||(_0x4cd03b=_0x47a1c8[_0x46aecf(0x1db)](0x40/0x8)),_0x4eafc5)var _0x42875d=_0x4eccbe[_0x46aecf(0x26f)]({'keySize':_0x1700bf+_0x233558,'hasher':_0x4eafc5})[_0x46aecf(0x437)](_0x59dd47,_0x4cd03b);else var _0x42875d=_0x4eccbe[_0x46aecf(0x26f)]({'keySize':_0x1700bf+_0x233558})[_0x46aecf(0x437)](_0x59dd47,_0x4cd03b);var _0x11f1ff=_0x47a1c8[_0x46aecf(0x26f)](_0x42875d[_0x46aecf(0x356)][_0x46aecf(0x160)](_0x1700bf),_0x233558*0x4);return _0x42875d[_0x46aecf(0x217)]=_0x1700bf*0x4,_0x129f70[_0x46aecf(0x26f)]({'key':_0x42875d,'iv':_0x11f1ff,'salt':_0x4cd03b});}},_0x1404d1=_0x5a0659[_0x445dde(0x285)]=_0x57685d[_0x445dde(0x3e4)]({'cfg':_0x57685d[_0x445dde(0x439)][_0x445dde(0x3e4)]({'kdf':_0x365735}),'encrypt':function(_0xe2fe7c,_0x509263,_0x26870b,_0x557fd6){const _0x354e5b=_0x445dde;_0x557fd6=this[_0x354e5b(0x439)][_0x354e5b(0x3e4)](_0x557fd6);var _0x203eb2=_0x557fd6[_0x354e5b(0x2c1)][_0x354e5b(0x363)](_0x26870b,_0xe2fe7c[_0x354e5b(0x32d)],_0xe2fe7c[_0x354e5b(0x2f9)],_0x557fd6[_0x354e5b(0x419)],_0x557fd6['hasher']);_0x557fd6['iv']=_0x203eb2['iv'];var _0x4ad2=_0x57685d[_0x354e5b(0x50c)]['call'](this,_0xe2fe7c,_0x509263,_0x203eb2[_0x354e5b(0x279)],_0x557fd6);return _0x4ad2[_0x354e5b(0x256)](_0x203eb2),_0x4ad2;},'decrypt':function(_0x3e0c30,_0x11798c,_0x40025c,_0x13bb69){const _0x7f3324=_0x445dde;_0x13bb69=this['cfg'][_0x7f3324(0x3e4)](_0x13bb69),_0x11798c=this[_0x7f3324(0xe5)](_0x11798c,_0x13bb69[_0x7f3324(0x468)]);var _0x17aea3=_0x13bb69['kdf'][_0x7f3324(0x363)](_0x40025c,_0x3e0c30[_0x7f3324(0x32d)],_0x3e0c30[_0x7f3324(0x2f9)],_0x11798c[_0x7f3324(0x419)],_0x13bb69[_0x7f3324(0x205)]);_0x13bb69['iv']=_0x17aea3['iv'];var _0x1a19eb=_0x57685d[_0x7f3324(0x510)][_0x7f3324(0x461)](this,_0x3e0c30,_0x11798c,_0x17aea3[_0x7f3324(0x279)],_0x13bb69);return _0x1a19eb;}});}();}));}(dt)),dt[_0x3f4d40(0x4ab)];}(function(_0x5b3f65,_0x4bea22){(function(_0x4c6f77,_0x315db5,_0x37fd67){_0x5b3f65['exports']=_0x315db5(ae(),Tn(),Zs(),Rn(),yn());}(J,function(_0x2ff160){const _0x1cabc1=_0x51c9;return(function(){const _0x232044=_0x51c9;var _0x2c36aa=_0x2ff160,_0x12af9d=_0x2c36aa[_0x232044(0x3b5)],_0x1a2c16=_0x12af9d['BlockCipher'],_0x53c9ae=_0x2c36aa[_0x232044(0xf0)],_0x4193d1=[],_0x19c7ec=[],_0x1b41bb=[],_0xc7c8c9=[],_0x58fceb=[],_0x38dd49=[],_0x4b70c3=[],_0x1f75b8=[],_0x3f17d2=[],_0x3b3dc6=[];(function(){for(var _0x50fed3=[],_0x5aa421=0x0;_0x5aa421<0x100;_0x5aa421++)_0x5aa421<0x80?_0x50fed3[_0x5aa421]=_0x5aa421<<0x1:_0x50fed3[_0x5aa421]=_0x5aa421<<0x1^0x11b;for(var _0x311daf=0x0,_0x11fe16=0x0,_0x5aa421=0x0;_0x5aa421<0x100;_0x5aa421++){var _0x1e5e45=_0x11fe16^_0x11fe16<<0x1^_0x11fe16<<0x2^_0x11fe16<<0x3^_0x11fe16<<0x4;_0x1e5e45=_0x1e5e45>>>0x8^_0x1e5e45&0xff^0x63,_0x4193d1[_0x311daf]=_0x1e5e45,_0x19c7ec[_0x1e5e45]=_0x311daf;var _0x114dd7=_0x50fed3[_0x311daf],_0x21c9a0=_0x50fed3[_0x114dd7],_0x49a6f6=_0x50fed3[_0x21c9a0],_0x3c1f09=_0x50fed3[_0x1e5e45]*0x101^_0x1e5e45*0x1010100;_0x1b41bb[_0x311daf]=_0x3c1f09<<0x18|_0x3c1f09>>>0x8,_0xc7c8c9[_0x311daf]=_0x3c1f09<<0x10|_0x3c1f09>>>0x10,_0x58fceb[_0x311daf]=_0x3c1f09<<0x8|_0x3c1f09>>>0x18,_0x38dd49[_0x311daf]=_0x3c1f09;var _0x3c1f09=_0x49a6f6*0x1010101^_0x21c9a0*0x10001^_0x114dd7*0x101^_0x311daf*0x1010100;_0x4b70c3[_0x1e5e45]=_0x3c1f09<<0x18|_0x3c1f09>>>0x8,_0x1f75b8[_0x1e5e45]=_0x3c1f09<<0x10|_0x3c1f09>>>0x10,_0x3f17d2[_0x1e5e45]=_0x3c1f09<<0x8|_0x3c1f09>>>0x18,_0x3b3dc6[_0x1e5e45]=_0x3c1f09,_0x311daf?(_0x311daf=_0x114dd7^_0x50fed3[_0x50fed3[_0x50fed3[_0x49a6f6^_0x114dd7]]],_0x11fe16^=_0x50fed3[_0x50fed3[_0x11fe16]]):_0x311daf=_0x11fe16=0x1;}}());var _0x3c2279=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x49dd90=_0x53c9ae[_0x232044(0x420)]=_0x1a2c16['extend']({'_doReset':function(){const _0x5fb451=_0x232044;var _0x44d0d9;if(!(this[_0x5fb451(0xe0)]&&this[_0x5fb451(0x182)]===this[_0x5fb451(0x302)])){for(var _0x53456=this[_0x5fb451(0x182)]=this[_0x5fb451(0x302)],_0x2cc26b=_0x53456[_0x5fb451(0x356)],_0x3de4f2=_0x53456[_0x5fb451(0x217)]/0x4,_0x4c5b80=this[_0x5fb451(0xe0)]=_0x3de4f2+0x6,_0x4c63ca=(_0x4c5b80+0x1)*0x4,_0x487552=this[_0x5fb451(0x44e)]=[],_0x320a2e=0x0;_0x320a2e<_0x4c63ca;_0x320a2e++)_0x320a2e<_0x3de4f2?_0x487552[_0x320a2e]=_0x2cc26b[_0x320a2e]:(_0x44d0d9=_0x487552[_0x320a2e-0x1],_0x320a2e%_0x3de4f2?_0x3de4f2>0x6&&_0x320a2e%_0x3de4f2==0x4&&(_0x44d0d9=_0x4193d1[_0x44d0d9>>>0x18]<<0x18|_0x4193d1[_0x44d0d9>>>0x10&0xff]<<0x10|_0x4193d1[_0x44d0d9>>>0x8&0xff]<<0x8|_0x4193d1[_0x44d0d9&0xff]):(_0x44d0d9=_0x44d0d9<<0x8|_0x44d0d9>>>0x18,_0x44d0d9=_0x4193d1[_0x44d0d9>>>0x18]<<0x18|_0x4193d1[_0x44d0d9>>>0x10&0xff]<<0x10|_0x4193d1[_0x44d0d9>>>0x8&0xff]<<0x8|_0x4193d1[_0x44d0d9&0xff],_0x44d0d9^=_0x3c2279[_0x320a2e/_0x3de4f2|0x0]<<0x18),_0x487552[_0x320a2e]=_0x487552[_0x320a2e-_0x3de4f2]^_0x44d0d9);for(var _0x25591f=this[_0x5fb451(0x216)]=[],_0x2506d2=0x0;_0x2506d2<_0x4c63ca;_0x2506d2++){var _0x320a2e=_0x4c63ca-_0x2506d2;if(_0x2506d2%0x4)var _0x44d0d9=_0x487552[_0x320a2e];else var _0x44d0d9=_0x487552[_0x320a2e-0x4];_0x2506d2<0x4||_0x320a2e<=0x4?_0x25591f[_0x2506d2]=_0x44d0d9:_0x25591f[_0x2506d2]=_0x4b70c3[_0x4193d1[_0x44d0d9>>>0x18]]^_0x1f75b8[_0x4193d1[_0x44d0d9>>>0x10&0xff]]^_0x3f17d2[_0x4193d1[_0x44d0d9>>>0x8&0xff]]^_0x3b3dc6[_0x4193d1[_0x44d0d9&0xff]];}}},'encryptBlock':function(_0x129aca,_0x2726a2){const _0x2b5cca=_0x232044;this['_doCryptBlock'](_0x129aca,_0x2726a2,this[_0x2b5cca(0x44e)],_0x1b41bb,_0xc7c8c9,_0x58fceb,_0x38dd49,_0x4193d1);},'decryptBlock':function(_0x308020,_0x58dcd0){var _0x496612=_0x308020[_0x58dcd0+0x1];_0x308020[_0x58dcd0+0x1]=_0x308020[_0x58dcd0+0x3],_0x308020[_0x58dcd0+0x3]=_0x496612,this['_doCryptBlock'](_0x308020,_0x58dcd0,this['_invKeySchedule'],_0x4b70c3,_0x1f75b8,_0x3f17d2,_0x3b3dc6,_0x19c7ec);var _0x496612=_0x308020[_0x58dcd0+0x1];_0x308020[_0x58dcd0+0x1]=_0x308020[_0x58dcd0+0x3],_0x308020[_0x58dcd0+0x3]=_0x496612;},'_doCryptBlock':function(_0x4c211c,_0x79672b,_0x2c90b9,_0x26d9f2,_0x2535a0,_0x3a000b,_0x472bc1,_0x24fe7b){for(var _0x223703=this['_nRounds'],_0xa7b8a=_0x4c211c[_0x79672b]^_0x2c90b9[0x0],_0x5bea45=_0x4c211c[_0x79672b+0x1]^_0x2c90b9[0x1],_0x5caefd=_0x4c211c[_0x79672b+0x2]^_0x2c90b9[0x2],_0x2c30b6=_0x4c211c[_0x79672b+0x3]^_0x2c90b9[0x3],_0x18821e=0x4,_0x520fb3=0x1;_0x520fb3<_0x223703;_0x520fb3++){var _0x70a386=_0x26d9f2[_0xa7b8a>>>0x18]^_0x2535a0[_0x5bea45>>>0x10&0xff]^_0x3a000b[_0x5caefd>>>0x8&0xff]^_0x472bc1[_0x2c30b6&0xff]^_0x2c90b9[_0x18821e++],_0x47472a=_0x26d9f2[_0x5bea45>>>0x18]^_0x2535a0[_0x5caefd>>>0x10&0xff]^_0x3a000b[_0x2c30b6>>>0x8&0xff]^_0x472bc1[_0xa7b8a&0xff]^_0x2c90b9[_0x18821e++],_0x27e7f7=_0x26d9f2[_0x5caefd>>>0x18]^_0x2535a0[_0x2c30b6>>>0x10&0xff]^_0x3a000b[_0xa7b8a>>>0x8&0xff]^_0x472bc1[_0x5bea45&0xff]^_0x2c90b9[_0x18821e++],_0x27f621=_0x26d9f2[_0x2c30b6>>>0x18]^_0x2535a0[_0xa7b8a>>>0x10&0xff]^_0x3a000b[_0x5bea45>>>0x8&0xff]^_0x472bc1[_0x5caefd&0xff]^_0x2c90b9[_0x18821e++];_0xa7b8a=_0x70a386,_0x5bea45=_0x47472a,_0x5caefd=_0x27e7f7,_0x2c30b6=_0x27f621;}var _0x70a386=(_0x24fe7b[_0xa7b8a>>>0x18]<<0x18|_0x24fe7b[_0x5bea45>>>0x10&0xff]<<0x10|_0x24fe7b[_0x5caefd>>>0x8&0xff]<<0x8|_0x24fe7b[_0x2c30b6&0xff])^_0x2c90b9[_0x18821e++],_0x47472a=(_0x24fe7b[_0x5bea45>>>0x18]<<0x18|_0x24fe7b[_0x5caefd>>>0x10&0xff]<<0x10|_0x24fe7b[_0x2c30b6>>>0x8&0xff]<<0x8|_0x24fe7b[_0xa7b8a&0xff])^_0x2c90b9[_0x18821e++],_0x27e7f7=(_0x24fe7b[_0x5caefd>>>0x18]<<0x18|_0x24fe7b[_0x2c30b6>>>0x10&0xff]<<0x10|_0x24fe7b[_0xa7b8a>>>0x8&0xff]<<0x8|_0x24fe7b[_0x5bea45&0xff])^_0x2c90b9[_0x18821e++],_0x27f621=(_0x24fe7b[_0x2c30b6>>>0x18]<<0x18|_0x24fe7b[_0xa7b8a>>>0x10&0xff]<<0x10|_0x24fe7b[_0x5bea45>>>0x8&0xff]<<0x8|_0x24fe7b[_0x5caefd&0xff])^_0x2c90b9[_0x18821e++];_0x4c211c[_0x79672b]=_0x70a386,_0x4c211c[_0x79672b+0x1]=_0x47472a,_0x4c211c[_0x79672b+0x2]=_0x27e7f7,_0x4c211c[_0x79672b+0x3]=_0x27f621;},'keySize':0x100/0x20});_0x2c36aa[_0x232044(0x420)]=_0x1a2c16[_0x232044(0x407)](_0x49dd90);}()),_0x2ff160[_0x1cabc1(0x420)];}));}(bn));var tr=bn['exports'];const nr=Le(tr);var ir=Tn();const zt=Le(ir);var On={'exports':{}};(function(_0x144765,_0x16ab30){(function(_0x7ed79f,_0x15c8ed){const _0x32cde0=_0x51c9;_0x144765[_0x32cde0(0x4ab)]=_0x15c8ed(ae());}(J,function(_0x30424c){const _0x1b53ec=_0x51c9;return _0x30424c[_0x1b53ec(0x212)][_0x1b53ec(0x29c)];}));}(On));var sr=On[_0x3ee1d4(0x4ab)];const rr=Le(sr);var Dn={'exports':{}};(function(_0x4bcd0d,_0x2f0f35){(function(_0x13e2e6,_0x298304){const _0xeb9aa8=_0x51c9;_0x4bcd0d[_0xeb9aa8(0x4ab)]=_0x298304(ae());}(J,function(_0x107acd){const _0x22f16e=_0x51c9;return(function(){const _0x1d648e=_0x51c9;if(typeof ArrayBuffer==_0x1d648e(0xd0)){var _0x12ba96=_0x107acd,_0x47ab7c=_0x12ba96['lib'],_0x2b4790=_0x47ab7c['WordArray'],_0x3ec334=_0x2b4790[_0x1d648e(0x42a)],_0x1bab54=_0x2b4790[_0x1d648e(0x42a)]=function(_0x32dfda){const _0x434655=_0x1d648e;if(_0x32dfda instanceof ArrayBuffer&&(_0x32dfda=new Uint8Array(_0x32dfda)),(_0x32dfda instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x32dfda instanceof Uint8ClampedArray||_0x32dfda instanceof Int16Array||_0x32dfda instanceof Uint16Array||_0x32dfda instanceof Int32Array||_0x32dfda instanceof Uint32Array||_0x32dfda instanceof Float32Array||_0x32dfda instanceof Float64Array)&&(_0x32dfda=new Uint8Array(_0x32dfda['buffer'],_0x32dfda[_0x434655(0x10d)],_0x32dfda[_0x434655(0x1b5)])),_0x32dfda instanceof Uint8Array){for(var _0x1cb205=_0x32dfda[_0x434655(0x1b5)],_0x53c6ca=[],_0x1bdd14=0x0;_0x1bdd14<_0x1cb205;_0x1bdd14++)_0x53c6ca[_0x1bdd14>>>0x2]|=_0x32dfda[_0x1bdd14]<<0x18-_0x1bdd14%0x4*0x8;_0x3ec334[_0x434655(0x461)](this,_0x53c6ca,_0x1cb205);}else _0x3ec334[_0x434655(0x491)](this,arguments);};_0x1bab54[_0x1d648e(0x28d)]=_0x2b4790;}}()),_0x107acd[_0x22f16e(0x3b5)][_0x22f16e(0x2ed)];}));}(Dn));var or=Dn[_0x3ee1d4(0x4ab)];const ar=Le(or);var wn={'exports':{}};(function(_0xb63948,_0x51edb0){(function(_0x3b0a75,_0x4fae4c,_0x3fab82){const _0x471528=_0x51c9;_0xb63948[_0x471528(0x4ab)]=_0x4fae4c(ae(),yn());}(J,function(_0xac3d17){const _0x5ec4fd=_0x51c9;return _0xac3d17[_0x5ec4fd(0xfb)]['NoPadding']={'pad':function(){},'unpad':function(){}},_0xac3d17[_0x5ec4fd(0xfb)][_0x5ec4fd(0x161)];}));}(wn));var cr=wn[_0x3ee1d4(0x4ab)];const lr=Le(cr);function hr(_0x22ea6c,_0x14c36b){const _0x209883=_0x3ee1d4,_0x376677=_0x14c36b-_0x22ea6c['length']%_0x14c36b,_0x4dd139=String[_0x209883(0x428)](_0x376677)[_0x209883(0x1d4)](_0x376677);return _0x22ea6c+_0x4dd139;}function _r(_0x33ecbf,_0x2119bd){const _0x14e23a=_0x3ee1d4,_0x413360=ar[_0x14e23a(0x1db)](0x10),_0x2ff7b6=hr(_0x33ecbf,0x10),_0x302ab4=nr[_0x14e23a(0x50c)](rr[_0x14e23a(0x2e7)](_0x2ff7b6),zt[_0x14e23a(0x2e7)](_0x2119bd),{'iv':_0x413360,'padding':lr});return _0x413360[_0x14e23a(0x4bf)](_0x302ab4['ciphertext'])[_0x14e23a(0x33f)](zt);}function ur(){const _0x5c157f=_0x3ee1d4,_0x572f9e=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0x5c157f(0xaa)];if(_0x572f9e){const _0x530a80={'time':Math[_0x5c157f(0x3cf)](Date[_0x5c157f(0x90)]()/0x3e8),'domain':location[_0x5c157f(0x47e)]};return _r(JSON[_0x5c157f(0xd2)](_0x530a80),_0x572f9e);}}var dr=Object[_0x3ee1d4(0x4ef)],fr=Object[_0x3ee1d4(0xe2)],vr=(_0x14e261,_0x8afad6,_0x2d12cf,_0xfa21d9)=>{for(var _0x44f550=_0xfa21d9>0x1?void 0x0:_0xfa21d9?fr(_0x8afad6,_0x2d12cf):_0x8afad6,_0x4e1d67=_0x14e261['length']-0x1,_0x119c0e;_0x4e1d67>=0x0;_0x4e1d67--)(_0x119c0e=_0x14e261[_0x4e1d67])&&(_0x44f550=(_0xfa21d9?_0x119c0e(_0x8afad6,_0x2d12cf,_0x44f550):_0x119c0e(_0x44f550))||_0x44f550);return _0xfa21d9&&_0x44f550&&dr(_0x8afad6,_0x2d12cf,_0x44f550),_0x44f550;},mr=(_0x3c61fb,_0x414411)=>(_0x139074,_0x3375aa)=>_0x414411(_0x139074,_0x3375aa,_0x3c61fb);let Ye=class{constructor(_0x41accb){const _0x16bb52=_0x3ee1d4;this[_0x16bb52(0x472)]=_0x41accb,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x3c67e9=_0x3ee1d4;this[_0x3c67e9(0x472)]['registerHTTPInterceptor']({'interceptor':(_0x3939c2,_0x65deb)=>{const _0x4ac02f=_0x3c67e9,_0x4529ed=_0x3939c2[_0x4ac02f(0x330)],_0x3928d7=ur();return _0x3928d7&&_0x4529ed['set'](_0x4ac02f(0x449),_0x3928d7),_0x65deb(_0x3939c2);}});}};Ye=vr([mr(0x0,a[_0x3ee1d4(0x4c5)](Q[_0x3ee1d4(0x189)]))],Ye);var Sr=Object['defineProperty'],pr=Object[_0x3ee1d4(0xe2)],gr=(_0x4d2e63,_0x2c634a,_0x27f5a3,_0x490eb0)=>{const _0x2301cf=_0x3ee1d4;for(var _0x19b684=_0x490eb0>0x1?void 0x0:_0x490eb0?pr(_0x2c634a,_0x27f5a3):_0x2c634a,_0x45df39=_0x4d2e63[_0x2301cf(0x156)]-0x1,_0x2e4bd5;_0x45df39>=0x0;_0x45df39--)(_0x2e4bd5=_0x4d2e63[_0x45df39])&&(_0x19b684=(_0x490eb0?_0x2e4bd5(_0x2c634a,_0x27f5a3,_0x19b684):_0x2e4bd5(_0x19b684))||_0x19b684);return _0x490eb0&&_0x19b684&&Sr(_0x2c634a,_0x27f5a3,_0x19b684),_0x19b684;},ft=(_0x51e2af,_0x2f65b4)=>(_0x291faa,_0x292ade)=>_0x2f65b4(_0x291faa,_0x292ade,_0x51e2af);const Ir=[_0x3ee1d4(0x295),'image/jpeg',_0x3ee1d4(0x4fa),_0x3ee1d4(0x38a),_0x3ee1d4(0x13a)],Cr=0x5*0x400*0x400,Er=_0x3ee1d4(0x2b6),br=_0x3ee1d4(0xc3),Tr=_0x3ee1d4(0x11c),Rr='/universer-api/file/{fileID}/sign-url';exports[_0x3ee1d4(0x114)]=class{constructor(_0x512a4e,_0x301af9,_0x4c863f){const _0x6ca994=_0x3ee1d4;I(this,_0x6ca994(0x8d),0x0),I(this,_0x6ca994(0x4be),new A[(_0x6ca994(0x4ad))]()),I(this,_0x6ca994(0x4f0),this[_0x6ca994(0x4be)]),I(this,'_imageSourceCache',new Map()),(this[_0x6ca994(0x472)]=_0x512a4e,this[_0x6ca994(0x320)]=_0x301af9,this[_0x6ca994(0xfd)]=_0x4c863f);}[_0x3ee1d4(0x24c)](_0x5666da){const _0x247d29=_0x3ee1d4;this[_0x247d29(0x8d)]=_0x5666da,this[_0x247d29(0x4be)]['next'](_0x5666da);}[_0x3ee1d4(0x486)](_0x5cd7d2,_0x41fc63){const _0x4382fd=_0x3ee1d4;if(_0x41fc63===ie[_0x4382fd(0x2a3)]['BASE64']){const _0x48e9eb=new Image();return _0x48e9eb[_0x4382fd(0x29f)]=_0x5cd7d2,_0x48e9eb;}return this[_0x4382fd(0x2f8)][_0x4382fd(0x3ad)](_0x5cd7d2);}[_0x3ee1d4(0x3e7)](_0x3491d2,_0x3385df,_0x346801){const _0x1e7670=_0x3ee1d4;_0x3385df===ie[_0x1e7670(0x2a3)][_0x1e7670(0x353)]||_0x346801==null||this[_0x1e7670(0x2f8)]['set'](_0x3491d2,_0x346801);}async[_0x3ee1d4(0x226)](_0x35b7b2){const _0x417d3e=_0x3ee1d4;try{const _0x2a4699=this[_0x417d3e(0x392)](this['_getSignURL'](),''+_0x35b7b2),_0x164015=(await this[_0x417d3e(0x472)][_0x417d3e(0x3ad)](_0x2a4699))[_0x417d3e(0x232)];if(_0x164015[_0x417d3e(0x97)]&&_0x164015[_0x417d3e(0x97)]['code']===an['OK']){const _0x1cf3d1=new URL(_0x164015[_0x417d3e(0x1a5)],this[_0x417d3e(0x1cf)]())[_0x417d3e(0x33f)]();return Promise[_0x417d3e(0x1f0)](_0x1cf3d1);}return Promise[_0x417d3e(0x4d7)](_0x164015[_0x417d3e(0x97)]);}catch(_0x4c9ebd){return Promise[_0x417d3e(0x4d7)](_0x4c9ebd);}}async['saveImage'](_0x1e7764){const _0x5183f0=_0x3ee1d4;let _0x34cc55='';if(!Ir[_0x5183f0(0x19b)](_0x1e7764[_0x5183f0(0x4df)]))return this[_0x5183f0(0x327)](),Promise[_0x5183f0(0x4d7)](new Error(ie[_0x5183f0(0x183)][_0x5183f0(0x2df)]));if(_0x1e7764[_0x5183f0(0xb5)]>Cr)return this[_0x5183f0(0x327)](),Promise[_0x5183f0(0x4d7)](new Error(ie[_0x5183f0(0x183)][_0x5183f0(0x4fc)]));try{const _0x286b98=new FormData();_0x286b98[_0x5183f0(0x487)](_0x5183f0(0x37f),_0x1e7764);const _0x1593f9=this[_0x5183f0(0xfd)][_0x5183f0(0x474)](),_0x204d62=_0x1593f9==null?void 0x0:_0x1593f9[_0x5183f0(0x186)]();if(!_0x204d62)throw new Error('unitId\x20is\x20not\x20found');const _0x502ed3=this['_getUploadFileURL']()+_0x5183f0(0x198)+_0x1e7764[_0x5183f0(0xb5)][_0x5183f0(0x33f)]()+'&source='+cn[_0x5183f0(0xf3)]+_0x5183f0(0x2e8)+encodeURIComponent(_0x204d62),_0x24a6be=await(await fetch(_0x502ed3,{'method':_0x5183f0(0x374),'body':_0x286b98}))['json']();if(typeof _0x24a6be[_0x5183f0(0x35d)]!=_0x5183f0(0x1dc))return this[_0x5183f0(0x327)](),Promise[_0x5183f0(0x4d7)](new Error(ie[_0x5183f0(0x183)][_0x5183f0(0xb1)]));_0x34cc55=_0x24a6be[_0x5183f0(0x35d)];}catch{return this[_0x5183f0(0x327)](),Promise[_0x5183f0(0x4d7)](new Error(ie[_0x5183f0(0x183)][_0x5183f0(0xb1)]));}return new Promise((_0x2d9790,_0x253442)=>{const _0x1bcb5f=_0x5183f0,_0x4d8419=new FileReader();_0x4d8419[_0x1bcb5f(0x415)](_0x1e7764),_0x4d8419[_0x1bcb5f(0x300)]=_0x5d309c=>{const _0x44659d=_0x1bcb5f;var _0x358179;const _0x2152c6=(_0x358179=_0x5d309c['target'])==null?void 0x0:_0x358179['result'];if(_0x2152c6==null){this[_0x44659d(0x327)](),_0x253442(new Error(ie['ImageUploadStatusType'][_0x44659d(0xb1)]));return;}const _0x230535=a[_0x44659d(0x43f)][_0x44659d(0x245)](0x6);_0x2d9790({'imageId':_0x230535,'imageSourceType':ie[_0x44659d(0x2a3)][_0x44659d(0x3f2)],'source':_0x34cc55,'base64Cache':_0x2152c6,'status':ie[_0x44659d(0x183)][_0x44659d(0x165)]}),this['_decreaseWaiting']();};});}[_0x3ee1d4(0x13f)](){const _0x3b0afc=_0x3ee1d4;var _0x5a2915,_0x1d3ac7;const _0x3e77a3=this[_0x3b0afc(0x320)][_0x3b0afc(0x79)](Er),_0x2b25dc=this['_configService'][_0x3b0afc(0x79)](ne);return(_0x1d3ac7=(_0x5a2915=_0x2b25dc==null?void 0x0:_0x2b25dc[_0x3b0afc(0x1da)])!=null?_0x5a2915:_0x3e77a3)!=null?_0x1d3ac7:br;}[_0x3ee1d4(0x26c)](){const _0x26f60e=_0x3ee1d4;var _0x49266b,_0xf24159;const _0x3aef8a=this[_0x26f60e(0x320)][_0x26f60e(0x79)](Tr),_0x3dea89=this[_0x26f60e(0x320)][_0x26f60e(0x79)](ne);return(_0xf24159=(_0x49266b=_0x3dea89==null?void 0x0:_0x3dea89['signUrlServerUrl'])!=null?_0x49266b:_0x3aef8a)!=null?_0xf24159:Rr;}['_getDownloadEndpointURL'](){const _0x2ca8ac=_0x3ee1d4;var _0x21317e;const _0x48096f=this[_0x2ca8ac(0x320)][_0x2ca8ac(0x79)](ne);return(_0x21317e=_0x48096f==null?void 0x0:_0x48096f[_0x2ca8ac(0x400)])!=null?_0x21317e:location[_0x2ca8ac(0x1d0)];}['_replaceFileID'](_0x397029,_0x4ecc91){const _0x1065b8=_0x3ee1d4;return _0x397029['replace'](_0x1065b8(0x516),_0x4ecc91);}['_decreaseWaiting'](){const _0x531808=_0x3ee1d4;this[_0x531808(0x8d)]-=0x1,this[_0x531808(0x4be)][_0x531808(0x261)](this[_0x531808(0x8d)]);}},exports[_0x3ee1d4(0x114)]=gr([ft(0x0,a[_0x3ee1d4(0x4c5)](Q['HTTPService'])),ft(0x1,a['IConfigService']),ft(0x2,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x47a)]))],exports[_0x3ee1d4(0x114)]);var yr=Object['defineProperty'],Or=Object[_0x3ee1d4(0xe2)],Dr=(_0xd3de7d,_0x22ee4e,_0x3302c9,_0x5e0005)=>{const _0x3a2eb1=_0x3ee1d4;for(var _0x3a0590=_0x5e0005>0x1?void 0x0:_0x5e0005?Or(_0x22ee4e,_0x3302c9):_0x22ee4e,_0x2d3a6e=_0xd3de7d[_0x3a2eb1(0x156)]-0x1,_0x10482e;_0x2d3a6e>=0x0;_0x2d3a6e--)(_0x10482e=_0xd3de7d[_0x2d3a6e])&&(_0x3a0590=(_0x5e0005?_0x10482e(_0x22ee4e,_0x3302c9,_0x3a0590):_0x10482e(_0x3a0590))||_0x3a0590);return _0x5e0005&&_0x3a0590&&yr(_0x22ee4e,_0x3302c9,_0x3a0590),_0x3a0590;},Me=(_0x372b30,_0x12df78)=>(_0x43e29a,_0x46478d)=>_0x12df78(_0x43e29a,_0x46478d,_0x372b30);let Ke=class extends a['RxDisposable']{constructor(_0x51e201,_0x5a7387,_0x176792,_0x449609,_0x3a0fc1){const _0x5b7865=_0x3ee1d4;super(),this[_0x5b7865(0x390)]=_0x51e201,this[_0x5b7865(0xfd)]=_0x5a7387,this['_permissionService']=_0x176792,this[_0x5b7865(0x513)]=_0x449609,this[_0x5b7865(0x163)]=_0x3a0fc1,this['_initUnitPermissionChange'](),this[_0x5b7865(0x275)]();}[_0x3ee1d4(0x275)](){const _0x39c118=_0x3ee1d4,_0x4f7eb3=async _0x37d67c=>{const _0x3e0aec=_0x51c9;(await this[_0x3e0aec(0x513)][_0x3e0aec(0x329)](_0x37d67c))['event$']['pipe'](V[_0x3e0aec(0x48a)](_0x39b908=>_0x39b908['eventID']===S[_0x3e0aec(0x2d3)][_0x3e0aec(0x443)]),V[_0x3e0aec(0x1d9)](this[_0x3e0aec(0xc9)]))[_0x3e0aec(0x455)](_0x3c5a90=>{const _0x461bc1=_0x3e0aec,_0x22cacf=_0x3c5a90,{reason:_0x596527}=_0x22cacf[_0x461bc1(0x351)];this[_0x461bc1(0x390)][_0x461bc1(0x3ad)](te['IMessageService'])[_0x461bc1(0x1bb)]({'type':pe[_0x461bc1(0x382)][_0x461bc1(0x1c3)],'content':this[_0x461bc1(0x163)]['t'](_0x461bc1(0x27a))+'('+_0x596527+')'}),this[_0x461bc1(0x2e6)][_0x461bc1(0x411)](new k['WorkbookEditablePermission'](_0x37d67c)['id'],!0x1),this['_collaborationSessionService'][_0x461bc1(0x17d)](_0x37d67c);});};A['merge'](this[_0x39c118(0xfd)][_0x39c118(0x2ad)](a[_0x39c118(0x3f4)][_0x39c118(0x1c8)]),this[_0x39c118(0xfd)]['getTypeOfUnitAdded$'](a[_0x39c118(0x3f4)][_0x39c118(0x357)]))[_0x39c118(0x32f)](V[_0x39c118(0x4c0)](_0x302bc8=>_0x302bc8[_0x39c118(0x186)]()),V[_0x39c118(0x48a)](_0x191c42=>!a[_0x39c118(0x76)](_0x191c42)),V['takeUntil'](this[_0x39c118(0xc9)]))['subscribe'](_0x5aed45=>{_0x4f7eb3(_0x5aed45);});}[_0x3ee1d4(0x2fa)](){const _0x5bdf52=_0x3ee1d4,_0x39a0c4=async _0x3b362d=>{const _0x354296=_0x51c9;(await this[_0x354296(0x513)][_0x354296(0x329)](_0x3b362d))[_0x354296(0x3c9)][_0x354296(0x32f)](V[_0x354296(0x48a)](_0x4a1e82=>_0x4a1e82['eventID']===S['CollaborationEvent'][_0x354296(0x311)]),V[_0x354296(0x1d9)](this[_0x354296(0xc9)]))['subscribe'](_0x1d3ae7=>{const _0x2bc147=_0x354296,_0x66ce32=_0x1d3ae7,{objectId:_0x134568}=_0x66ce32[_0x2bc147(0x351)],_0x3eafc1=this[_0x2bc147(0x390)][_0x2bc147(0x3ad)](Te[_0x2bc147(0x27d)]);_0x134568===_0x3b362d?_0x3eafc1['initWorkbookPermissionChange'](_0x3b362d):_0x3eafc1[_0x2bc147(0xbb)](_0x3b362d,_0x134568);});};A[_0x5bdf52(0x35e)](this['_univerInstanceService'][_0x5bdf52(0x2ad)](a[_0x5bdf52(0x3f4)][_0x5bdf52(0x1c8)]),this[_0x5bdf52(0xfd)][_0x5bdf52(0x2ad)](a[_0x5bdf52(0x3f4)][_0x5bdf52(0x357)]))[_0x5bdf52(0x32f)](V[_0x5bdf52(0x4c0)](_0x5edf82=>_0x5edf82['getUnitId']()),V[_0x5bdf52(0x48a)](_0x274d83=>!a['isInternalEditorID'](_0x274d83)),V[_0x5bdf52(0x1d9)](this[_0x5bdf52(0xc9)]))['subscribe'](_0x2c333c=>{_0x39a0c4(_0x2c333c);});}};Ke=Dr([Me(0x0,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),Me(0x1,a[_0x3ee1d4(0x47a)]),Me(0x2,a[_0x3ee1d4(0x458)]),Me(0x3,a[_0x3ee1d4(0x4c5)](exports[_0x3ee1d4(0x4a4)])),Me(0x4,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x2ae)]))],Ke);var wr=Object[_0x3ee1d4(0x4ef)],Pr=Object['getOwnPropertyDescriptor'],Ur=(_0xdfcf68,_0x2c8b9a,_0x2fbaee,_0x4ba576)=>{const _0x21e1e1=_0x3ee1d4;for(var _0x4117f4=_0x4ba576>0x1?void 0x0:_0x4ba576?Pr(_0x2c8b9a,_0x2fbaee):_0x2c8b9a,_0x20059d=_0xdfcf68[_0x21e1e1(0x156)]-0x1,_0x2c30f9;_0x20059d>=0x0;_0x20059d--)(_0x2c30f9=_0xdfcf68[_0x20059d])&&(_0x4117f4=(_0x4ba576?_0x2c30f9(_0x2c8b9a,_0x2fbaee,_0x4117f4):_0x2c30f9(_0x4117f4))||_0x4117f4);return _0x4ba576&&_0x4117f4&&wr(_0x2c8b9a,_0x2fbaee,_0x4117f4),_0x4117f4;},Xt=(_0x4262d3,_0x56ba5c)=>(_0x2982ad,_0x5f19b7)=>_0x56ba5c(_0x2982ad,_0x5f19b7,_0x4262d3);exports[_0x3ee1d4(0x43c)]=class{constructor(_0x19fc77,_0x399a41){const _0x3b506c=_0x3ee1d4;this[_0x3b506c(0x320)]=_0x19fc77,this[_0x3b506c(0x472)]=_0x399a41;}async['getUnitOnRev'](_0x55fa1e,_0x48621c){const _0x28e2ec=_0x3ee1d4;var _0x1a6f3a;const {unitID:_0x35a4d7,type:_0x561a19,revision:_0xe32b40=0x0}=_0x48621c,_0x1e8b6d=this[_0x28e2ec(0x44f)]()+'/'+_0x561a19+'/unit/'+_0x35a4d7+_0x28e2ec(0x373)+_0xe32b40,_0x342745=(await this[_0x28e2ec(0x472)][_0x28e2ec(0x3ad)](_0x1e8b6d))[_0x28e2ec(0x232)],_0x448f9c=(_0x1a6f3a=_0x342745[_0x28e2ec(0x31e)])==null?void 0x0:_0x1a6f3a[_0x28e2ec(0x4eb)];if(_0x448f9c){const _0x56fa0c=_0x448f9c==null?void 0x0:_0x448f9c[_0x28e2ec(0x2c8)],_0x2ff97f=S[_0x28e2ec(0x13c)][_0x28e2ec(0x36d)](S[_0x28e2ec(0x45e)](_0x56fa0c));_0x448f9c[_0x28e2ec(0x2c8)]=_0x2ff97f,Object[_0x28e2ec(0x2ab)](_0x448f9c['sheets'])['forEach'](([,_0x1ad425])=>{const _0x9ae5b2=_0x28e2ec,_0x4ea3a3=_0x1ad425[_0x9ae5b2(0x2c8)],_0x2d8998=S[_0x9ae5b2(0x13c)]['encode'](S[_0x9ae5b2(0x45e)](_0x4ea3a3));_0x1ad425[_0x9ae5b2(0x2c8)]=_0x2d8998;});}return _0x342745;}async[_0x3ee1d4(0x1d7)](_0x2ec4bf,_0x5f4809){const _0x1f3b7f=_0x3ee1d4,{unitID:_0x11e76e,type:_0x18e52b,blockID:_0x13434d}=_0x5f4809,_0x4172f3=this['_getAPIPrefix']()+'/'+_0x18e52b+_0x1f3b7f(0x40e)+_0x11e76e+_0x1f3b7f(0x404)+_0x13434d;return(await this[_0x1f3b7f(0x472)][_0x1f3b7f(0x3ad)](_0x4172f3))[_0x1f3b7f(0x232)];}async[_0x3ee1d4(0x51c)](_0x479c26,_0x6ba78d){const _0x3914eb=_0x3ee1d4,{unitID:_0x997d62,type:_0x3bdfc6,blockID:_0x1b4d79}=_0x6ba78d,_0x5719d3=this[_0x3914eb(0x218)]()+'/block/'+_0x3bdfc6+_0x3914eb(0x40e)+_0x997d62+_0x3914eb(0x404)+_0x1b4d79;return(await this[_0x3914eb(0x472)][_0x3914eb(0x3ad)](_0x5719d3))[_0x3914eb(0x232)];}async[_0x3ee1d4(0x51a)](_0x3fce98,_0x30ae26){const _0x567a52=_0x3ee1d4,{unitID:_0x184ca8,type:_0x497b4a,from:_0x202a53,to:_0x57c4f4}=_0x30ae26,_0x44435a=this[_0x567a52(0x218)]()+'/'+_0x497b4a+_0x567a52(0x40e)+_0x184ca8+_0x567a52(0x37b)+_0x202a53+_0x567a52(0x23d)+_0x57c4f4;return(await this[_0x567a52(0x472)]['get'](_0x44435a))['body'];}[_0x3ee1d4(0x44f)](){const _0x42ceda=_0x3ee1d4;var _0x347698;return(_0x347698=this[_0x42ceda(0x320)][_0x42ceda(0x79)](Zt))!=null?_0x347698:this[_0x42ceda(0x218)]();}[_0x3ee1d4(0x218)](){const _0x185c5c=_0x3ee1d4;var _0xa9f284,_0x133385;const _0x2965e7=this[_0x185c5c(0x320)][_0x185c5c(0x79)](Jt),_0x5c50a6=this[_0x185c5c(0x320)][_0x185c5c(0x79)](ne);return(_0x133385=(_0xa9f284=_0x5c50a6==null?void 0x0:_0x5c50a6[_0x185c5c(0x3d8)])!=null?_0xa9f284:_0x2965e7)!=null?_0x133385:xn;}async[_0x3ee1d4(0x2d9)](_0x433312,_0x432cf9){const _0x30e684=_0x3ee1d4,_0x4c1f7a=_0x30e684(0x424)+_0x432cf9[_0x30e684(0x4df)]+_0x30e684(0x40e)+_0x432cf9[_0x30e684(0x50d)]+'/resources';return(await this['_httpService']['get'](_0x4c1f7a,{'params':{'resourceId':JSON['stringify'](_0x432cf9['resourceIDs'])}}))[_0x30e684(0x232)];}['saveSnapshot'](){const _0x343122=_0x3ee1d4;throw new Error(_0x343122(0x425));}[_0x3ee1d4(0x120)](){const _0x2ef843=_0x3ee1d4;throw new Error(_0x2ef843(0x425));}[_0x3ee1d4(0xe3)](){const _0x5bbea6=_0x3ee1d4;throw new Error(_0x5bbea6(0x425));}['copyFileMeta'](){const _0x23619c=_0x3ee1d4;throw new Error(_0x23619c(0x425));}[_0x3ee1d4(0x2c3)](){const _0x503e93=_0x3ee1d4;throw new Error(_0x503e93(0x425));}},exports[_0x3ee1d4(0x43c)]=Ur([Xt(0x0,a[_0x3ee1d4(0x153)]),Xt(0x1,a[_0x3ee1d4(0x4c5)](Q[_0x3ee1d4(0x189)]))],exports[_0x3ee1d4(0x43c)]);var Mr=Object[_0x3ee1d4(0x4ef)],Ar=Object[_0x3ee1d4(0xe2)],Nr=(_0xd0ab30,_0x301759,_0x2e3c71,_0x2ac1c9)=>{const _0x3364f3=_0x3ee1d4;for(var _0x5b5fe5=_0x2ac1c9>0x1?void 0x0:_0x2ac1c9?Ar(_0x301759,_0x2e3c71):_0x301759,_0x2d050d=_0xd0ab30[_0x3364f3(0x156)]-0x1,_0x18a9f7;_0x2d050d>=0x0;_0x2d050d--)(_0x18a9f7=_0xd0ab30[_0x2d050d])&&(_0x5b5fe5=(_0x2ac1c9?_0x18a9f7(_0x301759,_0x2e3c71,_0x5b5fe5):_0x18a9f7(_0x5b5fe5))||_0x5b5fe5);return _0x2ac1c9&&_0x5b5fe5&&Mr(_0x301759,_0x2e3c71,_0x5b5fe5),_0x5b5fe5;},Ae=(_0x1e4b44,_0x502ad7)=>(_0x43466b,_0x516d5b)=>_0x502ad7(_0x43466b,_0x516d5b,_0x1e4b44);let gt=class extends a[_0x3ee1d4(0x40a)]{constructor(_0x3ceedc,_0x3069d2,_0x41b2ba,_0x1f01e0,_0x4f3a9e){const _0x5ac81d=_0x3ee1d4;super(_0x3ceedc,_0x3069d2,_0x41b2ba),this[_0x5ac81d(0x414)]=_0x1f01e0,this[_0x5ac81d(0x416)]=_0x4f3a9e;}[_0x3ee1d4(0x12f)](_0x8a1480,_0x3a55bf){const _0x14a06d=_0x3ee1d4,_0x306237=this[_0x14a06d(0x7a)](_0x8a1480);if(_0x306237)try{const _0x46ae41=this[_0x14a06d(0x432)](_0x306237,_0x3a55bf);this[_0x14a06d(0x258)](_0x8a1480,_0x46ae41);}catch(_0x5824fd){this[_0x14a06d(0x416)][_0x14a06d(0x97)]('[CollaborationUndoRedoService]',_0x5824fd),this['_clearUndo'](_0x8a1480);}const _0x4132f9=this[_0x14a06d(0x4b3)](_0x8a1480);if(_0x4132f9)try{const _0x2b43c3=this[_0x14a06d(0x432)](_0x4132f9,_0x3a55bf);this[_0x14a06d(0x346)](_0x8a1480,_0x2b43c3);}catch(_0xb88afa){this['_logService']['error'](_0xb88afa),this[_0x14a06d(0x1b2)](_0x8a1480);}}['_clearUndo'](_0x2ae36e){const _0xe6ccb5=_0x3ee1d4,_0x365c60=this[_0xe6ccb5(0x7a)](_0x2ae36e);_0x365c60&&(_0x365c60[_0xe6ccb5(0x156)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x4c77cf){const _0x2520dc=_0x3ee1d4,_0x3e47ba=this[_0x2520dc(0x4b3)](_0x4c77cf);_0x3e47ba&&(_0x3e47ba['length']=0x0,this['_updateStatus']());}[_0x3ee1d4(0x258)](_0x269ca1,_0x124f3e){const _0x93815e=_0x3ee1d4;this[_0x93815e(0x499)][_0x93815e(0x276)](_0x269ca1,_0x124f3e),this[_0x93815e(0x29b)]();}[_0x3ee1d4(0x346)](_0x3978d8,_0x5f1797){const _0xe1e0b2=_0x3ee1d4;this[_0xe1e0b2(0x3bc)]['set'](_0x3978d8,_0x5f1797),this[_0xe1e0b2(0x29b)]();}[_0x3ee1d4(0x432)](_0x492bef,_0x482a34){const _0x40c3f0=_0x3ee1d4,_0x216df3=[];let _0x3a6e89=_0x482a34,_0xf9a124=_0x482a34;for(let _0x34e15b=_0x492bef[_0x40c3f0(0x156)]-0x1;_0x34e15b>=0x0;_0x34e15b--){const {unitID:_0x4f078f,undoMutations:_0x2fdaab,redoMutations:_0x215e51}=_0x492bef[_0x34e15b],_0x521e1d=this[_0x40c3f0(0x414)][_0x40c3f0(0x1ae)](_0x3a6e89,_0x2fdaab),_0x49052b=this[_0x40c3f0(0x414)]['transformMutationsWithChangeset'](_0xf9a124,_0x215e51);if(S['isTransformMutationsWithChangesetFailure'](_0x521e1d)||S[_0x40c3f0(0x401)](_0x49052b)){this['_logService'][_0x40c3f0(0x97)]('[CollaborationUndoRedoService]',_0x40c3f0(0x10f),_0x521e1d,_0x49052b);break;}_0x3a6e89=_0x521e1d[_0x40c3f0(0x453)],_0xf9a124=_0x49052b[_0x40c3f0(0x453)],_0x216df3[_0x40c3f0(0x462)]({'unitID':_0x4f078f,'undoMutations':_0x521e1d['m2Prime'],'redoMutations':_0x49052b[_0x40c3f0(0x3fb)]});}return _0x216df3[_0x40c3f0(0x3eb)]();}};gt=Nr([Ae(0x0,a['IUniverInstanceService']),Ae(0x1,a[_0x3ee1d4(0x1cc)]),Ae(0x2,a['IContextService']),Ae(0x3,S['ITransformService']),Ae(0x4,a['ILogService'])],gt);class Pn extends a[_0x3ee1d4(0x301)]{constructor(){const _0x5a4a33=_0x3ee1d4;super(),I(this,_0x5a4a33(0x4f2)),this[_0x5a4a33(0x4f2)]=A[_0x5a4a33(0x3d6)](window,_0x5a4a33(0x476))[_0x5a4a33(0x32f)](A[_0x5a4a33(0x1d9)](this[_0x5a4a33(0xc9)]),A['shareReplay'](0x1),A[_0x5a4a33(0x1ab)](void 0x0));}[_0x3ee1d4(0x3e6)](_0xde8d04,_0x379e4a,_0x5bdcf7=!0x1){const _0x1c7ab4=_0x3ee1d4,_0x476d17=new URL(window[_0x1c7ab4(0x181)][_0x1c7ab4(0x1f3)]);_0x476d17[_0x1c7ab4(0x304)]['set'](_0xde8d04,_0x379e4a),_0x5bdcf7?window[_0x1c7ab4(0x37d)][_0x1c7ab4(0x421)]('','',_0x476d17[_0x1c7ab4(0x33f)]()):window['history'][_0x1c7ab4(0x84)]('','',_0x476d17[_0x1c7ab4(0x33f)]());}['removeParam'](_0x4bf76c,_0x110cb2=!0x1){const _0x2dc53b=_0x3ee1d4,_0x5447ab=new URL(window[_0x2dc53b(0x181)][_0x2dc53b(0x1f3)]);_0x5447ab[_0x2dc53b(0x304)][_0x2dc53b(0xd9)](_0x4bf76c),_0x110cb2?window[_0x2dc53b(0x37d)][_0x2dc53b(0x421)]('','',_0x5447ab[_0x2dc53b(0x33f)]()):window[_0x2dc53b(0x37d)][_0x2dc53b(0x84)]('','',_0x5447ab[_0x2dc53b(0x33f)]());}[_0x3ee1d4(0x337)](_0xe18ef){const _0x5c2b55=_0x3ee1d4;var _0x10b4f1;return(_0x10b4f1=new URL(window[_0x5c2b55(0x181)]['href'])[_0x5c2b55(0x304)][_0x5c2b55(0x3ad)](_0xe18ef))!=null?_0x10b4f1:void 0x0;}}var Un=Object['defineProperty'],Lr=Object['getOwnPropertyDescriptor'],xr=(_0x4a53ca,_0x300dde,_0x3d5cbc)=>_0x300dde in _0x4a53ca?Un(_0x4a53ca,_0x300dde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d5cbc}):_0x4a53ca[_0x300dde]=_0x3d5cbc,$r=(_0x5d617f,_0x17d12d,_0x3c88dc,_0x454f0b)=>{for(var _0x5eefd9=_0x454f0b>0x1?void 0x0:_0x454f0b?Lr(_0x17d12d,_0x3c88dc):_0x17d12d,_0x94d117=_0x5d617f['length']-0x1,_0x2ed7f2;_0x94d117>=0x0;_0x94d117--)(_0x2ed7f2=_0x5d617f[_0x94d117])&&(_0x5eefd9=(_0x454f0b?_0x2ed7f2(_0x17d12d,_0x3c88dc,_0x5eefd9):_0x2ed7f2(_0x5eefd9))||_0x5eefd9);return _0x454f0b&&_0x5eefd9&&Un(_0x17d12d,_0x3c88dc,_0x5eefd9),_0x5eefd9;},He=(_0x5448be,_0x277cc2)=>(_0x12bb96,_0x5a3a3f)=>_0x277cc2(_0x12bb96,_0x5a3a3f,_0x5448be),jr=(_0xa6215e,_0x8041e1,_0x16b367)=>xr(_0xa6215e,_0x8041e1+'',_0x16b367);const Hr=_0x3ee1d4(0x490);exports[_0x3ee1d4(0x4db)]=class extends a[_0x3ee1d4(0x16b)]{constructor(_0x43b689=Yn,_0xe7ca67,_0x562783,_0x391a16,_0x31f5e7){const _0x1b2df8=_0x3ee1d4;super(),this[_0x1b2df8(0x430)]=_0x43b689,this['_logService']=_0xe7ca67,this[_0x1b2df8(0x11b)]=_0x562783,this[_0x1b2df8(0x390)]=_0x391a16,this[_0x1b2df8(0x320)]=_0x31f5e7;const {..._0x3781c4}=this['_config'];this[_0x1b2df8(0x320)][_0x1b2df8(0x4cc)](ne,_0x3781c4);}[_0x3ee1d4(0x47c)](){const _0x15cb14=_0x3ee1d4;this[_0x15cb14(0x173)](),this[_0x15cb14(0x213)]();}[_0x3ee1d4(0x450)](){const _0x511272=_0x3ee1d4;a[_0x511272(0x2bd)](this['_injector'],[[Ve]]);}[_0x3ee1d4(0x268)](){const _0x1f08a5=_0x3ee1d4;this[_0x1f08a5(0xa0)]();}[_0x3ee1d4(0x173)](){const _0x378403=_0x3ee1d4;var _0x2569bf,_0x334141,_0x389e97,_0x582fe2;this[_0x378403(0x390)][_0x378403(0x95)](a[_0x378403(0x3e0)])&&this[_0x378403(0x416)][_0x378403(0x97)](_0x378403(0x27f),_0x378403(0x1d6));const _0x13f529=[[a['IUndoRedoService'],{'useClass':gt}],[exports['CollaborationSessionService']],[yt],[Dt,{'useClass':Pn}],[exports[_0x378403(0x2fd)]],[exports['LocalCacheService']],[Q['WebSocketService']],[ke],[Fe],[Be],[We],[Tt],[Ge],[Ye],[bt],[Ke],[Et,{'useClass':(_0x334141=(_0x2569bf=this['_config'])==null?void 0x0:_0x2569bf[_0x378403(0x4f8)])!=null?_0x334141:exports['CollaborationSocketService']}],[S[_0x378403(0x134)],{'useClass':exports[_0x378403(0x43c)]}],[a['IAuthzIoService'],{'useClass':exports[_0x378403(0x230)]}],[ie[_0x378403(0x1eb)],{'useClass':exports[_0x378403(0x114)]}],[exports[_0x378403(0x122)]],[exports['DataLoaderController']],[exports[_0x378403(0x4d0)]],[Ve],[Oe]];(_0x389e97=this['_config'])!=null&&_0x389e97[_0x378403(0x502)]&&_0x13f529[_0x378403(0x462)]([qe,{'useClass':Ti}]),a['registerDependencies'](this[_0x378403(0x390)],a['mergeOverrideWithDependencies'](_0x13f529,(_0x582fe2=this[_0x378403(0x430)])==null?void 0x0:_0x582fe2['override']));}[_0x3ee1d4(0xa0)](){const _0x1e2ba0=_0x3ee1d4;this[_0x1e2ba0(0x4bd)](this[_0x1e2ba0(0x11b)][_0x1e2ba0(0x379)](a[_0x1e2ba0(0x3f4)][_0x1e2ba0(0x357)],[St])),this[_0x1e2ba0(0x4bd)](this[_0x1e2ba0(0x11b)][_0x1e2ba0(0x379)](a[_0x1e2ba0(0x3f4)][_0x1e2ba0(0x1c8)],[pt]));}[_0x3ee1d4(0x213)](){const _0x2e715a=_0x3ee1d4;var _0x4cb671,_0x148f02;this[_0x2e715a(0x390)]['get'](Q[_0x2e715a(0x189)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':Q[_0x2e715a(0x145)]({'maxParallel':0x6})}),(_0x4cb671=this[_0x2e715a(0x430)])!=null&&_0x4cb671[_0x2e715a(0x243)]||this[_0x2e715a(0x390)]['get'](exports[_0x2e715a(0xa4)])[_0x2e715a(0x31d)](),(_0x148f02=this['_config'])!=null&&_0x148f02[_0x2e715a(0x49f)]&&a[_0x2e715a(0x2bd)](this[_0x2e715a(0x390)],[[Ge]]),a[_0x2e715a(0x2bd)](this[_0x2e715a(0x390)],[[Ye],[Oe],[exports[_0x2e715a(0x250)]],[exports[_0x2e715a(0x122)]],[exports[_0x2e715a(0x4d0)]],[Ke]]);}},jr(exports['UniverCollaborationClientPlugin'],_0x3ee1d4(0x4f3),Hr),exports[_0x3ee1d4(0x4db)]=$r([a['DependentOn'](S[_0x3ee1d4(0x234)],Q[_0x3ee1d4(0x251)]),He(0x1,a[_0x3ee1d4(0x25c)]),He(0x2,K[_0x3ee1d4(0x20d)]),He(0x3,a[_0x3ee1d4(0x4c5)](a[_0x3ee1d4(0x3b8)])),He(0x4,a[_0x3ee1d4(0x153)])],exports[_0x3ee1d4(0x4db)]),exports[_0x3ee1d4(0x318)]=En,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=rn,exports['COLLAB_WEB_SOCKET_URL_KEY']=Qt,exports[_0x3ee1d4(0x43d)]=q,exports['CollaborationStatusDisplay']=Cn,exports[_0x3ee1d4(0x296)]=bt,exports['HEARTBEAT_INTERVAL_KEY']=en,exports[_0x3ee1d4(0x22e)]=It,exports['ICollaborationSocketService']=Et,exports[_0x3ee1d4(0x365)]=Dt,exports[_0x3ee1d4(0x46c)]=sn,exports[_0x3ee1d4(0x3ef)]=on,exports[_0x3ee1d4(0x1c9)]=nn,exports[_0x3ee1d4(0x8b)]=$n,exports[_0x3ee1d4(0xc1)]=Jt,exports[_0x3ee1d4(0x37c)]=Zt,exports[_0x3ee1d4(0x479)]=re,exports['SheetCollabCursorShape']=mn,exports[_0x3ee1d4(0x40f)]=Pn,exports[_0x3ee1d4(0x4e9)]=ln,exports[_0x3ee1d4(0x13b)]=hn;
|
1
|
+
'use strict';const _0x37a374=_0x513c;(function(_0x4497b9,_0x53eb29){const _0x134f70=_0x513c,_0x36a86f=_0x4497b9();while(!![]){try{const _0x5524a6=parseInt(_0x134f70(0x40e))/0x1+-parseInt(_0x134f70(0x513))/0x2+parseInt(_0x134f70(0x4c4))/0x3*(-parseInt(_0x134f70(0x30a))/0x4)+-parseInt(_0x134f70(0x5a2))/0x5*(parseInt(_0x134f70(0x594))/0x6)+parseInt(_0x134f70(0x3e5))/0x7*(parseInt(_0x134f70(0x1d5))/0x8)+parseInt(_0x134f70(0x395))/0x9*(parseInt(_0x134f70(0x31e))/0xa)+parseInt(_0x134f70(0x40b))/0xb;if(_0x5524a6===_0x53eb29)break;else _0x36a86f['push'](_0x36a86f['shift']());}catch(_0x59b6db){_0x36a86f['push'](_0x36a86f['shift']());}}}(_0xad98,0x507d8));var Mn=Object['defineProperty'],An=(_0x4e6085,_0x26c063,_0x1f37a6)=>_0x26c063 in _0x4e6085?Mn(_0x4e6085,_0x26c063,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f37a6}):_0x4e6085[_0x26c063]=_0x1f37a6,I=(_0x791700,_0x1accd9,_0x27c854)=>An(_0x791700,typeof _0x1accd9!=_0x37a374(0x4a6)?_0x1accd9+'':_0x1accd9,_0x27c854);Object[_0x37a374(0x55e)](exports,Symbol[_0x37a374(0x614)],{'value':_0x37a374(0x471)});const a=require(_0x37a374(0x5d2)),A=require(_0x37a374(0x63e)),V=require('rxjs/operators'),Se=require('@univerjs/design'),te=require(_0x37a374(0x4d5)),Q=require(_0x37a374(0x51a)),p=require(_0x37a374(0x493)),Nn=require(_0x37a374(0x3d4)),Z=require(_0x37a374(0x51e)),k=require(_0x37a374(0x4de)),K=require(_0x37a374(0x4c3)),Re=require(_0x37a374(0x601)),ie=require('@univerjs/drawing'),wt=require('@univerjs/engine-formula'),Te=require(_0x37a374(0x1f5)),z=require(_0x37a374(0x5c0)),Ln=require(_0x37a374(0x24c)),Jt='SNAPSHOT_SERVER_URL_KEY',xn=_0x37a374(0x1d8),Zt=_0x37a374(0x2a3),$n='SEND_CHANGESET_TIMEOUT',jn=0x7d0,Qt=_0x37a374(0x41a),Hn=_0x37a374(0x64f),en=_0x37a374(0x64c),Bn=0x7530,It=_0x37a374(0x4c9),tn=0x4e20,kn=0x4e20,nn=_0x37a374(0x200),Wn=0x3,sn='LOCAL_CACHE_INTERVAL',Fn=0x3e8,rn=_0x37a374(0x57d),Vn='/universer-api/comb',on=_0x37a374(0x20f),Gn=_0x37a374(0x45c);var an=(_0x2f511e=>(_0x2f511e[_0x2f511e['UNDEFINED']=0x0]=_0x37a374(0x55b),_0x2f511e[_0x2f511e['OK']=0x1]='OK',_0x2f511e[_0x2f511e[_0x37a374(0x575)]=0x2]=_0x37a374(0x575),_0x2f511e[_0x2f511e[_0x37a374(0x303)]=0x3]=_0x37a374(0x303),_0x2f511e[_0x2f511e[_0x37a374(0x2ca)]=0x4]='NOT_FOUND',_0x2f511e[_0x2f511e[_0x37a374(0x59a)]=0x5]=_0x37a374(0x59a),_0x2f511e[_0x2f511e[_0x37a374(0x66d)]=0x6]=_0x37a374(0x66d),_0x2f511e[_0x2f511e[_0x37a374(0x20c)]=0x7]=_0x37a374(0x20c),_0x2f511e[_0x2f511e[_0x37a374(0x326)]=0x8]=_0x37a374(0x326),_0x2f511e[_0x2f511e[_0x37a374(0x3d6)]=0x9]=_0x37a374(0x3d6),_0x2f511e[_0x2f511e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x37a374(0x3c7),_0x2f511e[_0x2f511e[_0x37a374(0x3fb)]=0x1771]=_0x37a374(0x3fb),_0x2f511e[_0x2f511e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x37a374(0x679),_0x2f511e[_0x2f511e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x37a374(0x564),_0x2f511e[_0x2f511e['APPLY_REJECT']=0x1b59]=_0x37a374(0x474),_0x2f511e[_0x2f511e[_0x37a374(0x4e7)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2f511e[_0x2f511e[_0x37a374(0x58e)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2f511e[_0x2f511e[_0x37a374(0x41e)]=0x1b5c]=_0x37a374(0x41e),_0x2f511e[_0x2f511e[_0x37a374(0x60f)]=0x1b5d]=_0x37a374(0x60f),_0x2f511e[_0x2f511e[_0x37a374(0x659)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2f511e[_0x2f511e[_0x37a374(0x446)]=0x2329]=_0x37a374(0x446),_0x2f511e[_0x2f511e[_0x37a374(0x512)]=0x232a]=_0x37a374(0x512),_0x2f511e[_0x2f511e[_0x37a374(0x488)]=0x232b]=_0x37a374(0x488),_0x2f511e[_0x2f511e[_0x37a374(0x4f4)]=0x232c]=_0x37a374(0x4f4),_0x2f511e[_0x2f511e[_0x37a374(0x543)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x2f511e[_0x2f511e[_0x37a374(0x61d)]=0x2711]=_0x37a374(0x61d),_0x2f511e[_0x2f511e[_0x37a374(0x2a4)]=0x2712]=_0x37a374(0x2a4),_0x2f511e[_0x2f511e['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x37a374(0x2d2),_0x2f511e[_0x2f511e[_0x37a374(0x516)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2f511e[_0x2f511e[_0x37a374(0x1d3)]=-0x1]='UNRECOGNIZED',_0x2f511e))(an||{}),se=(_0x4e3218=>(_0x4e3218[_0x4e3218[_0x37a374(0x4be)]=0x0]='UNIVER_UNKNOWN',_0x4e3218[_0x4e3218['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x4e3218[_0x4e3218[_0x37a374(0x362)]=0x2]=_0x37a374(0x362),_0x4e3218[_0x4e3218[_0x37a374(0x2ec)]=0x3]=_0x37a374(0x2ec),_0x4e3218[_0x4e3218[_0x37a374(0x582)]=0x4]='UNIVER_PROJECT',_0x4e3218[_0x4e3218['UNRECOGNIZED']=-0x1]=_0x37a374(0x1d3),_0x4e3218))(se||{}),G=(_0x6ed77b=>(_0x6ed77b[_0x6ed77b[_0x37a374(0x462)]=0x0]=_0x37a374(0x462),_0x6ed77b[_0x6ed77b[_0x37a374(0x297)]=0x1]=_0x37a374(0x297),_0x6ed77b[_0x6ed77b[_0x37a374(0x1cb)]=0x2]=_0x37a374(0x1cb),_0x6ed77b[_0x6ed77b[_0x37a374(0x64b)]=0x3]=_0x37a374(0x64b),_0x6ed77b[_0x6ed77b['INGEST']=0x4]='INGEST',_0x6ed77b[_0x6ed77b[_0x37a374(0x415)]=0x5]=_0x37a374(0x415),_0x6ed77b[_0x6ed77b['RECV']=0x6]=_0x37a374(0x2b6),_0x6ed77b[_0x6ed77b[_0x37a374(0x1d3)]=-0x1]=_0x37a374(0x1d3),_0x6ed77b))(G||{}),Ct=(_0x2a551a=>(_0x2a551a[_0x2a551a['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x2a551a[_0x2a551a['OK']=0x1]='OK',_0x2a551a[_0x2a551a['FAIL']=0x2]=_0x37a374(0x400),_0x2a551a[_0x2a551a[_0x37a374(0x1d3)]=-0x1]=_0x37a374(0x1d3),_0x2a551a))(Ct||{}),cn=(_0x162ca8=>(_0x162ca8[_0x162ca8['Undefined']=0x0]=_0x37a374(0x617),_0x162ca8[_0x162ca8[_0x37a374(0x26e)]=0x1]=_0x37a374(0x26e),_0x162ca8[_0x162ca8[_0x37a374(0x1f6)]=0x2]='HttpExport',_0x162ca8[_0x162ca8['UnitEmbedded']=0x3]='UnitEmbedded',_0x162ca8[_0x162ca8['UnitSnapshot']=0x4]=_0x37a374(0x393),_0x162ca8[_0x162ca8[_0x37a374(0x1d3)]=-0x1]=_0x37a374(0x1d3),_0x162ca8))(cn||{});const ne=_0x37a374(0x3b3),Yn={};function ln(_0x3810ac){const _0x150e35=_0x37a374;var _0x36df5f,_0x4ef96f,_0x4af83a,_0x5c5db7,_0x27275b;const _0x3794d1=_0x3810ac['data'],_0x4081b8=JSON[_0x150e35(0x558)](_0x3794d1);switch(_0x4081b8[_0x150e35(0x3eb)]){case G[_0x150e35(0x415)]:case G[_0x150e35(0x297)]:{const _0x38a470=_0x4081b8[_0x150e35(0x3fc)];return{..._0x4081b8,'data':_0x38a470,'cmd':_0x4081b8[_0x150e35(0x3eb)]};}case G[_0x150e35(0x1cb)]:{const _0x56ab24=_0x4081b8[_0x150e35(0x497)];return{..._0x4081b8,'data':_0x56ab24,'cmd':_0x4081b8[_0x150e35(0x3eb)]};}case G[_0x150e35(0x2b6)]:{const _0xd80beb=_0x4081b8['collaMsg'];switch(_0xd80beb[_0x150e35(0x1d7)]){case p['CollaborationEvent'][_0x150e35(0x3f8)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x36df5f=_0xd80beb[_0x150e35(0x367)])==null?void 0x0:_0x36df5f['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x23b)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x4ef96f=_0xd80beb[_0x150e35(0x43e)])==null?void 0x0:_0x4ef96f['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)]['NEW_CHANGESETS']:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x4af83a=_0xd80beb['newCsEvent'])==null?void 0x0:_0x4af83a['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)]['CHANGESET_REJ']:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x5c5db7=_0xd80beb['csRejEvent'])==null?void 0x0:_0x5c5db7['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x24f)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x27275b=_0xd80beb[_0x150e35(0x571)])==null?void 0x0:_0x27275b['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x2f6)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb['updateCursorEvent']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p['CollaborationEvent'][_0x150e35(0x4e9)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x3cc)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p['CollaborationEvent'][_0x150e35(0x5de)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb['leaveEvent']},'cmd':_0x4081b8['cmd']};case p[_0x150e35(0x521)][_0x150e35(0x4e4)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb['liveShareNewHost']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x2d3)]:case p[_0x150e35(0x521)]['LIVESHARE_OPERATION']:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x25c)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x61c)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x4a2)]},'cmd':_0x4081b8['cmd']};case p[_0x150e35(0x521)][_0x150e35(0x2f0)]:return{..._0x4081b8,'data':_0xd80beb,'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p['CollaborationEvent'][_0x150e35(0x487)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x351)]},'cmd':_0x4081b8['cmd']};case p[_0x150e35(0x521)][_0x150e35(0x4ed)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x5eb)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x544)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x2df)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};default:return _0x4081b8;}}default:return _0x4081b8;}}function hn(_0x20269d){const _0x55398a=_0x37a374;switch(_0x20269d['cmd']){case G[_0x55398a(0x415)]:case G[_0x55398a(0x297)]:return JSON['stringify']({'cmd':_0x20269d[_0x55398a(0x3eb)],'routeKey':_0x20269d[_0x55398a(0x55a)]});case G['INGEST']:{let _0x31ab34;switch(_0x20269d['data']['eventID']){case p[_0x55398a(0x521)][_0x55398a(0x2f6)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x2f6)],'updateCursorEvent':_0x20269d['data']['data']};break;}case p[_0x55398a(0x521)][_0x55398a(0x5de)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x5de)],'leaveEvent':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x4e9)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x4e9)],'joinEvent':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x4e4)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x4e4)],'liveShareNewHost':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x416)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x416)],'liveShareOperation':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x31ab34={'eventID':p[_0x55398a(0x521)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x3aa)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x3aa)],'liveShareRequestHost':_0x20269d[_0x55398a(0x470)]['data']};break;}case p[_0x55398a(0x521)]['LIVESHARE_FETCH_OPERATIONS']:{_0x31ab34={'eventID':p[_0x55398a(0x521)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x31ab34={'eventID':_0x20269d[_0x55398a(0x470)][_0x55398a(0x1d7)]};}return JSON['stringify']({'cmd':_0x20269d['cmd'],'routeKey':_0x20269d[_0x55398a(0x55a)],'collaMsg':_0x31ab34});}case G[_0x55398a(0x1cb)]:return JSON[_0x55398a(0x3df)]({'cmd':_0x20269d[_0x55398a(0x3eb)],'routeKey':_0x20269d['routeKey'],'joinReq':_0x20269d[_0x55398a(0x470)]});case G[_0x55398a(0x64b)]:return JSON[_0x55398a(0x3df)]({'cmd':_0x20269d[_0x55398a(0x3eb)],'routeKey':_0x20269d[_0x55398a(0x55a)],'leaveReq':_0x20269d[_0x55398a(0x470)]});default:throw new Error(_0x55398a(0x4ce));}}var Kn=Object[_0x37a374(0x55e)],qn=Object[_0x37a374(0x4a5)],zn=(_0x2a0d8b,_0x2b98d0,_0x3ea425,_0x17e747)=>{const _0x4b2ace=_0x37a374;for(var _0x5e5aef=_0x17e747>0x1?void 0x0:_0x17e747?qn(_0x2b98d0,_0x3ea425):_0x2b98d0,_0x143148=_0x2a0d8b[_0x4b2ace(0x330)]-0x1,_0x52ba84;_0x143148>=0x0;_0x143148--)(_0x52ba84=_0x2a0d8b[_0x143148])&&(_0x5e5aef=(_0x17e747?_0x52ba84(_0x2b98d0,_0x3ea425,_0x5e5aef):_0x52ba84(_0x5e5aef))||_0x5e5aef);return _0x17e747&&_0x5e5aef&&Kn(_0x2b98d0,_0x3ea425,_0x5e5aef),_0x5e5aef;},De=(_0x2f9dbf,_0x25c204)=>(_0x50d3b6,_0x25e4b1)=>_0x25c204(_0x50d3b6,_0x25e4b1,_0x2f9dbf);const Et=a[_0x37a374(0x3e0)](_0x37a374(0x27c));function Xn(_0x1a0211,_0x11d1d5,_0xdd68d0){const _0x17f7f4=_0x37a374;return _0x1a0211+'/'+_0x11d1d5+_0x17f7f4(0x625)+_0xdd68d0+_0x17f7f4(0x4a4);}exports['CollaborationSocketService']=class extends a[_0x37a374(0x65c)]{constructor(_0x26f201,_0xb14f75,_0x2ca1e4,_0x3d7cb7,_0x525ce8){const _0x23b9ce=_0x37a374;super(),this[_0x23b9ce(0x526)]=_0x26f201,this[_0x23b9ce(0x4e1)]=_0xb14f75,this[_0x23b9ce(0x3e7)]=_0x2ca1e4,this[_0x23b9ce(0x58a)]=_0x3d7cb7,this[_0x23b9ce(0x1c8)]=_0x525ce8;}[_0x37a374(0x256)](_0xb7349){const _0x402a45=_0x37a374,_0x30b83d=this['_ws'][_0x402a45(0x256)](_0xb7349);if(!_0x30b83d)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x226851=new a[(_0x402a45(0x2f8))](),_0x53ceb5=new A[(_0x402a45(0x383))]();_0x226851['add'](_0x30b83d[_0x402a45(0x486)]['subscribe'](_0x171355=>_0x53ceb5[_0x402a45(0x24e)](_0x171355))),_0x226851[_0x402a45(0x63d)](a[_0x402a45(0x219)](()=>_0x53ceb5[_0x402a45(0x1c0)]()));const _0x1a78ce=new A['Subject']();_0x226851['add'](_0x30b83d['error$'][_0x402a45(0x274)](_0x57d8e8=>_0x1a78ce['next'](_0x57d8e8))),_0x226851[_0x402a45(0x63d)](a[_0x402a45(0x219)](()=>_0x1a78ce['complete']()));const _0x463869=new A[(_0x402a45(0x383))]();_0x226851[_0x402a45(0x63d)](_0x30b83d[_0x402a45(0x5a1)]['subscribe'](_0xe90b2d=>{const _0x5e8d58=ln(_0xe90b2d);_0x463869['next'](_0x5e8d58);})),_0x226851[_0x402a45(0x63d)](a[_0x402a45(0x219)](()=>_0x463869[_0x402a45(0x1c0)]()));let _0x2a3509;const _0x5dda44=()=>{const _0x46eefb=_0x402a45;_0x1a78ce[_0x46eefb(0x24e)](new Event(_0x46eefb(0x248))),_0x53ceb5['next'](new CloseEvent(_0x46eefb(0x248))),_0x2a3509[_0x46eefb(0x46c)]();};return _0x2a3509={'memberID':'','close$':_0x53ceb5[_0x402a45(0x483)](),'error$':_0x1a78ce[_0x402a45(0x483)](),'open$':_0x30b83d[_0x402a45(0x547)],'message$':_0x463869[_0x402a45(0x483)](),'send':_0x2cf1c8=>{const _0x21ac6d=_0x402a45;if(_0x2cf1c8[_0x21ac6d(0x3eb)]===G[_0x21ac6d(0x480)]){if(_0x2cf1c8[_0x21ac6d(0x470)][_0x21ac6d(0x1d7)]===p[_0x21ac6d(0x521)][_0x21ac6d(0x380)]){this['_submitChangeset'](_0x2a3509,_0x2cf1c8[_0x21ac6d(0x470)])[_0x21ac6d(0x4bd)](_0x46f259=>{const _0xfaee=_0x21ac6d;this[_0xfaee(0x58a)][_0xfaee(0x237)](_0x46f259),_0x5dda44();});return;}if(_0x2cf1c8['data'][_0x21ac6d(0x1d7)]===p[_0x21ac6d(0x521)][_0x21ac6d(0x3e8)]){const _0x3190d0=_0x2cf1c8[_0x21ac6d(0x470)];this['_fetchMissChangesets'](_0x3190d0)['then'](_0x86535a=>{const _0x554994=_0x21ac6d;_0x463869[_0x554994(0x24e)]({'cmd':G[_0x554994(0x2b6)],'code':Ct['OK'],'routeKey':_0x3190d0[_0x554994(0x470)][_0x554994(0x505)],'routeType':'','data':{'eventID':p[_0x554994(0x521)][_0x554994(0x4af)],'data':{'changesets':_0x86535a}}});})['catch'](_0x208eff=>{const _0x55c5ad=_0x21ac6d;this[_0x55c5ad(0x58a)]['error'](_0x208eff),_0x5dda44();});return;}}_0x30b83d[_0x21ac6d(0x554)](hn(_0x2cf1c8));},'close':()=>{const _0x3e1d69=_0x402a45;_0x30b83d['close'](),_0x226851[_0x3e1d69(0x37c)]();}},_0x2a3509;}async[_0x37a374(0x1d1)](_0x318798,_0x3d2a95){const _0x59b08d=_0x37a374;var _0x5268ec,_0x1b25a4;const {unitType:_0x387356,unitID:_0x33bb5d,changeset:_0x5d2fad}=_0x3d2a95[_0x59b08d(0x470)],_0x2d3a17={'unitID':_0x33bb5d,'memberID':_0x318798[_0x59b08d(0x280)],'type':_0x387356,'changeset':p['parseChangesetToProtocol'](_0x5d2fad)},_0x1b578f=this['_configService']['getConfig'](rn),_0x1835e8=this['_configService'][_0x59b08d(0x37d)](ne),_0x51af98=Xn((_0x1b25a4=(_0x5268ec=_0x1835e8==null?void 0x0:_0x1835e8['collabSubmitChangesetUrl'])!=null?_0x5268ec:_0x1b578f)!=null?_0x1b25a4:Vn,_0x387356,_0x33bb5d);try{await this[_0x59b08d(0x526)]['post'](_0x51af98,{'body':_0x2d3a17});}catch(_0x5c48d0){throw this[_0x59b08d(0x58a)][_0x59b08d(0x237)]('[CollaborationSession]',_0x59b08d(0x52e)),_0x5c48d0;}}async[_0x37a374(0x652)](_0x4a6c30){const _0x4d0026=_0x37a374,{unitID:_0x14dbc6,from:_0x1ae4a4,to:_0x22b6ab,unitType:_0x44fe84}=_0x4a6c30[_0x4d0026(0x470)];return(await this[_0x4d0026(0x1c8)][_0x4d0026(0x525)]({'metadata':void 0x0},{'unitID':_0x14dbc6,'type':_0x44fe84,'from':_0x1ae4a4,'to':_0x22b6ab}))[_0x4d0026(0x48c)];}},exports['CollaborationSocketService']=zn([De(0x0,a[_0x37a374(0x629)](Q['HTTPService'])),De(0x1,a[_0x37a374(0x629)](Q[_0x37a374(0x319)])),De(0x2,a[_0x37a374(0x30b)]),De(0x3,a[_0x37a374(0x217)]),De(0x4,p[_0x37a374(0x5cb)])],exports[_0x37a374(0x23f)]);const Jn=_0x37a374(0x2a7);function Zn(_0x32c6b5){const _0x308fcf=_0x37a374;return JSON[_0x308fcf(0x3df)](_0x32c6b5)[_0x308fcf(0x330)];}class bt{constructor(){const _0x2842b6=_0x37a374;I(this,_0x2842b6(0x41f),new A[(_0x2842b6(0x383))]()),I(this,'commentUpdate$',this[_0x2842b6(0x41f)]['asObservable']());}[_0x37a374(0x600)](_0xe37265){const _0x2e44dd=_0x37a374;this['_commentUpdate$'][_0x2e44dd(0x24e)](_0xe37265);}}var Qn=Object['defineProperty'],ei=Object[_0x37a374(0x4a5)],ti=(_0x41390d,_0x26921a,_0x20784a,_0x539860)=>{const _0x187cae=_0x37a374;for(var _0x2eeedb=_0x539860>0x1?void 0x0:_0x539860?ei(_0x26921a,_0x20784a):_0x26921a,_0x231322=_0x41390d[_0x187cae(0x330)]-0x1,_0xbb5df3;_0x231322>=0x0;_0x231322--)(_0xbb5df3=_0x41390d[_0x231322])&&(_0x2eeedb=(_0x539860?_0xbb5df3(_0x26921a,_0x20784a,_0x2eeedb):_0xbb5df3(_0x2eeedb))||_0x2eeedb);return _0x539860&&_0x2eeedb&&Qn(_0x26921a,_0x20784a,_0x2eeedb),_0x2eeedb;},Pt=(_0x415f66,_0x259763)=>(_0x1b0388,_0x16bc9b)=>_0x259763(_0x1b0388,_0x16bc9b,_0x415f66);exports[_0x37a374(0x33d)]=class extends a['Disposable']{constructor(_0x4e5964,_0x7bf9ac){const _0x39278e=_0x37a374;super(),I(this,_0x39278e(0x633),new Map()),(this[_0x39278e(0x1d4)]=_0x4e5964,this[_0x39278e(0x48d)]=_0x7bf9ac,this[_0x39278e(0x4d6)](a[_0x39278e(0x219)](A['merge'](this[_0x39278e(0x1d4)][_0x39278e(0x44a)](a[_0x39278e(0x22d)][_0x39278e(0x362)])[_0x39278e(0x4d7)](V[_0x39278e(0x323)](_0x29b7f4=>_0x29b7f4['getUnitId']())),this[_0x39278e(0x1d4)]['getTypeOfUnitDisposed$'](a[_0x39278e(0x22d)][_0x39278e(0x619)])[_0x39278e(0x4d7)](V[_0x39278e(0x323)](_0x12d7fe=>_0x12d7fe[_0x39278e(0x615)]())),this[_0x39278e(0x1d4)][_0x39278e(0x44a)](a[_0x39278e(0x22d)][_0x39278e(0x2ec)])[_0x39278e(0x4d7)](V[_0x39278e(0x323)](_0x7d6ecf=>_0x7d6ecf[_0x39278e(0x615)]())))['subscribe'](_0x22147a=>this[_0x39278e(0x241)](_0x22147a)))));}[_0x37a374(0x4aa)](_0x2ca4b6){const _0x584379=_0x37a374;this[_0x584379(0x48d)][_0x584379(0x4aa)](_0x2ca4b6);}[_0x37a374(0x1eb)](){const _0x1ddb63=_0x37a374;return this[_0x1ddb63(0x48d)][_0x1ddb63(0x1eb)]();}['updateMember'](_0x511bc1,_0x2349cc){const _0x40e40d=_0x37a374;let _0x44d5c3=this[_0x40e40d(0x633)][_0x40e40d(0x5bf)](_0x511bc1);_0x44d5c3||(_0x44d5c3=new ni(),this[_0x40e40d(0x633)][_0x40e40d(0x5d1)](_0x511bc1,_0x44d5c3)),_0x44d5c3['updateMember'](_0x2349cc);}[_0x37a374(0x595)](_0x11c31b,_0x4c660a){const _0x195aa2=_0x37a374,_0x4d384b=this[_0x195aa2(0x633)][_0x195aa2(0x5bf)](_0x11c31b);_0x4d384b&&_0x4d384b[_0x195aa2(0x595)](_0x4c660a);}[_0x37a374(0x1c4)](_0x3ed2bc){const _0x572d9e=_0x37a374;return this['_roomMembers'][_0x572d9e(0x5bf)](_0x3ed2bc);}[_0x37a374(0x2f4)](_0x307f88,_0x333947){const _0x295c7a=_0x37a374,_0x4eabd7=this[_0x295c7a(0x633)][_0x295c7a(0x5bf)](_0x307f88);if(_0x4eabd7)return _0x4eabd7[_0x295c7a(0x2f4)](_0x333947);}[_0x37a374(0x241)](_0x114d5f){const _0x5aa892=_0x37a374,_0x5c326b=this[_0x5aa892(0x633)][_0x5aa892(0x5bf)](_0x114d5f);_0x5c326b&&(_0x5c326b[_0x5aa892(0x37c)](),this[_0x5aa892(0x633)][_0x5aa892(0x412)](_0x114d5f));}[_0x37a374(0x37c)](){const _0x4b4e8d=_0x37a374;this['_roomMembers'][_0x4b4e8d(0x278)](_0x25a091=>_0x25a091[_0x4b4e8d(0x37c)]()),this[_0x4b4e8d(0x633)][_0x4b4e8d(0x65a)]();}},exports[_0x37a374(0x33d)]=ti([Pt(0x0,a[_0x37a374(0x662)]),Pt(0x1,a[_0x37a374(0x629)](a[_0x37a374(0x403)]))],exports[_0x37a374(0x33d)]);function _0xad98(){const _0x167986=['randomUUID','_startDocCollabCursor','dispose$','INTERNAL_ERROR','_shouldReportTelemetry','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','RichTextEditingMutation','mutations','telemetry\x20info\x20is\x20not\x20initialized','_schedule','EXCHANGE_SIGN_URL_SERVER_URL_KEY','COLLAB_SUBMIT_CHANGESET_URL','hasher','_onRemoteRetry','handleInsertRangeMoveDown','_saveTaskMap','UNIVER_PROJECT','ILocalStorageService','image/jpeg','permission.title','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','roomMembers$','useDependency','words','_logService','status','_handleJoinEvent','finalize','APPLY_REVISION_CONFILICT','_injector','onTransformState','_colorAssignService','_syncEditingCollabCursor','collab-text-anchor-','3798672UWbuPq','removeMember','Malformed\x20UTF-8\x20data','DependentOn','POST','UniverIcon','UNAUTHENTICATED','Tools','random','none','_getRedoStack','max','SheetCollabCursorShape','message$','5vSCAUQ','_telemetryInfo','arc','SheetPermissionInitController','getUniverSheetInstance','charCodeAt','docStateChange$','getCurrentUnitForType','handleMoveRange','_cachedData','runRefRangeMutations','top','_startTelemetryCollaborationNewChangeset','_socketService','selections','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_getSendChangesetTimeout','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','registerComponent','_awaitingChangeset','objects','AWAITING','target','show','saveImage','SheetSkeletonManagerService','InsertColCommandId','_timeoutTimer','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','get','react','salt','_substituteUndoStack','_localStorageService','_colorIndex','batchAllowed','_selfUnitIDs','$super','NodePositionConvertToCursor','_collabSessionService','init','ISnapshotServerService','event$','_messageService','getCollabEntity$','MoveRangeCommandId','repeat','set','@univerjs/core','_toggleOnline','getRangePointData','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_imageSourceCache','_change$','/object','_initStatusComponent','format','1em','flatMap','createDecryptor','USERS_LEAVE','onPointerMove$','switchMap','CompressMutationService','CollaborationSessionService','_id','_collaborationPaused','_handleLeaveEvent','combineLatest','ImageSourceType','/block/','collaboration.closeRoom','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','updatePermissionObjEvent','_doFinalize','textRanges','roles','_stopTelemetryCollaborationNewChangeset','toggleOffline','_onMessage','resourceIDs','objectID','getUndoRedoMutationParamsCache','readInt32LE','_memberService','_transformSelections','_onCursorUpdate','row','_map','children','includes','BlockCipher','/allowed','_handleHover','onCommentUpdate','@univerjs/docs','encode','onSendChangeset','StreamCipher','_getUploadFileURL','_scheduleCollaborationTimeoutTimer','fromEventSubject','_labelPosition','ranges','_onCombEvent','update','/universer-api/snapshot/','_transformStack','LocalUndoRedoService','APPLY_DUPLICATED','transform','collaboration-session-retry','_transformUndoRedoStack','_clearLocalCache','toStringTag','getUnitId','Vector2','Undefined','font','UNIVER_DOC','DataLoaderController','getAllMembers','LIVESHARE_TERMINATE','YUUMI_UNABLE_LOAD_URL','jiqing500','ACTIVE_UNIT_EVENT_CHANNEL','state','Decryptor','_createHandler','activeSheet$','_HTTPService','/unit/','getSheetObject','defs','focused$','Inject','isTransformMutationsWithChangesetFailure','onTransformChange$','/universer-api/stream/file/upload','interceptor','keySize','updateCollaborator','take','getSkeleton','currentSkeleton$','_roomMembers','_draw','_docSkeleton','PENDING','ceil','_sendHeartbeatTimer','_drawRectRange','baseRev','_anchorDot','reset','add','rxjs','objectType','floor','_transformRemoteChangesetByIMECache','_clearRedo','debug','isInternalEditorID','saveOfflineData','getUnitType','blockSize','onStarting','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','onlyLocal','LEAVE','HEARTBEAT_INTERVAL','RECT','Base64','ws://127.0.0.1:8000/universer-api/comb/connect','RemoveColCommandId','x-univer-host','_fetchMissChangesets','_roomMembers$','size','contains','conflict','_transformHistoryAndStateStack','hasOwnProperty','CONNECTOR_DATA_TOO_LARGE','clear','AUTHZ_URL_KEY','Disposable','on-line-single','drawWith','_throwTelemetryCollaborationNewChangeset','UUID','put','IUniverInstanceService','reqId','_entityInit$','_revisionService','transformChangesets','CommandType','_cursors','_online','IBeforeCloseService','_updateLocalCursor','_minBufferSize','ALREADY_EXISTS','/rev/','triggerDblclick','_docTransformIMECacheService','getTime','AWAITING_WITH_PENDING','Optional','InsertRowCommandId','unit-cache-','method','ColorKit','clone','SNAPSHOT_HAS_BEEN_REMOVED','labelPosition','_registerRenderDependencies','keys','session.room-full','measureText','addObjects','\x0aCurrent:\x20','complete','idSuffix','EmptyMutation','charAt','getRoom','image/bmp','action','key','_snapshotServerService','_localeService','save\x20fail\x20reason\x20is\x20','JOIN','getUnitOnRev','HEADER_MENU','DocCollaborationEntity','updateMember','unshift','_submitChangeset','type','UNRECOGNIZED','_univerInstanceService','1252144UWcvtu','onTransformRemoteChangesetByIMECache','eventID','/universer-api/snapshot','&assign=','online','getActiveRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','buffer','[FetchMissState]','_nRounds','onlineStatus','_transformUndoredo','beginPath','debounceTime','tag','propertyIsEnumerable','result','appendMutation','collab-rect-range-','ONLINE','_removeClearOtherTimer','getCurrentUser','from','getRenderById','&source=','onRemoteRetry','fetch_missing','HEARTBEAT_INTERVAL_KEY','code','deserializeToCombResponse','debounce','@univerjs/sheets-ui','HttpExport','not_collab','_urlService','moveTo','call','awaitingChangeset','DocSelectionManagerService','_localCacheService','_changesetSessionId','loginUrlKey','RETRY_CONNECTING_MAX_COUNT','storage','_iv','equals','?url=','setWaitCount','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','COMPRESS_MUTATION_APPLY','_sender','_event$','processBlock','fromCollab','INVALID_ARGUMENT','_httpService','reduce','LOGIN_URL_KEY','_unitStatus','_collaborationTimeoutTimer','COLLAB_WEB_SOCKET_URL_KEY','registerDependencies','ITransformService','_transformPreviousActiveRange','univer-online-status-title','ILogService','univer-online-status-icon','toDisposable','sendChangesetTimeout','_nDataBytes','name','RegularPolygon','setShapeProps','constructor','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','saveSheetBlock','setConfig','/universer-api/file/{fileID}/sign-url','_onRecvEvent','splice','unit','_docSyncEditingCollabCursorService','awaiting_with_pending','fromCharCode','saveChangeset','getCollabEntity','fillRule','UniverInstanceType','onRemoteRej','HMAC','ciphertext','round','transformStateCache','_lastPointer','_updateState','localeService','sid','error','status$','_unitID','indexOf','CHANGESET_ACK','off-line-single_clip0_910_343','_keyPriorReset','then','CollaborationSocketService','refreshPermission','_removeRoom','min','_onConnectionFailed','has','_transformIMECache','SessionStatus','getDocRanges','connection\x20error','_parse','extend','_cursor','@univerjs/rpc','DocSkeletonManagerService','next','CHANGESET_SHOULD_RETRY','NodePositionConvertToRectRange','undoState','_document','_onUserLeave','_getAPIPrefixPath','_checkMissing','createSocket','push','_getDownloadEndpointURL','getRelativeToViewportCoord','getActiveSheet','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','liveShareOperation','throttleTime','colorChannel1','origin','_transformStateCache','getSheetId','fillText','BufferedBlockAlgorithm','forwardRef','_onOffline','parseProtocolChangeset','all','conflict.title','setUndoRedoMutationParamsCache','_refreshCollabCursors','EffectRefRangId','authzUrl','UniverCollaborationClientPlugin','HttpImport','/resources','transformIMECache','enc','_onRefRangeChange','crypto','subscribe','_getSnapshotAPIPrefix','_eventUnsubscribe','_waitCount','forEach','_initMergeInterceptor','LocalCacheService','/-/object/list','univer-pro.collaboration-client-socket-service','takeUntil','_executeRemoteChangeset','textEncoder','memberID','ERROR_EXCEED_SIZE','resend','substr','construct','_incrementRevisionNumber','mapDocumentTypeToUniverType','getSheetBySheetId','stopTime','randomBytes','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ImageIoService','_socketReady','merge','_acknowledgedAwaitingChangeset','CollaborationStatus','roomMembers','subunit','collabCursorState$','listRoles','fromEvent','_heartbeatTimer','incrementRevOfUnit','HELLO','_append','_isPermissionRej','session.will-retry','current','_candidateSocket','addObject','mapTo','urlChange$','_getScale','withCredentials','replace','SNAPSHOT_URL_KEY','YUUMI_URL_COL_OUT_OF_RANGE','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','InsertSheetMutation','collaboration_new_changeset','_xformMode','JSONX','_handleHeartbeatEvent','transformByState','fillStyle','default','pluginName','_onConflict','HmacMD5','_backgroundColor','handleDeleteRangeMoveLeft','_cipher','removeParam','/object/','RECV','backgroundColor','useCallback','SYNCED','_drawTextRange','session','_initCloseConn','purple300','UniverCollaborationPlugin','[SyncedState]:\x20received\x20rejection.','resize','_disabled','handleIRemoveCol','sheetId','_socket$','CipherParams','verdancy600','deepClone','endRow','_data','NOT_FOUND','HTTPRequest','_onRemoteChangeset','_range','svg','getFocusedUnit','clamp','_DEC_XFORM_MODE','YUUMI_RATE_OVER_LIMIT','LIVESHARE_FETCH_OPERATIONS','sheets','startColumn','_getSignURL','\x20in\x20_schedule.','ImageUploadStatusType','handleInsertRangeMoveRight','Unknown\x20user','bottom','fill','SEND_CHANGESET_TIMEOUT_KEY','searchParams','shouldCloseConn','SerializableCipher','getRandomValues','getColor','black','patch','slice','ThresholdInterceptorFactory','getCollabCursors$','_initEventListeners','syncEditingCollabCursor','failed\x20to\x20apply\x20missed\x20changesets!','save','UNIVER_SLIDE','sequenceExecute','univer-pro.collaboration-client.single-active-unit-service','\x20to\x20','MSG_FOR_ERROR','enableOfflineEditing','_singleActiveUnitService','_updateURLWithCurrentState','getMember','Error','UPDATE_CURSOR','RxDisposable','DisposableCollection','getWorkbookSelections','setAlpha','collabWebSocketUrl','_sessions','_refRangeService','_transitionLocked','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','height','M0\x200H16V16H0z','post','PERMISSION_DENIED','_sessionStatus$','_clearOtherTimers','className','_listenToOfflineEvent','number','auth.needGotoLoginAlert','20FXJbal','IConfigService','ICommandService','getMergeData','setShowComponents','range','href','defIds','COMPRESS_MUTATION_SEND','[OfflineState]:\x20received\x20rejection.','socket\x20open.','concat','[PendingState]:\x20unhandled\x20univer\x20type:\x20','MUTATION','TEXT','WebSocketService','_notificationService','sheetID','originalMeta','sessionStatus','9680RAAhMz','disposeUnit','OFFLINE','INotificationService','_tryReconnect','map','_docTransformStateCacheService','__creator','TOO_MANY_REQUESTS','encryptBlock','_getSheetObject','onTransformIME','state$','isActive','_members','_scene','getUnhiddenWorksheets','__esModule','length','_removeCollabCursors','_shapes','onRemoteAck','FETCH_MISS','unsubscribe','createElement','transformMutation','isArray','path','pushState','{fileID}','iterations','MemberService','collab-client.tooltip.reconnect','WordArray','isTransformMutationsWithChangesetSuccess','useRef','Hasher','WebURLService','getCurrentSelections','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_sheetTransformSelectionsService','ERROR_IMAGE_TYPE','/fetchmissing?from=','_scheduleClearOtherTimer','JOINING','handleInsertCol','location','_substituteRedoStack','offline','HTTPService','_lockTransition','commentUpdateEvent','SheetCollaborationEntity','values','fetchMiss','Plugin','headers','OTHER_CLIENTS_EDITING','isTransformMutationFailure','enableLocalCache','unknown','_onRemoteACK','_getCurrentRevision','MergeInterceptorFactory','_hasher','initWorkbookPermissionChange','body','AuthzIoHttpService','UNIVER_SHEET','WorkbookEditablePermission','snapshot','redoState','_joinRoom','permissionRejEvent','file','SHA1','icon','decrypt','Hex','unitId','DocStateChangeManagerService','_state$','COLORS','execute','_initDependencies','Univer','addImageSourceCache','MD5','bind','\x0aAfter:\x20','_onConnectionOpen','engine','serializeCombRequest','_send','dispose','getConfig','_assignedColors','visibilitychange','SUBMIT_CHANGESET','_mode','Rectangle','Subject','_drawAnchor','_queuedRemoteChangesets','_updateSubUnitFromURLParams','getStateCache','_resendTimeout','error$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','compute','m1Prime','transformUndoRedo','toLowerCase','image/jpg','_saveCache','_hovered','_invKeySchedule','UnitSnapshot','_collabCursorState$','900MvgmGx','[DataLoaderController]','collabStatus.fetchMiss','assign','hostname','DOC_RANGE_TYPE','encodeURIComponent','getVpScrollXYInfoByPosToVp','params','cursorInfo','0\x200\x2016\x2016','_syncEditingCollabCursorService','doc.mutation.rich-text-editing','CollaborationSession','_waitForHeartbeatResponse','_collaborationSessionService','list','getResourcesRequest','kdf','_loadSheet','_process','LIVESHARE_REQUEST_HOST','_socketMessageSubscription','FileId','OpenSSL','shareReplay','connectInjector','_handleEvent','onMissedChangesetFetched','m2Prime','collaboration-client.config','_compressMutationService','startsWith','actions','_anchor','loadOfflineData','_retryConnectingTimer','_replaceFileID','getAncestorScale','exhaustSavingTask','_applyRemoteChangeset','readAsDataURL','IMessageService','generateRandomId','ivSize','getCurrent','_init','_getAnchorBounding','setStateCache','c1Prime','CHANGESET_REVISION_CONFILICT','transformSelections','reverse','getInterceptPoints','hide','joinEvent','IUndoRedoService','handleInsertRow','roomInfos','_resendTimer','width','getImage','setTimeout','@univerjs/telemetry','collab-text-range-','COMPLETION_FINISHED','collabStatus.notCollab','onCommandExecuted','BASE64','algo','SetDocZoomRatioOperation','reconnect','Base','string','stringify','createIdentifier','RETRY_CONNECTING_MAX_COUNT_KEY','duration','title','onStateChange','14KctPhW','rev','_configService','FETCH_MISSING','pad','whenReady','cmd','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getItem','IUIPartsService','_updateCollabCursors','_collabCursorController','disableLocalCache','_remoteChangesetQueue','DocIMEInputManagerService','formatter','subscribeEvent','selection','SheetsSelectionsService','PERMISSION_REJ','_changesetReqId','[CollaborationSession]','SNAPSHOT_INVALID_SNAPSHOT','infoRsp','Shape','blue400','IRemoteInstanceService','FAIL','_initUnitPermissionChange','_docSkeletonManagerService','UserManagerService','isPermissionRej','_pendingMutations','_toggleOffline','_cursorShapes','_updateLocalCache','_updateStatus','Rect','2064007XkaxOW','Error\x20on\x20receiving\x20event','getCoordByCell','559948WvFHrx','addEventListener','_sheetSkeletonManagerService','fetching\x20missing\x20changesets\x20from\x20','delete','#fff','[CollaborationUndoRedoService]','HEARTBEAT','LIVESHARE_OPERATION','registerHTTPInterceptor','replaceState','_onUserJoin','COLLAB_WEB_SOCKET_URL','VIEW_MAIN','encrypt','_beforeCloseService','APPLY_PERMISSION_DENIED','_commentUpdate$','prototype','_clearUndo','color','useObservable','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_initCommandExecutedListener','cursorInfo$','_renderManagerService','DeleteRangeMoveUpCommandId','_getMergeRange','_startCollaboration','byteLength','_setupSubUnitSync','_sendHeartbeat','_onRemoteRejected','onTransformSelections','Tooltip','onlineStatusIcon','mixIn','resolve','filter','_createInitialState','_initStatusListener','find','delay','currentTheme$','SNAPSHOT_SERVER_URL_KEY','concatMap','CONFLICT','signUrlServerUrl','csAckEvent','loadSheet','_showConflictNotification','BehaviorSubject','getTypeOfUnitAdded$','setItem','sessionStatus$','RevisionService','LICENSE_MAX_UNITS_EXCEEDED','exports','_scheduleTimestamp','onRemoteChangeset','getTypeOfUnitDisposed$','LOCAL_CACHE_INTERVAL_KEY','FromArray','mode','onSyncEditingCollabCursor','isEditing','trim','skeleton','closeSession','padding','onTransformRemoteChangesetByStateCache','_createSocket','lib','SnapshotServerOverHTTPService','_textBubble','IPermissionService','ERROR_IMAGE','_getAPIPrefix','/universer-api/oidc/authpage','makeDirty','ICollaborationSocketService','transformMutationsWithChangeset','/collaborator','getUnit','UNKNOWN_CMD','_disableEditing','createEncryptor','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','CHANGESET_REJ','#FFF','getUnitStatus$','decryptBlock','SetTextSelectionsOperation','_hash','close','byteOffset','userID','IImageIoService','data','Module','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_startSheetCollabCursor','APPLY_REJECT','url','override','history','_permissionService','univer-online-status','_loadDoc','assignAColorForMemberID','_color','0\x200\x2017\x2016','_listenToOnlineEvent','attrs','INGEST','UNIVER_COLLABORATION_CLIENT_PLUGIN','Workbook','asObservable','collabStatus.syncing','getMemberID','close$','COMMENT_UPDATE','LICENSE_IMPORT_SIZE_EXCEEDED','awaiting','object','_commentService','changesets','_userManagerService','getParam','_commandService','text','clipPath','abs','@univerjs-pro/collaboration','_clearHeartbeatTimer','_onLocalMutation','registerRefRange','joinRsp','newValue','_docTransformSelectionsService','_prevBlock','_tryEnsureSocket','freeze','enableSingleActiveInstanceLock','updateOfflineData','IContextService','_ensureSubject','_initRequestHeader','liveShareNewHost','NOT_COLLAB','/new_changes','getOwnPropertyDescriptor','symbol','...','toggleOnline','_clearTimeoutTimer','setCurrentUser','_socket','ReplaySubject','HmacSHA1','apply','PSEUDO_FETCH_MISSING_RESULT','_createHmacHelper','_name','handleIRemoveRow','DesktopCollaborationStatusDisplayController','_getLoginPath','_uiPartsService','getCurrentRevOfUnit','Injector','objectActions','[UniverCollaborationClientPlugin]','_createHelper','createInstance','collabStatus.conflict','catch','UNIVER_UNKNOWN','pending','MessageType','displayName','_cursorInfo$','@univerjs/engine-render','34929lwaBJu','Encryptor','CollaborationEntity','url(#$1','EvpKDF','HEARTBEAT_TIMEOUT','_hideTimer','_retryCount','putCollaborators','msCrypto','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_setupBeforeClosingHandler','_hover','Utf8','toString','updatePermissionPoint','hovered','@univerjs/ui','disposeWithMe','pipe','translate(.97)','_getSaveTimeout','_onJoinRoomEvent','setInterval','clearTimeout','_onCursorDelete','@univerjs/sheets','onPointerLeave$','now','_ws','loadDoc','evenodd','LIVESHARE_NEW_HOST','_key','create','APPLY_NON_SEQUENTIAL_REVISION','_status$','USERS_ENTER','isTransformChangesetsSuccess','_ENC_XFORM_MODE','lineTo','UPDATE_PERMISSION_OBJ','OnLineSingle','_scheduleSaving','allowed','toRgbString','UniverNetworkPlugin','session.collaboration-timeout','LICENSE_EXPORT_SIZE_EXCEEDED','touchDependencies','_handler','url(#off-line-single_clip0_910_343)','setParam','_rescheduleHeartbeat','red300','transformStack\x20failed!','div','_config','DeleteRangeMoveLeftCommandId','_getCtorByUniverType','editingUnit','requireSession','OffLineSingle','fetchThroughInterceptors','collaborators','unitID','_telemetryService','BuiltInUIPart','/universer-api/authz','_docStateChangeManagerService','downloadEndpointUrl','saveSnapshot','responseType','executeCommand','serializeRangeWithSheet','_scheduleHeartbeat','every','CollaborationController','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','272812WmwiuB','getSheetBlock','_undoStacks','YUUMI_SUBSCRIPTION_NOT_FOUND','_sendingTimer','_clearScheduledTask','endColumn','@univerjs/network','univerjs-icon\x20univerjs-icon-','_getUndoStack','AES','@univerjs/docs-ui','_doReset','_initResize','CollaborationEvent','_session','BlockCipherMode','_state','fetchMissingChangesets','_http','retryConnectingInterval','Could\x20not\x20dynamically\x20require\x20\x22','_entities','_snapshotService','with','_type','pauseCollaboration','submit\x20changeset\x20error!','LocaleService','entries','SetSelectionsOperation','unitId\x20is\x20not\x20found','substring','c2Prime','_render','_themeService','_doCryptBlock','SetWorksheetActivateCommand','Pkcs7','[PendingState]:\x20received\x20rejection.','IDLE','[CollaborationEntity]','transformRemoteChangeset','NoPadding','InsertRangeMoveRightCommandId','requestParams','_transformService','_iKey','LICENSE_DISTRO_REJECTED','SHOULD_CLOSE_CONN','reject','revision','open$','registerRenderModule','sin','IAuthzIoService','restore','sigBytes','Warning','_undoRedoService','_clearCollaborationTimeoutTimer','_keySchedule','TEXT_RANGE_LAYER_INDEX','_decreaseWaiting','cfg','send','popstate','function','_resendWithTimeout','parse','ThemeService','routeKey','UNDEFINED','?size=','onMissingChangesets','defineProperty','IRenderManagerService','_registerDependencies','subUnitId','_instanceService','_transformRemoteChangesetByStateCache','ENSURE_SNAPSHOT_EXECUTION','getValue','Cipher','_unitOnClients','onMouseMove','_unlockTransition','xlink:href','_context','_createInitialStateImpl','findNodePositionByCharIndex','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','collaboratorID','json','csShouldRetryEvent'];_0xad98=function(){return _0x167986;};return _0xad98();}function _0x513c(_0x3b90a3,_0x2a7010){const _0xad9819=_0xad98();return _0x513c=function(_0x513c0e,_0x53b00f){_0x513c0e=_0x513c0e-0x1c0;let _0x338fd2=_0xad9819[_0x513c0e];return _0x338fd2;},_0x513c(_0x3b90a3,_0x2a7010);}class ni extends a[_0x37a374(0x65c)]{constructor(){super(...arguments),I(this,'_members',new Map());}[_0x37a374(0x37c)](){const _0x2993df=_0x37a374;this['_members'][_0x2993df(0x65a)]();}[_0x37a374(0x1cf)](_0x20d419){const _0x3780c2=_0x37a374;this['_members'][_0x3780c2(0x5d1)](_0x20d419[_0x3780c2(0x280)],_0x20d419);}[_0x37a374(0x595)](_0x2ad61d){const _0x394e7e=_0x37a374;this[_0x394e7e(0x32c)]['delete'](_0x2ad61d);}[_0x37a374(0x2f4)](_0x2b56eb){const _0x249fc9=_0x37a374;return this[_0x249fc9(0x32c)][_0x249fc9(0x5bf)](_0x2b56eb);}[_0x37a374(0x61b)](){const _0x5a099e=_0x37a374;return Array['from'](this[_0x5a099e(0x32c)][_0x5a099e(0x353)]());}}var ii=Object[_0x37a374(0x55e)],si=Object[_0x37a374(0x4a5)],ri=(_0x4e2641,_0x2510e2,_0x17ac4f,_0x33fdff)=>{const _0x4b1b5a=_0x37a374;for(var _0x28134c=_0x33fdff>0x1?void 0x0:_0x33fdff?si(_0x2510e2,_0x17ac4f):_0x2510e2,_0x4872ee=_0x4e2641[_0x4b1b5a(0x330)]-0x1,_0x25700e;_0x4872ee>=0x0;_0x4872ee--)(_0x25700e=_0x4e2641[_0x4872ee])&&(_0x28134c=(_0x33fdff?_0x25700e(_0x2510e2,_0x17ac4f,_0x28134c):_0x25700e(_0x28134c))||_0x28134c);return _0x33fdff&&_0x28134c&&ii(_0x2510e2,_0x17ac4f,_0x28134c),_0x28134c;},de=(_0x3ee6a2,_0x71b381)=>(_0x213af1,_0x2c90f4)=>_0x71b381(_0x213af1,_0x2c90f4,_0x3ee6a2),re=(_0xb039fd=>(_0xb039fd[_0xb039fd[_0x37a374(0x53b)]=0x0]=_0x37a374(0x53b),_0xb039fd[_0xb039fd[_0x37a374(0x34a)]=0x1]='JOINING',_0xb039fd[_0xb039fd[_0x37a374(0x320)]=0x2]=_0x37a374(0x320),_0xb039fd[_0xb039fd['ONLINE']=0x3]=_0x37a374(0x1e9),_0xb039fd))(re||{});exports[_0x37a374(0x3a2)]=class extends a['RxDisposable']{constructor(_0x2e553b,_0x1be38a,_0x1155bd,_0x5d771d,_0x57bb3d,_0x3ebd73,_0x2833bd,_0x58db81,_0x424afe,_0x257afe){const _0x4a7cb7=_0x37a374;super(),I(this,_0x4a7cb7(0x304),new A[(_0x4a7cb7(0x441))](0x0)),I(this,_0x4a7cb7(0x444),this[_0x4a7cb7(0x304)][_0x4a7cb7(0x483)]()),I(this,_0x4a7cb7(0x209),new A[(_0x4a7cb7(0x383))]()),I(this,_0x4a7cb7(0x5cc),this[_0x4a7cb7(0x209)][_0x4a7cb7(0x483)]()),I(this,_0x4a7cb7(0x4ab)),I(this,_0x4a7cb7(0x3ab)),I(this,_0x4a7cb7(0x211)),I(this,'_shouldReportTelemetry',!0x1),I(this,'_telemetryInfo',null),(this['_unitID']=_0x2e553b,this[_0x4a7cb7(0x58a)]=_0x1155bd,this[_0x4a7cb7(0x41d)]=_0x5d771d,this[_0x4a7cb7(0x5cd)]=_0x57bb3d,this[_0x4a7cb7(0x3e7)]=_0x3ebd73,this[_0x4a7cb7(0x1c9)]=_0x2833bd,this[_0x4a7cb7(0x5f6)]=_0x58db81,this[_0x4a7cb7(0x48b)]=_0x424afe,this[_0x4a7cb7(0x506)]=_0x257afe,this[_0x4a7cb7(0x576)]=!!this[_0x4a7cb7(0x506)],_0x1be38a[_0x4a7cb7(0x4d7)](A[_0x4a7cb7(0x27d)](this['dispose$']))['subscribe'](_0xec4020=>{const _0x4d3563=_0x4a7cb7;var _0x5d41a2;typeof _0xec4020>'u'||(this['_socket']=_0xec4020,_0xec4020?(this[_0x4d3563(0x366)](_0xec4020),this[_0x4d3563(0x3ab)]=_0xec4020['message$'][_0x4d3563(0x274)](_0xcec7bd=>{const _0x3ef83e=_0x4d3563;_0xcec7bd['routeKey']===this[_0x3ef83e(0x239)]&&this[_0x3ef83e(0x60a)](_0xcec7bd);})):(this[_0x4d3563(0x65f)](),this[_0x4d3563(0x304)][_0x4d3563(0x24e)](0x2),(_0x5d41a2=this['_socketMessageSubscription'])==null||_0x5d41a2[_0x4d3563(0x335)](),this[_0x4d3563(0x3ab)]=null));}),this[_0x4a7cb7(0x4d6)](this[_0x4a7cb7(0x41d)]['registerOnClose'](()=>{const _0x2de8c0=_0x4a7cb7;var _0x480bf8;(_0x480bf8=this[_0x2de8c0(0x4ab)])==null||_0x480bf8[_0x2de8c0(0x554)]({'cmd':G['LEAVE'],'data':{'roomID':this[_0x2de8c0(0x239)]}});})));}get[_0x37a374(0x31d)](){const _0x20b081=_0x37a374;return this[_0x20b081(0x304)][_0x20b081(0x565)]();}[_0x37a374(0x485)](){const _0x5d88d5=_0x37a374;var _0x2c62a6,_0x5ac8c4;return(_0x5ac8c4=(_0x2c62a6=this[_0x5d88d5(0x4ab)])==null?void 0x0:_0x2c62a6[_0x5d88d5(0x280)])!=null?_0x5ac8c4:null;}[_0x37a374(0x37c)](){const _0x5714a1=_0x37a374;super[_0x5714a1(0x37c)](),this['dispose$'][_0x5714a1(0x24e)](),this[_0x5714a1(0x574)][_0x5714a1(0x1c0)]();}[_0x37a374(0x46c)](){const _0x51a7a3=_0x37a374;var _0x10ca7b,_0x334f25;this[_0x51a7a3(0x65f)](),(_0x10ca7b=this[_0x51a7a3(0x4ab)])==null||_0x10ca7b['send']({'cmd':G[_0x51a7a3(0x64b)],'data':{'roomID':this[_0x51a7a3(0x239)]}}),(_0x334f25=this['_socket'])==null||_0x334f25['close'](),this['_event$'][_0x51a7a3(0x1c0)](),this[_0x51a7a3(0x304)]['complete'](),this[_0x51a7a3(0x37c)]();}['_onCombEvent'](_0x2c63da){const _0x19a01f=_0x37a374;_0x2c63da['cmd']===G[_0x19a01f(0x1cb)]?this['_onJoinRoomEvent'](_0x2c63da):_0x2c63da[_0x19a01f(0x3eb)]===G[_0x19a01f(0x2b6)]&&this['_onRecvEvent'](_0x2c63da);}[_0x37a374(0x366)](_0x5cf2ad){const _0x125f93=_0x37a374;this[_0x125f93(0x304)][_0x125f93(0x24e)](0x1),_0x5cf2ad[_0x125f93(0x554)]({'cmd':G['JOIN'],'routeKey':this[_0x125f93(0x239)],'routeType':'','data':{'rooms':[{'roomID':this[_0x125f93(0x239)]}]}});}[_0x37a374(0x4da)](_0x275325){const _0x58f316=_0x37a374;var _0x4ba537;if(_0x275325[_0x58f316(0x1f2)]===Ct[_0x58f316(0x400)]){this[_0x58f316(0x5cd)][_0x58f316(0x5b9)]({'type':Se[_0x58f316(0x4c0)][_0x58f316(0x54d)],'content':this[_0x58f316(0x1c9)]['t'](_0x58f316(0x67d))}),this['_sessionStatus$'][_0x58f316(0x24e)](0x2);return;}this[_0x58f316(0x304)][_0x58f316(0x24e)](0x3);const _0x19f136=(_0x4ba537=_0x275325[_0x58f316(0x470)][_0x58f316(0x3cf)][this[_0x58f316(0x239)]])==null?void 0x0:_0x4ba537['members'];_0x19f136&&_0x19f136['forEach'](_0x22f6fd=>this[_0x58f316(0x5f6)][_0x58f316(0x1cf)](this[_0x58f316(0x239)],_0x22f6fd));}[_0x37a374(0x224)](_0x58471b){const _0x33d0a6=_0x37a374;try{const _0x39ed9f=_0x58471b['data'];switch(_0x39ed9f[_0x33d0a6(0x1d7)]){case p['CollaborationEvent'][_0x33d0a6(0x4e9)]:this[_0x33d0a6(0x419)](_0x39ed9f),this[_0x33d0a6(0x209)]['next'](_0x39ed9f);break;case p[_0x33d0a6(0x521)][_0x33d0a6(0x5de)]:this[_0x33d0a6(0x253)](_0x39ed9f),this[_0x33d0a6(0x209)][_0x33d0a6(0x24e)](_0x39ed9f);break;case p[_0x33d0a6(0x521)]['CHANGESET_ACK']:case p['CollaborationEvent'][_0x33d0a6(0x24f)]:this[_0x33d0a6(0x5ef)](),this[_0x33d0a6(0x54f)](),this[_0x33d0a6(0x209)][_0x33d0a6(0x24e)](_0x39ed9f);break;case p[_0x33d0a6(0x521)][_0x33d0a6(0x2f0)]:this[_0x33d0a6(0x58a)]['error'](_0x33d0a6(0x1ca)+JSON[_0x33d0a6(0x3df)](_0x39ed9f)),this[_0x33d0a6(0x209)][_0x33d0a6(0x24e)](_0x39ed9f);break;case p[_0x33d0a6(0x521)]['COMMENT_UPDATE']:this['_commentService'][_0x33d0a6(0x600)](_0x39ed9f[_0x33d0a6(0x470)]),this['_event$'][_0x33d0a6(0x24e)](_0x39ed9f);break;default:this['_event$'][_0x33d0a6(0x24e)](_0x39ed9f);}}catch(_0xedbcd){this[_0x33d0a6(0x58a)][_0x33d0a6(0x237)](_0xedbcd,_0x58471b);}}[_0x37a374(0x419)](_0x49fc37){const _0x27aaa0=_0x37a374;this['_memberService'][_0x27aaa0(0x1cf)](this['_unitID'],_0x49fc37[_0x27aaa0(0x470)]);}[_0x37a374(0x253)](_0x431600){const _0x367df9=_0x37a374;this['_memberService']['removeMember'](this[_0x367df9(0x239)],_0x431600[_0x367df9(0x470)][_0x367df9(0x280)]);}async[_0x37a374(0x554)](_0x2a3e0d,_0x1d9338){const _0x51e0e3=_0x37a374;if(this[_0x51e0e3(0x31d)]!==0x3||!this[_0x51e0e3(0x4ab)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2a3e0d[_0x51e0e3(0x1d7)]===p['CollaborationEvent'][_0x51e0e3(0x380)]&&(this[_0x51e0e3(0x606)](),this['_startTelemetryCollaborationNewChangeset'](_0x2a3e0d)),this[_0x51e0e3(0x4ab)][_0x51e0e3(0x554)]({'cmd':G['INGEST'],'routeKey':_0x1d9338,'routeType':'','data':_0x2a3e0d});}catch(_0x540a45){this[_0x51e0e3(0x58a)][_0x51e0e3(0x237)](_0x540a45);}}[_0x37a374(0x606)](){const _0x82cba7=_0x37a374;var _0x73143;this[_0x82cba7(0x211)]=window[_0x82cba7(0x3d3)](()=>{const _0x32ecb4=_0x82cba7;this[_0x32ecb4(0x211)]=null,this['_messageService'][_0x32ecb4(0x5b9)]({'type':Se[_0x32ecb4(0x4c0)][_0x32ecb4(0x2f5)],'content':this[_0x32ecb4(0x1c9)]['t'](_0x32ecb4(0x4f3))});},(_0x73143=this[_0x82cba7(0x3e7)][_0x82cba7(0x37d)](It))!=null?_0x73143:tn);}['_clearCollaborationTimeoutTimer'](){const _0x1c9aa0=_0x37a374;this[_0x1c9aa0(0x211)]&&(clearTimeout(this[_0x1c9aa0(0x211)]),this[_0x1c9aa0(0x211)]=null);}[_0x37a374(0x5ae)](_0x335eaa){const _0x4decd4=_0x37a374;if(!this[_0x4decd4(0x576)])return;const {data:_0x1fc1fc}=_0x335eaa,{unitID:_0x399a2a,changeset:_0x34a7d8}=_0x1fc1fc,{mutations:_0x57d798,type:_0x28a9b3}=_0x34a7d8;this['_telemetryInfo']={'unitId':_0x399a2a,'type':_0x28a9b3,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Zn(_0x57d798)};}[_0x37a374(0x5ef)](){const _0x24f776=_0x37a374;if(this['_shouldReportTelemetry']){if(!this[_0x24f776(0x5a3)]){this[_0x24f776(0x58a)][_0x24f776(0x237)](_0x24f776(0x3fa),_0x24f776(0x57a));return;}this[_0x24f776(0x5a3)][_0x24f776(0x288)]=performance['now'](),this[_0x24f776(0x5a3)][_0x24f776(0x3e2)]=this['_telemetryInfo']['stopTime']-this[_0x24f776(0x5a3)]['startTime'],this[_0x24f776(0x506)]['capture'](Jn,this[_0x24f776(0x5a3)]),this[_0x24f776(0x5a3)]=null;}}[_0x37a374(0x65f)](){this['_telemetryInfo']=null;}},exports[_0x37a374(0x3a2)]=ri([de(0x2,a['ILogService']),de(0x3,te[_0x37a374(0x66a)]),de(0x4,te[_0x37a374(0x3bf)]),de(0x5,a[_0x37a374(0x30b)]),de(0x6,a['Inject'](a[_0x37a374(0x52f)])),de(0x7,a['Inject'](exports[_0x37a374(0x33d)])),de(0x8,a['Inject'](bt)),de(0x9,a[_0x37a374(0x673)](Nn['ITelemetryService']))],exports['CollaborationSession']);var oi=Object['defineProperty'],ai=Object['getOwnPropertyDescriptor'],ci=(_0x15652d,_0x23ea9c,_0x401577,_0x162551)=>{const _0x497c42=_0x37a374;for(var _0x82a5cd=_0x162551>0x1?void 0x0:_0x162551?ai(_0x23ea9c,_0x401577):_0x23ea9c,_0x44a842=_0x15652d[_0x497c42(0x330)]-0x1,_0x25eb30;_0x44a842>=0x0;_0x44a842--)(_0x25eb30=_0x15652d[_0x44a842])&&(_0x82a5cd=(_0x162551?_0x25eb30(_0x23ea9c,_0x401577,_0x82a5cd):_0x25eb30(_0x82a5cd))||_0x82a5cd);return _0x162551&&_0x82a5cd&&oi(_0x23ea9c,_0x401577,_0x82a5cd),_0x82a5cd;},Ce=(_0x43edd6,_0x9e1f5e)=>(_0x480e22,_0x27e52f)=>_0x9e1f5e(_0x480e22,_0x27e52f,_0x43edd6);exports[_0x37a374(0x5e2)]=class extends a[_0x37a374(0x65c)]{constructor(_0x4f6501,_0x19feac,_0x86d56f,_0x17bb66,_0x21f1d4,_0x3f81f7){const _0x159ee4=_0x37a374;super(),I(this,_0x159ee4(0x2c4),new A[(_0x159ee4(0x441))](void 0x0)),I(this,'socket$',this[_0x159ee4(0x2c4)]['asObservable']()),I(this,'_candidateSocket',null),I(this,_0x159ee4(0x2fc),new Map()),I(this,_0x159ee4(0x4e8),new A['BehaviorSubject'](re[_0x159ee4(0x53b)])),I(this,_0x159ee4(0x238),this[_0x159ee4(0x4e8)][_0x159ee4(0x483)]()),I(this,_0x159ee4(0x28c),!0x1),I(this,_0x159ee4(0x3b9)),I(this,_0x159ee4(0x4cb),0x0),I(this,'_sendHeartbeatTimer'),I(this,_0x159ee4(0x5bd)),(this['_injector']=_0x4f6501,this[_0x159ee4(0x1c9)]=_0x19feac,this[_0x159ee4(0x5cd)]=_0x86d56f,this['_logService']=_0x17bb66,this[_0x159ee4(0x3e7)]=_0x21f1d4,this[_0x159ee4(0x5af)]=_0x3f81f7,this[_0x159ee4(0x2e8)]());}get['_socket'](){const _0x4f80d7=_0x37a374;return this['_socket$'][_0x4f80d7(0x565)]();}[_0x37a374(0x2e8)](){const _0x1e4cca=_0x37a374;this[_0x1e4cca(0x307)](),this[_0x1e4cca(0x47e)]();}[_0x37a374(0x37c)](){const _0x45472d=_0x37a374;super[_0x45472d(0x37c)](),this['_sessions'][_0x45472d(0x278)](_0x147004=>_0x147004['dispose']()),this['_sessions'][_0x45472d(0x65a)](),this['_status$']['complete']();}async[_0x37a374(0x501)](_0xeda783){const _0x58ee1f=_0x37a374;if(this[_0x58ee1f(0x2fc)][_0x58ee1f(0x244)](_0xeda783))return this['_sessions'][_0x58ee1f(0x5bf)](_0xeda783);this[_0x58ee1f(0x49b)]();const _0x116256=this[_0x58ee1f(0x58f)]['createInstance'](exports[_0x58ee1f(0x3a2)],_0xeda783,this[_0x58ee1f(0x2c4)][_0x58ee1f(0x483)]());return this[_0x58ee1f(0x2fc)][_0x58ee1f(0x5d1)](_0xeda783,_0x116256),_0x116256;}[_0x37a374(0x452)](_0x24d232){const _0x3c4c61=_0x37a374;var _0x7225b1;const _0x2f2a46=this[_0x3c4c61(0x2fc)]['get'](_0x24d232);_0x2f2a46&&(this[_0x3c4c61(0x2fc)][_0x3c4c61(0x412)](_0x24d232),_0x2f2a46[_0x3c4c61(0x46c)]()),this[_0x3c4c61(0x2fc)][_0x3c4c61(0x654)]||(_0x7225b1=this[_0x3c4c61(0x4ab)])==null||_0x7225b1[_0x3c4c61(0x46c)]();}[_0x37a374(0x3dc)](){const _0x55f531=_0x37a374;this[_0x55f531(0x4cb)]=0x0,this[_0x55f531(0x3b9)]!=null&&(clearTimeout(this[_0x55f531(0x3b9)]),this[_0x55f531(0x3b9)]=null),this[_0x55f531(0x322)]();}[_0x37a374(0x455)](){const _0x11d34a=_0x37a374;var _0x52e163,_0x3649e9;const _0x5054bd=this[_0x11d34a(0x3e7)]['getConfig'](Qt),_0x23ffe2=this[_0x11d34a(0x3e7)][_0x11d34a(0x37d)](ne),_0x340f4f=(_0x3649e9=(_0x52e163=_0x23ffe2==null?void 0x0:_0x23ffe2[_0x11d34a(0x2fb)])!=null?_0x52e163:_0x5054bd)!=null?_0x3649e9:Hn,_0x4cc750=this['_socketService'][_0x11d34a(0x256)](_0x340f4f);return this[_0x11d34a(0x29c)]=_0x4cc750,_0x4cc750;}[_0x37a374(0x49b)](){const _0xf8efc5=_0x37a374;var _0xb2883,_0x15c60c;try{const _0x553dcc=(_0x15c60c=(_0xb2883=this[_0xf8efc5(0x4ab)])!=null?_0xb2883:this['_candidateSocket'])!=null?_0x15c60c:this[_0xf8efc5(0x455)]();if(_0x553dcc){const _0x3b9a0f=_0x553dcc[_0xf8efc5(0x554)];_0x553dcc[_0xf8efc5(0x554)]=_0x501b01=>(this[_0xf8efc5(0x4f9)](),_0x3b9a0f[_0xf8efc5(0x4ae)](_0x553dcc,[_0x501b01])),_0x553dcc[_0xf8efc5(0x5a1)][_0xf8efc5(0x274)](_0xa34c6=>this[_0xf8efc5(0x5f1)](_0x553dcc,_0xa34c6)),_0x553dcc[_0xf8efc5(0x389)][_0xf8efc5(0x4d7)](V[_0xf8efc5(0x630)](0x1))[_0xf8efc5(0x274)](_0x4aed25=>this['_logService'][_0xf8efc5(0x237)]('[CollaborationSessionService]:\x20socket\x20error',_0x4aed25)),_0x553dcc[_0xf8efc5(0x547)]['pipe'](V[_0xf8efc5(0x630)](0x1))['subscribe'](()=>{const _0x440f24=_0xf8efc5;this[_0x440f24(0x378)](_0x553dcc);}),_0x553dcc['close$'][_0xf8efc5(0x4d7)](V[_0xf8efc5(0x630)](0x1))['subscribe'](_0x1953e7=>{const _0x395737=_0xf8efc5;this[_0x395737(0x58a)]['debug']('[CollaborationSessionService]','socket\x20close',_0x1953e7),this[_0x395737(0x243)]();});}}catch(_0x59e68a){this[_0xf8efc5(0x58a)][_0xf8efc5(0x237)](_0x59e68a),this[_0xf8efc5(0x243)]();}}[_0x37a374(0x378)](_0x5f4638){const _0x31bfb6=_0x37a374;this['_logService']['debug']('[CollaborationSessionService]',_0x31bfb6(0x314)),_0x5f4638[_0x31bfb6(0x554)]({'cmd':G['HELLO']}),this[_0x31bfb6(0x4f9)]();}[_0x37a374(0x307)](){const _0x12b8c0=_0x37a374;window[_0x12b8c0(0x40f)](_0x12b8c0(0x34e),()=>this[_0x12b8c0(0x265)]());}[_0x37a374(0x265)](){const _0x38f863=_0x37a374;this[_0x38f863(0x28c)]=!0x1,this[_0x38f863(0x29c)]=null,this['_status$'][_0x38f863(0x24e)](re['OFFLINE']),this[_0x38f863(0x2c4)][_0x38f863(0x24e)](null),this[_0x38f863(0x4a9)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x5ec612=_0x37a374;var _0x168ae4;this[_0x5ec612(0x265)](),this[_0x5ec612(0x4cb)]<((_0x168ae4=this[_0x5ec612(0x3e7)][_0x5ec612(0x37d)](nn))!=null?_0x168ae4:Wn)?(this['_messageService']['show']({'key':_0x5ec612(0x611),'type':Se[_0x5ec612(0x4c0)][_0x5ec612(0x54d)],'content':this[_0x5ec612(0x1c9)]['t'](_0x5ec612(0x29a))}),this[_0x5ec612(0x322)]()):this[_0x5ec612(0x5cd)][_0x5ec612(0x5b9)]({'key':_0x5ec612(0x611),'type':Se[_0x5ec612(0x4c0)][_0x5ec612(0x2f5)],'content':this[_0x5ec612(0x1c9)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x4d67fd=_0x37a374,_0x2938da=()=>{const _0x25dfd7=_0x513c;this[_0x25dfd7(0x4ab)]||this[_0x25dfd7(0x3dc)]();},_0x33da05=()=>{const _0x4132d0=_0x513c;this[_0x4132d0(0x4ab)]||document['visibilityState']==='hidden'||this[_0x4132d0(0x3dc)]();};window['addEventListener'](_0x4d67fd(0x1da),_0x2938da),document[_0x4d67fd(0x40f)](_0x4d67fd(0x37f),_0x33da05);}[_0x37a374(0x322)](){const _0x233955=_0x37a374;var _0x1b0140;const _0x3f32b7=this[_0x233955(0x4cb)],_0xb7f14d=this[_0x233955(0x3e7)][_0x233955(0x37d)](ne),_0x43321f=_0x3f32b7===0x0?0x0:((_0x1b0140=_0xb7f14d==null?void 0x0:_0xb7f14d[_0x233955(0x527)])!=null?_0x1b0140:kn)*0x2**_0x3f32b7;this[_0x233955(0x3b9)]=window[_0x233955(0x3d3)](()=>{const _0x2e2e6a=_0x233955;clearTimeout(this[_0x2e2e6a(0x3b9)]),this['_retryConnectingTimer']=null,this[_0x2e2e6a(0x49b)]();},_0x43321f),this[_0x233955(0x4cb)]+=0x1;}['_onMessage'](_0xb08956,_0x4f40e3){const _0x240bbe=_0x37a374,{cmd:_0x1a8ccf}=_0x4f40e3;_0x1a8ccf===G[_0x240bbe(0x297)]&&!this[_0x240bbe(0x28c)]&&(_0xb08956['memberID']=_0x4f40e3['data'][_0x240bbe(0x280)],this[_0x240bbe(0x2c4)]['next'](_0xb08956),this[_0x240bbe(0x4e8)][_0x240bbe(0x24e)](re[_0x240bbe(0x1e9)]),this['_socketReady']=!0x0,this[_0x240bbe(0x29c)]=null),_0x1a8ccf===G[_0x240bbe(0x415)]&&this[_0x240bbe(0x4a9)](),this[_0x240bbe(0x4f9)]();}[_0x37a374(0x4f9)](){const _0x4ead2f=_0x37a374;var _0x326db4;this[_0x4ead2f(0x494)](),this[_0x4ead2f(0x638)]=window[_0x4ead2f(0x3d3)](()=>this[_0x4ead2f(0x42d)](),(_0x326db4=this['_configService']['getConfig'](en))!=null?_0x326db4:Bn);}[_0x37a374(0x42d)](){const _0x3cca83=_0x37a374;this[_0x3cca83(0x4ab)][_0x3cca83(0x554)]({'cmd':G[_0x3cca83(0x415)]}),this[_0x3cca83(0x3a3)]();}[_0x37a374(0x3a3)](){const _0x4fca73=_0x37a374;var _0x5c2a27;this[_0x4fca73(0x5bd)]=window[_0x4fca73(0x3d3)](()=>this['_onConnectionFailed'](),(_0x5c2a27=this['_configService']['getConfig'](It))!=null?_0x5c2a27:tn);}[_0x37a374(0x494)](){const _0x38bf8d=_0x37a374;this[_0x38bf8d(0x638)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x37a374(0x4a9)](){const _0x2bf1d3=_0x37a374;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x2bf1d3(0x5bd)]),this[_0x2bf1d3(0x5bd)]=null);}},exports['CollaborationSessionService']=ci([Ce(0x0,a['Inject'](a['Injector'])),Ce(0x1,a[_0x37a374(0x629)](a[_0x37a374(0x52f)])),Ce(0x2,te[_0x37a374(0x3bf)]),Ce(0x3,a[_0x37a374(0x217)]),Ce(0x4,a['IConfigService']),Ce(0x5,Et)],exports['CollaborationSessionService']);var Y=[];for(var Xe=0x0;Xe<0x100;++Xe)Y[_0x37a374(0x257)]((Xe+0x100)[_0x37a374(0x4d2)](0x10)[_0x37a374(0x2e5)](0x1));function li(_0x3344cd,_0x1401a3=0x0){const _0x299f4a=_0x37a374;return(Y[_0x3344cd[_0x1401a3+0x0]]+Y[_0x3344cd[_0x1401a3+0x1]]+Y[_0x3344cd[_0x1401a3+0x2]]+Y[_0x3344cd[_0x1401a3+0x3]]+'-'+Y[_0x3344cd[_0x1401a3+0x4]]+Y[_0x3344cd[_0x1401a3+0x5]]+'-'+Y[_0x3344cd[_0x1401a3+0x6]]+Y[_0x3344cd[_0x1401a3+0x7]]+'-'+Y[_0x3344cd[_0x1401a3+0x8]]+Y[_0x3344cd[_0x1401a3+0x9]]+'-'+Y[_0x3344cd[_0x1401a3+0xa]]+Y[_0x3344cd[_0x1401a3+0xb]]+Y[_0x3344cd[_0x1401a3+0xc]]+Y[_0x3344cd[_0x1401a3+0xd]]+Y[_0x3344cd[_0x1401a3+0xe]]+Y[_0x3344cd[_0x1401a3+0xf]])[_0x299f4a(0x38e)]();}var xe,hi=new Uint8Array(0x10);function _i(){const _0x712fab=_0x37a374;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0x712fab(0x2e1)]&&crypto[_0x712fab(0x2e1)][_0x712fab(0x376)](crypto),!xe))throw new Error(_0x712fab(0x5b3));return xe(hi);}var ui=typeof crypto<'u'&&crypto[_0x37a374(0x572)]&&crypto[_0x37a374(0x572)][_0x37a374(0x376)](crypto);const Ut={'randomUUID':ui};function di(_0x5384b5,_0x460bbb,_0x5f0d9d){const _0x445fba=_0x37a374;if(Ut[_0x445fba(0x572)]&&!_0x460bbb&&!_0x5384b5)return Ut[_0x445fba(0x572)]();_0x5384b5=_0x5384b5||{};var _0x5df318=_0x5384b5['random']||(_0x5384b5['rng']||_i)();return _0x5df318[0x6]=_0x5df318[0x6]&0xf|0x40,_0x5df318[0x8]=_0x5df318[0x8]&0x3f|0x80,li(_0x5df318);}var fi=Object[_0x37a374(0x55e)],vi=Object[_0x37a374(0x4a5)],mi=(_0x2fd6fc,_0x1f707f,_0x3eacea,_0x4ad7c2)=>{const _0x41cdbd=_0x37a374;for(var _0x1e8298=_0x4ad7c2>0x1?void 0x0:_0x4ad7c2?vi(_0x1f707f,_0x3eacea):_0x1f707f,_0x60e415=_0x2fd6fc[_0x41cdbd(0x330)]-0x1,_0x1a4c72;_0x60e415>=0x0;_0x60e415--)(_0x1a4c72=_0x2fd6fc[_0x60e415])&&(_0x1e8298=(_0x4ad7c2?_0x1a4c72(_0x1f707f,_0x3eacea,_0x1e8298):_0x1a4c72(_0x1e8298))||_0x1e8298);return _0x4ad7c2&&_0x1e8298&&fi(_0x1f707f,_0x3eacea,_0x1e8298),_0x1e8298;},Je=(_0x2c6cca,_0xde1d3e)=>(_0x13a742,_0x22638b)=>_0xde1d3e(_0x13a742,_0x22638b,_0x2c6cca);let Be=class{constructor(_0x3a6686,_0x220d15,_0xae9115){const _0x2cb9e3=_0x37a374;this['_injector']=_0x3a6686,this[_0x2cb9e3(0x541)]=_0x220d15,this[_0x2cb9e3(0x427)]=_0xae9115;}[_0x37a374(0x270)](_0x4f1b5d){const _0x200745=_0x37a374;this[_0x200745(0x612)](_0x4f1b5d),this[_0x200745(0x215)](_0x4f1b5d);}[_0x37a374(0x53d)](_0x56029a){const _0x559207=_0x37a374,{unitID:_0x5c8c44}=_0x56029a,_0x317e5b=this[_0x559207(0x427)][_0x559207(0x1ed)](_0x5c8c44)[_0x559207(0x52b)](Z[_0x559207(0x3f3)]),{redoCache:_0x57414e}=_0x317e5b[_0x559207(0x5f4)]();if(_0x57414e[_0x559207(0x330)]===0x0)return _0x56029a;let _0x470a7e=a[_0x559207(0x59b)][_0x559207(0x2c7)](_0x56029a[_0x559207(0x579)][0x0]);for(let _0x28c9f9=0x0;_0x28c9f9<_0x57414e[_0x559207(0x330)];_0x28c9f9++){const _0x2536e8={'id':_0x559207(0x3a1),'params':{..._0x57414e[_0x28c9f9]}},_0x3b446a=this['_transformService'][_0x559207(0x337)](_0x470a7e,_0x2536e8,!0x1);if(p['isTransformMutationFailure'](_0x3b446a))throw _0x3b446a[_0x559207(0x237)];_0x470a7e=_0x3b446a[_0x559207(0x38c)];}return{...a[_0x559207(0x59b)]['deepClone'](_0x56029a),'mutations':[_0x470a7e]};}[_0x37a374(0x612)](_0x3673ef){const _0x13ea24=_0x37a374,{unitID:_0x11891a}=_0x3673ef,_0x5a413e=this[_0x13ea24(0x427)][_0x13ea24(0x1ed)](_0x11891a)[_0x13ea24(0x52b)](Z[_0x13ea24(0x3f3)]),{undoCache:_0xe2f0a3,redoCache:_0x32c145}=_0x5a413e[_0x13ea24(0x5f4)]();if(_0xe2f0a3[_0x13ea24(0x330)]===0x0||_0x32c145[_0x13ea24(0x330)]===0x0)return;const _0xe15485=[],_0x115ddf=[];let _0x518710=a[_0x13ea24(0x59b)][_0x13ea24(0x2c7)](_0x3673ef[_0x13ea24(0x579)][0x0]),_0x519863=a['Tools']['deepClone'](_0x3673ef[_0x13ea24(0x579)][0x0]);for(let _0x241193=_0xe2f0a3[_0x13ea24(0x330)]-0x1;_0x241193>=0x0;_0x241193--){const _0xdf22f1={'id':_0x13ea24(0x3a1),'params':{..._0xe2f0a3[_0x241193]}},_0x147250={'id':_0x13ea24(0x3a1),'params':{..._0x32c145[_0x241193]}},_0x13a7ba=this[_0x13ea24(0x541)][_0x13ea24(0x337)](_0x518710,_0xdf22f1,!0x1),_0x2d65f9=this[_0x13ea24(0x541)]['transformMutation'](_0x519863,_0x147250,!0x1);if(p[_0x13ea24(0x358)](_0x13a7ba))throw _0x13a7ba['error'];if(p['isTransformMutationFailure'](_0x2d65f9))throw _0x2d65f9[_0x13ea24(0x237)];_0xe15485['unshift'](_0x13a7ba[_0x13ea24(0x3b2)]['params']),_0x115ddf[_0x13ea24(0x1d0)](_0x2d65f9['m2Prime'][_0x13ea24(0x39d)]),_0x518710=_0x13a7ba['m1Prime'],_0x519863=_0x2d65f9[_0x13ea24(0x38c)];}_0x5a413e[_0x13ea24(0x269)]({'undoCache':_0xe15485,'redoCache':_0x115ddf});}['_transformPreviousActiveRange'](_0x2684e3){const _0x43d059=_0x37a374,{unitID:_0x22dba0}=_0x2684e3,_0x1cc48f=this['_renderManagerService'][_0x43d059(0x1ed)](_0x22dba0)['with'](Z[_0x43d059(0x3f3)]),_0x2b23e9=_0x1cc48f[_0x43d059(0x1db)]();if(_0x2b23e9==null)return;const _0x228b7e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2684e3[_0x43d059(0x505)],'actions':null,'textRanges':[_0x2b23e9]}}],_0x3bc778=this[_0x43d059(0x541)][_0x43d059(0x45f)](_0x2684e3,_0x228b7e);if(!p[_0x43d059(0x340)](_0x3bc778))throw _0x3bc778['error'];const _0x4ed166=_0x3bc778['m2Prime'][0x0][_0x43d059(0x39d)][_0x43d059(0x5ed)];Array[_0x43d059(0x338)](_0x4ed166)&&_0x4ed166[_0x43d059(0x330)]&&_0x1cc48f['setActiveRange'](_0x4ed166[0x0]);}};Be=mi([Je(0x0,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),Je(0x1,p[_0x37a374(0x214)]),Je(0x2,K[_0x37a374(0x55f)])],Be);var pi=Object[_0x37a374(0x55e)],Si=Object['getOwnPropertyDescriptor'],gi=(_0x4eb8fb,_0x3cb8f6,_0x14d747,_0x97eea1)=>{for(var _0x165f91=_0x97eea1>0x1?void 0x0:_0x97eea1?Si(_0x3cb8f6,_0x14d747):_0x3cb8f6,_0x2ac6f5=_0x4eb8fb['length']-0x1,_0x372e46;_0x2ac6f5>=0x0;_0x2ac6f5--)(_0x372e46=_0x4eb8fb[_0x2ac6f5])&&(_0x165f91=(_0x97eea1?_0x372e46(_0x3cb8f6,_0x14d747,_0x165f91):_0x372e46(_0x165f91))||_0x165f91);return _0x97eea1&&_0x165f91&&pi(_0x3cb8f6,_0x14d747,_0x165f91),_0x165f91;},we=(_0x7bb3a,_0x402801)=>(_0x3a764a,_0x1eade3)=>_0x402801(_0x3a764a,_0x1eade3,_0x7bb3a);exports[_0x37a374(0x27a)]=class extends a[_0x37a374(0x65c)]{constructor(_0x565ba9,_0x2013b2,_0x363001,_0x30ff50,_0x23e0d6){const _0x4a7e3e=_0x37a374;super(),I(this,_0x4a7e3e(0x5ab),new Map()),I(this,_0x4a7e3e(0x581),new Map()),I(this,_0x4a7e3e(0x2c1),!0x1),(this['_configService']=_0x565ba9,this[_0x4a7e3e(0x5c3)]=_0x2013b2,this[_0x4a7e3e(0x41d)]=_0x363001,this['_localeService']=_0x30ff50,this['_revisionService']=_0x23e0d6,this['_setupBeforeClosingHandler']());}[_0x37a374(0x3f1)](){const _0x58fc71=_0x37a374;this[_0x58fc71(0x2c1)]=!0x0;}[_0x37a374(0x359)](){const _0x4c08dd=_0x37a374;this[_0x4c08dd(0x2c1)]=!0x1;}[_0x37a374(0x37c)](){const _0x4cd6a7=_0x37a374;this[_0x4cd6a7(0x3bc)]()[_0x4cd6a7(0x23e)](()=>super[_0x4cd6a7(0x37c)]());}async['loadOfflineData'](_0x13cf06){const _0x4cb120=_0x37a374;return this[_0x4cb120(0x2c1)]?null:this['_localStorageService'][_0x4cb120(0x3ed)](Mt(_0x13cf06));}async[_0x37a374(0x645)](_0x2d5dff,_0x111f55){const _0x966bc4=_0x37a374;return!!this[_0x966bc4(0x5c3)]['setItem'](_0x2d5dff,_0x111f55);}[_0x37a374(0x49e)](_0x40708a,_0x10a8b0,_0x552e43,_0x2a85dd){const _0x510880=_0x37a374,_0x48d8b6=this[_0x510880(0x665)][_0x510880(0x4b6)](_0x40708a);this[_0x510880(0x5ab)][_0x510880(0x5d1)](_0x40708a,{'unitID':_0x40708a,'type':_0x10a8b0,'awaitingChangeset':_0x552e43,'mutations':_0x2a85dd,'rev':_0x48d8b6}),this[_0x510880(0x581)][_0x510880(0x244)](_0x40708a)||this[_0x510880(0x4ef)](_0x40708a);}[_0x37a374(0x4ef)](_0x365f73){const _0x18e39a=_0x37a374,_0x35cf6d=this[_0x18e39a(0x4d9)]();_0x35cf6d===0x0?this['_saveCache'](_0x365f73):this[_0x18e39a(0x581)]['set'](_0x365f73,setTimeout(()=>this[_0x18e39a(0x390)](_0x365f73),_0x35cf6d));}[_0x37a374(0x4d9)](){const _0x1f2b63=_0x37a374;var _0x189feb;return(_0x189feb=this[_0x1f2b63(0x3e7)][_0x1f2b63(0x37d)](sn))!=null?_0x189feb:Fn;}[_0x37a374(0x390)](_0x511383){const _0x19e3f3=_0x37a374,_0x3c8cee=this[_0x19e3f3(0x581)][_0x19e3f3(0x5bf)](_0x511383);return _0x3c8cee!==void 0x0&&window['clearTimeout'](_0x3c8cee),this['_localStorageService'][_0x19e3f3(0x443)](Mt(_0x511383),this[_0x19e3f3(0x5ab)]['get'](_0x511383))['then'](()=>this[_0x19e3f3(0x581)][_0x19e3f3(0x412)](_0x511383));}async['exhaustSavingTask'](){const _0x3270f9=_0x37a374,_0x4ba229=[];this[_0x3270f9(0x581)][_0x3270f9(0x278)]((_0x4899d3,_0x17eb34)=>{const _0x5de756=_0x3270f9;window[_0x5de756(0x4dc)](_0x4899d3),_0x4ba229['push'](this['_saveCache'](_0x17eb34)[_0x5de756(0x23e)](()=>{const _0x495436=_0x5de756;this[_0x495436(0x581)][_0x495436(0x412)](_0x17eb34);}));}),await Promise[_0x3270f9(0x267)](_0x4ba229);}[_0x37a374(0x4cf)](){const _0x59fc42=_0x37a374;this[_0x59fc42(0x4d6)](this['_beforeCloseService']['registerBeforeClose'](()=>{if(this['_saveTaskMap']['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x37a374(0x27a)]=gi([we(0x0,a[_0x37a374(0x30b)]),we(0x1,a[_0x37a374(0x583)]),we(0x2,te[_0x37a374(0x66a)]),we(0x3,a[_0x37a374(0x629)](a['LocaleService'])),we(0x4,a[_0x37a374(0x629)](p[_0x37a374(0x445)]))],exports[_0x37a374(0x27a)]);function Mt(_0x386b77){const _0x471c92=_0x37a374;return _0x471c92(0x675)+_0x386b77;}var Ii=Object[_0x37a374(0x55e)],Ci=Object[_0x37a374(0x4a5)],Ei=(_0x495753,_0x314aa4,_0xe4b7e5,_0x4117b4)=>{for(var _0x4110b5=_0x4117b4>0x1?void 0x0:_0x4117b4?Ci(_0x314aa4,_0xe4b7e5):_0x314aa4,_0xd91b0=_0x495753['length']-0x1,_0x128eb1;_0xd91b0>=0x0;_0xd91b0--)(_0x128eb1=_0x495753[_0xd91b0])&&(_0x4110b5=(_0x4117b4?_0x128eb1(_0x314aa4,_0xe4b7e5,_0x4110b5):_0x128eb1(_0x4110b5))||_0x4110b5);return _0x4117b4&&_0x4110b5&&Ii(_0x314aa4,_0xe4b7e5,_0x4110b5),_0x4110b5;},Ze=(_0x239e88,_0x2d4572)=>(_0x41b25a,_0x222230)=>_0x2d4572(_0x41b25a,_0x222230,_0x239e88);function bi(_0x57f58a){const _0x1c0077=_0x37a374,{unitID:_0x239932,mutations:_0x137d5d}=_0x57f58a;return{'unitId':_0x239932,'subUnitId':_0x137d5d[0x0][_0x1c0077(0x39d)][_0x1c0077(0x561)]};}let ke=class{constructor(_0x2b8cb7,_0x57e09b,_0x20f0b3){const _0x4caf6d=_0x37a374;this[_0x4caf6d(0x58f)]=_0x2b8cb7,this['_transformService']=_0x57e09b,this[_0x4caf6d(0x562)]=_0x20f0b3;}[_0x37a374(0x3c8)](_0x1a8d01){const _0x12dc65=_0x37a374;var _0xad8663,_0x52baf8,_0x295a2e,_0x93beb3;const _0x2a847b=this[_0x12dc65(0x58f)][_0x12dc65(0x5bf)](k[_0x12dc65(0x3f7)]),{unitId:_0xecfb79,subUnitId:_0x1360bd}=bi(_0x1a8d01),_0xb86f93=_0x2a847b[_0x12dc65(0x2f9)](_0xecfb79)[_0x12dc65(0x344)](),_0x2f18eb=(_0x52baf8=(_0xad8663=this[_0x12dc65(0x562)][_0x12dc65(0x461)](_0xecfb79))==null?void 0x0:_0xad8663[_0x12dc65(0x25a)]())==null?void 0x0:_0x52baf8[_0x12dc65(0x261)]();if(_0xb86f93['length']===0x0||!_0xecfb79||!_0x1360bd)return;const _0x40b9be=[{'id':k[_0x12dc65(0x531)]['id'],'params':{'unitId':_0xecfb79,'subUnitId':_0x2f18eb,'selections':a[_0x12dc65(0x59b)]['deepClone'](_0xb86f93)}}],_0x3a08d6=this[_0x12dc65(0x541)]['transformMutationsWithChangeset'](_0x1a8d01,_0x40b9be);if(!p[_0x12dc65(0x340)](_0x3a08d6))throw _0x3a08d6[_0x12dc65(0x237)];const _0x7b04d=(_0x93beb3=(_0x295a2e=_0x3a08d6[_0x12dc65(0x3b2)][0x0])==null?void 0x0:_0x295a2e['params'])==null?void 0x0:_0x93beb3[_0x12dc65(0x5b0)];if(Array[_0x12dc65(0x338)](_0x7b04d)&&_0x7b04d['length']){if(_0x7b04d['length']===_0x40b9be[0x0][_0x12dc65(0x39d)][_0x12dc65(0x5b0)][_0x12dc65(0x330)]&&_0x7b04d[_0x12dc65(0x510)]((_0x405fb6,_0x537501)=>a[_0x12dc65(0x382)][_0x12dc65(0x203)](_0x405fb6[_0x12dc65(0x30f)],_0x40b9be[0x0][_0x12dc65(0x39d)][_0x12dc65(0x5b0)][_0x537501]['range'])))return;this['_injector']['get'](a[_0x12dc65(0x30c)])[_0x12dc65(0x50d)](k[_0x12dc65(0x531)]['id'],{'unitId':_0xecfb79,'subUnitId':_0x2f18eb,'selections':_0x7b04d});}}};ke=Ei([Ze(0x0,a['Inject'](a[_0x37a374(0x4b7)])),Ze(0x1,p[_0x37a374(0x214)]),Ze(0x2,a['IUniverInstanceService'])],ke);const qe=a[_0x37a374(0x3e0)](_0x37a374(0x2ee));var _n=(_0x39b54e=>(_0x39b54e[_0x39b54e['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x39b54e[_0x39b54e['OTHER_CLIENTS_EDITING']=0x1]=_0x37a374(0x357),_0x39b54e))(_n||{});const At=0x7530,Nt=_0x37a374(0x61f);class Ti extends a['Disposable']{constructor(){const _0x5a7a15=_0x37a374;super(),I(this,_0x5a7a15(0x5e3),a['Tools'][_0x5a7a15(0x3c0)]()),I(this,_0x5a7a15(0x5c6),new Set()),I(this,'_unitOnClients',new Map()),I(this,'_heartbeatTimer',null),I(this,_0x5a7a15(0x305),new Map()),I(this,_0x5a7a15(0x210),new Map()),this['_init']();}[_0x37a374(0x37c)](){const _0x12afb1=_0x37a374;super[_0x12afb1(0x37c)](),this[_0x12afb1(0x305)]['forEach']((_0x39326c,_0x5d26e7)=>this[_0x12afb1(0x1ea)](_0x5d26e7)),this[_0x12afb1(0x295)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x37a374(0x468)](_0x7a6a4d){const _0x3f0a07=_0x37a374;return this[_0x3f0a07(0x4a0)](_0x7a6a4d)[_0x3f0a07(0x4d7)](A['distinctUntilChanged']());}['editingUnit'](_0x333cc7){const _0x39384f=_0x37a374;this[_0x39384f(0x5c6)][_0x39384f(0x654)]===0x0&&this[_0x39384f(0x50f)](),this[_0x39384f(0x5c6)][_0x39384f(0x63d)](_0x333cc7),this[_0x39384f(0x37b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x333cc7],'isForwarded':!0x1});}[_0x37a374(0x31f)](_0xa3de73){const _0x3811e=_0x37a374;this['_selfUnitIDs'][_0x3811e(0x412)](_0xa3de73),this['_selfUnitIDs']['size']===0x0&&this[_0x3811e(0x295)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x3aab2e=_0x37a374;this[_0x3aab2e(0x4d6)](a['toDisposable'](A[_0x3aab2e(0x294)](window,_0x3aab2e(0x201))['subscribe'](_0x110d4f=>{const _0x5db1e2=_0x3aab2e;if(_0x110d4f[_0x5db1e2(0x1c7)]!==Nt||!_0x110d4f[_0x5db1e2(0x498)])return;const _0x312e37=JSON['parse'](_0x110d4f[_0x5db1e2(0x498)]);this[_0x5db1e2(0x3b0)](_0x312e37);}))),window[_0x3aab2e(0x40f)]('unload',()=>this[_0x3aab2e(0x37b)]({'type':0x1,'memberID':this[_0x3aab2e(0x5e3)],'unitIDs':Array[_0x3aab2e(0x1ec)](this[_0x3aab2e(0x5c6)])}));}[_0x37a374(0x3b0)](_0x34214a){const _0x53623b=_0x37a374;switch(_0x34214a[_0x53623b(0x1d2)]){case 0x0:this[_0x53623b(0x58c)](_0x34214a);break;case 0x1:this[_0x53623b(0x5e5)](_0x34214a);break;case 0x2:this[_0x53623b(0x2aa)](_0x34214a);break;}}[_0x37a374(0x58c)](_0x24c9e2){const _0x55116b=_0x37a374,{unitIDs:_0x4eb33e,memberID:_0x464ac0,isForwarded:_0x4b8f09}=_0x24c9e2;_0x4eb33e[_0x55116b(0x278)](_0x5912da=>{const _0x22428b=_0x55116b;if(!_0x4b8f09&&this[_0x22428b(0x567)][_0x22428b(0x244)](_0x5912da)&&this[_0x22428b(0x4a0)](_0x5912da)[_0x22428b(0x24e)](0x1),!this[_0x22428b(0x567)][_0x22428b(0x244)](_0x5912da)||!this[_0x22428b(0x567)][_0x22428b(0x5bf)](_0x5912da)[_0x22428b(0x244)](_0x464ac0)){const _0x2d3273=this[_0x22428b(0x567)][_0x22428b(0x5bf)](_0x5912da)||new Set();_0x2d3273[_0x22428b(0x63d)](_0x464ac0),this[_0x22428b(0x567)]['set'](_0x5912da,_0x2d3273),this['_scheduleClearOtherTimer'](_0x464ac0);}}),_0x4b8f09||this[_0x55116b(0x37b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x37a374(0x349)](_0x27eddc){const _0xcd9ebb=_0x37a374;this[_0xcd9ebb(0x1ea)](_0x27eddc);const _0x4629c9=window[_0xcd9ebb(0x3d3)](()=>{const _0x402015=_0xcd9ebb;this[_0x402015(0x567)]['forEach'](_0x4d5f3c=>{const _0x3fed0e=_0x402015;_0x4d5f3c[_0x3fed0e(0x412)](_0x27eddc);});},At*0x2);this[_0xcd9ebb(0x305)][_0xcd9ebb(0x5d1)](_0x27eddc,_0x4629c9);}[_0x37a374(0x1ea)](_0x97eb7f){const _0x2aafef=_0x37a374;if(this[_0x2aafef(0x305)][_0x2aafef(0x244)](_0x97eb7f)){const _0x589049=this[_0x2aafef(0x305)][_0x2aafef(0x5bf)](_0x97eb7f);_0x589049&&window[_0x2aafef(0x4dc)](_0x589049),this['_clearOtherTimers'][_0x2aafef(0x5d1)](_0x97eb7f,null);}}['_handleLeaveEvent'](_0x2a04bc){const _0x3be46d=_0x37a374,{memberID:_0x56d3ba,unitIDs:_0x5d8d78}=_0x2a04bc;_0x5d8d78[_0x3be46d(0x278)](_0x419d87=>{const _0x4c1986=_0x3be46d;var _0x3d24c8;const _0x3095cb=this[_0x4c1986(0x567)][_0x4c1986(0x5bf)](_0x419d87);_0x3095cb&&(_0x3095cb[_0x4c1986(0x412)](_0x56d3ba),(_0x3d24c8=this[_0x4c1986(0x4a0)](_0x419d87))==null||_0x3d24c8['next'](_0x3095cb[_0x4c1986(0x654)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x56d3ba);}[_0x37a374(0x2aa)](_0x5f0ebe){const _0x17f383=_0x37a374;this[_0x17f383(0x349)](_0x5f0ebe[_0x17f383(0x280)]);}[_0x37a374(0x37b)](_0x47f74e){const _0x484a56=_0x37a374;localStorage[_0x484a56(0x443)](Nt,JSON[_0x484a56(0x3df)](_0x47f74e));}[_0x37a374(0x50f)](){const _0x4382a7=_0x37a374;this[_0x4382a7(0x295)]=window[_0x4382a7(0x4db)](()=>{const _0x548125=_0x4382a7;this[_0x548125(0x37b)]({'type':0x2,'memberID':this['_id']});},At);}['_ensureSubject'](_0x477925){const _0x5bc2cf=_0x37a374;return this[_0x5bc2cf(0x210)][_0x5bc2cf(0x244)](_0x477925)||this[_0x5bc2cf(0x210)][_0x5bc2cf(0x5d1)](_0x477925,new A[(_0x5bc2cf(0x441))](0x0)),this[_0x5bc2cf(0x210)][_0x5bc2cf(0x5bf)](_0x477925);}}var Ri=Object['defineProperty'],yi=Object[_0x37a374(0x4a5)],Oi=(_0x25d9f0,_0x5b992d,_0x29bbb0,_0x6f85d1)=>{const _0x110765=_0x37a374;for(var _0x4be0da=_0x6f85d1>0x1?void 0x0:_0x6f85d1?yi(_0x5b992d,_0x29bbb0):_0x5b992d,_0x9287e=_0x25d9f0[_0x110765(0x330)]-0x1,_0x3f584a;_0x9287e>=0x0;_0x9287e--)(_0x3f584a=_0x25d9f0[_0x9287e])&&(_0x4be0da=(_0x6f85d1?_0x3f584a(_0x5b992d,_0x29bbb0,_0x4be0da):_0x3f584a(_0x4be0da))||_0x4be0da);return _0x6f85d1&&_0x4be0da&&Ri(_0x5b992d,_0x29bbb0,_0x4be0da),_0x4be0da;},Qe=(_0x378dd2,_0x4ce35d)=>(_0x55f007,_0x496da9)=>_0x4ce35d(_0x55f007,_0x496da9,_0x378dd2);let We=class{constructor(_0x18a592,_0x5a33b6,_0x48200b){const _0x2cd03a=_0x37a374;this[_0x2cd03a(0x58f)]=_0x18a592,this[_0x2cd03a(0x541)]=_0x5a33b6,this['_docStateChangeManagerService']=_0x48200b;}[_0x37a374(0x232)](_0x586528){this['_transformHistoryAndStateStack'](_0x586528);}[_0x37a374(0x53d)](_0x41b4d6){const _0x6d017b=_0x37a374,{unitID:_0x242fce}=_0x41b4d6,{collaboration:_0x4a447e}=this[_0x6d017b(0x509)][_0x6d017b(0x387)](_0x242fce);if(_0x4a447e[_0x6d017b(0x330)]===0x0)return _0x41b4d6;let _0x12cc01=a[_0x6d017b(0x59b)][_0x6d017b(0x2c7)](_0x41b4d6[_0x6d017b(0x579)][0x0]);for(let _0x5ab3ad=0x0;_0x5ab3ad<_0x4a447e['length'];_0x5ab3ad++){const _0x59750e={'id':_0x6d017b(0x3a1),'params':{'unitId':_0x4a447e[_0x5ab3ad][_0x6d017b(0x36d)],..._0x4a447e[_0x5ab3ad]['redoState']}},_0x1748b2=this['_transformService']['transformMutation'](_0x12cc01,_0x59750e,!0x1);if(p[_0x6d017b(0x358)](_0x1748b2))throw _0x1748b2[_0x6d017b(0x237)];_0x12cc01=_0x1748b2[_0x6d017b(0x38c)];}return{...a[_0x6d017b(0x59b)][_0x6d017b(0x2c7)](_0x41b4d6),'mutations':[_0x12cc01]};}[_0x37a374(0x657)](_0x26927c){const _0x403f40=_0x37a374,{unitID:_0x4c2827}=_0x26927c,{history:_0x1a7ba6,collaboration:_0x122be7}=this[_0x403f40(0x509)][_0x403f40(0x387)](_0x4c2827);if(_0x1a7ba6[_0x403f40(0x330)]===0x0&&_0x122be7[_0x403f40(0x330)]===0x0)return;const _0x6b0665=[],_0x4d9f2f=[];let _0x25c362=a[_0x403f40(0x59b)]['deepClone'](_0x26927c[_0x403f40(0x579)][0x0]),_0x5f547d=a['Tools']['deepClone'](_0x26927c[_0x403f40(0x579)][0x0]);for(let _0x50e786=_0x1a7ba6[_0x403f40(0x330)]-0x1;_0x50e786>=0x0;_0x50e786--){const _0x24ec8e={'id':_0x403f40(0x3a1),'params':{'unitId':_0x1a7ba6[_0x50e786][_0x403f40(0x36d)],..._0x1a7ba6[_0x50e786][_0x403f40(0x251)]}},_0x2ca5c4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1a7ba6[_0x50e786][_0x403f40(0x36d)],..._0x1a7ba6[_0x50e786][_0x403f40(0x365)]}},_0x3ccc07=this[_0x403f40(0x541)]['transformMutation'](_0x25c362,_0x24ec8e,!0x1),_0x1778c3=this[_0x403f40(0x541)][_0x403f40(0x337)](_0x5f547d,_0x2ca5c4,!0x1);if(p[_0x403f40(0x358)](_0x3ccc07))throw _0x3ccc07[_0x403f40(0x237)];if(p[_0x403f40(0x358)](_0x1778c3))throw _0x1778c3[_0x403f40(0x237)];_0x6b0665[_0x403f40(0x1d0)]({..._0x1a7ba6[_0x50e786],'undoState':_0x3ccc07[_0x403f40(0x3b2)]['params'],'redoState':_0x1778c3[_0x403f40(0x3b2)][_0x403f40(0x39d)]}),_0x25c362=_0x3ccc07[_0x403f40(0x38c)],_0x5f547d=_0x1778c3[_0x403f40(0x38c)];}_0x25c362=a[_0x403f40(0x59b)]['deepClone'](_0x26927c[_0x403f40(0x579)][0x0]),_0x5f547d=a[_0x403f40(0x59b)][_0x403f40(0x2c7)](_0x26927c[_0x403f40(0x579)][0x0]);for(let _0x41cda3=_0x122be7['length']-0x1;_0x41cda3>=0x0;_0x41cda3--){const _0x338ab5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x122be7[_0x41cda3]['unitId'],..._0x122be7[_0x41cda3][_0x403f40(0x251)]}},_0x8b3785={'id':_0x403f40(0x3a1),'params':{'unitId':_0x122be7[_0x41cda3][_0x403f40(0x36d)],..._0x122be7[_0x41cda3][_0x403f40(0x365)]}},_0x4bb76e=this['_transformService'][_0x403f40(0x337)](_0x25c362,_0x338ab5,!0x1),_0x452ea1=this[_0x403f40(0x541)]['transformMutation'](_0x5f547d,_0x8b3785,!0x1);if(p[_0x403f40(0x358)](_0x4bb76e))throw _0x4bb76e[_0x403f40(0x237)];if(p[_0x403f40(0x358)](_0x452ea1))throw _0x452ea1['error'];_0x4d9f2f[_0x403f40(0x1d0)]({..._0x122be7[_0x41cda3],'undoState':_0x4bb76e[_0x403f40(0x3b2)]['params'],'redoState':_0x452ea1[_0x403f40(0x3b2)][_0x403f40(0x39d)]}),_0x25c362=_0x4bb76e[_0x403f40(0x38c)],_0x5f547d=_0x452ea1[_0x403f40(0x38c)];}this[_0x403f40(0x509)][_0x403f40(0x3c5)](_0x4c2827,{'history':_0x6b0665,'collaboration':_0x4d9f2f});}};We=Oi([Qe(0x0,a['Inject'](a[_0x37a374(0x4b7)])),Qe(0x1,p[_0x37a374(0x214)]),Qe(0x2,a[_0x37a374(0x629)](Z[_0x37a374(0x36e)]))],We);function un(_0x17d0cf){const _0x3b51d8=_0x37a374;let _0x5080d6='';for(const _0x2f533f of _0x17d0cf){const {startOffset:_0x1c75ee,endOffset:_0x4c4850,isActive:_0x18b7c2,rangeType:_0x4f4fdc,segmentId:_0x27be97,segmentPage:_0x10176a}=_0x2f533f;_0x5080d6[_0x3b51d8(0x330)]&&(_0x5080d6+=','),_0x5080d6+=_0x1c75ee+':'+_0x4c4850+':'+(_0x18b7c2?'1':'0')+':'+_0x4f4fdc+':'+_0x27be97+':'+_0x10176a;}return _0x5080d6;}function Di(_0x3caefd){const _0x256641=_0x37a374,_0xcaec1=_0x3caefd['split'](','),_0x5cc37b=[];for(const _0x17ebc4 of _0xcaec1){const [_0x4c1dd0,_0x371d4e,_0x2226f9,_0x599517,_0x852f7f,_0x2ca5e3]=_0x17ebc4['split'](':');_0x5cc37b[_0x256641(0x257)]({'startOffset':Number(_0x4c1dd0),'endOffset':Number(_0x371d4e),'collapsed':_0x4c1dd0===_0x371d4e,'isActive':_0x2226f9==='1','rangeType':_0x599517===a[_0x256641(0x39a)][_0x256641(0x318)]?a['DOC_RANGE_TYPE'][_0x256641(0x318)]:a['DOC_RANGE_TYPE'][_0x256641(0x64d)],'segmentId':typeof _0x852f7f==_0x256641(0x3de)?String(_0x852f7f):'','segmentPage':Number(_0x2ca5e3!=null?_0x2ca5e3:-0x1)});}return _0x5cc37b['some'](_0x44aa17=>_0x44aa17[_0x256641(0x32b)])||(_0x5cc37b[0x0][_0x256641(0x32b)]=!0x0),_0x5cc37b;}class Tt extends a[_0x37a374(0x2f7)]{constructor(){const _0xde9d12=_0x37a374;super(...arguments),I(this,_0xde9d12(0x394),new A[(_0xde9d12(0x441))](null)),I(this,_0xde9d12(0x292),this[_0xde9d12(0x394)][_0xde9d12(0x483)]());}[_0x37a374(0x2e9)](_0x2a751b){const _0xa19d5=_0x37a374,{unitID:_0x568ae5,memberID:_0x4e44f8,textRanges:_0x2ed820}=_0x2a751b,_0x5a094c=un(_0x2ed820);if(_0x5a094c==='')return;const _0x20684b={'unitID':_0x568ae5,'memberID':_0x4e44f8,'selection':_0x5a094c};this[_0xa19d5(0x394)]['next'](_0x20684b);}}var wi=Object[_0x37a374(0x55e)],Pi=Object[_0x37a374(0x4a5)],Ui=(_0x44ada5,_0x3e626d,_0x54e5da,_0x41e945)=>{const _0x401b67=_0x37a374;for(var _0x604454=_0x41e945>0x1?void 0x0:_0x41e945?Pi(_0x3e626d,_0x54e5da):_0x3e626d,_0x1af719=_0x44ada5[_0x401b67(0x330)]-0x1,_0x4a9480;_0x1af719>=0x0;_0x1af719--)(_0x4a9480=_0x44ada5[_0x1af719])&&(_0x604454=(_0x41e945?_0x4a9480(_0x3e626d,_0x54e5da,_0x604454):_0x4a9480(_0x604454))||_0x604454);return _0x41e945&&_0x604454&&wi(_0x3e626d,_0x54e5da,_0x604454),_0x604454;},Lt=(_0x24664e,_0x558589)=>(_0x2dd949,_0x3f73a6)=>_0x558589(_0x2dd949,_0x3f73a6,_0x24664e);let Fe=class{constructor(_0x1d361d,_0x320698){const _0x2ada61=_0x37a374;this[_0x2ada61(0x58f)]=_0x1d361d,this[_0x2ada61(0x541)]=_0x320698;}['transformSelections'](_0x3e8652){const _0x27b383=_0x37a374;var _0x4ab6b2;const _0x46767=this[_0x27b383(0x58f)][_0x27b383(0x5bf)](Re[_0x27b383(0x1fc)]),_0x131890=(_0x4ab6b2=_0x46767[_0x27b383(0x247)]())!=null?_0x4ab6b2:[];if(_0x131890[_0x27b383(0x330)]===0x0)return;const _0x52732f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3e8652[_0x27b383(0x505)],'actions':null,'textRanges':_0x131890}}],_0x331f09=this[_0x27b383(0x541)][_0x27b383(0x45f)](_0x3e8652,_0x52732f);if(!p[_0x27b383(0x340)](_0x331f09))throw _0x331f09[_0x27b383(0x237)];const _0x4491e2=_0x331f09[_0x27b383(0x3b2)][0x0]['params'][_0x27b383(0x5ed)];Array[_0x27b383(0x338)](_0x4491e2)&&_0x4491e2['length']&&_0x46767['replaceTextRanges'](_0x4491e2,!0x1);}};Fe=Ui([Lt(0x0,a['Inject'](a[_0x37a374(0x4b7)])),Lt(0x1,p[_0x37a374(0x214)])],Fe);const Mi=new Set([k[_0x37a374(0x2a6)]['id']]);function xt(_0x4c71d9,_0x4a8d76,_0x4214c7,_0x1e8746,_0x1969f6){const _0x59fbdc=_0x37a374;var _0x8ba5ff,_0x5c4710,_0x11c4bb,_0x3d57c7;const _0x55371e=[];for(const _0x5df4de of _0x4c71d9)if(Mi['has'](_0x5df4de['id'])){if(_0x55371e['length']>0x0)break;_0x55371e[_0x59fbdc(0x257)](_0x5df4de);break;}else _0x55371e[_0x59fbdc(0x257)](_0x5df4de);const _0x3e3f32=(_0x5c4710=(_0x8ba5ff=_0x1969f6[_0x59fbdc(0x1eb)]())==null?void 0x0:_0x8ba5ff[_0x59fbdc(0x46e)])!=null?_0x5c4710:_0x59fbdc(0x35a),_0x3ecbbf=(_0x3d57c7=(_0x11c4bb=_0x1969f6[_0x59fbdc(0x1eb)]())==null?void 0x0:_0x11c4bb[_0x59fbdc(0x280)])!=null?_0x3d57c7:_0x59fbdc(0x35a);return{'changeset':{'unitID':_0x4a8d76,'type':p[_0x59fbdc(0x286)](_0x4214c7['getUnitType'](_0x4a8d76)),'baseRev':_0x1e8746[_0x59fbdc(0x4b6)](_0x4a8d76),'revision':0x0,'userID':_0x3e3f32,'memberID':_0x3ecbbf,'mutations':_0x55371e},'pendingMutations':_0x4c71d9[_0x59fbdc(0x2e5)](_0x55371e[_0x59fbdc(0x330)])};}function Ai(_0x355d6f,_0x2ca9b6,_0x581114,_0x4b116b,_0xd96efb){const _0x41b8c8=_0x37a374;var _0x3288af,_0x18c4af,_0x346f55,_0x59d617;const _0x46e276=[_0x355d6f[_0x41b8c8(0x20e)]((_0x4fcbe1,_0x3ce534)=>{const _0x25f207=_0x41b8c8;var _0x37bc55;const {id:_0x122bae}=_0x4fcbe1,{id:_0xbb3049,type:_0xac429}=_0x3ce534,_0x625a2c=(_0x37bc55=_0x4fcbe1[_0x25f207(0x39d)])!=null?_0x37bc55:{'actions':null},_0x319e04=_0x3ce534[_0x25f207(0x39d)];if(_0x122bae&&_0x122bae!==_0xbb3049)throw new Error(_0x25f207(0x5ea)+_0x122bae+'\x20-\x20'+_0xbb3049+'.');return{..._0x4fcbe1,'id':_0xbb3049,'type':_0xac429,'params':{'unitId':_0x319e04[_0x25f207(0x36d)],'textRanges':_0x319e04['textRanges'],'actions':a[_0x25f207(0x2a9)]['compose'](_0x625a2c[_0x25f207(0x3b6)],_0x319e04[_0x25f207(0x3b6)])}};},{})],_0x49abae=(_0x18c4af=(_0x3288af=_0xd96efb[_0x41b8c8(0x1eb)]())==null?void 0x0:_0x3288af[_0x41b8c8(0x46e)])!=null?_0x18c4af:'unknown',_0x4cabc6=(_0x59d617=(_0x346f55=_0xd96efb[_0x41b8c8(0x1eb)]())==null?void 0x0:_0x346f55['memberID'])!=null?_0x59d617:_0x41b8c8(0x35a);return{'changeset':{'unitID':_0x2ca9b6,'type':p[_0x41b8c8(0x286)](_0x581114[_0x41b8c8(0x646)](_0x2ca9b6)),'baseRev':_0x4b116b[_0x41b8c8(0x4b6)](_0x2ca9b6),'revision':0x0,'userID':_0x49abae,'memberID':_0x4cabc6,'mutations':_0x46e276},'pendingMutations':[]};}function dn(_0x46f38e,_0x49a41b){const _0x9555a9=_0x37a374,_0x4e2ed1=new A[(_0x9555a9(0x4ac))](0x1);return setTimeout(()=>_0x4e2ed1[_0x9555a9(0x24e)](_0x49a41b),_0x46f38e),_0x4e2ed1[_0x9555a9(0x483)]()[_0x9555a9(0x4d7)](A[_0x9555a9(0x630)](0x1));}const Ni={'id':k[_0x37a374(0x1c2)]['id'],'type':a['CommandType']['MUTATION'],'params':{}};var Li=Object[_0x37a374(0x55e)],xi=Object[_0x37a374(0x4a5)],ge=(_0x34c8fc,_0x5e0a74,_0x47d0ca,_0x21ad8a)=>{const _0x59c990=_0x37a374;for(var _0x3063d0=_0x21ad8a>0x1?void 0x0:_0x21ad8a?xi(_0x5e0a74,_0x47d0ca):_0x5e0a74,_0x35cc80=_0x34c8fc[_0x59c990(0x330)]-0x1,_0x488194;_0x35cc80>=0x0;_0x35cc80--)(_0x488194=_0x34c8fc[_0x35cc80])&&(_0x3063d0=(_0x21ad8a?_0x488194(_0x5e0a74,_0x47d0ca,_0x3063d0):_0x488194(_0x3063d0))||_0x3063d0);return _0x21ad8a&&_0x3063d0&&Li(_0x5e0a74,_0x47d0ca,_0x3063d0),_0x3063d0;},N=(_0x71e9b,_0x4d8a8c)=>(_0x331cfc,_0x583c05)=>_0x4d8a8c(_0x331cfc,_0x583c05,_0x71e9b),q=(_0x1a1c6b=>(_0x1a1c6b[_0x37a374(0x4a3)]=_0x37a374(0x1f7),_0x1a1c6b[_0x37a374(0x2b9)]='synced',_0x1a1c6b[_0x37a374(0x636)]=_0x37a374(0x4bf),_0x1a1c6b[_0x37a374(0x5b7)]=_0x37a374(0x489),_0x1a1c6b[_0x37a374(0x672)]=_0x37a374(0x228),_0x1a1c6b[_0x37a374(0x334)]=_0x37a374(0x1f0),_0x1a1c6b[_0x37a374(0x43c)]=_0x37a374(0x656),_0x1a1c6b[_0x37a374(0x320)]=_0x37a374(0x34e),_0x1a1c6b))(q||{});const fn=0xea60;class Ie{constructor(_0x22466a,_0x482f5a,_0x309807,_0x371071,_0x2140c3,_0x3cdcc4,_0x45d47f,_0x4e2aa7,_0x346b4a){const _0x5a0e43=_0x37a374;I(this,_0x5a0e43(0x5b5),null),I(this,_0x5a0e43(0x405),[]),(this['unitID']=_0x22466a,this[_0x5a0e43(0x1d2)]=_0x482f5a,this['_handler']=_0x2140c3,this[_0x5a0e43(0x48f)]=_0x3cdcc4,this[_0x5a0e43(0x54e)]=_0x45d47f,this[_0x5a0e43(0x665)]=_0x4e2aa7,this[_0x5a0e43(0x1fd)]=_0x346b4a,this[_0x5a0e43(0x5b5)]=_0x309807,this['_pendingMutations']=_0x371071);}[_0x37a374(0x255)](_0x3b8d5c){const _0x5a9d64=_0x37a374,_0x21cbee=this[_0x5a9d64(0x665)][_0x5a9d64(0x4b6)](this[_0x5a9d64(0x505)]);return _0x3b8d5c[_0x5a9d64(0x546)]>_0x21cbee+0x1?(this[_0x5a9d64(0x4f6)][_0x5a9d64(0x55d)]({'from':_0x21cbee,'to':_0x3b8d5c[_0x5a9d64(0x546)]-0x1}),!0x0):!0x1;}[_0x37a374(0x1e1)](_0x26231d){const _0x3d179e=_0x37a374;this[_0x3d179e(0x54e)][_0x3d179e(0x38d)](this['unitID'],_0x26231d);}[_0x37a374(0x5f7)](_0xb089c){const _0x593e02=_0x37a374;var _0x5994b5,_0x27c3f5;(_0x27c3f5=(_0x5994b5=this[_0x593e02(0x4f6)])[_0x593e02(0x42f)])==null||_0x27c3f5[_0x593e02(0x1fa)](_0x5994b5,_0xb089c);}['_transformIMECache'](_0x4ef4c6){const _0x3248b6=_0x37a374;var _0x368627,_0x4c1cf7;return(_0x4c1cf7=(_0x368627=this['_handler'])[_0x3248b6(0x329)])==null?void 0x0:_0x4c1cf7[_0x3248b6(0x1fa)](_0x368627,_0x4ef4c6);}[_0x37a374(0x260)](_0x5e3a4f){const _0x54b47b=_0x37a374;var _0x4b9f92,_0x3e686a;return(_0x3e686a=(_0x4b9f92=this[_0x54b47b(0x4f6)])[_0x54b47b(0x590)])==null?void 0x0:_0x3e686a[_0x54b47b(0x1fa)](_0x4b9f92,_0x5e3a4f);}[_0x37a374(0x641)](_0x1656c5){const _0x1b8f2d=_0x37a374;var _0x3dddd2,_0x2b0a54,_0x197753;return(_0x197753=(_0x2b0a54=(_0x3dddd2=this[_0x1b8f2d(0x4f6)])[_0x1b8f2d(0x1d6)])==null?void 0x0:_0x2b0a54[_0x1b8f2d(0x1fa)](_0x3dddd2,_0x1656c5))!=null?_0x197753:_0x1656c5;}['_transformRemoteChangesetByStateCache'](_0x154ed8){const _0x36c9f4=_0x37a374;var _0x842657,_0x53ffd0,_0x446c2c;return(_0x446c2c=(_0x53ffd0=(_0x842657=this['_handler'])[_0x36c9f4(0x454)])==null?void 0x0:_0x53ffd0[_0x36c9f4(0x1fa)](_0x842657,_0x154ed8))!=null?_0x446c2c:_0x154ed8;}[_0x37a374(0x592)](_0x456f42){const _0x16c565=_0x37a374;var _0x39c821,_0x3347ff;if(this[_0x16c565(0x1d2)]===se[_0x16c565(0x619)]){const {unitID:_0x1fa559,mutations:_0x2a0a02,memberID:_0x4c2991}=_0x456f42,_0x14f865=_0x2a0a02[0x0][_0x16c565(0x39d)][_0x16c565(0x5ed)];Array['isArray'](_0x14f865)&&_0x14f865[_0x16c565(0x330)]>0x0&&((_0x3347ff=(_0x39c821=this[_0x16c565(0x4f6)])[_0x16c565(0x44e)])==null||_0x3347ff[_0x16c565(0x1fa)](_0x39c821,{'unitID':_0x1fa559,'memberID':_0x4c2991,'textRanges':_0x14f865}));}}['_updateLocalCache'](){const _0x131b4c=_0x37a374;this[_0x131b4c(0x1fd)][_0x131b4c(0x49e)](this['unitID'],this[_0x131b4c(0x1d2)],this[_0x131b4c(0x5b5)],this[_0x131b4c(0x405)]);}[_0x37a374(0x35c)](){const _0x3c5ce0=_0x37a374;return this['_revisionService'][_0x3c5ce0(0x4b6)](this['unitID']);}['_incrementRevisionNumber'](){const _0x4fceee=_0x37a374;this[_0x4fceee(0x665)][_0x4fceee(0x296)](this[_0x4fceee(0x505)]);}[_0x37a374(0x27e)](_0x12c87b){const _0x23c36b=_0x37a374;var _0x1b4bcb;let _0x2dc1d5=this[_0x23c36b(0x641)](_0x12c87b);_0x2dc1d5=this[_0x23c36b(0x563)](_0x2dc1d5);const _0x22d9ba=a[_0x23c36b(0x2ed)](_0x2dc1d5[_0x23c36b(0x579)],this[_0x23c36b(0x48f)],{'fromCollab':!0x0});if(!_0x22d9ba[_0x23c36b(0x1e6)])throw _0x22d9ba[_0x23c36b(0x237)]instanceof Error?_0x22d9ba[_0x23c36b(0x237)]:new Error((_0x1b4bcb=_0x22d9ba[_0x23c36b(0x237)])!=null?_0x1b4bcb:'[CollaborationState]:\x20apply\x20error!');this[_0x23c36b(0x245)](_0x2dc1d5),this['_transformStateCache'](_0x2dc1d5),this['_transformUndoredo'](_0x12c87b),this[_0x23c36b(0x5f7)](_0x2dc1d5),this[_0x23c36b(0x592)](_0x2dc1d5),this['_incrementRevisionNumber']();}}let ye=class extends Ie{constructor(_0x18c08c,_0x45cb70,_0xdb64d0,_0xb0aaef,_0x58a277,_0x1037be,_0x37d17d,_0x2e2f60,_0x1e2a38,_0x26c0bd){const _0x7855ac=_0x37a374;super(_0x18c08c,_0x45cb70,null,[],_0xdb64d0,_0x2e2f60,_0x37d17d,_0xb0aaef,_0x58a277),I(this,_0x7855ac(0x58b),'synced'),(this['_injector']=_0x1037be,this[_0x7855ac(0x58a)]=_0x1e2a38,this[_0x7855ac(0x541)]=_0x26c0bd);}[_0x37a374(0x1e7)](_0x1791a9){const _0x5cb7da=_0x37a374,_0xe4002b=this[_0x5cb7da(0x58f)][_0x5cb7da(0x4bb)](ce,this['unitID'],this['type'],[_0x1791a9],this['_handler']);return _0xe4002b[_0x5cb7da(0x57b)](),_0xe4002b['_updateLocalCache'](),_0xe4002b;}['onRemoteChangeset'](_0xe6a800){const _0x353678=_0x37a374;if(this['_checkMissing'](_0xe6a800))return this[_0x353678(0x58f)][_0x353678(0x4bb)](oe,this[_0x353678(0x505)],this[_0x353678(0x1d2)],null,[],null,[_0xe6a800],this['_handler']);try{const _0x964bb4=this['_transformService']['transformMutationsWithChangeset'](_0xe6a800,[Ni]);if(p['isTransformMutationsWithChangesetSuccess'](_0x964bb4)){const {c1Prime:_0x38f93b}=_0x964bb4;return this['_executeRemoteChangeset'](_0x38f93b),this;}throw _0x964bb4['error'];}catch(_0x21e739){return this[_0x353678(0x58a)]['error'](_0x21e739),this[_0x353678(0x2af)](!0x1);}}[_0x37a374(0x2af)](_0x5e501b){const _0x36f9eb=_0x37a374;return this[_0x36f9eb(0x58f)][_0x36f9eb(0x4bb)](ve,this[_0x36f9eb(0x505)],this[_0x36f9eb(0x1d2)],null,[],this[_0x36f9eb(0x4f6)],_0x5e501b);}[_0x37a374(0x333)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x37a374(0x22e)](){const _0xc54858=_0x37a374;throw new Error(_0xc54858(0x2bf));}[_0x37a374(0x1ef)](){return this;}[_0x37a374(0x5f0)](){const _0x1ea386=_0x37a374;return this[_0x1ea386(0x58f)][_0x1ea386(0x4bb)](me,this[_0x1ea386(0x505)],this[_0x1ea386(0x1d2)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x37a374(0x282)](){const _0x4f32ab=_0x37a374;throw new Error(_0x4f32ab(0x2ff));}[_0x37a374(0x354)](){const _0x31a353=_0x37a374,_0x50f391=this['_revisionService'][_0x31a353(0x4b6)](this[_0x31a353(0x505)]);return this['_handler'][_0x31a353(0x55d)]({'from':_0x50f391,'to':0x0}),this['_injector'][_0x31a353(0x4bb)](oe,this[_0x31a353(0x505)],this['type'],null,[],null,[],this[_0x31a353(0x4f6)]);}};ye=ge([N(0x3,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x5,a['Inject'](a[_0x37a374(0x4b7)])),N(0x6,a[_0x37a374(0x3cd)]),N(0x7,a[_0x37a374(0x30c)]),N(0x8,a[_0x37a374(0x217)]),N(0x9,p[_0x37a374(0x214)])],ye);let ce=class extends Ie{constructor(_0x2d66dd,_0x35a20b,_0x3d4df,_0x49fde1,_0x157466,_0x8e8b97,_0x40f5c4,_0x43e7d4,_0x3fcdc7,_0x2e38c8,_0x59f29f,_0x10dcf5,_0x50ae61,_0x2c3333){const _0x4612e3=_0x37a374;super(_0x2d66dd,_0x35a20b,null,_0x3d4df,_0x49fde1,_0x2e38c8,_0x2c3333,_0x8e8b97,_0x40f5c4),I(this,_0x4612e3(0x58b),'pending'),I(this,'_scheduleTimestamp',null),I(this,_0x4612e3(0x517),null),(this[_0x4612e3(0x58f)]=_0x157466,this['_memberService']=_0x43e7d4,this[_0x4612e3(0x58a)]=_0x3fcdc7,this['_configService']=_0x59f29f,this[_0x4612e3(0x541)]=_0x10dcf5,this['_univerInstanceService']=_0x50ae61);}['appendMutation'](_0x12a175){const _0x2a032e=_0x37a374;return this[_0x2a032e(0x405)][_0x2a032e(0x257)](_0x12a175),this[_0x2a032e(0x408)](),this;}['onRemoteChangeset'](_0x9de953){const _0x1677ab=_0x37a374;if(this['_checkMissing'](_0x9de953))return this[_0x1677ab(0x518)](),this['_injector']['createInstance'](oe,this[_0x1677ab(0x505)],this[_0x1677ab(0x1d2)],null,this[_0x1677ab(0x405)],null,[_0x9de953],this[_0x1677ab(0x4f6)]);try{const _0xc4d889=this[_0x1677ab(0x541)]['transformMutationsWithChangeset'](_0x9de953,this['_pendingMutations']);if(p[_0x1677ab(0x340)](_0xc4d889)){const {c1Prime:_0x19f785,m2Prime:_0x5abd67}=_0xc4d889;this[_0x1677ab(0x27e)](_0x19f785);const _0x147466=this[_0x1677ab(0x58f)][_0x1677ab(0x4bb)](ce,this[_0x1677ab(0x505)],this['type'],_0x5abd67,this[_0x1677ab(0x4f6)]);return this[_0x1677ab(0x518)](),_0x147466['_schedule'](this['_scheduleTimestamp']?Math[_0x1677ab(0x59f)](0x0,new Date()[_0x1677ab(0x671)]()-this['_scheduleTimestamp']):this[_0x1677ab(0x5b2)]()),_0x147466;}throw _0xc4d889[_0x1677ab(0x237)];}catch(_0x673aea){return this[_0x1677ab(0x58a)]['error'](_0x673aea),this[_0x1677ab(0x2af)](!0x1);}}[_0x37a374(0x333)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x37a374(0x22e)](){const _0x39c7c1=_0x37a374;throw new Error(_0x39c7c1(0x53a));}[_0x37a374(0x1ef)](){return this;}[_0x37a374(0x5f0)](){const _0x1dd7d9=_0x37a374;return this[_0x1dd7d9(0x518)](),this[_0x1dd7d9(0x58f)][_0x1dd7d9(0x4bb)](me,this['unitID'],this['type'],null,this[_0x1dd7d9(0x405)],this[_0x1dd7d9(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}['_schedule'](_0x3911c7){const _0x374a40=_0x37a374,_0x414823=_0x3911c7!=null?_0x3911c7:this[_0x374a40(0x5b2)]();this[_0x374a40(0x448)]=new Date()[_0x374a40(0x671)](),this[_0x374a40(0x517)]=window[_0x374a40(0x3d3)](()=>{const _0x1ac570=_0x374a40;this[_0x1ac570(0x518)]();let _0x268f89=null;switch(this['type']){case se[_0x1ac570(0x362)]:{_0x268f89=xt(this[_0x1ac570(0x405)],this[_0x1ac570(0x505)],this[_0x1ac570(0x1d4)],this[_0x1ac570(0x665)],this[_0x1ac570(0x5f6)]);break;}case se[_0x1ac570(0x619)]:{this[_0x1ac570(0x405)][_0x1ac570(0x510)](_0x797048=>_0x797048['id']===Re[_0x1ac570(0x578)]['id'])?_0x268f89=Ai(this[_0x1ac570(0x405)],this['unitID'],this[_0x1ac570(0x1d4)],this[_0x1ac570(0x665)],this[_0x1ac570(0x5f6)]):_0x268f89=xt(this[_0x1ac570(0x405)],this['unitID'],this['_univerInstanceService'],this[_0x1ac570(0x665)],this['_memberService']);break;}default:throw new Error(_0x1ac570(0x316)+this[_0x1ac570(0x1d2)]+_0x1ac570(0x2d7));}const {changeset:_0x18b8ee,pendingMutations:_0x44eab9}=_0x268f89;this['_handler'][_0x1ac570(0x603)](_0x18b8ee);const _0x4d8519=_0x44eab9[_0x1ac570(0x330)]?this['_injector']['createInstance'](le,this[_0x1ac570(0x505)],this[_0x1ac570(0x1d2)],_0x18b8ee,_0x44eab9,this[_0x1ac570(0x4f6)],void 0x0):this[_0x1ac570(0x58f)]['createInstance'](fe,this[_0x1ac570(0x505)],this[_0x1ac570(0x1d2)],_0x18b8ee,this['_handler']);_0x4d8519['_updateLocalCache'](),this[_0x1ac570(0x4f6)][_0x1ac570(0x3e4)](this,_0x4d8519);},_0x414823);}[_0x37a374(0x5b2)](){const _0x166f47=_0x37a374;var _0x5af257;const _0x506584=this[_0x166f47(0x3e7)][_0x166f47(0x37d)](ne);return(_0x5af257=_0x506584==null?void 0x0:_0x506584[_0x166f47(0x21a)])!=null?_0x5af257:jn;}[_0x37a374(0x282)](){const _0x284869=_0x37a374;throw new Error(_0x284869(0x5b1));}[_0x37a374(0x518)](){const _0x5b9b0c=_0x37a374;this[_0x5b9b0c(0x517)]!=null&&(clearTimeout(this[_0x5b9b0c(0x517)]),this[_0x5b9b0c(0x517)]=null);}[_0x37a374(0x2af)](_0x281c0c){const _0x190e84=_0x37a374;return this['_clearScheduledTask'](),this[_0x190e84(0x58f)][_0x190e84(0x4bb)](ve,this[_0x190e84(0x505)],this[_0x190e84(0x1d2)],null,this['_pendingMutations'],this[_0x190e84(0x4f6)],_0x281c0c);}};ce=ge([N(0x4,a[_0x37a374(0x629)](a['Injector'])),N(0x5,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x6,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x7,a[_0x37a374(0x629)](exports[_0x37a374(0x33d)])),N(0x8,a[_0x37a374(0x217)]),N(0x9,a[_0x37a374(0x30c)]),N(0xa,a[_0x37a374(0x30b)]),N(0xb,p[_0x37a374(0x214)]),N(0xc,a[_0x37a374(0x662)]),N(0xd,a['IUndoRedoService'])],ce);let fe=class extends Ie{constructor(_0x599c25,_0x5e1316,_0x223e94,_0x171e9e,_0x1bfae,_0x3c4045,_0x828463,_0x1a319b,_0x1308d2,_0x10c416,_0x564882){const _0x382321=_0x37a374;super(_0x599c25,_0x5e1316,_0x223e94,[],_0x171e9e,_0x1a319b,_0x564882,_0x3c4045,_0x828463),I(this,_0x382321(0x58b),_0x382321(0x489)),I(this,_0x382321(0x388),0x0),I(this,_0x382321(0x3d0)),I(this,'_sender'),(this[_0x382321(0x58f)]=_0x1bfae,this[_0x382321(0x58a)]=_0x1308d2,this[_0x382321(0x541)]=_0x10c416);}['appendMutation'](_0x4d6e85){const _0x266279=_0x37a374;this[_0x266279(0x518)]();const _0x35d39a=this[_0x266279(0x58f)]['createInstance'](le,this[_0x266279(0x505)],this[_0x266279(0x1d2)],this['_awaitingChangeset'],[_0x4d6e85],this['_handler'],this[_0x266279(0x3d0)]);return _0x35d39a[_0x266279(0x408)](),_0x35d39a;}[_0x37a374(0x449)](_0x14eab7){const _0x1c8d50=_0x37a374;if(this['_checkMissing'](_0x14eab7))return this[_0x1c8d50(0x518)](),this[_0x1c8d50(0x58f)][_0x1c8d50(0x4bb)](oe,this[_0x1c8d50(0x505)],this[_0x1c8d50(0x1d2)],this['_awaitingChangeset'],[],null,[_0x14eab7],this[_0x1c8d50(0x4f6)]);try{const _0x234357=this[_0x1c8d50(0x541)][_0x1c8d50(0x666)]([_0x14eab7],[this[_0x1c8d50(0x5b5)]],!0x1);if(p[_0x1c8d50(0x4ea)](_0x234357)){const {c1Prime:_0x250c66,c2Prime:_0x5a205b}=_0x234357;this[_0x1c8d50(0x27e)](_0x250c66[0x0]),_0x5a205b[0x0][_0x1c8d50(0x63a)]=this[_0x1c8d50(0x35c)](),this[_0x1c8d50(0x518)]();const _0x4d285b=this['_injector'][_0x1c8d50(0x4bb)](fe,this[_0x1c8d50(0x505)],this['type'],_0x5a205b[0x0],this['_handler']);return _0x4d285b[_0x1c8d50(0x408)](),_0x4d285b;}return this[_0x1c8d50(0x2af)](!0x1);}catch(_0x1b7a24){return this[_0x1c8d50(0x58a)][_0x1c8d50(0x237)](_0x1b7a24),this[_0x1c8d50(0x2af)](!0x1);}}[_0x37a374(0x333)](_0x107480){const _0x2c8966=_0x37a374;this[_0x2c8966(0x518)]();const _0xf48354=this[_0x2c8966(0x665)][_0x2c8966(0x4b6)](this['unitID']);if(_0x107480['revision']<_0xf48354-0x1)return this;if(this[_0x2c8966(0x255)](_0x107480))return this[_0x2c8966(0x58f)][_0x2c8966(0x4bb)](oe,this[_0x2c8966(0x505)],this[_0x2c8966(0x1d2)],null,[],this[_0x2c8966(0x5b5)],[],this[_0x2c8966(0x4f6)]);this[_0x2c8966(0x285)]();const _0x3f84fd=this[_0x2c8966(0x58f)][_0x2c8966(0x4bb)](ye,this['unitID'],this[_0x2c8966(0x1d2)],this[_0x2c8966(0x4f6)]);return _0x3f84fd['_updateLocalCache'](),_0x3f84fd;}[_0x37a374(0x22e)](_0x10edd4){const _0xf94502=_0x37a374;return this[_0xf94502(0x2af)](!!(_0x10edd4!=null&&_0x10edd4[_0xf94502(0x404)]));}[_0x37a374(0x1ef)](_0x4a6b69){const _0x3afcb2=_0x37a374;return this[_0x3afcb2(0x388)]>fn?this[_0x3afcb2(0x5f0)]():(this[_0x3afcb2(0x3d0)]=dn(this['_resendTimeout'],{'timeout':this[_0x3afcb2(0x388)],'reqId':_0x4a6b69[_0x3afcb2(0x663)]}),this['_sender']=this[_0x3afcb2(0x3d0)][_0x3afcb2(0x274)](({reqId:_0x17390a,timeout:_0x29566b})=>{const _0x55925e=_0x3afcb2;this[_0x55925e(0x557)](_0x17390a,_0x29566b);}),this);}[_0x37a374(0x5f0)](){const _0x57c2e1=_0x37a374;return this[_0x57c2e1(0x518)](),this['_injector'][_0x57c2e1(0x4bb)](me,this[_0x57c2e1(0x505)],this[_0x57c2e1(0x1d2)],this[_0x57c2e1(0x5b5)],[],this[_0x57c2e1(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x282)](){const _0x24b537=_0x37a374;this[_0x24b537(0x4f6)][_0x24b537(0x603)](this['_awaitingChangeset']);}[_0x37a374(0x2af)](_0x375a34){const _0x2d990c=_0x37a374;return this[_0x2d990c(0x518)](),this[_0x2d990c(0x58f)][_0x2d990c(0x4bb)](ve,this[_0x2d990c(0x505)],this['type'],this[_0x2d990c(0x5b5)],[],this[_0x2d990c(0x4f6)],_0x375a34);}[_0x37a374(0x557)](_0x4ce353,_0x531028){const _0x579aa5=_0x37a374;var _0x443e4d;_0x4ce353===((_0x443e4d=this[_0x579aa5(0x5b5)])==null?void 0x0:_0x443e4d[_0x579aa5(0x663)])&&(this[_0x579aa5(0x282)](),this[_0x579aa5(0x388)]=_0x531028===0x0?0x3e8:_0x531028*0x2);}['_clearScheduledTask'](){const _0x2df7aa=_0x37a374;var _0x5623aa;(_0x5623aa=this[_0x2df7aa(0x208)])==null||_0x5623aa['unsubscribe'](),this[_0x2df7aa(0x388)]=0x0;}};fe=ge([N(0x4,a['Inject'](a[_0x37a374(0x4b7)])),N(0x5,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x6,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x7,a[_0x37a374(0x30c)]),N(0x8,a[_0x37a374(0x217)]),N(0x9,p['ITransformService']),N(0xa,a[_0x37a374(0x3cd)])],fe);let le=class extends Ie{constructor(_0x1768d1,_0xc51e47,_0x472b7f,_0x12232f,_0x4cf125,_0x4ff2f9,_0x5dd173,_0x9cf8b6,_0x3e957e,_0xe5cbca,_0x59997d,_0x3edda9,_0x3192dd){const _0x196a63=_0x37a374;super(_0x1768d1,_0xc51e47,_0x472b7f,_0x12232f,_0x4cf125,_0xe5cbca,_0x3192dd,_0x9cf8b6,_0x3e957e),I(this,_0x196a63(0x58b),'awaiting_with_pending'),I(this,_0x196a63(0x388),0x0),I(this,_0x196a63(0x3d0)),I(this,_0x196a63(0x208)),(this[_0x196a63(0x58f)]=_0x5dd173,this[_0x196a63(0x58a)]=_0x59997d,this['_transformService']=_0x3edda9,_0x4ff2f9&&(this[_0x196a63(0x3d0)]=_0x4ff2f9,this[_0x196a63(0x208)]=this['_resendTimer'][_0x196a63(0x274)](({reqId:_0x4a2f61,timeout:_0x4bb375})=>{const _0x317f97=_0x196a63;this[_0x317f97(0x557)](_0x4a2f61,_0x4bb375);})));}[_0x37a374(0x1e7)](_0x374fa0){return this['_pendingMutations']['push'](_0x374fa0),this;}['onRemoteChangeset'](_0x15abec){const _0x358e3e=_0x37a374;if(this[_0x358e3e(0x255)](_0x15abec))return this[_0x358e3e(0x518)](),this[_0x358e3e(0x58f)][_0x358e3e(0x4bb)](oe,this['unitID'],this[_0x358e3e(0x1d2)],this[_0x358e3e(0x5b5)],this[_0x358e3e(0x405)],null,[_0x15abec],this[_0x358e3e(0x4f6)]);try{const _0x2ac631=this['_transformService']['transformChangesets']([_0x15abec],[this['_awaitingChangeset']],!0x1);if(p['isTransformChangesetsSuccess'](_0x2ac631)){const {c1Prime:_0x3f961a,c2Prime:_0x1f5e68}=_0x2ac631,_0x300a0f=this['_transformService'][_0x358e3e(0x45f)](_0x3f961a[0x0],this[_0x358e3e(0x405)]);if(p[_0x358e3e(0x340)](_0x300a0f)){const {c1Prime:_0x4d99c9,m2Prime:_0x182c51}=_0x300a0f;return this[_0x358e3e(0x27e)](_0x4d99c9),_0x1f5e68[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0x358e3e(0x58f)]['createInstance'](le,this['unitID'],this[_0x358e3e(0x1d2)],_0x1f5e68[0x0],_0x182c51,this[_0x358e3e(0x4f6)],void 0x0);}throw _0x300a0f['error'];}throw _0x2ac631[_0x358e3e(0x237)];}catch(_0xd69032){return this[_0x358e3e(0x58a)]['error'](_0xd69032),this[_0x358e3e(0x2af)](!0x1);}}[_0x37a374(0x333)](_0x4e9f37){const _0x40f9c4=_0x37a374;if(this[_0x40f9c4(0x518)](),this[_0x40f9c4(0x255)](_0x4e9f37))return this[_0x40f9c4(0x58f)]['createInstance'](oe,this['unitID'],this[_0x40f9c4(0x1d2)],null,this[_0x40f9c4(0x405)],this['_awaitingChangeset'],[],this[_0x40f9c4(0x4f6)]);this[_0x40f9c4(0x285)]();const _0x37ace6=this[_0x40f9c4(0x58f)]['createInstance'](ce,this[_0x40f9c4(0x505)],this[_0x40f9c4(0x1d2)],this[_0x40f9c4(0x405)],this[_0x40f9c4(0x4f6)]);return _0x37ace6[_0x40f9c4(0x57b)](),_0x37ace6['_updateLocalCache'](),_0x37ace6;}['onRemoteRej'](_0x4cbc72){const _0x458fc5=_0x37a374;return this['_onConflict'](!!(_0x4cbc72!=null&&_0x4cbc72[_0x458fc5(0x404)]));}[_0x37a374(0x1ef)](_0x54e6c8){const _0x10425c=_0x37a374;return this['_resendTimeout']>fn?this[_0x10425c(0x5f0)]():(this[_0x10425c(0x3d0)]=dn(this[_0x10425c(0x388)],{'timeout':this[_0x10425c(0x388)],'reqId':_0x54e6c8[_0x10425c(0x663)]}),this['_sender']=this[_0x10425c(0x3d0)][_0x10425c(0x274)](({reqId:_0x22a615,timeout:_0x5edc49})=>{const _0x21e89c=_0x10425c;this[_0x21e89c(0x557)](_0x22a615,_0x5edc49);}),this);}['toggleOffline'](){const _0x4e3af7=_0x37a374;return this[_0x4e3af7(0x518)](),this[_0x4e3af7(0x58f)][_0x4e3af7(0x4bb)](me,this[_0x4e3af7(0x505)],this[_0x4e3af7(0x1d2)],this[_0x4e3af7(0x5b5)],this[_0x4e3af7(0x405)],this[_0x4e3af7(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x282)](){const _0x1ee3cd=_0x37a374;this['_handler'][_0x1ee3cd(0x603)](this['_awaitingChangeset']);}['_onConflict'](_0x545f5b){const _0x3e627c=_0x37a374;return this[_0x3e627c(0x518)](),this[_0x3e627c(0x58f)]['createInstance'](ve,this['unitID'],this[_0x3e627c(0x1d2)],null,this['_pendingMutations'],this['_handler'],_0x545f5b);}[_0x37a374(0x557)](_0x561532,_0x2428ef){const _0x306bd3=_0x37a374;var _0x149079;_0x561532===((_0x149079=this['_awaitingChangeset'])==null?void 0x0:_0x149079['reqId'])&&(this['resend'](),this[_0x306bd3(0x388)]=_0x2428ef===0x0?0x3e8:_0x2428ef*0x2);}[_0x37a374(0x518)](){var _0x5d4da3;(_0x5d4da3=this['_sender'])==null||_0x5d4da3['unsubscribe'](),this['_resendTimeout']=0x0;}};le=ge([N(0x6,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),N(0x7,a[_0x37a374(0x629)](p['RevisionService'])),N(0x8,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x9,a[_0x37a374(0x30c)]),N(0xa,a[_0x37a374(0x217)]),N(0xb,p[_0x37a374(0x214)]),N(0xc,a['IUndoRedoService'])],le);let ve=class extends Ie{constructor(_0x12bf99,_0x45c257,_0x55a50c,_0x578b4b,_0x47480c,_0x4897f6=!0x1,_0x265ab2,_0xd2b26a,_0xfc2b6,_0x4e1713,_0x1aa4c8,_0x1e48df,_0x1b290c){const _0x639081=_0x37a374;super(_0x12bf99,_0x45c257,_0x55a50c,_0x578b4b,_0x47480c,_0xd2b26a,_0xfc2b6,_0x1aa4c8,_0x4e1713),I(this,_0x639081(0x58b),'conflict'),(this[_0x639081(0x299)]=_0x4897f6,this[_0x639081(0x478)]=_0x265ab2,this[_0x639081(0x1c9)]=_0x1e48df,this[_0x639081(0x31a)]=_0x1b290c,this[_0x639081(0x440)](),this[_0x639081(0x613)](),this[_0x639081(0x463)]());}[_0x37a374(0x1e7)](){return this;}[_0x37a374(0x449)](){return this;}[_0x37a374(0x333)](){return this;}[_0x37a374(0x22e)](){return this;}[_0x37a374(0x1ef)](){return this;}['toggleOffline'](){return this;}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x282)](){const _0x1494a4=_0x37a374;throw new Error(_0x1494a4(0x424));}[_0x37a374(0x613)](){const _0x5a00a1=_0x37a374;this[_0x5a00a1(0x1fd)]['updateOfflineData'](this[_0x5a00a1(0x505)],this[_0x5a00a1(0x1d2)],null,[]);}[_0x37a374(0x440)](){const _0x455ddf=_0x37a374;this['_isPermissionRej']?this[_0x455ddf(0x31a)][_0x455ddf(0x5b9)]({'title':this[_0x455ddf(0x1c9)]['t'](_0x455ddf(0x585)),'content':this[_0x455ddf(0x1c9)]['t']('permission.content'),'type':_0x455ddf(0x237),'duration':0x0}):this[_0x455ddf(0x31a)][_0x455ddf(0x5b9)]({'title':this[_0x455ddf(0x1c9)]['t'](_0x455ddf(0x268)),'content':this[_0x455ddf(0x1c9)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x37a374(0x463)](){const _0x21a1ee=_0x37a374;this[_0x21a1ee(0x478)][_0x21a1ee(0x4d3)](new k[(_0x21a1ee(0x363))](this[_0x21a1ee(0x505)])['id'],!0x1);}};ve=ge([N(0x6,a[_0x37a374(0x629)](a[_0x37a374(0x459)])),N(0x7,a[_0x37a374(0x30c)]),N(0x8,a[_0x37a374(0x3cd)]),N(0x9,a['Inject'](exports[_0x37a374(0x27a)])),N(0xa,a['Inject'](p[_0x37a374(0x445)])),N(0xb,a[_0x37a374(0x629)](a[_0x37a374(0x52f)])),N(0xc,te[_0x37a374(0x321)])],ve);let me=class extends Ie{constructor(_0x1df9fa,_0x37aa80,_0xf3daa6,_0xb005aa,_0x3e5951,_0x4001d6,_0x536762,_0x298850,_0x493c59,_0x570cde){const _0x38c067=_0x37a374;super(_0x1df9fa,_0x37aa80,_0xf3daa6,_0xb005aa,_0x3e5951,_0x493c59,_0x570cde,_0x536762,_0x298850),I(this,_0x38c067(0x58b),_0x38c067(0x34e)),this[_0x38c067(0x58f)]=_0x4001d6;}[_0x37a374(0x1e7)](_0x125d40){const _0x39ce55=_0x37a374;return this[_0x39ce55(0x405)][_0x39ce55(0x257)](_0x125d40),this[_0x39ce55(0x408)](),this;}[_0x37a374(0x449)](_0x58dccf){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x37a374(0x22e)](){const _0x4f4a54=_0x37a374;throw new Error(_0x4f4a54(0x313));}[_0x37a374(0x1ef)](){return this;}[_0x37a374(0x5f0)](){return this;}['toggleOnline'](){const _0x16323f=_0x37a374,{_injector:_0x18bde6,_pendingMutations:_0x77ea4e,_awaitingChangeset:_0x21e51b,unitID:_0x2d514a,_handler:_0x261ec2,type:_0x45306e}=this,_0x19d48b=vn(_0x18bde6,_0x2d514a,_0x45306e,_0x21e51b,_0x77ea4e,_0x261ec2);return _0x19d48b instanceof ce?_0x19d48b[_0x16323f(0x57b)]():(_0x19d48b instanceof le||_0x19d48b instanceof fe)&&_0x19d48b[_0x16323f(0x282)](),_0x19d48b;}[_0x37a374(0x282)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};me=ge([N(0x5,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),N(0x6,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x7,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x8,a[_0x37a374(0x30c)]),N(0x9,a[_0x37a374(0x3cd)])],me);let oe=class extends Ie{constructor(_0x1b88f6,_0xbef233,_0xa699a5,_0x3cc48f,_0x598cb4,_0x132bf4,_0x635c12,_0x9c77c9,_0x49a523,_0x297f1a,_0x556fae,_0x286232,_0x3e6243,_0x476df7){const _0xe4dc37=_0x37a374;super(_0x1b88f6,_0xbef233,_0xa699a5,_0x3cc48f,_0x635c12,_0x286232,_0x3e6243,_0x49a523,_0x297f1a),I(this,_0xe4dc37(0x58b),_0xe4dc37(0x1f0)),(this['_acknowledgedAwaitingChangeset']=_0x598cb4,this[_0xe4dc37(0x385)]=_0x132bf4,this[_0xe4dc37(0x58f)]=_0x9c77c9,this[_0xe4dc37(0x58a)]=_0x556fae,this[_0xe4dc37(0x541)]=_0x476df7);}[_0x37a374(0x3b1)](_0x548ec){const _0x51b432=_0x37a374;try{const _0x1b1b2b=[..._0x548ec,...this['_queuedRemoteChangesets']],_0x31469d=[this[_0x51b432(0x5b5)]||this[_0x51b432(0x28e)]][_0x51b432(0x434)](_0x3ed658=>!!_0x3ed658);let _0x4c6638,_0x3318f3;if(_0x31469d[_0x51b432(0x330)]){const _0x35c259=this[_0x51b432(0x541)][_0x51b432(0x666)](_0x1b1b2b,_0x31469d,!0x1);if(!p[_0x51b432(0x4ea)](_0x35c259))throw _0x35c259[_0x51b432(0x237)];_0x4c6638=_0x35c259[_0x51b432(0x3c6)],_0x3318f3=_0x35c259[_0x51b432(0x534)];}else _0x4c6638=_0x1b1b2b,_0x3318f3=[];let _0x1514af=this[_0x51b432(0x405)];_0x4c6638['forEach'](_0x27a59f=>{const _0x48af2f=_0x51b432;let _0x21fc7f;if(_0x1514af[_0x48af2f(0x330)]){const _0xf3c73d=this[_0x48af2f(0x541)]['transformMutationsWithChangeset'](_0x27a59f,_0x1514af);if(!p[_0x48af2f(0x340)](_0xf3c73d))throw _0xf3c73d[_0x48af2f(0x237)];_0x21fc7f=_0xf3c73d['c1Prime'],_0x1514af=_0xf3c73d[_0x48af2f(0x3b2)];}else _0x21fc7f=_0x27a59f;this[_0x48af2f(0x27e)](_0x21fc7f);}),this['_acknowledgedAwaitingChangeset']&&this[_0x51b432(0x285)](),this[_0x51b432(0x5b5)]&&_0x3318f3[_0x51b432(0x330)]&&(_0x3318f3[0x0]['baseRev']=this[_0x51b432(0x35c)]());let _0x5cbe05;if(this[_0x51b432(0x5b5)]&&_0x1514af[_0x51b432(0x330)]!==0x0)_0x5cbe05=this[_0x51b432(0x58f)][_0x51b432(0x4bb)](le,this['unitID'],this[_0x51b432(0x1d2)],_0x3318f3[0x0],_0x1514af,this[_0x51b432(0x4f6)],void 0x0);else{if(this[_0x51b432(0x5b5)]&&_0x1514af['length']===0x0)_0x3318f3[0x0][_0x51b432(0x63a)]=this[_0x51b432(0x35c)](),_0x5cbe05=this['_injector'][_0x51b432(0x4bb)](fe,this[_0x51b432(0x505)],this[_0x51b432(0x1d2)],_0x3318f3[0x0],this[_0x51b432(0x4f6)]);else{if(_0x1514af[_0x51b432(0x330)]!==0x0){const _0x504ef6=this[_0x51b432(0x58f)][_0x51b432(0x4bb)](ce,this[_0x51b432(0x505)],this[_0x51b432(0x1d2)],_0x1514af,this[_0x51b432(0x4f6)]);_0x504ef6[_0x51b432(0x57b)](),_0x5cbe05=_0x504ef6;}else _0x5cbe05=this[_0x51b432(0x58f)]['createInstance'](ye,this[_0x51b432(0x505)],this[_0x51b432(0x1d2)],this[_0x51b432(0x4f6)]);}}return _0x5cbe05[_0x51b432(0x408)](),_0x5cbe05;}catch(_0x3828dd){return this[_0x51b432(0x58a)]['error'](_0x51b432(0x1de),_0x51b432(0x2ea),_0x3828dd),this[_0x51b432(0x58f)][_0x51b432(0x4bb)](ve,this['unitID'],this['type'],this[_0x51b432(0x5b5)],this[_0x51b432(0x405)],this[_0x51b432(0x4f6)],!0x1);}}[_0x37a374(0x282)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x37a374(0x1e7)](_0x1f3c11){const _0x43c4f4=_0x37a374;return this[_0x43c4f4(0x405)][_0x43c4f4(0x257)](_0x1f3c11),this;}['onRemoteChangeset'](_0x2a7ac4){const _0x27cb42=_0x37a374;return this[_0x27cb42(0x385)][_0x27cb42(0x257)](_0x2a7ac4),this;}['onRemoteAck'](_0x1cd52a){const _0x29a57a=_0x37a374;if(this[_0x29a57a(0x5b5)])return this[_0x29a57a(0x28e)]=this[_0x29a57a(0x5b5)],this[_0x29a57a(0x5b5)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x37a374(0x22e)](_0x39e1af){const _0x1ae7a7=_0x37a374;return this[_0x1ae7a7(0x2af)](!!(_0x39e1af!=null&&_0x39e1af[_0x1ae7a7(0x404)]));}['onRemoteRetry'](){return this;}[_0x37a374(0x5f0)](){const _0x5bbbe6=_0x37a374;return this['_injector'][_0x5bbbe6(0x4bb)](me,this[_0x5bbbe6(0x505)],this[_0x5bbbe6(0x1d2)],this[_0x5bbbe6(0x5b5)],this['_pendingMutations'],this[_0x5bbbe6(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x2af)](_0x49ce94){const _0x522d18=_0x37a374;return this[_0x522d18(0x58f)]['createInstance'](ve,this[_0x522d18(0x505)],this['type'],this[_0x522d18(0x5b5)],this[_0x522d18(0x405)],this[_0x522d18(0x4f6)],_0x49ce94);}};oe=ge([N(0x7,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),N(0x8,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x9,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0xa,a['ILogService']),N(0xb,a[_0x37a374(0x30c)]),N(0xc,a['IUndoRedoService']),N(0xd,p['ITransformService'])],oe);function vn(_0x2b7a83,_0x4eab64,_0x512bdb,_0x2cd1fc,_0x9d3e2e,_0x16e3b5){const _0xb21768=_0x37a374;return _0x2cd1fc&&_0x9d3e2e[_0xb21768(0x330)]?_0x2b7a83[_0xb21768(0x4bb)](le,_0x4eab64,_0x512bdb,_0x2cd1fc,_0x9d3e2e,_0x16e3b5,void 0x0):_0x2cd1fc?_0x2b7a83[_0xb21768(0x4bb)](fe,_0x4eab64,_0x512bdb,_0x2cd1fc,_0x16e3b5):_0x9d3e2e[_0xb21768(0x330)]?_0x2b7a83[_0xb21768(0x4bb)](ce,_0x4eab64,_0x512bdb,_0x9d3e2e,_0x16e3b5):_0x2b7a83[_0xb21768(0x4bb)](ye,_0x4eab64,_0x512bdb,_0x16e3b5);}var $i=Object[_0x37a374(0x55e)],ji=Object[_0x37a374(0x4a5)],Rt=(_0x3e1fa2,_0x402542,_0x18b4c0,_0x2d4b9b)=>{const _0x4b38c2=_0x37a374;for(var _0x4255d0=_0x2d4b9b>0x1?void 0x0:_0x2d4b9b?ji(_0x402542,_0x18b4c0):_0x402542,_0x115d3c=_0x3e1fa2[_0x4b38c2(0x330)]-0x1,_0x53066f;_0x115d3c>=0x0;_0x115d3c--)(_0x53066f=_0x3e1fa2[_0x115d3c])&&(_0x4255d0=(_0x2d4b9b?_0x53066f(_0x402542,_0x18b4c0,_0x4255d0):_0x53066f(_0x4255d0))||_0x4255d0);return _0x2d4b9b&&_0x4255d0&&$i(_0x402542,_0x18b4c0,_0x4255d0),_0x4255d0;},H=(_0x1e635b,_0x4f7371)=>(_0x2354cd,_0x41ff79)=>_0x4f7371(_0x2354cd,_0x41ff79,_0x1e635b);exports[_0x37a374(0x4c6)]=class extends a[_0x37a374(0x2f7)]{constructor(_0x149ca4,_0x342399,_0x39c667,_0x5a1524,_0x4bf99d,_0x13fe40,_0x78469f,_0x1bf878,_0x553c46,_0x598335,_0x461d18,_0x4fd497,_0x488747){const _0x40e85b=_0x37a374;super(),I(this,_0x40e85b(0x36f),new A[(_0x40e85b(0x441))](null)),I(this,'state$',this[_0x40e85b(0x36f)][_0x40e85b(0x483)]()),I(this,_0x40e85b(0x524)),I(this,_0x40e85b(0x5e4),!0x1),I(this,'_changesetSessionId',''),I(this,_0x40e85b(0x3f9),0x0),I(this,_0x40e85b(0x238),this[_0x40e85b(0x32a)][_0x40e85b(0x4d7)](A[_0x40e85b(0x323)](_0x27fbe7=>_0x27fbe7?_0x27fbe7[_0x40e85b(0x58b)]:q[_0x40e85b(0x320)]),A[_0x40e85b(0x3ae)](0x1))),I(this,_0x40e85b(0x2fe),!0x1),I(this,_0x40e85b(0x3f2),[]),(this[_0x40e85b(0x505)]=_0x149ca4,this[_0x40e85b(0x2bb)]=_0x342399,this[_0x40e85b(0x52c)]=_0x39c667,this[_0x40e85b(0x58f)]=_0x5a1524,this[_0x40e85b(0x1fd)]=_0x4bf99d,this['_compressMutationService']=_0x13fe40,this[_0x40e85b(0x1c9)]=_0x78469f,this[_0x40e85b(0x665)]=_0x1bf878,this['_logService']=_0x553c46,this[_0x40e85b(0x48f)]=_0x598335,this[_0x40e85b(0x5cd)]=_0x461d18,this[_0x40e85b(0x478)]=_0x4fd497,this[_0x40e85b(0x2f2)]=_0x488747);}get[_0x37a374(0x620)](){const _0x321c5f=_0x37a374;return this[_0x321c5f(0x524)];}async[_0x37a374(0x5ca)](){const _0x34271a=_0x37a374;if(this[_0x34271a(0x620)])throw new Error(_0x34271a(0x3ec));await this[_0x34271a(0x3c3)]();}[_0x37a374(0x52d)](){const _0x15ae7a=_0x37a374;return this[_0x15ae7a(0x5e4)]=!0x0,a[_0x15ae7a(0x219)](()=>{const _0xc1759c=_0x15ae7a;this[_0xc1759c(0x5e4)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x37a374(0x234)](_0x259ca3){const _0x478d99=_0x37a374;this[_0x478d99(0x524)]=_0x259ca3,this[_0x478d99(0x36f)][_0x478d99(0x24e)](_0x259ca3);}async[_0x37a374(0x3c3)](){const _0x482c6f=_0x37a374;var _0x331a8f;this[_0x482c6f(0x234)](await this[_0x482c6f(0x435)]()),this[_0x482c6f(0x2f2)]&&((_0x331a8f=this[_0x482c6f(0x2f2)])==null||_0x331a8f[_0x482c6f(0x500)](this[_0x482c6f(0x505)]),this[_0x482c6f(0x4d6)](this[_0x482c6f(0x2f2)][_0x482c6f(0x468)](this[_0x482c6f(0x505)])['subscribe'](_0x54471f=>{const _0x400e69=_0x482c6f;this[_0x400e69(0x58a)]['debug'](_0x400e69(0x53c),'editing\x20status\x20changed\x20to',_0x54471f),_0x54471f===_n[_0x400e69(0x357)]?(this['_messageService'][_0x400e69(0x5b9)]({'content':this[_0x400e69(0x1c9)]['t']('collaboration.single-unit.warning'),'type':Se[_0x400e69(0x4c0)][_0x400e69(0x54d)]}),this[_0x400e69(0x478)][_0x400e69(0x4d3)](new k[(_0x400e69(0x363))](this[_0x400e69(0x505)])['id'],!0x1),this[_0x400e69(0x478)][_0x400e69(0x30e)](!0x1)):(this[_0x400e69(0x478)][_0x400e69(0x4d3)](new k[(_0x400e69(0x363))](this[_0x400e69(0x505)])['id'],!0x0),this[_0x400e69(0x478)]['setShowComponents'](!0x0));})));let _0xa1aa9e=!0x1;return this[_0x482c6f(0x4d6)](this[_0x482c6f(0x2bb)][_0x482c6f(0x444)]['subscribe'](_0x59ae9c=>{const _0x2c0158=_0x482c6f;_0x59ae9c===re[_0x2c0158(0x1e9)]?this[_0x2c0158(0x5d3)](_0xa1aa9e):_0x59ae9c===re[_0x2c0158(0x320)]&&(_0xa1aa9e=!0x0,this['_toggleOffline']());})),this[_0x482c6f(0x4d6)](this[_0x482c6f(0x2bb)][_0x482c6f(0x5cc)][_0x482c6f(0x274)](_0x226ade=>{const _0x37a6ff=_0x482c6f;try{switch(_0x226ade[_0x37a6ff(0x1d7)]){case p[_0x37a6ff(0x521)]['NEW_CHANGESETS']:{this[_0x37a6ff(0x2cc)](p[_0x37a6ff(0x266)](_0x226ade['data']));break;}case p['CollaborationEvent']['CHANGESET_ACK']:{this[_0x37a6ff(0x35b)](_0x226ade[_0x37a6ff(0x470)]);break;}case p[_0x37a6ff(0x521)][_0x37a6ff(0x466)]:{this[_0x37a6ff(0x42e)]();break;}case p['CollaborationEvent'][_0x37a6ff(0x24f)]:{this[_0x37a6ff(0x57f)](_0x226ade[_0x37a6ff(0x470)]);break;}case p['CollaborationEvent'][_0x37a6ff(0x4af)]:{this['_onFetchMissResult'](_0x226ade[_0x37a6ff(0x470)]['changesets'][_0x37a6ff(0x323)](_0x1bc890=>p[_0x37a6ff(0x266)](_0x1bc890)));break;}case p['CollaborationEvent']['PERMISSION_REJ']:this[_0x37a6ff(0x42e)]({'isPermissionRej':!0x0});}}catch(_0x2405c7){throw console[_0x37a6ff(0x237)](_0x37a6ff(0x40c),_0x2405c7),_0x2405c7;}})),this[_0x482c6f(0x524)];}[_0x37a374(0x569)](){const _0x59c7c8=_0x37a374;this[_0x59c7c8(0x2fe)]=!0x1;}[_0x37a374(0x350)](){const _0x123532=_0x37a374;if(this[_0x123532(0x2fe)])throw new Error(_0x123532(0x586));this[_0x123532(0x2fe)]=!0x0;}[_0x37a374(0x495)](_0x76eb32){const _0x2783c8=_0x37a374;this[_0x2783c8(0x350)](),this[_0x2783c8(0x234)](this[_0x2783c8(0x524)][_0x2783c8(0x1e7)](_0x76eb32)),this['_unlockTransition']();}[_0x37a374(0x2cc)](_0x3a6f88){const _0x1754b8=_0x37a374;if(!(_0x3a6f88[_0x1754b8(0x546)]<=this[_0x1754b8(0x665)][_0x1754b8(0x4b6)](this['unitID']))){if(this[_0x1754b8(0x5e4)]){this['_remoteChangesetQueue'][_0x1754b8(0x257)](_0x3a6f88);return;}this[_0x1754b8(0x3bd)](_0x3a6f88);}}['_exhaustRemoteChangesetQueue'](){const _0x3c4624=_0x37a374;this[_0x3c4624(0x3f2)][_0x3c4624(0x278)](_0x323068=>this[_0x3c4624(0x3bd)](_0x323068)),this[_0x3c4624(0x3f2)]=[];}['_applyRemoteChangeset'](_0x1e0168){const _0x46b928=_0x37a374,_0xef8e10=this[_0x46b928(0x3b4)]['interceptor'][_0x46b928(0x503)](this[_0x46b928(0x3b4)][_0x46b928(0x62d)][_0x46b928(0x3ca)]()[_0x46b928(0x207)])(_0x1e0168[_0x46b928(0x579)],null)||_0x1e0168['mutations'],_0x13f058={..._0x1e0168,'mutations':_0xef8e10};this[_0x46b928(0x350)](),this[_0x46b928(0x234)](this[_0x46b928(0x524)][_0x46b928(0x449)](_0x13f058)),this[_0x46b928(0x569)]();}[_0x37a374(0x35b)](_0x438f64){const _0x5b2f41=_0x37a374;this[_0x5b2f41(0x350)](),this[_0x5b2f41(0x234)](this[_0x5b2f41(0x524)][_0x5b2f41(0x333)](_0x438f64)),this['_unlockTransition']();}[_0x37a374(0x42e)](_0x29092a){const _0x30afc1=_0x37a374;this[_0x30afc1(0x350)](),this[_0x30afc1(0x234)](this['_state']['onRemoteRej'](_0x29092a)),this[_0x30afc1(0x569)]();}[_0x37a374(0x57f)](_0x62b3cb){const _0x2b38b3=_0x37a374;this[_0x2b38b3(0x350)](),this[_0x2b38b3(0x234)](this['_state'][_0x2b38b3(0x1ef)](_0x62b3cb)),this[_0x2b38b3(0x569)]();}['_onFetchMissResult'](_0x51134e){const _0x1dbc33=_0x37a374;if(!(this['_state']instanceof oe))throw new TypeError(_0x1dbc33(0x577));const _0x103670=_0x51134e['map'](_0xfbcc0=>{const _0x1fee43=_0x1dbc33,_0x5a4c0e=this[_0x1fee43(0x3b4)]['interceptor'][_0x1fee43(0x503)](this[_0x1fee43(0x3b4)][_0x1fee43(0x62d)][_0x1fee43(0x3ca)]()['COMPRESS_MUTATION_APPLY'])(_0xfbcc0['mutations'],null)||_0xfbcc0['mutations'];return{..._0xfbcc0,'mutations':_0x5a4c0e};});this['_lockTransition'](),this[_0x1dbc33(0x234)](this[_0x1dbc33(0x524)][_0x1dbc33(0x3b1)](_0x103670)),this[_0x1dbc33(0x569)]();}[_0x37a374(0x406)](){const _0x3c9288=_0x37a374;this[_0x3c9288(0x350)](),this[_0x3c9288(0x234)](this[_0x3c9288(0x524)][_0x3c9288(0x5f0)]()),this[_0x3c9288(0x569)]();}[_0x37a374(0x5d3)](_0x17d4dc=!0x1){const _0x177524=_0x37a374;this[_0x177524(0x350)](),this[_0x177524(0x234)](this[_0x177524(0x524)][_0x177524(0x4a8)]()),this[_0x177524(0x569)]();const _0x3d3323=this[_0x177524(0x524)];_0x17d4dc&&_0x3d3323 instanceof ye&&(this['_lockTransition'](),this[_0x177524(0x234)](_0x3d3323[_0x177524(0x354)]()),this[_0x177524(0x569)]());}async['_createInitialState'](){return new Promise(_0x4f16b9=>{const _0x379dce=_0x513c;this[_0x379dce(0x2bb)]['sessionStatus$'][_0x379dce(0x4d7)](A[_0x379dce(0x630)](0x1))[_0x379dce(0x274)](async _0x2e5c82=>{const _0x255a13=_0x379dce;_0x4f16b9(await this[_0x255a13(0x56c)](_0x2e5c82===re[_0x255a13(0x1e9)]));});});}[_0x37a374(0x622)](){const _0x42f781=_0x37a374,_0x5f4681=this[_0x42f781(0x505)];return{'onStateChange':(_0x4370af,_0x567143)=>{const _0x308cec=_0x42f781;if(_0x4370af!==this[_0x308cec(0x524)])throw new Error(_0x308cec(0x38a)+_0x4370af[_0x308cec(0x58b)]+_0x308cec(0x377)+_0x567143[_0x308cec(0x58b)]+_0x308cec(0x680)+this[_0x308cec(0x524)][_0x308cec(0x58b)]);this[_0x308cec(0x234)](_0x567143);},'onSendChangeset':_0x57555b=>{const _0x59e1e8=_0x42f781;_0x57555b['sid']||(_0x57555b[_0x59e1e8(0x236)]=this[_0x59e1e8(0x1fe)],_0x57555b[_0x59e1e8(0x663)]=++this['_changesetReqId']);const _0xe8c83f={'eventID':p[_0x59e1e8(0x521)][_0x59e1e8(0x380)],'data':{'unitID':_0x57555b['unitID'],'unitType':this[_0x59e1e8(0x52c)],'changeset':_0x57555b,'memberID':this['session'][_0x59e1e8(0x485)]()}};this[_0x59e1e8(0x2bb)][_0x59e1e8(0x554)](_0xe8c83f,this[_0x59e1e8(0x505)]);},'onMissingChangesets':({from:_0x17d737,to:_0x4552e7})=>{const _0x2352a9=_0x42f781;this[_0x2352a9(0x58a)][_0x2352a9(0x643)](_0x2352a9(0x53c),_0x2352a9(0x411)+_0x17d737+_0x2352a9(0x2ef)+_0x4552e7);const _0x4e292c={'eventID':p['CollaborationEvent'][_0x2352a9(0x3e8)],'data':{'unitID':_0x5f4681,'unitType':this[_0x2352a9(0x52c)],'from':_0x17d737,'to':_0x4552e7}};this[_0x2352a9(0x2bb)][_0x2352a9(0x554)](_0x4e292c,this[_0x2352a9(0x505)]);}};}async[_0x37a374(0x56c)](_0x3dabd7){const _0x25d6d7=_0x37a374;var _0x18ad64,_0x56b429;const _0xee46ea=await this[_0x25d6d7(0x1fd)][_0x25d6d7(0x3b8)](this[_0x25d6d7(0x505)]),_0x4ef77d=(_0x18ad64=_0xee46ea==null?void 0x0:_0xee46ea[_0x25d6d7(0x579)])!=null?_0x18ad64:[],_0x4cc3b8=(_0x56b429=_0xee46ea==null?void 0x0:_0xee46ea[_0x25d6d7(0x1fb)])!=null?_0x56b429:null,_0x5b2dee=!!(_0x4cc3b8!=null&&_0x4cc3b8[_0x25d6d7(0x236)])&&!!(_0x4cc3b8!=null&&_0x4cc3b8[_0x25d6d7(0x663)]);this[_0x25d6d7(0x1fe)]=_0x5b2dee?_0x4cc3b8['sid']:di(),this[_0x25d6d7(0x3f9)]=_0x5b2dee?_0x4cc3b8[_0x25d6d7(0x663)]:0x0;const _0x728219=this[_0x25d6d7(0x505)];try{this['_replayCachedMutations'](_0x4cc3b8,_0x4ef77d);}catch(_0x666ab0){this[_0x25d6d7(0x58a)][_0x25d6d7(0x237)](_0x666ab0);}const _0x2a3d17=this[_0x25d6d7(0x622)]();if(_0x3dabd7){const _0x21542d=vn(this[_0x25d6d7(0x58f)],_0x728219,this[_0x25d6d7(0x52c)],_0x4cc3b8,_0x4ef77d,_0x2a3d17);return _0x21542d instanceof ce?_0x21542d[_0x25d6d7(0x57b)]():(_0x21542d instanceof le||_0x21542d instanceof fe)&&_0x21542d[_0x25d6d7(0x282)](),_0x21542d;}return this[_0x25d6d7(0x58f)][_0x25d6d7(0x4bb)](me,_0x728219,this[_0x25d6d7(0x52c)],_0x4cc3b8,_0x4ef77d,_0x2a3d17);}['_replayCachedMutations'](_0xd24bf6,_0x1826f1){const _0x203725=_0x37a374;var _0x4ce6dc,_0x10f8bd;const _0x17dd7a=this['_compressMutationService'][_0x203725(0x62d)]['fetchThroughInterceptors'](this[_0x203725(0x3b4)][_0x203725(0x62d)][_0x203725(0x3ca)]()['COMPRESS_MUTATION_APPLY']);(_0x4ce6dc=_0x17dd7a((_0xd24bf6==null?void 0x0:_0xd24bf6[_0x203725(0x579)])||[],null))==null||_0x4ce6dc[_0x203725(0x278)](_0x26ef07=>this[_0x203725(0x48f)][_0x203725(0x50d)](_0x26ef07['id'],_0x26ef07[_0x203725(0x39d)])),(_0x10f8bd=_0x17dd7a(_0x1826f1||[],null))==null||_0x10f8bd[_0x203725(0x278)](_0x2e1902=>this[_0x203725(0x48f)][_0x203725(0x50d)](_0x2e1902['id'],_0x2e1902['params']));}},exports[_0x37a374(0x4c6)]=Rt([H(0x3,a[_0x37a374(0x629)](a['Injector'])),H(0x4,a['Inject'](exports['LocalCacheService'])),H(0x5,a[_0x37a374(0x629)](p['CompressMutationService'])),H(0x6,a[_0x37a374(0x629)](a[_0x37a374(0x52f)])),H(0x7,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),H(0x8,a[_0x37a374(0x217)]),H(0x9,a['ICommandService']),H(0xa,te['IMessageService']),H(0xb,a[_0x37a374(0x459)]),H(0xc,a[_0x37a374(0x673)](qe))],exports[_0x37a374(0x4c6)]),exports[_0x37a374(0x1ce)]=class extends exports[_0x37a374(0x4c6)]{constructor(_0x1afd70,_0x4b5373,_0x2ac808,_0x2c41a2,_0x2d19ad,_0x504885,_0x2b16b2,_0x2a1ba4,_0x55c422,_0x457a7c,_0x2c4850,_0x323768,_0x44fee2,_0x5cfbc5,_0x529df4,_0x168507,_0x3d912a,_0x1b0bbd){const _0x3002b8=_0x37a374;super(_0x1afd70,_0x2ac808,_0x4b5373,_0x2c41a2,_0x2d19ad,_0x504885,_0x2b16b2,_0x2a1ba4,_0x5cfbc5,_0x529df4,_0x168507,_0x3d912a,_0x1b0bbd),this[_0x3002b8(0x505)]=_0x1afd70,this[_0x3002b8(0x1d2)]=_0x4b5373,this[_0x3002b8(0x509)]=_0x55c422,this[_0x3002b8(0x670)]=_0x457a7c,this[_0x3002b8(0x324)]=_0x2c4850,this['_docTransformSelectionsService']=_0x323768,this[_0x3002b8(0x227)]=_0x44fee2;}[_0x37a374(0x622)](){const _0x1a709b=_0x37a374,_0x184e56=super[_0x1a709b(0x622)]();return _0x184e56['onTransformIME']=_0x110090=>this[_0x1a709b(0x670)][_0x1a709b(0x270)](_0x110090),_0x184e56[_0x1a709b(0x590)]=_0x19685b=>this[_0x1a709b(0x324)][_0x1a709b(0x232)](_0x19685b),_0x184e56['onTransformSelections']=_0x1c30ec=>this[_0x1a709b(0x499)][_0x1a709b(0x3c8)](_0x1c30ec),_0x184e56['onSyncEditingCollabCursor']=_0x6b6982=>this[_0x1a709b(0x227)][_0x1a709b(0x2e9)](_0x6b6982),_0x184e56[_0x1a709b(0x1d6)]=_0x13fcce=>this[_0x1a709b(0x670)][_0x1a709b(0x53d)](_0x13fcce),_0x184e56[_0x1a709b(0x454)]=_0x344946=>this['_docTransformStateCacheService'][_0x1a709b(0x53d)](_0x344946),_0x184e56;}async['_init'](){const _0xaafae1=_0x37a374,_0x88f08e=await super['_init']();return this[_0xaafae1(0x509)][_0xaafae1(0x5a8)][_0xaafae1(0x4d7)](A[_0xaafae1(0x27d)](this[_0xaafae1(0x574)]))['subscribe'](_0x75121f=>{const _0x531651=_0xaafae1;if(_0x75121f==null)return;const {unitId:_0x1340fc,redoState:_0x4a6a61,commandId:_0x193384}=_0x75121f;if(_0x1340fc!==this[_0x531651(0x505)])return;const _0xe0586f={'id':_0x193384,'type':a[_0x531651(0x667)][_0x531651(0x317)],'params':{'unitId':_0x1340fc,'actions':_0x4a6a61[_0x531651(0x3b6)],'textRanges':null}};this[_0x531651(0x495)](_0xe0586f);}),_0x88f08e;}},exports[_0x37a374(0x1ce)]=Rt([H(0x3,a['Inject'](a['Injector'])),H(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),H(0x5,a[_0x37a374(0x629)](p[_0x37a374(0x5e1)])),H(0x6,a['Inject'](a[_0x37a374(0x52f)])),H(0x7,a[_0x37a374(0x629)](p['RevisionService'])),H(0x8,a[_0x37a374(0x629)](Z[_0x37a374(0x36e)])),H(0x9,a['Inject'](Be)),H(0xa,a[_0x37a374(0x629)](We)),H(0xb,a['Inject'](Fe)),H(0xc,a[_0x37a374(0x629)](Tt)),H(0xd,a['ILogService']),H(0xe,a[_0x37a374(0x30c)]),H(0xf,te[_0x37a374(0x3bf)]),H(0x10,a['IPermissionService']),H(0x11,a[_0x37a374(0x673)](qe))],exports[_0x37a374(0x1ce)]),exports[_0x37a374(0x352)]=class extends exports[_0x37a374(0x4c6)]{constructor(_0x2d9a04,_0xe22a2a,_0x4c9bcc,_0x36747e,_0x4535ac,_0x1d4b3b,_0x26c617,_0x6b7c71,_0x1dc266,_0x3422ee,_0x1cc597,_0x22938b,_0x3dd47b,_0xd62b2f){const _0x47bc95=_0x37a374;super(_0x2d9a04,_0x4c9bcc,_0xe22a2a,_0x36747e,_0x4535ac,_0x1d4b3b,_0x26c617,_0x6b7c71,_0x3422ee,_0x1cc597,_0x22938b,_0x3dd47b,_0xd62b2f),this[_0x47bc95(0x505)]=_0x2d9a04,this[_0x47bc95(0x1d2)]=_0xe22a2a,this[_0x47bc95(0x346)]=_0x1dc266;}['_createHandler'](){const _0x4c3715=_0x37a374,_0x193b67=super[_0x4c3715(0x622)]();return _0x193b67[_0x4c3715(0x42f)]=_0x21736d=>this['_sheetTransformSelectionsService'][_0x4c3715(0x3c8)](_0x21736d),_0x193b67;}async[_0x37a374(0x3c3)](){const _0x1344fe=_0x37a374,_0x4bada7=await super[_0x1344fe(0x3c3)]();return this[_0x1344fe(0x4d6)](this[_0x1344fe(0x48f)]['onCommandExecuted']((_0x1a5ef8,_0x2d99c3)=>{const _0x206970=_0x1344fe;if(_0x1a5ef8[_0x206970(0x1d2)]!==a[_0x206970(0x667)][_0x206970(0x317)]||_0x2d99c3!=null&&_0x2d99c3[_0x206970(0x20b)]||_0x2d99c3!=null&&_0x2d99c3[_0x206970(0x64a)])return;const _0x59a49c=_0x1a5ef8[_0x206970(0x39d)];if((_0x59a49c==null?void 0x0:_0x59a49c[_0x206970(0x36d)])!==this[_0x206970(0x505)])return;const _0x3b720d=_0x1a5ef8,_0x1bf9c0=this['_compressMutationService'][_0x206970(0x62d)][_0x206970(0x503)](this['_compressMutationService'][_0x206970(0x62d)][_0x206970(0x3ca)]()[_0x206970(0x312)])([_0x3b720d],null)||[_0x3b720d];this[_0x206970(0x495)](_0x1bf9c0[0x0]);})),_0x4bada7;}},exports['SheetCollaborationEntity']=Rt([H(0x3,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),H(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),H(0x5,a[_0x37a374(0x629)](p['CompressMutationService'])),H(0x6,a[_0x37a374(0x629)](a['LocaleService'])),H(0x7,a[_0x37a374(0x629)](p['RevisionService'])),H(0x8,a['Inject'](ke)),H(0x9,a[_0x37a374(0x217)]),H(0xa,a['ICommandService']),H(0xb,te[_0x37a374(0x3bf)]),H(0xc,a[_0x37a374(0x459)]),H(0xd,a[_0x37a374(0x673)](qe))],exports['SheetCollaborationEntity']);var Hi=Object[_0x37a374(0x55e)],Bi=Object[_0x37a374(0x4a5)],ki=(_0x3a236f,_0x485a5b,_0x3c7801,_0x189a10)=>{const _0x3bdad7=_0x37a374;for(var _0x165fe5=_0x189a10>0x1?void 0x0:_0x189a10?Bi(_0x485a5b,_0x3c7801):_0x485a5b,_0x5eb7a8=_0x3a236f[_0x3bdad7(0x330)]-0x1,_0x6f0a67;_0x5eb7a8>=0x0;_0x5eb7a8--)(_0x6f0a67=_0x3a236f[_0x5eb7a8])&&(_0x165fe5=(_0x189a10?_0x6f0a67(_0x485a5b,_0x3c7801,_0x165fe5):_0x6f0a67(_0x165fe5))||_0x165fe5);return _0x189a10&&_0x165fe5&&Hi(_0x485a5b,_0x3c7801,_0x165fe5),_0x165fe5;},et=(_0x2581c8,_0x57b1ee)=>(_0x21f5af,_0x1fa01c)=>_0x57b1ee(_0x21f5af,_0x1fa01c,_0x2581c8);exports[_0x37a374(0x511)]=class extends a[_0x37a374(0x2f7)]{constructor(_0x394f8,_0x331e04,_0x2cedb3){const _0xc434d7=_0x37a374;super(),I(this,_0xc434d7(0x529),new Map()),I(this,_0xc434d7(0x664),new A[(_0xc434d7(0x383))]()),(this[_0xc434d7(0x58f)]=_0x394f8,this[_0xc434d7(0x5c9)]=_0x331e04,this[_0xc434d7(0x1d4)]=_0x2cedb3,this[_0xc434d7(0x3c3)]());}[_0x37a374(0x37c)](){const _0xacc96c=_0x37a374;super['dispose'](),this[_0xacc96c(0x529)][_0xacc96c(0x278)](_0x4dd68b=>_0x4dd68b[_0xacc96c(0x37c)]()),this[_0xacc96c(0x529)][_0xacc96c(0x65a)]();}[_0x37a374(0x22b)](_0x229424){const _0x39f3d3=_0x37a374;var _0x1df92e;return(_0x1df92e=this[_0x39f3d3(0x529)][_0x39f3d3(0x5bf)](_0x229424))!=null?_0x1df92e:null;}[_0x37a374(0x5ce)](_0x23f443){const _0x555204=_0x37a374,_0x443bc5=this[_0x555204(0x22b)](_0x23f443);return _0x443bc5?A['of'](_0x443bc5):this[_0x555204(0x664)][_0x555204(0x4d7)](V[_0x555204(0x434)](_0x3af32e=>_0x3af32e[_0x555204(0x505)]===_0x23f443));}[_0x37a374(0x3c3)](){const _0x4858d2=_0x37a374;this[_0x4858d2(0x1d4)][_0x4858d2(0x442)](a[_0x4858d2(0x22d)]['UNIVER_SHEET'])[_0x4858d2(0x4d7)](A['takeUntil'](this[_0x4858d2(0x574)]),V[_0x4858d2(0x438)](0x10))[_0x4858d2(0x274)](async _0x18e388=>{const _0x3bdb76=_0x4858d2,_0x5863e3=_0x18e388[_0x3bdb76(0x615)](),_0x2deeab=await this[_0x3bdb76(0x42a)](_0x5863e3,se[_0x3bdb76(0x362)]);this['_entities'][_0x3bdb76(0x5d1)](_0x5863e3,_0x2deeab);}),this[_0x4858d2(0x1d4)][_0x4858d2(0x442)](a['UniverInstanceType'][_0x4858d2(0x619)])[_0x4858d2(0x4d7)](A[_0x4858d2(0x27d)](this[_0x4858d2(0x574)]),V[_0x4858d2(0x438)](0x10))[_0x4858d2(0x4d7)](V[_0x4858d2(0x434)](_0x4ec177=>!_0x4ec177[_0x4858d2(0x615)]()[_0x4858d2(0x3b5)]('__')))[_0x4858d2(0x274)](async _0x19e33f=>{const _0x5c72e0=_0x4858d2,_0xf7d879=_0x19e33f['getUnitId'](),_0x3f83e5=await this[_0x5c72e0(0x42a)](_0xf7d879,se['UNIVER_DOC']);this[_0x5c72e0(0x529)][_0x5c72e0(0x5d1)](_0xf7d879,_0x3f83e5);}),A['merge'](this[_0x4858d2(0x1d4)][_0x4858d2(0x44a)](a[_0x4858d2(0x22d)][_0x4858d2(0x362)]),this[_0x4858d2(0x1d4)][_0x4858d2(0x44a)](a[_0x4858d2(0x22d)][_0x4858d2(0x619)]))['pipe'](A[_0x4858d2(0x27d)](this['dispose$']))[_0x4858d2(0x274)](_0x412578=>{const _0x425359=_0x4858d2,_0x56801f=_0x412578[_0x425359(0x615)](),_0x5f44a8=this[_0x425359(0x529)]['get'](_0x56801f);_0x5f44a8&&(_0x5f44a8[_0x425359(0x37c)](),this[_0x425359(0x529)][_0x425359(0x412)](_0x56801f));});}async[_0x37a374(0x42a)](_0x538e96,_0x349850){const _0x380280=_0x37a374,_0x5c9d16=await this[_0x380280(0x5c9)][_0x380280(0x501)](_0x538e96),_0x207228=this[_0x380280(0x58f)][_0x380280(0x4bb)](this[_0x380280(0x4ff)](_0x349850),_0x538e96,_0x349850,_0x5c9d16);return await _0x207228[_0x380280(0x5ca)](),this['_entityInit$']['next'](_0x207228),_0x207228;}['_getCtorByUniverType'](_0x40f54b){const _0x434a9d=_0x37a374;switch(_0x40f54b){case se[_0x434a9d(0x619)]:return exports[_0x434a9d(0x1ce)];case se['UNIVER_SHEET']:return exports[_0x434a9d(0x352)];default:throw new Error(_0x434a9d(0x5d5)+_0x40f54b);}}},exports[_0x37a374(0x511)]=ki([et(0x0,a['Inject'](a['Injector'])),et(0x1,a[_0x37a374(0x629)](exports[_0x37a374(0x5e2)])),et(0x2,a['IUniverInstanceService'])],exports[_0x37a374(0x511)]);const $t=[_0x37a374(0x2bd),_0x37a374(0x61e),_0x37a374(0x2c6),_0x37a374(0x4fa),_0x37a374(0x3fe),'gold400'];class yt extends a[_0x37a374(0x65c)]{constructor(){const _0x246b7c=_0x37a374;super(...arguments),I(this,_0x246b7c(0x37e),new Map()),I(this,'_colorIndex',0x0);}[_0x37a374(0x47b)](_0x40bd60){const _0x5b9abb=_0x37a374;if(this['_assignedColors'][_0x5b9abb(0x244)](_0x40bd60))return this[_0x5b9abb(0x37e)][_0x5b9abb(0x5bf)](_0x40bd60);const _0x5ea33f=$t[this[_0x5b9abb(0x5c4)]];return this[_0x5b9abb(0x5c4)]=(this[_0x5b9abb(0x5c4)]+0x1)%$t['length'],this[_0x5b9abb(0x37e)]['set'](_0x40bd60,_0x5ea33f),_0x5ea33f;}}var Wi=Object['defineProperty'],Fi=Object[_0x37a374(0x4a5)],Vi=(_0x1a78cb,_0x22c9ce,_0x4b7f35,_0x175071)=>{const _0x35d278=_0x37a374;for(var _0x32378f=_0x175071>0x1?void 0x0:_0x175071?Fi(_0x22c9ce,_0x4b7f35):_0x22c9ce,_0xf0bc=_0x1a78cb[_0x35d278(0x330)]-0x1,_0x37c9c7;_0xf0bc>=0x0;_0xf0bc--)(_0x37c9c7=_0x1a78cb[_0xf0bc])&&(_0x32378f=(_0x175071?_0x37c9c7(_0x22c9ce,_0x4b7f35,_0x32378f):_0x37c9c7(_0x32378f))||_0x32378f);return _0x175071&&_0x32378f&&Wi(_0x22c9ce,_0x4b7f35,_0x32378f),_0x32378f;},pe=(_0x1b7fca,_0xb9299a)=>(_0x36e75b,_0x1d5ff5)=>_0xb9299a(_0x36e75b,_0x1d5ff5,_0x1b7fca);const Gi=0x12c,Yi=0x64;let vt=class extends a[_0x37a374(0x2f7)]{constructor(_0x316666,_0x6f9d8,_0x416f22,_0x58775a,_0x3dd76e,_0x231a5b,_0x331154,_0x1ab3f0,_0x409821){const _0x29ae2a=_0x37a374;super(),I(this,_0x29ae2a(0x669),!0x1),I(this,_0x29ae2a(0x3c3),!0x1),I(this,_0x29ae2a(0x4c2),new A[(_0x29ae2a(0x441))](new Map())),I(this,'cursorInfo$',this[_0x29ae2a(0x4c2)][_0x29ae2a(0x483)]()),I(this,_0x29ae2a(0x653),new A[(_0x29ae2a(0x441))]([])),I(this,_0x29ae2a(0x587),this[_0x29ae2a(0x653)][_0x29ae2a(0x4d7)](A[_0x29ae2a(0x1e3)](Gi))),I(this,'_updateLocalCursor',a[_0x29ae2a(0x1f4)](_0x300d7d=>{const _0x2719ba=_0x29ae2a,_0x32ecbb={'eventID':p[_0x2719ba(0x521)][_0x2719ba(0x2f6)],'data':{'unitID':this[_0x2719ba(0x505)],'memberID':this['_session'][_0x2719ba(0x485)](),'selection':un(_0x300d7d)}};this['_session'][_0x2719ba(0x554)](_0x32ecbb,this['unitID']);},Yi)),(this[_0x29ae2a(0x505)]=_0x316666,this['_session']=_0x6f9d8,this['_injector']=_0x416f22,this[_0x29ae2a(0x591)]=_0x58775a,this[_0x29ae2a(0x5f6)]=_0x3dd76e,this[_0x29ae2a(0x3a0)]=_0x231a5b,this[_0x29ae2a(0x541)]=_0x331154,this['_univerInstanceService']=_0x1ab3f0,this[_0x29ae2a(0x48f)]=_0x409821);}get['cursorInfo'](){const _0x57c9c0=_0x37a374;return this[_0x57c9c0(0x4c2)]['getValue']();}get['roomMembers'](){const _0x47e707=_0x37a374;return this[_0x47e707(0x653)]['getValue']();}[_0x37a374(0x37c)](){const _0x7bc6e4=_0x37a374;super[_0x7bc6e4(0x37c)](),this[_0x7bc6e4(0x4c2)][_0x7bc6e4(0x24e)](new Map()),this[_0x7bc6e4(0x4c2)]['complete'](),this[_0x7bc6e4(0x653)][_0x7bc6e4(0x24e)]([]),this[_0x7bc6e4(0x653)][_0x7bc6e4(0x1c0)]();}[_0x37a374(0x5ca)](){const _0x15075b=_0x37a374;this['_init']||(this[_0x15075b(0x3c3)]=!0x0,this['_session']['sessionStatus$']['pipe'](A[_0x15075b(0x27d)](this['dispose$']))[_0x15075b(0x274)](_0x41dcb1=>{const _0x8d29f4=_0x15075b;_0x41dcb1===re[_0x8d29f4(0x1e9)]?this['_toggleOnline']():this[_0x8d29f4(0x406)]();}),this['_session'][_0x15075b(0x5cc)][_0x15075b(0x4d7)](A[_0x15075b(0x27d)](this['dispose$']))[_0x15075b(0x274)](_0x512c89=>{const _0x149ab9=_0x15075b,_0x55043e=_0x512c89[_0x149ab9(0x1d7)];_0x55043e===p[_0x149ab9(0x521)][_0x149ab9(0x2f6)]&&this[_0x149ab9(0x5f8)](_0x512c89),_0x55043e===p[_0x149ab9(0x521)][_0x149ab9(0x5de)]&&this[_0x149ab9(0x4dd)](_0x512c89);}),this[_0x15075b(0x4d6)](this[_0x15075b(0x48f)][_0x15075b(0x3d8)](_0x357aff=>{const _0x6c23f5=_0x15075b,_0x19aea3=_0x357aff[_0x6c23f5(0x39d)];_0x19aea3!=null&&this[_0x6c23f5(0x669)]&&_0x357aff['id']===Re[_0x6c23f5(0x46a)]['id']&&_0x19aea3['unitId']===this[_0x6c23f5(0x505)]&&_0x19aea3[_0x6c23f5(0x44f)]===!0x1&&_0x19aea3[_0x6c23f5(0x609)][_0x6c23f5(0x330)]>0x0&&this[_0x6c23f5(0x66b)](_0x19aea3[_0x6c23f5(0x609)]);})),this[_0x15075b(0x3a0)][_0x15075b(0x292)][_0x15075b(0x4d7)](A[_0x15075b(0x27d)](this[_0x15075b(0x574)]))[_0x15075b(0x274)](_0xd821a8=>{const _0x5dec48=_0x15075b;if((_0xd821a8==null?void 0x0:_0xd821a8['unitID'])!==this['unitID'])return;const _0x24375e={'eventID':p['CollaborationEvent']['UPDATE_CURSOR'],'data':_0xd821a8};this[_0x5dec48(0x5f8)](_0x24375e);}),this['disposeWithMe'](this[_0x15075b(0x48f)][_0x15075b(0x3d8)](_0x529f14=>{const _0x461274=_0x15075b;if(_0x529f14[_0x461274(0x39d)]==null)return;const _0x35b7c4=_0x529f14[_0x461274(0x39d)];if(_0x529f14['id']!==Re[_0x461274(0x578)]['id']||_0x35b7c4[_0x461274(0x36d)]!==this[_0x461274(0x505)])return;const _0x1ba061={'id':_0x461274(0x3a1),'params':_0x35b7c4},_0x273bee=this[_0x461274(0x39e)];for(const [_0x473f6d,_0x140ded]of _0x273bee){const _0xa1ba68={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x461274(0x505)],'actions':null,'textRanges':_0x140ded['ranges']}},_0x2de5e1=this[_0x461274(0x541)][_0x461274(0x337)](_0x1ba061,_0xa1ba68,!0x1);if(p[_0x461274(0x358)](_0x2de5e1))throw _0x2de5e1[_0x461274(0x237)];_0x273bee[_0x461274(0x5d1)](_0x473f6d,{..._0x140ded,'ranges':_0x2de5e1[_0x461274(0x3b2)][_0x461274(0x39d)][_0x461274(0x5ed)]});}queueMicrotask(()=>{const _0x3465a1=_0x461274;this[_0x3465a1(0x4c2)][_0x3465a1(0x24e)](_0x273bee);});})));}[_0x37a374(0x5f8)](_0x1cef96){const _0x5d9766=_0x37a374;var _0x414069,_0x2c3933;const {memberID:_0x1c2e88,selection:_0x29fb95}=_0x1cef96['data'],_0x3b18a8=Di(_0x29fb95),_0x57b63c=(_0x2c3933=(_0x414069=this[_0x5d9766(0x5f6)][_0x5d9766(0x2f4)](this[_0x5d9766(0x505)],_0x1c2e88))==null?void 0x0:_0x414069[_0x5d9766(0x21c)])!=null?_0x2c3933:_0x5d9766(0x2da),_0x3f0676={'color':this[_0x5d9766(0x591)][_0x5d9766(0x47b)](_0x1c2e88),'name':_0x57b63c,'ranges':_0x3b18a8},_0x4749d4=this[_0x5d9766(0x39e)];_0x4749d4['set'](_0x1c2e88,_0x3f0676),this[_0x5d9766(0x4c2)][_0x5d9766(0x24e)](_0x4749d4);}[_0x37a374(0x4dd)](_0x51764b){const _0x2a3196=_0x37a374,{memberID:_0x26ff9d}=_0x51764b[_0x2a3196(0x470)],_0x1c9308=this['cursorInfo'];_0x1c9308[_0x2a3196(0x412)](_0x26ff9d),this[_0x2a3196(0x4c2)][_0x2a3196(0x24e)](_0x1c9308);}['_toggleOnline'](){const _0x115957=_0x37a374;var _0x9e80e2;if(this['_online']=!0x0,((_0x9e80e2=this[_0x115957(0x1d4)][_0x115957(0x2cf)]())==null?void 0x0:_0x9e80e2[_0x115957(0x615)]())!==this['unitID'])return;const _0x52185a=this['_injector'][_0x115957(0x5bf)](Re[_0x115957(0x1fc)])[_0x115957(0x247)]();Array[_0x115957(0x338)](_0x52185a)&&_0x52185a['length']>0x0&&this[_0x115957(0x66b)](_0x52185a);}[_0x37a374(0x406)](){const _0x255a8b=_0x37a374;this[_0x255a8b(0x669)]=!0x1;}};vt=Vi([pe(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),pe(0x3,a[_0x37a374(0x629)](yt)),pe(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x33d)])),pe(0x5,a['Inject'](Tt)),pe(0x6,p[_0x37a374(0x214)]),pe(0x7,a[_0x37a374(0x662)]),pe(0x8,a['ICommandService'])],vt);var Ki=Object[_0x37a374(0x55e)],qi=Object[_0x37a374(0x4a5)],zi=(_0x50ca80,_0x586fe6,_0xd02a9c,_0x550dbd)=>{for(var _0x26ebd9=_0x550dbd>0x1?void 0x0:_0x550dbd?qi(_0x586fe6,_0xd02a9c):_0x586fe6,_0x5d4e71=_0x50ca80['length']-0x1,_0x298379;_0x5d4e71>=0x0;_0x5d4e71--)(_0x298379=_0x50ca80[_0x5d4e71])&&(_0x26ebd9=(_0x550dbd?_0x298379(_0x586fe6,_0xd02a9c,_0x26ebd9):_0x298379(_0x26ebd9))||_0x26ebd9);return _0x550dbd&&_0x26ebd9&&Ki(_0x586fe6,_0xd02a9c,_0x26ebd9),_0x26ebd9;},Ee=(_0x5e5ada,_0x2dcbe7)=>(_0x591901,_0x1b5c39)=>_0x2dcbe7(_0x591901,_0x1b5c39,_0x5e5ada);const Xi=0x12c,Ji=0x64,Zi=()=>{let _0x2e4d38=[],_0x58ed1e=!0x1;return _0x18e70c=>{const _0x395ce0=_0x513c;_0x2e4d38[_0x395ce0(0x257)](_0x18e70c),_0x58ed1e||(_0x58ed1e=!0x0,setTimeout(()=>{const _0x3cd62f=_0x395ce0;_0x2e4d38[_0x3cd62f(0x278)](_0x3a3110=>_0x3a3110()),_0x2e4d38=[],_0x58ed1e=!0x1;}));};};let mt=class extends a[_0x37a374(0x2f7)]{constructor(_0xf05a92,_0x717ad2,_0x50f8d4,_0xe5fe03,_0x5727ac,_0x317408,_0x20af47,_0x7fd335){const _0x1128aa=_0x37a374;super(),I(this,_0x1128aa(0x669),!0x1),I(this,'_init',!0x1),I(this,_0x1128aa(0x4c2),new A['BehaviorSubject'](new Map())),I(this,_0x1128aa(0x426),this['_cursorInfo$'][_0x1128aa(0x483)]()),I(this,_0x1128aa(0x653),new A['BehaviorSubject']([])),I(this,_0x1128aa(0x587),this[_0x1128aa(0x653)][_0x1128aa(0x4d7)](A[_0x1128aa(0x1e3)](Xi))),I(this,_0x1128aa(0x66b),a[_0x1128aa(0x1f4)]((_0x3911a5,_0x14dff1)=>{const _0x128532=_0x1128aa,_0x57926e={'eventID':p[_0x128532(0x521)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x128532(0x522)][_0x128532(0x485)](),'selection':wt[_0x128532(0x50e)](_0x3911a5,_0x14dff1['range'])}};this[_0x128532(0x522)][_0x128532(0x554)](_0x57926e,this[_0x128532(0x505)]);},Ji)),(this[_0x1128aa(0x505)]=_0xf05a92,this[_0x1128aa(0x522)]=_0x717ad2,this[_0x1128aa(0x58f)]=_0x50f8d4,this[_0x1128aa(0x591)]=_0xe5fe03,this[_0x1128aa(0x5f6)]=_0x5727ac,this['_univerInstanceService']=_0x317408,this[_0x1128aa(0x48f)]=_0x20af47,this[_0x1128aa(0x2fd)]=_0x7fd335);}get[_0x37a374(0x39e)](){const _0xf4f35a=_0x37a374;return this[_0xf4f35a(0x4c2)][_0xf4f35a(0x565)]();}get[_0x37a374(0x290)](){const _0x2c4492=_0x37a374;return this[_0x2c4492(0x653)][_0x2c4492(0x565)]();}[_0x37a374(0x37c)](){const _0x5762aa=_0x37a374;super[_0x5762aa(0x37c)](),this[_0x5762aa(0x4c2)]['next'](new Map()),this[_0x5762aa(0x4c2)][_0x5762aa(0x1c0)](),this[_0x5762aa(0x653)][_0x5762aa(0x24e)]([]),this[_0x5762aa(0x653)][_0x5762aa(0x1c0)]();}[_0x37a374(0x5ca)](){const _0x2ea213=_0x37a374;this[_0x2ea213(0x3c3)]||(this[_0x2ea213(0x3c3)]=!0x0,this['_session'][_0x2ea213(0x444)][_0x2ea213(0x4d7)](A[_0x2ea213(0x27d)](this['dispose$']))[_0x2ea213(0x274)](_0x2c419e=>{const _0x26fb7=_0x2ea213;_0x2c419e===re[_0x26fb7(0x1e9)]?this[_0x26fb7(0x5d3)]():this['_toggleOffline']();}),this['_session'][_0x2ea213(0x5cc)]['pipe'](A[_0x2ea213(0x27d)](this[_0x2ea213(0x574)]))[_0x2ea213(0x274)](_0x1607a5=>{const _0x4ac490=_0x2ea213,_0x562549=_0x1607a5['eventID'];_0x562549===p[_0x4ac490(0x521)][_0x4ac490(0x2f6)]&&this[_0x4ac490(0x5f8)](_0x1607a5),_0x562549===p[_0x4ac490(0x521)][_0x4ac490(0x5de)]&&this['_onCursorDelete'](_0x1607a5);}),this[_0x2ea213(0x272)](),this['disposeWithMe'](this['_commandService'][_0x2ea213(0x3d8)](_0x415c2b=>{const _0x221456=_0x2ea213;if(this[_0x221456(0x669)]&&_0x415c2b['id']===k[_0x221456(0x531)]['id']&&_0x415c2b[_0x221456(0x39d)]['unitId']===this[_0x221456(0x505)]){const _0x2c1a1f=_0x415c2b[_0x221456(0x39d)];this[_0x221456(0x66b)](_0x2c1a1f[_0x221456(0x561)],_0x2c1a1f[_0x221456(0x5b0)][0x0]);}})));}[_0x37a374(0x5f8)](_0x5c36cb){const _0x1427fe=_0x37a374;var _0x1ae20d,_0x4cdb70;const {memberID:_0x4e0e73,selection:_0x32ce68}=_0x5c36cb['data'],{sheetName:_0x3f6faa,range:_0x262971}=wt['deserializeRangeWithSheet'](_0x32ce68),_0x5cc600={'name':(_0x4cdb70=(_0x1ae20d=this[_0x1427fe(0x5f6)]['getMember'](this[_0x1427fe(0x505)],_0x4e0e73))==null?void 0x0:_0x1ae20d[_0x1427fe(0x21c)])!=null?_0x4cdb70:_0x1427fe(0x2da),'range':this[_0x1427fe(0x429)](_0x3f6faa,_0x262971),'sheetID':_0x3f6faa,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x4e0e73),'selection':_0x32ce68},_0x57efff=this[_0x1427fe(0x39e)];_0x57efff[_0x1427fe(0x5d1)](_0x4e0e73,_0x5cc600),this['_cursorInfo$'][_0x1427fe(0x24e)](_0x57efff);}[_0x37a374(0x4dd)](_0x105959){const _0x53ff7e=_0x37a374,{memberID:_0x4b8785}=_0x105959[_0x53ff7e(0x470)],_0x5964a8=this[_0x53ff7e(0x39e)];_0x5964a8[_0x53ff7e(0x412)](_0x4b8785),this[_0x53ff7e(0x4c2)][_0x53ff7e(0x24e)](_0x5964a8);}[_0x37a374(0x429)](_0x492690,_0x23691d){const _0x1c29e9=_0x37a374;var _0x2598f6,_0x45bd00;const _0x457716=(_0x45bd00=(_0x2598f6=this[_0x1c29e9(0x1d4)][_0x1c29e9(0x5a6)](this[_0x1c29e9(0x505)]))==null?void 0x0:_0x2598f6[_0x1c29e9(0x287)](_0x492690))==null?void 0x0:_0x45bd00[_0x1c29e9(0x30d)]();return(_0x457716==null?void 0x0:_0x457716['find'](_0x4c7691=>a[_0x1c29e9(0x382)][_0x1c29e9(0x655)](_0x4c7691,_0x23691d)))||_0x23691d;}['_onRefRangeChange'](){const _0x4bee7d=_0x37a374,_0x1898d2=new a['DisposableCollection'](),_0x3b13cd=Zi(),_0x5475e3=()=>{const _0x17b1de=_0x513c;_0x1898d2['dispose']();const _0x3e7b5c=(_0x4ab588,_0x1bd919,_0x98d3a2,_0x38bf31)=>{const _0xfa106e=_0x513c;let _0x292200=[];switch(_0x4ab588['id']){case k[_0xfa106e(0x26b)][_0xfa106e(0x4fe)]:{_0x292200=k[_0xfa106e(0x2b2)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x428)]:{_0x292200=k['handleDeleteRangeMoveUp'](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x5bc)]:{_0x292200=k[_0xfa106e(0x34b)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)]['InsertRangeMoveDownCommandId']:{_0x292200=k[_0xfa106e(0x580)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x53f)]:{_0x292200=k[_0xfa106e(0x2d9)](_0x4ab588,_0x38bf31);break;}case k['EffectRefRangId'][_0xfa106e(0x674)]:{_0x292200=k[_0xfa106e(0x3ce)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x5cf)]:{_0x292200=k[_0xfa106e(0x5aa)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x650)]:{_0x292200=k[_0xfa106e(0x2c2)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)]['RemoveRowCommandId']:{_0x292200=k[_0xfa106e(0x4b2)](_0x4ab588,_0x38bf31);break;}}const _0x808844=k[_0xfa106e(0x5ac)](_0x292200,_0x38bf31),_0x45caa9=this[_0xfa106e(0x39e)][_0xfa106e(0x5bf)](_0x1bd919);if(_0x45caa9&&_0x808844){const _0x45153a={..._0x45caa9,'range':_0x808844};this[_0xfa106e(0x39e)][_0xfa106e(0x5d1)](_0x1bd919,_0x45153a),_0x3b13cd(()=>{const _0x651282=_0xfa106e,_0xefd84d=this[_0x651282(0x2fd)][_0x651282(0x496)](_0x808844,_0x4802ca=>(_0xefd84d[_0x651282(0x37c)](),_0x3e7b5c(_0x4802ca,_0x1bd919,_0x98d3a2,_0x808844)));_0x1898d2['add'](_0xefd84d);});}return{'redos':[],'undos':[]};};this[_0x17b1de(0x39e)]['forEach']((_0x12be22,_0x43a7d2)=>{const _0x5de0d3=_0x17b1de,{range:_0x4258a4,sheetID:_0x4183c3}=_0x12be22,_0x410418=this[_0x5de0d3(0x2fd)][_0x5de0d3(0x496)](_0x4258a4,_0x951175=>(_0x410418[_0x5de0d3(0x37c)](),_0x3e7b5c(_0x951175,_0x43a7d2,_0x4183c3,_0x4258a4)));_0x1898d2[_0x5de0d3(0x63d)](_0x410418);});};this[_0x4bee7d(0x4d6)](a[_0x4bee7d(0x219)](this[_0x4bee7d(0x4c2)][_0x4bee7d(0x274)](()=>{_0x5475e3();})));}[_0x37a374(0x5d3)](){const _0x3dca84=_0x37a374;var _0x1eb578,_0x5afd45;if(this[_0x3dca84(0x669)]=!0x0,((_0x1eb578=this[_0x3dca84(0x1d4)][_0x3dca84(0x2cf)]())==null?void 0x0:_0x1eb578['getUnitId']())!==this[_0x3dca84(0x505)])return;const _0x3bfd1a=(_0x5afd45=this[_0x3dca84(0x58f)][_0x3dca84(0x5bf)](k[_0x3dca84(0x3f7)])[_0x3dca84(0x344)]())==null?void 0x0:_0x5afd45[0x0],_0x14effa=this[_0x3dca84(0x1d4)][_0x3dca84(0x5a9)](a['UniverInstanceType'][_0x3dca84(0x362)])[_0x3dca84(0x25a)]();_0x3bfd1a&&_0x14effa&&this[_0x3dca84(0x66b)](_0x14effa['getSheetId'](),_0x3bfd1a);}[_0x37a374(0x406)](){const _0x49af3e=_0x37a374;this[_0x49af3e(0x669)]=!0x1;}};mt=zi([Ee(0x2,a[_0x37a374(0x629)](a['Injector'])),Ee(0x3,a[_0x37a374(0x629)](yt)),Ee(0x4,a['Inject'](exports[_0x37a374(0x33d)])),Ee(0x5,a[_0x37a374(0x662)]),Ee(0x6,a['ICommandService']),Ee(0x7,a[_0x37a374(0x629)](k['RefRangeService']))],mt);var Qi=Object['defineProperty'],es=Object[_0x37a374(0x4a5)],ts=(_0x3498d0,_0x4693ff,_0x4ac269,_0x4b7fef)=>{const _0x4f832e=_0x37a374;for(var _0x5b63f2=_0x4b7fef>0x1?void 0x0:_0x4b7fef?es(_0x4693ff,_0x4ac269):_0x4693ff,_0x15b997=_0x3498d0[_0x4f832e(0x330)]-0x1,_0x46192d;_0x15b997>=0x0;_0x15b997--)(_0x46192d=_0x3498d0[_0x15b997])&&(_0x5b63f2=(_0x4b7fef?_0x46192d(_0x4693ff,_0x4ac269,_0x5b63f2):_0x46192d(_0x5b63f2))||_0x5b63f2);return _0x4b7fef&&_0x5b63f2&&Qi(_0x4693ff,_0x4ac269,_0x5b63f2),_0x5b63f2;},tt=(_0x440c56,_0x10ec2e)=>(_0x37e435,_0x500c4c)=>_0x10ec2e(_0x37e435,_0x500c4c,_0x440c56);let Oe=class extends a[_0x37a374(0x2f7)]{constructor(_0x22b974,_0x28465f,_0x40e68f){const _0x10ef65=_0x37a374;super(),I(this,_0x10ef65(0x529),new Map()),I(this,'_entityInit$',new A[(_0x10ef65(0x383))]()),(this[_0x10ef65(0x1d4)]=_0x22b974,this[_0x10ef65(0x58f)]=_0x28465f,this[_0x10ef65(0x5c9)]=_0x40e68f,this['_init']());}[_0x37a374(0x37c)](){const _0x584f46=_0x37a374;super['dispose'](),this[_0x584f46(0x664)]['complete'](),this[_0x584f46(0x529)][_0x584f46(0x278)](_0x35dfff=>_0x35dfff['dispose']());}[_0x37a374(0x2e7)](_0xeac2e8){const _0x133274=_0x37a374;return this['_entities'][_0x133274(0x244)](_0xeac2e8)?this[_0x133274(0x529)]['get'](_0xeac2e8)[_0x133274(0x426)]:this[_0x133274(0x664)][_0x133274(0x4d7)](A[_0x133274(0x434)](_0x4bed0f=>_0x4bed0f[_0x133274(0x505)]===_0xeac2e8),A['switchMap'](_0x486d03=>_0x486d03[_0x133274(0x426)]));}[_0x37a374(0x3c3)](){const _0x1120d1=_0x37a374;this[_0x1120d1(0x1d4)]['getTypeOfUnitAdded$'](a[_0x1120d1(0x22d)][_0x1120d1(0x362)])[_0x1120d1(0x4d7)](A[_0x1120d1(0x27d)](this[_0x1120d1(0x574)]))['subscribe'](async _0x46909c=>{const _0x2d434b=_0x1120d1,_0x1747e5=_0x46909c[_0x2d434b(0x615)](),_0x479db9=await this[_0x2d434b(0x473)](_0x1747e5);this[_0x2d434b(0x664)][_0x2d434b(0x24e)](_0x479db9),this['_entities'][_0x2d434b(0x5d1)](_0x1747e5,_0x479db9);}),this[_0x1120d1(0x1d4)]['getTypeOfUnitAdded$'](a[_0x1120d1(0x22d)][_0x1120d1(0x619)])[_0x1120d1(0x4d7)](A['takeUntil'](this[_0x1120d1(0x574)]))[_0x1120d1(0x4d7)](A[_0x1120d1(0x434)](_0x1832e5=>!_0x1832e5[_0x1120d1(0x615)]()[_0x1120d1(0x3b5)]('__')))[_0x1120d1(0x274)](async _0x52813f=>{const _0x46bc44=_0x1120d1,_0x5b43e3=_0x52813f['getUnitId'](),_0x5a25bb=await this[_0x46bc44(0x573)](_0x5b43e3);this['_entityInit$']['next'](_0x5a25bb),this[_0x46bc44(0x529)][_0x46bc44(0x5d1)](_0x5b43e3,_0x5a25bb);}),A[_0x1120d1(0x28d)](this[_0x1120d1(0x1d4)]['getTypeOfUnitDisposed$'](a[_0x1120d1(0x22d)]['UNIVER_DOC']),this[_0x1120d1(0x1d4)][_0x1120d1(0x44a)](a[_0x1120d1(0x22d)][_0x1120d1(0x362)]))['pipe'](A[_0x1120d1(0x27d)](this[_0x1120d1(0x574)]))[_0x1120d1(0x274)](_0x29ffb8=>{const _0x33a738=_0x1120d1,_0x4f1330=_0x29ffb8['getUnitId'](),_0x257b7e=this[_0x33a738(0x529)][_0x33a738(0x5bf)](_0x4f1330);_0x257b7e&&(_0x257b7e[_0x33a738(0x37c)](),this[_0x33a738(0x529)][_0x33a738(0x412)](_0x4f1330));});}async['_startSheetCollabCursor'](_0x362d3c){const _0x29a6d2=_0x37a374,_0x294f37=await this[_0x29a6d2(0x5c9)][_0x29a6d2(0x501)](_0x362d3c),_0x1110be=this[_0x29a6d2(0x58f)][_0x29a6d2(0x4bb)](mt,_0x362d3c,_0x294f37);return _0x1110be[_0x29a6d2(0x5ca)](),_0x1110be;}async[_0x37a374(0x573)](_0x25ca9f){const _0x29b42c=_0x37a374,_0x243944=await this[_0x29b42c(0x5c9)][_0x29b42c(0x501)](_0x25ca9f),_0x2fd737=this[_0x29b42c(0x58f)][_0x29b42c(0x4bb)](vt,_0x25ca9f,_0x243944);return _0x2fd737[_0x29b42c(0x5ca)](),_0x2fd737;}};Oe=ts([tt(0x0,a[_0x37a374(0x662)]),tt(0x1,a[_0x37a374(0x629)](a['Injector'])),tt(0x2,a[_0x37a374(0x629)](exports[_0x37a374(0x5e2)]))],Oe);const Ne=0x14,jt=0xc8,nt=0x4,ns=0x5;function is(_0x2c06da,_0x10f3c3){const _0x569ba9=_0x37a374;let {radius:_0x5a5372,width:_0xf9ca36,height:_0x1ee8bc}=_0x10f3c3;_0x5a5372=_0x5a5372!=null?_0x5a5372:0x0,_0xf9ca36=_0xf9ca36!=null?_0xf9ca36:0x1e,_0x1ee8bc=_0x1ee8bc!=null?_0x1ee8bc:0x1e;let _0x3bf48f=0x0,_0x591ca6=0x0,_0x17e0df=0x0;_0x3bf48f=_0x591ca6=_0x17e0df=Math[_0x569ba9(0x242)](_0x5a5372,_0xf9ca36/0x2,_0x1ee8bc/0x2),_0x2c06da[_0x569ba9(0x1e2)](),_0x2c06da[_0x569ba9(0x1f9)](_0x3bf48f,0x0),_0x2c06da[_0x569ba9(0x4ec)](_0xf9ca36-_0x591ca6,0x0),_0x2c06da[_0x569ba9(0x5a4)](_0xf9ca36-_0x591ca6,_0x591ca6,_0x591ca6,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c06da[_0x569ba9(0x4ec)](_0xf9ca36,_0x1ee8bc-_0x17e0df),_0x2c06da[_0x569ba9(0x5a4)](_0xf9ca36-_0x17e0df,_0x1ee8bc-_0x17e0df,_0x17e0df,0x0,Math['PI']/0x2,!0x1),_0x2c06da[_0x569ba9(0x4ec)](0x0,_0x1ee8bc),_0x2c06da['lineTo'](0x0,_0x3bf48f),_0x2c06da[_0x569ba9(0x5a4)](_0x3bf48f,_0x3bf48f,_0x3bf48f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c06da['closePath'](),_0x10f3c3[_0x569ba9(0x2dc)]&&(_0x2c06da['save'](),_0x2c06da[_0x569ba9(0x2ac)]=_0x10f3c3[_0x569ba9(0x2dc)],_0x10f3c3[_0x569ba9(0x22c)]===_0x569ba9(0x4e3)?_0x2c06da[_0x569ba9(0x2dc)](_0x569ba9(0x4e3)):_0x2c06da[_0x569ba9(0x2dc)](),_0x2c06da[_0x569ba9(0x54b)]());}class ze extends K['Shape']{constructor(_0x266460,_0x4c9b5b){const _0x43521a=_0x37a374;super(_0x266460,_0x4c9b5b),I(this,_0x43521a(0x422)),I(this,_0x43521a(0x490)),(this[_0x43521a(0x422)]=_0x4c9b5b==null?void 0x0:_0x4c9b5b[_0x43521a(0x422)],this[_0x43521a(0x490)]=_0x4c9b5b==null?void 0x0:_0x4c9b5b['text']);}static[_0x37a374(0x65e)](_0x2b994c,_0x5e5c63){const _0x4694a8=_0x37a374,{text:_0x11ceab,color:_0x5290c3}=_0x5e5c63;_0x2b994c[_0x4694a8(0x2eb)](),_0x2b994c[_0x4694a8(0x618)]=_0x4694a8(0x1dc);const _0x4f3d33=_0x2b994c[_0x4694a8(0x67e)](_0x11ceab)[_0x4694a8(0x3d1)],_0x2993fd=Math[_0x4694a8(0x242)](_0x4f3d33+0x2*nt,jt);is(_0x2b994c,{'height':Ne,'radius':0x4,'width':_0x2993fd,'fill':_0x5290c3,'evented':!0x1}),_0x2b994c[_0x4694a8(0x2ac)]=_0x4694a8(0x467);const _0x29f60f=nt,_0x431450=Ne-ns,_0x9766f7=jt-0x2*nt;if(_0x4f3d33>_0x9766f7){let _0x1d3feb='',_0xde1519=0x0;for(const _0x23c4b2 of _0x11ceab){const _0x434b06=_0x2b994c['measureText'](_0x23c4b2)[_0x4694a8(0x3d1)];if(_0xde1519+_0x434b06<=_0x9766f7-_0x2b994c[_0x4694a8(0x67e)](_0x4694a8(0x4a7))[_0x4694a8(0x3d1)])_0x1d3feb+=_0x23c4b2,_0xde1519+=_0x434b06;else{_0x1d3feb+=_0x4694a8(0x4a7);break;}}_0x2b994c[_0x4694a8(0x262)](_0x1d3feb,_0x29f60f,_0x431450);}else _0x2b994c[_0x4694a8(0x262)](_0x11ceab,_0x29f60f,_0x431450);_0x2b994c['restore']();}[_0x37a374(0x634)](_0x42c4ab){const _0x4bd1db=_0x37a374;ze[_0x4bd1db(0x65e)](_0x42c4ab,this);}}const it=_0x37a374(0x593),ss=_0x37a374(0x3d5),rs=_0x37a374(0x1e8),Pe=0x6,os=1.5,st=0x4,as=1.5,cs='rgba(255,\x20255,\x20255,\x200.01)';class Ht{constructor(_0x14b0f6,_0x370c3d,_0x4a74bc,_0x1c0a8f){const _0x37fdec=_0x37a374;I(this,'_shapes',[]),I(this,'_anchor',null),I(this,_0x37fdec(0x458),null),I(this,_0x37fdec(0x63b),null),I(this,_0x37fdec(0x4ca),null),I(this,_0x37fdec(0x276),null),(this[_0x37fdec(0x24b)]=_0x14b0f6,this[_0x37fdec(0x32d)]=_0x370c3d,this[_0x37fdec(0x635)]=_0x4a74bc,this[_0x37fdec(0x252)]=_0x1c0a8f,this['_render']());}set[_0x37a374(0x4d0)](_0x2e2a70){const _0x7170b=_0x37a374;_0x2e2a70?(this[_0x7170b(0x63b)]&&this[_0x7170b(0x63b)][_0x7170b(0x3cb)](),this['_textBubble']&&this[_0x7170b(0x458)][_0x7170b(0x5b9)]()):(this['_anchorDot']&&this[_0x7170b(0x63b)]['show'](),this[_0x7170b(0x458)]&&this[_0x7170b(0x458)][_0x7170b(0x3cb)]());}['dispose'](){const _0x5af080=_0x37a374;for(const _0x27cf65 of this[_0x5af080(0x332)])_0x27cf65[_0x5af080(0x37c)]();this[_0x5af080(0x458)]&&this[_0x5af080(0x458)][_0x5af080(0x37c)](),this['_anchorDot']&&this['_anchorDot'][_0x5af080(0x37c)](),this['_anchor']&&this[_0x5af080(0x3b7)][_0x5af080(0x37c)](),this[_0x5af080(0x276)]&&this[_0x5af080(0x276)]();}[_0x37a374(0x535)](){const _0x51a0df=_0x37a374;var _0x40b1d6;const {_docSkeleton:_0x5fb258,_document:_0x34553c}=this,{color:_0x43a0e5,name:_0x572bf9,ranges:_0x2bef78}=this['_cursor'],_0x1821e3=_0x34553c['getOffsetConfig'](),{docsLeft:_0x46413e,docsTop:_0x676b57}=_0x1821e3,_0x186cf3=new Z[(_0x51a0df(0x5c8))](_0x1821e3,_0x5fb258);for(const {startOffset:_0x1cf479,endOffset:_0xad1533,rangeType:_0x4a8bdd,segmentId:_0x36a6b8,segmentPage:_0x2a08ca,collapsed:_0x179be9,isActive:_0x3800c1}of _0x2bef78){const _0x1fc79a=_0x5fb258[_0x51a0df(0x56d)](_0x1cf479,!0x0,_0x36a6b8,_0x2a08ca);let _0x457ca8=_0x5fb258[_0x51a0df(0x56d)](_0xad1533,!0x0,_0x36a6b8,_0x2a08ca);if(_0x457ca8==null&&(_0x457ca8=_0x5fb258[_0x51a0df(0x56d)](_0xad1533-0x1,!0x1,_0x36a6b8,_0x2a08ca)),_0x3800c1){const {contentBoxPointGroup:_0x459c2c}=_0x186cf3[_0x51a0df(0x5d4)](_0x457ca8,_0x457ca8);if(_0x459c2c[_0x51a0df(0x330)]===0x0)continue;this[_0x51a0df(0x384)](_0x43a0e5,_0x459c2c,_0x46413e,_0x676b57,_0x572bf9),this['_eventUnsubscribe']=this[_0x51a0df(0x5ff)]();}if(!_0x179be9&&_0x1fc79a&&_0x457ca8){if(_0x4a8bdd===a[_0x51a0df(0x39a)][_0x51a0df(0x64d)]){const _0x257fa2=new Z[(_0x51a0df(0x250))](_0x1821e3,_0x5fb258),{pointGroup:_0x5656fa}=(_0x40b1d6=_0x257fa2[_0x51a0df(0x5d4)](_0x1fc79a,_0x457ca8))!=null?_0x40b1d6:{};if(_0x5656fa==null||_0x5656fa[_0x51a0df(0x330)]===0x0)continue;this[_0x51a0df(0x639)](_0x43a0e5,_0x5656fa,_0x46413e,_0x676b57);}else{const {borderBoxPointGroup:_0x9c5f77}=_0x186cf3[_0x51a0df(0x5d4)](_0x1fc79a,_0x457ca8);if(_0x9c5f77['length']===0x0)continue;this['_drawTextRange'](_0x43a0e5,_0x9c5f77,_0x46413e,_0x676b57);}}}}[_0x37a374(0x384)](_0x2a3174,_0xf6a2c5,_0x35ccfb,_0x126f40,_0x5bad9f){const _0x2a3603=_0x37a374,_0x316ff0=this['_getAnchorBounding'](_0xf6a2c5),{left:_0x2fa327,top:_0x408696,height:_0xae1ddf}=_0x316ff0,_0x5f314c=this['_getScale'](),_0x4c60e5=as/_0x5f314c,_0x152997=new K[(_0x2a3603(0x40a))](it+a[_0x2a3603(0x59b)]['generateRandomId'](Pe),{'left':_0x2fa327+_0x35ccfb-_0x4c60e5,'top':_0x408696+_0x126f40,'height':_0xae1ddf,'width':os,'fill':_0x2a3174||K[_0x2a3603(0x2e2)](a[_0x2a3603(0x370)][_0x2a3603(0x2e3)],0x0),'strokeWidth':_0x4c60e5,'stroke':cs,'evented':!0x0});this[_0x2a3603(0x3b7)]=_0x152997,this[_0x2a3603(0x32d)]['addObject'](_0x152997,Z[_0x2a3603(0x551)]);const _0x2dd613=new K[(_0x2a3603(0x40a))](it+a[_0x2a3603(0x59b)][_0x2a3603(0x3c0)](Pe),{'left':_0x2fa327+_0x35ccfb-_0x4c60e5,'top':_0x408696+_0x126f40-st/0x2,'height':st,'width':st,'fill':_0x2a3174||K[_0x2a3603(0x2e2)](a[_0x2a3603(0x370)][_0x2a3603(0x2e3)],0x0),'strokeWidth':0x0,'stroke':_0x2a3174||K[_0x2a3603(0x2e2)](a[_0x2a3603(0x370)][_0x2a3603(0x2e3)],0x0),'evented':!0x1});this[_0x2a3603(0x63b)]=_0x2dd613,this[_0x2a3603(0x32d)][_0x2a3603(0x29d)](_0x2dd613,Z[_0x2a3603(0x551)]);const _0x5c9152=new ze(it+a[_0x2a3603(0x59b)][_0x2a3603(0x3c0)](Pe),{'left':_0x2fa327+_0x35ccfb-_0x4c60e5,'top':_0x408696+_0x126f40-Ne,'text':_0x5bad9f,'color':_0x2a3174});this[_0x2a3603(0x458)]=_0x5c9152,this['_scene']['addObject'](_0x5c9152,Z[_0x2a3603(0x551)]),this[_0x2a3603(0x4d0)]=!0x1;}[_0x37a374(0x5ff)](){const _0x18d68b=_0x37a374,_0x13ef7e=this['_anchor']['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x62cb72=this[_0x18d68b(0x3b7)][_0x18d68b(0x4df)][_0x18d68b(0x3f5)](()=>{const _0x4ebda7=_0x18d68b;this[_0x4ebda7(0x4ca)]&&clearTimeout(this[_0x4ebda7(0x4ca)]),this[_0x4ebda7(0x4ca)]=setTimeout(()=>{const _0xd12097=_0x4ebda7;this[_0xd12097(0x4d0)]=!0x1;},0x7d0);});return()=>{const _0x50b8a0=_0x18d68b;_0x13ef7e['unsubscribe'](),_0x62cb72[_0x50b8a0(0x335)]();};}[_0x37a374(0x2ba)](_0x5a632e,_0x5577b3,_0x1606e9,_0x5f374c){const _0x5edb59=_0x37a374,_0x26d3e8=new a['ColorKit'](_0x5a632e)[_0x5edb59(0x2fa)](0.2)[_0x5edb59(0x4f1)](),_0x3b6576=new K['RegularPolygon'](ss+a[_0x5edb59(0x59b)][_0x5edb59(0x3c0)](Pe),{'pointsGroup':_0x5577b3,'fill':_0x26d3e8||K['getColor'](a[_0x5edb59(0x370)][_0x5edb59(0x2e3)],0.2),'left':_0x1606e9,'top':_0x5f374c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5edb59(0x332)][_0x5edb59(0x257)](_0x3b6576),this[_0x5edb59(0x32d)][_0x5edb59(0x29d)](_0x3b6576,Z[_0x5edb59(0x551)]);}[_0x37a374(0x639)](_0x50a0f5,_0x5557c1,_0x3da3cd,_0x39a0d4){const _0x298133=_0x37a374,_0x46d012=new a[(_0x298133(0x677))](_0x50a0f5)[_0x298133(0x2fa)](0.2)[_0x298133(0x4f1)](),_0x272480=new K[(_0x298133(0x21d))](rs+a[_0x298133(0x59b)][_0x298133(0x3c0)](Pe),{'pointsGroup':_0x5557c1,'fill':_0x46d012||K[_0x298133(0x2e2)](a['COLORS']['black'],0.2),'left':_0x3da3cd,'top':_0x39a0d4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x298133(0x332)][_0x298133(0x257)](_0x272480),this[_0x298133(0x32d)]['addObject'](_0x272480,Z[_0x298133(0x551)]);}[_0x37a374(0x3c4)](_0x25f796){const _0x5ac1a2=_0x25f796[0x0],_0x49ab04=_0x5ac1a2[0x0],_0x15078d=_0x5ac1a2[0x2],{x:_0x4de69c,y:_0x2f27e4}=_0x49ab04,{x:_0x4c60c9,y:_0x16c956}=_0x15078d;return{'left':_0x4de69c,'top':_0x2f27e4,'width':_0x4c60c9-_0x4de69c,'height':_0x16c956-_0x2f27e4};}[_0x37a374(0x2a0)](){const _0x480f8f=_0x37a374,{scaleX:_0x352e3e,scaleY:_0x899f49}=this[_0x480f8f(0x32d)][_0x480f8f(0x3bb)]();return Math[_0x480f8f(0x59f)](_0x352e3e,_0x899f49);}}var ls=Object['defineProperty'],hs=Object[_0x37a374(0x4a5)],_s=(_0x5e96db,_0x571e4e,_0x5dc340,_0x1fe5d8)=>{const _0x348d64=_0x37a374;for(var _0xe7c1f4=_0x1fe5d8>0x1?void 0x0:_0x1fe5d8?hs(_0x571e4e,_0x5dc340):_0x571e4e,_0x4ae3be=_0x5e96db[_0x348d64(0x330)]-0x1,_0x5c0dd6;_0x4ae3be>=0x0;_0x4ae3be--)(_0x5c0dd6=_0x5e96db[_0x4ae3be])&&(_0xe7c1f4=(_0x1fe5d8?_0x5c0dd6(_0x571e4e,_0x5dc340,_0xe7c1f4):_0x5c0dd6(_0xe7c1f4))||_0xe7c1f4);return _0x1fe5d8&&_0xe7c1f4&&ls(_0x571e4e,_0x5dc340,_0xe7c1f4),_0xe7c1f4;},$e=(_0x297f90,_0x2b283d)=>(_0x55f1e3,_0x64666e)=>_0x2b283d(_0x55f1e3,_0x64666e,_0x297f90);let pt=class extends a[_0x37a374(0x2f7)]{constructor(_0x591292,_0x41102d,_0x139005,_0x19991f,_0x2b04f1){const _0x39b337=_0x37a374;super(),I(this,_0x39b337(0x407),[]),I(this,_0x39b337(0x668),[]),(this[_0x39b337(0x56b)]=_0x591292,this['_docSkeletonManagerService']=_0x41102d,this[_0x39b337(0x3f0)]=_0x139005,this['_commandService']=_0x19991f,this['_themeService']=_0x2b04f1,this[_0x39b337(0x3c3)]());}[_0x37a374(0x3c3)](){const _0x43b122=_0x37a374,_0x7dadf6=this[_0x43b122(0x56b)][_0x43b122(0x36d)],_0x447784=this[_0x43b122(0x402)];this[_0x43b122(0x4d6)](A[_0x43b122(0x5e6)]([this['_collabCursorController'][_0x43b122(0x2e7)](_0x7dadf6),this[_0x43b122(0x536)][_0x43b122(0x439)]])[_0x43b122(0x4d7)](V[_0x43b122(0x323)](([_0x3ac278,_0x2cd950])=>({'skeleton':_0x447784[_0x43b122(0x631)](),'cursors':[..._0x3ac278[_0x43b122(0x353)]()][_0x43b122(0x5dc)](_0x49937d=>({..._0x49937d,'color':_0x2cd950[_0x49937d[_0x43b122(0x422)]]}))})))['subscribe'](_0x5e02ae=>{const _0x55e71f=_0x43b122;if(this[_0x55e71f(0x331)](),_0x5e02ae){const {skeleton:_0x3a1143,cursors:_0x372a1a}=_0x5e02ae;this[_0x55e71f(0x3ef)](_0x3a1143,_0x372a1a);}})),this[_0x43b122(0x520)](),this[_0x43b122(0x425)]();}[_0x37a374(0x3ef)](_0x2851ac,_0x556807){const _0x5cde59=_0x37a374,{scene:_0x43f91e,mainComponent:_0x1fbf94}=this[_0x5cde59(0x56b)],_0x4d3f68=_0x556807[_0x5cde59(0x323)](_0x190b5a=>new Ht(_0x190b5a,_0x43f91e,_0x2851ac,_0x1fbf94));this[_0x5cde59(0x407)]=_0x4d3f68,this[_0x5cde59(0x668)]=_0x556807;}['_refreshCollabCursors'](){const _0x1da2ab=_0x37a374;this['_removeCollabCursors']();const {scene:_0x156734,mainComponent:_0x4e966f}=this[_0x1da2ab(0x56b)],_0x2c8039=this[_0x1da2ab(0x402)][_0x1da2ab(0x631)](),_0x300030=this[_0x1da2ab(0x668)][_0x1da2ab(0x323)](_0x52b5de=>new Ht(_0x52b5de,_0x156734,_0x2c8039,_0x4e966f));this['_cursorShapes']=_0x300030;}[_0x37a374(0x331)](){const _0x2e873b=_0x37a374;this['_cursorShapes'][_0x2e873b(0x278)](_0x786233=>_0x786233[_0x2e873b(0x37c)]()),this[_0x2e873b(0x407)]=[];}[_0x37a374(0x425)](){const _0x4c4f7c=_0x37a374,_0x22b648=[Z[_0x4c4f7c(0x3db)]['id']];this[_0x4c4f7c(0x4d6)](this['_commandService'][_0x4c4f7c(0x3d8)](_0x3beda7=>{const _0x108d6d=_0x4c4f7c;_0x22b648[_0x108d6d(0x5fc)](_0x3beda7['id'])&&_0x3beda7[_0x108d6d(0x39d)][_0x108d6d(0x36d)]===this[_0x108d6d(0x56b)][_0x108d6d(0x36d)]&&this[_0x108d6d(0x26a)]();}));}[_0x37a374(0x520)](){const _0x2d7097=_0x37a374;this[_0x2d7097(0x4d6)](a[_0x2d7097(0x607)](this[_0x2d7097(0x56b)][_0x2d7097(0x379)][_0x2d7097(0x62b)])['pipe'](V[_0x2d7097(0x434)](_0x501811=>_0x501811[_0x2d7097(0x1d2)]===K[_0x2d7097(0x472)][_0x2d7097(0x2c0)]),V[_0x2d7097(0x25d)](0x10))[_0x2d7097(0x274)](()=>{this['_refreshCollabCursors']();}));}};pt=_s([$e(0x1,a[_0x37a374(0x629)](Re[_0x37a374(0x24d)])),$e(0x2,a['Inject'](Oe)),$e(0x3,a[_0x37a374(0x30c)]),$e(0x4,a[_0x37a374(0x629)](a[_0x37a374(0x559)]))],pt);const us=0x1,ds=1.5;class mn extends K[_0x37a374(0x3fd)]{constructor(_0x378058,_0x47781a){const _0x5205eb=_0x37a374;super(_0x378058,_0x47781a),I(this,'_color'),I(this,_0x5205eb(0x391),!0x1),I(this,_0x5205eb(0x2cd)),I(this,_0x5205eb(0x4b1),''),I(this,_0x5205eb(0x608),'top'),I(this,_0x5205eb(0x2b1)),(_0x47781a&&this[_0x5205eb(0x21e)](_0x47781a),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x5205eb(0x21e)]({'hovered':!0x0})),this[_0x5205eb(0x4df)]['subscribeEvent'](()=>this[_0x5205eb(0x21e)]({'hovered':!0x1})));}[_0x37a374(0x21e)](_0x5924cd){const _0x4b9b7f=_0x37a374;var _0x2be879,_0x49d2ba,_0x121b89,_0x48b9d9,_0x408763,_0x3acb97;this[_0x4b9b7f(0x47c)]=(_0x2be879=_0x5924cd[_0x4b9b7f(0x422)])!=null?_0x2be879:this[_0x4b9b7f(0x47c)],this['_hovered']=(_0x49d2ba=_0x5924cd[_0x4b9b7f(0x4d4)])!=null?_0x49d2ba:this[_0x4b9b7f(0x391)],this[_0x4b9b7f(0x2cd)]=(_0x121b89=_0x5924cd[_0x4b9b7f(0x30f)])!=null?_0x121b89:this[_0x4b9b7f(0x2cd)],this[_0x4b9b7f(0x4b1)]=(_0x48b9d9=_0x5924cd['name'])!=null?_0x48b9d9:this[_0x4b9b7f(0x4b1)],this[_0x4b9b7f(0x608)]=(_0x408763=_0x5924cd[_0x4b9b7f(0x67a)])!=null?_0x408763:this['_labelPosition'],this[_0x4b9b7f(0x2b1)]=(_0x3acb97=_0x5924cd[_0x4b9b7f(0x2b7)])!=null?_0x3acb97:this[_0x4b9b7f(0x2b1)],this[_0x4b9b7f(0x2ab)]({'width':_0x5924cd[_0x4b9b7f(0x3d1)],'height':_0x5924cd[_0x4b9b7f(0x300)]});}[_0x37a374(0x568)](_0x10d058){const _0x3ecaf7=_0x37a374,{row:_0x3e0a77,column:_0xb650b6}=_0x10d058;if(_0x3e0a77>=this[_0x3ecaf7(0x2cd)]['startRow']&&_0x3e0a77<=this[_0x3ecaf7(0x2cd)][_0x3ecaf7(0x2c8)]&&_0xb650b6>=this[_0x3ecaf7(0x2cd)][_0x3ecaf7(0x2d5)]&&_0xb650b6<=this[_0x3ecaf7(0x2cd)][_0x3ecaf7(0x519)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3ecaf7(0x21e)]({'hovered':!0x1});}[_0x37a374(0x66f)](_0x1e822f){return!0x1;}[_0x37a374(0x634)](_0x58cd0b){const _0x14bbca=_0x37a374;K[_0x14bbca(0x40a)][_0x14bbca(0x65e)](_0x58cd0b,{'width':this[_0x14bbca(0x3d1)],'height':this['height'],'strokeWidth':ds,'stroke':this[_0x14bbca(0x47c)],'evented':!0x1,'fill':this[_0x14bbca(0x2b1)]}),this[_0x14bbca(0x391)]&&(_0x58cd0b['save'](),_0x58cd0b[_0x14bbca(0x610)](0x1,0x0,0x0,0x1,this[_0x14bbca(0x3d1)],this[_0x14bbca(0x608)]==='bottom'?0x0:-Ne),ze['drawWith'](_0x58cd0b,{'text':this['_name'],'color':this[_0x14bbca(0x47c)]}),_0x58cd0b[_0x14bbca(0x54b)]());}}var fs=Object[_0x37a374(0x55e)],vs=Object[_0x37a374(0x4a5)],ms=(_0x4debae,_0x4ff8b5,_0x38a47c,_0x14e4de)=>{const _0x46e2ba=_0x37a374;for(var _0x363490=_0x14e4de>0x1?void 0x0:_0x14e4de?vs(_0x4ff8b5,_0x38a47c):_0x4ff8b5,_0x4f169a=_0x4debae[_0x46e2ba(0x330)]-0x1,_0x3be6c5;_0x4f169a>=0x0;_0x4f169a--)(_0x3be6c5=_0x4debae[_0x4f169a])&&(_0x363490=(_0x14e4de?_0x3be6c5(_0x4ff8b5,_0x38a47c,_0x363490):_0x3be6c5(_0x363490))||_0x363490);return _0x14e4de&&_0x363490&&fs(_0x4ff8b5,_0x38a47c,_0x363490),_0x363490;},rt=(_0x26cbb7,_0x3fa4c8)=>(_0x226674,_0x4a706d)=>_0x3fa4c8(_0x226674,_0x4a706d,_0x26cbb7);const ps=0x1389;let St=class extends a['RxDisposable']{constructor(_0x4cdc30,_0xe25cc2,_0x3f7747,_0x20bbff){const _0x289e0d=_0x37a374;super(),I(this,_0x289e0d(0x668),new Set()),I(this,_0x289e0d(0x233),null),(this[_0x289e0d(0x56b)]=_0x4cdc30,this[_0x289e0d(0x410)]=_0xe25cc2,this[_0x289e0d(0x3f0)]=_0x3f7747,this[_0x289e0d(0x536)]=_0x20bbff,this[_0x289e0d(0x3c3)]());}['_init'](){const _0xac9e6e=_0x37a374;this[_0xac9e6e(0x410)][_0xac9e6e(0x632)]['pipe'](V['takeUntil'](this['dispose$']),V[_0xac9e6e(0x5e0)](_0xd38546=>{const _0x4e7057=_0xac9e6e;if(_0xd38546){const _0x109102=_0xd38546[_0x4e7057(0x2c3)];return A[_0x4e7057(0x5e6)](this['_collabCursorController'][_0x4e7057(0x2e7)](this[_0x4e7057(0x56b)]['unitId']),this['_themeService']['currentTheme$'])[_0x4e7057(0x4d7)](V[_0x4e7057(0x323)](([_0x568c67,_0x9778bf])=>{const _0x3b5c1d=new Map();return _0x568c67['forEach']((_0x10ee44,_0xf00758)=>{const _0x5ca5b8=_0x513c;if(_0x10ee44[_0x5ca5b8(0x31b)]===_0x109102){const _0x5707a9={..._0x10ee44};_0x5707a9[_0x5ca5b8(0x422)]=_0x9778bf[_0x10ee44[_0x5ca5b8(0x422)]],_0x3b5c1d[_0x5ca5b8(0x5d1)](_0xf00758,_0x5707a9);}}),{'skeleton':_0xd38546,'cursors':_0x3b5c1d};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0xac9e6e(0x274)](({skeleton:_0x346e91,cursors:_0x1fe62b})=>{const _0x217f14=_0xac9e6e;this[_0x217f14(0x331)](),_0x346e91&&this[_0x217f14(0x3ef)](_0x346e91,_0x1fe62b);}),this['_sheetSkeletonManagerService'][_0xac9e6e(0x632)][_0xac9e6e(0x274)](_0x170dd6=>{const _0x49decf=_0xac9e6e;if(_0x170dd6==null)return;const {skeleton:_0x5a0875}=_0x170dd6,{scene:_0x20866f}=this[_0x49decf(0x56b)];_0x20866f[_0x49decf(0x5df)]['subscribeEvent'](a[_0x49decf(0x1f4)](_0x2f3f2f=>{const _0x10d902=_0x49decf;var _0x5ef647,_0x42c6b1;const {offsetX:_0x1d1e2e,offsetY:_0x296505}=_0x2f3f2f,{x:_0x269374,y:_0x209631}=_0x20866f[_0x10d902(0x259)](K[_0x10d902(0x616)]['FromArray']([_0x1d1e2e,_0x296505])),{scaleX:_0x198af7,scaleY:_0x1f2817}=_0x20866f[_0x10d902(0x3bb)](),_0x23be3a=_0x20866f['getViewport'](Te['VIEWPORT_KEY'][_0x10d902(0x41b)]),_0x3cb1ea=_0x20866f[_0x10d902(0x39c)](K[_0x10d902(0x616)][_0x10d902(0x44c)]([_0x269374,_0x209631]),_0x23be3a),_0x300ef9=_0x5a0875['getCellPositionByOffset'](_0x1d1e2e,_0x296505,_0x198af7,_0x1f2817,_0x3cb1ea);((_0x5ef647=this[_0x10d902(0x233)])==null?void 0x0:_0x5ef647['column'])===_0x300ef9['column']&&((_0x42c6b1=this['_lastPointer'])==null?void 0x0:_0x42c6b1[_0x10d902(0x5f9)])===_0x300ef9[_0x10d902(0x5f9)]||this['_cursors'][_0x10d902(0x278)](_0x241cc9=>{const _0x374383=_0x10d902;_0x241cc9[_0x374383(0x568)](_0x300ef9);});},0x64));});}[_0x37a374(0x3ef)](_0x564aa7,_0x10f188){const _0x21f976=_0x37a374;var _0x3d9612;const _0x1c924a=(_0x3d9612=this[_0x21f976(0x410)][_0x21f976(0x3c2)]())==null?void 0x0:_0x3d9612[_0x21f976(0x451)];if(!_0x1c924a)return;const _0x529869=this[_0x21f976(0x328)]();if(!_0x529869)return;this[_0x21f976(0x668)]['forEach'](_0x55cb60=>{const _0x297915=_0x21f976;_0x55cb60[_0x297915(0x45d)]();});const {scene:_0x3af192}=_0x529869,_0x3fb361=Ss(Array[_0x21f976(0x1ec)](_0x10f188[_0x21f976(0x353)]()))[_0x21f976(0x323)](_0x459c44=>{const _0x23c5b2=_0x21f976,{color:_0x4edd6e,range:_0x11f599,name:_0x5d1675,selection:_0x41f6fd,sheetID:_0x3ea873}=_0x459c44,{startColumn:_0x3287a8,startRow:_0x3256db,endColumn:_0x34f739,endRow:_0x4f1e48}=_0x11f599,_0x5dcd32=Te[_0x23c5b2(0x40d)](_0x3256db,_0x3287a8,_0x3af192,_0x1c924a),_0x3bbf10=Te[_0x23c5b2(0x40d)](_0x4f1e48,_0x34f739,_0x3af192,_0x1c924a),{columnHeaderHeightAndMarginTop:_0x4b29a0}=_0x1c924a,{startX:_0x52b9d5,startY:_0x2765ce}=_0x5dcd32,{endX:_0x20f401,endY:_0x187d32}=_0x3bbf10,_0x322c83=_0x20f401-_0x52b9d5,_0x3c1496=_0x187d32-_0x2765ce,_0x23730d={'labelPosition':_0x2765ce-_0x4b29a0>=Ne?_0x23c5b2(0x5ad):_0x23c5b2(0x2db),'sheetID':_0x3ea873,'range':_0x11f599,'color':_0x4edd6e,'name':_0x5d1675,'selection':_0x41f6fd,'left':_0x52b9d5,'top':_0x2765ce,'width':_0x322c83,'height':_0x3c1496,'evented':!0x1,'zIndex':ps};return new mn(_0x5d1675,_0x23730d);});_0x3af192[_0x21f976(0x67f)](_0x3fb361,us),this[_0x21f976(0x668)]=new Set(_0x3fb361);}[_0x37a374(0x331)](){const _0x3c2c26=_0x37a374;var _0x4ccdd2;(_0x4ccdd2=this['_cursors'])==null||_0x4ccdd2[_0x3c2c26(0x278)](_0x2594cf=>_0x2594cf['dispose']());}[_0x37a374(0x328)](){const _0x5425cb=_0x37a374;return Te[_0x5425cb(0x626)](this[_0x5425cb(0x56b)][_0x5425cb(0x226)],this['_context']);}};St=ms([rt(0x1,a['Inject'](Te[_0x37a374(0x5bb)])),rt(0x2,a[_0x37a374(0x629)](Oe)),rt(0x3,a[_0x37a374(0x629)](a[_0x37a374(0x559)]))],St);function Ss(_0x57f6cb){const _0x544de8=_0x37a374,_0x2f68de=new Map();return _0x57f6cb[_0x544de8(0x278)](_0x3aa953=>{const _0x17a5b4=_0x544de8;if(_0x2f68de[_0x17a5b4(0x244)](_0x3aa953[_0x17a5b4(0x3f6)])){const _0x317cb3=_0x2f68de[_0x17a5b4(0x5bf)](_0x3aa953[_0x17a5b4(0x3f6)]);_0x317cb3['name']+=',\x20'+_0x3aa953[_0x17a5b4(0x21c)];}else _0x2f68de[_0x17a5b4(0x5d1)](_0x3aa953['selection'],_0x3aa953);}),Array['from'](_0x2f68de[_0x544de8(0x353)]());}var ee=function(){const _0x192ea4=_0x37a374;return ee=Object[_0x192ea4(0x398)]||function(_0x5c2fe6){const _0x263f81=_0x192ea4;for(var _0x20dba6,_0x3654ca=0x1,_0x1e1ba1=arguments[_0x263f81(0x330)];_0x3654ca<_0x1e1ba1;_0x3654ca++){_0x20dba6=arguments[_0x3654ca];for(var _0x5a7534 in _0x20dba6)Object[_0x263f81(0x420)][_0x263f81(0x658)]['call'](_0x20dba6,_0x5a7534)&&(_0x5c2fe6[_0x5a7534]=_0x20dba6[_0x5a7534]);}return _0x5c2fe6;},ee[_0x192ea4(0x4ae)](this,arguments);},gs=function(_0x5244ee,_0x11bc04){const _0x3ba793=_0x37a374;var _0x3c220c={};for(var _0x621d50 in _0x5244ee)Object['prototype']['hasOwnProperty'][_0x3ba793(0x1fa)](_0x5244ee,_0x621d50)&&_0x11bc04[_0x3ba793(0x23a)](_0x621d50)<0x0&&(_0x3c220c[_0x621d50]=_0x5244ee[_0x621d50]);if(_0x5244ee!=null&&typeof Object['getOwnPropertySymbols']==_0x3ba793(0x556)){for(var _0x1acaf3=0x0,_0x621d50=Object['getOwnPropertySymbols'](_0x5244ee);_0x1acaf3<_0x621d50['length'];_0x1acaf3++)_0x11bc04[_0x3ba793(0x23a)](_0x621d50[_0x1acaf3])<0x0&&Object[_0x3ba793(0x420)][_0x3ba793(0x1e5)][_0x3ba793(0x1fa)](_0x5244ee,_0x621d50[_0x1acaf3])&&(_0x3c220c[_0x621d50[_0x1acaf3]]=_0x5244ee[_0x621d50[_0x1acaf3]]);}return _0x3c220c;},Ot=z['forwardRef'](function(_0x3ce58f,_0x19aad6){const _0x1c4ffb=_0x37a374;var _0x5cd7ae=_0x3ce58f[_0x1c4ffb(0x36a)],_0x2b5ed0=_0x3ce58f['id'],_0x38d704=_0x3ce58f[_0x1c4ffb(0x306)],_0x546be9=_0x3ce58f[_0x1c4ffb(0x24a)],_0x117ac5=gs(_0x3ce58f,[_0x1c4ffb(0x36a),'id',_0x1c4ffb(0x306),_0x1c4ffb(0x24a)]),_0x39924a=_0x1c4ffb(0x51b)[_0x1c4ffb(0x315)](_0x2b5ed0,'\x20')['concat'](_0x38d704||'')[_0x1c4ffb(0x450)](),_0x45bfbe=z[_0x1c4ffb(0x341)]('_'[_0x1c4ffb(0x315)](Es()));return pn(_0x5cd7ae,''[_0x1c4ffb(0x315)](_0x2b5ed0),{'defIds':_0x5cd7ae[_0x1c4ffb(0x311)],'idSuffix':_0x45bfbe[_0x1c4ffb(0x29b)]},ee({'ref':_0x19aad6,'className':_0x39924a},_0x117ac5),_0x546be9);});function pn(_0x46d1b0,_0x1b4871,_0x1a7461,_0x452fb2,_0x597639){const _0x1af853=_0x37a374;return z[_0x1af853(0x336)](_0x46d1b0[_0x1af853(0x1e4)],ee(ee({'key':_0x1b4871},Is(_0x46d1b0,_0x1a7461,_0x597639)),_0x452fb2),(Cs(_0x46d1b0,_0x1a7461)[_0x1af853(0x5fb)]||[])[_0x1af853(0x323)](function(_0xcb7793,_0x5ed244){const _0x2bf684=_0x1af853;return pn(_0xcb7793,''[_0x2bf684(0x315)](_0x1b4871,'-')[_0x2bf684(0x315)](_0x46d1b0['tag'],'-')['concat'](_0x5ed244),_0x1a7461,void 0x0,_0x597639);}));}function Is(_0xb75d6,_0x62320,_0x3b2fb4){const _0x4459b1=_0x37a374;var _0x22ffb1=ee({},_0xb75d6[_0x4459b1(0x47f)]);_0x3b2fb4!=null&&_0x3b2fb4[_0x4459b1(0x25e)]&&_0x22ffb1[_0x4459b1(0x2dc)]===_0x4459b1(0x25e)&&(_0x22ffb1[_0x4459b1(0x2dc)]=_0x3b2fb4[_0x4459b1(0x25e)]);var _0xbf28eb=_0x62320['defIds'];return!_0xbf28eb||_0xbf28eb['length']===0x0||(_0xb75d6[_0x4459b1(0x1e4)]==='use'&&_0x22ffb1[_0x4459b1(0x56a)]&&(_0x22ffb1[_0x4459b1(0x56a)]=_0x22ffb1[_0x4459b1(0x56a)]+_0x62320[_0x4459b1(0x1c1)]),Object[_0x4459b1(0x530)](_0x22ffb1)[_0x4459b1(0x278)](function(_0x39a685){const _0x1f294c=_0x4459b1;var _0x4d3be1=_0x39a685[0x0],_0x34f00d=_0x39a685[0x1];typeof _0x34f00d=='string'&&(_0x22ffb1[_0x4d3be1]=_0x34f00d[_0x1f294c(0x2a2)](/url\(#(.*)\)/,_0x1f294c(0x4c7)['concat'](_0x62320['idSuffix'],')')));})),_0x22ffb1;}function Cs(_0x5d3847,_0x3eee06){const _0x266cab=_0x37a374;var _0x24b803,_0x54f8e3=_0x3eee06[_0x266cab(0x311)];return!_0x54f8e3||_0x54f8e3['length']===0x0?_0x5d3847:_0x5d3847[_0x266cab(0x1e4)]==='defs'&&(!((_0x24b803=_0x5d3847[_0x266cab(0x5fb)])===null||_0x24b803===void 0x0)&&_0x24b803['length'])?ee(ee({},_0x5d3847),{'children':_0x5d3847['children'][_0x266cab(0x323)](function(_0xda6e31){const _0x5a1e8a=_0x266cab;return typeof _0xda6e31[_0x5a1e8a(0x47f)]['id']==_0x5a1e8a(0x3de)&&_0x54f8e3&&_0x54f8e3[_0x5a1e8a(0x23a)](_0xda6e31[_0x5a1e8a(0x47f)]['id'])>-0x1?ee(ee({},_0xda6e31),{'attrs':ee(ee({},_0xda6e31[_0x5a1e8a(0x47f)]),{'id':_0xda6e31[_0x5a1e8a(0x47f)]['id']+_0x3eee06['idSuffix']})}):_0xda6e31;})}):_0x5d3847;}function Es(){const _0x5ddd59=_0x37a374;return Math[_0x5ddd59(0x59c)]()[_0x5ddd59(0x4d2)](0x24)[_0x5ddd59(0x533)](0x2,0x8);}Ot[_0x37a374(0x4c1)]=_0x37a374(0x599);var bs={'tag':_0x37a374(0x2ce),'attrs':{'fill':_0x37a374(0x59d),'viewBox':_0x37a374(0x39f),'width':_0x37a374(0x5db),'height':_0x37a374(0x5db)},'children':[{'tag':'g','attrs':{'clipPath':_0x37a374(0x4f7)},'children':[{'tag':_0x37a374(0x339),'attrs':{'stroke':'currentColor','d':_0x37a374(0x220),'strokeLinecap':_0x37a374(0x231),'strokeLinejoin':_0x37a374(0x231),'strokeWidth':1.2}}]},{'tag':_0x37a374(0x627),'attrs':{},'children':[{'tag':_0x37a374(0x491),'attrs':{'id':_0x37a374(0x23c)},'children':[{'tag':_0x37a374(0x339),'attrs':{'fill':_0x37a374(0x413),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Sn=z[_0x37a374(0x264)](function(_0x3b0fea,_0x470dce){const _0x20946e=_0x37a374;return z['createElement'](Ot,Object[_0x20946e(0x398)]({},_0x3b0fea,{'id':'off-line-single','ref':_0x470dce,'icon':bs}));});Sn[_0x37a374(0x4c1)]=_0x37a374(0x502);var Ts={'tag':'svg','attrs':{'fill':_0x37a374(0x59d),'viewBox':_0x37a374(0x47d),'width':_0x37a374(0x5db),'height':_0x37a374(0x5db)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x37a374(0x339),'attrs':{'stroke':'currentColor','d':_0x37a374(0x465),'strokeLinecap':_0x37a374(0x231),'strokeLinejoin':_0x37a374(0x231),'strokeWidth':1.2}}]},{'tag':_0x37a374(0x627),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x37a374(0x339),'attrs':{'fill':_0x37a374(0x413),'d':_0x37a374(0x301),'transform':_0x37a374(0x4d8)}}]}]}],'defIds':['on-line-single_clip0_910_349']},gn=z[_0x37a374(0x264)](function(_0x20a39b,_0x5ea8a1){const _0x5b0d84=_0x37a374;return z[_0x5b0d84(0x336)](Ot,Object[_0x5b0d84(0x398)]({},_0x20a39b,{'id':_0x5b0d84(0x65d),'ref':_0x5ea8a1,'icon':Ts}));});gn[_0x37a374(0x4c1)]=_0x37a374(0x4ee);function In(_0x4a4a39){const _0x1fb5b9=_0x37a374;var _0x4728c4,_0xc4da25,_0x314f66='';if(typeof _0x4a4a39==_0x1fb5b9(0x3de)||typeof _0x4a4a39==_0x1fb5b9(0x308))_0x314f66+=_0x4a4a39;else{if(typeof _0x4a4a39==_0x1fb5b9(0x48a)){if(Array[_0x1fb5b9(0x338)](_0x4a4a39)){var _0x4e8907=_0x4a4a39['length'];for(_0x4728c4=0x0;_0x4728c4<_0x4e8907;_0x4728c4++)_0x4a4a39[_0x4728c4]&&(_0xc4da25=In(_0x4a4a39[_0x4728c4]))&&(_0x314f66&&(_0x314f66+='\x20'),_0x314f66+=_0xc4da25);}else{for(_0xc4da25 in _0x4a4a39)_0x4a4a39[_0xc4da25]&&(_0x314f66&&(_0x314f66+='\x20'),_0x314f66+=_0xc4da25);}}}return _0x314f66;}function Rs(){const _0x1ad24c=_0x37a374;for(var _0x215da8,_0x4212f1,_0x5cb8d3=0x0,_0x547b89='',_0x409f8b=arguments[_0x1ad24c(0x330)];_0x5cb8d3<_0x409f8b;_0x5cb8d3++)(_0x215da8=arguments[_0x5cb8d3])&&(_0x4212f1=In(_0x215da8))&&(_0x547b89&&(_0x547b89+='\x20'),_0x547b89+=_0x4212f1);return _0x547b89;}const ys=_0x37a374(0x218),Os=_0x37a374(0x216),Ds=_0x37a374(0x479),ws='univer-online',Ps='univer-offline',Ue={'onlineStatusIcon':ys,'onlineStatusTitle':Os,'onlineStatus':Ds,'online':ws,'offline':Ps};function Us(_0x4364a4){const _0x3fe4a3=_0x37a374;switch(_0x4364a4){case q[_0x3fe4a3(0x320)]:return'collabStatus.offline';case q[_0x3fe4a3(0x43c)]:return _0x3fe4a3(0x4bc);case q[_0x3fe4a3(0x334)]:return _0x3fe4a3(0x397);case q['NOT_COLLAB']:return _0x3fe4a3(0x3d7);case q[_0x3fe4a3(0x5b7)]:case q[_0x3fe4a3(0x672)]:return _0x3fe4a3(0x484);case q[_0x3fe4a3(0x2b9)]:case q['PENDING']:return'collabStatus.synced';}}function Cn(_0x426678){const _0x442d6d=_0x37a374,{status$:_0x36af28}=_0x426678,_0x6482ff=te[_0x442d6d(0x423)](_0x36af28,q[_0x442d6d(0x4a3)]),_0xebdf1c=a['useDependency'](a[_0x442d6d(0x52f)]),_0x5e3131=a[_0x442d6d(0x588)](exports[_0x442d6d(0x5e2)]),_0x58d37e=_0x6482ff!==q[_0x442d6d(0x320)],_0x509bb5=_0xebdf1c['t'](Us(_0x6482ff)),_0x4e89aa=Rs(Ue[_0x442d6d(0x1e0)],{[Ue['online']]:_0x58d37e,[Ue[_0x442d6d(0x34e)]]:!_0x58d37e}),_0xdc628=_0x58d37e?z[_0x442d6d(0x336)](gn,null):z[_0x442d6d(0x336)](Sn,null),_0x4c5584=z[_0x442d6d(0x2b8)](()=>{const _0x47ab90=_0x442d6d;_0x58d37e||_0x5e3131[_0x47ab90(0x3dc)]();},[_0x58d37e,_0x5e3131]);function _0x19aaed(){const _0x37a5b7=_0x442d6d;return z[_0x37a5b7(0x336)](_0x37a5b7(0x4fc),{'className':_0x4e89aa,'onClick':_0x4c5584},z[_0x37a5b7(0x336)](_0x37a5b7(0x4fc),{'className':Ue[_0x37a5b7(0x431)]},_0xdc628),z[_0x37a5b7(0x336)](_0x37a5b7(0x4fc),{'className':Ue['onlineStatusTitle']},_0x509bb5));}return _0x58d37e?_0x19aaed():z[_0x442d6d(0x336)](Se[_0x442d6d(0x430)],{'title':_0xebdf1c['t'](_0x442d6d(0x33e))},_0x19aaed());}var Ms=Object[_0x37a374(0x55e)],As=Object[_0x37a374(0x4a5)],Ns=(_0x3b33aa,_0x5670fd,_0x36cb25,_0x5b9c3c)=>{const _0x3798fb=_0x37a374;for(var _0x5e1bef=_0x5b9c3c>0x1?void 0x0:_0x5b9c3c?As(_0x5670fd,_0x36cb25):_0x5670fd,_0x34981b=_0x3b33aa[_0x3798fb(0x330)]-0x1,_0x41478e;_0x34981b>=0x0;_0x34981b--)(_0x41478e=_0x3b33aa[_0x34981b])&&(_0x5e1bef=(_0x5b9c3c?_0x41478e(_0x5670fd,_0x36cb25,_0x5e1bef):_0x41478e(_0x5e1bef))||_0x5e1bef);return _0x5b9c3c&&_0x5e1bef&&Ms(_0x5670fd,_0x36cb25,_0x5e1bef),_0x5e1bef;},je=(_0x1b53ee,_0x46c599)=>(_0x3de44a,_0x209ae8)=>_0x46c599(_0x3de44a,_0x209ae8,_0x1b53ee);exports[_0x37a374(0x4b3)]=class extends a[_0x37a374(0x65c)]{constructor(_0x153a70,_0x47f253,_0x470f23,_0x502cad){const _0x240668=_0x37a374;super(),I(this,_0x240668(0x4e8),new A[(_0x240668(0x441))](q[_0x240668(0x4a3)])),(this[_0x240668(0x1d4)]=_0x153a70,this[_0x240668(0x4b5)]=_0x47f253,this[_0x240668(0x58f)]=_0x470f23,this['_collaborationController']=_0x502cad,this[_0x240668(0x5d9)](),this[_0x240668(0x436)]());}['_initStatusListener'](){const _0x428416=_0x37a374;this[_0x428416(0x4d6)](this['_univerInstanceService'][_0x428416(0x628)][_0x428416(0x4d7)](A[_0x428416(0x5e0)](()=>{const _0x1d46cf=_0x428416,_0x244743=this['_univerInstanceService'][_0x1d46cf(0x2cf)]();return _0x244743?this['_collaborationController'][_0x1d46cf(0x5ce)](_0x244743[_0x1d46cf(0x615)]()):A['of'](null);}),A[_0x428416(0x5e0)](_0x4f40b1=>_0x4f40b1?_0x4f40b1[_0x428416(0x238)]:A['of'](q[_0x428416(0x4a3)])))['subscribe'](_0x1bf077=>{const _0x30d010=_0x428416;this[_0x30d010(0x4e8)][_0x30d010(0x24e)](_0x1bf077);}));}[_0x37a374(0x5d9)](){const _0x8a6acf=_0x37a374;this[_0x8a6acf(0x4d6)](this[_0x8a6acf(0x4b5)][_0x8a6acf(0x5b4)](te[_0x8a6acf(0x507)][_0x8a6acf(0x1cd)],()=>a[_0x8a6acf(0x3af)](Ls({'status$':this[_0x8a6acf(0x4e8)][_0x8a6acf(0x483)]()}),this['_injector'])));}},exports[_0x37a374(0x4b3)]=Ns([je(0x0,a['IUniverInstanceService']),je(0x1,te[_0x37a374(0x3ee)]),je(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),je(0x3,a[_0x37a374(0x629)](exports[_0x37a374(0x511)]))],exports[_0x37a374(0x4b3)]);function Ls(_0x486255){const {status$:_0x5552ea}=_0x486255;return function(){const _0x547e4c=_0x513c;return z[_0x547e4c(0x336)](Cn,{'status$':_0x5552ea});};}const Dt=a[_0x37a374(0x3e0)]('uni.network.url-service');var xs=Object[_0x37a374(0x55e)],$s=Object['getOwnPropertyDescriptor'],js=(_0x147d3c,_0x2be9f7,_0x3c10c0,_0x4d0b4a)=>{const _0x1f044b=_0x37a374;for(var _0x5508a7=_0x4d0b4a>0x1?void 0x0:_0x4d0b4a?$s(_0x2be9f7,_0x3c10c0):_0x2be9f7,_0x429dbf=_0x147d3c[_0x1f044b(0x330)]-0x1,_0x4c907e;_0x429dbf>=0x0;_0x429dbf--)(_0x4c907e=_0x147d3c[_0x429dbf])&&(_0x5508a7=(_0x4d0b4a?_0x4c907e(_0x2be9f7,_0x3c10c0,_0x5508a7):_0x4c907e(_0x5508a7))||_0x5508a7);return _0x4d0b4a&&_0x5508a7&&xs(_0x2be9f7,_0x3c10c0,_0x5508a7),_0x5508a7;},be=(_0x34c208,_0x1c0d44)=>(_0xb39d0b,_0x43e089)=>_0x1c0d44(_0xb39d0b,_0x43e089,_0x34c208);exports[_0x37a374(0x61a)]=class extends a['RxDisposable']{constructor(_0x251547,_0x47fa10,_0x51761a,_0xe3fd06,_0x1fe511,_0x2fa04f){const _0x52e0ac=_0x37a374;super(),this[_0x52e0ac(0x1f8)]=_0x251547,this[_0x52e0ac(0x58a)]=_0x47fa10,this[_0x52e0ac(0x48f)]=_0x51761a,this[_0x52e0ac(0x1fd)]=_0xe3fd06,this[_0x52e0ac(0x52a)]=_0x1fe511,_0x2fa04f?_0x2fa04f==null||_0x2fa04f[_0x52e0ac(0x3ea)]()[_0x52e0ac(0x23e)](()=>this['_init']()):(this[_0x52e0ac(0x58a)][_0x52e0ac(0x643)](_0x52e0ac(0x396),_0x52e0ac(0x28a)),this[_0x52e0ac(0x3c3)]());}async[_0x37a374(0x3c3)](){const _0x2c18d=_0x37a374,_0x44d758=this[_0x2c18d(0x1f8)][_0x2c18d(0x48e)](_0x2c18d(0x226)),_0x42f4f4=this[_0x2c18d(0x1f8)]['getParam']('type');if(!_0x44d758||!_0x42f4f4){this[_0x2c18d(0x58a)][_0x2c18d(0x643)]('[DataLoaderController]',_0x2c18d(0x345));return;}switch(Number(_0x42f4f4)){case se['UNIVER_SHEET']:{const _0x19d31d=await this[_0x2c18d(0x3a8)](_0x44d758);this[_0x2c18d(0x42c)](_0x19d31d);break;}case se[_0x2c18d(0x619)]:{await this[_0x2c18d(0x47a)](_0x44d758);break;}default:{this[_0x2c18d(0x58a)][_0x2c18d(0x237)](_0x2c18d(0x396),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x37a374(0x42c)](_0xadc861){const _0x2de6e5=_0x37a374;await this[_0x2de6e5(0x386)](_0xadc861),_0xadc861[_0x2de6e5(0x623)][_0x2de6e5(0x4d7)](A[_0x2de6e5(0x27d)](this['dispose$']))['subscribe'](_0x69c026=>{const _0x5db54a=_0x2de6e5;_0x69c026&&this[_0x5db54a(0x2f3)](_0x69c026);}),this['_urlService'][_0x2de6e5(0x29f)][_0x2de6e5(0x4d7)](A[_0x2de6e5(0x27d)](this['dispose$']))[_0x2de6e5(0x274)](()=>this[_0x2de6e5(0x386)](_0xadc861));}[_0x37a374(0x2f3)](_0x527da0,_0x2497b6=!0x1){const _0x3d0da0=_0x37a374,_0x3bdbef=this['_urlService']['getParam'](_0x3d0da0(0x291));_0x527da0['getSheetId']()!==_0x3bdbef&&this[_0x3d0da0(0x1f8)][_0x3d0da0(0x4f8)](_0x3d0da0(0x291),_0x527da0[_0x3d0da0(0x261)](),_0x2497b6);}async['_updateSubUnitFromURLParams'](_0x74a850){const _0x1ddc83=_0x37a374;var _0x4dc521;const _0x1cd507=this['_urlService'][_0x1ddc83(0x48e)](_0x1ddc83(0x291));if(!_0x1cd507||!_0x74a850[_0x1ddc83(0x287)](_0x1cd507)){const _0x7e7db3=_0x74a850[_0x1ddc83(0x32e)]()[0x0],_0x4eb621=_0x74a850[_0x1ddc83(0x287)](_0x7e7db3);if(!_0x4eb621)return;this[_0x1ddc83(0x2f3)](_0x4eb621,!0x0),await this[_0x1ddc83(0x48f)][_0x1ddc83(0x50d)](k[_0x1ddc83(0x538)]['id'],{'unitId':_0x74a850[_0x1ddc83(0x615)](),'subUnitId':_0x7e7db3});return;}((_0x4dc521=_0x74a850[_0x1ddc83(0x25a)]())==null?void 0x0:_0x4dc521[_0x1ddc83(0x261)]())!==_0x1cd507&&await this[_0x1ddc83(0x48f)][_0x1ddc83(0x50d)](k['SetWorksheetActivateCommand']['id'],{'unitId':_0x74a850[_0x1ddc83(0x615)](),'subUnitId':_0x1cd507});}async['_loadSheet'](_0x210eb7){const _0x27ba49=_0x37a374;let _0x274114=0x0;const _0x34ed8f=await this[_0x27ba49(0x1fd)][_0x27ba49(0x3b8)](_0x210eb7);return _0x34ed8f&&(_0x34ed8f['awaitingChangeset']||_0x34ed8f[_0x27ba49(0x579)][_0x27ba49(0x330)]!==0x0)&&(_0x274114=_0x34ed8f[_0x27ba49(0x3e6)]),_0x274114===0x0&&this['_logService'][_0x27ba49(0x643)](_0x27ba49(0x396),_0x27ba49(0x206)),this[_0x27ba49(0x52a)][_0x27ba49(0x43f)](_0x210eb7,_0x274114);}async['_loadDoc'](_0x411f1d){const _0x44524c=_0x37a374;let _0xbfd16a=0x0;const _0x793c90=await this['_localCacheService']['loadOfflineData'](_0x411f1d);return _0x793c90&&(_0x793c90[_0x44524c(0x1fb)]||_0x793c90[_0x44524c(0x579)][_0x44524c(0x330)]!==0x0)&&(_0xbfd16a=_0x793c90[_0x44524c(0x3e6)]),_0xbfd16a===0x0&&this[_0x44524c(0x58a)][_0x44524c(0x643)](_0x44524c(0x396),_0x44524c(0x206)),this[_0x44524c(0x52a)][_0x44524c(0x4e2)](_0x411f1d,_0xbfd16a);}},exports[_0x37a374(0x61a)]=js([be(0x0,Dt),be(0x1,a[_0x37a374(0x217)]),be(0x2,a['ICommandService']),be(0x3,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),be(0x4,a[_0x37a374(0x629)](p['SnapshotService'])),be(0x5,a[_0x37a374(0x673)](Ln[_0x37a374(0x3ff)]))],exports[_0x37a374(0x61a)]);var Hs=Object[_0x37a374(0x55e)],Bs=Object[_0x37a374(0x4a5)],ks=(_0x1accca,_0x5da12c,_0x18eca1,_0x145bd4)=>{for(var _0x525fb0=_0x145bd4>0x1?void 0x0:_0x145bd4?Bs(_0x5da12c,_0x18eca1):_0x5da12c,_0x274cee=_0x1accca['length']-0x1,_0xd81cb6;_0x274cee>=0x0;_0x274cee--)(_0xd81cb6=_0x1accca[_0x274cee])&&(_0x525fb0=(_0x145bd4?_0xd81cb6(_0x5da12c,_0x18eca1,_0x525fb0):_0xd81cb6(_0x525fb0))||_0x525fb0);return _0x145bd4&&_0x525fb0&&Hs(_0x5da12c,_0x18eca1,_0x525fb0),_0x525fb0;},Bt=(_0x2fba47,_0x3fb072)=>(_0x54073f,_0x50c9fa)=>_0x3fb072(_0x54073f,_0x50c9fa,_0x2fba47);const Ws='DEFAULT_FILE_NAME',Fs=_0x37a374(0x373);let Ve=class extends a[_0x37a374(0x65c)]{constructor(_0x357cc8,_0x1842b7){const _0x34da00=_0x37a374;super(),this[_0x34da00(0x1d4)]=_0x357cc8,this['_configService']=_0x1842b7,this['_init']();}[_0x37a374(0x3c3)](){const _0x36d9fc=_0x37a374;this['disposeWithMe'](this[_0x36d9fc(0x1d4)][_0x36d9fc(0x628)]['subscribe'](()=>{const _0x22aa01=_0x36d9fc;var _0xcd8d0c;const _0x1512a5=this[_0x22aa01(0x1d4)][_0x22aa01(0x2cf)]();let _0x15280d=(_0xcd8d0c=this[_0x22aa01(0x3e7)]['getConfig'](Ws))!=null?_0xcd8d0c:Fs;_0x1512a5 instanceof a[_0x22aa01(0x482)]&&(_0x15280d=_0x1512a5[_0x22aa01(0x21c)]),document[_0x22aa01(0x3e3)]=_0x15280d;}));}};Ve=ks([Bt(0x0,a[_0x37a374(0x662)]),Bt(0x1,a[_0x37a374(0x30b)])],Ve);var Vs=Object[_0x37a374(0x55e)],Gs=Object[_0x37a374(0x4a5)],Ys=(_0x22d10f,_0x432764,_0x82f7e0,_0x44a743)=>{const _0x579d91=_0x37a374;for(var _0xc626e4=_0x44a743>0x1?void 0x0:_0x44a743?Gs(_0x432764,_0x82f7e0):_0x432764,_0x200b73=_0x22d10f[_0x579d91(0x330)]-0x1,_0x9ee4b3;_0x200b73>=0x0;_0x200b73--)(_0x9ee4b3=_0x22d10f[_0x200b73])&&(_0xc626e4=(_0x44a743?_0x9ee4b3(_0x432764,_0x82f7e0,_0xc626e4):_0x9ee4b3(_0xc626e4))||_0xc626e4);return _0x44a743&&_0xc626e4&&Vs(_0x432764,_0x82f7e0,_0xc626e4),_0xc626e4;},ot=(_0x31b1e6,_0xb1c742)=>(_0x4b0518,_0x15263d)=>_0xb1c742(_0x4b0518,_0x15263d,_0x31b1e6);let Ge=class{constructor(_0x2e1510,_0x1c4fb5,_0x475146){const _0x54ce3d=_0x37a374;this[_0x54ce3d(0x3e7)]=_0x2e1510,this[_0x54ce3d(0x20d)]=_0x1c4fb5,this[_0x54ce3d(0x235)]=_0x475146,this[_0x54ce3d(0x5ca)]();}[_0x37a374(0x5ca)](){const _0x241103=_0x37a374;this[_0x241103(0x20d)][_0x241103(0x417)]({'priority':0x1,'interceptor':(_0x1e1b9b,_0x2ba2ef)=>_0x2ba2ef(_0x1e1b9b)['pipe'](A[_0x241103(0x43b)](async _0x2477f2=>{const _0x18369a=_0x241103,_0x405ccb=_0x2477f2;if(_0x405ccb[_0x18369a(0x58b)]===0x191&&window['confirm'](this['localeService']['t'](_0x18369a(0x309)))){const _0x198e44=window[_0x18369a(0x39b)](window['location'][_0x18369a(0x310)]);window[_0x18369a(0x34c)][_0x18369a(0x310)]=this['_getLoginPath']()+_0x18369a(0x204)+_0x198e44;}return _0x405ccb;}))});}[_0x37a374(0x4b4)](){const _0x561e4b=_0x37a374;var _0x2dfa36,_0x3e2bf1;const _0x1dff6c=this[_0x561e4b(0x3e7)][_0x561e4b(0x37d)](on),_0x2a6634=this[_0x561e4b(0x3e7)][_0x561e4b(0x37d)](ne);return(_0x3e2bf1=(_0x2dfa36=_0x2a6634==null?void 0x0:_0x2a6634[_0x561e4b(0x1ff)])!=null?_0x2dfa36:_0x1dff6c)!=null?_0x3e2bf1:Gn;}};Ge=Ys([ot(0x0,a[_0x37a374(0x30b)]),ot(0x1,a['Inject'](Q[_0x37a374(0x34f)])),ot(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x52f)]))],Ge);var Ks=Object[_0x37a374(0x55e)],qs=Object[_0x37a374(0x4a5)],zs=(_0x2cc481,_0x27f6da,_0x26b0fc,_0x430447)=>{const _0x285ec8=_0x37a374;for(var _0x25fa56=_0x430447>0x1?void 0x0:_0x430447?qs(_0x27f6da,_0x26b0fc):_0x27f6da,_0x437745=_0x2cc481[_0x285ec8(0x330)]-0x1,_0x31239b;_0x437745>=0x0;_0x437745--)(_0x31239b=_0x2cc481[_0x437745])&&(_0x25fa56=(_0x430447?_0x31239b(_0x27f6da,_0x26b0fc,_0x25fa56):_0x31239b(_0x25fa56))||_0x25fa56);return _0x430447&&_0x25fa56&&Ks(_0x27f6da,_0x26b0fc,_0x25fa56),_0x25fa56;},kt=(_0x24e380,_0x8541af)=>(_0x4d476d,_0x15560a)=>_0x8541af(_0x4d476d,_0x15560a,_0x24e380);const En='AUTHZ_URL_KEY',Xs=_0x37a374(0x508);exports['AuthzIoHttpService']=class extends a['Disposable']{constructor(_0x3c021e,_0x41e4d7){const _0x67dd2c=_0x37a374;super(),this[_0x67dd2c(0x624)]=_0x3c021e,this[_0x67dd2c(0x3e7)]=_0x41e4d7,this[_0x67dd2c(0x279)]();}[_0x37a374(0x279)](){const _0x94d9a5=_0x37a374,_0x577b24=this;this[_0x94d9a5(0x4d6)](this[_0x94d9a5(0x624)][_0x94d9a5(0x417)]({'priority':0x3e7,'interceptor':Q[_0x94d9a5(0x35d)]({'isMatch'(_0x3b7ba4){const _0x3943a9=_0x94d9a5;var _0x568ba9;if(_0x3b7ba4[_0x3943a9(0x676)]===_0x3943a9(0x598)&&((_0x568ba9=_0x3b7ba4[_0x3943a9(0x540)])!=null&&_0x568ba9[_0x3943a9(0x360)])){const {objectID:_0x4e9c37,objectType:_0xbd3209}=_0x3b7ba4['requestParams'][_0x3943a9(0x360)]||{};if(!_0x4e9c37||_0xbd3209===void 0x0)return!0x1;const _0x1ba6d1=_0x577b24[_0x3943a9(0x254)]()+'/'+_0xbd3209+'/object/'+_0x4e9c37+_0x3943a9(0x5fe);if(_0x3b7ba4[_0x3943a9(0x475)]===_0x1ba6d1)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xc2a9d8){const _0x1aa505=_0x94d9a5;var _0x299081;return(_0x299081=_0xc2a9d8[_0x1aa505(0x540)])==null?void 0x0:_0x299081['body'];},'mergeParamsToRequest'(_0x3dc781,_0xdc0d05){const _0x20d7a6=_0x94d9a5,_0x5fae01=_0x577b24['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0xef19f3=_0x3dc781[_0x20d7a6(0x20e)]((_0x2781be,_0x18f268)=>{const _0x16850e=_0x20d7a6,{unitID:_0x2f0563,objectID:_0x470b27,objectType:_0x505045,actions:_0x5c3a51}=_0x18f268;return _0x2781be[_0x2f0563]||(_0x2781be[_0x2f0563]={}),_0x2781be[_0x2f0563][_0x470b27]||(_0x2781be[_0x2f0563][_0x470b27]={'objectID':_0x470b27,'objectType':_0x505045,'actions':[]}),_0x2781be[_0x2f0563][_0x470b27][_0x16850e(0x3b6)]['push'](..._0x5c3a51),_0x2781be;},{}),_0x143b33=[];for(const _0xc2795e in _0xef19f3)for(const _0x7845a1 in _0xef19f3[_0xc2795e]){const {actions:_0xc98f46,objectType:_0x19ed29}=_0xef19f3[_0xc2795e][_0x7845a1],_0x24708b=[...new Set(_0xc98f46)];_0x143b33[_0x20d7a6(0x257)]({'unitID':_0xc2795e,'objectID':_0x7845a1,'objectType':_0x19ed29,'actions':_0x24708b});}return new Q[(_0x20d7a6(0x2cb))](_0x20d7a6(0x598),_0x5fae01,{'headers':_0xdc0d05[_0x20d7a6(0x356)],'withCredentials':_0xdc0d05[_0x20d7a6(0x2a1)],'responseType':_0xdc0d05[_0x20d7a6(0x50c)],'body':{'requests':_0x143b33}});}},{'distributeResult'(_0x37b50b,_0x2ada7e){const _0x15bc11=_0x94d9a5,{objectActions:_0x4a5a93}=_0x37b50b;return _0x2ada7e[_0x15bc11(0x323)](_0x2b45d3=>{const _0x37ff2e=_0x15bc11,{unitID:_0x3cece1,objectID:_0x489464,actions:_0x1db6a4}=_0x2b45d3,_0x1a30bb=_0x4a5a93[_0x37ff2e(0x437)](_0x22329a=>_0x22329a[_0x37ff2e(0x505)]===_0x3cece1&&_0x22329a[_0x37ff2e(0x5f3)]===_0x489464),_0x53b480=_0x1db6a4[_0x37ff2e(0x323)](_0x427683=>_0x1a30bb==null?void 0x0:_0x1a30bb['actions']['find'](_0x64eca1=>_0x64eca1[_0x37ff2e(0x1c6)]===_0x427683))[_0x37ff2e(0x434)](_0x2d50a7=>!!_0x2d50a7);return{'config':_0x2b45d3,'result':{'actions':_0x53b480,'error':_0x37b50b[_0x37ff2e(0x237)]}};});}})}));}[_0x37a374(0x254)](){const _0x4129dc=_0x37a374;var _0xf2394d,_0x309d98;const _0x3fea2c=this['_configService'][_0x4129dc(0x37d)](En),_0x347c5f=this[_0x4129dc(0x3e7)][_0x4129dc(0x37d)](ne);return(_0x309d98=(_0xf2394d=_0x347c5f==null?void 0x0:_0x347c5f[_0x4129dc(0x26c)])!=null?_0xf2394d:_0x3fea2c)!=null?_0x309d98:Xs;}async['create'](_0x43d404){const _0x3103a4=_0x37a374,_0x36ce18=this['_getAPIPrefixPath']()+'/'+_0x43d404[_0x3103a4(0x63f)]+_0x3103a4(0x5d8);return(await this[_0x3103a4(0x624)]['post'](_0x36ce18,{'body':_0x43d404}))[_0x3103a4(0x360)][_0x3103a4(0x5f3)]||'';}async[_0x37a374(0x3a5)](_0x587058){const _0x33e902=_0x37a374,_0x360f3b=this[_0x33e902(0x254)]()+_0x33e902(0x27b);return(await this[_0x33e902(0x624)][_0x33e902(0x302)](_0x360f3b,{'body':_0x587058}))['body'][_0x33e902(0x5b6)];}async[_0x37a374(0x60b)](_0x461a2e){const _0x30803b=_0x37a374,_0x50133b=this[_0x30803b(0x254)]()+'/'+_0x461a2e[_0x30803b(0x63f)]+_0x30803b(0x2b5)+_0x461a2e[_0x30803b(0x5f3)];await this[_0x30803b(0x624)][_0x30803b(0x661)](_0x50133b,{'body':_0x461a2e});}async[_0x37a374(0x4f0)](_0x2e05da){const _0x2c10e2=_0x37a374,_0x613fb2=this[_0x2c10e2(0x254)]()+'/'+_0x2e05da[_0x2c10e2(0x63f)]+'/object/'+_0x2e05da['objectID']+_0x2c10e2(0x5fe);return(await this['_HTTPService'][_0x2c10e2(0x302)](_0x613fb2,{'body':_0x2e05da}))[_0x2c10e2(0x360)]['actions'];}async[_0x37a374(0x5c5)](_0x41eb31){const _0x2303f1=_0x37a374,_0x3c4c10=this[_0x2303f1(0x254)]()+'/-/object/-/batch_allowed';return(await this[_0x2303f1(0x624)]['post'](_0x3c4c10,{'body':{'requests':_0x41eb31}}))[_0x2303f1(0x360)][_0x2303f1(0x4b8)];}async[_0x37a374(0x293)](_0x7a6e0a){const _0x149de4=_0x37a374,_0x4f89cd=this[_0x149de4(0x254)]()+'/'+_0x7a6e0a[_0x149de4(0x63f)]+'/role',_0x357311=await this[_0x149de4(0x624)]['post'](_0x4f89cd,{'body':_0x7a6e0a});return{'roles':_0x357311[_0x149de4(0x360)][_0x149de4(0x5ee)],'actions':_0x357311[_0x149de4(0x360)][_0x149de4(0x3b6)]};}async['deleteCollaborator'](_0x24b7af){const _0x23c3bf=_0x37a374,_0x3230bf=this[_0x23c3bf(0x254)]()+_0x23c3bf(0x460);await this[_0x23c3bf(0x624)][_0x23c3bf(0x412)](_0x3230bf,{'params':{'collaboratorID':_0x24b7af[_0x23c3bf(0x56f)],'objectID':_0x24b7af[_0x23c3bf(0x5f3)],'unitID':_0x24b7af[_0x23c3bf(0x505)]}});}async[_0x37a374(0x62f)](_0x3d5c6c){const _0x2a2ed8=_0x37a374,_0x1c2e57=this[_0x2a2ed8(0x254)]()+'/collaborator';await this['_HTTPService'][_0x2a2ed8(0x2e4)](_0x1c2e57,{'body':_0x3d5c6c});}async['createCollaborator'](_0x2c7cc7){const _0x42612a=_0x37a374,_0x430323=this[_0x42612a(0x254)]()+_0x42612a(0x460);await this[_0x42612a(0x624)][_0x42612a(0x302)](_0x430323,{'body':_0x2c7cc7});}async['listCollaborators'](_0x1f599b){const _0x2ff8f1=_0x37a374,_0x8f4a6a=this[_0x2ff8f1(0x254)]()+_0x2ff8f1(0x460);return(await this[_0x2ff8f1(0x624)][_0x2ff8f1(0x5bf)](_0x8f4a6a,{'params':{'objectID':_0x1f599b[_0x2ff8f1(0x5f3)],'unitID':_0x1f599b['unitID']}}))['body'][_0x2ff8f1(0x504)];}async[_0x37a374(0x4cc)](_0x5d0630){const _0x566065=_0x37a374,_0x5e7b8a=this[_0x566065(0x254)]()+_0x566065(0x460);await this[_0x566065(0x624)][_0x566065(0x661)](_0x5e7b8a,{'body':_0x5d0630});}},exports[_0x37a374(0x361)]=zs([kt(0x0,a['Inject'](Q[_0x37a374(0x34f)])),kt(0x1,a[_0x37a374(0x629)](a[_0x37a374(0x30b)]))],exports[_0x37a374(0x361)]);var J=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function Le(_0x20eaea){const _0x4a534b=_0x37a374;return _0x20eaea&&_0x20eaea['__esModule']&&Object[_0x4a534b(0x420)]['hasOwnProperty'][_0x4a534b(0x1fa)](_0x20eaea,_0x4a534b(0x2ad))?_0x20eaea[_0x4a534b(0x2ad)]:_0x20eaea;}function Js(_0x1f065f){const _0x5165da=_0x37a374;if(_0x1f065f[_0x5165da(0x32f)])return _0x1f065f;var _0x20929f=_0x1f065f[_0x5165da(0x2ad)];if(typeof _0x20929f==_0x5165da(0x556)){var _0x52d138=function _0x2e92eb(){const _0x46626a=_0x5165da;return this instanceof _0x2e92eb?Reflect[_0x46626a(0x284)](_0x20929f,arguments,this[_0x46626a(0x21f)]):_0x20929f[_0x46626a(0x4ae)](this,arguments);};_0x52d138['prototype']=_0x20929f['prototype'];}else _0x52d138={};return Object['defineProperty'](_0x52d138,_0x5165da(0x32f),{'value':!0x0}),Object[_0x5165da(0x67c)](_0x1f065f)[_0x5165da(0x278)](function(_0x321813){const _0x1e68de=_0x5165da;var _0x293708=Object[_0x1e68de(0x4a5)](_0x1f065f,_0x321813);Object[_0x1e68de(0x55e)](_0x52d138,_0x321813,_0x293708[_0x1e68de(0x5bf)]?_0x293708:{'enumerable':!0x0,'get':function(){return _0x1f065f[_0x321813];}});}),_0x52d138;}var bn={'exports':{}};function Zs(_0x33c247){const _0x5800ea=_0x37a374;throw new Error(_0x5800ea(0x528)+_0x33c247+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}var at={'exports':{}};const Qs={},er=Object[_0x37a374(0x49c)](Object[_0x37a374(0x55e)]({'__proto__':null,'default':Qs},Symbol[_0x37a374(0x614)],{'value':_0x37a374(0x471)})),tr=Js(er);var Wt;function ae(){const _0x9fed1a=_0x37a374;return Wt||(Wt=0x1,function(_0x1b4381,_0x41e2a8){(function(_0x45495b,_0x1be8ce){const _0xe5d36d=_0x513c;_0x1b4381[_0xe5d36d(0x447)]=_0x1be8ce();}(J,function(){var _0x4d6617=_0x4d6617||function(_0x8ca837,_0x3b2d1b){const _0x2dc9c6=_0x513c;var _0x23bf47;if(typeof window<'u'&&window['crypto']&&(_0x23bf47=window[_0x2dc9c6(0x273)]),typeof self<'u'&&self[_0x2dc9c6(0x273)]&&(_0x23bf47=self[_0x2dc9c6(0x273)]),typeof globalThis<'u'&&globalThis[_0x2dc9c6(0x273)]&&(_0x23bf47=globalThis[_0x2dc9c6(0x273)]),!_0x23bf47&&typeof window<'u'&&window['msCrypto']&&(_0x23bf47=window[_0x2dc9c6(0x4cd)]),!_0x23bf47&&typeof J<'u'&&J[_0x2dc9c6(0x273)]&&(_0x23bf47=J[_0x2dc9c6(0x273)]),!_0x23bf47&&typeof Zs==_0x2dc9c6(0x556))try{_0x23bf47=tr;}catch{}var _0x1d53dc=function(){const _0x48bb85=_0x2dc9c6;if(_0x23bf47){if(typeof _0x23bf47[_0x48bb85(0x2e1)]==_0x48bb85(0x556))try{return _0x23bf47[_0x48bb85(0x2e1)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x23bf47[_0x48bb85(0x289)]==_0x48bb85(0x556))try{return _0x23bf47[_0x48bb85(0x289)](0x4)[_0x48bb85(0x5f5)]();}catch{}}throw new Error(_0x48bb85(0x5be));},_0x1b3646=Object[_0x2dc9c6(0x4e6)]||(function(){function _0x4ad094(){}return function(_0x28921e){const _0x15eda9=_0x513c;var _0x3a9e09;return _0x4ad094[_0x15eda9(0x420)]=_0x28921e,_0x3a9e09=new _0x4ad094(),_0x4ad094[_0x15eda9(0x420)]=null,_0x3a9e09;};}()),_0xb77eec={},_0x397402=_0xb77eec[_0x2dc9c6(0x456)]={},_0x495658=_0x397402[_0x2dc9c6(0x3dd)]=(function(){return{'extend':function(_0xfc0f6b){const _0x5aad44=_0x513c;var _0x2a74d5=_0x1b3646(this);return _0xfc0f6b&&_0x2a74d5[_0x5aad44(0x432)](_0xfc0f6b),(!_0x2a74d5['hasOwnProperty'](_0x5aad44(0x5ca))||this[_0x5aad44(0x5ca)]===_0x2a74d5[_0x5aad44(0x5ca)])&&(_0x2a74d5[_0x5aad44(0x5ca)]=function(){const _0x2925d0=_0x5aad44;_0x2a74d5[_0x2925d0(0x5c7)][_0x2925d0(0x5ca)][_0x2925d0(0x4ae)](this,arguments);}),_0x2a74d5[_0x5aad44(0x5ca)][_0x5aad44(0x420)]=_0x2a74d5,_0x2a74d5[_0x5aad44(0x5c7)]=this,_0x2a74d5;},'create':function(){const _0x29df5a=_0x513c;var _0x49d63f=this[_0x29df5a(0x24a)]();return _0x49d63f[_0x29df5a(0x5ca)]['apply'](_0x49d63f,arguments),_0x49d63f;},'init':function(){},'mixIn':function(_0x59c74e){const _0x4bc4e9=_0x513c;for(var _0x422fa9 in _0x59c74e)_0x59c74e[_0x4bc4e9(0x658)](_0x422fa9)&&(this[_0x422fa9]=_0x59c74e[_0x422fa9]);_0x59c74e[_0x4bc4e9(0x658)]('toString')&&(this['toString']=_0x59c74e[_0x4bc4e9(0x4d2)]);},'clone':function(){const _0x19b454=_0x513c;return this[_0x19b454(0x5ca)]['prototype'][_0x19b454(0x24a)](this);}};}()),_0x2efda0=_0x397402[_0x2dc9c6(0x33f)]=_0x495658[_0x2dc9c6(0x24a)]({'init':function(_0x29c454,_0x43a14e){const _0x252cad=_0x2dc9c6;_0x29c454=this['words']=_0x29c454||[],_0x43a14e!=_0x3b2d1b?this[_0x252cad(0x54c)]=_0x43a14e:this[_0x252cad(0x54c)]=_0x29c454[_0x252cad(0x330)]*0x4;},'toString':function(_0x370c44){const _0x42b47b=_0x2dc9c6;return(_0x370c44||_0xbf5f52)[_0x42b47b(0x3df)](this);},'concat':function(_0x8266b){const _0x3d867e=_0x2dc9c6;var _0x43ece2=this[_0x3d867e(0x589)],_0x3c9e47=_0x8266b['words'],_0xdf4721=this[_0x3d867e(0x54c)],_0x27b640=_0x8266b[_0x3d867e(0x54c)];if(this[_0x3d867e(0x2d0)](),_0xdf4721%0x4)for(var _0x125862=0x0;_0x125862<_0x27b640;_0x125862++){var _0x4590f5=_0x3c9e47[_0x125862>>>0x2]>>>0x18-_0x125862%0x4*0x8&0xff;_0x43ece2[_0xdf4721+_0x125862>>>0x2]|=_0x4590f5<<0x18-(_0xdf4721+_0x125862)%0x4*0x8;}else{for(var _0x57b1e7=0x0;_0x57b1e7<_0x27b640;_0x57b1e7+=0x4)_0x43ece2[_0xdf4721+_0x57b1e7>>>0x2]=_0x3c9e47[_0x57b1e7>>>0x2];}return this[_0x3d867e(0x54c)]+=_0x27b640,this;},'clamp':function(){const _0x44af37=_0x2dc9c6;var _0x595440=this[_0x44af37(0x589)],_0x4b8dbb=this[_0x44af37(0x54c)];_0x595440[_0x4b8dbb>>>0x2]&=0xffffffff<<0x20-_0x4b8dbb%0x4*0x8,_0x595440[_0x44af37(0x330)]=_0x8ca837['ceil'](_0x4b8dbb/0x4);},'clone':function(){const _0x44eace=_0x2dc9c6;var _0x328de1=_0x495658[_0x44eace(0x678)][_0x44eace(0x1fa)](this);return _0x328de1[_0x44eace(0x589)]=this[_0x44eace(0x589)]['slice'](0x0),_0x328de1;},'random':function(_0x503d35){const _0x4342d8=_0x2dc9c6;for(var _0x189d47=[],_0xb099f3=0x0;_0xb099f3<_0x503d35;_0xb099f3+=0x4)_0x189d47[_0x4342d8(0x257)](_0x1d53dc());return new _0x2efda0[(_0x4342d8(0x5ca))](_0x189d47,_0x503d35);}}),_0x9502b9=_0xb77eec[_0x2dc9c6(0x271)]={},_0xbf5f52=_0x9502b9[_0x2dc9c6(0x36c)]={'stringify':function(_0x35ae2f){const _0xa7523d=_0x2dc9c6;for(var _0x43f432=_0x35ae2f[_0xa7523d(0x589)],_0x265320=_0x35ae2f[_0xa7523d(0x54c)],_0x41208a=[],_0x462c22=0x0;_0x462c22<_0x265320;_0x462c22++){var _0x30b61a=_0x43f432[_0x462c22>>>0x2]>>>0x18-_0x462c22%0x4*0x8&0xff;_0x41208a[_0xa7523d(0x257)]((_0x30b61a>>>0x4)['toString'](0x10)),_0x41208a[_0xa7523d(0x257)]((_0x30b61a&0xf)[_0xa7523d(0x4d2)](0x10));}return _0x41208a['join']('');},'parse':function(_0x5123b4){const _0x3e7bb6=_0x2dc9c6;for(var _0x59f039=_0x5123b4[_0x3e7bb6(0x330)],_0xe05b51=[],_0x2e51f1=0x0;_0x2e51f1<_0x59f039;_0x2e51f1+=0x2)_0xe05b51[_0x2e51f1>>>0x3]|=parseInt(_0x5123b4[_0x3e7bb6(0x283)](_0x2e51f1,0x2),0x10)<<0x18-_0x2e51f1%0x8*0x4;return new _0x2efda0['init'](_0xe05b51,_0x59f039/0x2);}},_0xf1d393=_0x9502b9['Latin1']={'stringify':function(_0x53c48c){const _0x296432=_0x2dc9c6;for(var _0xecabd8=_0x53c48c[_0x296432(0x589)],_0x450238=_0x53c48c['sigBytes'],_0x82d073=[],_0x1ad456=0x0;_0x1ad456<_0x450238;_0x1ad456++){var _0x160cbf=_0xecabd8[_0x1ad456>>>0x2]>>>0x18-_0x1ad456%0x4*0x8&0xff;_0x82d073[_0x296432(0x257)](String['fromCharCode'](_0x160cbf));}return _0x82d073['join']('');},'parse':function(_0x3b3f39){const _0x13a2c9=_0x2dc9c6;for(var _0x4a8a4e=_0x3b3f39[_0x13a2c9(0x330)],_0x346819=[],_0x2d592e=0x0;_0x2d592e<_0x4a8a4e;_0x2d592e++)_0x346819[_0x2d592e>>>0x2]|=(_0x3b3f39[_0x13a2c9(0x5a7)](_0x2d592e)&0xff)<<0x18-_0x2d592e%0x4*0x8;return new _0x2efda0[(_0x13a2c9(0x5ca))](_0x346819,_0x4a8a4e);}},_0x5a6ae1=_0x9502b9[_0x2dc9c6(0x4d1)]={'stringify':function(_0x474eb2){const _0x4d9d92=_0x2dc9c6;try{return decodeURIComponent(escape(_0xf1d393[_0x4d9d92(0x3df)](_0x474eb2)));}catch{throw new Error(_0x4d9d92(0x596));}},'parse':function(_0x1e4dcc){const _0x5aa571=_0x2dc9c6;return _0xf1d393[_0x5aa571(0x558)](unescape(encodeURIComponent(_0x1e4dcc)));}},_0x457f95=_0x397402[_0x2dc9c6(0x263)]=_0x495658[_0x2dc9c6(0x24a)]({'reset':function(){const _0x5e7075=_0x2dc9c6;this['_data']=new _0x2efda0[(_0x5e7075(0x5ca))](),this[_0x5e7075(0x21b)]=0x0;},'_append':function(_0x30393c){const _0x1390b6=_0x2dc9c6;typeof _0x30393c==_0x1390b6(0x3de)&&(_0x30393c=_0x5a6ae1[_0x1390b6(0x558)](_0x30393c)),this[_0x1390b6(0x2c9)]['concat'](_0x30393c),this[_0x1390b6(0x21b)]+=_0x30393c[_0x1390b6(0x54c)];},'_process':function(_0x1cbc19){const _0x1486ff=_0x2dc9c6;var _0x5c903f,_0x26369d=this['_data'],_0x270b53=_0x26369d[_0x1486ff(0x589)],_0x33c238=_0x26369d[_0x1486ff(0x54c)],_0x552a6e=this['blockSize'],_0x122130=_0x552a6e*0x4,_0x590892=_0x33c238/_0x122130;_0x1cbc19?_0x590892=_0x8ca837[_0x1486ff(0x637)](_0x590892):_0x590892=_0x8ca837['max']((_0x590892|0x0)-this[_0x1486ff(0x66c)],0x0);var _0x4f3907=_0x590892*_0x552a6e,_0x471188=_0x8ca837[_0x1486ff(0x242)](_0x4f3907*0x4,_0x33c238);if(_0x4f3907){for(var _0x4ec467=0x0;_0x4ec467<_0x4f3907;_0x4ec467+=_0x552a6e)this['_doProcessBlock'](_0x270b53,_0x4ec467);_0x5c903f=_0x270b53[_0x1486ff(0x225)](0x0,_0x4f3907),_0x26369d[_0x1486ff(0x54c)]-=_0x471188;}return new _0x2efda0[(_0x1486ff(0x5ca))](_0x5c903f,_0x471188);},'clone':function(){const _0x424dbf=_0x2dc9c6;var _0x2268f8=_0x495658[_0x424dbf(0x678)][_0x424dbf(0x1fa)](this);return _0x2268f8[_0x424dbf(0x2c9)]=this[_0x424dbf(0x2c9)][_0x424dbf(0x678)](),_0x2268f8;},'_minBufferSize':0x0});_0x397402[_0x2dc9c6(0x342)]=_0x457f95['extend']({'cfg':_0x495658[_0x2dc9c6(0x24a)](),'init':function(_0x3dd976){const _0x4edc40=_0x2dc9c6;this['cfg']=this[_0x4edc40(0x553)][_0x4edc40(0x24a)](_0x3dd976),this[_0x4edc40(0x63c)]();},'reset':function(){const _0x3080d8=_0x2dc9c6;_0x457f95[_0x3080d8(0x63c)][_0x3080d8(0x1fa)](this),this[_0x3080d8(0x51f)]();},'update':function(_0x171bda){return this['_append'](_0x171bda),this['_process'](),this;},'finalize':function(_0x20eefd){const _0x5ee344=_0x2dc9c6;_0x20eefd&&this[_0x5ee344(0x298)](_0x20eefd);var _0x13a9ef=this['_doFinalize']();return _0x13a9ef;},'blockSize':0x10,'_createHelper':function(_0x134c6e){return function(_0x564357,_0x5725dd){const _0x259bc4=_0x513c;return new _0x134c6e[(_0x259bc4(0x5ca))](_0x5725dd)[_0x259bc4(0x58d)](_0x564357);};},'_createHmacHelper':function(_0x5d3b14){return function(_0x1ee13e,_0x3c5ada){const _0x58e52b=_0x513c;return new _0x2f22d0[(_0x58e52b(0x22f))][(_0x58e52b(0x5ca))](_0x5d3b14,_0x3c5ada)[_0x58e52b(0x58d)](_0x1ee13e);};}});var _0x2f22d0=_0xb77eec['algo']={};return _0xb77eec;}(Math);return _0x4d6617;}));}(at)),at[_0x9fed1a(0x447)];}var ct={'exports':{}},Ft;function Tn(){const _0x17bcf0=_0x37a374;return Ft||(Ft=0x1,function(_0xb5c0af,_0x2b5d5c){(function(_0x190aa7,_0x525ed3){const _0x5de757=_0x513c;_0xb5c0af[_0x5de757(0x447)]=_0x525ed3(ae());}(J,function(_0x2fe981){return(function(){const _0x2198f3=_0x513c;var _0x20c239=_0x2fe981,_0x10bc3d=_0x20c239[_0x2198f3(0x456)],_0x1a36b8=_0x10bc3d[_0x2198f3(0x33f)],_0x3275e7=_0x20c239[_0x2198f3(0x271)];_0x3275e7[_0x2198f3(0x64e)]={'stringify':function(_0x3f01de){const _0x5c0b6b=_0x2198f3;var _0x2c2db0=_0x3f01de[_0x5c0b6b(0x589)],_0x5a2906=_0x3f01de[_0x5c0b6b(0x54c)],_0x511aaf=this[_0x5c0b6b(0x5fa)];_0x3f01de['clamp']();for(var _0x433356=[],_0x2ba51e=0x0;_0x2ba51e<_0x5a2906;_0x2ba51e+=0x3)for(var _0xc5e64=_0x2c2db0[_0x2ba51e>>>0x2]>>>0x18-_0x2ba51e%0x4*0x8&0xff,_0x1f12a0=_0x2c2db0[_0x2ba51e+0x1>>>0x2]>>>0x18-(_0x2ba51e+0x1)%0x4*0x8&0xff,_0x2df912=_0x2c2db0[_0x2ba51e+0x2>>>0x2]>>>0x18-(_0x2ba51e+0x2)%0x4*0x8&0xff,_0x48e43b=_0xc5e64<<0x10|_0x1f12a0<<0x8|_0x2df912,_0x38e818=0x0;_0x38e818<0x4&&_0x2ba51e+_0x38e818*0.75<_0x5a2906;_0x38e818++)_0x433356['push'](_0x511aaf['charAt'](_0x48e43b>>>0x6*(0x3-_0x38e818)&0x3f));var _0x32478b=_0x511aaf[_0x5c0b6b(0x1c3)](0x40);if(_0x32478b){for(;_0x433356[_0x5c0b6b(0x330)]%0x4;)_0x433356[_0x5c0b6b(0x257)](_0x32478b);}return _0x433356['join']('');},'parse':function(_0x4209d9){const _0x5557a1=_0x2198f3;var _0x3d4983=_0x4209d9[_0x5557a1(0x330)],_0x2fbf90=this[_0x5557a1(0x5fa)],_0x389b82=this['_reverseMap'];if(!_0x389b82){_0x389b82=this['_reverseMap']=[];for(var _0x2365a9=0x0;_0x2365a9<_0x2fbf90[_0x5557a1(0x330)];_0x2365a9++)_0x389b82[_0x2fbf90[_0x5557a1(0x5a7)](_0x2365a9)]=_0x2365a9;}var _0x119db6=_0x2fbf90[_0x5557a1(0x1c3)](0x40);if(_0x119db6){var _0x5aac99=_0x4209d9[_0x5557a1(0x23a)](_0x119db6);_0x5aac99!==-0x1&&(_0x3d4983=_0x5aac99);}return _0x4a4f2b(_0x4209d9,_0x3d4983,_0x389b82);},'_map':_0x2198f3(0x56e)};function _0x4a4f2b(_0x1a69d9,_0x1ed6f6,_0x327f60){const _0x5f228f=_0x2198f3;for(var _0x257bd3=[],_0x49a22c=0x0,_0x4b6d2f=0x0;_0x4b6d2f<_0x1ed6f6;_0x4b6d2f++)if(_0x4b6d2f%0x4){var _0x2020f0=_0x327f60[_0x1a69d9[_0x5f228f(0x5a7)](_0x4b6d2f-0x1)]<<_0x4b6d2f%0x4*0x2,_0x1ccf47=_0x327f60[_0x1a69d9[_0x5f228f(0x5a7)](_0x4b6d2f)]>>>0x6-_0x4b6d2f%0x4*0x2,_0x195116=_0x2020f0|_0x1ccf47;_0x257bd3[_0x49a22c>>>0x2]|=_0x195116<<0x18-_0x49a22c%0x4*0x8,_0x49a22c++;}return _0x1a36b8[_0x5f228f(0x4e6)](_0x257bd3,_0x49a22c);}}()),_0x2fe981['enc']['Base64'];}));}(ct)),ct[_0x17bcf0(0x447)];}var lt={'exports':{}},Vt;function nr(){const _0x3b0250=_0x37a374;return Vt||(Vt=0x1,function(_0x22c689,_0x17fb0a){(function(_0xb3ce88,_0x1f87e0){const _0x4471d0=_0x513c;_0x22c689[_0x4471d0(0x447)]=_0x1f87e0(ae());}(J,function(_0x1119b3){const _0x1485fc=_0x513c;return function(_0x2d9965){const _0x1de7ee=_0x513c;var _0x1f023f=_0x1119b3,_0x4dc8be=_0x1f023f[_0x1de7ee(0x456)],_0x29f211=_0x4dc8be[_0x1de7ee(0x33f)],_0x2f3c38=_0x4dc8be[_0x1de7ee(0x342)],_0x3d1151=_0x1f023f[_0x1de7ee(0x3da)],_0x3f0c52=[];(function(){const _0x30fb05=_0x1de7ee;for(var _0x34db91=0x0;_0x34db91<0x40;_0x34db91++)_0x3f0c52[_0x34db91]=_0x2d9965[_0x30fb05(0x492)](_0x2d9965[_0x30fb05(0x549)](_0x34db91+0x1))*0x100000000|0x0;}());var _0x3d2b6d=_0x3d1151[_0x1de7ee(0x375)]=_0x2f3c38[_0x1de7ee(0x24a)]({'_doReset':function(){const _0x48eeaa=_0x1de7ee;this[_0x48eeaa(0x46b)]=new _0x29f211['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x38c1e6,_0x27c9b3){const _0x27146b=_0x1de7ee;for(var _0x3efa7c=0x0;_0x3efa7c<0x10;_0x3efa7c++){var _0x35fe20=_0x27c9b3+_0x3efa7c,_0x5546dc=_0x38c1e6[_0x35fe20];_0x38c1e6[_0x35fe20]=(_0x5546dc<<0x8|_0x5546dc>>>0x18)&0xff00ff|(_0x5546dc<<0x18|_0x5546dc>>>0x8)&0xff00ff00;}var _0x59d8b9=this[_0x27146b(0x46b)]['words'],_0xa1130a=_0x38c1e6[_0x27c9b3+0x0],_0x47de8b=_0x38c1e6[_0x27c9b3+0x1],_0x40797f=_0x38c1e6[_0x27c9b3+0x2],_0x4b76ae=_0x38c1e6[_0x27c9b3+0x3],_0x50fccd=_0x38c1e6[_0x27c9b3+0x4],_0x28714b=_0x38c1e6[_0x27c9b3+0x5],_0x210097=_0x38c1e6[_0x27c9b3+0x6],_0x15ce68=_0x38c1e6[_0x27c9b3+0x7],_0x143b1f=_0x38c1e6[_0x27c9b3+0x8],_0x38c9a1=_0x38c1e6[_0x27c9b3+0x9],_0x32a5ee=_0x38c1e6[_0x27c9b3+0xa],_0x298cda=_0x38c1e6[_0x27c9b3+0xb],_0x55017c=_0x38c1e6[_0x27c9b3+0xc],_0x3bab9a=_0x38c1e6[_0x27c9b3+0xd],_0x272105=_0x38c1e6[_0x27c9b3+0xe],_0x318c63=_0x38c1e6[_0x27c9b3+0xf],_0x56ccde=_0x59d8b9[0x0],_0x416aec=_0x59d8b9[0x1],_0x330ad2=_0x59d8b9[0x2],_0x431f59=_0x59d8b9[0x3];_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0xa1130a,0x7,_0x3f0c52[0x0]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x47de8b,0xc,_0x3f0c52[0x1]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x40797f,0x11,_0x3f0c52[0x2]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x4b76ae,0x16,_0x3f0c52[0x3]),_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x50fccd,0x7,_0x3f0c52[0x4]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x28714b,0xc,_0x3f0c52[0x5]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x210097,0x11,_0x3f0c52[0x6]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x15ce68,0x16,_0x3f0c52[0x7]),_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x143b1f,0x7,_0x3f0c52[0x8]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x38c9a1,0xc,_0x3f0c52[0x9]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x32a5ee,0x11,_0x3f0c52[0xa]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x298cda,0x16,_0x3f0c52[0xb]),_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x55017c,0x7,_0x3f0c52[0xc]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x3bab9a,0xc,_0x3f0c52[0xd]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x272105,0x11,_0x3f0c52[0xe]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x318c63,0x16,_0x3f0c52[0xf]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x47de8b,0x5,_0x3f0c52[0x10]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x210097,0x9,_0x3f0c52[0x11]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x298cda,0xe,_0x3f0c52[0x12]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0xa1130a,0x14,_0x3f0c52[0x13]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x28714b,0x5,_0x3f0c52[0x14]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x32a5ee,0x9,_0x3f0c52[0x15]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x318c63,0xe,_0x3f0c52[0x16]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x50fccd,0x14,_0x3f0c52[0x17]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x38c9a1,0x5,_0x3f0c52[0x18]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x272105,0x9,_0x3f0c52[0x19]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x4b76ae,0xe,_0x3f0c52[0x1a]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x143b1f,0x14,_0x3f0c52[0x1b]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x3bab9a,0x5,_0x3f0c52[0x1c]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x40797f,0x9,_0x3f0c52[0x1d]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x15ce68,0xe,_0x3f0c52[0x1e]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x55017c,0x14,_0x3f0c52[0x1f]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x28714b,0x4,_0x3f0c52[0x20]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x143b1f,0xb,_0x3f0c52[0x21]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x298cda,0x10,_0x3f0c52[0x22]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x272105,0x17,_0x3f0c52[0x23]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x47de8b,0x4,_0x3f0c52[0x24]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x50fccd,0xb,_0x3f0c52[0x25]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x15ce68,0x10,_0x3f0c52[0x26]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x32a5ee,0x17,_0x3f0c52[0x27]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x3bab9a,0x4,_0x3f0c52[0x28]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0xa1130a,0xb,_0x3f0c52[0x29]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x4b76ae,0x10,_0x3f0c52[0x2a]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x210097,0x17,_0x3f0c52[0x2b]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x38c9a1,0x4,_0x3f0c52[0x2c]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x55017c,0xb,_0x3f0c52[0x2d]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x318c63,0x10,_0x3f0c52[0x2e]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x40797f,0x17,_0x3f0c52[0x2f]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0xa1130a,0x6,_0x3f0c52[0x30]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x15ce68,0xa,_0x3f0c52[0x31]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x272105,0xf,_0x3f0c52[0x32]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x28714b,0x15,_0x3f0c52[0x33]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x55017c,0x6,_0x3f0c52[0x34]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x4b76ae,0xa,_0x3f0c52[0x35]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x32a5ee,0xf,_0x3f0c52[0x36]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x47de8b,0x15,_0x3f0c52[0x37]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x143b1f,0x6,_0x3f0c52[0x38]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x318c63,0xa,_0x3f0c52[0x39]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x210097,0xf,_0x3f0c52[0x3a]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x3bab9a,0x15,_0x3f0c52[0x3b]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x50fccd,0x6,_0x3f0c52[0x3c]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x298cda,0xa,_0x3f0c52[0x3d]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x40797f,0xf,_0x3f0c52[0x3e]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x38c9a1,0x15,_0x3f0c52[0x3f]),_0x59d8b9[0x0]=_0x59d8b9[0x0]+_0x56ccde|0x0,_0x59d8b9[0x1]=_0x59d8b9[0x1]+_0x416aec|0x0,_0x59d8b9[0x2]=_0x59d8b9[0x2]+_0x330ad2|0x0,_0x59d8b9[0x3]=_0x59d8b9[0x3]+_0x431f59|0x0;},'_doFinalize':function(){const _0x340dba=_0x1de7ee;var _0x562c47=this[_0x340dba(0x2c9)],_0x1af9ab=_0x562c47[_0x340dba(0x589)],_0xbb34f=this[_0x340dba(0x21b)]*0x8,_0x549457=_0x562c47['sigBytes']*0x8;_0x1af9ab[_0x549457>>>0x5]|=0x80<<0x18-_0x549457%0x20;var _0x28be13=_0x2d9965[_0x340dba(0x640)](_0xbb34f/0x100000000),_0x1d04f0=_0xbb34f;_0x1af9ab[(_0x549457+0x40>>>0x9<<0x4)+0xf]=(_0x28be13<<0x8|_0x28be13>>>0x18)&0xff00ff|(_0x28be13<<0x18|_0x28be13>>>0x8)&0xff00ff00,_0x1af9ab[(_0x549457+0x40>>>0x9<<0x4)+0xe]=(_0x1d04f0<<0x8|_0x1d04f0>>>0x18)&0xff00ff|(_0x1d04f0<<0x18|_0x1d04f0>>>0x8)&0xff00ff00,_0x562c47[_0x340dba(0x54c)]=(_0x1af9ab[_0x340dba(0x330)]+0x1)*0x4,this[_0x340dba(0x3a9)]();for(var _0x35324c=this[_0x340dba(0x46b)],_0x5338d4=_0x35324c[_0x340dba(0x589)],_0x20a2f9=0x0;_0x20a2f9<0x4;_0x20a2f9++){var _0x588332=_0x5338d4[_0x20a2f9];_0x5338d4[_0x20a2f9]=(_0x588332<<0x8|_0x588332>>>0x18)&0xff00ff|(_0x588332<<0x18|_0x588332>>>0x8)&0xff00ff00;}return _0x35324c;},'clone':function(){const _0x1764a9=_0x1de7ee;var _0x32eeeb=_0x2f3c38['clone']['call'](this);return _0x32eeeb[_0x1764a9(0x46b)]=this['_hash']['clone'](),_0x32eeeb;}});function _0x431968(_0x54c7fc,_0x132da7,_0xc54da1,_0x146138,_0x34d41c,_0x2ae676,_0x406fcd){var _0x38133c=_0x54c7fc+(_0x132da7&_0xc54da1|~_0x132da7&_0x146138)+_0x34d41c+_0x406fcd;return(_0x38133c<<_0x2ae676|_0x38133c>>>0x20-_0x2ae676)+_0x132da7;}function _0x130fa5(_0x11e304,_0x19e318,_0x45e600,_0x5ad336,_0xa415a8,_0x3ed9c2,_0x8dbc25){var _0x1ddad0=_0x11e304+(_0x19e318&_0x5ad336|_0x45e600&~_0x5ad336)+_0xa415a8+_0x8dbc25;return(_0x1ddad0<<_0x3ed9c2|_0x1ddad0>>>0x20-_0x3ed9c2)+_0x19e318;}function _0x870908(_0xdcba55,_0x7cd290,_0x5bff34,_0x1cbd55,_0x1a2904,_0x37b127,_0x183483){var _0x159cfb=_0xdcba55+(_0x7cd290^_0x5bff34^_0x1cbd55)+_0x1a2904+_0x183483;return(_0x159cfb<<_0x37b127|_0x159cfb>>>0x20-_0x37b127)+_0x7cd290;}function _0x534fb0(_0x5853c0,_0x3b6cc9,_0x86a714,_0x5beecf,_0x2e40d0,_0x15cdd7,_0x2d25ba){var _0x1ff6ec=_0x5853c0+(_0x86a714^(_0x3b6cc9|~_0x5beecf))+_0x2e40d0+_0x2d25ba;return(_0x1ff6ec<<_0x15cdd7|_0x1ff6ec>>>0x20-_0x15cdd7)+_0x3b6cc9;}_0x1f023f[_0x1de7ee(0x375)]=_0x2f3c38[_0x1de7ee(0x4ba)](_0x3d2b6d),_0x1f023f[_0x1de7ee(0x2b0)]=_0x2f3c38[_0x1de7ee(0x4b0)](_0x3d2b6d);}(Math),_0x1119b3[_0x1485fc(0x375)];}));}(lt)),lt[_0x3b0250(0x447)];}var ht={'exports':{}},_t={'exports':{}},Gt;function ir(){const _0x5110bf=_0x37a374;return Gt||(Gt=0x1,function(_0x4b0e2f,_0x264dea){(function(_0x36c5d1,_0x1ab3e4){const _0x3bdd47=_0x513c;_0x4b0e2f[_0x3bdd47(0x447)]=_0x1ab3e4(ae());}(J,function(_0x20c748){const _0x3abd4a=_0x513c;return(function(){const _0x285157=_0x513c;var _0x436547=_0x20c748,_0x5199fc=_0x436547[_0x285157(0x456)],_0x571bfd=_0x5199fc[_0x285157(0x33f)],_0x5340f9=_0x5199fc[_0x285157(0x342)],_0x3a51b0=_0x436547[_0x285157(0x3da)],_0x2ae387=[],_0x342e76=_0x3a51b0[_0x285157(0x369)]=_0x5340f9[_0x285157(0x24a)]({'_doReset':function(){const _0x3696ca=_0x285157;this[_0x3696ca(0x46b)]=new _0x571bfd[(_0x3696ca(0x5ca))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x18498f,_0x39f8e9){const _0x5b6c22=_0x285157;for(var _0x191f23=this[_0x5b6c22(0x46b)][_0x5b6c22(0x589)],_0x35722a=_0x191f23[0x0],_0x1b5576=_0x191f23[0x1],_0x5ddba1=_0x191f23[0x2],_0x429bcd=_0x191f23[0x3],_0x59c561=_0x191f23[0x4],_0x44ad=0x0;_0x44ad<0x50;_0x44ad++){if(_0x44ad<0x10)_0x2ae387[_0x44ad]=_0x18498f[_0x39f8e9+_0x44ad]|0x0;else{var _0x250b53=_0x2ae387[_0x44ad-0x3]^_0x2ae387[_0x44ad-0x8]^_0x2ae387[_0x44ad-0xe]^_0x2ae387[_0x44ad-0x10];_0x2ae387[_0x44ad]=_0x250b53<<0x1|_0x250b53>>>0x1f;}var _0xa69803=(_0x35722a<<0x5|_0x35722a>>>0x1b)+_0x59c561+_0x2ae387[_0x44ad];_0x44ad<0x14?_0xa69803+=(_0x1b5576&_0x5ddba1|~_0x1b5576&_0x429bcd)+0x5a827999:_0x44ad<0x28?_0xa69803+=(_0x1b5576^_0x5ddba1^_0x429bcd)+0x6ed9eba1:_0x44ad<0x3c?_0xa69803+=(_0x1b5576&_0x5ddba1|_0x1b5576&_0x429bcd|_0x5ddba1&_0x429bcd)-0x70e44324:_0xa69803+=(_0x1b5576^_0x5ddba1^_0x429bcd)-0x359d3e2a,_0x59c561=_0x429bcd,_0x429bcd=_0x5ddba1,_0x5ddba1=_0x1b5576<<0x1e|_0x1b5576>>>0x2,_0x1b5576=_0x35722a,_0x35722a=_0xa69803;}_0x191f23[0x0]=_0x191f23[0x0]+_0x35722a|0x0,_0x191f23[0x1]=_0x191f23[0x1]+_0x1b5576|0x0,_0x191f23[0x2]=_0x191f23[0x2]+_0x5ddba1|0x0,_0x191f23[0x3]=_0x191f23[0x3]+_0x429bcd|0x0,_0x191f23[0x4]=_0x191f23[0x4]+_0x59c561|0x0;},'_doFinalize':function(){const _0xa8eda=_0x285157;var _0x31e1bd=this[_0xa8eda(0x2c9)],_0x2beeec=_0x31e1bd['words'],_0x4833cf=this[_0xa8eda(0x21b)]*0x8,_0xda4d1=_0x31e1bd[_0xa8eda(0x54c)]*0x8;return _0x2beeec[_0xda4d1>>>0x5]|=0x80<<0x18-_0xda4d1%0x20,_0x2beeec[(_0xda4d1+0x40>>>0x9<<0x4)+0xe]=Math[_0xa8eda(0x640)](_0x4833cf/0x100000000),_0x2beeec[(_0xda4d1+0x40>>>0x9<<0x4)+0xf]=_0x4833cf,_0x31e1bd['sigBytes']=_0x2beeec[_0xa8eda(0x330)]*0x4,this[_0xa8eda(0x3a9)](),this[_0xa8eda(0x46b)];},'clone':function(){const _0x29c81c=_0x285157;var _0x3e8bd4=_0x5340f9['clone'][_0x29c81c(0x1fa)](this);return _0x3e8bd4['_hash']=this[_0x29c81c(0x46b)][_0x29c81c(0x678)](),_0x3e8bd4;}});_0x436547[_0x285157(0x369)]=_0x5340f9[_0x285157(0x4ba)](_0x342e76),_0x436547[_0x285157(0x4ad)]=_0x5340f9[_0x285157(0x4b0)](_0x342e76);}()),_0x20c748[_0x3abd4a(0x369)];}));}(_t)),_t[_0x5110bf(0x447)];}var ut={'exports':{}},Yt;function sr(){const _0x5b9acc=_0x37a374;return Yt||(Yt=0x1,function(_0xc84671,_0x41f96e){(function(_0x49eebd,_0x12d62c){const _0x581b7f=_0x513c;_0xc84671[_0x581b7f(0x447)]=_0x12d62c(ae());}(J,function(_0x16f736){(function(){const _0x355c9a=_0x513c;var _0xb3b438=_0x16f736,_0x1bd92f=_0xb3b438[_0x355c9a(0x456)],_0x176922=_0x1bd92f[_0x355c9a(0x3dd)],_0x55169c=_0xb3b438[_0x355c9a(0x271)],_0xb12f7=_0x55169c[_0x355c9a(0x4d1)],_0x55ef4b=_0xb3b438[_0x355c9a(0x3da)];_0x55ef4b[_0x355c9a(0x22f)]=_0x176922['extend']({'init':function(_0x35547d,_0x3447a3){const _0x36f8db=_0x355c9a;_0x35547d=this['_hasher']=new _0x35547d[(_0x36f8db(0x5ca))](),typeof _0x3447a3=='string'&&(_0x3447a3=_0xb12f7['parse'](_0x3447a3));var _0x147fc3=_0x35547d['blockSize'],_0x5bd966=_0x147fc3*0x4;_0x3447a3[_0x36f8db(0x54c)]>_0x5bd966&&(_0x3447a3=_0x35547d['finalize'](_0x3447a3)),_0x3447a3[_0x36f8db(0x2d0)]();for(var _0x1a02ca=this['_oKey']=_0x3447a3['clone'](),_0x7479cc=this[_0x36f8db(0x542)]=_0x3447a3[_0x36f8db(0x678)](),_0x333095=_0x1a02ca['words'],_0x4d9dc4=_0x7479cc['words'],_0x58edad=0x0;_0x58edad<_0x147fc3;_0x58edad++)_0x333095[_0x58edad]^=0x5c5c5c5c,_0x4d9dc4[_0x58edad]^=0x36363636;_0x1a02ca['sigBytes']=_0x7479cc[_0x36f8db(0x54c)]=_0x5bd966,this[_0x36f8db(0x63c)]();},'reset':function(){const _0x237dae=_0x355c9a;var _0x708199=this[_0x237dae(0x35e)];_0x708199['reset'](),_0x708199[_0x237dae(0x60b)](this[_0x237dae(0x542)]);},'update':function(_0xfe9d32){const _0xf816de=_0x355c9a;return this[_0xf816de(0x35e)][_0xf816de(0x60b)](_0xfe9d32),this;},'finalize':function(_0x37b385){const _0x56bd79=_0x355c9a;var _0x47258f=this['_hasher'],_0x316bbd=_0x47258f[_0x56bd79(0x58d)](_0x37b385);_0x47258f[_0x56bd79(0x63c)]();var _0x1a119d=_0x47258f[_0x56bd79(0x58d)](this['_oKey'][_0x56bd79(0x678)]()[_0x56bd79(0x315)](_0x316bbd));return _0x1a119d;}});}());}));}(ut)),ut[_0x5b9acc(0x447)];}var Kt;function Rn(){const _0x49a6c1=_0x37a374;return Kt||(Kt=0x1,function(_0x243a35,_0xd3c859){(function(_0x3d07d6,_0x361d26,_0x1d7499){const _0x117352=_0x513c;_0x243a35[_0x117352(0x447)]=_0x361d26(ae(),ir(),sr());}(J,function(_0x252b0d){const _0xe6b0c9=_0x513c;return(function(){const _0x23807b=_0x513c;var _0x2407ac=_0x252b0d,_0x2f644d=_0x2407ac[_0x23807b(0x456)],_0x43fc83=_0x2f644d['Base'],_0x5b2e06=_0x2f644d[_0x23807b(0x33f)],_0x4174dc=_0x2407ac['algo'],_0x178fc2=_0x4174dc[_0x23807b(0x375)],_0x2d2798=_0x4174dc[_0x23807b(0x4c8)]=_0x43fc83[_0x23807b(0x24a)]({'cfg':_0x43fc83[_0x23807b(0x24a)]({'keySize':0x80/0x20,'hasher':_0x178fc2,'iterations':0x1}),'init':function(_0x396579){const _0x30157c=_0x23807b;this[_0x30157c(0x553)]=this[_0x30157c(0x553)][_0x30157c(0x24a)](_0x396579);},'compute':function(_0x32aef5,_0x5da290){const _0x504072=_0x23807b;for(var _0x55ee84,_0x4ce7ac=this[_0x504072(0x553)],_0x4c06b=_0x4ce7ac[_0x504072(0x57e)]['create'](),_0x3c781d=_0x5b2e06[_0x504072(0x4e6)](),_0xd504ef=_0x3c781d['words'],_0x2b8049=_0x4ce7ac['keySize'],_0x286914=_0x4ce7ac[_0x504072(0x33c)];_0xd504ef['length']<_0x2b8049;){_0x55ee84&&_0x4c06b[_0x504072(0x60b)](_0x55ee84),_0x55ee84=_0x4c06b[_0x504072(0x60b)](_0x32aef5)[_0x504072(0x58d)](_0x5da290),_0x4c06b[_0x504072(0x63c)]();for(var _0x4cc907=0x1;_0x4cc907<_0x286914;_0x4cc907++)_0x55ee84=_0x4c06b[_0x504072(0x58d)](_0x55ee84),_0x4c06b[_0x504072(0x63c)]();_0x3c781d[_0x504072(0x315)](_0x55ee84);}return _0x3c781d[_0x504072(0x54c)]=_0x2b8049*0x4,_0x3c781d;}});_0x2407ac['EvpKDF']=function(_0x322828,_0x258b7c,_0x3abd89){const _0x52d795=_0x23807b;return _0x2d2798[_0x52d795(0x4e6)](_0x3abd89)[_0x52d795(0x38b)](_0x322828,_0x258b7c);};}()),_0x252b0d[_0xe6b0c9(0x4c8)];}));}(ht)),ht[_0x49a6c1(0x447)];}var dt={'exports':{}},qt;function yn(){const _0x518294=_0x37a374;return qt||(qt=0x1,function(_0x4e0def,_0x30de47){(function(_0x2b3795,_0x3cbd10,_0x37d033){_0x4e0def['exports']=_0x3cbd10(ae(),Rn());}(J,function(_0x4c4de2){const _0x43e8cc=_0x513c;_0x4c4de2['lib'][_0x43e8cc(0x566)]||function(_0x281a46){const _0x4bbf35=_0x43e8cc;var _0xcda6e6=_0x4c4de2,_0x385970=_0xcda6e6[_0x4bbf35(0x456)],_0x14f469=_0x385970[_0x4bbf35(0x3dd)],_0x1d7172=_0x385970[_0x4bbf35(0x33f)],_0x5c8a5c=_0x385970[_0x4bbf35(0x263)],_0x5606a4=_0xcda6e6['enc'];_0x5606a4[_0x4bbf35(0x4d1)];var _0x42e1f5=_0x5606a4[_0x4bbf35(0x64e)],_0x3fa37f=_0xcda6e6['algo'],_0x407876=_0x3fa37f[_0x4bbf35(0x4c8)],_0xb28773=_0x385970['Cipher']=_0x5c8a5c[_0x4bbf35(0x24a)]({'cfg':_0x14f469[_0x4bbf35(0x24a)](),'createEncryptor':function(_0x3379fe,_0x166a3c){const _0x4b1aea=_0x4bbf35;return this['create'](this[_0x4b1aea(0x4eb)],_0x3379fe,_0x166a3c);},'createDecryptor':function(_0x30c175,_0x66f689){const _0x319a78=_0x4bbf35;return this[_0x319a78(0x4e6)](this[_0x319a78(0x2d1)],_0x30c175,_0x66f689);},'init':function(_0x215f21,_0x332ef3,_0x3ba59a){const _0x2f946d=_0x4bbf35;this[_0x2f946d(0x553)]=this[_0x2f946d(0x553)][_0x2f946d(0x24a)](_0x3ba59a),this['_xformMode']=_0x215f21,this[_0x2f946d(0x4e5)]=_0x332ef3,this[_0x2f946d(0x63c)]();},'reset':function(){const _0x309c8d=_0x4bbf35;_0x5c8a5c[_0x309c8d(0x63c)][_0x309c8d(0x1fa)](this),this[_0x309c8d(0x51f)]();},'process':function(_0x300838){const _0x949b1e=_0x4bbf35;return this[_0x949b1e(0x298)](_0x300838),this[_0x949b1e(0x3a9)]();},'finalize':function(_0x160400){const _0x229b6c=_0x4bbf35;_0x160400&&this[_0x229b6c(0x298)](_0x160400);var _0x4dbc43=this[_0x229b6c(0x5ec)]();return _0x4dbc43;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x62af2a(_0x38f461){const _0x43f16c=_0x513c;return typeof _0x38f461==_0x43f16c(0x3de)?_0x424a6d:_0x614707;}return function(_0x68fd20){return{'encrypt':function(_0x376e99,_0x4b1168,_0x3e1a89){const _0x2c2d55=_0x513c;return _0x62af2a(_0x4b1168)[_0x2c2d55(0x41c)](_0x68fd20,_0x376e99,_0x4b1168,_0x3e1a89);},'decrypt':function(_0x38f707,_0xf2297b,_0x5dba09){const _0x564ca7=_0x513c;return _0x62af2a(_0xf2297b)[_0x564ca7(0x36b)](_0x68fd20,_0x38f707,_0xf2297b,_0x5dba09);}};};}())});_0x385970[_0x4bbf35(0x604)]=_0xb28773[_0x4bbf35(0x24a)]({'_doFinalize':function(){var _0x58e98a=this['_process'](!0x0);return _0x58e98a;},'blockSize':0x1});var _0x32b848=_0xcda6e6[_0x4bbf35(0x44d)]={},_0x19bd25=_0x385970[_0x4bbf35(0x523)]=_0x14f469['extend']({'createEncryptor':function(_0x27943d,_0x23cb39){const _0x3072f4=_0x4bbf35;return this[_0x3072f4(0x4c5)][_0x3072f4(0x4e6)](_0x27943d,_0x23cb39);},'createDecryptor':function(_0x5c04a0,_0x424a65){const _0x3fe266=_0x4bbf35;return this[_0x3fe266(0x621)][_0x3fe266(0x4e6)](_0x5c04a0,_0x424a65);},'init':function(_0x13dfc9,_0x2ae9fc){const _0x298495=_0x4bbf35;this[_0x298495(0x2b3)]=_0x13dfc9,this['_iv']=_0x2ae9fc;}}),_0x201c84=_0x32b848['CBC']=(function(){const _0x1abc03=_0x4bbf35;var _0xab853c=_0x19bd25['extend']();_0xab853c[_0x1abc03(0x4c5)]=_0xab853c[_0x1abc03(0x24a)]({'processBlock':function(_0x3e284b,_0x195ba2){const _0x2a3525=_0x1abc03;var _0x3800b1=this[_0x2a3525(0x2b3)],_0x4c53d3=_0x3800b1[_0x2a3525(0x647)];_0x1d1c3d[_0x2a3525(0x1fa)](this,_0x3e284b,_0x195ba2,_0x4c53d3),_0x3800b1[_0x2a3525(0x327)](_0x3e284b,_0x195ba2),this[_0x2a3525(0x49a)]=_0x3e284b[_0x2a3525(0x2e5)](_0x195ba2,_0x195ba2+_0x4c53d3);}}),_0xab853c[_0x1abc03(0x621)]=_0xab853c['extend']({'processBlock':function(_0x43cee7,_0x22e25e){const _0x36ec7a=_0x1abc03;var _0x2ed396=this['_cipher'],_0x31443f=_0x2ed396[_0x36ec7a(0x647)],_0x23eb25=_0x43cee7[_0x36ec7a(0x2e5)](_0x22e25e,_0x22e25e+_0x31443f);_0x2ed396[_0x36ec7a(0x469)](_0x43cee7,_0x22e25e),_0x1d1c3d[_0x36ec7a(0x1fa)](this,_0x43cee7,_0x22e25e,_0x31443f),this[_0x36ec7a(0x49a)]=_0x23eb25;}});function _0x1d1c3d(_0x3a7f44,_0x15eb0b,_0x1be958){const _0x409d18=_0x1abc03;var _0x4316f5,_0x209ae2=this[_0x409d18(0x202)];_0x209ae2?(_0x4316f5=_0x209ae2,this['_iv']=_0x281a46):_0x4316f5=this[_0x409d18(0x49a)];for(var _0x267563=0x0;_0x267563<_0x1be958;_0x267563++)_0x3a7f44[_0x15eb0b+_0x267563]^=_0x4316f5[_0x267563];}return _0xab853c;}()),_0x18d0ac=_0xcda6e6[_0x4bbf35(0x3e9)]={},_0x460e3e=_0x18d0ac[_0x4bbf35(0x539)]={'pad':function(_0x54d799,_0x5488c7){const _0x3f7632=_0x4bbf35;for(var _0x73ed3b=_0x5488c7*0x4,_0x33fc1c=_0x73ed3b-_0x54d799[_0x3f7632(0x54c)]%_0x73ed3b,_0x464d98=_0x33fc1c<<0x18|_0x33fc1c<<0x10|_0x33fc1c<<0x8|_0x33fc1c,_0x2ddcdb=[],_0x1f1b9f=0x0;_0x1f1b9f<_0x33fc1c;_0x1f1b9f+=0x4)_0x2ddcdb[_0x3f7632(0x257)](_0x464d98);var _0x28a97b=_0x1d7172[_0x3f7632(0x4e6)](_0x2ddcdb,_0x33fc1c);_0x54d799[_0x3f7632(0x315)](_0x28a97b);},'unpad':function(_0xe367ff){const _0x518f88=_0x4bbf35;var _0x26f1f6=_0xe367ff[_0x518f88(0x589)][_0xe367ff['sigBytes']-0x1>>>0x2]&0xff;_0xe367ff[_0x518f88(0x54c)]-=_0x26f1f6;}};_0x385970[_0x4bbf35(0x5fd)]=_0xb28773[_0x4bbf35(0x24a)]({'cfg':_0xb28773[_0x4bbf35(0x553)][_0x4bbf35(0x24a)]({'mode':_0x201c84,'padding':_0x460e3e}),'reset':function(){const _0x218149=_0x4bbf35;var _0x14f5db;_0xb28773[_0x218149(0x63c)]['call'](this);var _0x5baa2e=this[_0x218149(0x553)],_0xe32baf=_0x5baa2e['iv'],_0x730f34=_0x5baa2e['mode'];this[_0x218149(0x2a8)]==this[_0x218149(0x4eb)]?_0x14f5db=_0x730f34[_0x218149(0x464)]:(_0x14f5db=_0x730f34[_0x218149(0x5dd)],this[_0x218149(0x66c)]=0x1),this[_0x218149(0x381)]&&this[_0x218149(0x381)]['__creator']==_0x14f5db?this[_0x218149(0x381)][_0x218149(0x5ca)](this,_0xe32baf&&_0xe32baf['words']):(this[_0x218149(0x381)]=_0x14f5db[_0x218149(0x1fa)](_0x730f34,this,_0xe32baf&&_0xe32baf[_0x218149(0x589)]),this[_0x218149(0x381)][_0x218149(0x325)]=_0x14f5db);},'_doProcessBlock':function(_0x3322a3,_0xcf480c){const _0x480051=_0x4bbf35;this[_0x480051(0x381)][_0x480051(0x20a)](_0x3322a3,_0xcf480c);},'_doFinalize':function(){const _0x55c63a=_0x4bbf35;var _0x41277d,_0x50753d=this['cfg'][_0x55c63a(0x453)];return this[_0x55c63a(0x2a8)]==this[_0x55c63a(0x4eb)]?(_0x50753d['pad'](this[_0x55c63a(0x2c9)],this[_0x55c63a(0x647)]),_0x41277d=this[_0x55c63a(0x3a9)](!0x0)):(_0x41277d=this[_0x55c63a(0x3a9)](!0x0),_0x50753d['unpad'](_0x41277d)),_0x41277d;},'blockSize':0x80/0x20});var _0x98fe61=_0x385970[_0x4bbf35(0x2c5)]=_0x14f469[_0x4bbf35(0x24a)]({'init':function(_0x5de0f3){this['mixIn'](_0x5de0f3);},'toString':function(_0x480fd1){const _0x5e69fb=_0x4bbf35;return(_0x480fd1||this[_0x5e69fb(0x3f4)])['stringify'](this);}}),_0x5d6716=_0xcda6e6[_0x4bbf35(0x5da)]={},_0x96c0a4=_0x5d6716[_0x4bbf35(0x3ad)]={'stringify':function(_0x39b561){const _0x5e2231=_0x4bbf35;var _0x2fa68e,_0x2ca2ba=_0x39b561['ciphertext'],_0x1933d4=_0x39b561['salt'];return _0x1933d4?_0x2fa68e=_0x1d7172[_0x5e2231(0x4e6)]([0x53616c74,0x65645f5f])[_0x5e2231(0x315)](_0x1933d4)['concat'](_0x2ca2ba):_0x2fa68e=_0x2ca2ba,_0x2fa68e[_0x5e2231(0x4d2)](_0x42e1f5);},'parse':function(_0x596217){const _0x2ad023=_0x4bbf35;var _0x3464ff,_0x394089=_0x42e1f5['parse'](_0x596217),_0x535110=_0x394089['words'];return _0x535110[0x0]==0x53616c74&&_0x535110[0x1]==0x65645f5f&&(_0x3464ff=_0x1d7172[_0x2ad023(0x4e6)](_0x535110[_0x2ad023(0x2e5)](0x2,0x4)),_0x535110['splice'](0x0,0x4),_0x394089[_0x2ad023(0x54c)]-=0x10),_0x98fe61[_0x2ad023(0x4e6)]({'ciphertext':_0x394089,'salt':_0x3464ff});}},_0x614707=_0x385970[_0x4bbf35(0x2e0)]=_0x14f469[_0x4bbf35(0x24a)]({'cfg':_0x14f469[_0x4bbf35(0x24a)]({'format':_0x96c0a4}),'encrypt':function(_0x58ad62,_0x38ab02,_0x69457c,_0x4ad734){const _0x15b7d2=_0x4bbf35;_0x4ad734=this[_0x15b7d2(0x553)]['extend'](_0x4ad734);var _0x4486b8=_0x58ad62[_0x15b7d2(0x464)](_0x69457c,_0x4ad734),_0x39f0c8=_0x4486b8[_0x15b7d2(0x58d)](_0x38ab02),_0x3ea35f=_0x4486b8[_0x15b7d2(0x553)];return _0x98fe61[_0x15b7d2(0x4e6)]({'ciphertext':_0x39f0c8,'key':_0x69457c,'iv':_0x3ea35f['iv'],'algorithm':_0x58ad62,'mode':_0x3ea35f[_0x15b7d2(0x44d)],'padding':_0x3ea35f[_0x15b7d2(0x453)],'blockSize':_0x58ad62[_0x15b7d2(0x647)],'formatter':_0x4ad734[_0x15b7d2(0x5da)]});},'decrypt':function(_0x2458aa,_0x55ef58,_0x1b33dc,_0x20eb24){const _0x42028e=_0x4bbf35;_0x20eb24=this[_0x42028e(0x553)]['extend'](_0x20eb24),_0x55ef58=this[_0x42028e(0x249)](_0x55ef58,_0x20eb24[_0x42028e(0x5da)]);var _0x2a5345=_0x2458aa['createDecryptor'](_0x1b33dc,_0x20eb24)[_0x42028e(0x58d)](_0x55ef58[_0x42028e(0x230)]);return _0x2a5345;},'_parse':function(_0x493869,_0x583f54){const _0x6a5c21=_0x4bbf35;return typeof _0x493869==_0x6a5c21(0x3de)?_0x583f54['parse'](_0x493869,this):_0x493869;}}),_0x45b14d=_0xcda6e6[_0x4bbf35(0x3a7)]={},_0x2b1790=_0x45b14d[_0x4bbf35(0x3ad)]={'execute':function(_0x49ff8a,_0x5493d4,_0x25d474,_0x1f7d8d,_0x11bde6){const _0x4dd7a0=_0x4bbf35;if(_0x1f7d8d||(_0x1f7d8d=_0x1d7172[_0x4dd7a0(0x59c)](0x40/0x8)),_0x11bde6)var _0x56dc2c=_0x407876['create']({'keySize':_0x5493d4+_0x25d474,'hasher':_0x11bde6})[_0x4dd7a0(0x38b)](_0x49ff8a,_0x1f7d8d);else var _0x56dc2c=_0x407876['create']({'keySize':_0x5493d4+_0x25d474})[_0x4dd7a0(0x38b)](_0x49ff8a,_0x1f7d8d);var _0x423ea5=_0x1d7172['create'](_0x56dc2c[_0x4dd7a0(0x589)]['slice'](_0x5493d4),_0x25d474*0x4);return _0x56dc2c['sigBytes']=_0x5493d4*0x4,_0x98fe61[_0x4dd7a0(0x4e6)]({'key':_0x56dc2c,'iv':_0x423ea5,'salt':_0x1f7d8d});}},_0x424a6d=_0x385970['PasswordBasedCipher']=_0x614707['extend']({'cfg':_0x614707['cfg']['extend']({'kdf':_0x2b1790}),'encrypt':function(_0x1f6c9f,_0x4db4fd,_0x537626,_0x2160ed){const _0x388f23=_0x4bbf35;_0x2160ed=this[_0x388f23(0x553)][_0x388f23(0x24a)](_0x2160ed);var _0x2833f4=_0x2160ed[_0x388f23(0x3a7)][_0x388f23(0x371)](_0x537626,_0x1f6c9f['keySize'],_0x1f6c9f[_0x388f23(0x3c1)],_0x2160ed[_0x388f23(0x5c1)],_0x2160ed[_0x388f23(0x57e)]);_0x2160ed['iv']=_0x2833f4['iv'];var _0x4e0dc6=_0x614707[_0x388f23(0x41c)][_0x388f23(0x1fa)](this,_0x1f6c9f,_0x4db4fd,_0x2833f4[_0x388f23(0x1c7)],_0x2160ed);return _0x4e0dc6[_0x388f23(0x432)](_0x2833f4),_0x4e0dc6;},'decrypt':function(_0x36f72c,_0x34cdbc,_0x5e4e1e,_0x58037d){const _0x27df40=_0x4bbf35;_0x58037d=this[_0x27df40(0x553)]['extend'](_0x58037d),_0x34cdbc=this[_0x27df40(0x249)](_0x34cdbc,_0x58037d[_0x27df40(0x5da)]);var _0x4f399e=_0x58037d[_0x27df40(0x3a7)][_0x27df40(0x371)](_0x5e4e1e,_0x36f72c[_0x27df40(0x62e)],_0x36f72c[_0x27df40(0x3c1)],_0x34cdbc[_0x27df40(0x5c1)],_0x58037d[_0x27df40(0x57e)]);_0x58037d['iv']=_0x4f399e['iv'];var _0xd17018=_0x614707[_0x27df40(0x36b)][_0x27df40(0x1fa)](this,_0x36f72c,_0x34cdbc,_0x4f399e[_0x27df40(0x1c7)],_0x58037d);return _0xd17018;}});}();}));}(dt)),dt[_0x518294(0x447)];}(function(_0x5e8dcf,_0x4f1a6a){(function(_0x4df26,_0x57ac67,_0x43f6cb){const _0xdc0097=_0x513c;_0x5e8dcf[_0xdc0097(0x447)]=_0x57ac67(ae(),Tn(),nr(),Rn(),yn());}(J,function(_0x1b019c){const _0x2243b1=_0x513c;return(function(){const _0x1e56fd=_0x513c;var _0x2d3f84=_0x1b019c,_0x382bea=_0x2d3f84[_0x1e56fd(0x456)],_0x181f3f=_0x382bea[_0x1e56fd(0x5fd)],_0x45ef4d=_0x2d3f84['algo'],_0x343e1b=[],_0x2855b9=[],_0x22edda=[],_0xdb93e3=[],_0x353d92=[],_0x1cbe2c=[],_0x34ca70=[],_0xcf8218=[],_0x33bb07=[],_0x144ba2=[];(function(){for(var _0x1ef8c8=[],_0x2e9515=0x0;_0x2e9515<0x100;_0x2e9515++)_0x2e9515<0x80?_0x1ef8c8[_0x2e9515]=_0x2e9515<<0x1:_0x1ef8c8[_0x2e9515]=_0x2e9515<<0x1^0x11b;for(var _0x59c59d=0x0,_0x78c12=0x0,_0x2e9515=0x0;_0x2e9515<0x100;_0x2e9515++){var _0x3537ca=_0x78c12^_0x78c12<<0x1^_0x78c12<<0x2^_0x78c12<<0x3^_0x78c12<<0x4;_0x3537ca=_0x3537ca>>>0x8^_0x3537ca&0xff^0x63,_0x343e1b[_0x59c59d]=_0x3537ca,_0x2855b9[_0x3537ca]=_0x59c59d;var _0x312fb3=_0x1ef8c8[_0x59c59d],_0x280116=_0x1ef8c8[_0x312fb3],_0xd7c692=_0x1ef8c8[_0x280116],_0x4bcc18=_0x1ef8c8[_0x3537ca]*0x101^_0x3537ca*0x1010100;_0x22edda[_0x59c59d]=_0x4bcc18<<0x18|_0x4bcc18>>>0x8,_0xdb93e3[_0x59c59d]=_0x4bcc18<<0x10|_0x4bcc18>>>0x10,_0x353d92[_0x59c59d]=_0x4bcc18<<0x8|_0x4bcc18>>>0x18,_0x1cbe2c[_0x59c59d]=_0x4bcc18;var _0x4bcc18=_0xd7c692*0x1010101^_0x280116*0x10001^_0x312fb3*0x101^_0x59c59d*0x1010100;_0x34ca70[_0x3537ca]=_0x4bcc18<<0x18|_0x4bcc18>>>0x8,_0xcf8218[_0x3537ca]=_0x4bcc18<<0x10|_0x4bcc18>>>0x10,_0x33bb07[_0x3537ca]=_0x4bcc18<<0x8|_0x4bcc18>>>0x18,_0x144ba2[_0x3537ca]=_0x4bcc18,_0x59c59d?(_0x59c59d=_0x312fb3^_0x1ef8c8[_0x1ef8c8[_0x1ef8c8[_0xd7c692^_0x312fb3]]],_0x78c12^=_0x1ef8c8[_0x1ef8c8[_0x78c12]]):_0x59c59d=_0x78c12=0x1;}}());var _0x293a6d=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x14355e=_0x45ef4d['AES']=_0x181f3f[_0x1e56fd(0x24a)]({'_doReset':function(){const _0x22a2bb=_0x1e56fd;var _0x3c78b1;if(!(this[_0x22a2bb(0x1df)]&&this[_0x22a2bb(0x23d)]===this['_key'])){for(var _0x11886a=this[_0x22a2bb(0x23d)]=this[_0x22a2bb(0x4e5)],_0x1c9b77=_0x11886a[_0x22a2bb(0x589)],_0x594372=_0x11886a[_0x22a2bb(0x54c)]/0x4,_0x4d9c7e=this[_0x22a2bb(0x1df)]=_0x594372+0x6,_0x2125ae=(_0x4d9c7e+0x1)*0x4,_0x595fea=this[_0x22a2bb(0x550)]=[],_0xa72aaf=0x0;_0xa72aaf<_0x2125ae;_0xa72aaf++)_0xa72aaf<_0x594372?_0x595fea[_0xa72aaf]=_0x1c9b77[_0xa72aaf]:(_0x3c78b1=_0x595fea[_0xa72aaf-0x1],_0xa72aaf%_0x594372?_0x594372>0x6&&_0xa72aaf%_0x594372==0x4&&(_0x3c78b1=_0x343e1b[_0x3c78b1>>>0x18]<<0x18|_0x343e1b[_0x3c78b1>>>0x10&0xff]<<0x10|_0x343e1b[_0x3c78b1>>>0x8&0xff]<<0x8|_0x343e1b[_0x3c78b1&0xff]):(_0x3c78b1=_0x3c78b1<<0x8|_0x3c78b1>>>0x18,_0x3c78b1=_0x343e1b[_0x3c78b1>>>0x18]<<0x18|_0x343e1b[_0x3c78b1>>>0x10&0xff]<<0x10|_0x343e1b[_0x3c78b1>>>0x8&0xff]<<0x8|_0x343e1b[_0x3c78b1&0xff],_0x3c78b1^=_0x293a6d[_0xa72aaf/_0x594372|0x0]<<0x18),_0x595fea[_0xa72aaf]=_0x595fea[_0xa72aaf-_0x594372]^_0x3c78b1);for(var _0x80bc06=this[_0x22a2bb(0x392)]=[],_0x3af0f1=0x0;_0x3af0f1<_0x2125ae;_0x3af0f1++){var _0xa72aaf=_0x2125ae-_0x3af0f1;if(_0x3af0f1%0x4)var _0x3c78b1=_0x595fea[_0xa72aaf];else var _0x3c78b1=_0x595fea[_0xa72aaf-0x4];_0x3af0f1<0x4||_0xa72aaf<=0x4?_0x80bc06[_0x3af0f1]=_0x3c78b1:_0x80bc06[_0x3af0f1]=_0x34ca70[_0x343e1b[_0x3c78b1>>>0x18]]^_0xcf8218[_0x343e1b[_0x3c78b1>>>0x10&0xff]]^_0x33bb07[_0x343e1b[_0x3c78b1>>>0x8&0xff]]^_0x144ba2[_0x343e1b[_0x3c78b1&0xff]];}}},'encryptBlock':function(_0x44bcff,_0x3c6e1b){const _0x64a12b=_0x1e56fd;this[_0x64a12b(0x537)](_0x44bcff,_0x3c6e1b,this[_0x64a12b(0x550)],_0x22edda,_0xdb93e3,_0x353d92,_0x1cbe2c,_0x343e1b);},'decryptBlock':function(_0x2ba66b,_0x5652a0){var _0x369fbb=_0x2ba66b[_0x5652a0+0x1];_0x2ba66b[_0x5652a0+0x1]=_0x2ba66b[_0x5652a0+0x3],_0x2ba66b[_0x5652a0+0x3]=_0x369fbb,this['_doCryptBlock'](_0x2ba66b,_0x5652a0,this['_invKeySchedule'],_0x34ca70,_0xcf8218,_0x33bb07,_0x144ba2,_0x2855b9);var _0x369fbb=_0x2ba66b[_0x5652a0+0x1];_0x2ba66b[_0x5652a0+0x1]=_0x2ba66b[_0x5652a0+0x3],_0x2ba66b[_0x5652a0+0x3]=_0x369fbb;},'_doCryptBlock':function(_0x140e68,_0x4ed875,_0x44c4eb,_0x5a654b,_0x93a599,_0x523fe2,_0x2dda4d,_0x29f89e){const _0x588b45=_0x1e56fd;for(var _0x2f31a9=this[_0x588b45(0x1df)],_0x29b5ad=_0x140e68[_0x4ed875]^_0x44c4eb[0x0],_0x1d1fb6=_0x140e68[_0x4ed875+0x1]^_0x44c4eb[0x1],_0x534286=_0x140e68[_0x4ed875+0x2]^_0x44c4eb[0x2],_0x3a280f=_0x140e68[_0x4ed875+0x3]^_0x44c4eb[0x3],_0x5970ce=0x4,_0x2ebe01=0x1;_0x2ebe01<_0x2f31a9;_0x2ebe01++){var _0x2b0add=_0x5a654b[_0x29b5ad>>>0x18]^_0x93a599[_0x1d1fb6>>>0x10&0xff]^_0x523fe2[_0x534286>>>0x8&0xff]^_0x2dda4d[_0x3a280f&0xff]^_0x44c4eb[_0x5970ce++],_0x593890=_0x5a654b[_0x1d1fb6>>>0x18]^_0x93a599[_0x534286>>>0x10&0xff]^_0x523fe2[_0x3a280f>>>0x8&0xff]^_0x2dda4d[_0x29b5ad&0xff]^_0x44c4eb[_0x5970ce++],_0x4a908c=_0x5a654b[_0x534286>>>0x18]^_0x93a599[_0x3a280f>>>0x10&0xff]^_0x523fe2[_0x29b5ad>>>0x8&0xff]^_0x2dda4d[_0x1d1fb6&0xff]^_0x44c4eb[_0x5970ce++],_0x28dcd7=_0x5a654b[_0x3a280f>>>0x18]^_0x93a599[_0x29b5ad>>>0x10&0xff]^_0x523fe2[_0x1d1fb6>>>0x8&0xff]^_0x2dda4d[_0x534286&0xff]^_0x44c4eb[_0x5970ce++];_0x29b5ad=_0x2b0add,_0x1d1fb6=_0x593890,_0x534286=_0x4a908c,_0x3a280f=_0x28dcd7;}var _0x2b0add=(_0x29f89e[_0x29b5ad>>>0x18]<<0x18|_0x29f89e[_0x1d1fb6>>>0x10&0xff]<<0x10|_0x29f89e[_0x534286>>>0x8&0xff]<<0x8|_0x29f89e[_0x3a280f&0xff])^_0x44c4eb[_0x5970ce++],_0x593890=(_0x29f89e[_0x1d1fb6>>>0x18]<<0x18|_0x29f89e[_0x534286>>>0x10&0xff]<<0x10|_0x29f89e[_0x3a280f>>>0x8&0xff]<<0x8|_0x29f89e[_0x29b5ad&0xff])^_0x44c4eb[_0x5970ce++],_0x4a908c=(_0x29f89e[_0x534286>>>0x18]<<0x18|_0x29f89e[_0x3a280f>>>0x10&0xff]<<0x10|_0x29f89e[_0x29b5ad>>>0x8&0xff]<<0x8|_0x29f89e[_0x1d1fb6&0xff])^_0x44c4eb[_0x5970ce++],_0x28dcd7=(_0x29f89e[_0x3a280f>>>0x18]<<0x18|_0x29f89e[_0x29b5ad>>>0x10&0xff]<<0x10|_0x29f89e[_0x1d1fb6>>>0x8&0xff]<<0x8|_0x29f89e[_0x534286&0xff])^_0x44c4eb[_0x5970ce++];_0x140e68[_0x4ed875]=_0x2b0add,_0x140e68[_0x4ed875+0x1]=_0x593890,_0x140e68[_0x4ed875+0x2]=_0x4a908c,_0x140e68[_0x4ed875+0x3]=_0x28dcd7;},'keySize':0x100/0x20});_0x2d3f84[_0x1e56fd(0x51d)]=_0x181f3f[_0x1e56fd(0x4ba)](_0x14355e);}()),_0x1b019c[_0x2243b1(0x51d)];}));}(bn));var rr=bn['exports'];const or=Le(rr);var ar=Tn();const zt=Le(ar);var On={'exports':{}};(function(_0x133c37,_0x20b450){(function(_0x3a0929,_0x3616a7){const _0x446b26=_0x513c;_0x133c37[_0x446b26(0x447)]=_0x3616a7(ae());}(J,function(_0x4355e8){const _0x4797fe=_0x513c;return _0x4355e8[_0x4797fe(0x271)][_0x4797fe(0x4d1)];}));}(On));var cr=On['exports'];const lr=Le(cr);var Dn={'exports':{}};(function(_0xc9e09c,_0x54a076){(function(_0x3699f1,_0x3dadd3){const _0x3098e7=_0x513c;_0xc9e09c[_0x3098e7(0x447)]=_0x3dadd3(ae());}(J,function(_0x151ff2){return(function(){const _0x265db9=_0x513c;if(typeof ArrayBuffer==_0x265db9(0x556)){var _0x4641bb=_0x151ff2,_0x3fd827=_0x4641bb['lib'],_0x38aa42=_0x3fd827[_0x265db9(0x33f)],_0xf65f4a=_0x38aa42[_0x265db9(0x5ca)],_0x2c3ace=_0x38aa42[_0x265db9(0x5ca)]=function(_0x12e215){const _0x36aa06=_0x265db9;if(_0x12e215 instanceof ArrayBuffer&&(_0x12e215=new Uint8Array(_0x12e215)),(_0x12e215 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x12e215 instanceof Uint8ClampedArray||_0x12e215 instanceof Int16Array||_0x12e215 instanceof Uint16Array||_0x12e215 instanceof Int32Array||_0x12e215 instanceof Uint32Array||_0x12e215 instanceof Float32Array||_0x12e215 instanceof Float64Array)&&(_0x12e215=new Uint8Array(_0x12e215[_0x36aa06(0x1dd)],_0x12e215[_0x36aa06(0x46d)],_0x12e215['byteLength'])),_0x12e215 instanceof Uint8Array){for(var _0x4533c1=_0x12e215[_0x36aa06(0x42b)],_0x49b4a7=[],_0x212adb=0x0;_0x212adb<_0x4533c1;_0x212adb++)_0x49b4a7[_0x212adb>>>0x2]|=_0x12e215[_0x212adb]<<0x18-_0x212adb%0x4*0x8;_0xf65f4a['call'](this,_0x49b4a7,_0x4533c1);}else _0xf65f4a[_0x36aa06(0x4ae)](this,arguments);};_0x2c3ace[_0x265db9(0x420)]=_0x38aa42;}}()),_0x151ff2['lib']['WordArray'];}));}(Dn));var hr=Dn[_0x37a374(0x447)];const _r=Le(hr);var wn={'exports':{}};(function(_0x324d6c,_0x72f30d){(function(_0x2171b6,_0x4f024f,_0x440545){const _0x319876=_0x513c;_0x324d6c[_0x319876(0x447)]=_0x4f024f(ae(),yn());}(J,function(_0x4ff61e){const _0x107bc1=_0x513c;return _0x4ff61e[_0x107bc1(0x3e9)][_0x107bc1(0x53e)]={'pad':function(){},'unpad':function(){}},_0x4ff61e[_0x107bc1(0x3e9)]['NoPadding'];}));}(wn));var ur=wn[_0x37a374(0x447)];const dr=Le(ur);function fr(_0x4aa2c4,_0x53c430){const _0x372800=_0x37a374,_0x197b81=_0x53c430-_0x4aa2c4[_0x372800(0x330)]%_0x53c430,_0x371ffb=String[_0x372800(0x229)](_0x197b81)[_0x372800(0x5d0)](_0x197b81);return _0x4aa2c4+_0x371ffb;}function vr(_0x1a1796,_0x23ea7c){const _0x358456=_0x37a374,_0x372d43=_r[_0x358456(0x59c)](0x10),_0x26b9f5=fr(_0x1a1796,0x10),_0x3c77e7=or[_0x358456(0x41c)](lr[_0x358456(0x558)](_0x26b9f5),zt['parse'](_0x23ea7c),{'iv':_0x372d43,'padding':dr});return _0x372d43['concat'](_0x3c77e7[_0x358456(0x230)])[_0x358456(0x4d2)](zt);}function mr(){const _0x3f6781=_0x37a374,_0x4dd1a6=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)['__Key__'];if(_0x4dd1a6){const _0x32212a={'time':Math[_0x3f6781(0x640)](Date[_0x3f6781(0x4e0)]()/0x3e8),'domain':location[_0x3f6781(0x399)]};return vr(JSON[_0x3f6781(0x3df)](_0x32212a),_0x4dd1a6);}}var pr=Object[_0x37a374(0x55e)],Sr=Object[_0x37a374(0x4a5)],gr=(_0x336fa0,_0x5dda00,_0x5b06db,_0x24dd6c)=>{const _0x46a4fe=_0x37a374;for(var _0x2e69b2=_0x24dd6c>0x1?void 0x0:_0x24dd6c?Sr(_0x5dda00,_0x5b06db):_0x5dda00,_0xa7361e=_0x336fa0[_0x46a4fe(0x330)]-0x1,_0x57900;_0xa7361e>=0x0;_0xa7361e--)(_0x57900=_0x336fa0[_0xa7361e])&&(_0x2e69b2=(_0x24dd6c?_0x57900(_0x5dda00,_0x5b06db,_0x2e69b2):_0x57900(_0x2e69b2))||_0x2e69b2);return _0x24dd6c&&_0x2e69b2&&pr(_0x5dda00,_0x5b06db,_0x2e69b2),_0x2e69b2;},Ir=(_0x5f0260,_0xd00138)=>(_0x143a82,_0x46a287)=>_0xd00138(_0x143a82,_0x46a287,_0x5f0260);let Ye=class{constructor(_0x4e7a29){const _0x996e01=_0x37a374;this['_httpService']=_0x4e7a29,this[_0x996e01(0x4a1)]();}[_0x37a374(0x4a1)](){const _0x3f1149=_0x37a374;this[_0x3f1149(0x20d)][_0x3f1149(0x417)]({'interceptor':(_0x46303d,_0x533b19)=>{const _0x4a6cbe=_0x3f1149,_0x3e5732=_0x46303d[_0x4a6cbe(0x356)],_0x4ec362=mr();return _0x4ec362&&_0x3e5732[_0x4a6cbe(0x5d1)](_0x4a6cbe(0x651),_0x4ec362),_0x533b19(_0x46303d);}});}};Ye=gr([Ir(0x0,a[_0x37a374(0x629)](Q[_0x37a374(0x34f)]))],Ye);var Cr=Object[_0x37a374(0x55e)],Er=Object[_0x37a374(0x4a5)],br=(_0x29cbe3,_0x27b21f,_0x186ee8,_0x2d9e8a)=>{const _0x3170a3=_0x37a374;for(var _0x3e4731=_0x2d9e8a>0x1?void 0x0:_0x2d9e8a?Er(_0x27b21f,_0x186ee8):_0x27b21f,_0x33ef50=_0x29cbe3[_0x3170a3(0x330)]-0x1,_0x2d21d2;_0x33ef50>=0x0;_0x33ef50--)(_0x2d21d2=_0x29cbe3[_0x33ef50])&&(_0x3e4731=(_0x2d9e8a?_0x2d21d2(_0x27b21f,_0x186ee8,_0x3e4731):_0x2d21d2(_0x3e4731))||_0x3e4731);return _0x2d9e8a&&_0x3e4731&&Cr(_0x27b21f,_0x186ee8,_0x3e4731),_0x3e4731;},ft=(_0x349cc3,_0x351002)=>(_0x4fcedb,_0x1747b1)=>_0x351002(_0x4fcedb,_0x1747b1,_0x349cc3);const Tr=['image/png',_0x37a374(0x584),_0x37a374(0x38f),'image/gif',_0x37a374(0x1c5)],Rr=0x5*0x400*0x400,yr=_0x37a374(0x649),Or=_0x37a374(0x62c),Dr=_0x37a374(0x57c),wr=_0x37a374(0x223);exports[_0x37a374(0x28b)]=class{constructor(_0x32babb,_0x45169a,_0x6efc4){const _0x46e661=_0x37a374;I(this,_0x46e661(0x277),0x0),I(this,_0x46e661(0x5d7),new A[(_0x46e661(0x383))]()),I(this,'change$',this['_change$']),I(this,_0x46e661(0x5d6),new Map()),(this[_0x46e661(0x20d)]=_0x32babb,this[_0x46e661(0x3e7)]=_0x45169a,this[_0x46e661(0x1d4)]=_0x6efc4);}[_0x37a374(0x205)](_0x597c14){const _0x237137=_0x37a374;this[_0x237137(0x277)]=_0x597c14,this['_change$'][_0x237137(0x24e)](_0x597c14);}['getImageSourceCache'](_0x253fb8,_0x444849){const _0xda9c71=_0x37a374;if(_0x444849===ie[_0xda9c71(0x5e7)][_0xda9c71(0x3d9)]){const _0x386448=new Image();return _0x386448['src']=_0x253fb8,_0x386448;}return this[_0xda9c71(0x5d6)]['get'](_0x253fb8);}[_0x37a374(0x374)](_0x2ebec6,_0x59ea44,_0x301408){const _0x2edb63=_0x37a374;_0x59ea44===ie[_0x2edb63(0x5e7)]['BASE64']||_0x301408==null||this[_0x2edb63(0x5d6)]['set'](_0x2ebec6,_0x301408);}async[_0x37a374(0x3d2)](_0x1e90a7){const _0x36588a=_0x37a374;try{const _0x4c1557=this[_0x36588a(0x3ba)](this[_0x36588a(0x2d6)](),''+_0x1e90a7),_0x4ff127=(await this[_0x36588a(0x20d)]['get'](_0x4c1557))[_0x36588a(0x360)];if(_0x4ff127[_0x36588a(0x237)]&&_0x4ff127[_0x36588a(0x237)]['code']===an['OK']){const _0x30aea6=new URL(_0x4ff127[_0x36588a(0x475)],this[_0x36588a(0x258)]())[_0x36588a(0x4d2)]();return Promise[_0x36588a(0x433)](_0x30aea6);}return Promise[_0x36588a(0x545)](_0x4ff127[_0x36588a(0x237)]);}catch(_0xc2cc05){return Promise['reject'](_0xc2cc05);}}async[_0x37a374(0x5ba)](_0x3d8565){const _0x48c2f3=_0x37a374;let _0x2a7e33='';if(!Tr[_0x48c2f3(0x5fc)](_0x3d8565[_0x48c2f3(0x1d2)]))return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie['ImageUploadStatusType'][_0x48c2f3(0x347)]));if(_0x3d8565[_0x48c2f3(0x654)]>Rr)return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie[_0x48c2f3(0x2d8)][_0x48c2f3(0x281)]));try{const _0x27cf34=new FormData();_0x27cf34['append'](_0x48c2f3(0x368),_0x3d8565);const _0x3439b6=this[_0x48c2f3(0x1d4)]['getFocusedUnit'](),_0x3e4d16=_0x3439b6==null?void 0x0:_0x3439b6[_0x48c2f3(0x615)]();if(!_0x3e4d16)throw new Error(_0x48c2f3(0x532));const _0x2088fb=this[_0x48c2f3(0x605)]()+_0x48c2f3(0x55c)+_0x3d8565[_0x48c2f3(0x654)][_0x48c2f3(0x4d2)]()+_0x48c2f3(0x1ee)+cn['UnitEmbedded']+_0x48c2f3(0x1d9)+encodeURIComponent(_0x3e4d16),_0x2cc6c3=await(await fetch(_0x2088fb,{'method':_0x48c2f3(0x598),'body':_0x27cf34}))[_0x48c2f3(0x570)]();if(typeof _0x2cc6c3['FileId']!='string')return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie[_0x48c2f3(0x2d8)][_0x48c2f3(0x45a)]));_0x2a7e33=_0x2cc6c3[_0x48c2f3(0x3ac)];}catch{return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie[_0x48c2f3(0x2d8)][_0x48c2f3(0x45a)]));}return new Promise((_0x5b09b0,_0x13a39d)=>{const _0x17b693=_0x48c2f3,_0x258b4a=new FileReader();_0x258b4a[_0x17b693(0x3be)](_0x3d8565),_0x258b4a['onload']=_0x285fb7=>{const _0x3e9b98=_0x17b693;var _0x2ab768;const _0x3d67d6=(_0x2ab768=_0x285fb7[_0x3e9b98(0x5b8)])==null?void 0x0:_0x2ab768['result'];if(_0x3d67d6==null){this[_0x3e9b98(0x552)](),_0x13a39d(new Error(ie[_0x3e9b98(0x2d8)][_0x3e9b98(0x45a)]));return;}const _0x3bbf34=a[_0x3e9b98(0x59b)][_0x3e9b98(0x3c0)](0x6);_0x5b09b0({'imageId':_0x3bbf34,'imageSourceType':ie[_0x3e9b98(0x5e7)][_0x3e9b98(0x660)],'source':_0x2a7e33,'base64Cache':_0x3d67d6,'status':ie[_0x3e9b98(0x2d8)]['SUCCUSS']}),this[_0x3e9b98(0x552)]();};});}['_getUploadFileURL'](){const _0x3d7cd5=_0x37a374;var _0x176f8e,_0x4f278f;const _0x4a37db=this[_0x3d7cd5(0x3e7)][_0x3d7cd5(0x37d)](yr),_0x5d69dd=this['_configService']['getConfig'](ne);return(_0x4f278f=(_0x176f8e=_0x5d69dd==null?void 0x0:_0x5d69dd['uploadFileServerUrl'])!=null?_0x176f8e:_0x4a37db)!=null?_0x4f278f:Or;}[_0x37a374(0x2d6)](){const _0x477d58=_0x37a374;var _0x4d3b59,_0x22beb4;const _0x2163b3=this['_configService'][_0x477d58(0x37d)](Dr),_0x319133=this[_0x477d58(0x3e7)][_0x477d58(0x37d)](ne);return(_0x22beb4=(_0x4d3b59=_0x319133==null?void 0x0:_0x319133[_0x477d58(0x43d)])!=null?_0x4d3b59:_0x2163b3)!=null?_0x22beb4:wr;}['_getDownloadEndpointURL'](){const _0x3c8f97=_0x37a374;var _0xb97d4e;const _0x1a9116=this[_0x3c8f97(0x3e7)][_0x3c8f97(0x37d)](ne);return(_0xb97d4e=_0x1a9116==null?void 0x0:_0x1a9116[_0x3c8f97(0x50a)])!=null?_0xb97d4e:location[_0x3c8f97(0x25f)];}[_0x37a374(0x3ba)](_0x37242b,_0x417e7c){const _0x3dca94=_0x37a374;return _0x37242b[_0x3dca94(0x2a2)](_0x3dca94(0x33b),_0x417e7c);}[_0x37a374(0x552)](){const _0x32af3d=_0x37a374;this[_0x32af3d(0x277)]-=0x1,this[_0x32af3d(0x5d7)][_0x32af3d(0x24e)](this[_0x32af3d(0x277)]);}},exports[_0x37a374(0x28b)]=br([ft(0x0,a[_0x37a374(0x629)](Q[_0x37a374(0x34f)])),ft(0x1,a[_0x37a374(0x30b)]),ft(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x662)]))],exports['ImageIoService']);var Pr=Object[_0x37a374(0x55e)],Ur=Object[_0x37a374(0x4a5)],Mr=(_0x43b431,_0x3a8b72,_0xd19f90,_0x1bcee7)=>{const _0x451097=_0x37a374;for(var _0x4e00ed=_0x1bcee7>0x1?void 0x0:_0x1bcee7?Ur(_0x3a8b72,_0xd19f90):_0x3a8b72,_0x386f67=_0x43b431[_0x451097(0x330)]-0x1,_0x3a3a1f;_0x386f67>=0x0;_0x386f67--)(_0x3a3a1f=_0x43b431[_0x386f67])&&(_0x4e00ed=(_0x1bcee7?_0x3a3a1f(_0x3a8b72,_0xd19f90,_0x4e00ed):_0x3a3a1f(_0x4e00ed))||_0x4e00ed);return _0x1bcee7&&_0x4e00ed&&Pr(_0x3a8b72,_0xd19f90,_0x4e00ed),_0x4e00ed;},Me=(_0x562085,_0x534db6)=>(_0x97a944,_0x44687b)=>_0x534db6(_0x97a944,_0x44687b,_0x562085);let Ke=class extends a['RxDisposable']{constructor(_0x54fa41,_0x383007,_0x3bf69b,_0x36f724,_0x24a344){const _0x5ca272=_0x37a374;super(),this[_0x5ca272(0x58f)]=_0x54fa41,this[_0x5ca272(0x1d4)]=_0x383007,this[_0x5ca272(0x478)]=_0x3bf69b,this[_0x5ca272(0x3a4)]=_0x36f724,this['_localeService']=_0x24a344,this[_0x5ca272(0x401)](),this['_initCloseConn']();}[_0x37a374(0x2bc)](){const _0x1ab7e5=_0x37a374,_0x451ec3=async _0x47e9c2=>{const _0x242481=_0x513c;(await this[_0x242481(0x3a4)][_0x242481(0x501)](_0x47e9c2))[_0x242481(0x5cc)]['pipe'](V['filter'](_0x49eb03=>_0x49eb03['eventID']===p[_0x242481(0x521)][_0x242481(0x544)]),V['takeUntil'](this[_0x242481(0x574)]))[_0x242481(0x274)](_0x5eac09=>{const _0x1d035c=_0x242481,_0x4b1fea=_0x5eac09,{reason:_0x202b5a}=_0x4b1fea[_0x1d035c(0x470)];this[_0x1d035c(0x58f)][_0x1d035c(0x5bf)](te[_0x1d035c(0x3bf)])[_0x1d035c(0x5b9)]({'type':Se[_0x1d035c(0x4c0)][_0x1d035c(0x2f5)],'content':this[_0x1d035c(0x1c9)]['t'](_0x1d035c(0x5e9))+'('+_0x202b5a+')'}),this['_permissionService']['updatePermissionPoint'](new k[(_0x1d035c(0x363))](_0x47e9c2)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x47e9c2);});};A['merge'](this[_0x1ab7e5(0x1d4)]['getTypeOfUnitAdded$'](a[_0x1ab7e5(0x22d)][_0x1ab7e5(0x362)]),this[_0x1ab7e5(0x1d4)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x1ab7e5(0x619)]))['pipe'](V[_0x1ab7e5(0x323)](_0x94fd25=>_0x94fd25[_0x1ab7e5(0x615)]()),V[_0x1ab7e5(0x434)](_0x3974b5=>!a['isInternalEditorID'](_0x3974b5)),V[_0x1ab7e5(0x27d)](this[_0x1ab7e5(0x574)]))[_0x1ab7e5(0x274)](_0x53f2c2=>{_0x451ec3(_0x53f2c2);});}[_0x37a374(0x401)](){const _0x4e72d7=_0x37a374,_0x31c5c6=async _0x2b797a=>{const _0x4cfa41=_0x513c;(await this['_collaborationSessionService'][_0x4cfa41(0x501)](_0x2b797a))[_0x4cfa41(0x5cc)][_0x4cfa41(0x4d7)](V[_0x4cfa41(0x434)](_0x26bafe=>_0x26bafe['eventID']===p['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),V[_0x4cfa41(0x27d)](this[_0x4cfa41(0x574)]))[_0x4cfa41(0x274)](_0x2ad06f=>{const _0x28806e=_0x4cfa41,_0x23e5cb=_0x2ad06f,{objectId:_0x221ddc}=_0x23e5cb['data'],_0x9805ba=this[_0x28806e(0x58f)][_0x28806e(0x5bf)](Te[_0x28806e(0x5a5)]);_0x221ddc===_0x2b797a?_0x9805ba[_0x28806e(0x35f)](_0x2b797a):_0x9805ba[_0x28806e(0x240)](_0x2b797a,_0x221ddc);});};A['merge'](this[_0x4e72d7(0x1d4)][_0x4e72d7(0x442)](a['UniverInstanceType'][_0x4e72d7(0x362)]),this[_0x4e72d7(0x1d4)][_0x4e72d7(0x442)](a['UniverInstanceType'][_0x4e72d7(0x619)]))['pipe'](V[_0x4e72d7(0x323)](_0x405146=>_0x405146[_0x4e72d7(0x615)]()),V[_0x4e72d7(0x434)](_0x59ce86=>!a[_0x4e72d7(0x644)](_0x59ce86)),V[_0x4e72d7(0x27d)](this[_0x4e72d7(0x574)]))[_0x4e72d7(0x274)](_0x3f220a=>{_0x31c5c6(_0x3f220a);});}};Ke=Mr([Me(0x0,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),Me(0x1,a[_0x37a374(0x662)]),Me(0x2,a[_0x37a374(0x459)]),Me(0x3,a[_0x37a374(0x629)](exports[_0x37a374(0x5e2)])),Me(0x4,a['Inject'](a[_0x37a374(0x52f)]))],Ke);var Ar=Object[_0x37a374(0x55e)],Nr=Object[_0x37a374(0x4a5)],Lr=(_0x278b2b,_0x467237,_0x22d144,_0x44c57c)=>{const _0x1925c4=_0x37a374;for(var _0x5db813=_0x44c57c>0x1?void 0x0:_0x44c57c?Nr(_0x467237,_0x22d144):_0x467237,_0x51c001=_0x278b2b[_0x1925c4(0x330)]-0x1,_0x2d8b0f;_0x51c001>=0x0;_0x51c001--)(_0x2d8b0f=_0x278b2b[_0x51c001])&&(_0x5db813=(_0x44c57c?_0x2d8b0f(_0x467237,_0x22d144,_0x5db813):_0x2d8b0f(_0x5db813))||_0x5db813);return _0x44c57c&&_0x5db813&&Ar(_0x467237,_0x22d144,_0x5db813),_0x5db813;},Xt=(_0x29fe37,_0x5e4a29)=>(_0x294808,_0xf23233)=>_0x5e4a29(_0x294808,_0xf23233,_0x29fe37);exports['SnapshotServerOverHTTPService']=class{constructor(_0x4e6270,_0x148d8a){const _0x1e2e99=_0x37a374;this[_0x1e2e99(0x3e7)]=_0x4e6270,this[_0x1e2e99(0x20d)]=_0x148d8a;}async[_0x37a374(0x1cc)](_0x3bbf32,_0x88f0e7){const _0x3d37d0=_0x37a374;var _0x20f2e6;const {unitID:_0x43f2d8,type:_0x42cd78,revision:_0x34e26e=0x0}=_0x88f0e7,_0x519d55=this[_0x3d37d0(0x275)]()+'/'+_0x42cd78+_0x3d37d0(0x625)+_0x43f2d8+_0x3d37d0(0x66e)+_0x34e26e,_0x3482b9=(await this[_0x3d37d0(0x20d)][_0x3d37d0(0x5bf)](_0x519d55))[_0x3d37d0(0x360)],_0x1c81dd=(_0x20f2e6=_0x3482b9[_0x3d37d0(0x364)])==null?void 0x0:_0x20f2e6['workbook'];if(_0x1c81dd){const _0x2492aa=_0x1c81dd==null?void 0x0:_0x1c81dd[_0x3d37d0(0x31c)],_0x3596b7=p['textEncoder']['encode'](p['b64DecodeUnicode'](_0x2492aa));_0x1c81dd['originalMeta']=_0x3596b7,Object[_0x3d37d0(0x530)](_0x1c81dd[_0x3d37d0(0x2d4)])[_0x3d37d0(0x278)](([,_0x108987])=>{const _0x4beb6f=_0x3d37d0,_0x591961=_0x108987[_0x4beb6f(0x31c)],_0x2e6843=p[_0x4beb6f(0x27f)][_0x4beb6f(0x602)](p['b64DecodeUnicode'](_0x591961));_0x108987[_0x4beb6f(0x31c)]=_0x2e6843;});}return _0x3482b9;}async[_0x37a374(0x514)](_0x17885d,_0x454e65){const _0xaf736=_0x37a374,{unitID:_0x58ef3a,type:_0x1468ff,blockID:_0x727885}=_0x454e65,_0x1a71b0=this['_getAPIPrefix']()+'/'+_0x1468ff+_0xaf736(0x625)+_0x58ef3a+_0xaf736(0x5e8)+_0x727885;return(await this['_httpService'][_0xaf736(0x5bf)](_0x1a71b0))[_0xaf736(0x360)];}async['getDeserializedSheetBlock'](_0x547711,_0x403152){const _0x4a3a9a=_0x37a374,{unitID:_0x24097b,type:_0x261dcd,blockID:_0x1d65ea}=_0x403152,_0x4d6356=this[_0x4a3a9a(0x45b)]()+_0x4a3a9a(0x5e8)+_0x261dcd+'/unit/'+_0x24097b+'/block/'+_0x1d65ea;return(await this['_httpService'][_0x4a3a9a(0x5bf)](_0x4d6356))[_0x4a3a9a(0x360)];}async[_0x37a374(0x525)](_0x2414ac,_0x4f52f0){const _0x93a896=_0x37a374,{unitID:_0x57e018,type:_0x106909,from:_0x3edfbf,to:_0x5b9cef}=_0x4f52f0,_0x18a58d=this['_getAPIPrefix']()+'/'+_0x106909+_0x93a896(0x625)+_0x57e018+_0x93a896(0x348)+_0x3edfbf+'&to='+_0x5b9cef;return(await this[_0x93a896(0x20d)][_0x93a896(0x5bf)](_0x18a58d))[_0x93a896(0x360)];}['_getSnapshotAPIPrefix'](){const _0x2c7bb2=_0x37a374;var _0x2ebd13;return(_0x2ebd13=this[_0x2c7bb2(0x3e7)][_0x2c7bb2(0x37d)](Zt))!=null?_0x2ebd13:this[_0x2c7bb2(0x45b)]();}[_0x37a374(0x45b)](){const _0x240564=_0x37a374;var _0x2008cc,_0x2d80fa;const _0x31b06b=this[_0x240564(0x3e7)]['getConfig'](Jt),_0x4b0ae5=this[_0x240564(0x3e7)][_0x240564(0x37d)](ne);return(_0x2d80fa=(_0x2008cc=_0x4b0ae5==null?void 0x0:_0x4b0ae5['snapshotServerUrl'])!=null?_0x2008cc:_0x31b06b)!=null?_0x2d80fa:xn;}async[_0x37a374(0x3a6)](_0x5cee71,_0x540c81){const _0x47c091=_0x37a374,_0x3cfad5=_0x47c091(0x60c)+_0x540c81[_0x47c091(0x1d2)]+'/unit/'+_0x540c81[_0x47c091(0x505)]+_0x47c091(0x26f);return(await this[_0x47c091(0x20d)]['get'](_0x3cfad5,{'params':{'resourceId':JSON[_0x47c091(0x3df)](_0x540c81[_0x47c091(0x5f2)])}}))[_0x47c091(0x360)];}[_0x37a374(0x50b)](){const _0x3dd64b=_0x37a374;throw new Error(_0x3dd64b(0x25b));}[_0x37a374(0x221)](){const _0x125485=_0x37a374;throw new Error(_0x125485(0x25b));}[_0x37a374(0x22a)](){const _0x2869e1=_0x37a374;throw new Error(_0x2869e1(0x25b));}['copyFileMeta'](){const _0x4b1b4e=_0x37a374;throw new Error(_0x4b1b4e(0x25b));}['getLatestCsReqIdBySid'](){const _0x1a3ace=_0x37a374;throw new Error(_0x1a3ace(0x25b));}},exports[_0x37a374(0x457)]=Lr([Xt(0x0,a[_0x37a374(0x30b)]),Xt(0x1,a[_0x37a374(0x629)](Q['HTTPService']))],exports[_0x37a374(0x457)]);var xr=Object['defineProperty'],$r=Object['getOwnPropertyDescriptor'],jr=(_0xe1d711,_0x57f185,_0x429805,_0x48e749)=>{const _0x5348eb=_0x37a374;for(var _0x4be63e=_0x48e749>0x1?void 0x0:_0x48e749?$r(_0x57f185,_0x429805):_0x57f185,_0x3e4dcd=_0xe1d711[_0x5348eb(0x330)]-0x1,_0x1d9412;_0x3e4dcd>=0x0;_0x3e4dcd--)(_0x1d9412=_0xe1d711[_0x3e4dcd])&&(_0x4be63e=(_0x48e749?_0x1d9412(_0x57f185,_0x429805,_0x4be63e):_0x1d9412(_0x4be63e))||_0x4be63e);return _0x48e749&&_0x4be63e&&xr(_0x57f185,_0x429805,_0x4be63e),_0x4be63e;},Ae=(_0x299364,_0x341ad5)=>(_0x541f89,_0xd3b6fe)=>_0x341ad5(_0x541f89,_0xd3b6fe,_0x299364);let gt=class extends a[_0x37a374(0x60e)]{constructor(_0x39237b,_0x22fd65,_0x2764a6,_0x2c11de,_0x409b35){const _0xe87c66=_0x37a374;super(_0x39237b,_0x22fd65,_0x2764a6),this[_0xe87c66(0x541)]=_0x2c11de,this[_0xe87c66(0x58a)]=_0x409b35;}['transformUndoRedo'](_0x2a4675,_0x524de0){const _0x4be4b3=_0x37a374,_0x1214f6=this[_0x4be4b3(0x51c)](_0x2a4675);if(_0x1214f6)try{const _0x20411c=this[_0x4be4b3(0x60d)](_0x1214f6,_0x524de0);this['_substituteUndoStack'](_0x2a4675,_0x20411c);}catch(_0x4ac8d0){this[_0x4be4b3(0x58a)][_0x4be4b3(0x237)](_0x4be4b3(0x414),_0x4ac8d0),this['_clearUndo'](_0x2a4675);}const _0x198015=this[_0x4be4b3(0x59e)](_0x2a4675);if(_0x198015)try{const _0x50a4cf=this[_0x4be4b3(0x60d)](_0x198015,_0x524de0);this[_0x4be4b3(0x34d)](_0x2a4675,_0x50a4cf);}catch(_0x1020f0){this[_0x4be4b3(0x58a)]['error'](_0x1020f0),this[_0x4be4b3(0x642)](_0x2a4675);}}[_0x37a374(0x421)](_0x349047){const _0x78edc0=this['_getUndoStack'](_0x349047);_0x78edc0&&(_0x78edc0['length']=0x0,this['_updateStatus']());}[_0x37a374(0x642)](_0x2bed4e){const _0x4ef62d=_0x37a374,_0x308932=this[_0x4ef62d(0x59e)](_0x2bed4e);_0x308932&&(_0x308932[_0x4ef62d(0x330)]=0x0,this[_0x4ef62d(0x409)]());}[_0x37a374(0x5c2)](_0x222f18,_0x5ea173){const _0xe2cb37=_0x37a374;this[_0xe2cb37(0x515)]['set'](_0x222f18,_0x5ea173),this['_updateStatus']();}[_0x37a374(0x34d)](_0x10c50a,_0x107a2d){const _0x353393=_0x37a374;this['_redoStacks'][_0x353393(0x5d1)](_0x10c50a,_0x107a2d),this['_updateStatus']();}[_0x37a374(0x60d)](_0x55f051,_0x1def11){const _0xe736d4=_0x37a374,_0x376388=[];let _0xb3e360=_0x1def11,_0x4160e8=_0x1def11;for(let _0x4245ed=_0x55f051['length']-0x1;_0x4245ed>=0x0;_0x4245ed--){const {unitID:_0x5b3f0b,undoMutations:_0x162741,redoMutations:_0x1626c7}=_0x55f051[_0x4245ed],_0x545277=this[_0xe736d4(0x541)][_0xe736d4(0x45f)](_0xb3e360,_0x162741),_0x574263=this['_transformService'][_0xe736d4(0x45f)](_0x4160e8,_0x1626c7);if(p[_0xe736d4(0x62a)](_0x545277)||p[_0xe736d4(0x62a)](_0x574263)){this[_0xe736d4(0x58a)][_0xe736d4(0x237)]('[CollaborationUndoRedoService]',_0xe736d4(0x4fb),_0x545277,_0x574263);break;}_0xb3e360=_0x545277['c1Prime'],_0x4160e8=_0x574263[_0xe736d4(0x3c6)],_0x376388['push']({'unitID':_0x5b3f0b,'undoMutations':_0x545277[_0xe736d4(0x3b2)],'redoMutations':_0x574263[_0xe736d4(0x3b2)]});}return _0x376388[_0xe736d4(0x3c9)]();}};gt=jr([Ae(0x0,a[_0x37a374(0x662)]),Ae(0x1,a[_0x37a374(0x30c)]),Ae(0x2,a[_0x37a374(0x49f)]),Ae(0x3,p['ITransformService']),Ae(0x4,a[_0x37a374(0x217)])],gt);class Pn extends a[_0x37a374(0x2f7)]{constructor(){const _0x581b9e=_0x37a374;super(),I(this,_0x581b9e(0x29f)),this['urlChange$']=A[_0x581b9e(0x294)](window,_0x581b9e(0x555))['pipe'](A[_0x581b9e(0x27d)](this[_0x581b9e(0x574)]),A[_0x581b9e(0x3ae)](0x1),A[_0x581b9e(0x29e)](void 0x0));}[_0x37a374(0x4f8)](_0x8cb13b,_0x56a292,_0x49f34b=!0x1){const _0x4e3e99=_0x37a374,_0x305d57=new URL(window['location'][_0x4e3e99(0x310)]);_0x305d57[_0x4e3e99(0x2de)]['set'](_0x8cb13b,_0x56a292),_0x49f34b?window[_0x4e3e99(0x477)]['replaceState']('','',_0x305d57[_0x4e3e99(0x4d2)]()):window['history'][_0x4e3e99(0x33a)]('','',_0x305d57[_0x4e3e99(0x4d2)]());}[_0x37a374(0x2b4)](_0x51b370,_0x2be40a=!0x1){const _0x2d7ade=_0x37a374,_0x52e4d5=new URL(window[_0x2d7ade(0x34c)][_0x2d7ade(0x310)]);_0x52e4d5[_0x2d7ade(0x2de)][_0x2d7ade(0x412)](_0x51b370),_0x2be40a?window['history'][_0x2d7ade(0x418)]('','',_0x52e4d5[_0x2d7ade(0x4d2)]()):window[_0x2d7ade(0x477)][_0x2d7ade(0x33a)]('','',_0x52e4d5['toString']());}['getParam'](_0x30a8ab){const _0x550697=_0x37a374;var _0x5d1916;return(_0x5d1916=new URL(window[_0x550697(0x34c)][_0x550697(0x310)])[_0x550697(0x2de)][_0x550697(0x5bf)](_0x30a8ab))!=null?_0x5d1916:void 0x0;}}var Un=Object[_0x37a374(0x55e)],Hr=Object['getOwnPropertyDescriptor'],Br=(_0x5e3d6c,_0x553f16,_0x1255c2)=>_0x553f16 in _0x5e3d6c?Un(_0x5e3d6c,_0x553f16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1255c2}):_0x5e3d6c[_0x553f16]=_0x1255c2,kr=(_0x5b701a,_0x42e6a1,_0x226e05,_0x14b86a)=>{const _0x3e51d6=_0x37a374;for(var _0x4c26ca=_0x14b86a>0x1?void 0x0:_0x14b86a?Hr(_0x42e6a1,_0x226e05):_0x42e6a1,_0x17d86d=_0x5b701a[_0x3e51d6(0x330)]-0x1,_0x54668a;_0x17d86d>=0x0;_0x17d86d--)(_0x54668a=_0x5b701a[_0x17d86d])&&(_0x4c26ca=(_0x14b86a?_0x54668a(_0x42e6a1,_0x226e05,_0x4c26ca):_0x54668a(_0x4c26ca))||_0x4c26ca);return _0x14b86a&&_0x4c26ca&&Un(_0x42e6a1,_0x226e05,_0x4c26ca),_0x4c26ca;},He=(_0x1b55e2,_0x5ba626)=>(_0x15e293,_0x1ced3f)=>_0x5ba626(_0x15e293,_0x1ced3f,_0x1b55e2),Wr=(_0x43e4da,_0x2faef5,_0x58d68)=>Br(_0x43e4da,_0x2faef5+'',_0x58d68);const Fr=_0x37a374(0x481);exports[_0x37a374(0x26d)]=class extends a[_0x37a374(0x355)]{constructor(_0x5476ee=Yn,_0x33ff00,_0x211c30,_0x3c59d6,_0x46a85d){const _0x20ee11=_0x37a374;super(),this[_0x20ee11(0x4fd)]=_0x5476ee,this[_0x20ee11(0x58a)]=_0x33ff00,this['_renderManagerService']=_0x211c30,this['_injector']=_0x3c59d6,this[_0x20ee11(0x3e7)]=_0x46a85d;const {..._0x145cbb}=this[_0x20ee11(0x4fd)];this['_configService'][_0x20ee11(0x222)](ne,_0x145cbb);}[_0x37a374(0x648)](){const _0x4ca223=_0x37a374;this[_0x4ca223(0x560)](),this[_0x4ca223(0x372)]();}['onReady'](){const _0x48e4ca=_0x37a374;a[_0x48e4ca(0x4f5)](this['_injector'],[[Ve]]);}['onRendered'](){const _0x52d942=_0x37a374;this[_0x52d942(0x67b)]();}[_0x37a374(0x560)](){const _0x21b365=_0x37a374;var _0x22cb5d,_0x360706,_0x5aa8f5,_0x242436;this[_0x21b365(0x58f)]['has'](a[_0x21b365(0x3cd)])&&this[_0x21b365(0x58a)]['error'](_0x21b365(0x4b9),_0x21b365(0x2a5));const _0x46dd41=[[a['IUndoRedoService'],{'useClass':gt}],[exports[_0x21b365(0x5e2)]],[yt],[Dt,{'useClass':Pn}],[exports[_0x21b365(0x33d)]],[exports['LocalCacheService']],[Q[_0x21b365(0x319)]],[ke],[Fe],[Be],[We],[Tt],[Ge],[Ye],[bt],[Ke],[Et,{'useClass':(_0x360706=(_0x22cb5d=this['_config'])==null?void 0x0:_0x22cb5d['socketService'])!=null?_0x360706:exports[_0x21b365(0x23f)]}],[p[_0x21b365(0x5cb)],{'useClass':exports[_0x21b365(0x457)]}],[a[_0x21b365(0x54a)],{'useClass':exports[_0x21b365(0x361)]}],[ie[_0x21b365(0x46f)],{'useClass':exports['ImageIoService']}],[exports[_0x21b365(0x511)]],[exports[_0x21b365(0x61a)]],[exports[_0x21b365(0x4b3)]],[Ve],[Oe]];(_0x5aa8f5=this[_0x21b365(0x4fd)])!=null&&_0x5aa8f5[_0x21b365(0x49d)]&&_0x46dd41[_0x21b365(0x257)]([qe,{'useClass':Ti}]),a[_0x21b365(0x213)](this['_injector'],a['mergeOverrideWithDependencies'](_0x46dd41,(_0x242436=this['_config'])==null?void 0x0:_0x242436[_0x21b365(0x476)]));}['_registerRenderDependencies'](){const _0x888b71=_0x37a374;this[_0x888b71(0x4d6)](this[_0x888b71(0x427)][_0x888b71(0x548)](a[_0x888b71(0x22d)][_0x888b71(0x619)],[pt])),this[_0x888b71(0x4d6)](this[_0x888b71(0x427)][_0x888b71(0x548)](a[_0x888b71(0x22d)][_0x888b71(0x362)],[St]));}['_initDependencies'](){const _0x454b1d=_0x37a374;var _0x13a7fa,_0x2b0be4;this[_0x454b1d(0x58f)]['get'](Q[_0x454b1d(0x34f)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':Q[_0x454b1d(0x2e6)]({'maxParallel':0x6})}),(_0x13a7fa=this[_0x454b1d(0x4fd)])!=null&&_0x13a7fa[_0x454b1d(0x2f1)]||this['_injector'][_0x454b1d(0x5bf)](exports['LocalCacheService'])[_0x454b1d(0x3f1)](),(_0x2b0be4=this[_0x454b1d(0x4fd)])!=null&&_0x2b0be4['enableAuthServer']&&a['touchDependencies'](this['_injector'],[[Ge]]),a[_0x454b1d(0x4f5)](this[_0x454b1d(0x58f)],[[Ye],[Oe],[exports[_0x454b1d(0x61a)]],[exports[_0x454b1d(0x511)]],[exports[_0x454b1d(0x4b3)]],[Ke]]);}},Wr(exports['UniverCollaborationClientPlugin'],_0x37a374(0x2ae),Fr),exports[_0x37a374(0x26d)]=kr([a[_0x37a374(0x597)](p[_0x37a374(0x2be)],Q[_0x37a374(0x4f2)]),He(0x1,a['ILogService']),He(0x2,K[_0x37a374(0x55f)]),He(0x3,a[_0x37a374(0x629)](a['Injector'])),He(0x4,a[_0x37a374(0x30b)])],exports[_0x37a374(0x26d)]),exports[_0x37a374(0x65b)]=En,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=rn,exports[_0x37a374(0x212)]=Qt,exports[_0x37a374(0x28f)]=q,exports['CollaborationStatusDisplay']=Cn,exports['CommentService']=bt,exports[_0x37a374(0x1f1)]=en,exports['HEARTBEAT_TIMEOUT_KEY']=It,exports[_0x37a374(0x45e)]=Et,exports['IURLService']=Dt,exports[_0x37a374(0x44b)]=sn,exports[_0x37a374(0x20f)]=on,exports[_0x37a374(0x3e1)]=nn,exports[_0x37a374(0x2dd)]=$n,exports[_0x37a374(0x43a)]=Jt,exports[_0x37a374(0x2a3)]=Zt,exports[_0x37a374(0x246)]=re,exports[_0x37a374(0x5a0)]=mn,exports[_0x37a374(0x343)]=Pn,exports[_0x37a374(0x1f3)]=ln,exports[_0x37a374(0x37a)]=hn;
|